beautx-cli 1.1.0 → 1.1.1-beta.3

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 (64) hide show
  1. package/README.md +57 -4
  2. package/dist/{analyze-Cq-Hmoqp.mjs → analyze-CtxR02Xr.mjs} +5 -5
  3. package/dist/{api-jIGM86TK.mjs → api-BdaZkABF.mjs} +1 -1
  4. package/dist/{audio-p2QCYFdq.mjs → audio-DlgPatwd.mjs} +3 -3
  5. package/dist/beauty-plan-CmcNlyKk.mjs +51 -0
  6. package/dist/{beauty-plan-reminder-D-gVCeWO.mjs → beauty-plan-reminder-B7g7RRTs.mjs} +2 -2
  7. package/dist/capability-profile-yPTx4Mn4.mjs +61 -0
  8. package/dist/cli.mjs +22 -18
  9. package/dist/{config-V1amf6sh.mjs → config-BjsUQ9I-.mjs} +3 -3
  10. package/dist/{consultant-DZeIOYgS.mjs → consultant-vVraua0_.mjs} +1 -1
  11. package/dist/{content-DbZ_Oi9R.mjs → content-Ce7jKBol.mjs} +2 -2
  12. package/dist/{current-RoW9iRya.mjs → current-fzCrzKjn.mjs} +1 -1
  13. package/dist/{customer-Cgsj-Z2b.mjs → customer-CnAv26d0.mjs} +1 -1
  14. package/dist/{deal-analysis-Da8iNy64.mjs → deal-analysis-CX4IXbgk.mjs} +3 -3
  15. package/dist/detail-ZG7WTexq.mjs +44 -0
  16. package/dist/{doc-D0ZKCnFf.mjs → doc-DU2dYD57.mjs} +3 -3
  17. package/dist/env-vars-osVxvm7z.mjs +212 -0
  18. package/dist/{fields-F00auxKR.mjs → fields-DuAxLfSA.mjs} +3 -3
  19. package/dist/{focus-DlptSJrZ.mjs → focus-Dx1rT6QE.mjs} +1 -1
  20. package/dist/get-CCpn3m06.mjs +40 -0
  21. package/dist/{get-yHGUZY7o.mjs → get-HrCcvm-j.mjs} +2 -2
  22. package/dist/golden-sentence-DAM_YC7V.mjs +11 -0
  23. package/dist/install-B9_5ceYu.mjs +50 -0
  24. package/dist/{kb-Cg2RM9t6.mjs → kb-CygBF0br.mjs} +2 -2
  25. package/dist/{list-D7_yNqIG.mjs → list-6eMMquS2.mjs} +3 -1
  26. package/dist/{list-DPVEnWni.mjs → list-7ynSCgKJ.mjs} +4 -4
  27. package/dist/{list-Cnz5CuQB.mjs → list-Bt87oTfo.mjs} +4 -4
  28. package/dist/{list-Boz4Dr1p.mjs → list-Cc0bsWKY.mjs} +4 -4
  29. package/dist/{list-y471qVyN.mjs → list-DKbbBiI62.mjs} +4 -4
  30. package/dist/{list-DFjDJRhp.mjs → list-Dttn4hHn.mjs} +14 -4
  31. package/dist/list-DyAO08z92.mjs +77 -0
  32. package/dist/{list-CDQGoZi6.mjs → list-EcRLnxXY.mjs} +4 -4
  33. package/dist/{list-Cos_lkZq.mjs → list-e0tVlYwh.mjs} +4 -4
  34. package/dist/{list-Cws2iiW4.mjs → list-xjVc-39m.mjs} +1 -1
  35. package/dist/{mcp-args-DK3IGaO1.mjs → mcp-args-CG7OuBep.mjs} +1 -1
  36. package/dist/{mcp-client-BTZH22b5.mjs → mcp-client-huLKHRT3.mjs} +3 -3
  37. package/dist/{mcp-result-De_0PPlD.mjs → mcp-result-BzDGJUdM.mjs} +1 -1
  38. package/dist/panke-DY7IFcsN.mjs +14 -0
  39. package/dist/{portrait-tags-LVjDI8fY.mjs → portrait-tags-Dq0faG7k.mjs} +3 -3
  40. package/dist/{project-dVDXp2i-.mjs → project-BuF0FYZp.mjs} +3 -3
  41. package/dist/{project-access-pTN7ry15.mjs → project-access-ChmJv4Z4.mjs} +3 -2
  42. package/dist/project-access-D4b4oc5E.mjs +2 -0
  43. package/dist/{project-store-Dl35JzZr.mjs → project-store-DUlIIW51.mjs} +2 -207
  44. package/dist/project-store-DlbRmRAS.mjs +2 -0
  45. package/dist/{qa-N4VI4Tww.mjs → qa-MQphVELO.mjs} +5 -5
  46. package/dist/{resistance-BWjqdajn.mjs → resistance-CzNYvRYF.mjs} +1 -1
  47. package/dist/{search-BWhcg6ng.mjs → search-CnFRGjnD.mjs} +5 -5
  48. package/dist/skill-_PLQOZgT.mjs +15 -0
  49. package/dist/skill-client-CLXEQ0Hv.mjs +146 -0
  50. package/dist/staff-ZUbldU8P.mjs +11 -0
  51. package/dist/{summary-DAf0vaO8.mjs → summary-B12uZDGr.mjs} +4 -4
  52. package/dist/task-CAobpQXt.mjs +40 -0
  53. package/dist/{text-BIIl7PmC.mjs → text-CCxnry4V.mjs} +4 -4
  54. package/dist/upload-COReB487.mjs +76 -0
  55. package/dist/{use-B-mda_1X.mjs → use-e7Wzfw1k.mjs} +2 -2
  56. package/dist/{visit-sMAORsRa.mjs → visit-DPkOV48n.mjs} +2 -2
  57. package/dist/{visit-query-args-BsfU3CUz.mjs → visit-query-args-BVeYwlRt.mjs} +2 -2
  58. package/package.json +1 -1
  59. package/dist/beauty-plan-D1bqzOTP.mjs +0 -36
  60. package/dist/project-access-Bf87OLJP.mjs +0 -2
  61. package/dist/project-store-DDVZ7T4t.mjs +0 -2
  62. package/dist/visit-evaluate-DzuaUj0E.mjs +0 -30
  63. /package/dist/{doctor-DuGxP40X.mjs → doctor-BuiUn2Zy.mjs} +0 -0
  64. /package/dist/{util-Bko-nm_R.mjs → util-BtgWHKWv.mjs} +0 -0
