@te-river/opencode-team-mode 1.5.7 → 1.5.9
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/README.md +27 -8
- package/README.zh-CN.md +19 -5
- package/dist/agents.d.ts.map +1 -1
- package/dist/agents.js +17 -7
- package/dist/agents.js.map +1 -1
- package/dist/approval-gate.d.ts +5 -0
- package/dist/approval-gate.d.ts.map +1 -1
- package/dist/approval-gate.js +29 -0
- package/dist/approval-gate.js.map +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +27 -0
- package/dist/index.js.map +1 -1
- package/dist/prompts/specialists.d.ts +1 -1
- package/dist/prompts/specialists.d.ts.map +1 -1
- package/dist/prompts/specialists.js +3 -0
- package/dist/prompts/specialists.js.map +1 -1
- package/dist/tm/browser.d.ts.map +1 -1
- package/dist/tm/browser.js +35 -6
- package/dist/tm/browser.js.map +1 -1
- package/dist/tm/config.d.ts +6 -1
- package/dist/tm/config.d.ts.map +1 -1
- package/dist/tm/config.js +26 -7
- package/dist/tm/config.js.map +1 -1
- package/dist/tm/perm-ask.d.ts +37 -0
- package/dist/tm/perm-ask.d.ts.map +1 -0
- package/dist/tm/perm-ask.js +41 -0
- package/dist/tm/perm-ask.js.map +1 -0
- package/dist/tm/search.d.ts.map +1 -1
- package/dist/tm/search.js +28 -4
- package/dist/tm/search.js.map +1 -1
- package/dist/tm/webfetch.d.ts +13 -0
- package/dist/tm/webfetch.d.ts.map +1 -1
- package/dist/tm/webfetch.js +52 -10
- package/dist/tm/webfetch.js.map +1 -1
- package/docs/installation.md +27 -10
- package/package.json +1 -1
package/docs/installation.md
CHANGED
|
@@ -14,12 +14,12 @@ An OpenCode plugin that injects a **six-agent development team** (Team Lead, Arc
|
|
|
14
14
|
|
|
15
15
|
### Step 1 — Locate the OpenCode config file
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
**`opencode.jsonc` is the canonical name and OVERRIDES `opencode.json` when
|
|
18
|
+
both exist — always prefer writing the `.jsonc`.**
|
|
18
19
|
|
|
19
|
-
1. **
|
|
20
|
-
2.
|
|
21
|
-
|
|
22
|
-
If neither exists, create the global one (`~/.config/opencode/opencode.jsonc`) so the team is available in every project.
|
|
20
|
+
1. **Global config:** `~/.config/opencode/opencode.jsonc` (Windows: `C:\Users\<user>\.config\opencode\opencode.jsonc`) — patch it when present.
|
|
21
|
+
2. If only an `opencode.json` exists in that directory, **migrate**: copy its full content into a new `opencode.jsonc` and add the plugin entry there (leave the original `.json` untouched — the migration guarantees nothing is lost).
|
|
22
|
+
3. If neither exists, create the global `opencode.jsonc` fresh so the team is available in every project.
|
|
23
23
|
|
|
24
24
|
### Step 2 — Add the plugin entry
|
|
25
25
|
|
|
@@ -40,6 +40,16 @@ If a `"plugin"` array already exists, append the string to it. If the entry is a
|
|
|
40
40
|
|
|
41
41
|
The plugin is resolved and loaded **once at startup**. The user must fully quit and restart OpenCode (Desktop: quit from the tray/menu, not just close the window; CLI: restart the `opencode` process).
|
|
42
42
|
|
|
43
|
+
### Network note (mainland China)
|
|
44
|
+
|
|
45
|
+
This guide is served from `raw.githubusercontent.com`, which is often
|
|
46
|
+
unreachable from mainland-China networks. If fetching it fails, retry with
|
|
47
|
+
the mirror prefix — `https://ghproxy.net/` + the same full URL. Both hosts
|
|
48
|
+
are on TeamMode's seeded `tm_webfetch` allowlist, so the governed fetch tool
|
|
49
|
+
can read either. After the plugin is installed and OpenCode restarted, the
|
|
50
|
+
same guide also ships inside the package at
|
|
51
|
+
`<opencode-cache>/packages/@te_river+opencode-team-mode@<version>/docs/installation.md`.
|
|
52
|
+
|
|
43
53
|
### Step 4 — Verify
|
|
44
54
|
|
|
45
55
|
After restart, verify in this order:
|
|
@@ -113,12 +123,11 @@ https://raw.githubusercontent.com/Te-River/Opencode-TeamMode/main/docs/installat
|
|
|
113
123
|
|
|
114
124
|
### 第 1 步 — 找到 OpenCode 配置文件
|
|
115
125
|
|
|
116
|
-
|
|
126
|
+
**`opencode.jsonc` 是规范文件名,与 `opencode.json` 并存时以 jsonc 为准——始终优先写 `.jsonc`。**
|
|
117
127
|
|
|
118
|
-
1.
|
|
119
|
-
2.
|
|
120
|
-
|
|
121
|
-
都不存在时,创建全局配置(`~/.config/opencode/opencode.jsonc`),让团队在每个项目里都可用。
|
|
128
|
+
1. **全局配置:** `~/.config/opencode/opencode.jsonc`(Windows:`C:\Users\<用户名>\.config\opencode\opencode.jsonc`)——存在则直接改它。
|
|
129
|
+
2. 该目录下只有 `opencode.json` 时,**先迁移**:把它的完整内容复制进新的 `opencode.jsonc`,再在 jsonc 里加插件条目(原 `.json` 原样保留——迁移保证什么都不丢)。
|
|
130
|
+
3. 两者都不存在时,新建全局 `opencode.jsonc`,让团队在每个项目里都可用。
|
|
122
131
|
|
|
123
132
|
### 第 2 步 — 加入插件条目
|
|
124
133
|
|
|
@@ -139,6 +148,14 @@ https://raw.githubusercontent.com/Te-River/Opencode-TeamMode/main/docs/installat
|
|
|
139
148
|
|
|
140
149
|
插件只在**启动时**解析和加载一次。用户需要完全退出并重启 OpenCode(桌面版:从托盘/菜单退出,不是只关窗口;CLI:重启 `opencode` 进程)。
|
|
141
150
|
|
|
151
|
+
### 网络提示(中国大陆)
|
|
152
|
+
|
|
153
|
+
本指南托管在 `raw.githubusercontent.com`,中国大陆网络经常无法直达。抓取
|
|
154
|
+
失败时改用镜像前缀重试——`https://ghproxy.net/` + 同样的完整 URL。两个主机
|
|
155
|
+
都在 TeamMode 的 `tm_webfetch` 种子白名单内,受治理的抓取工具可以直读。
|
|
156
|
+
插件装好、OpenCode 重启之后,同一份指南也在包内:
|
|
157
|
+
`<opencode-cache>/packages/@te_river+opencode-team-mode@<版本>/docs/installation.md`。
|
|
158
|
+
|
|
142
159
|
### 第 4 步 — 验证
|
|
143
160
|
|
|
144
161
|
重启后按顺序验证:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@te-river/opencode-team-mode",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.9",
|
|
4
4
|
"description": "Team collaboration mode plugin for OpenCode Desktop — injects specialized agents (architect, reviewer, implementer, tester, researcher) and team workflow commands into your OpenCode workspace.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|