@wirecat/cli-memo 0.131.46 → 0.131.47
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-I2JBJDOR.js → all-profiles-75EGCXK3.js} +5 -5
- package/dist/bundle/{anthropic-CARSCLDG.js → anthropic-PTAYBCPR.js} +3 -3
- package/dist/bundle/{app-server-SAMZMY3C.js → app-server-YSUBXGGB.js} +41 -38
- package/dist/bundle/auto-GB35FRTV.js +86 -0
- package/dist/bundle/{bun-T6E2RGI5.js → bun-3AIG5ML4.js} +2 -2
- package/dist/bundle/{bun-sqlite-WWDLRDBW.js → bun-sqlite-5FCGI6EO.js} +2 -2
- package/dist/bundle/{chunk-3ZLDPPI4.js → chunk-25RDNYKZ.js} +5 -5
- package/dist/bundle/{chunk-CV5MM7HG.js → chunk-32QM6X5H.js} +1 -1
- package/dist/bundle/{chunk-2K7E5YOZ.js → chunk-3HPFTKDH.js} +4 -4
- package/dist/bundle/{chunk-HFQZYHLX.js → chunk-4LWX2WOB.js} +3 -3
- package/dist/bundle/{chunk-ZGQSWRCY.js → chunk-5N6HWFXN.js} +508 -338
- package/dist/bundle/{chunk-5FN27OVR.js → chunk-6IVHND3S.js} +4 -4
- package/dist/bundle/{chunk-YPD27HJI.js → chunk-6QNPOBR5.js} +11 -11
- package/dist/bundle/{chunk-UI4MKFTZ.js → chunk-6TKWJKPS.js} +10 -10
- package/dist/bundle/{chunk-2FYCJ3KB.js → chunk-BNIWLVWG.js} +3 -3
- package/dist/bundle/{chunk-JX6JZTOI.js → chunk-CODD5SXC.js} +27 -27
- package/dist/bundle/{chunk-VOUTO3WF.js → chunk-DDADFHR7.js} +12 -12
- package/dist/bundle/{chunk-TOSRVNCY.js → chunk-DMTLG2GD.js} +7 -7
- package/dist/bundle/{chunk-GPBUD6WS.js → chunk-DS4DOK75.js} +22 -21
- package/dist/bundle/{chunk-IQJQLLAV.js → chunk-DWBTCOF2.js} +4 -4
- package/dist/bundle/{chunk-37D3IHOG.js → chunk-EFQCDCLY.js} +56 -56
- package/dist/bundle/{chunk-NFSFUVP2.js → chunk-ELKK5M66.js} +5 -5
- package/dist/bundle/{chunk-VZRGIWJM.js → chunk-EVZI54B5.js} +4 -4
- package/dist/bundle/{chunk-LTZHG4BX.js → chunk-F4HMPMET.js} +7 -7
- package/dist/bundle/{chunk-AXCYTZJD.js → chunk-FSAMZHIM.js} +5 -5
- package/dist/bundle/{chunk-XFT24B7A.js → chunk-G3YSCD77.js} +155 -152
- package/dist/bundle/{chunk-YFZ45S6S.js → chunk-G4W42RGE.js} +1 -1
- package/dist/bundle/{chunk-PIHAI7NF.js → chunk-GA3KFYEZ.js} +4 -4
- package/dist/bundle/{chunk-IPNORZSF.js → chunk-GOFPCOEI.js} +9 -9
- package/dist/bundle/{chunk-RF3R3W2I.js → chunk-GQLSVXS2.js} +20 -20
- package/dist/bundle/{chunk-ADBD5GOY.js → chunk-HCZV537M.js} +1 -1
- package/dist/bundle/{chunk-36DLHVMS.js → chunk-HVTW2M6T.js} +1 -1
- package/dist/bundle/{chunk-QR5HJROX.js → chunk-HYEYRFWX.js} +1 -1
- package/dist/bundle/{chunk-LOSAAPRY.js → chunk-I2RDACUF.js} +6 -6
- package/dist/bundle/{chunk-UYITVRUC.js → chunk-ILK5BCBB.js} +1 -1
- package/dist/bundle/{chunk-W2EY5PSH.js → chunk-IPLPMD6H.js} +1 -1
- package/dist/bundle/{chunk-QUUYSYCG.js → chunk-IPMBB6W5.js} +2 -2
- package/dist/bundle/{chunk-UEMY6RSB.js → chunk-J324GKJM.js} +1 -1
- package/dist/bundle/{chunk-TFWTSBON.js → chunk-KLBZJZD2.js} +592 -118
- package/dist/bundle/{chunk-HE535VWC.js → chunk-KWM7HLAI.js} +4 -4
- package/dist/bundle/{chunk-7UNXTC2J.js → chunk-LE7NROV6.js} +31 -31
- package/dist/bundle/{chunk-6B75W6XW.js → chunk-MCMEBL3C.js} +17 -9
- package/dist/bundle/{chunk-F7XQEYF3.js → chunk-MMJDQQFX.js} +268 -255
- package/dist/bundle/{chunk-5FBJQHCG.js → chunk-MSBRZ5QD.js} +2 -2
- package/dist/bundle/{chunk-IFGMJXND.js → chunk-N5QQFDNV.js} +2 -2
- package/dist/bundle/{chunk-XB43J5VQ.js → chunk-N63KZFH4.js} +8 -8
- package/dist/bundle/{chunk-YBBCGTZO.js → chunk-OSCRP52P.js} +298 -287
- package/dist/bundle/{chunk-AAKU7TGI.js → chunk-PGVADNDD.js} +2 -2
- package/dist/bundle/{chunk-IEVJMRL2.js → chunk-R44PUK7G.js} +1 -1
- package/dist/bundle/{chunk-UT2K3TAH.js → chunk-SYTYLLYO.js} +1 -1
- package/dist/bundle/{chunk-WXCRRP4B.js → chunk-U35N3EC7.js} +1 -1
- package/dist/bundle/{chunk-2MKPY6NU.js → chunk-U75ANK5K.js} +1 -1
- package/dist/bundle/{chunk-PZQCIEMC.js → chunk-UE4GMPBY.js} +1 -1
- package/dist/bundle/{chunk-J6EUSJ3X.js → chunk-UFVGAFID.js} +3 -3
- package/dist/bundle/{chunk-CWBRCYDY.js → chunk-V3B5COFP.js} +3 -3
- package/dist/bundle/{chunk-KGVDWSGM.js → chunk-V6OYLCCM.js} +2 -2
- package/dist/bundle/{chunk-VUSM6XFE.js → chunk-W2JVP7GK.js} +1 -1
- package/dist/bundle/{chunk-MKA3NOUU.js → chunk-W3T45MMN.js} +5 -5
- package/dist/bundle/{chunk-HDNMDLWC.js → chunk-XRRPQCTS.js} +1 -1
- package/dist/bundle/{chunk-BJSZECFV.js → chunk-Y4ZXDJQF.js} +2 -2
- package/dist/bundle/{chunk-TU34HVOY.js → chunk-YMK35KVV.js} +2 -2
- package/dist/bundle/{chunk-V7QNIJOE.js → chunk-ZKH6LC5P.js} +7 -7
- package/dist/bundle/{chunk-ICF3LNBX.js → chunk-ZLIARJU4.js} +1 -1
- package/dist/bundle/{command-contract-B6MBG7GI.js → command-contract-YYILWWYQ.js} +11 -11
- package/dist/bundle/{decode-E3TI4HEU.js → decode-F2A2BLIA.js} +2 -2
- package/dist/bundle/{echarts-B46XTHOI.js → echarts-JL55HJCM.js} +2 -2
- package/dist/bundle/{embed-BIUMRFOQ.js → embed-74KVORNN.js} +3 -3
- package/dist/bundle/{embedder-IA3CG6LB.js → embedder-GACNPCZN.js} +6 -6
- package/dist/bundle/{entry-E3QEAAYL.js → entry-7FI2H4RQ.js} +4 -4
- package/dist/bundle/failure-AHPPXHAW.js +66 -0
- package/dist/bundle/{first-run-6UQRVGZ4.js → first-run-D4VBIJ7H.js} +5 -5
- package/dist/bundle/{first-screen-W3BPVWCT.js → first-screen-D7Q2U7VP.js} +12 -12
- package/dist/bundle/{instructions-6AISOK6M.js → instructions-QNPIVGKX.js} +1 -1
- package/dist/bundle/{mcp-RX3COQPC.js → mcp-AFXHH33V.js} +35 -35
- package/dist/bundle/memo.js +6 -6
- package/dist/bundle/{node-6GP2V36M.js → node-SPFML2D5.js} +2 -2
- package/dist/bundle/{node-sqlite-2CC5J5RZ.js → node-sqlite-T3KILRCP.js} +3 -3
- package/dist/bundle/{oauth-VOOLTPGW.js → oauth-ZOGSHZF3.js} +4 -4
- package/dist/bundle/{open-AGFSOJG6.js → open-XXFVCGCA.js} +2 -2
- package/dist/bundle/{openai-KPRA5NIB.js → openai-JRHZLFKD.js} +7 -7
- package/dist/bundle/{process-J74KA6F3.js → process-OGYYVVLG.js} +1 -1
- package/dist/bundle/{program-VAYJBUPU.js → program-EFCQACPD.js} +91 -61
- package/dist/bundle/{prompt-PDQD5OD5.js → prompt-53D5WVD3.js} +2 -2
- package/dist/bundle/{recognize-QH6FBB2L.js → recognize-7GYZKJCD.js} +1 -1
- package/dist/bundle/{remote-BREQR2BJ.js → remote-V5GUFZCG.js} +4 -4
- package/dist/bundle/{rerank-HWNJXOHL.js → rerank-FUNVBYFI.js} +4 -4
- package/dist/bundle/{serve-A63VR5F4.js → serve-ZLUYFAXC.js} +6 -6
- package/dist/bundle/server-4OJC7ZWM.js +61 -0
- package/dist/bundle/server-CGUUZBLB.js +48 -0
- package/dist/bundle/{server-6UZJQQ4E.js → server-HJRMD3XD.js} +50 -50
- package/dist/bundle/{state-GMJJEIPI.js → state-4P7H6KBM.js} +3 -3
- package/dist/bundle/{store-HLK3ZQ7A.js → store-NILJK24C.js} +9 -9
- package/dist/bundle/store-maintenance-command-VP7CIBSS.js +48 -0
- package/dist/bundle/update-NPK4DT2E.js +69 -0
- package/dist/contract-overrides/doctor.d.ts.map +1 -1
- package/dist/contract-overrides/doctor.js +6 -0
- package/dist/contract-overrides/doctor.js.map +1 -1
- package/dist/doctor/command.d.ts +23 -2
- package/dist/doctor/command.d.ts.map +1 -1
- package/dist/doctor/command.js +13 -5
- package/dist/doctor/command.js.map +1 -1
- package/dist/examples.d.ts.map +1 -1
- package/dist/examples.js +2 -0
- package/dist/examples.js.map +1 -1
- package/dist/store/info-command.d.ts.map +1 -1
- package/dist/store/info-command.js +23 -1
- package/dist/store/info-command.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-KD7L4X6G.js +0 -86
- package/dist/bundle/failure-UKRO32A7.js +0 -66
- package/dist/bundle/server-3FKLHDFN.js +0 -48
- package/dist/bundle/server-XKZXPS7I.js +0 -61
- package/dist/bundle/store-maintenance-command-2WOANSCK.js +0 -48
- package/dist/bundle/update-GIAB6TXY.js +0 -69
- /package/dist/bundle/{chunk-B6ZCQNF4.js → chunk-JPGEFBRW.js} +0 -0
|
@@ -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.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/http/listen.js
|
|
8
8
|
import { createServer } from "node:http";
|
|
9
9
|
import { Readable } from "node:stream";
|
|
10
10
|
var MAX_BODY = 4 * 1024 * 1024;
|
|
@@ -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-DWBTCOF2.js";
|
|
7
7
|
import {
|
|
8
8
|
loadConfig,
|
|
9
9
|
updateConfig
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-LE7NROV6.js";
|
|
11
11
|
import {
|
|
12
12
|
failingNotice,
|
|
13
13
|
recordRun
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-MMJDQQFX.js";
|
|
15
15
|
import {
|
|
16
16
|
InvalidArgumentError,
|
|
17
17
|
LOCAL_READ,
|
|
18
18
|
LOCAL_WRITE,
|
|
19
19
|
annotate
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-G3YSCD77.js";
|
|
21
21
|
import {
|
|
22
22
|
installerOf
|
|
23
23
|
} from "./chunk-CID4MNRQ.js";
|
|
@@ -3,11 +3,11 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
envName,
|
|
5
5
|
readOnlyLockOf
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-SYTYLLYO.js";
|
|
7
7
|
import {
|
|
8
8
|
CAPABILITY_STATEMENTS,
|
|
9
9
|
storeCapable
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-25RDNYKZ.js";
|
|
11
11
|
import {
|
|
12
12
|
catchCrashes
|
|
13
13
|
} from "./chunk-SN63VOE6.js";
|
|
@@ -21,10 +21,10 @@ import {
|
|
|
21
21
|
__name
|
|
22
22
|
} from "./chunk-ZVVMGPBJ.js";
|
|
23
23
|
|
|
24
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/cli/entry.js
|
|
25
25
|
import { spawn as spawn2 } from "node:child_process";
|
|
26
26
|
|
|
27
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/sqlite-runtime.js
|
|
28
28
|
import { spawn, spawnSync } from "node:child_process";
|
|
29
29
|
import { readFileSync } from "node:fs";
|
|
30
30
|
import { dirname } from "node:path";
|
|
@@ -112,14 +112,14 @@ var relay = /* @__PURE__ */ __name((child, host = process) => new Promise(() =>
|
|
|
112
112
|
});
|
|
113
113
|
}), "relay");
|
|
114
114
|
|
|
115
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
115
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/cli/argv-log.js
|
|
116
116
|
import { appendFileSync } from "node:fs";
|
|
117
117
|
var logVersion = /* @__PURE__ */ __name((file) => {
|
|
118
118
|
appendFileSync(file, `${JSON.stringify({ command: "", options: ["--version"] })}
|
|
119
119
|
`);
|
|
120
120
|
}, "logVersion");
|
|
121
121
|
|
|
122
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
122
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/cli/entry.js
|
|
123
123
|
var processIo = /* @__PURE__ */ __name(() => ({
|
|
124
124
|
argv: process.argv,
|
|
125
125
|
env: process.env,
|
|
@@ -173,8 +173,8 @@ var startCli = /* @__PURE__ */ __name(async (entry) => {
|
|
|
173
173
|
if (command.optsWithGlobals().dryRun === true)
|
|
174
174
|
return;
|
|
175
175
|
const [{ setupAtStart }, { commandPathOf }] = await Promise.all([
|
|
176
|
-
import("./first-run-
|
|
177
|
-
import("./command-contract-
|
|
176
|
+
import("./first-run-D4VBIJ7H.js"),
|
|
177
|
+
import("./command-contract-YYILWWYQ.js")
|
|
178
178
|
]);
|
|
179
179
|
await setupAtStart({
|
|
180
180
|
command: entry.app.command,
|
|
@@ -189,7 +189,7 @@ var startCli = /* @__PURE__ */ __name(async (entry) => {
|
|
|
189
189
|
ask: /* @__PURE__ */ __name(async (question, command) => {
|
|
190
190
|
if (headless(command) || io.stdin.isTTY !== true)
|
|
191
191
|
return false;
|
|
192
|
-
const { readSecret } = await import("./prompt-
|
|
192
|
+
const { readSecret } = await import("./prompt-53D5WVD3.js");
|
|
193
193
|
const answer = await readSecret(`${question} [y/N] `, {
|
|
194
194
|
input: io.stdin,
|
|
195
195
|
output: io.stderr,
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
refuseLacking,
|
|
14
14
|
servicesFor,
|
|
15
15
|
throughWrapper
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-5N6HWFXN.js";
|
|
17
17
|
import {
|
|
18
18
|
CEILING_KEY,
|
|
19
19
|
LOG_ATTRIBUTES,
|
|
@@ -38,21 +38,21 @@ import {
|
|
|
38
38
|
rememberAccount,
|
|
39
39
|
rootOf2 as rootOf,
|
|
40
40
|
skipFlagFor
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-G3YSCD77.js";
|
|
42
42
|
import {
|
|
43
43
|
isCliFailure,
|
|
44
44
|
providerErrorKey
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-ZKH6LC5P.js";
|
|
46
46
|
import {
|
|
47
47
|
MESSENGER_CHANGE_REFUSAL,
|
|
48
48
|
readOnlyRefusal
|
|
49
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-SYTYLLYO.js";
|
|
50
50
|
import {
|
|
51
51
|
servingProfiles
|
|
52
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-MSBRZ5QD.js";
|
|
53
53
|
import {
|
|
54
54
|
openStore
|
|
55
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-OSCRP52P.js";
|
|
56
56
|
import {
|
|
57
57
|
logRecordOf,
|
|
58
58
|
realSleep,
|
|
@@ -66,7 +66,7 @@ import {
|
|
|
66
66
|
__name
|
|
67
67
|
} from "./chunk-ZVVMGPBJ.js";
|
|
68
68
|
|
|
69
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
69
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/cli/messenger/ask.js
|
|
70
70
|
import { openSync } from "node:fs";
|
|
71
71
|
import { createInterface } from "node:readline";
|
|
72
72
|
import { ReadStream } from "node:tty";
|
|
@@ -121,10 +121,10 @@ var terminalAsker = /* @__PURE__ */ __name((command) => async (key, request) =>
|
|
|
121
121
|
throw new CliError("cancelled", `${key}: not done \u2014 the answer was no`);
|
|
122
122
|
}, "terminalAsker");
|
|
123
123
|
|
|
124
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
124
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/sends/guard.js
|
|
125
125
|
import { randomUUID } from "node:crypto";
|
|
126
126
|
|
|
127
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
127
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/sends/flood.js
|
|
128
128
|
import { mkdirSync, readFileSync, renameSync, writeFileSync } from "node:fs";
|
|
129
129
|
import { dirname, join } from "node:path";
|
|
130
130
|
var MOST_DEADLINES = 50;
|
|
@@ -208,11 +208,11 @@ var FloodMemory = class {
|
|
|
208
208
|
}
|
|
209
209
|
};
|
|
210
210
|
|
|
211
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
211
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/sends/journal.js
|
|
212
212
|
import { appendFileSync, mkdirSync as mkdirSync3, readFileSync as readFileSync2 } from "node:fs";
|
|
213
213
|
import { dirname as dirname3, join as join2 } from "node:path";
|
|
214
214
|
|
|
215
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
215
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/sends/file-lock.js
|
|
216
216
|
import { closeSync, mkdirSync as mkdirSync2, openSync as openSync2, statSync, unlinkSync } from "node:fs";
|
|
217
217
|
import { dirname as dirname2 } from "node:path";
|
|
218
218
|
var LOCK_WAIT_MS = 5e3;
|
|
@@ -279,7 +279,7 @@ var lockTime = /* @__PURE__ */ __name((lock) => {
|
|
|
279
279
|
}
|
|
280
280
|
}, "lockTime");
|
|
281
281
|
|
|
282
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
282
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/sends/journal.js
|
|
283
283
|
var sendsPathFor = /* @__PURE__ */ __name((app, profile, env = process.env) => join2(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "sends", `${profile}.jsonl`), "sendsPathFor");
|
|
284
284
|
var SendJournal = class {
|
|
285
285
|
static {
|
|
@@ -356,7 +356,7 @@ var withSendId = /* @__PURE__ */ __name((entry) => {
|
|
|
356
356
|
return cid === void 0 || rest.sendId !== void 0 ? rest : { ...rest, sendId: String(cid) };
|
|
357
357
|
}, "withSendId");
|
|
358
358
|
|
|
359
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
359
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/sends/recipients.js
|
|
360
360
|
import { existsSync, readFileSync as readFileSync3, rmSync } from "node:fs";
|
|
361
361
|
import { join as join3 } from "node:path";
|
|
362
362
|
var recipientsPathFor = /* @__PURE__ */ __name((app, profile, env = process.env) => join3(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "profiles", `${profile}.recipients.json`), "recipientsPathFor");
|
|
@@ -468,7 +468,7 @@ var RecipientList = class {
|
|
|
468
468
|
}
|
|
469
469
|
};
|
|
470
470
|
|
|
471
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
471
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/sends/guard.js
|
|
472
472
|
var HOUR_MS = 60 * 60 * 1e3;
|
|
473
473
|
var READS_UNDER_HOLD = /* @__PURE__ */ new Set([
|
|
474
474
|
"attachments.extract",
|
|
@@ -661,7 +661,7 @@ var guardFor = /* @__PURE__ */ __name((app, settings, warn, env = process.env, a
|
|
|
661
661
|
}), "guardFor");
|
|
662
662
|
var journalFailure = /* @__PURE__ */ __name((error) => error?.code ?? (error instanceof Error ? error.name : "error"), "journalFailure");
|
|
663
663
|
|
|
664
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
664
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/sends/pace.js
|
|
665
665
|
import { readFileSync as readFileSync4, renameSync as renameSync2, writeFileSync as writeFileSync2 } from "node:fs";
|
|
666
666
|
import { join as join4 } from "node:path";
|
|
667
667
|
var DEFAULT_PACE = { perMinute: 60, burst: 20 };
|
|
@@ -751,7 +751,7 @@ var waitForTurn = /* @__PURE__ */ __name(async (pacer, options) => {
|
|
|
751
751
|
await (options.sleep ?? ((ms) => new Promise((resolve) => setTimeout(resolve, ms))))(waitMs);
|
|
752
752
|
}, "waitForTurn");
|
|
753
753
|
|
|
754
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
754
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/cli/permission-keys.js
|
|
755
755
|
var pathOf = /* @__PURE__ */ __name((command) => {
|
|
756
756
|
const words = [];
|
|
757
757
|
for (let at = command; at?.parent; at = at.parent)
|
|
@@ -811,7 +811,7 @@ var refuseUnknownPermissionKeys = /* @__PURE__ */ __name((command, settings, too
|
|
|
811
811
|
throw new CliError("validation_error", `--permission ${key} names no command`, { permission: key });
|
|
812
812
|
}, "refuseUnknownPermissionKeys");
|
|
813
813
|
|
|
814
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
814
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/cli/messenger/flooded.js
|
|
815
815
|
var LONG_LIVED = /* @__PURE__ */ new Set(["self", "newSendId", "close", "formatMarkdown", "formatHtml", "storedChats"]);
|
|
816
816
|
var LISTENING = /* @__PURE__ */ new Set(["watch", "feed", "listen", "listenHistory"]);
|
|
817
817
|
var BLOCKING = /* @__PURE__ */ new Set(["frozen", "limited", "banned"]);
|
|
@@ -908,7 +908,7 @@ var flooded = /* @__PURE__ */ __name((messenger, memory, { name, warn, pacer })
|
|
|
908
908
|
});
|
|
909
909
|
}, "flooded");
|
|
910
910
|
|
|
911
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
911
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/cli/messenger/observed.js
|
|
912
912
|
var observed = /* @__PURE__ */ __name((messenger, events) => {
|
|
913
913
|
const timed = /* @__PURE__ */ __name(async (operation, named, work, after) => {
|
|
914
914
|
const write = currentOperation();
|
|
@@ -1007,7 +1007,7 @@ var byPart = /* @__PURE__ */ __name((batch, counts) => {
|
|
|
1007
1007
|
counts[part] = (counts[part] ?? 0) + items.length;
|
|
1008
1008
|
}, "byPart");
|
|
1009
1009
|
|
|
1010
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1010
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/cli/messenger/stored.js
|
|
1011
1011
|
var REKEY_PACING = { lockMs: 50, pauseMs: 25 };
|
|
1012
1012
|
var stored = /* @__PURE__ */ __name((messenger, { account, store, warn, events, pending, announcing, deletedWithoutChat, profile, rekeyed, rekeyPacing = REKEY_PACING, closing, namesFromStore, recipientIds, countsUnread = false, historyLimits, command = "cli" }) => {
|
|
1013
1013
|
let warned = false;
|
|
@@ -1583,7 +1583,7 @@ var keep = /* @__PURE__ */ __name(async (store, account, event, seenAt, among, c
|
|
|
1583
1583
|
}
|
|
1584
1584
|
}, "keep");
|
|
1585
1585
|
|
|
1586
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1586
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/cli/messenger/context.js
|
|
1587
1587
|
var lazyStore = /* @__PURE__ */ __name((env, command, version) => {
|
|
1588
1588
|
let opened;
|
|
1589
1589
|
return {
|
|
@@ -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.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/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
|
__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.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/mcp/instructions.js
|
|
8
8
|
var instructions = /* @__PURE__ */ __name(({ command, name, profile, writes, skill }) => {
|
|
9
9
|
const all = typeof profile !== "string";
|
|
10
10
|
const offers = /* @__PURE__ */ __name((key) => all || writes.includes(key), "offers");
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
commandPathOf,
|
|
8
8
|
findCommand,
|
|
9
9
|
outputOf
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-IPMBB6W5.js";
|
|
11
11
|
import {
|
|
12
12
|
Command,
|
|
13
13
|
Help,
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
environmentOf,
|
|
19
19
|
metaOf,
|
|
20
20
|
takesProfile
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-G3YSCD77.js";
|
|
22
22
|
import {
|
|
23
23
|
writes
|
|
24
24
|
} from "./chunk-SN63VOE6.js";
|
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
__name
|
|
30
30
|
} from "./chunk-ZVVMGPBJ.js";
|
|
31
31
|
|
|
32
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/cli/help/sections.js
|
|
33
33
|
var SECTIONS = {
|
|
34
34
|
read: "Read",
|
|
35
35
|
write: "Write",
|
|
@@ -94,7 +94,7 @@ var CORE_SECTIONS = {
|
|
|
94
94
|
upgrade: "setup"
|
|
95
95
|
};
|
|
96
96
|
|
|
97
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
97
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/cli/help/commands-text.js
|
|
98
98
|
var DESCRIPTION = 90;
|
|
99
99
|
var COLUMN = 52;
|
|
100
100
|
var short = /* @__PURE__ */ __name((text) => {
|
|
@@ -133,7 +133,7 @@ var commandsText = /* @__PURE__ */ __name((root, commands, scope) => {
|
|
|
133
133
|
`;
|
|
134
134
|
}, "commandsText");
|
|
135
135
|
|
|
136
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
136
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/cli/help/command-help.js
|
|
137
137
|
var ARGUMENT_KINDS = {
|
|
138
138
|
chat: "chat",
|
|
139
139
|
chats: "chat",
|
|
@@ -325,7 +325,7 @@ var installCommandHelp = /* @__PURE__ */ __name((program, { profile = true } = {
|
|
|
325
325
|
command.addHelpText("after", () => commandHelpText(command));
|
|
326
326
|
}, "installCommandHelp");
|
|
327
327
|
|
|
328
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
328
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/cli/help/first-screen.js
|
|
329
329
|
var WIRECAT_TOOLS = [
|
|
330
330
|
{
|
|
331
331
|
command: "tg",
|
|
@@ -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.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/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
|
__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.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/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");
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
describeOptions,
|
|
8
8
|
keyForCommand,
|
|
9
9
|
metaOf
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-G3YSCD77.js";
|
|
11
11
|
import {
|
|
12
12
|
jsonSchemaOf
|
|
13
13
|
} from "./chunk-SN63VOE6.js";
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
__name
|
|
19
19
|
} from "./chunk-ZVVMGPBJ.js";
|
|
20
20
|
|
|
21
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/cli/command-contract.js
|
|
22
22
|
var SCHEMA_DIALECT = "https://json-schema.org/draft/2020-12/schema";
|
|
23
23
|
var outputOf = /* @__PURE__ */ __name((command) => {
|
|
24
24
|
const entity = answerEntitySchema(command);
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
__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.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/http/public-url.js
|
|
11
11
|
var EXAMPLE = "--public-url https://<name>.ts.net";
|
|
12
12
|
var publicUrlOf = /* @__PURE__ */ __name((given, { missing, reaches, path = false }) => {
|
|
13
13
|
if (!given)
|