@wirecat/cli-memo 0.131.59 → 0.131.61
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-LHATPBN3.js → all-profiles-WPBMSWJF.js} +5 -5
- package/dist/bundle/{anthropic-ZCFY7X3V.js → anthropic-FZRVISSX.js} +7 -5
- package/dist/bundle/{app-server-LMNKI46N.js → app-server-QGIZPU4R.js} +35 -35
- package/dist/bundle/auto-5VPCO4DD.js +85 -0
- package/dist/bundle/{bun-Z5XDW2UR.js → bun-AO76624P.js} +2 -2
- package/dist/bundle/{bun-sqlite-GC55XSRP.js → bun-sqlite-HYBE66QU.js} +2 -2
- package/dist/bundle/{chunk-UTLAFKFU.js → chunk-233N77WN.js} +1289 -801
- package/dist/bundle/{chunk-ZELDY6H4.js → chunk-2Q55K5HY.js} +2 -2
- package/dist/bundle/{chunk-A6HTI2EV.js → chunk-2UXFM5GE.js} +12 -12
- package/dist/bundle/{chunk-PPZCQ6DC.js → chunk-2VMZLQ5K.js} +2 -2
- package/dist/bundle/{chunk-W6HT56DV.js → chunk-35OBIX5A.js} +8 -8
- package/dist/bundle/{chunk-IKMCUKAE.js → chunk-37ILRM2G.js} +4 -4
- package/dist/bundle/{chunk-JCHC5EEV.js → chunk-3FDJSMLJ.js} +4 -4
- package/dist/bundle/{chunk-2ALNQ3ZG.js → chunk-3FPF5DBU.js} +5 -5
- package/dist/bundle/{chunk-BIKOHAZH.js → chunk-4HLYKLGJ.js} +1 -1
- package/dist/bundle/{chunk-UQWLLRYP.js → chunk-4WKZ3UIZ.js} +1 -1
- package/dist/bundle/{chunk-FHTIB66O.js → chunk-5SD4CV2D.js} +354 -266
- package/dist/bundle/{chunk-4JBR277T.js → chunk-5ZVWDMDT.js} +1 -1
- package/dist/bundle/{chunk-N57QFHPJ.js → chunk-6AEQACVV.js} +7 -7
- package/dist/bundle/{chunk-3HX5I5KX.js → chunk-6NHJ4TTJ.js} +515 -356
- package/dist/bundle/{chunk-7FAFZQYC.js → chunk-6YK3RZZJ.js} +4 -4
- package/dist/bundle/{chunk-WJ3VJYM4.js → chunk-7CKXTTZG.js} +2 -2
- package/dist/bundle/{chunk-PQEJBESM.js → chunk-7DPHHUSZ.js} +21 -21
- package/dist/bundle/{chunk-7FY7DHFV.js → chunk-7E46JN6V.js} +2 -2
- package/dist/bundle/{chunk-LWVCZPQF.js → chunk-7ETYPYIN.js} +12 -12
- package/dist/bundle/{chunk-5QRRSPCL.js → chunk-7NKBX7FC.js} +2 -2
- package/dist/bundle/{chunk-CQ7NDIKS.js → chunk-B4VCZOLF.js} +1 -1
- package/dist/bundle/{chunk-7H45WVOV.js → chunk-CTRVHHBK.js} +5 -5
- package/dist/bundle/{chunk-GKRSFUAN.js → chunk-D4PK5OXW.js} +1 -1
- package/dist/bundle/{chunk-MIJKJNIA.js → chunk-ETYD55QD.js} +3 -3
- package/dist/bundle/{chunk-ABLNLLM6.js → chunk-F6E7DSJO.js} +31 -31
- package/dist/bundle/{chunk-ENVEZQ2F.js → chunk-HLTGPK6P.js} +4 -4
- package/dist/bundle/{chunk-V5E55COY.js → chunk-I6LNI45S.js} +5 -5
- package/dist/bundle/{chunk-HBY2VTP6.js → chunk-IZZU4NS6.js} +3 -3
- package/dist/bundle/{chunk-CBNN7VP2.js → chunk-JAJSTFBB.js} +6 -6
- package/dist/bundle/{chunk-MF3B3UAK.js → chunk-K6FQVROA.js} +21 -21
- package/dist/bundle/{chunk-OD5IBWOB.js → chunk-KGZM5WYK.js} +4 -4
- package/dist/bundle/{chunk-BFDN7ZRX.js → chunk-KZRBIHQL.js} +5 -5
- package/dist/bundle/{chunk-TWHA3OB2.js → chunk-LIW42UCX.js} +9 -9
- package/dist/bundle/{chunk-AQ44SSA2.js → chunk-MQCBJGXA.js} +10 -9
- package/dist/bundle/{chunk-PPJXTU54.js → chunk-OEPBIWHI.js} +150 -150
- package/dist/bundle/{chunk-M36WYT62.js → chunk-OFERGS4J.js} +23 -1
- package/dist/bundle/{chunk-7IMLRFCG.js → chunk-OIHKFGHK.js} +3 -3
- package/dist/bundle/{chunk-ROYHEBF4.js → chunk-OQSOQYSQ.js} +4 -4
- package/dist/bundle/{chunk-WFF7X6LI.js → chunk-OWVHNTY6.js} +6 -6
- package/dist/bundle/{chunk-YA7YYH3E.js → chunk-PSYZ33UQ.js} +1 -1
- package/dist/bundle/{chunk-Z2R4SK5Q.js → chunk-R7ZD7TNI.js} +1 -1
- package/dist/bundle/{chunk-775KV34P.js → chunk-RRHSJ7CR.js} +62 -62
- package/dist/bundle/{chunk-HPMEODWD.js → chunk-RRPUM4RS.js} +2 -2
- package/dist/bundle/{chunk-SB44NDKV.js → chunk-RT476OFI.js} +7 -7
- package/dist/bundle/{chunk-MTIAWKHJ.js → chunk-SSX6S3EG.js} +1 -1
- package/dist/bundle/{chunk-FYG52VXO.js → chunk-STXMSLU6.js} +1 -1
- package/dist/bundle/{chunk-SJAX32ZF.js → chunk-UTSMQ7KI.js} +1 -1
- package/dist/bundle/{chunk-XGR7ND66.js → chunk-UTUUXAPS.js} +28 -28
- package/dist/bundle/{chunk-EXIFPE4R.js → chunk-WFDGEREJ.js} +2 -2
- package/dist/bundle/{chunk-IRFXP5R5.js → chunk-WMRR2SNG.js} +1 -1
- package/dist/bundle/{chunk-UTCOTLJP.js → chunk-XT7EJLA4.js} +4 -4
- package/dist/bundle/{chunk-SK3GNZFF.js → chunk-XU7UER3B.js} +10 -10
- package/dist/bundle/{chunk-3L6SQL6I.js → chunk-XYFYZP2N.js} +1 -1
- package/dist/bundle/{chunk-M4C4PD6O.js → chunk-Y264FW55.js} +1 -1
- package/dist/bundle/{chunk-KG6HO3XP.js → chunk-YRHLPKTG.js} +2 -2
- package/dist/bundle/{chunk-NQBV7NNO.js → chunk-YVCNJKDA.js} +210 -364
- package/dist/bundle/{command-contract-XKSGEPXG.js → command-contract-4TGN6GSP.js} +11 -11
- package/dist/bundle/{decode-6PPIALX2.js → decode-S3PPQHID.js} +2 -2
- package/dist/bundle/{echarts-XQ7T6SKK.js → echarts-AH6U7X2S.js} +2 -2
- package/dist/bundle/{embed-W56IWO4I.js → embed-4NSZECMB.js} +3 -3
- package/dist/bundle/{embedder-IWJHHYLE.js → embedder-EGRA7YEY.js} +6 -6
- package/dist/bundle/{entry-OZSQA6IT.js → entry-O3V72WZP.js} +4 -4
- package/dist/bundle/failure-CFGWWTV5.js +65 -0
- package/dist/bundle/{first-run-LT5QD4MA.js → first-run-S7RRDIGX.js} +5 -5
- package/dist/bundle/{first-screen-IMWQP24U.js → first-screen-YKJAQUVE.js} +12 -12
- package/dist/bundle/{instructions-DHUIJMK4.js → instructions-ETUUZKBM.js} +1 -1
- package/dist/bundle/{mcp-3X7LMJSZ.js → mcp-J3K7RC5W.js} +35 -35
- package/dist/bundle/memo.js +6 -6
- package/dist/bundle/{node-BSK32EM3.js → node-O4XVOEGO.js} +2 -2
- package/dist/bundle/{node-sqlite-SYF7X36U.js → node-sqlite-PC3K43U7.js} +3 -3
- package/dist/bundle/{oauth-ZEWUPRPD.js → oauth-MBJUEG2Z.js} +4 -4
- package/dist/bundle/{open-4EKQE47K.js → open-5FAYV6JM.js} +2 -2
- package/dist/bundle/{openai-UGNJPON6.js → openai-57CRSGLH.js} +7 -7
- package/dist/bundle/{process-KQ5PLFEX.js → process-NAW4COYH.js} +1 -1
- package/dist/bundle/{program-WSVJK4LB.js → program-CFJAGFYD.js} +158 -71
- package/dist/bundle/{prompt-KA6BE6HG.js → prompt-FT2MMVS7.js} +2 -2
- package/dist/bundle/{recognize-ZM75USNS.js → recognize-PEYPOI3Q.js} +1 -1
- package/dist/bundle/{remote-I5MIVEGH.js → remote-FQAXACFW.js} +4 -4
- package/dist/bundle/{rerank-46KI3363.js → rerank-4KEB4X6T.js} +4 -4
- package/dist/bundle/{serve-QE4CSBAB.js → serve-LCTIHO37.js} +6 -6
- package/dist/bundle/server-AQTWRRAJ.js +61 -0
- package/dist/bundle/server-JIFODLCU.js +48 -0
- package/dist/bundle/{server-EFNICTJC.js → server-XQLRMM73.js} +49 -50
- package/dist/bundle/{state-2W2BFTG7.js → state-YF4M4RHC.js} +3 -3
- package/dist/bundle/{store-M4Q4BIDW.js → store-EQEMYMCC.js} +11 -9
- package/dist/bundle/store-maintenance-command-7IC3LTYY.js +47 -0
- package/dist/bundle/update-T237KLFA.js +68 -0
- package/dist/examples.d.ts.map +1 -1
- package/dist/examples.js +6 -0
- package/dist/examples.js.map +1 -1
- package/dist/models/command.d.ts +2 -2
- package/dist/models/command.d.ts.map +1 -1
- package/dist/models/command.js +4 -1
- package/dist/models/command.js.map +1 -1
- package/dist/notes/embed.d.ts +25 -2
- package/dist/notes/embed.d.ts.map +1 -1
- package/dist/notes/embed.js +80 -6
- package/dist/notes/embed.js.map +1 -1
- package/dist/program.d.ts +4 -2
- package/dist/program.d.ts.map +1 -1
- package/dist/program.js +3 -3
- package/dist/program.js.map +1 -1
- package/dist/run/import.d.ts +5 -3
- package/dist/run/import.d.ts.map +1 -1
- package/dist/run/import.js +17 -4
- package/dist/run/import.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +2 -2
- package/dist/bundle/auto-MWAOY7KC.js +0 -86
- package/dist/bundle/chunk-YO4PT3MD.js +0 -33
- package/dist/bundle/failure-2V4YXERK.js +0 -66
- package/dist/bundle/server-J3VKU7NQ.js +0 -48
- package/dist/bundle/server-MLOQ4RS7.js +0 -61
- package/dist/bundle/store-maintenance-command-KYCDTJQ2.js +0 -48
- package/dist/bundle/update-JEYA6GXL.js +0 -69
- /package/dist/bundle/{chunk-DZ2GIEEY.js → chunk-GFNWVGLD.js} +0 -0
|
@@ -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-3FDJSMLJ.js";
|
|
7
7
|
import {
|
|
8
8
|
loadConfig,
|
|
9
9
|
updateConfig
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-F6E7DSJO.js";
|
|
11
11
|
import {
|
|
12
12
|
failingNotice,
|
|
13
13
|
recordRun
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-5SD4CV2D.js";
|
|
15
15
|
import {
|
|
16
16
|
InvalidArgumentError,
|
|
17
17
|
LOCAL_READ,
|
|
18
18
|
LOCAL_WRITE,
|
|
19
19
|
annotate
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-OEPBIWHI.js";
|
|
21
21
|
import {
|
|
22
22
|
installerOf
|
|
23
23
|
} from "./chunk-IK6KH3RE.js";
|
|
@@ -3,7 +3,7 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
SAMPLE_RATE,
|
|
5
5
|
decodeOgg
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-OIHKFGHK.js";
|
|
7
7
|
import {
|
|
8
8
|
importFrom
|
|
9
9
|
} from "./chunk-Y5E2WNWB.js";
|
|
@@ -14,7 +14,7 @@ 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.612.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_2b92b8a5a9536cd50d24d35c3ce22b6a/node_modules/@wirecat/cli-core/dist/speech/decode.js
|
|
18
18
|
import { spawn } from "node:child_process";
|
|
19
19
|
import { mkdtemp, rm, writeFile } from "node:fs/promises";
|
|
20
20
|
import { createRequire } from "node:module";
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
refuseLacking,
|
|
14
14
|
servicesFor,
|
|
15
15
|
throughWrapper
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-233N77WN.js";
|
|
17
17
|
import {
|
|
18
18
|
CEILING_KEY,
|
|
19
19
|
LOG_ATTRIBUTES,
|
|
@@ -38,23 +38,23 @@ import {
|
|
|
38
38
|
rememberAccount,
|
|
39
39
|
rootOf2 as rootOf,
|
|
40
40
|
skipFlagFor
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-OEPBIWHI.js";
|
|
42
42
|
import {
|
|
43
43
|
providerErrorKey
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-JAJSTFBB.js";
|
|
45
45
|
import {
|
|
46
46
|
MESSENGER_CHANGE_REFUSAL,
|
|
47
47
|
readOnlyRefusal
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-PSYZ33UQ.js";
|
|
49
49
|
import {
|
|
50
50
|
servingProfiles
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-2Q55K5HY.js";
|
|
52
52
|
import {
|
|
53
53
|
openStore
|
|
54
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-6NHJ4TTJ.js";
|
|
55
55
|
import {
|
|
56
56
|
isCliFailure
|
|
57
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-YRHLPKTG.js";
|
|
58
58
|
import {
|
|
59
59
|
logRecordOf,
|
|
60
60
|
realSleep,
|
|
@@ -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.612.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_2b92b8a5a9536cd50d24d35c3ce22b6a/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.612.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_2b92b8a5a9536cd50d24d35c3ce22b6a/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.612.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_2b92b8a5a9536cd50d24d35c3ce22b6a/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.612.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_2b92b8a5a9536cd50d24d35c3ce22b6a/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.612.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_2b92b8a5a9536cd50d24d35c3ce22b6a/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.612.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_2b92b8a5a9536cd50d24d35c3ce22b6a/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.612.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_2b92b8a5a9536cd50d24d35c3ce22b6a/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.612.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_2b92b8a5a9536cd50d24d35c3ce22b6a/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.612.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_2b92b8a5a9536cd50d24d35c3ce22b6a/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.612.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_2b92b8a5a9536cd50d24d35c3ce22b6a/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.612.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_2b92b8a5a9536cd50d24d35c3ce22b6a/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.612.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_2b92b8a5a9536cd50d24d35c3ce22b6a/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.612.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_2b92b8a5a9536cd50d24d35c3ce22b6a/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.612.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_2b92b8a5a9536cd50d24d35c3ce22b6a/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,7 +2,7 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
unit
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-3FPF5DBU.js";
|
|
6
6
|
import {
|
|
7
7
|
CliError
|
|
8
8
|
} from "./chunk-4ZW6ZJ2V.js";
|
|
@@ -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.612.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_2b92b8a5a9536cd50d24d35c3ce22b6a/node_modules/@wirecat/cli-core/dist/embeddings/remote.js
|
|
14
14
|
import { setTimeout } from "node:timers/promises";
|
|
15
15
|
var OPENAI_URL = "https://api.openai.com/v1";
|
|
16
16
|
var OPENAI_MODELS = {
|
|
@@ -7,10 +7,10 @@ import {
|
|
|
7
7
|
agentJson,
|
|
8
8
|
commandAvailability,
|
|
9
9
|
failureContext
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-MQCBJGXA.js";
|
|
11
11
|
import {
|
|
12
12
|
callerOf
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-7NKBX7FC.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-233N77WN.js";
|
|
22
22
|
import {
|
|
23
23
|
DEFAULT_OUTPUT_BYTES,
|
|
24
24
|
ENTITIES,
|
|
@@ -42,22 +42,22 @@ import {
|
|
|
42
42
|
sealed,
|
|
43
43
|
startRecording,
|
|
44
44
|
traceOf
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-OEPBIWHI.js";
|
|
46
46
|
import {
|
|
47
47
|
currentCaller,
|
|
48
48
|
keepsSuccess,
|
|
49
49
|
runContextOf,
|
|
50
50
|
withCaller
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-JAJSTFBB.js";
|
|
52
52
|
import {
|
|
53
53
|
queryDescription
|
|
54
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-RRHSJ7CR.js";
|
|
55
55
|
import {
|
|
56
56
|
storeDamaged
|
|
57
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-YRHLPKTG.js";
|
|
58
58
|
import {
|
|
59
59
|
MAX_BUFFERED_INPUT
|
|
60
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-B4VCZOLF.js";
|
|
61
61
|
import {
|
|
62
62
|
captureStreams,
|
|
63
63
|
traceIdOf
|
|
@@ -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.612.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_2b92b8a5a9536cd50d24d35c3ce22b6a/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.82.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
|
|
@@ -3106,7 +3106,7 @@ var VOCABULARY = defineVocabulary({
|
|
|
3106
3106
|
]
|
|
3107
3107
|
});
|
|
3108
3108
|
|
|
3109
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3109
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.612.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_2b92b8a5a9536cd50d24d35c3ce22b6a/node_modules/@wirecat/cli-core/dist/mcp/agent.js
|
|
3110
3110
|
var TYPES = new Map(VOCABULARY.flags.map((flag) => [flag.name, flag.type]));
|
|
3111
3111
|
var snake = /* @__PURE__ */ __name((name) => name.replaceAll("|", "_or_").replace(/[^a-z0-9]+/gi, "_"), "snake");
|
|
3112
3112
|
var longOf = /* @__PURE__ */ __name((option) => option.flags.match(/--[a-z0-9][a-z0-9-]*/)?.[0], "longOf");
|
|
@@ -3329,7 +3329,7 @@ var runCommandForAgent = /* @__PURE__ */ __name(async (program, path, input, ctx
|
|
|
3329
3329
|
}
|
|
3330
3330
|
}, "runCommandForAgent");
|
|
3331
3331
|
|
|
3332
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3332
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.612.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_2b92b8a5a9536cd50d24d35c3ce22b6a/node_modules/@wirecat/cli-core/dist/mcp/tool.js
|
|
3333
3333
|
var limit = optional(pipe(number(), integer(), minValue(1), maxValue(100), description("how many")));
|
|
3334
3334
|
var page = optional(pipe(number(), integer(), minValue(1), description("which page, from 1")));
|
|
3335
3335
|
var message = pipe(
|
|
@@ -3588,7 +3588,7 @@ var failed = /* @__PURE__ */ __name((error, errors, effects) => {
|
|
|
3588
3588
|
return mcpErrorResult(JSON.parse(agentJson(errorObjectOf(storeDamaged(error), context))));
|
|
3589
3589
|
}, "failed");
|
|
3590
3590
|
|
|
3591
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3591
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.612.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_2b92b8a5a9536cd50d24d35c3ce22b6a/node_modules/@wirecat/cli-core/dist/mcp/surface.js
|
|
3592
3592
|
import { randomUUID } from "node:crypto";
|
|
3593
3593
|
var MATCHES = 8;
|
|
3594
3594
|
var ANSWER = answerSchema();
|
|
@@ -7,12 +7,12 @@ import {
|
|
|
7
7
|
agentOf,
|
|
8
8
|
clientHash,
|
|
9
9
|
currentCaller
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-JAJSTFBB.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.612.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_2b92b8a5a9536cd50d24d35c3ce22b6a/node_modules/@wirecat/cli-core/dist/mcp/caller.js
|
|
16
16
|
var callingAgent = /* @__PURE__ */ __name((fallback, caller = currentCaller()) => {
|
|
17
17
|
const client = caller?.agent?.client?.name;
|
|
18
18
|
if (client && client !== "unknown")
|
|
@@ -7,7 +7,7 @@ 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.612.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_2b92b8a5a9536cd50d24d35c3ce22b6a/node_modules/@wirecat/cli-core/dist/cli/input-policy.js
|
|
11
11
|
var MAX_BUFFERED_INPUT = 16 * 1024 * 1024;
|
|
12
12
|
var MAX_SECRET_INPUT = 64 * 1024;
|
|
13
13
|
var policies = /* @__PURE__ */ new WeakMap();
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
inspectConfig,
|
|
5
5
|
loadConfig,
|
|
6
6
|
memoPermissionKeys
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-F6E7DSJO.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-OEPBIWHI.js";
|
|
17
17
|
import {
|
|
18
18
|
setupPermissionCeiling
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-ETYD55QD.js";
|
|
20
20
|
import {
|
|
21
21
|
readOnlyLockOf,
|
|
22
22
|
readOnlyRefusal
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-PSYZ33UQ.js";
|
|
24
24
|
import {
|
|
25
25
|
APP
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-R7ZD7TNI.js";
|
|
27
27
|
import {
|
|
28
28
|
CliError
|
|
29
29
|
} from "./chunk-4ZW6ZJ2V.js";
|
|
@@ -7,7 +7,7 @@ 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.612.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_2b92b8a5a9536cd50d24d35c3ce22b6a/node_modules/@wirecat/cli-core/dist/store/path.js
|
|
11
11
|
import { userInfo } from "node:os";
|
|
12
12
|
import { isAbsolute, join, relative, resolve } from "node:path";
|
|
13
13
|
var wirecatDirectory = /* @__PURE__ */ __name((env = process.env, platform) => resolvePaths({ appName: "WireCat", prefix: "WIRECAT", env, ...platform ? { platform } : {} }).state, "wirecatDirectory");
|
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
readSharedSection,
|
|
5
5
|
sharedConfigPath,
|
|
6
6
|
writeSharedSection
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-OQSOQYSQ.js";
|
|
8
8
|
import {
|
|
9
9
|
storePath
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-D4PK5OXW.js";
|
|
11
11
|
import {
|
|
12
12
|
CliError
|
|
13
13
|
} from "./chunk-4ZW6ZJ2V.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.612.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_2b92b8a5a9536cd50d24d35c3ce22b6a/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";
|