beautx-cli 1.0.2 → 1.0.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.
- package/README.md +4 -4
- package/dist/{analyze-D4-U3EMZ.mjs → analyze-CvS_0J0V.mjs} +6 -6
- package/dist/{api-CLlWvZ6D.mjs → api-DP-wIyTj.mjs} +4 -4
- package/dist/{audio-BVEMBKjq.mjs → audio-CQnCHawp.mjs} +3 -3
- package/dist/cli.mjs +10 -10
- package/dist/{config-JuoIzFRK.mjs → config-BGrzWFQ8.mjs} +2 -2
- package/dist/{consultant-Cw1YwwtS.mjs → consultant-BmIiugMd.mjs} +1 -1
- package/dist/{content-Yo_WIT7q.mjs → content-MoNCpuQm.mjs} +4 -4
- package/dist/{current-Bxh7Kreq.mjs → current-DGIpz0Sk.mjs} +3 -3
- package/dist/{customer-ClOadzRU.mjs → customer-BD3EmzUY.mjs} +1 -1
- package/dist/{doc-Ct90pWPu.mjs → doc-rGIvfEfq.mjs} +3 -3
- package/dist/{env-callback-B0J77QAo.mjs → env-callback-CFDEremx.mjs} +8 -8
- package/dist/{fields-k9uXoI1-.mjs → fields-Cc9Ze0al.mjs} +4 -4
- package/dist/{focus-DjNe5aAC.mjs → focus-B_RkLsqS.mjs} +1 -1
- package/dist/{format-CUmIaybA.mjs → format-BNVLMAn6.mjs} +1 -1
- package/dist/{get-Bvvpjak0.mjs → get-8Rvtj3wi.mjs} +4 -4
- package/dist/{kb-O5-Jsef7.mjs → kb-_CgUDi4w.mjs} +2 -2
- package/dist/{list-BtTJth6J.mjs → list-BRu7_LmY.mjs} +5 -5
- package/dist/{list-LLKHw4PC.mjs → list-BSjslG8l.mjs} +5 -5
- package/dist/{list-CjvUJxab.mjs → list-BZINoVqm.mjs} +5 -5
- package/dist/{list-Du1j8C6e.mjs → list-C8wT5sUn.mjs} +5 -5
- package/dist/{list-DHuUNbzL.mjs → list-CkyG8gwL.mjs} +3 -3
- package/dist/{list-Dyo2l4T0.mjs → list-D8XgqSh0.mjs} +5 -5
- package/dist/{list-CQ0BANsf.mjs → list-DJwNQ8BL.mjs} +5 -5
- package/dist/{list-D5PQ9UFX.mjs → list-RRLvFnug.mjs} +4 -4
- package/dist/{list-BfwcxhuB.mjs → list-qd6lQm03.mjs} +5 -5
- package/dist/{mcp-client-CiA9h1aX.mjs → mcp-client-DI6jZo4q.mjs} +38 -17
- package/dist/{mcp-result-BIkVZJmx.mjs → mcp-result-Bn-A5DcX.mjs} +2 -2
- package/dist/{project-i7Ff3qdR.mjs → project-B2qABEpp.mjs} +3 -3
- package/dist/{project-access-DsvRpcxJ.mjs → project-access-BQZU6NdE.mjs} +4 -4
- package/dist/{project-store-DXTSwGKR.mjs → project-store-C_ufXzPf.mjs} +2 -2
- package/dist/{qa-BYv1cNLv.mjs → qa-B57NEofR.mjs} +6 -6
- package/dist/{resistance-TNgE3tbY.mjs → resistance-D_Y2Avxn.mjs} +1 -1
- package/dist/{search-Cq5goTou.mjs → search-86OGS0Ym.mjs} +6 -6
- package/dist/{summary-DPEcAZs9.mjs → summary-B9x_AfxV.mjs} +5 -5
- package/dist/{text-BcZKHHRe.mjs → text-ACba5WuP.mjs} +5 -5
- package/dist/{use-BUuilhDM.mjs → use-BAIQrxt7.mjs} +4 -4
- package/dist/{util-CztO5pc3.mjs → util-rFGZMvr6.mjs} +1 -1
- package/dist/{visit-nsou1UG-.mjs → visit-D5kebBRY.mjs} +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -260,16 +260,16 @@ pnpm test
|
|
|
260
260
|
pnpm typecheck
|
|
261
261
|
```
|
|
262
262
|
|
|
263
|
-
## 与
|
|
263
|
+
## 与 beautx-cli 的差异
|
|
264
264
|
|
|
265
|
-
| 维度 |
|
|
265
|
+
| 维度 | beautx-cli | beautx-cli |
|
|
266
266
|
| --- | --- | --- |
|
|
267
|
-
| 服务代码 |
|
|
267
|
+
| 服务代码 | beautx-cli | beautx-cli |
|
|
268
268
|
| 回调 URL | wangke.*.wangxiaobao.com | wangke.*.wangxiaobao.com(**相同**) |
|
|
269
269
|
| 支持字段 | category, classification | **不支持**(医美数据无此字段) |
|
|
270
270
|
| 行业 | 房地产 | 医美 |
|
|
271
271
|
|
|
272
|
-
**注意**:beautx-cli 与
|
|
272
|
+
**注意**:beautx-cli 与 beautx-cli 共用相同的回调域名(wangke),因为两者都依赖同一个 Host 系统提供环境变量和积分查询接口。
|
|
273
273
|
|
|
274
274
|
## 相关文档
|
|
275
275
|
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { n as mcpCall } from "./mcp-client-
|
|
2
|
-
import { n as writeError, t as formatCliArg } from "./format-
|
|
1
|
+
import { n as mcpCall } from "./mcp-client-DI6jZo4q.mjs";
|
|
2
|
+
import { n as writeError, t as formatCliArg } from "./format-BNVLMAn6.mjs";
|
|
3
3
|
import { n as resolveProjectId, t as projectIdCliArg } from "./mcp-args-CYOCdClW.mjs";
|
|
4
|
-
import { n as writeMcpDataResult } from "./mcp-result-
|
|
5
|
-
import { i as requireActiveProject } from "./project-store-
|
|
6
|
-
import { t as csvToArray } from "./util-
|
|
4
|
+
import { n as writeMcpDataResult } from "./mcp-result-Bn-A5DcX.mjs";
|
|
5
|
+
import { i as requireActiveProject } from "./project-store-C_ufXzPf.mjs";
|
|
6
|
+
import { t as csvToArray } from "./util-rFGZMvr6.mjs";
|
|
7
7
|
import { defineCommand } from "citty";
|
|
8
8
|
//#region src/commands/audio/analyze.ts
|
|
9
9
|
/**
|
|
10
|
-
* `
|
|
10
|
+
* `beautx-cli audio analyze [query]` — batch audio analysis via MCP gateway.
|
|
11
11
|
*/
|
|
12
12
|
var analyze_default = defineCommand({
|
|
13
13
|
meta: {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { n as mcpCall, t as MCP_SERVICE_CODE } from "./mcp-client-
|
|
2
|
-
import { n as writeError, r as writeResult, t as formatCliArg } from "./format-
|
|
1
|
+
import { n as mcpCall, t as MCP_SERVICE_CODE } from "./mcp-client-DI6jZo4q.mjs";
|
|
2
|
+
import { n as writeError, r as writeResult, t as formatCliArg } from "./format-BNVLMAn6.mjs";
|
|
3
3
|
import { defineCommand } from "citty";
|
|
4
4
|
//#region src/commands/api.ts
|
|
5
5
|
/**
|
|
6
|
-
* `
|
|
6
|
+
* `beautx-cli api --tool-name <tool>` — generic MCP tool call escape hatch.
|
|
7
7
|
*
|
|
8
8
|
* Sends a raw MCP JSON-RPC tools/call request for any tool registered under
|
|
9
|
-
* the MCP serviceCode (default `
|
|
9
|
+
* the MCP serviceCode (default `beautx-cli`). For capabilities not yet wrapped
|
|
10
10
|
* as a dedicated command, or for one-off exploration.
|
|
11
11
|
*/
|
|
12
12
|
var api_default = defineCommand({
|
|
@@ -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-DJwNQ8BL.mjs").then((m) => m.default),
|
|
10
|
+
text: () => import("./text-ACba5WuP.mjs").then((m) => m.default),
|
|
11
|
+
analyze: () => import("./analyze-CvS_0J0V.mjs").then((m) => m.default)
|
|
12
12
|
}
|
|
13
13
|
});
|
|
14
14
|
//#endregion
|
package/dist/cli.mjs
CHANGED
|
@@ -18,16 +18,16 @@ runMain(defineCommand({
|
|
|
18
18
|
description: "Beautx CLI (beautx-cli) — MCP gateway CLI for medical beauty industry"
|
|
19
19
|
},
|
|
20
20
|
subCommands: {
|
|
21
|
-
config: () => import("./config-
|
|
22
|
-
project: () => import("./project-
|
|
23
|
-
consultant: () => import("./consultant-
|
|
24
|
-
audio: () => import("./audio-
|
|
25
|
-
customer: () => import("./customer-
|
|
26
|
-
visit: () => import("./visit-
|
|
27
|
-
focus: () => import("./focus-
|
|
28
|
-
resistance: () => import("./resistance-
|
|
29
|
-
qa: () => import("./qa-
|
|
30
|
-
kb: () => import("./kb-
|
|
21
|
+
config: () => import("./config-BGrzWFQ8.mjs").then((m) => m.default),
|
|
22
|
+
project: () => import("./project-B2qABEpp.mjs").then((m) => m.default),
|
|
23
|
+
consultant: () => import("./consultant-BmIiugMd.mjs").then((m) => m.default),
|
|
24
|
+
audio: () => import("./audio-CQnCHawp.mjs").then((m) => m.default),
|
|
25
|
+
customer: () => import("./customer-BD3EmzUY.mjs").then((m) => m.default),
|
|
26
|
+
visit: () => import("./visit-D5kebBRY.mjs").then((m) => m.default),
|
|
27
|
+
focus: () => import("./focus-B_RkLsqS.mjs").then((m) => m.default),
|
|
28
|
+
resistance: () => import("./resistance-D_Y2Avxn.mjs").then((m) => m.default),
|
|
29
|
+
qa: () => import("./qa-B57NEofR.mjs").then((m) => m.default),
|
|
30
|
+
kb: () => import("./kb-_CgUDi4w.mjs").then((m) => m.default)
|
|
31
31
|
}
|
|
32
32
|
}));
|
|
33
33
|
//#endregion
|
|
@@ -6,8 +6,8 @@ var config_default = defineCommand({
|
|
|
6
6
|
description: "沙箱配置:list 只读诊断;fields 客户字段字典"
|
|
7
7
|
},
|
|
8
8
|
subCommands: {
|
|
9
|
-
list: () => import("./list-
|
|
10
|
-
fields: () => import("./fields-
|
|
9
|
+
list: () => import("./list-RRLvFnug.mjs").then((m) => m.default),
|
|
10
|
+
fields: () => import("./fields-Cc9Ze0al.mjs").then((m) => m.default)
|
|
11
11
|
}
|
|
12
12
|
});
|
|
13
13
|
//#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-qd6lQm03.mjs").then((m) => m.default) }
|
|
9
9
|
});
|
|
10
10
|
//#endregion
|
|
11
11
|
export { consultant_default as default };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { n as mcpCall } from "./mcp-client-
|
|
2
|
-
import { n as writeError, t as formatCliArg } from "./format-
|
|
3
|
-
import { n as writeMcpDataResult } from "./mcp-result-
|
|
1
|
+
import { n as mcpCall } from "./mcp-client-DI6jZo4q.mjs";
|
|
2
|
+
import { n as writeError, t as formatCliArg } from "./format-BNVLMAn6.mjs";
|
|
3
|
+
import { n as writeMcpDataResult } from "./mcp-result-Bn-A5DcX.mjs";
|
|
4
4
|
import { defineCommand } from "citty";
|
|
5
5
|
//#region src/commands/kb/doc/content.ts
|
|
6
6
|
/**
|
|
7
|
-
* `
|
|
7
|
+
* `beautx-cli kb doc content <doc-id>` — paginated full-text markdown via MCP.
|
|
8
8
|
*/
|
|
9
9
|
var content_default = defineCommand({
|
|
10
10
|
meta: {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { n as writeError, r as writeResult, t as formatCliArg } from "./format-
|
|
2
|
-
import { i as requireActiveProject } from "./project-store-
|
|
1
|
+
import { n as writeError, r as writeResult, t as formatCliArg } from "./format-BNVLMAn6.mjs";
|
|
2
|
+
import { i as requireActiveProject } from "./project-store-C_ufXzPf.mjs";
|
|
3
3
|
import { defineCommand } from "citty";
|
|
4
4
|
//#region src/commands/project/current.ts
|
|
5
5
|
/**
|
|
6
|
-
* `
|
|
6
|
+
* `beautx-cli project current` — show the currently active project from env.
|
|
7
7
|
*/
|
|
8
8
|
var current_default = defineCommand({
|
|
9
9
|
meta: {
|
|
@@ -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-BSjslG8l.mjs").then((m) => m.default) }
|
|
9
9
|
});
|
|
10
10
|
//#endregion
|
|
11
11
|
export { customer_default as default };
|
|
@@ -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-BZINoVqm.mjs").then((m) => m.default),
|
|
10
|
+
get: () => import("./get-8Rvtj3wi.mjs").then((m) => m.default),
|
|
11
|
+
content: () => import("./content-MoNCpuQm.mjs").then((m) => m.default)
|
|
12
12
|
}
|
|
13
13
|
});
|
|
14
14
|
//#endregion
|
|
@@ -4,12 +4,12 @@ import { join } from "node:path";
|
|
|
4
4
|
import { homedir } from "node:os";
|
|
5
5
|
//#region src/core/debug-log.ts
|
|
6
6
|
/**
|
|
7
|
-
* Append-only debug log under {@code ~//home/wuying/jvscrew/files/.
|
|
7
|
+
* Append-only debug log under {@code ~//home/wuying/jvscrew/files/.beautx-cli/log.jsonl}.
|
|
8
8
|
*
|
|
9
9
|
* - Errors are always logged (helps sandbox debugging when Agent hides stderr).
|
|
10
10
|
* - Set {@code WANGAI_CLI_DEBUG=1} for verbose HTTP / command tracing.
|
|
11
11
|
*/
|
|
12
|
-
const LOG_DIR = join(homedir(), "/home/wuying/jvscrew/files/.
|
|
12
|
+
const LOG_DIR = join(homedir(), "/home/wuying/jvscrew/files/.beautx-cli");
|
|
13
13
|
const LOG_FILE = join(LOG_DIR, "log.jsonl");
|
|
14
14
|
const REDACT_KEYS = new Set([
|
|
15
15
|
"mcp_token",
|
|
@@ -152,7 +152,7 @@ function knownEnvVarsFromProcessEnv() {
|
|
|
152
152
|
return {
|
|
153
153
|
key,
|
|
154
154
|
value,
|
|
155
|
-
description: `
|
|
155
|
+
description: `beautx-cli: ${key}`
|
|
156
156
|
};
|
|
157
157
|
}).filter((item) => item != null);
|
|
158
158
|
}
|
|
@@ -172,7 +172,7 @@ function mergeEnvVars(existing, patches) {
|
|
|
172
172
|
merged.push({
|
|
173
173
|
key: item.key,
|
|
174
174
|
value: patch.value,
|
|
175
|
-
description: patch.description ?? item.description ?? `
|
|
175
|
+
description: patch.description ?? item.description ?? `beautx-cli: ${item.key}`
|
|
176
176
|
});
|
|
177
177
|
seen.add(item.key);
|
|
178
178
|
} else merged.push({ ...item });
|
|
@@ -182,7 +182,7 @@ function mergeEnvVars(existing, patches) {
|
|
|
182
182
|
merged.push({
|
|
183
183
|
key: patch.key,
|
|
184
184
|
value: patch.value,
|
|
185
|
-
description: patch.description ?? `
|
|
185
|
+
description: patch.description ?? `beautx-cli: ${patch.key}`
|
|
186
186
|
});
|
|
187
187
|
}
|
|
188
188
|
return merged;
|
|
@@ -269,14 +269,14 @@ async function fetchEnvVarDefinitions(query) {
|
|
|
269
269
|
async function patchEnvVars(patches, options) {
|
|
270
270
|
if (patches.length === 0) return;
|
|
271
271
|
const tenantId = resolveCallbackTenantId(options?.tenantId);
|
|
272
|
-
if (!tenantId) throw new ConfigInvalidError("Host env 回调缺少 tenantId", "运行 `
|
|
272
|
+
if (!tenantId) throw new ConfigInvalidError("Host env 回调缺少 tenantId", "运行 `beautx-cli config list` 确认 TENANT_ID 已注入");
|
|
273
273
|
const query = { tenantId };
|
|
274
274
|
const variables = prepareVariablesForPost(mergeEnvVars(await resolveExistingForMerge(query), patches));
|
|
275
275
|
const url = envVarsUrl(query);
|
|
276
276
|
const body = JSON.stringify({ variables: variables.map((v) => ({
|
|
277
277
|
key: v.key,
|
|
278
278
|
value: v.value,
|
|
279
|
-
description: v.description ?? `
|
|
279
|
+
description: v.description ?? `beautx-cli: ${v.key}`
|
|
280
280
|
})) });
|
|
281
281
|
let lastFailure;
|
|
282
282
|
for (let attempt = 0; attempt < RETRY_DELAYS_MS.length; attempt++) {
|
|
@@ -334,7 +334,7 @@ async function persistTokensToHost(accessToken, refreshToken, expiresAtMs) {
|
|
|
334
334
|
/** Persist active estate/tenant selection to Host env. */
|
|
335
335
|
async function persistActiveProjectToHost(project) {
|
|
336
336
|
const tenantId = project.tenantId?.trim();
|
|
337
|
-
if (!tenantId) throw new ConfigInvalidError("project use 缺少 tenantId,无法写回 Host 环境", "运行 `
|
|
337
|
+
if (!tenantId) throw new ConfigInvalidError("project use 缺少 tenantId,无法写回 Host 环境", "运行 `beautx-cli config list` 确认 TENANT_ID;若仍失败请联系平台");
|
|
338
338
|
const record = {
|
|
339
339
|
[ENV_KEYS.TENANT_ID]: tenantId,
|
|
340
340
|
[ENV_KEYS.ESTATE_ID]: project.projectId
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { n as writeError, t as formatCliArg } from "./format-
|
|
1
|
+
import { n as writeError, t as formatCliArg } from "./format-BNVLMAn6.mjs";
|
|
2
2
|
import { n as resolveProjectId, t as projectIdCliArg } from "./mcp-args-CYOCdClW.mjs";
|
|
3
|
-
import { t as mcpCallPage } from "./mcp-result-
|
|
4
|
-
import { i as requireActiveProject } from "./project-store-
|
|
3
|
+
import { t as mcpCallPage } from "./mcp-result-Bn-A5DcX.mjs";
|
|
4
|
+
import { i as requireActiveProject } from "./project-store-C_ufXzPf.mjs";
|
|
5
5
|
import { defineCommand } from "citty";
|
|
6
6
|
//#region src/commands/config/fields.ts
|
|
7
7
|
/**
|
|
8
|
-
* `
|
|
8
|
+
* `beautx-cli config fields` — customer field dictionary via MCP gateway.
|
|
9
9
|
*
|
|
10
10
|
* Default: paginated fieldName list only (lightweight).
|
|
11
11
|
* --verbose: paginated full field metadata (fieldFormat, remark, …).
|
|
@@ -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-BRu7_LmY.mjs").then((m) => m.default) }
|
|
9
9
|
});
|
|
10
10
|
//#endregion
|
|
11
11
|
export { focus_default as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { i as __toESM, r as __require, t as __commonJSMin } from "./rolldown-runtime-YLnNgb9a.mjs";
|
|
2
|
-
import { r as debugLogError } from "./env-callback-
|
|
2
|
+
import { r as debugLogError } from "./env-callback-CFDEremx.mjs";
|
|
3
3
|
//#region node_modules/.pnpm/@toon-format+toon@2.3.0/node_modules/@toon-format/toon/dist/index.mjs
|
|
4
4
|
const NULL_LITERAL = "null";
|
|
5
5
|
const DEFAULT_DELIMITER = {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { n as mcpCall } from "./mcp-client-
|
|
2
|
-
import { n as writeError, t as formatCliArg } from "./format-
|
|
3
|
-
import { n as writeMcpDataResult } from "./mcp-result-
|
|
1
|
+
import { n as mcpCall } from "./mcp-client-DI6jZo4q.mjs";
|
|
2
|
+
import { n as writeError, t as formatCliArg } from "./format-BNVLMAn6.mjs";
|
|
3
|
+
import { n as writeMcpDataResult } from "./mcp-result-Bn-A5DcX.mjs";
|
|
4
4
|
import { defineCommand } from "citty";
|
|
5
5
|
//#region src/commands/kb/doc/get.ts
|
|
6
6
|
/**
|
|
7
|
-
* `
|
|
7
|
+
* `beautx-cli kb doc get <doc-id>` — document metadata via MCP.
|
|
8
8
|
*/
|
|
9
9
|
var get_default = defineCommand({
|
|
10
10
|
meta: {
|
|
@@ -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-86OGS0Ym.mjs").then((m) => m.default),
|
|
10
|
+
doc: () => import("./doc-rGIvfEfq.mjs").then((m) => m.default)
|
|
11
11
|
}
|
|
12
12
|
});
|
|
13
13
|
//#endregion
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { n as writeError, t as formatCliArg } from "./format-
|
|
1
|
+
import { n as writeError, t as formatCliArg } from "./format-BNVLMAn6.mjs";
|
|
2
2
|
import { n as resolveProjectId, t as projectIdCliArg } from "./mcp-args-CYOCdClW.mjs";
|
|
3
|
-
import { t as mcpCallPage } from "./mcp-result-
|
|
4
|
-
import { i as requireActiveProject } from "./project-store-
|
|
5
|
-
import { r as toLocalDateTime, t as csvToArray } from "./util-
|
|
3
|
+
import { t as mcpCallPage } from "./mcp-result-Bn-A5DcX.mjs";
|
|
4
|
+
import { i as requireActiveProject } from "./project-store-C_ufXzPf.mjs";
|
|
5
|
+
import { r as toLocalDateTime, t as csvToArray } from "./util-rFGZMvr6.mjs";
|
|
6
6
|
import { defineCommand } from "citty";
|
|
7
7
|
//#region src/commands/focus/list.ts
|
|
8
8
|
/**
|
|
9
|
-
* `
|
|
9
|
+
* `beautx-cli focus list` — page customer 关注点 tags via MCP gateway.
|
|
10
10
|
*/
|
|
11
11
|
var list_default = defineCommand({
|
|
12
12
|
meta: {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { n as writeError, t as formatCliArg } from "./format-
|
|
1
|
+
import { n as writeError, t as formatCliArg } from "./format-BNVLMAn6.mjs";
|
|
2
2
|
import { n as resolveProjectId, t as projectIdCliArg } from "./mcp-args-CYOCdClW.mjs";
|
|
3
|
-
import { t as mcpCallPage } from "./mcp-result-
|
|
4
|
-
import { i as requireActiveProject } from "./project-store-
|
|
5
|
-
import { r as toLocalDateTime } from "./util-
|
|
3
|
+
import { t as mcpCallPage } from "./mcp-result-Bn-A5DcX.mjs";
|
|
4
|
+
import { i as requireActiveProject } from "./project-store-C_ufXzPf.mjs";
|
|
5
|
+
import { r as toLocalDateTime } from "./util-rFGZMvr6.mjs";
|
|
6
6
|
import { defineCommand } from "citty";
|
|
7
7
|
//#region src/commands/customer/list.ts
|
|
8
8
|
/**
|
|
9
|
-
* `
|
|
9
|
+
* `beautx-cli customer list` — page customer profiles via MCP gateway.
|
|
10
10
|
*/
|
|
11
11
|
var list_default = defineCommand({
|
|
12
12
|
meta: {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { n as mcpCall } from "./mcp-client-
|
|
2
|
-
import { n as writeError, t as formatCliArg } from "./format-
|
|
1
|
+
import { n as mcpCall } from "./mcp-client-DI6jZo4q.mjs";
|
|
2
|
+
import { n as writeError, t as formatCliArg } from "./format-BNVLMAn6.mjs";
|
|
3
3
|
import { i as tenantIdCliArg, n as resolveProjectId, r as resolveTenantId, t as projectIdCliArg } from "./mcp-args-CYOCdClW.mjs";
|
|
4
|
-
import { n as writeMcpDataResult } from "./mcp-result-
|
|
5
|
-
import { i as requireActiveProject } from "./project-store-
|
|
4
|
+
import { n as writeMcpDataResult } from "./mcp-result-Bn-A5DcX.mjs";
|
|
5
|
+
import { i as requireActiveProject } from "./project-store-C_ufXzPf.mjs";
|
|
6
6
|
import { defineCommand } from "citty";
|
|
7
7
|
//#region src/commands/kb/doc/list.ts
|
|
8
8
|
/**
|
|
9
|
-
* `
|
|
9
|
+
* `beautx-cli kb doc list` — list knowledge-base documents for active tenant+project.
|
|
10
10
|
*/
|
|
11
11
|
var list_default = defineCommand({
|
|
12
12
|
meta: {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { n as writeError, t as formatCliArg } from "./format-
|
|
1
|
+
import { n as writeError, t as formatCliArg } from "./format-BNVLMAn6.mjs";
|
|
2
2
|
import { n as resolveProjectId, t as projectIdCliArg } from "./mcp-args-CYOCdClW.mjs";
|
|
3
|
-
import { t as mcpCallPage } from "./mcp-result-
|
|
4
|
-
import { i as requireActiveProject } from "./project-store-
|
|
5
|
-
import { r as toLocalDateTime } from "./util-
|
|
3
|
+
import { t as mcpCallPage } from "./mcp-result-Bn-A5DcX.mjs";
|
|
4
|
+
import { i as requireActiveProject } from "./project-store-C_ufXzPf.mjs";
|
|
5
|
+
import { r as toLocalDateTime } from "./util-rFGZMvr6.mjs";
|
|
6
6
|
import { defineCommand } from "citty";
|
|
7
7
|
//#region src/commands/visit/list.ts
|
|
8
8
|
/**
|
|
9
|
-
* `
|
|
9
|
+
* `beautx-cli visit list` — page customer visits via MCP gateway.
|
|
10
10
|
*/
|
|
11
11
|
var list_default = defineCommand({
|
|
12
12
|
meta: {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { n as writeError, t as formatCliArg } from "./format-
|
|
2
|
-
import { t as mcpCallPage } from "./mcp-result-
|
|
1
|
+
import { n as writeError, t as formatCliArg } from "./format-BNVLMAn6.mjs";
|
|
2
|
+
import { t as mcpCallPage } from "./mcp-result-Bn-A5DcX.mjs";
|
|
3
3
|
import { defineCommand } from "citty";
|
|
4
4
|
//#region src/commands/project/list.ts
|
|
5
5
|
/**
|
|
6
|
-
* `
|
|
6
|
+
* `beautx-cli project list` — tenant + project roster via MCP gateway.
|
|
7
7
|
*/
|
|
8
8
|
var list_default = defineCommand({
|
|
9
9
|
meta: {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { n as writeError, t as formatCliArg } from "./format-
|
|
1
|
+
import { n as writeError, t as formatCliArg } from "./format-BNVLMAn6.mjs";
|
|
2
2
|
import { n as resolveProjectId, t as projectIdCliArg } from "./mcp-args-CYOCdClW.mjs";
|
|
3
|
-
import { t as mcpCallPage } from "./mcp-result-
|
|
4
|
-
import { i as requireActiveProject } from "./project-store-
|
|
5
|
-
import { r as toLocalDateTime, t as csvToArray } from "./util-
|
|
3
|
+
import { t as mcpCallPage } from "./mcp-result-Bn-A5DcX.mjs";
|
|
4
|
+
import { i as requireActiveProject } from "./project-store-C_ufXzPf.mjs";
|
|
5
|
+
import { r as toLocalDateTime, t as csvToArray } from "./util-rFGZMvr6.mjs";
|
|
6
6
|
import { defineCommand } from "citty";
|
|
7
7
|
//#region src/commands/resistance/list.ts
|
|
8
8
|
/**
|
|
9
|
-
* `
|
|
9
|
+
* `beautx-cli resistance list` — page customer 抗性点 tags via MCP gateway.
|
|
10
10
|
*/
|
|
11
11
|
var list_default = defineCommand({
|
|
12
12
|
meta: {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { n as writeError, t as formatCliArg } from "./format-
|
|
1
|
+
import { n as writeError, t as formatCliArg } from "./format-BNVLMAn6.mjs";
|
|
2
2
|
import { n as resolveProjectId, t as projectIdCliArg } from "./mcp-args-CYOCdClW.mjs";
|
|
3
|
-
import { t as mcpCallPage } from "./mcp-result-
|
|
4
|
-
import { i as requireActiveProject } from "./project-store-
|
|
5
|
-
import { n as mergeUserIds, r as toLocalDateTime, t as csvToArray } from "./util-
|
|
3
|
+
import { t as mcpCallPage } from "./mcp-result-Bn-A5DcX.mjs";
|
|
4
|
+
import { i as requireActiveProject } from "./project-store-C_ufXzPf.mjs";
|
|
5
|
+
import { n as mergeUserIds, r as toLocalDateTime, t as csvToArray } from "./util-rFGZMvr6.mjs";
|
|
6
6
|
import { defineCommand } from "citty";
|
|
7
7
|
//#region src/commands/audio/list.ts
|
|
8
8
|
/**
|
|
9
|
-
* `
|
|
9
|
+
* `beautx-cli audio list` — page audio metadata via MCP gateway.
|
|
10
10
|
*/
|
|
11
11
|
var list_default = defineCommand({
|
|
12
12
|
meta: {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { c as readCredentials, d as resolveEndpoints, i as isEnvInjectedByHost, l as readEnv, r as credentialStatus, t as ENV_KEYS } from "./env-vars-CXEHR_mk.mjs";
|
|
2
|
-
import { a as debugLogPath, o as isVerboseDebugEnabled } from "./env-callback-
|
|
3
|
-
import { n as writeError, r as writeResult, t as formatCliArg } from "./format-
|
|
4
|
-
import { n as isProjectSwitchAllowed, r as loadActiveProject } from "./project-store-
|
|
2
|
+
import { a as debugLogPath, o as isVerboseDebugEnabled } from "./env-callback-CFDEremx.mjs";
|
|
3
|
+
import { n as writeError, r as writeResult, t as formatCliArg } from "./format-BNVLMAn6.mjs";
|
|
4
|
+
import { n as isProjectSwitchAllowed, r as loadActiveProject } from "./project-store-C_ufXzPf.mjs";
|
|
5
5
|
import { defineCommand } from "citty";
|
|
6
6
|
//#region src/commands/config/list.ts
|
|
7
7
|
/**
|
|
8
|
-
* `
|
|
8
|
+
* `beautx-cli config list` — agent-facing env diagnostics (secrets redacted).
|
|
9
9
|
*/
|
|
10
10
|
var list_default = defineCommand({
|
|
11
11
|
meta: {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { n as mcpCall } from "./mcp-client-
|
|
2
|
-
import { n as writeError, t as formatCliArg } from "./format-
|
|
1
|
+
import { n as mcpCall } from "./mcp-client-DI6jZo4q.mjs";
|
|
2
|
+
import { n as writeError, t as formatCliArg } from "./format-BNVLMAn6.mjs";
|
|
3
3
|
import { n as resolveProjectId, t as projectIdCliArg } from "./mcp-args-CYOCdClW.mjs";
|
|
4
|
-
import { n as writeMcpDataResult } from "./mcp-result-
|
|
5
|
-
import { i as requireActiveProject } from "./project-store-
|
|
4
|
+
import { n as writeMcpDataResult } from "./mcp-result-Bn-A5DcX.mjs";
|
|
5
|
+
import { i as requireActiveProject } from "./project-store-C_ufXzPf.mjs";
|
|
6
6
|
import { defineCommand } from "citty";
|
|
7
7
|
//#region src/commands/consultant/list.ts
|
|
8
8
|
/**
|
|
9
|
-
* `
|
|
9
|
+
* `beautx-cli consultant list` — list consultants via MCP gateway.
|
|
10
10
|
*/
|
|
11
11
|
var list_default = defineCommand({
|
|
12
12
|
meta: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as __exportAll } from "./rolldown-runtime-YLnNgb9a.mjs";
|
|
2
2
|
import { _ as MissingGatewayError, a as isTokenExpired, c as readCredentials, d as resolveEndpoints, g as MissingAccessTokenError, l as readEnv, n as assertEndpointsValid, o as needsRefresh, p as AccessTokenExpiredError, t as ENV_KEYS, v as MissingRefreshTokenError, y as RefreshFailedError } from "./env-vars-CXEHR_mk.mjs";
|
|
3
|
-
import { t as invalidateProjectAccessCache } from "./project-access-
|
|
4
|
-
import { i as debugLogInfo, n as persistTokensToHost, r as debugLogError } from "./env-callback-
|
|
3
|
+
import { t as invalidateProjectAccessCache } from "./project-access-BQZU6NdE.mjs";
|
|
4
|
+
import { i as debugLogInfo, n as persistTokensToHost, r as debugLogError } from "./env-callback-CFDEremx.mjs";
|
|
5
5
|
import { randomUUID } from "node:crypto";
|
|
6
6
|
//#region src/core/token-refresh.ts
|
|
7
7
|
/**
|
|
@@ -78,6 +78,34 @@ async function resolveMcpConfig() {
|
|
|
78
78
|
};
|
|
79
79
|
}
|
|
80
80
|
//#endregion
|
|
81
|
+
//#region src/core/mcp-wire-args.ts
|
|
82
|
+
/**
|
|
83
|
+
* Normalize MCP tools/call arguments before they hit the gateway wire.
|
|
84
|
+
*
|
|
85
|
+
* - project-list: always attach Host ESTATE_ID as project_id for gateway billing,
|
|
86
|
+
* ignoring any CLI-supplied value.
|
|
87
|
+
* - Other tools: attach project_id from Host env when callers omit it, so gateway
|
|
88
|
+
* audit / billing can see the active project even if the application ignores it.
|
|
89
|
+
*/
|
|
90
|
+
function augmentMcpWireArguments(toolName, args) {
|
|
91
|
+
const estateId = readEnv(ENV_KEYS.ESTATE_ID)?.trim();
|
|
92
|
+
if (toolName === "project-list") {
|
|
93
|
+
const { project_id: _drop, ...rest } = args;
|
|
94
|
+
if (!estateId) return rest;
|
|
95
|
+
return {
|
|
96
|
+
...rest,
|
|
97
|
+
project_id: estateId
|
|
98
|
+
};
|
|
99
|
+
}
|
|
100
|
+
if (!estateId) return args;
|
|
101
|
+
const existing = args.project_id;
|
|
102
|
+
if (existing != null && String(existing).trim()) return args;
|
|
103
|
+
return {
|
|
104
|
+
...args,
|
|
105
|
+
project_id: estateId
|
|
106
|
+
};
|
|
107
|
+
}
|
|
108
|
+
//#endregion
|
|
81
109
|
//#region src/core/mcp-client.ts
|
|
82
110
|
/**
|
|
83
111
|
* MCP JSON-RPC client — sends tools/call requests to the MCP gateway.
|
|
@@ -144,14 +172,18 @@ var McpGatewayError = class extends Error {
|
|
|
144
172
|
}
|
|
145
173
|
};
|
|
146
174
|
async function mcpCall(toolName, opts) {
|
|
175
|
+
const wireArguments = augmentMcpWireArguments(toolName, opts.arguments ?? {});
|
|
147
176
|
if (toolName !== "project-list") {
|
|
148
|
-
const rawProjectId =
|
|
177
|
+
const rawProjectId = wireArguments.project_id;
|
|
149
178
|
if (rawProjectId != null && String(rawProjectId).trim()) {
|
|
150
|
-
const { assertProjectAllowed } = await import("./project-access-
|
|
179
|
+
const { assertProjectAllowed } = await import("./project-access-BQZU6NdE.mjs").then((n) => n.n);
|
|
151
180
|
await assertProjectAllowed(String(rawProjectId).trim());
|
|
152
181
|
}
|
|
153
182
|
}
|
|
154
|
-
return mcpCallOnce(toolName,
|
|
183
|
+
return mcpCallOnce(toolName, {
|
|
184
|
+
...opts,
|
|
185
|
+
arguments: wireArguments
|
|
186
|
+
}, false);
|
|
155
187
|
}
|
|
156
188
|
async function mcpCallOnce(toolName, opts, retriedAfterRefresh) {
|
|
157
189
|
const config = await resolveMcpConfig();
|
|
@@ -159,7 +191,7 @@ async function mcpCallOnce(toolName, opts, retriedAfterRefresh) {
|
|
|
159
191
|
const url = `${config.gatewayUrl}/mcp/${serviceCode}`;
|
|
160
192
|
const argumentsWithCallSource = {
|
|
161
193
|
call_source: MCP_CALL_SOURCE,
|
|
162
|
-
...
|
|
194
|
+
...opts.arguments
|
|
163
195
|
};
|
|
164
196
|
const body = JSON.stringify({
|
|
165
197
|
jsonrpc: "2.0",
|
|
@@ -228,17 +260,6 @@ async function mcpCallOnce(toolName, opts, retriedAfterRefresh) {
|
|
|
228
260
|
data: rpcResult.result ?? parsed
|
|
229
261
|
};
|
|
230
262
|
}
|
|
231
|
-
/** Gateway billing for project-list reads project_id from Host env; not a CLI flag. */
|
|
232
|
-
function augmentWireArguments(toolName, args) {
|
|
233
|
-
if (toolName !== "project-list") return args;
|
|
234
|
-
const { project_id: _drop, ...rest } = args;
|
|
235
|
-
const estateId = readEnv(ENV_KEYS.ESTATE_ID);
|
|
236
|
-
if (!estateId) return rest;
|
|
237
|
-
return {
|
|
238
|
-
...rest,
|
|
239
|
-
project_id: estateId
|
|
240
|
-
};
|
|
241
|
-
}
|
|
242
263
|
/**
|
|
243
264
|
* Extract the JSON-RPC payload from an SSE response body. MCP streamable-HTTP
|
|
244
265
|
* encodes the response as one or more `data:` events; we take the last event
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { i as unwrapMcpToolEnvelope, n as mcpCall } from "./mcp-client-
|
|
2
|
-
import { n as writeError, r as writeResult } from "./format-
|
|
1
|
+
import { i as unwrapMcpToolEnvelope, n as mcpCall } from "./mcp-client-DI6jZo4q.mjs";
|
|
2
|
+
import { n as writeError, r as writeResult } from "./format-BNVLMAn6.mjs";
|
|
3
3
|
//#region src/core/mcp-result.ts
|
|
4
4
|
/**
|
|
5
5
|
* Normalize MCP tool responses for agent-friendly stdout (TOON tabular arrays).
|
|
@@ -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-CkyG8gwL.mjs").then((m) => m.default),
|
|
10
|
+
use: () => import("./use-BAIQrxt7.mjs").then((m) => m.default),
|
|
11
|
+
current: () => import("./current-DGIpz0Sk.mjs").then((m) => m.default)
|
|
12
12
|
}
|
|
13
13
|
});
|
|
14
14
|
//#endregion
|
|
@@ -94,7 +94,7 @@ const PROJECT_LIST_PAGE_SIZE = 100;
|
|
|
94
94
|
let cache = null;
|
|
95
95
|
var ProjectNotAllowedError = class extends Error {
|
|
96
96
|
code = "PROJECT_NOT_ALLOWED";
|
|
97
|
-
hint = "运行 `
|
|
97
|
+
hint = "运行 `beautx-cli project list` 查看有权限的项目,或使用 `beautx-cli project use` 切换";
|
|
98
98
|
projectId;
|
|
99
99
|
constructor(projectId) {
|
|
100
100
|
super(`项目 ${projectId} 不在当前用户有权限且已开通 APP_CLAW 的项目列表中`);
|
|
@@ -167,7 +167,7 @@ async function assertProjectAllowed(projectId) {
|
|
|
167
167
|
*/
|
|
168
168
|
async function resolveProjectForUse(projectId) {
|
|
169
169
|
const id = projectId?.trim();
|
|
170
|
-
if (!id) throw new ConfigInvalidError("缺少 project_id", "运行 `
|
|
170
|
+
if (!id) throw new ConfigInvalidError("缺少 project_id", "运行 `beautx-cli project list` 选择项目");
|
|
171
171
|
if (isHostActiveEstate(id)) {
|
|
172
172
|
const active = readActiveProject();
|
|
173
173
|
if (active?.projectId === id) {
|
|
@@ -237,7 +237,7 @@ function normalizeProjectListPage(page) {
|
|
|
237
237
|
};
|
|
238
238
|
}
|
|
239
239
|
async function fetchProjectListPage(page, size) {
|
|
240
|
-
const { mcpCall, unwrapMcpToolEnvelope } = await import("./mcp-client-
|
|
240
|
+
const { mcpCall, unwrapMcpToolEnvelope } = await import("./mcp-client-DI6jZo4q.mjs").then((n) => n.r);
|
|
241
241
|
const result = await mcpCall("project-list", { arguments: {
|
|
242
242
|
page,
|
|
243
243
|
size
|
|
@@ -248,7 +248,7 @@ async function fetchProjectListPage(page, size) {
|
|
|
248
248
|
}
|
|
249
249
|
const envelope = unwrapMcpToolEnvelope(result.data);
|
|
250
250
|
const code = envelope.code;
|
|
251
|
-
if (code != null && String(code) !== "0") throw new ConfigInvalidError(envelope.msg ?? "拉取项目列表失败", "运行 `
|
|
251
|
+
if (code != null && String(code) !== "0") throw new ConfigInvalidError(envelope.msg ?? "拉取项目列表失败", "运行 `beautx-cli project list` 确认权限");
|
|
252
252
|
const pageData = envelope.data ?? {};
|
|
253
253
|
const rows = Array.isArray(pageData.content) ? pageData.content : [];
|
|
254
254
|
return normalizeProjectListPage({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { l as readEnv, s as readActiveProject, t as ENV_KEYS } from "./env-vars-CXEHR_mk.mjs";
|
|
2
|
-
import { t as persistActiveProjectToHost } from "./env-callback-
|
|
2
|
+
import { t as persistActiveProjectToHost } from "./env-callback-CFDEremx.mjs";
|
|
3
3
|
//#region src/core/project-store.ts
|
|
4
4
|
/**
|
|
5
5
|
* Active estate (楼盘) — env-only; Host is the persistence layer via callback.
|
|
@@ -22,7 +22,7 @@ async function switchActiveProjectViaCallback(p) {
|
|
|
22
22
|
}
|
|
23
23
|
var NoActiveProjectError = class extends Error {
|
|
24
24
|
code = "NO_ACTIVE_PROJECT";
|
|
25
|
-
hint = "先用 `
|
|
25
|
+
hint = "先用 `beautx-cli project list [--keyword <kw>]` 查看可选楼盘,再用 `beautx-cli project use --project-id <id>` 激活;或由 Host 预置当前项目。";
|
|
26
26
|
constructor() {
|
|
27
27
|
super("当前未设置激活楼盘");
|
|
28
28
|
this.name = "NoActiveProjectError";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { n as mcpCall } from "./mcp-client-
|
|
2
|
-
import { n as writeError, t as formatCliArg } from "./format-
|
|
1
|
+
import { n as mcpCall } from "./mcp-client-DI6jZo4q.mjs";
|
|
2
|
+
import { n as writeError, t as formatCliArg } from "./format-BNVLMAn6.mjs";
|
|
3
3
|
import { n as resolveProjectId, t as projectIdCliArg } from "./mcp-args-CYOCdClW.mjs";
|
|
4
|
-
import { n as writeMcpDataResult } from "./mcp-result-
|
|
5
|
-
import { i as requireActiveProject } from "./project-store-
|
|
6
|
-
import { t as csvToArray } from "./util-
|
|
4
|
+
import { n as writeMcpDataResult } from "./mcp-result-Bn-A5DcX.mjs";
|
|
5
|
+
import { i as requireActiveProject } from "./project-store-C_ufXzPf.mjs";
|
|
6
|
+
import { t as csvToArray } from "./util-rFGZMvr6.mjs";
|
|
7
7
|
import { defineCommand } from "citty";
|
|
8
8
|
//#region src/commands/qa.ts
|
|
9
9
|
/**
|
|
10
|
-
* `
|
|
10
|
+
* `beautx-cli qa <message>` — sql-agent MCP natural language query.
|
|
11
11
|
*/
|
|
12
12
|
var qa_default = defineCommand({
|
|
13
13
|
meta: {
|
|
@@ -5,7 +5,7 @@ var resistance_default = defineCommand({
|
|
|
5
5
|
name: "resistance",
|
|
6
6
|
description: "客户抗性点标签分页查询"
|
|
7
7
|
},
|
|
8
|
-
subCommands: { list: () => import("./list-
|
|
8
|
+
subCommands: { list: () => import("./list-D8XgqSh0.mjs").then((m) => m.default) }
|
|
9
9
|
});
|
|
10
10
|
//#endregion
|
|
11
11
|
export { resistance_default as default };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { n as mcpCall } from "./mcp-client-
|
|
2
|
-
import { n as writeError, t as formatCliArg } from "./format-
|
|
1
|
+
import { n as mcpCall } from "./mcp-client-DI6jZo4q.mjs";
|
|
2
|
+
import { n as writeError, t as formatCliArg } from "./format-BNVLMAn6.mjs";
|
|
3
3
|
import { i as tenantIdCliArg, n as resolveProjectId, r as resolveTenantId, t as projectIdCliArg } from "./mcp-args-CYOCdClW.mjs";
|
|
4
|
-
import { n as writeMcpDataResult } from "./mcp-result-
|
|
5
|
-
import { i as requireActiveProject } from "./project-store-
|
|
6
|
-
import { t as csvToArray } from "./util-
|
|
4
|
+
import { n as writeMcpDataResult } from "./mcp-result-Bn-A5DcX.mjs";
|
|
5
|
+
import { i as requireActiveProject } from "./project-store-C_ufXzPf.mjs";
|
|
6
|
+
import { t as csvToArray } from "./util-rFGZMvr6.mjs";
|
|
7
7
|
import { defineCommand } from "citty";
|
|
8
8
|
//#region src/commands/kb/search.ts
|
|
9
9
|
/**
|
|
10
|
-
* `
|
|
10
|
+
* `beautx-cli kb search <query>` — hybrid knowledge-base retrieval via MCP.
|
|
11
11
|
*/
|
|
12
12
|
var search_default = defineCommand({
|
|
13
13
|
meta: {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { n as writeError, t as formatCliArg } from "./format-
|
|
1
|
+
import { n as writeError, t as formatCliArg } from "./format-BNVLMAn6.mjs";
|
|
2
2
|
import { n as resolveProjectId, t as projectIdCliArg } from "./mcp-args-CYOCdClW.mjs";
|
|
3
|
-
import { t as mcpCallPage } from "./mcp-result-
|
|
4
|
-
import { i as requireActiveProject } from "./project-store-
|
|
5
|
-
import { r as toLocalDateTime } from "./util-
|
|
3
|
+
import { t as mcpCallPage } from "./mcp-result-Bn-A5DcX.mjs";
|
|
4
|
+
import { i as requireActiveProject } from "./project-store-C_ufXzPf.mjs";
|
|
5
|
+
import { r as toLocalDateTime } from "./util-rFGZMvr6.mjs";
|
|
6
6
|
import { defineCommand } from "citty";
|
|
7
7
|
//#region src/commands/visit/summary.ts
|
|
8
8
|
/**
|
|
9
|
-
* `
|
|
9
|
+
* `beautx-cli visit summary` — template-center reception summaries via MCP.
|
|
10
10
|
*/
|
|
11
11
|
var summary_default = defineCommand({
|
|
12
12
|
meta: {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { n as mcpCall } from "./mcp-client-
|
|
2
|
-
import { n as writeError, t as formatCliArg } from "./format-
|
|
1
|
+
import { n as mcpCall } from "./mcp-client-DI6jZo4q.mjs";
|
|
2
|
+
import { n as writeError, t as formatCliArg } from "./format-BNVLMAn6.mjs";
|
|
3
3
|
import { n as resolveProjectId, t as projectIdCliArg } from "./mcp-args-CYOCdClW.mjs";
|
|
4
|
-
import { n as writeMcpDataResult } from "./mcp-result-
|
|
5
|
-
import { i as requireActiveProject } from "./project-store-
|
|
4
|
+
import { n as writeMcpDataResult } from "./mcp-result-Bn-A5DcX.mjs";
|
|
5
|
+
import { i as requireActiveProject } from "./project-store-C_ufXzPf.mjs";
|
|
6
6
|
import { defineCommand } from "citty";
|
|
7
7
|
//#region src/commands/audio/text.ts
|
|
8
8
|
/**
|
|
9
|
-
* `
|
|
9
|
+
* `beautx-cli audio text <audio-id>` — single recording transcript via MCP.
|
|
10
10
|
*/
|
|
11
11
|
var text_default = defineCommand({
|
|
12
12
|
meta: {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { r as resolveProjectForUse, t as invalidateProjectAccessCache } from "./project-access-
|
|
2
|
-
import { n as writeError, r as writeResult, t as formatCliArg } from "./format-
|
|
3
|
-
import { a as switchActiveProjectViaCallback, t as assertProjectSwitchAllowed } from "./project-store-
|
|
1
|
+
import { r as resolveProjectForUse, t as invalidateProjectAccessCache } from "./project-access-BQZU6NdE.mjs";
|
|
2
|
+
import { n as writeError, r as writeResult, t as formatCliArg } from "./format-BNVLMAn6.mjs";
|
|
3
|
+
import { a as switchActiveProjectViaCallback, t as assertProjectSwitchAllowed } from "./project-store-C_ufXzPf.mjs";
|
|
4
4
|
import { defineCommand } from "citty";
|
|
5
5
|
//#region src/commands/project/use.ts
|
|
6
6
|
/**
|
|
7
|
-
* `
|
|
7
|
+
* `beautx-cli project use` — persist active tenant/estate via Host env callback.
|
|
8
8
|
*/
|
|
9
9
|
var use_default = defineCommand({
|
|
10
10
|
meta: {
|
|
@@ -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-C8wT5sUn.mjs").then((m) => m.default),
|
|
10
|
+
summary: () => import("./summary-B9x_AfxV.mjs").then((m) => m.default)
|
|
11
11
|
}
|
|
12
12
|
});
|
|
13
13
|
//#endregion
|