Skip to content

Commit 7b5bb1c

Browse files
authored
Merge pull request #76 from budiga/token-plan-openapi
Token plan openapi
2 parents 0ba705f + 33b1df0 commit 7b5bb1c

5 files changed

Lines changed: 23 additions & 23 deletions

File tree

packages/cli/README.zh.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ bl quota request --model qwen3.6-plus --tpm 6000000 # 申请临时 TPM 提额
124124
bl quota history # 查看提额历史记录
125125

126126
# Token Plan 团队版管理(需 AK/SK,见下方认证说明)
127-
bl token-plan seats # 查看订阅席位明细
127+
bl token-plan list-seats # 查看订阅席位明细
128128
bl token-plan add-member --account-name dev --org-id org_xxx
129129
bl token-plan assign-seats --workspace-id ws_xxx --seat-type standard --account-id acc_xxx
130130
bl token-plan create-key --account-id acc_xxx --workspace-id ws_xxx

packages/cli/src/commands/catalog.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,10 @@ import quotaList from "./quota/list.ts";
4646
import quotaRequest from "./quota/request.ts";
4747
import quotaHistory from "./quota/history.ts";
4848
import quotaCheck from "./quota/check.ts";
49-
import tokenplanSeats from "./token-plan/seats.ts";
50-
import tokenplanCreateKey from "./token-plan/create-key.ts";
51-
import tokenplanAssignSeats from "./token-plan/assign-seats.ts";
52-
import tokenplanAddMember from "./token-plan/add-member.ts";
49+
import tokenPlanListSeats from "./token-plan/list-seats.ts";
50+
import tokenPlanCreateKey from "./token-plan/create-key.ts";
51+
import tokenPlanAssignSeats from "./token-plan/assign-seats.ts";
52+
import tokenPlanAddMember from "./token-plan/add-member.ts";
5353

