@wirecat/cli-memo 0.131.65 → 0.131.66
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-L6EBORCV.js → all-profiles-CWV6RUGR.js} +9 -9
- package/dist/bundle/{anthropic-42PADP4V.js → anthropic-OIVOFYZY.js} +5 -5
- package/dist/bundle/{app-server-7KM4MSDA.js → app-server-2APNY5WO.js} +42 -42
- package/dist/bundle/auto-HRPCC4FE.js +85 -0
- package/dist/bundle/{bun-NYSNYHAD.js → bun-7ZKANZII.js} +2 -2
- package/dist/bundle/{bun-sqlite-B46U7KI7.js → bun-sqlite-M2EHGYBI.js} +5 -5
- package/dist/bundle/{chunk-NRHF7TQ4.js → chunk-22XVNJQP.js} +11 -11
- package/dist/bundle/{chunk-FKUA3BTM.js → chunk-2LAJDBWZ.js} +268 -268
- package/dist/bundle/{chunk-A524HPDV.js → chunk-2OEQH7HY.js} +2 -2
- package/dist/bundle/{chunk-TKPIS4G2.js → chunk-2QIM6246.js} +1 -1
- package/dist/bundle/{chunk-YLG2M2TF.js → chunk-2SIOUXJ7.js} +7 -7
- package/dist/bundle/{chunk-ASWLM74P.js → chunk-4U2IONIS.js} +4 -4
- package/dist/bundle/{chunk-BEMVAPYA.js → chunk-4Y33E3U3.js} +6 -6
- package/dist/bundle/{chunk-XVREIQ2N.js → chunk-637JEJOC.js} +2 -2
- package/dist/bundle/{chunk-5D7BPC33.js → chunk-75MWX5PK.js} +1 -1
- package/dist/bundle/{chunk-FH4P5UQA.js → chunk-7NV2IUIC.js} +4 -4
- package/dist/bundle/{chunk-SOQGV3ZM.js → chunk-ADDDSIRN.js} +6 -6
- package/dist/bundle/{chunk-DXTNBVLV.js → chunk-B3ZXE2IH.js} +277 -277
- package/dist/bundle/{chunk-37E74SKW.js → chunk-BF4SX6DP.js} +72 -72
- package/dist/bundle/{chunk-C4DJLVJQ.js → chunk-C74WKN57.js} +8 -8
- package/dist/bundle/{chunk-3YNJBKGV.js → chunk-CRRBBPJK.js} +337 -337
- package/dist/bundle/{chunk-347UBASY.js → chunk-CUC7KGX4.js} +4 -4
- package/dist/bundle/{chunk-PVGK67AJ.js → chunk-DAA52TDI.js} +156 -156
- package/dist/bundle/{chunk-VTKLHYCZ.js → chunk-DH6PT65U.js} +4 -4
- package/dist/bundle/{chunk-UXAP7MNL.js → chunk-DMC3NDG7.js} +9 -9
- package/dist/bundle/{chunk-3SCHFNUH.js → chunk-DNXPQGFB.js} +23 -23
- package/dist/bundle/{chunk-IK6KH3RE.js → chunk-DSU6UR2X.js} +1 -1
- package/dist/bundle/{chunk-QHNAPLVB.js → chunk-DVVS2API.js} +45 -45
- package/dist/bundle/{chunk-RP6VV35S.js → chunk-EI5IEOXD.js} +2 -2
- package/dist/bundle/{chunk-FHZKHKBJ.js → chunk-GL74QTTV.js} +34 -34
- package/dist/bundle/{chunk-RLX5SC2X.js → chunk-GO73V5BC.js} +1 -1
- package/dist/bundle/{chunk-FUIUS3IG.js → chunk-HB7WN6MX.js} +2 -2
- package/dist/bundle/{chunk-RCGFSWZE.js → chunk-HE2F4JII.js} +8 -8
- package/dist/bundle/{chunk-SIJA2UYC.js → chunk-HHDZIBBO.js} +7 -7
- package/dist/bundle/{chunk-6OS7PTOC.js → chunk-HPUTLOQU.js} +131 -38
- package/dist/bundle/{chunk-NH3A5QTW.js → chunk-HUJ666OW.js} +8 -8
- package/dist/bundle/{chunk-RTLQHLHG.js → chunk-I4EUGFS7.js} +4 -4
- package/dist/bundle/{chunk-RGZUDHAQ.js → chunk-IDBN5CTG.js} +8 -8
- package/dist/bundle/{chunk-I5L7MLZ6.js → chunk-IGXIPABG.js} +1 -1
- package/dist/bundle/{chunk-K5VF47E2.js → chunk-JSFC6TRN.js} +6 -6
- package/dist/bundle/{chunk-FWRBJAQZ.js → chunk-KOJN4WTN.js} +3 -3
- package/dist/bundle/{chunk-2XVXF4RW.js → chunk-KU4TU5XZ.js} +3 -3
- package/dist/bundle/{chunk-SIBQ34LX.js → chunk-KV35JTWA.js} +1 -1
- package/dist/bundle/{chunk-6G53ZFUT.js → chunk-L62FWN3Y.js} +1 -1
- package/dist/bundle/{chunk-LVLFLWGY.js → chunk-LDPNN4ED.js} +12 -12
- package/dist/bundle/{chunk-FG4Q6T72.js → chunk-LEL6NYM5.js} +5 -5
- package/dist/bundle/{chunk-VX4HNQLN.js → chunk-LRQD4RJN.js} +3 -3
- package/dist/bundle/{chunk-SIOUPPN7.js → chunk-LW5G7PAR.js} +6 -6
- package/dist/bundle/{chunk-MWAXS4BX.js → chunk-LWX2PCM6.js} +14 -10
- package/dist/bundle/{chunk-NIJZXGJN.js → chunk-M643YQVP.js} +4 -4
- package/dist/bundle/{chunk-ACG5QN77.js → chunk-M76ZJSPA.js} +3 -3
- package/dist/bundle/{chunk-4GTZSCUE.js → chunk-MEPRCROV.js} +3 -3
- package/dist/bundle/{chunk-ZUQXDJ7A.js → chunk-OO6SA2FM.js} +1 -1
- package/dist/bundle/{chunk-EMNQPMZO.js → chunk-OZBL624P.js} +20 -20
- package/dist/bundle/{chunk-X5CRFU4E.js → chunk-P2MMAW3A.js} +7 -7
- package/dist/bundle/{chunk-QTF4ZXOL.js → chunk-QWP6RJFR.js} +14 -14
- package/dist/bundle/{chunk-724DPWN6.js → chunk-R4LVHS2N.js} +2 -2
- package/dist/bundle/{chunk-PKUBC2ME.js → chunk-RKLCY7YU.js} +4 -4
- package/dist/bundle/{chunk-V7TJSYFK.js → chunk-UCLZMKTT.js} +2 -2
- package/dist/bundle/{chunk-EBDX6DNB.js → chunk-V3JOIUVB.js} +4 -4
- package/dist/bundle/{chunk-B3SERZMP.js → chunk-VBXQAIRI.js} +1 -1
- package/dist/bundle/{chunk-FC5PK6M6.js → chunk-WCRWS2W7.js} +13 -13
- package/dist/bundle/{chunk-DKO7WEXJ.js → chunk-WDVYPHNV.js} +2 -2
- package/dist/bundle/{chunk-ML46T7UC.js → chunk-XAEDDKM4.js} +30 -30
- package/dist/bundle/{chunk-4SUROBD4.js → chunk-XFZESHD3.js} +4 -4
- package/dist/bundle/{chunk-NZJUMLTD.js → chunk-XMGUKW6Y.js} +2 -2
- package/dist/bundle/{chunk-HKC7GDJD.js → chunk-XZBVXJWY.js} +6 -6
- package/dist/bundle/{chunk-VLUDHCCX.js → chunk-ZAOFHRBL.js} +23 -23
- package/dist/bundle/{chunk-4ZW6ZJ2V.js → chunk-ZTONSM5X.js} +2 -2
- package/dist/bundle/command-contract-N554VPBZ.js +32 -0
- package/dist/bundle/{decode-2Z4GCIGA.js → decode-ZCMHC5JI.js} +5 -5
- package/dist/bundle/{dispatch-CRYB6Q2V.js → dispatch-VJSUBAUM.js} +8 -8
- package/dist/bundle/{echarts-JADCSUD7.js → echarts-SJNM7DNA.js} +2 -2
- package/dist/bundle/{embed-ZLEPINEK.js → embed-JO3CVYBK.js} +6 -6
- package/dist/bundle/{embedder-E3DHPZCK.js → embedder-QAEGU7TZ.js} +9 -9
- package/dist/bundle/{entry-MUE6HWX3.js → entry-KMFOJYWF.js} +7 -7
- package/dist/bundle/failure-2FQL5SHA.js +65 -0
- package/dist/bundle/{failure-ZMQJF3RO.js → failure-GLF7OMMM.js} +2 -2
- package/dist/bundle/{first-run-3JYWLJCH.js → first-run-5X2NRJL2.js} +11 -11
- package/dist/bundle/first-screen-2LMAVNBU.js +30 -0
- package/dist/bundle/{instructions-ECXOBMWS.js → instructions-GLZE4RPY.js} +1 -1
- package/dist/bundle/{mcp-RKJG22KM.js → mcp-H2WYFBNW.js} +2 -2
- package/dist/bundle/mcp-QXTOJORS.js +90 -0
- package/dist/bundle/memo.js +16 -16
- package/dist/bundle/{node-A6363DJ4.js → node-BNMBIM5C.js} +2 -2
- package/dist/bundle/{node-sqlite-FA2P77PW.js → node-sqlite-BSRYEMOR.js} +6 -6
- package/dist/bundle/{oauth-DBGARGR7.js → oauth-HYAEWGBV.js} +7 -7
- package/dist/bundle/{open-5YYG2VWH.js → open-X7J4Q3I6.js} +5 -5
- package/dist/bundle/{openai-BPVP7TZ7.js → openai-ZACXNPZS.js} +10 -10
- package/dist/bundle/{process-DGPZRHQA.js → process-5I6233QY.js} +1 -1
- package/dist/bundle/{program-RM2L3LIT.js → program-RQIADAES.js} +90 -77
- package/dist/bundle/{prompt-NTAZWPWA.js → prompt-DVKTWZHJ.js} +5 -5
- package/dist/bundle/{recognize-OGEP5VD3.js → recognize-VXK4L74H.js} +4 -4
- package/dist/bundle/{remote-DER2PFH6.js → remote-IJLJQRQN.js} +7 -7
- package/dist/bundle/{rerank-PB5ACFHS.js → rerank-553ZMBYJ.js} +7 -7
- package/dist/bundle/{serve-KNEY4BXK.js → serve-76AFHLTI.js} +9 -9
- package/dist/bundle/{server-XKSIHWM2.js → server-B3F54YWL.js} +56 -56
- package/dist/bundle/server-PSEKWXKK.js +48 -0
- package/dist/bundle/server-QDPYZZT5.js +61 -0
- package/dist/bundle/{state-JMCWHHZM.js → state-WYFGGGAG.js} +6 -6
- package/dist/bundle/{store-M5QSIRWJ.js → store-S6QR47NT.js} +13 -13
- package/dist/bundle/store-maintenance-command-O4TXIWSL.js +47 -0
- package/dist/bundle/update-Z4LDMYC5.js +68 -0
- package/dist/examples.js +4 -4
- package/dist/examples.js.map +1 -1
- package/dist/finance/subscriptions-command.js +3 -3
- package/dist/finance/subscriptions-command.js.map +1 -1
- package/dist/records/import.d.ts.map +1 -1
- package/dist/records/import.js +2 -0
- package/dist/records/import.js.map +1 -1
- package/dist/records/input.d.ts +3 -1
- package/dist/records/input.d.ts.map +1 -1
- package/dist/records/input.js +14 -2
- package/dist/records/input.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +2 -2
- package/scenarios/project-state.md +2 -2
- package/dist/bundle/auto-4KOZDLIU.js +0 -85
- package/dist/bundle/command-contract-PLB2JGFJ.js +0 -32
- package/dist/bundle/failure-CRWMZZBO.js +0 -65
- package/dist/bundle/first-screen-QH34AIFV.js +0 -30
- package/dist/bundle/mcp-QX2D6EXA.js +0 -90
- package/dist/bundle/server-L622PMVC.js +0 -61
- package/dist/bundle/server-SJVP2XXD.js +0 -48
- package/dist/bundle/store-maintenance-command-PQCO5ICC.js +0 -47
- package/dist/bundle/update-PQUASMQN.js +0 -68
- /package/dist/bundle/{chunk-C3XNJQD7.js → chunk-IJPRQERM.js} +0 -0
- /package/dist/bundle/{chunk-SW6C6WH5.js → chunk-SYWHHQMC.js} +0 -0
|
@@ -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-ZTONSM5X.js";
|
|
6
6
|
import {
|
|
7
7
|
__name
|
|
8
8
|
} from "./chunk-ZVVMGPBJ.js";
|
|
9
9
|
|
|
10
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.613.0_@wirecat+cli-base@0.
|
|
10
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.613.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_4e56005b613f8e91d34ec4e9dbb41bec/node_modules/@wirecat/cli-core/dist/ports/app.js
|
|
11
11
|
var envName = /* @__PURE__ */ __name((app, name) => `${app.envPrefix}_${name}`, "envName");
|
|
12
12
|
var readOnlyLockOf = /* @__PURE__ */ __name((app, env) => {
|
|
13
13
|
const name = envName(app, "READ_ONLY");
|
|
@@ -27,19 +27,19 @@ import {
|
|
|
27
27
|
serverSearchOptions,
|
|
28
28
|
summaryOf,
|
|
29
29
|
unansweredHours
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-2LAJDBWZ.js";
|
|
31
31
|
import {
|
|
32
32
|
MAIL_HIT_UNTRUSTED,
|
|
33
33
|
messagesAnswer,
|
|
34
34
|
offsetOf,
|
|
35
35
|
shownOf
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-DNXPQGFB.js";
|
|
37
37
|
import {
|
|
38
38
|
messageItem
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-DVVS2API.js";
|
|
40
40
|
import {
|
|
41
41
|
knownPermissionKeys
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-ZAOFHRBL.js";
|
|
43
43
|
import {
|
|
44
44
|
AGENDA_DEFAULTS,
|
|
45
45
|
DEFAULT_BACKEND,
|
|
@@ -63,7 +63,7 @@ import {
|
|
|
63
63
|
sourceKey,
|
|
64
64
|
typedQuery,
|
|
65
65
|
withQuery
|
|
66
|
-
} from "./chunk-
|
|
66
|
+
} from "./chunk-B3ZXE2IH.js";
|
|
67
67
|
import {
|
|
68
68
|
Command,
|
|
69
69
|
FETCH,
|
|
@@ -96,11 +96,11 @@ import {
|
|
|
96
96
|
snakeKeys,
|
|
97
97
|
withSettingDefaults,
|
|
98
98
|
withoutSetting
|
|
99
|
-
} from "./chunk-
|
|
99
|
+
} from "./chunk-DAA52TDI.js";
|
|
100
100
|
import {
|
|
101
101
|
mailHolderVariable,
|
|
102
102
|
readOnlyLockOf
|
|
103
|
-
} from "./chunk-
|
|
103
|
+
} from "./chunk-EI5IEOXD.js";
|
|
104
104
|
import {
|
|
105
105
|
DEFAULT_DECISION_POLICY,
|
|
106
106
|
MESSAGE_PARSING,
|
|
@@ -113,7 +113,7 @@ import {
|
|
|
113
113
|
registrableOf,
|
|
114
114
|
scoreGroup,
|
|
115
115
|
validateFields
|
|
116
|
-
} from "./chunk-
|
|
116
|
+
} from "./chunk-CRRBBPJK.js";
|
|
117
117
|
import {
|
|
118
118
|
DEAL_KINDS,
|
|
119
119
|
count,
|
|
@@ -125,12 +125,12 @@ import {
|
|
|
125
125
|
time,
|
|
126
126
|
timezoneOf,
|
|
127
127
|
untrusted
|
|
128
|
-
} from "./chunk-
|
|
128
|
+
} from "./chunk-BF4SX6DP.js";
|
|
129
129
|
import {
|
|
130
130
|
configFilePath,
|
|
131
131
|
resolvePaths,
|
|
132
132
|
saveConfigFile
|
|
133
|
-
} from "./chunk-
|
|
133
|
+
} from "./chunk-OZBL624P.js";
|
|
134
134
|
import {
|
|
135
135
|
MAX_NEXT_STEPS,
|
|
136
136
|
array,
|
|
@@ -153,16 +153,16 @@ import {
|
|
|
153
153
|
string,
|
|
154
154
|
union,
|
|
155
155
|
unknown
|
|
156
|
-
} from "./chunk-
|
|
156
|
+
} from "./chunk-HE2F4JII.js";
|
|
157
157
|
import {
|
|
158
158
|
CliError
|
|
159
|
-
} from "./chunk-
|
|
159
|
+
} from "./chunk-ZTONSM5X.js";
|
|
160
160
|
import {
|
|
161
161
|
__name,
|
|
162
162
|
__toESM
|
|
163
163
|
} from "./chunk-ZVVMGPBJ.js";
|
|
164
164
|
|
|
165
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.613.0_@wirecat+cli-base@0.
|
|
165
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.613.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_4e56005b613f8e91d34ec4e9dbb41bec/node_modules/@wirecat/cli-core/dist/mail/attachments.js
|
|
166
166
|
var MAX_ATTACHMENT_CHARS = 2e5;
|
|
167
167
|
var DEFAULT_ATTACHMENT_POLICY = { read: true, maxBytes: 10 * 1024 * 1024 };
|
|
168
168
|
var POLICY_SKIPS = ["not-read", "too-large"];
|
|
@@ -201,7 +201,7 @@ var readAttachments = /* @__PURE__ */ __name(async (mail, messageId, { loadEngin
|
|
|
201
201
|
return files;
|
|
202
202
|
}, "readAttachments");
|
|
203
203
|
|
|
204
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.613.0_@wirecat+cli-base@0.
|
|
204
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.613.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_4e56005b613f8e91d34ec4e9dbb41bec/node_modules/@wirecat/cli-core/dist/mail/read.js
|
|
205
205
|
var lowerSuspicious = /* @__PURE__ */ __name((items, suspicious) => [
|
|
206
206
|
...items.filter((item) => !suspicious(item)),
|
|
207
207
|
...items.filter(suspicious)
|
|
@@ -288,11 +288,11 @@ var attachmentsText = /* @__PURE__ */ __name((hit) => (hit.attachments ?? []).ma
|
|
|
288
288
|
${file.text.replace(/\n/g, "\n ")}`;
|
|
289
289
|
}).join("\n"), "attachmentsText");
|
|
290
290
|
|
|
291
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.613.0_@wirecat+cli-base@0.
|
|
291
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.613.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_4e56005b613f8e91d34ec4e9dbb41bec/node_modules/@wirecat/cli-core/dist/mail/bulk.js
|
|
292
292
|
var BULK = "bulk";
|
|
293
293
|
var bulkBox = { externalId: "memo:bulk", name: "bulk", kind: BULK };
|
|
294
294
|
|
|
295
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.613.0_@wirecat+cli-base@0.
|
|
295
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.613.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_4e56005b613f8e91d34ec4e9dbb41bec/node_modules/@wirecat/cli-core/dist/mail/email-input.js
|
|
296
296
|
var sentAtOf = /* @__PURE__ */ __name((date, receivedAt) => {
|
|
297
297
|
const sent = date === null ? Number.NaN : Date.parse(date);
|
|
298
298
|
return Number.isNaN(sent) ? Date.parse(receivedAt) : sent;
|
|
@@ -312,7 +312,7 @@ var parsedEmail = /* @__PURE__ */ __name((mail, item, header, address) => ({
|
|
|
312
312
|
outgoing: mail.from === null ? null : mail.from.email === address
|
|
313
313
|
}), "parsedEmail");
|
|
314
314
|
|
|
315
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.613.0_@wirecat+cli-base@0.
|
|
315
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.613.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_4e56005b613f8e91d34ec4e9dbb41bec/node_modules/@wirecat/cli-core/dist/mail/presets.js
|
|
316
316
|
var PRESETS = {
|
|
317
317
|
social: {
|
|
318
318
|
about: "notifications from social networks",
|
|
@@ -404,7 +404,7 @@ var presetMatches = /* @__PURE__ */ __name((name, facts) => {
|
|
|
404
404
|
return false;
|
|
405
405
|
}, "presetMatches");
|
|
406
406
|
|
|
407
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.613.0_@wirecat+cli-base@0.
|
|
407
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.613.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_4e56005b613f8e91d34ec4e9dbb41bec/node_modules/@wirecat/cli-core/dist/mail/probe.js
|
|
408
408
|
var share = /* @__PURE__ */ __name((part, whole) => Math.round(part / whole * 100) / 100, "share");
|
|
409
409
|
var isSent = /* @__PURE__ */ __name((item) => item.labels?.includes("Sent") || /(^|\/)sent\b/i.test(item.folder ?? ""), "isSent");
|
|
410
410
|
var groupKey = /* @__PURE__ */ __name((headers) => headers.listId === void 0 ? `from:${headers.from}` : `list:${headers.listId}`, "groupKey");
|
|
@@ -472,7 +472,7 @@ var probeMail = /* @__PURE__ */ __name((items, limit, ages = /* @__PURE__ */ new
|
|
|
472
472
|
};
|
|
473
473
|
}, "probeMail");
|
|
474
474
|
|
|
475
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.613.0_@wirecat+cli-base@0.
|
|
475
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.613.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_4e56005b613f8e91d34ec4e9dbb41bec/node_modules/@wirecat/cli-core/dist/mail/facts.js
|
|
476
476
|
var factsOf = /* @__PURE__ */ __name((listed2, rules, ages = /* @__PURE__ */ new Map()) => {
|
|
477
477
|
const grouped = rules.some(({ match }) => match.score_at_least !== void 0 || match.preset !== void 0);
|
|
478
478
|
if (!grouped)
|
|
@@ -5743,7 +5743,7 @@ var PostalMime = class _PostalMime {
|
|
|
5743
5743
|
}
|
|
5744
5744
|
};
|
|
5745
5745
|
|
|
5746
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.613.0_@wirecat+cli-base@0.
|
|
5746
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.613.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_4e56005b613f8e91d34ec4e9dbb41bec/node_modules/@wirecat/cli-core/dist/mail/headers.js
|
|
5747
5747
|
var unfold = /* @__PURE__ */ __name((text2) => text2.replace(/\r?\n[ \t]+/g, " "), "unfold");
|
|
5748
5748
|
var field = /* @__PURE__ */ __name((unfolded, name) => new RegExp(`^${name}:[ \\t]*(.*?)\\r?$`, "im").exec(unfolded)?.[1], "field");
|
|
5749
5749
|
var fieldsOf = /* @__PURE__ */ __name((unfolded, name) => [...unfolded.matchAll(new RegExp(`^${name}:[ \\t]*(.*?)\\r?$`, "gim"))].map(([, value]) => value), "fieldsOf");
|
|
@@ -5790,7 +5790,7 @@ var mailHeadersOf = /* @__PURE__ */ __name((raw) => {
|
|
|
5790
5790
|
};
|
|
5791
5791
|
}, "mailHeadersOf");
|
|
5792
5792
|
|
|
5793
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.613.0_@wirecat+cli-base@0.
|
|
5793
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.613.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_4e56005b613f8e91d34ec4e9dbb41bec/node_modules/@wirecat/cli-core/dist/mail/parse.js
|
|
5794
5794
|
var MAX_BODY_CHARS = 1e6;
|
|
5795
5795
|
var MAX_ATTACHMENTS = 50;
|
|
5796
5796
|
var BRACKETED_ID = /<[^<>\s]+>/g;
|
|
@@ -5855,13 +5855,13 @@ var parseMail = /* @__PURE__ */ __name(async (raw, maxBodyChars = MAX_BODY_CHARS
|
|
|
5855
5855
|
};
|
|
5856
5856
|
}, "parseMail");
|
|
5857
5857
|
|
|
5858
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.613.0_@wirecat+cli-base@0.
|
|
5858
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.613.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_4e56005b613f8e91d34ec4e9dbb41bec/node_modules/@wirecat/cli-core/dist/mail/partial.js
|
|
5859
5859
|
var PARTIAL = "partial";
|
|
5860
5860
|
|
|
5861
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.613.0_@wirecat+cli-base@0.
|
|
5861
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.613.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_4e56005b613f8e91d34ec4e9dbb41bec/node_modules/@wirecat/cli-core/dist/mail/account-key.js
|
|
5862
5862
|
var mailAccountKey = /* @__PURE__ */ __name((address) => ({ provider: "email", account: address.toLowerCase() }), "mailAccountKey");
|
|
5863
5863
|
|
|
5864
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.613.0_@wirecat+cli-base@0.
|
|
5864
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.613.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_4e56005b613f8e91d34ec4e9dbb41bec/node_modules/@wirecat/cli-core/dist/mail/rule-stored.js
|
|
5865
5865
|
var ACTION_OF = { full: "keep", envelope: "envelope", skip: "skip" };
|
|
5866
5866
|
var KINDS = {
|
|
5867
5867
|
from: "string",
|
|
@@ -5930,7 +5930,7 @@ var storedMailRuleSet = /* @__PURE__ */ __name(async (store, account, query) =>
|
|
|
5930
5930
|
}, "storedMailRuleSet");
|
|
5931
5931
|
var storedMailRules = /* @__PURE__ */ __name(async (store, account, query) => (await storedMailRuleSet(store, account, query)).rules, "storedMailRules");
|
|
5932
5932
|
|
|
5933
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.613.0_@wirecat+cli-base@0.
|
|
5933
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.613.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_4e56005b613f8e91d34ec4e9dbb41bec/node_modules/@wirecat/cli-core/dist/mail/rules.js
|
|
5934
5934
|
var DAY_MS = 24 * 60 * 60 * 1e3;
|
|
5935
5935
|
var domainOf = /* @__PURE__ */ __name((address) => address.slice(address.lastIndexOf("@") + 1), "domainOf");
|
|
5936
5936
|
var domainMatches = /* @__PURE__ */ __name((wanted2, sender) => {
|
|
@@ -6002,7 +6002,7 @@ var tagsOf = /* @__PURE__ */ __name((rules, facts) => {
|
|
|
6002
6002
|
}, "tagsOf");
|
|
6003
6003
|
var conditionKeys = /* @__PURE__ */ __name((match) => Object.keys(match).filter((key) => match[key] !== void 0).sort(), "conditionKeys");
|
|
6004
6004
|
|
|
6005
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.613.0_@wirecat+cli-base@0.
|
|
6005
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.613.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_4e56005b613f8e91d34ec4e9dbb41bec/node_modules/@wirecat/cli-core/dist/mail/rule-input.js
|
|
6006
6006
|
var STORE_ACTION = { keep: "full", envelope: "envelope", skip: "skip" };
|
|
6007
6007
|
var LOWER = ["from", "domain", "list_id", "subject"];
|
|
6008
6008
|
var conditionsOf = /* @__PURE__ */ __name((match) => Object.fromEntries(conditionKeys(match).map((key) => {
|
|
@@ -6032,7 +6032,7 @@ var ruleInput = /* @__PURE__ */ __name((rule, source = rule.source ?? "owner") =
|
|
|
6032
6032
|
decidedAt: decidedAtOf(rule.decided_at)
|
|
6033
6033
|
}), "ruleInput");
|
|
6034
6034
|
|
|
6035
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.613.0_@wirecat+cli-base@0.
|
|
6035
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.613.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_4e56005b613f8e91d34ec4e9dbb41bec/node_modules/@wirecat/cli-core/dist/mail/rule-tags.js
|
|
6036
6036
|
var reuseOf = /* @__PURE__ */ __name((error) => {
|
|
6037
6037
|
const { details } = error;
|
|
6038
6038
|
return details?.reason === "tag-review.required" ? details.candidates?.[0]?.name : void 0;
|
|
@@ -6093,7 +6093,7 @@ var settleRuleTags = /* @__PURE__ */ __name(async (store, accountId, rules, outc
|
|
|
6093
6093
|
}
|
|
6094
6094
|
}, "settleRuleTags");
|
|
6095
6095
|
|
|
6096
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.613.0_@wirecat+cli-base@0.
|
|
6096
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.613.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_4e56005b613f8e91d34ec4e9dbb41bec/node_modules/@wirecat/cli-core/dist/mail/server-query.js
|
|
6097
6097
|
var DAY = 864e5;
|
|
6098
6098
|
var empty = /* @__PURE__ */ __name(() => ({ words: [], from: [], to: [], cc: [], subject: [], body: [] }), "empty");
|
|
6099
6099
|
var narrows = /* @__PURE__ */ __name((criteria) => criteria.words.length + criteria.from.length + criteria.to.length + criteria.cc.length + criteria.subject.length + criteria.body.length > 0 || criteria.since !== void 0 || criteria.before !== void 0 || criteria.seen !== void 0 || criteria.flagged !== void 0, "narrows");
|
|
@@ -6166,7 +6166,7 @@ var mailCriteriaOf = /* @__PURE__ */ __name((text2, { exact, timezone } = {}) =>
|
|
|
6166
6166
|
};
|
|
6167
6167
|
}, "mailCriteriaOf");
|
|
6168
6168
|
|
|
6169
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.613.0_@wirecat+cli-base@0.
|
|
6169
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.613.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_4e56005b613f8e91d34ec4e9dbb41bec/node_modules/@wirecat/cli-core/dist/mail/server-search.js
|
|
6170
6170
|
var refusal = {
|
|
6171
6171
|
unsupported: "this mailbox's server cannot be searched \u2014 use --backend archive",
|
|
6172
6172
|
offline: "--backend server needs the network \u2014 not with --offline",
|
|
@@ -6381,7 +6381,7 @@ var searchMailServer = /* @__PURE__ */ __name(async (store, mailbox, access, req
|
|
|
6381
6381
|
return { report, sources };
|
|
6382
6382
|
}, "searchMailServer");
|
|
6383
6383
|
|
|
6384
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.613.0_@wirecat+cli-base@0.
|
|
6384
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.613.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_4e56005b613f8e91d34ec4e9dbb41bec/node_modules/@wirecat/cli-core/dist/mail/cli/marks.js
|
|
6385
6385
|
var iso = /* @__PURE__ */ __name((ms) => ms === null ? null : new Date(ms).toISOString(), "iso");
|
|
6386
6386
|
var mailMark = strictObject({
|
|
6387
6387
|
holder: string(),
|
|
@@ -6479,7 +6479,7 @@ var resetMarkCommand = /* @__PURE__ */ __name((mail) => answerEntity(annotate(ne
|
|
|
6479
6479
|
});
|
|
6480
6480
|
}), "resetMarkCommand");
|
|
6481
6481
|
|
|
6482
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.613.0_@wirecat+cli-base@0.
|
|
6482
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.613.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_4e56005b613f8e91d34ec4e9dbb41bec/node_modules/@wirecat/cli-core/dist/mail/review.js
|
|
6483
6483
|
var REVIEW_THREADS = 50;
|
|
6484
6484
|
var REVIEW_PER_THREAD = 50;
|
|
6485
6485
|
var OWED_DAYS = 30;
|
|
@@ -6577,7 +6577,7 @@ var reviewMail = /* @__PURE__ */ __name(async (store, mailbox, options) => {
|
|
|
6577
6577
|
};
|
|
6578
6578
|
}, "reviewMail");
|
|
6579
6579
|
|
|
6580
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.613.0_@wirecat+cli-base@0.
|
|
6580
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.613.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_4e56005b613f8e91d34ec4e9dbb41bec/node_modules/@wirecat/cli-core/dist/mail/cli/review.js
|
|
6581
6581
|
var DAY2 = 864e5;
|
|
6582
6582
|
var REVIEW_UNTRUSTED = [...SUMMARY_UNTRUSTED, ...MAIL_HIT_UNTRUSTED];
|
|
6583
6583
|
var MAIL_REVIEW_QUERY = defineQuery({
|
|
@@ -6859,7 +6859,7 @@ an agent over MCP, and each scheduled run.`).action(async function(query) {
|
|
|
6859
6859
|
saved?.save(found.checked ?? {}, found.complete ? { through: found.until } : {});
|
|
6860
6860
|
}), "mailReviewCommand");
|
|
6861
6861
|
|
|
6862
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.613.0_@wirecat+cli-base@0.
|
|
6862
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.613.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_4e56005b613f8e91d34ec4e9dbb41bec/node_modules/@wirecat/cli-core/dist/mail/cli/bulk-settings.js
|
|
6863
6863
|
var listed = /* @__PURE__ */ __name((words2) => words2.join(", "), "listed");
|
|
6864
6864
|
var MAIL_BULK_SETTINGS = [
|
|
6865
6865
|
{
|
|
@@ -6915,7 +6915,7 @@ var bulkTriageOf = /* @__PURE__ */ __name((config) => {
|
|
|
6915
6915
|
};
|
|
6916
6916
|
}, "bulkTriageOf");
|
|
6917
6917
|
|
|
6918
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.613.0_@wirecat+cli-base@0.
|
|
6918
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.613.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_4e56005b613f8e91d34ec4e9dbb41bec/node_modules/@wirecat/cli-core/dist/mail/cli/index.js
|
|
6919
6919
|
var absentAccount = /* @__PURE__ */ __name((error) => {
|
|
6920
6920
|
if (error instanceof CliError && error.code === "not_found")
|
|
6921
6921
|
return void 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.613.0_@wirecat+cli-base@0.
|
|
7
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.613.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_4e56005b613f8e91d34ec4e9dbb41bec/node_modules/@wirecat/cli-core/dist/mcp/bot/instructions.js
|
|
8
8
|
var botInstructions = /* @__PURE__ */ __name(({ command, name, profile, writes, skill }) => [
|
|
9
9
|
`The owner's ${name} bot "${profile}", through the official Bot API \u2014 not the owner's personal account. What it writes, people see as the bot.`,
|
|
10
10
|
"Use these tools to read the chats this bot is in, find a message or a person, and \u2014 when the profile allows \u2014 write as the bot.",
|
|
@@ -2,7 +2,7 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
defineReasons
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-HE2F4JII.js";
|
|
6
6
|
|
|
7
7
|
// dist/reasons.js
|
|
8
8
|
var REASONS = defineReasons([
|
|
@@ -126,7 +126,7 @@ var REASONS = defineReasons([
|
|
|
126
126
|
]);
|
|
127
127
|
|
|
128
128
|
// dist/version.js
|
|
129
|
-
var VERSION = "0.131.
|
|
129
|
+
var VERSION = "0.131.66";
|
|
130
130
|
|
|
131
131
|
// dist/app.js
|
|
132
132
|
var APP = {
|
|
@@ -4,12 +4,12 @@ import {
|
|
|
4
4
|
errorCodes,
|
|
5
5
|
isCliError,
|
|
6
6
|
visibleControls
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-ZTONSM5X.js";
|
|
8
8
|
import {
|
|
9
9
|
__name
|
|
10
10
|
} from "./chunk-ZVVMGPBJ.js";
|
|
11
11
|
|
|
12
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
12
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/exit-codes.js
|
|
13
13
|
var EXIT_CODES = {
|
|
14
14
|
validation_error: 2,
|
|
15
15
|
configuration_error: 3,
|
|
@@ -1288,7 +1288,7 @@ function unwrap(schema) {
|
|
|
1288
1288
|
}
|
|
1289
1289
|
__name(unwrap, "unwrap");
|
|
1290
1290
|
|
|
1291
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
1291
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/effects.js
|
|
1292
1292
|
var EFFECT_LEVELS = ["none", "read", "write"];
|
|
1293
1293
|
var effectsSchema = strictObject({
|
|
1294
1294
|
remote: picklist(EFFECT_LEVELS),
|
|
@@ -1925,7 +1925,7 @@ function toStandardJsonSchema(schema) {
|
|
|
1925
1925
|
}
|
|
1926
1926
|
__name(toStandardJsonSchema, "toStandardJsonSchema");
|
|
1927
1927
|
|
|
1928
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
1928
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/registry.js
|
|
1929
1929
|
var word = pipe(string(), regex(/^[a-z][a-z0-9]*(-[a-z0-9]+)*$/, "a lower-case word, words joined by -"));
|
|
1930
1930
|
var SNAKE_CASE = /^[a-z][a-z0-9]*(_[a-z0-9]+)*$/;
|
|
1931
1931
|
var text = pipe(string(), regex(/\S/, "must not be empty"));
|
|
@@ -1967,7 +1967,7 @@ var fill = /* @__PURE__ */ __name((template, values) => template.replace(PLACEHO
|
|
|
1967
1967
|
return String(value);
|
|
1968
1968
|
}), "fill");
|
|
1969
1969
|
|
|
1970
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
1970
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/output.js
|
|
1971
1971
|
var MAX_NEXT_STEPS = 2;
|
|
1972
1972
|
var COMPACT_FLAG = "--compact";
|
|
1973
1973
|
var isoTime = pipe(string(), isoTimestamp("an ISO 8601 time in UTC"), endsWith("Z", "an ISO 8601 time in UTC, ending in `Z`"));
|
|
@@ -2079,7 +2079,7 @@ var jsonlOf = /* @__PURE__ */ __name(({ items, page, meta }) => [
|
|
|
2079
2079
|
JSON.stringify({ type: "end", complete: meta.complete, ...meta.issues ? { issues: meta.issues } : {}, page })
|
|
2080
2080
|
].join("\n"), "jsonlOf");
|
|
2081
2081
|
|
|
2082
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2082
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/errors.js
|
|
2083
2083
|
var CRASH_CODE = "internal_error";
|
|
2084
2084
|
var CRASH_REASON = "command.crashed";
|
|
2085
2085
|
var errorObjectSchema = strictObject({
|
|
@@ -2172,7 +2172,7 @@ var BASE_REASONS = defineReasons([
|
|
|
2172
2172
|
{ reason: CRASH_REASON, code: CRASH_CODE, message: "the command failed; this is a bug", details: [] }
|
|
2173
2173
|
]);
|
|
2174
2174
|
|
|
2175
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2175
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/steps.js
|
|
2176
2176
|
var SAME_COMMAND = "*";
|
|
2177
2177
|
var commandPath = pipe(string(), regex(/^[a-z][a-z0-9-]*( [a-z][a-z0-9-]*)*$/, "a command path such as `messages sync`"));
|
|
2178
2178
|
var stepSchema = union([
|
|
@@ -2251,7 +2251,7 @@ var STEPS = defineSteps([
|
|
|
2251
2251
|
}
|
|
2252
2252
|
]);
|
|
2253
2253
|
|
|
2254
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2254
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/failure.js
|
|
2255
2255
|
var recognise = /* @__PURE__ */ __name((failure) => {
|
|
2256
2256
|
if (isCliError(failure))
|
|
2257
2257
|
return failure;
|
|
@@ -4,22 +4,22 @@ import {
|
|
|
4
4
|
isCliFailure,
|
|
5
5
|
secretNamed,
|
|
6
6
|
withoutSecrets
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-KU4TU5XZ.js";
|
|
8
8
|
import {
|
|
9
9
|
isContentKey
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-OZBL624P.js";
|
|
11
11
|
import {
|
|
12
12
|
__name
|
|
13
13
|
} from "./chunk-ZVVMGPBJ.js";
|
|
14
14
|
|
|
15
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.613.0_@wirecat+cli-base@0.
|
|
15
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.613.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_4e56005b613f8e91d34ec4e9dbb41bec/node_modules/@wirecat/cli-core/dist/runs/run-context.js
|
|
16
16
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
17
17
|
import { createHash } from "node:crypto";
|
|
18
18
|
|
|
19
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.613.0_@wirecat+cli-base@0.
|
|
19
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.613.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_4e56005b613f8e91d34ec4e9dbb41bec/node_modules/@wirecat/cli-core/dist/runs/error-detail.js
|
|
20
20
|
import { homedir } from "node:os";
|
|
21
21
|
|
|
22
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.613.0_@wirecat+cli-base@0.
|
|
22
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.613.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_4e56005b613f8e91d34ec4e9dbb41bec/node_modules/@wirecat/cli-core/dist/runs/events.js
|
|
23
23
|
var providerErrorKey = /* @__PURE__ */ __name((value) => typeof value === "string" && /^[A-Za-z][A-Za-z0-9._-]{0,63}$/.test(value) ? value : void 0, "providerErrorKey");
|
|
24
24
|
var renderEvent = /* @__PURE__ */ __name((event) => {
|
|
25
25
|
if (event.event === "warning") {
|
|
@@ -67,7 +67,7 @@ var MARK = { request: "\u2192", response: "\u2190", cache: "\u2022", warning: "!
|
|
|
67
67
|
var age = /* @__PURE__ */ __name((ms) => ms < 1e3 ? `${ms}ms` : `${Math.round(ms / 1e3)}s`, "age");
|
|
68
68
|
var size = /* @__PURE__ */ __name((bytes) => bytes < 1e3 ? `${bytes} B` : `${(bytes / 1e3).toFixed(1)} kB`, "size");
|
|
69
69
|
|
|
70
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.613.0_@wirecat+cli-base@0.
|
|
70
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.613.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_4e56005b613f8e91d34ec4e9dbb41bec/node_modules/@wirecat/cli-core/dist/runs/error-detail.js
|
|
71
71
|
var MESSAGE_AT_MOST = 500;
|
|
72
72
|
var CAUSES_AT_MOST = 5;
|
|
73
73
|
var FRAMES_AT_MOST = 15;
|
|
@@ -176,7 +176,7 @@ var redactText = /* @__PURE__ */ __name((text) => {
|
|
|
176
176
|
return out.length > MESSAGE_AT_MOST ? `${out.slice(0, MESSAGE_AT_MOST)}\u2026` : out;
|
|
177
177
|
}, "redactText");
|
|
178
178
|
|
|
179
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.613.0_@wirecat+cli-base@0.
|
|
179
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.613.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_4e56005b613f8e91d34ec4e9dbb41bec/node_modules/@wirecat/cli-core/dist/runs/run-context.js
|
|
180
180
|
var REDACTED = "[redacted]";
|
|
181
181
|
var keepsSuccess = /* @__PURE__ */ __name(({ record, fromFlag, env, caller, persistent = false }) => {
|
|
182
182
|
if (!record)
|