@wirecat/drive-cli 0.51.0 → 0.52.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-H3APJWSO.js → all-profiles-CYW6XBBS.js} +8 -8
- package/dist/bundle/{anthropic-P7DXFYFE.js → anthropic-KW6KU36Y.js} +5 -5
- package/dist/bundle/{app-server-IQUR7ZC2.js → app-server-TCJZ333E.js} +53 -52
- package/dist/bundle/{bun-LZUEW2ML.js → bun-7SYKSCLA.js} +2 -2
- package/dist/bundle/{bun-sqlite-6LUE7UA6.js → bun-sqlite-RI7DR6RZ.js} +4 -4
- package/dist/bundle/{chunk-7ZNM6KXP.js → chunk-234MHU76.js} +7 -7
- package/dist/bundle/{chunk-U7DPS46V.js → chunk-2623YE5I.js} +107 -96
- package/dist/bundle/{chunk-UW7VXKKZ.js → chunk-2AUXBJRX.js} +19 -19
- package/dist/bundle/{chunk-OQVJQSEH.js → chunk-2UIMEMWU.js} +3 -3
- package/dist/bundle/{chunk-NO34DAIB.js → chunk-33NVQGUY.js} +6 -6
- package/dist/bundle/{chunk-D3UFQC7K.js → chunk-43QVYW3K.js} +49 -49
- package/dist/bundle/{chunk-WX2NQO2D.js → chunk-4A2PIGC6.js} +1 -1
- package/dist/bundle/{chunk-D222O57O.js → chunk-4CPLOMRK.js} +6 -6
- package/dist/bundle/{chunk-U3OS6V6S.js → chunk-4Z6TCU5T.js} +1 -1
- package/dist/bundle/{chunk-POFLDSTX.js → chunk-54O62JWP.js} +10 -10
- package/dist/bundle/{chunk-HBRTKJ3J.js → chunk-5PLJKSG4.js} +7 -7
- package/dist/bundle/{chunk-PRBPVOW4.js → chunk-6DHQTUB2.js} +1 -1
- package/dist/bundle/{chunk-BVDAP3FQ.js → chunk-725OHXKR.js} +9 -9
- package/dist/bundle/chunk-7SH4JHYW.js +379 -0
- package/dist/bundle/{chunk-FCZ762RV.js → chunk-7XKAVMCF.js} +8 -8
- package/dist/bundle/{chunk-PNUS224S.js → chunk-7YMDL4JQ.js} +8 -6
- package/dist/bundle/{chunk-FV5WG4WU.js → chunk-A4UNTWAX.js} +29 -25
- package/dist/bundle/{chunk-I7EP3VPJ.js → chunk-ALJWBGD5.js} +1 -1
- package/dist/bundle/{chunk-CX7HQ6KK.js → chunk-BSSCTWWK.js} +12 -12
- package/dist/bundle/{chunk-HYT3FJVB.js → chunk-C6Z25IBJ.js} +49 -24
- package/dist/bundle/{chunk-XCXUP76D.js → chunk-CB7SBYLO.js} +27 -27
- package/dist/bundle/{chunk-YXHMEFL7.js → chunk-CITFEQ6S.js} +1 -1
- package/dist/bundle/{chunk-Y73IZWRI.js → chunk-CKBHR7QO.js} +1 -1
- package/dist/bundle/{chunk-AKW5MNQP.js → chunk-CM7GAXGD.js} +5 -5
- package/dist/bundle/{chunk-OKSS7YUN.js → chunk-DLAFGSTN.js} +1 -1
- package/dist/bundle/{chunk-MPTD5P53.js → chunk-DO4PDQY5.js} +2 -2
- package/dist/bundle/{chunk-P3T2SZW2.js → chunk-DW46P2DY.js} +1 -1
- package/dist/bundle/{chunk-ZKAAFY4C.js → chunk-F7UUZATI.js} +11 -11
- package/dist/bundle/{chunk-XBENRRBS.js → chunk-FCJAHD4R.js} +2 -2
- package/dist/bundle/{chunk-5C7RKU7O.js → chunk-FDWYPONW.js} +46 -34
- package/dist/bundle/{chunk-TVJU245P.js → chunk-FG4XXZZE.js} +2 -2
- package/dist/bundle/{chunk-BMI5VCR4.js → chunk-FJW3DDCF.js} +5 -5
- package/dist/bundle/{chunk-LZKPT7GY.js → chunk-G6QF5KWF.js} +35 -35
- package/dist/bundle/{chunk-K6JSVXDN.js → chunk-G7DCVJ4F.js} +5 -5
- package/dist/bundle/{chunk-Q5CLTK5R.js → chunk-GR5GGZKH.js} +3 -3
- package/dist/bundle/{chunk-SZWQFR5X.js → chunk-GVCN3GLZ.js} +16 -4
- package/dist/bundle/{chunk-CT6Z6Z64.js → chunk-H47W2J6S.js} +523 -778
- package/dist/bundle/{chunk-HGWMX7BM.js → chunk-HQVJK5E7.js} +44 -22
- package/dist/bundle/{chunk-35IHF562.js → chunk-HX7Y2ASG.js} +350 -281
- package/dist/bundle/{chunk-7LYVWMKD.js → chunk-I7UH5CTA.js} +8 -8
- package/dist/bundle/{chunk-YVQJPLPU.js → chunk-IDUNJCFO.js} +2 -2
- package/dist/bundle/{chunk-6FXFYXTR.js → chunk-IWFBAWZK.js} +15 -15
- package/dist/bundle/{chunk-3KTDFSSK.js → chunk-JEOYFKUK.js} +2 -2
- package/dist/bundle/{chunk-4GFAOETW.js → chunk-KYVXMEBC.js} +3 -3
- package/dist/bundle/{chunk-PT6XDCOY.js → chunk-LJAX6YCF.js} +2 -2
- package/dist/bundle/{chunk-XXLTVVMT.js → chunk-LONV6HIK.js} +20 -20
- package/dist/bundle/{chunk-G75FZQAZ.js → chunk-NHBUTCNR.js} +10 -10
- package/dist/bundle/{chunk-OASIFIXM.js → chunk-NPSZPUK6.js} +2 -2
- package/dist/bundle/{chunk-Z3GWVRW3.js → chunk-NSIFQ5OP.js} +1 -1
- package/dist/bundle/{chunk-TSZJXI4N.js → chunk-O6IOL6RX.js} +21 -21
- package/dist/bundle/{chunk-YLC4JVQZ.js → chunk-PAXKALHV.js} +5 -5
- package/dist/bundle/{chunk-AUW45JPI.js → chunk-PDGECM5D.js} +7 -7
- package/dist/bundle/{chunk-NRWDEBJB.js → chunk-PEOCBV2Z.js} +8 -8
- package/dist/bundle/{chunk-VCPS7Q2W.js → chunk-PQJYM5ES.js} +3 -3
- package/dist/bundle/{chunk-TEH76MZK.js → chunk-PQYVPCJ2.js} +26 -26
- package/dist/bundle/{chunk-WYWXOIGT.js → chunk-PSNHPFSK.js} +1 -1
- package/dist/bundle/{chunk-Y4YBW5S4.js → chunk-Q765VPZY.js} +2 -2
- package/dist/bundle/{chunk-YOABRW2M.js → chunk-R276546S.js} +1 -1
- package/dist/bundle/{chunk-SRIPLP7N.js → chunk-RNSP57TC.js} +4 -4
- package/dist/bundle/{chunk-WACVI3CS.js → chunk-UC22Q5KU.js} +11 -11
- package/dist/bundle/{chunk-VH4GVA2N.js → chunk-UR32UWTQ.js} +2 -2
- package/dist/bundle/{chunk-Z6KTSXE3.js → chunk-VJZST5RD.js} +2 -2
- package/dist/bundle/{chunk-LLMHJE5Q.js → chunk-VSOLLTYT.js} +2 -2
- package/dist/bundle/{chunk-PQGIV36R.js → chunk-VZ2I62HN.js} +2 -2
- package/dist/bundle/{chunk-DEVPGI27.js → chunk-W7IK7E4B.js} +17 -17
- package/dist/bundle/{chunk-NVHPYKYC.js → chunk-WBTVGFXI.js} +11 -11
- package/dist/bundle/{chunk-2TPENYCK.js → chunk-WLFUBNFX.js} +4 -4
- package/dist/bundle/{chunk-SRONUWOM.js → chunk-WQJBAWQP.js} +515 -344
- package/dist/bundle/{chunk-K3EK4MTU.js → chunk-WQRGA75U.js} +15 -3
- package/dist/bundle/{chunk-XE2GEE3E.js → chunk-WUX7AUOQ.js} +26 -26
- package/dist/bundle/{chunk-J2S7QDOP.js → chunk-X6ID5EAR.js} +16 -16
- package/dist/bundle/{chunk-JI5KFKTL.js → chunk-XOLQSCMF.js} +6 -6
- package/dist/bundle/{chunk-EY4CUQW2.js → chunk-YKZ4IPLB.js} +26 -9
- package/dist/bundle/{chunk-GK2VUKQY.js → chunk-YNFELLNQ.js} +2 -2
- package/dist/bundle/{chunk-F3PPSIKI.js → chunk-YVPHJHIL.js} +3 -3
- package/dist/bundle/{chunk-4YG2FZ53.js → chunk-Z47LOJUS.js} +7 -7
- package/dist/bundle/{chunk-DDD3FS6G.js → chunk-ZDLIO76S.js} +2 -2
- package/dist/bundle/{chunk-UMY4IQE2.js → chunk-ZNZUZGSV.js} +54 -47
- package/dist/bundle/{chunk-UM4E2OFL.js → chunk-ZSXRDF6I.js} +1 -1
- package/dist/bundle/{chunk-N33EOINW.js → chunk-ZWSG7OCA.js} +4 -4
- package/dist/bundle/command-contract-I2YB5IXI.js +38 -0
- package/dist/bundle/{decode-4EENADOV.js → decode-EDN2ARXZ.js} +19 -17
- package/dist/bundle/drive.js +7 -7
- package/dist/bundle/{echarts-ZFC37XW7.js → echarts-GXY34GHA.js} +2 -2
- package/dist/bundle/{embed-UZMNP26C.js → embed-3GSQIQXE.js} +5 -5
- package/dist/bundle/{embedder-7VDWDBKF.js → embedder-6ULWRG3R.js} +8 -8
- package/dist/bundle/{entry-JJKCHVIK.js → entry-IPRJLFHO.js} +6 -6
- package/dist/bundle/failure-4CVEVY45.js +37 -0
- package/dist/bundle/{first-run-FJTEUJBF.js → first-run-FGHGWHC2.js} +9 -9
- package/dist/bundle/first-screen-M62KTPZG.js +36 -0
- package/dist/bundle/{google-JBJASYKY.js → google-BD3ZNFVJ.js} +9 -9
- package/dist/bundle/google-api-BDUWZMRV.js +83 -0
- package/dist/bundle/{identity-XE73ALJH.js → identity-QLBSASO5.js} +2 -2
- package/dist/bundle/{instructions-Q4ASITKO.js → instructions-K5BEQM4C.js} +1 -1
- package/dist/bundle/{login-BD2WQT5F.js → login-VNZKRSAD.js} +65 -64
- package/dist/bundle/{mcp-G6U2Q63E.js → mcp-5SNSMI2M.js} +82 -81
- package/dist/bundle/mcp-JZSYPQA4.js +96 -0
- package/dist/bundle/{mcp-ZYZ4DFW2.js → mcp-WSGVVZWI.js} +2 -2
- package/dist/bundle/{node-CYM7VXFR.js → node-ZYWB7IET.js} +2 -2
- package/dist/bundle/{node-sqlite-RK4MHW57.js → node-sqlite-J3OODPYK.js} +4 -4
- package/dist/bundle/{oauth-CQXQRHJR.js → oauth-L4VTCBLF.js} +6 -6
- package/dist/bundle/{open-WSE4NBD2.js → open-SGUN7ZVF.js} +3 -3
- package/dist/bundle/openai-RLVISEDH.js +251 -0
- package/dist/bundle/{process-7HHZZZLA.js → process-ZXO2MWRJ.js} +1 -1
- package/dist/bundle/{program-ZMQYZNV5.js → program-6S5EH7BS.js} +103 -101
- package/dist/bundle/{prompt-YSBBQJGF.js → prompt-AUWTBLO7.js} +4 -4
- package/dist/bundle/{reasons-366PI7OV.js → reasons-M5AKCNCU.js} +3 -3
- package/dist/bundle/{recognize-AZKGPCAS.js → recognize-ORX2UBQW.js} +5 -3
- package/dist/bundle/{remote-EYSK3XKD.js → remote-AGIJY73X.js} +6 -6
- package/dist/bundle/{rerank-LOW6VIDF.js → rerank-R6PE44M5.js} +6 -6
- package/dist/bundle/{serve-UJ52HGA7.js → serve-VOBAQHAQ.js} +8 -8
- package/dist/bundle/server-24PS4M7U.js +70 -0
- package/dist/bundle/server-G6HFZ2CK.js +57 -0
- package/dist/bundle/{services-B4QUSCFN.js → services-HZFTTZSF.js} +35 -28
- package/dist/bundle/{sqlite-runtime-GEURBVK5.js → sqlite-runtime-DTGPR2T2.js} +4 -4
- package/dist/bundle/{state-OJNSKOXO.js → state-WG3JKJM3.js} +5 -5
- package/dist/bundle/{store-62SBP45X.js → store-33VHIMEO.js} +14 -14
- package/dist/bundle/{store-FTS2HVVB.js → store-EV72MT5U.js} +16 -16
- package/dist/bundle/store-maintenance-command-ZTUEI4EC.js +58 -0
- package/dist/bundle/tokens-XDQXUFDQ.js +104 -0
- package/dist/knowledge-query.d.ts +1 -1
- package/dist/store.d.ts.map +1 -1
- package/dist/store.js +1 -0
- package/dist/store.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +3 -3
- package/dist/bundle/command-contract-R6CGYG7L.js +0 -38
- package/dist/bundle/failure-VBQBKCD5.js +0 -37
- package/dist/bundle/first-screen-NSPQWNMQ.js +0 -36
- package/dist/bundle/google-api-2FKF4UUN.js +0 -82
- package/dist/bundle/mcp-H3XD47NW.js +0 -95
- package/dist/bundle/server-CA2VLY25.js +0 -56
- package/dist/bundle/server-TW75RDEP.js +0 -69
- package/dist/bundle/store-maintenance-command-FQMB3R4E.js +0 -57
- package/dist/bundle/tokens-JALZUGEM.js +0 -103
- /package/dist/bundle/{chunk-2WNDZFGG.js → chunk-62EDJKGP.js} +0 -0
- /package/dist/bundle/{chunk-UO5O3665.js → chunk-FQRJWVEB.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-NHBUTCNR.js";
|
|
6
6
|
import {
|
|
7
7
|
writeSecurely
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-HQVJK5E7.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-YKZ4IPLB.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.501.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e6af10c98f87b1454255e560646d3ddf/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.501.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e6af10c98f87b1454255e560646d3ddf/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.501.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e6af10c98f87b1454255e560646d3ddf/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.501.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e6af10c98f87b1454255e560646d3ddf/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.501.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e6af10c98f87b1454255e560646d3ddf/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.501.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e6af10c98f87b1454255e560646d3ddf/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.501.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e6af10c98f87b1454255e560646d3ddf/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.501.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e6af10c98f87b1454255e560646d3ddf/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.501.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e6af10c98f87b1454255e560646d3ddf/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.501.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e6af10c98f87b1454255e560646d3ddf/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.501.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e6af10c98f87b1454255e560646d3ddf/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.501.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e6af10c98f87b1454255e560646d3ddf/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.501.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e6af10c98f87b1454255e560646d3ddf/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.501.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e6af10c98f87b1454255e560646d3ddf/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.501.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e6af10c98f87b1454255e560646d3ddf/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.501.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e6af10c98f87b1454255e560646d3ddf/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.501.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e6af10c98f87b1454255e560646d3ddf/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.501.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e6af10c98f87b1454255e560646d3ddf/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;
|
|
@@ -5,17 +5,17 @@ import {
|
|
|
5
5
|
checkConfigText,
|
|
6
6
|
issueMessage,
|
|
7
7
|
usableProfileName
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-FDWYPONW.js";
|
|
9
9
|
import {
|
|
10
10
|
LEVELS
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-Q765VPZY.js";
|
|
12
12
|
import {
|
|
13
13
|
MAX_TEXT_CHARS
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-JEOYFKUK.js";
|
|
15
15
|
import {
|
|
16
16
|
resolvePaths,
|
|
17
17
|
saveConfigFile
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-HQVJK5E7.js";
|
|
19
19
|
import {
|
|
20
20
|
CliError,
|
|
21
21
|
array,
|
|
@@ -36,7 +36,7 @@ import {
|
|
|
36
36
|
strictObject,
|
|
37
37
|
string,
|
|
38
38
|
union
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-YKZ4IPLB.js";
|
|
40
40
|
import {
|
|
41
41
|
__name
|
|
42
42
|
} from "./chunk-ZVVMGPBJ.js";
|
|
@@ -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-YKZ4IPLB.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.501.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e6af10c98f87b1454255e560646d3ddf/node_modules/@wirecat/cli-core/dist/tasks/model.js
|
|
11
11
|
var TASK_KINDS = ["question", "request", "mention", "promise"];
|
|
12
12
|
var TASK_STATES = ["open", "done", "dismissed"];
|
|
13
13
|
var TASK_ORIGINS = ["rule", "agent", "owner"];
|
|
@@ -20,7 +20,7 @@ function closeTask(task, state, by, at, reason) {
|
|
|
20
20
|
}
|
|
21
21
|
__name(closeTask, "closeTask");
|
|
22
22
|
|
|
23
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.501.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e6af10c98f87b1454255e560646d3ddf/node_modules/@wirecat/cli-core/dist/tasks/service.js
|
|
24
24
|
function createTaskService({ store, now = /* @__PURE__ */ __name(() => /* @__PURE__ */ new Date(), "now"), newId = /* @__PURE__ */ __name(() => crypto.randomUUID(), "newId") }) {
|
|
25
25
|
async function find(id) {
|
|
26
26
|
const task = await store.get(id);
|
|
@@ -80,22 +80,22 @@ function median(values) {
|
|
|
80
80
|
}
|
|
81
81
|
__name(median, "median");
|
|
82
82
|
|
|
83
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
83
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.501.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e6af10c98f87b1454255e560646d3ddf/node_modules/@wirecat/cli-core/dist/tasks/store.js
|
|
84
84
|
function matches(task, filter) {
|
|
85
85
|
return (filter.account === void 0 || task.account === filter.account) && (filter.state === void 0 || task.state === filter.state) && (filter.group === void 0 || task.group === filter.group) && (filter.kind === void 0 || task.kind === filter.kind) && (filter.createdBefore === void 0 || task.createdAt < filter.createdBefore);
|
|
86
86
|
}
|
|
87
87
|
__name(matches, "matches");
|
|
88
88
|
|
|
89
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
89
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.501.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e6af10c98f87b1454255e560646d3ddf/node_modules/@wirecat/cli-core/dist/domain/knowledge.js
|
|
90
90
|
var FACT_TYPES = ["fact", "statement", "question", "decision", "promise"];
|
|
91
|
-
var FACT_STATUSES = ["proposed", "accepted", "superseded", "reversed"];
|
|
91
|
+
var FACT_STATUSES = ["proposed", "accepted", "superseded", "reversed", "rejected"];
|
|
92
92
|
var MEMORY_KINDS = ["summary", "digest", "preference"];
|
|
93
93
|
var MEMORY_STATUSES = ["proposed", "confirmed", "stale", "superseded"];
|
|
94
94
|
var MEMORY_SCOPES = ["personal", "work"];
|
|
95
95
|
var WORK_TASK_TYPES = ["bug", "feature", "chore"];
|
|
96
96
|
var TASK_TYPES = [...WORK_TASK_TYPES, ...TASK_KINDS];
|
|
97
97
|
|
|
98
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
98
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.501.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e6af10c98f87b1454255e560646d3ddf/node_modules/@wirecat/cli-core/dist/store/sqlite/link-kinds.js
|
|
99
99
|
var LINK_KINDS = [
|
|
100
100
|
"links-to",
|
|
101
101
|
"blocked-by",
|
|
@@ -2,22 +2,22 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
isCliFailure
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-VSOLLTYT.js";
|
|
6
6
|
import {
|
|
7
7
|
isContentKey
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-YKZ4IPLB.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.501.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e6af10c98f87b1454255e560646d3ddf/node_modules/@wirecat/cli-core/dist/runs/run-context.js
|
|
14
14
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
15
15
|
import { createHash } from "node:crypto";
|
|
16
16
|
|
|
17
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.501.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e6af10c98f87b1454255e560646d3ddf/node_modules/@wirecat/cli-core/dist/runs/error-detail.js
|
|
18
18
|
import { homedir } from "node:os";
|
|
19
19
|
|
|
20
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.501.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e6af10c98f87b1454255e560646d3ddf/node_modules/@wirecat/cli-core/dist/runs/events.js
|
|
21
21
|
var providerErrorKey = /* @__PURE__ */ __name((value) => typeof value === "string" && /^[A-Za-z][A-Za-z0-9._-]{0,63}$/.test(value) ? value : void 0, "providerErrorKey");
|
|
22
22
|
var renderEvent = /* @__PURE__ */ __name((event) => {
|
|
23
23
|
if (event.event === "warning") {
|
|
@@ -65,7 +65,7 @@ var MARK = { request: "\u2192", response: "\u2190", cache: "\u2022", warning: "!
|
|
|
65
65
|
var age = /* @__PURE__ */ __name((ms) => ms < 1e3 ? `${ms}ms` : `${Math.round(ms / 1e3)}s`, "age");
|
|
66
66
|
var size = /* @__PURE__ */ __name((bytes) => bytes < 1e3 ? `${bytes} B` : `${(bytes / 1e3).toFixed(1)} kB`, "size");
|
|
67
67
|
|
|
68
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
68
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.501.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e6af10c98f87b1454255e560646d3ddf/node_modules/@wirecat/cli-core/dist/runs/secrets.js
|
|
69
69
|
var SECRET_WORDS = /* @__PURE__ */ new Set([
|
|
70
70
|
"authorization",
|
|
71
71
|
"cookie",
|
|
@@ -146,7 +146,7 @@ var withoutSecrets = /* @__PURE__ */ __name((text, mark = "[redacted]") => text.
|
|
|
146
146
|
var RUN = /(?<![A-Za-z0-9_+/-])[A-Za-z0-9_+/-]{20,}/g;
|
|
147
147
|
var HEX = /(?<![A-Za-z0-9])(?=[0-9]*[a-f])[0-9a-f]{20,}(?![A-Za-z0-9])/g;
|
|
148
148
|
|
|
149
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
149
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.501.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e6af10c98f87b1454255e560646d3ddf/node_modules/@wirecat/cli-core/dist/runs/error-detail.js
|
|
150
150
|
var MESSAGE_AT_MOST = 500;
|
|
151
151
|
var CAUSES_AT_MOST = 5;
|
|
152
152
|
var FRAMES_AT_MOST = 15;
|
|
@@ -254,7 +254,7 @@ var redactText = /* @__PURE__ */ __name((text) => {
|
|
|
254
254
|
return out.length > MESSAGE_AT_MOST ? `${out.slice(0, MESSAGE_AT_MOST)}\u2026` : out;
|
|
255
255
|
}, "redactText");
|
|
256
256
|
|
|
257
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
257
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.501.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e6af10c98f87b1454255e560646d3ddf/node_modules/@wirecat/cli-core/dist/runs/run-context.js
|
|
258
258
|
var REDACTED = "[redacted]";
|
|
259
259
|
var keepsSuccess = /* @__PURE__ */ __name(({ record, fromFlag, env, caller, persistent = false }) => {
|
|
260
260
|
if (!record)
|
|
@@ -4,15 +4,15 @@ import {
|
|
|
4
4
|
MAX_SECRET_INPUT,
|
|
5
5
|
bufferedInput,
|
|
6
6
|
inputPolicy
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-UR32UWTQ.js";
|
|
8
8
|
import {
|
|
9
9
|
CliError
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-YKZ4IPLB.js";
|
|
11
11
|
import {
|
|
12
12
|
__name
|
|
13
13
|
} from "./chunk-ZVVMGPBJ.js";
|
|
14
14
|
|
|
15
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
15
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.501.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e6af10c98f87b1454255e560646d3ddf/node_modules/@wirecat/cli-core/dist/terminal/prompt.js
|
|
16
16
|
import { createInterface } from "node:readline";
|
|
17
17
|
import { Writable } from "node:stream";
|
|
18
18
|
var readSecret = /* @__PURE__ */ __name(async (prompt, { input = process.stdin, output = process.stderr, echo = false, signal: givenSignal } = {}) => {
|
|
@@ -6,25 +6,25 @@ import {
|
|
|
6
6
|
agentArguments,
|
|
7
7
|
agentJson,
|
|
8
8
|
commandAvailability
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-IWFBAWZK.js";
|
|
10
10
|
import {
|
|
11
11
|
callerOf
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-FCJAHD4R.js";
|
|
13
13
|
import {
|
|
14
14
|
failureContext
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-WQRGA75U.js";
|
|
16
16
|
import {
|
|
17
17
|
lentConnection,
|
|
18
18
|
refuseLacking
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-2AUXBJRX.js";
|
|
20
20
|
import {
|
|
21
21
|
onlineDeps,
|
|
22
22
|
servicesFor,
|
|
23
23
|
storeModeDeps
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-H47W2J6S.js";
|
|
25
25
|
import {
|
|
26
26
|
ENTITIES
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-2623YE5I.js";
|
|
28
28
|
import {
|
|
29
29
|
DEFAULT_OUTPUT_BYTES,
|
|
30
30
|
LOCAL_WRITE,
|
|
@@ -37,37 +37,37 @@ import {
|
|
|
37
37
|
refuseStoreChange,
|
|
38
38
|
sealed,
|
|
39
39
|
startRecording
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-FDWYPONW.js";
|
|
41
41
|
import {
|
|
42
42
|
currentCaller,
|
|
43
43
|
keepsSuccess,
|
|
44
44
|
runContextOf,
|
|
45
45
|
withCaller
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-PEOCBV2Z.js";
|
|
47
47
|
import {
|
|
48
48
|
flatten
|
|
49
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-725OHXKR.js";
|
|
50
50
|
import {
|
|
51
51
|
enclosingTraceId,
|
|
52
52
|
inRun,
|
|
53
53
|
newRunId,
|
|
54
54
|
traceOf
|
|
55
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-LONV6HIK.js";
|
|
56
56
|
import {
|
|
57
57
|
authorityAllowed,
|
|
58
58
|
botApiAllowed,
|
|
59
59
|
keyForCommand,
|
|
60
60
|
levelFor,
|
|
61
61
|
readKeysForCommand
|
|
62
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-Q765VPZY.js";
|
|
63
63
|
import {
|
|
64
64
|
MAX_BUFFERED_INPUT
|
|
65
|
-
} from "./chunk-
|
|
65
|
+
} from "./chunk-UR32UWTQ.js";
|
|
66
66
|
import {
|
|
67
67
|
captureStreams,
|
|
68
68
|
errorObjectOf,
|
|
69
69
|
mcpErrorResult
|
|
70
|
-
} from "./chunk-
|
|
70
|
+
} from "./chunk-HQVJK5E7.js";
|
|
71
71
|
import {
|
|
72
72
|
CliError,
|
|
73
73
|
SNAKE_CASE,
|
|
@@ -106,15 +106,15 @@ import {
|
|
|
106
106
|
unknown,
|
|
107
107
|
word,
|
|
108
108
|
writes
|
|
109
|
-
} from "./chunk-
|
|
109
|
+
} from "./chunk-YKZ4IPLB.js";
|
|
110
110
|
import {
|
|
111
111
|
__name
|
|
112
112
|
} from "./chunk-ZVVMGPBJ.js";
|
|
113
113
|
|
|
114
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
114
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.501.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e6af10c98f87b1454255e560646d3ddf/node_modules/@wirecat/cli-core/dist/mcp/agent.js
|
|
115
115
|
import { Readable } from "node:stream";
|
|
116
116
|
|
|
117
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
117
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/lint.js
|
|
118
118
|
var LINT_SEVERITIES = ["high", "medium", "low"];
|
|
119
119
|
var lintRuleSchema = strictObject({
|
|
120
120
|
id: word,
|
|
@@ -241,7 +241,7 @@ var overridesSchema = array(strictObject({
|
|
|
241
241
|
review_after: pipe(string(), isoDate("a date, YYYY-MM-DD"))
|
|
242
242
|
}));
|
|
243
243
|
|
|
244
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
244
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/audit.js
|
|
245
245
|
var auditRuleSchema = strictObject({ id: word, severity: picklist(LINT_SEVERITIES), summary: text });
|
|
246
246
|
var defineAuditRules = /* @__PURE__ */ __name((input) => parseRegistry("audit rules", array(auditRuleSchema), input, (rules) => duplicates(rules.map((rule) => rule.id)).map((id) => `"${id}" is listed twice`)), "defineAuditRules");
|
|
247
247
|
var AUDIT_RULES = defineAuditRules([
|
|
@@ -323,7 +323,7 @@ var REQUIRED_ROOTS = defineRequiredRoots([
|
|
|
323
323
|
{ path: ["upgrade"], meaning: "updates the CLI" }
|
|
324
324
|
]);
|
|
325
325
|
|
|
326
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
326
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/fields.js
|
|
327
327
|
var fieldRuleSchema = strictObject({ id: word, rule: text });
|
|
328
328
|
var defineFieldRules = /* @__PURE__ */ __name((input) => parseRegistry("output field rules", array(fieldRuleSchema), input, (rules) => duplicates(rules.map((rule) => rule.id)).map((id) => `"${id}" is listed twice`)), "defineFieldRules");
|
|
329
329
|
var FIELD_RULES = defineFieldRules([
|
|
@@ -339,7 +339,7 @@ var FIELD_RULES = defineFieldRules([
|
|
|
339
339
|
}
|
|
340
340
|
]);
|
|
341
341
|
|
|
342
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
342
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/identifiers.js
|
|
343
343
|
var key = pipe(string(), regex(SNAKE_CASE, "a snake_case key"));
|
|
344
344
|
var identifierSchema = strictObject({ key, meaning: text, replaces: optional(array(key)) });
|
|
345
345
|
var defineIdentifiers = /* @__PURE__ */ __name((input) => parseRegistry("identifiers", array(identifierSchema), input, (identifiers) => {
|
|
@@ -361,7 +361,7 @@ var IDENTIFIERS = defineIdentifiers([
|
|
|
361
361
|
{ key: "trace_id", meaning: "the distributed trace a run belongs to, from `traceparent`" }
|
|
362
362
|
]);
|
|
363
363
|
|
|
364
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
364
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-calendar.js
|
|
365
365
|
var CALENDAR_FLAGS = [
|
|
366
366
|
{ name: "--end-time", value: "<time>", role: "value", type: "time", meaning: "when it ends" },
|
|
367
367
|
{
|
|
@@ -435,7 +435,7 @@ var CALENDAR_FLAGS = [
|
|
|
435
435
|
}
|
|
436
436
|
];
|
|
437
437
|
|
|
438
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
438
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-how.js
|
|
439
439
|
var HOW_FLAGS = [
|
|
440
440
|
{
|
|
441
441
|
name: "--limit",
|
|
@@ -1415,7 +1415,7 @@ var HOW_FLAGS = [
|
|
|
1415
1415
|
}
|
|
1416
1416
|
];
|
|
1417
1417
|
|
|
1418
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
1418
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-what.js
|
|
1419
1419
|
var WHAT_FLAGS = [
|
|
1420
1420
|
{
|
|
1421
1421
|
name: "--analysis-provider",
|
|
@@ -2405,7 +2405,7 @@ var WHAT_FLAGS = [
|
|
|
2405
2405
|
}
|
|
2406
2406
|
];
|
|
2407
2407
|
|
|
2408
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2408
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/vocabulary.js
|
|
2409
2409
|
var FLAG_TYPES = [
|
|
2410
2410
|
"switch",
|
|
2411
2411
|
"count",
|
|
@@ -2759,7 +2759,7 @@ var VOCABULARY = defineVocabulary({
|
|
|
2759
2759
|
flags: [...HOW_FLAGS, ...WHAT_FLAGS, ...CALENDAR_FLAGS]
|
|
2760
2760
|
});
|
|
2761
2761
|
|
|
2762
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2762
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.501.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e6af10c98f87b1454255e560646d3ddf/node_modules/@wirecat/cli-core/dist/mcp/agent.js
|
|
2763
2763
|
var TYPES = new Map(VOCABULARY.flags.map((flag) => [flag.name, flag.type]));
|
|
2764
2764
|
var snake = /* @__PURE__ */ __name((name) => name.replaceAll("|", "_or_").replace(/[^a-z0-9]+/gi, "_"), "snake");
|
|
2765
2765
|
var longOf = /* @__PURE__ */ __name((option) => option.flags.match(/--[a-z0-9][a-z0-9-]*/)?.[0], "longOf");
|
|
@@ -2980,7 +2980,7 @@ var runCommandForAgent = /* @__PURE__ */ __name(async (program, path, input, ctx
|
|
|
2980
2980
|
}
|
|
2981
2981
|
}, "runCommandForAgent");
|
|
2982
2982
|
|
|
2983
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2983
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.501.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e6af10c98f87b1454255e560646d3ddf/node_modules/@wirecat/cli-core/dist/mcp/tool.js
|
|
2984
2984
|
var limit = optional(pipe(number(), integer(), minValue(1), maxValue(100), description("how many")));
|
|
2985
2985
|
var page = optional(pipe(number(), integer(), minValue(1), description("which page, from 1")));
|
|
2986
2986
|
var message = pipe(
|
|
@@ -3239,7 +3239,7 @@ var failed = /* @__PURE__ */ __name((error, errors, effects) => {
|
|
|
3239
3239
|
return mcpErrorResult(JSON.parse(agentJson(errorObjectOf(error, context))));
|
|
3240
3240
|
}, "failed");
|
|
3241
3241
|
|
|
3242
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3242
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.501.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e6af10c98f87b1454255e560646d3ddf/node_modules/@wirecat/cli-core/dist/mcp/surface.js
|
|
3243
3243
|
import { randomUUID } from "node:crypto";
|
|
3244
3244
|
var MATCHES = 8;
|
|
3245
3245
|
var ANSWER = answerSchema();
|
|
@@ -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.501.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e6af10c98f87b1454255e560646d3ddf/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.",
|
|
@@ -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-YKZ4IPLB.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.501.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e6af10c98f87b1454255e560646d3ddf/node_modules/@wirecat/cli-core/dist/sends/permissions.js
|
|
11
11
|
var LEVELS = ["deny", "readonly", "ask", "allow"];
|
|
12
12
|
var DANGEROUS = /* @__PURE__ */ new Set(["messages.delete", "bot.messages.delete", "topics.delete", "chats.delete", "chats.clear"]);
|
|
13
13
|
var skipFlagFor = /* @__PURE__ */ __name((key) => DANGEROUS.has(key) ? "--allow-dangerous" : "--yes", "skipFlagFor");
|
|
@@ -5,15 +5,15 @@ import {
|
|
|
5
5
|
readLock,
|
|
6
6
|
releaseLock,
|
|
7
7
|
takeLock
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-KYVXMEBC.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.501.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e6af10c98f87b1454255e560646d3ddf/node_modules/@wirecat/cli-core/dist/mcp/http/state.js
|
|
14
14
|
import { existsSync as existsSync2, readFileSync as readFileSync2 } from "node:fs";
|
|
15
15
|
|
|
16
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.501.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e6af10c98f87b1454255e560646d3ddf/node_modules/@wirecat/cli-core/dist/mcp/http/activity.js
|
|
17
17
|
import { randomBytes } from "node:crypto";
|
|
18
18
|
import { chmodSync, existsSync, mkdirSync, readFileSync, renameSync, writeFileSync } from "node:fs";
|
|
19
19
|
import { dirname } from "node:path";
|
|
@@ -86,7 +86,7 @@ var activityRecorder = /* @__PURE__ */ __name((path, now = Date.now) => {
|
|
|
86
86
|
};
|
|
87
87
|
}, "activityRecorder");
|
|
88
88
|
|
|
89
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
89
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.501.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e6af10c98f87b1454255e560646d3ddf/node_modules/@wirecat/cli-core/dist/mcp/http/state.js
|
|
90
90
|
var ACCESS_SECONDS = 60 * 60;
|
|
91
91
|
var REFRESH_SECONDS = 30 * 24 * 60 * 60;
|
|
92
92
|
var readStored = /* @__PURE__ */ __name((path) => existsSync2(path) ? JSON.parse(readFileSync2(path, "utf8")) : { clients: [], tokens: [] }, "readStored");
|