codex-slot 0.1.30 → 0.1.31

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.
Files changed (2) hide show
  1. package/dist/cli.js +8 -23
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -10,37 +10,22 @@ const service_control_1 = require("./service-control");
10
10
  const status_command_1 = require("./status-command");
11
11
  const text_1 = require("./text");
12
12
  /**
13
- * 生成根 help 中的 relay 与模型出口命令说明。
13
+ * 生成根 help relay 与模型出口相关的示例命令。
14
14
  *
15
15
  * 业务含义:
16
- * 1. Commander 默认命令列表会按终端宽度折行,中英混排时可读性较差。
17
- * 2. 最近新增的 relay/use/current 命令需要用固定双语格式补充业务含义和使用方式。
16
+ * 1. 根 help 的主命令列表保持 Commander 默认风格。
17
+ * 2. relay/use/current 的常见用法只补充到示例区,避免额外文档块打断整体格式。
18
18
  *
19
19
  * @returns 可追加到根 help 的多行说明。
20
20
  * @throws 无显式抛出。
21
21
  */
22
- function renderRelayCommandHelp() {
22
+ function renderRelayCommandExamples() {
23
23
  return [
24
- "",
25
- "中转命令 / Relay commands:",
26
- " cslot relay add <name> --base-url <url> --api-key <key>",
27
- " 中文: 新增 OpenAI-compatible 中转槽位。",
28
- " English: Add an OpenAI-compatible relay slot.",
24
+ " cslot relay add third --base-url https://relay.example.com/v1 --api-key <key>",
29
25
  " cslot relay list",
30
- " 中文: 查看全部中转槽位,API key 会脱敏。",
31
- " English: List relay slots with API keys masked.",
32
- " cslot relay enable <name> / cslot relay disable <name>",
33
- " 中文: 控制某个中转槽位是否参与模型出口选择。",
34
- " English: Enable or disable a relay slot for model routing.",
35
- " cslot use relay <name>",
36
- " 中文: 固定模型请求走指定中转槽位。",
37
- " English: Route model requests through the selected relay slot.",
26
+ " cslot use relay third",
38
27
  " cslot use auth",
39
- " 中文: 恢复使用官方 Codex 账号池。",
40
- " English: Restore routing through the official Codex auth pool.",
41
- " cslot current",
42
- " 中文: 查看当前模型出口和 Codex App 登录态选择。",
43
- " English: Show the active model route and Codex App auth selection."
28
+ " cslot current"
44
29
  ];
45
30
  }
46
31
  /**
@@ -63,7 +48,7 @@ function configureRootProgram(program) {
63
48
  " cslot rename work work-main",
64
49
  " cslot start --port 4399",
65
50
  " cslot status --no-interactive",
66
- ...renderRelayCommandHelp(),
51
+ ...renderRelayCommandExamples(),
67
52
  "",
68
53
  `${(0, text_1.bi)("说明", "Notes")}:`,
69
54
  ` ${(0, text_1.bi)("`import current ~` 里的 current 只是示例槽位名,不是内置账号或工作空间。", "`current` in `import current ~` is only an example slot name, not a built-in account or workspace.")}`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "codex-slot",
3
- "version": "0.1.30",
3
+ "version": "0.1.31",
4
4
  "description": "本地 Codex 多账号切换与状态管理工具",
5
5
  "type": "commonjs",
6
6
  "main": "dist/cli.js",