@wirecat/tg-cli 0.113.0 → 0.114.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 +6 -2
- package/dist/bundle/{adapter-EQKEFGPB.js → adapter-YAEHX3QB.js} +45 -45
- package/dist/bundle/{all-profiles-TTBFF663.js → all-profiles-R5CW42HQ.js} +8 -8
- package/dist/bundle/{anthropic-XPZS7267.js → anthropic-F25RHYV2.js} +5 -5
- package/dist/bundle/{app-server-ZSZ7KRAY.js → app-server-FAG6FNXR.js} +41 -40
- package/dist/bundle/{bot-api-X7BOVNIO.js → bot-api-KOIAXTQR.js} +46 -46
- package/dist/bundle/{bot-history-DWIUIPN5.js → bot-history-PRAOZEWC.js} +16 -15
- package/dist/bundle/{bun-ZGZVAJU2.js → bun-XIMM6EHD.js} +2 -2
- package/dist/bundle/{bun-sqlite-UN2UJ6SI.js → bun-sqlite-DSUCO4TR.js} +4 -4
- package/dist/bundle/{chunk-KK3JVOOV.js → chunk-2PAKHXIV.js} +29 -28
- package/dist/bundle/{chunk-KQ23JWLJ.js → chunk-34USFPBF.js} +18 -18
- package/dist/bundle/{chunk-WSAHUQ6K.js → chunk-3EZ43DAF.js} +3 -3
- package/dist/bundle/{chunk-Q264PYGE.js → chunk-3R43O3GG.js} +49 -16
- package/dist/bundle/{chunk-JDQSX2JQ.js → chunk-4JOKO4IW.js} +6810 -5767
- package/dist/bundle/{chunk-6OKGHHRL.js → chunk-5HKMEXVQ.js} +35 -35
- package/dist/bundle/{chunk-7IWDS2CM.js → chunk-6SPLZI5P.js} +2 -2
- package/dist/bundle/{chunk-J6USEBA6.js → chunk-7FOT4XD2.js} +2178 -923
- package/dist/bundle/{chunk-GX4LRLVD.js → chunk-AL36NHO6.js} +5110 -946
- package/dist/bundle/{chunk-UE75KPAC.js → chunk-ALHKUQDZ.js} +4 -4
- package/dist/bundle/{chunk-IDUYRTPF.js → chunk-C34IDOA5.js} +2 -2
- package/dist/bundle/{chunk-XXNJF3ZM.js → chunk-C7K7AP6G.js} +72 -30
- package/dist/bundle/{chunk-ZID2Y4XU.js → chunk-CDCBFMEI.js} +2 -2
- package/dist/bundle/{chunk-TQ6EA7TB.js → chunk-CS5DQ6KM.js} +15 -14
- package/dist/bundle/{chunk-6WJ5M2Q4.js → chunk-DQQEN3X4.js} +4 -4
- package/dist/bundle/{chunk-4GLMEES6.js → chunk-E2IRSRTB.js} +1 -1
- package/dist/bundle/{chunk-PCRLXJRH.js → chunk-EARO464A.js} +9 -7
- package/dist/bundle/{chunk-K3F46QVN.js → chunk-EQJG44KE.js} +4 -4
- package/dist/bundle/{chunk-VDEXNNMH.js → chunk-HA35XN2Z.js} +6 -4
- package/dist/bundle/{chunk-HNN7EKIM.js → chunk-I6BKSGZQ.js} +333 -164
- package/dist/bundle/{chunk-U3MJQLZQ.js → chunk-IN25CJ3D.js} +13 -13
- package/dist/bundle/{chunk-EGR5IJCG.js → chunk-J5U2HKGZ.js} +32 -26
- package/dist/bundle/{chunk-OQR442B6.js → chunk-KIZT2MI6.js} +1 -1
- package/dist/bundle/{chunk-AGUCXSSM.js → chunk-KZQXOZFC.js} +5 -5
- package/dist/bundle/chunk-L4CMCC3V.js +34 -0
- package/dist/bundle/{chunk-OYNSFQ7K.js → chunk-LPUFOWL3.js} +1 -1
- package/dist/bundle/{chunk-T4TTRFP5.js → chunk-M3IWROIF.js} +7 -7
- package/dist/bundle/{chunk-ENXO43TV.js → chunk-MQTTVQ3V.js} +6 -6
- package/dist/bundle/{chunk-G74QMORP.js → chunk-NJ2I4KFZ.js} +2 -2
- package/dist/bundle/{chunk-PHPNA2HU.js → chunk-NKP3RUM4.js} +11 -11
- package/dist/bundle/{chunk-VDATXIO4.js → chunk-NMVFFWF2.js} +6 -6
- package/dist/bundle/{chunk-KOWQVHXI.js → chunk-NTF34HJP.js} +3 -3
- package/dist/bundle/{chunk-JO45BOYE.js → chunk-NUVBC3LJ.js} +8 -3
- package/dist/bundle/{chunk-UIVLDKWT.js → chunk-O7CBGHI7.js} +1 -1
- package/dist/bundle/{chunk-VVA4555T.js → chunk-OFDMD3YF.js} +8 -8
- package/dist/bundle/{chunk-OC4RRFKH.js → chunk-OWHF6BON.js} +4 -4
- package/dist/bundle/{chunk-HO53POQG.js → chunk-P4YBABUC.js} +5 -40
- package/dist/bundle/{chunk-TUD4MU7S.js → chunk-QCXYJKPF.js} +2 -2
- package/dist/bundle/{chunk-JW7BMJ6O.js → chunk-RBC7JQ4Y.js} +2 -2
- package/dist/bundle/{chunk-5NF7M4MN.js → chunk-RFRI2HFT.js} +1 -1
- package/dist/bundle/{chunk-MTX5EDYJ.js → chunk-TKNCJMYN.js} +1096 -499
- package/dist/bundle/{chunk-PHYDBR5M.js → chunk-TRRRRGMI.js} +2 -2
- package/dist/bundle/{chunk-KVLCIZUK.js → chunk-TTTDZOBW.js} +3 -3
- package/dist/bundle/{chunk-AVUIWZTP.js → chunk-ULFTCR5W.js} +2 -2
- package/dist/bundle/{chunk-IYKRHDX6.js → chunk-VHO66SMY.js} +174 -45
- package/dist/bundle/{chunk-XZ2ZHIAO.js → chunk-VVKEWWSO.js} +1 -1
- package/dist/bundle/{chunk-BI5YJZJB.js → chunk-WIRDTH3J.js} +115 -29
- package/dist/bundle/{chunk-4SQB5VKL.js → chunk-WOQGUIXE.js} +1 -1
- package/dist/bundle/{chunk-OSBAISA5.js → chunk-XDOPONC3.js} +8 -13
- package/dist/bundle/{chunk-3MAYYFKY.js → chunk-Y3AQHPAJ.js} +1 -1
- package/dist/bundle/{chunk-T5RM4Y35.js → chunk-Y4LCSCSH.js} +3 -3
- package/dist/bundle/{chunk-Z6TRIW2O.js → chunk-YPABTT7A.js} +8 -8
- package/dist/bundle/{chunk-6F6K3LWV.js → chunk-YQ64ZNLD.js} +14 -13
- package/dist/bundle/{chunk-JRTZ5I6M.js → chunk-ZFMOPKPT.js} +2 -2
- package/dist/bundle/command-contract-SOTDPG22.js +31 -0
- package/dist/bundle/{decode-AMQVTEMW.js → decode-7U4SXPAN.js} +4 -4
- package/dist/bundle/{echarts-ECYONFQJ.js → echarts-GKEZEAL7.js} +2 -2
- package/dist/bundle/{embed-VZYBZEWI.js → embed-IDZDQMSW.js} +5 -5
- package/dist/bundle/{embedder-GSWBGHRK.js → embedder-RY5R2PGO.js} +8 -8
- package/dist/bundle/{entry-LALZILY4.js → entry-P6YZ3ZV6.js} +8 -5
- package/dist/bundle/{first-run-LEAI623Q.js → first-run-66KTCVQK.js} +9 -9
- package/dist/bundle/first-screen-NY46X6QU.js +29 -0
- package/dist/bundle/{identity-54HA5GN6.js → identity-GXVKGCNU.js} +3 -3
- package/dist/bundle/{instructions-AXLQQS3G.js → instructions-P5E34PQR.js} +1 -1
- package/dist/bundle/{mcp-VVMPUDSL.js → mcp-FUSDPAOL.js} +2 -2
- package/dist/bundle/{node-7JHC5K77.js → node-GKPRXS5Y.js} +2 -2
- package/dist/bundle/{node-sqlite-LYJEK46T.js → node-sqlite-VUXFVPJ6.js} +10 -4
- package/dist/bundle/{oauth-BROPKI3K.js → oauth-7SQIPMOY.js} +6 -6
- package/dist/bundle/{open-C6XQ46JK.js → open-W3BN2SIO.js} +4 -3
- package/dist/bundle/{openai-VWSU7ZDD.js → openai-LQTK3ZMC.js} +13 -13
- package/dist/bundle/{process-QKEFL5HL.js → process-U2P5Z6UF.js} +1 -1
- package/dist/bundle/{program-ACY7O33O.js → program-DIPSLR6O.js} +48 -48
- package/dist/bundle/{prompt-EGULVW2F.js → prompt-GESHKSM5.js} +4 -4
- package/dist/bundle/{proxy-transport-KIMADLQ2.js → proxy-transport-C2EUUT32.js} +4 -4
- package/dist/bundle/{recognize-UMTKLWVR.js → recognize-FEQTIJET.js} +3 -3
- package/dist/bundle/{remote-DABI7PSQ.js → remote-UXOPBPKS.js} +6 -6
- package/dist/bundle/{rerank-ZFATWWBE.js → rerank-L4JM4REK.js} +6 -6
- package/dist/bundle/{serve-B7YYCMGN.js → serve-DDWW44DB.js} +10 -9
- package/dist/bundle/{server-DGKZISZH.js → server-UTWBIZHB.js} +32 -32
- package/dist/bundle/server-ZI7WDAW6.js +56 -0
- package/dist/bundle/{state-AQ2PABA5.js → state-EV7FGEK4.js} +5 -5
- package/dist/bundle/{store-46GJTFLJ.js → store-EXBUF4OG.js} +11 -10
- package/dist/bundle/store-maintenance-command-UBZE2Z6T.js +46 -0
- package/dist/bundle/tg.js +4 -4
- package/dist/commands/context.d.ts.map +1 -1
- package/dist/commands/context.js +6 -4
- package/dist/commands/context.js.map +1 -1
- package/dist/reasons.d.ts.map +1 -1
- package/dist/reasons.js +5 -0
- 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/dist/bundle/chunk-452UZ2PU.js +0 -3603
- package/dist/bundle/command-contract-GV67H22L.js +0 -32
- package/dist/bundle/first-screen-MOCVLE23.js +0 -30
- package/dist/bundle/server-UC7UWUIS.js +0 -56
- package/dist/bundle/store-maintenance-command-FCFKHGRM.js +0 -45
- /package/dist/bundle/{chunk-HPXYN7F3.js → chunk-NUN6OGOV.js} +0 -0
|
@@ -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-EARO464A.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.553.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.75.0_commander@15._c8fb11a0c49a39da33a9d557d170ff7b/node_modules/@wirecat/cli-core/dist/files/ordinary-file.js
|
|
11
11
|
import { constants } from "node:fs";
|
|
12
12
|
import { lstat, open } from "node:fs/promises";
|
|
13
13
|
var deviceOf = /* @__PURE__ */ __name((dev) => process.platform === "win32" ? BigInt.asUintN(32, dev) : dev, "deviceOf");
|
|
@@ -73,7 +73,7 @@ var syncDirectory = /* @__PURE__ */ __name(async (path) => {
|
|
|
73
73
|
}
|
|
74
74
|
}, "syncDirectory");
|
|
75
75
|
|
|
76
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
76
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.553.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.75.0_commander@15._c8fb11a0c49a39da33a9d557d170ff7b/node_modules/@wirecat/cli-core/dist/files/atomic-write.js
|
|
77
77
|
import { randomUUID } from "node:crypto";
|
|
78
78
|
import { constants as constants2 } from "node:fs";
|
|
79
79
|
import { link, open as open2, realpath, rename, unlink } from "node:fs/promises";
|
|
@@ -111,7 +111,7 @@ var writeFileAtomic = /* @__PURE__ */ __name(async (path, content, { mode = 384,
|
|
|
111
111
|
}
|
|
112
112
|
}, "writeFileAtomic");
|
|
113
113
|
|
|
114
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
114
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.553.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.75.0_commander@15._c8fb11a0c49a39da33a9d557d170ff7b/node_modules/@wirecat/cli-core/dist/files/bounded-utf8.js
|
|
115
115
|
var readBoundedUtf8File = /* @__PURE__ */ __name(async (path, { maxBytes }) => {
|
|
116
116
|
if (!Number.isSafeInteger(maxBytes) || maxBytes < 1 || maxBytes > 16 * 1024 * 1024)
|
|
117
117
|
throw new CliError("validation_error", "file maxBytes takes 1\u201316777216 bytes");
|
|
@@ -140,21 +140,21 @@ var readBoundedUtf8File = /* @__PURE__ */ __name(async (path, { maxBytes }) => {
|
|
|
140
140
|
}
|
|
141
141
|
}, "readBoundedUtf8File");
|
|
142
142
|
|
|
143
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
143
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.553.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.75.0_commander@15._c8fb11a0c49a39da33a9d557d170ff7b/node_modules/@wirecat/cli-core/dist/files/lock.js
|
|
144
144
|
import { mkdir as mkdir2 } from "node:fs/promises";
|
|
145
145
|
import { basename as basename2, dirname as dirname2 } from "node:path";
|
|
146
146
|
|
|
147
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
147
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.553.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.75.0_commander@15._c8fb11a0c49a39da33a9d557d170ff7b/node_modules/@wirecat/cli-core/dist/files/native-writer-lease.js
|
|
148
148
|
import { randomUUID as randomUUID2 } from "node:crypto";
|
|
149
149
|
import { lstat as lstat3, mkdir, open as open3, realpath as realpath3, rmdir as rmdir2, unlink as unlink4 } from "node:fs/promises";
|
|
150
150
|
import { hostname as hostname2 } from "node:os";
|
|
151
151
|
import { join as join3 } from "node:path";
|
|
152
152
|
|
|
153
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
153
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.553.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.75.0_commander@15._c8fb11a0c49a39da33a9d557d170ff7b/node_modules/@wirecat/cli-core/dist/files/native-lease-inspection.js
|
|
154
154
|
import { lstat as lstat2, readdir, realpath as realpath2, unlink as unlink2 } from "node:fs/promises";
|
|
155
155
|
import { join as join2 } from "node:path";
|
|
156
156
|
|
|
157
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
157
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.553.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.75.0_commander@15._c8fb11a0c49a39da33a9d557d170ff7b/node_modules/@wirecat/cli-core/dist/files/native-lease-owner.js
|
|
158
158
|
import { hostname } from "node:os";
|
|
159
159
|
var missingLeaseFile = /* @__PURE__ */ __name((error) => typeof error === "object" && error !== null && "code" in error && error.code === "ENOENT", "missingLeaseFile");
|
|
160
160
|
var readLeaseOwner = /* @__PURE__ */ __name(async (path, name, signal) => {
|
|
@@ -199,7 +199,7 @@ var leaseOwnerStatus = /* @__PURE__ */ __name((owner) => {
|
|
|
199
199
|
}
|
|
200
200
|
}, "leaseOwnerStatus");
|
|
201
201
|
|
|
202
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
202
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.553.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.75.0_commander@15._c8fb11a0c49a39da33a9d557d170ff7b/node_modules/@wirecat/cli-core/dist/files/native-lease-inspection.js
|
|
203
203
|
var leaseInspection = /* @__PURE__ */ __name((markerDirectory) => {
|
|
204
204
|
const inspect = /* @__PURE__ */ __name(async (destination, options = {}) => {
|
|
205
205
|
options.signal?.throwIfAborted();
|
|
@@ -258,7 +258,7 @@ var leaseInspection = /* @__PURE__ */ __name((markerDirectory) => {
|
|
|
258
258
|
return { inspect, recover };
|
|
259
259
|
}, "leaseInspection");
|
|
260
260
|
|
|
261
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
261
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.553.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.75.0_commander@15._c8fb11a0c49a39da33a9d557d170ff7b/node_modules/@wirecat/cli-core/dist/files/native-lease-release.js
|
|
262
262
|
import { rmdir, unlink as unlink3 } from "node:fs/promises";
|
|
263
263
|
var ownedNativeLease = /* @__PURE__ */ __name((path, name, owner, folder, identity) => {
|
|
264
264
|
let releasing;
|
|
@@ -283,7 +283,7 @@ var ownedNativeLease = /* @__PURE__ */ __name((path, name, owner, folder, identi
|
|
|
283
283
|
};
|
|
284
284
|
}, "ownedNativeLease");
|
|
285
285
|
|
|
286
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
286
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.553.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.75.0_commander@15._c8fb11a0c49a39da33a9d557d170ff7b/node_modules/@wirecat/cli-core/dist/files/native-writer-lease.js
|
|
287
287
|
var validName = /* @__PURE__ */ __name((value) => typeof value === "string" && value.length > 0 && value !== "." && value !== ".." && !/[\\/\0:]/.test(value), "validName");
|
|
288
288
|
var nativeWriterLeaseStore = /* @__PURE__ */ __name((layout) => {
|
|
289
289
|
const { markerDirectory, legacyMarker } = layout;
|
|
@@ -354,7 +354,7 @@ var nativeWriterLeaseStore = /* @__PURE__ */ __name((layout) => {
|
|
|
354
354
|
};
|
|
355
355
|
}, "nativeWriterLeaseStore");
|
|
356
356
|
|
|
357
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
357
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.553.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.75.0_commander@15._c8fb11a0c49a39da33a9d557d170ff7b/node_modules/@wirecat/cli-core/dist/files/lock.js
|
|
358
358
|
var acquireLock = /* @__PURE__ */ __name(async (path, { signal } = {}) => {
|
|
359
359
|
const folder = dirname2(path);
|
|
360
360
|
await mkdir2(folder, { recursive: true, mode: 448 });
|
|
@@ -369,7 +369,7 @@ var acquireLock = /* @__PURE__ */ __name(async (path, { signal } = {}) => {
|
|
|
369
369
|
});
|
|
370
370
|
}, "acquireLock");
|
|
371
371
|
|
|
372
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
372
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.553.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.75.0_commander@15._c8fb11a0c49a39da33a9d557d170ff7b/node_modules/@wirecat/cli-core/dist/files/safe-name.js
|
|
373
373
|
import { basename as basename3 } from "node:path";
|
|
374
374
|
var safeName = /* @__PURE__ */ __name((name, platform = process.platform) => {
|
|
375
375
|
let plain = name === void 0 ? "" : basename3(name.replaceAll("\\", "/")).replace(/[\p{Cc}---]/gu, "").replace(/^\.+/, "");
|
|
@@ -7,10 +7,10 @@ import {
|
|
|
7
7
|
agentJson,
|
|
8
8
|
commandAvailability,
|
|
9
9
|
failureContext
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-3R43O3GG.js";
|
|
11
11
|
import {
|
|
12
12
|
callerOf
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-CDCBFMEI.js";
|
|
14
14
|
import {
|
|
15
15
|
QUERY_ARGUMENT,
|
|
16
16
|
lentConnection,
|
|
@@ -18,12 +18,10 @@ import {
|
|
|
18
18
|
refuseLacking,
|
|
19
19
|
servicesFor,
|
|
20
20
|
storeModeDeps
|
|
21
|
-
} from "./chunk-
|
|
22
|
-
import {
|
|
23
|
-
ENTITIES
|
|
24
|
-
} from "./chunk-452UZ2PU.js";
|
|
21
|
+
} from "./chunk-4JOKO4IW.js";
|
|
25
22
|
import {
|
|
26
23
|
DEFAULT_OUTPUT_BYTES,
|
|
24
|
+
ENTITIES,
|
|
27
25
|
LOCAL_WRITE,
|
|
28
26
|
REMOTE_WRITE,
|
|
29
27
|
answerSchema,
|
|
@@ -44,25 +42,26 @@ import {
|
|
|
44
42
|
sealed,
|
|
45
43
|
startRecording,
|
|
46
44
|
traceOf
|
|
47
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-AL36NHO6.js";
|
|
48
46
|
import {
|
|
49
47
|
currentCaller,
|
|
50
48
|
keepsSuccess,
|
|
51
49
|
runContextOf,
|
|
52
50
|
withCaller
|
|
53
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-YPABTT7A.js";
|
|
54
52
|
import {
|
|
55
53
|
queryDescription
|
|
56
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-I6BKSGZQ.js";
|
|
57
55
|
import {
|
|
58
56
|
MAX_BUFFERED_INPUT
|
|
59
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-ULFTCR5W.js";
|
|
60
58
|
import {
|
|
61
59
|
captureStreams,
|
|
62
60
|
errorObjectOf,
|
|
63
61
|
mcpErrorResult
|
|
64
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-34USFPBF.js";
|
|
65
63
|
import {
|
|
64
|
+
COMPACT_FLAG,
|
|
66
65
|
CliError,
|
|
67
66
|
SNAKE_CASE,
|
|
68
67
|
array,
|
|
@@ -100,15 +99,15 @@ import {
|
|
|
100
99
|
unknown,
|
|
101
100
|
word,
|
|
102
101
|
writes
|
|
103
|
-
} from "./chunk-
|
|
102
|
+
} from "./chunk-EARO464A.js";
|
|
104
103
|
import {
|
|
105
104
|
__name
|
|
106
105
|
} from "./chunk-ZVVMGPBJ.js";
|
|
107
106
|
|
|
108
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
107
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.553.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.75.0_commander@15._c8fb11a0c49a39da33a9d557d170ff7b/node_modules/@wirecat/cli-core/dist/mcp/agent.js
|
|
109
108
|
import { Readable } from "node:stream";
|
|
110
109
|
|
|
111
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
110
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.75.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
|
|
112
111
|
var LINT_SEVERITIES = ["high", "medium", "low"];
|
|
113
112
|
var lintRuleSchema = strictObject({
|
|
114
113
|
id: word,
|
|
@@ -235,7 +234,7 @@ var overridesSchema = array(strictObject({
|
|
|
235
234
|
review_after: pipe(string(), isoDate("a date, YYYY-MM-DD"))
|
|
236
235
|
}));
|
|
237
236
|
|
|
238
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
237
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/audit.js
|
|
239
238
|
var auditRuleSchema = strictObject({ id: word, severity: picklist(LINT_SEVERITIES), summary: text });
|
|
240
239
|
var defineAuditRules = /* @__PURE__ */ __name((input) => parseRegistry("audit rules", array(auditRuleSchema), input, (rules) => duplicates(rules.map((rule) => rule.id)).map((id) => `"${id}" is listed twice`)), "defineAuditRules");
|
|
241
240
|
var AUDIT_RULES = defineAuditRules([
|
|
@@ -344,7 +343,7 @@ var REQUIRED_ROOTS = defineRequiredRoots([
|
|
|
344
343
|
{ path: ["upgrade"], meaning: "updates the CLI" }
|
|
345
344
|
]);
|
|
346
345
|
|
|
347
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
346
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/fields.js
|
|
348
347
|
var fieldRuleSchema = strictObject({ id: word, rule: text });
|
|
349
348
|
var defineFieldRules = /* @__PURE__ */ __name((input) => parseRegistry("output field rules", array(fieldRuleSchema), input, (rules) => duplicates(rules.map((rule) => rule.id)).map((id) => `"${id}" is listed twice`)), "defineFieldRules");
|
|
350
349
|
var FIELD_RULES = defineFieldRules([
|
|
@@ -360,7 +359,7 @@ var FIELD_RULES = defineFieldRules([
|
|
|
360
359
|
}
|
|
361
360
|
]);
|
|
362
361
|
|
|
363
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
362
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/identifiers.js
|
|
364
363
|
var key = pipe(string(), regex(SNAKE_CASE, "a snake_case key"));
|
|
365
364
|
var identifierSchema = strictObject({ key, meaning: text, replaces: optional(array(key)) });
|
|
366
365
|
var defineIdentifiers = /* @__PURE__ */ __name((input) => parseRegistry("identifiers", array(identifierSchema), input, (identifiers) => {
|
|
@@ -382,7 +381,7 @@ var IDENTIFIERS = defineIdentifiers([
|
|
|
382
381
|
{ key: "trace_id", meaning: "the distributed trace a run belongs to, from `traceparent`" }
|
|
383
382
|
]);
|
|
384
383
|
|
|
385
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
384
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-calendar.js
|
|
386
385
|
var CALENDAR_FLAGS = [
|
|
387
386
|
{ name: "--end-time", value: "<time>", role: "value", type: "time", meaning: "when it ends" },
|
|
388
387
|
{
|
|
@@ -456,7 +455,7 @@ var CALENDAR_FLAGS = [
|
|
|
456
455
|
}
|
|
457
456
|
];
|
|
458
457
|
|
|
459
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
458
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-how.js
|
|
460
459
|
var HOW_FLAGS = [
|
|
461
460
|
{
|
|
462
461
|
name: "--limit",
|
|
@@ -543,6 +542,12 @@ var HOW_FLAGS = [
|
|
|
543
542
|
type: "switch",
|
|
544
543
|
meaning: "each item as its reference, title, time and excerpt only"
|
|
545
544
|
},
|
|
545
|
+
{
|
|
546
|
+
name: COMPACT_FLAG,
|
|
547
|
+
role: "output",
|
|
548
|
+
type: "switch",
|
|
549
|
+
meaning: "one line per item, built from the same answer as --json, with its paging and next steps as # lines"
|
|
550
|
+
},
|
|
546
551
|
{
|
|
547
552
|
name: "--chart-kind",
|
|
548
553
|
value: "<messages|active|membership>",
|
|
@@ -734,6 +739,7 @@ var HOW_FLAGS = [
|
|
|
734
739
|
meaning: "refuse if what it names has changed since it was read",
|
|
735
740
|
replaces: ["--expected"]
|
|
736
741
|
},
|
|
742
|
+
{ name: "--full-history", role: "mode", type: "switch", meaning: "keep a chat's whole history, past its limits" },
|
|
737
743
|
{
|
|
738
744
|
name: "--for-everyone",
|
|
739
745
|
role: "mode",
|
|
@@ -1443,7 +1449,7 @@ var HOW_FLAGS = [
|
|
|
1443
1449
|
}
|
|
1444
1450
|
];
|
|
1445
1451
|
|
|
1446
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
1452
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-mail.js
|
|
1447
1453
|
var MAIL_FLAGS = [
|
|
1448
1454
|
{
|
|
1449
1455
|
name: "--cc",
|
|
@@ -1467,7 +1473,7 @@ var MAIL_FLAGS = [
|
|
|
1467
1473
|
}
|
|
1468
1474
|
];
|
|
1469
1475
|
|
|
1470
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
1476
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-what.js
|
|
1471
1477
|
var WHAT_FLAGS = [
|
|
1472
1478
|
{
|
|
1473
1479
|
name: "--analysis-provider",
|
|
@@ -2465,7 +2471,7 @@ var WHAT_FLAGS = [
|
|
|
2465
2471
|
}
|
|
2466
2472
|
];
|
|
2467
2473
|
|
|
2468
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2474
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/vocabulary.js
|
|
2469
2475
|
var FLAG_TYPES = [
|
|
2470
2476
|
"switch",
|
|
2471
2477
|
"count",
|
|
@@ -2826,7 +2832,7 @@ var VOCABULARY = defineVocabulary({
|
|
|
2826
2832
|
flags: [...HOW_FLAGS, ...WHAT_FLAGS, ...CALENDAR_FLAGS, ...MAIL_FLAGS]
|
|
2827
2833
|
});
|
|
2828
2834
|
|
|
2829
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2835
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.553.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.75.0_commander@15._c8fb11a0c49a39da33a9d557d170ff7b/node_modules/@wirecat/cli-core/dist/mcp/agent.js
|
|
2830
2836
|
var TYPES = new Map(VOCABULARY.flags.map((flag) => [flag.name, flag.type]));
|
|
2831
2837
|
var snake = /* @__PURE__ */ __name((name) => name.replaceAll("|", "_or_").replace(/[^a-z0-9]+/gi, "_"), "snake");
|
|
2832
2838
|
var longOf = /* @__PURE__ */ __name((option) => option.flags.match(/--[a-z0-9][a-z0-9-]*/)?.[0], "longOf");
|
|
@@ -3049,7 +3055,7 @@ var runCommandForAgent = /* @__PURE__ */ __name(async (program, path, input, ctx
|
|
|
3049
3055
|
}
|
|
3050
3056
|
}, "runCommandForAgent");
|
|
3051
3057
|
|
|
3052
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3058
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.553.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.75.0_commander@15._c8fb11a0c49a39da33a9d557d170ff7b/node_modules/@wirecat/cli-core/dist/mcp/tool.js
|
|
3053
3059
|
var limit = optional(pipe(number(), integer(), minValue(1), maxValue(100), description("how many")));
|
|
3054
3060
|
var page = optional(pipe(number(), integer(), minValue(1), description("which page, from 1")));
|
|
3055
3061
|
var message = pipe(
|
|
@@ -3308,7 +3314,7 @@ var failed = /* @__PURE__ */ __name((error, errors, effects) => {
|
|
|
3308
3314
|
return mcpErrorResult(JSON.parse(agentJson(errorObjectOf(error, context))));
|
|
3309
3315
|
}, "failed");
|
|
3310
3316
|
|
|
3311
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3317
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.553.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.75.0_commander@15._c8fb11a0c49a39da33a9d557d170ff7b/node_modules/@wirecat/cli-core/dist/mcp/surface.js
|
|
3312
3318
|
import { randomUUID } from "node:crypto";
|
|
3313
3319
|
var MATCHES = 8;
|
|
3314
3320
|
var ANSWER = answerSchema();
|
|
@@ -3331,7 +3337,7 @@ var runnableOnly = /* @__PURE__ */ __name((result, offered) => {
|
|
|
3331
3337
|
const body = result.structuredContent;
|
|
3332
3338
|
if (result.isError || !Array.isArray(body?.next))
|
|
3333
3339
|
return result;
|
|
3334
|
-
const next = body.next.filter((step) => offered(step.command));
|
|
3340
|
+
const next = body.next.filter((step) => step.command === void 0 || offered(step.command));
|
|
3335
3341
|
const { next: _, ...rest } = body;
|
|
3336
3342
|
const kept = next.length > 0 ? { ...rest, next } : rest;
|
|
3337
3343
|
return {
|
|
@@ -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.553.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.75.0_commander@15._c8fb11a0c49a39da33a9d557d170ff7b/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,23 +4,23 @@ import {
|
|
|
4
4
|
executableEnvironment,
|
|
5
5
|
executableOnPath,
|
|
6
6
|
require_cross_spawn
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-LPUFOWL3.js";
|
|
8
8
|
import {
|
|
9
9
|
loadConfigFile,
|
|
10
10
|
saveConfigFile
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-34USFPBF.js";
|
|
12
12
|
import {
|
|
13
13
|
number,
|
|
14
14
|
object,
|
|
15
15
|
optional,
|
|
16
16
|
string
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-EARO464A.js";
|
|
18
18
|
import {
|
|
19
19
|
__name,
|
|
20
20
|
__toESM
|
|
21
21
|
} from "./chunk-ZVVMGPBJ.js";
|
|
22
22
|
|
|
23
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
23
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/installer.js
|
|
24
24
|
var installerOf = /* @__PURE__ */ __name((scriptPath) => {
|
|
25
25
|
const path = scriptPath.replaceAll("\\", "/");
|
|
26
26
|
if (path.includes("/_npx/"))
|
|
@@ -34,7 +34,7 @@ var installerOf = /* @__PURE__ */ __name((scriptPath) => {
|
|
|
34
34
|
return path.includes("/dist/") ? "checkout" : "unknown";
|
|
35
35
|
}, "installerOf");
|
|
36
36
|
|
|
37
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
37
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/update/index.js
|
|
38
38
|
var import_cross_spawn = __toESM(require_cross_spawn(), 1);
|
|
39
39
|
import { existsSync } from "node:fs";
|
|
40
40
|
var updateCommand = /* @__PURE__ */ __name((installer, packageName) => {
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { createRequire as __bundleRequire } from "node:module";
|
|
2
|
+
const require = __bundleRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
__name
|
|
5
|
+
} from "./chunk-ZVVMGPBJ.js";
|
|
6
|
+
|
|
7
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.553.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.75.0_commander@15._c8fb11a0c49a39da33a9d557d170ff7b/node_modules/@wirecat/cli-core/dist/store/driver.js
|
|
8
|
+
var TIME_LIMIT_FUNCTION = "wc_time_limit";
|
|
9
|
+
var TimeLimitReached = class extends Error {
|
|
10
|
+
static {
|
|
11
|
+
__name(this, "TimeLimitReached");
|
|
12
|
+
}
|
|
13
|
+
constructor() {
|
|
14
|
+
super("the statement ran past its time limit");
|
|
15
|
+
this.name = "TimeLimitReached";
|
|
16
|
+
}
|
|
17
|
+
};
|
|
18
|
+
var beforeTimeLimit = /* @__PURE__ */ __name((until) => {
|
|
19
|
+
if (Date.now() > Number(until))
|
|
20
|
+
throw new TimeLimitReached();
|
|
21
|
+
return 1;
|
|
22
|
+
}, "beforeTimeLimit");
|
|
23
|
+
var PRAGMAS = `
|
|
24
|
+
PRAGMA busy_timeout = 5000;
|
|
25
|
+
PRAGMA journal_mode = WAL;
|
|
26
|
+
PRAGMA foreign_keys = ON;
|
|
27
|
+
`;
|
|
28
|
+
|
|
29
|
+
export {
|
|
30
|
+
TIME_LIMIT_FUNCTION,
|
|
31
|
+
TimeLimitReached,
|
|
32
|
+
beforeTimeLimit,
|
|
33
|
+
PRAGMAS
|
|
34
|
+
};
|
|
@@ -527,7 +527,7 @@ var require_cross_spawn = __commonJS({
|
|
|
527
527
|
}
|
|
528
528
|
});
|
|
529
529
|
|
|
530
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
530
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/executable.js
|
|
531
531
|
import { existsSync } from "node:fs";
|
|
532
532
|
import { win32 } from "node:path";
|
|
533
533
|
var variable = /* @__PURE__ */ __name((env, name) => Object.entries(env).find(([key]) => key.toUpperCase() === name)?.[1], "variable");
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
commandPathOf,
|
|
8
8
|
findCommand,
|
|
9
9
|
outputOf
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-P4YBABUC.js";
|
|
11
11
|
import {
|
|
12
12
|
Command,
|
|
13
13
|
Help,
|
|
@@ -18,16 +18,16 @@ import {
|
|
|
18
18
|
environmentOf,
|
|
19
19
|
metaOf,
|
|
20
20
|
takesProfile
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-AL36NHO6.js";
|
|
22
22
|
import {
|
|
23
23
|
CliError,
|
|
24
24
|
writes
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-EARO464A.js";
|
|
26
26
|
import {
|
|
27
27
|
__name
|
|
28
28
|
} from "./chunk-ZVVMGPBJ.js";
|
|
29
29
|
|
|
30
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.553.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.75.0_commander@15._c8fb11a0c49a39da33a9d557d170ff7b/node_modules/@wirecat/cli-core/dist/cli/help/sections.js
|
|
31
31
|
var SECTIONS = {
|
|
32
32
|
read: "Read",
|
|
33
33
|
write: "Write",
|
|
@@ -92,7 +92,7 @@ var CORE_SECTIONS = {
|
|
|
92
92
|
upgrade: "setup"
|
|
93
93
|
};
|
|
94
94
|
|
|
95
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
95
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.553.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.75.0_commander@15._c8fb11a0c49a39da33a9d557d170ff7b/node_modules/@wirecat/cli-core/dist/cli/help/commands-text.js
|
|
96
96
|
var DESCRIPTION = 90;
|
|
97
97
|
var COLUMN = 52;
|
|
98
98
|
var short = /* @__PURE__ */ __name((text) => {
|
|
@@ -131,7 +131,7 @@ var commandsText = /* @__PURE__ */ __name((root, commands, scope) => {
|
|
|
131
131
|
`;
|
|
132
132
|
}, "commandsText");
|
|
133
133
|
|
|
134
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
134
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.553.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.75.0_commander@15._c8fb11a0c49a39da33a9d557d170ff7b/node_modules/@wirecat/cli-core/dist/cli/help/command-help.js
|
|
135
135
|
var ARGUMENT_KINDS = {
|
|
136
136
|
chat: "chat",
|
|
137
137
|
chats: "chat",
|
|
@@ -323,7 +323,7 @@ var installCommandHelp = /* @__PURE__ */ __name((program, { profile = true } = {
|
|
|
323
323
|
command.addHelpText("after", () => commandHelpText(command));
|
|
324
324
|
}, "installCommandHelp");
|
|
325
325
|
|
|
326
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
326
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.553.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.75.0_commander@15._c8fb11a0c49a39da33a9d557d170ff7b/node_modules/@wirecat/cli-core/dist/cli/help/first-screen.js
|
|
327
327
|
var WIRECAT_TOOLS = [
|
|
328
328
|
{
|
|
329
329
|
command: "tg",
|
|
@@ -5,10 +5,10 @@ import {
|
|
|
5
5
|
installFiles,
|
|
6
6
|
megabytes,
|
|
7
7
|
sharedModelsDirectory
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-HA35XN2Z.js";
|
|
9
9
|
import {
|
|
10
10
|
CliError
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-EARO464A.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.553.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.75.0_commander@15._c8fb11a0c49a39da33a9d557d170ff7b/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.553.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.75.0_commander@15._c8fb11a0c49a39da33a9d557d170ff7b/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.553.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.75.0_commander@15._c8fb11a0c49a39da33a9d557d170ff7b/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.553.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.75.0_commander@15._c8fb11a0c49a39da33a9d557d170ff7b/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");
|
|
@@ -2,11 +2,11 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
openCache
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-XDOPONC3.js";
|
|
6
6
|
import {
|
|
7
7
|
CliError,
|
|
8
8
|
isCliError
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-EARO464A.js";
|
|
10
10
|
import {
|
|
11
11
|
__name
|
|
12
12
|
} from "./chunk-ZVVMGPBJ.js";
|
|
@@ -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-KZQXOZFC.js";
|
|
7
7
|
import {
|
|
8
8
|
QUESTIONS,
|
|
9
9
|
readSetupAnswers,
|
|
10
10
|
unanswered,
|
|
11
11
|
writeSetupAnswers
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-TTTDZOBW.js";
|
|
13
13
|
import {
|
|
14
14
|
DEFAULT_STEMMERS,
|
|
15
15
|
LANGUAGES
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-OFDMD3YF.js";
|
|
17
17
|
import {
|
|
18
18
|
sharedConfigPath
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-NMVFFWF2.js";
|
|
20
20
|
import {
|
|
21
21
|
storePath
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-TRRRRGMI.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.553.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.75.0_commander@15._c8fb11a0c49a39da33a9d557d170ff7b/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-EXBUF4OG.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-W3BN2SIO.js"),
|
|
115
|
+
import("./store-maintenance-command-UBZE2Z6T.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-NY46X6QU.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-GESHKSM5.js")).readSecret(prompt, { input, echo: true }), "ask"),
|
|
201
201
|
say: /* @__PURE__ */ __name((text) => process.stderr.write(`${text}
|
|
202
202
|
`), "say")
|
|
203
203
|
}
|
|
@@ -2,23 +2,23 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
storePath
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-TRRRRGMI.js";
|
|
6
6
|
import {
|
|
7
7
|
resolvePaths,
|
|
8
8
|
singleLine
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-34USFPBF.js";
|
|
10
10
|
import {
|
|
11
11
|
CliError
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-EARO464A.js";
|
|
13
13
|
import {
|
|
14
14
|
__name
|
|
15
15
|
} from "./chunk-ZVVMGPBJ.js";
|
|
16
16
|
|
|
17
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.553.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.75.0_commander@15._c8fb11a0c49a39da33a9d557d170ff7b/node_modules/@wirecat/cli-core/dist/store/shared-config.js
|
|
18
18
|
import { mkdirSync, readFileSync, renameSync, statSync, writeFileSync } from "node:fs";
|
|
19
19
|
import { dirname, join, resolve } from "node:path";
|
|
20
20
|
|
|
21
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.553.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.75.0_commander@15._c8fb11a0c49a39da33a9d557d170ff7b/node_modules/@wirecat/cli-core/dist/domain/task-categories.js
|
|
22
22
|
var DEFAULT_TASK_CATEGORIES = [
|
|
23
23
|
{
|
|
24
24
|
name: "taxes",
|
|
@@ -773,7 +773,7 @@ var storedTaskCategories = /* @__PURE__ */ __name((json) => {
|
|
|
773
773
|
}
|
|
774
774
|
}, "storedTaskCategories");
|
|
775
775
|
|
|
776
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
776
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.553.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.75.0_commander@15._c8fb11a0c49a39da33a9d557d170ff7b/node_modules/@wirecat/cli-core/dist/store/shared-config.js
|
|
777
777
|
var SECTION = "task_categories";
|
|
778
778
|
var sharedConfigPath = /* @__PURE__ */ __name((store, env = process.env) => {
|
|
779
779
|
const paths = resolvePaths({ appName: "WireCat", prefix: "WIRECAT", env });
|