beautx-cli 1.0.9-beta.1 → 1.1.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.
Files changed (55) hide show
  1. package/README.md +9 -26
  2. package/dist/{analyze-CtxR02Xr.mjs → analyze-Cq-Hmoqp.mjs} +5 -5
  3. package/dist/{api-BdaZkABF.mjs → api-jIGM86TK.mjs} +1 -1
  4. package/dist/{audio-DlgPatwd.mjs → audio-p2QCYFdq.mjs} +3 -3
  5. package/dist/{beauty-plan-DNsCkUJY.mjs → beauty-plan-D1bqzOTP.mjs} +3 -3
  6. package/dist/beauty-plan-reminder-D-gVCeWO.mjs +79 -0
  7. package/dist/cli.mjs +18 -19
  8. package/dist/{config-DICowNg_.mjs → config-V1amf6sh.mjs} +2 -2
  9. package/dist/{consultant-Det5PdFh.mjs → consultant-DZeIOYgS.mjs} +1 -1
  10. package/dist/{content-BOTX5RjP.mjs → content-DbZ_Oi9R.mjs} +2 -2
  11. package/dist/{current-aBOk-h5x.mjs → current-RoW9iRya.mjs} +1 -1
  12. package/dist/{customer-Dr_mISml.mjs → customer-Cgsj-Z2b.mjs} +1 -1
  13. package/dist/{deal-analysis-K0jAibrc.mjs → deal-analysis-Da8iNy64.mjs} +3 -3
  14. package/dist/{doc-BuvQ5-m4.mjs → doc-D0ZKCnFf.mjs} +3 -3
  15. package/dist/{fields-CiWGp1Uy.mjs → fields-F00auxKR.mjs} +3 -3
  16. package/dist/{focus-c7Sx7x3t.mjs → focus-DlptSJrZ.mjs} +1 -1
  17. package/dist/{get-ByeAOvme.mjs → get-yHGUZY7o.mjs} +2 -2
  18. package/dist/{kb-DsyLK84W.mjs → kb-Cg2RM9t6.mjs} +2 -2
  19. package/dist/{list-Cq9rAt2i.mjs → list-Boz4Dr1p.mjs} +4 -4
  20. package/dist/{list-CDhdZByU.mjs → list-CDQGoZi6.mjs} +4 -4
  21. package/dist/{list-Bt87oTfo.mjs → list-Cnz5CuQB.mjs} +4 -4
  22. package/dist/{list-DD5SDjF3.mjs → list-Cos_lkZq.mjs} +4 -4
  23. package/dist/{list-D4gnORuG.mjs → list-Cws2iiW4.mjs} +1 -1
  24. package/dist/{list-BPBUK6SR.mjs → list-D7_yNqIG.mjs} +1 -3
  25. package/dist/{list-CGDMjHuN.mjs → list-DFjDJRhp.mjs} +4 -4
  26. package/dist/{list-BTsFZamG.mjs → list-DPVEnWni.mjs} +4 -4
  27. package/dist/{list-u0XN5Mv3.mjs → list-y471qVyN.mjs} +4 -4
  28. package/dist/{mcp-args-CG7OuBep.mjs → mcp-args-DK3IGaO1.mjs} +1 -1
  29. package/dist/{mcp-client-huLKHRT3.mjs → mcp-client-BTZH22b5.mjs} +3 -3
  30. package/dist/{mcp-result-BzDGJUdM.mjs → mcp-result-De_0PPlD.mjs} +1 -1
  31. package/dist/{portrait-tags-DDfhu52n.mjs → portrait-tags-LVjDI8fY.mjs} +3 -3
  32. package/dist/project-access-Bf87OLJP.mjs +2 -0
  33. package/dist/{project-access-ChmJv4Z4.mjs → project-access-pTN7ry15.mjs} +2 -3
  34. package/dist/{project-CFjWR38i.mjs → project-dVDXp2i-.mjs} +3 -3
  35. package/dist/project-store-DDVZ7T4t.mjs +2 -0
  36. package/dist/{project-store-DUlIIW51.mjs → project-store-Dl35JzZr.mjs} +207 -2
  37. package/dist/{qa-BvSY8aGf.mjs → qa-N4VI4Tww.mjs} +5 -5
  38. package/dist/{resistance-BsDf3Ywa.mjs → resistance-BWjqdajn.mjs} +1 -1
  39. package/dist/{search-Chnn4fM0.mjs → search-BWhcg6ng.mjs} +5 -5
  40. package/dist/{summary-BBOsN5T9.mjs → summary-DAf0vaO8.mjs} +4 -4
  41. package/dist/{text-CCxnry4V.mjs → text-BIIl7PmC.mjs} +4 -4
  42. package/dist/{use-DAcv-VQ0.mjs → use-B-mda_1X.mjs} +2 -2
  43. package/dist/{visit-evaluate-CaO2KvPG.mjs → visit-evaluate-DzuaUj0E.mjs} +3 -3
  44. package/dist/{visit-query-args-DW3qNnoL.mjs → visit-query-args-BsfU3CUz.mjs} +2 -2
  45. package/dist/{visit-B70PkDSX.mjs → visit-sMAORsRa.mjs} +2 -2
  46. package/package.json +1 -1
  47. package/dist/env-vars-osVxvm7z.mjs +0 -212
  48. package/dist/install-DQmxrW3j.mjs +0 -50
  49. package/dist/list-SIx70dm2.mjs +0 -77
  50. package/dist/project-access-D4b4oc5E.mjs +0 -2
  51. package/dist/project-store-DlbRmRAS.mjs +0 -2
  52. package/dist/skill-7jpFz8M3.mjs +0 -15
  53. package/dist/skill-client-DEbjlHcX.mjs +0 -146
  54. package/dist/upload-BSwTTmow.mjs +0 -76
  55. /package/dist/{util-BtgWHKWv.mjs → util-Bko-nm_R.mjs} +0 -0
