@wirecat/cli-memo 0.131.19 → 0.131.21
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/README.md +2 -3
- package/dist/actions/command.d.ts +1 -1
- package/dist/actions/command.d.ts.map +1 -1
- package/dist/actions/command.js +12 -1
- package/dist/actions/command.js.map +1 -1
- package/dist/bin/memo.js +2 -2
- package/dist/bin/memo.js.map +1 -1
- package/dist/bundle/{all-profiles-MVF2XGZK.js → all-profiles-EZLU6CY7.js} +9 -7
- package/dist/bundle/{anthropic-OPFHMF2S.js → anthropic-XC34PJH5.js} +6 -4
- package/dist/bundle/{app-server-VHVC55S3.js → app-server-26YPLJ7M.js} +53 -48
- package/dist/bundle/auto-QHTPHGNA.js +86 -0
- package/dist/bundle/{bun-P6TMDZGU.js → bun-CKGKUKW5.js} +2 -2
- package/dist/bundle/{bun-sqlite-3G3NLK4O.js → bun-sqlite-S6KUSMTC.js} +5 -3
- package/dist/bundle/{chunk-XZWUBDBG.js → chunk-2NJUPIAO.js} +1 -1
- package/dist/bundle/{chunk-RFB5LOYR.js → chunk-2TBIVKBH.js} +8 -6
- package/dist/bundle/{chunk-3DVKC2XM.js → chunk-3V4WIGWC.js} +8 -19
- package/dist/bundle/{chunk-BMHSGZNE.js → chunk-5RBLNI6C.js} +4 -4
- package/dist/bundle/{chunk-LKYHSVQL.js → chunk-7F6FGMCC.js} +8 -8
- package/dist/bundle/{chunk-FMSA2X3E.js → chunk-7MLWSUEK.js} +1 -1
- package/dist/bundle/{chunk-DLRLOGVU.js → chunk-7NEWBM2O.js} +13 -9
- package/dist/bundle/{chunk-SO6VNTF6.js → chunk-AIIQ7YU4.js} +1 -1
- package/dist/bundle/{chunk-4TERVG26.js → chunk-B3YV6Z7Y.js} +8 -2
- package/dist/bundle/{chunk-IW3U6XXI.js → chunk-BB2MGFOZ.js} +6 -6
- package/dist/bundle/chunk-CCHHEMPM.js +71 -0
- package/dist/bundle/{chunk-6DG7VK3H.js → chunk-CCOYC6HL.js} +5 -5
- package/dist/bundle/{chunk-MXP4J6BJ.js → chunk-CDZZ2DZO.js} +70 -2517
- package/dist/bundle/{chunk-VUWUSGSN.js → chunk-CP5N3KH3.js} +4 -4
- package/dist/bundle/{chunk-NKTAEBCU.js → chunk-CRZSJHAK.js} +13 -9
- package/dist/bundle/{chunk-LPUFOWL3.js → chunk-D72URWJE.js} +1 -39
- package/dist/bundle/{chunk-BINR6MJ5.js → chunk-DNGHE2Q4.js} +1 -1
- package/dist/bundle/{chunk-KVVDRD7M.js → chunk-DZSWKA3K.js} +2 -2
- package/dist/bundle/{chunk-63XICXGM.js → chunk-E5FQ7U7L.js} +5 -3
- package/dist/bundle/{chunk-BPYQYZXA.js → chunk-EAYYWS67.js} +14 -12
- package/dist/bundle/chunk-EG2OMKWH.js +2423 -0
- package/dist/bundle/chunk-EW3XTUPB.js +166 -0
- package/dist/bundle/{chunk-4VKNUBD5.js → chunk-FFWK5NEZ.js} +10 -8
- package/dist/bundle/{chunk-3ORDQ62F.js → chunk-GV2FSWFS.js} +10 -8
- package/dist/bundle/chunk-ILHTNOIV.js +23 -0
- package/dist/bundle/{chunk-VQGVPDMH.js → chunk-INURBEAO.js} +20 -16
- package/dist/bundle/{chunk-OVFMY6ZP.js → chunk-IRDGD3QQ.js} +1 -1
- package/dist/bundle/{chunk-D6G23NFJ.js → chunk-J4GC33JU.js} +2 -2
- package/dist/bundle/{chunk-XWS4PTES.js → chunk-J55Z6EJ3.js} +363 -278
- package/dist/bundle/{chunk-TQNQS6TR.js → chunk-JJ3C5AYK.js} +64 -60
- package/dist/bundle/{chunk-LQJ4KHXK.js → chunk-JXH22ZGA.js} +15 -15
- package/dist/bundle/{chunk-5KUPVC5M.js → chunk-KUNA6MQZ.js} +2 -2
- package/dist/bundle/{chunk-LDVU22MF.js → chunk-LGNS4JVK.js} +8 -8
- package/dist/bundle/{chunk-57Q6NXQT.js → chunk-LR5EY5JY.js} +4 -4
- package/dist/bundle/{chunk-ZYM4M62Q.js → chunk-MCPDL5YU.js} +4 -4
- package/dist/bundle/{chunk-V7DZG62U.js → chunk-MHDLZCEO.js} +11 -9
- package/dist/bundle/{chunk-SHDZVM3B.js → chunk-NELE7AIX.js} +2 -2
- package/dist/bundle/{chunk-WRPRPVZF.js → chunk-NOG5O2NS.js} +44 -42
- package/dist/bundle/{chunk-RITXQKYG.js → chunk-NWB5NAGB.js} +6 -6
- package/dist/bundle/{chunk-UC4IL2P7.js → chunk-OJRLTJRS.js} +1 -1
- package/dist/bundle/{chunk-OTHEM74Z.js → chunk-OUF6RCRZ.js} +6 -6
- package/dist/bundle/{chunk-JDJDNMCP.js → chunk-PF3ALSAV.js} +1 -1
- package/dist/bundle/{chunk-GJKM32WA.js → chunk-PO5C7VNC.js} +24 -22
- package/dist/bundle/chunk-PQLBPYJR.js +46 -0
- package/dist/bundle/{chunk-66YZUX2C.js → chunk-QMMUPDRK.js} +10 -10
- package/dist/bundle/{chunk-P3TYFDMP.js → chunk-R26CXR5Z.js} +9 -7
- package/dist/bundle/{chunk-F5CQ2NVA.js → chunk-RC7TIYUZ.js} +11 -9
- package/dist/bundle/{chunk-P22V2OLJ.js → chunk-RG6ITTLQ.js} +22 -16
- package/dist/bundle/{chunk-T557KUST.js → chunk-RHJC4PHV.js} +3 -3
- package/dist/bundle/{chunk-Z54GPSVH.js → chunk-RNXYDBQO.js} +186 -162
- package/dist/bundle/{chunk-YVECM7XA.js → chunk-SMDWUPXE.js} +4 -4
- package/dist/bundle/{chunk-KO455254.js → chunk-SXGAIQ5X.js} +13 -13
- package/dist/bundle/{chunk-EMKFG5BP.js → chunk-THGFFQCK.js} +3 -3
- package/dist/bundle/{chunk-2R25UBIH.js → chunk-TMNHNZVA.js} +26 -24
- package/dist/bundle/{chunk-WOIRWVDJ.js → chunk-UXCSNSUU.js} +563 -351
- package/dist/bundle/{chunk-EFKEG2BA.js → chunk-VECICKTE.js} +5 -5
- package/dist/bundle/{chunk-4MIPN37I.js → chunk-VQM3H422.js} +266 -176
- package/dist/bundle/chunk-VXHN3SWW.js +35 -0
- package/dist/bundle/{chunk-EL4ZKQUN.js → chunk-WEOFWTWZ.js} +6 -4
- package/dist/bundle/{chunk-LEUNYKL6.js → chunk-WUCQ56RP.js} +3 -3
- package/dist/bundle/{chunk-SJLVBJ2L.js → chunk-XA6YO24S.js} +2 -2
- package/dist/bundle/{chunk-36ULPM2W.js → chunk-XPRYBLTS.js} +6 -6
- package/dist/bundle/{chunk-2KOVYXWK.js → chunk-YAUDFROV.js} +1243 -743
- package/dist/bundle/{chunk-Y3DGAYTD.js → chunk-YUFUUQUO.js} +7 -5
- package/dist/bundle/{chunk-JHKTN6NL.js → chunk-ZCKU6WMX.js} +13 -11
- package/dist/bundle/{chunk-5XDYV2YT.js → chunk-ZD3STMY7.js} +1 -1
- package/dist/bundle/command-contract-TMVGYSQQ.js +32 -0
- package/dist/bundle/{decode-BUTF6VGO.js → decode-6XSZIZAA.js} +5 -3
- package/dist/bundle/dispatch-VUMQPYMA.js +411 -0
- package/dist/bundle/{echarts-KH3YOWMK.js → echarts-NGS4QG4E.js} +2 -2
- package/dist/bundle/{embed-WBVM7KQ2.js → embed-YNH5M6UL.js} +6 -4
- package/dist/bundle/{embedder-27HQIFHM.js → embedder-LLNK4JF4.js} +11 -9
- package/dist/bundle/{entry-K2WWMF2B.js → entry-DO6ZBFIS.js} +7 -5
- package/dist/bundle/failure-LHMJNFY6.js +66 -0
- package/dist/bundle/failure-Z2FXWIBY.js +24 -0
- package/dist/bundle/first-run-BXFQN6M5.js +27 -0
- package/dist/bundle/first-screen-56KZKY77.js +30 -0
- package/dist/bundle/{instructions-POJKHKRZ.js → instructions-4EJ4BBWD.js} +1 -1
- package/dist/bundle/mcp-A4HPKQK5.js +90 -0
- package/dist/bundle/{mcp-FUSDPAOL.js → mcp-MNI62HHE.js} +4 -2
- package/dist/bundle/memo.js +182 -39
- package/dist/bundle/{node-W245R2OP.js → node-QQXKQWNC.js} +2 -2
- package/dist/bundle/{node-sqlite-FUYOXFW5.js → node-sqlite-GJI2GMLW.js} +6 -4
- package/dist/bundle/{oauth-ATB3NWQA.js → oauth-Q5VGUPUR.js} +7 -5
- package/dist/bundle/{open-HEBEWCYB.js → open-NSXIYF3N.js} +5 -3
- package/dist/bundle/{openai-DN7NA2IU.js → openai-LHH7MSGQ.js} +10 -8
- package/dist/bundle/{process-QTIDOJMF.js → process-PI6XUJWP.js} +1 -1
- package/dist/bundle/{program-WNFCYNGP.js → program-3ZTQ5FEM.js} +8382 -8312
- package/dist/bundle/{prompt-RQXVPJ4A.js → prompt-VFXA7IKL.js} +5 -3
- package/dist/bundle/{recognize-G7NIZ3IT.js → recognize-UWAARXOH.js} +4 -2
- package/dist/bundle/{remote-H452UBSK.js → remote-KGEVCB2Q.js} +7 -5
- package/dist/bundle/{rerank-77UYD2UD.js → rerank-SCBTCBPO.js} +7 -5
- package/dist/bundle/{serve-L6R4ODZV.js → serve-WPVKVR24.js} +9 -7
- package/dist/bundle/{server-ZBX4HFHT.js → server-BMQBWBBN.js} +71 -64
- package/dist/bundle/server-NQK5EX7P.js +48 -0
- package/dist/bundle/server-UN43Y6BY.js +61 -0
- package/dist/bundle/{setup-ZGH5OZ7A.js → setup-FGSVWQ32.js} +47 -43
- package/dist/bundle/{state-KHMYDV4I.js → state-KGHS4C6J.js} +6 -4
- package/dist/bundle/{store-M7KGTLUG.js → store-VCVOIQES.js} +12 -10
- package/dist/bundle/store-maintenance-command-QTEWWDST.js +48 -0
- package/dist/bundle/update-XC6KAVCK.js +69 -0
- package/dist/config.d.ts +1 -1
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +2 -2
- package/dist/config.js.map +1 -1
- package/dist/contract-overrides/skill.d.ts.map +1 -1
- package/dist/contract-overrides/skill.js +14 -0
- package/dist/contract-overrides/skill.js.map +1 -1
- package/dist/examples.d.ts.map +1 -1
- package/dist/examples.js +34 -3
- package/dist/examples.js.map +1 -1
- package/dist/knowledge/project-actions-command.js +1 -1
- package/dist/knowledge/project-actions-command.js.map +1 -1
- package/dist/mail/command.d.ts.map +1 -1
- package/dist/mail/command.js +11 -1
- package/dist/mail/command.js.map +1 -1
- package/dist/mail/findings-command.d.ts +8 -0
- package/dist/mail/findings-command.d.ts.map +1 -0
- package/dist/mail/findings-command.js +80 -0
- package/dist/mail/findings-command.js.map +1 -0
- package/dist/mail/messages-command.d.ts.map +1 -1
- package/dist/mail/messages-command.js +27 -3
- package/dist/mail/messages-command.js.map +1 -1
- package/dist/mail/review-command.d.ts +12 -0
- package/dist/mail/review-command.d.ts.map +1 -0
- package/dist/mail/review-command.js +46 -0
- package/dist/mail/review-command.js.map +1 -0
- package/dist/mcp/catalogue.d.ts +3 -0
- package/dist/mcp/catalogue.d.ts.map +1 -1
- package/dist/mcp/catalogue.js +2 -1
- package/dist/mcp/catalogue.js.map +1 -1
- package/dist/mcp/server.js +1 -1
- package/dist/mcp/server.js.map +1 -1
- package/dist/program.d.ts.map +1 -1
- package/dist/program.js +17 -1
- package/dist/program.js.map +1 -1
- package/dist/read-only.d.ts +1 -1
- package/dist/reasons.d.ts.map +1 -1
- package/dist/reasons.js +6 -0
- package/dist/reasons.js.map +1 -1
- package/dist/records/import.d.ts.map +1 -1
- package/dist/records/import.js +9 -2
- package/dist/records/import.js.map +1 -1
- package/dist/records/mapping.d.ts +9 -0
- package/dist/records/mapping.d.ts.map +1 -0
- package/dist/records/mapping.js +67 -0
- package/dist/records/mapping.js.map +1 -0
- package/dist/review/kinds.d.ts +0 -6
- package/dist/review/kinds.d.ts.map +1 -1
- package/dist/review/kinds.js +14 -45
- package/dist/review/kinds.js.map +1 -1
- package/dist/review/status.d.ts +1 -0
- package/dist/review/status.d.ts.map +1 -1
- package/dist/schedule/command.d.ts +3 -1
- package/dist/schedule/command.d.ts.map +1 -1
- package/dist/schedule/command.js +6 -1
- package/dist/schedule/command.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +4 -3
- package/skills/cli-memo/SKILL.md +15 -4
- package/skills/mail-triage/SKILL.md +120 -0
- package/dist/bundle/auto-F53FUP45.js +0 -82
- package/dist/bundle/chunk-7J5HTZCM.js +0 -18
- package/dist/bundle/command-contract-NMJKYTS4.js +0 -30
- package/dist/bundle/failure-NHDQ5WEW.js +0 -62
- package/dist/bundle/first-run-7P5N72VR.js +0 -23
- package/dist/bundle/first-screen-3GM5HC4Y.js +0 -28
- package/dist/bundle/mcp-YGWNSJUH.js +0 -86
- package/dist/bundle/server-SWUSQSRW.js +0 -44
- package/dist/bundle/server-W4IKTTUY.js +0 -57
- package/dist/bundle/store-maintenance-command-ZPN2ZUL4.js +0 -44
- package/dist/bundle/update-RFTADFRO.js +0 -65
- /package/dist/bundle/{chunk-7YF2MSEC.js → chunk-YYQN5ES2.js} +0 -0
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
sameOrdinaryFile,
|
|
9
9
|
syncDirectory,
|
|
10
10
|
writeFileAtomic
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-SXGAIQ5X.js";
|
|
12
12
|
import {
|
|
13
13
|
Command,
|
|
14
14
|
DEFAULT_IMAGE_MODEL,
|
|
@@ -51,38 +51,17 @@ import {
|
|
|
51
51
|
typedCommand,
|
|
52
52
|
vectorModelKey,
|
|
53
53
|
withAttempt
|
|
54
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-VQM3H422.js";
|
|
55
55
|
import {
|
|
56
56
|
isCliFailure
|
|
57
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-RC7TIYUZ.js";
|
|
58
58
|
import {
|
|
59
59
|
isNewer,
|
|
60
60
|
updateCommand
|
|
61
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-3V4WIGWC.js";
|
|
62
62
|
import {
|
|
63
63
|
readOnlyLockOf
|
|
64
|
-
} from "./chunk-
|
|
65
|
-
import {
|
|
66
|
-
MAX_MODEL_IMAGE_BYTES
|
|
67
|
-
} from "./chunk-5KUPVC5M.js";
|
|
68
|
-
import {
|
|
69
|
-
remoteKey
|
|
70
|
-
} from "./chunk-LEUNYKL6.js";
|
|
71
|
-
import {
|
|
72
|
-
Unzip,
|
|
73
|
-
UnzipInflate,
|
|
74
|
-
defaultThreads,
|
|
75
|
-
installNativeRuntime,
|
|
76
|
-
isTextModelInstalled,
|
|
77
|
-
openEmbedder,
|
|
78
|
-
placedText,
|
|
79
|
-
runEmbedders,
|
|
80
|
-
textModelsDirectory
|
|
81
|
-
} from "./chunk-LDVU22MF.js";
|
|
82
|
-
import {
|
|
83
|
-
installFiles,
|
|
84
|
-
megabytes
|
|
85
|
-
} from "./chunk-57Q6NXQT.js";
|
|
64
|
+
} from "./chunk-NELE7AIX.js";
|
|
86
65
|
import {
|
|
87
66
|
AGENDA_COLUMNS,
|
|
88
67
|
CHAT_COLUMNS,
|
|
@@ -95,6 +74,7 @@ import {
|
|
|
95
74
|
FIELD_VERSION,
|
|
96
75
|
INTERNAL_NOTES,
|
|
97
76
|
MAIL_AGENDA_COLUMNS,
|
|
77
|
+
MAIL_FINDINGS_KIND,
|
|
98
78
|
MAX_FILE_BYTES,
|
|
99
79
|
MAX_TEXT_CHARS,
|
|
100
80
|
MENTION_QUERY,
|
|
@@ -176,7 +156,7 @@ import {
|
|
|
176
156
|
threadConversation,
|
|
177
157
|
validateAst,
|
|
178
158
|
validateFields
|
|
179
|
-
} from "./chunk-
|
|
159
|
+
} from "./chunk-YAUDFROV.js";
|
|
180
160
|
import {
|
|
181
161
|
EVENT_QUERY,
|
|
182
162
|
MEETING_FINDINGS_KIND,
|
|
@@ -230,29 +210,52 @@ import {
|
|
|
230
210
|
validateQuery,
|
|
231
211
|
walkQuery,
|
|
232
212
|
zonedMoment
|
|
233
|
-
} from "./chunk-
|
|
213
|
+
} from "./chunk-RNXYDBQO.js";
|
|
234
214
|
import {
|
|
235
215
|
DEFAULT_STEMMERS,
|
|
236
216
|
createStemmer,
|
|
237
217
|
fold,
|
|
238
218
|
normalize
|
|
239
|
-
} from "./chunk-
|
|
219
|
+
} from "./chunk-7F6FGMCC.js";
|
|
240
220
|
import {
|
|
241
221
|
DEFAULT_TASK_CATEGORIES,
|
|
242
222
|
FALLBACK_CATEGORY
|
|
243
|
-
} from "./chunk-
|
|
223
|
+
} from "./chunk-2TBIVKBH.js";
|
|
224
|
+
import {
|
|
225
|
+
MAX_MODEL_IMAGE_BYTES
|
|
226
|
+
} from "./chunk-KUNA6MQZ.js";
|
|
227
|
+
import {
|
|
228
|
+
remoteKey
|
|
229
|
+
} from "./chunk-WUCQ56RP.js";
|
|
230
|
+
import {
|
|
231
|
+
Unzip,
|
|
232
|
+
UnzipInflate,
|
|
233
|
+
defaultThreads,
|
|
234
|
+
installNativeRuntime,
|
|
235
|
+
isTextModelInstalled,
|
|
236
|
+
openEmbedder,
|
|
237
|
+
placedText,
|
|
238
|
+
runEmbedders,
|
|
239
|
+
textModelsDirectory
|
|
240
|
+
} from "./chunk-LGNS4JVK.js";
|
|
241
|
+
import {
|
|
242
|
+
installFiles,
|
|
243
|
+
megabytes
|
|
244
|
+
} from "./chunk-LR5EY5JY.js";
|
|
244
245
|
import {
|
|
245
246
|
storePath,
|
|
246
247
|
wirecatDirectory
|
|
247
|
-
} from "./chunk-
|
|
248
|
+
} from "./chunk-VXHN3SWW.js";
|
|
249
|
+
import {
|
|
250
|
+
resolvePaths,
|
|
251
|
+
writeSecurely
|
|
252
|
+
} from "./chunk-CDZZ2DZO.js";
|
|
248
253
|
import {
|
|
249
|
-
CliError,
|
|
250
254
|
array,
|
|
251
255
|
boolean,
|
|
252
256
|
check,
|
|
253
257
|
getDotPath,
|
|
254
258
|
integer,
|
|
255
|
-
isCliError,
|
|
256
259
|
maxLength,
|
|
257
260
|
minLength,
|
|
258
261
|
minValue,
|
|
@@ -263,21 +266,23 @@ import {
|
|
|
263
266
|
pipe,
|
|
264
267
|
record,
|
|
265
268
|
regex,
|
|
266
|
-
resolvePaths,
|
|
267
269
|
safeInteger,
|
|
268
270
|
safeParse,
|
|
269
|
-
singleLine,
|
|
270
271
|
strictObject,
|
|
271
272
|
string,
|
|
272
273
|
transform,
|
|
273
|
-
unknown
|
|
274
|
-
|
|
275
|
-
writeSecurely
|
|
276
|
-
} from "./chunk-MXP4J6BJ.js";
|
|
274
|
+
unknown
|
|
275
|
+
} from "./chunk-EG2OMKWH.js";
|
|
277
276
|
import {
|
|
278
277
|
importFrom,
|
|
279
278
|
resolveFrom
|
|
280
279
|
} from "./chunk-Y5E2WNWB.js";
|
|
280
|
+
import {
|
|
281
|
+
CliError,
|
|
282
|
+
isCliError,
|
|
283
|
+
singleLine,
|
|
284
|
+
visibleControls
|
|
285
|
+
} from "./chunk-CCHHEMPM.js";
|
|
281
286
|
import {
|
|
282
287
|
__commonJS,
|
|
283
288
|
__name,
|
|
@@ -16893,7 +16898,7 @@ var require_lib3 = __commonJS({
|
|
|
16893
16898
|
}
|
|
16894
16899
|
});
|
|
16895
16900
|
|
|
16896
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16901
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/conversations/link.js
|
|
16897
16902
|
var RULES_VERSION = 5;
|
|
16898
16903
|
var LOOK_BACK = 50;
|
|
16899
16904
|
var SAME_SENDER_WITHIN = 10;
|
|
@@ -16983,13 +16988,13 @@ var latest = /* @__PURE__ */ __name((window3, matches) => {
|
|
|
16983
16988
|
var sameThread = /* @__PURE__ */ __name((a, b) => a.threadId === b.threadId, "sameThread");
|
|
16984
16989
|
var link = /* @__PURE__ */ __name((message, parentId, source, kind, confidence, method) => ({ messageId: message.id, parentId, source, kind, confidence, method }), "link");
|
|
16985
16990
|
|
|
16986
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16991
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/ports/traits.js
|
|
16987
16992
|
var syncsOneChat = /* @__PURE__ */ __name((messenger) => messenger.history !== "store" || messenger.historyOnDemand === true, "syncsOneChat");
|
|
16988
16993
|
|
|
16989
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16994
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/store/sqlite/document-transfer/snapshot.js
|
|
16990
16995
|
var MAX_BYTES = 16 * 1024 * 1024;
|
|
16991
16996
|
|
|
16992
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16997
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/store/knowledge-query.js
|
|
16993
16998
|
var ORGANIZATIONS_QUERY = {
|
|
16994
16999
|
entity: "organization",
|
|
16995
17000
|
backend: "sql",
|
|
@@ -17024,7 +17029,7 @@ var REMINDERS_QUERY = {
|
|
|
17024
17029
|
})
|
|
17025
17030
|
};
|
|
17026
17031
|
|
|
17027
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17032
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/store/project-transfer/preview.js
|
|
17028
17033
|
var previewProjectAnnotationSnapshot = /* @__PURE__ */ __name(async (options) => {
|
|
17029
17034
|
if (!options || typeof options !== "object" || Array.isArray(options))
|
|
17030
17035
|
throw new CliError("validation_error", "project preview options are required");
|
|
@@ -17046,7 +17051,7 @@ var previewProjectAnnotationSnapshot = /* @__PURE__ */ __name(async (options) =>
|
|
|
17046
17051
|
}
|
|
17047
17052
|
}, "previewProjectAnnotationSnapshot");
|
|
17048
17053
|
|
|
17049
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17054
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/store/project-transfer/snapshot.js
|
|
17050
17055
|
var snapshotProjectAnnotations = /* @__PURE__ */ __name(async (options) => {
|
|
17051
17056
|
if (!options || typeof options !== "object" || Array.isArray(options))
|
|
17052
17057
|
throw new CliError("validation_error", "snapshot options are required");
|
|
@@ -17067,7 +17072,7 @@ var snapshotProjectAnnotations = /* @__PURE__ */ __name(async (options) => {
|
|
|
17067
17072
|
}
|
|
17068
17073
|
}, "snapshotProjectAnnotations");
|
|
17069
17074
|
|
|
17070
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17075
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/cli/messenger/lacks.js
|
|
17071
17076
|
var COMMAND_NEEDS = {
|
|
17072
17077
|
"account update": ["updateProfile", "change the profile"],
|
|
17073
17078
|
"account sessions list": ["sessions", "list the account's sessions"],
|
|
@@ -17117,7 +17122,7 @@ var hideNever = /* @__PURE__ */ __name((messenger, group) => {
|
|
|
17117
17122
|
return group;
|
|
17118
17123
|
}, "hideNever");
|
|
17119
17124
|
|
|
17120
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17125
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/services/members-audit.js
|
|
17121
17126
|
var AUDIT_PAGE = 200;
|
|
17122
17127
|
var AUDIT_BUDGET = 10;
|
|
17123
17128
|
var AUDIT_PAUSE_MS = 1e3;
|
|
@@ -17197,7 +17202,7 @@ var burstJoins = /* @__PURE__ */ __name((members) => {
|
|
|
17197
17202
|
return found;
|
|
17198
17203
|
}, "burstJoins");
|
|
17199
17204
|
|
|
17200
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17205
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/meetings/cli/query-options.js
|
|
17201
17206
|
var queryWordsAfterOptions = /* @__PURE__ */ __name((command) => {
|
|
17202
17207
|
command.allowUnknownOption();
|
|
17203
17208
|
const parse = command.parseOptions.bind(command);
|
|
@@ -17217,7 +17222,7 @@ var queryWordsAfterOptions = /* @__PURE__ */ __name((command) => {
|
|
|
17217
17222
|
return command;
|
|
17218
17223
|
}, "queryWordsAfterOptions");
|
|
17219
17224
|
|
|
17220
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17225
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/meetings/cli/passage.js
|
|
17221
17226
|
var count = /* @__PURE__ */ __name((value) => {
|
|
17222
17227
|
if (!/^(0|[1-9]\d*)$/.test(value) || !Number.isSafeInteger(Number(value)))
|
|
17223
17228
|
throw new CliError("validation_error", "expected a nonnegative safe integer");
|
|
@@ -17259,7 +17264,7 @@ var addMeetingPassageCommandDefinition = /* @__PURE__ */ __name((program, deps)
|
|
|
17259
17264
|
var createMeetingPassageCommand = sharedCommand(createMeetingPassageCommandDefinition);
|
|
17260
17265
|
var addMeetingPassageCommand = sharedCommand(addMeetingPassageCommandDefinition);
|
|
17261
17266
|
|
|
17262
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17267
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/meetings/cli/project-evidence.js
|
|
17263
17268
|
var integer2 = /* @__PURE__ */ __name((value) => {
|
|
17264
17269
|
if (!/^[1-9]\d*$/.test(value) || !Number.isSafeInteger(Number(value)))
|
|
17265
17270
|
throw new CliError("validation_error", "expected a positive safe integer");
|
|
@@ -17282,7 +17287,7 @@ ${fieldsHelp(MEETING_PROJECT_EVIDENCE_QUERY)}`).option("--limit <n>", "hits in o
|
|
|
17282
17287
|
}, "addMeetingProjectEvidenceCommandDefinition");
|
|
17283
17288
|
var addMeetingProjectEvidenceCommand = sharedCommand(addMeetingProjectEvidenceCommandDefinition);
|
|
17284
17289
|
|
|
17285
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17290
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/meetings/cli/search.js
|
|
17286
17291
|
var ZONED = /(?:Z|[+-]\d{2}:?\d{2})$/i;
|
|
17287
17292
|
var moment = /* @__PURE__ */ __name((flag, end, readIn) => (value) => {
|
|
17288
17293
|
const zone = timezoneOf();
|
|
@@ -17368,7 +17373,7 @@ var addMeetingSearchCommandDefinition = /* @__PURE__ */ __name((program, deps) =
|
|
|
17368
17373
|
var createMeetingSearchCommand = sharedCommand(createMeetingSearchCommandDefinition);
|
|
17369
17374
|
var addMeetingSearchCommand = sharedCommand(addMeetingSearchCommandDefinition);
|
|
17370
17375
|
|
|
17371
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17376
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/meetings/cli/index.js
|
|
17372
17377
|
var integer4 = /* @__PURE__ */ __name((text2) => {
|
|
17373
17378
|
if (!/^[1-9]\d*$/.test(text2) || !Number.isSafeInteger(Number(text2)))
|
|
17374
17379
|
throw new InvalidArgumentError("expected a positive integer");
|
|
@@ -17500,7 +17505,7 @@ ${fieldsHelp(EVENT_QUERY, MEETING_QUERY_GUIDE)}`);
|
|
|
17500
17505
|
}, "addMeetingCommandsDefinition");
|
|
17501
17506
|
var addMeetingCommands = sharedCommand(addMeetingCommandsDefinition);
|
|
17502
17507
|
|
|
17503
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17508
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/cli/list-query.js
|
|
17504
17509
|
var LIST_QUERY_GUIDE = "https://github.com/WireCatLabs/cli-core/blob/main/docs/search/query-language.md";
|
|
17505
17510
|
var QUERY_ARGUMENT = "field:value terms that narrow the list \u2014 the fields are below";
|
|
17506
17511
|
var withQuery = /* @__PURE__ */ __name((command, registry) => {
|
|
@@ -17633,7 +17638,7 @@ var termField = /* @__PURE__ */ __name((name, type, example, more = {}) => nativ
|
|
|
17633
17638
|
var queryHelp = /* @__PURE__ */ __name((registry) => `
|
|
17634
17639
|
${fieldsHelp(registry, LIST_QUERY_GUIDE)}`, "queryHelp");
|
|
17635
17640
|
|
|
17636
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17641
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/cli/paging.js
|
|
17637
17642
|
var positiveCount = /* @__PURE__ */ __name((flag) => (value) => {
|
|
17638
17643
|
if (!/^\d+$/.test(value.trim()) || Number(value) < 1)
|
|
17639
17644
|
throw new CliError("validation_error", `${flag} takes a whole number from 1 upwards, not "${value}"`);
|
|
@@ -17642,7 +17647,7 @@ var positiveCount = /* @__PURE__ */ __name((flag) => (value) => {
|
|
|
17642
17647
|
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");
|
|
17643
17648
|
var window = /* @__PURE__ */ __name(({ limit, page, all }) => all ? { offset: 0 } : { limit, offset: (page - 1) * limit }, "window");
|
|
17644
17649
|
|
|
17645
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17650
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/cli/messenger/chat-answers.js
|
|
17646
17651
|
var defined = /* @__PURE__ */ __name((record2) => Object.fromEntries(Object.entries(record2).filter(([, value]) => value !== void 0)), "defined");
|
|
17647
17652
|
var chatRef = /* @__PURE__ */ __name((account, chat) => formatReference({ type: "chat", provider: account.provider, account: account.account, chat }), "chatRef");
|
|
17648
17653
|
var settingsOf = /* @__PURE__ */ __name((settings) => defined({
|
|
@@ -17904,7 +17909,7 @@ var sessionAnswer = /* @__PURE__ */ __name(({ current, client, device, location,
|
|
|
17904
17909
|
...createdAt === void 0 ? {} : { created_at: createdAt }
|
|
17905
17910
|
}), "sessionAnswer");
|
|
17906
17911
|
|
|
17907
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17912
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/ports/messenger.js
|
|
17908
17913
|
var throughWrapper = /* @__PURE__ */ __name((inner, handled, wrap = (_, call) => call) => new Proxy(handled, {
|
|
17909
17914
|
get: /* @__PURE__ */ __name((own, key) => {
|
|
17910
17915
|
if (key in own)
|
|
@@ -17921,12 +17926,12 @@ var capability = /* @__PURE__ */ __name((adapter, method, what) => {
|
|
|
17921
17926
|
return found.bind(adapter);
|
|
17922
17927
|
}, "capability");
|
|
17923
17928
|
|
|
17924
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17929
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/sends/send-id.js
|
|
17925
17930
|
import { randomBytes } from "node:crypto";
|
|
17926
17931
|
var newSendId = /* @__PURE__ */ __name(() => randomBytes(8).readBigInt64BE().toString(), "newSendId");
|
|
17927
17932
|
var newOperationId = newSendId;
|
|
17928
17933
|
|
|
17929
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17934
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/services/deps.js
|
|
17930
17935
|
var accountStore = /* @__PURE__ */ __name(async (deps) => (await deps.store()).forAccount(await deps.account()), "accountStore");
|
|
17931
17936
|
var crossAccount = /* @__PURE__ */ __name((deps, _reason) => deps.store(), "crossAccount");
|
|
17932
17937
|
var NO_LOCAL_STORE = "this answer comes from the messenger, not from the local store";
|
|
@@ -18003,7 +18008,7 @@ var storeOnlyDeps = /* @__PURE__ */ __name((store, account, { app, env }) => {
|
|
|
18003
18008
|
return { ...storedDeps(messenger, store, account, guard), ...env === void 0 ? {} : { env } };
|
|
18004
18009
|
}, "storeOnlyDeps");
|
|
18005
18010
|
|
|
18006
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18011
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/services/patience.js
|
|
18007
18012
|
import { setTimeout as sleep } from "node:timers/promises";
|
|
18008
18013
|
var LONGEST_WAIT_MS = 5 * 60 * 1e3;
|
|
18009
18014
|
var patiently = /* @__PURE__ */ __name(async (request, note2, stop) => {
|
|
@@ -18026,10 +18031,10 @@ var patiently = /* @__PURE__ */ __name(async (request, note2, stop) => {
|
|
|
18026
18031
|
}
|
|
18027
18032
|
}, "patiently");
|
|
18028
18033
|
|
|
18029
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18034
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/services/archive.js
|
|
18030
18035
|
import { setTimeout as sleep2 } from "node:timers/promises";
|
|
18031
18036
|
|
|
18032
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18037
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/services/backfill-estimate.js
|
|
18033
18038
|
var REQUEST_MS = 400;
|
|
18034
18039
|
var estimateBackfill = /* @__PURE__ */ __name(({ ranges, held, newest, page, maxPages, pauseMs }) => {
|
|
18035
18040
|
const lowest = ranges[0];
|
|
@@ -18052,13 +18057,13 @@ var estimateBackfill = /* @__PURE__ */ __name(({ ranges, held, newest, page, max
|
|
|
18052
18057
|
};
|
|
18053
18058
|
}, "estimateBackfill");
|
|
18054
18059
|
|
|
18055
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18060
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/domain/recovery.js
|
|
18056
18061
|
var withRecovery = /* @__PURE__ */ __name((error) => ({
|
|
18057
18062
|
...error,
|
|
18058
18063
|
retryable: typeof error.retryable === "boolean" ? error.retryable : error.code === "rate_limited" || error.status === 429
|
|
18059
18064
|
}), "withRecovery");
|
|
18060
18065
|
|
|
18061
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18066
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/services/batch.js
|
|
18062
18067
|
var actionable = /* @__PURE__ */ __name((error) => {
|
|
18063
18068
|
if (isCliFailure(error))
|
|
18064
18069
|
return withRecovery({ code: error.code, message: error.message, ...error.details });
|
|
@@ -18141,7 +18146,7 @@ var mergeBatches = /* @__PURE__ */ __name((a, b) => {
|
|
|
18141
18146
|
};
|
|
18142
18147
|
}, "mergeBatches");
|
|
18143
18148
|
|
|
18144
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18149
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/domain/ref-arguments.js
|
|
18145
18150
|
var TAKES = {
|
|
18146
18151
|
chat: "a chat: chat:<provider>/<account>/<chat>, its id or its title",
|
|
18147
18152
|
message: "a message: msg:<provider>/<account>/<chat>/<message>, or a chat and the message's id"
|
|
@@ -18201,7 +18206,7 @@ var ensureAccount = /* @__PURE__ */ __name(async (reference, scope, profilesOn)
|
|
|
18201
18206
|
throw wrongAccount(reference, scope, profiles);
|
|
18202
18207
|
}, "ensureAccount");
|
|
18203
18208
|
|
|
18204
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18209
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/resolve.js
|
|
18205
18210
|
var isId = /* @__PURE__ */ __name((reference) => /^-?\d+$/.test(reference.trim()), "isId");
|
|
18206
18211
|
var foldName = /* @__PURE__ */ __name((name) => name.normalize("NFC").replace(/[\uFE0E\uFE0F\u200D]/g, "").toLowerCase(), "foldName");
|
|
18207
18212
|
var pickChat = /* @__PURE__ */ __name((reference, chats) => {
|
|
@@ -18246,7 +18251,7 @@ ${lines3}`, { candidates });
|
|
|
18246
18251
|
}, "ambiguous");
|
|
18247
18252
|
var isPresent = /* @__PURE__ */ __name((value) => value !== null && value !== void 0, "isPresent");
|
|
18248
18253
|
|
|
18249
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18254
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/services/message-resolution.js
|
|
18250
18255
|
var readChatId = /* @__PURE__ */ __name(async (deps, reference, store, account) => {
|
|
18251
18256
|
if (deps.reads !== "store")
|
|
18252
18257
|
return keptChatId(deps.messenger, reference, store, account);
|
|
@@ -18405,7 +18410,7 @@ var senderAmong = /* @__PURE__ */ __name(async (store, accounts, reference) => {
|
|
|
18405
18410
|
}
|
|
18406
18411
|
}, "senderAmong");
|
|
18407
18412
|
|
|
18408
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18413
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/images/context/index.js
|
|
18409
18414
|
var CONTEXT_MESSAGES = 3;
|
|
18410
18415
|
var CONTEXT_MINUTES = 10;
|
|
18411
18416
|
var MAX_CHARS = 1200;
|
|
@@ -18429,12 +18434,12 @@ var context = {
|
|
|
18429
18434
|
}, "describe")
|
|
18430
18435
|
};
|
|
18431
18436
|
|
|
18432
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18437
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/images/registry.js
|
|
18433
18438
|
var BUILT_INS = [context];
|
|
18434
18439
|
var providers = [...BUILT_INS];
|
|
18435
18440
|
var registeredImageProviders = /* @__PURE__ */ __name(() => providers, "registeredImageProviders");
|
|
18436
18441
|
|
|
18437
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18442
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/services/conversations.js
|
|
18438
18443
|
var READ_PAGE = 5e3;
|
|
18439
18444
|
var CHAIN = 50;
|
|
18440
18445
|
var CONVERSATION_QUERY = {
|
|
@@ -18586,7 +18591,7 @@ var sized = /* @__PURE__ */ __name((size4) => {
|
|
|
18586
18591
|
return size4;
|
|
18587
18592
|
}, "sized");
|
|
18588
18593
|
|
|
18589
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18594
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/services/embeddings-maintenance.js
|
|
18590
18595
|
var REFRESH_BOUNDS = { maxChats: 20, maxChunks: 2e3 };
|
|
18591
18596
|
var MESSAGE_PAGE = 5e3;
|
|
18592
18597
|
var PER_SESSION = 8;
|
|
@@ -18605,7 +18610,7 @@ var embeddingTarget = /* @__PURE__ */ __name((deps, choice = DEFAULT_TEXT_MODEL)
|
|
|
18605
18610
|
price: remote.price,
|
|
18606
18611
|
installed: true,
|
|
18607
18612
|
perBatch: PER_REQUEST * concurrency,
|
|
18608
|
-
open: /* @__PURE__ */ __name(async () => (await import("./remote-
|
|
18613
|
+
open: /* @__PURE__ */ __name(async () => (await import("./remote-KGEVCB2Q.js")).openRemote(remote, apiKey, { concurrency }), "open")
|
|
18609
18614
|
};
|
|
18610
18615
|
}
|
|
18611
18616
|
const model = textModel(choice);
|
|
@@ -18622,7 +18627,7 @@ var embeddingTarget = /* @__PURE__ */ __name((deps, choice = DEFAULT_TEXT_MODEL)
|
|
|
18622
18627
|
if (!isTextModelInstalled(model, directory2))
|
|
18623
18628
|
throw notDownloaded(model.id);
|
|
18624
18629
|
if (apart) {
|
|
18625
|
-
const { openProcess } = await import("./process-
|
|
18630
|
+
const { openProcess } = await import("./process-PI6XUJWP.js");
|
|
18626
18631
|
return openProcess(model, directory2, { threads: threads ?? defaultThreads() });
|
|
18627
18632
|
}
|
|
18628
18633
|
return openEmbedder(model, directory2, { threads: threads ?? defaultThreads() });
|
|
@@ -18911,7 +18916,7 @@ var shaped = /* @__PURE__ */ __name(({ chatId, builtAt, algorithmVersion, pendin
|
|
|
18911
18916
|
return { ...one2, state };
|
|
18912
18917
|
}, "shaped");
|
|
18913
18918
|
|
|
18914
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18919
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/services/search-catchup.js
|
|
18915
18920
|
var CATCH_UP_BOUNDS = { maxChunks: 500, maxMessages: 1e4, timeMs: 3e4 };
|
|
18916
18921
|
var validateCatchUpBounds = /* @__PURE__ */ __name((options) => {
|
|
18917
18922
|
for (const [key, value, maximum] of [
|
|
@@ -18964,7 +18969,7 @@ var catchUpSearch = /* @__PURE__ */ __name(async (deps, chat, options, signal, c
|
|
|
18964
18969
|
}
|
|
18965
18970
|
}, "catchUpSearch");
|
|
18966
18971
|
|
|
18967
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18972
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/services/archive.js
|
|
18968
18973
|
var pushed = /* @__PURE__ */ __name((deps, what) => {
|
|
18969
18974
|
if (deps.reads === "store") {
|
|
18970
18975
|
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`);
|
|
@@ -19330,7 +19335,7 @@ var timeOfKey = /* @__PURE__ */ __name(async (store, account, chatId, key, byTim
|
|
|
19330
19335
|
return message?.timestamp ?? fallback;
|
|
19331
19336
|
}, "timeOfKey");
|
|
19332
19337
|
|
|
19333
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19338
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/services/questions.js
|
|
19334
19339
|
var LINKS = /https?:\/\/\S+/g;
|
|
19335
19340
|
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");
|
|
19336
19341
|
var questions = /* @__PURE__ */ __name((messages, { answerers: answerers2, asker = "others" }) => {
|
|
@@ -19360,7 +19365,7 @@ var questions = /* @__PURE__ */ __name((messages, { answerers: answerers2, asker
|
|
|
19360
19365
|
});
|
|
19361
19366
|
}, "questions");
|
|
19362
19367
|
|
|
19363
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19368
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/services/task-categories.js
|
|
19364
19369
|
var names = /* @__PURE__ */ __name((categories) => categories.map(({ name }) => name).join(", "), "names");
|
|
19365
19370
|
var taskCategoryOf = /* @__PURE__ */ __name((categories = DEFAULT_TASK_CATEGORIES, flag = "--category") => (typed) => {
|
|
19366
19371
|
const name = typed.trim().toLowerCase();
|
|
@@ -19417,7 +19422,7 @@ var categorize = /* @__PURE__ */ __name((text2, categories = DEFAULT_TASK_CATEGO
|
|
|
19417
19422
|
return best.name;
|
|
19418
19423
|
}, "categorize");
|
|
19419
19424
|
|
|
19420
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19425
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/services/task-rules.js
|
|
19421
19426
|
var taskAccount = /* @__PURE__ */ __name(({ provider, account }) => `${provider}:${account}`, "taskAccount");
|
|
19422
19427
|
var RULES_IN = {
|
|
19423
19428
|
dialog: "all",
|
|
@@ -19623,7 +19628,7 @@ var applyTaskRulesToChats = /* @__PURE__ */ __name(async (store, account, chatId
|
|
|
19623
19628
|
return passes;
|
|
19624
19629
|
}, "applyTaskRulesToChats");
|
|
19625
19630
|
|
|
19626
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19631
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/context/evidence-response.js
|
|
19627
19632
|
var contextSourceKey = /* @__PURE__ */ __name((source) => JSON.stringify([source.kind, source.accountId, source.provider, source.account]), "contextSourceKey");
|
|
19628
19633
|
var validateContextEvidencePage = /* @__PURE__ */ __name((page, request) => {
|
|
19629
19634
|
const fail3 = /* @__PURE__ */ __name(() => {
|
|
@@ -19687,7 +19692,7 @@ var validateContextEvidencePage = /* @__PURE__ */ __name((page, request) => {
|
|
|
19687
19692
|
}
|
|
19688
19693
|
}, "validateContextEvidencePage");
|
|
19689
19694
|
|
|
19690
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19695
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/context/read-budget.js
|
|
19691
19696
|
var contextReadBudget = /* @__PURE__ */ __name((limits = {}) => {
|
|
19692
19697
|
if (!limits || typeof limits !== "object" || Array.isArray(limits))
|
|
19693
19698
|
throw new CliError("validation_error", "limits needs a context read allowance");
|
|
@@ -19740,7 +19745,7 @@ var contextReadBudget = /* @__PURE__ */ __name((limits = {}) => {
|
|
|
19740
19745
|
};
|
|
19741
19746
|
}, "contextReadBudget");
|
|
19742
19747
|
|
|
19743
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19748
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/services/context-evidence.js
|
|
19744
19749
|
var createContextEvidenceReader = /* @__PURE__ */ __name((port, allowed, limits) => {
|
|
19745
19750
|
if (!port || typeof port.read !== "function")
|
|
19746
19751
|
throw new CliError("configuration_error", "context evidence reader is unavailable");
|
|
@@ -19784,7 +19789,7 @@ var createContextEvidenceReader = /* @__PURE__ */ __name((port, allowed, limits)
|
|
|
19784
19789
|
};
|
|
19785
19790
|
}, "createContextEvidenceReader");
|
|
19786
19791
|
|
|
19787
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19792
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/services/ingest.js
|
|
19788
19793
|
var emptyReceipt = /* @__PURE__ */ __name((dryRun) => ({
|
|
19789
19794
|
dryRun,
|
|
19790
19795
|
source: null,
|
|
@@ -19859,7 +19864,7 @@ var ingest = /* @__PURE__ */ __name(async (store, envelope, { account, dryRun =
|
|
|
19859
19864
|
return receipt;
|
|
19860
19865
|
}, "ingest");
|
|
19861
19866
|
|
|
19862
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19867
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/services/project-purposes.js
|
|
19863
19868
|
var BUILT_IN_PURPOSES = ["work", "sales", "support", "other"];
|
|
19864
19869
|
var DEFAULT_PURPOSES = ["work"];
|
|
19865
19870
|
var LINK_PURPOSE = "work";
|
|
@@ -19889,7 +19894,7 @@ var purposeList = /* @__PURE__ */ __name((value, previous = []) => [
|
|
|
19889
19894
|
...value.split(",").map((one2) => one2.trim()).filter(Boolean)
|
|
19890
19895
|
], "purposeList");
|
|
19891
19896
|
|
|
19892
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19897
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/services/moment.js
|
|
19893
19898
|
var AGO = /^(\d+)(m|h|d)$/;
|
|
19894
19899
|
var AGO_MS = { m: 6e4, h: 36e5, d: 864e5 };
|
|
19895
19900
|
var DATE = /^\d{4}-\d{2}-\d{2}/;
|
|
@@ -19929,7 +19934,7 @@ var dateWindow = /* @__PURE__ */ __name(({ sinceTime, untilTime, zone, now = Dat
|
|
|
19929
19934
|
};
|
|
19930
19935
|
}, "dateWindow");
|
|
19931
19936
|
|
|
19932
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19937
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/botcheck/check.js
|
|
19933
19938
|
var DAY_MS = 864e5;
|
|
19934
19939
|
var NEW_DAYS = 30;
|
|
19935
19940
|
var SAME_TEXT_MIN = 20;
|
|
@@ -20006,7 +20011,7 @@ var scorePerson = /* @__PURE__ */ __name(({ subject, provider, activity, photos,
|
|
|
20006
20011
|
};
|
|
20007
20012
|
}, "scorePerson");
|
|
20008
20013
|
|
|
20009
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20014
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/botcheck/registries.js
|
|
20010
20015
|
var REGISTRIES = {
|
|
20011
20016
|
cas: { title: "Combot Anti-Spam (CAS)", docs: "https://cas.chat/api" },
|
|
20012
20017
|
lols: { title: "lols.bot", docs: "https://api.lols.bot/lols-bot.json" }
|
|
@@ -20091,7 +20096,7 @@ var notCovered = /* @__PURE__ */ __name((messenger, now = /* @__PURE__ */ new Da
|
|
|
20091
20096
|
detail: `lists Telegram accounts only, not ${messenger} ones`
|
|
20092
20097
|
})), "notCovered");
|
|
20093
20098
|
|
|
20094
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20099
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/botcheck/service.js
|
|
20095
20100
|
var ACTIVITY_MESSAGES = 1e3;
|
|
20096
20101
|
var botCheckService = /* @__PURE__ */ __name((deps) => {
|
|
20097
20102
|
const subjectOf = /* @__PURE__ */ __name(async (reference) => {
|
|
@@ -20179,7 +20184,7 @@ var botCheckService = /* @__PURE__ */ __name((deps) => {
|
|
|
20179
20184
|
};
|
|
20180
20185
|
}, "botCheckService");
|
|
20181
20186
|
|
|
20182
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20187
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/domain/thread.js
|
|
20183
20188
|
var threadIdOf = /* @__PURE__ */ __name((value) => {
|
|
20184
20189
|
if (value === void 0)
|
|
20185
20190
|
return void 0;
|
|
@@ -20189,7 +20194,7 @@ var threadIdOf = /* @__PURE__ */ __name((value) => {
|
|
|
20189
20194
|
return id2;
|
|
20190
20195
|
}, "threadIdOf");
|
|
20191
20196
|
|
|
20192
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20197
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/services/chat-stats.js
|
|
20193
20198
|
var TOP_POSTS = 5;
|
|
20194
20199
|
var JOINS = /* @__PURE__ */ new Set(["join", "add"]);
|
|
20195
20200
|
var LEAVES = /* @__PURE__ */ new Set(["leave", "remove"]);
|
|
@@ -20306,7 +20311,7 @@ var median = /* @__PURE__ */ __name((values) => {
|
|
|
20306
20311
|
return Math.round(sorted.length % 2 === 0 ? ((sorted[middle - 1] ?? upper) + upper) / 2 : upper);
|
|
20307
20312
|
}, "median");
|
|
20308
20313
|
|
|
20309
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20314
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/services/member-history.js
|
|
20310
20315
|
var memberEvents = /* @__PURE__ */ __name((stays, revisions, since = 0) => {
|
|
20311
20316
|
const events = [];
|
|
20312
20317
|
for (const stay of stays) {
|
|
@@ -20338,7 +20343,7 @@ var memberEvents = /* @__PURE__ */ __name((stays, revisions, since = 0) => {
|
|
|
20338
20343
|
return events.filter(({ at }) => Date.parse(at) >= since).sort((a, b) => Date.parse(a.at) - Date.parse(b.at) || a.id.localeCompare(b.id));
|
|
20339
20344
|
}, "memberEvents");
|
|
20340
20345
|
|
|
20341
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20346
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/services/chats.js
|
|
20342
20347
|
var EVENTS_DAYS = 7;
|
|
20343
20348
|
var TRACKED_DAYS = 30;
|
|
20344
20349
|
var STATS_PAGE = 1e3;
|
|
@@ -20633,7 +20638,7 @@ var storedMembers = /* @__PURE__ */ __name(async (store, chatId) => {
|
|
|
20633
20638
|
return members.length === 0 ? null : members;
|
|
20634
20639
|
}, "storedMembers");
|
|
20635
20640
|
|
|
20636
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20641
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/services/inbox.js
|
|
20637
20642
|
var INBOX_CHATS = 20;
|
|
20638
20643
|
var REVIEW_DAYS = 3;
|
|
20639
20644
|
var UNANSWERED_HOURS = 24;
|
|
@@ -20841,7 +20846,7 @@ var inboxService = /* @__PURE__ */ __name((deps) => {
|
|
|
20841
20846
|
};
|
|
20842
20847
|
}, "inboxService");
|
|
20843
20848
|
|
|
20844
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20849
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/services/person-context.js
|
|
20845
20850
|
var CONTEXT_MESSAGES2 = 10;
|
|
20846
20851
|
var CONTEXT_BYTES = 64 * 1024;
|
|
20847
20852
|
var toContext = /* @__PURE__ */ __name((key, message, chatTitle2) => ({
|
|
@@ -21102,10 +21107,10 @@ var personMessages = /* @__PURE__ */ __name(async (store, asked, reference, { ch
|
|
|
21102
21107
|
};
|
|
21103
21108
|
}, "personMessages");
|
|
21104
21109
|
|
|
21105
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21110
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/services/meeting-evidence.js
|
|
21106
21111
|
import { createHash } from "node:crypto";
|
|
21107
21112
|
|
|
21108
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21113
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/services/meeting-reference.js
|
|
21109
21114
|
var missing2 = /* @__PURE__ */ __name(() => new CliError("not_found", "the meeting evidence is unavailable for this account"), "missing");
|
|
21110
21115
|
var authorizedMeetingMetadata = /* @__PURE__ */ __name(async (store, accountId, reference, options = {}) => {
|
|
21111
21116
|
const parsed = parseMeetingReference(reference);
|
|
@@ -21123,7 +21128,7 @@ var authorizedMeetingMetadata = /* @__PURE__ */ __name(async (store, accountId,
|
|
|
21123
21128
|
return { parsed, meeting };
|
|
21124
21129
|
}, "authorizedMeetingMetadata");
|
|
21125
21130
|
|
|
21126
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21131
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/services/meeting-evidence.js
|
|
21127
21132
|
var hash = /* @__PURE__ */ __name((value) => createHash("sha256").update(JSON.stringify(value)).digest("hex"), "hash");
|
|
21128
21133
|
var checkMeetingCancelled = /* @__PURE__ */ __name((signal) => {
|
|
21129
21134
|
if (signal?.aborted)
|
|
@@ -21322,7 +21327,7 @@ var readMeetingEvidence = /* @__PURE__ */ __name(async (store, accountId, refere
|
|
|
21322
21327
|
return { ...packet, fingerprint: hash(packet) };
|
|
21323
21328
|
}, "readMeetingEvidence");
|
|
21324
21329
|
|
|
21325
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21330
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/services/person-meeting-context.js
|
|
21326
21331
|
var personMeetingContext = /* @__PURE__ */ __name(async (store, personReference, options) => {
|
|
21327
21332
|
const { meetings = 10, cues = 5, bytes: bytes2 = 64 * 1024, scanLimit = 1e3, since, signal } = options;
|
|
21328
21333
|
const requestedAccounts = options.accountIds;
|
|
@@ -21421,7 +21426,7 @@ var personMeetingContext = /* @__PURE__ */ __name(async (store, personReference,
|
|
|
21421
21426
|
};
|
|
21422
21427
|
}, "personMeetingContext");
|
|
21423
21428
|
|
|
21424
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21429
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/services/person-preparation.js
|
|
21425
21430
|
var PREPARE_BYTES = 96 * 1024;
|
|
21426
21431
|
var MEETINGS = 5;
|
|
21427
21432
|
var CUES = 3;
|
|
@@ -21538,7 +21543,7 @@ var meetingsOf = /* @__PURE__ */ __name(async (store, uid, stored, since, left)
|
|
|
21538
21543
|
}
|
|
21539
21544
|
}, "meetingsOf");
|
|
21540
21545
|
|
|
21541
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21546
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/services/person-profile.js
|
|
21542
21547
|
var personProfile = /* @__PURE__ */ __name(async (deps, person, known2) => {
|
|
21543
21548
|
const online = deps.offline ? void 0 : await deps.connection();
|
|
21544
21549
|
const held = await storeIfOpen(deps);
|
|
@@ -21608,7 +21613,7 @@ var quiet = /* @__PURE__ */ __name((facts) => facts.chats.map(({ id: id2, title,
|
|
|
21608
21613
|
complete: false
|
|
21609
21614
|
})), "quiet");
|
|
21610
21615
|
|
|
21611
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21616
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/services/person-timeline.js
|
|
21612
21617
|
var TIMELINE_ITEMS = 50;
|
|
21613
21618
|
var TIMELINE_MAX = 500;
|
|
21614
21619
|
var SCOPES2 = ["personal", "work"];
|
|
@@ -21663,7 +21668,7 @@ var personTimeline = /* @__PURE__ */ __name(async (store, asked, reference, { sc
|
|
|
21663
21668
|
};
|
|
21664
21669
|
}, "personTimeline");
|
|
21665
21670
|
|
|
21666
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21671
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/services/people.js
|
|
21667
21672
|
var peopleService = /* @__PURE__ */ __name((deps) => {
|
|
21668
21673
|
const localCard = /* @__PURE__ */ __name(async (card, includeNotes = false) => {
|
|
21669
21674
|
const held = await storeIfOpen(deps);
|
|
@@ -21890,7 +21895,7 @@ var withoutPhone = /* @__PURE__ */ __name((answer) => {
|
|
|
21890
21895
|
return rest;
|
|
21891
21896
|
}, "withoutPhone");
|
|
21892
21897
|
|
|
21893
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21898
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/services/task-tag-filters.js
|
|
21894
21899
|
var taskTagFilters = /* @__PURE__ */ __name(async (store, query) => {
|
|
21895
21900
|
const tags = /* @__PURE__ */ new Map();
|
|
21896
21901
|
for (const node of query ? walkQuery(query.root) : [])
|
|
@@ -21899,7 +21904,7 @@ var taskTagFilters = /* @__PURE__ */ __name(async (store, query) => {
|
|
|
21899
21904
|
return tags;
|
|
21900
21905
|
}, "taskTagFilters");
|
|
21901
21906
|
|
|
21902
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21907
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/services/tasks.js
|
|
21903
21908
|
var TASK_QUERY = {
|
|
21904
21909
|
entity: "task",
|
|
21905
21910
|
backend: "sql",
|
|
@@ -22379,7 +22384,7 @@ var taskView = /* @__PURE__ */ __name(async (store, account, task2) => {
|
|
|
22379
22384
|
};
|
|
22380
22385
|
}, "taskView");
|
|
22381
22386
|
|
|
22382
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22387
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/services/proposal-tasks.js
|
|
22383
22388
|
var proposalSource = /* @__PURE__ */ __name((id2) => `proposed-action:${id2}`, "proposalSource");
|
|
22384
22389
|
var approveAsTask = /* @__PURE__ */ __name(async (store, id2, by) => {
|
|
22385
22390
|
const proposal = await store.proposedActions.get(id2);
|
|
@@ -22409,7 +22414,7 @@ var approveAsTask = /* @__PURE__ */ __name(async (store, id2, by) => {
|
|
|
22409
22414
|
return { proposal: await store.proposedActions.approve(proposal.id, by, { task: task2.id }), task: task2 };
|
|
22410
22415
|
}, "approveAsTask");
|
|
22411
22416
|
|
|
22412
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22417
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/services/proposals/ids.js
|
|
22413
22418
|
var MAX_IDS = 500;
|
|
22414
22419
|
var refuse = /* @__PURE__ */ __name((message) => {
|
|
22415
22420
|
throw new CliError("validation_error", message, { reason: "proposal.ids" });
|
|
@@ -22449,7 +22454,7 @@ var parseProposalIds = /* @__PURE__ */ __name((text2) => {
|
|
|
22449
22454
|
return ids;
|
|
22450
22455
|
}, "parseProposalIds");
|
|
22451
22456
|
|
|
22452
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22457
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/shared.js
|
|
22453
22458
|
var proposerOfAuthor = /* @__PURE__ */ __name((author) => {
|
|
22454
22459
|
if (author.type === "person")
|
|
22455
22460
|
return { type: "person", id: author.id };
|
|
@@ -22491,7 +22496,7 @@ var storedStatus = /* @__PURE__ */ __name((filter) => {
|
|
|
22491
22496
|
return status === "proposed" || status === "rejected" ? status : void 0;
|
|
22492
22497
|
}, "storedStatus");
|
|
22493
22498
|
|
|
22494
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22499
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/action.js
|
|
22495
22500
|
var rowOf = /* @__PURE__ */ __name((action2) => ({
|
|
22496
22501
|
id: action2.id,
|
|
22497
22502
|
kind: "action",
|
|
@@ -22530,7 +22535,7 @@ var actionKind = /* @__PURE__ */ __name((store, claimed) => ({
|
|
|
22530
22535
|
}, "decide")
|
|
22531
22536
|
}), "actionKind");
|
|
22532
22537
|
|
|
22533
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22538
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/fact.js
|
|
22534
22539
|
var STATUS = {
|
|
22535
22540
|
proposed: "proposed",
|
|
22536
22541
|
accepted: "confirmed",
|
|
@@ -22573,7 +22578,7 @@ var factKind = /* @__PURE__ */ __name((store) => ({
|
|
|
22573
22578
|
}, "decide")
|
|
22574
22579
|
}), "factKind");
|
|
22575
22580
|
|
|
22576
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22581
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/finance.js
|
|
22577
22582
|
var rowOf3 = /* @__PURE__ */ __name((kind, entry) => ({
|
|
22578
22583
|
id: entry.ref,
|
|
22579
22584
|
kind,
|
|
@@ -22608,7 +22613,7 @@ var financeKind = /* @__PURE__ */ __name((store, kind) => ({
|
|
|
22608
22613
|
var invoiceKind = /* @__PURE__ */ __name((store) => financeKind(store, "invoice"), "invoiceKind");
|
|
22609
22614
|
var paymentKind = /* @__PURE__ */ __name((store) => financeKind(store, "payment"), "paymentKind");
|
|
22610
22615
|
|
|
22611
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22616
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/findings.js
|
|
22612
22617
|
var FACT_SUMMARIES = {
|
|
22613
22618
|
fact: /* @__PURE__ */ __name((finding) => finding.statement, "fact"),
|
|
22614
22619
|
task: /* @__PURE__ */ __name((finding) => finding.title, "task"),
|
|
@@ -22680,7 +22685,7 @@ var findingsKind = /* @__PURE__ */ __name((store) => {
|
|
|
22680
22685
|
};
|
|
22681
22686
|
}, "findingsKind");
|
|
22682
22687
|
|
|
22683
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22688
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/key-document.js
|
|
22684
22689
|
var linkRow = /* @__PURE__ */ __name((link4) => ({
|
|
22685
22690
|
id: `key:${link4.id}`,
|
|
22686
22691
|
kind: "key_document",
|
|
@@ -22748,14 +22753,93 @@ var keyDocumentKind = /* @__PURE__ */ __name((store) => {
|
|
|
22748
22753
|
};
|
|
22749
22754
|
}, "keyDocumentKind");
|
|
22750
22755
|
|
|
22751
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22756
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/mail-findings.js
|
|
22757
|
+
var summaryOf = /* @__PURE__ */ __name((finding) => {
|
|
22758
|
+
switch (finding.kind) {
|
|
22759
|
+
case "task":
|
|
22760
|
+
return finding.title;
|
|
22761
|
+
case "fact":
|
|
22762
|
+
return finding.statement;
|
|
22763
|
+
case "task_update":
|
|
22764
|
+
return `${finding.change} ${finding.task}: ${finding.reason}`;
|
|
22765
|
+
case "memory":
|
|
22766
|
+
return finding.body.slice(0, 200);
|
|
22767
|
+
case "link":
|
|
22768
|
+
return `${finding.from} \u2192 ${finding.to}`;
|
|
22769
|
+
case "new_contact":
|
|
22770
|
+
return `${finding.name} <${finding.address}>`;
|
|
22771
|
+
}
|
|
22772
|
+
}, "summaryOf");
|
|
22773
|
+
var rowOf5 = /* @__PURE__ */ __name((batch, createdAt) => {
|
|
22774
|
+
const findings = batch.input.findings;
|
|
22775
|
+
const outcome2 = /* @__PURE__ */ __name((id2) => batch.receipt?.items.find((item2) => item2.id === id2)?.status ?? null, "outcome");
|
|
22776
|
+
const project2 = findings.flatMap((finding) => "project" in finding && finding.project ? [finding.project] : [])[0] ?? null;
|
|
22777
|
+
return {
|
|
22778
|
+
id: batch.id,
|
|
22779
|
+
kind: "mail_findings",
|
|
22780
|
+
status: batch.status === "proposed" ? "proposed" : batch.receipt?.accepted.length ? "confirmed" : "rejected",
|
|
22781
|
+
project: project2,
|
|
22782
|
+
subject: `findings:${batch.id}`,
|
|
22783
|
+
object: null,
|
|
22784
|
+
summary: `${findings.length} mail finding${findings.length === 1 ? "" : "s"} for ${batch.account.account}`,
|
|
22785
|
+
proposedBy: proposerOfAuthor(batch.author),
|
|
22786
|
+
reason: null,
|
|
22787
|
+
evidence: [...new Set(findings.flatMap((finding) => finding.evidence.map((one2) => one2.reference)))].slice(0, 5),
|
|
22788
|
+
score: null,
|
|
22789
|
+
signals: null,
|
|
22790
|
+
parts: findings.map((finding) => ({
|
|
22791
|
+
id: finding.id,
|
|
22792
|
+
kind: finding.kind,
|
|
22793
|
+
summary: summaryOf(finding),
|
|
22794
|
+
outcome: outcome2(finding.id)
|
|
22795
|
+
})),
|
|
22796
|
+
createdAt
|
|
22797
|
+
};
|
|
22798
|
+
}, "rowOf");
|
|
22799
|
+
var mailFindingsKind = /* @__PURE__ */ __name((store) => {
|
|
22800
|
+
const created = /* @__PURE__ */ __name(async (batch) => rowOf5(batch, (await store.proposedActions.get(batch.id)).createdAt), "created");
|
|
22801
|
+
return {
|
|
22802
|
+
kind: "mail_findings",
|
|
22803
|
+
stored: [MAIL_FINDINGS_KIND],
|
|
22804
|
+
parts: true,
|
|
22805
|
+
ownerOnly: true,
|
|
22806
|
+
list: /* @__PURE__ */ __name(async (filter) => {
|
|
22807
|
+
const status = filter.status ?? "proposed";
|
|
22808
|
+
const rows = [];
|
|
22809
|
+
for (let offset = 0; rows.length < filter.limit; offset += 50) {
|
|
22810
|
+
const page = await store.mailFindings.list({
|
|
22811
|
+
...status === "proposed" ? { status: "proposed" } : {},
|
|
22812
|
+
...status === "confirmed" || status === "rejected" ? { status: "reviewed" } : {},
|
|
22813
|
+
limit: 50,
|
|
22814
|
+
offset
|
|
22815
|
+
});
|
|
22816
|
+
for (const row of kept(await Promise.all(page.items.map(created)), { ...filter, limit: 50 }))
|
|
22817
|
+
rows.push(row);
|
|
22818
|
+
if (!page.hasMore)
|
|
22819
|
+
break;
|
|
22820
|
+
}
|
|
22821
|
+
return kept(rows, filter);
|
|
22822
|
+
}, "list"),
|
|
22823
|
+
get: /* @__PURE__ */ __name(async (id2) => created(await store.mailFindings.get(id2)), "get"),
|
|
22824
|
+
decide: /* @__PURE__ */ __name(async (id2, { confirm, by, parts }) => {
|
|
22825
|
+
const batch = await store.mailFindings.get(id2);
|
|
22826
|
+
const turnedDown = new Set(batch.previous.filter((one2) => one2.status === "rejected").map((one2) => one2.id));
|
|
22827
|
+
const accept = !confirm ? [] : parts ?? batch.input.findings.map((finding) => finding.id).filter((one2) => !turnedDown.has(one2));
|
|
22828
|
+
const reviewed = await store.mailFindings.review(id2, { fingerprint: batch.fingerprint, accept, by });
|
|
22829
|
+
const made = (reviewed.receipt?.items ?? []).flatMap((item2) => item2.status === "accepted" && item2.reference && !item2.reused ? [item2.reference] : []);
|
|
22830
|
+
return { id: id2, kind: "mail_findings", status: accept.length ? "confirmed" : "rejected", made };
|
|
22831
|
+
}, "decide")
|
|
22832
|
+
};
|
|
22833
|
+
}, "mailFindingsKind");
|
|
22834
|
+
|
|
22835
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/memory.js
|
|
22752
22836
|
var STATUS2 = {
|
|
22753
22837
|
proposed: "proposed",
|
|
22754
22838
|
confirmed: "confirmed",
|
|
22755
22839
|
superseded: "confirmed",
|
|
22756
22840
|
stale: "rejected"
|
|
22757
22841
|
};
|
|
22758
|
-
var
|
|
22842
|
+
var rowOf6 = /* @__PURE__ */ __name((memory) => ({
|
|
22759
22843
|
id: memory.ref,
|
|
22760
22844
|
kind: "memory",
|
|
22761
22845
|
status: STATUS2[memory.status],
|
|
@@ -22780,16 +22864,16 @@ var memoryKind = /* @__PURE__ */ __name((store) => ({
|
|
|
22780
22864
|
...pushed2(filter),
|
|
22781
22865
|
...status === "all" ? {} : { status: status === "rejected" ? "stale" : status }
|
|
22782
22866
|
});
|
|
22783
|
-
return kept(memories.map(
|
|
22867
|
+
return kept(memories.map(rowOf6), filter);
|
|
22784
22868
|
}, "list"),
|
|
22785
|
-
get: /* @__PURE__ */ __name(async (id2) =>
|
|
22869
|
+
get: /* @__PURE__ */ __name(async (id2) => rowOf6(await store.memories.get(id2)), "get"),
|
|
22786
22870
|
decide: /* @__PURE__ */ __name(async (id2, { confirm, by }) => {
|
|
22787
22871
|
const memory = confirm ? await store.memories.confirm(id2, by) : await store.memories.markStale(id2, by);
|
|
22788
22872
|
return { id: id2, kind: "memory", status: confirm ? "confirmed" : "rejected", made: confirm ? [memory.ref] : [] };
|
|
22789
22873
|
}, "decide")
|
|
22790
22874
|
}), "memoryKind");
|
|
22791
22875
|
|
|
22792
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22876
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/relationship.js
|
|
22793
22877
|
var linkRow2 = /* @__PURE__ */ __name((link4) => ({
|
|
22794
22878
|
id: `link:${link4.id}`,
|
|
22795
22879
|
kind: "relationship",
|
|
@@ -22863,10 +22947,10 @@ var relationshipKind = /* @__PURE__ */ __name((store) => {
|
|
|
22863
22947
|
};
|
|
22864
22948
|
}, "relationshipKind");
|
|
22865
22949
|
|
|
22866
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22950
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/relationship-update.js
|
|
22867
22951
|
var KIND = "relationship_update";
|
|
22868
|
-
var
|
|
22869
|
-
var
|
|
22952
|
+
var summaryOf2 = /* @__PURE__ */ __name(({ changes }) => Object.entries(changes).map(([field, value]) => `${field} ${value ?? "cleared"}`).join(", "), "summaryOf");
|
|
22953
|
+
var rowOf7 = /* @__PURE__ */ __name((action2) => {
|
|
22870
22954
|
const payload = action2.payload;
|
|
22871
22955
|
return {
|
|
22872
22956
|
id: action2.id,
|
|
@@ -22875,7 +22959,7 @@ var rowOf6 = /* @__PURE__ */ __name((action2) => {
|
|
|
22875
22959
|
project: projectOf(payload.to, payload.from),
|
|
22876
22960
|
subject: `relationship:${payload.relationship}`,
|
|
22877
22961
|
object: payload.to,
|
|
22878
|
-
summary:
|
|
22962
|
+
summary: summaryOf2(payload),
|
|
22879
22963
|
proposedBy: proposerOfAction(action2),
|
|
22880
22964
|
reason: action2.reason,
|
|
22881
22965
|
evidence: [],
|
|
@@ -22895,9 +22979,9 @@ var relationshipUpdateKind = /* @__PURE__ */ __name((store) => ({
|
|
|
22895
22979
|
...status === void 0 ? {} : { status },
|
|
22896
22980
|
...pushed2(filter)
|
|
22897
22981
|
});
|
|
22898
|
-
return kept(stored.map(
|
|
22982
|
+
return kept(stored.map(rowOf7), filter);
|
|
22899
22983
|
}, "list"),
|
|
22900
|
-
get: /* @__PURE__ */ __name(async (id2) =>
|
|
22984
|
+
get: /* @__PURE__ */ __name(async (id2) => rowOf7(await store.proposedActions.get(id2)), "get"),
|
|
22901
22985
|
decide: /* @__PURE__ */ __name(async (id2, { confirm, by, reason }) => {
|
|
22902
22986
|
const { relation } = await store.knowledge.decideRelationUpdate(id2, {
|
|
22903
22987
|
confirm,
|
|
@@ -22913,7 +22997,7 @@ var relationshipUpdateKind = /* @__PURE__ */ __name((store) => ({
|
|
|
22913
22997
|
}, "decide")
|
|
22914
22998
|
}), "relationshipUpdateKind");
|
|
22915
22999
|
|
|
22916
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23000
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/services/proposals/registry.js
|
|
22917
23001
|
var PREFIX = /^([a-z][a-z_]*):/;
|
|
22918
23002
|
var refusalOf = /* @__PURE__ */ __name((id2, error) => {
|
|
22919
23003
|
if (!(error instanceof CliError))
|
|
@@ -23000,7 +23084,7 @@ var emptyProposalRegistry = /* @__PURE__ */ __name((store) => {
|
|
|
23000
23084
|
});
|
|
23001
23085
|
continue;
|
|
23002
23086
|
}
|
|
23003
|
-
const refusal2 = mayDecide(row, decision.by, policy);
|
|
23087
|
+
const refusal2 = mayDecide(kind.ownerOnly ? { ...row, ownerOnly: true } : row, decision.by, policy);
|
|
23004
23088
|
if (refusal2) {
|
|
23005
23089
|
refused.push(refusal2);
|
|
23006
23090
|
continue;
|
|
@@ -23025,14 +23109,15 @@ var proposalRegistry = /* @__PURE__ */ __name((store) => {
|
|
|
23025
23109
|
invoiceKind(store),
|
|
23026
23110
|
paymentKind(store),
|
|
23027
23111
|
memoryKind(store),
|
|
23028
|
-
findingsKind(store)
|
|
23112
|
+
findingsKind(store),
|
|
23113
|
+
mailFindingsKind(store)
|
|
23029
23114
|
])
|
|
23030
23115
|
registry.register(kind);
|
|
23031
23116
|
registry.register(actionKind(store, registry.claimed));
|
|
23032
23117
|
return registry;
|
|
23033
23118
|
}, "proposalRegistry");
|
|
23034
23119
|
|
|
23035
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23120
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/mail/owed.js
|
|
23036
23121
|
var mailTurn = /* @__PURE__ */ __name((newest) => {
|
|
23037
23122
|
if (newest === null)
|
|
23038
23123
|
return null;
|
|
@@ -23041,7 +23126,7 @@ var mailTurn = /* @__PURE__ */ __name((newest) => {
|
|
|
23041
23126
|
return newest.addressed ? "owed" : null;
|
|
23042
23127
|
}, "mailTurn");
|
|
23043
23128
|
|
|
23044
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23129
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/services/agenda-mail.js
|
|
23045
23130
|
var absent = /* @__PURE__ */ __name((error) => {
|
|
23046
23131
|
if (error instanceof CliError && error.code === "not_found")
|
|
23047
23132
|
return void 0;
|
|
@@ -23099,7 +23184,7 @@ var mailActivity = /* @__PURE__ */ __name(async (store, account, since, chats) =
|
|
|
23099
23184
|
};
|
|
23100
23185
|
}, "mailActivity");
|
|
23101
23186
|
|
|
23102
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23187
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/services/chat-coverage.js
|
|
23103
23188
|
var chatCoverage = /* @__PURE__ */ __name(async (store, account, chatIds) => {
|
|
23104
23189
|
const ids = [...new Set(chatIds)];
|
|
23105
23190
|
if (ids.length === 0)
|
|
@@ -23125,7 +23210,7 @@ var chatCoverage = /* @__PURE__ */ __name(async (store, account, chatIds) => {
|
|
|
23125
23210
|
}));
|
|
23126
23211
|
}, "chatCoverage");
|
|
23127
23212
|
|
|
23128
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23213
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/services/agenda.js
|
|
23129
23214
|
var DAY = 864e5;
|
|
23130
23215
|
var AGENDA_DEFAULTS = { unanswered: DAY, waiting: 7 * DAY };
|
|
23131
23216
|
var CLAIMS = ["none", "mine", "others", "any"];
|
|
@@ -23372,7 +23457,7 @@ var agendaItem = /* @__PURE__ */ __name((shown) => {
|
|
|
23372
23457
|
};
|
|
23373
23458
|
}, "agendaItem");
|
|
23374
23459
|
|
|
23375
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23460
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/services/excerpt.js
|
|
23376
23461
|
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");
|
|
23377
23462
|
var excerpt = /* @__PURE__ */ __name((text2, query, size4 = 240, options = {}) => {
|
|
23378
23463
|
const flat = text2.replace(/\s+/g, " ").trim();
|
|
@@ -23388,7 +23473,7 @@ var excerpt = /* @__PURE__ */ __name((text2, query, size4 = 240, options = {}) =
|
|
|
23388
23473
|
}, "excerpt");
|
|
23389
23474
|
var withExcerpt = /* @__PURE__ */ __name(({ matchedText, ...hit }, query) => ({ ...hit, excerpt: excerpt(matchedText ?? hit.text, query) }), "withExcerpt");
|
|
23390
23475
|
|
|
23391
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23476
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/services/project-gathering-around.js
|
|
23392
23477
|
var storedMessageNeighbours = /* @__PURE__ */ __name((messages) => ({
|
|
23393
23478
|
async around(ref, window3) {
|
|
23394
23479
|
const at = parseLocator(ref);
|
|
@@ -23484,7 +23569,7 @@ var storedNeighbours = /* @__PURE__ */ __name((store) => {
|
|
|
23484
23569
|
};
|
|
23485
23570
|
}, "storedNeighbours");
|
|
23486
23571
|
|
|
23487
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23572
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/services/project-gathering-request.js
|
|
23488
23573
|
import { createHash as createHash2 } from "node:crypto";
|
|
23489
23574
|
var DAY2 = 864e5;
|
|
23490
23575
|
var MAX_TIME = 864e13;
|
|
@@ -23800,7 +23885,7 @@ var decodeCheckpoint = /* @__PURE__ */ __name((text2, plan) => {
|
|
|
23800
23885
|
return value;
|
|
23801
23886
|
}, "decodeCheckpoint");
|
|
23802
23887
|
|
|
23803
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23888
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/services/project-gathering.js
|
|
23804
23889
|
var terminal = /* @__PURE__ */ new Set(["done", "unavailable", "failed"]);
|
|
23805
23890
|
var PAGE2 = 20;
|
|
23806
23891
|
var PEOPLE = 20;
|
|
@@ -24204,7 +24289,7 @@ var peopleOf = /* @__PURE__ */ __name((items, senderOf) => {
|
|
|
24204
24289
|
return [...byKey.values()].sort((a, b) => b.items - a.items || a.name.localeCompare(b.name));
|
|
24205
24290
|
}, "peopleOf");
|
|
24206
24291
|
|
|
24207
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24292
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/services/meeting-project-candidate-matching.js
|
|
24208
24293
|
var normalizedText = /* @__PURE__ */ __name((text2) => text2.normalize("NFKC").toLowerCase().replace(/\s+/gu, " "), "normalizedText");
|
|
24209
24294
|
var termsOf = /* @__PURE__ */ __name((entry) => [
|
|
24210
24295
|
{ name: entry.name, kind: "canonical" },
|
|
@@ -24248,7 +24333,7 @@ var matchVocabularyTerms = /* @__PURE__ */ __name((catalog, texts) => {
|
|
|
24248
24333
|
return result.sort((a, b) => Number(a.entry.id) - Number(b.entry.id));
|
|
24249
24334
|
}, "matchVocabularyTerms");
|
|
24250
24335
|
|
|
24251
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24336
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/services/project-gathering-mentions.js
|
|
24252
24337
|
var KINDS = ["project", "tag", "topic"];
|
|
24253
24338
|
var findEvidenceMentions = /* @__PURE__ */ __name(async (vocabulary, gathering, options = {}) => {
|
|
24254
24339
|
if (typeof vocabulary?.vocabulary !== "function")
|
|
@@ -24303,7 +24388,7 @@ var findEvidenceMentions = /* @__PURE__ */ __name(async (vocabulary, gathering,
|
|
|
24303
24388
|
};
|
|
24304
24389
|
}, "findEvidenceMentions");
|
|
24305
24390
|
|
|
24306
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24391
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/services/stored-project-gathering.js
|
|
24307
24392
|
var storedChatCount = /* @__PURE__ */ __name((store) => async (account, chatId, { since, until }) => {
|
|
24308
24393
|
const window3 = { since: new Date(since).toISOString(), until: new Date(until - 1).toISOString() };
|
|
24309
24394
|
const [messages, newest, oldest] = await Promise.all([
|
|
@@ -24609,18 +24694,18 @@ var purposeHintOf = /* @__PURE__ */ __name((linked, rows, of) => {
|
|
|
24609
24694
|
return { chat: top.ref, relationship: link4.relationship, items, of };
|
|
24610
24695
|
}, "purposeHintOf");
|
|
24611
24696
|
|
|
24612
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24697
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/services/media-archive.js
|
|
24613
24698
|
import { setTimeout as sleep3 } from "node:timers/promises";
|
|
24614
24699
|
|
|
24615
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24700
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/services/media-archive-files.js
|
|
24616
24701
|
import { lstat } from "node:fs/promises";
|
|
24617
24702
|
|
|
24618
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24703
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-store.js
|
|
24619
24704
|
import { createHash as createHash4, randomUUID as randomUUID2 } from "node:crypto";
|
|
24620
24705
|
import { open as open2, rename as rename2, unlink as unlink2 } from "node:fs/promises";
|
|
24621
24706
|
import { join as join2 } from "node:path";
|
|
24622
24707
|
|
|
24623
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24708
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-metadata.js
|
|
24624
24709
|
import { createHash as createHash3 } from "node:crypto";
|
|
24625
24710
|
var metadataLimit = 16384;
|
|
24626
24711
|
var partialIdentity = /* @__PURE__ */ __name((locator) => JSON.stringify([locator.provider, locator.account, locator.occurrenceId, locator.assetId]), "partialIdentity");
|
|
@@ -24680,7 +24765,7 @@ var readPartialMetadata = /* @__PURE__ */ __name(async (path, locator, maxBytes,
|
|
|
24680
24765
|
}
|
|
24681
24766
|
}, "readPartialMetadata");
|
|
24682
24767
|
|
|
24683
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24768
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-writer.js
|
|
24684
24769
|
import { randomUUID } from "node:crypto";
|
|
24685
24770
|
import { open, rename, unlink } from "node:fs/promises";
|
|
24686
24771
|
import { join } from "node:path";
|
|
@@ -24772,7 +24857,7 @@ var partialWriter = /* @__PURE__ */ __name(async (input) => {
|
|
|
24772
24857
|
};
|
|
24773
24858
|
}, "partialWriter");
|
|
24774
24859
|
|
|
24775
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24860
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-store.js
|
|
24776
24861
|
var NativeRecordingPartialStore = class {
|
|
24777
24862
|
static {
|
|
24778
24863
|
__name(this, "NativeRecordingPartialStore");
|
|
@@ -24879,12 +24964,12 @@ var NativeRecordingPartialStore = class {
|
|
|
24879
24964
|
}
|
|
24880
24965
|
};
|
|
24881
24966
|
|
|
24882
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24967
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication.js
|
|
24883
24968
|
import { createHash as createHash5 } from "node:crypto";
|
|
24884
24969
|
import { link as link2 } from "node:fs/promises";
|
|
24885
24970
|
import { basename, dirname, join as join4, resolve } from "node:path";
|
|
24886
24971
|
|
|
24887
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24972
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication-files.js
|
|
24888
24973
|
import { unlink as unlink3 } from "node:fs/promises";
|
|
24889
24974
|
var verifiedPublicationFile = /* @__PURE__ */ __name(async (path, expected2, signal, writable = false) => {
|
|
24890
24975
|
signal?.throwIfAborted();
|
|
@@ -24919,7 +25004,7 @@ var commitPublication = /* @__PURE__ */ __name(async (root, partialPath, finalPa
|
|
|
24919
25004
|
signal?.throwIfAborted();
|
|
24920
25005
|
}, "commitPublication");
|
|
24921
25006
|
|
|
24922
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25007
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication-journal.js
|
|
24923
25008
|
import { randomUUID as randomUUID3 } from "node:crypto";
|
|
24924
25009
|
import { open as open3, rename as rename3, unlink as unlink4 } from "node:fs/promises";
|
|
24925
25010
|
import { join as join3 } from "node:path";
|
|
@@ -24992,7 +25077,7 @@ var writePublicationJournal = /* @__PURE__ */ __name(async (root, path, prefix,
|
|
|
24992
25077
|
}
|
|
24993
25078
|
}, "writePublicationJournal");
|
|
24994
25079
|
|
|
24995
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25080
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication.js
|
|
24996
25081
|
var NativeRecordingPublication = class {
|
|
24997
25082
|
static {
|
|
24998
25083
|
__name(this, "NativeRecordingPublication");
|
|
@@ -25065,7 +25150,7 @@ var NativeRecordingPublication = class {
|
|
|
25065
25150
|
}
|
|
25066
25151
|
};
|
|
25067
25152
|
|
|
25068
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25153
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/services/media-archive-manifest.js
|
|
25069
25154
|
import { createHash as createHash6 } from "node:crypto";
|
|
25070
25155
|
import { readdir } from "node:fs/promises";
|
|
25071
25156
|
import { isAbsolute, join as join5, resolve as resolve2 } from "node:path";
|
|
@@ -25152,7 +25237,7 @@ var commitMediaEntry = /* @__PURE__ */ __name((root, one2, beforePublish) => wri
|
|
|
25152
25237
|
beforePublish
|
|
25153
25238
|
}), "commitMediaEntry");
|
|
25154
25239
|
|
|
25155
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25240
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/services/media-archive-files.js
|
|
25156
25241
|
var validator = '"media-completed-v1"';
|
|
25157
25242
|
var maximumFileBytes = 64 * 1024 * 1024 * 1024;
|
|
25158
25243
|
var archiveMediaFile = /* @__PURE__ */ __name(async (root, identity, kind, file2, beforeWrite, signal, metadata = {}) => {
|
|
@@ -25253,7 +25338,7 @@ var archiveMediaFile = /* @__PURE__ */ __name(async (root, identity, kind, file2
|
|
|
25253
25338
|
return entry;
|
|
25254
25339
|
}, "archiveMediaFile");
|
|
25255
25340
|
|
|
25256
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25341
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/services/media-archive-locks.js
|
|
25257
25342
|
import { mkdir, realpath } from "node:fs/promises";
|
|
25258
25343
|
import { join as join6, resolve as resolve3 } from "node:path";
|
|
25259
25344
|
var archiveLocations = /* @__PURE__ */ __name(async (initial, signal) => {
|
|
@@ -25320,7 +25405,7 @@ var withMediaArchiveLocks = /* @__PURE__ */ __name(async (directory2, signal, ru
|
|
|
25320
25405
|
throw new CliError("validation_error", "archive locations changed during locking; run the command again");
|
|
25321
25406
|
}, "withMediaArchiveLocks");
|
|
25322
25407
|
|
|
25323
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25408
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/services/media-archive.js
|
|
25324
25409
|
var validateMediaSince = /* @__PURE__ */ __name((value, flag = "--since-time") => {
|
|
25325
25410
|
if (value === void 0)
|
|
25326
25411
|
return void 0;
|
|
@@ -25473,7 +25558,7 @@ var archiveMedia = /* @__PURE__ */ __name(async (ports, options) => {
|
|
|
25473
25558
|
}, { create: true });
|
|
25474
25559
|
}, "archiveMedia");
|
|
25475
25560
|
|
|
25476
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25561
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/services/media-archive-move.js
|
|
25477
25562
|
import { realpath as realpath2, unlink as unlink5 } from "node:fs/promises";
|
|
25478
25563
|
import { basename as basename2, dirname as dirname2, join as join7, resolve as resolve4 } from "node:path";
|
|
25479
25564
|
var canonicalDestination = /* @__PURE__ */ __name(async (directory2) => {
|
|
@@ -25626,7 +25711,7 @@ var moveMediaArchive = /* @__PURE__ */ __name(async (options) => {
|
|
|
25626
25711
|
}, { additional: [target2], createAdditional: !options.dryRun });
|
|
25627
25712
|
}, "moveMediaArchive");
|
|
25628
25713
|
|
|
25629
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25714
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/services/model-downloads.js
|
|
25630
25715
|
var bytesOf = /* @__PURE__ */ __name((model) => model.files.reduce((sum2, file2) => sum2 + file2.bytes, 0), "bytesOf");
|
|
25631
25716
|
var nativeRuntime = /* @__PURE__ */ __name(async ({ env, progress = /* @__PURE__ */ __name(() => {
|
|
25632
25717
|
}, "progress") }) => {
|
|
@@ -25649,7 +25734,7 @@ var downloadTextModel = /* @__PURE__ */ __name(async (id2, { env, progress = /*
|
|
|
25649
25734
|
}
|
|
25650
25735
|
await nativeRuntime({ env, progress });
|
|
25651
25736
|
progress(`${model.id}: loading it once to check it works`);
|
|
25652
|
-
const { openEmbedder: openEmbedder2 } = await import("./embed-
|
|
25737
|
+
const { openEmbedder: openEmbedder2 } = await import("./embed-YNH5M6UL.js");
|
|
25653
25738
|
const embedder = await openEmbedder2(model, directory2);
|
|
25654
25739
|
try {
|
|
25655
25740
|
const [vector] = await embedder.embed(["check"], "query");
|
|
@@ -25670,7 +25755,7 @@ var downloadRerankModel = /* @__PURE__ */ __name(async (id2, { env, progress = /
|
|
|
25670
25755
|
}
|
|
25671
25756
|
await nativeRuntime({ env, progress });
|
|
25672
25757
|
progress(`${model.id}: loading it once to check it works`);
|
|
25673
|
-
const { openReranker } = await import("./rerank-
|
|
25758
|
+
const { openReranker } = await import("./rerank-SCBTCBPO.js");
|
|
25674
25759
|
const reranker = await openReranker(model, directory2);
|
|
25675
25760
|
try {
|
|
25676
25761
|
await reranker.score("check", ["check"]);
|
|
@@ -25688,7 +25773,7 @@ var downloadImageModel = /* @__PURE__ */ __name(async (id2, { env, progress = /*
|
|
|
25688
25773
|
await installFiles(placedImage(model, directory2), { progress });
|
|
25689
25774
|
}
|
|
25690
25775
|
progress(`${model.id}: loading it once to check it works`);
|
|
25691
|
-
const { openPictureEmbedder } = await import("./embedder-
|
|
25776
|
+
const { openPictureEmbedder } = await import("./embedder-LLNK4JF4.js");
|
|
25692
25777
|
const embedder = await openPictureEmbedder(model, directory2);
|
|
25693
25778
|
try {
|
|
25694
25779
|
const vector = await embedder.embedQuery("check");
|
|
@@ -25700,7 +25785,7 @@ var downloadImageModel = /* @__PURE__ */ __name(async (id2, { env, progress = /*
|
|
|
25700
25785
|
return { model, directory: directory2 };
|
|
25701
25786
|
}, "downloadImageModel");
|
|
25702
25787
|
|
|
25703
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25788
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/domain/money-words.js
|
|
25704
25789
|
var MONEY_REQUEST = "money-request";
|
|
25705
25790
|
var MONEY_DONE = "money-done";
|
|
25706
25791
|
var PROMISE = "promise";
|
|
@@ -25734,10 +25819,10 @@ var MONEY_WORDS = [
|
|
|
25734
25819
|
}
|
|
25735
25820
|
];
|
|
25736
25821
|
|
|
25737
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25822
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/services/money-words.js
|
|
25738
25823
|
var moneyClassesOf = /* @__PURE__ */ __name((text2) => listsHit(text2, MONEY_WORDS), "moneyClassesOf");
|
|
25739
25824
|
|
|
25740
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25825
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/domain/status-words.js
|
|
25741
25826
|
var words = /* @__PURE__ */ __name((forms) => new RegExp(`(?<![\\p{L}\\p{N}])(?:${forms.join("|")})(?![\\p{L}\\p{N}])`, "iu"), "words");
|
|
25742
25827
|
var MONEY_DONE_FORMS = words([
|
|
25743
25828
|
"\u043E\u043F\u043B\u0430\u0442\u0438\u043B[\u0430\u0438]?",
|
|
@@ -25777,7 +25862,7 @@ var PROMISE_FORMS = words([
|
|
|
25777
25862
|
"estar\xE1 listo"
|
|
25778
25863
|
]);
|
|
25779
25864
|
|
|
25780
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25865
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/services/project-status/items.js
|
|
25781
25866
|
var EXCERPT_CHARS = 80;
|
|
25782
25867
|
var excerpt2 = /* @__PURE__ */ __name((text2) => {
|
|
25783
25868
|
const flat = text2.replace(/\s+/g, " ").trim();
|
|
@@ -25799,7 +25884,7 @@ var whoOf = /* @__PURE__ */ __name((message) => ({
|
|
|
25799
25884
|
var fromOwner = /* @__PURE__ */ __name((message) => message.outgoing === true, "fromOwner");
|
|
25800
25885
|
var day = /* @__PURE__ */ __name((at) => new Date(at).toISOString().slice(0, 10), "day");
|
|
25801
25886
|
|
|
25802
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25887
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/services/project-status/signals/amounts.js
|
|
25803
25888
|
var MONEY = DEFAULT_TASK_CATEGORIES.filter((category) => category.name === "money");
|
|
25804
25889
|
var verbOf = /* @__PURE__ */ __name((text2) => {
|
|
25805
25890
|
if (MONEY_DONE_FORMS.test(text2))
|
|
@@ -25879,7 +25964,7 @@ var amounts = {
|
|
|
25879
25964
|
attention: /* @__PURE__ */ __name((items) => items.flatMap((item2) => item2.chat !== null && item2.data.state === "open" ? [{ chat: item2.chat, weight: 2, why: "money open" }] : []), "attention")
|
|
25880
25965
|
};
|
|
25881
25966
|
|
|
25882
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25967
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/services/project-status/signals/children.js
|
|
25883
25968
|
var children = {
|
|
25884
25969
|
id: "children",
|
|
25885
25970
|
version: 1,
|
|
@@ -25908,7 +25993,7 @@ var children = {
|
|
|
25908
25993
|
}, "read")
|
|
25909
25994
|
};
|
|
25910
25995
|
|
|
25911
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25996
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/services/project-status/signals/coverage.js
|
|
25912
25997
|
var coverage = {
|
|
25913
25998
|
id: "coverage",
|
|
25914
25999
|
version: 1,
|
|
@@ -25937,7 +26022,7 @@ var coverage = {
|
|
|
25937
26022
|
attention: /* @__PURE__ */ __name((items) => items.flatMap((item2) => item2.chat !== null && item2.data.state !== "complete" && item2.data.beforeHeld ? [{ chat: item2.chat, weight: 3, why: "held in part" }] : []), "attention")
|
|
25938
26023
|
};
|
|
25939
26024
|
|
|
25940
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26025
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/services/project-status/signals/last-message.js
|
|
25941
26026
|
var lastMessage = {
|
|
25942
26027
|
id: "last-message",
|
|
25943
26028
|
version: 1,
|
|
@@ -25959,7 +26044,7 @@ var lastMessage = {
|
|
|
25959
26044
|
}, "read")
|
|
25960
26045
|
};
|
|
25961
26046
|
|
|
25962
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26047
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/services/project-status/signals/payments.js
|
|
25963
26048
|
var holding = /* @__PURE__ */ __name((row) => row.review !== "rejected", "holding");
|
|
25964
26049
|
var item = /* @__PURE__ */ __name((row, at, data) => ({
|
|
25965
26050
|
signal: "payments",
|
|
@@ -26009,7 +26094,7 @@ var payments = {
|
|
|
26009
26094
|
}, "read")
|
|
26010
26095
|
};
|
|
26011
26096
|
|
|
26012
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26097
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/services/project-status/signals/promises.js
|
|
26013
26098
|
var PATTERNS_PER_CHAT = 3;
|
|
26014
26099
|
var DAY3 = 864e5;
|
|
26015
26100
|
var KINDS2 = /* @__PURE__ */ new Set(["promise", "request"]);
|
|
@@ -26098,7 +26183,7 @@ var promises = {
|
|
|
26098
26183
|
}, "read")
|
|
26099
26184
|
};
|
|
26100
26185
|
|
|
26101
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26186
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/services/project-status/signals/questions.js
|
|
26102
26187
|
var PER_SIDE = 5;
|
|
26103
26188
|
var WEEK = 7 * 864e5;
|
|
26104
26189
|
var NOBODY = /* @__PURE__ */ new Set();
|
|
@@ -26129,7 +26214,7 @@ var questions2 = {
|
|
|
26129
26214
|
}, "attention")
|
|
26130
26215
|
};
|
|
26131
26216
|
|
|
26132
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26217
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/services/project-status/signals/reply-next.js
|
|
26133
26218
|
var targetOf = /* @__PURE__ */ __name((message, chat, owners) => {
|
|
26134
26219
|
const byId2 = /* @__PURE__ */ __name((id2) => chat.messages.find((one2) => one2.id === id2), "byId");
|
|
26135
26220
|
const quoted = message.replyTo ?? (message.replyToId === void 0 ? void 0 : byId2(message.replyToId));
|
|
@@ -26197,7 +26282,7 @@ var replyNext = {
|
|
|
26197
26282
|
attention: /* @__PURE__ */ __name((items) => items.flatMap((item2) => item2.chat !== null && item2.data.next === "owner" ? [{ chat: item2.chat, weight: 2, why: "your move" }] : []), "attention")
|
|
26198
26283
|
};
|
|
26199
26284
|
|
|
26200
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26285
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/services/project-status/signals/topics.js
|
|
26201
26286
|
var escaped = /* @__PURE__ */ __name((text2) => text2.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), "escaped");
|
|
26202
26287
|
var wholeWord = /* @__PURE__ */ __name((word) => new RegExp(`(?<![\\p{L}\\p{N}])${escaped(word)}(?![\\p{L}\\p{N}])`, "u"), "wholeWord");
|
|
26203
26288
|
var matcherOf = /* @__PURE__ */ __name((query) => {
|
|
@@ -26243,7 +26328,7 @@ var topics = {
|
|
|
26243
26328
|
}, "read")
|
|
26244
26329
|
};
|
|
26245
26330
|
|
|
26246
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26331
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/services/project-status/signals/index.js
|
|
26247
26332
|
var STATUS_SIGNALS = [
|
|
26248
26333
|
lastMessage,
|
|
26249
26334
|
replyNext,
|
|
@@ -26256,7 +26341,7 @@ var STATUS_SIGNALS = [
|
|
|
26256
26341
|
children
|
|
26257
26342
|
];
|
|
26258
26343
|
|
|
26259
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26344
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/services/project-status/index.js
|
|
26260
26345
|
var DAY4 = 864e5;
|
|
26261
26346
|
var STATUS_WINDOW = 300;
|
|
26262
26347
|
var STATUS_CHATS = 16;
|
|
@@ -26438,7 +26523,7 @@ var projectStatus = /* @__PURE__ */ __name(async (store, input) => {
|
|
|
26438
26523
|
};
|
|
26439
26524
|
}, "projectStatus");
|
|
26440
26525
|
|
|
26441
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26526
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/services/account.js
|
|
26442
26527
|
var accountService = /* @__PURE__ */ __name((deps) => {
|
|
26443
26528
|
const online = /* @__PURE__ */ __name(async (command) => {
|
|
26444
26529
|
if (deps.offline)
|
|
@@ -26510,7 +26595,7 @@ var accountService = /* @__PURE__ */ __name((deps) => {
|
|
|
26510
26595
|
};
|
|
26511
26596
|
}, "accountService");
|
|
26512
26597
|
|
|
26513
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26598
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/domain/send-time.js
|
|
26514
26599
|
var MINUTE = 6e4;
|
|
26515
26600
|
var YEAR = 365 * 24 * 60 * MINUTE;
|
|
26516
26601
|
var DELAY = /^(\d+)(m|h|d)$/;
|
|
@@ -26529,7 +26614,7 @@ var sendTime = /* @__PURE__ */ __name((value, now = Date.now(), flag = "--at-tim
|
|
|
26529
26614
|
return new Date(at - at % MINUTE).toISOString();
|
|
26530
26615
|
}, "sendTime");
|
|
26531
26616
|
|
|
26532
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26617
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/services/admin.js
|
|
26533
26618
|
var recordMembership = /* @__PURE__ */ __name(async (deps, operationId, done2, change, fix, write2) => {
|
|
26534
26619
|
try {
|
|
26535
26620
|
const held = await accountStoreIfOpen(deps);
|
|
@@ -26776,7 +26861,7 @@ var linkLimits = /* @__PURE__ */ __name(({ approval, expires, maxUses }) => {
|
|
|
26776
26861
|
return expires === void 0 ? void 0 : sendTime(expires, Date.now(), "--expire-time");
|
|
26777
26862
|
}, "linkLimits");
|
|
26778
26863
|
|
|
26779
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26864
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/services/mail-search.js
|
|
26780
26865
|
var THREADS_PAGE = 500;
|
|
26781
26866
|
var threadsOf = /* @__PURE__ */ __name(async (store, key) => {
|
|
26782
26867
|
const account = await store.accounts.storedAccount(key).catch(() => void 0);
|
|
@@ -26855,7 +26940,7 @@ var readMail = /* @__PURE__ */ __name(async (store, locator, { before: before2 =
|
|
|
26855
26940
|
return thread.slice(Math.max(0, at - before2), at + after + 1).map((hit) => hit.id === message ? { ...hit, anchor: true } : hit);
|
|
26856
26941
|
}, "readMail");
|
|
26857
26942
|
|
|
26858
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26943
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/services/search-kind.js
|
|
26859
26944
|
var NO_MAIL = "no_mail";
|
|
26860
26945
|
var MAIL = "email";
|
|
26861
26946
|
var listContextOf = /* @__PURE__ */ __name(async (store, account, app, stored) => {
|
|
@@ -26902,7 +26987,7 @@ var accountsOfKind = /* @__PURE__ */ __name((kind, chosen, held, explicit, comma
|
|
|
26902
26987
|
return chosenMail.map(({ provider, account }) => ({ provider, account }));
|
|
26903
26988
|
}, "accountsOfKind");
|
|
26904
26989
|
|
|
26905
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26990
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/services/messages-search.js
|
|
26906
26991
|
var MAIL_FIELDS = /* @__PURE__ */ new Set(["to", "cc", "bcc", "subject", "mailbox", "label", "is"]);
|
|
26907
26992
|
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");
|
|
26908
26993
|
var prepareLucene = /* @__PURE__ */ __name(async (store, account, request, messenger) => {
|
|
@@ -27250,7 +27335,7 @@ var statsLucene = /* @__PURE__ */ __name(async (store, account, request, messeng
|
|
|
27250
27335
|
};
|
|
27251
27336
|
}, "statsLucene");
|
|
27252
27337
|
|
|
27253
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27338
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/services/rankings-selection.js
|
|
27254
27339
|
var RANKING_SELECTION_BYTES = 64 * 1024;
|
|
27255
27340
|
var object = /* @__PURE__ */ __name((value) => value !== null && typeof value === "object" && !Array.isArray(value) ? value : void 0, "object");
|
|
27256
27341
|
function invalid(message = "ranking selection is invalid \u2014 obtain a new drilldown from stats top") {
|
|
@@ -27419,7 +27504,7 @@ var readRankingSelection = /* @__PURE__ */ __name(async (store, input) => {
|
|
|
27419
27504
|
};
|
|
27420
27505
|
}, "readRankingSelection");
|
|
27421
27506
|
|
|
27422
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27507
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/services/search-record.js
|
|
27423
27508
|
var canonical = /* @__PURE__ */ __name((value, nested = false) => Array.isArray(value) ? value.map((one2) => canonical(one2, true)) : value !== null && typeof value === "object" ? Object.fromEntries(Object.entries(value).filter(([, one2]) => one2 !== void 0 && (nested || one2 !== false)).sort(([a], [b]) => a < b ? -1 : a > b ? 1 : 0).map(([key, one2]) => [key, canonical(one2, true)])) : value, "canonical");
|
|
27424
27509
|
var searchRecordOf = /* @__PURE__ */ __name((command, params) => ({
|
|
27425
27510
|
command,
|
|
@@ -27429,7 +27514,7 @@ var searchRecordOf = /* @__PURE__ */ __name((command, params) => ({
|
|
|
27429
27514
|
fieldsVersion: FIELD_VERSION
|
|
27430
27515
|
}), "searchRecordOf");
|
|
27431
27516
|
|
|
27432
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27517
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/services/admin-statistics.js
|
|
27433
27518
|
function invalid2(message) {
|
|
27434
27519
|
throw new CliError("validation_error", message);
|
|
27435
27520
|
}
|
|
@@ -27723,7 +27808,7 @@ var adminStatisticsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
27723
27808
|
}, "evidence")
|
|
27724
27809
|
}), "adminStatisticsService");
|
|
27725
27810
|
|
|
27726
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27811
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/services/archive-gaps.js
|
|
27727
27812
|
import { createHash as createHash7, randomUUID as randomUUID4 } from "node:crypto";
|
|
27728
27813
|
var GAP_BOUNDS = { maxGaps: 5, limit: 500, timeMs: 3e4 };
|
|
27729
27814
|
var validateRepair = /* @__PURE__ */ __name((messenger, options) => {
|
|
@@ -27860,16 +27945,16 @@ var gapsService = /* @__PURE__ */ __name((deps) => {
|
|
|
27860
27945
|
return { plan, repair };
|
|
27861
27946
|
}, "gapsService");
|
|
27862
27947
|
|
|
27863
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27948
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/services/attachments.js
|
|
27864
27949
|
import { createHash as createHash9 } from "node:crypto";
|
|
27865
27950
|
import { constants as constants2, mkdirSync as mkdirSync2 } from "node:fs";
|
|
27866
27951
|
import { lstat as lstat4, open as open6, readFile, stat as stat2 } from "node:fs/promises";
|
|
27867
27952
|
|
|
27868
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27953
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/attachments/directory.js
|
|
27869
27954
|
import { lstat as lstat2, readdir as readdir2, realpath as realpath3 } from "node:fs/promises";
|
|
27870
27955
|
import { basename as basename4, join as join8, relative as relative2, sep as sep2 } from "node:path";
|
|
27871
27956
|
|
|
27872
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27957
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/sends/upload.js
|
|
27873
27958
|
import { openAsBlob, realpathSync } from "node:fs";
|
|
27874
27959
|
import { open as open4, stat } from "node:fs/promises";
|
|
27875
27960
|
import { basename as basename3, dirname as dirname3, extname, isAbsolute as isAbsolute2, relative, resolve as resolve5, sep } from "node:path";
|
|
@@ -28071,7 +28156,7 @@ var readStickerFile = /* @__PURE__ */ __name(async (path, maxBytes, read2) => {
|
|
|
28071
28156
|
return { name, source };
|
|
28072
28157
|
}, "readStickerFile");
|
|
28073
28158
|
|
|
28074
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28159
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/attachments/directory.js
|
|
28075
28160
|
var MAX_FILES = 1e4;
|
|
28076
28161
|
var directoryPaths = /* @__PURE__ */ __name(async (store, chat, directory2, app, env) => {
|
|
28077
28162
|
if (refusedPlace(directory2, app, env))
|
|
@@ -28140,15 +28225,15 @@ var directoryPaths = /* @__PURE__ */ __name(async (store, chat, directory2, app,
|
|
|
28140
28225
|
return choices;
|
|
28141
28226
|
}, "directoryPaths");
|
|
28142
28227
|
|
|
28143
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28228
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/attachments/documents.js
|
|
28144
28229
|
import { posix } from "node:path";
|
|
28145
28230
|
|
|
28146
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28231
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/attachments/container.js
|
|
28147
28232
|
import { setImmediate as tick } from "node:timers/promises";
|
|
28148
28233
|
import { crc32 } from "node:zlib";
|
|
28149
28234
|
var import_xmldom = __toESM(require_lib(), 1);
|
|
28150
28235
|
|
|
28151
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28236
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/attachments/encoding.js
|
|
28152
28237
|
var import_chardet = __toESM(require_lib2(), 1);
|
|
28153
28238
|
var import_iconv_lite = __toESM(require_lib3(), 1);
|
|
28154
28239
|
var SAMPLE = 65536;
|
|
@@ -28250,7 +28335,7 @@ var decodeXml = /* @__PURE__ */ __name((bytes2) => {
|
|
|
28250
28335
|
return result.text;
|
|
28251
28336
|
}, "decodeXml");
|
|
28252
28337
|
|
|
28253
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28338
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/attachments/container.js
|
|
28254
28339
|
var MAX_PART = 10 * 1024 * 1024;
|
|
28255
28340
|
var MAX_ENTRIES = 1e3;
|
|
28256
28341
|
var decoder = new TextDecoder("utf-8", { fatal: true });
|
|
@@ -28465,7 +28550,7 @@ var elements = /* @__PURE__ */ __name((node, name, namespace) => {
|
|
|
28465
28550
|
return found;
|
|
28466
28551
|
}, "elements");
|
|
28467
28552
|
|
|
28468
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28553
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/attachments/sheets.js
|
|
28469
28554
|
var columnName = /* @__PURE__ */ __name((column) => {
|
|
28470
28555
|
let name = "";
|
|
28471
28556
|
for (let rest = column; rest > 0; rest = Math.floor((rest - 1) / 26))
|
|
@@ -28520,7 +28605,7 @@ var sheetText = /* @__PURE__ */ __name((sheets2, maxChars = MAX_TEXT_CHARS) => {
|
|
|
28520
28605
|
return { text: parts.join("").trim(), truncated: false };
|
|
28521
28606
|
}, "sheetText");
|
|
28522
28607
|
|
|
28523
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28608
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/attachments/documents.js
|
|
28524
28609
|
var OFFICE = "urn:oasis:names:tc:opendocument:xmlns:office:1.0";
|
|
28525
28610
|
var TEXT = "urn:oasis:names:tc:opendocument:xmlns:text:1.0";
|
|
28526
28611
|
var TABLE = "urn:oasis:names:tc:opendocument:xmlns:table:1.0";
|
|
@@ -28920,10 +29005,10 @@ var readDocument = /* @__PURE__ */ __name(async (bytes2, kind, signal) => {
|
|
|
28920
29005
|
}
|
|
28921
29006
|
}, "readDocument");
|
|
28922
29007
|
|
|
28923
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29008
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/attachments/extract.js
|
|
28924
29009
|
import { extname as extname3 } from "node:path";
|
|
28925
29010
|
|
|
28926
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29011
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/readers/engine.js
|
|
28927
29012
|
import { readFileSync } from "node:fs";
|
|
28928
29013
|
import { dirname as dirname4, extname as extname2, join as join9 } from "node:path";
|
|
28929
29014
|
import { fileURLToPath } from "node:url";
|
|
@@ -28984,7 +29069,7 @@ var derived = /* @__PURE__ */ __name((bytes2, extractor, read2) => {
|
|
|
28984
29069
|
}
|
|
28985
29070
|
}, "derived");
|
|
28986
29071
|
|
|
28987
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29072
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/readers/image/index.js
|
|
28988
29073
|
var IMAGES = /* @__PURE__ */ new Set([".jpg", ".jpeg", ".png", ".webp", ".gif", ".heic", ".tif", ".tiff", ".bmp"]);
|
|
28989
29074
|
var image2 = {
|
|
28990
29075
|
id: "image",
|
|
@@ -28993,7 +29078,7 @@ var image2 = {
|
|
|
28993
29078
|
read: /* @__PURE__ */ __name(async () => ({ status: "needs-agent" }), "read")
|
|
28994
29079
|
};
|
|
28995
29080
|
|
|
28996
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29081
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/readers/doc/index.js
|
|
28997
29082
|
var OLE = "\xD0\xCF\xE0\xA1\xB1\xE1";
|
|
28998
29083
|
var doc = {
|
|
28999
29084
|
id: "doc",
|
|
@@ -29005,7 +29090,7 @@ var doc = {
|
|
|
29005
29090
|
}), "read")
|
|
29006
29091
|
};
|
|
29007
29092
|
|
|
29008
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29093
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/readers/docx/index.js
|
|
29009
29094
|
var DOCX = "application/vnd.openxmlformats-officedocument.wordprocessingml.document";
|
|
29010
29095
|
var docx = {
|
|
29011
29096
|
id: "docx",
|
|
@@ -29018,7 +29103,7 @@ var docx = {
|
|
|
29018
29103
|
}), "read")
|
|
29019
29104
|
};
|
|
29020
29105
|
|
|
29021
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29106
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/attachments/markup.js
|
|
29022
29107
|
var import_iconv_lite2 = __toESM(require_lib3(), 1);
|
|
29023
29108
|
var RTF_SKIPPED = /* @__PURE__ */ new Set([
|
|
29024
29109
|
"fonttbl",
|
|
@@ -29194,7 +29279,7 @@ var htmlText = /* @__PURE__ */ __name((source) => {
|
|
|
29194
29279
|
}, "htmlText");
|
|
29195
29280
|
var safeChar = /* @__PURE__ */ __name((code, fallback) => code > 0 && code <= 1114111 ? String.fromCodePoint(code) : fallback, "safeChar");
|
|
29196
29281
|
|
|
29197
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29282
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/readers/html/page.js
|
|
29198
29283
|
var clean = /* @__PURE__ */ __name((value) => typeof value === "string" ? value.replace(/\s+/g, " ").trim() : "", "clean");
|
|
29199
29284
|
var namesIn = /* @__PURE__ */ __name((value) => [value].flat().map((entry) => typeof entry === "string" ? clean(entry) : clean(entry?.name)).filter(Boolean).join(", "), "namesIn");
|
|
29200
29285
|
var jsonLdNodes = /* @__PURE__ */ __name((document) => {
|
|
@@ -29250,7 +29335,7 @@ var markdownSections = /* @__PURE__ */ __name((text2) => {
|
|
|
29250
29335
|
return found.map((section, index) => ({ ...section, end: found[index + 1]?.start ?? text2.length }));
|
|
29251
29336
|
}, "markdownSections");
|
|
29252
29337
|
|
|
29253
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29338
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/readers/html/index.js
|
|
29254
29339
|
var HTML = /* @__PURE__ */ new Set([".html", ".htm", ".xhtml"]);
|
|
29255
29340
|
var first = /* @__PURE__ */ __name((...values) => values.find((value) => typeof value === "string" && value !== ""), "first");
|
|
29256
29341
|
var loaded = /* @__PURE__ */ __name(async (load, name) => {
|
|
@@ -29321,7 +29406,7 @@ var html = {
|
|
|
29321
29406
|
}, "read")
|
|
29322
29407
|
};
|
|
29323
29408
|
|
|
29324
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29409
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/readers/office/index.js
|
|
29325
29410
|
var office = {
|
|
29326
29411
|
id: "office",
|
|
29327
29412
|
version: documentExtractor("odt"),
|
|
@@ -29332,7 +29417,7 @@ var office = {
|
|
|
29332
29417
|
}, "read")
|
|
29333
29418
|
};
|
|
29334
29419
|
|
|
29335
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29420
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/readers/pdf/index.js
|
|
29336
29421
|
var pdf = {
|
|
29337
29422
|
id: "pdf",
|
|
29338
29423
|
version: "unpdf",
|
|
@@ -29399,7 +29484,7 @@ var pdf = {
|
|
|
29399
29484
|
}), "read")
|
|
29400
29485
|
};
|
|
29401
29486
|
|
|
29402
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29487
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/readers/plain/index.js
|
|
29403
29488
|
var PLAIN = /* @__PURE__ */ new Set([".txt", ".md", ".markdown", ".csv", ".tsv", ".json", ".log"]);
|
|
29404
29489
|
var isPlain = /* @__PURE__ */ __name((hint) => PLAIN.has(extensionOf(hint)) || hint.mime?.startsWith("text/") || hint.mime === "application/json", "isPlain");
|
|
29405
29490
|
var readPlain = /* @__PURE__ */ __name((bytes2) => {
|
|
@@ -29419,7 +29504,7 @@ var plain = {
|
|
|
29419
29504
|
read: /* @__PURE__ */ __name(async (bytes2) => readPlain(bytes2), "read")
|
|
29420
29505
|
};
|
|
29421
29506
|
|
|
29422
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29507
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/readers/rtf/index.js
|
|
29423
29508
|
var rtf = {
|
|
29424
29509
|
id: "rtf",
|
|
29425
29510
|
version: "v1",
|
|
@@ -29427,10 +29512,10 @@ var rtf = {
|
|
|
29427
29512
|
read: /* @__PURE__ */ __name(async (bytes2) => derived(bytes2, "rtf:v1", rtfText), "read")
|
|
29428
29513
|
};
|
|
29429
29514
|
|
|
29430
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29515
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/readers/sheets/index.js
|
|
29431
29516
|
import { basename as basename5 } from "node:path";
|
|
29432
29517
|
|
|
29433
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29518
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/attachments/csv-spans.js
|
|
29434
29519
|
var delimitedSpans = /* @__PURE__ */ __name((text2, delimiter, maxCells = 1e4) => {
|
|
29435
29520
|
const cells = [];
|
|
29436
29521
|
let row = 1, column = 1, start = 0, quoted = false, truncated = false;
|
|
@@ -29468,7 +29553,7 @@ var delimitedSpans = /* @__PURE__ */ __name((text2, delimiter, maxCells = 1e4) =
|
|
|
29468
29553
|
return { cells, truncated };
|
|
29469
29554
|
}, "delimitedSpans");
|
|
29470
29555
|
|
|
29471
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29556
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/readers/sheets/index.js
|
|
29472
29557
|
var DELIMITED = {
|
|
29473
29558
|
".csv": ",",
|
|
29474
29559
|
".tsv": " ",
|
|
@@ -29507,7 +29592,7 @@ var sheets = {
|
|
|
29507
29592
|
}, "read")
|
|
29508
29593
|
};
|
|
29509
29594
|
|
|
29510
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29595
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/readers/registry.js
|
|
29511
29596
|
var BUILT_INS2 = [office, pdf, docx, doc, rtf, html, sheets, plain, image2];
|
|
29512
29597
|
var HEAD_BYTES = 1024;
|
|
29513
29598
|
var readers = [...BUILT_INS2];
|
|
@@ -29517,7 +29602,7 @@ var readWithRegistry = /* @__PURE__ */ __name(async (bytes2, hint, context2) =>
|
|
|
29517
29602
|
return reader ? reader.read(bytes2, hint, context2) : { status: "unsupported" };
|
|
29518
29603
|
}, "readWithRegistry");
|
|
29519
29604
|
|
|
29520
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29605
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/attachments/extract.js
|
|
29521
29606
|
var importEngine = /* @__PURE__ */ __name((name) => importFrom(new URL("attachments/extract.js", import.meta.resolve("@wirecat/cli-core")).href, name), "importEngine");
|
|
29522
29607
|
var extensionOf2 = /* @__PURE__ */ __name(({ name, path }) => extname3(name ?? path).toLowerCase(), "extensionOf");
|
|
29523
29608
|
var extractText = /* @__PURE__ */ __name(async (bytes2, hint, load, signal, env = process.env) => {
|
|
@@ -30596,7 +30681,7 @@ function imageSize(input) {
|
|
|
30596
30681
|
}
|
|
30597
30682
|
__name(imageSize, "imageSize");
|
|
30598
30683
|
|
|
30599
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30684
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/attachments/ocr.js
|
|
30600
30685
|
var MAX_PAGES = 20;
|
|
30601
30686
|
var MAX_PIXELS = 2e7;
|
|
30602
30687
|
var cancelled2 = /* @__PURE__ */ __name((signal) => {
|
|
@@ -30747,7 +30832,7 @@ var ocrPdf = /* @__PURE__ */ __name(async (bytes2, pipeline2, load, signal) => {
|
|
|
30747
30832
|
}
|
|
30748
30833
|
}, "ocrPdf");
|
|
30749
30834
|
|
|
30750
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30835
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/attachments/pdf-preview.js
|
|
30751
30836
|
var pdfPreview = /* @__PURE__ */ __name(async (bytes2, page, signal, load = importEngine, env = process.env) => {
|
|
30752
30837
|
const limits = pdfPreviewLimits(env);
|
|
30753
30838
|
const cancelled4 = /* @__PURE__ */ __name(() => {
|
|
@@ -30824,7 +30909,7 @@ var pdfPreview = /* @__PURE__ */ __name(async (bytes2, page, signal, load = impo
|
|
|
30824
30909
|
}
|
|
30825
30910
|
}, "pdfPreview");
|
|
30826
30911
|
|
|
30827
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30912
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/attachments/transfer.js
|
|
30828
30913
|
import { createHash as createHash8 } from "node:crypto";
|
|
30829
30914
|
import { constants } from "node:fs";
|
|
30830
30915
|
import { lstat as lstat3, open as open5 } from "node:fs/promises";
|
|
@@ -30932,7 +31017,7 @@ var transferMime = /* @__PURE__ */ __name((head, hint, name = null) => {
|
|
|
30932
31017
|
return hint !== null && /^[a-z0-9.+-]+\/[a-z0-9.+-]+$/i.test(hint) ? hint : "application/octet-stream";
|
|
30933
31018
|
}, "transferMime");
|
|
30934
31019
|
|
|
30935
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31020
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/services/file-download.js
|
|
30936
31021
|
import { createWriteStream, mkdirSync } from "node:fs";
|
|
30937
31022
|
import { link as link3, rm } from "node:fs/promises";
|
|
30938
31023
|
import { join as join10, resolve as resolve6 } from "node:path";
|
|
@@ -31046,7 +31131,7 @@ var save = /* @__PURE__ */ __name(async (file2, directory2, fallbackName, { uniq
|
|
|
31046
31131
|
}
|
|
31047
31132
|
}, "save");
|
|
31048
31133
|
|
|
31049
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31134
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/services/attachments.js
|
|
31050
31135
|
var ATTACHMENT_QUERY = {
|
|
31051
31136
|
entity: "attachment",
|
|
31052
31137
|
backend: "sql",
|
|
@@ -31469,7 +31554,7 @@ var attachmentsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
31469
31554
|
}, "setText")
|
|
31470
31555
|
}), "attachmentsService");
|
|
31471
31556
|
|
|
31472
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31557
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/services/chat-documents.js
|
|
31473
31558
|
var chatDocumentsService = /* @__PURE__ */ __name((deps) => ({
|
|
31474
31559
|
list: /* @__PURE__ */ __name(async (chat, { limit, offset, ref }) => {
|
|
31475
31560
|
const store = await accountStore(deps);
|
|
@@ -31499,7 +31584,7 @@ var chatDocumentsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
31499
31584
|
}, "list")
|
|
31500
31585
|
}), "chatDocumentsService");
|
|
31501
31586
|
|
|
31502
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31587
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/services/retention.js
|
|
31503
31588
|
var observationDuration = /* @__PURE__ */ __name((text2, flag) => {
|
|
31504
31589
|
const match = /^(\d+(?:\.\d+)?)([smhdw])$/.exec(text2);
|
|
31505
31590
|
const units2 = { s: 1e3, m: 6e4, h: 36e5, d: 864e5, w: 6048e5 };
|
|
@@ -31586,7 +31671,7 @@ var isRetentionSelection = /* @__PURE__ */ __name((selection) => {
|
|
|
31586
31671
|
}
|
|
31587
31672
|
}, "isRetentionSelection");
|
|
31588
31673
|
|
|
31589
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31674
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/services/counters.js
|
|
31590
31675
|
var counterFields = /* @__PURE__ */ __name((text2 = "views,reactions,comments") => {
|
|
31591
31676
|
const fields = text2.split(",").map((one2) => one2.trim());
|
|
31592
31677
|
if (!fields.length || fields.some((one2) => !COUNTER_FIELDS.includes(one2)) || new Set(fields).size !== fields.length)
|
|
@@ -31793,7 +31878,7 @@ var countersService = /* @__PURE__ */ __name((deps) => {
|
|
|
31793
31878
|
};
|
|
31794
31879
|
}, "countersService");
|
|
31795
31880
|
|
|
31796
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31881
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/services/search-refresh.js
|
|
31797
31882
|
var SYNC_KEY = "messages.sync-first";
|
|
31798
31883
|
var SYNC_BOUNDS = { maxChats: 5, timeMs: 3e4, maxMessages: 500 };
|
|
31799
31884
|
var keyOf2 = /* @__PURE__ */ __name((chat) => JSON.stringify([chat.account.provider, chat.account.account, chat.chatId]), "keyOf");
|
|
@@ -31925,7 +32010,7 @@ var withRefresh = /* @__PURE__ */ __name((found, refreshed) => ({
|
|
|
31925
32010
|
...!refreshed || refreshed.complete ? {} : { coverage: { ...found.coverage, state: "stale" } }
|
|
31926
32011
|
}), "withRefresh");
|
|
31927
32012
|
|
|
31928
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32013
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/services/embeddings-search.js
|
|
31929
32014
|
var CANDIDATES = 50;
|
|
31930
32015
|
var WORD_HITS = 200;
|
|
31931
32016
|
var RRF_K = 60;
|
|
@@ -32200,13 +32285,13 @@ var meanOf = /* @__PURE__ */ __name((vectors) => {
|
|
|
32200
32285
|
return mean.map((value) => value / length);
|
|
32201
32286
|
}, "meanOf");
|
|
32202
32287
|
|
|
32203
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32288
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/services/embeddings.js
|
|
32204
32289
|
var embeddingsService = /* @__PURE__ */ __name((deps) => ({
|
|
32205
32290
|
...embeddingsMaintenance(deps),
|
|
32206
32291
|
...embeddingsSearch(deps)
|
|
32207
32292
|
}), "embeddingsService");
|
|
32208
32293
|
|
|
32209
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32294
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/services/folders.js
|
|
32210
32295
|
var foldersService = /* @__PURE__ */ __name((deps) => {
|
|
32211
32296
|
const online = /* @__PURE__ */ __name(async (command) => {
|
|
32212
32297
|
if (deps.offline)
|
|
@@ -32347,7 +32432,7 @@ var foldersService = /* @__PURE__ */ __name((deps) => {
|
|
|
32347
32432
|
};
|
|
32348
32433
|
}, "foldersService");
|
|
32349
32434
|
|
|
32350
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32435
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/services/mentions.js
|
|
32351
32436
|
var REVIEW_COUNT = 500;
|
|
32352
32437
|
var mentionsService = /* @__PURE__ */ __name((deps) => {
|
|
32353
32438
|
const located = /* @__PURE__ */ __name(async () => {
|
|
@@ -32426,7 +32511,7 @@ var mentionsService = /* @__PURE__ */ __name((deps) => {
|
|
|
32426
32511
|
};
|
|
32427
32512
|
}, "mentionsService");
|
|
32428
32513
|
|
|
32429
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32514
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/domain/formatting.js
|
|
32430
32515
|
var invalid3 = /* @__PURE__ */ __name(() => new CliError("validation_error", "the messenger formatter returned invalid text spans"), "invalid");
|
|
32431
32516
|
var validateFormattedText = /* @__PURE__ */ __name((formatted2) => {
|
|
32432
32517
|
const { text: text2, spans } = formatted2;
|
|
@@ -32486,7 +32571,7 @@ var visibleFormattedText = /* @__PURE__ */ __name((formatted2) => {
|
|
|
32486
32571
|
};
|
|
32487
32572
|
}, "visibleFormattedText");
|
|
32488
32573
|
|
|
32489
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32574
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/domain/message-link.js
|
|
32490
32575
|
var fileLinks = /* @__PURE__ */ __name((attachments) => hitFiles(attachments).map(({ position, kind, name }) => ({
|
|
32491
32576
|
position,
|
|
32492
32577
|
kind,
|
|
@@ -32535,7 +32620,7 @@ var validatePermalink = /* @__PURE__ */ __name((link4) => {
|
|
|
32535
32620
|
return { url: link4.url, access: link4.access, reason: link4.reason };
|
|
32536
32621
|
}, "validatePermalink");
|
|
32537
32622
|
|
|
32538
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32623
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/domain/pin-duration.js
|
|
32539
32624
|
var spokenSeconds = /* @__PURE__ */ __name((seconds) => {
|
|
32540
32625
|
if (seconds % 86400 === 0 && seconds > 86400)
|
|
32541
32626
|
return `${seconds / 86400}d`;
|
|
@@ -32567,7 +32652,7 @@ var pinDurationOf = /* @__PURE__ */ __name((value, allowed, flag = "--expire-tim
|
|
|
32567
32652
|
return seconds;
|
|
32568
32653
|
}, "pinDurationOf");
|
|
32569
32654
|
|
|
32570
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32655
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/sends/send-as.js
|
|
32571
32656
|
var sendAsCheck = /* @__PURE__ */ __name((connection, sendAs) => {
|
|
32572
32657
|
if (sendAs === void 0) {
|
|
32573
32658
|
const saved = connection.savedSender?.bind(connection);
|
|
@@ -32592,7 +32677,7 @@ var typedSendAs = /* @__PURE__ */ __name((typed) => {
|
|
|
32592
32677
|
return sendAs;
|
|
32593
32678
|
}, "typedSendAs");
|
|
32594
32679
|
|
|
32595
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32680
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/search/total.js
|
|
32596
32681
|
var TOTAL_CAP = 1e4;
|
|
32597
32682
|
var totalOf = /* @__PURE__ */ __name((count4, shown, hasMore, exact = true) => {
|
|
32598
32683
|
const least = shown + (hasMore ? 1 : 0);
|
|
@@ -32603,7 +32688,7 @@ var totalOf = /* @__PURE__ */ __name((count4, shown, hasMore, exact = true) => {
|
|
|
32603
32688
|
return { value: count4, relation: exact ? "eq" : "gte" };
|
|
32604
32689
|
}, "totalOf");
|
|
32605
32690
|
|
|
32606
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32691
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/search/lucene/meaning-parts.js
|
|
32607
32692
|
var WORD_FIELDS = /* @__PURE__ */ new Set(["text", "exact"]);
|
|
32608
32693
|
var fieldsOfQuery = /* @__PURE__ */ __name((root, everything) => {
|
|
32609
32694
|
let narrows = false;
|
|
@@ -32632,7 +32717,7 @@ var meaningWords = /* @__PURE__ */ __name((root) => {
|
|
|
32632
32717
|
return wanted(root).join(" ").trim();
|
|
32633
32718
|
}, "meaningWords");
|
|
32634
32719
|
|
|
32635
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32720
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/search/question-plan.js
|
|
32636
32721
|
var words2 = /* @__PURE__ */ __name((text2) => normalize(text2).match(/[\p{L}\p{N}]+/gu) ?? [], "words");
|
|
32637
32722
|
var scaffolding = new Set(words2("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"));
|
|
32638
32723
|
var questionWord = /\b(?:what|which|how|who|where|when|can|could|should)\b|(?:^|\s)(?:сколько|какой|какая|какие|какое|кто|кому|кем|где|когда|как|что|можно|может|могут|ли)(?:\s|$)/iu;
|
|
@@ -32747,7 +32832,7 @@ function planQuestion(text2, strict = false) {
|
|
|
32747
32832
|
}
|
|
32748
32833
|
__name(planQuestion, "planQuestion");
|
|
32749
32834
|
|
|
32750
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32835
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/services/messages-combined.js
|
|
32751
32836
|
var COMBINED_DEFAULTS = { candidateDepth: 300, rrfK: 60, rerank: "all", chatCap: 0 };
|
|
32752
32837
|
var tokensOf = /* @__PURE__ */ __name((text2) => normalize(text2).match(/[\p{L}\p{N}\p{Co}\p{M}]+/gu) ?? [], "tokensOf");
|
|
32753
32838
|
var searchCombined = /* @__PURE__ */ __name(async (store, account, request, messenger = {}, options = COMBINED_DEFAULTS) => {
|
|
@@ -32940,7 +33025,7 @@ var signals = /* @__PURE__ */ __name((hit, terms, corrections, execution, mode,
|
|
|
32940
33025
|
return mode === "coverage" ? coverage2 * 4 : mode === "proximity" ? proximity : mode === "phrase" ? phrase : coverage2 * 4 + proximity + phrase;
|
|
32941
33026
|
}, "signals");
|
|
32942
33027
|
|
|
32943
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33028
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/services/messages-discovery.js
|
|
32944
33029
|
var MEANING_DEPTH = 100;
|
|
32945
33030
|
var RRF_K2 = 60;
|
|
32946
33031
|
var RERANK_DEPTH = 50;
|
|
@@ -33268,7 +33353,7 @@ var mixedWithReranker = /* @__PURE__ */ __name((head, scores) => {
|
|
|
33268
33353
|
})).sort((a, b) => b.mixed - a.mixed).map(({ hit }) => hit);
|
|
33269
33354
|
}, "mixedWithReranker");
|
|
33270
33355
|
|
|
33271
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33356
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/services/thread-context.js
|
|
33272
33357
|
var THREAD_BOUNDS = { maxHops: 8, maxMessages: 50, maxBytes: 65536, withinMs: 864e5 };
|
|
33273
33358
|
var bytes = /* @__PURE__ */ __name((items, links) => Buffer.byteLength(JSON.stringify({ items, links }), "utf8"), "bytes");
|
|
33274
33359
|
var threadBounds = /* @__PURE__ */ __name((options = {}) => {
|
|
@@ -33467,7 +33552,7 @@ var readThreadContext = /* @__PURE__ */ __name(async (store, account, chat, mess
|
|
|
33467
33552
|
return result;
|
|
33468
33553
|
}, "readThreadContext");
|
|
33469
33554
|
|
|
33470
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33555
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/services/messages-archive-search.js
|
|
33471
33556
|
var SEARCH_FILL_MS = 200;
|
|
33472
33557
|
var statsStore = /* @__PURE__ */ __name(async (store, account, request, messenger = {}) => {
|
|
33473
33558
|
const stop = Date.now() + SEARCH_FILL_MS;
|
|
@@ -33534,12 +33619,12 @@ var accountOf2 = /* @__PURE__ */ __name((hit) => {
|
|
|
33534
33619
|
}, "accountOf");
|
|
33535
33620
|
var keyOf3 = /* @__PURE__ */ __name(({ provider, account }) => `${provider}/${account}`, "keyOf");
|
|
33536
33621
|
|
|
33537
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33622
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/services/pictures.js
|
|
33538
33623
|
import { createHash as createHash10 } from "node:crypto";
|
|
33539
33624
|
import { readFile as readFile2, stat as stat3 } from "node:fs/promises";
|
|
33540
33625
|
import { setTimeout as sleep4 } from "node:timers/promises";
|
|
33541
33626
|
|
|
33542
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33627
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/domain/models.js
|
|
33543
33628
|
var GROUP_SETTINGS = [
|
|
33544
33629
|
"allCanPin",
|
|
33545
33630
|
"onlyAdminsAdd",
|
|
@@ -33553,7 +33638,7 @@ var ADMIN_RIGHTS = ["read", "members", "admins", "info", "pin", "link", "post",
|
|
|
33553
33638
|
var senderIsMe = /* @__PURE__ */ __name((message, account) => message.outgoing === true || message.senderId !== null && String(message.senderId) === account, "senderIsMe");
|
|
33554
33639
|
var MEDIA_KINDS = ["photo", "video", "file", "audio", "link"];
|
|
33555
33640
|
|
|
33556
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33641
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/services/pictures.js
|
|
33557
33642
|
var PICTURE_MAX_BYTES = 25 * 1024 * 1024;
|
|
33558
33643
|
var PICTURE_FLOOR = 0.25;
|
|
33559
33644
|
var PAGE4 = 50;
|
|
@@ -33570,7 +33655,7 @@ var picturesService = /* @__PURE__ */ __name((deps) => {
|
|
|
33570
33655
|
const directory2 = imageModelsDirectory(deps.env);
|
|
33571
33656
|
if (!isImageModelInstalled(model2, directory2))
|
|
33572
33657
|
throw new CliError("not_found", missingModel(model2.id), { reason: "model.not-downloaded", model: model2.id });
|
|
33573
|
-
const { openPictureEmbedder } = await import("./embedder-
|
|
33658
|
+
const { openPictureEmbedder } = await import("./embedder-LLNK4JF4.js");
|
|
33574
33659
|
return openPictureEmbedder(model2, directory2);
|
|
33575
33660
|
}, "open");
|
|
33576
33661
|
const embedder = /* @__PURE__ */ __name(() => {
|
|
@@ -33767,7 +33852,7 @@ var withPictures = /* @__PURE__ */ __name((messages, pictures) => ({
|
|
|
33767
33852
|
}, "search")
|
|
33768
33853
|
}), "withPictures");
|
|
33769
33854
|
|
|
33770
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33855
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/services/messages-meaning.js
|
|
33771
33856
|
var meaningLane = /* @__PURE__ */ __name((deps) => async (question, accounts, shared, within) => {
|
|
33772
33857
|
const target2 = embeddingTarget(deps, DEFAULT_TEXT_MODEL);
|
|
33773
33858
|
const skipped = /* @__PURE__ */ __name((reason, step) => ({
|
|
@@ -33816,7 +33901,7 @@ var meaningLane = /* @__PURE__ */ __name((deps) => async (question, accounts, sh
|
|
|
33816
33901
|
}
|
|
33817
33902
|
}, "meaningLane");
|
|
33818
33903
|
|
|
33819
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33904
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/services/messages-rerank.js
|
|
33820
33905
|
var rerankLane = /* @__PURE__ */ __name((deps) => {
|
|
33821
33906
|
const choice = deps.reranker ?? DEFAULT_RERANK_MODEL;
|
|
33822
33907
|
if (choice === "off")
|
|
@@ -33828,9 +33913,9 @@ var rerankLane = /* @__PURE__ */ __name((deps) => {
|
|
|
33828
33913
|
return { skipped: { reason: `${model.id} is not downloaded`, step: "models.download", model: model.id } };
|
|
33829
33914
|
try {
|
|
33830
33915
|
const warm = deps.embedders;
|
|
33831
|
-
const reranker = warm ? await warm.reranker(`rerank:${model.id}`, async () => (await import("./process-
|
|
33916
|
+
const reranker = warm ? await warm.reranker(`rerank:${model.id}`, async () => (await import("./process-PI6XUJWP.js")).openRerankerProcess(model, directory2, {
|
|
33832
33917
|
threads: defaultThreads()
|
|
33833
|
-
})) : await (await import("./rerank-
|
|
33918
|
+
})) : await (await import("./rerank-SCBTCBPO.js")).openReranker(model, directory2);
|
|
33834
33919
|
return {
|
|
33835
33920
|
model: model.id,
|
|
33836
33921
|
score: /* @__PURE__ */ __name((question, passages) => reranker.score(plainWords(question), passages), "score"),
|
|
@@ -33850,17 +33935,17 @@ var rerankLane = /* @__PURE__ */ __name((deps) => {
|
|
|
33850
33935
|
};
|
|
33851
33936
|
}, "rerankLane");
|
|
33852
33937
|
|
|
33853
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33938
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/services/document-pictures.js
|
|
33854
33939
|
var openPictureEmbedderFor = /* @__PURE__ */ __name(async ({ env, command } = {}) => {
|
|
33855
33940
|
const model = imageModel(DEFAULT_IMAGE_MODEL);
|
|
33856
33941
|
const directory2 = imageModelsDirectory(env);
|
|
33857
33942
|
if (!isImageModelInstalled(model, directory2))
|
|
33858
33943
|
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 });
|
|
33859
|
-
const { openPictureEmbedder } = await import("./embedder-
|
|
33944
|
+
const { openPictureEmbedder } = await import("./embedder-LLNK4JF4.js");
|
|
33860
33945
|
return openPictureEmbedder(model, directory2);
|
|
33861
33946
|
}, "openPictureEmbedderFor");
|
|
33862
33947
|
|
|
33863
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33948
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/services/document-source.js
|
|
33864
33949
|
var documentSource = /* @__PURE__ */ __name((note2, accounts, profiles, file2) => {
|
|
33865
33950
|
const metadata = note2.frontMatter;
|
|
33866
33951
|
const account = accounts.find(({ id: id2 }) => String(id2) === note2.folderId);
|
|
@@ -33875,7 +33960,7 @@ var documentSource = /* @__PURE__ */ __name((note2, accounts, profiles, file2) =
|
|
|
33875
33960
|
};
|
|
33876
33961
|
}, "documentSource");
|
|
33877
33962
|
|
|
33878
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33963
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/services/notes-title-tier.js
|
|
33879
33964
|
var plainQueryWords = /* @__PURE__ */ __name((query) => {
|
|
33880
33965
|
let root;
|
|
33881
33966
|
try {
|
|
@@ -33902,7 +33987,7 @@ var titleTiers = /* @__PURE__ */ __name((hits, words3) => {
|
|
|
33902
33987
|
return [...hits].sort((a, b) => rank(a) - rank(b));
|
|
33903
33988
|
}, "titleTiers");
|
|
33904
33989
|
|
|
33905
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33990
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/services/notes-search.js
|
|
33906
33991
|
var storeQuery = /* @__PURE__ */ __name(async (store, text2, { exact, timezone } = {}) => resolvedQuery(store, parsedQuery(text2, exact), timezone), "storeQuery");
|
|
33907
33992
|
var parsedQuery = /* @__PURE__ */ __name((text2, exact) => validateFields(parseLucene(text2, { ...SEARCH_QUERY, defaultField: exact ? "exact" : "text" })).root, "parsedQuery");
|
|
33908
33993
|
var resolvedQuery = /* @__PURE__ */ __name(async (store, root, timezone) => {
|
|
@@ -34337,7 +34422,7 @@ var searchNotesOf = /* @__PURE__ */ __name(async (store, account, text2, { accou
|
|
|
34337
34422
|
};
|
|
34338
34423
|
}, "searchNotesOf");
|
|
34339
34424
|
|
|
34340
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34425
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/services/events-search.js
|
|
34341
34426
|
var MAX_EVENTS_OFFSET = 1e3;
|
|
34342
34427
|
var iso3 = /* @__PURE__ */ __name((at) => at === null ? null : new Date(at).toISOString(), "iso");
|
|
34343
34428
|
var accountIdsOf = /* @__PURE__ */ __name(async (store, accounts) => {
|
|
@@ -34449,7 +34534,7 @@ var searchEvents = /* @__PURE__ */ __name(async (store, query, { limit = 20, off
|
|
|
34449
34534
|
};
|
|
34450
34535
|
}, "searchEvents");
|
|
34451
34536
|
|
|
34452
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34537
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/services/search-all.js
|
|
34453
34538
|
var RESOURCES_SEARCHED = ["messages", "mail", "notes", "events"];
|
|
34454
34539
|
var skippable = /* @__PURE__ */ __name((error) => error instanceof CliError && (error.code === "validation_error" || error.code === "not_found"), "skippable");
|
|
34455
34540
|
var filtersBeside = /* @__PURE__ */ __name((text2) => {
|
|
@@ -34658,7 +34743,7 @@ var searchAll = /* @__PURE__ */ __name(async (store, account, request, messenger
|
|
|
34658
34743
|
};
|
|
34659
34744
|
}, "searchAll");
|
|
34660
34745
|
|
|
34661
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34746
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/services/search-all-meetings.js
|
|
34662
34747
|
var RESOURCES_SEARCHED_WITH_MEETINGS = [...RESOURCES_SEARCHED, "meetings"];
|
|
34663
34748
|
var whole2 = /* @__PURE__ */ __name((value, minimum, maximum, label) => {
|
|
34664
34749
|
if (!Number.isSafeInteger(value) || value < minimum || value > maximum)
|
|
@@ -34911,7 +34996,7 @@ var searchAllOfSource = /* @__PURE__ */ __name(async (store, account, source, re
|
|
|
34911
34996
|
return { ...found, skipped: [...skipped, ...empty2, ...unnamed, ...found.skipped] };
|
|
34912
34997
|
}, "searchAllOfSource");
|
|
34913
34998
|
|
|
34914
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34999
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/services/server-search.js
|
|
34915
35000
|
var SERVER_SEARCH_KEY = "messages.server-search";
|
|
34916
35001
|
var SERVER_BOUNDS = { timeMs: 5e3, perCall: 100, maxCalls: 3, textBytes: 262144 };
|
|
34917
35002
|
var DEFAULT_BACKEND = "both";
|
|
@@ -35100,7 +35185,7 @@ var searchServer = /* @__PURE__ */ __name(async (deps, request) => {
|
|
|
35100
35185
|
return { report, sources };
|
|
35101
35186
|
}, "searchServer");
|
|
35102
35187
|
|
|
35103
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35188
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/services/messages.js
|
|
35104
35189
|
var DELETE_AT_ONCE = 10;
|
|
35105
35190
|
var filesOf = /* @__PURE__ */ __name(({ attachments }) => {
|
|
35106
35191
|
const files = fileLinks(attachments);
|
|
@@ -35541,7 +35626,7 @@ var checkMediaOptions = /* @__PURE__ */ __name((messenger, asked, attachments) =
|
|
|
35541
35626
|
throw new CliError("validation_error", `${MEDIA_FLAGS[first2]} needs a --photo or --file`);
|
|
35542
35627
|
}, "checkMediaOptions");
|
|
35543
35628
|
|
|
35544
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35629
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/domain/channel-tags.js
|
|
35545
35630
|
var CHANNEL_TAG_RULES_VERSION = "keywords-v1";
|
|
35546
35631
|
var RULES = {
|
|
35547
35632
|
ai: [/\b(ai|gpt|llm|machine learning|artificial intelligence)\b/iu, /нейросет|искусственн/iu],
|
|
@@ -35556,7 +35641,7 @@ var classifyChannel = /* @__PURE__ */ __name((metadata) => Object.entries(RULES)
|
|
|
35556
35641
|
return fields.length ? [{ tag, score: fields.length / 3, fields }] : [];
|
|
35557
35642
|
}), "classifyChannel");
|
|
35558
35643
|
|
|
35559
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35644
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/services/metadata.js
|
|
35560
35645
|
var metadataService = /* @__PURE__ */ __name((deps) => {
|
|
35561
35646
|
const held = /* @__PURE__ */ __name(async (reference, { includeLeft = false } = {}) => {
|
|
35562
35647
|
const store = await deps.store();
|
|
@@ -35642,7 +35727,7 @@ var metadataService = /* @__PURE__ */ __name((deps) => {
|
|
|
35642
35727
|
};
|
|
35643
35728
|
}, "metadataService");
|
|
35644
35729
|
|
|
35645
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35730
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/moderation/check.js
|
|
35646
35731
|
var INVITE = /max\.ru\/join\/|(t|telegram)\.me\/(\+|joinchat\/)|tg:\/\/join/i;
|
|
35647
35732
|
var LINK2 = /https?:\/\/\S+/i;
|
|
35648
35733
|
var STRENGTH = { report: 0, delete: 1, remove: 2 };
|
|
@@ -35830,7 +35915,7 @@ var nextPoint = /* @__PURE__ */ __name((rows, found) => {
|
|
|
35830
35915
|
}, "nextPoint");
|
|
35831
35916
|
var someUndone = /* @__PURE__ */ __name((rows) => rows.some(undone), "someUndone");
|
|
35832
35917
|
|
|
35833
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35918
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/moderation/rules.js
|
|
35834
35919
|
import { existsSync, readFileSync as readFileSync2 } from "node:fs";
|
|
35835
35920
|
import { join as join11 } from "node:path";
|
|
35836
35921
|
var RULE_ACTIONS = ["report", "delete", "remove"];
|
|
@@ -35973,7 +36058,7 @@ var assign = /* @__PURE__ */ __name((rules, key, value) => {
|
|
|
35973
36058
|
return { ...rules, [head]: { ...rules[head], [tail]: value } };
|
|
35974
36059
|
}, "assign");
|
|
35975
36060
|
|
|
35976
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36061
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/moderation/run.js
|
|
35977
36062
|
var FIRST_LOOK_MS = 24 * 36e5;
|
|
35978
36063
|
var moderateWith = /* @__PURE__ */ __name(async (run) => {
|
|
35979
36064
|
const { chatId, title, rules, point, since, dryRun } = run;
|
|
@@ -36010,7 +36095,7 @@ var moderateWith = /* @__PURE__ */ __name(async (run) => {
|
|
|
36010
36095
|
return { chatId, rows, notes };
|
|
36011
36096
|
}, "moderateWith");
|
|
36012
36097
|
|
|
36013
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36098
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/services/moderation.js
|
|
36014
36099
|
var moderationService = /* @__PURE__ */ __name((deps) => {
|
|
36015
36100
|
const file2 = /* @__PURE__ */ __name(() => new ModerationRules(moderationPathFor(deps.messenger.app, deps.profile ?? "default", deps.env ?? process.env)), "file");
|
|
36016
36101
|
const group = /* @__PURE__ */ __name(async (chat) => {
|
|
@@ -36088,7 +36173,7 @@ var moderatorOf = /* @__PURE__ */ __name((adapter, deps) => ({
|
|
|
36088
36173
|
}, "removePerson")
|
|
36089
36174
|
}), "moderatorOf");
|
|
36090
36175
|
|
|
36091
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36176
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/services/private-people.js
|
|
36092
36177
|
var noteItem = /* @__PURE__ */ __name((provider, note2) => ({
|
|
36093
36178
|
id: note2.id,
|
|
36094
36179
|
contact: formatReference({ type: "contact", provider, id: note2.personId }),
|
|
@@ -36132,7 +36217,7 @@ var privatePeopleService = /* @__PURE__ */ __name((deps) => {
|
|
|
36132
36217
|
};
|
|
36133
36218
|
}, "privatePeopleService");
|
|
36134
36219
|
|
|
36135
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36220
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/services/rankings.js
|
|
36136
36221
|
var empty = /* @__PURE__ */ __name(() => ({
|
|
36137
36222
|
total: 0,
|
|
36138
36223
|
population: 0,
|
|
@@ -36388,7 +36473,7 @@ var rankingsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
36388
36473
|
}, "evidence")
|
|
36389
36474
|
}), "rankingsService");
|
|
36390
36475
|
|
|
36391
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36476
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/services/searches.js
|
|
36392
36477
|
var savedSearchItem = /* @__PURE__ */ __name((one2) => ({
|
|
36393
36478
|
id: one2.id,
|
|
36394
36479
|
name: one2.name,
|
|
@@ -36517,7 +36602,7 @@ var searchesService = /* @__PURE__ */ __name((deps) => {
|
|
|
36517
36602
|
};
|
|
36518
36603
|
}, "searchesService");
|
|
36519
36604
|
|
|
36520
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36605
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/services/tags.js
|
|
36521
36606
|
var TAGGING_QUERY = {
|
|
36522
36607
|
entity: "tagging",
|
|
36523
36608
|
backend: "sql",
|
|
@@ -36601,7 +36686,7 @@ var tagsService = /* @__PURE__ */ __name((deps) => {
|
|
|
36601
36686
|
};
|
|
36602
36687
|
}, "tagsService");
|
|
36603
36688
|
|
|
36604
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36689
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/services/topics.js
|
|
36605
36690
|
var actionOf = /* @__PURE__ */ __name(({ title, closed, pinned, hidden, icon }) => {
|
|
36606
36691
|
const set = [closed, pinned, hidden].filter((one2) => one2 !== void 0).length;
|
|
36607
36692
|
if (title !== void 0 || icon !== void 0 || set !== 1)
|
|
@@ -36800,7 +36885,7 @@ var topicsService = /* @__PURE__ */ __name((deps) => {
|
|
|
36800
36885
|
};
|
|
36801
36886
|
}, "topicsService");
|
|
36802
36887
|
|
|
36803
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36888
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/services/evidence.js
|
|
36804
36889
|
import { createHash as createHash11, randomUUID as randomUUID5 } from "node:crypto";
|
|
36805
36890
|
var hash2 = /* @__PURE__ */ __name((value) => createHash11("sha256").update(JSON.stringify(value)).digest("hex"), "hash");
|
|
36806
36891
|
var positive = /* @__PURE__ */ __name((value, name, minimum = 1) => {
|
|
@@ -36874,7 +36959,7 @@ var prepareEvidencePacket = /* @__PURE__ */ __name(({ kind, source, page, limits
|
|
|
36874
36959
|
return { ...content, id: randomUUID5(), fingerprint: hash2(content) };
|
|
36875
36960
|
}, "prepareEvidencePacket");
|
|
36876
36961
|
|
|
36877
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36962
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/services/evidence-read.js
|
|
36878
36963
|
var readEvidencePacket = /* @__PURE__ */ __name(async (store, account, { chat, limit, before: before2 }, messenger = {}) => {
|
|
36879
36964
|
if (!Number.isSafeInteger(limit) || limit < 1 || limit > 100)
|
|
36880
36965
|
throw new CliError("validation_error", "evidence message limit must be an integer from 1 to 100");
|
|
@@ -36894,7 +36979,7 @@ var readEvidencePacket = /* @__PURE__ */ __name(async (store, account, { chat, l
|
|
|
36894
36979
|
return { ...packet, nextBeforeId: older && last ? last.id : null };
|
|
36895
36980
|
}, "readEvidencePacket");
|
|
36896
36981
|
|
|
36897
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36982
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/services/meeting-hit-search.js
|
|
36898
36983
|
var refreshMeetingIndex = /* @__PURE__ */ __name(async (meetings, accountId, signal) => {
|
|
36899
36984
|
let before2 = Number.POSITIVE_INFINITY;
|
|
36900
36985
|
for (; ; ) {
|
|
@@ -36956,7 +37041,7 @@ var searchMeetingHits = /* @__PURE__ */ __name(async (store, query, request, opt
|
|
|
36956
37041
|
return { ...result, selection };
|
|
36957
37042
|
}, "searchMeetingHits");
|
|
36958
37043
|
|
|
36959
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37044
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/services/meeting-project-discovery.js
|
|
36960
37045
|
import { createHash as createHash12 } from "node:crypto";
|
|
36961
37046
|
var scopeKeys = [
|
|
36962
37047
|
"accountId",
|
|
@@ -37091,7 +37176,7 @@ var readMeetingProjectDiscovery = /* @__PURE__ */ __name(async (ports, projectNa
|
|
|
37091
37176
|
};
|
|
37092
37177
|
}, "readMeetingProjectDiscovery");
|
|
37093
37178
|
|
|
37094
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37179
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/services/meeting-hit-context.js
|
|
37095
37180
|
import { createHash as createHash13 } from "node:crypto";
|
|
37096
37181
|
var contextCue = /* @__PURE__ */ __name((cue) => ({
|
|
37097
37182
|
ref: cue.reference,
|
|
@@ -37209,7 +37294,7 @@ var readMeetingHitContext = /* @__PURE__ */ __name(async (store, accountId, refe
|
|
|
37209
37294
|
return { ...packet, fingerprint: createHash13("sha256").update(JSON.stringify(packet)).digest("hex") };
|
|
37210
37295
|
}, "readMeetingHitContext");
|
|
37211
37296
|
|
|
37212
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37297
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/services/meeting-passage-format.js
|
|
37213
37298
|
var visible = /* @__PURE__ */ __name((text2) => text2.replace(/[\p{Cc}\p{Cf}]/gu, (value) => value === "\n" || value === " " ? value : `\\u{${value.codePointAt(0)?.toString(16)}}`), "visible");
|
|
37214
37299
|
var markdown = /* @__PURE__ */ __name((text2) => visible(text2).replaceAll("&", "&").replaceAll("<", "<").replaceAll(">", ">").replace(/[\\`*_[\]#|~]/g, "\\$&"), "markdown");
|
|
37215
37300
|
var timestamp = /* @__PURE__ */ __name((ms) => {
|
|
@@ -37285,7 +37370,7 @@ var readMeetingPassage = /* @__PURE__ */ __name(async (store, accountId, referen
|
|
|
37285
37370
|
return { packet, content };
|
|
37286
37371
|
}, "readMeetingPassage");
|
|
37287
37372
|
|
|
37288
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37373
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/context/communication-selection.js
|
|
37289
37374
|
var communicationFields = {
|
|
37290
37375
|
sources: pipe(array(strictObject({
|
|
37291
37376
|
id: pipe(string(), regex(/^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$/)),
|
|
@@ -37317,7 +37402,7 @@ var communicationRequest = /* @__PURE__ */ __name((value, preparationAfter) => {
|
|
|
37317
37402
|
return { ...input, after, before: before2 };
|
|
37318
37403
|
}, "communicationRequest");
|
|
37319
37404
|
|
|
37320
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37405
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/services/meeting-preparation-validation.js
|
|
37321
37406
|
var MEETING_PREPARATION_LIMITS = {
|
|
37322
37407
|
meetings: { min: 1, max: 20, default: 5 },
|
|
37323
37408
|
cues: { min: 1, max: 100, default: 10 },
|
|
@@ -37403,7 +37488,7 @@ var preparationRequest = /* @__PURE__ */ __name((accountId, externalId, original
|
|
|
37403
37488
|
return { ...input, history };
|
|
37404
37489
|
}, "preparationRequest");
|
|
37405
37490
|
|
|
37406
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37491
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/services/meeting-communications-preparation.js
|
|
37407
37492
|
var readPreparationCommunications = /* @__PURE__ */ __name(async (plan, signal) => {
|
|
37408
37493
|
const section = {
|
|
37409
37494
|
readUsage: plan.reader.usage(),
|
|
@@ -37508,7 +37593,7 @@ var appendPreparationCommunications = /* @__PURE__ */ __name((result, read2) =>
|
|
|
37508
37593
|
result.knowledge.coverage.otherSources = "see-communications";
|
|
37509
37594
|
}, "appendPreparationCommunications");
|
|
37510
37595
|
|
|
37511
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37596
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/services/meeting-communications-selection.js
|
|
37512
37597
|
var captureCommunicationSelections = /* @__PURE__ */ __name((port) => {
|
|
37513
37598
|
if (port === void 0)
|
|
37514
37599
|
return void 0;
|
|
@@ -37613,7 +37698,7 @@ var validatePreparationCommunications = /* @__PURE__ */ __name((section, request
|
|
|
37613
37698
|
}
|
|
37614
37699
|
}, "validatePreparationCommunications");
|
|
37615
37700
|
|
|
37616
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37701
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/services/meeting-knowledge-preparation.js
|
|
37617
37702
|
var invalid5 = /* @__PURE__ */ __name(() => {
|
|
37618
37703
|
throw new CliError("invalid_response", "Preparation knowledge returned an invalid selection");
|
|
37619
37704
|
}, "invalid");
|
|
@@ -37682,7 +37767,7 @@ var appendKnowledgePreparation = /* @__PURE__ */ __name(async (store, result, in
|
|
|
37682
37767
|
}
|
|
37683
37768
|
}, "appendKnowledgePreparation");
|
|
37684
37769
|
|
|
37685
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37770
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/services/meeting-notes-preparation.js
|
|
37686
37771
|
var invalid6 = /* @__PURE__ */ __name(() => {
|
|
37687
37772
|
throw new CliError("invalid_response", "Preparation notes returned an invalid selection");
|
|
37688
37773
|
}, "invalid");
|
|
@@ -37756,7 +37841,7 @@ var appendNotesPreparation = /* @__PURE__ */ __name(async (store, result, input)
|
|
|
37756
37841
|
}
|
|
37757
37842
|
}, "appendNotesPreparation");
|
|
37758
37843
|
|
|
37759
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37844
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/services/meeting-project-preparation.js
|
|
37760
37845
|
var PAGE_LIMIT = 4;
|
|
37761
37846
|
var size2 = /* @__PURE__ */ __name((value) => Buffer.byteLength(JSON.stringify(value), "utf8"), "size");
|
|
37762
37847
|
var appendProjectPreparation = /* @__PURE__ */ __name(async (ports, result, input) => {
|
|
@@ -37806,7 +37891,7 @@ var appendProjectPreparation = /* @__PURE__ */ __name(async (ports, result, inpu
|
|
|
37806
37891
|
}
|
|
37807
37892
|
}, "appendProjectPreparation");
|
|
37808
37893
|
|
|
37809
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37894
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/services/meeting-related-preparation.js
|
|
37810
37895
|
var appendRelatedPreparation = /* @__PURE__ */ __name(async (store, result, input) => {
|
|
37811
37896
|
if (!result.series || !result.items.length || result.coverage.outputLimited)
|
|
37812
37897
|
return;
|
|
@@ -37878,7 +37963,7 @@ var appendRelatedPreparation = /* @__PURE__ */ __name(async (store, result, inpu
|
|
|
37878
37963
|
}
|
|
37879
37964
|
}, "appendRelatedPreparation");
|
|
37880
37965
|
|
|
37881
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37966
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/services/meeting-preparation.js
|
|
37882
37967
|
var size3 = /* @__PURE__ */ __name((value) => Buffer.byteLength(JSON.stringify(value), "utf8"), "size");
|
|
37883
37968
|
var createMeetingPreparationService = /* @__PURE__ */ __name((scope, accountId, ports) => {
|
|
37884
37969
|
const fixed = snapshotMeetingScope(scope);
|
|
@@ -38016,7 +38101,7 @@ var createMeetingPreparationService = /* @__PURE__ */ __name((scope, accountId,
|
|
|
38016
38101
|
};
|
|
38017
38102
|
}, "createMeetingPreparationService");
|
|
38018
38103
|
|
|
38019
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38104
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/services/package-upgrade.js
|
|
38020
38105
|
var upgradePackage = /* @__PURE__ */ __name(async ({ current, command, packageName, check: check2 }, ports) => {
|
|
38021
38106
|
const installer = ports.installer();
|
|
38022
38107
|
const argv = updateCommand(installer, packageName);
|
|
@@ -38081,7 +38166,7 @@ var dayAfter = /* @__PURE__ */ __name((published) => {
|
|
|
38081
38166
|
return Number.isNaN(time) ? null : new Date(time + 24 * 60 * 60 * 1e3).toISOString();
|
|
38082
38167
|
}, "dayAfter");
|
|
38083
38168
|
|
|
38084
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38169
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/services/index.js
|
|
38085
38170
|
var servicesFor = /* @__PURE__ */ __name((deps) => {
|
|
38086
38171
|
const pictures = picturesService(deps);
|
|
38087
38172
|
const base = {
|
|
@@ -38117,7 +38202,7 @@ var servicesFor = /* @__PURE__ */ __name((deps) => {
|
|
|
38117
38202
|
return deps.messenger.services ? { ...base, ...deps.messenger.services(base, deps) } : base;
|
|
38118
38203
|
}, "servicesFor");
|
|
38119
38204
|
|
|
38120
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38205
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/background/relay.js
|
|
38121
38206
|
import { createHash as createHash14 } from "node:crypto";
|
|
38122
38207
|
import { chmodSync, lstatSync, mkdirSync as mkdirSync3, rmSync } from "node:fs";
|
|
38123
38208
|
import { createConnection, createServer } from "node:net";
|
|
@@ -38265,7 +38350,7 @@ var serve = /* @__PURE__ */ __name(async (socket, request, stdin, signal, run) =
|
|
|
38265
38350
|
}
|
|
38266
38351
|
}, "serve");
|
|
38267
38352
|
|
|
38268
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38353
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.560.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5702f943a9224d209a94753f662cf36c/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-relay.js
|
|
38269
38354
|
var lentConnection = /* @__PURE__ */ __name((connection, watchers) => throughWrapper(connection, {
|
|
38270
38355
|
close: /* @__PURE__ */ __name(async () => {
|
|
38271
38356
|
}, "close"),
|