@te-river/opencode-team-mode 1.4.7 → 1.4.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 CHANGED
@@ -99,7 +99,7 @@ After installing, add the plugin to your `opencode.jsonc`:
99
99
  {
100
100
  "$schema": "https://opencode.ai/config.json",
101
101
  "plugin": [
102
- "@te-river/opencode-team-mode@latest"
102
+ "@te-river/opencode-team-mode@1.4.9"
103
103
  ]
104
104
  }
105
105
  ```
@@ -124,7 +124,7 @@ To enable TeamMode in every project, add the plugin to your global config:
124
124
  {
125
125
  "$schema": "https://opencode.ai/config.json",
126
126
  "plugin": [
127
- "@te-river/opencode-team-mode@latest"
127
+ "@te-river/opencode-team-mode@1.4.9"
128
128
  ]
129
129
  }
130
130
  ```
@@ -259,7 +259,7 @@ opencode-team-mode/
259
259
  ### How it works
260
260
 
261
261
  1. OpenCode Desktop starts and loads `opencode.json(c)`.
262
- 2. It sees `"@te-river/opencode-team-mode@latest"` in the `plugin` array and loads the npm package.
262
+ 2. It sees `"@te-river/opencode-team-mode@1.4.9"` in the `plugin` array and loads the npm package.
263
263
  3. The loader calls the plugin's `server(input, options)`, which registers a `config` hook; the hook injects 6 agents and 6 commands into the merged config.
264
264
  4. The plugin's `id: "team-mode"` is displayed as the plugin name in the Desktop UI.
265
265
  5. Agents and commands are immediately available in the Desktop UI — no file copying needed. User-defined agents with the same name always win (the plugin never clobbers them).
@@ -298,12 +298,12 @@ blackboard reserved for oversized output:
298
298
  architect → implementer → tester → reviewer(s); unknown external tech →
299
299
  researcher first. Pipelines have fixed minimums: a product change routed
300
300
  below 3 dispatches is a routing bug, and splitting one request into
301
- sub-3-dispatch pieces to dodge the gate is a protocol violation.
302
- - **Approval gate (count-based):** ≥3 planned dispatches → the lead
301
+ sub-2-dispatch pieces to dodge the gate is a protocol violation.
302
+ - **Approval gate (count-based):** ≥2 planned dispatches → the lead
303
303
  researches (reading the repo itself; a researcher dispatch only for
304
304
  unknown external tech), presents a ≤30-line plan, and **waits for your
305
- approval** before executing anything. 0-2 dispatches run with a 1-2 line
306
- notice. A task that grows a third dispatch mid-run pauses for approval.
305
+ approval** before executing anything. 0-1 dispatches run with a 1-2 line
306
+ notice. A task that grows a second dispatch mid-run pauses for approval.
307
307
  Blocking uncertainties are batched and asked immediately — never guessed,
308
308
  never drip-fed.
309
309
  - **Adaptive review:** default is ONE reviewer dispatch (correctness);
@@ -326,8 +326,15 @@ blackboard reserved for oversized output:
326
326
  - **Verbatim contracts (kept):** parallel implementers that must
327
327
  interoperate get the exact data contract (endpoints, field names, types)
328
328
  pasted verbatim into every affected dispatch.
329
- - **CHANGELOG care (kept):** delivered changes append an entry to the
330
- project's CHANGELOG.md (Keep a Changelog style) when one exists.
329
+ - **Docs sync (CHANGELOG + AGENTS.md):** delivered changes append a
330
+ CHANGELOG.md entry when one exists, and update AGENTS.md when the change
331
+ alters what it records (build/test commands, conventions, structure,
332
+ agent instructions); either file is offered for creation when missing.
333
+ Reading is deduplicated: the lead reads the README itself (the host does
334
+ not inject it), uses the host-injected AGENTS.md/CLAUDE.md copy already
335
+ in context and opens those files only when genuinely absent — and
336
+ specialists never re-open these docs, since conventions arrive
337
+ distilled inside their dispatches.
331
338
 
332
339
  ### Triage — questions don't become code edits
333
340
 
@@ -359,7 +366,7 @@ Default is **5 days**. To choose your own, use the tuple plugin form in
359
366
  {
360
367
  "$schema": "https://opencode.ai/config.json",
361
368
  "plugin": [
362
- ["@te-river/opencode-team-mode@latest", { "ttlDays": 7 }]
369
+ ["@te-river/opencode-team-mode@1.4.9", { "ttlDays": 7 }]
363
370
  ]
364
371
  }
365
372
  ```
@@ -383,7 +390,7 @@ team**):
383
390
  ```jsonc
384
391
  {
385
392
  "plugin": [
386
- ["@te-river/opencode-team-mode@latest", { "defaultAgent": false }]
393
+ ["@te-river/opencode-team-mode@1.4.9", { "defaultAgent": false }]
387
394
  ]
388
395
  }
389
396
  ```
package/README.zh-CN.md CHANGED
@@ -99,7 +99,7 @@ npm link
99
99
  {
100
100
  "$schema": "https://opencode.ai/config.json",
101
101
  "plugin": [
102
- "@te-river/opencode-team-mode@latest"
102
+ "@te-river/opencode-team-mode@1.4.9"
103
103
  ]
104
104
  }
105
105
  ```
@@ -122,7 +122,7 @@ npm link
122
122
  {
123
123
  "$schema": "https://opencode.ai/config.json",
124
124
  "plugin": [
125
- "@te-river/opencode-team-mode@latest"
125
+ "@te-river/opencode-team-mode@1.4.9"
126
126
  ]
127
127
  }
