crewbee 0.1.3
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/LICENSE +21 -0
- package/README.md +631 -0
- package/README.zh-CN.md +613 -0
- package/bin/crewbee.js +18 -0
- package/dist/opencode-plugin.mjs +25619 -0
- package/dist/src/adapters/index.d.ts +36 -0
- package/dist/src/adapters/index.d.ts.map +1 -0
- package/dist/src/adapters/index.js +59 -0
- package/dist/src/adapters/index.js.map +1 -0
- package/dist/src/adapters/opencode/bootstrap.d.ts +40 -0
- package/dist/src/adapters/opencode/bootstrap.d.ts.map +1 -0
- package/dist/src/adapters/opencode/bootstrap.js +207 -0
- package/dist/src/adapters/opencode/bootstrap.js.map +1 -0
- package/dist/src/adapters/opencode/capabilities.d.ts +3 -0
- package/dist/src/adapters/opencode/capabilities.d.ts.map +1 -0
- package/dist/src/adapters/opencode/capabilities.js +18 -0
- package/dist/src/adapters/opencode/capabilities.js.map +1 -0
- package/dist/src/adapters/opencode/chat-message-hook.d.ts +19 -0
- package/dist/src/adapters/opencode/chat-message-hook.d.ts.map +1 -0
- package/dist/src/adapters/opencode/chat-message-hook.js +48 -0
- package/dist/src/adapters/opencode/chat-message-hook.js.map +1 -0
- package/dist/src/adapters/opencode/coexistence.d.ts +24 -0
- package/dist/src/adapters/opencode/coexistence.d.ts.map +1 -0
- package/dist/src/adapters/opencode/coexistence.js +28 -0
- package/dist/src/adapters/opencode/coexistence.js.map +1 -0
- package/dist/src/adapters/opencode/compaction-hook.d.ts +9 -0
- package/dist/src/adapters/opencode/compaction-hook.d.ts.map +1 -0
- package/dist/src/adapters/opencode/compaction-hook.js +11 -0
- package/dist/src/adapters/opencode/compaction-hook.js.map +1 -0
- package/dist/src/adapters/opencode/config-hook.d.ts +19 -0
- package/dist/src/adapters/opencode/config-hook.d.ts.map +1 -0
- package/dist/src/adapters/opencode/config-hook.js +82 -0
- package/dist/src/adapters/opencode/config-hook.js.map +1 -0
- package/dist/src/adapters/opencode/config-merge.d.ts +13 -0
- package/dist/src/adapters/opencode/config-merge.d.ts.map +1 -0
- package/dist/src/adapters/opencode/config-merge.js +76 -0
- package/dist/src/adapters/opencode/config-merge.js.map +1 -0
- package/dist/src/adapters/opencode/delegation/continuity.d.ts +5 -0
- package/dist/src/adapters/opencode/delegation/continuity.d.ts.map +1 -0
- package/dist/src/adapters/opencode/delegation/continuity.js +79 -0
- package/dist/src/adapters/opencode/delegation/continuity.js.map +1 -0
- package/dist/src/adapters/opencode/delegation/output.d.ts +52 -0
- package/dist/src/adapters/opencode/delegation/output.d.ts.map +1 -0
- package/dist/src/adapters/opencode/delegation/output.js +40 -0
- package/dist/src/adapters/opencode/delegation/output.js.map +1 -0
- package/dist/src/adapters/opencode/delegation/prompt.d.ts +12 -0
- package/dist/src/adapters/opencode/delegation/prompt.d.ts.map +1 -0
- package/dist/src/adapters/opencode/delegation/prompt.js +54 -0
- package/dist/src/adapters/opencode/delegation/prompt.js.map +1 -0
- package/dist/src/adapters/opencode/delegation/resolve-agent.d.ts +10 -0
- package/dist/src/adapters/opencode/delegation/resolve-agent.d.ts.map +1 -0
- package/dist/src/adapters/opencode/delegation/resolve-agent.js +45 -0
- package/dist/src/adapters/opencode/delegation/resolve-agent.js.map +1 -0
- package/dist/src/adapters/opencode/delegation/sdk-response.d.ts +4 -0
- package/dist/src/adapters/opencode/delegation/sdk-response.d.ts.map +1 -0
- package/dist/src/adapters/opencode/delegation/sdk-response.js +10 -0
- package/dist/src/adapters/opencode/delegation/sdk-response.js.map +1 -0
- package/dist/src/adapters/opencode/delegation/store.d.ts +27 -0
- package/dist/src/adapters/opencode/delegation/store.d.ts.map +1 -0
- package/dist/src/adapters/opencode/delegation/store.js +147 -0
- package/dist/src/adapters/opencode/delegation/store.js.map +1 -0
- package/dist/src/adapters/opencode/delegation/tool-result.d.ts +7 -0
- package/dist/src/adapters/opencode/delegation/tool-result.d.ts.map +1 -0
- package/dist/src/adapters/opencode/delegation/tool-result.js +38 -0
- package/dist/src/adapters/opencode/delegation/tool-result.js.map +1 -0
- package/dist/src/adapters/opencode/delegation/tools.d.ts +111 -0
- package/dist/src/adapters/opencode/delegation/tools.d.ts.map +1 -0
- package/dist/src/adapters/opencode/delegation/tools.js +260 -0
- package/dist/src/adapters/opencode/delegation/tools.js.map +1 -0
- package/dist/src/adapters/opencode/delegation/types.d.ts +95 -0
- package/dist/src/adapters/opencode/delegation/types.d.ts.map +1 -0
- package/dist/src/adapters/opencode/delegation/types.js +3 -0
- package/dist/src/adapters/opencode/delegation/types.js.map +1 -0
- package/dist/src/adapters/opencode/event-hook.d.ts +11 -0
- package/dist/src/adapters/opencode/event-hook.d.ts.map +1 -0
- package/dist/src/adapters/opencode/event-hook.js +66 -0
- package/dist/src/adapters/opencode/event-hook.js.map +1 -0
- package/dist/src/adapters/opencode/index.d.ts +10 -0
- package/dist/src/adapters/opencode/index.d.ts.map +1 -0
- package/dist/src/adapters/opencode/index.js +39 -0
- package/dist/src/adapters/opencode/index.js.map +1 -0
- package/dist/src/adapters/opencode/logging.d.ts +4 -0
- package/dist/src/adapters/opencode/logging.d.ts.map +1 -0
- package/dist/src/adapters/opencode/logging.js +18 -0
- package/dist/src/adapters/opencode/logging.js.map +1 -0
- package/dist/src/adapters/opencode/permission-mapper.d.ts +14 -0
- package/dist/src/adapters/opencode/permission-mapper.d.ts.map +1 -0
- package/dist/src/adapters/opencode/permission-mapper.js +59 -0
- package/dist/src/adapters/opencode/permission-mapper.js.map +1 -0
- package/dist/src/adapters/opencode/plugin.d.ts +4 -0
- package/dist/src/adapters/opencode/plugin.d.ts.map +1 -0
- package/dist/src/adapters/opencode/plugin.js +77 -0
- package/dist/src/adapters/opencode/plugin.js.map +1 -0
- package/dist/src/adapters/opencode/projection.d.ts +106 -0
- package/dist/src/adapters/opencode/projection.d.ts.map +1 -0
- package/dist/src/adapters/opencode/projection.js +196 -0
- package/dist/src/adapters/opencode/projection.js.map +1 -0
- package/dist/src/adapters/opencode/prompt-builder.d.ts +17 -0
- package/dist/src/adapters/opencode/prompt-builder.d.ts.map +1 -0
- package/dist/src/adapters/opencode/prompt-builder.js +100 -0
- package/dist/src/adapters/opencode/prompt-builder.js.map +1 -0
- package/dist/src/adapters/opencode/system-transform-hook.d.ts +8 -0
- package/dist/src/adapters/opencode/system-transform-hook.d.ts.map +1 -0
- package/dist/src/adapters/opencode/system-transform-hook.js +22 -0
- package/dist/src/adapters/opencode/system-transform-hook.js.map +1 -0
- package/dist/src/adapters/opencode/tool-domain.d.ts +9 -0
- package/dist/src/adapters/opencode/tool-domain.d.ts.map +1 -0
- package/dist/src/adapters/opencode/tool-domain.js +15 -0
- package/dist/src/adapters/opencode/tool-domain.js.map +1 -0
- package/dist/src/adapters/opencode/tool-hooks.d.ts +30 -0
- package/dist/src/adapters/opencode/tool-hooks.d.ts.map +1 -0
- package/dist/src/adapters/opencode/tool-hooks.js +128 -0
- package/dist/src/adapters/opencode/tool-hooks.js.map +1 -0
- package/dist/src/agent-teams/constants.d.ts +7 -0
- package/dist/src/agent-teams/constants.d.ts.map +1 -0
- package/dist/src/agent-teams/constants.js +10 -0
- package/dist/src/agent-teams/constants.js.map +1 -0
- package/dist/src/agent-teams/documentation.d.ts +3 -0
- package/dist/src/agent-teams/documentation.d.ts.map +1 -0
- package/dist/src/agent-teams/documentation.js +30 -0
- package/dist/src/agent-teams/documentation.js.map +1 -0
- package/dist/src/agent-teams/embedded/coding-team/agent-helpers.d.ts +4 -0
- package/dist/src/agent-teams/embedded/coding-team/agent-helpers.d.ts.map +1 -0
- package/dist/src/agent-teams/embedded/coding-team/agent-helpers.js +17 -0
- package/dist/src/agent-teams/embedded/coding-team/agent-helpers.js.map +1 -0
- package/dist/src/agent-teams/embedded/coding-team/agents/codebase-explorer.d.ts +3 -0
- package/dist/src/agent-teams/embedded/coding-team/agents/codebase-explorer.d.ts.map +1 -0
- package/dist/src/agent-teams/embedded/coding-team/agents/codebase-explorer.js +186 -0
- package/dist/src/agent-teams/embedded/coding-team/agents/codebase-explorer.js.map +1 -0
- package/dist/src/agent-teams/embedded/coding-team/agents/coding-executor.d.ts +3 -0
- package/dist/src/agent-teams/embedded/coding-team/agents/coding-executor.d.ts.map +1 -0
- package/dist/src/agent-teams/embedded/coding-team/agents/coding-executor.js +188 -0
- package/dist/src/agent-teams/embedded/coding-team/agents/coding-executor.js.map +1 -0
- package/dist/src/agent-teams/embedded/coding-team/agents/coding-leader.d.ts +3 -0
- package/dist/src/agent-teams/embedded/coding-team/agents/coding-leader.d.ts.map +1 -0
- package/dist/src/agent-teams/embedded/coding-team/agents/coding-leader.js +360 -0
- package/dist/src/agent-teams/embedded/coding-team/agents/coding-leader.js.map +1 -0
- package/dist/src/agent-teams/embedded/coding-team/agents/coordination-leader.d.ts +3 -0
- package/dist/src/agent-teams/embedded/coding-team/agents/coordination-leader.d.ts.map +1 -0
- package/dist/src/agent-teams/embedded/coding-team/agents/coordination-leader.js +378 -0
- package/dist/src/agent-teams/embedded/coding-team/agents/coordination-leader.js.map +1 -0
- package/dist/src/agent-teams/embedded/coding-team/agents/index.d.ts +3 -0
- package/dist/src/agent-teams/embedded/coding-team/agents/index.d.ts.map +1 -0
- package/dist/src/agent-teams/embedded/coding-team/agents/index.js +24 -0
- package/dist/src/agent-teams/embedded/coding-team/agents/index.js.map +1 -0
- package/dist/src/agent-teams/embedded/coding-team/agents/multimodal-looker.d.ts +3 -0
- package/dist/src/agent-teams/embedded/coding-team/agents/multimodal-looker.d.ts.map +1 -0
- package/dist/src/agent-teams/embedded/coding-team/agents/multimodal-looker.js +147 -0
- package/dist/src/agent-teams/embedded/coding-team/agents/multimodal-looker.js.map +1 -0
- package/dist/src/agent-teams/embedded/coding-team/agents/principal-advisor.d.ts +3 -0
- package/dist/src/agent-teams/embedded/coding-team/agents/principal-advisor.d.ts.map +1 -0
- package/dist/src/agent-teams/embedded/coding-team/agents/principal-advisor.js +284 -0
- package/dist/src/agent-teams/embedded/coding-team/agents/principal-advisor.js.map +1 -0
- package/dist/src/agent-teams/embedded/coding-team/agents/reviewer.d.ts +3 -0
- package/dist/src/agent-teams/embedded/coding-team/agents/reviewer.d.ts.map +1 -0
- package/dist/src/agent-teams/embedded/coding-team/agents/reviewer.js +285 -0
- package/dist/src/agent-teams/embedded/coding-team/agents/reviewer.js.map +1 -0
- package/dist/src/agent-teams/embedded/coding-team/agents/web-researcher.d.ts +3 -0
- package/dist/src/agent-teams/embedded/coding-team/agents/web-researcher.d.ts.map +1 -0
- package/dist/src/agent-teams/embedded/coding-team/agents/web-researcher.js +284 -0
- package/dist/src/agent-teams/embedded/coding-team/agents/web-researcher.js.map +1 -0
- package/dist/src/agent-teams/embedded/coding-team.d.ts +3 -0
- package/dist/src/agent-teams/embedded/coding-team.d.ts.map +1 -0
- package/dist/src/agent-teams/embedded/coding-team.js +143 -0
- package/dist/src/agent-teams/embedded/coding-team.js.map +1 -0
- package/dist/src/agent-teams/filesystem.d.ts +42 -0
- package/dist/src/agent-teams/filesystem.d.ts.map +1 -0
- package/dist/src/agent-teams/filesystem.js +349 -0
- package/dist/src/agent-teams/filesystem.js.map +1 -0
- package/dist/src/agent-teams/index.d.ts +9 -0
- package/dist/src/agent-teams/index.d.ts.map +1 -0
- package/dist/src/agent-teams/index.js +28 -0
- package/dist/src/agent-teams/index.js.map +1 -0
- package/dist/src/agent-teams/library.d.ts +5 -0
- package/dist/src/agent-teams/library.d.ts.map +1 -0
- package/dist/src/agent-teams/library.js +116 -0
- package/dist/src/agent-teams/library.js.map +1 -0
- package/dist/src/agent-teams/parsers.d.ts +5 -0
- package/dist/src/agent-teams/parsers.d.ts.map +1 -0
- package/dist/src/agent-teams/parsers.js +755 -0
- package/dist/src/agent-teams/parsers.js.map +1 -0
- package/dist/src/agent-teams/types.d.ts +6 -0
- package/dist/src/agent-teams/types.d.ts.map +1 -0
- package/dist/src/agent-teams/types.js +3 -0
- package/dist/src/agent-teams/types.js.map +1 -0
- package/dist/src/agent-teams/validation.d.ts +5 -0
- package/dist/src/agent-teams/validation.d.ts.map +1 -0
- package/dist/src/agent-teams/validation.js +130 -0
- package/dist/src/agent-teams/validation.js.map +1 -0
- package/dist/src/catalog/build-prompt-catalog.d.ts +7 -0
- package/dist/src/catalog/build-prompt-catalog.d.ts.map +1 -0
- package/dist/src/catalog/build-prompt-catalog.js +83 -0
- package/dist/src/catalog/build-prompt-catalog.js.map +1 -0
- package/dist/src/cli/doctor.d.ts +6 -0
- package/dist/src/cli/doctor.d.ts.map +1 -0
- package/dist/src/cli/doctor.js +37 -0
- package/dist/src/cli/doctor.js.map +1 -0
- package/dist/src/cli/index.d.ts +2 -0
- package/dist/src/cli/index.d.ts.map +1 -0
- package/dist/src/cli/index.js +6 -0
- package/dist/src/cli/index.js.map +1 -0
- package/dist/src/cli/install.d.ts +7 -0
- package/dist/src/cli/install.d.ts.map +1 -0
- package/dist/src/cli/install.js +55 -0
- package/dist/src/cli/install.js.map +1 -0
- package/dist/src/cli/parse-command-path-options.d.ts +7 -0
- package/dist/src/cli/parse-command-path-options.d.ts.map +1 -0
- package/dist/src/cli/parse-command-path-options.js +51 -0
- package/dist/src/cli/parse-command-path-options.js.map +1 -0
- package/dist/src/cli/parse-install-options.d.ts +3 -0
- package/dist/src/cli/parse-install-options.d.ts.map +1 -0
- package/dist/src/cli/parse-install-options.js +85 -0
- package/dist/src/cli/parse-install-options.js.map +1 -0
- package/dist/src/cli/render-help.d.ts +2 -0
- package/dist/src/cli/render-help.d.ts.map +1 -0
- package/dist/src/cli/render-help.js +26 -0
- package/dist/src/cli/render-help.js.map +1 -0
- package/dist/src/cli/run-cli.d.ts +8 -0
- package/dist/src/cli/run-cli.d.ts.map +1 -0
- package/dist/src/cli/run-cli.js +52 -0
- package/dist/src/cli/run-cli.js.map +1 -0
- package/dist/src/cli/uninstall-user.d.ts +6 -0
- package/dist/src/cli/uninstall-user.d.ts.map +1 -0
- package/dist/src/cli/uninstall-user.js +32 -0
- package/dist/src/cli/uninstall-user.js.map +1 -0
- package/dist/src/cli/version.d.ts +8 -0
- package/dist/src/cli/version.d.ts.map +1 -0
- package/dist/src/cli/version.js +69 -0
- package/dist/src/cli/version.js.map +1 -0
- package/dist/src/core/index.d.ts +299 -0
- package/dist/src/core/index.d.ts.map +1 -0
- package/dist/src/core/index.js +3 -0
- package/dist/src/core/index.js.map +1 -0
- package/dist/src/core/prompt-model.d.ts +63 -0
- package/dist/src/core/prompt-model.d.ts.map +1 -0
- package/dist/src/core/prompt-model.js +3 -0
- package/dist/src/core/prompt-model.js.map +1 -0
- package/dist/src/install/config-writer.d.ts +19 -0
- package/dist/src/install/config-writer.d.ts.map +1 -0
- package/dist/src/install/config-writer.js +97 -0
- package/dist/src/install/config-writer.js.map +1 -0
- package/dist/src/install/doctor.d.ts +3 -0
- package/dist/src/install/doctor.d.ts.map +1 -0
- package/dist/src/install/doctor.js +36 -0
- package/dist/src/install/doctor.js.map +1 -0
- package/dist/src/install/index.d.ts +11 -0
- package/dist/src/install/index.d.ts.map +1 -0
- package/dist/src/install/index.js +32 -0
- package/dist/src/install/index.js.map +1 -0
- package/dist/src/install/install-root.d.ts +4 -0
- package/dist/src/install/install-root.d.ts.map +1 -0
- package/dist/src/install/install-root.js +66 -0
- package/dist/src/install/install-root.js.map +1 -0
- package/dist/src/install/install.d.ts +6 -0
- package/dist/src/install/install.d.ts.map +1 -0
- package/dist/src/install/install.js +72 -0
- package/dist/src/install/install.js.map +1 -0
- package/dist/src/install/jsonc.d.ts +2 -0
- package/dist/src/install/jsonc.d.ts.map +1 -0
- package/dist/src/install/jsonc.js +114 -0
- package/dist/src/install/jsonc.js.map +1 -0
- package/dist/src/install/local-tarball.d.ts +5 -0
- package/dist/src/install/local-tarball.d.ts.map +1 -0
- package/dist/src/install/local-tarball.js +48 -0
- package/dist/src/install/local-tarball.js.map +1 -0
- package/dist/src/install/package-manager.d.ts +15 -0
- package/dist/src/install/package-manager.d.ts.map +1 -0
- package/dist/src/install/package-manager.js +69 -0
- package/dist/src/install/package-manager.js.map +1 -0
- package/dist/src/install/plugin-entry.d.ts +6 -0
- package/dist/src/install/plugin-entry.d.ts.map +1 -0
- package/dist/src/install/plugin-entry.js +29 -0
- package/dist/src/install/plugin-entry.js.map +1 -0
- package/dist/src/install/types.d.ts +57 -0
- package/dist/src/install/types.d.ts.map +1 -0
- package/dist/src/install/types.js +3 -0
- package/dist/src/install/types.js.map +1 -0
- package/dist/src/install/uninstall.d.ts +3 -0
- package/dist/src/install/uninstall.d.ts.map +1 -0
- package/dist/src/install/uninstall.js +28 -0
- package/dist/src/install/uninstall.js.map +1 -0
- package/dist/src/install/workspace.d.ts +7 -0
- package/dist/src/install/workspace.d.ts.map +1 -0
- package/dist/src/install/workspace.js +39 -0
- package/dist/src/install/workspace.js.map +1 -0
- package/dist/src/loader/markdown-body-loader.d.ts +4 -0
- package/dist/src/loader/markdown-body-loader.d.ts.map +1 -0
- package/dist/src/loader/markdown-body-loader.js +49 -0
- package/dist/src/loader/markdown-body-loader.js.map +1 -0
- package/dist/src/loader/profile-loader.d.ts +10 -0
- package/dist/src/loader/profile-loader.d.ts.map +1 -0
- package/dist/src/loader/profile-loader.js +145 -0
- package/dist/src/loader/profile-loader.js.map +1 -0
- package/dist/src/manager/index.d.ts +24 -0
- package/dist/src/manager/index.d.ts.map +1 -0
- package/dist/src/manager/index.js +68 -0
- package/dist/src/manager/index.js.map +1 -0
- package/dist/src/normalize/build-agent-prompt-source.d.ts +6 -0
- package/dist/src/normalize/build-agent-prompt-source.d.ts.map +1 -0
- package/dist/src/normalize/build-agent-prompt-source.js +81 -0
- package/dist/src/normalize/build-agent-prompt-source.js.map +1 -0
- package/dist/src/normalize/build-team-prompt-source.d.ts +5 -0
- package/dist/src/normalize/build-team-prompt-source.d.ts.map +1 -0
- package/dist/src/normalize/build-team-prompt-source.js +77 -0
- package/dist/src/normalize/build-team-prompt-source.js.map +1 -0
- package/dist/src/normalize/normalize-document.d.ts +3 -0
- package/dist/src/normalize/normalize-document.d.ts.map +1 -0
- package/dist/src/normalize/normalize-document.js +54 -0
- package/dist/src/normalize/normalize-document.js.map +1 -0
- package/dist/src/normalize/normalize-value.d.ts +5 -0
- package/dist/src/normalize/normalize-value.d.ts.map +1 -0
- package/dist/src/normalize/normalize-value.js +63 -0
- package/dist/src/normalize/normalize-value.js.map +1 -0
- package/dist/src/plan/build-prompt-plan.d.ts +3 -0
- package/dist/src/plan/build-prompt-plan.d.ts.map +1 -0
- package/dist/src/plan/build-prompt-plan.js +75 -0
- package/dist/src/plan/build-prompt-plan.js.map +1 -0
- package/dist/src/projection/apply-prompt-projection.d.ts +6 -0
- package/dist/src/projection/apply-prompt-projection.d.ts.map +1 -0
- package/dist/src/projection/apply-prompt-projection.js +43 -0
- package/dist/src/projection/apply-prompt-projection.js.map +1 -0
- package/dist/src/render/structural-renderer.d.ts +10 -0
- package/dist/src/render/structural-renderer.d.ts.map +1 -0
- package/dist/src/render/structural-renderer.js +114 -0
- package/dist/src/render/structural-renderer.js.map +1 -0
- package/dist/src/runtime/index.d.ts +8 -0
- package/dist/src/runtime/index.d.ts.map +1 -0
- package/dist/src/runtime/index.js +22 -0
- package/dist/src/runtime/index.js.map +1 -0
- package/dist/src/runtime/logging.d.ts +9 -0
- package/dist/src/runtime/logging.d.ts.map +1 -0
- package/dist/src/runtime/logging.js +12 -0
- package/dist/src/runtime/logging.js.map +1 -0
- package/dist/src/runtime/registries/available-tools.d.ts +13 -0
- package/dist/src/runtime/registries/available-tools.d.ts.map +1 -0
- package/dist/src/runtime/registries/available-tools.js +55 -0
- package/dist/src/runtime/registries/available-tools.js.map +1 -0
- package/dist/src/runtime/registries/index.d.ts +3 -0
- package/dist/src/runtime/registries/index.d.ts.map +1 -0
- package/dist/src/runtime/registries/index.js +12 -0
- package/dist/src/runtime/registries/index.js.map +1 -0
- package/dist/src/runtime/registries/plugin-tools.d.ts +14 -0
- package/dist/src/runtime/registries/plugin-tools.d.ts.map +1 -0
- package/dist/src/runtime/registries/plugin-tools.js +41 -0
- package/dist/src/runtime/registries/plugin-tools.js.map +1 -0
- package/dist/src/runtime/team-library-projection.d.ts +16 -0
- package/dist/src/runtime/team-library-projection.d.ts.map +1 -0
- package/dist/src/runtime/team-library-projection.js +100 -0
- package/dist/src/runtime/team-library-projection.js.map +1 -0
- package/dist/src/runtime/types.d.ts +36 -0
- package/dist/src/runtime/types.d.ts.map +1 -0
- package/dist/src/runtime/types.js +3 -0
- package/dist/src/runtime/types.js.map +1 -0
- package/dist/src/version/package-version.d.ts +3 -0
- package/dist/src/version/package-version.d.ts.map +1 -0
- package/dist/src/version/package-version.js +31 -0
- package/dist/src/version/package-version.js.map +1 -0
- package/opencode-plugin.mjs +7 -0
- package/package.json +56 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 CrewBee
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,631 @@
|
|
|
1
|
+
# CrewBee
|
|
2
|
+
|
|
3
|
+
[English](README.md) | [简体中文](README.zh-CN.md)
|
|
4
|
+
|
|
5
|
+
CrewBee is a **Team-first** Agent Team framework.
|
|
6
|
+
|
|
7
|
+
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
|
+
|
|
9
|
+
The current version already delivers a complete **CrewBee → OpenCode** MVP path:
|
|
10
|
+
|
|
11
|
+
* host-agnostic Team / Agent definitions
|
|
12
|
+
* Team Library assembly and validation
|
|
13
|
+
* Runtime Projection with formal leader default entry selection
|
|
14
|
+
* OpenCode agent projection, aliases, config patching, and session binding
|
|
15
|
+
* OpenCode plugin entry, delegation tools, event wiring, and system prompt injection
|
|
16
|
+
* local build, user-level install, doctor checks, and uninstall flow
|
|
17
|
+
|
|
18
|
+
> In short:
|
|
19
|
+
>
|
|
20
|
+
> **CrewBee = Agent Team definition framework + Runtime Projection layer + host adapter layer (currently OpenCode)**
|
|
21
|
+
|
|
22
|
+
---
|
|
23
|
+
|
|
24
|
+
## Table of Contents
|
|
25
|
+
|
|
26
|
+
* [What CrewBee Is](#what-crewbee-is)
|
|
27
|
+
* [What Problems CrewBee Solves](#what-problems-crewbee-solves)
|
|
28
|
+
* [Core Features](#core-features)
|
|
29
|
+
* [Installation](#installation)
|
|
30
|
+
* [Quick Start](#quick-start)
|
|
31
|
+
* [Architecture at a Glance](#architecture-at-a-glance)
|
|
32
|
+
* [How Agent Teams and Agent Profiles Are Defined](#how-agent-teams-and-agent-profiles-are-defined)
|
|
33
|
+
* [How the OpenCode Runtime Works](#how-the-opencode-runtime-works)
|
|
34
|
+
* [Built-in Coding Team Design](#built-in-coding-team-design)
|
|
35
|
+
* [Configuration, Install, and Operations Scripts](#configuration-install-and-operations-scripts)
|
|
36
|
+
* [Uninstall](#uninstall)
|
|
37
|
+
|
|
38
|
+
---
|
|
39
|
+
|
|
40
|
+
## What CrewBee Is
|
|
41
|
+
|
|
42
|
+
In CrewBee, the real first-class object is not a single Agent, but a **Team**.
|
|
43
|
+
A Team is not just a collection of prompts; it is a structured definition unit that includes at least:
|
|
44
|
+
|
|
45
|
+
* Team identity and positioning
|
|
46
|
+
* formal leader
|
|
47
|
+
* members
|
|
48
|
+
* workflow
|
|
49
|
+
* Team shared rules
|
|
50
|
+
* Agent Profiles
|
|
51
|
+
* Prompt Projection
|
|
52
|
+
* host runtime mapping
|
|
53
|
+
|
|
54
|
+
CrewBee does not currently try to auto-select a Team for you, nor does it try to auto-decide the right organizational structure for every task.
|
|
55
|
+
At the current stage, the basic usage model is:
|
|
56
|
+
|
|
57
|
+
* the user selects a Team entry Agent in the host
|
|
58
|
+
* CrewBee projects the Team definition into the host runtime
|
|
59
|
+
* runtime semantics are maintained through session binding, delegation, and system prompt injection
|
|
60
|
+
|
|
61
|
+
---
|
|
62
|
+
|
|
63
|
+
## What Problems CrewBee Solves
|
|
64
|
+
|
|
65
|
+
CrewBee primarily solves three kinds of problems:
|
|
66
|
+
|
|
67
|
+
### 1. Turning scattered Agent practices into maintainable Team assets
|
|
68
|
+
|
|
69
|
+
Many Agent workflows still live in prompts, host configs, and informal conventions. That makes them hard to reuse, migrate, and maintain over time. CrewBee turns them into stable Team definitions.
|
|
70
|
+
|
|
71
|
+
### 2. Using different Teams for different task types instead of one prompt for everything
|
|
72
|
+
|
|
73
|
+
Coding, research, writing, analysis, and operational work do not share the same optimal working style. CrewBee’s core idea is to define different Teams for different scenarios instead of reusing one generic prompt stack everywhere.
|
|
74
|
+
|
|
75
|
+
### 3. Making execution style selectable and manageable
|
|
76
|
+
|
|
77
|
+
Many systems focus on whether agents can execute. CrewBee puts more emphasis on how they should execute: which entry point to use, when to involve support agents, and how to keep the execution path understandable and controllable.
|
|
78
|
+
|
|
79
|
+
---
|
|
80
|
+
|
|
81
|
+
## Core Features
|
|
82
|
+
|
|
83
|
+
### 1. Team-first static model
|
|
84
|
+
|
|
85
|
+
CrewBee treats Teams as first-class objects rather than isolated agent prompts.
|
|
86
|
+
That means:
|
|
87
|
+
|
|
88
|
+
* Teams have a formal leader
|
|
89
|
+
* Teams have policy
|
|
90
|
+
* Teams have members and workflow
|
|
91
|
+
* Teams have a host-agnostic structural model
|
|
92
|
+
|
|
93
|
+
### 2. Host-agnostic Runtime Projection
|
|
94
|
+
|
|
95
|
+
CrewBee first converts Team-first structures into a unified intermediate model, then maps that model into specific hosts.
|
|
96
|
+
This keeps Team / Agent definitions as host-agnostic as possible and makes long-term maintenance and future expansion easier.
|
|
97
|
+
|
|
98
|
+
### 3. OpenCode adapter and plugin runtime
|
|
99
|
+
|
|
100
|
+
CrewBee already supports the full path from Team / Agent definitions to runnable OpenCode agents, including:
|
|
101
|
+
|
|
102
|
+
* projected agent → OpenCode agent config
|
|
103
|
+
* Team / Agent prompt construction
|
|
104
|
+
* config patch generation
|
|
105
|
+
* host event integration
|
|
106
|
+
* delegation tool wiring
|
|
107
|
+
|
|
108
|
+
### 4. Prompts stay low-coupling while preserving execution semantics
|
|
109
|
+
|
|
110
|
+
CrewBee does not fall back to “one renderer per field”, nor does it dump every top-level block transparently.
|
|
111
|
+
|
|
112
|
+
Instead, it uses:
|
|
113
|
+
|
|
114
|
+
> **a small shared semantic skeleton + general structural handling + structured rendering**
|
|
115
|
+
|
|
116
|
+
For example, the Agent prompt skeleton is organized around execution thinking:
|
|
117
|
+
|
|
118
|
+
* Persona Core
|
|
119
|
+
* Responsibility Core
|
|
120
|
+
* Core Principle
|
|
121
|
+
* Scope Control
|
|
122
|
+
* Ambiguity Policy
|
|
123
|
+
* Support Triggers
|
|
124
|
+
* Collaboration
|
|
125
|
+
* Task Triage
|
|
126
|
+
* Delegation & Review
|
|
127
|
+
* Todo Discipline
|
|
128
|
+
* Completion Gate
|
|
129
|
+
* Failure Recovery
|
|
130
|
+
* Operations
|
|
131
|
+
* Output Contract
|
|
132
|
+
* Templates
|
|
133
|
+
* Guardrails
|
|
134
|
+
* Heuristics
|
|
135
|
+
* Anti Patterns
|
|
136
|
+
* Tool Skill Strategy
|
|
137
|
+
|
|
138
|
+
This helps the model quickly establish:
|
|
139
|
+
|
|
140
|
+
* who I am
|
|
141
|
+
* what I am responsible for
|
|
142
|
+
* how I normally act
|
|
143
|
+
* when to delegate / review / ask / stop
|
|
144
|
+
* what counts as done
|
|
145
|
+
* how to recover from failure
|
|
146
|
+
|
|
147
|
+
### 5. Collaboration produces directly usable delegation targets
|
|
148
|
+
|
|
149
|
+
Generated `Collaboration` output is not just a plain list of profile bindings. It combines:
|
|
150
|
+
|
|
151
|
+
* collaboration targets declared in Agent Profiles
|
|
152
|
+
* `members` descriptions from the Team Manifest
|
|
153
|
+
* projected ids that OpenCode can resolve
|
|
154
|
+
|
|
155
|
+
This lets the runtime surface delegation-ready agent entries.
|
|
156
|
+
|
|
157
|
+
### 6. Team Contract is compressed into an executable handbook
|
|
158
|
+
|
|
159
|
+
Instead of mechanically rendering the whole governance block, CrewBee compresses Team prompt output into:
|
|
160
|
+
|
|
161
|
+
* `Working Rules`
|
|
162
|
+
* `Approval & Safety`
|
|
163
|
+
|
|
164
|
+
This makes Team contracts much easier for models to consume.
|
|
165
|
+
|
|
166
|
+
### 7. User-level install and operations flow
|
|
167
|
+
|
|
168
|
+
CrewBee already includes a complete local build, user-level install, doctor, and uninstall flow, so it can be used as a stable OpenCode user-level plugin.
|
|
169
|
+
|
|
170
|
+
---
|
|
171
|
+
|
|
172
|
+
## Installation
|
|
173
|
+
|
|
174
|
+
### Shortest path for humans
|
|
175
|
+
|
|
176
|
+
If you are using an LLM Agent, just send it this:
|
|
177
|
+
|
|
178
|
+
```text
|
|
179
|
+
Please install CrewBee by following docs/guide/installation.md.
|
|
180
|
+
Use the OpenCode user-level installation flow only, not the old project-local flow.
|
|
181
|
+
```
|
|
182
|
+
|
|
183
|
+
Or read the guide yourself:
|
|
184
|
+
|
|
185
|
+
* [Installation Guide](docs/guide/installation.md)
|
|
186
|
+
|
|
187
|
+
### Shortest path for LLM Agents
|
|
188
|
+
|
|
189
|
+
Read and follow:
|
|
190
|
+
|
|
191
|
+
```text
|
|
192
|
+
docs/guide/installation.md
|
|
193
|
+
docs/guide/release.md
|
|
194
|
+
```
|
|
195
|
+
|
|
196
|
+
### One-click local install script for Windows
|
|
197
|
+
|
|
198
|
+
The repository already provides:
|
|
199
|
+
|
|
200
|
+
```bat
|
|
201
|
+
scripts\install-local-user.bat
|
|
202
|
+
```
|
|
203
|
+
|
|
204
|
+
It runs:
|
|
205
|
+
|
|
206
|
+
1. `npm install`
|
|
207
|
+
2. `npm run install:local:user`
|
|
208
|
+
3. `npm run doctor`
|
|
209
|
+
|
|
210
|
+
---
|
|
211
|
+
|
|
212
|
+
## Quick Start
|
|
213
|
+
|
|
214
|
+
### Development build
|
|
215
|
+
|
|
216
|
+
```bash
|
|
217
|
+
npm install
|
|
218
|
+
npm run typecheck
|
|
219
|
+
npm run build
|
|
220
|
+
```
|
|
221
|
+
|
|
222
|
+
### Local user-level install
|
|
223
|
+
|
|
224
|
+
Recommended from the repository root:
|
|
225
|
+
|
|
226
|
+
```bash
|
|
227
|
+
npm install
|
|
228
|
+
npm run install:local:user
|
|
229
|
+
```
|
|
230
|
+
|
|
231
|
+
This does four things:
|
|
232
|
+
|
|
233
|
+
1. builds CrewBee
|
|
234
|
+
2. packs a stable local tarball to `.artifacts/local/crewbee-local.tgz`
|
|
235
|
+
3. installs it into the OpenCode user-level package workspace at `~/.cache/opencode`
|
|
236
|
+
4. rewrites OpenCode config to the canonical plugin entry `crewbee`
|
|
237
|
+
|
|
238
|
+
### Published registry install
|
|
239
|
+
|
|
240
|
+
After `crewbee` is published to npm:
|
|
241
|
+
|
|
242
|
+
```bash
|
|
243
|
+
npm run install:registry:user
|
|
244
|
+
```
|
|
245
|
+
|
|
246
|
+
OpenCode config can also reference the plugin directly by package name:
|
|
247
|
+
|
|
248
|
+
```json
|
|
249
|
+
{
|
|
250
|
+
"plugin": ["crewbee"]
|
|
251
|
+
}
|
|
252
|
+
```
|
|
253
|
+
|
|
254
|
+
### Verify installation
|
|
255
|
+
|
|
256
|
+
```bash
|
|
257
|
+
npm run doctor
|
|
258
|
+
npm run version
|
|
259
|
+
```
|
|
260
|
+
|
|
261
|
+
`npm run version` (or `crewbee version`) reads the package version directly from `package.json` for both the current package and the installed package copy.
|
|
262
|
+
|
|
263
|
+
### Use in OpenCode
|
|
264
|
+
|
|
265
|
+
After installation:
|
|
266
|
+
|
|
267
|
+
1. open any project
|
|
268
|
+
2. select a CrewBee projected agent (for example `[CodingTeam]leader`)
|
|
269
|
+
3. send requests normally
|
|
270
|
+
|
|
271
|
+
---
|
|
272
|
+
|
|
273
|
+
## Architecture at a Glance
|
|
274
|
+
|
|
275
|
+
```text
|
|
276
|
+
Team Definitions
|
|
277
|
+
-> TeamLibrary
|
|
278
|
+
-> TeamLibrary Projection
|
|
279
|
+
-> OpenCode Bootstrap
|
|
280
|
+
-> OpenCode Config Patch + Session Binding
|
|
281
|
+
-> OpenCode Plugin Hooks
|
|
282
|
+
|
|
283
|
+
User-level install
|
|
284
|
+
-> local tarball
|
|
285
|
+
-> ~/.cache/opencode
|
|
286
|
+
-> node_modules/crewbee
|
|
287
|
+
-> canonical package-name entry (crewbee)
|
|
288
|
+
-> OpenCode config
|
|
289
|
+
```
|
|
290
|
+
|
|
291
|
+
---
|
|
292
|
+
|
|
293
|
+
## How Agent Teams and Agent Profiles Are Defined
|
|
294
|
+
|
|
295
|
+
### Actual file-based Team structure
|
|
296
|
+
|
|
297
|
+
The real runnable file-based Team structure is currently:
|
|
298
|
+
|
|
299
|
+
```text
|
|
300
|
+
<ConfiguredTeamDir>/
|
|
301
|
+
team.manifest.yaml
|
|
302
|
+
team.policy.yaml
|
|
303
|
+
<agent>.agent.md
|
|
304
|
+
<agent>.agent.md
|
|
305
|
+
TEAM.md # optional
|
|
306
|
+
```
|
|
307
|
+
|
|
308
|
+
The current implementation uses a **flat sibling layout**; it does not require `agents/` or `docs/` subdirectories.
|
|
309
|
+
|
|
310
|
+
Which file-based Teams are loaded is now controlled by:
|
|
311
|
+
|
|
312
|
+
```text
|
|
313
|
+
~/.config/opencode/crewbee.json
|
|
314
|
+
```
|
|
315
|
+
|
|
316
|
+
Example:
|
|
317
|
+
|
|
318
|
+
```json
|
|
319
|
+
{
|
|
320
|
+
"teams": [
|
|
321
|
+
{ "id": "coding-team", "enabled": true, "priority": 0 },
|
|
322
|
+
{ "path": "@tmp/oh-my-opencode", "enabled": true, "priority": 1 }
|
|
323
|
+
]
|
|
324
|
+
}
|
|
325
|
+
```
|
|
326
|
+
|
|
327
|
+
Notes:
|
|
328
|
+
|
|
329
|
+
* built-in `coding-team` has no `path`
|
|
330
|
+
* file-based Teams use `path` to point at the folder that contains `team.manifest.yaml`
|
|
331
|
+
* `@...` paths are resolved relative to the OpenCode config root
|
|
332
|
+
* lower `priority` values rank earlier; the highest-priority Team's default leader becomes CrewBee's default OpenCode agent
|
|
333
|
+
|
|
334
|
+
### `team.manifest.yaml`
|
|
335
|
+
|
|
336
|
+
It defines:
|
|
337
|
+
|
|
338
|
+
* Team identity
|
|
339
|
+
* mission / scope
|
|
340
|
+
* formal leader
|
|
341
|
+
* members
|
|
342
|
+
* workflow
|
|
343
|
+
* agent runtime overrides
|
|
344
|
+
* tags
|
|
345
|
+
|
|
346
|
+
`members` is not just descriptive. It affects:
|
|
347
|
+
|
|
348
|
+
* Team structure validation
|
|
349
|
+
* Team runtime description
|
|
350
|
+
* Collaboration prompt output
|
|
351
|
+
|
|
352
|
+
That makes `members.<agent>.responsibility / delegate_when / delegate_mode` important fields rather than decorative metadata.
|
|
353
|
+
|
|
354
|
+
### `team.policy.yaml`
|
|
355
|
+
|
|
356
|
+
It defines:
|
|
357
|
+
|
|
358
|
+
* instruction precedence
|
|
359
|
+
* approval policy
|
|
360
|
+
* forbidden actions
|
|
361
|
+
* quality floor
|
|
362
|
+
* working rules
|
|
363
|
+
|
|
364
|
+
And it is eventually compressed into two Team Contract sections:
|
|
365
|
+
|
|
366
|
+
* `Working Rules`
|
|
367
|
+
* `Approval & Safety`
|
|
368
|
+
|
|
369
|
+
### `*.agent.md`
|
|
370
|
+
|
|
371
|
+
Each file defines the static image of a single Agent, including:
|
|
372
|
+
|
|
373
|
+
* what kind of worker the Agent is
|
|
374
|
+
* what the Agent is responsible for
|
|
375
|
+
* what the Agent’s boundaries are
|
|
376
|
+
* how the Agent collaborates by default
|
|
377
|
+
* which runtime tools and permissions the Agent needs
|
|
378
|
+
* how the Agent normally outputs results
|
|
379
|
+
|
|
380
|
+
CrewBee recommends expressing key execution semantics as top-level sections, such as:
|
|
381
|
+
|
|
382
|
+
* `persona_core`
|
|
383
|
+
* `responsibility_core`
|
|
384
|
+
* `core_principle`
|
|
385
|
+
* `scope_control`
|
|
386
|
+
* `ambiguity_policy`
|
|
387
|
+
* `support_triggers`
|
|
388
|
+
* `collaboration`
|
|
389
|
+
* `task_triage`
|
|
390
|
+
* `delegation_review`
|
|
391
|
+
* `todo_discipline`
|
|
392
|
+
* `completion_gate`
|
|
393
|
+
* `failure_recovery`
|
|
394
|
+
* `operations`
|
|
395
|
+
* `output_contract`
|
|
396
|
+
* `templates`
|
|
397
|
+
* `guardrails`
|
|
398
|
+
* `heuristics`
|
|
399
|
+
* `anti_patterns`
|
|
400
|
+
* `tool_skill_strategy`
|
|
401
|
+
|
|
402
|
+
### Current capability definition path
|
|
403
|
+
|
|
404
|
+
The main capability definition path today is:
|
|
405
|
+
|
|
406
|
+
* **Agent-level capability**: `runtime_config` inside `*.agent.md`
|
|
407
|
+
* **Team-level runtime override**: `agent_runtime` inside `team.manifest.yaml`
|
|
408
|
+
* **Host-available capability set**: adapter / host capability contract
|
|
409
|
+
|
|
410
|
+
### `TEAM.md`
|
|
411
|
+
|
|
412
|
+
`TEAM.md` is a human-facing Team document.
|
|
413
|
+
It helps explain:
|
|
414
|
+
|
|
415
|
+
* what the Team does
|
|
416
|
+
* who the Leader is
|
|
417
|
+
* what each member does
|
|
418
|
+
* what the default workflow is
|
|
419
|
+
|
|
420
|
+
But it is not the source of truth.
|
|
421
|
+
The real logic source remains:
|
|
422
|
+
|
|
423
|
+
* `team.manifest.yaml`
|
|
424
|
+
* `team.policy.yaml`
|
|
425
|
+
* `*.agent.md`
|
|
426
|
+
|
|
427
|
+
### Prompt Projection
|
|
428
|
+
|
|
429
|
+
Current supported shape:
|
|
430
|
+
|
|
431
|
+
```yaml
|
|
432
|
+
prompt_projection:
|
|
433
|
+
include:
|
|
434
|
+
- persona_core
|
|
435
|
+
- responsibility_core.description
|
|
436
|
+
exclude:
|
|
437
|
+
- metadata.tags
|
|
438
|
+
labels:
|
|
439
|
+
delegation_review: Delegation & Review
|
|
440
|
+
```
|
|
441
|
+
|
|
442
|
+
Constraints:
|
|
443
|
+
|
|
444
|
+
* only `snake_case` paths are allowed
|
|
445
|
+
* `projection_schema` is not supported
|
|
446
|
+
* camelCase paths are not supported
|
|
447
|
+
|
|
448
|
+
---
|
|
449
|
+
|
|
450
|
+
## How the OpenCode Runtime Works
|
|
451
|
+
|
|
452
|
+
The current OpenCode plugin chain is roughly:
|
|
453
|
+
|
|
454
|
+
```text
|
|
455
|
+
package.json
|
|
456
|
+
-> opencode-plugin.mjs
|
|
457
|
+
-> dist/opencode-plugin.mjs
|
|
458
|
+
```
|
|
459
|
+
|
|
460
|
+
### What happens during plugin initialization
|
|
461
|
+
|
|
462
|
+
1. load the default Team Library
|
|
463
|
+
2. validate the Team Library
|
|
464
|
+
3. generate bootstrap results
|
|
465
|
+
4. build the alias index
|
|
466
|
+
5. initialize the session binding store
|
|
467
|
+
6. initialize the delegation state store
|
|
468
|
+
|
|
469
|
+
### Key hooks
|
|
470
|
+
|
|
471
|
+
#### `config`
|
|
472
|
+
|
|
473
|
+
Injects CrewBee projected agents into OpenCode config.
|
|
474
|
+
|
|
475
|
+
#### `chat.message`
|
|
476
|
+
|
|
477
|
+
Reads the currently selected agent and establishes CrewBee-side session binding.
|
|
478
|
+
|
|
479
|
+
#### `tool` / delegation tools
|
|
480
|
+
|
|
481
|
+
Registers:
|
|
482
|
+
|
|
483
|
+
* `delegate_task`
|
|
484
|
+
* `delegate_status`
|
|
485
|
+
* `delegate_cancel`
|
|
486
|
+
|
|
487
|
+
#### `tool.execute.before`
|
|
488
|
+
|
|
489
|
+
Rewrites `task.subagent_type` from aliases into projected config keys.
|
|
490
|
+
|
|
491
|
+
#### `experimental.chat.system.transform`
|
|
492
|
+
|
|
493
|
+
Injects minimal CrewBee runtime context into the system prompt:
|
|
494
|
+
|
|
495
|
+
* Team
|
|
496
|
+
* Entry Agent
|
|
497
|
+
* Active Owner
|
|
498
|
+
* Mode
|
|
499
|
+
|
|
500
|
+
---
|
|
501
|
+
|
|
502
|
+
## Built-in Coding Team Design
|
|
503
|
+
|
|
504
|
+
The most important methodological example in CrewBee right now is the built-in Coding Team.
|
|
505
|
+
|
|
506
|
+
Its core judgments include:
|
|
507
|
+
|
|
508
|
+
### 1. Leader is not the same as Planner, nor a pure Orchestrator
|
|
509
|
+
|
|
510
|
+
The Leader is the default entry, the main-path owner, and the final closure owner.
|
|
511
|
+
But the Leader is not assumed to be “coordination only”.
|
|
512
|
+
|
|
513
|
+
### 2. The role most worth separating is usually not Planner, but Reviewer
|
|
514
|
+
|
|
515
|
+
In coding work, planning, execution, and verification are tightly coupled loops.
|
|
516
|
+
What matters most is:
|
|
517
|
+
|
|
518
|
+
* context continuity
|
|
519
|
+
* end-to-end responsibility closure
|
|
520
|
+
* an independent quality perspective
|
|
521
|
+
|
|
522
|
+
So the more stable structure is usually:
|
|
523
|
+
|
|
524
|
+
* main execution owner
|
|
525
|
+
* research
|
|
526
|
+
* reviewer
|
|
527
|
+
* advisor when needed
|
|
528
|
+
|
|
529
|
+
rather than equal O / P / E splitting.
|
|
530
|
+
|
|
531
|
+
### 3. Simple tasks should not force heavy collaboration, and hard tasks should not default to heavy ceremony either
|
|
532
|
+
|
|
533
|
+
CrewBee’s position is:
|
|
534
|
+
|
|
535
|
+
* **simple tasks** should stay light
|
|
536
|
+
* **extremely hard problems** should keep context concentrated, iteration fast, and human guidance clear
|
|
537
|
+
* **complex but normal engineering work** is where structured Team collaboration is most useful
|
|
538
|
+
|
|
539
|
+
### 4. main execution owner + research + review is the more important current pattern
|
|
540
|
+
|
|
541
|
+
For coding tasks, CrewBee currently emphasizes:
|
|
542
|
+
|
|
543
|
+
* formal leader is not equal to pure manager
|
|
544
|
+
* the main execution owner can hold the main context for a long time
|
|
545
|
+
* research, review, and advisor roles are inserted only as needed
|
|
546
|
+
* reviewer remains independent from the main execution path
|
|
547
|
+
|
|
548
|
+
---
|
|
549
|
+
|
|
550
|
+
## Configuration, Install, and Operations Scripts
|
|
551
|
+
|
|
552
|
+
### Common scripts
|
|
553
|
+
|
|
554
|
+
```bash
|
|
555
|
+
npm run build
|
|
556
|
+
npm run typecheck
|
|
557
|
+
npm run test
|
|
558
|
+
npm run pack:local
|
|
559
|
+
npm run pack:release
|
|
560
|
+
npm run release:registry:dry-run
|
|
561
|
+
npm run install:local:user
|
|
562
|
+
npm run install:registry:user
|
|
563
|
+
npm run doctor
|
|
564
|
+
npm run uninstall:user
|
|
565
|
+
npm run simulate:opencode
|
|
566
|
+
npm run simulate:compact
|
|
567
|
+
```
|
|
568
|
+
|
|
569
|
+
### What they do
|
|
570
|
+
|
|
571
|
+
* `build`: build artifacts
|
|
572
|
+
* `typecheck`: run TypeScript type checks
|
|
573
|
+
* `test`: run tests
|
|
574
|
+
* `pack:local`: pack a local tarball
|
|
575
|
+
* `pack:release`: pack a versioned release tarball
|
|
576
|
+
* `release:registry:dry-run`: run the registry release preflight locally without publishing
|
|
577
|
+
* `install:local:user`: run the full user-level install
|
|
578
|
+
* `install:registry:user`: install the published npm package into the user-level workspace
|
|
579
|
+
* `doctor`: verify OpenCode config and install state
|
|
580
|
+
* `version`: show the current package version and installed package version
|
|
581
|
+
* `uninstall:user`: uninstall the user-level install
|
|
582
|
+
* `simulate:opencode`: run the local OpenCode runtime simulator
|
|
583
|
+
* `simulate:compact`: run the compact scenario verification simulator
|
|
584
|
+
|
|
585
|
+
### Default user-level workspace paths
|
|
586
|
+
|
|
587
|
+
```text
|
|
588
|
+
Config root: ~/.config/opencode
|
|
589
|
+
Install root: ~/.cache/opencode
|
|
590
|
+
```
|
|
591
|
+
|
|
592
|
+
Canonical plugin entry:
|
|
593
|
+
|
|
594
|
+
```text
|
|
595
|
+
crewbee
|
|
596
|
+
```
|
|
597
|
+
|
|
598
|
+
Release handbook:
|
|
599
|
+
|
|
600
|
+
```text
|
|
601
|
+
docs/guide/release.md
|
|
602
|
+
```
|
|
603
|
+
|
|
604
|
+
On Windows, the default still prefers:
|
|
605
|
+
|
|
606
|
+
```text
|
|
607
|
+
~/.config/opencode
|
|
608
|
+
```
|
|
609
|
+
|
|
610
|
+
If an existing OpenCode configuration is already located at `%APPDATA%/opencode`, CrewBee falls back to that existing config location for compatibility.
|
|
611
|
+
|
|
612
|
+
---
|
|
613
|
+
|
|
614
|
+
## Uninstall
|
|
615
|
+
|
|
616
|
+
Recommended:
|
|
617
|
+
|
|
618
|
+
```bash
|
|
619
|
+
npm run uninstall:user
|
|
620
|
+
```
|
|
621
|
+
|
|
622
|
+
This will:
|
|
623
|
+
|
|
624
|
+
* remove the CrewBee plugin entry from OpenCode config
|
|
625
|
+
* remove the installed package from the user-level workspace
|
|
626
|
+
|
|
627
|
+
If you want to verify the uninstall state afterward, run:
|
|
628
|
+
|
|
629
|
+
```bash
|
|
630
|
+
npm run doctor
|
|
631
|
+
```
|