beautx-cli 1.0.6-beta.1 → 1.0.6-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 (47) hide show
  1. package/README.md +2 -2
  2. package/dist/{analyze-Djk9ehcL.mjs → analyze-Cq-Hmoqp.mjs} +4 -4
  3. package/dist/{api-BxZ6RH9a.mjs → api-jIGM86TK.mjs} +1 -1
  4. package/dist/{audio-CTEQazMK.mjs → audio-p2QCYFdq.mjs} +3 -3
  5. package/dist/{beauty-plan-T6oPTu3Y.mjs → beauty-plan-CgSmAhn8.mjs} +3 -3
  6. package/dist/cli.mjs +17 -17
  7. package/dist/{config-Bp7zHinN.mjs → config-DAVi_CuD.mjs} +2 -2
  8. package/dist/{consultant-B7GAFHWs.mjs → consultant-CPecFRiS.mjs} +1 -1
  9. package/dist/{content-B4D6j0vv.mjs → content-Bq_jEIl6.mjs} +2 -2
  10. package/dist/{current-BeoE1SK9.mjs → current-D4fh-53q.mjs} +1 -1
  11. package/dist/{customer-DqDTvC1N.mjs → customer-DWG47eAT.mjs} +1 -1
  12. package/dist/{deal-analysis-CwUKL9Ji.mjs → deal-analysis-Cn2wCaoU.mjs} +3 -3
  13. package/dist/{doc-D6G4Z_rv.mjs → doc-DwxREqki.mjs} +3 -3
  14. package/dist/{fields-DJeLpaGd.mjs → fields-BGogOrgD.mjs} +3 -3
  15. package/dist/{focus-LvkCcszr.mjs → focus-BE8BT835.mjs} +1 -1
  16. package/dist/{get-BBOaM5KU.mjs → get-BKCE22jj.mjs} +2 -2
  17. package/dist/{kb-Bhd58evq.mjs → kb-BsiBl_ul.mjs} +2 -2
  18. package/dist/{list-yupPP25S.mjs → list-BUYSLNqZ.mjs} +1 -1
  19. package/dist/{list-B5hx_XTf.mjs → list-BYLk3sNv.mjs} +3 -3
  20. package/dist/{list-DIiYjEZk.mjs → list-BcYy7Ejx.mjs} +3 -3
  21. package/dist/{list-B5DASwyK.mjs → list-BmVWcUI7.mjs} +1 -1
  22. package/dist/{list-tnh01ZMo.mjs → list-BzmkW4Iq.mjs} +4 -4
  23. package/dist/{list-C7Vq9L7R.mjs → list-Cnz5CuQB.mjs} +3 -3
  24. package/dist/{list-utR_LRZN.mjs → list-Cs1kF7EB.mjs} +4 -4
  25. package/dist/{list-CabGBbim.mjs → list-DJscF_8M.mjs} +3 -3
  26. package/dist/{list-CuINauZ_.mjs → list-DVy4Czfy.mjs} +3 -3
  27. package/dist/{mcp-args-Cop-Gaha.mjs → mcp-args-DK3IGaO1.mjs} +1 -1
  28. package/dist/{mcp-client-BadcKqv9.mjs → mcp-client-BTZH22b5.mjs} +3 -3
  29. package/dist/{mcp-result-CBq8FqvE.mjs → mcp-result-De_0PPlD.mjs} +1 -1
  30. package/dist/{portrait-tags-DvTmM5jj.mjs → portrait-tags-I57TgDAx.mjs} +3 -3
  31. package/dist/{project-BnO3fpfa.mjs → project-K-HkeM57.mjs} +3 -3
  32. package/dist/project-access-Bf87OLJP.mjs +2 -0
  33. package/dist/{project-access-fgfgvJTL.mjs → project-access-pTN7ry15.mjs} +3 -3
  34. package/dist/project-store-DDVZ7T4t.mjs +2 -0
  35. package/dist/{project-store-CA7tRioX.mjs → project-store-Dl35JzZr.mjs} +2 -2
  36. package/dist/{qa-BY3EqJQm.mjs → qa-gAtF6cSk.mjs} +4 -4
  37. package/dist/{resistance-DTXXWAm5.mjs → resistance-DGU99Bwi.mjs} +1 -1
  38. package/dist/{search-B9MphR3s.mjs → search-C16CzRep.mjs} +4 -4
  39. package/dist/{summary-C3ll-30H.mjs → summary-DgpSsQh9.mjs} +3 -3
  40. package/dist/{text--mtegj9C.mjs → text-BIIl7PmC.mjs} +4 -4
  41. package/dist/{use-xg62A9ri.mjs → use-D_HBqdev.mjs} +2 -2
  42. package/dist/{visit-l8rrEEtj.mjs → visit-DnUPj-8i.mjs} +2 -2
  43. package/dist/{visit-evaluate-C23CuEiJ.mjs → visit-evaluate-DM7oCk6R.mjs} +3 -3
  44. package/dist/{visit-query-args-CZogADi5.mjs → visit-query-args-BD3Dw-9F.mjs} +1 -1
  45. package/package.json +1 -1
  46. package/dist/project-access-BeRtEUkG.mjs +0 -2
  47. package/dist/project-store-8Cl4Sv5d.mjs +0 -2
