@wirecat/mail-cli 0.30.0 → 0.31.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +18 -0
- package/dist/bin/mail.js +2 -2
- package/dist/bundle/{all-profiles-523GLORJ.js → all-profiles-XL62TNUO.js} +19 -29
- package/dist/bundle/{anthropic-KKYGROQR.js → anthropic-3MSWVYCE.js} +2 -2
- package/dist/bundle/{app-server-RJR7U5NT.js → app-server-RRNR5XFA.js} +45 -60
- package/dist/bundle/{bun-EBQHHLKR.js → bun-E3F3PEQQ.js} +2 -2
- package/dist/bundle/{bun-sqlite-LTG2RRSL.js → bun-sqlite-UOFN77LO.js} +3 -3
- package/dist/bundle/{chunk-IIV43UIC.js → chunk-3CJ4C6BB.js} +12 -12
- package/dist/bundle/{chunk-ZG2XBWFT.js → chunk-3V6J7VPF.js} +3 -3
- package/dist/bundle/{chunk-U7VYDTXN.js → chunk-4BW5JACS.js} +16 -16
- package/dist/bundle/{chunk-MP572GP7.js → chunk-4ME2NHNJ.js} +2 -2
- package/dist/bundle/{chunk-JKWNPRZD.js → chunk-5YRR52NH.js} +1 -1
- package/dist/bundle/{chunk-QGIQ62KV.js → chunk-6UOUDIXL.js} +382 -366
- package/dist/bundle/{chunk-KE2RQUQO.js → chunk-7E7YXQ52.js} +17 -17
- package/dist/bundle/{chunk-ENKZEQ4Y.js → chunk-BKRIIZPV.js} +2 -2
- package/dist/bundle/{chunk-54JKDFOV.js → chunk-BNP7WLDQ.js} +1 -1
- package/dist/bundle/{chunk-WXQK5RO5.js → chunk-BS6WYCNZ.js} +32 -22
- package/dist/bundle/{chunk-B3NXAN6J.js → chunk-BXMLIKUM.js} +146 -146
- package/dist/bundle/{chunk-NMN7RTX5.js → chunk-D6D6JLXG.js} +16 -16
- package/dist/bundle/{chunk-S2KKQA7O.js → chunk-DCR3IWC7.js} +38 -47
- package/dist/bundle/{chunk-LN2LWPN2.js → chunk-DDCDOBZS.js} +1 -1
- package/dist/bundle/{chunk-XGEPAJBY.js → chunk-DPDS6IZJ.js} +1 -1
- package/dist/bundle/{chunk-Q23EEGPC.js → chunk-DWBY7DMF.js} +1 -1
- package/dist/bundle/{chunk-SNZFQ5SS.js → chunk-DZSS2IUK.js} +14 -2
- package/dist/bundle/{chunk-26H2HVJD.js → chunk-E3IOR37T.js} +2 -2
- package/dist/bundle/{chunk-5X5A3CAX.js → chunk-EMVLCION.js} +1 -1
- package/dist/bundle/{chunk-F22PLRCG.js → chunk-EV5SR3OC.js} +7 -7
- package/dist/bundle/{chunk-SPWKGRTO.js → chunk-FRXDSR45.js} +1 -1
- package/dist/bundle/{chunk-YMJXGIYG.js → chunk-FYP2M6IT.js} +23 -23
- package/dist/bundle/{chunk-FYXGD6R6.js → chunk-GWKGZOSO.js} +2 -2
- package/dist/bundle/{chunk-ONA3UI3R.js → chunk-GXBNTKJW.js} +2 -2
- package/dist/bundle/{chunk-KIZYN3NG.js → chunk-GZLCZU5B.js} +5 -5
- package/dist/bundle/{chunk-MVDP7VL6.js → chunk-H2QTUZ3C.js} +1 -1
- package/dist/bundle/{chunk-4F7WQHDO.js → chunk-HZCINHHS.js} +1 -1
- package/dist/bundle/{chunk-A3YXTDTP.js → chunk-HZL3X4XR.js} +15 -15
- package/dist/bundle/{chunk-D3J4T5OZ.js → chunk-I3BQ2QIY.js} +12 -12
- package/dist/bundle/{chunk-YNI57LTZ.js → chunk-I5Y6Y7Q5.js} +1 -1
- package/dist/bundle/{chunk-FL2TKSZY.js → chunk-ITU6K7LU.js} +1 -1
- package/dist/bundle/{chunk-T7A6HSBF.js → chunk-JLIVJSCF.js} +1 -1
- package/dist/bundle/{chunk-J5PUHGK2.js → chunk-JYGFEMTR.js} +1 -1
- package/dist/bundle/{chunk-2M7PPII5.js → chunk-KPFB2VUY.js} +745 -336
- package/dist/bundle/{chunk-3ECFSRLQ.js → chunk-LGDJDD5J.js} +3 -3
- package/dist/bundle/{chunk-GCSFZTRI.js → chunk-MS5XYEYW.js} +9 -5
- package/dist/bundle/{chunk-3HCEKXXB.js → chunk-NEJU74O4.js} +6 -6
- package/dist/bundle/{chunk-E2SL7HIZ.js → chunk-NUN7DBR4.js} +9 -9
- package/dist/bundle/{chunk-TIMBTN5Z.js → chunk-NV3WPD3B.js} +5 -5
- package/dist/bundle/{chunk-DBI22GQL.js → chunk-NYQPKZWL.js} +500 -322
- package/dist/bundle/{chunk-6C7SA4LD.js → chunk-OP5ZLH53.js} +57 -54
- package/dist/bundle/{chunk-SN5V6CKH.js → chunk-OXHQNEXU.js} +98 -6
- package/dist/bundle/{chunk-HZUUVNWC.js → chunk-P6CYVOL6.js} +1 -1
- package/dist/bundle/{chunk-GDFJKUMK.js → chunk-PIXFZZUZ.js} +6 -6
- package/dist/bundle/{chunk-WHS3CTTM.js → chunk-PZL7DHVJ.js} +7 -7
- package/dist/bundle/{chunk-CWAA73PJ.js → chunk-QANXOKYQ.js} +5 -5
- package/dist/bundle/{chunk-LM4K6K2R.js → chunk-QSXJ2BVQ.js} +4 -4
- package/dist/bundle/{chunk-HVJ2WQI7.js → chunk-QVGCHTTU.js} +10 -10
- package/dist/bundle/{chunk-R3IFRHZ2.js → chunk-S2QO6KUI.js} +2 -2
- package/dist/bundle/{chunk-BOGGQOVO.js → chunk-SQA5JI7Q.js} +1 -1
- package/dist/bundle/{chunk-K5FTIIYR.js → chunk-T72DWT37.js} +4 -4
- package/dist/bundle/{chunk-GXKFRZUP.js → chunk-THZHNCJP.js} +3 -3
- package/dist/bundle/{chunk-RLPWLGP6.js → chunk-TUXNILKR.js} +7 -7
- package/dist/bundle/{chunk-L2D5QYI3.js → chunk-UFMR2TB3.js} +2 -2
- package/dist/bundle/{chunk-NV2REPY6.js → chunk-WZGFC7D5.js} +1 -1
- package/dist/bundle/{command-contract-ETECA2AC.js → command-contract-YRNKDQDL.js} +15 -15
- package/dist/bundle/{command-server-entry-BFXRYTBC.js → command-server-entry-A3FCP24M.js} +21 -21
- package/dist/bundle/{decode-4QRYNPD5.js → decode-FI2ISRNZ.js} +2 -2
- package/dist/bundle/{dist-MHJPECI4.js → dist-NLOOZJ64.js} +15 -11
- package/dist/bundle/{echarts-EJXBKCJT.js → echarts-PMAJUJFE.js} +2 -2
- package/dist/bundle/{embed-46WZZMUQ.js → embed-OIMT6SAX.js} +3 -3
- package/dist/bundle/{embedder-56WHJKJE.js → embedder-Q5IF5WIM.js} +6 -6
- package/dist/bundle/{first-run-CATDBOBV.js → first-run-4L53QWOT.js} +6 -6
- package/dist/bundle/first-screen-ZPQLAAIS.js +34 -0
- package/dist/bundle/{instructions-Z7GVGWXS.js → instructions-ZJGGGXOA.js} +1 -1
- package/dist/bundle/mail.js +2 -2
- package/dist/bundle/{node-L2PVEW3N.js → node-DCSOHRD6.js} +2 -2
- package/dist/bundle/{node-sqlite-RIGII7U7.js → node-sqlite-7F77K5JA.js} +4 -4
- package/dist/bundle/{oauth-OWT6NYRS.js → oauth-LVPMEN6M.js} +4 -4
- package/dist/bundle/{open-D3SPYL7O.js → open-XM5LWEN6.js} +2 -2
- package/dist/bundle/{openai-IPTZDMFD.js → openai-H2LCGK22.js} +12 -12
- package/dist/bundle/{process-MNZTQ2DA.js → process-MFC5VSPT.js} +1 -1
- package/dist/bundle/{program-QCHTCOCR.js → program-ZQ43ZYKZ.js} +485 -438
- package/dist/bundle/{prompt-BN6AKRWN.js → prompt-3LZAZNQ4.js} +2 -2
- package/dist/bundle/{recognize-I5TH7OEW.js → recognize-GYQMHFY2.js} +1 -1
- package/dist/bundle/{remote-R324LAUL.js → remote-P2MD5G64.js} +6 -6
- package/dist/bundle/{rerank-ZMGZCUJV.js → rerank-A5X6THV6.js} +4 -4
- package/dist/bundle/{serve-YUFZSNJC.js → serve-IEC3EUKS.js} +6 -6
- package/dist/bundle/{server-54ULZ3RA.js → server-3REPXFNI.js} +43 -41
- package/dist/bundle/server-E2QTFURI.js +67 -0
- package/dist/bundle/{sqlite-runtime-AYQTUQXM.js → sqlite-runtime-AOLQGC5J.js} +3 -3
- package/dist/bundle/{state-PHEBOYYI.js → state-D3P5IXXA.js} +3 -3
- package/dist/bundle/{store-4PHDSXEV.js → store-DIN6OY3K.js} +13 -13
- package/dist/bundle/{store-NGX3A5XT.js → store-MZCQXBVW.js} +15 -15
- package/dist/bundle/store-maintenance-command-UMVFI6M6.js +58 -0
- package/dist/commands/rules.d.ts.map +1 -1
- package/dist/commands/rules.js +73 -22
- package/dist/commands/rules.js.map +1 -1
- package/dist/mail/rules/apply.d.ts.map +1 -1
- package/dist/mail/rules/apply.js +1 -9
- package/dist/mail/rules/apply.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +2 -2
- package/dist/bundle/chunk-IJONJTST.js +0 -76
- package/dist/bundle/first-screen-WCDR3QUR.js +0 -34
- package/dist/bundle/server-UD75CYDG.js +0 -68
- package/dist/bundle/store-maintenance-command-WHBIV6HC.js +0 -58
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
sameOrdinaryFile,
|
|
9
9
|
syncDirectory,
|
|
10
10
|
writeFileAtomic
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-3CJ4C6BB.js";
|
|
12
12
|
import {
|
|
13
13
|
MAX_ACTIONS,
|
|
14
14
|
ModerationRules,
|
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
someUndone,
|
|
22
22
|
validateFormattedText,
|
|
23
23
|
visibleFormattedText
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-PIXFZZUZ.js";
|
|
25
25
|
import {
|
|
26
26
|
EmptyAnswer,
|
|
27
27
|
MAX_MODEL_IMAGE_BYTES,
|
|
@@ -30,7 +30,7 @@ import {
|
|
|
30
30
|
range,
|
|
31
31
|
systemFor,
|
|
32
32
|
validateImages
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-E3IOR37T.js";
|
|
34
34
|
import {
|
|
35
35
|
Command,
|
|
36
36
|
CustomTextModelShape,
|
|
@@ -79,13 +79,13 @@ import {
|
|
|
79
79
|
textModels,
|
|
80
80
|
vectorModelKey,
|
|
81
81
|
writeTextModelsSection
|
|
82
|
-
} from "./chunk-
|
|
82
|
+
} from "./chunk-BXMLIKUM.js";
|
|
83
83
|
import {
|
|
84
84
|
CEILING_KEY,
|
|
85
85
|
keyForWrite,
|
|
86
86
|
levelFor,
|
|
87
87
|
skipFlagFor
|
|
88
|
-
} from "./chunk-
|
|
88
|
+
} from "./chunk-MS5XYEYW.js";
|
|
89
89
|
import {
|
|
90
90
|
isNewer,
|
|
91
91
|
updateCommand
|
|
@@ -145,7 +145,7 @@ import {
|
|
|
145
145
|
validateAst,
|
|
146
146
|
validateFields,
|
|
147
147
|
withoutField
|
|
148
|
-
} from "./chunk-
|
|
148
|
+
} from "./chunk-6UOUDIXL.js";
|
|
149
149
|
import {
|
|
150
150
|
COUNTER_FIELDS,
|
|
151
151
|
MESSAGE_PARSING,
|
|
@@ -170,7 +170,7 @@ import {
|
|
|
170
170
|
rankingOptions,
|
|
171
171
|
rankingQuestion,
|
|
172
172
|
searchError
|
|
173
|
-
} from "./chunk-
|
|
173
|
+
} from "./chunk-7E7YXQ52.js";
|
|
174
174
|
import {
|
|
175
175
|
LOG_ATTRIBUTES,
|
|
176
176
|
TASK_KINDS,
|
|
@@ -193,8 +193,9 @@ import {
|
|
|
193
193
|
sourceOf3 as sourceOf2,
|
|
194
194
|
typedCommand,
|
|
195
195
|
withAttempt
|
|
196
|
-
} from "./chunk-
|
|
196
|
+
} from "./chunk-FYP2M6IT.js";
|
|
197
197
|
import {
|
|
198
|
+
BACKENDS,
|
|
198
199
|
EVENT_QUERY,
|
|
199
200
|
INTERNAL_NOTES,
|
|
200
201
|
MEETING_PROJECT_EVIDENCE_QUERY,
|
|
@@ -230,12 +231,13 @@ import {
|
|
|
230
231
|
liftMeetingFields,
|
|
231
232
|
listed,
|
|
232
233
|
meetingCueFingerprint,
|
|
233
|
-
|
|
234
|
+
meetingDetailsBody,
|
|
234
235
|
meetingHitsList,
|
|
235
236
|
meetingPeople,
|
|
237
|
+
meetingShowThrough,
|
|
236
238
|
meetingSummaryAnswer,
|
|
237
239
|
meetingTranscriptAnswer,
|
|
238
|
-
|
|
240
|
+
meetingsListThrough,
|
|
239
241
|
meetingsQuery,
|
|
240
242
|
normalizeTag,
|
|
241
243
|
parseLocator,
|
|
@@ -247,46 +249,49 @@ import {
|
|
|
247
249
|
pull,
|
|
248
250
|
queryError,
|
|
249
251
|
queryFieldsOf,
|
|
252
|
+
rangeOf,
|
|
250
253
|
readMeetingProjectEvidence,
|
|
254
|
+
serviceCallsOf,
|
|
251
255
|
strongRecordingValidator,
|
|
252
256
|
timezoneOf,
|
|
253
257
|
validateMeetingHitSearch,
|
|
254
258
|
validateMeetingPassage,
|
|
255
259
|
validateQuery,
|
|
256
260
|
walkQuery,
|
|
261
|
+
windowOf,
|
|
257
262
|
zonedMoment
|
|
258
|
-
} from "./chunk-
|
|
263
|
+
} from "./chunk-KPFB2VUY.js";
|
|
259
264
|
import {
|
|
260
265
|
isCliFailure,
|
|
261
266
|
sqliteCode
|
|
262
|
-
} from "./chunk-
|
|
267
|
+
} from "./chunk-5YRR52NH.js";
|
|
263
268
|
import {
|
|
264
269
|
DEFAULT_STEMMERS,
|
|
265
270
|
createStemmer
|
|
266
|
-
} from "./chunk-
|
|
271
|
+
} from "./chunk-EV5SR3OC.js";
|
|
267
272
|
import {
|
|
268
273
|
fold,
|
|
269
274
|
normalize
|
|
270
|
-
} from "./chunk-
|
|
275
|
+
} from "./chunk-FRXDSR45.js";
|
|
271
276
|
import {
|
|
272
277
|
localOnly,
|
|
273
278
|
refuseOffComputer,
|
|
274
279
|
remoteKey
|
|
275
|
-
} from "./chunk-
|
|
280
|
+
} from "./chunk-PZL7DHVJ.js";
|
|
276
281
|
import {
|
|
277
282
|
PLAIN_HTTP_REFUSED,
|
|
278
283
|
endpoint,
|
|
279
284
|
endpointFetch,
|
|
280
285
|
modelAddressAllowed,
|
|
281
286
|
onThisComputer
|
|
282
|
-
} from "./chunk-
|
|
287
|
+
} from "./chunk-DWBY7DMF.js";
|
|
283
288
|
import {
|
|
284
289
|
DEFAULT_TASK_CATEGORIES,
|
|
285
290
|
FALLBACK_CATEGORY,
|
|
286
291
|
readSharedSection,
|
|
287
292
|
sharedConfigPath,
|
|
288
293
|
writeSharedSection
|
|
289
|
-
} from "./chunk-
|
|
294
|
+
} from "./chunk-GZLCZU5B.js";
|
|
290
295
|
import {
|
|
291
296
|
Unzip,
|
|
292
297
|
UnzipInflate,
|
|
@@ -297,15 +302,15 @@ import {
|
|
|
297
302
|
placedText,
|
|
298
303
|
runEmbedders,
|
|
299
304
|
textModelsDirectory
|
|
300
|
-
} from "./chunk-
|
|
305
|
+
} from "./chunk-QANXOKYQ.js";
|
|
301
306
|
import {
|
|
302
307
|
installFiles,
|
|
303
308
|
megabytes
|
|
304
|
-
} from "./chunk-
|
|
309
|
+
} from "./chunk-LGDJDD5J.js";
|
|
305
310
|
import {
|
|
306
311
|
storePath,
|
|
307
312
|
wirecatDirectory
|
|
308
|
-
} from "./chunk-
|
|
313
|
+
} from "./chunk-BNP7WLDQ.js";
|
|
309
314
|
import {
|
|
310
315
|
Credentials,
|
|
311
316
|
logRecordOf,
|
|
@@ -16966,10 +16971,10 @@ var require_lib3 = __commonJS({
|
|
|
16966
16971
|
}
|
|
16967
16972
|
});
|
|
16968
16973
|
|
|
16969
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16974
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/ports/traits.js
|
|
16970
16975
|
var syncsOneChat = /* @__PURE__ */ __name((messenger) => messenger.history !== "store" || messenger.historyOnDemand === true, "syncsOneChat");
|
|
16971
16976
|
|
|
16972
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16977
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/conversations/link.js
|
|
16973
16978
|
var RULES_VERSION = 5;
|
|
16974
16979
|
var LOOK_BACK = 50;
|
|
16975
16980
|
var SAME_SENDER_WITHIN = 10;
|
|
@@ -17059,7 +17064,7 @@ var latest = /* @__PURE__ */ __name((window3, matches) => {
|
|
|
17059
17064
|
var sameThread = /* @__PURE__ */ __name((a, b) => a.threadId === b.threadId, "sameThread");
|
|
17060
17065
|
var link = /* @__PURE__ */ __name((message, parentId, source, kind, confidence, method) => ({ messageId: message.id, parentId, source, kind, confidence, method }), "link");
|
|
17061
17066
|
|
|
17062
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17067
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/sends/upload.js
|
|
17063
17068
|
import { openAsBlob, realpathSync } from "node:fs";
|
|
17064
17069
|
import { open, stat } from "node:fs/promises";
|
|
17065
17070
|
import { basename, dirname, extname, isAbsolute, relative, resolve, sep } from "node:path";
|
|
@@ -17273,10 +17278,10 @@ var readStickerFile = /* @__PURE__ */ __name(async (path, maxBytes, read) => {
|
|
|
17273
17278
|
return { name, source };
|
|
17274
17279
|
}, "readStickerFile");
|
|
17275
17280
|
|
|
17276
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17281
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/sends/guard.js
|
|
17277
17282
|
import { randomUUID } from "node:crypto";
|
|
17278
17283
|
|
|
17279
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17284
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/sends/flood.js
|
|
17280
17285
|
import { mkdirSync, readFileSync, renameSync, writeFileSync } from "node:fs";
|
|
17281
17286
|
import { dirname as dirname2, join } from "node:path";
|
|
17282
17287
|
var MOST_DEADLINES = 50;
|
|
@@ -17360,11 +17365,11 @@ var FloodMemory = class {
|
|
|
17360
17365
|
}
|
|
17361
17366
|
};
|
|
17362
17367
|
|
|
17363
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17368
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/sends/journal.js
|
|
17364
17369
|
import { appendFileSync, mkdirSync as mkdirSync3, readFileSync as readFileSync2 } from "node:fs";
|
|
17365
17370
|
import { dirname as dirname4, join as join2 } from "node:path";
|
|
17366
17371
|
|
|
17367
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17372
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/sends/file-lock.js
|
|
17368
17373
|
import { closeSync, mkdirSync as mkdirSync2, openSync, statSync, unlinkSync } from "node:fs";
|
|
17369
17374
|
import { dirname as dirname3 } from "node:path";
|
|
17370
17375
|
var LOCK_WAIT_MS = 5e3;
|
|
@@ -17431,7 +17436,7 @@ var lockTime = /* @__PURE__ */ __name((lock) => {
|
|
|
17431
17436
|
}
|
|
17432
17437
|
}, "lockTime");
|
|
17433
17438
|
|
|
17434
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17439
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/sends/journal.js
|
|
17435
17440
|
var sendsPathFor = /* @__PURE__ */ __name((app, profile, env = process.env) => join2(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "sends", `${profile}.jsonl`), "sendsPathFor");
|
|
17436
17441
|
var SendJournal = class {
|
|
17437
17442
|
static {
|
|
@@ -17508,7 +17513,7 @@ var withSendId = /* @__PURE__ */ __name((entry) => {
|
|
|
17508
17513
|
return cid === void 0 || rest.sendId !== void 0 ? rest : { ...rest, sendId: String(cid) };
|
|
17509
17514
|
}, "withSendId");
|
|
17510
17515
|
|
|
17511
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17516
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/sends/recipients.js
|
|
17512
17517
|
import { existsSync, readFileSync as readFileSync3, rmSync } from "node:fs";
|
|
17513
17518
|
import { join as join3 } from "node:path";
|
|
17514
17519
|
var recipientsPathFor = /* @__PURE__ */ __name((app, profile, env = process.env) => join3(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "profiles", `${profile}.recipients.json`), "recipientsPathFor");
|
|
@@ -17620,7 +17625,7 @@ var RecipientList = class {
|
|
|
17620
17625
|
}
|
|
17621
17626
|
};
|
|
17622
17627
|
|
|
17623
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17628
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/sends/guard.js
|
|
17624
17629
|
var HOUR_MS = 60 * 60 * 1e3;
|
|
17625
17630
|
var READS = /* @__PURE__ */ new Set([
|
|
17626
17631
|
"attachments.extract",
|
|
@@ -17636,7 +17641,10 @@ var READS = /* @__PURE__ */ new Set([
|
|
|
17636
17641
|
]);
|
|
17637
17642
|
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");
|
|
17638
17643
|
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");
|
|
17639
|
-
var timeOf = /* @__PURE__ */ __name((entry) =>
|
|
17644
|
+
var timeOf = /* @__PURE__ */ __name((entry) => {
|
|
17645
|
+
const scheduled = entry.scheduledFor === void 0 ? Number.NaN : Date.parse(entry.scheduledFor);
|
|
17646
|
+
return Number.isNaN(scheduled) ? Date.parse(entry.at) : scheduled;
|
|
17647
|
+
}, "timeOf");
|
|
17640
17648
|
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");
|
|
17641
17649
|
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");
|
|
17642
17650
|
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") }) => {
|
|
@@ -17687,6 +17695,8 @@ var sendGuard = /* @__PURE__ */ __name(({ profile, recipients, command = recipie
|
|
|
17687
17695
|
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`);
|
|
17688
17696
|
}
|
|
17689
17697
|
const at = request.scheduledFor ? Date.parse(request.scheduledFor) : now().getTime();
|
|
17698
|
+
if (Number.isNaN(at))
|
|
17699
|
+
throw new CliError("validation_error", `"${request.scheduledFor}" is not a time to send at \u2014 use ISO 8601`);
|
|
17690
17700
|
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);
|
|
17691
17701
|
const unsure = /* @__PURE__ */ __name((entry) => entry.outcome === "outcome_unknown", "unsure");
|
|
17692
17702
|
const same2 = /* @__PURE__ */ __name((a, b) => a.sendId !== void 0 && a.sendId === b.sendId && a.chatId === b.chatId, "same");
|
|
@@ -17815,7 +17825,7 @@ var guardFor = /* @__PURE__ */ __name((app, settings, warn, env = process.env, a
|
|
|
17815
17825
|
}), "guardFor");
|
|
17816
17826
|
var journalFailure = /* @__PURE__ */ __name((error) => error?.code ?? (error instanceof Error ? error.name : "error"), "journalFailure");
|
|
17817
17827
|
|
|
17818
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17828
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/cli/messenger/lacks.js
|
|
17819
17829
|
var COMMAND_NEEDS = {
|
|
17820
17830
|
"account update": ["updateProfile", "change the profile"],
|
|
17821
17831
|
"account sessions list": ["sessions", "list the account's sessions"],
|
|
@@ -17865,7 +17875,7 @@ var hideNever = /* @__PURE__ */ __name((messenger, group) => {
|
|
|
17865
17875
|
return group;
|
|
17866
17876
|
}, "hideNever");
|
|
17867
17877
|
|
|
17868
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17878
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/services/members-audit.js
|
|
17869
17879
|
var AUDIT_PAGE = 200;
|
|
17870
17880
|
var AUDIT_BUDGET = 10;
|
|
17871
17881
|
var AUDIT_PAUSE_MS = 1e3;
|
|
@@ -17945,7 +17955,82 @@ var burstJoins = /* @__PURE__ */ __name((members) => {
|
|
|
17945
17955
|
return found;
|
|
17946
17956
|
}, "burstJoins");
|
|
17947
17957
|
|
|
17948
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17958
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/meetings/cli/management.js
|
|
17959
|
+
var REMOTE_READ = { remote: "read", local: "read" };
|
|
17960
|
+
var REMOTE_WRITE = { remote: "write", local: "write" };
|
|
17961
|
+
var minutes = /* @__PURE__ */ __name((text2) => {
|
|
17962
|
+
if (!/^[1-9]\d*$/.test(text2))
|
|
17963
|
+
throw new InvalidArgumentError("expected whole minutes");
|
|
17964
|
+
return Number(text2);
|
|
17965
|
+
}, "minutes");
|
|
17966
|
+
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");
|
|
17967
|
+
var changeOf = /* @__PURE__ */ __name((flags) => Object.fromEntries(["title", "kind", "startTime", "durationMinutes", "timezone", "agenda"].flatMap((key) => flags[key] === void 0 ? [] : [[key, flags[key]]])), "changeOf");
|
|
17968
|
+
var meetingOf = /* @__PURE__ */ __name((one) => ({
|
|
17969
|
+
id: one.id,
|
|
17970
|
+
title: one.title,
|
|
17971
|
+
kind: one.kind,
|
|
17972
|
+
start_time: one.startTime,
|
|
17973
|
+
duration_minutes: one.durationMinutes,
|
|
17974
|
+
timezone: one.timezone,
|
|
17975
|
+
agenda: one.agenda,
|
|
17976
|
+
join_url: one.joinUrl
|
|
17977
|
+
}), "meetingOf");
|
|
17978
|
+
var receiptItem = /* @__PURE__ */ __name((receipt) => {
|
|
17979
|
+
const { change } = receipt;
|
|
17980
|
+
return {
|
|
17981
|
+
action: receipt.action,
|
|
17982
|
+
provider: receipt.scope.provider,
|
|
17983
|
+
account: receipt.scope.account,
|
|
17984
|
+
...receipt.id === void 0 ? {} : { id: receipt.id },
|
|
17985
|
+
...receipt.occurrenceId === void 0 ? {} : { occurrence_id: receipt.occurrenceId },
|
|
17986
|
+
...change ? {
|
|
17987
|
+
change: {
|
|
17988
|
+
...change.title === void 0 ? {} : { title: change.title },
|
|
17989
|
+
...change.kind === void 0 ? {} : { kind: change.kind },
|
|
17990
|
+
...change.startTime === void 0 ? {} : { start_time: change.startTime },
|
|
17991
|
+
...change.durationMinutes === void 0 ? {} : { duration_minutes: change.durationMinutes },
|
|
17992
|
+
...change.timezone === void 0 ? {} : { timezone: change.timezone },
|
|
17993
|
+
...change.agenda === void 0 ? {} : { agenda: change.agenda }
|
|
17994
|
+
}
|
|
17995
|
+
} : {},
|
|
17996
|
+
applied: receipt.applied,
|
|
17997
|
+
...receipt.meeting ? { meeting: meetingOf(receipt.meeting) } : {}
|
|
17998
|
+
};
|
|
17999
|
+
}, "receiptItem");
|
|
18000
|
+
var addMeetingManagementCommands = /* @__PURE__ */ __name((group, deps) => {
|
|
18001
|
+
const { management, print, output, inRun, askFirst } = deps;
|
|
18002
|
+
const has = /* @__PURE__ */ __name((name) => management.capabilities.includes(name), "has");
|
|
18003
|
+
const mutation = /* @__PURE__ */ __name(async (command) => {
|
|
18004
|
+
const dryRun = command.optsWithGlobals().dryRun === true;
|
|
18005
|
+
if (!dryRun) {
|
|
18006
|
+
if (!askFirst)
|
|
18007
|
+
throw new CliError("configuration_error", "this tool cannot ask before it changes a meeting on the service");
|
|
18008
|
+
await askFirst(command);
|
|
18009
|
+
}
|
|
18010
|
+
return { apply: true, dryRun };
|
|
18011
|
+
}, "mutation");
|
|
18012
|
+
const write = /* @__PURE__ */ __name((name) => annotate(group.command(name), { effects: REMOTE_WRITE, offline: false, output: { entity: "meeting_change" } }), "write");
|
|
18013
|
+
const target2 = /* @__PURE__ */ __name((command) => command.argument("<meeting>", "the service's id of the meeting"), "target");
|
|
18014
|
+
if (has("create"))
|
|
18015
|
+
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)));
|
|
18016
|
+
if (has("update"))
|
|
18017
|
+
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)));
|
|
18018
|
+
if (has("cancel"))
|
|
18019
|
+
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({
|
|
18020
|
+
item: receiptItem(await management.cancel(id2, {
|
|
18021
|
+
...await mutation(command),
|
|
18022
|
+
...flags.occurrenceId === void 0 ? {} : { occurrenceId: flags.occurrenceId }
|
|
18023
|
+
}))
|
|
18024
|
+
}, command)));
|
|
18025
|
+
if (has("invitation"))
|
|
18026
|
+
output(target2(annotate(group.command("invitation"), {
|
|
18027
|
+
effects: REMOTE_READ,
|
|
18028
|
+
offline: false,
|
|
18029
|
+
output: { entity: "meeting_invitation" }
|
|
18030
|
+
}).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)));
|
|
18031
|
+
}, "addMeetingManagementCommands");
|
|
18032
|
+
|
|
18033
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/meetings/cli/query-options.js
|
|
17949
18034
|
var queryWordsAfterOptions = /* @__PURE__ */ __name((command) => {
|
|
17950
18035
|
command.allowUnknownOption();
|
|
17951
18036
|
const parse2 = command.parseOptions.bind(command);
|
|
@@ -17965,7 +18050,7 @@ var queryWordsAfterOptions = /* @__PURE__ */ __name((command) => {
|
|
|
17965
18050
|
return command;
|
|
17966
18051
|
}, "queryWordsAfterOptions");
|
|
17967
18052
|
|
|
17968
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18053
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/meetings/cli/passage.js
|
|
17969
18054
|
var count = /* @__PURE__ */ __name((value) => {
|
|
17970
18055
|
if (!/^(0|[1-9]\d*)$/.test(value) || !Number.isSafeInteger(Number(value)))
|
|
17971
18056
|
throw new CliError("validation_error", "expected a nonnegative safe integer");
|
|
@@ -18007,7 +18092,7 @@ var addMeetingPassageCommandDefinition = /* @__PURE__ */ __name((program, deps)
|
|
|
18007
18092
|
var createMeetingPassageCommand = sharedCommand(createMeetingPassageCommandDefinition);
|
|
18008
18093
|
var addMeetingPassageCommand = sharedCommand(addMeetingPassageCommandDefinition);
|
|
18009
18094
|
|
|
18010
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18095
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/meetings/cli/project-evidence.js
|
|
18011
18096
|
var integer2 = /* @__PURE__ */ __name((value) => {
|
|
18012
18097
|
if (!/^[1-9]\d*$/.test(value) || !Number.isSafeInteger(Number(value)))
|
|
18013
18098
|
throw new CliError("validation_error", "expected a positive safe integer");
|
|
@@ -18030,15 +18115,20 @@ ${fieldsHelp(MEETING_PROJECT_EVIDENCE_QUERY)}`).option("--limit <n>", "hits in o
|
|
|
18030
18115
|
}, "addMeetingProjectEvidenceCommandDefinition");
|
|
18031
18116
|
var addMeetingProjectEvidenceCommand = sharedCommand(addMeetingProjectEvidenceCommandDefinition);
|
|
18032
18117
|
|
|
18033
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18118
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/meetings/cli/search.js
|
|
18034
18119
|
var ZONED = /(?:Z|[+-]\d{2}:?\d{2})$/i;
|
|
18120
|
+
var AGO = /^(\d+)(m|h|d)$/;
|
|
18121
|
+
var AGO_MS = { m: 6e4, h: 36e5, d: 864e5 };
|
|
18035
18122
|
var moment = /* @__PURE__ */ __name((flag, end, readIn) => (value) => {
|
|
18123
|
+
const [, amount, unit] = AGO.exec(value.trim()) ?? [];
|
|
18124
|
+
if (amount && unit)
|
|
18125
|
+
return Date.now() - Number(amount) * (AGO_MS[unit] ?? 0);
|
|
18036
18126
|
const zone = timezoneOf();
|
|
18037
18127
|
let time;
|
|
18038
18128
|
try {
|
|
18039
18129
|
time = zonedMoment(value, zone, { start: 0, end: value.length }, { end });
|
|
18040
18130
|
} catch {
|
|
18041
|
-
throw new CliError("validation_error", `${flag} takes an ISO date,
|
|
18131
|
+
throw new CliError("validation_error", `${flag} takes an ISO date, a time with or without an offset, or 30m, 2h, 7d ago`);
|
|
18042
18132
|
}
|
|
18043
18133
|
if (!ZONED.test(value.trim()))
|
|
18044
18134
|
readIn(zone);
|
|
@@ -18056,7 +18146,7 @@ var createMeetingSearchCommandDefinition = /* @__PURE__ */ __name((program) => {
|
|
|
18056
18146
|
program.addCommand(search);
|
|
18057
18147
|
}
|
|
18058
18148
|
const readIn = /* @__PURE__ */ __name((zone) => command.setOptionValue("timesReadIn", zone), "readIn");
|
|
18059
|
-
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);
|
|
18149
|
+
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);
|
|
18060
18150
|
annotate(command, {
|
|
18061
18151
|
origin: "handwritten",
|
|
18062
18152
|
effects: { remote: "none", local: "read" },
|
|
@@ -18116,7 +18206,7 @@ var addMeetingSearchCommandDefinition = /* @__PURE__ */ __name((program, deps) =
|
|
|
18116
18206
|
var createMeetingSearchCommand = sharedCommand(createMeetingSearchCommandDefinition);
|
|
18117
18207
|
var addMeetingSearchCommand = sharedCommand(addMeetingSearchCommandDefinition);
|
|
18118
18208
|
|
|
18119
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18209
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/meetings/cli/index.js
|
|
18120
18210
|
var integer4 = /* @__PURE__ */ __name((text2) => {
|
|
18121
18211
|
if (!/^[1-9]\d*$/.test(text2) || !Number.isSafeInteger(Number(text2)))
|
|
18122
18212
|
throw new InvalidArgumentError("expected a positive integer");
|
|
@@ -18135,6 +18225,14 @@ var date = /* @__PURE__ */ __name((text2) => {
|
|
|
18135
18225
|
}
|
|
18136
18226
|
}, "date");
|
|
18137
18227
|
var LOCAL_READ = { remote: "none", local: "read" };
|
|
18228
|
+
var REMOTE_READ2 = { remote: "read", local: "read" };
|
|
18229
|
+
var backendOf = /* @__PURE__ */ __name((value) => {
|
|
18230
|
+
if (!BACKENDS.includes(value))
|
|
18231
|
+
throw new InvalidArgumentError("expected archive, server or both");
|
|
18232
|
+
return value;
|
|
18233
|
+
}, "backendOf");
|
|
18234
|
+
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");
|
|
18235
|
+
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.";
|
|
18138
18236
|
var LOCAL_WRITE = { remote: "none", local: "write" };
|
|
18139
18237
|
var FETCH = { remote: "read", local: "write" };
|
|
18140
18238
|
var addMeetingCommandsDefinition = /* @__PURE__ */ __name((program, deps) => {
|
|
@@ -18150,20 +18248,44 @@ var addMeetingCommandsDefinition = /* @__PURE__ */ __name((program, deps) => {
|
|
|
18150
18248
|
const opts = command.optsWithGlobals();
|
|
18151
18249
|
deps.write(value, opts.json ? "json" : opts.jsonl ? "jsonl" : "text");
|
|
18152
18250
|
}, "print");
|
|
18153
|
-
const
|
|
18154
|
-
|
|
18155
|
-
|
|
18156
|
-
|
|
18251
|
+
const access = /* @__PURE__ */ __name((command, backend) => ({
|
|
18252
|
+
...backend === void 0 ? {} : { backend },
|
|
18253
|
+
offline: command.optsWithGlobals().offline === true,
|
|
18254
|
+
timezone: timezoneOf(deps.timezone),
|
|
18255
|
+
...deps.now ? { now: deps.now() } : {}
|
|
18256
|
+
}), "access");
|
|
18257
|
+
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", `
|
|
18258
|
+
${fieldsHelp(MEETING_QUERY, MEETING_QUERY_GUIDE)}
|
|
18259
|
+
${BACKEND_HELP}`);
|
|
18260
|
+
annotate(list2, {
|
|
18261
|
+
effects: REMOTE_READ2,
|
|
18262
|
+
partial: true,
|
|
18263
|
+
query: defineQuery(MEETING_QUERY),
|
|
18264
|
+
output: { entity: "meeting" }
|
|
18265
|
+
});
|
|
18266
|
+
backendOption(output(list2)).option("--limit <n>", "meetings per page", integer4, 100).option("--page <n>", "page number", integer4, 1).action(async (words3, opts, command) => {
|
|
18157
18267
|
const query = meetingsQuery(words3.join(" "));
|
|
18158
|
-
|
|
18159
|
-
|
|
18160
|
-
|
|
18161
|
-
|
|
18162
|
-
|
|
18163
|
-
|
|
18268
|
+
await deps.inRun(command, async () => {
|
|
18269
|
+
const { server: _server, ...answer } = await meetingsListThrough(deps.source, deps.store, {
|
|
18270
|
+
accountId: deps.accountId,
|
|
18271
|
+
limit: opts.limit,
|
|
18272
|
+
offset: (opts.page - 1) * opts.limit,
|
|
18273
|
+
...query ? { query } : {}
|
|
18274
|
+
}, access(command, opts.backend));
|
|
18275
|
+
print(answer, command);
|
|
18276
|
+
});
|
|
18164
18277
|
});
|
|
18165
|
-
output(annotate(group.command("show"), { effects:
|
|
18166
|
-
|
|
18278
|
+
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}
|
|
18279
|
+
${BACKEND_HELP}`))).action(async (meeting, opts, command) => {
|
|
18280
|
+
await deps.inRun(command, async () => {
|
|
18281
|
+
const shown = await meetingShowThrough(deps.source, deps.store, deps.accountId, meeting, access(command, opts.backend));
|
|
18282
|
+
const { item: item2 } = await meetingDetailsBody(deps.store, shown.details);
|
|
18283
|
+
print({
|
|
18284
|
+
item: shown.foundIn ? { ...item2, found_in: shown.foundIn } : item2,
|
|
18285
|
+
...shown.missing ? { missing: shown.missing } : {},
|
|
18286
|
+
...shown.meta ? { meta: shown.meta } : {}
|
|
18287
|
+
}, command);
|
|
18288
|
+
});
|
|
18167
18289
|
});
|
|
18168
18290
|
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) => {
|
|
18169
18291
|
print(await meetingTranscriptAnswer(deps.store, id2, deps.accountId, { history: opts.history }), command);
|
|
@@ -18248,6 +18370,14 @@ ${deps.importHelp}`);
|
|
|
18248
18370
|
now: deps.now?.() ?? Date.now()
|
|
18249
18371
|
}), command);
|
|
18250
18372
|
});
|
|
18373
|
+
if (deps.management)
|
|
18374
|
+
addMeetingManagementCommands(group, {
|
|
18375
|
+
management: deps.management,
|
|
18376
|
+
print,
|
|
18377
|
+
output,
|
|
18378
|
+
inRun: deps.inRun,
|
|
18379
|
+
...deps.askFirst ? { askFirst: deps.askFirst } : {}
|
|
18380
|
+
});
|
|
18251
18381
|
const eventList = queryWordsAfterOptions(annotate(program.command("events").description("the owner's stored events"), {
|
|
18252
18382
|
effects: { remote: "none", local: "none" }
|
|
18253
18383
|
}).command("list")).description("list stored events").argument("[query...]", "event id, origin or time fields that narrow the list").addHelpText("after", `
|
|
@@ -18265,7 +18395,7 @@ ${fieldsHelp(EVENT_QUERY, MEETING_QUERY_GUIDE)}`);
|
|
|
18265
18395
|
}, "addMeetingCommandsDefinition");
|
|
18266
18396
|
var addMeetingCommands = sharedCommand(addMeetingCommandsDefinition);
|
|
18267
18397
|
|
|
18268
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18398
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/cli/list-query.js
|
|
18269
18399
|
var LIST_QUERY_GUIDE = "https://github.com/WireCatLabs/cli-core/blob/main/docs/search/query-language.md";
|
|
18270
18400
|
var QUERY_ARGUMENT = "field:value terms that narrow the list \u2014 the fields are below";
|
|
18271
18401
|
var withQuery = /* @__PURE__ */ __name((command, registry) => {
|
|
@@ -18399,7 +18529,7 @@ var termField = /* @__PURE__ */ __name((name, type, example, more = {}) => nativ
|
|
|
18399
18529
|
var queryHelp = /* @__PURE__ */ __name((registry) => `
|
|
18400
18530
|
${fieldsHelp(registry, LIST_QUERY_GUIDE)}`, "queryHelp");
|
|
18401
18531
|
|
|
18402
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18532
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/cli/paging.js
|
|
18403
18533
|
var positiveCount = /* @__PURE__ */ __name((flag) => (value) => {
|
|
18404
18534
|
if (!/^\d+$/.test(value.trim()) || Number(value) < 1)
|
|
18405
18535
|
throw new CliError("validation_error", `${flag} takes a whole number from 1 upwards, not "${value}"`);
|
|
@@ -18408,7 +18538,7 @@ var positiveCount = /* @__PURE__ */ __name((flag) => (value) => {
|
|
|
18408
18538
|
var withPaging = /* @__PURE__ */ __name((command) => command.option("--limit <n>", "how many to show", positiveCount("--limit")).option("--page <n>", "which page, starting at 1", positiveCount("--page")).option("--all", "every row, no paging"), "withPaging");
|
|
18409
18539
|
var window = /* @__PURE__ */ __name(({ limit, page, all }) => all ? { offset: 0 } : { limit, offset: (page - 1) * limit }, "window");
|
|
18410
18540
|
|
|
18411
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18541
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/cli/messenger/chat-answers.js
|
|
18412
18542
|
var defined = /* @__PURE__ */ __name((record2) => Object.fromEntries(Object.entries(record2).filter(([, value]) => value !== void 0)), "defined");
|
|
18413
18543
|
var chatRef = /* @__PURE__ */ __name((account, chat) => formatReference({ type: "chat", provider: account.provider, account: account.account, chat }), "chatRef");
|
|
18414
18544
|
var settingsOf = /* @__PURE__ */ __name((settings) => defined({
|
|
@@ -18670,7 +18800,7 @@ var sessionAnswer = /* @__PURE__ */ __name(({ current, client, device, location,
|
|
|
18670
18800
|
...createdAt === void 0 ? {} : { created_at: createdAt }
|
|
18671
18801
|
}), "sessionAnswer");
|
|
18672
18802
|
|
|
18673
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18803
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/services/deps.js
|
|
18674
18804
|
var accountStore = /* @__PURE__ */ __name(async (deps) => (await deps.store()).forAccount(await deps.account()), "accountStore");
|
|
18675
18805
|
var crossAccount = /* @__PURE__ */ __name((deps, _reason) => deps.store(), "crossAccount");
|
|
18676
18806
|
var NO_LOCAL_STORE = "this answer comes from the messenger, not from the local store";
|
|
@@ -18732,7 +18862,7 @@ var storedDeps = /* @__PURE__ */ __name((messenger, store, account, guard) => ({
|
|
|
18732
18862
|
}), "storedDeps");
|
|
18733
18863
|
var storeModeDeps = /* @__PURE__ */ __name((messenger, store, account, guard) => ({ ...storedDeps(messenger, store, account, guard), offline: false, reads: "store" }), "storeModeDeps");
|
|
18734
18864
|
|
|
18735
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18865
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/ports/messenger.js
|
|
18736
18866
|
var throughWrapper = /* @__PURE__ */ __name((inner, handled, wrap = (_, call) => call) => new Proxy(handled, {
|
|
18737
18867
|
get: /* @__PURE__ */ __name((own, key) => {
|
|
18738
18868
|
if (key in own)
|
|
@@ -18749,12 +18879,12 @@ var capability = /* @__PURE__ */ __name((adapter, method, what) => {
|
|
|
18749
18879
|
return found.bind(adapter);
|
|
18750
18880
|
}, "capability");
|
|
18751
18881
|
|
|
18752
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18882
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/sends/send-id.js
|
|
18753
18883
|
import { randomBytes } from "node:crypto";
|
|
18754
18884
|
var newSendId = /* @__PURE__ */ __name(() => randomBytes(8).readBigInt64BE().toString(), "newSendId");
|
|
18755
18885
|
var newOperationId = newSendId;
|
|
18756
18886
|
|
|
18757
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18887
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/services/questions.js
|
|
18758
18888
|
var LINKS = /https?:\/\/\S+/g;
|
|
18759
18889
|
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");
|
|
18760
18890
|
var questions = /* @__PURE__ */ __name((messages, { answerers: answerers2, asker = "others" }) => {
|
|
@@ -18784,7 +18914,7 @@ var questions = /* @__PURE__ */ __name((messages, { answerers: answerers2, asker
|
|
|
18784
18914
|
});
|
|
18785
18915
|
}, "questions");
|
|
18786
18916
|
|
|
18787
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18917
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/services/task-categories.js
|
|
18788
18918
|
var names = /* @__PURE__ */ __name((categories) => categories.map(({ name }) => name).join(", "), "names");
|
|
18789
18919
|
var taskCategoryOf = /* @__PURE__ */ __name((categories = DEFAULT_TASK_CATEGORIES, flag = "--category") => (typed) => {
|
|
18790
18920
|
const name = typed.trim().toLowerCase();
|
|
@@ -18841,7 +18971,7 @@ var categorize = /* @__PURE__ */ __name((text2, categories = DEFAULT_TASK_CATEGO
|
|
|
18841
18971
|
return best.name;
|
|
18842
18972
|
}, "categorize");
|
|
18843
18973
|
|
|
18844
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18974
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/services/task-rules.js
|
|
18845
18975
|
var taskAccount = /* @__PURE__ */ __name(({ provider, account }) => `${provider}:${account}`, "taskAccount");
|
|
18846
18976
|
var RULES_IN = {
|
|
18847
18977
|
dialog: "all",
|
|
@@ -19047,14 +19177,14 @@ var applyTaskRulesToChats = /* @__PURE__ */ __name(async (store, account, chatId
|
|
|
19047
19177
|
return passes;
|
|
19048
19178
|
}, "applyTaskRulesToChats");
|
|
19049
19179
|
|
|
19050
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19051
|
-
var
|
|
19052
|
-
var
|
|
19180
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/services/moment.js
|
|
19181
|
+
var AGO2 = /^(\d+)(m|h|d)$/;
|
|
19182
|
+
var AGO_MS2 = { m: 6e4, h: 36e5, d: 864e5 };
|
|
19053
19183
|
var DATE = /^\d{4}-\d{2}-\d{2}/;
|
|
19054
19184
|
var momentOf = /* @__PURE__ */ __name((reference, flag = "--since", now = Date.now(), at = {}) => {
|
|
19055
19185
|
const wanted = reference.trim();
|
|
19056
|
-
const [, amount, unit] =
|
|
19057
|
-
const time = amount && unit ? now - Number(amount) * (
|
|
19186
|
+
const [, amount, unit] = AGO2.exec(wanted) ?? [];
|
|
19187
|
+
const time = amount && unit ? now - Number(amount) * (AGO_MS2[unit] ?? 0) : DATE.test(wanted) ? calendarMoment(wanted, flag, at) : Number.NaN;
|
|
19058
19188
|
if (Number.isNaN(time)) {
|
|
19059
19189
|
throw new CliError("validation_error", `${flag} takes an ISO 8601 time or 30m, 2h, 1d ago \u2014 not "${wanted}"`);
|
|
19060
19190
|
}
|
|
@@ -19062,8 +19192,8 @@ var momentOf = /* @__PURE__ */ __name((reference, flag = "--since", now = Date.n
|
|
|
19062
19192
|
}, "momentOf");
|
|
19063
19193
|
var aheadOf = /* @__PURE__ */ __name((reference, flag, now = Date.now(), at = {}) => {
|
|
19064
19194
|
const wanted = reference.trim();
|
|
19065
|
-
const [, amount, unit] =
|
|
19066
|
-
const time = amount && unit ? now + Number(amount) * (
|
|
19195
|
+
const [, amount, unit] = AGO2.exec(wanted) ?? [];
|
|
19196
|
+
const time = amount && unit ? now + Number(amount) * (AGO_MS2[unit] ?? 0) : DATE.test(wanted) ? calendarMoment(wanted, flag, at) : Number.NaN;
|
|
19067
19197
|
if (Number.isNaN(time)) {
|
|
19068
19198
|
throw new CliError("validation_error", `${flag} takes an ISO 8601 time or 30m, 2h, 3d from now \u2014 not "${wanted}"`);
|
|
19069
19199
|
}
|
|
@@ -19087,7 +19217,7 @@ var dateWindow = /* @__PURE__ */ __name(({ sinceTime, untilTime, zone, now = Dat
|
|
|
19087
19217
|
};
|
|
19088
19218
|
}, "dateWindow");
|
|
19089
19219
|
|
|
19090
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19220
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/services/patience.js
|
|
19091
19221
|
import { setTimeout as sleep } from "node:timers/promises";
|
|
19092
19222
|
var LONGEST_WAIT_MS = 5 * 60 * 1e3;
|
|
19093
19223
|
var patiently = /* @__PURE__ */ __name(async (request, note, stop) => {
|
|
@@ -19110,10 +19240,10 @@ var patiently = /* @__PURE__ */ __name(async (request, note, stop) => {
|
|
|
19110
19240
|
}
|
|
19111
19241
|
}, "patiently");
|
|
19112
19242
|
|
|
19113
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19243
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/services/archive.js
|
|
19114
19244
|
import { setTimeout as sleep2 } from "node:timers/promises";
|
|
19115
19245
|
|
|
19116
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19246
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/services/backfill-estimate.js
|
|
19117
19247
|
var REQUEST_MS = 400;
|
|
19118
19248
|
var estimateBackfill = /* @__PURE__ */ __name(({ ranges, held, newest, page, maxPages, pauseMs }) => {
|
|
19119
19249
|
const lowest = ranges[0];
|
|
@@ -19136,13 +19266,13 @@ var estimateBackfill = /* @__PURE__ */ __name(({ ranges, held, newest, page, max
|
|
|
19136
19266
|
};
|
|
19137
19267
|
}, "estimateBackfill");
|
|
19138
19268
|
|
|
19139
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19269
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/domain/recovery.js
|
|
19140
19270
|
var withRecovery = /* @__PURE__ */ __name((error) => ({
|
|
19141
19271
|
...error,
|
|
19142
19272
|
retryable: typeof error.retryable === "boolean" ? error.retryable : error.code === "rate_limited" || error.status === 429
|
|
19143
19273
|
}), "withRecovery");
|
|
19144
19274
|
|
|
19145
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19275
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/services/batch.js
|
|
19146
19276
|
var actionable = /* @__PURE__ */ __name((error) => {
|
|
19147
19277
|
if (isCliFailure(error))
|
|
19148
19278
|
return withRecovery({ code: error.code, message: error.message, ...error.details });
|
|
@@ -19225,7 +19355,7 @@ var mergeBatches = /* @__PURE__ */ __name((a, b) => {
|
|
|
19225
19355
|
};
|
|
19226
19356
|
}, "mergeBatches");
|
|
19227
19357
|
|
|
19228
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19358
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/search/groups.js
|
|
19229
19359
|
var ALL = "all";
|
|
19230
19360
|
var OWNER_NOTES = { provider: "notes", account: INTERNAL_NOTES };
|
|
19231
19361
|
var NOT_GROUP_NAMES = /* @__PURE__ */ new Set([ALL, "bots"]);
|
|
@@ -19297,7 +19427,7 @@ var groupEntries = /* @__PURE__ */ __name((saved) => ({
|
|
|
19297
19427
|
[ALL]: [ALL]
|
|
19298
19428
|
}), "groupEntries");
|
|
19299
19429
|
|
|
19300
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19430
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/services/search-kind.js
|
|
19301
19431
|
var NO_MAIL = "no_mail";
|
|
19302
19432
|
var MAIL = "email";
|
|
19303
19433
|
var groupLockOf = /* @__PURE__ */ __name((app, env) => {
|
|
@@ -19371,7 +19501,7 @@ var accountsOfKind = /* @__PURE__ */ __name((kind, chosen, held, explicit, comma
|
|
|
19371
19501
|
return chosenMail.map(({ provider, account }) => ({ provider, account }));
|
|
19372
19502
|
}, "accountsOfKind");
|
|
19373
19503
|
|
|
19374
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19504
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/services/message-resolution.js
|
|
19375
19505
|
var readChatId = /* @__PURE__ */ __name(async (deps, reference, store, account) => {
|
|
19376
19506
|
if (deps.reads !== "store")
|
|
19377
19507
|
return keptChatId(deps.messenger, reference, store, account);
|
|
@@ -19485,12 +19615,14 @@ var chatAmong = /* @__PURE__ */ __name(async (messenger, store, accounts, refere
|
|
|
19485
19615
|
const [only] = accounts;
|
|
19486
19616
|
if (accounts.length === 1 && only)
|
|
19487
19617
|
return { account: only, chatId: await storedChatId(messenger, reference, store, only, { includeLeft: true }) };
|
|
19488
|
-
const
|
|
19489
|
-
const held = (await store.chats.chats(account, {})).items;
|
|
19490
|
-
const chatId = await storedChatId(messenger, reference, store, account).catch(missing);
|
|
19618
|
+
const among = /* @__PURE__ */ __name(async (includeLeft) => (await Promise.all(accounts.map(async (account) => {
|
|
19619
|
+
const held = (await store.chats.chats(account, includeLeft ? { includeLeft } : {})).items;
|
|
19620
|
+
const chatId = await storedChatId(messenger, reference, store, account, { includeLeft }).catch(missing);
|
|
19491
19621
|
const chat = held.find((one2) => one2.id === chatId);
|
|
19492
19622
|
return chat ? [{ account, chat }] : [];
|
|
19493
|
-
}))).flat();
|
|
19623
|
+
}))).flat(), "among");
|
|
19624
|
+
const current = await among(false);
|
|
19625
|
+
const found = current.length > 0 ? current : await among(true);
|
|
19494
19626
|
const [one] = found;
|
|
19495
19627
|
if (found.length === 1 && one)
|
|
19496
19628
|
return { account: one.account, chatId: one.chat.id };
|
|
@@ -19570,7 +19702,7 @@ var chatsMatchingIn = /* @__PURE__ */ __name(async (store, accounts, pattern) =>
|
|
|
19570
19702
|
}, "chatsMatchingIn");
|
|
19571
19703
|
var isText = /* @__PURE__ */ __name((value) => typeof value === "string" && value !== "", "isText");
|
|
19572
19704
|
|
|
19573
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19705
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/images/context/index.js
|
|
19574
19706
|
var CONTEXT_MESSAGES = 3;
|
|
19575
19707
|
var CONTEXT_MINUTES = 10;
|
|
19576
19708
|
var MAX_CHARS = 1200;
|
|
@@ -19594,12 +19726,12 @@ var context = {
|
|
|
19594
19726
|
}, "describe")
|
|
19595
19727
|
};
|
|
19596
19728
|
|
|
19597
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19729
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/images/registry.js
|
|
19598
19730
|
var BUILT_INS = [context];
|
|
19599
19731
|
var providers = [...BUILT_INS];
|
|
19600
19732
|
var registeredImageProviders = /* @__PURE__ */ __name(() => providers, "registeredImageProviders");
|
|
19601
19733
|
|
|
19602
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19734
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/services/conversations.js
|
|
19603
19735
|
var READ_PAGE = 5e3;
|
|
19604
19736
|
var CHAIN = 50;
|
|
19605
19737
|
var CONVERSATION_QUERY = {
|
|
@@ -19751,7 +19883,7 @@ var sized = /* @__PURE__ */ __name((size2) => {
|
|
|
19751
19883
|
return size2;
|
|
19752
19884
|
}, "sized");
|
|
19753
19885
|
|
|
19754
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19886
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/services/embeddings-maintenance.js
|
|
19755
19887
|
var REFRESH_BOUNDS = { maxChats: 20, maxChunks: 2e3 };
|
|
19756
19888
|
var MESSAGE_PAGE = 5e3;
|
|
19757
19889
|
var PER_SESSION = 8;
|
|
@@ -19770,7 +19902,7 @@ var embeddingTarget = /* @__PURE__ */ __name((deps, choice = chosenTextModel(dep
|
|
|
19770
19902
|
price: remote.price,
|
|
19771
19903
|
installed: true,
|
|
19772
19904
|
perBatch: PER_REQUEST * concurrency,
|
|
19773
|
-
open: /* @__PURE__ */ __name(async () => (await import("./remote-
|
|
19905
|
+
open: /* @__PURE__ */ __name(async () => (await import("./remote-P2MD5G64.js")).openRemote(remote, apiKey, {
|
|
19774
19906
|
concurrency,
|
|
19775
19907
|
env: deps.env ?? process.env
|
|
19776
19908
|
}), "open")
|
|
@@ -19790,7 +19922,7 @@ var embeddingTarget = /* @__PURE__ */ __name((deps, choice = chosenTextModel(dep
|
|
|
19790
19922
|
if (!isTextModelInstalled(model, directory2))
|
|
19791
19923
|
throw notDownloaded(model.id);
|
|
19792
19924
|
if (apart) {
|
|
19793
|
-
const { openProcess } = await import("./process-
|
|
19925
|
+
const { openProcess } = await import("./process-MFC5VSPT.js");
|
|
19794
19926
|
return openProcess(model, directory2, { threads: threads ?? defaultThreads() });
|
|
19795
19927
|
}
|
|
19796
19928
|
return openEmbedder(model, directory2, { threads: threads ?? defaultThreads() });
|
|
@@ -20079,7 +20211,7 @@ var shaped = /* @__PURE__ */ __name(({ chatId, builtAt, algorithmVersion, pendin
|
|
|
20079
20211
|
return { ...one, state };
|
|
20080
20212
|
}, "shaped");
|
|
20081
20213
|
|
|
20082
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20214
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/services/search-catchup.js
|
|
20083
20215
|
var CATCH_UP_BOUNDS = { maxChunks: 500, maxMessages: 1e4, timeMs: 3e4 };
|
|
20084
20216
|
var validateCatchUpBounds = /* @__PURE__ */ __name((options2) => {
|
|
20085
20217
|
for (const [key, value, maximum] of [
|
|
@@ -20132,7 +20264,7 @@ var catchUpSearch = /* @__PURE__ */ __name(async (deps, chat, options2, signal,
|
|
|
20132
20264
|
}
|
|
20133
20265
|
}, "catchUpSearch");
|
|
20134
20266
|
|
|
20135
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20267
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/services/archive.js
|
|
20136
20268
|
var pushed = /* @__PURE__ */ __name((deps, what) => {
|
|
20137
20269
|
if (deps.reads === "store") {
|
|
20138
20270
|
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`);
|
|
@@ -20513,7 +20645,7 @@ var timeOfKey = /* @__PURE__ */ __name(async (store, account, chatId, key, byTim
|
|
|
20513
20645
|
return message?.timestamp ?? fallback;
|
|
20514
20646
|
}, "timeOfKey");
|
|
20515
20647
|
|
|
20516
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20648
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/botcheck/check.js
|
|
20517
20649
|
var DAY_MS = 864e5;
|
|
20518
20650
|
var NEW_DAYS = 30;
|
|
20519
20651
|
var SAME_TEXT_MIN = 20;
|
|
@@ -20590,7 +20722,7 @@ var scorePerson = /* @__PURE__ */ __name(({ subject, provider, activity, photos,
|
|
|
20590
20722
|
};
|
|
20591
20723
|
}, "scorePerson");
|
|
20592
20724
|
|
|
20593
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20725
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/http/time-limit.js
|
|
20594
20726
|
var timeLimit = /* @__PURE__ */ __name((ms) => {
|
|
20595
20727
|
const controller = new AbortController();
|
|
20596
20728
|
const timer = setTimeout(() => controller.abort(new DOMException("The operation timed out.", "TimeoutError")), ms);
|
|
@@ -20606,7 +20738,7 @@ var withTimeLimit = /* @__PURE__ */ __name(async (ms, run2) => {
|
|
|
20606
20738
|
}
|
|
20607
20739
|
}, "withTimeLimit");
|
|
20608
20740
|
|
|
20609
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20741
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/botcheck/registries.js
|
|
20610
20742
|
var REGISTRIES = {
|
|
20611
20743
|
cas: { title: "Combot Anti-Spam (CAS)", docs: "https://cas.chat/api" },
|
|
20612
20744
|
lols: { title: "lols.bot", docs: "https://api.lols.bot/lols-bot.json" }
|
|
@@ -20693,7 +20825,7 @@ var notCovered = /* @__PURE__ */ __name((messenger, now = /* @__PURE__ */ new Da
|
|
|
20693
20825
|
detail: `lists Telegram accounts only, not ${messenger} ones`
|
|
20694
20826
|
})), "notCovered");
|
|
20695
20827
|
|
|
20696
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20828
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/botcheck/service.js
|
|
20697
20829
|
var ACTIVITY_MESSAGES = 1e3;
|
|
20698
20830
|
var botCheckService = /* @__PURE__ */ __name((deps) => {
|
|
20699
20831
|
const subjectOf = /* @__PURE__ */ __name(async (reference) => {
|
|
@@ -20781,7 +20913,7 @@ var botCheckService = /* @__PURE__ */ __name((deps) => {
|
|
|
20781
20913
|
};
|
|
20782
20914
|
}, "botCheckService");
|
|
20783
20915
|
|
|
20784
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20916
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/domain/thread.js
|
|
20785
20917
|
var threadIdOf = /* @__PURE__ */ __name((value) => {
|
|
20786
20918
|
if (value === void 0)
|
|
20787
20919
|
return void 0;
|
|
@@ -20791,7 +20923,7 @@ var threadIdOf = /* @__PURE__ */ __name((value) => {
|
|
|
20791
20923
|
return id2;
|
|
20792
20924
|
}, "threadIdOf");
|
|
20793
20925
|
|
|
20794
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20926
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/services/chat-stats.js
|
|
20795
20927
|
var TOP_POSTS = 5;
|
|
20796
20928
|
var JOINS = /* @__PURE__ */ new Set(["join", "add"]);
|
|
20797
20929
|
var LEAVES = /* @__PURE__ */ new Set(["leave", "remove"]);
|
|
@@ -20908,7 +21040,7 @@ var median = /* @__PURE__ */ __name((values) => {
|
|
|
20908
21040
|
return Math.round(sorted.length % 2 === 0 ? ((sorted[middle - 1] ?? upper) + upper) / 2 : upper);
|
|
20909
21041
|
}, "median");
|
|
20910
21042
|
|
|
20911
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21043
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/services/member-history.js
|
|
20912
21044
|
var memberEvents = /* @__PURE__ */ __name((stays, revisions, since = 0) => {
|
|
20913
21045
|
const events = [];
|
|
20914
21046
|
for (const stay of stays) {
|
|
@@ -20940,7 +21072,7 @@ var memberEvents = /* @__PURE__ */ __name((stays, revisions, since = 0) => {
|
|
|
20940
21072
|
return events.filter(({ at }) => Date.parse(at) >= since).sort((a, b) => Date.parse(a.at) - Date.parse(b.at) || a.id.localeCompare(b.id));
|
|
20941
21073
|
}, "memberEvents");
|
|
20942
21074
|
|
|
20943
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21075
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/services/chats.js
|
|
20944
21076
|
var EVENTS_DAYS = 7;
|
|
20945
21077
|
var TRACKED_DAYS = 30;
|
|
20946
21078
|
var STATS_PAGE = 1e3;
|
|
@@ -21235,7 +21367,7 @@ var storedMembers = /* @__PURE__ */ __name(async (store, chatId) => {
|
|
|
21235
21367
|
return members.length === 0 ? null : members;
|
|
21236
21368
|
}, "storedMembers");
|
|
21237
21369
|
|
|
21238
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21370
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/services/inbox.js
|
|
21239
21371
|
var INBOX_CHATS = 20;
|
|
21240
21372
|
var REVIEW_DAYS = 3;
|
|
21241
21373
|
var UNANSWERED_HOURS = 24;
|
|
@@ -21443,7 +21575,7 @@ var inboxService = /* @__PURE__ */ __name((deps) => {
|
|
|
21443
21575
|
};
|
|
21444
21576
|
}, "inboxService");
|
|
21445
21577
|
|
|
21446
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21578
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/services/person-meetings.js
|
|
21447
21579
|
var SCAN = 1e3;
|
|
21448
21580
|
var personMeetings = /* @__PURE__ */ __name(async (store, people, accounts, { limit = 10, since, until } = {}) => {
|
|
21449
21581
|
const byId2 = new Map(accounts.map((one) => [one.id, one]));
|
|
@@ -21495,7 +21627,7 @@ var personMeetings = /* @__PURE__ */ __name(async (store, people, accounts, { li
|
|
|
21495
21627
|
return { items, total: newest.length, hasMore: cut || newest.length > limit };
|
|
21496
21628
|
}, "personMeetings");
|
|
21497
21629
|
|
|
21498
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21630
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/services/person-context.js
|
|
21499
21631
|
var CONTEXT_MESSAGES2 = 10;
|
|
21500
21632
|
var CONTEXT_BYTES = 64 * 1024;
|
|
21501
21633
|
var toContext = /* @__PURE__ */ __name((key, message, chatTitle2) => ({
|
|
@@ -21801,10 +21933,10 @@ var personMessages = /* @__PURE__ */ __name(async (store, asked, reference, { ch
|
|
|
21801
21933
|
};
|
|
21802
21934
|
}, "personMessages");
|
|
21803
21935
|
|
|
21804
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21936
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/services/meeting-evidence.js
|
|
21805
21937
|
import { createHash } from "node:crypto";
|
|
21806
21938
|
|
|
21807
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21939
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/services/meeting-reference.js
|
|
21808
21940
|
var missing2 = /* @__PURE__ */ __name(() => new CliError("not_found", "the meeting evidence is unavailable for this account"), "missing");
|
|
21809
21941
|
var authorizedMeetingMetadata = /* @__PURE__ */ __name(async (store, accountId, reference, options2 = {}) => {
|
|
21810
21942
|
const parsed = parseMeetingReference(reference);
|
|
@@ -21822,7 +21954,7 @@ var authorizedMeetingMetadata = /* @__PURE__ */ __name(async (store, accountId,
|
|
|
21822
21954
|
return { parsed, meeting };
|
|
21823
21955
|
}, "authorizedMeetingMetadata");
|
|
21824
21956
|
|
|
21825
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21957
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/services/meeting-evidence.js
|
|
21826
21958
|
var hash = /* @__PURE__ */ __name((value) => createHash("sha256").update(JSON.stringify(value)).digest("hex"), "hash");
|
|
21827
21959
|
var checkMeetingCancelled = /* @__PURE__ */ __name((signal) => {
|
|
21828
21960
|
if (signal?.aborted)
|
|
@@ -22021,7 +22153,7 @@ var readMeetingEvidence = /* @__PURE__ */ __name(async (store, accountId, refere
|
|
|
22021
22153
|
return { ...packet, fingerprint: hash(packet) };
|
|
22022
22154
|
}, "readMeetingEvidence");
|
|
22023
22155
|
|
|
22024
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22156
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/services/person-meeting-context.js
|
|
22025
22157
|
var personMeetingContext = /* @__PURE__ */ __name(async (store, personReference, options2) => {
|
|
22026
22158
|
const { meetings = 10, cues = 5, bytes: bytes2 = 64 * 1024, scanLimit = 1e3, since, signal } = options2;
|
|
22027
22159
|
const requestedAccounts = options2.accountIds;
|
|
@@ -22120,7 +22252,7 @@ var personMeetingContext = /* @__PURE__ */ __name(async (store, personReference,
|
|
|
22120
22252
|
};
|
|
22121
22253
|
}, "personMeetingContext");
|
|
22122
22254
|
|
|
22123
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22255
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/services/person-preparation.js
|
|
22124
22256
|
var PREPARE_BYTES = 96 * 1024;
|
|
22125
22257
|
var MEETINGS = 5;
|
|
22126
22258
|
var CUES = 3;
|
|
@@ -22243,7 +22375,7 @@ var meetingsOf = /* @__PURE__ */ __name(async (store, uid, stored, since, left)
|
|
|
22243
22375
|
}
|
|
22244
22376
|
}, "meetingsOf");
|
|
22245
22377
|
|
|
22246
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22378
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/services/person-profile.js
|
|
22247
22379
|
var personProfile = /* @__PURE__ */ __name(async (deps, person, known2) => {
|
|
22248
22380
|
const online = deps.offline ? void 0 : await deps.connection();
|
|
22249
22381
|
const held = await storeIfOpen(deps);
|
|
@@ -22313,7 +22445,7 @@ var quiet = /* @__PURE__ */ __name((facts) => facts.chats.map(({ id: id2, title,
|
|
|
22313
22445
|
complete: false
|
|
22314
22446
|
})), "quiet");
|
|
22315
22447
|
|
|
22316
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22448
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/services/person-timeline.js
|
|
22317
22449
|
var TIMELINE_ITEMS = 50;
|
|
22318
22450
|
var TIMELINE_MAX = 500;
|
|
22319
22451
|
var SCOPES = ["personal", "work"];
|
|
@@ -22375,7 +22507,7 @@ var personTimeline = /* @__PURE__ */ __name(async (store, asked, reference, { sc
|
|
|
22375
22507
|
};
|
|
22376
22508
|
}, "personTimeline");
|
|
22377
22509
|
|
|
22378
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22510
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/services/chat-coverage.js
|
|
22379
22511
|
var chatCoverage = /* @__PURE__ */ __name(async (store, account, chatIds) => {
|
|
22380
22512
|
const ids = [...new Set(chatIds)];
|
|
22381
22513
|
if (ids.length === 0)
|
|
@@ -22401,7 +22533,7 @@ var chatCoverage = /* @__PURE__ */ __name(async (store, account, chatIds) => {
|
|
|
22401
22533
|
}));
|
|
22402
22534
|
}, "chatCoverage");
|
|
22403
22535
|
|
|
22404
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22536
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/context/evidence-response.js
|
|
22405
22537
|
var contextSourceKey = /* @__PURE__ */ __name((source) => JSON.stringify([source.kind, source.accountId, source.provider, source.account]), "contextSourceKey");
|
|
22406
22538
|
var validateContextEvidencePage = /* @__PURE__ */ __name((page, request) => {
|
|
22407
22539
|
const fail2 = /* @__PURE__ */ __name(() => {
|
|
@@ -22465,7 +22597,7 @@ var validateContextEvidencePage = /* @__PURE__ */ __name((page, request) => {
|
|
|
22465
22597
|
}
|
|
22466
22598
|
}, "validateContextEvidencePage");
|
|
22467
22599
|
|
|
22468
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22600
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/context/read-budget.js
|
|
22469
22601
|
var contextReadBudget = /* @__PURE__ */ __name((limits = {}) => {
|
|
22470
22602
|
if (!limits || typeof limits !== "object" || Array.isArray(limits))
|
|
22471
22603
|
throw new CliError("validation_error", "limits needs a context read allowance");
|
|
@@ -22518,7 +22650,7 @@ var contextReadBudget = /* @__PURE__ */ __name((limits = {}) => {
|
|
|
22518
22650
|
};
|
|
22519
22651
|
}, "contextReadBudget");
|
|
22520
22652
|
|
|
22521
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22653
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/services/context-evidence.js
|
|
22522
22654
|
var createContextEvidenceReader = /* @__PURE__ */ __name((port, allowed, limits) => {
|
|
22523
22655
|
if (!port || typeof port.read !== "function")
|
|
22524
22656
|
throw new CliError("configuration_error", "context evidence reader is unavailable");
|
|
@@ -22562,7 +22694,7 @@ var createContextEvidenceReader = /* @__PURE__ */ __name((port, allowed, limits)
|
|
|
22562
22694
|
};
|
|
22563
22695
|
}, "createContextEvidenceReader");
|
|
22564
22696
|
|
|
22565
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22697
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/services/excerpt.js
|
|
22566
22698
|
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");
|
|
22567
22699
|
var excerpt = /* @__PURE__ */ __name((text2, query, size2 = 240, options2 = {}) => {
|
|
22568
22700
|
const flat = text2.replace(/\s+/g, " ").trim();
|
|
@@ -22578,7 +22710,7 @@ var excerpt = /* @__PURE__ */ __name((text2, query, size2 = 240, options2 = {})
|
|
|
22578
22710
|
}, "excerpt");
|
|
22579
22711
|
var withExcerpt = /* @__PURE__ */ __name(({ matchedText, ...hit }, query) => ({ ...hit, excerpt: excerpt(matchedText ?? hit.text, query) }), "withExcerpt");
|
|
22580
22712
|
|
|
22581
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22713
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/services/project-gathering-around.js
|
|
22582
22714
|
var storedMessageNeighbours = /* @__PURE__ */ __name((messages) => ({
|
|
22583
22715
|
async around(ref, window3) {
|
|
22584
22716
|
const at = parseLocator(ref);
|
|
@@ -22673,7 +22805,7 @@ var storedNeighbours = /* @__PURE__ */ __name((store) => {
|
|
|
22673
22805
|
};
|
|
22674
22806
|
}, "storedNeighbours");
|
|
22675
22807
|
|
|
22676
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22808
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/services/project-gathering-request.js
|
|
22677
22809
|
import { createHash as createHash2 } from "node:crypto";
|
|
22678
22810
|
var DAY = 864e5;
|
|
22679
22811
|
var MAX_TIME = 864e13;
|
|
@@ -22989,7 +23121,7 @@ var decodeCheckpoint = /* @__PURE__ */ __name((text2, plan) => {
|
|
|
22989
23121
|
return value;
|
|
22990
23122
|
}, "decodeCheckpoint");
|
|
22991
23123
|
|
|
22992
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23124
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/services/project-gathering.js
|
|
22993
23125
|
var terminal = /* @__PURE__ */ new Set(["done", "unavailable", "failed"]);
|
|
22994
23126
|
var PAGE2 = 20;
|
|
22995
23127
|
var PEOPLE = 20;
|
|
@@ -23393,7 +23525,7 @@ var peopleOf = /* @__PURE__ */ __name((items, senderOf) => {
|
|
|
23393
23525
|
return [...byKey.values()].sort((a, b) => b.items - a.items || a.name.localeCompare(b.name));
|
|
23394
23526
|
}, "peopleOf");
|
|
23395
23527
|
|
|
23396
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23528
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/services/meeting-project-candidate-matching.js
|
|
23397
23529
|
var normalizedText = /* @__PURE__ */ __name((text2) => text2.normalize("NFKC").toLowerCase().replace(/\s+/gu, " "), "normalizedText");
|
|
23398
23530
|
var termsOf = /* @__PURE__ */ __name((entry) => [
|
|
23399
23531
|
{ name: entry.name, kind: "canonical" },
|
|
@@ -23437,7 +23569,7 @@ var matchVocabularyTerms = /* @__PURE__ */ __name((catalog, texts) => {
|
|
|
23437
23569
|
return result.sort((a, b) => Number(a.entry.id) - Number(b.entry.id));
|
|
23438
23570
|
}, "matchVocabularyTerms");
|
|
23439
23571
|
|
|
23440
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23572
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/services/project-gathering-mentions.js
|
|
23441
23573
|
var KINDS = ["project", "tag", "topic"];
|
|
23442
23574
|
var findEvidenceMentions = /* @__PURE__ */ __name(async (vocabulary, gathering, options2 = {}) => {
|
|
23443
23575
|
if (typeof vocabulary?.vocabulary !== "function")
|
|
@@ -23492,7 +23624,7 @@ var findEvidenceMentions = /* @__PURE__ */ __name(async (vocabulary, gathering,
|
|
|
23492
23624
|
};
|
|
23493
23625
|
}, "findEvidenceMentions");
|
|
23494
23626
|
|
|
23495
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23627
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/services/project-purposes.js
|
|
23496
23628
|
var BUILT_IN_PURPOSES = ["work", "sales", "support", "other"];
|
|
23497
23629
|
var DEFAULT_PURPOSES = ["work"];
|
|
23498
23630
|
var LINK_PURPOSE = "work";
|
|
@@ -23522,7 +23654,7 @@ var purposeList = /* @__PURE__ */ __name((value, previous = []) => [
|
|
|
23522
23654
|
...value.split(",").map((one) => one.trim()).filter(Boolean)
|
|
23523
23655
|
], "purposeList");
|
|
23524
23656
|
|
|
23525
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23657
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/services/stored-project-gathering.js
|
|
23526
23658
|
var storedChatCount = /* @__PURE__ */ __name((store) => async (account, chatId, { since, until }) => {
|
|
23527
23659
|
const window3 = { since: new Date(since).toISOString(), until: new Date(until - 1).toISOString() };
|
|
23528
23660
|
const [messages, newest, oldest] = await Promise.all([
|
|
@@ -23833,7 +23965,7 @@ var purposeHintOf = /* @__PURE__ */ __name((linked, rows, of) => {
|
|
|
23833
23965
|
return { chat: top.ref, relationship: link4.relationship, items, of };
|
|
23834
23966
|
}, "purposeHintOf");
|
|
23835
23967
|
|
|
23836
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23968
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/services/people.js
|
|
23837
23969
|
var peopleService = /* @__PURE__ */ __name((deps) => {
|
|
23838
23970
|
const localCard = /* @__PURE__ */ __name(async (card, includeNotes = false) => {
|
|
23839
23971
|
const held = await storeIfOpen(deps);
|
|
@@ -24098,7 +24230,7 @@ var withoutPhone = /* @__PURE__ */ __name((answer) => {
|
|
|
24098
24230
|
return rest;
|
|
24099
24231
|
}, "withoutPhone");
|
|
24100
24232
|
|
|
24101
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24233
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/services/task-stats.js
|
|
24102
24234
|
var TASK_STATS_BY = ["chat", "meeting", "project"];
|
|
24103
24235
|
var PERIOD_FIELD = "created";
|
|
24104
24236
|
var refuseNestedPeriod = /* @__PURE__ */ __name((node, top = true) => {
|
|
@@ -24218,18 +24350,18 @@ var meetingIdOf = /* @__PURE__ */ __name((group) => {
|
|
|
24218
24350
|
}
|
|
24219
24351
|
}, "meetingIdOf");
|
|
24220
24352
|
var meetingNames = /* @__PURE__ */ __name(async (store, groups) => {
|
|
24221
|
-
const
|
|
24353
|
+
const meetingOf2 = new Map(groups.flatMap((group) => {
|
|
24222
24354
|
const id2 = meetingIdOf(group);
|
|
24223
24355
|
return id2 === void 0 ? [] : [[group, id2]];
|
|
24224
24356
|
}));
|
|
24225
|
-
const titles = await store.tasks.statNames("meeting", [...new Set(
|
|
24226
|
-
return new Map([...
|
|
24357
|
+
const titles = await store.tasks.statNames("meeting", [...new Set(meetingOf2.values())]);
|
|
24358
|
+
return new Map([...meetingOf2].flatMap(([group, id2]) => {
|
|
24227
24359
|
const title = titles.get(id2);
|
|
24228
24360
|
return title === void 0 ? [] : [[group, title]];
|
|
24229
24361
|
}));
|
|
24230
24362
|
}, "meetingNames");
|
|
24231
24363
|
|
|
24232
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24364
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/services/task-tag-filters.js
|
|
24233
24365
|
var taskTagFilters = /* @__PURE__ */ __name(async (store, query) => {
|
|
24234
24366
|
const tags = /* @__PURE__ */ new Map();
|
|
24235
24367
|
for (const node of query ? walkQuery(query.root) : [])
|
|
@@ -24238,7 +24370,7 @@ var taskTagFilters = /* @__PURE__ */ __name(async (store, query) => {
|
|
|
24238
24370
|
return tags;
|
|
24239
24371
|
}, "taskTagFilters");
|
|
24240
24372
|
|
|
24241
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24373
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/services/tasks.js
|
|
24242
24374
|
var TASK_QUERY = {
|
|
24243
24375
|
entity: "task",
|
|
24244
24376
|
backend: "sql",
|
|
@@ -24738,7 +24870,7 @@ var taskView = /* @__PURE__ */ __name(async (store, account, task2) => {
|
|
|
24738
24870
|
};
|
|
24739
24871
|
}, "taskView");
|
|
24740
24872
|
|
|
24741
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24873
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/mail/owed.js
|
|
24742
24874
|
var mailTurn = /* @__PURE__ */ __name((newest) => {
|
|
24743
24875
|
if (newest === null)
|
|
24744
24876
|
return null;
|
|
@@ -24747,7 +24879,7 @@ var mailTurn = /* @__PURE__ */ __name((newest) => {
|
|
|
24747
24879
|
return newest.addressed ? "owed" : null;
|
|
24748
24880
|
}, "mailTurn");
|
|
24749
24881
|
|
|
24750
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24882
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/services/agenda-mail.js
|
|
24751
24883
|
var absent = /* @__PURE__ */ __name((error) => {
|
|
24752
24884
|
if (error instanceof CliError && error.code === "not_found")
|
|
24753
24885
|
return void 0;
|
|
@@ -24805,7 +24937,7 @@ var mailActivity = /* @__PURE__ */ __name(async (store, account, since, chats) =
|
|
|
24805
24937
|
};
|
|
24806
24938
|
}, "mailActivity");
|
|
24807
24939
|
|
|
24808
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24940
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/services/agenda.js
|
|
24809
24941
|
var DAY2 = 864e5;
|
|
24810
24942
|
var AGENDA_DEFAULTS = { unanswered: DAY2, waiting: 7 * DAY2 };
|
|
24811
24943
|
var CLAIMS = ["none", "mine", "others", "any"];
|
|
@@ -25059,18 +25191,18 @@ var agendaItem = /* @__PURE__ */ __name((shown) => {
|
|
|
25059
25191
|
};
|
|
25060
25192
|
}, "agendaItem");
|
|
25061
25193
|
|
|
25062
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25194
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/services/media-archive.js
|
|
25063
25195
|
import { setTimeout as sleep3 } from "node:timers/promises";
|
|
25064
25196
|
|
|
25065
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25197
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/services/media-archive-files.js
|
|
25066
25198
|
import { lstat } from "node:fs/promises";
|
|
25067
25199
|
|
|
25068
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25200
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-store.js
|
|
25069
25201
|
import { createHash as createHash4, randomUUID as randomUUID3 } from "node:crypto";
|
|
25070
25202
|
import { open as open3, rename as rename2, unlink as unlink2 } from "node:fs/promises";
|
|
25071
25203
|
import { join as join5 } from "node:path";
|
|
25072
25204
|
|
|
25073
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25205
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-metadata.js
|
|
25074
25206
|
import { createHash as createHash3 } from "node:crypto";
|
|
25075
25207
|
var metadataLimit = 16384;
|
|
25076
25208
|
var partialIdentity = /* @__PURE__ */ __name((locator) => JSON.stringify([locator.provider, locator.account, locator.occurrenceId, locator.assetId]), "partialIdentity");
|
|
@@ -25130,7 +25262,7 @@ var readPartialMetadata = /* @__PURE__ */ __name(async (path, locator, maxBytes,
|
|
|
25130
25262
|
}
|
|
25131
25263
|
}, "readPartialMetadata");
|
|
25132
25264
|
|
|
25133
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25265
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-writer.js
|
|
25134
25266
|
import { randomUUID as randomUUID2 } from "node:crypto";
|
|
25135
25267
|
import { open as open2, rename, unlink } from "node:fs/promises";
|
|
25136
25268
|
import { join as join4 } from "node:path";
|
|
@@ -25222,7 +25354,7 @@ var partialWriter = /* @__PURE__ */ __name(async (input) => {
|
|
|
25222
25354
|
};
|
|
25223
25355
|
}, "partialWriter");
|
|
25224
25356
|
|
|
25225
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25357
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-store.js
|
|
25226
25358
|
var NativeRecordingPartialStore = class {
|
|
25227
25359
|
static {
|
|
25228
25360
|
__name(this, "NativeRecordingPartialStore");
|
|
@@ -25329,12 +25461,12 @@ var NativeRecordingPartialStore = class {
|
|
|
25329
25461
|
}
|
|
25330
25462
|
};
|
|
25331
25463
|
|
|
25332
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25464
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication.js
|
|
25333
25465
|
import { createHash as createHash5 } from "node:crypto";
|
|
25334
25466
|
import { link as link2 } from "node:fs/promises";
|
|
25335
25467
|
import { basename as basename2, dirname as dirname5, join as join7, resolve as resolve2 } from "node:path";
|
|
25336
25468
|
|
|
25337
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25469
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication-files.js
|
|
25338
25470
|
import { unlink as unlink3 } from "node:fs/promises";
|
|
25339
25471
|
var verifiedPublicationFile = /* @__PURE__ */ __name(async (path, expected2, signal, writable = false) => {
|
|
25340
25472
|
signal?.throwIfAborted();
|
|
@@ -25369,7 +25501,7 @@ var commitPublication = /* @__PURE__ */ __name(async (root, partialPath, finalPa
|
|
|
25369
25501
|
signal?.throwIfAborted();
|
|
25370
25502
|
}, "commitPublication");
|
|
25371
25503
|
|
|
25372
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25504
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication-journal.js
|
|
25373
25505
|
import { randomUUID as randomUUID4 } from "node:crypto";
|
|
25374
25506
|
import { open as open4, rename as rename3, unlink as unlink4 } from "node:fs/promises";
|
|
25375
25507
|
import { join as join6 } from "node:path";
|
|
@@ -25442,7 +25574,7 @@ var writePublicationJournal = /* @__PURE__ */ __name(async (root, path, prefix,
|
|
|
25442
25574
|
}
|
|
25443
25575
|
}, "writePublicationJournal");
|
|
25444
25576
|
|
|
25445
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25577
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication.js
|
|
25446
25578
|
var NativeRecordingPublication = class {
|
|
25447
25579
|
static {
|
|
25448
25580
|
__name(this, "NativeRecordingPublication");
|
|
@@ -25515,7 +25647,7 @@ var NativeRecordingPublication = class {
|
|
|
25515
25647
|
}
|
|
25516
25648
|
};
|
|
25517
25649
|
|
|
25518
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25650
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/services/media-archive-manifest.js
|
|
25519
25651
|
import { createHash as createHash6 } from "node:crypto";
|
|
25520
25652
|
import { readdir } from "node:fs/promises";
|
|
25521
25653
|
import { isAbsolute as isAbsolute2, join as join8, resolve as resolve3 } from "node:path";
|
|
@@ -25602,7 +25734,7 @@ var commitMediaEntry = /* @__PURE__ */ __name((root, one, beforePublish) => writ
|
|
|
25602
25734
|
beforePublish
|
|
25603
25735
|
}), "commitMediaEntry");
|
|
25604
25736
|
|
|
25605
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25737
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/services/media-archive-files.js
|
|
25606
25738
|
var validator = '"media-completed-v1"';
|
|
25607
25739
|
var maximumFileBytes = 64 * 1024 * 1024 * 1024;
|
|
25608
25740
|
var archiveMediaFile = /* @__PURE__ */ __name(async (root, identity, kind, file, beforeWrite, signal, metadata = {}) => {
|
|
@@ -25703,7 +25835,7 @@ var archiveMediaFile = /* @__PURE__ */ __name(async (root, identity, kind, file,
|
|
|
25703
25835
|
return entry;
|
|
25704
25836
|
}, "archiveMediaFile");
|
|
25705
25837
|
|
|
25706
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25838
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/services/media-archive-locks.js
|
|
25707
25839
|
import { mkdir, realpath } from "node:fs/promises";
|
|
25708
25840
|
import { join as join9, resolve as resolve4 } from "node:path";
|
|
25709
25841
|
var archiveLocations = /* @__PURE__ */ __name(async (initial, signal) => {
|
|
@@ -25770,7 +25902,7 @@ var withMediaArchiveLocks = /* @__PURE__ */ __name(async (directory2, signal, ru
|
|
|
25770
25902
|
throw new CliError("validation_error", "archive locations changed during locking; run the command again");
|
|
25771
25903
|
}, "withMediaArchiveLocks");
|
|
25772
25904
|
|
|
25773
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25905
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/services/media-archive.js
|
|
25774
25906
|
var validateMediaSince = /* @__PURE__ */ __name((value, flag = "--since-time") => {
|
|
25775
25907
|
if (value === void 0)
|
|
25776
25908
|
return void 0;
|
|
@@ -25923,7 +26055,7 @@ var archiveMedia = /* @__PURE__ */ __name(async (ports, options2) => {
|
|
|
25923
26055
|
}, { create: true });
|
|
25924
26056
|
}, "archiveMedia");
|
|
25925
26057
|
|
|
25926
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26058
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/services/media-archive-move.js
|
|
25927
26059
|
import { realpath as realpath2, unlink as unlink5 } from "node:fs/promises";
|
|
25928
26060
|
import { basename as basename3, dirname as dirname6, join as join10, resolve as resolve5 } from "node:path";
|
|
25929
26061
|
var canonicalDestination = /* @__PURE__ */ __name(async (directory2) => {
|
|
@@ -26076,7 +26208,7 @@ var moveMediaArchive = /* @__PURE__ */ __name(async (options2) => {
|
|
|
26076
26208
|
}, { additional: [target2], createAdditional: !options2.dryRun });
|
|
26077
26209
|
}, "moveMediaArchive");
|
|
26078
26210
|
|
|
26079
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26211
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/services/model-downloads.js
|
|
26080
26212
|
import { writeFileSync as writeFileSync2 } from "node:fs";
|
|
26081
26213
|
import { join as join11 } from "node:path";
|
|
26082
26214
|
var bytesOf = /* @__PURE__ */ __name((model) => model.files.reduce((sum2, file) => sum2 + file.bytes, 0), "bytesOf");
|
|
@@ -26101,7 +26233,7 @@ var downloadTextModel = /* @__PURE__ */ __name(async (id2, { env, progress = /*
|
|
|
26101
26233
|
`);
|
|
26102
26234
|
await nativeRuntime({ env, progress });
|
|
26103
26235
|
progress(`${model.id}: loading it once to check it works`);
|
|
26104
|
-
const { openEmbedder: openEmbedder2 } = await import("./embed-
|
|
26236
|
+
const { openEmbedder: openEmbedder2 } = await import("./embed-OIMT6SAX.js");
|
|
26105
26237
|
const embedder = await openEmbedder2(model, directory2);
|
|
26106
26238
|
try {
|
|
26107
26239
|
const [vector] = await embedder.embed(["check"], "query");
|
|
@@ -26122,7 +26254,7 @@ var downloadRerankModel = /* @__PURE__ */ __name(async (id2, { env, progress = /
|
|
|
26122
26254
|
}
|
|
26123
26255
|
await nativeRuntime({ env, progress });
|
|
26124
26256
|
progress(`${model.id}: loading it once to check it works`);
|
|
26125
|
-
const { openReranker } = await import("./rerank-
|
|
26257
|
+
const { openReranker } = await import("./rerank-A5X6THV6.js");
|
|
26126
26258
|
const reranker = await openReranker(model, directory2);
|
|
26127
26259
|
try {
|
|
26128
26260
|
await reranker.score("check", ["check"]);
|
|
@@ -26140,7 +26272,7 @@ var downloadImageModel = /* @__PURE__ */ __name(async (id2, { env, progress = /*
|
|
|
26140
26272
|
await installFiles(placedImage(model, directory2), { progress, ...bytes2 ? { bytes: bytes2 } : {} });
|
|
26141
26273
|
}
|
|
26142
26274
|
progress(`${model.id}: loading it once to check it works`);
|
|
26143
|
-
const { openPictureEmbedder } = await import("./embedder-
|
|
26275
|
+
const { openPictureEmbedder } = await import("./embedder-Q5IF5WIM.js");
|
|
26144
26276
|
const embedder = await openPictureEmbedder(model, directory2);
|
|
26145
26277
|
try {
|
|
26146
26278
|
const vector = await embedder.embedQuery("check");
|
|
@@ -26152,7 +26284,7 @@ var downloadImageModel = /* @__PURE__ */ __name(async (id2, { env, progress = /*
|
|
|
26152
26284
|
return { model, directory: directory2 };
|
|
26153
26285
|
}, "downloadImageModel");
|
|
26154
26286
|
|
|
26155
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26287
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/domain/money-words.js
|
|
26156
26288
|
var MONEY_REQUEST = "money-request";
|
|
26157
26289
|
var MONEY_DONE = "money-done";
|
|
26158
26290
|
var PROMISE = "promise";
|
|
@@ -26186,10 +26318,10 @@ var MONEY_WORDS = [
|
|
|
26186
26318
|
}
|
|
26187
26319
|
];
|
|
26188
26320
|
|
|
26189
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26321
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/services/money-words.js
|
|
26190
26322
|
var moneyClassesOf = /* @__PURE__ */ __name((text2) => listsHit(text2, MONEY_WORDS), "moneyClassesOf");
|
|
26191
26323
|
|
|
26192
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26324
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/domain/status-words.js
|
|
26193
26325
|
var words = /* @__PURE__ */ __name((forms) => new RegExp(`(?<![\\p{L}\\p{N}])(?:${forms.join("|")})(?![\\p{L}\\p{N}])`, "iu"), "words");
|
|
26194
26326
|
var MONEY_DONE_FORMS = words([
|
|
26195
26327
|
"\u043E\u043F\u043B\u0430\u0442\u0438\u043B[\u0430\u0438]?",
|
|
@@ -26229,7 +26361,7 @@ var PROMISE_FORMS = words([
|
|
|
26229
26361
|
"estar\xE1 listo"
|
|
26230
26362
|
]);
|
|
26231
26363
|
|
|
26232
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26364
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/services/project-status/items.js
|
|
26233
26365
|
var EXCERPT_CHARS = 80;
|
|
26234
26366
|
var excerpt2 = /* @__PURE__ */ __name((text2) => {
|
|
26235
26367
|
const flat = text2.replace(/\s+/g, " ").trim();
|
|
@@ -26251,7 +26383,7 @@ var whoOf = /* @__PURE__ */ __name((message) => ({
|
|
|
26251
26383
|
var fromOwner = /* @__PURE__ */ __name((message) => message.outgoing === true, "fromOwner");
|
|
26252
26384
|
var day = /* @__PURE__ */ __name((at) => new Date(at).toISOString().slice(0, 10), "day");
|
|
26253
26385
|
|
|
26254
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26386
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/services/project-status/signals/amounts.js
|
|
26255
26387
|
var MONEY = DEFAULT_TASK_CATEGORIES.filter((category) => category.name === "money");
|
|
26256
26388
|
var verbOf = /* @__PURE__ */ __name((text2) => {
|
|
26257
26389
|
if (MONEY_DONE_FORMS.test(text2))
|
|
@@ -26332,7 +26464,7 @@ var amounts = {
|
|
|
26332
26464
|
attention: /* @__PURE__ */ __name((items) => items.flatMap((item2) => item2.chat !== null && item2.data.state === "asked" ? [{ chat: item2.chat, weight: 2, why: "money asked" }] : []), "attention")
|
|
26333
26465
|
};
|
|
26334
26466
|
|
|
26335
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26467
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/services/project-status/signals/children.js
|
|
26336
26468
|
var children = {
|
|
26337
26469
|
id: "children",
|
|
26338
26470
|
version: 1,
|
|
@@ -26361,7 +26493,7 @@ var children = {
|
|
|
26361
26493
|
}, "read")
|
|
26362
26494
|
};
|
|
26363
26495
|
|
|
26364
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26496
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/services/project-status/signals/coverage.js
|
|
26365
26497
|
var coverage = {
|
|
26366
26498
|
id: "coverage",
|
|
26367
26499
|
version: 1,
|
|
@@ -26390,7 +26522,7 @@ var coverage = {
|
|
|
26390
26522
|
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")
|
|
26391
26523
|
};
|
|
26392
26524
|
|
|
26393
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26525
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/services/project-status/signals/payments.js
|
|
26394
26526
|
var holding2 = /* @__PURE__ */ __name((row) => row.review !== "rejected", "holding");
|
|
26395
26527
|
var item = /* @__PURE__ */ __name((row, at, data) => ({
|
|
26396
26528
|
signal: "payments",
|
|
@@ -26440,7 +26572,7 @@ var payments = {
|
|
|
26440
26572
|
}, "read")
|
|
26441
26573
|
};
|
|
26442
26574
|
|
|
26443
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26575
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/services/project-status/signals/promises.js
|
|
26444
26576
|
var PATTERNS_PER_CHAT = 3;
|
|
26445
26577
|
var DAY3 = 864e5;
|
|
26446
26578
|
var KINDS2 = /* @__PURE__ */ new Set(["promise", "request"]);
|
|
@@ -26529,7 +26661,7 @@ var promises = {
|
|
|
26529
26661
|
}, "read")
|
|
26530
26662
|
};
|
|
26531
26663
|
|
|
26532
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26664
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/services/project-status/signals/questions.js
|
|
26533
26665
|
var PER_SIDE = 5;
|
|
26534
26666
|
var WEEK = 7 * 864e5;
|
|
26535
26667
|
var NOBODY = /* @__PURE__ */ new Set();
|
|
@@ -26560,7 +26692,7 @@ var questions2 = {
|
|
|
26560
26692
|
}, "attention")
|
|
26561
26693
|
};
|
|
26562
26694
|
|
|
26563
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26695
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/services/project-status/signals/reply-next.js
|
|
26564
26696
|
var targetOf = /* @__PURE__ */ __name((message, chat, owners) => {
|
|
26565
26697
|
const byId2 = /* @__PURE__ */ __name((id2) => chat.messages.find((one) => one.id === id2), "byId");
|
|
26566
26698
|
const quoted = message.replyTo ?? (message.replyToId === void 0 ? void 0 : byId2(message.replyToId));
|
|
@@ -26628,7 +26760,7 @@ var replyNext = {
|
|
|
26628
26760
|
attention: /* @__PURE__ */ __name((items) => items.flatMap((item2) => item2.chat !== null && item2.data.next === "owner" ? [{ chat: item2.chat, weight: 2, why: "your move" }] : []), "attention")
|
|
26629
26761
|
};
|
|
26630
26762
|
|
|
26631
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26763
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/services/project-status/signals/topics.js
|
|
26632
26764
|
var escaped = /* @__PURE__ */ __name((text2) => text2.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), "escaped");
|
|
26633
26765
|
var wholeWord = /* @__PURE__ */ __name((word) => new RegExp(`(?<![\\p{L}\\p{N}])${escaped(word)}(?![\\p{L}\\p{N}])`, "u"), "wholeWord");
|
|
26634
26766
|
var matcherOf = /* @__PURE__ */ __name((query) => {
|
|
@@ -26674,7 +26806,7 @@ var topics = {
|
|
|
26674
26806
|
}, "read")
|
|
26675
26807
|
};
|
|
26676
26808
|
|
|
26677
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26809
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/services/project-status/signals/index.js
|
|
26678
26810
|
var STATUS_SIGNALS = [
|
|
26679
26811
|
replyNext,
|
|
26680
26812
|
questions2,
|
|
@@ -26686,7 +26818,7 @@ var STATUS_SIGNALS = [
|
|
|
26686
26818
|
children
|
|
26687
26819
|
];
|
|
26688
26820
|
|
|
26689
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26821
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/services/project-status/index.js
|
|
26690
26822
|
var DAY4 = 864e5;
|
|
26691
26823
|
var STATUS_WINDOW = 300;
|
|
26692
26824
|
var STATUS_CHATS = 16;
|
|
@@ -26875,7 +27007,7 @@ var projectStatus = /* @__PURE__ */ __name(async (store, input) => {
|
|
|
26875
27007
|
};
|
|
26876
27008
|
}, "projectStatus");
|
|
26877
27009
|
|
|
26878
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27010
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/services/account.js
|
|
26879
27011
|
var accountService = /* @__PURE__ */ __name((deps) => {
|
|
26880
27012
|
const online = /* @__PURE__ */ __name(async (command) => {
|
|
26881
27013
|
if (deps.offline)
|
|
@@ -26947,7 +27079,7 @@ var accountService = /* @__PURE__ */ __name((deps) => {
|
|
|
26947
27079
|
};
|
|
26948
27080
|
}, "accountService");
|
|
26949
27081
|
|
|
26950
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27082
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/domain/send-time.js
|
|
26951
27083
|
var MINUTE = 6e4;
|
|
26952
27084
|
var YEAR = 365 * 24 * 60 * MINUTE;
|
|
26953
27085
|
var DELAY = /^(\d+)(m|h|d)$/;
|
|
@@ -26966,7 +27098,7 @@ var sendTime = /* @__PURE__ */ __name((value, now = Date.now(), flag = "--at-tim
|
|
|
26966
27098
|
return new Date(at - at % MINUTE).toISOString();
|
|
26967
27099
|
}, "sendTime");
|
|
26968
27100
|
|
|
26969
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27101
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/services/admin.js
|
|
26970
27102
|
var recordMembership = /* @__PURE__ */ __name(async (deps, operationId, done2, change, fix, write) => {
|
|
26971
27103
|
try {
|
|
26972
27104
|
const held = await accountStoreIfOpen(deps);
|
|
@@ -27213,7 +27345,7 @@ var linkLimits = /* @__PURE__ */ __name(({ approval, expires, maxUses }) => {
|
|
|
27213
27345
|
return expires === void 0 ? void 0 : sendTime(expires, Date.now(), "--expire-time");
|
|
27214
27346
|
}, "linkLimits");
|
|
27215
27347
|
|
|
27216
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27348
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/services/mail-search.js
|
|
27217
27349
|
var THREADS_PAGE = 500;
|
|
27218
27350
|
var threadsOf = /* @__PURE__ */ __name(async (store, key) => {
|
|
27219
27351
|
const account = await store.accounts.storedAccount(key).catch(() => void 0);
|
|
@@ -27292,7 +27424,7 @@ var readMail = /* @__PURE__ */ __name(async (store, locator, { before: before2 =
|
|
|
27292
27424
|
return thread.slice(Math.max(0, at - before2), at + after + 1).map((hit) => hit.id === message ? { ...hit, anchor: true } : hit);
|
|
27293
27425
|
}, "readMail");
|
|
27294
27426
|
|
|
27295
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27427
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/services/messages-search.js
|
|
27296
27428
|
var PERSON_FIELDS = /* @__PURE__ */ new Set(["from", "to", "cc", "bcc"]);
|
|
27297
27429
|
var MAIL_FIELDS = /* @__PURE__ */ new Set(["to", "cc", "bcc", "subject", "mailbox", "label", "is", "list"]);
|
|
27298
27430
|
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");
|
|
@@ -27376,9 +27508,7 @@ var prepareLucene = /* @__PURE__ */ __name(async (store, account, request, messe
|
|
|
27376
27508
|
if (node.field === "date")
|
|
27377
27509
|
return {
|
|
27378
27510
|
...node,
|
|
27379
|
-
resolution: {
|
|
27380
|
-
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)
|
|
27381
|
-
}
|
|
27511
|
+
resolution: { date: rangeOf(node, timezone) }
|
|
27382
27512
|
};
|
|
27383
27513
|
return node;
|
|
27384
27514
|
}, "resolve");
|
|
@@ -27661,7 +27791,7 @@ var statsLucene = /* @__PURE__ */ __name(async (store, account, request, messeng
|
|
|
27661
27791
|
};
|
|
27662
27792
|
}, "statsLucene");
|
|
27663
27793
|
|
|
27664
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27794
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/services/rankings-selection.js
|
|
27665
27795
|
var RANKING_SELECTION_BYTES = 64 * 1024;
|
|
27666
27796
|
var object2 = /* @__PURE__ */ __name((value) => value !== null && typeof value === "object" && !Array.isArray(value) ? value : void 0, "object");
|
|
27667
27797
|
function invalid(message = "ranking selection is invalid \u2014 obtain a new drilldown from stats top") {
|
|
@@ -27830,7 +27960,7 @@ var readRankingSelection = /* @__PURE__ */ __name(async (store, input) => {
|
|
|
27830
27960
|
};
|
|
27831
27961
|
}, "readRankingSelection");
|
|
27832
27962
|
|
|
27833
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27963
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/services/search-record.js
|
|
27834
27964
|
var canonical = /* @__PURE__ */ __name((value, nested = false) => Array.isArray(value) ? value.map((one) => canonical(one, true)) : value !== null && typeof value === "object" ? Object.fromEntries(Object.entries(value).filter(([, one]) => one !== void 0 && (nested || one !== false)).sort(([a], [b]) => a < b ? -1 : a > b ? 1 : 0).map(([key, one]) => [key, canonical(one, true)])) : value, "canonical");
|
|
27835
27965
|
var searchRecordOf = /* @__PURE__ */ __name((command, params) => ({
|
|
27836
27966
|
command,
|
|
@@ -27840,7 +27970,7 @@ var searchRecordOf = /* @__PURE__ */ __name((command, params) => ({
|
|
|
27840
27970
|
fieldsVersion: FIELD_VERSION
|
|
27841
27971
|
}), "searchRecordOf");
|
|
27842
27972
|
|
|
27843
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27973
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/services/admin-statistics.js
|
|
27844
27974
|
function invalid2(message) {
|
|
27845
27975
|
throw new CliError("validation_error", message);
|
|
27846
27976
|
}
|
|
@@ -28134,7 +28264,7 @@ var adminStatisticsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
28134
28264
|
}, "evidence")
|
|
28135
28265
|
}), "adminStatisticsService");
|
|
28136
28266
|
|
|
28137
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28267
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/services/archive-gaps.js
|
|
28138
28268
|
import { createHash as createHash7, randomUUID as randomUUID5 } from "node:crypto";
|
|
28139
28269
|
var GAP_BOUNDS = { maxGaps: 5, limit: 500, timeMs: 3e4 };
|
|
28140
28270
|
var validateRepair = /* @__PURE__ */ __name((messenger, options2) => {
|
|
@@ -28271,12 +28401,12 @@ var gapsService = /* @__PURE__ */ __name((deps) => {
|
|
|
28271
28401
|
return { plan, repair };
|
|
28272
28402
|
}, "gapsService");
|
|
28273
28403
|
|
|
28274
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28404
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/services/attachments.js
|
|
28275
28405
|
import { createHash as createHash10 } from "node:crypto";
|
|
28276
28406
|
import { constants as constants2, mkdirSync as mkdirSync5 } from "node:fs";
|
|
28277
28407
|
import { lstat as lstat5, open as open6, readFile as readFile2, stat as stat2 } from "node:fs/promises";
|
|
28278
28408
|
|
|
28279
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28409
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/attachments/directory.js
|
|
28280
28410
|
import { lstat as lstat2, readdir as readdir2, realpath as realpath3 } from "node:fs/promises";
|
|
28281
28411
|
import { basename as basename4, join as join12, relative as relative2, sep as sep2 } from "node:path";
|
|
28282
28412
|
var MAX_FILES = 1e4;
|
|
@@ -28347,21 +28477,21 @@ var directoryPaths = /* @__PURE__ */ __name(async (store, chat, directory2, app,
|
|
|
28347
28477
|
return choices;
|
|
28348
28478
|
}, "directoryPaths");
|
|
28349
28479
|
|
|
28350
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28480
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/attachments/documents.js
|
|
28351
28481
|
import { posix } from "node:path";
|
|
28352
28482
|
|
|
28353
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28483
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/attachments/container.js
|
|
28354
28484
|
import { setImmediate as tick } from "node:timers/promises";
|
|
28355
28485
|
import { crc32 } from "node:zlib";
|
|
28356
28486
|
var import_xmldom = __toESM(require_lib(), 1);
|
|
28357
28487
|
|
|
28358
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28488
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/attachments/encoding.js
|
|
28359
28489
|
var import_chardet = __toESM(require_lib2(), 1);
|
|
28360
28490
|
var import_iconv_lite = __toESM(require_lib3(), 1);
|
|
28361
28491
|
var SAMPLE = 65536;
|
|
28362
28492
|
var invalidText = /* @__PURE__ */ __name((text2) => {
|
|
28363
|
-
for (const
|
|
28364
|
-
const code =
|
|
28493
|
+
for (const character2 of text2) {
|
|
28494
|
+
const code = character2.charCodeAt(0);
|
|
28365
28495
|
if (code < 9 || code === 11 || code > 13 && code < 32 || code >= 127 && code <= 159)
|
|
28366
28496
|
return true;
|
|
28367
28497
|
}
|
|
@@ -28457,7 +28587,7 @@ var decodeXml = /* @__PURE__ */ __name((bytes2) => {
|
|
|
28457
28587
|
return result.text;
|
|
28458
28588
|
}, "decodeXml");
|
|
28459
28589
|
|
|
28460
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28590
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/attachments/container.js
|
|
28461
28591
|
var MAX_PART = 10 * 1024 * 1024;
|
|
28462
28592
|
var MAX_ENTRIES = 1e3;
|
|
28463
28593
|
var decoder = new TextDecoder("utf-8", { fatal: true });
|
|
@@ -28470,7 +28600,7 @@ var cancelled = /* @__PURE__ */ __name((signal) => {
|
|
|
28470
28600
|
if (signal?.aborted)
|
|
28471
28601
|
throw new CliError("cancelled", "document extraction cancelled");
|
|
28472
28602
|
}, "cancelled");
|
|
28473
|
-
var safeName2 = /* @__PURE__ */ __name((name) => name.length > 0 && name.length <= 512 && !/^[\\/]|\\/.test(name) && ![...name].some((
|
|
28603
|
+
var safeName2 = /* @__PURE__ */ __name((name) => name.length > 0 && name.length <= 512 && !/^[\\/]|\\/.test(name) && ![...name].some((character2) => character2.charCodeAt(0) < 32) && !name.split("/").includes(".."), "safeName");
|
|
28474
28604
|
var directory = /* @__PURE__ */ __name((bytes2) => {
|
|
28475
28605
|
const view = new DataView(bytes2.buffer, bytes2.byteOffset, bytes2.byteLength);
|
|
28476
28606
|
let end = -1;
|
|
@@ -28672,7 +28802,7 @@ var elements = /* @__PURE__ */ __name((node, name, namespace) => {
|
|
|
28672
28802
|
return found;
|
|
28673
28803
|
}, "elements");
|
|
28674
28804
|
|
|
28675
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28805
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/attachments/sheets.js
|
|
28676
28806
|
var columnName = /* @__PURE__ */ __name((column) => {
|
|
28677
28807
|
let name = "";
|
|
28678
28808
|
for (let rest = column; rest > 0; rest = Math.floor((rest - 1) / 26))
|
|
@@ -28727,7 +28857,7 @@ var sheetText = /* @__PURE__ */ __name((sheets2, maxChars = MAX_TEXT_CHARS) => {
|
|
|
28727
28857
|
return { text: parts.join("").trim(), truncated: false };
|
|
28728
28858
|
}, "sheetText");
|
|
28729
28859
|
|
|
28730
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28860
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/attachments/documents.js
|
|
28731
28861
|
var OFFICE = "urn:oasis:names:tc:opendocument:xmlns:office:1.0";
|
|
28732
28862
|
var TEXT = "urn:oasis:names:tc:opendocument:xmlns:text:1.0";
|
|
28733
28863
|
var TABLE = "urn:oasis:names:tc:opendocument:xmlns:table:1.0";
|
|
@@ -28802,7 +28932,7 @@ var rootIs = /* @__PURE__ */ __name((node, name, namespaces) => {
|
|
|
28802
28932
|
}, "rootIs");
|
|
28803
28933
|
var target = /* @__PURE__ */ __name((owner, reference) => {
|
|
28804
28934
|
const decoded = decodeURIComponent(reference.split(/[?#]/)[0] ?? "");
|
|
28805
|
-
if (/^[a-z][a-z0-9+.-]*:|^[\\/]|\\/i.test(decoded) || [...decoded].some((
|
|
28935
|
+
if (/^[a-z][a-z0-9+.-]*:|^[\\/]|\\/i.test(decoded) || [...decoded].some((character2) => character2.charCodeAt(0) < 32))
|
|
28806
28936
|
throw new Error("external_part");
|
|
28807
28937
|
const path = posix.normalize(posix.join(posix.dirname(owner), decoded));
|
|
28808
28938
|
if (path.startsWith("../") || !path || path === ".")
|
|
@@ -29127,10 +29257,10 @@ var readDocument = /* @__PURE__ */ __name(async (bytes2, kind, signal) => {
|
|
|
29127
29257
|
}
|
|
29128
29258
|
}, "readDocument");
|
|
29129
29259
|
|
|
29130
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29260
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/attachments/extract.js
|
|
29131
29261
|
import { extname as extname3 } from "node:path";
|
|
29132
29262
|
|
|
29133
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29263
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/readers/engine.js
|
|
29134
29264
|
import { readFileSync as readFileSync4 } from "node:fs";
|
|
29135
29265
|
import { dirname as dirname7, extname as extname2, join as join13 } from "node:path";
|
|
29136
29266
|
import { fileURLToPath } from "node:url";
|
|
@@ -29191,7 +29321,7 @@ var derived = /* @__PURE__ */ __name((bytes2, extractor, read) => {
|
|
|
29191
29321
|
}
|
|
29192
29322
|
}, "derived");
|
|
29193
29323
|
|
|
29194
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29324
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/readers/image/index.js
|
|
29195
29325
|
var IMAGES = /* @__PURE__ */ new Set([".jpg", ".jpeg", ".png", ".webp", ".gif", ".heic", ".tif", ".tiff", ".bmp"]);
|
|
29196
29326
|
var image2 = {
|
|
29197
29327
|
id: "image",
|
|
@@ -29200,7 +29330,7 @@ var image2 = {
|
|
|
29200
29330
|
read: /* @__PURE__ */ __name(async () => ({ status: "needs-agent" }), "read")
|
|
29201
29331
|
};
|
|
29202
29332
|
|
|
29203
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29333
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/readers/doc/index.js
|
|
29204
29334
|
var OLE = "\xD0\xCF\xE0\xA1\xB1\xE1";
|
|
29205
29335
|
var doc = {
|
|
29206
29336
|
id: "doc",
|
|
@@ -29212,7 +29342,7 @@ var doc = {
|
|
|
29212
29342
|
}), "read")
|
|
29213
29343
|
};
|
|
29214
29344
|
|
|
29215
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29345
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/readers/docx/index.js
|
|
29216
29346
|
var DOCX = "application/vnd.openxmlformats-officedocument.wordprocessingml.document";
|
|
29217
29347
|
var docx = {
|
|
29218
29348
|
id: "docx",
|
|
@@ -29225,8 +29355,62 @@ var docx = {
|
|
|
29225
29355
|
}), "read")
|
|
29226
29356
|
};
|
|
29227
29357
|
|
|
29228
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29358
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/attachments/markup.js
|
|
29229
29359
|
var import_iconv_lite2 = __toESM(require_lib3(), 1);
|
|
29360
|
+
|
|
29361
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/domain/html-entities.js
|
|
29362
|
+
var NAMED = {
|
|
29363
|
+
amp: "&",
|
|
29364
|
+
lt: "<",
|
|
29365
|
+
gt: ">",
|
|
29366
|
+
quot: '"',
|
|
29367
|
+
apos: "'",
|
|
29368
|
+
nbsp: "\xA0",
|
|
29369
|
+
shy: "\xAD",
|
|
29370
|
+
ensp: "\u2002",
|
|
29371
|
+
emsp: "\u2003",
|
|
29372
|
+
thinsp: "\u2009",
|
|
29373
|
+
zwnj: "\u200C",
|
|
29374
|
+
zwj: "\u200D",
|
|
29375
|
+
lsquo: "\u2018",
|
|
29376
|
+
rsquo: "\u2019",
|
|
29377
|
+
sbquo: "\u201A",
|
|
29378
|
+
ldquo: "\u201C",
|
|
29379
|
+
rdquo: "\u201D",
|
|
29380
|
+
bdquo: "\u201E",
|
|
29381
|
+
laquo: "\xAB",
|
|
29382
|
+
raquo: "\xBB",
|
|
29383
|
+
lsaquo: "\u2039",
|
|
29384
|
+
rsaquo: "\u203A",
|
|
29385
|
+
ndash: "\u2013",
|
|
29386
|
+
mdash: "\u2014",
|
|
29387
|
+
hellip: "\u2026",
|
|
29388
|
+
bull: "\u2022",
|
|
29389
|
+
middot: "\xB7",
|
|
29390
|
+
copy: "\xA9",
|
|
29391
|
+
reg: "\xAE",
|
|
29392
|
+
trade: "\u2122",
|
|
29393
|
+
euro: "\u20AC",
|
|
29394
|
+
pound: "\xA3",
|
|
29395
|
+
yen: "\xA5",
|
|
29396
|
+
cent: "\xA2",
|
|
29397
|
+
deg: "\xB0",
|
|
29398
|
+
plusmn: "\xB1",
|
|
29399
|
+
times: "\xD7",
|
|
29400
|
+
divide: "\xF7",
|
|
29401
|
+
sect: "\xA7",
|
|
29402
|
+
para: "\xB6",
|
|
29403
|
+
iexcl: "\xA1",
|
|
29404
|
+
iquest: "\xBF"
|
|
29405
|
+
};
|
|
29406
|
+
var character = /* @__PURE__ */ __name((code, entity) => code > 0 && code <= 1114111 ? String.fromCodePoint(code) : entity, "character");
|
|
29407
|
+
var decodeEntities = /* @__PURE__ */ __name((text2) => text2.replace(/&(#x[0-9a-f]{1,6}|#\d{1,7}|[a-z]{2,8});/gi, (entity, body) => {
|
|
29408
|
+
if (body[0] !== "#")
|
|
29409
|
+
return NAMED[body] ?? NAMED[body.toLowerCase()] ?? entity;
|
|
29410
|
+
return body[1] === "x" || body[1] === "X" ? character(Number.parseInt(body.slice(2), 16), entity) : character(Number(body.slice(1)), entity);
|
|
29411
|
+
}), "decodeEntities");
|
|
29412
|
+
|
|
29413
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/attachments/markup.js
|
|
29230
29414
|
var RTF_SKIPPED = /* @__PURE__ */ new Set([
|
|
29231
29415
|
"fonttbl",
|
|
29232
29416
|
"colortbl",
|
|
@@ -29359,7 +29543,6 @@ var HTML_DROPPED_CLOSE = new Map(["script", "style", "head", "noscript", "templa
|
|
|
29359
29543
|
new RegExp(`<\\/${name}\\s*>`, "gi")
|
|
29360
29544
|
]));
|
|
29361
29545
|
var HTML_BLOCK = /<\/?(p|div|br|li|ul|ol|tr|h[1-6]|blockquote|pre|section|article|header|footer|table|hr)\b[^>]*>/gi;
|
|
29362
|
-
var ENTITIES = { amp: "&", lt: "<", gt: ">", quot: '"', apos: "'", nbsp: "\xA0" };
|
|
29363
29546
|
var replaceTags = /* @__PURE__ */ __name((source, tag, replacement) => {
|
|
29364
29547
|
const end = source.lastIndexOf(">") + 1;
|
|
29365
29548
|
return source.slice(0, end).replace(tag, replacement) + source.slice(end);
|
|
@@ -29390,18 +29573,10 @@ var dropHidden = /* @__PURE__ */ __name((source) => {
|
|
|
29390
29573
|
var htmlText = /* @__PURE__ */ __name((source) => {
|
|
29391
29574
|
const uncommented = source.replace(/<!--[\s\S]*?(-->|$)/g, (comment, close) => close ? "" : comment);
|
|
29392
29575
|
const blocks = replaceTags(dropHidden(uncommented).replace(/<\/t[dh]\s*>/gi, " "), HTML_BLOCK, "\n");
|
|
29393
|
-
return replaceTags(blocks, /<[^>]*>/g, "").replace(
|
|
29394
|
-
const lower = body.toLowerCase();
|
|
29395
|
-
if (lower.startsWith("#x"))
|
|
29396
|
-
return safeChar(Number.parseInt(lower.slice(2), 16), entity);
|
|
29397
|
-
if (lower.startsWith("#"))
|
|
29398
|
-
return safeChar(Number(lower.slice(1)), entity);
|
|
29399
|
-
return ENTITIES[lower] ?? entity;
|
|
29400
|
-
}).replace(/(?<![ \t\u00a0])[ \t\u00a0]+\n/g, "\n").replace(/\n{3,}/g, "\n\n").trim();
|
|
29576
|
+
return decodeEntities(replaceTags(blocks, /<[^>]*>/g, "")).replace(/(?<![ \t\u00a0])[ \t\u00a0]+\n/g, "\n").replace(/\n{3,}/g, "\n\n").trim();
|
|
29401
29577
|
}, "htmlText");
|
|
29402
|
-
var safeChar = /* @__PURE__ */ __name((code, fallback) => code > 0 && code <= 1114111 ? String.fromCodePoint(code) : fallback, "safeChar");
|
|
29403
29578
|
|
|
29404
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29579
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/readers/html/page.js
|
|
29405
29580
|
var clean = /* @__PURE__ */ __name((value) => typeof value === "string" ? value.replace(/\s+/g, " ").trim() : "", "clean");
|
|
29406
29581
|
var namesIn = /* @__PURE__ */ __name((value) => [value].flat().map((entry) => typeof entry === "string" ? clean(entry) : clean(entry?.name)).filter(Boolean).join(", "), "namesIn");
|
|
29407
29582
|
var jsonLdNodes = /* @__PURE__ */ __name((document) => {
|
|
@@ -29457,7 +29632,7 @@ var markdownSections = /* @__PURE__ */ __name((text2) => {
|
|
|
29457
29632
|
return found.map((section, index) => ({ ...section, end: found[index + 1]?.start ?? text2.length }));
|
|
29458
29633
|
}, "markdownSections");
|
|
29459
29634
|
|
|
29460
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29635
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/readers/html/index.js
|
|
29461
29636
|
var HTML = /* @__PURE__ */ new Set([".html", ".htm", ".xhtml"]);
|
|
29462
29637
|
var first = /* @__PURE__ */ __name((...values) => values.find((value) => typeof value === "string" && value !== ""), "first");
|
|
29463
29638
|
var loaded = /* @__PURE__ */ __name(async (load, name) => {
|
|
@@ -29528,7 +29703,7 @@ var html = {
|
|
|
29528
29703
|
}, "read")
|
|
29529
29704
|
};
|
|
29530
29705
|
|
|
29531
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29706
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/readers/office/index.js
|
|
29532
29707
|
var office = {
|
|
29533
29708
|
id: "office",
|
|
29534
29709
|
version: documentExtractor("odt"),
|
|
@@ -29539,7 +29714,7 @@ var office = {
|
|
|
29539
29714
|
}, "read")
|
|
29540
29715
|
};
|
|
29541
29716
|
|
|
29542
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29717
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/readers/pdf/index.js
|
|
29543
29718
|
var pdf = {
|
|
29544
29719
|
id: "pdf",
|
|
29545
29720
|
version: "unpdf",
|
|
@@ -29606,7 +29781,7 @@ var pdf = {
|
|
|
29606
29781
|
}), "read")
|
|
29607
29782
|
};
|
|
29608
29783
|
|
|
29609
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29784
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/readers/plain/index.js
|
|
29610
29785
|
var PLAIN = /* @__PURE__ */ new Set([".txt", ".md", ".markdown", ".csv", ".tsv", ".json", ".log"]);
|
|
29611
29786
|
var isPlain = /* @__PURE__ */ __name((hint) => PLAIN.has(extensionOf(hint)) || hint.mime?.startsWith("text/") || hint.mime === "application/json", "isPlain");
|
|
29612
29787
|
var readPlain = /* @__PURE__ */ __name((bytes2) => {
|
|
@@ -29626,7 +29801,7 @@ var plain = {
|
|
|
29626
29801
|
read: /* @__PURE__ */ __name(async (bytes2) => readPlain(bytes2), "read")
|
|
29627
29802
|
};
|
|
29628
29803
|
|
|
29629
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29804
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/readers/rtf/index.js
|
|
29630
29805
|
var rtf = {
|
|
29631
29806
|
id: "rtf",
|
|
29632
29807
|
version: "v1",
|
|
@@ -29634,10 +29809,10 @@ var rtf = {
|
|
|
29634
29809
|
read: /* @__PURE__ */ __name(async (bytes2) => derived(bytes2, "rtf:v1", rtfText), "read")
|
|
29635
29810
|
};
|
|
29636
29811
|
|
|
29637
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29812
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/readers/sheets/index.js
|
|
29638
29813
|
import { basename as basename5 } from "node:path";
|
|
29639
29814
|
|
|
29640
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29815
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/attachments/csv-spans.js
|
|
29641
29816
|
var delimitedSpans = /* @__PURE__ */ __name((text2, delimiter, maxCells = 1e4) => {
|
|
29642
29817
|
const cells = [];
|
|
29643
29818
|
let row = 1, column = 1, start = 0, quoted = false, truncated = false;
|
|
@@ -29675,7 +29850,7 @@ var delimitedSpans = /* @__PURE__ */ __name((text2, delimiter, maxCells = 1e4) =
|
|
|
29675
29850
|
return { cells, truncated };
|
|
29676
29851
|
}, "delimitedSpans");
|
|
29677
29852
|
|
|
29678
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29853
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/readers/sheets/index.js
|
|
29679
29854
|
var DELIMITED = {
|
|
29680
29855
|
".csv": ",",
|
|
29681
29856
|
".tsv": " ",
|
|
@@ -29714,7 +29889,7 @@ var sheets = {
|
|
|
29714
29889
|
}, "read")
|
|
29715
29890
|
};
|
|
29716
29891
|
|
|
29717
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29892
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/readers/registry.js
|
|
29718
29893
|
var BUILT_INS2 = [office, pdf, docx, doc, rtf, html, sheets, plain, image2];
|
|
29719
29894
|
var HEAD_BYTES = 1024;
|
|
29720
29895
|
var readers = [...BUILT_INS2];
|
|
@@ -29724,7 +29899,7 @@ var readWithRegistry = /* @__PURE__ */ __name(async (bytes2, hint, context2) =>
|
|
|
29724
29899
|
return reader ? reader.read(bytes2, hint, context2) : { status: "unsupported" };
|
|
29725
29900
|
}, "readWithRegistry");
|
|
29726
29901
|
|
|
29727
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29902
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/attachments/extract.js
|
|
29728
29903
|
var importEngine = /* @__PURE__ */ __name((name) => importFrom(new URL("attachments/extract.js", import.meta.resolve("@wirecat/cli-core")).href, name), "importEngine");
|
|
29729
29904
|
var extensionOf2 = /* @__PURE__ */ __name(({ name, path }) => extname3(name ?? path).toLowerCase(), "extensionOf");
|
|
29730
29905
|
var extractText = /* @__PURE__ */ __name(async (bytes2, hint, load, signal, env = process.env) => {
|
|
@@ -30803,7 +30978,7 @@ function imageSize(input) {
|
|
|
30803
30978
|
}
|
|
30804
30979
|
__name(imageSize, "imageSize");
|
|
30805
30980
|
|
|
30806
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30981
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/attachments/ocr.js
|
|
30807
30982
|
var MAX_PAGES = 20;
|
|
30808
30983
|
var MAX_PIXELS = 2e7;
|
|
30809
30984
|
var cancelled2 = /* @__PURE__ */ __name((signal) => {
|
|
@@ -30963,7 +31138,7 @@ var ocrPdf = /* @__PURE__ */ __name(async (bytes2, pipeline2, load, signal) => {
|
|
|
30963
31138
|
}
|
|
30964
31139
|
}, "ocrPdf");
|
|
30965
31140
|
|
|
30966
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31141
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/attachments/pdf-preview.js
|
|
30967
31142
|
var pdfPreview = /* @__PURE__ */ __name(async (bytes2, page, signal, load = importEngine, env = process.env) => {
|
|
30968
31143
|
const limits = pdfPreviewLimits(env);
|
|
30969
31144
|
const cancelled3 = /* @__PURE__ */ __name(() => {
|
|
@@ -31040,7 +31215,7 @@ var pdfPreview = /* @__PURE__ */ __name(async (bytes2, page, signal, load = impo
|
|
|
31040
31215
|
}
|
|
31041
31216
|
}, "pdfPreview");
|
|
31042
31217
|
|
|
31043
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31218
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/attachments/picture-reading.js
|
|
31044
31219
|
import { spawn } from "node:child_process";
|
|
31045
31220
|
import { mkdtempSync, readFileSync as readFileSync5, rmSync as rmSync2, writeFileSync as writeFileSync3 } from "node:fs";
|
|
31046
31221
|
import { tmpdir } from "node:os";
|
|
@@ -31203,7 +31378,7 @@ Read the attached picture.`,
|
|
|
31203
31378
|
}
|
|
31204
31379
|
}, "readPictureWithAgent");
|
|
31205
31380
|
|
|
31206
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31381
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/attachments/transfer.js
|
|
31207
31382
|
import { createHash as createHash8 } from "node:crypto";
|
|
31208
31383
|
import { constants } from "node:fs";
|
|
31209
31384
|
import { lstat as lstat3, open as open5 } from "node:fs/promises";
|
|
@@ -31311,7 +31486,7 @@ var transferMime = /* @__PURE__ */ __name((head, hint, name = null) => {
|
|
|
31311
31486
|
return hint !== null && /^[a-z0-9.+-]+\/[a-z0-9.+-]+$/i.test(hint) ? hint : "application/octet-stream";
|
|
31312
31487
|
}, "transferMime");
|
|
31313
31488
|
|
|
31314
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31489
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/services/file-download.js
|
|
31315
31490
|
import { createWriteStream, mkdirSync as mkdirSync4 } from "node:fs";
|
|
31316
31491
|
import { link as link3, rm } from "node:fs/promises";
|
|
31317
31492
|
import { join as join15, resolve as resolve6 } from "node:path";
|
|
@@ -31425,12 +31600,12 @@ var save = /* @__PURE__ */ __name(async (file, directory2, fallbackName, { uniqu
|
|
|
31425
31600
|
}
|
|
31426
31601
|
}, "save");
|
|
31427
31602
|
|
|
31428
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31603
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/services/pictures.js
|
|
31429
31604
|
import { createHash as createHash9 } from "node:crypto";
|
|
31430
31605
|
import { lstat as lstat4, readFile } from "node:fs/promises";
|
|
31431
31606
|
import { setTimeout as sleep4 } from "node:timers/promises";
|
|
31432
31607
|
|
|
31433
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31608
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/domain/models.js
|
|
31434
31609
|
var GROUP_SETTINGS = [
|
|
31435
31610
|
"allCanPin",
|
|
31436
31611
|
"onlyAdminsAdd",
|
|
@@ -31444,7 +31619,7 @@ var ADMIN_RIGHTS = ["read", "members", "admins", "info", "pin", "link", "post",
|
|
|
31444
31619
|
var senderIsMe = /* @__PURE__ */ __name((message, account) => message.outgoing === true || message.senderId !== null && String(message.senderId) === account, "senderIsMe");
|
|
31445
31620
|
var MEDIA_KINDS = ["photo", "video", "file", "audio", "link"];
|
|
31446
31621
|
|
|
31447
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31622
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/services/pictures.js
|
|
31448
31623
|
var PICTURE_MAX_BYTES = 25 * 1024 * 1024;
|
|
31449
31624
|
var PICTURE_FLOOR = 0.25;
|
|
31450
31625
|
var PAGE3 = 50;
|
|
@@ -31485,7 +31660,7 @@ var picturesService = /* @__PURE__ */ __name((deps) => {
|
|
|
31485
31660
|
const directory2 = imageModelsDirectory(deps.env);
|
|
31486
31661
|
if (!isImageModelInstalled(model2, directory2))
|
|
31487
31662
|
throw new CliError("not_found", missingModel(model2.id), { reason: "model.not-downloaded", model: model2.id });
|
|
31488
|
-
const { openPictureEmbedder } = await import("./embedder-
|
|
31663
|
+
const { openPictureEmbedder } = await import("./embedder-Q5IF5WIM.js");
|
|
31489
31664
|
return openPictureEmbedder(model2, directory2);
|
|
31490
31665
|
}, "open");
|
|
31491
31666
|
const embedder = /* @__PURE__ */ __name(() => {
|
|
@@ -31659,7 +31834,7 @@ var withPictures = /* @__PURE__ */ __name((messages, pictures) => ({
|
|
|
31659
31834
|
}, "search")
|
|
31660
31835
|
}), "withPictures");
|
|
31661
31836
|
|
|
31662
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31837
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/services/attachments.js
|
|
31663
31838
|
var ATTACHMENT_QUERY = {
|
|
31664
31839
|
entity: "attachment",
|
|
31665
31840
|
backend: "sql",
|
|
@@ -32130,7 +32305,7 @@ var attachmentsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
32130
32305
|
}, "readPicture")
|
|
32131
32306
|
}), "attachmentsService");
|
|
32132
32307
|
|
|
32133
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32308
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/services/chat-documents.js
|
|
32134
32309
|
var chatDocumentsService = /* @__PURE__ */ __name((deps) => ({
|
|
32135
32310
|
list: /* @__PURE__ */ __name(async (chat, { limit, offset, ref }) => {
|
|
32136
32311
|
const store = await accountStore(deps);
|
|
@@ -32160,7 +32335,7 @@ var chatDocumentsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
32160
32335
|
}, "list")
|
|
32161
32336
|
}), "chatDocumentsService");
|
|
32162
32337
|
|
|
32163
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32338
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/services/retention.js
|
|
32164
32339
|
var observationDuration = /* @__PURE__ */ __name((text2, flag) => {
|
|
32165
32340
|
const match = /^(\d+(?:\.\d+)?)([smhdw])$/.exec(text2);
|
|
32166
32341
|
const units2 = { s: 1e3, m: 6e4, h: 36e5, d: 864e5, w: 6048e5 };
|
|
@@ -32247,7 +32422,7 @@ var isRetentionSelection = /* @__PURE__ */ __name((selection) => {
|
|
|
32247
32422
|
}
|
|
32248
32423
|
}, "isRetentionSelection");
|
|
32249
32424
|
|
|
32250
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32425
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/services/counters.js
|
|
32251
32426
|
var counterFields = /* @__PURE__ */ __name((text2 = "views,reactions,comments") => {
|
|
32252
32427
|
const fields = text2.split(",").map((one) => one.trim());
|
|
32253
32428
|
if (!fields.length || fields.some((one) => !COUNTER_FIELDS.includes(one)) || new Set(fields).size !== fields.length)
|
|
@@ -32454,7 +32629,7 @@ var countersService = /* @__PURE__ */ __name((deps) => {
|
|
|
32454
32629
|
};
|
|
32455
32630
|
}, "countersService");
|
|
32456
32631
|
|
|
32457
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32632
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/services/search-refresh.js
|
|
32458
32633
|
var SYNC_KEY = "messages.sync-first";
|
|
32459
32634
|
var SYNC_BOUNDS = { maxChats: 5, timeMs: 3e4, maxMessages: 500 };
|
|
32460
32635
|
var keyOf3 = /* @__PURE__ */ __name((chat) => JSON.stringify([chat.account.provider, chat.account.account, chat.chatId]), "keyOf");
|
|
@@ -32586,7 +32761,7 @@ var withRefresh = /* @__PURE__ */ __name((found, refreshed) => ({
|
|
|
32586
32761
|
...!refreshed || refreshed.complete ? {} : { coverage: { ...found.coverage, state: "stale" } }
|
|
32587
32762
|
}), "withRefresh");
|
|
32588
32763
|
|
|
32589
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32764
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/services/embeddings-search.js
|
|
32590
32765
|
var CANDIDATES = 50;
|
|
32591
32766
|
var WORD_HITS = 200;
|
|
32592
32767
|
var RRF_K = 60;
|
|
@@ -32861,13 +33036,13 @@ var meanOf = /* @__PURE__ */ __name((vectors) => {
|
|
|
32861
33036
|
return mean2.map((value) => value / length);
|
|
32862
33037
|
}, "meanOf");
|
|
32863
33038
|
|
|
32864
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33039
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/services/embeddings.js
|
|
32865
33040
|
var embeddingsService = /* @__PURE__ */ __name((deps) => ({
|
|
32866
33041
|
...embeddingsMaintenance(deps),
|
|
32867
33042
|
...embeddingsSearch(deps)
|
|
32868
33043
|
}), "embeddingsService");
|
|
32869
33044
|
|
|
32870
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33045
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/services/folders.js
|
|
32871
33046
|
var foldersService = /* @__PURE__ */ __name((deps) => {
|
|
32872
33047
|
const online = /* @__PURE__ */ __name(async (command) => {
|
|
32873
33048
|
if (deps.offline)
|
|
@@ -33008,7 +33183,7 @@ var foldersService = /* @__PURE__ */ __name((deps) => {
|
|
|
33008
33183
|
};
|
|
33009
33184
|
}, "foldersService");
|
|
33010
33185
|
|
|
33011
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33186
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/services/mentions.js
|
|
33012
33187
|
var REVIEW_COUNT = 500;
|
|
33013
33188
|
var mentionsService = /* @__PURE__ */ __name((deps) => {
|
|
33014
33189
|
const located = /* @__PURE__ */ __name(async () => {
|
|
@@ -33087,7 +33262,7 @@ var mentionsService = /* @__PURE__ */ __name((deps) => {
|
|
|
33087
33262
|
};
|
|
33088
33263
|
}, "mentionsService");
|
|
33089
33264
|
|
|
33090
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33265
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/domain/message-link.js
|
|
33091
33266
|
var fileLinks = /* @__PURE__ */ __name((attachments) => hitFiles(attachments).map(({ position, kind, name }) => ({
|
|
33092
33267
|
position,
|
|
33093
33268
|
kind,
|
|
@@ -33136,7 +33311,7 @@ var validatePermalink = /* @__PURE__ */ __name((link4) => {
|
|
|
33136
33311
|
return { url: link4.url, access: link4.access, reason: link4.reason };
|
|
33137
33312
|
}, "validatePermalink");
|
|
33138
33313
|
|
|
33139
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33314
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/domain/pin-duration.js
|
|
33140
33315
|
var spokenSeconds = /* @__PURE__ */ __name((seconds) => {
|
|
33141
33316
|
if (seconds % 86400 === 0 && seconds > 86400)
|
|
33142
33317
|
return `${seconds / 86400}d`;
|
|
@@ -33168,7 +33343,7 @@ var pinDurationOf = /* @__PURE__ */ __name((value, allowed, flag = "--expire-tim
|
|
|
33168
33343
|
return seconds;
|
|
33169
33344
|
}, "pinDurationOf");
|
|
33170
33345
|
|
|
33171
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33346
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/sends/send-as.js
|
|
33172
33347
|
var sendAsCheck = /* @__PURE__ */ __name((connection, sendAs) => {
|
|
33173
33348
|
if (sendAs === void 0) {
|
|
33174
33349
|
const saved = connection.savedSender?.bind(connection);
|
|
@@ -33193,7 +33368,7 @@ var typedSendAs = /* @__PURE__ */ __name((typed) => {
|
|
|
33193
33368
|
return sendAs;
|
|
33194
33369
|
}, "typedSendAs");
|
|
33195
33370
|
|
|
33196
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33371
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/search/total.js
|
|
33197
33372
|
var TOTAL_CAP = 1e4;
|
|
33198
33373
|
var totalOf = /* @__PURE__ */ __name((count4, shown, hasMore, exact = true) => {
|
|
33199
33374
|
const least = shown + (hasMore ? 1 : 0);
|
|
@@ -33204,7 +33379,7 @@ var totalOf = /* @__PURE__ */ __name((count4, shown, hasMore, exact = true) => {
|
|
|
33204
33379
|
return { value: count4, relation: exact ? "eq" : "gte" };
|
|
33205
33380
|
}, "totalOf");
|
|
33206
33381
|
|
|
33207
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33382
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/search/lucene/meaning-parts.js
|
|
33208
33383
|
var WORD_FIELDS = /* @__PURE__ */ new Set(["text", "exact"]);
|
|
33209
33384
|
var fieldsOfQuery = /* @__PURE__ */ __name((root, everything) => {
|
|
33210
33385
|
let narrows = false;
|
|
@@ -33233,7 +33408,7 @@ var meaningWords = /* @__PURE__ */ __name((root) => {
|
|
|
33233
33408
|
return wanted(root).join(" ").trim();
|
|
33234
33409
|
}, "meaningWords");
|
|
33235
33410
|
|
|
33236
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33411
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/search/question-plan.js
|
|
33237
33412
|
var words2 = /* @__PURE__ */ __name((text2) => normalize(text2).match(/[\p{L}\p{N}]+/gu) ?? [], "words");
|
|
33238
33413
|
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"));
|
|
33239
33414
|
var questionWord = /\b(?:what|which|how|who|where|when|can|could|should)\b|(?:^|\s)(?:сколько|какой|какая|какие|какое|кто|кому|кем|где|когда|как|что|можно|может|могут|ли)(?:\s|$)/iu;
|
|
@@ -33366,7 +33541,7 @@ var questionLookup = /* @__PURE__ */ __name((text2) => {
|
|
|
33366
33541
|
return terms.length ? anyOfTerms(terms, plan.scope) : void 0;
|
|
33367
33542
|
}, "questionLookup");
|
|
33368
33543
|
|
|
33369
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33544
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/services/messages-combined.js
|
|
33370
33545
|
var COMBINED_DEFAULTS = { candidateDepth: 300, rrfK: 60, rerank: "all", chatCap: 0 };
|
|
33371
33546
|
var tokensOf = /* @__PURE__ */ __name((text2) => normalize(text2).match(/[\p{L}\p{N}\p{Co}\p{M}]+/gu) ?? [], "tokensOf");
|
|
33372
33547
|
var searchCombined = /* @__PURE__ */ __name(async (store, account, request, messenger = {}, options2 = COMBINED_DEFAULTS) => {
|
|
@@ -33560,7 +33735,7 @@ var signals = /* @__PURE__ */ __name((hit, terms, corrections, execution, mode,
|
|
|
33560
33735
|
return mode === "coverage" ? coverage2 * 4 : mode === "proximity" ? proximity : mode === "phrase" ? phrase2 : coverage2 * 4 + proximity + phrase2;
|
|
33561
33736
|
}, "signals");
|
|
33562
33737
|
|
|
33563
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33738
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/services/messages-discovery.js
|
|
33564
33739
|
var MEANING_DEPTH = 100;
|
|
33565
33740
|
var RRF_K2 = 60;
|
|
33566
33741
|
var RERANK_DEPTH = 50;
|
|
@@ -33886,7 +34061,7 @@ var mixedWithReranker = /* @__PURE__ */ __name((head, scores) => {
|
|
|
33886
34061
|
})).sort((a, b) => b.mixed - a.mixed).map(({ hit }) => hit);
|
|
33887
34062
|
}, "mixedWithReranker");
|
|
33888
34063
|
|
|
33889
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34064
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/services/thread-context.js
|
|
33890
34065
|
var THREAD_BOUNDS = { maxHops: 8, maxMessages: 50, maxBytes: 65536, withinMs: 864e5 };
|
|
33891
34066
|
var bytes = /* @__PURE__ */ __name((items, links) => Buffer.byteLength(JSON.stringify({ items, links }), "utf8"), "bytes");
|
|
33892
34067
|
var threadBounds = /* @__PURE__ */ __name((options2 = {}) => {
|
|
@@ -34085,7 +34260,7 @@ var readThreadContext = /* @__PURE__ */ __name(async (store, account, chat, mess
|
|
|
34085
34260
|
return result;
|
|
34086
34261
|
}, "readThreadContext");
|
|
34087
34262
|
|
|
34088
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34263
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/services/messages-archive-search.js
|
|
34089
34264
|
var SEARCH_FILL_MS = 200;
|
|
34090
34265
|
var statsStore = /* @__PURE__ */ __name(async (store, account, request, messenger = {}) => {
|
|
34091
34266
|
const stop = Date.now() + SEARCH_FILL_MS;
|
|
@@ -34154,7 +34329,7 @@ var accountOf2 = /* @__PURE__ */ __name((hit) => {
|
|
|
34154
34329
|
}, "accountOf");
|
|
34155
34330
|
var keyOf4 = /* @__PURE__ */ __name(({ provider, account }) => `${provider}/${account}`, "keyOf");
|
|
34156
34331
|
|
|
34157
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34332
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/services/meaning-model.js
|
|
34158
34333
|
var meaningModel = /* @__PURE__ */ __name(async (store, env = process.env) => {
|
|
34159
34334
|
const chosen = chosenTextModel(env);
|
|
34160
34335
|
if (chosen.from === "chosen" || chosen.id !== DEFAULT_TEXT_MODEL)
|
|
@@ -34169,7 +34344,7 @@ var meaningModel = /* @__PURE__ */ __name(async (store, env = process.env) => {
|
|
|
34169
34344
|
return (counts.get(before2) ?? 0) > (counts.get(now) ?? 0) ? previous.id : current.id;
|
|
34170
34345
|
}, "meaningModel");
|
|
34171
34346
|
|
|
34172
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34347
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/services/messages-meaning.js
|
|
34173
34348
|
var meaningText = /* @__PURE__ */ __name((question) => {
|
|
34174
34349
|
try {
|
|
34175
34350
|
const text2 = questionLookup(question) === void 0 ? question : questionText(question);
|
|
@@ -34248,7 +34423,7 @@ var meaningLane = /* @__PURE__ */ __name((deps) => async (question, accounts, sh
|
|
|
34248
34423
|
}
|
|
34249
34424
|
}, "meaningLane");
|
|
34250
34425
|
|
|
34251
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34426
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/services/messages-rerank.js
|
|
34252
34427
|
var rerankLane = /* @__PURE__ */ __name((deps) => {
|
|
34253
34428
|
const choice = deps.reranker ?? DEFAULT_RERANK_MODEL;
|
|
34254
34429
|
if (choice === "off")
|
|
@@ -34260,9 +34435,9 @@ var rerankLane = /* @__PURE__ */ __name((deps) => {
|
|
|
34260
34435
|
return { skipped: { reason: `${model.id} is not downloaded`, step: "models.download", model: model.id } };
|
|
34261
34436
|
try {
|
|
34262
34437
|
const warm = deps.embedders;
|
|
34263
|
-
const reranker = warm ? await warm.reranker(`rerank:${model.id}`, async () => (await import("./process-
|
|
34438
|
+
const reranker = warm ? await warm.reranker(`rerank:${model.id}`, async () => (await import("./process-MFC5VSPT.js")).openRerankerProcess(model, directory2, {
|
|
34264
34439
|
threads: defaultThreads()
|
|
34265
|
-
})) : await (await import("./rerank-
|
|
34440
|
+
})) : await (await import("./rerank-A5X6THV6.js")).openReranker(model, directory2);
|
|
34266
34441
|
return {
|
|
34267
34442
|
model: model.id,
|
|
34268
34443
|
score: /* @__PURE__ */ __name((question, passages) => reranker.score(plainWords(question), passages), "score"),
|
|
@@ -34282,7 +34457,7 @@ var rerankLane = /* @__PURE__ */ __name((deps) => {
|
|
|
34282
34457
|
};
|
|
34283
34458
|
}, "rerankLane");
|
|
34284
34459
|
|
|
34285
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34460
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/search/question-period.js
|
|
34286
34461
|
var DAY5 = 864e5;
|
|
34287
34462
|
var SPAN = { start: 0, end: 0 };
|
|
34288
34463
|
var phrase = /* @__PURE__ */ __name((source) => new RegExp(`(?<![\\p{L}\\p{N}])(?:${source})(?![\\p{L}\\p{N}])`, "giu"), "phrase");
|
|
@@ -34407,17 +34582,17 @@ var questionPeriod = /* @__PURE__ */ __name((text2, now, zone) => {
|
|
|
34407
34582
|
};
|
|
34408
34583
|
}, "questionPeriod");
|
|
34409
34584
|
|
|
34410
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34585
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/services/document-pictures.js
|
|
34411
34586
|
var openPictureEmbedderFor = /* @__PURE__ */ __name(async ({ env, command } = {}) => {
|
|
34412
34587
|
const model = imageModel(DEFAULT_IMAGE_MODEL);
|
|
34413
34588
|
const directory2 = imageModelsDirectory(env);
|
|
34414
34589
|
if (!isImageModelInstalled(model, directory2))
|
|
34415
34590
|
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 });
|
|
34416
|
-
const { openPictureEmbedder } = await import("./embedder-
|
|
34591
|
+
const { openPictureEmbedder } = await import("./embedder-Q5IF5WIM.js");
|
|
34417
34592
|
return openPictureEmbedder(model, directory2);
|
|
34418
34593
|
}, "openPictureEmbedderFor");
|
|
34419
34594
|
|
|
34420
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34595
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/services/document-source.js
|
|
34421
34596
|
var documentSource = /* @__PURE__ */ __name((note, accounts, profiles, file) => {
|
|
34422
34597
|
const metadata = note.frontMatter;
|
|
34423
34598
|
const account = accounts.find(({ id: id2 }) => String(id2) === note.folderId);
|
|
@@ -34439,7 +34614,7 @@ var documentSource = /* @__PURE__ */ __name((note, accounts, profiles, file) =>
|
|
|
34439
34614
|
};
|
|
34440
34615
|
}, "documentSource");
|
|
34441
34616
|
|
|
34442
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34617
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/embeddings/keys.js
|
|
34443
34618
|
var endpointKeyName = /* @__PURE__ */ __name((baseUrl) => {
|
|
34444
34619
|
const host = new URL(baseUrl).host;
|
|
34445
34620
|
return ["openai", "anthropic"].includes(host) ? `endpoint:${host}` : host;
|
|
@@ -34472,7 +34647,7 @@ var embeddingKeys = /* @__PURE__ */ __name((app, env = process.env, keyring) =>
|
|
|
34472
34647
|
};
|
|
34473
34648
|
}, "embeddingKeys");
|
|
34474
34649
|
|
|
34475
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34650
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/models/openai.js
|
|
34476
34651
|
var options = strictObject({
|
|
34477
34652
|
temperature: range(0, 2),
|
|
34478
34653
|
top_p: range(0, 1),
|
|
@@ -34539,7 +34714,7 @@ var openai = {
|
|
|
34539
34714
|
}), "complete")
|
|
34540
34715
|
};
|
|
34541
34716
|
|
|
34542
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34717
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/models/index.js
|
|
34543
34718
|
var modelGateway = /* @__PURE__ */ __name((deps) => ({
|
|
34544
34719
|
complete: /* @__PURE__ */ __name(async (request) => {
|
|
34545
34720
|
if (deps.signal?.aborted)
|
|
@@ -34554,7 +34729,7 @@ var modelGateway = /* @__PURE__ */ __name((deps) => ({
|
|
|
34554
34729
|
if (!adapter && target2.provider === "openai")
|
|
34555
34730
|
adapter = openai;
|
|
34556
34731
|
if (!adapter && target2.provider === "anthropic")
|
|
34557
|
-
adapter = (await import("./anthropic-
|
|
34732
|
+
adapter = (await import("./anthropic-3MSWVYCE.js")).anthropic;
|
|
34558
34733
|
if (!adapter)
|
|
34559
34734
|
throw new CliError("validation_error", `no model adapter for ${target2.provider}`);
|
|
34560
34735
|
if (request.images !== void 0 && adapter.images !== true)
|
|
@@ -34614,7 +34789,7 @@ var modelGateway = /* @__PURE__ */ __name((deps) => ({
|
|
|
34614
34789
|
}, "complete")
|
|
34615
34790
|
}), "modelGateway");
|
|
34616
34791
|
|
|
34617
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34792
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/services/enrichment-setting.js
|
|
34618
34793
|
var SECTION2 = "enrichment";
|
|
34619
34794
|
var ENRICHMENT_PROVIDERS = ["openai", "anthropic"];
|
|
34620
34795
|
var DEFAULT_BASE_URLS = {
|
|
@@ -34689,7 +34864,7 @@ var costOf = /* @__PURE__ */ __name((usage, setting) => {
|
|
|
34689
34864
|
return price ? Math.round((usage.input * price.input + usage.output * price.output) * 1e6) / 1e6 : null;
|
|
34690
34865
|
}, "costOf");
|
|
34691
34866
|
|
|
34692
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34867
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/services/enrichment.js
|
|
34693
34868
|
var ENRICH_PER_RUN = 600;
|
|
34694
34869
|
var MAX_LINE = 400;
|
|
34695
34870
|
var line2 = pipe(unknown(), transform((value) => typeof value === "string" ? value.replace(/\s+/g, " ").trim().slice(0, MAX_LINE) : ""));
|
|
@@ -34765,7 +34940,7 @@ var enrichmentState = /* @__PURE__ */ __name(async (store, env, estimateFor, key
|
|
|
34765
34940
|
};
|
|
34766
34941
|
}, "enrichmentState");
|
|
34767
34942
|
|
|
34768
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34943
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/services/notes-title-tier.js
|
|
34769
34944
|
var plainQueryWords = /* @__PURE__ */ __name((query) => {
|
|
34770
34945
|
let root;
|
|
34771
34946
|
try {
|
|
@@ -34792,7 +34967,7 @@ var titleTiers = /* @__PURE__ */ __name((hits, words3) => {
|
|
|
34792
34967
|
return [...hits].sort((a, b) => rank(a) - rank(b));
|
|
34793
34968
|
}, "titleTiers");
|
|
34794
34969
|
|
|
34795
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34970
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/services/notes-search.js
|
|
34796
34971
|
var storeQuery = /* @__PURE__ */ __name(async (store, text2, { exact, timezone } = {}) => resolvedQuery(store, parsedQuery(text2, exact), timezone), "storeQuery");
|
|
34797
34972
|
var parsedQuery = /* @__PURE__ */ __name((text2, exact) => validateFields(parseLucene(text2, { ...SEARCH_QUERY, defaultField: exact ? "exact" : "text" })).root, "parsedQuery");
|
|
34798
34973
|
var resolvedQuery = /* @__PURE__ */ __name(async (store, root, timezone) => {
|
|
@@ -35221,7 +35396,7 @@ var searchNotesOf = /* @__PURE__ */ __name(async (store, account, text2, { accou
|
|
|
35221
35396
|
};
|
|
35222
35397
|
}, "searchNotesOf");
|
|
35223
35398
|
|
|
35224
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35399
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/services/events-search.js
|
|
35225
35400
|
var MAX_EVENTS_OFFSET = 1e3;
|
|
35226
35401
|
var iso3 = /* @__PURE__ */ __name((at) => at === null ? null : new Date(at).toISOString(), "iso");
|
|
35227
35402
|
var accountIdsOf = /* @__PURE__ */ __name(async (store, accounts) => {
|
|
@@ -35339,7 +35514,7 @@ var searchEvents = /* @__PURE__ */ __name(async (store, query, { limit = 20, off
|
|
|
35339
35514
|
};
|
|
35340
35515
|
}, "searchEvents");
|
|
35341
35516
|
|
|
35342
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35517
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/services/search-all-business.js
|
|
35343
35518
|
var OWN_BUSINESS = { provider: "business", account: INTERNAL_NOTES };
|
|
35344
35519
|
var BUSINESS_WORDS_ONLY = "invoices, payments, orders, contracts, subscriptions, products and wallets are found by the words of their numbers and names only";
|
|
35345
35520
|
var placeOf = /* @__PURE__ */ __name(({ source, imported }) => source ?? (imported === void 0 ? OWN_BUSINESS : { provider: imported, account: "" }), "placeOf");
|
|
@@ -35369,7 +35544,7 @@ var searchBusiness = /* @__PURE__ */ __name(async (store, { words: words3, anyWo
|
|
|
35369
35544
|
};
|
|
35370
35545
|
}, "searchBusiness");
|
|
35371
35546
|
|
|
35372
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35547
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/services/meeting-hit-search.js
|
|
35373
35548
|
var resolveMeetingSelection = /* @__PURE__ */ __name(async (store, request) => {
|
|
35374
35549
|
const { project, tag, topic, ...input } = request;
|
|
35375
35550
|
input.signal?.throwIfAborted();
|
|
@@ -35407,7 +35582,7 @@ var resolveMeetingSelection = /* @__PURE__ */ __name(async (store, request) => {
|
|
|
35407
35582
|
return { input, selection };
|
|
35408
35583
|
}, "resolveMeetingSelection");
|
|
35409
35584
|
|
|
35410
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35585
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/services/search-all-meetings.js
|
|
35411
35586
|
var MOST_HITS_PER_MEETING = 3;
|
|
35412
35587
|
var PAGE_ROWS = 200;
|
|
35413
35588
|
var MOST_PAGES = 25;
|
|
@@ -35635,7 +35810,7 @@ var titleItem = /* @__PURE__ */ __name((account, meeting, query) => ({
|
|
|
35635
35810
|
foundBy: ["title"]
|
|
35636
35811
|
}), "titleItem");
|
|
35637
35812
|
|
|
35638
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35813
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/services/search-harder.js
|
|
35639
35814
|
var SECTION3 = "search_harder";
|
|
35640
35815
|
var HARDER_MODELS = {
|
|
35641
35816
|
anthropic: "claude-haiku-5-5",
|
|
@@ -35881,7 +36056,7 @@ var reorderHarder = /* @__PURE__ */ __name(async (question, hits, { laterPage, a
|
|
|
35881
36056
|
};
|
|
35882
36057
|
}, "reorderHarder");
|
|
35883
36058
|
|
|
35884
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36059
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/services/search-all.js
|
|
35885
36060
|
var RESOURCES_SEARCHED = ["messages", "mail", "notes", "events", "crm", "business", "meetings"];
|
|
35886
36061
|
var refusal = /* @__PURE__ */ __name((error, text2) => {
|
|
35887
36062
|
const { reason, span } = error.details ?? {};
|
|
@@ -36294,7 +36469,7 @@ var insidePeriodFirst = /* @__PURE__ */ __name((ordered, period) => {
|
|
|
36294
36469
|
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);
|
|
36295
36470
|
}, "insidePeriodFirst");
|
|
36296
36471
|
|
|
36297
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36472
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/services/server-search.js
|
|
36298
36473
|
var SERVER_SEARCH_KEY = "messages.server-search";
|
|
36299
36474
|
var SERVER_BOUNDS = { timeMs: 5e3, perCall: 100, maxCalls: 3, textBytes: 262144 };
|
|
36300
36475
|
var DEFAULT_BACKEND = "both";
|
|
@@ -36317,31 +36492,37 @@ var merge = /* @__PURE__ */ __name((one, other) => {
|
|
|
36317
36492
|
};
|
|
36318
36493
|
}, "merge");
|
|
36319
36494
|
var sameAccount4 = /* @__PURE__ */ __name((one, other) => one.provider === other.provider && one.account === other.account, "sameAccount");
|
|
36320
|
-
var
|
|
36321
|
-
|
|
36322
|
-
|
|
36323
|
-
|
|
36495
|
+
var serverReads = /* @__PURE__ */ __name((account) => ({
|
|
36496
|
+
fields: {
|
|
36497
|
+
text: ["term", "phrase"],
|
|
36498
|
+
exact: ["term", "phrase"],
|
|
36499
|
+
chat: ["term", "phrase"],
|
|
36500
|
+
from: ["term", "phrase"],
|
|
36501
|
+
date: ["term", "range"]
|
|
36502
|
+
},
|
|
36503
|
+
maxCalls: SERVER_BOUNDS.maxCalls,
|
|
36504
|
+
all: { words: [] },
|
|
36505
|
+
leaf: /* @__PURE__ */ __name((node) => {
|
|
36506
|
+
if (node.field === "text" || node.field === "exact")
|
|
36507
|
+
return { words: node.value === "" ? [] : [node.value] };
|
|
36324
36508
|
const { chat, sender, date: date2 } = node.resolution ?? {};
|
|
36325
36509
|
if (chat)
|
|
36326
|
-
return sameAccount4(chat.account, account) ?
|
|
36510
|
+
return sameAccount4(chat.account, account) ? { words: [], chat: chat.chatId } : void 0;
|
|
36327
36511
|
if (sender?.provider === account.provider)
|
|
36328
|
-
return
|
|
36329
|
-
if (date2)
|
|
36330
|
-
|
|
36331
|
-
|
|
36332
|
-
|
|
36333
|
-
|
|
36334
|
-
|
|
36335
|
-
|
|
36336
|
-
|
|
36337
|
-
return
|
|
36338
|
-
}
|
|
36339
|
-
|
|
36340
|
-
|
|
36341
|
-
|
|
36342
|
-
const should = node.clauses.filter(({ occur }) => occur === "should");
|
|
36343
|
-
return should.length ? should.flatMap(({ node: node2 }) => branchesOf(node2, account)) : [{ words: [] }];
|
|
36344
|
-
}, "branchesOf");
|
|
36512
|
+
return { words: [], from: sender.id };
|
|
36513
|
+
if (date2) {
|
|
36514
|
+
const { from, to } = windowOf(date2);
|
|
36515
|
+
return {
|
|
36516
|
+
words: [],
|
|
36517
|
+
...from === void 0 ? {} : { minDate: from },
|
|
36518
|
+
...to === void 0 ? {} : { maxDate: to }
|
|
36519
|
+
};
|
|
36520
|
+
}
|
|
36521
|
+
return { words: [] };
|
|
36522
|
+
}, "leaf"),
|
|
36523
|
+
both: merge,
|
|
36524
|
+
sends: /* @__PURE__ */ __name(({ words: words3 }) => words3.length > 0, "sends")
|
|
36525
|
+
}), "serverReads");
|
|
36345
36526
|
var asQuery = /* @__PURE__ */ __name(({ words: words3, from, ...rest }) => ({
|
|
36346
36527
|
text: words3.join(" "),
|
|
36347
36528
|
...rest,
|
|
@@ -36398,15 +36579,12 @@ var searchServer = /* @__PURE__ */ __name(async (deps, request) => {
|
|
|
36398
36579
|
const scoped = execution.chat ? sameAccount4(execution.chat.account, account) ? { words: [], chat: execution.chat.chatId } : void 0 : { words: [] };
|
|
36399
36580
|
if (!scoped)
|
|
36400
36581
|
return skip("other_accounts");
|
|
36401
|
-
const
|
|
36402
|
-
|
|
36403
|
-
...new Map(all.filter(({ words: words3 }) => words3.length).map((branch) => [JSON.stringify(branch), branch])).values()
|
|
36404
|
-
];
|
|
36405
|
-
if (!unique.length)
|
|
36582
|
+
const { calls, complete } = serviceCallsOf(execution.root, serverReads(account), scoped);
|
|
36583
|
+
if (!calls.length)
|
|
36406
36584
|
return skip("no_words");
|
|
36407
|
-
if (deps.messenger.serverSearch === "chat" &&
|
|
36585
|
+
if (deps.messenger.serverSearch === "chat" && calls.some(({ chat }) => chat === void 0))
|
|
36408
36586
|
return skip("needs_chat");
|
|
36409
|
-
if (
|
|
36587
|
+
if (!complete)
|
|
36410
36588
|
report.complete = false;
|
|
36411
36589
|
const controller = new AbortController();
|
|
36412
36590
|
const timer = setTimeout(() => controller.abort(), timeMs);
|
|
@@ -36416,7 +36594,6 @@ var searchServer = /* @__PURE__ */ __name(async (deps, request) => {
|
|
|
36416
36594
|
resolve7(BOUND);
|
|
36417
36595
|
stop.addEventListener("abort", () => resolve7(BOUND), { once: true });
|
|
36418
36596
|
});
|
|
36419
|
-
const calls = unique.slice(0, SERVER_BOUNDS.maxCalls);
|
|
36420
36597
|
const pending = new Set(calls);
|
|
36421
36598
|
const found = [];
|
|
36422
36599
|
let open7 = true;
|
|
@@ -36483,7 +36660,7 @@ var searchServer = /* @__PURE__ */ __name(async (deps, request) => {
|
|
|
36483
36660
|
return { report, sources };
|
|
36484
36661
|
}, "searchServer");
|
|
36485
36662
|
|
|
36486
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36663
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/services/messages.js
|
|
36487
36664
|
var DELETE_AT_ONCE = 10;
|
|
36488
36665
|
var filesOf = /* @__PURE__ */ __name(({ attachments }) => {
|
|
36489
36666
|
const files = fileLinks(attachments);
|
|
@@ -36923,7 +37100,7 @@ var checkMediaOptions = /* @__PURE__ */ __name((messenger, asked, attachments) =
|
|
|
36923
37100
|
throw new CliError("validation_error", `${MEDIA_FLAGS[first2]} needs a --photo or --file`);
|
|
36924
37101
|
}, "checkMediaOptions");
|
|
36925
37102
|
|
|
36926
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37103
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/domain/channel-tags.js
|
|
36927
37104
|
var CHANNEL_TAG_RULES_VERSION = "keywords-v1";
|
|
36928
37105
|
var RULES2 = {
|
|
36929
37106
|
ai: [/\b(ai|gpt|llm|machine learning|artificial intelligence)\b/iu, /нейросет|искусственн/iu],
|
|
@@ -36938,7 +37115,7 @@ var classifyChannel = /* @__PURE__ */ __name((metadata) => Object.entries(RULES2
|
|
|
36938
37115
|
return fields.length ? [{ tag, score: fields.length / 3, fields }] : [];
|
|
36939
37116
|
}), "classifyChannel");
|
|
36940
37117
|
|
|
36941
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37118
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/services/metadata.js
|
|
36942
37119
|
var metadataService = /* @__PURE__ */ __name((deps) => {
|
|
36943
37120
|
const held = /* @__PURE__ */ __name(async (reference, { includeLeft = false } = {}) => {
|
|
36944
37121
|
const store = await deps.store();
|
|
@@ -37024,7 +37201,7 @@ var metadataService = /* @__PURE__ */ __name((deps) => {
|
|
|
37024
37201
|
};
|
|
37025
37202
|
}, "metadataService");
|
|
37026
37203
|
|
|
37027
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37204
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/moderation/run.js
|
|
37028
37205
|
var FIRST_LOOK_MS = 24 * 36e5;
|
|
37029
37206
|
var moderateWith = /* @__PURE__ */ __name(async (run2) => {
|
|
37030
37207
|
const { chatId, title, rules, point, since, dryRun } = run2;
|
|
@@ -37061,7 +37238,7 @@ var moderateWith = /* @__PURE__ */ __name(async (run2) => {
|
|
|
37061
37238
|
return { chatId, rows, notes };
|
|
37062
37239
|
}, "moderateWith");
|
|
37063
37240
|
|
|
37064
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37241
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/services/moderation.js
|
|
37065
37242
|
var moderationService = /* @__PURE__ */ __name((deps) => {
|
|
37066
37243
|
const file = /* @__PURE__ */ __name(() => new ModerationRules(moderationPathFor(deps.messenger.app, deps.profile ?? "default", deps.env ?? process.env)), "file");
|
|
37067
37244
|
const group = /* @__PURE__ */ __name(async (chat) => {
|
|
@@ -37139,7 +37316,7 @@ var moderatorOf = /* @__PURE__ */ __name((adapter, deps) => ({
|
|
|
37139
37316
|
}, "removePerson")
|
|
37140
37317
|
}), "moderatorOf");
|
|
37141
37318
|
|
|
37142
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37319
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/services/private-people.js
|
|
37143
37320
|
var noteItem = /* @__PURE__ */ __name((provider, note) => ({
|
|
37144
37321
|
id: note.id,
|
|
37145
37322
|
contact: formatReference({ type: "contact", provider, id: note.personId }),
|
|
@@ -37183,7 +37360,7 @@ var privatePeopleService = /* @__PURE__ */ __name((deps) => {
|
|
|
37183
37360
|
};
|
|
37184
37361
|
}, "privatePeopleService");
|
|
37185
37362
|
|
|
37186
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37363
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/services/rankings.js
|
|
37187
37364
|
var empty = /* @__PURE__ */ __name(() => ({
|
|
37188
37365
|
total: 0,
|
|
37189
37366
|
population: 0,
|
|
@@ -37439,7 +37616,7 @@ var rankingsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
37439
37616
|
}, "evidence")
|
|
37440
37617
|
}), "rankingsService");
|
|
37441
37618
|
|
|
37442
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37619
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/services/reply-stats.js
|
|
37443
37620
|
var FIELDS = ["date", "chat", "kind", "muted"];
|
|
37444
37621
|
var WAITING_TAIL = 100;
|
|
37445
37622
|
var plainOnly = /* @__PURE__ */ __name((text2, command) => {
|
|
@@ -37573,7 +37750,7 @@ var replyStatsService = /* @__PURE__ */ __name((deps) => {
|
|
|
37573
37750
|
};
|
|
37574
37751
|
}, "replyStatsService");
|
|
37575
37752
|
|
|
37576
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37753
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/services/searches.js
|
|
37577
37754
|
var savedSearchItem = /* @__PURE__ */ __name((one) => ({
|
|
37578
37755
|
id: one.id,
|
|
37579
37756
|
name: one.name,
|
|
@@ -37699,7 +37876,7 @@ var searchesService = /* @__PURE__ */ __name((deps) => {
|
|
|
37699
37876
|
};
|
|
37700
37877
|
}, "searchesService");
|
|
37701
37878
|
|
|
37702
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37879
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/services/tags.js
|
|
37703
37880
|
var TAGGING_QUERY = {
|
|
37704
37881
|
entity: "tagging",
|
|
37705
37882
|
backend: "sql",
|
|
@@ -37783,7 +37960,7 @@ var tagsService = /* @__PURE__ */ __name((deps) => {
|
|
|
37783
37960
|
};
|
|
37784
37961
|
}, "tagsService");
|
|
37785
37962
|
|
|
37786
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37963
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/services/topics.js
|
|
37787
37964
|
var actionOf = /* @__PURE__ */ __name(({ title, closed, pinned, hidden, icon }) => {
|
|
37788
37965
|
const set = [closed, pinned, hidden].filter((one) => one !== void 0).length;
|
|
37789
37966
|
if (title !== void 0 || icon !== void 0 || set !== 1)
|
|
@@ -37982,10 +38159,10 @@ var topicsService = /* @__PURE__ */ __name((deps) => {
|
|
|
37982
38159
|
};
|
|
37983
38160
|
}, "topicsService");
|
|
37984
38161
|
|
|
37985
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38162
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/crm/sync.js
|
|
37986
38163
|
var CLOCK_MARGIN = 60 * 6e4;
|
|
37987
38164
|
|
|
37988
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38165
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/crm/writer.js
|
|
37989
38166
|
var CRM_ASSIGN_OTHERS_KEY = "crm.assign-others";
|
|
37990
38167
|
var CRM_WRITE_DEFAULTS = {
|
|
37991
38168
|
"deals.delete": "ask",
|
|
@@ -37993,7 +38170,7 @@ var CRM_WRITE_DEFAULTS = {
|
|
|
37993
38170
|
[CRM_ASSIGN_OTHERS_KEY]: "deny"
|
|
37994
38171
|
};
|
|
37995
38172
|
|
|
37996
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38173
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/services/evidence.js
|
|
37997
38174
|
import { createHash as createHash11, randomUUID as randomUUID6 } from "node:crypto";
|
|
37998
38175
|
var hash2 = /* @__PURE__ */ __name((value) => createHash11("sha256").update(JSON.stringify(value)).digest("hex"), "hash");
|
|
37999
38176
|
var positive2 = /* @__PURE__ */ __name((value, name, minimum = 1) => {
|
|
@@ -38067,7 +38244,7 @@ var prepareEvidencePacket = /* @__PURE__ */ __name(({ kind, source, page, limits
|
|
|
38067
38244
|
return { ...content, id: randomUUID6(), fingerprint: hash2(content) };
|
|
38068
38245
|
}, "prepareEvidencePacket");
|
|
38069
38246
|
|
|
38070
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38247
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/services/evidence-read.js
|
|
38071
38248
|
var readEvidencePacket = /* @__PURE__ */ __name(async (store, account, { chat, limit, before: before2 }, messenger = {}) => {
|
|
38072
38249
|
if (!Number.isSafeInteger(limit) || limit < 1 || limit > 100)
|
|
38073
38250
|
throw new CliError("validation_error", "evidence message limit must be an integer from 1 to 100");
|
|
@@ -38087,7 +38264,7 @@ var readEvidencePacket = /* @__PURE__ */ __name(async (store, account, { chat, l
|
|
|
38087
38264
|
return { ...packet, nextBeforeId: older && last ? last.id : null };
|
|
38088
38265
|
}, "readEvidencePacket");
|
|
38089
38266
|
|
|
38090
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38267
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/services/meeting-project-discovery.js
|
|
38091
38268
|
var scopeKeys = [
|
|
38092
38269
|
"accountId",
|
|
38093
38270
|
"meetingId",
|
|
@@ -38109,7 +38286,7 @@ var optionKeys = /* @__PURE__ */ new Set([
|
|
|
38109
38286
|
"maxVocabularyReadBytes"
|
|
38110
38287
|
]);
|
|
38111
38288
|
|
|
38112
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38289
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/services/text-model-choice.js
|
|
38113
38290
|
import { createHash as createHash12 } from "node:crypto";
|
|
38114
38291
|
import { existsSync as existsSync2 } from "node:fs";
|
|
38115
38292
|
var useTextModel = /* @__PURE__ */ __name(async (id2, { env, command }) => {
|
|
@@ -38240,14 +38417,14 @@ var addCustomTextModel = /* @__PURE__ */ __name(async (id2, payload, { env, fetc
|
|
|
38240
38417
|
return { ...checked2.output, custom: true };
|
|
38241
38418
|
}, "addCustomTextModel");
|
|
38242
38419
|
|
|
38243
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38420
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/calendar/sync.js
|
|
38244
38421
|
var DAY6 = 864e5;
|
|
38245
38422
|
var SLOTS_EVERY = 7 * DAY6;
|
|
38246
38423
|
|
|
38247
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38424
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/calendar/feeds.js
|
|
38248
38425
|
var FEED_LIMITS = { maxBytes: 10 * 1024 * 1024, timeoutMs: 3e4, redirects: 5 };
|
|
38249
38426
|
|
|
38250
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38427
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/calendar/reads.js
|
|
38251
38428
|
var LIST = "events list";
|
|
38252
38429
|
var EVENT_TYPES = [
|
|
38253
38430
|
"default",
|
|
@@ -38306,7 +38483,7 @@ var EVENTS_QUERY = {
|
|
|
38306
38483
|
} : field)
|
|
38307
38484
|
};
|
|
38308
38485
|
|
|
38309
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38486
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/calendar/writer.js
|
|
38310
38487
|
var EVENTS_NOTIFY_KEY = "events.notify";
|
|
38311
38488
|
var EVENTS_DELETE_SERIES_KEY = "events.delete.series";
|
|
38312
38489
|
var EVENTS_REMIND_HOOK_KEY = "events.remind.hook";
|
|
@@ -38324,7 +38501,7 @@ var CALENDAR_WRITE_DEFAULTS = {
|
|
|
38324
38501
|
[EVENTS_REMIND_HOOK_KEY]: "deny"
|
|
38325
38502
|
};
|
|
38326
38503
|
|
|
38327
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38504
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/context/communication-selection.js
|
|
38328
38505
|
var communicationFields = {
|
|
38329
38506
|
sources: pipe(array(strictObject({
|
|
38330
38507
|
id: pipe(string(), regex(/^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$/)),
|
|
@@ -38356,7 +38533,7 @@ var communicationRequest = /* @__PURE__ */ __name((value, preparationAfter) => {
|
|
|
38356
38533
|
return { ...input, after, before: before2 };
|
|
38357
38534
|
}, "communicationRequest");
|
|
38358
38535
|
|
|
38359
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38536
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/services/meeting-preparation-validation.js
|
|
38360
38537
|
var MEETING_PREPARATION_LIMITS = {
|
|
38361
38538
|
meetings: { min: 1, max: 20, default: 5 },
|
|
38362
38539
|
cues: { min: 1, max: 100, default: 10 },
|
|
@@ -38429,7 +38606,7 @@ var validateMeetingPreparationRequest = /* @__PURE__ */ __name((externalId, orig
|
|
|
38429
38606
|
};
|
|
38430
38607
|
}, "validateMeetingPreparationRequest");
|
|
38431
38608
|
|
|
38432
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38609
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/services/meeting-communications-selection.js
|
|
38433
38610
|
var validatePreparationCommunications = /* @__PURE__ */ __name((section, request, after) => {
|
|
38434
38611
|
const fail2 = /* @__PURE__ */ __name(() => {
|
|
38435
38612
|
throw new CliError("invalid_response", "Preparation communications returned another selection or invalid evidence");
|
|
@@ -38477,7 +38654,7 @@ var validatePreparationCommunications = /* @__PURE__ */ __name((section, request
|
|
|
38477
38654
|
}
|
|
38478
38655
|
}, "validatePreparationCommunications");
|
|
38479
38656
|
|
|
38480
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38657
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/services/package-upgrade.js
|
|
38481
38658
|
var upgradePackage = /* @__PURE__ */ __name(async ({ current, command, packageName, check: check2 }, ports) => {
|
|
38482
38659
|
const installer = ports.installer();
|
|
38483
38660
|
const argv = updateCommand(installer, packageName);
|
|
@@ -38542,7 +38719,7 @@ var dayAfter = /* @__PURE__ */ __name((published) => {
|
|
|
38542
38719
|
return Number.isNaN(time) ? null : new Date(time + 24 * 60 * 60 * 1e3).toISOString();
|
|
38543
38720
|
}, "dayAfter");
|
|
38544
38721
|
|
|
38545
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38722
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/services/index.js
|
|
38546
38723
|
var servicesFor = /* @__PURE__ */ __name((deps) => {
|
|
38547
38724
|
const pictures = picturesService(deps);
|
|
38548
38725
|
const base = {
|
|
@@ -38579,7 +38756,7 @@ var servicesFor = /* @__PURE__ */ __name((deps) => {
|
|
|
38579
38756
|
return deps.messenger.services ? { ...base, ...deps.messenger.services(base, deps) } : base;
|
|
38580
38757
|
}, "servicesFor");
|
|
38581
38758
|
|
|
38582
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38759
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/background/relay.js
|
|
38583
38760
|
import { createHash as createHash13 } from "node:crypto";
|
|
38584
38761
|
import { chmodSync, lstatSync, mkdirSync as mkdirSync6, rmSync as rmSync3 } from "node:fs";
|
|
38585
38762
|
import { createConnection, createServer } from "node:net";
|
|
@@ -38800,7 +38977,7 @@ var relayCommand = /* @__PURE__ */ __name((path, request, options2) => new Promi
|
|
|
38800
38977
|
}, () => finish({ error: stopped() }));
|
|
38801
38978
|
}), "relayCommand");
|
|
38802
38979
|
|
|
38803
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38980
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-relay.js
|
|
38804
38981
|
var lentConnection = /* @__PURE__ */ __name((connection, watchers) => throughWrapper(connection, {
|
|
38805
38982
|
close: /* @__PURE__ */ __name(async () => {
|
|
38806
38983
|
}, "close"),
|
|
@@ -38967,6 +39144,7 @@ export {
|
|
|
38967
39144
|
readUpload,
|
|
38968
39145
|
readAttachments,
|
|
38969
39146
|
readStickerFile,
|
|
39147
|
+
decodeEntities,
|
|
38970
39148
|
importEngine,
|
|
38971
39149
|
extractText,
|
|
38972
39150
|
engineHint,
|