package/README.md CHANGED
@@ -57,27 +57,6 @@ beautx-cli project current
57
57
  beautx-cli project use --project-id <项目ID>
58
58
  ```
59
59
 
60
- ### Skill 中心
61
-
62
- Skill 中心命令走 REST,并使用 Host 注入的沙箱双凭证鉴权。
63
-
64
- ```bash
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数组>]
74
- ```
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
-
81
60
  ### 顾问管理
82
61
 
83
62
  ```bash
@@ -154,6 +133,14 @@ beautx-cli visit-evaluate [选项]
154
133
  # 查询变美计划
155
134
  beautx-cli beauty-plan [选项]
156
135
 
136
+ # 查询变美计划未及时发送提醒批次
137
+ beautx-cli beauty-plan-reminder [选项]
138
+ --project-id <项目ID>
139
+ --batch-id <批次ID>
140
+ --generated-date <生成日期 yyyy-MM-dd>
141
+ --from-date <起始日期 yyyy-MM-dd>
142
+ --to-date <结束日期 yyyy-MM-dd>
143
+
157
144
  # 查询成交/未成交分析
158
145
  beautx-cli deal-analysis [选项]
159
146
 
@@ -245,11 +232,9 @@ CLI 通过环境变量获取身份(由 QCA / Host 沙箱注入)。当前项
245
232
  | --- | --- |
246
233
  | ENV | `test` / `prod` |
247
234
  | TENANT_ID / USER_ID | 租户、用户 |
248
- | SANDBOX_TENANT_SECRET / SANDBOX_USER_SECRET | 沙箱双 secret,用于 Token Broker 与 Skill 中心 REST 鉴权 |
235
+ | SANDBOX_TENANT_SECRET / SANDBOX_USER_SECRET | 沙箱双 secret,用于向 `/out/v2/mcp-token` 借 AT |
249
236
  | XB_APP_ID | 应用 ID(`aike` 时禁止 `project use`) |
250
237
  | SESSION_ID | 可选;有则 MCP 请求带 `X-MCP-Session-Id` |
251
- | SKILL_BFF_URL | 可选;覆盖当前环境内置的 Skill BFF 地址 |
252
- | SKILL_INSTALL_DIR | 可选;覆盖 `skill install` 的安装根目录 |
253
238
 
254
239
  - **MCP AT**:每次调用向 `{callbackBaseUrl}/api/qca-wangclaw/out/v2/mcp-token` 借用(进程内缓存)。
255
240
  - **当前项目**:`GET/PUT /api/qca-wangclaw/out/v2/current-project`(`project current` / `project use`)。
@@ -261,7 +246,6 @@ CLI 通过环境变量获取身份(由 QCA / Host 沙箱注入)。当前项
261
246
 
