@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 +1 -0
- package/package.json +1 -1
- package/src/index.js +10 -1
package/README.md
CHANGED
package/package.json
CHANGED
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.
|
|
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
|