@doubao-dev/plugin-cli 0.0.0-stage → 0.0.40-canary-dea0ddc73-20261026073950
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.
Potentially problematic release.
This version of @doubao-dev/plugin-cli might be problematic. Click here for more details.
- package/README.md +16 -2
- package/bin/run.js +16 -0
- package/dist/188.js +1691 -0
- package/dist/categories.js +8 -0
- package/dist/command.js +184 -0
- package/dist/command~1.js +45 -0
- package/dist/command~2.js +14 -0
- package/dist/command~3.js +91 -0
- package/dist/command~4.js +191 -0
- package/dist/index.d.ts +165 -0
- package/dist/index.js +5 -0
- package/dist/main.d.ts +163 -0
- package/dist/main.js +1 -0
- package/dist/plugin.js +97 -0
- package/dist/session.js +248 -0
- package/dist/skills/doubao-plugin-cli/SKILL.md +72 -0
- package/dist/skills/doubao-plugin-cli/references/cli-connectors.md +25 -0
- package/dist/skills/doubao-plugin-cli/references/mcp-apps.md +70 -0
- package/dist/skills/doubao-plugin-cli/references/mcp-auth.md +23 -0
- package/dist/skills/doubao-plugin-cli/references/project-config.md +105 -0
- package/dist/skills/doubao-plugin-cli/references/upload.md +53 -0
- package/dist/templates/standard/AGENTS.md +5 -0
- package/dist/templates/standard/README.md.template +9 -0
- package/dist/templates/standard/mcp.json +4 -0
- package/dist/templates/standard/plugin.json.template +6 -0
- package/dist/uninstall.js +12 -0
- package/package.json +53 -3
package/README.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @doubao-dev/plugin-cli
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
豆包应用插件 CLI 的公开版本,需要 Node.js >=22.13.0。
|
|
4
|
+
|
|
5
|
+
```sh
|
|
6
|
+
npm install -g @doubao-dev/plugin-cli
|
|
7
|
+
dbx auth login
|
|
8
|
+
dbx init my-plugin
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
默认创建空插件;添加 App 使用 `dbx init my-plugin --app`,调试使用 `dbx dev --app`。
|
|
12
|
+
App 工具按需从 npm 下载 `@doubao-dev/plugin-app-dev` 和 `@doubao-dev/kit`。
|
|
13
|
+
构建时从 npm 解析 Kit 的 `latest` 并锁定准确版本;发布流水线的 `kit_version` 或本地构建的 `DBX_BUILD_KIT_VERSION` 可指定 RC 版本。运行时 `DBX_KIT_VERSION` 可覆盖为准确版本;其余命令通过 `dbx --help` 查看,项目开发指引通过 `dbx skills` 同步。
|
|
14
|
+
|
|
15
|
+
直接运行 `dbx init` 会交互询问项目名称和是否添加 App(默认不添加);指定项目名时直接创建,使用 `--app` 添加 App。
|
|
16
|
+
|
|
17
|
+
`dbx dev` 在含 App 的项目中交互选择调试目标,无 App 时直接启动 Skill / MCP 调试。`--plugin` 和 `--app` 显式指定目标且互斥。Agent 使用 `--no-tui` 禁用询问和交互面板,调试 App 时同时传 `--app`。
|
package/bin/run.js
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
import { stripVTControlCharacters } from 'node:util';
|
|
4
|
+
import { log } from '@clack/prompts';
|
|
5
|
+
|
|
6
|
+
import('../dist/main.js')
|
|
7
|
+
.then(({ main }) => main())
|
|
8
|
+
.catch((error) => {
|
|
9
|
+
const message = error instanceof Error ? error.message : String(error);
|
|
10
|
+
if (process.stdin.isTTY && process.stdout.isTTY) {
|
|
11
|
+
log.error(message);
|
|
12
|
+
} else {
|
|
13
|
+
process.stderr.write(`${stripVTControlCharacters(message)}\n`);
|
|
14
|
+
}
|
|
15
|
+
process.exitCode = 1;
|
|
16
|
+
});
|