262
247
  ```
263
248
  beautx-cli → MCP Gateway → beautx-mcp-bff → wangai-mcp-application (beautx 端点)
264
- ↘ Skill BFF REST (`/api/wc-skill/out/**`)
265
249
  ```
266
250
 
267
251
  - **beautx-cli**:TypeScript CLI 工具,发送 JSON-RPC 请求
@@ -285,7 +269,6 @@ src/
285
269
  │ ├── resistance/ # 抗性点
286
270
  │ ├── audio/ # 录音管理
287
271
  │ ├── kb/ # 知识库
288
- │ ├── skill/ # Skill 中心
289
272
  │ ├── config/ # 配置查看
290
273
  │ ├── qa.ts # SQL Agent
291
274
  │ └── api.ts # 通用 API 调用
@@ -1,9 +1,9 @@
1
- import { c as requireActiveProject } from "./project-store-DUlIIW51.mjs";
1
+ import { c as requireActiveProject } from "./project-store-Dl35JzZr.mjs";
2
2
  import { n as writeError, t as formatCliArg } from "./cli.mjs";
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
- import { t as csvToArray } from "./util-BtgWHKWv.mjs";
3
+ import { n as mcpCall } from "./mcp-client-BTZH22b5.mjs";
4
+ import { n as resolveProjectId, t as projectIdCliArg } from "./mcp-args-DK3IGaO1.mjs";
5
+ import { n as writeMcpDataResult } from "./mcp-result-De_0PPlD.mjs";
6
+ import { t as csvToArray } from "./util-Bko-nm_R.mjs";
7
7
  import { defineCommand } from "citty";
8
8
  //#region src/commands/audio/analyze.ts
9
9
  /**
@@ -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-huLKHRT3.mjs";
2
+ import { n as mcpCall, t as MCP_SERVICE_CODE } from "./mcp-client-BTZH22b5.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-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)
9
+ list: () => import("./list-Cnz5CuQB.mjs").then((m) => m.default),
10
+ text: () => import("./text-BIIl7PmC.mjs").then((m) => m.default),
11
+ analyze: () => import("./analyze-Cq-Hmoqp.mjs").then((m) => m.default)
12
12
  }
13
13
  });
14
14
  //#endregion
@@ -1,7 +1,7 @@
1
- import { c as requireActiveProject } from "./project-store-DUlIIW51.mjs";
1
+ import { c as requireActiveProject } from "./project-store-Dl35JzZr.mjs";
2
2
  import { n as writeError } from "./cli.mjs";
3
- import { t as mcpCallPage } from "./mcp-result-BzDGJUdM.mjs";
4
- import { n as visitBatchQueryCliArgs, t as buildVisitBatchQueryArgs } from "./visit-query-args-DW3qNnoL.mjs";
3
+ import { t as mcpCallPage } from "./mcp-result-De_0PPlD.mjs";
4
+ import { n as visitBatchQueryCliArgs, t as buildVisitBatchQueryArgs } from "./visit-query-args-BsfU3CUz.mjs";
5
5
  import { defineCommand } from "citty";
6
6
  //#region src/commands/beauty-plan/index.ts
7
7
  /**
@@ -0,0 +1,79 @@
1
+ import { c as requireActiveProject } from "./project-store-Dl35JzZr.mjs";
2
+ import { n as writeError } from "./cli.mjs";
3
+ import { t as mcpCallPage } from "./mcp-result-De_0PPlD.mjs";
4
+ import { defineCommand } from "citty";
5
+ //#region src/commands/beauty-plan-reminder/index.ts
6
+ /**
7
+ * `beautx-cli beauty-plan-reminder` — query unsent beauty-plan reminder batches.
8
+ */
9
+ var beauty_plan_reminder_default = defineCommand({
10
+ meta: {
11
+ name: "beauty-plan-reminder",
12
+ description: "查询变美计划未及时发送提醒批次"
13
+ },
14
+ args: {
15
+ "project-id": {
16
+ type: "string",
17
+ description: "项目 ID;默认取当前激活项目"
18
+ },
19
+ "batch-id": {
20
+ type: "string",
21
+ description: "提醒批次 ID,可选"
22
+ },
23
+ "generated-date": {
24
+ type: "string",
25
+ description: "生成日期 yyyy-MM-dd,可选"
26
+ },
27
+ "from-date": {
28
+ type: "string",
29
+ description: "起始生成日期 yyyy-MM-dd,可选"
30
+ },
31
+ "to-date": {
32
+ type: "string",
33
+ description: "结束生成日期 yyyy-MM-dd,可选"
34
+ },
35
+ "only-unsent": {
36
+ type: "boolean",
37
+ description: "是否只返回未发送明细,默认 true"
38
+ },
39
+ page: {
40
+ type: "string",
41
+ default: "1",
42
+ description: "页码,从 1 开始"
43
+ },
44
+ size: {
45
+ type: "string",
46
+ default: "10",
47
+ description: "每页条数,最大 100"
48
+ },
49
+ format: {
50
+ type: "string",
51
+ default: "table",
52
+ description: "输出格式"
53
+ }
54
+ },
55
+ async run({ args }) {
56
+ try {
57
+ const active = await requireActiveProject();
58
+ await mcpCallPage("beauty-plan-reminder", {
59
+ project_id: args["project-id"] || active.projectId,
60
+ batch_id: args["batch-id"],
61
+ generated_date: args["generated-date"],
62
+ from_date: args["from-date"],
63
+ to_date: args["to-date"],
64
+ only_unsent: args["only-unsent"] ?? true,
65
+ page: Number(args.page),
66
+ size: Number(args.size)
67
+ }, args.format, {
68
+ itemsKey: "batches",
69
+ defaultPage: Number(args.page),
70
+ defaultSize: Number(args.size)
71
+ });
72
+ } catch (err) {
73
+ writeError(err, args.format);
74
+ process.exit(1);
75
+ }
76
+ }
77
+ });
78
+ //#endregion
79
+ export { beauty_plan_reminder_default as default };
package/dist/cli.mjs CHANGED
@@ -1,8 +1,7 @@
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-osVxvm7z.mjs";
4
- import { i as invalidateProjectAccessCache } from "./project-access-ChmJv4Z4.mjs";
5
- import { o as loadActiveProject } from "./project-store-DUlIIW51.mjs";
3
+ import { C as MissingAccessTokenError, S as ConfigInvalidError, _ as readEnv, b as syncProcessEnv, g as readCredentials, h as needsRefresh, m as isTokenExpired, o as loadActiveProject, u as ENV_KEYS, v as requireUserId, x as AccessTokenExpiredError, y as resolveEndpoints } from "./project-store-Dl35JzZr.mjs";
4
+ import { i as invalidateProjectAccessCache } from "./project-access-pTN7ry15.mjs";
6
5
  import { appendFileSync, mkdirSync, readFileSync } from "node:fs";