package/README.md CHANGED
@@ -57,6 +57,27 @@ 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
+
60
81
  ### 顾问管理
61
82
 
62
83
  ```bash
@@ -69,6 +90,8 @@ beautx-cli consultant list [--page <页码>] [--size <每页条数>]
69
90
  ```bash
70
91
  # 列出客户
71
92
  beautx-cli customer list [选项]
93
+ --customer-id <客户ID> # 单个 wang_id 精确匹配
94
+ --customer-ids <客户ID列表> # 多个 wang_id,逗号分隔
72
95
  --user-id <顾问ID> # 过滤特定顾问的客户
73
96
  --user-name <顾问名> # 顾问姓名模糊搜索
74
97
  --customer-name <客户名> # 客户姓名模糊搜索
@@ -80,6 +103,33 @@ beautx-cli customer list [选项]
80
103
  --size <每页条数> # 每页条数
81
104
  ```
82
105
 
106
+ ### 员工能力
107
+
108
+ ```bash
109
+ beautx-cli staff capability-profile [选项]
110
+ --staff-user-id <员工ID> # basic_staff.user_id,必填
111
+ --from <开始时间> # 可选,yyyy-MM-dd HH:mm:ss
112
+ --to <结束时间> # 可选,yyyy-MM-dd HH:mm:ss
113
+ ```
114
+
115
+ ### 盘客详情
116
+
117
+ ```bash
118
+ # 查询小美待盘客任务
119
+ beautx-cli panke task --panke-task-id <任务ID>
120
+
121
+ # 查询地产盘客 SOP
122
+ beautx-cli panke detail [选项]
123
+ --panke-id <盘客SOP ID> # 必填,不能使用待盘客任务ID代替
124
+ --include-transcript # 可选,查询录音原文
125
+ ```
126
+
127
+ ### 小美金句
128
+
129
+ ```bash
130
+ beautx-cli golden-sentence get --golden-sentence-id <金句ID>
131
+ ```
132
+
83
133
  ### 来访管理
84
134
 
85
135
  ```bash
