@wirecat/cli-memo 0.131.66 → 0.131.67
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-CWV6RUGR.js → all-profiles-W3GRNNLJ.js} +6 -6
- package/dist/bundle/{anthropic-OIVOFYZY.js → anthropic-GWMYHBO4.js} +3 -3
- package/dist/bundle/{app-server-2APNY5WO.js → app-server-RQ26EXNI.js} +37 -37
- package/dist/bundle/auto-FR6LX5KO.js +85 -0
- package/dist/bundle/{bun-7ZKANZII.js → bun-KKLPQTG5.js} +2 -2
- package/dist/bundle/{bun-sqlite-M2EHGYBI.js → bun-sqlite-WKIZJNTG.js} +3 -3
- package/dist/bundle/{chunk-R4LVHS2N.js → chunk-32ROGX5N.js} +1 -1
- package/dist/bundle/{chunk-2SIOUXJ7.js → chunk-4C6RU7DG.js} +5 -5
- package/dist/bundle/{chunk-OO6SA2FM.js → chunk-4JTCNMW6.js} +1 -1
- package/dist/bundle/{chunk-75MWX5PK.js → chunk-6SFTVGNL.js} +1 -1
- package/dist/bundle/{chunk-GL74QTTV.js → chunk-7DANHJF6.js} +35 -33
- package/dist/bundle/{chunk-UCLZMKTT.js → chunk-7IKET6ES.js} +2 -2
- package/dist/bundle/{chunk-KOJN4WTN.js → chunk-7KYVUVDS.js} +2 -2
- package/dist/bundle/{chunk-QWP6RJFR.js → chunk-7OMKWYFN.js} +34 -11
- package/dist/bundle/{chunk-2QIM6246.js → chunk-AGNWFOAJ.js} +1 -1
- package/dist/bundle/{chunk-BF4SX6DP.js → chunk-BOOEDDVY.js} +76 -62
- package/dist/bundle/{chunk-M76ZJSPA.js → chunk-CQNYBTWP.js} +3 -3
- package/dist/bundle/{chunk-JSFC6TRN.js → chunk-DNDELSVT.js} +5 -5
- package/dist/bundle/{chunk-CUC7KGX4.js → chunk-DNS2QWK3.js} +3 -3
- package/dist/bundle/{chunk-KU4TU5XZ.js → chunk-ECMYCWG2.js} +2 -2
- package/dist/bundle/{chunk-22XVNJQP.js → chunk-FBSHWCIZ.js} +9 -9
- package/dist/bundle/{chunk-DNXPQGFB.js → chunk-GHN2KYMO.js} +21 -21
- package/dist/bundle/{chunk-ADDDSIRN.js → chunk-GJ3P7RJF.js} +5 -5
- package/dist/bundle/{chunk-IGXIPABG.js → chunk-GU3MRYK2.js} +1 -1
- package/dist/bundle/{chunk-LRQD4RJN.js → chunk-GUWRR7F2.js} +2 -2
- package/dist/bundle/{chunk-637JEJOC.js → chunk-HUPZ6XYH.js} +2 -2
- package/dist/bundle/{chunk-CRRBBPJK.js → chunk-IKZBO7NV.js} +1486 -1148
- package/dist/bundle/{chunk-P2MMAW3A.js → chunk-JEKIBI7P.js} +5 -5
- package/dist/bundle/{chunk-GO73V5BC.js → chunk-JG7EDH7K.js} +1 -1
- package/dist/bundle/{chunk-4U2IONIS.js → chunk-LJCT7YG6.js} +1 -1
- package/dist/bundle/{chunk-HB7WN6MX.js → chunk-MCA265JM.js} +7 -1
- package/dist/bundle/{chunk-LEL6NYM5.js → chunk-MLF5FLAP.js} +4 -4
- package/dist/bundle/{chunk-EI5IEOXD.js → chunk-NNUJWCEJ.js} +1 -1
- package/dist/bundle/{chunk-LDPNN4ED.js → chunk-ORKWFXWV.js} +11 -11
- package/dist/bundle/{chunk-IDBN5CTG.js → chunk-OU4PN7PF.js} +7 -7
- package/dist/bundle/{chunk-WDVYPHNV.js → chunk-OUSLPKWY.js} +1 -1
- package/dist/bundle/{chunk-DMC3NDG7.js → chunk-PBOVHHYG.js} +8 -8
- package/dist/bundle/{chunk-B3ZXE2IH.js → chunk-Q4JYHQ47.js} +10870 -10866
- package/dist/bundle/{chunk-MEPRCROV.js → chunk-QCWA3JUT.js} +2 -2
- package/dist/bundle/{chunk-XMGUKW6Y.js → chunk-QFSMJTEA.js} +2 -2
- package/dist/bundle/{chunk-HUJ666OW.js → chunk-QMTCYKAA.js} +7 -6
- package/dist/bundle/{chunk-I4EUGFS7.js → chunk-R4H5HSQZ.js} +4 -4
- package/dist/bundle/{chunk-XAEDDKM4.js → chunk-SKBDI7LU.js} +28 -28
- package/dist/bundle/{chunk-KV35JTWA.js → chunk-SUCG5HBF.js} +1 -1
- package/dist/bundle/{chunk-2LAJDBWZ.js → chunk-TFAUB6JO.js} +1538 -596
- package/dist/bundle/{chunk-ZAOFHRBL.js → chunk-TNHFKR6P.js} +22 -22
- package/dist/bundle/{chunk-C74WKN57.js → chunk-TPYXULNG.js} +7 -7
- package/dist/bundle/{chunk-VBXQAIRI.js → chunk-TQXXOUOX.js} +1 -1
- package/dist/bundle/{chunk-HPUTLOQU.js → chunk-TWTAWPC7.js} +13 -13
- package/dist/bundle/{chunk-7NV2IUIC.js → chunk-TXWVZVDK.js} +3 -3
- package/dist/bundle/{chunk-OZBL624P.js → chunk-UUBV5ATQ.js} +2 -0
- package/dist/bundle/{chunk-DH6PT65U.js → chunk-VUCD4DAQ.js} +4 -4
- package/dist/bundle/{chunk-4Y33E3U3.js → chunk-VVTC2YAX.js} +4 -4
- package/dist/bundle/{chunk-HHDZIBBO.js → chunk-W7FYMZOW.js} +7 -7
- package/dist/bundle/{chunk-XZBVXJWY.js → chunk-WJ2OYD2D.js} +5 -5
- package/dist/bundle/{chunk-2OEQH7HY.js → chunk-XI5UABKO.js} +1 -1
- package/dist/bundle/{chunk-M643YQVP.js → chunk-XK4VVGMH.js} +2 -2
- package/dist/bundle/{chunk-RKLCY7YU.js → chunk-XVPMSMSP.js} +3 -3
- package/dist/bundle/{chunk-LW5G7PAR.js → chunk-XYL7GDCX.js} +5 -5
- package/dist/bundle/{chunk-WCRWS2W7.js → chunk-YAFSD345.js} +12 -12
- package/dist/bundle/{chunk-DAA52TDI.js → chunk-ZNBLWLCD.js} +193 -154
- package/dist/bundle/{chunk-LWX2PCM6.js → chunk-ZOIW2YEU.js} +8 -8
- package/dist/bundle/{chunk-DVVS2API.js → chunk-ZU6HZLZP.js} +43 -43
- package/dist/bundle/{chunk-XFZESHD3.js → chunk-ZVXXJYNW.js} +2 -2
- package/dist/bundle/{command-contract-N554VPBZ.js → command-contract-46BU5YKL.js} +12 -12
- package/dist/bundle/{decode-ZCMHC5JI.js → decode-KRVQZPSB.js} +3 -3
- package/dist/bundle/{echarts-SJNM7DNA.js → echarts-O6QQRVZE.js} +2 -2
- package/dist/bundle/{embed-JO3CVYBK.js → embed-DA4H2F4F.js} +4 -4
- package/dist/bundle/{embedder-QAEGU7TZ.js → embedder-HWAFLIYM.js} +7 -7
- package/dist/bundle/{entry-KMFOJYWF.js → entry-DE7GJOIZ.js} +5 -5
- package/dist/bundle/failure-U3VNIQNX.js +65 -0
- package/dist/bundle/{first-run-5X2NRJL2.js → first-run-GOBPIKQF.js} +7 -7
- package/dist/bundle/{first-screen-2LMAVNBU.js → first-screen-3V3HWSQM.js} +13 -13
- package/dist/bundle/{instructions-GLZE4RPY.js → instructions-GYYMBSZW.js} +1 -1
- package/dist/bundle/mcp-6RDHWRXG.js +90 -0
- package/dist/bundle/memo.js +7 -7
- package/dist/bundle/{node-BNMBIM5C.js → node-R3OFASC5.js} +2 -2
- package/dist/bundle/{node-sqlite-BSRYEMOR.js → node-sqlite-DYHDZJ5A.js} +4 -4
- package/dist/bundle/{oauth-HYAEWGBV.js → oauth-SMCDSCXQ.js} +5 -5
- package/dist/bundle/{open-X7J4Q3I6.js → open-GX7RPGQW.js} +3 -3
- package/dist/bundle/{openai-ZACXNPZS.js → openai-WM4TRXCC.js} +8 -8
- package/dist/bundle/{process-5I6233QY.js → process-NT5OZH2V.js} +1 -1
- package/dist/bundle/{program-RQIADAES.js → program-YQ3UT2LI.js} +5737 -4697
- package/dist/bundle/{prompt-DVKTWZHJ.js → prompt-5XJNSXCW.js} +3 -3
- package/dist/bundle/{recognize-VXK4L74H.js → recognize-DQNGZLRX.js} +2 -2
- package/dist/bundle/{remote-IJLJQRQN.js → remote-RMRYJZSZ.js} +5 -5
- package/dist/bundle/{rerank-553ZMBYJ.js → rerank-5J6JM43S.js} +5 -5
- package/dist/bundle/{serve-76AFHLTI.js → serve-4RVWOQVC.js} +7 -7
- package/dist/bundle/server-HH2X6G7V.js +61 -0
- package/dist/bundle/server-MS3JKMGF.js +48 -0
- package/dist/bundle/{server-B3F54YWL.js → server-NKCRFK26.js} +94 -61
- package/dist/bundle/{state-WYFGGGAG.js → state-MGVPOLPZ.js} +4 -4
- package/dist/bundle/{store-S6QR47NT.js → store-IEK4PPOE.js} +16 -10
- package/dist/bundle/store-maintenance-command-GSS2AY4J.js +47 -0
- package/dist/bundle/update-S5XRRWTH.js +68 -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 +2 -2
- package/dist/digest/digest.d.ts.map +1 -1
- package/dist/digest/digest.js +36 -2
- package/dist/digest/digest.js.map +1 -1
- package/dist/discovery/command.d.ts.map +1 -1
- package/dist/discovery/command.js +3 -0
- package/dist/discovery/command.js.map +1 -1
- package/dist/examples.d.ts.map +1 -1
- package/dist/examples.js +29 -0
- package/dist/examples.js.map +1 -1
- package/dist/facts/command.d.ts.map +1 -1
- package/dist/facts/command.js +7 -4
- package/dist/facts/command.js.map +1 -1
- package/dist/facts/fact.d.ts +1 -0
- package/dist/facts/fact.d.ts.map +1 -1
- package/dist/facts/fact.js +1 -0
- package/dist/facts/fact.js.map +1 -1
- package/dist/knowledge/project-context.d.ts +1 -0
- package/dist/knowledge/project-context.d.ts.map +1 -1
- package/dist/mcp/catalogue.d.ts +3 -0
- package/dist/mcp/catalogue.d.ts.map +1 -1
- package/dist/mcp/catalogue.js +47 -13
- package/dist/mcp/catalogue.js.map +1 -1
- package/dist/memories/command.d.ts.map +1 -1
- package/dist/memories/command.js +9 -5
- package/dist/memories/command.js.map +1 -1
- package/dist/memories/memories.d.ts +6 -3
- package/dist/memories/memories.d.ts.map +1 -1
- package/dist/memories/memories.js +15 -20
- package/dist/memories/memories.js.map +1 -1
- package/dist/memories/memory.d.ts +1 -0
- package/dist/memories/memory.d.ts.map +1 -1
- package/dist/memories/memory.js +1 -0
- package/dist/memories/memory.js.map +1 -1
- package/dist/memories/sources.d.ts +27 -0
- package/dist/memories/sources.d.ts.map +1 -0
- package/dist/memories/sources.js +111 -0
- package/dist/memories/sources.js.map +1 -0
- package/dist/notes/embed.d.ts +2 -0
- package/dist/notes/embed.d.ts.map +1 -1
- package/dist/notes/embed.js +13 -0
- package/dist/notes/embed.js.map +1 -1
- package/dist/notes/files.d.ts.map +1 -1
- package/dist/notes/files.js +2 -0
- package/dist/notes/files.js.map +1 -1
- package/dist/program.d.ts +4 -1
- package/dist/program.d.ts.map +1 -1
- package/dist/program.js +44 -1
- package/dist/program.js.map +1 -1
- package/dist/read-only.d.ts +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/review/command.d.ts +2 -0
- package/dist/review/command.d.ts.map +1 -1
- package/dist/review/command.js +18 -3
- package/dist/review/command.js.map +1 -1
- package/dist/review/kinds.d.ts +1 -1
- package/dist/review/kinds.d.ts.map +1 -1
- package/dist/review/kinds.js +2 -1
- package/dist/review/kinds.js.map +1 -1
- package/dist/review/review.d.ts +64 -1
- package/dist/review/review.d.ts.map +1 -1
- package/dist/review/review.js +45 -0
- package/dist/review/review.js.map +1 -1
- package/dist/run/import.d.ts +9 -0
- package/dist/run/import.d.ts.map +1 -1
- package/dist/run/import.js +20 -0
- package/dist/run/import.js.map +1 -1
- package/dist/sources/command.d.ts +7 -0
- package/dist/sources/command.d.ts.map +1 -0
- package/dist/sources/command.js +246 -0
- package/dist/sources/command.js.map +1 -0
- package/dist/sources/copy.d.ts +13 -0
- package/dist/sources/copy.d.ts.map +1 -0
- package/dist/sources/copy.js +32 -0
- package/dist/sources/copy.js.map +1 -0
- package/dist/sources/mentions.d.ts +21 -0
- package/dist/sources/mentions.d.ts.map +1 -0
- package/dist/sources/mentions.js +78 -0
- package/dist/sources/mentions.js.map +1 -0
- package/dist/sources/read.d.ts +30 -0
- package/dist/sources/read.d.ts.map +1 -0
- package/dist/sources/read.js +181 -0
- package/dist/sources/read.js.map +1 -0
- package/dist/templates/command.d.ts +5 -0
- package/dist/templates/command.d.ts.map +1 -0
- package/dist/templates/command.js +18 -0
- package/dist/templates/command.js.map +1 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +3 -3
- package/skills/cli-memo/SKILL.md +9 -0
- package/skills/cli-memo/topics/proposals.md +13 -2
- package/skills/cli-memo/topics/search.md +7 -0
- package/dist/bundle/auto-HRPCC4FE.js +0 -85
- package/dist/bundle/failure-2FQL5SHA.js +0 -65
- package/dist/bundle/mcp-QXTOJORS.js +0 -90
- package/dist/bundle/server-PSEKWXKK.js +0 -48
- package/dist/bundle/server-QDPYZZT5.js +0 -61
- package/dist/bundle/store-maintenance-command-O4TXIWSL.js +0 -47
- package/dist/bundle/update-Z4LDMYC5.js +0 -68
- /package/dist/bundle/{chunk-IJPRQERM.js → chunk-DS7NXKAN.js} +0 -0
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
refuseLacking,
|
|
14
14
|
servicesFor,
|
|
15
15
|
throughWrapper
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-Q4JYHQ47.js";
|
|
17
17
|
import {
|
|
18
18
|
CEILING_KEY,
|
|
19
19
|
LOG_ATTRIBUTES,
|
|
@@ -38,29 +38,29 @@ import {
|
|
|
38
38
|
rememberAccount,
|
|
39
39
|
rootOf2 as rootOf,
|
|
40
40
|
skipFlagFor
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-ZNBLWLCD.js";
|
|
42
42
|
import {
|
|
43
43
|
providerErrorKey
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-W7FYMZOW.js";
|
|
45
45
|
import {
|
|
46
46
|
MESSENGER_CHANGE_REFUSAL,
|
|
47
47
|
readOnlyRefusal
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-NNUJWCEJ.js";
|
|
49
49
|
import {
|
|
50
50
|
servingProfiles
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-CQNYBTWP.js";
|
|
52
52
|
import {
|
|
53
53
|
openStore
|
|
54
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-IKZBO7NV.js";
|
|
55
55
|
import {
|
|
56
56
|
isCliFailure
|
|
57
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-ECMYCWG2.js";
|
|
58
58
|
import {
|
|
59
59
|
logRecordOf,
|
|
60
60
|
realSleep,
|
|
61
61
|
resolvePaths,
|
|
62
62
|
writeSecurely
|
|
63
|
-
} from "./chunk-
|
|
63
|
+
} from "./chunk-UUBV5ATQ.js";
|
|
64
64
|
import {
|
|
65
65
|
CliError
|
|
66
66
|
} from "./chunk-ZTONSM5X.js";
|
|
@@ -68,7 +68,7 @@ import {
|
|
|
68
68
|
__name
|
|
69
69
|
} from "./chunk-ZVVMGPBJ.js";
|
|
70
70
|
|
|
71
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
71
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.616.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_8665abbf6fdc3acbe46baf279794bee0/node_modules/@wirecat/cli-core/dist/cli/messenger/ask.js
|
|
72
72
|
import { openSync } from "node:fs";
|
|
73
73
|
import { createInterface } from "node:readline";
|
|
74
74
|
import { ReadStream } from "node:tty";
|
|
@@ -123,10 +123,10 @@ var terminalAsker = /* @__PURE__ */ __name((command) => async (key, request) =>
|
|
|
123
123
|
throw new CliError("cancelled", `${key}: not done \u2014 the answer was no`);
|
|
124
124
|
}, "terminalAsker");
|
|
125
125
|
|
|
126
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
126
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.616.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_8665abbf6fdc3acbe46baf279794bee0/node_modules/@wirecat/cli-core/dist/sends/guard.js
|
|
127
127
|
import { randomUUID } from "node:crypto";
|
|
128
128
|
|
|
129
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
129
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.616.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_8665abbf6fdc3acbe46baf279794bee0/node_modules/@wirecat/cli-core/dist/sends/flood.js
|
|
130
130
|
import { mkdirSync, readFileSync, renameSync, writeFileSync } from "node:fs";
|
|
131
131
|
import { dirname, join } from "node:path";
|
|
132
132
|
var MOST_DEADLINES = 50;
|
|
@@ -210,11 +210,11 @@ var FloodMemory = class {
|
|
|
210
210
|
}
|
|
211
211
|
};
|
|
212
212
|
|
|
213
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
213
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.616.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_8665abbf6fdc3acbe46baf279794bee0/node_modules/@wirecat/cli-core/dist/sends/journal.js
|
|
214
214
|
import { appendFileSync, mkdirSync as mkdirSync3, readFileSync as readFileSync2 } from "node:fs";
|
|
215
215
|
import { dirname as dirname3, join as join2 } from "node:path";
|
|
216
216
|
|
|
217
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
217
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.616.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_8665abbf6fdc3acbe46baf279794bee0/node_modules/@wirecat/cli-core/dist/sends/file-lock.js
|
|
218
218
|
import { closeSync, mkdirSync as mkdirSync2, openSync as openSync2, statSync, unlinkSync } from "node:fs";
|
|
219
219
|
import { dirname as dirname2 } from "node:path";
|
|
220
220
|
var LOCK_WAIT_MS = 5e3;
|
|
@@ -281,7 +281,7 @@ var lockTime = /* @__PURE__ */ __name((lock) => {
|
|
|
281
281
|
}
|
|
282
282
|
}, "lockTime");
|
|
283
283
|
|
|
284
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
284
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.616.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_8665abbf6fdc3acbe46baf279794bee0/node_modules/@wirecat/cli-core/dist/sends/journal.js
|
|
285
285
|
var sendsPathFor = /* @__PURE__ */ __name((app, profile, env = process.env) => join2(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "sends", `${profile}.jsonl`), "sendsPathFor");
|
|
286
286
|
var SendJournal = class {
|
|
287
287
|
static {
|
|
@@ -358,7 +358,7 @@ var withSendId = /* @__PURE__ */ __name((entry) => {
|
|
|
358
358
|
return cid === void 0 || rest.sendId !== void 0 ? rest : { ...rest, sendId: String(cid) };
|
|
359
359
|
}, "withSendId");
|
|
360
360
|
|
|
361
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
361
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.616.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_8665abbf6fdc3acbe46baf279794bee0/node_modules/@wirecat/cli-core/dist/sends/recipients.js
|
|
362
362
|
import { existsSync, readFileSync as readFileSync3, rmSync } from "node:fs";
|
|
363
363
|
import { join as join3 } from "node:path";
|
|
364
364
|
var recipientsPathFor = /* @__PURE__ */ __name((app, profile, env = process.env) => join3(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "profiles", `${profile}.recipients.json`), "recipientsPathFor");
|
|
@@ -470,7 +470,7 @@ var RecipientList = class {
|
|
|
470
470
|
}
|
|
471
471
|
};
|
|
472
472
|
|
|
473
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
473
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.616.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_8665abbf6fdc3acbe46baf279794bee0/node_modules/@wirecat/cli-core/dist/sends/guard.js
|
|
474
474
|
var HOUR_MS = 60 * 60 * 1e3;
|
|
475
475
|
var READS_UNDER_HOLD = /* @__PURE__ */ new Set([
|
|
476
476
|
"attachments.extract",
|
|
@@ -663,7 +663,7 @@ var guardFor = /* @__PURE__ */ __name((app, settings, warn, env = process.env, a
|
|
|
663
663
|
}), "guardFor");
|
|
664
664
|
var journalFailure = /* @__PURE__ */ __name((error) => error?.code ?? (error instanceof Error ? error.name : "error"), "journalFailure");
|
|
665
665
|
|
|
666
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
666
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.616.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_8665abbf6fdc3acbe46baf279794bee0/node_modules/@wirecat/cli-core/dist/sends/pace.js
|
|
667
667
|
import { readFileSync as readFileSync4, renameSync as renameSync2, writeFileSync as writeFileSync2 } from "node:fs";
|
|
668
668
|
import { join as join4 } from "node:path";
|
|
669
669
|
var DEFAULT_PACE = { perMinute: 60, burst: 20 };
|
|
@@ -753,7 +753,7 @@ var waitForTurn = /* @__PURE__ */ __name(async (pacer, options) => {
|
|
|
753
753
|
await (options.sleep ?? ((ms) => new Promise((resolve) => setTimeout(resolve, ms))))(waitMs);
|
|
754
754
|
}, "waitForTurn");
|
|
755
755
|
|
|
756
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
756
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.616.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_8665abbf6fdc3acbe46baf279794bee0/node_modules/@wirecat/cli-core/dist/cli/permission-keys.js
|
|
757
757
|
var pathOf = /* @__PURE__ */ __name((command) => {
|
|
758
758
|
const words = [];
|
|
759
759
|
for (let at = command; at?.parent; at = at.parent)
|
|
@@ -813,7 +813,7 @@ var refuseUnknownPermissionKeys = /* @__PURE__ */ __name((command, settings, too
|
|
|
813
813
|
throw new CliError("validation_error", `--permission ${key} names no command`, { permission: key });
|
|
814
814
|
}, "refuseUnknownPermissionKeys");
|
|
815
815
|
|
|
816
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
816
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.616.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_8665abbf6fdc3acbe46baf279794bee0/node_modules/@wirecat/cli-core/dist/cli/messenger/flooded.js
|
|
817
817
|
var LONG_LIVED = /* @__PURE__ */ new Set(["self", "newSendId", "close", "formatMarkdown", "formatHtml", "storedChats"]);
|
|
818
818
|
var LISTENING = /* @__PURE__ */ new Set(["watch", "feed", "listen", "listenHistory"]);
|
|
819
819
|
var BLOCKING = /* @__PURE__ */ new Set(["frozen", "limited", "banned"]);
|
|
@@ -910,7 +910,7 @@ var flooded = /* @__PURE__ */ __name((messenger, memory, { name, warn, pacer })
|
|
|
910
910
|
});
|
|
911
911
|
}, "flooded");
|
|
912
912
|
|
|
913
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
913
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.616.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_8665abbf6fdc3acbe46baf279794bee0/node_modules/@wirecat/cli-core/dist/cli/messenger/observed.js
|
|
914
914
|
var observed = /* @__PURE__ */ __name((messenger, events) => {
|
|
915
915
|
const timed = /* @__PURE__ */ __name(async (operation, named, work, after) => {
|
|
916
916
|
const write = currentOperation();
|
|
@@ -1009,7 +1009,7 @@ var byPart = /* @__PURE__ */ __name((batch, counts) => {
|
|
|
1009
1009
|
counts[part] = (counts[part] ?? 0) + items.length;
|
|
1010
1010
|
}, "byPart");
|
|
1011
1011
|
|
|
1012
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1012
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.616.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_8665abbf6fdc3acbe46baf279794bee0/node_modules/@wirecat/cli-core/dist/cli/messenger/stored.js
|
|
1013
1013
|
var REKEY_PACING = { lockMs: 50, pauseMs: 25 };
|
|
1014
1014
|
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" }) => {
|
|
1015
1015
|
let warned = false;
|
|
@@ -1585,7 +1585,7 @@ var keep = /* @__PURE__ */ __name(async (store, account, event, seenAt, among, c
|
|
|
1585
1585
|
}
|
|
1586
1586
|
}, "keep");
|
|
1587
1587
|
|
|
1588
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1588
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.616.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_8665abbf6fdc3acbe46baf279794bee0/node_modules/@wirecat/cli-core/dist/cli/messenger/context.js
|
|
1589
1589
|
var lazyStore = /* @__PURE__ */ __name((env, command, version) => {
|
|
1590
1590
|
let opened;
|
|
1591
1591
|
return {
|
|
@@ -2,31 +2,31 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
loadConfig
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-7DANHJF6.js";
|
|
6
6
|
import {
|
|
7
7
|
upgradeCommand
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-TFAUB6JO.js";
|
|
9
9
|
import {
|
|
10
10
|
FETCH,
|
|
11
11
|
annotate,
|
|
12
12
|
overrideSharedContract
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-ZNBLWLCD.js";
|
|
14
14
|
import {
|
|
15
15
|
latestVersion,
|
|
16
16
|
runUpdate,
|
|
17
17
|
updateNotice
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-LJCT7YG6.js";
|
|
19
19
|
import {
|
|
20
20
|
APP,
|
|
21
21
|
VERSION
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-MCA265JM.js";
|
|
23
23
|
import {
|
|
24
24
|
installerOf
|
|
25
25
|
} from "./chunk-DSU6UR2X.js";
|
|
26
26
|
import {
|
|
27
27
|
createRenderer,
|
|
28
28
|
resolvePaths
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-UUBV5ATQ.js";
|
|
30
30
|
import {
|
|
31
31
|
__name
|
|
32
32
|
} from "./chunk-ZVVMGPBJ.js";
|
|
@@ -34,7 +34,7 @@ import {
|
|
|
34
34
|
// dist/update.js
|
|
35
35
|
import { join } from "node:path";
|
|
36
36
|
|
|
37
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.616.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_8665abbf6fdc3acbe46baf279794bee0/node_modules/@wirecat/cli-core/dist/update/index.js
|
|
38
38
|
import { realpathSync } from "node:fs";
|
|
39
39
|
import { fileURLToPath } from "node:url";
|
|
40
40
|
var QUIET_WORDS = [
|
|
@@ -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.616.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_8665abbf6fdc3acbe46baf279794bee0/node_modules/@wirecat/cli-core/dist/mcp/stdio-wire.js
|
|
8
8
|
import { PassThrough, Writable } from "node:stream";
|
|
9
9
|
var lineReader = /* @__PURE__ */ __name((onMessage) => {
|
|
10
10
|
let rest = "";
|
|
@@ -7,10 +7,10 @@ import {
|
|
|
7
7
|
agentJson,
|
|
8
8
|
commandAvailability,
|
|
9
9
|
failureContext
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-7OMKWYFN.js";
|
|
11
11
|
import {
|
|
12
12
|
callerOf
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-HUPZ6XYH.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-Q4JYHQ47.js";
|
|
22
22
|
import {
|
|
23
23
|
DEFAULT_OUTPUT_BYTES,
|
|
24
24
|
ENTITIES,
|
|
@@ -42,26 +42,26 @@ import {
|
|
|
42
42
|
sealed,
|
|
43
43
|
startRecording,
|
|
44
44
|
traceOf
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-ZNBLWLCD.js";
|
|
46
46
|
import {
|
|
47
47
|
currentCaller,
|
|
48
48
|
keepsSuccess,
|
|
49
49
|
runContextOf,
|
|
50
50
|
withCaller
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-W7FYMZOW.js";
|
|
52
52
|
import {
|
|
53
53
|
queryDescription
|
|
54
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-BOOEDDVY.js";
|
|
55
55
|
import {
|
|
56
56
|
storeDamaged
|
|
57
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-ECMYCWG2.js";
|
|
58
58
|
import {
|
|
59
59
|
MAX_BUFFERED_INPUT
|
|
60
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-32ROGX5N.js";
|
|
61
61
|
import {
|
|
62
62
|
captureStreams,
|
|
63
63
|
traceIdOf
|
|
64
|
-
} from "./chunk-
|
|
64
|
+
} from "./chunk-UUBV5ATQ.js";
|
|
65
65
|
import {
|
|
66
66
|
COMPACT_FLAG,
|
|
67
67
|
SNAKE_CASE,
|
|
@@ -109,7 +109,7 @@ import {
|
|
|
109
109
|
__name
|
|
110
110
|
} from "./chunk-ZVVMGPBJ.js";
|
|
111
111
|
|
|
112
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
112
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.616.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_8665abbf6fdc3acbe46baf279794bee0/node_modules/@wirecat/cli-core/dist/mcp/agent.js
|
|
113
113
|
import { Readable } from "node:stream";
|
|
114
114
|
|
|
115
115
|
// node_modules/.pnpm/@wirecat+cli-base@0.91.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
|
|
@@ -3199,7 +3199,7 @@ var VOCABULARY = defineVocabulary({
|
|
|
3199
3199
|
]
|
|
3200
3200
|
});
|
|
3201
3201
|
|
|
3202
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3202
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.616.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_8665abbf6fdc3acbe46baf279794bee0/node_modules/@wirecat/cli-core/dist/mcp/agent.js
|
|
3203
3203
|
var TYPES = new Map(VOCABULARY.flags.map((flag) => [flag.name, flag.type]));
|
|
3204
3204
|
var snake = /* @__PURE__ */ __name((name) => name.replaceAll("|", "_or_").replace(/[^a-z0-9]+/gi, "_"), "snake");
|
|
3205
3205
|
var longOf = /* @__PURE__ */ __name((option) => option.flags.match(/--[a-z0-9][a-z0-9-]*/)?.[0], "longOf");
|
|
@@ -3422,7 +3422,7 @@ var runCommandForAgent = /* @__PURE__ */ __name(async (program, path, input, ctx
|
|
|
3422
3422
|
}
|
|
3423
3423
|
}, "runCommandForAgent");
|
|
3424
3424
|
|
|
3425
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3425
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.616.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_8665abbf6fdc3acbe46baf279794bee0/node_modules/@wirecat/cli-core/dist/mcp/tool.js
|
|
3426
3426
|
var limit = optional(pipe(number(), integer(), minValue(1), maxValue(100), description("how many")));
|
|
3427
3427
|
var page = optional(pipe(number(), integer(), minValue(1), description("which page, from 1")));
|
|
3428
3428
|
var message = pipe(
|
|
@@ -3681,7 +3681,7 @@ var failed = /* @__PURE__ */ __name((error, errors, effects) => {
|
|
|
3681
3681
|
return mcpErrorResult(JSON.parse(agentJson(errorObjectOf(storeDamaged(error), context))));
|
|
3682
3682
|
}, "failed");
|
|
3683
3683
|
|
|
3684
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3684
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.616.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_8665abbf6fdc3acbe46baf279794bee0/node_modules/@wirecat/cli-core/dist/mcp/surface.js
|
|
3685
3685
|
import { randomUUID } from "node:crypto";
|
|
3686
3686
|
var MATCHES = 8;
|
|
3687
3687
|
var ANSWER = answerSchema();
|
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
readSharedSection,
|
|
5
5
|
sharedConfigPath,
|
|
6
6
|
writeSharedSection
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-WJ2OYD2D.js";
|
|
8
8
|
import {
|
|
9
9
|
storePath
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-QFSMJTEA.js";
|
|
11
11
|
import {
|
|
12
12
|
CliError
|
|
13
13
|
} from "./chunk-ZTONSM5X.js";
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
__name
|
|
16
16
|
} from "./chunk-ZVVMGPBJ.js";
|
|
17
17
|
|
|
18
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.616.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_8665abbf6fdc3acbe46baf279794bee0/node_modules/@wirecat/cli-core/dist/cli/setup-answers.js
|
|
19
19
|
var PERMISSION_ANSWERS = ["readonly", "allow"];
|
|
20
20
|
var QUESTIONS = ["languages", "tools", "permissions"];
|
|
21
21
|
var SECTION = "setup";
|
|
@@ -1946,6 +1946,7 @@ var homeIsMoved = /* @__PURE__ */ __name(({ env = process.env, platform = proces
|
|
|
1946
1946
|
const owners = defaultPaths({ appName, env: { HOME: home, USERPROFILE: home }, platform });
|
|
1947
1947
|
return PATH_KINDS.some((kind) => actual[kind] !== owners[kind]);
|
|
1948
1948
|
}, "homeIsMoved");
|
|
1949
|
+
var isMovedRun = /* @__PURE__ */ __name((options) => pathsAreOverridden(options) || homeIsMoved(options), "isMovedRun");
|
|
1949
1950
|
var configFilePath = /* @__PURE__ */ __name((configDir, fileName = "config.json") => join(configDir, fileName), "configFilePath");
|
|
1950
1951
|
|
|
1951
1952
|
// node_modules/.pnpm/@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/drain.js
|
|
@@ -2833,6 +2834,7 @@ export {
|
|
|
2833
2834
|
saveConfigFile,
|
|
2834
2835
|
resolvePaths,
|
|
2835
2836
|
pathsAreOverridden,
|
|
2837
|
+
isMovedRun,
|
|
2836
2838
|
configFilePath,
|
|
2837
2839
|
Credentials,
|
|
2838
2840
|
realSleep,
|
|
@@ -2,12 +2,12 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
answeredWire
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-TQXXOUOX.js";
|
|
6
6
|
import {
|
|
7
7
|
CALLER_META_KEY,
|
|
8
8
|
PROXY_CLIENT_NAME,
|
|
9
9
|
callerOf
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-HUPZ6XYH.js";
|
|
11
11
|
import {
|
|
12
12
|
StdioServerTransport,
|
|
13
13
|
serveStdio
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
__name
|
|
20
20
|
} from "./chunk-ZVVMGPBJ.js";
|
|
21
21
|
|
|
22
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.616.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_8665abbf6fdc3acbe46baf279794bee0/node_modules/@wirecat/cli-core/dist/mcp/all-profiles.js
|
|
23
23
|
import { spawn } from "node:child_process";
|
|
24
24
|
import { randomUUID } from "node:crypto";
|
|
25
25
|
var PROTOCOL = "2025-06-18";
|
|
@@ -253,7 +253,7 @@ var serveAllProfilesOverStdio = /* @__PURE__ */ __name(async (options, io = {})
|
|
|
253
253
|
}, "serveAllProfilesOverStdio");
|
|
254
254
|
var serveAllProfilesOverHttp = /* @__PURE__ */ __name(async (options, http) => {
|
|
255
255
|
const { build, close } = allProfilesServer(options);
|
|
256
|
-
const { serveOverHttp } = await import("./serve-
|
|
256
|
+
const { serveOverHttp } = await import("./serve-4RVWOQVC.js");
|
|
257
257
|
const listening = await serveOverHttp(build, {
|
|
258
258
|
...http,
|
|
259
259
|
appName: options.command,
|
|
@@ -3,22 +3,22 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
agentResult,
|
|
5
5
|
failureContext
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-7OMKWYFN.js";
|
|
7
7
|
import {
|
|
8
8
|
CommanderError,
|
|
9
9
|
judgedEffects,
|
|
10
10
|
metaOf
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-ZNBLWLCD.js";
|
|
12
12
|
import {
|
|
13
13
|
storeDamaged
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-ECMYCWG2.js";
|
|
15
15
|
import {
|
|
16
16
|
interactiveOf,
|
|
17
17
|
optionsOf
|
|
18
18
|
} from "./chunk-BPGYTJNB.js";
|
|
19
19
|
import {
|
|
20
20
|
APP
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-MCA265JM.js";
|
|
22
22
|
import {
|
|
23
23
|
ValiError,
|
|
24
24
|
errorObjectOf,
|
|
@@ -4,22 +4,22 @@ import {
|
|
|
4
4
|
isCliFailure,
|
|
5
5
|
secretNamed,
|
|
6
6
|
withoutSecrets
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-ECMYCWG2.js";
|
|
8
8
|
import {
|
|
9
9
|
isContentKey
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-UUBV5ATQ.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.616.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_8665abbf6fdc3acbe46baf279794bee0/node_modules/@wirecat/cli-core/dist/runs/run-context.js
|
|
16
16
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
17
17
|
import { createHash } from "node:crypto";
|
|
18
18
|
|
|
19
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.616.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_8665abbf6fdc3acbe46baf279794bee0/node_modules/@wirecat/cli-core/dist/runs/error-detail.js
|
|
20
20
|
import { homedir } from "node:os";
|
|
21
21
|
|
|
22
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.616.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_8665abbf6fdc3acbe46baf279794bee0/node_modules/@wirecat/cli-core/dist/runs/events.js
|
|
23
23
|
var providerErrorKey = /* @__PURE__ */ __name((value) => typeof value === "string" && /^[A-Za-z][A-Za-z0-9._-]{0,63}$/.test(value) ? value : void 0, "providerErrorKey");
|
|
24
24
|
var renderEvent = /* @__PURE__ */ __name((event) => {
|
|
25
25
|
if (event.event === "warning") {
|
|
@@ -67,7 +67,7 @@ var MARK = { request: "\u2192", response: "\u2190", cache: "\u2022", warning: "!
|
|
|
67
67
|
var age = /* @__PURE__ */ __name((ms) => ms < 1e3 ? `${ms}ms` : `${Math.round(ms / 1e3)}s`, "age");
|
|
68
68
|
var size = /* @__PURE__ */ __name((bytes) => bytes < 1e3 ? `${bytes} B` : `${(bytes / 1e3).toFixed(1)} kB`, "size");
|
|
69
69
|
|
|
70
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
70
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.616.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_8665abbf6fdc3acbe46baf279794bee0/node_modules/@wirecat/cli-core/dist/runs/error-detail.js
|
|
71
71
|
var MESSAGE_AT_MOST = 500;
|
|
72
72
|
var CAUSES_AT_MOST = 5;
|
|
73
73
|
var FRAMES_AT_MOST = 15;
|
|
@@ -176,7 +176,7 @@ var redactText = /* @__PURE__ */ __name((text) => {
|
|
|
176
176
|
return out.length > MESSAGE_AT_MOST ? `${out.slice(0, MESSAGE_AT_MOST)}\u2026` : out;
|
|
177
177
|
}, "redactText");
|
|
178
178
|
|
|
179
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
179
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.616.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_8665abbf6fdc3acbe46baf279794bee0/node_modules/@wirecat/cli-core/dist/runs/run-context.js
|
|
180
180
|
var REDACTED = "[redacted]";
|
|
181
181
|
var keepsSuccess = /* @__PURE__ */ __name(({ record, fromFlag, env, caller, persistent = false }) => {
|
|
182
182
|
if (!record)
|
|
@@ -2,10 +2,10 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
storePath
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-QFSMJTEA.js";
|
|
6
6
|
import {
|
|
7
7
|
resolvePaths
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-UUBV5ATQ.js";
|
|
9
9
|
import {
|
|
10
10
|
CliError,
|
|
11
11
|
singleLine
|
|
@@ -14,11 +14,11 @@ 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.616.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_8665abbf6fdc3acbe46baf279794bee0/node_modules/@wirecat/cli-core/dist/store/shared-config.js
|
|
18
18
|
import { mkdirSync, readFileSync, renameSync, statSync, writeFileSync } from "node:fs";
|
|
19
19
|
import { dirname, join, resolve } from "node:path";
|
|
20
20
|
|
|
21
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.616.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_8665abbf6fdc3acbe46baf279794bee0/node_modules/@wirecat/cli-core/dist/domain/task-categories.js
|
|
22
22
|
var DEFAULT_TASK_CATEGORIES = [
|
|
23
23
|
{
|
|
24
24
|
name: "taxes",
|
|
@@ -773,7 +773,7 @@ var storedTaskCategories = /* @__PURE__ */ __name((json) => {
|
|
|
773
773
|
}
|
|
774
774
|
}, "storedTaskCategories");
|
|
775
775
|
|
|
776
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
776
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.616.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_8665abbf6fdc3acbe46baf279794bee0/node_modules/@wirecat/cli-core/dist/store/shared-config.js
|
|
777
777
|
var SECTION = "task_categories";
|
|
778
778
|
var sharedConfigPath = /* @__PURE__ */ __name((store, env = process.env) => {
|
|
779
779
|
const paths = resolvePaths({ appName: "WireCat", prefix: "WIRECAT", env });
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
__name
|
|
11
11
|
} from "./chunk-ZVVMGPBJ.js";
|
|
12
12
|
|
|
13
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
13
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.616.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_8665abbf6fdc3acbe46baf279794bee0/node_modules/@wirecat/cli-core/dist/store/vector-extension.js
|
|
14
14
|
import { readFileSync } from "node:fs";
|
|
15
15
|
var musl = /* @__PURE__ */ __name(() => {
|
|
16
16
|
if (process.platform !== "linux")
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
describeOptions,
|
|
8
8
|
keyForCommand,
|
|
9
9
|
metaOf
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-ZNBLWLCD.js";
|
|
11
11
|
import {
|
|
12
12
|
jsonSchemaOf
|
|
13
13
|
} from "./chunk-HE2F4JII.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.616.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_8665abbf6fdc3acbe46baf279794bee0/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);
|
|
@@ -10,10 +10,10 @@ 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.616.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_8665abbf6fdc3acbe46baf279794bee0/node_modules/@wirecat/cli-core/dist/speech/recognize.js
|
|
14
14
|
import { createRequire } from "node:module";
|
|
15
15
|
|
|
16
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.616.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_8665abbf6fdc3acbe46baf279794bee0/node_modules/@wirecat/cli-core/dist/speech/ogg-limit.js
|
|
17
17
|
var invalid = /* @__PURE__ */ __name(() => new CliError("validation_error", "local transcription needs a complete mono or stereo Ogg Opus recording"), "invalid");
|
|
18
18
|
var checkOggDuration = /* @__PURE__ */ __name((bytes) => {
|
|
19
19
|
const view = new DataView(bytes.buffer, bytes.byteOffset, bytes.byteLength);
|
|
@@ -70,7 +70,7 @@ var checkOggDuration = /* @__PURE__ */ __name((bytes) => {
|
|
|
70
70
|
throw invalid();
|
|
71
71
|
}, "checkOggDuration");
|
|
72
72
|
|
|
73
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
73
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.616.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_8665abbf6fdc3acbe46baf279794bee0/node_modules/@wirecat/cli-core/dist/speech/recognize.js
|
|
74
74
|
var SAMPLE_RATE = 16e3;
|
|
75
75
|
var LEAD = SAMPLE_RATE / 2;
|
|
76
76
|
var toModelRate = /* @__PURE__ */ __name((samples, rate) => {
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
inspectConfig,
|
|
5
5
|
loadConfig,
|
|
6
6
|
memoPermissionKeys
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-7DANHJF6.js";
|
|
8
8
|
import {
|
|
9
9
|
CEILING_KEY,
|
|
10
10
|
changesAuthority,
|
|
@@ -13,17 +13,17 @@ import {
|
|
|
13
13
|
layerPermissions,
|
|
14
14
|
levelFor,
|
|
15
15
|
metaOf
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-ZNBLWLCD.js";
|
|
17
17
|
import {
|
|
18
18
|
setupPermissionCeiling
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-TXWVZVDK.js";
|
|
20
20
|
import {
|
|
21
21
|
readOnlyLockOf,
|
|
22
22
|
readOnlyRefusal
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-NNUJWCEJ.js";
|
|
24
24
|
import {
|
|
25
25
|
APP
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-MCA265JM.js";
|
|
27
27
|
import {
|
|
28
28
|
CliError
|
|
29
29
|
} from "./chunk-ZTONSM5X.js";
|