From bdcba7cfb91c83292343df40c88d00156a077230 Mon Sep 17 00:00:00 2001 From: Rhuan Barreto Date: Mon, 30 Mar 2026 16:00:51 +0200 Subject: [PATCH 1/2] feat: native Cursor plugin support via marketplace and VSIX install Made-with: Cursor --- .../agent-memory/archgate-developer/MEMORY.md | 13 +- .gitignore | 3 - CONTRIBUTING.md | 11 -- docs/astro.config.mjs | 2 +- docs/public/llms-full.txt | 4 +- docs/public/llms.txt | 4 +- .../docs/guides/cursor-integration.mdx | 70 +++++----- .../docs/pt-br/guides/cursor-integration.mdx | 68 +++++----- .../content/docs/pt-br/reference/cli/init.mdx | 2 +- .../docs/pt-br/reference/cli/plugin.mdx | 2 +- docs/src/content/docs/reference/cli/init.mdx | 2 +- .../src/content/docs/reference/cli/plugin.mdx | 2 +- src/commands/plugin/install.ts | 25 ++-- src/commands/plugin/url.ts | 15 ++- src/helpers/init-project.ts | 31 +++-- src/helpers/plugin-install.ts | 122 +++++++----------- tests/commands/plugin/url.test.ts | 7 +- 17 files changed, 176 insertions(+), 207 deletions(-) diff --git a/.claude/agent-memory/archgate-developer/MEMORY.md b/.claude/agent-memory/archgate-developer/MEMORY.md index ced7f6e1..5ea28e44 100644 --- a/.claude/agent-memory/archgate-developer/MEMORY.md +++ b/.claude/agent-memory/archgate-developer/MEMORY.md @@ -26,9 +26,7 @@ Skipping steps 2 or 3 is a workflow violation. The user should NEVER have to inv ## Patterns & Fixes -- **`McpServer` event loop retention on Linux** — `new McpServer()` from `@modelcontextprotocol/sdk` creates an `AjvJsonSchemaValidator` (backed by `ajv` + `ajv-formats`) that keeps Bun's event loop alive on Linux after tests complete, causing `bun test` to hang for 30+ minutes. macOS drains the event loop fine — this is a Linux-CI-only failure. Fix: manage server lifecycle in `beforeEach`/`afterEach` and call `await server.close()` in `afterEach`. Also captured in ARCH-005 Don'ts. - **`git commit` in temp repos requires local identity** — CI runners have no global `user.email`/`user.name` configured. Any test that runs `git commit` on a temp repo MUST call `git config user.email` and `git config user.name` locally after `git init`. Fails with a cryptic `ShellPromise` error in CI; passes locally. Also captured in ARCH-005 Do's. -- **Bun import cache-busting**: Bun caches `import()` per-process. For long-running processes (MCP server), append `?t=${Date.now()}` to the import path to force re-reading from disk. Applied in `src/engine/loader.ts`. - **Never use `bunx prettier` directly** — Always use `bun run format` (to fix) or `bun run format:check` (to verify). Using `bunx prettier` can fail or use a different version than the project's devDependency. The same applies to all dev tools: prefer `bun run