@wirecat/zoom-cli 0.74.0 → 0.75.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/contracts/wirecat.json +5 -4
- package/dist/bin/zm.js +2 -2
- package/dist/bundle/{all-profiles-SDOAABLC.js → all-profiles-WFLKFKJC.js} +19 -29
- package/dist/bundle/{answer-policy-RHS74QYY.js → answer-policy-XCKC2LLN.js} +57 -57
- package/dist/bundle/{anthropic-HCVY2PIN.js → anthropic-H45W4P22.js} +2 -2
- package/dist/bundle/{app-server-V64VS6KN.js → app-server-I4FPLBIX.js} +49 -64
- package/dist/bundle/{bun-EBQHHLKR.js → bun-V5QLYBZU.js} +2 -2
- package/dist/bundle/{bun-sqlite-PVMXO2JB.js → bun-sqlite-X2YZPHDS.js} +3 -3
- package/dist/bundle/{chunk-OP6HK2QL.js → chunk-2Q4CB4EI.js} +1 -1
- package/dist/bundle/{chunk-P53CLAXD.js → chunk-3U3W6YY5.js} +59 -56
- package/dist/bundle/{chunk-XGEPAJBY.js → chunk-3URYKAJP.js} +1 -1
- package/dist/bundle/{chunk-TMCXUWTY.js → chunk-3YKAFLXY.js} +1 -1
- package/dist/bundle/{chunk-NKBMLSWK.js → chunk-3YRPDNWK.js} +544 -142
- package/dist/bundle/{chunk-SY4MIIWF.js → chunk-4J5GJJ2I.js} +1 -1
- package/dist/bundle/{chunk-F6PUM6ZK.js → chunk-4XDWV6VJ.js} +16 -16
- package/dist/bundle/{chunk-SPWKGRTO.js → chunk-4YNUQGDP.js} +1 -1
- package/dist/bundle/{chunk-DXZN3DU6.js → chunk-532H3KT3.js} +2 -2
- package/dist/bundle/{chunk-YNI57LTZ.js → chunk-6XNTELM5.js} +1 -1
- package/dist/bundle/{chunk-2PNG76LV.js → chunk-7ZVWV33Z.js} +9 -9
- package/dist/bundle/{chunk-LZ4AVHBS.js → chunk-A3Q3PG54.js} +1 -1
- package/dist/bundle/{chunk-SKDQNYKA.js → chunk-AVCYD4WQ.js} +19 -18
- package/dist/bundle/{chunk-YFLTHGB3.js → chunk-B6Q53CVA.js} +7 -7
- package/dist/bundle/{chunk-RRW54FK6.js → chunk-BY2YPKZZ.js} +10 -10
- package/dist/bundle/{chunk-QLKCKTM4.js → chunk-C5WQ57AB.js} +1 -1
- package/dist/bundle/{chunk-FL2TKSZY.js → chunk-CAQ5GW3A.js} +1 -1
- package/dist/bundle/{chunk-IZUOL4Q6.js → chunk-DQBLDZ7M.js} +3 -3
- package/dist/bundle/{chunk-WYV5IITK.js → chunk-DUPFAY35.js} +6 -6
- package/dist/bundle/{chunk-ZYMTS3CI.js → chunk-ELD5AC7Q.js} +2 -2
- package/dist/bundle/{chunk-LUBG5GKK.js → chunk-EOZAJGB4.js} +11 -12
- package/dist/bundle/{chunk-OPUGV7VW.js → chunk-F6RB5FHZ.js} +1 -1
- package/dist/bundle/{chunk-LQR4V5EY.js → chunk-F7K2V6OA.js} +10 -10
- package/dist/bundle/{chunk-6GPBDVQ2.js → chunk-FBYGBR4Q.js} +3 -3
- package/dist/bundle/{chunk-R4J4DLJV.js → chunk-GPVSGZ4R.js} +728 -544
- package/dist/bundle/{chunk-PKM2UKAZ.js → chunk-GU4FVTJV.js} +13 -1
- package/dist/bundle/{chunk-XFT3YIHU.js → chunk-HKPNQL52.js} +3 -3
- package/dist/bundle/{chunk-N7KCNMKL.js → chunk-IDGWBKMH.js} +10 -10
- package/dist/bundle/{chunk-7R4UU65O.js → chunk-IMDTC4MD.js} +34 -20
- package/dist/bundle/{chunk-UW3BB2XW.js → chunk-IO3BQ6JU.js} +22 -22
- package/dist/bundle/{chunk-LHPYSVGP.js → chunk-IW245Q5B.js} +22 -22
- package/dist/bundle/{chunk-DSRG5NRF.js → chunk-JDTZCZ5K.js} +2 -2
- package/dist/bundle/{chunk-GPGIU3OG.js → chunk-JTYWSXJG.js} +7 -7
- package/dist/bundle/{chunk-TKPIDOW5.js → chunk-K5E5MB4C.js} +18 -18
- package/dist/bundle/{chunk-HGUYJUNO.js → chunk-L5UILROP.js} +5 -5
- package/dist/bundle/{chunk-QSWR7VDA.js → chunk-LRCSDAYK.js} +3 -3
- package/dist/bundle/{chunk-HZUUVNWC.js → chunk-MHXZ62CU.js} +1 -1
- package/dist/bundle/{chunk-Y4KWWPIO.js → chunk-MNVT7EJS.js} +2 -2
- package/dist/bundle/{chunk-7W23N2YW.js → chunk-NE4GYKQA.js} +5 -5
- package/dist/bundle/{chunk-5R6EBM5Z.js → chunk-NL6AZ6S2.js} +1 -1
- package/dist/bundle/{chunk-AFUHT7F7.js → chunk-NQLL4KRN.js} +5 -5
- package/dist/bundle/{chunk-5KDBLEUF.js → chunk-NQQVNLO6.js} +10 -10
- package/dist/bundle/{chunk-6EMOZGSN.js → chunk-NU4FSSMN.js} +2 -2
- package/dist/bundle/{chunk-NV2REPY6.js → chunk-OUM4ZO53.js} +1 -1
- package/dist/bundle/{chunk-3ROL6MBJ.js → chunk-P4ZQQLZF.js} +569 -401
- package/dist/bundle/{chunk-R35YGFKQ.js → chunk-P6MQ6FS4.js} +30 -5
- package/dist/bundle/{chunk-4ELLWJT4.js → chunk-PCJRHC5Y.js} +7 -7
- package/dist/bundle/{chunk-I2D4ZZOD.js → chunk-PPM7UTCT.js} +19 -16
- package/dist/bundle/{chunk-APLV37JA.js → chunk-PX4IMYVB.js} +2 -2
- package/dist/bundle/{chunk-TN2YUZBF.js → chunk-QBKKTTA3.js} +155 -149
- package/dist/bundle/{chunk-RQJ2RXFO.js → chunk-QEO3XTIE.js} +35 -25
- package/dist/bundle/{chunk-YM6ZATEK.js → chunk-QXQUANWE.js} +4 -4
- package/dist/bundle/{chunk-XCC7R47Z.js → chunk-RABCFGT3.js} +2 -2
- package/dist/bundle/{chunk-UGLNVUFX.js → chunk-RBYVQE3S.js} +4 -4
- package/dist/bundle/{chunk-RJJ4OYNH.js → chunk-RKI4BGWG.js} +2 -2
- package/dist/bundle/{chunk-LN2LWPN2.js → chunk-SEJBS7SI.js} +1 -1
- package/dist/bundle/{chunk-IS6FUZCP.js → chunk-SR5X7YKB.js} +1 -1
- package/dist/bundle/{chunk-4EZKR6Q4.js → chunk-T25PR26L.js} +5 -5
- package/dist/bundle/{chunk-FY2X6U6O.js → chunk-T4FMXDDV.js} +2 -2
- package/dist/bundle/{chunk-UVWNUY3W.js → chunk-TSHUBGN4.js} +2 -2
- package/dist/bundle/{chunk-BKMC4ETU.js → chunk-V3UK6E5B.js} +4 -4
- package/dist/bundle/{chunk-QAGSAOYS.js → chunk-VLK3X53X.js} +2 -2
- package/dist/bundle/{chunk-PMHMKZEJ.js → chunk-VPSQZ2YR.js} +42 -50
- package/dist/bundle/{chunk-WRRGO246.js → chunk-VUPWDCYV.js} +1 -1
- package/dist/bundle/{chunk-TLNZUPGU.js → chunk-W2AC2RAG.js} +13 -13
- package/dist/bundle/{chunk-BOGGQOVO.js → chunk-WQOGHND4.js} +1 -1
- package/dist/bundle/{chunk-KBRIMLVN.js → chunk-WUWF4EXZ.js} +6 -6
- package/dist/bundle/{chunk-UXSTXFZQ.js → chunk-XCJGDPMN.js} +383 -367
- package/dist/bundle/{chunk-KYL5FYOW.js → chunk-XUHQ7DVT.js} +1 -1
- package/dist/bundle/{chunk-7NE3LB7A.js → chunk-Y5J5CAG2.js} +1 -1
- package/dist/bundle/{chunk-3TYNBHBK.js → chunk-ZBYKCVSV.js} +1 -1
- package/dist/bundle/{chunk-KCPRTZBZ.js → chunk-ZVVRRMLW.js} +98 -6
- package/dist/bundle/{cli-5ALOQCAC.js → cli-NPRYCWFH.js} +64 -56
- package/dist/bundle/{command-contract-WO5QJVLZ.js → command-contract-OJYRKQHR.js} +17 -17
- package/dist/bundle/{command-server-entry-ICOMIJIH.js → command-server-entry-BV4SUPUI.js} +24 -24
- package/dist/bundle/config-UMEV24OE.js +97 -0
- package/dist/bundle/{decode-7LFOROWF.js → decode-PRMKCHHC.js} +2 -2
- package/dist/bundle/{dist-KJOOYNCP.js → dist-HGLDGKUW.js} +18 -14
- package/dist/bundle/{echarts-EJXBKCJT.js → echarts-QIXLXS3G.js} +2 -2
- package/dist/bundle/{embed-TOZCKRRO.js → embed-OZN2BIJY.js} +3 -3
- package/dist/bundle/{embedder-QKEKUCS5.js → embedder-RBDHO6Z6.js} +6 -6
- package/dist/bundle/{first-run-S7CQVGK6.js → first-run-HNCD7U3B.js} +6 -6
- package/dist/bundle/first-screen-374BBMO6.js +39 -0
- package/dist/bundle/{instructions-Z7GVGWXS.js → instructions-MD2RZT5Z.js} +1 -1
- package/dist/bundle/{main-RL3GC4OX.js → main-FPMCCRIQ.js} +15 -15
- package/dist/bundle/{meetings-JCMLE5AO.js → meetings-WYCVHAIP.js} +17 -1
- package/dist/bundle/{node-L2PVEW3N.js → node-IEVT2FSJ.js} +2 -2
- package/dist/bundle/{node-sqlite-4YW3W4XI.js → node-sqlite-O4C6IWSM.js} +4 -4
- package/dist/bundle/{oauth-NNHWAT6A.js → oauth-6VXOUXSE.js} +4 -4
- package/dist/bundle/{open-PF2JHJIY.js → open-AMUIWV3Y.js} +2 -2
- package/dist/bundle/{openai-C72ADYMD.js → openai-MEDN6FSK.js} +10 -10
- package/dist/bundle/{process-MNZTQ2DA.js → process-6Q23D3TO.js} +1 -1
- package/dist/bundle/{program-FOCBZZZS.js → program-CF2NKA2A.js} +70 -69
- package/dist/bundle/{prompt-RBSUKMV7.js → prompt-N3UZE4ZR.js} +2 -2
- package/dist/bundle/{recognize-RM6TQKK3.js → recognize-I5F3K3CZ.js} +1 -1
- package/dist/bundle/{remote-UKHTU3YR.js → remote-CJF5KMMY.js} +6 -6
- package/dist/bundle/{rerank-3LBRVESU.js → rerank-6WLY6MKY.js} +4 -4
- package/dist/bundle/{run-log-UXINNGKA.js → run-log-FKF4ZX4M.js} +55 -55
- package/dist/bundle/{serve-OOZFTW3W.js → serve-FOQJ3WMX.js} +6 -6
- package/dist/bundle/server-BAGY5HEZ.js +74 -0
- package/dist/bundle/{server-YNQPNIJD.js → server-OEEGRSQD.js} +47 -45
- package/dist/bundle/{services-SLEOMN4B.js → services-Q6SFESMS.js} +31 -31
- package/dist/bundle/{speech-FZZ6QVGU.js → speech-PBVEIG4N.js} +12 -12
- package/dist/bundle/{sqlite-runtime-WUR4PWYB.js → sqlite-runtime-IWR65V6I.js} +3 -3
- package/dist/bundle/{state-ET36L4TY.js → state-G54C2N6U.js} +3 -3
- package/dist/bundle/{store-SQB2DOVJ.js → store-7EWMPTTW.js} +16 -16
- package/dist/bundle/{store-DI6OUBXA.js → store-D5OLXIFW.js} +14 -14
- package/dist/bundle/store-connection-34747SCC.js +90 -0
- package/dist/bundle/store-maintenance-command-QBO67F7Z.js +65 -0
- package/dist/bundle/{tokens-SUHRRQ25.js → tokens-J7TFHLEG.js} +4 -4
- package/dist/bundle/zm.js +2 -2
- package/dist/bundle/{zoom-app-GE4SSHOP.js → zoom-app-SULPMVN4.js} +2 -2
- package/dist/recording-schedule-commands.d.ts.map +1 -1
- package/dist/recording-schedule-commands.js +2 -2
- package/dist/recording-schedule-commands.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +2 -2
- package/dist/bundle/chunk-IJONJTST.js +0 -76
- package/dist/bundle/config-YQA5TJ7Y.js +0 -97
- package/dist/bundle/first-screen-6GW6FD6S.js +0 -39
- package/dist/bundle/server-DM5ZPFZB.js +0 -75
- package/dist/bundle/store-connection-M6LVRAZ5.js +0 -90
- package/dist/bundle/store-maintenance-command-B66KWG6K.js +0 -65
|
@@ -2,7 +2,7 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
withTimeLimit
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-Y5J5CAG2.js";
|
|
6
6
|
import {
|
|
7
7
|
acquireLock,
|
|
8
8
|
openOrdinaryFile,
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
sameOrdinaryFile,
|
|
12
12
|
syncDirectory,
|
|
13
13
|
writeFileAtomic
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-W2AC2RAG.js";
|
|
15
15
|
import {
|
|
16
16
|
isNewer,
|
|
17
17
|
updateCommand
|
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
someUndone,
|
|
30
30
|
validateFormattedText,
|
|
31
31
|
visibleFormattedText
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-WUWF4EXZ.js";
|
|
33
33
|
import {
|
|
34
34
|
EmptyAnswer,
|
|
35
35
|
MAX_MODEL_IMAGE_BYTES,
|
|
@@ -38,7 +38,7 @@ import {
|
|
|
38
38
|
range,
|
|
39
39
|
systemFor,
|
|
40
40
|
validateImages
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-532H3KT3.js";
|
|
42
42
|
import {
|
|
43
43
|
OPENAI_URL,
|
|
44
44
|
localOnly,
|
|
@@ -46,7 +46,7 @@ import {
|
|
|
46
46
|
refuseOffComputer,
|
|
47
47
|
remoteKey,
|
|
48
48
|
remoteModel
|
|
49
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-JTYWSXJG.js";
|
|
50
50
|
import {
|
|
51
51
|
Unzip,
|
|
52
52
|
UnzipInflate,
|
|
@@ -57,7 +57,7 @@ import {
|
|
|
57
57
|
placedText,
|
|
58
58
|
runEmbedders,
|
|
59
59
|
textModelsDirectory
|
|
60
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-NE4GYKQA.js";
|
|
61
61
|
import {
|
|
62
62
|
Command,
|
|
63
63
|
CustomTextModelShape,
|
|
@@ -96,31 +96,33 @@ import {
|
|
|
96
96
|
textModels,
|
|
97
97
|
vectorModelKey,
|
|
98
98
|
writeTextModelsSection
|
|
99
|
-
} from "./chunk-
|
|
99
|
+
} from "./chunk-QBKKTTA3.js";
|
|
100
100
|
import {
|
|
101
101
|
MESSENGER_CHANGE_REFUSAL,
|
|
102
102
|
ancestorValue,
|
|
103
103
|
envName,
|
|
104
104
|
readOnlyLockOf,
|
|
105
105
|
readOnlyRefusal
|
|
106
|
-
} from "./chunk-
|
|
106
|
+
} from "./chunk-ZBYKCVSV.js";
|
|
107
107
|
import {
|
|
108
108
|
CEILING_KEY,
|
|
109
|
+
STORE_ONLY_KEYS,
|
|
109
110
|
keyForWrite,
|
|
110
111
|
levelFor,
|
|
111
|
-
skipFlagFor
|
|
112
|
-
|
|
112
|
+
skipFlagFor,
|
|
113
|
+
stops
|
|
114
|
+
} from "./chunk-P6MQ6FS4.js";
|
|
113
115
|
import {
|
|
114
116
|
PLAIN_HTTP_REFUSED,
|
|
115
117
|
endpoint,
|
|
116
118
|
endpointFetch,
|
|
117
119
|
modelAddressAllowed,
|
|
118
120
|
onThisComputer
|
|
119
|
-
} from "./chunk-
|
|
121
|
+
} from "./chunk-SR5X7YKB.js";
|
|
120
122
|
import {
|
|
121
123
|
installFiles,
|
|
122
124
|
megabytes
|
|
123
|
-
} from "./chunk-
|
|
125
|
+
} from "./chunk-FBYGBR4Q.js";
|
|
124
126
|
import {
|
|
125
127
|
AGENDA_COLUMNS,
|
|
126
128
|
BUSINESS_FIND_MAX,
|
|
@@ -190,11 +192,11 @@ import {
|
|
|
190
192
|
validateFields,
|
|
191
193
|
waitingPointer,
|
|
192
194
|
withoutField
|
|
193
|
-
} from "./chunk-
|
|
195
|
+
} from "./chunk-XCJGDPMN.js";
|
|
194
196
|
import {
|
|
195
197
|
DEFAULT_STEMMERS,
|
|
196
198
|
createStemmer
|
|
197
|
-
} from "./chunk-
|
|
199
|
+
} from "./chunk-PCJRHC5Y.js";
|
|
198
200
|
import {
|
|
199
201
|
COUNTER_FIELDS,
|
|
200
202
|
MESSAGE_PARSING,
|
|
@@ -224,11 +226,11 @@ import {
|
|
|
224
226
|
rankingQuestion,
|
|
225
227
|
recordErrors,
|
|
226
228
|
searchError
|
|
227
|
-
} from "./chunk-
|
|
229
|
+
} from "./chunk-K5E5MB4C.js";
|
|
228
230
|
import {
|
|
229
231
|
fold,
|
|
230
232
|
normalize
|
|
231
|
-
} from "./chunk-
|
|
233
|
+
} from "./chunk-4YNUQGDP.js";
|
|
232
234
|
import {
|
|
233
235
|
CATEGORIES,
|
|
234
236
|
LOG_ATTRIBUTES,
|
|
@@ -255,11 +257,11 @@ import {
|
|
|
255
257
|
sourceOf3 as sourceOf2,
|
|
256
258
|
typedCommand,
|
|
257
259
|
withAttempt
|
|
258
|
-
} from "./chunk-
|
|
260
|
+
} from "./chunk-IO3BQ6JU.js";
|
|
259
261
|
import {
|
|
260
262
|
isCliFailure,
|
|
261
263
|
sqliteCode
|
|
262
|
-
} from "./chunk-
|
|
264
|
+
} from "./chunk-3YKAFLXY.js";
|
|
263
265
|
import {
|
|
264
266
|
DEAL_KINDS,
|
|
265
267
|
INTERNAL_NOTES,
|
|
@@ -283,19 +285,20 @@ import {
|
|
|
283
285
|
providerLabel,
|
|
284
286
|
providerNamed,
|
|
285
287
|
scaleOf
|
|
286
|
-
} from "./chunk-
|
|
288
|
+
} from "./chunk-IMDTC4MD.js";
|
|
287
289
|
import {
|
|
288
290
|
DEFAULT_TASK_CATEGORIES,
|
|
289
291
|
FALLBACK_CATEGORY,
|
|
290
292
|
readSharedSection,
|
|
291
293
|
sharedConfigPath,
|
|
292
294
|
writeSharedSection
|
|
293
|
-
} from "./chunk-
|
|
295
|
+
} from "./chunk-L5UILROP.js";
|
|
294
296
|
import {
|
|
295
297
|
storePath,
|
|
296
298
|
wirecatDirectory
|
|
297
|
-
} from "./chunk-
|
|
299
|
+
} from "./chunk-A3Q3PG54.js";
|
|
298
300
|
import {
|
|
301
|
+
BACKENDS,
|
|
299
302
|
EVENT_QUERY,
|
|
300
303
|
MEETING_FIELD_NAMES,
|
|
301
304
|
MEETING_FINDINGS_KIND,
|
|
@@ -315,28 +318,32 @@ import {
|
|
|
315
318
|
liftMeetingFields,
|
|
316
319
|
listed,
|
|
317
320
|
meetingCueFingerprint,
|
|
318
|
-
|
|
321
|
+
meetingDetailsBody,
|
|
319
322
|
meetingHitContextLimits,
|
|
320
323
|
meetingHitsList,
|
|
321
324
|
meetingPeople,
|
|
325
|
+
meetingShowThrough,
|
|
322
326
|
meetingSummaryAnswer,
|
|
323
327
|
meetingTranscriptAnswer,
|
|
324
328
|
meetingWordsQuery,
|
|
325
|
-
|
|
329
|
+
meetingsListThrough,
|
|
326
330
|
meetingsQuery,
|
|
327
331
|
parseMeetingQuery,
|
|
328
332
|
parseMeetingReference,
|
|
329
333
|
paymentTitle,
|
|
330
334
|
prepareMeetingProjectEvidence,
|
|
331
335
|
pull,
|
|
336
|
+
rangeOf,
|
|
332
337
|
readMeetingProjectEvidence,
|
|
338
|
+
serviceCallsOf,
|
|
333
339
|
snapshotMeetingScope,
|
|
334
340
|
strongRecordingValidator,
|
|
335
341
|
validateMeetingContextChange,
|
|
336
342
|
validateMeetingHitSearch,
|
|
337
343
|
validateMeetingPassage,
|
|
338
|
-
validateMeetingSeriesHistory
|
|
339
|
-
|
|
344
|
+
validateMeetingSeriesHistory,
|
|
345
|
+
windowOf
|
|
346
|
+
} from "./chunk-3YRPDNWK.js";
|
|
340
347
|
import {
|
|
341
348
|
OPERATORS_BY_TYPE,
|
|
342
349
|
QUERY_LIMITS,
|
|
@@ -17016,7 +17023,7 @@ var require_lib3 = __commonJS({
|
|
|
17016
17023
|
}
|
|
17017
17024
|
});
|
|
17018
17025
|
|
|
17019
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17026
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/deps.js
|
|
17020
17027
|
var accountStore = /* @__PURE__ */ __name(async (deps) => (await deps.store()).forAccount(await deps.account()), "accountStore");
|
|
17021
17028
|
var crossAccount = /* @__PURE__ */ __name((deps, _reason) => deps.store(), "crossAccount");
|
|
17022
17029
|
var NO_LOCAL_STORE = "this answer comes from the messenger, not from the local store";
|
|
@@ -17091,7 +17098,7 @@ var storeOnlyDeps = /* @__PURE__ */ __name((store, account2, { app, env }) => {
|
|
|
17091
17098
|
return { ...storedDeps(messenger, store, account2, guard), ...env === void 0 ? {} : { env } };
|
|
17092
17099
|
}, "storeOnlyDeps");
|
|
17093
17100
|
|
|
17094
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17101
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/botcheck/check.js
|
|
17095
17102
|
var DAY_MS = 864e5;
|
|
17096
17103
|
var NEW_DAYS = 30;
|
|
17097
17104
|
var SAME_TEXT_MIN = 20;
|
|
@@ -17168,7 +17175,7 @@ var scorePerson = /* @__PURE__ */ __name(({ subject, provider, activity, photos,
|
|
|
17168
17175
|
};
|
|
17169
17176
|
}, "scorePerson");
|
|
17170
17177
|
|
|
17171
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17178
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/botcheck/registries.js
|
|
17172
17179
|
var REGISTRIES = {
|
|
17173
17180
|
cas: { title: "Combot Anti-Spam (CAS)", docs: "https://cas.chat/api" },
|
|
17174
17181
|
lols: { title: "lols.bot", docs: "https://api.lols.bot/lols-bot.json" }
|
|
@@ -17255,7 +17262,7 @@ var notCovered = /* @__PURE__ */ __name((messenger, now = /* @__PURE__ */ new Da
|
|
|
17255
17262
|
detail: `lists Telegram accounts only, not ${messenger} ones`
|
|
17256
17263
|
})), "notCovered");
|
|
17257
17264
|
|
|
17258
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17265
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/botcheck/service.js
|
|
17259
17266
|
var ACTIVITY_MESSAGES = 1e3;
|
|
17260
17267
|
var botCheckService = /* @__PURE__ */ __name((deps) => {
|
|
17261
17268
|
const subjectOf = /* @__PURE__ */ __name(async (reference) => {
|
|
@@ -17343,7 +17350,7 @@ var botCheckService = /* @__PURE__ */ __name((deps) => {
|
|
|
17343
17350
|
};
|
|
17344
17351
|
}, "botCheckService");
|
|
17345
17352
|
|
|
17346
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17353
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/mail/owed.js
|
|
17347
17354
|
var mailTurn = /* @__PURE__ */ __name((newest) => {
|
|
17348
17355
|
if (newest === null)
|
|
17349
17356
|
return null;
|
|
@@ -17352,7 +17359,7 @@ var mailTurn = /* @__PURE__ */ __name((newest) => {
|
|
|
17352
17359
|
return newest.addressed ? "owed" : null;
|
|
17353
17360
|
}, "mailTurn");
|
|
17354
17361
|
|
|
17355
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17362
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/agenda-mail.js
|
|
17356
17363
|
var absent = /* @__PURE__ */ __name((error) => {
|
|
17357
17364
|
if (error instanceof CliError && error.code === "not_found")
|
|
17358
17365
|
return void 0;
|
|
@@ -17410,7 +17417,7 @@ var mailActivity = /* @__PURE__ */ __name(async (store, account2, since, chats)
|
|
|
17410
17417
|
};
|
|
17411
17418
|
}, "mailActivity");
|
|
17412
17419
|
|
|
17413
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17420
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/chat-coverage.js
|
|
17414
17421
|
var chatCoverage = /* @__PURE__ */ __name(async (store, account2, chatIds) => {
|
|
17415
17422
|
const ids = [...new Set(chatIds)];
|
|
17416
17423
|
if (ids.length === 0)
|
|
@@ -17436,7 +17443,7 @@ var chatCoverage = /* @__PURE__ */ __name(async (store, account2, chatIds) => {
|
|
|
17436
17443
|
}));
|
|
17437
17444
|
}, "chatCoverage");
|
|
17438
17445
|
|
|
17439
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17446
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/domain/thread.js
|
|
17440
17447
|
var threadIdOf = /* @__PURE__ */ __name((value) => {
|
|
17441
17448
|
if (value === void 0)
|
|
17442
17449
|
return void 0;
|
|
@@ -17446,7 +17453,7 @@ var threadIdOf = /* @__PURE__ */ __name((value) => {
|
|
|
17446
17453
|
return id2;
|
|
17447
17454
|
}, "threadIdOf");
|
|
17448
17455
|
|
|
17449
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17456
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/ports/messenger.js
|
|
17450
17457
|
var throughWrapper = /* @__PURE__ */ __name((inner, handled, wrap = (_, call) => call) => new Proxy(handled, {
|
|
17451
17458
|
get: /* @__PURE__ */ __name((own, key) => {
|
|
17452
17459
|
if (key in own)
|
|
@@ -17463,15 +17470,15 @@ var capability = /* @__PURE__ */ __name((adapter, method, what) => {
|
|
|
17463
17470
|
return found.bind(adapter);
|
|
17464
17471
|
}, "capability");
|
|
17465
17472
|
|
|
17466
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17473
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/ports/traits.js
|
|
17467
17474
|
var syncsOneChat = /* @__PURE__ */ __name((messenger) => messenger.history !== "store" || messenger.historyOnDemand === true, "syncsOneChat");
|
|
17468
17475
|
|
|
17469
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17476
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/sends/send-id.js
|
|
17470
17477
|
import { randomBytes } from "node:crypto";
|
|
17471
17478
|
var newSendId = /* @__PURE__ */ __name(() => randomBytes(8).readBigInt64BE().toString(), "newSendId");
|
|
17472
17479
|
var newOperationId = newSendId;
|
|
17473
17480
|
|
|
17474
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17481
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/questions.js
|
|
17475
17482
|
var LINKS = /https?:\/\/\S+/g;
|
|
17476
17483
|
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");
|
|
17477
17484
|
var questions = /* @__PURE__ */ __name((messages, { answerers: answerers2, asker = "others" }) => {
|
|
@@ -17501,7 +17508,7 @@ var questions = /* @__PURE__ */ __name((messages, { answerers: answerers2, asker
|
|
|
17501
17508
|
});
|
|
17502
17509
|
}, "questions");
|
|
17503
17510
|
|
|
17504
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17511
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/chat-stats.js
|
|
17505
17512
|
var TOP_POSTS = 5;
|
|
17506
17513
|
var JOINS = /* @__PURE__ */ new Set(["join", "add"]);
|
|
17507
17514
|
var LEAVES = /* @__PURE__ */ new Set(["leave", "remove"]);
|
|
@@ -17618,7 +17625,7 @@ var median = /* @__PURE__ */ __name((values) => {
|
|
|
17618
17625
|
return Math.round(sorted.length % 2 === 0 ? ((sorted[middle - 1] ?? upper) + upper) / 2 : upper);
|
|
17619
17626
|
}, "median");
|
|
17620
17627
|
|
|
17621
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17628
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/member-history.js
|
|
17622
17629
|
var memberEvents = /* @__PURE__ */ __name((stays, revisions, since = 0) => {
|
|
17623
17630
|
const events = [];
|
|
17624
17631
|
for (const stay of stays) {
|
|
@@ -17650,7 +17657,7 @@ var memberEvents = /* @__PURE__ */ __name((stays, revisions, since = 0) => {
|
|
|
17650
17657
|
return events.filter(({ at }) => Date.parse(at) >= since).sort((a, b) => Date.parse(a.at) - Date.parse(b.at) || a.id.localeCompare(b.id));
|
|
17651
17658
|
}, "memberEvents");
|
|
17652
17659
|
|
|
17653
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17660
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/members-audit.js
|
|
17654
17661
|
var AUDIT_PAGE = 200;
|
|
17655
17662
|
var AUDIT_BUDGET = 10;
|
|
17656
17663
|
var AUDIT_PAUSE_MS = 1e3;
|
|
@@ -17730,7 +17737,7 @@ var burstJoins = /* @__PURE__ */ __name((members) => {
|
|
|
17730
17737
|
return found;
|
|
17731
17738
|
}, "burstJoins");
|
|
17732
17739
|
|
|
17733
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17740
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/search/groups.js
|
|
17734
17741
|
var ALL = "all";
|
|
17735
17742
|
var OWNER_NOTES = { provider: "notes", account: INTERNAL_NOTES };
|
|
17736
17743
|
var NOT_GROUP_NAMES = /* @__PURE__ */ new Set([ALL, "bots"]);
|
|
@@ -17865,7 +17872,7 @@ var scopeToGroup = /* @__PURE__ */ __name((run2, request, context2) => {
|
|
|
17865
17872
|
return scoped;
|
|
17866
17873
|
}, "scopeToGroup");
|
|
17867
17874
|
|
|
17868
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17875
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/search-kind.js
|
|
17869
17876
|
var NO_MAIL = "no_mail";
|
|
17870
17877
|
var MAIL = "email";
|
|
17871
17878
|
var groupLockOf = /* @__PURE__ */ __name((app, env) => {
|
|
@@ -17939,7 +17946,7 @@ var accountsOfKind = /* @__PURE__ */ __name((kind, chosen, held, explicit, comma
|
|
|
17939
17946
|
return chosenMail.map(({ provider, account: account2 }) => ({ provider, account: account2 }));
|
|
17940
17947
|
}, "accountsOfKind");
|
|
17941
17948
|
|
|
17942
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17949
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/message-resolution.js
|
|
17943
17950
|
var readChatId = /* @__PURE__ */ __name(async (deps, reference, store, account2) => {
|
|
17944
17951
|
if (deps.reads !== "store")
|
|
17945
17952
|
return keptChatId(deps.messenger, reference, store, account2);
|
|
@@ -18053,12 +18060,14 @@ var chatAmong = /* @__PURE__ */ __name(async (messenger, store, accounts, refere
|
|
|
18053
18060
|
const [only] = accounts;
|
|
18054
18061
|
if (accounts.length === 1 && only)
|
|
18055
18062
|
return { account: only, chatId: await storedChatId(messenger, reference, store, only, { includeLeft: true }) };
|
|
18056
|
-
const
|
|
18057
|
-
const held = (await store.chats.chats(account2, {})).items;
|
|
18058
|
-
const chatId = await storedChatId(messenger, reference, store, account2).catch(missing);
|
|
18063
|
+
const among = /* @__PURE__ */ __name(async (includeLeft) => (await Promise.all(accounts.map(async (account2) => {
|
|
18064
|
+
const held = (await store.chats.chats(account2, includeLeft ? { includeLeft } : {})).items;
|
|
18065
|
+
const chatId = await storedChatId(messenger, reference, store, account2, { includeLeft }).catch(missing);
|
|
18059
18066
|
const chat = held.find((one3) => one3.id === chatId);
|
|
18060
18067
|
return chat ? [{ account: account2, chat }] : [];
|
|
18061
|
-
}))).flat();
|
|
18068
|
+
}))).flat(), "among");
|
|
18069
|
+
const current = await among(false);
|
|
18070
|
+
const found = current.length > 0 ? current : await among(true);
|
|
18062
18071
|
const [one2] = found;
|
|
18063
18072
|
if (found.length === 1 && one2)
|
|
18064
18073
|
return { account: one2.account, chatId: one2.chat.id };
|
|
@@ -18138,7 +18147,7 @@ var chatsMatchingIn = /* @__PURE__ */ __name(async (store, accounts, pattern) =>
|
|
|
18138
18147
|
}, "chatsMatchingIn");
|
|
18139
18148
|
var isText = /* @__PURE__ */ __name((value) => typeof value === "string" && value !== "", "isText");
|
|
18140
18149
|
|
|
18141
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18150
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/chats.js
|
|
18142
18151
|
var EVENTS_DAYS = 7;
|
|
18143
18152
|
var TRACKED_DAYS = 30;
|
|
18144
18153
|
var STATS_PAGE = 1e3;
|
|
@@ -18433,7 +18442,7 @@ var storedMembers = /* @__PURE__ */ __name(async (store, chatId) => {
|
|
|
18433
18442
|
return members.length === 0 ? null : members;
|
|
18434
18443
|
}, "storedMembers");
|
|
18435
18444
|
|
|
18436
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18445
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/task-categories.js
|
|
18437
18446
|
var names = /* @__PURE__ */ __name((categories) => categories.map(({ name }) => name).join(", "), "names");
|
|
18438
18447
|
var taskCategoryOf = /* @__PURE__ */ __name((categories = DEFAULT_TASK_CATEGORIES, flag = "--category") => (typed) => {
|
|
18439
18448
|
const name = typed.trim().toLowerCase();
|
|
@@ -18490,7 +18499,7 @@ var categorize = /* @__PURE__ */ __name((text2, categories = DEFAULT_TASK_CATEGO
|
|
|
18490
18499
|
return best.name;
|
|
18491
18500
|
}, "categorize");
|
|
18492
18501
|
|
|
18493
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18502
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/task-rules.js
|
|
18494
18503
|
var taskAccount = /* @__PURE__ */ __name(({ provider, account: account2 }) => `${provider}:${account2}`, "taskAccount");
|
|
18495
18504
|
var RULES_IN = {
|
|
18496
18505
|
dialog: "all",
|
|
@@ -18696,7 +18705,7 @@ var applyTaskRulesToChats = /* @__PURE__ */ __name(async (store, account2, chatI
|
|
|
18696
18705
|
return passes;
|
|
18697
18706
|
}, "applyTaskRulesToChats");
|
|
18698
18707
|
|
|
18699
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18708
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/task-tag-filters.js
|
|
18700
18709
|
var taskTagFilters = /* @__PURE__ */ __name(async (store, query) => {
|
|
18701
18710
|
const tags = /* @__PURE__ */ new Map();
|
|
18702
18711
|
for (const node of query ? walkQuery(query.root) : [])
|
|
@@ -18705,7 +18714,7 @@ var taskTagFilters = /* @__PURE__ */ __name(async (store, query) => {
|
|
|
18705
18714
|
return tags;
|
|
18706
18715
|
}, "taskTagFilters");
|
|
18707
18716
|
|
|
18708
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18717
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/agenda.js
|
|
18709
18718
|
var DAY = 864e5;
|
|
18710
18719
|
var AGENDA_DEFAULTS = { unanswered: DAY, waiting: 7 * DAY };
|
|
18711
18720
|
var CLAIMS = ["none", "mine", "others", "any"];
|
|
@@ -18959,7 +18968,7 @@ var agendaItem = /* @__PURE__ */ __name((shown) => {
|
|
|
18959
18968
|
};
|
|
18960
18969
|
}, "agendaItem");
|
|
18961
18970
|
|
|
18962
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18971
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/context/evidence-response.js
|
|
18963
18972
|
var contextSourceKey = /* @__PURE__ */ __name((source) => JSON.stringify([source.kind, source.accountId, source.provider, source.account]), "contextSourceKey");
|
|
18964
18973
|
var validateContextEvidencePage = /* @__PURE__ */ __name((page, request) => {
|
|
18965
18974
|
const fail5 = /* @__PURE__ */ __name(() => {
|
|
@@ -19023,7 +19032,7 @@ var validateContextEvidencePage = /* @__PURE__ */ __name((page, request) => {
|
|
|
19023
19032
|
}
|
|
19024
19033
|
}, "validateContextEvidencePage");
|
|
19025
19034
|
|
|
19026
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19035
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/context/read-budget.js
|
|
19027
19036
|
var contextReadBudget = /* @__PURE__ */ __name((limits = {}) => {
|
|
19028
19037
|
if (!limits || typeof limits !== "object" || Array.isArray(limits))
|
|
19029
19038
|
throw new CliError("validation_error", "limits needs a context read allowance");
|
|
@@ -19076,7 +19085,7 @@ var contextReadBudget = /* @__PURE__ */ __name((limits = {}) => {
|
|
|
19076
19085
|
};
|
|
19077
19086
|
}, "contextReadBudget");
|
|
19078
19087
|
|
|
19079
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19088
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/context-evidence.js
|
|
19080
19089
|
var createContextEvidenceReader = /* @__PURE__ */ __name((port, allowed, limits) => {
|
|
19081
19090
|
if (!port || typeof port.read !== "function")
|
|
19082
19091
|
throw new CliError("configuration_error", "context evidence reader is unavailable");
|
|
@@ -19120,7 +19129,7 @@ var createContextEvidenceReader = /* @__PURE__ */ __name((port, allowed, limits)
|
|
|
19120
19129
|
};
|
|
19121
19130
|
}, "createContextEvidenceReader");
|
|
19122
19131
|
|
|
19123
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19132
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/excerpt.js
|
|
19124
19133
|
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");
|
|
19125
19134
|
var excerpt = /* @__PURE__ */ __name((text2, query, size4 = 240, options2 = {}) => {
|
|
19126
19135
|
const flat = text2.replace(/\s+/g, " ").trim();
|
|
@@ -19136,7 +19145,7 @@ var excerpt = /* @__PURE__ */ __name((text2, query, size4 = 240, options2 = {})
|
|
|
19136
19145
|
}, "excerpt");
|
|
19137
19146
|
var withExcerpt = /* @__PURE__ */ __name(({ matchedText, ...hit }, query) => ({ ...hit, excerpt: excerpt(matchedText ?? hit.text, query) }), "withExcerpt");
|
|
19138
19147
|
|
|
19139
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19148
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/ingest.js
|
|
19140
19149
|
import { createInterface } from "node:readline";
|
|
19141
19150
|
var emptyReceipt = /* @__PURE__ */ __name((dryRun, errors) => ({
|
|
19142
19151
|
dryRun,
|
|
@@ -19237,7 +19246,7 @@ var ingestVcard = /* @__PURE__ */ __name(async (store, text2, { provider, batchI
|
|
|
19237
19246
|
return { ...await ingest(store, envelope, options2), vcard: issues };
|
|
19238
19247
|
}, "ingestVcard");
|
|
19239
19248
|
|
|
19240
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19249
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/link-scorers/shared.js
|
|
19241
19250
|
var escaped = /* @__PURE__ */ __name((text2) => text2.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), "escaped");
|
|
19242
19251
|
var folded = /* @__PURE__ */ __name((text2) => text2.normalize("NFKC").toLowerCase().replace(/\s+/gu, " "), "folded");
|
|
19243
19252
|
var wholeWords = /* @__PURE__ */ __name((term) => new RegExp(`(?<![\\p{L}\\p{N}\\p{M}_])${escaped(normalizeVocabularyName(term))}(?![\\p{L}\\p{N}\\p{M}_])`, "u"), "wholeWords");
|
|
@@ -19281,7 +19290,7 @@ var identitiesIn = /* @__PURE__ */ __name(async (store, people, provider) => {
|
|
|
19281
19290
|
var remembered = /* @__PURE__ */ __name((input, key, read) => input.remember ? input.remember(key, read) : read(), "remembered");
|
|
19282
19291
|
var chatsWithOf = /* @__PURE__ */ __name((input, key, id2) => remembered(input, `chats-with\0${key.provider}\0${key.account}\0${id2}`, () => input.store.chats.chatsWith(key, id2)), "chatsWithOf");
|
|
19283
19292
|
|
|
19284
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19293
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/link-scorers/alias-hits.js
|
|
19285
19294
|
var SEARCH_LIMIT = 500;
|
|
19286
19295
|
var aliasWeight = /* @__PURE__ */ __name((hits) => hits >= 10 ? 0.55 : hits >= 3 ? 0.35 : 0, "aliasWeight");
|
|
19287
19296
|
var aliasHits = {
|
|
@@ -19330,7 +19339,7 @@ var aliasHits = {
|
|
|
19330
19339
|
}, "candidates")
|
|
19331
19340
|
};
|
|
19332
19341
|
|
|
19333
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19342
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/link-scorers/chat-senders.js
|
|
19334
19343
|
var WEIGHT = 0.5;
|
|
19335
19344
|
var LARGE_GROUP_WEIGHT = 0.2;
|
|
19336
19345
|
var LARGE_GROUP = 30;
|
|
@@ -19402,7 +19411,7 @@ var sendersOf2 = /* @__PURE__ */ __name(async (input, chat, reference, key) => {
|
|
|
19402
19411
|
return found;
|
|
19403
19412
|
}, "sendersOf");
|
|
19404
19413
|
|
|
19405
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19414
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/link-scorers/chat-title.js
|
|
19406
19415
|
var WEIGHT2 = 0.7;
|
|
19407
19416
|
var chatTitle = {
|
|
19408
19417
|
id: "chat-title",
|
|
@@ -19441,7 +19450,7 @@ var chatTitle = {
|
|
|
19441
19450
|
}, "candidates")
|
|
19442
19451
|
};
|
|
19443
19452
|
|
|
19444
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19453
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/link-scorers/email-domain.js
|
|
19445
19454
|
var WEIGHT3 = 0.3;
|
|
19446
19455
|
var CONTACTS = 500;
|
|
19447
19456
|
var MOST_PAIRS = 200;
|
|
@@ -19502,7 +19511,7 @@ var emailDomain = {
|
|
|
19502
19511
|
}, "candidates")
|
|
19503
19512
|
};
|
|
19504
19513
|
|
|
19505
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19514
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/link-scorers/mail-thread.js
|
|
19506
19515
|
var NAMED = 0.7;
|
|
19507
19516
|
var MEMBER_ONLY = 0.3;
|
|
19508
19517
|
var READ_LIMIT2 = 500;
|
|
@@ -19576,7 +19585,7 @@ var mailThread = {
|
|
|
19576
19585
|
}, "candidates")
|
|
19577
19586
|
};
|
|
19578
19587
|
|
|
19579
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19588
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/link-scorers/member-chats.js
|
|
19580
19589
|
var WEIGHT4 = 0.5;
|
|
19581
19590
|
var memberChats = {
|
|
19582
19591
|
id: "member-chats",
|
|
@@ -19618,7 +19627,7 @@ var memberChats = {
|
|
|
19618
19627
|
}, "candidates")
|
|
19619
19628
|
};
|
|
19620
19629
|
|
|
19621
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19630
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/link-scorers/member-dialog.js
|
|
19622
19631
|
var WEIGHT5 = 0.6;
|
|
19623
19632
|
var memberDialog = {
|
|
19624
19633
|
id: "member-dialog",
|
|
@@ -19651,7 +19660,7 @@ var memberDialog = {
|
|
|
19651
19660
|
}, "candidates")
|
|
19652
19661
|
};
|
|
19653
19662
|
|
|
19654
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19663
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/project-purposes.js
|
|
19655
19664
|
var BUILT_IN_PURPOSES = ["work", "sales", "support", "other"];
|
|
19656
19665
|
var DEFAULT_PURPOSES = ["work"];
|
|
19657
19666
|
var LINK_PURPOSE = "work";
|
|
@@ -19681,7 +19690,7 @@ var purposeList = /* @__PURE__ */ __name((value, previous = []) => [
|
|
|
19681
19690
|
...value.split(",").map((one2) => one2.trim()).filter(Boolean)
|
|
19682
19691
|
], "purposeList");
|
|
19683
19692
|
|
|
19684
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19693
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/project-gathering-around.js
|
|
19685
19694
|
var storedMessageNeighbours = /* @__PURE__ */ __name((messages) => ({
|
|
19686
19695
|
async around(ref2, window2) {
|
|
19687
19696
|
const at = parseLocator(ref2);
|
|
@@ -19777,7 +19786,7 @@ var storedNeighbours = /* @__PURE__ */ __name((store) => {
|
|
|
19777
19786
|
};
|
|
19778
19787
|
}, "storedNeighbours");
|
|
19779
19788
|
|
|
19780
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19789
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/project-gathering-request.js
|
|
19781
19790
|
import { createHash } from "node:crypto";
|
|
19782
19791
|
var DAY2 = 864e5;
|
|
19783
19792
|
var MAX_TIME = 864e13;
|
|
@@ -20093,7 +20102,7 @@ var decodeCheckpoint = /* @__PURE__ */ __name((text2, plan) => {
|
|
|
20093
20102
|
return value;
|
|
20094
20103
|
}, "decodeCheckpoint");
|
|
20095
20104
|
|
|
20096
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20105
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/project-gathering.js
|
|
20097
20106
|
var terminal = /* @__PURE__ */ new Set(["done", "unavailable", "failed"]);
|
|
20098
20107
|
var PAGE = 20;
|
|
20099
20108
|
var PEOPLE = 20;
|
|
@@ -20497,7 +20506,7 @@ var peopleOf = /* @__PURE__ */ __name((items, senderOf) => {
|
|
|
20497
20506
|
return [...byKey.values()].sort((a, b) => b.items - a.items || a.name.localeCompare(b.name));
|
|
20498
20507
|
}, "peopleOf");
|
|
20499
20508
|
|
|
20500
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20509
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/meeting-project-candidate-matching.js
|
|
20501
20510
|
var normalizedText = /* @__PURE__ */ __name((text2) => text2.normalize("NFKC").toLowerCase().replace(/\s+/gu, " "), "normalizedText");
|
|
20502
20511
|
var termsOf = /* @__PURE__ */ __name((entry) => [
|
|
20503
20512
|
{ name: entry.name, kind: "canonical" },
|
|
@@ -20562,7 +20571,7 @@ var matchProjectCandidates = /* @__PURE__ */ __name((catalog, input) => matchVoc
|
|
|
20562
20571
|
omittedMatches: omitted
|
|
20563
20572
|
})), "matchProjectCandidates");
|
|
20564
20573
|
|
|
20565
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20574
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/project-gathering-mentions.js
|
|
20566
20575
|
var KINDS = ["project", "tag", "topic"];
|
|
20567
20576
|
var findEvidenceMentions = /* @__PURE__ */ __name(async (vocabulary, gathering, options2 = {}) => {
|
|
20568
20577
|
if (typeof vocabulary?.vocabulary !== "function")
|
|
@@ -20617,7 +20626,7 @@ var findEvidenceMentions = /* @__PURE__ */ __name(async (vocabulary, gathering,
|
|
|
20617
20626
|
};
|
|
20618
20627
|
}, "findEvidenceMentions");
|
|
20619
20628
|
|
|
20620
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20629
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/stored-project-gathering.js
|
|
20621
20630
|
var storedChatCount = /* @__PURE__ */ __name((store) => async (account2, chatId, { since, until }) => {
|
|
20622
20631
|
const window2 = { since: new Date(since).toISOString(), until: new Date(until - 1).toISOString() };
|
|
20623
20632
|
const [messages, newest, oldest] = await Promise.all([
|
|
@@ -20928,7 +20937,7 @@ var purposeHintOf = /* @__PURE__ */ __name((linked, rows, of) => {
|
|
|
20928
20937
|
return { chat: top.ref, relationship: link4.relationship, items, of };
|
|
20929
20938
|
}, "purposeHintOf");
|
|
20930
20939
|
|
|
20931
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20940
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/link-scorers/scan.js
|
|
20932
20941
|
var SCORERS = [chatTitle, aliasHits, memberChats, memberDialog, chatSenders, mailThread];
|
|
20933
20942
|
var PERSON_SCORERS = [emailDomain];
|
|
20934
20943
|
var SCAN_BOT = { bot: "memo-scan", kind: "rule" };
|
|
@@ -21184,18 +21193,18 @@ var referenceOf = /* @__PURE__ */ __name((text2) => {
|
|
|
21184
21193
|
}, "referenceOf");
|
|
21185
21194
|
var rejectedReversed = /* @__PURE__ */ __name(async (store, candidate) => candidate.kind === "related-to" && candidate.to.startsWith("person:") && ((await store.knowledge.relationState(null, { from: candidate.to, to: candidate.from, kind: candidate.kind }))?.rejected ?? false), "rejectedReversed");
|
|
21186
21195
|
|
|
21187
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21196
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/media-archive.js
|
|
21188
21197
|
import { setTimeout as sleep } from "node:timers/promises";
|
|
21189
21198
|
|
|
21190
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21199
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/media-archive-files.js
|
|
21191
21200
|
import { lstat } from "node:fs/promises";
|
|
21192
21201
|
|
|
21193
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21202
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-store.js
|
|
21194
21203
|
import { createHash as createHash3, randomUUID as randomUUID2 } from "node:crypto";
|
|
21195
21204
|
import { open as open2, rename as rename2, unlink as unlink2 } from "node:fs/promises";
|
|
21196
21205
|
import { join as join2 } from "node:path";
|
|
21197
21206
|
|
|
21198
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21207
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-metadata.js
|
|
21199
21208
|
import { createHash as createHash2 } from "node:crypto";
|
|
21200
21209
|
var metadataLimit = 16384;
|
|
21201
21210
|
var partialIdentity = /* @__PURE__ */ __name((locator) => JSON.stringify([locator.provider, locator.account, locator.occurrenceId, locator.assetId]), "partialIdentity");
|
|
@@ -21255,7 +21264,7 @@ var readPartialMetadata = /* @__PURE__ */ __name(async (path, locator, maxBytes,
|
|
|
21255
21264
|
}
|
|
21256
21265
|
}, "readPartialMetadata");
|
|
21257
21266
|
|
|
21258
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21267
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-writer.js
|
|
21259
21268
|
import { randomUUID } from "node:crypto";
|
|
21260
21269
|
import { open, rename, unlink } from "node:fs/promises";
|
|
21261
21270
|
import { join } from "node:path";
|
|
@@ -21347,7 +21356,7 @@ var partialWriter = /* @__PURE__ */ __name(async (input) => {
|
|
|
21347
21356
|
};
|
|
21348
21357
|
}, "partialWriter");
|
|
21349
21358
|
|
|
21350
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21359
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-store.js
|
|
21351
21360
|
var NativeRecordingPartialStore = class {
|
|
21352
21361
|
static {
|
|
21353
21362
|
__name(this, "NativeRecordingPartialStore");
|
|
@@ -21454,12 +21463,12 @@ var NativeRecordingPartialStore = class {
|
|
|
21454
21463
|
}
|
|
21455
21464
|
};
|
|
21456
21465
|
|
|
21457
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21466
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication.js
|
|
21458
21467
|
import { createHash as createHash4 } from "node:crypto";
|
|
21459
21468
|
import { link } from "node:fs/promises";
|
|
21460
21469
|
import { basename, dirname, join as join4, resolve } from "node:path";
|
|
21461
21470
|
|
|
21462
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21471
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication-files.js
|
|
21463
21472
|
import { unlink as unlink3 } from "node:fs/promises";
|
|
21464
21473
|
var verifiedPublicationFile = /* @__PURE__ */ __name(async (path, expected2, signal, writable = false) => {
|
|
21465
21474
|
signal?.throwIfAborted();
|
|
@@ -21494,7 +21503,7 @@ var commitPublication = /* @__PURE__ */ __name(async (root, partialPath, finalPa
|
|
|
21494
21503
|
signal?.throwIfAborted();
|
|
21495
21504
|
}, "commitPublication");
|
|
21496
21505
|
|
|
21497
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21506
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication-journal.js
|
|
21498
21507
|
import { randomUUID as randomUUID3 } from "node:crypto";
|
|
21499
21508
|
import { open as open3, rename as rename3, unlink as unlink4 } from "node:fs/promises";
|
|
21500
21509
|
import { join as join3 } from "node:path";
|
|
@@ -21567,7 +21576,7 @@ var writePublicationJournal = /* @__PURE__ */ __name(async (root, path, prefix,
|
|
|
21567
21576
|
}
|
|
21568
21577
|
}, "writePublicationJournal");
|
|
21569
21578
|
|
|
21570
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21579
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication.js
|
|
21571
21580
|
var NativeRecordingPublication = class {
|
|
21572
21581
|
static {
|
|
21573
21582
|
__name(this, "NativeRecordingPublication");
|
|
@@ -21640,7 +21649,7 @@ var NativeRecordingPublication = class {
|
|
|
21640
21649
|
}
|
|
21641
21650
|
};
|
|
21642
21651
|
|
|
21643
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21652
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/media-archive-manifest.js
|
|
21644
21653
|
import { createHash as createHash5 } from "node:crypto";
|
|
21645
21654
|
import { readdir } from "node:fs/promises";
|
|
21646
21655
|
import { isAbsolute, join as join5, resolve as resolve2 } from "node:path";
|
|
@@ -21727,7 +21736,7 @@ var commitMediaEntry = /* @__PURE__ */ __name((root, one2, beforePublish) => wri
|
|
|
21727
21736
|
beforePublish
|
|
21728
21737
|
}), "commitMediaEntry");
|
|
21729
21738
|
|
|
21730
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21739
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/media-archive-files.js
|
|
21731
21740
|
var validator = '"media-completed-v1"';
|
|
21732
21741
|
var maximumFileBytes = 64 * 1024 * 1024 * 1024;
|
|
21733
21742
|
var archiveMediaFile = /* @__PURE__ */ __name(async (root, identity, kind, file, beforeWrite, signal, metadata = {}) => {
|
|
@@ -21828,7 +21837,7 @@ var archiveMediaFile = /* @__PURE__ */ __name(async (root, identity, kind, file,
|
|
|
21828
21837
|
return entry;
|
|
21829
21838
|
}, "archiveMediaFile");
|
|
21830
21839
|
|
|
21831
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21840
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/media-archive-locks.js
|
|
21832
21841
|
import { mkdir, realpath } from "node:fs/promises";
|
|
21833
21842
|
import { join as join6, resolve as resolve3 } from "node:path";
|
|
21834
21843
|
var archiveLocations = /* @__PURE__ */ __name(async (initial, signal) => {
|
|
@@ -21895,7 +21904,7 @@ var withMediaArchiveLocks = /* @__PURE__ */ __name(async (directory2, signal, ru
|
|
|
21895
21904
|
throw new CliError("validation_error", "archive locations changed during locking; run the command again");
|
|
21896
21905
|
}, "withMediaArchiveLocks");
|
|
21897
21906
|
|
|
21898
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21907
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/media-archive.js
|
|
21899
21908
|
var validateMediaSince = /* @__PURE__ */ __name((value, flag = "--since-time") => {
|
|
21900
21909
|
if (value === void 0)
|
|
21901
21910
|
return void 0;
|
|
@@ -22048,7 +22057,7 @@ var archiveMedia = /* @__PURE__ */ __name(async (ports, options2) => {
|
|
|
22048
22057
|
}, { create: true });
|
|
22049
22058
|
}, "archiveMedia");
|
|
22050
22059
|
|
|
22051
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22060
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/media-archive-move.js
|
|
22052
22061
|
import { realpath as realpath2, unlink as unlink5 } from "node:fs/promises";
|
|
22053
22062
|
import { basename as basename2, dirname as dirname2, join as join7, resolve as resolve4 } from "node:path";
|
|
22054
22063
|
var canonicalDestination = /* @__PURE__ */ __name(async (directory2) => {
|
|
@@ -22201,7 +22210,7 @@ var moveMediaArchive = /* @__PURE__ */ __name(async (options2) => {
|
|
|
22201
22210
|
}, { additional: [target2], createAdditional: !options2.dryRun });
|
|
22202
22211
|
}, "moveMediaArchive");
|
|
22203
22212
|
|
|
22204
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22213
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/model-downloads.js
|
|
22205
22214
|
import { writeFileSync } from "node:fs";
|
|
22206
22215
|
import { join as join8 } from "node:path";
|
|
22207
22216
|
var bytesOf = /* @__PURE__ */ __name((model) => model.files.reduce((sum2, file) => sum2 + file.bytes, 0), "bytesOf");
|
|
@@ -22226,7 +22235,7 @@ var downloadTextModel = /* @__PURE__ */ __name(async (id2, { env, progress = /*
|
|
|
22226
22235
|
`);
|
|
22227
22236
|
await nativeRuntime({ env, progress });
|
|
22228
22237
|
progress(`${model.id}: loading it once to check it works`);
|
|
22229
|
-
const { openEmbedder: openEmbedder2 } = await import("./embed-
|
|
22238
|
+
const { openEmbedder: openEmbedder2 } = await import("./embed-OZN2BIJY.js");
|
|
22230
22239
|
const embedder = await openEmbedder2(model, directory2);
|
|
22231
22240
|
try {
|
|
22232
22241
|
const [vector] = await embedder.embed(["check"], "query");
|
|
@@ -22247,7 +22256,7 @@ var downloadRerankModel = /* @__PURE__ */ __name(async (id2, { env, progress = /
|
|
|
22247
22256
|
}
|
|
22248
22257
|
await nativeRuntime({ env, progress });
|
|
22249
22258
|
progress(`${model.id}: loading it once to check it works`);
|
|
22250
|
-
const { openReranker } = await import("./rerank-
|
|
22259
|
+
const { openReranker } = await import("./rerank-6WLY6MKY.js");
|
|
22251
22260
|
const reranker = await openReranker(model, directory2);
|
|
22252
22261
|
try {
|
|
22253
22262
|
await reranker.score("check", ["check"]);
|
|
@@ -22265,7 +22274,7 @@ var downloadImageModel = /* @__PURE__ */ __name(async (id2, { env, progress = /*
|
|
|
22265
22274
|
await installFiles(placedImage(model, directory2), { progress, ...bytes2 ? { bytes: bytes2 } : {} });
|
|
22266
22275
|
}
|
|
22267
22276
|
progress(`${model.id}: loading it once to check it works`);
|
|
22268
|
-
const { openPictureEmbedder } = await import("./embedder-
|
|
22277
|
+
const { openPictureEmbedder } = await import("./embedder-RBDHO6Z6.js");
|
|
22269
22278
|
const embedder = await openPictureEmbedder(model, directory2);
|
|
22270
22279
|
try {
|
|
22271
22280
|
const vector = await embedder.embedQuery("check");
|
|
@@ -22277,7 +22286,7 @@ var downloadImageModel = /* @__PURE__ */ __name(async (id2, { env, progress = /*
|
|
|
22277
22286
|
return { model, directory: directory2 };
|
|
22278
22287
|
}, "downloadImageModel");
|
|
22279
22288
|
|
|
22280
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22289
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/domain/money-words.js
|
|
22281
22290
|
var MONEY_REQUEST = "money-request";
|
|
22282
22291
|
var MONEY_DONE = "money-done";
|
|
22283
22292
|
var PROMISE = "promise";
|
|
@@ -22311,10 +22320,10 @@ var MONEY_WORDS = [
|
|
|
22311
22320
|
}
|
|
22312
22321
|
];
|
|
22313
22322
|
|
|
22314
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22323
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/money-words.js
|
|
22315
22324
|
var moneyClassesOf = /* @__PURE__ */ __name((text2) => listsHit(text2, MONEY_WORDS), "moneyClassesOf");
|
|
22316
22325
|
|
|
22317
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22326
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/domain/status-words.js
|
|
22318
22327
|
var words = /* @__PURE__ */ __name((forms) => new RegExp(`(?<![\\p{L}\\p{N}])(?:${forms.join("|")})(?![\\p{L}\\p{N}])`, "iu"), "words");
|
|
22319
22328
|
var MONEY_DONE_FORMS = words([
|
|
22320
22329
|
"\u043E\u043F\u043B\u0430\u0442\u0438\u043B[\u0430\u0438]?",
|
|
@@ -22354,7 +22363,7 @@ var PROMISE_FORMS = words([
|
|
|
22354
22363
|
"estar\xE1 listo"
|
|
22355
22364
|
]);
|
|
22356
22365
|
|
|
22357
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22366
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/project-status/items.js
|
|
22358
22367
|
var EXCERPT_CHARS = 80;
|
|
22359
22368
|
var excerpt2 = /* @__PURE__ */ __name((text2) => {
|
|
22360
22369
|
const flat = text2.replace(/\s+/g, " ").trim();
|
|
@@ -22376,7 +22385,7 @@ var whoOf = /* @__PURE__ */ __name((message) => ({
|
|
|
22376
22385
|
var fromOwner = /* @__PURE__ */ __name((message) => message.outgoing === true, "fromOwner");
|
|
22377
22386
|
var day = /* @__PURE__ */ __name((at) => new Date(at).toISOString().slice(0, 10), "day");
|
|
22378
22387
|
|
|
22379
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22388
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/project-status/signals/amounts.js
|
|
22380
22389
|
var MONEY = DEFAULT_TASK_CATEGORIES.filter((category) => category.name === "money");
|
|
22381
22390
|
var verbOf = /* @__PURE__ */ __name((text2) => {
|
|
22382
22391
|
if (MONEY_DONE_FORMS.test(text2))
|
|
@@ -22457,7 +22466,7 @@ var amounts = {
|
|
|
22457
22466
|
attention: /* @__PURE__ */ __name((items) => items.flatMap((item2) => item2.chat !== null && item2.data.state === "asked" ? [{ chat: item2.chat, weight: 2, why: "money asked" }] : []), "attention")
|
|
22458
22467
|
};
|
|
22459
22468
|
|
|
22460
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22469
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/project-status/signals/children.js
|
|
22461
22470
|
var children = {
|
|
22462
22471
|
id: "children",
|
|
22463
22472
|
version: 1,
|
|
@@ -22486,7 +22495,7 @@ var children = {
|
|
|
22486
22495
|
}, "read")
|
|
22487
22496
|
};
|
|
22488
22497
|
|
|
22489
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22498
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/project-status/signals/coverage.js
|
|
22490
22499
|
var coverage = {
|
|
22491
22500
|
id: "coverage",
|
|
22492
22501
|
version: 1,
|
|
@@ -22515,7 +22524,7 @@ var coverage = {
|
|
|
22515
22524
|
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")
|
|
22516
22525
|
};
|
|
22517
22526
|
|
|
22518
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22527
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/project-status/signals/payments.js
|
|
22519
22528
|
var holding = /* @__PURE__ */ __name((row) => row.review !== "rejected", "holding");
|
|
22520
22529
|
var item = /* @__PURE__ */ __name((row, at, data) => ({
|
|
22521
22530
|
signal: "payments",
|
|
@@ -22565,7 +22574,7 @@ var payments = {
|
|
|
22565
22574
|
}, "read")
|
|
22566
22575
|
};
|
|
22567
22576
|
|
|
22568
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22577
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/project-status/signals/promises.js
|
|
22569
22578
|
var PATTERNS_PER_CHAT = 3;
|
|
22570
22579
|
var DAY3 = 864e5;
|
|
22571
22580
|
var KINDS2 = /* @__PURE__ */ new Set(["promise", "request"]);
|
|
@@ -22654,7 +22663,7 @@ var promises = {
|
|
|
22654
22663
|
}, "read")
|
|
22655
22664
|
};
|
|
22656
22665
|
|
|
22657
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22666
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/project-status/signals/questions.js
|
|
22658
22667
|
var PER_SIDE = 5;
|
|
22659
22668
|
var WEEK = 7 * 864e5;
|
|
22660
22669
|
var NOBODY = /* @__PURE__ */ new Set();
|
|
@@ -22685,7 +22694,7 @@ var questions2 = {
|
|
|
22685
22694
|
}, "attention")
|
|
22686
22695
|
};
|
|
22687
22696
|
|
|
22688
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22697
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/project-status/signals/reply-next.js
|
|
22689
22698
|
var targetOf = /* @__PURE__ */ __name((message, chat, owners) => {
|
|
22690
22699
|
const byId2 = /* @__PURE__ */ __name((id2) => chat.messages.find((one2) => one2.id === id2), "byId");
|
|
22691
22700
|
const quoted = message.replyTo ?? (message.replyToId === void 0 ? void 0 : byId2(message.replyToId));
|
|
@@ -22753,7 +22762,7 @@ var replyNext = {
|
|
|
22753
22762
|
attention: /* @__PURE__ */ __name((items) => items.flatMap((item2) => item2.chat !== null && item2.data.next === "owner" ? [{ chat: item2.chat, weight: 2, why: "your move" }] : []), "attention")
|
|
22754
22763
|
};
|
|
22755
22764
|
|
|
22756
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22765
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/project-status/signals/topics.js
|
|
22757
22766
|
var escaped2 = /* @__PURE__ */ __name((text2) => text2.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), "escaped");
|
|
22758
22767
|
var wholeWord = /* @__PURE__ */ __name((word) => new RegExp(`(?<![\\p{L}\\p{N}])${escaped2(word)}(?![\\p{L}\\p{N}])`, "u"), "wholeWord");
|
|
22759
22768
|
var matcherOf = /* @__PURE__ */ __name((query) => {
|
|
@@ -22799,7 +22808,7 @@ var topics = {
|
|
|
22799
22808
|
}, "read")
|
|
22800
22809
|
};
|
|
22801
22810
|
|
|
22802
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22811
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/project-status/signals/index.js
|
|
22803
22812
|
var STATUS_SIGNALS = [
|
|
22804
22813
|
replyNext,
|
|
22805
22814
|
questions2,
|
|
@@ -22811,7 +22820,7 @@ var STATUS_SIGNALS = [
|
|
|
22811
22820
|
children
|
|
22812
22821
|
];
|
|
22813
22822
|
|
|
22814
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22823
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/project-status/index.js
|
|
22815
22824
|
var DAY4 = 864e5;
|
|
22816
22825
|
var STATUS_WINDOW = 300;
|
|
22817
22826
|
var STATUS_CHATS = 16;
|
|
@@ -23000,7 +23009,7 @@ var projectStatus = /* @__PURE__ */ __name(async (store, input) => {
|
|
|
23000
23009
|
};
|
|
23001
23010
|
}, "projectStatus");
|
|
23002
23011
|
|
|
23003
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23012
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/project-activity.js
|
|
23004
23013
|
var TOP = 3;
|
|
23005
23014
|
var projectActivity = /* @__PURE__ */ __name(async (store, input) => {
|
|
23006
23015
|
const until = input.until ?? Date.now();
|
|
@@ -23062,7 +23071,7 @@ var projectActivity = /* @__PURE__ */ __name(async (store, input) => {
|
|
|
23062
23071
|
}, "projectActivity");
|
|
23063
23072
|
var refOf = /* @__PURE__ */ __name((chat) => formatReference({ type: "chat", provider: chat.provider, account: chat.account, chat: chat.chat }), "refOf");
|
|
23064
23073
|
|
|
23065
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23074
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/account.js
|
|
23066
23075
|
var accountService = /* @__PURE__ */ __name((deps) => {
|
|
23067
23076
|
const online = /* @__PURE__ */ __name(async (command) => {
|
|
23068
23077
|
if (deps.offline)
|
|
@@ -23134,7 +23143,7 @@ var accountService = /* @__PURE__ */ __name((deps) => {
|
|
|
23134
23143
|
};
|
|
23135
23144
|
}, "accountService");
|
|
23136
23145
|
|
|
23137
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23146
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/domain/send-time.js
|
|
23138
23147
|
var MINUTE = 6e4;
|
|
23139
23148
|
var YEAR = 365 * 24 * 60 * MINUTE;
|
|
23140
23149
|
var DELAY = /^(\d+)(m|h|d)$/;
|
|
@@ -23153,7 +23162,7 @@ var sendTime = /* @__PURE__ */ __name((value, now = Date.now(), flag = "--at-tim
|
|
|
23153
23162
|
return new Date(at - at % MINUTE).toISOString();
|
|
23154
23163
|
}, "sendTime");
|
|
23155
23164
|
|
|
23156
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23165
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/admin.js
|
|
23157
23166
|
var recordMembership = /* @__PURE__ */ __name(async (deps, operationId, done2, change, fix, write) => {
|
|
23158
23167
|
try {
|
|
23159
23168
|
const held = await accountStoreIfOpen(deps);
|
|
@@ -23400,7 +23409,7 @@ var linkLimits = /* @__PURE__ */ __name(({ approval, expires, maxUses }) => {
|
|
|
23400
23409
|
return expires === void 0 ? void 0 : sendTime(expires, Date.now(), "--expire-time");
|
|
23401
23410
|
}, "linkLimits");
|
|
23402
23411
|
|
|
23403
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23412
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/mail-search.js
|
|
23404
23413
|
var THREADS_PAGE = 500;
|
|
23405
23414
|
var threadsOf = /* @__PURE__ */ __name(async (store, key) => {
|
|
23406
23415
|
const account2 = await store.accounts.storedAccount(key).catch(() => void 0);
|
|
@@ -23479,7 +23488,7 @@ var readMail = /* @__PURE__ */ __name(async (store, locator, { before: before2 =
|
|
|
23479
23488
|
return thread.slice(Math.max(0, at - before2), at + after + 1).map((hit) => hit.id === message ? { ...hit, anchor: true } : hit);
|
|
23480
23489
|
}, "readMail");
|
|
23481
23490
|
|
|
23482
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23491
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/messages-search.js
|
|
23483
23492
|
var PERSON_FIELDS = /* @__PURE__ */ new Set(["from", "to", "cc", "bcc"]);
|
|
23484
23493
|
var MAIL_FIELDS = /* @__PURE__ */ new Set(["to", "cc", "bcc", "subject", "mailbox", "label", "is", "list"]);
|
|
23485
23494
|
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");
|
|
@@ -23563,9 +23572,7 @@ var prepareLucene = /* @__PURE__ */ __name(async (store, account2, request, mess
|
|
|
23563
23572
|
if (node.field === "date")
|
|
23564
23573
|
return {
|
|
23565
23574
|
...node,
|
|
23566
|
-
resolution: {
|
|
23567
|
-
date: dateRange(node.value, node.operator === "range" ? node.upper ?? "*" : node.value, node.operator === "range" ? node.lower_inclusive === true : true, node.operator === "range" ? node.upper_inclusive === true : true, timezone, node.span)
|
|
23568
|
-
}
|
|
23575
|
+
resolution: { date: rangeOf(node, timezone) }
|
|
23569
23576
|
};
|
|
23570
23577
|
return node;
|
|
23571
23578
|
}, "resolve");
|
|
@@ -23848,7 +23855,7 @@ var statsLucene = /* @__PURE__ */ __name(async (store, account2, request, messen
|
|
|
23848
23855
|
};
|
|
23849
23856
|
}, "statsLucene");
|
|
23850
23857
|
|
|
23851
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23858
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/moment.js
|
|
23852
23859
|
var AGO = /^(\d+)(m|h|d)$/;
|
|
23853
23860
|
var AGO_MS = { m: 6e4, h: 36e5, d: 864e5 };
|
|
23854
23861
|
var DATE = /^\d{4}-\d{2}-\d{2}/;
|
|
@@ -23888,7 +23895,7 @@ var dateWindow = /* @__PURE__ */ __name(({ sinceTime, untilTime, zone, now = Dat
|
|
|
23888
23895
|
};
|
|
23889
23896
|
}, "dateWindow");
|
|
23890
23897
|
|
|
23891
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23898
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/rankings-selection.js
|
|
23892
23899
|
var RANKING_SELECTION_BYTES = 64 * 1024;
|
|
23893
23900
|
var object2 = /* @__PURE__ */ __name((value) => value !== null && typeof value === "object" && !Array.isArray(value) ? value : void 0, "object");
|
|
23894
23901
|
function invalid(message = "ranking selection is invalid \u2014 obtain a new drilldown from stats top") {
|
|
@@ -24057,7 +24064,7 @@ var readRankingSelection = /* @__PURE__ */ __name(async (store, input) => {
|
|
|
24057
24064
|
};
|
|
24058
24065
|
}, "readRankingSelection");
|
|
24059
24066
|
|
|
24060
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24067
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/search-record.js
|
|
24061
24068
|
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");
|
|
24062
24069
|
var searchRecordOf = /* @__PURE__ */ __name((command, params) => ({
|
|
24063
24070
|
command,
|
|
@@ -24067,7 +24074,7 @@ var searchRecordOf = /* @__PURE__ */ __name((command, params) => ({
|
|
|
24067
24074
|
fieldsVersion: FIELD_VERSION
|
|
24068
24075
|
}), "searchRecordOf");
|
|
24069
24076
|
|
|
24070
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24077
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/admin-statistics.js
|
|
24071
24078
|
function invalid2(message) {
|
|
24072
24079
|
throw new CliError("validation_error", message);
|
|
24073
24080
|
}
|
|
@@ -24361,10 +24368,10 @@ var adminStatisticsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
24361
24368
|
}, "evidence")
|
|
24362
24369
|
}), "adminStatisticsService");
|
|
24363
24370
|
|
|
24364
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24371
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/archive.js
|
|
24365
24372
|
import { setTimeout as sleep3 } from "node:timers/promises";
|
|
24366
24373
|
|
|
24367
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24374
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/backfill-estimate.js
|
|
24368
24375
|
var REQUEST_MS = 400;
|
|
24369
24376
|
var estimateBackfill = /* @__PURE__ */ __name(({ ranges, held, newest, page, maxPages, pauseMs }) => {
|
|
24370
24377
|
const lowest = ranges[0];
|
|
@@ -24387,13 +24394,13 @@ var estimateBackfill = /* @__PURE__ */ __name(({ ranges, held, newest, page, max
|
|
|
24387
24394
|
};
|
|
24388
24395
|
}, "estimateBackfill");
|
|
24389
24396
|
|
|
24390
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24397
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/domain/recovery.js
|
|
24391
24398
|
var withRecovery = /* @__PURE__ */ __name((error) => ({
|
|
24392
24399
|
...error,
|
|
24393
24400
|
retryable: typeof error.retryable === "boolean" ? error.retryable : error.code === "rate_limited" || error.status === 429
|
|
24394
24401
|
}), "withRecovery");
|
|
24395
24402
|
|
|
24396
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24403
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/batch.js
|
|
24397
24404
|
var actionable = /* @__PURE__ */ __name((error) => {
|
|
24398
24405
|
if (isCliFailure(error))
|
|
24399
24406
|
return withRecovery({ code: error.code, message: error.message, ...error.details });
|
|
@@ -24476,7 +24483,7 @@ var mergeBatches = /* @__PURE__ */ __name((a, b) => {
|
|
|
24476
24483
|
};
|
|
24477
24484
|
}, "mergeBatches");
|
|
24478
24485
|
|
|
24479
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24486
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/patience.js
|
|
24480
24487
|
import { setTimeout as sleep2 } from "node:timers/promises";
|
|
24481
24488
|
var LONGEST_WAIT_MS = 5 * 60 * 1e3;
|
|
24482
24489
|
var patiently = /* @__PURE__ */ __name(async (request, note, stop) => {
|
|
@@ -24499,7 +24506,7 @@ var patiently = /* @__PURE__ */ __name(async (request, note, stop) => {
|
|
|
24499
24506
|
}
|
|
24500
24507
|
}, "patiently");
|
|
24501
24508
|
|
|
24502
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24509
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/conversations/link.js
|
|
24503
24510
|
var RULES_VERSION = 5;
|
|
24504
24511
|
var LOOK_BACK = 50;
|
|
24505
24512
|
var SAME_SENDER_WITHIN = 10;
|
|
@@ -24589,7 +24596,7 @@ var latest = /* @__PURE__ */ __name((window2, matches) => {
|
|
|
24589
24596
|
var sameThread = /* @__PURE__ */ __name((a, b) => a.threadId === b.threadId, "sameThread");
|
|
24590
24597
|
var link2 = /* @__PURE__ */ __name((message, parentId, source, kind, confidence, method) => ({ messageId: message.id, parentId, source, kind, confidence, method }), "link");
|
|
24591
24598
|
|
|
24592
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24599
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/images/context/index.js
|
|
24593
24600
|
var CONTEXT_MESSAGES = 3;
|
|
24594
24601
|
var CONTEXT_MINUTES = 10;
|
|
24595
24602
|
var MAX_CHARS = 1200;
|
|
@@ -24613,12 +24620,12 @@ var context = {
|
|
|
24613
24620
|
}, "describe")
|
|
24614
24621
|
};
|
|
24615
24622
|
|
|
24616
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24623
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/images/registry.js
|
|
24617
24624
|
var BUILT_INS = [context];
|
|
24618
24625
|
var providers = [...BUILT_INS];
|
|
24619
24626
|
var registeredImageProviders = /* @__PURE__ */ __name(() => providers, "registeredImageProviders");
|
|
24620
24627
|
|
|
24621
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24628
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/conversations.js
|
|
24622
24629
|
var READ_PAGE = 5e3;
|
|
24623
24630
|
var CHAIN = 50;
|
|
24624
24631
|
var CONVERSATION_QUERY = {
|
|
@@ -24770,7 +24777,7 @@ var sized = /* @__PURE__ */ __name((size4) => {
|
|
|
24770
24777
|
return size4;
|
|
24771
24778
|
}, "sized");
|
|
24772
24779
|
|
|
24773
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24780
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/embeddings-maintenance.js
|
|
24774
24781
|
var REFRESH_BOUNDS = { maxChats: 20, maxChunks: 2e3 };
|
|
24775
24782
|
var MESSAGE_PAGE = 5e3;
|
|
24776
24783
|
var PER_SESSION = 8;
|
|
@@ -24789,7 +24796,7 @@ var embeddingTarget = /* @__PURE__ */ __name((deps, choice = chosenTextModel(dep
|
|
|
24789
24796
|
price: remote.price,
|
|
24790
24797
|
installed: true,
|
|
24791
24798
|
perBatch: PER_REQUEST * concurrency,
|
|
24792
|
-
open: /* @__PURE__ */ __name(async () => (await import("./remote-
|
|
24799
|
+
open: /* @__PURE__ */ __name(async () => (await import("./remote-CJF5KMMY.js")).openRemote(remote, apiKey, {
|
|
24793
24800
|
concurrency,
|
|
24794
24801
|
env: deps.env ?? process.env
|
|
24795
24802
|
}), "open")
|
|
@@ -24809,7 +24816,7 @@ var embeddingTarget = /* @__PURE__ */ __name((deps, choice = chosenTextModel(dep
|
|
|
24809
24816
|
if (!isTextModelInstalled(model, directory2))
|
|
24810
24817
|
throw notDownloaded(model.id);
|
|
24811
24818
|
if (apart) {
|
|
24812
|
-
const { openProcess } = await import("./process-
|
|
24819
|
+
const { openProcess } = await import("./process-6Q23D3TO.js");
|
|
24813
24820
|
return openProcess(model, directory2, { threads: threads ?? defaultThreads() });
|
|
24814
24821
|
}
|
|
24815
24822
|
return openEmbedder(model, directory2, { threads: threads ?? defaultThreads() });
|
|
@@ -25098,7 +25105,7 @@ var shaped = /* @__PURE__ */ __name(({ chatId, builtAt, algorithmVersion, pendin
|
|
|
25098
25105
|
return { ...one2, state };
|
|
25099
25106
|
}, "shaped");
|
|
25100
25107
|
|
|
25101
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25108
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/search-catchup.js
|
|
25102
25109
|
var CATCH_UP_BOUNDS = { maxChunks: 500, maxMessages: 1e4, timeMs: 3e4 };
|
|
25103
25110
|
var validateCatchUpBounds = /* @__PURE__ */ __name((options2) => {
|
|
25104
25111
|
for (const [key, value, maximum] of [
|
|
@@ -25151,7 +25158,7 @@ var catchUpSearch = /* @__PURE__ */ __name(async (deps, chat, options2, signal,
|
|
|
25151
25158
|
}
|
|
25152
25159
|
}, "catchUpSearch");
|
|
25153
25160
|
|
|
25154
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25161
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/archive.js
|
|
25155
25162
|
var pushed = /* @__PURE__ */ __name((deps, what) => {
|
|
25156
25163
|
if (deps.reads === "store") {
|
|
25157
25164
|
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`);
|
|
@@ -25532,7 +25539,7 @@ var timeOfKey = /* @__PURE__ */ __name(async (store, account2, chatId, key, byTi
|
|
|
25532
25539
|
return message?.timestamp ?? fallback;
|
|
25533
25540
|
}, "timeOfKey");
|
|
25534
25541
|
|
|
25535
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25542
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/archive-gaps.js
|
|
25536
25543
|
import { createHash as createHash6, randomUUID as randomUUID4 } from "node:crypto";
|
|
25537
25544
|
var GAP_BOUNDS = { maxGaps: 5, limit: 500, timeMs: 3e4 };
|
|
25538
25545
|
var validateRepair = /* @__PURE__ */ __name((messenger, options2) => {
|
|
@@ -25669,16 +25676,16 @@ var gapsService = /* @__PURE__ */ __name((deps) => {
|
|
|
25669
25676
|
return { plan, repair };
|
|
25670
25677
|
}, "gapsService");
|
|
25671
25678
|
|
|
25672
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25679
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/attachments.js
|
|
25673
25680
|
import { createHash as createHash9 } from "node:crypto";
|
|
25674
25681
|
import { constants as constants2, mkdirSync as mkdirSync2 } from "node:fs";
|
|
25675
25682
|
import { lstat as lstat5, open as open6, readFile as readFile2, stat as stat2 } from "node:fs/promises";
|
|
25676
25683
|
|
|
25677
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25684
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/attachments/directory.js
|
|
25678
25685
|
import { lstat as lstat2, readdir as readdir2, realpath as realpath3 } from "node:fs/promises";
|
|
25679
25686
|
import { basename as basename4, join as join9, relative as relative2, sep as sep2 } from "node:path";
|
|
25680
25687
|
|
|
25681
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25688
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/sends/upload.js
|
|
25682
25689
|
import { openAsBlob, realpathSync } from "node:fs";
|
|
25683
25690
|
import { open as open4, stat } from "node:fs/promises";
|
|
25684
25691
|
import { basename as basename3, dirname as dirname3, extname, isAbsolute as isAbsolute2, relative, resolve as resolve5, sep } from "node:path";
|
|
@@ -25892,7 +25899,7 @@ var readStickerFile = /* @__PURE__ */ __name(async (path, maxBytes, read) => {
|
|
|
25892
25899
|
return { name, source };
|
|
25893
25900
|
}, "readStickerFile");
|
|
25894
25901
|
|
|
25895
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25902
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/attachments/directory.js
|
|
25896
25903
|
var MAX_FILES = 1e4;
|
|
25897
25904
|
var directoryPaths = /* @__PURE__ */ __name(async (store, chat, directory2, app, env) => {
|
|
25898
25905
|
if (refusedPlace(directory2, app, env))
|
|
@@ -25961,21 +25968,21 @@ var directoryPaths = /* @__PURE__ */ __name(async (store, chat, directory2, app,
|
|
|
25961
25968
|
return choices;
|
|
25962
25969
|
}, "directoryPaths");
|
|
25963
25970
|
|
|
25964
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25971
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/attachments/documents.js
|
|
25965
25972
|
import { posix } from "node:path";
|
|
25966
25973
|
|
|
25967
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25974
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/attachments/container.js
|
|
25968
25975
|
import { setImmediate as tick } from "node:timers/promises";
|
|
25969
25976
|
import { crc32 } from "node:zlib";
|
|
25970
25977
|
var import_xmldom = __toESM(require_lib(), 1);
|
|
25971
25978
|
|
|
25972
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25979
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/attachments/encoding.js
|
|
25973
25980
|
var import_chardet = __toESM(require_lib2(), 1);
|
|
25974
25981
|
var import_iconv_lite = __toESM(require_lib3(), 1);
|
|
25975
25982
|
var SAMPLE = 65536;
|
|
25976
25983
|
var invalidText = /* @__PURE__ */ __name((text2) => {
|
|
25977
|
-
for (const
|
|
25978
|
-
const code =
|
|
25984
|
+
for (const character2 of text2) {
|
|
25985
|
+
const code = character2.charCodeAt(0);
|
|
25979
25986
|
if (code < 9 || code === 11 || code > 13 && code < 32 || code >= 127 && code <= 159)
|
|
25980
25987
|
return true;
|
|
25981
25988
|
}
|
|
@@ -26071,7 +26078,7 @@ var decodeXml = /* @__PURE__ */ __name((bytes2) => {
|
|
|
26071
26078
|
return result.text;
|
|
26072
26079
|
}, "decodeXml");
|
|
26073
26080
|
|
|
26074
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26081
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/attachments/container.js
|
|
26075
26082
|
var MAX_PART = 10 * 1024 * 1024;
|
|
26076
26083
|
var MAX_ENTRIES = 1e3;
|
|
26077
26084
|
var decoder = new TextDecoder("utf-8", { fatal: true });
|
|
@@ -26084,7 +26091,7 @@ var cancelled = /* @__PURE__ */ __name((signal) => {
|
|
|
26084
26091
|
if (signal?.aborted)
|
|
26085
26092
|
throw new CliError("cancelled", "document extraction cancelled");
|
|
26086
26093
|
}, "cancelled");
|
|
26087
|
-
var safeName2 = /* @__PURE__ */ __name((name) => name.length > 0 && name.length <= 512 && !/^[\\/]|\\/.test(name) && ![...name].some((
|
|
26094
|
+
var safeName2 = /* @__PURE__ */ __name((name) => name.length > 0 && name.length <= 512 && !/^[\\/]|\\/.test(name) && ![...name].some((character2) => character2.charCodeAt(0) < 32) && !name.split("/").includes(".."), "safeName");
|
|
26088
26095
|
var directory = /* @__PURE__ */ __name((bytes2) => {
|
|
26089
26096
|
const view = new DataView(bytes2.buffer, bytes2.byteOffset, bytes2.byteLength);
|
|
26090
26097
|
let end = -1;
|
|
@@ -26286,7 +26293,7 @@ var elements = /* @__PURE__ */ __name((node, name, namespace) => {
|
|
|
26286
26293
|
return found;
|
|
26287
26294
|
}, "elements");
|
|
26288
26295
|
|
|
26289
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26296
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/attachments/sheets.js
|
|
26290
26297
|
var columnName = /* @__PURE__ */ __name((column) => {
|
|
26291
26298
|
let name = "";
|
|
26292
26299
|
for (let rest = column; rest > 0; rest = Math.floor((rest - 1) / 26))
|
|
@@ -26341,7 +26348,7 @@ var sheetText = /* @__PURE__ */ __name((sheets2, maxChars = MAX_TEXT_CHARS) => {
|
|
|
26341
26348
|
return { text: parts.join("").trim(), truncated: false };
|
|
26342
26349
|
}, "sheetText");
|
|
26343
26350
|
|
|
26344
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26351
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/attachments/documents.js
|
|
26345
26352
|
var OFFICE = "urn:oasis:names:tc:opendocument:xmlns:office:1.0";
|
|
26346
26353
|
var TEXT = "urn:oasis:names:tc:opendocument:xmlns:text:1.0";
|
|
26347
26354
|
var TABLE = "urn:oasis:names:tc:opendocument:xmlns:table:1.0";
|
|
@@ -26416,7 +26423,7 @@ var rootIs = /* @__PURE__ */ __name((node, name, namespaces) => {
|
|
|
26416
26423
|
}, "rootIs");
|
|
26417
26424
|
var target = /* @__PURE__ */ __name((owner, reference) => {
|
|
26418
26425
|
const decoded = decodeURIComponent(reference.split(/[?#]/)[0] ?? "");
|
|
26419
|
-
if (/^[a-z][a-z0-9+.-]*:|^[\\/]|\\/i.test(decoded) || [...decoded].some((
|
|
26426
|
+
if (/^[a-z][a-z0-9+.-]*:|^[\\/]|\\/i.test(decoded) || [...decoded].some((character2) => character2.charCodeAt(0) < 32))
|
|
26420
26427
|
throw new Error("external_part");
|
|
26421
26428
|
const path = posix.normalize(posix.join(posix.dirname(owner), decoded));
|
|
26422
26429
|
if (path.startsWith("../") || !path || path === ".")
|
|
@@ -26741,10 +26748,10 @@ var readDocument = /* @__PURE__ */ __name(async (bytes2, kind, signal) => {
|
|
|
26741
26748
|
}
|
|
26742
26749
|
}, "readDocument");
|
|
26743
26750
|
|
|
26744
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26751
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/attachments/extract.js
|
|
26745
26752
|
import { extname as extname3 } from "node:path";
|
|
26746
26753
|
|
|
26747
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26754
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/readers/engine.js
|
|
26748
26755
|
import { readFileSync } from "node:fs";
|
|
26749
26756
|
import { dirname as dirname4, extname as extname2, join as join10 } from "node:path";
|
|
26750
26757
|
import { fileURLToPath } from "node:url";
|
|
@@ -26805,7 +26812,7 @@ var derived = /* @__PURE__ */ __name((bytes2, extractor, read) => {
|
|
|
26805
26812
|
}
|
|
26806
26813
|
}, "derived");
|
|
26807
26814
|
|
|
26808
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26815
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/readers/image/index.js
|
|
26809
26816
|
var IMAGES = /* @__PURE__ */ new Set([".jpg", ".jpeg", ".png", ".webp", ".gif", ".heic", ".tif", ".tiff", ".bmp"]);
|
|
26810
26817
|
var image2 = {
|
|
26811
26818
|
id: "image",
|
|
@@ -26814,7 +26821,7 @@ var image2 = {
|
|
|
26814
26821
|
read: /* @__PURE__ */ __name(async () => ({ status: "needs-agent" }), "read")
|
|
26815
26822
|
};
|
|
26816
26823
|
|
|
26817
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26824
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/readers/doc/index.js
|
|
26818
26825
|
var OLE = "\xD0\xCF\xE0\xA1\xB1\xE1";
|
|
26819
26826
|
var doc = {
|
|
26820
26827
|
id: "doc",
|
|
@@ -26826,7 +26833,7 @@ var doc = {
|
|
|
26826
26833
|
}), "read")
|
|
26827
26834
|
};
|
|
26828
26835
|
|
|
26829
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26836
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/readers/docx/index.js
|
|
26830
26837
|
var DOCX = "application/vnd.openxmlformats-officedocument.wordprocessingml.document";
|
|
26831
26838
|
var docx = {
|
|
26832
26839
|
id: "docx",
|
|
@@ -26839,8 +26846,62 @@ var docx = {
|
|
|
26839
26846
|
}), "read")
|
|
26840
26847
|
};
|
|
26841
26848
|
|
|
26842
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26849
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/attachments/markup.js
|
|
26843
26850
|
var import_iconv_lite2 = __toESM(require_lib3(), 1);
|
|
26851
|
+
|
|
26852
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/domain/html-entities.js
|
|
26853
|
+
var NAMED2 = {
|
|
26854
|
+
amp: "&",
|
|
26855
|
+
lt: "<",
|
|
26856
|
+
gt: ">",
|
|
26857
|
+
quot: '"',
|
|
26858
|
+
apos: "'",
|
|
26859
|
+
nbsp: "\xA0",
|
|
26860
|
+
shy: "\xAD",
|
|
26861
|
+
ensp: "\u2002",
|
|
26862
|
+
emsp: "\u2003",
|
|
26863
|
+
thinsp: "\u2009",
|
|
26864
|
+
zwnj: "\u200C",
|
|
26865
|
+
zwj: "\u200D",
|
|
26866
|
+
lsquo: "\u2018",
|
|
26867
|
+
rsquo: "\u2019",
|
|
26868
|
+
sbquo: "\u201A",
|
|
26869
|
+
ldquo: "\u201C",
|
|
26870
|
+
rdquo: "\u201D",
|
|
26871
|
+
bdquo: "\u201E",
|
|
26872
|
+
laquo: "\xAB",
|
|
26873
|
+
raquo: "\xBB",
|
|
26874
|
+
lsaquo: "\u2039",
|
|
26875
|
+
rsaquo: "\u203A",
|
|
26876
|
+
ndash: "\u2013",
|
|
26877
|
+
mdash: "\u2014",
|
|
26878
|
+
hellip: "\u2026",
|
|
26879
|
+
bull: "\u2022",
|
|
26880
|
+
middot: "\xB7",
|
|
26881
|
+
copy: "\xA9",
|
|
26882
|
+
reg: "\xAE",
|
|
26883
|
+
trade: "\u2122",
|
|
26884
|
+
euro: "\u20AC",
|
|
26885
|
+
pound: "\xA3",
|
|
26886
|
+
yen: "\xA5",
|
|
26887
|
+
cent: "\xA2",
|
|
26888
|
+
deg: "\xB0",
|
|
26889
|
+
plusmn: "\xB1",
|
|
26890
|
+
times: "\xD7",
|
|
26891
|
+
divide: "\xF7",
|
|
26892
|
+
sect: "\xA7",
|
|
26893
|
+
para: "\xB6",
|
|
26894
|
+
iexcl: "\xA1",
|
|
26895
|
+
iquest: "\xBF"
|
|
26896
|
+
};
|
|
26897
|
+
var character = /* @__PURE__ */ __name((code, entity) => code > 0 && code <= 1114111 ? String.fromCodePoint(code) : entity, "character");
|
|
26898
|
+
var decodeEntities = /* @__PURE__ */ __name((text2) => text2.replace(/&(#x[0-9a-f]{1,6}|#\d{1,7}|[a-z]{2,8});/gi, (entity, body) => {
|
|
26899
|
+
if (body[0] !== "#")
|
|
26900
|
+
return NAMED2[body] ?? NAMED2[body.toLowerCase()] ?? entity;
|
|
26901
|
+
return body[1] === "x" || body[1] === "X" ? character(Number.parseInt(body.slice(2), 16), entity) : character(Number(body.slice(1)), entity);
|
|
26902
|
+
}), "decodeEntities");
|
|
26903
|
+
|
|
26904
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/attachments/markup.js
|
|
26844
26905
|
var RTF_SKIPPED = /* @__PURE__ */ new Set([
|
|
26845
26906
|
"fonttbl",
|
|
26846
26907
|
"colortbl",
|
|
@@ -26973,7 +27034,6 @@ var HTML_DROPPED_CLOSE = new Map(["script", "style", "head", "noscript", "templa
|
|
|
26973
27034
|
new RegExp(`<\\/${name}\\s*>`, "gi")
|
|
26974
27035
|
]));
|
|
26975
27036
|
var HTML_BLOCK = /<\/?(p|div|br|li|ul|ol|tr|h[1-6]|blockquote|pre|section|article|header|footer|table|hr)\b[^>]*>/gi;
|
|
26976
|
-
var ENTITIES = { amp: "&", lt: "<", gt: ">", quot: '"', apos: "'", nbsp: "\xA0" };
|
|
26977
27037
|
var replaceTags = /* @__PURE__ */ __name((source, tag, replacement) => {
|
|
26978
27038
|
const end = source.lastIndexOf(">") + 1;
|
|
26979
27039
|
return source.slice(0, end).replace(tag, replacement) + source.slice(end);
|
|
@@ -27004,18 +27064,10 @@ var dropHidden = /* @__PURE__ */ __name((source) => {
|
|
|
27004
27064
|
var htmlText = /* @__PURE__ */ __name((source) => {
|
|
27005
27065
|
const uncommented = source.replace(/<!--[\s\S]*?(-->|$)/g, (comment, close) => close ? "" : comment);
|
|
27006
27066
|
const blocks = replaceTags(dropHidden(uncommented).replace(/<\/t[dh]\s*>/gi, " "), HTML_BLOCK, "\n");
|
|
27007
|
-
return replaceTags(blocks, /<[^>]*>/g, "").replace(
|
|
27008
|
-
const lower = body.toLowerCase();
|
|
27009
|
-
if (lower.startsWith("#x"))
|
|
27010
|
-
return safeChar(Number.parseInt(lower.slice(2), 16), entity);
|
|
27011
|
-
if (lower.startsWith("#"))
|
|
27012
|
-
return safeChar(Number(lower.slice(1)), entity);
|
|
27013
|
-
return ENTITIES[lower] ?? entity;
|
|
27014
|
-
}).replace(/(?<![ \t\u00a0])[ \t\u00a0]+\n/g, "\n").replace(/\n{3,}/g, "\n\n").trim();
|
|
27067
|
+
return decodeEntities(replaceTags(blocks, /<[^>]*>/g, "")).replace(/(?<![ \t\u00a0])[ \t\u00a0]+\n/g, "\n").replace(/\n{3,}/g, "\n\n").trim();
|
|
27015
27068
|
}, "htmlText");
|
|
27016
|
-
var safeChar = /* @__PURE__ */ __name((code, fallback) => code > 0 && code <= 1114111 ? String.fromCodePoint(code) : fallback, "safeChar");
|
|
27017
27069
|
|
|
27018
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27070
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/readers/html/page.js
|
|
27019
27071
|
var clean = /* @__PURE__ */ __name((value) => typeof value === "string" ? value.replace(/\s+/g, " ").trim() : "", "clean");
|
|
27020
27072
|
var namesIn = /* @__PURE__ */ __name((value) => [value].flat().map((entry) => typeof entry === "string" ? clean(entry) : clean(entry?.name)).filter(Boolean).join(", "), "namesIn");
|
|
27021
27073
|
var jsonLdNodes = /* @__PURE__ */ __name((document) => {
|
|
@@ -27071,7 +27123,7 @@ var markdownSections = /* @__PURE__ */ __name((text2) => {
|
|
|
27071
27123
|
return found.map((section, index) => ({ ...section, end: found[index + 1]?.start ?? text2.length }));
|
|
27072
27124
|
}, "markdownSections");
|
|
27073
27125
|
|
|
27074
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27126
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/readers/html/index.js
|
|
27075
27127
|
var HTML = /* @__PURE__ */ new Set([".html", ".htm", ".xhtml"]);
|
|
27076
27128
|
var first = /* @__PURE__ */ __name((...values) => values.find((value) => typeof value === "string" && value !== ""), "first");
|
|
27077
27129
|
var loaded = /* @__PURE__ */ __name(async (load, name) => {
|
|
@@ -27142,7 +27194,7 @@ var html = {
|
|
|
27142
27194
|
}, "read")
|
|
27143
27195
|
};
|
|
27144
27196
|
|
|
27145
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27197
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/readers/office/index.js
|
|
27146
27198
|
var office = {
|
|
27147
27199
|
id: "office",
|
|
27148
27200
|
version: documentExtractor("odt"),
|
|
@@ -27153,7 +27205,7 @@ var office = {
|
|
|
27153
27205
|
}, "read")
|
|
27154
27206
|
};
|
|
27155
27207
|
|
|
27156
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27208
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/readers/pdf/index.js
|
|
27157
27209
|
var pdf = {
|
|
27158
27210
|
id: "pdf",
|
|
27159
27211
|
version: "unpdf",
|
|
@@ -27220,7 +27272,7 @@ var pdf = {
|
|
|
27220
27272
|
}), "read")
|
|
27221
27273
|
};
|
|
27222
27274
|
|
|
27223
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27275
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/readers/plain/index.js
|
|
27224
27276
|
var PLAIN = /* @__PURE__ */ new Set([".txt", ".md", ".markdown", ".csv", ".tsv", ".json", ".log"]);
|
|
27225
27277
|
var isPlain = /* @__PURE__ */ __name((hint) => PLAIN.has(extensionOf(hint)) || hint.mime?.startsWith("text/") || hint.mime === "application/json", "isPlain");
|
|
27226
27278
|
var readPlain = /* @__PURE__ */ __name((bytes2) => {
|
|
@@ -27240,7 +27292,7 @@ var plain = {
|
|
|
27240
27292
|
read: /* @__PURE__ */ __name(async (bytes2) => readPlain(bytes2), "read")
|
|
27241
27293
|
};
|
|
27242
27294
|
|
|
27243
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27295
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/readers/rtf/index.js
|
|
27244
27296
|
var rtf = {
|
|
27245
27297
|
id: "rtf",
|
|
27246
27298
|
version: "v1",
|
|
@@ -27248,10 +27300,10 @@ var rtf = {
|
|
|
27248
27300
|
read: /* @__PURE__ */ __name(async (bytes2) => derived(bytes2, "rtf:v1", rtfText), "read")
|
|
27249
27301
|
};
|
|
27250
27302
|
|
|
27251
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27303
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/readers/sheets/index.js
|
|
27252
27304
|
import { basename as basename5 } from "node:path";
|
|
27253
27305
|
|
|
27254
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27306
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/attachments/csv-spans.js
|
|
27255
27307
|
var delimitedSpans = /* @__PURE__ */ __name((text2, delimiter, maxCells = 1e4) => {
|
|
27256
27308
|
const cells = [];
|
|
27257
27309
|
let row = 1, column = 1, start = 0, quoted = false, truncated = false;
|
|
@@ -27289,7 +27341,7 @@ var delimitedSpans = /* @__PURE__ */ __name((text2, delimiter, maxCells = 1e4) =
|
|
|
27289
27341
|
return { cells, truncated };
|
|
27290
27342
|
}, "delimitedSpans");
|
|
27291
27343
|
|
|
27292
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27344
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/readers/sheets/index.js
|
|
27293
27345
|
var DELIMITED = {
|
|
27294
27346
|
".csv": ",",
|
|
27295
27347
|
".tsv": " ",
|
|
@@ -27328,7 +27380,7 @@ var sheets = {
|
|
|
27328
27380
|
}, "read")
|
|
27329
27381
|
};
|
|
27330
27382
|
|
|
27331
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27383
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/readers/registry.js
|
|
27332
27384
|
var BUILT_INS2 = [office, pdf, docx, doc, rtf, html, sheets, plain, image2];
|
|
27333
27385
|
var HEAD_BYTES = 1024;
|
|
27334
27386
|
var readers = [...BUILT_INS2];
|
|
@@ -27338,7 +27390,7 @@ var readWithRegistry = /* @__PURE__ */ __name(async (bytes2, hint, context2) =>
|
|
|
27338
27390
|
return reader ? reader.read(bytes2, hint, context2) : { status: "unsupported" };
|
|
27339
27391
|
}, "readWithRegistry");
|
|
27340
27392
|
|
|
27341
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27393
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/attachments/extract.js
|
|
27342
27394
|
var importEngine = /* @__PURE__ */ __name((name) => importFrom(new URL("attachments/extract.js", import.meta.resolve("@wirecat/cli-core")).href, name), "importEngine");
|
|
27343
27395
|
var extensionOf2 = /* @__PURE__ */ __name(({ name, path }) => extname3(name ?? path).toLowerCase(), "extensionOf");
|
|
27344
27396
|
var extractText = /* @__PURE__ */ __name(async (bytes2, hint, load, signal, env = process.env) => {
|
|
@@ -28417,7 +28469,7 @@ function imageSize(input) {
|
|
|
28417
28469
|
}
|
|
28418
28470
|
__name(imageSize, "imageSize");
|
|
28419
28471
|
|
|
28420
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28472
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/attachments/ocr.js
|
|
28421
28473
|
var MAX_PAGES = 20;
|
|
28422
28474
|
var MAX_PIXELS = 2e7;
|
|
28423
28475
|
var cancelled2 = /* @__PURE__ */ __name((signal) => {
|
|
@@ -28577,7 +28629,7 @@ var ocrPdf = /* @__PURE__ */ __name(async (bytes2, pipeline2, load, signal) => {
|
|
|
28577
28629
|
}
|
|
28578
28630
|
}, "ocrPdf");
|
|
28579
28631
|
|
|
28580
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28632
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/attachments/pdf-preview.js
|
|
28581
28633
|
var pdfPreview = /* @__PURE__ */ __name(async (bytes2, page, signal, load = importEngine, env = process.env) => {
|
|
28582
28634
|
const limits = pdfPreviewLimits(env);
|
|
28583
28635
|
const cancelled4 = /* @__PURE__ */ __name(() => {
|
|
@@ -28654,7 +28706,7 @@ var pdfPreview = /* @__PURE__ */ __name(async (bytes2, page, signal, load = impo
|
|
|
28654
28706
|
}
|
|
28655
28707
|
}, "pdfPreview");
|
|
28656
28708
|
|
|
28657
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28709
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/attachments/picture-reading.js
|
|
28658
28710
|
import { spawn } from "node:child_process";
|
|
28659
28711
|
import { mkdtempSync, readFileSync as readFileSync2, rmSync, writeFileSync as writeFileSync2 } from "node:fs";
|
|
28660
28712
|
import { tmpdir } from "node:os";
|
|
@@ -28817,7 +28869,7 @@ Read the attached picture.`,
|
|
|
28817
28869
|
}
|
|
28818
28870
|
}, "readPictureWithAgent");
|
|
28819
28871
|
|
|
28820
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28872
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/attachments/transfer.js
|
|
28821
28873
|
import { createHash as createHash7 } from "node:crypto";
|
|
28822
28874
|
import { constants } from "node:fs";
|
|
28823
28875
|
import { lstat as lstat3, open as open5 } from "node:fs/promises";
|
|
@@ -28925,7 +28977,7 @@ var transferMime = /* @__PURE__ */ __name((head, hint, name = null) => {
|
|
|
28925
28977
|
return hint !== null && /^[a-z0-9.+-]+\/[a-z0-9.+-]+$/i.test(hint) ? hint : "application/octet-stream";
|
|
28926
28978
|
}, "transferMime");
|
|
28927
28979
|
|
|
28928
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28980
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/file-download.js
|
|
28929
28981
|
import { createWriteStream, mkdirSync } from "node:fs";
|
|
28930
28982
|
import { link as link3, rm } from "node:fs/promises";
|
|
28931
28983
|
import { join as join12, resolve as resolve6 } from "node:path";
|
|
@@ -29039,12 +29091,12 @@ var save = /* @__PURE__ */ __name(async (file, directory2, fallbackName, { uniqu
|
|
|
29039
29091
|
}
|
|
29040
29092
|
}, "save");
|
|
29041
29093
|
|
|
29042
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29094
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/pictures.js
|
|
29043
29095
|
import { createHash as createHash8 } from "node:crypto";
|
|
29044
29096
|
import { lstat as lstat4, readFile } from "node:fs/promises";
|
|
29045
29097
|
import { setTimeout as sleep4 } from "node:timers/promises";
|
|
29046
29098
|
|
|
29047
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29099
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/domain/models.js
|
|
29048
29100
|
var GROUP_SETTINGS = [
|
|
29049
29101
|
"allCanPin",
|
|
29050
29102
|
"onlyAdminsAdd",
|
|
@@ -29058,7 +29110,7 @@ var ADMIN_RIGHTS = ["read", "members", "admins", "info", "pin", "link", "post",
|
|
|
29058
29110
|
var senderIsMe = /* @__PURE__ */ __name((message, account2) => message.outgoing === true || message.senderId !== null && String(message.senderId) === account2, "senderIsMe");
|
|
29059
29111
|
var MEDIA_KINDS = ["photo", "video", "file", "audio", "link"];
|
|
29060
29112
|
|
|
29061
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29113
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/pictures.js
|
|
29062
29114
|
var PICTURE_MAX_BYTES = 25 * 1024 * 1024;
|
|
29063
29115
|
var PICTURE_FLOOR = 0.25;
|
|
29064
29116
|
var PAGE3 = 50;
|
|
@@ -29099,7 +29151,7 @@ var picturesService = /* @__PURE__ */ __name((deps) => {
|
|
|
29099
29151
|
const directory2 = imageModelsDirectory(deps.env);
|
|
29100
29152
|
if (!isImageModelInstalled(model2, directory2))
|
|
29101
29153
|
throw new CliError("not_found", missingModel(model2.id), { reason: "model.not-downloaded", model: model2.id });
|
|
29102
|
-
const { openPictureEmbedder } = await import("./embedder-
|
|
29154
|
+
const { openPictureEmbedder } = await import("./embedder-RBDHO6Z6.js");
|
|
29103
29155
|
return openPictureEmbedder(model2, directory2);
|
|
29104
29156
|
}, "open");
|
|
29105
29157
|
const embedder = /* @__PURE__ */ __name(() => {
|
|
@@ -29273,7 +29325,7 @@ var withPictures = /* @__PURE__ */ __name((messages, pictures) => ({
|
|
|
29273
29325
|
}, "search")
|
|
29274
29326
|
}), "withPictures");
|
|
29275
29327
|
|
|
29276
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29328
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/attachments.js
|
|
29277
29329
|
var ATTACHMENT_QUERY = {
|
|
29278
29330
|
entity: "attachment",
|
|
29279
29331
|
backend: "sql",
|
|
@@ -29744,7 +29796,7 @@ var attachmentsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
29744
29796
|
}, "readPicture")
|
|
29745
29797
|
}), "attachmentsService");
|
|
29746
29798
|
|
|
29747
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29799
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/chat-documents.js
|
|
29748
29800
|
var chatDocumentsService = /* @__PURE__ */ __name((deps) => ({
|
|
29749
29801
|
list: /* @__PURE__ */ __name(async (chat, { limit, offset, ref: ref2 }) => {
|
|
29750
29802
|
const store = await accountStore(deps);
|
|
@@ -29774,7 +29826,7 @@ var chatDocumentsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
29774
29826
|
}, "list")
|
|
29775
29827
|
}), "chatDocumentsService");
|
|
29776
29828
|
|
|
29777
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29829
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/retention.js
|
|
29778
29830
|
var observationDuration = /* @__PURE__ */ __name((text2, flag) => {
|
|
29779
29831
|
const match = /^(\d+(?:\.\d+)?)([smhdw])$/.exec(text2);
|
|
29780
29832
|
const units2 = { s: 1e3, m: 6e4, h: 36e5, d: 864e5, w: 6048e5 };
|
|
@@ -29861,7 +29913,7 @@ var isRetentionSelection = /* @__PURE__ */ __name((selection) => {
|
|
|
29861
29913
|
}
|
|
29862
29914
|
}, "isRetentionSelection");
|
|
29863
29915
|
|
|
29864
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29916
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/counters.js
|
|
29865
29917
|
var counterFields = /* @__PURE__ */ __name((text2 = "views,reactions,comments") => {
|
|
29866
29918
|
const fields = text2.split(",").map((one2) => one2.trim());
|
|
29867
29919
|
if (!fields.length || fields.some((one2) => !COUNTER_FIELDS.includes(one2)) || new Set(fields).size !== fields.length)
|
|
@@ -30068,7 +30120,7 @@ var countersService = /* @__PURE__ */ __name((deps) => {
|
|
|
30068
30120
|
};
|
|
30069
30121
|
}, "countersService");
|
|
30070
30122
|
|
|
30071
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30123
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/search-refresh.js
|
|
30072
30124
|
var SYNC_KEY = "messages.sync-first";
|
|
30073
30125
|
var SYNC_BOUNDS = { maxChats: 5, timeMs: 3e4, maxMessages: 500 };
|
|
30074
30126
|
var keyOf3 = /* @__PURE__ */ __name((chat) => JSON.stringify([chat.account.provider, chat.account.account, chat.chatId]), "keyOf");
|
|
@@ -30200,7 +30252,7 @@ var withRefresh = /* @__PURE__ */ __name((found, refreshed) => ({
|
|
|
30200
30252
|
...!refreshed || refreshed.complete ? {} : { coverage: { ...found.coverage, state: "stale" } }
|
|
30201
30253
|
}), "withRefresh");
|
|
30202
30254
|
|
|
30203
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30255
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/embeddings-search.js
|
|
30204
30256
|
var CANDIDATES = 50;
|
|
30205
30257
|
var WORD_HITS = 200;
|
|
30206
30258
|
var RRF_K = 60;
|
|
@@ -30475,13 +30527,13 @@ var meanOf = /* @__PURE__ */ __name((vectors) => {
|
|
|
30475
30527
|
return mean2.map((value) => value / length);
|
|
30476
30528
|
}, "meanOf");
|
|
30477
30529
|
|
|
30478
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30530
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/embeddings.js
|
|
30479
30531
|
var embeddingsService = /* @__PURE__ */ __name((deps) => ({
|
|
30480
30532
|
...embeddingsMaintenance(deps),
|
|
30481
30533
|
...embeddingsSearch(deps)
|
|
30482
30534
|
}), "embeddingsService");
|
|
30483
30535
|
|
|
30484
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30536
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/folders.js
|
|
30485
30537
|
var foldersService = /* @__PURE__ */ __name((deps) => {
|
|
30486
30538
|
const online = /* @__PURE__ */ __name(async (command) => {
|
|
30487
30539
|
if (deps.offline)
|
|
@@ -30622,7 +30674,7 @@ var foldersService = /* @__PURE__ */ __name((deps) => {
|
|
|
30622
30674
|
};
|
|
30623
30675
|
}, "foldersService");
|
|
30624
30676
|
|
|
30625
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30677
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/inbox.js
|
|
30626
30678
|
var INBOX_CHATS = 20;
|
|
30627
30679
|
var REVIEW_DAYS = 3;
|
|
30628
30680
|
var UNANSWERED_HOURS = 24;
|
|
@@ -30830,7 +30882,7 @@ var inboxService = /* @__PURE__ */ __name((deps) => {
|
|
|
30830
30882
|
};
|
|
30831
30883
|
}, "inboxService");
|
|
30832
30884
|
|
|
30833
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30885
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/mentions.js
|
|
30834
30886
|
var REVIEW_COUNT = 500;
|
|
30835
30887
|
var mentionsService = /* @__PURE__ */ __name((deps) => {
|
|
30836
30888
|
const located = /* @__PURE__ */ __name(async () => {
|
|
@@ -30909,7 +30961,7 @@ var mentionsService = /* @__PURE__ */ __name((deps) => {
|
|
|
30909
30961
|
};
|
|
30910
30962
|
}, "mentionsService");
|
|
30911
30963
|
|
|
30912
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30964
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/domain/message-link.js
|
|
30913
30965
|
var fileLinks = /* @__PURE__ */ __name((attachments) => hitFiles(attachments).map(({ position, kind, name }) => ({
|
|
30914
30966
|
position,
|
|
30915
30967
|
kind,
|
|
@@ -30958,7 +31010,7 @@ var validatePermalink = /* @__PURE__ */ __name((link4) => {
|
|
|
30958
31010
|
return { url: link4.url, access: link4.access, reason: link4.reason };
|
|
30959
31011
|
}, "validatePermalink");
|
|
30960
31012
|
|
|
30961
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31013
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/domain/pin-duration.js
|
|
30962
31014
|
var spokenSeconds = /* @__PURE__ */ __name((seconds) => {
|
|
30963
31015
|
if (seconds % 86400 === 0 && seconds > 86400)
|
|
30964
31016
|
return `${seconds / 86400}d`;
|
|
@@ -30990,7 +31042,7 @@ var pinDurationOf = /* @__PURE__ */ __name((value, allowed, flag = "--expire-tim
|
|
|
30990
31042
|
return seconds;
|
|
30991
31043
|
}, "pinDurationOf");
|
|
30992
31044
|
|
|
30993
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31045
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/sends/send-as.js
|
|
30994
31046
|
var sendAsCheck = /* @__PURE__ */ __name((connection, sendAs) => {
|
|
30995
31047
|
if (sendAs === void 0) {
|
|
30996
31048
|
const saved = connection.savedSender?.bind(connection);
|
|
@@ -31015,7 +31067,7 @@ var typedSendAs = /* @__PURE__ */ __name((typed) => {
|
|
|
31015
31067
|
return sendAs;
|
|
31016
31068
|
}, "typedSendAs");
|
|
31017
31069
|
|
|
31018
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31070
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/search/total.js
|
|
31019
31071
|
var TOTAL_CAP = 1e4;
|
|
31020
31072
|
var totalOf = /* @__PURE__ */ __name((count4, shown, hasMore, exact = true) => {
|
|
31021
31073
|
const least = shown + (hasMore ? 1 : 0);
|
|
@@ -31026,7 +31078,7 @@ var totalOf = /* @__PURE__ */ __name((count4, shown, hasMore, exact = true) => {
|
|
|
31026
31078
|
return { value: count4, relation: exact ? "eq" : "gte" };
|
|
31027
31079
|
}, "totalOf");
|
|
31028
31080
|
|
|
31029
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31081
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/search/lucene/meaning-parts.js
|
|
31030
31082
|
var WORD_FIELDS = /* @__PURE__ */ new Set(["text", "exact"]);
|
|
31031
31083
|
var fieldsOfQuery = /* @__PURE__ */ __name((root, everything) => {
|
|
31032
31084
|
let narrows = false;
|
|
@@ -31055,7 +31107,7 @@ var meaningWords = /* @__PURE__ */ __name((root) => {
|
|
|
31055
31107
|
return wanted(root).join(" ").trim();
|
|
31056
31108
|
}, "meaningWords");
|
|
31057
31109
|
|
|
31058
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31110
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/search/question-plan.js
|
|
31059
31111
|
var words2 = /* @__PURE__ */ __name((text2) => normalize(text2).match(/[\p{L}\p{N}]+/gu) ?? [], "words");
|
|
31060
31112
|
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"));
|
|
31061
31113
|
var questionWord = /\b(?:what|which|how|who|where|when|can|could|should)\b|(?:^|\s)(?:сколько|какой|какая|какие|какое|кто|кому|кем|где|когда|как|что|можно|может|могут|ли)(?:\s|$)/iu;
|
|
@@ -31189,7 +31241,7 @@ var questionLookup = /* @__PURE__ */ __name((text2) => {
|
|
|
31189
31241
|
return terms.length ? anyOfTerms(terms, plan.scope) : void 0;
|
|
31190
31242
|
}, "questionLookup");
|
|
31191
31243
|
|
|
31192
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31244
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/messages-combined.js
|
|
31193
31245
|
var COMBINED_DEFAULTS = { candidateDepth: 300, rrfK: 60, rerank: "all", chatCap: 0 };
|
|
31194
31246
|
var tokensOf = /* @__PURE__ */ __name((text2) => normalize(text2).match(/[\p{L}\p{N}\p{Co}\p{M}]+/gu) ?? [], "tokensOf");
|
|
31195
31247
|
var searchCombined = /* @__PURE__ */ __name(async (store, account2, request, messenger = {}, options2 = COMBINED_DEFAULTS) => {
|
|
@@ -31383,7 +31435,7 @@ var signals = /* @__PURE__ */ __name((hit, terms, corrections, execution, mode,
|
|
|
31383
31435
|
return mode === "coverage" ? coverage2 * 4 : mode === "proximity" ? proximity : mode === "phrase" ? phrase2 : coverage2 * 4 + proximity + phrase2;
|
|
31384
31436
|
}, "signals");
|
|
31385
31437
|
|
|
31386
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31438
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/messages-discovery.js
|
|
31387
31439
|
var MEANING_DEPTH = 100;
|
|
31388
31440
|
var RRF_K2 = 60;
|
|
31389
31441
|
var RERANK_DEPTH = 50;
|
|
@@ -31709,7 +31761,7 @@ var mixedWithReranker = /* @__PURE__ */ __name((head, scores) => {
|
|
|
31709
31761
|
})).sort((a, b) => b.mixed - a.mixed).map(({ hit }) => hit);
|
|
31710
31762
|
}, "mixedWithReranker");
|
|
31711
31763
|
|
|
31712
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31764
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/thread-context.js
|
|
31713
31765
|
var THREAD_BOUNDS = { maxHops: 8, maxMessages: 50, maxBytes: 65536, withinMs: 864e5 };
|
|
31714
31766
|
var bytes = /* @__PURE__ */ __name((items, links) => Buffer.byteLength(JSON.stringify({ items, links }), "utf8"), "bytes");
|
|
31715
31767
|
var threadBounds = /* @__PURE__ */ __name((options2 = {}) => {
|
|
@@ -31908,7 +31960,7 @@ var readThreadContext = /* @__PURE__ */ __name(async (store, account2, chat, mes
|
|
|
31908
31960
|
return result;
|
|
31909
31961
|
}, "readThreadContext");
|
|
31910
31962
|
|
|
31911
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31963
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/messages-archive-search.js
|
|
31912
31964
|
var SEARCH_FILL_MS = 200;
|
|
31913
31965
|
var statsStore = /* @__PURE__ */ __name(async (store, account2, request, messenger = {}) => {
|
|
31914
31966
|
const stop = Date.now() + SEARCH_FILL_MS;
|
|
@@ -31977,7 +32029,7 @@ var accountOf2 = /* @__PURE__ */ __name((hit) => {
|
|
|
31977
32029
|
}, "accountOf");
|
|
31978
32030
|
var keyOf4 = /* @__PURE__ */ __name(({ provider, account: account2 }) => `${provider}/${account2}`, "keyOf");
|
|
31979
32031
|
|
|
31980
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32032
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/meaning-model.js
|
|
31981
32033
|
var meaningModel = /* @__PURE__ */ __name(async (store, env = process.env) => {
|
|
31982
32034
|
const chosen = chosenTextModel(env);
|
|
31983
32035
|
if (chosen.from === "chosen" || chosen.id !== DEFAULT_TEXT_MODEL)
|
|
@@ -31992,7 +32044,7 @@ var meaningModel = /* @__PURE__ */ __name(async (store, env = process.env) => {
|
|
|
31992
32044
|
return (counts.get(before2) ?? 0) > (counts.get(now) ?? 0) ? previous.id : current.id;
|
|
31993
32045
|
}, "meaningModel");
|
|
31994
32046
|
|
|
31995
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32047
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/messages-meaning.js
|
|
31996
32048
|
var meaningText = /* @__PURE__ */ __name((question) => {
|
|
31997
32049
|
try {
|
|
31998
32050
|
const text2 = questionLookup(question) === void 0 ? question : questionText(question);
|
|
@@ -32071,7 +32123,7 @@ var meaningLane = /* @__PURE__ */ __name((deps) => async (question, accounts, sh
|
|
|
32071
32123
|
}
|
|
32072
32124
|
}, "meaningLane");
|
|
32073
32125
|
|
|
32074
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32126
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/messages-rerank.js
|
|
32075
32127
|
var rerankLane = /* @__PURE__ */ __name((deps) => {
|
|
32076
32128
|
const choice = deps.reranker ?? DEFAULT_RERANK_MODEL;
|
|
32077
32129
|
if (choice === "off")
|
|
@@ -32083,9 +32135,9 @@ var rerankLane = /* @__PURE__ */ __name((deps) => {
|
|
|
32083
32135
|
return { skipped: { reason: `${model.id} is not downloaded`, step: "models.download", model: model.id } };
|
|
32084
32136
|
try {
|
|
32085
32137
|
const warm = deps.embedders;
|
|
32086
|
-
const reranker = warm ? await warm.reranker(`rerank:${model.id}`, async () => (await import("./process-
|
|
32138
|
+
const reranker = warm ? await warm.reranker(`rerank:${model.id}`, async () => (await import("./process-6Q23D3TO.js")).openRerankerProcess(model, directory2, {
|
|
32087
32139
|
threads: defaultThreads()
|
|
32088
|
-
})) : await (await import("./rerank-
|
|
32140
|
+
})) : await (await import("./rerank-6WLY6MKY.js")).openReranker(model, directory2);
|
|
32089
32141
|
return {
|
|
32090
32142
|
model: model.id,
|
|
32091
32143
|
score: /* @__PURE__ */ __name((question, passages) => reranker.score(plainWords(question), passages), "score"),
|
|
@@ -32105,7 +32157,7 @@ var rerankLane = /* @__PURE__ */ __name((deps) => {
|
|
|
32105
32157
|
};
|
|
32106
32158
|
}, "rerankLane");
|
|
32107
32159
|
|
|
32108
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32160
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/search/question-period.js
|
|
32109
32161
|
var DAY5 = 864e5;
|
|
32110
32162
|
var SPAN = { start: 0, end: 0 };
|
|
32111
32163
|
var phrase = /* @__PURE__ */ __name((source) => new RegExp(`(?<![\\p{L}\\p{N}])(?:${source})(?![\\p{L}\\p{N}])`, "giu"), "phrase");
|
|
@@ -32230,7 +32282,7 @@ var questionPeriod = /* @__PURE__ */ __name((text2, now, zone) => {
|
|
|
32230
32282
|
};
|
|
32231
32283
|
}, "questionPeriod");
|
|
32232
32284
|
|
|
32233
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32285
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/document-pictures.js
|
|
32234
32286
|
import { createHash as createHash10 } from "node:crypto";
|
|
32235
32287
|
var refOf2 = /* @__PURE__ */ __name((target2) => target2.ref ?? `document:${target2.documentId}`, "refOf");
|
|
32236
32288
|
var openPictureEmbedderFor = /* @__PURE__ */ __name(async ({ env, command } = {}) => {
|
|
@@ -32238,7 +32290,7 @@ var openPictureEmbedderFor = /* @__PURE__ */ __name(async ({ env, command } = {}
|
|
|
32238
32290
|
const directory2 = imageModelsDirectory(env);
|
|
32239
32291
|
if (!isImageModelInstalled(model, directory2))
|
|
32240
32292
|
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 });
|
|
32241
|
-
const { openPictureEmbedder } = await import("./embedder-
|
|
32293
|
+
const { openPictureEmbedder } = await import("./embedder-RBDHO6Z6.js");
|
|
32242
32294
|
return openPictureEmbedder(model, directory2);
|
|
32243
32295
|
}, "openPictureEmbedderFor");
|
|
32244
32296
|
var savePicture = /* @__PURE__ */ __name(async (store, target2, bytes2, options2 = {}) => {
|
|
@@ -32259,7 +32311,7 @@ var savePicture = /* @__PURE__ */ __name(async (store, target2, bytes2, options2
|
|
|
32259
32311
|
}, "savePicture");
|
|
32260
32312
|
var removePicture = /* @__PURE__ */ __name((store, target2) => store.notes.removePicture(refOf2(target2)), "removePicture");
|
|
32261
32313
|
|
|
32262
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32314
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/document-source.js
|
|
32263
32315
|
var documentSource = /* @__PURE__ */ __name((note, accounts, profiles, file) => {
|
|
32264
32316
|
const metadata = note.frontMatter;
|
|
32265
32317
|
const account2 = accounts.find(({ id: id2 }) => String(id2) === note.folderId);
|
|
@@ -32281,7 +32333,7 @@ var documentSource = /* @__PURE__ */ __name((note, accounts, profiles, file) =>
|
|
|
32281
32333
|
};
|
|
32282
32334
|
}, "documentSource");
|
|
32283
32335
|
|
|
32284
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32336
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/embeddings/keys.js
|
|
32285
32337
|
var endpointKeyName = /* @__PURE__ */ __name((baseUrl) => {
|
|
32286
32338
|
const host = new URL(baseUrl).host;
|
|
32287
32339
|
return ["openai", "anthropic"].includes(host) ? `endpoint:${host}` : host;
|
|
@@ -32314,7 +32366,7 @@ var embeddingKeys = /* @__PURE__ */ __name((app, env = process.env, keyring) =>
|
|
|
32314
32366
|
};
|
|
32315
32367
|
}, "embeddingKeys");
|
|
32316
32368
|
|
|
32317
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32369
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/models/openai.js
|
|
32318
32370
|
var options = strictObject({
|
|
32319
32371
|
temperature: range(0, 2),
|
|
32320
32372
|
top_p: range(0, 1),
|
|
@@ -32381,7 +32433,7 @@ var openai = {
|
|
|
32381
32433
|
}), "complete")
|
|
32382
32434
|
};
|
|
32383
32435
|
|
|
32384
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32436
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/models/index.js
|
|
32385
32437
|
var modelGateway = /* @__PURE__ */ __name((deps) => ({
|
|
32386
32438
|
complete: /* @__PURE__ */ __name(async (request) => {
|
|
32387
32439
|
if (deps.signal?.aborted)
|
|
@@ -32396,7 +32448,7 @@ var modelGateway = /* @__PURE__ */ __name((deps) => ({
|
|
|
32396
32448
|
if (!adapter && target2.provider === "openai")
|
|
32397
32449
|
adapter = openai;
|
|
32398
32450
|
if (!adapter && target2.provider === "anthropic")
|
|
32399
|
-
adapter = (await import("./anthropic-
|
|
32451
|
+
adapter = (await import("./anthropic-H45W4P22.js")).anthropic;
|
|
32400
32452
|
if (!adapter)
|
|
32401
32453
|
throw new CliError("validation_error", `no model adapter for ${target2.provider}`);
|
|
32402
32454
|
if (request.images !== void 0 && adapter.images !== true)
|
|
@@ -32456,7 +32508,7 @@ var modelGateway = /* @__PURE__ */ __name((deps) => ({
|
|
|
32456
32508
|
}, "complete")
|
|
32457
32509
|
}), "modelGateway");
|
|
32458
32510
|
|
|
32459
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32511
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/enrichment-setting.js
|
|
32460
32512
|
var SECTION2 = "enrichment";
|
|
32461
32513
|
var ENRICHMENT_PROVIDERS = ["openai", "anthropic"];
|
|
32462
32514
|
var DEFAULT_BASE_URLS = {
|
|
@@ -32531,7 +32583,7 @@ var costOf = /* @__PURE__ */ __name((usage, setting) => {
|
|
|
32531
32583
|
return price ? Math.round((usage.input * price.input + usage.output * price.output) * 1e6) / 1e6 : null;
|
|
32532
32584
|
}, "costOf");
|
|
32533
32585
|
|
|
32534
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32586
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/enrichment.js
|
|
32535
32587
|
var ENRICH_PER_RUN = 600;
|
|
32536
32588
|
var BATCH = 20;
|
|
32537
32589
|
var CONCURRENCY = 4;
|
|
@@ -32795,7 +32847,7 @@ var enrichmentState = /* @__PURE__ */ __name(async (store, env, estimateFor, key
|
|
|
32795
32847
|
};
|
|
32796
32848
|
}, "enrichmentState");
|
|
32797
32849
|
|
|
32798
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32850
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/notes-title-tier.js
|
|
32799
32851
|
var plainQueryWords = /* @__PURE__ */ __name((query) => {
|
|
32800
32852
|
let root;
|
|
32801
32853
|
try {
|
|
@@ -32822,7 +32874,7 @@ var titleTiers = /* @__PURE__ */ __name((hits, words4) => {
|
|
|
32822
32874
|
return [...hits].sort((a, b) => rank(a) - rank(b));
|
|
32823
32875
|
}, "titleTiers");
|
|
32824
32876
|
|
|
32825
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32877
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/notes-search.js
|
|
32826
32878
|
var storeQuery = /* @__PURE__ */ __name(async (store, text2, { exact, timezone } = {}) => resolvedQuery(store, parsedQuery(text2, exact), timezone), "storeQuery");
|
|
32827
32879
|
var parsedQuery = /* @__PURE__ */ __name((text2, exact) => validateFields(parseLucene(text2, { ...SEARCH_QUERY, defaultField: exact ? "exact" : "text" })).root, "parsedQuery");
|
|
32828
32880
|
var resolvedQuery = /* @__PURE__ */ __name(async (store, root, timezone) => {
|
|
@@ -33310,7 +33362,7 @@ var searchNotesOf = /* @__PURE__ */ __name(async (store, account2, text2, { acco
|
|
|
33310
33362
|
};
|
|
33311
33363
|
}, "searchNotesOf");
|
|
33312
33364
|
|
|
33313
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33365
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/events-search.js
|
|
33314
33366
|
var MAX_EVENTS_OFFSET = 1e3;
|
|
33315
33367
|
var iso = /* @__PURE__ */ __name((at) => at === null ? null : new Date(at).toISOString(), "iso");
|
|
33316
33368
|
var accountIdsOf = /* @__PURE__ */ __name(async (store, accounts) => {
|
|
@@ -33428,7 +33480,7 @@ var searchEvents = /* @__PURE__ */ __name(async (store, query, { limit = 20, off
|
|
|
33428
33480
|
};
|
|
33429
33481
|
}, "searchEvents");
|
|
33430
33482
|
|
|
33431
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33483
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/search-all-business.js
|
|
33432
33484
|
var OWN_BUSINESS = { provider: "business", account: INTERNAL_NOTES };
|
|
33433
33485
|
var BUSINESS_WORDS_ONLY = "invoices, payments, orders, contracts, subscriptions, products and wallets are found by the words of their numbers and names only";
|
|
33434
33486
|
var placeOf = /* @__PURE__ */ __name(({ source, imported }) => source ?? (imported === void 0 ? OWN_BUSINESS : { provider: imported, account: "" }), "placeOf");
|
|
@@ -33458,7 +33510,7 @@ var searchBusiness = /* @__PURE__ */ __name(async (store, { words: words4, anyWo
|
|
|
33458
33510
|
};
|
|
33459
33511
|
}, "searchBusiness");
|
|
33460
33512
|
|
|
33461
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33513
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/meeting-hit-search.js
|
|
33462
33514
|
var refreshMeetingIndex = /* @__PURE__ */ __name(async (meetings, accountId, signal) => {
|
|
33463
33515
|
let before2 = Number.POSITIVE_INFINITY;
|
|
33464
33516
|
for (; ; ) {
|
|
@@ -33520,7 +33572,7 @@ var searchMeetingHits = /* @__PURE__ */ __name(async (store, query, request, opt
|
|
|
33520
33572
|
return { ...result, selection };
|
|
33521
33573
|
}, "searchMeetingHits");
|
|
33522
33574
|
|
|
33523
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33575
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/search-all-meetings.js
|
|
33524
33576
|
var MOST_HITS_PER_MEETING = 3;
|
|
33525
33577
|
var PAGE_ROWS = 200;
|
|
33526
33578
|
var MOST_PAGES = 25;
|
|
@@ -33748,7 +33800,7 @@ var titleItem = /* @__PURE__ */ __name((account2, meeting, query) => ({
|
|
|
33748
33800
|
foundBy: ["title"]
|
|
33749
33801
|
}), "titleItem");
|
|
33750
33802
|
|
|
33751
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33803
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/search-harder.js
|
|
33752
33804
|
var SECTION3 = "search_harder";
|
|
33753
33805
|
var HARDER_MODELS = {
|
|
33754
33806
|
anthropic: "claude-haiku-5-5",
|
|
@@ -34010,7 +34062,7 @@ var reorderHarder = /* @__PURE__ */ __name(async (question, hits, { laterPage, a
|
|
|
34010
34062
|
};
|
|
34011
34063
|
}, "reorderHarder");
|
|
34012
34064
|
|
|
34013
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34065
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/search-all.js
|
|
34014
34066
|
var RESOURCES_SEARCHED = ["messages", "mail", "notes", "events", "crm", "business", "meetings"];
|
|
34015
34067
|
var refusal = /* @__PURE__ */ __name((error, text2) => {
|
|
34016
34068
|
const { reason, span } = error.details ?? {};
|
|
@@ -34423,7 +34475,7 @@ var insidePeriodFirst = /* @__PURE__ */ __name((ordered, period) => {
|
|
|
34423
34475
|
return ordered.map((item2, rank) => ({ item: item2, score: 1 - rank / PERIOD_DEPTH + (inside2(item2) ? PERIOD_BOOST : 0) })).sort((a, b) => b.score - a.score).map(({ item: item2 }) => item2);
|
|
34424
34476
|
}, "insidePeriodFirst");
|
|
34425
34477
|
|
|
34426
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34478
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/server-search.js
|
|
34427
34479
|
var SERVER_SEARCH_KEY = "messages.server-search";
|
|
34428
34480
|
var SERVER_BOUNDS = { timeMs: 5e3, perCall: 100, maxCalls: 3, textBytes: 262144 };
|
|
34429
34481
|
var DEFAULT_BACKEND = "both";
|
|
@@ -34446,31 +34498,37 @@ var merge = /* @__PURE__ */ __name((one2, other) => {
|
|
|
34446
34498
|
};
|
|
34447
34499
|
}, "merge");
|
|
34448
34500
|
var sameAccount4 = /* @__PURE__ */ __name((one2, other) => one2.provider === other.provider && one2.account === other.account, "sameAccount");
|
|
34449
|
-
var
|
|
34450
|
-
|
|
34451
|
-
|
|
34452
|
-
|
|
34501
|
+
var serverReads = /* @__PURE__ */ __name((account2) => ({
|
|
34502
|
+
fields: {
|
|
34503
|
+
text: ["term", "phrase"],
|
|
34504
|
+
exact: ["term", "phrase"],
|
|
34505
|
+
chat: ["term", "phrase"],
|
|
34506
|
+
from: ["term", "phrase"],
|
|
34507
|
+
date: ["term", "range"]
|
|
34508
|
+
},
|
|
34509
|
+
maxCalls: SERVER_BOUNDS.maxCalls,
|
|
34510
|
+
all: { words: [] },
|
|
34511
|
+
leaf: /* @__PURE__ */ __name((node) => {
|
|
34512
|
+
if (node.field === "text" || node.field === "exact")
|
|
34513
|
+
return { words: node.value === "" ? [] : [node.value] };
|
|
34453
34514
|
const { chat, sender, date: date2 } = node.resolution ?? {};
|
|
34454
34515
|
if (chat)
|
|
34455
|
-
return sameAccount4(chat.account, account2) ?
|
|
34516
|
+
return sameAccount4(chat.account, account2) ? { words: [], chat: chat.chatId } : void 0;
|
|
34456
34517
|
if (sender?.provider === account2.provider)
|
|
34457
|
-
return
|
|
34458
|
-
if (date2)
|
|
34459
|
-
|
|
34460
|
-
|
|
34461
|
-
|
|
34462
|
-
|
|
34463
|
-
|
|
34464
|
-
|
|
34465
|
-
|
|
34466
|
-
return
|
|
34467
|
-
}
|
|
34468
|
-
|
|
34469
|
-
|
|
34470
|
-
|
|
34471
|
-
const should = node.clauses.filter(({ occur }) => occur === "should");
|
|
34472
|
-
return should.length ? should.flatMap(({ node: node2 }) => branchesOf(node2, account2)) : [{ words: [] }];
|
|
34473
|
-
}, "branchesOf");
|
|
34518
|
+
return { words: [], from: sender.id };
|
|
34519
|
+
if (date2) {
|
|
34520
|
+
const { from, to } = windowOf(date2);
|
|
34521
|
+
return {
|
|
34522
|
+
words: [],
|
|
34523
|
+
...from === void 0 ? {} : { minDate: from },
|
|
34524
|
+
...to === void 0 ? {} : { maxDate: to }
|
|
34525
|
+
};
|
|
34526
|
+
}
|
|
34527
|
+
return { words: [] };
|
|
34528
|
+
}, "leaf"),
|
|
34529
|
+
both: merge,
|
|
34530
|
+
sends: /* @__PURE__ */ __name(({ words: words4 }) => words4.length > 0, "sends")
|
|
34531
|
+
}), "serverReads");
|
|
34474
34532
|
var asQuery = /* @__PURE__ */ __name(({ words: words4, from, ...rest }) => ({
|
|
34475
34533
|
text: words4.join(" "),
|
|
34476
34534
|
...rest,
|
|
@@ -34527,15 +34585,12 @@ var searchServer = /* @__PURE__ */ __name(async (deps, request) => {
|
|
|
34527
34585
|
const scoped = execution.chat ? sameAccount4(execution.chat.account, account2) ? { words: [], chat: execution.chat.chatId } : void 0 : { words: [] };
|
|
34528
34586
|
if (!scoped)
|
|
34529
34587
|
return skip("other_accounts");
|
|
34530
|
-
const
|
|
34531
|
-
|
|
34532
|
-
...new Map(all.filter(({ words: words4 }) => words4.length).map((branch) => [JSON.stringify(branch), branch])).values()
|
|
34533
|
-
];
|
|
34534
|
-
if (!unique.length)
|
|
34588
|
+
const { calls, complete } = serviceCallsOf(execution.root, serverReads(account2), scoped);
|
|
34589
|
+
if (!calls.length)
|
|
34535
34590
|
return skip("no_words");
|
|
34536
|
-
if (deps.messenger.serverSearch === "chat" &&
|
|
34591
|
+
if (deps.messenger.serverSearch === "chat" && calls.some(({ chat }) => chat === void 0))
|
|
34537
34592
|
return skip("needs_chat");
|
|
34538
|
-
if (
|
|
34593
|
+
if (!complete)
|
|
34539
34594
|
report.complete = false;
|
|
34540
34595
|
const controller = new AbortController();
|
|
34541
34596
|
const timer = setTimeout(() => controller.abort(), timeMs);
|
|
@@ -34545,7 +34600,6 @@ var searchServer = /* @__PURE__ */ __name(async (deps, request) => {
|
|
|
34545
34600
|
resolve7(BOUND);
|
|
34546
34601
|
stop.addEventListener("abort", () => resolve7(BOUND), { once: true });
|
|
34547
34602
|
});
|
|
34548
|
-
const calls = unique.slice(0, SERVER_BOUNDS.maxCalls);
|
|
34549
34603
|
const pending = new Set(calls);
|
|
34550
34604
|
const found = [];
|
|
34551
34605
|
let open7 = true;
|
|
@@ -34612,7 +34666,7 @@ var searchServer = /* @__PURE__ */ __name(async (deps, request) => {
|
|
|
34612
34666
|
return { report, sources };
|
|
34613
34667
|
}, "searchServer");
|
|
34614
34668
|
|
|
34615
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34669
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/messages.js
|
|
34616
34670
|
var DELETE_AT_ONCE = 10;
|
|
34617
34671
|
var filesOf = /* @__PURE__ */ __name(({ attachments }) => {
|
|
34618
34672
|
const files = fileLinks(attachments);
|
|
@@ -35052,7 +35106,7 @@ var checkMediaOptions = /* @__PURE__ */ __name((messenger, asked, attachments) =
|
|
|
35052
35106
|
throw new CliError("validation_error", `${MEDIA_FLAGS[first2]} needs a --photo or --file`);
|
|
35053
35107
|
}, "checkMediaOptions");
|
|
35054
35108
|
|
|
35055
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35109
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/domain/channel-tags.js
|
|
35056
35110
|
var CHANNEL_TAG_RULES_VERSION = "keywords-v1";
|
|
35057
35111
|
var RULES2 = {
|
|
35058
35112
|
ai: [/\b(ai|gpt|llm|machine learning|artificial intelligence)\b/iu, /нейросет|искусственн/iu],
|
|
@@ -35067,7 +35121,7 @@ var classifyChannel = /* @__PURE__ */ __name((metadata) => Object.entries(RULES2
|
|
|
35067
35121
|
return fields.length ? [{ tag, score: fields.length / 3, fields }] : [];
|
|
35068
35122
|
}), "classifyChannel");
|
|
35069
35123
|
|
|
35070
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35124
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/metadata.js
|
|
35071
35125
|
var metadataService = /* @__PURE__ */ __name((deps) => {
|
|
35072
35126
|
const held = /* @__PURE__ */ __name(async (reference, { includeLeft = false } = {}) => {
|
|
35073
35127
|
const store = await deps.store();
|
|
@@ -35153,7 +35207,7 @@ var metadataService = /* @__PURE__ */ __name((deps) => {
|
|
|
35153
35207
|
};
|
|
35154
35208
|
}, "metadataService");
|
|
35155
35209
|
|
|
35156
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35210
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/moderation/run.js
|
|
35157
35211
|
var FIRST_LOOK_MS = 24 * 36e5;
|
|
35158
35212
|
var moderateWith = /* @__PURE__ */ __name(async (run2) => {
|
|
35159
35213
|
const { chatId, title, rules, point, since, dryRun } = run2;
|
|
@@ -35190,7 +35244,7 @@ var moderateWith = /* @__PURE__ */ __name(async (run2) => {
|
|
|
35190
35244
|
return { chatId, rows, notes };
|
|
35191
35245
|
}, "moderateWith");
|
|
35192
35246
|
|
|
35193
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35247
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/moderation.js
|
|
35194
35248
|
var moderationService = /* @__PURE__ */ __name((deps) => {
|
|
35195
35249
|
const file = /* @__PURE__ */ __name(() => new ModerationRules(moderationPathFor(deps.messenger.app, deps.profile ?? "default", deps.env ?? process.env)), "file");
|
|
35196
35250
|
const group = /* @__PURE__ */ __name(async (chat) => {
|
|
@@ -35268,7 +35322,7 @@ var moderatorOf = /* @__PURE__ */ __name((adapter, deps) => ({
|
|
|
35268
35322
|
}, "removePerson")
|
|
35269
35323
|
}), "moderatorOf");
|
|
35270
35324
|
|
|
35271
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35325
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/person-meetings.js
|
|
35272
35326
|
var SCAN = 1e3;
|
|
35273
35327
|
var personMeetings = /* @__PURE__ */ __name(async (store, people, accounts, { limit = 10, since, until } = {}) => {
|
|
35274
35328
|
const byId2 = new Map(accounts.map((one2) => [one2.id, one2]));
|
|
@@ -35320,7 +35374,7 @@ var personMeetings = /* @__PURE__ */ __name(async (store, people, accounts, { li
|
|
|
35320
35374
|
return { items, total: newest.length, hasMore: cut || newest.length > limit };
|
|
35321
35375
|
}, "personMeetings");
|
|
35322
35376
|
|
|
35323
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35377
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/person-context.js
|
|
35324
35378
|
var CONTEXT_MESSAGES2 = 10;
|
|
35325
35379
|
var CONTEXT_BYTES = 64 * 1024;
|
|
35326
35380
|
var toContext = /* @__PURE__ */ __name((key, message, chatTitle2) => ({
|
|
@@ -35626,10 +35680,10 @@ var personMessages = /* @__PURE__ */ __name(async (store, asked, reference, { ch
|
|
|
35626
35680
|
};
|
|
35627
35681
|
}, "personMessages");
|
|
35628
35682
|
|
|
35629
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35683
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/meeting-evidence.js
|
|
35630
35684
|
import { createHash as createHash11 } from "node:crypto";
|
|
35631
35685
|
|
|
35632
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35686
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/meeting-reference.js
|
|
35633
35687
|
var missing3 = /* @__PURE__ */ __name(() => new CliError("not_found", "the meeting evidence is unavailable for this account"), "missing");
|
|
35634
35688
|
var authorizedMeetingMetadata = /* @__PURE__ */ __name(async (store, accountId, reference, options2 = {}) => {
|
|
35635
35689
|
const parsed = parseMeetingReference(reference);
|
|
@@ -35677,7 +35731,7 @@ var resolveMeetingReference = /* @__PURE__ */ __name(async (store, accountId, re
|
|
|
35677
35731
|
};
|
|
35678
35732
|
}, "resolveMeetingReference");
|
|
35679
35733
|
|
|
35680
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35734
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/meeting-evidence.js
|
|
35681
35735
|
var hash = /* @__PURE__ */ __name((value) => createHash11("sha256").update(JSON.stringify(value)).digest("hex"), "hash");
|
|
35682
35736
|
var checkMeetingCancelled = /* @__PURE__ */ __name((signal) => {
|
|
35683
35737
|
if (signal?.aborted)
|
|
@@ -35876,7 +35930,7 @@ var readMeetingEvidence = /* @__PURE__ */ __name(async (store, accountId, refere
|
|
|
35876
35930
|
return { ...packet, fingerprint: hash(packet) };
|
|
35877
35931
|
}, "readMeetingEvidence");
|
|
35878
35932
|
|
|
35879
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35933
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/person-meeting-context.js
|
|
35880
35934
|
var personMeetingContext = /* @__PURE__ */ __name(async (store, personReference, options2) => {
|
|
35881
35935
|
const { meetings = 10, cues = 5, bytes: bytes2 = 64 * 1024, scanLimit = 1e3, since, signal } = options2;
|
|
35882
35936
|
const requestedAccounts = options2.accountIds;
|
|
@@ -35975,7 +36029,7 @@ var personMeetingContext = /* @__PURE__ */ __name(async (store, personReference,
|
|
|
35975
36029
|
};
|
|
35976
36030
|
}, "personMeetingContext");
|
|
35977
36031
|
|
|
35978
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36032
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/person-preparation.js
|
|
35979
36033
|
var PREPARE_BYTES = 96 * 1024;
|
|
35980
36034
|
var MEETINGS = 5;
|
|
35981
36035
|
var CUES = 3;
|
|
@@ -36098,7 +36152,7 @@ var meetingsOf = /* @__PURE__ */ __name(async (store, uid, stored, since, left)
|
|
|
36098
36152
|
}
|
|
36099
36153
|
}, "meetingsOf");
|
|
36100
36154
|
|
|
36101
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36155
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/person-profile.js
|
|
36102
36156
|
var personProfile = /* @__PURE__ */ __name(async (deps, person, known2) => {
|
|
36103
36157
|
const online = deps.offline ? void 0 : await deps.connection();
|
|
36104
36158
|
const held = await storeIfOpen(deps);
|
|
@@ -36168,7 +36222,7 @@ var quiet = /* @__PURE__ */ __name((facts) => facts.chats.map(({ id: id2, title,
|
|
|
36168
36222
|
complete: false
|
|
36169
36223
|
})), "quiet");
|
|
36170
36224
|
|
|
36171
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36225
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/person-timeline.js
|
|
36172
36226
|
var TIMELINE_ITEMS = 50;
|
|
36173
36227
|
var TIMELINE_MAX = 500;
|
|
36174
36228
|
var SCOPES = ["personal", "work"];
|
|
@@ -36230,7 +36284,7 @@ var personTimeline = /* @__PURE__ */ __name(async (store, asked, reference, { sc
|
|
|
36230
36284
|
};
|
|
36231
36285
|
}, "personTimeline");
|
|
36232
36286
|
|
|
36233
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36287
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/people.js
|
|
36234
36288
|
var peopleService = /* @__PURE__ */ __name((deps) => {
|
|
36235
36289
|
const localCard = /* @__PURE__ */ __name(async (card, includeNotes = false) => {
|
|
36236
36290
|
const held = await storeIfOpen(deps);
|
|
@@ -36495,7 +36549,7 @@ var withoutPhone = /* @__PURE__ */ __name((answer) => {
|
|
|
36495
36549
|
return rest;
|
|
36496
36550
|
}, "withoutPhone");
|
|
36497
36551
|
|
|
36498
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36552
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/private-people.js
|
|
36499
36553
|
var noteItem = /* @__PURE__ */ __name((provider, note) => ({
|
|
36500
36554
|
id: note.id,
|
|
36501
36555
|
contact: formatReference({ type: "contact", provider, id: note.personId }),
|
|
@@ -36539,7 +36593,7 @@ var privatePeopleService = /* @__PURE__ */ __name((deps) => {
|
|
|
36539
36593
|
};
|
|
36540
36594
|
}, "privatePeopleService");
|
|
36541
36595
|
|
|
36542
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36596
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/rankings.js
|
|
36543
36597
|
var empty = /* @__PURE__ */ __name(() => ({
|
|
36544
36598
|
total: 0,
|
|
36545
36599
|
population: 0,
|
|
@@ -36795,7 +36849,7 @@ var rankingsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
36795
36849
|
}, "evidence")
|
|
36796
36850
|
}), "rankingsService");
|
|
36797
36851
|
|
|
36798
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36852
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/reply-stats.js
|
|
36799
36853
|
var FIELDS = ["date", "chat", "kind", "muted"];
|
|
36800
36854
|
var WAITING_TAIL = 100;
|
|
36801
36855
|
var plainOnly = /* @__PURE__ */ __name((text2, command) => {
|
|
@@ -36929,7 +36983,7 @@ var replyStatsService = /* @__PURE__ */ __name((deps) => {
|
|
|
36929
36983
|
};
|
|
36930
36984
|
}, "replyStatsService");
|
|
36931
36985
|
|
|
36932
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36986
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/searches.js
|
|
36933
36987
|
var savedSearchItem = /* @__PURE__ */ __name((one2) => ({
|
|
36934
36988
|
id: one2.id,
|
|
36935
36989
|
name: one2.name,
|
|
@@ -37055,7 +37109,7 @@ var searchesService = /* @__PURE__ */ __name((deps) => {
|
|
|
37055
37109
|
};
|
|
37056
37110
|
}, "searchesService");
|
|
37057
37111
|
|
|
37058
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37112
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/tags.js
|
|
37059
37113
|
var TAGGING_QUERY = {
|
|
37060
37114
|
entity: "tagging",
|
|
37061
37115
|
backend: "sql",
|
|
@@ -37139,7 +37193,7 @@ var tagsService = /* @__PURE__ */ __name((deps) => {
|
|
|
37139
37193
|
};
|
|
37140
37194
|
}, "tagsService");
|
|
37141
37195
|
|
|
37142
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37196
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/task-stats.js
|
|
37143
37197
|
var TASK_STATS_BY = ["chat", "meeting", "project"];
|
|
37144
37198
|
var PERIOD_FIELD = "created";
|
|
37145
37199
|
var refuseNestedPeriod = /* @__PURE__ */ __name((node, top = true) => {
|
|
@@ -37259,18 +37313,18 @@ var meetingIdOf = /* @__PURE__ */ __name((group) => {
|
|
|
37259
37313
|
}
|
|
37260
37314
|
}, "meetingIdOf");
|
|
37261
37315
|
var meetingNames = /* @__PURE__ */ __name(async (store, groups) => {
|
|
37262
|
-
const
|
|
37316
|
+
const meetingOf2 = new Map(groups.flatMap((group) => {
|
|
37263
37317
|
const id2 = meetingIdOf(group);
|
|
37264
37318
|
return id2 === void 0 ? [] : [[group, id2]];
|
|
37265
37319
|
}));
|
|
37266
|
-
const titles = await store.tasks.statNames("meeting", [...new Set(
|
|
37267
|
-
return new Map([...
|
|
37320
|
+
const titles = await store.tasks.statNames("meeting", [...new Set(meetingOf2.values())]);
|
|
37321
|
+
return new Map([...meetingOf2].flatMap(([group, id2]) => {
|
|
37268
37322
|
const title = titles.get(id2);
|
|
37269
37323
|
return title === void 0 ? [] : [[group, title]];
|
|
37270
37324
|
}));
|
|
37271
37325
|
}, "meetingNames");
|
|
37272
37326
|
|
|
37273
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37327
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/tasks.js
|
|
37274
37328
|
var TASK_QUERY = {
|
|
37275
37329
|
entity: "task",
|
|
37276
37330
|
backend: "sql",
|
|
@@ -37770,7 +37824,7 @@ var taskView = /* @__PURE__ */ __name(async (store, account2, task2) => {
|
|
|
37770
37824
|
};
|
|
37771
37825
|
}, "taskView");
|
|
37772
37826
|
|
|
37773
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37827
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/topics.js
|
|
37774
37828
|
var actionOf = /* @__PURE__ */ __name(({ title, closed, pinned, hidden, icon }) => {
|
|
37775
37829
|
const set = [closed, pinned, hidden].filter((one2) => one2 !== void 0).length;
|
|
37776
37830
|
if (title !== void 0 || icon !== void 0 || set !== 1)
|
|
@@ -37969,7 +38023,7 @@ var topicsService = /* @__PURE__ */ __name((deps) => {
|
|
|
37969
38023
|
};
|
|
37970
38024
|
}, "topicsService");
|
|
37971
38025
|
|
|
37972
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38026
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/crm/sync.js
|
|
37973
38027
|
var CLOCK_MARGIN = 60 * 6e4;
|
|
37974
38028
|
var GAPS = "crm:gaps";
|
|
37975
38029
|
var crmGapsOf = /* @__PURE__ */ __name(async (store, account2) => {
|
|
@@ -37981,7 +38035,7 @@ var crmGapsOf = /* @__PURE__ */ __name(async (store, account2) => {
|
|
|
37981
38035
|
}
|
|
37982
38036
|
}, "crmGapsOf");
|
|
37983
38037
|
|
|
37984
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38038
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/crm/writer.js
|
|
37985
38039
|
var CRM_ASSIGN_OTHERS_KEY = "crm.assign-others";
|
|
37986
38040
|
var CRM_WRITE_DEFAULTS = {
|
|
37987
38041
|
"deals.delete": "ask",
|
|
@@ -37989,10 +38043,10 @@ var CRM_WRITE_DEFAULTS = {
|
|
|
37989
38043
|
[CRM_ASSIGN_OTHERS_KEY]: "deny"
|
|
37990
38044
|
};
|
|
37991
38045
|
|
|
37992
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38046
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/sends/guard.js
|
|
37993
38047
|
import { randomUUID as randomUUID5 } from "node:crypto";
|
|
37994
38048
|
|
|
37995
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38049
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/sends/flood.js
|
|
37996
38050
|
import { mkdirSync as mkdirSync3, readFileSync as readFileSync3, renameSync, writeFileSync as writeFileSync3 } from "node:fs";
|
|
37997
38051
|
import { dirname as dirname5, join as join13 } from "node:path";
|
|
37998
38052
|
var MOST_DEADLINES = 50;
|
|
@@ -38076,11 +38130,11 @@ var FloodMemory = class {
|
|
|
38076
38130
|
}
|
|
38077
38131
|
};
|
|
38078
38132
|
|
|
38079
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38133
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/sends/journal.js
|
|
38080
38134
|
import { appendFileSync, mkdirSync as mkdirSync5, readFileSync as readFileSync4 } from "node:fs";
|
|
38081
38135
|
import { dirname as dirname7, join as join14 } from "node:path";
|
|
38082
38136
|
|
|
38083
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38137
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/sends/file-lock.js
|
|
38084
38138
|
import { closeSync, mkdirSync as mkdirSync4, openSync, statSync, unlinkSync } from "node:fs";
|
|
38085
38139
|
import { dirname as dirname6 } from "node:path";
|
|
38086
38140
|
var LOCK_WAIT_MS = 5e3;
|
|
@@ -38147,7 +38201,7 @@ var lockTime = /* @__PURE__ */ __name((lock) => {
|
|
|
38147
38201
|
}
|
|
38148
38202
|
}, "lockTime");
|
|
38149
38203
|
|
|
38150
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38204
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/sends/journal.js
|
|
38151
38205
|
var sendsPathFor = /* @__PURE__ */ __name((app, profile, env = process.env) => join14(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "sends", `${profile}.jsonl`), "sendsPathFor");
|
|
38152
38206
|
var SendJournal = class {
|
|
38153
38207
|
static {
|
|
@@ -38224,7 +38278,7 @@ var withSendId = /* @__PURE__ */ __name((entry) => {
|
|
|
38224
38278
|
return cid === void 0 || rest.sendId !== void 0 ? rest : { ...rest, sendId: String(cid) };
|
|
38225
38279
|
}, "withSendId");
|
|
38226
38280
|
|
|
38227
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38281
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/sends/recipients.js
|
|
38228
38282
|
import { existsSync, readFileSync as readFileSync5, rmSync as rmSync2 } from "node:fs";
|
|
38229
38283
|
import { join as join15 } from "node:path";
|
|
38230
38284
|
var recipientsPathFor = /* @__PURE__ */ __name((app, profile, env = process.env) => join15(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "profiles", `${profile}.recipients.json`), "recipientsPathFor");
|
|
@@ -38336,23 +38390,14 @@ var RecipientList = class {
|
|
|
38336
38390
|
}
|
|
38337
38391
|
};
|
|
38338
38392
|
|
|
38339
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38393
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/sends/guard.js
|
|
38340
38394
|
var HOUR_MS = 60 * 60 * 1e3;
|
|
38341
|
-
var READS = /* @__PURE__ */ new Set([
|
|
38342
|
-
"attachments.extract",
|
|
38343
|
-
"conversations.embeddings",
|
|
38344
|
-
"conversations.links",
|
|
38345
|
-
"messages.server-search",
|
|
38346
|
-
"messages.sync-first",
|
|
38347
|
-
"stats.contacts.top.sync-first",
|
|
38348
|
-
"stats.messages.counters.sync",
|
|
38349
|
-
"stats.messages.show.sync-first",
|
|
38350
|
-
"stats.messages.top.sync-first",
|
|
38351
|
-
"store.gaps.repair"
|
|
38352
|
-
]);
|
|
38353
38395
|
var countsTowardLimit = /* @__PURE__ */ __name(({ kind = "message", action, notify }) => kind === "message" || kind === "forward" || kind === "edit" || kind === "delete" || kind === "pin" && notify === true || action === "create" || action === "members.add" || action === "requests.accept" || action === "join" || action === "contact-import", "countsTowardLimit");
|
|
38354
38396
|
var weightOf = /* @__PURE__ */ __name(({ kind = "message", action, count: count4, people }) => kind === "delete" || kind === "message" && action === void 0 ? Math.max(1, count4 ?? 1) : action === "create" || action === "members.add" || action === "requests.accept" || action === "contact-import" ? Math.max(1, people ?? count4 ?? 1) : 1, "weightOf");
|
|
38355
|
-
var timeOf = /* @__PURE__ */ __name((entry) =>
|
|
38397
|
+
var timeOf = /* @__PURE__ */ __name((entry) => {
|
|
38398
|
+
const scheduled = entry.scheduledFor === void 0 ? Number.NaN : Date.parse(entry.scheduledFor);
|
|
38399
|
+
return Number.isNaN(scheduled) ? Date.parse(entry.at) : scheduled;
|
|
38400
|
+
}, "timeOf");
|
|
38356
38401
|
var ceilingRefusal = /* @__PURE__ */ __name((key, command) => new CliError("permission_error", `${key} is not allowed: setup's answer keeps every WireCat tool read-only; the owner changes it at a terminal with \`${command} setup\``, { permission: key }), "ceilingRefusal");
|
|
38357
38402
|
var levelRefusal = /* @__PURE__ */ __name((refused, fix = `${refused.command} ${refused.profile} config set permissions.${refused.key} allow`) => refused.named === CEILING_KEY ? ceilingRefusal(refused.key, refused.command) : new CliError("permission_error", `profile ${refused.profile} does not let ${refused.key} write (permissions.${refused.named} is ${refused.level}, from the ${refused.permissionSources[refused.named ?? ""] ?? "default"}); to allow it: ${fix}`, { permission: refused.key }), "levelRefusal");
|
|
38358
38403
|
var sendGuard = /* @__PURE__ */ __name(({ profile, recipients, command = recipients.command, readOnlyLock, permissions, permissionSources = {}, permissionDefaults, permissionFix, ask: ask2 = refuseToAsk, sendsPerHour, journal, flood, warn, now = /* @__PURE__ */ __name(() => /* @__PURE__ */ new Date(), "now") }) => {
|
|
@@ -38360,13 +38405,13 @@ var sendGuard = /* @__PURE__ */ __name(({ profile, recipients, command = recipie
|
|
|
38360
38405
|
let reservation;
|
|
38361
38406
|
const answered = /* @__PURE__ */ new WeakSet();
|
|
38362
38407
|
const refuseReadOnly = /* @__PURE__ */ __name(({ key }) => {
|
|
38363
|
-
if (key !== void 0 &&
|
|
38408
|
+
if (key !== void 0 && STORE_ONLY_KEYS.has(key))
|
|
38364
38409
|
return;
|
|
38365
38410
|
if (readOnlyLock)
|
|
38366
38411
|
throw readOnlyRefusal(readOnlyLock, MESSENGER_CHANGE_REFUSAL);
|
|
38367
38412
|
}, "refuseReadOnly");
|
|
38368
38413
|
const refuseHeld = /* @__PURE__ */ __name(({ key }) => {
|
|
38369
|
-
if (key !== void 0 &&
|
|
38414
|
+
if (key !== void 0 && STORE_ONLY_KEYS.has(key))
|
|
38370
38415
|
return;
|
|
38371
38416
|
const block = flood?.sendBlock();
|
|
38372
38417
|
if (!block)
|
|
@@ -38380,7 +38425,7 @@ var sendGuard = /* @__PURE__ */ __name(({ profile, recipients, command = recipie
|
|
|
38380
38425
|
if (levels !== void 0) {
|
|
38381
38426
|
const key = request.key ?? keyForWrite(kind, action);
|
|
38382
38427
|
const { level, key: named3 } = levelFor(levels, key, permissionDefaults);
|
|
38383
|
-
if (level
|
|
38428
|
+
if (stops(level, key))
|
|
38384
38429
|
throw levelRefusal({ profile, command, key, level, named: named3, permissionSources }, permissionFix?.(request, key));
|
|
38385
38430
|
if (level === "ask" && !answered.has(request)) {
|
|
38386
38431
|
throw new CliError("confirmation_required", `${key} asks before it acts, and it was not asked`);
|
|
@@ -38403,6 +38448,8 @@ var sendGuard = /* @__PURE__ */ __name(({ profile, recipients, command = recipie
|
|
|
38403
38448
|
throw new CliError("rate_limited", `${count4} at once is more than the hourly limit of profile ${profile} (sendsPerHour ${sendsPerHour}) \u2014 do fewer at a time`);
|
|
38404
38449
|
}
|
|
38405
38450
|
const at = request.scheduledFor ? Date.parse(request.scheduledFor) : now().getTime();
|
|
38451
|
+
if (Number.isNaN(at))
|
|
38452
|
+
throw new CliError("validation_error", `"${request.scheduledFor}" is not a time to send at \u2014 use ISO 8601`);
|
|
38406
38453
|
const counted2 = entries.filter(countsTowardLimit).filter((entry) => entry.outcome === "sent" || entry.outcome === "outcome_unknown" || entry.outcome === "reserved").filter((entry) => Math.abs(timeOf(entry) - at) < HOUR_MS);
|
|
38407
38454
|
const unsure = /* @__PURE__ */ __name((entry) => entry.outcome === "outcome_unknown", "unsure");
|
|
38408
38455
|
const same2 = /* @__PURE__ */ __name((a, b) => a.sendId !== void 0 && a.sendId === b.sendId && a.chatId === b.chatId, "same");
|
|
@@ -38531,7 +38578,7 @@ var guardFor = /* @__PURE__ */ __name((app, settings, warn, env = process.env, a
|
|
|
38531
38578
|
}), "guardFor");
|
|
38532
38579
|
var journalFailure = /* @__PURE__ */ __name((error) => error?.code ?? (error instanceof Error ? error.name : "error"), "journalFailure");
|
|
38533
38580
|
|
|
38534
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38581
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/business-context.js
|
|
38535
38582
|
var SECTION_LIMIT = 20;
|
|
38536
38583
|
var STORE_PAGE = 500;
|
|
38537
38584
|
var sectionOf = /* @__PURE__ */ __name((all, limit, next, { more = false, total = all.length, newest = false } = {}) => {
|
|
@@ -38655,7 +38702,7 @@ var coverageFor = /* @__PURE__ */ __name(async (store, base, scope) => {
|
|
|
38655
38702
|
}, "coverageFor");
|
|
38656
38703
|
var newestFirst2 = /* @__PURE__ */ __name((a, b) => (b.at ?? "").localeCompare(a.at ?? "") || a.ref.localeCompare(b.ref), "newestFirst");
|
|
38657
38704
|
|
|
38658
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38705
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/communications.js
|
|
38659
38706
|
var MAIL_ROWS = 500;
|
|
38660
38707
|
var EVENT_ROWS2 = 1e3;
|
|
38661
38708
|
var RECORDED_ROWS = 100;
|
|
@@ -38801,7 +38848,7 @@ var communicationsOf = /* @__PURE__ */ __name(async (store, asked, scope, { sinc
|
|
|
38801
38848
|
};
|
|
38802
38849
|
}, "communicationsOf");
|
|
38803
38850
|
|
|
38804
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38851
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/money-context.js
|
|
38805
38852
|
var invoiceLine = /* @__PURE__ */ __name((invoice, linkedBy) => ({
|
|
38806
38853
|
ref: invoice.ref,
|
|
38807
38854
|
title: invoice.title,
|
|
@@ -38873,7 +38920,7 @@ var moneyOf = /* @__PURE__ */ __name((rows, limit, next, complete) => {
|
|
|
38873
38920
|
};
|
|
38874
38921
|
}, "moneyOf");
|
|
38875
38922
|
|
|
38876
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38923
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/organization-context.js
|
|
38877
38924
|
var dealLine = /* @__PURE__ */ __name((deal) => ({
|
|
38878
38925
|
ref: deal.ref,
|
|
38879
38926
|
kind: deal.kind,
|
|
@@ -39016,7 +39063,7 @@ var organizationContext = /* @__PURE__ */ __name(async (store, reference, { acco
|
|
|
39016
39063
|
};
|
|
39017
39064
|
}, "organizationContext");
|
|
39018
39065
|
|
|
39019
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39066
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/deal-context.js
|
|
39020
39067
|
var DAY6 = 864e5;
|
|
39021
39068
|
var dealContext = /* @__PURE__ */ __name(async (store, reference, { accounts, limit = SECTION_LIMIT, now = Date.now(), deniedKinds = [] } = {}) => {
|
|
39022
39069
|
const scope = scopeOf4(accounts, deniedKinds);
|
|
@@ -39141,7 +39188,7 @@ var dealBrief = /* @__PURE__ */ __name((context2) => ({
|
|
|
39141
39188
|
notRead: context2.coverage.notRead
|
|
39142
39189
|
}), "dealBrief");
|
|
39143
39190
|
|
|
39144
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39191
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/evidence.js
|
|
39145
39192
|
import { createHash as createHash12, randomUUID as randomUUID6 } from "node:crypto";
|
|
39146
39193
|
var hash2 = /* @__PURE__ */ __name((value) => createHash12("sha256").update(JSON.stringify(value)).digest("hex"), "hash");
|
|
39147
39194
|
var positive2 = /* @__PURE__ */ __name((value, name, minimum = 1) => {
|
|
@@ -39215,7 +39262,7 @@ var prepareEvidencePacket = /* @__PURE__ */ __name(({ kind, source, page, limits
|
|
|
39215
39262
|
return { ...content, id: randomUUID6(), fingerprint: hash2(content) };
|
|
39216
39263
|
}, "prepareEvidencePacket");
|
|
39217
39264
|
|
|
39218
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39265
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/evidence-read.js
|
|
39219
39266
|
var readEvidencePacket = /* @__PURE__ */ __name(async (store, account2, { chat, limit, before: before2 }, messenger = {}) => {
|
|
39220
39267
|
if (!Number.isSafeInteger(limit) || limit < 1 || limit > 100)
|
|
39221
39268
|
throw new CliError("validation_error", "evidence message limit must be an integer from 1 to 100");
|
|
@@ -39235,7 +39282,7 @@ var readEvidencePacket = /* @__PURE__ */ __name(async (store, account2, { chat,
|
|
|
39235
39282
|
return { ...packet, nextBeforeId: older && last ? last.id : null };
|
|
39236
39283
|
}, "readEvidencePacket");
|
|
39237
39284
|
|
|
39238
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39285
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/meeting-links.js
|
|
39239
39286
|
var readMeetingLinks = /* @__PURE__ */ __name(async (store, request) => {
|
|
39240
39287
|
const { maxMessages, url, ...selecting } = request;
|
|
39241
39288
|
const { input, selection } = await resolveMeetingSelection(store, selecting);
|
|
@@ -39274,10 +39321,10 @@ var readMeetingLinks = /* @__PURE__ */ __name(async (store, request) => {
|
|
|
39274
39321
|
};
|
|
39275
39322
|
}, "readMeetingLinks");
|
|
39276
39323
|
|
|
39277
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39324
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/meeting-project-candidates.js
|
|
39278
39325
|
import { createHash as createHash13 } from "node:crypto";
|
|
39279
39326
|
|
|
39280
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39327
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/meeting-project-candidate-validation.js
|
|
39281
39328
|
function invalid3(field, response = false) {
|
|
39282
39329
|
throw new CliError(response ? "invalid_response" : "validation_error", `invalid project candidate ${field}`);
|
|
39283
39330
|
}
|
|
@@ -39396,7 +39443,7 @@ var candidateCatalog = /* @__PURE__ */ __name((catalog, limits) => {
|
|
|
39396
39443
|
}
|
|
39397
39444
|
}, "candidateCatalog");
|
|
39398
39445
|
|
|
39399
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39446
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/meeting-project-candidates.js
|
|
39400
39447
|
var createMeetingProjectCandidateReader = /* @__PURE__ */ __name((scope, accountId, ports) => {
|
|
39401
39448
|
const fixed = snapshotMeetingScope(scope);
|
|
39402
39449
|
if (!Number.isSafeInteger(accountId) || accountId < 1 || typeof ports?.vocabulary?.vocabulary !== "function")
|
|
@@ -39449,7 +39496,7 @@ var createMeetingProjectCandidateReader = /* @__PURE__ */ __name((scope, account
|
|
|
39449
39496
|
};
|
|
39450
39497
|
}, "createMeetingProjectCandidateReader");
|
|
39451
39498
|
|
|
39452
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39499
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/meeting-project-discovery.js
|
|
39453
39500
|
import { createHash as createHash14 } from "node:crypto";
|
|
39454
39501
|
var scopeKeys = [
|
|
39455
39502
|
"accountId",
|
|
@@ -39584,7 +39631,7 @@ var readMeetingProjectDiscovery = /* @__PURE__ */ __name(async (ports, projectNa
|
|
|
39584
39631
|
};
|
|
39585
39632
|
}, "readMeetingProjectDiscovery");
|
|
39586
39633
|
|
|
39587
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39634
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/meeting-review.js
|
|
39588
39635
|
var readMeetingReview = /* @__PURE__ */ __name(async (store, request) => {
|
|
39589
39636
|
const { limit, ...selecting } = request;
|
|
39590
39637
|
const { input, selection } = await resolveMeetingSelection(store, selecting);
|
|
@@ -39592,7 +39639,7 @@ var readMeetingReview = /* @__PURE__ */ __name(async (store, request) => {
|
|
|
39592
39639
|
return { ...review, selection };
|
|
39593
39640
|
}, "readMeetingReview");
|
|
39594
39641
|
|
|
39595
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39642
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/meeting-searches.js
|
|
39596
39643
|
var KIND = ["meetings-search"];
|
|
39597
39644
|
var meetingSearchesService = /* @__PURE__ */ __name((searches) => {
|
|
39598
39645
|
const found = /* @__PURE__ */ __name(async (reference) => {
|
|
@@ -39622,7 +39669,7 @@ var meetingSearchesService = /* @__PURE__ */ __name((searches) => {
|
|
|
39622
39669
|
};
|
|
39623
39670
|
}, "meetingSearchesService");
|
|
39624
39671
|
|
|
39625
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39672
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/meeting-stats.js
|
|
39626
39673
|
var readMeetingStats = /* @__PURE__ */ __name(async (store, request) => {
|
|
39627
39674
|
const { timeZone, maxRows, ...selecting } = request;
|
|
39628
39675
|
const { input, selection } = await resolveMeetingSelection(store, selecting);
|
|
@@ -39645,7 +39692,7 @@ var readMeetingCounts = /* @__PURE__ */ __name(async (store, request) => {
|
|
|
39645
39692
|
return { ...counts, selection };
|
|
39646
39693
|
}, "readMeetingCounts");
|
|
39647
39694
|
|
|
39648
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39695
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/person-business.js
|
|
39649
39696
|
var personBusiness = /* @__PURE__ */ __name(async (store, uid, { limit = SECTION_LIMIT, scope = scopeOf4(void 0) } = {}) => {
|
|
39650
39697
|
const ref2 = `person:${uid}`;
|
|
39651
39698
|
const { edges, full } = await edgesOf(store, ref2, scope);
|
|
@@ -39703,7 +39750,7 @@ var canonicalPersonContext = /* @__PURE__ */ __name(async (store, reference, { a
|
|
|
39703
39750
|
};
|
|
39704
39751
|
}, "canonicalPersonContext");
|
|
39705
39752
|
|
|
39706
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39753
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/text-model-choice.js
|
|
39707
39754
|
import { createHash as createHash15 } from "node:crypto";
|
|
39708
39755
|
import { existsSync as existsSync2 } from "node:fs";
|
|
39709
39756
|
var useTextModel = /* @__PURE__ */ __name(async (id2, { env, command }) => {
|
|
@@ -39834,7 +39881,7 @@ var addCustomTextModel = /* @__PURE__ */ __name(async (id2, payload, { env, fetc
|
|
|
39834
39881
|
return { ...checked2.output, custom: true };
|
|
39835
39882
|
}, "addCustomTextModel");
|
|
39836
39883
|
|
|
39837
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39884
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/account-groups.js
|
|
39838
39885
|
var SCOPES2 = ["personal", "work"];
|
|
39839
39886
|
var scopeOf5 = /* @__PURE__ */ __name((scope) => {
|
|
39840
39887
|
if (!SCOPES2.includes(scope))
|
|
@@ -39956,7 +40003,7 @@ var setChatScope = /* @__PURE__ */ __name(async (at, change) => {
|
|
|
39956
40003
|
return { ...key, chat: change.chat, own: scope, scope: effective };
|
|
39957
40004
|
}, "setChatScope");
|
|
39958
40005
|
|
|
39959
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40006
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/group-guard.js
|
|
39960
40007
|
var refOf3 = /* @__PURE__ */ __name((item2) => typeof item2 === "string" ? item2 : typeof item2 === "object" && item2 !== null && "ref" in item2 ? item2.ref : void 0, "refOf");
|
|
39961
40008
|
var groupGuardOf = /* @__PURE__ */ __name(async (store, app, env) => {
|
|
39962
40009
|
const group = groupLockOf(app, env);
|
|
@@ -40067,14 +40114,89 @@ var lockedRegistry = /* @__PURE__ */ __name((registry, guard) => {
|
|
|
40067
40114
|
};
|
|
40068
40115
|
}, "lockedRegistry");
|
|
40069
40116
|
|
|
40070
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40117
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/calendar/sync.js
|
|
40071
40118
|
var DAY7 = 864e5;
|
|
40072
40119
|
var SLOTS_EVERY = 7 * DAY7;
|
|
40073
40120
|
|
|
40074
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40121
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/calendar/feeds.js
|
|
40075
40122
|
var FEED_LIMITS = { maxBytes: 10 * 1024 * 1024, timeoutMs: 3e4, redirects: 5 };
|
|
40076
40123
|
|
|
40077
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40124
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/meetings/cli/management.js
|
|
40125
|
+
var REMOTE_READ = { remote: "read", local: "read" };
|
|
40126
|
+
var REMOTE_WRITE = { remote: "write", local: "write" };
|
|
40127
|
+
var minutes = /* @__PURE__ */ __name((text2) => {
|
|
40128
|
+
if (!/^[1-9]\d*$/.test(text2))
|
|
40129
|
+
throw new InvalidArgumentError("expected whole minutes");
|
|
40130
|
+
return Number(text2);
|
|
40131
|
+
}, "minutes");
|
|
40132
|
+
var changeOptions = /* @__PURE__ */ __name((command) => command.option("--title <title>", "the meeting's title").addOption(new Option("--kind <kind>", "an instant or a scheduled meeting").choices(["instant", "scheduled"])).option("--start-time <time>", "when it starts: an ISO time with its offset, 2026-11-20T10:00:00+01:00").option("--duration-minutes <minutes>", "how long it lasts, 1\u20131440", minutes).option("--timezone <zone>", "its IANA time zone, Europe/Madrid").option("--agenda <text>", "its agenda"), "changeOptions");
|
|
40133
|
+
var changeOf = /* @__PURE__ */ __name((flags) => Object.fromEntries(["title", "kind", "startTime", "durationMinutes", "timezone", "agenda"].flatMap((key) => flags[key] === void 0 ? [] : [[key, flags[key]]])), "changeOf");
|
|
40134
|
+
var meetingOf = /* @__PURE__ */ __name((one2) => ({
|
|
40135
|
+
id: one2.id,
|
|
40136
|
+
title: one2.title,
|
|
40137
|
+
kind: one2.kind,
|
|
40138
|
+
start_time: one2.startTime,
|
|
40139
|
+
duration_minutes: one2.durationMinutes,
|
|
40140
|
+
timezone: one2.timezone,
|
|
40141
|
+
agenda: one2.agenda,
|
|
40142
|
+
join_url: one2.joinUrl
|
|
40143
|
+
}), "meetingOf");
|
|
40144
|
+
var receiptItem = /* @__PURE__ */ __name((receipt) => {
|
|
40145
|
+
const { change } = receipt;
|
|
40146
|
+
return {
|
|
40147
|
+
action: receipt.action,
|
|
40148
|
+
provider: receipt.scope.provider,
|
|
40149
|
+
account: receipt.scope.account,
|
|
40150
|
+
...receipt.id === void 0 ? {} : { id: receipt.id },
|
|
40151
|
+
...receipt.occurrenceId === void 0 ? {} : { occurrence_id: receipt.occurrenceId },
|
|
40152
|
+
...change ? {
|
|
40153
|
+
change: {
|
|
40154
|
+
...change.title === void 0 ? {} : { title: change.title },
|
|
40155
|
+
...change.kind === void 0 ? {} : { kind: change.kind },
|
|
40156
|
+
...change.startTime === void 0 ? {} : { start_time: change.startTime },
|
|
40157
|
+
...change.durationMinutes === void 0 ? {} : { duration_minutes: change.durationMinutes },
|
|
40158
|
+
...change.timezone === void 0 ? {} : { timezone: change.timezone },
|
|
40159
|
+
...change.agenda === void 0 ? {} : { agenda: change.agenda }
|
|
40160
|
+
}
|
|
40161
|
+
} : {},
|
|
40162
|
+
applied: receipt.applied,
|
|
40163
|
+
...receipt.meeting ? { meeting: meetingOf(receipt.meeting) } : {}
|
|
40164
|
+
};
|
|
40165
|
+
}, "receiptItem");
|
|
40166
|
+
var addMeetingManagementCommands = /* @__PURE__ */ __name((group, deps) => {
|
|
40167
|
+
const { management, print, output, inRun, askFirst } = deps;
|
|
40168
|
+
const has = /* @__PURE__ */ __name((name) => management.capabilities.includes(name), "has");
|
|
40169
|
+
const mutation = /* @__PURE__ */ __name(async (command) => {
|
|
40170
|
+
const dryRun = command.optsWithGlobals().dryRun === true;
|
|
40171
|
+
if (!dryRun) {
|
|
40172
|
+
if (!askFirst)
|
|
40173
|
+
throw new CliError("configuration_error", "this tool cannot ask before it changes a meeting on the service");
|
|
40174
|
+
await askFirst(command);
|
|
40175
|
+
}
|
|
40176
|
+
return { apply: true, dryRun };
|
|
40177
|
+
}, "mutation");
|
|
40178
|
+
const write = /* @__PURE__ */ __name((name) => annotate(group.command(name), { effects: REMOTE_WRITE, offline: false, output: { entity: "meeting_change" } }), "write");
|
|
40179
|
+
const target2 = /* @__PURE__ */ __name((command) => command.argument("<meeting>", "the service's id of the meeting"), "target");
|
|
40180
|
+
if (has("create"))
|
|
40181
|
+
output(changeOptions(write("create").description("create a meeting on the service"))).action(async (flags, command) => inRun(command, async () => print({ item: receiptItem(await management.create(changeOf(flags), await mutation(command))) }, command)));
|
|
40182
|
+
if (has("update"))
|
|
40183
|
+
output(changeOptions(target2(write("update").description("change a meeting on the service")))).action(async (id2, flags, command) => inRun(command, async () => print({ item: receiptItem(await management.update(id2, changeOf(flags), await mutation(command))) }, command)));
|
|
40184
|
+
if (has("cancel"))
|
|
40185
|
+
output(target2(write("cancel").description("cancel a meeting on the service")).option("--occurrence-id <id>", "cancel only this occurrence of a repeating meeting")).action(async (id2, flags, command) => inRun(command, async () => print({
|
|
40186
|
+
item: receiptItem(await management.cancel(id2, {
|
|
40187
|
+
...await mutation(command),
|
|
40188
|
+
...flags.occurrenceId === void 0 ? {} : { occurrenceId: flags.occurrenceId }
|
|
40189
|
+
}))
|
|
40190
|
+
}, command)));
|
|
40191
|
+
if (has("invitation"))
|
|
40192
|
+
output(target2(annotate(group.command("invitation"), {
|
|
40193
|
+
effects: REMOTE_READ,
|
|
40194
|
+
offline: false,
|
|
40195
|
+
output: { entity: "meeting_invitation" }
|
|
40196
|
+
}).description("the invitation text the service writes for a meeting"))).action(async (id2, _flags, command) => inRun(command, async () => print({ item: { ...await management.invitation(id2), untrusted: ["invitation"] } }, command)));
|
|
40197
|
+
}, "addMeetingManagementCommands");
|
|
40198
|
+
|
|
40199
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/meetings/cli/query-options.js
|
|
40078
40200
|
var queryWordsAfterOptions = /* @__PURE__ */ __name((command) => {
|
|
40079
40201
|
command.allowUnknownOption();
|
|
40080
40202
|
const parse2 = command.parseOptions.bind(command);
|
|
@@ -40094,7 +40216,7 @@ var queryWordsAfterOptions = /* @__PURE__ */ __name((command) => {
|
|
|
40094
40216
|
return command;
|
|
40095
40217
|
}, "queryWordsAfterOptions");
|
|
40096
40218
|
|
|
40097
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40219
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/meetings/cli/passage.js
|
|
40098
40220
|
var count3 = /* @__PURE__ */ __name((value) => {
|
|
40099
40221
|
if (!/^(0|[1-9]\d*)$/.test(value) || !Number.isSafeInteger(Number(value)))
|
|
40100
40222
|
throw new CliError("validation_error", "expected a nonnegative safe integer");
|
|
@@ -40136,7 +40258,7 @@ var addMeetingPassageCommandDefinition = /* @__PURE__ */ __name((program, deps)
|
|
|
40136
40258
|
var createMeetingPassageCommand = sharedCommand(createMeetingPassageCommandDefinition);
|
|
40137
40259
|
var addMeetingPassageCommand = sharedCommand(addMeetingPassageCommandDefinition);
|
|
40138
40260
|
|
|
40139
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40261
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/meetings/cli/project-evidence.js
|
|
40140
40262
|
var integer2 = /* @__PURE__ */ __name((value) => {
|
|
40141
40263
|
if (!/^[1-9]\d*$/.test(value) || !Number.isSafeInteger(Number(value)))
|
|
40142
40264
|
throw new CliError("validation_error", "expected a positive safe integer");
|
|
@@ -40159,15 +40281,20 @@ ${fieldsHelp(MEETING_PROJECT_EVIDENCE_QUERY)}`).option("--limit <n>", "hits in o
|
|
|
40159
40281
|
}, "addMeetingProjectEvidenceCommandDefinition");
|
|
40160
40282
|
var addMeetingProjectEvidenceCommand = sharedCommand(addMeetingProjectEvidenceCommandDefinition);
|
|
40161
40283
|
|
|
40162
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40284
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/meetings/cli/search.js
|
|
40163
40285
|
var ZONED = /(?:Z|[+-]\d{2}:?\d{2})$/i;
|
|
40286
|
+
var AGO2 = /^(\d+)(m|h|d)$/;
|
|
40287
|
+
var AGO_MS2 = { m: 6e4, h: 36e5, d: 864e5 };
|
|
40164
40288
|
var moment = /* @__PURE__ */ __name((flag, end, readIn) => (value) => {
|
|
40289
|
+
const [, amount, unit] = AGO2.exec(value.trim()) ?? [];
|
|
40290
|
+
if (amount && unit)
|
|
40291
|
+
return Date.now() - Number(amount) * (AGO_MS2[unit] ?? 0);
|
|
40165
40292
|
const zone = timezoneOf();
|
|
40166
40293
|
let time;
|
|
40167
40294
|
try {
|
|
40168
40295
|
time = zonedMoment(value, zone, { start: 0, end: value.length }, { end });
|
|
40169
40296
|
} catch {
|
|
40170
|
-
throw new CliError("validation_error", `${flag} takes an ISO date,
|
|
40297
|
+
throw new CliError("validation_error", `${flag} takes an ISO date, a time with or without an offset, or 30m, 2h, 7d ago`);
|
|
40171
40298
|
}
|
|
40172
40299
|
if (!ZONED.test(value.trim()))
|
|
40173
40300
|
readIn(zone);
|
|
@@ -40185,7 +40312,7 @@ var createMeetingSearchCommandDefinition = /* @__PURE__ */ __name((program) => {
|
|
|
40185
40312
|
program.addCommand(search);
|
|
40186
40313
|
}
|
|
40187
40314
|
const readIn = /* @__PURE__ */ __name((zone) => command.setOptionValue("timesReadIn", zone), "readIn");
|
|
40188
|
-
const command = search.command("meetings").description("find words in stored meetings, indexing new ones first").argument("<query>", 'words, OR, (groups), -word, "a phrase", "a b"~N (within N lines), exact:word, from:"Name" (who said the line); date>=30d, project:, tag:, topic: choose meetings; a word also matches its other forms and spellings speech recognition garbled').option("--meeting-id <id>", "only this stored meeting", integer3).option("--identity-id <id>", "meetings with this participant identity; does not say who spoke a hit", integer3).option("--person-id <id>", "meetings with a participant linked to this person", integer3).option("--event-id <id>", "only meetings linked to this stored event", integer3).option("--series-id <id>", "only meetings in this stored series", integer3).option("--project <project>", "meetings confirmed in this project, by name, key or alias").option("--tag <name>", "meetings with this tag, by name or alias").option("--topic-name <name>", "meetings with this topic, by name or alias").option("--since-time <time>", "meetings starting at or after this ISO 8601 date or time", moment("--since-time", false, readIn)).option("--until-time <time>", "meetings starting at or before this ISO 8601 date or time; a date alone covers that whole local day", moment("--until-time", true, readIn)).option("--limit <n>", "how many hits, 1 through 1000 (default 100)", integer3).option("--cursor <cursor>", "continue from the previous page's page.next_cursor, with the same query and filters").option("--max-read-bytes <bytes>", "most stored bytes to read, 1 through 67108864 (default 4194304)", integer3);
|
|
40315
|
+
const command = search.command("meetings").description("find words in stored meetings, indexing new ones first").argument("<query>", 'words, OR, (groups), -word, "a phrase", "a b"~N (within N lines), exact:word, from:"Name" (who said the line); date>=30d, project:, tag:, topic: choose meetings; a word also matches its other forms and spellings speech recognition garbled').option("--meeting-id <id>", "only this stored meeting", integer3).option("--identity-id <id>", "meetings with this participant identity; does not say who spoke a hit", integer3).option("--person-id <id>", "meetings with a participant linked to this person", integer3).option("--event-id <id>", "only meetings linked to this stored event", integer3).option("--series-id <id>", "only meetings in this stored series", integer3).option("--project <project>", "meetings confirmed in this project, by name, key or alias").option("--tag <name>", "meetings with this tag, by name or alias").option("--topic-name <name>", "meetings with this topic, by name or alias").option("--since-time <time>", "meetings starting at or after this ISO 8601 date or time, or 30m, 2h, 7d ago", moment("--since-time", false, readIn)).option("--until-time <time>", "meetings starting at or before this ISO 8601 date or time; a date alone covers that whole local day", moment("--until-time", true, readIn)).option("--limit <n>", "how many hits, 1 through 1000 (default 100)", integer3).option("--cursor <cursor>", "continue from the previous page's page.next_cursor, with the same query and filters").option("--max-read-bytes <bytes>", "most stored bytes to read, 1 through 67108864 (default 4194304)", integer3);
|
|
40189
40316
|
annotate(command, {
|
|
40190
40317
|
origin: "handwritten",
|
|
40191
40318
|
effects: { remote: "none", local: "read" },
|
|
@@ -40245,7 +40372,7 @@ var addMeetingSearchCommandDefinition = /* @__PURE__ */ __name((program, deps) =
|
|
|
40245
40372
|
var createMeetingSearchCommand = sharedCommand(createMeetingSearchCommandDefinition);
|
|
40246
40373
|
var addMeetingSearchCommand = sharedCommand(addMeetingSearchCommandDefinition);
|
|
40247
40374
|
|
|
40248
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40375
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/meetings/cli/index.js
|
|
40249
40376
|
var integer4 = /* @__PURE__ */ __name((text2) => {
|
|
40250
40377
|
if (!/^[1-9]\d*$/.test(text2) || !Number.isSafeInteger(Number(text2)))
|
|
40251
40378
|
throw new InvalidArgumentError("expected a positive integer");
|
|
@@ -40264,6 +40391,14 @@ var date = /* @__PURE__ */ __name((text2) => {
|
|
|
40264
40391
|
}
|
|
40265
40392
|
}, "date");
|
|
40266
40393
|
var LOCAL_READ = { remote: "none", local: "read" };
|
|
40394
|
+
var REMOTE_READ2 = { remote: "read", local: "read" };
|
|
40395
|
+
var backendOf = /* @__PURE__ */ __name((value) => {
|
|
40396
|
+
if (!BACKENDS.includes(value))
|
|
40397
|
+
throw new InvalidArgumentError("expected archive, server or both");
|
|
40398
|
+
return value;
|
|
40399
|
+
}, "backendOf");
|
|
40400
|
+
var backendOption = /* @__PURE__ */ __name((command) => command.option("--backend <archive|server|both>", "where to read: the store (archive), the service (server), or both, kept in the store (default: both)", backendOf), "backendOption");
|
|
40401
|
+
var BACKEND_HELP = "--backend both asks the service with the part of the query it can filter, keeps what it returns, then runs the whole query over the store; each item says found_in archive, server or both. --offline reads the store only.";
|
|
40267
40402
|
var LOCAL_WRITE = { remote: "none", local: "write" };
|
|
40268
40403
|
var FETCH = { remote: "read", local: "write" };
|
|
40269
40404
|
var addMeetingCommandsDefinition = /* @__PURE__ */ __name((program, deps) => {
|
|
@@ -40279,20 +40414,44 @@ var addMeetingCommandsDefinition = /* @__PURE__ */ __name((program, deps) => {
|
|
|
40279
40414
|
const opts = command.optsWithGlobals();
|
|
40280
40415
|
deps.write(value, opts.json ? "json" : opts.jsonl ? "jsonl" : "text");
|
|
40281
40416
|
}, "print");
|
|
40282
|
-
const
|
|
40283
|
-
|
|
40284
|
-
|
|
40285
|
-
|
|
40417
|
+
const access = /* @__PURE__ */ __name((command, backend) => ({
|
|
40418
|
+
...backend === void 0 ? {} : { backend },
|
|
40419
|
+
offline: command.optsWithGlobals().offline === true,
|
|
40420
|
+
timezone: timezoneOf(deps.timezone),
|
|
40421
|
+
...deps.now ? { now: deps.now() } : {}
|
|
40422
|
+
}), "access");
|
|
40423
|
+
const list2 = queryWordsAfterOptions(group.command("list").description("meetings, newest first: the service's and the stored ones, kept in the store")).argument("[query...]", "field:value terms that narrow the list \u2014 the fields are below").addHelpText("after", `
|
|
40424
|
+
${fieldsHelp(MEETING_QUERY, MEETING_QUERY_GUIDE)}
|
|
40425
|
+
${BACKEND_HELP}`);
|
|
40426
|
+
annotate(list2, {
|
|
40427
|
+
effects: REMOTE_READ2,
|
|
40428
|
+
partial: true,
|
|
40429
|
+
query: defineQuery(MEETING_QUERY),
|
|
40430
|
+
output: { entity: "meeting" }
|
|
40431
|
+
});
|
|
40432
|
+
backendOption(output(list2)).option("--limit <n>", "meetings per page", integer4, 100).option("--page <n>", "page number", integer4, 1).action(async (words4, opts, command) => {
|
|
40286
40433
|
const query = meetingsQuery(words4.join(" "));
|
|
40287
|
-
|
|
40288
|
-
|
|
40289
|
-
|
|
40290
|
-
|
|
40291
|
-
|
|
40292
|
-
|
|
40434
|
+
await deps.inRun(command, async () => {
|
|
40435
|
+
const { server: _server, ...answer } = await meetingsListThrough(deps.source, deps.store, {
|
|
40436
|
+
accountId: deps.accountId,
|
|
40437
|
+
limit: opts.limit,
|
|
40438
|
+
offset: (opts.page - 1) * opts.limit,
|
|
40439
|
+
...query ? { query } : {}
|
|
40440
|
+
}, access(command, opts.backend));
|
|
40441
|
+
print(answer, command);
|
|
40442
|
+
});
|
|
40293
40443
|
});
|
|
40294
|
-
output(annotate(group.command("show"), { effects:
|
|
40295
|
-
|
|
40444
|
+
backendOption(output(annotate(group.command("show"), { effects: REMOTE_READ2, partial: true, output: { entity: "meeting_details" } }).description("show a meeting, read again from the service with its people, transcript and documents").argument("<meeting>", "the stored meeting's number, its meeting: ref, or the service's id (provider_id)").addHelpText("after", `${SAVE_HELP}
|
|
40445
|
+
${BACKEND_HELP}`))).action(async (meeting, opts, command) => {
|
|
40446
|
+
await deps.inRun(command, async () => {
|
|
40447
|
+
const shown = await meetingShowThrough(deps.source, deps.store, deps.accountId, meeting, access(command, opts.backend));
|
|
40448
|
+
const { item: item2 } = await meetingDetailsBody(deps.store, shown.details);
|
|
40449
|
+
print({
|
|
40450
|
+
item: shown.foundIn ? { ...item2, found_in: shown.foundIn } : item2,
|
|
40451
|
+
...shown.missing ? { missing: shown.missing } : {},
|
|
40452
|
+
...shown.meta ? { meta: shown.meta } : {}
|
|
40453
|
+
}, command);
|
|
40454
|
+
});
|
|
40296
40455
|
});
|
|
40297
40456
|
output(annotate(group.command("transcript"), { effects: LOCAL_READ, output: { entity: "meeting_transcript" } }).description("show current meeting transcripts").argument("<meeting>", "stored meeting id", integer4).option("--history", "include superseded transcript versions").addHelpText("after", SAVE_HELP)).action(async (id2, opts, command) => {
|
|
40298
40457
|
print(await meetingTranscriptAnswer(deps.store, id2, deps.accountId, { history: opts.history }), command);
|
|
@@ -40377,6 +40536,14 @@ ${deps.importHelp}`);
|
|
|
40377
40536
|
now: deps.now?.() ?? Date.now()
|
|
40378
40537
|
}), command);
|
|
40379
40538
|
});
|
|
40539
|
+
if (deps.management)
|
|
40540
|
+
addMeetingManagementCommands(group, {
|
|
40541
|
+
management: deps.management,
|
|
40542
|
+
print,
|
|
40543
|
+
output,
|
|
40544
|
+
inRun: deps.inRun,
|
|
40545
|
+
...deps.askFirst ? { askFirst: deps.askFirst } : {}
|
|
40546
|
+
});
|
|
40380
40547
|
const eventList = queryWordsAfterOptions(annotate(program.command("events").description("the owner's stored events"), {
|
|
40381
40548
|
effects: { remote: "none", local: "none" }
|
|
40382
40549
|
}).command("list")).description("list stored events").argument("[query...]", "event id, origin or time fields that narrow the list").addHelpText("after", `
|
|
@@ -40394,7 +40561,7 @@ ${fieldsHelp(EVENT_QUERY, MEETING_QUERY_GUIDE)}`);
|
|
|
40394
40561
|
}, "addMeetingCommandsDefinition");
|
|
40395
40562
|
var addMeetingCommands = sharedCommand(addMeetingCommandsDefinition);
|
|
40396
40563
|
|
|
40397
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40564
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/cli/list-query.js
|
|
40398
40565
|
var LIST_QUERY_GUIDE = "https://github.com/WireCatLabs/cli-core/blob/main/docs/search/query-language.md";
|
|
40399
40566
|
var QUERY_ARGUMENT = "field:value terms that narrow the list \u2014 the fields are below";
|
|
40400
40567
|
var withQuery = /* @__PURE__ */ __name((command, registry) => {
|
|
@@ -40536,7 +40703,7 @@ var termField = /* @__PURE__ */ __name((name, type, example, more = {}) => nativ
|
|
|
40536
40703
|
var queryHelp = /* @__PURE__ */ __name((registry) => `
|
|
40537
40704
|
${fieldsHelp(registry, LIST_QUERY_GUIDE)}`, "queryHelp");
|
|
40538
40705
|
|
|
40539
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40706
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/calendar/reads.js
|
|
40540
40707
|
var eventIdOf = /* @__PURE__ */ __name((reference) => {
|
|
40541
40708
|
const text2 = String(reference).replace(/^event:/u, "");
|
|
40542
40709
|
if (!/^[1-9]\d*$/u.test(text2) || !Number.isSafeInteger(Number(text2)))
|
|
@@ -40606,7 +40773,7 @@ var EVENTS_QUERY = {
|
|
|
40606
40773
|
} : field)
|
|
40607
40774
|
};
|
|
40608
40775
|
|
|
40609
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40776
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/calendar/writer.js
|
|
40610
40777
|
var EVENTS_NOTIFY_KEY = "events.notify";
|
|
40611
40778
|
var EVENTS_DELETE_SERIES_KEY = "events.delete.series";
|
|
40612
40779
|
var EVENTS_REMIND_HOOK_KEY = "events.remind.hook";
|
|
@@ -40624,7 +40791,7 @@ var CALENDAR_WRITE_DEFAULTS = {
|
|
|
40624
40791
|
[EVENTS_REMIND_HOOK_KEY]: "deny"
|
|
40625
40792
|
};
|
|
40626
40793
|
|
|
40627
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40794
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/listings.js
|
|
40628
40795
|
var DOCUMENT_TEXT_CANDIDATES = 2e3;
|
|
40629
40796
|
var iso4 = /* @__PURE__ */ __name((ms) => ms === null ? null : new Date(ms).toISOString(), "iso");
|
|
40630
40797
|
var sourceName = /* @__PURE__ */ __name(({ provider, account: account2 }) => `${provider}:${account2}`, "sourceName");
|
|
@@ -40734,7 +40901,8 @@ var showDocument = /* @__PURE__ */ __name(async (store, reference, text2) => {
|
|
|
40734
40901
|
text: found.text,
|
|
40735
40902
|
text_offset: Math.min(text2.offset, found.textLength),
|
|
40736
40903
|
text_length: found.textLength,
|
|
40737
|
-
|
|
40904
|
+
// SQLite's substr and length count code points; a JavaScript string's length counts UTF-16 units.
|
|
40905
|
+
has_more: found.text !== null && text2.offset + [...found.text].length < found.textLength,
|
|
40738
40906
|
extraction: found.extraction,
|
|
40739
40907
|
extraction_error: found.extractionError,
|
|
40740
40908
|
language: found.language,
|
|
@@ -40882,7 +41050,7 @@ var showMeetingEntry = /* @__PURE__ */ __name(async (store, reference, lines) =>
|
|
|
40882
41050
|
};
|
|
40883
41051
|
}, "showMeetingEntry");
|
|
40884
41052
|
|
|
40885
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
41053
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/meeting-hit-context.js
|
|
40886
41054
|
import { createHash as createHash16 } from "node:crypto";
|
|
40887
41055
|
var contextCue = /* @__PURE__ */ __name((cue) => ({
|
|
40888
41056
|
ref: cue.reference,
|
|
@@ -41000,7 +41168,7 @@ var readMeetingHitContext = /* @__PURE__ */ __name(async (store, accountId, refe
|
|
|
41000
41168
|
return { ...packet, fingerprint: createHash16("sha256").update(JSON.stringify(packet)).digest("hex") };
|
|
41001
41169
|
}, "readMeetingHitContext");
|
|
41002
41170
|
|
|
41003
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
41171
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/meeting-passage-format.js
|
|
41004
41172
|
var visible = /* @__PURE__ */ __name((text2) => text2.replace(/[\p{Cc}\p{Cf}]/gu, (value) => value === "\n" || value === " " ? value : `\\u{${value.codePointAt(0)?.toString(16)}}`), "visible");
|
|
41005
41173
|
var markdown = /* @__PURE__ */ __name((text2) => visible(text2).replaceAll("&", "&").replaceAll("<", "<").replaceAll(">", ">").replace(/[\\`*_[\]#|~]/g, "\\$&"), "markdown");
|
|
41006
41174
|
var timestamp = /* @__PURE__ */ __name((ms) => {
|
|
@@ -41077,7 +41245,7 @@ var readMeetingPassage = /* @__PURE__ */ __name(async (store, accountId, referen
|
|
|
41077
41245
|
return { packet, content };
|
|
41078
41246
|
}, "readMeetingPassage");
|
|
41079
41247
|
|
|
41080
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
41248
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/meeting-batch.js
|
|
41081
41249
|
var createMeetingBatchReader = /* @__PURE__ */ __name((store, accountId) => {
|
|
41082
41250
|
if (!Number.isSafeInteger(accountId) || accountId < 1)
|
|
41083
41251
|
throw new CliError("validation_error", "choose a positive meeting account");
|
|
@@ -41091,10 +41259,10 @@ var createMeetingBatchReader = /* @__PURE__ */ __name((store, accountId) => {
|
|
|
41091
41259
|
};
|
|
41092
41260
|
}, "createMeetingBatchReader");
|
|
41093
41261
|
|
|
41094
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
41262
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/meeting-combined.js
|
|
41095
41263
|
import { createHash as createHash17 } from "node:crypto";
|
|
41096
41264
|
|
|
41097
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
41265
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/meeting-semantic.js
|
|
41098
41266
|
var positive3 = /* @__PURE__ */ __name((value, name, max) => {
|
|
41099
41267
|
if (!Number.isSafeInteger(value) || value < 1 || value > max)
|
|
41100
41268
|
throw new CliError("validation_error", `Invalid ${name}`);
|
|
@@ -41246,7 +41414,7 @@ var applyMeetingEmbedding = /* @__PURE__ */ __name(async (store, accountId, embe
|
|
|
41246
41414
|
};
|
|
41247
41415
|
}, "applyMeetingEmbedding");
|
|
41248
41416
|
|
|
41249
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
41417
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/meeting-combined.js
|
|
41250
41418
|
var DEPTH = 200;
|
|
41251
41419
|
var cursorOf3 = /* @__PURE__ */ __name((value, key) => {
|
|
41252
41420
|
if (value === void 0)
|
|
@@ -41383,7 +41551,7 @@ var searchMeetingsCombined = /* @__PURE__ */ __name(async (store, embedder, type
|
|
|
41383
41551
|
};
|
|
41384
41552
|
}, "searchMeetingsCombined");
|
|
41385
41553
|
|
|
41386
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
41554
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/meeting-context.js
|
|
41387
41555
|
var meetingReferences = /* @__PURE__ */ __name((values) => values.map((value) => formatMeetingReference(parseMeetingReference(value))), "meetingReferences");
|
|
41388
41556
|
var checkCancelled = /* @__PURE__ */ __name((signal) => {
|
|
41389
41557
|
if (!signal?.aborted)
|
|
@@ -41490,7 +41658,7 @@ var createMeetingContextService = /* @__PURE__ */ __name(async (store, input, op
|
|
|
41490
41658
|
};
|
|
41491
41659
|
}, "createMeetingContextService");
|
|
41492
41660
|
|
|
41493
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
41661
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/meeting-model.js
|
|
41494
41662
|
var integer5 = /* @__PURE__ */ __name((value, name, max) => {
|
|
41495
41663
|
if (!Number.isSafeInteger(value) || value < 1 || value > max)
|
|
41496
41664
|
throw new CliError("validation_error", `Invalid ${name}`);
|
|
@@ -41717,7 +41885,7 @@ var openMeetingEmbedder = /* @__PURE__ */ __name(async (choice, options2 = {}) =
|
|
|
41717
41885
|
};
|
|
41718
41886
|
}, "openMeetingEmbedder");
|
|
41719
41887
|
|
|
41720
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
41888
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/context/communication-selection.js
|
|
41721
41889
|
var communicationFields = {
|
|
41722
41890
|
sources: pipe(array(strictObject({
|
|
41723
41891
|
id: pipe(string(), regex(/^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$/)),
|
|
@@ -41749,7 +41917,7 @@ var communicationRequest = /* @__PURE__ */ __name((value, preparationAfter) => {
|
|
|
41749
41917
|
return { ...input, after, before: before2 };
|
|
41750
41918
|
}, "communicationRequest");
|
|
41751
41919
|
|
|
41752
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
41920
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/meeting-preparation-validation.js
|
|
41753
41921
|
var MEETING_PREPARATION_LIMITS = {
|
|
41754
41922
|
meetings: { min: 1, max: 20, default: 5 },
|
|
41755
41923
|
cues: { min: 1, max: 100, default: 10 },
|
|
@@ -41835,7 +42003,7 @@ var preparationRequest = /* @__PURE__ */ __name((accountId, externalId, original
|
|
|
41835
42003
|
return { ...input, history };
|
|
41836
42004
|
}, "preparationRequest");
|
|
41837
42005
|
|
|
41838
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
42006
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/meeting-communications-preparation.js
|
|
41839
42007
|
var readPreparationCommunications = /* @__PURE__ */ __name(async (plan, signal) => {
|
|
41840
42008
|
const section = {
|
|
41841
42009
|
readUsage: plan.reader.usage(),
|
|
@@ -41940,7 +42108,7 @@ var appendPreparationCommunications = /* @__PURE__ */ __name((result, read) => {
|
|
|
41940
42108
|
result.knowledge.coverage.otherSources = "see-communications";
|
|
41941
42109
|
}, "appendPreparationCommunications");
|
|
41942
42110
|
|
|
41943
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
42111
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/meeting-communications-selection.js
|
|
41944
42112
|
var captureCommunicationSelections = /* @__PURE__ */ __name((port) => {
|
|
41945
42113
|
if (port === void 0)
|
|
41946
42114
|
return void 0;
|
|
@@ -42045,7 +42213,7 @@ var validatePreparationCommunications = /* @__PURE__ */ __name((section, request
|
|
|
42045
42213
|
}
|
|
42046
42214
|
}, "validatePreparationCommunications");
|
|
42047
42215
|
|
|
42048
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
42216
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/meeting-knowledge-preparation.js
|
|
42049
42217
|
var invalid5 = /* @__PURE__ */ __name(() => {
|
|
42050
42218
|
throw new CliError("invalid_response", "Preparation knowledge returned an invalid selection");
|
|
42051
42219
|
}, "invalid");
|
|
@@ -42114,7 +42282,7 @@ var appendKnowledgePreparation = /* @__PURE__ */ __name(async (store, result, in
|
|
|
42114
42282
|
}
|
|
42115
42283
|
}, "appendKnowledgePreparation");
|
|
42116
42284
|
|
|
42117
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
42285
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/meeting-notes-preparation.js
|
|
42118
42286
|
var invalid6 = /* @__PURE__ */ __name(() => {
|
|
42119
42287
|
throw new CliError("invalid_response", "Preparation notes returned an invalid selection");
|
|
42120
42288
|
}, "invalid");
|
|
@@ -42188,7 +42356,7 @@ var appendNotesPreparation = /* @__PURE__ */ __name(async (store, result, input)
|
|
|
42188
42356
|
}
|
|
42189
42357
|
}, "appendNotesPreparation");
|
|
42190
42358
|
|
|
42191
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
42359
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/meeting-project-preparation.js
|
|
42192
42360
|
var PAGE_LIMIT = 4;
|
|
42193
42361
|
var size2 = /* @__PURE__ */ __name((value) => Buffer.byteLength(JSON.stringify(value), "utf8"), "size");
|
|
42194
42362
|
var appendProjectPreparation = /* @__PURE__ */ __name(async (ports, result, input) => {
|
|
@@ -42238,7 +42406,7 @@ var appendProjectPreparation = /* @__PURE__ */ __name(async (ports, result, inpu
|
|
|
42238
42406
|
}
|
|
42239
42407
|
}, "appendProjectPreparation");
|
|
42240
42408
|
|
|
42241
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
42409
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/meeting-related-preparation.js
|
|
42242
42410
|
var appendRelatedPreparation = /* @__PURE__ */ __name(async (store, result, input) => {
|
|
42243
42411
|
if (!result.series || !result.items.length || result.coverage.outputLimited)
|
|
42244
42412
|
return;
|
|
@@ -42310,7 +42478,7 @@ var appendRelatedPreparation = /* @__PURE__ */ __name(async (store, result, inpu
|
|
|
42310
42478
|
}
|
|
42311
42479
|
}, "appendRelatedPreparation");
|
|
42312
42480
|
|
|
42313
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
42481
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/meeting-preparation.js
|
|
42314
42482
|
var size3 = /* @__PURE__ */ __name((value) => Buffer.byteLength(JSON.stringify(value), "utf8"), "size");
|
|
42315
42483
|
var createMeetingPreparationService = /* @__PURE__ */ __name((scope, accountId, ports) => {
|
|
42316
42484
|
const fixed = snapshotMeetingScope(scope);
|
|
@@ -42448,7 +42616,7 @@ var createMeetingPreparationService = /* @__PURE__ */ __name((scope, accountId,
|
|
|
42448
42616
|
};
|
|
42449
42617
|
}, "createMeetingPreparationService");
|
|
42450
42618
|
|
|
42451
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
42619
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/meeting-task-proposal.js
|
|
42452
42620
|
import { createHash as createHash18 } from "node:crypto";
|
|
42453
42621
|
var proposeMeetingTask = /* @__PURE__ */ __name(async (store, accountId, reference, kind) => {
|
|
42454
42622
|
if (!TASK_KINDS.includes(kind))
|
|
@@ -42468,7 +42636,7 @@ var proposeMeetingTask = /* @__PURE__ */ __name(async (store, accountId, referen
|
|
|
42468
42636
|
};
|
|
42469
42637
|
}, "proposeMeetingTask");
|
|
42470
42638
|
|
|
42471
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
42639
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/meeting-tasks.js
|
|
42472
42640
|
var accountSnapshot = /* @__PURE__ */ __name((key) => {
|
|
42473
42641
|
const { provider, account: account2, scope } = key;
|
|
42474
42642
|
if (!provider.trim() || provider.includes(":") || !account2.trim())
|
|
@@ -42531,7 +42699,7 @@ var readMeetingTask = /* @__PURE__ */ __name(async (store, account2, id2) => {
|
|
|
42531
42699
|
}
|
|
42532
42700
|
}, "readMeetingTask");
|
|
42533
42701
|
|
|
42534
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
42702
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/package-upgrade.js
|
|
42535
42703
|
var upgradePackage = /* @__PURE__ */ __name(async ({ current, command, packageName, check: check2 }, ports) => {
|
|
42536
42704
|
const installer = ports.installer();
|
|
42537
42705
|
const argv = updateCommand(installer, packageName);
|
|
@@ -42596,7 +42764,7 @@ var dayAfter = /* @__PURE__ */ __name((published) => {
|
|
|
42596
42764
|
return Number.isNaN(time) ? null : new Date(time + 24 * 60 * 60 * 1e3).toISOString();
|
|
42597
42765
|
}, "dayAfter");
|
|
42598
42766
|
|
|
42599
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
42767
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/proposal-tasks.js
|
|
42600
42768
|
var proposalSource = /* @__PURE__ */ __name((id2) => `proposed-action:${id2}`, "proposalSource");
|
|
42601
42769
|
var approveAsTask = /* @__PURE__ */ __name(async (store, id2, by) => {
|
|
42602
42770
|
const proposal = await store.proposedActions.get(id2);
|
|
@@ -42619,7 +42787,7 @@ var approveAsTask = /* @__PURE__ */ __name(async (store, id2, by) => {
|
|
|
42619
42787
|
return { proposal: await store.proposedActions.approve(proposal.id, by, { task: task2.id }), task: task2 };
|
|
42620
42788
|
}, "approveAsTask");
|
|
42621
42789
|
|
|
42622
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
42790
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/proposals/ids.js
|
|
42623
42791
|
var MAX_IDS = 500;
|
|
42624
42792
|
var refuse = /* @__PURE__ */ __name((message) => {
|
|
42625
42793
|
throw new CliError("validation_error", message, { reason: "proposal.ids" });
|
|
@@ -42661,7 +42829,7 @@ var parseProposalIds = /* @__PURE__ */ __name((text2) => {
|
|
|
42661
42829
|
return ids;
|
|
42662
42830
|
}, "parseProposalIds");
|
|
42663
42831
|
|
|
42664
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
42832
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/shared.js
|
|
42665
42833
|
var proposerOfAuthor = /* @__PURE__ */ __name((author) => {
|
|
42666
42834
|
if (author.type === "person")
|
|
42667
42835
|
return { type: "person", id: author.id };
|
|
@@ -42734,7 +42902,7 @@ var reviewedKind = /* @__PURE__ */ __name((spec) => ({
|
|
|
42734
42902
|
}, "decide")
|
|
42735
42903
|
}), "reviewedKind");
|
|
42736
42904
|
|
|
42737
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
42905
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/findings.js
|
|
42738
42906
|
var FACT_SUMMARIES = {
|
|
42739
42907
|
fact: /* @__PURE__ */ __name((finding) => finding.statement, "fact"),
|
|
42740
42908
|
task: /* @__PURE__ */ __name((finding) => finding.title, "task"),
|
|
@@ -42809,7 +42977,7 @@ var findingsKind = /* @__PURE__ */ __name((store) => {
|
|
|
42809
42977
|
};
|
|
42810
42978
|
}, "findingsKind");
|
|
42811
42979
|
|
|
42812
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
42980
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/organization.js
|
|
42813
42981
|
var ORGANIZATION_ADD_KIND = "organization_add";
|
|
42814
42982
|
var ORGANIZATION_RENAME_KIND = "organization_rename";
|
|
42815
42983
|
var rowOf2 = /* @__PURE__ */ __name((action) => {
|
|
@@ -42865,7 +43033,7 @@ var organizationKind = /* @__PURE__ */ __name((store) => ({
|
|
|
42865
43033
|
}, "decide")
|
|
42866
43034
|
}), "organizationKind");
|
|
42867
43035
|
|
|
42868
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
43036
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/action.js
|
|
42869
43037
|
var rowOf3 = /* @__PURE__ */ __name((action) => ({
|
|
42870
43038
|
id: action.id,
|
|
42871
43039
|
kind: "action",
|
|
@@ -42905,7 +43073,7 @@ var actionKind = /* @__PURE__ */ __name((store, claimed) => ({
|
|
|
42905
43073
|
}, "decide")
|
|
42906
43074
|
}), "actionKind");
|
|
42907
43075
|
|
|
42908
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
43076
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/contracts.js
|
|
42909
43077
|
var contractKind = /* @__PURE__ */ __name((store) => reviewedKind({
|
|
42910
43078
|
type: "contract",
|
|
42911
43079
|
list: /* @__PURE__ */ __name((options2) => store.contracts.list(options2), "list"),
|
|
@@ -42914,7 +43082,7 @@ var contractKind = /* @__PURE__ */ __name((store) => reviewedKind({
|
|
|
42914
43082
|
decide: /* @__PURE__ */ __name(async (id2, confirm, { by, reason }) => (confirm ? await store.contracts.confirm(id2, by, reason) : await store.contracts.reject(id2, by, reason)).ref, "decide")
|
|
42915
43083
|
}), "contractKind");
|
|
42916
43084
|
|
|
42917
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
43085
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/fact.js
|
|
42918
43086
|
var STATUS = {
|
|
42919
43087
|
proposed: "proposed",
|
|
42920
43088
|
accepted: "confirmed",
|
|
@@ -42957,7 +43125,7 @@ var factKind = /* @__PURE__ */ __name((store) => ({
|
|
|
42957
43125
|
}, "decide")
|
|
42958
43126
|
}), "factKind");
|
|
42959
43127
|
|
|
42960
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
43128
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/finance.js
|
|
42961
43129
|
var invoiceKind = /* @__PURE__ */ __name((store) => reviewedKind({
|
|
42962
43130
|
type: "invoice",
|
|
42963
43131
|
list: /* @__PURE__ */ __name((options2) => store.finance.invoices(options2), "list"),
|
|
@@ -42973,7 +43141,7 @@ var paymentKind = /* @__PURE__ */ __name((store) => reviewedKind({
|
|
|
42973
43141
|
decide: /* @__PURE__ */ __name(async (id2, confirm, { by, reason }) => (confirm ? await store.finance.confirm(id2, by, reason) : await store.finance.reject(id2, by, reason)).ref, "decide")
|
|
42974
43142
|
}), "paymentKind");
|
|
42975
43143
|
|
|
42976
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
43144
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/identity-link.js
|
|
42977
43145
|
var rowOf5 = /* @__PURE__ */ __name((action) => {
|
|
42978
43146
|
const payload = action.payload;
|
|
42979
43147
|
const [from, to] = payload.persons;
|
|
@@ -43020,7 +43188,7 @@ var identityLinkKind = /* @__PURE__ */ __name((store) => ({
|
|
|
43020
43188
|
}, "decide")
|
|
43021
43189
|
}), "identityLinkKind");
|
|
43022
43190
|
|
|
43023
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
43191
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/identity-split.js
|
|
43024
43192
|
var summaryOf = /* @__PURE__ */ __name((payload, person) => payload.split === "unmerge" ? `undo ${payload.merge}: ${payload.identities.join(", ")} go back to their own person` : `${payload.identities.join(", ")} may not be ${person}: they would move to a person of their own`, "summaryOf");
|
|
43025
43193
|
var dropped = /* @__PURE__ */ __name((action) => action.status !== "proposed" && action.status !== "rejected" && typeof action.result?.person !== "string", "dropped");
|
|
43026
43194
|
var rowOf6 = /* @__PURE__ */ __name((store) => async (action) => {
|
|
@@ -43075,7 +43243,7 @@ var identitySplitKind = /* @__PURE__ */ __name((store) => ({
|
|
|
43075
43243
|
}, "decide")
|
|
43076
43244
|
}), "identitySplitKind");
|
|
43077
43245
|
|
|
43078
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
43246
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/key-document.js
|
|
43079
43247
|
var linkRow = /* @__PURE__ */ __name((link4) => ({
|
|
43080
43248
|
id: `key:${link4.id}`,
|
|
43081
43249
|
kind: "key_document",
|
|
@@ -43143,7 +43311,7 @@ var keyDocumentKind = /* @__PURE__ */ __name((store) => {
|
|
|
43143
43311
|
};
|
|
43144
43312
|
}, "keyDocumentKind");
|
|
43145
43313
|
|
|
43146
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
43314
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/mail-findings.js
|
|
43147
43315
|
var words3 = /* @__PURE__ */ __name((...parts) => parts.filter(Boolean).join(" "), "words");
|
|
43148
43316
|
var summaryOf2 = /* @__PURE__ */ __name((finding) => {
|
|
43149
43317
|
switch (finding.kind) {
|
|
@@ -43234,7 +43402,7 @@ var mailFindingsKind = /* @__PURE__ */ __name((store) => {
|
|
|
43234
43402
|
};
|
|
43235
43403
|
}, "mailFindingsKind");
|
|
43236
43404
|
|
|
43237
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
43405
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/meeting-findings.js
|
|
43238
43406
|
var rowOf8 = /* @__PURE__ */ __name((action, batch) => {
|
|
43239
43407
|
const findings = batch.input.findings;
|
|
43240
43408
|
const projects = [...new Set(findings.map((one2) => "project" in one2 ? one2.project : void 0))];
|
|
@@ -43301,7 +43469,7 @@ var meetingFindingsKind = /* @__PURE__ */ __name((store) => {
|
|
|
43301
43469
|
};
|
|
43302
43470
|
}, "meetingFindingsKind");
|
|
43303
43471
|
|
|
43304
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
43472
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/memory.js
|
|
43305
43473
|
var STATUS2 = {
|
|
43306
43474
|
proposed: "proposed",
|
|
43307
43475
|
confirmed: "confirmed",
|
|
@@ -43342,7 +43510,7 @@ var memoryKind = /* @__PURE__ */ __name((store) => ({
|
|
|
43342
43510
|
}, "decide")
|
|
43343
43511
|
}), "memoryKind");
|
|
43344
43512
|
|
|
43345
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
43513
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/orders.js
|
|
43346
43514
|
var orderKind = /* @__PURE__ */ __name((store) => reviewedKind({
|
|
43347
43515
|
type: "order",
|
|
43348
43516
|
list: /* @__PURE__ */ __name((options2) => store.orders.list(options2), "list"),
|
|
@@ -43351,7 +43519,7 @@ var orderKind = /* @__PURE__ */ __name((store) => reviewedKind({
|
|
|
43351
43519
|
decide: /* @__PURE__ */ __name(async (id2, confirm, { by, reason }) => (confirm ? await store.orders.confirm(id2, by, reason) : await store.orders.reject(id2, by, reason)).ref, "decide")
|
|
43352
43520
|
}), "orderKind");
|
|
43353
43521
|
|
|
43354
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
43522
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/relationship.js
|
|
43355
43523
|
var linkRow2 = /* @__PURE__ */ __name((link4) => ({
|
|
43356
43524
|
id: `link:${link4.id}`,
|
|
43357
43525
|
kind: "relationship",
|
|
@@ -43426,7 +43594,7 @@ var relationshipKind = /* @__PURE__ */ __name((store) => {
|
|
|
43426
43594
|
};
|
|
43427
43595
|
}, "relationshipKind");
|
|
43428
43596
|
|
|
43429
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
43597
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/relationship-update.js
|
|
43430
43598
|
var KIND2 = "relationship_update";
|
|
43431
43599
|
var summaryOf3 = /* @__PURE__ */ __name(({ changes }) => Object.entries(changes).map(([field, value]) => `${field} ${value ?? "cleared"}`).join(", "), "summaryOf");
|
|
43432
43600
|
var rowOf10 = /* @__PURE__ */ __name((action) => {
|
|
@@ -43476,7 +43644,7 @@ var relationshipUpdateKind = /* @__PURE__ */ __name((store) => ({
|
|
|
43476
43644
|
}, "decide")
|
|
43477
43645
|
}), "relationshipUpdateKind");
|
|
43478
43646
|
|
|
43479
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
43647
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/source-review.js
|
|
43480
43648
|
var rowOf11 = /* @__PURE__ */ __name((action) => {
|
|
43481
43649
|
const payload = action.payload;
|
|
43482
43650
|
const sources = payload.sources.flatMap((source) => source.ref ?? []);
|
|
@@ -43519,7 +43687,7 @@ var sourceReviewKind = /* @__PURE__ */ __name((store) => ({
|
|
|
43519
43687
|
}, "decide")
|
|
43520
43688
|
}), "sourceReviewKind");
|
|
43521
43689
|
|
|
43522
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
43690
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/subscriptions.js
|
|
43523
43691
|
var subscriptionKind = /* @__PURE__ */ __name((store) => reviewedKind({
|
|
43524
43692
|
type: "subscription",
|
|
43525
43693
|
list: /* @__PURE__ */ __name((options2) => store.subscriptions.list(options2), "list"),
|
|
@@ -43538,7 +43706,7 @@ var subscriptionPriceKind = /* @__PURE__ */ __name((store) => reviewedKind({
|
|
|
43538
43706
|
}, "decide")
|
|
43539
43707
|
}), "subscriptionPriceKind");
|
|
43540
43708
|
|
|
43541
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
43709
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/task-close.js
|
|
43542
43710
|
var rowOf12 = /* @__PURE__ */ __name((task2) => {
|
|
43543
43711
|
const suggestion = task2.closeSuggestion;
|
|
43544
43712
|
if (suggestion === null)
|
|
@@ -43606,7 +43774,7 @@ var taskCloseKind = /* @__PURE__ */ __name((store) => {
|
|
|
43606
43774
|
};
|
|
43607
43775
|
}, "taskCloseKind");
|
|
43608
43776
|
|
|
43609
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
43777
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/transactions.js
|
|
43610
43778
|
var transactionKind = /* @__PURE__ */ __name((store) => reviewedKind({
|
|
43611
43779
|
type: "transaction",
|
|
43612
43780
|
list: /* @__PURE__ */ __name((options2) => store.transactions.list(options2), "list"),
|
|
@@ -43615,7 +43783,7 @@ var transactionKind = /* @__PURE__ */ __name((store) => reviewedKind({
|
|
|
43615
43783
|
decide: /* @__PURE__ */ __name(async (id2, confirm, { by, reason }) => (confirm ? await store.transactions.confirm(id2, by, reason) : await store.transactions.reject(id2, by, reason)).ref, "decide")
|
|
43616
43784
|
}), "transactionKind");
|
|
43617
43785
|
|
|
43618
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
43786
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/proposals/registry.js
|
|
43619
43787
|
var PREFIX = /^([a-z][a-z_]*):/;
|
|
43620
43788
|
var marked = /* @__PURE__ */ __name((kind, row) => kind.ownerOnly ? { ...row, ownerOnly: true } : row, "marked");
|
|
43621
43789
|
var refusalOf = /* @__PURE__ */ __name((id2, error) => {
|
|
@@ -43750,7 +43918,7 @@ var proposalRegistry = /* @__PURE__ */ __name((store) => {
|
|
|
43750
43918
|
return registry;
|
|
43751
43919
|
}, "proposalRegistry");
|
|
43752
43920
|
|
|
43753
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
43921
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/search-all-deprecated.js
|
|
43754
43922
|
var searchAllIncludingMeetings = /* @__PURE__ */ __name(async (store, account2, { meetingAccount, maxMeetings: _maxMeetings, meetingCursor: _meetingCursor, ...request }, messenger = {}, searchMessages, meaning) => {
|
|
43755
43923
|
const { meetings: _meetings, ...found } = await searchAll(store, account2, {
|
|
43756
43924
|
...request,
|
|
@@ -43760,7 +43928,7 @@ var searchAllIncludingMeetings = /* @__PURE__ */ __name(async (store, account2,
|
|
|
43760
43928
|
return found;
|
|
43761
43929
|
}, "searchAllIncludingMeetings");
|
|
43762
43930
|
|
|
43763
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
43931
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/stored-meeting-project-candidate-validation.js
|
|
43764
43932
|
var storedCandidateRequest = /* @__PURE__ */ __name((reference, accountId, options2) => {
|
|
43765
43933
|
const invalid7 = /* @__PURE__ */ __name((field) => {
|
|
43766
43934
|
throw new CliError("validation_error", `invalid stored project candidate ${field}`);
|
|
@@ -43802,7 +43970,7 @@ var storedCandidateRequest = /* @__PURE__ */ __name((reference, accountId, optio
|
|
|
43802
43970
|
return { reference, limits, after, afterTranscriptId, signal };
|
|
43803
43971
|
}, "storedCandidateRequest");
|
|
43804
43972
|
|
|
43805
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
43973
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/stored-meeting-project-candidates.js
|
|
43806
43974
|
var createStoredMeetingProjectCandidateReader = /* @__PURE__ */ __name((scope, accountId, ports) => {
|
|
43807
43975
|
const fixed = snapshotMeetingScope(scope);
|
|
43808
43976
|
const store = ports?.meetings;
|
|
@@ -43894,7 +44062,7 @@ var createStoredMeetingProjectCandidateReader = /* @__PURE__ */ __name((scope, a
|
|
|
43894
44062
|
};
|
|
43895
44063
|
}, "createStoredMeetingProjectCandidateReader");
|
|
43896
44064
|
|
|
43897
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
44065
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/index.js
|
|
43898
44066
|
var servicesFor = /* @__PURE__ */ __name((deps) => {
|
|
43899
44067
|
const pictures = picturesService(deps);
|
|
43900
44068
|
const base = {
|