crewbee 0.1.3 → 0.1.5
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 +34 -1
- package/README.zh-CN.md +35 -2
- package/dist/opencode-plugin.mjs +210 -232
- package/dist/src/adapters/opencode/bootstrap.d.ts.map +1 -1
- package/dist/src/adapters/opencode/bootstrap.js +8 -51
- package/dist/src/adapters/opencode/bootstrap.js.map +1 -1
- package/dist/src/adapters/opencode/chat-message-hook.d.ts.map +1 -1
- package/dist/src/adapters/opencode/chat-message-hook.js +1 -2
- package/dist/src/adapters/opencode/chat-message-hook.js.map +1 -1
- package/dist/src/adapters/opencode/coexistence.d.ts +0 -4
- package/dist/src/adapters/opencode/coexistence.d.ts.map +1 -1
- package/dist/src/adapters/opencode/coexistence.js +0 -5
- package/dist/src/adapters/opencode/coexistence.js.map +1 -1
- package/dist/src/adapters/opencode/config-hook.d.ts.map +1 -1
- package/dist/src/adapters/opencode/config-hook.js +0 -1
- package/dist/src/adapters/opencode/config-hook.js.map +1 -1
- package/dist/src/adapters/opencode/config-merge.d.ts.map +1 -1
- package/dist/src/adapters/opencode/config-merge.js +2 -30
- package/dist/src/adapters/opencode/config-merge.js.map +1 -1
- package/dist/src/adapters/opencode/delegation/continuity.d.ts.map +1 -1
- package/dist/src/adapters/opencode/delegation/continuity.js +1 -2
- package/dist/src/adapters/opencode/delegation/continuity.js.map +1 -1
- package/dist/src/adapters/opencode/delegation/prompt.d.ts.map +1 -1
- package/dist/src/adapters/opencode/delegation/prompt.js +0 -1
- package/dist/src/adapters/opencode/delegation/prompt.js.map +1 -1
- package/dist/src/adapters/opencode/delegation/resolve-agent.d.ts +1 -1
- package/dist/src/adapters/opencode/delegation/resolve-agent.d.ts.map +1 -1
- package/dist/src/adapters/opencode/delegation/resolve-agent.js +4 -16
- package/dist/src/adapters/opencode/delegation/resolve-agent.js.map +1 -1
- package/dist/src/adapters/opencode/delegation/tools.js +10 -10
- package/dist/src/adapters/opencode/delegation/tools.js.map +1 -1
- package/dist/src/adapters/opencode/delegation/types.d.ts +3 -4
- 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 +3 -5
- package/dist/src/adapters/opencode/index.js.map +1 -1
- package/dist/src/adapters/opencode/projection.d.ts +4 -11
- package/dist/src/adapters/opencode/projection.d.ts.map +1 -1
- package/dist/src/adapters/opencode/projection.js +11 -49
- package/dist/src/adapters/opencode/projection.js.map +1 -1
- package/dist/src/adapters/opencode/prompt-builder.d.ts.map +1 -1
- package/dist/src/adapters/opencode/prompt-builder.js +1 -11
- package/dist/src/adapters/opencode/prompt-builder.js.map +1 -1
- package/dist/src/agent-teams/canonical-agent-id.d.ts +12 -0
- package/dist/src/agent-teams/canonical-agent-id.d.ts.map +1 -0
- package/dist/src/agent-teams/canonical-agent-id.js +117 -0
- package/dist/src/agent-teams/canonical-agent-id.js.map +1 -0
- package/dist/src/agent-teams/constants.d.ts +1 -1
- package/dist/src/agent-teams/constants.d.ts.map +1 -1
- package/dist/src/agent-teams/constants.js +1 -1
- package/dist/src/agent-teams/constants.js.map +1 -1
- package/dist/src/agent-teams/embedded/coding-team/agents/coding-executor.d.ts.map +1 -1
- package/dist/src/agent-teams/embedded/coding-team/agents/coding-executor.js +0 -1
- package/dist/src/agent-teams/embedded/coding-team/agents/coding-executor.js.map +1 -1
- package/dist/src/agent-teams/embedded/coding-team/agents/coding-leader.d.ts.map +1 -1
- package/dist/src/agent-teams/embedded/coding-team/agents/coding-leader.js +0 -1
- package/dist/src/agent-teams/embedded/coding-team/agents/coding-leader.js.map +1 -1
- package/dist/src/agent-teams/embedded/coding-team/agents/coordination-leader.d.ts.map +1 -1
- package/dist/src/agent-teams/embedded/coding-team/agents/coordination-leader.js +0 -1
- package/dist/src/agent-teams/embedded/coding-team/agents/coordination-leader.js.map +1 -1
- package/dist/src/agent-teams/library.d.ts.map +1 -1
- package/dist/src/agent-teams/library.js +63 -19
- package/dist/src/agent-teams/library.js.map +1 -1
- package/dist/src/agent-teams/parsers.d.ts.map +1 -1
- package/dist/src/agent-teams/parsers.js +0 -1
- package/dist/src/agent-teams/parsers.js.map +1 -1
- package/dist/src/cli/install.js +1 -1
- package/dist/src/cli/install.js.map +1 -1
- package/dist/src/cli/version.js +1 -1
- package/dist/src/cli/version.js.map +1 -1
- package/dist/src/core/index.d.ts +2 -1
- package/dist/src/core/index.d.ts.map +1 -1
- package/dist/src/install/doctor.d.ts.map +1 -1
- package/dist/src/install/doctor.js +4 -3
- package/dist/src/install/doctor.js.map +1 -1
- package/dist/src/install/index.d.ts +1 -1
- package/dist/src/install/index.d.ts.map +1 -1
- package/dist/src/install/index.js +4 -1
- package/dist/src/install/index.js.map +1 -1
- package/dist/src/install/package-manager.d.ts.map +1 -1
- package/dist/src/install/package-manager.js +16 -3
- package/dist/src/install/package-manager.js.map +1 -1
- package/dist/src/install/plugin-entry.d.ts +3 -0
- package/dist/src/install/plugin-entry.d.ts.map +1 -1
- package/dist/src/install/plugin-entry.js +29 -1
- package/dist/src/install/plugin-entry.js.map +1 -1
- package/dist/src/runtime/team-library-projection.d.ts +2 -2
- package/dist/src/runtime/team-library-projection.d.ts.map +1 -1
- package/dist/src/runtime/team-library-projection.js +8 -12
- package/dist/src/runtime/team-library-projection.js.map +1 -1
- package/dist/src/runtime/types.d.ts +1 -3
- package/dist/src/runtime/types.d.ts.map +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -2,10 +2,25 @@
|
|
|
2
2
|
|
|
3
3
|
[English](README.md) | [简体中文](README.zh-CN.md)
|
|
4
4
|
|
|
5
|
+
<p align="center">
|
|
6
|
+
<img src="assets/crewbee-intro.png" alt="Turn scattered agents into real teams" width="100%" />
|
|
7
|
+
</p>
|
|
8
|
+
|
|
9
|
+
<p align="center"><strong>Team-first agent engineering for real host runtimes.</strong></p>
|
|
10
|
+
|
|
5
11
|
CrewBee is a **Team-first** Agent Team framework.
|
|
6
12
|
|
|
7
13
|
It provides a Team-oriented way to define, project, and adapt agent systems to host runtimes, turning scattered prompts, rules, and collaboration conventions into maintainable, portable, and runnable Team assets.
|
|
8
14
|
|
|
15
|
+
**Current focus:** make Team-based agent systems portable, composable, and actually runnable inside OpenCode.
|
|
16
|
+
|
|
17
|
+
## Why CrewBee
|
|
18
|
+
|
|
19
|
+
- **Team-first, not prompt-first** — model leaders, members, workflow, and policy as durable engineering assets.
|
|
20
|
+
- **Host-agnostic core** — keep Team definitions independent from any single runtime.
|
|
21
|
+
- **Projection-based runtime model** — map one Team definition into a concrete host safely and repeatably.
|
|
22
|
+
- **OpenCode-ready today** — includes the full plugin, agent projection, install, doctor, and release path.
|
|
23
|
+
|
|
9
24
|
The current version already delivers a complete **CrewBee → OpenCode** MVP path:
|
|
10
25
|
|
|
11
26
|
* host-agnostic Team / Agent definitions
|
|
@@ -19,6 +34,24 @@ The current version already delivers a complete **CrewBee → OpenCode** MVP pat
|
|
|
19
34
|
>
|
|
20
35
|
> **CrewBee = Agent Team definition framework + Runtime Projection layer + host adapter layer (currently OpenCode)**
|
|
21
36
|
|
|
37
|
+
## Quick Links
|
|
38
|
+
|
|
39
|
+
- [Installation Guide](docs/guide/installation.md)
|
|
40
|
+
- [Release Guide](docs/guide/release.md)
|
|
41
|
+
- [Architecture](docs/architecture.md)
|
|
42
|
+
|
|
43
|
+
## Agent IDs in OpenCode
|
|
44
|
+
|
|
45
|
+
CrewBee uses a single **canonical agent id** across projection, default selection, session binding, delegation, and user-facing selection.
|
|
46
|
+
|
|
47
|
+
Examples:
|
|
48
|
+
|
|
49
|
+
- `coding-leader`
|
|
50
|
+
- `coding-executor`
|
|
51
|
+
- `coding-reviewer`
|
|
52
|
+
|
|
53
|
+
The same id is used for OpenCode `default_agent`, session-level selection, delegation targets, and projected runtime/config ids shown to users.
|
|
54
|
+
|
|
22
55
|
---
|
|
23
56
|
|
|
24
57
|
## Table of Contents
|
|
@@ -265,7 +298,7 @@ npm run version
|
|
|
265
298
|
After installation:
|
|
266
299
|
|
|
267
300
|
1. open any project
|
|
268
|
-
2. select a CrewBee projected agent (for example `
|
|
301
|
+
2. select a CrewBee projected agent (for example `coding-leader`)
|
|
269
302
|
3. send requests normally
|
|
270
303
|
|
|
271
304
|
---
|
package/README.zh-CN.md
CHANGED
|
@@ -2,10 +2,25 @@
|
|
|
2
2
|
|
|
3
3
|
[English](README.md) | [简体中文](README.zh-CN.md)
|
|
4
4
|
|
|
5
|
+
<p align="center">
|
|
6
|
+
<img src="assets/crewbee-intro.png" alt="Turn scattered agents into real teams" width="100%" />
|
|
7
|
+
</p>
|
|
8
|
+
|
|
9
|
+
<p align="center"><strong>面向真实宿主运行时的 Team-first Agent 工程框架。</strong></p>
|
|
10
|
+
|
|
5
11
|
CrewBee 是一个 **Team-first(团队优先)** 的 Agent Team 框架。
|
|
6
12
|
|
|
7
13
|
它提供一套面向 Team 的定义、投影与宿主适配方式,用来把零散的 Agent prompt、规则和协作约定沉淀为可维护、可迁移、可运行的 Team 资产。
|
|
8
14
|
|
|
15
|
+
**当前重点:**让 Team 级 Agent 系统能够被稳定定义、跨宿主投影,并真正运行在 OpenCode 中。
|
|
16
|
+
|
|
17
|
+
## 为什么是 CrewBee
|
|
18
|
+
|
|
19
|
+
- **Team-first,而不是 prompt-first** —— Leader、members、workflow、policy 都是可维护的工程对象。
|
|
20
|
+
- **宿主无关核心** —— Team 定义不被某一个运行时绑死。
|
|
21
|
+
- **基于 Projection 的运行模型** —— 一套 Team 定义可以稳定映射到具体宿主。
|
|
22
|
+
- **今天就能接入 OpenCode** —— 已具备插件、agent 投影、安装、doctor 和 release 链路。
|
|
23
|
+
|
|
9
24
|
当前版本已经打通了 **CrewBee → OpenCode** 的完整 MVP 链路:
|
|
10
25
|
|
|
11
26
|
* Team / Agent 宿主无关定义
|
|
@@ -19,6 +34,24 @@ CrewBee 是一个 **Team-first(团队优先)** 的 Agent Team 框架。
|
|
|
19
34
|
>
|
|
20
35
|
> **CrewBee = Agent Team 定义框架 + Runtime Projection 层 + 宿主适配层(当前为 OpenCode)**
|
|
21
36
|
|
|
37
|
+
## 快速入口
|
|
38
|
+
|
|
39
|
+
- [安装指南](docs/guide/installation.md)
|
|
40
|
+
- [发布指南](docs/guide/release.md)
|
|
41
|
+
- [架构文档](docs/architecture.md)
|
|
42
|
+
|
|
43
|
+
## OpenCode 中的 Agent ID
|
|
44
|
+
|
|
45
|
+
CrewBee 统一使用单一的 **canonical agent id**,贯穿投影、默认选择、session binding、delegation 和用户可见名称。
|
|
46
|
+
|
|
47
|
+
例如:
|
|
48
|
+
|
|
49
|
+
- `coding-leader`
|
|
50
|
+
- `coding-executor`
|
|
51
|
+
- `coding-reviewer`
|
|
52
|
+
|
|
53
|
+
同一个 id 会同时用于 OpenCode `default_agent`、session 中显式选择的 agent、delegation 目标,以及用户可见的运行时/配置 id。
|
|
54
|
+
|
|
22
55
|
---
|
|
23
56
|
|
|
24
57
|
## 目录
|
|
@@ -271,7 +304,7 @@ npm run version
|
|
|
271
304
|
安装完成后:
|
|
272
305
|
|
|
273
306
|
1. 打开任意项目
|
|
274
|
-
2. 选择 CrewBee 投影出的 agent(例如 `
|
|
307
|
+
2. 选择 CrewBee 投影出的 agent(例如 `coding-leader`)
|
|
275
308
|
3. 正常发送请求
|
|
276
309
|
|
|
277
310
|
---
|
|
@@ -303,7 +336,7 @@ User-level install
|
|
|
303
336
|
当前真实可运行的文件型 Team 结构是:
|
|
304
337
|
|
|
305
338
|
```text
|
|
306
|
-
|
|
339
|
+
teams/<team-name>/
|
|
307
340
|
team.manifest.yaml
|
|
308
341
|
team.policy.yaml
|
|
309
342
|
<agent>.agent.md
|