Skip to content

feat(cli): deepcode plugins install / uninstall#131

Merged
oratis merged 1 commit into
mainfrom
feat/cli-plugin-install
May 31, 2026
Merged

feat(cli): deepcode plugins install / uninstall#131
oratis merged 1 commit into
mainfrom
feat/cli-plugin-install

Conversation

@oratis
Copy link
Copy Markdown
Owner

@oratis oratis commented May 31, 2026

Summary

The plugin install backends (installLocal / installFromGithub / installFromNpm / uninstallPlugin) existed in core but had no CLI entry point (the audit's gap). Extends the plugins command:

  • deepcode plugins install <spec> — routes by spec shape: gh:owner/repo[@ref] → GitHub clone, <name>@npm (or <name>@<ver>@npm) → npm, otherwise a local pathinstallLocal. Records user-trust so the plugin loads immediately.
  • deepcode plugins uninstall <name> — removes it (exit 1 if not found).
  • plugins list unchanged.

Tests

+3 (list-cmd.test.ts): local install → trusted-list round-trip; install → uninstall → already-gone; routing guards (no spec → exit 2, bad gh: spec → "Invalid GitHub spec" exit 1). CLI suite 101 green. The gh/npm paths route + validate the spec synchronously; the actual clone/pack isn't exercised offline.

🤖 Generated with Claude Code

The install backends (installLocal / installFromGithub / installFromNpm /
uninstallPlugin) existed but had no CLI entry point. Extends the `plugins`
command:

- `deepcode plugins install <spec>` — routes by spec: `gh:owner/repo[@ref]` →
  GitHub, `<name>@npm` → npm, otherwise a local path → installLocal. Records
  user-trust so the plugin loads immediately.
- `deepcode plugins uninstall <name>` — removes it (exit 1 if not found).
- `plugins list` unchanged.

Tests: +3 (list-cmd.test.ts) — local install then trusted-list round-trip,
install→uninstall→already-gone, and routing guards (no-spec→exit 2, bad gh
spec→exit 1). CLI suite 101 green. (gh/npm network paths route + validate
synchronously; the clone/pack itself isn't exercised offline.)

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@oratis oratis merged commit 6538d5f into main May 31, 2026
3 checks passed
@oratis oratis deleted the feat/cli-plugin-install branch May 31, 2026 15:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant