beautx-cli 1.1.1-beta.2 → 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 (63) hide show
  1. package/README.md +26 -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-D9B8kaf-.mjs → beauty-plan-CmcNlyKk.mjs} +4 -4
  6. package/dist/{beauty-plan-reminder-D-gVCeWO.mjs → beauty-plan-reminder-B7g7RRTs.mjs} +2 -2
  7. package/dist/{capability-profile-DxrzExct.mjs → capability-profile-yPTx4Mn4.mjs} +5 -5
  8. package/dist/cli.mjs +22 -21
  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-CfzyDYSy.mjs → content-Ce7jKBol.mjs} +2 -2
  12. package/dist/{current-xqaZxhbN.mjs → current-fzCrzKjn.mjs} +1 -1
  13. package/dist/{customer-iWrGhESH.mjs → customer-CnAv26d0.mjs} +1 -1
  14. package/dist/{deal-analysis-Da8iNy64.mjs → deal-analysis-CX4IXbgk.mjs} +3 -3
  15. package/dist/{detail-BnUTSlRa.mjs → detail-ZG7WTexq.mjs} +4 -4
  16. package/dist/{doc-_TnZLbtD.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-ByAQXto5.mjs → get-CCpn3m06.mjs} +4 -4
  21. package/dist/{get-BDXbs-_c.mjs → get-HrCcvm-j.mjs} +2 -2
  22. package/dist/{golden-sentence-CwT4AyLu.mjs → golden-sentence-DAM_YC7V.mjs} +1 -1
  23. package/dist/install-B9_5ceYu.mjs +50 -0
  24. package/dist/{kb-CBj6tJE9.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-CB-bwmRO2.mjs → list-DKbbBiI62.mjs} +4 -4
  30. package/dist/{list-BGjT1Ovk.mjs → list-Dttn4hHn.mjs} +4 -4
  31. package/dist/list-DyAO08z92.mjs +77 -0
  32. package/dist/{list-DMFhAeTT.mjs → list-EcRLnxXY.mjs} +4 -4
  33. package/dist/{list-CQOLK3Xu.mjs → list-e0tVlYwh.mjs} +4 -4
  34. package/dist/{list-CnsJlbrZ.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-DmzQyQHt.mjs → panke-DY7IFcsN.mjs} +2 -2
  39. package/dist/{portrait-tags-c7OW_KzT.mjs → portrait-tags-Dq0faG7k.mjs} +3 -3
  40. package/dist/{project-DeLeVoA3.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-DIZmvMwE.mjs → qa-MQphVELO.mjs} +5 -5
  46. package/dist/{resistance-CC4cxxUk.mjs → resistance-CzNYvRYF.mjs} +1 -1
  47. package/dist/{search-eIzMHyPL.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-BVu2Hmu1.mjs → staff-ZUbldU8P.mjs} +1 -1
  51. package/dist/{summary-CYLljvrY.mjs → summary-B12uZDGr.mjs} +4 -4
  52. package/dist/{task-Fa1R-6DI.mjs → task-CAobpQXt.mjs} +4 -4
  53. package/dist/{text-BIIl7PmC.mjs → text-CCxnry4V.mjs} +4 -4
  54. package/dist/upload-COReB487.mjs +76 -0
  55. package/dist/{use-DIjJeiXP.mjs → use-e7Wzfw1k.mjs} +2 -2
  56. package/dist/{visit-D-HS1jjx.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/project-access-Bf87OLJP.mjs +0 -2
  60. package/dist/project-store-DDVZ7T4t.mjs +0 -2
  61. package/dist/visit-evaluate-COKpVvhv.mjs +0 -30
  62. /package/dist/{doctor-DuGxP40X.mjs → doctor-BuiUn2Zy.mjs} +0 -0
  63. /package/dist/{util-Bko-nm_R.mjs → util-BtgWHKWv.mjs} +0 -0
@@ -0,0 +1,146 @@
1
+ import { l as requireUserId, u as resolveEndpoints } from "./env-vars-osVxvm7z.mjs";
2
+ import { d as buildSandboxProof, f as requireSandboxSecrets, p as requireTenantId, u as WANGCLAW_AUTH_HEADER } from "./cli.mjs";
3
+ import { createWriteStream } from "node:fs";
4
+ import { join } from "node:path";
5
+ import { createHash } from "node:crypto";
6
+ import { mkdir, readFile, rm, writeFile } from "node:fs/promises";
7
+ import { Readable } from "node:stream";
8
+ import { pipeline } from "node:stream/promises";
9
+ //#region src/core/skill-client.ts
10
+ /**
11
+ * Skill BFF REST client.
12
+ *
13
+ * Requests use the Host-injected tenant/user ids and sandbox dual-secret proof.
14
+ * The proof is intentionally sent through X-Wangclaw-Authorization rather than
15
+ * Authorization so the gateway does not treat it as an OAuth JWT.
16
+ */
17
+ const SUCCESS_CODE = "0";
18
+ function resolveSkillInstallDir() {
19
+ return process.env.SKILL_INSTALL_DIR?.trim() || "/home/wuying/jvscrew/.wangai-cli/skills";
20
+ }
21
+ function authContext() {
22
+ const tenantId = requireTenantId();
23
+ const userId = requireUserId();
24
+ const { tenantSecret, userSecret } = requireSandboxSecrets();
25
+ return {
26
+ tenantId,
27
+ userId,
28
+ proof: buildSandboxProof(tenantSecret, userSecret)
29
+ };
30
+ }
31
+ function buildUrl(path, tenantId, userId, extraQuery) {
32
+ const base = resolveEndpoints().skillBffUrl.replace(/\/$/, "");
33
+ const url = new URL(path, `${base}/`);
34
+ url.searchParams.set("tenantId", tenantId);
35
+ url.searchParams.set("userId", userId);
36
+ for (const [key, value] of Object.entries(extraQuery ?? {})) if (value != null && value !== "") url.searchParams.set(key, value);
37
+ return url;
38
+ }
39
+ async function skillFetch(method, path, options) {
40
+ const { tenantId, userId, proof } = authContext();
41
+ const url = buildUrl(path, tenantId, userId, options?.query);
42
+ const headers = {
43
+ Accept: "application/json",
44
+ [WANGCLAW_AUTH_HEADER]: proof
45
+ };
46
+ let body;
47
+ if (options?.body !== void 0) {
48
+ headers["Content-Type"] = "application/json";
49
+ body = JSON.stringify(options.body);
50
+ }
51
+ const response = await fetch(url, {
52
+ method,
53
+ headers,
54
+ body,
55
+ signal: AbortSignal.timeout(15e3)
56
+ });
57
+ const text = await response.text();
58
+ let envelope;
59
+ try {
60
+ envelope = JSON.parse(text);
61
+ } catch {
62
+ throw new Error(`skill-bff 返回非 JSON(HTTP ${response.status}): ${text.slice(0, 200)}`);
63
+ }
64
+ if (!response.ok || String(envelope.code) !== SUCCESS_CODE) {
65
+ const message = envelope.msg || envelope.error || text.slice(0, 200);
66
+ throw new Error(`skill-bff ${method} ${path} 失败: [${envelope.code ?? response.status}] ${message}`);
67
+ }
68
+ return envelope.data;
69
+ }
70
+ async function skillList(type, projectId) {
71
+ const normalizedProjectId = projectId?.trim();
72
+ if ((type === "tenant" || type === "project" || !type) && !normalizedProjectId) throw new Error(type ? `skill list --type ${type} 需要 projectId(可传 --project-id,或先 project use)` : "skill list 需要 projectId(可传 --project-id,或先 project use)");
73
+ return await skillFetch("GET", "out/skills", { query: {
74
+ type,
75
+ projectId: normalizedProjectId
76
+ } }) ?? [];
77
+ }
78
+ async function skillInstallGrant(skillId, projectId) {
79
+ const id = String(skillId).trim();
80
+ if (!/^\d+$/.test(id)) throw new Error("skill install 仅支持数字 ID");
81
+ const normalizedProjectId = projectId?.trim();
82
+ if (!normalizedProjectId) throw new Error("skill install 需要 projectId(可传 --project-id,或先 project use)");
83
+ return skillFetch("GET", `out/skills/${encodeURIComponent(id)}/package`, { query: { projectId: normalizedProjectId } });
84
+ }
85
+ async function skillUploadInitiate(input) {
86
+ const ownerType = (input?.ownerType?.trim() || "personal").toLowerCase();
87
+ if (ownerType !== "personal" && ownerType !== "tenant" && ownerType !== "project") throw new Error("ownerType 仅支持 personal | tenant | project");
88
+ const projectId = input?.projectId?.trim();
89
+ if (ownerType === "project" && !projectId) throw new Error("ownerType=project 需要 projectId");
90
+ const payload = {
91
+ ownerType,
92
+ projectId
93
+ };
94
+ if (input?.skillId != null && String(input.skillId).trim() !== "") payload.skillId = String(input.skillId).trim();
95
+ return skillFetch("POST", "out/skills/uploads/initiate", { body: payload });
96
+ }
97
+ async function skillUploadConfirm(input) {
98
+ return skillFetch("POST", "out/skills/uploads/confirm", { body: input });
99
+ }
100
+ /** Upload a zip to the presigned object-storage URL returned by initiate. */
101
+ async function putSkillZip(uploadUrl, zipBytes, uploadHeaders) {
102
+ const response = await fetch(uploadUrl, {
103
+ method: "PUT",
104
+ headers: {
105
+ "Content-Type": "application/zip",
106
+ ...uploadHeaders ?? {}
107
+ },
108
+ body: zipBytes,
109
+ signal: AbortSignal.timeout(6e4)
110
+ });
111
+ if (!response.ok) {
112
+ const text = await response.text().catch(() => "");
113
+ throw new Error(`OSS PUT 失败(HTTP ${response.status}): ${text.slice(0, 200) || response.statusText}`);
114
+ }
115
+ }
116
+ async function downloadSkillPackage(grant, installDir = resolveSkillInstallDir()) {
117
+ const skillId = String(grant.skillId).trim();
118
+ if (!/^\d+$/.test(skillId)) throw new Error("skill-bff 返回了无效的 Skill ID");
119
+ const skillDir = join(installDir, skillId);
120
+ await mkdir(skillDir, { recursive: true });
121
+ const zipPath = join(skillDir, "package.zip");
122
+ const response = await fetch(grant.downloadUrl, { signal: AbortSignal.timeout(6e4) });
123
+ if (!response.ok || !response.body) throw new Error(`下载 Skill 包失败(HTTP ${response.status})`);
124
+ await pipeline(Readable.fromWeb(response.body), createWriteStream(zipPath));
125
+ if (grant.checksum) {
126
+ const bytes = await readFile(zipPath);
127
+ const actual = createHash("sha256").update(bytes).digest("hex");
128
+ if (actual.toLowerCase() !== grant.checksum.toLowerCase()) {
129
+ await rm(zipPath, { force: true });
130
+ throw new Error(`checksum 不匹配: expected ${grant.checksum}, got ${actual}`);
131
+ }
132
+ }
133
+ await writeFile(join(skillDir, "meta.json"), JSON.stringify({
134
+ skillId,
135
+ name: grant.name,
136
+ version: grant.version,
137
+ checksum: grant.checksum,
138
+ installedAt: (/* @__PURE__ */ new Date()).toISOString()
139
+ }, null, 2));
140
+ return {
141
+ skillDir,
142
+ zipPath
143
+ };
144
+ }
145
+ //#endregion
146
+ export { skillList as a, skillInstallGrant as i, putSkillZip as n, skillUploadConfirm as o, resolveSkillInstallDir as r, skillUploadInitiate as s, downloadSkillPackage as t };
@@ -5,7 +5,7 @@ var staff_default = defineCommand({
5
5
  name: "staff",
6
6
  description: "员工能力查询"
7
7
  },
8
- subCommands: { "capability-profile": () => import("./capability-profile-DxrzExct.mjs").then((m) => m.default) }
8
+ subCommands: { "capability-profile": () => import("./capability-profile-yPTx4Mn4.mjs").then((m) => m.default) }
9
9
  });