128
128
  ```
@@ -218,7 +218,7 @@ team 完成。
218
218
  ```
219
219
 
220
220
  用户只输入了任务本身和"批准,开始"。流水线是路由表查表的结果;执行在
221
- 计划获批前一步不动;每次交接都是结构化骨架——零文件仪式。
221
+ 计划获批前一步不动;每次交接都是结构化骨架——零文件仪式。
222
222
 
223
223
  ### 桌面版专属特性
224
224
 
@@ -254,7 +254,7 @@ opencode-team-mode/
254
254
  ### 工作原理
255
255
 
256
256
  1. OpenCode 桌面版启动,加载 `opencode.json(c)`
257
- 2. 检测到 `plugin` 数组中的 `"@te-river/opencode-team-mode@latest"`,加载 npm 包
257
+ 2. 检测到 `plugin` 数组中的 `"@te-river/opencode-team-mode@1.4.9"`,加载 npm 包
258
258
  3. 加载器调用插件的 `server(input, options)`,注册 `config` hook;hook 向合并后的配置注入 6 个 Agent 和 6 个命令
259
259
  4. 插件的 `id: "team-mode"` 作为插件名显示在桌面版 UI
260
260
  5. Agent 和命令立即在桌面版 UI 中可用 —— 无需复制任何文件;同名 Agent 以用户自定义优先(插件绝不覆盖)
@@ -287,10 +287,10 @@ opencode-team-mode/
287
287
  implementer;产品行为变更 → implementer → tester → reviewer;多模块/跨接口
288
288
  功能 → architect → implementer → tester → reviewer(s);未知外部技术 →
289
289
  researcher 前置。流水线有固定下限:产品变更路由到少于 3 次派发即是路由 bug;
290
- 把一个请求拆成多个 <3 派发的子任务以规避审批门 = 协议违规。
291
- - **审批门(按计数触发)**:预计派发 ≥3 → lead 先调研(亲自读仓库;仅未知外部
290
+ 把一个请求拆成多个 <2 派发的子任务以规避审批门 = 协议违规。
291
+ - **审批门(按计数触发)**:预计派发 ≥2 → lead 先调研(亲自读仓库;仅未知外部
292
292
  技术才派 researcher),呈交 ≤30 行计划,然后**等待你的批准**才执行任何东西。
293
- 0-2 次派发的小任务以 1-2 行通报直接开工。执行中发现需要第 3 次派发 →
293
+ 0-1 次派发的小任务以 1-2 行通报直接开工。执行中发现需要第 2 次派发 →
294
294
  暂停等批准。阻塞性不确定**立即批量问一次**——不猜测、不挤牙膏。
295
295
  - **自适应评审**:默认 1 个 reviewer 派单(correctness 维度);仅高风险画像
296
296
  ——鉴权/安全面、跨模块数据契约、≥3 文件的公共 API 变更——才升级为
@@ -306,8 +306,12 @@ opencode-team-mode/
306
306
  输出、日志、diff。纯叙述只是进度说明,不是证明。
307
307
  - **逐字契约(保留)**:需要互通的并行实现代理,其数据契约(端点、字段名、
308
308
  类型)逐字贴进每个相关派单——契约错配是集成 bug 之首。
309
- - **CHANGELOG 维护(保留)**:项目带有 CHANGELOG.md 时,交付的改动按
310
- Keep a Changelog 风格追加条目。
309
+ - **文档同步(CHANGELOG + AGENTS.md)**:交付的改动在 CHANGELOG.md 存在时按
310
+ Keep a Changelog 风格追加条目;当改动会影响 AGENTS.md 所记录的内容
311
+ (构建/测试命令、约定、项目结构、agent 指引)时同步更新它;任一文件缺失
312
+ 时提议代建。阅读去重:README 由 lead 亲自阅读(宿主不会注入);
313
+ AGENTS.md/CLAUDE.md 若宿主已注入则直接使用上下文中的副本——仅在确实缺失时
314
+ 才打开文件;专家不会自己去重读这些文档——约定由 lead 蒸馏进派单。
311
315
 
312
316
  ### Triage —— 提问不会变成代码修改
313
317
 
@@ -334,7 +338,7 @@ Team Lead 不再删除任务目录 —— 跑完的黑板原地留给你回看
334
338
  {
335
339
  "$schema": "https://opencode.ai/config.json",
336
340
  "plugin": [
337
- ["@te-river/opencode-team-mode@latest", { "ttlDays": 7 }]
341
+ ["@te-river/opencode-team-mode@1.4.9", { "ttlDays": 7 }]
338
342
  ]
339
343
  }
340
344
  ```
@@ -353,7 +357,7 @@ TeamMode 默认**把 Team 设为你的默认代理**——新会话直接由团
353
357
  ```jsonc
354
358
  {
355
359
  "plugin": [
356
- ["@te-river/opencode-team-mode@latest", { "defaultAgent": false }]
360
+ ["@te-river/opencode-team-mode@1.4.9", { "defaultAgent": false }]
357
361
  ]
358
362
  }
359
363
  ```
@@ -1 +1 @@
1
- {"version":3,"file":"agents.d.ts","sourceRoot":"","sources":["../src/agents.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AA4hB7C,eAAO,MAAM,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,WAAW,CAO9C,CAAA"}
1
+ {"version":3,"file":"agents.d.ts","sourceRoot":"","sources":["../src/agents.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AA0iB7C,eAAO,MAAM,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,WAAW,CAO9C,CAAA"}