@doubao-dev/cli 1.0.0-rc.8 → 1.0.0-rc.9

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
@@ -8,7 +8,13 @@ dbx auth login
8
8
  dbx init my-plugin
9
9
  ```
10
10
 
11
- 默认创建空插件;添加 App 使用 `dbx init my-plugin --app`,调试使用 `dbx dev --app`。
11
+ ## 首次创建前读取 CLI Skill
12
+
13
+ 全局安装后,用 `npm root -g` 查找全局模块目录。让开发助手读取该目录下的 `@doubao-dev/cli/dist/skills/doubao-plugin-cli/SKILL.md`。项目内安装时,从对应的 `node_modules` 目录读取。已有项目可在项目根目录运行 `dbx skills`,再读取 `.agents/skills/doubao-plugin-cli/SKILL.md`。
14
+
15
+ ## 项目开发
16
+
17
+ 默认创建空插件。用 `dbx init my-plugin --app` 添加 App,用 `dbx init my-plugin --workbench` 添加定制工作台。
12
18
  App 工具按需从 npm 下载 `@doubao-dev/plugin-app-dev` 和 `@doubao-dev/kit`。
13
19
  `dbx inspect --mcp-server [endpoint]` 使用内置的固定版本 [mcp-apps-inspector](https://code.byted.org/flow/doubao-mcp-inspector),Inspector 升级由 CLI 维护者手动更新依赖并随 dbx 发布。
14
20
  通过 `DBX_KIT_PATH=/path/to/kit dbx dev --app` 使用本地 Kit 包;相对路径以当前工作目录为基准,跳过版本检查,路径或 SDK 入口无效时报错。
@@ -16,6 +22,6 @@ App 工具按需从 npm 下载 `@doubao-dev/plugin-app-dev` 和 `@doubao-dev/kit
16
22
 
17
23
  公网 CLI 发包前,为默认 Kit 生成 `package-lock.json`,上传到 CN CDN 并回读校验。首次安装按 CLI 固定的 URL 和 SHA-256 取锁,再运行 `npm ci`。锁不可用、使用自定义 scope 镜像或指定其他 Kit 版本时使用 `npm install`。交互终端显示安装状态和实时耗时。
18
24
 
19
- 直接运行 `dbx init` 会交互询问项目名称和是否添加 App(默认不添加);指定项目名时直接创建,使用 `--app` 添加 App。
25
+ 直接运行 `dbx init` 会询问项目名,并按发布类型显示可选能力。公开项目可选普通插件、普通插件(含 App)或定制工作台,企业专属项目可选普通插件或定制工作台。
20
26
 
21
- `dbx dev` 在含 App 的项目中交互选择调试目标,无 App 时直接启动 Skill / MCP 调试。`--plugin` 和 `--app` 显式指定目标且互斥。在支持的平台和交互终端调试 App 时,CLI 按需安装同版本的 TUI renderer。Skill / MCP 调试和非 TTY 环境使用普通日志。
27
+ `dbx dev` 默认调试 Skill / MCP,含 App 时可在交互终端选择调试 App。`dbx dev --plugin`、`dbx dev --app` 和 `dbx dev --workbench` 显式指定目标,三个参数互斥。工作台调试将工作台和同工程的 MCP 同步到当前账号。交互终端调试 App 时,CLI 按需安装同版本的 TUI renderer。Skill / MCP 调试和非 TTY 环境使用普通日志。