beautx-cli 1.1.2 → 1.1.3-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 +32 -0
- package/dist/{beauty-plan-BMR3QbZr.mjs → beauty-plan-Bwfy5ZwA.mjs} +1 -1
- package/dist/beauty-plan-update-Cx7ptfcW.mjs +82 -0
- package/dist/{capability-profile-VWZEzTJY.mjs → capability-profile-iDXBJxqK.mjs} +2 -2
- package/dist/cli.mjs +18 -17
- package/dist/{config-BjsUQ9I-.mjs → config-BfKPtM8-.mjs} +3 -3
- package/dist/{consultant-vVraua0_.mjs → consultant-DG3-uMoX.mjs} +1 -1
- package/dist/{customer-CnAv26d0.mjs → customer-h-Tci4DU.mjs} +1 -1
- package/dist/{deal-analysis-CX4IXbgk.mjs → deal-analysis-BkGyLD5X.mjs} +1 -1
- package/dist/deal-capability-CAbN-a6j.mjs +55 -0
- package/dist/{doc-CpxcsKNE.mjs → doc-BWRiv8pK.mjs} +3 -3
- package/dist/{focus-Dx1rT6QE.mjs → focus-1dBYBq5B.mjs} +1 -1
- package/dist/{golden-sentence-Ds-iQpH9.mjs → golden-sentence-CgWmCRCd.mjs} +2 -2
- package/dist/{install-7SB-izr2.mjs → install-DiY2rfRy.mjs} +1 -1
- package/dist/{kb-rsFJm8cU.mjs → kb-DfhVpGFp.mjs} +2 -2
- package/dist/{list-CXbqmTos.mjs → list-CtGAMxsg.mjs} +1 -1
- package/dist/{panke-CO--Bv4n.mjs → panke-eI5GRzbd.mjs} +2 -2
- package/dist/permission-scope-DTXGSpuh.mjs +28 -0
- package/dist/{portrait-tags-CCo6uav8.mjs → portrait-tags-CFt_v4V5.mjs} +1 -1
- package/dist/{project-CYVCYuHU.mjs → project-CzpyW67k.mjs} +3 -3
- package/dist/quality-inspection-DmFbUvSC.mjs +64 -0
- package/dist/{resistance-BCHM2VZk.mjs → resistance-CA2IYjl3.mjs} +1 -1
- package/dist/{skill-BF9S48yu.mjs → skill-C55dYtbq.mjs} +3 -3
- package/dist/staff-D5yN_LeS.mjs +16 -0
- package/dist/{upload-CZDRAlaG.mjs → upload-D7fQAD6I.mjs} +1 -1
- package/dist/{visit-BsY4-f1r.mjs → visit-DiJsMYFu.mjs} +2 -2
- package/package.json +1 -1
- package/dist/staff-IytS68QG.mjs +0 -11
- /package/dist/{content-xCdbfOej.mjs → content-RLIvey_w.mjs} +0 -0
- /package/dist/{current-s-QVNZmV.mjs → current-DdEW2EWK.mjs} +0 -0
- /package/dist/{doctor-BuiUn2Zy.mjs → doctor-CYU_bSCY.mjs} +0 -0
- /package/dist/{fields-DuAxLfSA.mjs → fields-CF6lYXrj.mjs} +0 -0
- /package/dist/{get-CCpn3m06.mjs → get-DPKKXTz7.mjs} +0 -0
- /package/dist/{get-6FB0egS_.mjs → get-Da-xarKN.mjs} +0 -0
- /package/dist/{list-D9JQwZD52.mjs → list-B2Cu6lq22.mjs} +0 -0
- /package/dist/{list-Cc0bsWKY.mjs → list-BNe5D4rz.mjs} +0 -0
- /package/dist/{list-CwpxejCd.mjs → list-BREF9Ecs.mjs} +0 -0
- /package/dist/{list-6eMMquS2.mjs → list-BW75XLnR.mjs} +0 -0
- /package/dist/{list-7k2QD_SC2.mjs → list-CbKkYLBK.mjs} +0 -0
- /package/dist/{list-CK5ypPMU.mjs → list-DG8XtLUJ.mjs} +0 -0
- /package/dist/{list-b6sDVcYT.mjs → list-DPJSr82E.mjs} +0 -0
- /package/dist/{list-7ynSCgKJ.mjs → list-DQURyikH.mjs} +0 -0
- /package/dist/{list-Dttn4hHn.mjs → list-dyAoc3sp.mjs} +0 -0
- /package/dist/{list-CuJXGJvc.mjs → list-irF2VIIX.mjs} +0 -0
- /package/dist/{qa-DtxO4tZJ.mjs → qa-D3OEsKVK.mjs} +0 -0
- /package/dist/{quantum-FmPay9zw.mjs → quantum-gircqlxs.mjs} +0 -0
- /package/dist/{search-J4V_W4T1.mjs → search-DSkSpZAT.mjs} +0 -0
- /package/dist/{skill-client-BfpXlgLz.mjs → skill-client-C4SOjFsN.mjs} +0 -0
- /package/dist/{summary-D4vO6NHy.mjs → summary-Bhi0h4RA.mjs} +0 -0
- /package/dist/{task-DlTk04im.mjs → task-CuHDQlRD.mjs} +0 -0
- /package/dist/{use-CZ8xIPrB.mjs → use-C_V8PxFJ.mjs} +0 -0
- /package/dist/{visit-query-args-BVeYwlRt.mjs → visit-query-args-GjbcZpKM.mjs} +0 -0
package/README.md
CHANGED
|
@@ -112,6 +112,29 @@ beautx-cli staff capability-profile [选项]
|
|
|
112
112
|
--to <结束时间> # 可选,yyyy-MM-dd HH:mm:ss
|
|
113
113
|
```
|
|
114
114
|
|
|
115
|
+
`capability-profile` 的医美沟通质量包含个人平均总分、各维度平均分、团队平均分、有效样本数及配置可比状态。
|
|
116
|
+
无数据不表示零分;配置或满分不可比时,不混算或排名。
|
|
117
|
+
|
|
118
|
+
```bash
|
|
119
|
+
# 获取有权查看的员工,ID 保持字符串
|
|
120
|
+
beautx-cli staff permission-scope
|
|
121
|
+
|
|
122
|
+
# 接诊ID来自 visit list;历史接诊须指定覆盖接诊时间的范围
|
|
123
|
+
beautx-cli staff quality-inspection \
|
|
124
|
+
--staff-user-id <员工ID> --visit-id <接诊ID> \
|
|
125
|
+
--from "2026-10-01 00:00:00" --to "2026-11-01 00:00:00"
|
|
126
|
+
# 同一员工的多次接诊可用 --visit-ids <逗号分隔的接诊ID>,最多200个
|
|
127
|
+
# 返回 totalScore、maxScore、dimensions 和保存时的模型版本,不重新计算历史评分
|
|
128
|
+
|
|
129
|
+
# 周期成交能力:成交产出、单次成交效率、客户周期转化
|
|
130
|
+
beautx-cli staff deal-capability \
|
|
131
|
+
--staff-user-id <员工ID> \
|
|
132
|
+
--from "2026-10-01 00:00:00" --to "2026-10-31 23:59:59"
|
|
133
|
+
```
|
|
134
|
+
|
|
135
|
+
成交能力按自然日统计,包含结束日。返回周期总分、维度分和团队均分,周期得分不是接诊均分,
|
|
136
|
+
团队均分也不是个人均分。未配置、无数据、部分可用等状态沿用服务端结果。
|
|
137
|
+
|
|
115
138
|
### 盘客详情
|
|
116
139
|
|
|
117
140
|
```bash
|
|
@@ -200,6 +223,15 @@ beautx-cli beauty-plan [选项]
|
|
|
200
223
|
--followup-report-id <计划ID>
|
|
201
224
|
--followup-report-ids <计划ID列表>
|
|
202
225
|
|
|
226
|
+
# 全量保存正文:先查询 followupReportId、revision,再提交完整有序章节
|
|
227
|
+
beautx-cli beauty-plan-update --plan-id 123 --expected-revision 3 --request-id save-001 \
|
|
228
|
+
--items '[{"report_tag":"护理建议","answer":"第一行正文。\n第二行正文。"}]'
|
|
229
|
+
# 长正文可用 --items @/path/chapters.json;章节名、数量、顺序均可修改,旧章节全部替换。
|
|
230
|
+
# 可选 --title 修改标题;不传保留标题。医生、复诊时间、展示样式及分享记录保持原值。
|
|
231
|
+
# 成功返回 planId、revision、updateTime;后续保存使用新 revision、新 request-id。
|
|
232
|
+
# 超时重试复用原 request-id 和完整参数;409 冲突须重新查询并合并内容。
|
|
233
|
+
# 仅接诊归属员工可保存,不会自动分享或完成发送待办。
|
|
234
|
+
|
|
203
235
|
# 查询变美计划未及时发送提醒批次
|
|
204
236
|
beautx-cli beauty-plan-reminder [选项]
|
|
205
237
|
--project-id <项目ID>
|
|
@@ -2,7 +2,7 @@ import { c as requireActiveProject } from "./project-store-DUlIIW51.mjs";
|
|
|
2
2
|
import { n as writeError } from "./cli.mjs";
|
|
3
3
|
import { t as mcpCallPage } from "./mcp-result-BzDGJUdM.mjs";
|
|
4
4
|
import { n as mergeIds, t as csvToArray } from "./util-BtgWHKWv.mjs";
|
|
5
|
-
import { n as visitBatchQueryCliArgs, t as buildVisitBatchQueryArgs } from "./visit-query-args-
|
|
5
|
+
import { n as visitBatchQueryCliArgs, t as buildVisitBatchQueryArgs } from "./visit-query-args-GjbcZpKM.mjs";
|
|
6
6
|
import { defineCommand } from "citty";
|
|
7
7
|
//#region src/commands/beauty-plan/index.ts
|
|
8
8
|
/**
|
|
@@ -0,0 +1,82 @@
|
|
|
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
|
+
import { readFile } from "node:fs/promises";
|
|
8
|
+
//#region src/commands/beauty-plan-update/index.ts
|
|
9
|
+
async function buildBeautyPlanUpdateArgs(args, active) {
|
|
10
|
+
const planId = args["plan-id"];
|
|
11
|
+
const rawRevision = args["expected-revision"];
|
|
12
|
+
const requestId = args["request-id"];
|
|
13
|
+
if (typeof planId !== "string" || !/^[1-9][0-9]*$/.test(planId) || BigInt(planId) > 9223372036854775807n) throw new Error("--plan-id 必须是有效的正整数 ID");
|
|
14
|
+
if (typeof rawRevision !== "string" || !/^[0-9]+$/.test(rawRevision) || !Number.isSafeInteger(Number(rawRevision))) throw new Error("--expected-revision 必须是查询返回的非负整数 revision");
|
|
15
|
+
if (typeof requestId !== "string" || !/^[A-Za-z0-9_-]{1,64}$/.test(requestId)) throw new Error("--request-id 必须为 1-64 位字母、数字、_ 或 -;重试时复用");
|
|
16
|
+
if (typeof args.items !== "string") throw new Error("--items 必填,支持 JSON 或 @文件");
|
|
17
|
+
const text = args.items.startsWith("@") ? await readFile(args.items.slice(1), "utf8") : args.items;
|
|
18
|
+
const items = JSON.parse(text);
|
|
19
|
+
if (!Array.isArray(items) || items.length === 0 || items.length > 100) throw new Error("--items 必须是完整章节数组,保留 1-100 个章节");
|
|
20
|
+
const chapters = items.map((item) => {
|
|
21
|
+
if (!item || typeof item !== "object") throw new Error("章节必须是对象");
|
|
22
|
+
const chapter = item;
|
|
23
|
+
if (typeof chapter.report_tag !== "string" || !chapter.report_tag.trim() || chapter.report_tag.length > 128 || typeof chapter.answer !== "string" || !chapter.answer.trim() || chapter.answer.length > 15e3) throw new Error("章节需要 report_tag(1-128 字符)和 answer(1-15000 字符)");
|
|
24
|
+
return {
|
|
25
|
+
report_tag: chapter.report_tag,
|
|
26
|
+
answer: chapter.answer
|
|
27
|
+
};
|
|
28
|
+
});
|
|
29
|
+
if (args.title !== void 0 && (typeof args.title !== "string" || !args.title.trim() || args.title.length > 128)) throw new Error("--title 必须为 1-128 个字符");
|
|
30
|
+
return {
|
|
31
|
+
project_id: resolveProjectId(args["project-id"], active),
|
|
32
|
+
plan_id: planId,
|
|
33
|
+
expected_revision: Number(rawRevision),
|
|
34
|
+
request_id: requestId,
|
|
35
|
+
...args.title === void 0 ? {} : { title: args.title },
|
|
36
|
+
items: chapters
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
var beauty_plan_update_default = defineCommand({
|
|
40
|
+
meta: {
|
|
41
|
+
name: "beauty-plan-update",
|
|
42
|
+
description: "全量替换变美计划正文,保存不自动分享"
|
|
43
|
+
},
|
|
44
|
+
args: {
|
|
45
|
+
...projectIdCliArg,
|
|
46
|
+
"plan-id": {
|
|
47
|
+
type: "string",
|
|
48
|
+
required: true,
|
|
49
|
+
description: "查询返回的 followupReportId"
|
|
50
|
+
},
|
|
51
|
+
"expected-revision": {
|
|
52
|
+
type: "string",
|
|
53
|
+
required: true,
|
|
54
|
+
description: "查询返回的 revision"
|
|
55
|
+
},
|
|
56
|
+
"request-id": {
|
|
57
|
+
type: "string",
|
|
58
|
+
required: true,
|
|
59
|
+
description: "保存请求标识,超时重试必须复用"
|
|
60
|
+
},
|
|
61
|
+
items: {
|
|
62
|
+
type: "string",
|
|
63
|
+
required: true,
|
|
64
|
+
description: "完整章节数组 JSON 或 @文件,旧章节全部替换"
|
|
65
|
+
},
|
|
66
|
+
title: {
|
|
67
|
+
type: "string",
|
|
68
|
+
description: "计划标题;不传保留原标题"
|
|
69
|
+
},
|
|
70
|
+
format: formatCliArg
|
|
71
|
+
},
|
|
72
|
+
async run({ args }) {
|
|
73
|
+
try {
|
|
74
|
+
writeMcpDataResult(await mcpCall("beauty-plan-update", { arguments: await buildBeautyPlanUpdateArgs(args, await requireActiveProject()) }), args.format);
|
|
75
|
+
} catch (err) {
|
|
76
|
+
writeError(err, args.format);
|
|
77
|
+
process.exit(1);
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
});
|
|
81
|
+
//#endregion
|
|
82
|
+
export { beauty_plan_update_default as default };
|
|
@@ -27,7 +27,7 @@ function buildStaffCapabilityProfileArgs(args, active) {
|
|
|
27
27
|
var capability_profile_default = defineCommand({
|
|
28
28
|
meta: {
|
|
29
29
|
name: "capability-profile",
|
|
30
|
-
description: "
|
|
30
|
+
description: "查询指定员工的基础信息、沟通质量平均分、维度平均分与团队参考"
|
|
31
31
|
},
|
|
32
32
|
args: {
|
|
33
33
|
...projectIdCliArg,
|
|
@@ -58,4 +58,4 @@ var capability_profile_default = defineCommand({
|
|
|
58
58
|
}
|
|
59
59
|
});
|
|
60
60
|
//#endregion
|
|
61
|
-
export { capability_profile_default as default };
|
|
61
|
+
export { buildStaffCapabilityProfileArgs, capability_profile_default as default };
|
package/dist/cli.mjs
CHANGED
|
@@ -7636,25 +7636,26 @@ runMain(defineCommand({
|
|
|
7636
7636
|
}
|
|
7637
7637
|
},
|
|
7638
7638
|
subCommands: {
|
|
7639
|
-
config: () => import("./config-
|
|
7640
|
-
project: () => import("./project-
|
|
7641
|
-
skill: () => import("./skill-
|
|
7642
|
-
consultant: () => import("./consultant-
|
|
7643
|
-
staff: () => import("./staff-
|
|
7644
|
-
"golden-sentence": () => import("./golden-sentence-
|
|
7645
|
-
panke: () => import("./panke-
|
|
7639
|
+
config: () => import("./config-BfKPtM8-.mjs").then((m) => m.default),
|
|
7640
|
+
project: () => import("./project-CzpyW67k.mjs").then((m) => m.default),
|
|
7641
|
+
skill: () => import("./skill-C55dYtbq.mjs").then((m) => m.default),
|
|
7642
|
+
consultant: () => import("./consultant-DG3-uMoX.mjs").then((m) => m.default),
|
|
7643
|
+
staff: () => import("./staff-D5yN_LeS.mjs").then((m) => m.default),
|
|
7644
|
+
"golden-sentence": () => import("./golden-sentence-CgWmCRCd.mjs").then((m) => m.default),
|
|
7645
|
+
panke: () => import("./panke-eI5GRzbd.mjs").then((m) => m.default),
|
|
7646
7646
|
audio: () => import("./audio-DlgPatwd.mjs").then((m) => m.default),
|
|
7647
|
-
customer: () => import("./customer-
|
|
7648
|
-
visit: () => import("./visit-
|
|
7649
|
-
"beauty-plan": () => import("./beauty-plan-
|
|
7647
|
+
customer: () => import("./customer-h-Tci4DU.mjs").then((m) => m.default),
|
|
7648
|
+
visit: () => import("./visit-DiJsMYFu.mjs").then((m) => m.default),
|
|
7649
|
+
"beauty-plan": () => import("./beauty-plan-Bwfy5ZwA.mjs").then((m) => m.default),
|
|
7650
|
+
"beauty-plan-update": () => import("./beauty-plan-update-Cx7ptfcW.mjs").then((m) => m.default),
|
|
7650
7651
|
"beauty-plan-reminder": () => import("./beauty-plan-reminder-B7g7RRTs.mjs").then((m) => m.default),
|
|
7651
|
-
"deal-analysis": () => import("./deal-analysis-
|
|
7652
|
-
"portrait-tags": () => import("./portrait-tags-
|
|
7653
|
-
quantum: () => import("./quantum-
|
|
7654
|
-
focus: () => import("./focus-
|
|
7655
|
-
resistance: () => import("./resistance-
|
|
7656
|
-
qa: () => import("./qa-
|
|
7657
|
-
kb: () => import("./kb-
|
|
7652
|
+
"deal-analysis": () => import("./deal-analysis-BkGyLD5X.mjs").then((m) => m.default),
|
|
7653
|
+
"portrait-tags": () => import("./portrait-tags-CFt_v4V5.mjs").then((m) => m.default),
|
|
7654
|
+
quantum: () => import("./quantum-gircqlxs.mjs").then((m) => m.default),
|
|
7655
|
+
focus: () => import("./focus-1dBYBq5B.mjs").then((m) => m.default),
|
|
7656
|
+
resistance: () => import("./resistance-CA2IYjl3.mjs").then((m) => m.default),
|
|
7657
|
+
qa: () => import("./qa-D3OEsKVK.mjs").then((m) => m.default),
|
|
7658
|
+
kb: () => import("./kb-DfhVpGFp.mjs").then((m) => m.default)
|
|
7658
7659
|
}
|
|
7659
7660
|
}));
|
|
7660
7661
|
//#endregion
|
|
@@ -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-BW75XLnR.mjs").then((m) => m.default),
|
|
10
|
+
doctor: () => import("./doctor-CYU_bSCY.mjs").then((m) => m.default),
|
|
11
|
+
fields: () => import("./fields-CF6lYXrj.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-DQURyikH.mjs").then((m) => m.default) }
|
|
9
9
|
});
|
|
10
10
|
//#endregion
|
|
11
11
|
export { consultant_default as default };
|
|
@@ -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-dyAoc3sp.mjs").then((m) => m.default) }
|
|
9
9
|
});
|
|
10
10
|
//#endregion
|
|
11
11
|
export { customer_default as default };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { c as requireActiveProject } from "./project-store-DUlIIW51.mjs";
|
|
2
2
|
import { n as writeError } from "./cli.mjs";
|
|
3
3
|
import { t as mcpCallPage } from "./mcp-result-BzDGJUdM.mjs";
|
|
4
|
-
import { n as visitBatchQueryCliArgs, t as buildVisitBatchQueryArgs } from "./visit-query-args-
|
|
4
|
+
import { n as visitBatchQueryCliArgs, t as buildVisitBatchQueryArgs } from "./visit-query-args-GjbcZpKM.mjs";
|
|
5
5
|
import { defineCommand } from "citty";
|
|
6
6
|
//#region src/commands/deal-analysis/index.ts
|
|
7
7
|
/**
|
|
@@ -0,0 +1,55 @@
|
|
|
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 { t as projectIdCliArg } from "./mcp-args-CG7OuBep.mjs";
|
|
5
|
+
import { n as writeMcpDataResult } from "./mcp-result-BzDGJUdM.mjs";
|
|
6
|
+
import { buildStaffCapabilityProfileArgs } from "./capability-profile-iDXBJxqK.mjs";
|
|
7
|
+
import { defineCommand } from "citty";
|
|
8
|
+
//#region src/commands/staff/deal-capability.ts
|
|
9
|
+
function buildStaffDealCapabilityArgs(args, active) {
|
|
10
|
+
const base = buildStaffCapabilityProfileArgs(args, active);
|
|
11
|
+
const variables = base.variables;
|
|
12
|
+
return {
|
|
13
|
+
...base,
|
|
14
|
+
variables: {
|
|
15
|
+
staff_user_id: variables.staff_user_id,
|
|
16
|
+
...variables.staff_metric_start_time ? { staff_deal_capability_start_date: variables.staff_metric_start_time } : {},
|
|
17
|
+
...variables.staff_metric_end_time ? { staff_deal_capability_end_date: variables.staff_metric_end_time } : {}
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
var deal_capability_default = defineCommand({
|
|
22
|
+
meta: {
|
|
23
|
+
name: "deal-capability",
|
|
24
|
+
description: "查询员工周期成交能力总分、三个维度分与团队均分"
|
|
25
|
+
},
|
|
26
|
+
args: {
|
|
27
|
+
...projectIdCliArg,
|
|
28
|
+
"staff-user-id": {
|
|
29
|
+
type: "string",
|
|
30
|
+
description: "员工ID,须在授权员工范围内"
|
|
31
|
+
},
|
|
32
|
+
from: {
|
|
33
|
+
type: "string",
|
|
34
|
+
description: "周期开始时间 yyyy-MM-dd HH:mm:ss,按自然日统计"
|
|
35
|
+
},
|
|
36
|
+
to: {
|
|
37
|
+
type: "string",
|
|
38
|
+
description: "周期结束时间 yyyy-MM-dd HH:mm:ss,包含结束日"
|
|
39
|
+
},
|
|
40
|
+
format: formatCliArg
|
|
41
|
+
},
|
|
42
|
+
async run({ args }) {
|
|
43
|
+
try {
|
|
44
|
+
writeMcpDataResult(await mcpCall("staff-deal-capability", {
|
|
45
|
+
arguments: buildStaffDealCapabilityArgs(args, await requireActiveProject()),
|
|
46
|
+
timeoutMs: 9e4
|
|
47
|
+
}), args.format);
|
|
48
|
+
} catch (err) {
|
|
49
|
+
writeError(err, args.format);
|
|
50
|
+
process.exit(1);
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
});
|
|
54
|
+
//#endregion
|
|
55
|
+
export { deal_capability_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-DPJSr82E.mjs").then((m) => m.default),
|
|
10
|
+
get: () => import("./get-Da-xarKN.mjs").then((m) => m.default),
|
|
11
|
+
content: () => import("./content-RLIvey_w.mjs").then((m) => m.default)
|
|
12
12
|
}
|
|
13
13
|
});
|
|
14
14
|
//#endregion
|
|
@@ -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-BNe5D4rz.mjs").then((m) => m.default) }
|
|
9
9
|
});
|
|
10
10
|
//#endregion
|
|
11
11
|
export { focus_default as default };
|
|
@@ -6,8 +6,8 @@ var golden_sentence_default = defineCommand({
|
|
|
6
6
|
description: "小美金句查询"
|
|
7
7
|
},
|
|
8
8
|
subCommands: {
|
|
9
|
-
list: () => import("./list-
|
|
10
|
-
get: () => import("./get-
|
|
9
|
+
list: () => import("./list-DG8XtLUJ.mjs").then((m) => m.default),
|
|
10
|
+
get: () => import("./get-DPKKXTz7.mjs").then((m) => m.default)
|
|
11
11
|
}
|
|
12
12
|
});
|
|
13
13
|
//#endregion
|
|
@@ -1,7 +1,7 @@
|
|
|
1
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 { 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-
|
|
4
|
+
import { i as skillInstallGrant, r as resolveSkillInstallDir, t as downloadSkillPackage } from "./skill-client-C4SOjFsN.mjs";
|
|
5
5
|
import { defineCommand } from "citty";
|
|
6
6
|
//#region src/commands/skill/install.ts
|
|
7
7
|
/**
|
|
@@ -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-DSkSpZAT.mjs").then((m) => m.default),
|
|
10
|
+
doc: () => import("./doc-BWRiv8pK.mjs").then((m) => m.default)
|
|
11
11
|
}
|
|
12
12
|
});
|
|
13
13
|
//#endregion
|
|
@@ -1,7 +1,7 @@
|
|
|
1
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 { n as resolveProjectId, t as projectIdCliArg } from "./mcp-args-CG7OuBep.mjs";
|
|
4
|
-
import { a as skillList } from "./skill-client-
|
|
4
|
+
import { a as skillList } from "./skill-client-C4SOjFsN.mjs";
|
|
5
5
|
import { defineCommand } from "citty";
|
|
6
6
|
//#region src/commands/skill/list.ts
|
|
7
7
|
/**
|
|
@@ -6,8 +6,8 @@ var panke_default = defineCommand({
|
|
|
6
6
|
description: "盘客只读查询"
|
|
7
7
|
},
|
|
8
8
|
subCommands: {
|
|
9
|
-
list: () => import("./list-
|
|
10
|
-
task: () => import("./task-
|
|
9
|
+
list: () => import("./list-CbKkYLBK.mjs").then((m) => m.default),
|
|
10
|
+
task: () => import("./task-CuHDQlRD.mjs").then((m) => m.default)
|
|
11
11
|
}
|
|
12
12
|
});
|
|
13
13
|
//#endregion
|
|
@@ -0,0 +1,28 @@
|
|
|
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/staff/permission-scope.ts
|
|
8
|
+
var permission_scope_default = defineCommand({
|
|
9
|
+
meta: {
|
|
10
|
+
name: "permission-scope",
|
|
11
|
+
description: "查询当前项目有权查看的员工"
|
|
12
|
+
},
|
|
13
|
+
args: {
|
|
14
|
+
...projectIdCliArg,
|
|
15
|
+
format: formatCliArg
|
|
16
|
+
},
|
|
17
|
+
async run({ args }) {
|
|
18
|
+
try {
|
|
19
|
+
const active = await requireActiveProject();
|
|
20
|
+
writeMcpDataResult(await mcpCall("staff-permission-scope", { arguments: { project_id: resolveProjectId(args["project-id"], active) } }), args.format);
|
|
21
|
+
} catch (err) {
|
|
22
|
+
writeError(err, args.format);
|
|
23
|
+
process.exit(1);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
//#endregion
|
|
28
|
+
export { permission_scope_default as default };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { c as requireActiveProject } from "./project-store-DUlIIW51.mjs";
|
|
2
2
|
import { n as writeError } from "./cli.mjs";
|
|
3
3
|
import { t as mcpCallPage } from "./mcp-result-BzDGJUdM.mjs";
|
|
4
|
-
import { n as visitBatchQueryCliArgs, t as buildVisitBatchQueryArgs } from "./visit-query-args-
|
|
4
|
+
import { n as visitBatchQueryCliArgs, t as buildVisitBatchQueryArgs } from "./visit-query-args-GjbcZpKM.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-BREF9Ecs.mjs").then((m) => m.default),
|
|
10
|
+
use: () => import("./use-C_V8PxFJ.mjs").then((m) => m.default),
|
|
11
|
+
current: () => import("./current-DdEW2EWK.mjs").then((m) => m.default)
|
|
12
12
|
}
|
|
13
13
|
});
|
|
14
14
|
//#endregion
|
|
@@ -0,0 +1,64 @@
|
|
|
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 { t as projectIdCliArg } from "./mcp-args-CG7OuBep.mjs";
|
|
5
|
+
import { n as writeMcpDataResult } from "./mcp-result-BzDGJUdM.mjs";
|
|
6
|
+
import { n as mergeIds, t as csvToArray } from "./util-BtgWHKWv.mjs";
|
|
7
|
+
import { buildStaffCapabilityProfileArgs } from "./capability-profile-iDXBJxqK.mjs";
|
|
8
|
+
import { defineCommand } from "citty";
|
|
9
|
+
//#region src/commands/staff/quality-inspection.ts
|
|
10
|
+
function buildStaffQualityInspectionArgs(args, active) {
|
|
11
|
+
const base = buildStaffCapabilityProfileArgs(args, active);
|
|
12
|
+
const visitIds = mergeIds(args["visit-id"]?.trim(), csvToArray(args["visit-ids"]));
|
|
13
|
+
if (!visitIds?.length || visitIds.length > 200 || visitIds.some((id) => !/^[1-9]\d*$/.test(id))) throw new Error("--visit-id or --visit-ids must contain 1 to 200 positive visit IDs");
|
|
14
|
+
return {
|
|
15
|
+
...base,
|
|
16
|
+
variables: {
|
|
17
|
+
...base.variables,
|
|
18
|
+
staff_quality_visit_ids: visitIds
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
var quality_inspection_default = defineCommand({
|
|
23
|
+
meta: {
|
|
24
|
+
name: "quality-inspection",
|
|
25
|
+
description: "查询指定接诊的沟通质量总分与各维度分"
|
|
26
|
+
},
|
|
27
|
+
args: {
|
|
28
|
+
...projectIdCliArg,
|
|
29
|
+
"staff-user-id": {
|
|
30
|
+
type: "string",
|
|
31
|
+
description: "接诊员工ID,须在授权员工范围内"
|
|
32
|
+
},
|
|
33
|
+
"visit-id": {
|
|
34
|
+
type: "string",
|
|
35
|
+
description: "visit list 返回的接诊ID"
|
|
36
|
+
},
|
|
37
|
+
"visit-ids": {
|
|
38
|
+
type: "string",
|
|
39
|
+
description: "接诊ID,逗号分隔,最多200个"
|
|
40
|
+
},
|
|
41
|
+
from: {
|
|
42
|
+
type: "string",
|
|
43
|
+
description: "统计开始时间 yyyy-MM-dd HH:mm:ss,须覆盖接诊时间"
|
|
44
|
+
},
|
|
45
|
+
to: {
|
|
46
|
+
type: "string",
|
|
47
|
+
description: "统计结束时间 yyyy-MM-dd HH:mm:ss"
|
|
48
|
+
},
|
|
49
|
+
format: formatCliArg
|
|
50
|
+
},
|
|
51
|
+
async run({ args }) {
|
|
52
|
+
try {
|
|
53
|
+
writeMcpDataResult(await mcpCall("staff-recent-quality-inspection", {
|
|
54
|
+
arguments: buildStaffQualityInspectionArgs(args, await requireActiveProject()),
|
|
55
|
+
timeoutMs: 9e4
|
|
56
|
+
}), args.format);
|
|
57
|
+
} catch (err) {
|
|
58
|
+
writeError(err, args.format);
|
|
59
|
+
process.exit(1);
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
});
|
|
63
|
+
//#endregion
|
|
64
|
+
export { quality_inspection_default as default };
|
|
@@ -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-B2Cu6lq22.mjs").then((m) => m.default) }
|
|
9
9
|
});
|
|
10
10
|
//#endregion
|
|
11
11
|
export { resistance_default as default };
|
|
@@ -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-CtGAMxsg.mjs").then((m) => m.default),
|
|
10
|
+
install: () => import("./install-DiY2rfRy.mjs").then((m) => m.default),
|
|
11
|
+
upload: () => import("./upload-D7fQAD6I.mjs").then((m) => m.default)
|
|
12
12
|
}
|
|
13
13
|
});
|
|
14
14
|
//#endregion
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { defineCommand } from "citty";
|
|
2
|
+
//#region src/commands/staff/index.ts
|
|
3
|
+
var staff_default = defineCommand({
|
|
4
|
+
meta: {
|
|
5
|
+
name: "staff",
|
|
6
|
+
description: "员工能力查询"
|
|
7
|
+
},
|
|
8
|
+
subCommands: {
|
|
9
|
+
"capability-profile": () => import("./capability-profile-iDXBJxqK.mjs").then((m) => m.default),
|
|
10
|
+
"quality-inspection": () => import("./quality-inspection-DmFbUvSC.mjs").then((m) => m.default),
|
|
11
|
+
"deal-capability": () => import("./deal-capability-CAbN-a6j.mjs").then((m) => m.default),
|
|
12
|
+
"permission-scope": () => import("./permission-scope-DTXGSpuh.mjs").then((m) => m.default)
|
|
13
|
+
}
|
|
14
|
+
});
|
|
15
|
+
//#endregion
|
|
16
|
+
export { staff_default as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
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-C4SOjFsN.mjs";
|
|
3
3
|
import { defineCommand } from "citty";
|
|
4
4
|
import { readFile } from "node:fs/promises";
|
|
5
5
|
//#region src/commands/skill/upload.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-irF2VIIX.mjs").then((m) => m.default),
|
|
10
|
+
summary: () => import("./summary-Bhi0h4RA.mjs").then((m) => m.default)
|
|
11
11
|
}
|
|
12
12
|
});
|
|
13
13
|
//#endregion
|
package/package.json
CHANGED
package/dist/staff-IytS68QG.mjs
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { defineCommand } from "citty";
|
|
2
|
-
//#region src/commands/staff/index.ts
|
|
3
|
-
var staff_default = defineCommand({
|
|
4
|
-
meta: {
|
|
5
|
-
name: "staff",
|
|
6
|
-
description: "员工能力查询"
|
|
7
|
-
},
|
|
8
|
-
subCommands: { "capability-profile": () => import("./capability-profile-VWZEzTJY.mjs").then((m) => m.default) }
|
|
9
|
-
});
|
|
10
|
-
//#endregion
|
|
11
|
-
export { staff_default as default };
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|