@wirecat/cli-memo 0.131.44 → 0.131.45
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/memo.js +2 -2
- package/dist/bundle/{all-profiles-MFZPFIHO.js → all-profiles-ZBASDAVU.js} +5 -5
- package/dist/bundle/{anthropic-KJBO3FCU.js → anthropic-3ZS3RCUH.js} +3 -3
- package/dist/bundle/{app-server-A2XCJDGI.js → app-server-PQF22PMD.js} +35 -35
- package/dist/bundle/auto-NW7IP4ST.js +86 -0
- package/dist/bundle/{bun-BT7YVHDQ.js → bun-3CGVV3V2.js} +2 -2
- package/dist/bundle/{bun-sqlite-EG4TSO2G.js → bun-sqlite-D6T3ESTG.js} +2 -2
- package/dist/bundle/{chunk-5Q5JMJKP.js → chunk-25MS26SH.js} +14 -9
- package/dist/bundle/{chunk-2HHWU7GF.js → chunk-2OYB4PWV.js} +5 -5
- package/dist/bundle/{chunk-45LXRNPA.js → chunk-5IYS3BWO.js} +56 -56
- package/dist/bundle/{chunk-E454LAVZ.js → chunk-5ZHM6SZW.js} +1 -1
- package/dist/bundle/{chunk-NKAXCQNN.js → chunk-65MK55RS.js} +53 -44
- package/dist/bundle/{chunk-QNLXDR4W.js → chunk-6NQTGFAL.js} +2 -2
- package/dist/bundle/{chunk-GURLGLGY.js → chunk-75EEQB2R.js} +11 -11
- package/dist/bundle/{chunk-OK372VP3.js → chunk-75RJJQ2Q.js} +10 -10
- package/dist/bundle/{chunk-JFGPXSHH.js → chunk-7EA6M6RA.js} +4 -4
- package/dist/bundle/{chunk-EYKJXPDD.js → chunk-7G63XPDR.js} +7 -7
- package/dist/bundle/{chunk-6LXBT4F3.js → chunk-7G7N3IUO.js} +1 -1
- package/dist/bundle/{chunk-OBFWJJFV.js → chunk-7WJEQ36E.js} +2 -2
- package/dist/bundle/{chunk-7VXPMICZ.js → chunk-AOSSO4YI.js} +6 -6
- package/dist/bundle/{chunk-5OOASLTP.js → chunk-B4PZQYGP.js} +8 -8
- package/dist/bundle/{chunk-YGNKWWOX.js → chunk-C6GSSMDG.js} +1 -1
- package/dist/bundle/{chunk-SP7FRSAG.js → chunk-CAPDRDQU.js} +5 -5
- package/dist/bundle/{chunk-HQXTNBEY.js → chunk-CGJFYMVZ.js} +7 -7
- package/dist/bundle/{chunk-GWI3XFJR.js → chunk-CH37NCAP.js} +3 -3
- package/dist/bundle/{chunk-5HODYN65.js → chunk-CRLYBXV5.js} +31 -31
- package/dist/bundle/{chunk-Q2XEAF7Q.js → chunk-CXRCADXS.js} +9 -9
- package/dist/bundle/{chunk-NEQGFKOR.js → chunk-EJ2PEYQU.js} +1 -1
- package/dist/bundle/{chunk-NXCYAOYY.js → chunk-EJ4X6XH2.js} +1 -1
- package/dist/bundle/{chunk-BBT2TWCN.js → chunk-F2VTAFIT.js} +1 -1
- package/dist/bundle/{chunk-IKLSYWX7.js → chunk-FMMIPFTU.js} +4 -4
- package/dist/bundle/{chunk-GZCZKPUM.js → chunk-FRT7URL7.js} +623 -444
- package/dist/bundle/{chunk-POSVGIP5.js → chunk-G3FRUKAD.js} +258 -159
- package/dist/bundle/{chunk-Q2SZI7LP.js → chunk-G6TRTDHB.js} +2 -2
- package/dist/bundle/{chunk-OEOU4MLY.js → chunk-GBRK3WXY.js} +2 -2
- package/dist/bundle/{chunk-N6XUB5Z6.js → chunk-GOJZ3FQY.js} +20 -20
- package/dist/bundle/{chunk-XTLFCF35.js → chunk-GTPWWGQI.js} +7 -7
- package/dist/bundle/{chunk-MEO3B2OF.js → chunk-HAPE26JK.js} +12 -12
- package/dist/bundle/{chunk-T2NE3S47.js → chunk-HXCSD2XV.js} +1 -1
- package/dist/bundle/{chunk-T3ZQDLBU.js → chunk-IAPKZSC5.js} +1 -1
- package/dist/bundle/{chunk-BJS2EWG5.js → chunk-IJBJ47GI.js} +2 -2
- package/dist/bundle/{chunk-QZDSHJMZ.js → chunk-IQ2MW47B.js} +27 -27
- package/dist/bundle/{chunk-NXJZMS35.js → chunk-IYJGFBNN.js} +5 -5
- package/dist/bundle/{chunk-I6JHSNDD.js → chunk-KE3CYUON.js} +1 -1
- package/dist/bundle/{chunk-WJBLLOBC.js → chunk-L45FSDH3.js} +1 -1
- package/dist/bundle/{chunk-ZIRR4BJ5.js → chunk-LL3Z6KA3.js} +5 -5
- package/dist/bundle/{chunk-KD4A5HF6.js → chunk-MKVUBQEG.js} +1 -1
- package/dist/bundle/{chunk-KKDTX2LO.js → chunk-NB267XRJ.js} +4 -4
- package/dist/bundle/{chunk-4J6U4RIU.js → chunk-NBA3GJBR.js} +1011 -726
- package/dist/bundle/{chunk-SWE4LSXN.js → chunk-NTFEJ52I.js} +1 -1
- package/dist/bundle/{chunk-N4XNQ67E.js → chunk-OMBFF6Z6.js} +7 -1
- package/dist/bundle/{chunk-GTN4Z7XH.js → chunk-OT4CLMVF.js} +3 -3
- package/dist/bundle/{chunk-CJQYTFN6.js → chunk-OTOKJAYR.js} +3 -3
- package/dist/bundle/{chunk-WNZVZE3L.js → chunk-PMUAUR5S.js} +4 -4
- package/dist/bundle/{chunk-IXAHSLWQ.js → chunk-PXSGUVZP.js} +43 -43
- package/dist/bundle/{chunk-K6UTFYOL.js → chunk-SK3TPK5Y.js} +4 -4
- package/dist/bundle/{chunk-MQ66CMD3.js → chunk-TKFG75MJ.js} +2 -2
- package/dist/bundle/{chunk-TK6P24AN.js → chunk-TVZEELSS.js} +258 -257
- package/dist/bundle/{chunk-R2YMI2ZV.js → chunk-U4J7TAOW.js} +1 -1
- package/dist/bundle/{chunk-S4PKJOJP.js → chunk-UP2K5XUA.js} +3 -3
- package/dist/bundle/{chunk-GZTKZRWO.js → chunk-WGX73SAA.js} +2 -2
- package/dist/bundle/{chunk-X3PFDJSJ.js → chunk-YDNM5KYV.js} +4 -4
- package/dist/bundle/{chunk-O4VDVY67.js → chunk-YWTWDX4F.js} +1 -1
- package/dist/bundle/{chunk-XIZPBRIW.js → chunk-ZJXAYYLF.js} +1 -1
- package/dist/bundle/{command-contract-JJQE3MCP.js → command-contract-K3GJRRXT.js} +11 -11
- package/dist/bundle/{decode-AMWZXLFS.js → decode-TTMBMSGQ.js} +2 -2
- package/dist/bundle/{echarts-UCAIOY4N.js → echarts-7XN2RLJT.js} +2 -2
- package/dist/bundle/{embed-DYNZ4223.js → embed-UKTHDQH5.js} +3 -3
- package/dist/bundle/{embedder-XG344VNB.js → embedder-SCKLAVKW.js} +6 -6
- package/dist/bundle/{entry-CIUBRSDD.js → entry-VQRYB2HE.js} +4 -4
- package/dist/bundle/failure-JHW2U2OF.js +66 -0
- package/dist/bundle/{first-run-DFXU6DO2.js → first-run-RL6ZRY3Y.js} +5 -5
- package/dist/bundle/{first-screen-QDTJRHSS.js → first-screen-CRURWNKP.js} +12 -12
- package/dist/bundle/{instructions-MFAYYVVL.js → instructions-KGU67SPR.js} +1 -1
- package/dist/bundle/{mcp-5GUDJIDV.js → mcp-CSN7BDNG.js} +35 -35
- package/dist/bundle/memo.js +6 -6
- package/dist/bundle/{node-UILGGXFZ.js → node-S5LQLVMO.js} +2 -2
- package/dist/bundle/{node-sqlite-FJR5DRBC.js → node-sqlite-PFCIEDPX.js} +3 -3
- package/dist/bundle/{oauth-2WCGPG4N.js → oauth-KJOGYDPV.js} +4 -4
- package/dist/bundle/{open-I7ZYXOHK.js → open-TPBENKAD.js} +2 -2
- package/dist/bundle/{openai-4GB2FGUR.js → openai-UOYTHO32.js} +7 -7
- package/dist/bundle/{process-NRZZD4IS.js → process-JWKE7GPV.js} +1 -1
- package/dist/bundle/{program-HYJUSSU4.js → program-RJ6X4DXE.js} +451 -300
- package/dist/bundle/{prompt-F5RHTE7V.js → prompt-5HQ3Z7ZS.js} +2 -2
- package/dist/bundle/{recognize-UXXDJQEW.js → recognize-5ILXEPII.js} +1 -1
- package/dist/bundle/{remote-IW5FTICS.js → remote-WIN3HJII.js} +4 -4
- package/dist/bundle/{rerank-RRLNQ5C2.js → rerank-JKHDSEBI.js} +4 -4
- package/dist/bundle/{serve-GXJLUYCV.js → serve-VMHFRDYH.js} +6 -6
- package/dist/bundle/server-IBJ23GCB.js +48 -0
- package/dist/bundle/server-SNWCFMJN.js +61 -0
- package/dist/bundle/{server-646V4VPF.js → server-TKWVP4OJ.js} +50 -50
- package/dist/bundle/{state-3NLLRTD2.js → state-OWOLD7JI.js} +3 -3
- package/dist/bundle/{store-3DFD7E66.js → store-6GFFSNRY.js} +9 -9
- package/dist/bundle/store-maintenance-command-7DMPWFT4.js +48 -0
- package/dist/bundle/update-KSB7VYAW.js +69 -0
- package/dist/digest/command.d.ts.map +1 -1
- package/dist/digest/command.js +2 -1
- package/dist/digest/command.js.map +1 -1
- package/dist/digest/digest.d.ts +5 -0
- package/dist/digest/digest.d.ts.map +1 -1
- package/dist/digest/digest.js +19 -5
- package/dist/digest/digest.js.map +1 -1
- package/dist/digest/known.d.ts +7 -0
- package/dist/digest/known.d.ts.map +1 -0
- package/dist/digest/known.js +28 -0
- package/dist/digest/known.js.map +1 -0
- package/dist/digest/text.d.ts.map +1 -1
- package/dist/digest/text.js +13 -1
- package/dist/digest/text.js.map +1 -1
- package/dist/doctor/command.d.ts +1 -1
- package/dist/mail/findings-command.d.ts.map +1 -1
- package/dist/mail/findings-command.js +20 -3
- package/dist/mail/findings-command.js.map +1 -1
- package/dist/mail/findings-duplicates.d.ts +19 -0
- package/dist/mail/findings-duplicates.d.ts.map +1 -0
- package/dist/mail/findings-duplicates.js +159 -0
- package/dist/mail/findings-duplicates.js.map +1 -0
- package/dist/program.d.ts.map +1 -1
- package/dist/program.js +0 -63
- package/dist/program.js.map +1 -1
- package/dist/reasons.d.ts.map +1 -1
- package/dist/reasons.js +6 -0
- package/dist/reasons.js.map +1 -1
- package/dist/search/command.d.ts.map +1 -1
- package/dist/search/command.js +3 -1
- package/dist/search/command.js.map +1 -1
- package/dist/search/search.d.ts.map +1 -1
- package/dist/search/search.js +10 -2
- package/dist/search/search.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +3 -3
- package/skills/cli-memo/SKILL.md +3 -1
- package/skills/morning-digest/SKILL.md +5 -4
- package/dist/bundle/auto-W3BUP6YI.js +0 -86
- package/dist/bundle/failure-JTQUF4RT.js +0 -66
- package/dist/bundle/server-DJUCOKNC.js +0 -48
- package/dist/bundle/server-ITBSOGIC.js +0 -61
- package/dist/bundle/store-maintenance-command-D7O6QCVF.js +0 -48
- package/dist/bundle/update-GQFRQVAV.js +0 -69
- /package/dist/bundle/{chunk-NJG67ZXD.js → chunk-DL5LDAOS.js} +0 -0
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
refuseLacking,
|
|
14
14
|
servicesFor,
|
|
15
15
|
throughWrapper
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-TVZEELSS.js";
|
|
17
17
|
import {
|
|
18
18
|
CEILING_KEY,
|
|
19
19
|
LOG_ATTRIBUTES,
|
|
@@ -38,21 +38,21 @@ import {
|
|
|
38
38
|
rememberAccount,
|
|
39
39
|
rootOf2 as rootOf,
|
|
40
40
|
skipFlagFor
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-G3FRUKAD.js";
|
|
42
42
|
import {
|
|
43
43
|
isCliFailure,
|
|
44
44
|
providerErrorKey
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-7G63XPDR.js";
|
|
46
46
|
import {
|
|
47
47
|
MESSENGER_CHANGE_REFUSAL,
|
|
48
48
|
readOnlyRefusal
|
|
49
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-F2VTAFIT.js";
|
|
50
50
|
import {
|
|
51
51
|
servingProfiles
|
|
52
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-TKFG75MJ.js";
|
|
53
53
|
import {
|
|
54
54
|
openStore
|
|
55
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-NBA3GJBR.js";
|
|
56
56
|
import {
|
|
57
57
|
logRecordOf,
|
|
58
58
|
realSleep,
|
|
@@ -66,7 +66,7 @@ import {
|
|
|
66
66
|
__name
|
|
67
67
|
} from "./chunk-ZVVMGPBJ.js";
|
|
68
68
|
|
|
69
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
69
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/cli/messenger/ask.js
|
|
70
70
|
import { openSync } from "node:fs";
|
|
71
71
|
import { createInterface } from "node:readline";
|
|
72
72
|
import { ReadStream } from "node:tty";
|
|
@@ -121,10 +121,10 @@ var terminalAsker = /* @__PURE__ */ __name((command) => async (key, request) =>
|
|
|
121
121
|
throw new CliError("cancelled", `${key}: not done \u2014 the answer was no`);
|
|
122
122
|
}, "terminalAsker");
|
|
123
123
|
|
|
124
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
124
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/sends/guard.js
|
|
125
125
|
import { randomUUID } from "node:crypto";
|
|
126
126
|
|
|
127
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
127
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/sends/flood.js
|
|
128
128
|
import { mkdirSync, readFileSync, renameSync, writeFileSync } from "node:fs";
|
|
129
129
|
import { dirname, join } from "node:path";
|
|
130
130
|
var MOST_DEADLINES = 50;
|
|
@@ -208,11 +208,11 @@ var FloodMemory = class {
|
|
|
208
208
|
}
|
|
209
209
|
};
|
|
210
210
|
|
|
211
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
211
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/sends/journal.js
|
|
212
212
|
import { appendFileSync, mkdirSync as mkdirSync3, readFileSync as readFileSync2 } from "node:fs";
|
|
213
213
|
import { dirname as dirname3, join as join2 } from "node:path";
|
|
214
214
|
|
|
215
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
215
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/sends/file-lock.js
|
|
216
216
|
import { closeSync, mkdirSync as mkdirSync2, openSync as openSync2, statSync, unlinkSync } from "node:fs";
|
|
217
217
|
import { dirname as dirname2 } from "node:path";
|
|
218
218
|
var LOCK_WAIT_MS = 5e3;
|
|
@@ -279,7 +279,7 @@ var lockTime = /* @__PURE__ */ __name((lock) => {
|
|
|
279
279
|
}
|
|
280
280
|
}, "lockTime");
|
|
281
281
|
|
|
282
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
282
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/sends/journal.js
|
|
283
283
|
var sendsPathFor = /* @__PURE__ */ __name((app, profile, env = process.env) => join2(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "sends", `${profile}.jsonl`), "sendsPathFor");
|
|
284
284
|
var SendJournal = class {
|
|
285
285
|
static {
|
|
@@ -356,7 +356,7 @@ var withSendId = /* @__PURE__ */ __name((entry) => {
|
|
|
356
356
|
return cid === void 0 || rest.sendId !== void 0 ? rest : { ...rest, sendId: String(cid) };
|
|
357
357
|
}, "withSendId");
|
|
358
358
|
|
|
359
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
359
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/sends/recipients.js
|
|
360
360
|
import { existsSync, readFileSync as readFileSync3, rmSync } from "node:fs";
|
|
361
361
|
import { join as join3 } from "node:path";
|
|
362
362
|
var recipientsPathFor = /* @__PURE__ */ __name((app, profile, env = process.env) => join3(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "profiles", `${profile}.recipients.json`), "recipientsPathFor");
|
|
@@ -468,7 +468,7 @@ var RecipientList = class {
|
|
|
468
468
|
}
|
|
469
469
|
};
|
|
470
470
|
|
|
471
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
471
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/sends/guard.js
|
|
472
472
|
var HOUR_MS = 60 * 60 * 1e3;
|
|
473
473
|
var READS_UNDER_HOLD = /* @__PURE__ */ new Set([
|
|
474
474
|
"attachments.extract",
|
|
@@ -661,7 +661,7 @@ var guardFor = /* @__PURE__ */ __name((app, settings, warn, env = process.env, a
|
|
|
661
661
|
}), "guardFor");
|
|
662
662
|
var journalFailure = /* @__PURE__ */ __name((error) => error?.code ?? (error instanceof Error ? error.name : "error"), "journalFailure");
|
|
663
663
|
|
|
664
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
664
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/sends/pace.js
|
|
665
665
|
import { readFileSync as readFileSync4, renameSync as renameSync2, writeFileSync as writeFileSync2 } from "node:fs";
|
|
666
666
|
import { join as join4 } from "node:path";
|
|
667
667
|
var DEFAULT_PACE = { perMinute: 60, burst: 20 };
|
|
@@ -719,8 +719,39 @@ var Pacer = class {
|
|
|
719
719
|
renameSync2(temporary, this.path);
|
|
720
720
|
}
|
|
721
721
|
};
|
|
722
|
+
var ANNOUNCE_WAIT_MS = 5e3;
|
|
723
|
+
var LONGEST_PACE_WAIT_MS = 5 * 6e4;
|
|
724
|
+
var waitForTurn = /* @__PURE__ */ __name(async (pacer, options) => {
|
|
725
|
+
const { name, operation, warn } = options;
|
|
726
|
+
const now = options.now ?? Date.now;
|
|
727
|
+
let at = now();
|
|
728
|
+
try {
|
|
729
|
+
at = await pacer.reserve();
|
|
730
|
+
} catch (error) {
|
|
731
|
+
warn?.(`could not remember ${name}'s wait (${error instanceof Error ? error.message : String(error)})`, {
|
|
732
|
+
event: "warning",
|
|
733
|
+
code: "wait_not_remembered",
|
|
734
|
+
operation
|
|
735
|
+
});
|
|
736
|
+
}
|
|
737
|
+
const waitMs = at - now();
|
|
738
|
+
if (waitMs <= 0)
|
|
739
|
+
return;
|
|
740
|
+
if (waitMs > LONGEST_PACE_WAIT_MS)
|
|
741
|
+
throw new CliError("rate_limited", `${name} asked this profile to wait, ${Math.ceil(waitMs / 1e3)} s are left \u2014 nothing was sent to ${name}`, { retry_after_ms: waitMs, retry_at: new Date(at).toISOString(), remembered: true });
|
|
742
|
+
if (waitMs >= ANNOUNCE_WAIT_MS) {
|
|
743
|
+
const seconds = Math.ceil(waitMs / 1e3);
|
|
744
|
+
warn?.(`waiting ${seconds} s to keep this profile's pace with ${name}`, {
|
|
745
|
+
event: "warning",
|
|
746
|
+
code: "pace_wait",
|
|
747
|
+
operation,
|
|
748
|
+
counts: { seconds }
|
|
749
|
+
});
|
|
750
|
+
}
|
|
751
|
+
await (options.sleep ?? ((ms) => new Promise((resolve) => setTimeout(resolve, ms))))(waitMs);
|
|
752
|
+
}, "waitForTurn");
|
|
722
753
|
|
|
723
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
754
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/cli/permission-keys.js
|
|
724
755
|
var pathOf = /* @__PURE__ */ __name((command) => {
|
|
725
756
|
const words = [];
|
|
726
757
|
for (let at = command; at?.parent; at = at.parent)
|
|
@@ -780,12 +811,10 @@ var refuseUnknownPermissionKeys = /* @__PURE__ */ __name((command, settings, too
|
|
|
780
811
|
throw new CliError("validation_error", `--permission ${key} names no command`, { permission: key });
|
|
781
812
|
}, "refuseUnknownPermissionKeys");
|
|
782
813
|
|
|
783
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
814
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/cli/messenger/flooded.js
|
|
784
815
|
var LONG_LIVED = /* @__PURE__ */ new Set(["self", "newSendId", "close", "formatMarkdown", "formatHtml", "storedChats"]);
|
|
785
816
|
var LISTENING = /* @__PURE__ */ new Set(["watch", "feed", "listen", "listenHistory"]);
|
|
786
817
|
var BLOCKING = /* @__PURE__ */ new Set(["frozen", "limited", "banned"]);
|
|
787
|
-
var ANNOUNCE_WAIT_MS = 5e3;
|
|
788
|
-
var LONGEST_PACE_WAIT_MS = 5 * 6e4;
|
|
789
818
|
var chatOf = /* @__PURE__ */ __name((args) => typeof args[0] === "string" && /^-?\d+$/.test(args[0]) ? args[0] : void 0, "chatOf");
|
|
790
819
|
var flooded = /* @__PURE__ */ __name((messenger, memory, { name, warn, pacer }) => {
|
|
791
820
|
const kept = /* @__PURE__ */ __name(async (operation, what2) => {
|
|
@@ -841,28 +870,8 @@ var flooded = /* @__PURE__ */ __name((messenger, memory, { name, warn, pacer })
|
|
|
841
870
|
await kept(operation, () => pacer.holdFor(waitMs));
|
|
842
871
|
}, "noted");
|
|
843
872
|
const turn = /* @__PURE__ */ __name(async (operation) => {
|
|
844
|
-
if (
|
|
845
|
-
|
|
846
|
-
let at = Date.now();
|
|
847
|
-
await kept(operation, async () => {
|
|
848
|
-
at = await pacer.reserve();
|
|
849
|
-
});
|
|
850
|
-
const waitMs = at - Date.now();
|
|
851
|
-
if (waitMs <= 0)
|
|
852
|
-
return;
|
|
853
|
-
if (waitMs > LONGEST_PACE_WAIT_MS) {
|
|
854
|
-
throw new CliError("rate_limited", `${name} asked this profile to wait, ${Math.ceil(waitMs / 1e3)} s are left \u2014 nothing was sent to ${name}`, { retry_after_ms: waitMs, retry_at: new Date(at).toISOString(), remembered: true });
|
|
855
|
-
}
|
|
856
|
-
if (waitMs >= ANNOUNCE_WAIT_MS) {
|
|
857
|
-
const seconds = Math.ceil(waitMs / 1e3);
|
|
858
|
-
warn(`waiting ${seconds} s to keep this profile's pace with ${name}`, {
|
|
859
|
-
event: "warning",
|
|
860
|
-
code: "pace_wait",
|
|
861
|
-
operation,
|
|
862
|
-
counts: { seconds }
|
|
863
|
-
});
|
|
864
|
-
}
|
|
865
|
-
await new Promise((resolve) => setTimeout(resolve, waitMs));
|
|
873
|
+
if (pacer)
|
|
874
|
+
await waitForTurn(pacer, { name, operation, warn });
|
|
866
875
|
}, "turn");
|
|
867
876
|
return throughWrapper(messenger, {}, (operation, call) => {
|
|
868
877
|
if (LONG_LIVED.has(operation))
|
|
@@ -899,7 +908,7 @@ var flooded = /* @__PURE__ */ __name((messenger, memory, { name, warn, pacer })
|
|
|
899
908
|
});
|
|
900
909
|
}, "flooded");
|
|
901
910
|
|
|
902
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
911
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/cli/messenger/observed.js
|
|
903
912
|
var observed = /* @__PURE__ */ __name((messenger, events) => {
|
|
904
913
|
const timed = /* @__PURE__ */ __name(async (operation, named, work, after) => {
|
|
905
914
|
const write = currentOperation();
|
|
@@ -998,7 +1007,7 @@ var byPart = /* @__PURE__ */ __name((batch, counts) => {
|
|
|
998
1007
|
counts[part] = (counts[part] ?? 0) + items.length;
|
|
999
1008
|
}, "byPart");
|
|
1000
1009
|
|
|
1001
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1010
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/cli/messenger/stored.js
|
|
1002
1011
|
var REKEY_PACING = { lockMs: 50, pauseMs: 25 };
|
|
1003
1012
|
var stored = /* @__PURE__ */ __name((messenger, { account, store, warn, events, pending, announcing, deletedWithoutChat, profile, rekeyed, rekeyPacing = REKEY_PACING, closing, namesFromStore, recipientIds, countsUnread = false, historyLimits, command = "cli" }) => {
|
|
1004
1013
|
let warned = false;
|
|
@@ -1574,7 +1583,7 @@ var keep = /* @__PURE__ */ __name(async (store, account, event, seenAt, among, c
|
|
|
1574
1583
|
}
|
|
1575
1584
|
}, "keep");
|
|
1576
1585
|
|
|
1577
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1586
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/cli/messenger/context.js
|
|
1578
1587
|
var lazyStore = /* @__PURE__ */ __name((env, command, version) => {
|
|
1579
1588
|
let opened;
|
|
1580
1589
|
return {
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
MAX_SECRET_INPUT,
|
|
5
5
|
bufferedInput,
|
|
6
6
|
inputPolicy
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-YWTWDX4F.js";
|
|
8
8
|
import {
|
|
9
9
|
CliError
|
|
10
10
|
} from "./chunk-RZ54DSVU.js";
|
|
@@ -12,7 +12,7 @@ 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.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/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 } = {}) => {
|
|
@@ -7,10 +7,10 @@ import {
|
|
|
7
7
|
agentJson,
|
|
8
8
|
commandAvailability,
|
|
9
9
|
failureContext
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-25MS26SH.js";
|
|
11
11
|
import {
|
|
12
12
|
callerOf
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-WGX73SAA.js";
|
|
14
14
|
import {
|
|
15
15
|
QUERY_ARGUMENT,
|
|
16
16
|
lentConnection,
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
refuseLacking,
|
|
19
19
|
servicesFor,
|
|
20
20
|
storeModeDeps
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-TVZEELSS.js";
|
|
22
22
|
import {
|
|
23
23
|
DEFAULT_OUTPUT_BYTES,
|
|
24
24
|
ENTITIES,
|
|
@@ -42,19 +42,19 @@ import {
|
|
|
42
42
|
sealed,
|
|
43
43
|
startRecording,
|
|
44
44
|
traceOf
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-G3FRUKAD.js";
|
|
46
46
|
import {
|
|
47
47
|
currentCaller,
|
|
48
48
|
keepsSuccess,
|
|
49
49
|
runContextOf,
|
|
50
50
|
withCaller
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-7G63XPDR.js";
|
|
52
52
|
import {
|
|
53
53
|
queryDescription
|
|
54
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-5IYS3BWO.js";
|
|
55
55
|
import {
|
|
56
56
|
MAX_BUFFERED_INPUT
|
|
57
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-YWTWDX4F.js";
|
|
58
58
|
import {
|
|
59
59
|
captureStreams,
|
|
60
60
|
traceIdOf
|
|
@@ -106,7 +106,7 @@ import {
|
|
|
106
106
|
__name
|
|
107
107
|
} from "./chunk-ZVVMGPBJ.js";
|
|
108
108
|
|
|
109
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
109
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/mcp/agent.js
|
|
110
110
|
import { Readable } from "node:stream";
|
|
111
111
|
|
|
112
112
|
// node_modules/.pnpm/@wirecat+cli-base@0.78.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
|
|
@@ -2861,7 +2861,7 @@ var VOCABULARY = defineVocabulary({
|
|
|
2861
2861
|
flags: [...HOW_FLAGS, ...WHAT_FLAGS, ...CALENDAR_FLAGS, ...MAIL_FLAGS]
|
|
2862
2862
|
});
|
|
2863
2863
|
|
|
2864
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2864
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/mcp/agent.js
|
|
2865
2865
|
var TYPES = new Map(VOCABULARY.flags.map((flag) => [flag.name, flag.type]));
|
|
2866
2866
|
var snake = /* @__PURE__ */ __name((name) => name.replaceAll("|", "_or_").replace(/[^a-z0-9]+/gi, "_"), "snake");
|
|
2867
2867
|
var longOf = /* @__PURE__ */ __name((option) => option.flags.match(/--[a-z0-9][a-z0-9-]*/)?.[0], "longOf");
|
|
@@ -3084,7 +3084,7 @@ var runCommandForAgent = /* @__PURE__ */ __name(async (program, path, input, ctx
|
|
|
3084
3084
|
}
|
|
3085
3085
|
}, "runCommandForAgent");
|
|
3086
3086
|
|
|
3087
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3087
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/mcp/tool.js
|
|
3088
3088
|
var limit = optional(pipe(number(), integer(), minValue(1), maxValue(100), description("how many")));
|
|
3089
3089
|
var page = optional(pipe(number(), integer(), minValue(1), description("which page, from 1")));
|
|
3090
3090
|
var message = pipe(
|
|
@@ -3343,7 +3343,7 @@ var failed = /* @__PURE__ */ __name((error, errors, effects) => {
|
|
|
3343
3343
|
return mcpErrorResult(JSON.parse(agentJson(errorObjectOf(error, context))));
|
|
3344
3344
|
}, "failed");
|
|
3345
3345
|
|
|
3346
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3346
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/mcp/surface.js
|
|
3347
3347
|
import { randomUUID } from "node:crypto";
|
|
3348
3348
|
var MATCHES = 8;
|
|
3349
3349
|
var ANSWER = answerSchema();
|
|
@@ -8,17 +8,17 @@ import {
|
|
|
8
8
|
readSetupAnswers,
|
|
9
9
|
unanswered,
|
|
10
10
|
writeSetupAnswers
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-UP2K5XUA.js";
|
|
12
12
|
import {
|
|
13
13
|
DEFAULT_STEMMERS,
|
|
14
14
|
LANGUAGES
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-CGJFYMVZ.js";
|
|
16
16
|
import {
|
|
17
17
|
sharedConfigPath
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-YDNM5KYV.js";
|
|
19
19
|
import {
|
|
20
20
|
storePath
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-U4J7TAOW.js";
|
|
22
22
|
import {
|
|
23
23
|
installerOf
|
|
24
24
|
} from "./chunk-CID4MNRQ.js";
|
|
@@ -26,7 +26,7 @@ import {
|
|
|
26
26
|
__name
|
|
27
27
|
} from "./chunk-ZVVMGPBJ.js";
|
|
28
28
|
|
|
29
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/cli/first-run.js
|
|
30
30
|
import { spawnSync } from "node:child_process";
|
|
31
31
|
import { accessSync, constants, realpathSync } from "node:fs";
|
|
32
32
|
import { delimiter, join } from "node:path";
|
|
@@ -84,7 +84,7 @@ var suggested = /* @__PURE__ */ __name((env, contentLanguages) => {
|
|
|
84
84
|
return (own.length ? own : LANGUAGES.filter(({ code }) => code === "en" || code === system)).map(({ name }) => name);
|
|
85
85
|
}, "suggested");
|
|
86
86
|
var askLanguages = /* @__PURE__ */ __name(async ({ command, env, io, contentLanguages }) => {
|
|
87
|
-
const { openStore } = await import("./store-
|
|
87
|
+
const { openStore } = await import("./store-6GFFSNRY.js");
|
|
88
88
|
const store = await openStore({ env });
|
|
89
89
|
let rebuild = false;
|
|
90
90
|
try {
|
|
@@ -113,8 +113,8 @@ var askLanguages = /* @__PURE__ */ __name(async ({ command, env, io, contentLang
|
|
|
113
113
|
if (!rebuild)
|
|
114
114
|
return;
|
|
115
115
|
const [{ openCache }, { buildStems }] = await Promise.all([
|
|
116
|
-
import("./open-
|
|
117
|
-
import("./store-maintenance-command-
|
|
116
|
+
import("./open-TPBENKAD.js"),
|
|
117
|
+
import("./store-maintenance-command-7DMPWFT4.js")
|
|
118
118
|
]);
|
|
119
119
|
const database = await openCache(storePath(env));
|
|
120
120
|
try {
|
|
@@ -126,7 +126,7 @@ var askLanguages = /* @__PURE__ */ __name(async ({ command, env, io, contentLang
|
|
|
126
126
|
var askTools = /* @__PURE__ */ __name(async (run) => {
|
|
127
127
|
const { command, env, io } = run;
|
|
128
128
|
const installed = run.installed ?? ((name) => onPath(name, env));
|
|
129
|
-
const { WIRECAT_TOOLS } = await import("./first-screen-
|
|
129
|
+
const { WIRECAT_TOOLS } = await import("./first-screen-CRURWNKP.js");
|
|
130
130
|
const others = WIRECAT_TOOLS.filter((tool) => tool.command !== command);
|
|
131
131
|
const missing = others.filter((tool) => !installed(tool.command));
|
|
132
132
|
io.say("Other WireCat tools \u2014 they share this store, so one search finds everything:");
|
|
@@ -199,7 +199,7 @@ var setupAtStart = /* @__PURE__ */ __name(async (start) => {
|
|
|
199
199
|
contentLanguages: start.contentLanguages,
|
|
200
200
|
all: start.path[0] === "setup",
|
|
201
201
|
io: {
|
|
202
|
-
ask: /* @__PURE__ */ __name(async (prompt) => (await import("./prompt-
|
|
202
|
+
ask: /* @__PURE__ */ __name(async (prompt) => (await import("./prompt-5HQ3Z7ZS.js")).readSecret(prompt, { input, echo: true }), "ask"),
|
|
203
203
|
say: /* @__PURE__ */ __name((text) => process.stderr.write(`${text}
|
|
204
204
|
`), "say")
|
|
205
205
|
}
|
|
@@ -3,21 +3,21 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
answers,
|
|
5
5
|
itemAnswer
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-PMUAUR5S.js";
|
|
7
7
|
import {
|
|
8
8
|
loadConfig,
|
|
9
9
|
updateConfig
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-CRLYBXV5.js";
|
|
11
11
|
import {
|
|
12
12
|
failingNotice,
|
|
13
13
|
recordRun
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-FRT7URL7.js";
|
|
15
15
|
import {
|
|
16
16
|
InvalidArgumentError,
|
|
17
17
|
LOCAL_READ,
|
|
18
18
|
LOCAL_WRITE,
|
|
19
19
|
annotate
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-G3FRUKAD.js";
|
|
21
21
|
import {
|
|
22
22
|
installerOf
|
|
23
23
|
} from "./chunk-CID4MNRQ.js";
|
|
@@ -3,7 +3,7 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
secretNamed,
|
|
5
5
|
withoutSecrets
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-EJ4X6XH2.js";
|
|
7
7
|
import {
|
|
8
8
|
isContentKey
|
|
9
9
|
} from "./chunk-2R2Z2VWL.js";
|
|
@@ -14,18 +14,18 @@ import {
|
|
|
14
14
|
__name
|
|
15
15
|
} from "./chunk-ZVVMGPBJ.js";
|
|
16
16
|
|
|
17
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/runs/run-context.js
|
|
18
18
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
19
19
|
import { createHash } from "node:crypto";
|
|
20
20
|
|
|
21
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/runs/error-detail.js
|
|
22
22
|
import { homedir } from "node:os";
|
|
23
23
|
|
|
24
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/errors/failures.js
|
|
25
25
|
var isCliFailure = /* @__PURE__ */ __name((value) => value instanceof Error && value.name === "CliError" && errorCodes.includes(value.code), "isCliFailure");
|
|
26
26
|
var failureKey = /* @__PURE__ */ __name((error) => isCliFailure(error) ? error.code : error instanceof Error ? error.name : "error", "failureKey");
|
|
27
27
|
|
|
28
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/runs/events.js
|
|
29
29
|
var providerErrorKey = /* @__PURE__ */ __name((value) => typeof value === "string" && /^[A-Za-z][A-Za-z0-9._-]{0,63}$/.test(value) ? value : void 0, "providerErrorKey");
|
|
30
30
|
var renderEvent = /* @__PURE__ */ __name((event) => {
|
|
31
31
|
if (event.event === "warning") {
|
|
@@ -73,7 +73,7 @@ var MARK = { request: "\u2192", response: "\u2190", cache: "\u2022", warning: "!
|
|
|
73
73
|
var age = /* @__PURE__ */ __name((ms) => ms < 1e3 ? `${ms}ms` : `${Math.round(ms / 1e3)}s`, "age");
|
|
74
74
|
var size = /* @__PURE__ */ __name((bytes) => bytes < 1e3 ? `${bytes} B` : `${(bytes / 1e3).toFixed(1)} kB`, "size");
|
|
75
75
|
|
|
76
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
76
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/runs/error-detail.js
|
|
77
77
|
var MESSAGE_AT_MOST = 500;
|
|
78
78
|
var CAUSES_AT_MOST = 5;
|
|
79
79
|
var FRAMES_AT_MOST = 15;
|
|
@@ -182,7 +182,7 @@ var redactText = /* @__PURE__ */ __name((text) => {
|
|
|
182
182
|
return out.length > MESSAGE_AT_MOST ? `${out.slice(0, MESSAGE_AT_MOST)}\u2026` : out;
|
|
183
183
|
}, "redactText");
|
|
184
184
|
|
|
185
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
185
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/runs/run-context.js
|
|
186
186
|
var REDACTED = "[redacted]";
|
|
187
187
|
var keepsSuccess = /* @__PURE__ */ __name(({ record, fromFlag, env, caller, persistent = false }) => {
|
|
188
188
|
if (!record)
|
|
@@ -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.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/store/driver.js
|
|
8
8
|
var TIME_LIMIT_FUNCTION = "wc_time_limit";
|
|
9
9
|
var TimeLimitReached = class extends Error {
|
|
10
10
|
static {
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
describeOptions,
|
|
8
8
|
keyForCommand,
|
|
9
9
|
metaOf
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-G3FRUKAD.js";
|
|
11
11
|
import {
|
|
12
12
|
jsonSchemaOf
|
|
13
13
|
} from "./chunk-SN63VOE6.js";
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
__name
|
|
19
19
|
} from "./chunk-ZVVMGPBJ.js";
|
|
20
20
|
|
|
21
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/cli/command-contract.js
|
|
22
22
|
var SCHEMA_DIALECT = "https://json-schema.org/draft/2020-12/schema";
|
|
23
23
|
var outputOf = /* @__PURE__ */ __name((command) => {
|
|
24
24
|
const entity = answerEntitySchema(command);
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
commandPathOf,
|
|
8
8
|
findCommand,
|
|
9
9
|
outputOf
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-7WJEQ36E.js";
|
|
11
11
|
import {
|
|
12
12
|
Command,
|
|
13
13
|
Help,
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
environmentOf,
|
|
19
19
|
metaOf,
|
|
20
20
|
takesProfile
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-G3FRUKAD.js";
|
|
22
22
|
import {
|
|
23
23
|
writes
|
|
24
24
|
} from "./chunk-SN63VOE6.js";
|
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
__name
|
|
30
30
|
} from "./chunk-ZVVMGPBJ.js";
|
|
31
31
|
|
|
32
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/cli/help/sections.js
|
|
33
33
|
var SECTIONS = {
|
|
34
34
|
read: "Read",
|
|
35
35
|
write: "Write",
|
|
@@ -94,7 +94,7 @@ var CORE_SECTIONS = {
|
|
|
94
94
|
upgrade: "setup"
|
|
95
95
|
};
|
|
96
96
|
|
|
97
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
97
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/cli/help/commands-text.js
|
|
98
98
|
var DESCRIPTION = 90;
|
|
99
99
|
var COLUMN = 52;
|
|
100
100
|
var short = /* @__PURE__ */ __name((text) => {
|
|
@@ -133,7 +133,7 @@ var commandsText = /* @__PURE__ */ __name((root, commands, scope) => {
|
|
|
133
133
|
`;
|
|
134
134
|
}, "commandsText");
|
|
135
135
|
|
|
136
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
136
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/cli/help/command-help.js
|
|
137
137
|
var ARGUMENT_KINDS = {
|
|
138
138
|
chat: "chat",
|
|
139
139
|
chats: "chat",
|
|
@@ -325,7 +325,7 @@ var installCommandHelp = /* @__PURE__ */ __name((program, { profile = true } = {
|
|
|
325
325
|
command.addHelpText("after", () => commandHelpText(command));
|
|
326
326
|
}, "installCommandHelp");
|
|
327
327
|
|
|
328
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
328
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/cli/help/first-screen.js
|
|
329
329
|
var WIRECAT_TOOLS = [
|
|
330
330
|
{
|
|
331
331
|
command: "tg",
|
|
@@ -2,21 +2,21 @@ 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-HXCSD2XV.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-75EEQB2R.js";
|
|
13
13
|
import {
|
|
14
14
|
agentJson,
|
|
15
15
|
skillResource
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-25MS26SH.js";
|
|
17
17
|
import {
|
|
18
18
|
callerOf
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-WGX73SAA.js";
|
|
20
20
|
import {
|
|
21
21
|
serveStdio
|
|
22
22
|
} from "./chunk-MM5NVP7F.js";
|
|
@@ -25,17 +25,17 @@ import {
|
|
|
25
25
|
} from "./chunk-H3ZN4YLB.js";
|
|
26
26
|
import {
|
|
27
27
|
wholeList
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-TVZEELSS.js";
|
|
29
29
|
import {
|
|
30
30
|
changesMessenger,
|
|
31
31
|
flatten,
|
|
32
32
|
itemOf
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-G3FRUKAD.js";
|
|
34
34
|
import {
|
|
35
35
|
MESSENGER_CHANGE_REFUSAL,
|
|
36
36
|
readOnlyLockOf,
|
|
37
37
|
readOnlyRefusal
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-F2VTAFIT.js";
|
|
39
39
|
import {
|
|
40
40
|
mcpErrorResult,
|
|
41
41
|
object
|
|
@@ -44,7 +44,7 @@ import {
|
|
|
44
44
|
__name
|
|
45
45
|
} from "./chunk-ZVVMGPBJ.js";
|
|
46
46
|
|
|
47
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
47
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/mcp/bot/server.js
|
|
48
48
|
import { randomUUID } from "node:crypto";
|
|
49
49
|
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");
|
|
50
50
|
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.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/store/sqlite/drizzle/shared-55XJMTPA.js
|
|
8
8
|
var entityKind = /* @__PURE__ */ Symbol.for("drizzle:entityKind");
|
|
9
9
|
var kindsByConstructor = /* @__PURE__ */ new WeakMap();
|
|
10
10
|
function collectKinds(ctor) {
|