beautx-cli 1.0.7-beta.1 → 1.0.7

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 (55) hide show
  1. package/README.md +0 -30
  2. package/dist/{analyze-CcsdZtz9.mjs → analyze-Cq-Hmoqp.mjs} +5 -5
  3. package/dist/{api-B5nQypBz.mjs → api-jIGM86TK.mjs} +1 -1
  4. package/dist/{audio-DVH0I5Zh.mjs → audio-p2QCYFdq.mjs} +3 -3
  5. package/dist/{beauty-plan-Cd88u5h0.mjs → beauty-plan-CgSmAhn8.mjs} +3 -3
  6. package/dist/cli.mjs +18 -33
  7. package/dist/{config-BOuRZAk1.mjs → config-DAVi_CuD.mjs} +3 -3
  8. package/dist/{consultant-C1uiuItn.mjs → consultant-CPecFRiS.mjs} +1 -1
  9. package/dist/{content-CpFANyPe.mjs → content-Bq_jEIl6.mjs} +2 -2
  10. package/dist/{current--kwV_-9S.mjs → current-D4fh-53q.mjs} +1 -1
  11. package/dist/{customer-Chl1bGg9.mjs → customer-DWG47eAT.mjs} +1 -1
  12. package/dist/{deal-analysis-Bf6TwBmH.mjs → deal-analysis-Cn2wCaoU.mjs} +3 -3
  13. package/dist/{doc-BtwmuoPs.mjs → doc-DwxREqki.mjs} +3 -3
  14. package/dist/{fields-MsjROq8O.mjs → fields-BGogOrgD.mjs} +3 -3
  15. package/dist/{focus-CM6mZYRj.mjs → focus-BE8BT835.mjs} +1 -1
  16. package/dist/{get-Z_hTyubv.mjs → get-BKCE22jj.mjs} +2 -2
  17. package/dist/{kb-CjQXEOY5.mjs → kb-BsiBl_ul.mjs} +2 -2
  18. package/dist/{list-D809kN14.mjs → list-BUYSLNqZ.mjs} +1 -3
  19. package/dist/{list-CGJa9z3d.mjs → list-BYLk3sNv.mjs} +4 -4
  20. package/dist/{list-CJiei-hu.mjs → list-BcYy7Ejx.mjs} +4 -4
  21. package/dist/{list-B84PLHzp.mjs → list-BmVWcUI7.mjs} +1 -1
  22. package/dist/{list-CDi3ySyx.mjs → list-BzmkW4Iq.mjs} +4 -4
  23. package/dist/{list-BSR3H7_0.mjs → list-Cnz5CuQB.mjs} +4 -4
  24. package/dist/{list-BT0_KdNZ.mjs → list-Cs1kF7EB.mjs} +4 -4
  25. package/dist/{list-C0wn72hg.mjs → list-DJscF_8M.mjs} +4 -4
  26. package/dist/{list-C6imhAfi.mjs → list-DVy4Czfy.mjs} +4 -4
  27. package/dist/{mcp-args-B8InvGQc.mjs → mcp-args-DK3IGaO1.mjs} +1 -1
  28. package/dist/{mcp-client-aS31KU6J.mjs → mcp-client-BTZH22b5.mjs} +3 -3
  29. package/dist/{mcp-result-Bl71pkOt.mjs → mcp-result-De_0PPlD.mjs} +1 -1
  30. package/dist/{portrait-tags-BYded-6k.mjs → portrait-tags-I57TgDAx.mjs} +3 -3
  31. package/dist/{project-DSO_7ofq.mjs → project-K-HkeM57.mjs} +3 -3
  32. package/dist/project-access-Bf87OLJP.mjs +2 -0
  33. package/dist/{project-access-DlypxnQF.mjs → project-access-pTN7ry15.mjs} +2 -3
  34. package/dist/project-store-DDVZ7T4t.mjs +2 -0
  35. package/dist/{project-store-D0UuLan2.mjs → project-store-Dl35JzZr.mjs} +207 -2
  36. package/dist/{qa-CqUiXIZn.mjs → qa-gAtF6cSk.mjs} +5 -5
  37. package/dist/{resistance-DiDDixVq.mjs → resistance-DGU99Bwi.mjs} +1 -1
  38. package/dist/{search-sjRwA-la.mjs → search-C16CzRep.mjs} +5 -5
  39. package/dist/{summary-C7lrTImW.mjs → summary-DgpSsQh9.mjs} +4 -4
  40. package/dist/{text-BZo7B8mz.mjs → text-BIIl7PmC.mjs} +4 -4
  41. package/dist/{use-DQ_M0FOH.mjs → use-D_HBqdev.mjs} +2 -2
  42. package/dist/{visit-CxAYV6z6.mjs → visit-DnUPj-8i.mjs} +2 -2
  43. package/dist/{visit-evaluate-BTKqc8fd.mjs → visit-evaluate-DM7oCk6R.mjs} +3 -3
  44. package/dist/{visit-query-args-BLwj26s6.mjs → visit-query-args-BD3Dw-9F.mjs} +2 -2
  45. package/package.json +1 -1
  46. package/dist/env-vars-Dinhf5lt.mjs +0 -212
  47. package/dist/install-DP9xV1rY.mjs +0 -50
  48. package/dist/list-BNZV4wei.mjs +0 -77
  49. package/dist/project-access-Cq8d1YTo.mjs +0 -2
  50. package/dist/project-store-CYuTFefu.mjs +0 -2
  51. package/dist/skill-DBpgezPV.mjs +0 -15
  52. package/dist/skill-client-D4_QGDkj.mjs +0 -171
  53. package/dist/upload-D4wSmRqs.mjs +0 -76
  54. /package/dist/{doctor-DuGxP40X.mjs → doctor-RwDPp4y3.mjs} +0 -0
  55. /package/dist/{util-BtgWHKWv.mjs → util-Bko-nm_R.mjs} +0 -0
