beautx-cli 1.1.1 → 1.1.2-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 +23 -0
- package/dist/{beauty-plan-CmcNlyKk.mjs → beauty-plan-BMR3QbZr.mjs} +10 -1
- package/dist/cli.mjs +11 -11
- package/dist/{doc-DU2dYD57.mjs → doc-CpxcsKNE.mjs} +3 -3
- package/dist/{golden-sentence-DAM_YC7V.mjs → golden-sentence-Ds-iQpH9.mjs} +4 -1
- package/dist/{install-B9_5ceYu.mjs → install-7SB-izr2.mjs} +1 -1
- package/dist/{kb-CygBF0br.mjs → kb-rsFJm8cU.mjs} +2 -2
- package/dist/list-CK5ypPMU.mjs +130 -0
- package/dist/{list-DyAO08z92.mjs → list-CXbqmTos.mjs} +1 -1
- package/dist/list-CbKkYLBK.mjs +106 -0
- package/dist/{list-e0tVlYwh.mjs → list-CuJXGJvc.mjs} +10 -1
- package/dist/{panke-DY7IFcsN.mjs → panke-Dd52P534.mjs} +3 -2
- package/dist/{project-BuF0FYZp.mjs → project-CzpyW67k.mjs} +3 -3
- package/dist/{resistance-CzNYvRYF.mjs → resistance-BCHM2VZk.mjs} +1 -1
- package/dist/{skill-_PLQOZgT.mjs → skill-BF9S48yu.mjs} +3 -3
- package/dist/{staff-ZUbldU8P.mjs → staff-IytS68QG.mjs} +1 -1
- package/dist/{upload-COReB487.mjs → upload-CZDRAlaG.mjs} +1 -1
- package/dist/{visit-DPkOV48n.mjs → visit-BsY4-f1r.mjs} +2 -2
- package/package.json +1 -1
- /package/dist/{capability-profile-yPTx4Mn4.mjs → capability-profile-VWZEzTJY.mjs} +0 -0
- /package/dist/{content-Ce7jKBol.mjs → content-xCdbfOej.mjs} +0 -0
- /package/dist/{current-fzCrzKjn.mjs → current-DdEW2EWK.mjs} +0 -0
- /package/dist/{detail-ZG7WTexq.mjs → detail-RW63RcvN.mjs} +0 -0
- /package/dist/{get-HrCcvm-j.mjs → get-6FB0egS_.mjs} +0 -0
- /package/dist/{list-xjVc-39m.mjs → list-BREF9Ecs.mjs} +0 -0
- /package/dist/{list-DKbbBiI62.mjs → list-D9JQwZD52.mjs} +0 -0
- /package/dist/{list-EcRLnxXY.mjs → list-b6sDVcYT.mjs} +0 -0
- /package/dist/{portrait-tags-Dq0faG7k.mjs → portrait-tags-C6plwT2N.mjs} +0 -0
- /package/dist/{qa-MQphVELO.mjs → qa-D3OEsKVK.mjs} +0 -0
- /package/dist/{search-CnFRGjnD.mjs → search-J4V_W4T1.mjs} +0 -0
- /package/dist/{skill-client-CLXEQ0Hv.mjs → skill-client-BfpXlgLz.mjs} +0 -0
- /package/dist/{summary-B12uZDGr.mjs → summary-D4vO6NHy.mjs} +0 -0
- /package/dist/{task-CAobpQXt.mjs → task-CuHDQlRD.mjs} +0 -0
- /package/dist/{use-e7Wzfw1k.mjs → use-C_V8PxFJ.mjs} +0 -0
package/README.md
CHANGED
|
@@ -115,6 +115,17 @@ beautx-cli staff capability-profile [选项]
|
|
|
115
115
|
### 盘客详情
|
|
116
116
|
|
|
117
117
|
```bash
|
|
118
|
+
# 分页查询小美待盘客任务,可按客户、来访、员工、状态和任务时间过滤
|
|
119
|
+
beautx-cli panke list [选项]
|
|
120
|
+
--panke-task-id <任务ID>
|
|
121
|
+
--wang-id <客户wang_id>
|
|
122
|
+
--beautx-customer-id <医美客户ID>
|
|
123
|
+
--visit-id <来访ID>
|
|
124
|
+
--user-id <顾问ID>
|
|
125
|
+
--status <RUNNING|SUCCESS|CANCELLED>
|
|
126
|
+
--from <开始时间>
|
|
127
|
+
--to <结束时间>
|
|
128
|
+
|
|
118
129
|
# 查询小美待盘客任务
|
|
119
130
|
beautx-cli panke task --panke-task-id <任务ID>
|
|
120
131
|
|
|
@@ -127,6 +138,18 @@ beautx-cli panke detail [选项]
|
|
|
127
138
|
### 小美金句
|
|
128
139
|
|
|
129
140
|
```bash
|
|
141
|
+
# 分页查询,可按客户、来访、录音、员工和创建时间过滤
|
|
142
|
+
beautx-cli golden-sentence list [选项]
|
|
143
|
+
--golden-sentence-id <金句ID>
|
|
144
|
+
--wang-id <客户wang_id>
|
|
145
|
+
--beautx-customer-id <医美客户ID>
|
|
146
|
+
--visit-id <来访ID>
|
|
147
|
+
--audio-id <录音ID>
|
|
148
|
+
--user-id <顾问ID>
|
|
149
|
+
--from <开始时间>
|
|
150
|
+
--to <结束时间>
|
|
151
|
+
|
|
152
|
+
# 详情返回 customerId、beautxCustomerId、visitId、audioId、fileId、consultantUserId
|
|
130
153
|
beautx-cli golden-sentence get --golden-sentence-id <金句ID>
|
|
131
154
|
```
|
|
132
155
|
|
|
@@ -11,7 +11,8 @@ import { defineCommand } from "citty";
|
|
|
11
11
|
function buildBeautyPlanArgs(args, active) {
|
|
12
12
|
return buildVisitBatchQueryArgs(args, active, {
|
|
13
13
|
followup_report_ids: mergeIds(args["followup-report-id"], csvToArray(args["followup-report-ids"])),
|
|
14
|
-
latest_only: args["latest-only"]
|
|
14
|
+
latest_only: args["latest-only"],
|
|
15
|
+
user_ids: mergeIds(args["user-id"], csvToArray(args["user-ids"]))
|
|
15
16
|
});
|
|
16
17
|
}
|
|
17
18
|
var beauty_plan_default = defineCommand({
|
|
@@ -32,6 +33,14 @@ var beauty_plan_default = defineCommand({
|
|
|
32
33
|
"latest-only": {
|
|
33
34
|
type: "boolean",
|
|
34
35
|
description: "按客户查询时是否只返回最近一次;不传则使用后端默认 true"
|
|
36
|
+
},
|
|
37
|
+
"user-id": {
|
|
38
|
+
type: "string",
|
|
39
|
+
description: "单个接待顾问 ID(会转为 MCP user_ids)"
|
|
40
|
+
},
|
|
41
|
+
"user-ids": {
|
|
42
|
+
type: "string",
|
|
43
|
+
description: "接待顾问 ID CSV → MCP user_ids"
|
|
35
44
|
}
|
|
36
45
|
},
|
|
37
46
|
async run({ args }) {
|
package/dist/cli.mjs
CHANGED
|
@@ -7637,23 +7637,23 @@ runMain(defineCommand({
|
|
|
7637
7637
|
},
|
|
7638
7638
|
subCommands: {
|
|
7639
7639
|
config: () => import("./config-BjsUQ9I-.mjs").then((m) => m.default),
|
|
7640
|
-
project: () => import("./project-
|
|
7641
|
-
skill: () => import("./skill-
|
|
7640
|
+
project: () => import("./project-CzpyW67k.mjs").then((m) => m.default),
|
|
7641
|
+
skill: () => import("./skill-BF9S48yu.mjs").then((m) => m.default),
|
|
7642
7642
|
consultant: () => import("./consultant-vVraua0_.mjs").then((m) => m.default),
|
|
7643
|
-
staff: () => import("./staff-
|
|
7644
|
-
"golden-sentence": () => import("./golden-sentence-
|
|
7645
|
-
panke: () => import("./panke-
|
|
7643
|
+
staff: () => import("./staff-IytS68QG.mjs").then((m) => m.default),
|
|
7644
|
+
"golden-sentence": () => import("./golden-sentence-Ds-iQpH9.mjs").then((m) => m.default),
|
|
7645
|
+
panke: () => import("./panke-Dd52P534.mjs").then((m) => m.default),
|
|
7646
7646
|
audio: () => import("./audio-DlgPatwd.mjs").then((m) => m.default),
|
|
7647
7647
|
customer: () => import("./customer-CnAv26d0.mjs").then((m) => m.default),
|
|
7648
|
-
visit: () => import("./visit-
|
|
7649
|
-
"beauty-plan": () => import("./beauty-plan-
|
|
7648
|
+
visit: () => import("./visit-BsY4-f1r.mjs").then((m) => m.default),
|
|
7649
|
+
"beauty-plan": () => import("./beauty-plan-BMR3QbZr.mjs").then((m) => m.default),
|
|
7650
7650
|
"beauty-plan-reminder": () => import("./beauty-plan-reminder-B7g7RRTs.mjs").then((m) => m.default),
|
|
7651
7651
|
"deal-analysis": () => import("./deal-analysis-CX4IXbgk.mjs").then((m) => m.default),
|
|
7652
|
-
"portrait-tags": () => import("./portrait-tags-
|
|
7652
|
+
"portrait-tags": () => import("./portrait-tags-C6plwT2N.mjs").then((m) => m.default),
|
|
7653
7653
|
focus: () => import("./focus-Dx1rT6QE.mjs").then((m) => m.default),
|
|
7654
|
-
resistance: () => import("./resistance-
|
|
7655
|
-
qa: () => import("./qa-
|
|
7656
|
-
kb: () => import("./kb-
|
|
7654
|
+
resistance: () => import("./resistance-BCHM2VZk.mjs").then((m) => m.default),
|
|
7655
|
+
qa: () => import("./qa-D3OEsKVK.mjs").then((m) => m.default),
|
|
7656
|
+
kb: () => import("./kb-rsFJm8cU.mjs").then((m) => m.default)
|
|
7657
7657
|
}
|
|
7658
7658
|
}));
|
|
7659
7659
|
//#endregion
|
|
@@ -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-b6sDVcYT.mjs").then((m) => m.default),
|
|
10
|
+
get: () => import("./get-6FB0egS_.mjs").then((m) => m.default),
|
|
11
|
+
content: () => import("./content-xCdbfOej.mjs").then((m) => m.default)
|
|
12
12
|
}
|
|
13
13
|
});
|
|
14
14
|
//#endregion
|
|
@@ -5,7 +5,10 @@ var golden_sentence_default = defineCommand({
|
|
|
5
5
|
name: "golden-sentence",
|
|
6
6
|
description: "小美金句查询"
|
|
7
7
|
},
|
|
8
|
-
subCommands: {
|
|
8
|
+
subCommands: {
|
|
9
|
+
list: () => import("./list-CK5ypPMU.mjs").then((m) => m.default),
|
|
10
|
+
get: () => import("./get-CCpn3m06.mjs").then((m) => m.default)
|
|
11
|
+
}
|
|
9
12
|
});
|
|
10
13
|
//#endregion
|
|
11
14
|
export { golden_sentence_default as default };
|
|
@@ -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-BfpXlgLz.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-J4V_W4T1.mjs").then((m) => m.default),
|
|
10
|
+
doc: () => import("./doc-CpxcsKNE.mjs").then((m) => m.default)
|
|
11
11
|
}
|
|
12
12
|
});
|
|
13
13
|
//#endregion
|
|
@@ -0,0 +1,130 @@
|
|
|
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 resolveProjectId, t as projectIdCliArg } from "./mcp-args-CG7OuBep.mjs";
|
|
4
|
+
import { t as mcpCallPage } from "./mcp-result-BzDGJUdM.mjs";
|
|
5
|
+
import { i as toLocalDateTime, n as mergeIds, t as csvToArray } from "./util-BtgWHKWv.mjs";
|
|
6
|
+
import { defineCommand } from "citty";
|
|
7
|
+
//#region src/commands/golden-sentence/list.ts
|
|
8
|
+
function buildGoldenSentenceListArgs(args, active) {
|
|
9
|
+
return {
|
|
10
|
+
project_id: resolveProjectId(args["project-id"], active),
|
|
11
|
+
golden_sentence_ids: mergeIds(args["golden-sentence-id"], csvToArray(args["golden-sentence-ids"])),
|
|
12
|
+
wang_ids: mergeIds(args["wang-id"], csvToArray(args["wang-ids"])),
|
|
13
|
+
beautx_customer_ids: mergeIds(args["beautx-customer-id"], csvToArray(args["beautx-customer-ids"])),
|
|
14
|
+
visit_ids: mergeIds(args["visit-id"], csvToArray(args["visit-ids"])),
|
|
15
|
+
audio_ids: mergeIds(args["audio-id"], csvToArray(args["audio-ids"])),
|
|
16
|
+
consultant_user_ids: mergeIds(args["user-id"], csvToArray(args["user-ids"])),
|
|
17
|
+
keyword: args.keyword,
|
|
18
|
+
scene_code: args["scene-code"],
|
|
19
|
+
source_type: args["source-type"],
|
|
20
|
+
status: args.status,
|
|
21
|
+
from: toLocalDateTime(args.from),
|
|
22
|
+
to: toLocalDateTime(args.to),
|
|
23
|
+
page: Number(args.page),
|
|
24
|
+
size: Number(args.size)
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
var list_default = defineCommand({
|
|
28
|
+
meta: {
|
|
29
|
+
name: "list",
|
|
30
|
+
description: "小美金句分页及关联查询"
|
|
31
|
+
},
|
|
32
|
+
args: {
|
|
33
|
+
...projectIdCliArg,
|
|
34
|
+
"golden-sentence-id": {
|
|
35
|
+
type: "string",
|
|
36
|
+
description: "单个金句 ID"
|
|
37
|
+
},
|
|
38
|
+
"golden-sentence-ids": {
|
|
39
|
+
type: "string",
|
|
40
|
+
description: "金句 ID CSV"
|
|
41
|
+
},
|
|
42
|
+
"wang-id": {
|
|
43
|
+
type: "string",
|
|
44
|
+
description: "单个客户 wang_id"
|
|
45
|
+
},
|
|
46
|
+
"wang-ids": {
|
|
47
|
+
type: "string",
|
|
48
|
+
description: "客户 wang_id CSV"
|
|
49
|
+
},
|
|
50
|
+
"beautx-customer-id": {
|
|
51
|
+
type: "string",
|
|
52
|
+
description: "单个医美客户 ID"
|
|
53
|
+
},
|
|
54
|
+
"beautx-customer-ids": {
|
|
55
|
+
type: "string",
|
|
56
|
+
description: "医美客户 ID CSV"
|
|
57
|
+
},
|
|
58
|
+
"visit-id": {
|
|
59
|
+
type: "string",
|
|
60
|
+
description: "单个来访 ID"
|
|
61
|
+
},
|
|
62
|
+
"visit-ids": {
|
|
63
|
+
type: "string",
|
|
64
|
+
description: "来访 ID CSV"
|
|
65
|
+
},
|
|
66
|
+
"audio-id": {
|
|
67
|
+
type: "string",
|
|
68
|
+
description: "单个录音 ID"
|
|
69
|
+
},
|
|
70
|
+
"audio-ids": {
|
|
71
|
+
type: "string",
|
|
72
|
+
description: "录音 ID CSV"
|
|
73
|
+
},
|
|
74
|
+
"user-id": {
|
|
75
|
+
type: "string",
|
|
76
|
+
description: "单个接待顾问 ID"
|
|
77
|
+
},
|
|
78
|
+
"user-ids": {
|
|
79
|
+
type: "string",
|
|
80
|
+
description: "接待顾问 ID CSV"
|
|
81
|
+
},
|
|
82
|
+
keyword: {
|
|
83
|
+
type: "string",
|
|
84
|
+
description: "金句内容关键词"
|
|
85
|
+
},
|
|
86
|
+
"scene-code": {
|
|
87
|
+
type: "string",
|
|
88
|
+
description: "金句场景代码"
|
|
89
|
+
},
|
|
90
|
+
"source-type": {
|
|
91
|
+
type: "string",
|
|
92
|
+
description: "SYSTEM/IMPORTED/CUSTOM"
|
|
93
|
+
},
|
|
94
|
+
status: {
|
|
95
|
+
type: "string",
|
|
96
|
+
description: "状态,默认 available"
|
|
97
|
+
},
|
|
98
|
+
from: {
|
|
99
|
+
type: "string",
|
|
100
|
+
description: "创建时间下限"
|
|
101
|
+
},
|
|
102
|
+
to: {
|
|
103
|
+
type: "string",
|
|
104
|
+
description: "创建时间上限"
|
|
105
|
+
},
|
|
106
|
+
page: {
|
|
107
|
+
type: "string",
|
|
108
|
+
default: "1"
|
|
109
|
+
},
|
|
110
|
+
size: {
|
|
111
|
+
type: "string",
|
|
112
|
+
default: "20"
|
|
113
|
+
},
|
|
114
|
+
format: formatCliArg
|
|
115
|
+
},
|
|
116
|
+
async run({ args }) {
|
|
117
|
+
try {
|
|
118
|
+
await mcpCallPage("golden-sentence-list", buildGoldenSentenceListArgs(args, await requireActiveProject()), args.format, {
|
|
119
|
+
itemsKey: "goldenSentences",
|
|
120
|
+
defaultPage: Number(args.page),
|
|
121
|
+
defaultSize: Number(args.size)
|
|
122
|
+
});
|
|
123
|
+
} catch (err) {
|
|
124
|
+
writeError(err, args.format);
|
|
125
|
+
process.exit(1);
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
});
|
|
129
|
+
//#endregion
|
|
130
|
+
export { list_default as default };
|
|
@@ -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-BfpXlgLz.mjs";
|
|
5
5
|
import { defineCommand } from "citty";
|
|
6
6
|
//#region src/commands/skill/list.ts
|
|
7
7
|
/**
|
|
@@ -0,0 +1,106 @@
|
|
|
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 resolveProjectId, t as projectIdCliArg } from "./mcp-args-CG7OuBep.mjs";
|
|
4
|
+
import { t as mcpCallPage } from "./mcp-result-BzDGJUdM.mjs";
|
|
5
|
+
import { i as toLocalDateTime, n as mergeIds, t as csvToArray } from "./util-BtgWHKWv.mjs";
|
|
6
|
+
import { defineCommand } from "citty";
|
|
7
|
+
//#region src/commands/panke/list.ts
|
|
8
|
+
function buildPankeTaskListArgs(args, active) {
|
|
9
|
+
return {
|
|
10
|
+
project_id: resolveProjectId(args["project-id"], active),
|
|
11
|
+
panke_task_ids: mergeIds(args["panke-task-id"], csvToArray(args["panke-task-ids"])),
|
|
12
|
+
wang_ids: mergeIds(args["wang-id"], csvToArray(args["wang-ids"])),
|
|
13
|
+
beautx_customer_ids: mergeIds(args["beautx-customer-id"], csvToArray(args["beautx-customer-ids"])),
|
|
14
|
+
visit_ids: mergeIds(args["visit-id"], csvToArray(args["visit-ids"])),
|
|
15
|
+
consultant_user_ids: mergeIds(args["user-id"], csvToArray(args["user-ids"])),
|
|
16
|
+
status: args.status,
|
|
17
|
+
from: toLocalDateTime(args.from),
|
|
18
|
+
to: toLocalDateTime(args.to),
|
|
19
|
+
page: Number(args.page),
|
|
20
|
+
size: Number(args.size)
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
var list_default = defineCommand({
|
|
24
|
+
meta: {
|
|
25
|
+
name: "list",
|
|
26
|
+
description: "小美盘客任务分页及关联查询"
|
|
27
|
+
},
|
|
28
|
+
args: {
|
|
29
|
+
...projectIdCliArg,
|
|
30
|
+
"panke-task-id": {
|
|
31
|
+
type: "string",
|
|
32
|
+
description: "单个盘客任务 ID"
|
|
33
|
+
},
|
|
34
|
+
"panke-task-ids": {
|
|
35
|
+
type: "string",
|
|
36
|
+
description: "盘客任务 ID CSV"
|
|
37
|
+
},
|
|
38
|
+
"wang-id": {
|
|
39
|
+
type: "string",
|
|
40
|
+
description: "单个客户 wang_id"
|
|
41
|
+
},
|
|
42
|
+
"wang-ids": {
|
|
43
|
+
type: "string",
|
|
44
|
+
description: "客户 wang_id CSV"
|
|
45
|
+
},
|
|
46
|
+
"beautx-customer-id": {
|
|
47
|
+
type: "string",
|
|
48
|
+
description: "单个医美客户 ID"
|
|
49
|
+
},
|
|
50
|
+
"beautx-customer-ids": {
|
|
51
|
+
type: "string",
|
|
52
|
+
description: "医美客户 ID CSV"
|
|
53
|
+
},
|
|
54
|
+
"visit-id": {
|
|
55
|
+
type: "string",
|
|
56
|
+
description: "单个来访 ID"
|
|
57
|
+
},
|
|
58
|
+
"visit-ids": {
|
|
59
|
+
type: "string",
|
|
60
|
+
description: "来访 ID CSV"
|
|
61
|
+
},
|
|
62
|
+
"user-id": {
|
|
63
|
+
type: "string",
|
|
64
|
+
description: "单个接待顾问 ID"
|
|
65
|
+
},
|
|
66
|
+
"user-ids": {
|
|
67
|
+
type: "string",
|
|
68
|
+
description: "接待顾问 ID CSV"
|
|
69
|
+
},
|
|
70
|
+
status: {
|
|
71
|
+
type: "string",
|
|
72
|
+
description: "RUNNING/SUCCESS/CANCELLED"
|
|
73
|
+
},
|
|
74
|
+
from: {
|
|
75
|
+
type: "string",
|
|
76
|
+
description: "任务触发时间下限"
|
|
77
|
+
},
|
|
78
|
+
to: {
|
|
79
|
+
type: "string",
|
|
80
|
+
description: "任务触发时间上限"
|
|
81
|
+
},
|
|
82
|
+
page: {
|
|
83
|
+
type: "string",
|
|
84
|
+
default: "1"
|
|
85
|
+
},
|
|
86
|
+
size: {
|
|
87
|
+
type: "string",
|
|
88
|
+
default: "20"
|
|
89
|
+
},
|
|
90
|
+
format: formatCliArg
|
|
91
|
+
},
|
|
92
|
+
async run({ args }) {
|
|
93
|
+
try {
|
|
94
|
+
await mcpCallPage("panke-task-list", buildPankeTaskListArgs(args, await requireActiveProject()), args.format, {
|
|
95
|
+
itemsKey: "pankeTasks",
|
|
96
|
+
defaultPage: Number(args.page),
|
|
97
|
+
defaultSize: Number(args.size)
|
|
98
|
+
});
|
|
99
|
+
} catch (err) {
|
|
100
|
+
writeError(err, args.format);
|
|
101
|
+
process.exit(1);
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
});
|
|
105
|
+
//#endregion
|
|
106
|
+
export { list_default as default };
|
|
@@ -2,7 +2,7 @@ import { c as requireActiveProject } from "./project-store-DUlIIW51.mjs";
|
|
|
2
2
|
import { n as writeError, t as formatCliArg } from "./cli.mjs";
|
|
3
3
|
import { n as resolveProjectId, t as projectIdCliArg } from "./mcp-args-CG7OuBep.mjs";
|
|
4
4
|
import { t as mcpCallPage } from "./mcp-result-BzDGJUdM.mjs";
|
|
5
|
-
import { i as toLocalDateTime } from "./util-BtgWHKWv.mjs";
|
|
5
|
+
import { i as toLocalDateTime, n as mergeIds, t as csvToArray } from "./util-BtgWHKWv.mjs";
|
|
6
6
|
import { defineCommand } from "citty";
|
|
7
7
|
//#region src/commands/visit/list.ts
|
|
8
8
|
/**
|
|
@@ -15,6 +15,14 @@ var list_default = defineCommand({
|
|
|
15
15
|
},
|
|
16
16
|
args: {
|
|
17
17
|
...projectIdCliArg,
|
|
18
|
+
"visit-id": {
|
|
19
|
+
type: "string",
|
|
20
|
+
description: "单个来访 ID(会转为 MCP visit_ids)"
|
|
21
|
+
},
|
|
22
|
+
"visit-ids": {
|
|
23
|
+
type: "string",
|
|
24
|
+
description: "来访 ID CSV → MCP visit_ids"
|
|
25
|
+
},
|
|
18
26
|
"customer-id": {
|
|
19
27
|
type: "string",
|
|
20
28
|
description: "客户 wang_id(MCP customerId)"
|
|
@@ -46,6 +54,7 @@ var list_default = defineCommand({
|
|
|
46
54
|
const active = await requireActiveProject();
|
|
47
55
|
await mcpCallPage("visit-list", {
|
|
48
56
|
project_id: resolveProjectId(args["project-id"], active),
|
|
57
|
+
visit_ids: mergeIds(args["visit-id"], csvToArray(args["visit-ids"])),
|
|
49
58
|
customer_id: args["customer-id"],
|
|
50
59
|
customer_name: args["customer-name"],
|
|
51
60
|
from: toLocalDateTime(args.from),
|
|
@@ -6,8 +6,9 @@ var panke_default = defineCommand({
|
|
|
6
6
|
description: "盘客只读查询"
|
|
7
7
|
},
|
|
8
8
|
subCommands: {
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
list: () => import("./list-CbKkYLBK.mjs").then((m) => m.default),
|
|
10
|
+
detail: () => import("./detail-RW63RcvN.mjs").then((m) => m.default),
|
|
11
|
+
task: () => import("./task-CuHDQlRD.mjs").then((m) => m.default)
|
|
11
12
|
}
|
|
12
13
|
});
|
|
13
14
|
//#endregion
|
|
@@ -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
|
|
@@ -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-D9JQwZD52.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-CXbqmTos.mjs").then((m) => m.default),
|
|
10
|
+
install: () => import("./install-7SB-izr2.mjs").then((m) => m.default),
|
|
11
|
+
upload: () => import("./upload-CZDRAlaG.mjs").then((m) => m.default)
|
|
12
12
|
}
|
|
13
13
|
});
|
|
14
14
|
//#endregion
|
|
@@ -5,7 +5,7 @@ var staff_default = defineCommand({
|
|
|
5
5
|
name: "staff",
|
|
6
6
|
description: "员工能力查询"
|
|
7
7
|
},
|
|
8
|
-
subCommands: { "capability-profile": () => import("./capability-profile-
|
|
8
|
+
subCommands: { "capability-profile": () => import("./capability-profile-VWZEzTJY.mjs").then((m) => m.default) }
|
|
9
9
|
});
|
|
10
10
|
//#endregion
|
|
11
11
|
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-BfpXlgLz.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-CuJXGJvc.mjs").then((m) => m.default),
|
|
10
|
+
summary: () => import("./summary-D4vO6NHy.mjs").then((m) => m.default)
|
|
11
11
|
}
|
|
12
12
|
});
|
|
13
13
|
//#endregion
|
package/package.json
CHANGED
|
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
|