beautx-cli 1.0.6-beta.3 → 1.0.7-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +30 -0
- package/dist/{analyze-Cq-Hmoqp.mjs → analyze-CcsdZtz9.mjs} +5 -5
- package/dist/{api-jIGM86TK.mjs → api-B5nQypBz.mjs} +1 -1
- package/dist/{audio-p2QCYFdq.mjs → audio-DVH0I5Zh.mjs} +3 -3
- package/dist/{beauty-plan-CgSmAhn8.mjs → beauty-plan-Cd88u5h0.mjs} +3 -3
- package/dist/cli.mjs +33 -18
- package/dist/{config-DAVi_CuD.mjs → config-BOuRZAk1.mjs} +3 -3
- package/dist/{consultant-CPecFRiS.mjs → consultant-C1uiuItn.mjs} +1 -1
- package/dist/{content-Bq_jEIl6.mjs → content-CpFANyPe.mjs} +2 -2
- package/dist/{current-D4fh-53q.mjs → current--kwV_-9S.mjs} +1 -1
- package/dist/{customer-DWG47eAT.mjs → customer-Chl1bGg9.mjs} +1 -1
- package/dist/{deal-analysis-Cn2wCaoU.mjs → deal-analysis-Bf6TwBmH.mjs} +3 -3
- package/dist/{doc-DwxREqki.mjs → doc-BtwmuoPs.mjs} +3 -3
- package/dist/env-vars-Dinhf5lt.mjs +212 -0
- package/dist/{fields-BGogOrgD.mjs → fields-MsjROq8O.mjs} +3 -3
- package/dist/{focus-BE8BT835.mjs → focus-CM6mZYRj.mjs} +1 -1
- package/dist/{get-BKCE22jj.mjs → get-Z_hTyubv.mjs} +2 -2
- package/dist/install-DP9xV1rY.mjs +50 -0
- package/dist/{kb-BsiBl_ul.mjs → kb-CjQXEOY5.mjs} +2 -2
- package/dist/{list-BmVWcUI7.mjs → list-B84PLHzp.mjs} +1 -1
- package/dist/list-BNZV4wei.mjs +77 -0
- package/dist/{list-Cnz5CuQB.mjs → list-BSR3H7_0.mjs} +4 -4
- package/dist/{list-Cs1kF7EB.mjs → list-BT0_KdNZ.mjs} +4 -4
- package/dist/{list-DJscF_8M.mjs → list-C0wn72hg.mjs} +4 -4
- package/dist/{list-DVy4Czfy.mjs → list-C6imhAfi.mjs} +4 -4
- package/dist/{list-BzmkW4Iq.mjs → list-CDi3ySyx.mjs} +4 -4
- package/dist/{list-BYLk3sNv.mjs → list-CGJa9z3d.mjs} +4 -4
- package/dist/{list-BcYy7Ejx.mjs → list-CJiei-hu.mjs} +4 -4
- package/dist/{list-BUYSLNqZ.mjs → list-D809kN14.mjs} +3 -1
- package/dist/{mcp-args-DK3IGaO1.mjs → mcp-args-B8InvGQc.mjs} +1 -1
- package/dist/{mcp-client-BTZH22b5.mjs → mcp-client-aS31KU6J.mjs} +3 -3
- package/dist/{mcp-result-De_0PPlD.mjs → mcp-result-Bl71pkOt.mjs} +1 -1
- package/dist/{portrait-tags-I57TgDAx.mjs → portrait-tags-BYded-6k.mjs} +3 -3
- package/dist/{project-K-HkeM57.mjs → project-DSO_7ofq.mjs} +3 -3
- package/dist/project-access-Cq8d1YTo.mjs +2 -0
- package/dist/{project-access-pTN7ry15.mjs → project-access-DlypxnQF.mjs} +3 -2
- package/dist/project-store-CYuTFefu.mjs +2 -0
- package/dist/{project-store-Dl35JzZr.mjs → project-store-D0UuLan2.mjs} +2 -207
- package/dist/{qa-gAtF6cSk.mjs → qa-CqUiXIZn.mjs} +5 -5
- package/dist/{resistance-DGU99Bwi.mjs → resistance-DiDDixVq.mjs} +1 -1
- package/dist/{search-C16CzRep.mjs → search-sjRwA-la.mjs} +5 -5
- package/dist/skill-DBpgezPV.mjs +15 -0
- package/dist/skill-client-D4_QGDkj.mjs +171 -0
- package/dist/{summary-DgpSsQh9.mjs → summary-C7lrTImW.mjs} +4 -4
- package/dist/{text-BIIl7PmC.mjs → text-BZo7B8mz.mjs} +4 -4
- package/dist/upload-D4wSmRqs.mjs +76 -0
- package/dist/{use-D_HBqdev.mjs → use-DQ_M0FOH.mjs} +2 -2
- package/dist/{visit-DnUPj-8i.mjs → visit-CxAYV6z6.mjs} +2 -2
- package/dist/{visit-evaluate-DM7oCk6R.mjs → visit-evaluate-BTKqc8fd.mjs} +3 -3
- package/dist/{visit-query-args-BD3Dw-9F.mjs → visit-query-args-BLwj26s6.mjs} +2 -2
- package/package.json +1 -1
- package/dist/project-access-Bf87OLJP.mjs +0 -2
- package/dist/project-store-DDVZ7T4t.mjs +0 -2
- /package/dist/{doctor-RwDPp4y3.mjs → doctor-DuGxP40X.mjs} +0 -0
- /package/dist/{util-Bko-nm_R.mjs → util-BtgWHKWv.mjs} +0 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { c as requireActiveProject } from "./project-store-
|
|
1
|
+
import { c as requireActiveProject } from "./project-store-D0UuLan2.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-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
6
|
import { defineCommand } from "citty";
|
|
7
7
|
//#region src/commands/audio/text.ts
|
|
8
8
|
/**
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { n as writeError, r as writeResult, t as formatCliArg } from "./cli.mjs";
|
|
2
|
+
import { n as putSkillZip, o as skillUploadConfirm, s as skillUploadInitiate } from "./skill-client-D4_QGDkj.mjs";
|
|
3
|
+
import { defineCommand } from "citty";
|
|
4
|
+
import { readFile } from "node:fs/promises";
|
|
5
|
+
//#region src/commands/skill/upload.ts
|
|
6
|
+
/**
|
|
7
|
+
* `beautx-cli skill upload <zip>` — initiate → PUT OSS → confirm.
|
|
8
|
+
*/
|
|
9
|
+
var upload_default = defineCommand({
|
|
10
|
+
meta: {
|
|
11
|
+
name: "upload",
|
|
12
|
+
description: "上传本地 Skill zip(init → PUT → confirm)"
|
|
13
|
+
},
|
|
14
|
+
args: {
|
|
15
|
+
path: {
|
|
16
|
+
type: "positional",
|
|
17
|
+
description: "本地 .zip 路径(需包含 SKILL.md)",
|
|
18
|
+
required: true
|
|
19
|
+
},
|
|
20
|
+
type: {
|
|
21
|
+
type: "string",
|
|
22
|
+
description: "personal(默认)| tenant | project",
|
|
23
|
+
default: "personal"
|
|
24
|
+
},
|
|
25
|
+
"project-id": {
|
|
26
|
+
type: "string",
|
|
27
|
+
description: "项目 ID;type=project 时必填;type=tenant 时可选写入 skill.project_id"
|
|
28
|
+
},
|
|
29
|
+
"skill-id": {
|
|
30
|
+
type: "string",
|
|
31
|
+
description: "已有 Skill ID:替换该 Skill 包;不传则新建"
|
|
32
|
+
},
|
|
33
|
+
tags: {
|
|
34
|
+
type: "string",
|
|
35
|
+
description: "可选 tags JSON 数组字符串,如 '[\"a\",\"b\"]'"
|
|
36
|
+
},
|
|
37
|
+
format: formatCliArg
|
|
38
|
+
},
|
|
39
|
+
async run({ args }) {
|
|
40
|
+
try {
|
|
41
|
+
const type = args.type?.trim().toLowerCase() || "personal";
|
|
42
|
+
if (type !== "personal" && type !== "tenant" && type !== "project") throw new Error("type 仅支持 personal | tenant | project");
|
|
43
|
+
const projectId = args["project-id"]?.trim();
|
|
44
|
+
if (type === "project" && !projectId) throw new Error("type=project 需要 --project-id");
|
|
45
|
+
const zipBytes = await readFile(args.path.trim());
|
|
46
|
+
let skillId;
|
|
47
|
+
if (args["skill-id"]?.trim()) {
|
|
48
|
+
const raw = args["skill-id"].trim();
|
|
49
|
+
if (!/^\d+$/.test(raw)) throw new Error("skill-id 必须为数字");
|
|
50
|
+
skillId = raw;
|
|
51
|
+
}
|
|
52
|
+
const uploadToken = await skillUploadInitiate({
|
|
53
|
+
skillId,
|
|
54
|
+
ownerType: type,
|
|
55
|
+
projectId
|
|
56
|
+
});
|
|
57
|
+
await putSkillZip(uploadToken.uploadUrl, zipBytes, uploadToken.uploadHeaders);
|
|
58
|
+
const skill = await skillUploadConfirm({
|
|
59
|
+
uploadToken: uploadToken.token,
|
|
60
|
+
tags: args.tags?.trim() || void 0
|
|
61
|
+
});
|
|
62
|
+
writeResult({
|
|
63
|
+
skillId: skill.id,
|
|
64
|
+
name: skill.name,
|
|
65
|
+
version: skill.version,
|
|
66
|
+
status: skill.status,
|
|
67
|
+
ownerType: skill.ownerType
|
|
68
|
+
}, args.format);
|
|
69
|
+
} catch (err) {
|
|
70
|
+
writeError(err, args.format);
|
|
71
|
+
process.exit(1);
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
});
|
|
75
|
+
//#endregion
|
|
76
|
+
export { upload_default as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { a as resolveProjectForUse, i as invalidateProjectAccessCache } from "./project-access-DlypxnQF.mjs";
|
|
2
|
+
import { i as invalidateActiveProjectCache, l as switchActiveProjectViaCallback, r as assertProjectSwitchAllowed } from "./project-store-D0UuLan2.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-
|
|
10
|
-
summary: () => import("./summary-
|
|
9
|
+
list: () => import("./list-CJiei-hu.mjs").then((m) => m.default),
|
|
10
|
+
summary: () => import("./summary-C7lrTImW.mjs").then((m) => m.default)
|
|
11
11
|
}
|
|
12
12
|
});
|
|
13
13
|
//#endregion
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { c as requireActiveProject } from "./project-store-
|
|
1
|
+
import { c as requireActiveProject } from "./project-store-D0UuLan2.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-Bl71pkOt.mjs";
|
|
4
|
+
import { n as visitBatchQueryCliArgs, t as buildVisitBatchQueryArgs } from "./visit-query-args-BLwj26s6.mjs";
|
|
5
5
|
import { defineCommand } from "citty";
|
|
6
6
|
//#region src/commands/visit-evaluate/index.ts
|
|
7
7
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as formatCliArg } from "./cli.mjs";
|
|
2
|
-
import { n as resolveProjectId, t as projectIdCliArg } from "./mcp-args-
|
|
3
|
-
import { i as toLocalDateTime, n as mergeIds, t as csvToArray } from "./util-
|
|
2
|
+
import { n as resolveProjectId, t as projectIdCliArg } from "./mcp-args-B8InvGQc.mjs";
|
|
3
|
+
import { i as toLocalDateTime, n as mergeIds, t as csvToArray } from "./util-BtgWHKWv.mjs";
|
|
4
4
|
//#region src/commands/common/visit-query-args.ts
|
|
5
5
|
const visitBatchQueryCliArgs = {
|
|
6
6
|
...projectIdCliArg,
|
package/package.json
CHANGED
|
File without changes
|
|
File without changes
|