feat: user-level Cursor plugin install via authenticated download#394
Closed
rhuanbarreto wants to merge 2 commits into
Closed
feat: user-level Cursor plugin install via authenticated download#394rhuanbarreto wants to merge 2 commits into
rhuanbarreto wants to merge 2 commits into
Conversation
Replace the manual Team Marketplace URL flow with an automated install that downloads the Cursor plugin tarball from /api/cursor and extracts it into ~/.cursor/plugins/local/archgate/. Changes: - Add cursorPluginsLocalDir() to paths.ts for user-scope path resolution - Add installCursorPlugin(token) to plugin-install.ts (mirrors opencode flow) - Update cursor-settings.ts to return user-scope path instead of project-level - Update init-project.ts tryInstallPlugin to auto-install with fallback to marketplace URL on failure - Update commands/plugin/install.ts to call installCursorPlugin directly - Update commands/init.ts EDITOR_DIRS and printManualInstructions for cursor - Update all cursor-related tests to match new auto-install behavior Co-authored-by: rhuan <rhuan@barreto.work>
Replace stale MCP tool references (review_context, check, list_adrs) with the current CLI command equivalents (archgate review-context, archgate check --staged, archgate adr list). Co-authored-by: rhuan <rhuan@barreto.work>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Replaces the manual Team Marketplace URL flow for Cursor with an automated install that downloads the Cursor plugin tarball from
/api/cursorand extracts it into~/.cursor/plugins/local/archgate/.This gives Cursor users the full Archgate developer agent, skills (reviewer, lessons-learned, adr-author, cli-reference, onboard), and governance rules — without requiring a Teams/Enterprise plan for Team Marketplaces.
Before
archgate init --editor cursorwas a no-op for plugin delivery — only printed a Team Marketplace URLarchgate plugin install --editor cursorjust printed the URL for manual setupAfter
archgate init --editor cursor --install-pluginauto-downloads and installs the plugin to~/.cursor/plugins/local/archgate/archgate plugin install --editor cursordirectly installs via authenticated downloadChanges
src/helpers/paths.tscursorPluginsLocalDir()resolving~/.cursor/plugins/local/src/helpers/plugin-install.tsinstallCursorPlugin(token)— downloads/api/cursortarball and extracts to~/.cursor/plugins/local/archgate/src/helpers/cursor-settings.ts~/.cursor/plugins/local/path instead of project-level.cursor/src/helpers/init-project.tsconfigureEditorSettingscursor case returns user-scope pathtryInstallPlugincursor case auto-installs with fallback to marketplace URLsrc/commands/plugin/install.tsinstallCursorPlugin()directly (previously just printed URL)printManualInstructionswith retry hints + marketplace URL fallbacksrc/commands/init.tsEDITOR_DIRS.cursorchanged from"(VSIX)"to"(user-scope)"printManualInstructionsfor cursor updated for new install flow.cursor/rules/archgate-governance.mdcTests
installCursorPluginunit tests (download, extract, auth failure, HTTP error)Companion PR
/api/cursorendpoint and tarball generation