beautx-cli 1.0.7-beta.1 → 1.0.8-beta.1
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 +20 -25
- package/dist/{analyze-CcsdZtz9.mjs → analyze-CtxR02Xr.mjs} +4 -4
- package/dist/{api-B5nQypBz.mjs → api-BdaZkABF.mjs} +1 -1
- package/dist/{audio-DVH0I5Zh.mjs → audio-DlgPatwd.mjs} +3 -3
- package/dist/{beauty-plan-Cd88u5h0.mjs → beauty-plan-DNsCkUJY.mjs} +3 -3
- package/dist/cli.mjs +19 -32
- package/dist/{config-BOuRZAk1.mjs → config-DICowNg_.mjs} +2 -2
- package/dist/{consultant-C1uiuItn.mjs → consultant-Det5PdFh.mjs} +1 -1
- package/dist/{content-CpFANyPe.mjs → content-BOTX5RjP.mjs} +2 -2
- package/dist/{current--kwV_-9S.mjs → current-aBOk-h5x.mjs} +1 -1
- package/dist/{customer-Chl1bGg9.mjs → customer-Dr_mISml.mjs} +1 -1
- package/dist/{deal-analysis-Bf6TwBmH.mjs → deal-analysis-K0jAibrc.mjs} +3 -3
- package/dist/{doc-BtwmuoPs.mjs → doc-BuvQ5-m4.mjs} +3 -3
- package/dist/{env-vars-Dinhf5lt.mjs → env-vars-osVxvm7z.mjs} +1 -1
- package/dist/{fields-MsjROq8O.mjs → fields-CiWGp1Uy.mjs} +3 -3
- package/dist/{focus-CM6mZYRj.mjs → focus-c7Sx7x3t.mjs} +1 -1
- package/dist/{get-Z_hTyubv.mjs → get-ByeAOvme.mjs} +2 -2
- package/dist/{install-DP9xV1rY.mjs → install-DQmxrW3j.mjs} +6 -6
- package/dist/{kb-CjQXEOY5.mjs → kb-DsyLK84W.mjs} +2 -2
- package/dist/{list-D809kN14.mjs → list-BPBUK6SR.mjs} +2 -2
- package/dist/{list-BT0_KdNZ.mjs → list-BTsFZamG.mjs} +4 -4
- package/dist/{list-BSR3H7_0.mjs → list-Bt87oTfo.mjs} +3 -3
- package/dist/{list-CDi3ySyx.mjs → list-CDhdZByU.mjs} +4 -4
- package/dist/{list-C0wn72hg.mjs → list-CGDMjHuN.mjs} +3 -3
- package/dist/{list-CGJa9z3d.mjs → list-Cq9rAt2i.mjs} +3 -3
- package/dist/{list-B84PLHzp.mjs → list-D4gnORuG.mjs} +1 -1
- package/dist/{list-CJiei-hu.mjs → list-DD5SDjF3.mjs} +3 -3
- package/dist/{list-BNZV4wei.mjs → list-SIx70dm2.mjs} +9 -9
- package/dist/{list-C6imhAfi.mjs → list-u0XN5Mv3.mjs} +3 -3
- package/dist/{mcp-args-B8InvGQc.mjs → mcp-args-CG7OuBep.mjs} +1 -1
- package/dist/{mcp-client-aS31KU6J.mjs → mcp-client-huLKHRT3.mjs} +3 -3
- package/dist/{mcp-result-Bl71pkOt.mjs → mcp-result-BzDGJUdM.mjs} +1 -1
- package/dist/{portrait-tags-BYded-6k.mjs → portrait-tags-DDfhu52n.mjs} +3 -3
- package/dist/{project-DSO_7ofq.mjs → project-CFjWR38i.mjs} +3 -3
- package/dist/{project-access-DlypxnQF.mjs → project-access-ChmJv4Z4.mjs} +3 -3
- package/dist/project-access-D4b4oc5E.mjs +2 -0
- package/dist/{project-store-D0UuLan2.mjs → project-store-DUlIIW51.mjs} +1 -1
- package/dist/project-store-DlbRmRAS.mjs +2 -0
- package/dist/{qa-CqUiXIZn.mjs → qa-BvSY8aGf.mjs} +4 -4
- package/dist/{resistance-DiDDixVq.mjs → resistance-BsDf3Ywa.mjs} +1 -1
- package/dist/{search-sjRwA-la.mjs → search-Chnn4fM0.mjs} +4 -4
- package/dist/{skill-DBpgezPV.mjs → skill-7jpFz8M3.mjs} +3 -3
- package/dist/{skill-client-D4_QGDkj.mjs → skill-client-DEbjlHcX.mjs} +53 -78
- package/dist/{summary-C7lrTImW.mjs → summary-BBOsN5T9.mjs} +3 -3
- package/dist/{text-BZo7B8mz.mjs → text-CCxnry4V.mjs} +4 -4
- package/dist/{upload-D4wSmRqs.mjs → upload-BSwTTmow.mjs} +13 -13
- package/dist/{use-DQ_M0FOH.mjs → use-DAcv-VQ0.mjs} +2 -2
- package/dist/{visit-CxAYV6z6.mjs → visit-B70PkDSX.mjs} +2 -2
- package/dist/{visit-evaluate-BTKqc8fd.mjs → visit-evaluate-CaO2KvPG.mjs} +3 -3
- package/dist/{visit-query-args-BLwj26s6.mjs → visit-query-args-DW3qNnoL.mjs} +1 -1
- package/package.json +1 -1
- package/dist/project-access-Cq8d1YTo.mjs +0 -2
- package/dist/project-store-CYuTFefu.mjs +0 -2
package/README.md
CHANGED
|
@@ -59,34 +59,25 @@ beautx-cli project use --project-id <项目ID>
|
|
|
59
59
|
|
|
60
60
|
### Skill 中心
|
|
61
61
|
|
|
62
|
-
Skill
|
|
63
|
-
鉴权。`skill list` 和 `skill install` 默认使用当前激活项目,上传个人 Skill
|
|
64
|
-
不要求当前项目,上传项目 Skill 时必须显式传入项目 ID。
|
|
62
|
+
Skill 中心命令走 REST,并使用 Host 注入的沙箱双凭证鉴权。
|
|
65
63
|
|
|
66
64
|
```bash
|
|
67
|
-
#
|
|
68
|
-
beautx-cli skill list
|
|
69
|
-
|
|
70
|
-
#
|
|
71
|
-
beautx-cli skill
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
beautx-cli skill install <skill-id>
|
|
77
|
-
beautx-cli skill install <skill-id> --dir <安装目录>
|
|
78
|
-
|
|
79
|
-
# 上传新 Skill;zip 内需要包含 SKILL.md
|
|
80
|
-
beautx-cli skill upload <skill.zip>
|
|
81
|
-
beautx-cli skill upload <skill.zip> --type tenant --project-id <项目ID>
|
|
82
|
-
beautx-cli skill upload <skill.zip> --type project --project-id <项目ID>
|
|
83
|
-
|
|
84
|
-
# 替换已有 Skill,并设置 tags
|
|
85
|
-
beautx-cli skill upload <skill.zip> \
|
|
86
|
-
--skill-id <skill-id> \
|
|
87
|
-
--tags '["医美","分析"]'
|
|
65
|
+
# 按 personal / tenant / project 分组列出当前项目可见的 Skill
|
|
66
|
+
beautx-cli skill list [--type <personal|tenant|project>] [--project-id <项目ID>]
|
|
67
|
+
|
|
68
|
+
# 按数字 ID 下载安装包;默认项目取当前激活项目
|
|
69
|
+
beautx-cli skill install <Skill ID> [--project-id <项目ID>] [--dir <安装目录>]
|
|
70
|
+
|
|
71
|
+
# 上传包含 SKILL.md 的 zip;默认新建 personal Skill
|
|
72
|
+
beautx-cli skill upload <zip路径> [--type <personal|tenant|project>] \
|
|
73
|
+
[--project-id <项目ID>] [--skill-id <已有Skill ID>] [--tags <JSON数组>]
|
|
88
74
|
```
|
|
89
75
|
|
|
76
|
+
- `list` 省略 `--type` 时按归属分组;返回的雪花 ID 始终按字符串处理。
|
|
77
|
+
- `install` 默认写入 `SKILL_INSTALL_DIR`,未设置时写入 `/home/wuying/jvscrew/.wangai-cli/skills`,并校验 SHA-256 checksum。
|
|
78
|
+
- `upload` 内部一次完成申请上传、对象存储 PUT 和服务端确认;`type=project` 时必须传 `--project-id`。
|
|
79
|
+
- 三个子命令均支持 `--format toon|json|yaml`。
|
|
80
|
+
|
|
90
81
|
### 顾问管理
|
|
91
82
|
|
|
92
83
|
```bash
|
|
@@ -254,9 +245,11 @@ CLI 通过环境变量获取身份(由 QCA / Host 沙箱注入)。当前项
|
|
|
254
245
|
| --- | --- |
|
|
255
246
|
| ENV | `test` / `prod` |
|
|
256
247
|
| TENANT_ID / USER_ID | 租户、用户 |
|
|
257
|
-
| SANDBOX_TENANT_SECRET / SANDBOX_USER_SECRET | 沙箱双 secret
|
|
248
|
+
| SANDBOX_TENANT_SECRET / SANDBOX_USER_SECRET | 沙箱双 secret,用于 Token Broker 与 Skill 中心 REST 鉴权 |
|
|
258
249
|
| XB_APP_ID | 应用 ID(`aike` 时禁止 `project use`) |
|
|
259
250
|
| SESSION_ID | 可选;有则 MCP 请求带 `X-MCP-Session-Id` |
|
|
251
|
+
| SKILL_BFF_URL | 可选;覆盖当前环境内置的 Skill BFF 地址 |
|
|
252
|
+
| SKILL_INSTALL_DIR | 可选;覆盖 `skill install` 的安装根目录 |
|
|
260
253
|
|
|
261
254
|
- **MCP AT**:每次调用向 `{callbackBaseUrl}/api/qca-wangclaw/out/v2/mcp-token` 借用(进程内缓存)。
|
|
262
255
|
- **当前项目**:`GET/PUT /api/qca-wangclaw/out/v2/current-project`(`project current` / `project use`)。
|
|
@@ -268,6 +261,7 @@ CLI 通过环境变量获取身份(由 QCA / Host 沙箱注入)。当前项
|
|
|
268
261
|
|
|
269
262
|
```
|
|
270
263
|
beautx-cli → MCP Gateway → beautx-mcp-bff → wangai-mcp-application (beautx 端点)
|
|
264
|
+
↘ Skill BFF REST (`/api/wc-skill/out/**`)
|
|
271
265
|
```
|
|
272
266
|
|
|
273
267
|
- **beautx-cli**:TypeScript CLI 工具,发送 JSON-RPC 请求
|
|
@@ -291,6 +285,7 @@ src/
|
|
|
291
285
|
│ ├── resistance/ # 抗性点
|
|
292
286
|
│ ├── audio/ # 录音管理
|
|
293
287
|
│ ├── kb/ # 知识库
|
|
288
|
+
│ ├── skill/ # Skill 中心
|
|
294
289
|
│ ├── config/ # 配置查看
|
|
295
290
|
│ ├── qa.ts # SQL Agent
|
|
296
291
|
│ └── api.ts # 通用 API 调用
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { c as requireActiveProject } from "./project-store-
|
|
1
|
+
import { c as requireActiveProject } from "./project-store-DUlIIW51.mjs";
|
|
2
2
|
import { n as writeError, t as formatCliArg } from "./cli.mjs";
|
|
3
|
-
import { n as mcpCall } from "./mcp-client-
|
|
4
|
-
import { n as resolveProjectId, t as projectIdCliArg } from "./mcp-args-
|
|
5
|
-
import { n as writeMcpDataResult } from "./mcp-result-
|
|
3
|
+
import { n as mcpCall } from "./mcp-client-huLKHRT3.mjs";
|
|
4
|
+
import { n as resolveProjectId, t as projectIdCliArg } from "./mcp-args-CG7OuBep.mjs";
|
|
5
|
+
import { n as writeMcpDataResult } from "./mcp-result-BzDGJUdM.mjs";
|
|
6
6
|
import { t as csvToArray } from "./util-BtgWHKWv.mjs";
|
|
7
7
|
import { defineCommand } from "citty";
|
|
8
8
|
//#region src/commands/audio/analyze.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as writeError, r as writeResult, t as formatCliArg } from "./cli.mjs";
|
|
2
|
-
import { n as mcpCall, t as MCP_SERVICE_CODE } from "./mcp-client-
|
|
2
|
+
import { n as mcpCall, t as MCP_SERVICE_CODE } from "./mcp-client-huLKHRT3.mjs";
|
|
3
3
|
import { defineCommand } from "citty";
|
|
4
4
|
//#region src/commands/api.ts
|
|
5
5
|
/**
|
|
@@ -6,9 +6,9 @@ var audio_default = defineCommand({
|
|
|
6
6
|
description: "录音元数据分页 / 单条文本查询 / 全文批量分析"
|
|
7
7
|
},
|
|
8
8
|
subCommands: {
|
|
9
|
-
list: () => import("./list-
|
|
10
|
-
text: () => import("./text-
|
|
11
|
-
analyze: () => import("./analyze-
|
|
9
|
+
list: () => import("./list-Bt87oTfo.mjs").then((m) => m.default),
|
|
10
|
+
text: () => import("./text-CCxnry4V.mjs").then((m) => m.default),
|
|
11
|
+
analyze: () => import("./analyze-CtxR02Xr.mjs").then((m) => m.default)
|
|
12
12
|
}
|
|
13
13
|
});
|
|
14
14
|
//#endregion
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { c as requireActiveProject } from "./project-store-
|
|
1
|
+
import { c as requireActiveProject } from "./project-store-DUlIIW51.mjs";
|
|
2
2
|
import { n as writeError } from "./cli.mjs";
|
|
3
|
-
import { t as mcpCallPage } from "./mcp-result-
|
|
4
|
-
import { n as visitBatchQueryCliArgs, t as buildVisitBatchQueryArgs } from "./visit-query-args-
|
|
3
|
+
import { t as mcpCallPage } from "./mcp-result-BzDGJUdM.mjs";
|
|
4
|
+
import { n as visitBatchQueryCliArgs, t as buildVisitBatchQueryArgs } from "./visit-query-args-DW3qNnoL.mjs";
|
|
5
5
|
import { defineCommand } from "citty";
|
|
6
6
|
//#region src/commands/beauty-plan/index.ts
|
|
7
7
|
/**
|
package/dist/cli.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { i as __toESM, r as __require, t as __commonJSMin } from "./rolldown-runtime-YLnNgb9a.mjs";
|
|
3
|
-
import { a as isTokenExpired, c as readEnv, d as syncProcessEnv, f as AccessTokenExpiredError, h as MissingAccessTokenError, l as requireUserId, o as needsRefresh, p as ConfigInvalidError, s as readCredentials, t as ENV_KEYS, u as resolveEndpoints } from "./env-vars-
|
|
4
|
-
import { i as invalidateProjectAccessCache } from "./project-access-
|
|
5
|
-
import { o as loadActiveProject } from "./project-store-
|
|
3
|
+
import { a as isTokenExpired, c as readEnv, d as syncProcessEnv, f as AccessTokenExpiredError, h as MissingAccessTokenError, l as requireUserId, o as needsRefresh, p as ConfigInvalidError, s as readCredentials, t as ENV_KEYS, u as resolveEndpoints } from "./env-vars-osVxvm7z.mjs";
|
|
4
|
+
import { i as invalidateProjectAccessCache } from "./project-access-ChmJv4Z4.mjs";
|
|
5
|
+
import { o as loadActiveProject } from "./project-store-DUlIIW51.mjs";
|
|
6
6
|
import { appendFileSync, mkdirSync, readFileSync } from "node:fs";
|
|
7
7
|
import { dirname, join } from "node:path";
|
|
8
8
|
import { fileURLToPath } from "node:url";
|
|
@@ -181,20 +181,7 @@ function shouldRunPreflightGate(rawArgs) {
|
|
|
181
181
|
}
|
|
182
182
|
/** `project *` may establish current project — skip that one check only. */
|
|
183
183
|
function shouldSkipCurrentProjectCheck(rawArgs) {
|
|
184
|
-
|
|
185
|
-
if (top === "project") return true;
|
|
186
|
-
if (top === "skill") return positionalAfter(rawArgs, top) === "upload";
|
|
187
|
-
return false;
|
|
188
|
-
}
|
|
189
|
-
function positionalAfter(rawArgs, value) {
|
|
190
|
-
const index = rawArgs.indexOf(value);
|
|
191
|
-
if (index < 0) return null;
|
|
192
|
-
for (let i = index + 1; i < rawArgs.length; i += 1) {
|
|
193
|
-
const arg = rawArgs[i];
|
|
194
|
-
if (!arg || arg.startsWith("-")) continue;
|
|
195
|
-
return arg;
|
|
196
|
-
}
|
|
197
|
-
return null;
|
|
184
|
+
return firstPositional(rawArgs) === "project";
|
|
198
185
|
}
|
|
199
186
|
function firstPositional(rawArgs) {
|
|
200
187
|
for (const arg of rawArgs) {
|
|
@@ -7649,21 +7636,21 @@ runMain(defineCommand({
|
|
|
7649
7636
|
}
|
|
7650
7637
|
},
|
|
7651
7638
|
subCommands: {
|
|
7652
|
-
config: () => import("./config-
|
|
7653
|
-
project: () => import("./project-
|
|
7654
|
-
skill: () => import("./skill-
|
|
7655
|
-
consultant: () => import("./consultant-
|
|
7656
|
-
audio: () => import("./audio-
|
|
7657
|
-
customer: () => import("./customer-
|
|
7658
|
-
visit: () => import("./visit-
|
|
7659
|
-
"visit-evaluate": () => import("./visit-evaluate-
|
|
7660
|
-
"beauty-plan": () => import("./beauty-plan-
|
|
7661
|
-
"deal-analysis": () => import("./deal-analysis-
|
|
7662
|
-
"portrait-tags": () => import("./portrait-tags-
|
|
7663
|
-
focus: () => import("./focus-
|
|
7664
|
-
resistance: () => import("./resistance-
|
|
7665
|
-
qa: () => import("./qa-
|
|
7666
|
-
kb: () => import("./kb-
|
|
7639
|
+
config: () => import("./config-DICowNg_.mjs").then((m) => m.default),
|
|
7640
|
+
project: () => import("./project-CFjWR38i.mjs").then((m) => m.default),
|
|
7641
|
+
skill: () => import("./skill-7jpFz8M3.mjs").then((m) => m.default),
|
|
7642
|
+
consultant: () => import("./consultant-Det5PdFh.mjs").then((m) => m.default),
|
|
7643
|
+
audio: () => import("./audio-DlgPatwd.mjs").then((m) => m.default),
|
|
7644
|
+
customer: () => import("./customer-Dr_mISml.mjs").then((m) => m.default),
|
|
7645
|
+
visit: () => import("./visit-B70PkDSX.mjs").then((m) => m.default),
|
|
7646
|
+
"visit-evaluate": () => import("./visit-evaluate-CaO2KvPG.mjs").then((m) => m.default),
|
|
7647
|
+
"beauty-plan": () => import("./beauty-plan-DNsCkUJY.mjs").then((m) => m.default),
|
|
7648
|
+
"deal-analysis": () => import("./deal-analysis-K0jAibrc.mjs").then((m) => m.default),
|
|
7649
|
+
"portrait-tags": () => import("./portrait-tags-DDfhu52n.mjs").then((m) => m.default),
|
|
7650
|
+
focus: () => import("./focus-c7Sx7x3t.mjs").then((m) => m.default),
|
|
7651
|
+
resistance: () => import("./resistance-BsDf3Ywa.mjs").then((m) => m.default),
|
|
7652
|
+
qa: () => import("./qa-BvSY8aGf.mjs").then((m) => m.default),
|
|
7653
|
+
kb: () => import("./kb-DsyLK84W.mjs").then((m) => m.default)
|
|
7667
7654
|
}
|
|
7668
7655
|
}));
|
|
7669
7656
|
//#endregion
|
|
@@ -6,9 +6,9 @@ var config_default = defineCommand({
|
|
|
6
6
|
description: "沙箱配置:list 只读诊断;doctor 自检;fields 客户字段字典"
|
|
7
7
|
},
|
|
8
8
|
subCommands: {
|
|
9
|
-
list: () => import("./list-
|
|
9
|
+
list: () => import("./list-BPBUK6SR.mjs").then((m) => m.default),
|
|
10
10
|
doctor: () => import("./doctor-DuGxP40X.mjs").then((m) => m.default),
|
|
11
|
-
fields: () => import("./fields-
|
|
11
|
+
fields: () => import("./fields-CiWGp1Uy.mjs").then((m) => m.default)
|
|
12
12
|
}
|
|
13
13
|
});
|
|
14
14
|
//#endregion
|
|
@@ -5,7 +5,7 @@ var consultant_default = defineCommand({
|
|
|
5
5
|
name: "consultant",
|
|
6
6
|
description: "查询有权限的顾问列表"
|
|
7
7
|
},
|
|
8
|
-
subCommands: { list: () => import("./list-
|
|
8
|
+
subCommands: { list: () => import("./list-BTsFZamG.mjs").then((m) => m.default) }
|
|
9
9
|
});
|
|
10
10
|
//#endregion
|
|
11
11
|
export { consultant_default as default };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as writeError, t as formatCliArg } from "./cli.mjs";
|
|
2
|
-
import { n as mcpCall } from "./mcp-client-
|
|
3
|
-
import { n as writeMcpDataResult } from "./mcp-result-
|
|
2
|
+
import { n as mcpCall } from "./mcp-client-huLKHRT3.mjs";
|
|
3
|
+
import { n as writeMcpDataResult } from "./mcp-result-BzDGJUdM.mjs";
|
|
4
4
|
import { defineCommand } from "citty";
|
|
5
5
|
//#region src/commands/kb/doc/content.ts
|
|
6
6
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as requireActiveProject } from "./project-store-
|
|
1
|
+
import { c as requireActiveProject } from "./project-store-DUlIIW51.mjs";
|
|
2
2
|
import { n as writeError, r as writeResult, t as formatCliArg } from "./cli.mjs";
|
|
3
3
|
import { defineCommand } from "citty";
|
|
4
4
|
//#region src/commands/project/current.ts
|
|
@@ -5,7 +5,7 @@ var customer_default = defineCommand({
|
|
|
5
5
|
name: "customer",
|
|
6
6
|
description: "客户画像分页查询"
|
|
7
7
|
},
|
|
8
|
-
subCommands: { list: () => import("./list-
|
|
8
|
+
subCommands: { list: () => import("./list-CGDMjHuN.mjs").then((m) => m.default) }
|
|
9
9
|
});
|
|
10
10
|
//#endregion
|
|
11
11
|
export { customer_default as default };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { c as requireActiveProject } from "./project-store-
|
|
1
|
+
import { c as requireActiveProject } from "./project-store-DUlIIW51.mjs";
|
|
2
2
|
import { n as writeError } from "./cli.mjs";
|
|
3
|
-
import { t as mcpCallPage } from "./mcp-result-
|
|
4
|
-
import { n as visitBatchQueryCliArgs, t as buildVisitBatchQueryArgs } from "./visit-query-args-
|
|
3
|
+
import { t as mcpCallPage } from "./mcp-result-BzDGJUdM.mjs";
|
|
4
|
+
import { n as visitBatchQueryCliArgs, t as buildVisitBatchQueryArgs } from "./visit-query-args-DW3qNnoL.mjs";
|
|
5
5
|
import { defineCommand } from "citty";
|
|
6
6
|
//#region src/commands/deal-analysis/index.ts
|
|
7
7
|
/**
|
|
@@ -6,9 +6,9 @@ var doc_default = defineCommand({
|
|
|
6
6
|
description: "知识库文档列表 / 元数据 / 全文"
|
|
7
7
|
},
|
|
8
8
|
subCommands: {
|
|
9
|
-
list: () => import("./list-
|
|
10
|
-
get: () => import("./get-
|
|
11
|
-
content: () => import("./content-
|
|
9
|
+
list: () => import("./list-CDhdZByU.mjs").then((m) => m.default),
|
|
10
|
+
get: () => import("./get-ByeAOvme.mjs").then((m) => m.default),
|
|
11
|
+
content: () => import("./content-BOTX5RjP.mjs").then((m) => m.default)
|
|
12
12
|
}
|
|
13
13
|
});
|
|
14
14
|
//#endregion
|
|
@@ -54,7 +54,7 @@ var ConfigInvalidError = class extends Error {
|
|
|
54
54
|
//#region src/core/endpoints.ts
|
|
55
55
|
/** Fallback when Host has not injected ENV (local dev via env.sh only). */
|
|
56
56
|
const DEFAULT_ENV = "test";
|
|
57
|
-
/** ENV value → MCP gateway / auth / Host callback base URLs. */
|
|
57
|
+
/** ENV value → MCP gateway / auth / Host callback / Skill BFF base URLs. */
|
|
58
58
|
const PROFILES = {
|
|
59
59
|
test: {
|
|
60
60
|
gatewayUrl: "https://mcp.test.wangxiaobao.com",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { c as requireActiveProject } from "./project-store-
|
|
1
|
+
import { c as requireActiveProject } from "./project-store-DUlIIW51.mjs";
|
|
2
2
|
import { n as writeError, t as formatCliArg } from "./cli.mjs";
|
|
3
|
-
import { n as resolveProjectId, t as projectIdCliArg } from "./mcp-args-
|
|
4
|
-
import { t as mcpCallPage } from "./mcp-result-
|
|
3
|
+
import { n as resolveProjectId, t as projectIdCliArg } from "./mcp-args-CG7OuBep.mjs";
|
|
4
|
+
import { t as mcpCallPage } from "./mcp-result-BzDGJUdM.mjs";
|
|
5
5
|
import { defineCommand } from "citty";
|
|
6
6
|
//#region src/commands/config/fields.ts
|
|
7
7
|
/**
|
|
@@ -5,7 +5,7 @@ var focus_default = defineCommand({
|
|
|
5
5
|
name: "focus",
|
|
6
6
|
description: "客户关注点标签分页查询"
|
|
7
7
|
},
|
|
8
|
-
subCommands: { list: () => import("./list-
|
|
8
|
+
subCommands: { list: () => import("./list-Cq9rAt2i.mjs").then((m) => m.default) }
|
|
9
9
|
});
|
|
10
10
|
//#endregion
|
|
11
11
|
export { focus_default as default };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as writeError, t as formatCliArg } from "./cli.mjs";
|
|
2
|
-
import { n as mcpCall } from "./mcp-client-
|
|
3
|
-
import { n as writeMcpDataResult } from "./mcp-result-
|
|
2
|
+
import { n as mcpCall } from "./mcp-client-huLKHRT3.mjs";
|
|
3
|
+
import { n as writeMcpDataResult } from "./mcp-result-BzDGJUdM.mjs";
|
|
4
4
|
import { defineCommand } from "citty";
|
|
5
5
|
//#region src/commands/kb/doc/get.ts
|
|
6
6
|
/**
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { c as requireActiveProject } from "./project-store-
|
|
1
|
+
import { c as requireActiveProject } from "./project-store-DUlIIW51.mjs";
|
|
2
2
|
import { n as writeError, r as writeResult, t as formatCliArg } from "./cli.mjs";
|
|
3
|
-
import { n as resolveProjectId, t as projectIdCliArg } from "./mcp-args-
|
|
4
|
-
import { i as skillInstallGrant, r as resolveSkillInstallDir, t as downloadSkillPackage } from "./skill-client-
|
|
3
|
+
import { n as resolveProjectId, t as projectIdCliArg } from "./mcp-args-CG7OuBep.mjs";
|
|
4
|
+
import { i as skillInstallGrant, r as resolveSkillInstallDir, t as downloadSkillPackage } from "./skill-client-DEbjlHcX.mjs";
|
|
5
5
|
import { defineCommand } from "citty";
|
|
6
6
|
//#region src/commands/skill/install.ts
|
|
7
7
|
/**
|
|
8
|
-
* `beautx-cli skill install <id>` —
|
|
8
|
+
* `beautx-cli skill install <id>` — download a Skill package by id.
|
|
9
9
|
*/
|
|
10
10
|
var install_default = defineCommand({
|
|
11
11
|
meta: {
|
|
12
12
|
name: "install",
|
|
13
|
-
description: "按 Skill ID
|
|
13
|
+
description: "按 Skill ID 下载安装包(默认使用当前激活项目做权限判定)"
|
|
14
14
|
},
|
|
15
15
|
args: {
|
|
16
16
|
id: {
|
|
@@ -20,7 +20,7 @@ var install_default = defineCommand({
|
|
|
20
20
|
},
|
|
21
21
|
dir: {
|
|
22
22
|
type: "string",
|
|
23
|
-
description:
|
|
23
|
+
description: `安装根目录(默认 ${resolveSkillInstallDir()},可由 SKILL_INSTALL_DIR 覆盖)`
|
|
24
24
|
},
|
|
25
25
|
...projectIdCliArg,
|
|
26
26
|
format: formatCliArg
|
|
@@ -6,8 +6,8 @@ var kb_default = defineCommand({
|
|
|
6
6
|
description: "知识库检索与文档查询"
|
|
7
7
|
},
|
|
8
8
|
subCommands: {
|
|
9
|
-
search: () => import("./search-
|
|
10
|
-
doc: () => import("./doc-
|
|
9
|
+
search: () => import("./search-Chnn4fM0.mjs").then((m) => m.default),
|
|
10
|
+
doc: () => import("./doc-BuvQ5-m4.mjs").then((m) => m.default)
|
|
11
11
|
}
|
|
12
12
|
});
|
|
13
13
|
//#endregion
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as readEnv, i as isEnvInjectedByHost, r as credentialStatus, s as readCredentials, t as ENV_KEYS, u as resolveEndpoints } from "./env-vars-
|
|
2
|
-
import { a as isProjectSwitchAllowed, o as loadActiveProject } from "./project-store-
|
|
1
|
+
import { c as readEnv, i as isEnvInjectedByHost, r as credentialStatus, s as readCredentials, t as ENV_KEYS, u as resolveEndpoints } from "./env-vars-osVxvm7z.mjs";
|
|
2
|
+
import { a as isProjectSwitchAllowed, o as loadActiveProject } from "./project-store-DUlIIW51.mjs";
|
|
3
3
|
import { n as writeError, o as debugLogPath, r as writeResult, s as isVerboseDebugEnabled, t as formatCliArg } from "./cli.mjs";
|
|
4
4
|
import { defineCommand } from "citty";
|
|
5
5
|
//#region src/core/mask-env.ts
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { c as requireActiveProject } from "./project-store-
|
|
1
|
+
import { c as requireActiveProject } from "./project-store-DUlIIW51.mjs";
|
|
2
2
|
import { n as writeError, t as formatCliArg } from "./cli.mjs";
|
|
3
|
-
import { n as mcpCall } from "./mcp-client-
|
|
4
|
-
import { n as resolveProjectId, t as projectIdCliArg } from "./mcp-args-
|
|
5
|
-
import { n as writeMcpDataResult } from "./mcp-result-
|
|
3
|
+
import { n as mcpCall } from "./mcp-client-huLKHRT3.mjs";
|
|
4
|
+
import { n as resolveProjectId, t as projectIdCliArg } from "./mcp-args-CG7OuBep.mjs";
|
|
5
|
+
import { n as writeMcpDataResult } from "./mcp-result-BzDGJUdM.mjs";
|
|
6
6
|
import { defineCommand } from "citty";
|
|
7
7
|
//#region src/commands/consultant/list.ts
|
|
8
8
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { c as requireActiveProject } from "./project-store-
|
|
1
|
+
import { c as requireActiveProject } from "./project-store-DUlIIW51.mjs";
|
|
2
2
|
import { n as writeError, t as formatCliArg } from "./cli.mjs";
|
|
3
|
-
import { n as resolveProjectId, t as projectIdCliArg } from "./mcp-args-
|
|
4
|
-
import { t as mcpCallPage } from "./mcp-result-
|
|
3
|
+
import { n as resolveProjectId, t as projectIdCliArg } from "./mcp-args-CG7OuBep.mjs";
|
|
4
|
+
import { t as mcpCallPage } from "./mcp-result-BzDGJUdM.mjs";
|
|
5
5
|
import { i as toLocalDateTime, r as mergeUserIds, t as csvToArray } from "./util-BtgWHKWv.mjs";
|
|
6
6
|
import { defineCommand } from "citty";
|
|
7
7
|
//#region src/commands/audio/list.ts
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { c as requireActiveProject } from "./project-store-
|
|
1
|
+
import { c as requireActiveProject } from "./project-store-DUlIIW51.mjs";
|
|
2
2
|
import { n as writeError, t as formatCliArg } from "./cli.mjs";
|
|
3
|
-
import { n as mcpCall } from "./mcp-client-
|
|
4
|
-
import { i as tenantIdCliArg, n as resolveProjectId, r as resolveTenantId, t as projectIdCliArg } from "./mcp-args-
|
|
5
|
-
import { n as writeMcpDataResult } from "./mcp-result-
|
|
3
|
+
import { n as mcpCall } from "./mcp-client-huLKHRT3.mjs";
|
|
4
|
+
import { i as tenantIdCliArg, n as resolveProjectId, r as resolveTenantId, t as projectIdCliArg } from "./mcp-args-CG7OuBep.mjs";
|
|
5
|
+
import { n as writeMcpDataResult } from "./mcp-result-BzDGJUdM.mjs";
|
|
6
6
|
import { defineCommand } from "citty";
|
|
7
7
|
//#region src/commands/kb/doc/list.ts
|
|
8
8
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { c as requireActiveProject } from "./project-store-
|
|
1
|
+
import { c as requireActiveProject } from "./project-store-DUlIIW51.mjs";
|
|
2
2
|
import { n as writeError, t as formatCliArg } from "./cli.mjs";
|
|
3
|
-
import { n as resolveProjectId, t as projectIdCliArg } from "./mcp-args-
|
|
4
|
-
import { t as mcpCallPage } from "./mcp-result-
|
|
3
|
+
import { n as resolveProjectId, t as projectIdCliArg } from "./mcp-args-CG7OuBep.mjs";
|
|
4
|
+
import { t as mcpCallPage } from "./mcp-result-BzDGJUdM.mjs";
|
|
5
5
|
import { i as toLocalDateTime } from "./util-BtgWHKWv.mjs";
|
|
6
6
|
import { defineCommand } from "citty";
|
|
7
7
|
//#region src/commands/customer/list.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { c as requireActiveProject } from "./project-store-
|
|
1
|
+
import { c as requireActiveProject } from "./project-store-DUlIIW51.mjs";
|
|
2
2
|
import { n as writeError, t as formatCliArg } from "./cli.mjs";
|
|
3
|
-
import { n as resolveProjectId, t as projectIdCliArg } from "./mcp-args-
|
|
4
|
-
import { t as mcpCallPage } from "./mcp-result-
|
|
3
|
+
import { n as resolveProjectId, t as projectIdCliArg } from "./mcp-args-CG7OuBep.mjs";
|
|
4
|
+
import { t as mcpCallPage } from "./mcp-result-BzDGJUdM.mjs";
|
|
5
5
|
import { i as toLocalDateTime, t as csvToArray } from "./util-BtgWHKWv.mjs";
|
|
6
6
|
import { defineCommand } from "citty";
|
|
7
7
|
//#region src/commands/focus/list.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as writeError, t as formatCliArg } from "./cli.mjs";
|
|
2
|
-
import { t as mcpCallPage } from "./mcp-result-
|
|
2
|
+
import { t as mcpCallPage } from "./mcp-result-BzDGJUdM.mjs";
|
|
3
3
|
import { defineCommand } from "citty";
|
|
4
4
|
//#region src/commands/project/list.ts
|
|
5
5
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { c as requireActiveProject } from "./project-store-
|
|
1
|
+
import { c as requireActiveProject } from "./project-store-DUlIIW51.mjs";
|
|
2
2
|
import { n as writeError, t as formatCliArg } from "./cli.mjs";
|
|
3
|
-
import { n as resolveProjectId, t as projectIdCliArg } from "./mcp-args-
|
|
4
|
-
import { t as mcpCallPage } from "./mcp-result-
|
|
3
|
+
import { n as resolveProjectId, t as projectIdCliArg } from "./mcp-args-CG7OuBep.mjs";
|
|
4
|
+
import { t as mcpCallPage } from "./mcp-result-BzDGJUdM.mjs";
|
|
5
5
|
import { i as toLocalDateTime } from "./util-BtgWHKWv.mjs";
|
|
6
6
|
import { defineCommand } from "citty";
|
|
7
7
|
//#region src/commands/visit/list.ts
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { c as requireActiveProject } from "./project-store-
|
|
1
|
+
import { c as requireActiveProject } from "./project-store-DUlIIW51.mjs";
|
|
2
2
|
import { n as writeError, r as writeResult, t as formatCliArg } from "./cli.mjs";
|
|
3
|
-
import { n as resolveProjectId, t as projectIdCliArg } from "./mcp-args-
|
|
4
|
-
import { a as skillList } from "./skill-client-
|
|
3
|
+
import { n as resolveProjectId, t as projectIdCliArg } from "./mcp-args-CG7OuBep.mjs";
|
|
4
|
+
import { a as skillList } from "./skill-client-DEbjlHcX.mjs";
|
|
5
5
|
import { defineCommand } from "citty";
|
|
6
6
|
//#region src/commands/skill/list.ts
|
|
7
7
|
/**
|
|
8
|
-
* `beautx-cli skill list` — list
|
|
8
|
+
* `beautx-cli skill list` — list the Skill BFF catalog.
|
|
9
9
|
*/
|
|
10
10
|
function groupByOwnerType(items) {
|
|
11
11
|
return {
|
|
@@ -18,22 +18,22 @@ function groupByOwnerType(items) {
|
|
|
18
18
|
var list_default = defineCommand({
|
|
19
19
|
meta: {
|
|
20
20
|
name: "list",
|
|
21
|
-
description: "列出可见 Skill
|
|
21
|
+
description: "列出可见 Skill(按归属分组;默认使用当前激活项目过滤)"
|
|
22
22
|
},
|
|
23
23
|
args: {
|
|
24
24
|
type: {
|
|
25
25
|
type: "string",
|
|
26
|
-
description: "personal | tenant | project
|
|
26
|
+
description: "personal | tenant | project;省略时按三种归属分组输出"
|
|
27
27
|
},
|
|
28
28
|
...projectIdCliArg,
|
|
29
29
|
format: formatCliArg
|
|
30
30
|
},
|
|
31
31
|
async run({ args }) {
|
|
32
32
|
try {
|
|
33
|
-
const
|
|
33
|
+
const rawType = args.type?.trim().toLowerCase();
|
|
34
34
|
let type;
|
|
35
|
-
if (
|
|
36
|
-
else if (
|
|
35
|
+
if (rawType === "personal" || rawType === "tenant" || rawType === "project") type = rawType;
|
|
36
|
+
else if (rawType) throw new Error("type 仅支持 personal | tenant | project");
|
|
37
37
|
const active = await requireActiveProject();
|
|
38
38
|
const projectId = resolveProjectId(args["project-id"], active);
|
|
39
39
|
const items = await skillList(type, projectId);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { c as requireActiveProject } from "./project-store-
|
|
1
|
+
import { c as requireActiveProject } from "./project-store-DUlIIW51.mjs";
|
|
2
2
|
import { n as writeError, t as formatCliArg } from "./cli.mjs";
|
|
3
|
-
import { n as resolveProjectId, t as projectIdCliArg } from "./mcp-args-
|
|
4
|
-
import { t as mcpCallPage } from "./mcp-result-
|
|
3
|
+
import { n as resolveProjectId, t as projectIdCliArg } from "./mcp-args-CG7OuBep.mjs";
|
|
4
|
+
import { t as mcpCallPage } from "./mcp-result-BzDGJUdM.mjs";
|
|
5
5
|
import { i as toLocalDateTime, t as csvToArray } from "./util-BtgWHKWv.mjs";
|
|
6
6
|
import { defineCommand } from "citty";
|
|
7
7
|
//#region src/commands/resistance/list.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as __exportAll } from "./rolldown-runtime-YLnNgb9a.mjs";
|
|
2
|
-
import { c as readEnv, g as MissingGatewayError, h as MissingAccessTokenError, n as assertEndpointsValid, t as ENV_KEYS, u as resolveEndpoints } from "./env-vars-
|
|
2
|
+
import { c as readEnv, g as MissingGatewayError, h as MissingAccessTokenError, n as assertEndpointsValid, t as ENV_KEYS, u as resolveEndpoints } from "./env-vars-osVxvm7z.mjs";
|
|
3
3
|
import { a as debugLogInfo, i as debugLogError, l as ensureAuth } from "./cli.mjs";
|
|
4
4
|
import { randomUUID } from "node:crypto";
|
|
5
5
|
//#region src/core/config.ts
|
|
@@ -135,13 +135,13 @@ function buildMcpHttpHeaders(token) {
|
|
|
135
135
|
return headers;
|
|
136
136
|
}
|
|
137
137
|
async function mcpCall(toolName, opts) {
|
|
138
|
-
const { loadActiveProject } = await import("./project-store-
|
|
138
|
+
const { loadActiveProject } = await import("./project-store-DlbRmRAS.mjs");
|
|
139
139
|
const active = await loadActiveProject();
|
|
140
140
|
const wireArguments = augmentMcpWireArguments(toolName, opts.arguments ?? {}, active?.projectId);
|
|
141
141
|
if (toolName !== "project-list") {
|
|
142
142
|
const rawProjectId = wireArguments.project_id;
|
|
143
143
|
if (rawProjectId != null && String(rawProjectId).trim()) {
|
|
144
|
-
const { assertProjectAllowed } = await import("./project-access-
|
|
144
|
+
const { assertProjectAllowed } = await import("./project-access-D4b4oc5E.mjs");
|
|
145
145
|
await assertProjectAllowed(String(rawProjectId).trim());
|
|
146
146
|
}
|
|
147
147
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as writeError, r as writeResult } from "./cli.mjs";
|
|
2
|
-
import { i as unwrapMcpToolEnvelope, n as mcpCall } from "./mcp-client-
|
|
2
|
+
import { i as unwrapMcpToolEnvelope, n as mcpCall } from "./mcp-client-huLKHRT3.mjs";
|
|
3
3
|
//#region src/core/mcp-result.ts
|
|
4
4
|
/**
|
|
5
5
|
* Normalize MCP tool responses for agent-friendly stdout (TOON tabular arrays).
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { c as requireActiveProject } from "./project-store-
|
|
1
|
+
import { c as requireActiveProject } from "./project-store-DUlIIW51.mjs";
|
|
2
2
|
import { n as writeError } from "./cli.mjs";
|
|
3
|
-
import { t as mcpCallPage } from "./mcp-result-
|
|
4
|
-
import { n as visitBatchQueryCliArgs, t as buildVisitBatchQueryArgs } from "./visit-query-args-
|
|
3
|
+
import { t as mcpCallPage } from "./mcp-result-BzDGJUdM.mjs";
|
|
4
|
+
import { n as visitBatchQueryCliArgs, t as buildVisitBatchQueryArgs } from "./visit-query-args-DW3qNnoL.mjs";
|
|
5
5
|
import { defineCommand } from "citty";
|
|
6
6
|
//#region src/commands/portrait-tags/index.ts
|
|
7
7
|
/**
|
|
@@ -6,9 +6,9 @@ var project_default = defineCommand({
|
|
|
6
6
|
description: "查询 / 切换激活项目"
|
|
7
7
|
},
|
|
8
8
|
subCommands: {
|
|
9
|
-
list: () => import("./list-
|
|
10
|
-
use: () => import("./use-
|
|
11
|
-
current: () => import("./current
|
|
9
|
+
list: () => import("./list-D4gnORuG.mjs").then((m) => m.default),
|
|
10
|
+
use: () => import("./use-DAcv-VQ0.mjs").then((m) => m.default),
|
|
11
|
+
current: () => import("./current-aBOk-h5x.mjs").then((m) => m.default)
|
|
12
12
|
}
|
|
13
13
|
});
|
|
14
14
|
//#endregion
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as readEnv, l as requireUserId, p as ConfigInvalidError, t as ENV_KEYS, u as resolveEndpoints } from "./env-vars-
|
|
2
|
-
import { o as loadActiveProject, s as peekCachedActiveProject } from "./project-store-
|
|
1
|
+
import { c as readEnv, l as requireUserId, p as ConfigInvalidError, t as ENV_KEYS, u as resolveEndpoints } from "./env-vars-osVxvm7z.mjs";
|
|
2
|
+
import { o as loadActiveProject, s as peekCachedActiveProject } from "./project-store-DUlIIW51.mjs";
|
|
3
3
|
var InsufficientCreditError = class extends Error {
|
|
4
4
|
code = "INSUFFICIENT_CREDIT";
|
|
5
5
|
hint = "(该项目下)用户积分余额不足,无法继续查询;请告知用户联系管理员充值";
|
|
@@ -228,7 +228,7 @@ function normalizeProjectListPage(page) {
|
|
|
228
228
|
};
|
|
229
229
|
}
|
|
230
230
|
async function fetchProjectListPage(page, size) {
|
|
231
|
-
const { mcpCall, unwrapMcpToolEnvelope } = await import("./mcp-client-
|
|
231
|
+
const { mcpCall, unwrapMcpToolEnvelope } = await import("./mcp-client-huLKHRT3.mjs").then((n) => n.r);
|
|
232
232
|
const result = await mcpCall("project-list", { arguments: {
|
|
233
233
|
page,
|
|
234
234
|
size
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as readEnv, l as requireUserId, m as CurrentProjectFailedError, t as ENV_KEYS, u as resolveEndpoints } from "./env-vars-
|
|
1
|
+
import { c as readEnv, l as requireUserId, m as CurrentProjectFailedError, t as ENV_KEYS, u as resolveEndpoints } from "./env-vars-osVxvm7z.mjs";
|
|
2
2
|
function requireTenantId() {
|
|
3
3
|
const tenantId = readEnv(ENV_KEYS.TENANT_ID);
|
|
4
4
|
if (!tenantId) throw new CurrentProjectFailedError("缺少 TENANT_ID 环境变量", { hint: "由 QCA 在沙箱启动时注入 TENANT_ID" });
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { c as requireActiveProject } from "./project-store-
|
|
1
|
+
import { c as requireActiveProject } from "./project-store-DUlIIW51.mjs";
|
|
2
2
|
import { n as writeError, t as formatCliArg } from "./cli.mjs";
|
|
3
|
-
import { n as mcpCall } from "./mcp-client-
|
|
4
|
-
import { n as resolveProjectId, t as projectIdCliArg } from "./mcp-args-
|
|
5
|
-
import { n as writeMcpDataResult } from "./mcp-result-
|
|
3
|
+
import { n as mcpCall } from "./mcp-client-huLKHRT3.mjs";
|
|
4
|
+
import { n as resolveProjectId, t as projectIdCliArg } from "./mcp-args-CG7OuBep.mjs";
|
|
5
|
+
import { n as writeMcpDataResult } from "./mcp-result-BzDGJUdM.mjs";
|
|
6
6
|
import { t as csvToArray } from "./util-BtgWHKWv.mjs";
|
|
7
7
|
import { defineCommand } from "citty";
|
|
8
8
|
//#region src/commands/qa.ts
|
|
@@ -5,7 +5,7 @@ var resistance_default = defineCommand({
|
|
|
5
5
|
name: "resistance",
|
|
6
6
|
description: "客户抗性点标签分页查询"
|
|
7
7
|
},
|
|
8
|
-
subCommands: { list: () => import("./list-
|
|
8
|
+
subCommands: { list: () => import("./list-u0XN5Mv3.mjs").then((m) => m.default) }
|
|
9
9
|
});
|
|
10
10
|
//#endregion
|
|
11
11
|
export { resistance_default as default };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { c as requireActiveProject } from "./project-store-
|
|
1
|
+
import { c as requireActiveProject } from "./project-store-DUlIIW51.mjs";
|
|
2
2
|
import { n as writeError, t as formatCliArg } from "./cli.mjs";
|
|
3
|
-
import { n as mcpCall } from "./mcp-client-
|
|
4
|
-
import { i as tenantIdCliArg, n as resolveProjectId, r as resolveTenantId, t as projectIdCliArg } from "./mcp-args-
|
|
5
|
-
import { n as writeMcpDataResult } from "./mcp-result-
|
|
3
|
+
import { n as mcpCall } from "./mcp-client-huLKHRT3.mjs";
|
|
4
|
+
import { i as tenantIdCliArg, n as resolveProjectId, r as resolveTenantId, t as projectIdCliArg } from "./mcp-args-CG7OuBep.mjs";
|
|
5
|
+
import { n as writeMcpDataResult } from "./mcp-result-BzDGJUdM.mjs";
|
|
6
6
|
import { t as csvToArray } from "./util-BtgWHKWv.mjs";
|
|
7
7
|
import { defineCommand } from "citty";
|
|
8
8
|
//#region src/commands/kb/search.ts
|
|
@@ -6,9 +6,9 @@ var skill_default = defineCommand({
|
|
|
6
6
|
description: "Skill 中心:列表 / 安装 / 上传(REST,沙箱双凭证)"
|
|
7
7
|
},
|
|
8
8
|
subCommands: {
|
|
9
|
-
list: () => import("./list-
|
|
10
|
-
install: () => import("./install-
|
|
11
|
-
upload: () => import("./upload-
|
|
9
|
+
list: () => import("./list-SIx70dm2.mjs").then((m) => m.default),
|
|
10
|
+
install: () => import("./install-DQmxrW3j.mjs").then((m) => m.default),
|
|
11
|
+
upload: () => import("./upload-BSwTTmow.mjs").then((m) => m.default)
|
|
12
12
|
}
|
|
13
13
|
});
|
|
14
14
|
//#endregion
|
|
@@ -1,32 +1,24 @@
|
|
|
1
|
-
import { l as requireUserId,
|
|
1
|
+
import { l as requireUserId, u as resolveEndpoints } from "./env-vars-osVxvm7z.mjs";
|
|
2
2
|
import { d as buildSandboxProof, f as requireSandboxSecrets, p as requireTenantId, u as WANGCLAW_AUTH_HEADER } from "./cli.mjs";
|
|
3
3
|
import { createWriteStream } from "node:fs";
|
|
4
4
|
import { join } from "node:path";
|
|
5
5
|
import { createHash } from "node:crypto";
|
|
6
6
|
import { mkdir, readFile, rm, writeFile } from "node:fs/promises";
|
|
7
|
-
import { pipeline } from "node:stream/promises";
|
|
8
7
|
import { Readable } from "node:stream";
|
|
8
|
+
import { pipeline } from "node:stream/promises";
|
|
9
9
|
//#region src/core/skill-client.ts
|
|
10
10
|
/**
|
|
11
11
|
* Skill BFF REST client.
|
|
12
12
|
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
* query: tenantId + userId
|
|
17
|
-
* X-Wangclaw-Authorization:
|
|
18
|
-
* base64url(SANDBOX_TENANT_SECRET:SANDBOX_USER_SECRET)
|
|
13
|
+
* Requests use the Host-injected tenant/user ids and sandbox dual-secret proof.
|
|
14
|
+
* The proof is intentionally sent through X-Wangclaw-Authorization rather than
|
|
15
|
+
* Authorization so the gateway does not treat it as an OAuth JWT.
|
|
19
16
|
*/
|
|
20
17
|
const SUCCESS_CODE = "0";
|
|
21
18
|
function resolveSkillInstallDir() {
|
|
22
19
|
return process.env.SKILL_INSTALL_DIR?.trim() || "/home/wuying/jvscrew/.wangai-cli/skills";
|
|
23
20
|
}
|
|
24
|
-
function
|
|
25
|
-
const override = process.env.SKILL_BFF_URL?.trim();
|
|
26
|
-
if (override) return override.replace(/\/$/, "");
|
|
27
|
-
return endpoints.skillBffUrl.replace(/\/$/, "");
|
|
28
|
-
}
|
|
29
|
-
function authQuery() {
|
|
21
|
+
function authContext() {
|
|
30
22
|
const tenantId = requireTenantId();
|
|
31
23
|
const userId = requireUserId();
|
|
32
24
|
const { tenantSecret, userSecret } = requireSandboxSecrets();
|
|
@@ -36,115 +28,98 @@ function authQuery() {
|
|
|
36
28
|
proof: buildSandboxProof(tenantSecret, userSecret)
|
|
37
29
|
};
|
|
38
30
|
}
|
|
39
|
-
function buildUrl(path, extraQuery) {
|
|
40
|
-
const
|
|
41
|
-
const
|
|
42
|
-
const url = new URL(path, `${skillBffBaseUrl(endpoints)}/`);
|
|
31
|
+
function buildUrl(path, tenantId, userId, extraQuery) {
|
|
32
|
+
const base = resolveEndpoints().skillBffUrl.replace(/\/$/, "");
|
|
33
|
+
const url = new URL(path, `${base}/`);
|
|
43
34
|
url.searchParams.set("tenantId", tenantId);
|
|
44
35
|
url.searchParams.set("userId", userId);
|
|
45
36
|
for (const [key, value] of Object.entries(extraQuery ?? {})) if (value != null && value !== "") url.searchParams.set(key, value);
|
|
46
37
|
return url;
|
|
47
38
|
}
|
|
48
|
-
async function skillFetch(method, path,
|
|
49
|
-
const { proof } =
|
|
50
|
-
const url = buildUrl(path,
|
|
39
|
+
async function skillFetch(method, path, options) {
|
|
40
|
+
const { tenantId, userId, proof } = authContext();
|
|
41
|
+
const url = buildUrl(path, tenantId, userId, options?.query);
|
|
51
42
|
const headers = {
|
|
52
|
-
|
|
53
|
-
|
|
43
|
+
Accept: "application/json",
|
|
44
|
+
[WANGCLAW_AUTH_HEADER]: proof
|
|
54
45
|
};
|
|
55
46
|
let body;
|
|
56
|
-
if (
|
|
47
|
+
if (options?.body !== void 0) {
|
|
57
48
|
headers["Content-Type"] = "application/json";
|
|
58
|
-
body = JSON.stringify(
|
|
59
|
-
}
|
|
60
|
-
let response;
|
|
61
|
-
try {
|
|
62
|
-
response = await fetch(url, {
|
|
63
|
-
method,
|
|
64
|
-
headers,
|
|
65
|
-
body,
|
|
66
|
-
signal: AbortSignal.timeout(3e4)
|
|
67
|
-
});
|
|
68
|
-
} catch (err) {
|
|
69
|
-
throw new ConfigInvalidError(`Skill BFF 请求失败: ${err instanceof Error ? err.message : String(err)}`, "检查网络以及 /api/wc-skill/out/skills 服务是否可用");
|
|
49
|
+
body = JSON.stringify(options.body);
|
|
70
50
|
}
|
|
51
|
+
const response = await fetch(url, {
|
|
52
|
+
method,
|
|
53
|
+
headers,
|
|
54
|
+
body,
|
|
55
|
+
signal: AbortSignal.timeout(15e3)
|
|
56
|
+
});
|
|
71
57
|
const text = await response.text();
|
|
72
58
|
let envelope;
|
|
73
59
|
try {
|
|
74
60
|
envelope = JSON.parse(text);
|
|
75
61
|
} catch {
|
|
76
|
-
throw new Error(`
|
|
62
|
+
throw new Error(`skill-bff 返回非 JSON(HTTP ${response.status}): ${text.slice(0, 200)}`);
|
|
77
63
|
}
|
|
78
64
|
if (!response.ok || String(envelope.code) !== SUCCESS_CODE) {
|
|
79
65
|
const message = envelope.msg || envelope.error || text.slice(0, 200);
|
|
80
|
-
throw new Error(`
|
|
66
|
+
throw new Error(`skill-bff ${method} ${path} 失败: [${envelope.code ?? response.status}] ${message}`);
|
|
81
67
|
}
|
|
82
68
|
return envelope.data;
|
|
83
69
|
}
|
|
84
70
|
async function skillList(type, projectId) {
|
|
85
|
-
const
|
|
86
|
-
if ((type === "tenant" || type === "project" || !type) && !
|
|
71
|
+
const normalizedProjectId = projectId?.trim();
|
|
72
|
+
if ((type === "tenant" || type === "project" || !type) && !normalizedProjectId) throw new Error(type ? `skill list --type ${type} 需要 projectId(可传 --project-id,或先 project use)` : "skill list 需要 projectId(可传 --project-id,或先 project use)");
|
|
87
73
|
return await skillFetch("GET", "out/skills", { query: {
|
|
88
74
|
type,
|
|
89
|
-
projectId:
|
|
75
|
+
projectId: normalizedProjectId
|
|
90
76
|
} }) ?? [];
|
|
91
77
|
}
|
|
92
78
|
async function skillInstallGrant(skillId, projectId) {
|
|
93
79
|
const id = String(skillId).trim();
|
|
94
|
-
if (!/^\d+$/.test(id)) throw new Error("skill install 仅支持数字
|
|
95
|
-
const
|
|
96
|
-
if (!
|
|
97
|
-
return skillFetch("GET", `out/skills/${encodeURIComponent(id)}/package`, { query: { projectId:
|
|
80
|
+
if (!/^\d+$/.test(id)) throw new Error("skill install 仅支持数字 ID");
|
|
81
|
+
const normalizedProjectId = projectId?.trim();
|
|
82
|
+
if (!normalizedProjectId) throw new Error("skill install 需要 projectId(可传 --project-id,或先 project use)");
|
|
83
|
+
return skillFetch("GET", `out/skills/${encodeURIComponent(id)}/package`, { query: { projectId: normalizedProjectId } });
|
|
98
84
|
}
|
|
99
|
-
async function skillUploadInitiate(
|
|
100
|
-
const ownerType = (
|
|
85
|
+
async function skillUploadInitiate(input) {
|
|
86
|
+
const ownerType = (input?.ownerType?.trim() || "personal").toLowerCase();
|
|
101
87
|
if (ownerType !== "personal" && ownerType !== "tenant" && ownerType !== "project") throw new Error("ownerType 仅支持 personal | tenant | project");
|
|
102
|
-
const projectId =
|
|
88
|
+
const projectId = input?.projectId?.trim();
|
|
103
89
|
if (ownerType === "project" && !projectId) throw new Error("ownerType=project 需要 projectId");
|
|
104
90
|
const payload = {
|
|
105
91
|
ownerType,
|
|
106
92
|
projectId
|
|
107
93
|
};
|
|
108
|
-
if (
|
|
94
|
+
if (input?.skillId != null && String(input.skillId).trim() !== "") payload.skillId = String(input.skillId).trim();
|
|
109
95
|
return skillFetch("POST", "out/skills/uploads/initiate", { body: payload });
|
|
110
96
|
}
|
|
111
|
-
async function skillUploadConfirm(
|
|
112
|
-
return skillFetch("POST", "out/skills/uploads/confirm", { body });
|
|
97
|
+
async function skillUploadConfirm(input) {
|
|
98
|
+
return skillFetch("POST", "out/skills/uploads/confirm", { body: input });
|
|
113
99
|
}
|
|
114
|
-
/**
|
|
100
|
+
/** Upload a zip to the presigned object-storage URL returned by initiate. */
|
|
115
101
|
async function putSkillZip(uploadUrl, zipBytes, uploadHeaders) {
|
|
116
|
-
const
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
body: zipBytes,
|
|
126
|
-
signal: AbortSignal.timeout(6e4)
|
|
127
|
-
});
|
|
128
|
-
} catch (err) {
|
|
129
|
-
const detail = err instanceof Error ? err.message : String(err);
|
|
130
|
-
throw new Error(`上传 Skill 包失败: ${detail}`);
|
|
131
|
-
}
|
|
102
|
+
const response = await fetch(uploadUrl, {
|
|
103
|
+
method: "PUT",
|
|
104
|
+
headers: {
|
|
105
|
+
"Content-Type": "application/zip",
|
|
106
|
+
...uploadHeaders ?? {}
|
|
107
|
+
},
|
|
108
|
+
body: zipBytes,
|
|
109
|
+
signal: AbortSignal.timeout(6e4)
|
|
110
|
+
});
|
|
132
111
|
if (!response.ok) {
|
|
133
112
|
const text = await response.text().catch(() => "");
|
|
134
|
-
throw new Error(`OSS PUT
|
|
113
|
+
throw new Error(`OSS PUT 失败(HTTP ${response.status}): ${text.slice(0, 200) || response.statusText}`);
|
|
135
114
|
}
|
|
136
115
|
}
|
|
137
116
|
async function downloadSkillPackage(grant, installDir = resolveSkillInstallDir()) {
|
|
138
|
-
const
|
|
117
|
+
const skillId = String(grant.skillId).trim();
|
|
118
|
+
if (!/^\d+$/.test(skillId)) throw new Error("skill-bff 返回了无效的 Skill ID");
|
|
119
|
+
const skillDir = join(installDir, skillId);
|
|
139
120
|
await mkdir(skillDir, { recursive: true });
|
|
140
121
|
const zipPath = join(skillDir, "package.zip");
|
|
141
|
-
|
|
142
|
-
try {
|
|
143
|
-
response = await fetch(grant.downloadUrl, { signal: AbortSignal.timeout(6e4) });
|
|
144
|
-
} catch (err) {
|
|
145
|
-
const detail = err instanceof Error ? err.message : String(err);
|
|
146
|
-
throw new Error(`下载 Skill 包失败: ${detail}`);
|
|
147
|
-
}
|
|
122
|
+
const response = await fetch(grant.downloadUrl, { signal: AbortSignal.timeout(6e4) });
|
|
148
123
|
if (!response.ok || !response.body) throw new Error(`下载 Skill 包失败(HTTP ${response.status})`);
|
|
149
124
|
await pipeline(Readable.fromWeb(response.body), createWriteStream(zipPath));
|
|
150
125
|
if (grant.checksum) {
|
|
@@ -156,7 +131,7 @@ async function downloadSkillPackage(grant, installDir = resolveSkillInstallDir()
|
|
|
156
131
|
}
|
|
157
132
|
}
|
|
158
133
|
await writeFile(join(skillDir, "meta.json"), JSON.stringify({
|
|
159
|
-
skillId
|
|
134
|
+
skillId,
|
|
160
135
|
name: grant.name,
|
|
161
136
|
version: grant.version,
|
|
162
137
|
checksum: grant.checksum,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { c as requireActiveProject } from "./project-store-
|
|
1
|
+
import { c as requireActiveProject } from "./project-store-DUlIIW51.mjs";
|
|
2
2
|
import { n as writeError, t as formatCliArg } from "./cli.mjs";
|
|
3
|
-
import { n as resolveProjectId, t as projectIdCliArg } from "./mcp-args-
|
|
4
|
-
import { t as mcpCallPage } from "./mcp-result-
|
|
3
|
+
import { n as resolveProjectId, t as projectIdCliArg } from "./mcp-args-CG7OuBep.mjs";
|
|
4
|
+
import { t as mcpCallPage } from "./mcp-result-BzDGJUdM.mjs";
|
|
5
5
|
import { i as toLocalDateTime } from "./util-BtgWHKWv.mjs";
|
|
6
6
|
import { defineCommand } from "citty";
|
|
7
7
|
//#region src/commands/visit/summary.ts
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { c as requireActiveProject } from "./project-store-
|
|
1
|
+
import { c as requireActiveProject } from "./project-store-DUlIIW51.mjs";
|
|
2
2
|
import { n as writeError, t as formatCliArg } from "./cli.mjs";
|
|
3
|
-
import { n as mcpCall } from "./mcp-client-
|
|
4
|
-
import { n as resolveProjectId, t as projectIdCliArg } from "./mcp-args-
|
|
5
|
-
import { n as writeMcpDataResult } from "./mcp-result-
|
|
3
|
+
import { n as mcpCall } from "./mcp-client-huLKHRT3.mjs";
|
|
4
|
+
import { n as resolveProjectId, t as projectIdCliArg } from "./mcp-args-CG7OuBep.mjs";
|
|
5
|
+
import { n as writeMcpDataResult } from "./mcp-result-BzDGJUdM.mjs";
|
|
6
6
|
import { defineCommand } from "citty";
|
|
7
7
|
//#region src/commands/audio/text.ts
|
|
8
8
|
/**
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { n as writeError, r as writeResult, t as formatCliArg } from "./cli.mjs";
|
|
2
|
-
import { n as putSkillZip, o as skillUploadConfirm, s as skillUploadInitiate } from "./skill-client-
|
|
2
|
+
import { n as putSkillZip, o as skillUploadConfirm, s as skillUploadInitiate } from "./skill-client-DEbjlHcX.mjs";
|
|
3
3
|
import { defineCommand } from "citty";
|
|
4
4
|
import { readFile } from "node:fs/promises";
|
|
5
5
|
//#region src/commands/skill/upload.ts
|
|
6
6
|
/**
|
|
7
|
-
* `beautx-cli skill upload <zip>` — initiate
|
|
7
|
+
* `beautx-cli skill upload <zip>` — initiate, upload to OSS, then confirm.
|
|
8
8
|
*/
|
|
9
9
|
var upload_default = defineCommand({
|
|
10
10
|
meta: {
|
|
11
11
|
name: "upload",
|
|
12
|
-
description: "上传本地 Skill zip(
|
|
12
|
+
description: "上传本地 Skill zip(initiate → PUT → confirm)"
|
|
13
13
|
},
|
|
14
14
|
args: {
|
|
15
15
|
path: {
|
|
16
16
|
type: "positional",
|
|
17
|
-
description: "本地 .zip
|
|
17
|
+
description: "本地 .zip 路径(压缩包内需包含 SKILL.md)",
|
|
18
18
|
required: true
|
|
19
19
|
},
|
|
20
20
|
type: {
|
|
@@ -24,15 +24,15 @@ var upload_default = defineCommand({
|
|
|
24
24
|
},
|
|
25
25
|
"project-id": {
|
|
26
26
|
type: "string",
|
|
27
|
-
description: "项目 ID;type=project
|
|
27
|
+
description: "项目 ID;type=project 时必填,type=tenant 时可选"
|
|
28
28
|
},
|
|
29
29
|
"skill-id": {
|
|
30
30
|
type: "string",
|
|
31
|
-
description: "已有 Skill ID
|
|
31
|
+
description: "已有 Skill ID;传入时替换现有包,省略时新建"
|
|
32
32
|
},
|
|
33
33
|
tags: {
|
|
34
34
|
type: "string",
|
|
35
|
-
description: "
|
|
35
|
+
description: "可选标签 JSON 数组,例如 '[\"a\",\"b\"]'"
|
|
36
36
|
},
|
|
37
37
|
format: formatCliArg
|
|
38
38
|
},
|
|
@@ -45,18 +45,18 @@ var upload_default = defineCommand({
|
|
|
45
45
|
const zipBytes = await readFile(args.path.trim());
|
|
46
46
|
let skillId;
|
|
47
47
|
if (args["skill-id"]?.trim()) {
|
|
48
|
-
const
|
|
49
|
-
if (!/^\d+$/.test(
|
|
50
|
-
skillId =
|
|
48
|
+
const rawId = args["skill-id"].trim();
|
|
49
|
+
if (!/^\d+$/.test(rawId)) throw new Error("skill-id 必须为数字");
|
|
50
|
+
skillId = rawId;
|
|
51
51
|
}
|
|
52
|
-
const
|
|
52
|
+
const token = await skillUploadInitiate({
|
|
53
53
|
skillId,
|
|
54
54
|
ownerType: type,
|
|
55
55
|
projectId
|
|
56
56
|
});
|
|
57
|
-
await putSkillZip(
|
|
57
|
+
await putSkillZip(token.uploadUrl, zipBytes, token.uploadHeaders);
|
|
58
58
|
const skill = await skillUploadConfirm({
|
|
59
|
-
uploadToken:
|
|
59
|
+
uploadToken: token.token,
|
|
60
60
|
tags: args.tags?.trim() || void 0
|
|
61
61
|
});
|
|
62
62
|
writeResult({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as resolveProjectForUse, i as invalidateProjectAccessCache } from "./project-access-
|
|
2
|
-
import { i as invalidateActiveProjectCache, l as switchActiveProjectViaCallback, r as assertProjectSwitchAllowed } from "./project-store-
|
|
1
|
+
import { a as resolveProjectForUse, i as invalidateProjectAccessCache } from "./project-access-ChmJv4Z4.mjs";
|
|
2
|
+
import { i as invalidateActiveProjectCache, l as switchActiveProjectViaCallback, r as assertProjectSwitchAllowed } from "./project-store-DUlIIW51.mjs";
|
|
3
3
|
import { n as writeError, r as writeResult, t as formatCliArg } from "./cli.mjs";
|
|
4
4
|
import { defineCommand } from "citty";
|
|
5
5
|
//#region src/commands/project/use.ts
|
|
@@ -6,8 +6,8 @@ var visit_default = defineCommand({
|
|
|
6
6
|
description: "客户来访查询"
|
|
7
7
|
},
|
|
8
8
|
subCommands: {
|
|
9
|
-
list: () => import("./list-
|
|
10
|
-
summary: () => import("./summary-
|
|
9
|
+
list: () => import("./list-DD5SDjF3.mjs").then((m) => m.default),
|
|
10
|
+
summary: () => import("./summary-BBOsN5T9.mjs").then((m) => m.default)
|
|
11
11
|
}
|
|
12
12
|
});
|
|
13
13
|
//#endregion
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { c as requireActiveProject } from "./project-store-
|
|
1
|
+
import { c as requireActiveProject } from "./project-store-DUlIIW51.mjs";
|
|
2
2
|
import { n as writeError } from "./cli.mjs";
|
|
3
|
-
import { t as mcpCallPage } from "./mcp-result-
|
|
4
|
-
import { n as visitBatchQueryCliArgs, t as buildVisitBatchQueryArgs } from "./visit-query-args-
|
|
3
|
+
import { t as mcpCallPage } from "./mcp-result-BzDGJUdM.mjs";
|
|
4
|
+
import { n as visitBatchQueryCliArgs, t as buildVisitBatchQueryArgs } from "./visit-query-args-DW3qNnoL.mjs";
|
|
5
5
|
import { defineCommand } from "citty";
|
|
6
6
|
//#region src/commands/visit-evaluate/index.ts
|
|
7
7
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as formatCliArg } from "./cli.mjs";
|
|
2
|
-
import { n as resolveProjectId, t as projectIdCliArg } from "./mcp-args-
|
|
2
|
+
import { n as resolveProjectId, t as projectIdCliArg } from "./mcp-args-CG7OuBep.mjs";
|
|
3
3
|
import { i as toLocalDateTime, n as mergeIds, t as csvToArray } from "./util-BtgWHKWv.mjs";
|
|
4
4
|
//#region src/commands/common/visit-query-args.ts
|
|
5
5
|
const visitBatchQueryCliArgs = {
|
package/package.json
CHANGED