@wirecat/drive-cli 0.54.0 → 0.54.1
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-LFIPUPZI.js → all-profiles-I5KJKZPF.js} +9 -9
- package/dist/bundle/{anthropic-G5ZRRWG4.js → anthropic-DPM7BRKX.js} +5 -5
- package/dist/bundle/{app-server-UVWATOQC.js → app-server-FTGLOZ2K.js} +46 -46
- package/dist/bundle/{bun-DNEFTPTR.js → bun-XRO6XJHQ.js} +2 -2
- package/dist/bundle/{bun-sqlite-FWBYHIXB.js → bun-sqlite-7JJX6OUT.js} +4 -4
- package/dist/bundle/{chunk-2HWOGSTA.js → chunk-2DZMGPUC.js} +25 -25
- package/dist/bundle/{chunk-VCGQMTHW.js → chunk-2KARCTUU.js} +255 -255
- package/dist/bundle/{chunk-AAHIBA36.js → chunk-2LLNPNMB.js} +1 -1
- package/dist/bundle/{chunk-5WQN2TUM.js → chunk-2OGANEKA.js} +1 -1
- package/dist/bundle/{chunk-KIQIF5M7.js → chunk-3K4H2DTA.js} +2 -2
- package/dist/bundle/{chunk-Q46JLJ5O.js → chunk-4I7EBJJV.js} +6 -6
- package/dist/bundle/{chunk-W5SYBHRX.js → chunk-4LZFESHQ.js} +4 -2
- package/dist/bundle/{chunk-WYDYSQ7T.js → chunk-4XRLPQ3N.js} +2 -2
- package/dist/bundle/{chunk-FHW4ENRF.js → chunk-5DEEBWDI.js} +32 -32
- package/dist/bundle/{chunk-6SOQJRGI.js → chunk-67A2YFAT.js} +4 -4
- package/dist/bundle/{chunk-P7E7K467.js → chunk-7GJBKGRZ.js} +3 -3
- package/dist/bundle/{chunk-7WCZ2OZ5.js → chunk-7MVKSPEG.js} +6 -6
- package/dist/bundle/{chunk-ZMMOVTUB.js → chunk-ALMQEGYO.js} +2 -2
- package/dist/bundle/{chunk-OYGEBFFO.js → chunk-AQNY57J2.js} +7 -7
- package/dist/bundle/{chunk-WSX5UQNT.js → chunk-AR2HRFQO.js} +2 -2
- package/dist/bundle/{chunk-4RDXCE45.js → chunk-BO7ZKZCH.js} +38 -38
- package/dist/bundle/{chunk-UBJX5D2O.js → chunk-C4QKY33N.js} +2 -2
- package/dist/bundle/{chunk-5LNOVPOR.js → chunk-DNJ43DT5.js} +2 -2
- package/dist/bundle/{chunk-VKYCMXEQ.js → chunk-E7RDXCV2.js} +5 -5
- package/dist/bundle/{chunk-6MGSFYGL.js → chunk-EOEDICIE.js} +1 -1
- package/dist/bundle/{chunk-NDWWGBSM.js → chunk-FDCGTODC.js} +1 -1
- package/dist/bundle/{chunk-CVALO727.js → chunk-FDM3JMQZ.js} +24 -24
- package/dist/bundle/{chunk-IOMSC4ZG.js → chunk-FKHWVVMV.js} +3 -3
- package/dist/bundle/{chunk-MATUQFYL.js → chunk-FNDQFFLP.js} +11 -11
- package/dist/bundle/{chunk-75DSLCPC.js → chunk-FUKJQZED.js} +1 -1
- package/dist/bundle/{chunk-2CQT2WWN.js → chunk-GB5YM5HK.js} +5 -5
- package/dist/bundle/{chunk-O6YYFVDD.js → chunk-GC4JNVYF.js} +36 -25
- package/dist/bundle/{chunk-L3RV42O3.js → chunk-GIRVMZD3.js} +16 -16
- package/dist/bundle/{chunk-IKODUUQG.js → chunk-HNR2BJJU.js} +16 -16
- package/dist/bundle/{chunk-WJRE45Z6.js → chunk-IDK5QUBJ.js} +4 -4
- package/dist/bundle/{chunk-6RAEXK7Y.js → chunk-IXXVCKWL.js} +26 -26
- package/dist/bundle/{chunk-LQXLWHKM.js → chunk-J6XLM4QW.js} +9 -9
- package/dist/bundle/{chunk-AACQA2CO.js → chunk-JBBZCTTF.js} +1 -1
- package/dist/bundle/{chunk-2MSJVFAS.js → chunk-JPFF6MNK.js} +8 -8
- package/dist/bundle/{chunk-IBRXVPBI.js → chunk-K2DMCTTF.js} +95 -95
- package/dist/bundle/{chunk-2NWFZ43Q.js → chunk-KM7Q67Z3.js} +1 -1
- package/dist/bundle/{chunk-QUJCD5U7.js → chunk-KWKRTYRL.js} +4 -4
- package/dist/bundle/{chunk-WQPTZHHR.js → chunk-KXWJT72E.js} +11 -11
- package/dist/bundle/{chunk-2Q3S47BC.js → chunk-LAVWTS4P.js} +195 -195
- package/dist/bundle/{chunk-2D6AAGBP.js → chunk-N4VNUOOD.js} +18 -18
- package/dist/bundle/{chunk-KT5G3KVS.js → chunk-NCCL4QWR.js} +3 -3
- package/dist/bundle/{chunk-U3BOQ63L.js → chunk-NDG6LHX7.js} +8 -8
- package/dist/bundle/{chunk-BWBVBW5T.js → chunk-NDUYK676.js} +8 -8
- package/dist/bundle/{chunk-PU4GANCD.js → chunk-NFOUG7ES.js} +2 -2
- package/dist/bundle/{chunk-RWEFKLXJ.js → chunk-NPKFXGYG.js} +18 -18
- package/dist/bundle/{chunk-RIYXQFKU.js → chunk-NPMVPKBD.js} +46 -46
- package/dist/bundle/{chunk-2HQPJ366.js → chunk-ORRQDSDH.js} +3 -3
- package/dist/bundle/{chunk-76JIVDKC.js → chunk-P4ABC6C4.js} +2 -2
- package/dist/bundle/{chunk-YOHOQ6ZR.js → chunk-PFTIYWOK.js} +4 -4
- package/dist/bundle/{chunk-WGSTTWM5.js → chunk-RMQGFLT2.js} +6 -6
- package/dist/bundle/{chunk-JKEAZBEZ.js → chunk-TBD362SJ.js} +7 -7
- package/dist/bundle/{chunk-YZ5VMR2S.js → chunk-TD4RAOMZ.js} +3 -3
- package/dist/bundle/{chunk-QKHFQHE7.js → chunk-TIEEVT2Z.js} +1 -1
- package/dist/bundle/{chunk-7XU3TR7K.js → chunk-TIVC4DB5.js} +2 -2
- package/dist/bundle/{chunk-VX4RAT3A.js → chunk-TQFCPUIM.js} +1 -1
- package/dist/bundle/{chunk-47MEPBWG.js → chunk-UDWMRZL6.js} +21 -21
- package/dist/bundle/{chunk-NHDSJMAR.js → chunk-UIPT6IAU.js} +1 -1
- package/dist/bundle/{chunk-XCUUYQN7.js → chunk-ULPS2OAL.js} +4 -4
- package/dist/bundle/{chunk-A4FTLORC.js → chunk-VGTDXEYD.js} +12 -12
- package/dist/bundle/{chunk-SBOTSSYV.js → chunk-VVMCGF5X.js} +250 -250
- package/dist/bundle/{chunk-MULPNGM2.js → chunk-VXZULAWV.js} +10 -10
- package/dist/bundle/{chunk-5BPOAHVD.js → chunk-VY2AUZMJ.js} +2 -2
- package/dist/bundle/{chunk-PKNTBZXN.js → chunk-VY3TYRCK.js} +51 -51
- package/dist/bundle/{chunk-HAHARAJD.js → chunk-W6DMCGMK.js} +22 -22
- package/dist/bundle/{chunk-N4OO3SPQ.js → chunk-XTNEYXAQ.js} +5 -5
- package/dist/bundle/{chunk-2FFXRWI2.js → chunk-YP5FDMTG.js} +2 -2
- package/dist/bundle/command-contract-VXLGE6NV.js +35 -0
- package/dist/bundle/{decode-DN2DDFET.js → decode-3LX3BLZM.js} +4 -4
- package/dist/bundle/drive.js +6 -6
- package/dist/bundle/{echarts-VMHZ2UYP.js → echarts-YNGCOYHW.js} +2 -2
- package/dist/bundle/{embed-MDN7R7BA.js → embed-FICTRZJL.js} +5 -5
- package/dist/bundle/{embedder-KEVEDNDJ.js → embedder-DSMRCRSH.js} +8 -8
- package/dist/bundle/{entry-HTNK5TJQ.js → entry-4ZX3BNXK.js} +6 -6
- package/dist/bundle/{first-run-QNMCMP67.js → first-run-GRBQ3SQ5.js} +9 -9
- package/dist/bundle/first-screen-JK3MZVCU.js +33 -0
- package/dist/bundle/{google-QAKMV57Q.js → google-QV2B2KZA.js} +9 -9
- package/dist/bundle/{google-api-UJJS7ECO.js → google-api-EVO7F3WB.js} +51 -51
- package/dist/bundle/grants-VJDGD3BG.js +98 -0
- package/dist/bundle/identity-25CTQZS3.js +14 -0
- package/dist/bundle/{instructions-IWLHCDC7.js → instructions-GJHHFV64.js} +1 -1
- package/dist/bundle/{login-GIZXEN7I.js → login-54G4F4EP.js} +57 -57
- package/dist/bundle/{mcp-RUYPQVYS.js → mcp-EMNFFY4N.js} +2 -2
- package/dist/bundle/{node-25IJLDBZ.js → node-GFOH6FKP.js} +2 -2
- package/dist/bundle/{node-sqlite-DYR4FEI4.js → node-sqlite-NZIBED3C.js} +4 -4
- package/dist/bundle/{oauth-FLHXEDDY.js → oauth-WUHT2JII.js} +6 -6
- package/dist/bundle/{open-FWDZB7KX.js → open-INBNHORD.js} +3 -3
- package/dist/bundle/{openai-HB7UGKPW.js → openai-BMREUGJP.js} +13 -13
- package/dist/bundle/{process-P6TW37HQ.js → process-XVDX4SPD.js} +1 -1
- package/dist/bundle/{program-DVUNLXXS.js → program-5OBA53CL.js} +75 -75
- package/dist/bundle/{prompt-MKWMYO3B.js → prompt-S7GHCPGR.js} +4 -4
- package/dist/bundle/{reasons-25BEO2NE.js → reasons-T24V3AYS.js} +3 -3
- package/dist/bundle/{recognize-VXGNPROM.js → recognize-T3DABMW5.js} +3 -3
- package/dist/bundle/{remote-H5ZWLJHR.js → remote-ASYGFT6E.js} +6 -6
- package/dist/bundle/{rerank-5A3JDK7O.js → rerank-BQ5U252K.js} +6 -6
- package/dist/bundle/{serve-QNPNEZVR.js → serve-JMLNKCUZ.js} +8 -8
- package/dist/bundle/{server-GWBVIRLY.js → server-5E6RC7GZ.js} +38 -38
- package/dist/bundle/server-QI4C3CQT.js +63 -0
- package/dist/bundle/{services-PFXEWHJG.js → services-NFB3XSON.js} +25 -25
- package/dist/bundle/{sqlite-runtime-RGFISYXM.js → sqlite-runtime-TAMYMQFR.js} +4 -4
- package/dist/bundle/{state-BUSX5BXF.js → state-DS4G3ZXV.js} +5 -5
- package/dist/bundle/{store-FIEE5HHG.js → store-HAS2LRFE.js} +14 -14
- package/dist/bundle/{store-HFF5KQ44.js → store-MLMKYJLC.js} +12 -12
- package/dist/bundle/store-maintenance-command-LI3JR22B.js +52 -0
- package/dist/bundle/tokens-AJF2D5TA.js +96 -0
- package/dist/commands/upgrade.d.ts.map +1 -1
- package/dist/commands/upgrade.js +1 -1
- package/dist/commands/upgrade.js.map +1 -1
- package/dist/identity.d.ts +1 -0
- package/dist/identity.d.ts.map +1 -1
- package/dist/identity.js +1 -0
- package/dist/identity.js.map +1 -1
- package/dist/program.d.ts.map +1 -1
- package/dist/program.js +2 -1
- package/dist/program.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/command-contract-VZ3ZJLEF.js +0 -35
- package/dist/bundle/first-screen-RQBEHUQC.js +0 -33
- package/dist/bundle/grants-VMPKFEC2.js +0 -98
- package/dist/bundle/identity-UODE3QAL.js +0 -12
- package/dist/bundle/server-QJU3HEGM.js +0 -63
- package/dist/bundle/store-maintenance-command-Z4SPEQUM.js +0 -52
- package/dist/bundle/tokens-B6MUZRFM.js +0 -96
- /package/dist/bundle/{chunk-HEA3XVAJ.js → chunk-NPGVOZVK.js} +0 -0
|
@@ -2,10 +2,10 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
walkQuery
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-J6XLM4QW.js";
|
|
6
6
|
import {
|
|
7
7
|
writeSecurely
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-N4VNUOOD.js";
|
|
9
9
|
import {
|
|
10
10
|
CliError,
|
|
11
11
|
array,
|
|
@@ -23,12 +23,12 @@ import {
|
|
|
23
23
|
safeParse,
|
|
24
24
|
string,
|
|
25
25
|
trim
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-TBD362SJ.js";
|
|
27
27
|
import {
|
|
28
28
|
__name
|
|
29
29
|
} from "./chunk-ZVVMGPBJ.js";
|
|
30
30
|
|
|
31
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.
|
|
31
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/documents/blocks.js
|
|
32
32
|
var MARKS = ["bold", "italic", "strike", "code", "link"];
|
|
33
33
|
var sameMarks = /* @__PURE__ */ __name((a, b) => MARKS.every((mark) => a[mark] === b[mark]), "sameMarks");
|
|
34
34
|
var normalizeInlines = /* @__PURE__ */ __name((inlines) => {
|
|
@@ -76,7 +76,7 @@ var key = /* @__PURE__ */ __name((block, withChecked) => {
|
|
|
76
76
|
var blockKey = /* @__PURE__ */ __name((block) => JSON.stringify(key(block, true)), "blockKey");
|
|
77
77
|
var blockShape = /* @__PURE__ */ __name((block) => JSON.stringify(key(block, false)), "blockShape");
|
|
78
78
|
|
|
79
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.
|
|
79
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/services/documents/block-diff.js
|
|
80
80
|
var MAX_CELLS = 4e6;
|
|
81
81
|
var matches = /* @__PURE__ */ __name((a, b, keyOf) => {
|
|
82
82
|
const ka = a.map(keyOf);
|
|
@@ -222,7 +222,7 @@ var mergeBlocks = /* @__PURE__ */ __name((baseLocal, baseRemote, local, remote,
|
|
|
222
222
|
return { status: "clean", blocks, conflicts };
|
|
223
223
|
}, "mergeBlocks");
|
|
224
224
|
|
|
225
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.
|
|
225
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/services/documents/extraction.js
|
|
226
226
|
var Proposal = object({
|
|
227
227
|
kind: picklist(["summary", "digest", "fact", "preference"]),
|
|
228
228
|
body: pipe(string(), trim(), minLength(1), maxLength(15e3)),
|
|
@@ -257,7 +257,7 @@ var extractMemories = /* @__PURE__ */ __name(async (text, complete) => {
|
|
|
257
257
|
return { ...proposals, provider: answer.provider, model: answer.model, tokens: answer.tokens };
|
|
258
258
|
}, "extractMemories");
|
|
259
259
|
|
|
260
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.
|
|
260
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/services/documents/ingestion.js
|
|
261
261
|
var documentIngestion = /* @__PURE__ */ __name((store, options) => {
|
|
262
262
|
const folder = /* @__PURE__ */ __name(async (principal, create) => {
|
|
263
263
|
if (options.provider)
|
|
@@ -384,7 +384,7 @@ var documentIngestion = /* @__PURE__ */ __name((store, options) => {
|
|
|
384
384
|
};
|
|
385
385
|
}, "documentIngestion");
|
|
386
386
|
|
|
387
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.
|
|
387
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/services/documents/knowledge.js
|
|
388
388
|
var documentKnowledge = /* @__PURE__ */ __name((store, folder) => {
|
|
389
389
|
const document = /* @__PURE__ */ __name(async (principal, ref) => {
|
|
390
390
|
const note = await store.notes.resolveNote(ref);
|
|
@@ -526,7 +526,7 @@ var documentKnowledge = /* @__PURE__ */ __name((store, folder) => {
|
|
|
526
526
|
return port;
|
|
527
527
|
}, "documentKnowledge");
|
|
528
528
|
|
|
529
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.
|
|
529
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/documents/markdown-blocks.js
|
|
530
530
|
var parser;
|
|
531
531
|
var loadParser = /* @__PURE__ */ __name(() => parser ??= Promise.all([
|
|
532
532
|
import("./mdast-util-from-markdown-FXEPSNER.js"),
|
|
@@ -651,7 +651,7 @@ var placedMarkdownBlocks = /* @__PURE__ */ __name(async (markdown) => {
|
|
|
651
651
|
return blocks(tree.children);
|
|
652
652
|
}, "placedMarkdownBlocks");
|
|
653
653
|
|
|
654
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.
|
|
654
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/services/documents/markdown-splice.js
|
|
655
655
|
var escapeText = /* @__PURE__ */ __name((text) => text.replace(/[\\`*_[\]<>~|]/g, "\\$&"), "escapeText");
|
|
656
656
|
var codeSpan = /* @__PURE__ */ __name((text) => {
|
|
657
657
|
const longest = (text.match(/`+/g) ?? []).reduce((most, run) => Math.max(most, run.length), 0);
|
|
@@ -837,15 +837,15 @@ var columnsBefore = /* @__PURE__ */ __name((placed, index) => {
|
|
|
837
837
|
return columns;
|
|
838
838
|
}, "columnsBefore");
|
|
839
839
|
|
|
840
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.
|
|
840
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/services/documents/mirror-watch.js
|
|
841
841
|
import { watch } from "node:fs";
|
|
842
842
|
|
|
843
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.
|
|
843
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/services/documents/mirrors.js
|
|
844
844
|
import { createHash as createHash2 } from "node:crypto";
|
|
845
845
|
import { mkdirSync, readFileSync } from "node:fs";
|
|
846
846
|
import { join as join2 } from "node:path";
|
|
847
847
|
|
|
848
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.
|
|
848
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/services/documents/push.js
|
|
849
849
|
import { createHash, randomUUID } from "node:crypto";
|
|
850
850
|
import { createReadStream } from "node:fs";
|
|
851
851
|
import { chmod, readdir, rename, rm, stat, writeFile } from "node:fs/promises";
|
|
@@ -1097,7 +1097,7 @@ var pushDocuments = /* @__PURE__ */ __name(async (options) => {
|
|
|
1097
1097
|
return result;
|
|
1098
1098
|
}, "pushDocuments");
|
|
1099
1099
|
|
|
1100
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.
|
|
1100
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/services/documents/mirrors.js
|
|
1101
1101
|
var mirrorId = /* @__PURE__ */ __name((root, folder) => createHash2("sha256").update(JSON.stringify([root, folder])).digest("hex").slice(0, 8), "mirrorId");
|
|
1102
1102
|
var ID = pipe(string(), regex(/^[A-Za-z0-9_-]{1,200}$/));
|
|
1103
1103
|
var stateSchema = /* @__PURE__ */ __name((kinds) => object({
|
|
@@ -1219,7 +1219,7 @@ var syncMirrors = /* @__PURE__ */ __name(async (options) => {
|
|
|
1219
1219
|
};
|
|
1220
1220
|
}, "syncMirrors");
|
|
1221
1221
|
|
|
1222
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.
|
|
1222
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/services/documents/mirror-watch.js
|
|
1223
1223
|
var sleep = /* @__PURE__ */ __name((milliseconds, signal) => new Promise((resolve) => {
|
|
1224
1224
|
const finish = /* @__PURE__ */ __name(() => {
|
|
1225
1225
|
clearTimeout(timer);
|
|
@@ -1358,7 +1358,7 @@ async function* watchMirrors(sync, options) {
|
|
|
1358
1358
|
}
|
|
1359
1359
|
__name(watchMirrors, "watchMirrors");
|
|
1360
1360
|
|
|
1361
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.
|
|
1361
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/services/documents/proposals.js
|
|
1362
1362
|
var extractDocumentMemories = /* @__PURE__ */ __name(async (options) => {
|
|
1363
1363
|
const source = options.read();
|
|
1364
1364
|
const text = options.tab ? source.snapshot.tabs.find((tab) => tab.id === options.tab)?.text : source.snapshot.text;
|
|
@@ -1408,10 +1408,10 @@ Snapshot: ${source.hash}`;
|
|
|
1408
1408
|
};
|
|
1409
1409
|
}, "extractDocumentMemories");
|
|
1410
1410
|
|
|
1411
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.
|
|
1411
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/services/documents/sync.js
|
|
1412
1412
|
import { createHash as createHash4 } from "node:crypto";
|
|
1413
1413
|
|
|
1414
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.
|
|
1414
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/documents/scope.js
|
|
1415
1415
|
var within = /* @__PURE__ */ __name((file, roots, folders, seen = /* @__PURE__ */ new Set()) => {
|
|
1416
1416
|
if (file.trashed)
|
|
1417
1417
|
return false;
|
|
@@ -1426,7 +1426,7 @@ var within = /* @__PURE__ */ __name((file, roots, folders, seen = /* @__PURE__ *
|
|
|
1426
1426
|
});
|
|
1427
1427
|
}, "within");
|
|
1428
1428
|
|
|
1429
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.
|
|
1429
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/documents/catalog.js
|
|
1430
1430
|
var catalogFiles = /* @__PURE__ */ __name((state, roots) => {
|
|
1431
1431
|
const folders = state.pending?.folders ?? state.folders;
|
|
1432
1432
|
const files = new Map(Object.values(state.documents).map((doc) => [doc.metadata.id, doc.metadata]));
|
|
@@ -1444,7 +1444,7 @@ var catalogFiles = /* @__PURE__ */ __name((state, roots) => {
|
|
|
1444
1444
|
return [...files.values()].filter((file) => within(file, roots, folders));
|
|
1445
1445
|
}, "catalogFiles");
|
|
1446
1446
|
|
|
1447
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.
|
|
1447
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/services/documents/plan.js
|
|
1448
1448
|
import { createHash as createHash3 } from "node:crypto";
|
|
1449
1449
|
var scopeHash = /* @__PURE__ */ __name((roots) => createHash3("sha256").update(JSON.stringify([...roots].sort())).digest("hex"), "scopeHash");
|
|
1450
1450
|
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");
|
|
@@ -1628,7 +1628,7 @@ var planDocuments = /* @__PURE__ */ __name(async (options, source, state, roots,
|
|
|
1628
1628
|
return { scope, cursor: finalCursor, folders: scopedFolders, jobs, skipped };
|
|
1629
1629
|
}, "planDocuments");
|
|
1630
1630
|
|
|
1631
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.
|
|
1631
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/services/documents/sync.js
|
|
1632
1632
|
var MAX_PICTURE_BYTES = 25 * 1024 * 1024;
|
|
1633
1633
|
var SAVE_EVERY_MS2 = 2e3;
|
|
1634
1634
|
var SAVE_EVERY_ITEMS = 25;
|
|
@@ -527,7 +527,7 @@ var require_cross_spawn = __commonJS({
|
|
|
527
527
|
}
|
|
528
528
|
});
|
|
529
529
|
|
|
530
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.68.
|
|
530
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.68.1_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");
|
|
@@ -2,7 +2,7 @@ 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-TBD362SJ.js";
|
|
6
6
|
import {
|
|
7
7
|
importFrom
|
|
8
8
|
} from "./chunk-Y5E2WNWB.js";
|
|
@@ -10,10 +10,10 @@ import {
|
|
|
10
10
|
__name
|
|
11
11
|
} from "./chunk-ZVVMGPBJ.js";
|
|
12
12
|
|
|
13
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.
|
|
13
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/speech/recognize.js
|
|
14
14
|
import { createRequire } from "node:module";
|
|
15
15
|
|
|
16
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.
|
|
16
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/speech/ogg-limit.js
|
|
17
17
|
var invalid = /* @__PURE__ */ __name(() => new CliError("validation_error", "local transcription needs a complete mono or stereo Ogg Opus recording"), "invalid");
|
|
18
18
|
var checkOggDuration = /* @__PURE__ */ __name((bytes) => {
|
|
19
19
|
const view = new DataView(bytes.buffer, bytes.byteOffset, bytes.byteLength);
|
|
@@ -70,7 +70,7 @@ var checkOggDuration = /* @__PURE__ */ __name((bytes) => {
|
|
|
70
70
|
throw invalid();
|
|
71
71
|
}, "checkOggDuration");
|
|
72
72
|
|
|
73
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.
|
|
73
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/speech/recognize.js
|
|
74
74
|
var SAMPLE_RATE = 16e3;
|
|
75
75
|
var LEAD = SAMPLE_RATE / 2;
|
|
76
76
|
var toModelRate = /* @__PURE__ */ __name((samples, rate) => {
|
|
@@ -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-TBD362SJ.js";
|
|
6
6
|
import {
|
|
7
7
|
__name
|
|
8
8
|
} from "./chunk-ZVVMGPBJ.js";
|
|
9
9
|
|
|
10
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.
|
|
10
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/files/atomic-write.js
|
|
11
11
|
import { randomUUID } from "node:crypto";
|
|
12
12
|
import { constants } from "node:fs";
|
|
13
13
|
import { link, open, realpath, rename, unlink } from "node:fs/promises";
|
|
@@ -45,7 +45,7 @@ var writeFileAtomic = /* @__PURE__ */ __name(async (path, content, { mode = 384,
|
|
|
45
45
|
}
|
|
46
46
|
}, "writeFileAtomic");
|
|
47
47
|
|
|
48
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.
|
|
48
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/files/ordinary-file.js
|
|
49
49
|
import { constants as constants2 } from "node:fs";
|
|
50
50
|
import { lstat, open as open2 } from "node:fs/promises";
|
|
51
51
|
var deviceOf = /* @__PURE__ */ __name((dev) => process.platform === "win32" ? BigInt.asUintN(32, dev) : dev, "deviceOf");
|
|
@@ -111,21 +111,21 @@ var syncDirectory = /* @__PURE__ */ __name(async (path) => {
|
|
|
111
111
|
}
|
|
112
112
|
}, "syncDirectory");
|
|
113
113
|
|
|
114
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.
|
|
114
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/files/lock.js
|
|
115
115
|
import { mkdir as mkdir2 } from "node:fs/promises";
|
|
116
116
|
import { basename as basename2, dirname as dirname2 } from "node:path";
|
|
117
117
|
|
|
118
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.
|
|
118
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/files/native-writer-lease.js
|
|
119
119
|
import { randomUUID as randomUUID2 } from "node:crypto";
|
|
120
120
|
import { lstat as lstat3, mkdir, open as open3, realpath as realpath3, rmdir as rmdir2, unlink as unlink4 } from "node:fs/promises";
|
|
121
121
|
import { hostname as hostname2 } from "node:os";
|
|
122
122
|
import { join as join3 } from "node:path";
|
|
123
123
|
|
|
124
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.
|
|
124
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/files/native-lease-inspection.js
|
|
125
125
|
import { lstat as lstat2, readdir, realpath as realpath2, unlink as unlink2 } from "node:fs/promises";
|
|
126
126
|
import { join as join2 } from "node:path";
|
|
127
127
|
|
|
128
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.
|
|
128
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/files/native-lease-owner.js
|
|
129
129
|
import { hostname } from "node:os";
|
|
130
130
|
var missingLeaseFile = /* @__PURE__ */ __name((error) => typeof error === "object" && error !== null && "code" in error && error.code === "ENOENT", "missingLeaseFile");
|
|
131
131
|
var readLeaseOwner = /* @__PURE__ */ __name(async (path, name, signal) => {
|
|
@@ -170,7 +170,7 @@ var leaseOwnerStatus = /* @__PURE__ */ __name((owner) => {
|
|
|
170
170
|
}
|
|
171
171
|
}, "leaseOwnerStatus");
|
|
172
172
|
|
|
173
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.
|
|
173
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/files/native-lease-inspection.js
|
|
174
174
|
var leaseInspection = /* @__PURE__ */ __name((markerDirectory) => {
|
|
175
175
|
const inspect = /* @__PURE__ */ __name(async (destination, options = {}) => {
|
|
176
176
|
options.signal?.throwIfAborted();
|
|
@@ -229,7 +229,7 @@ var leaseInspection = /* @__PURE__ */ __name((markerDirectory) => {
|
|
|
229
229
|
return { inspect, recover };
|
|
230
230
|
}, "leaseInspection");
|
|
231
231
|
|
|
232
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.
|
|
232
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/files/native-lease-release.js
|
|
233
233
|
import { rmdir, unlink as unlink3 } from "node:fs/promises";
|
|
234
234
|
var ownedNativeLease = /* @__PURE__ */ __name((path, name, owner, folder, identity) => {
|
|
235
235
|
let releasing;
|
|
@@ -254,7 +254,7 @@ var ownedNativeLease = /* @__PURE__ */ __name((path, name, owner, folder, identi
|
|
|
254
254
|
};
|
|
255
255
|
}, "ownedNativeLease");
|
|
256
256
|
|
|
257
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.
|
|
257
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/files/native-writer-lease.js
|
|
258
258
|
var validName = /* @__PURE__ */ __name((value) => typeof value === "string" && value.length > 0 && value !== "." && value !== ".." && !/[\\/\0:]/.test(value), "validName");
|
|
259
259
|
var nativeWriterLeaseStore = /* @__PURE__ */ __name((layout) => {
|
|
260
260
|
const { markerDirectory, legacyMarker } = layout;
|
|
@@ -325,7 +325,7 @@ var nativeWriterLeaseStore = /* @__PURE__ */ __name((layout) => {
|
|
|
325
325
|
};
|
|
326
326
|
}, "nativeWriterLeaseStore");
|
|
327
327
|
|
|
328
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.
|
|
328
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/files/lock.js
|
|
329
329
|
var acquireLock = /* @__PURE__ */ __name(async (path, { signal } = {}) => {
|
|
330
330
|
const folder = dirname2(path);
|
|
331
331
|
await mkdir2(folder, { recursive: true, mode: 448 });
|
|
@@ -340,7 +340,7 @@ var acquireLock = /* @__PURE__ */ __name(async (path, { signal } = {}) => {
|
|
|
340
340
|
});
|
|
341
341
|
}, "acquireLock");
|
|
342
342
|
|
|
343
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.
|
|
343
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/files/bounded-utf8.js
|
|
344
344
|
var readBoundedUtf8File = /* @__PURE__ */ __name(async (path, { maxBytes }) => {
|
|
345
345
|
if (!Number.isSafeInteger(maxBytes) || maxBytes < 1 || maxBytes > 16 * 1024 * 1024)
|
|
346
346
|
throw new CliError("validation_error", "file maxBytes takes 1\u201316777216 bytes");
|