@wirecat/drive-cli 0.45.0 → 0.46.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-LTHNCWQW.js → all-profiles-O7CNQ7FO.js} +8 -8
- package/dist/bundle/{anthropic-NOJEF3V2.js → anthropic-6T67J2CE.js} +5 -5
- package/dist/bundle/app-server-BVBZT3UY.js +237 -0
- package/dist/bundle/{bun-ADJVI4HY.js → bun-O6RL6LRQ.js} +2 -2
- package/dist/bundle/{bun-sqlite-GNXLBF2A.js → bun-sqlite-54W7JUY3.js} +4 -4
- package/dist/bundle/{chunk-IGB5CJCA.js → chunk-2DLAJGRN.js} +1 -1
- package/dist/bundle/{chunk-NQ6LLDDC.js → chunk-3HRDEJJW.js} +4 -4
- package/dist/bundle/{chunk-XPEWOPJR.js → chunk-3Z7WSD2A.js} +10 -8
- package/dist/bundle/{chunk-WPGCDWPU.js → chunk-44FV5JAS.js} +21 -21
- package/dist/bundle/{chunk-GX4WEMAG.js → chunk-4DW6QGEV.js} +11 -11
- package/dist/bundle/{chunk-IP4OK7RQ.js → chunk-4NGLRHWO.js} +1 -1
- package/dist/bundle/{chunk-LNB7BIZL.js → chunk-5MGIL5LW.js} +19 -17
- package/dist/bundle/{chunk-66N2DGGC.js → chunk-5MYFPQDA.js} +21 -14
- package/dist/bundle/{chunk-MWUITL6N.js → chunk-5TC3NCAF.js} +2 -2
- package/dist/bundle/{chunk-4UE7AVHZ.js → chunk-A3FU4RR6.js} +4 -4
- package/dist/bundle/{chunk-PIN5RZ3D.js → chunk-AIXLOMH4.js} +1 -1
- package/dist/bundle/{chunk-WZUJKUBK.js → chunk-AOOD3RMK.js} +7 -7
- package/dist/bundle/{chunk-Z4O6C7WR.js → chunk-AUS6TKP5.js} +35 -33
- package/dist/bundle/{chunk-OECPFZLP.js → chunk-BEXHAGXH.js} +96 -95
- package/dist/bundle/{chunk-3V6NPZY7.js → chunk-BHE7ZY2N.js} +45 -45
- package/dist/bundle/{chunk-GKHM6I64.js → chunk-BJ3JRO34.js} +7 -7
- package/dist/bundle/{chunk-2FTZBZOB.js → chunk-BQUPOB5H.js} +8 -8
- package/dist/bundle/{chunk-CDI67JSB.js → chunk-CFZWPIVC.js} +20 -20
- package/dist/bundle/{chunk-EVWXODYV.js → chunk-CKR3DVUK.js} +11 -11
- package/dist/bundle/{chunk-AN3GVZTU.js → chunk-CVIKKIGE.js} +1 -1
- package/dist/bundle/{chunk-7XWUOCGW.js → chunk-D67JGWSC.js} +2 -2
- package/dist/bundle/{chunk-UC44ZMQV.js → chunk-DDYR6DYL.js} +1 -1
- package/dist/bundle/{chunk-C6SMAEED.js → chunk-DL7D6Y3B.js} +199 -199
- package/dist/bundle/{chunk-PDH2QQQV.js → chunk-DORXXBFC.js} +7 -7
- package/dist/bundle/{chunk-DCTXOMOR.js → chunk-DXKVEOSS.js} +20 -2
- package/dist/bundle/{chunk-ZQNXKWUY.js → chunk-FEULDMWM.js} +258 -244
- package/dist/bundle/{chunk-TDC6JGDA.js → chunk-G3FAOS52.js} +2 -2
- package/dist/bundle/{chunk-HOIUIKWS.js → chunk-GHOWRW7E.js} +4 -3
- package/dist/bundle/{chunk-C4XP5T73.js → chunk-GNFHZZ55.js} +5 -5
- package/dist/bundle/{chunk-K4N2DKE5.js → chunk-GOR3Z2FR.js} +2 -2
- package/dist/bundle/{chunk-WQMVSQPP.js → chunk-GQW4GRYR.js} +6 -6
- package/dist/bundle/{chunk-Y5EJSZXV.js → chunk-GWPKIRNQ.js} +5 -5
- package/dist/bundle/{chunk-HA3WCVGY.js → chunk-HEPIOCHN.js} +51 -49
- package/dist/bundle/{chunk-DC4T3FNP.js → chunk-IAW5A7OR.js} +27 -27
- package/dist/bundle/{chunk-4TQSNQVV.js → chunk-IGMRWQP3.js} +25 -25
- package/dist/bundle/{chunk-65GGKAQ7.js → chunk-IKNU5A5Y.js} +3 -3
- package/dist/bundle/{chunk-ZPMLLONT.js → chunk-JVTVAZ5X.js} +19 -19
- package/dist/bundle/{chunk-A6ZKTNTZ.js → chunk-K74PQVQZ.js} +7 -7
- package/dist/bundle/{server-2UQDEWTS.js → chunk-K7FRUB33.js} +40 -63
- package/dist/bundle/{chunk-ZS635F4O.js → chunk-KADPV4YA.js} +2 -2
- package/dist/bundle/{chunk-ZIHLE7LG.js → chunk-KJMBV574.js} +3252 -3019
- package/dist/bundle/{chunk-ICKNJIGE.js → chunk-LHIL46I3.js} +2 -2
- package/dist/bundle/{chunk-LWT55XC5.js → chunk-LJARCTGL.js} +4 -4
- package/dist/bundle/{chunk-64WJYT2F.js → chunk-LOTQ2HMT.js} +9 -9
- package/dist/bundle/{chunk-MJR2OTO4.js → chunk-LZ5OTVWH.js} +6 -6
- package/dist/bundle/{chunk-V7GN5BI7.js → chunk-MAXN7COO.js} +1 -1
- package/dist/bundle/{chunk-LW2G4U6W.js → chunk-MFS52LTZ.js} +1 -1
- package/dist/bundle/{chunk-YJX4X564.js → chunk-NB2N6L3R.js} +6 -6
- package/dist/bundle/{chunk-GTYY6BIE.js → chunk-NDNTLUPS.js} +2 -2
- package/dist/bundle/{chunk-TOYPN2XX.js → chunk-NLEB26GA.js} +2 -2
- package/dist/bundle/{chunk-4TIC23D2.js → chunk-NM26XAS2.js} +1 -1
- package/dist/bundle/{chunk-7PVNJAQ2.js → chunk-NP3XLLN3.js} +3 -3
- package/dist/bundle/{chunk-LY26NW3I.js → chunk-NW7IMGRR.js} +1 -1
- package/dist/bundle/{chunk-NZIHPYY5.js → chunk-OWXTPXIQ.js} +11 -11
- package/dist/bundle/{chunk-BPBIBVFH.js → chunk-PDBBBUY7.js} +10 -10
- package/dist/bundle/{chunk-ZU732VCC.js → chunk-PH74B2VZ.js} +3 -3
- package/dist/bundle/{chunk-PJDO7AFZ.js → chunk-PJ7IQVOM.js} +2 -2
- package/dist/bundle/{chunk-CFT7UHF6.js → chunk-QTJUH3LS.js} +3 -3
- package/dist/bundle/{chunk-YE3J6DLY.js → chunk-QW36EOAM.js} +2 -2
- package/dist/bundle/{chunk-HLONHTSG.js → chunk-QWSRPXCJ.js} +4 -4
- package/dist/bundle/{chunk-LVDHWNJF.js → chunk-R2A3K7ZF.js} +5 -5
- package/dist/bundle/{chunk-SGOPYPVW.js → chunk-R2QRP7EJ.js} +9 -9
- package/dist/bundle/{chunk-35GRI4DI.js → chunk-RCS2SCX5.js} +5 -5
- package/dist/bundle/{chunk-CEO5HPRL.js → chunk-RJ633GFA.js} +2 -2
- package/dist/bundle/{chunk-N47CYWEM.js → chunk-SMHQA5J6.js} +13 -8
- package/dist/bundle/{chunk-YFLKH3NZ.js → chunk-SWMMR3FR.js} +2 -2
- package/dist/bundle/{chunk-P5KGFT7U.js → chunk-TRMIV3OA.js} +2 -2
- package/dist/bundle/{chunk-7NCG2SHR.js → chunk-VAGF723Z.js} +1 -1
- package/dist/bundle/{chunk-PWKXHDBQ.js → chunk-VCYFEWPD.js} +26 -26
- package/dist/bundle/{chunk-NKZ6V4JW.js → chunk-VHQNVG3J.js} +5 -5
- package/dist/bundle/{chunk-6KFA6HOM.js → chunk-VHT2WI4I.js} +19 -19
- package/dist/bundle/{chunk-QLZGLPJL.js → chunk-VYBOYBLX.js} +6 -6
- package/dist/bundle/{chunk-YJZBJ2TM.js → chunk-WUFCYDKB.js} +2 -2
- package/dist/bundle/{chunk-2YU3CXFD.js → chunk-XAZQTJXR.js} +40 -29
- package/dist/bundle/{chunk-I5EJHKNC.js → chunk-XEBFFKXO.js} +3 -3
- package/dist/bundle/{chunk-AH3SNVCV.js → chunk-XF5MFUEB.js} +15 -15
- package/dist/bundle/{chunk-VO4KOLQZ.js → chunk-ZBM4GEV2.js} +5 -4
- package/dist/bundle/{chunk-5ZVLM6YR.js → chunk-ZKXDI45R.js} +1 -1
- package/dist/bundle/command-contract-MXCBV3GJ.js +38 -0
- package/dist/bundle/drive.js +7 -7
- package/dist/bundle/{echarts-RFTK737T.js → echarts-LD3AI55P.js} +2 -2
- package/dist/bundle/{embed-5NAGJUMD.js → embed-FJKIIM43.js} +5 -5
- package/dist/bundle/{embedder-EWXLIGBY.js → embedder-NNQ5ZC25.js} +8 -8
- package/dist/bundle/{entry-YCPJ6H6U.js → entry-ZYSNPDSD.js} +6 -6
- package/dist/bundle/failure-M5HSCCJJ.js +37 -0
- package/dist/bundle/{first-run-LNAZDBB4.js → first-run-KA2UPZAU.js} +9 -9
- package/dist/bundle/first-screen-VQ3RXDMF.js +36 -0
- package/dist/bundle/{google-5FFKRHHC.js → google-ZYDFTHLN.js} +9 -9
- package/dist/bundle/google-api-2GT5PAW2.js +82 -0
- package/dist/bundle/{identity-53ZMPL2O.js → identity-R5OKB5O5.js} +2 -2
- package/dist/bundle/{instructions-FHNL7CMW.js → instructions-RZMSW3OC.js} +3 -1
- package/dist/bundle/{login-VXXZZR6G.js → login-JU6NKW5P.js} +64 -64
- package/dist/bundle/mcp-JOQMFGBC.js +95 -0
- package/dist/bundle/{mcp-IXFC2VVR.js → mcp-OQBZXELQ.js} +2 -2
- package/dist/bundle/{mcp-F4XZO76F.js → mcp-Z362OMZG.js} +77 -83
- package/dist/bundle/{node-ZMCACJVS.js → node-ZRLYQL7J.js} +2 -2
- package/dist/bundle/{node-sqlite-QJQ5S7KS.js → node-sqlite-TXPSRROT.js} +4 -4
- package/dist/bundle/{oauth-TZFDPAFE.js → oauth-NAIBKERJ.js} +6 -6
- package/dist/bundle/{open-IYM25QTL.js → open-3P5EPXPV.js} +3 -3
- package/dist/bundle/{process-ZPTLNVQS.js → process-LL77573L.js} +1 -1
- package/dist/bundle/{program-YX7DZMPR.js → program-PA2J6OFM.js} +129 -151
- package/dist/bundle/{prompt-TGWTVIEK.js → prompt-3TX2SWOY.js} +4 -4
- package/dist/bundle/{reasons-Q5LOQESQ.js → reasons-GF2TYGX6.js} +3 -3
- package/dist/bundle/{recognize-AGPMWKIY.js → recognize-IFXOJHEA.js} +5 -5
- package/dist/bundle/{remote-QV7QSLAK.js → remote-663M42Y5.js} +6 -6
- package/dist/bundle/{rerank-HZKJJCS4.js → rerank-OT2F2DBV.js} +6 -6
- package/dist/bundle/{serve-NRJQOVT4.js → serve-PDNNI6O6.js} +8 -8
- package/dist/bundle/server-BFOEPMR7.js +56 -0
- package/dist/bundle/server-K566PJ7H.js +69 -0
- package/dist/bundle/{services-NZQWVMOE.js → services-5MCTECBU.js} +28 -28
- package/dist/bundle/{sqlite-runtime-6MXHTYYU.js → sqlite-runtime-BF3KDM7W.js} +4 -4
- package/dist/bundle/{state-IF2FLTSY.js → state-SZX65E74.js} +5 -5
- package/dist/bundle/{store-HVIBXOXS.js → store-TCWNLA3V.js} +14 -14
- package/dist/bundle/{store-HBD54IRL.js → store-UKPGGAPW.js} +16 -16
- package/dist/bundle/store-maintenance-command-QHLUVBTJ.js +57 -0
- package/dist/bundle/tokens-DFCFRF7I.js +103 -0
- package/dist/commands/mcp.d.ts.map +1 -1
- package/dist/commands/mcp.js +5 -9
- package/dist/commands/mcp.js.map +1 -1
- package/dist/contract-overrides.d.ts.map +1 -1
- package/dist/contract-overrides.js +13 -32
- package/dist/contract-overrides.js.map +1 -1
- package/dist/mcp.d.ts +1 -8
- package/dist/mcp.d.ts.map +1 -1
- package/dist/mcp.js +1 -8
- package/dist/mcp.js.map +1 -1
- package/dist/state.d.ts +8 -0
- package/dist/state.d.ts.map +1 -1
- package/dist/state.js +7 -0
- package/dist/state.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-HX35D7KV.js +0 -38
- package/dist/bundle/failure-XBWHHBEW.js +0 -37
- package/dist/bundle/first-screen-P5NNFJD7.js +0 -36
- package/dist/bundle/google-api-TJCFOOAP.js +0 -82
- package/dist/bundle/mcp-2CJCJXSW.js +0 -95
- package/dist/bundle/server-R4JUHFSW.js +0 -56
- package/dist/bundle/store-maintenance-command-U3F4RGJB.js +0 -57
- package/dist/bundle/tokens-5D5YUA2Q.js +0 -103
- /package/dist/bundle/{chunk-IVQ6342B.js → chunk-O5EHUB2V.js} +0 -0
- /package/dist/bundle/{chunk-X5DFDGWS.js → chunk-Q2Z3VCM4.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-R2QRP7EJ.js";
|
|
6
6
|
import {
|
|
7
7
|
writeSecurely
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-VHT2WI4I.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-BJ3JRO34.js";
|
|
27
27
|
import {
|
|
28
28
|
__name
|
|
29
29
|
} from "./chunk-ZVVMGPBJ.js";
|
|
30
30
|
|
|
31
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/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.
|
|
79
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/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.
|
|
225
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/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.
|
|
260
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/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.
|
|
387
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/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.
|
|
529
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/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.
|
|
654
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/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.
|
|
840
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/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.
|
|
843
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/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.
|
|
848
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/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.
|
|
1100
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/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.
|
|
1222
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/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.
|
|
1361
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/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.
|
|
1411
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/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.
|
|
1414
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/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.
|
|
1429
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/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.
|
|
1447
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/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.
|
|
1631
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/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;
|
|
@@ -2,51 +2,51 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
botInstructions
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-4NGLRHWO.js";
|
|
6
6
|
import {
|
|
7
7
|
answered,
|
|
8
8
|
normal,
|
|
9
9
|
registerCommands,
|
|
10
10
|
runCommandForAgent,
|
|
11
11
|
toolsFromCommands
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-XAZQTJXR.js";
|
|
13
13
|
import {
|
|
14
14
|
agentJson,
|
|
15
15
|
skillResource
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-XF5MFUEB.js";
|
|
17
17
|
import {
|
|
18
18
|
callerOf,
|
|
19
19
|
serveStdio
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-G3FAOS52.js";
|
|
21
21
|
import {
|
|
22
22
|
McpServer
|
|
23
23
|
} from "./chunk-5FONRUG6.js";
|
|
24
24
|
import {
|
|
25
25
|
wholeList
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-JVTVAZ5X.js";
|
|
27
27
|
import {
|
|
28
28
|
changesMessenger,
|
|
29
29
|
itemOf
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-AUS6TKP5.js";
|
|
31
31
|
import {
|
|
32
32
|
flatten
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-LOTQ2HMT.js";
|
|
34
34
|
import {
|
|
35
35
|
MESSENGER_CHANGE_REFUSAL,
|
|
36
36
|
readOnlyLockOf,
|
|
37
37
|
readOnlyRefusal
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-RJ633GFA.js";
|
|
39
39
|
import {
|
|
40
40
|
mcpErrorResult
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-VHT2WI4I.js";
|
|
42
42
|
import {
|
|
43
43
|
object
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-BJ3JRO34.js";
|
|
45
45
|
import {
|
|
46
46
|
__name
|
|
47
47
|
} from "./chunk-ZVVMGPBJ.js";
|
|
48
48
|
|
|
49
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
49
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/mcp/bot/server.js
|
|
50
50
|
import { randomUUID } from "node:crypto";
|
|
51
51
|
var body = /* @__PURE__ */ __name((command, value) => Array.isArray(value) ? wholeList(`bot ${command}`, value) : value !== null && typeof value === "object" && ("item" in value || "items" in value) ? value : itemOf(value !== null && typeof value === "object" ? value : { value }), "body");
|
|
52
52
|
var createBotServer = /* @__PURE__ */ __name((options) => {
|
|
@@ -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.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/mcp/bot/instructions.js
|
|
8
8
|
var botInstructions = /* @__PURE__ */ __name(({ command, name, profile, writes, skill }) => [
|
|
9
9
|
`The owner's ${name} bot "${profile}", through the official Bot API \u2014 not the owner's personal account. What it writes, people see as the bot.`,
|
|
10
10
|
"Use these tools to read the chats this bot is in, find a message or a person, and \u2014 when the profile allows \u2014 write as the bot.",
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
organization,
|
|
5
5
|
project,
|
|
6
6
|
reminder
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-ZBM4GEV2.js";
|
|
8
8
|
import {
|
|
9
9
|
MIGRATIONS,
|
|
10
10
|
SnapshotBudget,
|
|
@@ -28,28 +28,28 @@ import {
|
|
|
28
28
|
tagMemberIds,
|
|
29
29
|
thingOf,
|
|
30
30
|
write
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-FEULDMWM.js";
|
|
32
32
|
import {
|
|
33
33
|
filesAccountSql,
|
|
34
34
|
folderProviderOf,
|
|
35
35
|
folderProviderSql,
|
|
36
36
|
isDocumentAccountProvider
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-AOOD3RMK.js";
|
|
38
38
|
import {
|
|
39
39
|
queryFieldsOf
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-R2QRP7EJ.js";
|
|
41
41
|
import {
|
|
42
42
|
CliError
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-BJ3JRO34.js";
|
|
44
44
|
import {
|
|
45
45
|
__name
|
|
46
46
|
} from "./chunk-ZVVMGPBJ.js";
|
|
47
47
|
|
|
48
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
48
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/document-transfer/index.js
|
|
49
49
|
import { realpathSync, statSync } from "node:fs";
|
|
50
50
|
import { resolve } from "node:path";
|
|
51
51
|
|
|
52
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
52
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/document-transfer/people.js
|
|
53
53
|
var planPeople = /* @__PURE__ */ __name((database, snapshot, mappings, bindings, conflicts) => {
|
|
54
54
|
const creatable = /* @__PURE__ */ new Set();
|
|
55
55
|
let people = 0, identities = 0;
|
|
@@ -112,11 +112,11 @@ var copyPeople = /* @__PURE__ */ __name((database, snapshot, mappings, now) => {
|
|
|
112
112
|
}
|
|
113
113
|
}, "copyPeople");
|
|
114
114
|
|
|
115
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
115
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/document-transfer/digest.js
|
|
116
116
|
import { createHash } from "node:crypto";
|
|
117
117
|
var digest = /* @__PURE__ */ __name((value) => createHash("sha256").update(JSON.stringify(value)).digest("hex"), "digest");
|
|
118
118
|
|
|
119
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
119
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/document-transfer/collection.js
|
|
120
120
|
var documentsKeyOf = /* @__PURE__ */ __name((collection) => {
|
|
121
121
|
const colon = collection.indexOf(":");
|
|
122
122
|
const provider = collection.slice(0, colon);
|
|
@@ -160,7 +160,7 @@ var currentCollection = /* @__PURE__ */ __name((row) => {
|
|
|
160
160
|
};
|
|
161
161
|
}, "currentCollection");
|
|
162
162
|
|
|
163
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
163
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/document-transfer/plan.js
|
|
164
164
|
var planTransfer = /* @__PURE__ */ __name((database, snapshot, sourceKey, bindings) => {
|
|
165
165
|
const mappings = /* @__PURE__ */ new Map();
|
|
166
166
|
const missing = /* @__PURE__ */ new Set(), conflicts = /* @__PURE__ */ new Set();
|
|
@@ -327,7 +327,7 @@ var planTransfer = /* @__PURE__ */ __name((database, snapshot, sourceKey, bindin
|
|
|
327
327
|
};
|
|
328
328
|
}, "planTransfer");
|
|
329
329
|
|
|
330
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
330
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/document-transfer/snapshot.js
|
|
331
331
|
var TRANSFER_TABLES = { document: "documents", note: "notes", memory: "memories", fact: "facts" };
|
|
332
332
|
var MAX_ENTITIES = 1e3;
|
|
333
333
|
var MAX_AUXILIARY = 1e4;
|
|
@@ -489,7 +489,7 @@ var transferSnapshot = /* @__PURE__ */ __name((database, collection) => read(dat
|
|
|
489
489
|
};
|
|
490
490
|
}), "transferSnapshot");
|
|
491
491
|
|
|
492
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
492
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/document-transfer/apply.js
|
|
493
493
|
var providerHere = /* @__PURE__ */ __name(({ provider, name, settings }) => {
|
|
494
494
|
if (provider !== "folder" || String(name ?? "").startsWith("google-drive:"))
|
|
495
495
|
return provider ?? null;
|
|
@@ -661,7 +661,7 @@ var remapEntity = /* @__PURE__ */ __name((database, entity, id, mappings) => {
|
|
|
661
661
|
database.prepare(`UPDATE ${TRANSFER_TABLES[entity.kind]} SET ${columns.join(",")} WHERE id=?`).run(...values, id);
|
|
662
662
|
}, "remapEntity");
|
|
663
663
|
|
|
664
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
664
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/document-transfer/index.js
|
|
665
665
|
var locations = /* @__PURE__ */ __name((options) => {
|
|
666
666
|
for (const value of [options.source, options.destination, options.collection])
|
|
667
667
|
if (typeof value !== "string" || !value.trim())
|
|
@@ -757,7 +757,7 @@ var applyDocumentTransfer = /* @__PURE__ */ __name(async (options) => {
|
|
|
757
757
|
}
|
|
758
758
|
}, "applyDocumentTransfer");
|
|
759
759
|
|
|
760
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
760
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/knowledge-query.js
|
|
761
761
|
var ORGANIZATIONS_QUERY = {
|
|
762
762
|
entity: "organization",
|
|
763
763
|
backend: "sql",
|
|
@@ -770,10 +770,12 @@ var PROJECTS_QUERY = {
|
|
|
770
770
|
entity: "project",
|
|
771
771
|
backend: "sql",
|
|
772
772
|
fields: queryFieldsOf(project, {
|
|
773
|
-
native: ["id", "key", "type", "organization_id", "scope", "created_at"],
|
|
773
|
+
native: ["id", "key", "name", "kind", "type", "organization_id", "scope", "created_at"],
|
|
774
774
|
examples: {
|
|
775
775
|
id: "id:1",
|
|
776
776
|
key: "key:SMP",
|
|
777
|
+
name: "name:*tart*",
|
|
778
|
+
kind: "kind:inbox",
|
|
777
779
|
type: "type:work",
|
|
778
780
|
organization_id: "organization_id:1",
|
|
779
781
|
scope: "scope:work",
|
|
@@ -790,7 +792,7 @@ var REMINDERS_QUERY = {
|
|
|
790
792
|
})
|
|
791
793
|
};
|
|
792
794
|
|
|
793
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
795
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/project-transfer/preview.js
|
|
794
796
|
var previewProjectAnnotationSnapshot = /* @__PURE__ */ __name(async (options) => {
|
|
795
797
|
if (!options || typeof options !== "object" || Array.isArray(options))
|
|
796
798
|
throw new CliError("validation_error", "project preview options are required");
|
|
@@ -812,7 +814,7 @@ var previewProjectAnnotationSnapshot = /* @__PURE__ */ __name(async (options) =>
|
|
|
812
814
|
}
|
|
813
815
|
}, "previewProjectAnnotationSnapshot");
|
|
814
816
|
|
|
815
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
817
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/project-transfer/snapshot.js
|
|
816
818
|
var snapshotProjectAnnotations = /* @__PURE__ */ __name(async (options) => {
|
|
817
819
|
if (!options || typeof options !== "object" || Array.isArray(options))
|
|
818
820
|
throw new CliError("validation_error", "snapshot options are required");
|
|
@@ -2,56 +2,56 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
operations
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-QTJUH3LS.js";
|
|
6
6
|
import {
|
|
7
7
|
fileId,
|
|
8
8
|
inspectConfig,
|
|
9
9
|
paths,
|
|
10
10
|
profileName,
|
|
11
11
|
refusal
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-GWPKIRNQ.js";
|
|
13
13
|
import {
|
|
14
14
|
DRIVE_APP
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-ZKXDI45R.js";
|
|
16
16
|
import {
|
|
17
17
|
VERSION
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-NM26XAS2.js";
|
|
19
19
|
import {
|
|
20
20
|
RecipientList,
|
|
21
21
|
SendJournal,
|
|
22
22
|
sendGuard
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-IAW5A7OR.js";
|
|
24
24
|
import {
|
|
25
25
|
newOperationId
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-DL7D6Y3B.js";
|
|
27
27
|
import {
|
|
28
28
|
profileFree
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-AUS6TKP5.js";
|
|
30
30
|
import {
|
|
31
31
|
annotate,
|
|
32
32
|
commandsDocument,
|
|
33
33
|
describeProgram,
|
|
34
34
|
flatten
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-LOTQ2HMT.js";
|
|
36
36
|
import {
|
|
37
37
|
guardedWrite
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-CFZWPIVC.js";
|
|
39
39
|
import {
|
|
40
40
|
CEILING_KEY,
|
|
41
41
|
LEVELS,
|
|
42
42
|
layerPermissions,
|
|
43
43
|
levelFor
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-PJ7IQVOM.js";
|
|
45
45
|
import {
|
|
46
46
|
setupPermissionCeiling
|
|
47
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-LJARCTGL.js";
|
|
48
48
|
import {
|
|
49
49
|
readOnlyLockOf,
|
|
50
50
|
readOnlyRefusal
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-RJ633GFA.js";
|
|
52
52
|
import {
|
|
53
53
|
writeSecurely
|
|
54
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-VHT2WI4I.js";
|
|
55
55
|
import {
|
|
56
56
|
CliError,
|
|
57
57
|
array,
|
|
@@ -70,7 +70,7 @@ import {
|
|
|
70
70
|
string,
|
|
71
71
|
unknown,
|
|
72
72
|
writes
|
|
73
|
-
} from "./chunk-
|
|
73
|
+
} from "./chunk-BJ3JRO34.js";
|
|
74
74
|
import {
|
|
75
75
|
__name
|
|
76
76
|
} from "./chunk-ZVVMGPBJ.js";
|
|
@@ -219,6 +219,12 @@ var readSnapshot = /* @__PURE__ */ __name((env, name, id) => {
|
|
|
219
219
|
}, "readSnapshot");
|
|
220
220
|
var profileSetTokenFile = /* @__PURE__ */ __name((env, option) => join(paths(env).state, `mcp-http-${option}.json`), "profileSetTokenFile");
|
|
221
221
|
var httpTokenFile = /* @__PURE__ */ __name((env, profile) => join(profileDir(env, profile), "mcp-http.json"), "httpTokenFile");
|
|
222
|
+
var profileSetLabel = /* @__PURE__ */ __name(({ option, profiles }) => {
|
|
223
|
+
const names = profiles().join(", ");
|
|
224
|
+
if (option === "all")
|
|
225
|
+
return `every profile (${names || "none yet"})`;
|
|
226
|
+
return profiles().length === 1 ? `profile ${names}` : `profiles ${names}`;
|
|
227
|
+
}, "profileSetLabel");
|
|
222
228
|
|
|
223
229
|
// dist/registry.js
|
|
224
230
|
var ACCOUNT_FREE_COMMANDS = /* @__PURE__ */ new Set([
|
|
@@ -495,6 +501,7 @@ export {
|
|
|
495
501
|
readSnapshot,
|
|
496
502
|
profileSetTokenFile,
|
|
497
503
|
httpTokenFile,
|
|
504
|
+
profileSetLabel,
|
|
498
505
|
ACCOUNT_FREE_COMMANDS,
|
|
499
506
|
PROFILE_SET_COMMANDS,
|
|
500
507
|
ANY_PROFILE_COMMANDS,
|
|
@@ -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-BJ3JRO34.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.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/attachments/limits.js
|
|
11
11
|
var MAX_FILE_BYTES = 50 * 1024 * 1024;
|
|
12
12
|
var MAX_TEXT_CHARS = 2e6;
|
|
13
13
|
var ATTACHMENT_LIMIT_ENV = [
|
|
@@ -4,23 +4,23 @@ import {
|
|
|
4
4
|
executableEnvironment,
|
|
5
5
|
executableOnPath,
|
|
6
6
|
require_cross_spawn
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-MFS52LTZ.js";
|
|
8
8
|
import {
|
|
9
9
|
loadConfigFile,
|
|
10
10
|
saveConfigFile
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-VHT2WI4I.js";
|
|
12
12
|
import {
|
|
13
13
|
number,
|
|
14
14
|
object,
|
|
15
15
|
optional,
|
|
16
16
|
string
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-BJ3JRO34.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.65.0_commander@15.0.
|
|
23
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.65.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
|
|
24
24
|
var import_cross_spawn = __toESM(require_cross_spawn(), 1);
|
|
25
25
|
import { existsSync } from "node:fs";
|
|
26
26
|
var installerOf = /* @__PURE__ */ __name((scriptPath) => {
|
|
@@ -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.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/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) => {
|
|
@@ -2,15 +2,15 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
singleLine
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-VHT2WI4I.js";
|
|
6
6
|
import {
|
|
7
7
|
CliError
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-BJ3JRO34.js";
|
|
9
9
|
import {
|
|
10
10
|
__name
|
|
11
11
|
} from "./chunk-ZVVMGPBJ.js";
|
|
12
12
|
|
|
13
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
13
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/domain/providers.js
|
|
14
14
|
var KINDS = ["messages", "mail", "notes", "documents", "meetings", "events"];
|
|
15
15
|
var PROVIDERS = [
|
|
16
16
|
{ name: "telegram", kind: "messages", aliases: ["tg"] },
|
|
@@ -101,7 +101,7 @@ var providerNamed = /* @__PURE__ */ __name((word) => {
|
|
|
101
101
|
var kindIn = /* @__PURE__ */ __name((provider) => isFolderProvider(provider) ? "notes" : registry.find(({ name }) => name === provider)?.kind, "kindIn");
|
|
102
102
|
var kindOf = /* @__PURE__ */ __name((provider) => kindIn(provider) ?? "messages", "kindOf");
|
|
103
103
|
|
|
104
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
104
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/domain/locator.js
|
|
105
105
|
var SCHEME = "msg:";
|
|
106
106
|
var formatLocator = /* @__PURE__ */ __name(({ provider, account, chat, message }) => SCHEME + [provider, account, chat, message].map(encodeURIComponent).join("/"), "formatLocator");
|
|
107
107
|
var isLocator = /* @__PURE__ */ __name((reference) => reference.trim().startsWith(SCHEME), "isLocator");
|
|
@@ -115,7 +115,7 @@ var parseLocator = /* @__PURE__ */ __name((reference) => {
|
|
|
115
115
|
return { provider, account, chat, message };
|
|
116
116
|
}, "parseLocator");
|
|
117
117
|
|
|
118
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
118
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/domain/references.js
|
|
119
119
|
var SIMPLE_REFERENCES = [
|
|
120
120
|
"note",
|
|
121
121
|
"document",
|
|
@@ -187,7 +187,7 @@ var folderPath = /* @__PURE__ */ __name((path) => {
|
|
|
187
187
|
}, "folderPath");
|
|
188
188
|
var canonicalReference = /* @__PURE__ */ __name((text) => formatReference(parseReference(text)), "canonicalReference");
|
|
189
189
|
|
|
190
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
190
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/domain/counters.js
|
|
191
191
|
var COUNTER_FIELDS = ["views", "reactions", "comments"];
|
|
192
192
|
var validCounter = /* @__PURE__ */ __name((value) => typeof value === "number" && Number.isFinite(value) && value >= 0, "validCounter");
|
|
193
193
|
var counterObservationTime = /* @__PURE__ */ __name((observation, now) => {
|
|
@@ -206,7 +206,7 @@ var counterFreshness = /* @__PURE__ */ __name((states) => {
|
|
|
206
206
|
return states.some((one) => one.freshness === "stale") ? "stale" : "fresh";
|
|
207
207
|
}, "counterFreshness");
|
|
208
208
|
|
|
209
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
209
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/domain/rankings-options.js
|
|
210
210
|
var MESSAGE_MEASURES = ["views", "reactions", "forwards", "comments", "replies", "thread-size"];
|
|
211
211
|
var AUTHOR_MEASURES = [
|
|
212
212
|
"messages",
|