10
10
  //#endregion
11
11
  export { staff_default as default };
@@ -1,8 +1,8 @@
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 resolveProjectId, t as projectIdCliArg } from "./mcp-args-DK3IGaO1.mjs";
4
- import { t as mcpCallPage } from "./mcp-result-De_0PPlD.mjs";
5
- import { i as toLocalDateTime } from "./util-Bko-nm_R.mjs";
3
+ import { n as resolveProjectId, t as projectIdCliArg } from "./mcp-args-CG7OuBep.mjs";
4
+ import { t as mcpCallPage } from "./mcp-result-BzDGJUdM.mjs";
5
+ import { i as toLocalDateTime } from "./util-BtgWHKWv.mjs";
6
6
  import { defineCommand } from "citty";
7
7
  //#region src/commands/visit/summary.ts
8
8
  /**
@@ -1,8 +1,8 @@
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";
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
6
  import { defineCommand } from "citty";
7
7
  //#region src/commands/panke/task.ts
8
8
  function buildPankeTaskArgs(args, active) {
@@ -1,8 +1,8 @@
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";
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
6
  import { defineCommand } from "citty";
7
7
  //#region src/commands/audio/text.ts
8
8
  /**
@@ -0,0 +1,76 @@
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-CLXEQ0Hv.mjs";
3
+ import { defineCommand } from "citty";
4
+ import { readFile } from "node:fs/promises";
5
+ //#region src/commands/skill/upload.ts
6
+ /**
7
+ * `beautx-cli skill upload <zip>` — initiate, upload to OSS, then confirm.
8
+ */
9
+ var upload_default = defineCommand({
10
+ meta: {
11
+ name: "upload",
12
+ description: "上传本地 Skill zip(initiate → PUT → confirm)"
13
+ },
14
+ args: {
15
+ path: {
16
+ type: "positional",
17
+ description: "本地 .zip 路径(压缩包内需包含 SKILL.md)",
18
+ required: true
19
+ },
20
+ type: {
21
+ type: "string",
22
+ description: "personal(默认)| tenant | project",
23
+ default: "personal"
24
+ },
25
+ "project-id": {
26
+ type: "string",
27
+ description: "项目 ID;type=project 时必填,type=tenant 时可选"
28
+ },
29
+ "skill-id": {
30
+ type: "string",
31
+ description: "已有 Skill ID;传入时替换现有包,省略时新建"
32
+ },
33
+ tags: {
34
+ type: "string",
35
+ description: "可选标签 JSON 数组,例如 '[\"a\",\"b\"]'"
36
+ },
37
+ format: formatCliArg
38
+ },
39
+ async run({ args }) {
40
+ try {
41
+ const type = args.type?.trim().toLowerCase() || "personal";
42
+ if (type !== "personal" && type !== "tenant" && type !== "project") throw new Error("type 仅支持 personal | tenant | project");
43
+ const projectId = args["project-id"]?.trim();
44
+ if (type === "project" && !projectId) throw new Error("type=project 需要 --project-id");
45
+ const zipBytes = await readFile(args.path.trim());
46
+ let skillId;
47
+ if (args["skill-id"]?.trim()) {
48
+ const rawId = args["skill-id"].trim();
49
+ if (!/^\d+$/.test(rawId)) throw new Error("skill-id 必须为数字");
50
+ skillId = rawId;
51
+ }
52
+ const token = await skillUploadInitiate({
53
+ skillId,
54
+ ownerType: type,
55
+ projectId
56
+ });
57
+ await putSkillZip(token.uploadUrl, zipBytes, token.uploadHeaders);
58
+ const skill = await skillUploadConfirm({
59
+ uploadToken: token.token,
60
+ tags: args.tags?.trim() || void 0
61
+ });
62
+ writeResult({
63
+ skillId: skill.id,
64
+ name: skill.name,
65
+ version: skill.version,
66
+ status: skill.status,
67
+ ownerType: skill.ownerType
68
+ }, args.format);
69
+ } catch (err) {
70
+ writeError(err, args.format);
71
+ process.exit(1);
72
+ }
73
+ }
74
+ });
75
+ //#endregion
76
+ export { upload_default as default };
@@ -1,5 +1,5 @@
1
- import { i as invalidateActiveProjectCache, l as switchActiveProjectViaCallback, r as assertProjectSwitchAllowed } from "./project-store-Dl35JzZr.mjs";
2
- import { a as resolveProjectForUse, i as invalidateProjectAccessCache } from "./project-access-pTN7ry15.mjs";
1
+ import { a as resolveProjectForUse, i as invalidateProjectAccessCache } from "./project-access-ChmJv4Z4.mjs";
2
+ import { i as invalidateActiveProjectCache, l as switchActiveProjectViaCallback, r as assertProjectSwitchAllowed } from "./project-store-DUlIIW51.mjs";
3
3
  import { n as writeError, r as writeResult, t as formatCliArg } from "./cli.mjs";
