@wirecat/mail-cli 0.1.1 → 0.3.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 +51 -0
- package/README.md +4 -3
- package/dist/bin/mail.js +2 -2
- package/dist/bundle/{all-profiles-TKMBELRZ.js → all-profiles-52LCOKSL.js} +5 -5
- package/dist/bundle/{anthropic-7LMUAEIZ.js → anthropic-HPW7PLTT.js} +3 -3
- package/dist/bundle/{app-server-JGMIJDD4.js → app-server-Y7XSPVHJ.js} +39 -39
- package/dist/bundle/{bun-XRO6XJHQ.js → bun-B7YXDIMT.js} +2 -2
- package/dist/bundle/{bun-sqlite-Z54LEHVM.js → bun-sqlite-TTTKY7H2.js} +2 -2
- package/dist/bundle/{chunk-52F5DWS5.js → chunk-37MSU5O6.js} +1 -1
- package/dist/bundle/{chunk-5NYMNSSO.js → chunk-3RDTVH3H.js} +3 -3
- package/dist/bundle/{chunk-4E7BN3TC.js → chunk-4PXWXI2U.js} +2 -2
- package/dist/bundle/{chunk-GN62YOT5.js → chunk-4UOEUEZZ.js} +4 -4
- package/dist/bundle/{chunk-TQFCPUIM.js → chunk-5LY3OS7U.js} +1 -1
- package/dist/bundle/{chunk-QLEUNU6G.js → chunk-5SSFYIFF.js} +4 -4
- package/dist/bundle/{chunk-IK5TH3O7.js → chunk-732GKOLO.js} +10 -10
- package/dist/bundle/{chunk-UH4DDRHA.js → chunk-C2THROZU.js} +42 -42
- package/dist/bundle/{chunk-OTUOZ33L.js → chunk-C6E3VFUX.js} +2 -2
- package/dist/bundle/{chunk-YPQQ5J4X.js → chunk-DKKCQMDM.js} +16 -16
- package/dist/bundle/{chunk-6MAZWSC3.js → chunk-FGNTGLWA.js} +3 -3
- package/dist/bundle/{chunk-GQQJOH7A.js → chunk-FUXSKWWJ.js} +58 -46
- package/dist/bundle/{chunk-3KEVLSNN.js → chunk-FX77WAQL.js} +46 -8
- package/dist/bundle/{chunk-VEIZZRQ5.js → chunk-GX2M3AOO.js} +12 -3
- package/dist/bundle/{chunk-CEW6KIFA.js → chunk-H2JVXO5V.js} +32 -22
- package/dist/bundle/{chunk-ZANYM66S.js → chunk-HS25KDT3.js} +1 -1
- package/dist/bundle/{chunk-KM7Q67Z3.js → chunk-I2ARI6FI.js} +1 -1
- package/dist/bundle/{chunk-TWPDVUBR.js → chunk-IXHLMSHV.js} +2 -2
- package/dist/bundle/{chunk-BTQX2ZSZ.js → chunk-JDOOPGKW.js} +2 -2
- package/dist/bundle/{chunk-GK4M2SUP.js → chunk-JHNLU42I.js} +1 -1
- package/dist/bundle/{chunk-KHTO2Q6E.js → chunk-JXYFIUVX.js} +4 -4
- package/dist/bundle/{chunk-F6D6PJ34.js → chunk-K6SIGXRS.js} +5 -5
- package/dist/bundle/{chunk-QQB7WT7R.js → chunk-KALDYMKJ.js} +3 -3
- package/dist/bundle/{chunk-NK7EB63L.js → chunk-KXVZ373I.js} +960 -496
- package/dist/bundle/{chunk-GAH7N7HO.js → chunk-LCA5KC34.js} +44 -44
- package/dist/bundle/{chunk-TVREDYX4.js → chunk-LJDOPCPW.js} +100 -91
- package/dist/bundle/{chunk-3KOA73LS.js → chunk-MHNEMDH3.js} +14 -14
- package/dist/bundle/{chunk-MS53RALV.js → chunk-MXUUQXMA.js} +5 -5
- package/dist/bundle/{chunk-YO4CUH5E.js → chunk-N5WIUNOT.js} +1 -1
- package/dist/bundle/{chunk-EOEDICIE.js → chunk-O2F54PUO.js} +1 -1
- package/dist/bundle/{chunk-2LLNPNMB.js → chunk-O3DRPTWF.js} +1 -1
- package/dist/bundle/{chunk-FZ5FXIG6.js → chunk-PL6UPJIL.js} +1 -1
- package/dist/bundle/{chunk-75CWWETH.js → chunk-PYIJCWCH.js} +11 -11
- package/dist/bundle/{chunk-GWDCKUBI.js → chunk-QTWIZKUI.js} +30 -29
- package/dist/bundle/{chunk-7SXGLT6T.js → chunk-RMYYKBFW.js} +9 -8
- package/dist/bundle/{chunk-JVMVLITS.js → chunk-RORC2FW7.js} +4 -2
- package/dist/bundle/{chunk-K4FVKPDQ.js → chunk-RVIMMCHF.js} +9 -9
- package/dist/bundle/{chunk-T6464KYA.js → chunk-RZCFEASJ.js} +205 -204
- package/dist/bundle/{chunk-Z34ICZA3.js → chunk-SRMJ6LLC.js} +5 -5
- package/dist/bundle/{chunk-TWTATDM7.js → chunk-TL7PE6JU.js} +6 -6
- package/dist/bundle/{chunk-4FEMINO2.js → chunk-TLZWUADZ.js} +5 -5
- package/dist/bundle/{chunk-3E3WA2L6.js → chunk-TNQOKGJS.js} +21 -21
- package/dist/bundle/{chunk-MNOIRJEO.js → chunk-V7NZTJKU.js} +7 -7
- package/dist/bundle/{chunk-TE5U5OAM.js → chunk-VTJDEWMB.js} +2 -2
- package/dist/bundle/{chunk-J6MSJLIW.js → chunk-X7TFD5SX.js} +1 -1
- package/dist/bundle/{chunk-FDCGTODC.js → chunk-XD3TL4BK.js} +1 -1
- package/dist/bundle/{chunk-WLFLBWNH.js → chunk-XQVGIW4R.js} +2 -2
- package/dist/bundle/{chunk-JBBZCTTF.js → chunk-Y2HGQK7A.js} +1 -1
- package/dist/bundle/{chunk-WXAXYJJ7.js → chunk-YVIX7FHL.js} +5 -5
- package/dist/bundle/{chunk-CH6RXYAX.js → chunk-ZIJJNH47.js} +1 -1
- package/dist/bundle/{command-contract-WU434ZUL.js → command-contract-3HA7CZEQ.js} +13 -13
- package/dist/bundle/{decode-YB3ZDTES.js → decode-VLI3MAXE.js} +2 -2
- package/dist/bundle/{dist-A6GKSKFC.js → dist-C7LAAMNF.js} +14 -14
- package/dist/bundle/{echarts-YNGCOYHW.js → echarts-POTU3SHN.js} +2 -2
- package/dist/bundle/{embed-LWNHIRBQ.js → embed-J2DEEEUF.js} +3 -3
- package/dist/bundle/{embedder-2LYD3U37.js → embedder-5N56V7YJ.js} +6 -6
- package/dist/bundle/{first-run-N3HJKGU7.js → first-run-XILZE4PI.js} +5 -5
- package/dist/bundle/{first-screen-4U2DMV3G.js → first-screen-43VLEDWZ.js} +14 -14
- package/dist/bundle/{instructions-GJHHFV64.js → instructions-B7AUZXPL.js} +1 -1
- package/dist/bundle/mail.js +2 -2
- package/dist/bundle/{node-GFOH6FKP.js → node-SZAO6HTA.js} +2 -2
- package/dist/bundle/{node-sqlite-NBXQXBIU.js → node-sqlite-O34FFLRV.js} +2 -2
- package/dist/bundle/{oauth-56EFO5AQ.js → oauth-YYTLIPJT.js} +4 -4
- package/dist/bundle/{open-2V7QZQJP.js → open-SWJGI6H4.js} +1 -1
- package/dist/bundle/{openai-V3SVACVL.js → openai-GYXWCQOV.js} +10 -10
- package/dist/bundle/{process-XVDX4SPD.js → process-GLVWCUMK.js} +1 -1
- package/dist/bundle/{program-JTJB26P3.js → program-HW73TGIF.js} +1725 -1467
- package/dist/bundle/{prompt-YKWAI222.js → prompt-OZLHHGCD.js} +2 -2
- package/dist/bundle/{recognize-PAR66KVM.js → recognize-RDQSGHC5.js} +1 -1
- package/dist/bundle/{remote-CE43TKXC.js → remote-BKU5P3GK.js} +4 -4
- package/dist/bundle/{rerank-M7S7P2TW.js → rerank-EQIXYHKB.js} +4 -4
- package/dist/bundle/{serve-ENPMIV6J.js → serve-S6K5HKWG.js} +6 -6
- package/dist/bundle/{server-MBEZLVKZ.js → server-4VRVHPQC.js} +31 -31
- package/dist/bundle/server-WK6DRJX2.js +63 -0
- package/dist/bundle/{sqlite-runtime-HVGDHBJJ.js → sqlite-runtime-OOE455YM.js} +2 -2
- package/dist/bundle/{state-QZSOSKBD.js → state-OLPOJ2TY.js} +3 -3
- package/dist/bundle/{store-2BUX6LVX.js → store-6AVCPLH4.js} +9 -9
- package/dist/bundle/{store-UJ7SNKXI.js → store-WFV26CWY.js} +30 -12
- package/dist/bundle/store-maintenance-command-S6235I3W.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/program.d.ts.map +1 -1
- package/dist/program.js +8 -1
- package/dist/program.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-JHNLU42I.js";
|
|
6
6
|
import {
|
|
7
7
|
answerOf,
|
|
8
8
|
messengerContext
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-TNQOKGJS.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-RZCFEASJ.js";
|
|
27
27
|
import {
|
|
28
28
|
checkedOptions,
|
|
29
29
|
range
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-N5WIUNOT.js";
|
|
31
31
|
import {
|
|
32
32
|
messagesFor,
|
|
33
33
|
systemFor,
|
|
34
34
|
validateImages
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-X7TFD5SX.js";
|
|
36
36
|
import {
|
|
37
37
|
readSecret
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-C6E3VFUX.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-FUXSKWWJ.js";
|
|
66
66
|
import {
|
|
67
67
|
levelFor
|
|
68
|
-
} from "./chunk-
|
|
68
|
+
} from "./chunk-5SSFYIFF.js";
|
|
69
69
|
import {
|
|
70
70
|
failureKey
|
|
71
|
-
} from "./chunk-
|
|
71
|
+
} from "./chunk-RMYYKBFW.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-VTJDEWMB.js";
|
|
79
79
|
import {
|
|
80
80
|
holdersOf
|
|
81
|
-
} from "./chunk-
|
|
81
|
+
} from "./chunk-I2ARI6FI.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-KXVZ373I.js";
|
|
109
109
|
import {
|
|
110
110
|
formatLocator,
|
|
111
111
|
parseLocator
|
|
112
|
-
} from "./chunk-
|
|
112
|
+
} from "./chunk-TLZWUADZ.js";
|
|
113
113
|
import {
|
|
114
114
|
queryFieldsOf
|
|
115
|
-
} from "./chunk-
|
|
115
|
+
} from "./chunk-C2THROZU.js";
|
|
116
116
|
import {
|
|
117
117
|
openCache
|
|
118
|
-
} from "./chunk-
|
|
118
|
+
} from "./chunk-K6SIGXRS.js";
|
|
119
119
|
import {
|
|
120
120
|
storePath
|
|
121
|
-
} from "./chunk-
|
|
121
|
+
} from "./chunk-PL6UPJIL.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.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/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.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/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.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/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.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/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.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/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.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/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.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/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.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/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.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/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.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/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.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/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.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/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.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/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.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/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-HPW7PLTT.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.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/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.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/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.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/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.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/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.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/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.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/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.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/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.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/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.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/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.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/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.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/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.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/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) => {
|