@wirecat/mail-cli 0.30.0 → 0.32.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 +27 -0
- package/dist/bin/mail.js +2 -2
- package/dist/bundle/{all-profiles-523GLORJ.js → all-profiles-OTCWJSJS.js} +19 -29
- package/dist/bundle/{anthropic-KKYGROQR.js → anthropic-GUXHDK32.js} +2 -2
- package/dist/bundle/{app-server-RJR7U5NT.js → app-server-GX7DOE4O.js} +45 -60
- package/dist/bundle/{bun-EBQHHLKR.js → bun-V5QLYBZU.js} +2 -2
- package/dist/bundle/{bun-sqlite-LTG2RRSL.js → bun-sqlite-AXD5CCO3.js} +3 -3
- package/dist/bundle/{chunk-L2D5QYI3.js → chunk-2IYAZRTC.js} +2 -2
- package/dist/bundle/{chunk-ONA3UI3R.js → chunk-2UMEZY6D.js} +2 -2
- package/dist/bundle/{chunk-XGEPAJBY.js → chunk-3URYKAJP.js} +1 -1
- package/dist/bundle/{chunk-SPWKGRTO.js → chunk-4YNUQGDP.js} +1 -1
- package/dist/bundle/{chunk-MVDP7VL6.js → chunk-6SJ7HHAE.js} +1 -1
- package/dist/bundle/{chunk-T7A6HSBF.js → chunk-6TRKNME5.js} +1 -1
- package/dist/bundle/{chunk-YNI57LTZ.js → chunk-6XNTELM5.js} +1 -1
- package/dist/bundle/{chunk-NMN7RTX5.js → chunk-7GW4D3OW.js} +19 -18
- package/dist/bundle/{chunk-3HCEKXXB.js → chunk-AJY2IT25.js} +6 -6
- package/dist/bundle/{chunk-KE2RQUQO.js → chunk-ANYADN3S.js} +17 -17
- package/dist/bundle/{chunk-FL2TKSZY.js → chunk-CAQ5GW3A.js} +1 -1
- package/dist/bundle/{chunk-SNZFQ5SS.js → chunk-CD3TAITM.js} +14 -2
- package/dist/bundle/{chunk-54JKDFOV.js → chunk-FA3B2DHZ.js} +1 -1
- package/dist/bundle/{chunk-Q23EEGPC.js → chunk-GDDCKTBR.js} +1 -1
- package/dist/bundle/{chunk-HVJ2WQI7.js → chunk-GPOTPA3S.js} +10 -10
- package/dist/bundle/{chunk-S2KKQA7O.js → chunk-GSXCMQWV.js} +41 -49
- package/dist/bundle/{chunk-GXKFRZUP.js → chunk-HFA6AZWA.js} +3 -3
- package/dist/bundle/{chunk-DBI22GQL.js → chunk-HUWQ7LXZ.js} +506 -338
- package/dist/bundle/{chunk-5X5A3CAX.js → chunk-IBCGCYRU.js} +1 -1
- package/dist/bundle/{chunk-4F7WQHDO.js → chunk-IVD3JTN5.js} +1 -1
- package/dist/bundle/{chunk-IIV43UIC.js → chunk-JRGPPS6H.js} +12 -12
- package/dist/bundle/{chunk-3ECFSRLQ.js → chunk-JUS4Y4BW.js} +3 -3
- package/dist/bundle/{chunk-F22PLRCG.js → chunk-KLFF54AF.js} +7 -7
- package/dist/bundle/{chunk-J5PUHGK2.js → chunk-KLGZX6QT.js} +1 -1
- package/dist/bundle/{chunk-CWAA73PJ.js → chunk-LVFI3TCG.js} +5 -5
- package/dist/bundle/{chunk-GDFJKUMK.js → chunk-LVJWN2PR.js} +6 -6
- package/dist/bundle/{chunk-E2SL7HIZ.js → chunk-MENP3FF5.js} +11 -12
- package/dist/bundle/{chunk-HZUUVNWC.js → chunk-MHXZ62CU.js} +1 -1
- package/dist/bundle/{chunk-B3NXAN6J.js → chunk-MSK7RNOM.js} +149 -148
- package/dist/bundle/{chunk-D3J4T5OZ.js → chunk-MT2WDBG2.js} +12 -12
- package/dist/bundle/{chunk-2M7PPII5.js → chunk-MVMNZ3Q3.js} +745 -336
- package/dist/bundle/{chunk-ZG2XBWFT.js → chunk-NMN5JUYL.js} +3 -3
- package/dist/bundle/{chunk-JKWNPRZD.js → chunk-O7OP5NQO.js} +1 -1
- package/dist/bundle/{chunk-NV2REPY6.js → chunk-OUM4ZO53.js} +1 -1
- package/dist/bundle/{chunk-KIZYN3NG.js → chunk-PALY5PGE.js} +5 -5
- package/dist/bundle/{chunk-LM4K6K2R.js → chunk-PCMQYGEM.js} +4 -4
- package/dist/bundle/{chunk-GCSFZTRI.js → chunk-PCWAZVAD.js} +30 -5
- package/dist/bundle/{chunk-6C7SA4LD.js → chunk-QHXOXYAT.js} +57 -54
- package/dist/bundle/{chunk-WXQK5RO5.js → chunk-RNBG75HW.js} +33 -23
- package/dist/bundle/{chunk-TIMBTN5Z.js → chunk-SDAYOJLL.js} +5 -5
- package/dist/bundle/{chunk-LN2LWPN2.js → chunk-SEJBS7SI.js} +1 -1
- package/dist/bundle/{chunk-U7VYDTXN.js → chunk-SWXKS7JK.js} +16 -16
- package/dist/bundle/{chunk-R3IFRHZ2.js → chunk-SZZJOSIS.js} +2 -2
- package/dist/bundle/{chunk-WHS3CTTM.js → chunk-T577U52I.js} +7 -7
- package/dist/bundle/{chunk-SN5V6CKH.js → chunk-TDTCCHAI.js} +98 -6
- package/dist/bundle/{chunk-FYXGD6R6.js → chunk-TWHIZJAZ.js} +2 -2
- package/dist/bundle/{chunk-K5FTIIYR.js → chunk-U346WBJ5.js} +4 -4
- package/dist/bundle/{chunk-MP572GP7.js → chunk-U57QRUP7.js} +2 -2
- package/dist/bundle/{chunk-YMJXGIYG.js → chunk-U7RLFLTM.js} +23 -23
- package/dist/bundle/{chunk-ENKZEQ4Y.js → chunk-WNGMI6AZ.js} +2 -2
- package/dist/bundle/{chunk-BOGGQOVO.js → chunk-WQOGHND4.js} +1 -1
- package/dist/bundle/{chunk-A3YXTDTP.js → chunk-XXXVVNGI.js} +18 -15
- package/dist/bundle/{chunk-RLPWLGP6.js → chunk-Z6OKVD3R.js} +7 -7
- package/dist/bundle/{chunk-QGIQ62KV.js → chunk-ZAD7K4TI.js} +382 -366
- package/dist/bundle/{chunk-26H2HVJD.js → chunk-ZDP6A2VL.js} +2 -2
- package/dist/bundle/{command-contract-ETECA2AC.js → command-contract-DZ6XRIOI.js} +15 -15
- package/dist/bundle/{command-server-entry-BFXRYTBC.js → command-server-entry-BVXOPKXH.js} +21 -21
- package/dist/bundle/{decode-4QRYNPD5.js → decode-STN3EHT7.js} +2 -2
- package/dist/bundle/{dist-MHJPECI4.js → dist-B2JWWTNN.js} +15 -11
- package/dist/bundle/{echarts-EJXBKCJT.js → echarts-QIXLXS3G.js} +2 -2
- package/dist/bundle/{embed-46WZZMUQ.js → embed-4NC4ELYP.js} +3 -3
- package/dist/bundle/{embedder-56WHJKJE.js → embedder-HBRDIFQC.js} +6 -6
- package/dist/bundle/{first-run-CATDBOBV.js → first-run-6QF67AAZ.js} +6 -6
- package/dist/bundle/first-screen-LXSZMK2P.js +34 -0
- package/dist/bundle/{instructions-Z7GVGWXS.js → instructions-MD2RZT5Z.js} +1 -1
- package/dist/bundle/mail.js +2 -2
- package/dist/bundle/{node-L2PVEW3N.js → node-IEVT2FSJ.js} +2 -2
- package/dist/bundle/{node-sqlite-RIGII7U7.js → node-sqlite-EOTTDMOG.js} +4 -4
- package/dist/bundle/{oauth-OWT6NYRS.js → oauth-A5BEFGCI.js} +4 -4
- package/dist/bundle/{open-D3SPYL7O.js → open-HWN2EZYG.js} +2 -2
- package/dist/bundle/{openai-IPTZDMFD.js → openai-PJKJ4CIU.js} +12 -12
- package/dist/bundle/{process-MNZTQ2DA.js → process-6Q23D3TO.js} +1 -1
- package/dist/bundle/{program-QCHTCOCR.js → program-WR43NPAV.js} +523 -454
- package/dist/bundle/{prompt-BN6AKRWN.js → prompt-E7Q2662O.js} +2 -2
- package/dist/bundle/{recognize-I5TH7OEW.js → recognize-4F4PIL4B.js} +1 -1
- package/dist/bundle/{remote-R324LAUL.js → remote-RGJXO7XK.js} +6 -6
- package/dist/bundle/{rerank-ZMGZCUJV.js → rerank-EDY7PHMG.js} +4 -4
- package/dist/bundle/{serve-YUFZSNJC.js → serve-Q4XF6ID2.js} +6 -6
- package/dist/bundle/server-2Y5NSP2U.js +67 -0
- package/dist/bundle/{server-54ULZ3RA.js → server-5I72DSDF.js} +43 -41
- package/dist/bundle/{sqlite-runtime-AYQTUQXM.js → sqlite-runtime-PU3Z2H7C.js} +3 -3
- package/dist/bundle/{state-PHEBOYYI.js → state-CWSXJBU2.js} +3 -3
- package/dist/bundle/{store-NGX3A5XT.js → store-KQPKS3PX.js} +15 -15
- package/dist/bundle/{store-4PHDSXEV.js → store-ZAMKKM2A.js} +13 -13
- package/dist/bundle/store-maintenance-command-PMTTDR6J.js +58 -0
- package/dist/commands/rules.d.ts.map +1 -1
- package/dist/commands/rules.js +73 -22
- package/dist/commands/rules.js.map +1 -1
- package/dist/mail/rules/apply.d.ts.map +1 -1
- package/dist/mail/rules/apply.js +1 -9
- package/dist/mail/rules/apply.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +2 -2
- package/dist/bundle/chunk-IJONJTST.js +0 -76
- package/dist/bundle/first-screen-WCDR3QUR.js +0 -34
- package/dist/bundle/server-UD75CYDG.js +0 -68
- package/dist/bundle/store-maintenance-command-WHBIV6HC.js +0 -58
|
@@ -6,10 +6,10 @@ import {
|
|
|
6
6
|
answerSchema,
|
|
7
7
|
describeOptions,
|
|
8
8
|
metaOf
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-MSK7RNOM.js";
|
|
10
10
|
import {
|
|
11
11
|
keyForCommand
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-PCWAZVAD.js";
|
|
13
13
|
import {
|
|
14
14
|
jsonSchemaOf
|
|
15
15
|
} from "./chunk-ECZSYLSL.js";
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
__name
|
|
21
21
|
} from "./chunk-ZVVMGPBJ.js";
|
|
22
22
|
|
|
23
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/cli/command-contract.js
|
|
24
24
|
var SCHEMA_DIALECT = "https://json-schema.org/draft/2020-12/schema";
|
|
25
25
|
var outputOf = /* @__PURE__ */ __name((command) => {
|
|
26
26
|
const entity = answerEntitySchema(command);
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
__name
|
|
9
9
|
} from "./chunk-ZVVMGPBJ.js";
|
|
10
10
|
|
|
11
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/errors/failures.js
|
|
12
12
|
var isCliFailure = /* @__PURE__ */ __name((value) => value instanceof Error && value.name === "CliError" && errorCodes.includes(value.code), "isCliFailure");
|
|
13
13
|
var isCommanderFailure = /* @__PURE__ */ __name((value) => {
|
|
14
14
|
const { code, exitCode } = value ?? {};
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
__name
|
|
5
5
|
} from "./chunk-ZVVMGPBJ.js";
|
|
6
6
|
|
|
7
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/store/driver.js
|
|
8
8
|
var TIME_LIMIT_FUNCTION = "wc_time_limit";
|
|
9
9
|
var TimeLimitReached = class extends Error {
|
|
10
10
|
static {
|
|
@@ -2,7 +2,7 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
storePath
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-FA3B2DHZ.js";
|
|
6
6
|
import {
|
|
7
7
|
resolvePaths,
|
|
8
8
|
writeSecurely
|
|
@@ -15,11 +15,11 @@ import {
|
|
|
15
15
|
__name
|
|
16
16
|
} from "./chunk-ZVVMGPBJ.js";
|
|
17
17
|
|
|
18
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/store/shared-config.js
|
|
19
19
|
import { existsSync, mkdirSync, readFileSync, renameSync, statSync, writeFileSync } from "node:fs";
|
|
20
20
|
import { dirname, join, resolve } from "node:path";
|
|
21
21
|
|
|
22
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/domain/config-repair.js
|
|
23
23
|
var REPAIR_WORDS = {
|
|
24
24
|
byte_order_mark: "an invisible byte-order mark at the start",
|
|
25
25
|
comment: "a comment, which JSON does not allow",
|
|
@@ -303,7 +303,7 @@ var explainBrokenJson = /* @__PURE__ */ __name((text, result) => {
|
|
|
303
303
|
return `line ${line}, column ${column}: ${why}${around(line)}; likely fix: ${fix ?? "correct that part by hand"}`;
|
|
304
304
|
}, "explainBrokenJson");
|
|
305
305
|
|
|
306
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
306
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/domain/task-categories.js
|
|
307
307
|
var DEFAULT_TASK_CATEGORIES = [
|
|
308
308
|
{
|
|
309
309
|
name: "taxes",
|
|
@@ -1058,7 +1058,7 @@ var storedTaskCategories = /* @__PURE__ */ __name((json) => {
|
|
|
1058
1058
|
}
|
|
1059
1059
|
}, "storedTaskCategories");
|
|
1060
1060
|
|
|
1061
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1061
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/store/shared-config.js
|
|
1062
1062
|
var SECTION = "task_categories";
|
|
1063
1063
|
var sharedConfigPath = /* @__PURE__ */ __name((store, env = process.env) => {
|
|
1064
1064
|
const paths = resolvePaths({ appName: "WireCat", prefix: "WIRECAT", env });
|
|
@@ -3,7 +3,7 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
commandPathOf,
|
|
5
5
|
outputOf
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-NMN5JUYL.js";
|
|
7
7
|
import {
|
|
8
8
|
wrapAnsi
|
|
9
9
|
} from "./chunk-HTQTIKWP.js";
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
environmentOf,
|
|
18
18
|
metaOf,
|
|
19
19
|
takesProfile
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-MSK7RNOM.js";
|
|
21
21
|
import {
|
|
22
22
|
writes
|
|
23
23
|
} from "./chunk-ECZSYLSL.js";
|
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
__name
|
|
29
29
|
} from "./chunk-ZVVMGPBJ.js";
|
|
30
30
|
|
|
31
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/cli/help/command-help.js
|
|
32
32
|
var ARGUMENT_KINDS = {
|
|
33
33
|
chat: "chat",
|
|
34
34
|
chats: "chat",
|
|
@@ -221,7 +221,7 @@ var installCommandHelp = /* @__PURE__ */ __name((program, { profile = true } = {
|
|
|
221
221
|
command.addHelpText("after", () => commandHelpText(command));
|
|
222
222
|
}, "installCommandHelp");
|
|
223
223
|
|
|
224
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
224
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/cli/help/first-screen.js
|
|
225
225
|
var WIRECAT_TOOLS = [
|
|
226
226
|
{
|
|
227
227
|
command: "tg",
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
__name
|
|
18
18
|
} from "./chunk-ZVVMGPBJ.js";
|
|
19
19
|
|
|
20
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/sends/permissions.js
|
|
21
21
|
var LEVELS = ["deny", "readonly", "ask", "allow"];
|
|
22
22
|
var DANGEROUS = /* @__PURE__ */ new Set(["messages.delete", "bot.messages.delete", "topics.delete", "chats.delete", "chats.clear"]);
|
|
23
23
|
var skipFlagFor = /* @__PURE__ */ __name((key) => DANGEROUS.has(key) ? "--allow-dangerous" : "--yes", "skipFlagFor");
|
|
@@ -56,7 +56,11 @@ var DEFAULT_PERMISSIONS = {
|
|
|
56
56
|
"images.models.download": "ask",
|
|
57
57
|
"schedule.run": "ask",
|
|
58
58
|
"schedule.exec": "ask",
|
|
59
|
-
"doctor.reports.create": "ask"
|
|
59
|
+
"doctor.reports.create": "ask",
|
|
60
|
+
// A meeting changed on the service reaches its invitees: asked first, as zoom's `remote-meetings` was.
|
|
61
|
+
"meetings.create": "ask",
|
|
62
|
+
"meetings.update": "ask",
|
|
63
|
+
"meetings.cancel": "ask"
|
|
60
64
|
};
|
|
61
65
|
var KEYED_UNDER_HOUSEKEEPING = new Set(Object.keys(DEFAULT_PERMISSIONS).filter((key) => /^(store|server|models|images|schedule|doctor)\./.test(key)));
|
|
62
66
|
var AUTHORITY_KEY = "mcp.authority";
|
|
@@ -113,6 +117,23 @@ var layerPermissions = /* @__PURE__ */ __name((layers) => {
|
|
|
113
117
|
return { levels, sources };
|
|
114
118
|
}, "layerPermissions");
|
|
115
119
|
var CEILING_KEY = "*";
|
|
120
|
+
var STORE_ONLY_KEYS = /* @__PURE__ */ new Set([
|
|
121
|
+
"attachments.extract",
|
|
122
|
+
"conversations.embeddings",
|
|
123
|
+
"conversations.links",
|
|
124
|
+
"messages.server-search",
|
|
125
|
+
"messages.sync-first",
|
|
126
|
+
"metadata.sync",
|
|
127
|
+
"stats.contacts.top.sync-first",
|
|
128
|
+
"stats.messages.counters.sync",
|
|
129
|
+
"stats.messages.show.sync-first",
|
|
130
|
+
"stats.messages.top.sync-first",
|
|
131
|
+
"store.gaps.repair"
|
|
132
|
+
]);
|
|
133
|
+
var FETCH_KEYS = new Set([...STORE_ONLY_KEYS].filter((key) => !["attachments.extract", "conversations.embeddings", "conversations.links"].includes(key)));
|
|
134
|
+
var fetchesUnder = /* @__PURE__ */ __name((level, key) => level === "readonly" && FETCH_KEYS.has(key), "fetchesUnder");
|
|
135
|
+
var fetchesAt = /* @__PURE__ */ __name((level) => level === "allow" || level === "readonly", "fetchesAt");
|
|
136
|
+
var stops = /* @__PURE__ */ __name((level, key) => level === "deny" || level === "readonly" && !FETCH_KEYS.has(key), "stops");
|
|
116
137
|
var ALLOWED = { level: "allow", key: null };
|
|
117
138
|
var ORDER = { deny: 0, readonly: 1, ask: 2, allow: 3 };
|
|
118
139
|
var nearest = /* @__PURE__ */ __name((levels, key) => {
|
|
@@ -422,7 +443,7 @@ var assertRetentionEvidenceRead = /* @__PURE__ */ __name((permissions) => {
|
|
|
422
443
|
}
|
|
423
444
|
}, "assertRetentionEvidenceRead");
|
|
424
445
|
|
|
425
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
446
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/cli/result-fields.js
|
|
426
447
|
var named = /* @__PURE__ */ __name((work) => {
|
|
427
448
|
try {
|
|
428
449
|
return work();
|
|
@@ -449,7 +470,7 @@ var projectFields2 = /* @__PURE__ */ __name((value, fields) => named(() => {
|
|
|
449
470
|
return projectFields(value, fields);
|
|
450
471
|
}), "projectFields");
|
|
451
472
|
|
|
452
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
473
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/output-detail.js
|
|
453
474
|
var RARELY_SET = ["editedAt", "replyTo", "forwardedFrom", "reactions"];
|
|
454
475
|
var BRIEF = ["locator", "chatTitle", "timestamp", "senderName", "excerpt", "score"];
|
|
455
476
|
var SNAKE_BRIEF = ["ref", "chat_title", "timestamp", "sender_name", "excerpt", "score"];
|
|
@@ -485,7 +506,7 @@ var atDetail = /* @__PURE__ */ __name((value, detail = "default") => {
|
|
|
485
506
|
return value;
|
|
486
507
|
}, "atDetail");
|
|
487
508
|
|
|
488
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
509
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/output.js
|
|
489
510
|
var refuseCompact = /* @__PURE__ */ __name(({ json, jsonl, fields, hitDetail }) => {
|
|
490
511
|
const other = jsonl ? "--jsonl" : fields !== void 0 ? "--json=\u2026" : json ? "--json" : hitDetail === "brief" ? "--brief" : "";
|
|
491
512
|
if (other)
|
|
@@ -562,6 +583,10 @@ export {
|
|
|
562
583
|
RESOURCES,
|
|
563
584
|
layerPermissions,
|
|
564
585
|
CEILING_KEY,
|
|
586
|
+
STORE_ONLY_KEYS,
|
|
587
|
+
fetchesUnder,
|
|
588
|
+
fetchesAt,
|
|
589
|
+
stops,
|
|
565
590
|
levelFor,
|
|
566
591
|
keyForWrite,
|
|
567
592
|
writeOfKey,
|
|
@@ -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-KLGZX6QT.js";
|
|
6
6
|
import {
|
|
7
7
|
answerOf,
|
|
8
8
|
messengerContext
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-XXXVVNGI.js";
|
|
10
10
|
import {
|
|
11
11
|
FETCHING,
|
|
12
12
|
RULES_VERSION,
|
|
@@ -31,17 +31,17 @@ import {
|
|
|
31
31
|
typedQuery,
|
|
32
32
|
withQuery,
|
|
33
33
|
withTimeLimit
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-HUWQ7LXZ.js";
|
|
35
35
|
import {
|
|
36
36
|
holdLock,
|
|
37
37
|
lockPath,
|
|
38
38
|
releaseLock,
|
|
39
39
|
servingProfiles,
|
|
40
40
|
takeLock
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-2UMEZY6D.js";
|
|
42
42
|
import {
|
|
43
43
|
readSecret
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-SZZJOSIS.js";
|
|
45
45
|
import {
|
|
46
46
|
Command,
|
|
47
47
|
LOCAL_READ,
|
|
@@ -68,13 +68,13 @@ import {
|
|
|
68
68
|
snakeKeys,
|
|
69
69
|
storeTable,
|
|
70
70
|
withoutProviderRefs
|
|
71
|
-
} from "./chunk-
|
|
71
|
+
} from "./chunk-MSK7RNOM.js";
|
|
72
72
|
import {
|
|
73
73
|
levelFor
|
|
74
|
-
} from "./chunk-
|
|
74
|
+
} from "./chunk-PCWAZVAD.js";
|
|
75
75
|
import {
|
|
76
76
|
holdersOf
|
|
77
|
-
} from "./chunk-
|
|
77
|
+
} from "./chunk-WQOGHND4.js";
|
|
78
78
|
import {
|
|
79
79
|
QUICK_HEALTH_CHECKS,
|
|
80
80
|
fts5Tables,
|
|
@@ -82,7 +82,7 @@ import {
|
|
|
82
82
|
lossUnknown,
|
|
83
83
|
storeDamageReport,
|
|
84
84
|
storeHealth
|
|
85
|
-
} from "./chunk-
|
|
85
|
+
} from "./chunk-SWXKS7JK.js";
|
|
86
86
|
import {
|
|
87
87
|
CORPORA,
|
|
88
88
|
MIGRATIONS,
|
|
@@ -117,38 +117,38 @@ import {
|
|
|
117
117
|
storeClients,
|
|
118
118
|
storeContents,
|
|
119
119
|
vectorIndexCounts
|
|
120
|
-
} from "./chunk-
|
|
120
|
+
} from "./chunk-ZAD7K4TI.js";
|
|
121
121
|
import {
|
|
122
122
|
currentRun,
|
|
123
123
|
readDamageMark,
|
|
124
124
|
readHealthMark,
|
|
125
125
|
readJournalMark,
|
|
126
126
|
recordDeepCheck
|
|
127
|
-
} from "./chunk-
|
|
127
|
+
} from "./chunk-U7RLFLTM.js";
|
|
128
128
|
import {
|
|
129
129
|
formatLocator,
|
|
130
130
|
parseLocator,
|
|
131
131
|
queryFieldsOf
|
|
132
|
-
} from "./chunk-
|
|
132
|
+
} from "./chunk-MVMNZ3Q3.js";
|
|
133
133
|
import {
|
|
134
134
|
failureKey,
|
|
135
135
|
isStoreDamage
|
|
136
|
-
} from "./chunk-
|
|
136
|
+
} from "./chunk-O7OP5NQO.js";
|
|
137
137
|
import {
|
|
138
138
|
modelAddressAllowed,
|
|
139
139
|
onThisComputer
|
|
140
|
-
} from "./chunk-
|
|
140
|
+
} from "./chunk-GDDCKTBR.js";
|
|
141
141
|
import {
|
|
142
142
|
readSharedSection,
|
|
143
143
|
sharedConfigPath,
|
|
144
144
|
writeSharedSection
|
|
145
|
-
} from "./chunk-
|
|
145
|
+
} from "./chunk-PALY5PGE.js";
|
|
146
146
|
import {
|
|
147
147
|
storePath
|
|
148
|
-
} from "./chunk-
|
|
148
|
+
} from "./chunk-FA3B2DHZ.js";
|
|
149
149
|
import {
|
|
150
150
|
openCache
|
|
151
|
-
} from "./chunk-
|
|
151
|
+
} from "./chunk-SDAYOJLL.js";
|
|
152
152
|
import {
|
|
153
153
|
Credentials,
|
|
154
154
|
isMovedRun,
|
|
@@ -5519,11 +5519,11 @@ var require_liquid_node = __commonJS({
|
|
|
5519
5519
|
}
|
|
5520
5520
|
});
|
|
5521
5521
|
|
|
5522
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5522
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/cli/messenger/store-maintenance-command.js
|
|
5523
5523
|
import { chmodSync, constants, copyFileSync, existsSync as existsSync10, mkdirSync, realpathSync as realpathSync3, renameSync as renameSync3, rmSync as rmSync3, statfsSync as statfsSync2, statSync as statSync4, writeFileSync as writeFileSync2 } from "node:fs";
|
|
5524
5524
|
import { dirname as dirname3, resolve } from "node:path";
|
|
5525
5525
|
|
|
5526
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5526
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/sealed.js
|
|
5527
5527
|
import { createCipheriv, createDecipheriv, createHash, randomBytes, scrypt, timingSafeEqual } from "node:crypto";
|
|
5528
5528
|
import { closeSync, createReadStream, createWriteStream, existsSync, openSync, readSync, renameSync, rmSync, statSync } from "node:fs";
|
|
5529
5529
|
import { Transform } from "node:stream";
|
|
@@ -5630,7 +5630,7 @@ var unsealFile = /* @__PURE__ */ __name(async (from, to, password) => {
|
|
|
5630
5630
|
renameSync(pending, to);
|
|
5631
5631
|
}, "unsealFile");
|
|
5632
5632
|
|
|
5633
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5633
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/store/compatibility.js
|
|
5634
5634
|
var SPEAKS = MIGRATIONS.at(-1)?.version ?? 0;
|
|
5635
5635
|
var fileSchemaOf = /* @__PURE__ */ __name((database) => {
|
|
5636
5636
|
const tracked = database.prepare("SELECT 1 FROM sqlite_master WHERE name = 'schema_migrations'").get();
|
|
@@ -5654,7 +5654,7 @@ var compatibilityOf = /* @__PURE__ */ __name((file2, migrations = MIGRATIONS) =>
|
|
|
5654
5654
|
};
|
|
5655
5655
|
}, "compatibilityOf");
|
|
5656
5656
|
|
|
5657
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5657
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/store/repair.js
|
|
5658
5658
|
import { createHash as createHash2 } from "node:crypto";
|
|
5659
5659
|
var COPY_MARK = "__repair_";
|
|
5660
5660
|
var COPY_NAME = /__repair_[0-9a-f]{8}(_\d+)?$/;
|
|
@@ -5908,19 +5908,19 @@ var deleteCopy = /* @__PURE__ */ __name((database, name) => {
|
|
|
5908
5908
|
return found;
|
|
5909
5909
|
}, "deleteCopy");
|
|
5910
5910
|
|
|
5911
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5911
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/cli/store-info.js
|
|
5912
5912
|
import { existsSync as existsSync4, statSync as statSync3 } from "node:fs";
|
|
5913
5913
|
|
|
5914
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5914
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/cli/store-recover.js
|
|
5915
5915
|
import { existsSync as existsSync3 } from "node:fs";
|
|
5916
5916
|
|
|
5917
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5917
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/store/recover.js
|
|
5918
5918
|
import { execFileSync, spawn } from "node:child_process";
|
|
5919
5919
|
import { existsSync as existsSync2, readFileSync, realpathSync, renameSync as renameSync2, rmSync as rmSync2, statfsSync, statSync as statSync2, writeFileSync } from "node:fs";
|
|
5920
5920
|
import { basename, dirname, join } from "node:path";
|
|
5921
5921
|
import { Transform as Transform2 } from "node:stream";
|
|
5922
5922
|
|
|
5923
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5923
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/store/refill.js
|
|
5924
5924
|
var REFILL_MARGIN_MS = 864e5;
|
|
5925
5925
|
var TIME_KEYS = 1e12;
|
|
5926
5926
|
var integerId = `external_id GLOB '[0-9]*' AND NOT external_id GLOB '*[^0-9]*'`;
|
|
@@ -6000,7 +6000,7 @@ var forgetMail = /* @__PURE__ */ __name((database, cutoff, now) => {
|
|
|
6000
6000
|
return [...folders].map(([account, count3]) => ({ account, folders: count3 }));
|
|
6001
6001
|
}, "forgetMail");
|
|
6002
6002
|
|
|
6003
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6003
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/store/recover.js
|
|
6004
6004
|
var SQLITE3_MINIMUM = [3, 43, 0];
|
|
6005
6005
|
var STORE_PARTS = ["", "-wal", "-shm"];
|
|
6006
6006
|
var RECOVER_LOCK = ".recover-lock";
|
|
@@ -6528,7 +6528,7 @@ var recoverLocked = /* @__PURE__ */ __name(async ({ path, command, version, sqli
|
|
|
6528
6528
|
}
|
|
6529
6529
|
}, "recoverLocked");
|
|
6530
6530
|
|
|
6531
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6531
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/cli/store-recover.js
|
|
6532
6532
|
var COUNTED = [
|
|
6533
6533
|
"accounts",
|
|
6534
6534
|
"chats",
|
|
@@ -6684,7 +6684,7 @@ var storeRecoverCommand = /* @__PURE__ */ __name(({ command, version }) => {
|
|
|
6684
6684
|
return recover;
|
|
6685
6685
|
}, "storeRecoverCommand");
|
|
6686
6686
|
|
|
6687
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6687
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/cli/store-info.js
|
|
6688
6688
|
var pendingIfKnown = /* @__PURE__ */ __name((database) => database.prepare("SELECT 1 FROM pragma_table_info('messages') WHERE name = 'normalized_text'").get() ? pendingNormalization(database) : null, "pendingIfKnown");
|
|
6689
6689
|
var bytesOf = /* @__PURE__ */ __name((path) => existsSync4(path) ? statSync3(path).size : 0, "bytesOf");
|
|
6690
6690
|
var messageOf = /* @__PURE__ */ __name((error) => error instanceof Error ? error.message : String(error), "messageOf");
|
|
@@ -6730,7 +6730,7 @@ var storeInfoCommand = /* @__PURE__ */ __name(() => annotate(new Command("info")
|
|
|
6730
6730
|
renderAnswer(this, outputFor(this), itemOf(answer));
|
|
6731
6731
|
}), "storeInfoCommand");
|
|
6732
6732
|
|
|
6733
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6733
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/cli/messenger/password.js
|
|
6734
6734
|
var ENCRYPT_OPTION = [
|
|
6735
6735
|
"--encrypt",
|
|
6736
6736
|
"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"
|
|
@@ -6749,7 +6749,7 @@ var passwordOf = /* @__PURE__ */ __name(async (command, { twice }) => {
|
|
|
6749
6749
|
return password;
|
|
6750
6750
|
}, "passwordOf");
|
|
6751
6751
|
|
|
6752
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6752
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/replies/rules.js
|
|
6753
6753
|
import { existsSync as existsSync5, readFileSync as readFileSync2 } from "node:fs";
|
|
6754
6754
|
import { join as join2 } from "node:path";
|
|
6755
6755
|
var REPLY_ACTIONS = ["reply", "task"];
|
|
@@ -6920,7 +6920,7 @@ var problem = /* @__PURE__ */ __name((issue) => {
|
|
|
6920
6920
|
}, "problem");
|
|
6921
6921
|
var broken = /* @__PURE__ */ __name((path, why) => new CliError("configuration_error", `the reply rules ${path} cannot be read (${why}) \u2014 fix the file`), "broken");
|
|
6922
6922
|
|
|
6923
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6923
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/replies/state.js
|
|
6924
6924
|
import { existsSync as existsSync6, readFileSync as readFileSync3 } from "node:fs";
|
|
6925
6925
|
import { join as join3 } from "node:path";
|
|
6926
6926
|
var ANSWERED_KEPT = 1e3;
|
|
@@ -6973,7 +6973,7 @@ var recordReply = /* @__PURE__ */ __name((state, rule2, message, now) => {
|
|
|
6973
6973
|
}, "recordReply");
|
|
6974
6974
|
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");
|
|
6975
6975
|
|
|
6976
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6976
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/replies/decide.js
|
|
6977
6977
|
var skip = /* @__PURE__ */ __name((why) => ({ skip: why }), "skip");
|
|
6978
6978
|
var decide = /* @__PURE__ */ __name((rule2, incoming, state, now) => {
|
|
6979
6979
|
const { message, chat, owner, sender } = incoming;
|
|
@@ -7079,10 +7079,10 @@ var filled = /* @__PURE__ */ __name((template2, senderName) => {
|
|
|
7079
7079
|
return template2.replaceAll("{firstName}", name.split(/\s+/)[0] ?? name).replaceAll("{name}", name);
|
|
7080
7080
|
}, "filled");
|
|
7081
7081
|
|
|
7082
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7082
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/replies/template.js
|
|
7083
7083
|
var import_liquidjs2 = __toESM(require_liquid_node(), 1);
|
|
7084
7084
|
|
|
7085
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7085
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/render/liquid.js
|
|
7086
7086
|
var import_liquidjs = __toESM(require_liquid_node(), 1);
|
|
7087
7087
|
var safeLiquid = /* @__PURE__ */ __name((limits) => {
|
|
7088
7088
|
const engine = new import_liquidjs.Liquid({
|
|
@@ -7109,7 +7109,7 @@ var safeLiquid = /* @__PURE__ */ __name((limits) => {
|
|
|
7109
7109
|
return engine;
|
|
7110
7110
|
}, "safeLiquid");
|
|
7111
7111
|
|
|
7112
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7112
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/replies/template.js
|
|
7113
7113
|
var TEMPLATE_LIMITS = {
|
|
7114
7114
|
parse: 32768,
|
|
7115
7115
|
renders: 2e3,
|
|
@@ -7248,7 +7248,7 @@ var renderReplyTemplate = /* @__PURE__ */ __name(async (reply, input) => {
|
|
|
7248
7248
|
}
|
|
7249
7249
|
}, "renderReplyTemplate");
|
|
7250
7250
|
|
|
7251
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7251
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/replies/dry-run.js
|
|
7252
7252
|
var DRY_RUN_DAYS = 7;
|
|
7253
7253
|
var PAGE = 500;
|
|
7254
7254
|
var dryRun = /* @__PURE__ */ __name(async (store, account, rules, { since, until = Date.now(), only, audience, render }) => {
|
|
@@ -7362,7 +7362,7 @@ var storedSince = /* @__PURE__ */ __name(async (store, account, chat, since) =>
|
|
|
7362
7362
|
}
|
|
7363
7363
|
}, "storedSince");
|
|
7364
7364
|
|
|
7365
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7365
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/models/ai.js
|
|
7366
7366
|
var AI_PROVIDERS = ["anthropic", "openai", "ollama"];
|
|
7367
7367
|
var DEFAULT_BASE_URL = {
|
|
7368
7368
|
anthropic: "https://api.anthropic.com",
|
|
@@ -7512,7 +7512,7 @@ var checkAi = /* @__PURE__ */ __name(async (deps) => {
|
|
|
7512
7512
|
}
|
|
7513
7513
|
}, "checkAi");
|
|
7514
7514
|
|
|
7515
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7515
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/models/purpose.js
|
|
7516
7516
|
var HOSTED = {
|
|
7517
7517
|
openai: "https://api.openai.com/v1",
|
|
7518
7518
|
anthropic: "https://api.anthropic.com"
|
|
@@ -7533,7 +7533,7 @@ var purposeModel = /* @__PURE__ */ __name((settings, purpose, deps) => {
|
|
|
7533
7533
|
return shared ? { target: shared.target, key: /* @__PURE__ */ __name(() => shared.key, "key"), shared: shared.setting } : void 0;
|
|
7534
7534
|
}, "purposeModel");
|
|
7535
7535
|
|
|
7536
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7536
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/replies/consents.js
|
|
7537
7537
|
import { existsSync as existsSync7, readFileSync as readFileSync4 } from "node:fs";
|
|
7538
7538
|
import { join as join4 } from "node:path";
|
|
7539
7539
|
var shape = strictObject({
|
|
@@ -7558,7 +7558,7 @@ var mayModelReply = /* @__PURE__ */ __name((path, provider, chat) => {
|
|
|
7558
7558
|
return consent.provider === provider && !consent.deniedChats.includes(chat);
|
|
7559
7559
|
}, "mayModelReply");
|
|
7560
7560
|
|
|
7561
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7561
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/replies/rendering.js
|
|
7562
7562
|
var replyRenderer = /* @__PURE__ */ __name((app, profile, settings, env, warn, options = {
|
|
7563
7563
|
ai: true
|
|
7564
7564
|
}) => async (rule2, message, chat, now) => {
|
|
@@ -7606,7 +7606,7 @@ var replyRenderer = /* @__PURE__ */ __name((app, profile, settings, env, warn, o
|
|
|
7606
7606
|
return result2;
|
|
7607
7607
|
}, "replyRenderer");
|
|
7608
7608
|
|
|
7609
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7609
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/replies/serve.js
|
|
7610
7610
|
var NOT_ALLOWED = "replies.send is not allow";
|
|
7611
7611
|
var NO_RULES = "no rules";
|
|
7612
7612
|
var ONLY_TASK = "opened a task, sent nothing";
|
|
@@ -7699,7 +7699,7 @@ var replyTo = /* @__PURE__ */ __name(async (deps, message) => {
|
|
|
7699
7699
|
return { skip: why };
|
|
7700
7700
|
}, "replyTo");
|
|
7701
7701
|
|
|
7702
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7702
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-catch-up.js
|
|
7703
7703
|
var START_SYNC_DELAY_MS = 3e4;
|
|
7704
7704
|
var START_SYNC_BUDGET_MS = 5 * 6e4;
|
|
7705
7705
|
var START_SYNC_WINDOW_MS = 7 * 864e5;
|
|
@@ -7776,7 +7776,7 @@ var startSync = /* @__PURE__ */ __name(({ chats, newestHeld, fetch, note, warn,
|
|
|
7776
7776
|
};
|
|
7777
7777
|
}, "startSync");
|
|
7778
7778
|
|
|
7779
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7779
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-members.js
|
|
7780
7780
|
var FIRST_FETCH_MS = 6e4;
|
|
7781
7781
|
var DAY_MS = 864e5;
|
|
7782
7782
|
var memberFetches = /* @__PURE__ */ __name(({ withStore, fetch, warn, firstMs = FIRST_FETCH_MS, everyMs = DAY_MS }) => {
|
|
@@ -7830,7 +7830,7 @@ var memberFetches = /* @__PURE__ */ __name(({ withStore, fetch, warn, firstMs =
|
|
|
7830
7830
|
};
|
|
7831
7831
|
}, "memberFetches");
|
|
7832
7832
|
|
|
7833
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7833
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-notice.js
|
|
7834
7834
|
var record2 = /* @__PURE__ */ __name((context, app, severity, attributes) => recordLogFor(context.streams.diagnostic, app, { command: currentRun().command || "serve" })[severity](attributes), "record");
|
|
7835
7835
|
var noticeFor = /* @__PURE__ */ __name((context, app, severity = "warn") => ({ text, ...attributes }) => {
|
|
7836
7836
|
if (context.format === "pretty") {
|
|
@@ -7863,7 +7863,7 @@ var recordDiagnostics = /* @__PURE__ */ __name((context, app) => {
|
|
|
7863
7863
|
return context;
|
|
7864
7864
|
}, "recordDiagnostics");
|
|
7865
7865
|
|
|
7866
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7866
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-outdated.js
|
|
7867
7867
|
import { existsSync as existsSync8, readFileSync as readFileSync5, realpathSync as realpathSync2 } from "node:fs";
|
|
7868
7868
|
import { dirname as dirname2, join as join5 } from "node:path";
|
|
7869
7869
|
var OUTDATED_CHECK_MS = 6e4;
|
|
@@ -7949,7 +7949,7 @@ var watchOutdated = /* @__PURE__ */ __name(({ check: check2, onOutdated, everyMs
|
|
|
7949
7949
|
};
|
|
7950
7950
|
}, "watchOutdated");
|
|
7951
7951
|
|
|
7952
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7952
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-stems.js
|
|
7953
7953
|
var STEMS_EVERY_MS = 3e4;
|
|
7954
7954
|
var STEMS_SLICE_MS = 2e3;
|
|
7955
7955
|
var stemFills = /* @__PURE__ */ __name(({ withStore, warn, everyMs = STEMS_EVERY_MS, sliceMs = STEMS_SLICE_MS }) => {
|
|
@@ -7989,7 +7989,7 @@ var stemFills = /* @__PURE__ */ __name(({ withStore, warn, everyMs = STEMS_EVERY
|
|
|
7989
7989
|
};
|
|
7990
7990
|
}, "stemFills");
|
|
7991
7991
|
|
|
7992
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7992
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/cli/messenger/message-items.js
|
|
7993
7993
|
var defined = /* @__PURE__ */ __name((value) => Object.fromEntries(Object.entries(value).filter(([, one]) => one !== void 0)), "defined");
|
|
7994
7994
|
var attachmentItem = /* @__PURE__ */ __name((attachment) => defined({
|
|
7995
7995
|
kind: attachment.kind,
|
|
@@ -8085,7 +8085,7 @@ var viewOf = /* @__PURE__ */ __name((context, messenger) => ({
|
|
|
8085
8085
|
locale: messenger.app.locale
|
|
8086
8086
|
}), "viewOf");
|
|
8087
8087
|
|
|
8088
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8088
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/cli/messenger/watch-answers.js
|
|
8089
8089
|
var observed = /* @__PURE__ */ __name((value) => ({
|
|
8090
8090
|
value: value.value,
|
|
8091
8091
|
observed_at: value.observedAt,
|
|
@@ -8152,7 +8152,7 @@ var watchEventItem = /* @__PURE__ */ __name((value, account) => {
|
|
|
8152
8152
|
}
|
|
8153
8153
|
}, "watchEventItem");
|
|
8154
8154
|
|
|
8155
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8155
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/cli/messenger/watch-command.js
|
|
8156
8156
|
var watchCommand = /* @__PURE__ */ __name((messenger) => annotate(new Command("watch"), {
|
|
8157
8157
|
output: { entity: "watch_item" },
|
|
8158
8158
|
effects: REMOTE_READ,
|
|
@@ -8307,7 +8307,7 @@ var describe = /* @__PURE__ */ __name((event, render) => {
|
|
|
8307
8307
|
}
|
|
8308
8308
|
}, "describe");
|
|
8309
8309
|
|
|
8310
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8310
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-command.js
|
|
8311
8311
|
var serveCommand = /* @__PURE__ */ __name((messenger) => {
|
|
8312
8312
|
const command = annotate(new Command("serve"), {
|
|
8313
8313
|
output: { entity: "serve_summary" },
|
|
@@ -8348,7 +8348,7 @@ var serveCommand = /* @__PURE__ */ __name((messenger) => {
|
|
|
8348
8348
|
});
|
|
8349
8349
|
}, "onReady");
|
|
8350
8350
|
const counts = {};
|
|
8351
|
-
const rules = replying(context, messenger, Date.parse(startedAt));
|
|
8351
|
+
const rules = replying(context, messenger, Date.parse(startedAt), () => messenger.resolveSettings(this.optsWithGlobals(), { env: context.env }));
|
|
8352
8352
|
const tasks = tasking(context, warn);
|
|
8353
8353
|
const { handled, startSyncDelayMs, outdated: outdatedHook } = environmentOf(this);
|
|
8354
8354
|
const count3 = /* @__PURE__ */ __name((event) => {
|
|
@@ -8490,7 +8490,7 @@ var NO_REPLIES = {
|
|
|
8490
8490
|
}, "stop"),
|
|
8491
8491
|
summary: /* @__PURE__ */ __name(() => ({}), "summary")
|
|
8492
8492
|
};
|
|
8493
|
-
var replying = /* @__PURE__ */ __name((context, messenger, since) => {
|
|
8493
|
+
var replying = /* @__PURE__ */ __name((context, messenger, since, reload) => {
|
|
8494
8494
|
if (messenger.autoReplies === false)
|
|
8495
8495
|
return NO_REPLIES;
|
|
8496
8496
|
const controller = new AbortController();
|
|
@@ -8515,6 +8515,9 @@ var replying = /* @__PURE__ */ __name((context, messenger, since) => {
|
|
|
8515
8515
|
if (connection === void 0 || controller.signal.aborted)
|
|
8516
8516
|
return;
|
|
8517
8517
|
const open = connection;
|
|
8518
|
+
const current = reload();
|
|
8519
|
+
settings.permissions = current.permissions;
|
|
8520
|
+
settings.permissionSources = current.permissionSources;
|
|
8518
8521
|
const answer = await replyTo({
|
|
8519
8522
|
rulesPath: repliesPathFor(app, profile, env),
|
|
8520
8523
|
statePath: repliesStatePathFor(app, profile, env),
|
|
@@ -8590,7 +8593,7 @@ var tasking = /* @__PURE__ */ __name((context, warn) => {
|
|
|
8590
8593
|
};
|
|
8591
8594
|
}, "tasking");
|
|
8592
8595
|
|
|
8593
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8596
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/cli/messenger/store-tables-command.js
|
|
8594
8597
|
import { existsSync as existsSync9 } from "node:fs";
|
|
8595
8598
|
var PATH = "store tables list";
|
|
8596
8599
|
var STORE_TABLES_QUERY = {
|
|
@@ -8633,7 +8636,7 @@ var storeTablesCommand = /* @__PURE__ */ __name((owner) => {
|
|
|
8633
8636
|
return tables;
|
|
8634
8637
|
}, "storeTablesCommand");
|
|
8635
8638
|
|
|
8636
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8639
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/cli/messenger/store-maintenance-command.js
|
|
8637
8640
|
var SEARCH_INDEXES = ["messages_fts", "chats_fts", "identities_fts"];
|
|
8638
8641
|
var WORD_INDEX = "message_words";
|
|
8639
8642
|
var schemaOf = /* @__PURE__ */ __name((database) => {
|