crewbee 0.1.7 → 0.1.8

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
@@ -36,9 +36,10 @@ The current version already delivers a complete **CrewBee → OpenCode** MVP pat
36
36
 
37
37
  ## Quick Links
38
38
 
39
+ - [CrewBeeLab Website](https://crewbeelab.github.io)
39
40
  - [Installation Guide](docs/guide/installation.md)
41
+ - [Custom Agent Team Guide](docs/guide/custom-agent-team.md)
40
42
  - [Release Guide](docs/guide/release.md)
41
- - [Architecture](docs/architecture.md)
42
43
 
43
44
  ## Agent IDs in OpenCode
44
45
 
@@ -61,7 +62,6 @@ The same id is used for OpenCode `default_agent`, session-level selection, deleg
61
62
  * [Core Features](#core-features)
62
63
  * [Installation](#installation)
63
64
  * [Quick Start](#quick-start)
64
- * [Architecture at a Glance](#architecture-at-a-glance)
65
65
  * [How Agent Teams and Agent Profiles Are Defined](#how-agent-teams-and-agent-profiles-are-defined)
66
66
  * [How the OpenCode Runtime Works](#how-the-opencode-runtime-works)
67
67
  * [Built-in Coding Team Design](#built-in-coding-team-design)
@@ -301,30 +301,10 @@ After installation:
301
301
  2. select a CrewBee projected agent (for example `coding-leader`)
302
302
  3. send requests normally
303
303
 
304
- ---
305
-
306
- ## Architecture at a Glance
307
-
308
- ```text
309
- Team Definitions
310
- -> TeamLibrary
311
- -> TeamLibrary Projection
312
- -> OpenCode Bootstrap
313
- -> OpenCode Config Patch + Session Binding
314
- -> OpenCode Plugin Hooks
315
-
316
- User-level install
317
- -> local tarball
318
- -> ~/.cache/opencode
319
- -> node_modules/crewbee
320
- -> canonical package-name entry (crewbee)
321
- -> OpenCode config
322
- ```
323
-
324
- ---
325
-
326
304
  ## How Agent Teams and Agent Profiles Are Defined
327
305
 
306
+ To design and register your own file-based Team, start with the [Custom Agent Team Guide](docs/guide/custom-agent-team.md). It walks through the real runnable directory layout, `crewbee.json` registration, Team policy design, agent role boundaries, and validation checklist.
307
+
328
308
  ### Actual file-based Team structure
329
309
 
330
310
  The real runnable file-based Team structure is currently:
@@ -352,7 +332,7 @@ Example:
352
332
  {
353
333
  "teams": [
354
334
  { "id": "coding-team", "enabled": true, "priority": 0 },
355
- { "path": "@tmp/oh-my-opencode", "enabled": true, "priority": 1 }
335
+ { "path": "@teams/research-team", "enabled": true, "priority": 1 }
356
336
  ]
357
337
  }
358
338
  ```
package/README.zh-CN.md CHANGED
@@ -36,9 +36,10 @@ CrewBee 是一个 **Team-first(团队优先)** 的 Agent Team 框架。
36
36
 
37
37
  ## 快速入口
38
38
 
39
+ - [CrewBeeLab 官网](https://crewbeelab.github.io)
39
40
  - [安装指南](docs/guide/installation.md)
41
+ - [自定义 Agent Team 指南](docs/guide/custom-agent-team.md)
40
42
  - [发布指南](docs/guide/release.md)
41
- - [架构文档](docs/architecture.md)
42
43
 
43
44
  ## OpenCode 中的 Agent ID
44
45
 
@@ -61,7 +62,6 @@ CrewBee 统一使用单一的 **canonical agent id**,贯穿投影、默认选
61
62
  * [核心特性](#核心特性)
62
63
  * [安装](#安装)
63
64
  * [快速开始](#快速开始)
64
- * [当前架构一览](#当前架构一览)
65
65
  * [Agent Team 与 Agent Profile 定义方式](#agent-team-与-agent-profile-定义方式)
66
66
  * [OpenCode 运行时是如何工作的](#opencode-运行时是如何工作的)
67
67
  * [内置 Coding Team 的设计思想](#内置-coding-team-的设计思想)
@@ -307,30 +307,10 @@ npm run version
307
307
  2. 选择 CrewBee 投影出的 agent(例如 `coding-leader`)
308
308
  3. 正常发送请求
309
309
 
310
- ---
311
-
312
- ## 当前架构一览
313
-
314
- ```text
315
- Team Definitions
316
- -> TeamLibrary
317
- -> TeamLibrary Projection
318
- -> OpenCode Bootstrap
319
- -> OpenCode Config Patch + Session Binding
320
- -> OpenCode Plugin Hooks
321
-
322
- User-level install
323
- -> local tarball
324
- -> ~/.cache/opencode
325
- -> node_modules/crewbee
326
- -> canonical package-name entry (crewbee)
327
- -> OpenCode config
328
- ```
329
-
330
-
331
-
332
310
  ## Agent Team 与 Agent Profile 定义方式
333
311
 
312
+ 如果你要设计并注册自己的文件型 Team,请先阅读 [自定义 Agent Team 指南](docs/guide/custom-agent-team.md)。它会说明真实可运行的目录结构、`crewbee.json` 注册方式、Team policy 设计、Agent 职责边界和验证清单。
313
+
334
314
  ### 文件型 Team 的实际结构
335
315
 
336
316
  当前真实可运行的文件型 Team 结构是:
@@ -346,6 +326,30 @@ teams/<team-name>/
346
326
 
347
327
  当前实现采用 **同级扁平目录**;不要求 `agents/` 或 `docs/` 子目录。
348
328
 
329
+ 当前通过以下配置控制要加载哪些文件型 Team:
330
+
331
+ ```text
332
+ ~/.config/opencode/crewbee.json
333
+ ```
334
+
335
+ 示例:
336
+
337
+ ```json
338
+ {
339
+ "teams": [
340
+ { "id": "coding-team", "enabled": true, "priority": 0 },
341
+ { "path": "@teams/research-team", "enabled": true, "priority": 1 }
342
+ ]
343
+ }
344
+ ```
345
+
346
+ 说明:
347
+
348
+ * 内置 `coding-team` 不需要 `path`
349
+ * 文件型 Team 使用 `path` 指向包含 `team.manifest.yaml` 的目录
350
+ * `@...` 路径相对于 OpenCode 配置根目录解析
351
+ * `priority` 数字越小优先级越高;最高优先级 Team 的默认 leader 会成为 CrewBee 的默认 OpenCode agent
352
+
349
353
  ### `team.manifest.yaml`
350
354
 
351
355
  负责:
@@ -8020,8 +8020,8 @@ function createCodingExecutorAgent() {
8020
8020
  { permission: "glob", pattern: "*", action: "allow" },
8021
8021
  { permission: "grep", pattern: "*", action: "allow" },
8022
8022
  { permission: "skill", pattern: "*", action: "allow" },
8023
- { permission: "edit", pattern: "*", action: "ask" },
8024
- { permission: "write", pattern: "*", action: "ask" },
8023
+ { permission: "edit", pattern: "*", action: "allow" },
8024
+ { permission: "write", pattern: "*", action: "allow" },
8025
8025
  { permission: "bash", pattern: "*", action: "allow" },
8026
8026
  { permission: "todowrite", pattern: "*", action: "allow" },
8027
8027
  { permission: "lsp_diagnostics", pattern: "*", action: "allow" }
@@ -9601,14 +9601,14 @@ function createEmbeddedCodingTeam() {
9601
9601
  ]
9602
9602
  },
9603
9603
  agentRuntime: {
9604
- "coding-leader": { provider: "openai", model: "gpt-5.4", temperature: 0.2, topP: 0.85, variant: "long-context" },
9605
- "coordination-leader": { provider: "openai", model: "gpt-5.4", temperature: 0.15, topP: 0.75 },
9606
- "coding-executor": { provider: "openai", model: "gpt-5.4", temperature: 0.25, topP: 0.9 },
9607
- "codebase-explorer": { provider: "openai", model: "gpt-5.4", temperature: 0.1, topP: 0.8 },
9608
- "web-researcher": { provider: "openai", model: "gpt-5.4", temperature: 0.2, topP: 0.85 },
9609
- reviewer: { provider: "openai", model: "gpt-5.4", temperature: 0.15, topP: 0.75 },
9610
- "principal-advisor": { provider: "openai", model: "gpt-5.4", temperature: 0.15, topP: 0.75 },
9611
- "multimodal-looker": { provider: "openai", model: "gpt-5.4", temperature: 0.2, topP: 0.85 }
9604
+ "coding-leader": { provider: "openai", model: "gpt-5.5", temperature: 0.2, topP: 0.85, variant: "long-context" },
9605
+ "coordination-leader": { provider: "openai", model: "gpt-5.5", temperature: 0.15, topP: 0.75 },
9606
+ "coding-executor": { provider: "openai", model: "gpt-5.5", temperature: 0.25, topP: 0.9 },
9607
+ "codebase-explorer": { provider: "openai", model: "gpt-5.5", temperature: 0.1, topP: 0.8 },
9608
+ "web-researcher": { provider: "openai", model: "gpt-5.5", temperature: 0.2, topP: 0.85 },
9609
+ reviewer: { provider: "openai", model: "gpt-5.5", temperature: 0.15, topP: 0.75 },
9610
+ "principal-advisor": { provider: "openai", model: "gpt-5.5", temperature: 0.15, topP: 0.75 },
9611
+ "multimodal-looker": { provider: "openai", model: "gpt-5.5", temperature: 0.2, topP: 0.85 }
9612
9612
  },
9613
9613
  tags: ["\u4EE3\u7801", "leader\u9A71\u52A8", "\u4E0A\u4E0B\u6587\u8FDE\u7EED\u6027", "\u4E3B\u6267\u884C\u8005\u4E2D\u5FC3", "\u8BC4\u5BA1\u4E2D\u5FC3", "\u8BC1\u636E\u9A71\u52A8"]
9614
9614
  };
@@ -89,8 +89,8 @@ function createCodingExecutorAgent() {
89
89
  { permission: "glob", pattern: "*", action: "allow" },
90
90
  { permission: "grep", pattern: "*", action: "allow" },
91
91
  { permission: "skill", pattern: "*", action: "allow" },
92
- { permission: "edit", pattern: "*", action: "ask" },
93
- { permission: "write", pattern: "*", action: "ask" },
92
+ { permission: "edit", pattern: "*", action: "allow" },
93
+ { permission: "write", pattern: "*", action: "allow" },
94
94
  { permission: "bash", pattern: "*", action: "allow" },
95
95
  { permission: "todowrite", pattern: "*", action: "allow" },
96
96
  { permission: "lsp_diagnostics", pattern: "*", action: "allow" },
@@ -1 +1 @@
1
- {"version":3,"file":"coding-executor.js","sourceRoot":"","sources":["../../../../../../src/agent-teams/embedded/coding-team/agents/coding-executor.ts"],"names":[],"mappings":";;AAIA,8DAwLC;AA1LD,oDAAwD;AAExD,SAAgB,yBAAyB;IACvC,OAAO,IAAA,2BAAW,EAChB;QACE,EAAE,EAAE,iBAAiB;QACrB,IAAI,EAAE,OAAO;QACb,SAAS,EAAE,UAAU;KACtB,EACD;QACE,WAAW,EAAE;YACX,WAAW,EAAE,oBAAoB;YACjC,cAAc,EAAE,iCAAiC;YACjD,WAAW,EAAE,wCAAwC;YACrD,kBAAkB,EAAE,wBAAwB;YAC5C,gBAAgB,EAAE,wCAAwC;YAC1D,aAAa,EAAE,oCAAoC;YACnD,kBAAkB,EAAE;gBAClB,QAAQ;gBACR,OAAO;gBACP,UAAU;gBACV,WAAW;gBACX,QAAQ;gBACR,YAAY;gBACZ,OAAO;aACR;SACF;QACD,kBAAkB,EAAE;YAClB,WAAW,EAAE,4EAA4E;YACzF,OAAO,EAAE;gBACP,0BAA0B;gBAC1B,2BAA2B;gBAC3B,6BAA6B;gBAC7B,wBAAwB;aACzB;YACD,SAAS,EAAE;gBACT,yBAAyB;gBACzB,wBAAwB;gBACxB,kBAAkB;aACnB;YACD,SAAS,EAAE,+EAA+E;YAC1F,i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,EAAE;gBACR,qCAAqC;gBACrC,qBAAqB;gBACrB,qBAAqB;gBACrB,eAAe;gBACf,cAAc;gBACd,mBAAmB;gBACnB,oEAAoE;aACrE;SACF;QACD,UAAU,EAAE;YACV,eAAe;YACf,mCAAmC;YACnC,WAAW;YACX,YAAY;YACZ,aAAa;YACb,sBAAsB;YACtB,4BAA4B;YAC5B,6BAA6B;YAC7B,yBAAyB;YACzB,uDAAuD;YACvD,uFAAuF;YACvF,qFAAqF;YACrF,YAAY;YACZ,SAAS;YACT,OAAO;YACP,aAAa;YACb,6BAA6B;SAC9B;QACD,YAAY,EAAE;YACZ,cAAc;YACd,cAAc;YACd,yBAAyB;YACzB,aAAa;YACb,oBAAoB;YACpB,sBAAsB;YACtB,4BAA4B;YAC5B,iDAAiD;YACjD,mBAAmB;YACnB,uDAAuD;SACxD;QACD,QAAQ,EAAE;YACR,OAAO,EAAE;gBACP,uBAAuB;gBACvB,8BAA8B;gBAC9B,sCAAsC;aACvC;YACD,MAAM,EAAE,CAAC,eAAe,EAAE,sBAAsB,EAAE,oBAAoB,CAAC;SACxE;QACD,UAAU,EAAE;YACV,QAAQ,EAAE,iBAAiB;YAC3B,oBAAoB,EAAE,4CAA4C;YAClE,iBAAiB,EAAE,CAAC;SACrB;KACF,CACF,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"coding-executor.js","sourceRoot":"","sources":["../../../../../../src/agent-teams/embedded/coding-team/agents/coding-executor.ts"],"names":[],"mappings":";;AAIA,8DAwLC;AA1LD,oDAAwD;AAExD,SAAgB,yBAAyB;IACvC,OAAO,IAAA,2BAAW,EAChB;QACE,EAAE,EAAE,iBAAiB;QACrB,IAAI,EAAE,OAAO;QACb,SAAS,EAAE,UAAU;KACtB,EACD;QACE,WAAW,EAAE;YACX,WAAW,EAAE,oBAAoB;YACjC,cAAc,EAAE,iCAAiC;YACjD,WAAW,EAAE,wCAAwC;YACrD,kBAAkB,EAAE,wBAAwB;YAC5C,gBAAgB,EAAE,wCAA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CodingTeam() {
112
112
  ],
113
113
  },
114
114
  agentRuntime: {
115
- "coding-leader": { provider: "openai", model: "gpt-5.4", temperature: 0.2, topP: 0.85, variant: "long-context" },
116
- "coordination-leader": { provider: "openai", model: "gpt-5.4", temperature: 0.15, topP: 0.75 },
117
- "coding-executor": { provider: "openai", model: "gpt-5.4", temperature: 0.25, topP: 0.9 },
118
- "codebase-explorer": { provider: "openai", model: "gpt-5.4", temperature: 0.1, topP: 0.8 },
119
- "web-researcher": { provider: "openai", model: "gpt-5.4", temperature: 0.2, topP: 0.85 },
120
- reviewer: { provider: "openai", model: "gpt-5.4", temperature: 0.15, topP: 0.75 },
121
- "principal-advisor": { provider: "openai", model: "gpt-5.4", temperature: 0.15, topP: 0.75 },
122
- "multimodal-looker": { provider: "openai", model: "gpt-5.4", temperature: 0.2, topP: 0.85 },
115
+ "coding-leader": { provider: "openai", model: "gpt-5.5", temperature: 0.2, topP: 0.85, variant: "long-context" },
116
+ "coordination-leader": { provider: "openai", model: "gpt-5.5", temperature: 0.15, topP: 0.75 },
117
+ "coding-executor": { provider: "openai", model: "gpt-5.5", temperature: 0.25, topP: 0.9 },
118
+ "codebase-explorer": { provider: "openai", model: "gpt-5.5", temperature: 0.1, topP: 0.8 },
119
+ "web-researcher": { provider: "openai", model: "gpt-5.5", temperature: 0.2, topP: 0.85 },
120
+ reviewer: { provider: "openai", model: "gpt-5.5", temperature: 0.15, topP: 0.75 },
121
+ "principal-advisor": { provider: "openai", model: "gpt-5.5", temperature: 0.15, topP: 0.75 },
122
+ "multimodal-looker": { provider: "openai", model: "gpt-5.5", temperature: 0.2, topP: 0.85 },
123
123
  },
124
124
  tags: ["代码", "leader驱动", "上下文连续性", "主执行者中心", "评审中心", "证据驱动"],
125
125
  };
@@ -1 +1 @@
1
- {"version":3,"file":"doctor.d.ts","sourceRoot":"","sources":["../../../src/install/doctor.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAE3D,wBAAsB,SAAS,CAAC,OAAO,EAAE,aAAa,GAAG,OAAO,CAAC,YAAY,CAAC,CAyB7E"}
1
+ {"version":3,"file":"doctor.d.ts","sourceRoot":"","sources":["../../../src/install/doctor.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAoB3D,wBAAsB,SAAS,CAAC,OAAO,EAAE,aAAa,GAAG,OAAO,CAAC,YAAY,CAAC,CA0B7E"}
@@ -9,6 +9,20 @@ const node_path_1 = __importDefault(require("node:path"));
9
9
  const config_writer_1 = require("./config-writer");
10
10
  const install_root_1 = require("./install-root");
11
11
  const plugin_entry_1 = require("./plugin-entry");
12
+ function hasOpenCodeManagedCrewBeePackage(installRoot) {
13
+ const bunLockPath = node_path_1.default.join(installRoot, "bun.lock");
14
+ if ((0, node_fs_1.existsSync)(bunLockPath) && /["']crewbee["']\s*:\s*\[/.test((0, node_fs_1.readFileSync)(bunLockPath, "utf8"))) {
15
+ return true;
16
+ }
17
+ const packageLockPath = node_path_1.default.join(installRoot, "package-lock.json");
18
+ if ((0, node_fs_1.existsSync)(packageLockPath) && (0, node_fs_1.readFileSync)(packageLockPath, "utf8").includes('"node_modules/crewbee"')) {
19
+ return true;
20
+ }
21
+ return false;
22
+ }
23
+ function isValidCrewBeeConfigEntry(entry, expectedPluginEntry) {
24
+ return entry === expectedPluginEntry || entry === `${expectedPluginEntry}@latest`;
25
+ }
12
26
  async function runDoctor(options) {
13
27
  const configPath = (0, install_root_1.resolveOpenCodeConfigPath)(options.configPath);
14
28
  const installRoot = (0, install_root_1.resolveInstallRoot)(options.installRoot);
@@ -17,9 +31,10 @@ async function runDoctor(options) {
17
31
  const currentPluginEntries = (0, config_writer_1.findCrewBeePluginEntries)((0, config_writer_1.readOpenCodeConfig)(configPath).config);
18
32
  const hasWorkspaceManifest = (0, node_fs_1.existsSync)(node_path_1.default.join(installRoot, "package.json"));
19
33
  const hasPackageCacheRoot = (0, node_fs_1.existsSync)(node_path_1.default.join(installRoot, "packages"));
20
- const hasInstalledPackage = (0, node_fs_1.existsSync)(node_path_1.default.join(installedPackageRoot, "package.json"));
21
- const hasPluginFile = (0, node_fs_1.existsSync)((0, plugin_entry_1.detectInstalledPluginPath)(installRoot));
22
- const configMatchesCanonical = currentPluginEntries.length === 1 && currentPluginEntries[0] === expectedPluginEntry;
34
+ const hasOpenCodeManagedPackage = hasOpenCodeManagedCrewBeePackage(installRoot);
35
+ const configMatchesCanonical = currentPluginEntries.length === 1 && isValidCrewBeeConfigEntry(currentPluginEntries[0] ?? "", expectedPluginEntry);
36
+ const hasInstalledPackage = (0, node_fs_1.existsSync)(node_path_1.default.join(installedPackageRoot, "package.json")) || hasOpenCodeManagedPackage;
37
+ const hasPluginFile = (0, node_fs_1.existsSync)((0, plugin_entry_1.detectInstalledPluginPath)(installRoot)) || (hasOpenCodeManagedPackage && configMatchesCanonical);
23
38
  const healthy = (hasWorkspaceManifest || hasPackageCacheRoot) && hasInstalledPackage && hasPluginFile && configMatchesCanonical;
24
39
  return {
25
40
  configMatchesCanonical,
@@ -1 +1 @@
1
- {"version":3,"file":"doctor.js","sourceRoot":"","sources":["../../../src/install/doctor.ts"],"names":[],"mappings":";;;;;AAQA,8BAyBC;AAjCD,qCAAqC;AACrC,0DAA6B;AAE7B,mDAA+E;AAC/E,iDAA+E;AAC/E,iDAAmH;AAG5G,KAAK,UAAU,SAAS,CAAC,OAAsB;IACpD,MAAM,UAAU,GAAG,IAAA,wCAAyB,EAAC,OAAO,CAAC,UAAU,CAAC,CAAC;IACjE,MAAM,WAAW,GAAG,IAAA,iCAAkB,EAAC,OAAO,CAAC,WAAW,CAAC,CAAC;IAC5D,MAAM,mBAAmB,GAAG,IAAA,yCAA0B,EAAC,WAAW,CAAC,CAAC;IACpE,MAAM,oBAAoB,GAAG,IAAA,yCAA0B,EAAC,WAAW,CAAC,CAAC;IACrE,MAAM,oBAAoB,GAAG,IAAA,wCA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,GAAG,oBAAoB,CAAC,MAAM,KAAK,CAAC,IAAI,yBAAyB,CAAC,oBAAoB,CAAC,CAAC,CAAC,IAAI,EAAE,EAAE,mBAAmB,CAAC,CAAC;IAClJ,MAAM,mBAAmB,GAAG,IAAA,oBAAU,EAAC,mBAAI,CAAC,IAAI,CAAC,oBAAoB,EAAE,cAAc,CAAC,CAAC,IAAI,yBAAyB,CAAC;IACrH,MAAM,aAAa,GAAG,IAAA,oBAAU,EAAC,IAAA,wCAAyB,EAAC,WAAW,CAAC,CAAC,IAAI,CAAC,yBAAyB,IAAI,sBAAsB,CAAC,CAAC;IAClI,MAAM,OAAO,GAAG,CAAC,oBAAoB,IAAI,mBAAmB,CAAC,IAAI,mBAAmB,IAAI,aAAa,IAAI,sBAAsB,CAAC;IAEhI,OAAO;QACL,sBAAsB;QACtB,UAAU;QACV,oBAAoB;QACpB,mBAAmB;QACnB,mBAAmB;QACnB,aAAa;QACb,oBAAoB;QACpB,OAAO;QACP,oBAAoB;QACpB,WAAW;KACZ,CAAC;AACJ,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "crewbee",
3
- "version": "0.1.7",
3
+ "version": "0.1.8",
4
4
  "description": "A Team-first Agent System",
5
5
  "license": "MIT",
6
6
  "repository": {