@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
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
sameOrdinaryFile,
|
|
8
8
|
syncDirectory,
|
|
9
9
|
writeFileAtomic
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-SVNTRF5O.js";
|
|
11
11
|
import {
|
|
12
12
|
MAX_ACTIONS,
|
|
13
13
|
ModerationRules,
|
|
@@ -23,10 +23,10 @@ import {
|
|
|
23
23
|
someUndone,
|
|
24
24
|
validateFormattedText,
|
|
25
25
|
visibleFormattedText
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-ZKH5CHGI.js";
|
|
27
27
|
import {
|
|
28
28
|
MAX_MODEL_IMAGE_BYTES
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-YQAUH3PN.js";
|
|
30
30
|
import {
|
|
31
31
|
Command,
|
|
32
32
|
DEFAULT_IMAGE_MODEL,
|
|
@@ -65,17 +65,17 @@ import {
|
|
|
65
65
|
typedCommand,
|
|
66
66
|
vectorModelKey,
|
|
67
67
|
withAttempt
|
|
68
|
-
} from "./chunk-
|
|
68
|
+
} from "./chunk-GQKYSGIA.js";
|
|
69
69
|
import {
|
|
70
70
|
isCliFailure
|
|
71
|
-
} from "./chunk-
|
|
71
|
+
} from "./chunk-QUGFBY7O.js";
|
|
72
72
|
import {
|
|
73
73
|
isNewer,
|
|
74
74
|
updateCommand
|
|
75
75
|
} from "./chunk-ZD3WUGR2.js";
|
|
76
76
|
import {
|
|
77
77
|
remoteKey
|
|
78
|
-
} from "./chunk-
|
|
78
|
+
} from "./chunk-TMVIQJCG.js";
|
|
79
79
|
import {
|
|
80
80
|
AGENDA_COLUMNS,
|
|
81
81
|
CHAT_COLUMNS,
|
|
@@ -130,7 +130,7 @@ import {
|
|
|
130
130
|
threadConversation,
|
|
131
131
|
validateAst,
|
|
132
132
|
validateFields
|
|
133
|
-
} from "./chunk-
|
|
133
|
+
} from "./chunk-BKZEYTLU.js";
|
|
134
134
|
import {
|
|
135
135
|
COUNTER_FIELDS,
|
|
136
136
|
INTERNAL_NOTES,
|
|
@@ -149,12 +149,13 @@ import {
|
|
|
149
149
|
parseReference,
|
|
150
150
|
providerNamed,
|
|
151
151
|
rankingOptions
|
|
152
|
-
} from "./chunk-
|
|
152
|
+
} from "./chunk-BPF7IXJT.js";
|
|
153
153
|
import {
|
|
154
154
|
TASK_KINDS,
|
|
155
155
|
TASK_STATES,
|
|
156
|
-
createTaskService
|
|
157
|
-
|
|
156
|
+
createTaskService,
|
|
157
|
+
isClosedState
|
|
158
|
+
} from "./chunk-EKE3R36Y.js";
|
|
158
159
|
import {
|
|
159
160
|
EVENT_QUERY,
|
|
160
161
|
MEETING_PROJECT_EVIDENCE_QUERY,
|
|
@@ -195,17 +196,17 @@ import {
|
|
|
195
196
|
validateQuery,
|
|
196
197
|
walkQuery,
|
|
197
198
|
zonedMoment
|
|
198
|
-
} from "./chunk-
|
|
199
|
+
} from "./chunk-ZNYJG4AY.js";
|
|
199
200
|
import {
|
|
200
201
|
DEFAULT_STEMMERS,
|
|
201
202
|
createStemmer,
|
|
202
203
|
fold,
|
|
203
204
|
normalize
|
|
204
|
-
} from "./chunk-
|
|
205
|
+
} from "./chunk-Z6F7EXT2.js";
|
|
205
206
|
import {
|
|
206
207
|
DEFAULT_TASK_CATEGORIES,
|
|
207
208
|
FALLBACK_CATEGORY
|
|
208
|
-
} from "./chunk-
|
|
209
|
+
} from "./chunk-6HIW7IJL.js";
|
|
209
210
|
import {
|
|
210
211
|
Unzip,
|
|
211
212
|
UnzipInflate,
|
|
@@ -216,15 +217,15 @@ import {
|
|
|
216
217
|
placedText,
|
|
217
218
|
runEmbedders,
|
|
218
219
|
textModelsDirectory
|
|
219
|
-
} from "./chunk-
|
|
220
|
+
} from "./chunk-QLYHLW54.js";
|
|
220
221
|
import {
|
|
221
222
|
installFiles,
|
|
222
223
|
megabytes
|
|
223
|
-
} from "./chunk-
|
|
224
|
+
} from "./chunk-CT7NG7BI.js";
|
|
224
225
|
import {
|
|
225
226
|
storePath,
|
|
226
227
|
wirecatDirectory
|
|
227
|
-
} from "./chunk-
|
|
228
|
+
} from "./chunk-5JOKRFWE.js";
|
|
228
229
|
import {
|
|
229
230
|
resolvePaths
|
|
230
231
|
} from "./chunk-J3QXTBD2.js";
|
|
@@ -16869,10 +16870,10 @@ var require_lib3 = __commonJS({
|
|
|
16869
16870
|
}
|
|
16870
16871
|
});
|
|
16871
16872
|
|
|
16872
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16873
|
+
// 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/ports/traits.js
|
|
16873
16874
|
var syncsOneChat = /* @__PURE__ */ __name((messenger) => messenger.history !== "store" || messenger.historyOnDemand === true, "syncsOneChat");
|
|
16874
16875
|
|
|
16875
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16876
|
+
// 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/conversations/link.js
|
|
16876
16877
|
var RULES_VERSION = 5;
|
|
16877
16878
|
var LOOK_BACK = 50;
|
|
16878
16879
|
var SAME_SENDER_WITHIN = 10;
|
|
@@ -16962,7 +16963,7 @@ var latest = /* @__PURE__ */ __name((window3, matches) => {
|
|
|
16962
16963
|
var sameThread = /* @__PURE__ */ __name((a, b) => a.threadId === b.threadId, "sameThread");
|
|
16963
16964
|
var link = /* @__PURE__ */ __name((message, parentId, source, kind, confidence, method) => ({ messageId: message.id, parentId, source, kind, confidence, method }), "link");
|
|
16964
16965
|
|
|
16965
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16966
|
+
// 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/lacks.js
|
|
16966
16967
|
var COMMAND_NEEDS = {
|
|
16967
16968
|
"account update": ["updateProfile", "change the profile"],
|
|
16968
16969
|
"account sessions list": ["sessions", "list the account's sessions"],
|
|
@@ -17012,7 +17013,7 @@ var hideNever = /* @__PURE__ */ __name((messenger, group) => {
|
|
|
17012
17013
|
return group;
|
|
17013
17014
|
}, "hideNever");
|
|
17014
17015
|
|
|
17015
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17016
|
+
// 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/services/members-audit.js
|
|
17016
17017
|
var AUDIT_PAGE = 200;
|
|
17017
17018
|
var AUDIT_BUDGET = 10;
|
|
17018
17019
|
var AUDIT_PAUSE_MS = 1e3;
|
|
@@ -17092,7 +17093,7 @@ var burstJoins = /* @__PURE__ */ __name((members) => {
|
|
|
17092
17093
|
return found;
|
|
17093
17094
|
}, "burstJoins");
|
|
17094
17095
|
|
|
17095
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17096
|
+
// 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/meetings/cli/query-options.js
|
|
17096
17097
|
var queryWordsAfterOptions = /* @__PURE__ */ __name((command) => {
|
|
17097
17098
|
command.allowUnknownOption();
|
|
17098
17099
|
const parse = command.parseOptions.bind(command);
|
|
@@ -17112,7 +17113,7 @@ var queryWordsAfterOptions = /* @__PURE__ */ __name((command) => {
|
|
|
17112
17113
|
return command;
|
|
17113
17114
|
}, "queryWordsAfterOptions");
|
|
17114
17115
|
|
|
17115
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17116
|
+
// 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/meetings/cli/passage.js
|
|
17116
17117
|
var count = /* @__PURE__ */ __name((value) => {
|
|
17117
17118
|
if (!/^(0|[1-9]\d*)$/.test(value) || !Number.isSafeInteger(Number(value)))
|
|
17118
17119
|
throw new CliError("validation_error", "expected a nonnegative safe integer");
|
|
@@ -17154,7 +17155,7 @@ var addMeetingPassageCommandDefinition = /* @__PURE__ */ __name((program, deps)
|
|
|
17154
17155
|
var createMeetingPassageCommand = sharedCommand(createMeetingPassageCommandDefinition);
|
|
17155
17156
|
var addMeetingPassageCommand = sharedCommand(addMeetingPassageCommandDefinition);
|
|
17156
17157
|
|
|
17157
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17158
|
+
// 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/meetings/cli/project-evidence.js
|
|
17158
17159
|
var integer = /* @__PURE__ */ __name((value) => {
|
|
17159
17160
|
if (!/^[1-9]\d*$/.test(value) || !Number.isSafeInteger(Number(value)))
|
|
17160
17161
|
throw new CliError("validation_error", "expected a positive safe integer");
|
|
@@ -17177,7 +17178,7 @@ ${fieldsHelp(MEETING_PROJECT_EVIDENCE_QUERY)}`).option("--limit <n>", "hits in o
|
|
|
17177
17178
|
}, "addMeetingProjectEvidenceCommandDefinition");
|
|
17178
17179
|
var addMeetingProjectEvidenceCommand = sharedCommand(addMeetingProjectEvidenceCommandDefinition);
|
|
17179
17180
|
|
|
17180
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17181
|
+
// 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/meetings/cli/search.js
|
|
17181
17182
|
var ZONED = /(?:Z|[+-]\d{2}:?\d{2})$/i;
|
|
17182
17183
|
var moment = /* @__PURE__ */ __name((flag, end, readIn) => (value) => {
|
|
17183
17184
|
const zone = timezoneOf();
|
|
@@ -17263,7 +17264,7 @@ var addMeetingSearchCommandDefinition = /* @__PURE__ */ __name((program, deps) =
|
|
|
17263
17264
|
var createMeetingSearchCommand = sharedCommand(createMeetingSearchCommandDefinition);
|
|
17264
17265
|
var addMeetingSearchCommand = sharedCommand(addMeetingSearchCommandDefinition);
|
|
17265
17266
|
|
|
17266
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17267
|
+
// 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/meetings/cli/index.js
|
|
17267
17268
|
var integer3 = /* @__PURE__ */ __name((text2) => {
|
|
17268
17269
|
if (!/^[1-9]\d*$/.test(text2) || !Number.isSafeInteger(Number(text2)))
|
|
17269
17270
|
throw new InvalidArgumentError("expected a positive integer");
|
|
@@ -17383,7 +17384,7 @@ ${fieldsHelp(EVENT_QUERY, MEETING_QUERY_GUIDE)}`);
|
|
|
17383
17384
|
}, "addMeetingCommandsDefinition");
|
|
17384
17385
|
var addMeetingCommands = sharedCommand(addMeetingCommandsDefinition);
|
|
17385
17386
|
|
|
17386
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17387
|
+
// 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/list-query.js
|
|
17387
17388
|
var LIST_QUERY_GUIDE = "https://github.com/WireCatLabs/cli-core/blob/main/docs/search/query-language.md";
|
|
17388
17389
|
var withQuery = /* @__PURE__ */ __name((command, registry) => {
|
|
17389
17390
|
const query = defineQuery(registry);
|
|
@@ -17400,9 +17401,9 @@ var unfilteredQuery = /* @__PURE__ */ __name((entity, schema2) => ({
|
|
|
17400
17401
|
backend: "native",
|
|
17401
17402
|
fields: queryFieldsOf(schema2, {})
|
|
17402
17403
|
}), "unfilteredQuery");
|
|
17403
|
-
var listQuery = /* @__PURE__ */ __name((text2, registry, command) => {
|
|
17404
|
+
var listQuery = /* @__PURE__ */ __name((text2, registry, command, { defaultField = "none" } = {}) => {
|
|
17404
17405
|
const context2 = { command, guide: LIST_QUERY_GUIDE };
|
|
17405
|
-
const typed = text2.trim() === "" ? void 0 : parseLucene(text2, { defaultField
|
|
17406
|
+
const typed = text2.trim() === "" ? void 0 : parseLucene(text2, { defaultField, ...context2 });
|
|
17406
17407
|
if (typed)
|
|
17407
17408
|
validateQuery(typed, registry, context2);
|
|
17408
17409
|
const named2 = typed ? fieldsNamed(typed) : /* @__PURE__ */ new Set();
|
|
@@ -17499,7 +17500,7 @@ var termField = /* @__PURE__ */ __name((name, type, example, more = {}) => nativ
|
|
|
17499
17500
|
var queryHelp = /* @__PURE__ */ __name((registry) => `
|
|
17500
17501
|
${fieldsHelp(registry, LIST_QUERY_GUIDE)}`, "queryHelp");
|
|
17501
17502
|
|
|
17502
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17503
|
+
// 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/paging.js
|
|
17503
17504
|
var positiveCount = /* @__PURE__ */ __name((flag) => (value) => {
|
|
17504
17505
|
if (!/^\d+$/.test(value.trim()) || Number(value) < 1)
|
|
17505
17506
|
throw new CliError("validation_error", `${flag} takes a whole number from 1 upwards, not "${value}"`);
|
|
@@ -17508,7 +17509,7 @@ var positiveCount = /* @__PURE__ */ __name((flag) => (value) => {
|
|
|
17508
17509
|
var withPaging = /* @__PURE__ */ __name((command) => command.option("--limit <n>", "how many to show", positiveCount("--limit")).option("--page <n>", "which page, starting at 1", positiveCount("--page")).option("--all", "every row, no paging"), "withPaging");
|
|
17509
17510
|
var window = /* @__PURE__ */ __name(({ limit, page, all }) => all ? { offset: 0 } : { limit, offset: (page - 1) * limit }, "window");
|
|
17510
17511
|
|
|
17511
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17512
|
+
// 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/chat-answers.js
|
|
17512
17513
|
var defined = /* @__PURE__ */ __name((record2) => Object.fromEntries(Object.entries(record2).filter(([, value]) => value !== void 0)), "defined");
|
|
17513
17514
|
var chatRef = /* @__PURE__ */ __name((account, chat) => formatReference({ type: "chat", provider: account.provider, account: account.account, chat }), "chatRef");
|
|
17514
17515
|
var settingsOf = /* @__PURE__ */ __name((settings) => defined({
|
|
@@ -17770,7 +17771,7 @@ var sessionAnswer = /* @__PURE__ */ __name(({ current, client, device, location,
|
|
|
17770
17771
|
...createdAt === void 0 ? {} : { created_at: createdAt }
|
|
17771
17772
|
}), "sessionAnswer");
|
|
17772
17773
|
|
|
17773
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17774
|
+
// 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/services/deps.js
|
|
17774
17775
|
var accountStore = /* @__PURE__ */ __name(async (deps) => (await deps.store()).forAccount(await deps.account()), "accountStore");
|
|
17775
17776
|
var crossAccount = /* @__PURE__ */ __name((deps, _reason) => deps.store(), "crossAccount");
|
|
17776
17777
|
var NO_LOCAL_STORE = "this answer comes from the messenger, not from the local store";
|
|
@@ -17835,7 +17836,7 @@ var storedDeps = /* @__PURE__ */ __name((messenger, store, account, guard) => ({
|
|
|
17835
17836
|
}), "storedDeps");
|
|
17836
17837
|
var storeModeDeps = /* @__PURE__ */ __name((messenger, store, account, guard) => ({ ...storedDeps(messenger, store, account, guard), offline: false, reads: "store" }), "storeModeDeps");
|
|
17837
17838
|
|
|
17838
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17839
|
+
// 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/ports/messenger.js
|
|
17839
17840
|
var throughWrapper = /* @__PURE__ */ __name((inner, handled, wrap = (_, call) => call) => new Proxy(handled, {
|
|
17840
17841
|
get: /* @__PURE__ */ __name((own, key) => {
|
|
17841
17842
|
if (key in own)
|
|
@@ -17852,12 +17853,12 @@ var capability = /* @__PURE__ */ __name((adapter, method, what) => {
|
|
|
17852
17853
|
return found.bind(adapter);
|
|
17853
17854
|
}, "capability");
|
|
17854
17855
|
|
|
17855
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17856
|
+
// 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/send-id.js
|
|
17856
17857
|
import { randomBytes } from "node:crypto";
|
|
17857
17858
|
var newSendId = /* @__PURE__ */ __name(() => randomBytes(8).readBigInt64BE().toString(), "newSendId");
|
|
17858
17859
|
var newOperationId = newSendId;
|
|
17859
17860
|
|
|
17860
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17861
|
+
// 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/services/moment.js
|
|
17861
17862
|
var AGO = /^(\d+)(m|h|d)$/;
|
|
17862
17863
|
var AGO_MS = { m: 6e4, h: 36e5, d: 864e5 };
|
|
17863
17864
|
var DATE = /^\d{4}-\d{2}-\d{2}/;
|
|
@@ -17897,7 +17898,7 @@ var dateWindow = /* @__PURE__ */ __name(({ sinceTime, untilTime, zone, now = Dat
|
|
|
17897
17898
|
};
|
|
17898
17899
|
}, "dateWindow");
|
|
17899
17900
|
|
|
17900
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17901
|
+
// 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/services/questions.js
|
|
17901
17902
|
var LINKS = /https?:\/\/\S+/g;
|
|
17902
17903
|
var unanswered = /* @__PURE__ */ __name((messages, { answerers: answerers2, before: before2 }) => questions(messages, { answerers: answerers2 }).filter(({ question, answer }) => answer === void 0 && Date.parse(question.timestamp) < before2).map(({ question }) => question), "unanswered");
|
|
17903
17904
|
var questions = /* @__PURE__ */ __name((messages, { answerers: answerers2 }) => {
|
|
@@ -17924,7 +17925,7 @@ var questions = /* @__PURE__ */ __name((messages, { answerers: answerers2 }) =>
|
|
|
17924
17925
|
});
|
|
17925
17926
|
}, "questions");
|
|
17926
17927
|
|
|
17927
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17928
|
+
// 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/services/task-categories.js
|
|
17928
17929
|
var names = /* @__PURE__ */ __name((categories) => categories.map(({ name }) => name).join(", "), "names");
|
|
17929
17930
|
var taskCategoryOf = /* @__PURE__ */ __name((categories = DEFAULT_TASK_CATEGORIES, flag = "--category") => (typed) => {
|
|
17930
17931
|
const name = typed.trim().toLowerCase();
|
|
@@ -17974,7 +17975,7 @@ var categorize = /* @__PURE__ */ __name((text2, categories = DEFAULT_TASK_CATEGO
|
|
|
17974
17975
|
return best.name;
|
|
17975
17976
|
}, "categorize");
|
|
17976
17977
|
|
|
17977
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17978
|
+
// 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/services/task-rules.js
|
|
17978
17979
|
var taskAccount = /* @__PURE__ */ __name(({ provider, account }) => `${provider}:${account}`, "taskAccount");
|
|
17979
17980
|
var RULES_IN = {
|
|
17980
17981
|
dialog: "all",
|
|
@@ -18016,7 +18017,7 @@ var applyTaskRules = /* @__PURE__ */ __name(async (review, { store, account, now
|
|
|
18016
18017
|
}, "open");
|
|
18017
18018
|
const close = /* @__PURE__ */ __name(async (message, kind, answer) => {
|
|
18018
18019
|
for (const task2 of await store.findBySource(owner, sourceOf2(message))) {
|
|
18019
|
-
if (task2.kind !== kind || task2.state
|
|
18020
|
+
if (task2.kind !== kind || isClosedState(task2.state))
|
|
18020
18021
|
continue;
|
|
18021
18022
|
result.closed += 1;
|
|
18022
18023
|
if (dryRun)
|
|
@@ -18180,7 +18181,7 @@ var applyTaskRulesToChats = /* @__PURE__ */ __name(async (store, account, chatId
|
|
|
18180
18181
|
return passes;
|
|
18181
18182
|
}, "applyTaskRulesToChats");
|
|
18182
18183
|
|
|
18183
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18184
|
+
// 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/botcheck/check.js
|
|
18184
18185
|
var DAY_MS = 864e5;
|
|
18185
18186
|
var NEW_DAYS = 30;
|
|
18186
18187
|
var SAME_TEXT_MIN = 20;
|
|
@@ -18257,7 +18258,7 @@ var scorePerson = /* @__PURE__ */ __name(({ subject, provider, activity, photos,
|
|
|
18257
18258
|
};
|
|
18258
18259
|
}, "scorePerson");
|
|
18259
18260
|
|
|
18260
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18261
|
+
// 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/botcheck/registries.js
|
|
18261
18262
|
var REGISTRIES = {
|
|
18262
18263
|
cas: { title: "Combot Anti-Spam (CAS)", docs: "https://cas.chat/api" },
|
|
18263
18264
|
lols: { title: "lols.bot", docs: "https://api.lols.bot/lols-bot.json" }
|
|
@@ -18342,7 +18343,7 @@ var notCovered = /* @__PURE__ */ __name((messenger, now = /* @__PURE__ */ new Da
|
|
|
18342
18343
|
detail: `lists Telegram accounts only, not ${messenger} ones`
|
|
18343
18344
|
})), "notCovered");
|
|
18344
18345
|
|
|
18345
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18346
|
+
// 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/botcheck/service.js
|
|
18346
18347
|
var ACTIVITY_MESSAGES = 1e3;
|
|
18347
18348
|
var botCheckService = /* @__PURE__ */ __name((deps) => {
|
|
18348
18349
|
const subjectOf = /* @__PURE__ */ __name(async (reference) => {
|
|
@@ -18430,7 +18431,7 @@ var botCheckService = /* @__PURE__ */ __name((deps) => {
|
|
|
18430
18431
|
};
|
|
18431
18432
|
}, "botCheckService");
|
|
18432
18433
|
|
|
18433
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18434
|
+
// 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/domain/thread.js
|
|
18434
18435
|
var threadIdOf = /* @__PURE__ */ __name((value) => {
|
|
18435
18436
|
if (value === void 0)
|
|
18436
18437
|
return void 0;
|
|
@@ -18440,7 +18441,7 @@ var threadIdOf = /* @__PURE__ */ __name((value) => {
|
|
|
18440
18441
|
return id2;
|
|
18441
18442
|
}, "threadIdOf");
|
|
18442
18443
|
|
|
18443
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18444
|
+
// 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/services/chat-stats.js
|
|
18444
18445
|
var TOP_POSTS = 5;
|
|
18445
18446
|
var JOINS = /* @__PURE__ */ new Set(["join", "add"]);
|
|
18446
18447
|
var LEAVES = /* @__PURE__ */ new Set(["leave", "remove"]);
|
|
@@ -18557,7 +18558,7 @@ var median = /* @__PURE__ */ __name((values) => {
|
|
|
18557
18558
|
return Math.round(sorted.length % 2 === 0 ? ((sorted[middle - 1] ?? upper) + upper) / 2 : upper);
|
|
18558
18559
|
}, "median");
|
|
18559
18560
|
|
|
18560
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18561
|
+
// 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/services/member-history.js
|
|
18561
18562
|
var memberEvents = /* @__PURE__ */ __name((stays, revisions, since = 0) => {
|
|
18562
18563
|
const events = [];
|
|
18563
18564
|
for (const stay of stays) {
|
|
@@ -18589,7 +18590,7 @@ var memberEvents = /* @__PURE__ */ __name((stays, revisions, since = 0) => {
|
|
|
18589
18590
|
return events.filter(({ at }) => Date.parse(at) >= since).sort((a, b) => Date.parse(a.at) - Date.parse(b.at) || a.id.localeCompare(b.id));
|
|
18590
18591
|
}, "memberEvents");
|
|
18591
18592
|
|
|
18592
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18593
|
+
// 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/services/message-resolution.js
|
|
18593
18594
|
var readChatId = /* @__PURE__ */ __name(async (deps, reference, store, account) => {
|
|
18594
18595
|
if (deps.reads !== "store")
|
|
18595
18596
|
return keptChatId(deps.messenger, reference, store, account);
|
|
@@ -18736,7 +18737,7 @@ var senderAmong = /* @__PURE__ */ __name(async (store, accounts, reference) => {
|
|
|
18736
18737
|
}
|
|
18737
18738
|
}, "senderAmong");
|
|
18738
18739
|
|
|
18739
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18740
|
+
// 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/services/chats.js
|
|
18740
18741
|
var EVENTS_DAYS = 7;
|
|
18741
18742
|
var TRACKED_DAYS = 30;
|
|
18742
18743
|
var STATS_PAGE = 1e3;
|
|
@@ -19031,7 +19032,7 @@ var storedMembers = /* @__PURE__ */ __name(async (store, chatId) => {
|
|
|
19031
19032
|
return members.length === 0 ? null : members;
|
|
19032
19033
|
}, "storedMembers");
|
|
19033
19034
|
|
|
19034
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19035
|
+
// 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/services/inbox.js
|
|
19035
19036
|
var INBOX_CHATS = 20;
|
|
19036
19037
|
var REVIEW_DAYS = 3;
|
|
19037
19038
|
var UNANSWERED_HOURS = 24;
|
|
@@ -19239,7 +19240,7 @@ var inboxService = /* @__PURE__ */ __name((deps) => {
|
|
|
19239
19240
|
};
|
|
19240
19241
|
}, "inboxService");
|
|
19241
19242
|
|
|
19242
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19243
|
+
// 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/services/person-context.js
|
|
19243
19244
|
var CONTEXT_MESSAGES = 10;
|
|
19244
19245
|
var CONTEXT_BYTES = 64 * 1024;
|
|
19245
19246
|
var toContext = /* @__PURE__ */ __name((key, message, chatTitle) => ({
|
|
@@ -19495,10 +19496,10 @@ var personMessages = /* @__PURE__ */ __name(async (store, asked, reference, { ch
|
|
|
19495
19496
|
};
|
|
19496
19497
|
}, "personMessages");
|
|
19497
19498
|
|
|
19498
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19499
|
+
// 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/services/meeting-evidence.js
|
|
19499
19500
|
import { createHash } from "node:crypto";
|
|
19500
19501
|
|
|
19501
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19502
|
+
// 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/services/meeting-reference.js
|
|
19502
19503
|
var missing2 = /* @__PURE__ */ __name(() => new CliError("not_found", "the meeting evidence is unavailable for this account"), "missing");
|
|
19503
19504
|
var authorizedMeetingMetadata = /* @__PURE__ */ __name(async (store, accountId, reference, options = {}) => {
|
|
19504
19505
|
const parsed = parseMeetingReference(reference);
|
|
@@ -19516,7 +19517,7 @@ var authorizedMeetingMetadata = /* @__PURE__ */ __name(async (store, accountId,
|
|
|
19516
19517
|
return { parsed, meeting };
|
|
19517
19518
|
}, "authorizedMeetingMetadata");
|
|
19518
19519
|
|
|
19519
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19520
|
+
// 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/services/meeting-evidence.js
|
|
19520
19521
|
var hash = /* @__PURE__ */ __name((value) => createHash("sha256").update(JSON.stringify(value)).digest("hex"), "hash");
|
|
19521
19522
|
var checkMeetingCancelled = /* @__PURE__ */ __name((signal) => {
|
|
19522
19523
|
if (signal?.aborted)
|
|
@@ -19715,7 +19716,7 @@ var readMeetingEvidence = /* @__PURE__ */ __name(async (store, accountId, refere
|
|
|
19715
19716
|
return { ...packet, fingerprint: hash(packet) };
|
|
19716
19717
|
}, "readMeetingEvidence");
|
|
19717
19718
|
|
|
19718
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19719
|
+
// 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/services/person-meeting-context.js
|
|
19719
19720
|
var personMeetingContext = /* @__PURE__ */ __name(async (store, personReference, options) => {
|
|
19720
19721
|
const { meetings = 10, cues = 5, bytes: bytes2 = 64 * 1024, scanLimit = 1e3, since, signal } = options;
|
|
19721
19722
|
const requestedAccounts = options.accountIds;
|
|
@@ -19814,7 +19815,7 @@ var personMeetingContext = /* @__PURE__ */ __name(async (store, personReference,
|
|
|
19814
19815
|
};
|
|
19815
19816
|
}, "personMeetingContext");
|
|
19816
19817
|
|
|
19817
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19818
|
+
// 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/services/person-preparation.js
|
|
19818
19819
|
var PREPARE_BYTES = 96 * 1024;
|
|
19819
19820
|
var MEETINGS = 5;
|
|
19820
19821
|
var CUES = 3;
|
|
@@ -19931,7 +19932,7 @@ var meetingsOf = /* @__PURE__ */ __name(async (store, uid, stored, since, left)
|
|
|
19931
19932
|
}
|
|
19932
19933
|
}, "meetingsOf");
|
|
19933
19934
|
|
|
19934
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19935
|
+
// 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/services/person-profile.js
|
|
19935
19936
|
var personProfile = /* @__PURE__ */ __name(async (deps, person, known2) => {
|
|
19936
19937
|
const online = deps.offline ? void 0 : await deps.connection();
|
|
19937
19938
|
const held = await storeIfOpen(deps);
|
|
@@ -20001,7 +20002,7 @@ var quiet = /* @__PURE__ */ __name((facts) => facts.chats.map(({ id: id2, title,
|
|
|
20001
20002
|
complete: false
|
|
20002
20003
|
})), "quiet");
|
|
20003
20004
|
|
|
20004
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20005
|
+
// 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/services/person-timeline.js
|
|
20005
20006
|
var TIMELINE_ITEMS = 50;
|
|
20006
20007
|
var TIMELINE_MAX = 500;
|
|
20007
20008
|
var SCOPES = ["personal", "work"];
|
|
@@ -20056,7 +20057,7 @@ var personTimeline = /* @__PURE__ */ __name(async (store, asked, reference, { sc
|
|
|
20056
20057
|
};
|
|
20057
20058
|
}, "personTimeline");
|
|
20058
20059
|
|
|
20059
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20060
|
+
// 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/services/people.js
|
|
20060
20061
|
var peopleService = /* @__PURE__ */ __name((deps) => {
|
|
20061
20062
|
const localCard = /* @__PURE__ */ __name(async (card, includeNotes = false) => {
|
|
20062
20063
|
const held = await storeIfOpen(deps);
|
|
@@ -20283,7 +20284,7 @@ var withoutPhone = /* @__PURE__ */ __name((answer) => {
|
|
|
20283
20284
|
return rest;
|
|
20284
20285
|
}, "withoutPhone");
|
|
20285
20286
|
|
|
20286
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20287
|
+
// 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/services/task-tag-filters.js
|
|
20287
20288
|
var taskTagFilters = /* @__PURE__ */ __name(async (store, query) => {
|
|
20288
20289
|
const tags = /* @__PURE__ */ new Map();
|
|
20289
20290
|
for (const node of query ? walkQuery(query.root) : [])
|
|
@@ -20292,7 +20293,7 @@ var taskTagFilters = /* @__PURE__ */ __name(async (store, query) => {
|
|
|
20292
20293
|
return tags;
|
|
20293
20294
|
}, "taskTagFilters");
|
|
20294
20295
|
|
|
20295
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20296
|
+
// 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/services/tasks.js
|
|
20296
20297
|
var TASK_QUERY = {
|
|
20297
20298
|
entity: "task",
|
|
20298
20299
|
backend: "sql",
|
|
@@ -20429,7 +20430,7 @@ var tasksService = /* @__PURE__ */ __name((deps, categories) => {
|
|
|
20429
20430
|
const planOf = /* @__PURE__ */ __name(async (store, id2, plan, by) => {
|
|
20430
20431
|
if (plan.category !== void 0)
|
|
20431
20432
|
plan = { ...plan, category: await categoryOf(store, plan.category) };
|
|
20432
|
-
const open7 = (await store.tasks.details(id2)).status
|
|
20433
|
+
const open7 = !isClosedState((await store.tasks.details(id2)).status);
|
|
20433
20434
|
if (!open7 && (plan.dueAt != null || plan.nextCheckAt != null))
|
|
20434
20435
|
throw new CliError("validation_error", "a closed task takes no due date or next check; it stays closed");
|
|
20435
20436
|
const { assignees, ...fields } = plan;
|
|
@@ -20460,7 +20461,7 @@ var tasksService = /* @__PURE__ */ __name((deps, categories) => {
|
|
|
20460
20461
|
if (!current.some((one) => one.to === to))
|
|
20461
20462
|
await store.tasks.assign(id2, { to, role: "assignee" }, by);
|
|
20462
20463
|
}, "assign");
|
|
20463
|
-
const reviewAfterLink = /* @__PURE__ */ __name(async (store, id2) => (await store.tasks.get(id2))?.state
|
|
20464
|
+
const reviewAfterLink = /* @__PURE__ */ __name(async (store, id2) => !isClosedState((await store.tasks.get(id2))?.state ?? "done") ? store.tasks.reviewDuplicates(id2, { linked: true }) : 0, "reviewAfterLink");
|
|
20464
20465
|
return {
|
|
20465
20466
|
list: /* @__PURE__ */ __name(({ query, limit, offset, previews }) => inStore(async (store, account) => {
|
|
20466
20467
|
const groups = /* @__PURE__ */ new Map();
|
|
@@ -20606,7 +20607,7 @@ var tasksService = /* @__PURE__ */ __name((deps, categories) => {
|
|
|
20606
20607
|
}, "release"),
|
|
20607
20608
|
close: /* @__PURE__ */ __name((id2, { as, reason, by, agent, certainty, suggestOnly }) => inStore(async (store, account) => {
|
|
20608
20609
|
const existing = await owned(store, account, id2);
|
|
20609
|
-
const suggested = existing.state
|
|
20610
|
+
const suggested = !isClosedState(existing.state) ? await store.tasks.closeSuggestion(id2) : null;
|
|
20610
20611
|
const state = as ?? (by === "owner" ? suggested?.as : void 0);
|
|
20611
20612
|
if (state === void 0)
|
|
20612
20613
|
throw new CliError("validation_error", "say how the task is closed: --as done, or --as dismissed");
|
|
@@ -20616,7 +20617,7 @@ var tasksService = /* @__PURE__ */ __name((deps, categories) => {
|
|
|
20616
20617
|
const { closeCertainty, closeSuggestion } = await store.tasks.details(task2.id);
|
|
20617
20618
|
return { ...await taskView(store, account, task2), closeCertainty, closeSuggestion };
|
|
20618
20619
|
}, "closedView");
|
|
20619
|
-
if (by === "agent" && existing.state
|
|
20620
|
+
if (by === "agent" && !isClosedState(existing.state)) {
|
|
20620
20621
|
if (certainty === void 0)
|
|
20621
20622
|
throw new CliError("validation_error", "an agent closes a task with its certainty, 0 to 1: how sure it is the task needs nothing more", { reason: "task.certainty-required" });
|
|
20622
20623
|
const { allowed, min } = await store.tasks.agentClose();
|
|
@@ -20772,7 +20773,7 @@ var taskView = /* @__PURE__ */ __name(async (store, account, task2) => {
|
|
|
20772
20773
|
};
|
|
20773
20774
|
}, "taskView");
|
|
20774
20775
|
|
|
20775
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20776
|
+
// 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/services/chat-coverage.js
|
|
20776
20777
|
var chatCoverage = /* @__PURE__ */ __name(async (store, account, chatIds) => {
|
|
20777
20778
|
const ids = [...new Set(chatIds)];
|
|
20778
20779
|
if (ids.length === 0)
|
|
@@ -20798,7 +20799,7 @@ var chatCoverage = /* @__PURE__ */ __name(async (store, account, chatIds) => {
|
|
|
20798
20799
|
}));
|
|
20799
20800
|
}, "chatCoverage");
|
|
20800
20801
|
|
|
20801
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20802
|
+
// 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/context/evidence-response.js
|
|
20802
20803
|
var contextSourceKey = /* @__PURE__ */ __name((source) => JSON.stringify([source.kind, source.accountId, source.provider, source.account]), "contextSourceKey");
|
|
20803
20804
|
var validateContextEvidencePage = /* @__PURE__ */ __name((page, request) => {
|
|
20804
20805
|
const fail2 = /* @__PURE__ */ __name(() => {
|
|
@@ -20862,7 +20863,7 @@ var validateContextEvidencePage = /* @__PURE__ */ __name((page, request) => {
|
|
|
20862
20863
|
}
|
|
20863
20864
|
}, "validateContextEvidencePage");
|
|
20864
20865
|
|
|
20865
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20866
|
+
// 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/context/read-budget.js
|
|
20866
20867
|
var contextReadBudget = /* @__PURE__ */ __name((limits = {}) => {
|
|
20867
20868
|
if (!limits || typeof limits !== "object" || Array.isArray(limits))
|
|
20868
20869
|
throw new CliError("validation_error", "limits needs a context read allowance");
|
|
@@ -20915,7 +20916,7 @@ var contextReadBudget = /* @__PURE__ */ __name((limits = {}) => {
|
|
|
20915
20916
|
};
|
|
20916
20917
|
}, "contextReadBudget");
|
|
20917
20918
|
|
|
20918
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20919
|
+
// 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/services/context-evidence.js
|
|
20919
20920
|
var createContextEvidenceReader = /* @__PURE__ */ __name((port, allowed, limits) => {
|
|
20920
20921
|
if (!port || typeof port.read !== "function")
|
|
20921
20922
|
throw new CliError("configuration_error", "context evidence reader is unavailable");
|
|
@@ -20959,7 +20960,7 @@ var createContextEvidenceReader = /* @__PURE__ */ __name((port, allowed, limits)
|
|
|
20959
20960
|
};
|
|
20960
20961
|
}, "createContextEvidenceReader");
|
|
20961
20962
|
|
|
20962
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20963
|
+
// 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/services/excerpt.js
|
|
20963
20964
|
var queryWords = /* @__PURE__ */ __name((query) => query.toLowerCase().split(/\s+/).map((word) => word.replace(/^[\p{L}_]+:/u, "").replace(/~\d+$/u, "").replace(/^[^\p{L}\p{N}]+|[^\p{L}\p{N}]+$/gu, "")).filter((word) => word.length > 2 && !["and", "or", "not"].includes(word)), "queryWords");
|
|
20964
20965
|
var excerpt = /* @__PURE__ */ __name((text2, query, size2 = 240, options = {}) => {
|
|
20965
20966
|
const flat = text2.replace(/\s+/g, " ").trim();
|
|
@@ -20975,18 +20976,18 @@ var excerpt = /* @__PURE__ */ __name((text2, query, size2 = 240, options = {}) =
|
|
|
20975
20976
|
}, "excerpt");
|
|
20976
20977
|
var withExcerpt = /* @__PURE__ */ __name(({ matchedText, ...hit }, query) => ({ ...hit, excerpt: excerpt(matchedText ?? hit.text, query) }), "withExcerpt");
|
|
20977
20978
|
|
|
20978
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20979
|
+
// 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/services/media-archive.js
|
|
20979
20980
|
import { setTimeout as sleep } from "node:timers/promises";
|
|
20980
20981
|
|
|
20981
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20982
|
+
// 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/services/media-archive-files.js
|
|
20982
20983
|
import { lstat } from "node:fs/promises";
|
|
20983
20984
|
|
|
20984
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20985
|
+
// 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/persistence/native/recording-partial-store.js
|
|
20985
20986
|
import { createHash as createHash3, randomUUID as randomUUID2 } from "node:crypto";
|
|
20986
20987
|
import { open as open2, rename as rename2, unlink as unlink2 } from "node:fs/promises";
|
|
20987
20988
|
import { join as join2 } from "node:path";
|
|
20988
20989
|
|
|
20989
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20990
|
+
// 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/persistence/native/recording-partial-metadata.js
|
|
20990
20991
|
import { createHash as createHash2 } from "node:crypto";
|
|
20991
20992
|
var metadataLimit = 16384;
|
|
20992
20993
|
var partialIdentity = /* @__PURE__ */ __name((locator) => JSON.stringify([locator.provider, locator.account, locator.occurrenceId, locator.assetId]), "partialIdentity");
|
|
@@ -21046,7 +21047,7 @@ var readPartialMetadata = /* @__PURE__ */ __name(async (path, locator, maxBytes,
|
|
|
21046
21047
|
}
|
|
21047
21048
|
}, "readPartialMetadata");
|
|
21048
21049
|
|
|
21049
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21050
|
+
// 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/persistence/native/recording-partial-writer.js
|
|
21050
21051
|
import { randomUUID } from "node:crypto";
|
|
21051
21052
|
import { open, rename, unlink } from "node:fs/promises";
|
|
21052
21053
|
import { join } from "node:path";
|
|
@@ -21138,7 +21139,7 @@ var partialWriter = /* @__PURE__ */ __name(async (input) => {
|
|
|
21138
21139
|
};
|
|
21139
21140
|
}, "partialWriter");
|
|
21140
21141
|
|
|
21141
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21142
|
+
// 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/persistence/native/recording-partial-store.js
|
|
21142
21143
|
var NativeRecordingPartialStore = class {
|
|
21143
21144
|
static {
|
|
21144
21145
|
__name(this, "NativeRecordingPartialStore");
|
|
@@ -21245,12 +21246,12 @@ var NativeRecordingPartialStore = class {
|
|
|
21245
21246
|
}
|
|
21246
21247
|
};
|
|
21247
21248
|
|
|
21248
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21249
|
+
// 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/persistence/native/recording-publication.js
|
|
21249
21250
|
import { createHash as createHash4 } from "node:crypto";
|
|
21250
21251
|
import { link as link2 } from "node:fs/promises";
|
|
21251
21252
|
import { basename, dirname, join as join4, resolve } from "node:path";
|
|
21252
21253
|
|
|
21253
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21254
|
+
// 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/persistence/native/recording-publication-files.js
|
|
21254
21255
|
import { unlink as unlink3 } from "node:fs/promises";
|
|
21255
21256
|
var verifiedPublicationFile = /* @__PURE__ */ __name(async (path, expected, signal, writable = false) => {
|
|
21256
21257
|
signal?.throwIfAborted();
|
|
@@ -21285,7 +21286,7 @@ var commitPublication = /* @__PURE__ */ __name(async (root, partialPath, finalPa
|
|
|
21285
21286
|
signal?.throwIfAborted();
|
|
21286
21287
|
}, "commitPublication");
|
|
21287
21288
|
|
|
21288
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21289
|
+
// 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/persistence/native/recording-publication-journal.js
|
|
21289
21290
|
import { randomUUID as randomUUID3 } from "node:crypto";
|
|
21290
21291
|
import { open as open3, rename as rename3, unlink as unlink4 } from "node:fs/promises";
|
|
21291
21292
|
import { join as join3 } from "node:path";
|
|
@@ -21358,7 +21359,7 @@ var writePublicationJournal = /* @__PURE__ */ __name(async (root, path, prefix,
|
|
|
21358
21359
|
}
|
|
21359
21360
|
}, "writePublicationJournal");
|
|
21360
21361
|
|
|
21361
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21362
|
+
// 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/persistence/native/recording-publication.js
|
|
21362
21363
|
var NativeRecordingPublication = class {
|
|
21363
21364
|
static {
|
|
21364
21365
|
__name(this, "NativeRecordingPublication");
|
|
@@ -21431,7 +21432,7 @@ var NativeRecordingPublication = class {
|
|
|
21431
21432
|
}
|
|
21432
21433
|
};
|
|
21433
21434
|
|
|
21434
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21435
|
+
// 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/services/media-archive-manifest.js
|
|
21435
21436
|
import { createHash as createHash5 } from "node:crypto";
|
|
21436
21437
|
import { readdir } from "node:fs/promises";
|
|
21437
21438
|
import { isAbsolute, join as join5, resolve as resolve2 } from "node:path";
|
|
@@ -21518,7 +21519,7 @@ var commitMediaEntry = /* @__PURE__ */ __name((root, one, beforePublish) => writ
|
|
|
21518
21519
|
beforePublish
|
|
21519
21520
|
}), "commitMediaEntry");
|
|
21520
21521
|
|
|
21521
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21522
|
+
// 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/services/media-archive-files.js
|
|
21522
21523
|
var validator = '"media-completed-v1"';
|
|
21523
21524
|
var maximumFileBytes = 64 * 1024 * 1024 * 1024;
|
|
21524
21525
|
var archiveMediaFile = /* @__PURE__ */ __name(async (root, identity, kind, file, beforeWrite, signal, metadata = {}) => {
|
|
@@ -21619,7 +21620,7 @@ var archiveMediaFile = /* @__PURE__ */ __name(async (root, identity, kind, file,
|
|
|
21619
21620
|
return entry;
|
|
21620
21621
|
}, "archiveMediaFile");
|
|
21621
21622
|
|
|
21622
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21623
|
+
// 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/services/media-archive-locks.js
|
|
21623
21624
|
import { mkdir, realpath } from "node:fs/promises";
|
|
21624
21625
|
import { join as join6, resolve as resolve3 } from "node:path";
|
|
21625
21626
|
var archiveLocations = /* @__PURE__ */ __name(async (initial, signal) => {
|
|
@@ -21686,7 +21687,7 @@ var withMediaArchiveLocks = /* @__PURE__ */ __name(async (directory2, signal, ru
|
|
|
21686
21687
|
throw new CliError("validation_error", "archive locations changed during locking; run the command again");
|
|
21687
21688
|
}, "withMediaArchiveLocks");
|
|
21688
21689
|
|
|
21689
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21690
|
+
// 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/services/media-archive.js
|
|
21690
21691
|
var validateMediaSince = /* @__PURE__ */ __name((value, flag = "--since-time") => {
|
|
21691
21692
|
if (value === void 0)
|
|
21692
21693
|
return void 0;
|
|
@@ -21839,7 +21840,7 @@ var archiveMedia = /* @__PURE__ */ __name(async (ports, options) => {
|
|
|
21839
21840
|
}, { create: true });
|
|
21840
21841
|
}, "archiveMedia");
|
|
21841
21842
|
|
|
21842
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21843
|
+
// 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/services/media-archive-move.js
|
|
21843
21844
|
import { realpath as realpath2, unlink as unlink5 } from "node:fs/promises";
|
|
21844
21845
|
import { basename as basename2, dirname as dirname2, join as join7, resolve as resolve4 } from "node:path";
|
|
21845
21846
|
var canonicalDestination = /* @__PURE__ */ __name(async (directory2) => {
|
|
@@ -21992,7 +21993,7 @@ var moveMediaArchive = /* @__PURE__ */ __name(async (options) => {
|
|
|
21992
21993
|
}, { additional: [target2], createAdditional: !options.dryRun });
|
|
21993
21994
|
}, "moveMediaArchive");
|
|
21994
21995
|
|
|
21995
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21996
|
+
// 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/services/model-downloads.js
|
|
21996
21997
|
var bytesOf = /* @__PURE__ */ __name((model) => model.files.reduce((sum2, file) => sum2 + file.bytes, 0), "bytesOf");
|
|
21997
21998
|
var nativeRuntime = /* @__PURE__ */ __name(async ({ env, progress = /* @__PURE__ */ __name(() => {
|
|
21998
21999
|
}, "progress") }) => {
|
|
@@ -22015,7 +22016,7 @@ var downloadTextModel = /* @__PURE__ */ __name(async (id2, { env, progress = /*
|
|
|
22015
22016
|
}
|
|
22016
22017
|
await nativeRuntime({ env, progress });
|
|
22017
22018
|
progress(`${model.id}: loading it once to check it works`);
|
|
22018
|
-
const { openEmbedder: openEmbedder2 } = await import("./embed-
|
|
22019
|
+
const { openEmbedder: openEmbedder2 } = await import("./embed-E33ZBHQR.js");
|
|
22019
22020
|
const embedder = await openEmbedder2(model, directory2);
|
|
22020
22021
|
try {
|
|
22021
22022
|
const [vector] = await embedder.embed(["check"], "query");
|
|
@@ -22036,7 +22037,7 @@ var downloadRerankModel = /* @__PURE__ */ __name(async (id2, { env, progress = /
|
|
|
22036
22037
|
}
|
|
22037
22038
|
await nativeRuntime({ env, progress });
|
|
22038
22039
|
progress(`${model.id}: loading it once to check it works`);
|
|
22039
|
-
const { openReranker } = await import("./rerank-
|
|
22040
|
+
const { openReranker } = await import("./rerank-NAO5RMGB.js");
|
|
22040
22041
|
const reranker = await openReranker(model, directory2);
|
|
22041
22042
|
try {
|
|
22042
22043
|
await reranker.score("check", ["check"]);
|
|
@@ -22054,7 +22055,7 @@ var downloadImageModel = /* @__PURE__ */ __name(async (id2, { env, progress = /*
|
|
|
22054
22055
|
await installFiles(placedImage(model, directory2), { progress });
|
|
22055
22056
|
}
|
|
22056
22057
|
progress(`${model.id}: loading it once to check it works`);
|
|
22057
|
-
const { openPictureEmbedder } = await import("./embedder-
|
|
22058
|
+
const { openPictureEmbedder } = await import("./embedder-EMBCIVGF.js");
|
|
22058
22059
|
const embedder = await openPictureEmbedder(model, directory2);
|
|
22059
22060
|
try {
|
|
22060
22061
|
const vector = await embedder.embedQuery("check");
|
|
@@ -22066,7 +22067,7 @@ var downloadImageModel = /* @__PURE__ */ __name(async (id2, { env, progress = /*
|
|
|
22066
22067
|
return { model, directory: directory2 };
|
|
22067
22068
|
}, "downloadImageModel");
|
|
22068
22069
|
|
|
22069
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22070
|
+
// 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/services/project-gathering-around.js
|
|
22070
22071
|
var storedMessageNeighbours = /* @__PURE__ */ __name((messages) => ({
|
|
22071
22072
|
async around(ref, window3) {
|
|
22072
22073
|
const at = parseLocator(ref);
|
|
@@ -22161,7 +22162,7 @@ var storedNeighbours = /* @__PURE__ */ __name((store) => {
|
|
|
22161
22162
|
};
|
|
22162
22163
|
}, "storedNeighbours");
|
|
22163
22164
|
|
|
22164
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22165
|
+
// 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/services/project-gathering-request.js
|
|
22165
22166
|
import { createHash as createHash6 } from "node:crypto";
|
|
22166
22167
|
var DAY = 864e5;
|
|
22167
22168
|
var MAX_TIME = 864e13;
|
|
@@ -22477,7 +22478,7 @@ var decodeCheckpoint = /* @__PURE__ */ __name((text2, plan) => {
|
|
|
22477
22478
|
return value;
|
|
22478
22479
|
}, "decodeCheckpoint");
|
|
22479
22480
|
|
|
22480
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22481
|
+
// 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/services/project-gathering.js
|
|
22481
22482
|
var terminal = /* @__PURE__ */ new Set(["done", "unavailable", "failed"]);
|
|
22482
22483
|
var PAGE = 20;
|
|
22483
22484
|
var PEOPLE = 20;
|
|
@@ -22881,7 +22882,7 @@ var peopleOf = /* @__PURE__ */ __name((items, senderOf) => {
|
|
|
22881
22882
|
return [...byKey.values()].sort((a, b) => b.items - a.items || a.name.localeCompare(b.name));
|
|
22882
22883
|
}, "peopleOf");
|
|
22883
22884
|
|
|
22884
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22885
|
+
// 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/services/meeting-project-candidate-matching.js
|
|
22885
22886
|
var normalizedText = /* @__PURE__ */ __name((text2) => text2.normalize("NFKC").toLowerCase().replace(/\s+/gu, " "), "normalizedText");
|
|
22886
22887
|
var termsOf = /* @__PURE__ */ __name((entry) => [
|
|
22887
22888
|
{ name: entry.name, kind: "canonical" },
|
|
@@ -22925,7 +22926,7 @@ var matchVocabularyTerms = /* @__PURE__ */ __name((catalog, texts) => {
|
|
|
22925
22926
|
return result.sort((a, b) => Number(a.entry.id) - Number(b.entry.id));
|
|
22926
22927
|
}, "matchVocabularyTerms");
|
|
22927
22928
|
|
|
22928
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22929
|
+
// 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/services/project-gathering-mentions.js
|
|
22929
22930
|
var KINDS = ["project", "tag", "topic"];
|
|
22930
22931
|
var findEvidenceMentions = /* @__PURE__ */ __name(async (vocabulary, gathering, options = {}) => {
|
|
22931
22932
|
if (typeof vocabulary?.vocabulary !== "function")
|
|
@@ -22980,7 +22981,7 @@ var findEvidenceMentions = /* @__PURE__ */ __name(async (vocabulary, gathering,
|
|
|
22980
22981
|
};
|
|
22981
22982
|
}, "findEvidenceMentions");
|
|
22982
22983
|
|
|
22983
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22984
|
+
// 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/services/stored-project-gathering.js
|
|
22984
22985
|
var PROJECT_ID = /^project:[1-9]\d*$/;
|
|
22985
22986
|
var canonicalProjectRef = /* @__PURE__ */ __name(async (store, reference) => {
|
|
22986
22987
|
if (PROJECT_ID.test(reference)) {
|
|
@@ -23146,7 +23147,7 @@ var gatherStoredProject = /* @__PURE__ */ __name(async (store, input) => {
|
|
|
23146
23147
|
return { projectRef: project.ref, unreadSources: [...unread, ...unreadChats, ...members.left], ...gathered, mentions };
|
|
23147
23148
|
}, "gatherStoredProject");
|
|
23148
23149
|
|
|
23149
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23150
|
+
// 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/services/account.js
|
|
23150
23151
|
var accountService = /* @__PURE__ */ __name((deps) => {
|
|
23151
23152
|
const online = /* @__PURE__ */ __name(async (command) => {
|
|
23152
23153
|
if (deps.offline)
|
|
@@ -23218,7 +23219,7 @@ var accountService = /* @__PURE__ */ __name((deps) => {
|
|
|
23218
23219
|
};
|
|
23219
23220
|
}, "accountService");
|
|
23220
23221
|
|
|
23221
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23222
|
+
// 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/domain/send-time.js
|
|
23222
23223
|
var MINUTE = 6e4;
|
|
23223
23224
|
var YEAR = 365 * 24 * 60 * MINUTE;
|
|
23224
23225
|
var DELAY = /^(\d+)(m|h|d)$/;
|
|
@@ -23237,7 +23238,7 @@ var sendTime = /* @__PURE__ */ __name((value, now = Date.now(), flag = "--at-tim
|
|
|
23237
23238
|
return new Date(at - at % MINUTE).toISOString();
|
|
23238
23239
|
}, "sendTime");
|
|
23239
23240
|
|
|
23240
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23241
|
+
// 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/services/admin.js
|
|
23241
23242
|
var recordMembership = /* @__PURE__ */ __name(async (deps, operationId, done2, change, fix, write) => {
|
|
23242
23243
|
try {
|
|
23243
23244
|
const held = await accountStoreIfOpen(deps);
|
|
@@ -23484,7 +23485,7 @@ var linkLimits = /* @__PURE__ */ __name(({ approval, expires, maxUses }) => {
|
|
|
23484
23485
|
return expires === void 0 ? void 0 : sendTime(expires, Date.now(), "--expire-time");
|
|
23485
23486
|
}, "linkLimits");
|
|
23486
23487
|
|
|
23487
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23488
|
+
// 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/services/mail-search.js
|
|
23488
23489
|
var THREADS_PAGE = 500;
|
|
23489
23490
|
var threadsOf = /* @__PURE__ */ __name(async (store, key) => {
|
|
23490
23491
|
const account = await store.accounts.storedAccount(key).catch(() => void 0);
|
|
@@ -23563,7 +23564,7 @@ var readMail = /* @__PURE__ */ __name(async (store, locator, { before: before2 =
|
|
|
23563
23564
|
return thread.slice(Math.max(0, at - before2), at + after + 1).map((hit) => hit.id === message ? { ...hit, anchor: true } : hit);
|
|
23564
23565
|
}, "readMail");
|
|
23565
23566
|
|
|
23566
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23567
|
+
// 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/services/search-kind.js
|
|
23567
23568
|
var NO_MAIL = "no_mail";
|
|
23568
23569
|
var MAIL = "email";
|
|
23569
23570
|
var listContextOf = /* @__PURE__ */ __name(async (store, account, app, stored) => {
|
|
@@ -23610,7 +23611,7 @@ var accountsOfKind = /* @__PURE__ */ __name((kind, chosen, held, explicit, comma
|
|
|
23610
23611
|
return chosenMail.map(({ provider, account }) => ({ provider, account }));
|
|
23611
23612
|
}, "accountsOfKind");
|
|
23612
23613
|
|
|
23613
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23614
|
+
// 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/services/messages-search.js
|
|
23614
23615
|
var MAIL_FIELDS = /* @__PURE__ */ new Set(["to", "cc", "bcc", "subject", "mailbox", "label", "is"]);
|
|
23615
23616
|
var positiveSources = /* @__PURE__ */ __name((node) => node.kind === "predicate" ? node.field === "in" ? [node.value.toLowerCase()] : [] : node.clauses.filter(({ occur }) => occur !== "must_not").flatMap(({ node: node2 }) => positiveSources(node2)), "positiveSources");
|
|
23616
23617
|
var prepareLucene = /* @__PURE__ */ __name(async (store, account, request, messenger) => {
|
|
@@ -23958,7 +23959,7 @@ var statsLucene = /* @__PURE__ */ __name(async (store, account, request, messeng
|
|
|
23958
23959
|
};
|
|
23959
23960
|
}, "statsLucene");
|
|
23960
23961
|
|
|
23961
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23962
|
+
// 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/services/rankings-selection.js
|
|
23962
23963
|
var RANKING_SELECTION_BYTES = 64 * 1024;
|
|
23963
23964
|
var object = /* @__PURE__ */ __name((value) => value !== null && typeof value === "object" && !Array.isArray(value) ? value : void 0, "object");
|
|
23964
23965
|
function invalid(message = "ranking selection is invalid \u2014 obtain a new drilldown from stats top") {
|
|
@@ -24127,7 +24128,7 @@ var readRankingSelection = /* @__PURE__ */ __name(async (store, input) => {
|
|
|
24127
24128
|
};
|
|
24128
24129
|
}, "readRankingSelection");
|
|
24129
24130
|
|
|
24130
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24131
|
+
// 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/services/search-record.js
|
|
24131
24132
|
var canonical = /* @__PURE__ */ __name((value, nested = false) => Array.isArray(value) ? value.map((one) => canonical(one, true)) : value !== null && typeof value === "object" ? Object.fromEntries(Object.entries(value).filter(([, one]) => one !== void 0 && (nested || one !== false)).sort(([a], [b]) => a < b ? -1 : a > b ? 1 : 0).map(([key, one]) => [key, canonical(one, true)])) : value, "canonical");
|
|
24132
24133
|
var searchRecordOf = /* @__PURE__ */ __name((command, params) => ({
|
|
24133
24134
|
command,
|
|
@@ -24137,7 +24138,7 @@ var searchRecordOf = /* @__PURE__ */ __name((command, params) => ({
|
|
|
24137
24138
|
fieldsVersion: FIELD_VERSION
|
|
24138
24139
|
}), "searchRecordOf");
|
|
24139
24140
|
|
|
24140
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24141
|
+
// 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/services/admin-statistics.js
|
|
24141
24142
|
function invalid2(message) {
|
|
24142
24143
|
throw new CliError("validation_error", message);
|
|
24143
24144
|
}
|
|
@@ -24431,7 +24432,7 @@ var adminStatisticsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
24431
24432
|
}, "evidence")
|
|
24432
24433
|
}), "adminStatisticsService");
|
|
24433
24434
|
|
|
24434
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24435
|
+
// 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/services/agenda.js
|
|
24435
24436
|
var DAY2 = 864e5;
|
|
24436
24437
|
var CLAIMS = ["none", "mine", "others", "any"];
|
|
24437
24438
|
var TASK_FIELDS = /* @__PURE__ */ new Set(["tag", "category", "claimed"]);
|
|
@@ -24673,10 +24674,10 @@ var agendaItem = /* @__PURE__ */ __name((shown) => {
|
|
|
24673
24674
|
};
|
|
24674
24675
|
}, "agendaItem");
|
|
24675
24676
|
|
|
24676
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24677
|
+
// 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/services/archive.js
|
|
24677
24678
|
import { setTimeout as sleep3 } from "node:timers/promises";
|
|
24678
24679
|
|
|
24679
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24680
|
+
// 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/services/backfill-estimate.js
|
|
24680
24681
|
var REQUEST_MS = 400;
|
|
24681
24682
|
var estimateBackfill = /* @__PURE__ */ __name(({ ranges, held, newest, page, maxPages, pauseMs }) => {
|
|
24682
24683
|
const lowest = ranges[0];
|
|
@@ -24699,13 +24700,13 @@ var estimateBackfill = /* @__PURE__ */ __name(({ ranges, held, newest, page, max
|
|
|
24699
24700
|
};
|
|
24700
24701
|
}, "estimateBackfill");
|
|
24701
24702
|
|
|
24702
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24703
|
+
// 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/domain/recovery.js
|
|
24703
24704
|
var withRecovery = /* @__PURE__ */ __name((error) => ({
|
|
24704
24705
|
...error,
|
|
24705
24706
|
retryable: typeof error.retryable === "boolean" ? error.retryable : error.code === "rate_limited" || error.status === 429
|
|
24706
24707
|
}), "withRecovery");
|
|
24707
24708
|
|
|
24708
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24709
|
+
// 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/services/batch.js
|
|
24709
24710
|
var actionable = /* @__PURE__ */ __name((error) => {
|
|
24710
24711
|
if (isCliFailure(error))
|
|
24711
24712
|
return withRecovery({ code: error.code, message: error.message, ...error.details });
|
|
@@ -24788,7 +24789,7 @@ var mergeBatches = /* @__PURE__ */ __name((a, b) => {
|
|
|
24788
24789
|
};
|
|
24789
24790
|
}, "mergeBatches");
|
|
24790
24791
|
|
|
24791
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24792
|
+
// 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/services/patience.js
|
|
24792
24793
|
import { setTimeout as sleep2 } from "node:timers/promises";
|
|
24793
24794
|
var LONGEST_WAIT_MS = 5 * 60 * 1e3;
|
|
24794
24795
|
var patiently = /* @__PURE__ */ __name(async (request, note, stop) => {
|
|
@@ -24811,7 +24812,7 @@ var patiently = /* @__PURE__ */ __name(async (request, note, stop) => {
|
|
|
24811
24812
|
}
|
|
24812
24813
|
}, "patiently");
|
|
24813
24814
|
|
|
24814
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24815
|
+
// 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/images/context/index.js
|
|
24815
24816
|
var CONTEXT_MESSAGES2 = 3;
|
|
24816
24817
|
var CONTEXT_MINUTES = 10;
|
|
24817
24818
|
var MAX_CHARS = 1200;
|
|
@@ -24835,12 +24836,12 @@ var context = {
|
|
|
24835
24836
|
}, "describe")
|
|
24836
24837
|
};
|
|
24837
24838
|
|
|
24838
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24839
|
+
// 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/images/registry.js
|
|
24839
24840
|
var BUILT_INS = [context];
|
|
24840
24841
|
var providers = [...BUILT_INS];
|
|
24841
24842
|
var registeredImageProviders = /* @__PURE__ */ __name(() => providers, "registeredImageProviders");
|
|
24842
24843
|
|
|
24843
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24844
|
+
// 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/services/conversations.js
|
|
24844
24845
|
var READ_PAGE = 5e3;
|
|
24845
24846
|
var CHAIN = 50;
|
|
24846
24847
|
var CONVERSATION_QUERY = {
|
|
@@ -24992,7 +24993,7 @@ var sized = /* @__PURE__ */ __name((size2) => {
|
|
|
24992
24993
|
return size2;
|
|
24993
24994
|
}, "sized");
|
|
24994
24995
|
|
|
24995
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24996
|
+
// 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/services/embeddings-maintenance.js
|
|
24996
24997
|
var REFRESH_BOUNDS = { maxChats: 20, maxChunks: 2e3 };
|
|
24997
24998
|
var MESSAGE_PAGE = 5e3;
|
|
24998
24999
|
var PER_SESSION = 8;
|
|
@@ -25011,7 +25012,7 @@ var embeddingTarget = /* @__PURE__ */ __name((deps, choice = DEFAULT_TEXT_MODEL)
|
|
|
25011
25012
|
price: remote.price,
|
|
25012
25013
|
installed: true,
|
|
25013
25014
|
perBatch: PER_REQUEST * concurrency,
|
|
25014
|
-
open: /* @__PURE__ */ __name(async () => (await import("./remote-
|
|
25015
|
+
open: /* @__PURE__ */ __name(async () => (await import("./remote-SSPZEAJ7.js")).openRemote(remote, apiKey, { concurrency }), "open")
|
|
25015
25016
|
};
|
|
25016
25017
|
}
|
|
25017
25018
|
const model = textModel(choice);
|
|
@@ -25028,7 +25029,7 @@ var embeddingTarget = /* @__PURE__ */ __name((deps, choice = DEFAULT_TEXT_MODEL)
|
|
|
25028
25029
|
if (!isTextModelInstalled(model, directory2))
|
|
25029
25030
|
throw notDownloaded(model.id);
|
|
25030
25031
|
if (apart) {
|
|
25031
|
-
const { openProcess } = await import("./process-
|
|
25032
|
+
const { openProcess } = await import("./process-TXIK4VJP.js");
|
|
25032
25033
|
return openProcess(model, directory2, { threads: threads ?? defaultThreads() });
|
|
25033
25034
|
}
|
|
25034
25035
|
return openEmbedder(model, directory2, { threads: threads ?? defaultThreads() });
|
|
@@ -25317,7 +25318,7 @@ var shaped = /* @__PURE__ */ __name(({ chatId, builtAt, algorithmVersion, pendin
|
|
|
25317
25318
|
return { ...one, state };
|
|
25318
25319
|
}, "shaped");
|
|
25319
25320
|
|
|
25320
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25321
|
+
// 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/services/search-catchup.js
|
|
25321
25322
|
var CATCH_UP_BOUNDS = { maxChunks: 500, maxMessages: 1e4, timeMs: 3e4 };
|
|
25322
25323
|
var validateCatchUpBounds = /* @__PURE__ */ __name((options) => {
|
|
25323
25324
|
for (const [key, value, maximum] of [
|
|
@@ -25370,7 +25371,7 @@ var catchUpSearch = /* @__PURE__ */ __name(async (deps, chat, options, signal, c
|
|
|
25370
25371
|
}
|
|
25371
25372
|
}, "catchUpSearch");
|
|
25372
25373
|
|
|
25373
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25374
|
+
// 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/services/archive.js
|
|
25374
25375
|
var pushed = /* @__PURE__ */ __name((deps, what) => {
|
|
25375
25376
|
if (deps.reads === "store") {
|
|
25376
25377
|
throw new CliError("validation_error", `${what} asks for older history, and this messenger pushes its history instead \u2014 keep \`${typedCommand(deps.messenger.app.command, "serve")}\` running`);
|
|
@@ -25691,7 +25692,7 @@ var timeOfKey = /* @__PURE__ */ __name(async (store, account, chatId, key, byTim
|
|
|
25691
25692
|
return message?.timestamp ?? fallback;
|
|
25692
25693
|
}, "timeOfKey");
|
|
25693
25694
|
|
|
25694
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25695
|
+
// 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/services/archive-gaps.js
|
|
25695
25696
|
import { createHash as createHash7, randomUUID as randomUUID4 } from "node:crypto";
|
|
25696
25697
|
var GAP_BOUNDS = { maxGaps: 5, limit: 500, timeMs: 3e4 };
|
|
25697
25698
|
var validateRepair = /* @__PURE__ */ __name((messenger, options) => {
|
|
@@ -25828,16 +25829,16 @@ var gapsService = /* @__PURE__ */ __name((deps) => {
|
|
|
25828
25829
|
return { plan, repair };
|
|
25829
25830
|
}, "gapsService");
|
|
25830
25831
|
|
|
25831
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25832
|
+
// 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/services/attachments.js
|
|
25832
25833
|
import { createHash as createHash9 } from "node:crypto";
|
|
25833
25834
|
import { constants as constants2 } from "node:fs";
|
|
25834
25835
|
import { open as open6, readFile, stat as stat2 } from "node:fs/promises";
|
|
25835
25836
|
|
|
25836
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25837
|
+
// 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/attachments/directory.js
|
|
25837
25838
|
import { lstat as lstat2, readdir as readdir2, realpath as realpath3 } from "node:fs/promises";
|
|
25838
25839
|
import { basename as basename4, join as join8, relative as relative2, sep as sep2 } from "node:path";
|
|
25839
25840
|
|
|
25840
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25841
|
+
// 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/upload.js
|
|
25841
25842
|
import { openAsBlob, realpathSync } from "node:fs";
|
|
25842
25843
|
import { open as open4, stat } from "node:fs/promises";
|
|
25843
25844
|
import { basename as basename3, dirname as dirname3, extname, isAbsolute as isAbsolute2, relative, resolve as resolve5, sep } from "node:path";
|
|
@@ -26039,7 +26040,7 @@ var readStickerFile = /* @__PURE__ */ __name(async (path, maxBytes, read) => {
|
|
|
26039
26040
|
return { name, source };
|
|
26040
26041
|
}, "readStickerFile");
|
|
26041
26042
|
|
|
26042
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26043
|
+
// 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/attachments/directory.js
|
|
26043
26044
|
var MAX_FILES = 1e4;
|
|
26044
26045
|
var directoryPaths = /* @__PURE__ */ __name(async (store, chat, directory2, app, env) => {
|
|
26045
26046
|
if (refusedPlace(directory2, app, env))
|
|
@@ -26108,15 +26109,15 @@ var directoryPaths = /* @__PURE__ */ __name(async (store, chat, directory2, app,
|
|
|
26108
26109
|
return choices;
|
|
26109
26110
|
}, "directoryPaths");
|
|
26110
26111
|
|
|
26111
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26112
|
+
// 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/attachments/documents.js
|
|
26112
26113
|
import { posix } from "node:path";
|
|
26113
26114
|
|
|
26114
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26115
|
+
// 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/attachments/container.js
|
|
26115
26116
|
import { setImmediate as tick } from "node:timers/promises";
|
|
26116
26117
|
import { crc32 } from "node:zlib";
|
|
26117
26118
|
var import_xmldom = __toESM(require_lib(), 1);
|
|
26118
26119
|
|
|
26119
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26120
|
+
// 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/attachments/encoding.js
|
|
26120
26121
|
var import_chardet = __toESM(require_lib2(), 1);
|
|
26121
26122
|
var import_iconv_lite = __toESM(require_lib3(), 1);
|
|
26122
26123
|
var SAMPLE = 65536;
|
|
@@ -26218,7 +26219,7 @@ var decodeXml = /* @__PURE__ */ __name((bytes2) => {
|
|
|
26218
26219
|
return result.text;
|
|
26219
26220
|
}, "decodeXml");
|
|
26220
26221
|
|
|
26221
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26222
|
+
// 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/attachments/container.js
|
|
26222
26223
|
var MAX_PART = 10 * 1024 * 1024;
|
|
26223
26224
|
var MAX_ENTRIES = 1e3;
|
|
26224
26225
|
var decoder = new TextDecoder("utf-8", { fatal: true });
|
|
@@ -26433,7 +26434,7 @@ var elements = /* @__PURE__ */ __name((node, name, namespace) => {
|
|
|
26433
26434
|
return found;
|
|
26434
26435
|
}, "elements");
|
|
26435
26436
|
|
|
26436
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26437
|
+
// 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/attachments/sheets.js
|
|
26437
26438
|
var columnName = /* @__PURE__ */ __name((column) => {
|
|
26438
26439
|
let name = "";
|
|
26439
26440
|
for (let rest = column; rest > 0; rest = Math.floor((rest - 1) / 26))
|
|
@@ -26488,7 +26489,7 @@ var sheetText = /* @__PURE__ */ __name((sheets2, maxChars = MAX_TEXT_CHARS) => {
|
|
|
26488
26489
|
return { text: parts.join("").trim(), truncated: false };
|
|
26489
26490
|
}, "sheetText");
|
|
26490
26491
|
|
|
26491
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26492
|
+
// 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/attachments/documents.js
|
|
26492
26493
|
var OFFICE = "urn:oasis:names:tc:opendocument:xmlns:office:1.0";
|
|
26493
26494
|
var TEXT = "urn:oasis:names:tc:opendocument:xmlns:text:1.0";
|
|
26494
26495
|
var TABLE = "urn:oasis:names:tc:opendocument:xmlns:table:1.0";
|
|
@@ -26888,10 +26889,10 @@ var readDocument = /* @__PURE__ */ __name(async (bytes2, kind, signal) => {
|
|
|
26888
26889
|
}
|
|
26889
26890
|
}, "readDocument");
|
|
26890
26891
|
|
|
26891
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26892
|
+
// 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/attachments/extract.js
|
|
26892
26893
|
import { extname as extname3 } from "node:path";
|
|
26893
26894
|
|
|
26894
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26895
|
+
// 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/readers/engine.js
|
|
26895
26896
|
import { readFileSync } from "node:fs";
|
|
26896
26897
|
import { dirname as dirname4, extname as extname2, join as join9 } from "node:path";
|
|
26897
26898
|
import { fileURLToPath } from "node:url";
|
|
@@ -26952,7 +26953,7 @@ var derived = /* @__PURE__ */ __name((bytes2, extractor, read) => {
|
|
|
26952
26953
|
}
|
|
26953
26954
|
}, "derived");
|
|
26954
26955
|
|
|
26955
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26956
|
+
// 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/readers/image/index.js
|
|
26956
26957
|
var IMAGES = /* @__PURE__ */ new Set([".jpg", ".jpeg", ".png", ".webp", ".gif", ".heic", ".tif", ".tiff", ".bmp"]);
|
|
26957
26958
|
var image2 = {
|
|
26958
26959
|
id: "image",
|
|
@@ -26961,7 +26962,7 @@ var image2 = {
|
|
|
26961
26962
|
read: /* @__PURE__ */ __name(async () => ({ status: "needs-agent" }), "read")
|
|
26962
26963
|
};
|
|
26963
26964
|
|
|
26964
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26965
|
+
// 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/readers/doc/index.js
|
|
26965
26966
|
var OLE = "\xD0\xCF\xE0\xA1\xB1\xE1";
|
|
26966
26967
|
var doc = {
|
|
26967
26968
|
id: "doc",
|
|
@@ -26973,7 +26974,7 @@ var doc = {
|
|
|
26973
26974
|
}), "read")
|
|
26974
26975
|
};
|
|
26975
26976
|
|
|
26976
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26977
|
+
// 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/readers/docx/index.js
|
|
26977
26978
|
var DOCX = "application/vnd.openxmlformats-officedocument.wordprocessingml.document";
|
|
26978
26979
|
var docx = {
|
|
26979
26980
|
id: "docx",
|
|
@@ -26986,7 +26987,7 @@ var docx = {
|
|
|
26986
26987
|
}), "read")
|
|
26987
26988
|
};
|
|
26988
26989
|
|
|
26989
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26990
|
+
// 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/attachments/markup.js
|
|
26990
26991
|
var import_iconv_lite2 = __toESM(require_lib3(), 1);
|
|
26991
26992
|
var RTF_SKIPPED = /* @__PURE__ */ new Set([
|
|
26992
26993
|
"fonttbl",
|
|
@@ -27162,7 +27163,7 @@ var htmlText = /* @__PURE__ */ __name((source) => {
|
|
|
27162
27163
|
}, "htmlText");
|
|
27163
27164
|
var safeChar = /* @__PURE__ */ __name((code, fallback) => code > 0 && code <= 1114111 ? String.fromCodePoint(code) : fallback, "safeChar");
|
|
27164
27165
|
|
|
27165
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27166
|
+
// 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/readers/html/page.js
|
|
27166
27167
|
var clean = /* @__PURE__ */ __name((value) => typeof value === "string" ? value.replace(/\s+/g, " ").trim() : "", "clean");
|
|
27167
27168
|
var namesIn = /* @__PURE__ */ __name((value) => [value].flat().map((entry) => typeof entry === "string" ? clean(entry) : clean(entry?.name)).filter(Boolean).join(", "), "namesIn");
|
|
27168
27169
|
var jsonLdNodes = /* @__PURE__ */ __name((document) => {
|
|
@@ -27218,7 +27219,7 @@ var markdownSections = /* @__PURE__ */ __name((text2) => {
|
|
|
27218
27219
|
return found.map((section, index) => ({ ...section, end: found[index + 1]?.start ?? text2.length }));
|
|
27219
27220
|
}, "markdownSections");
|
|
27220
27221
|
|
|
27221
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27222
|
+
// 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/readers/html/index.js
|
|
27222
27223
|
var HTML = /* @__PURE__ */ new Set([".html", ".htm", ".xhtml"]);
|
|
27223
27224
|
var first = /* @__PURE__ */ __name((...values) => values.find((value) => typeof value === "string" && value !== ""), "first");
|
|
27224
27225
|
var loaded = /* @__PURE__ */ __name(async (load, name) => {
|
|
@@ -27289,7 +27290,7 @@ var html = {
|
|
|
27289
27290
|
}, "read")
|
|
27290
27291
|
};
|
|
27291
27292
|
|
|
27292
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27293
|
+
// 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/readers/office/index.js
|
|
27293
27294
|
var office = {
|
|
27294
27295
|
id: "office",
|
|
27295
27296
|
version: documentExtractor("odt"),
|
|
@@ -27300,7 +27301,7 @@ var office = {
|
|
|
27300
27301
|
}, "read")
|
|
27301
27302
|
};
|
|
27302
27303
|
|
|
27303
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27304
|
+
// 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/readers/pdf/index.js
|
|
27304
27305
|
var pdf = {
|
|
27305
27306
|
id: "pdf",
|
|
27306
27307
|
version: "unpdf",
|
|
@@ -27367,7 +27368,7 @@ var pdf = {
|
|
|
27367
27368
|
}), "read")
|
|
27368
27369
|
};
|
|
27369
27370
|
|
|
27370
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27371
|
+
// 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/readers/plain/index.js
|
|
27371
27372
|
var PLAIN = /* @__PURE__ */ new Set([".txt", ".md", ".markdown", ".csv", ".tsv", ".json", ".log"]);
|
|
27372
27373
|
var isPlain = /* @__PURE__ */ __name((hint) => PLAIN.has(extensionOf(hint)) || hint.mime?.startsWith("text/") || hint.mime === "application/json", "isPlain");
|
|
27373
27374
|
var readPlain = /* @__PURE__ */ __name((bytes2) => {
|
|
@@ -27387,7 +27388,7 @@ var plain = {
|
|
|
27387
27388
|
read: /* @__PURE__ */ __name(async (bytes2) => readPlain(bytes2), "read")
|
|
27388
27389
|
};
|
|
27389
27390
|
|
|
27390
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27391
|
+
// 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/readers/rtf/index.js
|
|
27391
27392
|
var rtf = {
|
|
27392
27393
|
id: "rtf",
|
|
27393
27394
|
version: "v1",
|
|
@@ -27395,10 +27396,10 @@ var rtf = {
|
|
|
27395
27396
|
read: /* @__PURE__ */ __name(async (bytes2) => derived(bytes2, "rtf:v1", rtfText), "read")
|
|
27396
27397
|
};
|
|
27397
27398
|
|
|
27398
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27399
|
+
// 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/readers/sheets/index.js
|
|
27399
27400
|
import { basename as basename5 } from "node:path";
|
|
27400
27401
|
|
|
27401
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27402
|
+
// 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/attachments/csv-spans.js
|
|
27402
27403
|
var delimitedSpans = /* @__PURE__ */ __name((text2, delimiter, maxCells = 1e4) => {
|
|
27403
27404
|
const cells = [];
|
|
27404
27405
|
let row = 1, column = 1, start = 0, quoted = false, truncated = false;
|
|
@@ -27436,7 +27437,7 @@ var delimitedSpans = /* @__PURE__ */ __name((text2, delimiter, maxCells = 1e4) =
|
|
|
27436
27437
|
return { cells, truncated };
|
|
27437
27438
|
}, "delimitedSpans");
|
|
27438
27439
|
|
|
27439
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27440
|
+
// 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/readers/sheets/index.js
|
|
27440
27441
|
var DELIMITED = {
|
|
27441
27442
|
".csv": ",",
|
|
27442
27443
|
".tsv": " ",
|
|
@@ -27475,7 +27476,7 @@ var sheets = {
|
|
|
27475
27476
|
}, "read")
|
|
27476
27477
|
};
|
|
27477
27478
|
|
|
27478
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27479
|
+
// 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/readers/registry.js
|
|
27479
27480
|
var BUILT_INS2 = [office, pdf, docx, doc, rtf, html, sheets, plain, image2];
|
|
27480
27481
|
var HEAD_BYTES = 1024;
|
|
27481
27482
|
var readers = [...BUILT_INS2];
|
|
@@ -27485,7 +27486,7 @@ var readWithRegistry = /* @__PURE__ */ __name(async (bytes2, hint, context2) =>
|
|
|
27485
27486
|
return reader ? reader.read(bytes2, hint, context2) : { status: "unsupported" };
|
|
27486
27487
|
}, "readWithRegistry");
|
|
27487
27488
|
|
|
27488
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27489
|
+
// 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/attachments/extract.js
|
|
27489
27490
|
var importEngine = /* @__PURE__ */ __name((name) => importFrom(new URL("attachments/extract.js", import.meta.resolve("@wirecat/cli-core")).href, name), "importEngine");
|
|
27490
27491
|
var extensionOf2 = /* @__PURE__ */ __name(({ name, path }) => extname3(name ?? path).toLowerCase(), "extensionOf");
|
|
27491
27492
|
var extractText = /* @__PURE__ */ __name(async (bytes2, hint, load, signal, env = process.env) => {
|
|
@@ -28564,7 +28565,7 @@ function imageSize(input) {
|
|
|
28564
28565
|
}
|
|
28565
28566
|
__name(imageSize, "imageSize");
|
|
28566
28567
|
|
|
28567
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28568
|
+
// 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/attachments/ocr.js
|
|
28568
28569
|
var MAX_PAGES = 20;
|
|
28569
28570
|
var MAX_PIXELS = 2e7;
|
|
28570
28571
|
var cancelled2 = /* @__PURE__ */ __name((signal) => {
|
|
@@ -28715,7 +28716,7 @@ var ocrPdf = /* @__PURE__ */ __name(async (bytes2, pipeline2, load, signal) => {
|
|
|
28715
28716
|
}
|
|
28716
28717
|
}, "ocrPdf");
|
|
28717
28718
|
|
|
28718
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28719
|
+
// 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/attachments/pdf-preview.js
|
|
28719
28720
|
var pdfPreview = /* @__PURE__ */ __name(async (bytes2, page, signal, load = importEngine, env = process.env) => {
|
|
28720
28721
|
const limits = pdfPreviewLimits(env);
|
|
28721
28722
|
const cancelled4 = /* @__PURE__ */ __name(() => {
|
|
@@ -28792,7 +28793,7 @@ var pdfPreview = /* @__PURE__ */ __name(async (bytes2, page, signal, load = impo
|
|
|
28792
28793
|
}
|
|
28793
28794
|
}, "pdfPreview");
|
|
28794
28795
|
|
|
28795
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28796
|
+
// 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/attachments/transfer.js
|
|
28796
28797
|
import { createHash as createHash8 } from "node:crypto";
|
|
28797
28798
|
import { constants } from "node:fs";
|
|
28798
28799
|
import { lstat as lstat3, open as open5 } from "node:fs/promises";
|
|
@@ -28900,7 +28901,7 @@ var transferMime = /* @__PURE__ */ __name((head, hint, name = null) => {
|
|
|
28900
28901
|
return hint !== null && /^[a-z0-9.+-]+\/[a-z0-9.+-]+$/i.test(hint) ? hint : "application/octet-stream";
|
|
28901
28902
|
}, "transferMime");
|
|
28902
28903
|
|
|
28903
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28904
|
+
// 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/services/attachments.js
|
|
28904
28905
|
var ATTACHMENT_QUERY = {
|
|
28905
28906
|
entity: "attachment",
|
|
28906
28907
|
backend: "sql",
|
|
@@ -29281,7 +29282,7 @@ var attachmentsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
29281
29282
|
}, "setText")
|
|
29282
29283
|
}), "attachmentsService");
|
|
29283
29284
|
|
|
29284
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29285
|
+
// 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/services/chat-documents.js
|
|
29285
29286
|
var chatDocumentsService = /* @__PURE__ */ __name((deps) => ({
|
|
29286
29287
|
list: /* @__PURE__ */ __name(async (chat, { limit, offset, ref }) => {
|
|
29287
29288
|
const store = await accountStore(deps);
|
|
@@ -29311,7 +29312,7 @@ var chatDocumentsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
29311
29312
|
}, "list")
|
|
29312
29313
|
}), "chatDocumentsService");
|
|
29313
29314
|
|
|
29314
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29315
|
+
// 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/services/retention.js
|
|
29315
29316
|
var observationDuration = /* @__PURE__ */ __name((text2, flag) => {
|
|
29316
29317
|
const match = /^(\d+(?:\.\d+)?)([smhdw])$/.exec(text2);
|
|
29317
29318
|
const units2 = { s: 1e3, m: 6e4, h: 36e5, d: 864e5, w: 6048e5 };
|
|
@@ -29398,7 +29399,7 @@ var isRetentionSelection = /* @__PURE__ */ __name((selection) => {
|
|
|
29398
29399
|
}
|
|
29399
29400
|
}, "isRetentionSelection");
|
|
29400
29401
|
|
|
29401
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29402
|
+
// 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/services/counters.js
|
|
29402
29403
|
var counterFields = /* @__PURE__ */ __name((text2 = "views,reactions,comments") => {
|
|
29403
29404
|
const fields = text2.split(",").map((one) => one.trim());
|
|
29404
29405
|
if (!fields.length || fields.some((one) => !COUNTER_FIELDS.includes(one)) || new Set(fields).size !== fields.length)
|
|
@@ -29605,7 +29606,7 @@ var countersService = /* @__PURE__ */ __name((deps) => {
|
|
|
29605
29606
|
};
|
|
29606
29607
|
}, "countersService");
|
|
29607
29608
|
|
|
29608
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29609
|
+
// 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/services/search-refresh.js
|
|
29609
29610
|
var SYNC_KEY = "messages.sync-first";
|
|
29610
29611
|
var SYNC_BOUNDS = { maxChats: 5, timeMs: 3e4, maxMessages: 500 };
|
|
29611
29612
|
var keyOf2 = /* @__PURE__ */ __name((chat) => JSON.stringify([chat.account.provider, chat.account.account, chat.chatId]), "keyOf");
|
|
@@ -29737,7 +29738,7 @@ var withRefresh = /* @__PURE__ */ __name((found, refreshed) => ({
|
|
|
29737
29738
|
...!refreshed || refreshed.complete ? {} : { coverage: { ...found.coverage, state: "stale" } }
|
|
29738
29739
|
}), "withRefresh");
|
|
29739
29740
|
|
|
29740
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29741
|
+
// 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/services/embeddings-search.js
|
|
29741
29742
|
var CANDIDATES = 50;
|
|
29742
29743
|
var WORD_HITS = 200;
|
|
29743
29744
|
var RRF_K = 60;
|
|
@@ -30012,13 +30013,13 @@ var meanOf = /* @__PURE__ */ __name((vectors) => {
|
|
|
30012
30013
|
return mean.map((value) => value / length);
|
|
30013
30014
|
}, "meanOf");
|
|
30014
30015
|
|
|
30015
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30016
|
+
// 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/services/embeddings.js
|
|
30016
30017
|
var embeddingsService = /* @__PURE__ */ __name((deps) => ({
|
|
30017
30018
|
...embeddingsMaintenance(deps),
|
|
30018
30019
|
...embeddingsSearch(deps)
|
|
30019
30020
|
}), "embeddingsService");
|
|
30020
30021
|
|
|
30021
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30022
|
+
// 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/services/folders.js
|
|
30022
30023
|
var foldersService = /* @__PURE__ */ __name((deps) => {
|
|
30023
30024
|
const online = /* @__PURE__ */ __name(async (command) => {
|
|
30024
30025
|
if (deps.offline)
|
|
@@ -30159,7 +30160,7 @@ var foldersService = /* @__PURE__ */ __name((deps) => {
|
|
|
30159
30160
|
};
|
|
30160
30161
|
}, "foldersService");
|
|
30161
30162
|
|
|
30162
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30163
|
+
// 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/services/mentions.js
|
|
30163
30164
|
var REVIEW_COUNT = 500;
|
|
30164
30165
|
var mentionsService = /* @__PURE__ */ __name((deps) => {
|
|
30165
30166
|
const located = /* @__PURE__ */ __name(async () => {
|
|
@@ -30238,7 +30239,7 @@ var mentionsService = /* @__PURE__ */ __name((deps) => {
|
|
|
30238
30239
|
};
|
|
30239
30240
|
}, "mentionsService");
|
|
30240
30241
|
|
|
30241
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30242
|
+
// 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/domain/message-link.js
|
|
30242
30243
|
var messageLinkTarget = /* @__PURE__ */ __name((reference, message, provider) => {
|
|
30243
30244
|
if (isLocator(reference)) {
|
|
30244
30245
|
if (message !== void 0)
|
|
@@ -30285,7 +30286,7 @@ var validatePermalink = /* @__PURE__ */ __name((link4) => {
|
|
|
30285
30286
|
return { url: link4.url, access: link4.access, reason: link4.reason };
|
|
30286
30287
|
}, "validatePermalink");
|
|
30287
30288
|
|
|
30288
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30289
|
+
// 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/domain/pin-duration.js
|
|
30289
30290
|
var spokenSeconds = /* @__PURE__ */ __name((seconds) => {
|
|
30290
30291
|
if (seconds % 86400 === 0 && seconds > 86400)
|
|
30291
30292
|
return `${seconds / 86400}d`;
|
|
@@ -30317,7 +30318,7 @@ var pinDurationOf = /* @__PURE__ */ __name((value, allowed, flag = "--expire-tim
|
|
|
30317
30318
|
return seconds;
|
|
30318
30319
|
}, "pinDurationOf");
|
|
30319
30320
|
|
|
30320
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30321
|
+
// 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/send-as.js
|
|
30321
30322
|
var sendAsCheck = /* @__PURE__ */ __name((connection, sendAs) => {
|
|
30322
30323
|
if (sendAs === void 0) {
|
|
30323
30324
|
const saved = connection.savedSender?.bind(connection);
|
|
@@ -30342,7 +30343,7 @@ var typedSendAs = /* @__PURE__ */ __name((typed) => {
|
|
|
30342
30343
|
return sendAs;
|
|
30343
30344
|
}, "typedSendAs");
|
|
30344
30345
|
|
|
30345
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30346
|
+
// 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/total.js
|
|
30346
30347
|
var TOTAL_CAP = 1e4;
|
|
30347
30348
|
var totalOf = /* @__PURE__ */ __name((count4, shown, hasMore, exact = true) => {
|
|
30348
30349
|
const least = shown + (hasMore ? 1 : 0);
|
|
@@ -30353,7 +30354,7 @@ var totalOf = /* @__PURE__ */ __name((count4, shown, hasMore, exact = true) => {
|
|
|
30353
30354
|
return { value: count4, relation: exact ? "eq" : "gte" };
|
|
30354
30355
|
}, "totalOf");
|
|
30355
30356
|
|
|
30356
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30357
|
+
// 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/lucene/meaning-parts.js
|
|
30357
30358
|
var WORD_FIELDS = /* @__PURE__ */ new Set(["text", "exact"]);
|
|
30358
30359
|
var fieldsOfQuery = /* @__PURE__ */ __name((root, everything) => {
|
|
30359
30360
|
let narrows = false;
|
|
@@ -30382,7 +30383,7 @@ var meaningWords = /* @__PURE__ */ __name((root) => {
|
|
|
30382
30383
|
return wanted(root).join(" ").trim();
|
|
30383
30384
|
}, "meaningWords");
|
|
30384
30385
|
|
|
30385
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30386
|
+
// 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/question-plan.js
|
|
30386
30387
|
var words = /* @__PURE__ */ __name((text2) => normalize(text2).match(/[\p{L}\p{N}]+/gu) ?? [], "words");
|
|
30387
30388
|
var scaffolding = new Set(words("what which how many much who where when is are was were do does did can could should we the a an for of to under from in on at has have \u0441\u043A\u043E\u043B\u044C\u043A\u043E \u043A\u0430\u043A\u043E\u0439 \u043A\u0430\u043A\u0430\u044F \u043A\u0430\u043A\u0438\u0435 \u043A\u0430\u043A\u043E\u0435 \u043A\u0442\u043E \u043A\u043E\u043C\u0443 \u043A\u0435\u043C \u0433\u0434\u0435 \u043A\u043E\u0433\u0434\u0430 \u043A\u0430\u043A \u0447\u0442\u043E \u0432\u043E \u043F\u043E \u043D\u0430 \u0432 \u043A \u0441 \u0443 \u0447\u0435\u0440\u0435\u0437 \u043B\u0438 \u0434\u043E\u043B\u0436\u0435\u043D \u0434\u043E\u043B\u0436\u043D\u0430 \u043D\u0443\u0436\u043D\u043E \u0438\u0434\u0451\u0442 \u0438\u0434\u0435\u0442 \u043C\u043E\u0436\u043D\u043E \u043C\u043E\u0436\u0435\u0442 \u043C\u043E\u0433\u0443\u0442"));
|
|
30388
30389
|
var questionWord = /\b(?:what|which|how|who|where|when|can|could|should)\b|(?:^|\s)(?:сколько|какой|какая|какие|какое|кто|кому|кем|где|когда|как|что|можно|может|могут|ли)(?:\s|$)/iu;
|
|
@@ -30497,7 +30498,7 @@ function planQuestion(text2, strict = false) {
|
|
|
30497
30498
|
}
|
|
30498
30499
|
__name(planQuestion, "planQuestion");
|
|
30499
30500
|
|
|
30500
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30501
|
+
// 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/services/messages-combined.js
|
|
30501
30502
|
var COMBINED_DEFAULTS = { candidateDepth: 300, rrfK: 60, rerank: "all", chatCap: 0 };
|
|
30502
30503
|
var tokensOf = /* @__PURE__ */ __name((text2) => normalize(text2).match(/[\p{L}\p{N}\p{Co}\p{M}]+/gu) ?? [], "tokensOf");
|
|
30503
30504
|
var searchCombined = /* @__PURE__ */ __name(async (store, account, request, messenger = {}, options = COMBINED_DEFAULTS) => {
|
|
@@ -30690,7 +30691,7 @@ var signals = /* @__PURE__ */ __name((hit, terms, corrections, execution, mode,
|
|
|
30690
30691
|
return mode === "coverage" ? coverage * 4 : mode === "proximity" ? proximity : mode === "phrase" ? phrase : coverage * 4 + proximity + phrase;
|
|
30691
30692
|
}, "signals");
|
|
30692
30693
|
|
|
30693
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30694
|
+
// 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/services/messages-discovery.js
|
|
30694
30695
|
var MEANING_DEPTH = 100;
|
|
30695
30696
|
var RRF_K2 = 60;
|
|
30696
30697
|
var RERANK_DEPTH = 50;
|
|
@@ -31018,7 +31019,7 @@ var mixedWithReranker = /* @__PURE__ */ __name((head, scores) => {
|
|
|
31018
31019
|
})).sort((a, b) => b.mixed - a.mixed).map(({ hit }) => hit);
|
|
31019
31020
|
}, "mixedWithReranker");
|
|
31020
31021
|
|
|
31021
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31022
|
+
// 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/services/thread-context.js
|
|
31022
31023
|
var THREAD_BOUNDS = { maxHops: 8, maxMessages: 50, maxBytes: 65536, withinMs: 864e5 };
|
|
31023
31024
|
var bytes = /* @__PURE__ */ __name((items, links) => Buffer.byteLength(JSON.stringify({ items, links }), "utf8"), "bytes");
|
|
31024
31025
|
var threadBounds = /* @__PURE__ */ __name((options = {}) => {
|
|
@@ -31217,7 +31218,7 @@ var readThreadContext = /* @__PURE__ */ __name(async (store, account, chat, mess
|
|
|
31217
31218
|
return result;
|
|
31218
31219
|
}, "readThreadContext");
|
|
31219
31220
|
|
|
31220
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31221
|
+
// 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/services/messages-archive-search.js
|
|
31221
31222
|
var SEARCH_FILL_MS = 200;
|
|
31222
31223
|
var statsStore = /* @__PURE__ */ __name(async (store, account, request, messenger = {}) => {
|
|
31223
31224
|
const stop = Date.now() + SEARCH_FILL_MS;
|
|
@@ -31284,12 +31285,12 @@ var accountOf2 = /* @__PURE__ */ __name((hit) => {
|
|
|
31284
31285
|
}, "accountOf");
|
|
31285
31286
|
var keyOf3 = /* @__PURE__ */ __name(({ provider, account }) => `${provider}/${account}`, "keyOf");
|
|
31286
31287
|
|
|
31287
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31288
|
+
// 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/services/pictures.js
|
|
31288
31289
|
import { createHash as createHash10 } from "node:crypto";
|
|
31289
31290
|
import { readFile as readFile2, stat as stat3 } from "node:fs/promises";
|
|
31290
31291
|
import { setTimeout as sleep4 } from "node:timers/promises";
|
|
31291
31292
|
|
|
31292
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31293
|
+
// 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/domain/models.js
|
|
31293
31294
|
var GROUP_SETTINGS = [
|
|
31294
31295
|
"allCanPin",
|
|
31295
31296
|
"onlyAdminsAdd",
|
|
@@ -31303,7 +31304,7 @@ var ADMIN_RIGHTS = ["read", "members", "admins", "info", "pin", "link", "post",
|
|
|
31303
31304
|
var senderIsMe = /* @__PURE__ */ __name((message, account) => message.outgoing === true || message.senderId !== null && String(message.senderId) === account, "senderIsMe");
|
|
31304
31305
|
var MEDIA_KINDS = ["photo", "video", "file", "audio", "link"];
|
|
31305
31306
|
|
|
31306
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31307
|
+
// 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/services/file-download.js
|
|
31307
31308
|
import { createWriteStream, mkdirSync } from "node:fs";
|
|
31308
31309
|
import { link as link3, rm } from "node:fs/promises";
|
|
31309
31310
|
import { basename as basename6, join as join10, resolve as resolve6 } from "node:path";
|
|
@@ -31426,7 +31427,7 @@ var save = /* @__PURE__ */ __name(async (file, directory2, fallbackName, { uniqu
|
|
|
31426
31427
|
}
|
|
31427
31428
|
}, "save");
|
|
31428
31429
|
|
|
31429
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31430
|
+
// 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/services/pictures.js
|
|
31430
31431
|
var PICTURE_MAX_BYTES = 25 * 1024 * 1024;
|
|
31431
31432
|
var PICTURE_FLOOR = 0.25;
|
|
31432
31433
|
var PAGE4 = 50;
|
|
@@ -31443,7 +31444,7 @@ var picturesService = /* @__PURE__ */ __name((deps) => {
|
|
|
31443
31444
|
const directory2 = imageModelsDirectory(deps.env);
|
|
31444
31445
|
if (!isImageModelInstalled(model2, directory2))
|
|
31445
31446
|
throw new CliError("not_found", missingModel(model2.id), { reason: "model.not-downloaded", model: model2.id });
|
|
31446
|
-
const { openPictureEmbedder } = await import("./embedder-
|
|
31447
|
+
const { openPictureEmbedder } = await import("./embedder-EMBCIVGF.js");
|
|
31447
31448
|
return openPictureEmbedder(model2, directory2);
|
|
31448
31449
|
}, "open");
|
|
31449
31450
|
const embedder = /* @__PURE__ */ __name(() => {
|
|
@@ -31640,7 +31641,7 @@ var withPictures = /* @__PURE__ */ __name((messages, pictures) => ({
|
|
|
31640
31641
|
}, "search")
|
|
31641
31642
|
}), "withPictures");
|
|
31642
31643
|
|
|
31643
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31644
|
+
// 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/services/messages-meaning.js
|
|
31644
31645
|
var meaningLane = /* @__PURE__ */ __name((deps) => async (question, accounts, shared, within) => {
|
|
31645
31646
|
const target2 = embeddingTarget(deps, DEFAULT_TEXT_MODEL);
|
|
31646
31647
|
const skipped = /* @__PURE__ */ __name((reason, step) => ({
|
|
@@ -31689,7 +31690,7 @@ var meaningLane = /* @__PURE__ */ __name((deps) => async (question, accounts, sh
|
|
|
31689
31690
|
}
|
|
31690
31691
|
}, "meaningLane");
|
|
31691
31692
|
|
|
31692
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31693
|
+
// 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/services/messages-rerank.js
|
|
31693
31694
|
var rerankLane = /* @__PURE__ */ __name((deps) => {
|
|
31694
31695
|
const choice = deps.reranker ?? DEFAULT_RERANK_MODEL;
|
|
31695
31696
|
if (choice === "off")
|
|
@@ -31701,9 +31702,9 @@ var rerankLane = /* @__PURE__ */ __name((deps) => {
|
|
|
31701
31702
|
return { skipped: { reason: `${model.id} is not downloaded`, step: "models.download", model: model.id } };
|
|
31702
31703
|
try {
|
|
31703
31704
|
const warm = deps.embedders;
|
|
31704
|
-
const reranker = warm ? await warm.reranker(`rerank:${model.id}`, async () => (await import("./process-
|
|
31705
|
+
const reranker = warm ? await warm.reranker(`rerank:${model.id}`, async () => (await import("./process-TXIK4VJP.js")).openRerankerProcess(model, directory2, {
|
|
31705
31706
|
threads: defaultThreads()
|
|
31706
|
-
})) : await (await import("./rerank-
|
|
31707
|
+
})) : await (await import("./rerank-NAO5RMGB.js")).openReranker(model, directory2);
|
|
31707
31708
|
return {
|
|
31708
31709
|
model: model.id,
|
|
31709
31710
|
score: /* @__PURE__ */ __name((question, passages) => reranker.score(plainWords(question), passages), "score"),
|
|
@@ -31723,17 +31724,17 @@ var rerankLane = /* @__PURE__ */ __name((deps) => {
|
|
|
31723
31724
|
};
|
|
31724
31725
|
}, "rerankLane");
|
|
31725
31726
|
|
|
31726
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31727
|
+
// 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/services/document-pictures.js
|
|
31727
31728
|
var openPictureEmbedderFor = /* @__PURE__ */ __name(async ({ env, command } = {}) => {
|
|
31728
31729
|
const model = imageModel(DEFAULT_IMAGE_MODEL);
|
|
31729
31730
|
const directory2 = imageModelsDirectory(env);
|
|
31730
31731
|
if (!isImageModelInstalled(model, directory2))
|
|
31731
31732
|
throw new CliError("not_found", `the picture model is not downloaded \u2014 ${command === void 0 ? "install it with a WireCat CLI that has `images models download` (tg, max or wa); they share the model folder" : `\`${command} images models download ${model.id}\` fetches it`}`, { reason: "model.not-downloaded", model: model.id });
|
|
31732
|
-
const { openPictureEmbedder } = await import("./embedder-
|
|
31733
|
+
const { openPictureEmbedder } = await import("./embedder-EMBCIVGF.js");
|
|
31733
31734
|
return openPictureEmbedder(model, directory2);
|
|
31734
31735
|
}, "openPictureEmbedderFor");
|
|
31735
31736
|
|
|
31736
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31737
|
+
// 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/services/document-source.js
|
|
31737
31738
|
var documentSource = /* @__PURE__ */ __name((note, accounts, profiles, file) => {
|
|
31738
31739
|
const metadata = note.frontMatter;
|
|
31739
31740
|
const account = accounts.find(({ id: id2 }) => String(id2) === note.folderId);
|
|
@@ -31748,7 +31749,7 @@ var documentSource = /* @__PURE__ */ __name((note, accounts, profiles, file) =>
|
|
|
31748
31749
|
};
|
|
31749
31750
|
}, "documentSource");
|
|
31750
31751
|
|
|
31751
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31752
|
+
// 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/services/notes-title-tier.js
|
|
31752
31753
|
var plainQueryWords = /* @__PURE__ */ __name((query) => {
|
|
31753
31754
|
let root;
|
|
31754
31755
|
try {
|
|
@@ -31775,7 +31776,7 @@ var titleTiers = /* @__PURE__ */ __name((hits, words2) => {
|
|
|
31775
31776
|
return [...hits].sort((a, b) => rank(a) - rank(b));
|
|
31776
31777
|
}, "titleTiers");
|
|
31777
31778
|
|
|
31778
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31779
|
+
// 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/services/notes-search.js
|
|
31779
31780
|
var storeQuery = /* @__PURE__ */ __name(async (store, text2, { exact, timezone } = {}) => resolvedQuery(store, parsedQuery(text2, exact), timezone), "storeQuery");
|
|
31780
31781
|
var parsedQuery = /* @__PURE__ */ __name((text2, exact) => validateFields(parseLucene(text2, { ...SEARCH_QUERY, defaultField: exact ? "exact" : "text" })).root, "parsedQuery");
|
|
31781
31782
|
var resolvedQuery = /* @__PURE__ */ __name(async (store, root, timezone) => {
|
|
@@ -32185,7 +32186,7 @@ var searchNotesOf = /* @__PURE__ */ __name(async (store, account, text2, { accou
|
|
|
32185
32186
|
};
|
|
32186
32187
|
}, "searchNotesOf");
|
|
32187
32188
|
|
|
32188
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32189
|
+
// 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/services/events-search.js
|
|
32189
32190
|
var MAX_EVENTS_OFFSET = 1e3;
|
|
32190
32191
|
var iso3 = /* @__PURE__ */ __name((at) => at === null ? null : new Date(at).toISOString(), "iso");
|
|
32191
32192
|
var accountIdsOf = /* @__PURE__ */ __name(async (store, accounts) => {
|
|
@@ -32297,7 +32298,7 @@ var searchEvents = /* @__PURE__ */ __name(async (store, query, { limit = 20, off
|
|
|
32297
32298
|
};
|
|
32298
32299
|
}, "searchEvents");
|
|
32299
32300
|
|
|
32300
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32301
|
+
// 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/services/search-all.js
|
|
32301
32302
|
var RESOURCES_SEARCHED = ["messages", "mail", "notes", "events"];
|
|
32302
32303
|
var skippable = /* @__PURE__ */ __name((error) => error instanceof CliError && (error.code === "validation_error" || error.code === "not_found"), "skippable");
|
|
32303
32304
|
var filtersBeside = /* @__PURE__ */ __name((text2) => {
|
|
@@ -32505,7 +32506,7 @@ var searchAll = /* @__PURE__ */ __name(async (store, account, request, messenger
|
|
|
32505
32506
|
};
|
|
32506
32507
|
}, "searchAll");
|
|
32507
32508
|
|
|
32508
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32509
|
+
// 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/services/search-all-meetings.js
|
|
32509
32510
|
var RESOURCES_SEARCHED_WITH_MEETINGS = [...RESOURCES_SEARCHED, "meetings"];
|
|
32510
32511
|
var whole2 = /* @__PURE__ */ __name((value, minimum, maximum, label) => {
|
|
32511
32512
|
if (!Number.isSafeInteger(value) || value < minimum || value > maximum)
|
|
@@ -32752,7 +32753,7 @@ var searchAllOfSource = /* @__PURE__ */ __name(async (store, account, source, re
|
|
|
32752
32753
|
return { ...found, skipped: [...skipped, ...empty2, ...unnamed, ...found.skipped] };
|
|
32753
32754
|
}, "searchAllOfSource");
|
|
32754
32755
|
|
|
32755
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32756
|
+
// 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/services/server-search.js
|
|
32756
32757
|
var SERVER_SEARCH_KEY = "messages.server-search";
|
|
32757
32758
|
var SERVER_BOUNDS = { timeMs: 5e3, perCall: 100, maxCalls: 3 };
|
|
32758
32759
|
var DEFAULT_BACKEND = "both";
|
|
@@ -32941,7 +32942,7 @@ var searchServer = /* @__PURE__ */ __name(async (deps, request) => {
|
|
|
32941
32942
|
return { report, sources };
|
|
32942
32943
|
}, "searchServer");
|
|
32943
32944
|
|
|
32944
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32945
|
+
// 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/services/messages.js
|
|
32945
32946
|
var DELETE_AT_ONCE = 10;
|
|
32946
32947
|
var messagesService = /* @__PURE__ */ __name((deps) => {
|
|
32947
32948
|
const { guard } = deps;
|
|
@@ -33367,7 +33368,7 @@ var checkMediaOptions = /* @__PURE__ */ __name((messenger, asked, attachments) =
|
|
|
33367
33368
|
throw new CliError("validation_error", `${MEDIA_FLAGS[first2]} needs a --photo or --file`);
|
|
33368
33369
|
}, "checkMediaOptions");
|
|
33369
33370
|
|
|
33370
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33371
|
+
// 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/domain/channel-tags.js
|
|
33371
33372
|
var CHANNEL_TAG_RULES_VERSION = "keywords-v1";
|
|
33372
33373
|
var RULES = {
|
|
33373
33374
|
ai: [/\b(ai|gpt|llm|machine learning|artificial intelligence)\b/iu, /нейросет|искусственн/iu],
|
|
@@ -33382,7 +33383,7 @@ var classifyChannel = /* @__PURE__ */ __name((metadata) => Object.entries(RULES)
|
|
|
33382
33383
|
return fields.length ? [{ tag, score: fields.length / 3, fields }] : [];
|
|
33383
33384
|
}), "classifyChannel");
|
|
33384
33385
|
|
|
33385
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33386
|
+
// 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/services/metadata.js
|
|
33386
33387
|
var metadataService = /* @__PURE__ */ __name((deps) => {
|
|
33387
33388
|
const held = /* @__PURE__ */ __name(async (reference, { includeLeft = false } = {}) => {
|
|
33388
33389
|
const store = await deps.store();
|
|
@@ -33468,7 +33469,7 @@ var metadataService = /* @__PURE__ */ __name((deps) => {
|
|
|
33468
33469
|
};
|
|
33469
33470
|
}, "metadataService");
|
|
33470
33471
|
|
|
33471
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33472
|
+
// 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/moderation/run.js
|
|
33472
33473
|
var FIRST_LOOK_MS = 24 * 36e5;
|
|
33473
33474
|
var moderateWith = /* @__PURE__ */ __name(async (run) => {
|
|
33474
33475
|
const { chatId, title, rules, point, since, dryRun } = run;
|
|
@@ -33505,7 +33506,7 @@ var moderateWith = /* @__PURE__ */ __name(async (run) => {
|
|
|
33505
33506
|
return { chatId, rows, notes };
|
|
33506
33507
|
}, "moderateWith");
|
|
33507
33508
|
|
|
33508
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33509
|
+
// 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/services/moderation.js
|
|
33509
33510
|
var moderationService = /* @__PURE__ */ __name((deps) => {
|
|
33510
33511
|
const file = /* @__PURE__ */ __name(() => new ModerationRules(moderationPathFor(deps.messenger.app, deps.profile ?? "default", deps.env ?? process.env)), "file");
|
|
33511
33512
|
const group = /* @__PURE__ */ __name(async (chat) => {
|
|
@@ -33583,7 +33584,7 @@ var moderatorOf = /* @__PURE__ */ __name((adapter, deps) => ({
|
|
|
33583
33584
|
}, "removePerson")
|
|
33584
33585
|
}), "moderatorOf");
|
|
33585
33586
|
|
|
33586
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33587
|
+
// 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/services/private-people.js
|
|
33587
33588
|
var noteItem = /* @__PURE__ */ __name((provider, note) => ({
|
|
33588
33589
|
id: note.id,
|
|
33589
33590
|
contact: formatReference({ type: "contact", provider, id: note.personId }),
|
|
@@ -33627,7 +33628,7 @@ var privatePeopleService = /* @__PURE__ */ __name((deps) => {
|
|
|
33627
33628
|
};
|
|
33628
33629
|
}, "privatePeopleService");
|
|
33629
33630
|
|
|
33630
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33631
|
+
// 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/services/rankings.js
|
|
33631
33632
|
var empty = /* @__PURE__ */ __name(() => ({
|
|
33632
33633
|
total: 0,
|
|
33633
33634
|
population: 0,
|
|
@@ -33883,7 +33884,7 @@ var rankingsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
33883
33884
|
}, "evidence")
|
|
33884
33885
|
}), "rankingsService");
|
|
33885
33886
|
|
|
33886
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33887
|
+
// 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/services/searches.js
|
|
33887
33888
|
var savedSearchItem = /* @__PURE__ */ __name((one) => ({
|
|
33888
33889
|
id: one.id,
|
|
33889
33890
|
name: one.name,
|
|
@@ -34012,7 +34013,7 @@ var searchesService = /* @__PURE__ */ __name((deps) => {
|
|
|
34012
34013
|
};
|
|
34013
34014
|
}, "searchesService");
|
|
34014
34015
|
|
|
34015
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34016
|
+
// 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/services/tags.js
|
|
34016
34017
|
var TAGGING_QUERY = {
|
|
34017
34018
|
entity: "tagging",
|
|
34018
34019
|
backend: "sql",
|
|
@@ -34096,7 +34097,7 @@ var tagsService = /* @__PURE__ */ __name((deps) => {
|
|
|
34096
34097
|
};
|
|
34097
34098
|
}, "tagsService");
|
|
34098
34099
|
|
|
34099
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34100
|
+
// 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/services/topics.js
|
|
34100
34101
|
var actionOf = /* @__PURE__ */ __name(({ title, closed, pinned, hidden }) => {
|
|
34101
34102
|
const set = [closed, pinned, hidden].filter((one) => one !== void 0).length;
|
|
34102
34103
|
if (title !== void 0 || set !== 1)
|
|
@@ -34281,7 +34282,7 @@ var topicsService = /* @__PURE__ */ __name((deps) => {
|
|
|
34281
34282
|
};
|
|
34282
34283
|
}, "topicsService");
|
|
34283
34284
|
|
|
34284
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34285
|
+
// 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/services/evidence.js
|
|
34285
34286
|
import { createHash as createHash11, randomUUID as randomUUID5 } from "node:crypto";
|
|
34286
34287
|
var hash2 = /* @__PURE__ */ __name((value) => createHash11("sha256").update(JSON.stringify(value)).digest("hex"), "hash");
|
|
34287
34288
|
var positive = /* @__PURE__ */ __name((value, name, minimum = 1) => {
|
|
@@ -34355,7 +34356,7 @@ var prepareEvidencePacket = /* @__PURE__ */ __name(({ kind, source, page, limits
|
|
|
34355
34356
|
return { ...content, id: randomUUID5(), fingerprint: hash2(content) };
|
|
34356
34357
|
}, "prepareEvidencePacket");
|
|
34357
34358
|
|
|
34358
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34359
|
+
// 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/services/evidence-read.js
|
|
34359
34360
|
var readEvidencePacket = /* @__PURE__ */ __name(async (store, account, { chat, limit, before: before2 }, messenger = {}) => {
|
|
34360
34361
|
if (!Number.isSafeInteger(limit) || limit < 1 || limit > 100)
|
|
34361
34362
|
throw new CliError("validation_error", "evidence message limit must be an integer from 1 to 100");
|
|
@@ -34375,7 +34376,7 @@ var readEvidencePacket = /* @__PURE__ */ __name(async (store, account, { chat, l
|
|
|
34375
34376
|
return { ...packet, nextBeforeId: older && last ? last.id : null };
|
|
34376
34377
|
}, "readEvidencePacket");
|
|
34377
34378
|
|
|
34378
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34379
|
+
// 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/services/meeting-project-discovery.js
|
|
34379
34380
|
var scopeKeys = [
|
|
34380
34381
|
"accountId",
|
|
34381
34382
|
"meetingId",
|
|
@@ -34397,7 +34398,7 @@ var optionKeys = /* @__PURE__ */ new Set([
|
|
|
34397
34398
|
"maxVocabularyReadBytes"
|
|
34398
34399
|
]);
|
|
34399
34400
|
|
|
34400
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34401
|
+
// 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/context/communication-selection.js
|
|
34401
34402
|
var communicationFields = {
|
|
34402
34403
|
sources: pipe(array(strictObject({
|
|
34403
34404
|
id: pipe(string(), regex(/^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$/)),
|
|
@@ -34429,7 +34430,7 @@ var communicationRequest = /* @__PURE__ */ __name((value, preparationAfter) => {
|
|
|
34429
34430
|
return { ...input, after, before: before2 };
|
|
34430
34431
|
}, "communicationRequest");
|
|
34431
34432
|
|
|
34432
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34433
|
+
// 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/services/meeting-preparation-validation.js
|
|
34433
34434
|
var MEETING_PREPARATION_LIMITS = {
|
|
34434
34435
|
meetings: { min: 1, max: 20, default: 5 },
|
|
34435
34436
|
cues: { min: 1, max: 100, default: 10 },
|
|
@@ -34502,7 +34503,7 @@ var validateMeetingPreparationRequest = /* @__PURE__ */ __name((externalId, orig
|
|
|
34502
34503
|
};
|
|
34503
34504
|
}, "validateMeetingPreparationRequest");
|
|
34504
34505
|
|
|
34505
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34506
|
+
// 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/services/meeting-communications-selection.js
|
|
34506
34507
|
var validatePreparationCommunications = /* @__PURE__ */ __name((section, request, after) => {
|
|
34507
34508
|
const fail2 = /* @__PURE__ */ __name(() => {
|
|
34508
34509
|
throw new CliError("invalid_response", "Preparation communications returned another selection or invalid evidence");
|
|
@@ -34550,7 +34551,7 @@ var validatePreparationCommunications = /* @__PURE__ */ __name((section, request
|
|
|
34550
34551
|
}
|
|
34551
34552
|
}, "validatePreparationCommunications");
|
|
34552
34553
|
|
|
34553
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34554
|
+
// 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/services/package-upgrade.js
|
|
34554
34555
|
var upgradePackage = /* @__PURE__ */ __name(async ({ current, command, packageName, check: check2 }, ports) => {
|
|
34555
34556
|
const installer = ports.installer();
|
|
34556
34557
|
const argv = updateCommand(installer, packageName);
|
|
@@ -34615,7 +34616,7 @@ var dayAfter = /* @__PURE__ */ __name((published) => {
|
|
|
34615
34616
|
return Number.isNaN(time) ? null : new Date(time + 24 * 60 * 60 * 1e3).toISOString();
|
|
34616
34617
|
}, "dayAfter");
|
|
34617
34618
|
|
|
34618
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34619
|
+
// 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/services/index.js
|
|
34619
34620
|
var servicesFor = /* @__PURE__ */ __name((deps) => {
|
|
34620
34621
|
const pictures = picturesService(deps);
|
|
34621
34622
|
const base = {
|
|
@@ -34651,7 +34652,7 @@ var servicesFor = /* @__PURE__ */ __name((deps) => {
|
|
|
34651
34652
|
return deps.messenger.services ? { ...base, ...deps.messenger.services(base, deps) } : base;
|
|
34652
34653
|
}, "servicesFor");
|
|
34653
34654
|
|
|
34654
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34655
|
+
// 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/relay.js
|
|
34655
34656
|
import { createHash as createHash12 } from "node:crypto";
|
|
34656
34657
|
import { chmodSync, lstatSync, mkdirSync as mkdirSync2, rmSync } from "node:fs";
|
|
34657
34658
|
import { createConnection, createServer } from "node:net";
|
|
@@ -34872,7 +34873,7 @@ var relayCommand = /* @__PURE__ */ __name((path, request, options) => new Promis
|
|
|
34872
34873
|
}, () => finish({ error: stopped() }));
|
|
34873
34874
|
}), "relayCommand");
|
|
34874
34875
|
|
|
34875
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34876
|
+
// 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-relay.js
|
|
34876
34877
|
var lentConnection = /* @__PURE__ */ __name((connection, watchers) => throughWrapper(connection, {
|
|
34877
34878
|
close: /* @__PURE__ */ __name(async () => {
|
|
34878
34879
|
}, "close"),
|