package/README.md CHANGED
@@ -228,8 +228,8 @@ CLI 通过环境变量获取身份(由 QCA / Host 沙箱注入)。当前项
228
228
  | XB_APP_ID | 应用 ID(`aike` 时禁止 `project use`) |
229
229
  | SESSION_ID | 可选;有则 MCP 请求带 `X-MCP-Session-Id` |
230
230
 
231
- - **MCP AT**:每次调用向 `{callbackBaseUrl}/api/wang-claw/out/v2/mcp-token` 借用(进程内缓存)。
232
- - **当前项目**:`GET/PUT /api/wang-claw/out/v2/current-project`(`project current` / `project use`)。
231
+ - **MCP AT**:每次调用向 `{callbackBaseUrl}/api/qca-wangclaw/out/v2/mcp-token` 借用(进程内缓存)。
232
+ - **当前项目**:`GET/PUT /api/qca-wangclaw/out/v2/current-project`(`project current` / `project use`)。
233
233
  - `config list` 脱敏展示;`config doctor` 只检查存在性。
234
234
 
235
235
  `ESTATE_ID` / `ESTATE_NAME` 仍可能出现在 Host 历史 env 里,但 **不是** 当前项目的权威来源。
@@ -1,8 +1,8 @@
1
- import { c as requireActiveProject } from "./project-store-CA7tRioX.mjs";
1
+ import { c as requireActiveProject } from "./project-store-Dl35JzZr.mjs";
2
2
  import { n as writeError, t as formatCliArg } from "./cli.mjs";
3
- import { n as mcpCall } from "./mcp-client-BadcKqv9.mjs";
4
- import { n as resolveProjectId, t as projectIdCliArg } from "./mcp-args-Cop-Gaha.mjs";
5
- import { n as writeMcpDataResult } from "./mcp-result-CBq8FqvE.mjs";
3
+ import { n as mcpCall } from "./mcp-client-BTZH22b5.mjs";
4
+ import { n as resolveProjectId, t as projectIdCliArg } from "./mcp-args-DK3IGaO1.mjs";
5
+ import { n as writeMcpDataResult } from "./mcp-result-De_0PPlD.mjs";
6
6
  import { t as csvToArray } from "./util-Bko-nm_R.mjs";
7
7
  import { defineCommand } from "citty";
8
8
  //#region src/commands/audio/analyze.ts
@@ -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-BadcKqv9.mjs";
2
+ import { n as mcpCall, t as MCP_SERVICE_CODE } from "./mcp-client-BTZH22b5.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-C7Vq9L7R.mjs").then((m) => m.default),
10
- text: () => import("./text--mtegj9C.mjs").then((m) => m.default),
11
- analyze: () => import("./analyze-Djk9ehcL.mjs").then((m) => m.default)
9
+ list: () => import("./list-Cnz5CuQB.mjs").then((m) => m.default),
10
+ text: () => import("./text-BIIl7PmC.mjs").then((m) => m.default),
11
+ analyze: () => import("./analyze-Cq-Hmoqp.mjs").then((m) => m.default)
12
12
  }
13
13
  });
14
14
  //#endregion
@@ -1,7 +1,7 @@
1
- import { c as requireActiveProject } from "./project-store-CA7tRioX.mjs";
1
+ import { c as requireActiveProject } from "./project-store-Dl35JzZr.mjs";
2
2
  import { n as writeError } from "./cli.mjs";
3
- import { t as mcpCallPage } from "./mcp-result-CBq8FqvE.mjs";
4
- import { n as visitBatchQueryCliArgs, t as buildVisitBatchQueryArgs } from "./visit-query-args-CZogADi5.mjs";
3
+ import { t as mcpCallPage } from "./mcp-result-De_0PPlD.mjs";
4
+ import { n as visitBatchQueryCliArgs, t as buildVisitBatchQueryArgs } from "./visit-query-args-BD3Dw-9F.mjs";
5
5
  import { defineCommand } from "citty";
6
6
  //#region src/commands/beauty-plan/index.ts