package/README.md CHANGED
@@ -57,36 +57,6 @@ beautx-cli project current
57
57
  beautx-cli project use --project-id <项目ID>
58
58
  ```
59
59
 
60
- ### Skill 中心
61
-
62
- Skill 中心使用 Skill BFF REST 接口,不经过 MCP;请求由 CLI 自动携带沙箱双 Secret
63
- 鉴权。`skill list` 和 `skill install` 默认使用当前激活项目,上传个人 Skill
64
- 不要求当前项目,上传项目 Skill 时必须显式传入项目 ID。
65
-
66
- ```bash
67
- # 查看当前项目可见的 Skill(按 personal / tenant / project 分组)
68
- beautx-cli skill list
69
-
70
- # 按归属类型筛选
71
- beautx-cli skill list --type personal
72
- beautx-cli skill list --type tenant --project-id <项目ID>
73
- beautx-cli skill list --type project --project-id <项目ID>
74
-
75
- # 安装 Skill 包;默认写入 /home/wuying/jvscrew/.wangai-cli/skills/<skill-id>
76
- beautx-cli skill install <skill-id>
77
- beautx-cli skill install <skill-id> --dir <安装目录>
78
-
79
- # 上传新 Skill;zip 内需要包含 SKILL.md
80
- beautx-cli skill upload <skill.zip>
81
- beautx-cli skill upload <skill.zip> --type tenant --project-id <项目ID>
82
- beautx-cli skill upload <skill.zip> --type project --project-id <项目ID>
83
-
84
- # 替换已有 Skill,并设置 tags
85
- beautx-cli skill upload <skill.zip> \
86
- --skill-id <skill-id> \
87
- --tags '["医美","分析"]'
88
- ```
89
-
90
60
  ### 顾问管理
91
61
 
92
62
  ```bash
@@ -1,9 +1,9 @@
1
- import { c as requireActiveProject } from "./project-store-D0UuLan2.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-aS31KU6J.mjs";
4
- import { n as resolveProjectId, t as projectIdCliArg } from "./mcp-args-B8InvGQc.mjs";
5
- import { n as writeMcpDataResult } from "./mcp-result-Bl71pkOt.mjs";
6
- import { t as csvToArray } from "./util-BtgWHKWv.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
+ import { t as csvToArray } from "./util-Bko-nm_R.mjs";
7
7
  import { defineCommand } from "citty";
8
8
  //#region src/commands/audio/analyze.ts
