Skip to content

refactor: rename @aictrl/plugin → @aictrl/plugin-sdk#66

Closed
byapparov wants to merge 1 commit into
mainfrom
chore/rename-plugin-to-plugin-sdk
Closed

refactor: rename @aictrl/plugin → @aictrl/plugin-sdk#66
byapparov wants to merge 1 commit into
mainfrom
chore/rename-plugin-to-plugin-sdk

Conversation

@byapparov
Copy link
Copy Markdown
Contributor

The npm package name `@aictrl/plugin` is taken by a separate telemetry-delivery vehicle with an independent release cadence. Our monorepo's `packages/plugin` (the plugin-author SDK — types and helpers for writing CLI plugins) has been publishing under the same name, which is how we ended up unable to release v0.3.3: the publish workflow tried to push `@aictrl/plugin@1.2.16` but npm already has `2.0.0` from the telemetry package.

Renaming the monorepo package to `@aictrl/plugin-sdk` frees the name and removes the collision.

Changes

  • `packages/plugin/package.json`: `name` → `@aictrl/plugin-sdk`, version reset to `0.1.0` (first publish of the renamed package)
  • Root `package.json` + `packages/cli/package.json`: workspace dep key renamed
  • 8 source imports across `packages/cli/src/` (`auth.ts`, `plugin/*`, `tool/registry.ts`, `cli/cmd/auth.ts`)
  • 3 `.opencode/tool/` internal tooling imports
  • `packages/cli/src/config/config.ts` auto-install logic now writes `@aictrl/plugin-sdk` into user project `package.json`
  • Tests updated (registry fixture, config parse assertion, plugin-auth-picker import)
  • Publish workflow step renamed
  • `CONTRIBUTING.md` + `.opencode/agent/translator.md` references

User impact

Plugin authors currently depending on `@aictrl/plugin` (the SDK, not the telemetry one) should switch to `@aictrl/plugin-sdk`. User projects with existing `@aictrl/plugin` entries will keep working (the types are compatible between versions on their disk), but on next CLI run the CLI will add `@aictrl/plugin-sdk` to `package.json` — so both may briefly coexist until the old one is cleaned up manually.

Follow-up

  • Set up OIDC trusted publisher on npmjs.com for `@aictrl/plugin-sdk` (`aictrl-dev/cli` / `publish.yml` / `release`) so the next release can publish it. First publish requires a bootstrap token OR org-level trusted publisher config.
  • Delete the failed v0.3.3 tag/release and re-cut after this merges.

Test plan

  • `bun turbo typecheck` green (verified locally: 6/6)
  • `bun test` green (verified locally: 1275 pass, 7 skip, 0 fail)
  • CI green

🤖 Generated with Claude Code

The npm package name @aictrl/plugin is used by a separate telemetry
delivery vehicle with its own release cadence. Our monorepo's
packages/plugin (plugin-author SDK: types, shell/tool helpers) collides
on the name and can't be published from the CLI release workflow.

Rename the monorepo package to @aictrl/plugin-sdk:

- packages/plugin/package.json: name + reset version to 0.1.0 (first
  publish of the renamed package)
- Root package.json + packages/cli/package.json: update workspace dep key
- Source imports across packages/cli/src/ (8 files)
- .opencode/tool/*.ts internal tooling imports
- Config auto-install logic (packages/cli/src/config/config.ts) now
  writes @aictrl/plugin-sdk into user project package.json
- Tests updated to match
- Publish workflow step renamed
- CONTRIBUTING.md and .opencode/agent/translator.md references updated

User projects with existing @aictrl/plugin in their package.json will
no longer auto-receive updates; the CLI will add @aictrl/plugin-sdk on
next run. Documented path for plugin authors: depend on @aictrl/plugin-sdk.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@aictrl-dev
Copy link
Copy Markdown

aictrl-dev Bot commented Apr 23, 2026

Now Step 2 — build concern manifests:S = 36 changed lines across bug hunter files, so N = 1. Total subagents = 3 (Security + Consistency + 1 Bug Hunter).

Now extracting file patches for each manifest:Now dispatching all 3 subagents in parallel:[]

@byapparov
Copy link
Copy Markdown
Contributor Author

Superseded by a proper inlining into the CLI package (no separate plugin-sdk npm package at all) — new PR incoming.

@byapparov byapparov closed this Apr 23, 2026
@byapparov byapparov deleted the chore/rename-plugin-to-plugin-sdk branch April 23, 2026 21: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