@wirecat/mail-cli 0.26.0 → 0.28.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 +21 -0
- package/dist/bin/mail.js +2 -2
- package/dist/bundle/{all-profiles-6NXVQLUQ.js → all-profiles-Q4E2LPB4.js} +7 -7
- package/dist/bundle/{anthropic-OLNFE2CL.js → anthropic-S3N4JDJU.js} +2 -2
- package/dist/bundle/{app-server-J76N6XIK.js → app-server-XS7ABUNU.js} +48 -44
- package/dist/bundle/{bun-6PYDHXNR.js → bun-RDYA5FCZ.js} +2 -2
- package/dist/bundle/{bun-sqlite-QD5PFHPS.js → bun-sqlite-FPVHKI24.js} +3 -3
- package/dist/bundle/{chunk-5WROIMUV.js → chunk-2MTIGJHQ.js} +4 -4
- package/dist/bundle/{chunk-OGE7YG4J.js → chunk-3AH7UEM6.js} +1 -1
- package/dist/bundle/{chunk-2E2EV4HD.js → chunk-3RBUACSJ.js} +80 -57
- package/dist/bundle/{chunk-AJ5K74X6.js → chunk-44IAJV2T.js} +16 -16
- package/dist/bundle/{chunk-M7RHPCXM.js → chunk-45ET53MO.js} +2 -2
- package/dist/bundle/{chunk-YXGHC3NP.js → chunk-4CRO7EHW.js} +10 -10
- package/dist/bundle/{chunk-3J2UJFBJ.js → chunk-54ZEOOL7.js} +15 -15
- package/dist/bundle/{chunk-3RY4HC4V.js → chunk-5PDWUD3W.js} +1 -1
- package/dist/bundle/{chunk-RXKIP2ML.js → chunk-5ZJ6IHVE.js} +1 -1
- package/dist/bundle/{chunk-VA4V73SL.js → chunk-6B2BBL35.js} +5 -5
- package/dist/bundle/{chunk-QI6EXKSH.js → chunk-7E4KECG4.js} +1 -1
- package/dist/bundle/{chunk-V4PFD25P.js → chunk-7ESXP4TG.js} +1 -1
- package/dist/bundle/{chunk-CZI45AQM.js → chunk-ATJANIQR.js} +2 -2
- package/dist/bundle/{chunk-76EKZSDK.js → chunk-BDWOTD7E.js} +23 -23
- package/dist/bundle/{chunk-A3EBRXOQ.js → chunk-D4QALV67.js} +1 -1
- package/dist/bundle/{chunk-JVJG54QK.js → chunk-D6VV655V.js} +1 -1
- package/dist/bundle/{chunk-52M5BAEG.js → chunk-DMW6J2P3.js} +1 -1
- package/dist/bundle/{chunk-T7SHPALQ.js → chunk-DZYGVA6V.js} +24 -22
- package/dist/bundle/{chunk-YM345236.js → chunk-EVO4FGYJ.js} +19 -19
- package/dist/bundle/{chunk-HI5XUETY.js → chunk-FHQ32JKS.js} +1 -1
- package/dist/bundle/{chunk-MIWSCTLG.js → chunk-FM4B357N.js} +2 -2
- package/dist/bundle/{chunk-XZ7CQ6NA.js → chunk-FOZXPSHA.js} +3 -3
- package/dist/bundle/{chunk-CFBIPM7T.js → chunk-HFROBAHY.js} +267 -251
- package/dist/bundle/{chunk-DKIVYAXW.js → chunk-HKC6ZJA5.js} +12 -12
- package/dist/bundle/{chunk-XELZCDWE.js → chunk-HYMSFNTS.js} +158 -148
- package/dist/bundle/{chunk-NBJU6MBU.js → chunk-IKTBM64M.js} +7 -7
- package/dist/bundle/{chunk-H2IJQH5X.js → chunk-IUIL6OQY.js} +4 -4
- package/dist/bundle/{chunk-M2LATBP2.js → chunk-IZEK7JI7.js} +2 -2
- package/dist/bundle/{chunk-UNJUCK5R.js → chunk-KBTVVHFP.js} +12 -12
- package/dist/bundle/{chunk-QJGG6QYV.js → chunk-KNTAOY5J.js} +7 -7
- package/dist/bundle/{chunk-BMGRDZM3.js → chunk-KSFPMRH6.js} +1 -1
- package/dist/bundle/{chunk-ZZSZN4CJ.js → chunk-LY2QIBFL.js} +13 -12
- package/dist/bundle/{chunk-GIG7F6UW.js → chunk-MT5KDBOM.js} +5 -5
- package/dist/bundle/{chunk-HNSBXC6U.js → chunk-MVGFB7IS.js} +2 -2
- package/dist/bundle/{chunk-VJPLIXV4.js → chunk-NUHUTJTM.js} +1 -1
- package/dist/bundle/{chunk-EDWJ7IYH.js → chunk-ODPYXNHI.js} +1 -1
- package/dist/bundle/{chunk-2TCS4PLJ.js → chunk-OLTJB5PW.js} +1 -1
- package/dist/bundle/{chunk-LMTQMYUF.js → chunk-P7TVXYJZ.js} +33 -29
- package/dist/bundle/{chunk-66C66FNK.js → chunk-PCYTU7HS.js} +1 -1
- package/dist/bundle/{chunk-VWRT57QU.js → chunk-PIKOQWTL.js} +4 -4
- package/dist/bundle/{chunk-KXASCNOV.js → chunk-PYOM4J73.js} +2 -2
- package/dist/bundle/{chunk-PY2IOVUN.js → chunk-TV6OJBK6.js} +3 -3
- package/dist/bundle/{chunk-4Q6KAV4O.js → chunk-TVMBGHUW.js} +6 -6
- package/dist/bundle/{chunk-3XTKQ5EM.js → chunk-TXDA437R.js} +1 -1
- package/dist/bundle/{chunk-M7ECSGSN.js → chunk-UQZJ2GFQ.js} +4 -6
- package/dist/bundle/{chunk-NMFPK3MU.js → chunk-UUM7AF32.js} +2 -2
- package/dist/bundle/{chunk-BDYQQ6G2.js → chunk-VFRI6RF7.js} +1 -1
- package/dist/bundle/{chunk-M4Y33SJJ.js → chunk-VXHL3XI6.js} +2 -2
- package/dist/bundle/{chunk-A6XETABW.js → chunk-WZNQ2P7H.js} +17 -17
- package/dist/bundle/{chunk-76VSHS5Y.js → chunk-XEMARUGS.js} +7 -7
- package/dist/bundle/{chunk-UE2NKPA4.js → chunk-YAQGWHMH.js} +6 -6
- package/dist/bundle/{chunk-JNKXU7AE.js → chunk-YE464BDT.js} +52 -52
- package/dist/bundle/{chunk-V32L23NN.js → chunk-YSR2XBDO.js} +3 -3
- package/dist/bundle/{chunk-XUJEZ5YF.js → chunk-Z5D6CRY6.js} +5 -5
- package/dist/bundle/{chunk-PJ6YMNJG.js → chunk-ZIFB6KGQ.js} +447 -407
- package/dist/bundle/{chunk-LTZGLOKE.js → chunk-ZPVVSA5R.js} +1 -1
- package/dist/bundle/{command-contract-NNEXHZW5.js → command-contract-4PTK23CK.js} +15 -15
- package/dist/bundle/{command-server-entry-AIBWNC5D.js → command-server-entry-KSAHRZOO.js} +21 -21
- package/dist/bundle/{decode-H7KLRD33.js → decode-SIVT4JWX.js} +2 -2
- package/dist/bundle/{dist-YYSP43J3.js → dist-YWSF5MHP.js} +11 -11
- package/dist/bundle/{echarts-VSD3LS6D.js → echarts-CABLIXX7.js} +2 -2
- package/dist/bundle/{embed-UENZ5HN3.js → embed-OHENS6RB.js} +3 -3
- package/dist/bundle/{embedder-MJMGOJT7.js → embedder-JINT4Y4O.js} +6 -6
- package/dist/bundle/{first-run-HYALREFN.js → first-run-4XEWECC3.js} +6 -6
- package/dist/bundle/first-screen-YI2YNTYY.js +34 -0
- package/dist/bundle/{instructions-WOHRYOLN.js → instructions-3D22PA4T.js} +1 -1
- package/dist/bundle/mail.js +2 -2
- package/dist/bundle/{node-4BRWJJCE.js → node-42G4RGMW.js} +2 -2
- package/dist/bundle/{node-sqlite-D3QESEYQ.js → node-sqlite-KQZM5M3N.js} +4 -4
- package/dist/bundle/{oauth-T7TTOBIZ.js → oauth-7BNCNKQV.js} +4 -4
- package/dist/bundle/{open-6P6627QB.js → open-ULOQOP7K.js} +2 -2
- package/dist/bundle/{openai-FIMCJGAP.js → openai-O5AH6VGT.js} +12 -12
- package/dist/bundle/{process-35IH3WHC.js → process-6D767IDN.js} +1 -1
- package/dist/bundle/{program-IEXB72IK.js → program-UXFXSGIW.js} +400 -380
- package/dist/bundle/{prompt-HFBCPMVL.js → prompt-WN7EBVKT.js} +2 -2
- package/dist/bundle/{recognize-CNL4HJ7Z.js → recognize-IX33XEXZ.js} +1 -1
- package/dist/bundle/{remote-AYGZI7HT.js → remote-22N3FQUC.js} +6 -6
- package/dist/bundle/{rerank-5C2OZZXD.js → rerank-IGX4EFA2.js} +4 -4
- package/dist/bundle/{serve-S6OYBDIB.js → serve-XWIRR2QZ.js} +6 -6
- package/dist/bundle/server-DF2SECWB.js +68 -0
- package/dist/bundle/{server-VKO6E6PI.js → server-OQV2MVCA.js} +37 -35
- package/dist/bundle/{sqlite-runtime-DBTGNTVE.js → sqlite-runtime-WFBTXXXJ.js} +3 -3
- package/dist/bundle/{state-ZQG6AL2Y.js → state-4J5ERHJA.js} +3 -3
- package/dist/bundle/{store-LY4QKTOO.js → store-YRBX7XLM.js} +13 -13
- package/dist/bundle/{store-B7BXWILZ.js → store-YSP2NPRJ.js} +15 -15
- package/dist/bundle/store-maintenance-command-4TW6FABJ.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-GPF5RHBX.js +0 -34
- package/dist/bundle/server-WXSHVDME.js +0 -68
- package/dist/bundle/store-maintenance-command-UR6NQDVV.js +0 -58
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
sameOrdinaryFile,
|
|
9
9
|
syncDirectory,
|
|
10
10
|
writeFileAtomic
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-KBTVVHFP.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-YAQGWHMH.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-UUM7AF32.js";
|
|
34
34
|
import {
|
|
35
35
|
Command,
|
|
36
36
|
CustomTextModelShape,
|
|
@@ -79,13 +79,13 @@ import {
|
|
|
79
79
|
textModels,
|
|
80
80
|
vectorModelKey,
|
|
81
81
|
writeTextModelsSection
|
|
82
|
-
} from "./chunk-
|
|
82
|
+
} from "./chunk-HYMSFNTS.js";
|
|
83
83
|
import {
|
|
84
84
|
CEILING_KEY,
|
|
85
85
|
keyForWrite,
|
|
86
86
|
levelFor,
|
|
87
87
|
skipFlagFor
|
|
88
|
-
} from "./chunk-
|
|
88
|
+
} from "./chunk-2MTIGJHQ.js";
|
|
89
89
|
import {
|
|
90
90
|
isNewer,
|
|
91
91
|
updateCommand
|
|
@@ -145,7 +145,7 @@ import {
|
|
|
145
145
|
validateAst,
|
|
146
146
|
validateFields,
|
|
147
147
|
withoutField
|
|
148
|
-
} from "./chunk-
|
|
148
|
+
} from "./chunk-ZIFB6KGQ.js";
|
|
149
149
|
import {
|
|
150
150
|
COUNTER_FIELDS,
|
|
151
151
|
MESSAGE_PARSING,
|
|
@@ -170,7 +170,7 @@ import {
|
|
|
170
170
|
rankingOptions,
|
|
171
171
|
rankingQuestion,
|
|
172
172
|
searchError
|
|
173
|
-
} from "./chunk-
|
|
173
|
+
} from "./chunk-WZNQ2P7H.js";
|
|
174
174
|
import {
|
|
175
175
|
LOG_ATTRIBUTES,
|
|
176
176
|
TASK_KINDS,
|
|
@@ -193,7 +193,7 @@ import {
|
|
|
193
193
|
sourceOf2,
|
|
194
194
|
typedCommand,
|
|
195
195
|
withAttempt
|
|
196
|
-
} from "./chunk-
|
|
196
|
+
} from "./chunk-BDWOTD7E.js";
|
|
197
197
|
import {
|
|
198
198
|
EVENT_QUERY,
|
|
199
199
|
INTERNAL_NOTES,
|
|
@@ -254,38 +254,38 @@ import {
|
|
|
254
254
|
validateQuery,
|
|
255
255
|
walkQuery,
|
|
256
256
|
zonedMoment
|
|
257
|
-
} from "./chunk-
|
|
257
|
+
} from "./chunk-3RBUACSJ.js";
|
|
258
258
|
import {
|
|
259
259
|
isCliFailure,
|
|
260
260
|
sqliteCode
|
|
261
|
-
} from "./chunk-
|
|
261
|
+
} from "./chunk-NUHUTJTM.js";
|
|
262
262
|
import {
|
|
263
263
|
DEFAULT_STEMMERS,
|
|
264
264
|
createStemmer
|
|
265
|
-
} from "./chunk-
|
|
265
|
+
} from "./chunk-IKTBM64M.js";
|
|
266
266
|
import {
|
|
267
267
|
fold,
|
|
268
268
|
normalize
|
|
269
|
-
} from "./chunk-
|
|
269
|
+
} from "./chunk-D4QALV67.js";
|
|
270
270
|
import {
|
|
271
271
|
localOnly,
|
|
272
272
|
refuseOffComputer,
|
|
273
273
|
remoteKey
|
|
274
|
-
} from "./chunk-
|
|
274
|
+
} from "./chunk-KNTAOY5J.js";
|
|
275
275
|
import {
|
|
276
276
|
PLAIN_HTTP_REFUSED,
|
|
277
277
|
endpoint,
|
|
278
278
|
endpointFetch,
|
|
279
279
|
modelAddressAllowed,
|
|
280
280
|
onThisComputer
|
|
281
|
-
} from "./chunk-
|
|
281
|
+
} from "./chunk-5PDWUD3W.js";
|
|
282
282
|
import {
|
|
283
283
|
DEFAULT_TASK_CATEGORIES,
|
|
284
284
|
FALLBACK_CATEGORY,
|
|
285
285
|
readSharedSection,
|
|
286
286
|
sharedConfigPath,
|
|
287
287
|
writeSharedSection
|
|
288
|
-
} from "./chunk-
|
|
288
|
+
} from "./chunk-Z5D6CRY6.js";
|
|
289
289
|
import {
|
|
290
290
|
Unzip,
|
|
291
291
|
UnzipInflate,
|
|
@@ -296,15 +296,15 @@ import {
|
|
|
296
296
|
placedText,
|
|
297
297
|
runEmbedders,
|
|
298
298
|
textModelsDirectory
|
|
299
|
-
} from "./chunk-
|
|
299
|
+
} from "./chunk-MT5KDBOM.js";
|
|
300
300
|
import {
|
|
301
301
|
installFiles,
|
|
302
302
|
megabytes
|
|
303
|
-
} from "./chunk-
|
|
303
|
+
} from "./chunk-FOZXPSHA.js";
|
|
304
304
|
import {
|
|
305
305
|
storePath,
|
|
306
306
|
wirecatDirectory
|
|
307
|
-
} from "./chunk-
|
|
307
|
+
} from "./chunk-TXDA437R.js";
|
|
308
308
|
import {
|
|
309
309
|
Credentials,
|
|
310
310
|
logRecordOf,
|
|
@@ -16965,10 +16965,10 @@ var require_lib3 = __commonJS({
|
|
|
16965
16965
|
}
|
|
16966
16966
|
});
|
|
16967
16967
|
|
|
16968
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16968
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/ports/traits.js
|
|
16969
16969
|
var syncsOneChat = /* @__PURE__ */ __name((messenger) => messenger.history !== "store" || messenger.historyOnDemand === true, "syncsOneChat");
|
|
16970
16970
|
|
|
16971
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16971
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/conversations/link.js
|
|
16972
16972
|
var RULES_VERSION = 5;
|
|
16973
16973
|
var LOOK_BACK = 50;
|
|
16974
16974
|
var SAME_SENDER_WITHIN = 10;
|
|
@@ -17058,7 +17058,7 @@ var latest = /* @__PURE__ */ __name((window3, matches) => {
|
|
|
17058
17058
|
var sameThread = /* @__PURE__ */ __name((a, b) => a.threadId === b.threadId, "sameThread");
|
|
17059
17059
|
var link = /* @__PURE__ */ __name((message, parentId, source, kind, confidence, method) => ({ messageId: message.id, parentId, source, kind, confidence, method }), "link");
|
|
17060
17060
|
|
|
17061
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17061
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/sends/upload.js
|
|
17062
17062
|
import { openAsBlob, realpathSync } from "node:fs";
|
|
17063
17063
|
import { open, stat } from "node:fs/promises";
|
|
17064
17064
|
import { basename, dirname, extname, isAbsolute, relative, resolve, sep } from "node:path";
|
|
@@ -17272,10 +17272,10 @@ var readStickerFile = /* @__PURE__ */ __name(async (path, maxBytes, read) => {
|
|
|
17272
17272
|
return { name, source };
|
|
17273
17273
|
}, "readStickerFile");
|
|
17274
17274
|
|
|
17275
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17275
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/sends/guard.js
|
|
17276
17276
|
import { randomUUID } from "node:crypto";
|
|
17277
17277
|
|
|
17278
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17278
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/sends/flood.js
|
|
17279
17279
|
import { mkdirSync, readFileSync, renameSync, writeFileSync } from "node:fs";
|
|
17280
17280
|
import { dirname as dirname2, join } from "node:path";
|
|
17281
17281
|
var MOST_DEADLINES = 50;
|
|
@@ -17359,11 +17359,11 @@ var FloodMemory = class {
|
|
|
17359
17359
|
}
|
|
17360
17360
|
};
|
|
17361
17361
|
|
|
17362
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17362
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/sends/journal.js
|
|
17363
17363
|
import { appendFileSync, mkdirSync as mkdirSync3, readFileSync as readFileSync2 } from "node:fs";
|
|
17364
17364
|
import { dirname as dirname4, join as join2 } from "node:path";
|
|
17365
17365
|
|
|
17366
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17366
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/sends/file-lock.js
|
|
17367
17367
|
import { closeSync, mkdirSync as mkdirSync2, openSync, statSync, unlinkSync } from "node:fs";
|
|
17368
17368
|
import { dirname as dirname3 } from "node:path";
|
|
17369
17369
|
var LOCK_WAIT_MS = 5e3;
|
|
@@ -17430,7 +17430,7 @@ var lockTime = /* @__PURE__ */ __name((lock) => {
|
|
|
17430
17430
|
}
|
|
17431
17431
|
}, "lockTime");
|
|
17432
17432
|
|
|
17433
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17433
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/sends/journal.js
|
|
17434
17434
|
var sendsPathFor = /* @__PURE__ */ __name((app, profile, env = process.env) => join2(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "sends", `${profile}.jsonl`), "sendsPathFor");
|
|
17435
17435
|
var SendJournal = class {
|
|
17436
17436
|
static {
|
|
@@ -17507,7 +17507,7 @@ var withSendId = /* @__PURE__ */ __name((entry) => {
|
|
|
17507
17507
|
return cid === void 0 || rest.sendId !== void 0 ? rest : { ...rest, sendId: String(cid) };
|
|
17508
17508
|
}, "withSendId");
|
|
17509
17509
|
|
|
17510
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17510
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/sends/recipients.js
|
|
17511
17511
|
import { existsSync, readFileSync as readFileSync3, rmSync } from "node:fs";
|
|
17512
17512
|
import { join as join3 } from "node:path";
|
|
17513
17513
|
var recipientsPathFor = /* @__PURE__ */ __name((app, profile, env = process.env) => join3(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "profiles", `${profile}.recipients.json`), "recipientsPathFor");
|
|
@@ -17619,7 +17619,7 @@ var RecipientList = class {
|
|
|
17619
17619
|
}
|
|
17620
17620
|
};
|
|
17621
17621
|
|
|
17622
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17622
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/sends/guard.js
|
|
17623
17623
|
var HOUR_MS = 60 * 60 * 1e3;
|
|
17624
17624
|
var READS = /* @__PURE__ */ new Set([
|
|
17625
17625
|
"attachments.extract",
|
|
@@ -17814,7 +17814,7 @@ var guardFor = /* @__PURE__ */ __name((app, settings, warn, env = process.env, a
|
|
|
17814
17814
|
}), "guardFor");
|
|
17815
17815
|
var journalFailure = /* @__PURE__ */ __name((error) => error?.code ?? (error instanceof Error ? error.name : "error"), "journalFailure");
|
|
17816
17816
|
|
|
17817
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17817
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/cli/messenger/lacks.js
|
|
17818
17818
|
var COMMAND_NEEDS = {
|
|
17819
17819
|
"account update": ["updateProfile", "change the profile"],
|
|
17820
17820
|
"account sessions list": ["sessions", "list the account's sessions"],
|
|
@@ -17864,7 +17864,7 @@ var hideNever = /* @__PURE__ */ __name((messenger, group) => {
|
|
|
17864
17864
|
return group;
|
|
17865
17865
|
}, "hideNever");
|
|
17866
17866
|
|
|
17867
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17867
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/services/members-audit.js
|
|
17868
17868
|
var AUDIT_PAGE = 200;
|
|
17869
17869
|
var AUDIT_BUDGET = 10;
|
|
17870
17870
|
var AUDIT_PAUSE_MS = 1e3;
|
|
@@ -17944,7 +17944,7 @@ var burstJoins = /* @__PURE__ */ __name((members) => {
|
|
|
17944
17944
|
return found;
|
|
17945
17945
|
}, "burstJoins");
|
|
17946
17946
|
|
|
17947
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17947
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/meetings/cli/query-options.js
|
|
17948
17948
|
var queryWordsAfterOptions = /* @__PURE__ */ __name((command) => {
|
|
17949
17949
|
command.allowUnknownOption();
|
|
17950
17950
|
const parse2 = command.parseOptions.bind(command);
|
|
@@ -17964,7 +17964,7 @@ var queryWordsAfterOptions = /* @__PURE__ */ __name((command) => {
|
|
|
17964
17964
|
return command;
|
|
17965
17965
|
}, "queryWordsAfterOptions");
|
|
17966
17966
|
|
|
17967
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17967
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/meetings/cli/passage.js
|
|
17968
17968
|
var count = /* @__PURE__ */ __name((value) => {
|
|
17969
17969
|
if (!/^(0|[1-9]\d*)$/.test(value) || !Number.isSafeInteger(Number(value)))
|
|
17970
17970
|
throw new CliError("validation_error", "expected a nonnegative safe integer");
|
|
@@ -18006,7 +18006,7 @@ var addMeetingPassageCommandDefinition = /* @__PURE__ */ __name((program, deps)
|
|
|
18006
18006
|
var createMeetingPassageCommand = sharedCommand(createMeetingPassageCommandDefinition);
|
|
18007
18007
|
var addMeetingPassageCommand = sharedCommand(addMeetingPassageCommandDefinition);
|
|
18008
18008
|
|
|
18009
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18009
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/meetings/cli/project-evidence.js
|
|
18010
18010
|
var integer2 = /* @__PURE__ */ __name((value) => {
|
|
18011
18011
|
if (!/^[1-9]\d*$/.test(value) || !Number.isSafeInteger(Number(value)))
|
|
18012
18012
|
throw new CliError("validation_error", "expected a positive safe integer");
|
|
@@ -18029,7 +18029,7 @@ ${fieldsHelp(MEETING_PROJECT_EVIDENCE_QUERY)}`).option("--limit <n>", "hits in o
|
|
|
18029
18029
|
}, "addMeetingProjectEvidenceCommandDefinition");
|
|
18030
18030
|
var addMeetingProjectEvidenceCommand = sharedCommand(addMeetingProjectEvidenceCommandDefinition);
|
|
18031
18031
|
|
|
18032
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18032
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/meetings/cli/search.js
|
|
18033
18033
|
var ZONED = /(?:Z|[+-]\d{2}:?\d{2})$/i;
|
|
18034
18034
|
var moment = /* @__PURE__ */ __name((flag, end, readIn) => (value) => {
|
|
18035
18035
|
const zone = timezoneOf();
|
|
@@ -18115,7 +18115,7 @@ var addMeetingSearchCommandDefinition = /* @__PURE__ */ __name((program, deps) =
|
|
|
18115
18115
|
var createMeetingSearchCommand = sharedCommand(createMeetingSearchCommandDefinition);
|
|
18116
18116
|
var addMeetingSearchCommand = sharedCommand(addMeetingSearchCommandDefinition);
|
|
18117
18117
|
|
|
18118
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18118
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/meetings/cli/index.js
|
|
18119
18119
|
var integer4 = /* @__PURE__ */ __name((text2) => {
|
|
18120
18120
|
if (!/^[1-9]\d*$/.test(text2) || !Number.isSafeInteger(Number(text2)))
|
|
18121
18121
|
throw new InvalidArgumentError("expected a positive integer");
|
|
@@ -18264,7 +18264,7 @@ ${fieldsHelp(EVENT_QUERY, MEETING_QUERY_GUIDE)}`);
|
|
|
18264
18264
|
}, "addMeetingCommandsDefinition");
|
|
18265
18265
|
var addMeetingCommands = sharedCommand(addMeetingCommandsDefinition);
|
|
18266
18266
|
|
|
18267
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18267
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/cli/list-query.js
|
|
18268
18268
|
var LIST_QUERY_GUIDE = "https://github.com/WireCatLabs/cli-core/blob/main/docs/search/query-language.md";
|
|
18269
18269
|
var QUERY_ARGUMENT = "field:value terms that narrow the list \u2014 the fields are below";
|
|
18270
18270
|
var withQuery = /* @__PURE__ */ __name((command, registry) => {
|
|
@@ -18398,7 +18398,7 @@ var termField = /* @__PURE__ */ __name((name, type, example, more = {}) => nativ
|
|
|
18398
18398
|
var queryHelp = /* @__PURE__ */ __name((registry) => `
|
|
18399
18399
|
${fieldsHelp(registry, LIST_QUERY_GUIDE)}`, "queryHelp");
|
|
18400
18400
|
|
|
18401
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18401
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/cli/paging.js
|
|
18402
18402
|
var positiveCount = /* @__PURE__ */ __name((flag) => (value) => {
|
|
18403
18403
|
if (!/^\d+$/.test(value.trim()) || Number(value) < 1)
|
|
18404
18404
|
throw new CliError("validation_error", `${flag} takes a whole number from 1 upwards, not "${value}"`);
|
|
@@ -18407,7 +18407,7 @@ var positiveCount = /* @__PURE__ */ __name((flag) => (value) => {
|
|
|
18407
18407
|
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");
|
|
18408
18408
|
var window = /* @__PURE__ */ __name(({ limit, page, all }) => all ? { offset: 0 } : { limit, offset: (page - 1) * limit }, "window");
|
|
18409
18409
|
|
|
18410
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18410
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/cli/messenger/chat-answers.js
|
|
18411
18411
|
var defined = /* @__PURE__ */ __name((record2) => Object.fromEntries(Object.entries(record2).filter(([, value]) => value !== void 0)), "defined");
|
|
18412
18412
|
var chatRef = /* @__PURE__ */ __name((account, chat) => formatReference({ type: "chat", provider: account.provider, account: account.account, chat }), "chatRef");
|
|
18413
18413
|
var settingsOf = /* @__PURE__ */ __name((settings) => defined({
|
|
@@ -18669,7 +18669,7 @@ var sessionAnswer = /* @__PURE__ */ __name(({ current, client, device, location,
|
|
|
18669
18669
|
...createdAt === void 0 ? {} : { created_at: createdAt }
|
|
18670
18670
|
}), "sessionAnswer");
|
|
18671
18671
|
|
|
18672
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18672
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/services/deps.js
|
|
18673
18673
|
var accountStore = /* @__PURE__ */ __name(async (deps) => (await deps.store()).forAccount(await deps.account()), "accountStore");
|
|
18674
18674
|
var crossAccount = /* @__PURE__ */ __name((deps, _reason) => deps.store(), "crossAccount");
|
|
18675
18675
|
var NO_LOCAL_STORE = "this answer comes from the messenger, not from the local store";
|
|
@@ -18731,7 +18731,7 @@ var storedDeps = /* @__PURE__ */ __name((messenger, store, account, guard) => ({
|
|
|
18731
18731
|
}), "storedDeps");
|
|
18732
18732
|
var storeModeDeps = /* @__PURE__ */ __name((messenger, store, account, guard) => ({ ...storedDeps(messenger, store, account, guard), offline: false, reads: "store" }), "storeModeDeps");
|
|
18733
18733
|
|
|
18734
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18734
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/ports/messenger.js
|
|
18735
18735
|
var throughWrapper = /* @__PURE__ */ __name((inner, handled, wrap = (_, call) => call) => new Proxy(handled, {
|
|
18736
18736
|
get: /* @__PURE__ */ __name((own, key) => {
|
|
18737
18737
|
if (key in own)
|
|
@@ -18748,12 +18748,12 @@ var capability = /* @__PURE__ */ __name((adapter, method, what) => {
|
|
|
18748
18748
|
return found.bind(adapter);
|
|
18749
18749
|
}, "capability");
|
|
18750
18750
|
|
|
18751
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18751
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/sends/send-id.js
|
|
18752
18752
|
import { randomBytes } from "node:crypto";
|
|
18753
18753
|
var newSendId = /* @__PURE__ */ __name(() => randomBytes(8).readBigInt64BE().toString(), "newSendId");
|
|
18754
18754
|
var newOperationId = newSendId;
|
|
18755
18755
|
|
|
18756
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18756
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/services/questions.js
|
|
18757
18757
|
var LINKS = /https?:\/\/\S+/g;
|
|
18758
18758
|
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");
|
|
18759
18759
|
var questions = /* @__PURE__ */ __name((messages, { answerers: answerers2, asker = "others" }) => {
|
|
@@ -18783,7 +18783,7 @@ var questions = /* @__PURE__ */ __name((messages, { answerers: answerers2, asker
|
|
|
18783
18783
|
});
|
|
18784
18784
|
}, "questions");
|
|
18785
18785
|
|
|
18786
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18786
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/services/task-categories.js
|
|
18787
18787
|
var names = /* @__PURE__ */ __name((categories) => categories.map(({ name }) => name).join(", "), "names");
|
|
18788
18788
|
var taskCategoryOf = /* @__PURE__ */ __name((categories = DEFAULT_TASK_CATEGORIES, flag = "--category") => (typed) => {
|
|
18789
18789
|
const name = typed.trim().toLowerCase();
|
|
@@ -18840,7 +18840,7 @@ var categorize = /* @__PURE__ */ __name((text2, categories = DEFAULT_TASK_CATEGO
|
|
|
18840
18840
|
return best.name;
|
|
18841
18841
|
}, "categorize");
|
|
18842
18842
|
|
|
18843
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18843
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/services/task-rules.js
|
|
18844
18844
|
var taskAccount = /* @__PURE__ */ __name(({ provider, account }) => `${provider}:${account}`, "taskAccount");
|
|
18845
18845
|
var RULES_IN = {
|
|
18846
18846
|
dialog: "all",
|
|
@@ -19046,7 +19046,7 @@ var applyTaskRulesToChats = /* @__PURE__ */ __name(async (store, account, chatId
|
|
|
19046
19046
|
return passes;
|
|
19047
19047
|
}, "applyTaskRulesToChats");
|
|
19048
19048
|
|
|
19049
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19049
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/services/moment.js
|
|
19050
19050
|
var AGO = /^(\d+)(m|h|d)$/;
|
|
19051
19051
|
var AGO_MS = { m: 6e4, h: 36e5, d: 864e5 };
|
|
19052
19052
|
var DATE = /^\d{4}-\d{2}-\d{2}/;
|
|
@@ -19086,7 +19086,7 @@ var dateWindow = /* @__PURE__ */ __name(({ sinceTime, untilTime, zone, now = Dat
|
|
|
19086
19086
|
};
|
|
19087
19087
|
}, "dateWindow");
|
|
19088
19088
|
|
|
19089
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19089
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/services/patience.js
|
|
19090
19090
|
import { setTimeout as sleep } from "node:timers/promises";
|
|
19091
19091
|
var LONGEST_WAIT_MS = 5 * 60 * 1e3;
|
|
19092
19092
|
var patiently = /* @__PURE__ */ __name(async (request, note, stop) => {
|
|
@@ -19109,10 +19109,10 @@ var patiently = /* @__PURE__ */ __name(async (request, note, stop) => {
|
|
|
19109
19109
|
}
|
|
19110
19110
|
}, "patiently");
|
|
19111
19111
|
|
|
19112
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19112
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/services/archive.js
|
|
19113
19113
|
import { setTimeout as sleep2 } from "node:timers/promises";
|
|
19114
19114
|
|
|
19115
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19115
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/services/backfill-estimate.js
|
|
19116
19116
|
var REQUEST_MS = 400;
|
|
19117
19117
|
var estimateBackfill = /* @__PURE__ */ __name(({ ranges, held, newest, page, maxPages, pauseMs }) => {
|
|
19118
19118
|
const lowest = ranges[0];
|
|
@@ -19135,13 +19135,13 @@ var estimateBackfill = /* @__PURE__ */ __name(({ ranges, held, newest, page, max
|
|
|
19135
19135
|
};
|
|
19136
19136
|
}, "estimateBackfill");
|
|
19137
19137
|
|
|
19138
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19138
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/domain/recovery.js
|
|
19139
19139
|
var withRecovery = /* @__PURE__ */ __name((error) => ({
|
|
19140
19140
|
...error,
|
|
19141
19141
|
retryable: typeof error.retryable === "boolean" ? error.retryable : error.code === "rate_limited" || error.status === 429
|
|
19142
19142
|
}), "withRecovery");
|
|
19143
19143
|
|
|
19144
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19144
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/services/batch.js
|
|
19145
19145
|
var actionable = /* @__PURE__ */ __name((error) => {
|
|
19146
19146
|
if (isCliFailure(error))
|
|
19147
19147
|
return withRecovery({ code: error.code, message: error.message, ...error.details });
|
|
@@ -19224,7 +19224,7 @@ var mergeBatches = /* @__PURE__ */ __name((a, b) => {
|
|
|
19224
19224
|
};
|
|
19225
19225
|
}, "mergeBatches");
|
|
19226
19226
|
|
|
19227
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19227
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/search/groups.js
|
|
19228
19228
|
var ALL = "all";
|
|
19229
19229
|
var OWNER_NOTES = { provider: "notes", account: INTERNAL_NOTES };
|
|
19230
19230
|
var NOT_GROUP_NAMES = /* @__PURE__ */ new Set([ALL, "bots"]);
|
|
@@ -19296,7 +19296,7 @@ var groupEntries = /* @__PURE__ */ __name((saved) => ({
|
|
|
19296
19296
|
[ALL]: [ALL]
|
|
19297
19297
|
}), "groupEntries");
|
|
19298
19298
|
|
|
19299
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19299
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/services/search-kind.js
|
|
19300
19300
|
var NO_MAIL = "no_mail";
|
|
19301
19301
|
var MAIL = "email";
|
|
19302
19302
|
var groupLockOf = /* @__PURE__ */ __name((app, env) => {
|
|
@@ -19370,7 +19370,7 @@ var accountsOfKind = /* @__PURE__ */ __name((kind, chosen, held, explicit, comma
|
|
|
19370
19370
|
return chosenMail.map(({ provider, account }) => ({ provider, account }));
|
|
19371
19371
|
}, "accountsOfKind");
|
|
19372
19372
|
|
|
19373
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19373
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/services/message-resolution.js
|
|
19374
19374
|
var readChatId = /* @__PURE__ */ __name(async (deps, reference, store, account) => {
|
|
19375
19375
|
if (deps.reads !== "store")
|
|
19376
19376
|
return keptChatId(deps.messenger, reference, store, account);
|
|
@@ -19569,7 +19569,7 @@ var chatsMatchingIn = /* @__PURE__ */ __name(async (store, accounts, pattern) =>
|
|
|
19569
19569
|
}, "chatsMatchingIn");
|
|
19570
19570
|
var isText = /* @__PURE__ */ __name((value) => typeof value === "string" && value !== "", "isText");
|
|
19571
19571
|
|
|
19572
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19572
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/images/context/index.js
|
|
19573
19573
|
var CONTEXT_MESSAGES = 3;
|
|
19574
19574
|
var CONTEXT_MINUTES = 10;
|
|
19575
19575
|
var MAX_CHARS = 1200;
|
|
@@ -19593,12 +19593,12 @@ var context = {
|
|
|
19593
19593
|
}, "describe")
|
|
19594
19594
|
};
|
|
19595
19595
|
|
|
19596
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19596
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/images/registry.js
|
|
19597
19597
|
var BUILT_INS = [context];
|
|
19598
19598
|
var providers = [...BUILT_INS];
|
|
19599
19599
|
var registeredImageProviders = /* @__PURE__ */ __name(() => providers, "registeredImageProviders");
|
|
19600
19600
|
|
|
19601
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19601
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/services/conversations.js
|
|
19602
19602
|
var READ_PAGE = 5e3;
|
|
19603
19603
|
var CHAIN = 50;
|
|
19604
19604
|
var CONVERSATION_QUERY = {
|
|
@@ -19750,7 +19750,7 @@ var sized = /* @__PURE__ */ __name((size2) => {
|
|
|
19750
19750
|
return size2;
|
|
19751
19751
|
}, "sized");
|
|
19752
19752
|
|
|
19753
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19753
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/services/embeddings-maintenance.js
|
|
19754
19754
|
var REFRESH_BOUNDS = { maxChats: 20, maxChunks: 2e3 };
|
|
19755
19755
|
var MESSAGE_PAGE = 5e3;
|
|
19756
19756
|
var PER_SESSION = 8;
|
|
@@ -19769,7 +19769,7 @@ var embeddingTarget = /* @__PURE__ */ __name((deps, choice = chosenTextModel(dep
|
|
|
19769
19769
|
price: remote.price,
|
|
19770
19770
|
installed: true,
|
|
19771
19771
|
perBatch: PER_REQUEST * concurrency,
|
|
19772
|
-
open: /* @__PURE__ */ __name(async () => (await import("./remote-
|
|
19772
|
+
open: /* @__PURE__ */ __name(async () => (await import("./remote-22N3FQUC.js")).openRemote(remote, apiKey, {
|
|
19773
19773
|
concurrency,
|
|
19774
19774
|
env: deps.env ?? process.env
|
|
19775
19775
|
}), "open")
|
|
@@ -19789,7 +19789,7 @@ var embeddingTarget = /* @__PURE__ */ __name((deps, choice = chosenTextModel(dep
|
|
|
19789
19789
|
if (!isTextModelInstalled(model, directory2))
|
|
19790
19790
|
throw notDownloaded(model.id);
|
|
19791
19791
|
if (apart) {
|
|
19792
|
-
const { openProcess } = await import("./process-
|
|
19792
|
+
const { openProcess } = await import("./process-6D767IDN.js");
|
|
19793
19793
|
return openProcess(model, directory2, { threads: threads ?? defaultThreads() });
|
|
19794
19794
|
}
|
|
19795
19795
|
return openEmbedder(model, directory2, { threads: threads ?? defaultThreads() });
|
|
@@ -20078,7 +20078,7 @@ var shaped = /* @__PURE__ */ __name(({ chatId, builtAt, algorithmVersion, pendin
|
|
|
20078
20078
|
return { ...one, state };
|
|
20079
20079
|
}, "shaped");
|
|
20080
20080
|
|
|
20081
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20081
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/services/search-catchup.js
|
|
20082
20082
|
var CATCH_UP_BOUNDS = { maxChunks: 500, maxMessages: 1e4, timeMs: 3e4 };
|
|
20083
20083
|
var validateCatchUpBounds = /* @__PURE__ */ __name((options2) => {
|
|
20084
20084
|
for (const [key, value, maximum] of [
|
|
@@ -20131,7 +20131,7 @@ var catchUpSearch = /* @__PURE__ */ __name(async (deps, chat, options2, signal,
|
|
|
20131
20131
|
}
|
|
20132
20132
|
}, "catchUpSearch");
|
|
20133
20133
|
|
|
20134
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20134
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/services/archive.js
|
|
20135
20135
|
var pushed = /* @__PURE__ */ __name((deps, what) => {
|
|
20136
20136
|
if (deps.reads === "store") {
|
|
20137
20137
|
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`);
|
|
@@ -20512,7 +20512,7 @@ var timeOfKey = /* @__PURE__ */ __name(async (store, account, chatId, key, byTim
|
|
|
20512
20512
|
return message?.timestamp ?? fallback;
|
|
20513
20513
|
}, "timeOfKey");
|
|
20514
20514
|
|
|
20515
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20515
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/botcheck/check.js
|
|
20516
20516
|
var DAY_MS = 864e5;
|
|
20517
20517
|
var NEW_DAYS = 30;
|
|
20518
20518
|
var SAME_TEXT_MIN = 20;
|
|
@@ -20589,7 +20589,7 @@ var scorePerson = /* @__PURE__ */ __name(({ subject, provider, activity, photos,
|
|
|
20589
20589
|
};
|
|
20590
20590
|
}, "scorePerson");
|
|
20591
20591
|
|
|
20592
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20592
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/http/time-limit.js
|
|
20593
20593
|
var timeLimit = /* @__PURE__ */ __name((ms) => {
|
|
20594
20594
|
const controller = new AbortController();
|
|
20595
20595
|
const timer = setTimeout(() => controller.abort(new DOMException("The operation timed out.", "TimeoutError")), ms);
|
|
@@ -20605,7 +20605,7 @@ var withTimeLimit = /* @__PURE__ */ __name(async (ms, run2) => {
|
|
|
20605
20605
|
}
|
|
20606
20606
|
}, "withTimeLimit");
|
|
20607
20607
|
|
|
20608
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20608
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/botcheck/registries.js
|
|
20609
20609
|
var REGISTRIES = {
|
|
20610
20610
|
cas: { title: "Combot Anti-Spam (CAS)", docs: "https://cas.chat/api" },
|
|
20611
20611
|
lols: { title: "lols.bot", docs: "https://api.lols.bot/lols-bot.json" }
|
|
@@ -20692,7 +20692,7 @@ var notCovered = /* @__PURE__ */ __name((messenger, now = /* @__PURE__ */ new Da
|
|
|
20692
20692
|
detail: `lists Telegram accounts only, not ${messenger} ones`
|
|
20693
20693
|
})), "notCovered");
|
|
20694
20694
|
|
|
20695
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20695
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/botcheck/service.js
|
|
20696
20696
|
var ACTIVITY_MESSAGES = 1e3;
|
|
20697
20697
|
var botCheckService = /* @__PURE__ */ __name((deps) => {
|
|
20698
20698
|
const subjectOf = /* @__PURE__ */ __name(async (reference) => {
|
|
@@ -20780,7 +20780,7 @@ var botCheckService = /* @__PURE__ */ __name((deps) => {
|
|
|
20780
20780
|
};
|
|
20781
20781
|
}, "botCheckService");
|
|
20782
20782
|
|
|
20783
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20783
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/domain/thread.js
|
|
20784
20784
|
var threadIdOf = /* @__PURE__ */ __name((value) => {
|
|
20785
20785
|
if (value === void 0)
|
|
20786
20786
|
return void 0;
|
|
@@ -20790,7 +20790,7 @@ var threadIdOf = /* @__PURE__ */ __name((value) => {
|
|
|
20790
20790
|
return id2;
|
|
20791
20791
|
}, "threadIdOf");
|
|
20792
20792
|
|
|
20793
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20793
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/services/chat-stats.js
|
|
20794
20794
|
var TOP_POSTS = 5;
|
|
20795
20795
|
var JOINS = /* @__PURE__ */ new Set(["join", "add"]);
|
|
20796
20796
|
var LEAVES = /* @__PURE__ */ new Set(["leave", "remove"]);
|
|
@@ -20907,7 +20907,7 @@ var median = /* @__PURE__ */ __name((values) => {
|
|
|
20907
20907
|
return Math.round(sorted.length % 2 === 0 ? ((sorted[middle - 1] ?? upper) + upper) / 2 : upper);
|
|
20908
20908
|
}, "median");
|
|
20909
20909
|
|
|
20910
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20910
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/services/member-history.js
|
|
20911
20911
|
var memberEvents = /* @__PURE__ */ __name((stays, revisions, since = 0) => {
|
|
20912
20912
|
const events = [];
|
|
20913
20913
|
for (const stay of stays) {
|
|
@@ -20939,7 +20939,7 @@ var memberEvents = /* @__PURE__ */ __name((stays, revisions, since = 0) => {
|
|
|
20939
20939
|
return events.filter(({ at }) => Date.parse(at) >= since).sort((a, b) => Date.parse(a.at) - Date.parse(b.at) || a.id.localeCompare(b.id));
|
|
20940
20940
|
}, "memberEvents");
|
|
20941
20941
|
|
|
20942
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20942
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/services/chats.js
|
|
20943
20943
|
var EVENTS_DAYS = 7;
|
|
20944
20944
|
var TRACKED_DAYS = 30;
|
|
20945
20945
|
var STATS_PAGE = 1e3;
|
|
@@ -21234,7 +21234,7 @@ var storedMembers = /* @__PURE__ */ __name(async (store, chatId) => {
|
|
|
21234
21234
|
return members.length === 0 ? null : members;
|
|
21235
21235
|
}, "storedMembers");
|
|
21236
21236
|
|
|
21237
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21237
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/services/inbox.js
|
|
21238
21238
|
var INBOX_CHATS = 20;
|
|
21239
21239
|
var REVIEW_DAYS = 3;
|
|
21240
21240
|
var UNANSWERED_HOURS = 24;
|
|
@@ -21442,7 +21442,7 @@ var inboxService = /* @__PURE__ */ __name((deps) => {
|
|
|
21442
21442
|
};
|
|
21443
21443
|
}, "inboxService");
|
|
21444
21444
|
|
|
21445
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21445
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/services/person-meetings.js
|
|
21446
21446
|
var SCAN = 1e3;
|
|
21447
21447
|
var personMeetings = /* @__PURE__ */ __name(async (store, people, accounts, { limit = 10, since, until } = {}) => {
|
|
21448
21448
|
const byId2 = new Map(accounts.map((one) => [one.id, one]));
|
|
@@ -21494,7 +21494,7 @@ var personMeetings = /* @__PURE__ */ __name(async (store, people, accounts, { li
|
|
|
21494
21494
|
return { items, total: newest.length, hasMore: cut || newest.length > limit };
|
|
21495
21495
|
}, "personMeetings");
|
|
21496
21496
|
|
|
21497
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21497
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/services/person-context.js
|
|
21498
21498
|
var CONTEXT_MESSAGES2 = 10;
|
|
21499
21499
|
var CONTEXT_BYTES = 64 * 1024;
|
|
21500
21500
|
var toContext = /* @__PURE__ */ __name((key, message, chatTitle2) => ({
|
|
@@ -21800,10 +21800,10 @@ var personMessages = /* @__PURE__ */ __name(async (store, asked, reference, { ch
|
|
|
21800
21800
|
};
|
|
21801
21801
|
}, "personMessages");
|
|
21802
21802
|
|
|
21803
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21803
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/services/meeting-evidence.js
|
|
21804
21804
|
import { createHash } from "node:crypto";
|
|
21805
21805
|
|
|
21806
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21806
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/services/meeting-reference.js
|
|
21807
21807
|
var missing2 = /* @__PURE__ */ __name(() => new CliError("not_found", "the meeting evidence is unavailable for this account"), "missing");
|
|
21808
21808
|
var authorizedMeetingMetadata = /* @__PURE__ */ __name(async (store, accountId, reference, options2 = {}) => {
|
|
21809
21809
|
const parsed = parseMeetingReference(reference);
|
|
@@ -21821,7 +21821,7 @@ var authorizedMeetingMetadata = /* @__PURE__ */ __name(async (store, accountId,
|
|
|
21821
21821
|
return { parsed, meeting };
|
|
21822
21822
|
}, "authorizedMeetingMetadata");
|
|
21823
21823
|
|
|
21824
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21824
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/services/meeting-evidence.js
|
|
21825
21825
|
var hash = /* @__PURE__ */ __name((value) => createHash("sha256").update(JSON.stringify(value)).digest("hex"), "hash");
|
|
21826
21826
|
var checkMeetingCancelled = /* @__PURE__ */ __name((signal) => {
|
|
21827
21827
|
if (signal?.aborted)
|
|
@@ -22020,7 +22020,7 @@ var readMeetingEvidence = /* @__PURE__ */ __name(async (store, accountId, refere
|
|
|
22020
22020
|
return { ...packet, fingerprint: hash(packet) };
|
|
22021
22021
|
}, "readMeetingEvidence");
|
|
22022
22022
|
|
|
22023
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22023
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/services/person-meeting-context.js
|
|
22024
22024
|
var personMeetingContext = /* @__PURE__ */ __name(async (store, personReference, options2) => {
|
|
22025
22025
|
const { meetings = 10, cues = 5, bytes: bytes2 = 64 * 1024, scanLimit = 1e3, since, signal } = options2;
|
|
22026
22026
|
const requestedAccounts = options2.accountIds;
|
|
@@ -22119,7 +22119,7 @@ var personMeetingContext = /* @__PURE__ */ __name(async (store, personReference,
|
|
|
22119
22119
|
};
|
|
22120
22120
|
}, "personMeetingContext");
|
|
22121
22121
|
|
|
22122
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22122
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/services/person-preparation.js
|
|
22123
22123
|
var PREPARE_BYTES = 96 * 1024;
|
|
22124
22124
|
var MEETINGS = 5;
|
|
22125
22125
|
var CUES = 3;
|
|
@@ -22242,7 +22242,7 @@ var meetingsOf = /* @__PURE__ */ __name(async (store, uid, stored, since, left)
|
|
|
22242
22242
|
}
|
|
22243
22243
|
}, "meetingsOf");
|
|
22244
22244
|
|
|
22245
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22245
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/services/person-profile.js
|
|
22246
22246
|
var personProfile = /* @__PURE__ */ __name(async (deps, person, known2) => {
|
|
22247
22247
|
const online = deps.offline ? void 0 : await deps.connection();
|
|
22248
22248
|
const held = await storeIfOpen(deps);
|
|
@@ -22312,7 +22312,7 @@ var quiet = /* @__PURE__ */ __name((facts) => facts.chats.map(({ id: id2, title,
|
|
|
22312
22312
|
complete: false
|
|
22313
22313
|
})), "quiet");
|
|
22314
22314
|
|
|
22315
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22315
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/services/person-timeline.js
|
|
22316
22316
|
var TIMELINE_ITEMS = 50;
|
|
22317
22317
|
var TIMELINE_MAX = 500;
|
|
22318
22318
|
var SCOPES = ["personal", "work"];
|
|
@@ -22374,7 +22374,7 @@ var personTimeline = /* @__PURE__ */ __name(async (store, asked, reference, { sc
|
|
|
22374
22374
|
};
|
|
22375
22375
|
}, "personTimeline");
|
|
22376
22376
|
|
|
22377
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22377
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/services/chat-coverage.js
|
|
22378
22378
|
var chatCoverage = /* @__PURE__ */ __name(async (store, account, chatIds) => {
|
|
22379
22379
|
const ids = [...new Set(chatIds)];
|
|
22380
22380
|
if (ids.length === 0)
|
|
@@ -22400,7 +22400,7 @@ var chatCoverage = /* @__PURE__ */ __name(async (store, account, chatIds) => {
|
|
|
22400
22400
|
}));
|
|
22401
22401
|
}, "chatCoverage");
|
|
22402
22402
|
|
|
22403
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22403
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/context/evidence-response.js
|
|
22404
22404
|
var contextSourceKey = /* @__PURE__ */ __name((source) => JSON.stringify([source.kind, source.accountId, source.provider, source.account]), "contextSourceKey");
|
|
22405
22405
|
var validateContextEvidencePage = /* @__PURE__ */ __name((page, request) => {
|
|
22406
22406
|
const fail2 = /* @__PURE__ */ __name(() => {
|
|
@@ -22464,7 +22464,7 @@ var validateContextEvidencePage = /* @__PURE__ */ __name((page, request) => {
|
|
|
22464
22464
|
}
|
|
22465
22465
|
}, "validateContextEvidencePage");
|
|
22466
22466
|
|
|
22467
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22467
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/context/read-budget.js
|
|
22468
22468
|
var contextReadBudget = /* @__PURE__ */ __name((limits = {}) => {
|
|
22469
22469
|
if (!limits || typeof limits !== "object" || Array.isArray(limits))
|
|
22470
22470
|
throw new CliError("validation_error", "limits needs a context read allowance");
|
|
@@ -22517,7 +22517,7 @@ var contextReadBudget = /* @__PURE__ */ __name((limits = {}) => {
|
|
|
22517
22517
|
};
|
|
22518
22518
|
}, "contextReadBudget");
|
|
22519
22519
|
|
|
22520
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22520
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/services/context-evidence.js
|
|
22521
22521
|
var createContextEvidenceReader = /* @__PURE__ */ __name((port, allowed, limits) => {
|
|
22522
22522
|
if (!port || typeof port.read !== "function")
|
|
22523
22523
|
throw new CliError("configuration_error", "context evidence reader is unavailable");
|
|
@@ -22561,7 +22561,7 @@ var createContextEvidenceReader = /* @__PURE__ */ __name((port, allowed, limits)
|
|
|
22561
22561
|
};
|
|
22562
22562
|
}, "createContextEvidenceReader");
|
|
22563
22563
|
|
|
22564
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22564
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/services/excerpt.js
|
|
22565
22565
|
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");
|
|
22566
22566
|
var excerpt = /* @__PURE__ */ __name((text2, query, size2 = 240, options2 = {}) => {
|
|
22567
22567
|
const flat = text2.replace(/\s+/g, " ").trim();
|
|
@@ -22577,7 +22577,7 @@ var excerpt = /* @__PURE__ */ __name((text2, query, size2 = 240, options2 = {})
|
|
|
22577
22577
|
}, "excerpt");
|
|
22578
22578
|
var withExcerpt = /* @__PURE__ */ __name(({ matchedText, ...hit }, query) => ({ ...hit, excerpt: excerpt(matchedText ?? hit.text, query) }), "withExcerpt");
|
|
22579
22579
|
|
|
22580
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22580
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/services/project-gathering-around.js
|
|
22581
22581
|
var storedMessageNeighbours = /* @__PURE__ */ __name((messages) => ({
|
|
22582
22582
|
async around(ref, window3) {
|
|
22583
22583
|
const at = parseLocator(ref);
|
|
@@ -22672,7 +22672,7 @@ var storedNeighbours = /* @__PURE__ */ __name((store) => {
|
|
|
22672
22672
|
};
|
|
22673
22673
|
}, "storedNeighbours");
|
|
22674
22674
|
|
|
22675
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22675
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/services/project-gathering-request.js
|
|
22676
22676
|
import { createHash as createHash2 } from "node:crypto";
|
|
22677
22677
|
var DAY = 864e5;
|
|
22678
22678
|
var MAX_TIME = 864e13;
|
|
@@ -22988,7 +22988,7 @@ var decodeCheckpoint = /* @__PURE__ */ __name((text2, plan) => {
|
|
|
22988
22988
|
return value;
|
|
22989
22989
|
}, "decodeCheckpoint");
|
|
22990
22990
|
|
|
22991
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22991
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/services/project-gathering.js
|
|
22992
22992
|
var terminal = /* @__PURE__ */ new Set(["done", "unavailable", "failed"]);
|
|
22993
22993
|
var PAGE2 = 20;
|
|
22994
22994
|
var PEOPLE = 20;
|
|
@@ -23392,7 +23392,7 @@ var peopleOf = /* @__PURE__ */ __name((items, senderOf) => {
|
|
|
23392
23392
|
return [...byKey.values()].sort((a, b) => b.items - a.items || a.name.localeCompare(b.name));
|
|
23393
23393
|
}, "peopleOf");
|
|
23394
23394
|
|
|
23395
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23395
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/services/meeting-project-candidate-matching.js
|
|
23396
23396
|
var normalizedText = /* @__PURE__ */ __name((text2) => text2.normalize("NFKC").toLowerCase().replace(/\s+/gu, " "), "normalizedText");
|
|
23397
23397
|
var termsOf = /* @__PURE__ */ __name((entry) => [
|
|
23398
23398
|
{ name: entry.name, kind: "canonical" },
|
|
@@ -23436,7 +23436,7 @@ var matchVocabularyTerms = /* @__PURE__ */ __name((catalog, texts) => {
|
|
|
23436
23436
|
return result.sort((a, b) => Number(a.entry.id) - Number(b.entry.id));
|
|
23437
23437
|
}, "matchVocabularyTerms");
|
|
23438
23438
|
|
|
23439
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23439
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/services/project-gathering-mentions.js
|
|
23440
23440
|
var KINDS = ["project", "tag", "topic"];
|
|
23441
23441
|
var findEvidenceMentions = /* @__PURE__ */ __name(async (vocabulary, gathering, options2 = {}) => {
|
|
23442
23442
|
if (typeof vocabulary?.vocabulary !== "function")
|
|
@@ -23491,7 +23491,7 @@ var findEvidenceMentions = /* @__PURE__ */ __name(async (vocabulary, gathering,
|
|
|
23491
23491
|
};
|
|
23492
23492
|
}, "findEvidenceMentions");
|
|
23493
23493
|
|
|
23494
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23494
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/services/project-purposes.js
|
|
23495
23495
|
var BUILT_IN_PURPOSES = ["work", "sales", "support", "other"];
|
|
23496
23496
|
var DEFAULT_PURPOSES = ["work"];
|
|
23497
23497
|
var LINK_PURPOSE = "work";
|
|
@@ -23521,7 +23521,7 @@ var purposeList = /* @__PURE__ */ __name((value, previous = []) => [
|
|
|
23521
23521
|
...value.split(",").map((one) => one.trim()).filter(Boolean)
|
|
23522
23522
|
], "purposeList");
|
|
23523
23523
|
|
|
23524
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23524
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/services/stored-project-gathering.js
|
|
23525
23525
|
var storedChatCount = /* @__PURE__ */ __name((store) => async (account, chatId, { since, until }) => {
|
|
23526
23526
|
const window3 = { since: new Date(since).toISOString(), until: new Date(until - 1).toISOString() };
|
|
23527
23527
|
const [messages, newest, oldest] = await Promise.all([
|
|
@@ -23832,7 +23832,7 @@ var purposeHintOf = /* @__PURE__ */ __name((linked, rows, of) => {
|
|
|
23832
23832
|
return { chat: top.ref, relationship: link4.relationship, items, of };
|
|
23833
23833
|
}, "purposeHintOf");
|
|
23834
23834
|
|
|
23835
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23835
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/services/people.js
|
|
23836
23836
|
var peopleService = /* @__PURE__ */ __name((deps) => {
|
|
23837
23837
|
const localCard = /* @__PURE__ */ __name(async (card, includeNotes = false) => {
|
|
23838
23838
|
const held = await storeIfOpen(deps);
|
|
@@ -24097,7 +24097,7 @@ var withoutPhone = /* @__PURE__ */ __name((answer) => {
|
|
|
24097
24097
|
return rest;
|
|
24098
24098
|
}, "withoutPhone");
|
|
24099
24099
|
|
|
24100
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24100
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/services/task-stats.js
|
|
24101
24101
|
var TASK_STATS_BY = ["chat", "meeting", "project"];
|
|
24102
24102
|
var PERIOD_FIELD = "created";
|
|
24103
24103
|
var refuseNestedPeriod = /* @__PURE__ */ __name((node, top = true) => {
|
|
@@ -24228,7 +24228,7 @@ var meetingNames = /* @__PURE__ */ __name(async (store, groups) => {
|
|
|
24228
24228
|
}));
|
|
24229
24229
|
}, "meetingNames");
|
|
24230
24230
|
|
|
24231
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24231
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/services/task-tag-filters.js
|
|
24232
24232
|
var taskTagFilters = /* @__PURE__ */ __name(async (store, query) => {
|
|
24233
24233
|
const tags = /* @__PURE__ */ new Map();
|
|
24234
24234
|
for (const node of query ? walkQuery(query.root) : [])
|
|
@@ -24237,7 +24237,7 @@ var taskTagFilters = /* @__PURE__ */ __name(async (store, query) => {
|
|
|
24237
24237
|
return tags;
|
|
24238
24238
|
}, "taskTagFilters");
|
|
24239
24239
|
|
|
24240
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24240
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/services/tasks.js
|
|
24241
24241
|
var TASK_QUERY = {
|
|
24242
24242
|
entity: "task",
|
|
24243
24243
|
backend: "sql",
|
|
@@ -24737,7 +24737,7 @@ var taskView = /* @__PURE__ */ __name(async (store, account, task2) => {
|
|
|
24737
24737
|
};
|
|
24738
24738
|
}, "taskView");
|
|
24739
24739
|
|
|
24740
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24740
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/mail/owed.js
|
|
24741
24741
|
var mailTurn = /* @__PURE__ */ __name((newest) => {
|
|
24742
24742
|
if (newest === null)
|
|
24743
24743
|
return null;
|
|
@@ -24746,7 +24746,7 @@ var mailTurn = /* @__PURE__ */ __name((newest) => {
|
|
|
24746
24746
|
return newest.addressed ? "owed" : null;
|
|
24747
24747
|
}, "mailTurn");
|
|
24748
24748
|
|
|
24749
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24749
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/services/agenda-mail.js
|
|
24750
24750
|
var absent = /* @__PURE__ */ __name((error) => {
|
|
24751
24751
|
if (error instanceof CliError && error.code === "not_found")
|
|
24752
24752
|
return void 0;
|
|
@@ -24804,7 +24804,7 @@ var mailActivity = /* @__PURE__ */ __name(async (store, account, since, chats) =
|
|
|
24804
24804
|
};
|
|
24805
24805
|
}, "mailActivity");
|
|
24806
24806
|
|
|
24807
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24807
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/services/agenda.js
|
|
24808
24808
|
var DAY2 = 864e5;
|
|
24809
24809
|
var AGENDA_DEFAULTS = { unanswered: DAY2, waiting: 7 * DAY2 };
|
|
24810
24810
|
var CLAIMS = ["none", "mine", "others", "any"];
|
|
@@ -25058,18 +25058,18 @@ var agendaItem = /* @__PURE__ */ __name((shown) => {
|
|
|
25058
25058
|
};
|
|
25059
25059
|
}, "agendaItem");
|
|
25060
25060
|
|
|
25061
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25061
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/services/media-archive.js
|
|
25062
25062
|
import { setTimeout as sleep3 } from "node:timers/promises";
|
|
25063
25063
|
|
|
25064
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25064
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/services/media-archive-files.js
|
|
25065
25065
|
import { lstat } from "node:fs/promises";
|
|
25066
25066
|
|
|
25067
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25067
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-store.js
|
|
25068
25068
|
import { createHash as createHash4, randomUUID as randomUUID3 } from "node:crypto";
|
|
25069
25069
|
import { open as open3, rename as rename2, unlink as unlink2 } from "node:fs/promises";
|
|
25070
25070
|
import { join as join5 } from "node:path";
|
|
25071
25071
|
|
|
25072
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25072
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-metadata.js
|
|
25073
25073
|
import { createHash as createHash3 } from "node:crypto";
|
|
25074
25074
|
var metadataLimit = 16384;
|
|
25075
25075
|
var partialIdentity = /* @__PURE__ */ __name((locator) => JSON.stringify([locator.provider, locator.account, locator.occurrenceId, locator.assetId]), "partialIdentity");
|
|
@@ -25129,7 +25129,7 @@ var readPartialMetadata = /* @__PURE__ */ __name(async (path, locator, maxBytes,
|
|
|
25129
25129
|
}
|
|
25130
25130
|
}, "readPartialMetadata");
|
|
25131
25131
|
|
|
25132
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25132
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-writer.js
|
|
25133
25133
|
import { randomUUID as randomUUID2 } from "node:crypto";
|
|
25134
25134
|
import { open as open2, rename, unlink } from "node:fs/promises";
|
|
25135
25135
|
import { join as join4 } from "node:path";
|
|
@@ -25221,7 +25221,7 @@ var partialWriter = /* @__PURE__ */ __name(async (input) => {
|
|
|
25221
25221
|
};
|
|
25222
25222
|
}, "partialWriter");
|
|
25223
25223
|
|
|
25224
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25224
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-store.js
|
|
25225
25225
|
var NativeRecordingPartialStore = class {
|
|
25226
25226
|
static {
|
|
25227
25227
|
__name(this, "NativeRecordingPartialStore");
|
|
@@ -25328,12 +25328,12 @@ var NativeRecordingPartialStore = class {
|
|
|
25328
25328
|
}
|
|
25329
25329
|
};
|
|
25330
25330
|
|
|
25331
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25331
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication.js
|
|
25332
25332
|
import { createHash as createHash5 } from "node:crypto";
|
|
25333
25333
|
import { link as link2 } from "node:fs/promises";
|
|
25334
25334
|
import { basename as basename2, dirname as dirname5, join as join7, resolve as resolve2 } from "node:path";
|
|
25335
25335
|
|
|
25336
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25336
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication-files.js
|
|
25337
25337
|
import { unlink as unlink3 } from "node:fs/promises";
|
|
25338
25338
|
var verifiedPublicationFile = /* @__PURE__ */ __name(async (path, expected2, signal, writable = false) => {
|
|
25339
25339
|
signal?.throwIfAborted();
|
|
@@ -25368,7 +25368,7 @@ var commitPublication = /* @__PURE__ */ __name(async (root, partialPath, finalPa
|
|
|
25368
25368
|
signal?.throwIfAborted();
|
|
25369
25369
|
}, "commitPublication");
|
|
25370
25370
|
|
|
25371
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25371
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication-journal.js
|
|
25372
25372
|
import { randomUUID as randomUUID4 } from "node:crypto";
|
|
25373
25373
|
import { open as open4, rename as rename3, unlink as unlink4 } from "node:fs/promises";
|
|
25374
25374
|
import { join as join6 } from "node:path";
|
|
@@ -25441,7 +25441,7 @@ var writePublicationJournal = /* @__PURE__ */ __name(async (root, path, prefix,
|
|
|
25441
25441
|
}
|
|
25442
25442
|
}, "writePublicationJournal");
|
|
25443
25443
|
|
|
25444
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25444
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication.js
|
|
25445
25445
|
var NativeRecordingPublication = class {
|
|
25446
25446
|
static {
|
|
25447
25447
|
__name(this, "NativeRecordingPublication");
|
|
@@ -25514,7 +25514,7 @@ var NativeRecordingPublication = class {
|
|
|
25514
25514
|
}
|
|
25515
25515
|
};
|
|
25516
25516
|
|
|
25517
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25517
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/services/media-archive-manifest.js
|
|
25518
25518
|
import { createHash as createHash6 } from "node:crypto";
|
|
25519
25519
|
import { readdir } from "node:fs/promises";
|
|
25520
25520
|
import { isAbsolute as isAbsolute2, join as join8, resolve as resolve3 } from "node:path";
|
|
@@ -25601,7 +25601,7 @@ var commitMediaEntry = /* @__PURE__ */ __name((root, one, beforePublish) => writ
|
|
|
25601
25601
|
beforePublish
|
|
25602
25602
|
}), "commitMediaEntry");
|
|
25603
25603
|
|
|
25604
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25604
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/services/media-archive-files.js
|
|
25605
25605
|
var validator = '"media-completed-v1"';
|
|
25606
25606
|
var maximumFileBytes = 64 * 1024 * 1024 * 1024;
|
|
25607
25607
|
var archiveMediaFile = /* @__PURE__ */ __name(async (root, identity, kind, file, beforeWrite, signal, metadata = {}) => {
|
|
@@ -25702,7 +25702,7 @@ var archiveMediaFile = /* @__PURE__ */ __name(async (root, identity, kind, file,
|
|
|
25702
25702
|
return entry;
|
|
25703
25703
|
}, "archiveMediaFile");
|
|
25704
25704
|
|
|
25705
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25705
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/services/media-archive-locks.js
|
|
25706
25706
|
import { mkdir, realpath } from "node:fs/promises";
|
|
25707
25707
|
import { join as join9, resolve as resolve4 } from "node:path";
|
|
25708
25708
|
var archiveLocations = /* @__PURE__ */ __name(async (initial, signal) => {
|
|
@@ -25769,7 +25769,7 @@ var withMediaArchiveLocks = /* @__PURE__ */ __name(async (directory2, signal, ru
|
|
|
25769
25769
|
throw new CliError("validation_error", "archive locations changed during locking; run the command again");
|
|
25770
25770
|
}, "withMediaArchiveLocks");
|
|
25771
25771
|
|
|
25772
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25772
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/services/media-archive.js
|
|
25773
25773
|
var validateMediaSince = /* @__PURE__ */ __name((value, flag = "--since-time") => {
|
|
25774
25774
|
if (value === void 0)
|
|
25775
25775
|
return void 0;
|
|
@@ -25922,7 +25922,7 @@ var archiveMedia = /* @__PURE__ */ __name(async (ports, options2) => {
|
|
|
25922
25922
|
}, { create: true });
|
|
25923
25923
|
}, "archiveMedia");
|
|
25924
25924
|
|
|
25925
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25925
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/services/media-archive-move.js
|
|
25926
25926
|
import { realpath as realpath2, unlink as unlink5 } from "node:fs/promises";
|
|
25927
25927
|
import { basename as basename3, dirname as dirname6, join as join10, resolve as resolve5 } from "node:path";
|
|
25928
25928
|
var canonicalDestination = /* @__PURE__ */ __name(async (directory2) => {
|
|
@@ -26075,7 +26075,7 @@ var moveMediaArchive = /* @__PURE__ */ __name(async (options2) => {
|
|
|
26075
26075
|
}, { additional: [target2], createAdditional: !options2.dryRun });
|
|
26076
26076
|
}, "moveMediaArchive");
|
|
26077
26077
|
|
|
26078
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26078
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/services/model-downloads.js
|
|
26079
26079
|
import { writeFileSync as writeFileSync2 } from "node:fs";
|
|
26080
26080
|
import { join as join11 } from "node:path";
|
|
26081
26081
|
var bytesOf = /* @__PURE__ */ __name((model) => model.files.reduce((sum2, file) => sum2 + file.bytes, 0), "bytesOf");
|
|
@@ -26100,7 +26100,7 @@ var downloadTextModel = /* @__PURE__ */ __name(async (id2, { env, progress = /*
|
|
|
26100
26100
|
`);
|
|
26101
26101
|
await nativeRuntime({ env, progress });
|
|
26102
26102
|
progress(`${model.id}: loading it once to check it works`);
|
|
26103
|
-
const { openEmbedder: openEmbedder2 } = await import("./embed-
|
|
26103
|
+
const { openEmbedder: openEmbedder2 } = await import("./embed-OHENS6RB.js");
|
|
26104
26104
|
const embedder = await openEmbedder2(model, directory2);
|
|
26105
26105
|
try {
|
|
26106
26106
|
const [vector] = await embedder.embed(["check"], "query");
|
|
@@ -26121,7 +26121,7 @@ var downloadRerankModel = /* @__PURE__ */ __name(async (id2, { env, progress = /
|
|
|
26121
26121
|
}
|
|
26122
26122
|
await nativeRuntime({ env, progress });
|
|
26123
26123
|
progress(`${model.id}: loading it once to check it works`);
|
|
26124
|
-
const { openReranker } = await import("./rerank-
|
|
26124
|
+
const { openReranker } = await import("./rerank-IGX4EFA2.js");
|
|
26125
26125
|
const reranker = await openReranker(model, directory2);
|
|
26126
26126
|
try {
|
|
26127
26127
|
await reranker.score("check", ["check"]);
|
|
@@ -26139,7 +26139,7 @@ var downloadImageModel = /* @__PURE__ */ __name(async (id2, { env, progress = /*
|
|
|
26139
26139
|
await installFiles(placedImage(model, directory2), { progress, ...bytes2 ? { bytes: bytes2 } : {} });
|
|
26140
26140
|
}
|
|
26141
26141
|
progress(`${model.id}: loading it once to check it works`);
|
|
26142
|
-
const { openPictureEmbedder } = await import("./embedder-
|
|
26142
|
+
const { openPictureEmbedder } = await import("./embedder-JINT4Y4O.js");
|
|
26143
26143
|
const embedder = await openPictureEmbedder(model, directory2);
|
|
26144
26144
|
try {
|
|
26145
26145
|
const vector = await embedder.embedQuery("check");
|
|
@@ -26151,7 +26151,7 @@ var downloadImageModel = /* @__PURE__ */ __name(async (id2, { env, progress = /*
|
|
|
26151
26151
|
return { model, directory: directory2 };
|
|
26152
26152
|
}, "downloadImageModel");
|
|
26153
26153
|
|
|
26154
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26154
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/domain/money-words.js
|
|
26155
26155
|
var MONEY_REQUEST = "money-request";
|
|
26156
26156
|
var MONEY_DONE = "money-done";
|
|
26157
26157
|
var PROMISE = "promise";
|
|
@@ -26185,10 +26185,10 @@ var MONEY_WORDS = [
|
|
|
26185
26185
|
}
|
|
26186
26186
|
];
|
|
26187
26187
|
|
|
26188
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26188
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/services/money-words.js
|
|
26189
26189
|
var moneyClassesOf = /* @__PURE__ */ __name((text2) => listsHit(text2, MONEY_WORDS), "moneyClassesOf");
|
|
26190
26190
|
|
|
26191
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26191
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/domain/status-words.js
|
|
26192
26192
|
var words = /* @__PURE__ */ __name((forms) => new RegExp(`(?<![\\p{L}\\p{N}])(?:${forms.join("|")})(?![\\p{L}\\p{N}])`, "iu"), "words");
|
|
26193
26193
|
var MONEY_DONE_FORMS = words([
|
|
26194
26194
|
"\u043E\u043F\u043B\u0430\u0442\u0438\u043B[\u0430\u0438]?",
|
|
@@ -26228,7 +26228,7 @@ var PROMISE_FORMS = words([
|
|
|
26228
26228
|
"estar\xE1 listo"
|
|
26229
26229
|
]);
|
|
26230
26230
|
|
|
26231
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26231
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/services/project-status/items.js
|
|
26232
26232
|
var EXCERPT_CHARS = 80;
|
|
26233
26233
|
var excerpt2 = /* @__PURE__ */ __name((text2) => {
|
|
26234
26234
|
const flat = text2.replace(/\s+/g, " ").trim();
|
|
@@ -26250,7 +26250,7 @@ var whoOf = /* @__PURE__ */ __name((message) => ({
|
|
|
26250
26250
|
var fromOwner = /* @__PURE__ */ __name((message) => message.outgoing === true, "fromOwner");
|
|
26251
26251
|
var day = /* @__PURE__ */ __name((at) => new Date(at).toISOString().slice(0, 10), "day");
|
|
26252
26252
|
|
|
26253
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26253
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/services/project-status/signals/amounts.js
|
|
26254
26254
|
var MONEY = DEFAULT_TASK_CATEGORIES.filter((category) => category.name === "money");
|
|
26255
26255
|
var verbOf = /* @__PURE__ */ __name((text2) => {
|
|
26256
26256
|
if (MONEY_DONE_FORMS.test(text2))
|
|
@@ -26331,7 +26331,7 @@ var amounts = {
|
|
|
26331
26331
|
attention: /* @__PURE__ */ __name((items) => items.flatMap((item2) => item2.chat !== null && item2.data.state === "asked" ? [{ chat: item2.chat, weight: 2, why: "money asked" }] : []), "attention")
|
|
26332
26332
|
};
|
|
26333
26333
|
|
|
26334
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26334
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/services/project-status/signals/children.js
|
|
26335
26335
|
var children = {
|
|
26336
26336
|
id: "children",
|
|
26337
26337
|
version: 1,
|
|
@@ -26360,7 +26360,7 @@ var children = {
|
|
|
26360
26360
|
}, "read")
|
|
26361
26361
|
};
|
|
26362
26362
|
|
|
26363
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26363
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/services/project-status/signals/coverage.js
|
|
26364
26364
|
var coverage = {
|
|
26365
26365
|
id: "coverage",
|
|
26366
26366
|
version: 1,
|
|
@@ -26389,7 +26389,7 @@ var coverage = {
|
|
|
26389
26389
|
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")
|
|
26390
26390
|
};
|
|
26391
26391
|
|
|
26392
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26392
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/services/project-status/signals/payments.js
|
|
26393
26393
|
var holding2 = /* @__PURE__ */ __name((row) => row.review !== "rejected", "holding");
|
|
26394
26394
|
var item = /* @__PURE__ */ __name((row, at, data) => ({
|
|
26395
26395
|
signal: "payments",
|
|
@@ -26439,7 +26439,7 @@ var payments = {
|
|
|
26439
26439
|
}, "read")
|
|
26440
26440
|
};
|
|
26441
26441
|
|
|
26442
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26442
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/services/project-status/signals/promises.js
|
|
26443
26443
|
var PATTERNS_PER_CHAT = 3;
|
|
26444
26444
|
var DAY3 = 864e5;
|
|
26445
26445
|
var KINDS2 = /* @__PURE__ */ new Set(["promise", "request"]);
|
|
@@ -26528,7 +26528,7 @@ var promises = {
|
|
|
26528
26528
|
}, "read")
|
|
26529
26529
|
};
|
|
26530
26530
|
|
|
26531
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26531
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/services/project-status/signals/questions.js
|
|
26532
26532
|
var PER_SIDE = 5;
|
|
26533
26533
|
var WEEK = 7 * 864e5;
|
|
26534
26534
|
var NOBODY = /* @__PURE__ */ new Set();
|
|
@@ -26559,7 +26559,7 @@ var questions2 = {
|
|
|
26559
26559
|
}, "attention")
|
|
26560
26560
|
};
|
|
26561
26561
|
|
|
26562
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26562
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/services/project-status/signals/reply-next.js
|
|
26563
26563
|
var targetOf = /* @__PURE__ */ __name((message, chat, owners) => {
|
|
26564
26564
|
const byId2 = /* @__PURE__ */ __name((id2) => chat.messages.find((one) => one.id === id2), "byId");
|
|
26565
26565
|
const quoted = message.replyTo ?? (message.replyToId === void 0 ? void 0 : byId2(message.replyToId));
|
|
@@ -26627,7 +26627,7 @@ var replyNext = {
|
|
|
26627
26627
|
attention: /* @__PURE__ */ __name((items) => items.flatMap((item2) => item2.chat !== null && item2.data.next === "owner" ? [{ chat: item2.chat, weight: 2, why: "your move" }] : []), "attention")
|
|
26628
26628
|
};
|
|
26629
26629
|
|
|
26630
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26630
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/services/project-status/signals/topics.js
|
|
26631
26631
|
var escaped = /* @__PURE__ */ __name((text2) => text2.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), "escaped");
|
|
26632
26632
|
var wholeWord = /* @__PURE__ */ __name((word) => new RegExp(`(?<![\\p{L}\\p{N}])${escaped(word)}(?![\\p{L}\\p{N}])`, "u"), "wholeWord");
|
|
26633
26633
|
var matcherOf = /* @__PURE__ */ __name((query) => {
|
|
@@ -26673,7 +26673,7 @@ var topics = {
|
|
|
26673
26673
|
}, "read")
|
|
26674
26674
|
};
|
|
26675
26675
|
|
|
26676
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26676
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/services/project-status/signals/index.js
|
|
26677
26677
|
var STATUS_SIGNALS = [
|
|
26678
26678
|
replyNext,
|
|
26679
26679
|
questions2,
|
|
@@ -26685,7 +26685,7 @@ var STATUS_SIGNALS = [
|
|
|
26685
26685
|
children
|
|
26686
26686
|
];
|
|
26687
26687
|
|
|
26688
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26688
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/services/project-status/index.js
|
|
26689
26689
|
var DAY4 = 864e5;
|
|
26690
26690
|
var STATUS_WINDOW = 300;
|
|
26691
26691
|
var STATUS_CHATS = 16;
|
|
@@ -26874,7 +26874,7 @@ var projectStatus = /* @__PURE__ */ __name(async (store, input) => {
|
|
|
26874
26874
|
};
|
|
26875
26875
|
}, "projectStatus");
|
|
26876
26876
|
|
|
26877
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26877
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/services/account.js
|
|
26878
26878
|
var accountService = /* @__PURE__ */ __name((deps) => {
|
|
26879
26879
|
const online = /* @__PURE__ */ __name(async (command) => {
|
|
26880
26880
|
if (deps.offline)
|
|
@@ -26946,7 +26946,7 @@ var accountService = /* @__PURE__ */ __name((deps) => {
|
|
|
26946
26946
|
};
|
|
26947
26947
|
}, "accountService");
|
|
26948
26948
|
|
|
26949
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26949
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/domain/send-time.js
|
|
26950
26950
|
var MINUTE = 6e4;
|
|
26951
26951
|
var YEAR = 365 * 24 * 60 * MINUTE;
|
|
26952
26952
|
var DELAY = /^(\d+)(m|h|d)$/;
|
|
@@ -26965,7 +26965,7 @@ var sendTime = /* @__PURE__ */ __name((value, now = Date.now(), flag = "--at-tim
|
|
|
26965
26965
|
return new Date(at - at % MINUTE).toISOString();
|
|
26966
26966
|
}, "sendTime");
|
|
26967
26967
|
|
|
26968
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26968
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/services/admin.js
|
|
26969
26969
|
var recordMembership = /* @__PURE__ */ __name(async (deps, operationId, done2, change, fix, write) => {
|
|
26970
26970
|
try {
|
|
26971
26971
|
const held = await accountStoreIfOpen(deps);
|
|
@@ -27212,7 +27212,7 @@ var linkLimits = /* @__PURE__ */ __name(({ approval, expires, maxUses }) => {
|
|
|
27212
27212
|
return expires === void 0 ? void 0 : sendTime(expires, Date.now(), "--expire-time");
|
|
27213
27213
|
}, "linkLimits");
|
|
27214
27214
|
|
|
27215
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27215
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/services/mail-search.js
|
|
27216
27216
|
var THREADS_PAGE = 500;
|
|
27217
27217
|
var threadsOf = /* @__PURE__ */ __name(async (store, key) => {
|
|
27218
27218
|
const account = await store.accounts.storedAccount(key).catch(() => void 0);
|
|
@@ -27291,7 +27291,7 @@ var readMail = /* @__PURE__ */ __name(async (store, locator, { before: before2 =
|
|
|
27291
27291
|
return thread.slice(Math.max(0, at - before2), at + after + 1).map((hit) => hit.id === message ? { ...hit, anchor: true } : hit);
|
|
27292
27292
|
}, "readMail");
|
|
27293
27293
|
|
|
27294
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27294
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/services/messages-search.js
|
|
27295
27295
|
var PERSON_FIELDS = /* @__PURE__ */ new Set(["from", "to", "cc", "bcc"]);
|
|
27296
27296
|
var MAIL_FIELDS = /* @__PURE__ */ new Set(["to", "cc", "bcc", "subject", "mailbox", "label", "is", "list"]);
|
|
27297
27297
|
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");
|
|
@@ -27660,7 +27660,7 @@ var statsLucene = /* @__PURE__ */ __name(async (store, account, request, messeng
|
|
|
27660
27660
|
};
|
|
27661
27661
|
}, "statsLucene");
|
|
27662
27662
|
|
|
27663
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27663
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/services/rankings-selection.js
|
|
27664
27664
|
var RANKING_SELECTION_BYTES = 64 * 1024;
|
|
27665
27665
|
var object2 = /* @__PURE__ */ __name((value) => value !== null && typeof value === "object" && !Array.isArray(value) ? value : void 0, "object");
|
|
27666
27666
|
function invalid(message = "ranking selection is invalid \u2014 obtain a new drilldown from stats top") {
|
|
@@ -27829,7 +27829,7 @@ var readRankingSelection = /* @__PURE__ */ __name(async (store, input) => {
|
|
|
27829
27829
|
};
|
|
27830
27830
|
}, "readRankingSelection");
|
|
27831
27831
|
|
|
27832
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27832
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/services/search-record.js
|
|
27833
27833
|
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");
|
|
27834
27834
|
var searchRecordOf = /* @__PURE__ */ __name((command, params) => ({
|
|
27835
27835
|
command,
|
|
@@ -27839,7 +27839,7 @@ var searchRecordOf = /* @__PURE__ */ __name((command, params) => ({
|
|
|
27839
27839
|
fieldsVersion: FIELD_VERSION
|
|
27840
27840
|
}), "searchRecordOf");
|
|
27841
27841
|
|
|
27842
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27842
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/services/admin-statistics.js
|
|
27843
27843
|
function invalid2(message) {
|
|
27844
27844
|
throw new CliError("validation_error", message);
|
|
27845
27845
|
}
|
|
@@ -28133,7 +28133,7 @@ var adminStatisticsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
28133
28133
|
}, "evidence")
|
|
28134
28134
|
}), "adminStatisticsService");
|
|
28135
28135
|
|
|
28136
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28136
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/services/archive-gaps.js
|
|
28137
28137
|
import { createHash as createHash7, randomUUID as randomUUID5 } from "node:crypto";
|
|
28138
28138
|
var GAP_BOUNDS = { maxGaps: 5, limit: 500, timeMs: 3e4 };
|
|
28139
28139
|
var validateRepair = /* @__PURE__ */ __name((messenger, options2) => {
|
|
@@ -28270,12 +28270,12 @@ var gapsService = /* @__PURE__ */ __name((deps) => {
|
|
|
28270
28270
|
return { plan, repair };
|
|
28271
28271
|
}, "gapsService");
|
|
28272
28272
|
|
|
28273
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28273
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/services/attachments.js
|
|
28274
28274
|
import { createHash as createHash10 } from "node:crypto";
|
|
28275
28275
|
import { constants as constants2, mkdirSync as mkdirSync5 } from "node:fs";
|
|
28276
28276
|
import { lstat as lstat5, open as open6, readFile as readFile2, stat as stat2 } from "node:fs/promises";
|
|
28277
28277
|
|
|
28278
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28278
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/attachments/directory.js
|
|
28279
28279
|
import { lstat as lstat2, readdir as readdir2, realpath as realpath3 } from "node:fs/promises";
|
|
28280
28280
|
import { basename as basename4, join as join12, relative as relative2, sep as sep2 } from "node:path";
|
|
28281
28281
|
var MAX_FILES = 1e4;
|
|
@@ -28346,15 +28346,15 @@ var directoryPaths = /* @__PURE__ */ __name(async (store, chat, directory2, app,
|
|
|
28346
28346
|
return choices;
|
|
28347
28347
|
}, "directoryPaths");
|
|
28348
28348
|
|
|
28349
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28349
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/attachments/documents.js
|
|
28350
28350
|
import { posix } from "node:path";
|
|
28351
28351
|
|
|
28352
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28352
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/attachments/container.js
|
|
28353
28353
|
import { setImmediate as tick } from "node:timers/promises";
|
|
28354
28354
|
import { crc32 } from "node:zlib";
|
|
28355
28355
|
var import_xmldom = __toESM(require_lib(), 1);
|
|
28356
28356
|
|
|
28357
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28357
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/attachments/encoding.js
|
|
28358
28358
|
var import_chardet = __toESM(require_lib2(), 1);
|
|
28359
28359
|
var import_iconv_lite = __toESM(require_lib3(), 1);
|
|
28360
28360
|
var SAMPLE = 65536;
|
|
@@ -28456,7 +28456,7 @@ var decodeXml = /* @__PURE__ */ __name((bytes2) => {
|
|
|
28456
28456
|
return result.text;
|
|
28457
28457
|
}, "decodeXml");
|
|
28458
28458
|
|
|
28459
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28459
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/attachments/container.js
|
|
28460
28460
|
var MAX_PART = 10 * 1024 * 1024;
|
|
28461
28461
|
var MAX_ENTRIES = 1e3;
|
|
28462
28462
|
var decoder = new TextDecoder("utf-8", { fatal: true });
|
|
@@ -28671,7 +28671,7 @@ var elements = /* @__PURE__ */ __name((node, name, namespace) => {
|
|
|
28671
28671
|
return found;
|
|
28672
28672
|
}, "elements");
|
|
28673
28673
|
|
|
28674
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28674
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/attachments/sheets.js
|
|
28675
28675
|
var columnName = /* @__PURE__ */ __name((column) => {
|
|
28676
28676
|
let name = "";
|
|
28677
28677
|
for (let rest = column; rest > 0; rest = Math.floor((rest - 1) / 26))
|
|
@@ -28726,7 +28726,7 @@ var sheetText = /* @__PURE__ */ __name((sheets2, maxChars = MAX_TEXT_CHARS) => {
|
|
|
28726
28726
|
return { text: parts.join("").trim(), truncated: false };
|
|
28727
28727
|
}, "sheetText");
|
|
28728
28728
|
|
|
28729
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28729
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/attachments/documents.js
|
|
28730
28730
|
var OFFICE = "urn:oasis:names:tc:opendocument:xmlns:office:1.0";
|
|
28731
28731
|
var TEXT = "urn:oasis:names:tc:opendocument:xmlns:text:1.0";
|
|
28732
28732
|
var TABLE = "urn:oasis:names:tc:opendocument:xmlns:table:1.0";
|
|
@@ -29126,10 +29126,10 @@ var readDocument = /* @__PURE__ */ __name(async (bytes2, kind, signal) => {
|
|
|
29126
29126
|
}
|
|
29127
29127
|
}, "readDocument");
|
|
29128
29128
|
|
|
29129
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29129
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/attachments/extract.js
|
|
29130
29130
|
import { extname as extname3 } from "node:path";
|
|
29131
29131
|
|
|
29132
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29132
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/readers/engine.js
|
|
29133
29133
|
import { readFileSync as readFileSync4 } from "node:fs";
|
|
29134
29134
|
import { dirname as dirname7, extname as extname2, join as join13 } from "node:path";
|
|
29135
29135
|
import { fileURLToPath } from "node:url";
|
|
@@ -29190,7 +29190,7 @@ var derived = /* @__PURE__ */ __name((bytes2, extractor, read) => {
|
|
|
29190
29190
|
}
|
|
29191
29191
|
}, "derived");
|
|
29192
29192
|
|
|
29193
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29193
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/readers/image/index.js
|
|
29194
29194
|
var IMAGES = /* @__PURE__ */ new Set([".jpg", ".jpeg", ".png", ".webp", ".gif", ".heic", ".tif", ".tiff", ".bmp"]);
|
|
29195
29195
|
var image2 = {
|
|
29196
29196
|
id: "image",
|
|
@@ -29199,7 +29199,7 @@ var image2 = {
|
|
|
29199
29199
|
read: /* @__PURE__ */ __name(async () => ({ status: "needs-agent" }), "read")
|
|
29200
29200
|
};
|
|
29201
29201
|
|
|
29202
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29202
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/readers/doc/index.js
|
|
29203
29203
|
var OLE = "\xD0\xCF\xE0\xA1\xB1\xE1";
|
|
29204
29204
|
var doc = {
|
|
29205
29205
|
id: "doc",
|
|
@@ -29211,7 +29211,7 @@ var doc = {
|
|
|
29211
29211
|
}), "read")
|
|
29212
29212
|
};
|
|
29213
29213
|
|
|
29214
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29214
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/readers/docx/index.js
|
|
29215
29215
|
var DOCX = "application/vnd.openxmlformats-officedocument.wordprocessingml.document";
|
|
29216
29216
|
var docx = {
|
|
29217
29217
|
id: "docx",
|
|
@@ -29224,7 +29224,7 @@ var docx = {
|
|
|
29224
29224
|
}), "read")
|
|
29225
29225
|
};
|
|
29226
29226
|
|
|
29227
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29227
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/attachments/markup.js
|
|
29228
29228
|
var import_iconv_lite2 = __toESM(require_lib3(), 1);
|
|
29229
29229
|
var RTF_SKIPPED = /* @__PURE__ */ new Set([
|
|
29230
29230
|
"fonttbl",
|
|
@@ -29400,7 +29400,7 @@ var htmlText = /* @__PURE__ */ __name((source) => {
|
|
|
29400
29400
|
}, "htmlText");
|
|
29401
29401
|
var safeChar = /* @__PURE__ */ __name((code, fallback) => code > 0 && code <= 1114111 ? String.fromCodePoint(code) : fallback, "safeChar");
|
|
29402
29402
|
|
|
29403
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29403
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/readers/html/page.js
|
|
29404
29404
|
var clean = /* @__PURE__ */ __name((value) => typeof value === "string" ? value.replace(/\s+/g, " ").trim() : "", "clean");
|
|
29405
29405
|
var namesIn = /* @__PURE__ */ __name((value) => [value].flat().map((entry) => typeof entry === "string" ? clean(entry) : clean(entry?.name)).filter(Boolean).join(", "), "namesIn");
|
|
29406
29406
|
var jsonLdNodes = /* @__PURE__ */ __name((document) => {
|
|
@@ -29456,7 +29456,7 @@ var markdownSections = /* @__PURE__ */ __name((text2) => {
|
|
|
29456
29456
|
return found.map((section, index) => ({ ...section, end: found[index + 1]?.start ?? text2.length }));
|
|
29457
29457
|
}, "markdownSections");
|
|
29458
29458
|
|
|
29459
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29459
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/readers/html/index.js
|
|
29460
29460
|
var HTML = /* @__PURE__ */ new Set([".html", ".htm", ".xhtml"]);
|
|
29461
29461
|
var first = /* @__PURE__ */ __name((...values) => values.find((value) => typeof value === "string" && value !== ""), "first");
|
|
29462
29462
|
var loaded = /* @__PURE__ */ __name(async (load, name) => {
|
|
@@ -29527,7 +29527,7 @@ var html = {
|
|
|
29527
29527
|
}, "read")
|
|
29528
29528
|
};
|
|
29529
29529
|
|
|
29530
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29530
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/readers/office/index.js
|
|
29531
29531
|
var office = {
|
|
29532
29532
|
id: "office",
|
|
29533
29533
|
version: documentExtractor("odt"),
|
|
@@ -29538,7 +29538,7 @@ var office = {
|
|
|
29538
29538
|
}, "read")
|
|
29539
29539
|
};
|
|
29540
29540
|
|
|
29541
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29541
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/readers/pdf/index.js
|
|
29542
29542
|
var pdf = {
|
|
29543
29543
|
id: "pdf",
|
|
29544
29544
|
version: "unpdf",
|
|
@@ -29605,7 +29605,7 @@ var pdf = {
|
|
|
29605
29605
|
}), "read")
|
|
29606
29606
|
};
|
|
29607
29607
|
|
|
29608
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29608
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/readers/plain/index.js
|
|
29609
29609
|
var PLAIN = /* @__PURE__ */ new Set([".txt", ".md", ".markdown", ".csv", ".tsv", ".json", ".log"]);
|
|
29610
29610
|
var isPlain = /* @__PURE__ */ __name((hint) => PLAIN.has(extensionOf(hint)) || hint.mime?.startsWith("text/") || hint.mime === "application/json", "isPlain");
|
|
29611
29611
|
var readPlain = /* @__PURE__ */ __name((bytes2) => {
|
|
@@ -29625,7 +29625,7 @@ var plain = {
|
|
|
29625
29625
|
read: /* @__PURE__ */ __name(async (bytes2) => readPlain(bytes2), "read")
|
|
29626
29626
|
};
|
|
29627
29627
|
|
|
29628
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29628
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/readers/rtf/index.js
|
|
29629
29629
|
var rtf = {
|
|
29630
29630
|
id: "rtf",
|
|
29631
29631
|
version: "v1",
|
|
@@ -29633,10 +29633,10 @@ var rtf = {
|
|
|
29633
29633
|
read: /* @__PURE__ */ __name(async (bytes2) => derived(bytes2, "rtf:v1", rtfText), "read")
|
|
29634
29634
|
};
|
|
29635
29635
|
|
|
29636
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29636
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/readers/sheets/index.js
|
|
29637
29637
|
import { basename as basename5 } from "node:path";
|
|
29638
29638
|
|
|
29639
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29639
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/attachments/csv-spans.js
|
|
29640
29640
|
var delimitedSpans = /* @__PURE__ */ __name((text2, delimiter, maxCells = 1e4) => {
|
|
29641
29641
|
const cells = [];
|
|
29642
29642
|
let row = 1, column = 1, start = 0, quoted = false, truncated = false;
|
|
@@ -29674,7 +29674,7 @@ var delimitedSpans = /* @__PURE__ */ __name((text2, delimiter, maxCells = 1e4) =
|
|
|
29674
29674
|
return { cells, truncated };
|
|
29675
29675
|
}, "delimitedSpans");
|
|
29676
29676
|
|
|
29677
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29677
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/readers/sheets/index.js
|
|
29678
29678
|
var DELIMITED = {
|
|
29679
29679
|
".csv": ",",
|
|
29680
29680
|
".tsv": " ",
|
|
@@ -29713,7 +29713,7 @@ var sheets = {
|
|
|
29713
29713
|
}, "read")
|
|
29714
29714
|
};
|
|
29715
29715
|
|
|
29716
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29716
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/readers/registry.js
|
|
29717
29717
|
var BUILT_INS2 = [office, pdf, docx, doc, rtf, html, sheets, plain, image2];
|
|
29718
29718
|
var HEAD_BYTES = 1024;
|
|
29719
29719
|
var readers = [...BUILT_INS2];
|
|
@@ -29723,7 +29723,7 @@ var readWithRegistry = /* @__PURE__ */ __name(async (bytes2, hint, context2) =>
|
|
|
29723
29723
|
return reader ? reader.read(bytes2, hint, context2) : { status: "unsupported" };
|
|
29724
29724
|
}, "readWithRegistry");
|
|
29725
29725
|
|
|
29726
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29726
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/attachments/extract.js
|
|
29727
29727
|
var importEngine = /* @__PURE__ */ __name((name) => importFrom(new URL("attachments/extract.js", import.meta.resolve("@wirecat/cli-core")).href, name), "importEngine");
|
|
29728
29728
|
var extensionOf2 = /* @__PURE__ */ __name(({ name, path }) => extname3(name ?? path).toLowerCase(), "extensionOf");
|
|
29729
29729
|
var extractText = /* @__PURE__ */ __name(async (bytes2, hint, load, signal, env = process.env) => {
|
|
@@ -30802,7 +30802,7 @@ function imageSize(input) {
|
|
|
30802
30802
|
}
|
|
30803
30803
|
__name(imageSize, "imageSize");
|
|
30804
30804
|
|
|
30805
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30805
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/attachments/ocr.js
|
|
30806
30806
|
var MAX_PAGES = 20;
|
|
30807
30807
|
var MAX_PIXELS = 2e7;
|
|
30808
30808
|
var cancelled2 = /* @__PURE__ */ __name((signal) => {
|
|
@@ -30962,7 +30962,7 @@ var ocrPdf = /* @__PURE__ */ __name(async (bytes2, pipeline2, load, signal) => {
|
|
|
30962
30962
|
}
|
|
30963
30963
|
}, "ocrPdf");
|
|
30964
30964
|
|
|
30965
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30965
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/attachments/pdf-preview.js
|
|
30966
30966
|
var pdfPreview = /* @__PURE__ */ __name(async (bytes2, page, signal, load = importEngine, env = process.env) => {
|
|
30967
30967
|
const limits = pdfPreviewLimits(env);
|
|
30968
30968
|
const cancelled3 = /* @__PURE__ */ __name(() => {
|
|
@@ -31039,7 +31039,7 @@ var pdfPreview = /* @__PURE__ */ __name(async (bytes2, page, signal, load = impo
|
|
|
31039
31039
|
}
|
|
31040
31040
|
}, "pdfPreview");
|
|
31041
31041
|
|
|
31042
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31042
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/attachments/picture-reading.js
|
|
31043
31043
|
import { spawn } from "node:child_process";
|
|
31044
31044
|
import { mkdtempSync, readFileSync as readFileSync5, rmSync as rmSync2, writeFileSync as writeFileSync3 } from "node:fs";
|
|
31045
31045
|
import { tmpdir } from "node:os";
|
|
@@ -31202,7 +31202,7 @@ Read the attached picture.`,
|
|
|
31202
31202
|
}
|
|
31203
31203
|
}, "readPictureWithAgent");
|
|
31204
31204
|
|
|
31205
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31205
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/attachments/transfer.js
|
|
31206
31206
|
import { createHash as createHash8 } from "node:crypto";
|
|
31207
31207
|
import { constants } from "node:fs";
|
|
31208
31208
|
import { lstat as lstat3, open as open5 } from "node:fs/promises";
|
|
@@ -31310,7 +31310,7 @@ var transferMime = /* @__PURE__ */ __name((head, hint, name = null) => {
|
|
|
31310
31310
|
return hint !== null && /^[a-z0-9.+-]+\/[a-z0-9.+-]+$/i.test(hint) ? hint : "application/octet-stream";
|
|
31311
31311
|
}, "transferMime");
|
|
31312
31312
|
|
|
31313
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31313
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/services/file-download.js
|
|
31314
31314
|
import { createWriteStream, mkdirSync as mkdirSync4 } from "node:fs";
|
|
31315
31315
|
import { link as link3, rm } from "node:fs/promises";
|
|
31316
31316
|
import { join as join15, resolve as resolve6 } from "node:path";
|
|
@@ -31424,12 +31424,12 @@ var save = /* @__PURE__ */ __name(async (file, directory2, fallbackName, { uniqu
|
|
|
31424
31424
|
}
|
|
31425
31425
|
}, "save");
|
|
31426
31426
|
|
|
31427
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31427
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/services/pictures.js
|
|
31428
31428
|
import { createHash as createHash9 } from "node:crypto";
|
|
31429
31429
|
import { lstat as lstat4, readFile } from "node:fs/promises";
|
|
31430
31430
|
import { setTimeout as sleep4 } from "node:timers/promises";
|
|
31431
31431
|
|
|
31432
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31432
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/domain/models.js
|
|
31433
31433
|
var GROUP_SETTINGS = [
|
|
31434
31434
|
"allCanPin",
|
|
31435
31435
|
"onlyAdminsAdd",
|
|
@@ -31443,7 +31443,7 @@ var ADMIN_RIGHTS = ["read", "members", "admins", "info", "pin", "link", "post",
|
|
|
31443
31443
|
var senderIsMe = /* @__PURE__ */ __name((message, account) => message.outgoing === true || message.senderId !== null && String(message.senderId) === account, "senderIsMe");
|
|
31444
31444
|
var MEDIA_KINDS = ["photo", "video", "file", "audio", "link"];
|
|
31445
31445
|
|
|
31446
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31446
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/services/pictures.js
|
|
31447
31447
|
var PICTURE_MAX_BYTES = 25 * 1024 * 1024;
|
|
31448
31448
|
var PICTURE_FLOOR = 0.25;
|
|
31449
31449
|
var PAGE3 = 50;
|
|
@@ -31484,7 +31484,7 @@ var picturesService = /* @__PURE__ */ __name((deps) => {
|
|
|
31484
31484
|
const directory2 = imageModelsDirectory(deps.env);
|
|
31485
31485
|
if (!isImageModelInstalled(model2, directory2))
|
|
31486
31486
|
throw new CliError("not_found", missingModel(model2.id), { reason: "model.not-downloaded", model: model2.id });
|
|
31487
|
-
const { openPictureEmbedder } = await import("./embedder-
|
|
31487
|
+
const { openPictureEmbedder } = await import("./embedder-JINT4Y4O.js");
|
|
31488
31488
|
return openPictureEmbedder(model2, directory2);
|
|
31489
31489
|
}, "open");
|
|
31490
31490
|
const embedder = /* @__PURE__ */ __name(() => {
|
|
@@ -31658,7 +31658,7 @@ var withPictures = /* @__PURE__ */ __name((messages, pictures) => ({
|
|
|
31658
31658
|
}, "search")
|
|
31659
31659
|
}), "withPictures");
|
|
31660
31660
|
|
|
31661
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31661
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/services/attachments.js
|
|
31662
31662
|
var ATTACHMENT_QUERY = {
|
|
31663
31663
|
entity: "attachment",
|
|
31664
31664
|
backend: "sql",
|
|
@@ -32129,7 +32129,7 @@ var attachmentsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
32129
32129
|
}, "readPicture")
|
|
32130
32130
|
}), "attachmentsService");
|
|
32131
32131
|
|
|
32132
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32132
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/services/chat-documents.js
|
|
32133
32133
|
var chatDocumentsService = /* @__PURE__ */ __name((deps) => ({
|
|
32134
32134
|
list: /* @__PURE__ */ __name(async (chat, { limit, offset, ref }) => {
|
|
32135
32135
|
const store = await accountStore(deps);
|
|
@@ -32159,7 +32159,7 @@ var chatDocumentsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
32159
32159
|
}, "list")
|
|
32160
32160
|
}), "chatDocumentsService");
|
|
32161
32161
|
|
|
32162
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32162
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/services/retention.js
|
|
32163
32163
|
var observationDuration = /* @__PURE__ */ __name((text2, flag) => {
|
|
32164
32164
|
const match = /^(\d+(?:\.\d+)?)([smhdw])$/.exec(text2);
|
|
32165
32165
|
const units2 = { s: 1e3, m: 6e4, h: 36e5, d: 864e5, w: 6048e5 };
|
|
@@ -32246,7 +32246,7 @@ var isRetentionSelection = /* @__PURE__ */ __name((selection) => {
|
|
|
32246
32246
|
}
|
|
32247
32247
|
}, "isRetentionSelection");
|
|
32248
32248
|
|
|
32249
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32249
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/services/counters.js
|
|
32250
32250
|
var counterFields = /* @__PURE__ */ __name((text2 = "views,reactions,comments") => {
|
|
32251
32251
|
const fields = text2.split(",").map((one) => one.trim());
|
|
32252
32252
|
if (!fields.length || fields.some((one) => !COUNTER_FIELDS.includes(one)) || new Set(fields).size !== fields.length)
|
|
@@ -32453,7 +32453,7 @@ var countersService = /* @__PURE__ */ __name((deps) => {
|
|
|
32453
32453
|
};
|
|
32454
32454
|
}, "countersService");
|
|
32455
32455
|
|
|
32456
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32456
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/services/search-refresh.js
|
|
32457
32457
|
var SYNC_KEY = "messages.sync-first";
|
|
32458
32458
|
var SYNC_BOUNDS = { maxChats: 5, timeMs: 3e4, maxMessages: 500 };
|
|
32459
32459
|
var keyOf3 = /* @__PURE__ */ __name((chat) => JSON.stringify([chat.account.provider, chat.account.account, chat.chatId]), "keyOf");
|
|
@@ -32585,7 +32585,7 @@ var withRefresh = /* @__PURE__ */ __name((found, refreshed) => ({
|
|
|
32585
32585
|
...!refreshed || refreshed.complete ? {} : { coverage: { ...found.coverage, state: "stale" } }
|
|
32586
32586
|
}), "withRefresh");
|
|
32587
32587
|
|
|
32588
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32588
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/services/embeddings-search.js
|
|
32589
32589
|
var CANDIDATES = 50;
|
|
32590
32590
|
var WORD_HITS = 200;
|
|
32591
32591
|
var RRF_K = 60;
|
|
@@ -32860,13 +32860,13 @@ var meanOf = /* @__PURE__ */ __name((vectors) => {
|
|
|
32860
32860
|
return mean2.map((value) => value / length);
|
|
32861
32861
|
}, "meanOf");
|
|
32862
32862
|
|
|
32863
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32863
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/services/embeddings.js
|
|
32864
32864
|
var embeddingsService = /* @__PURE__ */ __name((deps) => ({
|
|
32865
32865
|
...embeddingsMaintenance(deps),
|
|
32866
32866
|
...embeddingsSearch(deps)
|
|
32867
32867
|
}), "embeddingsService");
|
|
32868
32868
|
|
|
32869
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32869
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/services/folders.js
|
|
32870
32870
|
var foldersService = /* @__PURE__ */ __name((deps) => {
|
|
32871
32871
|
const online = /* @__PURE__ */ __name(async (command) => {
|
|
32872
32872
|
if (deps.offline)
|
|
@@ -33007,7 +33007,7 @@ var foldersService = /* @__PURE__ */ __name((deps) => {
|
|
|
33007
33007
|
};
|
|
33008
33008
|
}, "foldersService");
|
|
33009
33009
|
|
|
33010
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33010
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/services/mentions.js
|
|
33011
33011
|
var REVIEW_COUNT = 500;
|
|
33012
33012
|
var mentionsService = /* @__PURE__ */ __name((deps) => {
|
|
33013
33013
|
const located = /* @__PURE__ */ __name(async () => {
|
|
@@ -33086,7 +33086,7 @@ var mentionsService = /* @__PURE__ */ __name((deps) => {
|
|
|
33086
33086
|
};
|
|
33087
33087
|
}, "mentionsService");
|
|
33088
33088
|
|
|
33089
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33089
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/domain/message-link.js
|
|
33090
33090
|
var fileLinks = /* @__PURE__ */ __name((attachments) => hitFiles(attachments).map(({ position, kind, name }) => ({
|
|
33091
33091
|
position,
|
|
33092
33092
|
kind,
|
|
@@ -33135,7 +33135,7 @@ var validatePermalink = /* @__PURE__ */ __name((link4) => {
|
|
|
33135
33135
|
return { url: link4.url, access: link4.access, reason: link4.reason };
|
|
33136
33136
|
}, "validatePermalink");
|
|
33137
33137
|
|
|
33138
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33138
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/domain/pin-duration.js
|
|
33139
33139
|
var spokenSeconds = /* @__PURE__ */ __name((seconds) => {
|
|
33140
33140
|
if (seconds % 86400 === 0 && seconds > 86400)
|
|
33141
33141
|
return `${seconds / 86400}d`;
|
|
@@ -33167,7 +33167,7 @@ var pinDurationOf = /* @__PURE__ */ __name((value, allowed, flag = "--expire-tim
|
|
|
33167
33167
|
return seconds;
|
|
33168
33168
|
}, "pinDurationOf");
|
|
33169
33169
|
|
|
33170
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33170
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/sends/send-as.js
|
|
33171
33171
|
var sendAsCheck = /* @__PURE__ */ __name((connection, sendAs) => {
|
|
33172
33172
|
if (sendAs === void 0) {
|
|
33173
33173
|
const saved = connection.savedSender?.bind(connection);
|
|
@@ -33192,7 +33192,7 @@ var typedSendAs = /* @__PURE__ */ __name((typed) => {
|
|
|
33192
33192
|
return sendAs;
|
|
33193
33193
|
}, "typedSendAs");
|
|
33194
33194
|
|
|
33195
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33195
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/search/total.js
|
|
33196
33196
|
var TOTAL_CAP = 1e4;
|
|
33197
33197
|
var totalOf = /* @__PURE__ */ __name((count4, shown, hasMore, exact = true) => {
|
|
33198
33198
|
const least = shown + (hasMore ? 1 : 0);
|
|
@@ -33203,7 +33203,7 @@ var totalOf = /* @__PURE__ */ __name((count4, shown, hasMore, exact = true) => {
|
|
|
33203
33203
|
return { value: count4, relation: exact ? "eq" : "gte" };
|
|
33204
33204
|
}, "totalOf");
|
|
33205
33205
|
|
|
33206
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33206
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/search/lucene/meaning-parts.js
|
|
33207
33207
|
var WORD_FIELDS = /* @__PURE__ */ new Set(["text", "exact"]);
|
|
33208
33208
|
var fieldsOfQuery = /* @__PURE__ */ __name((root, everything) => {
|
|
33209
33209
|
let narrows = false;
|
|
@@ -33232,7 +33232,7 @@ var meaningWords = /* @__PURE__ */ __name((root) => {
|
|
|
33232
33232
|
return wanted(root).join(" ").trim();
|
|
33233
33233
|
}, "meaningWords");
|
|
33234
33234
|
|
|
33235
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33235
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/search/question-plan.js
|
|
33236
33236
|
var words2 = /* @__PURE__ */ __name((text2) => normalize(text2).match(/[\p{L}\p{N}]+/gu) ?? [], "words");
|
|
33237
33237
|
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"));
|
|
33238
33238
|
var questionWord = /\b(?:what|which|how|who|where|when|can|could|should)\b|(?:^|\s)(?:сколько|какой|какая|какие|какое|кто|кому|кем|где|когда|как|что|можно|может|могут|ли)(?:\s|$)/iu;
|
|
@@ -33365,7 +33365,7 @@ var questionLookup = /* @__PURE__ */ __name((text2) => {
|
|
|
33365
33365
|
return terms.length ? anyOfTerms(terms, plan.scope) : void 0;
|
|
33366
33366
|
}, "questionLookup");
|
|
33367
33367
|
|
|
33368
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33368
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/services/messages-combined.js
|
|
33369
33369
|
var COMBINED_DEFAULTS = { candidateDepth: 300, rrfK: 60, rerank: "all", chatCap: 0 };
|
|
33370
33370
|
var tokensOf = /* @__PURE__ */ __name((text2) => normalize(text2).match(/[\p{L}\p{N}\p{Co}\p{M}]+/gu) ?? [], "tokensOf");
|
|
33371
33371
|
var searchCombined = /* @__PURE__ */ __name(async (store, account, request, messenger = {}, options2 = COMBINED_DEFAULTS) => {
|
|
@@ -33559,7 +33559,7 @@ var signals = /* @__PURE__ */ __name((hit, terms, corrections, execution, mode,
|
|
|
33559
33559
|
return mode === "coverage" ? coverage2 * 4 : mode === "proximity" ? proximity : mode === "phrase" ? phrase2 : coverage2 * 4 + proximity + phrase2;
|
|
33560
33560
|
}, "signals");
|
|
33561
33561
|
|
|
33562
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33562
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/services/messages-discovery.js
|
|
33563
33563
|
var MEANING_DEPTH = 100;
|
|
33564
33564
|
var RRF_K2 = 60;
|
|
33565
33565
|
var RERANK_DEPTH = 50;
|
|
@@ -33885,7 +33885,7 @@ var mixedWithReranker = /* @__PURE__ */ __name((head, scores) => {
|
|
|
33885
33885
|
})).sort((a, b) => b.mixed - a.mixed).map(({ hit }) => hit);
|
|
33886
33886
|
}, "mixedWithReranker");
|
|
33887
33887
|
|
|
33888
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33888
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/services/thread-context.js
|
|
33889
33889
|
var THREAD_BOUNDS = { maxHops: 8, maxMessages: 50, maxBytes: 65536, withinMs: 864e5 };
|
|
33890
33890
|
var bytes = /* @__PURE__ */ __name((items, links) => Buffer.byteLength(JSON.stringify({ items, links }), "utf8"), "bytes");
|
|
33891
33891
|
var threadBounds = /* @__PURE__ */ __name((options2 = {}) => {
|
|
@@ -34084,7 +34084,7 @@ var readThreadContext = /* @__PURE__ */ __name(async (store, account, chat, mess
|
|
|
34084
34084
|
return result;
|
|
34085
34085
|
}, "readThreadContext");
|
|
34086
34086
|
|
|
34087
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34087
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/services/messages-archive-search.js
|
|
34088
34088
|
var SEARCH_FILL_MS = 200;
|
|
34089
34089
|
var statsStore = /* @__PURE__ */ __name(async (store, account, request, messenger = {}) => {
|
|
34090
34090
|
const stop = Date.now() + SEARCH_FILL_MS;
|
|
@@ -34153,7 +34153,7 @@ var accountOf2 = /* @__PURE__ */ __name((hit) => {
|
|
|
34153
34153
|
}, "accountOf");
|
|
34154
34154
|
var keyOf4 = /* @__PURE__ */ __name(({ provider, account }) => `${provider}/${account}`, "keyOf");
|
|
34155
34155
|
|
|
34156
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34156
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/services/meaning-model.js
|
|
34157
34157
|
var meaningModel = /* @__PURE__ */ __name(async (store, env = process.env) => {
|
|
34158
34158
|
const chosen = chosenTextModel(env);
|
|
34159
34159
|
if (chosen.from === "chosen" || chosen.id !== DEFAULT_TEXT_MODEL)
|
|
@@ -34168,7 +34168,7 @@ var meaningModel = /* @__PURE__ */ __name(async (store, env = process.env) => {
|
|
|
34168
34168
|
return (counts.get(before2) ?? 0) > (counts.get(now) ?? 0) ? previous.id : current.id;
|
|
34169
34169
|
}, "meaningModel");
|
|
34170
34170
|
|
|
34171
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34171
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/services/messages-meaning.js
|
|
34172
34172
|
var meaningText = /* @__PURE__ */ __name((question) => {
|
|
34173
34173
|
try {
|
|
34174
34174
|
const text2 = questionLookup(question) === void 0 ? question : questionText(question);
|
|
@@ -34247,7 +34247,7 @@ var meaningLane = /* @__PURE__ */ __name((deps) => async (question, accounts, sh
|
|
|
34247
34247
|
}
|
|
34248
34248
|
}, "meaningLane");
|
|
34249
34249
|
|
|
34250
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34250
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/services/messages-rerank.js
|
|
34251
34251
|
var rerankLane = /* @__PURE__ */ __name((deps) => {
|
|
34252
34252
|
const choice = deps.reranker ?? DEFAULT_RERANK_MODEL;
|
|
34253
34253
|
if (choice === "off")
|
|
@@ -34259,9 +34259,9 @@ var rerankLane = /* @__PURE__ */ __name((deps) => {
|
|
|
34259
34259
|
return { skipped: { reason: `${model.id} is not downloaded`, step: "models.download", model: model.id } };
|
|
34260
34260
|
try {
|
|
34261
34261
|
const warm = deps.embedders;
|
|
34262
|
-
const reranker = warm ? await warm.reranker(`rerank:${model.id}`, async () => (await import("./process-
|
|
34262
|
+
const reranker = warm ? await warm.reranker(`rerank:${model.id}`, async () => (await import("./process-6D767IDN.js")).openRerankerProcess(model, directory2, {
|
|
34263
34263
|
threads: defaultThreads()
|
|
34264
|
-
})) : await (await import("./rerank-
|
|
34264
|
+
})) : await (await import("./rerank-IGX4EFA2.js")).openReranker(model, directory2);
|
|
34265
34265
|
return {
|
|
34266
34266
|
model: model.id,
|
|
34267
34267
|
score: /* @__PURE__ */ __name((question, passages) => reranker.score(plainWords(question), passages), "score"),
|
|
@@ -34281,7 +34281,7 @@ var rerankLane = /* @__PURE__ */ __name((deps) => {
|
|
|
34281
34281
|
};
|
|
34282
34282
|
}, "rerankLane");
|
|
34283
34283
|
|
|
34284
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34284
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/search/question-period.js
|
|
34285
34285
|
var DAY5 = 864e5;
|
|
34286
34286
|
var SPAN = { start: 0, end: 0 };
|
|
34287
34287
|
var phrase = /* @__PURE__ */ __name((source) => new RegExp(`(?<![\\p{L}\\p{N}])(?:${source})(?![\\p{L}\\p{N}])`, "giu"), "phrase");
|
|
@@ -34406,17 +34406,17 @@ var questionPeriod = /* @__PURE__ */ __name((text2, now, zone) => {
|
|
|
34406
34406
|
};
|
|
34407
34407
|
}, "questionPeriod");
|
|
34408
34408
|
|
|
34409
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34409
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/services/document-pictures.js
|
|
34410
34410
|
var openPictureEmbedderFor = /* @__PURE__ */ __name(async ({ env, command } = {}) => {
|
|
34411
34411
|
const model = imageModel(DEFAULT_IMAGE_MODEL);
|
|
34412
34412
|
const directory2 = imageModelsDirectory(env);
|
|
34413
34413
|
if (!isImageModelInstalled(model, directory2))
|
|
34414
34414
|
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 });
|
|
34415
|
-
const { openPictureEmbedder } = await import("./embedder-
|
|
34415
|
+
const { openPictureEmbedder } = await import("./embedder-JINT4Y4O.js");
|
|
34416
34416
|
return openPictureEmbedder(model, directory2);
|
|
34417
34417
|
}, "openPictureEmbedderFor");
|
|
34418
34418
|
|
|
34419
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34419
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/services/document-source.js
|
|
34420
34420
|
var documentSource = /* @__PURE__ */ __name((note, accounts, profiles, file) => {
|
|
34421
34421
|
const metadata = note.frontMatter;
|
|
34422
34422
|
const account = accounts.find(({ id: id2 }) => String(id2) === note.folderId);
|
|
@@ -34438,7 +34438,7 @@ var documentSource = /* @__PURE__ */ __name((note, accounts, profiles, file) =>
|
|
|
34438
34438
|
};
|
|
34439
34439
|
}, "documentSource");
|
|
34440
34440
|
|
|
34441
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34441
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/embeddings/keys.js
|
|
34442
34442
|
var endpointKeyName = /* @__PURE__ */ __name((baseUrl) => {
|
|
34443
34443
|
const host = new URL(baseUrl).host;
|
|
34444
34444
|
return ["openai", "anthropic"].includes(host) ? `endpoint:${host}` : host;
|
|
@@ -34471,7 +34471,7 @@ var embeddingKeys = /* @__PURE__ */ __name((app, env = process.env, keyring) =>
|
|
|
34471
34471
|
};
|
|
34472
34472
|
}, "embeddingKeys");
|
|
34473
34473
|
|
|
34474
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34474
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/models/openai.js
|
|
34475
34475
|
var options = strictObject({
|
|
34476
34476
|
temperature: range(0, 2),
|
|
34477
34477
|
top_p: range(0, 1),
|
|
@@ -34538,7 +34538,7 @@ var openai = {
|
|
|
34538
34538
|
}), "complete")
|
|
34539
34539
|
};
|
|
34540
34540
|
|
|
34541
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34541
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/models/index.js
|
|
34542
34542
|
var modelGateway = /* @__PURE__ */ __name((deps) => ({
|
|
34543
34543
|
complete: /* @__PURE__ */ __name(async (request) => {
|
|
34544
34544
|
if (deps.signal?.aborted)
|
|
@@ -34553,7 +34553,7 @@ var modelGateway = /* @__PURE__ */ __name((deps) => ({
|
|
|
34553
34553
|
if (!adapter && target2.provider === "openai")
|
|
34554
34554
|
adapter = openai;
|
|
34555
34555
|
if (!adapter && target2.provider === "anthropic")
|
|
34556
|
-
adapter = (await import("./anthropic-
|
|
34556
|
+
adapter = (await import("./anthropic-S3N4JDJU.js")).anthropic;
|
|
34557
34557
|
if (!adapter)
|
|
34558
34558
|
throw new CliError("validation_error", `no model adapter for ${target2.provider}`);
|
|
34559
34559
|
if (request.images !== void 0 && adapter.images !== true)
|
|
@@ -34613,7 +34613,7 @@ var modelGateway = /* @__PURE__ */ __name((deps) => ({
|
|
|
34613
34613
|
}, "complete")
|
|
34614
34614
|
}), "modelGateway");
|
|
34615
34615
|
|
|
34616
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34616
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/services/enrichment-setting.js
|
|
34617
34617
|
var SECTION2 = "enrichment";
|
|
34618
34618
|
var ENRICHMENT_PROVIDERS = ["openai", "anthropic"];
|
|
34619
34619
|
var DEFAULT_BASE_URLS = {
|
|
@@ -34688,7 +34688,7 @@ var costOf = /* @__PURE__ */ __name((usage, setting) => {
|
|
|
34688
34688
|
return price ? Math.round((usage.input * price.input + usage.output * price.output) * 1e6) / 1e6 : null;
|
|
34689
34689
|
}, "costOf");
|
|
34690
34690
|
|
|
34691
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34691
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/services/enrichment.js
|
|
34692
34692
|
var ENRICH_PER_RUN = 600;
|
|
34693
34693
|
var MAX_LINE = 400;
|
|
34694
34694
|
var line2 = pipe(unknown(), transform((value) => typeof value === "string" ? value.replace(/\s+/g, " ").trim().slice(0, MAX_LINE) : ""));
|
|
@@ -34764,7 +34764,7 @@ var enrichmentState = /* @__PURE__ */ __name(async (store, env, estimateFor, key
|
|
|
34764
34764
|
};
|
|
34765
34765
|
}, "enrichmentState");
|
|
34766
34766
|
|
|
34767
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34767
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/services/notes-title-tier.js
|
|
34768
34768
|
var plainQueryWords = /* @__PURE__ */ __name((query) => {
|
|
34769
34769
|
let root;
|
|
34770
34770
|
try {
|
|
@@ -34791,7 +34791,7 @@ var titleTiers = /* @__PURE__ */ __name((hits, words3) => {
|
|
|
34791
34791
|
return [...hits].sort((a, b) => rank(a) - rank(b));
|
|
34792
34792
|
}, "titleTiers");
|
|
34793
34793
|
|
|
34794
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34794
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/services/notes-search.js
|
|
34795
34795
|
var storeQuery = /* @__PURE__ */ __name(async (store, text2, { exact, timezone } = {}) => resolvedQuery(store, parsedQuery(text2, exact), timezone), "storeQuery");
|
|
34796
34796
|
var parsedQuery = /* @__PURE__ */ __name((text2, exact) => validateFields(parseLucene(text2, { ...SEARCH_QUERY, defaultField: exact ? "exact" : "text" })).root, "parsedQuery");
|
|
34797
34797
|
var resolvedQuery = /* @__PURE__ */ __name(async (store, root, timezone) => {
|
|
@@ -35220,7 +35220,7 @@ var searchNotesOf = /* @__PURE__ */ __name(async (store, account, text2, { accou
|
|
|
35220
35220
|
};
|
|
35221
35221
|
}, "searchNotesOf");
|
|
35222
35222
|
|
|
35223
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35223
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/services/events-search.js
|
|
35224
35224
|
var MAX_EVENTS_OFFSET = 1e3;
|
|
35225
35225
|
var iso3 = /* @__PURE__ */ __name((at) => at === null ? null : new Date(at).toISOString(), "iso");
|
|
35226
35226
|
var accountIdsOf = /* @__PURE__ */ __name(async (store, accounts) => {
|
|
@@ -35338,7 +35338,7 @@ var searchEvents = /* @__PURE__ */ __name(async (store, query, { limit = 20, off
|
|
|
35338
35338
|
};
|
|
35339
35339
|
}, "searchEvents");
|
|
35340
35340
|
|
|
35341
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35341
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/services/search-all-business.js
|
|
35342
35342
|
var OWN_BUSINESS = { provider: "business", account: INTERNAL_NOTES };
|
|
35343
35343
|
var BUSINESS_WORDS_ONLY = "invoices, payments, orders, contracts, subscriptions, products and wallets are found by the words of their numbers and names only";
|
|
35344
35344
|
var placeOf = /* @__PURE__ */ __name(({ source, imported }) => source ?? (imported === void 0 ? OWN_BUSINESS : { provider: imported, account: "" }), "placeOf");
|
|
@@ -35368,7 +35368,7 @@ var searchBusiness = /* @__PURE__ */ __name(async (store, { words: words3, anyWo
|
|
|
35368
35368
|
};
|
|
35369
35369
|
}, "searchBusiness");
|
|
35370
35370
|
|
|
35371
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35371
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/services/meeting-hit-search.js
|
|
35372
35372
|
var resolveMeetingSelection = /* @__PURE__ */ __name(async (store, request) => {
|
|
35373
35373
|
const { project, tag, topic, ...input } = request;
|
|
35374
35374
|
input.signal?.throwIfAborted();
|
|
@@ -35406,7 +35406,7 @@ var resolveMeetingSelection = /* @__PURE__ */ __name(async (store, request) => {
|
|
|
35406
35406
|
return { input, selection };
|
|
35407
35407
|
}, "resolveMeetingSelection");
|
|
35408
35408
|
|
|
35409
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35409
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/services/search-all-meetings.js
|
|
35410
35410
|
var MOST_HITS_PER_MEETING = 3;
|
|
35411
35411
|
var PAGE_ROWS = 200;
|
|
35412
35412
|
var MOST_PAGES = 25;
|
|
@@ -35634,7 +35634,7 @@ var titleItem = /* @__PURE__ */ __name((account, meeting, query) => ({
|
|
|
35634
35634
|
foundBy: ["title"]
|
|
35635
35635
|
}), "titleItem");
|
|
35636
35636
|
|
|
35637
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35637
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/services/search-harder.js
|
|
35638
35638
|
var SECTION3 = "search_harder";
|
|
35639
35639
|
var HARDER_MODELS = {
|
|
35640
35640
|
anthropic: "claude-haiku-5-5",
|
|
@@ -35880,7 +35880,7 @@ var reorderHarder = /* @__PURE__ */ __name(async (question, hits, { laterPage, a
|
|
|
35880
35880
|
};
|
|
35881
35881
|
}, "reorderHarder");
|
|
35882
35882
|
|
|
35883
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35883
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/services/search-all.js
|
|
35884
35884
|
var RESOURCES_SEARCHED = ["messages", "mail", "notes", "events", "crm", "business", "meetings"];
|
|
35885
35885
|
var refusal = /* @__PURE__ */ __name((error, text2) => {
|
|
35886
35886
|
const { reason, span } = error.details ?? {};
|
|
@@ -35959,6 +35959,7 @@ var searchAll = /* @__PURE__ */ __name(async (store, account, asked, messenger =
|
|
|
35959
35959
|
const discover = !request.exact && questionLookup(request.text) !== void 0;
|
|
35960
35960
|
const cosines = /* @__PURE__ */ new Map();
|
|
35961
35961
|
let coverage2;
|
|
35962
|
+
const meetingAccountsRead = /* @__PURE__ */ new Set();
|
|
35962
35963
|
let meetings;
|
|
35963
35964
|
const messagesOf = /* @__PURE__ */ __name(async (kind) => {
|
|
35964
35965
|
const given = scope?.[kind];
|
|
@@ -36178,6 +36179,8 @@ var searchAll = /* @__PURE__ */ __name(async (store, account, asked, messenger =
|
|
|
36178
36179
|
continue;
|
|
36179
36180
|
hasMore ||= found.hasMore;
|
|
36180
36181
|
meetings = found.coverage;
|
|
36182
|
+
for (const { id: id2 } of found.read)
|
|
36183
|
+
meetingAccountsRead.add(id2);
|
|
36181
36184
|
lists.push(found.items);
|
|
36182
36185
|
for (const { provider, account: account2 } of found.read)
|
|
36183
36186
|
accounts.push({ resource, provider, account: account2 });
|
|
@@ -36193,7 +36196,7 @@ var searchAll = /* @__PURE__ */ __name(async (store, account, asked, messenger =
|
|
|
36193
36196
|
} finally {
|
|
36194
36197
|
await embedders.close();
|
|
36195
36198
|
}
|
|
36196
|
-
let ordered = insidePeriodFirst(oneList(await
|
|
36199
|
+
let ordered = insidePeriodFirst(oneList(await withMeetingDocuments(store, lists, meetingAccountsRead), cosines), period);
|
|
36197
36200
|
let harder;
|
|
36198
36201
|
if (request.harder) {
|
|
36199
36202
|
const asking = {
|
|
@@ -36234,21 +36237,34 @@ var searchAll = /* @__PURE__ */ __name(async (store, account, asked, messenger =
|
|
|
36234
36237
|
...harder === void 0 ? {} : { harder }
|
|
36235
36238
|
};
|
|
36236
36239
|
}, "searchAll");
|
|
36237
|
-
var
|
|
36238
|
-
|
|
36239
|
-
if (!meetings.size)
|
|
36240
|
+
var withMeetingDocuments = /* @__PURE__ */ __name(async (store, lists, read) => {
|
|
36241
|
+
if (!read.size)
|
|
36240
36242
|
return lists;
|
|
36241
36243
|
const documentOf = /* @__PURE__ */ __name((item2) => item2.kind === "document" && /^document:\d+$/.test(item2.ref) ? Number(item2.ref.slice("document:".length)) : void 0, "documentOf");
|
|
36242
36244
|
const documents = lists.flat().flatMap((item2) => documentOf(item2) ?? []);
|
|
36243
|
-
|
|
36244
|
-
|
|
36245
|
+
if (!documents.length)
|
|
36246
|
+
return lists;
|
|
36247
|
+
const owners = await store.meetings.documentMeetings(documents);
|
|
36248
|
+
if (!owners.size)
|
|
36245
36249
|
return lists;
|
|
36246
|
-
|
|
36250
|
+
const meetings = new Set(lists.flat().flatMap((item2) => item2.kind === "meeting" ? [item2.meetingId] : []));
|
|
36251
|
+
return lists.map((list2) => list2.flatMap((item2) => {
|
|
36247
36252
|
const document = documentOf(item2);
|
|
36248
|
-
const
|
|
36249
|
-
|
|
36253
|
+
const owner = document === void 0 ? void 0 : owners.get(document);
|
|
36254
|
+
if (owner === void 0 || item2.kind === "meeting")
|
|
36255
|
+
return [item2];
|
|
36256
|
+
if (owner.role === "transcript" && meetings.has(owner.meetingId))
|
|
36257
|
+
return [];
|
|
36258
|
+
if (!read.has(owner.accountId))
|
|
36259
|
+
return [item2];
|
|
36260
|
+
return [
|
|
36261
|
+
{
|
|
36262
|
+
...item2,
|
|
36263
|
+
meeting: formatMeetingReference({ type: "meeting", accountId: owner.accountId, meetingId: owner.meetingId })
|
|
36264
|
+
}
|
|
36265
|
+
];
|
|
36250
36266
|
}));
|
|
36251
|
-
}, "
|
|
36267
|
+
}, "withMeetingDocuments");
|
|
36252
36268
|
var hitKey = /* @__PURE__ */ __name((item2) => item2.kind === "meeting" ? `${item2.ref}\0${item2.scope}\0${item2.id}` : item2.ref, "hitKey");
|
|
36253
36269
|
var oneList = /* @__PURE__ */ __name((lists, cosines) => {
|
|
36254
36270
|
const place = /* @__PURE__ */ new Map();
|
|
@@ -36277,7 +36293,7 @@ var insidePeriodFirst = /* @__PURE__ */ __name((ordered, period) => {
|
|
|
36277
36293
|
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);
|
|
36278
36294
|
}, "insidePeriodFirst");
|
|
36279
36295
|
|
|
36280
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36296
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/services/server-search.js
|
|
36281
36297
|
var SERVER_SEARCH_KEY = "messages.server-search";
|
|
36282
36298
|
var SERVER_BOUNDS = { timeMs: 5e3, perCall: 100, maxCalls: 3, textBytes: 262144 };
|
|
36283
36299
|
var DEFAULT_BACKEND = "both";
|
|
@@ -36466,7 +36482,7 @@ var searchServer = /* @__PURE__ */ __name(async (deps, request) => {
|
|
|
36466
36482
|
return { report, sources };
|
|
36467
36483
|
}, "searchServer");
|
|
36468
36484
|
|
|
36469
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36485
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/services/messages.js
|
|
36470
36486
|
var DELETE_AT_ONCE = 10;
|
|
36471
36487
|
var filesOf = /* @__PURE__ */ __name(({ attachments }) => {
|
|
36472
36488
|
const files = fileLinks(attachments);
|
|
@@ -36906,7 +36922,7 @@ var checkMediaOptions = /* @__PURE__ */ __name((messenger, asked, attachments) =
|
|
|
36906
36922
|
throw new CliError("validation_error", `${MEDIA_FLAGS[first2]} needs a --photo or --file`);
|
|
36907
36923
|
}, "checkMediaOptions");
|
|
36908
36924
|
|
|
36909
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36925
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/domain/channel-tags.js
|
|
36910
36926
|
var CHANNEL_TAG_RULES_VERSION = "keywords-v1";
|
|
36911
36927
|
var RULES2 = {
|
|
36912
36928
|
ai: [/\b(ai|gpt|llm|machine learning|artificial intelligence)\b/iu, /нейросет|искусственн/iu],
|
|
@@ -36921,7 +36937,7 @@ var classifyChannel = /* @__PURE__ */ __name((metadata) => Object.entries(RULES2
|
|
|
36921
36937
|
return fields.length ? [{ tag, score: fields.length / 3, fields }] : [];
|
|
36922
36938
|
}), "classifyChannel");
|
|
36923
36939
|
|
|
36924
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36940
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/services/metadata.js
|
|
36925
36941
|
var metadataService = /* @__PURE__ */ __name((deps) => {
|
|
36926
36942
|
const held = /* @__PURE__ */ __name(async (reference, { includeLeft = false } = {}) => {
|
|
36927
36943
|
const store = await deps.store();
|
|
@@ -37007,7 +37023,7 @@ var metadataService = /* @__PURE__ */ __name((deps) => {
|
|
|
37007
37023
|
};
|
|
37008
37024
|
}, "metadataService");
|
|
37009
37025
|
|
|
37010
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37026
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/moderation/run.js
|
|
37011
37027
|
var FIRST_LOOK_MS = 24 * 36e5;
|
|
37012
37028
|
var moderateWith = /* @__PURE__ */ __name(async (run2) => {
|
|
37013
37029
|
const { chatId, title, rules, point, since, dryRun } = run2;
|
|
@@ -37044,7 +37060,7 @@ var moderateWith = /* @__PURE__ */ __name(async (run2) => {
|
|
|
37044
37060
|
return { chatId, rows, notes };
|
|
37045
37061
|
}, "moderateWith");
|
|
37046
37062
|
|
|
37047
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37063
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/services/moderation.js
|
|
37048
37064
|
var moderationService = /* @__PURE__ */ __name((deps) => {
|
|
37049
37065
|
const file = /* @__PURE__ */ __name(() => new ModerationRules(moderationPathFor(deps.messenger.app, deps.profile ?? "default", deps.env ?? process.env)), "file");
|
|
37050
37066
|
const group = /* @__PURE__ */ __name(async (chat) => {
|
|
@@ -37122,7 +37138,7 @@ var moderatorOf = /* @__PURE__ */ __name((adapter, deps) => ({
|
|
|
37122
37138
|
}, "removePerson")
|
|
37123
37139
|
}), "moderatorOf");
|
|
37124
37140
|
|
|
37125
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37141
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/services/private-people.js
|
|
37126
37142
|
var noteItem = /* @__PURE__ */ __name((provider, note) => ({
|
|
37127
37143
|
id: note.id,
|
|
37128
37144
|
contact: formatReference({ type: "contact", provider, id: note.personId }),
|
|
@@ -37166,7 +37182,7 @@ var privatePeopleService = /* @__PURE__ */ __name((deps) => {
|
|
|
37166
37182
|
};
|
|
37167
37183
|
}, "privatePeopleService");
|
|
37168
37184
|
|
|
37169
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37185
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/services/rankings.js
|
|
37170
37186
|
var empty = /* @__PURE__ */ __name(() => ({
|
|
37171
37187
|
total: 0,
|
|
37172
37188
|
population: 0,
|
|
@@ -37422,7 +37438,7 @@ var rankingsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
37422
37438
|
}, "evidence")
|
|
37423
37439
|
}), "rankingsService");
|
|
37424
37440
|
|
|
37425
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37441
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/services/reply-stats.js
|
|
37426
37442
|
var FIELDS = ["date", "chat", "kind", "muted"];
|
|
37427
37443
|
var WAITING_TAIL = 100;
|
|
37428
37444
|
var plainOnly = /* @__PURE__ */ __name((text2, command) => {
|
|
@@ -37556,7 +37572,7 @@ var replyStatsService = /* @__PURE__ */ __name((deps) => {
|
|
|
37556
37572
|
};
|
|
37557
37573
|
}, "replyStatsService");
|
|
37558
37574
|
|
|
37559
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37575
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/services/searches.js
|
|
37560
37576
|
var savedSearchItem = /* @__PURE__ */ __name((one) => ({
|
|
37561
37577
|
id: one.id,
|
|
37562
37578
|
name: one.name,
|
|
@@ -37682,7 +37698,7 @@ var searchesService = /* @__PURE__ */ __name((deps) => {
|
|
|
37682
37698
|
};
|
|
37683
37699
|
}, "searchesService");
|
|
37684
37700
|
|
|
37685
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37701
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/services/tags.js
|
|
37686
37702
|
var TAGGING_QUERY = {
|
|
37687
37703
|
entity: "tagging",
|
|
37688
37704
|
backend: "sql",
|
|
@@ -37766,7 +37782,7 @@ var tagsService = /* @__PURE__ */ __name((deps) => {
|
|
|
37766
37782
|
};
|
|
37767
37783
|
}, "tagsService");
|
|
37768
37784
|
|
|
37769
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37785
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/services/topics.js
|
|
37770
37786
|
var actionOf = /* @__PURE__ */ __name(({ title, closed, pinned, hidden, icon }) => {
|
|
37771
37787
|
const set = [closed, pinned, hidden].filter((one) => one !== void 0).length;
|
|
37772
37788
|
if (title !== void 0 || icon !== void 0 || set !== 1)
|
|
@@ -37965,10 +37981,10 @@ var topicsService = /* @__PURE__ */ __name((deps) => {
|
|
|
37965
37981
|
};
|
|
37966
37982
|
}, "topicsService");
|
|
37967
37983
|
|
|
37968
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37984
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/crm/sync.js
|
|
37969
37985
|
var CLOCK_MARGIN = 60 * 6e4;
|
|
37970
37986
|
|
|
37971
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37987
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/crm/writer.js
|
|
37972
37988
|
var CRM_ASSIGN_OTHERS_KEY = "crm.assign-others";
|
|
37973
37989
|
var CRM_WRITE_DEFAULTS = {
|
|
37974
37990
|
"deals.delete": "ask",
|
|
@@ -37976,7 +37992,7 @@ var CRM_WRITE_DEFAULTS = {
|
|
|
37976
37992
|
[CRM_ASSIGN_OTHERS_KEY]: "deny"
|
|
37977
37993
|
};
|
|
37978
37994
|
|
|
37979
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37995
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/services/evidence.js
|
|
37980
37996
|
import { createHash as createHash11, randomUUID as randomUUID6 } from "node:crypto";
|
|
37981
37997
|
var hash2 = /* @__PURE__ */ __name((value) => createHash11("sha256").update(JSON.stringify(value)).digest("hex"), "hash");
|
|
37982
37998
|
var positive2 = /* @__PURE__ */ __name((value, name, minimum = 1) => {
|
|
@@ -38050,7 +38066,7 @@ var prepareEvidencePacket = /* @__PURE__ */ __name(({ kind, source, page, limits
|
|
|
38050
38066
|
return { ...content, id: randomUUID6(), fingerprint: hash2(content) };
|
|
38051
38067
|
}, "prepareEvidencePacket");
|
|
38052
38068
|
|
|
38053
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38069
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/services/evidence-read.js
|
|
38054
38070
|
var readEvidencePacket = /* @__PURE__ */ __name(async (store, account, { chat, limit, before: before2 }, messenger = {}) => {
|
|
38055
38071
|
if (!Number.isSafeInteger(limit) || limit < 1 || limit > 100)
|
|
38056
38072
|
throw new CliError("validation_error", "evidence message limit must be an integer from 1 to 100");
|
|
@@ -38070,7 +38086,7 @@ var readEvidencePacket = /* @__PURE__ */ __name(async (store, account, { chat, l
|
|
|
38070
38086
|
return { ...packet, nextBeforeId: older && last ? last.id : null };
|
|
38071
38087
|
}, "readEvidencePacket");
|
|
38072
38088
|
|
|
38073
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38089
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/services/meeting-project-discovery.js
|
|
38074
38090
|
var scopeKeys = [
|
|
38075
38091
|
"accountId",
|
|
38076
38092
|
"meetingId",
|
|
@@ -38092,7 +38108,7 @@ var optionKeys = /* @__PURE__ */ new Set([
|
|
|
38092
38108
|
"maxVocabularyReadBytes"
|
|
38093
38109
|
]);
|
|
38094
38110
|
|
|
38095
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38111
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/services/text-model-choice.js
|
|
38096
38112
|
import { createHash as createHash12 } from "node:crypto";
|
|
38097
38113
|
import { existsSync as existsSync2 } from "node:fs";
|
|
38098
38114
|
var useTextModel = /* @__PURE__ */ __name(async (id2, { env, command }) => {
|
|
@@ -38223,7 +38239,7 @@ var addCustomTextModel = /* @__PURE__ */ __name(async (id2, payload, { env, fetc
|
|
|
38223
38239
|
return { ...checked2.output, custom: true };
|
|
38224
38240
|
}, "addCustomTextModel");
|
|
38225
38241
|
|
|
38226
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38242
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/context/communication-selection.js
|
|
38227
38243
|
var communicationFields = {
|
|
38228
38244
|
sources: pipe(array(strictObject({
|
|
38229
38245
|
id: pipe(string(), regex(/^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$/)),
|
|
@@ -38255,7 +38271,7 @@ var communicationRequest = /* @__PURE__ */ __name((value, preparationAfter) => {
|
|
|
38255
38271
|
return { ...input, after, before: before2 };
|
|
38256
38272
|
}, "communicationRequest");
|
|
38257
38273
|
|
|
38258
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38274
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/services/meeting-preparation-validation.js
|
|
38259
38275
|
var MEETING_PREPARATION_LIMITS = {
|
|
38260
38276
|
meetings: { min: 1, max: 20, default: 5 },
|
|
38261
38277
|
cues: { min: 1, max: 100, default: 10 },
|
|
@@ -38328,7 +38344,7 @@ var validateMeetingPreparationRequest = /* @__PURE__ */ __name((externalId, orig
|
|
|
38328
38344
|
};
|
|
38329
38345
|
}, "validateMeetingPreparationRequest");
|
|
38330
38346
|
|
|
38331
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38347
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/services/meeting-communications-selection.js
|
|
38332
38348
|
var validatePreparationCommunications = /* @__PURE__ */ __name((section, request, after) => {
|
|
38333
38349
|
const fail2 = /* @__PURE__ */ __name(() => {
|
|
38334
38350
|
throw new CliError("invalid_response", "Preparation communications returned another selection or invalid evidence");
|
|
@@ -38376,7 +38392,7 @@ var validatePreparationCommunications = /* @__PURE__ */ __name((section, request
|
|
|
38376
38392
|
}
|
|
38377
38393
|
}, "validatePreparationCommunications");
|
|
38378
38394
|
|
|
38379
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38395
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/services/package-upgrade.js
|
|
38380
38396
|
var upgradePackage = /* @__PURE__ */ __name(async ({ current, command, packageName, check: check2 }, ports) => {
|
|
38381
38397
|
const installer = ports.installer();
|
|
38382
38398
|
const argv = updateCommand(installer, packageName);
|
|
@@ -38441,7 +38457,7 @@ var dayAfter = /* @__PURE__ */ __name((published) => {
|
|
|
38441
38457
|
return Number.isNaN(time) ? null : new Date(time + 24 * 60 * 60 * 1e3).toISOString();
|
|
38442
38458
|
}, "dayAfter");
|
|
38443
38459
|
|
|
38444
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38460
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/services/index.js
|
|
38445
38461
|
var servicesFor = /* @__PURE__ */ __name((deps) => {
|
|
38446
38462
|
const pictures = picturesService(deps);
|
|
38447
38463
|
const base = {
|
|
@@ -38478,7 +38494,7 @@ var servicesFor = /* @__PURE__ */ __name((deps) => {
|
|
|
38478
38494
|
return deps.messenger.services ? { ...base, ...deps.messenger.services(base, deps) } : base;
|
|
38479
38495
|
}, "servicesFor");
|
|
38480
38496
|
|
|
38481
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38497
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/background/relay.js
|
|
38482
38498
|
import { createHash as createHash13 } from "node:crypto";
|
|
38483
38499
|
import { chmodSync, lstatSync, mkdirSync as mkdirSync6, rmSync as rmSync3 } from "node:fs";
|
|
38484
38500
|
import { createConnection, createServer } from "node:net";
|
|
@@ -38699,7 +38715,7 @@ var relayCommand = /* @__PURE__ */ __name((path, request, options2) => new Promi
|
|
|
38699
38715
|
}, () => finish({ error: stopped() }));
|
|
38700
38716
|
}), "relayCommand");
|
|
38701
38717
|
|
|
38702
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38718
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-relay.js
|
|
38703
38719
|
var lentConnection = /* @__PURE__ */ __name((connection, watchers) => throughWrapper(connection, {
|
|
38704
38720
|
close: /* @__PURE__ */ __name(async () => {
|
|
38705
38721
|
}, "close"),
|