@wirecat/mail-cli 0.12.0 → 0.14.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 +38 -0
- package/README.md +4 -0
- package/dist/bin/mail.js +6 -2
- package/dist/bundle/{all-profiles-OJPRIFKU.js → all-profiles-O7HQNZOF.js} +10 -9
- package/dist/bundle/{anthropic-3AXHD4WH.js → anthropic-SNA6PTVO.js} +6 -6
- package/dist/bundle/{app-server-V4KHCUGE.js → app-server-LBKMJMKN.js} +48 -45
- package/dist/bundle/{bun-ISYNUTQJ.js → bun-KF5QK2YN.js} +2 -2
- package/dist/bundle/{bun-sqlite-FH3D4AXL.js → bun-sqlite-2DKMM2PT.js} +5 -5
- package/dist/bundle/{chunk-YDUES6ET.js → chunk-2A4BAMNF.js} +4 -4
- package/dist/bundle/{chunk-XTIQFMZH.js → chunk-2F7D6YMB.js} +4 -4
- package/dist/bundle/{chunk-SW5NVASW.js → chunk-2KVR7FF3.js} +12 -89
- package/dist/bundle/{chunk-JAWJZTFL.js → chunk-3EAAEF5U.js} +18 -18
- package/dist/bundle/{chunk-TTKNBUMT.js → chunk-3YGYB3LJ.js} +43 -6
- package/dist/bundle/{chunk-GYNHU56E.js → chunk-5C74F7XX.js} +4 -4
- package/dist/bundle/{chunk-5TACUBRJ.js → chunk-6CZQJ5XR.js} +8 -8
- package/dist/bundle/{chunk-OHC4GVWV.js → chunk-6EZ7XGRG.js} +2 -2
- package/dist/bundle/{chunk-6UT3MXOB.js → chunk-7GSE57K3.js} +3 -3
- package/dist/bundle/{chunk-AJ4JS2ZR.js → chunk-7LDC275M.js} +8 -7
- package/dist/bundle/{chunk-QPQSMJBW.js → chunk-AOVOIXGR.js} +10 -10
- package/dist/bundle/{chunk-DN54W657.js → chunk-B5XAETYU.js} +4 -4
- package/dist/bundle/chunk-BP3TZ4EY.js +91 -0
- package/dist/bundle/{chunk-4DPICEPQ.js → chunk-CCHHEMPM.js} +2 -2
- package/dist/bundle/chunk-DIP3ENSY.js +34 -0
- package/dist/bundle/{chunk-4GPPRLIG.js → chunk-DPKHVBP3.js} +5 -5
- package/dist/bundle/{chunk-K2F7YMMM.js → chunk-E7BTD4P6.js} +8 -13
- package/dist/bundle/{chunk-VEXXVLBM.js → chunk-ER6PJAPK.js} +3 -3
- package/dist/bundle/{chunk-JIIEJLAX.js → chunk-EW3XTUPB.js} +4 -4
- package/dist/bundle/{chunk-6LNRNQHJ.js → chunk-F5SZVO3A.js} +6 -4
- package/dist/bundle/{chunk-UDJIC6YL.js → chunk-FTGCXIQA.js} +54 -29
- package/dist/bundle/{chunk-V6K2GX2Y.js → chunk-G53HRGTK.js} +17 -17
- package/dist/bundle/{chunk-L3PVAY3M.js → chunk-H2ZURG7Q.js} +2 -2
- package/dist/bundle/{chunk-F3QDSQ7V.js → chunk-H7OQ4YZV.js} +27 -26
- package/dist/bundle/{chunk-S64N24ON.js → chunk-I62OTHDE.js} +3 -3
- package/dist/bundle/{chunk-AO32MFDY.js → chunk-I7EWIIBC.js} +2 -2
- package/dist/bundle/{chunk-JNUKTAMZ.js → chunk-ILHTNOIV.js} +1 -1
- package/dist/bundle/{chunk-GAIVTJ3E.js → chunk-IPKXRW6W.js} +24 -23
- package/dist/bundle/{chunk-NSDOYHIS.js → chunk-IVDUR5Y4.js} +20 -8
- package/dist/bundle/{chunk-KJP2B65C.js → chunk-KBFIKUCA.js} +29 -28
- package/dist/bundle/{chunk-IWHXM2S7.js → chunk-KLLKDOO2.js} +3207 -1149
- package/dist/bundle/{chunk-4D52FA34.js → chunk-KQ5P5NLL.js} +1 -1
- package/dist/bundle/{chunk-PLPSFJO6.js → chunk-M2YIJDBL.js} +6 -6
- package/dist/bundle/{chunk-IG2WXKIT.js → chunk-MQK2UNG4.js} +8 -8
- package/dist/bundle/{chunk-YRZ23RCS.js → chunk-MXG4L7NH.js} +249 -8
- package/dist/bundle/{chunk-LXHLQ6RK.js → chunk-NGZW2JPK.js} +7 -9
- package/dist/bundle/{chunk-GFCNSU3B.js → chunk-NVQUK2DH.js} +176 -47
- package/dist/bundle/{chunk-6QNPJSRM.js → chunk-OGK7LMYT.js} +6 -6
- package/dist/bundle/{chunk-N6P55LDU.js → chunk-P547HU26.js} +10 -10
- package/dist/bundle/{chunk-NBQQ2ZTF.js → chunk-P62Z3Q35.js} +14 -14
- package/dist/bundle/{chunk-TZGQPTZ2.js → chunk-PQLBPYJR.js} +1 -1
- package/dist/bundle/{chunk-BYQ3Z6UL.js → chunk-Q5EYTU3Q.js} +3 -3
- package/dist/bundle/{chunk-PSXAC6OO.js → chunk-QWRBAQZ7.js} +1 -1
- package/dist/bundle/{chunk-QB54TE52.js → chunk-QZXHMQCM.js} +1 -1
- package/dist/bundle/{chunk-FYMQPAE5.js → chunk-RE5SEGSR.js} +4 -4
- package/dist/bundle/{chunk-KVN4RY7E.js → chunk-UHHARH5X.js} +421 -205
- package/dist/bundle/{chunk-44LVUMS2.js → chunk-UJEO3VWA.js} +1 -1
- package/dist/bundle/{chunk-IXYKM7OJ.js → chunk-UMWR5PKA.js} +13 -13
- package/dist/bundle/{chunk-WL7CYT7O.js → chunk-V5ZID7KC.js} +1 -1
- package/dist/bundle/{chunk-2TTCKOQ7.js → chunk-VA3JKERH.js} +2 -2
- package/dist/bundle/{chunk-G2WDY5XB.js → chunk-VERSKGJV.js} +2 -2
- package/dist/bundle/{chunk-GUFWLTOW.js → chunk-W643XZIR.js} +2 -2
- package/dist/bundle/{chunk-X37KLD23.js → chunk-WBJQEB6E.js} +12 -12
- package/dist/bundle/{chunk-SYBMOE6F.js → chunk-WVWNKZI4.js} +6195 -5014
- package/dist/bundle/chunk-X5XIFNTI.js +35 -0
- package/dist/bundle/{chunk-LIQ5LICB.js → chunk-XPREXN3W.js} +3 -3
- package/dist/bundle/{chunk-35Y3INBK.js → chunk-XRJIQC6P.js} +2 -2
- package/dist/bundle/{chunk-T3AGR4TI.js → chunk-YG4OI3HJ.js} +966 -204
- package/dist/bundle/{chunk-HVVLSCFB.js → chunk-ZCPUKUST.js} +1 -1
- package/dist/bundle/command-contract-B3OGAIDB.js +34 -0
- package/dist/bundle/{decode-FM4C2WWG.js → decode-X7Y2VSYZ.js} +5 -5
- package/dist/bundle/{dispatch-K3HG4RYT.js → dispatch-OWNO2CMC.js} +8 -8
- package/dist/bundle/{dist-7LNVI7VB.js → dist-L7FNC74Q.js} +42 -13
- package/dist/bundle/{echarts-5C2A72XM.js → echarts-5AB3LFVD.js} +2 -2
- package/dist/bundle/{embed-N56P6YVY.js → embed-VBS5LRCE.js} +6 -6
- package/dist/bundle/{embedder-QLYKFLOL.js → embedder-VFSYBDKK.js} +9 -9
- package/dist/bundle/{failure-5ZLVZTRU.js → failure-E534GZDF.js} +2 -2
- package/dist/bundle/{first-run-VMF4PJ7Q.js → first-run-NO2ODH2W.js} +11 -11
- package/dist/bundle/first-screen-7VJLGMJJ.js +32 -0
- package/dist/bundle/{instructions-QA5FHDOJ.js → instructions-52W6ZQTU.js} +1 -1
- package/dist/bundle/mail.js +12 -12
- package/dist/bundle/{mcp-LO2XDBBC.js → mcp-MNI62HHE.js} +2 -2
- package/dist/bundle/{node-OXJZWUYZ.js → node-TL2PBNKO.js} +2 -2
- package/dist/bundle/{node-sqlite-7GCEI67B.js → node-sqlite-757HNQAD.js} +11 -5
- package/dist/bundle/{oauth-VTPIYBTP.js → oauth-VDRNJ7KN.js} +7 -7
- package/dist/bundle/{open-7XX3YF2X.js → open-NUWYOKPO.js} +5 -4
- package/dist/bundle/{openai-D3KRCXSY.js → openai-YLBFVK5X.js} +14 -14
- package/dist/bundle/{process-KFI7SXQD.js → process-PWAGP6YY.js} +1 -1
- package/dist/bundle/{program-4B25STRN.js → program-PPUPVL7O.js} +2253 -885
- package/dist/bundle/{prompt-TBZT3APW.js → prompt-M5U66RVJ.js} +5 -5
- package/dist/bundle/{recognize-WQSE5ZPL.js → recognize-DCMDZA2U.js} +4 -4
- package/dist/bundle/{remote-J5HHRNVQ.js → remote-4SHI5WJG.js} +7 -7
- package/dist/bundle/{rerank-DP2Y3WDT.js → rerank-DYMZMNPQ.js} +7 -7
- package/dist/bundle/{serve-VXPOQDQO.js → serve-HO3WME4G.js} +11 -10
- package/dist/bundle/server-244FHPY4.js +64 -0
- package/dist/bundle/{server-OSBNGA2F.js → server-R3TIPRZN.js} +39 -37
- package/dist/bundle/{sqlite-runtime-XY32WOIT.js → sqlite-runtime-DWRITUIH.js} +6 -5
- package/dist/bundle/{state-KPOPMR6O.js → state-QOMUDOGF.js} +6 -6
- package/dist/bundle/{store-FWRGNGP3.js → store-LHHMOE5V.js} +36 -18
- package/dist/bundle/{store-UBI2YCRC.js → store-RGO6IABA.js} +17 -13
- package/dist/bundle/store-maintenance-command-LU2ZBDUY.js +54 -0
- package/dist/commands/session.js +1 -1
- package/dist/commands/session.js.map +1 -1
- package/dist/commands/status.d.ts.map +1 -1
- package/dist/commands/status.js +12 -7
- package/dist/commands/status.js.map +1 -1
- package/dist/config.d.ts +2 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +3 -3
- package/dist/bundle/chunk-MDIRW3AT.js +0 -18
- package/dist/bundle/command-contract-TW44FY47.js +0 -33
- package/dist/bundle/first-screen-ZN7ODW5K.js +0 -31
- package/dist/bundle/server-XHWSCXVX.js +0 -62
- package/dist/bundle/store-maintenance-command-3ZXPEIGF.js +0 -52
- /package/dist/bundle/{chunk-MRLSUCHT.js → chunk-NUN6OGOV.js} +0 -0
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
organization,
|
|
5
5
|
project,
|
|
6
6
|
reminder
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-2A4BAMNF.js";
|
|
8
8
|
import {
|
|
9
9
|
MIGRATIONS,
|
|
10
10
|
SnapshotBudget,
|
|
@@ -28,31 +28,31 @@ import {
|
|
|
28
28
|
tagMemberIds,
|
|
29
29
|
thingOf,
|
|
30
30
|
write
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-KLLKDOO2.js";
|
|
32
32
|
import {
|
|
33
33
|
filesAccountSql,
|
|
34
34
|
folderProviderOf,
|
|
35
35
|
folderProviderSql,
|
|
36
36
|
isDocumentAccountProvider
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-MXG4L7NH.js";
|
|
38
38
|
import {
|
|
39
39
|
queryFieldsOf
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-UHHARH5X.js";
|
|
41
41
|
import {
|
|
42
42
|
fold
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-MQK2UNG4.js";
|
|
44
44
|
import {
|
|
45
45
|
CliError
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-CCHHEMPM.js";
|
|
47
47
|
import {
|
|
48
48
|
__name
|
|
49
49
|
} from "./chunk-ZVVMGPBJ.js";
|
|
50
50
|
|
|
51
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
51
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/store/document-transfer/index.js
|
|
52
52
|
import { realpathSync, statSync } from "node:fs";
|
|
53
53
|
import { resolve } from "node:path";
|
|
54
54
|
|
|
55
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
55
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/store/sqlite/document-transfer/people.js
|
|
56
56
|
var planPeople = /* @__PURE__ */ __name((database, snapshot, mappings, bindings, conflicts) => {
|
|
57
57
|
const creatable = /* @__PURE__ */ new Set();
|
|
58
58
|
let people = 0, identities = 0;
|
|
@@ -115,11 +115,11 @@ var copyPeople = /* @__PURE__ */ __name((database, snapshot, mappings, now) => {
|
|
|
115
115
|
}
|
|
116
116
|
}, "copyPeople");
|
|
117
117
|
|
|
118
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
118
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/store/document-transfer/digest.js
|
|
119
119
|
import { createHash } from "node:crypto";
|
|
120
120
|
var digest = /* @__PURE__ */ __name((value) => createHash("sha256").update(JSON.stringify(value)).digest("hex"), "digest");
|
|
121
121
|
|
|
122
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
122
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/store/sqlite/document-transfer/collection.js
|
|
123
123
|
var documentsKeyOf = /* @__PURE__ */ __name((collection) => {
|
|
124
124
|
const colon = collection.indexOf(":");
|
|
125
125
|
const provider = collection.slice(0, colon);
|
|
@@ -163,7 +163,7 @@ var currentCollection = /* @__PURE__ */ __name((row) => {
|
|
|
163
163
|
};
|
|
164
164
|
}, "currentCollection");
|
|
165
165
|
|
|
166
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
166
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/store/sqlite/document-transfer/plan.js
|
|
167
167
|
var planTransfer = /* @__PURE__ */ __name((database, snapshot, sourceKey, bindings) => {
|
|
168
168
|
const mappings = /* @__PURE__ */ new Map();
|
|
169
169
|
const missing = /* @__PURE__ */ new Set(), conflicts = /* @__PURE__ */ new Set();
|
|
@@ -330,7 +330,7 @@ var planTransfer = /* @__PURE__ */ __name((database, snapshot, sourceKey, bindin
|
|
|
330
330
|
};
|
|
331
331
|
}, "planTransfer");
|
|
332
332
|
|
|
333
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
333
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/store/sqlite/document-transfer/snapshot.js
|
|
334
334
|
var TRANSFER_TABLES = { document: "documents", note: "notes", memory: "memories", fact: "facts" };
|
|
335
335
|
var MAX_ENTITIES = 1e3;
|
|
336
336
|
var MAX_AUXILIARY = 1e4;
|
|
@@ -492,7 +492,7 @@ var transferSnapshot = /* @__PURE__ */ __name((database, collection) => read(dat
|
|
|
492
492
|
};
|
|
493
493
|
}), "transferSnapshot");
|
|
494
494
|
|
|
495
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
495
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/store/sqlite/document-transfer/apply.js
|
|
496
496
|
var providerHere = /* @__PURE__ */ __name(({ provider, name, settings }) => {
|
|
497
497
|
if (provider !== "folder" || String(name ?? "").startsWith("google-drive:"))
|
|
498
498
|
return provider ?? null;
|
|
@@ -664,7 +664,7 @@ var remapEntity = /* @__PURE__ */ __name((database, entity, id, mappings) => {
|
|
|
664
664
|
database.prepare(`UPDATE ${TRANSFER_TABLES[entity.kind]} SET ${columns.join(",")} WHERE id=?`).run(...values, id);
|
|
665
665
|
}, "remapEntity");
|
|
666
666
|
|
|
667
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
667
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/store/document-transfer/index.js
|
|
668
668
|
var locations = /* @__PURE__ */ __name((options) => {
|
|
669
669
|
for (const value of [options.source, options.destination, options.collection])
|
|
670
670
|
if (typeof value !== "string" || !value.trim())
|
|
@@ -760,7 +760,7 @@ var applyDocumentTransfer = /* @__PURE__ */ __name(async (options) => {
|
|
|
760
760
|
}
|
|
761
761
|
}, "applyDocumentTransfer");
|
|
762
762
|
|
|
763
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
763
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/store/knowledge-query.js
|
|
764
764
|
var ORGANIZATIONS_QUERY = {
|
|
765
765
|
entity: "organization",
|
|
766
766
|
backend: "sql",
|
|
@@ -795,7 +795,7 @@ var REMINDERS_QUERY = {
|
|
|
795
795
|
})
|
|
796
796
|
};
|
|
797
797
|
|
|
798
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
798
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/store/project-transfer/preview.js
|
|
799
799
|
var previewProjectAnnotationSnapshot = /* @__PURE__ */ __name(async (options) => {
|
|
800
800
|
if (!options || typeof options !== "object" || Array.isArray(options))
|
|
801
801
|
throw new CliError("validation_error", "project preview options are required");
|
|
@@ -817,7 +817,7 @@ var previewProjectAnnotationSnapshot = /* @__PURE__ */ __name(async (options) =>
|
|
|
817
817
|
}
|
|
818
818
|
}, "previewProjectAnnotationSnapshot");
|
|
819
819
|
|
|
820
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
820
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/store/project-transfer/snapshot.js
|
|
821
821
|
var snapshotProjectAnnotations = /* @__PURE__ */ __name(async (options) => {
|
|
822
822
|
if (!options || typeof options !== "object" || Array.isArray(options))
|
|
823
823
|
throw new CliError("validation_error", "snapshot options are required");
|
|
@@ -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-CCHHEMPM.js";
|
|
6
6
|
import {
|
|
7
7
|
__name
|
|
8
8
|
} from "./chunk-ZVVMGPBJ.js";
|
|
9
9
|
|
|
10
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/cli/input-policy.js
|
|
11
11
|
var MAX_BUFFERED_INPUT = 16 * 1024 * 1024;
|
|
12
12
|
var MAX_SECRET_INPUT = 64 * 1024;
|
|
13
13
|
var policies = /* @__PURE__ */ new WeakMap();
|
|
@@ -6,13 +6,13 @@ import {
|
|
|
6
6
|
agentArguments,
|
|
7
7
|
agentJson,
|
|
8
8
|
commandAvailability
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-P62Z3Q35.js";
|
|
10
10
|
import {
|
|
11
11
|
failureContext
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-3YGYB3LJ.js";
|
|
13
13
|
import {
|
|
14
14
|
callerOf
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-VERSKGJV.js";
|
|
16
16
|
import {
|
|
17
17
|
QUERY_ARGUMENT,
|
|
18
18
|
lentConnection,
|
|
@@ -20,10 +20,10 @@ import {
|
|
|
20
20
|
refuseLacking,
|
|
21
21
|
servicesFor,
|
|
22
22
|
storeModeDeps
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-WVWNKZI4.js";
|
|
24
24
|
import {
|
|
25
25
|
MAX_BUFFERED_INPUT
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-H2ZURG7Q.js";
|
|
27
27
|
import {
|
|
28
28
|
DEFAULT_OUTPUT_BYTES,
|
|
29
29
|
ENTITIES,
|
|
@@ -42,27 +42,27 @@ import {
|
|
|
42
42
|
sealed,
|
|
43
43
|
startRecording,
|
|
44
44
|
traceOf
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-YG4OI3HJ.js";
|
|
46
46
|
import {
|
|
47
47
|
authorityAllowed,
|
|
48
48
|
botApiAllowed,
|
|
49
49
|
keyForCommand,
|
|
50
50
|
levelFor,
|
|
51
51
|
readKeysForCommand
|
|
52
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-7LDC275M.js";
|
|
53
53
|
import {
|
|
54
54
|
currentCaller,
|
|
55
55
|
keepsSuccess,
|
|
56
56
|
runContextOf,
|
|
57
57
|
withCaller
|
|
58
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-2KVR7FF3.js";
|
|
59
59
|
import {
|
|
60
60
|
queryDescription
|
|
61
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-UHHARH5X.js";
|
|
62
62
|
import {
|
|
63
63
|
captureStreams,
|
|
64
64
|
traceIdOf
|
|
65
|
-
} from "./chunk-
|
|
65
|
+
} from "./chunk-3EAAEF5U.js";
|
|
66
66
|
import {
|
|
67
67
|
COMPACT_FLAG,
|
|
68
68
|
SNAKE_CASE,
|
|
@@ -101,19 +101,19 @@ import {
|
|
|
101
101
|
unknown,
|
|
102
102
|
word,
|
|
103
103
|
writes
|
|
104
|
-
} from "./chunk-
|
|
104
|
+
} from "./chunk-IVDUR5Y4.js";
|
|
105
105
|
import {
|
|
106
106
|
CliError,
|
|
107
107
|
errorCodes
|
|
108
|
-
} from "./chunk-
|
|
108
|
+
} from "./chunk-CCHHEMPM.js";
|
|
109
109
|
import {
|
|
110
110
|
__name
|
|
111
111
|
} from "./chunk-ZVVMGPBJ.js";
|
|
112
112
|
|
|
113
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
113
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/mcp/agent.js
|
|
114
114
|
import { Readable } from "node:stream";
|
|
115
115
|
|
|
116
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
116
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/lint.js
|
|
117
117
|
var LINT_SEVERITIES = ["high", "medium", "low"];
|
|
118
118
|
var lintRuleSchema = strictObject({
|
|
119
119
|
id: word,
|
|
@@ -240,7 +240,7 @@ var overridesSchema = array(strictObject({
|
|
|
240
240
|
review_after: pipe(string(), isoDate("a date, YYYY-MM-DD"))
|
|
241
241
|
}));
|
|
242
242
|
|
|
243
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
243
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/audit.js
|
|
244
244
|
var auditRuleSchema = strictObject({ id: word, severity: picklist(LINT_SEVERITIES), summary: text });
|
|
245
245
|
var defineAuditRules = /* @__PURE__ */ __name((input) => parseRegistry("audit rules", array(auditRuleSchema), input, (rules) => duplicates(rules.map((rule) => rule.id)).map((id) => `"${id}" is listed twice`)), "defineAuditRules");
|
|
246
246
|
var AUDIT_RULES = defineAuditRules([
|
|
@@ -349,7 +349,7 @@ var REQUIRED_ROOTS = defineRequiredRoots([
|
|
|
349
349
|
{ path: ["upgrade"], meaning: "updates the CLI" }
|
|
350
350
|
]);
|
|
351
351
|
|
|
352
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
352
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/fields.js
|
|
353
353
|
var fieldRuleSchema = strictObject({ id: word, rule: text });
|
|
354
354
|
var defineFieldRules = /* @__PURE__ */ __name((input) => parseRegistry("output field rules", array(fieldRuleSchema), input, (rules) => duplicates(rules.map((rule) => rule.id)).map((id) => `"${id}" is listed twice`)), "defineFieldRules");
|
|
355
355
|
var FIELD_RULES = defineFieldRules([
|
|
@@ -365,7 +365,7 @@ var FIELD_RULES = defineFieldRules([
|
|
|
365
365
|
}
|
|
366
366
|
]);
|
|
367
367
|
|
|
368
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
368
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/identifiers.js
|
|
369
369
|
var key = pipe(string(), regex(SNAKE_CASE, "a snake_case key"));
|
|
370
370
|
var identifierSchema = strictObject({ key, meaning: text, replaces: optional(array(key)) });
|
|
371
371
|
var defineIdentifiers = /* @__PURE__ */ __name((input) => parseRegistry("identifiers", array(identifierSchema), input, (identifiers) => {
|
|
@@ -387,7 +387,7 @@ var IDENTIFIERS = defineIdentifiers([
|
|
|
387
387
|
{ key: "trace_id", meaning: "the distributed trace a run belongs to, from `traceparent`" }
|
|
388
388
|
]);
|
|
389
389
|
|
|
390
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
390
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-calendar.js
|
|
391
391
|
var CALENDAR_FLAGS = [
|
|
392
392
|
{ name: "--end-time", value: "<time>", role: "value", type: "time", meaning: "when it ends" },
|
|
393
393
|
{
|
|
@@ -461,7 +461,7 @@ var CALENDAR_FLAGS = [
|
|
|
461
461
|
}
|
|
462
462
|
];
|
|
463
463
|
|
|
464
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
464
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-how.js
|
|
465
465
|
var HOW_FLAGS = [
|
|
466
466
|
{
|
|
467
467
|
name: "--limit",
|
|
@@ -745,6 +745,7 @@ var HOW_FLAGS = [
|
|
|
745
745
|
meaning: "refuse if what it names has changed since it was read",
|
|
746
746
|
replaces: ["--expected"]
|
|
747
747
|
},
|
|
748
|
+
{ name: "--full-history", role: "mode", type: "switch", meaning: "keep a chat's whole history, past its limits" },
|
|
748
749
|
{
|
|
749
750
|
name: "--for-everyone",
|
|
750
751
|
role: "mode",
|
|
@@ -1454,7 +1455,7 @@ var HOW_FLAGS = [
|
|
|
1454
1455
|
}
|
|
1455
1456
|
];
|
|
1456
1457
|
|
|
1457
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
1458
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-mail.js
|
|
1458
1459
|
var MAIL_FLAGS = [
|
|
1459
1460
|
{
|
|
1460
1461
|
name: "--cc",
|
|
@@ -1478,7 +1479,7 @@ var MAIL_FLAGS = [
|
|
|
1478
1479
|
}
|
|
1479
1480
|
];
|
|
1480
1481
|
|
|
1481
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
1482
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-what.js
|
|
1482
1483
|
var WHAT_FLAGS = [
|
|
1483
1484
|
{
|
|
1484
1485
|
name: "--analysis-provider",
|
|
@@ -2476,7 +2477,7 @@ var WHAT_FLAGS = [
|
|
|
2476
2477
|
}
|
|
2477
2478
|
];
|
|
2478
2479
|
|
|
2479
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2480
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/vocabulary.js
|
|
2480
2481
|
var FLAG_TYPES = [
|
|
2481
2482
|
"switch",
|
|
2482
2483
|
"count",
|
|
@@ -2837,7 +2838,7 @@ var VOCABULARY = defineVocabulary({
|
|
|
2837
2838
|
flags: [...HOW_FLAGS, ...WHAT_FLAGS, ...CALENDAR_FLAGS, ...MAIL_FLAGS]
|
|
2838
2839
|
});
|
|
2839
2840
|
|
|
2840
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2841
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/mcp/agent.js
|
|
2841
2842
|
var TYPES = new Map(VOCABULARY.flags.map((flag) => [flag.name, flag.type]));
|
|
2842
2843
|
var snake = /* @__PURE__ */ __name((name) => name.replaceAll("|", "_or_").replace(/[^a-z0-9]+/gi, "_"), "snake");
|
|
2843
2844
|
var longOf = /* @__PURE__ */ __name((option) => option.flags.match(/--[a-z0-9][a-z0-9-]*/)?.[0], "longOf");
|
|
@@ -3060,7 +3061,7 @@ var runCommandForAgent = /* @__PURE__ */ __name(async (program, path, input, ctx
|
|
|
3060
3061
|
}
|
|
3061
3062
|
}, "runCommandForAgent");
|
|
3062
3063
|
|
|
3063
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3064
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/mcp/tool.js
|
|
3064
3065
|
var limit = optional(pipe(number(), integer(), minValue(1), maxValue(100), description("how many")));
|
|
3065
3066
|
var page = optional(pipe(number(), integer(), minValue(1), description("which page, from 1")));
|
|
3066
3067
|
var message = pipe(
|
|
@@ -3319,7 +3320,7 @@ var failed = /* @__PURE__ */ __name((error, errors, effects) => {
|
|
|
3319
3320
|
return mcpErrorResult(JSON.parse(agentJson(errorObjectOf(error, context))));
|
|
3320
3321
|
}, "failed");
|
|
3321
3322
|
|
|
3322
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3323
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/mcp/surface.js
|
|
3323
3324
|
import { randomUUID } from "node:crypto";
|
|
3324
3325
|
var MATCHES = 8;
|
|
3325
3326
|
var ANSWER = answerSchema();
|
|
@@ -3342,7 +3343,7 @@ var runnableOnly = /* @__PURE__ */ __name((result, offered) => {
|
|
|
3342
3343
|
const body = result.structuredContent;
|
|
3343
3344
|
if (result.isError || !Array.isArray(body?.next))
|
|
3344
3345
|
return result;
|
|
3345
|
-
const next = body.next.filter((step) => offered(step.command));
|
|
3346
|
+
const next = body.next.filter((step) => step.command === void 0 || offered(step.command));
|
|
3346
3347
|
const { next: _, ...rest } = body;
|
|
3347
3348
|
const kept = next.length > 0 ? { ...rest, next } : rest;
|
|
3348
3349
|
return {
|
|
@@ -9,15 +9,15 @@ import {
|
|
|
9
9
|
optional,
|
|
10
10
|
pipe,
|
|
11
11
|
safeParse
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-IVDUR5Y4.js";
|
|
13
13
|
import {
|
|
14
14
|
CliError
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-CCHHEMPM.js";
|
|
16
16
|
import {
|
|
17
17
|
__name
|
|
18
18
|
} from "./chunk-ZVVMGPBJ.js";
|
|
19
19
|
|
|
20
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/models/options.js
|
|
21
21
|
var checkedOptions = /* @__PURE__ */ __name((provider, schema, options) => {
|
|
22
22
|
const parsed = safeParse(schema, options);
|
|
23
23
|
if (!parsed.success) {
|
|
@@ -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-IVDUR5Y4.js";
|
|
6
6
|
|
|
7
7
|
// dist/reasons.js
|
|
8
8
|
var ENTRIES = [
|
|
@@ -28,7 +28,7 @@ var ENTRIES = [
|
|
|
28
28
|
var REASONS = defineReasons(ENTRIES.map(([reason, code, message]) => ({ reason, code, message, details: [] })));
|
|
29
29
|
|
|
30
30
|
// dist/version.js
|
|
31
|
-
var VERSION = "0.
|
|
31
|
+
var VERSION = "0.14.0";
|
|
32
32
|
|
|
33
33
|
// dist/identity.js
|
|
34
34
|
var PACKAGE = "@wirecat/mail-cli";
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
__name
|
|
5
5
|
} from "./chunk-ZVVMGPBJ.js";
|
|
6
6
|
|
|
7
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
7
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/installer.js
|
|
8
8
|
var installerOf = /* @__PURE__ */ __name((scriptPath) => {
|
|
9
9
|
const path = scriptPath.replaceAll("\\", "/");
|
|
10
10
|
if (path.includes("/_npx/"))
|
|
@@ -8,14 +8,14 @@ import {
|
|
|
8
8
|
refuseLacking,
|
|
9
9
|
servicesFor,
|
|
10
10
|
throughWrapper
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-WVWNKZI4.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-P547HU26.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-YG4OI3HJ.js";
|
|
39
39
|
import {
|
|
40
40
|
AUTHORITY_KEY,
|
|
41
41
|
CEILING_KEY,
|
|
@@ -46,34 +46,34 @@ import {
|
|
|
46
46
|
levelFor,
|
|
47
47
|
readKeysForCommand,
|
|
48
48
|
skipFlagFor
|
|
49
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-7LDC275M.js";
|
|
50
50
|
import {
|
|
51
51
|
isCliFailure,
|
|
52
52
|
providerErrorKey
|
|
53
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-2KVR7FF3.js";
|
|
54
54
|
import {
|
|
55
55
|
servingProfiles
|
|
56
|
-
} from "./chunk-
|
|
56
|
+
} from "./chunk-Q5EYTU3Q.js";
|
|
57
57
|
import {
|
|
58
58
|
openStore
|
|
59
|
-
} from "./chunk-
|
|
59
|
+
} from "./chunk-KLLKDOO2.js";
|
|
60
60
|
import {
|
|
61
61
|
logRecordOf,
|
|
62
62
|
realSleep,
|
|
63
63
|
resolvePaths,
|
|
64
64
|
writeSecurely
|
|
65
|
-
} from "./chunk-
|
|
65
|
+
} from "./chunk-3EAAEF5U.js";
|
|
66
66
|
import {
|
|
67
67
|
CliError
|
|
68
|
-
} from "./chunk-
|
|
68
|
+
} from "./chunk-CCHHEMPM.js";
|
|
69
69
|
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.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/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.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/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.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/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.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/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.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/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.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/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.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/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.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/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.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/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.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/cli/permission-keys.js
|
|
728
728
|
var HOUSEKEEPING = /* @__PURE__ */ new Set([
|
|
729
729
|
"help",
|
|
730
730
|
"guide",
|
|
@@ -803,7 +803,7 @@ var refuseUnknownPermissionKeys = /* @__PURE__ */ __name((command, settings, too
|
|
|
803
803
|
throw new CliError("validation_error", `--permission ${key} names no command`, { permission: key });
|
|
804
804
|
}, "refuseUnknownPermissionKeys");
|
|
805
805
|
|
|
806
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
806
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/cli/messenger/flooded.js
|
|
807
807
|
var LONG_LIVED = /* @__PURE__ */ new Set(["self", "newSendId", "close", "formatMarkdown", "formatHtml", "storedChats"]);
|
|
808
808
|
var LISTENING = /* @__PURE__ */ new Set(["watch", "feed", "listen", "listenHistory"]);
|
|
809
809
|
var BLOCKING = /* @__PURE__ */ new Set(["frozen", "limited", "banned"]);
|
|
@@ -922,7 +922,7 @@ var flooded = /* @__PURE__ */ __name((messenger, memory, { name, warn, pacer })
|
|
|
922
922
|
});
|
|
923
923
|
}, "flooded");
|
|
924
924
|
|
|
925
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
925
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/cli/messenger/observed.js
|
|
926
926
|
var observed = /* @__PURE__ */ __name((messenger, events) => {
|
|
927
927
|
const timed = /* @__PURE__ */ __name(async (operation, named, work, after) => {
|
|
928
928
|
const write = currentOperation();
|
|
@@ -1021,7 +1021,7 @@ var byPart = /* @__PURE__ */ __name((batch, counts) => {
|
|
|
1021
1021
|
counts[part] = (counts[part] ?? 0) + items.length;
|
|
1022
1022
|
}, "byPart");
|
|
1023
1023
|
|
|
1024
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1024
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/cli/messenger/stored.js
|
|
1025
1025
|
var REKEY_PACING = { lockMs: 50, pauseMs: 25 };
|
|
1026
1026
|
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" }) => {
|
|
1027
1027
|
let warned = false;
|
|
@@ -1597,7 +1597,7 @@ var keep = /* @__PURE__ */ __name(async (store, account, event, seenAt, among, c
|
|
|
1597
1597
|
}
|
|
1598
1598
|
}, "keep");
|
|
1599
1599
|
|
|
1600
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1600
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/cli/messenger/context.js
|
|
1601
1601
|
var lazyStore = /* @__PURE__ */ __name((env, command, version) => {
|
|
1602
1602
|
let opened;
|
|
1603
1603
|
return {
|
|
@@ -1938,6 +1938,7 @@ var messengerContext = /* @__PURE__ */ __name((command, messenger, resolving = {
|
|
|
1938
1938
|
// Turning recording off by name (--no-record, or record: false) keeps no search history either.
|
|
1939
1939
|
history: base.settings.record,
|
|
1940
1940
|
searchCatchUp: base.settings.searchCatchUp,
|
|
1941
|
+
...base.settings.historyLimits ? { historyLimits: base.settings.historyLimits } : {},
|
|
1941
1942
|
pictures: base.settings.pictureSearch,
|
|
1942
1943
|
reranker: base.settings.searchReranker,
|
|
1943
1944
|
guard,
|