@mdsohail99/opencode-agent-teams 2.1.0 → 2.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/bin/cli.js +15 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v1.0.0
|
|
|
7
7
|
|
|
8
8
|
---
|
|
9
9
|
|
|
10
|
+
## [2.1.1] - 2026-11-22
|
|
11
|
+
|
|
12
|
+
### Fixed
|
|
13
|
+
- **CLI Plugin Reference Isolation:** Fixed `bin/cli.js` to ensure the registered plugin in `opencode.json` is always `"@mdsohail99/opencode-agent-teams"` rather than an ephemeral `_npx` cache directory.
|
|
14
|
+
- **Explicit Menu Command:** Added `menu` / `--menu` command to `bin/cli.js` so users can explicitly open the interactive TUI management menu even in non-TTY or wrapped environments.
|
|
15
|
+
|
|
16
|
+
---
|
|
17
|
+
|
|
10
18
|
## [2.1.0] - 2026-11-21
|
|
11
19
|
|
|
12
20
|
### Changed & Modernized (OpenCode v2.3.2 Engine Alignment)
|
package/bin/cli.js
CHANGED
|
@@ -132,13 +132,20 @@ async function doInstall(globalMode = true) {
|
|
|
132
132
|
}
|
|
133
133
|
config.experimental.subagent_depth = 2
|
|
134
134
|
|
|
135
|
-
const
|
|
135
|
+
const isLocalDev = fs.existsSync(path.join(rootDir, ".git"))
|
|
136
|
+
const pluginRef = isLocalDev
|
|
136
137
|
? rootDir.replace(/\\/g, "/")
|
|
137
138
|
: "@mdsohail99/opencode-agent-teams"
|
|
138
139
|
|
|
139
140
|
if (!Array.isArray(config.plugins)) {
|
|
140
141
|
config.plugins = []
|
|
141
142
|
}
|
|
143
|
+
// Clean up any stale or temporary npx cache paths
|
|
144
|
+
config.plugins = config.plugins.filter((p) => {
|
|
145
|
+
if (typeof p !== "string") return true
|
|
146
|
+
if (p.includes("_npx") && p.includes("opencode-agent-teams")) return false
|
|
147
|
+
return true
|
|
148
|
+
})
|
|
142
149
|
if (!config.plugins.includes(pluginRef)) {
|
|
143
150
|
config.plugins.push(pluginRef)
|
|
144
151
|
}
|
|
@@ -312,6 +319,7 @@ const isLocal = args.includes("--local") || args.includes("-l")
|
|
|
312
319
|
const isGlobal = !isLocal
|
|
313
320
|
const isHelp = args.includes("--help") || args.includes("-h")
|
|
314
321
|
const isStatus = args.includes("status") || args.includes("--status")
|
|
322
|
+
const isMenu = args.includes("menu") || args.includes("--menu")
|
|
315
323
|
const isInstallExplicit = args.includes("install") || args.includes("--install")
|
|
316
324
|
|
|
317
325
|
if (isHelp) {
|
|
@@ -320,6 +328,7 @@ Agent-Teams v2 CLI for OpenCode
|
|
|
320
328
|
|
|
321
329
|
Usage:
|
|
322
330
|
npx @mdsohail99/opencode-agent-teams Launch interactive menu (default)
|
|
331
|
+
npx @mdsohail99/opencode-agent-teams menu Launch interactive menu explicitly
|
|
323
332
|
npx @mdsohail99/opencode-agent-teams install [options] Install Agent-Teams plugin and agents
|
|
324
333
|
npx @mdsohail99/opencode-agent-teams uninstall [options] Uninstall Agent-Teams cleanly
|
|
325
334
|
npx @mdsohail99/opencode-agent-teams status Inspect current status
|
|
@@ -337,6 +346,11 @@ if (isStatus) {
|
|
|
337
346
|
process.exit(0)
|
|
338
347
|
}
|
|
339
348
|
|
|
349
|
+
if (isMenu) {
|
|
350
|
+
await runInteractiveMenu()
|
|
351
|
+
process.exit(0)
|
|
352
|
+
}
|
|
353
|
+
|
|
340
354
|
if (isUninstallCommand) {
|
|
341
355
|
await doUninstall(isGlobal)
|
|
342
356
|
process.exit(0)
|