@wirecat/mail-cli 0.15.0 → 0.16.1
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 +32 -0
- package/README.md +14 -14
- package/dist/bin/mail.js +2 -2
- package/dist/bundle/{all-profiles-PKXL5TKP.js → all-profiles-TUDREUUW.js} +6 -6
- package/dist/bundle/{anthropic-DFDNZU7C.js → anthropic-KQOVSP6C.js} +3 -3
- package/dist/bundle/{app-server-WOZAOCKX.js → app-server-QK7PKVT7.js} +40 -40
- package/dist/bundle/{bun-DKZAL6ML.js → bun-2NMWL5YB.js} +2 -2
- package/dist/bundle/{bun-sqlite-2A7FS5GD.js → bun-sqlite-Y4FP6SDX.js} +2 -2
- package/dist/bundle/{chunk-WIU733D2.js → chunk-3CVDHJER.js} +1 -1
- package/dist/bundle/{chunk-QJQV6KG2.js → chunk-3ZJE5TIG.js} +1 -1
- package/dist/bundle/{chunk-FEWWBU2I.js → chunk-4IEDXIUN.js} +208 -210
- package/dist/bundle/{chunk-WTDYN3TQ.js → chunk-4IIH5PXR.js} +26 -26
- package/dist/bundle/{chunk-YWIU4HOT.js → chunk-5FPQGUJA.js} +1 -1
- package/dist/bundle/{chunk-U3VX3UUC.js → chunk-6DVPPLAN.js} +3 -3
- package/dist/bundle/{chunk-IA6U76ZY.js → chunk-7LMTWOTP.js} +1 -1
- package/dist/bundle/{chunk-YRHXVXLQ.js → chunk-ANFIIXBL.js} +1 -1
- package/dist/bundle/{chunk-QSGT4ZH4.js → chunk-ARDUJR5Z.js} +1 -1
- package/dist/bundle/{chunk-BKF7XIJ5.js → chunk-B2NDDA2W.js} +8 -8
- package/dist/bundle/{chunk-BIKMEGC7.js → chunk-CGH6UH3T.js} +7 -7
- package/dist/bundle/{chunk-4HVY3QPF.js → chunk-CRYWPLJP.js} +1 -1
- package/dist/bundle/{chunk-LRBAQSU3.js → chunk-CT2MIWXY.js} +2 -2
- package/dist/bundle/{chunk-JQTIB4WJ.js → chunk-DDQXDX4U.js} +4 -4
- package/dist/bundle/{chunk-NNLYS4IR.js → chunk-DKIAHQRN.js} +7 -7
- package/dist/bundle/{chunk-XKUAEYJV.js → chunk-EBEYU7RW.js} +9 -9
- package/dist/bundle/{chunk-6AYJDBHT.js → chunk-EZIJPXDZ.js} +5 -5
- package/dist/bundle/{chunk-NDZK466U.js → chunk-FHY664YS.js} +3 -3
- package/dist/bundle/{chunk-4YECCESG.js → chunk-FROWEHK7.js} +2 -2
- package/dist/bundle/{chunk-73SQQXSU.js → chunk-GAYW2JRW.js} +7 -7
- package/dist/bundle/{chunk-KJYCA6IC.js → chunk-GIKNAOER.js} +3 -3
- package/dist/bundle/{chunk-M5DF6QNT.js → chunk-HN3EDDVX.js} +12 -12
- package/dist/bundle/{chunk-RFDP45QO.js → chunk-HVAXTTOT.js} +2 -2
- package/dist/bundle/{chunk-M5VHTDJZ.js → chunk-I3K6JG4I.js} +16 -16
- package/dist/bundle/{chunk-SPQY3PJX.js → chunk-IJYYD2JU.js} +296 -169
- package/dist/bundle/{chunk-K4N5UG64.js → chunk-K2OQCQ2N.js} +4 -4
- package/dist/bundle/{chunk-3MKCLPQV.js → chunk-KJV3BI7S.js} +9 -9
- package/dist/bundle/{chunk-HGOYQUT7.js → chunk-KMZRXGTF.js} +1 -1
- package/dist/bundle/{chunk-XGNC5OJG.js → chunk-LMN7SYX4.js} +1 -1
- package/dist/bundle/{chunk-5W7D5H2R.js → chunk-M6O4DH5F.js} +1 -1
- package/dist/bundle/{chunk-R6UG66IM.js → chunk-MLWN27HF.js} +214 -214
- package/dist/bundle/{chunk-P4SV3VKP.js → chunk-N7DLDEFU.js} +2 -2
- package/dist/bundle/{chunk-LARQTWIL.js → chunk-OYB3FUYQ.js} +1 -1
- package/dist/bundle/{chunk-RBNL3DBQ.js → chunk-POS35G6D.js} +1 -1
- package/dist/bundle/{chunk-PI5P457W.js → chunk-PWTEWT4M.js} +4 -4
- package/dist/bundle/{chunk-BY5S3JEZ.js → chunk-PYX6K527.js} +44 -44
- package/dist/bundle/{chunk-2BHY4GFP.js → chunk-Q4T2HBZP.js} +2 -2
- package/dist/bundle/{chunk-QTD3BVS5.js → chunk-R6SBRHVG.js} +5 -5
- package/dist/bundle/{chunk-OJEIUOMW.js → chunk-RPEW7E3S.js} +10 -10
- package/dist/bundle/{chunk-OZVGHHFZ.js → chunk-TTOKDZQX.js} +1 -1
- package/dist/bundle/{chunk-4TPNRJER.js → chunk-UBLFUQ7O.js} +6 -6
- package/dist/bundle/{chunk-6Z7VBDFR.js → chunk-UYOGVVQS.js} +12 -2
- package/dist/bundle/{chunk-4XRIALMN.js → chunk-VD6GZ3W2.js} +1 -1
- package/dist/bundle/{chunk-VQQFOA4O.js → chunk-VP5FL5JQ.js} +6 -6
- package/dist/bundle/{chunk-PXLVTHMH.js → chunk-VTJ5TMGN.js} +2 -2
- package/dist/bundle/{chunk-5C3L2QER.js → chunk-WKHHCCJE.js} +21 -21
- package/dist/bundle/{chunk-2A4Z3WOC.js → chunk-X7EBOXBY.js} +278 -274
- package/dist/bundle/{chunk-SRHKHE4C.js → chunk-XAANQN4R.js} +13 -13
- package/dist/bundle/{chunk-ENZTLYTS.js → chunk-XEIGKPYU.js} +6 -3
- package/dist/bundle/{chunk-4DGOI6JB.js → chunk-YGJO5VNR.js} +22 -22
- package/dist/bundle/{chunk-A6O3WHBD.js → chunk-ZNW4E3SG.js} +2 -2
- package/dist/bundle/{chunk-WOV3ABQR.js → chunk-ZS6YKNYS.js} +3 -3
- package/dist/bundle/{command-contract-4E4NYRR7.js → command-contract-GVNLRXWS.js} +13 -13
- package/dist/bundle/{decode-LX4FPSI7.js → decode-WCS4KOHV.js} +2 -2
- package/dist/bundle/{dist-HQIZDYNQ.js → dist-FL422DTA.js} +10 -10
- package/dist/bundle/{echarts-BGBPRGR5.js → echarts-45D6USAX.js} +2 -2
- package/dist/bundle/{embed-ASAE3H5I.js → embed-4B4ATLCN.js} +3 -3
- package/dist/bundle/{embedder-QYDZRKBX.js → embedder-ASWGJXNV.js} +6 -6
- package/dist/bundle/{first-run-EFNNGFCB.js → first-run-5K3UD4BU.js} +5 -5
- package/dist/bundle/{first-screen-XHM3TT6G.js → first-screen-NNX54MYC.js} +14 -14
- package/dist/bundle/{instructions-6LPDSKAD.js → instructions-6EFSPC7C.js} +1 -1
- package/dist/bundle/mail.js +2 -2
- package/dist/bundle/{node-IB246NCQ.js → node-OXC26QXO.js} +2 -2
- package/dist/bundle/{node-sqlite-UROXM4VR.js → node-sqlite-PXHZAG7Y.js} +3 -3
- package/dist/bundle/{oauth-VSCKHS4T.js → oauth-YK2QLC7U.js} +4 -4
- package/dist/bundle/{open-R4LVB63T.js → open-SABDXZ4B.js} +2 -2
- package/dist/bundle/{openai-MKCEOFKL.js → openai-DPURPXEU.js} +10 -10
- package/dist/bundle/{process-SWPJGPQC.js → process-YWPAOI6G.js} +1 -1
- package/dist/bundle/{program-CJ2YDRUY.js → program-ERLBUNWI.js} +1488 -1321
- package/dist/bundle/{prompt-TWWJ5VAM.js → prompt-GKVNFGFE.js} +2 -2
- package/dist/bundle/{recognize-XMO5ETQU.js → recognize-344YDSLX.js} +1 -1
- package/dist/bundle/{remote-N6VAWJWE.js → remote-53UZUJJU.js} +4 -4
- package/dist/bundle/{rerank-XNAMC6FH.js → rerank-PAIRND6R.js} +4 -4
- package/dist/bundle/{serve-IJ32WEBH.js → serve-DZSO7LJK.js} +6 -6
- package/dist/bundle/{server-KEYSE5OL.js → server-EGG3V67I.js} +32 -32
- package/dist/bundle/server-SGGMRV2K.js +64 -0
- package/dist/bundle/{sqlite-runtime-NFBRN7OF.js → sqlite-runtime-ZQ6F3VYZ.js} +3 -3
- package/dist/bundle/{state-7WPJEW2Z.js → state-LXPOWLZ5.js} +3 -3
- package/dist/bundle/{store-PKQCNACC.js → store-4ZMSK5R5.js} +11 -11
- package/dist/bundle/{store-KHVHOGQR.js → store-PHT75I6S.js} +13 -13
- package/dist/bundle/store-maintenance-command-C6ONZNRX.js +54 -0
- package/dist/commands/account.js +1 -1
- package/dist/commands/account.js.map +1 -1
- package/dist/commands/attachments.js +3 -3
- package/dist/commands/attachments.js.map +1 -1
- package/dist/commands/context.d.ts +4 -0
- package/dist/commands/context.d.ts.map +1 -1
- package/dist/commands/context.js.map +1 -1
- package/dist/commands/drafts-send.js +1 -1
- package/dist/commands/drafts-send.js.map +1 -1
- package/dist/commands/drafts.d.ts.map +1 -1
- package/dist/commands/drafts.js +9 -6
- package/dist/commands/drafts.js.map +1 -1
- package/dist/commands/export.js +3 -3
- package/dist/commands/export.js.map +1 -1
- package/dist/commands/folders.d.ts.map +1 -1
- package/dist/commands/folders.js +7 -4
- package/dist/commands/folders.js.map +1 -1
- package/dist/commands/messages.js +11 -11
- package/dist/commands/messages.js.map +1 -1
- package/dist/commands/rules.d.ts.map +1 -1
- package/dist/commands/rules.js +55 -33
- package/dist/commands/rules.js.map +1 -1
- package/dist/commands/send.d.ts.map +1 -1
- package/dist/commands/send.js +7 -6
- package/dist/commands/send.js.map +1 -1
- package/dist/commands/session-start.js +1 -1
- package/dist/commands/session-start.js.map +1 -1
- package/dist/commands/session.d.ts.map +1 -1
- package/dist/commands/session.js +5 -2
- package/dist/commands/session.js.map +1 -1
- package/dist/commands/stats.js +4 -4
- package/dist/commands/stats.js.map +1 -1
- package/dist/commands/status.js +1 -1
- package/dist/commands/status.js.map +1 -1
- package/dist/commands/sync.js +3 -3
- package/dist/commands/sync.js.map +1 -1
- package/dist/commands/tags.d.ts.map +1 -1
- package/dist/commands/tags.js +3 -2
- package/dist/commands/tags.js.map +1 -1
- package/dist/config.d.ts +3 -1
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +13 -1
- package/dist/config.js.map +1 -1
- package/dist/mail/domain-age.d.ts.map +1 -1
- package/dist/mail/domain-age.js +3 -6
- package/dist/mail/domain-age.js.map +1 -1
- package/dist/mail/save.d.ts.map +1 -1
- package/dist/mail/save.js +3 -2
- package/dist/mail/save.js.map +1 -1
- package/dist/mail/send.d.ts +6 -0
- package/dist/mail/send.d.ts.map +1 -1
- package/dist/mail/send.js +11 -4
- package/dist/mail/send.js.map +1 -1
- package/dist/mail/smtp.d.ts.map +1 -1
- package/dist/mail/smtp.js +7 -5
- package/dist/mail/smtp.js.map +1 -1
- package/dist/oauth.js +1 -1
- package/dist/oauth.js.map +1 -1
- package/dist/program.d.ts.map +1 -1
- package/dist/program.js +5 -1
- package/dist/program.js.map +1 -1
- package/dist/reasons.d.ts.map +1 -1
- package/dist/reasons.js +10 -0
- package/dist/reasons.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +2 -2
- package/skills/mail-cli/SKILL.md +16 -16
- package/dist/bundle/server-CRVR4L2E.js +0 -64
- package/dist/bundle/store-maintenance-command-5MODJN6R.js +0 -54
|
@@ -22,12 +22,22 @@ var ENTRIES = [
|
|
|
22
22
|
["mail.folder-not-empty", "validation_error", "the folder still holds mail"],
|
|
23
23
|
["mail.run-unknown", "not_found", "no change run has this id for this mailbox"],
|
|
24
24
|
["mail.archive-unverified", "validation_error", "no store backup under 8 days old is recorded"],
|
|
25
|
-
["mail.cleanup-scheduled", "permission_error", "messages delete --rules does not run from a schedule"]
|
|
25
|
+
["mail.cleanup-scheduled", "permission_error", "messages delete --rules does not run from a schedule"],
|
|
26
|
+
["mail.smtp-login-refused", "authentication_error", "the submission server refused the login"],
|
|
27
|
+
["mail.no-drafts", "provider_unavailable", "the mailbox has no Drafts folder this tool can find"],
|
|
28
|
+
["mail.draft-unknown", "not_found", "no draft has this id in the Drafts folder"],
|
|
29
|
+
["mail.gmail-objectid", "provider_error", "Gmail announces OBJECTID, which this build cannot read"],
|
|
30
|
+
["mail.export-destination-exists", "validation_error", "the export folder already holds files"],
|
|
31
|
+
["download.exists", "validation_error", "the file to save already exists"],
|
|
32
|
+
["mail.unreadable", "invalid_response", "some emails could not be read"],
|
|
33
|
+
["mail.deletions-skipped", "outcome_unknown", "deletions on the server were not checked this run"],
|
|
34
|
+
["mail.rules-unreadable", "configuration_error", "some stored rules could not be read"],
|
|
35
|
+
["mail.export-unreadable", "outcome_unknown", "some emails could not be read for the export"]
|
|
26
36
|
];
|
|
27
37
|
var REASONS = defineReasons(ENTRIES.map(([reason, code, message]) => ({ reason, code, message, details: [] })));
|
|
28
38
|
|
|
29
39
|
// dist/version.js
|
|
30
|
-
var VERSION = "0.
|
|
40
|
+
var VERSION = "0.16.1";
|
|
31
41
|
|
|
32
42
|
// dist/identity.js
|
|
33
43
|
var PACKAGE = "@wirecat/mail-cli";
|
|
@@ -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.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/render/messages.js
|
|
16
16
|
import { styleText } from "node:util";
|
|
17
17
|
var TIME_WIDTH = 8;
|
|
18
18
|
var INDENT = " ".repeat(TIME_WIDTH + 2);
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
commandPathOf,
|
|
5
5
|
findCommand,
|
|
6
6
|
outputOf
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-6DVPPLAN.js";
|
|
8
8
|
import {
|
|
9
9
|
wrapAnsi
|
|
10
10
|
} from "./chunk-HTQTIKWP.js";
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
environmentOf,
|
|
19
19
|
metaOf,
|
|
20
20
|
takesProfile
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-IJYYD2JU.js";
|
|
22
22
|
import {
|
|
23
23
|
writes
|
|
24
24
|
} from "./chunk-G6RG2AZV.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.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/cli/help/sections.js
|
|
33
33
|
var SECTIONS = {
|
|
34
34
|
read: "Read",
|
|
35
35
|
write: "Write",
|
|
@@ -90,7 +90,7 @@ var CORE_SECTIONS = {
|
|
|
90
90
|
upgrade: "setup"
|
|
91
91
|
};
|
|
92
92
|
|
|
93
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
93
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/cli/help/commands-text.js
|
|
94
94
|
var DESCRIPTION = 90;
|
|
95
95
|
var COLUMN = 52;
|
|
96
96
|
var short = /* @__PURE__ */ __name((text) => {
|
|
@@ -129,7 +129,7 @@ var commandsText = /* @__PURE__ */ __name((root, commands, scope) => {
|
|
|
129
129
|
`;
|
|
130
130
|
}, "commandsText");
|
|
131
131
|
|
|
132
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
132
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/cli/help/command-help.js
|
|
133
133
|
var ARGUMENT_KINDS = {
|
|
134
134
|
chat: "chat",
|
|
135
135
|
chats: "chat",
|
|
@@ -321,7 +321,7 @@ var installCommandHelp = /* @__PURE__ */ __name((program, { profile = true } = {
|
|
|
321
321
|
command.addHelpText("after", () => commandHelpText(command));
|
|
322
322
|
}, "installCommandHelp");
|
|
323
323
|
|
|
324
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
324
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/cli/help/first-screen.js
|
|
325
325
|
var WIRECAT_TOOLS = [
|
|
326
326
|
{
|
|
327
327
|
command: "tg",
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
MAX_SECRET_INPUT,
|
|
5
5
|
bufferedInput,
|
|
6
6
|
inputPolicy
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-ANFIIXBL.js";
|
|
8
8
|
import {
|
|
9
9
|
CliError
|
|
10
10
|
} from "./chunk-EB2IULWB.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.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/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 } = {}) => {
|
|
@@ -8,14 +8,14 @@ import {
|
|
|
8
8
|
refuseLacking,
|
|
9
9
|
servicesFor,
|
|
10
10
|
throughWrapper
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-MLWN27HF.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-GAYW2JRW.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-IJYYD2JU.js";
|
|
39
39
|
import {
|
|
40
40
|
AUTHORITY_KEY,
|
|
41
41
|
CEILING_KEY,
|
|
@@ -46,17 +46,17 @@ import {
|
|
|
46
46
|
levelFor,
|
|
47
47
|
readKeysForCommand,
|
|
48
48
|
skipFlagFor
|
|
49
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-DDQXDX4U.js";
|
|
50
50
|
import {
|
|
51
51
|
isCliFailure,
|
|
52
52
|
providerErrorKey
|
|
53
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-DKIAHQRN.js";
|
|
54
54
|
import {
|
|
55
55
|
servingProfiles
|
|
56
|
-
} from "./chunk-
|
|
56
|
+
} from "./chunk-CT2MIWXY.js";
|
|
57
57
|
import {
|
|
58
58
|
openStore
|
|
59
|
-
} from "./chunk-
|
|
59
|
+
} from "./chunk-X7EBOXBY.js";
|
|
60
60
|
import {
|
|
61
61
|
logRecordOf,
|
|
62
62
|
realSleep,
|
|
@@ -70,10 +70,10 @@ import {
|
|
|
70
70
|
__name
|
|
71
71
|
} from "./chunk-ZVVMGPBJ.js";
|
|
72
72
|
|
|
73
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
73
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/sends/guard.js
|
|
74
74
|
import { randomUUID } from "node:crypto";
|
|
75
75
|
|
|
76
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
76
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/sends/flood.js
|
|
77
77
|
import { mkdirSync, readFileSync, renameSync, writeFileSync } from "node:fs";
|
|
78
78
|
import { dirname, join } from "node:path";
|
|
79
79
|
var MOST_DEADLINES = 50;
|
|
@@ -157,11 +157,11 @@ var FloodMemory = class {
|
|
|
157
157
|
}
|
|
158
158
|
};
|
|
159
159
|
|
|
160
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
160
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/sends/journal.js
|
|
161
161
|
import { appendFileSync, mkdirSync as mkdirSync3, readFileSync as readFileSync2 } from "node:fs";
|
|
162
162
|
import { dirname as dirname3, join as join2 } from "node:path";
|
|
163
163
|
|
|
164
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
164
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/sends/file-lock.js
|
|
165
165
|
import { closeSync, mkdirSync as mkdirSync2, openSync, statSync, unlinkSync } from "node:fs";
|
|
166
166
|
import { dirname as dirname2 } from "node:path";
|
|
167
167
|
var LOCK_WAIT_MS = 5e3;
|
|
@@ -228,7 +228,7 @@ var lockTime = /* @__PURE__ */ __name((lock) => {
|
|
|
228
228
|
}
|
|
229
229
|
}, "lockTime");
|
|
230
230
|
|
|
231
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
231
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/sends/journal.js
|
|
232
232
|
var sendsPathFor = /* @__PURE__ */ __name((app, profile, env = process.env) => join2(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "sends", `${profile}.jsonl`), "sendsPathFor");
|
|
233
233
|
var SendJournal = class {
|
|
234
234
|
static {
|
|
@@ -305,7 +305,7 @@ var withSendId = /* @__PURE__ */ __name((entry) => {
|
|
|
305
305
|
return cid === void 0 || rest.sendId !== void 0 ? rest : { ...rest, sendId: String(cid) };
|
|
306
306
|
}, "withSendId");
|
|
307
307
|
|
|
308
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
308
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/sends/recipients.js
|
|
309
309
|
import { existsSync, readFileSync as readFileSync3, rmSync } from "node:fs";
|
|
310
310
|
import { join as join3 } from "node:path";
|
|
311
311
|
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 +417,7 @@ var RecipientList = class {
|
|
|
417
417
|
}
|
|
418
418
|
};
|
|
419
419
|
|
|
420
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
420
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/sends/guard.js
|
|
421
421
|
var HOUR_MS = 60 * 60 * 1e3;
|
|
422
422
|
var READS_UNDER_HOLD = /* @__PURE__ */ new Set([
|
|
423
423
|
"attachments.extract",
|
|
@@ -610,7 +610,7 @@ var guardFor = /* @__PURE__ */ __name((app, settings, warn, env = process.env, a
|
|
|
610
610
|
}), "guardFor");
|
|
611
611
|
var journalFailure = /* @__PURE__ */ __name((error) => error?.code ?? (error instanceof Error ? error.name : "error"), "journalFailure");
|
|
612
612
|
|
|
613
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
613
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/cli/messenger/ask.js
|
|
614
614
|
import { openSync as openSync2 } from "node:fs";
|
|
615
615
|
import { createInterface } from "node:readline";
|
|
616
616
|
import { ReadStream } from "node:tty";
|
|
@@ -665,7 +665,7 @@ var terminalAsker = /* @__PURE__ */ __name((command) => async (key, request) =>
|
|
|
665
665
|
throw new CliError("cancelled", `${key}: not done \u2014 the answer was no`);
|
|
666
666
|
}, "terminalAsker");
|
|
667
667
|
|
|
668
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
668
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/sends/pace.js
|
|
669
669
|
import { readFileSync as readFileSync4, renameSync as renameSync2, writeFileSync as writeFileSync2 } from "node:fs";
|
|
670
670
|
import { join as join4 } from "node:path";
|
|
671
671
|
var DEFAULT_PACE = { perMinute: 60, burst: 20 };
|
|
@@ -724,7 +724,7 @@ var Pacer = class {
|
|
|
724
724
|
}
|
|
725
725
|
};
|
|
726
726
|
|
|
727
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
727
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/cli/permission-keys.js
|
|
728
728
|
var HOUSEKEEPING = /* @__PURE__ */ new Set([
|
|
729
729
|
"help",
|
|
730
730
|
"guide",
|
|
@@ -804,7 +804,7 @@ var refuseUnknownPermissionKeys = /* @__PURE__ */ __name((command, settings, too
|
|
|
804
804
|
throw new CliError("validation_error", `--permission ${key} names no command`, { permission: key });
|
|
805
805
|
}, "refuseUnknownPermissionKeys");
|
|
806
806
|
|
|
807
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
807
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/cli/messenger/flooded.js
|
|
808
808
|
var LONG_LIVED = /* @__PURE__ */ new Set(["self", "newSendId", "close", "formatMarkdown", "formatHtml", "storedChats"]);
|
|
809
809
|
var LISTENING = /* @__PURE__ */ new Set(["watch", "feed", "listen", "listenHistory"]);
|
|
810
810
|
var BLOCKING = /* @__PURE__ */ new Set(["frozen", "limited", "banned"]);
|
|
@@ -923,7 +923,7 @@ var flooded = /* @__PURE__ */ __name((messenger, memory, { name, warn, pacer })
|
|
|
923
923
|
});
|
|
924
924
|
}, "flooded");
|
|
925
925
|
|
|
926
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
926
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/cli/messenger/observed.js
|
|
927
927
|
var observed = /* @__PURE__ */ __name((messenger, events) => {
|
|
928
928
|
const timed = /* @__PURE__ */ __name(async (operation, named, work, after) => {
|
|
929
929
|
const write = currentOperation();
|
|
@@ -1022,7 +1022,7 @@ var byPart = /* @__PURE__ */ __name((batch, counts) => {
|
|
|
1022
1022
|
counts[part] = (counts[part] ?? 0) + items.length;
|
|
1023
1023
|
}, "byPart");
|
|
1024
1024
|
|
|
1025
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1025
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/cli/messenger/stored.js
|
|
1026
1026
|
var REKEY_PACING = { lockMs: 50, pauseMs: 25 };
|
|
1027
1027
|
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" }) => {
|
|
1028
1028
|
let warned = false;
|
|
@@ -1598,7 +1598,7 @@ var keep = /* @__PURE__ */ __name(async (store, account, event, seenAt, among, c
|
|
|
1598
1598
|
}
|
|
1599
1599
|
}, "keep");
|
|
1600
1600
|
|
|
1601
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1601
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/cli/messenger/context.js
|
|
1602
1602
|
var lazyStore = /* @__PURE__ */ __name((env, command, version) => {
|
|
1603
1603
|
let opened;
|
|
1604
1604
|
return {
|