7
6
  import { dirname, join } from "node:path";
8
7
  import { fileURLToPath } from "node:url";
@@ -7636,22 +7635,22 @@ runMain(defineCommand({
7636
7635
  }
7637
7636
  },
7638
7637
  subCommands: {
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)
7638
+ config: () => import("./config-V1amf6sh.mjs").then((m) => m.default),
7639
+ project: () => import("./project-dVDXp2i-.mjs").then((m) => m.default),
7640
+ consultant: () => import("./consultant-DZeIOYgS.mjs").then((m) => m.default),
7641
+ audio: () => import("./audio-p2QCYFdq.mjs").then((m) => m.default),
7642
+ customer: () => import("./customer-Cgsj-Z2b.mjs").then((m) => m.default),
7643
+ visit: () => import("./visit-sMAORsRa.mjs").then((m) => m.default),
7644
+ "visit-evaluate": () => import("./visit-evaluate-DzuaUj0E.mjs").then((m) => m.default),
7645
+ "beauty-plan": () => import("./beauty-plan-D1bqzOTP.mjs").then((m) => m.default),
7646
+ "beauty-plan-reminder": () => import("./beauty-plan-reminder-D-gVCeWO.mjs").then((m) => m.default),
7647
+ "deal-analysis": () => import("./deal-analysis-Da8iNy64.mjs").then((m) => m.default),
7648
+ "portrait-tags": () => import("./portrait-tags-LVjDI8fY.mjs").then((m) => m.default),
7649
+ focus: () => import("./focus-DlptSJrZ.mjs").then((m) => m.default),
7650
+ resistance: () => import("./resistance-BWjqdajn.mjs").then((m) => m.default),
7651
+ qa: () => import("./qa-N4VI4Tww.mjs").then((m) => m.default),
7652
+ kb: () => import("./kb-Cg2RM9t6.mjs").then((m) => m.default)
7654
7653
  }
