Skip to content

Commit 7c1be39

Browse files
Merge pull request #53 from modelstudioai/feat/delete-apiDocs
feat: No longer expose API documentation
2 parents b730a26 + a96f3a2 commit 7c1be39

22 files changed

Lines changed: 60 additions & 118 deletions

File tree

docs/agents/branch-merge-review.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ git diff --name-only <base>...<head>
5757
- [ ] **新命令 / 新 flag** 已同步到用户面文档:
5858
- [README.md](README.md) + [README.zh.md](README.zh.md)(中英文都要,常漏 `_CN`)
5959
- (SKILL.md 已迁出本仓库,由 `npx add skills` 机制独立维护,不在本仓库 review 范围)
60-
- [ ] **`bl <cmd> --help`** 文案完整:`description` / `examples` / `apiDocs` 都填了
60+
- [ ] **`bl <cmd> --help`** 文案完整:`description` / `examples` 都填了
6161
- [ ] **demo / quickstart**:用户可调用的新命令至少有一个示例
6262
- [ ] **行为变化的老命令**:在 commit message / CHANGELOG 注明用户感知的差异
6363
- [ ] **错误信息 / 提示文案**:面向用户的字符串通顺、双语(项目主体是中文场景)

docs/agents/command-add-remove.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
命令元数据以 **`catalog.ts` 为单一登记处**;`registry.ts` 只负责解析与打印 help,不再内嵌命令表或手写 Resources 列表。
2828

2929
```
30-
commands/<...>.ts defineCommand({ name, description, usage, options, examples, apiDocs?, run })
30+
commands/<...>.ts defineCommand({ name, description, usage, options, examples, run })
3131
3232
commands/catalog.ts export const commands: Record<string, Command>
3333
@@ -53,7 +53,6 @@ registry.ts main.ts tools/generate-reference.ts export-schema.ts
5353
- 增删 `import xxx from "./.../xxx.ts"`
5454
-`export const commands` 里增删 `"<group> <action>": xxx`(key 与 `defineCommand({ name })` 一致)
5555
- [ ] **不要**`registry.ts` 里重复登记命令(已从 catalog 读取)
56-
- [ ] 命令需在 `bl help` / `reference/` 展示 API 文档链接时,在 `defineCommand` 里设 `apiDocs`(相对路径);help 与 reference 均从此字段生成
5756
- [ ] 如果命令需要鉴权之外的特殊路径,看 `packages/cli/src/main.ts``NO_AUTH_SETUP`
5857
- [ ] **`config/export-schema.ts`**: 若新命令不适合作为 agent tool,评估是否加入 `SKIP_PREFIXES`;该文件在 `run()``import("../catalog.ts")`,勿顶层 import catalog 以免循环依赖
5958

packages/cli/src/commands/file/upload.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ import { emitResult, emitBare } from "../../output/output.ts";
1212
export default defineCommand({
1313
name: "file upload",
1414
description: "Upload a local file to DashScope temporary storage (48h)",
15-
apiDocs: "/developer-reference/get-temporary-file-url",
1615
usage: "bl file upload --file <path> --model <model>",
1716
options: [
1817
{

packages/cli/src/commands/image/edit.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ import {
3232
export default defineCommand({
3333
name: "image edit",
3434
description: "Edit an existing image with text instructions (Qwen-Image)",
35-
apiDocs: "/developer-reference/qwen-image-edit-api",
3635
usage: "bl image edit --image <url> --prompt <text> [flags]",
3736
options: [
3837
{

packages/cli/src/commands/image/generate.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ function isSyncModel(model: string): boolean {
4343
export default defineCommand({
4444
name: "image generate",
4545
description: "Generate images (Qwen-Image / wan2.x)",
46-
apiDocs: "/best-practice/wanx/text-to-image",
4746
usage: "bl image generate --prompt <text> [flags]",
4847
options: [
4948
{ flag: "--prompt <text>", description: "Image description", required: true },

packages/cli/src/commands/omni/chat.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ function buildWavHeader(dataLength: number): Buffer {
4444
export default defineCommand({
4545
name: "omni",
4646
description: "Multimodal chat with text + audio output (Qwen-Omni)",
47-
apiDocs: "/model-studio/qwen-omni",
4847
usage: "bl omni --message <text> [flags]",
4948
options: [
5049
{

packages/cli/src/commands/speech/recognize.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ import { emitResult, emitBare } from "../../output/output.ts";
2525
export default defineCommand({
2626
name: "speech recognize",
2727
description: "Recognize speech from audio files (FunAudio-ASR)",
28-
apiDocs: "/developer-reference/recording-file-recognition",
2928
usage: "bl speech recognize --url <audio-url> [flags]",
3029
options: [
3130
{

packages/cli/src/commands/speech/synthesize.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,6 @@ function printVoiceList(model: string): void {
144144
export default defineCommand({
145145
name: "speech synthesize",
146146
description: "Synthesize speech from text (CosyVoice TTS)",
147-
apiDocs: "/developer-reference/cosyvoice",
148147
usage: "bl speech synthesize --text <text> [flags]",
149148
options: [
150149
{ flag: "--text <text>", description: "Text to synthesize into speech", required: true },

packages/cli/src/commands/text/chat.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@ function parseMessages(flags: GlobalFlags): ParsedMessages {
7070
export default defineCommand({
7171
name: "text chat",
7272
description: "Send a chat completion (OpenAI compatible, DashScope)",
73-
apiDocs: "/compatibility-of-openai-with-dashscope",
7473
usage: "bl text chat --message <text> [flags]",
7574
options: [
7675
{ flag: "--model <model>", description: "Model ID (default: qwen3.7-max)" },

packages/cli/src/commands/video/edit.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ export default defineCommand({
3131
name: "video edit",
3232
description:
3333
"Edit a video with happyhorse-1.0-video-edit (style transfer, object replacement, etc.)",
34-
apiDocs: "/best-practice/wanx/video-edit",
3534
usage: "bl video edit --video <url> --prompt <text> [flags]",
3635
options: [
3736
{ flag: "--model <model>", description: "Model ID (default: happyhorse-1.0-video-edit)" },

0 commit comments

Comments
 (0)