4
4
  import { defineCommand } from "citty";
5
5
  //#region src/commands/project/use.ts
@@ -6,8 +6,8 @@ var visit_default = defineCommand({
6
6
  description: "客户来访查询"
7
7
  },
8
8
  subCommands: {
9
- list: () => import("./list-CQOLK3Xu.mjs").then((m) => m.default),
10
- summary: () => import("./summary-CYLljvrY.mjs").then((m) => m.default)
9
+ list: () => import("./list-e0tVlYwh.mjs").then((m) => m.default),
10
+ summary: () => import("./summary-B12uZDGr.mjs").then((m) => m.default)
11
11
  }
12
12
  });
13
13
  //#endregion
@@ -1,6 +1,6 @@
1
1
  import { t as formatCliArg } from "./cli.mjs";
2
- import { n as resolveProjectId, t as projectIdCliArg } from "./mcp-args-DK3IGaO1.mjs";
3
- import { i as toLocalDateTime, n as mergeIds, t as csvToArray } from "./util-Bko-nm_R.mjs";
2
+ import { n as resolveProjectId, t as projectIdCliArg } from "./mcp-args-CG7OuBep.mjs";
3
+ import { i as toLocalDateTime, n as mergeIds, t as csvToArray } from "./util-BtgWHKWv.mjs";
4
4
  //#region src/commands/common/visit-query-args.ts