9
9
  /**
@@ -1,5 +1,5 @@
1
1
  import { n as writeError, r as writeResult, t as formatCliArg } from "./cli.mjs";
2
- import { n as mcpCall, t as MCP_SERVICE_CODE } from "./mcp-client-aS31KU6J.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-BSR3H7_0.mjs").then((m) => m.default),
10
- text: () => import("./text-BZo7B8mz.mjs").then((m) => m.default),
11
- analyze: () => import("./analyze-CcsdZtz9.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-D0UuLan2.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-Bl71pkOt.mjs";
4
- import { n as visitBatchQueryCliArgs, t as buildVisitBatchQueryArgs } from "./visit-query-args-BLwj26s6.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,8 +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 { a as isTokenExpired, c as readEnv, d as syncProcessEnv, f as AccessTokenExpiredError, h as MissingAccessTokenError, l as requireUserId, o as needsRefresh, p as ConfigInvalidError, s as readCredentials, t as ENV_KEYS, u as resolveEndpoints } from "./env-vars-Dinhf5lt.mjs";
4
- import { i as invalidateProjectAccessCache } from "./project-access-DlypxnQF.mjs";
5
- import { o as loadActiveProject } from "./project-store-D0UuLan2.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";
6
5
  import { appendFileSync, mkdirSync, readFileSync } from "node:fs";
7
6
  import { dirname, join } from "node:path";
8
7
  import { fileURLToPath } from "node:url";
@@ -181,20 +180,7 @@ function shouldRunPreflightGate(rawArgs) {
181
180
  }
182
181
  /** `project *` may establish current project — skip that one check only. */
183
182
  function shouldSkipCurrentProjectCheck(rawArgs) {
184
- const top = firstPositional(rawArgs);
185
- if (top === "project") return true;
186
- if (top === "skill") return positionalAfter(rawArgs, top) === "upload";
187
- return false;
188
- }
189
- function positionalAfter(rawArgs, value) {
190
- const index = rawArgs.indexOf(value);
191
- if (index < 0) return null;
192
- for (let i = index + 1; i < rawArgs.length; i += 1) {
193
- const arg = rawArgs[i];
194
- if (!arg || arg.startsWith("-")) continue;
195
- return arg;
196
- }
197
- return null;
183
+ return firstPositional(rawArgs) === "project";
198
184
  }