7
7
  /**
package/dist/cli.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import { i as __toESM, r as __require, t as __commonJSMin } from "./rolldown-runtime-YLnNgb9a.mjs";
3
- import { C as MissingAccessTokenError, S as ConfigInvalidError, _ as readEnv, b as syncProcessEnv, g as readCredentials, h as needsRefresh, m as isTokenExpired, o as loadActiveProject, u as ENV_KEYS, v as requireUserId, x as AccessTokenExpiredError, y as resolveEndpoints } from "./project-store-CA7tRioX.mjs";
4
- import { i as invalidateProjectAccessCache } from "./project-access-fgfgvJTL.mjs";
3
+ import { C as MissingAccessTokenError, S as ConfigInvalidError, _ as readEnv, b as syncProcessEnv, g as readCredentials, h as needsRefresh, m as isTokenExpired, o as loadActiveProject, u as ENV_KEYS, v as requireUserId, x as AccessTokenExpiredError, y as resolveEndpoints } from "./project-store-Dl35JzZr.mjs";
4
+ import { i as invalidateProjectAccessCache } from "./project-access-pTN7ry15.mjs";
5
5
  import { appendFileSync, mkdirSync, readFileSync } from "node:fs";
6
6
  import { dirname, join } from "node:path";
7
7
  import { fileURLToPath } from "node:url";
@@ -63,7 +63,7 @@ async function fetchMcpTokenFromBroker() {
63
63
  const proof = buildSandboxProof(tenantSecret, userSecret);
64
64
  const { callbackBaseUrl } = resolveEndpoints();
65
65
  const base = callbackBaseUrl.replace(/\/$/, "");
66
- const url = new URL("/api/wang-claw/out/v2/mcp-token", `${base}/`);
66
+ const url = new URL("/api/qca-wangclaw/out/v2/mcp-token", `${base}/`);
67
67
  url.searchParams.set("tenantId", tenantId);
68
68
  url.searchParams.set("userId", userId);
69
69
  let resp;
@@ -7635,20 +7635,20 @@ runMain(defineCommand({
7635
7635
  }
7636
7636
  },
7637
7637
  subCommands: {
7638
- config: () => import("./config-Bp7zHinN.mjs").then((m) => m.default),
7639
- project: () => import("./project-BnO3fpfa.mjs").then((m) => m.default),
7640
- consultant: () => import("./consultant-B7GAFHWs.mjs").then((m) => m.default),
7641
- audio: () => import("./audio-CTEQazMK.mjs").then((m) => m.default),
7642
- customer: () => import("./customer-DqDTvC1N.mjs").then((m) => m.default),
7643
- visit: () => import("./visit-l8rrEEtj.mjs").then((m) => m.default),
7644
- "visit-evaluate": () => import("./visit-evaluate-C23CuEiJ.mjs").then((m) => m.default),
7645
- "beauty-plan": () => import("./beauty-plan-T6oPTu3Y.mjs").then((m) => m.default),
7646
- "deal-analysis": () => import("./deal-analysis-CwUKL9Ji.mjs").then((m) => m.default),
7647
- "portrait-tags": () => import("./portrait-tags-DvTmM5jj.mjs").then((m) => m.default),
7648
- focus: () => import("./focus-LvkCcszr.mjs").then((m) => m.default),
7649
- resistance: () => import("./resistance-DTXXWAm5.mjs").then((m) => m.default),
7650
- qa: () => import("./qa-BY3EqJQm.mjs").then((m) => m.default),
7651
- kb: () => import("./kb-Bhd58evq.mjs").then((m) => m.default)
7638
+ config: () => import("./config-DAVi_CuD.mjs").then((m) => m.default),
7639
+ project: () => import("./project-K-HkeM57.mjs").then((m) => m.default),
7640
+ consultant: () => import("./consultant-CPecFRiS.mjs").then((m) => m.default),
7641
+ audio: () => import("./audio-p2QCYFdq.mjs").then((m) => m.default),
7642
+ customer: () => import("./customer-DWG47eAT.mjs").then((m) => m.default),
7643
+ visit: () => import("./visit-DnUPj-8i.mjs").then((m) => m.default),
7644
+ "visit-evaluate": () => import("./visit-evaluate-DM7oCk6R.mjs").then((m) => m.default),
7645
+ "beauty-plan": () => import("./beauty-plan-CgSmAhn8.mjs").then((m) => m.default),
7646
+ "deal-analysis": () => import("./deal-analysis-Cn2wCaoU.mjs").then((m) => m.default),
7647
+ "portrait-tags": () => import("./portrait-tags-I57TgDAx.mjs").then((m) => m.default),
7648
+ focus: () => import("./focus-BE8BT835.mjs").then((m) => m.default),
7649
+ resistance: () => import("./resistance-DGU99Bwi.mjs").then((m) => m.default),
7650
+ qa: () => import("./qa-gAtF6cSk.mjs").then((m) => m.default),
7651
+ kb: () => import("./kb-BsiBl_ul.mjs").then((m) => m.default)
7652
7652
  }
7653
7653
  }));
7654
7654
  //#endregion
@@ -6,9 +6,9 @@ var config_default = defineCommand({
6
6
  description: "沙箱配置:list 只读诊断;doctor 自检;fields 客户字段字典"
7
7
  },
8
8
  subCommands: {
9
- list: () => import("./list-yupPP25S.mjs").then((m) => m.default),
9
+ list: () => import("./list-BUYSLNqZ.mjs").then((m) => m.default),
10
10
  doctor: () => import("./doctor-RwDPp4y3.mjs").then((m) => m.default),
11
- fields: () => import("./fields-DJeLpaGd.mjs").then((m) => m.default)
11
+ fields: () => import("./fields-BGogOrgD.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-utR_LRZN.mjs").then((m) => m.default) }
8
+ subCommands: { list: () => import("./list-Cs1kF7EB.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-BadcKqv9.mjs";
3
- import { n as writeMcpDataResult } from "./mcp-result-CBq8FqvE.mjs";
2
+ import { n as mcpCall } from "./mcp-client-BTZH22b5.mjs";
3
+ import { n as writeMcpDataResult } from "./mcp-result-De_0PPlD.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-CA7tRioX.mjs";
1
+ import { c as requireActiveProject } from "./project-store-Dl35JzZr.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-CabGBbim.mjs").then((m) => m.default) }
8
+ subCommands: { list: () => import("./list-DJscF_8M.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-CA7tRioX.mjs";
1
+ import { c as requireActiveProject } from "./project-store-Dl35JzZr.mjs";
2
2
  import { n as writeError } from "./cli.mjs";
3
- import { t as mcpCallPage } from "./mcp-result-CBq8FqvE.mjs";
4
- import { n as visitBatchQueryCliArgs, t as buildVisitBatchQueryArgs } from "./visit-query-args-CZogADi5.mjs";
3
+ import { t as mcpCallPage } from "./mcp-result-De_0PPlD.mjs";
4
+ import { n as visitBatchQueryCliArgs, t as buildVisitBatchQueryArgs } from "./visit-query-args-BD3Dw-9F.mjs";
5
5
  import { defineCommand } from "citty";
6
6
  //#region src/commands/deal-analysis/index.ts
7
7
  /**
@@ -6,9 +6,9 @@ var doc_default = defineCommand({
6
6
  description: "知识库文档列表 / 元数据 / 全文"
7
7
  },
8
8
  subCommands: {
9
- list: () => import("./list-tnh01ZMo.mjs").then((m) => m.default),
10
- get: () => import("./get-BBOaM5KU.mjs").then((m) => m.default),
11
- content: () => import("./content-B4D6j0vv.mjs").then((m) => m.default)
9
+ list: () => import("./list-BzmkW4Iq.mjs").then((m) => m.default),
10
+ get: () => import("./get-BKCE22jj.mjs").then((m) => m.default),
11
+ content: () => import("./content-Bq_jEIl6.mjs").then((m) => m.default)
12
12
  }
13
13
  });
14
14
  //#endregion
@@ -1,7 +1,7 @@
1
- import { c as requireActiveProject } from "./project-store-CA7tRioX.mjs";
1
+ import { c as requireActiveProject } from "./project-store-Dl35JzZr.mjs";
2
2
  import { n as writeError, t as formatCliArg } from "./cli.mjs";
3
- import { n as resolveProjectId, t as projectIdCliArg } from "./mcp-args-Cop-Gaha.mjs";
4
- import { t as mcpCallPage } from "./mcp-result-CBq8FqvE.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
5
  import { defineCommand } from "citty";
6
6
  //#region src/commands/config/fields.ts
7
7
  /**
@@ -5,7 +5,7 @@ var focus_default = defineCommand({
5
5
  name: "focus",
6
6
  description: "客户关注点标签分页查询"
7
7
  },
8
- subCommands: { list: () => import("./list-B5hx_XTf.mjs").then((m) => m.default) }
8
+ subCommands: { list: () => import("./list-BYLk3sNv.mjs").then((m) => m.default) }
9
9
  });
10
10
  //#endregion
11
11
  export { focus_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-BadcKqv9.mjs";
3
- import { n as writeMcpDataResult } from "./mcp-result-CBq8FqvE.mjs";
2
+ import { n as mcpCall } from "./mcp-client-BTZH22b5.mjs";
3
+ import { n as writeMcpDataResult } from "./mcp-result-De_0PPlD.mjs";
4
4
  import { defineCommand } from "citty";
5
5
  //#region src/commands/kb/doc/get.ts
6
6
  /**
@@ -6,8 +6,8 @@ var kb_default = defineCommand({
6
6
  description: "知识库检索与文档查询"
7
7
  },
8
8
  subCommands: {
9
- search: () => import("./search-B9MphR3s.mjs").then((m) => m.default),
10
- doc: () => import("./doc-D6G4Z_rv.mjs").then((m) => m.default)
9
+ search: () => import("./search-C16CzRep.mjs").then((m) => m.default),
10
+ doc: () => import("./doc-DwxREqki.mjs").then((m) => m.default)
11
11
  }
12
12
  });
13
13
  //#endregion
@@ -1,4 +1,4 @@
1
- import { _ as readEnv, a as isProjectSwitchAllowed, f as credentialStatus, g as readCredentials, o as loadActiveProject, p as isEnvInjectedByHost, u as ENV_KEYS, y as resolveEndpoints } from "./project-store-CA7tRioX.mjs";
1
+ import { _ as readEnv, a as isProjectSwitchAllowed, f as credentialStatus, g as readCredentials, o as loadActiveProject, p as isEnvInjectedByHost, u as ENV_KEYS, y as resolveEndpoints } from "./project-store-Dl35JzZr.mjs";
2
2
  import { n as writeError, o as debugLogPath, r as writeResult, s as isVerboseDebugEnabled, t as formatCliArg } from "./cli.mjs";
3
3
  import { defineCommand } from "citty";
4
4
  //#region src/core/mask-env.ts
@@ -1,7 +1,7 @@
1
- import { c as requireActiveProject } from "./project-store-CA7tRioX.mjs";
1
+ import { c as requireActiveProject } from "./project-store-Dl35JzZr.mjs";
2
2
  import { n as writeError, t as formatCliArg } from "./cli.mjs";
3
- import { n as resolveProjectId, t as projectIdCliArg } from "./mcp-args-Cop-Gaha.mjs";
4
- import { t as mcpCallPage } from "./mcp-result-CBq8FqvE.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
5
  import { i as toLocalDateTime, t as csvToArray } from "./util-Bko-nm_R.mjs";
6
6
  import { defineCommand } from "citty";
7
7
  //#region src/commands/focus/list.ts
@@ -1,7 +1,7 @@
1
- import { c as requireActiveProject } from "./project-store-CA7tRioX.mjs";
1
+ import { c as requireActiveProject } from "./project-store-Dl35JzZr.mjs";
2
2
  import { n as writeError, t as formatCliArg } from "./cli.mjs";
3
- import { n as resolveProjectId, t as projectIdCliArg } from "./mcp-args-Cop-Gaha.mjs";
4
- import { t as mcpCallPage } from "./mcp-result-CBq8FqvE.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
5
  import { i as toLocalDateTime } from "./util-Bko-nm_R.mjs";
6
6
  import { defineCommand } from "citty";
7
7
  //#region src/commands/visit/list.ts
@@ -1,5 +1,5 @@
1
1
  import { n as writeError, t as formatCliArg } from "./cli.mjs";
2
- import { t as mcpCallPage } from "./mcp-result-CBq8FqvE.mjs";
2
+ import { t as mcpCallPage } from "./mcp-result-De_0PPlD.mjs";
3
3
  import { defineCommand } from "citty";
4
4
  //#region src/commands/project/list.ts
5
5
  /**
@@ -1,8 +1,8 @@
1
- import { c as requireActiveProject } from "./project-store-CA7tRioX.mjs";
1
+ import { c as requireActiveProject } from "./project-store-Dl35JzZr.mjs";
2
2
  import { n as writeError, t as formatCliArg } from "./cli.mjs";
3
- import { n as mcpCall } from "./mcp-client-BadcKqv9.mjs";
4
- import { i as tenantIdCliArg, n as resolveProjectId, r as resolveTenantId, t as projectIdCliArg } from "./mcp-args-Cop-Gaha.mjs";
5
- import { n as writeMcpDataResult } from "./mcp-result-CBq8FqvE.mjs";
3
+ import { n as mcpCall } from "./mcp-client-BTZH22b5.mjs";
4
+ import { i as tenantIdCliArg, n as resolveProjectId, r as resolveTenantId, t as projectIdCliArg } from "./mcp-args-DK3IGaO1.mjs";
5
+ import { n as writeMcpDataResult } from "./mcp-result-De_0PPlD.mjs";
6
6
  import { defineCommand } from "citty";
7
7
  //#region src/commands/kb/doc/list.ts
8
8
  /**
@@ -1,7 +1,7 @@
1
- import { c as requireActiveProject } from "./project-store-CA7tRioX.mjs";
1
+ import { c as requireActiveProject } from "./project-store-Dl35JzZr.mjs";
2
2
  import { n as writeError, t as formatCliArg } from "./cli.mjs";
3
- import { n as resolveProjectId, t as projectIdCliArg } from "./mcp-args-Cop-Gaha.mjs";
4
- import { t as mcpCallPage } from "./mcp-result-CBq8FqvE.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
5
  import { i as toLocalDateTime, r as mergeUserIds, t as csvToArray } from "./util-Bko-nm_R.mjs";
6
6
  import { defineCommand } from "citty";
7
7
  //#region src/commands/audio/list.ts
@@ -1,8 +1,8 @@
1
- import { c as requireActiveProject } from "./project-store-CA7tRioX.mjs";
1
+ import { c as requireActiveProject } from "./project-store-Dl35JzZr.mjs";
2
2
  import { n as writeError, t as formatCliArg } from "./cli.mjs";
3
- import { n as mcpCall } from "./mcp-client-BadcKqv9.mjs";
4
- import { n as resolveProjectId, t as projectIdCliArg } from "./mcp-args-Cop-Gaha.mjs";
5
- import { n as writeMcpDataResult } from "./mcp-result-CBq8FqvE.mjs";
3
+ import { n as mcpCall } from "./mcp-client-BTZH22b5.mjs";
4
+ import { n as resolveProjectId, t as projectIdCliArg } from "./mcp-args-DK3IGaO1.mjs";
5
+ import { n as writeMcpDataResult } from "./mcp-result-De_0PPlD.mjs";
6
6
  import { defineCommand } from "citty";
7
7
  //#region src/commands/consultant/list.ts
8
8
  /**
@@ -1,7 +1,7 @@
1
- import { c as requireActiveProject } from "./project-store-CA7tRioX.mjs";
1
+ import { c as requireActiveProject } from "./project-store-Dl35JzZr.mjs";
2
2
  import { n as writeError, t as formatCliArg } from "./cli.mjs";
3
- import { n as resolveProjectId, t as projectIdCliArg } from "./mcp-args-Cop-Gaha.mjs";
4
- import { t as mcpCallPage } from "./mcp-result-CBq8FqvE.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
5
  import { i as toLocalDateTime } from "./util-Bko-nm_R.mjs";
6
6
  import { defineCommand } from "citty";
7
7
  //#region src/commands/customer/list.ts
@@ -1,7 +1,7 @@
1
- import { c as requireActiveProject } from "./project-store-CA7tRioX.mjs";
1
+ import { c as requireActiveProject } from "./project-store-Dl35JzZr.mjs";
2
2
  import { n as writeError, t as formatCliArg } from "./cli.mjs";
3
- import { n as resolveProjectId, t as projectIdCliArg } from "./mcp-args-Cop-Gaha.mjs";
4
- import { t as mcpCallPage } from "./mcp-result-CBq8FqvE.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
5
  import { i as toLocalDateTime, t as csvToArray } from "./util-Bko-nm_R.mjs";
6
6
  import { defineCommand } from "citty";
7
7
  //#region src/commands/resistance/list.ts
@@ -1,4 +1,4 @@
1
- import { _ as readEnv, u as ENV_KEYS } from "./project-store-CA7tRioX.mjs";
1
+ import { _ as readEnv, u as ENV_KEYS } from "./project-store-Dl35JzZr.mjs";
2
2
  //#region src/core/mcp-args.ts
3
3
  /**
4
4
  * Shared MCP argument helpers — align CLI flags with BFF tool schemas.
@@ -1,5 +1,5 @@
1
1
  import { n as __exportAll } from "./rolldown-runtime-YLnNgb9a.mjs";
2
- import { C as MissingAccessTokenError, _ as readEnv, d as assertEndpointsValid, u as ENV_KEYS, w as MissingGatewayError, y as resolveEndpoints } from "./project-store-CA7tRioX.mjs";
2
+ import { C as MissingAccessTokenError, _ as readEnv, d as assertEndpointsValid, u as ENV_KEYS, w as MissingGatewayError, y as resolveEndpoints } from "./project-store-Dl35JzZr.mjs";
3
3
  import { a as debugLogInfo, i as debugLogError, l as ensureAuth } from "./cli.mjs";
4
4
  import { randomUUID } from "node:crypto";
5
5
  //#region src/core/config.ts
@@ -135,13 +135,13 @@ function buildMcpHttpHeaders(token) {
135
135
  return headers;
136
136
  }
137
137
  async function mcpCall(toolName, opts) {
138
- const { loadActiveProject } = await import("./project-store-8Cl4Sv5d.mjs");
138
+ const { loadActiveProject } = await import("./project-store-DDVZ7T4t.mjs");
139
139
  const active = await loadActiveProject();
140
140
  const wireArguments = augmentMcpWireArguments(toolName, opts.arguments ?? {}, active?.projectId);
141
141
  if (toolName !== "project-list") {
142
142
  const rawProjectId = wireArguments.project_id;
143
143
  if (rawProjectId != null && String(rawProjectId).trim()) {
144
- const { assertProjectAllowed } = await import("./project-access-BeRtEUkG.mjs");
144
+ const { assertProjectAllowed } = await import("./project-access-Bf87OLJP.mjs");
145
145
  await assertProjectAllowed(String(rawProjectId).trim());
146
146
  }
147
147
  }
@@ -1,5 +1,5 @@
1
1
  import { n as writeError, r as writeResult } from "./cli.mjs";
2
- import { i as unwrapMcpToolEnvelope, n as mcpCall } from "./mcp-client-BadcKqv9.mjs";
2
+ import { i as unwrapMcpToolEnvelope, n as mcpCall } from "./mcp-client-BTZH22b5.mjs";
3
3
  //#region src/core/mcp-result.ts
4
4
  /**
5
5
  * Normalize MCP tool responses for agent-friendly stdout (TOON tabular arrays).
@@ -1,7 +1,7 @@
1
- import { c as requireActiveProject } from "./project-store-CA7tRioX.mjs";
1
+ import { c as requireActiveProject } from "./project-store-Dl35JzZr.mjs";
2
2
  import { n as writeError } from "./cli.mjs";
3
- import { t as mcpCallPage } from "./mcp-result-CBq8FqvE.mjs";
4
- import { n as visitBatchQueryCliArgs, t as buildVisitBatchQueryArgs } from "./visit-query-args-CZogADi5.mjs";
3
+ import { t as mcpCallPage } from "./mcp-result-De_0PPlD.mjs";
4
+ import { n as visitBatchQueryCliArgs, t as buildVisitBatchQueryArgs } from "./visit-query-args-BD3Dw-9F.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-B5DASwyK.mjs").then((m) => m.default),
10
- use: () => import("./use-xg62A9ri.mjs").then((m) => m.default),
11
- current: () => import("./current-BeoE1SK9.mjs").then((m) => m.default)
9
+ list: () => import("./list-BmVWcUI7.mjs").then((m) => m.default),
10
+ use: () => import("./use-D_HBqdev.mjs").then((m) => m.default),
11
+ current: () => import("./current-D4fh-53q.mjs").then((m) => m.default)
12
12
  }
13
13
  });
14
14
  //#endregion
@@ -0,0 +1,2 @@
1
+ import { r as assertProjectAllowed } from "./project-access-pTN7ry15.mjs";
2
+ export { assertProjectAllowed };
@@ -1,4 +1,4 @@
1
- import { S as ConfigInvalidError, _ as readEnv, o as loadActiveProject, s as peekCachedActiveProject, u as ENV_KEYS, v as requireUserId, y as resolveEndpoints } from "./project-store-CA7tRioX.mjs";
1
+ import { S as ConfigInvalidError, _ as readEnv, o as loadActiveProject, s as peekCachedActiveProject, u as ENV_KEYS, v as requireUserId, y as resolveEndpoints } from "./project-store-Dl35JzZr.mjs";
2
2
  var InsufficientCreditError = class extends Error {
3
3
  code = "INSUFFICIENT_CREDIT";
4
4
  hint = "(该项目下)用户积分余额不足,无法继续查询;请告知用户联系管理员充值";
@@ -40,7 +40,7 @@ async function assertCreditRemaining(projectId) {
40
40
  }
41
41
  async function fetchCreditRemaining(userId, projectId) {
42
42
  const { callbackBaseUrl } = resolveEndpoints();
43
- const url = new URL(`/api/wang-claw/out/v2/credit/users/${encodeURIComponent(userId)}/remaining`, callbackBaseUrl);
43
+ const url = new URL(`/api/qca-wangclaw/out/v2/credit/users/${encodeURIComponent(userId)}/remaining`, callbackBaseUrl);
44
44
  url.searchParams.set("projectId", projectId);
45
45
  let resp;
46
46
  try {
@@ -227,7 +227,7 @@ function normalizeProjectListPage(page) {
227
227
  };
228
228
  }
229
229
  async function fetchProjectListPage(page, size) {
230
- const { mcpCall, unwrapMcpToolEnvelope } = await import("./mcp-client-BadcKqv9.mjs").then((n) => n.r);
230
+ const { mcpCall, unwrapMcpToolEnvelope } = await import("./mcp-client-BTZH22b5.mjs").then((n) => n.r);
231
231
  const result = await mcpCall("project-list", { arguments: {
232
232
  page,
233
233
  size
@@ -0,0 +1,2 @@
1
+ import { o as loadActiveProject } from "./project-store-Dl35JzZr.mjs";
2
+ export { loadActiveProject };
@@ -221,7 +221,7 @@ async function setCurrentProject(input) {
221
221
  }
222
222
  async function fetchCurrentProject(tenantId, wangId) {
223
223
  const { callbackBaseUrl } = resolveEndpoints();
224
- const url = new URL("/api/wang-claw/out/v2/current-project", callbackBaseUrl);
224
+ const url = new URL("/api/qca-wangclaw/out/v2/current-project", callbackBaseUrl);
225
225
  url.searchParams.set("tenantId", tenantId);
226
226
  url.searchParams.set("wangId", wangId);
227
227
  let resp;
@@ -243,7 +243,7 @@ async function fetchCurrentProject(tenantId, wangId) {
243
243
  }
244
244
  async function putCurrentProject(tenantId, wangId, projectId, source) {
245
245
  const { callbackBaseUrl } = resolveEndpoints();
246
- const url = new URL("/api/wang-claw/out/v2/current-project", callbackBaseUrl);
246
+ const url = new URL("/api/qca-wangclaw/out/v2/current-project", callbackBaseUrl);
247
247
  let resp;
248
248
  try {
249
249
  resp = await fetch(url, {
@@ -1,8 +1,8 @@
1
- import { c as requireActiveProject } from "./project-store-CA7tRioX.mjs";
1
+ import { c as requireActiveProject } from "./project-store-Dl35JzZr.mjs";
2
2
  import { n as writeError, t as formatCliArg } from "./cli.mjs";
3
- import { n as mcpCall } from "./mcp-client-BadcKqv9.mjs";
4
- import { n as resolveProjectId, t as projectIdCliArg } from "./mcp-args-Cop-Gaha.mjs";
5
- import { n as writeMcpDataResult } from "./mcp-result-CBq8FqvE.mjs";
3
+ import { n as mcpCall } from "./mcp-client-BTZH22b5.mjs";
4
+ import { n as resolveProjectId, t as projectIdCliArg } from "./mcp-args-DK3IGaO1.mjs";
5
+ import { n as writeMcpDataResult } from "./mcp-result-De_0PPlD.mjs";
6
6
  import { t as csvToArray } from "./util-Bko-nm_R.mjs";
7
7
  import { defineCommand } from "citty";
8
8
  //#region src/commands/qa.ts
@@ -5,7 +5,7 @@ var resistance_default = defineCommand({
5
5
  name: "resistance",
6
6
  description: "客户抗性点标签分页查询"
7
7
  },
8
- subCommands: { list: () => import("./list-CuINauZ_.mjs").then((m) => m.default) }
8
+ subCommands: { list: () => import("./list-DVy4Czfy.mjs").then((m) => m.default) }
9
9
  });
10
10
  //#endregion
11
11
  export { resistance_default as default };
@@ -1,8 +1,8 @@
1
- import { c as requireActiveProject } from "./project-store-CA7tRioX.mjs";
1
+ import { c as requireActiveProject } from "./project-store-Dl35JzZr.mjs";
2
2
  import { n as writeError, t as formatCliArg } from "./cli.mjs";
3
- import { n as mcpCall } from "./mcp-client-BadcKqv9.mjs";
4
- import { i as tenantIdCliArg, n as resolveProjectId, r as resolveTenantId, t as projectIdCliArg } from "./mcp-args-Cop-Gaha.mjs";
5
- import { n as writeMcpDataResult } from "./mcp-result-CBq8FqvE.mjs";
3
+ import { n as mcpCall } from "./mcp-client-BTZH22b5.mjs";
4
+ import { i as tenantIdCliArg, n as resolveProjectId, r as resolveTenantId, t as projectIdCliArg } from "./mcp-args-DK3IGaO1.mjs";
5
+ import { n as writeMcpDataResult } from "./mcp-result-De_0PPlD.mjs";
6
6
  import { t as csvToArray } from "./util-Bko-nm_R.mjs";
7
7
  import { defineCommand } from "citty";
8
8
  //#region src/commands/kb/search.ts
@@ -1,7 +1,7 @@
1
- import { c as requireActiveProject } from "./project-store-CA7tRioX.mjs";
1
+ import { c as requireActiveProject } from "./project-store-Dl35JzZr.mjs";
2
2
  import { n as writeError, t as formatCliArg } from "./cli.mjs";
3
- import { n as resolveProjectId, t as projectIdCliArg } from "./mcp-args-Cop-Gaha.mjs";
4
- import { t as mcpCallPage } from "./mcp-result-CBq8FqvE.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
5
  import { i as toLocalDateTime } from "./util-Bko-nm_R.mjs";
6
6
  import { defineCommand } from "citty";
7
7
  //#region src/commands/visit/summary.ts
@@ -1,8 +1,8 @@
1
- import { c as requireActiveProject } from "./project-store-CA7tRioX.mjs";
1
+ import { c as requireActiveProject } from "./project-store-Dl35JzZr.mjs";
2
2
  import { n as writeError, t as formatCliArg } from "./cli.mjs";
3
- import { n as mcpCall } from "./mcp-client-BadcKqv9.mjs";
4
- import { n as resolveProjectId, t as projectIdCliArg } from "./mcp-args-Cop-Gaha.mjs";
5
- import { n as writeMcpDataResult } from "./mcp-result-CBq8FqvE.mjs";
3
+ import { n as mcpCall } from "./mcp-client-BTZH22b5.mjs";
4
+ import { n as resolveProjectId, t as projectIdCliArg } from "./mcp-args-DK3IGaO1.mjs";
5
+ import { n as writeMcpDataResult } from "./mcp-result-De_0PPlD.mjs";
6
6
  import { defineCommand } from "citty";
7
7
  //#region src/commands/audio/text.ts
8
8
  /**
@@ -1,5 +1,5 @@
1
- import { i as invalidateActiveProjectCache, l as switchActiveProjectViaCallback, r as assertProjectSwitchAllowed } from "./project-store-CA7tRioX.mjs";
2
- import { a as resolveProjectForUse, i as invalidateProjectAccessCache } from "./project-access-fgfgvJTL.mjs";
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";
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-DIiYjEZk.mjs").then((m) => m.default),
10
- summary: () => import("./summary-C3ll-30H.mjs").then((m) => m.default)
9
+ list: () => import("./list-BcYy7Ejx.mjs").then((m) => m.default),
10
+ summary: () => import("./summary-DgpSsQh9.mjs").then((m) => m.default)
11
11
  }
12
12
  });
13
13
  //#endregion
@@ -1,7 +1,7 @@
1
- import { c as requireActiveProject } from "./project-store-CA7tRioX.mjs";
1
+ import { c as requireActiveProject } from "./project-store-Dl35JzZr.mjs";
2
2
  import { n as writeError } from "./cli.mjs";
3
- import { t as mcpCallPage } from "./mcp-result-CBq8FqvE.mjs";
4
- import { n as visitBatchQueryCliArgs, t as buildVisitBatchQueryArgs } from "./visit-query-args-CZogADi5.mjs";
3
+ import { t as mcpCallPage } from "./mcp-result-De_0PPlD.mjs";
4
+ import { n as visitBatchQueryCliArgs, t as buildVisitBatchQueryArgs } from "./visit-query-args-BD3Dw-9F.mjs";
5
5
  import { defineCommand } from "citty";
6
6
  //#region src/commands/visit-evaluate/index.ts
7
7
  /**
@@ -1,5 +1,5 @@
1
1
  import { t as formatCliArg } from "./cli.mjs";
2
- import { n as resolveProjectId, t as projectIdCliArg } from "./mcp-args-Cop-Gaha.mjs";
2
+ import { n as resolveProjectId, t as projectIdCliArg } from "./mcp-args-DK3IGaO1.mjs";
3
3
  import { i as toLocalDateTime, n as mergeIds, t as csvToArray } from "./util-Bko-nm_R.mjs";
4
4
  //#region src/commands/common/visit-query-args.ts
5
5
  const visitBatchQueryCliArgs = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "beautx-cli",
3
- "version": "1.0.6-beta.1",
3
+ "version": "1.0.6-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-fgfgvJTL.mjs";
2
- export { assertProjectAllowed };
@@ -1,2 +0,0 @@
1
- import { o as loadActiveProject } from "./project-store-CA7tRioX.mjs";
2
- export { loadActiveProject };