@wirecat/bitrix24-cli 0.3.0 → 0.4.0
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/CHANGELOG.md +52 -0
- package/dist/api-keys.d.ts +30 -8
- package/dist/api-keys.d.ts.map +1 -1
- package/dist/api-keys.js +81 -18
- package/dist/api-keys.js.map +1 -1
- package/dist/bin/b24.js +2 -2
- package/dist/bitrix/methods.d.ts.map +1 -1
- package/dist/bitrix/methods.js +7 -3
- package/dist/bitrix/methods.js.map +1 -1
- package/dist/bitrix/transport.d.ts +4 -7
- package/dist/bitrix/transport.d.ts.map +1 -1
- package/dist/bitrix/transport.js +12 -16
- package/dist/bitrix/transport.js.map +1 -1
- package/dist/bundle/{all-profiles-QJ444GSX.js → all-profiles-MBQZCOVK.js} +6 -6
- package/dist/bundle/{anthropic-RHRAVHC2.js → anthropic-QCYLKSJJ.js} +4 -4
- package/dist/bundle/{app-server-QIT6S7AZ.js → app-server-FSLZ2Y6N.js} +42 -42
- package/dist/bundle/b24.js +12 -12
- package/dist/bundle/{bun-H6RSODZ3.js → bun-UYRQXF33.js} +2 -2
- package/dist/bundle/{bun-sqlite-BO4LTQHX.js → bun-sqlite-GXME7EMT.js} +3 -3
- package/dist/bundle/{chunk-MBDK4YXG.js → chunk-2D5W4LWL.js} +1 -1
- package/dist/bundle/{chunk-U5ACMCAQ.js → chunk-2IZ6GGU2.js} +151 -151
- package/dist/bundle/{chunk-VEWWAGTD.js → chunk-4OVK5XW2.js} +8 -8
- package/dist/bundle/{chunk-45AKJVKV.js → chunk-66QLBRIT.js} +1 -1
- package/dist/bundle/{chunk-P364PLIK.js → chunk-6BLVBGRK.js} +9 -9
- package/dist/bundle/{chunk-FOTREPNS.js → chunk-6ERX33NC.js} +8 -8
- package/dist/bundle/{chunk-LRGYKOCP.js → chunk-AMVRNYD6.js} +1 -1
- package/dist/bundle/{chunk-YZ5LHE5Q.js → chunk-AOUNT22U.js} +2 -2
- package/dist/bundle/{chunk-ZDQQCXFG.js → chunk-B252WFK7.js} +13 -13
- package/dist/bundle/{chunk-WKRQ44EH.js → chunk-BHZ5VDDY.js} +13 -13
- package/dist/bundle/{chunk-ZIAQPTUS.js → chunk-COOOXDKZ.js} +3 -3
- package/dist/bundle/{chunk-W5YAO5G5.js → chunk-CR3TLGM4.js} +9 -4
- package/dist/bundle/{chunk-D5S6QV6R.js → chunk-D2IRPC5I.js} +6 -6
- package/dist/bundle/{chunk-POC3V3AO.js → chunk-DQIQIZQS.js} +297 -256
- package/dist/bundle/{chunk-QGMDQ2PM.js → chunk-EIGPMMGC.js} +3 -3
- package/dist/bundle/{chunk-WTPMJYMD.js → chunk-ELBOQHJA.js} +45 -45
- package/dist/bundle/{chunk-LSPIOT6Z.js → chunk-EQLWU6ZB.js} +7 -7
- package/dist/bundle/{chunk-WII44RXN.js → chunk-F5NH3UJQ.js} +2 -2
- package/dist/bundle/{chunk-HAXNUIGQ.js → chunk-GTDOUP6L.js} +26 -23
- package/dist/bundle/{chunk-QQXH2OPB.js → chunk-GTFRSYYJ.js} +17 -12
- package/dist/bundle/{chunk-H2ADPPSH.js → chunk-GTMCLOYY.js} +670 -465
- package/dist/bundle/{chunk-7GRZAKBB.js → chunk-IF27EQN6.js} +2 -2
- package/dist/bundle/{chunk-FZL7F5NR.js → chunk-IWEWDVZ6.js} +22 -22
- package/dist/bundle/{program-H3TGGRQ6.js → chunk-J7OMY6EO.js} +16654 -18332
- package/dist/bundle/{chunk-QIPTIUMJ.js → chunk-JAS3OZSP.js} +4 -4
- package/dist/bundle/{chunk-OTD2ZRXD.js → chunk-JB7OXYAU.js} +4 -4
- package/dist/bundle/{chunk-ZEW4P6AH.js → chunk-K7XWCZF6.js} +8 -8
- package/dist/bundle/{chunk-YYO7D2MO.js → chunk-LAYH344Y.js} +28 -28
- package/dist/bundle/{chunk-K3UIB6ZF.js → chunk-M5XMAUGZ.js} +2 -2
- package/dist/bundle/{chunk-2KCZ7BKW.js → chunk-MPI2FDJ4.js} +11 -11
- package/dist/bundle/{chunk-HGL63O5V.js → chunk-MY6FAZRA.js} +2 -2
- package/dist/bundle/{chunk-QC53QBNC.js → chunk-NDSOBIR3.js} +3 -3
- package/dist/bundle/{chunk-XRFJWHY5.js → chunk-NEK7LKC6.js} +4 -4
- package/dist/bundle/{chunk-2SNUMZ7S.js → chunk-NKLLI4B2.js} +6 -6
- package/dist/bundle/{chunk-QMPN6WKD.js → chunk-NWKXMMON.js} +100 -81
- package/dist/bundle/{chunk-P33NDCDI.js → chunk-O7FVOICH.js} +1 -1
- package/dist/bundle/{chunk-SFRNX2TI.js → chunk-OCRCVLZQ.js} +1 -1
- package/dist/bundle/{chunk-TE3FR6MI.js → chunk-OKDC6CLH.js} +5 -5
- package/dist/bundle/{chunk-DTXERR44.js → chunk-OWILUBCI.js} +2 -2
- package/dist/bundle/{chunk-CXL33BFL.js → chunk-OYLJHX74.js} +1 -1
- package/dist/bundle/{chunk-6WY72XVQ.js → chunk-POUSZWMP.js} +4 -4
- package/dist/bundle/{chunk-N6FLBXZS.js → chunk-Q4ILKTV4.js} +3 -3
- package/dist/bundle/{chunk-FLUEXJ4X.js → chunk-Q7Z5IMVY.js} +1 -1
- package/dist/bundle/{chunk-XJXONOB5.js → chunk-QVZSLBR6.js} +1 -1
- package/dist/bundle/{chunk-IRV2PCQ2.js → chunk-SBW2Y7AZ.js} +26 -26
- package/dist/bundle/{chunk-XNHSPHUN.js → chunk-UCLWWSQK.js} +2 -2
- package/dist/bundle/{chunk-BCF7P4FZ.js → chunk-UH56WLDS.js} +8 -8
- package/dist/bundle/{chunk-ZGZT5S6B.js → chunk-VMQL4GNH.js} +55 -55
- package/dist/bundle/{chunk-XD4FRDSL.js → chunk-VTIUWHZ3.js} +5 -5
- package/dist/bundle/{chunk-SGRYYE4X.js → chunk-WJRBX5QB.js} +4 -4
- package/dist/bundle/{chunk-VL6SPMZV.js → chunk-XG6QKS7L.js} +5 -5
- package/dist/bundle/{chunk-RRJNNPR4.js → chunk-XKQZLR2X.js} +1 -1
- package/dist/bundle/{chunk-QSNROIJL.js → chunk-XOPMSWFC.js} +9 -9
- package/dist/bundle/{chunk-EVYSBZ3I.js → chunk-XR5SUCAC.js} +4 -4
- package/dist/bundle/{chunk-PH5FZX6E.js → chunk-Y5PPMGCS.js} +2 -2
- package/dist/bundle/{chunk-EXOOKUEA.js → chunk-YFZXI3NN.js} +2 -2
- package/dist/bundle/{chunk-CNNEA2M4.js → chunk-ZU4HXKEW.js} +3 -3
- package/dist/bundle/command-contract-UON4EIC4.js +30 -0
- package/dist/bundle/{decode-5ZPLTYV6.js → decode-IF2F2SFC.js} +3 -3
- package/dist/bundle/{echarts-J6LAPIX7.js → echarts-WDDVEJO2.js} +2 -2
- package/dist/bundle/{embed-YG5LDHME.js → embed-VDUGYEAR.js} +4 -4
- package/dist/bundle/{embedder-7FNUA5OZ.js → embedder-DUN62H3Z.js} +7 -7
- package/dist/bundle/{first-run-JPZNWIJN.js → first-run-NDGYBQEN.js} +8 -8
- package/dist/bundle/first-screen-QAVKP5RF.js +28 -0
- package/dist/bundle/{instructions-AXWTQHMR.js → instructions-JIIKWS7X.js} +1 -1
- package/dist/bundle/{mcp-7F46P6AM.js → mcp-33JX6KP4.js} +2 -2
- package/dist/bundle/{mcp-5RSWNTHS.js → mcp-57EQ6QJO.js} +58 -47
- package/dist/bundle/mcp-PFJER2DE.js +87 -0
- package/dist/bundle/{node-CWKAIOEM.js → node-K57WT42O.js} +2 -2
- package/dist/bundle/{node-sqlite-LSEKVRDA.js → node-sqlite-KS6ORRIG.js} +4 -4
- package/dist/bundle/{oauth-THYNLRLD.js → oauth-SLSANN37.js} +5 -5
- package/dist/bundle/{open-E47QYKFC.js → open-WJPHADEX.js} +3 -3
- package/dist/bundle/{openai-EWSGC3BC.js → openai-HXB3GTOD.js} +12 -12
- package/dist/bundle/{process-WKTEA3WE.js → process-P73TFAXT.js} +1 -1
- package/dist/bundle/program-7BMG5NIN.js +2250 -0
- package/dist/bundle/{prompt-CAQ7QR3U.js → prompt-WDPV37R4.js} +3 -3
- package/dist/bundle/{recognize-6KGHNZC3.js → recognize-CXIFL6IV.js} +2 -2
- package/dist/bundle/{remote-3UO2WDC3.js → remote-Q4VJ4OQW.js} +5 -5
- package/dist/bundle/{rerank-2JVDPZBX.js → rerank-SUFYK63I.js} +5 -5
- package/dist/bundle/{serve-ES7AG5IK.js → serve-B7PGFOC2.js} +7 -7
- package/dist/bundle/server-4DBNJWW6.js +58 -0
- package/dist/bundle/server-OKE7SXJ2.js +45 -0
- package/dist/bundle/{state-7NH5G4XJ.js → state-EZCCXQV7.js} +4 -4
- package/dist/bundle/{store-7O4JQD2Z.js → store-MZ7JBYR6.js} +12 -12
- package/dist/bundle/store-maintenance-command-T5QZMENJ.js +47 -0
- package/dist/commands/api.d.ts.map +1 -1
- package/dist/commands/api.js +57 -7
- package/dist/commands/api.js.map +1 -1
- package/dist/commands/crm-writes.d.ts.map +1 -1
- package/dist/commands/crm-writes.js +24 -8
- package/dist/commands/crm-writes.js.map +1 -1
- package/dist/commands/crm.d.ts.map +1 -1
- package/dist/commands/crm.js +29 -3
- package/dist/commands/crm.js.map +1 -1
- package/dist/commands/fields.d.ts +3 -0
- package/dist/commands/fields.d.ts.map +1 -0
- package/dist/commands/fields.js +45 -0
- package/dist/commands/fields.js.map +1 -0
- package/dist/commands/write.d.ts +6 -1
- package/dist/commands/write.d.ts.map +1 -1
- package/dist/commands/write.js +7 -5
- package/dist/commands/write.js.map +1 -1
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +2 -1
- package/dist/config.js.map +1 -1
- package/dist/crm/conditions.js +1 -1
- package/dist/crm/conditions.js.map +1 -1
- package/dist/crm/custom-query.d.ts +19 -0
- package/dist/crm/custom-query.d.ts.map +1 -0
- package/dist/crm/custom-query.js +79 -0
- package/dist/crm/custom-query.js.map +1 -0
- package/dist/crm/deal.d.ts +1 -0
- package/dist/crm/deal.d.ts.map +1 -1
- package/dist/crm/fields.d.ts +44 -0
- package/dist/crm/fields.d.ts.map +1 -0
- package/dist/crm/fields.js +143 -0
- package/dist/crm/fields.js.map +1 -0
- package/dist/crm/items.d.ts +7 -1
- package/dist/crm/items.d.ts.map +1 -1
- package/dist/crm/items.js +17 -15
- package/dist/crm/items.js.map +1 -1
- package/dist/crm/lead.d.ts +1 -0
- package/dist/crm/lead.d.ts.map +1 -1
- package/dist/crm/organization.d.ts +1 -0
- package/dist/crm/organization.d.ts.map +1 -1
- package/dist/crm/person.d.ts +1 -0
- package/dist/crm/person.d.ts.map +1 -1
- package/dist/crm/values.d.ts +7 -1
- package/dist/crm/values.d.ts.map +1 -1
- package/dist/crm/values.js +12 -3
- package/dist/crm/values.js.map +1 -1
- package/dist/mcp.d.ts.map +1 -1
- package/dist/mcp.js +4 -1
- package/dist/mcp.js.map +1 -1
- package/dist/program.d.ts.map +1 -1
- package/dist/program.js +4 -1
- package/dist/program.js.map +1 -1
- package/dist/reasons.d.ts.map +1 -1
- package/dist/reasons.js +6 -1
- package/dist/reasons.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +3 -3
- package/skills/bitrix24-cli/SKILL.md +8 -3
- package/dist/bundle/command-contract-OKQOE6G4.js +0 -30
- package/dist/bundle/first-screen-VQM4MTS7.js +0 -28
- package/dist/bundle/mcp-J5R5A65I.js +0 -87
- package/dist/bundle/server-5LE5LNUQ.js +0 -45
- package/dist/bundle/server-BU4VBM6S.js +0 -58
- package/dist/bundle/store-maintenance-command-UDVGEY2D.js +0 -47
- /package/dist/bundle/{chunk-4PDYYS5K.js → chunk-NDTJE6JQ.js} +0 -0
|
@@ -2,14 +2,14 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
answeredWire
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-XKQZLR2X.js";
|
|
6
6
|
import {
|
|
7
7
|
CALLER_META_KEY,
|
|
8
8
|
PROXY_CLIENT_NAME,
|
|
9
9
|
StdioServerTransport,
|
|
10
10
|
callerOf,
|
|
11
11
|
serveStdio
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-IF27EQN6.js";
|
|
13
13
|
import {
|
|
14
14
|
McpServer
|
|
15
15
|
} from "./chunk-5D4AEUVA.js";
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
__name
|
|
18
18
|
} from "./chunk-ZVVMGPBJ.js";
|
|
19
19
|
|
|
20
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/mcp/all-profiles.js
|
|
21
21
|
import { spawn } from "node:child_process";
|
|
22
22
|
import { randomUUID } from "node:crypto";
|
|
23
23
|
var PROTOCOL = "2025-06-18";
|
|
@@ -251,7 +251,7 @@ var serveAllProfilesOverStdio = /* @__PURE__ */ __name(async (options, io = {})
|
|
|
251
251
|
}, "serveAllProfilesOverStdio");
|
|
252
252
|
var serveAllProfilesOverHttp = /* @__PURE__ */ __name(async (options, http) => {
|
|
253
253
|
const { build, close } = allProfilesServer(options);
|
|
254
|
-
const { serveOverHttp } = await import("./serve-
|
|
254
|
+
const { serveOverHttp } = await import("./serve-B7PGFOC2.js");
|
|
255
255
|
const listening = await serveOverHttp(build, {
|
|
256
256
|
...http,
|
|
257
257
|
appName: options.command,
|
|
@@ -5,15 +5,15 @@ import {
|
|
|
5
5
|
readLock,
|
|
6
6
|
releaseLock,
|
|
7
7
|
takeLock
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-Q4ILKTV4.js";
|
|
9
9
|
import {
|
|
10
10
|
__name
|
|
11
11
|
} from "./chunk-ZVVMGPBJ.js";
|
|
12
12
|
|
|
13
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
13
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/mcp/http/state.js
|
|
14
14
|
import { existsSync as existsSync2, readFileSync as readFileSync2 } from "node:fs";
|
|
15
15
|
|
|
16
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/mcp/http/activity.js
|
|
17
17
|
import { randomBytes } from "node:crypto";
|
|
18
18
|
import { chmodSync, existsSync, mkdirSync, readFileSync, renameSync, writeFileSync } from "node:fs";
|
|
19
19
|
import { dirname } from "node:path";
|
|
@@ -86,7 +86,7 @@ var activityRecorder = /* @__PURE__ */ __name((path, now = Date.now) => {
|
|
|
86
86
|
};
|
|
87
87
|
}, "activityRecorder");
|
|
88
88
|
|
|
89
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
89
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/mcp/http/state.js
|
|
90
90
|
var ACCESS_SECONDS = 60 * 60;
|
|
91
91
|
var REFRESH_SECONDS = 30 * 24 * 60 * 60;
|
|
92
92
|
var readStored = /* @__PURE__ */ __name((path) => existsSync2(path) ? JSON.parse(readFileSync2(path, "utf8")) : { clients: [], tokens: [] }, "readStored");
|
|
@@ -2,25 +2,25 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
botInstructions
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-66QLBRIT.js";
|
|
6
6
|
import {
|
|
7
7
|
answered,
|
|
8
8
|
normal,
|
|
9
9
|
registerCommands,
|
|
10
10
|
runCommandForAgent,
|
|
11
11
|
toolsFromCommands
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-NWKXMMON.js";
|
|
13
13
|
import {
|
|
14
14
|
agentJson,
|
|
15
15
|
skillResource
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-BHZ5VDDY.js";
|
|
17
17
|
import {
|
|
18
18
|
callerOf,
|
|
19
19
|
serveStdio
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-IF27EQN6.js";
|
|
21
21
|
import {
|
|
22
22
|
wholeList
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-DQIQIZQS.js";
|
|
24
24
|
import {
|
|
25
25
|
MESSENGER_CHANGE_REFUSAL,
|
|
26
26
|
changesMessenger,
|
|
@@ -28,19 +28,19 @@ import {
|
|
|
28
28
|
itemOf,
|
|
29
29
|
readOnlyLockOf,
|
|
30
30
|
readOnlyRefusal
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-2IZ6GGU2.js";
|
|
32
32
|
import {
|
|
33
33
|
McpServer
|
|
34
34
|
} from "./chunk-5D4AEUVA.js";
|
|
35
35
|
import {
|
|
36
36
|
mcpErrorResult,
|
|
37
37
|
object
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-SBW2Y7AZ.js";
|
|
39
39
|
import {
|
|
40
40
|
__name
|
|
41
41
|
} from "./chunk-ZVVMGPBJ.js";
|
|
42
42
|
|
|
43
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
43
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/mcp/bot/server.js
|
|
44
44
|
import { randomUUID } from "node:crypto";
|
|
45
45
|
var body = /* @__PURE__ */ __name((command, value) => Array.isArray(value) ? wholeList(`bot ${command}`, value) : value !== null && typeof value === "object" && ("item" in value || "items" in value) ? value : itemOf(value !== null && typeof value === "object" ? value : { value }), "body");
|
|
46
46
|
var createBotServer = /* @__PURE__ */ __name((options) => {
|
|
@@ -12,13 +12,13 @@ import {
|
|
|
12
12
|
registerPrompts,
|
|
13
13
|
stdinFieldOf,
|
|
14
14
|
syncsFirst
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-GTDOUP6L.js";
|
|
16
16
|
import {
|
|
17
17
|
mcpUrlOf
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-UCLWWSQK.js";
|
|
19
19
|
import {
|
|
20
20
|
answeredWire
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-XKQZLR2X.js";
|
|
22
22
|
import {
|
|
23
23
|
BinaryResource,
|
|
24
24
|
Picture,
|
|
@@ -39,21 +39,21 @@ import {
|
|
|
39
39
|
tool,
|
|
40
40
|
toolKey,
|
|
41
41
|
toolsFromCommands
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-NWKXMMON.js";
|
|
43
43
|
import {
|
|
44
44
|
agentJson,
|
|
45
45
|
skillResource
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-BHZ5VDDY.js";
|
|
47
47
|
import {
|
|
48
48
|
StdioServerTransport,
|
|
49
49
|
callerOf,
|
|
50
50
|
callingAgent,
|
|
51
51
|
serveStdio
|
|
52
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-IF27EQN6.js";
|
|
53
53
|
import {
|
|
54
54
|
connectedFor,
|
|
55
55
|
guardFor
|
|
56
|
-
} from "./chunk-
|
|
56
|
+
} from "./chunk-IWEWDVZ6.js";
|
|
57
57
|
import {
|
|
58
58
|
capability,
|
|
59
59
|
dateWindow,
|
|
@@ -62,10 +62,10 @@ import {
|
|
|
62
62
|
servicesFor,
|
|
63
63
|
storedDeps,
|
|
64
64
|
wholeList
|
|
65
|
-
} from "./chunk-
|
|
65
|
+
} from "./chunk-DQIQIZQS.js";
|
|
66
66
|
import {
|
|
67
67
|
findCommand
|
|
68
|
-
} from "./chunk-
|
|
68
|
+
} from "./chunk-NEK7LKC6.js";
|
|
69
69
|
import {
|
|
70
70
|
DEFAULT_OUTPUT_BYTES,
|
|
71
71
|
changesAuthorityAt,
|
|
@@ -80,35 +80,35 @@ import {
|
|
|
80
80
|
sealed,
|
|
81
81
|
snakeKeys,
|
|
82
82
|
typedCommand
|
|
83
|
-
} from "./chunk-
|
|
83
|
+
} from "./chunk-2IZ6GGU2.js";
|
|
84
84
|
import {
|
|
85
85
|
isCliFailure,
|
|
86
86
|
withCaller
|
|
87
|
-
} from "./chunk-
|
|
87
|
+
} from "./chunk-6ERX33NC.js";
|
|
88
88
|
import {
|
|
89
89
|
instructions
|
|
90
|
-
} from "./chunk-
|
|
90
|
+
} from "./chunk-Q7Z5IMVY.js";
|
|
91
91
|
import {
|
|
92
92
|
McpServer,
|
|
93
93
|
ResourceTemplate
|
|
94
94
|
} from "./chunk-5D4AEUVA.js";
|
|
95
95
|
import {
|
|
96
96
|
mcpHttpMarker
|
|
97
|
-
} from "./chunk-
|
|
97
|
+
} from "./chunk-JB7OXYAU.js";
|
|
98
98
|
import {
|
|
99
99
|
warmEmbedders
|
|
100
|
-
} from "./chunk-
|
|
100
|
+
} from "./chunk-NKLLI4B2.js";
|
|
101
101
|
import {
|
|
102
102
|
levelFor,
|
|
103
103
|
readKeysForCommand
|
|
104
|
-
} from "./chunk-
|
|
104
|
+
} from "./chunk-VTIUWHZ3.js";
|
|
105
105
|
import {
|
|
106
106
|
openStore,
|
|
107
107
|
pdfPreviewLimits
|
|
108
|
-
} from "./chunk-
|
|
108
|
+
} from "./chunk-GTMCLOYY.js";
|
|
109
109
|
import {
|
|
110
110
|
timezoneOf
|
|
111
|
-
} from "./chunk-
|
|
111
|
+
} from "./chunk-VMQL4GNH.js";
|
|
112
112
|
import {
|
|
113
113
|
CliError,
|
|
114
114
|
description,
|
|
@@ -126,15 +126,15 @@ import {
|
|
|
126
126
|
strictObject,
|
|
127
127
|
string,
|
|
128
128
|
visibleControls
|
|
129
|
-
} from "./chunk-
|
|
129
|
+
} from "./chunk-SBW2Y7AZ.js";
|
|
130
130
|
import {
|
|
131
131
|
__name
|
|
132
132
|
} from "./chunk-ZVVMGPBJ.js";
|
|
133
133
|
|
|
134
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
134
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/mcp/server.js
|
|
135
135
|
import { randomUUID } from "node:crypto";
|
|
136
136
|
|
|
137
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
137
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/mcp/agent-log.js
|
|
138
138
|
var agentLog = /* @__PURE__ */ __name((open) => {
|
|
139
139
|
let held;
|
|
140
140
|
return {
|
|
@@ -153,7 +153,7 @@ var agentLog = /* @__PURE__ */ __name((open) => {
|
|
|
153
153
|
};
|
|
154
154
|
}, "agentLog");
|
|
155
155
|
|
|
156
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
156
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/mcp/resources.js
|
|
157
157
|
var LISTED = 100;
|
|
158
158
|
var registerResources = /* @__PURE__ */ __name((server, session, { command, name, limit, recorded, withStore, messenger, guard, assertRead }) => {
|
|
159
159
|
server.registerResource("chat", new ResourceTemplate(`${command}://chat/{id}`, {
|
|
@@ -191,7 +191,7 @@ var registerResources = /* @__PURE__ */ __name((server, session, { command, name
|
|
|
191
191
|
});
|
|
192
192
|
}, "registerResources");
|
|
193
193
|
|
|
194
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
194
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/mcp/session.js
|
|
195
195
|
var HARMLESS = /* @__PURE__ */ new Set(["validation_error", "not_found", "permission_error", "confirmation_required", "rate_limited"]);
|
|
196
196
|
var harmless = /* @__PURE__ */ __name((code) => HARMLESS.has(code), "harmless");
|
|
197
197
|
var MessengerSession = class {
|
|
@@ -266,7 +266,7 @@ var MessengerSession = class {
|
|
|
266
266
|
}
|
|
267
267
|
};
|
|
268
268
|
|
|
269
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
269
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/mcp/tools/attachments.js
|
|
270
270
|
var attachmentsTools = /* @__PURE__ */ __name((messenger) => {
|
|
271
271
|
const _command = messenger.app.command;
|
|
272
272
|
return {
|
|
@@ -320,7 +320,7 @@ var attachmentsTools = /* @__PURE__ */ __name((messenger) => {
|
|
|
320
320
|
};
|
|
321
321
|
}, "attachmentsTools");
|
|
322
322
|
|
|
323
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
323
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/mcp/tools/messages-photo.js
|
|
324
324
|
var PHOTO_LIMIT = 512 * 1024;
|
|
325
325
|
var IMAGE_TYPES = [
|
|
326
326
|
["image/jpeg", (b) => b[0] === 255 && b[1] === 216 && b[2] === 255],
|
|
@@ -374,7 +374,7 @@ var readUpTo = /* @__PURE__ */ __name(async (file, limit, saveIt) => {
|
|
|
374
374
|
return new Uint8Array(Buffer.concat(chunks));
|
|
375
375
|
}, "readUpTo");
|
|
376
376
|
|
|
377
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
377
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/mcp/tools/stats.js
|
|
378
378
|
var statsTools = /* @__PURE__ */ __name((messenger) => ({
|
|
379
379
|
stats_charts: tool({
|
|
380
380
|
title: "A chart from a chat's statistics",
|
|
@@ -411,14 +411,14 @@ var statsTools = /* @__PURE__ */ __name((messenger) => ({
|
|
|
411
411
|
})
|
|
412
412
|
}), "statsTools");
|
|
413
413
|
|
|
414
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
414
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/mcp/tools.js
|
|
415
415
|
var pictureTools = /* @__PURE__ */ __name((messenger) => Object.fromEntries(Object.entries({
|
|
416
416
|
...messagesPhotoTools(messenger),
|
|
417
417
|
...attachmentsTools(messenger),
|
|
418
418
|
...statsTools(messenger)
|
|
419
419
|
}).map(([name, definition]) => [name, { ...definition, input: strictObject(definition.input.entries) }])), "pictureTools");
|
|
420
420
|
|
|
421
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
421
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/mcp/server.js
|
|
422
422
|
var PER_RUN = /* @__PURE__ */ new Set([
|
|
423
423
|
"streams",
|
|
424
424
|
"stdin",
|
|
@@ -742,7 +742,7 @@ var serveOverStdio = /* @__PURE__ */ __name(async (command, context, messenger,
|
|
|
742
742
|
}, "serveOverStdio");
|
|
743
743
|
var serveOverHttpUntilStopped = /* @__PURE__ */ __name(async (command, context, messenger, options, http) => {
|
|
744
744
|
const { session, embedders, build, log } = createServer(command, context, messenger, options);
|
|
745
|
-
const { serveOverHttp } = await import("./serve-
|
|
745
|
+
const { serveOverHttp } = await import("./serve-B7PGFOC2.js");
|
|
746
746
|
const appName = messenger.app.command;
|
|
747
747
|
const appEnvPrefix = messenger.app.envPrefix;
|
|
748
748
|
const listening = await serveOverHttp(build, {
|
|
@@ -2,12 +2,12 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
CliError
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-SBW2Y7AZ.js";
|
|
6
6
|
import {
|
|
7
7
|
__name
|
|
8
8
|
} from "./chunk-ZVVMGPBJ.js";
|
|
9
9
|
|
|
10
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/models/types.js
|
|
11
11
|
var MAX_MODEL_IMAGE_BYTES = 4 * 1024 * 1024;
|
|
12
12
|
var validateImages = /* @__PURE__ */ __name((images) => {
|
|
13
13
|
if (images === void 0)
|
|
@@ -3,28 +3,28 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
installerOf,
|
|
5
5
|
updateCommand
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-XR5SUCAC.js";
|
|
7
7
|
import {
|
|
8
8
|
QUESTIONS,
|
|
9
9
|
readSetupAnswers,
|
|
10
10
|
unanswered,
|
|
11
11
|
writeSetupAnswers
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-ZU4HXKEW.js";
|
|
13
13
|
import {
|
|
14
14
|
DEFAULT_STEMMERS,
|
|
15
15
|
LANGUAGES
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-4OVK5XW2.js";
|
|
17
17
|
import {
|
|
18
18
|
sharedConfigPath
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-OKDC6CLH.js";
|
|
20
20
|
import {
|
|
21
21
|
storePath
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-OWILUBCI.js";
|
|
23
23
|
import {
|
|
24
24
|
__name
|
|
25
25
|
} from "./chunk-ZVVMGPBJ.js";
|
|
26
26
|
|
|
27
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/cli/first-run.js
|
|
28
28
|
import { spawnSync } from "node:child_process";
|
|
29
29
|
import { accessSync, constants, realpathSync } from "node:fs";
|
|
30
30
|
import { delimiter, join } from "node:path";
|
|
@@ -82,7 +82,7 @@ var suggested = /* @__PURE__ */ __name((env, contentLanguages) => {
|
|
|
82
82
|
return (own.length ? own : LANGUAGES.filter(({ code }) => code === "en" || code === system)).map(({ name }) => name);
|
|
83
83
|
}, "suggested");
|
|
84
84
|
var askLanguages = /* @__PURE__ */ __name(async ({ command, env, io, contentLanguages }) => {
|
|
85
|
-
const { openStore } = await import("./store-
|
|
85
|
+
const { openStore } = await import("./store-MZ7JBYR6.js");
|
|
86
86
|
const store = await openStore({ env });
|
|
87
87
|
let rebuild = false;
|
|
88
88
|
try {
|
|
@@ -111,8 +111,8 @@ var askLanguages = /* @__PURE__ */ __name(async ({ command, env, io, contentLang
|
|
|
111
111
|
if (!rebuild)
|
|
112
112
|
return;
|
|
113
113
|
const [{ openCache }, { buildStems }] = await Promise.all([
|
|
114
|
-
import("./open-
|
|
115
|
-
import("./store-maintenance-command-
|
|
114
|
+
import("./open-WJPHADEX.js"),
|
|
115
|
+
import("./store-maintenance-command-T5QZMENJ.js")
|
|
116
116
|
]);
|
|
117
117
|
const database = await openCache(storePath(env));
|
|
118
118
|
try {
|
|
@@ -124,7 +124,7 @@ var askLanguages = /* @__PURE__ */ __name(async ({ command, env, io, contentLang
|
|
|
124
124
|
var askTools = /* @__PURE__ */ __name(async (run) => {
|
|
125
125
|
const { command, env, io } = run;
|
|
126
126
|
const installed = run.installed ?? ((name) => onPath(name, env));
|
|
127
|
-
const { WIRECAT_TOOLS } = await import("./first-screen-
|
|
127
|
+
const { WIRECAT_TOOLS } = await import("./first-screen-QAVKP5RF.js");
|
|
128
128
|
const others = WIRECAT_TOOLS.filter((tool) => tool.command !== command);
|
|
129
129
|
const missing = others.filter((tool) => !installed(tool.command));
|
|
130
130
|
io.say("Other WireCat tools \u2014 they share this store, so one search finds everything:");
|
|
@@ -197,7 +197,7 @@ var setupAtStart = /* @__PURE__ */ __name(async (start) => {
|
|
|
197
197
|
contentLanguages: start.contentLanguages,
|
|
198
198
|
all: start.path[0] === "setup",
|
|
199
199
|
io: {
|
|
200
|
-
ask: /* @__PURE__ */ __name(async (prompt) => (await import("./prompt-
|
|
200
|
+
ask: /* @__PURE__ */ __name(async (prompt) => (await import("./prompt-WDPV37R4.js")).readSecret(prompt, { input, echo: true }), "ask"),
|
|
201
201
|
say: /* @__PURE__ */ __name((text) => process.stderr.write(`${text}
|
|
202
202
|
`), "say")
|
|
203
203
|
}
|
|
@@ -8,12 +8,12 @@ import {
|
|
|
8
8
|
ACCESS_SECONDS,
|
|
9
9
|
REFRESH_SECONDS,
|
|
10
10
|
readStored
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-JB7OXYAU.js";
|
|
12
12
|
import {
|
|
13
13
|
__name
|
|
14
14
|
} from "./chunk-ZVVMGPBJ.js";
|
|
15
15
|
|
|
16
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/mcp/http/oauth.js
|
|
17
17
|
import { createHash, randomBytes, randomInt, timingSafeEqual } from "node:crypto";
|
|
18
18
|
import { chmodSync, mkdirSync, renameSync, rmSync, writeFileSync } from "node:fs";
|
|
19
19
|
import { dirname } from "node:path";
|
|
@@ -3,12 +3,12 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
CliError,
|
|
5
5
|
isCliError
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-SBW2Y7AZ.js";
|
|
7
7
|
import {
|
|
8
8
|
__name
|
|
9
9
|
} from "./chunk-ZVVMGPBJ.js";
|
|
10
10
|
|
|
11
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
11
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/http/body.js
|
|
12
12
|
var interrupted = /* @__PURE__ */ __name((signal) => isCliError(signal.reason) ? signal.reason : new CliError(signal.reason instanceof Error && signal.reason.name === "TimeoutError" ? "timeout" : "cancelled", "HTTP response read was interrupted"), "interrupted");
|
|
13
13
|
var checked = /* @__PURE__ */ __name((signal) => {
|
|
14
14
|
if (signal?.aborted)
|
|
@@ -93,7 +93,7 @@ var readJsonResponse = /* @__PURE__ */ __name(async (response, options) => {
|
|
|
93
93
|
}
|
|
94
94
|
}, "readJsonResponse");
|
|
95
95
|
|
|
96
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
96
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/http/index.js
|
|
97
97
|
var parseRetryAfter = /* @__PURE__ */ __name((header, now) => {
|
|
98
98
|
if (!header)
|
|
99
99
|
return void 0;
|
|
@@ -6,19 +6,19 @@ import {
|
|
|
6
6
|
answerSchema,
|
|
7
7
|
describeOptions,
|
|
8
8
|
metaOf
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-2IZ6GGU2.js";
|
|
10
10
|
import {
|
|
11
11
|
keyForCommand
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-VTIUWHZ3.js";
|
|
13
13
|
import {
|
|
14
14
|
CliError,
|
|
15
15
|
jsonSchemaOf
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-SBW2Y7AZ.js";
|
|
17
17
|
import {
|
|
18
18
|
__name
|
|
19
19
|
} from "./chunk-ZVVMGPBJ.js";
|
|
20
20
|
|
|
21
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/cli/command-contract.js
|
|
22
22
|
var SCHEMA_DIALECT = "https://json-schema.org/draft/2020-12/schema";
|
|
23
23
|
var outputOf = /* @__PURE__ */ __name((command) => {
|
|
24
24
|
const entity = answerEntitySchema(command);
|
|
@@ -5,10 +5,10 @@ import {
|
|
|
5
5
|
installFiles,
|
|
6
6
|
megabytes,
|
|
7
7
|
sharedModelsDirectory
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-WJRBX5QB.js";
|
|
9
9
|
import {
|
|
10
10
|
CliError
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-SBW2Y7AZ.js";
|
|
12
12
|
import {
|
|
13
13
|
importFrom
|
|
14
14
|
} from "./chunk-Y5E2WNWB.js";
|
|
@@ -16,12 +16,12 @@ import {
|
|
|
16
16
|
__name
|
|
17
17
|
} from "./chunk-ZVVMGPBJ.js";
|
|
18
18
|
|
|
19
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/embeddings/embed.js
|
|
20
20
|
import { readFileSync as readFileSync2 } from "node:fs";
|
|
21
21
|
import { availableParallelism } from "node:os";
|
|
22
22
|
import { basename, join as join2 } from "node:path";
|
|
23
23
|
|
|
24
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/embeddings/onnx-runtime.js
|
|
25
25
|
import { createHash } from "node:crypto";
|
|
26
26
|
import { copyFileSync, mkdirSync, mkdtempSync, readFileSync, renameSync, rmSync, statSync, writeFileSync } from "node:fs";
|
|
27
27
|
import { join } from "node:path";
|
|
@@ -678,7 +678,7 @@ var Unzip = /* @__PURE__ */ (function() {
|
|
|
678
678
|
return Unzip2;
|
|
679
679
|
})();
|
|
680
680
|
|
|
681
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
681
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/embeddings/onnx-runtime.js
|
|
682
682
|
var ONNX_RUNTIME_VERSION = "1.30.0";
|
|
683
683
|
var release = /* @__PURE__ */ __name((name, sha256, bytes) => ({
|
|
684
684
|
name,
|
|
@@ -858,7 +858,7 @@ var openSession = /* @__PURE__ */ __name(async (bytes, threads, options = {}) =>
|
|
|
858
858
|
return { ort, session: await ort.InferenceSession.create(bytes, options) };
|
|
859
859
|
}, "openSession");
|
|
860
860
|
|
|
861
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
861
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/embeddings/embed.js
|
|
862
862
|
var textModelsDirectory = /* @__PURE__ */ __name((env = process.env) => sharedModelsDirectory("text", env), "textModelsDirectory");
|
|
863
863
|
var placedText = /* @__PURE__ */ __name((model, directory) => model.files.map((file) => [file, join2(directory, model.id, file.name)]), "placedText");
|
|
864
864
|
var isTextModelInstalled = /* @__PURE__ */ __name((model, directory) => filesPresent(placedText(model, directory)), "isTextModelInstalled");
|