@newbeebox/newbeebox-app-engine-cli 1.2.0 → 1.3.0

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
@@ -61,6 +61,7 @@ nae apps
61
61
  |------|------|
62
62
  | `nae whoami` | 当前身份(uid/用户名/角色/命名空间) |
63
63
  | `nae quota` | 配额用量(CPU/内存/存储/应用数 的 已用/上限) |
64
+ | `nae llm` | 内置 LLM 网关状态:月度额度/本月用量/令牌前缀/内置环境变量名/按模型明细 |
64
65
  | `nae config` | 查看本地配置(密钥脱敏) |
65
66
 
66
67
  ### 应用
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@newbeebox/newbeebox-app-engine-cli",
3
- "version": "1.2.0",
3
+ "version": "1.3.0",
4
4
  "description": "NewBee App Engine 命令行客户端(nae)——参数直达、默认人类可读(加 -o json 出 JSON),便于在终端使用与脚本/管道里解析。",
5
5
  "type": "module",
6
6
  "bin": {
package/src/index.js CHANGED
@@ -15,7 +15,7 @@ const program = new Command()
15
15
  program
16
16
  .name('nae')
17
17
  .description('NewBee App Engine CLI —— 默认人类可读,-o json 输出 JSON 供脚本解析')
18
- .version('1.2.0')
18
+ .version('1.3.0')
19
19
  .option('--base-url <url>', '覆盖平台地址(也可用环境变量 NAE_BASE_URL)')
20
20
  .option('--token <token>', '覆盖访问密钥(也可用环境变量 NAE_TOKEN)')
21
21
  .option('-o, --output <format>', '输出格式:text(默认,人类可读)| json', 'text')
@@ -149,6 +149,15 @@ program
149
149
  })
150
150
  )
151
151
 
152
+ program
153
+ .command('llm')
154
+ .description('查询内置 LLM 网关状态:月度额度/本月用量/令牌前缀/内置环境变量名/按模型用量明细')
155
+ .action(
156
+ run(async () => {
157
+ emit(await request(cfg(), 'GET', '/me/llm'))
158
+ })
159
+ )
160
+
152
161
  // --- 应用 ---
153
162
 
154
163
  program