@@ -127,11 +177,10 @@ beautx-cli resistance list [选项]
127
177
  ### 医美专项分析
128
178
 
129
179
  ```bash
130
- # 查询接诊评价
131
- beautx-cli visit-evaluate [选项]
132
-
133
180
  # 查询变美计划
134
181
  beautx-cli beauty-plan [选项]
182
+ --followup-report-id <计划ID>
183
+ --followup-report-ids <计划ID列表>
135
184
 
136
185
  # 查询变美计划未及时发送提醒批次
137
186
  beautx-cli beauty-plan-reminder [选项]
@@ -232,9 +281,11 @@ CLI 通过环境变量获取身份(由 QCA / Host 沙箱注入)。当前项
232
281
  | --- | --- |
233
282
  | ENV | `test` / `prod` |
234
283
  | TENANT_ID / USER_ID | 租户、用户 |
235
- | SANDBOX_TENANT_SECRET / SANDBOX_USER_SECRET | 沙箱双 secret,用于向 `/out/v2/mcp-token` 借 AT |
284
+ | SANDBOX_TENANT_SECRET / SANDBOX_USER_SECRET | 沙箱双 secret,用于 Token Broker 与 Skill 中心 REST 鉴权 |
236
285
  | XB_APP_ID | 应用 ID(`aike` 时禁止 `project use`) |
237
286
  | SESSION_ID | 可选;有则 MCP 请求带 `X-MCP-Session-Id` |
287
+ | SKILL_BFF_URL | 可选;覆盖当前环境内置的 Skill BFF 地址 |
288
+ | SKILL_INSTALL_DIR | 可选;覆盖 `skill install` 的安装根目录 |
238
289
 
239
290
  - **MCP AT**:每次调用向 `{callbackBaseUrl}/api/qca-wangclaw/out/v2/mcp-token` 借用(进程内缓存)。
240
291
  - **当前项目**:`GET/PUT /api/qca-wangclaw/out/v2/current-project`(`project current` / `project use`)。
@@ -246,6 +297,7 @@ CLI 通过环境变量获取身份(由 QCA / Host 沙箱注入)。当前项
246
297
 
247
298
  ```
248
299
  beautx-cli → MCP Gateway → beautx-mcp-bff → wangai-mcp-application (beautx 端点)