7655
7654
  }));
7656
7655
  //#endregion
7657
- export { debugLogInfo as a, runPreflight as c, buildSandboxProof as d, requireSandboxSecrets as f, debugLogError as i, ensureAuth as l, writeError as n, debugLogPath as o, requireTenantId as p, writeResult as r, isVerboseDebugEnabled as s, formatCliArg as t, WANGCLAW_AUTH_HEADER as u };
7656
+ export { debugLogInfo as a, runPreflight as c, debugLogError as i, ensureAuth as l, writeError as n, debugLogPath as o, writeResult as r, isVerboseDebugEnabled as s, formatCliArg as t };
@@ -6,9 +6,9 @@ var config_default = defineCommand({
6
6
  description: "沙箱配置:list 只读诊断;doctor 自检;fields 客户字段字典"
7
7
  },
8
8
  subCommands: {
9
- list: () => import("./list-BPBUK6SR.mjs").then((m) => m.default),
9
+ list: () => import("./list-D7_yNqIG.mjs").then((m) => m.default),
10
10
  doctor: () => import("./doctor-DuGxP40X.mjs").then((m) => m.default),
11
- fields: () => import("./fields-CiWGp1Uy.mjs").then((m) => m.default)
11
+ fields: () => import("./fields-F00auxKR.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-BTsFZamG.mjs").then((m) => m.default) }
8
+ subCommands: { list: () => import("./list-DPVEnWni.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-huLKHRT3.mjs";
3
- import { n as writeMcpDataResult } from "./mcp-result-BzDGJUdM.mjs";
2
+ import { n as mcpCall } from "./mcp-client-BTZH22b5.mjs";
3
+ import { n as writeMcpDataResult } from "./mcp-result-De_0PPlD.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-DUlIIW51.mjs";
1
+ import { c as requireActiveProject } from "./project-store-Dl35JzZr.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-CGDMjHuN.mjs").then((m) => m.default) }
8
+ subCommands: { list: () => import("./list-DFjDJRhp.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-DUlIIW51.mjs";
1
+ import { c as requireActiveProject } from "./project-store-Dl35JzZr.mjs";
2
2
  import { n as writeError } from "./cli.mjs";
3
- import { t as mcpCallPage } from "./mcp-result-BzDGJUdM.mjs";
4
- import { n as visitBatchQueryCliArgs, t as buildVisitBatchQueryArgs } from "./visit-query-args-DW3qNnoL.mjs";
3
+ import { t as mcpCallPage } from "./mcp-result-De_0PPlD.mjs";
4
+ import { n as visitBatchQueryCliArgs, t as buildVisitBatchQueryArgs } from "./visit-query-args-BsfU3CUz.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-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)
9
+ list: () => import("./list-CDQGoZi6.mjs").then((m) => m.default),
10
+ get: () => import("./get-yHGUZY7o.mjs").then((m) => m.default),
11
+ content: () => import("./content-DbZ_Oi9R.mjs").then((m) => m.default)
12
12
  }
13
13
  });
14
14
  //#endregion
@@ -1,7 +1,7 @@
1
- import { c as requireActiveProject } from "./project-store-DUlIIW51.mjs";
1
+ import { c as requireActiveProject } from "./project-store-Dl35JzZr.mjs";
2
2
  import { n as writeError, t as formatCliArg } from "./cli.mjs";
