@wirecat/mail-cli 0.19.0 → 0.20.0
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/CHANGELOG.md +9 -0
- package/dist/bin/mail.js +2 -2
- package/dist/bundle/{all-profiles-MRNWJSXX.js → all-profiles-DTUWUCQQ.js} +7 -6
- package/dist/bundle/{anthropic-OUV5B4ZR.js → anthropic-YJAEQSNT.js} +3 -3
- package/dist/bundle/{app-server-TLZPGT53.js → app-server-3ZXSTBA3.js} +41 -40
- package/dist/bundle/{bun-IDEPIM6S.js → bun-34VBM7C5.js} +2 -2
- package/dist/bundle/{bun-sqlite-DW4XMJOP.js → bun-sqlite-GCT7ROCK.js} +2 -2
- package/dist/bundle/{chunk-ETZFPIDO.js → chunk-2PPEDB67.js} +31 -29
- package/dist/bundle/{chunk-HUOAAQU7.js → chunk-3DSYLE5N.js} +2 -2
- package/dist/bundle/{chunk-RYRR5NFB.js → chunk-3HDQVTND.js} +4 -4
- package/dist/bundle/{chunk-H3KB77WL.js → chunk-4FWJNIPH.js} +1 -1
- package/dist/bundle/{chunk-NA63ZIYN.js → chunk-4WIEVQ2Q.js} +8 -14
- package/dist/bundle/{chunk-EWXCMKLM.js → chunk-566MEXK5.js} +2 -2
- package/dist/bundle/{chunk-GZAETQ6X.js → chunk-72N26BQM.js} +24 -22
- package/dist/bundle/{chunk-DC6BXHWF.js → chunk-7XLOWYGD.js} +93 -6
- package/dist/bundle/{chunk-RYE5SRUM.js → chunk-AF62BPIW.js} +5 -5
- package/dist/bundle/{chunk-GAPH7GET.js → chunk-B74SOC4R.js} +9 -20
- package/dist/bundle/{chunk-BQM4ROFB.js → chunk-FTI73RLC.js} +2 -2
- package/dist/bundle/{chunk-OUMXW53I.js → chunk-GAPQENMY.js} +2 -2
- package/dist/bundle/{chunk-4EMXLDQ6.js → chunk-HJ2CXDKJ.js} +130 -11
- package/dist/bundle/{chunk-2ZDKZGES.js → chunk-HN43G27G.js} +30 -22
- package/dist/bundle/{chunk-VVHEB3M3.js → chunk-HRRSTIGP.js} +4 -4
- package/dist/bundle/{chunk-QC6QDORL.js → chunk-HSBGNVEL.js} +202 -171
- package/dist/bundle/{chunk-CQVRBZGP.js → chunk-I2SDXWLR.js} +173 -48
- package/dist/bundle/{chunk-3CJVUCDZ.js → chunk-J2U6LUT5.js} +3 -3
- package/dist/bundle/{chunk-WJQWEKZL.js → chunk-J4UZXBEV.js} +1 -1
- package/dist/bundle/{chunk-57KFWOMH.js → chunk-KMQAHDBM.js} +7170 -13496
- package/dist/bundle/{chunk-7H45FPAT.js → chunk-LF5XM4HE.js} +1 -1
- package/dist/bundle/chunk-LTXYJAJK.js +12211 -0
- package/dist/bundle/{chunk-YJMQWOPH.js → chunk-MD64ITYO.js} +1 -1
- package/dist/bundle/{chunk-WELIANTW.js → chunk-MDDB7M7Z.js} +1 -1
- package/dist/bundle/{chunk-ZXQDJMWD.js → chunk-NOVBK4SY.js} +12 -12
- package/dist/bundle/{chunk-YL5WH6XH.js → chunk-O3M2S62X.js} +3 -3
- package/dist/bundle/{chunk-H4MWBB4X.js → chunk-ODFHIXMA.js} +1 -1
- package/dist/bundle/{chunk-HCRMPNSO.js → chunk-OKO2Q6H6.js} +2 -2
- package/dist/bundle/{chunk-FBSDRNW5.js → chunk-P2QJA7S5.js} +1 -1
- package/dist/bundle/{chunk-VIXEQPVE.js → chunk-P6FT6YYT.js} +17 -14
- package/dist/bundle/{chunk-QU3JH3GB.js → chunk-QE72KTS7.js} +1 -1
- package/dist/bundle/{chunk-W3PU5XGE.js → chunk-QPRXTLMD.js} +1 -1
- package/dist/bundle/{chunk-EQWYG3QN.js → chunk-QTMVGOSF.js} +298 -266
- package/dist/bundle/{chunk-HTNWOOA2.js → chunk-R3WPMQYZ.js} +105 -61
- package/dist/bundle/{chunk-SOZXI7I3.js → chunk-RFB27ACZ.js} +2 -2
- package/dist/bundle/{chunk-P2RSKCY4.js → chunk-RPCKBXKN.js} +1 -1
- package/dist/bundle/{chunk-QXZTVB5I.js → chunk-RT6SLZBI.js} +1 -1
- package/dist/bundle/{chunk-TX2TTMK4.js → chunk-RY7PBP4F.js} +45 -29
- package/dist/bundle/{chunk-7ERCJWNL.js → chunk-SCIC2CJS.js} +4 -4
- package/dist/bundle/{chunk-33BOFLDQ.js → chunk-SFC46MP2.js} +249 -8
- package/dist/bundle/chunk-SYEICLTR.js +66 -0
- package/dist/bundle/{chunk-NBHMSEN4.js → chunk-T2GQA2E4.js} +1 -1
- package/dist/bundle/{chunk-HOGJNJ3T.js → chunk-T3DTYJTG.js} +1 -1
- package/dist/bundle/{chunk-MQISDBH2.js → chunk-TCCN5TON.js} +1 -1
- package/dist/bundle/{chunk-KO2DA7CN.js → chunk-V6OIIVH3.js} +10 -10
- package/dist/bundle/{chunk-A5A6MPIX.js → chunk-VDUGE6TH.js} +2 -2
- package/dist/bundle/{chunk-LCP2DMBD.js → chunk-VINSQR4X.js} +7 -7
- package/dist/bundle/{chunk-42QY6DIG.js → chunk-VQZCIDSO.js} +2 -2
- package/dist/bundle/{chunk-OYYEY3UE.js → chunk-WBAA2X3E.js} +9 -9
- package/dist/bundle/{chunk-2WORM2E3.js → chunk-Z75WYAX6.js} +6 -6
- package/dist/bundle/{chunk-POWHDZIC.js → chunk-Z7N4MGOQ.js} +5 -5
- package/dist/bundle/{chunk-R2ETE3SX.js → chunk-ZKLXSVIO.js} +1 -1
- package/dist/bundle/{chunk-OBSV2GUJ.js → chunk-ZZSHGCRC.js} +3 -3
- package/dist/bundle/{command-contract-36ASI4YI.js → command-contract-Y4ZQAJEC.js} +14 -13
- package/dist/bundle/{decode-Z37HTJ53.js → decode-BIOOL5E4.js} +2 -2
- package/dist/bundle/{dist-E3UUAOWA.js → dist-TJVIRLE5.js} +77 -17
- package/dist/bundle/{echarts-TSRD7GVA.js → echarts-ECPGMKXO.js} +2 -2
- package/dist/bundle/{embed-Z5GZUUCK.js → embed-F7JFSLHN.js} +3 -3
- package/dist/bundle/{embedder-SYWZ6JW2.js → embedder-U4G74HV3.js} +6 -6
- package/dist/bundle/{first-run-I5GMVVX5.js → first-run-JTYPUYQP.js} +5 -5
- package/dist/bundle/first-screen-W6RWTAU7.js +33 -0
- package/dist/bundle/{instructions-IMW3LWMS.js → instructions-WNCGZ7OJ.js} +1 -1
- package/dist/bundle/mail.js +2 -2
- package/dist/bundle/{node-V6SRRJ2F.js → node-UIRGGMGT.js} +2 -2
- package/dist/bundle/{node-sqlite-HN2P6PY2.js → node-sqlite-4ZM7OPRF.js} +3 -3
- package/dist/bundle/{oauth-7FIIKNXY.js → oauth-5RAJZPBW.js} +4 -4
- package/dist/bundle/{open-6XPAHITO.js → open-7ORCHOAI.js} +2 -2
- package/dist/bundle/{openai-B5MSVUDL.js → openai-XSJNXJA7.js} +10 -10
- package/dist/bundle/{process-LNEAZMJV.js → process-ZLO72UVZ.js} +1 -1
- package/dist/bundle/{program-BDB3D2HE.js → program-PFVJDKM4.js} +1722 -1650
- package/dist/bundle/{prompt-ZXS7F7OS.js → prompt-IDUPCUGM.js} +2 -2
- package/dist/bundle/{recognize-ONHYBE77.js → recognize-OS3EZKIM.js} +1 -1
- package/dist/bundle/{remote-IBZTKGBQ.js → remote-PF4LZR65.js} +4 -4
- package/dist/bundle/{rerank-TWODAEGK.js → rerank-CQNZF3JI.js} +4 -4
- package/dist/bundle/{serve-PPJIP254.js → serve-Y2DDLGBT.js} +6 -6
- package/dist/bundle/server-I3IALQMC.js +65 -0
- package/dist/bundle/{server-VG7EAG5C.js → server-TVRT7YEY.js} +33 -32
- package/dist/bundle/{sqlite-runtime-JZFSB33U.js → sqlite-runtime-5343C3OE.js} +3 -3
- package/dist/bundle/{state-2FUXS6RU.js → state-4GBTMPIV.js} +3 -3
- package/dist/bundle/{store-VURW3NE7.js → store-OLBLTQPT.js} +44 -13
- package/dist/bundle/{store-PYAP6NYK.js → store-QA6QJ5BB.js} +20 -11
- package/dist/bundle/store-maintenance-command-LB6CMGP4.js +55 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +2 -2
- package/dist/bundle/chunk-IRY3ZFPW.js +0 -656
- package/dist/bundle/first-screen-R3LHPHU3.js +0 -32
- package/dist/bundle/server-JBV7NTAA.js +0 -64
- package/dist/bundle/store-maintenance-command-EHWGMBEA.js +0 -54
|
@@ -8,14 +8,14 @@ import {
|
|
|
8
8
|
refuseLacking,
|
|
9
9
|
servicesFor,
|
|
10
10
|
throughWrapper
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-QTMVGOSF.js";
|
|
12
12
|
import {
|
|
13
13
|
chatReferenceOf,
|
|
14
14
|
ensureAccount,
|
|
15
15
|
foldName,
|
|
16
16
|
isId,
|
|
17
17
|
pickPerson
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-SFC46MP2.js";
|
|
19
19
|
import {
|
|
20
20
|
LOG_ATTRIBUTES,
|
|
21
21
|
MESSENGER_CHANGE_REFUSAL,
|
|
@@ -35,7 +35,7 @@ import {
|
|
|
35
35
|
recalledAccount,
|
|
36
36
|
rememberAccount,
|
|
37
37
|
rootOf2 as rootOf
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-HSBGNVEL.js";
|
|
39
39
|
import {
|
|
40
40
|
AUTHORITY_KEY,
|
|
41
41
|
CEILING_KEY,
|
|
@@ -46,17 +46,19 @@ import {
|
|
|
46
46
|
levelFor,
|
|
47
47
|
readKeysForCommand,
|
|
48
48
|
skipFlagFor
|
|
49
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-HRRSTIGP.js";
|
|
50
50
|
import {
|
|
51
|
-
isCliFailure,
|
|
52
51
|
providerErrorKey
|
|
53
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-B74SOC4R.js";
|
|
54
53
|
import {
|
|
55
54
|
servingProfiles
|
|
56
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-VQZCIDSO.js";
|
|
57
56
|
import {
|
|
58
57
|
openStore
|
|
59
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-KMQAHDBM.js";
|
|
59
|
+
import {
|
|
60
|
+
isCliFailure
|
|
61
|
+
} from "./chunk-SYEICLTR.js";
|
|
60
62
|
import {
|
|
61
63
|
logRecordOf,
|
|
62
64
|
realSleep,
|
|
@@ -70,10 +72,10 @@ import {
|
|
|
70
72
|
__name
|
|
71
73
|
} from "./chunk-ZVVMGPBJ.js";
|
|
72
74
|
|
|
73
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
75
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/sends/guard.js
|
|
74
76
|
import { randomUUID } from "node:crypto";
|
|
75
77
|
|
|
76
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
78
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/sends/flood.js
|
|
77
79
|
import { mkdirSync, readFileSync, renameSync, writeFileSync } from "node:fs";
|
|
78
80
|
import { dirname, join } from "node:path";
|
|
79
81
|
var MOST_DEADLINES = 50;
|
|
@@ -157,11 +159,11 @@ var FloodMemory = class {
|
|
|
157
159
|
}
|
|
158
160
|
};
|
|
159
161
|
|
|
160
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
162
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/sends/journal.js
|
|
161
163
|
import { appendFileSync, mkdirSync as mkdirSync3, readFileSync as readFileSync2 } from "node:fs";
|
|
162
164
|
import { dirname as dirname3, join as join2 } from "node:path";
|
|
163
165
|
|
|
164
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
166
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/sends/file-lock.js
|
|
165
167
|
import { closeSync, mkdirSync as mkdirSync2, openSync, statSync, unlinkSync } from "node:fs";
|
|
166
168
|
import { dirname as dirname2 } from "node:path";
|
|
167
169
|
var LOCK_WAIT_MS = 5e3;
|
|
@@ -228,7 +230,7 @@ var lockTime = /* @__PURE__ */ __name((lock) => {
|
|
|
228
230
|
}
|
|
229
231
|
}, "lockTime");
|
|
230
232
|
|
|
231
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
233
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/sends/journal.js
|
|
232
234
|
var sendsPathFor = /* @__PURE__ */ __name((app, profile, env = process.env) => join2(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "sends", `${profile}.jsonl`), "sendsPathFor");
|
|
233
235
|
var SendJournal = class {
|
|
234
236
|
static {
|
|
@@ -305,7 +307,7 @@ var withSendId = /* @__PURE__ */ __name((entry) => {
|
|
|
305
307
|
return cid === void 0 || rest.sendId !== void 0 ? rest : { ...rest, sendId: String(cid) };
|
|
306
308
|
}, "withSendId");
|
|
307
309
|
|
|
308
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
310
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/sends/recipients.js
|
|
309
311
|
import { existsSync, readFileSync as readFileSync3, rmSync } from "node:fs";
|
|
310
312
|
import { join as join3 } from "node:path";
|
|
311
313
|
var recipientsPathFor = /* @__PURE__ */ __name((app, profile, env = process.env) => join3(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "profiles", `${profile}.recipients.json`), "recipientsPathFor");
|
|
@@ -417,7 +419,7 @@ var RecipientList = class {
|
|
|
417
419
|
}
|
|
418
420
|
};
|
|
419
421
|
|
|
420
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
422
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/sends/guard.js
|
|
421
423
|
var HOUR_MS = 60 * 60 * 1e3;
|
|
422
424
|
var READS_UNDER_HOLD = /* @__PURE__ */ new Set([
|
|
423
425
|
"attachments.extract",
|
|
@@ -610,7 +612,7 @@ var guardFor = /* @__PURE__ */ __name((app, settings, warn, env = process.env, a
|
|
|
610
612
|
}), "guardFor");
|
|
611
613
|
var journalFailure = /* @__PURE__ */ __name((error) => error?.code ?? (error instanceof Error ? error.name : "error"), "journalFailure");
|
|
612
614
|
|
|
613
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
615
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/cli/messenger/ask.js
|
|
614
616
|
import { openSync as openSync2 } from "node:fs";
|
|
615
617
|
import { createInterface } from "node:readline";
|
|
616
618
|
import { ReadStream } from "node:tty";
|
|
@@ -665,7 +667,7 @@ var terminalAsker = /* @__PURE__ */ __name((command) => async (key, request) =>
|
|
|
665
667
|
throw new CliError("cancelled", `${key}: not done \u2014 the answer was no`);
|
|
666
668
|
}, "terminalAsker");
|
|
667
669
|
|
|
668
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
670
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/sends/pace.js
|
|
669
671
|
import { readFileSync as readFileSync4, renameSync as renameSync2, writeFileSync as writeFileSync2 } from "node:fs";
|
|
670
672
|
import { join as join4 } from "node:path";
|
|
671
673
|
var DEFAULT_PACE = { perMinute: 60, burst: 20 };
|
|
@@ -755,7 +757,7 @@ var waitForTurn = /* @__PURE__ */ __name(async (pacer, options) => {
|
|
|
755
757
|
await (options.sleep ?? ((ms) => new Promise((resolve) => setTimeout(resolve, ms))))(waitMs);
|
|
756
758
|
}, "waitForTurn");
|
|
757
759
|
|
|
758
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
760
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/cli/permission-keys.js
|
|
759
761
|
var HOUSEKEEPING = /* @__PURE__ */ new Set([
|
|
760
762
|
"help",
|
|
761
763
|
"guide",
|
|
@@ -835,7 +837,7 @@ var refuseUnknownPermissionKeys = /* @__PURE__ */ __name((command, settings, too
|
|
|
835
837
|
throw new CliError("validation_error", `--permission ${key} names no command`, { permission: key });
|
|
836
838
|
}, "refuseUnknownPermissionKeys");
|
|
837
839
|
|
|
838
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
840
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/cli/messenger/flooded.js
|
|
839
841
|
var LONG_LIVED = /* @__PURE__ */ new Set(["self", "newSendId", "close", "formatMarkdown", "formatHtml", "storedChats"]);
|
|
840
842
|
var LISTENING = /* @__PURE__ */ new Set(["watch", "feed", "listen", "listenHistory"]);
|
|
841
843
|
var BLOCKING = /* @__PURE__ */ new Set(["frozen", "limited", "banned"]);
|
|
@@ -932,7 +934,7 @@ var flooded = /* @__PURE__ */ __name((messenger, memory, { name, warn, pacer })
|
|
|
932
934
|
});
|
|
933
935
|
}, "flooded");
|
|
934
936
|
|
|
935
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
937
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/cli/messenger/observed.js
|
|
936
938
|
var observed = /* @__PURE__ */ __name((messenger, events) => {
|
|
937
939
|
const timed = /* @__PURE__ */ __name(async (operation, named, work, after) => {
|
|
938
940
|
const write = currentOperation();
|
|
@@ -1031,7 +1033,7 @@ var byPart = /* @__PURE__ */ __name((batch, counts) => {
|
|
|
1031
1033
|
counts[part] = (counts[part] ?? 0) + items.length;
|
|
1032
1034
|
}, "byPart");
|
|
1033
1035
|
|
|
1034
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1036
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/cli/messenger/stored.js
|
|
1035
1037
|
var REKEY_PACING = { lockMs: 50, pauseMs: 25 };
|
|
1036
1038
|
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" }) => {
|
|
1037
1039
|
let warned = false;
|
|
@@ -1607,7 +1609,7 @@ var keep = /* @__PURE__ */ __name(async (store, account, event, seenAt, among, c
|
|
|
1607
1609
|
}
|
|
1608
1610
|
}, "keep");
|
|
1609
1611
|
|
|
1610
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1612
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/cli/messenger/context.js
|
|
1611
1613
|
var lazyStore = /* @__PURE__ */ __name((env, command, version) => {
|
|
1612
1614
|
let opened;
|
|
1613
1615
|
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
|
QUERY_REASONS
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-I2SDXWLR.js";
|
|
6
6
|
import {
|
|
7
7
|
defineReasons
|
|
8
8
|
} from "./chunk-BHNBWFT5.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.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/errors/reasons.js
|
|
14
14
|
var validation = /* @__PURE__ */ __name((reason, message) => [reason, "validation_error", message], "validation");
|
|
15
15
|
var QUERY = [
|
|
16
16
|
["query.aborted", "the search was stopped before it finished"],
|
|
@@ -29,7 +29,8 @@ var SIGN_IN = [
|
|
|
29
29
|
["oauth.declined", "authentication_error", "the provider's consent was declined"],
|
|
30
30
|
["oauth.timeout", "timeout", "the sign-in was not finished in time"],
|
|
31
31
|
["oauth.mismatch", "authentication_error", "the pasted sign-in result belongs to another sign-in"],
|
|
32
|
-
["oauth.missing", "authentication_error", "this profile is not signed in"],
|
|
32
|
+
["oauth.missing", "authentication_error", "this profile is not signed in to the provider"],
|
|
33
|
+
["session.missing", "authentication_error", "this profile has no API token saved"],
|
|
33
34
|
["oauth.locked", "provider_unavailable", "another process holds this sign-in's lock"],
|
|
34
35
|
["oauth.no-response", "outcome_unknown", "the token request did not finish"],
|
|
35
36
|
["oauth.unavailable", "provider_unavailable", "the provider's token endpoint is unavailable"],
|
|
@@ -71,6 +72,11 @@ var OTHERS = [
|
|
|
71
72
|
validation("mail-findings.partial", "a cited email is not stored whole yet; cite it once it is"),
|
|
72
73
|
validation("evidence-findings.dedicated-review", "review evidence findings through the dedicated findings command"),
|
|
73
74
|
validation("mail-findings.dedicated-review", "review mail findings through the dedicated findings command"),
|
|
75
|
+
validation("source-review.dedicated-review", "decide a source review through the review of memories and facts"),
|
|
76
|
+
validation("source-review.reason-required", "a challenge says why in 1\u20132000 characters"),
|
|
77
|
+
validation("source-review.evidence-required", "a challenge cites 1\u201320 references that contradict it"),
|
|
78
|
+
validation("source-review.suggestion-length", "a suggestion with a challenge takes 1\u20132000 characters"),
|
|
79
|
+
validation("source-review.not-holding", "the memory or fact no longer holds, so there is nothing to challenge"),
|
|
74
80
|
validation("mail-findings.invalid", "a checked mail findings batch would be refused; details.problems names why, finding by finding"),
|
|
75
81
|
validation("mail-findings.key-used", "the findings batch key was already used for different input"),
|
|
76
82
|
validation("finding.unknown-field", "a finding has a field its kind does not take"),
|
|
@@ -137,6 +143,21 @@ var OTHERS = [
|
|
|
137
143
|
["feed.gone", "not_found", "the feed's server has no feed at this address any more"],
|
|
138
144
|
["feed.timeout", "timeout", "the feed's server did not answer in time"],
|
|
139
145
|
["feed.unreachable", "network_error", "the feed's server could not be reached"],
|
|
146
|
+
validation("source.url-refused", "the link is not an http or https page on the public internet"),
|
|
147
|
+
["source.url-status", "provider_error", "the page's server answered with an error status"],
|
|
148
|
+
["source.url-timeout", "timeout", "the page did not arrive in time"],
|
|
149
|
+
["source.url-redirects", "provider_error", "the page sent the request on too many times"],
|
|
150
|
+
["source.url-unreachable", "network_error", "the page's server could not be found or reached"],
|
|
151
|
+
[
|
|
152
|
+
"source.needs-sign-in",
|
|
153
|
+
"authentication_error",
|
|
154
|
+
"the page asks for a sign-in; a private Google document is read through Drive"
|
|
155
|
+
],
|
|
156
|
+
validation("source.too-large", "the source is larger than one read takes"),
|
|
157
|
+
validation("source.unsupported", "no reader takes this kind of source"),
|
|
158
|
+
validation("source.no-text", "the source holds no text to keep"),
|
|
159
|
+
validation("source.unreadable", "the reader could not read the source"),
|
|
160
|
+
["source.engine-missing", "configuration_error", "reading this source needs a reader package that is not installed"],
|
|
140
161
|
validation("busy.feed", "a feed calendar has no busy times to ask; read its events with events list"),
|
|
141
162
|
["calendar.unsynced", "not_found", "the calendar account has no synced calendar in the store"],
|
|
142
163
|
["calendar.sync-incomplete", "not_found", "a synced calendar's sync never finished or is mid-round"],
|
|
@@ -166,6 +187,17 @@ var OTHERS = [
|
|
|
166
187
|
],
|
|
167
188
|
validation("store.refused", "the local store refused the document text"),
|
|
168
189
|
["store.not-writable", "permission_error", "the message store cannot be written from this process"],
|
|
190
|
+
[
|
|
191
|
+
"store.damaged",
|
|
192
|
+
"configuration_error",
|
|
193
|
+
"the store file is damaged; store recover says what is lost and recovers it"
|
|
194
|
+
],
|
|
195
|
+
validation("store.file-damaged", "the named store file is damaged or not a database"),
|
|
196
|
+
[
|
|
197
|
+
"store.unreadable",
|
|
198
|
+
"configuration_error",
|
|
199
|
+
"the store file's header or schema is damaged, so it cannot be recovered"
|
|
200
|
+
],
|
|
169
201
|
validation("store.in-use", "a process or a scheduled timer has the store open; stop it, then recover the store"),
|
|
170
202
|
[
|
|
171
203
|
"store.sqlite3-missing",
|
|
@@ -183,6 +215,8 @@ var OTHERS = [
|
|
|
183
215
|
["store.vector-extension-failed", "configuration_error", "the sqlite-vec extension did not load; reinstall the CLI"],
|
|
184
216
|
validation("store.vector-invalid", "a vector to store had a non-finite value"),
|
|
185
217
|
validation("catalog.scope-limit", "the selected catalog exceeds its entry limit"),
|
|
218
|
+
validation("evidence.quote-length", "a quote from the evidence is empty or over 500 characters"),
|
|
219
|
+
validation("evidence.quote-not-found", "the cited source does not say the quoted words"),
|
|
186
220
|
validation("evidence.row-too-large", "one evidence row is over its size limit"),
|
|
187
221
|
validation("index.not-ready", "the search index is still being built"),
|
|
188
222
|
validation("input.closed", "the input closed before the answer"),
|
|
@@ -196,18 +230,29 @@ var OTHERS = [
|
|
|
196
230
|
validation("finance.allocate", "the invoice or payment cannot take an allocation in its state"),
|
|
197
231
|
validation("finance.currency", "the payment and the invoice are in different currencies; nothing is converted"),
|
|
198
232
|
validation("finance.field", "a field of the invoice or payment is not valid"),
|
|
199
|
-
validation("finance.line-amount", "
|
|
233
|
+
validation("finance.line-amount", "an invoice line's amount is not its quantity times its unit price"),
|
|
200
234
|
validation("finance.lines", "the invoice's lines are not valid"),
|
|
201
235
|
["finance.not-allocated", "not_found", "the payment is not allocated to that invoice"],
|
|
202
236
|
validation("finance.over-invoice", "the allocation would settle more than the invoice's total"),
|
|
203
237
|
validation("finance.over-payment", "the allocation would use more than the payment's amount"),
|
|
204
238
|
["finance.owner-only", "permission_error", "only the owner does this with money"],
|
|
239
|
+
validation("finance.over-refund", "the refunds would take back more than the payment, or than it gave an invoice"),
|
|
205
240
|
validation("finance.party", "a party is a person: or organization: reference"),
|
|
206
241
|
validation("finance.ref", "the reference names no invoice or payment"),
|
|
242
|
+
validation("finance.refund", "a refund goes the other way in the same currency, of a live payment confirmed first, to an invoice it paid"),
|
|
243
|
+
validation("finance.refunded", "a refund of the payment still stands; reject it or take it back first"),
|
|
207
244
|
validation("finance.status", "the invoice's status does not allow this"),
|
|
208
245
|
validation("finance.total", "the invoice's total is not the sum of its lines"),
|
|
209
246
|
validation("finance.unallocate", "a rejected or deleted payment's allocations are not taken back"),
|
|
210
|
-
validation("record.entity", "the
|
|
247
|
+
validation("record.entity", "the entity or proposal the record stands for was refused"),
|
|
248
|
+
validation("record.provider-not-imported", "SMS and calls are imported only under an import-only provider, such as phone"),
|
|
249
|
+
validation("record.chat", "the chat an SMS names is not an imported one: a sync owns it"),
|
|
250
|
+
validation("record.moved", "an SMS stays in its thread: delete it and send it again under a new external_id"),
|
|
251
|
+
validation("record.phone-region", "a phone without + is read only in the envelope's phone_region; kept as data"),
|
|
252
|
+
validation("record.separated", "the owner told the one entity these identifiers match apart from them"),
|
|
253
|
+
["store.dry-run", "conflict", "a dry run of an import holds the store; the read or write waits for it to end"],
|
|
254
|
+
validation("record.ambiguous", "the record's identifiers point at more than one entity; the owner says which"),
|
|
255
|
+
validation("record.identifier", "a free-mail domain names no organization: anyone has an address there"),
|
|
211
256
|
["record.map-owner-only", "permission_error", "only the owner says which entity a source record is"],
|
|
212
257
|
validation("record.map-type", "a record maps only to an entity of its own type"),
|
|
213
258
|
validation("record.mapped", "the record already stands for another entity"),
|
|
@@ -217,6 +262,7 @@ var OTHERS = [
|
|
|
217
262
|
validation("record.reference-not-found", "a reference in the record's fields is not in the store"),
|
|
218
263
|
validation("record.relation-ambiguous", "the record names more than one target for a role that takes one"),
|
|
219
264
|
validation("record.stale-revision", "the store holds a newer revision of the record"),
|
|
265
|
+
validation("memory.already-superseded", "the memory was already replaced by another"),
|
|
220
266
|
validation("memory.evidence-required", "a memory needs its evidence"),
|
|
221
267
|
validation("memory.scope-required", "a memory needs its scope"),
|
|
222
268
|
validation("money.amount", "the amount is not a decimal string in the currency's scale"),
|
|
@@ -233,13 +279,45 @@ var OTHERS = [
|
|
|
233
279
|
["pipeline.not-found", "not_found", "no stored pipeline has that name or reference"],
|
|
234
280
|
validation("crm.stage-unknown", "a CRM item stands in a stage the store does not hold; it was not kept"),
|
|
235
281
|
validation("crm.item-invalid", "a CRM item has a field the store refuses, such as a currency it does not keep"),
|
|
236
|
-
validation("crm.pipeline-required", "the CRM has more than one pipeline of the kind; the
|
|
282
|
+
validation("crm.pipeline-required", "the CRM has more than one pipeline of the kind; the command names one"),
|
|
237
283
|
validation("field.unknown", "no custom field of the kind has that code or label; `fields list` lists them"),
|
|
238
284
|
validation("field.ambiguous", "more than one custom field has that label; name one by its code"),
|
|
239
285
|
validation("field.unknown-option", "the list field has no option with that id or label"),
|
|
240
286
|
validation("field.unknown-kind", "fields are listed for deals, leads, people and organizations only"),
|
|
241
287
|
validation("crm.write-unsupported", "the CRM does not take this write, or does not recognise a repeated one"),
|
|
242
288
|
validation("crm.unlisted-held", "a list of every id would mark most of a kind deleted; nothing was, until --rescan"),
|
|
289
|
+
validation("crm.not-reported", "the CRM did not list users or departments; what they would say is unknown, nothing withdrawn"),
|
|
290
|
+
validation("crm.reference-unknown", "a CRM row names a contact, company or user the store does not hold; that link was not made"),
|
|
291
|
+
validation("crm.pending-dropped", "relationships waited too long for an end that never came; they were dropped"),
|
|
292
|
+
validation("crm.email-ambiguous", "a CRM contact's email belongs to more than one person; the owner decides"),
|
|
293
|
+
validation("crm.own-unknown", "no own company of the CRM account is stored, so its users are no one's employees yet"),
|
|
294
|
+
validation("relationship.reference-unknown", "a reported relationship names something the store does not hold"),
|
|
295
|
+
validation("relationship.invalid", "a reported relationship joins ends or takes a role the registry refuses"),
|
|
296
|
+
validation("contract.field", "a field of the contract is not valid"),
|
|
297
|
+
validation("contract.ref", "the reference names no contract, or no deal for it"),
|
|
298
|
+
validation("order.currency", "the product is priced in another currency than the order"),
|
|
299
|
+
validation("order.line", "an order keeps at least one line: reject or cancel it instead"),
|
|
300
|
+
validation("order.line-amount", "an order line's amount is not its quantity times its unit price"),
|
|
301
|
+
validation("order.lines", "the order's lines are not valid"),
|
|
302
|
+
["order.no-line", "not_found", "the order has no line at that position"],
|
|
303
|
+
["order.owner-only", "permission_error", "only the owner changes a confirmed order's lines"],
|
|
304
|
+
validation("order.total", "an order with lines names its currency and totals their sum"),
|
|
305
|
+
validation("product.duplicate", "a product with that code is already stored for that supplier"),
|
|
306
|
+
validation("product.field", "a field of the product is not valid"),
|
|
307
|
+
validation("product.ref", "the reference names no product"),
|
|
308
|
+
validation("subscription.field", "a field of the subscription is not valid"),
|
|
309
|
+
validation("subscription.interval", "an interval is a count and a unit, such as 1-month"),
|
|
310
|
+
["subscription.no-price", "not_found", "no stored subscription price has that id"],
|
|
311
|
+
validation("subscription.price", "a price is never changed: reject it and add a new one, after its subscription"),
|
|
312
|
+
validation("subscription.ref", "the reference names no subscription, product or contract for it"),
|
|
313
|
+
validation("transaction.field", "a field of the transaction is not valid"),
|
|
314
|
+
validation("transaction.payment", "the payment is not the same money: currency, direction and amount differ"),
|
|
315
|
+
validation("transaction.ref", "the reference names no transaction or wallet"),
|
|
316
|
+
["transaction.no-split", "not_found", "the transaction has no split at that position"],
|
|
317
|
+
validation("transaction.split", "the splits come to more than the transaction, or name no category"),
|
|
318
|
+
validation("wallet.field", "a field of the wallet is not valid"),
|
|
319
|
+
validation("wallet.number", "a wallet keeps only the last 4 characters of a number"),
|
|
320
|
+
validation("wallet.ref", "the reference names no wallet"),
|
|
243
321
|
validation("order.duplicate", "the shop's order with this number is already stored; change its status instead"),
|
|
244
322
|
validation("order.proposed", "the shop's order with this number already waits for the owner in a findings batch"),
|
|
245
323
|
validation("order.field", "a field of the order is not valid"),
|
|
@@ -249,6 +327,11 @@ var OTHERS = [
|
|
|
249
327
|
validation("order.status", "a rejected or deleted order's status does not change"),
|
|
250
328
|
["model.not-downloaded", "not_found", "the model is not downloaded on this machine"],
|
|
251
329
|
["person.no-owner", "not_found", "no person is marked as the owner in the store"],
|
|
330
|
+
[
|
|
331
|
+
"identity.separated",
|
|
332
|
+
"conflict",
|
|
333
|
+
"the owner separated this identity from that person; only the owner links it again"
|
|
334
|
+
],
|
|
252
335
|
["transcription.no-key", "authentication_error", "no OpenAI key is set for transcription"],
|
|
253
336
|
validation("transcription.too-large", "the audio is over the transcription provider's size limit"),
|
|
254
337
|
[
|
|
@@ -286,6 +369,10 @@ var OTHERS = [
|
|
|
286
369
|
["proposals.agent-decisions-off", "permission_error", "agent decisions are turned off; the owner decides"],
|
|
287
370
|
["proposal.unknown-kind", "not_found", "no registered proposal kind holds this id"],
|
|
288
371
|
validation("relationship.exists", "a confirmed relationship already links them"),
|
|
372
|
+
validation("relationship.role-exists", "the role list holds that role already"),
|
|
373
|
+
validation("relationship.role-built-in", "a built-in role stays on its list"),
|
|
374
|
+
validation("relationship.role-in-use", "relationships still hold that role; change them first (details.count)"),
|
|
375
|
+
validation("relationship.role-unknown", "the role is not one the relationship takes; the message lists them"),
|
|
289
376
|
validation("ranking.invalid", "the ranking is not valid"),
|
|
290
377
|
validation("ref.malformed", "the reference has a known kind but not its shape"),
|
|
291
378
|
validation("ref.unknown-kind", "the text names no kind of reference"),
|
|
@@ -2,7 +2,7 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
PRAGMAS
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-ODFHIXMA.js";
|
|
6
6
|
import {
|
|
7
7
|
CliError
|
|
8
8
|
} from "./chunk-DALBYUPC.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.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/store/sqlite-warning.js
|
|
14
14
|
var SQLITE_WARNING = "SQLite is an experimental feature";
|
|
15
15
|
var quieted = /* @__PURE__ */ new WeakSet();
|
|
16
16
|
var quietSqliteWarning = /* @__PURE__ */ __name((host = process) => {
|
|
@@ -31,7 +31,7 @@ var isSqliteWarning = /* @__PURE__ */ __name((warning, options) => {
|
|
|
31
31
|
return name === "ExperimentalWarning" && message.startsWith(SQLITE_WARNING);
|
|
32
32
|
}, "isSqliteWarning");
|
|
33
33
|
|
|
34
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/store/open.js
|
|
35
35
|
var openCache = /* @__PURE__ */ __name(async (path) => {
|
|
36
36
|
const database = await openFile(path);
|
|
37
37
|
try {
|
|
@@ -44,12 +44,12 @@ var openCache = /* @__PURE__ */ __name(async (path) => {
|
|
|
44
44
|
}, "openCache");
|
|
45
45
|
var openFile = /* @__PURE__ */ __name((path) => "Bun" in globalThis ? openUnderBun(path) : openUnderNode(path), "openFile");
|
|
46
46
|
var openUnderBun = /* @__PURE__ */ __name(async (path) => {
|
|
47
|
-
const { openWithBunSqlite } = await import("./bun-sqlite-
|
|
47
|
+
const { openWithBunSqlite } = await import("./bun-sqlite-GCT7ROCK.js");
|
|
48
48
|
return await openWithBunSqlite(path);
|
|
49
49
|
}, "openUnderBun");
|
|
50
50
|
var openUnderNode = /* @__PURE__ */ __name(async (path) => {
|
|
51
51
|
quietSqliteWarning();
|
|
52
|
-
const { openWithNodeSqlite } = await import("./node-sqlite-
|
|
52
|
+
const { openWithNodeSqlite } = await import("./node-sqlite-4ZM7OPRF.js");
|
|
53
53
|
return openWithNodeSqlite(path);
|
|
54
54
|
}, "openUnderNode");
|
|
55
55
|
var runtime = /* @__PURE__ */ __name(() => {
|
|
@@ -1,35 +1,27 @@
|
|
|
1
1
|
import { createRequire as __bundleRequire } from "node:module";
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
isCliFailure
|
|
5
|
+
} from "./chunk-SYEICLTR.js";
|
|
3
6
|
import {
|
|
4
7
|
secretNamed,
|
|
5
8
|
withoutSecrets
|
|
6
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-4FWJNIPH.js";
|
|
7
10
|
import {
|
|
8
11
|
isContentKey
|
|
9
12
|
} from "./chunk-BMV56JCL.js";
|
|
10
|
-
import {
|
|
11
|
-
errorCodes
|
|
12
|
-
} from "./chunk-DALBYUPC.js";
|
|
13
13
|
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.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/runs/run-context.js
|
|
18
18
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
19
19
|
import { createHash } from "node:crypto";
|
|
20
20
|
|
|
21
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/runs/error-detail.js
|
|
22
22
|
import { homedir } from "node:os";
|
|
23
23
|
|
|
24
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25
|
-
var isCliFailure = /* @__PURE__ */ __name((value) => value instanceof Error && value.name === "CliError" && errorCodes.includes(value.code), "isCliFailure");
|
|
26
|
-
var isCommanderFailure = /* @__PURE__ */ __name((value) => {
|
|
27
|
-
const { code, exitCode } = value ?? {};
|
|
28
|
-
return value instanceof Error && typeof code === "string" && code.startsWith("commander.") && typeof exitCode === "number";
|
|
29
|
-
}, "isCommanderFailure");
|
|
30
|
-
var failureKey = /* @__PURE__ */ __name((error) => isCliFailure(error) ? error.code : error instanceof Error ? error.name : "error", "failureKey");
|
|
31
|
-
|
|
32
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_53afa6060d8ea71d32941ef81a17e026/node_modules/@wirecat/cli-core/dist/runs/events.js
|
|
24
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/runs/events.js
|
|
33
25
|
var providerErrorKey = /* @__PURE__ */ __name((value) => typeof value === "string" && /^[A-Za-z][A-Za-z0-9._-]{0,63}$/.test(value) ? value : void 0, "providerErrorKey");
|
|
34
26
|
var renderEvent = /* @__PURE__ */ __name((event) => {
|
|
35
27
|
if (event.event === "warning") {
|
|
@@ -77,7 +69,7 @@ var MARK = { request: "\u2192", response: "\u2190", cache: "\u2022", warning: "!
|
|
|
77
69
|
var age = /* @__PURE__ */ __name((ms) => ms < 1e3 ? `${ms}ms` : `${Math.round(ms / 1e3)}s`, "age");
|
|
78
70
|
var size = /* @__PURE__ */ __name((bytes) => bytes < 1e3 ? `${bytes} B` : `${(bytes / 1e3).toFixed(1)} kB`, "size");
|
|
79
71
|
|
|
80
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
72
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/runs/error-detail.js
|
|
81
73
|
var MESSAGE_AT_MOST = 500;
|
|
82
74
|
var CAUSES_AT_MOST = 5;
|
|
83
75
|
var FRAMES_AT_MOST = 15;
|
|
@@ -186,7 +178,7 @@ var redactText = /* @__PURE__ */ __name((text) => {
|
|
|
186
178
|
return out.length > MESSAGE_AT_MOST ? `${out.slice(0, MESSAGE_AT_MOST)}\u2026` : out;
|
|
187
179
|
}, "redactText");
|
|
188
180
|
|
|
189
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
181
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/runs/run-context.js
|
|
190
182
|
var REDACTED = "[redacted]";
|
|
191
183
|
var keepsSuccess = /* @__PURE__ */ __name(({ record, fromFlag, env, caller, persistent = false }) => {
|
|
192
184
|
if (!record)
|
|
@@ -349,9 +341,6 @@ var runContextOf = /* @__PURE__ */ __name(({ bin, command, program, argv, env, r
|
|
|
349
341
|
}, "runContextOf");
|
|
350
342
|
|
|
351
343
|
export {
|
|
352
|
-
isCliFailure,
|
|
353
|
-
isCommanderFailure,
|
|
354
|
-
failureKey,
|
|
355
344
|
providerErrorKey,
|
|
356
345
|
renderEvent,
|
|
357
346
|
errorDetailOf,
|
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
agentOf,
|
|
30
30
|
clientHash,
|
|
31
31
|
currentCaller
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-B74SOC4R.js";
|
|
33
33
|
import {
|
|
34
34
|
__name
|
|
35
35
|
} from "./chunk-ZVVMGPBJ.js";
|
|
@@ -541,7 +541,7 @@ function toError(value) {
|
|
|
541
541
|
}
|
|
542
542
|
__name(toError, "toError");
|
|
543
543
|
|
|
544
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
544
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/mcp/caller.js
|
|
545
545
|
var callingAgent = /* @__PURE__ */ __name((fallback, caller = currentCaller()) => {
|
|
546
546
|
const client = caller?.agent?.client?.name;
|
|
547
547
|
if (client && client !== "unknown")
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
MAX_SECRET_INPUT,
|
|
5
5
|
bufferedInput,
|
|
6
6
|
inputPolicy
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-MDDB7M7Z.js";
|
|
8
8
|
import {
|
|
9
9
|
CliError
|
|
10
10
|
} from "./chunk-DALBYUPC.js";
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
__name
|
|
13
13
|
} from "./chunk-ZVVMGPBJ.js";
|
|
14
14
|
|
|
15
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
15
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/terminal/prompt.js
|
|
16
16
|
import { createInterface } from "node:readline";
|
|
17
17
|
import { Writable } from "node:stream";
|
|
18
18
|
var readSecret = /* @__PURE__ */ __name(async (prompt, { input = process.stdin, output = process.stderr, echo = false, signal: givenSignal } = {}) => {
|