5
5
  const visitBatchQueryCliArgs = {
6
6
  ...projectIdCliArg,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "beautx-cli",
3
- "version": "1.1.1-beta.2",
3
+ "version": "1.1.1-beta.3",
4
4
  "description": "Beautx CLI (beautx-cli) — MCP gateway CLI for medical beauty industry",
5
5
  "type": "module",
6
6
  "bin": {
@@ -1,2 +0,0 @@
1
- import { r as assertProjectAllowed } from "./project-access-pTN7ry15.mjs";
2
- export { assertProjectAllowed };
@@ -1,2 +0,0 @@
1
- import { o as loadActiveProject } from "./project-store-Dl35JzZr.mjs";
2
- export { loadActiveProject };
@@ -1,30 +0,0 @@
1
- import { c as requireActiveProject } from "./project-store-Dl35JzZr.mjs";
2
- import { n as writeError } from "./cli.mjs";
3
- import { t as mcpCallPage } from "./mcp-result-De_0PPlD.mjs";
4
- import { n as visitBatchQueryCliArgs, t as buildVisitBatchQueryArgs } from "./visit-query-args-BsfU3CUz.mjs";
5
- import { defineCommand } from "citty";
6
- //#region src/commands/visit-evaluate/index.ts
7
- /**
8
- * `beautx-cli visit-evaluate` — page beautx visit evaluations via MCP gateway.
9
- */
10
- var visit_evaluate_default = defineCommand({
11
- meta: {
12
- name: "visit-evaluate",
13
- description: "医美接诊评价分页查询(总分、总评、5 个能力项评价)"
14
- },
15
- args: { ...visitBatchQueryCliArgs },
16
- async run({ args }) {
17
- try {
18
- await mcpCallPage("visit-evaluate", buildVisitBatchQueryArgs(args, await requireActiveProject()), args.format, {
19
- itemsKey: "visitEvaluates",
20
- defaultPage: Number(args.page),
21
- defaultSize: Number(args.size)
22
- });
23
- } catch (err) {
24
- writeError(err, args.format);
25
- process.exit(1);
26
- }
27
- }
28
- });
29
- //#endregion
30
- export { visit_evaluate_default as default };
File without changes