@wirecat/tg-cli 0.125.0 → 0.126.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/dist/bin/tg.js +2 -2
- package/dist/bundle/{adapter-H2LTOLOA.js → adapter-BXU3AVB7.js} +43 -43
- package/dist/bundle/{all-profiles-75HGEFL7.js → all-profiles-G5A6IROO.js} +6 -6
- package/dist/bundle/{anthropic-N54MKE4C.js → anthropic-SINVEVEM.js} +2 -2
- package/dist/bundle/{app-server-3N5INKKI.js → app-server-IHIQXPJF.js} +42 -38
- package/dist/bundle/{bot-api-V65KTEAH.js → bot-api-LGAVVYRM.js} +44 -44
- package/dist/bundle/{bot-history-TT2EAHEE.js → bot-history-5C35FGCD.js} +12 -12
- package/dist/bundle/{bun-LN4J7PA7.js → bun-2GK3YOP3.js} +2 -2
- package/dist/bundle/{bun-sqlite-6PDBFBUI.js → bun-sqlite-7DGADK3E.js} +3 -3
- package/dist/bundle/{chunk-FHPEUAHQ.js → chunk-2F2UMQMB.js} +164 -152
- package/dist/bundle/{chunk-SGHF75RQ.js → chunk-2LN6OJUB.js} +1 -1
- package/dist/bundle/{chunk-RZ7KBWDQ.js → chunk-4GR5YYGA.js} +2 -2
- package/dist/bundle/{chunk-VHD4V64E.js → chunk-5GINYFD4.js} +1 -1
- package/dist/bundle/{chunk-IN3NAFUN.js → chunk-5NLAGTWU.js} +7 -7
- package/dist/bundle/{chunk-GUPMDMFM.js → chunk-63DSHUNP.js} +5 -5
- package/dist/bundle/{chunk-HHG5FR5H.js → chunk-7FL2N6DM.js} +1 -1
- package/dist/bundle/{chunk-RX5GU7GQ.js → chunk-7UACPXDC.js} +494 -436
- package/dist/bundle/{chunk-GRDVBJCR.js → chunk-AA2NZAUT.js} +1 -1
- package/dist/bundle/{chunk-QVK7NF3A.js → chunk-ACLUVZ4I.js} +32 -28
- package/dist/bundle/{chunk-QYT6HDCL.js → chunk-AKUBJHE5.js} +1 -1
- package/dist/bundle/{chunk-DYOZ7CUV.js → chunk-AYEQMXRE.js} +1 -1
- package/dist/bundle/{chunk-VG3EQJYV.js → chunk-AZ7DSHQO.js} +31 -2
- package/dist/bundle/{chunk-AI2J3WJT.js → chunk-BSKYPHLB.js} +1 -1
- package/dist/bundle/{chunk-FUYCAROL.js → chunk-CK7DSGIK.js} +5 -5
- package/dist/bundle/{chunk-VUBSGQ2O.js → chunk-DGGAYHLN.js} +24 -22
- package/dist/bundle/{chunk-E4HDE5DN.js → chunk-F34EE5Y2.js} +2 -2
- package/dist/bundle/{chunk-AMPHPP4P.js → chunk-FYOHGIQP.js} +13 -13
- package/dist/bundle/{chunk-UTNK2PFE.js → chunk-G4RCT5RH.js} +12 -12
- package/dist/bundle/{chunk-DI3RJ3MJ.js → chunk-G4VVBR6U.js} +3 -3
- package/dist/bundle/{chunk-FSP74THJ.js → chunk-GI2ZUNOH.js} +4 -4
- package/dist/bundle/{chunk-DNCOELTM.js → chunk-GIY56MIB.js} +1 -1
- package/dist/bundle/{chunk-UG66U2T7.js → chunk-GOGGRLS6.js} +19 -13
- package/dist/bundle/{chunk-BLNMM3AX.js → chunk-HPFB4Y7P.js} +1 -1
- package/dist/bundle/{chunk-MK4IKICN.js → chunk-J2BUWK5U.js} +2 -2
- package/dist/bundle/{chunk-JC6HMPL7.js → chunk-JAKP5RWM.js} +3694 -3590
- package/dist/bundle/{chunk-6Y6SSZ34.js → chunk-JQ2RKLPU.js} +129 -83
- package/dist/bundle/{chunk-ZX5OSZHH.js → chunk-K4DXGJK4.js} +10 -10
- package/dist/bundle/{chunk-JB4BO5XZ.js → chunk-KSLZEXRF.js} +1 -1
- package/dist/bundle/{chunk-3GILMKQ2.js → chunk-L5PYWQDA.js} +2 -2
- package/dist/bundle/{chunk-TAFH5K5D.js → chunk-MA2XHO4O.js} +273 -242
- package/dist/bundle/{chunk-PCC7GWOS.js → chunk-MP47TE77.js} +3 -3
- package/dist/bundle/{chunk-OG2ONSH6.js → chunk-N2JSMP4N.js} +16 -16
- package/dist/bundle/{chunk-B252D7V4.js → chunk-NJ3FSKSU.js} +4 -6
- package/dist/bundle/{chunk-TVQBOIWC.js → chunk-OXB5P37M.js} +1 -1
- package/dist/bundle/{chunk-4TCBRKWQ.js → chunk-P2GNIWGG.js} +6 -6
- package/dist/bundle/{chunk-77Z3OGAT.js → chunk-PJ6FZXUR.js} +2 -2
- package/dist/bundle/{chunk-JKF7LZBU.js → chunk-QCLMP635.js} +5 -5
- package/dist/bundle/{chunk-X6436BYW.js → chunk-QGLB4D7J.js} +1 -1
- package/dist/bundle/{chunk-37SZHAEA.js → chunk-QMEPKUG3.js} +51 -50
- package/dist/bundle/{chunk-7OBSIDBJ.js → chunk-QOINWAQD.js} +2 -2
- package/dist/bundle/{chunk-CNEJQQMD.js → chunk-QYLYMOXN.js} +11 -11
- package/dist/bundle/{chunk-INZAZMUF.js → chunk-RFDPU4NO.js} +9 -4
- package/dist/bundle/{chunk-WH4T44L3.js → chunk-SL4S5GFR.js} +1 -1
- package/dist/bundle/{chunk-LU2CHHPC.js → chunk-SXVB2CVR.js} +2 -2
- package/dist/bundle/{chunk-EIGV2JKX.js → chunk-UIFQEXVP.js} +1 -1
- package/dist/bundle/{chunk-JCNKGZQG.js → chunk-W35POPPX.js} +16 -16
- package/dist/bundle/{chunk-NTHALPDT.js → chunk-W725T2V7.js} +2 -1
- package/dist/bundle/{chunk-4KIOWSDL.js → chunk-W75SKUY4.js} +2 -2
- package/dist/bundle/{chunk-VZDAVZYX.js → chunk-XGBXRDJP.js} +5 -5
- package/dist/bundle/{chunk-6HLB73UN.js → chunk-Y4724JRR.js} +2 -2
- package/dist/bundle/{chunk-S4SOS27T.js → chunk-Y5DGB7GP.js} +7 -7
- package/dist/bundle/{chunk-XTNOBJRP.js → chunk-ZXCQF6XV.js} +10 -10
- package/dist/bundle/{command-contract-JP6SCP7U.js → command-contract-ZEYY3ZXK.js} +13 -13
- package/dist/bundle/{command-server-entry-BLSFT3T6.js → command-server-entry-UWY6PQIV.js} +20 -20
- package/dist/bundle/{decode-NNLEQU7B.js → decode-QGMFQ6XX.js} +2 -2
- package/dist/bundle/{echarts-XAZHGDOM.js → echarts-GHU3GEWV.js} +2 -2
- package/dist/bundle/{embed-Q7ZCVSCO.js → embed-6DMEWQDO.js} +3 -3
- package/dist/bundle/{embedder-MVS3PVWQ.js → embedder-W2L7YZPW.js} +6 -6
- package/dist/bundle/{entry-XN3ZZAOK.js → entry-LPEXVFQC.js} +6 -6
- package/dist/bundle/{first-run-G4EFTONI.js → first-run-3UJ6SJF5.js} +5 -5
- package/dist/bundle/{first-screen-RIDJEPC3.js → first-screen-VCSY5QH5.js} +14 -14
- package/dist/bundle/{instructions-QDHYYZBU.js → instructions-RUVAH2IS.js} +1 -1
- package/dist/bundle/{node-3Y7OVY2U.js → node-RYSNHVBX.js} +2 -2
- package/dist/bundle/{node-sqlite-R2SBROJM.js → node-sqlite-J6ZL4LUY.js} +4 -4
- package/dist/bundle/{oauth-WSPWMWTV.js → oauth-B2QNZNSC.js} +4 -4
- package/dist/bundle/{open-VFLF4HRQ.js → open-OMUP5P6V.js} +2 -2
- package/dist/bundle/{openai-DFCKZZDV.js → openai-BT4BP4VQ.js} +12 -12
- package/dist/bundle/{process-VZKFAGNP.js → process-HG3QDD54.js} +1 -1
- package/dist/bundle/{program-2LB3CUZX.js → program-P2VATMKJ.js} +46 -46
- package/dist/bundle/{prompt-RVLA2PEY.js → prompt-BTIHH3Z4.js} +2 -2
- package/dist/bundle/{recognize-LEKNA3G5.js → recognize-CTSJXPIG.js} +1 -1
- package/dist/bundle/{remote-WG5V2I2G.js → remote-2FIGCMKL.js} +6 -6
- package/dist/bundle/{rerank-ONAEQVJ6.js → rerank-TI5SLEF4.js} +4 -4
- package/dist/bundle/{serve-BL2X6FZG.js → serve-IO3IM5C7.js} +6 -6
- package/dist/bundle/server-RIGXUTKZ.js +62 -0
- package/dist/bundle/{server-3LSC4BMK.js → server-WEPFFTYA.js} +31 -29
- package/dist/bundle/{sqlite-runtime-RQXPRH6C.js → sqlite-runtime-CTEYXX7L.js} +3 -3
- package/dist/bundle/{state-O7LRA526.js → state-GFHVDGHM.js} +3 -3
- package/dist/bundle/{store-HMJUPK45.js → store-RCK6HT4F.js} +9 -9
- package/dist/bundle/{store-7C4UAND2.js → store-Y5XC4LEM.js} +11 -11
- package/dist/bundle/store-maintenance-command-XH6VMCDU.js +52 -0
- package/dist/bundle/tg.js +3 -3
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +2 -2
- package/dist/bundle/server-7EYEEGJT.js +0 -62
- package/dist/bundle/store-maintenance-command-I7PSA3SZ.js +0 -52
|
@@ -2,7 +2,7 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
wirecatDirectory
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-W725T2V7.js";
|
|
6
6
|
import {
|
|
7
7
|
CliError
|
|
8
8
|
} from "./chunk-7KCBPAQS.js";
|
|
@@ -10,7 +10,7 @@ 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.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/speech/models.js
|
|
14
14
|
var huggingFace = /* @__PURE__ */ __name((repository, commit) => (name) => `https://huggingface.co/csukuangfj/${repository}/resolve/${commit}/${name}`, "huggingFace");
|
|
15
15
|
var gigaam = huggingFace("sherpa-onnx-nemo-transducer-punct-giga-am-v3-russian-2025-12-16", "a6039be7cee829a9044a69ac0ebaf1c191217c97");
|
|
16
16
|
var gigaamCtc = huggingFace("sherpa-onnx-nemo-ctc-punct-giga-am-v3-russian-2025-12-16", "4fb5407ff028a69fec516cdf4c10fac9ddea7c16");
|
|
@@ -137,7 +137,7 @@ var speechModel = /* @__PURE__ */ __name((id) => {
|
|
|
137
137
|
return model;
|
|
138
138
|
}, "speechModel");
|
|
139
139
|
|
|
140
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
140
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/speech/install.js
|
|
141
141
|
import { createHash, randomUUID } from "node:crypto";
|
|
142
142
|
import { createReadStream, createWriteStream, mkdirSync, statSync } from "node:fs";
|
|
143
143
|
import { rename, rm } from "node:fs/promises";
|
|
@@ -7,10 +7,10 @@ import {
|
|
|
7
7
|
agentJson,
|
|
8
8
|
commandAvailability,
|
|
9
9
|
failureContext
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-GOGGRLS6.js";
|
|
11
11
|
import {
|
|
12
12
|
callerOf
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-J2BUWK5U.js";
|
|
14
14
|
import {
|
|
15
15
|
QUERY_ARGUMENT,
|
|
16
16
|
lentConnection,
|
|
@@ -18,10 +18,10 @@ import {
|
|
|
18
18
|
refuseLacking,
|
|
19
19
|
servicesFor,
|
|
20
20
|
storeModeDeps
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-MA2XHO4O.js";
|
|
22
22
|
import {
|
|
23
23
|
MAX_BUFFERED_INPUT
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-2LN6OJUB.js";
|
|
25
25
|
import {
|
|
26
26
|
DEFAULT_OUTPUT_BYTES,
|
|
27
27
|
ENTITIES,
|
|
@@ -41,23 +41,23 @@ import {
|
|
|
41
41
|
refuseStoreChange,
|
|
42
42
|
sealed,
|
|
43
43
|
startRecording
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-2F2UMQMB.js";
|
|
45
45
|
import {
|
|
46
46
|
currentCaller,
|
|
47
47
|
keepsSuccess,
|
|
48
48
|
runContextOf,
|
|
49
49
|
withCaller
|
|
50
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-P2GNIWGG.js";
|
|
51
51
|
import {
|
|
52
52
|
enclosingTraceId,
|
|
53
53
|
inRun,
|
|
54
54
|
newRunId,
|
|
55
55
|
queryDescription,
|
|
56
56
|
traceOf
|
|
57
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-JQ2RKLPU.js";
|
|
58
58
|
import {
|
|
59
59
|
storeDamaged
|
|
60
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-PJ6FZXUR.js";
|
|
61
61
|
import {
|
|
62
62
|
captureStreams,
|
|
63
63
|
traceIdOf
|
|
@@ -109,7 +109,7 @@ import {
|
|
|
109
109
|
__name
|
|
110
110
|
} from "./chunk-ZVVMGPBJ.js";
|
|
111
111
|
|
|
112
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
112
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/mcp/agent.js
|
|
113
113
|
import { Readable } from "node:stream";
|
|
114
114
|
|
|
115
115
|
// node_modules/.pnpm/@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/lint.js
|
|
@@ -3281,7 +3281,7 @@ var VOCABULARY = defineVocabulary({
|
|
|
3281
3281
|
]
|
|
3282
3282
|
});
|
|
3283
3283
|
|
|
3284
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3284
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/mcp/agent.js
|
|
3285
3285
|
var TYPES = new Map(VOCABULARY.flags.map((flag) => [flag.name, flag.type]));
|
|
3286
3286
|
var snake = /* @__PURE__ */ __name((name) => name.replaceAll("|", "_or_").replace(/[^a-z0-9]+/gi, "_"), "snake");
|
|
3287
3287
|
var longOf = /* @__PURE__ */ __name((option) => option.flags.match(/--[a-z0-9][a-z0-9-]*/)?.[0], "longOf");
|
|
@@ -3395,12 +3395,12 @@ var keywordsOf = /* @__PURE__ */ __name((examples) => [
|
|
|
3395
3395
|
...new Set(examples.flatMap((example) => example.split(/\s+/u).filter((word2) => word2 !== "" && !word2.startsWith("-"))))
|
|
3396
3396
|
], "keywordsOf");
|
|
3397
3397
|
var toolsFromCommands = /* @__PURE__ */ __name((commands, options = {}) => {
|
|
3398
|
-
const { root = [], exclude = [], levels, keyOf, authority, readOnly = false, permissions } = options;
|
|
3398
|
+
const { root = [], exclude = [], levels, keyOf, authority, readOnly = false, permissions, fetches } = options;
|
|
3399
3399
|
return flatten(commands).filter((info) => (
|
|
3400
3400
|
// A group is offered only when it runs on its own; without an action it only prints its help.
|
|
3401
|
-
(info.commands.length === 0 || info.runnable === true) && info.path.length > root.length && startsWith(info.path, root) && !exclude.some((skipped) => startsWith(info.path.slice(root.length), skipped)) && info.mcp !== false && info.lifetime === void 0 && (options.includeUnavailable === true || !(readOnly && (changesMessenger(info) || authority?.(info.path))) && (levels === void 0 && !(readOnly && permissions) ? true : commandAvailability(info, levels ?? {}, keyOf, authority, readOnly, true, permissions).available))
|
|
3401
|
+
(info.commands.length === 0 || info.runnable === true) && info.path.length > root.length && startsWith(info.path, root) && !exclude.some((skipped) => startsWith(info.path.slice(root.length), skipped)) && info.mcp !== false && info.lifetime === void 0 && (options.includeUnavailable === true || !(readOnly && (changesMessenger(info) || authority?.(info.path))) && (levels === void 0 && !(readOnly && permissions) ? true : commandAvailability(info, levels ?? {}, keyOf, authority, readOnly, true, permissions, fetches).available))
|
|
3402
3402
|
)).map((info) => ({
|
|
3403
|
-
availability: /* @__PURE__ */ __name(() => commandAvailability(info, options.currentLevels?.() ?? levels ?? {}, keyOf, authority, readOnly, true, permissions), "availability"),
|
|
3403
|
+
availability: /* @__PURE__ */ __name(() => commandAvailability(info, options.currentLevels?.() ?? levels ?? {}, keyOf, authority, readOnly, true, permissions, fetches), "availability"),
|
|
3404
3404
|
command: info.path.slice(root.length).join(" "),
|
|
3405
3405
|
path: info.path,
|
|
3406
3406
|
title: info.summary ?? info.description,
|
|
@@ -3443,7 +3443,7 @@ var runCommandForAgent = /* @__PURE__ */ __name(async (program, path, input, ctx
|
|
|
3443
3443
|
if (info.lifetime)
|
|
3444
3444
|
throw new CliError("validation_error", `"${path.join(" ")}" runs until it is stopped; an agent call must return`);
|
|
3445
3445
|
const levels = ctx.levels?.();
|
|
3446
|
-
const availability = (levels || ctx.readOnly || ctx.permissions) && commandAvailability(info, levels ?? {}, ctx.keyOf, ctx.authority, ctx.readOnly, true, ctx.permissions);
|
|
3446
|
+
const availability = (levels || ctx.readOnly || ctx.permissions) && commandAvailability(info, levels ?? {}, ctx.keyOf, ctx.authority, ctx.readOnly, true, ctx.permissions, ctx.fetches);
|
|
3447
3447
|
if (availability && !availability.available)
|
|
3448
3448
|
throw new CliError("permission_error", `${path.join(" ")}: ${availability.reason}`, {
|
|
3449
3449
|
sent: false,
|
|
@@ -3508,7 +3508,7 @@ var runCommandForAgent = /* @__PURE__ */ __name(async (program, path, input, ctx
|
|
|
3508
3508
|
}
|
|
3509
3509
|
}, "runCommandForAgent");
|
|
3510
3510
|
|
|
3511
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3511
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/mcp/tool.js
|
|
3512
3512
|
var limit = optional(pipe(number(), integer(), minValue(1), maxValue(100), description("how many")));
|
|
3513
3513
|
var page = optional(pipe(number(), integer(), minValue(1), description("which page, from 1")));
|
|
3514
3514
|
var message = pipe(
|
|
@@ -3767,7 +3767,7 @@ var failed = /* @__PURE__ */ __name((error, errors, effects) => {
|
|
|
3767
3767
|
return mcpErrorResult(JSON.parse(agentJson(errorObjectOf(storeDamaged(error), context))));
|
|
3768
3768
|
}, "failed");
|
|
3769
3769
|
|
|
3770
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3770
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/mcp/surface.js
|
|
3771
3771
|
import { randomUUID } from "node:crypto";
|
|
3772
3772
|
var MATCHES = 8;
|
|
3773
3773
|
var ANSWER = answerSchema();
|
|
@@ -3,7 +3,7 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
readSharedSection,
|
|
5
5
|
writeSharedSection
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-CK7DSGIK.js";
|
|
7
7
|
import {
|
|
8
8
|
CliError
|
|
9
9
|
} from "./chunk-7KCBPAQS.js";
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
__name
|
|
12
12
|
} from "./chunk-ZVVMGPBJ.js";
|
|
13
13
|
|
|
14
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
14
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/cli/setup-answers.js
|
|
15
15
|
var PERMISSION_ANSWERS = ["readonly", "allow"];
|
|
16
16
|
var QUESTIONS = ["languages", "tools", "permissions"];
|
|
17
17
|
var SECTION = "setup";
|
|
@@ -36,13 +36,11 @@ var writeSetupAnswers = /* @__PURE__ */ __name((path, answers) => {
|
|
|
36
36
|
writeSharedSection(path, SECTION, { ...kept, ...answers });
|
|
37
37
|
}, "writeSetupAnswers");
|
|
38
38
|
var permissionCeiling = /* @__PURE__ */ __name((path) => {
|
|
39
|
-
let answer;
|
|
40
39
|
try {
|
|
41
|
-
|
|
40
|
+
return readSetupAnswers(path).permissions === "readonly" ? "readonly" : void 0;
|
|
42
41
|
} catch {
|
|
43
|
-
return
|
|
42
|
+
return void 0;
|
|
44
43
|
}
|
|
45
|
-
return answer === "allow" ? void 0 : answer;
|
|
46
44
|
}, "permissionCeiling");
|
|
47
45
|
|
|
48
46
|
export {
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
__name
|
|
5
5
|
} from "./chunk-ZVVMGPBJ.js";
|
|
6
6
|
|
|
7
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/background/processes.js
|
|
8
8
|
import { execFileSync } from "node:child_process";
|
|
9
9
|
import { readdirSync, readFileSync, readlinkSync } from "node:fs";
|
|
10
10
|
var alive = /* @__PURE__ */ __name((pid) => {
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
isCliFailure,
|
|
5
5
|
secretNamed,
|
|
6
6
|
withoutSecrets
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-PJ6FZXUR.js";
|
|
8
8
|
import {
|
|
9
9
|
isContentKey
|
|
10
10
|
} from "./chunk-NM5GBJME.js";
|
|
@@ -12,14 +12,14 @@ import {
|
|
|
12
12
|
__name
|
|
13
13
|
} from "./chunk-ZVVMGPBJ.js";
|
|
14
14
|
|
|
15
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
15
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/runs/run-context.js
|
|
16
16
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
17
17
|
import { createHash } from "node:crypto";
|
|
18
18
|
|
|
19
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/runs/error-detail.js
|
|
20
20
|
import { homedir } from "node:os";
|
|
21
21
|
|
|
22
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/runs/events.js
|
|
23
23
|
var providerErrorKey = /* @__PURE__ */ __name((value) => typeof value === "string" && /^[A-Za-z][A-Za-z0-9._-]{0,63}$/.test(value) ? value : void 0, "providerErrorKey");
|
|
24
24
|
var renderEvent = /* @__PURE__ */ __name((event) => {
|
|
25
25
|
if (event.event === "store")
|
|
@@ -71,7 +71,7 @@ var MARK = { request: "\u2192", response: "\u2190", cache: "\u2022", warning: "!
|
|
|
71
71
|
var age = /* @__PURE__ */ __name((ms) => ms < 1e3 ? `${ms}ms` : `${Math.round(ms / 1e3)}s`, "age");
|
|
72
72
|
var size = /* @__PURE__ */ __name((bytes) => bytes < 1e3 ? `${bytes} B` : `${(bytes / 1e3).toFixed(1)} kB`, "size");
|
|
73
73
|
|
|
74
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
74
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/runs/error-detail.js
|
|
75
75
|
var MESSAGE_AT_MOST = 500;
|
|
76
76
|
var CAUSES_AT_MOST = 5;
|
|
77
77
|
var FRAMES_AT_MOST = 15;
|
|
@@ -183,7 +183,7 @@ var redactText = /* @__PURE__ */ __name((text) => {
|
|
|
183
183
|
return out.length > MESSAGE_AT_MOST ? `${out.slice(0, MESSAGE_AT_MOST)}\u2026` : out;
|
|
184
184
|
}, "redactText");
|
|
185
185
|
|
|
186
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
186
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/runs/run-context.js
|
|
187
187
|
var REDACTED = "[redacted]";
|
|
188
188
|
var keepsSuccess = /* @__PURE__ */ __name(({ record, fromFlag, env, caller, persistent = false }) => {
|
|
189
189
|
if (!record)
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
__name
|
|
9
9
|
} from "./chunk-ZVVMGPBJ.js";
|
|
10
10
|
|
|
11
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/errors/failures.js
|
|
12
12
|
var isCliFailure = /* @__PURE__ */ __name((value) => value instanceof Error && value.name === "CliError" && errorCodes.includes(value.code), "isCliFailure");
|
|
13
13
|
var isCommanderFailure = /* @__PURE__ */ __name((value) => {
|
|
14
14
|
const { code, exitCode } = value ?? {};
|
|
@@ -60,7 +60,7 @@ var damagedFile = /* @__PURE__ */ __name(async (files, work) => {
|
|
|
60
60
|
}, "damagedFile");
|
|
61
61
|
var isStoreDamage = /* @__PURE__ */ __name((error) => damageIn(error) !== void 0, "isStoreDamage");
|
|
62
62
|
|
|
63
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
63
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/runs/secrets.js
|
|
64
64
|
var SECRET_WORDS = /* @__PURE__ */ new Set([
|
|
65
65
|
"authorization",
|
|
66
66
|
"cookie",
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
installFiles,
|
|
6
6
|
megabytes,
|
|
7
7
|
sharedModelsDirectory
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-MP47TE77.js";
|
|
9
9
|
import {
|
|
10
10
|
importFrom
|
|
11
11
|
} 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.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/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.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/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.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/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.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/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");
|
|
@@ -10,7 +10,7 @@ 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.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/store/vector-extension.js
|
|
14
14
|
import { readFileSync } from "node:fs";
|
|
15
15
|
var musl = /* @__PURE__ */ __name(() => {
|
|
16
16
|
if (process.platform !== "linux")
|