@wirecat/cli-memo 0.131.73 → 0.131.75
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-L5QBYI3V.js → all-profiles-LUGN5BHP.js} +9 -9
- package/dist/bundle/{anthropic-XXKHNCQS.js → anthropic-W7JXDZPL.js} +5 -5
- package/dist/bundle/{app-server-FDMP3IBP.js → app-server-TRRARE66.js} +50 -49
- package/dist/bundle/auto-AQAKW55Z.js +89 -0
- package/dist/bundle/{bun-VLN4HBWB.js → bun-S3JZIN4S.js} +2 -2
- package/dist/bundle/{bun-sqlite-KJCYXNMS.js → bun-sqlite-X3WQN3CV.js} +5 -5
- package/dist/bundle/{chunk-ZTONSM5X.js → chunk-2EZFUIL4.js} +2 -2
- package/dist/bundle/{chunk-HBP7AQXX.js → chunk-2QND7VJS.js} +12 -12
- package/dist/bundle/{chunk-2BH2RNFR.js → chunk-346PWQJF.js} +8 -8
- package/dist/bundle/{chunk-B7ATMWVO.js → chunk-4KDORB7C.js} +12 -37
- package/dist/bundle/{chunk-V3JOIUVB.js → chunk-4O2MYFYC.js} +4 -4
- package/dist/bundle/{chunk-I6MGDSYH.js → chunk-4QGUBKN5.js} +6 -6
- package/dist/bundle/{chunk-YDGZJK6U.js → chunk-4XI7S3PO.js} +24 -24
- package/dist/bundle/{chunk-XGXEWKR7.js → chunk-5CTOWPOL.js} +12 -12
- package/dist/bundle/{chunk-6OPZTBRR.js → chunk-5RLCKP5E.js} +59 -35
- package/dist/bundle/{chunk-VQUSPMYO.js → chunk-6AOPUQTC.js} +1 -1
- package/dist/bundle/chunk-6FTZ53TT.js +18 -0
- package/dist/bundle/{chunk-BTVND2RV.js → chunk-6I4DOBSD.js} +13 -13
- package/dist/bundle/{chunk-WJNLBQSV.js → chunk-6VMIMAZ2.js} +544 -586
- package/dist/bundle/{chunk-BBLT77AO.js → chunk-7Y4HUYI3.js} +26 -14
- package/dist/bundle/{chunk-JLC2RE4Y.js → chunk-AOHT5FNX.js} +82 -82
- package/dist/bundle/{chunk-VPR47AG4.js → chunk-BDVM5652.js} +1 -1
- package/dist/bundle/{chunk-MM3OMWST.js → chunk-C6MWOBEL.js} +24 -22
- package/dist/bundle/{chunk-LHZ4QBWB.js → chunk-E2PSOSTN.js} +2 -2
- package/dist/bundle/{chunk-J7ESMDVV.js → chunk-E74VWHZ2.js} +1 -1
- package/dist/bundle/{chunk-MLN4DPXN.js → chunk-EWRHTZD3.js} +17 -17
- package/dist/bundle/{chunk-FMSXN2N6.js → chunk-FGMFJUHR.js} +1058 -774
- package/dist/bundle/{chunk-A7QXBRUH.js → chunk-G45BLLDR.js} +4 -4
- package/dist/bundle/{chunk-KK3ZHBMI.js → chunk-GFVSZY4J.js} +26 -2
- package/dist/bundle/{chunk-IUEYR3TK.js → chunk-IQIM4UC7.js} +10 -10
- package/dist/bundle/{chunk-JABLJBXL.js → chunk-JINEHQ2T.js} +4927 -4920
- package/dist/bundle/chunk-KA5MDFLU.js +138 -0
- package/dist/bundle/{chunk-IKH4RCJO.js → chunk-KDBAY5JZ.js} +1 -1
- package/dist/bundle/{chunk-LJCT7YG6.js → chunk-KEBL3PY4.js} +4 -4
- package/dist/bundle/{chunk-C3UOKLIT.js → chunk-KUFOM3SB.js} +2 -2
- package/dist/bundle/{chunk-ZIGVDRSI.js → chunk-KYJBGCTC.js} +2 -2
- package/dist/bundle/{chunk-R3PK4Y7C.js → chunk-LPGE6ACC.js} +2 -2
- package/dist/bundle/{chunk-6ZRBQTKZ.js → chunk-LX3OSTBD.js} +4 -4
- package/dist/bundle/{chunk-NMOWIFH3.js → chunk-MPZBV5RL.js} +8 -8
- package/dist/bundle/{chunk-H74CWBSY.js → chunk-NR633L2N.js} +4 -4
- package/dist/bundle/{chunk-DSU6UR2X.js → chunk-NT5IOEEK.js} +1 -1
- package/dist/bundle/chunk-OWUEEVF6.js +177 -0
- package/dist/bundle/{chunk-L62FWN3Y.js → chunk-OYKQX4H3.js} +1 -1
- package/dist/bundle/{chunk-W6JPIP5C.js → chunk-QKWM4VK4.js} +6 -6
- package/dist/bundle/chunk-QYJJBE56.js +109 -0
- package/dist/bundle/{chunk-JPXDDRBD.js → chunk-RZS24U4N.js} +11 -11
- package/dist/bundle/{chunk-EI2P5E4C.js → chunk-SCYHDYLI.js} +3 -1
- package/dist/bundle/{chunk-OGUXOAOH.js → chunk-SIOPF2UG.js} +6 -6
- package/dist/bundle/{chunk-RB266FS6.js → chunk-SIQDO5DN.js} +4 -4
- package/dist/bundle/{chunk-O5KXCQE4.js → chunk-SJD4KTK2.js} +4 -4
- package/dist/bundle/{chunk-PAHBDQ5A.js → chunk-UIAGASGP.js} +6 -6
- package/dist/bundle/{chunk-ZI5Y2EUA.js → chunk-UU3OAPGO.js} +7 -7
- package/dist/bundle/{chunk-ON7ZROFP.js → chunk-V7BDQIZS.js} +2 -2
- package/dist/bundle/{chunk-EH7ACKFW.js → chunk-VB4OLJHK.js} +3 -3
- package/dist/bundle/{chunk-SILEPITK.js → chunk-VFKCZJFT.js} +25 -35
- package/dist/bundle/{chunk-HE2F4JII.js → chunk-VYCLOFPC.js} +24 -9
- package/dist/bundle/{chunk-UUBV5ATQ.js → chunk-W46O6RJ5.js} +20 -20
- package/dist/bundle/{chunk-QHLEMEF3.js → chunk-W64FO6DD.js} +53 -48
- package/dist/bundle/{chunk-LG5SQGNM.js → chunk-WKLF7CAM.js} +47 -45
- package/dist/bundle/{chunk-X35Q5CHE.js → chunk-WZHCQ4VZ.js} +8 -8
- package/dist/bundle/{chunk-PF6LXPK5.js → chunk-XMHWGHID.js} +4280 -4278
- package/dist/bundle/chunk-XPCTY6XV.js +116 -0
- package/dist/bundle/{chunk-E75LK7GD.js → chunk-XPSXVUZG.js} +3 -3
- package/dist/bundle/{chunk-XM6ZAPFW.js → chunk-XQ3RZU3J.js} +1 -1
- package/dist/bundle/{chunk-LOYI3STE.js → chunk-XQHOMQNZ.js} +4 -4
- package/dist/bundle/{chunk-K54MCZWM.js → chunk-YB4KGUXY.js} +3 -3
- package/dist/bundle/{chunk-US2HTCJA.js → chunk-YDTGYYOR.js} +4 -4
- package/dist/bundle/{chunk-EQLOQOIB.js → chunk-YLYZNPAZ.js} +2 -2
- package/dist/bundle/{chunk-BOZEBD3I.js → chunk-ZISVFVQU.js} +1445 -832
- package/dist/bundle/{chunk-IDCYBSML.js → chunk-ZL63GL3Y.js} +3 -3
- package/dist/bundle/{chunk-2C323QNQ.js → chunk-ZP2XI5DR.js} +9 -9
- package/dist/bundle/{chunk-3CANRF2G.js → chunk-ZTZLAGZA.js} +3 -3
- package/dist/bundle/{chunk-FSXQLNU4.js → chunk-ZXW5FPH2.js} +1 -1
- package/dist/bundle/command-contract-QQG343ZQ.js +32 -0
- package/dist/bundle/command-server-entry-XVUPTSSH.js +145 -0
- package/dist/bundle/{decode-OS6Y6ICA.js → decode-METZOSMG.js} +5 -5
- package/dist/bundle/{dispatch-VJSUBAUM.js → dispatch-PHB2Y6ZL.js} +8 -8
- package/dist/bundle/{echarts-JKGDUDYL.js → echarts-EBSP4VCK.js} +2 -2
- package/dist/bundle/{embed-UB4LH6MF.js → embed-GVVU7N7W.js} +6 -6
- package/dist/bundle/{embedder-TUQBG22Y.js → embedder-6BZOYAXV.js} +9 -9
- package/dist/bundle/entry-TBOYUMWB.js +21 -0
- package/dist/bundle/failure-EKMEAYZH.js +69 -0
- package/dist/bundle/{failure-GLF7OMMM.js → failure-OBT7CUVW.js} +2 -2
- package/dist/bundle/{first-run-VNJHZYGS.js → first-run-HQ4GA4EF.js} +11 -11
- package/dist/bundle/first-screen-6T65PQ37.js +30 -0
- package/dist/bundle/{instructions-Q6IZQUU7.js → instructions-VDKK3Y5Z.js} +1 -1
- package/dist/bundle/{mcp-H2WYFBNW.js → mcp-5275YLID.js} +2 -2
- package/dist/bundle/mcp-DEY765VA.js +90 -0
- package/dist/bundle/memo.js +16 -16
- package/dist/bundle/{node-ZSSIVKVC.js → node-HWGZYNUX.js} +2 -2
- package/dist/bundle/{node-sqlite-AUNJSQQL.js → node-sqlite-PSYENWGS.js} +6 -6
- package/dist/bundle/{oauth-2MTJFCMI.js → oauth-TQGMUJK2.js} +7 -7
- package/dist/bundle/{open-U7RC27MJ.js → open-KDDJDKCE.js} +5 -5
- package/dist/bundle/openai-QPGCUM4T.js +24 -0
- package/dist/bundle/{process-UEQX5STY.js → process-APNTXJJE.js} +1 -1
- package/dist/bundle/{program-G3F26HW7.js → program-OGDARQTX.js} +3060 -2547
- package/dist/bundle/{prompt-F23FC5PJ.js → prompt-BMBZCLGF.js} +5 -5
- package/dist/bundle/{recognize-ZVEGVD56.js → recognize-3SEY2MAR.js} +4 -4
- package/dist/bundle/{remote-CZXQS7PS.js → remote-ODH54UXO.js} +7 -7
- package/dist/bundle/{rerank-IRFXSVVO.js → rerank-JQHBNTUK.js} +7 -7
- package/dist/bundle/{serve-6CIMU5HP.js → serve-C22ZONSM.js} +9 -9
- package/dist/bundle/server-3UX245DY.js +62 -0
- package/dist/bundle/server-6G5XF3V5.js +48 -0
- package/dist/bundle/{server-H24MAUT2.js → server-ADPO4V4B.js} +70 -66
- package/dist/bundle/{state-TRWZWXB5.js → state-M3VGXSV4.js} +6 -6
- package/dist/bundle/{store-E4QUOOLX.js → store-GSZAXU3A.js} +13 -13
- package/dist/bundle/store-maintenance-command-QMTALGSQ.js +47 -0
- package/dist/bundle/update-HDJ23IV5.js +72 -0
- package/dist/context/context.d.ts.map +1 -1
- package/dist/context/context.js +4 -2
- package/dist/context/context.js.map +1 -1
- package/dist/contract-overrides/search.d.ts.map +1 -1
- package/dist/contract-overrides/search.js +6 -0
- package/dist/contract-overrides/search.js.map +1 -1
- package/dist/digest/backfill.d.ts +1 -1
- package/dist/digest/backfill.d.ts.map +1 -1
- package/dist/digest/backfill.js +71 -42
- package/dist/digest/backfill.js.map +1 -1
- package/dist/digest/brief.d.ts +14 -3
- package/dist/digest/brief.d.ts.map +1 -1
- package/dist/digest/brief.js +84 -34
- package/dist/digest/brief.js.map +1 -1
- package/dist/digest/command.d.ts +3 -0
- package/dist/digest/command.d.ts.map +1 -1
- package/dist/digest/command.js +23 -0
- package/dist/digest/command.js.map +1 -1
- package/dist/digest/digest-commands.d.ts +6 -0
- package/dist/digest/digest-commands.d.ts.map +1 -0
- package/dist/digest/digest-commands.js +241 -0
- package/dist/digest/digest-commands.js.map +1 -0
- package/dist/digest/digest.d.ts +5 -2
- package/dist/digest/digest.d.ts.map +1 -1
- package/dist/digest/digest.js +29 -8
- package/dist/digest/digest.js.map +1 -1
- package/dist/digest/digests.d.ts +72 -0
- package/dist/digest/digests.d.ts.map +1 -0
- package/dist/digest/digests.js +122 -0
- package/dist/digest/digests.js.map +1 -0
- package/dist/digest/tasks.d.ts +7 -4
- package/dist/digest/tasks.d.ts.map +1 -1
- package/dist/digest/tasks.js +13 -5
- package/dist/digest/tasks.js.map +1 -1
- package/dist/examples.d.ts.map +1 -1
- package/dist/examples.js +17 -1
- package/dist/examples.js.map +1 -1
- package/dist/people/command.d.ts +0 -1
- package/dist/people/command.d.ts.map +1 -1
- package/dist/people/command.js +114 -12
- package/dist/people/command.js.map +1 -1
- package/dist/program.d.ts +4 -1
- package/dist/program.d.ts.map +1 -1
- package/dist/program.js +9 -5
- package/dist/program.js.map +1 -1
- package/dist/reasons.d.ts.map +1 -1
- package/dist/reasons.js +24 -0
- package/dist/reasons.js.map +1 -1
- package/dist/rows.d.ts.map +1 -1
- package/dist/rows.js +13 -1
- package/dist/rows.js.map +1 -1
- package/dist/schedule/command.d.ts +8 -0
- package/dist/schedule/command.d.ts.map +1 -1
- package/dist/schedule/command.js +4 -2
- package/dist/schedule/command.js.map +1 -1
- package/dist/search/answers.d.ts +6 -1
- package/dist/search/answers.d.ts.map +1 -1
- package/dist/search/answers.js +17 -1
- package/dist/search/answers.js.map +1 -1
- package/dist/search/command.d.ts.map +1 -1
- package/dist/search/command.js +13 -2
- package/dist/search/command.js.map +1 -1
- package/dist/search/lane-gates.d.ts +4 -3
- package/dist/search/lane-gates.d.ts.map +1 -1
- package/dist/search/lane-gates.js +13 -7
- package/dist/search/lane-gates.js.map +1 -1
- package/dist/search/people.d.ts +2 -0
- package/dist/search/people.d.ts.map +1 -1
- package/dist/search/people.js +11 -4
- package/dist/search/people.js.map +1 -1
- package/dist/search/search.d.ts +5 -1
- package/dist/search/search.d.ts.map +1 -1
- package/dist/search/search.js +5 -1
- 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/dist/bundle/auto-YQAECIZA.js +0 -85
- package/dist/bundle/chunk-KQTR6YA4.js +0 -262
- package/dist/bundle/command-contract-6HJ322BP.js +0 -32
- package/dist/bundle/entry-N4NCIQYH.js +0 -18
- package/dist/bundle/failure-BJEFFYH3.js +0 -65
- package/dist/bundle/first-screen-4XGF2NZ3.js +0 -30
- package/dist/bundle/mcp-REIASUJR.js +0 -90
- package/dist/bundle/openai-2SJCG6XM.js +0 -23
- package/dist/bundle/server-27KXLL4E.js +0 -61
- package/dist/bundle/server-TWMUWMFM.js +0 -48
- package/dist/bundle/store-maintenance-command-GLHRB2VZ.js +0 -47
- package/dist/bundle/update-QQEM73O5.js +0 -68
- /package/dist/bundle/{chunk-SYWHHQMC.js → chunk-G5GW3FFJ.js} +0 -0
- /package/dist/bundle/{chunk-ZOWQ5B33.js → chunk-IXSUVHW6.js} +0 -0
|
@@ -7,21 +7,27 @@ import {
|
|
|
7
7
|
capability,
|
|
8
8
|
ceilingRefusal,
|
|
9
9
|
chatIdIn,
|
|
10
|
-
chatReferenceOf,
|
|
11
|
-
ensureAccount,
|
|
12
10
|
floodPathFor,
|
|
13
|
-
foldName,
|
|
14
11
|
guardFor,
|
|
15
12
|
holdEnd,
|
|
16
|
-
isId,
|
|
17
|
-
pickPerson,
|
|
18
13
|
profilesOnAccount,
|
|
19
14
|
recipientsPathFor,
|
|
20
15
|
refuseLacking,
|
|
21
16
|
servicesFor,
|
|
22
17
|
throughWrapper,
|
|
23
18
|
withFileLockAsync
|
|
24
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-6VMIMAZ2.js";
|
|
20
|
+
import {
|
|
21
|
+
servingProfiles
|
|
22
|
+
} from "./chunk-ZL63GL3Y.js";
|
|
23
|
+
import {
|
|
24
|
+
chatReferenceOf,
|
|
25
|
+
ensureAccount,
|
|
26
|
+
foldName,
|
|
27
|
+
isId,
|
|
28
|
+
openStore,
|
|
29
|
+
pickPerson
|
|
30
|
+
} from "./chunk-ZISVFVQU.js";
|
|
25
31
|
import {
|
|
26
32
|
CEILING_KEY,
|
|
27
33
|
WRITE_KEYS,
|
|
@@ -41,30 +47,24 @@ import {
|
|
|
41
47
|
rememberAccount,
|
|
42
48
|
rootOf2 as rootOf,
|
|
43
49
|
skipFlagFor
|
|
44
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-XMHWGHID.js";
|
|
45
51
|
import {
|
|
46
52
|
providerErrorKey
|
|
47
|
-
} from "./chunk-
|
|
48
|
-
import {
|
|
49
|
-
servingProfiles
|
|
50
|
-
} from "./chunk-IDCYBSML.js";
|
|
51
|
-
import {
|
|
52
|
-
openStore
|
|
53
|
-
} from "./chunk-BOZEBD3I.js";
|
|
53
|
+
} from "./chunk-UU3OAPGO.js";
|
|
54
54
|
import {
|
|
55
55
|
isCliFailure
|
|
56
|
-
} from "./chunk-
|
|
56
|
+
} from "./chunk-VB4OLJHK.js";
|
|
57
57
|
import {
|
|
58
58
|
resolvePaths
|
|
59
|
-
} from "./chunk-
|
|
59
|
+
} from "./chunk-W46O6RJ5.js";
|
|
60
60
|
import {
|
|
61
61
|
CliError
|
|
62
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-2EZFUIL4.js";
|
|
63
63
|
import {
|
|
64
64
|
__name
|
|
65
65
|
} from "./chunk-ZVVMGPBJ.js";
|
|
66
66
|
|
|
67
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
67
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/cli/messenger/ask.js
|
|
68
68
|
import { openSync } from "node:fs";
|
|
69
69
|
import { createInterface } from "node:readline";
|
|
70
70
|
import { ReadStream } from "node:tty";
|
|
@@ -119,7 +119,7 @@ var terminalAsker = /* @__PURE__ */ __name((command) => async (key, request) =>
|
|
|
119
119
|
throw new CliError("cancelled", `${key}: not done \u2014 the answer was no`);
|
|
120
120
|
}, "terminalAsker");
|
|
121
121
|
|
|
122
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
122
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/sends/pace.js
|
|
123
123
|
import { readFileSync, renameSync, writeFileSync } from "node:fs";
|
|
124
124
|
import { join } from "node:path";
|
|
125
125
|
var DEFAULT_PACE = { perMinute: 60, burst: 20 };
|
|
@@ -209,7 +209,7 @@ var waitForTurn = /* @__PURE__ */ __name(async (pacer, options) => {
|
|
|
209
209
|
await (options.sleep ?? ((ms) => new Promise((resolve) => setTimeout(resolve, ms))))(waitMs);
|
|
210
210
|
}, "waitForTurn");
|
|
211
211
|
|
|
212
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
212
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/cli/permission-keys.js
|
|
213
213
|
var pathOf = /* @__PURE__ */ __name((command) => {
|
|
214
214
|
const words = [];
|
|
215
215
|
for (let at = command; at?.parent; at = at.parent)
|
|
@@ -269,7 +269,7 @@ var refuseUnknownPermissionKeys = /* @__PURE__ */ __name((command, settings, too
|
|
|
269
269
|
throw new CliError("validation_error", `--permission ${key} names no command`, { permission: key });
|
|
270
270
|
}, "refuseUnknownPermissionKeys");
|
|
271
271
|
|
|
272
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
272
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/cli/messenger/flooded.js
|
|
273
273
|
var LONG_LIVED = /* @__PURE__ */ new Set(["self", "newSendId", "close", "formatMarkdown", "formatHtml", "storedChats"]);
|
|
274
274
|
var LISTENING = /* @__PURE__ */ new Set(["watch", "feed", "listen", "listenHistory"]);
|
|
275
275
|
var BLOCKING = /* @__PURE__ */ new Set(["frozen", "limited", "banned"]);
|
|
@@ -366,7 +366,7 @@ var flooded = /* @__PURE__ */ __name((messenger, memory, { name, warn, pacer })
|
|
|
366
366
|
});
|
|
367
367
|
}, "flooded");
|
|
368
368
|
|
|
369
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
369
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/cli/messenger/observed.js
|
|
370
370
|
var observed = /* @__PURE__ */ __name((messenger, events) => {
|
|
371
371
|
const timed = /* @__PURE__ */ __name(async (operation, named, work, after) => {
|
|
372
372
|
const write = currentOperation();
|
|
@@ -465,7 +465,7 @@ var byPart = /* @__PURE__ */ __name((batch, counts) => {
|
|
|
465
465
|
counts[part] = (counts[part] ?? 0) + items.length;
|
|
466
466
|
}, "byPart");
|
|
467
467
|
|
|
468
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
468
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/cli/messenger/stored.js
|
|
469
469
|
var REKEY_PACING = { lockMs: 50, pauseMs: 25 };
|
|
470
470
|
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" }) => {
|
|
471
471
|
let warned = false;
|
|
@@ -1041,7 +1041,7 @@ var keep = /* @__PURE__ */ __name(async (store, account, event, seenAt, among, c
|
|
|
1041
1041
|
}
|
|
1042
1042
|
}, "keep");
|
|
1043
1043
|
|
|
1044
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1044
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/cli/messenger/context.js
|
|
1045
1045
|
var lazyStore = /* @__PURE__ */ __name((env, command, version) => {
|
|
1046
1046
|
let opened;
|
|
1047
1047
|
return {
|
|
@@ -3,22 +3,22 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
agentResult,
|
|
5
5
|
failureContext
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import {
|
|
8
|
-
CommanderError,
|
|
9
|
-
judgedEffects,
|
|
10
|
-
metaOf
|
|
11
|
-
} from "./chunk-PF6LXPK5.js";
|
|
12
|
-
import {
|
|
13
|
-
storeDamaged
|
|
14
|
-
} from "./chunk-EH7ACKFW.js";
|
|
6
|
+
} from "./chunk-C6MWOBEL.js";
|
|
15
7
|
import {
|
|
16
8
|
interactiveOf,
|
|
17
9
|
optionsOf
|
|
18
10
|
} from "./chunk-BPGYTJNB.js";
|
|
19
11
|
import {
|
|
20
12
|
APP
|
|
21
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-GFVSZY4J.js";
|
|
14
|
+
import {
|
|
15
|
+
CommanderError,
|
|
16
|
+
judgedEffects,
|
|
17
|
+
metaOf
|
|
18
|
+
} from "./chunk-XMHWGHID.js";
|
|
19
|
+
import {
|
|
20
|
+
storeDamaged
|
|
21
|
+
} from "./chunk-VB4OLJHK.js";
|
|
22
22
|
import {
|
|
23
23
|
ValiError,
|
|
24
24
|
errorObjectOf,
|
|
@@ -26,10 +26,10 @@ import {
|
|
|
26
26
|
exitCodeOfError,
|
|
27
27
|
mcpErrorResult,
|
|
28
28
|
renderError
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-VYCLOFPC.js";
|
|
30
30
|
import {
|
|
31
31
|
CliError
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-2EZFUIL4.js";
|
|
33
33
|
import {
|
|
34
34
|
__name
|
|
35
35
|
} from "./chunk-ZVVMGPBJ.js";
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import { createRequire as __bundleRequire } from "node:module";
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
callerOf
|
|
5
|
+
} from "./chunk-V7BDQIZS.js";
|
|
3
6
|
import {
|
|
4
7
|
UNTRUSTED,
|
|
5
8
|
UNTRUSTED_NEUTRAL,
|
|
@@ -7,10 +10,7 @@ import {
|
|
|
7
10
|
agentJson,
|
|
8
11
|
commandAvailability,
|
|
9
12
|
failureContext
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import {
|
|
12
|
-
callerOf
|
|
13
|
-
} from "./chunk-ON7ZROFP.js";
|
|
13
|
+
} from "./chunk-C6MWOBEL.js";
|
|
14
14
|
import {
|
|
15
15
|
QUERY_ARGUMENT,
|
|
16
16
|
lentConnection,
|
|
@@ -18,7 +18,10 @@ import {
|
|
|
18
18
|
refuseLacking,
|
|
19
19
|
servicesFor,
|
|
20
20
|
storeModeDeps
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-6VMIMAZ2.js";
|
|
22
|
+
import {
|
|
23
|
+
MAX_BUFFERED_INPUT
|
|
24
|
+
} from "./chunk-E2PSOSTN.js";
|
|
22
25
|
import {
|
|
23
26
|
DEFAULT_OUTPUT_BYTES,
|
|
24
27
|
ENTITIES,
|
|
@@ -38,30 +41,27 @@ import {
|
|
|
38
41
|
refuseStoreChange,
|
|
39
42
|
sealed,
|
|
40
43
|
startRecording
|
|
41
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-XMHWGHID.js";
|
|
42
45
|
import {
|
|
43
46
|
currentCaller,
|
|
44
47
|
keepsSuccess,
|
|
45
48
|
runContextOf,
|
|
46
49
|
withCaller
|
|
47
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-UU3OAPGO.js";
|
|
48
51
|
import {
|
|
49
52
|
enclosingTraceId,
|
|
50
53
|
inRun,
|
|
51
54
|
newRunId,
|
|
52
55
|
queryDescription,
|
|
53
56
|
traceOf
|
|
54
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-JINEHQ2T.js";
|
|
55
58
|
import {
|
|
56
59
|
storeDamaged
|
|
57
|
-
} from "./chunk-
|
|
58
|
-
import {
|
|
59
|
-
MAX_BUFFERED_INPUT
|
|
60
|
-
} from "./chunk-LHZ4QBWB.js";
|
|
60
|
+
} from "./chunk-VB4OLJHK.js";
|
|
61
61
|
import {
|
|
62
62
|
captureStreams,
|
|
63
63
|
traceIdOf
|
|
64
|
-
} from "./chunk-
|
|
64
|
+
} from "./chunk-W46O6RJ5.js";
|
|
65
65
|
import {
|
|
66
66
|
COMPACT_FLAG,
|
|
67
67
|
SNAKE_CASE,
|
|
@@ -100,19 +100,19 @@ import {
|
|
|
100
100
|
unknown,
|
|
101
101
|
word,
|
|
102
102
|
writes
|
|
103
|
-
} from "./chunk-
|
|
103
|
+
} from "./chunk-VYCLOFPC.js";
|
|
104
104
|
import {
|
|
105
105
|
CliError,
|
|
106
106
|
errorCodes
|
|
107
|
-
} from "./chunk-
|
|
107
|
+
} from "./chunk-2EZFUIL4.js";
|
|
108
108
|
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.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/mcp/agent.js
|
|
113
113
|
import { Readable } from "node:stream";
|
|
114
114
|
|
|
115
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
115
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.95.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
|
|
116
116
|
var LINT_SEVERITIES = ["high", "medium", "low"];
|
|
117
117
|
var lintRuleSchema = strictObject({
|
|
118
118
|
id: word,
|
|
@@ -252,7 +252,7 @@ var overrideSchema = strictObject({
|
|
|
252
252
|
});
|
|
253
253
|
var overridesSchema = array(overrideSchema);
|
|
254
254
|
|
|
255
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
255
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/audit.js
|
|
256
256
|
var auditRuleSchema = strictObject({ id: word, severity: picklist(LINT_SEVERITIES), summary: text });
|
|
257
257
|
var defineAuditRules = /* @__PURE__ */ __name((input) => parseRegistry("audit rules", array(auditRuleSchema), input, (rules) => duplicates(rules.map((rule) => rule.id)).map((id) => `"${id}" is listed twice`)), "defineAuditRules");
|
|
258
258
|
var AUDIT_RULES = defineAuditRules([
|
|
@@ -378,7 +378,7 @@ var REQUIRED_ROOTS = defineRequiredRoots([
|
|
|
378
378
|
{ path: ["upgrade"], meaning: "updates the CLI" }
|
|
379
379
|
]);
|
|
380
380
|
|
|
381
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
381
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/fields.js
|
|
382
382
|
var fieldRuleSchema = strictObject({ id: word, rule: text });
|
|
383
383
|
var defineFieldRules = /* @__PURE__ */ __name((input) => parseRegistry("output field rules", array(fieldRuleSchema), input, (rules) => duplicates(rules.map((rule) => rule.id)).map((id) => `"${id}" is listed twice`)), "defineFieldRules");
|
|
384
384
|
var FIELD_RULES = defineFieldRules([
|
|
@@ -394,7 +394,7 @@ var FIELD_RULES = defineFieldRules([
|
|
|
394
394
|
}
|
|
395
395
|
]);
|
|
396
396
|
|
|
397
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
397
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/identifiers.js
|
|
398
398
|
var key = pipe(string(), regex(SNAKE_CASE, "a snake_case key"));
|
|
399
399
|
var identifierSchema = strictObject({ key, meaning: text, replaces: optional(array(key)) });
|
|
400
400
|
var defineIdentifiers = /* @__PURE__ */ __name((input) => parseRegistry("identifiers", array(identifierSchema), input, (identifiers) => {
|
|
@@ -416,7 +416,7 @@ var IDENTIFIERS = defineIdentifiers([
|
|
|
416
416
|
{ key: "trace_id", meaning: "the distributed trace a run belongs to, from `traceparent`" }
|
|
417
417
|
]);
|
|
418
418
|
|
|
419
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
419
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-calendar.js
|
|
420
420
|
var CALENDAR_FLAGS = [
|
|
421
421
|
{ name: "--end-time", value: "<time>", role: "value", type: "time", meaning: "when it ends" },
|
|
422
422
|
{
|
|
@@ -490,7 +490,7 @@ var CALENDAR_FLAGS = [
|
|
|
490
490
|
}
|
|
491
491
|
];
|
|
492
492
|
|
|
493
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
493
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-crm.js
|
|
494
494
|
var CRM_FLAGS = [
|
|
495
495
|
{
|
|
496
496
|
name: "--pipeline",
|
|
@@ -640,7 +640,7 @@ var CRM_FLAGS = [
|
|
|
640
640
|
}
|
|
641
641
|
];
|
|
642
642
|
|
|
643
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
643
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-how.js
|
|
644
644
|
var HOW_FLAGS = [
|
|
645
645
|
{
|
|
646
646
|
name: "--limit",
|
|
@@ -867,7 +867,6 @@ var HOW_FLAGS = [
|
|
|
867
867
|
meaning: "expose meeting preparation tools, including their remote schedule reads"
|
|
868
868
|
},
|
|
869
869
|
{ name: "--dry-run", role: "mode", type: "switch", meaning: "judge and plan; do nothing", replaces: ["--estimate"] },
|
|
870
|
-
{ name: "--accept-terms", role: "mode", type: "switch", meaning: "accept the model's licence terms" },
|
|
871
870
|
{
|
|
872
871
|
name: "--as-owner",
|
|
873
872
|
role: "mode",
|
|
@@ -926,6 +925,7 @@ var HOW_FLAGS = [
|
|
|
926
925
|
replaces: ["--expected"]
|
|
927
926
|
},
|
|
928
927
|
{ name: "--full-history", role: "mode", type: "switch", meaning: "keep a chat's whole history, past its limits" },
|
|
928
|
+
{ name: "--with-muted", role: "mode", type: "switch", meaning: "also read the chats the owner muted" },
|
|
929
929
|
{
|
|
930
930
|
name: "--for-everyone",
|
|
931
931
|
role: "mode",
|
|
@@ -1637,8 +1637,14 @@ var HOW_FLAGS = [
|
|
|
1637
1637
|
}
|
|
1638
1638
|
];
|
|
1639
1639
|
|
|
1640
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
1640
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-knowledge.js
|
|
1641
1641
|
var KNOWLEDGE_FLAGS = [
|
|
1642
|
+
{
|
|
1643
|
+
name: "--accept-terms",
|
|
1644
|
+
role: "mode",
|
|
1645
|
+
type: "switch",
|
|
1646
|
+
meaning: "no longer needed; kept so older scripts still run"
|
|
1647
|
+
},
|
|
1642
1648
|
{
|
|
1643
1649
|
name: "--quote",
|
|
1644
1650
|
value: "<ref=words...>",
|
|
@@ -1669,7 +1675,7 @@ var KNOWLEDGE_FLAGS = [
|
|
|
1669
1675
|
}
|
|
1670
1676
|
];
|
|
1671
1677
|
|
|
1672
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
1678
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-mail.js
|
|
1673
1679
|
var MAIL_FLAGS = [
|
|
1674
1680
|
{
|
|
1675
1681
|
name: "--cc",
|
|
@@ -1699,7 +1705,7 @@ var MAIL_FLAGS = [
|
|
|
1699
1705
|
}
|
|
1700
1706
|
];
|
|
1701
1707
|
|
|
1702
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
1708
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-privacy.js
|
|
1703
1709
|
var PRIVACY_FLAGS = [
|
|
1704
1710
|
{
|
|
1705
1711
|
name: "--about-text",
|
|
@@ -1760,7 +1766,7 @@ var PRIVACY_FLAGS = [
|
|
|
1760
1766
|
{ name: "--read-receipts", value: "<on|off>", role: "value", type: "choice", meaning: "send read receipts" }
|
|
1761
1767
|
];
|
|
1762
1768
|
|
|
1763
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
1769
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-schedule.js
|
|
1764
1770
|
var SCHEDULE_FLAGS = [
|
|
1765
1771
|
{
|
|
1766
1772
|
name: "--locale",
|
|
@@ -1793,7 +1799,7 @@ var SCHEDULE_FLAGS = [
|
|
|
1793
1799
|
}
|
|
1794
1800
|
];
|
|
1795
1801
|
|
|
1796
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
1802
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-what.js
|
|
1797
1803
|
var WHAT_FLAGS = [
|
|
1798
1804
|
{
|
|
1799
1805
|
name: "--analysis-provider",
|
|
@@ -2783,7 +2789,7 @@ var WHAT_FLAGS = [
|
|
|
2783
2789
|
}
|
|
2784
2790
|
];
|
|
2785
2791
|
|
|
2786
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2792
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/vocabulary.js
|
|
2787
2793
|
var FLAG_TYPES = [
|
|
2788
2794
|
"switch",
|
|
2789
2795
|
"count",
|
|
@@ -3143,6 +3149,7 @@ var views = [
|
|
|
3143
3149
|
["categories", "the categories a thing takes, with what each means"],
|
|
3144
3150
|
["domains", "the internet domains links point to, most linked first"],
|
|
3145
3151
|
["places", "the street addresses confirmed as places, most mentioned first"],
|
|
3152
|
+
["mentions", "the people and organizations named in a selected thing's text"],
|
|
3146
3153
|
["comments", "replies attached to a selected source item"],
|
|
3147
3154
|
["links", "links held for a selected thing"],
|
|
3148
3155
|
["voters", "people whose recorded votes are visible for a selected poll"],
|
|
@@ -3199,7 +3206,7 @@ var VOCABULARY = defineVocabulary({
|
|
|
3199
3206
|
]
|
|
3200
3207
|
});
|
|
3201
3208
|
|
|
3202
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3209
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/mcp/agent.js
|
|
3203
3210
|
var TYPES = new Map(VOCABULARY.flags.map((flag) => [flag.name, flag.type]));
|
|
3204
3211
|
var snake = /* @__PURE__ */ __name((name) => name.replaceAll("|", "_or_").replace(/[^a-z0-9]+/gi, "_"), "snake");
|
|
3205
3212
|
var longOf = /* @__PURE__ */ __name((option) => option.flags.match(/--[a-z0-9][a-z0-9-]*/)?.[0], "longOf");
|
|
@@ -3422,7 +3429,7 @@ var runCommandForAgent = /* @__PURE__ */ __name(async (program, path, input, ctx
|
|
|
3422
3429
|
}
|
|
3423
3430
|
}, "runCommandForAgent");
|
|
3424
3431
|
|
|
3425
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3432
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/mcp/tool.js
|
|
3426
3433
|
var limit = optional(pipe(number(), integer(), minValue(1), maxValue(100), description("how many")));
|
|
3427
3434
|
var page = optional(pipe(number(), integer(), minValue(1), description("which page, from 1")));
|
|
3428
3435
|
var message = pipe(
|
|
@@ -3681,10 +3688,27 @@ var failed = /* @__PURE__ */ __name((error, errors, effects) => {
|
|
|
3681
3688
|
return mcpErrorResult(JSON.parse(agentJson(errorObjectOf(storeDamaged(error), context))));
|
|
3682
3689
|
}, "failed");
|
|
3683
3690
|
|
|
3684
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3691
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/mcp/surface.js
|
|
3685
3692
|
import { randomUUID } from "node:crypto";
|
|
3686
3693
|
var MATCHES = 8;
|
|
3687
3694
|
var ANSWER = answerSchema();
|
|
3695
|
+
var agentAnswer = /* @__PURE__ */ __name((prefix, writes2) => {
|
|
3696
|
+
const meta = pipe(looseObject({}), description(`run facts; ${prefix}_tools_search shows the full answer`));
|
|
3697
|
+
const next = optional(pipe(array(looseObject({})), description("steps to run next: command and args")));
|
|
3698
|
+
return looseObject(writes2 ? { item: optional(unknown()), next, meta } : {
|
|
3699
|
+
items: optional(array(unknown())),
|
|
3700
|
+
item: optional(unknown()),
|
|
3701
|
+
page: optional(looseObject({ has_more: boolean() })),
|
|
3702
|
+
next,
|
|
3703
|
+
missing: optional(array(looseObject({ field: string(), why: string() }))),
|
|
3704
|
+
meta
|
|
3705
|
+
});
|
|
3706
|
+
}, "agentAnswer");
|
|
3707
|
+
var listedAs = /* @__PURE__ */ __name((prefix, writes2) => {
|
|
3708
|
+
const checked = toStandardJsonSchema(ANSWER);
|
|
3709
|
+
const shown = toStandardJsonSchema(agentAnswer(prefix, writes2))["~standard"].jsonSchema;
|
|
3710
|
+
return { "~standard": { ...checked["~standard"], jsonSchema: shown } };
|
|
3711
|
+
}, "listedAs");
|
|
3688
3712
|
var normal = /* @__PURE__ */ __name((command) => command.trim().toLowerCase().split(/[\s_-]+/).join(" "), "normal");
|
|
3689
3713
|
var haystack = /* @__PURE__ */ __name((command, one) => [command, one.title, one.description, ...Object.keys(one.input.entries)].join(" ").toLowerCase(), "haystack");
|
|
3690
3714
|
var search = /* @__PURE__ */ __name((commands, query) => {
|
|
@@ -3789,7 +3813,7 @@ var registerCommands = /* @__PURE__ */ __name((server, prefix, commands, errors,
|
|
|
3789
3813
|
arguments: optional(pipe(record(string(), unknown()), description("that command's arguments")))
|
|
3790
3814
|
});
|
|
3791
3815
|
server.registerTool(`${prefix}_read`, {
|
|
3792
|
-
outputSchema:
|
|
3816
|
+
outputSchema: listedAs(prefix, false),
|
|
3793
3817
|
title: "Run a reading command",
|
|
3794
3818
|
description: `Run one command that only reads, with the arguments ${prefix}_tools_search showed. ${untrusted}`,
|
|
3795
3819
|
inputSchema: toStandardJsonSchema(call),
|
|
@@ -3797,7 +3821,7 @@ var registerCommands = /* @__PURE__ */ __name((server, prefix, commands, errors,
|
|
|
3797
3821
|
}, runner(false));
|
|
3798
3822
|
if (Object.values(commands).some((one) => one.writes))
|
|
3799
3823
|
server.registerTool(`${prefix}_write`, {
|
|
3800
|
-
outputSchema:
|
|
3824
|
+
outputSchema: listedAs(prefix, true),
|
|
3801
3825
|
title: "Run a writing command",
|
|
3802
3826
|
description: `Run one command that changes something \u2014 ${messenger ? "sends, edits, deletes, joins" : "creates, edits, deletes"} \u2014 with the arguments ${prefix}_tools_search showed. ${untrusted}`,
|
|
3803
3827
|
inputSchema: toStandardJsonSchema(call),
|
|
@@ -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.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/background/processes.js
|
|
8
8
|
import { execFileSync } from "node:child_process";
|
|
9
9
|
import { readdirSync, readFileSync, readlinkSync } from "node:fs";
|
|
10
10
|
var alive = /* @__PURE__ */ __name((pid) => {
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { createRequire as __bundleRequire } from "node:module";
|
|
2
|
+
const require = __bundleRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
__name
|
|
5
|
+
} from "./chunk-ZVVMGPBJ.js";
|
|
6
|
+
|
|
7
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/cli/stdin-field.js
|
|
8
|
+
var fields = /* @__PURE__ */ new WeakMap();
|
|
9
|
+
var readsStdin = /* @__PURE__ */ __name((command, field) => {
|
|
10
|
+
fields.set(command, field);
|
|
11
|
+
return command;
|
|
12
|
+
}, "readsStdin");
|
|
13
|
+
var stdinFieldOf = /* @__PURE__ */ __name((command) => fields.get(command), "stdinFieldOf");
|
|
14
|
+
|
|
15
|
+
export {
|
|
16
|
+
readsStdin,
|
|
17
|
+
stdinFieldOf
|
|
18
|
+
};
|
|
@@ -2,12 +2,12 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
CliError
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-2EZFUIL4.js";
|
|
6
6
|
import {
|
|
7
7
|
__name
|
|
8
8
|
} from "./chunk-ZVVMGPBJ.js";
|
|
9
9
|
|
|
10
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/files/ordinary-file.js
|
|
11
11
|
import { constants } from "node:fs";
|
|
12
12
|
import { lstat, open } from "node:fs/promises";
|
|
13
13
|
var deviceOf = /* @__PURE__ */ __name((dev) => process.platform === "win32" ? BigInt.asUintN(32, dev) : dev, "deviceOf");
|
|
@@ -73,7 +73,7 @@ var syncDirectory = /* @__PURE__ */ __name(async (path) => {
|
|
|
73
73
|
}
|
|
74
74
|
}, "syncDirectory");
|
|
75
75
|
|
|
76
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
76
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/files/atomic-write.js
|
|
77
77
|
import { randomUUID } from "node:crypto";
|
|
78
78
|
import { constants as constants2 } from "node:fs";
|
|
79
79
|
import { link, open as open2, realpath, rename, unlink } from "node:fs/promises";
|
|
@@ -111,7 +111,7 @@ var writeFileAtomic = /* @__PURE__ */ __name(async (path, content, { mode = 384,
|
|
|
111
111
|
}
|
|
112
112
|
}, "writeFileAtomic");
|
|
113
113
|
|
|
114
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
114
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/files/bounded-utf8.js
|
|
115
115
|
var readBoundedUtf8File = /* @__PURE__ */ __name(async (path, { maxBytes }) => {
|
|
116
116
|
if (!Number.isSafeInteger(maxBytes) || maxBytes < 1 || maxBytes > 16 * 1024 * 1024)
|
|
117
117
|
throw new CliError("validation_error", "file maxBytes takes 1\u201316777216 bytes");
|
|
@@ -140,21 +140,21 @@ var readBoundedUtf8File = /* @__PURE__ */ __name(async (path, { maxBytes }) => {
|
|
|
140
140
|
}
|
|
141
141
|
}, "readBoundedUtf8File");
|
|
142
142
|
|
|
143
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
143
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/files/lock.js
|
|
144
144
|
import { mkdir as mkdir2 } from "node:fs/promises";
|
|
145
145
|
import { basename as basename2, dirname as dirname2 } from "node:path";
|
|
146
146
|
|
|
147
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
147
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/files/native-writer-lease.js
|
|
148
148
|
import { randomUUID as randomUUID2 } from "node:crypto";
|
|
149
149
|
import { lstat as lstat3, mkdir, open as open3, realpath as realpath3, rmdir as rmdir2, unlink as unlink4 } from "node:fs/promises";
|
|
150
150
|
import { hostname as hostname2 } from "node:os";
|
|
151
151
|
import { join as join3 } from "node:path";
|
|
152
152
|
|
|
153
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
153
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/files/native-lease-inspection.js
|
|
154
154
|
import { lstat as lstat2, readdir, realpath as realpath2, unlink as unlink2 } from "node:fs/promises";
|
|
155
155
|
import { join as join2 } from "node:path";
|
|
156
156
|
|
|
157
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
157
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/files/native-lease-owner.js
|
|
158
158
|
import { hostname } from "node:os";
|
|
159
159
|
var missingLeaseFile = /* @__PURE__ */ __name((error) => typeof error === "object" && error !== null && "code" in error && error.code === "ENOENT", "missingLeaseFile");
|
|
160
160
|
var readLeaseOwner = /* @__PURE__ */ __name(async (path, name, signal) => {
|
|
@@ -199,7 +199,7 @@ var leaseOwnerStatus = /* @__PURE__ */ __name((owner) => {
|
|
|
199
199
|
}
|
|
200
200
|
}, "leaseOwnerStatus");
|
|
201
201
|
|
|
202
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
202
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/files/native-lease-inspection.js
|
|
203
203
|
var leaseInspection = /* @__PURE__ */ __name((markerDirectory) => {
|
|
204
204
|
const inspect = /* @__PURE__ */ __name(async (destination, options = {}) => {
|
|
205
205
|
options.signal?.throwIfAborted();
|
|
@@ -258,7 +258,7 @@ var leaseInspection = /* @__PURE__ */ __name((markerDirectory) => {
|
|
|
258
258
|
return { inspect, recover };
|
|
259
259
|
}, "leaseInspection");
|
|
260
260
|
|
|
261
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
261
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/files/native-lease-release.js
|
|
262
262
|
import { rmdir, unlink as unlink3 } from "node:fs/promises";
|
|
263
263
|
var ownedNativeLease = /* @__PURE__ */ __name((path, name, owner, folder, identity) => {
|
|
264
264
|
let releasing;
|
|
@@ -283,7 +283,7 @@ var ownedNativeLease = /* @__PURE__ */ __name((path, name, owner, folder, identi
|
|
|
283
283
|
};
|
|
284
284
|
}, "ownedNativeLease");
|
|
285
285
|
|
|
286
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
286
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/files/native-writer-lease.js
|
|
287
287
|
var validName = /* @__PURE__ */ __name((value) => typeof value === "string" && value.length > 0 && value !== "." && value !== ".." && !/[\\/\0:]/.test(value), "validName");
|
|
288
288
|
var nativeWriterLeaseStore = /* @__PURE__ */ __name((layout) => {
|
|
289
289
|
const { markerDirectory, legacyMarker } = layout;
|
|
@@ -354,7 +354,7 @@ var nativeWriterLeaseStore = /* @__PURE__ */ __name((layout) => {
|
|
|
354
354
|
};
|
|
355
355
|
}, "nativeWriterLeaseStore");
|
|
356
356
|
|
|
357
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
357
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/files/lock.js
|
|
358
358
|
var acquireLock = /* @__PURE__ */ __name(async (path, { signal } = {}) => {
|
|
359
359
|
const folder = dirname2(path);
|
|
360
360
|
await mkdir2(folder, { recursive: true, mode: 448 });
|
|
@@ -369,7 +369,7 @@ var acquireLock = /* @__PURE__ */ __name(async (path, { signal } = {}) => {
|
|
|
369
369
|
});
|
|
370
370
|
}, "acquireLock");
|
|
371
371
|
|
|
372
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
372
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/files/safe-name.js
|
|
373
373
|
import { basename as basename3 } from "node:path";
|
|
374
374
|
var safeName = /* @__PURE__ */ __name((name, platform = process.platform) => {
|
|
375
375
|
let plain = name === void 0 ? "" : basename3(name.replaceAll("\\", "/")).replace(/[\p{Cc}---]/gu, "").replace(/^\.+/, "");
|