199
185
  function firstPositional(rawArgs) {
200
186
  for (const arg of rawArgs) {
@@ -7649,22 +7635,21 @@ runMain(defineCommand({
7649
7635
  }
7650
7636
  },
7651
7637
  subCommands: {
7652
- config: () => import("./config-BOuRZAk1.mjs").then((m) => m.default),
7653
- project: () => import("./project-DSO_7ofq.mjs").then((m) => m.default),
7654
- skill: () => import("./skill-DBpgezPV.mjs").then((m) => m.default),
7655
- consultant: () => import("./consultant-C1uiuItn.mjs").then((m) => m.default),
7656
- audio: () => import("./audio-DVH0I5Zh.mjs").then((m) => m.default),
7657
- customer: () => import("./customer-Chl1bGg9.mjs").then((m) => m.default),
7658
- visit: () => import("./visit-CxAYV6z6.mjs").then((m) => m.default),
7659
- "visit-evaluate": () => import("./visit-evaluate-BTKqc8fd.mjs").then((m) => m.default),
7660
- "beauty-plan": () => import("./beauty-plan-Cd88u5h0.mjs").then((m) => m.default),
7661
- "deal-analysis": () => import("./deal-analysis-Bf6TwBmH.mjs").then((m) => m.default),
7662
- "portrait-tags": () => import("./portrait-tags-BYded-6k.mjs").then((m) => m.default),
7663
- focus: () => import("./focus-CM6mZYRj.mjs").then((m) => m.default),
7664
- resistance: () => import("./resistance-DiDDixVq.mjs").then((m) => m.default),
7665
- qa: () => import("./qa-CqUiXIZn.mjs").then((m) => m.default),
7666
- kb: () => import("./kb-CjQXEOY5.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)
7667
7652
  }
7668
7653
  }));
7669
7654
  //#endregion
7670
- export { debugLogInfo as a, runPreflight as c, buildSandboxProof as d, requireSandboxSecrets as f, debugLogError as i, ensureAuth as l, writeError as n, debugLogPath as o, requireTenantId as p, writeResult as r, isVerboseDebugEnabled as s, formatCliArg as t, WANGCLAW_AUTH_HEADER as u };
7655
+ export { debugLogInfo as a, runPreflight as c, debugLogError as i, ensureAuth as l, writeError as n, debugLogPath as o, writeResult as r, isVerboseDebugEnabled as s, formatCliArg as t };
@@ -6,9 +6,9 @@ var config_default = defineCommand({
6
6
  description: "沙箱配置:list 只读诊断;doctor 自检;fields 客户字段字典"
7
7
  },
8
8
  subCommands: {
9
- list: () => import("./list-D809kN14.mjs").then((m) => m.default),
10
- doctor: () => import("./doctor-DuGxP40X.mjs").then((m) => m.default),
11
- fields: () => import("./fields-MsjROq8O.mjs").then((m) => m.default)
9
+ list: () => import("./list-BUYSLNqZ.mjs").then((m) => m.default),
10
+ doctor: () => import("./doctor-RwDPp4y3.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-BT0_KdNZ.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-aS31KU6J.mjs";
3
- import { n as writeMcpDataResult } from "./mcp-result-Bl71pkOt.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-D0UuLan2.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-C0wn72hg.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-D0UuLan2.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-Bl71pkOt.mjs";
4
- import { n as visitBatchQueryCliArgs, t as buildVisitBatchQueryArgs } from "./visit-query-args-BLwj26s6.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-CDi3ySyx.mjs").then((m) => m.default),
10
- get: () => import("./get-Z_hTyubv.mjs").then((m) => m.default),
11
- content: () => import("./content-CpFANyPe.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-D0UuLan2.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-B8InvGQc.mjs";
4
- import { t as mcpCallPage } from "./mcp-result-Bl71pkOt.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-CGJa9z3d.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-aS31KU6J.mjs";
3
- import { n as writeMcpDataResult } from "./mcp-result-Bl71pkOt.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-sjRwA-la.mjs").then((m) => m.default),
10
- doc: () => import("./doc-BtwmuoPs.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,5 +1,4 @@
1
- import { c as readEnv, i as isEnvInjectedByHost, r as credentialStatus, s as readCredentials, t as ENV_KEYS, u as resolveEndpoints } from "./env-vars-Dinhf5lt.mjs";
2
- import { a as isProjectSwitchAllowed, o as loadActiveProject } from "./project-store-D0UuLan2.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";
3
2
  import { n as writeError, o as debugLogPath, r as writeResult, s as isVerboseDebugEnabled, t as formatCliArg } from "./cli.mjs";
4
3
  import { defineCommand } from "citty";
5
4
  //#region src/core/mask-env.ts
@@ -40,7 +39,6 @@ var list_default = defineCommand({
40
39
  gatewayUrl: endpoints.gatewayUrl,
41
40
  authUrl: endpoints.authUrl,
42
41
  callbackBaseUrl: endpoints.callbackBaseUrl,
43
- skillBffUrl: endpoints.skillBffUrl,
44
42
  urlProfileSource: "src/core/endpoints.ts",
45
43
  configSource: "environment",
46
44
  credentialsManagedBy: "host",
@@ -1,8 +1,8 @@
1
- import { c as requireActiveProject } from "./project-store-D0UuLan2.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-B8InvGQc.mjs";
4
- import { t as mcpCallPage } from "./mcp-result-Bl71pkOt.mjs";
5
- import { i as toLocalDateTime, t as csvToArray } from "./util-BtgWHKWv.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, t as csvToArray } from "./util-Bko-nm_R.mjs";
6
6
  import { defineCommand } from "citty";
7
7
  //#region src/commands/focus/list.ts
8
8
  /**
@@ -1,8 +1,8 @@
1
- import { c as requireActiveProject } from "./project-store-D0UuLan2.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-B8InvGQc.mjs";
4
- import { t as mcpCallPage } from "./mcp-result-Bl71pkOt.mjs";
5
- import { i as toLocalDateTime } from "./util-BtgWHKWv.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";
6
6
  import { defineCommand } from "citty";
7
7
  //#region src/commands/visit/list.ts
8
8
  /**
@@ -1,5 +1,5 @@
1
1
  import { n as writeError, t as formatCliArg } from "./cli.mjs";
2
- import { t as mcpCallPage } from "./mcp-result-Bl71pkOt.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-D0UuLan2.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-aS31KU6J.mjs";
4
- import { i as tenantIdCliArg, n as resolveProjectId, r as resolveTenantId, t as projectIdCliArg } from "./mcp-args-B8InvGQc.mjs";
5
- import { n as writeMcpDataResult } from "./mcp-result-Bl71pkOt.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,8 +1,8 @@
1
- import { c as requireActiveProject } from "./project-store-D0UuLan2.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-B8InvGQc.mjs";
4
- import { t as mcpCallPage } from "./mcp-result-Bl71pkOt.mjs";
5
- import { i as toLocalDateTime, r as mergeUserIds, t as csvToArray } from "./util-BtgWHKWv.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, 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
8
8
  /**
@@ -1,8 +1,8 @@
1
- import { c as requireActiveProject } from "./project-store-D0UuLan2.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-aS31KU6J.mjs";
4
- import { n as resolveProjectId, t as projectIdCliArg } from "./mcp-args-B8InvGQc.mjs";
5
- import { n as writeMcpDataResult } from "./mcp-result-Bl71pkOt.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,8 +1,8 @@
1
- import { c as requireActiveProject } from "./project-store-D0UuLan2.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-B8InvGQc.mjs";
4
- import { t as mcpCallPage } from "./mcp-result-Bl71pkOt.mjs";
5
- import { i as toLocalDateTime } from "./util-BtgWHKWv.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";
6
6
  import { defineCommand } from "citty";
7
7
  //#region src/commands/customer/list.ts
8
8
  /**
@@ -1,8 +1,8 @@
1
- import { c as requireActiveProject } from "./project-store-D0UuLan2.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-B8InvGQc.mjs";
4
- import { t as mcpCallPage } from "./mcp-result-Bl71pkOt.mjs";
5
- import { i as toLocalDateTime, t as csvToArray } from "./util-BtgWHKWv.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, t as csvToArray } from "./util-Bko-nm_R.mjs";
6
6
  import { defineCommand } from "citty";
7
7
  //#region src/commands/resistance/list.ts
8
8
  /**
@@ -1,4 +1,4 @@
1
- import { c as readEnv, t as ENV_KEYS } from "./env-vars-Dinhf5lt.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 readEnv, g as MissingGatewayError, h as MissingAccessTokenError, n as assertEndpointsValid, t as ENV_KEYS, u as resolveEndpoints } from "./env-vars-Dinhf5lt.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-CYuTFefu.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-Cq8d1YTo.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-aS31KU6J.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-D0UuLan2.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-Bl71pkOt.mjs";
4
- import { n as visitBatchQueryCliArgs, t as buildVisitBatchQueryArgs } from "./visit-query-args-BLwj26s6.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-B84PLHzp.mjs").then((m) => m.default),
10
- use: () => import("./use-DQ_M0FOH.mjs").then((m) => m.default),
11
- current: () => import("./current--kwV_-9S.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,5 +1,4 @@
1
- import { c as readEnv, l as requireUserId, p as ConfigInvalidError, t as ENV_KEYS, u as resolveEndpoints } from "./env-vars-Dinhf5lt.mjs";
2
- import { o as loadActiveProject, s as peekCachedActiveProject } from "./project-store-D0UuLan2.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";
3
2
  var InsufficientCreditError = class extends Error {
4
3
  code = "INSUFFICIENT_CREDIT";
5
4
  hint = "(该项目下)用户积分余额不足,无法继续查询;请告知用户联系管理员充值";
@@ -228,7 +227,7 @@ function normalizeProjectListPage(page) {
228
227
  };
229
228
  }
230
229
  async function fetchProjectListPage(page, size) {
231
- const { mcpCall, unwrapMcpToolEnvelope } = await import("./mcp-client-aS31KU6J.mjs").then((n) => n.r);
230
+ const { mcpCall, unwrapMcpToolEnvelope } = await import("./mcp-client-BTZH22b5.mjs").then((n) => n.r);
232
231
  const result = await mcpCall("project-list", { arguments: {
233
232
  page,
234
233
  size
@@ -0,0 +1,2 @@
1
+ import { o as loadActiveProject } from "./project-store-Dl35JzZr.mjs";
2
+ export { loadActiveProject };