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.
- package/README.md +57 -4
- package/dist/{analyze-Cq-Hmoqp.mjs → analyze-CtxR02Xr.mjs} +5 -5
- package/dist/{api-jIGM86TK.mjs → api-BdaZkABF.mjs} +1 -1
- package/dist/{audio-p2QCYFdq.mjs → audio-DlgPatwd.mjs} +3 -3
- package/dist/beauty-plan-CmcNlyKk.mjs +51 -0
- package/dist/{beauty-plan-reminder-D-gVCeWO.mjs → beauty-plan-reminder-B7g7RRTs.mjs} +2 -2
- package/dist/capability-profile-yPTx4Mn4.mjs +61 -0
- package/dist/cli.mjs +22 -18
- package/dist/{config-V1amf6sh.mjs → config-BjsUQ9I-.mjs} +3 -3
- package/dist/{consultant-DZeIOYgS.mjs → consultant-vVraua0_.mjs} +1 -1
- package/dist/{content-DbZ_Oi9R.mjs → content-Ce7jKBol.mjs} +2 -2
- package/dist/{current-RoW9iRya.mjs → current-fzCrzKjn.mjs} +1 -1
- package/dist/{customer-Cgsj-Z2b.mjs → customer-CnAv26d0.mjs} +1 -1
- package/dist/{deal-analysis-Da8iNy64.mjs → deal-analysis-CX4IXbgk.mjs} +3 -3
- package/dist/detail-ZG7WTexq.mjs +44 -0
- package/dist/{doc-D0ZKCnFf.mjs → doc-DU2dYD57.mjs} +3 -3
- package/dist/env-vars-osVxvm7z.mjs +212 -0
- package/dist/{fields-F00auxKR.mjs → fields-DuAxLfSA.mjs} +3 -3
- package/dist/{focus-DlptSJrZ.mjs → focus-Dx1rT6QE.mjs} +1 -1
- package/dist/get-CCpn3m06.mjs +40 -0
- package/dist/{get-yHGUZY7o.mjs → get-HrCcvm-j.mjs} +2 -2
- package/dist/golden-sentence-DAM_YC7V.mjs +11 -0
- package/dist/install-B9_5ceYu.mjs +50 -0
- package/dist/{kb-Cg2RM9t6.mjs → kb-CygBF0br.mjs} +2 -2
- package/dist/{list-D7_yNqIG.mjs → list-6eMMquS2.mjs} +3 -1
- package/dist/{list-DPVEnWni.mjs → list-7ynSCgKJ.mjs} +4 -4
- package/dist/{list-Cnz5CuQB.mjs → list-Bt87oTfo.mjs} +4 -4
- package/dist/{list-Boz4Dr1p.mjs → list-Cc0bsWKY.mjs} +4 -4
- package/dist/{list-y471qVyN.mjs → list-DKbbBiI62.mjs} +4 -4
- package/dist/{list-DFjDJRhp.mjs → list-Dttn4hHn.mjs} +14 -4
- package/dist/list-DyAO08z92.mjs +77 -0
- package/dist/{list-CDQGoZi6.mjs → list-EcRLnxXY.mjs} +4 -4
- package/dist/{list-Cos_lkZq.mjs → list-e0tVlYwh.mjs} +4 -4
- package/dist/{list-Cws2iiW4.mjs → list-xjVc-39m.mjs} +1 -1
- package/dist/{mcp-args-DK3IGaO1.mjs → mcp-args-CG7OuBep.mjs} +1 -1
- package/dist/{mcp-client-BTZH22b5.mjs → mcp-client-huLKHRT3.mjs} +3 -3
- package/dist/{mcp-result-De_0PPlD.mjs → mcp-result-BzDGJUdM.mjs} +1 -1
- package/dist/panke-DY7IFcsN.mjs +14 -0
- package/dist/{portrait-tags-LVjDI8fY.mjs → portrait-tags-Dq0faG7k.mjs} +3 -3
- package/dist/{project-dVDXp2i-.mjs → project-BuF0FYZp.mjs} +3 -3
- package/dist/{project-access-pTN7ry15.mjs → project-access-ChmJv4Z4.mjs} +3 -2
- package/dist/project-access-D4b4oc5E.mjs +2 -0
- package/dist/{project-store-Dl35JzZr.mjs → project-store-DUlIIW51.mjs} +2 -207
- package/dist/project-store-DlbRmRAS.mjs +2 -0
- package/dist/{qa-N4VI4Tww.mjs → qa-MQphVELO.mjs} +5 -5
- package/dist/{resistance-BWjqdajn.mjs → resistance-CzNYvRYF.mjs} +1 -1
- package/dist/{search-BWhcg6ng.mjs → search-CnFRGjnD.mjs} +5 -5
- package/dist/skill-_PLQOZgT.mjs +15 -0
- package/dist/skill-client-CLXEQ0Hv.mjs +146 -0
- package/dist/staff-ZUbldU8P.mjs +11 -0
- package/dist/{summary-DAf0vaO8.mjs → summary-B12uZDGr.mjs} +4 -4
- package/dist/task-CAobpQXt.mjs +40 -0
- package/dist/{text-BIIl7PmC.mjs → text-CCxnry4V.mjs} +4 -4
- package/dist/upload-COReB487.mjs +76 -0
- package/dist/{use-B-mda_1X.mjs → use-e7Wzfw1k.mjs} +2 -2
- package/dist/{visit-sMAORsRa.mjs → visit-DPkOV48n.mjs} +2 -2
- package/dist/{visit-query-args-BsfU3CUz.mjs → visit-query-args-BVeYwlRt.mjs} +2 -2
- package/package.json +1 -1
- package/dist/beauty-plan-D1bqzOTP.mjs +0 -36
- package/dist/project-access-Bf87OLJP.mjs +0 -2
- package/dist/project-store-DDVZ7T4t.mjs +0 -2
- package/dist/visit-evaluate-DzuaUj0E.mjs +0 -30
- /package/dist/{doctor-DuGxP40X.mjs → doctor-BuiUn2Zy.mjs} +0 -0
- /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
|
|
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-
|
|
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-
|
|
6
|
-
import { t as csvToArray } from "./util-
|
|
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-
|
|
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
|
|
@@ -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-
|
|
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-
|
|
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 {
|
|
4
|
-
import { i as invalidateProjectAccessCache } from "./project-access-
|
|
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-
|
|
7639
|
-
project: () => import("./project-
|
|
7640
|
-
|
|
7641
|
-
|
|
7642
|
-
|
|
7643
|
-
|
|
7644
|
-
|
|
7645
|
-
|
|
7646
|
-
|
|
7647
|
-
|
|
7648
|
-
"
|
|
7649
|
-
|
|
7650
|
-
|
|
7651
|
-
|
|
7652
|
-
|
|
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-
|
|
10
|
-
doctor: () => import("./doctor-
|
|
11
|
-
fields: () => import("./fields-
|
|
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-
|
|
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-
|
|
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-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-
|
|
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-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-
|
|
10
|
-
get: () => import("./get-
|
|
11
|
-
content: () => import("./content-
|
|
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
|