crewbee 0.1.23 → 0.2.0
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 +40 -6
- package/README.zh-CN.md +15 -5
- package/dist/opencode-plugin.mjs +975 -86
- package/dist/src/adapters/opencode/delegation/types.d.ts +1 -1
- package/dist/src/adapters/opencode/delegation/types.d.ts.map +1 -1
- package/dist/src/adapters/opencode/index.d.ts +2 -1
- package/dist/src/adapters/opencode/index.d.ts.map +1 -1
- package/dist/src/adapters/opencode/index.js +7 -3
- package/dist/src/adapters/opencode/index.js.map +1 -1
- package/dist/src/adapters/opencode/permission-mapper.d.ts.map +1 -1
- package/dist/src/adapters/opencode/permission-mapper.js +11 -0
- package/dist/src/adapters/opencode/permission-mapper.js.map +1 -1
- package/dist/src/adapters/opencode/plugin-v1.d.ts +9 -0
- package/dist/src/adapters/opencode/plugin-v1.d.ts.map +1 -0
- package/dist/src/adapters/opencode/plugin-v1.js +84 -0
- package/dist/src/adapters/opencode/plugin-v1.js.map +1 -0
- package/dist/src/adapters/opencode/plugin.d.ts +18 -3
- package/dist/src/adapters/opencode/plugin.d.ts.map +1 -1
- package/dist/src/adapters/opencode/plugin.js +19 -75
- package/dist/src/adapters/opencode/plugin.js.map +1 -1
- package/dist/src/adapters/opencode/prompt-builder.d.ts.map +1 -1
- package/dist/src/adapters/opencode/prompt-builder.js +9 -2
- package/dist/src/adapters/opencode/prompt-builder.js.map +1 -1
- package/dist/src/adapters/opencode/tool-hooks.d.ts +10 -0
- package/dist/src/adapters/opencode/tool-hooks.d.ts.map +1 -1
- package/dist/src/adapters/opencode/tool-hooks.js +28 -8
- package/dist/src/adapters/opencode/tool-hooks.js.map +1 -1
- package/dist/src/adapters/opencode/v2/agent-definition.d.ts +39 -0
- package/dist/src/adapters/opencode/v2/agent-definition.d.ts.map +1 -0
- package/dist/src/adapters/opencode/v2/agent-definition.js +45 -0
- package/dist/src/adapters/opencode/v2/agent-definition.js.map +1 -0
- package/dist/src/adapters/opencode/v2/logging.d.ts +8 -0
- package/dist/src/adapters/opencode/v2/logging.d.ts.map +1 -0
- package/dist/src/adapters/opencode/v2/logging.js +45 -0
- package/dist/src/adapters/opencode/v2/logging.js.map +1 -0
- package/dist/src/adapters/opencode/v2/models.d.ts +9 -0
- package/dist/src/adapters/opencode/v2/models.d.ts.map +1 -0
- package/dist/src/adapters/opencode/v2/models.js +40 -0
- package/dist/src/adapters/opencode/v2/models.js.map +1 -0
- package/dist/src/adapters/opencode/v2/permissions.d.ts +10 -0
- package/dist/src/adapters/opencode/v2/permissions.d.ts.map +1 -0
- package/dist/src/adapters/opencode/v2/permissions.js +49 -0
- package/dist/src/adapters/opencode/v2/permissions.js.map +1 -0
- package/dist/src/adapters/opencode/v2/plugin.d.ts +20 -0
- package/dist/src/adapters/opencode/v2/plugin.d.ts.map +1 -0
- package/dist/src/adapters/opencode/v2/plugin.js +321 -0
- package/dist/src/adapters/opencode/v2/plugin.js.map +1 -0
- package/dist/src/adapters/opencode/v2/session-client.d.ts +82 -0
- package/dist/src/adapters/opencode/v2/session-client.d.ts.map +1 -0
- package/dist/src/adapters/opencode/v2/session-client.js +153 -0
- package/dist/src/adapters/opencode/v2/session-client.js.map +1 -0
- package/dist/src/adapters/opencode/v2/tool-registration.d.ts +59 -0
- package/dist/src/adapters/opencode/v2/tool-registration.d.ts.map +1 -0
- package/dist/src/adapters/opencode/v2/tool-registration.js +198 -0
- package/dist/src/adapters/opencode/v2/tool-registration.js.map +1 -0
- package/dist/src/agent-teams/canonical-agent-id.d.ts.map +1 -1
- package/dist/src/agent-teams/canonical-agent-id.js +22 -9
- package/dist/src/agent-teams/canonical-agent-id.js.map +1 -1
- package/dist/src/agent-teams/filesystem.d.ts +2 -2
- package/dist/src/agent-teams/filesystem.d.ts.map +1 -1
- package/dist/src/agent-teams/filesystem.js +13 -8
- package/dist/src/agent-teams/filesystem.js.map +1 -1
- package/dist/src/agent-teams/library.d.ts.map +1 -1
- package/dist/src/agent-teams/library.js +121 -51
- package/dist/src/agent-teams/library.js.map +1 -1
- package/dist/src/agent-teams/types.d.ts +5 -0
- package/dist/src/agent-teams/types.d.ts.map +1 -1
- package/dist/src/install/install.d.ts.map +1 -1
- package/dist/src/install/install.js +2 -1
- package/dist/src/install/install.js.map +1 -1
- package/dist/src/install/opencode-config-file.d.ts +3 -1
- package/dist/src/install/opencode-config-file.d.ts.map +1 -1
- package/dist/src/install/opencode-config-file.js +77 -19
- package/dist/src/install/opencode-config-file.js.map +1 -1
- package/dist/src/update/intent.d.ts.map +1 -1
- package/dist/src/update/intent.js +2 -1
- package/dist/src/update/intent.js.map +1 -1
- package/dist/src/update/refresh.d.ts +4 -2
- package/dist/src/update/refresh.d.ts.map +1 -1
- package/dist/src/update/refresh.js +24 -12
- package/dist/src/update/refresh.js.map +1 -1
- package/package.json +9 -3
package/README.md
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
# CrewBee
|
|
1
|
+
# CrewBee — Reusable AI Agent Teams for OpenCode
|
|
2
2
|
|
|
3
3
|
[English](README.md) | [简体中文](README.zh-CN.md)
|
|
4
4
|
|
|
5
5
|
> [!NOTE]
|
|
6
6
|
>
|
|
7
|
-
> [](https://
|
|
8
|
-
> > **CrewBee turns prompts, agents, rules, review flows, and completion criteria into maintainable Agent Team assets. <br />Visit the website [here](https://
|
|
7
|
+
> [](https://www.crewbee.art)
|
|
8
|
+
> > **CrewBee turns prompts, agents, rules, review flows, and completion criteria into maintainable Agent Team assets. <br />Visit the website [here](https://www.crewbee.art).**
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
CrewBee is an **Agent Team asset layer
|
|
11
|
+
CrewBee is an open-source **AI Agent Team framework and asset layer for OpenCode**, built for reusable multi-agent coding workflows.
|
|
12
12
|
|
|
13
|
-
It turns prompts, agents, rules, review flows, and completion criteria in engineering work into maintainable **Agent Team assets**.
|
|
13
|
+
It turns prompts, AI agents, rules, review flows, validation, and completion criteria in engineering work into maintainable **Agent Team assets**.
|
|
14
14
|
|
|
15
15
|
CrewBee helps you build reusable Agent Teams for specialized workflows: not just agents, but tools / skills strategies, workflows, rules, review flows, and completion criteria.
|
|
16
16
|
|
|
@@ -20,6 +20,8 @@ Not a prompt pack.
|
|
|
20
20
|
Not a flat agent list.
|
|
21
21
|
Not another all-in-one multi-agent runtime.
|
|
22
22
|
|
|
23
|
+
Supported hosts: **OpenCode 1.18.29+ (1.x) and 2.2.0+ (2.x)**. See the [V2 adapter and compatibility notes](docs/developer/opencode-v2-port.md).
|
|
24
|
+
|
|
23
25
|
**Available for OpenCode today.** OpenCode is CrewBee’s first officially supported host; Project Context, the Team template ecosystem, and more Agent Harness adapters are next-stage directions.
|
|
24
26
|
|
|
25
27
|
---
|
|
@@ -52,7 +54,7 @@ Simple tasks stay lightweight. Complex tasks get support, review, validation, an
|
|
|
52
54
|
|
|
53
55
|
## Quick Links
|
|
54
56
|
|
|
55
|
-
* [CrewBeeLab Website](https://
|
|
57
|
+
* [CrewBeeLab Website](https://www.crewbee.art)
|
|
56
58
|
* [Guide Index](docs/guide/README.md)
|
|
57
59
|
* User guides: [Installation](docs/guide/installation.md), [Custom Agent Teams](docs/guide/custom-agent-team.en.md), [Project-level Team Configuration](docs/guide/project-team-config.en.md)
|
|
58
60
|
* Developer guides: [Developer Index](docs/developer/README.md), [Release and CI/CD](docs/developer/release.md)
|
|
@@ -652,6 +654,38 @@ For coding tasks, CrewBee emphasizes:
|
|
|
652
654
|
|
|
653
655
|
The Coding Team should prove one thing first: complex coding tasks can be organized as a reusable Team asset, instead of being handled by a single Coder agent that writes code and declares the task done.
|
|
654
656
|
|
|
657
|
+
### Customizing the built-in Coding Team (partial override)
|
|
658
|
+
|
|
659
|
+
A file-based Team whose `id` matches an embedded Team (for example `coding-team`) no longer has to redefine every artifact. The override merges **per artifact**: you define only what you want to change, and the embedded Team fills the rest.
|
|
660
|
+
|
|
661
|
+
| Artifact in the file Team | Result |
|
|
662
|
+
| ------------------------- | ------ |
|
|
663
|
+
| `<agent>.agent.md` present | file version wins for that agent |
|
|
664
|
+
| `<agent>` absent | embedded version is used |
|
|
665
|
+
| `team.manifest.yaml` present | file version wins (whole file) |
|
|
666
|
+
| `team.manifest.yaml` absent | configuration error; the manifest is required |
|
|
667
|
+
| `team.policy.yaml` present | file version wins (whole file) |
|
|
668
|
+
| `team.policy.yaml` absent | embedded policy is used |
|
|
669
|
+
|
|
670
|
+
Minimal example — customize only `reviewer`:
|
|
671
|
+
|
|
672
|
+
```text
|
|
673
|
+
~/.config/opencode/teams/coding-team/
|
|
674
|
+
├── team.manifest.yaml # copy of the embedded manifest (or your own, covering all members)
|
|
675
|
+
└── reviewer.agent.md # only the agent you want to change
|
|
676
|
+
```
|
|
677
|
+
|
|
678
|
+
No `team.policy.yaml`, no other `.agent.md`. Result: `reviewer` is yours; the other seven agents and the policy come from the embedded Team, so upstream updates to them keep flowing.
|
|
679
|
+
|
|
680
|
+
Notes:
|
|
681
|
+
|
|
682
|
+
* An enabled file Team overlays an enabled embedded Team with the same id, regardless of their load order. Among file sources, project scope wins over global scope, then lower priority and declaration order apply. File sources do not inherit from other file sources.
|
|
683
|
+
* Each supplied Agent profile replaces the whole Agent, not individual fields. Upstream changes flow only into inherited artifacts.
|
|
684
|
+
* To replace the Team completely (for example, to remove built-in members), explicitly disable the embedded `coding-team` entry in every configuration source that enables it, and provide a complete file Team with its own policy and agents. Alternatively, use a distinct Team id. With an enabled embedded base, omitted agents are inherited.
|
|
685
|
+
* `team.manifest.yaml` stays required (it declares the Team id, leader, and members). When you write your own manifest instead of copying the embedded one, it must include member guidance for every collaboration target referenced by the merged agents, otherwise the Team fails validation and the embedded Team is kept.
|
|
686
|
+
* The winning file source controls Team ordering and default selection. An invalid override emits diagnostics and falls back to the next valid source.
|
|
687
|
+
* A pure file Team with no embedded counterpart and no `team.policy.yaml` is still a configuration error, exactly as before.
|
|
688
|
+
|
|
655
689
|
---
|
|
656
690
|
|
|
657
691
|
## Next: Project Context
|
package/README.zh-CN.md
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
# CrewBee
|
|
1
|
+
# CrewBee — 面向 OpenCode 的可复用 AI Agent Team
|
|
2
2
|
|
|
3
3
|
[English](README.md) | [简体中文](README.zh-CN.md)
|
|
4
4
|
|
|
5
5
|
> [!NOTE]
|
|
6
6
|
>
|
|
7
|
-
> [](https://
|
|
8
|
-
> > **CrewBee 把研发工作中的 prompts、agents、规则、review 流程和验收标准,整理成可维护的 Agent Team 资产。<br />访问官网:[
|
|
7
|
+
> [](https://www.crewbee.art)
|
|
8
|
+
> > **CrewBee 把研发工作中的 prompts、agents、规则、review 流程和验收标准,整理成可维护的 Agent Team 资产。<br />访问官网:[www.crewbee.art](https://www.crewbee.art)。**
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
CrewBee
|
|
11
|
+
CrewBee 是面向 OpenCode、服务于多 Agent 编程工作流的开源 **AI Agent Team 框架与资产层**。
|
|
12
12
|
|
|
13
13
|
它把研发工作中的 prompts、agents、规则、review 流程和验收标准,整理成可维护的 **Agent Team 资产**。
|
|
14
14
|
|
|
@@ -53,7 +53,7 @@ CrewBee 让你把这些内容整理成可维护的 Agent Team 资产:定义 Te
|
|
|
53
53
|
|
|
54
54
|
## 快速入口
|
|
55
55
|
|
|
56
|
-
* [CrewBeeLab 官网](https://
|
|
56
|
+
* [CrewBeeLab 官网](https://www.crewbee.art)
|
|
57
57
|
* [指南索引](docs/guide/README.zh-CN.md)
|
|
58
58
|
* 用户指南:[安装](docs/guide/installation.zh-CN.md)、[自定义 Agent Team](docs/guide/custom-agent-team.md)、[项目级 Team 配置](docs/guide/project-team-config.md)
|
|
59
59
|
* 开发者指南:[开发者索引](docs/developer/README.zh-CN.md)、[发布与 CI/CD](docs/developer/release.zh-CN.md)
|
|
@@ -637,6 +637,16 @@ CrewBee 认为:
|
|
|
637
637
|
|
|
638
638
|
---
|
|
639
639
|
|
|
640
|
+
### 局部定制内置 Coding Team
|
|
641
|
+
|
|
642
|
+
文件型 Team 与已启用的内置 Team 使用相同 `id` 时,可以只提供需要替换的 Agent Profile。`team.manifest.yaml` 仍然必需;省略的 Agent 和 `team.policy.yaml` 从内置 Team 继承。每个提供的 Agent、manifest、policy 都是整份替换,不进行字段级合并;被替换的资产不会自动获得该资产的后续上游更新。
|
|
643
|
+
|
|
644
|
+
例如,在 `crewbee.json` 中启用 `@teams/coding-team`,该目录只需包含完整的 `team.manifest.yaml` 和定制的 `reviewer.agent.md`。Agent ID 可以使用 `reviewer` 或 `coding-reviewer`,协作引用会统一归一化。
|
|
645
|
+
|
|
646
|
+
合成不依赖加载先后。同 ID 的多个文件来源仍按 project > global、priority 数字从小到大、声明顺序选择,不互相继承。有效文件来源决定 Team 的排序和默认入口;无效覆盖产生诊断并回退到下一个有效来源。
|
|
647
|
+
|
|
648
|
+
如果要完整替换 Team(例如移除内置成员),应在所有启用该内置 Team 的配置来源中显式设置 `{ "id": "coding-team", "enabled": false }`,并提供包含 policy 和 Agent 的完整文件 Team;也可以使用不同的 Team ID。内置来源启用时,省略成员表示继承,不表示删除。
|
|
649
|
+
|
|
640
650
|
## 下一步:Project Context
|
|
641
651
|
|
|
642
652
|
Project Context 是 CrewBee 下一阶段的重要产品力方向,不是当前 README 中应被写成成熟优势的能力。
|