@wirecat/attio-cli 0.4.0 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +21 -0
- package/dist/bin/attio.js +2 -2
- package/dist/bundle/agent-EIWQ37E3.js +37 -0
- package/dist/bundle/{all-profiles-KCZGH7JK.js → all-profiles-ZM2ULOTA.js} +6 -6
- package/dist/bundle/{anthropic-4HCGQIHA.js → anthropic-CIJQLJ7U.js} +2 -2
- package/dist/bundle/{app-server-VSYG36ER.js → app-server-56GKE6BE.js} +53 -53
- package/dist/bundle/attio.js +2 -2
- package/dist/bundle/{bun-CZK3ZADI.js → bun-3D6UYEKL.js} +2 -2
- package/dist/bundle/{bun-sqlite-CM5FSNH3.js → bun-sqlite-TWXFZF7R.js} +3 -3
- package/dist/bundle/{chunk-32BIODCI.js → chunk-33HYI76J.js} +2 -2
- package/dist/bundle/{chunk-YFAATLLR.js → chunk-46U5WHCF.js} +7 -7
- package/dist/bundle/{chunk-YC3F3RCL.js → chunk-4KLCWI57.js} +2 -2
- package/dist/bundle/{chunk-A3Y5GPG3.js → chunk-4V6ARVEH.js} +152 -151
- package/dist/bundle/{chunk-JLFXUXSQ.js → chunk-6C6RHNUB.js} +4 -4
- package/dist/bundle/{chunk-ISNUT525.js → chunk-6ITXXXQN.js} +2 -2
- package/dist/bundle/{chunk-HYVMLDYF.js → chunk-6ZEG7MR3.js} +1 -1
- package/dist/bundle/{chunk-WPOOZGQ7.js → chunk-7JUZNTYO.js} +9 -9
- package/dist/bundle/{chunk-MWFJX3K6.js → chunk-7PXDDBH7.js} +1 -1
- package/dist/bundle/{chunk-5ZNVTVDU.js → chunk-AXJNIMPZ.js} +1 -1
- package/dist/bundle/{chunk-KYAJ5AVG.js → chunk-BMDM6I5G.js} +4 -4
- package/dist/bundle/{chunk-MSASR6MQ.js → chunk-CQZREDFS.js} +3 -3
- package/dist/bundle/{chunk-RGFBK5DJ.js → chunk-CRK3LRCL.js} +10 -10
- package/dist/bundle/{chunk-EAWMBNAO.js → chunk-CVHEO4HS.js} +882 -541
- package/dist/bundle/{chunk-6WVUBU7T.js → chunk-DBAZ5TBW.js} +5 -5
- package/dist/bundle/{chunk-DJCGJRAD.js → chunk-DYLNV6GY.js} +11 -11
- package/dist/bundle/{chunk-HTQ5HUXV.js → chunk-EPLC6LQP.js} +51 -51
- package/dist/bundle/{chunk-AV7762PN.js → chunk-EPWOY5UJ.js} +1 -1
- package/dist/bundle/{chunk-EGZ6N56Z.js → chunk-EXWFB2XY.js} +1 -1
- package/dist/bundle/{chunk-Y4AOEDGO.js → chunk-GSA2HYGF.js} +6 -6
- package/dist/bundle/{chunk-4E4IGABE.js → chunk-HMORLIGS.js} +1 -1
- package/dist/bundle/{chunk-OKK2CBVW.js → chunk-HNH7EVWO.js} +12 -12
- package/dist/bundle/{chunk-PTTSHIYR.js → chunk-HTTGJI6G.js} +23 -23
- package/dist/bundle/{chunk-23POG3B3.js → chunk-HU6HKKIH.js} +2 -2
- package/dist/bundle/{chunk-ZOVX5VVZ.js → chunk-HXHQBYLN.js} +1 -1
- package/dist/bundle/{chunk-TU4U3YEM.js → chunk-JQ5NTPT5.js} +1 -1
- package/dist/bundle/{chunk-CYF6ECG7.js → chunk-K45K3AJU.js} +1 -1
- package/dist/bundle/{chunk-WHA23FJC.js → chunk-KNJ5W5ZZ.js} +30 -23
- package/dist/bundle/{chunk-FNIYIYDK.js → chunk-KYGX7XUZ.js} +16 -16
- package/dist/bundle/{chunk-CSKKZTWI.js → chunk-LTMLSN6W.js} +11 -11
- package/dist/bundle/{chunk-7XSJ6LTE.js → chunk-M7UG4UBJ.js} +2 -2
- package/dist/bundle/{chunk-52GTOWNB.js → chunk-MH55F2Z2.js} +5 -5
- package/dist/bundle/{chunk-YBCGG6JY.js → chunk-MOTQBDFB.js} +2 -2
- package/dist/bundle/{chunk-N64IK3XS.js → chunk-MVSBV6U7.js} +1 -1
- package/dist/bundle/{chunk-C4DJ4OTP.js → chunk-NJSWOZED.js} +6 -6
- package/dist/bundle/{chunk-AJT4BERP.js → chunk-O3GNIUUI.js} +2 -2
- package/dist/bundle/{chunk-X3PQFXYL.js → chunk-OE3J3P24.js} +2 -2
- package/dist/bundle/{chunk-LTGWE5L6.js → chunk-OI4WM2AM.js} +1 -1
- package/dist/bundle/{chunk-5WZBGDPL.js → chunk-OJ7P7IK5.js} +6 -6
- package/dist/bundle/{chunk-55CDR7VJ.js → chunk-ORMKVY7L.js} +54 -54
- package/dist/bundle/{chunk-WF7TKMZ7.js → chunk-Q5VVEFXR.js} +7 -7
- package/dist/bundle/{chunk-UMJ7OKJD.js → chunk-QA5WIEW5.js} +5 -5
- package/dist/bundle/{chunk-JAUTKJYJ.js → chunk-QD7INIE3.js} +1 -1
- package/dist/bundle/{chunk-NMKAEONQ.js → chunk-QDU4MLUN.js} +5 -5
- package/dist/bundle/{chunk-4BQDHDZA.js → chunk-QWBCCZNQ.js} +2 -2
- package/dist/bundle/{chunk-KK3IESFZ.js → chunk-R5TIPW5A.js} +9 -9
- package/dist/bundle/{chunk-MOUF6JHB.js → chunk-SQOHCWB2.js} +1 -1
- package/dist/bundle/{chunk-2ILCSLXY.js → chunk-T4SPEBOI.js} +7 -7
- package/dist/bundle/{chunk-EO3X3QWY.js → chunk-TBRD6I2W.js} +2 -2
- package/dist/bundle/{chunk-ZGFRTWSW.js → chunk-U6W3NW74.js} +32 -32
- package/dist/bundle/{chunk-UZW73WTM.js → chunk-V6GEPZWY.js} +32 -32
- package/dist/bundle/{chunk-RMOSNURU.js → chunk-VE6L6TDH.js} +2 -2
- package/dist/bundle/{chunk-2SVDLRLQ.js → chunk-VTAZ4LL7.js} +12 -12
- package/dist/bundle/{chunk-CYAWDFBI.js → chunk-WQKMBZRF.js} +4 -4
- package/dist/bundle/{chunk-5R255HLF.js → chunk-WZAQ7U2F.js} +1 -1
- package/dist/bundle/{chunk-U3Y2AC2K.js → chunk-X5TBQOYI.js} +2 -2
- package/dist/bundle/{chunk-TSL3PZAZ.js → chunk-XBMJAFXC.js} +1 -1
- package/dist/bundle/{chunk-NIV4S25C.js → chunk-XJ7LTHXM.js} +421 -351
- package/dist/bundle/{chunk-PO6DVZUY.js → chunk-Y7SRFHYL.js} +2 -2
- package/dist/bundle/{chunk-SQMN3CME.js → chunk-YITSNC3D.js} +3 -3
- package/dist/bundle/{chunk-XSHMRXOW.js → chunk-YSA36HJM.js} +1 -1
- package/dist/bundle/{chunk-4LEB7SUS.js → chunk-ZLCTHTOK.js} +1 -1
- package/dist/bundle/{chunk-YGPZCVBI.js → chunk-ZNQ3NNAB.js} +5 -5
- package/dist/bundle/{command-contract-JZGX4E3W.js → command-contract-SLVMJ557.js} +15 -15
- package/dist/bundle/{command-server-entry-FOFPJGYW.js → command-server-entry-MIZABAB2.js} +21 -21
- package/dist/bundle/{decode-2W6JJN3B.js → decode-3K7AMIIK.js} +2 -2
- package/dist/bundle/{echarts-R4BLGOSP.js → echarts-HQ3M6PY5.js} +2 -2
- package/dist/bundle/{embed-DIFO7RH4.js → embed-MYNNE2KU.js} +3 -3
- package/dist/bundle/{embedder-S5FKW4XZ.js → embedder-MZM52STR.js} +6 -6
- package/dist/bundle/{first-run-RNGP4IWU.js → first-run-FNH4L2MF.js} +6 -6
- package/dist/bundle/first-screen-TJE6JEAN.js +37 -0
- package/dist/bundle/{instructions-F22KNH4O.js → instructions-JCYBL6AU.js} +1 -1
- package/dist/bundle/{meeting-combined-HX3LC5FD.js → meeting-combined-FIPUL6DF.js} +10 -10
- package/dist/bundle/{meeting-model-P34GVZRK.js → meeting-model-36UKUPUK.js} +8 -8
- package/dist/bundle/{meeting-semantic-RC25X3UB.js → meeting-semantic-NX6AQT6U.js} +2 -2
- package/dist/bundle/{node-SF2NI2UT.js → node-US26HP3Q.js} +2 -2
- package/dist/bundle/{node-sqlite-WH3MF6PF.js → node-sqlite-7SJYGLZB.js} +4 -4
- package/dist/bundle/{oauth-EWHT3YJ4.js → oauth-GMDEZTLF.js} +4 -4
- package/dist/bundle/{open-LHEJSQCI.js → open-WJINQYGM.js} +2 -2
- package/dist/bundle/{openai-DDXBF7KV.js → openai-DNLCKN6O.js} +12 -12
- package/dist/bundle/{process-TEQQZ3C5.js → process-2TFFZAX6.js} +1 -1
- package/dist/bundle/{program-EUFRFWAE.js → program-Y3GX3KE4.js} +480 -368
- package/dist/bundle/{prompt-6OEYPNAI.js → prompt-OEPGHWMQ.js} +2 -2
- package/dist/bundle/{recognize-5CRXQMAQ.js → recognize-7C4PENI6.js} +1 -1
- package/dist/bundle/{remote-UZUYKGYQ.js → remote-HNRRZA6M.js} +6 -6
- package/dist/bundle/{rerank-IQ6GPSJ6.js → rerank-JNDOOOIZ.js} +4 -4
- package/dist/bundle/{serve-63YMTENV.js → serve-ATTJW7LZ.js} +6 -6
- package/dist/bundle/server-IMVPAMM6.js +79 -0
- package/dist/bundle/{server-WQUM4JX4.js → server-OHKISLVN.js} +45 -45
- package/dist/bundle/{sqlite-runtime-UO32UZHC.js → sqlite-runtime-TEZ56D53.js} +3 -3
- package/dist/bundle/{state-XSRJFYSU.js → state-SMWKWKIB.js} +3 -3
- package/dist/bundle/{store-A2J7I2NU.js → store-6SKOO4IN.js} +14 -14
- package/dist/bundle/{store-QB5FEGT4.js → store-YCWZZ3LG.js} +16 -16
- package/dist/bundle/store-maintenance-command-I5BNK4RE.js +66 -0
- package/dist/bundle/surface-NXFOGLLG.js +65 -0
- package/dist/generated/wirecat-config.d.ts.map +1 -1
- package/dist/generated/wirecat-config.js +1 -0
- package/dist/generated/wirecat-config.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +2 -2
- package/skills/attio-cli/SKILL.md +1 -1
- package/dist/bundle/agent-63P427ER.js +0 -37
- package/dist/bundle/first-screen-K6YMX3G5.js +0 -37
- package/dist/bundle/server-LKXXSTXK.js +0 -79
- package/dist/bundle/store-maintenance-command-TOLBEUMR.js +0 -66
- package/dist/bundle/surface-NURI2TAG.js +0 -65
|
@@ -8,10 +8,10 @@ import {
|
|
|
8
8
|
sameOrdinaryFile,
|
|
9
9
|
syncDirectory,
|
|
10
10
|
writeFileAtomic
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-VTAZ4LL7.js";
|
|
12
12
|
import {
|
|
13
13
|
WIRECAT_TOOLS
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-HXHQBYLN.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-HNH7EVWO.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-X5TBQOYI.js";
|
|
38
38
|
import {
|
|
39
39
|
anyOfTerms,
|
|
40
40
|
isFunctionWord,
|
|
@@ -45,7 +45,7 @@ import {
|
|
|
45
45
|
questionText,
|
|
46
46
|
resolveMeetingSelection,
|
|
47
47
|
words
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-7JUZNTYO.js";
|
|
49
49
|
import {
|
|
50
50
|
AUTHORITY_KEY,
|
|
51
51
|
CEILING_KEY,
|
|
@@ -70,6 +70,7 @@ import {
|
|
|
70
70
|
baseContext,
|
|
71
71
|
codeOf,
|
|
72
72
|
conversation,
|
|
73
|
+
deadlineMargin,
|
|
73
74
|
envName,
|
|
74
75
|
environmentOf,
|
|
75
76
|
guardedWrite,
|
|
@@ -100,11 +101,11 @@ import {
|
|
|
100
101
|
stops,
|
|
101
102
|
tagging,
|
|
102
103
|
task
|
|
103
|
-
} from "./chunk-
|
|
104
|
+
} from "./chunk-4V6ARVEH.js";
|
|
104
105
|
import {
|
|
105
106
|
providerErrorKey,
|
|
106
107
|
secretInput
|
|
107
|
-
} from "./chunk-
|
|
108
|
+
} from "./chunk-OJ7P7IK5.js";
|
|
108
109
|
import {
|
|
109
110
|
CustomTextModelShape,
|
|
110
111
|
DEFAULT_RERANK_MODEL,
|
|
@@ -118,7 +119,7 @@ import {
|
|
|
118
119
|
textModels,
|
|
119
120
|
vectorModelKey,
|
|
120
121
|
writeTextModelsSection
|
|
121
|
-
} from "./chunk-
|
|
122
|
+
} from "./chunk-BMDM6I5G.js";
|
|
122
123
|
import {
|
|
123
124
|
AGENDA_COLUMNS,
|
|
124
125
|
BUSINESS_FIND_MAX,
|
|
@@ -188,22 +189,23 @@ import {
|
|
|
188
189
|
rankingContextRange,
|
|
189
190
|
rankingOptions,
|
|
190
191
|
rankingQuestion,
|
|
192
|
+
respelled,
|
|
191
193
|
seenBy,
|
|
192
194
|
threadConversation,
|
|
193
195
|
trackerBodyOf,
|
|
194
196
|
trackerTitleOf,
|
|
195
197
|
withoutField
|
|
196
|
-
} from "./chunk-
|
|
198
|
+
} from "./chunk-CVHEO4HS.js";
|
|
197
199
|
import {
|
|
198
200
|
DEFAULT_STEMMERS,
|
|
199
201
|
createStemmer,
|
|
200
202
|
cutsDeep
|
|
201
|
-
} from "./chunk-
|
|
203
|
+
} from "./chunk-T4SPEBOI.js";
|
|
202
204
|
import {
|
|
203
205
|
MINUTE,
|
|
204
206
|
YEAR,
|
|
205
207
|
aheadOf
|
|
206
|
-
} from "./chunk-
|
|
208
|
+
} from "./chunk-M7UG4UBJ.js";
|
|
207
209
|
import {
|
|
208
210
|
FIELD_VERSION,
|
|
209
211
|
MESSAGE_PARSING,
|
|
@@ -220,11 +222,11 @@ import {
|
|
|
220
222
|
searchError,
|
|
221
223
|
validateAst,
|
|
222
224
|
validateFields
|
|
223
|
-
} from "./chunk-
|
|
225
|
+
} from "./chunk-NJSWOZED.js";
|
|
224
226
|
import {
|
|
225
227
|
fold,
|
|
226
228
|
normalize
|
|
227
|
-
} from "./chunk-
|
|
229
|
+
} from "./chunk-JQ5NTPT5.js";
|
|
228
230
|
import {
|
|
229
231
|
CRM_KINDS,
|
|
230
232
|
DEAL_KINDS,
|
|
@@ -276,14 +278,14 @@ import {
|
|
|
276
278
|
sourceOf3 as sourceOf2,
|
|
277
279
|
typedCommand,
|
|
278
280
|
withAttempt
|
|
279
|
-
} from "./chunk-
|
|
281
|
+
} from "./chunk-V6GEPZWY.js";
|
|
280
282
|
import {
|
|
281
283
|
isCliFailure,
|
|
282
284
|
sqliteCode
|
|
283
|
-
} from "./chunk-
|
|
285
|
+
} from "./chunk-TBRD6I2W.js";
|
|
284
286
|
import {
|
|
285
287
|
normalizeTag
|
|
286
|
-
} from "./chunk-
|
|
288
|
+
} from "./chunk-XBMJAFXC.js";
|
|
287
289
|
import {
|
|
288
290
|
OPERATORS_BY_TYPE,
|
|
289
291
|
READ_BUDGET_EXCEEDED,
|
|
@@ -307,12 +309,12 @@ import {
|
|
|
307
309
|
validateQuery,
|
|
308
310
|
walkQuery,
|
|
309
311
|
windowOf
|
|
310
|
-
} from "./chunk-
|
|
312
|
+
} from "./chunk-EPLC6LQP.js";
|
|
311
313
|
import {
|
|
312
314
|
localOnly,
|
|
313
315
|
refuseOffComputer,
|
|
314
316
|
remoteKey
|
|
315
|
-
} from "./chunk-
|
|
317
|
+
} from "./chunk-46U5WHCF.js";
|
|
316
318
|
import {
|
|
317
319
|
PLAIN_HTTP_REFUSED,
|
|
318
320
|
endpoint,
|
|
@@ -323,14 +325,14 @@ import {
|
|
|
323
325
|
providerWaitMs,
|
|
324
326
|
readJsonResponse,
|
|
325
327
|
statusToCode
|
|
326
|
-
} from "./chunk-
|
|
328
|
+
} from "./chunk-MVSBV6U7.js";
|
|
327
329
|
import {
|
|
328
330
|
DEFAULT_TASK_CATEGORIES,
|
|
329
331
|
FALLBACK_CATEGORY,
|
|
330
332
|
readSharedSection,
|
|
331
333
|
sharedConfigPath,
|
|
332
334
|
writeSharedSection
|
|
333
|
-
} from "./chunk-
|
|
335
|
+
} from "./chunk-DBAZ5TBW.js";
|
|
334
336
|
import {
|
|
335
337
|
Unzip,
|
|
336
338
|
UnzipInflate,
|
|
@@ -341,15 +343,15 @@ import {
|
|
|
341
343
|
placedText,
|
|
342
344
|
runEmbedders,
|
|
343
345
|
textModelsDirectory
|
|
344
|
-
} from "./chunk-
|
|
346
|
+
} from "./chunk-ZNQ3NNAB.js";
|
|
345
347
|
import {
|
|
346
348
|
installFiles,
|
|
347
349
|
megabytes
|
|
348
|
-
} from "./chunk-
|
|
350
|
+
} from "./chunk-CQZREDFS.js";
|
|
349
351
|
import {
|
|
350
352
|
storePath,
|
|
351
353
|
wirecatDirectory
|
|
352
|
-
} from "./chunk-
|
|
354
|
+
} from "./chunk-EXWFB2XY.js";
|
|
353
355
|
import {
|
|
354
356
|
Credentials,
|
|
355
357
|
logRecordOf,
|
|
@@ -17015,10 +17017,10 @@ var require_lib3 = __commonJS({
|
|
|
17015
17017
|
}
|
|
17016
17018
|
});
|
|
17017
17019
|
|
|
17018
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17020
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/ports/traits.js
|
|
17019
17021
|
var syncsOneChat = /* @__PURE__ */ __name((messenger) => messenger.history !== "store" || messenger.historyOnDemand === true, "syncsOneChat");
|
|
17020
17022
|
|
|
17021
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17023
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/conversations/link.js
|
|
17022
17024
|
var RULES_VERSION = 6;
|
|
17023
17025
|
var LOOK_BACK = 50;
|
|
17024
17026
|
var SAME_SENDER_WITHIN = 10;
|
|
@@ -17116,7 +17118,7 @@ var latest = /* @__PURE__ */ __name((window2, matches) => {
|
|
|
17116
17118
|
var sameThread = /* @__PURE__ */ __name((a, b) => a.threadId === b.threadId, "sameThread");
|
|
17117
17119
|
var link = /* @__PURE__ */ __name((message, parentId, source, kind2, confidence, method) => ({ messageId: message.id, parentId, source, kind: kind2, confidence, method }), "link");
|
|
17118
17120
|
|
|
17119
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17121
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/sends/upload.js
|
|
17120
17122
|
import { openAsBlob, realpathSync } from "node:fs";
|
|
17121
17123
|
import { open, stat } from "node:fs/promises";
|
|
17122
17124
|
import { basename, dirname, extname, isAbsolute, relative, resolve, sep } from "node:path";
|
|
@@ -17332,10 +17334,10 @@ var readStickerFile = /* @__PURE__ */ __name(async (path2, maxBytes, read2) => {
|
|
|
17332
17334
|
return { name, source };
|
|
17333
17335
|
}, "readStickerFile");
|
|
17334
17336
|
|
|
17335
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17337
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/sends/guard.js
|
|
17336
17338
|
import { randomUUID } from "node:crypto";
|
|
17337
17339
|
|
|
17338
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17340
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/sends/flood.js
|
|
17339
17341
|
import { mkdirSync, readFileSync, renameSync, writeFileSync } from "node:fs";
|
|
17340
17342
|
import { dirname as dirname2, join } from "node:path";
|
|
17341
17343
|
var MOST_DEADLINES = 50;
|
|
@@ -17419,11 +17421,11 @@ var FloodMemory = class {
|
|
|
17419
17421
|
}
|
|
17420
17422
|
};
|
|
17421
17423
|
|
|
17422
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17424
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/sends/journal.js
|
|
17423
17425
|
import { appendFileSync, mkdirSync as mkdirSync3, readFileSync as readFileSync2 } from "node:fs";
|
|
17424
17426
|
import { dirname as dirname4, join as join2 } from "node:path";
|
|
17425
17427
|
|
|
17426
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17428
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/sends/file-lock.js
|
|
17427
17429
|
import { closeSync, mkdirSync as mkdirSync2, openSync, statSync, unlinkSync } from "node:fs";
|
|
17428
17430
|
import { dirname as dirname3 } from "node:path";
|
|
17429
17431
|
var LOCK_WAIT_MS = 5e3;
|
|
@@ -17490,7 +17492,7 @@ var lockTime = /* @__PURE__ */ __name((lock) => {
|
|
|
17490
17492
|
}
|
|
17491
17493
|
}, "lockTime");
|
|
17492
17494
|
|
|
17493
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17495
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/sends/journal.js
|
|
17494
17496
|
var sendsPathFor = /* @__PURE__ */ __name((app, profile, env = process.env) => join2(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "sends", `${profile}.jsonl`), "sendsPathFor");
|
|
17495
17497
|
var SendJournal = class {
|
|
17496
17498
|
static {
|
|
@@ -17567,7 +17569,7 @@ var withSendId = /* @__PURE__ */ __name((entry) => {
|
|
|
17567
17569
|
return cid === void 0 || rest.sendId !== void 0 ? rest : { ...rest, sendId: String(cid) };
|
|
17568
17570
|
}, "withSendId");
|
|
17569
17571
|
|
|
17570
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17572
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/sends/recipients.js
|
|
17571
17573
|
import { existsSync, readFileSync as readFileSync3, rmSync } from "node:fs";
|
|
17572
17574
|
import { join as join3 } from "node:path";
|
|
17573
17575
|
var recipientsPathFor = /* @__PURE__ */ __name((app, profile, env = process.env) => join3(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "profiles", `${profile}.recipients.json`), "recipientsPathFor");
|
|
@@ -17679,7 +17681,7 @@ var RecipientList = class {
|
|
|
17679
17681
|
}
|
|
17680
17682
|
};
|
|
17681
17683
|
|
|
17682
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17684
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/sends/guard.js
|
|
17683
17685
|
var HOUR_MS = 60 * 60 * 1e3;
|
|
17684
17686
|
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");
|
|
17685
17687
|
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");
|
|
@@ -17867,7 +17869,7 @@ var guardFor = /* @__PURE__ */ __name((app, settings, warn, env = process.env, a
|
|
|
17867
17869
|
}), "guardFor");
|
|
17868
17870
|
var journalFailure = /* @__PURE__ */ __name((error) => error?.code ?? (error instanceof Error ? error.name : "error"), "journalFailure");
|
|
17869
17871
|
|
|
17870
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17872
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/cli/messenger/ask.js
|
|
17871
17873
|
import { openSync as openSync2 } from "node:fs";
|
|
17872
17874
|
import { createInterface } from "node:readline";
|
|
17873
17875
|
import { ReadStream } from "node:tty";
|
|
@@ -17922,7 +17924,7 @@ var terminalAsker = /* @__PURE__ */ __name((command) => async (key, request) =>
|
|
|
17922
17924
|
throw new CliError("cancelled", `${key}: not done \u2014 the answer was no`);
|
|
17923
17925
|
}, "terminalAsker");
|
|
17924
17926
|
|
|
17925
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17927
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/cli/messenger/lacks.js
|
|
17926
17928
|
var COMMAND_NEEDS = {
|
|
17927
17929
|
"account update": ["updateProfile", "change the profile"],
|
|
17928
17930
|
"account sessions list": ["sessions", "list the account's sessions"],
|
|
@@ -17987,7 +17989,7 @@ var hideNever = /* @__PURE__ */ __name((messenger, group) => {
|
|
|
17987
17989
|
return group;
|
|
17988
17990
|
}, "hideNever");
|
|
17989
17991
|
|
|
17990
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17992
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/services/deps.js
|
|
17991
17993
|
var accountStore = /* @__PURE__ */ __name(async (deps) => (await deps.store()).forAccount(await deps.account()), "accountStore");
|
|
17992
17994
|
var crossAccount = /* @__PURE__ */ __name((deps, _reason) => deps.store(), "crossAccount");
|
|
17993
17995
|
var NO_LOCAL_STORE = "this answer comes from the messenger, not from the local store";
|
|
@@ -18049,12 +18051,12 @@ var storedDeps = /* @__PURE__ */ __name((messenger, store, account, guard) => ({
|
|
|
18049
18051
|
}), "storedDeps");
|
|
18050
18052
|
var storeModeDeps = /* @__PURE__ */ __name((messenger, store, account, guard) => ({ ...storedDeps(messenger, store, account, guard), offline: false, reads: "store" }), "storeModeDeps");
|
|
18051
18053
|
|
|
18052
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18054
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/sends/send-id.js
|
|
18053
18055
|
import { randomBytes } from "node:crypto";
|
|
18054
18056
|
var newSendId = /* @__PURE__ */ __name(() => randomBytes(8).readBigInt64BE().toString(), "newSendId");
|
|
18055
18057
|
var newOperationId = newSendId;
|
|
18056
18058
|
|
|
18057
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18059
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/services/questions.js
|
|
18058
18060
|
var LINKS = /https?:\/\/\S+/g;
|
|
18059
18061
|
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");
|
|
18060
18062
|
var questions = /* @__PURE__ */ __name((messages, { answerers: answerers2, asker = "others" }) => {
|
|
@@ -18084,7 +18086,7 @@ var questions = /* @__PURE__ */ __name((messages, { answerers: answerers2, asker
|
|
|
18084
18086
|
});
|
|
18085
18087
|
}, "questions");
|
|
18086
18088
|
|
|
18087
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18089
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/services/members-audit.js
|
|
18088
18090
|
var AUDIT_PAGE = 200;
|
|
18089
18091
|
var AUDIT_BUDGET = 10;
|
|
18090
18092
|
var AUDIT_PAUSE_MS = 1e3;
|
|
@@ -18164,7 +18166,7 @@ var burstJoins = /* @__PURE__ */ __name((members) => {
|
|
|
18164
18166
|
return found;
|
|
18165
18167
|
}, "burstJoins");
|
|
18166
18168
|
|
|
18167
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18169
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/services/task-categories.js
|
|
18168
18170
|
var names = /* @__PURE__ */ __name((categories) => categories.map(({ name }) => name).join(", "), "names");
|
|
18169
18171
|
var taskCategoryOf = /* @__PURE__ */ __name((categories = DEFAULT_TASK_CATEGORIES, flag = "--category") => (typed) => {
|
|
18170
18172
|
const name = typed.trim().toLowerCase();
|
|
@@ -18221,7 +18223,7 @@ var categorize = /* @__PURE__ */ __name((text3, categories = DEFAULT_TASK_CATEGO
|
|
|
18221
18223
|
return best.name;
|
|
18222
18224
|
}, "categorize");
|
|
18223
18225
|
|
|
18224
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18226
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/services/task-rules.js
|
|
18225
18227
|
var taskAccount = /* @__PURE__ */ __name(({ provider, account }) => `${provider}:${account}`, "taskAccount");
|
|
18226
18228
|
var RULES_IN = {
|
|
18227
18229
|
dialog: "all",
|
|
@@ -18427,7 +18429,7 @@ var applyTaskRulesToChats = /* @__PURE__ */ __name(async (store, account, chatId
|
|
|
18427
18429
|
return passes;
|
|
18428
18430
|
}, "applyTaskRulesToChats");
|
|
18429
18431
|
|
|
18430
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18432
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/services/patience.js
|
|
18431
18433
|
import { setTimeout as sleep } from "node:timers/promises";
|
|
18432
18434
|
var LONGEST_WAIT_MS = 5 * 60 * 1e3;
|
|
18433
18435
|
var patiently = /* @__PURE__ */ __name(async (request, note, stop) => {
|
|
@@ -18450,10 +18452,10 @@ var patiently = /* @__PURE__ */ __name(async (request, note, stop) => {
|
|
|
18450
18452
|
}
|
|
18451
18453
|
}, "patiently");
|
|
18452
18454
|
|
|
18453
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18455
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/services/archive.js
|
|
18454
18456
|
import { setTimeout as sleep2 } from "node:timers/promises";
|
|
18455
18457
|
|
|
18456
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18458
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/services/backfill-estimate.js
|
|
18457
18459
|
var REQUEST_MS = 400;
|
|
18458
18460
|
var estimateBackfill = /* @__PURE__ */ __name(({ ranges, held, newest, page, maxPages, pauseMs }) => {
|
|
18459
18461
|
const lowest = ranges[0];
|
|
@@ -18476,13 +18478,13 @@ var estimateBackfill = /* @__PURE__ */ __name(({ ranges, held, newest, page, max
|
|
|
18476
18478
|
};
|
|
18477
18479
|
}, "estimateBackfill");
|
|
18478
18480
|
|
|
18479
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18481
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/domain/recovery.js
|
|
18480
18482
|
var withRecovery = /* @__PURE__ */ __name((error) => ({
|
|
18481
18483
|
...error,
|
|
18482
18484
|
retryable: typeof error.retryable === "boolean" ? error.retryable : error.code === "rate_limited" || error.status === 429
|
|
18483
18485
|
}), "withRecovery");
|
|
18484
18486
|
|
|
18485
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18487
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/services/batch.js
|
|
18486
18488
|
var actionable = /* @__PURE__ */ __name((error) => {
|
|
18487
18489
|
if (isCliFailure(error))
|
|
18488
18490
|
return withRecovery({ code: error.code, message: error.message, ...error.details });
|
|
@@ -18565,7 +18567,7 @@ var mergeBatches = /* @__PURE__ */ __name((a, b) => {
|
|
|
18565
18567
|
};
|
|
18566
18568
|
}, "mergeBatches");
|
|
18567
18569
|
|
|
18568
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18570
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/search/groups.js
|
|
18569
18571
|
var ALL = "all";
|
|
18570
18572
|
var OWNER_NOTES = { provider: "notes", account: INTERNAL_NOTES };
|
|
18571
18573
|
var NOT_GROUP_NAMES = /* @__PURE__ */ new Set([ALL, "bots"]);
|
|
@@ -18637,7 +18639,7 @@ var groupEntries = /* @__PURE__ */ __name((saved) => ({
|
|
|
18637
18639
|
[ALL]: [ALL]
|
|
18638
18640
|
}), "groupEntries");
|
|
18639
18641
|
|
|
18640
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18642
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/services/search-kind.js
|
|
18641
18643
|
var NO_MAIL = "no_mail";
|
|
18642
18644
|
var MAIL = "email";
|
|
18643
18645
|
var groupLockOf = /* @__PURE__ */ __name((app, env) => {
|
|
@@ -18711,7 +18713,7 @@ var accountsOfKind = /* @__PURE__ */ __name((kind2, chosen, held, explicit, comm
|
|
|
18711
18713
|
return chosenMail.map(({ provider, account }) => ({ provider, account }));
|
|
18712
18714
|
}, "accountsOfKind");
|
|
18713
18715
|
|
|
18714
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18716
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/services/message-resolution.js
|
|
18715
18717
|
var readChatId = /* @__PURE__ */ __name(async (deps, reference, store, account) => {
|
|
18716
18718
|
if (deps.reads !== "store")
|
|
18717
18719
|
return keptChatId(deps.messenger, reference, store, account);
|
|
@@ -18912,7 +18914,7 @@ var chatsMatchingIn = /* @__PURE__ */ __name(async (store, accounts, pattern) =>
|
|
|
18912
18914
|
}, "chatsMatchingIn");
|
|
18913
18915
|
var isText = /* @__PURE__ */ __name((value) => typeof value === "string" && value !== "", "isText");
|
|
18914
18916
|
|
|
18915
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18917
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/images/context/index.js
|
|
18916
18918
|
var CONTEXT_MESSAGES = 3;
|
|
18917
18919
|
var CONTEXT_MINUTES = 10;
|
|
18918
18920
|
var MAX_CHARS = 1200;
|
|
@@ -18936,12 +18938,12 @@ var context = {
|
|
|
18936
18938
|
}, "describe")
|
|
18937
18939
|
};
|
|
18938
18940
|
|
|
18939
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18941
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/images/registry.js
|
|
18940
18942
|
var BUILT_INS = [context];
|
|
18941
18943
|
var providers = [...BUILT_INS];
|
|
18942
18944
|
var registeredImageProviders = /* @__PURE__ */ __name(() => providers, "registeredImageProviders");
|
|
18943
18945
|
|
|
18944
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18946
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/services/conversations.js
|
|
18945
18947
|
var READ_PAGE = 5e3;
|
|
18946
18948
|
var CHAIN = 50;
|
|
18947
18949
|
var CONVERSATION_QUERY = {
|
|
@@ -19093,7 +19095,7 @@ var sized = /* @__PURE__ */ __name((size2) => {
|
|
|
19093
19095
|
return size2;
|
|
19094
19096
|
}, "sized");
|
|
19095
19097
|
|
|
19096
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19098
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/services/embeddings-maintenance.js
|
|
19097
19099
|
var REFRESH_BOUNDS = { maxChats: 20, maxChunks: 2e3 };
|
|
19098
19100
|
var MESSAGE_PAGE = 5e3;
|
|
19099
19101
|
var PER_SESSION = 8;
|
|
@@ -19112,7 +19114,7 @@ var embeddingTarget = /* @__PURE__ */ __name((deps, choice = chosenTextModel(dep
|
|
|
19112
19114
|
price: remote.price,
|
|
19113
19115
|
installed: true,
|
|
19114
19116
|
perBatch: PER_REQUEST * concurrency,
|
|
19115
|
-
open: /* @__PURE__ */ __name(async () => (await import("./remote-
|
|
19117
|
+
open: /* @__PURE__ */ __name(async () => (await import("./remote-HNRRZA6M.js")).openRemote(remote, apiKey, {
|
|
19116
19118
|
concurrency,
|
|
19117
19119
|
env: deps.env ?? process.env
|
|
19118
19120
|
}), "open")
|
|
@@ -19132,7 +19134,7 @@ var embeddingTarget = /* @__PURE__ */ __name((deps, choice = chosenTextModel(dep
|
|
|
19132
19134
|
if (!isTextModelInstalled(model, directory2))
|
|
19133
19135
|
throw notDownloaded(model.id);
|
|
19134
19136
|
if (apart) {
|
|
19135
|
-
const { openProcess } = await import("./process-
|
|
19137
|
+
const { openProcess } = await import("./process-2TFFZAX6.js");
|
|
19136
19138
|
return openProcess(model, directory2, { threads: threads ?? defaultThreads() });
|
|
19137
19139
|
}
|
|
19138
19140
|
return openEmbedder(model, directory2, { threads: threads ?? defaultThreads() });
|
|
@@ -19421,7 +19423,7 @@ var shaped = /* @__PURE__ */ __name(({ chatId, builtAt, algorithmVersion, pendin
|
|
|
19421
19423
|
return { ...one, state };
|
|
19422
19424
|
}, "shaped");
|
|
19423
19425
|
|
|
19424
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19426
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/services/search-catchup.js
|
|
19425
19427
|
var CATCH_UP_BOUNDS = { maxChunks: 500, maxMessages: 1e4, timeMs: 3e4 };
|
|
19426
19428
|
var validateCatchUpBounds = /* @__PURE__ */ __name((options2) => {
|
|
19427
19429
|
for (const [key, value, maximum] of [
|
|
@@ -19474,7 +19476,7 @@ var catchUpSearch = /* @__PURE__ */ __name(async (deps, chat, options2, signal,
|
|
|
19474
19476
|
}
|
|
19475
19477
|
}, "catchUpSearch");
|
|
19476
19478
|
|
|
19477
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19479
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/services/archive.js
|
|
19478
19480
|
var pushed = /* @__PURE__ */ __name((deps, what2) => {
|
|
19479
19481
|
if (deps.reads === "store") {
|
|
19480
19482
|
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`);
|
|
@@ -19877,7 +19879,7 @@ var timeOfKey = /* @__PURE__ */ __name(async (store, account, chatId, key, byTim
|
|
|
19877
19879
|
return message?.timestamp ?? fallback;
|
|
19878
19880
|
}, "timeOfKey");
|
|
19879
19881
|
|
|
19880
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19882
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/botcheck/check.js
|
|
19881
19883
|
var DAY_MS = 864e5;
|
|
19882
19884
|
var NEW_DAYS = 30;
|
|
19883
19885
|
var SAME_TEXT_MIN = 20;
|
|
@@ -19954,7 +19956,7 @@ var scorePerson = /* @__PURE__ */ __name(({ subject, provider, activity, photos,
|
|
|
19954
19956
|
};
|
|
19955
19957
|
}, "scorePerson");
|
|
19956
19958
|
|
|
19957
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19959
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/http/time-limit.js
|
|
19958
19960
|
var timeLimit = /* @__PURE__ */ __name((ms) => {
|
|
19959
19961
|
const controller = new AbortController();
|
|
19960
19962
|
const timer = setTimeout(() => controller.abort(new DOMException("The operation timed out.", "TimeoutError")), ms);
|
|
@@ -19970,7 +19972,7 @@ var withTimeLimit = /* @__PURE__ */ __name(async (ms, run2) => {
|
|
|
19970
19972
|
}
|
|
19971
19973
|
}, "withTimeLimit");
|
|
19972
19974
|
|
|
19973
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19975
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/botcheck/registries.js
|
|
19974
19976
|
var REGISTRIES = {
|
|
19975
19977
|
cas: { title: "Combot Anti-Spam (CAS)", docs: "https://cas.chat/api" },
|
|
19976
19978
|
lols: { title: "lols.bot", docs: "https://api.lols.bot/lols-bot.json" }
|
|
@@ -20057,7 +20059,7 @@ var notCovered = /* @__PURE__ */ __name((messenger, now = /* @__PURE__ */ new Da
|
|
|
20057
20059
|
detail: `lists Telegram accounts only, not ${messenger} ones`
|
|
20058
20060
|
})), "notCovered");
|
|
20059
20061
|
|
|
20060
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20062
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/botcheck/service.js
|
|
20061
20063
|
var ACTIVITY_MESSAGES = 1e3;
|
|
20062
20064
|
var botCheckService = /* @__PURE__ */ __name((deps) => {
|
|
20063
20065
|
const subjectOf = /* @__PURE__ */ __name(async (reference) => {
|
|
@@ -20145,7 +20147,7 @@ var botCheckService = /* @__PURE__ */ __name((deps) => {
|
|
|
20145
20147
|
};
|
|
20146
20148
|
}, "botCheckService");
|
|
20147
20149
|
|
|
20148
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20150
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/domain/thread.js
|
|
20149
20151
|
var threadIdOf = /* @__PURE__ */ __name((value) => {
|
|
20150
20152
|
if (value === void 0)
|
|
20151
20153
|
return void 0;
|
|
@@ -20155,7 +20157,7 @@ var threadIdOf = /* @__PURE__ */ __name((value) => {
|
|
|
20155
20157
|
return id3;
|
|
20156
20158
|
}, "threadIdOf");
|
|
20157
20159
|
|
|
20158
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20160
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/services/chat-stats.js
|
|
20159
20161
|
var TOP_POSTS = 5;
|
|
20160
20162
|
var JOINS = /* @__PURE__ */ new Set(["join", "add"]);
|
|
20161
20163
|
var LEAVES = /* @__PURE__ */ new Set(["leave", "remove"]);
|
|
@@ -20272,7 +20274,7 @@ var median = /* @__PURE__ */ __name((values) => {
|
|
|
20272
20274
|
return Math.round(sorted.length % 2 === 0 ? ((sorted[middle - 1] ?? upper) + upper) / 2 : upper);
|
|
20273
20275
|
}, "median");
|
|
20274
20276
|
|
|
20275
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20277
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/services/member-history.js
|
|
20276
20278
|
var memberEvents = /* @__PURE__ */ __name((stays, revisions, since = 0) => {
|
|
20277
20279
|
const events = [];
|
|
20278
20280
|
for (const stay of stays) {
|
|
@@ -20304,7 +20306,7 @@ var memberEvents = /* @__PURE__ */ __name((stays, revisions, since = 0) => {
|
|
|
20304
20306
|
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));
|
|
20305
20307
|
}, "memberEvents");
|
|
20306
20308
|
|
|
20307
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20309
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/services/chats.js
|
|
20308
20310
|
var EVENTS_DAYS = 7;
|
|
20309
20311
|
var TRACKED_DAYS = 30;
|
|
20310
20312
|
var STATS_PAGE = 1e3;
|
|
@@ -20599,7 +20601,7 @@ var storedMembers = /* @__PURE__ */ __name(async (store, chatId) => {
|
|
|
20599
20601
|
return members.length === 0 ? null : members;
|
|
20600
20602
|
}, "storedMembers");
|
|
20601
20603
|
|
|
20602
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20604
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/services/inbox.js
|
|
20603
20605
|
var INBOX_CHATS = 20;
|
|
20604
20606
|
var REVIEW_DAYS = 3;
|
|
20605
20607
|
var UNANSWERED_HOURS = 24;
|
|
@@ -20811,7 +20813,7 @@ var inboxService = /* @__PURE__ */ __name((deps) => {
|
|
|
20811
20813
|
};
|
|
20812
20814
|
}, "inboxService");
|
|
20813
20815
|
|
|
20814
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20816
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/cli/bot/api-input.js
|
|
20815
20817
|
import { readFileSync as readFileSync4 } from "node:fs";
|
|
20816
20818
|
|
|
20817
20819
|
// 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
|
|
@@ -21620,7 +21622,7 @@ function resolveSpace(space) {
|
|
|
21620
21622
|
}
|
|
21621
21623
|
__name(resolveSpace, "resolveSpace");
|
|
21622
21624
|
|
|
21623
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21625
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/cli/bot/api-input.js
|
|
21624
21626
|
var RENAMED = { timeout: "poll-timeout" };
|
|
21625
21627
|
var apiFlagOf = /* @__PURE__ */ __name((name) => RENAMED[name] ?? name.replace(/_/g, "-").replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), "apiFlagOf");
|
|
21626
21628
|
var apiOptionKey = /* @__PURE__ */ __name((name) => apiFlagOf(name).replace(/-([a-z0-9])/g, (_, letter) => letter.toUpperCase()), "apiOptionKey");
|
|
@@ -21758,7 +21760,7 @@ var flagValue = /* @__PURE__ */ __name((operation, name, raw, type) => {
|
|
|
21758
21760
|
return raw;
|
|
21759
21761
|
}, "flagValue");
|
|
21760
21762
|
|
|
21761
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21763
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/cli/service-api-manifest.js
|
|
21762
21764
|
var manifestBaseUrl = /* @__PURE__ */ __name((manifest, given, variables = {}) => {
|
|
21763
21765
|
const server = manifest.servers?.[0];
|
|
21764
21766
|
if (given === void 0 && !server)
|
|
@@ -21886,10 +21888,10 @@ var nextPage = /* @__PURE__ */ __name((pagination, input, answer, headers) => {
|
|
|
21886
21888
|
}
|
|
21887
21889
|
}, "nextPage");
|
|
21888
21890
|
|
|
21889
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21891
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/crm/source.js
|
|
21890
21892
|
var CRM_FILE_SOURCES = ["record", "field", "document", "activity", "comment"];
|
|
21891
21893
|
|
|
21892
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21894
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/crm/files.js
|
|
21893
21895
|
var parseCrmFileId = /* @__PURE__ */ __name((id3) => {
|
|
21894
21896
|
const [kind2 = "", owner = "", source = "", ...rest] = id3.trim().split(":");
|
|
21895
21897
|
const providerId = rest.join(":");
|
|
@@ -21922,7 +21924,7 @@ var withoutFileLinks = /* @__PURE__ */ __name((body) => {
|
|
|
21922
21924
|
return walk2(body);
|
|
21923
21925
|
}, "withoutFileLinks");
|
|
21924
21926
|
|
|
21925
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21927
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/crm/values.js
|
|
21926
21928
|
var isRaw = /* @__PURE__ */ __name((value) => typeof value === "object" && value !== null && !Array.isArray(value), "isRaw");
|
|
21927
21929
|
var rawsOf = /* @__PURE__ */ __name((value) => Array.isArray(value) ? value.filter(isRaw) : [], "rawsOf");
|
|
21928
21930
|
var text = /* @__PURE__ */ __name((value) => {
|
|
@@ -21979,7 +21981,7 @@ var crmValuesOf = /* @__PURE__ */ __name((values, fields2) => {
|
|
|
21979
21981
|
}));
|
|
21980
21982
|
}, "crmValuesOf");
|
|
21981
21983
|
|
|
21982
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21984
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/crm/walk.js
|
|
21983
21985
|
var crmWindowOf = /* @__PURE__ */ __name((query) => {
|
|
21984
21986
|
const page = query.page ?? 1;
|
|
21985
21987
|
return { offset: (Number.isSafeInteger(page) && page > 1 ? page - 1 : 0) * query.limit, limit: query.limit };
|
|
@@ -21999,7 +22001,7 @@ var walk = /* @__PURE__ */ __name(async (window2, largest, fetchPage) => {
|
|
|
21999
22001
|
return { items: rows.slice(0, window2.limit), hasMore: rows.length > window2.limit };
|
|
22000
22002
|
}, "walk");
|
|
22001
22003
|
|
|
22002
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22004
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/crm/manifest/map.js
|
|
22003
22005
|
var MISSING = /* @__PURE__ */ Symbol("missing");
|
|
22004
22006
|
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");
|
|
22005
22007
|
var read = /* @__PURE__ */ __name((raw, path2) => {
|
|
@@ -22252,7 +22254,7 @@ var selectedOf = /* @__PURE__ */ __name((rules, from) => {
|
|
|
22252
22254
|
].filter(Boolean);
|
|
22253
22255
|
}, "selectedOf");
|
|
22254
22256
|
|
|
22255
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22257
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/crm/manifest/manifest.js
|
|
22256
22258
|
var CRM_WRITE_FIELDS = {
|
|
22257
22259
|
deal: ["title", "pipeline", "stage", "amount", "currency", "closeDate", "organization", "people", "owner", "reason"],
|
|
22258
22260
|
lead: ["title", "pipeline", "stage", "amount", "currency", "closeDate", "organization", "people", "owner", "reason"],
|
|
@@ -22518,7 +22520,7 @@ var checkWrite = /* @__PURE__ */ __name((kind2, one, manifest, { operations, kno
|
|
|
22518
22520
|
throw invalid(`${where}.custom.each`, 'no "{value}" in it');
|
|
22519
22521
|
}, "checkWrite");
|
|
22520
22522
|
|
|
22521
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22523
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/crm/manifest/source.js
|
|
22522
22524
|
var OVERLAP_MS = 10 * 6e4;
|
|
22523
22525
|
var MOST_LIVE = 100;
|
|
22524
22526
|
var MOST_PAGES = 500;
|
|
@@ -22964,7 +22966,7 @@ var toField = /* @__PURE__ */ __name((spec, raw) => {
|
|
|
22964
22966
|
};
|
|
22965
22967
|
}, "toField");
|
|
22966
22968
|
|
|
22967
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22969
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/cli/bot/api.js
|
|
22968
22970
|
var apiPathOf = /* @__PURE__ */ __name((operation) => {
|
|
22969
22971
|
const { command, group } = operation;
|
|
22970
22972
|
if (!group)
|
|
@@ -23077,7 +23079,7 @@ var generatedApiCommand = /* @__PURE__ */ __name((api) => {
|
|
|
23077
23079
|
return group;
|
|
23078
23080
|
}, "generatedApiCommand");
|
|
23079
23081
|
|
|
23080
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23082
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/cli/command-runs.js
|
|
23081
23083
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
23082
23084
|
var parses = new AsyncLocalStorage();
|
|
23083
23085
|
var providerEvent = /* @__PURE__ */ __name((event2) => {
|
|
@@ -23110,7 +23112,7 @@ var providerRequest = /* @__PURE__ */ __name((operation, sink = providerEvent, c
|
|
|
23110
23112
|
};
|
|
23111
23113
|
}, "providerRequest");
|
|
23112
23114
|
|
|
23113
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23115
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/cli/bot/api-http.js
|
|
23114
23116
|
var LARGEST_ANSWER = 16 * 1024 * 1024;
|
|
23115
23117
|
var segment = /* @__PURE__ */ __name((name, value) => {
|
|
23116
23118
|
if (value === void 0 || value === "" || value === "." || value === "..")
|
|
@@ -23328,7 +23330,7 @@ var refusal = /* @__PURE__ */ __name((service, operation, response, writes, inne
|
|
|
23328
23330
|
});
|
|
23329
23331
|
}, "refusal");
|
|
23330
23332
|
|
|
23331
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23333
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/cli/permission-keys.js
|
|
23332
23334
|
var HOUSEKEEPING = /* @__PURE__ */ new Set([
|
|
23333
23335
|
"help",
|
|
23334
23336
|
"guide",
|
|
@@ -23416,7 +23418,7 @@ var refuseUnknownPermissionKeys = /* @__PURE__ */ __name((command, settings, too
|
|
|
23416
23418
|
throw new CliError("validation_error", `--permission ${key} names no command${now === void 0 ? "" : `: its command moved, so use ${now}`}`, { permission: key });
|
|
23417
23419
|
}, "refuseUnknownPermissionKeys");
|
|
23418
23420
|
|
|
23419
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23421
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/sends/keyed-guard.js
|
|
23420
23422
|
var keyedGuard = /* @__PURE__ */ __name((build, ask2, levelOf, extra) => {
|
|
23421
23423
|
let question;
|
|
23422
23424
|
let answered = false;
|
|
@@ -23459,7 +23461,7 @@ var keyedGuard = /* @__PURE__ */ __name((build, ask2, levelOf, extra) => {
|
|
|
23459
23461
|
};
|
|
23460
23462
|
}, "keyedGuard");
|
|
23461
23463
|
|
|
23462
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23464
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/cli/service-api.js
|
|
23463
23465
|
var serviceApiOperations = /* @__PURE__ */ __name((manifest) => {
|
|
23464
23466
|
const reasonOf2 = /* @__PURE__ */ __name((operation) => operation.response?.sensitive ? "it returns a credential, which is never printed" : unsendableBody(operation), "reasonOf");
|
|
23465
23467
|
return {
|
|
@@ -23769,7 +23771,7 @@ var serviceApiCommand = /* @__PURE__ */ __name((options2) => {
|
|
|
23769
23771
|
return group;
|
|
23770
23772
|
}, "serviceApiCommand");
|
|
23771
23773
|
|
|
23772
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23774
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/cli/service-api-call.js
|
|
23773
23775
|
var hostsFetch = /* @__PURE__ */ __name((hosts, fetch2, credentialScope) => hostFetch({ hosts, ...fetch2 ? { fetch: fetch2 } : {}, ...credentialScope ? { credentialScope } : {} }), "hostsFetch");
|
|
23774
23776
|
var NO_COMMAND = new Command("source");
|
|
23775
23777
|
var sender = /* @__PURE__ */ __name((options2, writes) => {
|
|
@@ -23811,7 +23813,7 @@ var serviceApiSend = /* @__PURE__ */ __name((options2) => {
|
|
|
23811
23813
|
return async (id3, input) => (await withHeaders(id3, input)).body;
|
|
23812
23814
|
}, "serviceApiSend");
|
|
23813
23815
|
|
|
23814
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23816
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/crm/writer.js
|
|
23815
23817
|
var CRM_VERBS = ["create", "update", "move", "close", "remove"];
|
|
23816
23818
|
var CRM_ASSIGN_OTHERS_KEY = "crm.assign-others";
|
|
23817
23819
|
var CRM_WRITE_KEYS = [CRM_ASSIGN_OTHERS_KEY];
|
|
@@ -23847,7 +23849,7 @@ var CRM_WRITE_DEFAULTS = {
|
|
|
23847
23849
|
[CRM_ASSIGN_OTHERS_KEY]: "deny"
|
|
23848
23850
|
};
|
|
23849
23851
|
|
|
23850
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23852
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/sends/profile-writes.js
|
|
23851
23853
|
var levelsOf = /* @__PURE__ */ __name((writes, defaults) => {
|
|
23852
23854
|
const settings = writes.settings();
|
|
23853
23855
|
return { settings, defaults: { ...DEFAULT_PERMISSIONS, ...defaults, ...settings.permissionDefaults } };
|
|
@@ -23858,14 +23860,14 @@ var profileWriteGuard = /* @__PURE__ */ __name((writes, ask2, builtIn, extra) =>
|
|
|
23858
23860
|
}), writes.env, asker), ask2, (key) => levelFor(settings.permissions, key, defaults).level, extra);
|
|
23859
23861
|
}, "profileWriteGuard");
|
|
23860
23862
|
|
|
23861
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23863
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/crm/foreign-contacts.js
|
|
23862
23864
|
import { readFileSync as readFileSync5 } from "node:fs";
|
|
23863
23865
|
import { join as join4 } from "node:path";
|
|
23864
23866
|
|
|
23865
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23867
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/crm/state-folders.js
|
|
23866
23868
|
var CRM_SHARED_FOLDERS = { files: "files", foreignContacts: "foreign-contacts" };
|
|
23867
23869
|
|
|
23868
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23870
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/crm/foreign-contacts.js
|
|
23869
23871
|
var DAILY_FOREIGN_CONTACTS = 100;
|
|
23870
23872
|
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");
|
|
23871
23873
|
var shownIn = /* @__PURE__ */ __name((file2, day2) => {
|
|
@@ -23938,7 +23940,7 @@ var foreignContacts = /* @__PURE__ */ __name((source, file2, options2 = {}) => {
|
|
|
23938
23940
|
};
|
|
23939
23941
|
}, "foreignContacts");
|
|
23940
23942
|
|
|
23941
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23943
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/crm/writes.js
|
|
23942
23944
|
var moneyChecked = /* @__PURE__ */ __name((check2, param) => {
|
|
23943
23945
|
try {
|
|
23944
23946
|
check2();
|
|
@@ -24479,7 +24481,7 @@ var completeCrmActivity = /* @__PURE__ */ __name(async (context2, externalId, op
|
|
|
24479
24481
|
return { operationId, activity, stored, on: await answeredTargets(context2, activity, []) };
|
|
24480
24482
|
}, "completeCrmActivity");
|
|
24481
24483
|
|
|
24482
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24484
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/crm/manifest/writer.js
|
|
24483
24485
|
var CALL_OF = {
|
|
24484
24486
|
create: "create",
|
|
24485
24487
|
update: "update",
|
|
@@ -24502,7 +24504,8 @@ var capabilitiesOf = /* @__PURE__ */ __name((manifest) => {
|
|
|
24502
24504
|
kinds: written2.map(({ kind: kind2 }) => kind2),
|
|
24503
24505
|
verbs: CRM_VERBS.filter((verb) => written2.some(({ kind: kind2, one }) => takes(kind2, one, verb))),
|
|
24504
24506
|
// No slot sends the operation id, so a repeated write would be made again.
|
|
24505
|
-
idempotent: false
|
|
24507
|
+
idempotent: false,
|
|
24508
|
+
fields: Object.fromEntries(written2.map(({ kind: kind2, one }) => [kind2, [...Object.keys(one.fields), ...one.custom ? ["custom"] : []]]))
|
|
24506
24509
|
};
|
|
24507
24510
|
}, "capabilitiesOf");
|
|
24508
24511
|
var crmManifestWriteCapabilities = /* @__PURE__ */ __name((input, api) => capabilitiesOf(parseCrmManifest(input, api)), "crmManifestWriteCapabilities");
|
|
@@ -24734,7 +24737,7 @@ var crmManifestWrites = /* @__PURE__ */ __name((input, options2) => {
|
|
|
24734
24737
|
};
|
|
24735
24738
|
}, "crmManifestWrites");
|
|
24736
24739
|
|
|
24737
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24740
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/sends/pace.js
|
|
24738
24741
|
import { readFileSync as readFileSync6, renameSync as renameSync2, writeFileSync as writeFileSync2 } from "node:fs";
|
|
24739
24742
|
import { join as join5 } from "node:path";
|
|
24740
24743
|
var DEFAULT_PACE = { perMinute: 60, burst: 20 };
|
|
@@ -24829,10 +24832,10 @@ var waitForTurn = /* @__PURE__ */ __name(async (pacer, options2) => {
|
|
|
24829
24832
|
await (options2.sleep ?? ((ms) => new Promise((resolve7) => setTimeout(resolve7, ms))))(waitMs);
|
|
24830
24833
|
}, "waitForTurn");
|
|
24831
24834
|
|
|
24832
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24835
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/crm/file-fetch.js
|
|
24833
24836
|
var EXCHANGE_MS = 60 * 60 * 1e3;
|
|
24834
24837
|
|
|
24835
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24838
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/crm/query.js
|
|
24836
24839
|
var valueFor = /* @__PURE__ */ __name((kind2, raw, name) => {
|
|
24837
24840
|
if (kind2 === "id") {
|
|
24838
24841
|
if (!/^[\w.:-]{1,100}$/u.test(raw))
|
|
@@ -24933,7 +24936,7 @@ var selectedCodes = /* @__PURE__ */ __name((fields2, wanted) => {
|
|
|
24933
24936
|
});
|
|
24934
24937
|
}, "selectedCodes");
|
|
24935
24938
|
|
|
24936
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24939
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/crm/group-hint.js
|
|
24937
24940
|
var workGroupHint = /* @__PURE__ */ __name((key) => `add it to a work group: \`memo groups add work ${key.provider}:${key.account}\``, "workGroupHint");
|
|
24938
24941
|
var ungroupedHint = /* @__PURE__ */ __name(async (store, key) => {
|
|
24939
24942
|
const { groups } = (await listContextOf(store, key, void 0)).membership;
|
|
@@ -24941,7 +24944,7 @@ var ungroupedHint = /* @__PURE__ */ __name(async (store, key) => {
|
|
|
24941
24944
|
return grouped2 ? void 0 : workGroupHint(key);
|
|
24942
24945
|
}, "ungroupedHint");
|
|
24943
24946
|
|
|
24944
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24947
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/crm/viewer.js
|
|
24945
24948
|
var VIEWERS = "crm:viewers";
|
|
24946
24949
|
var viewersOf = /* @__PURE__ */ __name(async (store, account) => {
|
|
24947
24950
|
try {
|
|
@@ -25016,7 +25019,7 @@ var ownerOf = /* @__PURE__ */ __name(async (run2, owner) => {
|
|
|
25016
25019
|
return crmIdentityId(run2.account, normalCrmUserId(owner), "user");
|
|
25017
25020
|
}, "ownerOf");
|
|
25018
25021
|
|
|
25019
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25022
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/crm/sync.js
|
|
25020
25023
|
var DAY2 = 864e5;
|
|
25021
25024
|
var CLOCK_MARGIN = 60 * 6e4;
|
|
25022
25025
|
var MOST_UNLISTED = 0.5;
|
|
@@ -25670,7 +25673,7 @@ var crmStatus = /* @__PURE__ */ __name(async (store, account, { profile, now, ki
|
|
|
25670
25673
|
return { items, page: 1, limit: Math.max(1, items.length), hasMore: false };
|
|
25671
25674
|
}, "crmStatus");
|
|
25672
25675
|
|
|
25673
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25676
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/services/excerpt.js
|
|
25674
25677
|
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");
|
|
25675
25678
|
var excerpt = /* @__PURE__ */ __name((text3, query, size2 = 240, options2 = {}) => {
|
|
25676
25679
|
const flat = text3.replace(/\s+/g, " ").trim();
|
|
@@ -25686,7 +25689,7 @@ var excerpt = /* @__PURE__ */ __name((text3, query, size2 = 240, options2 = {})
|
|
|
25686
25689
|
}, "excerpt");
|
|
25687
25690
|
var withExcerpt = /* @__PURE__ */ __name(({ matchedText, ...hit }, query) => ({ ...hit, excerpt: excerpt(matchedText ?? hit.text, query) }), "withExcerpt");
|
|
25688
25691
|
|
|
25689
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25692
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/services/person-meetings.js
|
|
25690
25693
|
var SCAN = 1e3;
|
|
25691
25694
|
var SNIPPET = 200;
|
|
25692
25695
|
var SNIPPET_ROWS = 6;
|
|
@@ -25751,7 +25754,7 @@ var personMeetings = /* @__PURE__ */ __name(async (store, people, accounts, { li
|
|
|
25751
25754
|
return { items, total: newest.length, hasMore: cut || newest.length > limit };
|
|
25752
25755
|
}, "personMeetings");
|
|
25753
25756
|
|
|
25754
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25757
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/services/person-context.js
|
|
25755
25758
|
var CONTEXT_MESSAGES2 = 10;
|
|
25756
25759
|
var CONTEXT_BYTES = 64 * 1024;
|
|
25757
25760
|
var toContext = /* @__PURE__ */ __name((key, message, chatTitle2) => ({
|
|
@@ -26057,10 +26060,10 @@ var personMessages = /* @__PURE__ */ __name(async (store, asked, reference, { ch
|
|
|
26057
26060
|
};
|
|
26058
26061
|
}, "personMessages");
|
|
26059
26062
|
|
|
26060
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26063
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/services/meeting-evidence.js
|
|
26061
26064
|
import { createHash } from "node:crypto";
|
|
26062
26065
|
|
|
26063
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26066
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/services/meeting-reference.js
|
|
26064
26067
|
var missing2 = /* @__PURE__ */ __name(() => new CliError("not_found", "the meeting evidence is unavailable for this account"), "missing");
|
|
26065
26068
|
var authorizedMeetingMetadata = /* @__PURE__ */ __name(async (store, accountId, reference, options2 = {}) => {
|
|
26066
26069
|
const parsed = parseMeetingReference(reference);
|
|
@@ -26078,7 +26081,7 @@ var authorizedMeetingMetadata = /* @__PURE__ */ __name(async (store, accountId,
|
|
|
26078
26081
|
return { parsed, meeting };
|
|
26079
26082
|
}, "authorizedMeetingMetadata");
|
|
26080
26083
|
|
|
26081
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26084
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/services/meeting-evidence.js
|
|
26082
26085
|
var hash = /* @__PURE__ */ __name((value) => createHash("sha256").update(JSON.stringify(value)).digest("hex"), "hash");
|
|
26083
26086
|
var checkMeetingCancelled = /* @__PURE__ */ __name((signal) => {
|
|
26084
26087
|
if (signal?.aborted)
|
|
@@ -26277,7 +26280,7 @@ var readMeetingEvidence = /* @__PURE__ */ __name(async (store, accountId, refere
|
|
|
26277
26280
|
return { ...packet, fingerprint: hash(packet) };
|
|
26278
26281
|
}, "readMeetingEvidence");
|
|
26279
26282
|
|
|
26280
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26283
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/services/person-meeting-context.js
|
|
26281
26284
|
var personMeetingContext = /* @__PURE__ */ __name(async (store, personReference, options2) => {
|
|
26282
26285
|
const { meetings = 10, cues = 5, bytes: bytes2 = 64 * 1024, scanLimit = 1e3, since, signal } = options2;
|
|
26283
26286
|
const requestedAccounts = options2.accountIds;
|
|
@@ -26376,7 +26379,7 @@ var personMeetingContext = /* @__PURE__ */ __name(async (store, personReference,
|
|
|
26376
26379
|
};
|
|
26377
26380
|
}, "personMeetingContext");
|
|
26378
26381
|
|
|
26379
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26382
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/services/person-preparation.js
|
|
26380
26383
|
var PREPARE_BYTES = 96 * 1024;
|
|
26381
26384
|
var MEETINGS = 5;
|
|
26382
26385
|
var CUES = 3;
|
|
@@ -26499,7 +26502,7 @@ var meetingsOf = /* @__PURE__ */ __name(async (store, uid, stored, since, left)
|
|
|
26499
26502
|
}
|
|
26500
26503
|
}, "meetingsOf");
|
|
26501
26504
|
|
|
26502
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26505
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/services/person-profile.js
|
|
26503
26506
|
var personProfile = /* @__PURE__ */ __name(async (deps, person, known2) => {
|
|
26504
26507
|
const online = deps.offline ? void 0 : await deps.connection();
|
|
26505
26508
|
const held = await storeIfOpen(deps);
|
|
@@ -26569,7 +26572,7 @@ var quiet = /* @__PURE__ */ __name((facts) => facts.chats.map(({ id: id3, title,
|
|
|
26569
26572
|
complete: false
|
|
26570
26573
|
})), "quiet");
|
|
26571
26574
|
|
|
26572
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26575
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/services/person-timeline.js
|
|
26573
26576
|
var TIMELINE_ITEMS = 50;
|
|
26574
26577
|
var TIMELINE_MAX = 500;
|
|
26575
26578
|
var SCOPES = ["personal", "work"];
|
|
@@ -26631,7 +26634,7 @@ var personTimeline = /* @__PURE__ */ __name(async (store, asked, reference, { sc
|
|
|
26631
26634
|
};
|
|
26632
26635
|
}, "personTimeline");
|
|
26633
26636
|
|
|
26634
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26637
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/services/chat-coverage.js
|
|
26635
26638
|
var chatCoverage = /* @__PURE__ */ __name(async (store, account, chatIds) => {
|
|
26636
26639
|
const ids = [...new Set(chatIds)];
|
|
26637
26640
|
if (ids.length === 0)
|
|
@@ -26657,7 +26660,7 @@ var chatCoverage = /* @__PURE__ */ __name(async (store, account, chatIds) => {
|
|
|
26657
26660
|
}));
|
|
26658
26661
|
}, "chatCoverage");
|
|
26659
26662
|
|
|
26660
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26663
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/context/evidence-response.js
|
|
26661
26664
|
var contextSourceKey = /* @__PURE__ */ __name((source) => JSON.stringify([source.kind, source.accountId, source.provider, source.account]), "contextSourceKey");
|
|
26662
26665
|
var validateContextEvidencePage = /* @__PURE__ */ __name((page, request) => {
|
|
26663
26666
|
const fail2 = /* @__PURE__ */ __name(() => {
|
|
@@ -26721,7 +26724,7 @@ var validateContextEvidencePage = /* @__PURE__ */ __name((page, request) => {
|
|
|
26721
26724
|
}
|
|
26722
26725
|
}, "validateContextEvidencePage");
|
|
26723
26726
|
|
|
26724
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26727
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/context/read-budget.js
|
|
26725
26728
|
var contextReadBudget = /* @__PURE__ */ __name((limits = {}) => {
|
|
26726
26729
|
if (!limits || typeof limits !== "object" || Array.isArray(limits))
|
|
26727
26730
|
throw new CliError("validation_error", "limits needs a context read allowance");
|
|
@@ -26774,7 +26777,7 @@ var contextReadBudget = /* @__PURE__ */ __name((limits = {}) => {
|
|
|
26774
26777
|
};
|
|
26775
26778
|
}, "contextReadBudget");
|
|
26776
26779
|
|
|
26777
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26780
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/services/context-evidence.js
|
|
26778
26781
|
var createContextEvidenceReader = /* @__PURE__ */ __name((port, allowed, limits) => {
|
|
26779
26782
|
if (!port || typeof port.read !== "function")
|
|
26780
26783
|
throw new CliError("configuration_error", "context evidence reader is unavailable");
|
|
@@ -26818,7 +26821,7 @@ var createContextEvidenceReader = /* @__PURE__ */ __name((port, allowed, limits)
|
|
|
26818
26821
|
};
|
|
26819
26822
|
}, "createContextEvidenceReader");
|
|
26820
26823
|
|
|
26821
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26824
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/services/project-gathering-around.js
|
|
26822
26825
|
var storedMessageNeighbours = /* @__PURE__ */ __name((messages) => ({
|
|
26823
26826
|
async around(ref, window2) {
|
|
26824
26827
|
const at2 = parseLocator(ref);
|
|
@@ -26913,7 +26916,7 @@ var storedNeighbours = /* @__PURE__ */ __name((store) => {
|
|
|
26913
26916
|
};
|
|
26914
26917
|
}, "storedNeighbours");
|
|
26915
26918
|
|
|
26916
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26919
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/services/project-gathering-request.js
|
|
26917
26920
|
import { createHash as createHash2 } from "node:crypto";
|
|
26918
26921
|
var DAY3 = 864e5;
|
|
26919
26922
|
var MAX_TIME = 864e13;
|
|
@@ -27229,7 +27232,7 @@ var decodeCheckpoint = /* @__PURE__ */ __name((text3, plan) => {
|
|
|
27229
27232
|
return value;
|
|
27230
27233
|
}, "decodeCheckpoint");
|
|
27231
27234
|
|
|
27232
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27235
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/services/project-gathering.js
|
|
27233
27236
|
var terminal = /* @__PURE__ */ new Set(["done", "unavailable", "failed"]);
|
|
27234
27237
|
var PAGE2 = 20;
|
|
27235
27238
|
var PEOPLE = 20;
|
|
@@ -27633,7 +27636,7 @@ var peopleOf = /* @__PURE__ */ __name((items, senderOf) => {
|
|
|
27633
27636
|
return [...byKey.values()].sort((a, b) => b.items - a.items || a.name.localeCompare(b.name));
|
|
27634
27637
|
}, "peopleOf");
|
|
27635
27638
|
|
|
27636
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27639
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/services/meeting-project-candidate-matching.js
|
|
27637
27640
|
var normalizedText = /* @__PURE__ */ __name((text3) => text3.normalize("NFKC").toLowerCase().replace(/\s+/gu, " "), "normalizedText");
|
|
27638
27641
|
var termsOf = /* @__PURE__ */ __name((entry) => [
|
|
27639
27642
|
{ name: entry.name, kind: "canonical" },
|
|
@@ -27677,7 +27680,7 @@ var matchVocabularyTerms = /* @__PURE__ */ __name((catalog, texts) => {
|
|
|
27677
27680
|
return result.sort((a, b) => Number(a.entry.id) - Number(b.entry.id));
|
|
27678
27681
|
}, "matchVocabularyTerms");
|
|
27679
27682
|
|
|
27680
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27683
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/services/project-gathering-mentions.js
|
|
27681
27684
|
var KINDS = ["project", "tag", "topic"];
|
|
27682
27685
|
var findEvidenceMentions = /* @__PURE__ */ __name(async (vocabulary, gathering, options2 = {}) => {
|
|
27683
27686
|
if (typeof vocabulary?.vocabulary !== "function")
|
|
@@ -27732,7 +27735,7 @@ var findEvidenceMentions = /* @__PURE__ */ __name(async (vocabulary, gathering,
|
|
|
27732
27735
|
};
|
|
27733
27736
|
}, "findEvidenceMentions");
|
|
27734
27737
|
|
|
27735
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27738
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/services/project-purposes.js
|
|
27736
27739
|
var BUILT_IN_PURPOSES = ["work", "sales", "support", "other"];
|
|
27737
27740
|
var DEFAULT_PURPOSES = ["work"];
|
|
27738
27741
|
var LINK_PURPOSE = "work";
|
|
@@ -27762,7 +27765,7 @@ var purposeList = /* @__PURE__ */ __name((value, previous = []) => [
|
|
|
27762
27765
|
...value.split(",").map((one) => one.trim()).filter(Boolean)
|
|
27763
27766
|
], "purposeList");
|
|
27764
27767
|
|
|
27765
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27768
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/services/stored-project-gathering.js
|
|
27766
27769
|
var storedChatCount = /* @__PURE__ */ __name((store) => async (account, chatId, { since, until }) => {
|
|
27767
27770
|
const window2 = { since: new Date(since).toISOString(), until: new Date(until - 1).toISOString() };
|
|
27768
27771
|
const [messages, newest, oldest] = await Promise.all([
|
|
@@ -28073,7 +28076,7 @@ var purposeHintOf = /* @__PURE__ */ __name((linked, rows, of) => {
|
|
|
28073
28076
|
return { chat: top.ref, relationship: link4.relationship, items, of };
|
|
28074
28077
|
}, "purposeHintOf");
|
|
28075
28078
|
|
|
28076
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28079
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/services/people.js
|
|
28077
28080
|
var peopleService = /* @__PURE__ */ __name((deps) => {
|
|
28078
28081
|
const localCard = /* @__PURE__ */ __name(async (card, includeNotes = false) => {
|
|
28079
28082
|
const held = await storeIfOpen(deps);
|
|
@@ -28338,7 +28341,7 @@ var withoutPhone = /* @__PURE__ */ __name((answer) => {
|
|
|
28338
28341
|
return rest;
|
|
28339
28342
|
}, "withoutPhone");
|
|
28340
28343
|
|
|
28341
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28344
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/services/task-stats.js
|
|
28342
28345
|
var TASK_STATS_BY = ["chat", "meeting", "project"];
|
|
28343
28346
|
var PERIOD_FIELD = "created";
|
|
28344
28347
|
var refuseNestedPeriod = /* @__PURE__ */ __name((node, top = true) => {
|
|
@@ -28469,7 +28472,7 @@ var meetingNames = /* @__PURE__ */ __name(async (store, groups) => {
|
|
|
28469
28472
|
}));
|
|
28470
28473
|
}, "meetingNames");
|
|
28471
28474
|
|
|
28472
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28475
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/services/task-tag-filters.js
|
|
28473
28476
|
var taskTagFilters = /* @__PURE__ */ __name(async (store, query) => {
|
|
28474
28477
|
const tags = /* @__PURE__ */ new Map();
|
|
28475
28478
|
for (const node of query ? walkQuery(query.root) : [])
|
|
@@ -28478,7 +28481,7 @@ var taskTagFilters = /* @__PURE__ */ __name(async (store, query) => {
|
|
|
28478
28481
|
return tags;
|
|
28479
28482
|
}, "taskTagFilters");
|
|
28480
28483
|
|
|
28481
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28484
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/services/tasks.js
|
|
28482
28485
|
var TASK_QUERY = {
|
|
28483
28486
|
entity: "task",
|
|
28484
28487
|
backend: "sql",
|
|
@@ -28978,7 +28981,7 @@ var taskView = /* @__PURE__ */ __name(async (store, account, task2) => {
|
|
|
28978
28981
|
};
|
|
28979
28982
|
}, "taskView");
|
|
28980
28983
|
|
|
28981
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28984
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/mail/owed.js
|
|
28982
28985
|
var mailTurn = /* @__PURE__ */ __name((newest) => {
|
|
28983
28986
|
if (newest === null)
|
|
28984
28987
|
return null;
|
|
@@ -28987,7 +28990,7 @@ var mailTurn = /* @__PURE__ */ __name((newest) => {
|
|
|
28987
28990
|
return newest.addressed ? "owed" : null;
|
|
28988
28991
|
}, "mailTurn");
|
|
28989
28992
|
|
|
28990
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28993
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/services/agenda-mail.js
|
|
28991
28994
|
var absent = /* @__PURE__ */ __name((error) => {
|
|
28992
28995
|
if (error instanceof CliError && error.code === "not_found")
|
|
28993
28996
|
return void 0;
|
|
@@ -29045,7 +29048,7 @@ var mailActivity = /* @__PURE__ */ __name(async (store, account, since, chats) =
|
|
|
29045
29048
|
};
|
|
29046
29049
|
}, "mailActivity");
|
|
29047
29050
|
|
|
29048
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29051
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/services/agenda.js
|
|
29049
29052
|
var DAY4 = 864e5;
|
|
29050
29053
|
var AGENDA_DEFAULTS = { unanswered: DAY4, waiting: 7 * DAY4 };
|
|
29051
29054
|
var CLAIMS = ["none", "mine", "others", "any"];
|
|
@@ -29299,22 +29302,22 @@ var agendaItem = /* @__PURE__ */ __name((shown) => {
|
|
|
29299
29302
|
};
|
|
29300
29303
|
}, "agendaItem");
|
|
29301
29304
|
|
|
29302
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29305
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/domain/vcard.js
|
|
29303
29306
|
var AS_WORD = new RegExp(`^${WORD_BODY}$`);
|
|
29304
29307
|
var encoder = new TextEncoder();
|
|
29305
29308
|
|
|
29306
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29309
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/services/media-archive.js
|
|
29307
29310
|
import { setTimeout as sleep3 } from "node:timers/promises";
|
|
29308
29311
|
|
|
29309
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29312
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/services/media-archive-files.js
|
|
29310
29313
|
import { lstat } from "node:fs/promises";
|
|
29311
29314
|
|
|
29312
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29315
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-store.js
|
|
29313
29316
|
import { createHash as createHash4, randomUUID as randomUUID3 } from "node:crypto";
|
|
29314
29317
|
import { open as open3, rename as rename2, unlink as unlink2 } from "node:fs/promises";
|
|
29315
29318
|
import { join as join7 } from "node:path";
|
|
29316
29319
|
|
|
29317
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29320
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-metadata.js
|
|
29318
29321
|
import { createHash as createHash3 } from "node:crypto";
|
|
29319
29322
|
var metadataLimit = 16384;
|
|
29320
29323
|
var partialIdentity = /* @__PURE__ */ __name((locator) => JSON.stringify([locator.provider, locator.account, locator.occurrenceId, locator.assetId]), "partialIdentity");
|
|
@@ -29374,7 +29377,7 @@ var readPartialMetadata = /* @__PURE__ */ __name(async (path2, locator, maxBytes
|
|
|
29374
29377
|
}
|
|
29375
29378
|
}, "readPartialMetadata");
|
|
29376
29379
|
|
|
29377
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29380
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-writer.js
|
|
29378
29381
|
import { randomUUID as randomUUID2 } from "node:crypto";
|
|
29379
29382
|
import { open as open2, rename, unlink } from "node:fs/promises";
|
|
29380
29383
|
import { join as join6 } from "node:path";
|
|
@@ -29466,7 +29469,7 @@ var partialWriter = /* @__PURE__ */ __name(async (input) => {
|
|
|
29466
29469
|
};
|
|
29467
29470
|
}, "partialWriter");
|
|
29468
29471
|
|
|
29469
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29472
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-store.js
|
|
29470
29473
|
var NativeRecordingPartialStore = class {
|
|
29471
29474
|
static {
|
|
29472
29475
|
__name(this, "NativeRecordingPartialStore");
|
|
@@ -29573,12 +29576,12 @@ var NativeRecordingPartialStore = class {
|
|
|
29573
29576
|
}
|
|
29574
29577
|
};
|
|
29575
29578
|
|
|
29576
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29579
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication.js
|
|
29577
29580
|
import { createHash as createHash5 } from "node:crypto";
|
|
29578
29581
|
import { link as link2 } from "node:fs/promises";
|
|
29579
29582
|
import { basename as basename2, dirname as dirname5, join as join9, resolve as resolve2 } from "node:path";
|
|
29580
29583
|
|
|
29581
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29584
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication-files.js
|
|
29582
29585
|
import { unlink as unlink3 } from "node:fs/promises";
|
|
29583
29586
|
var verifiedPublicationFile = /* @__PURE__ */ __name(async (path2, expected2, signal, writable = false) => {
|
|
29584
29587
|
signal?.throwIfAborted();
|
|
@@ -29613,7 +29616,7 @@ var commitPublication = /* @__PURE__ */ __name(async (root, partialPath, finalPa
|
|
|
29613
29616
|
signal?.throwIfAborted();
|
|
29614
29617
|
}, "commitPublication");
|
|
29615
29618
|
|
|
29616
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29619
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication-journal.js
|
|
29617
29620
|
import { randomUUID as randomUUID4 } from "node:crypto";
|
|
29618
29621
|
import { open as open4, rename as rename3, unlink as unlink4 } from "node:fs/promises";
|
|
29619
29622
|
import { join as join8 } from "node:path";
|
|
@@ -29686,7 +29689,7 @@ var writePublicationJournal = /* @__PURE__ */ __name(async (root, path2, prefix,
|
|
|
29686
29689
|
}
|
|
29687
29690
|
}, "writePublicationJournal");
|
|
29688
29691
|
|
|
29689
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29692
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication.js
|
|
29690
29693
|
var NativeRecordingPublication = class {
|
|
29691
29694
|
static {
|
|
29692
29695
|
__name(this, "NativeRecordingPublication");
|
|
@@ -29759,7 +29762,7 @@ var NativeRecordingPublication = class {
|
|
|
29759
29762
|
}
|
|
29760
29763
|
};
|
|
29761
29764
|
|
|
29762
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29765
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/services/media-archive-manifest.js
|
|
29763
29766
|
import { createHash as createHash6 } from "node:crypto";
|
|
29764
29767
|
import { readdir } from "node:fs/promises";
|
|
29765
29768
|
import { isAbsolute as isAbsolute2, join as join10, resolve as resolve3 } from "node:path";
|
|
@@ -29846,7 +29849,7 @@ var commitMediaEntry = /* @__PURE__ */ __name((root, one, beforePublish) => writ
|
|
|
29846
29849
|
beforePublish
|
|
29847
29850
|
}), "commitMediaEntry");
|
|
29848
29851
|
|
|
29849
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29852
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/services/media-archive-files.js
|
|
29850
29853
|
var validator = '"media-completed-v1"';
|
|
29851
29854
|
var maximumFileBytes = 64 * 1024 * 1024 * 1024;
|
|
29852
29855
|
var archiveMediaFile = /* @__PURE__ */ __name(async (root, identity, kind2, file2, beforeWrite, signal, metadata = {}) => {
|
|
@@ -29947,7 +29950,7 @@ var archiveMediaFile = /* @__PURE__ */ __name(async (root, identity, kind2, file
|
|
|
29947
29950
|
return entry;
|
|
29948
29951
|
}, "archiveMediaFile");
|
|
29949
29952
|
|
|
29950
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29953
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/services/media-archive-locks.js
|
|
29951
29954
|
import { mkdir, realpath } from "node:fs/promises";
|
|
29952
29955
|
import { join as join11, resolve as resolve4 } from "node:path";
|
|
29953
29956
|
var archiveLocations = /* @__PURE__ */ __name(async (initial, signal) => {
|
|
@@ -30014,7 +30017,7 @@ var withMediaArchiveLocks = /* @__PURE__ */ __name(async (directory2, signal, ru
|
|
|
30014
30017
|
throw new CliError("validation_error", "archive locations changed during locking; run the command again");
|
|
30015
30018
|
}, "withMediaArchiveLocks");
|
|
30016
30019
|
|
|
30017
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30020
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/services/media-archive.js
|
|
30018
30021
|
var checkMediaArchive = /* @__PURE__ */ __name((directory2, signal) => withMediaArchiveLocks(directory2, signal, async (root) => {
|
|
30019
30022
|
const entries = await readMediaManifests(root, signal);
|
|
30020
30023
|
if (!entries.length)
|
|
@@ -30157,7 +30160,7 @@ var archiveMedia = /* @__PURE__ */ __name(async (ports, options2) => {
|
|
|
30157
30160
|
}, { create: true });
|
|
30158
30161
|
}, "archiveMedia");
|
|
30159
30162
|
|
|
30160
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30163
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/services/media-archive-move.js
|
|
30161
30164
|
import { realpath as realpath2, unlink as unlink5 } from "node:fs/promises";
|
|
30162
30165
|
import { basename as basename3, dirname as dirname6, join as join12, resolve as resolve5 } from "node:path";
|
|
30163
30166
|
var canonicalDestination = /* @__PURE__ */ __name(async (directory2) => {
|
|
@@ -30308,7 +30311,7 @@ var moveMediaArchive = /* @__PURE__ */ __name(async (options2) => {
|
|
|
30308
30311
|
}, { additional: [target2], createAdditional: !options2.dryRun });
|
|
30309
30312
|
}, "moveMediaArchive");
|
|
30310
30313
|
|
|
30311
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30314
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/services/model-downloads.js
|
|
30312
30315
|
import { writeFileSync as writeFileSync3 } from "node:fs";
|
|
30313
30316
|
import { join as join13 } from "node:path";
|
|
30314
30317
|
var bytesOf = /* @__PURE__ */ __name((model) => model.files.reduce((sum2, file2) => sum2 + file2.bytes, 0), "bytesOf");
|
|
@@ -30333,7 +30336,7 @@ var downloadTextModel = /* @__PURE__ */ __name(async (id3, { env, progress = /*
|
|
|
30333
30336
|
`);
|
|
30334
30337
|
await nativeRuntime({ env, progress });
|
|
30335
30338
|
progress(`${model.id}: loading it once to check it works`);
|
|
30336
|
-
const { openEmbedder: openEmbedder2 } = await import("./embed-
|
|
30339
|
+
const { openEmbedder: openEmbedder2 } = await import("./embed-MYNNE2KU.js");
|
|
30337
30340
|
const embedder = await openEmbedder2(model, directory2);
|
|
30338
30341
|
try {
|
|
30339
30342
|
const [vector] = await embedder.embed(["check"], "query");
|
|
@@ -30354,7 +30357,7 @@ var downloadRerankModel = /* @__PURE__ */ __name(async (id3, { env, progress = /
|
|
|
30354
30357
|
}
|
|
30355
30358
|
await nativeRuntime({ env, progress });
|
|
30356
30359
|
progress(`${model.id}: loading it once to check it works`);
|
|
30357
|
-
const { openReranker } = await import("./rerank-
|
|
30360
|
+
const { openReranker } = await import("./rerank-JNDOOOIZ.js");
|
|
30358
30361
|
const reranker = await openReranker(model, directory2);
|
|
30359
30362
|
try {
|
|
30360
30363
|
await reranker.score("check", ["check"]);
|
|
@@ -30372,7 +30375,7 @@ var downloadImageModel = /* @__PURE__ */ __name(async (id3, { env, progress = /*
|
|
|
30372
30375
|
await installFiles(placedImage(model, directory2), { progress, ...bytes2 ? { bytes: bytes2 } : {} });
|
|
30373
30376
|
}
|
|
30374
30377
|
progress(`${model.id}: loading it once to check it works`);
|
|
30375
|
-
const { openPictureEmbedder } = await import("./embedder-
|
|
30378
|
+
const { openPictureEmbedder } = await import("./embedder-MZM52STR.js");
|
|
30376
30379
|
const embedder = await openPictureEmbedder(model, directory2);
|
|
30377
30380
|
try {
|
|
30378
30381
|
const vector = await embedder.embedQuery("check");
|
|
@@ -30384,7 +30387,7 @@ var downloadImageModel = /* @__PURE__ */ __name(async (id3, { env, progress = /*
|
|
|
30384
30387
|
return { model, directory: directory2 };
|
|
30385
30388
|
}, "downloadImageModel");
|
|
30386
30389
|
|
|
30387
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30390
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/domain/money-words.js
|
|
30388
30391
|
var MONEY_REQUEST = "money-request";
|
|
30389
30392
|
var MONEY_DONE = "money-done";
|
|
30390
30393
|
var PROMISE = "promise";
|
|
@@ -30418,10 +30421,10 @@ var MONEY_WORDS = [
|
|
|
30418
30421
|
}
|
|
30419
30422
|
];
|
|
30420
30423
|
|
|
30421
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30424
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/services/money-words.js
|
|
30422
30425
|
var moneyClassesOf = /* @__PURE__ */ __name((text3) => listsHit(text3, MONEY_WORDS), "moneyClassesOf");
|
|
30423
30426
|
|
|
30424
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30427
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/domain/status-words.js
|
|
30425
30428
|
var words2 = /* @__PURE__ */ __name((forms) => new RegExp(`(?<![\\p{L}\\p{N}])(?:${forms.join("|")})(?![\\p{L}\\p{N}])`, "iu"), "words");
|
|
30426
30429
|
var MONEY_DONE_FORMS = words2([
|
|
30427
30430
|
"\u043E\u043F\u043B\u0430\u0442\u0438\u043B[\u0430\u0438]?",
|
|
@@ -30461,7 +30464,7 @@ var PROMISE_FORMS = words2([
|
|
|
30461
30464
|
"estar\xE1 listo"
|
|
30462
30465
|
]);
|
|
30463
30466
|
|
|
30464
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30467
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/services/project-status/items.js
|
|
30465
30468
|
var EXCERPT_CHARS = 80;
|
|
30466
30469
|
var excerpt2 = /* @__PURE__ */ __name((text3) => {
|
|
30467
30470
|
const flat = text3.replace(/\s+/g, " ").trim();
|
|
@@ -30483,7 +30486,7 @@ var whoOf = /* @__PURE__ */ __name((message) => ({
|
|
|
30483
30486
|
var fromOwner = /* @__PURE__ */ __name((message) => message.outgoing === true, "fromOwner");
|
|
30484
30487
|
var day = /* @__PURE__ */ __name((at2) => new Date(at2).toISOString().slice(0, 10), "day");
|
|
30485
30488
|
|
|
30486
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30489
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/services/project-status/signals/amounts.js
|
|
30487
30490
|
var MONEY = DEFAULT_TASK_CATEGORIES.filter((category) => category.name === "money");
|
|
30488
30491
|
var verbOf = /* @__PURE__ */ __name((text3) => {
|
|
30489
30492
|
if (MONEY_DONE_FORMS.test(text3))
|
|
@@ -30564,7 +30567,7 @@ var amounts = {
|
|
|
30564
30567
|
attention: /* @__PURE__ */ __name((items) => items.flatMap((item2) => item2.chat !== null && item2.data.state === "asked" ? [{ chat: item2.chat, weight: 2, why: "money asked" }] : []), "attention")
|
|
30565
30568
|
};
|
|
30566
30569
|
|
|
30567
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30570
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/services/project-status/signals/children.js
|
|
30568
30571
|
var children = {
|
|
30569
30572
|
id: "children",
|
|
30570
30573
|
version: 1,
|
|
@@ -30593,7 +30596,7 @@ var children = {
|
|
|
30593
30596
|
}, "read")
|
|
30594
30597
|
};
|
|
30595
30598
|
|
|
30596
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30599
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/services/project-status/signals/coverage.js
|
|
30597
30600
|
var coverage = {
|
|
30598
30601
|
id: "coverage",
|
|
30599
30602
|
version: 1,
|
|
@@ -30622,7 +30625,7 @@ var coverage = {
|
|
|
30622
30625
|
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")
|
|
30623
30626
|
};
|
|
30624
30627
|
|
|
30625
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30628
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/services/project-status/signals/payments.js
|
|
30626
30629
|
var holding2 = /* @__PURE__ */ __name((row) => row.review !== "rejected", "holding");
|
|
30627
30630
|
var item = /* @__PURE__ */ __name((row, at2, data) => ({
|
|
30628
30631
|
signal: "payments",
|
|
@@ -30672,7 +30675,7 @@ var payments = {
|
|
|
30672
30675
|
}, "read")
|
|
30673
30676
|
};
|
|
30674
30677
|
|
|
30675
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30678
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/services/project-status/signals/promises.js
|
|
30676
30679
|
var PATTERNS_PER_CHAT = 3;
|
|
30677
30680
|
var DAY5 = 864e5;
|
|
30678
30681
|
var KINDS2 = /* @__PURE__ */ new Set(["promise", "request"]);
|
|
@@ -30761,7 +30764,7 @@ var promises = {
|
|
|
30761
30764
|
}, "read")
|
|
30762
30765
|
};
|
|
30763
30766
|
|
|
30764
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30767
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/services/project-status/signals/questions.js
|
|
30765
30768
|
var PER_SIDE = 5;
|
|
30766
30769
|
var WEEK = 7 * 864e5;
|
|
30767
30770
|
var NOBODY = /* @__PURE__ */ new Set();
|
|
@@ -30792,7 +30795,7 @@ var questions2 = {
|
|
|
30792
30795
|
}, "attention")
|
|
30793
30796
|
};
|
|
30794
30797
|
|
|
30795
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30798
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/services/project-status/signals/reply-next.js
|
|
30796
30799
|
var targetOf = /* @__PURE__ */ __name((message, chat, owners) => {
|
|
30797
30800
|
const byId2 = /* @__PURE__ */ __name((id3) => chat.messages.find((one) => one.id === id3), "byId");
|
|
30798
30801
|
const quoted = message.replyTo ?? (message.replyToId === void 0 ? void 0 : byId2(message.replyToId));
|
|
@@ -30860,7 +30863,7 @@ var replyNext = {
|
|
|
30860
30863
|
attention: /* @__PURE__ */ __name((items) => items.flatMap((item2) => item2.chat !== null && item2.data.next === "owner" ? [{ chat: item2.chat, weight: 2, why: "your move" }] : []), "attention")
|
|
30861
30864
|
};
|
|
30862
30865
|
|
|
30863
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30866
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/services/project-status/signals/topics.js
|
|
30864
30867
|
var escaped = /* @__PURE__ */ __name((text3) => text3.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), "escaped");
|
|
30865
30868
|
var wholeWord = /* @__PURE__ */ __name((word) => new RegExp(`(?<![\\p{L}\\p{N}])${escaped(word)}(?![\\p{L}\\p{N}])`, "u"), "wholeWord");
|
|
30866
30869
|
var matcherOf = /* @__PURE__ */ __name((query) => {
|
|
@@ -30906,7 +30909,7 @@ var topics = {
|
|
|
30906
30909
|
}, "read")
|
|
30907
30910
|
};
|
|
30908
30911
|
|
|
30909
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30912
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/services/project-status/signals/index.js
|
|
30910
30913
|
var STATUS_SIGNALS = [
|
|
30911
30914
|
replyNext,
|
|
30912
30915
|
questions2,
|
|
@@ -30918,7 +30921,7 @@ var STATUS_SIGNALS = [
|
|
|
30918
30921
|
children
|
|
30919
30922
|
];
|
|
30920
30923
|
|
|
30921
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30924
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/services/project-status/index.js
|
|
30922
30925
|
var DAY6 = 864e5;
|
|
30923
30926
|
var STATUS_WINDOW = 300;
|
|
30924
30927
|
var STATUS_CHATS = 16;
|
|
@@ -31107,7 +31110,7 @@ var projectStatus = /* @__PURE__ */ __name(async (store, input) => {
|
|
|
31107
31110
|
};
|
|
31108
31111
|
}, "projectStatus");
|
|
31109
31112
|
|
|
31110
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31113
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/services/account.js
|
|
31111
31114
|
var accountService = /* @__PURE__ */ __name((deps) => {
|
|
31112
31115
|
const online = /* @__PURE__ */ __name(async (command) => {
|
|
31113
31116
|
if (deps.offline)
|
|
@@ -31179,7 +31182,7 @@ var accountService = /* @__PURE__ */ __name((deps) => {
|
|
|
31179
31182
|
};
|
|
31180
31183
|
}, "accountService");
|
|
31181
31184
|
|
|
31182
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31185
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/domain/send-time.js
|
|
31183
31186
|
var sendTime = /* @__PURE__ */ __name((value, now = Date.now(), flag = "--at-time", zone) => {
|
|
31184
31187
|
const at2 = aheadOf(value, flag, now, {
|
|
31185
31188
|
...zone === void 0 ? {} : { zone },
|
|
@@ -31190,7 +31193,7 @@ var sendTime = /* @__PURE__ */ __name((value, now = Date.now(), flag = "--at-tim
|
|
|
31190
31193
|
return new Date(at2 - at2 % MINUTE).toISOString();
|
|
31191
31194
|
}, "sendTime");
|
|
31192
31195
|
|
|
31193
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31196
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/services/admin.js
|
|
31194
31197
|
var recordMembership = /* @__PURE__ */ __name(async (deps, operationId, done2, change, fix, write2) => {
|
|
31195
31198
|
try {
|
|
31196
31199
|
const held = await accountStoreIfOpen(deps);
|
|
@@ -31437,7 +31440,7 @@ var linkLimits = /* @__PURE__ */ __name(({ approval, expires, maxUses }) => {
|
|
|
31437
31440
|
return expires === void 0 ? void 0 : sendTime(expires, Date.now(), "--expire-time");
|
|
31438
31441
|
}, "linkLimits");
|
|
31439
31442
|
|
|
31440
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31443
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/services/mail-search.js
|
|
31441
31444
|
var THREADS_PAGE = 500;
|
|
31442
31445
|
var threadsOf = /* @__PURE__ */ __name(async (store, key) => {
|
|
31443
31446
|
const account = await store.accounts.storedAccount(key).catch(() => void 0);
|
|
@@ -31512,7 +31515,7 @@ var readMail = /* @__PURE__ */ __name(async (store, locator, { before = 0, after
|
|
|
31512
31515
|
return thread.slice(Math.max(0, at2 - before), at2 + after + 1).map((hit) => hit.id === message ? { ...hit, anchor: true } : hit);
|
|
31513
31516
|
}, "readMail");
|
|
31514
31517
|
|
|
31515
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31518
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/services/messages-search.js
|
|
31516
31519
|
var PERSON_FIELDS = /* @__PURE__ */ new Set(["from", "to", "cc", "bcc"]);
|
|
31517
31520
|
var MAIL_FIELDS = /* @__PURE__ */ new Set(["to", "cc", "bcc", "subject", "mailbox", "label", "is", "list"]);
|
|
31518
31521
|
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");
|
|
@@ -31885,7 +31888,7 @@ var statsLucene = /* @__PURE__ */ __name(async (store, account, request, messeng
|
|
|
31885
31888
|
};
|
|
31886
31889
|
}, "statsLucene");
|
|
31887
31890
|
|
|
31888
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31891
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/services/rankings-selection.js
|
|
31889
31892
|
var RANKING_SELECTION_BYTES = 64 * 1024;
|
|
31890
31893
|
var object2 = /* @__PURE__ */ __name((value) => value !== null && typeof value === "object" && !Array.isArray(value) ? value : void 0, "object");
|
|
31891
31894
|
function invalid3(message = "ranking selection is invalid \u2014 obtain a new drilldown from stats top") {
|
|
@@ -32054,7 +32057,7 @@ var readRankingSelection = /* @__PURE__ */ __name(async (store, input) => {
|
|
|
32054
32057
|
};
|
|
32055
32058
|
}, "readRankingSelection");
|
|
32056
32059
|
|
|
32057
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32060
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/services/search-record.js
|
|
32058
32061
|
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");
|
|
32059
32062
|
var searchRecordOf = /* @__PURE__ */ __name((command, params) => ({
|
|
32060
32063
|
command,
|
|
@@ -32064,7 +32067,7 @@ var searchRecordOf = /* @__PURE__ */ __name((command, params) => ({
|
|
|
32064
32067
|
fieldsVersion: FIELD_VERSION
|
|
32065
32068
|
}), "searchRecordOf");
|
|
32066
32069
|
|
|
32067
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32070
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/services/admin-statistics.js
|
|
32068
32071
|
function invalid4(message) {
|
|
32069
32072
|
throw new CliError("validation_error", message);
|
|
32070
32073
|
}
|
|
@@ -32358,7 +32361,7 @@ var adminStatisticsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
32358
32361
|
}, "evidence")
|
|
32359
32362
|
}), "adminStatisticsService");
|
|
32360
32363
|
|
|
32361
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32364
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/services/archive-gaps.js
|
|
32362
32365
|
import { createHash as createHash7, randomUUID as randomUUID5 } from "node:crypto";
|
|
32363
32366
|
var GAP_BOUNDS = { maxGaps: 5, limit: 500, timeMs: 3e4 };
|
|
32364
32367
|
var validateRepair = /* @__PURE__ */ __name((messenger, options2) => {
|
|
@@ -32495,12 +32498,12 @@ var gapsService = /* @__PURE__ */ __name((deps) => {
|
|
|
32495
32498
|
return { plan, repair };
|
|
32496
32499
|
}, "gapsService");
|
|
32497
32500
|
|
|
32498
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32501
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/services/attachments.js
|
|
32499
32502
|
import { createHash as createHash10 } from "node:crypto";
|
|
32500
32503
|
import { constants as constants2, mkdirSync as mkdirSync5 } from "node:fs";
|
|
32501
32504
|
import { lstat as lstat5, open as open6, readFile as readFile2, stat as stat2 } from "node:fs/promises";
|
|
32502
32505
|
|
|
32503
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32506
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/attachments/directory.js
|
|
32504
32507
|
import { lstat as lstat2, readdir as readdir2, realpath as realpath3 } from "node:fs/promises";
|
|
32505
32508
|
import { basename as basename4, join as join14, relative as relative2, sep as sep2 } from "node:path";
|
|
32506
32509
|
var MAX_FILES = 1e4;
|
|
@@ -32571,15 +32574,15 @@ var directoryPaths = /* @__PURE__ */ __name(async (store, chat, directory2, app,
|
|
|
32571
32574
|
return choices;
|
|
32572
32575
|
}, "directoryPaths");
|
|
32573
32576
|
|
|
32574
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32577
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/attachments/documents.js
|
|
32575
32578
|
import { posix } from "node:path";
|
|
32576
32579
|
|
|
32577
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32580
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/attachments/container.js
|
|
32578
32581
|
import { setImmediate as tick } from "node:timers/promises";
|
|
32579
32582
|
import { crc32 } from "node:zlib";
|
|
32580
32583
|
var import_xmldom = __toESM(require_lib(), 1);
|
|
32581
32584
|
|
|
32582
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32585
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/attachments/encoding.js
|
|
32583
32586
|
var import_chardet = __toESM(require_lib2(), 1);
|
|
32584
32587
|
var import_iconv_lite = __toESM(require_lib3(), 1);
|
|
32585
32588
|
var SAMPLE = 65536;
|
|
@@ -32681,7 +32684,7 @@ var decodeXml = /* @__PURE__ */ __name((bytes2) => {
|
|
|
32681
32684
|
return result.text;
|
|
32682
32685
|
}, "decodeXml");
|
|
32683
32686
|
|
|
32684
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32687
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/attachments/container.js
|
|
32685
32688
|
var MAX_PART = 10 * 1024 * 1024;
|
|
32686
32689
|
var MAX_ENTRIES = 1e3;
|
|
32687
32690
|
var decoder = new TextDecoder("utf-8", { fatal: true });
|
|
@@ -32896,7 +32899,7 @@ var elements = /* @__PURE__ */ __name((node, name, namespace) => {
|
|
|
32896
32899
|
return found;
|
|
32897
32900
|
}, "elements");
|
|
32898
32901
|
|
|
32899
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32902
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/attachments/sheets.js
|
|
32900
32903
|
var columnName = /* @__PURE__ */ __name((column) => {
|
|
32901
32904
|
let name = "";
|
|
32902
32905
|
for (let rest = column; rest > 0; rest = Math.floor((rest - 1) / 26))
|
|
@@ -32951,7 +32954,7 @@ var sheetText = /* @__PURE__ */ __name((sheets2, maxChars = MAX_TEXT_CHARS) => {
|
|
|
32951
32954
|
return { text: parts.join("").trim(), truncated: false };
|
|
32952
32955
|
}, "sheetText");
|
|
32953
32956
|
|
|
32954
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32957
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/attachments/documents.js
|
|
32955
32958
|
var OFFICE = "urn:oasis:names:tc:opendocument:xmlns:office:1.0";
|
|
32956
32959
|
var TEXT = "urn:oasis:names:tc:opendocument:xmlns:text:1.0";
|
|
32957
32960
|
var TABLE = "urn:oasis:names:tc:opendocument:xmlns:table:1.0";
|
|
@@ -33351,10 +33354,10 @@ var readDocument = /* @__PURE__ */ __name(async (bytes2, kind2, signal) => {
|
|
|
33351
33354
|
}
|
|
33352
33355
|
}, "readDocument");
|
|
33353
33356
|
|
|
33354
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33357
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/attachments/extract.js
|
|
33355
33358
|
import { extname as extname3 } from "node:path";
|
|
33356
33359
|
|
|
33357
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33360
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/readers/engine.js
|
|
33358
33361
|
import { readFileSync as readFileSync7 } from "node:fs";
|
|
33359
33362
|
import { dirname as dirname7, extname as extname2, join as join15 } from "node:path";
|
|
33360
33363
|
import { fileURLToPath } from "node:url";
|
|
@@ -33415,7 +33418,7 @@ var derived = /* @__PURE__ */ __name((bytes2, extractor, read2) => {
|
|
|
33415
33418
|
}
|
|
33416
33419
|
}, "derived");
|
|
33417
33420
|
|
|
33418
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33421
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/readers/image/index.js
|
|
33419
33422
|
var IMAGES = /* @__PURE__ */ new Set([".jpg", ".jpeg", ".png", ".webp", ".gif", ".heic", ".tif", ".tiff", ".bmp"]);
|
|
33420
33423
|
var image2 = {
|
|
33421
33424
|
id: "image",
|
|
@@ -33424,7 +33427,7 @@ var image2 = {
|
|
|
33424
33427
|
read: /* @__PURE__ */ __name(async () => ({ status: "needs-agent" }), "read")
|
|
33425
33428
|
};
|
|
33426
33429
|
|
|
33427
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33430
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/readers/doc/index.js
|
|
33428
33431
|
var OLE = "\xD0\xCF\xE0\xA1\xB1\xE1";
|
|
33429
33432
|
var doc = {
|
|
33430
33433
|
id: "doc",
|
|
@@ -33436,7 +33439,7 @@ var doc = {
|
|
|
33436
33439
|
}), "read")
|
|
33437
33440
|
};
|
|
33438
33441
|
|
|
33439
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33442
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/readers/docx/index.js
|
|
33440
33443
|
var DOCX = "application/vnd.openxmlformats-officedocument.wordprocessingml.document";
|
|
33441
33444
|
var docx = {
|
|
33442
33445
|
id: "docx",
|
|
@@ -33449,10 +33452,10 @@ var docx = {
|
|
|
33449
33452
|
}), "read")
|
|
33450
33453
|
};
|
|
33451
33454
|
|
|
33452
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33455
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/attachments/markup.js
|
|
33453
33456
|
var import_iconv_lite2 = __toESM(require_lib3(), 1);
|
|
33454
33457
|
|
|
33455
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33458
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/domain/html-entities.js
|
|
33456
33459
|
var NAMED = {
|
|
33457
33460
|
amp: "&",
|
|
33458
33461
|
lt: "<",
|
|
@@ -33504,7 +33507,7 @@ var decodeEntities = /* @__PURE__ */ __name((text3) => text3.replace(/&(#x[0-9a-
|
|
|
33504
33507
|
return body[1] === "x" || body[1] === "X" ? character(Number.parseInt(body.slice(2), 16), entity2) : character(Number(body.slice(1)), entity2);
|
|
33505
33508
|
}), "decodeEntities");
|
|
33506
33509
|
|
|
33507
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33510
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/attachments/markup.js
|
|
33508
33511
|
var RTF_SKIPPED = /* @__PURE__ */ new Set([
|
|
33509
33512
|
"fonttbl",
|
|
33510
33513
|
"colortbl",
|
|
@@ -33670,7 +33673,7 @@ var htmlText = /* @__PURE__ */ __name((source) => {
|
|
|
33670
33673
|
return decodeEntities(replaceTags(blocks, /<[^>]*>/g, "")).replace(/(?<![ \t\u00a0])[ \t\u00a0]+\n/g, "\n").replace(/\n{3,}/g, "\n\n").trim();
|
|
33671
33674
|
}, "htmlText");
|
|
33672
33675
|
|
|
33673
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33676
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/readers/html/page.js
|
|
33674
33677
|
var clean = /* @__PURE__ */ __name((value) => typeof value === "string" ? value.replace(/\s+/g, " ").trim() : "", "clean");
|
|
33675
33678
|
var namesIn = /* @__PURE__ */ __name((value) => [value].flat().map((entry) => typeof entry === "string" ? clean(entry) : clean(entry?.name)).filter(Boolean).join(", "), "namesIn");
|
|
33676
33679
|
var jsonLdNodes = /* @__PURE__ */ __name((document) => {
|
|
@@ -33726,7 +33729,7 @@ var markdownSections = /* @__PURE__ */ __name((text3) => {
|
|
|
33726
33729
|
return found.map((section, index) => ({ ...section, end: found[index + 1]?.start ?? text3.length }));
|
|
33727
33730
|
}, "markdownSections");
|
|
33728
33731
|
|
|
33729
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33732
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/readers/html/index.js
|
|
33730
33733
|
var HTML = /* @__PURE__ */ new Set([".html", ".htm", ".xhtml"]);
|
|
33731
33734
|
var first = /* @__PURE__ */ __name((...values) => values.find((value) => typeof value === "string" && value !== ""), "first");
|
|
33732
33735
|
var loaded = /* @__PURE__ */ __name(async (load, name) => {
|
|
@@ -33797,7 +33800,7 @@ var html = {
|
|
|
33797
33800
|
}, "read")
|
|
33798
33801
|
};
|
|
33799
33802
|
|
|
33800
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33803
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/readers/office/index.js
|
|
33801
33804
|
var office = {
|
|
33802
33805
|
id: "office",
|
|
33803
33806
|
version: documentExtractor("odt"),
|
|
@@ -33808,7 +33811,7 @@ var office = {
|
|
|
33808
33811
|
}, "read")
|
|
33809
33812
|
};
|
|
33810
33813
|
|
|
33811
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33814
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/readers/pdf/index.js
|
|
33812
33815
|
var pdf = {
|
|
33813
33816
|
id: "pdf",
|
|
33814
33817
|
version: "unpdf",
|
|
@@ -33875,7 +33878,7 @@ var pdf = {
|
|
|
33875
33878
|
}), "read")
|
|
33876
33879
|
};
|
|
33877
33880
|
|
|
33878
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33881
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/readers/plain/index.js
|
|
33879
33882
|
var PLAIN = /* @__PURE__ */ new Set([".txt", ".md", ".markdown", ".csv", ".tsv", ".json", ".log"]);
|
|
33880
33883
|
var isPlain = /* @__PURE__ */ __name((hint) => PLAIN.has(extensionOf(hint)) || hint.mime?.startsWith("text/") || hint.mime === "application/json", "isPlain");
|
|
33881
33884
|
var readPlain = /* @__PURE__ */ __name((bytes2) => {
|
|
@@ -33895,7 +33898,7 @@ var plain = {
|
|
|
33895
33898
|
read: /* @__PURE__ */ __name(async (bytes2) => readPlain(bytes2), "read")
|
|
33896
33899
|
};
|
|
33897
33900
|
|
|
33898
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33901
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/readers/rtf/index.js
|
|
33899
33902
|
var rtf = {
|
|
33900
33903
|
id: "rtf",
|
|
33901
33904
|
version: "v1",
|
|
@@ -33903,10 +33906,10 @@ var rtf = {
|
|
|
33903
33906
|
read: /* @__PURE__ */ __name(async (bytes2) => derived(bytes2, "rtf:v1", rtfText), "read")
|
|
33904
33907
|
};
|
|
33905
33908
|
|
|
33906
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33909
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/readers/sheets/index.js
|
|
33907
33910
|
import { basename as basename5 } from "node:path";
|
|
33908
33911
|
|
|
33909
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33912
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/attachments/csv-spans.js
|
|
33910
33913
|
var delimitedSpans = /* @__PURE__ */ __name((text3, delimiter, maxCells = 1e4) => {
|
|
33911
33914
|
const cells = [];
|
|
33912
33915
|
let row = 1, column = 1, start = 0, quoted = false, truncated = false;
|
|
@@ -33944,7 +33947,7 @@ var delimitedSpans = /* @__PURE__ */ __name((text3, delimiter, maxCells = 1e4) =
|
|
|
33944
33947
|
return { cells, truncated };
|
|
33945
33948
|
}, "delimitedSpans");
|
|
33946
33949
|
|
|
33947
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33950
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/readers/sheets/index.js
|
|
33948
33951
|
var DELIMITED = {
|
|
33949
33952
|
".csv": ",",
|
|
33950
33953
|
".tsv": " ",
|
|
@@ -33983,7 +33986,7 @@ var sheets = {
|
|
|
33983
33986
|
}, "read")
|
|
33984
33987
|
};
|
|
33985
33988
|
|
|
33986
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33989
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/readers/registry.js
|
|
33987
33990
|
var BUILT_INS2 = [office, pdf, docx, doc, rtf, html, sheets, plain, image2];
|
|
33988
33991
|
var HEAD_BYTES = 1024;
|
|
33989
33992
|
var readers = [...BUILT_INS2];
|
|
@@ -33993,7 +33996,7 @@ var readWithRegistry = /* @__PURE__ */ __name(async (bytes2, hint, context2) =>
|
|
|
33993
33996
|
return reader ? reader.read(bytes2, hint, context2) : { status: "unsupported" };
|
|
33994
33997
|
}, "readWithRegistry");
|
|
33995
33998
|
|
|
33996
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33999
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/attachments/extract.js
|
|
33997
34000
|
var importEngine = /* @__PURE__ */ __name((name) => importFrom(new URL("attachments/extract.js", import.meta.resolve("@wirecat/cli-core")).href, name), "importEngine");
|
|
33998
34001
|
var extensionOf2 = /* @__PURE__ */ __name(({ name, path: path2 }) => extname3(name ?? path2).toLowerCase(), "extensionOf");
|
|
33999
34002
|
var extractText = /* @__PURE__ */ __name(async (bytes2, hint, load, signal, env = process.env) => {
|
|
@@ -35072,7 +35075,7 @@ function imageSize(input) {
|
|
|
35072
35075
|
}
|
|
35073
35076
|
__name(imageSize, "imageSize");
|
|
35074
35077
|
|
|
35075
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35078
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/attachments/ocr.js
|
|
35076
35079
|
var MAX_PAGES = 20;
|
|
35077
35080
|
var MAX_PIXELS = 2e7;
|
|
35078
35081
|
var cancelled2 = /* @__PURE__ */ __name((signal) => {
|
|
@@ -35232,7 +35235,7 @@ var ocrPdf = /* @__PURE__ */ __name(async (bytes2, pipeline2, load, signal) => {
|
|
|
35232
35235
|
}
|
|
35233
35236
|
}, "ocrPdf");
|
|
35234
35237
|
|
|
35235
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35238
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/attachments/pdf-preview.js
|
|
35236
35239
|
var pdfPreview = /* @__PURE__ */ __name(async (bytes2, page, signal, load = importEngine, env = process.env) => {
|
|
35237
35240
|
const limits = pdfPreviewLimits(env);
|
|
35238
35241
|
const cancelled3 = /* @__PURE__ */ __name(() => {
|
|
@@ -35309,7 +35312,7 @@ var pdfPreview = /* @__PURE__ */ __name(async (bytes2, page, signal, load = impo
|
|
|
35309
35312
|
}
|
|
35310
35313
|
}, "pdfPreview");
|
|
35311
35314
|
|
|
35312
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35315
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/attachments/picture-reading.js
|
|
35313
35316
|
import { spawn } from "node:child_process";
|
|
35314
35317
|
import { mkdtempSync, readFileSync as readFileSync8, rmSync as rmSync2, writeFileSync as writeFileSync4 } from "node:fs";
|
|
35315
35318
|
import { tmpdir } from "node:os";
|
|
@@ -35472,7 +35475,7 @@ Read the attached picture.`,
|
|
|
35472
35475
|
}
|
|
35473
35476
|
}, "readPictureWithAgent");
|
|
35474
35477
|
|
|
35475
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35478
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/attachments/transfer.js
|
|
35476
35479
|
import { createHash as createHash8 } from "node:crypto";
|
|
35477
35480
|
import { constants } from "node:fs";
|
|
35478
35481
|
import { lstat as lstat3, open as open5 } from "node:fs/promises";
|
|
@@ -35580,7 +35583,7 @@ var transferMime = /* @__PURE__ */ __name((head, hint, name = null) => {
|
|
|
35580
35583
|
return hint !== null && /^[a-z0-9.+-]+\/[a-z0-9.+-]+$/i.test(hint) ? hint : "application/octet-stream";
|
|
35581
35584
|
}, "transferMime");
|
|
35582
35585
|
|
|
35583
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35586
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/services/file-download.js
|
|
35584
35587
|
import { createWriteStream, mkdirSync as mkdirSync4 } from "node:fs";
|
|
35585
35588
|
import { link as link3, rm } from "node:fs/promises";
|
|
35586
35589
|
import { join as join17, resolve as resolve6 } from "node:path";
|
|
@@ -35695,12 +35698,12 @@ var save = /* @__PURE__ */ __name(async (file2, directory2, fallbackName, { uniq
|
|
|
35695
35698
|
}
|
|
35696
35699
|
}, "save");
|
|
35697
35700
|
|
|
35698
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35701
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/services/pictures.js
|
|
35699
35702
|
import { createHash as createHash9 } from "node:crypto";
|
|
35700
35703
|
import { lstat as lstat4, readFile } from "node:fs/promises";
|
|
35701
35704
|
import { setTimeout as sleep4 } from "node:timers/promises";
|
|
35702
35705
|
|
|
35703
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35706
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/domain/models.js
|
|
35704
35707
|
var GROUP_SETTINGS = [
|
|
35705
35708
|
"allCanPin",
|
|
35706
35709
|
"onlyAdminsAdd",
|
|
@@ -35714,7 +35717,7 @@ var ADMIN_RIGHTS = ["read", "members", "admins", "info", "pin", "link", "post",
|
|
|
35714
35717
|
var senderIsMe = /* @__PURE__ */ __name((message, account) => message.outgoing === true || message.senderId !== null && String(message.senderId) === account, "senderIsMe");
|
|
35715
35718
|
var MEDIA_KINDS = ["photo", "video", "file", "audio", "link"];
|
|
35716
35719
|
|
|
35717
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35720
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/services/pictures.js
|
|
35718
35721
|
var PICTURE_MAX_BYTES = 25 * 1024 * 1024;
|
|
35719
35722
|
var PICTURE_FLOOR = 0.25;
|
|
35720
35723
|
var PAGE3 = 50;
|
|
@@ -35755,7 +35758,7 @@ var picturesService = /* @__PURE__ */ __name((deps) => {
|
|
|
35755
35758
|
const directory2 = imageModelsDirectory(deps.env);
|
|
35756
35759
|
if (!isImageModelInstalled(model2, directory2))
|
|
35757
35760
|
throw new CliError("not_found", missingModel(model2.id), { reason: "model.not-downloaded", model: model2.id });
|
|
35758
|
-
const { openPictureEmbedder } = await import("./embedder-
|
|
35761
|
+
const { openPictureEmbedder } = await import("./embedder-MZM52STR.js");
|
|
35759
35762
|
return openPictureEmbedder(model2, directory2);
|
|
35760
35763
|
}, "open");
|
|
35761
35764
|
const embedder = /* @__PURE__ */ __name(() => {
|
|
@@ -35929,7 +35932,7 @@ var withPictures = /* @__PURE__ */ __name((messages, pictures) => ({
|
|
|
35929
35932
|
}, "search")
|
|
35930
35933
|
}), "withPictures");
|
|
35931
35934
|
|
|
35932
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35935
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/services/attachments.js
|
|
35933
35936
|
var ATTACHMENT_QUERY = {
|
|
35934
35937
|
entity: "attachment",
|
|
35935
35938
|
backend: "sql",
|
|
@@ -36400,7 +36403,7 @@ var attachmentsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
36400
36403
|
}, "readPicture")
|
|
36401
36404
|
}), "attachmentsService");
|
|
36402
36405
|
|
|
36403
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36406
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/services/chat-documents.js
|
|
36404
36407
|
var chatDocumentsService = /* @__PURE__ */ __name((deps) => ({
|
|
36405
36408
|
list: /* @__PURE__ */ __name(async (chat, { limit, offset, ref }) => {
|
|
36406
36409
|
const store = await accountStore(deps);
|
|
@@ -36430,7 +36433,7 @@ var chatDocumentsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
36430
36433
|
}, "list")
|
|
36431
36434
|
}), "chatDocumentsService");
|
|
36432
36435
|
|
|
36433
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36436
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/services/retention.js
|
|
36434
36437
|
var observationDuration = /* @__PURE__ */ __name((text3, flag) => {
|
|
36435
36438
|
const match = /^(\d+(?:\.\d+)?)([smhdw])$/.exec(text3);
|
|
36436
36439
|
const units2 = { s: 1e3, m: 6e4, h: 36e5, d: 864e5, w: 6048e5 };
|
|
@@ -36517,7 +36520,7 @@ var isRetentionSelection = /* @__PURE__ */ __name((selection) => {
|
|
|
36517
36520
|
}
|
|
36518
36521
|
}, "isRetentionSelection");
|
|
36519
36522
|
|
|
36520
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36523
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/services/counters.js
|
|
36521
36524
|
var counterFields = /* @__PURE__ */ __name((text3 = "views,reactions,comments") => {
|
|
36522
36525
|
const fields2 = text3.split(",").map((one) => one.trim());
|
|
36523
36526
|
if (!fields2.length || fields2.some((one) => !COUNTER_FIELDS.includes(one)) || new Set(fields2).size !== fields2.length)
|
|
@@ -36724,62 +36727,7 @@ var countersService = /* @__PURE__ */ __name((deps) => {
|
|
|
36724
36727
|
};
|
|
36725
36728
|
}, "countersService");
|
|
36726
36729
|
|
|
36727
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36728
|
-
var LATIN = {
|
|
36729
|
-
\u0430: "a",
|
|
36730
|
-
\u0431: "b",
|
|
36731
|
-
\u0432: "v",
|
|
36732
|
-
\u0433: "g",
|
|
36733
|
-
\u0434: "d",
|
|
36734
|
-
\u0435: "e",
|
|
36735
|
-
\u0436: "zh",
|
|
36736
|
-
\u0437: "z",
|
|
36737
|
-
\u0438: "i",
|
|
36738
|
-
\u043A: "k",
|
|
36739
|
-
\u043B: "l",
|
|
36740
|
-
\u043C: "m",
|
|
36741
|
-
\u043D: "n",
|
|
36742
|
-
\u043E: "o",
|
|
36743
|
-
\u043F: "p",
|
|
36744
|
-
\u0440: "r",
|
|
36745
|
-
\u0441: "s",
|
|
36746
|
-
\u0442: "t",
|
|
36747
|
-
\u0443: "u",
|
|
36748
|
-
\u0444: "f",
|
|
36749
|
-
\u0445: "h",
|
|
36750
|
-
\u0446: "ts",
|
|
36751
|
-
\u0447: "ch",
|
|
36752
|
-
\u0448: "sh",
|
|
36753
|
-
\u0449: "sch",
|
|
36754
|
-
\u044A: "",
|
|
36755
|
-
\u044B: "y",
|
|
36756
|
-
\u044C: "",
|
|
36757
|
-
\u044D: "e",
|
|
36758
|
-
\u044E: "yu",
|
|
36759
|
-
\u044F: "ya"
|
|
36760
|
-
};
|
|
36761
|
-
var latinSpellings = /* @__PURE__ */ __name((word) => {
|
|
36762
|
-
if (!new RegExp("\\p{Script=Cyrillic}", "u").test(word))
|
|
36763
|
-
return [];
|
|
36764
|
-
const plain2 = [...normalize(word)].map((letter) => LATIN[letter] ?? letter).join("");
|
|
36765
|
-
return [.../* @__PURE__ */ new Set([plain2, plain2.replaceAll("ks", "x")])];
|
|
36766
|
-
}, "latinSpellings");
|
|
36767
|
-
var respelled = /* @__PURE__ */ __name(async (vocabulary, words3) => {
|
|
36768
|
-
const known2 = await vocabulary.knownTerms(words3);
|
|
36769
|
-
const found = /* @__PURE__ */ new Map();
|
|
36770
|
-
for (const word of words3.filter((one) => !known2.has(one))) {
|
|
36771
|
-
const latin = latinSpellings(word);
|
|
36772
|
-
const held = await vocabulary.knownTerms(latin);
|
|
36773
|
-
const nearLatin = await correctWords(vocabulary, latin.filter((one) => !held.has(one)));
|
|
36774
|
-
const asLatin = [.../* @__PURE__ */ new Set([...held, ...[...nearLatin.values()].flat()])];
|
|
36775
|
-
const forms = asLatin.length ? asLatin : (await correctWords(vocabulary, [word])).get(normalize(word)) ?? [];
|
|
36776
|
-
if (forms.length)
|
|
36777
|
-
found.set(word, forms);
|
|
36778
|
-
}
|
|
36779
|
-
return found;
|
|
36780
|
-
}, "respelled");
|
|
36781
|
-
|
|
36782
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/services/named-chat.js
|
|
36730
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/services/named-chat.js
|
|
36783
36731
|
var LEAST_USES = 3;
|
|
36784
36732
|
var SAMPLE2 = 50;
|
|
36785
36733
|
var CAPITALISED = 0.8;
|
|
@@ -36833,7 +36781,7 @@ var queryWords2 = /* @__PURE__ */ __name((query) => {
|
|
|
36833
36781
|
}, "queryWords");
|
|
36834
36782
|
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");
|
|
36835
36783
|
|
|
36836
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36784
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/services/search-refresh.js
|
|
36837
36785
|
var SYNC_KEY = "messages.sync-first";
|
|
36838
36786
|
var SYNC_BOUNDS = { maxChats: 5, timeMs: 3e4, maxMessages: 500 };
|
|
36839
36787
|
var keyOf5 = /* @__PURE__ */ __name((chat) => JSON.stringify([chat.account.provider, chat.account.account, chat.chatId]), "keyOf");
|
|
@@ -36965,7 +36913,7 @@ var withRefresh = /* @__PURE__ */ __name((found, refreshed) => ({
|
|
|
36965
36913
|
...!refreshed || refreshed.complete ? {} : { coverage: { ...found.coverage, state: "stale" } }
|
|
36966
36914
|
}), "withRefresh");
|
|
36967
36915
|
|
|
36968
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36916
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/services/embeddings-search.js
|
|
36969
36917
|
var CANDIDATES = 50;
|
|
36970
36918
|
var ACROSS_CHATS = 500;
|
|
36971
36919
|
var OWN_BLOCK = 5;
|
|
@@ -37426,13 +37374,13 @@ var meanOf = /* @__PURE__ */ __name((vectors) => {
|
|
|
37426
37374
|
return mean2.map((value) => value / length);
|
|
37427
37375
|
}, "meanOf");
|
|
37428
37376
|
|
|
37429
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37377
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/services/embeddings.js
|
|
37430
37378
|
var embeddingsService = /* @__PURE__ */ __name((deps) => ({
|
|
37431
37379
|
...embeddingsMaintenance(deps),
|
|
37432
37380
|
...embeddingsSearch(deps)
|
|
37433
37381
|
}), "embeddingsService");
|
|
37434
37382
|
|
|
37435
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37383
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/services/folders.js
|
|
37436
37384
|
var foldersService = /* @__PURE__ */ __name((deps) => {
|
|
37437
37385
|
const online = /* @__PURE__ */ __name(async (command) => {
|
|
37438
37386
|
if (deps.offline)
|
|
@@ -37573,7 +37521,7 @@ var foldersService = /* @__PURE__ */ __name((deps) => {
|
|
|
37573
37521
|
};
|
|
37574
37522
|
}, "foldersService");
|
|
37575
37523
|
|
|
37576
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37524
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/services/mentions.js
|
|
37577
37525
|
var REVIEW_COUNT = 500;
|
|
37578
37526
|
var mentionsService = /* @__PURE__ */ __name((deps) => {
|
|
37579
37527
|
const located = /* @__PURE__ */ __name(async () => {
|
|
@@ -37652,7 +37600,7 @@ var mentionsService = /* @__PURE__ */ __name((deps) => {
|
|
|
37652
37600
|
};
|
|
37653
37601
|
}, "mentionsService");
|
|
37654
37602
|
|
|
37655
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37603
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/domain/formatting.js
|
|
37656
37604
|
var invalid5 = /* @__PURE__ */ __name(() => new CliError("validation_error", "the messenger formatter returned invalid text spans"), "invalid");
|
|
37657
37605
|
var validateFormattedText = /* @__PURE__ */ __name((formatted2) => {
|
|
37658
37606
|
const { text: text3, spans } = formatted2;
|
|
@@ -37712,7 +37660,7 @@ var visibleFormattedText = /* @__PURE__ */ __name((formatted2) => {
|
|
|
37712
37660
|
};
|
|
37713
37661
|
}, "visibleFormattedText");
|
|
37714
37662
|
|
|
37715
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37663
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/domain/message-link.js
|
|
37716
37664
|
var fileLinks = /* @__PURE__ */ __name((attachments) => hitFiles(attachments).map(({ position, kind: kind2, name }) => ({
|
|
37717
37665
|
position,
|
|
37718
37666
|
kind: kind2,
|
|
@@ -37761,7 +37709,7 @@ var validatePermalink = /* @__PURE__ */ __name((link4) => {
|
|
|
37761
37709
|
return { url: link4.url, access: link4.access, reason: link4.reason };
|
|
37762
37710
|
}, "validatePermalink");
|
|
37763
37711
|
|
|
37764
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37712
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/domain/pin-duration.js
|
|
37765
37713
|
var spokenSeconds = /* @__PURE__ */ __name((seconds) => {
|
|
37766
37714
|
if (seconds % 86400 === 0 && seconds > 86400)
|
|
37767
37715
|
return `${seconds / 86400}d`;
|
|
@@ -37793,7 +37741,7 @@ var pinDurationOf = /* @__PURE__ */ __name((value, allowed, flag = "--expire-tim
|
|
|
37793
37741
|
return seconds;
|
|
37794
37742
|
}, "pinDurationOf");
|
|
37795
37743
|
|
|
37796
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37744
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/sends/send-as.js
|
|
37797
37745
|
var sendAsCheck = /* @__PURE__ */ __name((connection, sendAs) => {
|
|
37798
37746
|
if (sendAs === void 0) {
|
|
37799
37747
|
const saved = connection.savedSender?.bind(connection);
|
|
@@ -37818,7 +37766,7 @@ var typedSendAs = /* @__PURE__ */ __name((typed) => {
|
|
|
37818
37766
|
return sendAs;
|
|
37819
37767
|
}, "typedSendAs");
|
|
37820
37768
|
|
|
37821
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37769
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/search/total.js
|
|
37822
37770
|
var TOTAL_CAP = 1e4;
|
|
37823
37771
|
var totalOf = /* @__PURE__ */ __name((count3, shown, hasMore, exact = true) => {
|
|
37824
37772
|
const least = shown + (hasMore ? 1 : 0);
|
|
@@ -37829,7 +37777,7 @@ var totalOf = /* @__PURE__ */ __name((count3, shown, hasMore, exact = true) => {
|
|
|
37829
37777
|
return { value: count3, relation: exact ? "eq" : "gte" };
|
|
37830
37778
|
}, "totalOf");
|
|
37831
37779
|
|
|
37832
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37780
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/search/lucene/meaning-parts.js
|
|
37833
37781
|
var WORD_FIELDS = /* @__PURE__ */ new Set(["text", "exact"]);
|
|
37834
37782
|
var fieldsOfQuery = /* @__PURE__ */ __name((root, everything) => {
|
|
37835
37783
|
let narrows = false;
|
|
@@ -37858,7 +37806,7 @@ var meaningWords = /* @__PURE__ */ __name((root) => {
|
|
|
37858
37806
|
return wanted(root).join(" ").trim();
|
|
37859
37807
|
}, "meaningWords");
|
|
37860
37808
|
|
|
37861
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37809
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/services/messages-combined.js
|
|
37862
37810
|
var COMBINED_DEFAULTS = { candidateDepth: 300, rrfK: 60, rerank: "all", chatCap: 0 };
|
|
37863
37811
|
var tokensOf = /* @__PURE__ */ __name((text3) => normalize(text3).match(/[\p{L}\p{N}\p{Co}\p{M}]+/gu) ?? [], "tokensOf");
|
|
37864
37812
|
var searchCombined = /* @__PURE__ */ __name(async (store, account, request, messenger = {}, options2 = COMBINED_DEFAULTS) => {
|
|
@@ -38059,7 +38007,7 @@ var signals = /* @__PURE__ */ __name((hit, terms, corrections, execution, mode,
|
|
|
38059
38007
|
return mode === "coverage" ? coverage2 * 4 : mode === "proximity" ? proximity : mode === "phrase" ? phrase2 : coverage2 * 4 + proximity + phrase2;
|
|
38060
38008
|
}, "signals");
|
|
38061
38009
|
|
|
38062
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38010
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/services/messages-discovery.js
|
|
38063
38011
|
var MEANING_DEPTH = 100;
|
|
38064
38012
|
var RRF_K3 = 60;
|
|
38065
38013
|
var RERANK_DEPTH = 50;
|
|
@@ -38385,7 +38333,7 @@ var mixedWithReranker = /* @__PURE__ */ __name((head, scores) => {
|
|
|
38385
38333
|
})).sort((a, b) => b.mixed - a.mixed).map(({ hit }) => hit);
|
|
38386
38334
|
}, "mixedWithReranker");
|
|
38387
38335
|
|
|
38388
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38336
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/services/thread-context.js
|
|
38389
38337
|
var THREAD_BOUNDS = { maxHops: 8, maxMessages: 50, maxBytes: 65536, withinMs: 864e5 };
|
|
38390
38338
|
var bytes = /* @__PURE__ */ __name((items, links) => Buffer.byteLength(JSON.stringify({ items, links }), "utf8"), "bytes");
|
|
38391
38339
|
var threadBounds = /* @__PURE__ */ __name((options2 = {}) => {
|
|
@@ -38584,7 +38532,7 @@ var readThreadContext = /* @__PURE__ */ __name(async (store, account, chat, mess
|
|
|
38584
38532
|
return result;
|
|
38585
38533
|
}, "readThreadContext");
|
|
38586
38534
|
|
|
38587
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38535
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/services/messages-archive-search.js
|
|
38588
38536
|
var SEARCH_FILL_MS = 200;
|
|
38589
38537
|
var statsStore = /* @__PURE__ */ __name(async (store, account, request, messenger = {}) => {
|
|
38590
38538
|
const stop = Date.now() + SEARCH_FILL_MS;
|
|
@@ -38692,7 +38640,7 @@ var accountOf2 = /* @__PURE__ */ __name((hit) => {
|
|
|
38692
38640
|
}, "accountOf");
|
|
38693
38641
|
var keyOf6 = /* @__PURE__ */ __name(({ provider, account }) => `${provider}/${account}`, "keyOf");
|
|
38694
38642
|
|
|
38695
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38643
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/services/meaning-model.js
|
|
38696
38644
|
var meaningModel = /* @__PURE__ */ __name(async (store, env = process.env) => {
|
|
38697
38645
|
const chosen = chosenTextModel(env);
|
|
38698
38646
|
if (chosen.from === "chosen" || chosen.id !== DEFAULT_TEXT_MODEL)
|
|
@@ -38707,7 +38655,7 @@ var meaningModel = /* @__PURE__ */ __name(async (store, env = process.env) => {
|
|
|
38707
38655
|
return (counts.get(before) ?? 0) > (counts.get(now) ?? 0) ? previous.id : current.id;
|
|
38708
38656
|
}, "meaningModel");
|
|
38709
38657
|
|
|
38710
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38658
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/services/messages-meaning.js
|
|
38711
38659
|
var meaningText = /* @__PURE__ */ __name((question) => {
|
|
38712
38660
|
try {
|
|
38713
38661
|
const text3 = questionLookup(question) === void 0 ? question : questionText(question);
|
|
@@ -38786,7 +38734,7 @@ var meaningLane = /* @__PURE__ */ __name((deps) => async (question, accounts, sh
|
|
|
38786
38734
|
}
|
|
38787
38735
|
}, "meaningLane");
|
|
38788
38736
|
|
|
38789
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38737
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/services/messages-rerank.js
|
|
38790
38738
|
var rerankLane = /* @__PURE__ */ __name((deps) => {
|
|
38791
38739
|
const choice = deps.reranker ?? DEFAULT_RERANK_MODEL;
|
|
38792
38740
|
if (choice === "off")
|
|
@@ -38798,9 +38746,9 @@ var rerankLane = /* @__PURE__ */ __name((deps) => {
|
|
|
38798
38746
|
return { skipped: { reason: `${model.id} is not downloaded`, step: "models.download", model: model.id } };
|
|
38799
38747
|
try {
|
|
38800
38748
|
const warm = deps.embedders;
|
|
38801
|
-
const reranker = warm ? await warm.reranker(`rerank:${model.id}`, async () => (await import("./process-
|
|
38749
|
+
const reranker = warm ? await warm.reranker(`rerank:${model.id}`, async () => (await import("./process-2TFFZAX6.js")).openRerankerProcess(model, directory2, {
|
|
38802
38750
|
threads: defaultThreads()
|
|
38803
|
-
})) : await (await import("./rerank-
|
|
38751
|
+
})) : await (await import("./rerank-JNDOOOIZ.js")).openReranker(model, directory2);
|
|
38804
38752
|
return {
|
|
38805
38753
|
model: model.id,
|
|
38806
38754
|
score: /* @__PURE__ */ __name((question, passages) => reranker.score(plainWords(question), passages), "score"),
|
|
@@ -38820,7 +38768,7 @@ var rerankLane = /* @__PURE__ */ __name((deps) => {
|
|
|
38820
38768
|
};
|
|
38821
38769
|
}, "rerankLane");
|
|
38822
38770
|
|
|
38823
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38771
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/search/question-period.js
|
|
38824
38772
|
var DAY7 = 864e5;
|
|
38825
38773
|
var SPAN = { start: 0, end: 0 };
|
|
38826
38774
|
var phrase = /* @__PURE__ */ __name((source) => new RegExp(`(?<![\\p{L}\\p{N}])(?:${source})(?![\\p{L}\\p{N}])`, "giu"), "phrase");
|
|
@@ -38945,17 +38893,17 @@ var questionPeriod = /* @__PURE__ */ __name((text3, now, zone) => {
|
|
|
38945
38893
|
};
|
|
38946
38894
|
}, "questionPeriod");
|
|
38947
38895
|
|
|
38948
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38896
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/services/document-pictures.js
|
|
38949
38897
|
var openPictureEmbedderFor = /* @__PURE__ */ __name(async ({ env, command } = {}) => {
|
|
38950
38898
|
const model = imageModel(DEFAULT_IMAGE_MODEL);
|
|
38951
38899
|
const directory2 = imageModelsDirectory(env);
|
|
38952
38900
|
if (!isImageModelInstalled(model, directory2))
|
|
38953
38901
|
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 });
|
|
38954
|
-
const { openPictureEmbedder } = await import("./embedder-
|
|
38902
|
+
const { openPictureEmbedder } = await import("./embedder-MZM52STR.js");
|
|
38955
38903
|
return openPictureEmbedder(model, directory2);
|
|
38956
38904
|
}, "openPictureEmbedderFor");
|
|
38957
38905
|
|
|
38958
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38906
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/services/document-source.js
|
|
38959
38907
|
var documentSource = /* @__PURE__ */ __name((note, accounts, profiles, file2) => {
|
|
38960
38908
|
const metadata = note.frontMatter;
|
|
38961
38909
|
const account = accounts.find(({ id: id3 }) => String(id3) === note.folderId);
|
|
@@ -38977,7 +38925,7 @@ var documentSource = /* @__PURE__ */ __name((note, accounts, profiles, file2) =>
|
|
|
38977
38925
|
};
|
|
38978
38926
|
}, "documentSource");
|
|
38979
38927
|
|
|
38980
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38928
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/embeddings/keys.js
|
|
38981
38929
|
var endpointKeyName = /* @__PURE__ */ __name((baseUrl) => {
|
|
38982
38930
|
const host = new URL(baseUrl).host;
|
|
38983
38931
|
return ["openai", "anthropic"].includes(host) ? `endpoint:${host}` : host;
|
|
@@ -39010,7 +38958,7 @@ var embeddingKeys = /* @__PURE__ */ __name((app, env = process.env, keyring) =>
|
|
|
39010
38958
|
};
|
|
39011
38959
|
}, "embeddingKeys");
|
|
39012
38960
|
|
|
39013
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38961
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/models/openai.js
|
|
39014
38962
|
var options = strictObject({
|
|
39015
38963
|
temperature: range(0, 2),
|
|
39016
38964
|
top_p: range(0, 1),
|
|
@@ -39077,7 +39025,7 @@ var openai = {
|
|
|
39077
39025
|
}), "complete")
|
|
39078
39026
|
};
|
|
39079
39027
|
|
|
39080
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39028
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/models/index.js
|
|
39081
39029
|
var modelGateway = /* @__PURE__ */ __name((deps) => ({
|
|
39082
39030
|
complete: /* @__PURE__ */ __name(async (request) => {
|
|
39083
39031
|
if (deps.signal?.aborted)
|
|
@@ -39092,7 +39040,7 @@ var modelGateway = /* @__PURE__ */ __name((deps) => ({
|
|
|
39092
39040
|
if (!adapter && target2.provider === "openai")
|
|
39093
39041
|
adapter = openai;
|
|
39094
39042
|
if (!adapter && target2.provider === "anthropic")
|
|
39095
|
-
adapter = (await import("./anthropic-
|
|
39043
|
+
adapter = (await import("./anthropic-CIJQLJ7U.js")).anthropic;
|
|
39096
39044
|
if (!adapter)
|
|
39097
39045
|
throw new CliError("validation_error", `no model adapter for ${target2.provider}`);
|
|
39098
39046
|
if (request.images !== void 0 && adapter.images !== true)
|
|
@@ -39152,7 +39100,7 @@ var modelGateway = /* @__PURE__ */ __name((deps) => ({
|
|
|
39152
39100
|
}, "complete")
|
|
39153
39101
|
}), "modelGateway");
|
|
39154
39102
|
|
|
39155
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39103
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/services/enrichment-setting.js
|
|
39156
39104
|
var SECTION2 = "enrichment";
|
|
39157
39105
|
var ENRICHMENT_PROVIDERS = ["openai", "anthropic"];
|
|
39158
39106
|
var DEFAULT_BASE_URLS = {
|
|
@@ -39227,7 +39175,7 @@ var costOf = /* @__PURE__ */ __name((usage, setting) => {
|
|
|
39227
39175
|
return price ? Math.round((usage.input * price.input + usage.output * price.output) * 1e6) / 1e6 : null;
|
|
39228
39176
|
}, "costOf");
|
|
39229
39177
|
|
|
39230
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39178
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/services/enrichment.js
|
|
39231
39179
|
var ENRICH_PER_RUN = 600;
|
|
39232
39180
|
var MAX_LINE = 400;
|
|
39233
39181
|
var line2 = pipe(unknown(), transform((value) => typeof value === "string" ? value.replace(/\s+/g, " ").trim().slice(0, MAX_LINE) : ""));
|
|
@@ -39303,7 +39251,7 @@ var enrichmentState = /* @__PURE__ */ __name(async (store, env, estimateFor, key
|
|
|
39303
39251
|
};
|
|
39304
39252
|
}, "enrichmentState");
|
|
39305
39253
|
|
|
39306
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39254
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/services/notes-title-tier.js
|
|
39307
39255
|
var plainQueryWords = /* @__PURE__ */ __name((query) => {
|
|
39308
39256
|
let root;
|
|
39309
39257
|
try {
|
|
@@ -39330,7 +39278,7 @@ var titleTiers = /* @__PURE__ */ __name((hits, words3) => {
|
|
|
39330
39278
|
return [...hits].sort((a, b) => rank(a) - rank(b));
|
|
39331
39279
|
}, "titleTiers");
|
|
39332
39280
|
|
|
39333
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39281
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/services/notes-search.js
|
|
39334
39282
|
var storeQuery = /* @__PURE__ */ __name(async (store, text3, { exact, timezone } = {}) => resolvedQuery(store, parsedQuery(text3, exact), timezone), "storeQuery");
|
|
39335
39283
|
var parsedQuery = /* @__PURE__ */ __name((text3, exact) => validateFields(parseLucene(text3, { ...SEARCH_QUERY, defaultField: exact ? "exact" : "text" })).root, "parsedQuery");
|
|
39336
39284
|
var resolvedQuery = /* @__PURE__ */ __name(async (store, root, timezone) => {
|
|
@@ -39372,6 +39320,7 @@ var searchNotesQuery = /* @__PURE__ */ __name(async (store, request) => {
|
|
|
39372
39320
|
...stemmer ? { stemmer } : {}
|
|
39373
39321
|
});
|
|
39374
39322
|
}, "searchNotesQuery");
|
|
39323
|
+
var NOTE_BATCH = 8;
|
|
39375
39324
|
var downloadHint = /* @__PURE__ */ __name((model, command) => command === void 0 ? `install it with a WireCat CLI that has \`models download\` (tg, max or wa); they share the model folder` : `\`${command} models download ${model}\``, "downloadHint");
|
|
39376
39325
|
var localModel = /* @__PURE__ */ __name((choice, env, command) => {
|
|
39377
39326
|
const model = textModel(choice ?? chosenTextModel(env).id, env);
|
|
@@ -39393,6 +39342,45 @@ var withLocal = /* @__PURE__ */ __name(async (model, directory2, threads, work,
|
|
|
39393
39342
|
await embedder.close();
|
|
39394
39343
|
}
|
|
39395
39344
|
}, "withLocal");
|
|
39345
|
+
var stopsAt = /* @__PURE__ */ __name((deadline) => deadline ? deadline.endsAt - deadlineMargin(deadline) : Number.POSITIVE_INFINITY, "stopsAt");
|
|
39346
|
+
var embedChunks = /* @__PURE__ */ __name(async (store, source, { model: choice, maxChunks = Number.POSITIVE_INFINITY, env, threads, command, deadline, signal } = {}) => {
|
|
39347
|
+
const { model, directory: directory2, key } = localModel(choice, env, command);
|
|
39348
|
+
if ((await source.chunksToEmbed(key, { limit: 1 })).length === 0)
|
|
39349
|
+
return { model: model.id, embedded: 0, left: false };
|
|
39350
|
+
const until = stopsAt(deadline);
|
|
39351
|
+
const stopped = /* @__PURE__ */ __name((slowest) => signal?.aborted ? "cancelled" : Date.now() + slowest >= until ? "deadline" : void 0, "stopped");
|
|
39352
|
+
const stop = /* @__PURE__ */ __name(async (embedded, why) => {
|
|
39353
|
+
const remaining = await source.chunksLeft?.(key);
|
|
39354
|
+
return { model: model.id, embedded, left: true, stopped: why, ...remaining === void 0 ? {} : { remaining } };
|
|
39355
|
+
}, "stop");
|
|
39356
|
+
const early = stopped(0);
|
|
39357
|
+
if (early)
|
|
39358
|
+
return stop(0, early);
|
|
39359
|
+
return withLocal(model, directory2, threads, async (embedder) => {
|
|
39360
|
+
let embedded = 0;
|
|
39361
|
+
let after;
|
|
39362
|
+
let slowest = 0;
|
|
39363
|
+
while (embedded < maxChunks) {
|
|
39364
|
+
const started = Date.now();
|
|
39365
|
+
const batch = await source.chunksToEmbed(key, {
|
|
39366
|
+
limit: Math.min(NOTE_BATCH, maxChunks - embedded),
|
|
39367
|
+
...after === void 0 ? {} : { after }
|
|
39368
|
+
});
|
|
39369
|
+
if (batch.length === 0)
|
|
39370
|
+
break;
|
|
39371
|
+
const why = stopped(slowest);
|
|
39372
|
+
if (why)
|
|
39373
|
+
return stop(embedded, why);
|
|
39374
|
+
after = batch.at(-1)?.hash;
|
|
39375
|
+
const vectors = await embedder.embed(batch.map(({ text: text3 }) => text3), "passage");
|
|
39376
|
+
await store.vectors.saveVectors(key, model.dims, batch.map(({ hash: hash3 }, index) => ({ hash: hash3, vector: vectors[index] })));
|
|
39377
|
+
embedded += batch.length;
|
|
39378
|
+
slowest = Math.max(slowest, Date.now() - started);
|
|
39379
|
+
}
|
|
39380
|
+
const left = (await source.chunksToEmbed(key, { limit: 1, ...after === void 0 ? {} : { after } })).length > 0;
|
|
39381
|
+
return { model: model.id, embedded, left };
|
|
39382
|
+
});
|
|
39383
|
+
}, "embedChunks");
|
|
39396
39384
|
var nearestNotes = /* @__PURE__ */ __name(async (store, query, options2) => {
|
|
39397
39385
|
const { key, vector, floor } = await queryVector(store, query, options2);
|
|
39398
39386
|
const nearest3 = await store.notes.nearest(key, vector, {
|
|
@@ -39758,7 +39746,31 @@ var searchNotesOf = /* @__PURE__ */ __name(async (store, account, text3, { accou
|
|
|
39758
39746
|
};
|
|
39759
39747
|
}, "searchNotesOf");
|
|
39760
39748
|
|
|
39761
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39749
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/services/crm-meaning.js
|
|
39750
|
+
var embedCrmActivities = /* @__PURE__ */ __name(async (store, options2 = {}) => {
|
|
39751
|
+
localModel(options2.model, options2.env, options2.command);
|
|
39752
|
+
const until = stopsAt(options2.deadline);
|
|
39753
|
+
const refreshed = await store.crm.activityChunks.refresh({
|
|
39754
|
+
until: /* @__PURE__ */ __name(() => options2.signal?.aborted === true || Date.now() >= until, "until")
|
|
39755
|
+
});
|
|
39756
|
+
const embedded = await embedChunks(store, store.crm.activityChunks, options2);
|
|
39757
|
+
return refreshed.left ? { ...embedded, left: true } : embedded;
|
|
39758
|
+
}, "embedCrmActivities");
|
|
39759
|
+
var nearestCrmActivities = /* @__PURE__ */ __name(async (store, words3, { limit, accounts, kinds, viewers, env, command, embedders }) => {
|
|
39760
|
+
const { model, directory: directory2, key } = localModel(await meaningModel(store, env), env, command);
|
|
39761
|
+
if (!await store.crm.activityChunks.embedded(key, accounts))
|
|
39762
|
+
throw new CliError("not_found", `no CRM activity has vectors of ${model.id} yet, so only words were matched`);
|
|
39763
|
+
const [vector] = await withLocal(model, directory2, void 0, (embedder) => embedder.embed([words3], "query"), embedders);
|
|
39764
|
+
const floor = meaningFloor(key);
|
|
39765
|
+
return (await store.crm.activityChunks.nearest(key, vector, {
|
|
39766
|
+
limit,
|
|
39767
|
+
...accounts === void 0 ? {} : { accounts },
|
|
39768
|
+
...kinds === void 0 ? {} : { kinds },
|
|
39769
|
+
...viewers === void 0 ? {} : { viewers }
|
|
39770
|
+
})).filter(({ score }) => score > floor);
|
|
39771
|
+
}, "nearestCrmActivities");
|
|
39772
|
+
|
|
39773
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/services/events-search.js
|
|
39762
39774
|
var MAX_EVENTS_OFFSET = 1e3;
|
|
39763
39775
|
var iso3 = /* @__PURE__ */ __name((at2) => at2 === null ? null : new Date(at2).toISOString(), "iso");
|
|
39764
39776
|
var accountIdsOf = /* @__PURE__ */ __name(async (store, accounts) => {
|
|
@@ -39876,7 +39888,7 @@ var searchEvents = /* @__PURE__ */ __name(async (store, query, { limit = 20, off
|
|
|
39876
39888
|
};
|
|
39877
39889
|
}, "searchEvents");
|
|
39878
39890
|
|
|
39879
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39891
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/services/search-all-business.js
|
|
39880
39892
|
var OWN_BUSINESS = { provider: "business", account: INTERNAL_NOTES };
|
|
39881
39893
|
var BUSINESS_WORDS_ONLY = "invoices, payments, orders, contracts, subscriptions, products and wallets are found by the words of their numbers and names only";
|
|
39882
39894
|
var placeOf = /* @__PURE__ */ __name(({ source, imported }) => source ?? (imported === void 0 ? OWN_BUSINESS : { provider: imported, account: "" }), "placeOf");
|
|
@@ -39906,7 +39918,7 @@ var searchBusiness = /* @__PURE__ */ __name(async (store, { words: words3, anyWo
|
|
|
39906
39918
|
};
|
|
39907
39919
|
}, "searchBusiness");
|
|
39908
39920
|
|
|
39909
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39921
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/services/search-all-meetings.js
|
|
39910
39922
|
var MOST_HITS_PER_MEETING = 3;
|
|
39911
39923
|
var PAGE_ROWS = 200;
|
|
39912
39924
|
var MOST_PAGES3 = 25;
|
|
@@ -40134,7 +40146,7 @@ var titleItem = /* @__PURE__ */ __name((account, meeting, query) => ({
|
|
|
40134
40146
|
foundBy: ["title"]
|
|
40135
40147
|
}), "titleItem");
|
|
40136
40148
|
|
|
40137
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40149
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/services/search-harder.js
|
|
40138
40150
|
var SECTION3 = "search_harder";
|
|
40139
40151
|
var HARDER_MODELS = {
|
|
40140
40152
|
anthropic: "claude-haiku-5-5",
|
|
@@ -40380,7 +40392,7 @@ var reorderHarder = /* @__PURE__ */ __name(async (question, hits, { laterPage, a
|
|
|
40380
40392
|
};
|
|
40381
40393
|
}, "reorderHarder");
|
|
40382
40394
|
|
|
40383
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40395
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/services/tracker-meaning.js
|
|
40384
40396
|
var nearestTracker = /* @__PURE__ */ __name(async (store, words3, { limit, accounts, env, command, embedders }) => {
|
|
40385
40397
|
const { model, directory: directory2, key } = localModel(await meaningModel(store, env), env, command);
|
|
40386
40398
|
if (!await store.tracker.embedded(key, accounts))
|
|
@@ -40390,7 +40402,7 @@ var nearestTracker = /* @__PURE__ */ __name(async (store, words3, { limit, accou
|
|
|
40390
40402
|
return (await store.tracker.nearest(key, vector, { limit, accounts })).filter(({ score }) => score > floor);
|
|
40391
40403
|
}, "nearestTracker");
|
|
40392
40404
|
|
|
40393
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40405
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/services/search-all.js
|
|
40394
40406
|
var RESOURCES_SEARCHED = [
|
|
40395
40407
|
"messages",
|
|
40396
40408
|
"mail",
|
|
@@ -40475,7 +40487,7 @@ var trackerTitle = /* @__PURE__ */ __name(({ kind: kind2, record: record2 }) =>
|
|
|
40475
40487
|
const key = kind2 === "issue" ? record2.key : void 0;
|
|
40476
40488
|
return key ? `${key} ${title}` : title;
|
|
40477
40489
|
}, "trackerTitle");
|
|
40478
|
-
var
|
|
40490
|
+
var meaningWordsOf = /* @__PURE__ */ __name((text3) => {
|
|
40479
40491
|
try {
|
|
40480
40492
|
const { root } = parseLucene(text3, SEARCH_QUERY);
|
|
40481
40493
|
const nodes = root.kind === "boolean" ? root.clauses.map(({ node }) => node) : [root];
|
|
@@ -40485,7 +40497,7 @@ var trackerMeaningWords = /* @__PURE__ */ __name((text3) => {
|
|
|
40485
40497
|
} catch {
|
|
40486
40498
|
return void 0;
|
|
40487
40499
|
}
|
|
40488
|
-
}, "
|
|
40500
|
+
}, "meaningWordsOf");
|
|
40489
40501
|
var trackerExcerpt = /* @__PURE__ */ __name(({ kind: kind2, record: record2 }, query) => excerpt([trackerTitleOf(kind2, record2), trackerBodyOf(kind2, record2)].filter(Boolean).join("\n"), query), "trackerExcerpt");
|
|
40490
40502
|
var oneHitPerItem = /* @__PURE__ */ __name((ordered, cosines, items) => {
|
|
40491
40503
|
const kept3 = /* @__PURE__ */ new Map();
|
|
@@ -40504,6 +40516,24 @@ var oneHitPerItem = /* @__PURE__ */ __name((ordered, cosines, items) => {
|
|
|
40504
40516
|
}
|
|
40505
40517
|
return [...kept3.values()];
|
|
40506
40518
|
}, "oneHitPerItem");
|
|
40519
|
+
var fusedLane = /* @__PURE__ */ __name((byWords, byMeaning, discover, cosines) => {
|
|
40520
|
+
const fused2 = /* @__PURE__ */ new Map();
|
|
40521
|
+
byWords.forEach((item2, rank) => {
|
|
40522
|
+
fused2.set(item2.ref, { item: item2, score: 1 / (RRF_K + rank + 1) });
|
|
40523
|
+
});
|
|
40524
|
+
byMeaning.forEach(({ hit, score }, rank) => {
|
|
40525
|
+
cosines.set(hit.ref, score);
|
|
40526
|
+
const held = fused2.get(hit.ref);
|
|
40527
|
+
if (held && !held.item.foundBy.includes("meaning"))
|
|
40528
|
+
held.item.foundBy = [...held.item.foundBy, "meaning"];
|
|
40529
|
+
const vote = 1 / (RRF_K + rank + 1);
|
|
40530
|
+
if (held && discover)
|
|
40531
|
+
held.score = Math.max(held.score, vote);
|
|
40532
|
+
else
|
|
40533
|
+
fused2.set(hit.ref, { item: held?.item ?? hit, score: (held?.score ?? 0) + vote });
|
|
40534
|
+
});
|
|
40535
|
+
return [...fused2.values()].sort((a, b) => b.score - a.score).map(({ item: item2 }) => item2);
|
|
40536
|
+
}, "fusedLane");
|
|
40507
40537
|
var crmAccounts = /* @__PURE__ */ __name(async (store) => (await store.accounts.accounts()).filter(({ provider }) => holdsKind(provider, "crm")), "crmAccounts");
|
|
40508
40538
|
var searchAll = /* @__PURE__ */ __name(async (store, account, asked, messenger = {}, searchMessages = (query) => searchStore(store, account, query, messenger), meaning) => {
|
|
40509
40539
|
if (!asked.text.trim())
|
|
@@ -40526,6 +40556,7 @@ var searchAll = /* @__PURE__ */ __name(async (store, account, asked, messenger =
|
|
|
40526
40556
|
let notes;
|
|
40527
40557
|
let events;
|
|
40528
40558
|
let tracker;
|
|
40559
|
+
let crm;
|
|
40529
40560
|
const by = {};
|
|
40530
40561
|
let server;
|
|
40531
40562
|
const discover = !request.exact && questionLookup(request.text) !== void 0;
|
|
@@ -40708,7 +40739,7 @@ var searchAll = /* @__PURE__ */ __name(async (store, account, asked, messenger =
|
|
|
40708
40739
|
});
|
|
40709
40740
|
hasMore ||= found.hasMore;
|
|
40710
40741
|
const titled = /(?:^|[\s(+])title:/u.test(request.text);
|
|
40711
|
-
|
|
40742
|
+
const byWords = found.items.filter((deal) => !titled || deal.matched.includes("title")).map((deal) => ({
|
|
40712
40743
|
kind: deal.kind,
|
|
40713
40744
|
ref: deal.ref,
|
|
40714
40745
|
provider: deal.account?.provider ?? "crm",
|
|
@@ -40718,7 +40749,56 @@ var searchAll = /* @__PURE__ */ __name(async (store, account, asked, messenger =
|
|
|
40718
40749
|
text: deal.summary,
|
|
40719
40750
|
foundBy: deal.matched.includes("title") ? ["title"] : ["words"],
|
|
40720
40751
|
...deal.corrections ? { match: "corrected", corrections: deal.corrections } : {}
|
|
40721
|
-
}))
|
|
40752
|
+
}));
|
|
40753
|
+
const plain2 = titled ? void 0 : meaningWordsOf(discover ? questionText(request.text) : request.text);
|
|
40754
|
+
let near2;
|
|
40755
|
+
let meaningSkipped;
|
|
40756
|
+
if (request.crmActivities === false)
|
|
40757
|
+
meaningSkipped = "the profile may not read activities";
|
|
40758
|
+
else if (request.exact)
|
|
40759
|
+
meaningSkipped = "--exact searches words as written";
|
|
40760
|
+
else if (plain2 === void 0)
|
|
40761
|
+
meaningSkipped = "the query names a title, which meaning cannot follow";
|
|
40762
|
+
else
|
|
40763
|
+
try {
|
|
40764
|
+
near2 = await nearestCrmActivities(store, plain2, {
|
|
40765
|
+
limit: Math.min(depth, 500),
|
|
40766
|
+
accounts: chosen2,
|
|
40767
|
+
viewers,
|
|
40768
|
+
embedders,
|
|
40769
|
+
...request.crmKinds === void 0 ? {} : { kinds: request.crmKinds },
|
|
40770
|
+
...command === void 0 ? {} : { command },
|
|
40771
|
+
...request.env === void 0 ? {} : { env: request.env }
|
|
40772
|
+
});
|
|
40773
|
+
} catch (error) {
|
|
40774
|
+
if (!(error instanceof CliError && error.code === "not_found"))
|
|
40775
|
+
throw error;
|
|
40776
|
+
meaningSkipped = error.message;
|
|
40777
|
+
}
|
|
40778
|
+
crm = {
|
|
40779
|
+
by: near2 === void 0 ? "words" : "words and meaning",
|
|
40780
|
+
...meaningSkipped === void 0 ? {} : { meaningSkipped },
|
|
40781
|
+
...near2 === void 0 && plain2 !== void 0 && !request.exact && request.crmActivities !== false ? { needsVectors: true } : {}
|
|
40782
|
+
};
|
|
40783
|
+
if (near2 === void 0)
|
|
40784
|
+
lists.push(byWords);
|
|
40785
|
+
else {
|
|
40786
|
+
const byMeaning = await Promise.all(near2.map(async ({ ref, kind: kind2, account: at2, subject, body, score }) => {
|
|
40787
|
+
const deal = await store.deals.get(ref);
|
|
40788
|
+
const hit = {
|
|
40789
|
+
kind: kind2,
|
|
40790
|
+
ref,
|
|
40791
|
+
provider: at2.provider,
|
|
40792
|
+
account: at2.account,
|
|
40793
|
+
title: deal.title,
|
|
40794
|
+
timestamp: deal.updatedAt,
|
|
40795
|
+
text: excerpt([subject, body].filter(Boolean).join("\n"), request.text),
|
|
40796
|
+
foundBy: ["meaning"]
|
|
40797
|
+
};
|
|
40798
|
+
return { hit, score };
|
|
40799
|
+
}));
|
|
40800
|
+
lists.push(fusedLane(byWords, byMeaning, discover, cosines));
|
|
40801
|
+
}
|
|
40722
40802
|
if (request.crmFiles !== false) {
|
|
40723
40803
|
const files = await store.crmFiles.find({
|
|
40724
40804
|
words: words3,
|
|
@@ -40777,7 +40857,7 @@ var searchAll = /* @__PURE__ */ __name(async (store, account, asked, messenger =
|
|
|
40777
40857
|
};
|
|
40778
40858
|
}, "hitOf");
|
|
40779
40859
|
const byWords = found.items.map(({ account: at2, item: item2, excerpt: text3 }) => hitOf(at2, item2, text3, ["words"]));
|
|
40780
|
-
const plain2 =
|
|
40860
|
+
const plain2 = meaningWordsOf(discover ? questionText(request.text) : request.text);
|
|
40781
40861
|
let near2;
|
|
40782
40862
|
let meaningSkipped;
|
|
40783
40863
|
if (request.exact)
|
|
@@ -40805,23 +40885,11 @@ var searchAll = /* @__PURE__ */ __name(async (store, account, asked, messenger =
|
|
|
40805
40885
|
if (near2 === void 0)
|
|
40806
40886
|
lists.push(oneHitPerItem(byWords, cosines, items));
|
|
40807
40887
|
else {
|
|
40808
|
-
const
|
|
40809
|
-
|
|
40810
|
-
|
|
40811
|
-
});
|
|
40812
|
-
|
|
40813
|
-
const hit = hitOf(at2, item2, trackerExcerpt(item2, request.text), ["meaning"]);
|
|
40814
|
-
cosines.set(hit.ref, score);
|
|
40815
|
-
const held = fused2.get(hit.ref);
|
|
40816
|
-
if (held)
|
|
40817
|
-
held.item.foundBy = ["words", "meaning"];
|
|
40818
|
-
const vote = 1 / (RRF_K + rank + 1);
|
|
40819
|
-
if (held && discover)
|
|
40820
|
-
held.score = Math.max(held.score, vote);
|
|
40821
|
-
else
|
|
40822
|
-
fused2.set(hit.ref, { item: held?.item ?? hit, score: (held?.score ?? 0) + vote });
|
|
40823
|
-
});
|
|
40824
|
-
lists.push(oneHitPerItem([...fused2.values()].sort((a, b) => b.score - a.score).map(({ item: item2 }) => item2), cosines, items));
|
|
40888
|
+
const byMeaning = near2.map(({ account: at2, item: item2, score }) => ({
|
|
40889
|
+
hit: hitOf(at2, item2, trackerExcerpt(item2, request.text), ["meaning"]),
|
|
40890
|
+
score
|
|
40891
|
+
}));
|
|
40892
|
+
lists.push(oneHitPerItem(fusedLane(byWords, byMeaning, discover, cosines), cosines, items));
|
|
40825
40893
|
}
|
|
40826
40894
|
for (const { provider, account: account2 } of read2)
|
|
40827
40895
|
accounts.push({ resource, provider, account: account2 });
|
|
@@ -40906,6 +40974,7 @@ var searchAll = /* @__PURE__ */ __name(async (store, account, asked, messenger =
|
|
|
40906
40974
|
...notes === void 0 ? {} : { notes },
|
|
40907
40975
|
...events === void 0 ? {} : { events },
|
|
40908
40976
|
...tracker === void 0 ? {} : { tracker },
|
|
40977
|
+
...crm === void 0 ? {} : { crm },
|
|
40909
40978
|
...by.messages === void 0 ? {} : { messages: by.messages },
|
|
40910
40979
|
...by.mail === void 0 ? {} : { mail: by.mail },
|
|
40911
40980
|
...server === void 0 ? {} : { server },
|
|
@@ -40971,7 +41040,7 @@ var insidePeriodFirst = /* @__PURE__ */ __name((ordered, period) => {
|
|
|
40971
41040
|
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);
|
|
40972
41041
|
}, "insidePeriodFirst");
|
|
40973
41042
|
|
|
40974
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
41043
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/services/server-search.js
|
|
40975
41044
|
var SERVER_SEARCH_KEY = "messages.server-search";
|
|
40976
41045
|
var SERVER_BOUNDS = { timeMs: 5e3, perCall: 100, maxCalls: 3, textBytes: 262144 };
|
|
40977
41046
|
var DEFAULT_BACKEND = "both";
|
|
@@ -41170,7 +41239,7 @@ var searchServer = /* @__PURE__ */ __name(async (deps, request) => {
|
|
|
41170
41239
|
return { report, sources };
|
|
41171
41240
|
}, "searchServer");
|
|
41172
41241
|
|
|
41173
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
41242
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/services/messages.js
|
|
41174
41243
|
var DELETE_AT_ONCE = 10;
|
|
41175
41244
|
var atOnce = /* @__PURE__ */ __name((ids) => {
|
|
41176
41245
|
if (ids.length > DELETE_AT_ONCE)
|
|
@@ -41670,7 +41739,7 @@ var checkMediaOptions = /* @__PURE__ */ __name((messenger, asked, attachments) =
|
|
|
41670
41739
|
throw new CliError("validation_error", `${MEDIA_FLAGS[first2]} needs a --photo or --file`);
|
|
41671
41740
|
}, "checkMediaOptions");
|
|
41672
41741
|
|
|
41673
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
41742
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/domain/channel-tags.js
|
|
41674
41743
|
var CHANNEL_TAG_RULES_VERSION = "keywords-v1";
|
|
41675
41744
|
var RULES2 = {
|
|
41676
41745
|
ai: [/\b(ai|gpt|llm|machine learning|artificial intelligence)\b/iu, /нейросет|искусственн/iu],
|
|
@@ -41685,7 +41754,7 @@ var classifyChannel = /* @__PURE__ */ __name((metadata) => Object.entries(RULES2
|
|
|
41685
41754
|
return fields2.length ? [{ tag, score: fields2.length / 3, fields: fields2 }] : [];
|
|
41686
41755
|
}), "classifyChannel");
|
|
41687
41756
|
|
|
41688
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
41757
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/services/metadata.js
|
|
41689
41758
|
var metadataService = /* @__PURE__ */ __name((deps) => {
|
|
41690
41759
|
const held = /* @__PURE__ */ __name(async (reference, { includeLeft = false } = {}) => {
|
|
41691
41760
|
const store = await deps.store();
|
|
@@ -41771,7 +41840,7 @@ var metadataService = /* @__PURE__ */ __name((deps) => {
|
|
|
41771
41840
|
};
|
|
41772
41841
|
}, "metadataService");
|
|
41773
41842
|
|
|
41774
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
41843
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/moderation/check.js
|
|
41775
41844
|
var INVITE = /max\.ru\/join\/|(t|telegram)\.me\/(\+|joinchat\/)|tg:\/\/join/i;
|
|
41776
41845
|
var LINK2 = /https?:\/\/\S+/i;
|
|
41777
41846
|
var STRENGTH = { report: 0, delete: 1, remove: 2 };
|
|
@@ -41959,7 +42028,7 @@ var nextPoint = /* @__PURE__ */ __name((rows, found) => {
|
|
|
41959
42028
|
}, "nextPoint");
|
|
41960
42029
|
var someUndone = /* @__PURE__ */ __name((rows) => rows.some(undone), "someUndone");
|
|
41961
42030
|
|
|
41962
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
42031
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/moderation/rules.js
|
|
41963
42032
|
import { existsSync as existsSync2, readdirSync, readFileSync as readFileSync9 } from "node:fs";
|
|
41964
42033
|
import { join as join18 } from "node:path";
|
|
41965
42034
|
var RULE_ACTIONS = ["report", "delete", "remove"];
|
|
@@ -42111,7 +42180,7 @@ var assign = /* @__PURE__ */ __name((rules, key, value) => {
|
|
|
42111
42180
|
return { ...rules, [head]: { ...rules[head], [tail]: value } };
|
|
42112
42181
|
}, "assign");
|
|
42113
42182
|
|
|
42114
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
42183
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/moderation/run.js
|
|
42115
42184
|
var FIRST_LOOK_MS = 24 * 36e5;
|
|
42116
42185
|
var moderateWith = /* @__PURE__ */ __name(async (run2) => {
|
|
42117
42186
|
const { chatId, title, rules, point, since, dryRun } = run2;
|
|
@@ -42148,7 +42217,7 @@ var moderateWith = /* @__PURE__ */ __name(async (run2) => {
|
|
|
42148
42217
|
return { chatId, rows, notes };
|
|
42149
42218
|
}, "moderateWith");
|
|
42150
42219
|
|
|
42151
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
42220
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/services/moderation.js
|
|
42152
42221
|
var moderationService = /* @__PURE__ */ __name((deps) => {
|
|
42153
42222
|
const file2 = /* @__PURE__ */ __name(() => {
|
|
42154
42223
|
const env = deps.env ?? process.env;
|
|
@@ -42233,7 +42302,7 @@ var moderatorOf = /* @__PURE__ */ __name((adapter, deps) => ({
|
|
|
42233
42302
|
}, "removePerson")
|
|
42234
42303
|
}), "moderatorOf");
|
|
42235
42304
|
|
|
42236
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
42305
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/services/private-people.js
|
|
42237
42306
|
var noteItem = /* @__PURE__ */ __name((provider, note) => ({
|
|
42238
42307
|
id: note.id,
|
|
42239
42308
|
contact: formatReference({ type: "contact", provider, id: note.personId }),
|
|
@@ -42277,7 +42346,7 @@ var privatePeopleService = /* @__PURE__ */ __name((deps) => {
|
|
|
42277
42346
|
};
|
|
42278
42347
|
}, "privatePeopleService");
|
|
42279
42348
|
|
|
42280
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
42349
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/services/rankings.js
|
|
42281
42350
|
var empty = /* @__PURE__ */ __name(() => ({
|
|
42282
42351
|
total: 0,
|
|
42283
42352
|
population: 0,
|
|
@@ -42533,7 +42602,7 @@ var rankingsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
42533
42602
|
}, "evidence")
|
|
42534
42603
|
}), "rankingsService");
|
|
42535
42604
|
|
|
42536
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
42605
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/services/reply-stats.js
|
|
42537
42606
|
var FIELDS2 = ["date", "chat", "kind", "muted"];
|
|
42538
42607
|
var WAITING_TAIL = 100;
|
|
42539
42608
|
var plainOnly = /* @__PURE__ */ __name((text3, command) => {
|
|
@@ -42667,7 +42736,7 @@ var replyStatsService = /* @__PURE__ */ __name((deps) => {
|
|
|
42667
42736
|
};
|
|
42668
42737
|
}, "replyStatsService");
|
|
42669
42738
|
|
|
42670
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
42739
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/services/searches.js
|
|
42671
42740
|
var savedSearchItem = /* @__PURE__ */ __name((one) => ({
|
|
42672
42741
|
id: one.id,
|
|
42673
42742
|
name: one.name,
|
|
@@ -42793,7 +42862,7 @@ var searchesService = /* @__PURE__ */ __name((deps) => {
|
|
|
42793
42862
|
};
|
|
42794
42863
|
}, "searchesService");
|
|
42795
42864
|
|
|
42796
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
42865
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/services/tags.js
|
|
42797
42866
|
var TAGGING_QUERY = {
|
|
42798
42867
|
entity: "tagging",
|
|
42799
42868
|
backend: "sql",
|
|
@@ -42877,7 +42946,7 @@ var tagsService = /* @__PURE__ */ __name((deps) => {
|
|
|
42877
42946
|
};
|
|
42878
42947
|
}, "tagsService");
|
|
42879
42948
|
|
|
42880
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
42949
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/services/topics.js
|
|
42881
42950
|
var actionOf = /* @__PURE__ */ __name(({ title, closed, pinned, hidden, icon }) => {
|
|
42882
42951
|
const set2 = [closed, pinned, hidden].filter((one) => one !== void 0).length;
|
|
42883
42952
|
if (title !== void 0 || icon !== void 0 || set2 !== 1)
|
|
@@ -43076,7 +43145,7 @@ var topicsService = /* @__PURE__ */ __name((deps) => {
|
|
|
43076
43145
|
};
|
|
43077
43146
|
}, "topicsService");
|
|
43078
43147
|
|
|
43079
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
43148
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/services/evidence.js
|
|
43080
43149
|
import { createHash as createHash11, randomUUID as randomUUID6 } from "node:crypto";
|
|
43081
43150
|
var hash2 = /* @__PURE__ */ __name((value) => createHash11("sha256").update(JSON.stringify(value)).digest("hex"), "hash");
|
|
43082
43151
|
var positive2 = /* @__PURE__ */ __name((value, name, minimum = 1) => {
|
|
@@ -43150,7 +43219,7 @@ var prepareEvidencePacket = /* @__PURE__ */ __name(({ kind: kind2, source, page,
|
|
|
43150
43219
|
return { ...content, id: randomUUID6(), fingerprint: hash2(content) };
|
|
43151
43220
|
}, "prepareEvidencePacket");
|
|
43152
43221
|
|
|
43153
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
43222
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/services/evidence-read.js
|
|
43154
43223
|
var readEvidencePacket = /* @__PURE__ */ __name(async (store, account, { chat, limit, before }, messenger = {}) => {
|
|
43155
43224
|
if (!Number.isSafeInteger(limit) || limit < 1 || limit > 100)
|
|
43156
43225
|
throw new CliError("validation_error", "evidence message limit must be an integer from 1 to 100");
|
|
@@ -43170,7 +43239,7 @@ var readEvidencePacket = /* @__PURE__ */ __name(async (store, account, { chat, l
|
|
|
43170
43239
|
return { ...packet, nextBeforeId: older && last ? last.id : null };
|
|
43171
43240
|
}, "readEvidencePacket");
|
|
43172
43241
|
|
|
43173
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
43242
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/services/meeting-project-discovery.js
|
|
43174
43243
|
var scopeKeys = [
|
|
43175
43244
|
"accountId",
|
|
43176
43245
|
"meetingId",
|
|
@@ -43192,7 +43261,7 @@ var optionKeys = /* @__PURE__ */ new Set([
|
|
|
43192
43261
|
"maxVocabularyReadBytes"
|
|
43193
43262
|
]);
|
|
43194
43263
|
|
|
43195
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
43264
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/services/text-model-choice.js
|
|
43196
43265
|
import { createHash as createHash12 } from "node:crypto";
|
|
43197
43266
|
import { existsSync as existsSync3 } from "node:fs";
|
|
43198
43267
|
var useTextModel = /* @__PURE__ */ __name(async (id3, { env, command }) => {
|
|
@@ -43323,14 +43392,14 @@ var addCustomTextModel = /* @__PURE__ */ __name(async (id3, payload, { env, fetc
|
|
|
43323
43392
|
return { ...checked2.output, custom: true };
|
|
43324
43393
|
}, "addCustomTextModel");
|
|
43325
43394
|
|
|
43326
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
43395
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/calendar/sync.js
|
|
43327
43396
|
var DAY8 = 864e5;
|
|
43328
43397
|
var SLOTS_EVERY = 7 * DAY8;
|
|
43329
43398
|
|
|
43330
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
43399
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/calendar/feeds.js
|
|
43331
43400
|
var FEED_LIMITS = { maxBytes: 10 * 1024 * 1024, timeoutMs: 3e4, redirects: 5 };
|
|
43332
43401
|
|
|
43333
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
43402
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/calendar/reads.js
|
|
43334
43403
|
var LIST = "events list";
|
|
43335
43404
|
var EVENT_TYPES = [
|
|
43336
43405
|
"default",
|
|
@@ -43389,7 +43458,7 @@ var EVENTS_QUERY = {
|
|
|
43389
43458
|
} : field)
|
|
43390
43459
|
};
|
|
43391
43460
|
|
|
43392
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
43461
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/calendar/writer.js
|
|
43393
43462
|
var EVENTS_NOTIFY_KEY = "events.notify";
|
|
43394
43463
|
var EVENTS_DELETE_SERIES_KEY = "events.delete.series";
|
|
43395
43464
|
var EVENTS_REMIND_HOOK_KEY = "events.remind.hook";
|
|
@@ -43407,7 +43476,7 @@ var CALENDAR_WRITE_DEFAULTS = {
|
|
|
43407
43476
|
[EVENTS_REMIND_HOOK_KEY]: "deny"
|
|
43408
43477
|
};
|
|
43409
43478
|
|
|
43410
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
43479
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/context/communication-selection.js
|
|
43411
43480
|
var communicationFields = {
|
|
43412
43481
|
sources: pipe(array(strictObject({
|
|
43413
43482
|
id: pipe(string(), regex(/^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$/)),
|
|
@@ -43439,7 +43508,7 @@ var communicationRequest = /* @__PURE__ */ __name((value, preparationAfter) => {
|
|
|
43439
43508
|
return { ...input, after, before };
|
|
43440
43509
|
}, "communicationRequest");
|
|
43441
43510
|
|
|
43442
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
43511
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/services/meeting-preparation-validation.js
|
|
43443
43512
|
var MEETING_PREPARATION_LIMITS = {
|
|
43444
43513
|
meetings: { min: 1, max: 20, default: 5 },
|
|
43445
43514
|
cues: { min: 1, max: 100, default: 10 },
|
|
@@ -43512,7 +43581,7 @@ var validateMeetingPreparationRequest = /* @__PURE__ */ __name((externalId, orig
|
|
|
43512
43581
|
};
|
|
43513
43582
|
}, "validateMeetingPreparationRequest");
|
|
43514
43583
|
|
|
43515
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
43584
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/services/meeting-communications-selection.js
|
|
43516
43585
|
var validatePreparationCommunications = /* @__PURE__ */ __name((section, request, after) => {
|
|
43517
43586
|
const fail2 = /* @__PURE__ */ __name(() => {
|
|
43518
43587
|
throw new CliError("invalid_response", "Preparation communications returned another selection or invalid evidence");
|
|
@@ -43560,7 +43629,7 @@ var validatePreparationCommunications = /* @__PURE__ */ __name((section, request
|
|
|
43560
43629
|
}
|
|
43561
43630
|
}, "validatePreparationCommunications");
|
|
43562
43631
|
|
|
43563
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
43632
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/services/package-upgrade.js
|
|
43564
43633
|
var upgradePackage = /* @__PURE__ */ __name(async ({ current, command, packageName, check: check2 }, ports) => {
|
|
43565
43634
|
const installer = ports.installer();
|
|
43566
43635
|
const argv = updateCommand(installer, packageName);
|
|
@@ -43625,7 +43694,7 @@ var dayAfter = /* @__PURE__ */ __name((published) => {
|
|
|
43625
43694
|
return Number.isNaN(time2) ? null : new Date(time2 + 24 * 60 * 60 * 1e3).toISOString();
|
|
43626
43695
|
}, "dayAfter");
|
|
43627
43696
|
|
|
43628
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
43697
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/services/index.js
|
|
43629
43698
|
var servicesFor = /* @__PURE__ */ __name((deps) => {
|
|
43630
43699
|
const pictures = picturesService(deps);
|
|
43631
43700
|
const base = {
|
|
@@ -43855,6 +43924,7 @@ export {
|
|
|
43855
43924
|
keyVariable,
|
|
43856
43925
|
enrichmentState,
|
|
43857
43926
|
searchNotesOf,
|
|
43927
|
+
embedCrmActivities,
|
|
43858
43928
|
HARDER_MODELS,
|
|
43859
43929
|
HARDER_CANDIDATES,
|
|
43860
43930
|
HARDER_CHARS,
|