@wirecat/mail-cli 0.1.1 → 0.2.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 +44 -0
- package/README.md +4 -3
- package/dist/bin/mail.js +2 -2
- package/dist/bundle/{all-profiles-TKMBELRZ.js → all-profiles-7WILOT5E.js} +5 -5
- package/dist/bundle/{anthropic-7LMUAEIZ.js → anthropic-NHWLIMEZ.js} +3 -3
- package/dist/bundle/{app-server-JGMIJDD4.js → app-server-XDMYCJLV.js} +39 -39
- package/dist/bundle/{bun-XRO6XJHQ.js → bun-GTG5IYLQ.js} +2 -2
- package/dist/bundle/{bun-sqlite-Z54LEHVM.js → bun-sqlite-KGH5F33G.js} +2 -2
- package/dist/bundle/{chunk-JVMVLITS.js → chunk-2X4WYZPA.js} +4 -2
- package/dist/bundle/{chunk-GN62YOT5.js → chunk-4I3YT5KK.js} +4 -4
- package/dist/bundle/{chunk-MS53RALV.js → chunk-5FLW25US.js} +5 -5
- package/dist/bundle/{chunk-FZ5FXIG6.js → chunk-5JOKRFWE.js} +1 -1
- package/dist/bundle/{chunk-KHTO2Q6E.js → chunk-6HIW7IJL.js} +4 -4
- package/dist/bundle/{chunk-TVREDYX4.js → chunk-76IKLP2M.js} +95 -91
- package/dist/bundle/{chunk-ZANYM66S.js → chunk-77VHMI3A.js} +1 -1
- package/dist/bundle/{chunk-TQFCPUIM.js → chunk-7LKJDJNS.js} +1 -1
- package/dist/bundle/{chunk-WLFLBWNH.js → chunk-7QEE5I7H.js} +2 -2
- package/dist/bundle/{chunk-6MAZWSC3.js → chunk-7REG25RM.js} +3 -3
- package/dist/bundle/{chunk-TWTATDM7.js → chunk-AJIT2T3F.js} +6 -6
- package/dist/bundle/{chunk-JBBZCTTF.js → chunk-AROBJF5P.js} +1 -1
- package/dist/bundle/{chunk-NK7EB63L.js → chunk-BKZEYTLU.js} +849 -440
- package/dist/bundle/{chunk-4FEMINO2.js → chunk-BPF7IXJT.js} +5 -5
- package/dist/bundle/{chunk-BTQX2ZSZ.js → chunk-BUOSCMCD.js} +2 -2
- package/dist/bundle/{chunk-5NYMNSSO.js → chunk-CT7NG7BI.js} +3 -3
- package/dist/bundle/{chunk-TWPDVUBR.js → chunk-D7UZXUSB.js} +2 -2
- package/dist/bundle/{chunk-OTUOZ33L.js → chunk-DDMJ3RVO.js} +2 -2
- package/dist/bundle/{chunk-3KEVLSNN.js → chunk-EKE3R36Y.js} +46 -8
- package/dist/bundle/{chunk-YO4CUH5E.js → chunk-ETPT7TPW.js} +1 -1
- package/dist/bundle/{chunk-3KOA73LS.js → chunk-GPAAQ6LY.js} +14 -14
- package/dist/bundle/{chunk-GQQJOH7A.js → chunk-GQKYSGIA.js} +58 -46
- package/dist/bundle/{chunk-QLEUNU6G.js → chunk-H5BW7454.js} +4 -4
- package/dist/bundle/{chunk-KM7Q67Z3.js → chunk-H66ZMBDD.js} +1 -1
- package/dist/bundle/{chunk-VEIZZRQ5.js → chunk-H7NUGJPV.js} +12 -3
- package/dist/bundle/{chunk-2LLNPNMB.js → chunk-H7XOHNRY.js} +1 -1
- package/dist/bundle/{chunk-F6D6PJ34.js → chunk-HJRUFT5Y.js} +5 -5
- package/dist/bundle/{chunk-52F5DWS5.js → chunk-MABCR67K.js} +1 -1
- package/dist/bundle/{chunk-IK5TH3O7.js → chunk-MDVXIPA3.js} +10 -10
- package/dist/bundle/{chunk-YPQQ5J4X.js → chunk-QJHCKFFC.js} +16 -16
- package/dist/bundle/{chunk-Z34ICZA3.js → chunk-QLYHLW54.js} +5 -5
- package/dist/bundle/{chunk-7SXGLT6T.js → chunk-QUGFBY7O.js} +9 -8
- package/dist/bundle/{chunk-CEW6KIFA.js → chunk-QUSZWBZF.js} +21 -21
- package/dist/bundle/{chunk-FDCGTODC.js → chunk-R5JD4GMA.js} +1 -1
- package/dist/bundle/{chunk-K4FVKPDQ.js → chunk-S2GSU4MT.js} +9 -9
- package/dist/bundle/{chunk-T6464KYA.js → chunk-STC45HZX.js} +204 -203
- package/dist/bundle/{chunk-75CWWETH.js → chunk-SVNTRF5O.js} +11 -11
- package/dist/bundle/{chunk-GWDCKUBI.js → chunk-THVLMTH7.js} +30 -29
- package/dist/bundle/{chunk-4E7BN3TC.js → chunk-TMVIQJCG.js} +2 -2
- package/dist/bundle/{chunk-EOEDICIE.js → chunk-UZR3IKS7.js} +1 -1
- package/dist/bundle/{chunk-CH6RXYAX.js → chunk-VBLFQJY3.js} +1 -1
- package/dist/bundle/{chunk-GAH7N7HO.js → chunk-VRQRBVKT.js} +44 -44
- package/dist/bundle/{chunk-GK4M2SUP.js → chunk-VWO3XXSF.js} +1 -1
- package/dist/bundle/{chunk-QQB7WT7R.js → chunk-WJ3LUWRN.js} +3 -3
- package/dist/bundle/{chunk-3E3WA2L6.js → chunk-Y5WA7AOA.js} +21 -21
- package/dist/bundle/{chunk-TE5U5OAM.js → chunk-Y6KUKIQZ.js} +2 -2
- package/dist/bundle/{chunk-J6MSJLIW.js → chunk-YQAUH3PN.js} +1 -1
- package/dist/bundle/{chunk-MNOIRJEO.js → chunk-Z6F7EXT2.js} +7 -7
- package/dist/bundle/{chunk-WXAXYJJ7.js → chunk-ZKH5CHGI.js} +5 -5
- package/dist/bundle/{chunk-UH4DDRHA.js → chunk-ZNYJG4AY.js} +42 -42
- package/dist/bundle/{command-contract-WU434ZUL.js → command-contract-Y42ULKE5.js} +13 -13
- package/dist/bundle/{decode-YB3ZDTES.js → decode-L4X542L3.js} +2 -2
- package/dist/bundle/{dist-A6GKSKFC.js → dist-WKIRHOLK.js} +14 -14
- package/dist/bundle/{echarts-YNGCOYHW.js → echarts-G6QLXR4X.js} +2 -2
- package/dist/bundle/{embed-LWNHIRBQ.js → embed-E33ZBHQR.js} +3 -3
- package/dist/bundle/{embedder-2LYD3U37.js → embedder-EMBCIVGF.js} +6 -6
- package/dist/bundle/{first-run-N3HJKGU7.js → first-run-WF2HF5FI.js} +5 -5
- package/dist/bundle/{first-screen-4U2DMV3G.js → first-screen-DZFOUUZC.js} +14 -14
- package/dist/bundle/{instructions-GJHHFV64.js → instructions-DUH7265J.js} +1 -1
- package/dist/bundle/mail.js +2 -2
- package/dist/bundle/{node-GFOH6FKP.js → node-73PKCCE7.js} +2 -2
- package/dist/bundle/{node-sqlite-NBXQXBIU.js → node-sqlite-FDD5N6GC.js} +2 -2
- package/dist/bundle/{oauth-56EFO5AQ.js → oauth-ND3K2F7B.js} +4 -4
- package/dist/bundle/{open-2V7QZQJP.js → open-FZYY6TKE.js} +1 -1
- package/dist/bundle/{openai-V3SVACVL.js → openai-BXOF6XIM.js} +10 -10
- package/dist/bundle/{process-XVDX4SPD.js → process-TXIK4VJP.js} +1 -1
- package/dist/bundle/{program-JTJB26P3.js → program-2SUR4WOS.js} +1699 -1458
- package/dist/bundle/{prompt-YKWAI222.js → prompt-I5GCP73M.js} +2 -2
- package/dist/bundle/{recognize-PAR66KVM.js → recognize-ILYEKXVB.js} +1 -1
- package/dist/bundle/{remote-CE43TKXC.js → remote-SSPZEAJ7.js} +4 -4
- package/dist/bundle/{rerank-M7S7P2TW.js → rerank-NAO5RMGB.js} +4 -4
- package/dist/bundle/{serve-ENPMIV6J.js → serve-UDXIEQKC.js} +6 -6
- package/dist/bundle/{server-MBEZLVKZ.js → server-KTPELKAN.js} +31 -31
- package/dist/bundle/server-UZFSEKNJ.js +63 -0
- package/dist/bundle/{sqlite-runtime-HVGDHBJJ.js → sqlite-runtime-AONFLND6.js} +2 -2
- package/dist/bundle/{state-QZSOSKBD.js → state-I4PLX3UB.js} +3 -3
- package/dist/bundle/{store-UJ7SNKXI.js → store-OHQH3MGN.js} +30 -12
- package/dist/bundle/{store-2BUX6LVX.js → store-ZPPRXGPY.js} +9 -9
- package/dist/bundle/store-maintenance-command-QOYXEBT6.js +52 -0
- package/dist/commands/account.d.ts.map +1 -1
- package/dist/commands/account.js +6 -5
- package/dist/commands/account.js.map +1 -1
- package/dist/commands/context.d.ts +19 -8
- package/dist/commands/context.d.ts.map +1 -1
- package/dist/commands/context.js +14 -10
- package/dist/commands/context.js.map +1 -1
- package/dist/commands/folders.js +4 -4
- package/dist/commands/folders.js.map +1 -1
- package/dist/commands/login.d.ts +2 -2
- package/dist/commands/login.d.ts.map +1 -1
- package/dist/commands/login.js +3 -5
- package/dist/commands/login.js.map +1 -1
- package/dist/commands/mailbox.d.ts +2 -1
- package/dist/commands/mailbox.d.ts.map +1 -1
- package/dist/commands/mailbox.js.map +1 -1
- package/dist/commands/session-start.d.ts +3 -0
- package/dist/commands/session-start.d.ts.map +1 -0
- package/dist/commands/session-start.js +117 -0
- package/dist/commands/session-start.js.map +1 -0
- package/dist/commands/session.d.ts.map +1 -1
- package/dist/commands/session.js +9 -117
- package/dist/commands/session.js.map +1 -1
- package/dist/commands/status.d.ts.map +1 -1
- package/dist/commands/status.js +8 -20
- package/dist/commands/status.js.map +1 -1
- package/dist/commands/sync.d.ts.map +1 -1
- package/dist/commands/sync.js +49 -26
- package/dist/commands/sync.js.map +1 -1
- package/dist/config.d.ts +2 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +4 -0
- package/dist/config.js.map +1 -1
- package/dist/discovery.d.ts +4 -15
- package/dist/discovery.d.ts.map +1 -1
- package/dist/discovery.js +19 -92
- package/dist/discovery.js.map +1 -1
- package/dist/mail/backend.d.ts +36 -0
- package/dist/mail/backend.d.ts.map +1 -0
- package/dist/mail/backend.js +2 -0
- package/dist/mail/backend.js.map +1 -0
- package/dist/mail/imap/account.d.ts +5 -0
- package/dist/mail/imap/account.d.ts.map +1 -0
- package/dist/mail/imap/account.js +41 -0
- package/dist/mail/imap/account.js.map +1 -0
- package/dist/mail/imap/connection.d.ts +62 -0
- package/dist/mail/imap/connection.d.ts.map +1 -0
- package/dist/mail/imap/connection.js +188 -0
- package/dist/mail/imap/connection.js.map +1 -0
- package/dist/mail/{imap-errors.d.ts → imap/errors.d.ts} +1 -1
- package/dist/mail/imap/errors.d.ts.map +1 -0
- package/dist/mail/{imap-errors.js → imap/errors.js} +1 -1
- package/dist/mail/imap/errors.js.map +1 -0
- package/dist/mail/imap/index.d.ts +7 -0
- package/dist/mail/imap/index.d.ts.map +1 -0
- package/dist/mail/imap/index.js +11 -0
- package/dist/mail/imap/index.js.map +1 -0
- package/dist/mail/{imap-messages.d.ts → imap/messages.d.ts} +9 -9
- package/dist/mail/imap/messages.d.ts.map +1 -0
- package/dist/mail/imap/messages.js +66 -0
- package/dist/mail/imap/messages.js.map +1 -0
- package/dist/mail/imap/read.d.ts +7 -0
- package/dist/mail/imap/read.d.ts.map +1 -0
- package/dist/mail/imap/read.js +164 -0
- package/dist/mail/imap/read.js.map +1 -0
- package/dist/mail/rethread.d.ts +15 -0
- package/dist/mail/rethread.d.ts.map +1 -0
- package/dist/mail/rethread.js +52 -0
- package/dist/mail/rethread.js.map +1 -0
- package/dist/profile.d.ts +2 -1
- package/dist/profile.d.ts.map +1 -1
- package/dist/profile.js +1 -0
- package/dist/profile.js.map +1 -1
- package/dist/providers.d.ts +126 -26
- package/dist/providers.d.ts.map +1 -1
- package/dist/providers.js +141 -72
- package/dist/providers.js.map +1 -1
- package/dist/secret.d.ts +2 -1
- package/dist/secret.d.ts.map +1 -1
- package/dist/secret.js +1 -0
- package/dist/secret.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +3 -2
- package/skills/mail-cli/SKILL.md +8 -0
- package/dist/bundle/server-JRTHUCVY.js +0 -63
- package/dist/bundle/store-maintenance-command-I7V5C44K.js +0 -52
- package/dist/mail/imap-errors.d.ts.map +0 -1
- package/dist/mail/imap-errors.js.map +0 -1
- package/dist/mail/imap-messages.d.ts.map +0 -1
- package/dist/mail/imap-messages.js +0 -66
- package/dist/mail/imap-messages.js.map +0 -1
- package/dist/mail/imap.d.ts +0 -67
- package/dist/mail/imap.d.ts.map +0 -1
- package/dist/mail/imap.js +0 -348
- package/dist/mail/imap.js.map +0 -1
|
@@ -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-VWO3XXSF.js";
|
|
6
6
|
import {
|
|
7
7
|
answerOf,
|
|
8
8
|
messengerContext
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-Y5WA7AOA.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-STC45HZX.js";
|
|
27
27
|
import {
|
|
28
28
|
checkedOptions,
|
|
29
29
|
range
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-ETPT7TPW.js";
|
|
31
31
|
import {
|
|
32
32
|
messagesFor,
|
|
33
33
|
systemFor,
|
|
34
34
|
validateImages
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-YQAUH3PN.js";
|
|
36
36
|
import {
|
|
37
37
|
readSecret
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-DDMJ3RVO.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-GQKYSGIA.js";
|
|
66
66
|
import {
|
|
67
67
|
levelFor
|
|
68
|
-
} from "./chunk-
|
|
68
|
+
} from "./chunk-H5BW7454.js";
|
|
69
69
|
import {
|
|
70
70
|
failureKey
|
|
71
|
-
} from "./chunk-
|
|
71
|
+
} from "./chunk-QUGFBY7O.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-Y6KUKIQZ.js";
|
|
79
79
|
import {
|
|
80
80
|
holdersOf
|
|
81
|
-
} from "./chunk-
|
|
81
|
+
} from "./chunk-H66ZMBDD.js";
|
|
82
82
|
import {
|
|
83
83
|
MIGRATIONS,
|
|
84
84
|
drainNoteIndex,
|
|
@@ -105,20 +105,20 @@ import {
|
|
|
105
105
|
storeClients,
|
|
106
106
|
storeContents,
|
|
107
107
|
vectorIndexCounts
|
|
108
|
-
} from "./chunk-
|
|
108
|
+
} from "./chunk-BKZEYTLU.js";
|
|
109
109
|
import {
|
|
110
110
|
formatLocator,
|
|
111
111
|
parseLocator
|
|
112
|
-
} from "./chunk-
|
|
112
|
+
} from "./chunk-BPF7IXJT.js";
|
|
113
113
|
import {
|
|
114
114
|
queryFieldsOf
|
|
115
|
-
} from "./chunk-
|
|
115
|
+
} from "./chunk-ZNYJG4AY.js";
|
|
116
116
|
import {
|
|
117
117
|
openCache
|
|
118
|
-
} from "./chunk-
|
|
118
|
+
} from "./chunk-HJRUFT5Y.js";
|
|
119
119
|
import {
|
|
120
120
|
storePath
|
|
121
|
-
} from "./chunk-
|
|
121
|
+
} from "./chunk-5JOKRFWE.js";
|
|
122
122
|
import {
|
|
123
123
|
Credentials,
|
|
124
124
|
pathsAreOverridden,
|
|
@@ -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.516.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_25c347a01b8fd53eda94896ae0eba94d/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.516.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_25c347a01b8fd53eda94896ae0eba94d/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.516.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_25c347a01b8fd53eda94896ae0eba94d/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.516.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_25c347a01b8fd53eda94896ae0eba94d/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.516.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_25c347a01b8fd53eda94896ae0eba94d/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.516.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_25c347a01b8fd53eda94896ae0eba94d/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.516.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_25c347a01b8fd53eda94896ae0eba94d/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.516.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_25c347a01b8fd53eda94896ae0eba94d/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.516.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_25c347a01b8fd53eda94896ae0eba94d/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.516.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_25c347a01b8fd53eda94896ae0eba94d/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.516.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_25c347a01b8fd53eda94896ae0eba94d/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.516.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_25c347a01b8fd53eda94896ae0eba94d/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;
|
|
@@ -6576,12 +6576,12 @@ var embeddingKeys = /* @__PURE__ */ __name((app, env = process.env, keyring) =>
|
|
|
6576
6576
|
const shared = ["openai", "anthropic"].includes(provider) ? env[`${provider.toUpperCase()}_API_KEY`]?.trim() : void 0;
|
|
6577
6577
|
return shared ? { key: shared, source: "env" } : void 0;
|
|
6578
6578
|
}, "read"),
|
|
6579
|
-
write: /* @__PURE__ */ __name((provider, key) => credentials(provider).write(account(provider), key), "write"),
|
|
6579
|
+
write: /* @__PURE__ */ __name((provider, key) => credentials(provider).write(account(provider), key, { signIn: true }), "write"),
|
|
6580
6580
|
remove: /* @__PURE__ */ __name((provider) => credentials(provider).remove(account(provider)), "remove")
|
|
6581
6581
|
};
|
|
6582
6582
|
}, "embeddingKeys");
|
|
6583
6583
|
|
|
6584
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6584
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.516.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_25c347a01b8fd53eda94896ae0eba94d/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.516.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_25c347a01b8fd53eda94896ae0eba94d/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-NHWLIMEZ.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.516.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_25c347a01b8fd53eda94896ae0eba94d/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.516.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_25c347a01b8fd53eda94896ae0eba94d/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.516.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_25c347a01b8fd53eda94896ae0eba94d/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.516.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_25c347a01b8fd53eda94896ae0eba94d/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.516.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_25c347a01b8fd53eda94896ae0eba94d/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.516.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_25c347a01b8fd53eda94896ae0eba94d/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.516.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_25c347a01b8fd53eda94896ae0eba94d/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.516.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_25c347a01b8fd53eda94896ae0eba94d/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.516.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_25c347a01b8fd53eda94896ae0eba94d/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.516.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_25c347a01b8fd53eda94896ae0eba94d/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.516.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_25c347a01b8fd53eda94896ae0eba94d/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.516.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_25c347a01b8fd53eda94896ae0eba94d/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) => {
|
|
@@ -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.516.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_25c347a01b8fd53eda94896ae0eba94d/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);
|
|
@@ -10,10 +10,10 @@ import {
|
|
|
10
10
|
__name
|
|
11
11
|
} from "./chunk-ZVVMGPBJ.js";
|
|
12
12
|
|
|
13
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
13
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.516.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_25c347a01b8fd53eda94896ae0eba94d/node_modules/@wirecat/cli-core/dist/speech/recognize.js
|
|
14
14
|
import { createRequire } from "node:module";
|
|
15
15
|
|
|
16
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.516.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_25c347a01b8fd53eda94896ae0eba94d/node_modules/@wirecat/cli-core/dist/speech/ogg-limit.js
|
|
17
17
|
var invalid = /* @__PURE__ */ __name(() => new CliError("validation_error", "local transcription needs a complete mono or stereo Ogg Opus recording"), "invalid");
|
|
18
18
|
var checkOggDuration = /* @__PURE__ */ __name((bytes) => {
|
|
19
19
|
const view = new DataView(bytes.buffer, bytes.byteOffset, bytes.byteLength);
|
|
@@ -70,7 +70,7 @@ var checkOggDuration = /* @__PURE__ */ __name((bytes) => {
|
|
|
70
70
|
throw invalid();
|
|
71
71
|
}, "checkOggDuration");
|
|
72
72
|
|
|
73
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
73
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.516.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_25c347a01b8fd53eda94896ae0eba94d/node_modules/@wirecat/cli-core/dist/speech/recognize.js
|
|
74
74
|
var SAMPLE_RATE = 16e3;
|
|
75
75
|
var LEAD = SAMPLE_RATE / 2;
|
|
76
76
|
var toModelRate = /* @__PURE__ */ __name((samples, rate) => {
|
|
@@ -7,12 +7,12 @@ import {
|
|
|
7
7
|
refuseLacking,
|
|
8
8
|
servicesFor,
|
|
9
9
|
throughWrapper
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-STC45HZX.js";
|
|
11
11
|
import {
|
|
12
12
|
foldName,
|
|
13
13
|
isId,
|
|
14
14
|
pickPerson
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-ZKH5CHGI.js";
|
|
16
16
|
import {
|
|
17
17
|
LOG_ATTRIBUTES,
|
|
18
18
|
MESSENGER_CHANGE_REFUSAL,
|
|
@@ -31,7 +31,7 @@ import {
|
|
|
31
31
|
recalledAccount,
|
|
32
32
|
rememberAccount,
|
|
33
33
|
rootOf2 as rootOf
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-GQKYSGIA.js";
|
|
35
35
|
import {
|
|
36
36
|
AUTHORITY_KEY,
|
|
37
37
|
CEILING_KEY,
|
|
@@ -42,17 +42,17 @@ import {
|
|
|
42
42
|
levelFor,
|
|
43
43
|
readKeysForCommand,
|
|
44
44
|
skipFlagFor
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-H5BW7454.js";
|
|
46
46
|
import {
|
|
47
47
|
isCliFailure,
|
|
48
48
|
providerErrorKey
|
|
49
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-QUGFBY7O.js";
|
|
50
50
|
import {
|
|
51
51
|
servingProfiles
|
|
52
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-Y6KUKIQZ.js";
|
|
53
53
|
import {
|
|
54
54
|
openStore
|
|
55
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-BKZEYTLU.js";
|
|
56
56
|
import {
|
|
57
57
|
logRecordOf,
|
|
58
58
|
realSleep,
|
|
@@ -66,10 +66,10 @@ import {
|
|
|
66
66
|
__name
|
|
67
67
|
} from "./chunk-ZVVMGPBJ.js";
|
|
68
68
|
|
|
69
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
69
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.516.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_25c347a01b8fd53eda94896ae0eba94d/node_modules/@wirecat/cli-core/dist/sends/guard.js
|
|
70
70
|
import { randomUUID } from "node:crypto";
|
|
71
71
|
|
|
72
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
72
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.516.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_25c347a01b8fd53eda94896ae0eba94d/node_modules/@wirecat/cli-core/dist/sends/flood.js
|
|
73
73
|
import { mkdirSync, readFileSync, renameSync, writeFileSync } from "node:fs";
|
|
74
74
|
import { dirname, join } from "node:path";
|
|
75
75
|
var MOST_DEADLINES = 50;
|
|
@@ -153,11 +153,11 @@ var FloodMemory = class {
|
|
|
153
153
|
}
|
|
154
154
|
};
|
|
155
155
|
|
|
156
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
156
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.516.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_25c347a01b8fd53eda94896ae0eba94d/node_modules/@wirecat/cli-core/dist/sends/journal.js
|
|
157
157
|
import { appendFileSync, mkdirSync as mkdirSync3, readFileSync as readFileSync2 } from "node:fs";
|
|
158
158
|
import { dirname as dirname3, join as join2 } from "node:path";
|
|
159
159
|
|
|
160
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
160
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.516.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_25c347a01b8fd53eda94896ae0eba94d/node_modules/@wirecat/cli-core/dist/sends/file-lock.js
|
|
161
161
|
import { closeSync, mkdirSync as mkdirSync2, openSync, statSync, unlinkSync } from "node:fs";
|
|
162
162
|
import { dirname as dirname2 } from "node:path";
|
|
163
163
|
var LOCK_WAIT_MS = 5e3;
|
|
@@ -224,7 +224,7 @@ var lockTime = /* @__PURE__ */ __name((lock) => {
|
|
|
224
224
|
}
|
|
225
225
|
}, "lockTime");
|
|
226
226
|
|
|
227
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
227
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.516.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_25c347a01b8fd53eda94896ae0eba94d/node_modules/@wirecat/cli-core/dist/sends/journal.js
|
|
228
228
|
var sendsPathFor = /* @__PURE__ */ __name((app, profile, env = process.env) => join2(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "sends", `${profile}.jsonl`), "sendsPathFor");
|
|
229
229
|
var SendJournal = class {
|
|
230
230
|
static {
|
|
@@ -301,7 +301,7 @@ var withSendId = /* @__PURE__ */ __name((entry) => {
|
|
|
301
301
|
return cid === void 0 || rest.sendId !== void 0 ? rest : { ...rest, sendId: String(cid) };
|
|
302
302
|
}, "withSendId");
|
|
303
303
|
|
|
304
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
304
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.516.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_25c347a01b8fd53eda94896ae0eba94d/node_modules/@wirecat/cli-core/dist/sends/recipients.js
|
|
305
305
|
import { existsSync, readFileSync as readFileSync3, rmSync } from "node:fs";
|
|
306
306
|
import { join as join3 } from "node:path";
|
|
307
307
|
var recipientsPathFor = /* @__PURE__ */ __name((app, profile, env = process.env) => join3(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "profiles", `${profile}.recipients.json`), "recipientsPathFor");
|
|
@@ -413,7 +413,7 @@ var RecipientList = class {
|
|
|
413
413
|
}
|
|
414
414
|
};
|
|
415
415
|
|
|
416
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
416
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.516.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_25c347a01b8fd53eda94896ae0eba94d/node_modules/@wirecat/cli-core/dist/sends/guard.js
|
|
417
417
|
var HOUR_MS = 60 * 60 * 1e3;
|
|
418
418
|
var READS_UNDER_HOLD = /* @__PURE__ */ new Set([
|
|
419
419
|
"attachments.extract",
|
|
@@ -606,7 +606,7 @@ var guardFor = /* @__PURE__ */ __name((app, settings, warn, env = process.env, a
|
|
|
606
606
|
}), "guardFor");
|
|
607
607
|
var journalFailure = /* @__PURE__ */ __name((error) => error?.code ?? (error instanceof Error ? error.name : "error"), "journalFailure");
|
|
608
608
|
|
|
609
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
609
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.516.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_25c347a01b8fd53eda94896ae0eba94d/node_modules/@wirecat/cli-core/dist/cli/messenger/ask.js
|
|
610
610
|
import { openSync as openSync2 } from "node:fs";
|
|
611
611
|
import { createInterface } from "node:readline";
|
|
612
612
|
import { ReadStream } from "node:tty";
|
|
@@ -661,7 +661,7 @@ var terminalAsker = /* @__PURE__ */ __name((command) => async (key, request) =>
|
|
|
661
661
|
throw new CliError("cancelled", `${key}: not done \u2014 the answer was no`);
|
|
662
662
|
}, "terminalAsker");
|
|
663
663
|
|
|
664
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
664
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.516.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_25c347a01b8fd53eda94896ae0eba94d/node_modules/@wirecat/cli-core/dist/sends/pace.js
|
|
665
665
|
import { readFileSync as readFileSync4, renameSync as renameSync2, writeFileSync as writeFileSync2 } from "node:fs";
|
|
666
666
|
import { join as join4 } from "node:path";
|
|
667
667
|
var DEFAULT_PACE = { perMinute: 60, burst: 20 };
|
|
@@ -720,7 +720,7 @@ var Pacer = class {
|
|
|
720
720
|
}
|
|
721
721
|
};
|
|
722
722
|
|
|
723
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
723
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.516.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_25c347a01b8fd53eda94896ae0eba94d/node_modules/@wirecat/cli-core/dist/cli/permission-keys.js
|
|
724
724
|
var HOUSEKEEPING = /* @__PURE__ */ new Set([
|
|
725
725
|
"help",
|
|
726
726
|
"guide",
|
|
@@ -799,7 +799,7 @@ var refuseUnknownPermissionKeys = /* @__PURE__ */ __name((command, settings, too
|
|
|
799
799
|
throw new CliError("validation_error", `--permission ${key} names no command`, { permission: key });
|
|
800
800
|
}, "refuseUnknownPermissionKeys");
|
|
801
801
|
|
|
802
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
802
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.516.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_25c347a01b8fd53eda94896ae0eba94d/node_modules/@wirecat/cli-core/dist/cli/messenger/flooded.js
|
|
803
803
|
var LONG_LIVED = /* @__PURE__ */ new Set(["self", "newSendId", "close", "formatMarkdown", "formatHtml", "storedChats"]);
|
|
804
804
|
var LISTENING = /* @__PURE__ */ new Set(["watch", "feed", "listen", "listenHistory"]);
|
|
805
805
|
var BLOCKING = /* @__PURE__ */ new Set(["frozen", "limited", "banned"]);
|
|
@@ -918,7 +918,7 @@ var flooded = /* @__PURE__ */ __name((messenger, memory, { name, warn, pacer })
|
|
|
918
918
|
});
|
|
919
919
|
}, "flooded");
|
|
920
920
|
|
|
921
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
921
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.516.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_25c347a01b8fd53eda94896ae0eba94d/node_modules/@wirecat/cli-core/dist/cli/messenger/observed.js
|
|
922
922
|
var observed = /* @__PURE__ */ __name((messenger, events) => {
|
|
923
923
|
const timed = /* @__PURE__ */ __name(async (operation, named, work, after) => {
|
|
924
924
|
const write = currentOperation();
|
|
@@ -1017,7 +1017,7 @@ var byPart = /* @__PURE__ */ __name((batch, counts) => {
|
|
|
1017
1017
|
counts[part] = (counts[part] ?? 0) + items.length;
|
|
1018
1018
|
}, "byPart");
|
|
1019
1019
|
|
|
1020
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1020
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.516.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_25c347a01b8fd53eda94896ae0eba94d/node_modules/@wirecat/cli-core/dist/cli/messenger/stored.js
|
|
1021
1021
|
var REKEY_PACING = { lockMs: 50, pauseMs: 25 };
|
|
1022
1022
|
var stored = /* @__PURE__ */ __name((messenger, { account, store, warn, events, pending, announcing, deletedWithoutChat, profile, rekeyed, rekeyPacing = REKEY_PACING, closing, namesFromStore, recipientIds, countsUnread = false }) => {
|
|
1023
1023
|
let warned = false;
|
|
@@ -1509,7 +1509,7 @@ var keep = /* @__PURE__ */ __name(async (store, account, event, seenAt, among, c
|
|
|
1509
1509
|
}
|
|
1510
1510
|
}, "keep");
|
|
1511
1511
|
|
|
1512
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1512
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.516.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_25c347a01b8fd53eda94896ae0eba94d/node_modules/@wirecat/cli-core/dist/cli/messenger/context.js
|
|
1513
1513
|
var lazyStore = /* @__PURE__ */ __name((env, command, version) => {
|
|
1514
1514
|
let opened;
|
|
1515
1515
|
return {
|
|
@@ -2,7 +2,7 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
alive
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-H66ZMBDD.js";
|
|
6
6
|
import {
|
|
7
7
|
resolvePaths,
|
|
8
8
|
writeSecurely
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
__name
|
|
12
12
|
} from "./chunk-ZVVMGPBJ.js";
|
|
13
13
|
|
|
14
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
14
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.516.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_25c347a01b8fd53eda94896ae0eba94d/node_modules/@wirecat/cli-core/dist/background/lock.js
|
|
15
15
|
import { existsSync, linkSync, mkdirSync, readdirSync, readFileSync, rmSync, writeFileSync } from "node:fs";
|
|
16
16
|
import { dirname, join } from "node:path";
|
|
17
17
|
var lockPath = /* @__PURE__ */ __name((app, profile, env) => join(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "serve", `${profile}.lock`), "lockPath");
|
|
@@ -7,7 +7,7 @@ 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.516.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_25c347a01b8fd53eda94896ae0eba94d/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)
|
|
@@ -7,7 +7,7 @@ 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.516.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_25c347a01b8fd53eda94896ae0eba94d/node_modules/@wirecat/cli-core/dist/search/languages.js
|
|
11
11
|
var LANGUAGES = [
|
|
12
12
|
{ name: "russian", code: "ru", label: "Russian", script: "cyrillic", dictionary: "dictionary-ru" },
|
|
13
13
|
{ name: "english", code: "en", label: "English", script: "latin", dictionary: "dictionary-en" },
|
|
@@ -15,12 +15,12 @@ var LANGUAGES = [
|
|
|
15
15
|
];
|
|
16
16
|
var languagesOf = /* @__PURE__ */ __name((script) => LANGUAGES.filter((one) => one.script === script).map(({ name }) => name), "languagesOf");
|
|
17
17
|
|
|
18
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.516.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_25c347a01b8fd53eda94896ae0eba94d/node_modules/@wirecat/cli-core/dist/store/normalize.js
|
|
19
19
|
var NORMALIZER_VERSION = 1;
|
|
20
20
|
var fold = /* @__PURE__ */ __name((text) => text.normalize("NFKD").replace(new RegExp("\\p{M}+", "gu"), "").normalize("NFC").toLowerCase(), "fold");
|
|
21
21
|
var normalize = /* @__PURE__ */ __name((text) => fold(text).replace(new RegExp("\\p{Cc}", "gu"), " ").replace(/\s+/gu, " ").trim(), "normalize");
|
|
22
22
|
|
|
23
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.516.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_25c347a01b8fd53eda94896ae0eba94d/node_modules/@wirecat/cli-core/dist/search/snowball/base-stemmer.js
|
|
24
24
|
var BaseStemmer = class {
|
|
25
25
|
static {
|
|
26
26
|
__name(this, "BaseStemmer");
|
|
@@ -395,7 +395,7 @@ var BaseStemmer = class {
|
|
|
395
395
|
}
|
|
396
396
|
};
|
|
397
397
|
|
|
398
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
398
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.516.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_25c347a01b8fd53eda94896ae0eba94d/node_modules/@wirecat/cli-core/dist/search/snowball/english-stemmer.js
|
|
399
399
|
var a_0 = [
|
|
400
400
|
["arsen", -1],
|
|
401
401
|
["commun", -1],
|
|
@@ -1096,7 +1096,7 @@ var english_stemmer_default = class extends BaseStemmer {
|
|
|
1096
1096
|
stemWord = this.stem;
|
|
1097
1097
|
};
|
|
1098
1098
|
|
|
1099
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1099
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.516.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_25c347a01b8fd53eda94896ae0eba94d/node_modules/@wirecat/cli-core/dist/search/snowball/russian-stemmer.js
|
|
1100
1100
|
var a_02 = [
|
|
1101
1101
|
["\u0432", 1],
|
|
1102
1102
|
["\u0438\u0432", 2, 1],
|
|
@@ -1519,7 +1519,7 @@ var russian_stemmer_default = class extends BaseStemmer {
|
|
|
1519
1519
|
stemWord = this.stem;
|
|
1520
1520
|
};
|
|
1521
1521
|
|
|
1522
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1522
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.516.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_25c347a01b8fd53eda94896ae0eba94d/node_modules/@wirecat/cli-core/dist/search/snowball/spanish-stemmer.js
|
|
1523
1523
|
var a_03 = [
|
|
1524
1524
|
["", 6],
|
|
1525
1525
|
["\xE1", 1, 1],
|
|
@@ -2195,7 +2195,7 @@ var spanish_stemmer_default = class extends BaseStemmer {
|
|
|
2195
2195
|
stemWord = this.stem;
|
|
2196
2196
|
};
|
|
2197
2197
|
|
|
2198
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2198
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.516.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_25c347a01b8fd53eda94896ae0eba94d/node_modules/@wirecat/cli-core/dist/search/stem.js
|
|
2199
2199
|
var SNOWBALL_VERSION = "3.1.1";
|
|
2200
2200
|
var CYRILLIC_STEMMERS = [...languagesOf("cyrillic"), "none"];
|
|
2201
2201
|
var LATIN_STEMMERS = [...languagesOf("latin"), "none"];
|