@wirecat/mail-cli 0.31.0 → 0.32.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +9 -0
- package/dist/bin/mail.js +2 -2
- package/dist/bundle/{all-profiles-XL62TNUO.js → all-profiles-OTCWJSJS.js} +6 -6
- package/dist/bundle/{anthropic-3MSWVYCE.js → anthropic-GUXHDK32.js} +2 -2
- package/dist/bundle/{app-server-RRNR5XFA.js → app-server-GX7DOE4O.js} +43 -43
- package/dist/bundle/{bun-E3F3PEQQ.js → bun-V5QLYBZU.js} +2 -2
- package/dist/bundle/{bun-sqlite-UOFN77LO.js → bun-sqlite-AXD5CCO3.js} +3 -3
- package/dist/bundle/{chunk-UFMR2TB3.js → chunk-2IYAZRTC.js} +2 -2
- package/dist/bundle/{chunk-GXBNTKJW.js → chunk-2UMEZY6D.js} +2 -2
- package/dist/bundle/{chunk-DPDS6IZJ.js → chunk-3URYKAJP.js} +1 -1
- package/dist/bundle/{chunk-FRXDSR45.js → chunk-4YNUQGDP.js} +1 -1
- package/dist/bundle/{chunk-H2QTUZ3C.js → chunk-6SJ7HHAE.js} +1 -1
- package/dist/bundle/{chunk-JLIVJSCF.js → chunk-6TRKNME5.js} +1 -1
- package/dist/bundle/{chunk-I5Y6Y7Q5.js → chunk-6XNTELM5.js} +1 -1
- package/dist/bundle/{chunk-D6D6JLXG.js → chunk-7GW4D3OW.js} +18 -17
- package/dist/bundle/{chunk-NEJU74O4.js → chunk-AJY2IT25.js} +6 -6
- package/dist/bundle/{chunk-7E7YXQ52.js → chunk-ANYADN3S.js} +17 -17
- package/dist/bundle/{chunk-ITU6K7LU.js → chunk-CAQ5GW3A.js} +1 -1
- package/dist/bundle/{chunk-DZSS2IUK.js → chunk-CD3TAITM.js} +2 -2
- package/dist/bundle/{chunk-BNP7WLDQ.js → chunk-FA3B2DHZ.js} +1 -1
- package/dist/bundle/{chunk-DWBY7DMF.js → chunk-GDDCKTBR.js} +1 -1
- package/dist/bundle/{chunk-QVGCHTTU.js → chunk-GPOTPA3S.js} +10 -10
- package/dist/bundle/{chunk-DCR3IWC7.js → chunk-GSXCMQWV.js} +31 -30
- package/dist/bundle/{chunk-THZHNCJP.js → chunk-HFA6AZWA.js} +3 -3
- package/dist/bundle/{chunk-NYQPKZWL.js → chunk-HUWQ7LXZ.js} +254 -264
- package/dist/bundle/{chunk-EMVLCION.js → chunk-IBCGCYRU.js} +1 -1
- package/dist/bundle/{chunk-HZCINHHS.js → chunk-IVD3JTN5.js} +1 -1
- package/dist/bundle/{chunk-3CJ4C6BB.js → chunk-JRGPPS6H.js} +12 -12
- package/dist/bundle/{chunk-LGDJDD5J.js → chunk-JUS4Y4BW.js} +3 -3
- package/dist/bundle/{chunk-EV5SR3OC.js → chunk-KLFF54AF.js} +7 -7
- package/dist/bundle/{chunk-JYGFEMTR.js → chunk-KLGZX6QT.js} +1 -1
- package/dist/bundle/{chunk-QANXOKYQ.js → chunk-LVFI3TCG.js} +5 -5
- package/dist/bundle/{chunk-PIXFZZUZ.js → chunk-LVJWN2PR.js} +6 -6
- package/dist/bundle/{chunk-NUN7DBR4.js → chunk-MENP3FF5.js} +11 -12
- package/dist/bundle/{chunk-P6CYVOL6.js → chunk-MHXZ62CU.js} +1 -1
- package/dist/bundle/{chunk-BXMLIKUM.js → chunk-MSK7RNOM.js} +149 -148
- package/dist/bundle/{chunk-I3BQ2QIY.js → chunk-MT2WDBG2.js} +12 -12
- package/dist/bundle/{chunk-KPFB2VUY.js → chunk-MVMNZ3Q3.js} +56 -56
- package/dist/bundle/{chunk-3V6J7VPF.js → chunk-NMN5JUYL.js} +3 -3
- package/dist/bundle/{chunk-5YRR52NH.js → chunk-O7OP5NQO.js} +1 -1
- package/dist/bundle/{chunk-WZGFC7D5.js → chunk-OUM4ZO53.js} +1 -1
- package/dist/bundle/{chunk-GZLCZU5B.js → chunk-PALY5PGE.js} +5 -5
- package/dist/bundle/{chunk-QSXJ2BVQ.js → chunk-PCMQYGEM.js} +4 -4
- package/dist/bundle/{chunk-MS5XYEYW.js → chunk-PCWAZVAD.js} +25 -4
- package/dist/bundle/{chunk-OP5ZLH53.js → chunk-QHXOXYAT.js} +52 -52
- package/dist/bundle/{chunk-BS6WYCNZ.js → chunk-RNBG75HW.js} +22 -22
- package/dist/bundle/{chunk-NV3WPD3B.js → chunk-SDAYOJLL.js} +5 -5
- package/dist/bundle/{chunk-DDCDOBZS.js → chunk-SEJBS7SI.js} +1 -1
- package/dist/bundle/{chunk-4BW5JACS.js → chunk-SWXKS7JK.js} +16 -16
- package/dist/bundle/{chunk-S2QO6KUI.js → chunk-SZZJOSIS.js} +2 -2
- package/dist/bundle/{chunk-PZL7DHVJ.js → chunk-T577U52I.js} +7 -7
- package/dist/bundle/{chunk-OXHQNEXU.js → chunk-TDTCCHAI.js} +3 -3
- package/dist/bundle/{chunk-GWKGZOSO.js → chunk-TWHIZJAZ.js} +2 -2
- package/dist/bundle/{chunk-T72DWT37.js → chunk-U346WBJ5.js} +4 -4
- package/dist/bundle/{chunk-4ME2NHNJ.js → chunk-U57QRUP7.js} +2 -2
- package/dist/bundle/{chunk-FYP2M6IT.js → chunk-U7RLFLTM.js} +23 -23
- package/dist/bundle/{chunk-BKRIIZPV.js → chunk-WNGMI6AZ.js} +2 -2
- package/dist/bundle/{chunk-SQA5JI7Q.js → chunk-WQOGHND4.js} +1 -1
- package/dist/bundle/{chunk-HZL3X4XR.js → chunk-XXXVVNGI.js} +18 -15
- package/dist/bundle/{chunk-TUXNILKR.js → chunk-Z6OKVD3R.js} +7 -7
- package/dist/bundle/{chunk-6UOUDIXL.js → chunk-ZAD7K4TI.js} +361 -361
- package/dist/bundle/{chunk-E3IOR37T.js → chunk-ZDP6A2VL.js} +2 -2
- package/dist/bundle/{command-contract-YRNKDQDL.js → command-contract-DZ6XRIOI.js} +15 -15
- package/dist/bundle/{command-server-entry-A3FCP24M.js → command-server-entry-BVXOPKXH.js} +21 -21
- package/dist/bundle/{decode-FI2ISRNZ.js → decode-STN3EHT7.js} +2 -2
- package/dist/bundle/{dist-NLOOZJ64.js → dist-B2JWWTNN.js} +11 -11
- package/dist/bundle/{echarts-PMAJUJFE.js → echarts-QIXLXS3G.js} +2 -2
- package/dist/bundle/{embed-OIMT6SAX.js → embed-4NC4ELYP.js} +3 -3
- package/dist/bundle/{embedder-Q5IF5WIM.js → embedder-HBRDIFQC.js} +6 -6
- package/dist/bundle/{first-run-4L53QWOT.js → first-run-6QF67AAZ.js} +6 -6
- package/dist/bundle/first-screen-LXSZMK2P.js +34 -0
- package/dist/bundle/{instructions-ZJGGGXOA.js → instructions-MD2RZT5Z.js} +1 -1
- package/dist/bundle/mail.js +2 -2
- package/dist/bundle/{node-DCSOHRD6.js → node-IEVT2FSJ.js} +2 -2
- package/dist/bundle/{node-sqlite-7F77K5JA.js → node-sqlite-EOTTDMOG.js} +4 -4
- package/dist/bundle/{oauth-LVPMEN6M.js → oauth-A5BEFGCI.js} +4 -4
- package/dist/bundle/{open-XM5LWEN6.js → open-HWN2EZYG.js} +2 -2
- package/dist/bundle/{openai-H2LCGK22.js → openai-PJKJ4CIU.js} +12 -12
- package/dist/bundle/{process-MFC5VSPT.js → process-6Q23D3TO.js} +1 -1
- package/dist/bundle/{program-ZQ43ZYKZ.js → program-WR43NPAV.js} +403 -381
- package/dist/bundle/{prompt-3LZAZNQ4.js → prompt-E7Q2662O.js} +2 -2
- package/dist/bundle/{recognize-GYQMHFY2.js → recognize-4F4PIL4B.js} +1 -1
- package/dist/bundle/{remote-P2MD5G64.js → remote-RGJXO7XK.js} +6 -6
- package/dist/bundle/{rerank-A5X6THV6.js → rerank-EDY7PHMG.js} +4 -4
- package/dist/bundle/{serve-IEC3EUKS.js → serve-Q4XF6ID2.js} +6 -6
- package/dist/bundle/server-2Y5NSP2U.js +67 -0
- package/dist/bundle/{server-3REPXFNI.js → server-5I72DSDF.js} +35 -35
- package/dist/bundle/{sqlite-runtime-AOLQGC5J.js → sqlite-runtime-PU3Z2H7C.js} +3 -3
- package/dist/bundle/{state-D3P5IXXA.js → state-CWSXJBU2.js} +3 -3
- package/dist/bundle/{store-MZCQXBVW.js → store-KQPKS3PX.js} +15 -15
- package/dist/bundle/{store-DIN6OY3K.js → store-ZAMKKM2A.js} +13 -13
- package/dist/bundle/store-maintenance-command-PMTTDR6J.js +58 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +2 -2
- package/dist/bundle/first-screen-ZPQLAAIS.js +0 -34
- package/dist/bundle/server-E2QTFURI.js +0 -67
- package/dist/bundle/store-maintenance-command-UMVFI6M6.js +0 -58
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
sameOrdinaryFile,
|
|
9
9
|
syncDirectory,
|
|
10
10
|
writeFileAtomic
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-JRGPPS6H.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-LVJWN2PR.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-ZDP6A2VL.js";
|
|
34
34
|
import {
|
|
35
35
|
Command,
|
|
36
36
|
CustomTextModelShape,
|
|
@@ -79,13 +79,15 @@ import {
|
|
|
79
79
|
textModels,
|
|
80
80
|
vectorModelKey,
|
|
81
81
|
writeTextModelsSection
|
|
82
|
-
} from "./chunk-
|
|
82
|
+
} from "./chunk-MSK7RNOM.js";
|
|
83
83
|
import {
|
|
84
84
|
CEILING_KEY,
|
|
85
|
+
STORE_ONLY_KEYS,
|
|
85
86
|
keyForWrite,
|
|
86
87
|
levelFor,
|
|
87
|
-
skipFlagFor
|
|
88
|
-
|
|
88
|
+
skipFlagFor,
|
|
89
|
+
stops
|
|
90
|
+
} from "./chunk-PCWAZVAD.js";
|
|
89
91
|
import {
|
|
90
92
|
isNewer,
|
|
91
93
|
updateCommand
|
|
@@ -145,7 +147,7 @@ import {
|
|
|
145
147
|
validateAst,
|
|
146
148
|
validateFields,
|
|
147
149
|
withoutField
|
|
148
|
-
} from "./chunk-
|
|
150
|
+
} from "./chunk-ZAD7K4TI.js";
|
|
149
151
|
import {
|
|
150
152
|
COUNTER_FIELDS,
|
|
151
153
|
MESSAGE_PARSING,
|
|
@@ -170,7 +172,7 @@ import {
|
|
|
170
172
|
rankingOptions,
|
|
171
173
|
rankingQuestion,
|
|
172
174
|
searchError
|
|
173
|
-
} from "./chunk-
|
|
175
|
+
} from "./chunk-ANYADN3S.js";
|
|
174
176
|
import {
|
|
175
177
|
LOG_ATTRIBUTES,
|
|
176
178
|
TASK_KINDS,
|
|
@@ -193,7 +195,7 @@ import {
|
|
|
193
195
|
sourceOf3 as sourceOf2,
|
|
194
196
|
typedCommand,
|
|
195
197
|
withAttempt
|
|
196
|
-
} from "./chunk-
|
|
198
|
+
} from "./chunk-U7RLFLTM.js";
|
|
197
199
|
import {
|
|
198
200
|
BACKENDS,
|
|
199
201
|
EVENT_QUERY,
|
|
@@ -260,38 +262,38 @@ import {
|
|
|
260
262
|
walkQuery,
|
|
261
263
|
windowOf,
|
|
262
264
|
zonedMoment
|
|
263
|
-
} from "./chunk-
|
|
265
|
+
} from "./chunk-MVMNZ3Q3.js";
|
|
264
266
|
import {
|
|
265
267
|
isCliFailure,
|
|
266
268
|
sqliteCode
|
|
267
|
-
} from "./chunk-
|
|
269
|
+
} from "./chunk-O7OP5NQO.js";
|
|
268
270
|
import {
|
|
269
271
|
DEFAULT_STEMMERS,
|
|
270
272
|
createStemmer
|
|
271
|
-
} from "./chunk-
|
|
273
|
+
} from "./chunk-KLFF54AF.js";
|
|
272
274
|
import {
|
|
273
275
|
fold,
|
|
274
276
|
normalize
|
|
275
|
-
} from "./chunk-
|
|
277
|
+
} from "./chunk-4YNUQGDP.js";
|
|
276
278
|
import {
|
|
277
279
|
localOnly,
|
|
278
280
|
refuseOffComputer,
|
|
279
281
|
remoteKey
|
|
280
|
-
} from "./chunk-
|
|
282
|
+
} from "./chunk-T577U52I.js";
|
|
281
283
|
import {
|
|
282
284
|
PLAIN_HTTP_REFUSED,
|
|
283
285
|
endpoint,
|
|
284
286
|
endpointFetch,
|
|
285
287
|
modelAddressAllowed,
|
|
286
288
|
onThisComputer
|
|
287
|
-
} from "./chunk-
|
|
289
|
+
} from "./chunk-GDDCKTBR.js";
|
|
288
290
|
import {
|
|
289
291
|
DEFAULT_TASK_CATEGORIES,
|
|
290
292
|
FALLBACK_CATEGORY,
|
|
291
293
|
readSharedSection,
|
|
292
294
|
sharedConfigPath,
|
|
293
295
|
writeSharedSection
|
|
294
|
-
} from "./chunk-
|
|
296
|
+
} from "./chunk-PALY5PGE.js";
|
|
295
297
|
import {
|
|
296
298
|
Unzip,
|
|
297
299
|
UnzipInflate,
|
|
@@ -302,15 +304,15 @@ import {
|
|
|
302
304
|
placedText,
|
|
303
305
|
runEmbedders,
|
|
304
306
|
textModelsDirectory
|
|
305
|
-
} from "./chunk-
|
|
307
|
+
} from "./chunk-LVFI3TCG.js";
|
|
306
308
|
import {
|
|
307
309
|
installFiles,
|
|
308
310
|
megabytes
|
|
309
|
-
} from "./chunk-
|
|
311
|
+
} from "./chunk-JUS4Y4BW.js";
|
|
310
312
|
import {
|
|
311
313
|
storePath,
|
|
312
314
|
wirecatDirectory
|
|
313
|
-
} from "./chunk-
|
|
315
|
+
} from "./chunk-FA3B2DHZ.js";
|
|
314
316
|
import {
|
|
315
317
|
Credentials,
|
|
316
318
|
logRecordOf,
|
|
@@ -16971,10 +16973,10 @@ var require_lib3 = __commonJS({
|
|
|
16971
16973
|
}
|
|
16972
16974
|
});
|
|
16973
16975
|
|
|
16974
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16976
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/ports/traits.js
|
|
16975
16977
|
var syncsOneChat = /* @__PURE__ */ __name((messenger) => messenger.history !== "store" || messenger.historyOnDemand === true, "syncsOneChat");
|
|
16976
16978
|
|
|
16977
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16979
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/conversations/link.js
|
|
16978
16980
|
var RULES_VERSION = 5;
|
|
16979
16981
|
var LOOK_BACK = 50;
|
|
16980
16982
|
var SAME_SENDER_WITHIN = 10;
|
|
@@ -17064,7 +17066,7 @@ var latest = /* @__PURE__ */ __name((window3, matches) => {
|
|
|
17064
17066
|
var sameThread = /* @__PURE__ */ __name((a, b) => a.threadId === b.threadId, "sameThread");
|
|
17065
17067
|
var link = /* @__PURE__ */ __name((message, parentId, source, kind, confidence, method) => ({ messageId: message.id, parentId, source, kind, confidence, method }), "link");
|
|
17066
17068
|
|
|
17067
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17069
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/sends/upload.js
|
|
17068
17070
|
import { openAsBlob, realpathSync } from "node:fs";
|
|
17069
17071
|
import { open, stat } from "node:fs/promises";
|
|
17070
17072
|
import { basename, dirname, extname, isAbsolute, relative, resolve, sep } from "node:path";
|
|
@@ -17278,10 +17280,10 @@ var readStickerFile = /* @__PURE__ */ __name(async (path, maxBytes, read) => {
|
|
|
17278
17280
|
return { name, source };
|
|
17279
17281
|
}, "readStickerFile");
|
|
17280
17282
|
|
|
17281
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17283
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/sends/guard.js
|
|
17282
17284
|
import { randomUUID } from "node:crypto";
|
|
17283
17285
|
|
|
17284
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17286
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/sends/flood.js
|
|
17285
17287
|
import { mkdirSync, readFileSync, renameSync, writeFileSync } from "node:fs";
|
|
17286
17288
|
import { dirname as dirname2, join } from "node:path";
|
|
17287
17289
|
var MOST_DEADLINES = 50;
|
|
@@ -17365,11 +17367,11 @@ var FloodMemory = class {
|
|
|
17365
17367
|
}
|
|
17366
17368
|
};
|
|
17367
17369
|
|
|
17368
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17370
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/sends/journal.js
|
|
17369
17371
|
import { appendFileSync, mkdirSync as mkdirSync3, readFileSync as readFileSync2 } from "node:fs";
|
|
17370
17372
|
import { dirname as dirname4, join as join2 } from "node:path";
|
|
17371
17373
|
|
|
17372
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17374
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/sends/file-lock.js
|
|
17373
17375
|
import { closeSync, mkdirSync as mkdirSync2, openSync, statSync, unlinkSync } from "node:fs";
|
|
17374
17376
|
import { dirname as dirname3 } from "node:path";
|
|
17375
17377
|
var LOCK_WAIT_MS = 5e3;
|
|
@@ -17436,7 +17438,7 @@ var lockTime = /* @__PURE__ */ __name((lock) => {
|
|
|
17436
17438
|
}
|
|
17437
17439
|
}, "lockTime");
|
|
17438
17440
|
|
|
17439
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17441
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/sends/journal.js
|
|
17440
17442
|
var sendsPathFor = /* @__PURE__ */ __name((app, profile, env = process.env) => join2(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "sends", `${profile}.jsonl`), "sendsPathFor");
|
|
17441
17443
|
var SendJournal = class {
|
|
17442
17444
|
static {
|
|
@@ -17513,7 +17515,7 @@ var withSendId = /* @__PURE__ */ __name((entry) => {
|
|
|
17513
17515
|
return cid === void 0 || rest.sendId !== void 0 ? rest : { ...rest, sendId: String(cid) };
|
|
17514
17516
|
}, "withSendId");
|
|
17515
17517
|
|
|
17516
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17518
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/sends/recipients.js
|
|
17517
17519
|
import { existsSync, readFileSync as readFileSync3, rmSync } from "node:fs";
|
|
17518
17520
|
import { join as join3 } from "node:path";
|
|
17519
17521
|
var recipientsPathFor = /* @__PURE__ */ __name((app, profile, env = process.env) => join3(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "profiles", `${profile}.recipients.json`), "recipientsPathFor");
|
|
@@ -17625,20 +17627,8 @@ var RecipientList = class {
|
|
|
17625
17627
|
}
|
|
17626
17628
|
};
|
|
17627
17629
|
|
|
17628
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17630
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/sends/guard.js
|
|
17629
17631
|
var HOUR_MS = 60 * 60 * 1e3;
|
|
17630
|
-
var READS = /* @__PURE__ */ new Set([
|
|
17631
|
-
"attachments.extract",
|
|
17632
|
-
"conversations.embeddings",
|
|
17633
|
-
"conversations.links",
|
|
17634
|
-
"messages.server-search",
|
|
17635
|
-
"messages.sync-first",
|
|
17636
|
-
"stats.contacts.top.sync-first",
|
|
17637
|
-
"stats.messages.counters.sync",
|
|
17638
|
-
"stats.messages.show.sync-first",
|
|
17639
|
-
"stats.messages.top.sync-first",
|
|
17640
|
-
"store.gaps.repair"
|
|
17641
|
-
]);
|
|
17642
17632
|
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");
|
|
17643
17633
|
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");
|
|
17644
17634
|
var timeOf = /* @__PURE__ */ __name((entry) => {
|
|
@@ -17652,13 +17642,13 @@ var sendGuard = /* @__PURE__ */ __name(({ profile, recipients, command = recipie
|
|
|
17652
17642
|
let reservation;
|
|
17653
17643
|
const answered = /* @__PURE__ */ new WeakSet();
|
|
17654
17644
|
const refuseReadOnly = /* @__PURE__ */ __name(({ key }) => {
|
|
17655
|
-
if (key !== void 0 &&
|
|
17645
|
+
if (key !== void 0 && STORE_ONLY_KEYS.has(key))
|
|
17656
17646
|
return;
|
|
17657
17647
|
if (readOnlyLock)
|
|
17658
17648
|
throw readOnlyRefusal(readOnlyLock, MESSENGER_CHANGE_REFUSAL);
|
|
17659
17649
|
}, "refuseReadOnly");
|
|
17660
17650
|
const refuseHeld = /* @__PURE__ */ __name(({ key }) => {
|
|
17661
|
-
if (key !== void 0 &&
|
|
17651
|
+
if (key !== void 0 && STORE_ONLY_KEYS.has(key))
|
|
17662
17652
|
return;
|
|
17663
17653
|
const block = flood?.sendBlock();
|
|
17664
17654
|
if (!block)
|
|
@@ -17672,7 +17662,7 @@ var sendGuard = /* @__PURE__ */ __name(({ profile, recipients, command = recipie
|
|
|
17672
17662
|
if (levels !== void 0) {
|
|
17673
17663
|
const key = request.key ?? keyForWrite(kind, action);
|
|
17674
17664
|
const { level, key: named2 } = levelFor(levels, key, permissionDefaults);
|
|
17675
|
-
if (level
|
|
17665
|
+
if (stops(level, key))
|
|
17676
17666
|
throw levelRefusal({ profile, command, key, level, named: named2, permissionSources }, permissionFix?.(request, key));
|
|
17677
17667
|
if (level === "ask" && !answered.has(request)) {
|
|
17678
17668
|
throw new CliError("confirmation_required", `${key} asks before it acts, and it was not asked`);
|
|
@@ -17825,7 +17815,7 @@ var guardFor = /* @__PURE__ */ __name((app, settings, warn, env = process.env, a
|
|
|
17825
17815
|
}), "guardFor");
|
|
17826
17816
|
var journalFailure = /* @__PURE__ */ __name((error) => error?.code ?? (error instanceof Error ? error.name : "error"), "journalFailure");
|
|
17827
17817
|
|
|
17828
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17818
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/cli/messenger/lacks.js
|
|
17829
17819
|
var COMMAND_NEEDS = {
|
|
17830
17820
|
"account update": ["updateProfile", "change the profile"],
|
|
17831
17821
|
"account sessions list": ["sessions", "list the account's sessions"],
|
|
@@ -17875,7 +17865,7 @@ var hideNever = /* @__PURE__ */ __name((messenger, group) => {
|
|
|
17875
17865
|
return group;
|
|
17876
17866
|
}, "hideNever");
|
|
17877
17867
|
|
|
17878
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17868
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/members-audit.js
|
|
17879
17869
|
var AUDIT_PAGE = 200;
|
|
17880
17870
|
var AUDIT_BUDGET = 10;
|
|
17881
17871
|
var AUDIT_PAUSE_MS = 1e3;
|
|
@@ -17955,7 +17945,7 @@ var burstJoins = /* @__PURE__ */ __name((members) => {
|
|
|
17955
17945
|
return found;
|
|
17956
17946
|
}, "burstJoins");
|
|
17957
17947
|
|
|
17958
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17948
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/meetings/cli/management.js
|
|
17959
17949
|
var REMOTE_READ = { remote: "read", local: "read" };
|
|
17960
17950
|
var REMOTE_WRITE = { remote: "write", local: "write" };
|
|
17961
17951
|
var minutes = /* @__PURE__ */ __name((text2) => {
|
|
@@ -18030,7 +18020,7 @@ var addMeetingManagementCommands = /* @__PURE__ */ __name((group, deps) => {
|
|
|
18030
18020
|
}).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
18021
|
}, "addMeetingManagementCommands");
|
|
18032
18022
|
|
|
18033
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18023
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/meetings/cli/query-options.js
|
|
18034
18024
|
var queryWordsAfterOptions = /* @__PURE__ */ __name((command) => {
|
|
18035
18025
|
command.allowUnknownOption();
|
|
18036
18026
|
const parse2 = command.parseOptions.bind(command);
|
|
@@ -18050,7 +18040,7 @@ var queryWordsAfterOptions = /* @__PURE__ */ __name((command) => {
|
|
|
18050
18040
|
return command;
|
|
18051
18041
|
}, "queryWordsAfterOptions");
|
|
18052
18042
|
|
|
18053
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18043
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/meetings/cli/passage.js
|
|
18054
18044
|
var count = /* @__PURE__ */ __name((value) => {
|
|
18055
18045
|
if (!/^(0|[1-9]\d*)$/.test(value) || !Number.isSafeInteger(Number(value)))
|
|
18056
18046
|
throw new CliError("validation_error", "expected a nonnegative safe integer");
|
|
@@ -18092,7 +18082,7 @@ var addMeetingPassageCommandDefinition = /* @__PURE__ */ __name((program, deps)
|
|
|
18092
18082
|
var createMeetingPassageCommand = sharedCommand(createMeetingPassageCommandDefinition);
|
|
18093
18083
|
var addMeetingPassageCommand = sharedCommand(addMeetingPassageCommandDefinition);
|
|
18094
18084
|
|
|
18095
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18085
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/meetings/cli/project-evidence.js
|
|
18096
18086
|
var integer2 = /* @__PURE__ */ __name((value) => {
|
|
18097
18087
|
if (!/^[1-9]\d*$/.test(value) || !Number.isSafeInteger(Number(value)))
|
|
18098
18088
|
throw new CliError("validation_error", "expected a positive safe integer");
|
|
@@ -18115,7 +18105,7 @@ ${fieldsHelp(MEETING_PROJECT_EVIDENCE_QUERY)}`).option("--limit <n>", "hits in o
|
|
|
18115
18105
|
}, "addMeetingProjectEvidenceCommandDefinition");
|
|
18116
18106
|
var addMeetingProjectEvidenceCommand = sharedCommand(addMeetingProjectEvidenceCommandDefinition);
|
|
18117
18107
|
|
|
18118
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18108
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/meetings/cli/search.js
|
|
18119
18109
|
var ZONED = /(?:Z|[+-]\d{2}:?\d{2})$/i;
|
|
18120
18110
|
var AGO = /^(\d+)(m|h|d)$/;
|
|
18121
18111
|
var AGO_MS = { m: 6e4, h: 36e5, d: 864e5 };
|
|
@@ -18206,7 +18196,7 @@ var addMeetingSearchCommandDefinition = /* @__PURE__ */ __name((program, deps) =
|
|
|
18206
18196
|
var createMeetingSearchCommand = sharedCommand(createMeetingSearchCommandDefinition);
|
|
18207
18197
|
var addMeetingSearchCommand = sharedCommand(addMeetingSearchCommandDefinition);
|
|
18208
18198
|
|
|
18209
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18199
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/meetings/cli/index.js
|
|
18210
18200
|
var integer4 = /* @__PURE__ */ __name((text2) => {
|
|
18211
18201
|
if (!/^[1-9]\d*$/.test(text2) || !Number.isSafeInteger(Number(text2)))
|
|
18212
18202
|
throw new InvalidArgumentError("expected a positive integer");
|
|
@@ -18395,7 +18385,7 @@ ${fieldsHelp(EVENT_QUERY, MEETING_QUERY_GUIDE)}`);
|
|
|
18395
18385
|
}, "addMeetingCommandsDefinition");
|
|
18396
18386
|
var addMeetingCommands = sharedCommand(addMeetingCommandsDefinition);
|
|
18397
18387
|
|
|
18398
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18388
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/cli/list-query.js
|
|
18399
18389
|
var LIST_QUERY_GUIDE = "https://github.com/WireCatLabs/cli-core/blob/main/docs/search/query-language.md";
|
|
18400
18390
|
var QUERY_ARGUMENT = "field:value terms that narrow the list \u2014 the fields are below";
|
|
18401
18391
|
var withQuery = /* @__PURE__ */ __name((command, registry) => {
|
|
@@ -18529,7 +18519,7 @@ var termField = /* @__PURE__ */ __name((name, type, example, more = {}) => nativ
|
|
|
18529
18519
|
var queryHelp = /* @__PURE__ */ __name((registry) => `
|
|
18530
18520
|
${fieldsHelp(registry, LIST_QUERY_GUIDE)}`, "queryHelp");
|
|
18531
18521
|
|
|
18532
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18522
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/cli/paging.js
|
|
18533
18523
|
var positiveCount = /* @__PURE__ */ __name((flag) => (value) => {
|
|
18534
18524
|
if (!/^\d+$/.test(value.trim()) || Number(value) < 1)
|
|
18535
18525
|
throw new CliError("validation_error", `${flag} takes a whole number from 1 upwards, not "${value}"`);
|
|
@@ -18538,7 +18528,7 @@ var positiveCount = /* @__PURE__ */ __name((flag) => (value) => {
|
|
|
18538
18528
|
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");
|
|
18539
18529
|
var window = /* @__PURE__ */ __name(({ limit, page, all }) => all ? { offset: 0 } : { limit, offset: (page - 1) * limit }, "window");
|
|
18540
18530
|
|
|
18541
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18531
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/cli/messenger/chat-answers.js
|
|
18542
18532
|
var defined = /* @__PURE__ */ __name((record2) => Object.fromEntries(Object.entries(record2).filter(([, value]) => value !== void 0)), "defined");
|
|
18543
18533
|
var chatRef = /* @__PURE__ */ __name((account, chat) => formatReference({ type: "chat", provider: account.provider, account: account.account, chat }), "chatRef");
|
|
18544
18534
|
var settingsOf = /* @__PURE__ */ __name((settings) => defined({
|
|
@@ -18800,7 +18790,7 @@ var sessionAnswer = /* @__PURE__ */ __name(({ current, client, device, location,
|
|
|
18800
18790
|
...createdAt === void 0 ? {} : { created_at: createdAt }
|
|
18801
18791
|
}), "sessionAnswer");
|
|
18802
18792
|
|
|
18803
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18793
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/deps.js
|
|
18804
18794
|
var accountStore = /* @__PURE__ */ __name(async (deps) => (await deps.store()).forAccount(await deps.account()), "accountStore");
|
|
18805
18795
|
var crossAccount = /* @__PURE__ */ __name((deps, _reason) => deps.store(), "crossAccount");
|
|
18806
18796
|
var NO_LOCAL_STORE = "this answer comes from the messenger, not from the local store";
|
|
@@ -18862,7 +18852,7 @@ var storedDeps = /* @__PURE__ */ __name((messenger, store, account, guard) => ({
|
|
|
18862
18852
|
}), "storedDeps");
|
|
18863
18853
|
var storeModeDeps = /* @__PURE__ */ __name((messenger, store, account, guard) => ({ ...storedDeps(messenger, store, account, guard), offline: false, reads: "store" }), "storeModeDeps");
|
|
18864
18854
|
|
|
18865
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18855
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/ports/messenger.js
|
|
18866
18856
|
var throughWrapper = /* @__PURE__ */ __name((inner, handled, wrap = (_, call) => call) => new Proxy(handled, {
|
|
18867
18857
|
get: /* @__PURE__ */ __name((own, key) => {
|
|
18868
18858
|
if (key in own)
|
|
@@ -18879,12 +18869,12 @@ var capability = /* @__PURE__ */ __name((adapter, method, what) => {
|
|
|
18879
18869
|
return found.bind(adapter);
|
|
18880
18870
|
}, "capability");
|
|
18881
18871
|
|
|
18882
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18872
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/sends/send-id.js
|
|
18883
18873
|
import { randomBytes } from "node:crypto";
|
|
18884
18874
|
var newSendId = /* @__PURE__ */ __name(() => randomBytes(8).readBigInt64BE().toString(), "newSendId");
|
|
18885
18875
|
var newOperationId = newSendId;
|
|
18886
18876
|
|
|
18887
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18877
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/questions.js
|
|
18888
18878
|
var LINKS = /https?:\/\/\S+/g;
|
|
18889
18879
|
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");
|
|
18890
18880
|
var questions = /* @__PURE__ */ __name((messages, { answerers: answerers2, asker = "others" }) => {
|
|
@@ -18914,7 +18904,7 @@ var questions = /* @__PURE__ */ __name((messages, { answerers: answerers2, asker
|
|
|
18914
18904
|
});
|
|
18915
18905
|
}, "questions");
|
|
18916
18906
|
|
|
18917
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18907
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/task-categories.js
|
|
18918
18908
|
var names = /* @__PURE__ */ __name((categories) => categories.map(({ name }) => name).join(", "), "names");
|
|
18919
18909
|
var taskCategoryOf = /* @__PURE__ */ __name((categories = DEFAULT_TASK_CATEGORIES, flag = "--category") => (typed) => {
|
|
18920
18910
|
const name = typed.trim().toLowerCase();
|
|
@@ -18971,7 +18961,7 @@ var categorize = /* @__PURE__ */ __name((text2, categories = DEFAULT_TASK_CATEGO
|
|
|
18971
18961
|
return best.name;
|
|
18972
18962
|
}, "categorize");
|
|
18973
18963
|
|
|
18974
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18964
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/task-rules.js
|
|
18975
18965
|
var taskAccount = /* @__PURE__ */ __name(({ provider, account }) => `${provider}:${account}`, "taskAccount");
|
|
18976
18966
|
var RULES_IN = {
|
|
18977
18967
|
dialog: "all",
|
|
@@ -19177,7 +19167,7 @@ var applyTaskRulesToChats = /* @__PURE__ */ __name(async (store, account, chatId
|
|
|
19177
19167
|
return passes;
|
|
19178
19168
|
}, "applyTaskRulesToChats");
|
|
19179
19169
|
|
|
19180
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19170
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/moment.js
|
|
19181
19171
|
var AGO2 = /^(\d+)(m|h|d)$/;
|
|
19182
19172
|
var AGO_MS2 = { m: 6e4, h: 36e5, d: 864e5 };
|
|
19183
19173
|
var DATE = /^\d{4}-\d{2}-\d{2}/;
|
|
@@ -19217,7 +19207,7 @@ var dateWindow = /* @__PURE__ */ __name(({ sinceTime, untilTime, zone, now = Dat
|
|
|
19217
19207
|
};
|
|
19218
19208
|
}, "dateWindow");
|
|
19219
19209
|
|
|
19220
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19210
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/patience.js
|
|
19221
19211
|
import { setTimeout as sleep } from "node:timers/promises";
|
|
19222
19212
|
var LONGEST_WAIT_MS = 5 * 60 * 1e3;
|
|
19223
19213
|
var patiently = /* @__PURE__ */ __name(async (request, note, stop) => {
|
|
@@ -19240,10 +19230,10 @@ var patiently = /* @__PURE__ */ __name(async (request, note, stop) => {
|
|
|
19240
19230
|
}
|
|
19241
19231
|
}, "patiently");
|
|
19242
19232
|
|
|
19243
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19233
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/archive.js
|
|
19244
19234
|
import { setTimeout as sleep2 } from "node:timers/promises";
|
|
19245
19235
|
|
|
19246
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19236
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/backfill-estimate.js
|
|
19247
19237
|
var REQUEST_MS = 400;
|
|
19248
19238
|
var estimateBackfill = /* @__PURE__ */ __name(({ ranges, held, newest, page, maxPages, pauseMs }) => {
|
|
19249
19239
|
const lowest = ranges[0];
|
|
@@ -19266,13 +19256,13 @@ var estimateBackfill = /* @__PURE__ */ __name(({ ranges, held, newest, page, max
|
|
|
19266
19256
|
};
|
|
19267
19257
|
}, "estimateBackfill");
|
|
19268
19258
|
|
|
19269
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19259
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/domain/recovery.js
|
|
19270
19260
|
var withRecovery = /* @__PURE__ */ __name((error) => ({
|
|
19271
19261
|
...error,
|
|
19272
19262
|
retryable: typeof error.retryable === "boolean" ? error.retryable : error.code === "rate_limited" || error.status === 429
|
|
19273
19263
|
}), "withRecovery");
|
|
19274
19264
|
|
|
19275
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19265
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/batch.js
|
|
19276
19266
|
var actionable = /* @__PURE__ */ __name((error) => {
|
|
19277
19267
|
if (isCliFailure(error))
|
|
19278
19268
|
return withRecovery({ code: error.code, message: error.message, ...error.details });
|
|
@@ -19355,7 +19345,7 @@ var mergeBatches = /* @__PURE__ */ __name((a, b) => {
|
|
|
19355
19345
|
};
|
|
19356
19346
|
}, "mergeBatches");
|
|
19357
19347
|
|
|
19358
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19348
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/search/groups.js
|
|
19359
19349
|
var ALL = "all";
|
|
19360
19350
|
var OWNER_NOTES = { provider: "notes", account: INTERNAL_NOTES };
|
|
19361
19351
|
var NOT_GROUP_NAMES = /* @__PURE__ */ new Set([ALL, "bots"]);
|
|
@@ -19427,7 +19417,7 @@ var groupEntries = /* @__PURE__ */ __name((saved) => ({
|
|
|
19427
19417
|
[ALL]: [ALL]
|
|
19428
19418
|
}), "groupEntries");
|
|
19429
19419
|
|
|
19430
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19420
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/search-kind.js
|
|
19431
19421
|
var NO_MAIL = "no_mail";
|
|
19432
19422
|
var MAIL = "email";
|
|
19433
19423
|
var groupLockOf = /* @__PURE__ */ __name((app, env) => {
|
|
@@ -19501,7 +19491,7 @@ var accountsOfKind = /* @__PURE__ */ __name((kind, chosen, held, explicit, comma
|
|
|
19501
19491
|
return chosenMail.map(({ provider, account }) => ({ provider, account }));
|
|
19502
19492
|
}, "accountsOfKind");
|
|
19503
19493
|
|
|
19504
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19494
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/message-resolution.js
|
|
19505
19495
|
var readChatId = /* @__PURE__ */ __name(async (deps, reference, store, account) => {
|
|
19506
19496
|
if (deps.reads !== "store")
|
|
19507
19497
|
return keptChatId(deps.messenger, reference, store, account);
|
|
@@ -19702,7 +19692,7 @@ var chatsMatchingIn = /* @__PURE__ */ __name(async (store, accounts, pattern) =>
|
|
|
19702
19692
|
}, "chatsMatchingIn");
|
|
19703
19693
|
var isText = /* @__PURE__ */ __name((value) => typeof value === "string" && value !== "", "isText");
|
|
19704
19694
|
|
|
19705
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19695
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/images/context/index.js
|
|
19706
19696
|
var CONTEXT_MESSAGES = 3;
|
|
19707
19697
|
var CONTEXT_MINUTES = 10;
|
|
19708
19698
|
var MAX_CHARS = 1200;
|
|
@@ -19726,12 +19716,12 @@ var context = {
|
|
|
19726
19716
|
}, "describe")
|
|
19727
19717
|
};
|
|
19728
19718
|
|
|
19729
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19719
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/images/registry.js
|
|
19730
19720
|
var BUILT_INS = [context];
|
|
19731
19721
|
var providers = [...BUILT_INS];
|
|
19732
19722
|
var registeredImageProviders = /* @__PURE__ */ __name(() => providers, "registeredImageProviders");
|
|
19733
19723
|
|
|
19734
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19724
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/conversations.js
|
|
19735
19725
|
var READ_PAGE = 5e3;
|
|
19736
19726
|
var CHAIN = 50;
|
|
19737
19727
|
var CONVERSATION_QUERY = {
|
|
@@ -19883,7 +19873,7 @@ var sized = /* @__PURE__ */ __name((size2) => {
|
|
|
19883
19873
|
return size2;
|
|
19884
19874
|
}, "sized");
|
|
19885
19875
|
|
|
19886
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19876
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/embeddings-maintenance.js
|
|
19887
19877
|
var REFRESH_BOUNDS = { maxChats: 20, maxChunks: 2e3 };
|
|
19888
19878
|
var MESSAGE_PAGE = 5e3;
|
|
19889
19879
|
var PER_SESSION = 8;
|
|
@@ -19902,7 +19892,7 @@ var embeddingTarget = /* @__PURE__ */ __name((deps, choice = chosenTextModel(dep
|
|
|
19902
19892
|
price: remote.price,
|
|
19903
19893
|
installed: true,
|
|
19904
19894
|
perBatch: PER_REQUEST * concurrency,
|
|
19905
|
-
open: /* @__PURE__ */ __name(async () => (await import("./remote-
|
|
19895
|
+
open: /* @__PURE__ */ __name(async () => (await import("./remote-RGJXO7XK.js")).openRemote(remote, apiKey, {
|
|
19906
19896
|
concurrency,
|
|
19907
19897
|
env: deps.env ?? process.env
|
|
19908
19898
|
}), "open")
|
|
@@ -19922,7 +19912,7 @@ var embeddingTarget = /* @__PURE__ */ __name((deps, choice = chosenTextModel(dep
|
|
|
19922
19912
|
if (!isTextModelInstalled(model, directory2))
|
|
19923
19913
|
throw notDownloaded(model.id);
|
|
19924
19914
|
if (apart) {
|
|
19925
|
-
const { openProcess } = await import("./process-
|
|
19915
|
+
const { openProcess } = await import("./process-6Q23D3TO.js");
|
|
19926
19916
|
return openProcess(model, directory2, { threads: threads ?? defaultThreads() });
|
|
19927
19917
|
}
|
|
19928
19918
|
return openEmbedder(model, directory2, { threads: threads ?? defaultThreads() });
|
|
@@ -20211,7 +20201,7 @@ var shaped = /* @__PURE__ */ __name(({ chatId, builtAt, algorithmVersion, pendin
|
|
|
20211
20201
|
return { ...one, state };
|
|
20212
20202
|
}, "shaped");
|
|
20213
20203
|
|
|
20214
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20204
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/search-catchup.js
|
|
20215
20205
|
var CATCH_UP_BOUNDS = { maxChunks: 500, maxMessages: 1e4, timeMs: 3e4 };
|
|
20216
20206
|
var validateCatchUpBounds = /* @__PURE__ */ __name((options2) => {
|
|
20217
20207
|
for (const [key, value, maximum] of [
|
|
@@ -20264,7 +20254,7 @@ var catchUpSearch = /* @__PURE__ */ __name(async (deps, chat, options2, signal,
|
|
|
20264
20254
|
}
|
|
20265
20255
|
}, "catchUpSearch");
|
|
20266
20256
|
|
|
20267
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20257
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/archive.js
|
|
20268
20258
|
var pushed = /* @__PURE__ */ __name((deps, what) => {
|
|
20269
20259
|
if (deps.reads === "store") {
|
|
20270
20260
|
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`);
|
|
@@ -20645,7 +20635,7 @@ var timeOfKey = /* @__PURE__ */ __name(async (store, account, chatId, key, byTim
|
|
|
20645
20635
|
return message?.timestamp ?? fallback;
|
|
20646
20636
|
}, "timeOfKey");
|
|
20647
20637
|
|
|
20648
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20638
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/botcheck/check.js
|
|
20649
20639
|
var DAY_MS = 864e5;
|
|
20650
20640
|
var NEW_DAYS = 30;
|
|
20651
20641
|
var SAME_TEXT_MIN = 20;
|
|
@@ -20722,7 +20712,7 @@ var scorePerson = /* @__PURE__ */ __name(({ subject, provider, activity, photos,
|
|
|
20722
20712
|
};
|
|
20723
20713
|
}, "scorePerson");
|
|
20724
20714
|
|
|
20725
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20715
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/http/time-limit.js
|
|
20726
20716
|
var timeLimit = /* @__PURE__ */ __name((ms) => {
|
|
20727
20717
|
const controller = new AbortController();
|
|
20728
20718
|
const timer = setTimeout(() => controller.abort(new DOMException("The operation timed out.", "TimeoutError")), ms);
|
|
@@ -20738,7 +20728,7 @@ var withTimeLimit = /* @__PURE__ */ __name(async (ms, run2) => {
|
|
|
20738
20728
|
}
|
|
20739
20729
|
}, "withTimeLimit");
|
|
20740
20730
|
|
|
20741
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20731
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/botcheck/registries.js
|
|
20742
20732
|
var REGISTRIES = {
|
|
20743
20733
|
cas: { title: "Combot Anti-Spam (CAS)", docs: "https://cas.chat/api" },
|
|
20744
20734
|
lols: { title: "lols.bot", docs: "https://api.lols.bot/lols-bot.json" }
|
|
@@ -20825,7 +20815,7 @@ var notCovered = /* @__PURE__ */ __name((messenger, now = /* @__PURE__ */ new Da
|
|
|
20825
20815
|
detail: `lists Telegram accounts only, not ${messenger} ones`
|
|
20826
20816
|
})), "notCovered");
|
|
20827
20817
|
|
|
20828
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20818
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/botcheck/service.js
|
|
20829
20819
|
var ACTIVITY_MESSAGES = 1e3;
|
|
20830
20820
|
var botCheckService = /* @__PURE__ */ __name((deps) => {
|
|
20831
20821
|
const subjectOf = /* @__PURE__ */ __name(async (reference) => {
|
|
@@ -20913,7 +20903,7 @@ var botCheckService = /* @__PURE__ */ __name((deps) => {
|
|
|
20913
20903
|
};
|
|
20914
20904
|
}, "botCheckService");
|
|
20915
20905
|
|
|
20916
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20906
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/domain/thread.js
|
|
20917
20907
|
var threadIdOf = /* @__PURE__ */ __name((value) => {
|
|
20918
20908
|
if (value === void 0)
|
|
20919
20909
|
return void 0;
|
|
@@ -20923,7 +20913,7 @@ var threadIdOf = /* @__PURE__ */ __name((value) => {
|
|
|
20923
20913
|
return id2;
|
|
20924
20914
|
}, "threadIdOf");
|
|
20925
20915
|
|
|
20926
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20916
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/chat-stats.js
|
|
20927
20917
|
var TOP_POSTS = 5;
|
|
20928
20918
|
var JOINS = /* @__PURE__ */ new Set(["join", "add"]);
|
|
20929
20919
|
var LEAVES = /* @__PURE__ */ new Set(["leave", "remove"]);
|
|
@@ -21040,7 +21030,7 @@ var median = /* @__PURE__ */ __name((values) => {
|
|
|
21040
21030
|
return Math.round(sorted.length % 2 === 0 ? ((sorted[middle - 1] ?? upper) + upper) / 2 : upper);
|
|
21041
21031
|
}, "median");
|
|
21042
21032
|
|
|
21043
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21033
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/member-history.js
|
|
21044
21034
|
var memberEvents = /* @__PURE__ */ __name((stays, revisions, since = 0) => {
|
|
21045
21035
|
const events = [];
|
|
21046
21036
|
for (const stay of stays) {
|
|
@@ -21072,7 +21062,7 @@ var memberEvents = /* @__PURE__ */ __name((stays, revisions, since = 0) => {
|
|
|
21072
21062
|
return events.filter(({ at }) => Date.parse(at) >= since).sort((a, b) => Date.parse(a.at) - Date.parse(b.at) || a.id.localeCompare(b.id));
|
|
21073
21063
|
}, "memberEvents");
|
|
21074
21064
|
|
|
21075
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21065
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/chats.js
|
|
21076
21066
|
var EVENTS_DAYS = 7;
|
|
21077
21067
|
var TRACKED_DAYS = 30;
|
|
21078
21068
|
var STATS_PAGE = 1e3;
|
|
@@ -21367,7 +21357,7 @@ var storedMembers = /* @__PURE__ */ __name(async (store, chatId) => {
|
|
|
21367
21357
|
return members.length === 0 ? null : members;
|
|
21368
21358
|
}, "storedMembers");
|
|
21369
21359
|
|
|
21370
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21360
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/inbox.js
|
|
21371
21361
|
var INBOX_CHATS = 20;
|
|
21372
21362
|
var REVIEW_DAYS = 3;
|
|
21373
21363
|
var UNANSWERED_HOURS = 24;
|
|
@@ -21575,7 +21565,7 @@ var inboxService = /* @__PURE__ */ __name((deps) => {
|
|
|
21575
21565
|
};
|
|
21576
21566
|
}, "inboxService");
|
|
21577
21567
|
|
|
21578
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21568
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/person-meetings.js
|
|
21579
21569
|
var SCAN = 1e3;
|
|
21580
21570
|
var personMeetings = /* @__PURE__ */ __name(async (store, people, accounts, { limit = 10, since, until } = {}) => {
|
|
21581
21571
|
const byId2 = new Map(accounts.map((one) => [one.id, one]));
|
|
@@ -21627,7 +21617,7 @@ var personMeetings = /* @__PURE__ */ __name(async (store, people, accounts, { li
|
|
|
21627
21617
|
return { items, total: newest.length, hasMore: cut || newest.length > limit };
|
|
21628
21618
|
}, "personMeetings");
|
|
21629
21619
|
|
|
21630
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21620
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/person-context.js
|
|
21631
21621
|
var CONTEXT_MESSAGES2 = 10;
|
|
21632
21622
|
var CONTEXT_BYTES = 64 * 1024;
|
|
21633
21623
|
var toContext = /* @__PURE__ */ __name((key, message, chatTitle2) => ({
|
|
@@ -21933,10 +21923,10 @@ var personMessages = /* @__PURE__ */ __name(async (store, asked, reference, { ch
|
|
|
21933
21923
|
};
|
|
21934
21924
|
}, "personMessages");
|
|
21935
21925
|
|
|
21936
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21926
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/meeting-evidence.js
|
|
21937
21927
|
import { createHash } from "node:crypto";
|
|
21938
21928
|
|
|
21939
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21929
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/meeting-reference.js
|
|
21940
21930
|
var missing2 = /* @__PURE__ */ __name(() => new CliError("not_found", "the meeting evidence is unavailable for this account"), "missing");
|
|
21941
21931
|
var authorizedMeetingMetadata = /* @__PURE__ */ __name(async (store, accountId, reference, options2 = {}) => {
|
|
21942
21932
|
const parsed = parseMeetingReference(reference);
|
|
@@ -21954,7 +21944,7 @@ var authorizedMeetingMetadata = /* @__PURE__ */ __name(async (store, accountId,
|
|
|
21954
21944
|
return { parsed, meeting };
|
|
21955
21945
|
}, "authorizedMeetingMetadata");
|
|
21956
21946
|
|
|
21957
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21947
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/meeting-evidence.js
|
|
21958
21948
|
var hash = /* @__PURE__ */ __name((value) => createHash("sha256").update(JSON.stringify(value)).digest("hex"), "hash");
|
|
21959
21949
|
var checkMeetingCancelled = /* @__PURE__ */ __name((signal) => {
|
|
21960
21950
|
if (signal?.aborted)
|
|
@@ -22153,7 +22143,7 @@ var readMeetingEvidence = /* @__PURE__ */ __name(async (store, accountId, refere
|
|
|
22153
22143
|
return { ...packet, fingerprint: hash(packet) };
|
|
22154
22144
|
}, "readMeetingEvidence");
|
|
22155
22145
|
|
|
22156
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22146
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/person-meeting-context.js
|
|
22157
22147
|
var personMeetingContext = /* @__PURE__ */ __name(async (store, personReference, options2) => {
|
|
22158
22148
|
const { meetings = 10, cues = 5, bytes: bytes2 = 64 * 1024, scanLimit = 1e3, since, signal } = options2;
|
|
22159
22149
|
const requestedAccounts = options2.accountIds;
|
|
@@ -22252,7 +22242,7 @@ var personMeetingContext = /* @__PURE__ */ __name(async (store, personReference,
|
|
|
22252
22242
|
};
|
|
22253
22243
|
}, "personMeetingContext");
|
|
22254
22244
|
|
|
22255
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22245
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/person-preparation.js
|
|
22256
22246
|
var PREPARE_BYTES = 96 * 1024;
|
|
22257
22247
|
var MEETINGS = 5;
|
|
22258
22248
|
var CUES = 3;
|
|
@@ -22375,7 +22365,7 @@ var meetingsOf = /* @__PURE__ */ __name(async (store, uid, stored, since, left)
|
|
|
22375
22365
|
}
|
|
22376
22366
|
}, "meetingsOf");
|
|
22377
22367
|
|
|
22378
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22368
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/person-profile.js
|
|
22379
22369
|
var personProfile = /* @__PURE__ */ __name(async (deps, person, known2) => {
|
|
22380
22370
|
const online = deps.offline ? void 0 : await deps.connection();
|
|
22381
22371
|
const held = await storeIfOpen(deps);
|
|
@@ -22445,7 +22435,7 @@ var quiet = /* @__PURE__ */ __name((facts) => facts.chats.map(({ id: id2, title,
|
|
|
22445
22435
|
complete: false
|
|
22446
22436
|
})), "quiet");
|
|
22447
22437
|
|
|
22448
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22438
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/person-timeline.js
|
|
22449
22439
|
var TIMELINE_ITEMS = 50;
|
|
22450
22440
|
var TIMELINE_MAX = 500;
|
|
22451
22441
|
var SCOPES = ["personal", "work"];
|
|
@@ -22507,7 +22497,7 @@ var personTimeline = /* @__PURE__ */ __name(async (store, asked, reference, { sc
|
|
|
22507
22497
|
};
|
|
22508
22498
|
}, "personTimeline");
|
|
22509
22499
|
|
|
22510
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22500
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/chat-coverage.js
|
|
22511
22501
|
var chatCoverage = /* @__PURE__ */ __name(async (store, account, chatIds) => {
|
|
22512
22502
|
const ids = [...new Set(chatIds)];
|
|
22513
22503
|
if (ids.length === 0)
|
|
@@ -22533,7 +22523,7 @@ var chatCoverage = /* @__PURE__ */ __name(async (store, account, chatIds) => {
|
|
|
22533
22523
|
}));
|
|
22534
22524
|
}, "chatCoverage");
|
|
22535
22525
|
|
|
22536
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22526
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/context/evidence-response.js
|
|
22537
22527
|
var contextSourceKey = /* @__PURE__ */ __name((source) => JSON.stringify([source.kind, source.accountId, source.provider, source.account]), "contextSourceKey");
|
|
22538
22528
|
var validateContextEvidencePage = /* @__PURE__ */ __name((page, request) => {
|
|
22539
22529
|
const fail2 = /* @__PURE__ */ __name(() => {
|
|
@@ -22597,7 +22587,7 @@ var validateContextEvidencePage = /* @__PURE__ */ __name((page, request) => {
|
|
|
22597
22587
|
}
|
|
22598
22588
|
}, "validateContextEvidencePage");
|
|
22599
22589
|
|
|
22600
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22590
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/context/read-budget.js
|
|
22601
22591
|
var contextReadBudget = /* @__PURE__ */ __name((limits = {}) => {
|
|
22602
22592
|
if (!limits || typeof limits !== "object" || Array.isArray(limits))
|
|
22603
22593
|
throw new CliError("validation_error", "limits needs a context read allowance");
|
|
@@ -22650,7 +22640,7 @@ var contextReadBudget = /* @__PURE__ */ __name((limits = {}) => {
|
|
|
22650
22640
|
};
|
|
22651
22641
|
}, "contextReadBudget");
|
|
22652
22642
|
|
|
22653
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22643
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/context-evidence.js
|
|
22654
22644
|
var createContextEvidenceReader = /* @__PURE__ */ __name((port, allowed, limits) => {
|
|
22655
22645
|
if (!port || typeof port.read !== "function")
|
|
22656
22646
|
throw new CliError("configuration_error", "context evidence reader is unavailable");
|
|
@@ -22694,7 +22684,7 @@ var createContextEvidenceReader = /* @__PURE__ */ __name((port, allowed, limits)
|
|
|
22694
22684
|
};
|
|
22695
22685
|
}, "createContextEvidenceReader");
|
|
22696
22686
|
|
|
22697
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22687
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/excerpt.js
|
|
22698
22688
|
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");
|
|
22699
22689
|
var excerpt = /* @__PURE__ */ __name((text2, query, size2 = 240, options2 = {}) => {
|
|
22700
22690
|
const flat = text2.replace(/\s+/g, " ").trim();
|
|
@@ -22710,7 +22700,7 @@ var excerpt = /* @__PURE__ */ __name((text2, query, size2 = 240, options2 = {})
|
|
|
22710
22700
|
}, "excerpt");
|
|
22711
22701
|
var withExcerpt = /* @__PURE__ */ __name(({ matchedText, ...hit }, query) => ({ ...hit, excerpt: excerpt(matchedText ?? hit.text, query) }), "withExcerpt");
|
|
22712
22702
|
|
|
22713
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22703
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/project-gathering-around.js
|
|
22714
22704
|
var storedMessageNeighbours = /* @__PURE__ */ __name((messages) => ({
|
|
22715
22705
|
async around(ref, window3) {
|
|
22716
22706
|
const at = parseLocator(ref);
|
|
@@ -22805,7 +22795,7 @@ var storedNeighbours = /* @__PURE__ */ __name((store) => {
|
|
|
22805
22795
|
};
|
|
22806
22796
|
}, "storedNeighbours");
|
|
22807
22797
|
|
|
22808
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22798
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/project-gathering-request.js
|
|
22809
22799
|
import { createHash as createHash2 } from "node:crypto";
|
|
22810
22800
|
var DAY = 864e5;
|
|
22811
22801
|
var MAX_TIME = 864e13;
|
|
@@ -23121,7 +23111,7 @@ var decodeCheckpoint = /* @__PURE__ */ __name((text2, plan) => {
|
|
|
23121
23111
|
return value;
|
|
23122
23112
|
}, "decodeCheckpoint");
|
|
23123
23113
|
|
|
23124
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23114
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/project-gathering.js
|
|
23125
23115
|
var terminal = /* @__PURE__ */ new Set(["done", "unavailable", "failed"]);
|
|
23126
23116
|
var PAGE2 = 20;
|
|
23127
23117
|
var PEOPLE = 20;
|
|
@@ -23525,7 +23515,7 @@ var peopleOf = /* @__PURE__ */ __name((items, senderOf) => {
|
|
|
23525
23515
|
return [...byKey.values()].sort((a, b) => b.items - a.items || a.name.localeCompare(b.name));
|
|
23526
23516
|
}, "peopleOf");
|
|
23527
23517
|
|
|
23528
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23518
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/meeting-project-candidate-matching.js
|
|
23529
23519
|
var normalizedText = /* @__PURE__ */ __name((text2) => text2.normalize("NFKC").toLowerCase().replace(/\s+/gu, " "), "normalizedText");
|
|
23530
23520
|
var termsOf = /* @__PURE__ */ __name((entry) => [
|
|
23531
23521
|
{ name: entry.name, kind: "canonical" },
|
|
@@ -23569,7 +23559,7 @@ var matchVocabularyTerms = /* @__PURE__ */ __name((catalog, texts) => {
|
|
|
23569
23559
|
return result.sort((a, b) => Number(a.entry.id) - Number(b.entry.id));
|
|
23570
23560
|
}, "matchVocabularyTerms");
|
|
23571
23561
|
|
|
23572
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23562
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/project-gathering-mentions.js
|
|
23573
23563
|
var KINDS = ["project", "tag", "topic"];
|
|
23574
23564
|
var findEvidenceMentions = /* @__PURE__ */ __name(async (vocabulary, gathering, options2 = {}) => {
|
|
23575
23565
|
if (typeof vocabulary?.vocabulary !== "function")
|
|
@@ -23624,7 +23614,7 @@ var findEvidenceMentions = /* @__PURE__ */ __name(async (vocabulary, gathering,
|
|
|
23624
23614
|
};
|
|
23625
23615
|
}, "findEvidenceMentions");
|
|
23626
23616
|
|
|
23627
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23617
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/project-purposes.js
|
|
23628
23618
|
var BUILT_IN_PURPOSES = ["work", "sales", "support", "other"];
|
|
23629
23619
|
var DEFAULT_PURPOSES = ["work"];
|
|
23630
23620
|
var LINK_PURPOSE = "work";
|
|
@@ -23654,7 +23644,7 @@ var purposeList = /* @__PURE__ */ __name((value, previous = []) => [
|
|
|
23654
23644
|
...value.split(",").map((one) => one.trim()).filter(Boolean)
|
|
23655
23645
|
], "purposeList");
|
|
23656
23646
|
|
|
23657
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23647
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/stored-project-gathering.js
|
|
23658
23648
|
var storedChatCount = /* @__PURE__ */ __name((store) => async (account, chatId, { since, until }) => {
|
|
23659
23649
|
const window3 = { since: new Date(since).toISOString(), until: new Date(until - 1).toISOString() };
|
|
23660
23650
|
const [messages, newest, oldest] = await Promise.all([
|
|
@@ -23965,7 +23955,7 @@ var purposeHintOf = /* @__PURE__ */ __name((linked, rows, of) => {
|
|
|
23965
23955
|
return { chat: top.ref, relationship: link4.relationship, items, of };
|
|
23966
23956
|
}, "purposeHintOf");
|
|
23967
23957
|
|
|
23968
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23958
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/people.js
|
|
23969
23959
|
var peopleService = /* @__PURE__ */ __name((deps) => {
|
|
23970
23960
|
const localCard = /* @__PURE__ */ __name(async (card, includeNotes = false) => {
|
|
23971
23961
|
const held = await storeIfOpen(deps);
|
|
@@ -24230,7 +24220,7 @@ var withoutPhone = /* @__PURE__ */ __name((answer) => {
|
|
|
24230
24220
|
return rest;
|
|
24231
24221
|
}, "withoutPhone");
|
|
24232
24222
|
|
|
24233
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24223
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/task-stats.js
|
|
24234
24224
|
var TASK_STATS_BY = ["chat", "meeting", "project"];
|
|
24235
24225
|
var PERIOD_FIELD = "created";
|
|
24236
24226
|
var refuseNestedPeriod = /* @__PURE__ */ __name((node, top = true) => {
|
|
@@ -24361,7 +24351,7 @@ var meetingNames = /* @__PURE__ */ __name(async (store, groups) => {
|
|
|
24361
24351
|
}));
|
|
24362
24352
|
}, "meetingNames");
|
|
24363
24353
|
|
|
24364
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24354
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/task-tag-filters.js
|
|
24365
24355
|
var taskTagFilters = /* @__PURE__ */ __name(async (store, query) => {
|
|
24366
24356
|
const tags = /* @__PURE__ */ new Map();
|
|
24367
24357
|
for (const node of query ? walkQuery(query.root) : [])
|
|
@@ -24370,7 +24360,7 @@ var taskTagFilters = /* @__PURE__ */ __name(async (store, query) => {
|
|
|
24370
24360
|
return tags;
|
|
24371
24361
|
}, "taskTagFilters");
|
|
24372
24362
|
|
|
24373
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24363
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/tasks.js
|
|
24374
24364
|
var TASK_QUERY = {
|
|
24375
24365
|
entity: "task",
|
|
24376
24366
|
backend: "sql",
|
|
@@ -24870,7 +24860,7 @@ var taskView = /* @__PURE__ */ __name(async (store, account, task2) => {
|
|
|
24870
24860
|
};
|
|
24871
24861
|
}, "taskView");
|
|
24872
24862
|
|
|
24873
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24863
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/mail/owed.js
|
|
24874
24864
|
var mailTurn = /* @__PURE__ */ __name((newest) => {
|
|
24875
24865
|
if (newest === null)
|
|
24876
24866
|
return null;
|
|
@@ -24879,7 +24869,7 @@ var mailTurn = /* @__PURE__ */ __name((newest) => {
|
|
|
24879
24869
|
return newest.addressed ? "owed" : null;
|
|
24880
24870
|
}, "mailTurn");
|
|
24881
24871
|
|
|
24882
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24872
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/agenda-mail.js
|
|
24883
24873
|
var absent = /* @__PURE__ */ __name((error) => {
|
|
24884
24874
|
if (error instanceof CliError && error.code === "not_found")
|
|
24885
24875
|
return void 0;
|
|
@@ -24937,7 +24927,7 @@ var mailActivity = /* @__PURE__ */ __name(async (store, account, since, chats) =
|
|
|
24937
24927
|
};
|
|
24938
24928
|
}, "mailActivity");
|
|
24939
24929
|
|
|
24940
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24930
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/agenda.js
|
|
24941
24931
|
var DAY2 = 864e5;
|
|
24942
24932
|
var AGENDA_DEFAULTS = { unanswered: DAY2, waiting: 7 * DAY2 };
|
|
24943
24933
|
var CLAIMS = ["none", "mine", "others", "any"];
|
|
@@ -25191,18 +25181,18 @@ var agendaItem = /* @__PURE__ */ __name((shown) => {
|
|
|
25191
25181
|
};
|
|
25192
25182
|
}, "agendaItem");
|
|
25193
25183
|
|
|
25194
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25184
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/media-archive.js
|
|
25195
25185
|
import { setTimeout as sleep3 } from "node:timers/promises";
|
|
25196
25186
|
|
|
25197
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25187
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/media-archive-files.js
|
|
25198
25188
|
import { lstat } from "node:fs/promises";
|
|
25199
25189
|
|
|
25200
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25190
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-store.js
|
|
25201
25191
|
import { createHash as createHash4, randomUUID as randomUUID3 } from "node:crypto";
|
|
25202
25192
|
import { open as open3, rename as rename2, unlink as unlink2 } from "node:fs/promises";
|
|
25203
25193
|
import { join as join5 } from "node:path";
|
|
25204
25194
|
|
|
25205
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25195
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-metadata.js
|
|
25206
25196
|
import { createHash as createHash3 } from "node:crypto";
|
|
25207
25197
|
var metadataLimit = 16384;
|
|
25208
25198
|
var partialIdentity = /* @__PURE__ */ __name((locator) => JSON.stringify([locator.provider, locator.account, locator.occurrenceId, locator.assetId]), "partialIdentity");
|
|
@@ -25262,7 +25252,7 @@ var readPartialMetadata = /* @__PURE__ */ __name(async (path, locator, maxBytes,
|
|
|
25262
25252
|
}
|
|
25263
25253
|
}, "readPartialMetadata");
|
|
25264
25254
|
|
|
25265
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25255
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-writer.js
|
|
25266
25256
|
import { randomUUID as randomUUID2 } from "node:crypto";
|
|
25267
25257
|
import { open as open2, rename, unlink } from "node:fs/promises";
|
|
25268
25258
|
import { join as join4 } from "node:path";
|
|
@@ -25354,7 +25344,7 @@ var partialWriter = /* @__PURE__ */ __name(async (input) => {
|
|
|
25354
25344
|
};
|
|
25355
25345
|
}, "partialWriter");
|
|
25356
25346
|
|
|
25357
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25347
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-store.js
|
|
25358
25348
|
var NativeRecordingPartialStore = class {
|
|
25359
25349
|
static {
|
|
25360
25350
|
__name(this, "NativeRecordingPartialStore");
|
|
@@ -25461,12 +25451,12 @@ var NativeRecordingPartialStore = class {
|
|
|
25461
25451
|
}
|
|
25462
25452
|
};
|
|
25463
25453
|
|
|
25464
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25454
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication.js
|
|
25465
25455
|
import { createHash as createHash5 } from "node:crypto";
|
|
25466
25456
|
import { link as link2 } from "node:fs/promises";
|
|
25467
25457
|
import { basename as basename2, dirname as dirname5, join as join7, resolve as resolve2 } from "node:path";
|
|
25468
25458
|
|
|
25469
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25459
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication-files.js
|
|
25470
25460
|
import { unlink as unlink3 } from "node:fs/promises";
|
|
25471
25461
|
var verifiedPublicationFile = /* @__PURE__ */ __name(async (path, expected2, signal, writable = false) => {
|
|
25472
25462
|
signal?.throwIfAborted();
|
|
@@ -25501,7 +25491,7 @@ var commitPublication = /* @__PURE__ */ __name(async (root, partialPath, finalPa
|
|
|
25501
25491
|
signal?.throwIfAborted();
|
|
25502
25492
|
}, "commitPublication");
|
|
25503
25493
|
|
|
25504
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25494
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication-journal.js
|
|
25505
25495
|
import { randomUUID as randomUUID4 } from "node:crypto";
|
|
25506
25496
|
import { open as open4, rename as rename3, unlink as unlink4 } from "node:fs/promises";
|
|
25507
25497
|
import { join as join6 } from "node:path";
|
|
@@ -25574,7 +25564,7 @@ var writePublicationJournal = /* @__PURE__ */ __name(async (root, path, prefix,
|
|
|
25574
25564
|
}
|
|
25575
25565
|
}, "writePublicationJournal");
|
|
25576
25566
|
|
|
25577
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25567
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication.js
|
|
25578
25568
|
var NativeRecordingPublication = class {
|
|
25579
25569
|
static {
|
|
25580
25570
|
__name(this, "NativeRecordingPublication");
|
|
@@ -25647,7 +25637,7 @@ var NativeRecordingPublication = class {
|
|
|
25647
25637
|
}
|
|
25648
25638
|
};
|
|
25649
25639
|
|
|
25650
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25640
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/media-archive-manifest.js
|
|
25651
25641
|
import { createHash as createHash6 } from "node:crypto";
|
|
25652
25642
|
import { readdir } from "node:fs/promises";
|
|
25653
25643
|
import { isAbsolute as isAbsolute2, join as join8, resolve as resolve3 } from "node:path";
|
|
@@ -25734,7 +25724,7 @@ var commitMediaEntry = /* @__PURE__ */ __name((root, one, beforePublish) => writ
|
|
|
25734
25724
|
beforePublish
|
|
25735
25725
|
}), "commitMediaEntry");
|
|
25736
25726
|
|
|
25737
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25727
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/media-archive-files.js
|
|
25738
25728
|
var validator = '"media-completed-v1"';
|
|
25739
25729
|
var maximumFileBytes = 64 * 1024 * 1024 * 1024;
|
|
25740
25730
|
var archiveMediaFile = /* @__PURE__ */ __name(async (root, identity, kind, file, beforeWrite, signal, metadata = {}) => {
|
|
@@ -25835,7 +25825,7 @@ var archiveMediaFile = /* @__PURE__ */ __name(async (root, identity, kind, file,
|
|
|
25835
25825
|
return entry;
|
|
25836
25826
|
}, "archiveMediaFile");
|
|
25837
25827
|
|
|
25838
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25828
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/media-archive-locks.js
|
|
25839
25829
|
import { mkdir, realpath } from "node:fs/promises";
|
|
25840
25830
|
import { join as join9, resolve as resolve4 } from "node:path";
|
|
25841
25831
|
var archiveLocations = /* @__PURE__ */ __name(async (initial, signal) => {
|
|
@@ -25902,7 +25892,7 @@ var withMediaArchiveLocks = /* @__PURE__ */ __name(async (directory2, signal, ru
|
|
|
25902
25892
|
throw new CliError("validation_error", "archive locations changed during locking; run the command again");
|
|
25903
25893
|
}, "withMediaArchiveLocks");
|
|
25904
25894
|
|
|
25905
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25895
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/media-archive.js
|
|
25906
25896
|
var validateMediaSince = /* @__PURE__ */ __name((value, flag = "--since-time") => {
|
|
25907
25897
|
if (value === void 0)
|
|
25908
25898
|
return void 0;
|
|
@@ -26055,7 +26045,7 @@ var archiveMedia = /* @__PURE__ */ __name(async (ports, options2) => {
|
|
|
26055
26045
|
}, { create: true });
|
|
26056
26046
|
}, "archiveMedia");
|
|
26057
26047
|
|
|
26058
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26048
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/media-archive-move.js
|
|
26059
26049
|
import { realpath as realpath2, unlink as unlink5 } from "node:fs/promises";
|
|
26060
26050
|
import { basename as basename3, dirname as dirname6, join as join10, resolve as resolve5 } from "node:path";
|
|
26061
26051
|
var canonicalDestination = /* @__PURE__ */ __name(async (directory2) => {
|
|
@@ -26208,7 +26198,7 @@ var moveMediaArchive = /* @__PURE__ */ __name(async (options2) => {
|
|
|
26208
26198
|
}, { additional: [target2], createAdditional: !options2.dryRun });
|
|
26209
26199
|
}, "moveMediaArchive");
|
|
26210
26200
|
|
|
26211
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26201
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/model-downloads.js
|
|
26212
26202
|
import { writeFileSync as writeFileSync2 } from "node:fs";
|
|
26213
26203
|
import { join as join11 } from "node:path";
|
|
26214
26204
|
var bytesOf = /* @__PURE__ */ __name((model) => model.files.reduce((sum2, file) => sum2 + file.bytes, 0), "bytesOf");
|
|
@@ -26233,7 +26223,7 @@ var downloadTextModel = /* @__PURE__ */ __name(async (id2, { env, progress = /*
|
|
|
26233
26223
|
`);
|
|
26234
26224
|
await nativeRuntime({ env, progress });
|
|
26235
26225
|
progress(`${model.id}: loading it once to check it works`);
|
|
26236
|
-
const { openEmbedder: openEmbedder2 } = await import("./embed-
|
|
26226
|
+
const { openEmbedder: openEmbedder2 } = await import("./embed-4NC4ELYP.js");
|
|
26237
26227
|
const embedder = await openEmbedder2(model, directory2);
|
|
26238
26228
|
try {
|
|
26239
26229
|
const [vector] = await embedder.embed(["check"], "query");
|
|
@@ -26254,7 +26244,7 @@ var downloadRerankModel = /* @__PURE__ */ __name(async (id2, { env, progress = /
|
|
|
26254
26244
|
}
|
|
26255
26245
|
await nativeRuntime({ env, progress });
|
|
26256
26246
|
progress(`${model.id}: loading it once to check it works`);
|
|
26257
|
-
const { openReranker } = await import("./rerank-
|
|
26247
|
+
const { openReranker } = await import("./rerank-EDY7PHMG.js");
|
|
26258
26248
|
const reranker = await openReranker(model, directory2);
|
|
26259
26249
|
try {
|
|
26260
26250
|
await reranker.score("check", ["check"]);
|
|
@@ -26272,7 +26262,7 @@ var downloadImageModel = /* @__PURE__ */ __name(async (id2, { env, progress = /*
|
|
|
26272
26262
|
await installFiles(placedImage(model, directory2), { progress, ...bytes2 ? { bytes: bytes2 } : {} });
|
|
26273
26263
|
}
|
|
26274
26264
|
progress(`${model.id}: loading it once to check it works`);
|
|
26275
|
-
const { openPictureEmbedder } = await import("./embedder-
|
|
26265
|
+
const { openPictureEmbedder } = await import("./embedder-HBRDIFQC.js");
|
|
26276
26266
|
const embedder = await openPictureEmbedder(model, directory2);
|
|
26277
26267
|
try {
|
|
26278
26268
|
const vector = await embedder.embedQuery("check");
|
|
@@ -26284,7 +26274,7 @@ var downloadImageModel = /* @__PURE__ */ __name(async (id2, { env, progress = /*
|
|
|
26284
26274
|
return { model, directory: directory2 };
|
|
26285
26275
|
}, "downloadImageModel");
|
|
26286
26276
|
|
|
26287
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26277
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/domain/money-words.js
|
|
26288
26278
|
var MONEY_REQUEST = "money-request";
|
|
26289
26279
|
var MONEY_DONE = "money-done";
|
|
26290
26280
|
var PROMISE = "promise";
|
|
@@ -26318,10 +26308,10 @@ var MONEY_WORDS = [
|
|
|
26318
26308
|
}
|
|
26319
26309
|
];
|
|
26320
26310
|
|
|
26321
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26311
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/money-words.js
|
|
26322
26312
|
var moneyClassesOf = /* @__PURE__ */ __name((text2) => listsHit(text2, MONEY_WORDS), "moneyClassesOf");
|
|
26323
26313
|
|
|
26324
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26314
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/domain/status-words.js
|
|
26325
26315
|
var words = /* @__PURE__ */ __name((forms) => new RegExp(`(?<![\\p{L}\\p{N}])(?:${forms.join("|")})(?![\\p{L}\\p{N}])`, "iu"), "words");
|
|
26326
26316
|
var MONEY_DONE_FORMS = words([
|
|
26327
26317
|
"\u043E\u043F\u043B\u0430\u0442\u0438\u043B[\u0430\u0438]?",
|
|
@@ -26361,7 +26351,7 @@ var PROMISE_FORMS = words([
|
|
|
26361
26351
|
"estar\xE1 listo"
|
|
26362
26352
|
]);
|
|
26363
26353
|
|
|
26364
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26354
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/project-status/items.js
|
|
26365
26355
|
var EXCERPT_CHARS = 80;
|
|
26366
26356
|
var excerpt2 = /* @__PURE__ */ __name((text2) => {
|
|
26367
26357
|
const flat = text2.replace(/\s+/g, " ").trim();
|
|
@@ -26383,7 +26373,7 @@ var whoOf = /* @__PURE__ */ __name((message) => ({
|
|
|
26383
26373
|
var fromOwner = /* @__PURE__ */ __name((message) => message.outgoing === true, "fromOwner");
|
|
26384
26374
|
var day = /* @__PURE__ */ __name((at) => new Date(at).toISOString().slice(0, 10), "day");
|
|
26385
26375
|
|
|
26386
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26376
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/project-status/signals/amounts.js
|
|
26387
26377
|
var MONEY = DEFAULT_TASK_CATEGORIES.filter((category) => category.name === "money");
|
|
26388
26378
|
var verbOf = /* @__PURE__ */ __name((text2) => {
|
|
26389
26379
|
if (MONEY_DONE_FORMS.test(text2))
|
|
@@ -26464,7 +26454,7 @@ var amounts = {
|
|
|
26464
26454
|
attention: /* @__PURE__ */ __name((items) => items.flatMap((item2) => item2.chat !== null && item2.data.state === "asked" ? [{ chat: item2.chat, weight: 2, why: "money asked" }] : []), "attention")
|
|
26465
26455
|
};
|
|
26466
26456
|
|
|
26467
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26457
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/project-status/signals/children.js
|
|
26468
26458
|
var children = {
|
|
26469
26459
|
id: "children",
|
|
26470
26460
|
version: 1,
|
|
@@ -26493,7 +26483,7 @@ var children = {
|
|
|
26493
26483
|
}, "read")
|
|
26494
26484
|
};
|
|
26495
26485
|
|
|
26496
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26486
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/project-status/signals/coverage.js
|
|
26497
26487
|
var coverage = {
|
|
26498
26488
|
id: "coverage",
|
|
26499
26489
|
version: 1,
|
|
@@ -26522,7 +26512,7 @@ var coverage = {
|
|
|
26522
26512
|
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")
|
|
26523
26513
|
};
|
|
26524
26514
|
|
|
26525
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26515
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/project-status/signals/payments.js
|
|
26526
26516
|
var holding2 = /* @__PURE__ */ __name((row) => row.review !== "rejected", "holding");
|
|
26527
26517
|
var item = /* @__PURE__ */ __name((row, at, data) => ({
|
|
26528
26518
|
signal: "payments",
|
|
@@ -26572,7 +26562,7 @@ var payments = {
|
|
|
26572
26562
|
}, "read")
|
|
26573
26563
|
};
|
|
26574
26564
|
|
|
26575
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26565
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/project-status/signals/promises.js
|
|
26576
26566
|
var PATTERNS_PER_CHAT = 3;
|
|
26577
26567
|
var DAY3 = 864e5;
|
|
26578
26568
|
var KINDS2 = /* @__PURE__ */ new Set(["promise", "request"]);
|
|
@@ -26661,7 +26651,7 @@ var promises = {
|
|
|
26661
26651
|
}, "read")
|
|
26662
26652
|
};
|
|
26663
26653
|
|
|
26664
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26654
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/project-status/signals/questions.js
|
|
26665
26655
|
var PER_SIDE = 5;
|
|
26666
26656
|
var WEEK = 7 * 864e5;
|
|
26667
26657
|
var NOBODY = /* @__PURE__ */ new Set();
|
|
@@ -26692,7 +26682,7 @@ var questions2 = {
|
|
|
26692
26682
|
}, "attention")
|
|
26693
26683
|
};
|
|
26694
26684
|
|
|
26695
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26685
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/project-status/signals/reply-next.js
|
|
26696
26686
|
var targetOf = /* @__PURE__ */ __name((message, chat, owners) => {
|
|
26697
26687
|
const byId2 = /* @__PURE__ */ __name((id2) => chat.messages.find((one) => one.id === id2), "byId");
|
|
26698
26688
|
const quoted = message.replyTo ?? (message.replyToId === void 0 ? void 0 : byId2(message.replyToId));
|
|
@@ -26760,7 +26750,7 @@ var replyNext = {
|
|
|
26760
26750
|
attention: /* @__PURE__ */ __name((items) => items.flatMap((item2) => item2.chat !== null && item2.data.next === "owner" ? [{ chat: item2.chat, weight: 2, why: "your move" }] : []), "attention")
|
|
26761
26751
|
};
|
|
26762
26752
|
|
|
26763
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26753
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/project-status/signals/topics.js
|
|
26764
26754
|
var escaped = /* @__PURE__ */ __name((text2) => text2.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), "escaped");
|
|
26765
26755
|
var wholeWord = /* @__PURE__ */ __name((word) => new RegExp(`(?<![\\p{L}\\p{N}])${escaped(word)}(?![\\p{L}\\p{N}])`, "u"), "wholeWord");
|
|
26766
26756
|
var matcherOf = /* @__PURE__ */ __name((query) => {
|
|
@@ -26806,7 +26796,7 @@ var topics = {
|
|
|
26806
26796
|
}, "read")
|
|
26807
26797
|
};
|
|
26808
26798
|
|
|
26809
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26799
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/project-status/signals/index.js
|
|
26810
26800
|
var STATUS_SIGNALS = [
|
|
26811
26801
|
replyNext,
|
|
26812
26802
|
questions2,
|
|
@@ -26818,7 +26808,7 @@ var STATUS_SIGNALS = [
|
|
|
26818
26808
|
children
|
|
26819
26809
|
];
|
|
26820
26810
|
|
|
26821
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26811
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/project-status/index.js
|
|
26822
26812
|
var DAY4 = 864e5;
|
|
26823
26813
|
var STATUS_WINDOW = 300;
|
|
26824
26814
|
var STATUS_CHATS = 16;
|
|
@@ -27007,7 +26997,7 @@ var projectStatus = /* @__PURE__ */ __name(async (store, input) => {
|
|
|
27007
26997
|
};
|
|
27008
26998
|
}, "projectStatus");
|
|
27009
26999
|
|
|
27010
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27000
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/account.js
|
|
27011
27001
|
var accountService = /* @__PURE__ */ __name((deps) => {
|
|
27012
27002
|
const online = /* @__PURE__ */ __name(async (command) => {
|
|
27013
27003
|
if (deps.offline)
|
|
@@ -27079,7 +27069,7 @@ var accountService = /* @__PURE__ */ __name((deps) => {
|
|
|
27079
27069
|
};
|
|
27080
27070
|
}, "accountService");
|
|
27081
27071
|
|
|
27082
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27072
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/domain/send-time.js
|
|
27083
27073
|
var MINUTE = 6e4;
|
|
27084
27074
|
var YEAR = 365 * 24 * 60 * MINUTE;
|
|
27085
27075
|
var DELAY = /^(\d+)(m|h|d)$/;
|
|
@@ -27098,7 +27088,7 @@ var sendTime = /* @__PURE__ */ __name((value, now = Date.now(), flag = "--at-tim
|
|
|
27098
27088
|
return new Date(at - at % MINUTE).toISOString();
|
|
27099
27089
|
}, "sendTime");
|
|
27100
27090
|
|
|
27101
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27091
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/admin.js
|
|
27102
27092
|
var recordMembership = /* @__PURE__ */ __name(async (deps, operationId, done2, change, fix, write) => {
|
|
27103
27093
|
try {
|
|
27104
27094
|
const held = await accountStoreIfOpen(deps);
|
|
@@ -27345,7 +27335,7 @@ var linkLimits = /* @__PURE__ */ __name(({ approval, expires, maxUses }) => {
|
|
|
27345
27335
|
return expires === void 0 ? void 0 : sendTime(expires, Date.now(), "--expire-time");
|
|
27346
27336
|
}, "linkLimits");
|
|
27347
27337
|
|
|
27348
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27338
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/mail-search.js
|
|
27349
27339
|
var THREADS_PAGE = 500;
|
|
27350
27340
|
var threadsOf = /* @__PURE__ */ __name(async (store, key) => {
|
|
27351
27341
|
const account = await store.accounts.storedAccount(key).catch(() => void 0);
|
|
@@ -27424,7 +27414,7 @@ var readMail = /* @__PURE__ */ __name(async (store, locator, { before: before2 =
|
|
|
27424
27414
|
return thread.slice(Math.max(0, at - before2), at + after + 1).map((hit) => hit.id === message ? { ...hit, anchor: true } : hit);
|
|
27425
27415
|
}, "readMail");
|
|
27426
27416
|
|
|
27427
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27417
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/messages-search.js
|
|
27428
27418
|
var PERSON_FIELDS = /* @__PURE__ */ new Set(["from", "to", "cc", "bcc"]);
|
|
27429
27419
|
var MAIL_FIELDS = /* @__PURE__ */ new Set(["to", "cc", "bcc", "subject", "mailbox", "label", "is", "list"]);
|
|
27430
27420
|
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");
|
|
@@ -27791,7 +27781,7 @@ var statsLucene = /* @__PURE__ */ __name(async (store, account, request, messeng
|
|
|
27791
27781
|
};
|
|
27792
27782
|
}, "statsLucene");
|
|
27793
27783
|
|
|
27794
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27784
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/rankings-selection.js
|
|
27795
27785
|
var RANKING_SELECTION_BYTES = 64 * 1024;
|
|
27796
27786
|
var object2 = /* @__PURE__ */ __name((value) => value !== null && typeof value === "object" && !Array.isArray(value) ? value : void 0, "object");
|
|
27797
27787
|
function invalid(message = "ranking selection is invalid \u2014 obtain a new drilldown from stats top") {
|
|
@@ -27960,7 +27950,7 @@ var readRankingSelection = /* @__PURE__ */ __name(async (store, input) => {
|
|
|
27960
27950
|
};
|
|
27961
27951
|
}, "readRankingSelection");
|
|
27962
27952
|
|
|
27963
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27953
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/search-record.js
|
|
27964
27954
|
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");
|
|
27965
27955
|
var searchRecordOf = /* @__PURE__ */ __name((command, params) => ({
|
|
27966
27956
|
command,
|
|
@@ -27970,7 +27960,7 @@ var searchRecordOf = /* @__PURE__ */ __name((command, params) => ({
|
|
|
27970
27960
|
fieldsVersion: FIELD_VERSION
|
|
27971
27961
|
}), "searchRecordOf");
|
|
27972
27962
|
|
|
27973
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27963
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/admin-statistics.js
|
|
27974
27964
|
function invalid2(message) {
|
|
27975
27965
|
throw new CliError("validation_error", message);
|
|
27976
27966
|
}
|
|
@@ -28264,7 +28254,7 @@ var adminStatisticsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
28264
28254
|
}, "evidence")
|
|
28265
28255
|
}), "adminStatisticsService");
|
|
28266
28256
|
|
|
28267
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28257
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/archive-gaps.js
|
|
28268
28258
|
import { createHash as createHash7, randomUUID as randomUUID5 } from "node:crypto";
|
|
28269
28259
|
var GAP_BOUNDS = { maxGaps: 5, limit: 500, timeMs: 3e4 };
|
|
28270
28260
|
var validateRepair = /* @__PURE__ */ __name((messenger, options2) => {
|
|
@@ -28401,12 +28391,12 @@ var gapsService = /* @__PURE__ */ __name((deps) => {
|
|
|
28401
28391
|
return { plan, repair };
|
|
28402
28392
|
}, "gapsService");
|
|
28403
28393
|
|
|
28404
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28394
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/attachments.js
|
|
28405
28395
|
import { createHash as createHash10 } from "node:crypto";
|
|
28406
28396
|
import { constants as constants2, mkdirSync as mkdirSync5 } from "node:fs";
|
|
28407
28397
|
import { lstat as lstat5, open as open6, readFile as readFile2, stat as stat2 } from "node:fs/promises";
|
|
28408
28398
|
|
|
28409
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28399
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/attachments/directory.js
|
|
28410
28400
|
import { lstat as lstat2, readdir as readdir2, realpath as realpath3 } from "node:fs/promises";
|
|
28411
28401
|
import { basename as basename4, join as join12, relative as relative2, sep as sep2 } from "node:path";
|
|
28412
28402
|
var MAX_FILES = 1e4;
|
|
@@ -28477,15 +28467,15 @@ var directoryPaths = /* @__PURE__ */ __name(async (store, chat, directory2, app,
|
|
|
28477
28467
|
return choices;
|
|
28478
28468
|
}, "directoryPaths");
|
|
28479
28469
|
|
|
28480
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28470
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/attachments/documents.js
|
|
28481
28471
|
import { posix } from "node:path";
|
|
28482
28472
|
|
|
28483
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28473
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/attachments/container.js
|
|
28484
28474
|
import { setImmediate as tick } from "node:timers/promises";
|
|
28485
28475
|
import { crc32 } from "node:zlib";
|
|
28486
28476
|
var import_xmldom = __toESM(require_lib(), 1);
|
|
28487
28477
|
|
|
28488
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28478
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/attachments/encoding.js
|
|
28489
28479
|
var import_chardet = __toESM(require_lib2(), 1);
|
|
28490
28480
|
var import_iconv_lite = __toESM(require_lib3(), 1);
|
|
28491
28481
|
var SAMPLE = 65536;
|
|
@@ -28587,7 +28577,7 @@ var decodeXml = /* @__PURE__ */ __name((bytes2) => {
|
|
|
28587
28577
|
return result.text;
|
|
28588
28578
|
}, "decodeXml");
|
|
28589
28579
|
|
|
28590
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28580
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/attachments/container.js
|
|
28591
28581
|
var MAX_PART = 10 * 1024 * 1024;
|
|
28592
28582
|
var MAX_ENTRIES = 1e3;
|
|
28593
28583
|
var decoder = new TextDecoder("utf-8", { fatal: true });
|
|
@@ -28802,7 +28792,7 @@ var elements = /* @__PURE__ */ __name((node, name, namespace) => {
|
|
|
28802
28792
|
return found;
|
|
28803
28793
|
}, "elements");
|
|
28804
28794
|
|
|
28805
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28795
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/attachments/sheets.js
|
|
28806
28796
|
var columnName = /* @__PURE__ */ __name((column) => {
|
|
28807
28797
|
let name = "";
|
|
28808
28798
|
for (let rest = column; rest > 0; rest = Math.floor((rest - 1) / 26))
|
|
@@ -28857,7 +28847,7 @@ var sheetText = /* @__PURE__ */ __name((sheets2, maxChars = MAX_TEXT_CHARS) => {
|
|
|
28857
28847
|
return { text: parts.join("").trim(), truncated: false };
|
|
28858
28848
|
}, "sheetText");
|
|
28859
28849
|
|
|
28860
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28850
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/attachments/documents.js
|
|
28861
28851
|
var OFFICE = "urn:oasis:names:tc:opendocument:xmlns:office:1.0";
|
|
28862
28852
|
var TEXT = "urn:oasis:names:tc:opendocument:xmlns:text:1.0";
|
|
28863
28853
|
var TABLE = "urn:oasis:names:tc:opendocument:xmlns:table:1.0";
|
|
@@ -29257,10 +29247,10 @@ var readDocument = /* @__PURE__ */ __name(async (bytes2, kind, signal) => {
|
|
|
29257
29247
|
}
|
|
29258
29248
|
}, "readDocument");
|
|
29259
29249
|
|
|
29260
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29250
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/attachments/extract.js
|
|
29261
29251
|
import { extname as extname3 } from "node:path";
|
|
29262
29252
|
|
|
29263
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29253
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/readers/engine.js
|
|
29264
29254
|
import { readFileSync as readFileSync4 } from "node:fs";
|
|
29265
29255
|
import { dirname as dirname7, extname as extname2, join as join13 } from "node:path";
|
|
29266
29256
|
import { fileURLToPath } from "node:url";
|
|
@@ -29321,7 +29311,7 @@ var derived = /* @__PURE__ */ __name((bytes2, extractor, read) => {
|
|
|
29321
29311
|
}
|
|
29322
29312
|
}, "derived");
|
|
29323
29313
|
|
|
29324
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29314
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/readers/image/index.js
|
|
29325
29315
|
var IMAGES = /* @__PURE__ */ new Set([".jpg", ".jpeg", ".png", ".webp", ".gif", ".heic", ".tif", ".tiff", ".bmp"]);
|
|
29326
29316
|
var image2 = {
|
|
29327
29317
|
id: "image",
|
|
@@ -29330,7 +29320,7 @@ var image2 = {
|
|
|
29330
29320
|
read: /* @__PURE__ */ __name(async () => ({ status: "needs-agent" }), "read")
|
|
29331
29321
|
};
|
|
29332
29322
|
|
|
29333
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29323
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/readers/doc/index.js
|
|
29334
29324
|
var OLE = "\xD0\xCF\xE0\xA1\xB1\xE1";
|
|
29335
29325
|
var doc = {
|
|
29336
29326
|
id: "doc",
|
|
@@ -29342,7 +29332,7 @@ var doc = {
|
|
|
29342
29332
|
}), "read")
|
|
29343
29333
|
};
|
|
29344
29334
|
|
|
29345
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29335
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/readers/docx/index.js
|
|
29346
29336
|
var DOCX = "application/vnd.openxmlformats-officedocument.wordprocessingml.document";
|
|
29347
29337
|
var docx = {
|
|
29348
29338
|
id: "docx",
|
|
@@ -29355,10 +29345,10 @@ var docx = {
|
|
|
29355
29345
|
}), "read")
|
|
29356
29346
|
};
|
|
29357
29347
|
|
|
29358
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29348
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/attachments/markup.js
|
|
29359
29349
|
var import_iconv_lite2 = __toESM(require_lib3(), 1);
|
|
29360
29350
|
|
|
29361
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29351
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/domain/html-entities.js
|
|
29362
29352
|
var NAMED = {
|
|
29363
29353
|
amp: "&",
|
|
29364
29354
|
lt: "<",
|
|
@@ -29410,7 +29400,7 @@ var decodeEntities = /* @__PURE__ */ __name((text2) => text2.replace(/&(#x[0-9a-
|
|
|
29410
29400
|
return body[1] === "x" || body[1] === "X" ? character(Number.parseInt(body.slice(2), 16), entity) : character(Number(body.slice(1)), entity);
|
|
29411
29401
|
}), "decodeEntities");
|
|
29412
29402
|
|
|
29413
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29403
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/attachments/markup.js
|
|
29414
29404
|
var RTF_SKIPPED = /* @__PURE__ */ new Set([
|
|
29415
29405
|
"fonttbl",
|
|
29416
29406
|
"colortbl",
|
|
@@ -29576,7 +29566,7 @@ var htmlText = /* @__PURE__ */ __name((source) => {
|
|
|
29576
29566
|
return decodeEntities(replaceTags(blocks, /<[^>]*>/g, "")).replace(/(?<![ \t\u00a0])[ \t\u00a0]+\n/g, "\n").replace(/\n{3,}/g, "\n\n").trim();
|
|
29577
29567
|
}, "htmlText");
|
|
29578
29568
|
|
|
29579
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29569
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/readers/html/page.js
|
|
29580
29570
|
var clean = /* @__PURE__ */ __name((value) => typeof value === "string" ? value.replace(/\s+/g, " ").trim() : "", "clean");
|
|
29581
29571
|
var namesIn = /* @__PURE__ */ __name((value) => [value].flat().map((entry) => typeof entry === "string" ? clean(entry) : clean(entry?.name)).filter(Boolean).join(", "), "namesIn");
|
|
29582
29572
|
var jsonLdNodes = /* @__PURE__ */ __name((document) => {
|
|
@@ -29632,7 +29622,7 @@ var markdownSections = /* @__PURE__ */ __name((text2) => {
|
|
|
29632
29622
|
return found.map((section, index) => ({ ...section, end: found[index + 1]?.start ?? text2.length }));
|
|
29633
29623
|
}, "markdownSections");
|
|
29634
29624
|
|
|
29635
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29625
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/readers/html/index.js
|
|
29636
29626
|
var HTML = /* @__PURE__ */ new Set([".html", ".htm", ".xhtml"]);
|
|
29637
29627
|
var first = /* @__PURE__ */ __name((...values) => values.find((value) => typeof value === "string" && value !== ""), "first");
|
|
29638
29628
|
var loaded = /* @__PURE__ */ __name(async (load, name) => {
|
|
@@ -29703,7 +29693,7 @@ var html = {
|
|
|
29703
29693
|
}, "read")
|
|
29704
29694
|
};
|
|
29705
29695
|
|
|
29706
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29696
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/readers/office/index.js
|
|
29707
29697
|
var office = {
|
|
29708
29698
|
id: "office",
|
|
29709
29699
|
version: documentExtractor("odt"),
|
|
@@ -29714,7 +29704,7 @@ var office = {
|
|
|
29714
29704
|
}, "read")
|
|
29715
29705
|
};
|
|
29716
29706
|
|
|
29717
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29707
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/readers/pdf/index.js
|
|
29718
29708
|
var pdf = {
|
|
29719
29709
|
id: "pdf",
|
|
29720
29710
|
version: "unpdf",
|
|
@@ -29781,7 +29771,7 @@ var pdf = {
|
|
|
29781
29771
|
}), "read")
|
|
29782
29772
|
};
|
|
29783
29773
|
|
|
29784
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29774
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/readers/plain/index.js
|
|
29785
29775
|
var PLAIN = /* @__PURE__ */ new Set([".txt", ".md", ".markdown", ".csv", ".tsv", ".json", ".log"]);
|
|
29786
29776
|
var isPlain = /* @__PURE__ */ __name((hint) => PLAIN.has(extensionOf(hint)) || hint.mime?.startsWith("text/") || hint.mime === "application/json", "isPlain");
|
|
29787
29777
|
var readPlain = /* @__PURE__ */ __name((bytes2) => {
|
|
@@ -29801,7 +29791,7 @@ var plain = {
|
|
|
29801
29791
|
read: /* @__PURE__ */ __name(async (bytes2) => readPlain(bytes2), "read")
|
|
29802
29792
|
};
|
|
29803
29793
|
|
|
29804
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29794
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/readers/rtf/index.js
|
|
29805
29795
|
var rtf = {
|
|
29806
29796
|
id: "rtf",
|
|
29807
29797
|
version: "v1",
|
|
@@ -29809,10 +29799,10 @@ var rtf = {
|
|
|
29809
29799
|
read: /* @__PURE__ */ __name(async (bytes2) => derived(bytes2, "rtf:v1", rtfText), "read")
|
|
29810
29800
|
};
|
|
29811
29801
|
|
|
29812
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29802
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/readers/sheets/index.js
|
|
29813
29803
|
import { basename as basename5 } from "node:path";
|
|
29814
29804
|
|
|
29815
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29805
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/attachments/csv-spans.js
|
|
29816
29806
|
var delimitedSpans = /* @__PURE__ */ __name((text2, delimiter, maxCells = 1e4) => {
|
|
29817
29807
|
const cells = [];
|
|
29818
29808
|
let row = 1, column = 1, start = 0, quoted = false, truncated = false;
|
|
@@ -29850,7 +29840,7 @@ var delimitedSpans = /* @__PURE__ */ __name((text2, delimiter, maxCells = 1e4) =
|
|
|
29850
29840
|
return { cells, truncated };
|
|
29851
29841
|
}, "delimitedSpans");
|
|
29852
29842
|
|
|
29853
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29843
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/readers/sheets/index.js
|
|
29854
29844
|
var DELIMITED = {
|
|
29855
29845
|
".csv": ",",
|
|
29856
29846
|
".tsv": " ",
|
|
@@ -29889,7 +29879,7 @@ var sheets = {
|
|
|
29889
29879
|
}, "read")
|
|
29890
29880
|
};
|
|
29891
29881
|
|
|
29892
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29882
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/readers/registry.js
|
|
29893
29883
|
var BUILT_INS2 = [office, pdf, docx, doc, rtf, html, sheets, plain, image2];
|
|
29894
29884
|
var HEAD_BYTES = 1024;
|
|
29895
29885
|
var readers = [...BUILT_INS2];
|
|
@@ -29899,7 +29889,7 @@ var readWithRegistry = /* @__PURE__ */ __name(async (bytes2, hint, context2) =>
|
|
|
29899
29889
|
return reader ? reader.read(bytes2, hint, context2) : { status: "unsupported" };
|
|
29900
29890
|
}, "readWithRegistry");
|
|
29901
29891
|
|
|
29902
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29892
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/attachments/extract.js
|
|
29903
29893
|
var importEngine = /* @__PURE__ */ __name((name) => importFrom(new URL("attachments/extract.js", import.meta.resolve("@wirecat/cli-core")).href, name), "importEngine");
|
|
29904
29894
|
var extensionOf2 = /* @__PURE__ */ __name(({ name, path }) => extname3(name ?? path).toLowerCase(), "extensionOf");
|
|
29905
29895
|
var extractText = /* @__PURE__ */ __name(async (bytes2, hint, load, signal, env = process.env) => {
|
|
@@ -30978,7 +30968,7 @@ function imageSize(input) {
|
|
|
30978
30968
|
}
|
|
30979
30969
|
__name(imageSize, "imageSize");
|
|
30980
30970
|
|
|
30981
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30971
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/attachments/ocr.js
|
|
30982
30972
|
var MAX_PAGES = 20;
|
|
30983
30973
|
var MAX_PIXELS = 2e7;
|
|
30984
30974
|
var cancelled2 = /* @__PURE__ */ __name((signal) => {
|
|
@@ -31138,7 +31128,7 @@ var ocrPdf = /* @__PURE__ */ __name(async (bytes2, pipeline2, load, signal) => {
|
|
|
31138
31128
|
}
|
|
31139
31129
|
}, "ocrPdf");
|
|
31140
31130
|
|
|
31141
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31131
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/attachments/pdf-preview.js
|
|
31142
31132
|
var pdfPreview = /* @__PURE__ */ __name(async (bytes2, page, signal, load = importEngine, env = process.env) => {
|
|
31143
31133
|
const limits = pdfPreviewLimits(env);
|
|
31144
31134
|
const cancelled3 = /* @__PURE__ */ __name(() => {
|
|
@@ -31215,7 +31205,7 @@ var pdfPreview = /* @__PURE__ */ __name(async (bytes2, page, signal, load = impo
|
|
|
31215
31205
|
}
|
|
31216
31206
|
}, "pdfPreview");
|
|
31217
31207
|
|
|
31218
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31208
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/attachments/picture-reading.js
|
|
31219
31209
|
import { spawn } from "node:child_process";
|
|
31220
31210
|
import { mkdtempSync, readFileSync as readFileSync5, rmSync as rmSync2, writeFileSync as writeFileSync3 } from "node:fs";
|
|
31221
31211
|
import { tmpdir } from "node:os";
|
|
@@ -31378,7 +31368,7 @@ Read the attached picture.`,
|
|
|
31378
31368
|
}
|
|
31379
31369
|
}, "readPictureWithAgent");
|
|
31380
31370
|
|
|
31381
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31371
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/attachments/transfer.js
|
|
31382
31372
|
import { createHash as createHash8 } from "node:crypto";
|
|
31383
31373
|
import { constants } from "node:fs";
|
|
31384
31374
|
import { lstat as lstat3, open as open5 } from "node:fs/promises";
|
|
@@ -31486,7 +31476,7 @@ var transferMime = /* @__PURE__ */ __name((head, hint, name = null) => {
|
|
|
31486
31476
|
return hint !== null && /^[a-z0-9.+-]+\/[a-z0-9.+-]+$/i.test(hint) ? hint : "application/octet-stream";
|
|
31487
31477
|
}, "transferMime");
|
|
31488
31478
|
|
|
31489
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31479
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/file-download.js
|
|
31490
31480
|
import { createWriteStream, mkdirSync as mkdirSync4 } from "node:fs";
|
|
31491
31481
|
import { link as link3, rm } from "node:fs/promises";
|
|
31492
31482
|
import { join as join15, resolve as resolve6 } from "node:path";
|
|
@@ -31600,12 +31590,12 @@ var save = /* @__PURE__ */ __name(async (file, directory2, fallbackName, { uniqu
|
|
|
31600
31590
|
}
|
|
31601
31591
|
}, "save");
|
|
31602
31592
|
|
|
31603
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31593
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/pictures.js
|
|
31604
31594
|
import { createHash as createHash9 } from "node:crypto";
|
|
31605
31595
|
import { lstat as lstat4, readFile } from "node:fs/promises";
|
|
31606
31596
|
import { setTimeout as sleep4 } from "node:timers/promises";
|
|
31607
31597
|
|
|
31608
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31598
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/domain/models.js
|
|
31609
31599
|
var GROUP_SETTINGS = [
|
|
31610
31600
|
"allCanPin",
|
|
31611
31601
|
"onlyAdminsAdd",
|
|
@@ -31619,7 +31609,7 @@ var ADMIN_RIGHTS = ["read", "members", "admins", "info", "pin", "link", "post",
|
|
|
31619
31609
|
var senderIsMe = /* @__PURE__ */ __name((message, account) => message.outgoing === true || message.senderId !== null && String(message.senderId) === account, "senderIsMe");
|
|
31620
31610
|
var MEDIA_KINDS = ["photo", "video", "file", "audio", "link"];
|
|
31621
31611
|
|
|
31622
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31612
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/pictures.js
|
|
31623
31613
|
var PICTURE_MAX_BYTES = 25 * 1024 * 1024;
|
|
31624
31614
|
var PICTURE_FLOOR = 0.25;
|
|
31625
31615
|
var PAGE3 = 50;
|
|
@@ -31660,7 +31650,7 @@ var picturesService = /* @__PURE__ */ __name((deps) => {
|
|
|
31660
31650
|
const directory2 = imageModelsDirectory(deps.env);
|
|
31661
31651
|
if (!isImageModelInstalled(model2, directory2))
|
|
31662
31652
|
throw new CliError("not_found", missingModel(model2.id), { reason: "model.not-downloaded", model: model2.id });
|
|
31663
|
-
const { openPictureEmbedder } = await import("./embedder-
|
|
31653
|
+
const { openPictureEmbedder } = await import("./embedder-HBRDIFQC.js");
|
|
31664
31654
|
return openPictureEmbedder(model2, directory2);
|
|
31665
31655
|
}, "open");
|
|
31666
31656
|
const embedder = /* @__PURE__ */ __name(() => {
|
|
@@ -31834,7 +31824,7 @@ var withPictures = /* @__PURE__ */ __name((messages, pictures) => ({
|
|
|
31834
31824
|
}, "search")
|
|
31835
31825
|
}), "withPictures");
|
|
31836
31826
|
|
|
31837
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31827
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/attachments.js
|
|
31838
31828
|
var ATTACHMENT_QUERY = {
|
|
31839
31829
|
entity: "attachment",
|
|
31840
31830
|
backend: "sql",
|
|
@@ -32305,7 +32295,7 @@ var attachmentsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
32305
32295
|
}, "readPicture")
|
|
32306
32296
|
}), "attachmentsService");
|
|
32307
32297
|
|
|
32308
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32298
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/chat-documents.js
|
|
32309
32299
|
var chatDocumentsService = /* @__PURE__ */ __name((deps) => ({
|
|
32310
32300
|
list: /* @__PURE__ */ __name(async (chat, { limit, offset, ref }) => {
|
|
32311
32301
|
const store = await accountStore(deps);
|
|
@@ -32335,7 +32325,7 @@ var chatDocumentsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
32335
32325
|
}, "list")
|
|
32336
32326
|
}), "chatDocumentsService");
|
|
32337
32327
|
|
|
32338
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32328
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/retention.js
|
|
32339
32329
|
var observationDuration = /* @__PURE__ */ __name((text2, flag) => {
|
|
32340
32330
|
const match = /^(\d+(?:\.\d+)?)([smhdw])$/.exec(text2);
|
|
32341
32331
|
const units2 = { s: 1e3, m: 6e4, h: 36e5, d: 864e5, w: 6048e5 };
|
|
@@ -32422,7 +32412,7 @@ var isRetentionSelection = /* @__PURE__ */ __name((selection) => {
|
|
|
32422
32412
|
}
|
|
32423
32413
|
}, "isRetentionSelection");
|
|
32424
32414
|
|
|
32425
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32415
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/counters.js
|
|
32426
32416
|
var counterFields = /* @__PURE__ */ __name((text2 = "views,reactions,comments") => {
|
|
32427
32417
|
const fields = text2.split(",").map((one) => one.trim());
|
|
32428
32418
|
if (!fields.length || fields.some((one) => !COUNTER_FIELDS.includes(one)) || new Set(fields).size !== fields.length)
|
|
@@ -32629,7 +32619,7 @@ var countersService = /* @__PURE__ */ __name((deps) => {
|
|
|
32629
32619
|
};
|
|
32630
32620
|
}, "countersService");
|
|
32631
32621
|
|
|
32632
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32622
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/search-refresh.js
|
|
32633
32623
|
var SYNC_KEY = "messages.sync-first";
|
|
32634
32624
|
var SYNC_BOUNDS = { maxChats: 5, timeMs: 3e4, maxMessages: 500 };
|
|
32635
32625
|
var keyOf3 = /* @__PURE__ */ __name((chat) => JSON.stringify([chat.account.provider, chat.account.account, chat.chatId]), "keyOf");
|
|
@@ -32761,7 +32751,7 @@ var withRefresh = /* @__PURE__ */ __name((found, refreshed) => ({
|
|
|
32761
32751
|
...!refreshed || refreshed.complete ? {} : { coverage: { ...found.coverage, state: "stale" } }
|
|
32762
32752
|
}), "withRefresh");
|
|
32763
32753
|
|
|
32764
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32754
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/embeddings-search.js
|
|
32765
32755
|
var CANDIDATES = 50;
|
|
32766
32756
|
var WORD_HITS = 200;
|
|
32767
32757
|
var RRF_K = 60;
|
|
@@ -33036,13 +33026,13 @@ var meanOf = /* @__PURE__ */ __name((vectors) => {
|
|
|
33036
33026
|
return mean2.map((value) => value / length);
|
|
33037
33027
|
}, "meanOf");
|
|
33038
33028
|
|
|
33039
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33029
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/embeddings.js
|
|
33040
33030
|
var embeddingsService = /* @__PURE__ */ __name((deps) => ({
|
|
33041
33031
|
...embeddingsMaintenance(deps),
|
|
33042
33032
|
...embeddingsSearch(deps)
|
|
33043
33033
|
}), "embeddingsService");
|
|
33044
33034
|
|
|
33045
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33035
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/folders.js
|
|
33046
33036
|
var foldersService = /* @__PURE__ */ __name((deps) => {
|
|
33047
33037
|
const online = /* @__PURE__ */ __name(async (command) => {
|
|
33048
33038
|
if (deps.offline)
|
|
@@ -33183,7 +33173,7 @@ var foldersService = /* @__PURE__ */ __name((deps) => {
|
|
|
33183
33173
|
};
|
|
33184
33174
|
}, "foldersService");
|
|
33185
33175
|
|
|
33186
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33176
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/mentions.js
|
|
33187
33177
|
var REVIEW_COUNT = 500;
|
|
33188
33178
|
var mentionsService = /* @__PURE__ */ __name((deps) => {
|
|
33189
33179
|
const located = /* @__PURE__ */ __name(async () => {
|
|
@@ -33262,7 +33252,7 @@ var mentionsService = /* @__PURE__ */ __name((deps) => {
|
|
|
33262
33252
|
};
|
|
33263
33253
|
}, "mentionsService");
|
|
33264
33254
|
|
|
33265
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33255
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/domain/message-link.js
|
|
33266
33256
|
var fileLinks = /* @__PURE__ */ __name((attachments) => hitFiles(attachments).map(({ position, kind, name }) => ({
|
|
33267
33257
|
position,
|
|
33268
33258
|
kind,
|
|
@@ -33311,7 +33301,7 @@ var validatePermalink = /* @__PURE__ */ __name((link4) => {
|
|
|
33311
33301
|
return { url: link4.url, access: link4.access, reason: link4.reason };
|
|
33312
33302
|
}, "validatePermalink");
|
|
33313
33303
|
|
|
33314
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33304
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/domain/pin-duration.js
|
|
33315
33305
|
var spokenSeconds = /* @__PURE__ */ __name((seconds) => {
|
|
33316
33306
|
if (seconds % 86400 === 0 && seconds > 86400)
|
|
33317
33307
|
return `${seconds / 86400}d`;
|
|
@@ -33343,7 +33333,7 @@ var pinDurationOf = /* @__PURE__ */ __name((value, allowed, flag = "--expire-tim
|
|
|
33343
33333
|
return seconds;
|
|
33344
33334
|
}, "pinDurationOf");
|
|
33345
33335
|
|
|
33346
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33336
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/sends/send-as.js
|
|
33347
33337
|
var sendAsCheck = /* @__PURE__ */ __name((connection, sendAs) => {
|
|
33348
33338
|
if (sendAs === void 0) {
|
|
33349
33339
|
const saved = connection.savedSender?.bind(connection);
|
|
@@ -33368,7 +33358,7 @@ var typedSendAs = /* @__PURE__ */ __name((typed) => {
|
|
|
33368
33358
|
return sendAs;
|
|
33369
33359
|
}, "typedSendAs");
|
|
33370
33360
|
|
|
33371
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33361
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/search/total.js
|
|
33372
33362
|
var TOTAL_CAP = 1e4;
|
|
33373
33363
|
var totalOf = /* @__PURE__ */ __name((count4, shown, hasMore, exact = true) => {
|
|
33374
33364
|
const least = shown + (hasMore ? 1 : 0);
|
|
@@ -33379,7 +33369,7 @@ var totalOf = /* @__PURE__ */ __name((count4, shown, hasMore, exact = true) => {
|
|
|
33379
33369
|
return { value: count4, relation: exact ? "eq" : "gte" };
|
|
33380
33370
|
}, "totalOf");
|
|
33381
33371
|
|
|
33382
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33372
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/search/lucene/meaning-parts.js
|
|
33383
33373
|
var WORD_FIELDS = /* @__PURE__ */ new Set(["text", "exact"]);
|
|
33384
33374
|
var fieldsOfQuery = /* @__PURE__ */ __name((root, everything) => {
|
|
33385
33375
|
let narrows = false;
|
|
@@ -33408,7 +33398,7 @@ var meaningWords = /* @__PURE__ */ __name((root) => {
|
|
|
33408
33398
|
return wanted(root).join(" ").trim();
|
|
33409
33399
|
}, "meaningWords");
|
|
33410
33400
|
|
|
33411
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33401
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/search/question-plan.js
|
|
33412
33402
|
var words2 = /* @__PURE__ */ __name((text2) => normalize(text2).match(/[\p{L}\p{N}]+/gu) ?? [], "words");
|
|
33413
33403
|
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"));
|
|
33414
33404
|
var questionWord = /\b(?:what|which|how|who|where|when|can|could|should)\b|(?:^|\s)(?:сколько|какой|какая|какие|какое|кто|кому|кем|где|когда|как|что|можно|может|могут|ли)(?:\s|$)/iu;
|
|
@@ -33541,7 +33531,7 @@ var questionLookup = /* @__PURE__ */ __name((text2) => {
|
|
|
33541
33531
|
return terms.length ? anyOfTerms(terms, plan.scope) : void 0;
|
|
33542
33532
|
}, "questionLookup");
|
|
33543
33533
|
|
|
33544
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33534
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/messages-combined.js
|
|
33545
33535
|
var COMBINED_DEFAULTS = { candidateDepth: 300, rrfK: 60, rerank: "all", chatCap: 0 };
|
|
33546
33536
|
var tokensOf = /* @__PURE__ */ __name((text2) => normalize(text2).match(/[\p{L}\p{N}\p{Co}\p{M}]+/gu) ?? [], "tokensOf");
|
|
33547
33537
|
var searchCombined = /* @__PURE__ */ __name(async (store, account, request, messenger = {}, options2 = COMBINED_DEFAULTS) => {
|
|
@@ -33735,7 +33725,7 @@ var signals = /* @__PURE__ */ __name((hit, terms, corrections, execution, mode,
|
|
|
33735
33725
|
return mode === "coverage" ? coverage2 * 4 : mode === "proximity" ? proximity : mode === "phrase" ? phrase2 : coverage2 * 4 + proximity + phrase2;
|
|
33736
33726
|
}, "signals");
|
|
33737
33727
|
|
|
33738
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33728
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/messages-discovery.js
|
|
33739
33729
|
var MEANING_DEPTH = 100;
|
|
33740
33730
|
var RRF_K2 = 60;
|
|
33741
33731
|
var RERANK_DEPTH = 50;
|
|
@@ -34061,7 +34051,7 @@ var mixedWithReranker = /* @__PURE__ */ __name((head, scores) => {
|
|
|
34061
34051
|
})).sort((a, b) => b.mixed - a.mixed).map(({ hit }) => hit);
|
|
34062
34052
|
}, "mixedWithReranker");
|
|
34063
34053
|
|
|
34064
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34054
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/thread-context.js
|
|
34065
34055
|
var THREAD_BOUNDS = { maxHops: 8, maxMessages: 50, maxBytes: 65536, withinMs: 864e5 };
|
|
34066
34056
|
var bytes = /* @__PURE__ */ __name((items, links) => Buffer.byteLength(JSON.stringify({ items, links }), "utf8"), "bytes");
|
|
34067
34057
|
var threadBounds = /* @__PURE__ */ __name((options2 = {}) => {
|
|
@@ -34260,7 +34250,7 @@ var readThreadContext = /* @__PURE__ */ __name(async (store, account, chat, mess
|
|
|
34260
34250
|
return result;
|
|
34261
34251
|
}, "readThreadContext");
|
|
34262
34252
|
|
|
34263
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34253
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/messages-archive-search.js
|
|
34264
34254
|
var SEARCH_FILL_MS = 200;
|
|
34265
34255
|
var statsStore = /* @__PURE__ */ __name(async (store, account, request, messenger = {}) => {
|
|
34266
34256
|
const stop = Date.now() + SEARCH_FILL_MS;
|
|
@@ -34329,7 +34319,7 @@ var accountOf2 = /* @__PURE__ */ __name((hit) => {
|
|
|
34329
34319
|
}, "accountOf");
|
|
34330
34320
|
var keyOf4 = /* @__PURE__ */ __name(({ provider, account }) => `${provider}/${account}`, "keyOf");
|
|
34331
34321
|
|
|
34332
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34322
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/meaning-model.js
|
|
34333
34323
|
var meaningModel = /* @__PURE__ */ __name(async (store, env = process.env) => {
|
|
34334
34324
|
const chosen = chosenTextModel(env);
|
|
34335
34325
|
if (chosen.from === "chosen" || chosen.id !== DEFAULT_TEXT_MODEL)
|
|
@@ -34344,7 +34334,7 @@ var meaningModel = /* @__PURE__ */ __name(async (store, env = process.env) => {
|
|
|
34344
34334
|
return (counts.get(before2) ?? 0) > (counts.get(now) ?? 0) ? previous.id : current.id;
|
|
34345
34335
|
}, "meaningModel");
|
|
34346
34336
|
|
|
34347
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34337
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/messages-meaning.js
|
|
34348
34338
|
var meaningText = /* @__PURE__ */ __name((question) => {
|
|
34349
34339
|
try {
|
|
34350
34340
|
const text2 = questionLookup(question) === void 0 ? question : questionText(question);
|
|
@@ -34423,7 +34413,7 @@ var meaningLane = /* @__PURE__ */ __name((deps) => async (question, accounts, sh
|
|
|
34423
34413
|
}
|
|
34424
34414
|
}, "meaningLane");
|
|
34425
34415
|
|
|
34426
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34416
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/messages-rerank.js
|
|
34427
34417
|
var rerankLane = /* @__PURE__ */ __name((deps) => {
|
|
34428
34418
|
const choice = deps.reranker ?? DEFAULT_RERANK_MODEL;
|
|
34429
34419
|
if (choice === "off")
|
|
@@ -34435,9 +34425,9 @@ var rerankLane = /* @__PURE__ */ __name((deps) => {
|
|
|
34435
34425
|
return { skipped: { reason: `${model.id} is not downloaded`, step: "models.download", model: model.id } };
|
|
34436
34426
|
try {
|
|
34437
34427
|
const warm = deps.embedders;
|
|
34438
|
-
const reranker = warm ? await warm.reranker(`rerank:${model.id}`, async () => (await import("./process-
|
|
34428
|
+
const reranker = warm ? await warm.reranker(`rerank:${model.id}`, async () => (await import("./process-6Q23D3TO.js")).openRerankerProcess(model, directory2, {
|
|
34439
34429
|
threads: defaultThreads()
|
|
34440
|
-
})) : await (await import("./rerank-
|
|
34430
|
+
})) : await (await import("./rerank-EDY7PHMG.js")).openReranker(model, directory2);
|
|
34441
34431
|
return {
|
|
34442
34432
|
model: model.id,
|
|
34443
34433
|
score: /* @__PURE__ */ __name((question, passages) => reranker.score(plainWords(question), passages), "score"),
|
|
@@ -34457,7 +34447,7 @@ var rerankLane = /* @__PURE__ */ __name((deps) => {
|
|
|
34457
34447
|
};
|
|
34458
34448
|
}, "rerankLane");
|
|
34459
34449
|
|
|
34460
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34450
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/search/question-period.js
|
|
34461
34451
|
var DAY5 = 864e5;
|
|
34462
34452
|
var SPAN = { start: 0, end: 0 };
|
|
34463
34453
|
var phrase = /* @__PURE__ */ __name((source) => new RegExp(`(?<![\\p{L}\\p{N}])(?:${source})(?![\\p{L}\\p{N}])`, "giu"), "phrase");
|
|
@@ -34582,17 +34572,17 @@ var questionPeriod = /* @__PURE__ */ __name((text2, now, zone) => {
|
|
|
34582
34572
|
};
|
|
34583
34573
|
}, "questionPeriod");
|
|
34584
34574
|
|
|
34585
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34575
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/document-pictures.js
|
|
34586
34576
|
var openPictureEmbedderFor = /* @__PURE__ */ __name(async ({ env, command } = {}) => {
|
|
34587
34577
|
const model = imageModel(DEFAULT_IMAGE_MODEL);
|
|
34588
34578
|
const directory2 = imageModelsDirectory(env);
|
|
34589
34579
|
if (!isImageModelInstalled(model, directory2))
|
|
34590
34580
|
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 });
|
|
34591
|
-
const { openPictureEmbedder } = await import("./embedder-
|
|
34581
|
+
const { openPictureEmbedder } = await import("./embedder-HBRDIFQC.js");
|
|
34592
34582
|
return openPictureEmbedder(model, directory2);
|
|
34593
34583
|
}, "openPictureEmbedderFor");
|
|
34594
34584
|
|
|
34595
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34585
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/document-source.js
|
|
34596
34586
|
var documentSource = /* @__PURE__ */ __name((note, accounts, profiles, file) => {
|
|
34597
34587
|
const metadata = note.frontMatter;
|
|
34598
34588
|
const account = accounts.find(({ id: id2 }) => String(id2) === note.folderId);
|
|
@@ -34614,7 +34604,7 @@ var documentSource = /* @__PURE__ */ __name((note, accounts, profiles, file) =>
|
|
|
34614
34604
|
};
|
|
34615
34605
|
}, "documentSource");
|
|
34616
34606
|
|
|
34617
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34607
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/embeddings/keys.js
|
|
34618
34608
|
var endpointKeyName = /* @__PURE__ */ __name((baseUrl) => {
|
|
34619
34609
|
const host = new URL(baseUrl).host;
|
|
34620
34610
|
return ["openai", "anthropic"].includes(host) ? `endpoint:${host}` : host;
|
|
@@ -34647,7 +34637,7 @@ var embeddingKeys = /* @__PURE__ */ __name((app, env = process.env, keyring) =>
|
|
|
34647
34637
|
};
|
|
34648
34638
|
}, "embeddingKeys");
|
|
34649
34639
|
|
|
34650
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34640
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/models/openai.js
|
|
34651
34641
|
var options = strictObject({
|
|
34652
34642
|
temperature: range(0, 2),
|
|
34653
34643
|
top_p: range(0, 1),
|
|
@@ -34714,7 +34704,7 @@ var openai = {
|
|
|
34714
34704
|
}), "complete")
|
|
34715
34705
|
};
|
|
34716
34706
|
|
|
34717
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34707
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/models/index.js
|
|
34718
34708
|
var modelGateway = /* @__PURE__ */ __name((deps) => ({
|
|
34719
34709
|
complete: /* @__PURE__ */ __name(async (request) => {
|
|
34720
34710
|
if (deps.signal?.aborted)
|
|
@@ -34729,7 +34719,7 @@ var modelGateway = /* @__PURE__ */ __name((deps) => ({
|
|
|
34729
34719
|
if (!adapter && target2.provider === "openai")
|
|
34730
34720
|
adapter = openai;
|
|
34731
34721
|
if (!adapter && target2.provider === "anthropic")
|
|
34732
|
-
adapter = (await import("./anthropic-
|
|
34722
|
+
adapter = (await import("./anthropic-GUXHDK32.js")).anthropic;
|
|
34733
34723
|
if (!adapter)
|
|
34734
34724
|
throw new CliError("validation_error", `no model adapter for ${target2.provider}`);
|
|
34735
34725
|
if (request.images !== void 0 && adapter.images !== true)
|
|
@@ -34789,7 +34779,7 @@ var modelGateway = /* @__PURE__ */ __name((deps) => ({
|
|
|
34789
34779
|
}, "complete")
|
|
34790
34780
|
}), "modelGateway");
|
|
34791
34781
|
|
|
34792
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34782
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/enrichment-setting.js
|
|
34793
34783
|
var SECTION2 = "enrichment";
|
|
34794
34784
|
var ENRICHMENT_PROVIDERS = ["openai", "anthropic"];
|
|
34795
34785
|
var DEFAULT_BASE_URLS = {
|
|
@@ -34864,7 +34854,7 @@ var costOf = /* @__PURE__ */ __name((usage, setting) => {
|
|
|
34864
34854
|
return price ? Math.round((usage.input * price.input + usage.output * price.output) * 1e6) / 1e6 : null;
|
|
34865
34855
|
}, "costOf");
|
|
34866
34856
|
|
|
34867
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34857
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/enrichment.js
|
|
34868
34858
|
var ENRICH_PER_RUN = 600;
|
|
34869
34859
|
var MAX_LINE = 400;
|
|
34870
34860
|
var line2 = pipe(unknown(), transform((value) => typeof value === "string" ? value.replace(/\s+/g, " ").trim().slice(0, MAX_LINE) : ""));
|
|
@@ -34940,7 +34930,7 @@ var enrichmentState = /* @__PURE__ */ __name(async (store, env, estimateFor, key
|
|
|
34940
34930
|
};
|
|
34941
34931
|
}, "enrichmentState");
|
|
34942
34932
|
|
|
34943
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34933
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/notes-title-tier.js
|
|
34944
34934
|
var plainQueryWords = /* @__PURE__ */ __name((query) => {
|
|
34945
34935
|
let root;
|
|
34946
34936
|
try {
|
|
@@ -34967,7 +34957,7 @@ var titleTiers = /* @__PURE__ */ __name((hits, words3) => {
|
|
|
34967
34957
|
return [...hits].sort((a, b) => rank(a) - rank(b));
|
|
34968
34958
|
}, "titleTiers");
|
|
34969
34959
|
|
|
34970
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34960
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/notes-search.js
|
|
34971
34961
|
var storeQuery = /* @__PURE__ */ __name(async (store, text2, { exact, timezone } = {}) => resolvedQuery(store, parsedQuery(text2, exact), timezone), "storeQuery");
|
|
34972
34962
|
var parsedQuery = /* @__PURE__ */ __name((text2, exact) => validateFields(parseLucene(text2, { ...SEARCH_QUERY, defaultField: exact ? "exact" : "text" })).root, "parsedQuery");
|
|
34973
34963
|
var resolvedQuery = /* @__PURE__ */ __name(async (store, root, timezone) => {
|
|
@@ -35396,7 +35386,7 @@ var searchNotesOf = /* @__PURE__ */ __name(async (store, account, text2, { accou
|
|
|
35396
35386
|
};
|
|
35397
35387
|
}, "searchNotesOf");
|
|
35398
35388
|
|
|
35399
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35389
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/events-search.js
|
|
35400
35390
|
var MAX_EVENTS_OFFSET = 1e3;
|
|
35401
35391
|
var iso3 = /* @__PURE__ */ __name((at) => at === null ? null : new Date(at).toISOString(), "iso");
|
|
35402
35392
|
var accountIdsOf = /* @__PURE__ */ __name(async (store, accounts) => {
|
|
@@ -35514,7 +35504,7 @@ var searchEvents = /* @__PURE__ */ __name(async (store, query, { limit = 20, off
|
|
|
35514
35504
|
};
|
|
35515
35505
|
}, "searchEvents");
|
|
35516
35506
|
|
|
35517
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35507
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/search-all-business.js
|
|
35518
35508
|
var OWN_BUSINESS = { provider: "business", account: INTERNAL_NOTES };
|
|
35519
35509
|
var BUSINESS_WORDS_ONLY = "invoices, payments, orders, contracts, subscriptions, products and wallets are found by the words of their numbers and names only";
|
|
35520
35510
|
var placeOf = /* @__PURE__ */ __name(({ source, imported }) => source ?? (imported === void 0 ? OWN_BUSINESS : { provider: imported, account: "" }), "placeOf");
|
|
@@ -35544,7 +35534,7 @@ var searchBusiness = /* @__PURE__ */ __name(async (store, { words: words3, anyWo
|
|
|
35544
35534
|
};
|
|
35545
35535
|
}, "searchBusiness");
|
|
35546
35536
|
|
|
35547
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35537
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/meeting-hit-search.js
|
|
35548
35538
|
var resolveMeetingSelection = /* @__PURE__ */ __name(async (store, request) => {
|
|
35549
35539
|
const { project, tag, topic, ...input } = request;
|
|
35550
35540
|
input.signal?.throwIfAborted();
|
|
@@ -35582,7 +35572,7 @@ var resolveMeetingSelection = /* @__PURE__ */ __name(async (store, request) => {
|
|
|
35582
35572
|
return { input, selection };
|
|
35583
35573
|
}, "resolveMeetingSelection");
|
|
35584
35574
|
|
|
35585
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35575
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/search-all-meetings.js
|
|
35586
35576
|
var MOST_HITS_PER_MEETING = 3;
|
|
35587
35577
|
var PAGE_ROWS = 200;
|
|
35588
35578
|
var MOST_PAGES = 25;
|
|
@@ -35810,7 +35800,7 @@ var titleItem = /* @__PURE__ */ __name((account, meeting, query) => ({
|
|
|
35810
35800
|
foundBy: ["title"]
|
|
35811
35801
|
}), "titleItem");
|
|
35812
35802
|
|
|
35813
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35803
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/search-harder.js
|
|
35814
35804
|
var SECTION3 = "search_harder";
|
|
35815
35805
|
var HARDER_MODELS = {
|
|
35816
35806
|
anthropic: "claude-haiku-5-5",
|
|
@@ -36056,7 +36046,7 @@ var reorderHarder = /* @__PURE__ */ __name(async (question, hits, { laterPage, a
|
|
|
36056
36046
|
};
|
|
36057
36047
|
}, "reorderHarder");
|
|
36058
36048
|
|
|
36059
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36049
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/search-all.js
|
|
36060
36050
|
var RESOURCES_SEARCHED = ["messages", "mail", "notes", "events", "crm", "business", "meetings"];
|
|
36061
36051
|
var refusal = /* @__PURE__ */ __name((error, text2) => {
|
|
36062
36052
|
const { reason, span } = error.details ?? {};
|
|
@@ -36469,7 +36459,7 @@ var insidePeriodFirst = /* @__PURE__ */ __name((ordered, period) => {
|
|
|
36469
36459
|
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);
|
|
36470
36460
|
}, "insidePeriodFirst");
|
|
36471
36461
|
|
|
36472
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36462
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/server-search.js
|
|
36473
36463
|
var SERVER_SEARCH_KEY = "messages.server-search";
|
|
36474
36464
|
var SERVER_BOUNDS = { timeMs: 5e3, perCall: 100, maxCalls: 3, textBytes: 262144 };
|
|
36475
36465
|
var DEFAULT_BACKEND = "both";
|
|
@@ -36660,7 +36650,7 @@ var searchServer = /* @__PURE__ */ __name(async (deps, request) => {
|
|
|
36660
36650
|
return { report, sources };
|
|
36661
36651
|
}, "searchServer");
|
|
36662
36652
|
|
|
36663
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36653
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/messages.js
|
|
36664
36654
|
var DELETE_AT_ONCE = 10;
|
|
36665
36655
|
var filesOf = /* @__PURE__ */ __name(({ attachments }) => {
|
|
36666
36656
|
const files = fileLinks(attachments);
|
|
@@ -37100,7 +37090,7 @@ var checkMediaOptions = /* @__PURE__ */ __name((messenger, asked, attachments) =
|
|
|
37100
37090
|
throw new CliError("validation_error", `${MEDIA_FLAGS[first2]} needs a --photo or --file`);
|
|
37101
37091
|
}, "checkMediaOptions");
|
|
37102
37092
|
|
|
37103
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37093
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/domain/channel-tags.js
|
|
37104
37094
|
var CHANNEL_TAG_RULES_VERSION = "keywords-v1";
|
|
37105
37095
|
var RULES2 = {
|
|
37106
37096
|
ai: [/\b(ai|gpt|llm|machine learning|artificial intelligence)\b/iu, /нейросет|искусственн/iu],
|
|
@@ -37115,7 +37105,7 @@ var classifyChannel = /* @__PURE__ */ __name((metadata) => Object.entries(RULES2
|
|
|
37115
37105
|
return fields.length ? [{ tag, score: fields.length / 3, fields }] : [];
|
|
37116
37106
|
}), "classifyChannel");
|
|
37117
37107
|
|
|
37118
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37108
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/metadata.js
|
|
37119
37109
|
var metadataService = /* @__PURE__ */ __name((deps) => {
|
|
37120
37110
|
const held = /* @__PURE__ */ __name(async (reference, { includeLeft = false } = {}) => {
|
|
37121
37111
|
const store = await deps.store();
|
|
@@ -37201,7 +37191,7 @@ var metadataService = /* @__PURE__ */ __name((deps) => {
|
|
|
37201
37191
|
};
|
|
37202
37192
|
}, "metadataService");
|
|
37203
37193
|
|
|
37204
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37194
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/moderation/run.js
|
|
37205
37195
|
var FIRST_LOOK_MS = 24 * 36e5;
|
|
37206
37196
|
var moderateWith = /* @__PURE__ */ __name(async (run2) => {
|
|
37207
37197
|
const { chatId, title, rules, point, since, dryRun } = run2;
|
|
@@ -37238,7 +37228,7 @@ var moderateWith = /* @__PURE__ */ __name(async (run2) => {
|
|
|
37238
37228
|
return { chatId, rows, notes };
|
|
37239
37229
|
}, "moderateWith");
|
|
37240
37230
|
|
|
37241
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37231
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/moderation.js
|
|
37242
37232
|
var moderationService = /* @__PURE__ */ __name((deps) => {
|
|
37243
37233
|
const file = /* @__PURE__ */ __name(() => new ModerationRules(moderationPathFor(deps.messenger.app, deps.profile ?? "default", deps.env ?? process.env)), "file");
|
|
37244
37234
|
const group = /* @__PURE__ */ __name(async (chat) => {
|
|
@@ -37316,7 +37306,7 @@ var moderatorOf = /* @__PURE__ */ __name((adapter, deps) => ({
|
|
|
37316
37306
|
}, "removePerson")
|
|
37317
37307
|
}), "moderatorOf");
|
|
37318
37308
|
|
|
37319
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37309
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/private-people.js
|
|
37320
37310
|
var noteItem = /* @__PURE__ */ __name((provider, note) => ({
|
|
37321
37311
|
id: note.id,
|
|
37322
37312
|
contact: formatReference({ type: "contact", provider, id: note.personId }),
|
|
@@ -37360,7 +37350,7 @@ var privatePeopleService = /* @__PURE__ */ __name((deps) => {
|
|
|
37360
37350
|
};
|
|
37361
37351
|
}, "privatePeopleService");
|
|
37362
37352
|
|
|
37363
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37353
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/rankings.js
|
|
37364
37354
|
var empty = /* @__PURE__ */ __name(() => ({
|
|
37365
37355
|
total: 0,
|
|
37366
37356
|
population: 0,
|
|
@@ -37616,7 +37606,7 @@ var rankingsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
37616
37606
|
}, "evidence")
|
|
37617
37607
|
}), "rankingsService");
|
|
37618
37608
|
|
|
37619
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37609
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/reply-stats.js
|
|
37620
37610
|
var FIELDS = ["date", "chat", "kind", "muted"];
|
|
37621
37611
|
var WAITING_TAIL = 100;
|
|
37622
37612
|
var plainOnly = /* @__PURE__ */ __name((text2, command) => {
|
|
@@ -37750,7 +37740,7 @@ var replyStatsService = /* @__PURE__ */ __name((deps) => {
|
|
|
37750
37740
|
};
|
|
37751
37741
|
}, "replyStatsService");
|
|
37752
37742
|
|
|
37753
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37743
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/searches.js
|
|
37754
37744
|
var savedSearchItem = /* @__PURE__ */ __name((one) => ({
|
|
37755
37745
|
id: one.id,
|
|
37756
37746
|
name: one.name,
|
|
@@ -37876,7 +37866,7 @@ var searchesService = /* @__PURE__ */ __name((deps) => {
|
|
|
37876
37866
|
};
|
|
37877
37867
|
}, "searchesService");
|
|
37878
37868
|
|
|
37879
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37869
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/tags.js
|
|
37880
37870
|
var TAGGING_QUERY = {
|
|
37881
37871
|
entity: "tagging",
|
|
37882
37872
|
backend: "sql",
|
|
@@ -37960,7 +37950,7 @@ var tagsService = /* @__PURE__ */ __name((deps) => {
|
|
|
37960
37950
|
};
|
|
37961
37951
|
}, "tagsService");
|
|
37962
37952
|
|
|
37963
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37953
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/topics.js
|
|
37964
37954
|
var actionOf = /* @__PURE__ */ __name(({ title, closed, pinned, hidden, icon }) => {
|
|
37965
37955
|
const set = [closed, pinned, hidden].filter((one) => one !== void 0).length;
|
|
37966
37956
|
if (title !== void 0 || icon !== void 0 || set !== 1)
|
|
@@ -38159,10 +38149,10 @@ var topicsService = /* @__PURE__ */ __name((deps) => {
|
|
|
38159
38149
|
};
|
|
38160
38150
|
}, "topicsService");
|
|
38161
38151
|
|
|
38162
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38152
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/crm/sync.js
|
|
38163
38153
|
var CLOCK_MARGIN = 60 * 6e4;
|
|
38164
38154
|
|
|
38165
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38155
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/crm/writer.js
|
|
38166
38156
|
var CRM_ASSIGN_OTHERS_KEY = "crm.assign-others";
|
|
38167
38157
|
var CRM_WRITE_DEFAULTS = {
|
|
38168
38158
|
"deals.delete": "ask",
|
|
@@ -38170,7 +38160,7 @@ var CRM_WRITE_DEFAULTS = {
|
|
|
38170
38160
|
[CRM_ASSIGN_OTHERS_KEY]: "deny"
|
|
38171
38161
|
};
|
|
38172
38162
|
|
|
38173
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38163
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/evidence.js
|
|
38174
38164
|
import { createHash as createHash11, randomUUID as randomUUID6 } from "node:crypto";
|
|
38175
38165
|
var hash2 = /* @__PURE__ */ __name((value) => createHash11("sha256").update(JSON.stringify(value)).digest("hex"), "hash");
|
|
38176
38166
|
var positive2 = /* @__PURE__ */ __name((value, name, minimum = 1) => {
|
|
@@ -38244,7 +38234,7 @@ var prepareEvidencePacket = /* @__PURE__ */ __name(({ kind, source, page, limits
|
|
|
38244
38234
|
return { ...content, id: randomUUID6(), fingerprint: hash2(content) };
|
|
38245
38235
|
}, "prepareEvidencePacket");
|
|
38246
38236
|
|
|
38247
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38237
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/evidence-read.js
|
|
38248
38238
|
var readEvidencePacket = /* @__PURE__ */ __name(async (store, account, { chat, limit, before: before2 }, messenger = {}) => {
|
|
38249
38239
|
if (!Number.isSafeInteger(limit) || limit < 1 || limit > 100)
|
|
38250
38240
|
throw new CliError("validation_error", "evidence message limit must be an integer from 1 to 100");
|
|
@@ -38264,7 +38254,7 @@ var readEvidencePacket = /* @__PURE__ */ __name(async (store, account, { chat, l
|
|
|
38264
38254
|
return { ...packet, nextBeforeId: older && last ? last.id : null };
|
|
38265
38255
|
}, "readEvidencePacket");
|
|
38266
38256
|
|
|
38267
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38257
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/meeting-project-discovery.js
|
|
38268
38258
|
var scopeKeys = [
|
|
38269
38259
|
"accountId",
|
|
38270
38260
|
"meetingId",
|
|
@@ -38286,7 +38276,7 @@ var optionKeys = /* @__PURE__ */ new Set([
|
|
|
38286
38276
|
"maxVocabularyReadBytes"
|
|
38287
38277
|
]);
|
|
38288
38278
|
|
|
38289
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38279
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/text-model-choice.js
|
|
38290
38280
|
import { createHash as createHash12 } from "node:crypto";
|
|
38291
38281
|
import { existsSync as existsSync2 } from "node:fs";
|
|
38292
38282
|
var useTextModel = /* @__PURE__ */ __name(async (id2, { env, command }) => {
|
|
@@ -38417,14 +38407,14 @@ var addCustomTextModel = /* @__PURE__ */ __name(async (id2, payload, { env, fetc
|
|
|
38417
38407
|
return { ...checked2.output, custom: true };
|
|
38418
38408
|
}, "addCustomTextModel");
|
|
38419
38409
|
|
|
38420
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38410
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/calendar/sync.js
|
|
38421
38411
|
var DAY6 = 864e5;
|
|
38422
38412
|
var SLOTS_EVERY = 7 * DAY6;
|
|
38423
38413
|
|
|
38424
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38414
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/calendar/feeds.js
|
|
38425
38415
|
var FEED_LIMITS = { maxBytes: 10 * 1024 * 1024, timeoutMs: 3e4, redirects: 5 };
|
|
38426
38416
|
|
|
38427
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38417
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/calendar/reads.js
|
|
38428
38418
|
var LIST = "events list";
|
|
38429
38419
|
var EVENT_TYPES = [
|
|
38430
38420
|
"default",
|
|
@@ -38483,7 +38473,7 @@ var EVENTS_QUERY = {
|
|
|
38483
38473
|
} : field)
|
|
38484
38474
|
};
|
|
38485
38475
|
|
|
38486
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38476
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/calendar/writer.js
|
|
38487
38477
|
var EVENTS_NOTIFY_KEY = "events.notify";
|
|
38488
38478
|
var EVENTS_DELETE_SERIES_KEY = "events.delete.series";
|
|
38489
38479
|
var EVENTS_REMIND_HOOK_KEY = "events.remind.hook";
|
|
@@ -38501,7 +38491,7 @@ var CALENDAR_WRITE_DEFAULTS = {
|
|
|
38501
38491
|
[EVENTS_REMIND_HOOK_KEY]: "deny"
|
|
38502
38492
|
};
|
|
38503
38493
|
|
|
38504
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38494
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/context/communication-selection.js
|
|
38505
38495
|
var communicationFields = {
|
|
38506
38496
|
sources: pipe(array(strictObject({
|
|
38507
38497
|
id: pipe(string(), regex(/^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$/)),
|
|
@@ -38533,7 +38523,7 @@ var communicationRequest = /* @__PURE__ */ __name((value, preparationAfter) => {
|
|
|
38533
38523
|
return { ...input, after, before: before2 };
|
|
38534
38524
|
}, "communicationRequest");
|
|
38535
38525
|
|
|
38536
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38526
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/meeting-preparation-validation.js
|
|
38537
38527
|
var MEETING_PREPARATION_LIMITS = {
|
|
38538
38528
|
meetings: { min: 1, max: 20, default: 5 },
|
|
38539
38529
|
cues: { min: 1, max: 100, default: 10 },
|
|
@@ -38606,7 +38596,7 @@ var validateMeetingPreparationRequest = /* @__PURE__ */ __name((externalId, orig
|
|
|
38606
38596
|
};
|
|
38607
38597
|
}, "validateMeetingPreparationRequest");
|
|
38608
38598
|
|
|
38609
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38599
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/meeting-communications-selection.js
|
|
38610
38600
|
var validatePreparationCommunications = /* @__PURE__ */ __name((section, request, after) => {
|
|
38611
38601
|
const fail2 = /* @__PURE__ */ __name(() => {
|
|
38612
38602
|
throw new CliError("invalid_response", "Preparation communications returned another selection or invalid evidence");
|
|
@@ -38654,7 +38644,7 @@ var validatePreparationCommunications = /* @__PURE__ */ __name((section, request
|
|
|
38654
38644
|
}
|
|
38655
38645
|
}, "validatePreparationCommunications");
|
|
38656
38646
|
|
|
38657
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38647
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/package-upgrade.js
|
|
38658
38648
|
var upgradePackage = /* @__PURE__ */ __name(async ({ current, command, packageName, check: check2 }, ports) => {
|
|
38659
38649
|
const installer = ports.installer();
|
|
38660
38650
|
const argv = updateCommand(installer, packageName);
|
|
@@ -38719,7 +38709,7 @@ var dayAfter = /* @__PURE__ */ __name((published) => {
|
|
|
38719
38709
|
return Number.isNaN(time) ? null : new Date(time + 24 * 60 * 60 * 1e3).toISOString();
|
|
38720
38710
|
}, "dayAfter");
|
|
38721
38711
|
|
|
38722
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38712
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/index.js
|
|
38723
38713
|
var servicesFor = /* @__PURE__ */ __name((deps) => {
|
|
38724
38714
|
const pictures = picturesService(deps);
|
|
38725
38715
|
const base = {
|
|
@@ -38756,7 +38746,7 @@ var servicesFor = /* @__PURE__ */ __name((deps) => {
|
|
|
38756
38746
|
return deps.messenger.services ? { ...base, ...deps.messenger.services(base, deps) } : base;
|
|
38757
38747
|
}, "servicesFor");
|
|
38758
38748
|
|
|
38759
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38749
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/background/relay.js
|
|
38760
38750
|
import { createHash as createHash13 } from "node:crypto";
|
|
38761
38751
|
import { chmodSync, lstatSync, mkdirSync as mkdirSync6, rmSync as rmSync3 } from "node:fs";
|
|
38762
38752
|
import { createConnection, createServer } from "node:net";
|
|
@@ -38977,7 +38967,7 @@ var relayCommand = /* @__PURE__ */ __name((path, request, options2) => new Promi
|
|
|
38977
38967
|
}, () => finish({ error: stopped() }));
|
|
38978
38968
|
}), "relayCommand");
|
|
38979
38969
|
|
|
38980
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38970
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-relay.js
|
|
38981
38971
|
var lentConnection = /* @__PURE__ */ __name((connection, watchers) => throughWrapper(connection, {
|
|
38982
38972
|
close: /* @__PURE__ */ __name(async () => {
|
|
38983
38973
|
}, "close"),
|