@wirecat/attio-cli 0.5.0 → 0.5.2
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 +16 -0
- package/dist/bin/attio.js +2 -2
- package/dist/bundle/agent-YCPGDAWJ.js +37 -0
- package/dist/bundle/{all-profiles-ZM2ULOTA.js → all-profiles-ONLZNT2O.js} +6 -6
- package/dist/bundle/{anthropic-CIJQLJ7U.js → anthropic-7NHDUCS7.js} +2 -2
- package/dist/bundle/{app-server-56GKE6BE.js → app-server-76UZBJNR.js} +53 -53
- package/dist/bundle/attio.js +2 -2
- package/dist/bundle/{bun-3D6UYEKL.js → bun-3M7LDMJY.js} +2 -2
- package/dist/bundle/{bun-sqlite-TWXFZF7R.js → bun-sqlite-WWPYULNT.js} +3 -3
- package/dist/bundle/{chunk-AXJNIMPZ.js → chunk-2HU7TYQK.js} +1 -1
- package/dist/bundle/{chunk-DYLNV6GY.js → chunk-3MZREGLN.js} +11 -11
- package/dist/bundle/{chunk-Y7SRFHYL.js → chunk-3QYMX2QX.js} +2 -2
- package/dist/bundle/{chunk-HTTGJI6G.js → chunk-3TFPJCTB.js} +23 -23
- package/dist/bundle/{chunk-HU6HKKIH.js → chunk-65OPLJBL.js} +2 -2
- package/dist/bundle/{chunk-4V6ARVEH.js → chunk-6MEPMDWU.js} +183 -159
- package/dist/bundle/{chunk-QWBCCZNQ.js → chunk-6MPA7CKD.js} +2 -2
- package/dist/bundle/{chunk-6ITXXXQN.js → chunk-764RTGNI.js} +2 -2
- package/dist/bundle/{chunk-ZLCTHTOK.js → chunk-7ONN7UCC.js} +1 -1
- package/dist/bundle/{chunk-WZAQ7U2F.js → chunk-A5A2I2DY.js} +1 -1
- package/dist/bundle/{chunk-LTMLSN6W.js → chunk-ABMNYUSQ.js} +11 -11
- package/dist/bundle/{chunk-O3GNIUUI.js → chunk-AYF2JNHE.js} +2 -2
- package/dist/bundle/{chunk-ZNQ3NNAB.js → chunk-BSPMRKPS.js} +5 -5
- package/dist/bundle/{chunk-MOTQBDFB.js → chunk-DOTBJMPB.js} +2 -2
- package/dist/bundle/{chunk-T4SPEBOI.js → chunk-EKRO2AYG.js} +7 -7
- package/dist/bundle/{chunk-DBAZ5TBW.js → chunk-F5IGO45Z.js} +5 -5
- package/dist/bundle/{chunk-EXWFB2XY.js → chunk-FVBZHGFE.js} +1 -1
- package/dist/bundle/{chunk-U6W3NW74.js → chunk-GHT7KPTC.js} +32 -32
- package/dist/bundle/{chunk-JQ5NTPT5.js → chunk-H7RYW7CD.js} +1 -1
- package/dist/bundle/{chunk-CRK3LRCL.js → chunk-HGD4JW37.js} +10 -10
- package/dist/bundle/{chunk-VE6L6TDH.js → chunk-HPYDPVGU.js} +2 -2
- package/dist/bundle/{chunk-V6GEPZWY.js → chunk-J3ZQ4JWD.js} +32 -32
- package/dist/bundle/{chunk-QD7INIE3.js → chunk-JRHDYND7.js} +1 -1
- package/dist/bundle/{chunk-CVHEO4HS.js → chunk-KTGIA7CC.js} +530 -412
- package/dist/bundle/{chunk-YITSNC3D.js → chunk-KWJ4GAYR.js} +3 -3
- package/dist/bundle/{chunk-K45K3AJU.js → chunk-LQDZSJ3V.js} +1 -1
- package/dist/bundle/{chunk-M7UG4UBJ.js → chunk-LSFZSGQK.js} +2 -2
- package/dist/bundle/{chunk-7JUZNTYO.js → chunk-M62QM7VF.js} +9 -9
- package/dist/bundle/{chunk-WQKMBZRF.js → chunk-MFPYCWMY.js} +4 -4
- package/dist/bundle/{chunk-OE3J3P24.js → chunk-MUDJABVF.js} +2 -2
- package/dist/bundle/{chunk-EPLC6LQP.js → chunk-N6VLRVCC.js} +51 -51
- package/dist/bundle/{chunk-4KLCWI57.js → chunk-NCYBA5FH.js} +2 -2
- package/dist/bundle/{chunk-KYGX7XUZ.js → chunk-NGVO2UTA.js} +16 -16
- package/dist/bundle/{chunk-Q5VVEFXR.js → chunk-NN7Z5RK6.js} +7 -7
- package/dist/bundle/{chunk-6ZEG7MR3.js → chunk-NPYPL7FT.js} +1 -1
- package/dist/bundle/{chunk-HNH7EVWO.js → chunk-OLKDUVWD.js} +12 -12
- package/dist/bundle/{chunk-OI4WM2AM.js → chunk-PQHS4Z5G.js} +1 -1
- package/dist/bundle/{chunk-6C6RHNUB.js → chunk-PVZK2COW.js} +4 -4
- package/dist/bundle/{chunk-YSA36HJM.js → chunk-PYFVVNAD.js} +1 -1
- package/dist/bundle/{chunk-X5TBQOYI.js → chunk-PZBQH5B7.js} +2 -2
- package/dist/bundle/{chunk-QDU4MLUN.js → chunk-PZE4D63W.js} +5 -5
- package/dist/bundle/{chunk-TBRD6I2W.js → chunk-QRHPXZST.js} +2 -2
- package/dist/bundle/{chunk-33HYI76J.js → chunk-RDXB7HFB.js} +2 -2
- package/dist/bundle/{chunk-XJ7LTHXM.js → chunk-RUNJPSJ3.js} +324 -280
- package/dist/bundle/{chunk-R5TIPW5A.js → chunk-S3SA2XXD.js} +9 -9
- package/dist/bundle/{chunk-EPWOY5UJ.js → chunk-S552I4P7.js} +1 -1
- package/dist/bundle/{chunk-KNJ5W5ZZ.js → chunk-STEUWWU5.js} +22 -11
- package/dist/bundle/{chunk-GSA2HYGF.js → chunk-T2TW53JB.js} +6 -6
- package/dist/bundle/{chunk-VTAZ4LL7.js → chunk-T3QKHFGB.js} +12 -12
- package/dist/bundle/{chunk-7PXDDBH7.js → chunk-TF33UDFE.js} +1 -1
- package/dist/bundle/{chunk-SQOHCWB2.js → chunk-TL7NUBVM.js} +1 -1
- package/dist/bundle/{chunk-MH55F2Z2.js → chunk-TVDBAZFO.js} +5 -5
- package/dist/bundle/{chunk-XBMJAFXC.js → chunk-U3KTIE6B.js} +1 -1
- package/dist/bundle/{chunk-BMDM6I5G.js → chunk-UFFAPBAP.js} +4 -4
- package/dist/bundle/{chunk-ORMKVY7L.js → chunk-V2AF7BYP.js} +54 -54
- package/dist/bundle/{chunk-CQZREDFS.js → chunk-V6RWAUX7.js} +3 -3
- package/dist/bundle/{chunk-NJSWOZED.js → chunk-VIXMK7ZG.js} +6 -6
- package/dist/bundle/{chunk-QA5WIEW5.js → chunk-VNGG6O5T.js} +5 -5
- package/dist/bundle/{chunk-HMORLIGS.js → chunk-WUECAFAJ.js} +1 -1
- package/dist/bundle/{chunk-46U5WHCF.js → chunk-WVXEVCMY.js} +7 -7
- package/dist/bundle/{chunk-HXHQBYLN.js → chunk-X6NSSCMF.js} +1 -1
- package/dist/bundle/{chunk-MVSBV6U7.js → chunk-Y2HZQMNK.js} +1 -1
- package/dist/bundle/{chunk-OJ7P7IK5.js → chunk-YQNZFXOW.js} +6 -6
- package/dist/bundle/{command-contract-SLVMJ557.js → command-contract-7BABQLZN.js} +15 -15
- package/dist/bundle/{command-server-entry-MIZABAB2.js → command-server-entry-6UEGWYW7.js} +21 -21
- package/dist/bundle/{decode-3K7AMIIK.js → decode-BF2CNTOP.js} +2 -2
- package/dist/bundle/{echarts-HQ3M6PY5.js → echarts-ELZMS7DC.js} +2 -2
- package/dist/bundle/{embed-MYNNE2KU.js → embed-SXU7JVUG.js} +3 -3
- package/dist/bundle/{embedder-MZM52STR.js → embedder-ZVNBHGXC.js} +6 -6
- package/dist/bundle/{first-run-FNH4L2MF.js → first-run-SLIPSHPE.js} +6 -6
- package/dist/bundle/first-screen-UPNPU4MF.js +37 -0
- package/dist/bundle/{instructions-JCYBL6AU.js → instructions-Q6QKH7MV.js} +1 -1
- package/dist/bundle/{meeting-combined-FIPUL6DF.js → meeting-combined-DLXVVC5J.js} +10 -10
- package/dist/bundle/{meeting-model-36UKUPUK.js → meeting-model-XJ6OWIAP.js} +8 -8
- package/dist/bundle/{meeting-semantic-NX6AQT6U.js → meeting-semantic-7TJE4HX6.js} +2 -2
- package/dist/bundle/{node-US26HP3Q.js → node-YNLEE4BB.js} +2 -2
- package/dist/bundle/{node-sqlite-7SJYGLZB.js → node-sqlite-24VK6J3W.js} +4 -4
- package/dist/bundle/{oauth-GMDEZTLF.js → oauth-4TLSBITF.js} +4 -4
- package/dist/bundle/{open-WJINQYGM.js → open-U6M2RLYK.js} +2 -2
- package/dist/bundle/{openai-DNLCKN6O.js → openai-UKD2XQ5J.js} +12 -12
- package/dist/bundle/{process-2TFFZAX6.js → process-UIE2CRFP.js} +1 -1
- package/dist/bundle/{program-Y3GX3KE4.js → program-GF35ICCN.js} +487 -401
- package/dist/bundle/{prompt-OEPGHWMQ.js → prompt-TSDXFP3E.js} +2 -2
- package/dist/bundle/{recognize-7C4PENI6.js → recognize-Y534SZIK.js} +1 -1
- package/dist/bundle/{remote-HNRRZA6M.js → remote-PJNOYKXU.js} +6 -6
- package/dist/bundle/{rerank-JNDOOOIZ.js → rerank-TE4HIS5A.js} +4 -4
- package/dist/bundle/{serve-ATTJW7LZ.js → serve-ZOZWJKHB.js} +6 -6
- package/dist/bundle/{server-OHKISLVN.js → server-3K4IC4OA.js} +45 -45
- package/dist/bundle/server-HPHPHKNF.js +79 -0
- package/dist/bundle/{sqlite-runtime-TEZ56D53.js → sqlite-runtime-6R6CHLEM.js} +3 -3
- package/dist/bundle/{state-SMWKWKIB.js → state-DFAH57DP.js} +3 -3
- package/dist/bundle/{store-YCWZZ3LG.js → store-6B5JF2LC.js} +16 -16
- package/dist/bundle/{store-6SKOO4IN.js → store-LPO5SHGK.js} +14 -14
- package/dist/bundle/store-maintenance-command-UBNM3ADW.js +66 -0
- package/dist/bundle/surface-WQ7UR2NJ.js +65 -0
- package/dist/hooks.d.ts.map +1 -1
- package/dist/hooks.js +7 -4
- package/dist/hooks.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +2 -2
- package/dist/bundle/agent-EIWQ37E3.js +0 -37
- package/dist/bundle/first-screen-TJE6JEAN.js +0 -37
- package/dist/bundle/server-IMVPAMM6.js +0 -79
- package/dist/bundle/store-maintenance-command-I5BNK4RE.js +0 -66
- package/dist/bundle/surface-NXFOGLLG.js +0 -65
|
@@ -8,10 +8,10 @@ import {
|
|
|
8
8
|
sameOrdinaryFile,
|
|
9
9
|
syncDirectory,
|
|
10
10
|
writeFileAtomic
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-T3QKHFGB.js";
|
|
12
12
|
import {
|
|
13
13
|
WIRECAT_TOOLS
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-X6NSSCMF.js";
|
|
15
15
|
import {
|
|
16
16
|
isNewer,
|
|
17
17
|
updateCommand
|
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
termField,
|
|
26
26
|
timeBounds,
|
|
27
27
|
withQuery
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-OLKDUVWD.js";
|
|
29
29
|
import {
|
|
30
30
|
EmptyAnswer,
|
|
31
31
|
MAX_MODEL_IMAGE_BYTES,
|
|
@@ -34,7 +34,7 @@ import {
|
|
|
34
34
|
range,
|
|
35
35
|
systemFor,
|
|
36
36
|
validateImages
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-PZBQH5B7.js";
|
|
38
38
|
import {
|
|
39
39
|
anyOfTerms,
|
|
40
40
|
isFunctionWord,
|
|
@@ -45,8 +45,9 @@ import {
|
|
|
45
45
|
questionText,
|
|
46
46
|
resolveMeetingSelection,
|
|
47
47
|
words
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-M62QM7VF.js";
|
|
49
49
|
import {
|
|
50
|
+
API_UNTRUSTED,
|
|
50
51
|
AUTHORITY_KEY,
|
|
51
52
|
CEILING_KEY,
|
|
52
53
|
Command,
|
|
@@ -84,6 +85,7 @@ import {
|
|
|
84
85
|
keyForWrite,
|
|
85
86
|
levelFor,
|
|
86
87
|
listOf,
|
|
88
|
+
marksUntrusted,
|
|
87
89
|
oddName,
|
|
88
90
|
outputFor,
|
|
89
91
|
parseDuration,
|
|
@@ -101,11 +103,11 @@ import {
|
|
|
101
103
|
stops,
|
|
102
104
|
tagging,
|
|
103
105
|
task
|
|
104
|
-
} from "./chunk-
|
|
106
|
+
} from "./chunk-6MEPMDWU.js";
|
|
105
107
|
import {
|
|
106
108
|
providerErrorKey,
|
|
107
109
|
secretInput
|
|
108
|
-
} from "./chunk-
|
|
110
|
+
} from "./chunk-YQNZFXOW.js";
|
|
109
111
|
import {
|
|
110
112
|
CustomTextModelShape,
|
|
111
113
|
DEFAULT_RERANK_MODEL,
|
|
@@ -119,7 +121,7 @@ import {
|
|
|
119
121
|
textModels,
|
|
120
122
|
vectorModelKey,
|
|
121
123
|
writeTextModelsSection
|
|
122
|
-
} from "./chunk-
|
|
124
|
+
} from "./chunk-UFFAPBAP.js";
|
|
123
125
|
import {
|
|
124
126
|
AGENDA_COLUMNS,
|
|
125
127
|
BUSINESS_FIND_MAX,
|
|
@@ -195,17 +197,17 @@ import {
|
|
|
195
197
|
trackerBodyOf,
|
|
196
198
|
trackerTitleOf,
|
|
197
199
|
withoutField
|
|
198
|
-
} from "./chunk-
|
|
200
|
+
} from "./chunk-KTGIA7CC.js";
|
|
199
201
|
import {
|
|
200
202
|
DEFAULT_STEMMERS,
|
|
201
203
|
createStemmer,
|
|
202
204
|
cutsDeep
|
|
203
|
-
} from "./chunk-
|
|
205
|
+
} from "./chunk-EKRO2AYG.js";
|
|
204
206
|
import {
|
|
205
207
|
MINUTE,
|
|
206
208
|
YEAR,
|
|
207
209
|
aheadOf
|
|
208
|
-
} from "./chunk-
|
|
210
|
+
} from "./chunk-LSFZSGQK.js";
|
|
209
211
|
import {
|
|
210
212
|
FIELD_VERSION,
|
|
211
213
|
MESSAGE_PARSING,
|
|
@@ -222,11 +224,11 @@ import {
|
|
|
222
224
|
searchError,
|
|
223
225
|
validateAst,
|
|
224
226
|
validateFields
|
|
225
|
-
} from "./chunk-
|
|
227
|
+
} from "./chunk-VIXMK7ZG.js";
|
|
226
228
|
import {
|
|
227
229
|
fold,
|
|
228
230
|
normalize
|
|
229
|
-
} from "./chunk-
|
|
231
|
+
} from "./chunk-H7RYW7CD.js";
|
|
230
232
|
import {
|
|
231
233
|
CRM_KINDS,
|
|
232
234
|
DEAL_KINDS,
|
|
@@ -278,14 +280,14 @@ import {
|
|
|
278
280
|
sourceOf3 as sourceOf2,
|
|
279
281
|
typedCommand,
|
|
280
282
|
withAttempt
|
|
281
|
-
} from "./chunk-
|
|
283
|
+
} from "./chunk-J3ZQ4JWD.js";
|
|
282
284
|
import {
|
|
283
285
|
isCliFailure,
|
|
284
286
|
sqliteCode
|
|
285
|
-
} from "./chunk-
|
|
287
|
+
} from "./chunk-QRHPXZST.js";
|
|
286
288
|
import {
|
|
287
289
|
normalizeTag
|
|
288
|
-
} from "./chunk-
|
|
290
|
+
} from "./chunk-U3KTIE6B.js";
|
|
289
291
|
import {
|
|
290
292
|
OPERATORS_BY_TYPE,
|
|
291
293
|
READ_BUDGET_EXCEEDED,
|
|
@@ -309,12 +311,12 @@ import {
|
|
|
309
311
|
validateQuery,
|
|
310
312
|
walkQuery,
|
|
311
313
|
windowOf
|
|
312
|
-
} from "./chunk-
|
|
314
|
+
} from "./chunk-N6VLRVCC.js";
|
|
313
315
|
import {
|
|
314
316
|
localOnly,
|
|
315
317
|
refuseOffComputer,
|
|
316
318
|
remoteKey
|
|
317
|
-
} from "./chunk-
|
|
319
|
+
} from "./chunk-WVXEVCMY.js";
|
|
318
320
|
import {
|
|
319
321
|
PLAIN_HTTP_REFUSED,
|
|
320
322
|
endpoint,
|
|
@@ -325,14 +327,14 @@ import {
|
|
|
325
327
|
providerWaitMs,
|
|
326
328
|
readJsonResponse,
|
|
327
329
|
statusToCode
|
|
328
|
-
} from "./chunk-
|
|
330
|
+
} from "./chunk-Y2HZQMNK.js";
|
|
329
331
|
import {
|
|
330
332
|
DEFAULT_TASK_CATEGORIES,
|
|
331
333
|
FALLBACK_CATEGORY,
|
|
332
334
|
readSharedSection,
|
|
333
335
|
sharedConfigPath,
|
|
334
336
|
writeSharedSection
|
|
335
|
-
} from "./chunk-
|
|
337
|
+
} from "./chunk-F5IGO45Z.js";
|
|
336
338
|
import {
|
|
337
339
|
Unzip,
|
|
338
340
|
UnzipInflate,
|
|
@@ -343,15 +345,15 @@ import {
|
|
|
343
345
|
placedText,
|
|
344
346
|
runEmbedders,
|
|
345
347
|
textModelsDirectory
|
|
346
|
-
} from "./chunk-
|
|
348
|
+
} from "./chunk-BSPMRKPS.js";
|
|
347
349
|
import {
|
|
348
350
|
installFiles,
|
|
349
351
|
megabytes
|
|
350
|
-
} from "./chunk-
|
|
352
|
+
} from "./chunk-V6RWAUX7.js";
|
|
351
353
|
import {
|
|
352
354
|
storePath,
|
|
353
355
|
wirecatDirectory
|
|
354
|
-
} from "./chunk-
|
|
356
|
+
} from "./chunk-FVBZHGFE.js";
|
|
355
357
|
import {
|
|
356
358
|
Credentials,
|
|
357
359
|
logRecordOf,
|
|
@@ -17017,10 +17019,10 @@ var require_lib3 = __commonJS({
|
|
|
17017
17019
|
}
|
|
17018
17020
|
});
|
|
17019
17021
|
|
|
17020
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17022
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/ports/traits.js
|
|
17021
17023
|
var syncsOneChat = /* @__PURE__ */ __name((messenger) => messenger.history !== "store" || messenger.historyOnDemand === true, "syncsOneChat");
|
|
17022
17024
|
|
|
17023
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17025
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/conversations/link.js
|
|
17024
17026
|
var RULES_VERSION = 6;
|
|
17025
17027
|
var LOOK_BACK = 50;
|
|
17026
17028
|
var SAME_SENDER_WITHIN = 10;
|
|
@@ -17118,7 +17120,7 @@ var latest = /* @__PURE__ */ __name((window2, matches) => {
|
|
|
17118
17120
|
var sameThread = /* @__PURE__ */ __name((a, b) => a.threadId === b.threadId, "sameThread");
|
|
17119
17121
|
var link = /* @__PURE__ */ __name((message, parentId, source, kind2, confidence, method) => ({ messageId: message.id, parentId, source, kind: kind2, confidence, method }), "link");
|
|
17120
17122
|
|
|
17121
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17123
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/sends/upload.js
|
|
17122
17124
|
import { openAsBlob, realpathSync } from "node:fs";
|
|
17123
17125
|
import { open, stat } from "node:fs/promises";
|
|
17124
17126
|
import { basename, dirname, extname, isAbsolute, relative, resolve, sep } from "node:path";
|
|
@@ -17334,10 +17336,10 @@ var readStickerFile = /* @__PURE__ */ __name(async (path2, maxBytes, read2) => {
|
|
|
17334
17336
|
return { name, source };
|
|
17335
17337
|
}, "readStickerFile");
|
|
17336
17338
|
|
|
17337
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17339
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/sends/guard.js
|
|
17338
17340
|
import { randomUUID } from "node:crypto";
|
|
17339
17341
|
|
|
17340
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17342
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/sends/flood.js
|
|
17341
17343
|
import { mkdirSync, readFileSync, renameSync, writeFileSync } from "node:fs";
|
|
17342
17344
|
import { dirname as dirname2, join } from "node:path";
|
|
17343
17345
|
var MOST_DEADLINES = 50;
|
|
@@ -17421,11 +17423,11 @@ var FloodMemory = class {
|
|
|
17421
17423
|
}
|
|
17422
17424
|
};
|
|
17423
17425
|
|
|
17424
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17426
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/sends/journal.js
|
|
17425
17427
|
import { appendFileSync, mkdirSync as mkdirSync3, readFileSync as readFileSync2 } from "node:fs";
|
|
17426
17428
|
import { dirname as dirname4, join as join2 } from "node:path";
|
|
17427
17429
|
|
|
17428
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17430
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/sends/file-lock.js
|
|
17429
17431
|
import { closeSync, mkdirSync as mkdirSync2, openSync, statSync, unlinkSync } from "node:fs";
|
|
17430
17432
|
import { dirname as dirname3 } from "node:path";
|
|
17431
17433
|
var LOCK_WAIT_MS = 5e3;
|
|
@@ -17492,7 +17494,7 @@ var lockTime = /* @__PURE__ */ __name((lock) => {
|
|
|
17492
17494
|
}
|
|
17493
17495
|
}, "lockTime");
|
|
17494
17496
|
|
|
17495
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17497
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/sends/journal.js
|
|
17496
17498
|
var sendsPathFor = /* @__PURE__ */ __name((app, profile, env = process.env) => join2(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "sends", `${profile}.jsonl`), "sendsPathFor");
|
|
17497
17499
|
var SendJournal = class {
|
|
17498
17500
|
static {
|
|
@@ -17569,7 +17571,7 @@ var withSendId = /* @__PURE__ */ __name((entry) => {
|
|
|
17569
17571
|
return cid === void 0 || rest.sendId !== void 0 ? rest : { ...rest, sendId: String(cid) };
|
|
17570
17572
|
}, "withSendId");
|
|
17571
17573
|
|
|
17572
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17574
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/sends/recipients.js
|
|
17573
17575
|
import { existsSync, readFileSync as readFileSync3, rmSync } from "node:fs";
|
|
17574
17576
|
import { join as join3 } from "node:path";
|
|
17575
17577
|
var recipientsPathFor = /* @__PURE__ */ __name((app, profile, env = process.env) => join3(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "profiles", `${profile}.recipients.json`), "recipientsPathFor");
|
|
@@ -17681,7 +17683,7 @@ var RecipientList = class {
|
|
|
17681
17683
|
}
|
|
17682
17684
|
};
|
|
17683
17685
|
|
|
17684
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17686
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/sends/guard.js
|
|
17685
17687
|
var HOUR_MS = 60 * 60 * 1e3;
|
|
17686
17688
|
var countsTowardLimit = /* @__PURE__ */ __name(({ kind: kind2 = "message", action: action2, notify }) => kind2 === "message" || kind2 === "forward" || kind2 === "edit" || kind2 === "delete" || kind2 === "pin" && notify === true || action2 === "create" || action2 === "members.add" || action2 === "requests.accept" || action2 === "join" || action2 === "contact-import", "countsTowardLimit");
|
|
17687
17689
|
var weightOf = /* @__PURE__ */ __name(({ kind: kind2 = "message", action: action2, count: count3, people }) => kind2 === "delete" || kind2 === "message" && action2 === void 0 ? Math.max(1, count3 ?? 1) : action2 === "create" || action2 === "members.add" || action2 === "requests.accept" || action2 === "contact-import" ? Math.max(1, people ?? count3 ?? 1) : 1, "weightOf");
|
|
@@ -17869,7 +17871,7 @@ var guardFor = /* @__PURE__ */ __name((app, settings, warn, env = process.env, a
|
|
|
17869
17871
|
}), "guardFor");
|
|
17870
17872
|
var journalFailure = /* @__PURE__ */ __name((error) => error?.code ?? (error instanceof Error ? error.name : "error"), "journalFailure");
|
|
17871
17873
|
|
|
17872
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17874
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/cli/messenger/ask.js
|
|
17873
17875
|
import { openSync as openSync2 } from "node:fs";
|
|
17874
17876
|
import { createInterface } from "node:readline";
|
|
17875
17877
|
import { ReadStream } from "node:tty";
|
|
@@ -17924,7 +17926,7 @@ var terminalAsker = /* @__PURE__ */ __name((command) => async (key, request) =>
|
|
|
17924
17926
|
throw new CliError("cancelled", `${key}: not done \u2014 the answer was no`);
|
|
17925
17927
|
}, "terminalAsker");
|
|
17926
17928
|
|
|
17927
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17929
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/cli/messenger/lacks.js
|
|
17928
17930
|
var COMMAND_NEEDS = {
|
|
17929
17931
|
"account update": ["updateProfile", "change the profile"],
|
|
17930
17932
|
"account sessions list": ["sessions", "list the account's sessions"],
|
|
@@ -17989,7 +17991,7 @@ var hideNever = /* @__PURE__ */ __name((messenger, group) => {
|
|
|
17989
17991
|
return group;
|
|
17990
17992
|
}, "hideNever");
|
|
17991
17993
|
|
|
17992
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17994
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/services/deps.js
|
|
17993
17995
|
var accountStore = /* @__PURE__ */ __name(async (deps) => (await deps.store()).forAccount(await deps.account()), "accountStore");
|
|
17994
17996
|
var crossAccount = /* @__PURE__ */ __name((deps, _reason) => deps.store(), "crossAccount");
|
|
17995
17997
|
var NO_LOCAL_STORE = "this answer comes from the messenger, not from the local store";
|
|
@@ -18051,12 +18053,12 @@ var storedDeps = /* @__PURE__ */ __name((messenger, store, account, guard) => ({
|
|
|
18051
18053
|
}), "storedDeps");
|
|
18052
18054
|
var storeModeDeps = /* @__PURE__ */ __name((messenger, store, account, guard) => ({ ...storedDeps(messenger, store, account, guard), offline: false, reads: "store" }), "storeModeDeps");
|
|
18053
18055
|
|
|
18054
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18056
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/sends/send-id.js
|
|
18055
18057
|
import { randomBytes } from "node:crypto";
|
|
18056
18058
|
var newSendId = /* @__PURE__ */ __name(() => randomBytes(8).readBigInt64BE().toString(), "newSendId");
|
|
18057
18059
|
var newOperationId = newSendId;
|
|
18058
18060
|
|
|
18059
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18061
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/services/questions.js
|
|
18060
18062
|
var LINKS = /https?:\/\/\S+/g;
|
|
18061
18063
|
var unanswered = /* @__PURE__ */ __name((messages, { answerers: answerers2, before }) => questions(messages, { answerers: answerers2 }).filter(({ question, answer }) => answer === void 0 && Date.parse(question.timestamp) < before).map(({ question }) => question), "unanswered");
|
|
18062
18064
|
var questions = /* @__PURE__ */ __name((messages, { answerers: answerers2, asker = "others" }) => {
|
|
@@ -18086,7 +18088,7 @@ var questions = /* @__PURE__ */ __name((messages, { answerers: answerers2, asker
|
|
|
18086
18088
|
});
|
|
18087
18089
|
}, "questions");
|
|
18088
18090
|
|
|
18089
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18091
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/services/members-audit.js
|
|
18090
18092
|
var AUDIT_PAGE = 200;
|
|
18091
18093
|
var AUDIT_BUDGET = 10;
|
|
18092
18094
|
var AUDIT_PAUSE_MS = 1e3;
|
|
@@ -18166,7 +18168,7 @@ var burstJoins = /* @__PURE__ */ __name((members) => {
|
|
|
18166
18168
|
return found;
|
|
18167
18169
|
}, "burstJoins");
|
|
18168
18170
|
|
|
18169
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18171
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/services/task-categories.js
|
|
18170
18172
|
var names = /* @__PURE__ */ __name((categories) => categories.map(({ name }) => name).join(", "), "names");
|
|
18171
18173
|
var taskCategoryOf = /* @__PURE__ */ __name((categories = DEFAULT_TASK_CATEGORIES, flag = "--category") => (typed) => {
|
|
18172
18174
|
const name = typed.trim().toLowerCase();
|
|
@@ -18223,7 +18225,7 @@ var categorize = /* @__PURE__ */ __name((text3, categories = DEFAULT_TASK_CATEGO
|
|
|
18223
18225
|
return best.name;
|
|
18224
18226
|
}, "categorize");
|
|
18225
18227
|
|
|
18226
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18228
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/services/task-rules.js
|
|
18227
18229
|
var taskAccount = /* @__PURE__ */ __name(({ provider, account }) => `${provider}:${account}`, "taskAccount");
|
|
18228
18230
|
var RULES_IN = {
|
|
18229
18231
|
dialog: "all",
|
|
@@ -18429,7 +18431,7 @@ var applyTaskRulesToChats = /* @__PURE__ */ __name(async (store, account, chatId
|
|
|
18429
18431
|
return passes;
|
|
18430
18432
|
}, "applyTaskRulesToChats");
|
|
18431
18433
|
|
|
18432
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18434
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/services/patience.js
|
|
18433
18435
|
import { setTimeout as sleep } from "node:timers/promises";
|
|
18434
18436
|
var LONGEST_WAIT_MS = 5 * 60 * 1e3;
|
|
18435
18437
|
var patiently = /* @__PURE__ */ __name(async (request, note, stop) => {
|
|
@@ -18452,10 +18454,10 @@ var patiently = /* @__PURE__ */ __name(async (request, note, stop) => {
|
|
|
18452
18454
|
}
|
|
18453
18455
|
}, "patiently");
|
|
18454
18456
|
|
|
18455
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18457
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/services/archive.js
|
|
18456
18458
|
import { setTimeout as sleep2 } from "node:timers/promises";
|
|
18457
18459
|
|
|
18458
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18460
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/services/backfill-estimate.js
|
|
18459
18461
|
var REQUEST_MS = 400;
|
|
18460
18462
|
var estimateBackfill = /* @__PURE__ */ __name(({ ranges, held, newest, page, maxPages, pauseMs }) => {
|
|
18461
18463
|
const lowest = ranges[0];
|
|
@@ -18478,13 +18480,13 @@ var estimateBackfill = /* @__PURE__ */ __name(({ ranges, held, newest, page, max
|
|
|
18478
18480
|
};
|
|
18479
18481
|
}, "estimateBackfill");
|
|
18480
18482
|
|
|
18481
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18483
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/domain/recovery.js
|
|
18482
18484
|
var withRecovery = /* @__PURE__ */ __name((error) => ({
|
|
18483
18485
|
...error,
|
|
18484
18486
|
retryable: typeof error.retryable === "boolean" ? error.retryable : error.code === "rate_limited" || error.status === 429
|
|
18485
18487
|
}), "withRecovery");
|
|
18486
18488
|
|
|
18487
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18489
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/services/batch.js
|
|
18488
18490
|
var actionable = /* @__PURE__ */ __name((error) => {
|
|
18489
18491
|
if (isCliFailure(error))
|
|
18490
18492
|
return withRecovery({ code: error.code, message: error.message, ...error.details });
|
|
@@ -18567,7 +18569,7 @@ var mergeBatches = /* @__PURE__ */ __name((a, b) => {
|
|
|
18567
18569
|
};
|
|
18568
18570
|
}, "mergeBatches");
|
|
18569
18571
|
|
|
18570
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18572
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/search/groups.js
|
|
18571
18573
|
var ALL = "all";
|
|
18572
18574
|
var OWNER_NOTES = { provider: "notes", account: INTERNAL_NOTES };
|
|
18573
18575
|
var NOT_GROUP_NAMES = /* @__PURE__ */ new Set([ALL, "bots"]);
|
|
@@ -18639,7 +18641,7 @@ var groupEntries = /* @__PURE__ */ __name((saved) => ({
|
|
|
18639
18641
|
[ALL]: [ALL]
|
|
18640
18642
|
}), "groupEntries");
|
|
18641
18643
|
|
|
18642
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18644
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/services/search-kind.js
|
|
18643
18645
|
var NO_MAIL = "no_mail";
|
|
18644
18646
|
var MAIL = "email";
|
|
18645
18647
|
var groupLockOf = /* @__PURE__ */ __name((app, env) => {
|
|
@@ -18713,7 +18715,7 @@ var accountsOfKind = /* @__PURE__ */ __name((kind2, chosen, held, explicit, comm
|
|
|
18713
18715
|
return chosenMail.map(({ provider, account }) => ({ provider, account }));
|
|
18714
18716
|
}, "accountsOfKind");
|
|
18715
18717
|
|
|
18716
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18718
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/services/message-resolution.js
|
|
18717
18719
|
var readChatId = /* @__PURE__ */ __name(async (deps, reference, store, account) => {
|
|
18718
18720
|
if (deps.reads !== "store")
|
|
18719
18721
|
return keptChatId(deps.messenger, reference, store, account);
|
|
@@ -18914,7 +18916,7 @@ var chatsMatchingIn = /* @__PURE__ */ __name(async (store, accounts, pattern) =>
|
|
|
18914
18916
|
}, "chatsMatchingIn");
|
|
18915
18917
|
var isText = /* @__PURE__ */ __name((value) => typeof value === "string" && value !== "", "isText");
|
|
18916
18918
|
|
|
18917
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18919
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/images/context/index.js
|
|
18918
18920
|
var CONTEXT_MESSAGES = 3;
|
|
18919
18921
|
var CONTEXT_MINUTES = 10;
|
|
18920
18922
|
var MAX_CHARS = 1200;
|
|
@@ -18938,12 +18940,12 @@ var context = {
|
|
|
18938
18940
|
}, "describe")
|
|
18939
18941
|
};
|
|
18940
18942
|
|
|
18941
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18943
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/images/registry.js
|
|
18942
18944
|
var BUILT_INS = [context];
|
|
18943
18945
|
var providers = [...BUILT_INS];
|
|
18944
18946
|
var registeredImageProviders = /* @__PURE__ */ __name(() => providers, "registeredImageProviders");
|
|
18945
18947
|
|
|
18946
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18948
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/services/conversations.js
|
|
18947
18949
|
var READ_PAGE = 5e3;
|
|
18948
18950
|
var CHAIN = 50;
|
|
18949
18951
|
var CONVERSATION_QUERY = {
|
|
@@ -19095,7 +19097,7 @@ var sized = /* @__PURE__ */ __name((size2) => {
|
|
|
19095
19097
|
return size2;
|
|
19096
19098
|
}, "sized");
|
|
19097
19099
|
|
|
19098
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19100
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/services/embeddings-maintenance.js
|
|
19099
19101
|
var REFRESH_BOUNDS = { maxChats: 20, maxChunks: 2e3 };
|
|
19100
19102
|
var MESSAGE_PAGE = 5e3;
|
|
19101
19103
|
var PER_SESSION = 8;
|
|
@@ -19114,7 +19116,7 @@ var embeddingTarget = /* @__PURE__ */ __name((deps, choice = chosenTextModel(dep
|
|
|
19114
19116
|
price: remote.price,
|
|
19115
19117
|
installed: true,
|
|
19116
19118
|
perBatch: PER_REQUEST * concurrency,
|
|
19117
|
-
open: /* @__PURE__ */ __name(async () => (await import("./remote-
|
|
19119
|
+
open: /* @__PURE__ */ __name(async () => (await import("./remote-PJNOYKXU.js")).openRemote(remote, apiKey, {
|
|
19118
19120
|
concurrency,
|
|
19119
19121
|
env: deps.env ?? process.env
|
|
19120
19122
|
}), "open")
|
|
@@ -19134,7 +19136,7 @@ var embeddingTarget = /* @__PURE__ */ __name((deps, choice = chosenTextModel(dep
|
|
|
19134
19136
|
if (!isTextModelInstalled(model, directory2))
|
|
19135
19137
|
throw notDownloaded(model.id);
|
|
19136
19138
|
if (apart) {
|
|
19137
|
-
const { openProcess } = await import("./process-
|
|
19139
|
+
const { openProcess } = await import("./process-UIE2CRFP.js");
|
|
19138
19140
|
return openProcess(model, directory2, { threads: threads ?? defaultThreads() });
|
|
19139
19141
|
}
|
|
19140
19142
|
return openEmbedder(model, directory2, { threads: threads ?? defaultThreads() });
|
|
@@ -19423,7 +19425,7 @@ var shaped = /* @__PURE__ */ __name(({ chatId, builtAt, algorithmVersion, pendin
|
|
|
19423
19425
|
return { ...one, state };
|
|
19424
19426
|
}, "shaped");
|
|
19425
19427
|
|
|
19426
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19428
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/services/search-catchup.js
|
|
19427
19429
|
var CATCH_UP_BOUNDS = { maxChunks: 500, maxMessages: 1e4, timeMs: 3e4 };
|
|
19428
19430
|
var validateCatchUpBounds = /* @__PURE__ */ __name((options2) => {
|
|
19429
19431
|
for (const [key, value, maximum] of [
|
|
@@ -19476,7 +19478,7 @@ var catchUpSearch = /* @__PURE__ */ __name(async (deps, chat, options2, signal,
|
|
|
19476
19478
|
}
|
|
19477
19479
|
}, "catchUpSearch");
|
|
19478
19480
|
|
|
19479
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19481
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/services/archive.js
|
|
19480
19482
|
var pushed = /* @__PURE__ */ __name((deps, what2) => {
|
|
19481
19483
|
if (deps.reads === "store") {
|
|
19482
19484
|
throw new CliError("validation_error", `${what2} asks for older history, and this messenger pushes its history instead \u2014 keep \`${typedCommand(deps.messenger.app.command, "serve")}\` running`);
|
|
@@ -19879,7 +19881,7 @@ var timeOfKey = /* @__PURE__ */ __name(async (store, account, chatId, key, byTim
|
|
|
19879
19881
|
return message?.timestamp ?? fallback;
|
|
19880
19882
|
}, "timeOfKey");
|
|
19881
19883
|
|
|
19882
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19884
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/botcheck/check.js
|
|
19883
19885
|
var DAY_MS = 864e5;
|
|
19884
19886
|
var NEW_DAYS = 30;
|
|
19885
19887
|
var SAME_TEXT_MIN = 20;
|
|
@@ -19956,7 +19958,7 @@ var scorePerson = /* @__PURE__ */ __name(({ subject, provider, activity, photos,
|
|
|
19956
19958
|
};
|
|
19957
19959
|
}, "scorePerson");
|
|
19958
19960
|
|
|
19959
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19961
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/http/time-limit.js
|
|
19960
19962
|
var timeLimit = /* @__PURE__ */ __name((ms) => {
|
|
19961
19963
|
const controller = new AbortController();
|
|
19962
19964
|
const timer = setTimeout(() => controller.abort(new DOMException("The operation timed out.", "TimeoutError")), ms);
|
|
@@ -19972,7 +19974,7 @@ var withTimeLimit = /* @__PURE__ */ __name(async (ms, run2) => {
|
|
|
19972
19974
|
}
|
|
19973
19975
|
}, "withTimeLimit");
|
|
19974
19976
|
|
|
19975
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19977
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/botcheck/registries.js
|
|
19976
19978
|
var REGISTRIES = {
|
|
19977
19979
|
cas: { title: "Combot Anti-Spam (CAS)", docs: "https://cas.chat/api" },
|
|
19978
19980
|
lols: { title: "lols.bot", docs: "https://api.lols.bot/lols-bot.json" }
|
|
@@ -20059,7 +20061,7 @@ var notCovered = /* @__PURE__ */ __name((messenger, now = /* @__PURE__ */ new Da
|
|
|
20059
20061
|
detail: `lists Telegram accounts only, not ${messenger} ones`
|
|
20060
20062
|
})), "notCovered");
|
|
20061
20063
|
|
|
20062
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20064
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/botcheck/service.js
|
|
20063
20065
|
var ACTIVITY_MESSAGES = 1e3;
|
|
20064
20066
|
var botCheckService = /* @__PURE__ */ __name((deps) => {
|
|
20065
20067
|
const subjectOf = /* @__PURE__ */ __name(async (reference) => {
|
|
@@ -20147,7 +20149,7 @@ var botCheckService = /* @__PURE__ */ __name((deps) => {
|
|
|
20147
20149
|
};
|
|
20148
20150
|
}, "botCheckService");
|
|
20149
20151
|
|
|
20150
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20152
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/domain/thread.js
|
|
20151
20153
|
var threadIdOf = /* @__PURE__ */ __name((value) => {
|
|
20152
20154
|
if (value === void 0)
|
|
20153
20155
|
return void 0;
|
|
@@ -20157,7 +20159,7 @@ var threadIdOf = /* @__PURE__ */ __name((value) => {
|
|
|
20157
20159
|
return id3;
|
|
20158
20160
|
}, "threadIdOf");
|
|
20159
20161
|
|
|
20160
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20162
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/services/chat-stats.js
|
|
20161
20163
|
var TOP_POSTS = 5;
|
|
20162
20164
|
var JOINS = /* @__PURE__ */ new Set(["join", "add"]);
|
|
20163
20165
|
var LEAVES = /* @__PURE__ */ new Set(["leave", "remove"]);
|
|
@@ -20274,7 +20276,7 @@ var median = /* @__PURE__ */ __name((values) => {
|
|
|
20274
20276
|
return Math.round(sorted.length % 2 === 0 ? ((sorted[middle - 1] ?? upper) + upper) / 2 : upper);
|
|
20275
20277
|
}, "median");
|
|
20276
20278
|
|
|
20277
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20279
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/services/member-history.js
|
|
20278
20280
|
var memberEvents = /* @__PURE__ */ __name((stays, revisions, since = 0) => {
|
|
20279
20281
|
const events = [];
|
|
20280
20282
|
for (const stay of stays) {
|
|
@@ -20306,7 +20308,7 @@ var memberEvents = /* @__PURE__ */ __name((stays, revisions, since = 0) => {
|
|
|
20306
20308
|
return events.filter(({ at: at2 }) => Date.parse(at2) >= since).sort((a, b) => Date.parse(a.at) - Date.parse(b.at) || a.id.localeCompare(b.id));
|
|
20307
20309
|
}, "memberEvents");
|
|
20308
20310
|
|
|
20309
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20311
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/services/chats.js
|
|
20310
20312
|
var EVENTS_DAYS = 7;
|
|
20311
20313
|
var TRACKED_DAYS = 30;
|
|
20312
20314
|
var STATS_PAGE = 1e3;
|
|
@@ -20601,7 +20603,7 @@ var storedMembers = /* @__PURE__ */ __name(async (store, chatId) => {
|
|
|
20601
20603
|
return members.length === 0 ? null : members;
|
|
20602
20604
|
}, "storedMembers");
|
|
20603
20605
|
|
|
20604
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20606
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/services/inbox.js
|
|
20605
20607
|
var INBOX_CHATS = 20;
|
|
20606
20608
|
var REVIEW_DAYS = 3;
|
|
20607
20609
|
var UNANSWERED_HOURS = 24;
|
|
@@ -20813,7 +20815,7 @@ var inboxService = /* @__PURE__ */ __name((deps) => {
|
|
|
20813
20815
|
};
|
|
20814
20816
|
}, "inboxService");
|
|
20815
20817
|
|
|
20816
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20818
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/cli/bot/api-input.js
|
|
20817
20819
|
import { readFileSync as readFileSync4 } from "node:fs";
|
|
20818
20820
|
|
|
20819
20821
|
// node_modules/.pnpm/@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/codegen/names.js
|
|
@@ -21622,7 +21624,7 @@ function resolveSpace(space) {
|
|
|
21622
21624
|
}
|
|
21623
21625
|
__name(resolveSpace, "resolveSpace");
|
|
21624
21626
|
|
|
21625
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21627
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/cli/bot/api-input.js
|
|
21626
21628
|
var RENAMED = { timeout: "poll-timeout" };
|
|
21627
21629
|
var apiFlagOf = /* @__PURE__ */ __name((name) => RENAMED[name] ?? name.replace(/_/g, "-").replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), "apiFlagOf");
|
|
21628
21630
|
var apiOptionKey = /* @__PURE__ */ __name((name) => apiFlagOf(name).replace(/-([a-z0-9])/g, (_, letter) => letter.toUpperCase()), "apiOptionKey");
|
|
@@ -21760,7 +21762,7 @@ var flagValue = /* @__PURE__ */ __name((operation, name, raw, type) => {
|
|
|
21760
21762
|
return raw;
|
|
21761
21763
|
}, "flagValue");
|
|
21762
21764
|
|
|
21763
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21765
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/cli/service-api-manifest.js
|
|
21764
21766
|
var manifestBaseUrl = /* @__PURE__ */ __name((manifest, given, variables = {}) => {
|
|
21765
21767
|
const server = manifest.servers?.[0];
|
|
21766
21768
|
if (given === void 0 && !server)
|
|
@@ -21888,10 +21890,10 @@ var nextPage = /* @__PURE__ */ __name((pagination, input, answer, headers) => {
|
|
|
21888
21890
|
}
|
|
21889
21891
|
}, "nextPage");
|
|
21890
21892
|
|
|
21891
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21893
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/crm/source.js
|
|
21892
21894
|
var CRM_FILE_SOURCES = ["record", "field", "document", "activity", "comment"];
|
|
21893
21895
|
|
|
21894
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21896
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/crm/files.js
|
|
21895
21897
|
var parseCrmFileId = /* @__PURE__ */ __name((id3) => {
|
|
21896
21898
|
const [kind2 = "", owner = "", source = "", ...rest] = id3.trim().split(":");
|
|
21897
21899
|
const providerId = rest.join(":");
|
|
@@ -21924,7 +21926,7 @@ var withoutFileLinks = /* @__PURE__ */ __name((body) => {
|
|
|
21924
21926
|
return walk2(body);
|
|
21925
21927
|
}, "withoutFileLinks");
|
|
21926
21928
|
|
|
21927
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21929
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/crm/values.js
|
|
21928
21930
|
var isRaw = /* @__PURE__ */ __name((value) => typeof value === "object" && value !== null && !Array.isArray(value), "isRaw");
|
|
21929
21931
|
var rawsOf = /* @__PURE__ */ __name((value) => Array.isArray(value) ? value.filter(isRaw) : [], "rawsOf");
|
|
21930
21932
|
var text = /* @__PURE__ */ __name((value) => {
|
|
@@ -21981,7 +21983,7 @@ var crmValuesOf = /* @__PURE__ */ __name((values, fields2) => {
|
|
|
21981
21983
|
}));
|
|
21982
21984
|
}, "crmValuesOf");
|
|
21983
21985
|
|
|
21984
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21986
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/crm/walk.js
|
|
21985
21987
|
var crmWindowOf = /* @__PURE__ */ __name((query) => {
|
|
21986
21988
|
const page = query.page ?? 1;
|
|
21987
21989
|
return { offset: (Number.isSafeInteger(page) && page > 1 ? page - 1 : 0) * query.limit, limit: query.limit };
|
|
@@ -22001,7 +22003,7 @@ var walk = /* @__PURE__ */ __name(async (window2, largest, fetchPage) => {
|
|
|
22001
22003
|
return { items: rows.slice(0, window2.limit), hasMore: rows.length > window2.limit };
|
|
22002
22004
|
}, "walk");
|
|
22003
22005
|
|
|
22004
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22006
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/crm/manifest/map.js
|
|
22005
22007
|
var MISSING = /* @__PURE__ */ Symbol("missing");
|
|
22006
22008
|
var at = /* @__PURE__ */ __name((value, path2) => path2 === "." ? value : path2.split(".").reduce((inner, key) => inner === null ? null : Array.isArray(inner) && /^\d+$/.test(key) ? inner[Number(key)] ?? null : isRaw(inner) ? inner[key] : void 0, value), "at");
|
|
22007
22009
|
var read = /* @__PURE__ */ __name((raw, path2) => {
|
|
@@ -22254,7 +22256,7 @@ var selectedOf = /* @__PURE__ */ __name((rules, from) => {
|
|
|
22254
22256
|
].filter(Boolean);
|
|
22255
22257
|
}, "selectedOf");
|
|
22256
22258
|
|
|
22257
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22259
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/crm/manifest/manifest.js
|
|
22258
22260
|
var CRM_WRITE_FIELDS = {
|
|
22259
22261
|
deal: ["title", "pipeline", "stage", "amount", "currency", "closeDate", "organization", "people", "owner", "reason"],
|
|
22260
22262
|
lead: ["title", "pipeline", "stage", "amount", "currency", "closeDate", "organization", "people", "owner", "reason"],
|
|
@@ -22520,7 +22522,7 @@ var checkWrite = /* @__PURE__ */ __name((kind2, one, manifest, { operations, kno
|
|
|
22520
22522
|
throw invalid(`${where}.custom.each`, 'no "{value}" in it');
|
|
22521
22523
|
}, "checkWrite");
|
|
22522
22524
|
|
|
22523
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22525
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/crm/manifest/source.js
|
|
22524
22526
|
var OVERLAP_MS = 10 * 6e4;
|
|
22525
22527
|
var MOST_LIVE = 100;
|
|
22526
22528
|
var MOST_PAGES = 500;
|
|
@@ -22966,7 +22968,7 @@ var toField = /* @__PURE__ */ __name((spec, raw) => {
|
|
|
22966
22968
|
};
|
|
22967
22969
|
}, "toField");
|
|
22968
22970
|
|
|
22969
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22971
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/cli/bot/api.js
|
|
22970
22972
|
var apiPathOf = /* @__PURE__ */ __name((operation) => {
|
|
22971
22973
|
const { command, group } = operation;
|
|
22972
22974
|
if (!group)
|
|
@@ -23005,6 +23007,7 @@ var generatedApiCommand = /* @__PURE__ */ __name((api) => {
|
|
|
23005
23007
|
command.addOption(secretInput(new Option("--body <json>", "the request body as JSON; - reads it from stdin")));
|
|
23006
23008
|
command.option("--body-file <path>", "the request body from a JSON file; - is stdin");
|
|
23007
23009
|
}
|
|
23010
|
+
marksUntrusted(command, API_UNTRUSTED);
|
|
23008
23011
|
annotate(command, {
|
|
23009
23012
|
origin: "generated",
|
|
23010
23013
|
api_operation: operation.id,
|
|
@@ -23079,7 +23082,7 @@ var generatedApiCommand = /* @__PURE__ */ __name((api) => {
|
|
|
23079
23082
|
return group;
|
|
23080
23083
|
}, "generatedApiCommand");
|
|
23081
23084
|
|
|
23082
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23085
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/cli/command-runs.js
|
|
23083
23086
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
23084
23087
|
var parses = new AsyncLocalStorage();
|
|
23085
23088
|
var providerEvent = /* @__PURE__ */ __name((event2) => {
|
|
@@ -23112,7 +23115,7 @@ var providerRequest = /* @__PURE__ */ __name((operation, sink = providerEvent, c
|
|
|
23112
23115
|
};
|
|
23113
23116
|
}, "providerRequest");
|
|
23114
23117
|
|
|
23115
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23118
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/cli/bot/api-http.js
|
|
23116
23119
|
var LARGEST_ANSWER = 16 * 1024 * 1024;
|
|
23117
23120
|
var segment = /* @__PURE__ */ __name((name, value) => {
|
|
23118
23121
|
if (value === void 0 || value === "" || value === "." || value === "..")
|
|
@@ -23330,7 +23333,7 @@ var refusal = /* @__PURE__ */ __name((service, operation, response, writes, inne
|
|
|
23330
23333
|
});
|
|
23331
23334
|
}, "refusal");
|
|
23332
23335
|
|
|
23333
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23336
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/cli/permission-keys.js
|
|
23334
23337
|
var HOUSEKEEPING = /* @__PURE__ */ new Set([
|
|
23335
23338
|
"help",
|
|
23336
23339
|
"guide",
|
|
@@ -23418,7 +23421,7 @@ var refuseUnknownPermissionKeys = /* @__PURE__ */ __name((command, settings, too
|
|
|
23418
23421
|
throw new CliError("validation_error", `--permission ${key} names no command${now === void 0 ? "" : `: its command moved, so use ${now}`}`, { permission: key });
|
|
23419
23422
|
}, "refuseUnknownPermissionKeys");
|
|
23420
23423
|
|
|
23421
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23424
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/sends/keyed-guard.js
|
|
23422
23425
|
var keyedGuard = /* @__PURE__ */ __name((build, ask2, levelOf, extra) => {
|
|
23423
23426
|
let question;
|
|
23424
23427
|
let answered = false;
|
|
@@ -23461,7 +23464,7 @@ var keyedGuard = /* @__PURE__ */ __name((build, ask2, levelOf, extra) => {
|
|
|
23461
23464
|
};
|
|
23462
23465
|
}, "keyedGuard");
|
|
23463
23466
|
|
|
23464
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23467
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/cli/service-api.js
|
|
23465
23468
|
var serviceApiOperations = /* @__PURE__ */ __name((manifest) => {
|
|
23466
23469
|
const reasonOf2 = /* @__PURE__ */ __name((operation) => operation.response?.sensitive ? "it returns a credential, which is never printed" : unsendableBody(operation), "reasonOf");
|
|
23467
23470
|
return {
|
|
@@ -23771,7 +23774,7 @@ var serviceApiCommand = /* @__PURE__ */ __name((options2) => {
|
|
|
23771
23774
|
return group;
|
|
23772
23775
|
}, "serviceApiCommand");
|
|
23773
23776
|
|
|
23774
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23777
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/cli/service-api-call.js
|
|
23775
23778
|
var hostsFetch = /* @__PURE__ */ __name((hosts, fetch2, credentialScope) => hostFetch({ hosts, ...fetch2 ? { fetch: fetch2 } : {}, ...credentialScope ? { credentialScope } : {} }), "hostsFetch");
|
|
23776
23779
|
var NO_COMMAND = new Command("source");
|
|
23777
23780
|
var sender = /* @__PURE__ */ __name((options2, writes) => {
|
|
@@ -23813,7 +23816,7 @@ var serviceApiSend = /* @__PURE__ */ __name((options2) => {
|
|
|
23813
23816
|
return async (id3, input) => (await withHeaders(id3, input)).body;
|
|
23814
23817
|
}, "serviceApiSend");
|
|
23815
23818
|
|
|
23816
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23819
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/crm/writer.js
|
|
23817
23820
|
var CRM_VERBS = ["create", "update", "move", "close", "remove"];
|
|
23818
23821
|
var CRM_ASSIGN_OTHERS_KEY = "crm.assign-others";
|
|
23819
23822
|
var CRM_WRITE_KEYS = [CRM_ASSIGN_OTHERS_KEY];
|
|
@@ -23849,7 +23852,7 @@ var CRM_WRITE_DEFAULTS = {
|
|
|
23849
23852
|
[CRM_ASSIGN_OTHERS_KEY]: "deny"
|
|
23850
23853
|
};
|
|
23851
23854
|
|
|
23852
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23855
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/sends/profile-writes.js
|
|
23853
23856
|
var levelsOf = /* @__PURE__ */ __name((writes, defaults) => {
|
|
23854
23857
|
const settings = writes.settings();
|
|
23855
23858
|
return { settings, defaults: { ...DEFAULT_PERMISSIONS, ...defaults, ...settings.permissionDefaults } };
|
|
@@ -23860,14 +23863,14 @@ var profileWriteGuard = /* @__PURE__ */ __name((writes, ask2, builtIn, extra) =>
|
|
|
23860
23863
|
}), writes.env, asker), ask2, (key) => levelFor(settings.permissions, key, defaults).level, extra);
|
|
23861
23864
|
}, "profileWriteGuard");
|
|
23862
23865
|
|
|
23863
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23866
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/crm/foreign-contacts.js
|
|
23864
23867
|
import { readFileSync as readFileSync5 } from "node:fs";
|
|
23865
23868
|
import { join as join4 } from "node:path";
|
|
23866
23869
|
|
|
23867
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23870
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/crm/state-folders.js
|
|
23868
23871
|
var CRM_SHARED_FOLDERS = { files: "files", foreignContacts: "foreign-contacts" };
|
|
23869
23872
|
|
|
23870
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23873
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/crm/foreign-contacts.js
|
|
23871
23874
|
var DAILY_FOREIGN_CONTACTS = 100;
|
|
23872
23875
|
var foreignContactsPathFor = /* @__PURE__ */ __name((app, account, env = process.env, user) => join4(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "crm", CRM_SHARED_FOLDERS.foreignContacts, `${[account.provider, account.account, ...user ? [user] : []].join("-").replace(/[^\w.-]+/gu, "_")}.json`), "foreignContactsPathFor");
|
|
23873
23876
|
var shownIn = /* @__PURE__ */ __name((file2, day2) => {
|
|
@@ -23940,7 +23943,7 @@ var foreignContacts = /* @__PURE__ */ __name((source, file2, options2 = {}) => {
|
|
|
23940
23943
|
};
|
|
23941
23944
|
}, "foreignContacts");
|
|
23942
23945
|
|
|
23943
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23946
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/crm/writes.js
|
|
23944
23947
|
var moneyChecked = /* @__PURE__ */ __name((check2, param) => {
|
|
23945
23948
|
try {
|
|
23946
23949
|
check2();
|
|
@@ -24400,9 +24403,25 @@ var activityTargetOf = /* @__PURE__ */ __name(async (context2, given) => {
|
|
|
24400
24403
|
const copy = await copyOf(context2, kind2, given.trim());
|
|
24401
24404
|
return { kind: kind2, externalId: copy.externalId, ref: copy.ref, title: copy.title };
|
|
24402
24405
|
}
|
|
24403
|
-
if (
|
|
24404
|
-
|
|
24405
|
-
|
|
24406
|
+
if (kind2 === "person" || kind2 === "organization") {
|
|
24407
|
+
const crmId = id3.startsWith("crm:") ? id3.slice(4) : /^\d+$/.test(id3) ? void 0 : id3;
|
|
24408
|
+
if (crmId !== void 0 && RECORD_ID.test(crmId))
|
|
24409
|
+
return { kind: kind2, externalId: crmId, ref: null, title: null };
|
|
24410
|
+
if (crmId === void 0) {
|
|
24411
|
+
const ids = await context2.store.crm.externalIdsOf(context2.account, given);
|
|
24412
|
+
if (ids.length > 1)
|
|
24413
|
+
throw new CliError("validation_error", `${given} is ${ids.length} records of the CRM; name one as ${kind2}:crm:<id>`, {
|
|
24414
|
+
reason: "crm.record-ambiguous",
|
|
24415
|
+
param: "--subject",
|
|
24416
|
+
candidates: ids.map((one) => ({ id: `${kind2}:crm:${one}` })),
|
|
24417
|
+
sent: false
|
|
24418
|
+
});
|
|
24419
|
+
if (ids[0])
|
|
24420
|
+
return { kind: kind2, externalId: ids[0], ref: given, title: null };
|
|
24421
|
+
throw new CliError("not_found", `the copy holds no ${given}; a ${kind2} by the CRM's id, as ${kind2 === "person" ? "people" : "organizations"} list prints it, is ${kind2}:crm:<id>`, { param: "--subject", sent: false });
|
|
24422
|
+
}
|
|
24423
|
+
}
|
|
24424
|
+
throw new CliError("validation_error", `--subject takes deal:<id>, lead:<id>, person:<id> or organization:<id> as the copy's lists and deals show give them, or person:crm:<id> or organization:crm:<id> by the CRM's id; got ${given}`, { reason: "ref.malformed", param: "--subject" });
|
|
24406
24425
|
}, "activityTargetOf");
|
|
24407
24426
|
var activityKeys = /* @__PURE__ */ __name(async (context2, key, owner) => ({
|
|
24408
24427
|
key,
|
|
@@ -24481,7 +24500,7 @@ var completeCrmActivity = /* @__PURE__ */ __name(async (context2, externalId, op
|
|
|
24481
24500
|
return { operationId, activity, stored, on: await answeredTargets(context2, activity, []) };
|
|
24482
24501
|
}, "completeCrmActivity");
|
|
24483
24502
|
|
|
24484
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24503
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/crm/manifest/writer.js
|
|
24485
24504
|
var CALL_OF = {
|
|
24486
24505
|
create: "create",
|
|
24487
24506
|
update: "update",
|
|
@@ -24737,7 +24756,7 @@ var crmManifestWrites = /* @__PURE__ */ __name((input, options2) => {
|
|
|
24737
24756
|
};
|
|
24738
24757
|
}, "crmManifestWrites");
|
|
24739
24758
|
|
|
24740
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24759
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/sends/pace.js
|
|
24741
24760
|
import { readFileSync as readFileSync6, renameSync as renameSync2, writeFileSync as writeFileSync2 } from "node:fs";
|
|
24742
24761
|
import { join as join5 } from "node:path";
|
|
24743
24762
|
var DEFAULT_PACE = { perMinute: 60, burst: 20 };
|
|
@@ -24832,10 +24851,10 @@ var waitForTurn = /* @__PURE__ */ __name(async (pacer, options2) => {
|
|
|
24832
24851
|
await (options2.sleep ?? ((ms) => new Promise((resolve7) => setTimeout(resolve7, ms))))(waitMs);
|
|
24833
24852
|
}, "waitForTurn");
|
|
24834
24853
|
|
|
24835
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24854
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/crm/file-fetch.js
|
|
24836
24855
|
var EXCHANGE_MS = 60 * 60 * 1e3;
|
|
24837
24856
|
|
|
24838
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24857
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/crm/query.js
|
|
24839
24858
|
var valueFor = /* @__PURE__ */ __name((kind2, raw, name) => {
|
|
24840
24859
|
if (kind2 === "id") {
|
|
24841
24860
|
if (!/^[\w.:-]{1,100}$/u.test(raw))
|
|
@@ -24936,7 +24955,7 @@ var selectedCodes = /* @__PURE__ */ __name((fields2, wanted) => {
|
|
|
24936
24955
|
});
|
|
24937
24956
|
}, "selectedCodes");
|
|
24938
24957
|
|
|
24939
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24958
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/crm/group-hint.js
|
|
24940
24959
|
var workGroupHint = /* @__PURE__ */ __name((key) => `add it to a work group: \`memo groups add work ${key.provider}:${key.account}\``, "workGroupHint");
|
|
24941
24960
|
var ungroupedHint = /* @__PURE__ */ __name(async (store, key) => {
|
|
24942
24961
|
const { groups } = (await listContextOf(store, key, void 0)).membership;
|
|
@@ -24944,7 +24963,7 @@ var ungroupedHint = /* @__PURE__ */ __name(async (store, key) => {
|
|
|
24944
24963
|
return grouped2 ? void 0 : workGroupHint(key);
|
|
24945
24964
|
}, "ungroupedHint");
|
|
24946
24965
|
|
|
24947
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24966
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/crm/viewer.js
|
|
24948
24967
|
var VIEWERS = "crm:viewers";
|
|
24949
24968
|
var viewersOf = /* @__PURE__ */ __name(async (store, account) => {
|
|
24950
24969
|
try {
|
|
@@ -25019,7 +25038,7 @@ var ownerOf = /* @__PURE__ */ __name(async (run2, owner) => {
|
|
|
25019
25038
|
return crmIdentityId(run2.account, normalCrmUserId(owner), "user");
|
|
25020
25039
|
}, "ownerOf");
|
|
25021
25040
|
|
|
25022
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25041
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/crm/sync.js
|
|
25023
25042
|
var DAY2 = 864e5;
|
|
25024
25043
|
var CLOCK_MARGIN = 60 * 6e4;
|
|
25025
25044
|
var MOST_UNLISTED = 0.5;
|
|
@@ -25154,14 +25173,33 @@ var activityCursor = /* @__PURE__ */ __name((value) => {
|
|
|
25154
25173
|
return void 0;
|
|
25155
25174
|
}
|
|
25156
25175
|
}, "activityCursor");
|
|
25157
|
-
var
|
|
25176
|
+
var removeUnlistedActivities = /* @__PURE__ */ __name(async (run2, options2, seen) => {
|
|
25177
|
+
const { store, account, source } = run2;
|
|
25178
|
+
const { stored, unlisted } = await store.crm.removeUnlistedActivities(account, seen, { dryRun: true });
|
|
25179
|
+
if (unlisted === 0)
|
|
25180
|
+
return;
|
|
25181
|
+
if (!options2.rescan && (seen.length === 0 || stored >= GUARDED_FROM && unlisted > stored * MOST_UNLISTED)) {
|
|
25182
|
+
run2.report.issues.push({
|
|
25183
|
+
kind: "deal",
|
|
25184
|
+
reason: "crm.activities-unlisted-held",
|
|
25185
|
+
message: `${source.provider} listed ${seen.length} activities, so ${unlisted} of the ${stored} stored would be marked deleted; nothing was \u2014 check the sign-in's rights, then run sync --rescan to let it through`
|
|
25186
|
+
});
|
|
25187
|
+
return;
|
|
25188
|
+
}
|
|
25189
|
+
const done2 = await store.crm.removeUnlistedActivities(account, seen);
|
|
25190
|
+
if (run2.report.activities)
|
|
25191
|
+
run2.report.activities.removed += done2.unlisted;
|
|
25192
|
+
}, "removeUnlistedActivities");
|
|
25193
|
+
var readActivities = /* @__PURE__ */ __name(async (run2, options2) => {
|
|
25158
25194
|
const { source, store, account } = run2;
|
|
25159
25195
|
if (!source.activities || !await store.crm.activitiesOn(account))
|
|
25160
25196
|
return null;
|
|
25161
|
-
const read2 = { saved: 0, outOfScope: 0, state: "partial" };
|
|
25197
|
+
const read2 = { saved: 0, outOfScope: 0, removed: 0, state: "partial" };
|
|
25162
25198
|
run2.report.activities = read2;
|
|
25163
25199
|
const saved = activityCursor((await store.sync.syncState(account, ACTIVITIES))?.value);
|
|
25164
25200
|
const cursor = saved ?? { since: run2.now - ACTIVITY_DAYS * DAY2, newest: 0 };
|
|
25201
|
+
const seen = cursor.page === void 0 ? /* @__PURE__ */ new Set() : void 0;
|
|
25202
|
+
const gaps = run2.gaps.length;
|
|
25165
25203
|
for (; ; ) {
|
|
25166
25204
|
const why = run2.budget.take();
|
|
25167
25205
|
if (why)
|
|
@@ -25180,6 +25218,10 @@ var readActivities = /* @__PURE__ */ __name(async (run2) => {
|
|
|
25180
25218
|
const done2 = await store.crm.saveActivities(account, page.items);
|
|
25181
25219
|
read2.saved += done2.saved;
|
|
25182
25220
|
read2.outOfScope += done2.outOfScope;
|
|
25221
|
+
if (page.removed?.length)
|
|
25222
|
+
read2.removed += await store.crm.removeActivities(account, page.removed);
|
|
25223
|
+
for (const one of page.items)
|
|
25224
|
+
seen?.add(one.externalId);
|
|
25183
25225
|
cursor.newest = Math.max(cursor.newest, ...page.items.map((one) => one.updatedAt));
|
|
25184
25226
|
run2.moved();
|
|
25185
25227
|
if (page.hasMore && page.nextCursor !== void 0) {
|
|
@@ -25189,6 +25231,8 @@ var readActivities = /* @__PURE__ */ __name(async (run2) => {
|
|
|
25189
25231
|
return "cancelled";
|
|
25190
25232
|
continue;
|
|
25191
25233
|
}
|
|
25234
|
+
if (page.listedAll && seen && run2.gaps.length === gaps)
|
|
25235
|
+
await removeUnlistedActivities(run2, options2, [...seen]);
|
|
25192
25236
|
const next = page.cursor != null ? Number(page.cursor) : cursor.newest || cursor.since;
|
|
25193
25237
|
await store.sync.setSyncState(account, ACTIVITIES, JSON.stringify({ since: next, newest: 0 }));
|
|
25194
25238
|
read2.state = "complete";
|
|
@@ -25567,7 +25611,7 @@ var syncCrm = /* @__PURE__ */ __name(async (source, store, account, options2 = {
|
|
|
25567
25611
|
const rowsStopped = stopped;
|
|
25568
25612
|
if (!stopped && kinds.some(isItemKind)) {
|
|
25569
25613
|
try {
|
|
25570
|
-
stopped = await stopping(() => readActivities(run2));
|
|
25614
|
+
stopped = await stopping(() => readActivities(run2, options2));
|
|
25571
25615
|
} catch (error) {
|
|
25572
25616
|
if (options2.signal?.aborted)
|
|
25573
25617
|
stopped = "cancelled";
|
|
@@ -25673,7 +25717,7 @@ var crmStatus = /* @__PURE__ */ __name(async (store, account, { profile, now, ki
|
|
|
25673
25717
|
return { items, page: 1, limit: Math.max(1, items.length), hasMore: false };
|
|
25674
25718
|
}, "crmStatus");
|
|
25675
25719
|
|
|
25676
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25720
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/services/excerpt.js
|
|
25677
25721
|
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");
|
|
25678
25722
|
var excerpt = /* @__PURE__ */ __name((text3, query, size2 = 240, options2 = {}) => {
|
|
25679
25723
|
const flat = text3.replace(/\s+/g, " ").trim();
|
|
@@ -25689,7 +25733,7 @@ var excerpt = /* @__PURE__ */ __name((text3, query, size2 = 240, options2 = {})
|
|
|
25689
25733
|
}, "excerpt");
|
|
25690
25734
|
var withExcerpt = /* @__PURE__ */ __name(({ matchedText, ...hit }, query) => ({ ...hit, excerpt: excerpt(matchedText ?? hit.text, query) }), "withExcerpt");
|
|
25691
25735
|
|
|
25692
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25736
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/services/person-meetings.js
|
|
25693
25737
|
var SCAN = 1e3;
|
|
25694
25738
|
var SNIPPET = 200;
|
|
25695
25739
|
var SNIPPET_ROWS = 6;
|
|
@@ -25754,7 +25798,7 @@ var personMeetings = /* @__PURE__ */ __name(async (store, people, accounts, { li
|
|
|
25754
25798
|
return { items, total: newest.length, hasMore: cut || newest.length > limit };
|
|
25755
25799
|
}, "personMeetings");
|
|
25756
25800
|
|
|
25757
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25801
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/services/person-context.js
|
|
25758
25802
|
var CONTEXT_MESSAGES2 = 10;
|
|
25759
25803
|
var CONTEXT_BYTES = 64 * 1024;
|
|
25760
25804
|
var toContext = /* @__PURE__ */ __name((key, message, chatTitle2) => ({
|
|
@@ -26060,10 +26104,10 @@ var personMessages = /* @__PURE__ */ __name(async (store, asked, reference, { ch
|
|
|
26060
26104
|
};
|
|
26061
26105
|
}, "personMessages");
|
|
26062
26106
|
|
|
26063
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26107
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/services/meeting-evidence.js
|
|
26064
26108
|
import { createHash } from "node:crypto";
|
|
26065
26109
|
|
|
26066
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26110
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/services/meeting-reference.js
|
|
26067
26111
|
var missing2 = /* @__PURE__ */ __name(() => new CliError("not_found", "the meeting evidence is unavailable for this account"), "missing");
|
|
26068
26112
|
var authorizedMeetingMetadata = /* @__PURE__ */ __name(async (store, accountId, reference, options2 = {}) => {
|
|
26069
26113
|
const parsed = parseMeetingReference(reference);
|
|
@@ -26081,7 +26125,7 @@ var authorizedMeetingMetadata = /* @__PURE__ */ __name(async (store, accountId,
|
|
|
26081
26125
|
return { parsed, meeting };
|
|
26082
26126
|
}, "authorizedMeetingMetadata");
|
|
26083
26127
|
|
|
26084
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26128
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/services/meeting-evidence.js
|
|
26085
26129
|
var hash = /* @__PURE__ */ __name((value) => createHash("sha256").update(JSON.stringify(value)).digest("hex"), "hash");
|
|
26086
26130
|
var checkMeetingCancelled = /* @__PURE__ */ __name((signal) => {
|
|
26087
26131
|
if (signal?.aborted)
|
|
@@ -26280,7 +26324,7 @@ var readMeetingEvidence = /* @__PURE__ */ __name(async (store, accountId, refere
|
|
|
26280
26324
|
return { ...packet, fingerprint: hash(packet) };
|
|
26281
26325
|
}, "readMeetingEvidence");
|
|
26282
26326
|
|
|
26283
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26327
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/services/person-meeting-context.js
|
|
26284
26328
|
var personMeetingContext = /* @__PURE__ */ __name(async (store, personReference, options2) => {
|
|
26285
26329
|
const { meetings = 10, cues = 5, bytes: bytes2 = 64 * 1024, scanLimit = 1e3, since, signal } = options2;
|
|
26286
26330
|
const requestedAccounts = options2.accountIds;
|
|
@@ -26379,7 +26423,7 @@ var personMeetingContext = /* @__PURE__ */ __name(async (store, personReference,
|
|
|
26379
26423
|
};
|
|
26380
26424
|
}, "personMeetingContext");
|
|
26381
26425
|
|
|
26382
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26426
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/services/person-preparation.js
|
|
26383
26427
|
var PREPARE_BYTES = 96 * 1024;
|
|
26384
26428
|
var MEETINGS = 5;
|
|
26385
26429
|
var CUES = 3;
|
|
@@ -26502,7 +26546,7 @@ var meetingsOf = /* @__PURE__ */ __name(async (store, uid, stored, since, left)
|
|
|
26502
26546
|
}
|
|
26503
26547
|
}, "meetingsOf");
|
|
26504
26548
|
|
|
26505
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26549
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/services/person-profile.js
|
|
26506
26550
|
var personProfile = /* @__PURE__ */ __name(async (deps, person, known2) => {
|
|
26507
26551
|
const online = deps.offline ? void 0 : await deps.connection();
|
|
26508
26552
|
const held = await storeIfOpen(deps);
|
|
@@ -26572,7 +26616,7 @@ var quiet = /* @__PURE__ */ __name((facts) => facts.chats.map(({ id: id3, title,
|
|
|
26572
26616
|
complete: false
|
|
26573
26617
|
})), "quiet");
|
|
26574
26618
|
|
|
26575
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26619
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/services/person-timeline.js
|
|
26576
26620
|
var TIMELINE_ITEMS = 50;
|
|
26577
26621
|
var TIMELINE_MAX = 500;
|
|
26578
26622
|
var SCOPES = ["personal", "work"];
|
|
@@ -26634,7 +26678,7 @@ var personTimeline = /* @__PURE__ */ __name(async (store, asked, reference, { sc
|
|
|
26634
26678
|
};
|
|
26635
26679
|
}, "personTimeline");
|
|
26636
26680
|
|
|
26637
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26681
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/services/chat-coverage.js
|
|
26638
26682
|
var chatCoverage = /* @__PURE__ */ __name(async (store, account, chatIds) => {
|
|
26639
26683
|
const ids = [...new Set(chatIds)];
|
|
26640
26684
|
if (ids.length === 0)
|
|
@@ -26660,7 +26704,7 @@ var chatCoverage = /* @__PURE__ */ __name(async (store, account, chatIds) => {
|
|
|
26660
26704
|
}));
|
|
26661
26705
|
}, "chatCoverage");
|
|
26662
26706
|
|
|
26663
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26707
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/context/evidence-response.js
|
|
26664
26708
|
var contextSourceKey = /* @__PURE__ */ __name((source) => JSON.stringify([source.kind, source.accountId, source.provider, source.account]), "contextSourceKey");
|
|
26665
26709
|
var validateContextEvidencePage = /* @__PURE__ */ __name((page, request) => {
|
|
26666
26710
|
const fail2 = /* @__PURE__ */ __name(() => {
|
|
@@ -26724,7 +26768,7 @@ var validateContextEvidencePage = /* @__PURE__ */ __name((page, request) => {
|
|
|
26724
26768
|
}
|
|
26725
26769
|
}, "validateContextEvidencePage");
|
|
26726
26770
|
|
|
26727
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26771
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/context/read-budget.js
|
|
26728
26772
|
var contextReadBudget = /* @__PURE__ */ __name((limits = {}) => {
|
|
26729
26773
|
if (!limits || typeof limits !== "object" || Array.isArray(limits))
|
|
26730
26774
|
throw new CliError("validation_error", "limits needs a context read allowance");
|
|
@@ -26777,7 +26821,7 @@ var contextReadBudget = /* @__PURE__ */ __name((limits = {}) => {
|
|
|
26777
26821
|
};
|
|
26778
26822
|
}, "contextReadBudget");
|
|
26779
26823
|
|
|
26780
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26824
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/services/context-evidence.js
|
|
26781
26825
|
var createContextEvidenceReader = /* @__PURE__ */ __name((port, allowed, limits) => {
|
|
26782
26826
|
if (!port || typeof port.read !== "function")
|
|
26783
26827
|
throw new CliError("configuration_error", "context evidence reader is unavailable");
|
|
@@ -26821,7 +26865,7 @@ var createContextEvidenceReader = /* @__PURE__ */ __name((port, allowed, limits)
|
|
|
26821
26865
|
};
|
|
26822
26866
|
}, "createContextEvidenceReader");
|
|
26823
26867
|
|
|
26824
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26868
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/services/project-gathering-around.js
|
|
26825
26869
|
var storedMessageNeighbours = /* @__PURE__ */ __name((messages) => ({
|
|
26826
26870
|
async around(ref, window2) {
|
|
26827
26871
|
const at2 = parseLocator(ref);
|
|
@@ -26916,7 +26960,7 @@ var storedNeighbours = /* @__PURE__ */ __name((store) => {
|
|
|
26916
26960
|
};
|
|
26917
26961
|
}, "storedNeighbours");
|
|
26918
26962
|
|
|
26919
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26963
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/services/project-gathering-request.js
|
|
26920
26964
|
import { createHash as createHash2 } from "node:crypto";
|
|
26921
26965
|
var DAY3 = 864e5;
|
|
26922
26966
|
var MAX_TIME = 864e13;
|
|
@@ -27232,7 +27276,7 @@ var decodeCheckpoint = /* @__PURE__ */ __name((text3, plan) => {
|
|
|
27232
27276
|
return value;
|
|
27233
27277
|
}, "decodeCheckpoint");
|
|
27234
27278
|
|
|
27235
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27279
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/services/project-gathering.js
|
|
27236
27280
|
var terminal = /* @__PURE__ */ new Set(["done", "unavailable", "failed"]);
|
|
27237
27281
|
var PAGE2 = 20;
|
|
27238
27282
|
var PEOPLE = 20;
|
|
@@ -27636,7 +27680,7 @@ var peopleOf = /* @__PURE__ */ __name((items, senderOf) => {
|
|
|
27636
27680
|
return [...byKey.values()].sort((a, b) => b.items - a.items || a.name.localeCompare(b.name));
|
|
27637
27681
|
}, "peopleOf");
|
|
27638
27682
|
|
|
27639
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27683
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/services/meeting-project-candidate-matching.js
|
|
27640
27684
|
var normalizedText = /* @__PURE__ */ __name((text3) => text3.normalize("NFKC").toLowerCase().replace(/\s+/gu, " "), "normalizedText");
|
|
27641
27685
|
var termsOf = /* @__PURE__ */ __name((entry) => [
|
|
27642
27686
|
{ name: entry.name, kind: "canonical" },
|
|
@@ -27680,7 +27724,7 @@ var matchVocabularyTerms = /* @__PURE__ */ __name((catalog, texts) => {
|
|
|
27680
27724
|
return result.sort((a, b) => Number(a.entry.id) - Number(b.entry.id));
|
|
27681
27725
|
}, "matchVocabularyTerms");
|
|
27682
27726
|
|
|
27683
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27727
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/services/project-gathering-mentions.js
|
|
27684
27728
|
var KINDS = ["project", "tag", "topic"];
|
|
27685
27729
|
var findEvidenceMentions = /* @__PURE__ */ __name(async (vocabulary, gathering, options2 = {}) => {
|
|
27686
27730
|
if (typeof vocabulary?.vocabulary !== "function")
|
|
@@ -27735,7 +27779,7 @@ var findEvidenceMentions = /* @__PURE__ */ __name(async (vocabulary, gathering,
|
|
|
27735
27779
|
};
|
|
27736
27780
|
}, "findEvidenceMentions");
|
|
27737
27781
|
|
|
27738
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27782
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/services/project-purposes.js
|
|
27739
27783
|
var BUILT_IN_PURPOSES = ["work", "sales", "support", "other"];
|
|
27740
27784
|
var DEFAULT_PURPOSES = ["work"];
|
|
27741
27785
|
var LINK_PURPOSE = "work";
|
|
@@ -27765,7 +27809,7 @@ var purposeList = /* @__PURE__ */ __name((value, previous = []) => [
|
|
|
27765
27809
|
...value.split(",").map((one) => one.trim()).filter(Boolean)
|
|
27766
27810
|
], "purposeList");
|
|
27767
27811
|
|
|
27768
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27812
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/services/stored-project-gathering.js
|
|
27769
27813
|
var storedChatCount = /* @__PURE__ */ __name((store) => async (account, chatId, { since, until }) => {
|
|
27770
27814
|
const window2 = { since: new Date(since).toISOString(), until: new Date(until - 1).toISOString() };
|
|
27771
27815
|
const [messages, newest, oldest] = await Promise.all([
|
|
@@ -28076,7 +28120,7 @@ var purposeHintOf = /* @__PURE__ */ __name((linked, rows, of) => {
|
|
|
28076
28120
|
return { chat: top.ref, relationship: link4.relationship, items, of };
|
|
28077
28121
|
}, "purposeHintOf");
|
|
28078
28122
|
|
|
28079
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28123
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/services/people.js
|
|
28080
28124
|
var peopleService = /* @__PURE__ */ __name((deps) => {
|
|
28081
28125
|
const localCard = /* @__PURE__ */ __name(async (card, includeNotes = false) => {
|
|
28082
28126
|
const held = await storeIfOpen(deps);
|
|
@@ -28341,7 +28385,7 @@ var withoutPhone = /* @__PURE__ */ __name((answer) => {
|
|
|
28341
28385
|
return rest;
|
|
28342
28386
|
}, "withoutPhone");
|
|
28343
28387
|
|
|
28344
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28388
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/services/task-stats.js
|
|
28345
28389
|
var TASK_STATS_BY = ["chat", "meeting", "project"];
|
|
28346
28390
|
var PERIOD_FIELD = "created";
|
|
28347
28391
|
var refuseNestedPeriod = /* @__PURE__ */ __name((node, top = true) => {
|
|
@@ -28472,7 +28516,7 @@ var meetingNames = /* @__PURE__ */ __name(async (store, groups) => {
|
|
|
28472
28516
|
}));
|
|
28473
28517
|
}, "meetingNames");
|
|
28474
28518
|
|
|
28475
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28519
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/services/task-tag-filters.js
|
|
28476
28520
|
var taskTagFilters = /* @__PURE__ */ __name(async (store, query) => {
|
|
28477
28521
|
const tags = /* @__PURE__ */ new Map();
|
|
28478
28522
|
for (const node of query ? walkQuery(query.root) : [])
|
|
@@ -28481,7 +28525,7 @@ var taskTagFilters = /* @__PURE__ */ __name(async (store, query) => {
|
|
|
28481
28525
|
return tags;
|
|
28482
28526
|
}, "taskTagFilters");
|
|
28483
28527
|
|
|
28484
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28528
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/services/tasks.js
|
|
28485
28529
|
var TASK_QUERY = {
|
|
28486
28530
|
entity: "task",
|
|
28487
28531
|
backend: "sql",
|
|
@@ -28981,7 +29025,7 @@ var taskView = /* @__PURE__ */ __name(async (store, account, task2) => {
|
|
|
28981
29025
|
};
|
|
28982
29026
|
}, "taskView");
|
|
28983
29027
|
|
|
28984
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29028
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/mail/owed.js
|
|
28985
29029
|
var mailTurn = /* @__PURE__ */ __name((newest) => {
|
|
28986
29030
|
if (newest === null)
|
|
28987
29031
|
return null;
|
|
@@ -28990,7 +29034,7 @@ var mailTurn = /* @__PURE__ */ __name((newest) => {
|
|
|
28990
29034
|
return newest.addressed ? "owed" : null;
|
|
28991
29035
|
}, "mailTurn");
|
|
28992
29036
|
|
|
28993
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29037
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/services/agenda-mail.js
|
|
28994
29038
|
var absent = /* @__PURE__ */ __name((error) => {
|
|
28995
29039
|
if (error instanceof CliError && error.code === "not_found")
|
|
28996
29040
|
return void 0;
|
|
@@ -29048,7 +29092,7 @@ var mailActivity = /* @__PURE__ */ __name(async (store, account, since, chats) =
|
|
|
29048
29092
|
};
|
|
29049
29093
|
}, "mailActivity");
|
|
29050
29094
|
|
|
29051
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29095
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/services/agenda.js
|
|
29052
29096
|
var DAY4 = 864e5;
|
|
29053
29097
|
var AGENDA_DEFAULTS = { unanswered: DAY4, waiting: 7 * DAY4 };
|
|
29054
29098
|
var CLAIMS = ["none", "mine", "others", "any"];
|
|
@@ -29302,22 +29346,22 @@ var agendaItem = /* @__PURE__ */ __name((shown) => {
|
|
|
29302
29346
|
};
|
|
29303
29347
|
}, "agendaItem");
|
|
29304
29348
|
|
|
29305
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29349
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/domain/vcard.js
|
|
29306
29350
|
var AS_WORD = new RegExp(`^${WORD_BODY}$`);
|
|
29307
29351
|
var encoder = new TextEncoder();
|
|
29308
29352
|
|
|
29309
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29353
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/services/media-archive.js
|
|
29310
29354
|
import { setTimeout as sleep3 } from "node:timers/promises";
|
|
29311
29355
|
|
|
29312
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29356
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/services/media-archive-files.js
|
|
29313
29357
|
import { lstat } from "node:fs/promises";
|
|
29314
29358
|
|
|
29315
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29359
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-store.js
|
|
29316
29360
|
import { createHash as createHash4, randomUUID as randomUUID3 } from "node:crypto";
|
|
29317
29361
|
import { open as open3, rename as rename2, unlink as unlink2 } from "node:fs/promises";
|
|
29318
29362
|
import { join as join7 } from "node:path";
|
|
29319
29363
|
|
|
29320
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29364
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-metadata.js
|
|
29321
29365
|
import { createHash as createHash3 } from "node:crypto";
|
|
29322
29366
|
var metadataLimit = 16384;
|
|
29323
29367
|
var partialIdentity = /* @__PURE__ */ __name((locator) => JSON.stringify([locator.provider, locator.account, locator.occurrenceId, locator.assetId]), "partialIdentity");
|
|
@@ -29377,7 +29421,7 @@ var readPartialMetadata = /* @__PURE__ */ __name(async (path2, locator, maxBytes
|
|
|
29377
29421
|
}
|
|
29378
29422
|
}, "readPartialMetadata");
|
|
29379
29423
|
|
|
29380
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29424
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-writer.js
|
|
29381
29425
|
import { randomUUID as randomUUID2 } from "node:crypto";
|
|
29382
29426
|
import { open as open2, rename, unlink } from "node:fs/promises";
|
|
29383
29427
|
import { join as join6 } from "node:path";
|
|
@@ -29469,7 +29513,7 @@ var partialWriter = /* @__PURE__ */ __name(async (input) => {
|
|
|
29469
29513
|
};
|
|
29470
29514
|
}, "partialWriter");
|
|
29471
29515
|
|
|
29472
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29516
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-store.js
|
|
29473
29517
|
var NativeRecordingPartialStore = class {
|
|
29474
29518
|
static {
|
|
29475
29519
|
__name(this, "NativeRecordingPartialStore");
|
|
@@ -29576,12 +29620,12 @@ var NativeRecordingPartialStore = class {
|
|
|
29576
29620
|
}
|
|
29577
29621
|
};
|
|
29578
29622
|
|
|
29579
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29623
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication.js
|
|
29580
29624
|
import { createHash as createHash5 } from "node:crypto";
|
|
29581
29625
|
import { link as link2 } from "node:fs/promises";
|
|
29582
29626
|
import { basename as basename2, dirname as dirname5, join as join9, resolve as resolve2 } from "node:path";
|
|
29583
29627
|
|
|
29584
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29628
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication-files.js
|
|
29585
29629
|
import { unlink as unlink3 } from "node:fs/promises";
|
|
29586
29630
|
var verifiedPublicationFile = /* @__PURE__ */ __name(async (path2, expected2, signal, writable = false) => {
|
|
29587
29631
|
signal?.throwIfAborted();
|
|
@@ -29616,7 +29660,7 @@ var commitPublication = /* @__PURE__ */ __name(async (root, partialPath, finalPa
|
|
|
29616
29660
|
signal?.throwIfAborted();
|
|
29617
29661
|
}, "commitPublication");
|
|
29618
29662
|
|
|
29619
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29663
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication-journal.js
|
|
29620
29664
|
import { randomUUID as randomUUID4 } from "node:crypto";
|
|
29621
29665
|
import { open as open4, rename as rename3, unlink as unlink4 } from "node:fs/promises";
|
|
29622
29666
|
import { join as join8 } from "node:path";
|
|
@@ -29689,7 +29733,7 @@ var writePublicationJournal = /* @__PURE__ */ __name(async (root, path2, prefix,
|
|
|
29689
29733
|
}
|
|
29690
29734
|
}, "writePublicationJournal");
|
|
29691
29735
|
|
|
29692
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29736
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication.js
|
|
29693
29737
|
var NativeRecordingPublication = class {
|
|
29694
29738
|
static {
|
|
29695
29739
|
__name(this, "NativeRecordingPublication");
|
|
@@ -29762,7 +29806,7 @@ var NativeRecordingPublication = class {
|
|
|
29762
29806
|
}
|
|
29763
29807
|
};
|
|
29764
29808
|
|
|
29765
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29809
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/services/media-archive-manifest.js
|
|
29766
29810
|
import { createHash as createHash6 } from "node:crypto";
|
|
29767
29811
|
import { readdir } from "node:fs/promises";
|
|
29768
29812
|
import { isAbsolute as isAbsolute2, join as join10, resolve as resolve3 } from "node:path";
|
|
@@ -29849,7 +29893,7 @@ var commitMediaEntry = /* @__PURE__ */ __name((root, one, beforePublish) => writ
|
|
|
29849
29893
|
beforePublish
|
|
29850
29894
|
}), "commitMediaEntry");
|
|
29851
29895
|
|
|
29852
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29896
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/services/media-archive-files.js
|
|
29853
29897
|
var validator = '"media-completed-v1"';
|
|
29854
29898
|
var maximumFileBytes = 64 * 1024 * 1024 * 1024;
|
|
29855
29899
|
var archiveMediaFile = /* @__PURE__ */ __name(async (root, identity, kind2, file2, beforeWrite, signal, metadata = {}) => {
|
|
@@ -29950,7 +29994,7 @@ var archiveMediaFile = /* @__PURE__ */ __name(async (root, identity, kind2, file
|
|
|
29950
29994
|
return entry;
|
|
29951
29995
|
}, "archiveMediaFile");
|
|
29952
29996
|
|
|
29953
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29997
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/services/media-archive-locks.js
|
|
29954
29998
|
import { mkdir, realpath } from "node:fs/promises";
|
|
29955
29999
|
import { join as join11, resolve as resolve4 } from "node:path";
|
|
29956
30000
|
var archiveLocations = /* @__PURE__ */ __name(async (initial, signal) => {
|
|
@@ -30017,7 +30061,7 @@ var withMediaArchiveLocks = /* @__PURE__ */ __name(async (directory2, signal, ru
|
|
|
30017
30061
|
throw new CliError("validation_error", "archive locations changed during locking; run the command again");
|
|
30018
30062
|
}, "withMediaArchiveLocks");
|
|
30019
30063
|
|
|
30020
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30064
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/services/media-archive.js
|
|
30021
30065
|
var checkMediaArchive = /* @__PURE__ */ __name((directory2, signal) => withMediaArchiveLocks(directory2, signal, async (root) => {
|
|
30022
30066
|
const entries = await readMediaManifests(root, signal);
|
|
30023
30067
|
if (!entries.length)
|
|
@@ -30160,7 +30204,7 @@ var archiveMedia = /* @__PURE__ */ __name(async (ports, options2) => {
|
|
|
30160
30204
|
}, { create: true });
|
|
30161
30205
|
}, "archiveMedia");
|
|
30162
30206
|
|
|
30163
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30207
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/services/media-archive-move.js
|
|
30164
30208
|
import { realpath as realpath2, unlink as unlink5 } from "node:fs/promises";
|
|
30165
30209
|
import { basename as basename3, dirname as dirname6, join as join12, resolve as resolve5 } from "node:path";
|
|
30166
30210
|
var canonicalDestination = /* @__PURE__ */ __name(async (directory2) => {
|
|
@@ -30311,7 +30355,7 @@ var moveMediaArchive = /* @__PURE__ */ __name(async (options2) => {
|
|
|
30311
30355
|
}, { additional: [target2], createAdditional: !options2.dryRun });
|
|
30312
30356
|
}, "moveMediaArchive");
|
|
30313
30357
|
|
|
30314
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30358
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/services/model-downloads.js
|
|
30315
30359
|
import { writeFileSync as writeFileSync3 } from "node:fs";
|
|
30316
30360
|
import { join as join13 } from "node:path";
|
|
30317
30361
|
var bytesOf = /* @__PURE__ */ __name((model) => model.files.reduce((sum2, file2) => sum2 + file2.bytes, 0), "bytesOf");
|
|
@@ -30336,7 +30380,7 @@ var downloadTextModel = /* @__PURE__ */ __name(async (id3, { env, progress = /*
|
|
|
30336
30380
|
`);
|
|
30337
30381
|
await nativeRuntime({ env, progress });
|
|
30338
30382
|
progress(`${model.id}: loading it once to check it works`);
|
|
30339
|
-
const { openEmbedder: openEmbedder2 } = await import("./embed-
|
|
30383
|
+
const { openEmbedder: openEmbedder2 } = await import("./embed-SXU7JVUG.js");
|
|
30340
30384
|
const embedder = await openEmbedder2(model, directory2);
|
|
30341
30385
|
try {
|
|
30342
30386
|
const [vector] = await embedder.embed(["check"], "query");
|
|
@@ -30357,7 +30401,7 @@ var downloadRerankModel = /* @__PURE__ */ __name(async (id3, { env, progress = /
|
|
|
30357
30401
|
}
|
|
30358
30402
|
await nativeRuntime({ env, progress });
|
|
30359
30403
|
progress(`${model.id}: loading it once to check it works`);
|
|
30360
|
-
const { openReranker } = await import("./rerank-
|
|
30404
|
+
const { openReranker } = await import("./rerank-TE4HIS5A.js");
|
|
30361
30405
|
const reranker = await openReranker(model, directory2);
|
|
30362
30406
|
try {
|
|
30363
30407
|
await reranker.score("check", ["check"]);
|
|
@@ -30375,7 +30419,7 @@ var downloadImageModel = /* @__PURE__ */ __name(async (id3, { env, progress = /*
|
|
|
30375
30419
|
await installFiles(placedImage(model, directory2), { progress, ...bytes2 ? { bytes: bytes2 } : {} });
|
|
30376
30420
|
}
|
|
30377
30421
|
progress(`${model.id}: loading it once to check it works`);
|
|
30378
|
-
const { openPictureEmbedder } = await import("./embedder-
|
|
30422
|
+
const { openPictureEmbedder } = await import("./embedder-ZVNBHGXC.js");
|
|
30379
30423
|
const embedder = await openPictureEmbedder(model, directory2);
|
|
30380
30424
|
try {
|
|
30381
30425
|
const vector = await embedder.embedQuery("check");
|
|
@@ -30387,7 +30431,7 @@ var downloadImageModel = /* @__PURE__ */ __name(async (id3, { env, progress = /*
|
|
|
30387
30431
|
return { model, directory: directory2 };
|
|
30388
30432
|
}, "downloadImageModel");
|
|
30389
30433
|
|
|
30390
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30434
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/domain/money-words.js
|
|
30391
30435
|
var MONEY_REQUEST = "money-request";
|
|
30392
30436
|
var MONEY_DONE = "money-done";
|
|
30393
30437
|
var PROMISE = "promise";
|
|
@@ -30421,10 +30465,10 @@ var MONEY_WORDS = [
|
|
|
30421
30465
|
}
|
|
30422
30466
|
];
|
|
30423
30467
|
|
|
30424
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30468
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/services/money-words.js
|
|
30425
30469
|
var moneyClassesOf = /* @__PURE__ */ __name((text3) => listsHit(text3, MONEY_WORDS), "moneyClassesOf");
|
|
30426
30470
|
|
|
30427
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30471
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/domain/status-words.js
|
|
30428
30472
|
var words2 = /* @__PURE__ */ __name((forms) => new RegExp(`(?<![\\p{L}\\p{N}])(?:${forms.join("|")})(?![\\p{L}\\p{N}])`, "iu"), "words");
|
|
30429
30473
|
var MONEY_DONE_FORMS = words2([
|
|
30430
30474
|
"\u043E\u043F\u043B\u0430\u0442\u0438\u043B[\u0430\u0438]?",
|
|
@@ -30464,7 +30508,7 @@ var PROMISE_FORMS = words2([
|
|
|
30464
30508
|
"estar\xE1 listo"
|
|
30465
30509
|
]);
|
|
30466
30510
|
|
|
30467
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30511
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/services/project-status/items.js
|
|
30468
30512
|
var EXCERPT_CHARS = 80;
|
|
30469
30513
|
var excerpt2 = /* @__PURE__ */ __name((text3) => {
|
|
30470
30514
|
const flat = text3.replace(/\s+/g, " ").trim();
|
|
@@ -30486,7 +30530,7 @@ var whoOf = /* @__PURE__ */ __name((message) => ({
|
|
|
30486
30530
|
var fromOwner = /* @__PURE__ */ __name((message) => message.outgoing === true, "fromOwner");
|
|
30487
30531
|
var day = /* @__PURE__ */ __name((at2) => new Date(at2).toISOString().slice(0, 10), "day");
|
|
30488
30532
|
|
|
30489
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30533
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/services/project-status/signals/amounts.js
|
|
30490
30534
|
var MONEY = DEFAULT_TASK_CATEGORIES.filter((category) => category.name === "money");
|
|
30491
30535
|
var verbOf = /* @__PURE__ */ __name((text3) => {
|
|
30492
30536
|
if (MONEY_DONE_FORMS.test(text3))
|
|
@@ -30567,7 +30611,7 @@ var amounts = {
|
|
|
30567
30611
|
attention: /* @__PURE__ */ __name((items) => items.flatMap((item2) => item2.chat !== null && item2.data.state === "asked" ? [{ chat: item2.chat, weight: 2, why: "money asked" }] : []), "attention")
|
|
30568
30612
|
};
|
|
30569
30613
|
|
|
30570
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30614
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/services/project-status/signals/children.js
|
|
30571
30615
|
var children = {
|
|
30572
30616
|
id: "children",
|
|
30573
30617
|
version: 1,
|
|
@@ -30596,7 +30640,7 @@ var children = {
|
|
|
30596
30640
|
}, "read")
|
|
30597
30641
|
};
|
|
30598
30642
|
|
|
30599
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30643
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/services/project-status/signals/coverage.js
|
|
30600
30644
|
var coverage = {
|
|
30601
30645
|
id: "coverage",
|
|
30602
30646
|
version: 1,
|
|
@@ -30625,7 +30669,7 @@ var coverage = {
|
|
|
30625
30669
|
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")
|
|
30626
30670
|
};
|
|
30627
30671
|
|
|
30628
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30672
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/services/project-status/signals/payments.js
|
|
30629
30673
|
var holding2 = /* @__PURE__ */ __name((row) => row.review !== "rejected", "holding");
|
|
30630
30674
|
var item = /* @__PURE__ */ __name((row, at2, data) => ({
|
|
30631
30675
|
signal: "payments",
|
|
@@ -30675,7 +30719,7 @@ var payments = {
|
|
|
30675
30719
|
}, "read")
|
|
30676
30720
|
};
|
|
30677
30721
|
|
|
30678
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30722
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/services/project-status/signals/promises.js
|
|
30679
30723
|
var PATTERNS_PER_CHAT = 3;
|
|
30680
30724
|
var DAY5 = 864e5;
|
|
30681
30725
|
var KINDS2 = /* @__PURE__ */ new Set(["promise", "request"]);
|
|
@@ -30764,7 +30808,7 @@ var promises = {
|
|
|
30764
30808
|
}, "read")
|
|
30765
30809
|
};
|
|
30766
30810
|
|
|
30767
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30811
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/services/project-status/signals/questions.js
|
|
30768
30812
|
var PER_SIDE = 5;
|
|
30769
30813
|
var WEEK = 7 * 864e5;
|
|
30770
30814
|
var NOBODY = /* @__PURE__ */ new Set();
|
|
@@ -30795,7 +30839,7 @@ var questions2 = {
|
|
|
30795
30839
|
}, "attention")
|
|
30796
30840
|
};
|
|
30797
30841
|
|
|
30798
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30842
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/services/project-status/signals/reply-next.js
|
|
30799
30843
|
var targetOf = /* @__PURE__ */ __name((message, chat, owners) => {
|
|
30800
30844
|
const byId2 = /* @__PURE__ */ __name((id3) => chat.messages.find((one) => one.id === id3), "byId");
|
|
30801
30845
|
const quoted = message.replyTo ?? (message.replyToId === void 0 ? void 0 : byId2(message.replyToId));
|
|
@@ -30863,7 +30907,7 @@ var replyNext = {
|
|
|
30863
30907
|
attention: /* @__PURE__ */ __name((items) => items.flatMap((item2) => item2.chat !== null && item2.data.next === "owner" ? [{ chat: item2.chat, weight: 2, why: "your move" }] : []), "attention")
|
|
30864
30908
|
};
|
|
30865
30909
|
|
|
30866
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30910
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/services/project-status/signals/topics.js
|
|
30867
30911
|
var escaped = /* @__PURE__ */ __name((text3) => text3.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), "escaped");
|
|
30868
30912
|
var wholeWord = /* @__PURE__ */ __name((word) => new RegExp(`(?<![\\p{L}\\p{N}])${escaped(word)}(?![\\p{L}\\p{N}])`, "u"), "wholeWord");
|
|
30869
30913
|
var matcherOf = /* @__PURE__ */ __name((query) => {
|
|
@@ -30909,7 +30953,7 @@ var topics = {
|
|
|
30909
30953
|
}, "read")
|
|
30910
30954
|
};
|
|
30911
30955
|
|
|
30912
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30956
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/services/project-status/signals/index.js
|
|
30913
30957
|
var STATUS_SIGNALS = [
|
|
30914
30958
|
replyNext,
|
|
30915
30959
|
questions2,
|
|
@@ -30921,7 +30965,7 @@ var STATUS_SIGNALS = [
|
|
|
30921
30965
|
children
|
|
30922
30966
|
];
|
|
30923
30967
|
|
|
30924
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30968
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/services/project-status/index.js
|
|
30925
30969
|
var DAY6 = 864e5;
|
|
30926
30970
|
var STATUS_WINDOW = 300;
|
|
30927
30971
|
var STATUS_CHATS = 16;
|
|
@@ -31110,7 +31154,7 @@ var projectStatus = /* @__PURE__ */ __name(async (store, input) => {
|
|
|
31110
31154
|
};
|
|
31111
31155
|
}, "projectStatus");
|
|
31112
31156
|
|
|
31113
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31157
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/services/account.js
|
|
31114
31158
|
var accountService = /* @__PURE__ */ __name((deps) => {
|
|
31115
31159
|
const online = /* @__PURE__ */ __name(async (command) => {
|
|
31116
31160
|
if (deps.offline)
|
|
@@ -31182,7 +31226,7 @@ var accountService = /* @__PURE__ */ __name((deps) => {
|
|
|
31182
31226
|
};
|
|
31183
31227
|
}, "accountService");
|
|
31184
31228
|
|
|
31185
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31229
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/domain/send-time.js
|
|
31186
31230
|
var sendTime = /* @__PURE__ */ __name((value, now = Date.now(), flag = "--at-time", zone) => {
|
|
31187
31231
|
const at2 = aheadOf(value, flag, now, {
|
|
31188
31232
|
...zone === void 0 ? {} : { zone },
|
|
@@ -31193,7 +31237,7 @@ var sendTime = /* @__PURE__ */ __name((value, now = Date.now(), flag = "--at-tim
|
|
|
31193
31237
|
return new Date(at2 - at2 % MINUTE).toISOString();
|
|
31194
31238
|
}, "sendTime");
|
|
31195
31239
|
|
|
31196
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31240
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/services/admin.js
|
|
31197
31241
|
var recordMembership = /* @__PURE__ */ __name(async (deps, operationId, done2, change, fix, write2) => {
|
|
31198
31242
|
try {
|
|
31199
31243
|
const held = await accountStoreIfOpen(deps);
|
|
@@ -31440,7 +31484,7 @@ var linkLimits = /* @__PURE__ */ __name(({ approval, expires, maxUses }) => {
|
|
|
31440
31484
|
return expires === void 0 ? void 0 : sendTime(expires, Date.now(), "--expire-time");
|
|
31441
31485
|
}, "linkLimits");
|
|
31442
31486
|
|
|
31443
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31487
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/services/mail-search.js
|
|
31444
31488
|
var THREADS_PAGE = 500;
|
|
31445
31489
|
var threadsOf = /* @__PURE__ */ __name(async (store, key) => {
|
|
31446
31490
|
const account = await store.accounts.storedAccount(key).catch(() => void 0);
|
|
@@ -31515,7 +31559,7 @@ var readMail = /* @__PURE__ */ __name(async (store, locator, { before = 0, after
|
|
|
31515
31559
|
return thread.slice(Math.max(0, at2 - before), at2 + after + 1).map((hit) => hit.id === message ? { ...hit, anchor: true } : hit);
|
|
31516
31560
|
}, "readMail");
|
|
31517
31561
|
|
|
31518
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31562
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/services/messages-search.js
|
|
31519
31563
|
var PERSON_FIELDS = /* @__PURE__ */ new Set(["from", "to", "cc", "bcc"]);
|
|
31520
31564
|
var MAIL_FIELDS = /* @__PURE__ */ new Set(["to", "cc", "bcc", "subject", "mailbox", "label", "is", "list"]);
|
|
31521
31565
|
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");
|
|
@@ -31888,7 +31932,7 @@ var statsLucene = /* @__PURE__ */ __name(async (store, account, request, messeng
|
|
|
31888
31932
|
};
|
|
31889
31933
|
}, "statsLucene");
|
|
31890
31934
|
|
|
31891
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31935
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/services/rankings-selection.js
|
|
31892
31936
|
var RANKING_SELECTION_BYTES = 64 * 1024;
|
|
31893
31937
|
var object2 = /* @__PURE__ */ __name((value) => value !== null && typeof value === "object" && !Array.isArray(value) ? value : void 0, "object");
|
|
31894
31938
|
function invalid3(message = "ranking selection is invalid \u2014 obtain a new drilldown from stats top") {
|
|
@@ -32057,7 +32101,7 @@ var readRankingSelection = /* @__PURE__ */ __name(async (store, input) => {
|
|
|
32057
32101
|
};
|
|
32058
32102
|
}, "readRankingSelection");
|
|
32059
32103
|
|
|
32060
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32104
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/services/search-record.js
|
|
32061
32105
|
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");
|
|
32062
32106
|
var searchRecordOf = /* @__PURE__ */ __name((command, params) => ({
|
|
32063
32107
|
command,
|
|
@@ -32067,7 +32111,7 @@ var searchRecordOf = /* @__PURE__ */ __name((command, params) => ({
|
|
|
32067
32111
|
fieldsVersion: FIELD_VERSION
|
|
32068
32112
|
}), "searchRecordOf");
|
|
32069
32113
|
|
|
32070
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32114
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/services/admin-statistics.js
|
|
32071
32115
|
function invalid4(message) {
|
|
32072
32116
|
throw new CliError("validation_error", message);
|
|
32073
32117
|
}
|
|
@@ -32361,7 +32405,7 @@ var adminStatisticsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
32361
32405
|
}, "evidence")
|
|
32362
32406
|
}), "adminStatisticsService");
|
|
32363
32407
|
|
|
32364
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32408
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/services/archive-gaps.js
|
|
32365
32409
|
import { createHash as createHash7, randomUUID as randomUUID5 } from "node:crypto";
|
|
32366
32410
|
var GAP_BOUNDS = { maxGaps: 5, limit: 500, timeMs: 3e4 };
|
|
32367
32411
|
var validateRepair = /* @__PURE__ */ __name((messenger, options2) => {
|
|
@@ -32498,12 +32542,12 @@ var gapsService = /* @__PURE__ */ __name((deps) => {
|
|
|
32498
32542
|
return { plan, repair };
|
|
32499
32543
|
}, "gapsService");
|
|
32500
32544
|
|
|
32501
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32545
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/services/attachments.js
|
|
32502
32546
|
import { createHash as createHash10 } from "node:crypto";
|
|
32503
32547
|
import { constants as constants2, mkdirSync as mkdirSync5 } from "node:fs";
|
|
32504
32548
|
import { lstat as lstat5, open as open6, readFile as readFile2, stat as stat2 } from "node:fs/promises";
|
|
32505
32549
|
|
|
32506
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32550
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/attachments/directory.js
|
|
32507
32551
|
import { lstat as lstat2, readdir as readdir2, realpath as realpath3 } from "node:fs/promises";
|
|
32508
32552
|
import { basename as basename4, join as join14, relative as relative2, sep as sep2 } from "node:path";
|
|
32509
32553
|
var MAX_FILES = 1e4;
|
|
@@ -32574,15 +32618,15 @@ var directoryPaths = /* @__PURE__ */ __name(async (store, chat, directory2, app,
|
|
|
32574
32618
|
return choices;
|
|
32575
32619
|
}, "directoryPaths");
|
|
32576
32620
|
|
|
32577
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32621
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/attachments/documents.js
|
|
32578
32622
|
import { posix } from "node:path";
|
|
32579
32623
|
|
|
32580
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32624
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/attachments/container.js
|
|
32581
32625
|
import { setImmediate as tick } from "node:timers/promises";
|
|
32582
32626
|
import { crc32 } from "node:zlib";
|
|
32583
32627
|
var import_xmldom = __toESM(require_lib(), 1);
|
|
32584
32628
|
|
|
32585
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32629
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/attachments/encoding.js
|
|
32586
32630
|
var import_chardet = __toESM(require_lib2(), 1);
|
|
32587
32631
|
var import_iconv_lite = __toESM(require_lib3(), 1);
|
|
32588
32632
|
var SAMPLE = 65536;
|
|
@@ -32684,7 +32728,7 @@ var decodeXml = /* @__PURE__ */ __name((bytes2) => {
|
|
|
32684
32728
|
return result.text;
|
|
32685
32729
|
}, "decodeXml");
|
|
32686
32730
|
|
|
32687
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32731
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/attachments/container.js
|
|
32688
32732
|
var MAX_PART = 10 * 1024 * 1024;
|
|
32689
32733
|
var MAX_ENTRIES = 1e3;
|
|
32690
32734
|
var decoder = new TextDecoder("utf-8", { fatal: true });
|
|
@@ -32899,7 +32943,7 @@ var elements = /* @__PURE__ */ __name((node, name, namespace) => {
|
|
|
32899
32943
|
return found;
|
|
32900
32944
|
}, "elements");
|
|
32901
32945
|
|
|
32902
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32946
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/attachments/sheets.js
|
|
32903
32947
|
var columnName = /* @__PURE__ */ __name((column) => {
|
|
32904
32948
|
let name = "";
|
|
32905
32949
|
for (let rest = column; rest > 0; rest = Math.floor((rest - 1) / 26))
|
|
@@ -32954,7 +32998,7 @@ var sheetText = /* @__PURE__ */ __name((sheets2, maxChars = MAX_TEXT_CHARS) => {
|
|
|
32954
32998
|
return { text: parts.join("").trim(), truncated: false };
|
|
32955
32999
|
}, "sheetText");
|
|
32956
33000
|
|
|
32957
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33001
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/attachments/documents.js
|
|
32958
33002
|
var OFFICE = "urn:oasis:names:tc:opendocument:xmlns:office:1.0";
|
|
32959
33003
|
var TEXT = "urn:oasis:names:tc:opendocument:xmlns:text:1.0";
|
|
32960
33004
|
var TABLE = "urn:oasis:names:tc:opendocument:xmlns:table:1.0";
|
|
@@ -33354,10 +33398,10 @@ var readDocument = /* @__PURE__ */ __name(async (bytes2, kind2, signal) => {
|
|
|
33354
33398
|
}
|
|
33355
33399
|
}, "readDocument");
|
|
33356
33400
|
|
|
33357
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33401
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/attachments/extract.js
|
|
33358
33402
|
import { extname as extname3 } from "node:path";
|
|
33359
33403
|
|
|
33360
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33404
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/readers/engine.js
|
|
33361
33405
|
import { readFileSync as readFileSync7 } from "node:fs";
|
|
33362
33406
|
import { dirname as dirname7, extname as extname2, join as join15 } from "node:path";
|
|
33363
33407
|
import { fileURLToPath } from "node:url";
|
|
@@ -33418,7 +33462,7 @@ var derived = /* @__PURE__ */ __name((bytes2, extractor, read2) => {
|
|
|
33418
33462
|
}
|
|
33419
33463
|
}, "derived");
|
|
33420
33464
|
|
|
33421
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33465
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/readers/image/index.js
|
|
33422
33466
|
var IMAGES = /* @__PURE__ */ new Set([".jpg", ".jpeg", ".png", ".webp", ".gif", ".heic", ".tif", ".tiff", ".bmp"]);
|
|
33423
33467
|
var image2 = {
|
|
33424
33468
|
id: "image",
|
|
@@ -33427,7 +33471,7 @@ var image2 = {
|
|
|
33427
33471
|
read: /* @__PURE__ */ __name(async () => ({ status: "needs-agent" }), "read")
|
|
33428
33472
|
};
|
|
33429
33473
|
|
|
33430
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33474
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/readers/doc/index.js
|
|
33431
33475
|
var OLE = "\xD0\xCF\xE0\xA1\xB1\xE1";
|
|
33432
33476
|
var doc = {
|
|
33433
33477
|
id: "doc",
|
|
@@ -33439,7 +33483,7 @@ var doc = {
|
|
|
33439
33483
|
}), "read")
|
|
33440
33484
|
};
|
|
33441
33485
|
|
|
33442
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33486
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/readers/docx/index.js
|
|
33443
33487
|
var DOCX = "application/vnd.openxmlformats-officedocument.wordprocessingml.document";
|
|
33444
33488
|
var docx = {
|
|
33445
33489
|
id: "docx",
|
|
@@ -33452,10 +33496,10 @@ var docx = {
|
|
|
33452
33496
|
}), "read")
|
|
33453
33497
|
};
|
|
33454
33498
|
|
|
33455
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33499
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/attachments/markup.js
|
|
33456
33500
|
var import_iconv_lite2 = __toESM(require_lib3(), 1);
|
|
33457
33501
|
|
|
33458
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33502
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/domain/html-entities.js
|
|
33459
33503
|
var NAMED = {
|
|
33460
33504
|
amp: "&",
|
|
33461
33505
|
lt: "<",
|
|
@@ -33507,7 +33551,7 @@ var decodeEntities = /* @__PURE__ */ __name((text3) => text3.replace(/&(#x[0-9a-
|
|
|
33507
33551
|
return body[1] === "x" || body[1] === "X" ? character(Number.parseInt(body.slice(2), 16), entity2) : character(Number(body.slice(1)), entity2);
|
|
33508
33552
|
}), "decodeEntities");
|
|
33509
33553
|
|
|
33510
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33554
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/attachments/markup.js
|
|
33511
33555
|
var RTF_SKIPPED = /* @__PURE__ */ new Set([
|
|
33512
33556
|
"fonttbl",
|
|
33513
33557
|
"colortbl",
|
|
@@ -33673,7 +33717,7 @@ var htmlText = /* @__PURE__ */ __name((source) => {
|
|
|
33673
33717
|
return decodeEntities(replaceTags(blocks, /<[^>]*>/g, "")).replace(/(?<![ \t\u00a0])[ \t\u00a0]+\n/g, "\n").replace(/\n{3,}/g, "\n\n").trim();
|
|
33674
33718
|
}, "htmlText");
|
|
33675
33719
|
|
|
33676
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33720
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/readers/html/page.js
|
|
33677
33721
|
var clean = /* @__PURE__ */ __name((value) => typeof value === "string" ? value.replace(/\s+/g, " ").trim() : "", "clean");
|
|
33678
33722
|
var namesIn = /* @__PURE__ */ __name((value) => [value].flat().map((entry) => typeof entry === "string" ? clean(entry) : clean(entry?.name)).filter(Boolean).join(", "), "namesIn");
|
|
33679
33723
|
var jsonLdNodes = /* @__PURE__ */ __name((document) => {
|
|
@@ -33729,7 +33773,7 @@ var markdownSections = /* @__PURE__ */ __name((text3) => {
|
|
|
33729
33773
|
return found.map((section, index) => ({ ...section, end: found[index + 1]?.start ?? text3.length }));
|
|
33730
33774
|
}, "markdownSections");
|
|
33731
33775
|
|
|
33732
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33776
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/readers/html/index.js
|
|
33733
33777
|
var HTML = /* @__PURE__ */ new Set([".html", ".htm", ".xhtml"]);
|
|
33734
33778
|
var first = /* @__PURE__ */ __name((...values) => values.find((value) => typeof value === "string" && value !== ""), "first");
|
|
33735
33779
|
var loaded = /* @__PURE__ */ __name(async (load, name) => {
|
|
@@ -33800,7 +33844,7 @@ var html = {
|
|
|
33800
33844
|
}, "read")
|
|
33801
33845
|
};
|
|
33802
33846
|
|
|
33803
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33847
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/readers/office/index.js
|
|
33804
33848
|
var office = {
|
|
33805
33849
|
id: "office",
|
|
33806
33850
|
version: documentExtractor("odt"),
|
|
@@ -33811,7 +33855,7 @@ var office = {
|
|
|
33811
33855
|
}, "read")
|
|
33812
33856
|
};
|
|
33813
33857
|
|
|
33814
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33858
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/readers/pdf/index.js
|
|
33815
33859
|
var pdf = {
|
|
33816
33860
|
id: "pdf",
|
|
33817
33861
|
version: "unpdf",
|
|
@@ -33878,7 +33922,7 @@ var pdf = {
|
|
|
33878
33922
|
}), "read")
|
|
33879
33923
|
};
|
|
33880
33924
|
|
|
33881
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33925
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/readers/plain/index.js
|
|
33882
33926
|
var PLAIN = /* @__PURE__ */ new Set([".txt", ".md", ".markdown", ".csv", ".tsv", ".json", ".log"]);
|
|
33883
33927
|
var isPlain = /* @__PURE__ */ __name((hint) => PLAIN.has(extensionOf(hint)) || hint.mime?.startsWith("text/") || hint.mime === "application/json", "isPlain");
|
|
33884
33928
|
var readPlain = /* @__PURE__ */ __name((bytes2) => {
|
|
@@ -33898,7 +33942,7 @@ var plain = {
|
|
|
33898
33942
|
read: /* @__PURE__ */ __name(async (bytes2) => readPlain(bytes2), "read")
|
|
33899
33943
|
};
|
|
33900
33944
|
|
|
33901
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33945
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/readers/rtf/index.js
|
|
33902
33946
|
var rtf = {
|
|
33903
33947
|
id: "rtf",
|
|
33904
33948
|
version: "v1",
|
|
@@ -33906,10 +33950,10 @@ var rtf = {
|
|
|
33906
33950
|
read: /* @__PURE__ */ __name(async (bytes2) => derived(bytes2, "rtf:v1", rtfText), "read")
|
|
33907
33951
|
};
|
|
33908
33952
|
|
|
33909
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33953
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/readers/sheets/index.js
|
|
33910
33954
|
import { basename as basename5 } from "node:path";
|
|
33911
33955
|
|
|
33912
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33956
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/attachments/csv-spans.js
|
|
33913
33957
|
var delimitedSpans = /* @__PURE__ */ __name((text3, delimiter, maxCells = 1e4) => {
|
|
33914
33958
|
const cells = [];
|
|
33915
33959
|
let row = 1, column = 1, start = 0, quoted = false, truncated = false;
|
|
@@ -33947,7 +33991,7 @@ var delimitedSpans = /* @__PURE__ */ __name((text3, delimiter, maxCells = 1e4) =
|
|
|
33947
33991
|
return { cells, truncated };
|
|
33948
33992
|
}, "delimitedSpans");
|
|
33949
33993
|
|
|
33950
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33994
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/readers/sheets/index.js
|
|
33951
33995
|
var DELIMITED = {
|
|
33952
33996
|
".csv": ",",
|
|
33953
33997
|
".tsv": " ",
|
|
@@ -33986,7 +34030,7 @@ var sheets = {
|
|
|
33986
34030
|
}, "read")
|
|
33987
34031
|
};
|
|
33988
34032
|
|
|
33989
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34033
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/readers/registry.js
|
|
33990
34034
|
var BUILT_INS2 = [office, pdf, docx, doc, rtf, html, sheets, plain, image2];
|
|
33991
34035
|
var HEAD_BYTES = 1024;
|
|
33992
34036
|
var readers = [...BUILT_INS2];
|
|
@@ -33996,7 +34040,7 @@ var readWithRegistry = /* @__PURE__ */ __name(async (bytes2, hint, context2) =>
|
|
|
33996
34040
|
return reader ? reader.read(bytes2, hint, context2) : { status: "unsupported" };
|
|
33997
34041
|
}, "readWithRegistry");
|
|
33998
34042
|
|
|
33999
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34043
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/attachments/extract.js
|
|
34000
34044
|
var importEngine = /* @__PURE__ */ __name((name) => importFrom(new URL("attachments/extract.js", import.meta.resolve("@wirecat/cli-core")).href, name), "importEngine");
|
|
34001
34045
|
var extensionOf2 = /* @__PURE__ */ __name(({ name, path: path2 }) => extname3(name ?? path2).toLowerCase(), "extensionOf");
|
|
34002
34046
|
var extractText = /* @__PURE__ */ __name(async (bytes2, hint, load, signal, env = process.env) => {
|
|
@@ -35075,7 +35119,7 @@ function imageSize(input) {
|
|
|
35075
35119
|
}
|
|
35076
35120
|
__name(imageSize, "imageSize");
|
|
35077
35121
|
|
|
35078
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35122
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/attachments/ocr.js
|
|
35079
35123
|
var MAX_PAGES = 20;
|
|
35080
35124
|
var MAX_PIXELS = 2e7;
|
|
35081
35125
|
var cancelled2 = /* @__PURE__ */ __name((signal) => {
|
|
@@ -35235,7 +35279,7 @@ var ocrPdf = /* @__PURE__ */ __name(async (bytes2, pipeline2, load, signal) => {
|
|
|
35235
35279
|
}
|
|
35236
35280
|
}, "ocrPdf");
|
|
35237
35281
|
|
|
35238
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35282
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/attachments/pdf-preview.js
|
|
35239
35283
|
var pdfPreview = /* @__PURE__ */ __name(async (bytes2, page, signal, load = importEngine, env = process.env) => {
|
|
35240
35284
|
const limits = pdfPreviewLimits(env);
|
|
35241
35285
|
const cancelled3 = /* @__PURE__ */ __name(() => {
|
|
@@ -35312,7 +35356,7 @@ var pdfPreview = /* @__PURE__ */ __name(async (bytes2, page, signal, load = impo
|
|
|
35312
35356
|
}
|
|
35313
35357
|
}, "pdfPreview");
|
|
35314
35358
|
|
|
35315
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35359
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/attachments/picture-reading.js
|
|
35316
35360
|
import { spawn } from "node:child_process";
|
|
35317
35361
|
import { mkdtempSync, readFileSync as readFileSync8, rmSync as rmSync2, writeFileSync as writeFileSync4 } from "node:fs";
|
|
35318
35362
|
import { tmpdir } from "node:os";
|
|
@@ -35475,7 +35519,7 @@ Read the attached picture.`,
|
|
|
35475
35519
|
}
|
|
35476
35520
|
}, "readPictureWithAgent");
|
|
35477
35521
|
|
|
35478
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35522
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/attachments/transfer.js
|
|
35479
35523
|
import { createHash as createHash8 } from "node:crypto";
|
|
35480
35524
|
import { constants } from "node:fs";
|
|
35481
35525
|
import { lstat as lstat3, open as open5 } from "node:fs/promises";
|
|
@@ -35583,7 +35627,7 @@ var transferMime = /* @__PURE__ */ __name((head, hint, name = null) => {
|
|
|
35583
35627
|
return hint !== null && /^[a-z0-9.+-]+\/[a-z0-9.+-]+$/i.test(hint) ? hint : "application/octet-stream";
|
|
35584
35628
|
}, "transferMime");
|
|
35585
35629
|
|
|
35586
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35630
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/services/file-download.js
|
|
35587
35631
|
import { createWriteStream, mkdirSync as mkdirSync4 } from "node:fs";
|
|
35588
35632
|
import { link as link3, rm } from "node:fs/promises";
|
|
35589
35633
|
import { join as join17, resolve as resolve6 } from "node:path";
|
|
@@ -35698,12 +35742,12 @@ var save = /* @__PURE__ */ __name(async (file2, directory2, fallbackName, { uniq
|
|
|
35698
35742
|
}
|
|
35699
35743
|
}, "save");
|
|
35700
35744
|
|
|
35701
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35745
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/services/pictures.js
|
|
35702
35746
|
import { createHash as createHash9 } from "node:crypto";
|
|
35703
35747
|
import { lstat as lstat4, readFile } from "node:fs/promises";
|
|
35704
35748
|
import { setTimeout as sleep4 } from "node:timers/promises";
|
|
35705
35749
|
|
|
35706
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35750
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/domain/models.js
|
|
35707
35751
|
var GROUP_SETTINGS = [
|
|
35708
35752
|
"allCanPin",
|
|
35709
35753
|
"onlyAdminsAdd",
|
|
@@ -35717,7 +35761,7 @@ var ADMIN_RIGHTS = ["read", "members", "admins", "info", "pin", "link", "post",
|
|
|
35717
35761
|
var senderIsMe = /* @__PURE__ */ __name((message, account) => message.outgoing === true || message.senderId !== null && String(message.senderId) === account, "senderIsMe");
|
|
35718
35762
|
var MEDIA_KINDS = ["photo", "video", "file", "audio", "link"];
|
|
35719
35763
|
|
|
35720
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35764
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/services/pictures.js
|
|
35721
35765
|
var PICTURE_MAX_BYTES = 25 * 1024 * 1024;
|
|
35722
35766
|
var PICTURE_FLOOR = 0.25;
|
|
35723
35767
|
var PAGE3 = 50;
|
|
@@ -35758,7 +35802,7 @@ var picturesService = /* @__PURE__ */ __name((deps) => {
|
|
|
35758
35802
|
const directory2 = imageModelsDirectory(deps.env);
|
|
35759
35803
|
if (!isImageModelInstalled(model2, directory2))
|
|
35760
35804
|
throw new CliError("not_found", missingModel(model2.id), { reason: "model.not-downloaded", model: model2.id });
|
|
35761
|
-
const { openPictureEmbedder } = await import("./embedder-
|
|
35805
|
+
const { openPictureEmbedder } = await import("./embedder-ZVNBHGXC.js");
|
|
35762
35806
|
return openPictureEmbedder(model2, directory2);
|
|
35763
35807
|
}, "open");
|
|
35764
35808
|
const embedder = /* @__PURE__ */ __name(() => {
|
|
@@ -35932,7 +35976,7 @@ var withPictures = /* @__PURE__ */ __name((messages, pictures) => ({
|
|
|
35932
35976
|
}, "search")
|
|
35933
35977
|
}), "withPictures");
|
|
35934
35978
|
|
|
35935
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35979
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/services/attachments.js
|
|
35936
35980
|
var ATTACHMENT_QUERY = {
|
|
35937
35981
|
entity: "attachment",
|
|
35938
35982
|
backend: "sql",
|
|
@@ -36403,7 +36447,7 @@ var attachmentsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
36403
36447
|
}, "readPicture")
|
|
36404
36448
|
}), "attachmentsService");
|
|
36405
36449
|
|
|
36406
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36450
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/services/chat-documents.js
|
|
36407
36451
|
var chatDocumentsService = /* @__PURE__ */ __name((deps) => ({
|
|
36408
36452
|
list: /* @__PURE__ */ __name(async (chat, { limit, offset, ref }) => {
|
|
36409
36453
|
const store = await accountStore(deps);
|
|
@@ -36433,7 +36477,7 @@ var chatDocumentsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
36433
36477
|
}, "list")
|
|
36434
36478
|
}), "chatDocumentsService");
|
|
36435
36479
|
|
|
36436
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36480
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/services/retention.js
|
|
36437
36481
|
var observationDuration = /* @__PURE__ */ __name((text3, flag) => {
|
|
36438
36482
|
const match = /^(\d+(?:\.\d+)?)([smhdw])$/.exec(text3);
|
|
36439
36483
|
const units2 = { s: 1e3, m: 6e4, h: 36e5, d: 864e5, w: 6048e5 };
|
|
@@ -36520,7 +36564,7 @@ var isRetentionSelection = /* @__PURE__ */ __name((selection) => {
|
|
|
36520
36564
|
}
|
|
36521
36565
|
}, "isRetentionSelection");
|
|
36522
36566
|
|
|
36523
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36567
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/services/counters.js
|
|
36524
36568
|
var counterFields = /* @__PURE__ */ __name((text3 = "views,reactions,comments") => {
|
|
36525
36569
|
const fields2 = text3.split(",").map((one) => one.trim());
|
|
36526
36570
|
if (!fields2.length || fields2.some((one) => !COUNTER_FIELDS.includes(one)) || new Set(fields2).size !== fields2.length)
|
|
@@ -36727,7 +36771,7 @@ var countersService = /* @__PURE__ */ __name((deps) => {
|
|
|
36727
36771
|
};
|
|
36728
36772
|
}, "countersService");
|
|
36729
36773
|
|
|
36730
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36774
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/services/named-chat.js
|
|
36731
36775
|
var LEAST_USES = 3;
|
|
36732
36776
|
var SAMPLE2 = 50;
|
|
36733
36777
|
var CAPITALISED = 0.8;
|
|
@@ -36781,7 +36825,7 @@ var queryWords2 = /* @__PURE__ */ __name((query) => {
|
|
|
36781
36825
|
}, "queryWords");
|
|
36782
36826
|
var without = /* @__PURE__ */ __name((query, word) => query.replace(new RegExp(`(?<![\\p{L}\\p{N}])${word}(?![\\p{L}\\p{N}])`, "giu"), " ").replace(/\s+/gu, " ").trim(), "without");
|
|
36783
36827
|
|
|
36784
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36828
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/services/search-refresh.js
|
|
36785
36829
|
var SYNC_KEY = "messages.sync-first";
|
|
36786
36830
|
var SYNC_BOUNDS = { maxChats: 5, timeMs: 3e4, maxMessages: 500 };
|
|
36787
36831
|
var keyOf5 = /* @__PURE__ */ __name((chat) => JSON.stringify([chat.account.provider, chat.account.account, chat.chatId]), "keyOf");
|
|
@@ -36913,7 +36957,7 @@ var withRefresh = /* @__PURE__ */ __name((found, refreshed) => ({
|
|
|
36913
36957
|
...!refreshed || refreshed.complete ? {} : { coverage: { ...found.coverage, state: "stale" } }
|
|
36914
36958
|
}), "withRefresh");
|
|
36915
36959
|
|
|
36916
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36960
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/services/embeddings-search.js
|
|
36917
36961
|
var CANDIDATES = 50;
|
|
36918
36962
|
var ACROSS_CHATS = 500;
|
|
36919
36963
|
var OWN_BLOCK = 5;
|
|
@@ -37374,13 +37418,13 @@ var meanOf = /* @__PURE__ */ __name((vectors) => {
|
|
|
37374
37418
|
return mean2.map((value) => value / length);
|
|
37375
37419
|
}, "meanOf");
|
|
37376
37420
|
|
|
37377
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37421
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/services/embeddings.js
|
|
37378
37422
|
var embeddingsService = /* @__PURE__ */ __name((deps) => ({
|
|
37379
37423
|
...embeddingsMaintenance(deps),
|
|
37380
37424
|
...embeddingsSearch(deps)
|
|
37381
37425
|
}), "embeddingsService");
|
|
37382
37426
|
|
|
37383
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37427
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/services/folders.js
|
|
37384
37428
|
var foldersService = /* @__PURE__ */ __name((deps) => {
|
|
37385
37429
|
const online = /* @__PURE__ */ __name(async (command) => {
|
|
37386
37430
|
if (deps.offline)
|
|
@@ -37521,7 +37565,7 @@ var foldersService = /* @__PURE__ */ __name((deps) => {
|
|
|
37521
37565
|
};
|
|
37522
37566
|
}, "foldersService");
|
|
37523
37567
|
|
|
37524
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37568
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/services/mentions.js
|
|
37525
37569
|
var REVIEW_COUNT = 500;
|
|
37526
37570
|
var mentionsService = /* @__PURE__ */ __name((deps) => {
|
|
37527
37571
|
const located = /* @__PURE__ */ __name(async () => {
|
|
@@ -37600,7 +37644,7 @@ var mentionsService = /* @__PURE__ */ __name((deps) => {
|
|
|
37600
37644
|
};
|
|
37601
37645
|
}, "mentionsService");
|
|
37602
37646
|
|
|
37603
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37647
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/domain/formatting.js
|
|
37604
37648
|
var invalid5 = /* @__PURE__ */ __name(() => new CliError("validation_error", "the messenger formatter returned invalid text spans"), "invalid");
|
|
37605
37649
|
var validateFormattedText = /* @__PURE__ */ __name((formatted2) => {
|
|
37606
37650
|
const { text: text3, spans } = formatted2;
|
|
@@ -37660,7 +37704,7 @@ var visibleFormattedText = /* @__PURE__ */ __name((formatted2) => {
|
|
|
37660
37704
|
};
|
|
37661
37705
|
}, "visibleFormattedText");
|
|
37662
37706
|
|
|
37663
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37707
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/domain/message-link.js
|
|
37664
37708
|
var fileLinks = /* @__PURE__ */ __name((attachments) => hitFiles(attachments).map(({ position, kind: kind2, name }) => ({
|
|
37665
37709
|
position,
|
|
37666
37710
|
kind: kind2,
|
|
@@ -37709,7 +37753,7 @@ var validatePermalink = /* @__PURE__ */ __name((link4) => {
|
|
|
37709
37753
|
return { url: link4.url, access: link4.access, reason: link4.reason };
|
|
37710
37754
|
}, "validatePermalink");
|
|
37711
37755
|
|
|
37712
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37756
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/domain/pin-duration.js
|
|
37713
37757
|
var spokenSeconds = /* @__PURE__ */ __name((seconds) => {
|
|
37714
37758
|
if (seconds % 86400 === 0 && seconds > 86400)
|
|
37715
37759
|
return `${seconds / 86400}d`;
|
|
@@ -37741,7 +37785,7 @@ var pinDurationOf = /* @__PURE__ */ __name((value, allowed, flag = "--expire-tim
|
|
|
37741
37785
|
return seconds;
|
|
37742
37786
|
}, "pinDurationOf");
|
|
37743
37787
|
|
|
37744
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37788
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/sends/send-as.js
|
|
37745
37789
|
var sendAsCheck = /* @__PURE__ */ __name((connection, sendAs) => {
|
|
37746
37790
|
if (sendAs === void 0) {
|
|
37747
37791
|
const saved = connection.savedSender?.bind(connection);
|
|
@@ -37766,7 +37810,7 @@ var typedSendAs = /* @__PURE__ */ __name((typed) => {
|
|
|
37766
37810
|
return sendAs;
|
|
37767
37811
|
}, "typedSendAs");
|
|
37768
37812
|
|
|
37769
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37813
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/search/total.js
|
|
37770
37814
|
var TOTAL_CAP = 1e4;
|
|
37771
37815
|
var totalOf = /* @__PURE__ */ __name((count3, shown, hasMore, exact = true) => {
|
|
37772
37816
|
const least = shown + (hasMore ? 1 : 0);
|
|
@@ -37777,7 +37821,7 @@ var totalOf = /* @__PURE__ */ __name((count3, shown, hasMore, exact = true) => {
|
|
|
37777
37821
|
return { value: count3, relation: exact ? "eq" : "gte" };
|
|
37778
37822
|
}, "totalOf");
|
|
37779
37823
|
|
|
37780
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37824
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/search/lucene/meaning-parts.js
|
|
37781
37825
|
var WORD_FIELDS = /* @__PURE__ */ new Set(["text", "exact"]);
|
|
37782
37826
|
var fieldsOfQuery = /* @__PURE__ */ __name((root, everything) => {
|
|
37783
37827
|
let narrows = false;
|
|
@@ -37806,7 +37850,7 @@ var meaningWords = /* @__PURE__ */ __name((root) => {
|
|
|
37806
37850
|
return wanted(root).join(" ").trim();
|
|
37807
37851
|
}, "meaningWords");
|
|
37808
37852
|
|
|
37809
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37853
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/services/messages-combined.js
|
|
37810
37854
|
var COMBINED_DEFAULTS = { candidateDepth: 300, rrfK: 60, rerank: "all", chatCap: 0 };
|
|
37811
37855
|
var tokensOf = /* @__PURE__ */ __name((text3) => normalize(text3).match(/[\p{L}\p{N}\p{Co}\p{M}]+/gu) ?? [], "tokensOf");
|
|
37812
37856
|
var searchCombined = /* @__PURE__ */ __name(async (store, account, request, messenger = {}, options2 = COMBINED_DEFAULTS) => {
|
|
@@ -38007,7 +38051,7 @@ var signals = /* @__PURE__ */ __name((hit, terms, corrections, execution, mode,
|
|
|
38007
38051
|
return mode === "coverage" ? coverage2 * 4 : mode === "proximity" ? proximity : mode === "phrase" ? phrase2 : coverage2 * 4 + proximity + phrase2;
|
|
38008
38052
|
}, "signals");
|
|
38009
38053
|
|
|
38010
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38054
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/services/messages-discovery.js
|
|
38011
38055
|
var MEANING_DEPTH = 100;
|
|
38012
38056
|
var RRF_K3 = 60;
|
|
38013
38057
|
var RERANK_DEPTH = 50;
|
|
@@ -38333,7 +38377,7 @@ var mixedWithReranker = /* @__PURE__ */ __name((head, scores) => {
|
|
|
38333
38377
|
})).sort((a, b) => b.mixed - a.mixed).map(({ hit }) => hit);
|
|
38334
38378
|
}, "mixedWithReranker");
|
|
38335
38379
|
|
|
38336
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38380
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/services/thread-context.js
|
|
38337
38381
|
var THREAD_BOUNDS = { maxHops: 8, maxMessages: 50, maxBytes: 65536, withinMs: 864e5 };
|
|
38338
38382
|
var bytes = /* @__PURE__ */ __name((items, links) => Buffer.byteLength(JSON.stringify({ items, links }), "utf8"), "bytes");
|
|
38339
38383
|
var threadBounds = /* @__PURE__ */ __name((options2 = {}) => {
|
|
@@ -38532,7 +38576,7 @@ var readThreadContext = /* @__PURE__ */ __name(async (store, account, chat, mess
|
|
|
38532
38576
|
return result;
|
|
38533
38577
|
}, "readThreadContext");
|
|
38534
38578
|
|
|
38535
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38579
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/services/messages-archive-search.js
|
|
38536
38580
|
var SEARCH_FILL_MS = 200;
|
|
38537
38581
|
var statsStore = /* @__PURE__ */ __name(async (store, account, request, messenger = {}) => {
|
|
38538
38582
|
const stop = Date.now() + SEARCH_FILL_MS;
|
|
@@ -38640,7 +38684,7 @@ var accountOf2 = /* @__PURE__ */ __name((hit) => {
|
|
|
38640
38684
|
}, "accountOf");
|
|
38641
38685
|
var keyOf6 = /* @__PURE__ */ __name(({ provider, account }) => `${provider}/${account}`, "keyOf");
|
|
38642
38686
|
|
|
38643
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38687
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/services/meaning-model.js
|
|
38644
38688
|
var meaningModel = /* @__PURE__ */ __name(async (store, env = process.env) => {
|
|
38645
38689
|
const chosen = chosenTextModel(env);
|
|
38646
38690
|
if (chosen.from === "chosen" || chosen.id !== DEFAULT_TEXT_MODEL)
|
|
@@ -38655,7 +38699,7 @@ var meaningModel = /* @__PURE__ */ __name(async (store, env = process.env) => {
|
|
|
38655
38699
|
return (counts.get(before) ?? 0) > (counts.get(now) ?? 0) ? previous.id : current.id;
|
|
38656
38700
|
}, "meaningModel");
|
|
38657
38701
|
|
|
38658
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38702
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/services/messages-meaning.js
|
|
38659
38703
|
var meaningText = /* @__PURE__ */ __name((question) => {
|
|
38660
38704
|
try {
|
|
38661
38705
|
const text3 = questionLookup(question) === void 0 ? question : questionText(question);
|
|
@@ -38734,7 +38778,7 @@ var meaningLane = /* @__PURE__ */ __name((deps) => async (question, accounts, sh
|
|
|
38734
38778
|
}
|
|
38735
38779
|
}, "meaningLane");
|
|
38736
38780
|
|
|
38737
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38781
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/services/messages-rerank.js
|
|
38738
38782
|
var rerankLane = /* @__PURE__ */ __name((deps) => {
|
|
38739
38783
|
const choice = deps.reranker ?? DEFAULT_RERANK_MODEL;
|
|
38740
38784
|
if (choice === "off")
|
|
@@ -38746,9 +38790,9 @@ var rerankLane = /* @__PURE__ */ __name((deps) => {
|
|
|
38746
38790
|
return { skipped: { reason: `${model.id} is not downloaded`, step: "models.download", model: model.id } };
|
|
38747
38791
|
try {
|
|
38748
38792
|
const warm = deps.embedders;
|
|
38749
|
-
const reranker = warm ? await warm.reranker(`rerank:${model.id}`, async () => (await import("./process-
|
|
38793
|
+
const reranker = warm ? await warm.reranker(`rerank:${model.id}`, async () => (await import("./process-UIE2CRFP.js")).openRerankerProcess(model, directory2, {
|
|
38750
38794
|
threads: defaultThreads()
|
|
38751
|
-
})) : await (await import("./rerank-
|
|
38795
|
+
})) : await (await import("./rerank-TE4HIS5A.js")).openReranker(model, directory2);
|
|
38752
38796
|
return {
|
|
38753
38797
|
model: model.id,
|
|
38754
38798
|
score: /* @__PURE__ */ __name((question, passages) => reranker.score(plainWords(question), passages), "score"),
|
|
@@ -38768,7 +38812,7 @@ var rerankLane = /* @__PURE__ */ __name((deps) => {
|
|
|
38768
38812
|
};
|
|
38769
38813
|
}, "rerankLane");
|
|
38770
38814
|
|
|
38771
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38815
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/search/question-period.js
|
|
38772
38816
|
var DAY7 = 864e5;
|
|
38773
38817
|
var SPAN = { start: 0, end: 0 };
|
|
38774
38818
|
var phrase = /* @__PURE__ */ __name((source) => new RegExp(`(?<![\\p{L}\\p{N}])(?:${source})(?![\\p{L}\\p{N}])`, "giu"), "phrase");
|
|
@@ -38893,17 +38937,17 @@ var questionPeriod = /* @__PURE__ */ __name((text3, now, zone) => {
|
|
|
38893
38937
|
};
|
|
38894
38938
|
}, "questionPeriod");
|
|
38895
38939
|
|
|
38896
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38940
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/services/document-pictures.js
|
|
38897
38941
|
var openPictureEmbedderFor = /* @__PURE__ */ __name(async ({ env, command } = {}) => {
|
|
38898
38942
|
const model = imageModel(DEFAULT_IMAGE_MODEL);
|
|
38899
38943
|
const directory2 = imageModelsDirectory(env);
|
|
38900
38944
|
if (!isImageModelInstalled(model, directory2))
|
|
38901
38945
|
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 });
|
|
38902
|
-
const { openPictureEmbedder } = await import("./embedder-
|
|
38946
|
+
const { openPictureEmbedder } = await import("./embedder-ZVNBHGXC.js");
|
|
38903
38947
|
return openPictureEmbedder(model, directory2);
|
|
38904
38948
|
}, "openPictureEmbedderFor");
|
|
38905
38949
|
|
|
38906
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38950
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/services/document-source.js
|
|
38907
38951
|
var documentSource = /* @__PURE__ */ __name((note, accounts, profiles, file2) => {
|
|
38908
38952
|
const metadata = note.frontMatter;
|
|
38909
38953
|
const account = accounts.find(({ id: id3 }) => String(id3) === note.folderId);
|
|
@@ -38925,7 +38969,7 @@ var documentSource = /* @__PURE__ */ __name((note, accounts, profiles, file2) =>
|
|
|
38925
38969
|
};
|
|
38926
38970
|
}, "documentSource");
|
|
38927
38971
|
|
|
38928
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38972
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/embeddings/keys.js
|
|
38929
38973
|
var endpointKeyName = /* @__PURE__ */ __name((baseUrl) => {
|
|
38930
38974
|
const host = new URL(baseUrl).host;
|
|
38931
38975
|
return ["openai", "anthropic"].includes(host) ? `endpoint:${host}` : host;
|
|
@@ -38958,7 +39002,7 @@ var embeddingKeys = /* @__PURE__ */ __name((app, env = process.env, keyring) =>
|
|
|
38958
39002
|
};
|
|
38959
39003
|
}, "embeddingKeys");
|
|
38960
39004
|
|
|
38961
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39005
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/models/openai.js
|
|
38962
39006
|
var options = strictObject({
|
|
38963
39007
|
temperature: range(0, 2),
|
|
38964
39008
|
top_p: range(0, 1),
|
|
@@ -39025,7 +39069,7 @@ var openai = {
|
|
|
39025
39069
|
}), "complete")
|
|
39026
39070
|
};
|
|
39027
39071
|
|
|
39028
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39072
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/models/index.js
|
|
39029
39073
|
var modelGateway = /* @__PURE__ */ __name((deps) => ({
|
|
39030
39074
|
complete: /* @__PURE__ */ __name(async (request) => {
|
|
39031
39075
|
if (deps.signal?.aborted)
|
|
@@ -39040,7 +39084,7 @@ var modelGateway = /* @__PURE__ */ __name((deps) => ({
|
|
|
39040
39084
|
if (!adapter && target2.provider === "openai")
|
|
39041
39085
|
adapter = openai;
|
|
39042
39086
|
if (!adapter && target2.provider === "anthropic")
|
|
39043
|
-
adapter = (await import("./anthropic-
|
|
39087
|
+
adapter = (await import("./anthropic-7NHDUCS7.js")).anthropic;
|
|
39044
39088
|
if (!adapter)
|
|
39045
39089
|
throw new CliError("validation_error", `no model adapter for ${target2.provider}`);
|
|
39046
39090
|
if (request.images !== void 0 && adapter.images !== true)
|
|
@@ -39100,7 +39144,7 @@ var modelGateway = /* @__PURE__ */ __name((deps) => ({
|
|
|
39100
39144
|
}, "complete")
|
|
39101
39145
|
}), "modelGateway");
|
|
39102
39146
|
|
|
39103
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39147
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/services/enrichment-setting.js
|
|
39104
39148
|
var SECTION2 = "enrichment";
|
|
39105
39149
|
var ENRICHMENT_PROVIDERS = ["openai", "anthropic"];
|
|
39106
39150
|
var DEFAULT_BASE_URLS = {
|
|
@@ -39175,7 +39219,7 @@ var costOf = /* @__PURE__ */ __name((usage, setting) => {
|
|
|
39175
39219
|
return price ? Math.round((usage.input * price.input + usage.output * price.output) * 1e6) / 1e6 : null;
|
|
39176
39220
|
}, "costOf");
|
|
39177
39221
|
|
|
39178
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39222
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/services/enrichment.js
|
|
39179
39223
|
var ENRICH_PER_RUN = 600;
|
|
39180
39224
|
var MAX_LINE = 400;
|
|
39181
39225
|
var line2 = pipe(unknown(), transform((value) => typeof value === "string" ? value.replace(/\s+/g, " ").trim().slice(0, MAX_LINE) : ""));
|
|
@@ -39251,7 +39295,7 @@ var enrichmentState = /* @__PURE__ */ __name(async (store, env, estimateFor, key
|
|
|
39251
39295
|
};
|
|
39252
39296
|
}, "enrichmentState");
|
|
39253
39297
|
|
|
39254
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39298
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/services/notes-title-tier.js
|
|
39255
39299
|
var plainQueryWords = /* @__PURE__ */ __name((query) => {
|
|
39256
39300
|
let root;
|
|
39257
39301
|
try {
|
|
@@ -39278,7 +39322,7 @@ var titleTiers = /* @__PURE__ */ __name((hits, words3) => {
|
|
|
39278
39322
|
return [...hits].sort((a, b) => rank(a) - rank(b));
|
|
39279
39323
|
}, "titleTiers");
|
|
39280
39324
|
|
|
39281
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39325
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/services/notes-search.js
|
|
39282
39326
|
var storeQuery = /* @__PURE__ */ __name(async (store, text3, { exact, timezone } = {}) => resolvedQuery(store, parsedQuery(text3, exact), timezone), "storeQuery");
|
|
39283
39327
|
var parsedQuery = /* @__PURE__ */ __name((text3, exact) => validateFields(parseLucene(text3, { ...SEARCH_QUERY, defaultField: exact ? "exact" : "text" })).root, "parsedQuery");
|
|
39284
39328
|
var resolvedQuery = /* @__PURE__ */ __name(async (store, root, timezone) => {
|
|
@@ -39746,7 +39790,7 @@ var searchNotesOf = /* @__PURE__ */ __name(async (store, account, text3, { accou
|
|
|
39746
39790
|
};
|
|
39747
39791
|
}, "searchNotesOf");
|
|
39748
39792
|
|
|
39749
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39793
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/services/crm-meaning.js
|
|
39750
39794
|
var embedCrmActivities = /* @__PURE__ */ __name(async (store, options2 = {}) => {
|
|
39751
39795
|
localModel(options2.model, options2.env, options2.command);
|
|
39752
39796
|
const until = stopsAt(options2.deadline);
|
|
@@ -39770,7 +39814,7 @@ var nearestCrmActivities = /* @__PURE__ */ __name(async (store, words3, { limit,
|
|
|
39770
39814
|
})).filter(({ score }) => score > floor);
|
|
39771
39815
|
}, "nearestCrmActivities");
|
|
39772
39816
|
|
|
39773
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39817
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/services/events-search.js
|
|
39774
39818
|
var MAX_EVENTS_OFFSET = 1e3;
|
|
39775
39819
|
var iso3 = /* @__PURE__ */ __name((at2) => at2 === null ? null : new Date(at2).toISOString(), "iso");
|
|
39776
39820
|
var accountIdsOf = /* @__PURE__ */ __name(async (store, accounts) => {
|
|
@@ -39888,7 +39932,7 @@ var searchEvents = /* @__PURE__ */ __name(async (store, query, { limit = 20, off
|
|
|
39888
39932
|
};
|
|
39889
39933
|
}, "searchEvents");
|
|
39890
39934
|
|
|
39891
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39935
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/services/search-all-business.js
|
|
39892
39936
|
var OWN_BUSINESS = { provider: "business", account: INTERNAL_NOTES };
|
|
39893
39937
|
var BUSINESS_WORDS_ONLY = "invoices, payments, orders, contracts, subscriptions, products and wallets are found by the words of their numbers and names only";
|
|
39894
39938
|
var placeOf = /* @__PURE__ */ __name(({ source, imported }) => source ?? (imported === void 0 ? OWN_BUSINESS : { provider: imported, account: "" }), "placeOf");
|
|
@@ -39918,7 +39962,7 @@ var searchBusiness = /* @__PURE__ */ __name(async (store, { words: words3, anyWo
|
|
|
39918
39962
|
};
|
|
39919
39963
|
}, "searchBusiness");
|
|
39920
39964
|
|
|
39921
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39965
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/services/search-all-meetings.js
|
|
39922
39966
|
var MOST_HITS_PER_MEETING = 3;
|
|
39923
39967
|
var PAGE_ROWS = 200;
|
|
39924
39968
|
var MOST_PAGES3 = 25;
|
|
@@ -40146,7 +40190,7 @@ var titleItem = /* @__PURE__ */ __name((account, meeting, query) => ({
|
|
|
40146
40190
|
foundBy: ["title"]
|
|
40147
40191
|
}), "titleItem");
|
|
40148
40192
|
|
|
40149
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40193
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/services/search-harder.js
|
|
40150
40194
|
var SECTION3 = "search_harder";
|
|
40151
40195
|
var HARDER_MODELS = {
|
|
40152
40196
|
anthropic: "claude-haiku-5-5",
|
|
@@ -40392,7 +40436,7 @@ var reorderHarder = /* @__PURE__ */ __name(async (question, hits, { laterPage, a
|
|
|
40392
40436
|
};
|
|
40393
40437
|
}, "reorderHarder");
|
|
40394
40438
|
|
|
40395
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40439
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/services/tracker-meaning.js
|
|
40396
40440
|
var nearestTracker = /* @__PURE__ */ __name(async (store, words3, { limit, accounts, env, command, embedders }) => {
|
|
40397
40441
|
const { model, directory: directory2, key } = localModel(await meaningModel(store, env), env, command);
|
|
40398
40442
|
if (!await store.tracker.embedded(key, accounts))
|
|
@@ -40402,7 +40446,7 @@ var nearestTracker = /* @__PURE__ */ __name(async (store, words3, { limit, accou
|
|
|
40402
40446
|
return (await store.tracker.nearest(key, vector, { limit, accounts })).filter(({ score }) => score > floor);
|
|
40403
40447
|
}, "nearestTracker");
|
|
40404
40448
|
|
|
40405
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40449
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/services/search-all.js
|
|
40406
40450
|
var RESOURCES_SEARCHED = [
|
|
40407
40451
|
"messages",
|
|
40408
40452
|
"mail",
|
|
@@ -41040,7 +41084,7 @@ var insidePeriodFirst = /* @__PURE__ */ __name((ordered, period) => {
|
|
|
41040
41084
|
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);
|
|
41041
41085
|
}, "insidePeriodFirst");
|
|
41042
41086
|
|
|
41043
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
41087
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/services/server-search.js
|
|
41044
41088
|
var SERVER_SEARCH_KEY = "messages.server-search";
|
|
41045
41089
|
var SERVER_BOUNDS = { timeMs: 5e3, perCall: 100, maxCalls: 3, textBytes: 262144 };
|
|
41046
41090
|
var DEFAULT_BACKEND = "both";
|
|
@@ -41239,7 +41283,7 @@ var searchServer = /* @__PURE__ */ __name(async (deps, request) => {
|
|
|
41239
41283
|
return { report, sources };
|
|
41240
41284
|
}, "searchServer");
|
|
41241
41285
|
|
|
41242
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
41286
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/services/messages.js
|
|
41243
41287
|
var DELETE_AT_ONCE = 10;
|
|
41244
41288
|
var atOnce = /* @__PURE__ */ __name((ids) => {
|
|
41245
41289
|
if (ids.length > DELETE_AT_ONCE)
|
|
@@ -41739,7 +41783,7 @@ var checkMediaOptions = /* @__PURE__ */ __name((messenger, asked, attachments) =
|
|
|
41739
41783
|
throw new CliError("validation_error", `${MEDIA_FLAGS[first2]} needs a --photo or --file`);
|
|
41740
41784
|
}, "checkMediaOptions");
|
|
41741
41785
|
|
|
41742
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
41786
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/domain/channel-tags.js
|
|
41743
41787
|
var CHANNEL_TAG_RULES_VERSION = "keywords-v1";
|
|
41744
41788
|
var RULES2 = {
|
|
41745
41789
|
ai: [/\b(ai|gpt|llm|machine learning|artificial intelligence)\b/iu, /нейросет|искусственн/iu],
|
|
@@ -41754,7 +41798,7 @@ var classifyChannel = /* @__PURE__ */ __name((metadata) => Object.entries(RULES2
|
|
|
41754
41798
|
return fields2.length ? [{ tag, score: fields2.length / 3, fields: fields2 }] : [];
|
|
41755
41799
|
}), "classifyChannel");
|
|
41756
41800
|
|
|
41757
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
41801
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/services/metadata.js
|
|
41758
41802
|
var metadataService = /* @__PURE__ */ __name((deps) => {
|
|
41759
41803
|
const held = /* @__PURE__ */ __name(async (reference, { includeLeft = false } = {}) => {
|
|
41760
41804
|
const store = await deps.store();
|
|
@@ -41840,7 +41884,7 @@ var metadataService = /* @__PURE__ */ __name((deps) => {
|
|
|
41840
41884
|
};
|
|
41841
41885
|
}, "metadataService");
|
|
41842
41886
|
|
|
41843
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
41887
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/moderation/check.js
|
|
41844
41888
|
var INVITE = /max\.ru\/join\/|(t|telegram)\.me\/(\+|joinchat\/)|tg:\/\/join/i;
|
|
41845
41889
|
var LINK2 = /https?:\/\/\S+/i;
|
|
41846
41890
|
var STRENGTH = { report: 0, delete: 1, remove: 2 };
|
|
@@ -42028,7 +42072,7 @@ var nextPoint = /* @__PURE__ */ __name((rows, found) => {
|
|
|
42028
42072
|
}, "nextPoint");
|
|
42029
42073
|
var someUndone = /* @__PURE__ */ __name((rows) => rows.some(undone), "someUndone");
|
|
42030
42074
|
|
|
42031
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
42075
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/moderation/rules.js
|
|
42032
42076
|
import { existsSync as existsSync2, readdirSync, readFileSync as readFileSync9 } from "node:fs";
|
|
42033
42077
|
import { join as join18 } from "node:path";
|
|
42034
42078
|
var RULE_ACTIONS = ["report", "delete", "remove"];
|
|
@@ -42180,7 +42224,7 @@ var assign = /* @__PURE__ */ __name((rules, key, value) => {
|
|
|
42180
42224
|
return { ...rules, [head]: { ...rules[head], [tail]: value } };
|
|
42181
42225
|
}, "assign");
|
|
42182
42226
|
|
|
42183
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
42227
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/moderation/run.js
|
|
42184
42228
|
var FIRST_LOOK_MS = 24 * 36e5;
|
|
42185
42229
|
var moderateWith = /* @__PURE__ */ __name(async (run2) => {
|
|
42186
42230
|
const { chatId, title, rules, point, since, dryRun } = run2;
|
|
@@ -42217,7 +42261,7 @@ var moderateWith = /* @__PURE__ */ __name(async (run2) => {
|
|
|
42217
42261
|
return { chatId, rows, notes };
|
|
42218
42262
|
}, "moderateWith");
|
|
42219
42263
|
|
|
42220
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
42264
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/services/moderation.js
|
|
42221
42265
|
var moderationService = /* @__PURE__ */ __name((deps) => {
|
|
42222
42266
|
const file2 = /* @__PURE__ */ __name(() => {
|
|
42223
42267
|
const env = deps.env ?? process.env;
|
|
@@ -42302,7 +42346,7 @@ var moderatorOf = /* @__PURE__ */ __name((adapter, deps) => ({
|
|
|
42302
42346
|
}, "removePerson")
|
|
42303
42347
|
}), "moderatorOf");
|
|
42304
42348
|
|
|
42305
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
42349
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/services/private-people.js
|
|
42306
42350
|
var noteItem = /* @__PURE__ */ __name((provider, note) => ({
|
|
42307
42351
|
id: note.id,
|
|
42308
42352
|
contact: formatReference({ type: "contact", provider, id: note.personId }),
|
|
@@ -42346,7 +42390,7 @@ var privatePeopleService = /* @__PURE__ */ __name((deps) => {
|
|
|
42346
42390
|
};
|
|
42347
42391
|
}, "privatePeopleService");
|
|
42348
42392
|
|
|
42349
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
42393
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/services/rankings.js
|
|
42350
42394
|
var empty = /* @__PURE__ */ __name(() => ({
|
|
42351
42395
|
total: 0,
|
|
42352
42396
|
population: 0,
|
|
@@ -42602,7 +42646,7 @@ var rankingsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
42602
42646
|
}, "evidence")
|
|
42603
42647
|
}), "rankingsService");
|
|
42604
42648
|
|
|
42605
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
42649
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/services/reply-stats.js
|
|
42606
42650
|
var FIELDS2 = ["date", "chat", "kind", "muted"];
|
|
42607
42651
|
var WAITING_TAIL = 100;
|
|
42608
42652
|
var plainOnly = /* @__PURE__ */ __name((text3, command) => {
|
|
@@ -42736,7 +42780,7 @@ var replyStatsService = /* @__PURE__ */ __name((deps) => {
|
|
|
42736
42780
|
};
|
|
42737
42781
|
}, "replyStatsService");
|
|
42738
42782
|
|
|
42739
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
42783
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/services/searches.js
|
|
42740
42784
|
var savedSearchItem = /* @__PURE__ */ __name((one) => ({
|
|
42741
42785
|
id: one.id,
|
|
42742
42786
|
name: one.name,
|
|
@@ -42862,7 +42906,7 @@ var searchesService = /* @__PURE__ */ __name((deps) => {
|
|
|
42862
42906
|
};
|
|
42863
42907
|
}, "searchesService");
|
|
42864
42908
|
|
|
42865
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
42909
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/services/tags.js
|
|
42866
42910
|
var TAGGING_QUERY = {
|
|
42867
42911
|
entity: "tagging",
|
|
42868
42912
|
backend: "sql",
|
|
@@ -42946,7 +42990,7 @@ var tagsService = /* @__PURE__ */ __name((deps) => {
|
|
|
42946
42990
|
};
|
|
42947
42991
|
}, "tagsService");
|
|
42948
42992
|
|
|
42949
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
42993
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/services/topics.js
|
|
42950
42994
|
var actionOf = /* @__PURE__ */ __name(({ title, closed, pinned, hidden, icon }) => {
|
|
42951
42995
|
const set2 = [closed, pinned, hidden].filter((one) => one !== void 0).length;
|
|
42952
42996
|
if (title !== void 0 || icon !== void 0 || set2 !== 1)
|
|
@@ -43145,7 +43189,7 @@ var topicsService = /* @__PURE__ */ __name((deps) => {
|
|
|
43145
43189
|
};
|
|
43146
43190
|
}, "topicsService");
|
|
43147
43191
|
|
|
43148
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
43192
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/services/evidence.js
|
|
43149
43193
|
import { createHash as createHash11, randomUUID as randomUUID6 } from "node:crypto";
|
|
43150
43194
|
var hash2 = /* @__PURE__ */ __name((value) => createHash11("sha256").update(JSON.stringify(value)).digest("hex"), "hash");
|
|
43151
43195
|
var positive2 = /* @__PURE__ */ __name((value, name, minimum = 1) => {
|
|
@@ -43219,7 +43263,7 @@ var prepareEvidencePacket = /* @__PURE__ */ __name(({ kind: kind2, source, page,
|
|
|
43219
43263
|
return { ...content, id: randomUUID6(), fingerprint: hash2(content) };
|
|
43220
43264
|
}, "prepareEvidencePacket");
|
|
43221
43265
|
|
|
43222
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
43266
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/services/evidence-read.js
|
|
43223
43267
|
var readEvidencePacket = /* @__PURE__ */ __name(async (store, account, { chat, limit, before }, messenger = {}) => {
|
|
43224
43268
|
if (!Number.isSafeInteger(limit) || limit < 1 || limit > 100)
|
|
43225
43269
|
throw new CliError("validation_error", "evidence message limit must be an integer from 1 to 100");
|
|
@@ -43239,7 +43283,7 @@ var readEvidencePacket = /* @__PURE__ */ __name(async (store, account, { chat, l
|
|
|
43239
43283
|
return { ...packet, nextBeforeId: older && last ? last.id : null };
|
|
43240
43284
|
}, "readEvidencePacket");
|
|
43241
43285
|
|
|
43242
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
43286
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/services/meeting-project-discovery.js
|
|
43243
43287
|
var scopeKeys = [
|
|
43244
43288
|
"accountId",
|
|
43245
43289
|
"meetingId",
|
|
@@ -43261,7 +43305,7 @@ var optionKeys = /* @__PURE__ */ new Set([
|
|
|
43261
43305
|
"maxVocabularyReadBytes"
|
|
43262
43306
|
]);
|
|
43263
43307
|
|
|
43264
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
43308
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/services/text-model-choice.js
|
|
43265
43309
|
import { createHash as createHash12 } from "node:crypto";
|
|
43266
43310
|
import { existsSync as existsSync3 } from "node:fs";
|
|
43267
43311
|
var useTextModel = /* @__PURE__ */ __name(async (id3, { env, command }) => {
|
|
@@ -43392,14 +43436,14 @@ var addCustomTextModel = /* @__PURE__ */ __name(async (id3, payload, { env, fetc
|
|
|
43392
43436
|
return { ...checked2.output, custom: true };
|
|
43393
43437
|
}, "addCustomTextModel");
|
|
43394
43438
|
|
|
43395
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
43439
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/calendar/sync.js
|
|
43396
43440
|
var DAY8 = 864e5;
|
|
43397
43441
|
var SLOTS_EVERY = 7 * DAY8;
|
|
43398
43442
|
|
|
43399
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
43443
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/calendar/feeds.js
|
|
43400
43444
|
var FEED_LIMITS = { maxBytes: 10 * 1024 * 1024, timeoutMs: 3e4, redirects: 5 };
|
|
43401
43445
|
|
|
43402
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
43446
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/calendar/reads.js
|
|
43403
43447
|
var LIST = "events list";
|
|
43404
43448
|
var EVENT_TYPES = [
|
|
43405
43449
|
"default",
|
|
@@ -43458,7 +43502,7 @@ var EVENTS_QUERY = {
|
|
|
43458
43502
|
} : field)
|
|
43459
43503
|
};
|
|
43460
43504
|
|
|
43461
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
43505
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/calendar/writer.js
|
|
43462
43506
|
var EVENTS_NOTIFY_KEY = "events.notify";
|
|
43463
43507
|
var EVENTS_DELETE_SERIES_KEY = "events.delete.series";
|
|
43464
43508
|
var EVENTS_REMIND_HOOK_KEY = "events.remind.hook";
|
|
@@ -43476,7 +43520,7 @@ var CALENDAR_WRITE_DEFAULTS = {
|
|
|
43476
43520
|
[EVENTS_REMIND_HOOK_KEY]: "deny"
|
|
43477
43521
|
};
|
|
43478
43522
|
|
|
43479
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
43523
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/context/communication-selection.js
|
|
43480
43524
|
var communicationFields = {
|
|
43481
43525
|
sources: pipe(array(strictObject({
|
|
43482
43526
|
id: pipe(string(), regex(/^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$/)),
|
|
@@ -43508,7 +43552,7 @@ var communicationRequest = /* @__PURE__ */ __name((value, preparationAfter) => {
|
|
|
43508
43552
|
return { ...input, after, before };
|
|
43509
43553
|
}, "communicationRequest");
|
|
43510
43554
|
|
|
43511
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
43555
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/services/meeting-preparation-validation.js
|
|
43512
43556
|
var MEETING_PREPARATION_LIMITS = {
|
|
43513
43557
|
meetings: { min: 1, max: 20, default: 5 },
|
|
43514
43558
|
cues: { min: 1, max: 100, default: 10 },
|
|
@@ -43581,7 +43625,7 @@ var validateMeetingPreparationRequest = /* @__PURE__ */ __name((externalId, orig
|
|
|
43581
43625
|
};
|
|
43582
43626
|
}, "validateMeetingPreparationRequest");
|
|
43583
43627
|
|
|
43584
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
43628
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/services/meeting-communications-selection.js
|
|
43585
43629
|
var validatePreparationCommunications = /* @__PURE__ */ __name((section, request, after) => {
|
|
43586
43630
|
const fail2 = /* @__PURE__ */ __name(() => {
|
|
43587
43631
|
throw new CliError("invalid_response", "Preparation communications returned another selection or invalid evidence");
|
|
@@ -43629,7 +43673,7 @@ var validatePreparationCommunications = /* @__PURE__ */ __name((section, request
|
|
|
43629
43673
|
}
|
|
43630
43674
|
}, "validatePreparationCommunications");
|
|
43631
43675
|
|
|
43632
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
43676
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/services/package-upgrade.js
|
|
43633
43677
|
var upgradePackage = /* @__PURE__ */ __name(async ({ current, command, packageName, check: check2 }, ports) => {
|
|
43634
43678
|
const installer = ports.installer();
|
|
43635
43679
|
const argv = updateCommand(installer, packageName);
|
|
@@ -43694,7 +43738,7 @@ var dayAfter = /* @__PURE__ */ __name((published) => {
|
|
|
43694
43738
|
return Number.isNaN(time2) ? null : new Date(time2 + 24 * 60 * 60 * 1e3).toISOString();
|
|
43695
43739
|
}, "dayAfter");
|
|
43696
43740
|
|
|
43697
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
43741
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/services/index.js
|
|
43698
43742
|
var servicesFor = /* @__PURE__ */ __name((deps) => {
|
|
43699
43743
|
const pictures = picturesService(deps);
|
|
43700
43744
|
const base = {
|