@wirecat/mail-cli 0.4.0 → 0.6.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 +115 -0
- package/README.md +41 -10
- package/dist/bin/mail.js +2 -2
- package/dist/bundle/{all-profiles-55XPXQHY.js → all-profiles-GBFTKUHA.js} +9 -9
- package/dist/bundle/{anthropic-K5B6I4LB.js → anthropic-PTSCWUG6.js} +6 -6
- package/dist/bundle/{app-server-VWWLQLTZ.js → app-server-5VJ2WCKJ.js} +46 -46
- package/dist/bundle/{bun-EO7AI6YP.js → bun-2KRUBPIN.js} +2 -2
- package/dist/bundle/{bun-sqlite-F24A4IOP.js → bun-sqlite-ELSRSJBM.js} +5 -5
- package/dist/bundle/{chunk-X7AXH2IC.js → chunk-3KY7DA5A.js} +428 -434
- package/dist/bundle/{chunk-ANRI6EZY.js → chunk-4PKHZQIM.js} +8 -8
- package/dist/bundle/{chunk-CADRRSQK.js → chunk-56PI2BRH.js} +1 -1
- package/dist/bundle/{chunk-2ADB5DSG.js → chunk-5AQKM47C.js} +3 -3
- package/dist/bundle/{chunk-VP5GCMHM.js → chunk-5KHJUYHQ.js} +8 -8
- package/dist/bundle/{chunk-HUB42T2Z.js → chunk-6MV2TBDB.js} +57 -54
- package/dist/bundle/{chunk-4KLJN3LK.js → chunk-AGX7NR3S.js} +26 -13
- package/dist/bundle/{chunk-ZD3WUGR2.js → chunk-B337KHJ5.js} +4 -4
- package/dist/bundle/{chunk-5BVIWP3S.js → chunk-BM445GYF.js} +2 -2
- package/dist/bundle/{chunk-H7K2DN3R.js → chunk-BVIHT7KR.js} +9 -9
- package/dist/bundle/{chunk-EDKV6D6T.js → chunk-DA46WQEA.js} +1 -1
- package/dist/bundle/{chunk-UO7X2VW4.js → chunk-DV4RSEAH.js} +6 -6
- package/dist/bundle/{chunk-JZFIHVRB.js → chunk-ES4PWHBJ.js} +28 -28
- package/dist/bundle/{chunk-7X64JS6S.js → chunk-FIQOBLHS.js} +1 -1
- package/dist/bundle/{chunk-TI6VBZKJ.js → chunk-FUB3X25H.js} +4 -4
- package/dist/bundle/{chunk-VWXCEEUH.js → chunk-H4VFIH5W.js} +3 -3
- package/dist/bundle/{chunk-JKHI3PH7.js → chunk-J4C32YKH.js} +1 -1
- package/dist/bundle/{chunk-F6JTOQIK.js → chunk-J5MYH4L5.js} +12 -6
- package/dist/bundle/{chunk-QYWDC7NP.js → chunk-JFJTDL22.js} +47 -46
- package/dist/bundle/{chunk-UZDHK26H.js → chunk-JIQAFFPV.js} +2 -2
- package/dist/bundle/{chunk-BHKI5OCD.js → chunk-JKA2AICL.js} +2 -2
- package/dist/bundle/{dist-FMN7UZ7R.js → chunk-JKLQHPED.js} +16 -116
- package/dist/bundle/{chunk-J3QXTBD2.js → chunk-JLRMSNPX.js} +18 -18
- package/dist/bundle/{chunk-HORM6VRV.js → chunk-K5JUROGN.js} +1 -1
- package/dist/bundle/{chunk-SY3SP7EI.js → chunk-KUQYWIVR.js} +6 -6
- package/dist/bundle/{chunk-7QQ4EMYF.js → chunk-LWTG5UOF.js} +2 -2
- package/dist/bundle/{chunk-YSSMDVT3.js → chunk-M7V3GSJQ.js} +1 -1
- package/dist/bundle/chunk-MD2J3POF.js +52 -0
- package/dist/bundle/{chunk-SWRNMYDL.js → chunk-NCWO2FNC.js} +2 -2
- package/dist/bundle/{chunk-LKDK5YMI.js → chunk-NOU6MWEM.js} +2 -2
- package/dist/bundle/{chunk-LQ37ALDJ.js → chunk-NXJLC2WK.js} +8 -8
- package/dist/bundle/{chunk-ZAR67WKR.js → chunk-NZB4WGQS.js} +6 -6
- package/dist/bundle/{chunk-5RUTHKXZ.js → chunk-O555ZEQR.js} +4 -4
- package/dist/bundle/{chunk-MGBGE2Y4.js → chunk-O7VK7CJX.js} +2 -2
- package/dist/bundle/{chunk-WFBTPZK3.js → chunk-OHV5RDFE.js} +4 -4
- package/dist/bundle/{chunk-HJEMHZRU.js → chunk-P5B7IFOG.js} +2 -2
- package/dist/bundle/{chunk-VWHRIGYJ.js → chunk-PBYDT3CG.js} +13 -3
- package/dist/bundle/{chunk-7IYDIU4P.js → chunk-PHPC72DP.js} +7 -7
- package/dist/bundle/{chunk-ID24SLH3.js → chunk-PKU6V4EQ.js} +17 -17
- package/dist/bundle/{chunk-P7P5MNAU.js → chunk-QZBT6BOU.js} +1 -1
- package/dist/bundle/{chunk-NL5LNYGX.js → chunk-RAZOSYEO.js} +23 -23
- package/dist/bundle/{chunk-CCNHVZ3G.js → chunk-RDSAI6DC.js} +398 -293
- package/dist/bundle/{chunk-CSI73XJ5.js → chunk-SAZJDKEI.js} +8 -8
- package/dist/bundle/{chunk-QX7RCLRS.js → chunk-SQLCCKEL.js} +1 -1
- package/dist/bundle/{chunk-ORYYYM5Y.js → chunk-TKJDGAHT.js} +23 -23
- package/dist/bundle/{chunk-RLSGMMGC.js → chunk-TPNC5VCJ.js} +4 -4
- package/dist/bundle/{chunk-IIO6NXCA.js → chunk-UAXBLHZK.js} +2 -2
- package/dist/bundle/{chunk-2NZGUKYK.js → chunk-VEAP5RVI.js} +10 -8
- package/dist/bundle/{chunk-6BNMEOVS.js → chunk-VF24ZAPX.js} +4 -4
- package/dist/bundle/{chunk-FFKNUVVD.js → chunk-WCL3WBH5.js} +3 -3
- package/dist/bundle/{chunk-M4NTQ247.js → chunk-WGK4AIRL.js} +12 -12
- package/dist/bundle/{chunk-OM4ZBLT7.js → chunk-XERTHQ6D.js} +88 -34
- package/dist/bundle/{chunk-6BR6JMCR.js → chunk-XZGLY2LU.js} +14 -14
- package/dist/bundle/{chunk-2LP46EUH.js → chunk-Y7JKWQC2.js} +96 -94
- package/dist/bundle/{chunk-F7KAJNNK.js → chunk-YBJMBPL7.js} +6 -6
- package/dist/bundle/{chunk-YYTWV5GU.js → chunk-ZMMIIBTM.js} +73 -57
- package/dist/bundle/{chunk-EOEYP7CJ.js → chunk-ZPGLWMNH.js} +3 -3
- package/dist/bundle/{chunk-UJYCKCFR.js → chunk-ZRYFEEXZ.js} +3 -3
- package/dist/bundle/command-contract-NZF4B5OR.js +34 -0
- package/dist/bundle/{decode-ON4KBMEX.js → decode-HVXDCQ63.js} +5 -5
- package/dist/bundle/{dispatch-EUKKT3PD.js → dispatch-GDAH4JHS.js} +8 -8
- package/dist/bundle/dist-43DZXMBL.js +134 -0
- package/dist/bundle/{echarts-XPA226QR.js → echarts-LZ74IXHG.js} +2 -2
- package/dist/bundle/{embed-QERDAB73.js → embed-OQF5U2C6.js} +6 -6
- package/dist/bundle/{embedder-I76YT3E5.js → embedder-OCWQAWKO.js} +9 -9
- package/dist/bundle/{failure-OAIC5VAP.js → failure-6COJAO7T.js} +2 -2
- package/dist/bundle/{first-run-KZJFR55N.js → first-run-MTZPUPGA.js} +11 -11
- package/dist/bundle/first-screen-4PBS6QK5.js +32 -0
- package/dist/bundle/{instructions-NN3BCFIM.js → instructions-M6F4FP7U.js} +1 -1
- package/dist/bundle/mail.js +12 -11
- package/dist/bundle/{mcp-L7SRVDRN.js → mcp-GAPDLFWA.js} +2 -2
- package/dist/bundle/{node-2S75QJ6B.js → node-NYBBFHGN.js} +2 -2
- package/dist/bundle/{node-sqlite-RC7WM3EG.js → node-sqlite-CWCNWO75.js} +5 -5
- package/dist/bundle/{oauth-FUHLZCKV.js → oauth-DVX45EME.js} +7 -7
- package/dist/bundle/{open-JOKT7LKY.js → open-M7EQWWHL.js} +4 -4
- package/dist/bundle/{openai-U3IMQ6UI.js → openai-63KRU5H2.js} +14 -14
- package/dist/bundle/{process-LKODK722.js → process-DV5GQIGM.js} +1 -1
- package/dist/bundle/{program-RMLIQXCA.js → program-EPR3QCMX.js} +20570 -7622
- package/dist/bundle/{prompt-23VYMNNB.js → prompt-EPWPWTB3.js} +5 -5
- package/dist/bundle/{recognize-TXO3462R.js → recognize-R46KDXK4.js} +4 -4
- package/dist/bundle/{remote-5F4ZOASM.js → remote-RENCYB5X.js} +7 -7
- package/dist/bundle/{rerank-TXSDPEFE.js → rerank-VHPC5O73.js} +7 -7
- package/dist/bundle/{serve-TWYECYWM.js → serve-KCH3ORYO.js} +9 -9
- package/dist/bundle/server-FMCPE2ZK.js +63 -0
- package/dist/bundle/{server-3S3BKE6D.js → server-HZVXSK7B.js} +38 -38
- package/dist/bundle/{sqlite-runtime-BEOBGC6K.js → sqlite-runtime-XP7ZJCKJ.js} +5 -5
- package/dist/bundle/{state-ERWIUTQQ.js → state-GQ4MEQJ5.js} +6 -6
- package/dist/bundle/{store-2JO4JGQL.js → store-CQNLNINW.js} +13 -13
- package/dist/bundle/{store-4RY5UMOP.js → store-WT7YTR3Y.js} +15 -15
- package/dist/bundle/store-maintenance-command-YYR42IT4.js +52 -0
- package/dist/commands/attachments.d.ts +3 -0
- package/dist/commands/attachments.d.ts.map +1 -0
- package/dist/commands/attachments.js +97 -0
- package/dist/commands/attachments.js.map +1 -0
- package/dist/commands/context.d.ts.map +1 -1
- package/dist/commands/context.js +11 -1
- package/dist/commands/context.js.map +1 -1
- package/dist/commands/drafts-send.d.ts +7 -0
- package/dist/commands/drafts-send.d.ts.map +1 -0
- package/dist/commands/drafts-send.js +58 -0
- package/dist/commands/drafts-send.js.map +1 -0
- package/dist/commands/drafts.d.ts +3 -0
- package/dist/commands/drafts.d.ts.map +1 -0
- package/dist/commands/drafts.js +239 -0
- package/dist/commands/drafts.js.map +1 -0
- package/dist/commands/export.d.ts +3 -0
- package/dist/commands/export.d.ts.map +1 -0
- package/dist/commands/export.js +275 -0
- package/dist/commands/export.js.map +1 -0
- package/dist/commands/folders.d.ts.map +1 -1
- package/dist/commands/folders.js +120 -2
- package/dist/commands/folders.js.map +1 -1
- package/dist/commands/messages.d.ts +25 -0
- package/dist/commands/messages.d.ts.map +1 -0
- package/dist/commands/messages.js +502 -0
- package/dist/commands/messages.js.map +1 -0
- package/dist/commands/read.d.ts +4 -1
- package/dist/commands/read.d.ts.map +1 -1
- package/dist/commands/read.js +12 -2
- package/dist/commands/read.js.map +1 -1
- package/dist/commands/rules.d.ts +3 -0
- package/dist/commands/rules.d.ts.map +1 -0
- package/dist/commands/rules.js +292 -0
- package/dist/commands/rules.js.map +1 -0
- package/dist/commands/send.d.ts +39 -0
- package/dist/commands/send.d.ts.map +1 -0
- package/dist/commands/send.js +309 -0
- package/dist/commands/send.js.map +1 -0
- package/dist/commands/server-search.d.ts +8 -0
- package/dist/commands/server-search.d.ts.map +1 -0
- package/dist/commands/server-search.js +38 -0
- package/dist/commands/server-search.js.map +1 -0
- package/dist/commands/stats.d.ts +3 -0
- package/dist/commands/stats.d.ts.map +1 -0
- package/dist/commands/stats.js +90 -0
- package/dist/commands/stats.js.map +1 -0
- package/dist/commands/sync.d.ts +7 -0
- package/dist/commands/sync.d.ts.map +1 -1
- package/dist/commands/sync.js +22 -7
- package/dist/commands/sync.js.map +1 -1
- package/dist/commands/tags.d.ts +3 -0
- package/dist/commands/tags.d.ts.map +1 -0
- package/dist/commands/tags.js +144 -0
- package/dist/commands/tags.js.map +1 -0
- package/dist/config.d.ts +13 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +47 -1
- package/dist/config.js.map +1 -1
- package/dist/export/format.d.ts +19 -0
- package/dist/export/format.d.ts.map +1 -0
- package/dist/export/format.js +40 -0
- package/dist/export/format.js.map +1 -0
- package/dist/export/journal.d.ts +32 -0
- package/dist/export/journal.d.ts.map +1 -0
- package/dist/export/journal.js +84 -0
- package/dist/export/journal.js.map +1 -0
- package/dist/export/write.d.ts +14 -0
- package/dist/export/write.d.ts.map +1 -0
- package/dist/export/write.js +42 -0
- package/dist/export/write.js.map +1 -0
- package/dist/identity.d.ts.map +1 -1
- package/dist/identity.js +3 -0
- package/dist/identity.js.map +1 -1
- package/dist/mail/backend.d.ts +81 -1
- package/dist/mail/backend.d.ts.map +1 -1
- package/dist/mail/changes.d.ts +91 -0
- package/dist/mail/changes.d.ts.map +1 -0
- package/dist/mail/changes.js +198 -0
- package/dist/mail/changes.js.map +1 -0
- package/dist/mail/cleanup.d.ts +41 -0
- package/dist/mail/cleanup.d.ts.map +1 -0
- package/dist/mail/cleanup.js +119 -0
- package/dist/mail/cleanup.js.map +1 -0
- package/dist/mail/compose.d.ts +73 -0
- package/dist/mail/compose.d.ts.map +1 -0
- package/dist/mail/compose.js +122 -0
- package/dist/mail/compose.js.map +1 -0
- package/dist/mail/doctor.d.ts +25 -0
- package/dist/mail/doctor.d.ts.map +1 -0
- package/dist/mail/doctor.js +39 -0
- package/dist/mail/doctor.js.map +1 -0
- package/dist/mail/drafts.d.ts +54 -0
- package/dist/mail/drafts.d.ts.map +1 -0
- package/dist/mail/drafts.js +104 -0
- package/dist/mail/drafts.js.map +1 -0
- package/dist/mail/imap/connection.d.ts +7 -0
- package/dist/mail/imap/connection.d.ts.map +1 -1
- package/dist/mail/imap/connection.js +24 -2
- package/dist/mail/imap/connection.js.map +1 -1
- package/dist/mail/imap/index.d.ts +1 -1
- package/dist/mail/imap/index.d.ts.map +1 -1
- package/dist/mail/imap/index.js +12 -2
- package/dist/mail/imap/index.js.map +1 -1
- package/dist/mail/imap/messages.d.ts +5 -6
- package/dist/mail/imap/messages.d.ts.map +1 -1
- package/dist/mail/imap/messages.js +14 -28
- package/dist/mail/imap/messages.js.map +1 -1
- package/dist/mail/imap/read.d.ts.map +1 -1
- package/dist/mail/imap/read.js +27 -13
- package/dist/mail/imap/read.js.map +1 -1
- package/dist/mail/imap/search.d.ts +14 -0
- package/dist/mail/imap/search.d.ts.map +1 -0
- package/dist/mail/imap/search.js +49 -0
- package/dist/mail/imap/search.js.map +1 -0
- package/dist/mail/imap/write.d.ts +5 -0
- package/dist/mail/imap/write.d.ts.map +1 -0
- package/dist/mail/imap/write.js +93 -0
- package/dist/mail/imap/write.js.map +1 -0
- package/dist/mail/organise.d.ts +116 -0
- package/dist/mail/organise.d.ts.map +1 -0
- package/dist/mail/organise.js +531 -0
- package/dist/mail/organise.js.map +1 -0
- package/dist/mail/rethread.d.ts +1 -2
- package/dist/mail/rethread.d.ts.map +1 -1
- package/dist/mail/rethread.js +8 -3
- package/dist/mail/rethread.js.map +1 -1
- package/dist/mail/rules/apply.d.ts +40 -0
- package/dist/mail/rules/apply.d.ts.map +1 -0
- package/dist/mail/rules/apply.js +114 -0
- package/dist/mail/rules/apply.js.map +1 -0
- package/dist/mail/rules/file.d.ts +9 -0
- package/dist/mail/rules/file.d.ts.map +1 -0
- package/dist/mail/rules/file.js +51 -0
- package/dist/mail/rules/file.js.map +1 -0
- package/dist/mail/rules/filters.d.ts +11 -0
- package/dist/mail/rules/filters.d.ts.map +1 -0
- package/dist/mail/rules/filters.js +150 -0
- package/dist/mail/rules/filters.js.map +1 -0
- package/dist/mail/rules/folders.d.ts +11 -0
- package/dist/mail/rules/folders.d.ts.map +1 -0
- package/dist/mail/rules/folders.js +17 -0
- package/dist/mail/rules/folders.js.map +1 -0
- package/dist/mail/rules/query.d.ts +15 -0
- package/dist/mail/rules/query.d.ts.map +1 -0
- package/dist/mail/rules/query.js +103 -0
- package/dist/mail/rules/query.js.map +1 -0
- package/dist/mail/rules/store.d.ts +9 -0
- package/dist/mail/rules/store.d.ts.map +1 -0
- package/dist/mail/rules/store.js +17 -0
- package/dist/mail/rules/store.js.map +1 -0
- package/dist/mail/save.d.ts +12 -0
- package/dist/mail/save.d.ts.map +1 -0
- package/dist/mail/save.js +71 -0
- package/dist/mail/save.js.map +1 -0
- package/dist/mail/send.d.ts +67 -0
- package/dist/mail/send.d.ts.map +1 -0
- package/dist/mail/send.js +172 -0
- package/dist/mail/send.js.map +1 -0
- package/dist/mail/smtp.d.ts +4 -0
- package/dist/mail/smtp.d.ts.map +1 -0
- package/dist/mail/smtp.js +97 -0
- package/dist/mail/smtp.js.map +1 -0
- package/dist/program.d.ts.map +1 -1
- package/dist/program.js +28 -6
- package/dist/program.js.map +1 -1
- package/dist/providers.d.ts +71 -6
- package/dist/providers.d.ts.map +1 -1
- package/dist/providers.js +38 -9
- package/dist/providers.js.map +1 -1
- package/dist/reasons.d.ts +9 -0
- package/dist/reasons.d.ts.map +1 -0
- package/dist/reasons.js +21 -0
- package/dist/reasons.js.map +1 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +8 -5
- package/skills/mail-cli/SKILL.md +30 -3
- package/dist/bundle/chunk-XJ5TBPCK.js +0 -27
- package/dist/bundle/command-contract-L65UZ7AF.js +0 -34
- package/dist/bundle/first-screen-EORANEAK.js +0 -32
- package/dist/bundle/server-2GEAXKX2.js +0 -63
- package/dist/bundle/store-maintenance-command-T7D4OTN7.js +0 -52
- /package/dist/bundle/{chunk-NPGVOZVK.js → chunk-WJWLHLQ7.js} +0 -0
|
@@ -2,11 +2,11 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
renderMessages
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-NOU6MWEM.js";
|
|
6
6
|
import {
|
|
7
7
|
answerOf,
|
|
8
8
|
messengerContext
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-RAZOSYEO.js";
|
|
10
10
|
import {
|
|
11
11
|
RULES_VERSION,
|
|
12
12
|
applyTaskRulesOnArrival,
|
|
@@ -23,19 +23,19 @@ import {
|
|
|
23
23
|
syncsOneChat,
|
|
24
24
|
typedQuery,
|
|
25
25
|
withQuery
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-3KY7DA5A.js";
|
|
27
27
|
import {
|
|
28
28
|
checkedOptions,
|
|
29
29
|
range
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-WCL3WBH5.js";
|
|
31
31
|
import {
|
|
32
32
|
messagesFor,
|
|
33
33
|
systemFor,
|
|
34
34
|
validateImages
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-JKA2AICL.js";
|
|
36
36
|
import {
|
|
37
37
|
readSecret
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-5AQKM47C.js";
|
|
39
39
|
import {
|
|
40
40
|
Command,
|
|
41
41
|
LOCAL_READ,
|
|
@@ -62,23 +62,23 @@ import {
|
|
|
62
62
|
snakeKeys,
|
|
63
63
|
storeTable,
|
|
64
64
|
withoutProviderRefs
|
|
65
|
-
} from "./chunk-
|
|
65
|
+
} from "./chunk-6MV2TBDB.js";
|
|
66
66
|
import {
|
|
67
67
|
levelFor
|
|
68
|
-
} from "./chunk-
|
|
68
|
+
} from "./chunk-J5MYH4L5.js";
|
|
69
69
|
import {
|
|
70
70
|
failureKey
|
|
71
|
-
} from "./chunk-
|
|
71
|
+
} from "./chunk-BVIHT7KR.js";
|
|
72
72
|
import {
|
|
73
73
|
holdLock,
|
|
74
74
|
lockPath,
|
|
75
75
|
releaseLock,
|
|
76
76
|
servingProfiles,
|
|
77
77
|
takeLock
|
|
78
|
-
} from "./chunk-
|
|
78
|
+
} from "./chunk-ZPGLWMNH.js";
|
|
79
79
|
import {
|
|
80
80
|
holdersOf
|
|
81
|
-
} from "./chunk-
|
|
81
|
+
} from "./chunk-56PI2BRH.js";
|
|
82
82
|
import {
|
|
83
83
|
MIGRATIONS,
|
|
84
84
|
drainNoteIndex,
|
|
@@ -105,26 +105,26 @@ import {
|
|
|
105
105
|
storeClients,
|
|
106
106
|
storeContents,
|
|
107
107
|
vectorIndexCounts
|
|
108
|
-
} from "./chunk-
|
|
108
|
+
} from "./chunk-RDSAI6DC.js";
|
|
109
109
|
import {
|
|
110
110
|
formatLocator,
|
|
111
111
|
parseLocator
|
|
112
|
-
} from "./chunk-
|
|
112
|
+
} from "./chunk-KUQYWIVR.js";
|
|
113
113
|
import {
|
|
114
114
|
queryFieldsOf
|
|
115
|
-
} from "./chunk-
|
|
115
|
+
} from "./chunk-ZMMIIBTM.js";
|
|
116
116
|
import {
|
|
117
117
|
openCache
|
|
118
|
-
} from "./chunk-
|
|
118
|
+
} from "./chunk-DV4RSEAH.js";
|
|
119
119
|
import {
|
|
120
120
|
storePath
|
|
121
|
-
} from "./chunk-
|
|
121
|
+
} from "./chunk-JIQAFFPV.js";
|
|
122
122
|
import {
|
|
123
123
|
Credentials,
|
|
124
124
|
pathsAreOverridden,
|
|
125
125
|
resolvePaths,
|
|
126
126
|
writeSecurely
|
|
127
|
-
} from "./chunk-
|
|
127
|
+
} from "./chunk-JLRMSNPX.js";
|
|
128
128
|
import {
|
|
129
129
|
array,
|
|
130
130
|
boolean,
|
|
@@ -148,10 +148,10 @@ import {
|
|
|
148
148
|
transform,
|
|
149
149
|
trim,
|
|
150
150
|
union
|
|
151
|
-
} from "./chunk-
|
|
151
|
+
} from "./chunk-NXJLC2WK.js";
|
|
152
152
|
import {
|
|
153
153
|
CliError
|
|
154
|
-
} from "./chunk-
|
|
154
|
+
} from "./chunk-BM445GYF.js";
|
|
155
155
|
import {
|
|
156
156
|
__commonJS,
|
|
157
157
|
__name,
|
|
@@ -5491,11 +5491,11 @@ var require_liquid_node = __commonJS({
|
|
|
5491
5491
|
}
|
|
5492
5492
|
});
|
|
5493
5493
|
|
|
5494
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5494
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.530.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_f01b7e2db7d22734373a522c868220f7/node_modules/@wirecat/cli-core/dist/cli/messenger/store-maintenance-command.js
|
|
5495
5495
|
import { chmodSync, constants, copyFileSync, existsSync as existsSync7, mkdirSync, realpathSync, renameSync as renameSync2, rmSync as rmSync2, statfsSync, statSync as statSync3, writeFileSync } from "node:fs";
|
|
5496
5496
|
import { dirname, resolve } from "node:path";
|
|
5497
5497
|
|
|
5498
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5498
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.530.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_f01b7e2db7d22734373a522c868220f7/node_modules/@wirecat/cli-core/dist/sealed.js
|
|
5499
5499
|
import { createCipheriv, createDecipheriv, createHash, randomBytes, scrypt, timingSafeEqual } from "node:crypto";
|
|
5500
5500
|
import { closeSync, createReadStream, createWriteStream, existsSync, openSync, readSync, renameSync, rmSync, statSync } from "node:fs";
|
|
5501
5501
|
import { Transform } from "node:stream";
|
|
@@ -5602,7 +5602,7 @@ var unsealFile = /* @__PURE__ */ __name(async (from, to, password) => {
|
|
|
5602
5602
|
renameSync(pending, to);
|
|
5603
5603
|
}, "unsealFile");
|
|
5604
5604
|
|
|
5605
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5605
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.530.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_f01b7e2db7d22734373a522c868220f7/node_modules/@wirecat/cli-core/dist/store/compatibility.js
|
|
5606
5606
|
var SPEAKS = MIGRATIONS.at(-1)?.version ?? 0;
|
|
5607
5607
|
var fileSchemaOf = /* @__PURE__ */ __name((database) => {
|
|
5608
5608
|
const tracked = database.prepare("SELECT 1 FROM sqlite_master WHERE name = 'schema_migrations'").get();
|
|
@@ -5626,7 +5626,7 @@ var compatibilityOf = /* @__PURE__ */ __name((file2, migrations = MIGRATIONS) =>
|
|
|
5626
5626
|
};
|
|
5627
5627
|
}, "compatibilityOf");
|
|
5628
5628
|
|
|
5629
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5629
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.530.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_f01b7e2db7d22734373a522c868220f7/node_modules/@wirecat/cli-core/dist/store/repair.js
|
|
5630
5630
|
import { createHash as createHash2 } from "node:crypto";
|
|
5631
5631
|
var COPY_MARK = "__repair_";
|
|
5632
5632
|
var COPY_NAME = /__repair_[0-9a-f]{8}(_\d+)?$/;
|
|
@@ -5880,7 +5880,7 @@ var deleteCopy = /* @__PURE__ */ __name((database, name) => {
|
|
|
5880
5880
|
return found;
|
|
5881
5881
|
}, "deleteCopy");
|
|
5882
5882
|
|
|
5883
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5883
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.530.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_f01b7e2db7d22734373a522c868220f7/node_modules/@wirecat/cli-core/dist/cli/store-info.js
|
|
5884
5884
|
import { existsSync as existsSync2, statSync as statSync2 } from "node:fs";
|
|
5885
5885
|
var pendingIfKnown = /* @__PURE__ */ __name((database) => database.prepare("SELECT 1 FROM pragma_table_info('messages') WHERE name = 'normalized_text'").get() ? pendingNormalization(database) : null, "pendingIfKnown");
|
|
5886
5886
|
var bytesOf = /* @__PURE__ */ __name((path) => existsSync2(path) ? statSync2(path).size : 0, "bytesOf");
|
|
@@ -5927,7 +5927,7 @@ var storeInfoCommand = /* @__PURE__ */ __name(() => annotate(new Command("info")
|
|
|
5927
5927
|
renderAnswer(this, outputFor(this), itemOf(answer));
|
|
5928
5928
|
}), "storeInfoCommand");
|
|
5929
5929
|
|
|
5930
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5930
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.530.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_f01b7e2db7d22734373a522c868220f7/node_modules/@wirecat/cli-core/dist/cli/messenger/password.js
|
|
5931
5931
|
var ENCRYPT_OPTION = [
|
|
5932
5932
|
"--encrypt",
|
|
5933
5933
|
"compress and encrypt with a password, typed at a hidden prompt or piped on stdin; it is never kept \u2014 lose it and the file cannot be opened"
|
|
@@ -5946,7 +5946,7 @@ var passwordOf = /* @__PURE__ */ __name(async (command, { twice }) => {
|
|
|
5946
5946
|
return password;
|
|
5947
5947
|
}, "passwordOf");
|
|
5948
5948
|
|
|
5949
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5949
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.530.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_f01b7e2db7d22734373a522c868220f7/node_modules/@wirecat/cli-core/dist/replies/rules.js
|
|
5950
5950
|
import { existsSync as existsSync3, readFileSync } from "node:fs";
|
|
5951
5951
|
import { join } from "node:path";
|
|
5952
5952
|
var REPLY_ACTIONS = ["reply", "task"];
|
|
@@ -6117,7 +6117,7 @@ var problem = /* @__PURE__ */ __name((issue) => {
|
|
|
6117
6117
|
}, "problem");
|
|
6118
6118
|
var broken = /* @__PURE__ */ __name((path, why) => new CliError("configuration_error", `the reply rules ${path} cannot be read (${why}) \u2014 fix the file`), "broken");
|
|
6119
6119
|
|
|
6120
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6120
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.530.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_f01b7e2db7d22734373a522c868220f7/node_modules/@wirecat/cli-core/dist/replies/state.js
|
|
6121
6121
|
import { existsSync as existsSync4, readFileSync as readFileSync2 } from "node:fs";
|
|
6122
6122
|
import { join as join2 } from "node:path";
|
|
6123
6123
|
var ANSWERED_KEPT = 1e3;
|
|
@@ -6170,7 +6170,7 @@ var recordReply = /* @__PURE__ */ __name((state, rule2, message, now) => {
|
|
|
6170
6170
|
}, "recordReply");
|
|
6171
6171
|
var broken2 = /* @__PURE__ */ __name((path, why) => new CliError("configuration_error", `the reply state ${path} cannot be read (${why}) \u2014 fix or move the file`), "broken");
|
|
6172
6172
|
|
|
6173
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6173
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.530.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_f01b7e2db7d22734373a522c868220f7/node_modules/@wirecat/cli-core/dist/replies/decide.js
|
|
6174
6174
|
var skip = /* @__PURE__ */ __name((why) => ({ skip: why }), "skip");
|
|
6175
6175
|
var decide = /* @__PURE__ */ __name((rule2, incoming, state, now) => {
|
|
6176
6176
|
const { message, chat, owner, sender } = incoming;
|
|
@@ -6276,7 +6276,7 @@ var filled = /* @__PURE__ */ __name((template2, senderName) => {
|
|
|
6276
6276
|
return template2.replaceAll("{firstName}", name.split(/\s+/)[0] ?? name).replaceAll("{name}", name);
|
|
6277
6277
|
}, "filled");
|
|
6278
6278
|
|
|
6279
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6279
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.530.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_f01b7e2db7d22734373a522c868220f7/node_modules/@wirecat/cli-core/dist/replies/template.js
|
|
6280
6280
|
var import_liquidjs = __toESM(require_liquid_node(), 1);
|
|
6281
6281
|
var TEMPLATE_LIMITS = {
|
|
6282
6282
|
parse: 32768,
|
|
@@ -6436,7 +6436,7 @@ var renderReplyTemplate = /* @__PURE__ */ __name(async (reply, input) => {
|
|
|
6436
6436
|
}
|
|
6437
6437
|
}, "renderReplyTemplate");
|
|
6438
6438
|
|
|
6439
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6439
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.530.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_f01b7e2db7d22734373a522c868220f7/node_modules/@wirecat/cli-core/dist/replies/dry-run.js
|
|
6440
6440
|
var DRY_RUN_DAYS = 7;
|
|
6441
6441
|
var PAGE = 500;
|
|
6442
6442
|
var dryRun = /* @__PURE__ */ __name(async (store, account, rules, { since, until = Date.now(), only, audience, render }) => {
|
|
@@ -6550,7 +6550,7 @@ var storedSince = /* @__PURE__ */ __name(async (store, account, chat, since) =>
|
|
|
6550
6550
|
}
|
|
6551
6551
|
}, "storedSince");
|
|
6552
6552
|
|
|
6553
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6553
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.530.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_f01b7e2db7d22734373a522c868220f7/node_modules/@wirecat/cli-core/dist/embeddings/keys.js
|
|
6554
6554
|
var endpointKeyName = /* @__PURE__ */ __name((baseUrl) => {
|
|
6555
6555
|
const host = new URL(baseUrl).host;
|
|
6556
6556
|
return ["openai", "anthropic"].includes(host) ? `endpoint:${host}` : host;
|
|
@@ -6581,7 +6581,7 @@ var embeddingKeys = /* @__PURE__ */ __name((app, env = process.env, keyring) =>
|
|
|
6581
6581
|
};
|
|
6582
6582
|
}, "embeddingKeys");
|
|
6583
6583
|
|
|
6584
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6584
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.530.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_f01b7e2db7d22734373a522c868220f7/node_modules/@wirecat/cli-core/dist/models/openai.js
|
|
6585
6585
|
var options = strictObject({
|
|
6586
6586
|
temperature: range(0, 2),
|
|
6587
6587
|
top_p: range(0, 1),
|
|
@@ -6630,7 +6630,7 @@ var openai = {
|
|
|
6630
6630
|
}, "complete")
|
|
6631
6631
|
};
|
|
6632
6632
|
|
|
6633
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6633
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.530.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_f01b7e2db7d22734373a522c868220f7/node_modules/@wirecat/cli-core/dist/models/index.js
|
|
6634
6634
|
var modelGateway = /* @__PURE__ */ __name((deps) => ({
|
|
6635
6635
|
complete: /* @__PURE__ */ __name(async (request) => {
|
|
6636
6636
|
if (deps.signal?.aborted)
|
|
@@ -6645,7 +6645,7 @@ var modelGateway = /* @__PURE__ */ __name((deps) => ({
|
|
|
6645
6645
|
if (!adapter && target.provider === "openai")
|
|
6646
6646
|
adapter = openai;
|
|
6647
6647
|
if (!adapter && target.provider === "anthropic")
|
|
6648
|
-
adapter = (await import("./anthropic-
|
|
6648
|
+
adapter = (await import("./anthropic-PTSCWUG6.js")).anthropic;
|
|
6649
6649
|
if (!adapter)
|
|
6650
6650
|
throw new CliError("validation_error", `no model adapter for ${target.provider}`);
|
|
6651
6651
|
if (request.images !== void 0 && adapter.images !== true)
|
|
@@ -6686,7 +6686,7 @@ var modelGateway = /* @__PURE__ */ __name((deps) => ({
|
|
|
6686
6686
|
}, "complete")
|
|
6687
6687
|
}), "modelGateway");
|
|
6688
6688
|
|
|
6689
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6689
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.530.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_f01b7e2db7d22734373a522c868220f7/node_modules/@wirecat/cli-core/dist/replies/consents.js
|
|
6690
6690
|
import { existsSync as existsSync5, readFileSync as readFileSync3 } from "node:fs";
|
|
6691
6691
|
import { join as join3 } from "node:path";
|
|
6692
6692
|
var shape = strictObject({
|
|
@@ -6711,7 +6711,7 @@ var mayModelReply = /* @__PURE__ */ __name((path, provider, chat) => {
|
|
|
6711
6711
|
return consent.provider === provider && !consent.deniedChats.includes(chat);
|
|
6712
6712
|
}, "mayModelReply");
|
|
6713
6713
|
|
|
6714
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6714
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.530.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_f01b7e2db7d22734373a522c868220f7/node_modules/@wirecat/cli-core/dist/replies/rendering.js
|
|
6715
6715
|
var replyRenderer = /* @__PURE__ */ __name((app, profile, settings, env, warn, options2 = {
|
|
6716
6716
|
ai: true
|
|
6717
6717
|
}) => async (rule2, message, chat, now) => {
|
|
@@ -6758,7 +6758,7 @@ var replyRenderer = /* @__PURE__ */ __name((app, profile, settings, env, warn, o
|
|
|
6758
6758
|
return result2;
|
|
6759
6759
|
}, "replyRenderer");
|
|
6760
6760
|
|
|
6761
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6761
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.530.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_f01b7e2db7d22734373a522c868220f7/node_modules/@wirecat/cli-core/dist/replies/serve.js
|
|
6762
6762
|
var NOT_ALLOWED = "replies.send is not allow";
|
|
6763
6763
|
var NO_RULES = "no rules";
|
|
6764
6764
|
var ONLY_TASK = "opened a task, sent nothing";
|
|
@@ -6851,7 +6851,7 @@ var replyTo = /* @__PURE__ */ __name(async (deps, message) => {
|
|
|
6851
6851
|
return { skip: why };
|
|
6852
6852
|
}, "replyTo");
|
|
6853
6853
|
|
|
6854
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6854
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.530.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_f01b7e2db7d22734373a522c868220f7/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-members.js
|
|
6855
6855
|
var FIRST_FETCH_MS = 6e4;
|
|
6856
6856
|
var DAY_MS = 864e5;
|
|
6857
6857
|
var memberFetches = /* @__PURE__ */ __name(({ withStore, fetch: fetch2, warn, firstMs = FIRST_FETCH_MS, everyMs = DAY_MS }) => {
|
|
@@ -6905,7 +6905,7 @@ var memberFetches = /* @__PURE__ */ __name(({ withStore, fetch: fetch2, warn, fi
|
|
|
6905
6905
|
};
|
|
6906
6906
|
}, "memberFetches");
|
|
6907
6907
|
|
|
6908
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6908
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.530.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_f01b7e2db7d22734373a522c868220f7/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-notice.js
|
|
6909
6909
|
var record2 = /* @__PURE__ */ __name((context, app, severity, attributes) => recordLogFor(context.streams.diagnostic, app, { command: currentRun().command || "serve" })[severity](attributes), "record");
|
|
6910
6910
|
var noticeFor = /* @__PURE__ */ __name((context, app, severity = "warn") => ({ text, ...attributes }) => {
|
|
6911
6911
|
if (context.format === "pretty") {
|
|
@@ -6938,7 +6938,7 @@ var recordDiagnostics = /* @__PURE__ */ __name((context, app) => {
|
|
|
6938
6938
|
return context;
|
|
6939
6939
|
}, "recordDiagnostics");
|
|
6940
6940
|
|
|
6941
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6941
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.530.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_f01b7e2db7d22734373a522c868220f7/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-stems.js
|
|
6942
6942
|
var STEMS_EVERY_MS = 3e4;
|
|
6943
6943
|
var STEMS_SLICE_MS = 2e3;
|
|
6944
6944
|
var stemFills = /* @__PURE__ */ __name(({ withStore, warn, everyMs = STEMS_EVERY_MS, sliceMs = STEMS_SLICE_MS }) => {
|
|
@@ -6978,7 +6978,7 @@ var stemFills = /* @__PURE__ */ __name(({ withStore, warn, everyMs = STEMS_EVERY
|
|
|
6978
6978
|
};
|
|
6979
6979
|
}, "stemFills");
|
|
6980
6980
|
|
|
6981
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6981
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.530.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_f01b7e2db7d22734373a522c868220f7/node_modules/@wirecat/cli-core/dist/cli/messenger/message-items.js
|
|
6982
6982
|
var defined = /* @__PURE__ */ __name((value) => Object.fromEntries(Object.entries(value).filter(([, one]) => one !== void 0)), "defined");
|
|
6983
6983
|
var attachmentItem = /* @__PURE__ */ __name((attachment) => defined({
|
|
6984
6984
|
kind: attachment.kind,
|
|
@@ -7073,7 +7073,7 @@ var viewOf = /* @__PURE__ */ __name((context, messenger) => ({
|
|
|
7073
7073
|
locale: messenger.app.locale
|
|
7074
7074
|
}), "viewOf");
|
|
7075
7075
|
|
|
7076
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7076
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.530.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_f01b7e2db7d22734373a522c868220f7/node_modules/@wirecat/cli-core/dist/cli/messenger/watch-answers.js
|
|
7077
7077
|
var observed = /* @__PURE__ */ __name((value) => ({
|
|
7078
7078
|
value: value.value,
|
|
7079
7079
|
observed_at: value.observedAt,
|
|
@@ -7140,7 +7140,7 @@ var watchEventItem = /* @__PURE__ */ __name((value, account) => {
|
|
|
7140
7140
|
}
|
|
7141
7141
|
}, "watchEventItem");
|
|
7142
7142
|
|
|
7143
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7143
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.530.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_f01b7e2db7d22734373a522c868220f7/node_modules/@wirecat/cli-core/dist/cli/messenger/watch-command.js
|
|
7144
7144
|
var watchCommand = /* @__PURE__ */ __name((messenger) => annotate(new Command("watch"), {
|
|
7145
7145
|
output: { entity: "watch_item" },
|
|
7146
7146
|
effects: REMOTE_READ,
|
|
@@ -7295,7 +7295,7 @@ var describe = /* @__PURE__ */ __name((event, render) => {
|
|
|
7295
7295
|
}
|
|
7296
7296
|
}, "describe");
|
|
7297
7297
|
|
|
7298
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7298
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.530.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_f01b7e2db7d22734373a522c868220f7/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-command.js
|
|
7299
7299
|
var serveCommand = /* @__PURE__ */ __name((messenger) => {
|
|
7300
7300
|
const command = annotate(new Command("serve"), {
|
|
7301
7301
|
output: { entity: "serve_summary" },
|
|
@@ -7511,7 +7511,7 @@ var tasking = /* @__PURE__ */ __name((context, warn) => {
|
|
|
7511
7511
|
};
|
|
7512
7512
|
}, "tasking");
|
|
7513
7513
|
|
|
7514
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7514
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.530.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_f01b7e2db7d22734373a522c868220f7/node_modules/@wirecat/cli-core/dist/cli/messenger/store-tables-command.js
|
|
7515
7515
|
import { existsSync as existsSync6 } from "node:fs";
|
|
7516
7516
|
var PATH = "store tables list";
|
|
7517
7517
|
var STORE_TABLES_QUERY = {
|
|
@@ -7554,7 +7554,7 @@ var storeTablesCommand = /* @__PURE__ */ __name((messenger) => {
|
|
|
7554
7554
|
return tables;
|
|
7555
7555
|
}, "storeTablesCommand");
|
|
7556
7556
|
|
|
7557
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7557
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.530.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_f01b7e2db7d22734373a522c868220f7/node_modules/@wirecat/cli-core/dist/cli/messenger/store-maintenance-command.js
|
|
7558
7558
|
var SEARCH_INDEXES = ["messages_fts", "chats_fts", "identities_fts"];
|
|
7559
7559
|
var WORD_INDEX = "message_words";
|
|
7560
7560
|
var schemaOf = /* @__PURE__ */ __name((database) => {
|
|
@@ -8169,6 +8169,7 @@ export {
|
|
|
8169
8169
|
seal,
|
|
8170
8170
|
ENCRYPT_OPTION,
|
|
8171
8171
|
passwordOf,
|
|
8172
|
+
DAY_MS,
|
|
8172
8173
|
messageItem,
|
|
8173
8174
|
messageItems,
|
|
8174
8175
|
selfOf,
|
|
@@ -2,12 +2,12 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
resolvePaths
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-JLRMSNPX.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.530.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_f01b7e2db7d22734373a522c868220f7/node_modules/@wirecat/cli-core/dist/store/path.js
|
|
11
11
|
import { join } from "node:path";
|
|
12
12
|
var wirecatDirectory = /* @__PURE__ */ __name((env = process.env, platform) => resolvePaths({ appName: "WireCat", prefix: "WIRECAT", env, ...platform ? { platform } : {} }).state, "wirecatDirectory");
|
|
13
13
|
var storePath = /* @__PURE__ */ __name((env = process.env) => env.MESSAGING_STORE ?? join(wirecatDirectory(env), "wirecat.db"), "storePath");
|
|
@@ -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-BM445GYF.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.530.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_f01b7e2db7d22734373a522c868220f7/node_modules/@wirecat/cli-core/dist/models/types.js
|
|
11
11
|
var MAX_MODEL_IMAGE_BYTES = 4 * 1024 * 1024;
|
|
12
12
|
var validateImages = /* @__PURE__ */ __name((images) => {
|
|
13
13
|
if (images === void 0)
|
|
@@ -1,85 +1,27 @@
|
|
|
1
1
|
import { createRequire as __bundleRequire } from "node:module";
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
|
-
DETAILS,
|
|
5
|
-
REASONS,
|
|
6
|
-
failureContext
|
|
7
|
-
} from "./chunk-VWHRIGYJ.js";
|
|
8
|
-
import {
|
|
9
|
-
pollLines,
|
|
10
|
-
renderMessage,
|
|
11
|
-
renderMessages
|
|
12
|
-
} from "./chunk-LKDK5YMI.js";
|
|
13
|
-
import {
|
|
14
|
-
ModerationRules,
|
|
15
|
-
act,
|
|
16
|
-
defaultRules,
|
|
17
|
-
isId,
|
|
18
|
-
judge,
|
|
19
|
-
moderationPathFor,
|
|
20
|
-
pickChat,
|
|
21
|
-
pickPerson,
|
|
22
4
|
validateFormattedText
|
|
23
|
-
} from "./chunk-
|
|
24
|
-
import {
|
|
25
|
-
readSecret
|
|
26
|
-
} from "./chunk-2ADB5DSG.js";
|
|
5
|
+
} from "./chunk-5KHJUYHQ.js";
|
|
27
6
|
import {
|
|
28
7
|
inputPolicy
|
|
29
|
-
} from "./chunk-
|
|
30
|
-
import "./chunk-HTQTIKWP.js";
|
|
31
|
-
import {
|
|
32
|
-
resolveOutput
|
|
33
|
-
} from "./chunk-F6JTOQIK.js";
|
|
34
|
-
import {
|
|
35
|
-
COUNTER_FIELDS,
|
|
36
|
-
FOLDER_PROVIDERS,
|
|
37
|
-
KINDS,
|
|
38
|
-
PROVIDERS,
|
|
39
|
-
UNKNOWN_PROVIDER,
|
|
40
|
-
canonicalReference,
|
|
41
|
-
counterValue,
|
|
42
|
-
formatLocator,
|
|
43
|
-
formatReference,
|
|
44
|
-
isFolderProvider,
|
|
45
|
-
isKind,
|
|
46
|
-
isLocator,
|
|
47
|
-
kindIn,
|
|
48
|
-
kindOf,
|
|
49
|
-
observedCounters,
|
|
50
|
-
parseLocator,
|
|
51
|
-
parseReference,
|
|
52
|
-
providerNamed,
|
|
53
|
-
providers,
|
|
54
|
-
rankingOptions,
|
|
55
|
-
useProviders
|
|
56
|
-
} from "./chunk-SY3SP7EI.js";
|
|
57
|
-
import {
|
|
58
|
-
TAG_TYPES,
|
|
59
|
-
canonicalMeetingReference,
|
|
60
|
-
formatMeetingReference,
|
|
61
|
-
normalizeTag,
|
|
62
|
-
parseMeetingReference
|
|
63
|
-
} from "./chunk-YYTWV5GU.js";
|
|
64
|
-
import "./chunk-NPGVOZVK.js";
|
|
8
|
+
} from "./chunk-P5B7IFOG.js";
|
|
65
9
|
import {
|
|
66
10
|
indent
|
|
67
|
-
} from "./chunk-
|
|
68
|
-
import "./chunk-LQ37ALDJ.js";
|
|
69
|
-
import "./chunk-Y5E2WNWB.js";
|
|
11
|
+
} from "./chunk-JLRMSNPX.js";
|
|
70
12
|
import {
|
|
71
13
|
CliError
|
|
72
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-BM445GYF.js";
|
|
73
15
|
import {
|
|
74
16
|
__name
|
|
75
17
|
} from "./chunk-ZVVMGPBJ.js";
|
|
76
18
|
|
|
77
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.530.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_f01b7e2db7d22734373a522c868220f7/node_modules/@wirecat/cli-core/dist/domain/checks.js
|
|
78
20
|
var spelled = /* @__PURE__ */ __name((check, args) => `${check.replaceAll(".", " ")}${args === void 0 ? "" : ` ${args}`}`, "spelled");
|
|
79
21
|
var bareCheck = /* @__PURE__ */ __name((check, args) => `\`${spelled(check, args)}\``, "bareCheck");
|
|
80
22
|
var checkWords = /* @__PURE__ */ __name((command, profile) => (check, args) => `\`${command} ${profile === void 0 ? "" : `${profile} `}${spelled(check, args)}\``, "checkWords");
|
|
81
23
|
|
|
82
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.530.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_f01b7e2db7d22734373a522c868220f7/node_modules/@wirecat/cli-core/dist/domain/markdown.js
|
|
83
25
|
var MARKERS = [
|
|
84
26
|
["**", "bold"],
|
|
85
27
|
["~~", "strike"],
|
|
@@ -125,7 +67,7 @@ var closing = /* @__PURE__ */ __name((input, open, marker) => {
|
|
|
125
67
|
return end;
|
|
126
68
|
}, "closing");
|
|
127
69
|
|
|
128
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
70
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.530.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_f01b7e2db7d22734373a522c868220f7/node_modules/@wirecat/cli-core/dist/domain/markdown-spans.js
|
|
129
71
|
var STYLES = [
|
|
130
72
|
["**", "bold"],
|
|
131
73
|
["__", "underline"],
|
|
@@ -285,7 +227,7 @@ var parseMarkdownSpans = /* @__PURE__ */ __name((input) => {
|
|
|
285
227
|
return validateFormattedText(result);
|
|
286
228
|
}, "parseMarkdownSpans");
|
|
287
229
|
|
|
288
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
230
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.530.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_f01b7e2db7d22734373a522c868220f7/node_modules/@wirecat/cli-core/dist/domain/polls.js
|
|
289
231
|
var countedPoll = /* @__PURE__ */ __name((poll, votes, self) => {
|
|
290
232
|
const cast = votes.filter((vote) => vote.answers.length > 0);
|
|
291
233
|
const mine = self === null ? void 0 : votes.find((vote) => vote.person.id === self);
|
|
@@ -1934,7 +1876,7 @@ var createDataURL = /* @__PURE__ */ __name(function(width, height, getPixel) {
|
|
|
1934
1876
|
var qrcode_default = qrcode;
|
|
1935
1877
|
var stringToBytes = qrcode.stringToBytes;
|
|
1936
1878
|
|
|
1937
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1879
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.530.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_f01b7e2db7d22734373a522c868220f7/node_modules/@wirecat/cli-core/dist/terminal/qr.js
|
|
1938
1880
|
var QUIET_ZONE = 4;
|
|
1939
1881
|
var BLACK_ON_WHITE = "\x1B[30;107m";
|
|
1940
1882
|
var RESET = "\x1B[0m";
|
|
@@ -1981,7 +1923,7 @@ var plainQr = /* @__PURE__ */ __name((link) => {
|
|
|
1981
1923
|
return lines.join("\n");
|
|
1982
1924
|
}, "plainQr");
|
|
1983
1925
|
|
|
1984
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1926
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.530.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_f01b7e2db7d22734373a522c868220f7/node_modules/@wirecat/cli-core/dist/terminal/login-qr.js
|
|
1985
1927
|
var MARGIN = 2;
|
|
1986
1928
|
var atTerminal = /* @__PURE__ */ __name((input) => input.isTTY === true && !inputPolicy(input).noInput, "atTerminal");
|
|
1987
1929
|
var PASTE_QR = "agents: paste the QR code above into the chat as a code block, exactly as printed; when a new one is printed, paste it and say the old one expired";
|
|
@@ -2015,58 +1957,16 @@ ${indent(drawn.text, pad + MARGIN)}`);
|
|
|
2015
1957
|
note(scan);
|
|
2016
1958
|
}, "show")
|
|
2017
1959
|
}), "loginQr");
|
|
1960
|
+
|
|
2018
1961
|
export {
|
|
2019
|
-
DETAILS as CORE_DETAILS,
|
|
2020
|
-
REASONS as CORE_REASONS,
|
|
2021
|
-
COUNTER_FIELDS,
|
|
2022
|
-
FOLDER_PROVIDERS,
|
|
2023
|
-
KINDS,
|
|
2024
|
-
ModerationRules,
|
|
2025
|
-
PASTE_QR,
|
|
2026
|
-
PROVIDERS,
|
|
2027
|
-
TAG_TYPES,
|
|
2028
|
-
UNKNOWN_PROVIDER,
|
|
2029
|
-
act,
|
|
2030
|
-
atTerminal,
|
|
2031
1962
|
bareCheck,
|
|
2032
|
-
canonicalMeetingReference,
|
|
2033
|
-
canonicalReference,
|
|
2034
1963
|
checkWords,
|
|
2035
|
-
countedPoll,
|
|
2036
|
-
counterValue,
|
|
2037
|
-
defaultRules,
|
|
2038
|
-
failureContext,
|
|
2039
|
-
formatLocator,
|
|
2040
|
-
formatMeetingReference,
|
|
2041
|
-
formatReference,
|
|
2042
|
-
isFolderProvider,
|
|
2043
|
-
isId,
|
|
2044
|
-
isKind,
|
|
2045
|
-
isLocator,
|
|
2046
|
-
judge,
|
|
2047
|
-
kindIn,
|
|
2048
|
-
kindOf,
|
|
2049
|
-
loginQr,
|
|
2050
|
-
moderationPathFor,
|
|
2051
|
-
normalizeTag,
|
|
2052
|
-
observedCounters,
|
|
2053
|
-
parseLocator,
|
|
2054
1964
|
parseMarkdown,
|
|
2055
1965
|
parseMarkdownSpans,
|
|
2056
|
-
|
|
2057
|
-
parseReference,
|
|
2058
|
-
pickChat,
|
|
2059
|
-
pickPerson,
|
|
2060
|
-
plainQr,
|
|
2061
|
-
pollLines,
|
|
2062
|
-
providerNamed,
|
|
2063
|
-
providers,
|
|
2064
|
-
rankingOptions,
|
|
2065
|
-
readSecret,
|
|
2066
|
-
renderMessage,
|
|
2067
|
-
renderMessages,
|
|
2068
|
-
resolveOutput,
|
|
1966
|
+
countedPoll,
|
|
2069
1967
|
terminalQr,
|
|
2070
|
-
|
|
2071
|
-
|
|
1968
|
+
plainQr,
|
|
1969
|
+
atTerminal,
|
|
1970
|
+
PASTE_QR,
|
|
1971
|
+
loginQr
|
|
2072
1972
|
};
|