3
- import { n as resolveProjectId, t as projectIdCliArg } from "./mcp-args-CG7OuBep.mjs";
4
- import { t as mcpCallPage } from "./mcp-result-BzDGJUdM.mjs";
3
+ import { n as resolveProjectId, t as projectIdCliArg } from "./mcp-args-DK3IGaO1.mjs";
4
+ import { t as mcpCallPage } from "./mcp-result-De_0PPlD.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-Cq9rAt2i.mjs").then((m) => m.default) }
8
+ subCommands: { list: () => import("./list-Boz4Dr1p.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-huLKHRT3.mjs";
3
- import { n as writeMcpDataResult } from "./mcp-result-BzDGJUdM.mjs";
2
+ import { n as mcpCall } from "./mcp-client-BTZH22b5.mjs";
3
+ import { n as writeMcpDataResult } from "./mcp-result-De_0PPlD.mjs";
4
4
  import { defineCommand } from "citty";
5
5
  //#region src/commands/kb/doc/get.ts
6
6
  /**
@@ -6,8 +6,8 @@ var kb_default = defineCommand({
6
6
  description: "知识库检索与文档查询"
7
7
  },
8
8
  subCommands: {
9
- search: () => import("./search-Chnn4fM0.mjs").then((m) => m.default),
10
- doc: () => import("./doc-BuvQ5-m4.mjs").then((m) => m.default)
9
+ search: () => import("./search-BWhcg6ng.mjs").then((m) => m.default),
10
+ doc: () => import("./doc-D0ZKCnFf.mjs").then((m) => m.default)
11
11
  }
12
12
  });
13
13
  //#endregion
@@ -1,8 +1,8 @@
1
- import { c as requireActiveProject } from "./project-store-DUlIIW51.mjs";
1
+ import { c as requireActiveProject } from "./project-store-Dl35JzZr.mjs";
2
2
  import { n as writeError, t as formatCliArg } from "./cli.mjs";
3
- import { n as resolveProjectId, t as projectIdCliArg } from "./mcp-args-CG7OuBep.mjs";
4
- import { t as mcpCallPage } from "./mcp-result-BzDGJUdM.mjs";
5
- import { i as toLocalDateTime, t as csvToArray } from "./util-BtgWHKWv.mjs";
3
+ import { n as resolveProjectId, t as projectIdCliArg } from "./mcp-args-DK3IGaO1.mjs";
4
+ import { t as mcpCallPage } from "./mcp-result-De_0PPlD.mjs";
5
+ import { i as toLocalDateTime, t as csvToArray } from "./util-Bko-nm_R.mjs";
6
6
  import { defineCommand } from "citty";
7
7
  //#region src/commands/focus/list.ts
8
8
  /**
@@ -1,8 +1,8 @@
1
- import { c as requireActiveProject } from "./project-store-DUlIIW51.mjs";
1
+ import { c as requireActiveProject } from "./project-store-Dl35JzZr.mjs";
2
2
  import { n as writeError, t as formatCliArg } from "./cli.mjs";
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";
3
+ import { n as mcpCall } from "./mcp-client-BTZH22b5.mjs";
4
+ import { i as tenantIdCliArg, n as resolveProjectId, r as resolveTenantId, t as projectIdCliArg } from "./mcp-args-DK3IGaO1.mjs";
5
+ import { n as writeMcpDataResult } from "./mcp-result-De_0PPlD.mjs";
6
6
  import { defineCommand } from "citty";
7
7
  //#region src/commands/kb/doc/list.ts
8
8
  /**
@@ -1,8 +1,8 @@
1
- import { c as requireActiveProject } from "./project-store-DUlIIW51.mjs";
1
+ import { c as requireActiveProject } from "./project-store-Dl35JzZr.mjs";
2
2
  import { n as writeError, t as formatCliArg } from "./cli.mjs";
3
- import { n as resolveProjectId, t as projectIdCliArg } from "./mcp-args-CG7OuBep.mjs";
4
- import { t as mcpCallPage } from "./mcp-result-BzDGJUdM.mjs";
5
- import { i as toLocalDateTime, r as mergeUserIds, t as csvToArray } from "./util-BtgWHKWv.mjs";
3
+ import { n as resolveProjectId, t as projectIdCliArg } from "./mcp-args-DK3IGaO1.mjs";
4
+ import { t as mcpCallPage } from "./mcp-result-De_0PPlD.mjs";
5
+ import { i as toLocalDateTime, r as mergeUserIds, t as csvToArray } from "./util-Bko-nm_R.mjs";
6
6
  import { defineCommand } from "citty";
7
7
  //#region src/commands/audio/list.ts
8
8
  /**
@@ -1,8 +1,8 @@
1
- import { c as requireActiveProject } from "./project-store-DUlIIW51.mjs";
1
+ import { c as requireActiveProject } from "./project-store-Dl35JzZr.mjs";
2
2
  import { n as writeError, t as formatCliArg } from "./cli.mjs";
3
- import { n as resolveProjectId, t as projectIdCliArg } from "./mcp-args-CG7OuBep.mjs";
4
- import { t as mcpCallPage } from "./mcp-result-BzDGJUdM.mjs";
5
- import { i as toLocalDateTime } from "./util-BtgWHKWv.mjs";
3
+ import { n as resolveProjectId, t as projectIdCliArg } from "./mcp-args-DK3IGaO1.mjs";
4
+ import { t as mcpCallPage } from "./mcp-result-De_0PPlD.mjs";
5
+ import { i as toLocalDateTime } from "./util-Bko-nm_R.mjs";
6
6
  import { defineCommand } from "citty";
7
7
  //#region src/commands/visit/list.ts
8
8
  /**
@@ -1,5 +1,5 @@
1
1
  import { n as writeError, t as formatCliArg } from "./cli.mjs";
2
- import { t as mcpCallPage } from "./mcp-result-BzDGJUdM.mjs";
2
+ import { t as mcpCallPage } from "./mcp-result-De_0PPlD.mjs";
3
3
  import { defineCommand } from "citty";
4
4
  //#region src/commands/project/list.ts
5
5
  /**
@@ -1,5 +1,4 @@
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";
1
+ import { _ as readEnv, a as isProjectSwitchAllowed, f as credentialStatus, g as readCredentials, o as loadActiveProject, p as isEnvInjectedByHost, u as ENV_KEYS, y as resolveEndpoints } from "./project-store-Dl35JzZr.mjs";
3
2
  import { n as writeError, o as debugLogPath, r as writeResult, s as isVerboseDebugEnabled, t as formatCliArg } from "./cli.mjs";
4
3
  import { defineCommand } from "citty";
5
4
  //#region src/core/mask-env.ts
@@ -40,7 +39,6 @@ var list_default = defineCommand({
40
39
  gatewayUrl: endpoints.gatewayUrl,
41
40
  authUrl: endpoints.authUrl,
42
41
  callbackBaseUrl: endpoints.callbackBaseUrl,
43
- skillBffUrl: endpoints.skillBffUrl,
44
42
  urlProfileSource: "src/core/endpoints.ts",
45
43
  configSource: "environment",
46
44
  credentialsManagedBy: "host",
@@ -1,8 +1,8 @@
1
- import { c as requireActiveProject } from "./project-store-DUlIIW51.mjs";
1
+ import { c as requireActiveProject } from "./project-store-Dl35JzZr.mjs";
2
2
  import { n as writeError, t as formatCliArg } from "./cli.mjs";
3
- import { n as resolveProjectId, t as projectIdCliArg } from "./mcp-args-CG7OuBep.mjs";
4
- import { t as mcpCallPage } from "./mcp-result-BzDGJUdM.mjs";
5
- import { i as toLocalDateTime } from "./util-BtgWHKWv.mjs";
3
+ import { n as resolveProjectId, t as projectIdCliArg } from "./mcp-args-DK3IGaO1.mjs";
4
+ import { t as mcpCallPage } from "./mcp-result-De_0PPlD.mjs";
5
+ import { i as toLocalDateTime } from "./util-Bko-nm_R.mjs";
6
6
  import { defineCommand } from "citty";
7
7
  //#region src/commands/customer/list.ts
8
8
  /**
@@ -1,8 +1,8 @@
1
- import { c as requireActiveProject } from "./project-store-DUlIIW51.mjs";
1
+ import { c as requireActiveProject } from "./project-store-Dl35JzZr.mjs";
2
2
  import { n as writeError, t as formatCliArg } from "./cli.mjs";
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";
3
+ import { n as mcpCall } from "./mcp-client-BTZH22b5.mjs";
4
+ import { n as resolveProjectId, t as projectIdCliArg } from "./mcp-args-DK3IGaO1.mjs";
5
+ import { n as writeMcpDataResult } from "./mcp-result-De_0PPlD.mjs";
6
6
  import { defineCommand } from "citty";
7
7
  //#region src/commands/consultant/list.ts
8
8
  /**
@@ -1,8 +1,8 @@
1
- import { c as requireActiveProject } from "./project-store-DUlIIW51.mjs";
1
+ import { c as requireActiveProject } from "./project-store-Dl35JzZr.mjs";
2
2
  import { n as writeError, t as formatCliArg } from "./cli.mjs";
3
- import { n as resolveProjectId, t as projectIdCliArg } from "./mcp-args-CG7OuBep.mjs";
4
- import { t as mcpCallPage } from "./mcp-result-BzDGJUdM.mjs";
5
- import { i as toLocalDateTime, t as csvToArray } from "./util-BtgWHKWv.mjs";
3
+ import { n as resolveProjectId, t as projectIdCliArg } from "./mcp-args-DK3IGaO1.mjs";
4
+ import { t as mcpCallPage } from "./mcp-result-De_0PPlD.mjs";
5
+ import { i as toLocalDateTime, t as csvToArray } from "./util-Bko-nm_R.mjs";
6
6
  import { defineCommand } from "citty";
7
7
  //#region src/commands/resistance/list.ts
8
8
  /**
@@ -1,4 +1,4 @@
1
- import { c as readEnv, t as ENV_KEYS } from "./env-vars-osVxvm7z.mjs";
1
+ import { _ as readEnv, u as ENV_KEYS } from "./project-store-Dl35JzZr.mjs";
2
2
  //#region src/core/mcp-args.ts
3
3
  /**
4
4
  * Shared MCP argument helpers — align CLI flags with BFF tool schemas.
@@ -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-osVxvm7z.mjs";
2
+ import { C as MissingAccessTokenError, _ as readEnv, d as assertEndpointsValid, u as ENV_KEYS, w as MissingGatewayError, y as resolveEndpoints } from "./project-store-Dl35JzZr.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-DlbRmRAS.mjs");
138
+ const { loadActiveProject } = await import("./project-store-DDVZ7T4t.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-D4b4oc5E.mjs");
144
+ const { assertProjectAllowed } = await import("./project-access-Bf87OLJP.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-huLKHRT3.mjs";
2
+ import { i as unwrapMcpToolEnvelope, n as mcpCall } from "./mcp-client-BTZH22b5.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-DUlIIW51.mjs";
1
+ import { c as requireActiveProject } from "./project-store-Dl35JzZr.mjs";
2
2
  import { n as writeError } from "./cli.mjs";
3
- import { t as mcpCallPage } from "./mcp-result-BzDGJUdM.mjs";
4
- import { n as visitBatchQueryCliArgs, t as buildVisitBatchQueryArgs } from "./visit-query-args-DW3qNnoL.mjs";
3
+ import { t as mcpCallPage } from "./mcp-result-De_0PPlD.mjs";
4
+ import { n as visitBatchQueryCliArgs, t as buildVisitBatchQueryArgs } from "./visit-query-args-BsfU3CUz.mjs";
5
5
  import { defineCommand } from "citty";
6
6
  //#region src/commands/portrait-tags/index.ts
7
7
  /**
@@ -0,0 +1,2 @@
1
+ import { r as assertProjectAllowed } from "./project-access-pTN7ry15.mjs";
2
+ export { assertProjectAllowed };
@@ -1,5 +1,4 @@
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";
1
+ import { S as ConfigInvalidError, _ as readEnv, o as loadActiveProject, s as peekCachedActiveProject, u as ENV_KEYS, v as requireUserId, y as resolveEndpoints } from "./project-store-Dl35JzZr.mjs";
3
2
  var InsufficientCreditError = class extends Error {
4
3
  code = "INSUFFICIENT_CREDIT";
5
4
  hint = "(该项目下)用户积分余额不足,无法继续查询;请告知用户联系管理员充值";
@@ -228,7 +227,7 @@ function normalizeProjectListPage(page) {
228
227
  };
229
228
  }
230
229
  async function fetchProjectListPage(page, size) {
231
- const { mcpCall, unwrapMcpToolEnvelope } = await import("./mcp-client-huLKHRT3.mjs").then((n) => n.r);
230
+ const { mcpCall, unwrapMcpToolEnvelope } = await import("./mcp-client-BTZH22b5.mjs").then((n) => n.r);
232
231
  const result = await mcpCall("project-list", { arguments: {
233
232
  page,
234
233
  size
@@ -6,9 +6,9 @@ var project_default = defineCommand({
6
6
  description: "查询 / 切换激活项目"
7
7
  },
8
8
  subCommands: {
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)
9
+ list: () => import("./list-Cws2iiW4.mjs").then((m) => m.default),
10
+ use: () => import("./use-B-mda_1X.mjs").then((m) => m.default),
11
+ current: () => import("./current-RoW9iRya.mjs").then((m) => m.default)
12
12
  }
13
13
  });
14
14
  //#endregion
@@ -0,0 +1,2 @@
1
+ import { o as loadActiveProject } from "./project-store-Dl35JzZr.mjs";
2
+ export { loadActiveProject };