@xiaoailazy/coexistree-cli
v0.2.0
Published
CoExistree Agent CLI — tasks, documents, and knowledge-tree ask via HTTP
Downloads
25
Maintainers
Readme
@xiaoailazy/coexistree-cli
CoExistree Agent CLI:产研任务、系统提问。配合 @xiaoailazy/coexistree-skills 供各类 Agent 使用。
安装
npm install -g @xiaoailazy/coexistree-cli一键(CLI + Skills):npm install -g @xiaoailazy/coexistree
本地开发:
cd packages/cli && npm install && npm link配置(推荐)
在 Web 密钥管理 开启并复制 Agent Key,并确认目标系统的 system code。
coexistree config initial \
--api-key "ce_从Web复制" \
--system-code "order-service" \
--base-url http://localhost:8080写入 ~/.coexistree/config.json(权限 600)。之后所有子命令自动读取,无需 --env-file。
| 子命令 | 说明 |
|--------|------|
| config initial | 创建/覆盖配置(已有文件需 --force) |
| config show | 查看配置(api-key 脱敏) |
| config path | 打印配置文件路径 |
| task create | 创建任务并上传需求 .md |
| task list | 任务列表(scope: 待开发 / 待补用例) |
| task pull | 拉取 REQUIREMENT / DESIGN / TEST_CASE 到本地 |
| task upload | 上传 DESIGN / TEST_CASE(必填 .md 路径) |
| ask | 向系统提问 |
自定义路径:coexistree --config /path/to/config.json ...
覆盖优先级(高→低)
- 已存在的环境变量
--env-file(仅填充尚未设置的变量)- 配置文件
- 全局
--base-url
使用
coexistree task create --title "迭代 1" docs/req.md
coexistree task list
coexistree task pull --task-id 42 --doc-type REQUIREMENT
coexistree task upload --task-id 42 --doc-type DESIGN docs/superpowers/specs/...-design.md
coexistree ask --question "变更批次失败时有哪些 stage?"上传需求/设计不会自动合并进知识树;合并在 Web 对任务执行「应用变更」。
发布
cd packages/cli
npm test
npm publish --access public需已登录 npm 且对 @xiaoailazy 作用域有发布权限。
