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.
- package/README.md +0 -30
- package/dist/{analyze-CcsdZtz9.mjs → analyze-Cq-Hmoqp.mjs} +5 -5
- package/dist/{api-B5nQypBz.mjs → api-jIGM86TK.mjs} +1 -1
- package/dist/{audio-DVH0I5Zh.mjs → audio-p2QCYFdq.mjs} +3 -3
- package/dist/{beauty-plan-Cd88u5h0.mjs → beauty-plan-CgSmAhn8.mjs} +3 -3
- package/dist/cli.mjs +18 -33
- package/dist/{config-BOuRZAk1.mjs → config-DAVi_CuD.mjs} +3 -3
- package/dist/{consultant-C1uiuItn.mjs → consultant-CPecFRiS.mjs} +1 -1
- package/dist/{content-CpFANyPe.mjs → content-Bq_jEIl6.mjs} +2 -2
- package/dist/{current--kwV_-9S.mjs → current-D4fh-53q.mjs} +1 -1
- package/dist/{customer-Chl1bGg9.mjs → customer-DWG47eAT.mjs} +1 -1
- package/dist/{deal-analysis-Bf6TwBmH.mjs → deal-analysis-Cn2wCaoU.mjs} +3 -3
- package/dist/{doc-BtwmuoPs.mjs → doc-DwxREqki.mjs} +3 -3
- package/dist/{fields-MsjROq8O.mjs → fields-BGogOrgD.mjs} +3 -3
- package/dist/{focus-CM6mZYRj.mjs → focus-BE8BT835.mjs} +1 -1
- package/dist/{get-Z_hTyubv.mjs → get-BKCE22jj.mjs} +2 -2
- package/dist/{kb-CjQXEOY5.mjs → kb-BsiBl_ul.mjs} +2 -2
- package/dist/{list-D809kN14.mjs → list-BUYSLNqZ.mjs} +1 -3
- package/dist/{list-CGJa9z3d.mjs → list-BYLk3sNv.mjs} +4 -4
- package/dist/{list-CJiei-hu.mjs → list-BcYy7Ejx.mjs} +4 -4
- package/dist/{list-B84PLHzp.mjs → list-BmVWcUI7.mjs} +1 -1
- package/dist/{list-CDi3ySyx.mjs → list-BzmkW4Iq.mjs} +4 -4
- package/dist/{list-BSR3H7_0.mjs → list-Cnz5CuQB.mjs} +4 -4
- package/dist/{list-BT0_KdNZ.mjs → list-Cs1kF7EB.mjs} +4 -4
- package/dist/{list-C0wn72hg.mjs → list-DJscF_8M.mjs} +4 -4
- package/dist/{list-C6imhAfi.mjs → list-DVy4Czfy.mjs} +4 -4
- package/dist/{mcp-args-B8InvGQc.mjs → mcp-args-DK3IGaO1.mjs} +1 -1
- package/dist/{mcp-client-aS31KU6J.mjs → mcp-client-BTZH22b5.mjs} +3 -3
- package/dist/{mcp-result-Bl71pkOt.mjs → mcp-result-De_0PPlD.mjs} +1 -1
- package/dist/{portrait-tags-BYded-6k.mjs → portrait-tags-I57TgDAx.mjs} +3 -3
- package/dist/{project-DSO_7ofq.mjs → project-K-HkeM57.mjs} +3 -3
- package/dist/project-access-Bf87OLJP.mjs +2 -0
- package/dist/{project-access-DlypxnQF.mjs → project-access-pTN7ry15.mjs} +2 -3
- package/dist/project-store-DDVZ7T4t.mjs +2 -0
- package/dist/{project-store-D0UuLan2.mjs → project-store-Dl35JzZr.mjs} +207 -2
- package/dist/{qa-CqUiXIZn.mjs → qa-gAtF6cSk.mjs} +5 -5
- package/dist/{resistance-DiDDixVq.mjs → resistance-DGU99Bwi.mjs} +1 -1
- package/dist/{search-sjRwA-la.mjs → search-C16CzRep.mjs} +5 -5
- package/dist/{summary-C7lrTImW.mjs → summary-DgpSsQh9.mjs} +4 -4
- package/dist/{text-BZo7B8mz.mjs → text-BIIl7PmC.mjs} +4 -4
- package/dist/{use-DQ_M0FOH.mjs → use-D_HBqdev.mjs} +2 -2
- package/dist/{visit-CxAYV6z6.mjs → visit-DnUPj-8i.mjs} +2 -2
- package/dist/{visit-evaluate-BTKqc8fd.mjs → visit-evaluate-DM7oCk6R.mjs} +3 -3
- package/dist/{visit-query-args-BLwj26s6.mjs → visit-query-args-BD3Dw-9F.mjs} +2 -2
- package/package.json +1 -1
- package/dist/env-vars-Dinhf5lt.mjs +0 -212
- package/dist/install-DP9xV1rY.mjs +0 -50
- package/dist/list-BNZV4wei.mjs +0 -77
- package/dist/project-access-Cq8d1YTo.mjs +0 -2
- package/dist/project-store-CYuTFefu.mjs +0 -2
- package/dist/skill-DBpgezPV.mjs +0 -15
- package/dist/skill-client-D4_QGDkj.mjs +0 -171
- package/dist/upload-D4wSmRqs.mjs +0 -76
- /package/dist/{doctor-DuGxP40X.mjs → doctor-RwDPp4y3.mjs} +0 -0
- /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-
|
|
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-
|
|
4
|
-
import { n as resolveProjectId, t as projectIdCliArg } from "./mcp-args-
|
|
5
|
-
import { n as writeMcpDataResult } from "./mcp-result-
|
|
6
|
-
import { t as csvToArray } from "./util-
|
|
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-
|
|
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-
|
|
10
|
-
text: () => import("./text-
|
|
11
|
-
analyze: () => import("./analyze-
|
|
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-
|
|
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-
|
|
4
|
-
import { n as visitBatchQueryCliArgs, t as buildVisitBatchQueryArgs } from "./visit-query-args-
|
|
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 {
|
|
4
|
-
import { i as invalidateProjectAccessCache } from "./project-access-
|
|
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
|
-
|
|
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-
|
|
7653
|
-
project: () => import("./project-
|
|
7654
|
-
|
|
7655
|
-
|
|
7656
|
-
|
|
7657
|
-
|
|
7658
|
-
visit: () => import("./visit-
|
|
7659
|
-
"
|
|
7660
|
-
"
|
|
7661
|
-
"
|
|
7662
|
-
|
|
7663
|
-
|
|
7664
|
-
|
|
7665
|
-
|
|
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,
|
|
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-
|
|
10
|
-
doctor: () => import("./doctor-
|
|
11
|
-
fields: () => import("./fields-
|
|
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-
|
|
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-
|
|
3
|
-
import { n as writeMcpDataResult } from "./mcp-result-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
4
|
-
import { n as visitBatchQueryCliArgs, t as buildVisitBatchQueryArgs } from "./visit-query-args-
|
|
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-
|
|
10
|
-
get: () => import("./get-
|
|
11
|
-
content: () => import("./content-
|
|
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-
|
|
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-
|
|
4
|
-
import { t as mcpCallPage } from "./mcp-result-
|
|
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-
|
|
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-
|
|
3
|
-
import { n as writeMcpDataResult } from "./mcp-result-
|
|
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-
|
|
10
|
-
doc: () => import("./doc-
|
|
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 {
|
|
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-
|
|
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-
|
|
4
|
-
import { t as mcpCallPage } from "./mcp-result-
|
|
5
|
-
import { i as toLocalDateTime, t as csvToArray } from "./util-
|
|
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-
|
|
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-
|
|
4
|
-
import { t as mcpCallPage } from "./mcp-result-
|
|
5
|
-
import { i as toLocalDateTime } from "./util-
|
|
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-
|
|
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-
|
|
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-
|
|
4
|
-
import { i as tenantIdCliArg, n as resolveProjectId, r as resolveTenantId, t as projectIdCliArg } from "./mcp-args-
|
|
5
|
-
import { n as writeMcpDataResult } from "./mcp-result-
|
|
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-
|
|
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-
|
|
4
|
-
import { t as mcpCallPage } from "./mcp-result-
|
|
5
|
-
import { i as toLocalDateTime, r as mergeUserIds, t as csvToArray } from "./util-
|
|
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-
|
|
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-
|
|
4
|
-
import { n as resolveProjectId, t as projectIdCliArg } from "./mcp-args-
|
|
5
|
-
import { n as writeMcpDataResult } from "./mcp-result-
|
|
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-
|
|
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-
|
|
4
|
-
import { t as mcpCallPage } from "./mcp-result-
|
|
5
|
-
import { i as toLocalDateTime } from "./util-
|
|
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-
|
|
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-
|
|
4
|
-
import { t as mcpCallPage } from "./mcp-result-
|
|
5
|
-
import { i as toLocalDateTime, t as csvToArray } from "./util-
|
|
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,5 +1,5 @@
|
|
|
1
1
|
import { n as __exportAll } from "./rolldown-runtime-YLnNgb9a.mjs";
|
|
2
|
-
import {
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
4
|
-
import { n as visitBatchQueryCliArgs, t as buildVisitBatchQueryArgs } from "./visit-query-args-
|
|
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-
|
|
10
|
-
use: () => import("./use-
|
|
11
|
-
current: () => import("./current
|
|
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
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import {
|
|
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-
|
|
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
|