@wirecat/drive-cli 0.62.0 → 0.63.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/drive.js +2 -2
- package/dist/bundle/{all-profiles-CKD2DWUK.js → all-profiles-GZJS3UKC.js} +6 -7
- package/dist/bundle/{anthropic-E3T4USLA.js → anthropic-RGV3WXX5.js} +3 -3
- package/dist/bundle/{app-server-JB2AEWWL.js → app-server-AA2PJ7PV.js} +40 -41
- package/dist/bundle/{bun-CC44AAND.js → bun-OXZYIA3R.js} +2 -2
- package/dist/bundle/{bun-sqlite-AUMFKYVR.js → bun-sqlite-D45NSDM3.js} +2 -2
- package/dist/bundle/{chunk-WZKEU7WR.js → chunk-2NIC72HH.js} +1 -1
- package/dist/bundle/{chunk-HCNQT3QE.js → chunk-2TDUGC5D.js} +331 -280
- package/dist/bundle/{chunk-DWJHL6DV.js → chunk-2TFXK3R4.js} +4 -4
- package/dist/bundle/{chunk-PEQA6LA5.js → chunk-33MGFUED.js} +169 -140
- package/dist/bundle/{chunk-YPFUYQDP.js → chunk-3BZRKLJ6.js} +12 -12
- package/dist/bundle/{chunk-YALI4C7C.js → chunk-3HK5WMI5.js} +5 -5
- package/dist/bundle/{chunk-R347FPYU.js → chunk-3QINVLZI.js} +1 -1
- package/dist/bundle/{chunk-LQKD257P.js → chunk-44SBK6KB.js} +938 -532
- package/dist/bundle/{chunk-XZUS7XRO.js → chunk-4CIZWCXV.js} +1 -1
- package/dist/bundle/{chunk-XS5POQST.js → chunk-4S4JMW6I.js} +1 -1
- package/dist/bundle/{chunk-YMWENGKH.js → chunk-534OBX5Y.js} +1 -1
- package/dist/bundle/{chunk-4SIZEJ3M.js → chunk-5PPL7JDM.js} +1 -1
- package/dist/bundle/{chunk-L7K2MOIC.js → chunk-6KQJSFYF.js} +18 -18
- package/dist/bundle/{chunk-VAYB52HF.js → chunk-6MQSQ4LX.js} +20 -20
- package/dist/bundle/{chunk-DJOAMGF4.js → chunk-7EMQ26BA.js} +9 -9
- package/dist/bundle/{chunk-TDX4GZFO.js → chunk-ABYGSJZ4.js} +4 -4
- package/dist/bundle/{chunk-FNWIJ6EJ.js → chunk-AEX37ETW.js} +1 -1
- package/dist/bundle/{chunk-SVPCHFKI.js → chunk-BKYMKVHT.js} +2 -2
- package/dist/bundle/{chunk-OBH5BA62.js → chunk-CE2TJBLP.js} +2 -2
- package/dist/bundle/{chunk-QTI6IVHZ.js → chunk-DJ3SDJZY.js} +6 -6
- package/dist/bundle/{chunk-XFRRKZHQ.js → chunk-DJHLVUL6.js} +16 -13
- package/dist/bundle/{chunk-JK3U25QZ.js → chunk-E4SDKMBJ.js} +59 -1
- package/dist/bundle/{chunk-HG6CAYJH.js → chunk-FRIJUILO.js} +2 -2
- package/dist/bundle/{chunk-RPMKG63Z.js → chunk-HZZCEQTH.js} +3 -3
- package/dist/bundle/{chunk-YXYTY4GF.js → chunk-J24ZFCWM.js} +16 -16
- package/dist/bundle/{chunk-E43ENLJJ.js → chunk-J4DIHPZ6.js} +1 -1
- package/dist/bundle/{chunk-SW4I5BR7.js → chunk-L37LMMRJ.js} +1 -1
- package/dist/bundle/{chunk-Q2LRPOKL.js → chunk-LMAVCYLQ.js} +3 -3
- package/dist/bundle/{chunk-T7X53FCJ.js → chunk-LZEOQW7S.js} +31 -31
- package/dist/bundle/{chunk-T5NWWXS2.js → chunk-MOTRI3SY.js} +1 -1
- package/dist/bundle/{chunk-ONP2IBHY.js → chunk-ND6LLYGF.js} +97 -80
- package/dist/bundle/{chunk-2KN35F32.js → chunk-NEFSGCVA.js} +8 -8
- package/dist/bundle/{chunk-JN5TVEEL.js → chunk-OXY6SSZG.js} +101 -14
- package/dist/bundle/{chunk-W4RTIL7S.js → chunk-PDCCYHCH.js} +2 -2
- package/dist/bundle/{chunk-AH5C3D3D.js → chunk-PO5RQQIG.js} +4 -4
- package/dist/bundle/{chunk-CZ2GJHLL.js → chunk-Q5DJTRKV.js} +2 -2
- package/dist/bundle/{chunk-O7ALBI2I.js → chunk-RKELRWH7.js} +3 -3
- package/dist/bundle/{chunk-67ZQCWBV.js → chunk-S4RXABDR.js} +2 -2
- package/dist/bundle/{chunk-QCX6XZLA.js → chunk-SXM6MHRR.js} +9 -9
- package/dist/bundle/{chunk-RIDQNVZM.js → chunk-TF23BZW5.js} +2 -2
- package/dist/bundle/{chunk-N7OZPKU7.js → chunk-TWUH22Z5.js} +1 -1
- package/dist/bundle/chunk-UPOSDTPT.js +87 -0
- package/dist/bundle/{chunk-CJHY5YIF.js → chunk-V3NVXIQR.js} +353 -114
- package/dist/bundle/{chunk-QH7DOVO3.js → chunk-VAUMOZU5.js} +44 -28
- package/dist/bundle/{chunk-VQDD64A4.js → chunk-VJEOGKAN.js} +7 -9
- package/dist/bundle/{chunk-MN4VXU3M.js → chunk-VKPCONDQ.js} +3 -3
- package/dist/bundle/{chunk-LWE4JGRN.js → chunk-WYGWWHZP.js} +2 -2
- package/dist/bundle/{chunk-EW7PKB4M.js → chunk-XDC3TWTL.js} +25 -25
- package/dist/bundle/{chunk-KLFSRKHB.js → chunk-XIUDS3OK.js} +1 -1
- package/dist/bundle/{chunk-U2BFYSQV.js → chunk-XNVFKMVR.js} +8559 -3343
- package/dist/bundle/{chunk-IR4SQLBR.js → chunk-XR6ESRU6.js} +1 -1
- package/dist/bundle/{chunk-RWSXVCSG.js → chunk-Y6GNA7HE.js} +2 -2
- package/dist/bundle/{chunk-7ZXIWZQ6.js → chunk-YGU6ULU5.js} +10 -10
- package/dist/bundle/{chunk-UGXN5D7U.js → chunk-YIP7ELON.js} +108 -62
- package/dist/bundle/{chunk-XEW2EN6F.js → chunk-Z42YYLTS.js} +31 -23
- package/dist/bundle/{chunk-DRZZBN3V.js → chunk-Z5KC7XBR.js} +1 -1
- package/dist/bundle/{chunk-7W5HYGVW.js → chunk-ZM5J6ZMB.js} +1 -1
- package/dist/bundle/{chunk-YOJDGAPT.js → chunk-ZOJU7ZFI.js} +7 -7
- package/dist/bundle/{command-contract-OB5BRABN.js → command-contract-BRW3AP44.js} +13 -14
- package/dist/bundle/{decode-WIIX3Y2X.js → decode-G5YEIPNC.js} +2 -2
- package/dist/bundle/drive.js +3 -3
- package/dist/bundle/{echarts-OYINM4C4.js → echarts-W2CWHNXR.js} +2 -2
- package/dist/bundle/{embed-DWZIYMBX.js → embed-OBFFPVF4.js} +3 -3
- package/dist/bundle/{embedder-ILWH7ZRM.js → embedder-NGCBQHIG.js} +6 -6
- package/dist/bundle/{entry-V5V3TOTY.js → entry-ET6HGM7A.js} +5 -5
- package/dist/bundle/{first-run-V3VVLQF4.js → first-run-JG52UZVO.js} +5 -5
- package/dist/bundle/{first-screen-Y3RIN7FU.js → first-screen-CIL3GFAA.js} +14 -15
- package/dist/bundle/{google-KLZSUAVY.js → google-CIWUVJ5C.js} +4 -4
- package/dist/bundle/{google-api-HZQ5R4ZO.js → google-api-Z3NSTBBR.js} +44 -45
- package/dist/bundle/{grants-L7XLHLUT.js → grants-3S4RL3WB.js} +49 -50
- package/dist/bundle/{identity-J2DON4IO.js → identity-OM6GFZ7T.js} +1 -1
- package/dist/bundle/{instructions-HGOJ23AJ.js → instructions-YQBQSYSS.js} +1 -1
- package/dist/bundle/{login-BD2TS4GY.js → login-7RYSDVN3.js} +48 -49
- package/dist/bundle/{node-CPKTDPH7.js → node-IVU33RL7.js} +2 -2
- package/dist/bundle/{node-sqlite-IXDCRLSX.js → node-sqlite-SIH5BEW2.js} +3 -3
- package/dist/bundle/{oauth-HOGY4YBB.js → oauth-PT4JEHLL.js} +4 -4
- package/dist/bundle/{open-O7P3ZV3Y.js → open-IAO2SNII.js} +2 -2
- package/dist/bundle/{openai-RCFQKCXC.js → openai-SGOUBHXP.js} +10 -10
- package/dist/bundle/{process-KXDRJO22.js → process-BPBMV3AT.js} +1 -1
- package/dist/bundle/{program-UCHFC7JQ.js → program-MYKKJ4F6.js} +68 -67
- package/dist/bundle/{prompt-EVPPBN5W.js → prompt-3ZM64DCB.js} +2 -2
- package/dist/bundle/{recognize-MRCYGP2J.js → recognize-A5C5RPB3.js} +1 -1
- package/dist/bundle/{remote-L3L4PHKF.js → remote-VWYFLRGO.js} +4 -4
- package/dist/bundle/{rerank-PSOE6XFT.js → rerank-4NGQWREA.js} +4 -4
- package/dist/bundle/{serve-72OGS3BF.js → serve-Y6LQTFH5.js} +6 -6
- package/dist/bundle/{server-SCXKYHBO.js → server-6AUHIIUA.js} +32 -33
- package/dist/bundle/server-PFHI35HA.js +69 -0
- package/dist/bundle/{services-YAFTELBI.js → services-2W4J7EMW.js} +26 -21
- package/dist/bundle/{sqlite-runtime-DLK4SU33.js → sqlite-runtime-P6BBDX2H.js} +3 -3
- package/dist/bundle/{state-T5VNAJSZ.js → state-PXKKXR3R.js} +3 -3
- package/dist/bundle/{store-R6MSY2IM.js → store-CN6JEUC4.js} +18 -10
- package/dist/bundle/{store-4OFK7PKQ.js → store-IVV2BAGZ.js} +42 -12
- package/dist/bundle/store-maintenance-command-MSY2QNEH.js +59 -0
- package/dist/bundle/tokens-P4LPNUFW.js +102 -0
- package/dist/commands/config.d.ts.map +1 -1
- package/dist/commands/config.js +5 -1
- package/dist/commands/config.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +2 -2
- package/dist/bundle/chunk-AQVUEZEP.js +0 -22
- package/dist/bundle/chunk-UOXOLGNG.js +0 -42
- package/dist/bundle/server-C5TGNFXW.js +0 -70
- package/dist/bundle/store-maintenance-command-QDMCXGV6.js +0 -60
- package/dist/bundle/tokens-HIG36RNS.js +0 -103
|
@@ -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.608.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_835308f42ae01aacd71fad942c0d0dc0/node_modules/@wirecat/cli-core/dist/http/listen.js
|
|
8
8
|
import { createServer } from "node:http";
|
|
9
9
|
import { Readable } from "node:stream";
|
|
10
10
|
var MAX_BODY = 4 * 1024 * 1024;
|
|
@@ -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.608.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_835308f42ae01aacd71fad942c0d0dc0/node_modules/@wirecat/cli-core/dist/store/sqlite/drizzle/shared-55XJMTPA.js
|
|
8
8
|
var entityKind = /* @__PURE__ */ Symbol.for("drizzle:entityKind");
|
|
9
9
|
var kindsByConstructor = /* @__PURE__ */ new WeakMap();
|
|
10
10
|
function collectKinds(ctor) {
|
|
@@ -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.608.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_835308f42ae01aacd71fad942c0d0dc0/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) => {
|
|
@@ -30,7 +30,7 @@ import {
|
|
|
30
30
|
__name
|
|
31
31
|
} from "./chunk-ZVVMGPBJ.js";
|
|
32
32
|
|
|
33
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_835308f42ae01aacd71fad942c0d0dc0/node_modules/@wirecat/cli-core/dist/documents/blocks.js
|
|
34
34
|
var MARKS = ["bold", "italic", "strike", "code", "link"];
|
|
35
35
|
var sameMarks = /* @__PURE__ */ __name((a, b) => MARKS.every((mark) => a[mark] === b[mark]), "sameMarks");
|
|
36
36
|
var normalizeInlines = /* @__PURE__ */ __name((inlines) => {
|
|
@@ -78,7 +78,7 @@ var key = /* @__PURE__ */ __name((block, withChecked) => {
|
|
|
78
78
|
var blockKey = /* @__PURE__ */ __name((block) => JSON.stringify(key(block, true)), "blockKey");
|
|
79
79
|
var blockShape = /* @__PURE__ */ __name((block) => JSON.stringify(key(block, false)), "blockShape");
|
|
80
80
|
|
|
81
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
81
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_835308f42ae01aacd71fad942c0d0dc0/node_modules/@wirecat/cli-core/dist/services/documents/block-diff.js
|
|
82
82
|
var MAX_CELLS = 4e6;
|
|
83
83
|
var matches = /* @__PURE__ */ __name((a, b, keyOf) => {
|
|
84
84
|
const ka = a.map(keyOf);
|
|
@@ -224,7 +224,7 @@ var mergeBlocks = /* @__PURE__ */ __name((baseLocal, baseRemote, local, remote,
|
|
|
224
224
|
return { status: "clean", blocks, conflicts };
|
|
225
225
|
}, "mergeBlocks");
|
|
226
226
|
|
|
227
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
227
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_835308f42ae01aacd71fad942c0d0dc0/node_modules/@wirecat/cli-core/dist/services/documents/extraction.js
|
|
228
228
|
var Proposal = object({
|
|
229
229
|
kind: picklist(["summary", "digest", "fact", "preference"]),
|
|
230
230
|
body: pipe(string(), trim(), minLength(1), maxLength(15e3)),
|
|
@@ -259,7 +259,7 @@ var extractMemories = /* @__PURE__ */ __name(async (text, complete) => {
|
|
|
259
259
|
return { ...proposals, provider: answer.provider, model: answer.model, tokens: answer.tokens };
|
|
260
260
|
}, "extractMemories");
|
|
261
261
|
|
|
262
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
262
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_835308f42ae01aacd71fad942c0d0dc0/node_modules/@wirecat/cli-core/dist/services/documents/ingestion.js
|
|
263
263
|
var documentIngestion = /* @__PURE__ */ __name((store, options) => {
|
|
264
264
|
const folder = /* @__PURE__ */ __name(async (principal, create) => {
|
|
265
265
|
if (options.provider)
|
|
@@ -386,7 +386,7 @@ var documentIngestion = /* @__PURE__ */ __name((store, options) => {
|
|
|
386
386
|
};
|
|
387
387
|
}, "documentIngestion");
|
|
388
388
|
|
|
389
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
389
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_835308f42ae01aacd71fad942c0d0dc0/node_modules/@wirecat/cli-core/dist/services/documents/knowledge.js
|
|
390
390
|
var writer = /* @__PURE__ */ __name((by) => {
|
|
391
391
|
if (by === void 0)
|
|
392
392
|
throw new CliError("validation_error", "name who writes it: the owner or an agent; there is no default", {
|
|
@@ -542,7 +542,7 @@ var documentKnowledge = /* @__PURE__ */ __name((store, folder) => {
|
|
|
542
542
|
return port;
|
|
543
543
|
}, "documentKnowledge");
|
|
544
544
|
|
|
545
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
545
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_835308f42ae01aacd71fad942c0d0dc0/node_modules/@wirecat/cli-core/dist/documents/markdown-blocks.js
|
|
546
546
|
var parser;
|
|
547
547
|
var loadParser = /* @__PURE__ */ __name(() => parser ??= Promise.all([
|
|
548
548
|
import("./mdast-util-from-markdown-FXEPSNER.js"),
|
|
@@ -667,7 +667,7 @@ var placedMarkdownBlocks = /* @__PURE__ */ __name(async (markdown) => {
|
|
|
667
667
|
return blocks(tree.children);
|
|
668
668
|
}, "placedMarkdownBlocks");
|
|
669
669
|
|
|
670
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
670
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_835308f42ae01aacd71fad942c0d0dc0/node_modules/@wirecat/cli-core/dist/services/documents/markdown-splice.js
|
|
671
671
|
var escapeText = /* @__PURE__ */ __name((text) => text.replace(/[\\`*_[\]<>~|]/g, "\\$&"), "escapeText");
|
|
672
672
|
var codeSpan = /* @__PURE__ */ __name((text) => {
|
|
673
673
|
const longest = (text.match(/`+/g) ?? []).reduce((most, run) => Math.max(most, run.length), 0);
|
|
@@ -853,15 +853,15 @@ var columnsBefore = /* @__PURE__ */ __name((placed, index) => {
|
|
|
853
853
|
return columns;
|
|
854
854
|
}, "columnsBefore");
|
|
855
855
|
|
|
856
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
856
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_835308f42ae01aacd71fad942c0d0dc0/node_modules/@wirecat/cli-core/dist/services/documents/mirror-watch.js
|
|
857
857
|
import { watch } from "node:fs";
|
|
858
858
|
|
|
859
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
859
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_835308f42ae01aacd71fad942c0d0dc0/node_modules/@wirecat/cli-core/dist/services/documents/mirrors.js
|
|
860
860
|
import { createHash as createHash2 } from "node:crypto";
|
|
861
861
|
import { mkdirSync, readFileSync } from "node:fs";
|
|
862
862
|
import { join as join2 } from "node:path";
|
|
863
863
|
|
|
864
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
864
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_835308f42ae01aacd71fad942c0d0dc0/node_modules/@wirecat/cli-core/dist/services/documents/push.js
|
|
865
865
|
import { createHash, randomUUID } from "node:crypto";
|
|
866
866
|
import { createReadStream } from "node:fs";
|
|
867
867
|
import { chmod, readdir, rename, rm, stat, writeFile } from "node:fs/promises";
|
|
@@ -1113,7 +1113,7 @@ var pushDocuments = /* @__PURE__ */ __name(async (options) => {
|
|
|
1113
1113
|
return result;
|
|
1114
1114
|
}, "pushDocuments");
|
|
1115
1115
|
|
|
1116
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1116
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_835308f42ae01aacd71fad942c0d0dc0/node_modules/@wirecat/cli-core/dist/services/documents/mirrors.js
|
|
1117
1117
|
var mirrorId = /* @__PURE__ */ __name((root, folder) => createHash2("sha256").update(JSON.stringify([root, folder])).digest("hex").slice(0, 8), "mirrorId");
|
|
1118
1118
|
var ID = pipe(string(), regex(/^[A-Za-z0-9_-]{1,200}$/));
|
|
1119
1119
|
var stateSchema = /* @__PURE__ */ __name((kinds) => object({
|
|
@@ -1235,7 +1235,7 @@ var syncMirrors = /* @__PURE__ */ __name(async (options) => {
|
|
|
1235
1235
|
};
|
|
1236
1236
|
}, "syncMirrors");
|
|
1237
1237
|
|
|
1238
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1238
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_835308f42ae01aacd71fad942c0d0dc0/node_modules/@wirecat/cli-core/dist/services/documents/mirror-watch.js
|
|
1239
1239
|
var sleep = /* @__PURE__ */ __name((milliseconds, signal) => new Promise((resolve) => {
|
|
1240
1240
|
const finish = /* @__PURE__ */ __name(() => {
|
|
1241
1241
|
clearTimeout(timer);
|
|
@@ -1374,7 +1374,7 @@ async function* watchMirrors(sync, options) {
|
|
|
1374
1374
|
}
|
|
1375
1375
|
__name(watchMirrors, "watchMirrors");
|
|
1376
1376
|
|
|
1377
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1377
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_835308f42ae01aacd71fad942c0d0dc0/node_modules/@wirecat/cli-core/dist/services/documents/proposals.js
|
|
1378
1378
|
var extractDocumentMemories = /* @__PURE__ */ __name(async (options) => {
|
|
1379
1379
|
const source = options.read();
|
|
1380
1380
|
const text = options.tab ? source.snapshot.tabs.find((tab) => tab.id === options.tab)?.text : source.snapshot.text;
|
|
@@ -1424,10 +1424,10 @@ Snapshot: ${source.hash}`;
|
|
|
1424
1424
|
};
|
|
1425
1425
|
}, "extractDocumentMemories");
|
|
1426
1426
|
|
|
1427
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1427
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_835308f42ae01aacd71fad942c0d0dc0/node_modules/@wirecat/cli-core/dist/services/documents/sync.js
|
|
1428
1428
|
import { createHash as createHash4 } from "node:crypto";
|
|
1429
1429
|
|
|
1430
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1430
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_835308f42ae01aacd71fad942c0d0dc0/node_modules/@wirecat/cli-core/dist/documents/scope.js
|
|
1431
1431
|
var within = /* @__PURE__ */ __name((file, roots, folders, seen = /* @__PURE__ */ new Set()) => {
|
|
1432
1432
|
if (file.trashed)
|
|
1433
1433
|
return false;
|
|
@@ -1442,7 +1442,7 @@ var within = /* @__PURE__ */ __name((file, roots, folders, seen = /* @__PURE__ *
|
|
|
1442
1442
|
});
|
|
1443
1443
|
}, "within");
|
|
1444
1444
|
|
|
1445
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1445
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_835308f42ae01aacd71fad942c0d0dc0/node_modules/@wirecat/cli-core/dist/documents/catalog.js
|
|
1446
1446
|
var catalogFiles = /* @__PURE__ */ __name((state, roots) => {
|
|
1447
1447
|
const folders = state.pending?.folders ?? state.folders;
|
|
1448
1448
|
const files = new Map(Object.values(state.documents).map((doc) => [doc.metadata.id, doc.metadata]));
|
|
@@ -1460,7 +1460,7 @@ var catalogFiles = /* @__PURE__ */ __name((state, roots) => {
|
|
|
1460
1460
|
return [...files.values()].filter((file) => within(file, roots, folders));
|
|
1461
1461
|
}, "catalogFiles");
|
|
1462
1462
|
|
|
1463
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1463
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_835308f42ae01aacd71fad942c0d0dc0/node_modules/@wirecat/cli-core/dist/services/documents/plan.js
|
|
1464
1464
|
import { createHash as createHash3 } from "node:crypto";
|
|
1465
1465
|
var scopeHash = /* @__PURE__ */ __name((roots) => createHash3("sha256").update(JSON.stringify([...roots].sort())).digest("hex"), "scopeHash");
|
|
1466
1466
|
var changedSince = /* @__PURE__ */ __name((previous, file) => previous.version !== file.version || previous.modifiedAt !== file.modifiedAt || previous.name !== file.name || previous.canDownload !== file.canDownload || JSON.stringify(previous.parents) !== JSON.stringify(file.parents), "changedSince");
|
|
@@ -1644,7 +1644,7 @@ var planDocuments = /* @__PURE__ */ __name(async (options, source, state, roots,
|
|
|
1644
1644
|
return { scope, cursor: finalCursor, folders: scopedFolders, jobs, skipped };
|
|
1645
1645
|
}, "planDocuments");
|
|
1646
1646
|
|
|
1647
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1647
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_835308f42ae01aacd71fad942c0d0dc0/node_modules/@wirecat/cli-core/dist/services/documents/sync.js
|
|
1648
1648
|
var MAX_PICTURE_BYTES = 25 * 1024 * 1024;
|
|
1649
1649
|
var SAVE_EVERY_MS2 = 2e3;
|
|
1650
1650
|
var SAVE_EVERY_ITEMS = 25;
|
|
@@ -3,7 +3,7 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
filesPresent,
|
|
5
5
|
sharedModelsDirectory
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-LMAVCYLQ.js";
|
|
7
7
|
import {
|
|
8
8
|
PRIORITY_LABELS,
|
|
9
9
|
TAG_TYPES,
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
id,
|
|
15
15
|
text,
|
|
16
16
|
time
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-V3NVXIQR.js";
|
|
18
18
|
import {
|
|
19
19
|
createRecordLog,
|
|
20
20
|
resolvePaths,
|
|
@@ -41,17 +41,17 @@ import {
|
|
|
41
41
|
__name
|
|
42
42
|
} from "./chunk-ZVVMGPBJ.js";
|
|
43
43
|
|
|
44
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
44
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_835308f42ae01aacd71fad942c0d0dc0/node_modules/@wirecat/cli-core/dist/runs/scope.js
|
|
45
45
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
46
46
|
import { randomBytes } from "node:crypto";
|
|
47
47
|
|
|
48
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
48
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_835308f42ae01aacd71fad942c0d0dc0/node_modules/@wirecat/cli-core/dist/runs/run.js
|
|
49
49
|
import { randomUUID } from "node:crypto";
|
|
50
50
|
import { appendFileSync, mkdirSync, readdirSync, readFileSync, rmSync, statSync, writeFileSync } from "node:fs";
|
|
51
51
|
import { userInfo } from "node:os";
|
|
52
52
|
import { join, sep } from "node:path";
|
|
53
53
|
|
|
54
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
54
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_835308f42ae01aacd71fad942c0d0dc0/node_modules/@wirecat/cli-core/dist/runs/log-keys.js
|
|
55
55
|
var snake = /* @__PURE__ */ __name((key) => key.replace(/[A-Z]/g, (letter) => `_${letter.toLowerCase()}`), "snake");
|
|
56
56
|
var camel = /* @__PURE__ */ __name((key) => key.replace(/_([a-z0-9])/g, (_, letter) => letter.toUpperCase()), "camel");
|
|
57
57
|
var renamed = /* @__PURE__ */ __name((record, name) => Object.fromEntries(Object.entries(record).map(([key, value]) => [name(key), value])), "renamed");
|
|
@@ -64,7 +64,7 @@ var snakeLogger = /* @__PURE__ */ __name((logger) => ({
|
|
|
64
64
|
error: /* @__PURE__ */ __name((event, message) => logger.error(logAttributes(event), message), "error")
|
|
65
65
|
}), "snakeLogger");
|
|
66
66
|
|
|
67
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
67
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_835308f42ae01aacd71fad942c0d0dc0/node_modules/@wirecat/cli-core/dist/runs/log-attributes.js
|
|
68
68
|
var diagnostic = {
|
|
69
69
|
event: true,
|
|
70
70
|
operation: true,
|
|
@@ -134,7 +134,7 @@ var LOG_ATTRIBUTES = [
|
|
|
134
134
|
...new Set([...Object.keys(diagnostic), ...Object.keys(send), ...background, ...crash, ...dropped].map((key) => Object.keys(logAttributes({ [key]: true }))[0]))
|
|
135
135
|
].sort();
|
|
136
136
|
|
|
137
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
137
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_835308f42ae01aacd71fad942c0d0dc0/node_modules/@wirecat/cli-core/dist/runs/run.js
|
|
138
138
|
var KEEP_RUNS_FOR_DAYS = 30;
|
|
139
139
|
var KEEP_SUCCESSFUL_RUNS_FOR_DAYS = 7;
|
|
140
140
|
var RUNS_SIZE_LIMIT_MB = 200;
|
|
@@ -487,7 +487,7 @@ var metadataOf = /* @__PURE__ */ __name((parsed) => {
|
|
|
487
487
|
};
|
|
488
488
|
}, "metadataOf");
|
|
489
489
|
|
|
490
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
490
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_835308f42ae01aacd71fad942c0d0dc0/node_modules/@wirecat/cli-core/dist/runs/scope.js
|
|
491
491
|
var scopes = new AsyncLocalStorage();
|
|
492
492
|
var processScope;
|
|
493
493
|
var currentRun = /* @__PURE__ */ __name(() => {
|
|
@@ -523,7 +523,7 @@ var attempts = new AsyncLocalStorage();
|
|
|
523
523
|
var withAttempt = /* @__PURE__ */ __name((attempt, work) => attempts.run(attempt, work), "withAttempt");
|
|
524
524
|
var currentAttempt = /* @__PURE__ */ __name(() => attempts.getStore(), "currentAttempt");
|
|
525
525
|
|
|
526
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
526
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_835308f42ae01aacd71fad942c0d0dc0/node_modules/@wirecat/cli-core/dist/domain/duration.js
|
|
527
527
|
var DURATION = /^(\d+)(ms|s|m|h|d)$/;
|
|
528
528
|
var UNIT_MS = { ms: 1, s: 1e3, m: 6e4, h: 36e5, d: 864e5 };
|
|
529
529
|
var parseDuration = /* @__PURE__ */ __name((value, source) => {
|
|
@@ -537,7 +537,7 @@ var parseDuration = /* @__PURE__ */ __name((value, source) => {
|
|
|
537
537
|
return ms;
|
|
538
538
|
}, "parseDuration");
|
|
539
539
|
|
|
540
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
540
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_835308f42ae01aacd71fad942c0d0dc0/node_modules/@wirecat/cli-core/dist/sends/permissions.js
|
|
541
541
|
var LEVELS = ["deny", "readonly", "ask", "allow"];
|
|
542
542
|
var DANGEROUS = /* @__PURE__ */ new Set(["messages.delete", "bot.messages.delete", "topics.delete", "chats.delete", "chats.clear"]);
|
|
543
543
|
var skipFlagFor = /* @__PURE__ */ __name((key) => DANGEROUS.has(key) ? "--allow-dangerous" : "--yes", "skipFlagFor");
|
|
@@ -933,7 +933,7 @@ var assertRetentionEvidenceRead = /* @__PURE__ */ __name((permissions) => {
|
|
|
933
933
|
}
|
|
934
934
|
}, "assertRetentionEvidenceRead");
|
|
935
935
|
|
|
936
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
936
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_835308f42ae01aacd71fad942c0d0dc0/node_modules/@wirecat/cli-core/dist/sends/guarded.js
|
|
937
937
|
import { AsyncLocalStorage as AsyncLocalStorage2 } from "node:async_hooks";
|
|
938
938
|
var sentIds = /* @__PURE__ */ __name((typed, message) => ({
|
|
939
939
|
messageId: message.id,
|
|
@@ -1039,7 +1039,7 @@ var guardedWrite = /* @__PURE__ */ __name(async (guard, attempt, act, settled =
|
|
|
1039
1039
|
}, "guardedWrite");
|
|
1040
1040
|
var codeOf = /* @__PURE__ */ __name((error) => typeof error?.code === "string" ? error.code : "unknown", "codeOf");
|
|
1041
1041
|
|
|
1042
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1042
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_835308f42ae01aacd71fad942c0d0dc0/node_modules/@wirecat/cli-core/dist/embeddings/models.js
|
|
1043
1043
|
var huggingFace = /* @__PURE__ */ __name((repository, commit) => (name) => `https://huggingface.co/${repository}/resolve/${commit}/${name}`, "huggingFace");
|
|
1044
1044
|
var e5 = huggingFace("Xenova/multilingual-e5-small", "761b726dd34fb83930e26aab4e9ac3899aa1fa78");
|
|
1045
1045
|
var gemma = huggingFace("onnx-community/embeddinggemma-300m-ONNX", "5090578d9565bb06545b4552f76e6bc2c93e4a66");
|
|
@@ -1198,7 +1198,7 @@ var rerankModel = /* @__PURE__ */ __name((id2) => {
|
|
|
1198
1198
|
var vectorModelKey = /* @__PURE__ */ __name((model) => `local:${model.id}:${model.dims}`, "vectorModelKey");
|
|
1199
1199
|
var meaningFloor = /* @__PURE__ */ __name((key) => key === "local:e5-small:384" ? 0.8 : 0, "meaningFloor");
|
|
1200
1200
|
|
|
1201
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1201
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_835308f42ae01aacd71fad942c0d0dc0/node_modules/@wirecat/cli-core/dist/services/history-limits.js
|
|
1202
1202
|
var HISTORY_MAX_DAYS = 1095;
|
|
1203
1203
|
var DEFAULT_HISTORY_LIMITS = { dialogDays: 1095, groupDays: 365, groupMembersMax: 50 };
|
|
1204
1204
|
var DAY_MS2 = 24 * 60 * 60 * 1e3;
|
|
@@ -1245,7 +1245,7 @@ var limitBatch = /* @__PURE__ */ __name((batch, shapes, included, limits, now =
|
|
|
1245
1245
|
return { batch: { ...batch, messages }, skipped };
|
|
1246
1246
|
}, "limitBatch");
|
|
1247
1247
|
|
|
1248
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1248
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_835308f42ae01aacd71fad942c0d0dc0/node_modules/@wirecat/cli-core/dist/entities/task.js
|
|
1249
1249
|
var closeSuggestion = strictObject({
|
|
1250
1250
|
as: picklist(["done", "dismissed"]),
|
|
1251
1251
|
/** The agent's name. */
|
|
@@ -1307,7 +1307,7 @@ var task = strictObject({
|
|
|
1307
1307
|
updated_at: optional(time)
|
|
1308
1308
|
});
|
|
1309
1309
|
|
|
1310
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1310
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_835308f42ae01aacd71fad942c0d0dc0/node_modules/@wirecat/cli-core/dist/entities/agenda.js
|
|
1311
1311
|
var agendaChat = strictObject({
|
|
1312
1312
|
chat: reference,
|
|
1313
1313
|
title: nullable(text),
|
|
@@ -1377,7 +1377,7 @@ var agenda = strictObject({
|
|
|
1377
1377
|
unlisted_categories: array(strictObject({ name: text, open_tasks: number() }))
|
|
1378
1378
|
});
|
|
1379
1379
|
|
|
1380
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1380
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_835308f42ae01aacd71fad942c0d0dc0/node_modules/@wirecat/cli-core/dist/entities/attachment.js
|
|
1381
1381
|
var attachment = strictObject({
|
|
1382
1382
|
/** The message it came with, as a locator; absent inside that message. */
|
|
1383
1383
|
message: optional(reference),
|
|
@@ -1415,7 +1415,7 @@ var attachment = strictObject({
|
|
|
1415
1415
|
});
|
|
1416
1416
|
var hitFile = strictObject({ position: count, kind: text, name: optional(text), size: optional(count) });
|
|
1417
1417
|
|
|
1418
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1418
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_835308f42ae01aacd71fad942c0d0dc0/node_modules/@wirecat/cli-core/dist/entities/conversation.js
|
|
1419
1419
|
var conversation = strictObject({
|
|
1420
1420
|
id,
|
|
1421
1421
|
chat: reference,
|
|
@@ -1430,7 +1430,7 @@ var conversation = strictObject({
|
|
|
1430
1430
|
rules_version: count
|
|
1431
1431
|
});
|
|
1432
1432
|
|
|
1433
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1433
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_835308f42ae01aacd71fad942c0d0dc0/node_modules/@wirecat/cli-core/dist/entities/tagging.js
|
|
1434
1434
|
var tagging = strictObject({
|
|
1435
1435
|
tag: text,
|
|
1436
1436
|
type: picklist(TAG_TYPES),
|
|
@@ -1443,7 +1443,7 @@ var tagging = strictObject({
|
|
|
1443
1443
|
created_at: time
|
|
1444
1444
|
});
|
|
1445
1445
|
|
|
1446
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1446
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_835308f42ae01aacd71fad942c0d0dc0/node_modules/@wirecat/cli-core/dist/images/picture/models.js
|
|
1447
1447
|
import { join as join2 } from "node:path";
|
|
1448
1448
|
var clip = /* @__PURE__ */ __name((name) => `https://huggingface.co/Xenova/clip-vit-base-patch32/resolve/d15189d7028b43f1d3e65039190477f6af591c2a/${name}`, "clip");
|
|
1449
1449
|
var IMAGE_MODELS = [
|
|
@@ -1497,7 +1497,7 @@ var imageModelsDirectory = /* @__PURE__ */ __name((env = process.env) => sharedM
|
|
|
1497
1497
|
var placedImage = /* @__PURE__ */ __name((model, directory) => model.files.map((file) => [file, join2(directory, model.id, file.name)]), "placedImage");
|
|
1498
1498
|
var isImageModelInstalled = /* @__PURE__ */ __name((model, directory) => filesPresent(placedImage(model, directory)), "isImageModelInstalled");
|
|
1499
1499
|
|
|
1500
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1500
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_835308f42ae01aacd71fad942c0d0dc0/node_modules/@wirecat/cli-core/dist/botcheck/reasons.js
|
|
1501
1501
|
var WEIGHTS = {
|
|
1502
1502
|
bot: 3,
|
|
1503
1503
|
scam: 3,
|
|
@@ -3,21 +3,21 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
activeProfile,
|
|
5
5
|
paths
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-SXM6MHRR.js";
|
|
7
7
|
import {
|
|
8
8
|
READ_SCOPE,
|
|
9
9
|
WRITE_SCOPE,
|
|
10
10
|
providerRequest
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-2TDUGC5D.js";
|
|
12
12
|
import {
|
|
13
13
|
googleError
|
|
14
14
|
} from "./chunk-OTROVC4E.js";
|
|
15
15
|
import {
|
|
16
16
|
withTimeLimit
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-ND6LLYGF.js";
|
|
18
18
|
import {
|
|
19
19
|
acquireLock
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-3BZRKLJ6.js";
|
|
21
21
|
import {
|
|
22
22
|
Credentials,
|
|
23
23
|
isMovedRun,
|
|
@@ -42,7 +42,7 @@ import {
|
|
|
42
42
|
__name
|
|
43
43
|
} from "./chunk-ZVVMGPBJ.js";
|
|
44
44
|
|
|
45
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
45
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_835308f42ae01aacd71fad942c0d0dc0/node_modules/@wirecat/cli-core/dist/oauth/authorize.js
|
|
46
46
|
import { createHash, randomBytes } from "node:crypto";
|
|
47
47
|
import { createServer } from "node:http";
|
|
48
48
|
var DEFAULT_TIMEOUT_MS = 3e5;
|
|
@@ -178,12 +178,12 @@ var authorize = /* @__PURE__ */ __name(async (options) => {
|
|
|
178
178
|
}
|
|
179
179
|
}, "authorize");
|
|
180
180
|
|
|
181
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
181
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_835308f42ae01aacd71fad942c0d0dc0/node_modules/@wirecat/cli-core/dist/oauth/keeper.js
|
|
182
182
|
import { createHash as createHash2 } from "node:crypto";
|
|
183
183
|
import { join } from "node:path";
|
|
184
184
|
import { setTimeout as delay } from "node:timers/promises";
|
|
185
185
|
|
|
186
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
186
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_835308f42ae01aacd71fad942c0d0dc0/node_modules/@wirecat/cli-core/dist/oauth/requests.js
|
|
187
187
|
var REQUEST_LIMIT_MS = 3e4;
|
|
188
188
|
var TOKEN_LOG_EVENT = "oauth.token";
|
|
189
189
|
var object2 = /* @__PURE__ */ __name((value) => {
|
|
@@ -303,7 +303,7 @@ var revokeToken = /* @__PURE__ */ __name(async (provider, tokens, context) => {
|
|
|
303
303
|
});
|
|
304
304
|
}, "revokeToken");
|
|
305
305
|
|
|
306
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
306
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_835308f42ae01aacd71fad942c0d0dc0/node_modules/@wirecat/cli-core/dist/oauth/keeper.js
|
|
307
307
|
var inFlight = /* @__PURE__ */ new Map();
|
|
308
308
|
var refreshedInMemory = /* @__PURE__ */ new Map();
|
|
309
309
|
var tokenKeeper = /* @__PURE__ */ __name((options) => {
|
|
@@ -465,7 +465,7 @@ var tokenKeeper = /* @__PURE__ */ __name((options) => {
|
|
|
465
465
|
};
|
|
466
466
|
}, "tokenKeeper");
|
|
467
467
|
|
|
468
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
468
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_835308f42ae01aacd71fad942c0d0dc0/node_modules/@wirecat/cli-core/dist/oauth/storage.js
|
|
469
469
|
var invalid = /* @__PURE__ */ __name(() => new CliError("authentication_error", "the saved sign-in cannot be read; sign in again", { reason: "oauth.invalid" }), "invalid");
|
|
470
470
|
var parse = /* @__PURE__ */ __name((raw) => {
|
|
471
471
|
let value;
|
|
@@ -2,7 +2,7 @@ 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-AEX37ETW.js";
|
|
6
6
|
import {
|
|
7
7
|
resolvePaths
|
|
8
8
|
} from "./chunk-OD4U7GUY.js";
|
|
@@ -16,11 +16,11 @@ 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.608.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_835308f42ae01aacd71fad942c0d0dc0/node_modules/@wirecat/cli-core/dist/store/shared-config.js
|
|
20
20
|
import { mkdirSync, readFileSync, renameSync, statSync, writeFileSync } from "node:fs";
|
|
21
21
|
import { dirname, join, resolve } from "node:path";
|
|
22
22
|
|
|
23
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_835308f42ae01aacd71fad942c0d0dc0/node_modules/@wirecat/cli-core/dist/domain/task-categories.js
|
|
24
24
|
var DEFAULT_TASK_CATEGORIES = [
|
|
25
25
|
{
|
|
26
26
|
name: "taxes",
|
|
@@ -775,7 +775,7 @@ var storedTaskCategories = /* @__PURE__ */ __name((json) => {
|
|
|
775
775
|
}
|
|
776
776
|
}, "storedTaskCategories");
|
|
777
777
|
|
|
778
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
778
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_835308f42ae01aacd71fad942c0d0dc0/node_modules/@wirecat/cli-core/dist/store/shared-config.js
|
|
779
779
|
var SECTION = "task_categories";
|
|
780
780
|
var sharedConfigPath = /* @__PURE__ */ __name((store, env = process.env) => {
|
|
781
781
|
const paths = resolvePaths({ appName: "WireCat", prefix: "WIRECAT", env });
|
|
@@ -7,7 +7,7 @@ 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.608.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_835308f42ae01aacd71fad942c0d0dc0/node_modules/@wirecat/cli-core/dist/store/path.js
|
|
11
11
|
import { userInfo } from "node:os";
|
|
12
12
|
import { isAbsolute, join, relative, resolve } from "node:path";
|
|
13
13
|
var wirecatDirectory = /* @__PURE__ */ __name((env = process.env, platform) => resolvePaths({ appName: "WireCat", prefix: "WIRECAT", env, ...platform ? { platform } : {} }).state, "wirecatDirectory");
|
|
@@ -3,7 +3,7 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
CAPABILITY_STATEMENTS,
|
|
5
5
|
storeCapable
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-3HK5WMI5.js";
|
|
7
7
|
import {
|
|
8
8
|
importFrom
|
|
9
9
|
} from "./chunk-Y5E2WNWB.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.608.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_835308f42ae01aacd71fad942c0d0dc0/node_modules/@wirecat/cli-core/dist/sqlite-runtime.js
|
|
15
15
|
import { spawn, spawnSync } from "node:child_process";
|
|
16
16
|
import { readFileSync } from "node:fs";
|
|
17
17
|
import { dirname } from "node:path";
|
|
@@ -2,7 +2,7 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
unit
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-PO5RQQIG.js";
|
|
6
6
|
import {
|
|
7
7
|
CliError
|
|
8
8
|
} from "./chunk-4OSSOWDM.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.608.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_835308f42ae01aacd71fad942c0d0dc0/node_modules/@wirecat/cli-core/dist/embeddings/remote.js
|
|
14
14
|
import { setTimeout } from "node:timers/promises";
|
|
15
15
|
var OPENAI_URL = "https://api.openai.com/v1";
|
|
16
16
|
var OPENAI_MODELS = {
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
commandPathOf,
|
|
8
8
|
findCommand,
|
|
9
9
|
outputOf
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-RKELRWH7.js";
|
|
11
11
|
import {
|
|
12
12
|
Command,
|
|
13
13
|
Help,
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
environmentOf,
|
|
19
19
|
metaOf,
|
|
20
20
|
takesProfile
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-33MGFUED.js";
|
|
22
22
|
import {
|
|
23
23
|
writes
|
|
24
24
|
} from "./chunk-FEZF3TII.js";
|
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
__name
|
|
30
30
|
} from "./chunk-ZVVMGPBJ.js";
|
|
31
31
|
|
|
32
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_835308f42ae01aacd71fad942c0d0dc0/node_modules/@wirecat/cli-core/dist/cli/help/sections.js
|
|
33
33
|
var SECTIONS = {
|
|
34
34
|
read: "Read",
|
|
35
35
|
write: "Write",
|
|
@@ -94,7 +94,7 @@ var CORE_SECTIONS = {
|
|
|
94
94
|
upgrade: "setup"
|
|
95
95
|
};
|
|
96
96
|
|
|
97
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
97
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_835308f42ae01aacd71fad942c0d0dc0/node_modules/@wirecat/cli-core/dist/cli/help/commands-text.js
|
|
98
98
|
var DESCRIPTION = 90;
|
|
99
99
|
var COLUMN = 52;
|
|
100
100
|
var short = /* @__PURE__ */ __name((text) => {
|
|
@@ -133,7 +133,7 @@ var commandsText = /* @__PURE__ */ __name((root, commands, scope) => {
|
|
|
133
133
|
`;
|
|
134
134
|
}, "commandsText");
|
|
135
135
|
|
|
136
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
136
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_835308f42ae01aacd71fad942c0d0dc0/node_modules/@wirecat/cli-core/dist/cli/help/command-help.js
|
|
137
137
|
var ARGUMENT_KINDS = {
|
|
138
138
|
chat: "chat",
|
|
139
139
|
chats: "chat",
|
|
@@ -325,7 +325,7 @@ var installCommandHelp = /* @__PURE__ */ __name((program, { profile = true } = {
|
|
|
325
325
|
command.addHelpText("after", () => commandHelpText(command));
|
|
326
326
|
}, "installCommandHelp");
|
|
327
327
|
|
|
328
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
328
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_835308f42ae01aacd71fad942c0d0dc0/node_modules/@wirecat/cli-core/dist/cli/help/first-screen.js
|
|
329
329
|
var WIRECAT_TOOLS = [
|
|
330
330
|
{
|
|
331
331
|
command: "tg",
|