300
+ ↘ Skill BFF REST (`/api/wc-skill/out/**`)
249
301
  ```
250
302
 
251
303
  - **beautx-cli**:TypeScript CLI 工具,发送 JSON-RPC 请求
@@ -269,6 +321,7 @@ src/
269
321
  │ ├── resistance/ # 抗性点
270
322
  │ ├── audio/ # 录音管理
271
323
  │ ├── kb/ # 知识库
324
+ │ ├── skill/ # Skill 中心
272
325
  │ ├── config/ # 配置查看
273
326
  │ ├── qa.ts # SQL Agent
274
327
  │ └── api.ts # 通用 API 调用
@@ -1,9 +1,9 @@
1
- import { c as requireActiveProject } from "./project-store-Dl35JzZr.mjs";
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-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";
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";
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-BTZH22b5.mjs";
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-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)
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
@@ -0,0 +1,51 @@
1
+ import { c as requireActiveProject } from "./project-store-DUlIIW51.mjs";
2
+ import { n as writeError } from "./cli.mjs";
3
+ import { t as mcpCallPage } from "./mcp-result-BzDGJUdM.mjs";
4
+ import { n as mergeIds, t as csvToArray } from "./util-BtgWHKWv.mjs";
5
+ import { n as visitBatchQueryCliArgs, t as buildVisitBatchQueryArgs } from "./visit-query-args-BVeYwlRt.mjs";
6
+ import { defineCommand } from "citty";
7
+ //#region src/commands/beauty-plan/index.ts
8
+ /**
9
+ * `beautx-cli beauty-plan` — page beautx beauty plans via MCP gateway.
10
+ */
11
+ function buildBeautyPlanArgs(args, active) {
12
+ return buildVisitBatchQueryArgs(args, active, {
13
+ followup_report_ids: mergeIds(args["followup-report-id"], csvToArray(args["followup-report-ids"])),
14
+ latest_only: args["latest-only"]
15
+ });
16
+ }
17
+ var beauty_plan_default = defineCommand({
18
+ meta: {
19
+ name: "beauty-plan",
20
+ description: "医美变美计划分页查询"
21
+ },
22
+ args: {
23
+ ...visitBatchQueryCliArgs,
24
+ "followup-report-id": {
25
+ type: "string",
26
+ description: "单个变美计划/跟进报告 ID(会转为 MCP followup_report_ids)"
27
+ },
28
+ "followup-report-ids": {
29
+ type: "string",
30
+ description: "变美计划/跟进报告 ID CSV → MCP followup_report_ids"
31
+ },
32
+ "latest-only": {
33
+ type: "boolean",
34
+ description: "按客户查询时是否只返回最近一次;不传则使用后端默认 true"
35
+ }
36
+ },
37
+ async run({ args }) {
38
+ try {
39
+ await mcpCallPage("beauty-plan", buildBeautyPlanArgs(args, await requireActiveProject()), args.format, {
40
+ itemsKey: "beautyPlans",
41
+ defaultPage: Number(args.page),
42
+ defaultSize: Number(args.size)
43
+ });
44
+ } catch (err) {
45
+ writeError(err, args.format);
46
+ process.exit(1);
47
+ }
48
+ }
49
+ });
50
+ //#endregion
51
+ export { beauty_plan_default as default };
@@ -1,6 +1,6 @@
1
- import { c as requireActiveProject } from "./project-store-Dl35JzZr.mjs";
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-De_0PPlD.mjs";
3
+ import { t as mcpCallPage } from "./mcp-result-BzDGJUdM.mjs";
4
4
  import { defineCommand } from "citty";
5
5
  //#region src/commands/beauty-plan-reminder/index.ts
6
6
  /**
@@ -0,0 +1,61 @@
1
+ import { c as requireActiveProject } from "./project-store-DUlIIW51.mjs";
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 { i as toLocalDateTime } from "./util-BtgWHKWv.mjs";
7
+ import { defineCommand } from "citty";
8
+ //#region src/commands/staff/capability-profile.ts
9
+ function buildStaffCapabilityProfileArgs(args, active) {
10
+ const staffUserId = String(args["staff-user-id"] || "").trim();
11
+ if (!staffUserId) throw new Error("--staff-user-id is required");
12
+ const start = toLocalDateTime(args.from);
13
+ const end = toLocalDateTime(args.to);
14
+ return {
15
+ project_id: resolveProjectId(args["project-id"], active),
16
+ variables: {
17
+ staff_user_id: staffUserId,
18
+ ...start ? { staff_metric_start_time: start } : {},
19
+ ...end ? { staff_metric_end_time: end } : {}
20
+ },
21
+ ...start || end ? { time_range: {
22
+ ...start ? { start } : {},
23
+ ...end ? { end } : {}
24
+ } } : {}
25
+ };
26
+ }
27
+ var capability_profile_default = defineCommand({
28
+ meta: {
29
+ name: "capability-profile",
30
+ description: "查询指定员工的基础信息、能力指标与团队参考"
31
+ },
32
+ args: {
33
+ ...projectIdCliArg,
34
+ "staff-user-id": {
35
+ type: "string",
36
+ description: "员工 basic_staff.user_id"
37
+ },
38
+ from: {
39
+ type: "string",
40
+ description: "统计开始时间 yyyy-MM-dd HH:mm:ss"
41
+ },
42
+ to: {
43
+ type: "string",
44
+ description: "统计结束时间 yyyy-MM-dd HH:mm:ss"
45
+ },
46
+ format: formatCliArg
47
+ },
48
+ async run({ args }) {
49
+ try {
50
+ writeMcpDataResult(await mcpCall("staff-capability-profile", {
51
+ arguments: buildStaffCapabilityProfileArgs(args, await requireActiveProject()),
52
+ timeoutMs: 9e4
53
+ }), args.format);
54
+ } catch (err) {
55
+ writeError(err, args.format);
56
+ process.exit(1);
57
+ }
58
+ }
59
+ });
60
+ //#endregion
61
+ export { capability_profile_default as default };
package/dist/cli.mjs CHANGED
@@ -1,7 +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 { 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";
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";
5
6
  import { appendFileSync, mkdirSync, readFileSync } from "node:fs";
6
7
  import { dirname, join } from "node:path";
7
8
  import { fileURLToPath } from "node:url";
@@ -7635,22 +7636,25 @@ runMain(defineCommand({
7635
7636
  }
7636
7637
  },
7637
7638
  subCommands: {
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)
7639
+ config: () => import("./config-BjsUQ9I-.mjs").then((m) => m.default),
7640
+ project: () => import("./project-BuF0FYZp.mjs").then((m) => m.default),
7641
+ skill: () => import("./skill-_PLQOZgT.mjs").then((m) => m.default),
7642
+ consultant: () => import("./consultant-vVraua0_.mjs").then((m) => m.default),
7643
+ staff: () => import("./staff-ZUbldU8P.mjs").then((m) => m.default),
7644
+ "golden-sentence": () => import("./golden-sentence-DAM_YC7V.mjs").then((m) => m.default),
7645
+ panke: () => import("./panke-DY7IFcsN.mjs").then((m) => m.default),
7646
+ audio: () => import("./audio-DlgPatwd.mjs").then((m) => m.default),
7647
+ customer: () => import("./customer-CnAv26d0.mjs").then((m) => m.default),
7648
+ visit: () => import("./visit-DPkOV48n.mjs").then((m) => m.default),
7649
+ "beauty-plan": () => import("./beauty-plan-CmcNlyKk.mjs").then((m) => m.default),
7650
+ "beauty-plan-reminder": () => import("./beauty-plan-reminder-B7g7RRTs.mjs").then((m) => m.default),
7651
+ "deal-analysis": () => import("./deal-analysis-CX4IXbgk.mjs").then((m) => m.default),
7652
+ "portrait-tags": () => import("./portrait-tags-Dq0faG7k.mjs").then((m) => m.default),
7653
+ focus: () => import("./focus-Dx1rT6QE.mjs").then((m) => m.default),
7654
+ resistance: () => import("./resistance-CzNYvRYF.mjs").then((m) => m.default),
7655
+ qa: () => import("./qa-MQphVELO.mjs").then((m) => m.default),
7656
+ kb: () => import("./kb-CygBF0br.mjs").then((m) => m.default)
7653
7657
  }
7654
7658
  }));
7655
7659
  //#endregion
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 };
7660
+ 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 };
@@ -6,9 +6,9 @@ var config_default = defineCommand({
6
6
  description: "沙箱配置:list 只读诊断;doctor 自检;fields 客户字段字典"
7
7
  },
8
8
  subCommands: {
9
- list: () => import("./list-D7_yNqIG.mjs").then((m) => m.default),
10
- doctor: () => import("./doctor-DuGxP40X.mjs").then((m) => m.default),
11
- fields: () => import("./fields-F00auxKR.mjs").then((m) => m.default)
9
+ list: () => import("./list-6eMMquS2.mjs").then((m) => m.default),
10
+ doctor: () => import("./doctor-BuiUn2Zy.mjs").then((m) => m.default),
11
+ fields: () => import("./fields-DuAxLfSA.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-DPVEnWni.mjs").then((m) => m.default) }
8
+ subCommands: { list: () => import("./list-7ynSCgKJ.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-BTZH22b5.mjs";
3
- import { n as writeMcpDataResult } from "./mcp-result-De_0PPlD.mjs";
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-Dl35JzZr.mjs";
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-DFjDJRhp.mjs").then((m) => m.default) }
8
+ subCommands: { list: () => import("./list-Dttn4hHn.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-Dl35JzZr.mjs";
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-De_0PPlD.mjs";
4
- import { n as visitBatchQueryCliArgs, t as buildVisitBatchQueryArgs } from "./visit-query-args-BsfU3CUz.mjs";
3
+ import { t as mcpCallPage } from "./mcp-result-BzDGJUdM.mjs";
4
+ import { n as visitBatchQueryCliArgs, t as buildVisitBatchQueryArgs } from "./visit-query-args-BVeYwlRt.mjs";
5
5
  import { defineCommand } from "citty";
6
6
  //#region src/commands/deal-analysis/index.ts
7
7
  /**
@@ -0,0 +1,44 @@
1
+ import { c as requireActiveProject } from "./project-store-DUlIIW51.mjs";
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 { defineCommand } from "citty";
7
+ //#region src/commands/panke/detail.ts
8
+ function buildPankeDetailArgs(args, active) {
9
+ const pankeId = String(args["panke-id"] || "").trim();
10
+ if (!/^[1-9]\d*$/.test(pankeId)) throw new Error("--panke-id must be a positive SOP ID");
11
+ return {
12
+ project_id: resolveProjectId(args["project-id"], active),
13
+ panke_id: pankeId,
14
+ include_transcript: args["include-transcript"] === true
15
+ };
16
+ }
17
+ var detail_default = defineCommand({
18
+ meta: {
19
+ name: "detail",
20
+ description: "按盘客 SOP ID 查询盘客详情"
21
+ },
22
+ args: {
23
+ ...projectIdCliArg,
24
+ "panke-id": {
25
+ type: "string",
26
+ description: "盘客 SOP ID,不能传任务 ID 或事件记录 ID"
27
+ },
28
+ "include-transcript": {
29
+ type: "boolean",
30
+ description: "包含录音原文;默认不查询"
31
+ },
32
+ format: formatCliArg
33
+ },
34
+ async run({ args }) {
35
+ try {
36
+ writeMcpDataResult(await mcpCall("panke-detail", { arguments: buildPankeDetailArgs(args, await requireActiveProject()) }), args.format);
37
+ } catch (err) {
38
+ writeError(err, args.format);
39
+ process.exit(1);
40
+ }
41
+ }
42
+ });
43
+ //#endregion
44
+ export { detail_default as default };
@@ -6,9 +6,9 @@ var doc_default = defineCommand({
6
6
  description: "知识库文档列表 / 元数据 / 全文"
7
7
  },
8
8
  subCommands: {
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)
9
+ list: () => import("./list-EcRLnxXY.mjs").then((m) => m.default),
10
+ get: () => import("./get-HrCcvm-j.mjs").then((m) => m.default),
11
+ content: () => import("./content-Ce7jKBol.mjs").then((m) => m.default)
12
12
  }
13
13
  });
14
14
  //#endregion