diff --git a/packages/opencode/specs/tui-plugins.md b/packages/opencode/specs/tui-plugins.md index c1a484847d..c415195bc6 100644 --- a/packages/opencode/specs/tui-plugins.md +++ b/packages/opencode/specs/tui-plugins.md @@ -7,7 +7,7 @@ Technical reference for the current TUI plugin system. - TUI plugin config lives in `tui.json`. - Author package entrypoint is `@opencode-ai/plugin/tui`. - Internal plugins load inside the CLI app the same way external TUI plugins do. -- Package plugins can be installed with `opencode plug `. +- Package plugins can be installed with `opencode plugin `. ## TUI config @@ -103,8 +103,8 @@ Example: } ``` -- `opencode plug ` resolves and installs the package first, then reads `oc-plugin`, then patches config. -- Alias: `opencode plugin `. +- `opencode plugin ` resolves and installs the package first, then reads `oc-plugin`, then patches config. +- Alias: `opencode plug `. - `-g` / `--global` writes into the global config dir. - Local installs write into `/.opencode` when inside a git repo, otherwise `/.opencode`. - Without `--force`, an already-configured npm package name is a no-op. @@ -180,7 +180,7 @@ Command behavior: - `ui.dialog` exposes the host dialog stack: - `replace(render, onClose?)` - `clear()` - - `setSize("medium" | "large")` + - `setSize("medium" | "large" | "xlarge")` - readonly `size`, `depth`, `open` ### Keybinds diff --git a/packages/opencode/src/cli/cmd/plug.ts b/packages/opencode/src/cli/cmd/plug.ts index ff497fbab8..898d03428b 100644 --- a/packages/opencode/src/cli/cmd/plug.ts +++ b/packages/opencode/src/cli/cmd/plug.ts @@ -307,9 +307,9 @@ export function createPlugTask(input: PlugInput, dep: PlugDeps = defaultPlugDeps } } -export const PlugCommand = cmd({ - command: "plug ", - aliases: ["plugin"], +export const PluginCommand = cmd({ + command: "plugin ", + aliases: ["plug"], describe: "install plugin and update config", builder: (yargs: Argv) => { return yargs diff --git a/packages/opencode/src/index.ts b/packages/opencode/src/index.ts index febcec215d..2da35ace1d 100644 --- a/packages/opencode/src/index.ts +++ b/packages/opencode/src/index.ts @@ -34,7 +34,7 @@ import { Global } from "./global" import { JsonMigration } from "./storage/json-migration" import { Database } from "./storage/db" import { errorMessage } from "./util/error" -import { PlugCommand } from "./cli/cmd/plug" +import { PluginCommand } from "./cli/cmd/plug" process.on("unhandledRejection", (e) => { Log.Default.error("rejection", { @@ -153,7 +153,7 @@ const cli = yargs(hideBin(process.argv)) .command(GithubCommand) .command(PrCommand) .command(SessionCommand) - .command(PlugCommand) + .command(PluginCommand) .command(DbCommand) .fail((msg, err) => { if (