5454
/** Command registry map (no dependency on registry.ts — safe for build-time import). */
5555
export const commands: Record<string, Command> = {
@@ -98,9 +98,9 @@ export const commands: Record<string, Command> = {
9898
"quota request": quotaRequest,
9999
"quota history": quotaHistory,
100100
"quota check": quotaCheck,
101-
"token-plan seats": tokenplanSeats,
102-
"token-plan create-key": tokenplanCreateKey,
103-
"token-plan assign-seats": tokenplanAssignSeats,
104-
"token-plan add-member": tokenplanAddMember,
101+
"token-plan list-seats": tokenPlanListSeats,
102+
"token-plan create-key": tokenPlanCreateKey,
103+
"token-plan assign-seats": tokenPlanAssignSeats,
104+
"token-plan add-member": tokenPlanAddMember,
105105
update: update,
106106
};

packages/cli/src/commands/token-plan/seats.ts renamed to packages/cli/src/commands/token-plan/list-seats.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ const API_ACTION = "GetSubscriptionSeatDetails";
2323
const API_PATH = "/tokenplan/subscription/seat-detail";
2424

2525
export default defineCommand({
26-
name: "token-plan seats",
26+
name: "token-plan list-seats",
2727
description: "List Token Plan subscription seat details",
28-
usage: "bl token-plan seats [flags]",
28+
usage: "bl token-plan list-seats [flags]",
2929
options: [
3030
{ flag: "--page-no <n>", description: "Page number (default: 1)", type: "number" },
3131
{ flag: "--page-size <n>", description: "Page size (default: 10)", type: "number" },
@@ -52,9 +52,9 @@ export default defineCommand({
5252
...TOKEN_PLAN_AK_OPTIONS,
5353
],
5454
examples: [
55-
"bl token-plan seats",
56-
"bl token-plan seats --page-size 20 --status NORMAL",
57-
"bl token-plan seats --query-assigned true --seat-type standard",
55+
"bl token-plan list-seats",
56+
"bl token-plan list-seats --page-size 20 --status NORMAL",
57+
"bl token-plan list-seats --query-assigned true --seat-type standard",
5858
],
5959
async run(config: Config, flags: GlobalFlags) {
6060
const format = detectOutputFormat(config.output);

skills/bailian-cli/reference/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ Use this index for the full quick index and global flags.
4848
| `bl token-plan add-member` | Add a member to a Token Plan organization | [token-plan.md](token-plan.md) |
4949
| `bl token-plan assign-seats` | Batch assign Token Plan seats to members | [token-plan.md](token-plan.md) |
5050
| `bl token-plan create-key` | Create a Token Plan API key for a seat | [token-plan.md](token-plan.md) |
51-
| `bl token-plan seats` | List Token Plan subscription seat details | [token-plan.md](token-plan.md) |
51+
| `bl token-plan list-seats` | List Token Plan subscription seat details | [token-plan.md](token-plan.md) |
5252
| `bl update` | Update bl to the latest version | [update.md](update.md) |
5353
| `bl usage free` | Query free-tier quota for models (all models if --model is omitted) | [usage.md](usage.md) |
5454
| `bl usage freetier` | Enable or disable auto-stop for free-tier models. Enables by default; use --off to disable | [usage.md](usage.md) |
@@ -81,7 +81,7 @@ Use this index for the full quick index and global flags.
8181
| `search` | `web` | [search.md](search.md) |
8282
| `speech` | `recognize`, `synthesize` | [speech.md](speech.md) |
8383
| `text` | `chat` | [text.md](text.md) |
84-
| `token-plan` | `add-member`, `assign-seats`, `create-key`, `seats` | [token-plan.md](token-plan.md) |
84+
| `token-plan` | `add-member`, `assign-seats`, `create-key`, `list-seats` | [token-plan.md](token-plan.md) |
8585
| `update` | `(root)` | [update.md](update.md) |
8686
| `usage` | `free`, `freetier`, `stats` | [usage.md](usage.md) |
8787
| `video` | `download`, `edit`, `generate`, `ref`, `task get` | [video.md](video.md) |

skills/bailian-cli/reference/token-plan.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Index: [index.md](index.md)
1212
| `bl token-plan add-member` | Add a member to a Token Plan organization |
1313
| `bl token-plan assign-seats` | Batch assign Token Plan seats to members |
1414
| `bl token-plan create-key` | Create a Token Plan API key for a seat |
15-
| `bl token-plan seats` | List Token Plan subscription seat details |
15+
| `bl token-plan list-seats` | List Token Plan subscription seat details |
1616

1717
## Command details
1818

@@ -112,13 +112,13 @@ bl token-plan create-key --account-id acc_123 --workspace-id ws_456
112112
bl token-plan create-key --account-id acc_123 --workspace-id ws_456 --description 'Dev key'
113113
```
114114

115-
### `bl token-plan seats`
115+
### `bl token-plan list-seats`
116116

117117
| Field | Value |
118118
| --------------- | ----------------------------------------- |
119-
| **Name** | `token-plan seats` |
119+
| **Name** | `token-plan list-seats` |
120120
| **Description** | List Token Plan subscription seat details |
121-
| **Usage** | `bl token-plan seats [flags]` |
121+
| **Usage** | `bl token-plan list-seats [flags]` |
122122

123123
#### Options
124124

@@ -139,13 +139,13 @@ bl token-plan create-key --account-id acc_123 --workspace-id ws_456 --descriptio
139139
#### Examples
140140

141141
```bash
142-
bl token-plan seats
142+
bl token-plan list-seats
143143
```
144144

145145
```bash
146-
bl token-plan seats --page-size 20 --status NORMAL
146+
bl token-plan list-seats --page-size 20 --status NORMAL
147147
```
148148

149149
```bash
150-
bl token-plan seats --query-assigned true --seat-type standard
150+
bl token-plan list-seats --query-assigned true --seat-type standard
151151
```

0 commit comments

Comments
 (0)