@wirecat/tg-cli 0.122.0 → 0.123.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/contracts/wirecat.json +15 -0
- package/dist/bin/tg.js +2 -2
- package/dist/bundle/{adapter-ZI57T2L5.js → adapter-GAOG65O2.js} +46 -46
- package/dist/bundle/{all-profiles-7VXJF42C.js → all-profiles-HLE6PHNI.js} +8 -8
- package/dist/bundle/{anthropic-DKRXIWVV.js → anthropic-FZC4BS7T.js} +4 -4
- package/dist/bundle/{app-server-F5MKHZ7S.js → app-server-SHZNMV27.js} +40 -40
- package/dist/bundle/{bot-api-F24NWJT3.js → bot-api-LRS2KMDE.js} +46 -46
- package/dist/bundle/{bot-history-U3WM3A7S.js → bot-history-IJ7ZZKW5.js} +16 -16
- package/dist/bundle/{bun-OMTJAXGK.js → bun-FACL53HM.js} +2 -2
- package/dist/bundle/{bun-sqlite-HSYLO46A.js → bun-sqlite-B2MD7RTL.js} +8 -4
- package/dist/bundle/{chunk-ZNPRTCUO.js → chunk-3BUQXB7B.js} +7 -7
- package/dist/bundle/{chunk-DCGGZUNJ.js → chunk-3JISIGLP.js} +2 -2
- package/dist/bundle/{chunk-VDFEWSCS.js → chunk-3P7HWXDJ.js} +3 -3
- package/dist/bundle/{chunk-U6HEZPCR.js → chunk-3S6KZCZ7.js} +1 -1
- package/dist/bundle/{chunk-ARKB3M5X.js → chunk-4DCFLHLN.js} +3 -3
- package/dist/bundle/{chunk-VC6J7X76.js → chunk-5IHYZ6ED.js} +11 -11
- package/dist/bundle/{chunk-7DPWVKYS.js → chunk-5R5HGV2J.js} +2 -2
- package/dist/bundle/{chunk-DTTONQW7.js → chunk-6FK2Z75N.js} +2 -2
- package/dist/bundle/{chunk-GJBGZQHN.js → chunk-6KT5BTWL.js} +162 -149
- package/dist/bundle/{chunk-6LMEIELG.js → chunk-7EFJHLKW.js} +1 -1
- package/dist/bundle/{chunk-N7WDVH2O.js → chunk-ADI5R2MM.js} +29 -29
- package/dist/bundle/{chunk-YFEH7OWG.js → chunk-B6G3TNN4.js} +14 -14
- package/dist/bundle/{chunk-PG3V225O.js → chunk-BAB3ALHZ.js} +27 -24
- package/dist/bundle/{chunk-R2IW6JBV.js → chunk-BGUYYKS3.js} +48 -48
- package/dist/bundle/{chunk-4MFMUBHH.js → chunk-DEMGDKCX.js} +77 -77
- package/dist/bundle/{chunk-Y74WJL3M.js → chunk-E2Z4C6CQ.js} +2 -2
- package/dist/bundle/{chunk-FZKHFTKH.js → chunk-EABZ2CUG.js} +15 -14
- package/dist/bundle/{chunk-SODUFMDW.js → chunk-EISV5YWD.js} +1060 -913
- package/dist/bundle/{chunk-33ELXJRR.js → chunk-ENEMZAIJ.js} +10 -10
- package/dist/bundle/{chunk-7FWU4RON.js → chunk-EOUUI5FI.js} +3 -3
- package/dist/bundle/{chunk-VQL4RVXZ.js → chunk-FFHX7VKP.js} +1 -1
- package/dist/bundle/{chunk-7I6YVQHW.js → chunk-HJLTWT52.js} +1 -1
- package/dist/bundle/{chunk-ZKHXWSKD.js → chunk-I7K4OR5Q.js} +4 -4
- package/dist/bundle/chunk-KKMNMQMW.js +53 -0
- package/dist/bundle/{chunk-FHWUOFWX.js → chunk-MFN5MSIL.js} +3 -3
- package/dist/bundle/{chunk-NE3EGYPD.js → chunk-NYRAW4M5.js} +3 -3
- package/dist/bundle/{chunk-V4BPS7MH.js → chunk-OE5JMZSM.js} +6 -6
- package/dist/bundle/{chunk-W34QQMBK.js → chunk-OOWE2O5U.js} +1 -1
- package/dist/bundle/{chunk-HAR76KJG.js → chunk-PAHSIORC.js} +5 -5
- package/dist/bundle/{chunk-GJFICFQB.js → chunk-PZJXQMSZ.js} +1 -1
- package/dist/bundle/{chunk-7GCVON7M.js → chunk-PZQ2MQFX.js} +5 -5
- package/dist/bundle/{chunk-7X6YLKTK.js → chunk-Q74XVJFT.js} +1 -1
- package/dist/bundle/{chunk-O5A4IS2D.js → chunk-QLB3BFSN.js} +1 -1
- package/dist/bundle/{chunk-CB6AHU6H.js → chunk-QLXKWAET.js} +20 -11
- package/dist/bundle/{chunk-YDMKP7PO.js → chunk-QVMAZVSN.js} +1 -1
- package/dist/bundle/{chunk-CW3C7FSO.js → chunk-RDKPKS2P.js} +1 -1
- package/dist/bundle/{chunk-ALW7ROTM.js → chunk-SCGCDLI7.js} +1 -1
- package/dist/bundle/{chunk-WGGSFGNZ.js → chunk-SMFUKHG2.js} +24 -0
- package/dist/bundle/{chunk-DDSAJKPO.js → chunk-SNEJK4SN.js} +4 -4
- package/dist/bundle/{chunk-4N2WJYLE.js → chunk-STPYSD6W.js} +2 -2
- package/dist/bundle/{chunk-NU4RMUMQ.js → chunk-SWGGYBCW.js} +13 -13
- package/dist/bundle/{chunk-6DLRATDC.js → chunk-T5OO7VDT.js} +302 -260
- package/dist/bundle/{chunk-D3ODL4P7.js → chunk-U5FILNK6.js} +2 -2
- package/dist/bundle/{chunk-2UHANFLM.js → chunk-UB6J5HRW.js} +3 -3
- package/dist/bundle/{chunk-E3MFMMVY.js → chunk-UBFDPLFQ.js} +5 -5
- package/dist/bundle/{chunk-QROAXWDU.js → chunk-V23X3W2W.js} +7 -7
- package/dist/bundle/{chunk-UGEYQWEO.js → chunk-V4722KYX.js} +1 -1
- package/dist/bundle/{chunk-C5CB6RIX.js → chunk-V4JEZFW5.js} +1 -1
- package/dist/bundle/{chunk-2FXA32RJ.js → chunk-VVRWH5VH.js} +7 -7
- package/dist/bundle/{chunk-TKJZENAZ.js → chunk-WA7YED3Y.js} +1 -1
- package/dist/bundle/{chunk-LQRZUNYF.js → chunk-WSLTW6MI.js} +2 -2
- package/dist/bundle/{chunk-FYHFAOPM.js → chunk-XDL4L3OI.js} +9103 -8607
- package/dist/bundle/{chunk-27SVHRHV.js → chunk-Z5HHBTS5.js} +2 -2
- package/dist/bundle/{chunk-MFWWZ6XL.js → chunk-ZJPXRW65.js} +3 -3
- package/dist/bundle/{chunk-FATTEYZH.js → chunk-ZOBRYIUG.js} +1 -1
- package/dist/bundle/{chunk-RFFU6KQ5.js → chunk-ZQ3WGGKK.js} +12 -12
- package/dist/bundle/command-contract-HWSWHMO4.js +33 -0
- package/dist/bundle/{command-server-entry-N32NX4QW.js → command-server-entry-5LKDRLEX.js} +20 -20
- package/dist/bundle/{decode-ZKJWSFXF.js → decode-L4DQDHXA.js} +4 -4
- package/dist/bundle/{dispatch-U2DW6UI7.js → dispatch-PQSCFHEX.js} +1 -1
- package/dist/bundle/{echarts-QLVLIP73.js → echarts-6LES2JIV.js} +2 -2
- package/dist/bundle/{embed-LC6K7P3S.js → embed-T5MLKX75.js} +5 -5
- package/dist/bundle/{embedder-6C3OQBOV.js → embedder-56NMRLC5.js} +8 -8
- package/dist/bundle/{entry-5H6LB3MP.js → entry-U5GV6Y46.js} +7 -7
- package/dist/bundle/{failure-HJD7S5UA.js → failure-BX5HJAQE.js} +1 -1
- package/dist/bundle/{first-run-IOYQ4XQK.js → first-run-ISQ52V3I.js} +8 -8
- package/dist/bundle/first-screen-7L4AMZDO.js +31 -0
- package/dist/bundle/{instructions-SZUMEDY3.js → instructions-CJEXDI7E.js} +1 -1
- package/dist/bundle/{node-V76RRFIA.js → node-QLWTGZW7.js} +2 -2
- package/dist/bundle/{node-sqlite-2DTVOT7L.js → node-sqlite-X2C3RR2Q.js} +9 -5
- package/dist/bundle/{oauth-CT7EBDRY.js → oauth-VP3KMHLX.js} +6 -6
- package/dist/bundle/{open-G3VHOOMV.js → open-GLR5EUZS.js} +4 -4
- package/dist/bundle/{openai-F4K7MVTZ.js → openai-6CDCJ5LQ.js} +12 -12
- package/dist/bundle/{process-XH3KEHSF.js → process-7FABZ3T2.js} +1 -1
- package/dist/bundle/{program-FLGIHTHM.js → program-KUIAHJDX.js} +49 -49
- package/dist/bundle/{prompt-JWQ6UQ6R.js → prompt-XPHIZMD2.js} +4 -4
- package/dist/bundle/{proxy-transport-ENU2SJYT.js → proxy-transport-IIB7ZXIS.js} +4 -4
- package/dist/bundle/{recognize-Z26T3SYD.js → recognize-FVFYI3XX.js} +3 -3
- package/dist/bundle/{remote-7KHT6V3O.js → remote-3AMCG2P4.js} +6 -6
- package/dist/bundle/{rerank-6QVI74QY.js → rerank-XV4E25ML.js} +6 -6
- package/dist/bundle/{serve-WYDZTONY.js → serve-NVSZA4UN.js} +8 -8
- package/dist/bundle/{server-Y4J2NCFA.js → server-MBMPHRJE.js} +31 -31
- package/dist/bundle/server-MHVGYRQZ.js +61 -0
- package/dist/bundle/{state-YCXBKOD2.js → state-JBMB2QUR.js} +5 -5
- package/dist/bundle/{store-QECSDJRP.js → store-T4SCYTY2.js} +11 -11
- package/dist/bundle/store-maintenance-command-F7WQMTMP.js +49 -0
- package/dist/bundle/tg.js +6 -6
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +2 -2
- package/dist/bundle/chunk-Y52T5EMB.js +0 -35
- package/dist/bundle/command-contract-247AKZTE.js +0 -33
- package/dist/bundle/first-screen-NVK7PFX4.js +0 -31
- package/dist/bundle/server-UXQT7LZT.js +0 -61
- package/dist/bundle/store-maintenance-command-5YW6TRJA.js +0 -49
|
@@ -8,14 +8,14 @@ import {
|
|
|
8
8
|
sameOrdinaryFile,
|
|
9
9
|
syncDirectory,
|
|
10
10
|
writeFileAtomic
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-ZQ3WGGKK.js";
|
|
12
12
|
import {
|
|
13
13
|
remoteKey
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-U5FILNK6.js";
|
|
15
15
|
import {
|
|
16
16
|
isNewer,
|
|
17
17
|
updateCommand
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-5R5HGV2J.js";
|
|
19
19
|
import {
|
|
20
20
|
AGENDA_COLUMNS,
|
|
21
21
|
BUSINESS_FIND_MAX,
|
|
@@ -89,13 +89,13 @@ import {
|
|
|
89
89
|
validateAst,
|
|
90
90
|
validateFields,
|
|
91
91
|
withoutField
|
|
92
|
-
} from "./chunk-
|
|
92
|
+
} from "./chunk-XDL4L3OI.js";
|
|
93
93
|
import {
|
|
94
94
|
DEFAULT_STEMMERS,
|
|
95
95
|
createStemmer,
|
|
96
96
|
fold,
|
|
97
97
|
normalize
|
|
98
|
-
} from "./chunk-
|
|
98
|
+
} from "./chunk-V23X3W2W.js";
|
|
99
99
|
import {
|
|
100
100
|
MAX_MODEL_IMAGE_BYTES,
|
|
101
101
|
checkedOptions,
|
|
@@ -103,7 +103,7 @@ import {
|
|
|
103
103
|
range,
|
|
104
104
|
systemFor,
|
|
105
105
|
validateImages
|
|
106
|
-
} from "./chunk-
|
|
106
|
+
} from "./chunk-3P7HWXDJ.js";
|
|
107
107
|
import {
|
|
108
108
|
Unzip,
|
|
109
109
|
UnzipInflate,
|
|
@@ -114,7 +114,7 @@ import {
|
|
|
114
114
|
placedText,
|
|
115
115
|
runEmbedders,
|
|
116
116
|
textModelsDirectory
|
|
117
|
-
} from "./chunk-
|
|
117
|
+
} from "./chunk-PZQ2MQFX.js";
|
|
118
118
|
import {
|
|
119
119
|
CEILING_KEY,
|
|
120
120
|
Command,
|
|
@@ -164,13 +164,13 @@ import {
|
|
|
164
164
|
textModels,
|
|
165
165
|
vectorModelKey,
|
|
166
166
|
writeTextModelsSection
|
|
167
|
-
} from "./chunk-
|
|
167
|
+
} from "./chunk-6KT5BTWL.js";
|
|
168
168
|
import {
|
|
169
169
|
MESSENGER_CHANGE_REFUSAL,
|
|
170
170
|
envName,
|
|
171
171
|
readOnlyLockOf,
|
|
172
172
|
readOnlyRefusal
|
|
173
|
-
} from "./chunk-
|
|
173
|
+
} from "./chunk-PZJXQMSZ.js";
|
|
174
174
|
import {
|
|
175
175
|
EVENT_QUERY,
|
|
176
176
|
INTERNAL_NOTES,
|
|
@@ -252,26 +252,26 @@ import {
|
|
|
252
252
|
walkQuery,
|
|
253
253
|
withAttempt,
|
|
254
254
|
zonedMoment
|
|
255
|
-
} from "./chunk-
|
|
255
|
+
} from "./chunk-DEMGDKCX.js";
|
|
256
256
|
import {
|
|
257
257
|
isCliFailure,
|
|
258
258
|
sqliteCode
|
|
259
|
-
} from "./chunk-
|
|
259
|
+
} from "./chunk-Z5HHBTS5.js";
|
|
260
260
|
import {
|
|
261
261
|
DEFAULT_TASK_CATEGORIES,
|
|
262
262
|
FALLBACK_CATEGORY,
|
|
263
263
|
readSharedSection,
|
|
264
264
|
sharedConfigPath,
|
|
265
265
|
writeSharedSection
|
|
266
|
-
} from "./chunk-
|
|
266
|
+
} from "./chunk-PAHSIORC.js";
|
|
267
267
|
import {
|
|
268
268
|
installFiles,
|
|
269
269
|
megabytes
|
|
270
|
-
} from "./chunk-
|
|
270
|
+
} from "./chunk-EOUUI5FI.js";
|
|
271
271
|
import {
|
|
272
272
|
storePath,
|
|
273
273
|
wirecatDirectory
|
|
274
|
-
} from "./chunk-
|
|
274
|
+
} from "./chunk-KKMNMQMW.js";
|
|
275
275
|
import {
|
|
276
276
|
Credentials,
|
|
277
277
|
logRecordOf,
|
|
@@ -279,7 +279,7 @@ import {
|
|
|
279
279
|
realSleep,
|
|
280
280
|
resolvePaths,
|
|
281
281
|
writeSecurely
|
|
282
|
-
} from "./chunk-
|
|
282
|
+
} from "./chunk-3S6KZCZ7.js";
|
|
283
283
|
import {
|
|
284
284
|
array,
|
|
285
285
|
boolean,
|
|
@@ -307,7 +307,7 @@ import {
|
|
|
307
307
|
trim,
|
|
308
308
|
union,
|
|
309
309
|
unknown
|
|
310
|
-
} from "./chunk-
|
|
310
|
+
} from "./chunk-SMFUKHG2.js";
|
|
311
311
|
import {
|
|
312
312
|
importFrom,
|
|
313
313
|
resolveFrom
|
|
@@ -16933,7 +16933,7 @@ var require_lib3 = __commonJS({
|
|
|
16933
16933
|
}
|
|
16934
16934
|
});
|
|
16935
16935
|
|
|
16936
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16936
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/conversations/link.js
|
|
16937
16937
|
var RULES_VERSION = 5;
|
|
16938
16938
|
var LOOK_BACK = 50;
|
|
16939
16939
|
var SAME_SENDER_WITHIN = 10;
|
|
@@ -17023,15 +17023,15 @@ var latest = /* @__PURE__ */ __name((window3, matches) => {
|
|
|
17023
17023
|
var sameThread = /* @__PURE__ */ __name((a, b) => a.threadId === b.threadId, "sameThread");
|
|
17024
17024
|
var link = /* @__PURE__ */ __name((message, parentId, source, kind, confidence, method) => ({ messageId: message.id, parentId, source, kind, confidence, method }), "link");
|
|
17025
17025
|
|
|
17026
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17026
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/ports/traits.js
|
|
17027
17027
|
var syncsOneChat = /* @__PURE__ */ __name((messenger) => messenger.history !== "store" || messenger.historyOnDemand === true, "syncsOneChat");
|
|
17028
17028
|
|
|
17029
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17029
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/sends/send-id.js
|
|
17030
17030
|
import { randomBytes } from "node:crypto";
|
|
17031
17031
|
var newSendId = /* @__PURE__ */ __name(() => randomBytes(8).readBigInt64BE().toString(), "newSendId");
|
|
17032
17032
|
var newOperationId = newSendId;
|
|
17033
17033
|
|
|
17034
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17034
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/sends/upload.js
|
|
17035
17035
|
import { openAsBlob, realpathSync } from "node:fs";
|
|
17036
17036
|
import { open, stat } from "node:fs/promises";
|
|
17037
17037
|
import { basename, dirname, extname, isAbsolute, relative, resolve, sep } from "node:path";
|
|
@@ -17252,10 +17252,10 @@ var readStickerFile = /* @__PURE__ */ __name(async (path, maxBytes, read) => {
|
|
|
17252
17252
|
return { name, source };
|
|
17253
17253
|
}, "readStickerFile");
|
|
17254
17254
|
|
|
17255
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17255
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/sends/guard.js
|
|
17256
17256
|
import { randomUUID } from "node:crypto";
|
|
17257
17257
|
|
|
17258
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17258
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/sends/flood.js
|
|
17259
17259
|
import { mkdirSync, readFileSync, renameSync, writeFileSync } from "node:fs";
|
|
17260
17260
|
import { dirname as dirname2, join } from "node:path";
|
|
17261
17261
|
var MOST_DEADLINES = 50;
|
|
@@ -17339,11 +17339,11 @@ var FloodMemory = class {
|
|
|
17339
17339
|
}
|
|
17340
17340
|
};
|
|
17341
17341
|
|
|
17342
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17342
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/sends/journal.js
|
|
17343
17343
|
import { appendFileSync, mkdirSync as mkdirSync3, readFileSync as readFileSync2 } from "node:fs";
|
|
17344
17344
|
import { dirname as dirname4, join as join2 } from "node:path";
|
|
17345
17345
|
|
|
17346
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17346
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/sends/file-lock.js
|
|
17347
17347
|
import { closeSync, mkdirSync as mkdirSync2, openSync, statSync, unlinkSync } from "node:fs";
|
|
17348
17348
|
import { dirname as dirname3 } from "node:path";
|
|
17349
17349
|
var LOCK_WAIT_MS = 5e3;
|
|
@@ -17410,7 +17410,7 @@ var lockTime = /* @__PURE__ */ __name((lock) => {
|
|
|
17410
17410
|
}
|
|
17411
17411
|
}, "lockTime");
|
|
17412
17412
|
|
|
17413
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17413
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/sends/journal.js
|
|
17414
17414
|
var sendsPathFor = /* @__PURE__ */ __name((app, profile, env = process.env) => join2(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "sends", `${profile}.jsonl`), "sendsPathFor");
|
|
17415
17415
|
var SendJournal = class {
|
|
17416
17416
|
static {
|
|
@@ -17487,7 +17487,7 @@ var withSendId = /* @__PURE__ */ __name((entry) => {
|
|
|
17487
17487
|
return cid === void 0 || rest.sendId !== void 0 ? rest : { ...rest, sendId: String(cid) };
|
|
17488
17488
|
}, "withSendId");
|
|
17489
17489
|
|
|
17490
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17490
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/sends/recipients.js
|
|
17491
17491
|
import { existsSync, readFileSync as readFileSync3, rmSync } from "node:fs";
|
|
17492
17492
|
import { join as join3 } from "node:path";
|
|
17493
17493
|
var recipientsPathFor = /* @__PURE__ */ __name((app, profile, env = process.env) => join3(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "profiles", `${profile}.recipients.json`), "recipientsPathFor");
|
|
@@ -17599,7 +17599,7 @@ var RecipientList = class {
|
|
|
17599
17599
|
}
|
|
17600
17600
|
};
|
|
17601
17601
|
|
|
17602
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17602
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/sends/guard.js
|
|
17603
17603
|
var HOUR_MS = 60 * 60 * 1e3;
|
|
17604
17604
|
var READS_UNDER_HOLD = /* @__PURE__ */ new Set([
|
|
17605
17605
|
"attachments.extract",
|
|
@@ -17792,7 +17792,7 @@ var guardFor = /* @__PURE__ */ __name((app, settings, warn, env = process.env, a
|
|
|
17792
17792
|
}), "guardFor");
|
|
17793
17793
|
var journalFailure = /* @__PURE__ */ __name((error) => error?.code ?? (error instanceof Error ? error.name : "error"), "journalFailure");
|
|
17794
17794
|
|
|
17795
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17795
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/cli/messenger/lacks.js
|
|
17796
17796
|
var COMMAND_NEEDS = {
|
|
17797
17797
|
"account update": ["updateProfile", "change the profile"],
|
|
17798
17798
|
"account sessions list": ["sessions", "list the account's sessions"],
|
|
@@ -17842,7 +17842,7 @@ var hideNever = /* @__PURE__ */ __name((messenger, group) => {
|
|
|
17842
17842
|
return group;
|
|
17843
17843
|
}, "hideNever");
|
|
17844
17844
|
|
|
17845
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17845
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/services/members-audit.js
|
|
17846
17846
|
var AUDIT_PAGE = 200;
|
|
17847
17847
|
var AUDIT_BUDGET = 10;
|
|
17848
17848
|
var AUDIT_PAUSE_MS = 1e3;
|
|
@@ -17922,7 +17922,7 @@ var burstJoins = /* @__PURE__ */ __name((members) => {
|
|
|
17922
17922
|
return found;
|
|
17923
17923
|
}, "burstJoins");
|
|
17924
17924
|
|
|
17925
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17925
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/meetings/cli/query-options.js
|
|
17926
17926
|
var queryWordsAfterOptions = /* @__PURE__ */ __name((command) => {
|
|
17927
17927
|
command.allowUnknownOption();
|
|
17928
17928
|
const parse2 = command.parseOptions.bind(command);
|
|
@@ -17942,7 +17942,7 @@ var queryWordsAfterOptions = /* @__PURE__ */ __name((command) => {
|
|
|
17942
17942
|
return command;
|
|
17943
17943
|
}, "queryWordsAfterOptions");
|
|
17944
17944
|
|
|
17945
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17945
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/meetings/cli/passage.js
|
|
17946
17946
|
var count = /* @__PURE__ */ __name((value) => {
|
|
17947
17947
|
if (!/^(0|[1-9]\d*)$/.test(value) || !Number.isSafeInteger(Number(value)))
|
|
17948
17948
|
throw new CliError("validation_error", "expected a nonnegative safe integer");
|
|
@@ -17984,7 +17984,7 @@ var addMeetingPassageCommandDefinition = /* @__PURE__ */ __name((program, deps)
|
|
|
17984
17984
|
var createMeetingPassageCommand = sharedCommand(createMeetingPassageCommandDefinition);
|
|
17985
17985
|
var addMeetingPassageCommand = sharedCommand(addMeetingPassageCommandDefinition);
|
|
17986
17986
|
|
|
17987
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17987
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/meetings/cli/project-evidence.js
|
|
17988
17988
|
var integer2 = /* @__PURE__ */ __name((value) => {
|
|
17989
17989
|
if (!/^[1-9]\d*$/.test(value) || !Number.isSafeInteger(Number(value)))
|
|
17990
17990
|
throw new CliError("validation_error", "expected a positive safe integer");
|
|
@@ -18007,7 +18007,7 @@ ${fieldsHelp(MEETING_PROJECT_EVIDENCE_QUERY)}`).option("--limit <n>", "hits in o
|
|
|
18007
18007
|
}, "addMeetingProjectEvidenceCommandDefinition");
|
|
18008
18008
|
var addMeetingProjectEvidenceCommand = sharedCommand(addMeetingProjectEvidenceCommandDefinition);
|
|
18009
18009
|
|
|
18010
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18010
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/meetings/cli/search.js
|
|
18011
18011
|
var ZONED = /(?:Z|[+-]\d{2}:?\d{2})$/i;
|
|
18012
18012
|
var moment = /* @__PURE__ */ __name((flag, end, readIn) => (value) => {
|
|
18013
18013
|
const zone = timezoneOf();
|
|
@@ -18093,7 +18093,7 @@ var addMeetingSearchCommandDefinition = /* @__PURE__ */ __name((program, deps) =
|
|
|
18093
18093
|
var createMeetingSearchCommand = sharedCommand(createMeetingSearchCommandDefinition);
|
|
18094
18094
|
var addMeetingSearchCommand = sharedCommand(addMeetingSearchCommandDefinition);
|
|
18095
18095
|
|
|
18096
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18096
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/meetings/cli/index.js
|
|
18097
18097
|
var integer4 = /* @__PURE__ */ __name((text2) => {
|
|
18098
18098
|
if (!/^[1-9]\d*$/.test(text2) || !Number.isSafeInteger(Number(text2)))
|
|
18099
18099
|
throw new InvalidArgumentError("expected a positive integer");
|
|
@@ -18237,7 +18237,7 @@ ${fieldsHelp(EVENT_QUERY, MEETING_QUERY_GUIDE)}`);
|
|
|
18237
18237
|
}, "addMeetingCommandsDefinition");
|
|
18238
18238
|
var addMeetingCommands = sharedCommand(addMeetingCommandsDefinition);
|
|
18239
18239
|
|
|
18240
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18240
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/cli/list-query.js
|
|
18241
18241
|
var LIST_QUERY_GUIDE = "https://github.com/WireCatLabs/cli-core/blob/main/docs/search/query-language.md";
|
|
18242
18242
|
var QUERY_ARGUMENT = "field:value terms that narrow the list \u2014 the fields are below";
|
|
18243
18243
|
var withQuery = /* @__PURE__ */ __name((command, registry) => {
|
|
@@ -18370,7 +18370,7 @@ var termField = /* @__PURE__ */ __name((name, type, example, more = {}) => nativ
|
|
|
18370
18370
|
var queryHelp = /* @__PURE__ */ __name((registry) => `
|
|
18371
18371
|
${fieldsHelp(registry, LIST_QUERY_GUIDE)}`, "queryHelp");
|
|
18372
18372
|
|
|
18373
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18373
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/cli/paging.js
|
|
18374
18374
|
var positiveCount = /* @__PURE__ */ __name((flag) => (value) => {
|
|
18375
18375
|
if (!/^\d+$/.test(value.trim()) || Number(value) < 1)
|
|
18376
18376
|
throw new CliError("validation_error", `${flag} takes a whole number from 1 upwards, not "${value}"`);
|
|
@@ -18379,7 +18379,7 @@ var positiveCount = /* @__PURE__ */ __name((flag) => (value) => {
|
|
|
18379
18379
|
var withPaging = /* @__PURE__ */ __name((command) => command.option("--limit <n>", "how many to show", positiveCount("--limit")).option("--page <n>", "which page, starting at 1", positiveCount("--page")).option("--all", "every row, no paging"), "withPaging");
|
|
18380
18380
|
var window = /* @__PURE__ */ __name(({ limit, page, all }) => all ? { offset: 0 } : { limit, offset: (page - 1) * limit }, "window");
|
|
18381
18381
|
|
|
18382
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18382
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/cli/messenger/chat-answers.js
|
|
18383
18383
|
var defined = /* @__PURE__ */ __name((record2) => Object.fromEntries(Object.entries(record2).filter(([, value]) => value !== void 0)), "defined");
|
|
18384
18384
|
var chatRef = /* @__PURE__ */ __name((account, chat) => formatReference({ type: "chat", provider: account.provider, account: account.account, chat }), "chatRef");
|
|
18385
18385
|
var settingsOf = /* @__PURE__ */ __name((settings) => defined({
|
|
@@ -18641,7 +18641,7 @@ var sessionAnswer = /* @__PURE__ */ __name(({ current, client, device, location,
|
|
|
18641
18641
|
...createdAt === void 0 ? {} : { created_at: createdAt }
|
|
18642
18642
|
}), "sessionAnswer");
|
|
18643
18643
|
|
|
18644
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18644
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/ports/messenger.js
|
|
18645
18645
|
var throughWrapper = /* @__PURE__ */ __name((inner, handled, wrap = (_, call) => call) => new Proxy(handled, {
|
|
18646
18646
|
get: /* @__PURE__ */ __name((own, key) => {
|
|
18647
18647
|
if (key in own)
|
|
@@ -18658,7 +18658,7 @@ var capability = /* @__PURE__ */ __name((adapter, method, what) => {
|
|
|
18658
18658
|
return found.bind(adapter);
|
|
18659
18659
|
}, "capability");
|
|
18660
18660
|
|
|
18661
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18661
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/services/deps.js
|
|
18662
18662
|
var accountStore = /* @__PURE__ */ __name(async (deps) => (await deps.store()).forAccount(await deps.account()), "accountStore");
|
|
18663
18663
|
var crossAccount = /* @__PURE__ */ __name((deps, _reason) => deps.store(), "crossAccount");
|
|
18664
18664
|
var NO_LOCAL_STORE = "this answer comes from the messenger, not from the local store";
|
|
@@ -18720,7 +18720,7 @@ var storedDeps = /* @__PURE__ */ __name((messenger, store, account, guard) => ({
|
|
|
18720
18720
|
}), "storedDeps");
|
|
18721
18721
|
var storeModeDeps = /* @__PURE__ */ __name((messenger, store, account, guard) => ({ ...storedDeps(messenger, store, account, guard), offline: false, reads: "store" }), "storeModeDeps");
|
|
18722
18722
|
|
|
18723
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18723
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/services/patience.js
|
|
18724
18724
|
import { setTimeout as sleep } from "node:timers/promises";
|
|
18725
18725
|
var LONGEST_WAIT_MS = 5 * 60 * 1e3;
|
|
18726
18726
|
var patiently = /* @__PURE__ */ __name(async (request, note, stop) => {
|
|
@@ -18743,10 +18743,10 @@ var patiently = /* @__PURE__ */ __name(async (request, note, stop) => {
|
|
|
18743
18743
|
}
|
|
18744
18744
|
}, "patiently");
|
|
18745
18745
|
|
|
18746
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18746
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/services/archive.js
|
|
18747
18747
|
import { setTimeout as sleep2 } from "node:timers/promises";
|
|
18748
18748
|
|
|
18749
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18749
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/services/backfill-estimate.js
|
|
18750
18750
|
var REQUEST_MS = 400;
|
|
18751
18751
|
var estimateBackfill = /* @__PURE__ */ __name(({ ranges, held, newest, page, maxPages, pauseMs }) => {
|
|
18752
18752
|
const lowest = ranges[0];
|
|
@@ -18769,13 +18769,13 @@ var estimateBackfill = /* @__PURE__ */ __name(({ ranges, held, newest, page, max
|
|
|
18769
18769
|
};
|
|
18770
18770
|
}, "estimateBackfill");
|
|
18771
18771
|
|
|
18772
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18772
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/domain/recovery.js
|
|
18773
18773
|
var withRecovery = /* @__PURE__ */ __name((error) => ({
|
|
18774
18774
|
...error,
|
|
18775
18775
|
retryable: typeof error.retryable === "boolean" ? error.retryable : error.code === "rate_limited" || error.status === 429
|
|
18776
18776
|
}), "withRecovery");
|
|
18777
18777
|
|
|
18778
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18778
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/services/batch.js
|
|
18779
18779
|
var actionable = /* @__PURE__ */ __name((error) => {
|
|
18780
18780
|
if (isCliFailure(error))
|
|
18781
18781
|
return withRecovery({ code: error.code, message: error.message, ...error.details });
|
|
@@ -18858,7 +18858,7 @@ var mergeBatches = /* @__PURE__ */ __name((a, b) => {
|
|
|
18858
18858
|
};
|
|
18859
18859
|
}, "mergeBatches");
|
|
18860
18860
|
|
|
18861
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18861
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/services/message-resolution.js
|
|
18862
18862
|
var readChatId = /* @__PURE__ */ __name(async (deps, reference, store, account) => {
|
|
18863
18863
|
if (deps.reads !== "store")
|
|
18864
18864
|
return keptChatId(deps.messenger, reference, store, account);
|
|
@@ -19017,7 +19017,7 @@ var senderAmong = /* @__PURE__ */ __name(async (store, accounts, reference) => {
|
|
|
19017
19017
|
}
|
|
19018
19018
|
}, "senderAmong");
|
|
19019
19019
|
|
|
19020
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19020
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/images/context/index.js
|
|
19021
19021
|
var CONTEXT_MESSAGES = 3;
|
|
19022
19022
|
var CONTEXT_MINUTES = 10;
|
|
19023
19023
|
var MAX_CHARS = 1200;
|
|
@@ -19041,12 +19041,12 @@ var context = {
|
|
|
19041
19041
|
}, "describe")
|
|
19042
19042
|
};
|
|
19043
19043
|
|
|
19044
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19044
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/images/registry.js
|
|
19045
19045
|
var BUILT_INS = [context];
|
|
19046
19046
|
var providers = [...BUILT_INS];
|
|
19047
19047
|
var registeredImageProviders = /* @__PURE__ */ __name(() => providers, "registeredImageProviders");
|
|
19048
19048
|
|
|
19049
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19049
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/services/conversations.js
|
|
19050
19050
|
var READ_PAGE = 5e3;
|
|
19051
19051
|
var CHAIN = 50;
|
|
19052
19052
|
var CONVERSATION_QUERY = {
|
|
@@ -19198,7 +19198,7 @@ var sized = /* @__PURE__ */ __name((size2) => {
|
|
|
19198
19198
|
return size2;
|
|
19199
19199
|
}, "sized");
|
|
19200
19200
|
|
|
19201
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19201
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/services/embeddings-maintenance.js
|
|
19202
19202
|
var REFRESH_BOUNDS = { maxChats: 20, maxChunks: 2e3 };
|
|
19203
19203
|
var MESSAGE_PAGE = 5e3;
|
|
19204
19204
|
var PER_SESSION = 8;
|
|
@@ -19217,7 +19217,7 @@ var embeddingTarget = /* @__PURE__ */ __name((deps, choice = chosenTextModel(dep
|
|
|
19217
19217
|
price: remote.price,
|
|
19218
19218
|
installed: true,
|
|
19219
19219
|
perBatch: PER_REQUEST * concurrency,
|
|
19220
|
-
open: /* @__PURE__ */ __name(async () => (await import("./remote-
|
|
19220
|
+
open: /* @__PURE__ */ __name(async () => (await import("./remote-3AMCG2P4.js")).openRemote(remote, apiKey, { concurrency }), "open")
|
|
19221
19221
|
};
|
|
19222
19222
|
}
|
|
19223
19223
|
const model = textModel(choice, deps.env);
|
|
@@ -19234,7 +19234,7 @@ var embeddingTarget = /* @__PURE__ */ __name((deps, choice = chosenTextModel(dep
|
|
|
19234
19234
|
if (!isTextModelInstalled(model, directory2))
|
|
19235
19235
|
throw notDownloaded(model.id);
|
|
19236
19236
|
if (apart) {
|
|
19237
|
-
const { openProcess } = await import("./process-
|
|
19237
|
+
const { openProcess } = await import("./process-7FABZ3T2.js");
|
|
19238
19238
|
return openProcess(model, directory2, { threads: threads ?? defaultThreads() });
|
|
19239
19239
|
}
|
|
19240
19240
|
return openEmbedder(model, directory2, { threads: threads ?? defaultThreads() });
|
|
@@ -19523,7 +19523,7 @@ var shaped = /* @__PURE__ */ __name(({ chatId, builtAt, algorithmVersion, pendin
|
|
|
19523
19523
|
return { ...one, state };
|
|
19524
19524
|
}, "shaped");
|
|
19525
19525
|
|
|
19526
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19526
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/services/search-catchup.js
|
|
19527
19527
|
var CATCH_UP_BOUNDS = { maxChunks: 500, maxMessages: 1e4, timeMs: 3e4 };
|
|
19528
19528
|
var validateCatchUpBounds = /* @__PURE__ */ __name((options2) => {
|
|
19529
19529
|
for (const [key, value, maximum] of [
|
|
@@ -19576,7 +19576,7 @@ var catchUpSearch = /* @__PURE__ */ __name(async (deps, chat, options2, signal,
|
|
|
19576
19576
|
}
|
|
19577
19577
|
}, "catchUpSearch");
|
|
19578
19578
|
|
|
19579
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19579
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/services/archive.js
|
|
19580
19580
|
var pushed = /* @__PURE__ */ __name((deps, what) => {
|
|
19581
19581
|
if (deps.reads === "store") {
|
|
19582
19582
|
throw new CliError("validation_error", `${what} asks for older history, and this messenger pushes its history instead \u2014 keep \`${typedCommand(deps.messenger.app.command, "serve")}\` running`);
|
|
@@ -19957,7 +19957,7 @@ var timeOfKey = /* @__PURE__ */ __name(async (store, account, chatId, key, byTim
|
|
|
19957
19957
|
return message?.timestamp ?? fallback;
|
|
19958
19958
|
}, "timeOfKey");
|
|
19959
19959
|
|
|
19960
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19960
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/services/questions.js
|
|
19961
19961
|
var LINKS = /https?:\/\/\S+/g;
|
|
19962
19962
|
var unanswered = /* @__PURE__ */ __name((messages, { answerers: answerers2, before: before2 }) => questions(messages, { answerers: answerers2 }).filter(({ question, answer }) => answer === void 0 && Date.parse(question.timestamp) < before2).map(({ question }) => question), "unanswered");
|
|
19963
19963
|
var questions = /* @__PURE__ */ __name((messages, { answerers: answerers2, asker = "others" }) => {
|
|
@@ -19987,7 +19987,7 @@ var questions = /* @__PURE__ */ __name((messages, { answerers: answerers2, asker
|
|
|
19987
19987
|
});
|
|
19988
19988
|
}, "questions");
|
|
19989
19989
|
|
|
19990
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19990
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/services/task-categories.js
|
|
19991
19991
|
var names = /* @__PURE__ */ __name((categories) => categories.map(({ name }) => name).join(", "), "names");
|
|
19992
19992
|
var taskCategoryOf = /* @__PURE__ */ __name((categories = DEFAULT_TASK_CATEGORIES, flag = "--category") => (typed) => {
|
|
19993
19993
|
const name = typed.trim().toLowerCase();
|
|
@@ -20044,7 +20044,7 @@ var categorize = /* @__PURE__ */ __name((text2, categories = DEFAULT_TASK_CATEGO
|
|
|
20044
20044
|
return best.name;
|
|
20045
20045
|
}, "categorize");
|
|
20046
20046
|
|
|
20047
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20047
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/services/task-rules.js
|
|
20048
20048
|
var taskAccount = /* @__PURE__ */ __name(({ provider, account }) => `${provider}:${account}`, "taskAccount");
|
|
20049
20049
|
var RULES_IN = {
|
|
20050
20050
|
dialog: "all",
|
|
@@ -20250,11 +20250,11 @@ var applyTaskRulesToChats = /* @__PURE__ */ __name(async (store, account, chatId
|
|
|
20250
20250
|
return passes;
|
|
20251
20251
|
}, "applyTaskRulesToChats");
|
|
20252
20252
|
|
|
20253
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20253
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/domain/vcard.js
|
|
20254
20254
|
var AS_WORD = new RegExp(`^${WORD_BODY}$`);
|
|
20255
20255
|
var encoder = new TextEncoder();
|
|
20256
20256
|
|
|
20257
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20257
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/services/moment.js
|
|
20258
20258
|
var AGO = /^(\d+)(m|h|d)$/;
|
|
20259
20259
|
var AGO_MS = { m: 6e4, h: 36e5, d: 864e5 };
|
|
20260
20260
|
var DATE = /^\d{4}-\d{2}-\d{2}/;
|
|
@@ -20294,7 +20294,7 @@ var dateWindow = /* @__PURE__ */ __name(({ sinceTime, untilTime, zone, now = Dat
|
|
|
20294
20294
|
};
|
|
20295
20295
|
}, "dateWindow");
|
|
20296
20296
|
|
|
20297
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20297
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/botcheck/check.js
|
|
20298
20298
|
var DAY_MS = 864e5;
|
|
20299
20299
|
var NEW_DAYS = 30;
|
|
20300
20300
|
var SAME_TEXT_MIN = 20;
|
|
@@ -20371,7 +20371,7 @@ var scorePerson = /* @__PURE__ */ __name(({ subject, provider, activity, photos,
|
|
|
20371
20371
|
};
|
|
20372
20372
|
}, "scorePerson");
|
|
20373
20373
|
|
|
20374
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20374
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/http/time-limit.js
|
|
20375
20375
|
var timeLimit = /* @__PURE__ */ __name((ms) => {
|
|
20376
20376
|
const controller = new AbortController();
|
|
20377
20377
|
const timer = setTimeout(() => controller.abort(new DOMException("The operation timed out.", "TimeoutError")), ms);
|
|
@@ -20387,7 +20387,7 @@ var withTimeLimit = /* @__PURE__ */ __name(async (ms, run) => {
|
|
|
20387
20387
|
}
|
|
20388
20388
|
}, "withTimeLimit");
|
|
20389
20389
|
|
|
20390
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20390
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/botcheck/registries.js
|
|
20391
20391
|
var REGISTRIES = {
|
|
20392
20392
|
cas: { title: "Combot Anti-Spam (CAS)", docs: "https://cas.chat/api" },
|
|
20393
20393
|
lols: { title: "lols.bot", docs: "https://api.lols.bot/lols-bot.json" }
|
|
@@ -20474,7 +20474,7 @@ var notCovered = /* @__PURE__ */ __name((messenger, now = /* @__PURE__ */ new Da
|
|
|
20474
20474
|
detail: `lists Telegram accounts only, not ${messenger} ones`
|
|
20475
20475
|
})), "notCovered");
|
|
20476
20476
|
|
|
20477
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20477
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/botcheck/service.js
|
|
20478
20478
|
var ACTIVITY_MESSAGES = 1e3;
|
|
20479
20479
|
var botCheckService = /* @__PURE__ */ __name((deps) => {
|
|
20480
20480
|
const subjectOf = /* @__PURE__ */ __name(async (reference) => {
|
|
@@ -20562,7 +20562,7 @@ var botCheckService = /* @__PURE__ */ __name((deps) => {
|
|
|
20562
20562
|
};
|
|
20563
20563
|
}, "botCheckService");
|
|
20564
20564
|
|
|
20565
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20565
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/domain/thread.js
|
|
20566
20566
|
var threadIdOf = /* @__PURE__ */ __name((value) => {
|
|
20567
20567
|
if (value === void 0)
|
|
20568
20568
|
return void 0;
|
|
@@ -20572,7 +20572,7 @@ var threadIdOf = /* @__PURE__ */ __name((value) => {
|
|
|
20572
20572
|
return id2;
|
|
20573
20573
|
}, "threadIdOf");
|
|
20574
20574
|
|
|
20575
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20575
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/services/chat-stats.js
|
|
20576
20576
|
var TOP_POSTS = 5;
|
|
20577
20577
|
var JOINS = /* @__PURE__ */ new Set(["join", "add"]);
|
|
20578
20578
|
var LEAVES = /* @__PURE__ */ new Set(["leave", "remove"]);
|
|
@@ -20689,7 +20689,7 @@ var median = /* @__PURE__ */ __name((values) => {
|
|
|
20689
20689
|
return Math.round(sorted.length % 2 === 0 ? ((sorted[middle - 1] ?? upper) + upper) / 2 : upper);
|
|
20690
20690
|
}, "median");
|
|
20691
20691
|
|
|
20692
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20692
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/services/member-history.js
|
|
20693
20693
|
var memberEvents = /* @__PURE__ */ __name((stays, revisions, since = 0) => {
|
|
20694
20694
|
const events = [];
|
|
20695
20695
|
for (const stay of stays) {
|
|
@@ -20721,7 +20721,7 @@ var memberEvents = /* @__PURE__ */ __name((stays, revisions, since = 0) => {
|
|
|
20721
20721
|
return events.filter(({ at }) => Date.parse(at) >= since).sort((a, b) => Date.parse(a.at) - Date.parse(b.at) || a.id.localeCompare(b.id));
|
|
20722
20722
|
}, "memberEvents");
|
|
20723
20723
|
|
|
20724
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20724
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/services/chats.js
|
|
20725
20725
|
var EVENTS_DAYS = 7;
|
|
20726
20726
|
var TRACKED_DAYS = 30;
|
|
20727
20727
|
var STATS_PAGE = 1e3;
|
|
@@ -21016,7 +21016,7 @@ var storedMembers = /* @__PURE__ */ __name(async (store, chatId) => {
|
|
|
21016
21016
|
return members.length === 0 ? null : members;
|
|
21017
21017
|
}, "storedMembers");
|
|
21018
21018
|
|
|
21019
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21019
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/services/inbox.js
|
|
21020
21020
|
var INBOX_CHATS = 20;
|
|
21021
21021
|
var REVIEW_DAYS = 3;
|
|
21022
21022
|
var UNANSWERED_HOURS = 24;
|
|
@@ -21224,7 +21224,7 @@ var inboxService = /* @__PURE__ */ __name((deps) => {
|
|
|
21224
21224
|
};
|
|
21225
21225
|
}, "inboxService");
|
|
21226
21226
|
|
|
21227
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21227
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/domain/formatting.js
|
|
21228
21228
|
var invalid = /* @__PURE__ */ __name(() => new CliError("validation_error", "the messenger formatter returned invalid text spans"), "invalid");
|
|
21229
21229
|
var validateFormattedText = /* @__PURE__ */ __name((formatted2) => {
|
|
21230
21230
|
const { text: text2, spans } = formatted2;
|
|
@@ -21284,7 +21284,7 @@ var visibleFormattedText = /* @__PURE__ */ __name((formatted2) => {
|
|
|
21284
21284
|
};
|
|
21285
21285
|
}, "visibleFormattedText");
|
|
21286
21286
|
|
|
21287
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21287
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/moderation/check.js
|
|
21288
21288
|
var INVITE = /max\.ru\/join\/|(t|telegram)\.me\/(\+|joinchat\/)|tg:\/\/join/i;
|
|
21289
21289
|
var LINK2 = /https?:\/\/\S+/i;
|
|
21290
21290
|
var STRENGTH = { report: 0, delete: 1, remove: 2 };
|
|
@@ -21472,7 +21472,7 @@ var nextPoint = /* @__PURE__ */ __name((rows, found) => {
|
|
|
21472
21472
|
}, "nextPoint");
|
|
21473
21473
|
var someUndone = /* @__PURE__ */ __name((rows) => rows.some(undone), "someUndone");
|
|
21474
21474
|
|
|
21475
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21475
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/moderation/rules.js
|
|
21476
21476
|
import { existsSync as existsSync2, readFileSync as readFileSync4 } from "node:fs";
|
|
21477
21477
|
import { join as join4 } from "node:path";
|
|
21478
21478
|
var RULE_ACTIONS = ["report", "delete", "remove"];
|
|
@@ -21615,7 +21615,7 @@ var assign = /* @__PURE__ */ __name((rules, key, value) => {
|
|
|
21615
21615
|
return { ...rules, [head]: { ...rules[head], [tail]: value } };
|
|
21616
21616
|
}, "assign");
|
|
21617
21617
|
|
|
21618
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21618
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/services/person-context.js
|
|
21619
21619
|
var CONTEXT_MESSAGES2 = 10;
|
|
21620
21620
|
var CONTEXT_BYTES = 64 * 1024;
|
|
21621
21621
|
var toContext = /* @__PURE__ */ __name((key, message, chatTitle2) => ({
|
|
@@ -21914,10 +21914,10 @@ var personMessages = /* @__PURE__ */ __name(async (store, asked, reference, { ch
|
|
|
21914
21914
|
};
|
|
21915
21915
|
}, "personMessages");
|
|
21916
21916
|
|
|
21917
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21917
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/services/meeting-evidence.js
|
|
21918
21918
|
import { createHash } from "node:crypto";
|
|
21919
21919
|
|
|
21920
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21920
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/services/meeting-reference.js
|
|
21921
21921
|
var missing2 = /* @__PURE__ */ __name(() => new CliError("not_found", "the meeting evidence is unavailable for this account"), "missing");
|
|
21922
21922
|
var authorizedMeetingMetadata = /* @__PURE__ */ __name(async (store, accountId, reference, options2 = {}) => {
|
|
21923
21923
|
const parsed = parseMeetingReference(reference);
|
|
@@ -21935,7 +21935,7 @@ var authorizedMeetingMetadata = /* @__PURE__ */ __name(async (store, accountId,
|
|
|
21935
21935
|
return { parsed, meeting };
|
|
21936
21936
|
}, "authorizedMeetingMetadata");
|
|
21937
21937
|
|
|
21938
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21938
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/services/meeting-evidence.js
|
|
21939
21939
|
var hash = /* @__PURE__ */ __name((value) => createHash("sha256").update(JSON.stringify(value)).digest("hex"), "hash");
|
|
21940
21940
|
var checkMeetingCancelled = /* @__PURE__ */ __name((signal) => {
|
|
21941
21941
|
if (signal?.aborted)
|
|
@@ -22134,7 +22134,7 @@ var readMeetingEvidence = /* @__PURE__ */ __name(async (store, accountId, refere
|
|
|
22134
22134
|
return { ...packet, fingerprint: hash(packet) };
|
|
22135
22135
|
}, "readMeetingEvidence");
|
|
22136
22136
|
|
|
22137
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22137
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/services/person-meeting-context.js
|
|
22138
22138
|
var personMeetingContext = /* @__PURE__ */ __name(async (store, personReference, options2) => {
|
|
22139
22139
|
const { meetings = 10, cues = 5, bytes: bytes2 = 64 * 1024, scanLimit = 1e3, since, signal } = options2;
|
|
22140
22140
|
const requestedAccounts = options2.accountIds;
|
|
@@ -22233,7 +22233,7 @@ var personMeetingContext = /* @__PURE__ */ __name(async (store, personReference,
|
|
|
22233
22233
|
};
|
|
22234
22234
|
}, "personMeetingContext");
|
|
22235
22235
|
|
|
22236
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22236
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/services/person-preparation.js
|
|
22237
22237
|
var PREPARE_BYTES = 96 * 1024;
|
|
22238
22238
|
var MEETINGS = 5;
|
|
22239
22239
|
var CUES = 3;
|
|
@@ -22356,7 +22356,7 @@ var meetingsOf = /* @__PURE__ */ __name(async (store, uid, stored, since, left)
|
|
|
22356
22356
|
}
|
|
22357
22357
|
}, "meetingsOf");
|
|
22358
22358
|
|
|
22359
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22359
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/services/person-profile.js
|
|
22360
22360
|
var personProfile = /* @__PURE__ */ __name(async (deps, person, known2) => {
|
|
22361
22361
|
const online = deps.offline ? void 0 : await deps.connection();
|
|
22362
22362
|
const held = await storeIfOpen(deps);
|
|
@@ -22426,7 +22426,7 @@ var quiet = /* @__PURE__ */ __name((facts) => facts.chats.map(({ id: id2, title,
|
|
|
22426
22426
|
complete: false
|
|
22427
22427
|
})), "quiet");
|
|
22428
22428
|
|
|
22429
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22429
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/services/person-timeline.js
|
|
22430
22430
|
var TIMELINE_ITEMS = 50;
|
|
22431
22431
|
var TIMELINE_MAX = 500;
|
|
22432
22432
|
var SCOPES = ["personal", "work"];
|
|
@@ -22488,7 +22488,7 @@ var personTimeline = /* @__PURE__ */ __name(async (store, asked, reference, { sc
|
|
|
22488
22488
|
};
|
|
22489
22489
|
}, "personTimeline");
|
|
22490
22490
|
|
|
22491
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22491
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/services/people.js
|
|
22492
22492
|
var peopleService = /* @__PURE__ */ __name((deps) => {
|
|
22493
22493
|
const localCard = /* @__PURE__ */ __name(async (card, includeNotes = false) => {
|
|
22494
22494
|
const held = await storeIfOpen(deps);
|
|
@@ -22742,7 +22742,7 @@ var withoutPhone = /* @__PURE__ */ __name((answer) => {
|
|
|
22742
22742
|
return rest;
|
|
22743
22743
|
}, "withoutPhone");
|
|
22744
22744
|
|
|
22745
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22745
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/services/task-stats.js
|
|
22746
22746
|
var TASK_STATS_BY = ["chat", "meeting", "project"];
|
|
22747
22747
|
var PERIOD_FIELD = "created";
|
|
22748
22748
|
var refuseNestedPeriod = /* @__PURE__ */ __name((node, top = true) => {
|
|
@@ -22770,9 +22770,11 @@ var spread = /* @__PURE__ */ __name((open7, closeMs, now) => ({
|
|
|
22770
22770
|
...open7.length > 0 ? { meanOpenAgeMs: mean(open7.map(({ createdAt }) => now - createdAt)) } : {}
|
|
22771
22771
|
}), "spread");
|
|
22772
22772
|
var and = /* @__PURE__ */ __name((parts) => parts.length === 0 ? void 0 : { sql: parts.map(({ sql }) => `(${sql})`).join(" AND "), params: parts.flatMap(({ params }) => params) }, "and");
|
|
22773
|
-
var taskStatsOf = /* @__PURE__ */ __name(async (store,
|
|
22773
|
+
var taskStatsOf = /* @__PURE__ */ __name(async (store, accounts, { by = "chat", query, timezone, group, kind }, columns, now = Date.now()) => {
|
|
22774
22774
|
if (query)
|
|
22775
22775
|
refuseNestedPeriod(query.root);
|
|
22776
|
+
const several = Array.isArray(accounts);
|
|
22777
|
+
const list3 = several ? [...new Map(accounts.map((one) => [taskAccount(one), one])).values()] : [accounts];
|
|
22776
22778
|
const time = /* @__PURE__ */ __name((sql) => ({ type: "time", sql }), "time");
|
|
22777
22779
|
const read = { ...columns, [PERIOD_FIELD]: time("t.created_at"), closed: time("t.closed_at") };
|
|
22778
22780
|
const fixed = [
|
|
@@ -22782,17 +22784,26 @@ var taskStatsOf = /* @__PURE__ */ __name(async (store, account, { by = "chat", q
|
|
|
22782
22784
|
];
|
|
22783
22785
|
const options2 = { command: "stats tasks show", now, ...timezone === void 0 ? {} : { zone: timezone } };
|
|
22784
22786
|
const where = /* @__PURE__ */ __name((ast, more = []) => and([...fixed, ...more, ...ast ? [queryFilter(ast, read, options2)] : []]), "where");
|
|
22785
|
-
const
|
|
22786
|
-
const
|
|
22787
|
-
const
|
|
22788
|
-
const
|
|
22787
|
+
const scopes = by === "project" ? [{ scope: { board: true } }] : list3.map((one) => ({ account: one, scope: { account: taskAccount(one) } }));
|
|
22788
|
+
const rowsOf2 = /* @__PURE__ */ __name(async (filter) => (await Promise.all(scopes.map(async ({ account, scope }) => (await store.tasks.statRows(scope, filter)).map((row) => account ? { ...row, account } : row)))).flat(), "rowsOf");
|
|
22789
|
+
const all = await rowsOf2(where(withoutField(query, PERIOD_FIELD)));
|
|
22790
|
+
const created = await rowsOf2(where(query));
|
|
22791
|
+
const closed = await rowsOf2(where(query && { ...query, root: renamed(query.root, PERIOD_FIELD, "closed") }, [
|
|
22789
22792
|
{ sql: "t.closed_at IS NOT NULL", params: [] }
|
|
22790
22793
|
]));
|
|
22791
|
-
const keyOf7 = /* @__PURE__ */ __name((row) => by === "project" ? String(row.projectId) : row.group ?? ""
|
|
22794
|
+
const keyOf7 = /* @__PURE__ */ __name((row) => by === "project" ? String(row.projectId) : `${row.account ? taskAccount(row.account) : ""} ${row.group ?? ""}`, "keyOf");
|
|
22792
22795
|
const groups = /* @__PURE__ */ new Map();
|
|
22793
22796
|
const slot = /* @__PURE__ */ __name((row) => {
|
|
22794
22797
|
const key = keyOf7(row);
|
|
22795
|
-
const found = groups.get(key) ?? {
|
|
22798
|
+
const found = groups.get(key) ?? {
|
|
22799
|
+
group: by === "project" ? String(row.projectId) : row.group ?? "",
|
|
22800
|
+
...row.account ? { account: row.account } : {},
|
|
22801
|
+
first: row.createdAt,
|
|
22802
|
+
open: [],
|
|
22803
|
+
created: 0,
|
|
22804
|
+
closeMs: []
|
|
22805
|
+
};
|
|
22806
|
+
found.first = Math.min(found.first, row.createdAt);
|
|
22796
22807
|
groups.set(key, found);
|
|
22797
22808
|
return found;
|
|
22798
22809
|
}, "slot");
|
|
@@ -22803,22 +22814,25 @@ var taskStatsOf = /* @__PURE__ */ __name(async (store, account, { by = "chat", q
|
|
|
22803
22814
|
slot(row).created++;
|
|
22804
22815
|
for (const row of closed)
|
|
22805
22816
|
slot(row).closeMs.push((row.closedAt ?? row.createdAt) - row.createdAt);
|
|
22806
|
-
const kept2 = [...groups].filter((
|
|
22807
|
-
|
|
22808
|
-
|
|
22809
|
-
const
|
|
22810
|
-
|
|
22811
|
-
|
|
22817
|
+
const kept2 = [...groups.values()].filter((one) => one.open.length + one.created + one.closeMs.length > 0);
|
|
22818
|
+
if (several)
|
|
22819
|
+
kept2.sort((a, b) => a.first - b.first);
|
|
22820
|
+
const nameOf3 = await namesOf(store, by, kept2);
|
|
22821
|
+
const rows = kept2.map((one) => ({
|
|
22822
|
+
group: one.group,
|
|
22823
|
+
...several && one.account ? { account: one.account } : {},
|
|
22824
|
+
name: nameOf3(one) ?? null,
|
|
22812
22825
|
open: one.open.length,
|
|
22813
22826
|
created: one.created,
|
|
22814
22827
|
closed: one.closeMs.length,
|
|
22815
22828
|
...one.open[0] ? { oldestOpenAt: new Date(one.open[0].createdAt) } : {},
|
|
22816
22829
|
...spread(one.open, one.closeMs, now)
|
|
22817
22830
|
}));
|
|
22818
|
-
const open7 = kept2.flatMap((
|
|
22819
|
-
const closeMs = kept2.flatMap((
|
|
22831
|
+
const open7 = kept2.flatMap((one) => one.open);
|
|
22832
|
+
const closeMs = kept2.flatMap((one) => one.closeMs);
|
|
22820
22833
|
return {
|
|
22821
22834
|
by,
|
|
22835
|
+
...several ? { accounts: [...list3] } : {},
|
|
22822
22836
|
open: open7.length,
|
|
22823
22837
|
created: created.length,
|
|
22824
22838
|
closed: closeMs.length,
|
|
@@ -22826,6 +22840,20 @@ var taskStatsOf = /* @__PURE__ */ __name(async (store, account, { by = "chat", q
|
|
|
22826
22840
|
rows
|
|
22827
22841
|
};
|
|
22828
22842
|
}, "taskStatsOf");
|
|
22843
|
+
var namesOf = /* @__PURE__ */ __name(async (store, by, groups) => {
|
|
22844
|
+
if (by === "project") {
|
|
22845
|
+
const names2 = await store.tasks.statNames("project", groups.map(({ group }) => group));
|
|
22846
|
+
return ({ group }) => names2.get(group);
|
|
22847
|
+
}
|
|
22848
|
+
if (by === "meeting") {
|
|
22849
|
+
const names2 = await meetingNames(store, groups.map(({ group }) => group));
|
|
22850
|
+
return ({ group }) => names2.get(group);
|
|
22851
|
+
}
|
|
22852
|
+
const byAccount = /* @__PURE__ */ new Map();
|
|
22853
|
+
for (const account of new Set(groups.flatMap(({ account: account2 }) => account2 ? [taskAccount(account2)] : [])))
|
|
22854
|
+
byAccount.set(account, await store.tasks.statNames("chat", groups.filter((one) => one.account && taskAccount(one.account) === account).map(({ group }) => group), account));
|
|
22855
|
+
return ({ group, account }) => account ? byAccount.get(taskAccount(account))?.get(group) : void 0;
|
|
22856
|
+
}, "namesOf");
|
|
22829
22857
|
var meetingIdOf = /* @__PURE__ */ __name((group) => {
|
|
22830
22858
|
try {
|
|
22831
22859
|
return String(parseMeetingReference(group).meetingId);
|
|
@@ -22845,7 +22873,7 @@ var meetingNames = /* @__PURE__ */ __name(async (store, groups) => {
|
|
|
22845
22873
|
}));
|
|
22846
22874
|
}, "meetingNames");
|
|
22847
22875
|
|
|
22848
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22876
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/services/task-tag-filters.js
|
|
22849
22877
|
var taskTagFilters = /* @__PURE__ */ __name(async (store, query) => {
|
|
22850
22878
|
const tags = /* @__PURE__ */ new Map();
|
|
22851
22879
|
for (const node of query ? walkQuery(query.root) : [])
|
|
@@ -22854,7 +22882,7 @@ var taskTagFilters = /* @__PURE__ */ __name(async (store, query) => {
|
|
|
22854
22882
|
return tags;
|
|
22855
22883
|
}, "taskTagFilters");
|
|
22856
22884
|
|
|
22857
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22885
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/services/tasks.js
|
|
22858
22886
|
var TASK_QUERY = {
|
|
22859
22887
|
entity: "task",
|
|
22860
22888
|
backend: "sql",
|
|
@@ -23293,7 +23321,14 @@ var tasksService = /* @__PURE__ */ __name((deps, categories) => {
|
|
|
23293
23321
|
await owned(store, account, subject);
|
|
23294
23322
|
return store.tasks.similar({ task: subject }, options2);
|
|
23295
23323
|
}), "similar"),
|
|
23296
|
-
stats: /* @__PURE__ */ __name(({ chat, ...request } = {}) =>
|
|
23324
|
+
stats: /* @__PURE__ */ __name(({ chat, accounts, ...request } = {}) => accounts ? (async () => {
|
|
23325
|
+
const store = await deps.store();
|
|
23326
|
+
const named2 = request.query ? walkQuery(request.query.root).some(({ field, operator }) => field === "chat" && operator !== "wildcard") : false;
|
|
23327
|
+
if (chat !== void 0 || named2)
|
|
23328
|
+
throw new CliError("validation_error", "a chat belongs to one account: name the account as well");
|
|
23329
|
+
const columns = taskColumns(/* @__PURE__ */ new Map(), await taskTagFilters(store, request.query));
|
|
23330
|
+
return taskStatsOf(store, accounts, request, columns);
|
|
23331
|
+
})() : inStore(async (store, account) => {
|
|
23297
23332
|
const group = await groupOf(store, account, chat);
|
|
23298
23333
|
return taskStatsOf(store, account, { ...request, ...group === void 0 ? {} : { group } }, await queryColumns(store, account, request.query));
|
|
23299
23334
|
}), "stats")
|
|
@@ -23346,7 +23381,7 @@ var taskView = /* @__PURE__ */ __name(async (store, account, task2) => {
|
|
|
23346
23381
|
};
|
|
23347
23382
|
}, "taskView");
|
|
23348
23383
|
|
|
23349
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23384
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/mail/owed.js
|
|
23350
23385
|
var mailTurn = /* @__PURE__ */ __name((newest) => {
|
|
23351
23386
|
if (newest === null)
|
|
23352
23387
|
return null;
|
|
@@ -23355,7 +23390,7 @@ var mailTurn = /* @__PURE__ */ __name((newest) => {
|
|
|
23355
23390
|
return newest.addressed ? "owed" : null;
|
|
23356
23391
|
}, "mailTurn");
|
|
23357
23392
|
|
|
23358
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23393
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/services/agenda-mail.js
|
|
23359
23394
|
var absent = /* @__PURE__ */ __name((error) => {
|
|
23360
23395
|
if (error instanceof CliError && error.code === "not_found")
|
|
23361
23396
|
return void 0;
|
|
@@ -23413,7 +23448,7 @@ var mailActivity = /* @__PURE__ */ __name(async (store, account, since, chats) =
|
|
|
23413
23448
|
};
|
|
23414
23449
|
}, "mailActivity");
|
|
23415
23450
|
|
|
23416
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23451
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/services/chat-coverage.js
|
|
23417
23452
|
var chatCoverage = /* @__PURE__ */ __name(async (store, account, chatIds) => {
|
|
23418
23453
|
const ids = [...new Set(chatIds)];
|
|
23419
23454
|
if (ids.length === 0)
|
|
@@ -23439,7 +23474,7 @@ var chatCoverage = /* @__PURE__ */ __name(async (store, account, chatIds) => {
|
|
|
23439
23474
|
}));
|
|
23440
23475
|
}, "chatCoverage");
|
|
23441
23476
|
|
|
23442
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23477
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/services/agenda.js
|
|
23443
23478
|
var DAY = 864e5;
|
|
23444
23479
|
var AGENDA_DEFAULTS = { unanswered: DAY, waiting: 7 * DAY };
|
|
23445
23480
|
var CLAIMS = ["none", "mine", "others", "any"];
|
|
@@ -23686,7 +23721,7 @@ var agendaItem = /* @__PURE__ */ __name((shown) => {
|
|
|
23686
23721
|
};
|
|
23687
23722
|
}, "agendaItem");
|
|
23688
23723
|
|
|
23689
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23724
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/context/evidence-response.js
|
|
23690
23725
|
var contextSourceKey = /* @__PURE__ */ __name((source) => JSON.stringify([source.kind, source.accountId, source.provider, source.account]), "contextSourceKey");
|
|
23691
23726
|
var validateContextEvidencePage = /* @__PURE__ */ __name((page, request) => {
|
|
23692
23727
|
const fail2 = /* @__PURE__ */ __name(() => {
|
|
@@ -23750,7 +23785,7 @@ var validateContextEvidencePage = /* @__PURE__ */ __name((page, request) => {
|
|
|
23750
23785
|
}
|
|
23751
23786
|
}, "validateContextEvidencePage");
|
|
23752
23787
|
|
|
23753
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23788
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/context/read-budget.js
|
|
23754
23789
|
var contextReadBudget = /* @__PURE__ */ __name((limits = {}) => {
|
|
23755
23790
|
if (!limits || typeof limits !== "object" || Array.isArray(limits))
|
|
23756
23791
|
throw new CliError("validation_error", "limits needs a context read allowance");
|
|
@@ -23803,7 +23838,7 @@ var contextReadBudget = /* @__PURE__ */ __name((limits = {}) => {
|
|
|
23803
23838
|
};
|
|
23804
23839
|
}, "contextReadBudget");
|
|
23805
23840
|
|
|
23806
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23841
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/services/context-evidence.js
|
|
23807
23842
|
var createContextEvidenceReader = /* @__PURE__ */ __name((port, allowed, limits) => {
|
|
23808
23843
|
if (!port || typeof port.read !== "function")
|
|
23809
23844
|
throw new CliError("configuration_error", "context evidence reader is unavailable");
|
|
@@ -23847,7 +23882,7 @@ var createContextEvidenceReader = /* @__PURE__ */ __name((port, allowed, limits)
|
|
|
23847
23882
|
};
|
|
23848
23883
|
}, "createContextEvidenceReader");
|
|
23849
23884
|
|
|
23850
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23885
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/services/excerpt.js
|
|
23851
23886
|
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");
|
|
23852
23887
|
var excerpt = /* @__PURE__ */ __name((text2, query, size2 = 240, options2 = {}) => {
|
|
23853
23888
|
const flat = text2.replace(/\s+/g, " ").trim();
|
|
@@ -23863,7 +23898,7 @@ var excerpt = /* @__PURE__ */ __name((text2, query, size2 = 240, options2 = {})
|
|
|
23863
23898
|
}, "excerpt");
|
|
23864
23899
|
var withExcerpt = /* @__PURE__ */ __name(({ matchedText, ...hit }, query) => ({ ...hit, excerpt: excerpt(matchedText ?? hit.text, query) }), "withExcerpt");
|
|
23865
23900
|
|
|
23866
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23901
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/services/project-purposes.js
|
|
23867
23902
|
var BUILT_IN_PURPOSES = ["work", "sales", "support", "other"];
|
|
23868
23903
|
var DEFAULT_PURPOSES = ["work"];
|
|
23869
23904
|
var LINK_PURPOSE = "work";
|
|
@@ -23893,7 +23928,7 @@ var purposeList = /* @__PURE__ */ __name((value, previous = []) => [
|
|
|
23893
23928
|
...value.split(",").map((one) => one.trim()).filter(Boolean)
|
|
23894
23929
|
], "purposeList");
|
|
23895
23930
|
|
|
23896
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23931
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/services/project-gathering-around.js
|
|
23897
23932
|
var storedMessageNeighbours = /* @__PURE__ */ __name((messages) => ({
|
|
23898
23933
|
async around(ref, window3) {
|
|
23899
23934
|
const at = parseLocator(ref);
|
|
@@ -23988,7 +24023,7 @@ var storedNeighbours = /* @__PURE__ */ __name((store) => {
|
|
|
23988
24023
|
};
|
|
23989
24024
|
}, "storedNeighbours");
|
|
23990
24025
|
|
|
23991
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24026
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/services/project-gathering-request.js
|
|
23992
24027
|
import { createHash as createHash2 } from "node:crypto";
|
|
23993
24028
|
var DAY2 = 864e5;
|
|
23994
24029
|
var MAX_TIME = 864e13;
|
|
@@ -24304,7 +24339,7 @@ var decodeCheckpoint = /* @__PURE__ */ __name((text2, plan) => {
|
|
|
24304
24339
|
return value;
|
|
24305
24340
|
}, "decodeCheckpoint");
|
|
24306
24341
|
|
|
24307
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24342
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/services/project-gathering.js
|
|
24308
24343
|
var terminal = /* @__PURE__ */ new Set(["done", "unavailable", "failed"]);
|
|
24309
24344
|
var PAGE3 = 20;
|
|
24310
24345
|
var PEOPLE = 20;
|
|
@@ -24708,7 +24743,7 @@ var peopleOf = /* @__PURE__ */ __name((items, senderOf) => {
|
|
|
24708
24743
|
return [...byKey.values()].sort((a, b) => b.items - a.items || a.name.localeCompare(b.name));
|
|
24709
24744
|
}, "peopleOf");
|
|
24710
24745
|
|
|
24711
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24746
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/services/meeting-project-candidate-matching.js
|
|
24712
24747
|
var normalizedText = /* @__PURE__ */ __name((text2) => text2.normalize("NFKC").toLowerCase().replace(/\s+/gu, " "), "normalizedText");
|
|
24713
24748
|
var termsOf = /* @__PURE__ */ __name((entry) => [
|
|
24714
24749
|
{ name: entry.name, kind: "canonical" },
|
|
@@ -24752,7 +24787,7 @@ var matchVocabularyTerms = /* @__PURE__ */ __name((catalog, texts) => {
|
|
|
24752
24787
|
return result.sort((a, b) => Number(a.entry.id) - Number(b.entry.id));
|
|
24753
24788
|
}, "matchVocabularyTerms");
|
|
24754
24789
|
|
|
24755
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24790
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/services/project-gathering-mentions.js
|
|
24756
24791
|
var KINDS = ["project", "tag", "topic"];
|
|
24757
24792
|
var findEvidenceMentions = /* @__PURE__ */ __name(async (vocabulary, gathering, options2 = {}) => {
|
|
24758
24793
|
if (typeof vocabulary?.vocabulary !== "function")
|
|
@@ -24807,7 +24842,7 @@ var findEvidenceMentions = /* @__PURE__ */ __name(async (vocabulary, gathering,
|
|
|
24807
24842
|
};
|
|
24808
24843
|
}, "findEvidenceMentions");
|
|
24809
24844
|
|
|
24810
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24845
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/services/stored-project-gathering.js
|
|
24811
24846
|
var storedChatCount = /* @__PURE__ */ __name((store) => async (account, chatId, { since, until }) => {
|
|
24812
24847
|
const window3 = { since: new Date(since).toISOString(), until: new Date(until - 1).toISOString() };
|
|
24813
24848
|
const [messages, newest, oldest] = await Promise.all([
|
|
@@ -25113,18 +25148,18 @@ var purposeHintOf = /* @__PURE__ */ __name((linked, rows, of) => {
|
|
|
25113
25148
|
return { chat: top.ref, relationship: link4.relationship, items, of };
|
|
25114
25149
|
}, "purposeHintOf");
|
|
25115
25150
|
|
|
25116
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25151
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/services/media-archive.js
|
|
25117
25152
|
import { setTimeout as sleep3 } from "node:timers/promises";
|
|
25118
25153
|
|
|
25119
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25154
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/services/media-archive-files.js
|
|
25120
25155
|
import { lstat } from "node:fs/promises";
|
|
25121
25156
|
|
|
25122
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25157
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-store.js
|
|
25123
25158
|
import { createHash as createHash4, randomUUID as randomUUID3 } from "node:crypto";
|
|
25124
25159
|
import { open as open3, rename as rename2, unlink as unlink2 } from "node:fs/promises";
|
|
25125
25160
|
import { join as join6 } from "node:path";
|
|
25126
25161
|
|
|
25127
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25162
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-metadata.js
|
|
25128
25163
|
import { createHash as createHash3 } from "node:crypto";
|
|
25129
25164
|
var metadataLimit = 16384;
|
|
25130
25165
|
var partialIdentity = /* @__PURE__ */ __name((locator) => JSON.stringify([locator.provider, locator.account, locator.occurrenceId, locator.assetId]), "partialIdentity");
|
|
@@ -25184,7 +25219,7 @@ var readPartialMetadata = /* @__PURE__ */ __name(async (path, locator, maxBytes,
|
|
|
25184
25219
|
}
|
|
25185
25220
|
}, "readPartialMetadata");
|
|
25186
25221
|
|
|
25187
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25222
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-writer.js
|
|
25188
25223
|
import { randomUUID as randomUUID2 } from "node:crypto";
|
|
25189
25224
|
import { open as open2, rename, unlink } from "node:fs/promises";
|
|
25190
25225
|
import { join as join5 } from "node:path";
|
|
@@ -25276,7 +25311,7 @@ var partialWriter = /* @__PURE__ */ __name(async (input) => {
|
|
|
25276
25311
|
};
|
|
25277
25312
|
}, "partialWriter");
|
|
25278
25313
|
|
|
25279
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25314
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-store.js
|
|
25280
25315
|
var NativeRecordingPartialStore = class {
|
|
25281
25316
|
static {
|
|
25282
25317
|
__name(this, "NativeRecordingPartialStore");
|
|
@@ -25383,12 +25418,12 @@ var NativeRecordingPartialStore = class {
|
|
|
25383
25418
|
}
|
|
25384
25419
|
};
|
|
25385
25420
|
|
|
25386
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25421
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication.js
|
|
25387
25422
|
import { createHash as createHash5 } from "node:crypto";
|
|
25388
25423
|
import { link as link2 } from "node:fs/promises";
|
|
25389
25424
|
import { basename as basename2, dirname as dirname5, join as join8, resolve as resolve2 } from "node:path";
|
|
25390
25425
|
|
|
25391
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25426
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication-files.js
|
|
25392
25427
|
import { unlink as unlink3 } from "node:fs/promises";
|
|
25393
25428
|
var verifiedPublicationFile = /* @__PURE__ */ __name(async (path, expected2, signal, writable = false) => {
|
|
25394
25429
|
signal?.throwIfAborted();
|
|
@@ -25423,7 +25458,7 @@ var commitPublication = /* @__PURE__ */ __name(async (root, partialPath, finalPa
|
|
|
25423
25458
|
signal?.throwIfAborted();
|
|
25424
25459
|
}, "commitPublication");
|
|
25425
25460
|
|
|
25426
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25461
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication-journal.js
|
|
25427
25462
|
import { randomUUID as randomUUID4 } from "node:crypto";
|
|
25428
25463
|
import { open as open4, rename as rename3, unlink as unlink4 } from "node:fs/promises";
|
|
25429
25464
|
import { join as join7 } from "node:path";
|
|
@@ -25496,7 +25531,7 @@ var writePublicationJournal = /* @__PURE__ */ __name(async (root, path, prefix,
|
|
|
25496
25531
|
}
|
|
25497
25532
|
}, "writePublicationJournal");
|
|
25498
25533
|
|
|
25499
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25534
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication.js
|
|
25500
25535
|
var NativeRecordingPublication = class {
|
|
25501
25536
|
static {
|
|
25502
25537
|
__name(this, "NativeRecordingPublication");
|
|
@@ -25569,7 +25604,7 @@ var NativeRecordingPublication = class {
|
|
|
25569
25604
|
}
|
|
25570
25605
|
};
|
|
25571
25606
|
|
|
25572
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25607
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/services/media-archive-manifest.js
|
|
25573
25608
|
import { createHash as createHash6 } from "node:crypto";
|
|
25574
25609
|
import { readdir } from "node:fs/promises";
|
|
25575
25610
|
import { isAbsolute as isAbsolute2, join as join9, resolve as resolve3 } from "node:path";
|
|
@@ -25656,7 +25691,7 @@ var commitMediaEntry = /* @__PURE__ */ __name((root, one, beforePublish) => writ
|
|
|
25656
25691
|
beforePublish
|
|
25657
25692
|
}), "commitMediaEntry");
|
|
25658
25693
|
|
|
25659
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25694
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/services/media-archive-files.js
|
|
25660
25695
|
var validator = '"media-completed-v1"';
|
|
25661
25696
|
var maximumFileBytes = 64 * 1024 * 1024 * 1024;
|
|
25662
25697
|
var archiveMediaFile = /* @__PURE__ */ __name(async (root, identity, kind, file2, beforeWrite, signal, metadata = {}) => {
|
|
@@ -25757,7 +25792,7 @@ var archiveMediaFile = /* @__PURE__ */ __name(async (root, identity, kind, file2
|
|
|
25757
25792
|
return entry;
|
|
25758
25793
|
}, "archiveMediaFile");
|
|
25759
25794
|
|
|
25760
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25795
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/services/media-archive-locks.js
|
|
25761
25796
|
import { mkdir, realpath } from "node:fs/promises";
|
|
25762
25797
|
import { join as join10, resolve as resolve4 } from "node:path";
|
|
25763
25798
|
var archiveLocations = /* @__PURE__ */ __name(async (initial, signal) => {
|
|
@@ -25824,7 +25859,7 @@ var withMediaArchiveLocks = /* @__PURE__ */ __name(async (directory2, signal, ru
|
|
|
25824
25859
|
throw new CliError("validation_error", "archive locations changed during locking; run the command again");
|
|
25825
25860
|
}, "withMediaArchiveLocks");
|
|
25826
25861
|
|
|
25827
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25862
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/services/media-archive.js
|
|
25828
25863
|
var validateMediaSince = /* @__PURE__ */ __name((value, flag = "--since-time") => {
|
|
25829
25864
|
if (value === void 0)
|
|
25830
25865
|
return void 0;
|
|
@@ -25977,7 +26012,7 @@ var archiveMedia = /* @__PURE__ */ __name(async (ports, options2) => {
|
|
|
25977
26012
|
}, { create: true });
|
|
25978
26013
|
}, "archiveMedia");
|
|
25979
26014
|
|
|
25980
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26015
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/services/media-archive-move.js
|
|
25981
26016
|
import { realpath as realpath2, unlink as unlink5 } from "node:fs/promises";
|
|
25982
26017
|
import { basename as basename3, dirname as dirname6, join as join11, resolve as resolve5 } from "node:path";
|
|
25983
26018
|
var canonicalDestination = /* @__PURE__ */ __name(async (directory2) => {
|
|
@@ -26130,7 +26165,7 @@ var moveMediaArchive = /* @__PURE__ */ __name(async (options2) => {
|
|
|
26130
26165
|
}, { additional: [target2], createAdditional: !options2.dryRun });
|
|
26131
26166
|
}, "moveMediaArchive");
|
|
26132
26167
|
|
|
26133
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26168
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/services/model-downloads.js
|
|
26134
26169
|
import { writeFileSync as writeFileSync2 } from "node:fs";
|
|
26135
26170
|
import { join as join12 } from "node:path";
|
|
26136
26171
|
var bytesOf = /* @__PURE__ */ __name((model) => model.files.reduce((sum2, file2) => sum2 + file2.bytes, 0), "bytesOf");
|
|
@@ -26155,7 +26190,7 @@ var downloadTextModel = /* @__PURE__ */ __name(async (id2, { env, progress = /*
|
|
|
26155
26190
|
`);
|
|
26156
26191
|
await nativeRuntime({ env, progress });
|
|
26157
26192
|
progress(`${model.id}: loading it once to check it works`);
|
|
26158
|
-
const { openEmbedder: openEmbedder2 } = await import("./embed-
|
|
26193
|
+
const { openEmbedder: openEmbedder2 } = await import("./embed-T5MLKX75.js");
|
|
26159
26194
|
const embedder = await openEmbedder2(model, directory2);
|
|
26160
26195
|
try {
|
|
26161
26196
|
const [vector] = await embedder.embed(["check"], "query");
|
|
@@ -26176,7 +26211,7 @@ var downloadRerankModel = /* @__PURE__ */ __name(async (id2, { env, progress = /
|
|
|
26176
26211
|
}
|
|
26177
26212
|
await nativeRuntime({ env, progress });
|
|
26178
26213
|
progress(`${model.id}: loading it once to check it works`);
|
|
26179
|
-
const { openReranker } = await import("./rerank-
|
|
26214
|
+
const { openReranker } = await import("./rerank-XV4E25ML.js");
|
|
26180
26215
|
const reranker = await openReranker(model, directory2);
|
|
26181
26216
|
try {
|
|
26182
26217
|
await reranker.score("check", ["check"]);
|
|
@@ -26194,7 +26229,7 @@ var downloadImageModel = /* @__PURE__ */ __name(async (id2, { env, progress = /*
|
|
|
26194
26229
|
await installFiles(placedImage(model, directory2), { progress, ...bytes2 ? { bytes: bytes2 } : {} });
|
|
26195
26230
|
}
|
|
26196
26231
|
progress(`${model.id}: loading it once to check it works`);
|
|
26197
|
-
const { openPictureEmbedder } = await import("./embedder-
|
|
26232
|
+
const { openPictureEmbedder } = await import("./embedder-56NMRLC5.js");
|
|
26198
26233
|
const embedder = await openPictureEmbedder(model, directory2);
|
|
26199
26234
|
try {
|
|
26200
26235
|
const vector = await embedder.embedQuery("check");
|
|
@@ -26206,7 +26241,7 @@ var downloadImageModel = /* @__PURE__ */ __name(async (id2, { env, progress = /*
|
|
|
26206
26241
|
return { model, directory: directory2 };
|
|
26207
26242
|
}, "downloadImageModel");
|
|
26208
26243
|
|
|
26209
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26244
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/domain/money-words.js
|
|
26210
26245
|
var MONEY_REQUEST = "money-request";
|
|
26211
26246
|
var MONEY_DONE = "money-done";
|
|
26212
26247
|
var PROMISE = "promise";
|
|
@@ -26240,10 +26275,10 @@ var MONEY_WORDS = [
|
|
|
26240
26275
|
}
|
|
26241
26276
|
];
|
|
26242
26277
|
|
|
26243
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26278
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/services/money-words.js
|
|
26244
26279
|
var moneyClassesOf = /* @__PURE__ */ __name((text2) => listsHit(text2, MONEY_WORDS), "moneyClassesOf");
|
|
26245
26280
|
|
|
26246
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26281
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/domain/status-words.js
|
|
26247
26282
|
var words = /* @__PURE__ */ __name((forms) => new RegExp(`(?<![\\p{L}\\p{N}])(?:${forms.join("|")})(?![\\p{L}\\p{N}])`, "iu"), "words");
|
|
26248
26283
|
var MONEY_DONE_FORMS = words([
|
|
26249
26284
|
"\u043E\u043F\u043B\u0430\u0442\u0438\u043B[\u0430\u0438]?",
|
|
@@ -26283,7 +26318,7 @@ var PROMISE_FORMS = words([
|
|
|
26283
26318
|
"estar\xE1 listo"
|
|
26284
26319
|
]);
|
|
26285
26320
|
|
|
26286
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26321
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/services/project-status/items.js
|
|
26287
26322
|
var EXCERPT_CHARS = 80;
|
|
26288
26323
|
var excerpt2 = /* @__PURE__ */ __name((text2) => {
|
|
26289
26324
|
const flat = text2.replace(/\s+/g, " ").trim();
|
|
@@ -26305,7 +26340,7 @@ var whoOf = /* @__PURE__ */ __name((message) => ({
|
|
|
26305
26340
|
var fromOwner = /* @__PURE__ */ __name((message) => message.outgoing === true, "fromOwner");
|
|
26306
26341
|
var day = /* @__PURE__ */ __name((at) => new Date(at).toISOString().slice(0, 10), "day");
|
|
26307
26342
|
|
|
26308
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26343
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/services/project-status/signals/amounts.js
|
|
26309
26344
|
var MONEY = DEFAULT_TASK_CATEGORIES.filter((category) => category.name === "money");
|
|
26310
26345
|
var verbOf = /* @__PURE__ */ __name((text2) => {
|
|
26311
26346
|
if (MONEY_DONE_FORMS.test(text2))
|
|
@@ -26386,7 +26421,7 @@ var amounts = {
|
|
|
26386
26421
|
attention: /* @__PURE__ */ __name((items) => items.flatMap((item2) => item2.chat !== null && item2.data.state === "asked" ? [{ chat: item2.chat, weight: 2, why: "money asked" }] : []), "attention")
|
|
26387
26422
|
};
|
|
26388
26423
|
|
|
26389
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26424
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/services/project-status/signals/children.js
|
|
26390
26425
|
var children = {
|
|
26391
26426
|
id: "children",
|
|
26392
26427
|
version: 1,
|
|
@@ -26415,7 +26450,7 @@ var children = {
|
|
|
26415
26450
|
}, "read")
|
|
26416
26451
|
};
|
|
26417
26452
|
|
|
26418
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26453
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/services/project-status/signals/coverage.js
|
|
26419
26454
|
var coverage = {
|
|
26420
26455
|
id: "coverage",
|
|
26421
26456
|
version: 1,
|
|
@@ -26444,7 +26479,7 @@ var coverage = {
|
|
|
26444
26479
|
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")
|
|
26445
26480
|
};
|
|
26446
26481
|
|
|
26447
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26482
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/services/project-status/signals/payments.js
|
|
26448
26483
|
var holding2 = /* @__PURE__ */ __name((row) => row.review !== "rejected", "holding");
|
|
26449
26484
|
var item = /* @__PURE__ */ __name((row, at, data) => ({
|
|
26450
26485
|
signal: "payments",
|
|
@@ -26494,7 +26529,7 @@ var payments = {
|
|
|
26494
26529
|
}, "read")
|
|
26495
26530
|
};
|
|
26496
26531
|
|
|
26497
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26532
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/services/project-status/signals/promises.js
|
|
26498
26533
|
var PATTERNS_PER_CHAT = 3;
|
|
26499
26534
|
var DAY3 = 864e5;
|
|
26500
26535
|
var KINDS2 = /* @__PURE__ */ new Set(["promise", "request"]);
|
|
@@ -26583,7 +26618,7 @@ var promises = {
|
|
|
26583
26618
|
}, "read")
|
|
26584
26619
|
};
|
|
26585
26620
|
|
|
26586
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26621
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/services/project-status/signals/questions.js
|
|
26587
26622
|
var PER_SIDE = 5;
|
|
26588
26623
|
var WEEK = 7 * 864e5;
|
|
26589
26624
|
var NOBODY = /* @__PURE__ */ new Set();
|
|
@@ -26614,7 +26649,7 @@ var questions2 = {
|
|
|
26614
26649
|
}, "attention")
|
|
26615
26650
|
};
|
|
26616
26651
|
|
|
26617
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26652
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/services/project-status/signals/reply-next.js
|
|
26618
26653
|
var targetOf = /* @__PURE__ */ __name((message, chat, owners) => {
|
|
26619
26654
|
const byId2 = /* @__PURE__ */ __name((id2) => chat.messages.find((one) => one.id === id2), "byId");
|
|
26620
26655
|
const quoted = message.replyTo ?? (message.replyToId === void 0 ? void 0 : byId2(message.replyToId));
|
|
@@ -26682,7 +26717,7 @@ var replyNext = {
|
|
|
26682
26717
|
attention: /* @__PURE__ */ __name((items) => items.flatMap((item2) => item2.chat !== null && item2.data.next === "owner" ? [{ chat: item2.chat, weight: 2, why: "your move" }] : []), "attention")
|
|
26683
26718
|
};
|
|
26684
26719
|
|
|
26685
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26720
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/services/project-status/signals/topics.js
|
|
26686
26721
|
var escaped = /* @__PURE__ */ __name((text2) => text2.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), "escaped");
|
|
26687
26722
|
var wholeWord = /* @__PURE__ */ __name((word) => new RegExp(`(?<![\\p{L}\\p{N}])${escaped(word)}(?![\\p{L}\\p{N}])`, "u"), "wholeWord");
|
|
26688
26723
|
var matcherOf = /* @__PURE__ */ __name((query) => {
|
|
@@ -26728,7 +26763,7 @@ var topics = {
|
|
|
26728
26763
|
}, "read")
|
|
26729
26764
|
};
|
|
26730
26765
|
|
|
26731
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26766
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/services/project-status/signals/index.js
|
|
26732
26767
|
var STATUS_SIGNALS = [
|
|
26733
26768
|
replyNext,
|
|
26734
26769
|
questions2,
|
|
@@ -26740,7 +26775,7 @@ var STATUS_SIGNALS = [
|
|
|
26740
26775
|
children
|
|
26741
26776
|
];
|
|
26742
26777
|
|
|
26743
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26778
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/services/project-status/index.js
|
|
26744
26779
|
var DAY4 = 864e5;
|
|
26745
26780
|
var STATUS_WINDOW = 300;
|
|
26746
26781
|
var STATUS_CHATS = 16;
|
|
@@ -26929,7 +26964,7 @@ var projectStatus = /* @__PURE__ */ __name(async (store, input) => {
|
|
|
26929
26964
|
};
|
|
26930
26965
|
}, "projectStatus");
|
|
26931
26966
|
|
|
26932
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26967
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/services/account.js
|
|
26933
26968
|
var accountService = /* @__PURE__ */ __name((deps) => {
|
|
26934
26969
|
const online = /* @__PURE__ */ __name(async (command) => {
|
|
26935
26970
|
if (deps.offline)
|
|
@@ -27001,7 +27036,7 @@ var accountService = /* @__PURE__ */ __name((deps) => {
|
|
|
27001
27036
|
};
|
|
27002
27037
|
}, "accountService");
|
|
27003
27038
|
|
|
27004
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27039
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/domain/send-time.js
|
|
27005
27040
|
var MINUTE = 6e4;
|
|
27006
27041
|
var YEAR = 365 * 24 * 60 * MINUTE;
|
|
27007
27042
|
var DELAY = /^(\d+)(m|h|d)$/;
|
|
@@ -27020,7 +27055,7 @@ var sendTime = /* @__PURE__ */ __name((value, now = Date.now(), flag = "--at-tim
|
|
|
27020
27055
|
return new Date(at - at % MINUTE).toISOString();
|
|
27021
27056
|
}, "sendTime");
|
|
27022
27057
|
|
|
27023
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27058
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/services/admin.js
|
|
27024
27059
|
var recordMembership = /* @__PURE__ */ __name(async (deps, operationId, done2, change, fix, write) => {
|
|
27025
27060
|
try {
|
|
27026
27061
|
const held = await accountStoreIfOpen(deps);
|
|
@@ -27267,7 +27302,7 @@ var linkLimits = /* @__PURE__ */ __name(({ approval, expires, maxUses }) => {
|
|
|
27267
27302
|
return expires === void 0 ? void 0 : sendTime(expires, Date.now(), "--expire-time");
|
|
27268
27303
|
}, "linkLimits");
|
|
27269
27304
|
|
|
27270
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27305
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/services/mail-search.js
|
|
27271
27306
|
var THREADS_PAGE = 500;
|
|
27272
27307
|
var threadsOf = /* @__PURE__ */ __name(async (store, key) => {
|
|
27273
27308
|
const account = await store.accounts.storedAccount(key).catch(() => void 0);
|
|
@@ -27346,7 +27381,7 @@ var readMail = /* @__PURE__ */ __name(async (store, locator, { before: before2 =
|
|
|
27346
27381
|
return thread.slice(Math.max(0, at - before2), at + after + 1).map((hit) => hit.id === message ? { ...hit, anchor: true } : hit);
|
|
27347
27382
|
}, "readMail");
|
|
27348
27383
|
|
|
27349
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27384
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/search/groups.js
|
|
27350
27385
|
var ALL = "all";
|
|
27351
27386
|
var OWNER_NOTES = { provider: "notes", account: INTERNAL_NOTES };
|
|
27352
27387
|
var NOT_GROUP_NAMES = /* @__PURE__ */ new Set([ALL, "bots"]);
|
|
@@ -27417,7 +27452,7 @@ var groupEntries = /* @__PURE__ */ __name((saved) => ({
|
|
|
27417
27452
|
[ALL]: [ALL]
|
|
27418
27453
|
}), "groupEntries");
|
|
27419
27454
|
|
|
27420
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27455
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/services/search-kind.js
|
|
27421
27456
|
var NO_MAIL = "no_mail";
|
|
27422
27457
|
var MAIL = "email";
|
|
27423
27458
|
var groupLockOf = /* @__PURE__ */ __name((app, env) => {
|
|
@@ -27491,7 +27526,7 @@ var accountsOfKind = /* @__PURE__ */ __name((kind, chosen, held, explicit, comma
|
|
|
27491
27526
|
return chosenMail.map(({ provider, account }) => ({ provider, account }));
|
|
27492
27527
|
}, "accountsOfKind");
|
|
27493
27528
|
|
|
27494
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27529
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/services/messages-search.js
|
|
27495
27530
|
var MAIL_FIELDS = /* @__PURE__ */ new Set(["to", "cc", "bcc", "subject", "mailbox", "label", "is"]);
|
|
27496
27531
|
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");
|
|
27497
27532
|
var prepareLucene = /* @__PURE__ */ __name(async (store, account, request, messenger) => {
|
|
@@ -27840,7 +27875,7 @@ var statsLucene = /* @__PURE__ */ __name(async (store, account, request, messeng
|
|
|
27840
27875
|
};
|
|
27841
27876
|
}, "statsLucene");
|
|
27842
27877
|
|
|
27843
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27878
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/services/rankings-selection.js
|
|
27844
27879
|
var RANKING_SELECTION_BYTES = 64 * 1024;
|
|
27845
27880
|
var object2 = /* @__PURE__ */ __name((value) => value !== null && typeof value === "object" && !Array.isArray(value) ? value : void 0, "object");
|
|
27846
27881
|
function invalid3(message = "ranking selection is invalid \u2014 obtain a new drilldown from stats top") {
|
|
@@ -28009,7 +28044,7 @@ var readRankingSelection = /* @__PURE__ */ __name(async (store, input) => {
|
|
|
28009
28044
|
};
|
|
28010
28045
|
}, "readRankingSelection");
|
|
28011
28046
|
|
|
28012
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28047
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/services/search-record.js
|
|
28013
28048
|
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");
|
|
28014
28049
|
var searchRecordOf = /* @__PURE__ */ __name((command, params) => ({
|
|
28015
28050
|
command,
|
|
@@ -28019,7 +28054,7 @@ var searchRecordOf = /* @__PURE__ */ __name((command, params) => ({
|
|
|
28019
28054
|
fieldsVersion: FIELD_VERSION
|
|
28020
28055
|
}), "searchRecordOf");
|
|
28021
28056
|
|
|
28022
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28057
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/services/admin-statistics.js
|
|
28023
28058
|
function invalid4(message) {
|
|
28024
28059
|
throw new CliError("validation_error", message);
|
|
28025
28060
|
}
|
|
@@ -28313,7 +28348,7 @@ var adminStatisticsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
28313
28348
|
}, "evidence")
|
|
28314
28349
|
}), "adminStatisticsService");
|
|
28315
28350
|
|
|
28316
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28351
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/services/archive-gaps.js
|
|
28317
28352
|
import { createHash as createHash7, randomUUID as randomUUID5 } from "node:crypto";
|
|
28318
28353
|
var GAP_BOUNDS = { maxGaps: 5, limit: 500, timeMs: 3e4 };
|
|
28319
28354
|
var validateRepair = /* @__PURE__ */ __name((messenger, options2) => {
|
|
@@ -28450,12 +28485,12 @@ var gapsService = /* @__PURE__ */ __name((deps) => {
|
|
|
28450
28485
|
return { plan, repair };
|
|
28451
28486
|
}, "gapsService");
|
|
28452
28487
|
|
|
28453
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28488
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/services/attachments.js
|
|
28454
28489
|
import { createHash as createHash9 } from "node:crypto";
|
|
28455
28490
|
import { constants as constants2, mkdirSync as mkdirSync5 } from "node:fs";
|
|
28456
28491
|
import { lstat as lstat4, open as open6, readFile, stat as stat2 } from "node:fs/promises";
|
|
28457
28492
|
|
|
28458
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28493
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/attachments/directory.js
|
|
28459
28494
|
import { lstat as lstat2, readdir as readdir2, realpath as realpath3 } from "node:fs/promises";
|
|
28460
28495
|
import { basename as basename4, join as join13, relative as relative2, sep as sep2 } from "node:path";
|
|
28461
28496
|
var MAX_FILES = 1e4;
|
|
@@ -28526,15 +28561,15 @@ var directoryPaths = /* @__PURE__ */ __name(async (store, chat, directory2, app,
|
|
|
28526
28561
|
return choices;
|
|
28527
28562
|
}, "directoryPaths");
|
|
28528
28563
|
|
|
28529
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28564
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/attachments/documents.js
|
|
28530
28565
|
import { posix } from "node:path";
|
|
28531
28566
|
|
|
28532
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28567
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/attachments/container.js
|
|
28533
28568
|
import { setImmediate as tick } from "node:timers/promises";
|
|
28534
28569
|
import { crc32 } from "node:zlib";
|
|
28535
28570
|
var import_xmldom = __toESM(require_lib(), 1);
|
|
28536
28571
|
|
|
28537
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28572
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/attachments/encoding.js
|
|
28538
28573
|
var import_chardet = __toESM(require_lib2(), 1);
|
|
28539
28574
|
var import_iconv_lite = __toESM(require_lib3(), 1);
|
|
28540
28575
|
var SAMPLE = 65536;
|
|
@@ -28636,7 +28671,7 @@ var decodeXml = /* @__PURE__ */ __name((bytes2) => {
|
|
|
28636
28671
|
return result.text;
|
|
28637
28672
|
}, "decodeXml");
|
|
28638
28673
|
|
|
28639
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28674
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/attachments/container.js
|
|
28640
28675
|
var MAX_PART = 10 * 1024 * 1024;
|
|
28641
28676
|
var MAX_ENTRIES = 1e3;
|
|
28642
28677
|
var decoder = new TextDecoder("utf-8", { fatal: true });
|
|
@@ -28851,7 +28886,7 @@ var elements = /* @__PURE__ */ __name((node, name, namespace) => {
|
|
|
28851
28886
|
return found;
|
|
28852
28887
|
}, "elements");
|
|
28853
28888
|
|
|
28854
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28889
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/attachments/sheets.js
|
|
28855
28890
|
var columnName = /* @__PURE__ */ __name((column) => {
|
|
28856
28891
|
let name = "";
|
|
28857
28892
|
for (let rest = column; rest > 0; rest = Math.floor((rest - 1) / 26))
|
|
@@ -28906,7 +28941,7 @@ var sheetText = /* @__PURE__ */ __name((sheets2, maxChars = MAX_TEXT_CHARS) => {
|
|
|
28906
28941
|
return { text: parts.join("").trim(), truncated: false };
|
|
28907
28942
|
}, "sheetText");
|
|
28908
28943
|
|
|
28909
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28944
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/attachments/documents.js
|
|
28910
28945
|
var OFFICE = "urn:oasis:names:tc:opendocument:xmlns:office:1.0";
|
|
28911
28946
|
var TEXT = "urn:oasis:names:tc:opendocument:xmlns:text:1.0";
|
|
28912
28947
|
var TABLE = "urn:oasis:names:tc:opendocument:xmlns:table:1.0";
|
|
@@ -29306,10 +29341,10 @@ var readDocument = /* @__PURE__ */ __name(async (bytes2, kind, signal) => {
|
|
|
29306
29341
|
}
|
|
29307
29342
|
}, "readDocument");
|
|
29308
29343
|
|
|
29309
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29344
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/attachments/extract.js
|
|
29310
29345
|
import { extname as extname3 } from "node:path";
|
|
29311
29346
|
|
|
29312
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29347
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/readers/engine.js
|
|
29313
29348
|
import { readFileSync as readFileSync5 } from "node:fs";
|
|
29314
29349
|
import { dirname as dirname7, extname as extname2, join as join14 } from "node:path";
|
|
29315
29350
|
import { fileURLToPath } from "node:url";
|
|
@@ -29370,7 +29405,7 @@ var derived = /* @__PURE__ */ __name((bytes2, extractor, read) => {
|
|
|
29370
29405
|
}
|
|
29371
29406
|
}, "derived");
|
|
29372
29407
|
|
|
29373
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29408
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/readers/image/index.js
|
|
29374
29409
|
var IMAGES = /* @__PURE__ */ new Set([".jpg", ".jpeg", ".png", ".webp", ".gif", ".heic", ".tif", ".tiff", ".bmp"]);
|
|
29375
29410
|
var image2 = {
|
|
29376
29411
|
id: "image",
|
|
@@ -29379,7 +29414,7 @@ var image2 = {
|
|
|
29379
29414
|
read: /* @__PURE__ */ __name(async () => ({ status: "needs-agent" }), "read")
|
|
29380
29415
|
};
|
|
29381
29416
|
|
|
29382
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29417
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/readers/doc/index.js
|
|
29383
29418
|
var OLE = "\xD0\xCF\xE0\xA1\xB1\xE1";
|
|
29384
29419
|
var doc = {
|
|
29385
29420
|
id: "doc",
|
|
@@ -29391,7 +29426,7 @@ var doc = {
|
|
|
29391
29426
|
}), "read")
|
|
29392
29427
|
};
|
|
29393
29428
|
|
|
29394
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29429
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/readers/docx/index.js
|
|
29395
29430
|
var DOCX = "application/vnd.openxmlformats-officedocument.wordprocessingml.document";
|
|
29396
29431
|
var docx = {
|
|
29397
29432
|
id: "docx",
|
|
@@ -29404,7 +29439,7 @@ var docx = {
|
|
|
29404
29439
|
}), "read")
|
|
29405
29440
|
};
|
|
29406
29441
|
|
|
29407
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29442
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/attachments/markup.js
|
|
29408
29443
|
var import_iconv_lite2 = __toESM(require_lib3(), 1);
|
|
29409
29444
|
var RTF_SKIPPED = /* @__PURE__ */ new Set([
|
|
29410
29445
|
"fonttbl",
|
|
@@ -29580,7 +29615,7 @@ var htmlText = /* @__PURE__ */ __name((source) => {
|
|
|
29580
29615
|
}, "htmlText");
|
|
29581
29616
|
var safeChar = /* @__PURE__ */ __name((code, fallback) => code > 0 && code <= 1114111 ? String.fromCodePoint(code) : fallback, "safeChar");
|
|
29582
29617
|
|
|
29583
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29618
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/readers/html/page.js
|
|
29584
29619
|
var clean = /* @__PURE__ */ __name((value) => typeof value === "string" ? value.replace(/\s+/g, " ").trim() : "", "clean");
|
|
29585
29620
|
var namesIn = /* @__PURE__ */ __name((value) => [value].flat().map((entry) => typeof entry === "string" ? clean(entry) : clean(entry?.name)).filter(Boolean).join(", "), "namesIn");
|
|
29586
29621
|
var jsonLdNodes = /* @__PURE__ */ __name((document) => {
|
|
@@ -29636,7 +29671,7 @@ var markdownSections = /* @__PURE__ */ __name((text2) => {
|
|
|
29636
29671
|
return found.map((section, index) => ({ ...section, end: found[index + 1]?.start ?? text2.length }));
|
|
29637
29672
|
}, "markdownSections");
|
|
29638
29673
|
|
|
29639
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29674
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/readers/html/index.js
|
|
29640
29675
|
var HTML = /* @__PURE__ */ new Set([".html", ".htm", ".xhtml"]);
|
|
29641
29676
|
var first = /* @__PURE__ */ __name((...values) => values.find((value) => typeof value === "string" && value !== ""), "first");
|
|
29642
29677
|
var loaded = /* @__PURE__ */ __name(async (load, name) => {
|
|
@@ -29707,7 +29742,7 @@ var html = {
|
|
|
29707
29742
|
}, "read")
|
|
29708
29743
|
};
|
|
29709
29744
|
|
|
29710
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29745
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/readers/office/index.js
|
|
29711
29746
|
var office = {
|
|
29712
29747
|
id: "office",
|
|
29713
29748
|
version: documentExtractor("odt"),
|
|
@@ -29718,7 +29753,7 @@ var office = {
|
|
|
29718
29753
|
}, "read")
|
|
29719
29754
|
};
|
|
29720
29755
|
|
|
29721
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29756
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/readers/pdf/index.js
|
|
29722
29757
|
var pdf = {
|
|
29723
29758
|
id: "pdf",
|
|
29724
29759
|
version: "unpdf",
|
|
@@ -29785,7 +29820,7 @@ var pdf = {
|
|
|
29785
29820
|
}), "read")
|
|
29786
29821
|
};
|
|
29787
29822
|
|
|
29788
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29823
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/readers/plain/index.js
|
|
29789
29824
|
var PLAIN = /* @__PURE__ */ new Set([".txt", ".md", ".markdown", ".csv", ".tsv", ".json", ".log"]);
|
|
29790
29825
|
var isPlain = /* @__PURE__ */ __name((hint) => PLAIN.has(extensionOf(hint)) || hint.mime?.startsWith("text/") || hint.mime === "application/json", "isPlain");
|
|
29791
29826
|
var readPlain = /* @__PURE__ */ __name((bytes2) => {
|
|
@@ -29805,7 +29840,7 @@ var plain = {
|
|
|
29805
29840
|
read: /* @__PURE__ */ __name(async (bytes2) => readPlain(bytes2), "read")
|
|
29806
29841
|
};
|
|
29807
29842
|
|
|
29808
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29843
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/readers/rtf/index.js
|
|
29809
29844
|
var rtf = {
|
|
29810
29845
|
id: "rtf",
|
|
29811
29846
|
version: "v1",
|
|
@@ -29813,10 +29848,10 @@ var rtf = {
|
|
|
29813
29848
|
read: /* @__PURE__ */ __name(async (bytes2) => derived(bytes2, "rtf:v1", rtfText), "read")
|
|
29814
29849
|
};
|
|
29815
29850
|
|
|
29816
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29851
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/readers/sheets/index.js
|
|
29817
29852
|
import { basename as basename5 } from "node:path";
|
|
29818
29853
|
|
|
29819
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29854
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/attachments/csv-spans.js
|
|
29820
29855
|
var delimitedSpans = /* @__PURE__ */ __name((text2, delimiter, maxCells = 1e4) => {
|
|
29821
29856
|
const cells = [];
|
|
29822
29857
|
let row = 1, column = 1, start = 0, quoted = false, truncated = false;
|
|
@@ -29854,7 +29889,7 @@ var delimitedSpans = /* @__PURE__ */ __name((text2, delimiter, maxCells = 1e4) =
|
|
|
29854
29889
|
return { cells, truncated };
|
|
29855
29890
|
}, "delimitedSpans");
|
|
29856
29891
|
|
|
29857
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29892
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/readers/sheets/index.js
|
|
29858
29893
|
var DELIMITED = {
|
|
29859
29894
|
".csv": ",",
|
|
29860
29895
|
".tsv": " ",
|
|
@@ -29893,7 +29928,7 @@ var sheets = {
|
|
|
29893
29928
|
}, "read")
|
|
29894
29929
|
};
|
|
29895
29930
|
|
|
29896
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29931
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/readers/registry.js
|
|
29897
29932
|
var BUILT_INS2 = [office, pdf, docx, doc, rtf, html, sheets, plain, image2];
|
|
29898
29933
|
var HEAD_BYTES = 1024;
|
|
29899
29934
|
var readers = [...BUILT_INS2];
|
|
@@ -29903,7 +29938,7 @@ var readWithRegistry = /* @__PURE__ */ __name(async (bytes2, hint, context2) =>
|
|
|
29903
29938
|
return reader ? reader.read(bytes2, hint, context2) : { status: "unsupported" };
|
|
29904
29939
|
}, "readWithRegistry");
|
|
29905
29940
|
|
|
29906
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29941
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/attachments/extract.js
|
|
29907
29942
|
var importEngine = /* @__PURE__ */ __name((name) => importFrom(new URL("attachments/extract.js", import.meta.resolve("@wirecat/cli-core")).href, name), "importEngine");
|
|
29908
29943
|
var extensionOf2 = /* @__PURE__ */ __name(({ name, path }) => extname3(name ?? path).toLowerCase(), "extensionOf");
|
|
29909
29944
|
var extractText = /* @__PURE__ */ __name(async (bytes2, hint, load, signal, env = process.env) => {
|
|
@@ -30982,7 +31017,7 @@ function imageSize(input) {
|
|
|
30982
31017
|
}
|
|
30983
31018
|
__name(imageSize, "imageSize");
|
|
30984
31019
|
|
|
30985
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31020
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/attachments/ocr.js
|
|
30986
31021
|
var MAX_PAGES = 20;
|
|
30987
31022
|
var MAX_PIXELS = 2e7;
|
|
30988
31023
|
var cancelled2 = /* @__PURE__ */ __name((signal) => {
|
|
@@ -31133,7 +31168,7 @@ var ocrPdf = /* @__PURE__ */ __name(async (bytes2, pipeline2, load, signal) => {
|
|
|
31133
31168
|
}
|
|
31134
31169
|
}, "ocrPdf");
|
|
31135
31170
|
|
|
31136
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31171
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/attachments/pdf-preview.js
|
|
31137
31172
|
var pdfPreview = /* @__PURE__ */ __name(async (bytes2, page, signal, load = importEngine, env = process.env) => {
|
|
31138
31173
|
const limits = pdfPreviewLimits(env);
|
|
31139
31174
|
const cancelled3 = /* @__PURE__ */ __name(() => {
|
|
@@ -31210,7 +31245,7 @@ var pdfPreview = /* @__PURE__ */ __name(async (bytes2, page, signal, load = impo
|
|
|
31210
31245
|
}
|
|
31211
31246
|
}, "pdfPreview");
|
|
31212
31247
|
|
|
31213
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31248
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/attachments/transfer.js
|
|
31214
31249
|
import { createHash as createHash8 } from "node:crypto";
|
|
31215
31250
|
import { constants } from "node:fs";
|
|
31216
31251
|
import { lstat as lstat3, open as open5 } from "node:fs/promises";
|
|
@@ -31318,7 +31353,7 @@ var transferMime = /* @__PURE__ */ __name((head, hint, name = null) => {
|
|
|
31318
31353
|
return hint !== null && /^[a-z0-9.+-]+\/[a-z0-9.+-]+$/i.test(hint) ? hint : "application/octet-stream";
|
|
31319
31354
|
}, "transferMime");
|
|
31320
31355
|
|
|
31321
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31356
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/services/file-download.js
|
|
31322
31357
|
import { createWriteStream, mkdirSync as mkdirSync4 } from "node:fs";
|
|
31323
31358
|
import { link as link3, rm } from "node:fs/promises";
|
|
31324
31359
|
import { join as join15, resolve as resolve6 } from "node:path";
|
|
@@ -31432,7 +31467,7 @@ var save = /* @__PURE__ */ __name(async (file2, directory2, fallbackName, { uniq
|
|
|
31432
31467
|
}
|
|
31433
31468
|
}, "save");
|
|
31434
31469
|
|
|
31435
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31470
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/services/attachments.js
|
|
31436
31471
|
var ATTACHMENT_QUERY = {
|
|
31437
31472
|
entity: "attachment",
|
|
31438
31473
|
backend: "sql",
|
|
@@ -31855,7 +31890,7 @@ var attachmentsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
31855
31890
|
}, "setText")
|
|
31856
31891
|
}), "attachmentsService");
|
|
31857
31892
|
|
|
31858
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31893
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/services/chat-documents.js
|
|
31859
31894
|
var chatDocumentsService = /* @__PURE__ */ __name((deps) => ({
|
|
31860
31895
|
list: /* @__PURE__ */ __name(async (chat, { limit, offset, ref }) => {
|
|
31861
31896
|
const store = await accountStore(deps);
|
|
@@ -31885,7 +31920,7 @@ var chatDocumentsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
31885
31920
|
}, "list")
|
|
31886
31921
|
}), "chatDocumentsService");
|
|
31887
31922
|
|
|
31888
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31923
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/services/retention.js
|
|
31889
31924
|
var observationDuration = /* @__PURE__ */ __name((text2, flag) => {
|
|
31890
31925
|
const match = /^(\d+(?:\.\d+)?)([smhdw])$/.exec(text2);
|
|
31891
31926
|
const units2 = { s: 1e3, m: 6e4, h: 36e5, d: 864e5, w: 6048e5 };
|
|
@@ -31972,7 +32007,7 @@ var isRetentionSelection = /* @__PURE__ */ __name((selection) => {
|
|
|
31972
32007
|
}
|
|
31973
32008
|
}, "isRetentionSelection");
|
|
31974
32009
|
|
|
31975
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32010
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/services/counters.js
|
|
31976
32011
|
var counterFields = /* @__PURE__ */ __name((text2 = "views,reactions,comments") => {
|
|
31977
32012
|
const fields = text2.split(",").map((one) => one.trim());
|
|
31978
32013
|
if (!fields.length || fields.some((one) => !COUNTER_FIELDS.includes(one)) || new Set(fields).size !== fields.length)
|
|
@@ -32179,7 +32214,7 @@ var countersService = /* @__PURE__ */ __name((deps) => {
|
|
|
32179
32214
|
};
|
|
32180
32215
|
}, "countersService");
|
|
32181
32216
|
|
|
32182
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32217
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/services/search-refresh.js
|
|
32183
32218
|
var SYNC_KEY = "messages.sync-first";
|
|
32184
32219
|
var SYNC_BOUNDS = { maxChats: 5, timeMs: 3e4, maxMessages: 500 };
|
|
32185
32220
|
var keyOf3 = /* @__PURE__ */ __name((chat) => JSON.stringify([chat.account.provider, chat.account.account, chat.chatId]), "keyOf");
|
|
@@ -32311,7 +32346,7 @@ var withRefresh = /* @__PURE__ */ __name((found, refreshed) => ({
|
|
|
32311
32346
|
...!refreshed || refreshed.complete ? {} : { coverage: { ...found.coverage, state: "stale" } }
|
|
32312
32347
|
}), "withRefresh");
|
|
32313
32348
|
|
|
32314
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32349
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/services/embeddings-search.js
|
|
32315
32350
|
var CANDIDATES = 50;
|
|
32316
32351
|
var WORD_HITS = 200;
|
|
32317
32352
|
var RRF_K = 60;
|
|
@@ -32586,13 +32621,13 @@ var meanOf = /* @__PURE__ */ __name((vectors) => {
|
|
|
32586
32621
|
return mean2.map((value) => value / length);
|
|
32587
32622
|
}, "meanOf");
|
|
32588
32623
|
|
|
32589
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32624
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/services/embeddings.js
|
|
32590
32625
|
var embeddingsService = /* @__PURE__ */ __name((deps) => ({
|
|
32591
32626
|
...embeddingsMaintenance(deps),
|
|
32592
32627
|
...embeddingsSearch(deps)
|
|
32593
32628
|
}), "embeddingsService");
|
|
32594
32629
|
|
|
32595
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32630
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/services/folders.js
|
|
32596
32631
|
var foldersService = /* @__PURE__ */ __name((deps) => {
|
|
32597
32632
|
const online = /* @__PURE__ */ __name(async (command) => {
|
|
32598
32633
|
if (deps.offline)
|
|
@@ -32733,7 +32768,7 @@ var foldersService = /* @__PURE__ */ __name((deps) => {
|
|
|
32733
32768
|
};
|
|
32734
32769
|
}, "foldersService");
|
|
32735
32770
|
|
|
32736
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32771
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/services/mentions.js
|
|
32737
32772
|
var REVIEW_COUNT = 500;
|
|
32738
32773
|
var mentionsService = /* @__PURE__ */ __name((deps) => {
|
|
32739
32774
|
const located = /* @__PURE__ */ __name(async () => {
|
|
@@ -32812,7 +32847,7 @@ var mentionsService = /* @__PURE__ */ __name((deps) => {
|
|
|
32812
32847
|
};
|
|
32813
32848
|
}, "mentionsService");
|
|
32814
32849
|
|
|
32815
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32850
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/domain/message-link.js
|
|
32816
32851
|
var fileLinks = /* @__PURE__ */ __name((attachments) => hitFiles(attachments).map(({ position, kind, name }) => ({
|
|
32817
32852
|
position,
|
|
32818
32853
|
kind,
|
|
@@ -32861,7 +32896,7 @@ var validatePermalink = /* @__PURE__ */ __name((link4) => {
|
|
|
32861
32896
|
return { url: link4.url, access: link4.access, reason: link4.reason };
|
|
32862
32897
|
}, "validatePermalink");
|
|
32863
32898
|
|
|
32864
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32899
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/domain/pin-duration.js
|
|
32865
32900
|
var spokenSeconds = /* @__PURE__ */ __name((seconds) => {
|
|
32866
32901
|
if (seconds % 86400 === 0 && seconds > 86400)
|
|
32867
32902
|
return `${seconds / 86400}d`;
|
|
@@ -32893,7 +32928,7 @@ var pinDurationOf = /* @__PURE__ */ __name((value, allowed, flag = "--expire-tim
|
|
|
32893
32928
|
return seconds;
|
|
32894
32929
|
}, "pinDurationOf");
|
|
32895
32930
|
|
|
32896
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32931
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/sends/send-as.js
|
|
32897
32932
|
var sendAsCheck = /* @__PURE__ */ __name((connection, sendAs) => {
|
|
32898
32933
|
if (sendAs === void 0) {
|
|
32899
32934
|
const saved = connection.savedSender?.bind(connection);
|
|
@@ -32918,7 +32953,7 @@ var typedSendAs = /* @__PURE__ */ __name((typed) => {
|
|
|
32918
32953
|
return sendAs;
|
|
32919
32954
|
}, "typedSendAs");
|
|
32920
32955
|
|
|
32921
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32956
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/search/total.js
|
|
32922
32957
|
var TOTAL_CAP = 1e4;
|
|
32923
32958
|
var totalOf = /* @__PURE__ */ __name((count4, shown, hasMore, exact = true) => {
|
|
32924
32959
|
const least = shown + (hasMore ? 1 : 0);
|
|
@@ -32929,7 +32964,7 @@ var totalOf = /* @__PURE__ */ __name((count4, shown, hasMore, exact = true) => {
|
|
|
32929
32964
|
return { value: count4, relation: exact ? "eq" : "gte" };
|
|
32930
32965
|
}, "totalOf");
|
|
32931
32966
|
|
|
32932
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32967
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/search/lucene/meaning-parts.js
|
|
32933
32968
|
var WORD_FIELDS = /* @__PURE__ */ new Set(["text", "exact"]);
|
|
32934
32969
|
var fieldsOfQuery = /* @__PURE__ */ __name((root, everything) => {
|
|
32935
32970
|
let narrows = false;
|
|
@@ -32958,7 +32993,7 @@ var meaningWords = /* @__PURE__ */ __name((root) => {
|
|
|
32958
32993
|
return wanted(root).join(" ").trim();
|
|
32959
32994
|
}, "meaningWords");
|
|
32960
32995
|
|
|
32961
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32996
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/search/question-plan.js
|
|
32962
32997
|
var words2 = /* @__PURE__ */ __name((text2) => normalize(text2).match(/[\p{L}\p{N}]+/gu) ?? [], "words");
|
|
32963
32998
|
var scaffolding = new Set(words2("what which how many much who where when is are was were do does did can could should we the a an for of to under from in on at has have \u0441\u043A\u043E\u043B\u044C\u043A\u043E \u043A\u0430\u043A\u043E\u0439 \u043A\u0430\u043A\u0430\u044F \u043A\u0430\u043A\u0438\u0435 \u043A\u0430\u043A\u043E\u0435 \u043A\u0442\u043E \u043A\u043E\u043C\u0443 \u043A\u0435\u043C \u0433\u0434\u0435 \u043A\u043E\u0433\u0434\u0430 \u043A\u0430\u043A \u0447\u0442\u043E \u0432\u043E \u043F\u043E \u043D\u0430 \u0432 \u043A \u0441 \u0443 \u0447\u0435\u0440\u0435\u0437 \u043B\u0438 \u0434\u043E\u043B\u0436\u0435\u043D \u0434\u043E\u043B\u0436\u043D\u0430 \u043D\u0443\u0436\u043D\u043E \u0438\u0434\u0451\u0442 \u0438\u0434\u0435\u0442 \u043C\u043E\u0436\u043D\u043E \u043C\u043E\u0436\u0435\u0442 \u043C\u043E\u0433\u0443\u0442"));
|
|
32964
32999
|
var questionWord = /\b(?:what|which|how|who|where|when|can|could|should)\b|(?:^|\s)(?:сколько|какой|какая|какие|какое|кто|кому|кем|где|когда|как|что|можно|может|могут|ли)(?:\s|$)/iu;
|
|
@@ -33091,7 +33126,7 @@ var questionLookup = /* @__PURE__ */ __name((text2) => {
|
|
|
33091
33126
|
return terms.length ? anyOfTerms(terms, plan.scope) : void 0;
|
|
33092
33127
|
}, "questionLookup");
|
|
33093
33128
|
|
|
33094
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33129
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/services/messages-combined.js
|
|
33095
33130
|
var COMBINED_DEFAULTS = { candidateDepth: 300, rrfK: 60, rerank: "all", chatCap: 0 };
|
|
33096
33131
|
var tokensOf = /* @__PURE__ */ __name((text2) => normalize(text2).match(/[\p{L}\p{N}\p{Co}\p{M}]+/gu) ?? [], "tokensOf");
|
|
33097
33132
|
var searchCombined = /* @__PURE__ */ __name(async (store, account, request, messenger = {}, options2 = COMBINED_DEFAULTS) => {
|
|
@@ -33285,7 +33320,7 @@ var signals = /* @__PURE__ */ __name((hit, terms, corrections, execution, mode,
|
|
|
33285
33320
|
return mode === "coverage" ? coverage2 * 4 : mode === "proximity" ? proximity : mode === "phrase" ? phrase2 : coverage2 * 4 + proximity + phrase2;
|
|
33286
33321
|
}, "signals");
|
|
33287
33322
|
|
|
33288
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33323
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/services/messages-discovery.js
|
|
33289
33324
|
var MEANING_DEPTH = 100;
|
|
33290
33325
|
var RRF_K2 = 60;
|
|
33291
33326
|
var RERANK_DEPTH = 50;
|
|
@@ -33611,7 +33646,7 @@ var mixedWithReranker = /* @__PURE__ */ __name((head, scores) => {
|
|
|
33611
33646
|
})).sort((a, b) => b.mixed - a.mixed).map(({ hit }) => hit);
|
|
33612
33647
|
}, "mixedWithReranker");
|
|
33613
33648
|
|
|
33614
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33649
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/services/thread-context.js
|
|
33615
33650
|
var THREAD_BOUNDS = { maxHops: 8, maxMessages: 50, maxBytes: 65536, withinMs: 864e5 };
|
|
33616
33651
|
var bytes = /* @__PURE__ */ __name((items, links) => Buffer.byteLength(JSON.stringify({ items, links }), "utf8"), "bytes");
|
|
33617
33652
|
var threadBounds = /* @__PURE__ */ __name((options2 = {}) => {
|
|
@@ -33810,7 +33845,7 @@ var readThreadContext = /* @__PURE__ */ __name(async (store, account, chat, mess
|
|
|
33810
33845
|
return result;
|
|
33811
33846
|
}, "readThreadContext");
|
|
33812
33847
|
|
|
33813
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33848
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/services/messages-archive-search.js
|
|
33814
33849
|
var SEARCH_FILL_MS = 200;
|
|
33815
33850
|
var statsStore = /* @__PURE__ */ __name(async (store, account, request, messenger = {}) => {
|
|
33816
33851
|
const stop = Date.now() + SEARCH_FILL_MS;
|
|
@@ -33879,7 +33914,7 @@ var accountOf2 = /* @__PURE__ */ __name((hit) => {
|
|
|
33879
33914
|
}, "accountOf");
|
|
33880
33915
|
var keyOf4 = /* @__PURE__ */ __name(({ provider, account }) => `${provider}/${account}`, "keyOf");
|
|
33881
33916
|
|
|
33882
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33917
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/services/meaning-model.js
|
|
33883
33918
|
var meaningModel = /* @__PURE__ */ __name(async (store, env = process.env) => {
|
|
33884
33919
|
const chosen = chosenTextModel(env);
|
|
33885
33920
|
if (chosen.from === "chosen" || chosen.id !== DEFAULT_TEXT_MODEL)
|
|
@@ -33894,12 +33929,12 @@ var meaningModel = /* @__PURE__ */ __name(async (store, env = process.env) => {
|
|
|
33894
33929
|
return (counts.get(before2) ?? 0) > (counts.get(now) ?? 0) ? previous.id : current.id;
|
|
33895
33930
|
}, "meaningModel");
|
|
33896
33931
|
|
|
33897
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33932
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/services/pictures.js
|
|
33898
33933
|
import { createHash as createHash10 } from "node:crypto";
|
|
33899
33934
|
import { readFile as readFile2, stat as stat3 } from "node:fs/promises";
|
|
33900
33935
|
import { setTimeout as sleep4 } from "node:timers/promises";
|
|
33901
33936
|
|
|
33902
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33937
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/domain/models.js
|
|
33903
33938
|
var GROUP_SETTINGS = [
|
|
33904
33939
|
"allCanPin",
|
|
33905
33940
|
"onlyAdminsAdd",
|
|
@@ -33913,7 +33948,7 @@ var ADMIN_RIGHTS = ["read", "members", "admins", "info", "pin", "link", "post",
|
|
|
33913
33948
|
var senderIsMe = /* @__PURE__ */ __name((message, account) => message.outgoing === true || message.senderId !== null && String(message.senderId) === account, "senderIsMe");
|
|
33914
33949
|
var MEDIA_KINDS = ["photo", "video", "file", "audio", "link"];
|
|
33915
33950
|
|
|
33916
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33951
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/services/pictures.js
|
|
33917
33952
|
var PICTURE_MAX_BYTES = 25 * 1024 * 1024;
|
|
33918
33953
|
var PICTURE_FLOOR = 0.25;
|
|
33919
33954
|
var PAGE5 = 50;
|
|
@@ -33930,7 +33965,7 @@ var picturesService = /* @__PURE__ */ __name((deps) => {
|
|
|
33930
33965
|
const directory2 = imageModelsDirectory(deps.env);
|
|
33931
33966
|
if (!isImageModelInstalled(model2, directory2))
|
|
33932
33967
|
throw new CliError("not_found", missingModel(model2.id), { reason: "model.not-downloaded", model: model2.id });
|
|
33933
|
-
const { openPictureEmbedder } = await import("./embedder-
|
|
33968
|
+
const { openPictureEmbedder } = await import("./embedder-56NMRLC5.js");
|
|
33934
33969
|
return openPictureEmbedder(model2, directory2);
|
|
33935
33970
|
}, "open");
|
|
33936
33971
|
const embedder = /* @__PURE__ */ __name(() => {
|
|
@@ -34127,7 +34162,7 @@ var withPictures = /* @__PURE__ */ __name((messages, pictures) => ({
|
|
|
34127
34162
|
}, "search")
|
|
34128
34163
|
}), "withPictures");
|
|
34129
34164
|
|
|
34130
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34165
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/services/messages-meaning.js
|
|
34131
34166
|
var meaningText = /* @__PURE__ */ __name((question) => {
|
|
34132
34167
|
try {
|
|
34133
34168
|
const text2 = questionLookup(question) === void 0 ? question : questionText(question);
|
|
@@ -34206,7 +34241,7 @@ var meaningLane = /* @__PURE__ */ __name((deps) => async (question, accounts, sh
|
|
|
34206
34241
|
}
|
|
34207
34242
|
}, "meaningLane");
|
|
34208
34243
|
|
|
34209
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34244
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/services/messages-rerank.js
|
|
34210
34245
|
var rerankLane = /* @__PURE__ */ __name((deps) => {
|
|
34211
34246
|
const choice = deps.reranker ?? DEFAULT_RERANK_MODEL;
|
|
34212
34247
|
if (choice === "off")
|
|
@@ -34218,9 +34253,9 @@ var rerankLane = /* @__PURE__ */ __name((deps) => {
|
|
|
34218
34253
|
return { skipped: { reason: `${model.id} is not downloaded`, step: "models.download", model: model.id } };
|
|
34219
34254
|
try {
|
|
34220
34255
|
const warm = deps.embedders;
|
|
34221
|
-
const reranker = warm ? await warm.reranker(`rerank:${model.id}`, async () => (await import("./process-
|
|
34256
|
+
const reranker = warm ? await warm.reranker(`rerank:${model.id}`, async () => (await import("./process-7FABZ3T2.js")).openRerankerProcess(model, directory2, {
|
|
34222
34257
|
threads: defaultThreads()
|
|
34223
|
-
})) : await (await import("./rerank-
|
|
34258
|
+
})) : await (await import("./rerank-XV4E25ML.js")).openReranker(model, directory2);
|
|
34224
34259
|
return {
|
|
34225
34260
|
model: model.id,
|
|
34226
34261
|
score: /* @__PURE__ */ __name((question, passages) => reranker.score(plainWords(question), passages), "score"),
|
|
@@ -34240,7 +34275,7 @@ var rerankLane = /* @__PURE__ */ __name((deps) => {
|
|
|
34240
34275
|
};
|
|
34241
34276
|
}, "rerankLane");
|
|
34242
34277
|
|
|
34243
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34278
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/search/question-period.js
|
|
34244
34279
|
var DAY5 = 864e5;
|
|
34245
34280
|
var SPAN = { start: 0, end: 0 };
|
|
34246
34281
|
var phrase = /* @__PURE__ */ __name((source) => new RegExp(`(?<![\\p{L}\\p{N}])(?:${source})(?![\\p{L}\\p{N}])`, "giu"), "phrase");
|
|
@@ -34365,17 +34400,17 @@ var questionPeriod = /* @__PURE__ */ __name((text2, now, zone) => {
|
|
|
34365
34400
|
};
|
|
34366
34401
|
}, "questionPeriod");
|
|
34367
34402
|
|
|
34368
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34403
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/services/document-pictures.js
|
|
34369
34404
|
var openPictureEmbedderFor = /* @__PURE__ */ __name(async ({ env, command } = {}) => {
|
|
34370
34405
|
const model = imageModel(DEFAULT_IMAGE_MODEL);
|
|
34371
34406
|
const directory2 = imageModelsDirectory(env);
|
|
34372
34407
|
if (!isImageModelInstalled(model, directory2))
|
|
34373
34408
|
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 });
|
|
34374
|
-
const { openPictureEmbedder } = await import("./embedder-
|
|
34409
|
+
const { openPictureEmbedder } = await import("./embedder-56NMRLC5.js");
|
|
34375
34410
|
return openPictureEmbedder(model, directory2);
|
|
34376
34411
|
}, "openPictureEmbedderFor");
|
|
34377
34412
|
|
|
34378
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34413
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/services/document-source.js
|
|
34379
34414
|
var documentSource = /* @__PURE__ */ __name((note, accounts, profiles, file2) => {
|
|
34380
34415
|
const metadata = note.frontMatter;
|
|
34381
34416
|
const account = accounts.find(({ id: id2 }) => String(id2) === note.folderId);
|
|
@@ -34390,7 +34425,7 @@ var documentSource = /* @__PURE__ */ __name((note, accounts, profiles, file2) =>
|
|
|
34390
34425
|
};
|
|
34391
34426
|
}, "documentSource");
|
|
34392
34427
|
|
|
34393
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34428
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/embeddings/keys.js
|
|
34394
34429
|
var endpointKeyName = /* @__PURE__ */ __name((baseUrl) => {
|
|
34395
34430
|
const host = new URL(baseUrl).host;
|
|
34396
34431
|
return ["openai", "anthropic"].includes(host) ? `endpoint:${host}` : host;
|
|
@@ -34423,7 +34458,7 @@ var embeddingKeys = /* @__PURE__ */ __name((app, env = process.env, keyring) =>
|
|
|
34423
34458
|
};
|
|
34424
34459
|
}, "embeddingKeys");
|
|
34425
34460
|
|
|
34426
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34461
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/models/openai.js
|
|
34427
34462
|
var options = strictObject({
|
|
34428
34463
|
temperature: range(0, 2),
|
|
34429
34464
|
top_p: range(0, 1),
|
|
@@ -34477,7 +34512,7 @@ var openai = {
|
|
|
34477
34512
|
}), "complete")
|
|
34478
34513
|
};
|
|
34479
34514
|
|
|
34480
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34515
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/models/index.js
|
|
34481
34516
|
var modelGateway = /* @__PURE__ */ __name((deps) => ({
|
|
34482
34517
|
complete: /* @__PURE__ */ __name(async (request) => {
|
|
34483
34518
|
if (deps.signal?.aborted)
|
|
@@ -34492,7 +34527,7 @@ var modelGateway = /* @__PURE__ */ __name((deps) => ({
|
|
|
34492
34527
|
if (!adapter && target2.provider === "openai")
|
|
34493
34528
|
adapter = openai;
|
|
34494
34529
|
if (!adapter && target2.provider === "anthropic")
|
|
34495
|
-
adapter = (await import("./anthropic-
|
|
34530
|
+
adapter = (await import("./anthropic-FZC4BS7T.js")).anthropic;
|
|
34496
34531
|
if (!adapter)
|
|
34497
34532
|
throw new CliError("validation_error", `no model adapter for ${target2.provider}`);
|
|
34498
34533
|
if (request.images !== void 0 && adapter.images !== true)
|
|
@@ -34547,7 +34582,7 @@ var modelGateway = /* @__PURE__ */ __name((deps) => ({
|
|
|
34547
34582
|
}, "complete")
|
|
34548
34583
|
}), "modelGateway");
|
|
34549
34584
|
|
|
34550
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34585
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/services/enrichment-setting.js
|
|
34551
34586
|
var SECTION = "enrichment";
|
|
34552
34587
|
var ENRICHMENT_PROVIDERS = ["openai", "anthropic"];
|
|
34553
34588
|
var DEFAULT_BASE_URLS = {
|
|
@@ -34622,7 +34657,7 @@ var costOf = /* @__PURE__ */ __name((usage, setting) => {
|
|
|
34622
34657
|
return price ? Math.round((usage.input * price.input + usage.output * price.output) * 1e6) / 1e6 : null;
|
|
34623
34658
|
}, "costOf");
|
|
34624
34659
|
|
|
34625
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34660
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/services/enrichment.js
|
|
34626
34661
|
var ENRICH_PER_RUN = 600;
|
|
34627
34662
|
var MAX_LINE = 400;
|
|
34628
34663
|
var line2 = pipe(unknown(), transform((value) => typeof value === "string" ? value.replace(/\s+/g, " ").trim().slice(0, MAX_LINE) : ""));
|
|
@@ -34698,7 +34733,7 @@ var enrichmentState = /* @__PURE__ */ __name(async (store, env, estimateFor, key
|
|
|
34698
34733
|
};
|
|
34699
34734
|
}, "enrichmentState");
|
|
34700
34735
|
|
|
34701
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34736
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/services/notes-title-tier.js
|
|
34702
34737
|
var plainQueryWords = /* @__PURE__ */ __name((query) => {
|
|
34703
34738
|
let root;
|
|
34704
34739
|
try {
|
|
@@ -34725,7 +34760,7 @@ var titleTiers = /* @__PURE__ */ __name((hits, words3) => {
|
|
|
34725
34760
|
return [...hits].sort((a, b) => rank(a) - rank(b));
|
|
34726
34761
|
}, "titleTiers");
|
|
34727
34762
|
|
|
34728
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34763
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/services/notes-search.js
|
|
34729
34764
|
var storeQuery = /* @__PURE__ */ __name(async (store, text2, { exact, timezone } = {}) => resolvedQuery(store, parsedQuery(text2, exact), timezone), "storeQuery");
|
|
34730
34765
|
var parsedQuery = /* @__PURE__ */ __name((text2, exact) => validateFields(parseLucene(text2, { ...SEARCH_QUERY, defaultField: exact ? "exact" : "text" })).root, "parsedQuery");
|
|
34731
34766
|
var resolvedQuery = /* @__PURE__ */ __name(async (store, root, timezone) => {
|
|
@@ -35150,7 +35185,7 @@ var searchNotesOf = /* @__PURE__ */ __name(async (store, account, text2, { accou
|
|
|
35150
35185
|
};
|
|
35151
35186
|
}, "searchNotesOf");
|
|
35152
35187
|
|
|
35153
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35188
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/services/events-search.js
|
|
35154
35189
|
var MAX_EVENTS_OFFSET = 1e3;
|
|
35155
35190
|
var iso3 = /* @__PURE__ */ __name((at) => at === null ? null : new Date(at).toISOString(), "iso");
|
|
35156
35191
|
var accountIdsOf = /* @__PURE__ */ __name(async (store, accounts) => {
|
|
@@ -35268,7 +35303,7 @@ var searchEvents = /* @__PURE__ */ __name(async (store, query, { limit = 20, off
|
|
|
35268
35303
|
};
|
|
35269
35304
|
}, "searchEvents");
|
|
35270
35305
|
|
|
35271
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35306
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/services/search-all-business.js
|
|
35272
35307
|
var OWN_BUSINESS = { provider: "business", account: INTERNAL_NOTES };
|
|
35273
35308
|
var BUSINESS_WORDS_ONLY = "invoices, payments, orders, contracts, subscriptions, products and wallets are found by the words of their numbers and names only";
|
|
35274
35309
|
var placeOf = /* @__PURE__ */ __name(({ source, imported }) => source ?? (imported === void 0 ? OWN_BUSINESS : { provider: imported, account: "" }), "placeOf");
|
|
@@ -35299,7 +35334,7 @@ var searchBusiness = /* @__PURE__ */ __name(async (store, { words: words3, anyWo
|
|
|
35299
35334
|
};
|
|
35300
35335
|
}, "searchBusiness");
|
|
35301
35336
|
|
|
35302
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35337
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/services/meeting-hit-search.js
|
|
35303
35338
|
var resolveMeetingSelection = /* @__PURE__ */ __name(async (store, request) => {
|
|
35304
35339
|
const { project, tag, topic, ...input } = request;
|
|
35305
35340
|
input.signal?.throwIfAborted();
|
|
@@ -35337,7 +35372,7 @@ var resolveMeetingSelection = /* @__PURE__ */ __name(async (store, request) => {
|
|
|
35337
35372
|
return { input, selection };
|
|
35338
35373
|
}, "resolveMeetingSelection");
|
|
35339
35374
|
|
|
35340
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35375
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/services/search-all-meetings.js
|
|
35341
35376
|
var MOST_HITS_PER_MEETING = 3;
|
|
35342
35377
|
var PAGE_ROWS = 200;
|
|
35343
35378
|
var MOST_PAGES = 25;
|
|
@@ -35565,7 +35600,7 @@ var titleItem = /* @__PURE__ */ __name((account, meeting, query) => ({
|
|
|
35565
35600
|
foundBy: ["title"]
|
|
35566
35601
|
}), "titleItem");
|
|
35567
35602
|
|
|
35568
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35603
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/services/search-harder.js
|
|
35569
35604
|
var SECTION2 = "search_harder";
|
|
35570
35605
|
var HARDER_MODELS = {
|
|
35571
35606
|
anthropic: "claude-haiku-5-5",
|
|
@@ -35785,7 +35820,7 @@ var reorderHarder = /* @__PURE__ */ __name(async (question, hits, { laterPage, a
|
|
|
35785
35820
|
};
|
|
35786
35821
|
}, "reorderHarder");
|
|
35787
35822
|
|
|
35788
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35823
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/services/search-all.js
|
|
35789
35824
|
var RESOURCES_SEARCHED = ["messages", "mail", "notes", "events", "crm", "business", "meetings"];
|
|
35790
35825
|
var refusal = /* @__PURE__ */ __name((error, text2) => {
|
|
35791
35826
|
const { reason, span } = error.details ?? {};
|
|
@@ -36159,7 +36194,7 @@ var insidePeriodFirst = /* @__PURE__ */ __name((ordered, period) => {
|
|
|
36159
36194
|
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);
|
|
36160
36195
|
}, "insidePeriodFirst");
|
|
36161
36196
|
|
|
36162
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36197
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/services/server-search.js
|
|
36163
36198
|
var SERVER_SEARCH_KEY = "messages.server-search";
|
|
36164
36199
|
var SERVER_BOUNDS = { timeMs: 5e3, perCall: 100, maxCalls: 3, textBytes: 262144 };
|
|
36165
36200
|
var DEFAULT_BACKEND = "both";
|
|
@@ -36348,7 +36383,7 @@ var searchServer = /* @__PURE__ */ __name(async (deps, request) => {
|
|
|
36348
36383
|
return { report, sources };
|
|
36349
36384
|
}, "searchServer");
|
|
36350
36385
|
|
|
36351
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36386
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/services/messages.js
|
|
36352
36387
|
var DELETE_AT_ONCE = 10;
|
|
36353
36388
|
var filesOf = /* @__PURE__ */ __name(({ attachments }) => {
|
|
36354
36389
|
const files = fileLinks(attachments);
|
|
@@ -36788,7 +36823,7 @@ var checkMediaOptions = /* @__PURE__ */ __name((messenger, asked, attachments) =
|
|
|
36788
36823
|
throw new CliError("validation_error", `${MEDIA_FLAGS[first2]} needs a --photo or --file`);
|
|
36789
36824
|
}, "checkMediaOptions");
|
|
36790
36825
|
|
|
36791
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36826
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/domain/channel-tags.js
|
|
36792
36827
|
var CHANNEL_TAG_RULES_VERSION = "keywords-v1";
|
|
36793
36828
|
var RULES2 = {
|
|
36794
36829
|
ai: [/\b(ai|gpt|llm|machine learning|artificial intelligence)\b/iu, /нейросет|искусственн/iu],
|
|
@@ -36803,7 +36838,7 @@ var classifyChannel = /* @__PURE__ */ __name((metadata) => Object.entries(RULES2
|
|
|
36803
36838
|
return fields.length ? [{ tag, score: fields.length / 3, fields }] : [];
|
|
36804
36839
|
}), "classifyChannel");
|
|
36805
36840
|
|
|
36806
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36841
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/services/metadata.js
|
|
36807
36842
|
var metadataService = /* @__PURE__ */ __name((deps) => {
|
|
36808
36843
|
const held = /* @__PURE__ */ __name(async (reference, { includeLeft = false } = {}) => {
|
|
36809
36844
|
const store = await deps.store();
|
|
@@ -36889,7 +36924,7 @@ var metadataService = /* @__PURE__ */ __name((deps) => {
|
|
|
36889
36924
|
};
|
|
36890
36925
|
}, "metadataService");
|
|
36891
36926
|
|
|
36892
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36927
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/moderation/run.js
|
|
36893
36928
|
var FIRST_LOOK_MS = 24 * 36e5;
|
|
36894
36929
|
var moderateWith = /* @__PURE__ */ __name(async (run) => {
|
|
36895
36930
|
const { chatId, title, rules, point, since, dryRun } = run;
|
|
@@ -36926,7 +36961,7 @@ var moderateWith = /* @__PURE__ */ __name(async (run) => {
|
|
|
36926
36961
|
return { chatId, rows, notes };
|
|
36927
36962
|
}, "moderateWith");
|
|
36928
36963
|
|
|
36929
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36964
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/services/moderation.js
|
|
36930
36965
|
var moderationService = /* @__PURE__ */ __name((deps) => {
|
|
36931
36966
|
const file2 = /* @__PURE__ */ __name(() => new ModerationRules(moderationPathFor(deps.messenger.app, deps.profile ?? "default", deps.env ?? process.env)), "file");
|
|
36932
36967
|
const group = /* @__PURE__ */ __name(async (chat) => {
|
|
@@ -37004,7 +37039,7 @@ var moderatorOf = /* @__PURE__ */ __name((adapter, deps) => ({
|
|
|
37004
37039
|
}, "removePerson")
|
|
37005
37040
|
}), "moderatorOf");
|
|
37006
37041
|
|
|
37007
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37042
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/services/private-people.js
|
|
37008
37043
|
var noteItem = /* @__PURE__ */ __name((provider, note) => ({
|
|
37009
37044
|
id: note.id,
|
|
37010
37045
|
contact: formatReference({ type: "contact", provider, id: note.personId }),
|
|
@@ -37048,7 +37083,7 @@ var privatePeopleService = /* @__PURE__ */ __name((deps) => {
|
|
|
37048
37083
|
};
|
|
37049
37084
|
}, "privatePeopleService");
|
|
37050
37085
|
|
|
37051
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37086
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/services/rankings.js
|
|
37052
37087
|
var empty = /* @__PURE__ */ __name(() => ({
|
|
37053
37088
|
total: 0,
|
|
37054
37089
|
population: 0,
|
|
@@ -37304,14 +37339,14 @@ var rankingsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
37304
37339
|
}, "evidence")
|
|
37305
37340
|
}), "rankingsService");
|
|
37306
37341
|
|
|
37307
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37308
|
-
var FIELDS = ["date", "chat", "kind"];
|
|
37342
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/services/reply-stats.js
|
|
37343
|
+
var FIELDS = ["date", "chat", "kind", "muted"];
|
|
37309
37344
|
var WAITING_TAIL = 100;
|
|
37310
37345
|
var plainOnly = /* @__PURE__ */ __name((text2, command) => {
|
|
37311
37346
|
if (text2 === void 0)
|
|
37312
37347
|
return;
|
|
37313
37348
|
const refuse = /* @__PURE__ */ __name(() => {
|
|
37314
|
-
throw new CliError("validation_error", `${command} reads date:, chat: and
|
|
37349
|
+
throw new CliError("validation_error", `${command} reads date:, chat:, kind: and muted: terms, AND-ed \u2014 not words, other fields, OR or NOT`, { reason: "query.unsupported-field" });
|
|
37315
37350
|
}, "refuse");
|
|
37316
37351
|
const visit = /* @__PURE__ */ __name((node) => {
|
|
37317
37352
|
if (node.kind === "boolean")
|
|
@@ -37338,7 +37373,14 @@ var scopeOf3 = /* @__PURE__ */ __name((root, accounts) => {
|
|
|
37338
37373
|
scope.chats.push(chat);
|
|
37339
37374
|
else if (node.field === "kind")
|
|
37340
37375
|
scope.kinds.push(node.value.toLowerCase());
|
|
37341
|
-
else if (
|
|
37376
|
+
else if (node.field === "muted") {
|
|
37377
|
+
const muted = node.value.toLowerCase() === "true";
|
|
37378
|
+
if (scope.muted !== void 0 && scope.muted !== muted)
|
|
37379
|
+
throw new CliError("validation_error", "muted:true and muted:false cannot both hold", {
|
|
37380
|
+
reason: "query.conflict"
|
|
37381
|
+
});
|
|
37382
|
+
scope.muted = muted;
|
|
37383
|
+
} else if (date2) {
|
|
37342
37384
|
if (date2.lower !== void 0) {
|
|
37343
37385
|
const lower = date2.lower + (date2.lower_inclusive ? 0 : 1);
|
|
37344
37386
|
scope.since = Math.max(scope.since ?? lower, lower);
|
|
@@ -37431,7 +37473,7 @@ var replyStatsService = /* @__PURE__ */ __name((deps) => {
|
|
|
37431
37473
|
};
|
|
37432
37474
|
}, "replyStatsService");
|
|
37433
37475
|
|
|
37434
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37476
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/services/searches.js
|
|
37435
37477
|
var savedSearchItem = /* @__PURE__ */ __name((one) => ({
|
|
37436
37478
|
id: one.id,
|
|
37437
37479
|
name: one.name,
|
|
@@ -37560,7 +37602,7 @@ var searchesService = /* @__PURE__ */ __name((deps) => {
|
|
|
37560
37602
|
};
|
|
37561
37603
|
}, "searchesService");
|
|
37562
37604
|
|
|
37563
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37605
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/services/tags.js
|
|
37564
37606
|
var TAGGING_QUERY = {
|
|
37565
37607
|
entity: "tagging",
|
|
37566
37608
|
backend: "sql",
|
|
@@ -37644,7 +37686,7 @@ var tagsService = /* @__PURE__ */ __name((deps) => {
|
|
|
37644
37686
|
};
|
|
37645
37687
|
}, "tagsService");
|
|
37646
37688
|
|
|
37647
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37689
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/services/topics.js
|
|
37648
37690
|
var actionOf = /* @__PURE__ */ __name(({ title, closed, pinned, hidden, icon }) => {
|
|
37649
37691
|
const set = [closed, pinned, hidden].filter((one) => one !== void 0).length;
|
|
37650
37692
|
if (title !== void 0 || icon !== void 0 || set !== 1)
|
|
@@ -37843,10 +37885,10 @@ var topicsService = /* @__PURE__ */ __name((deps) => {
|
|
|
37843
37885
|
};
|
|
37844
37886
|
}, "topicsService");
|
|
37845
37887
|
|
|
37846
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37888
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/crm/sync.js
|
|
37847
37889
|
var CLOCK_MARGIN = 60 * 6e4;
|
|
37848
37890
|
|
|
37849
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37891
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/crm/writer.js
|
|
37850
37892
|
var CRM_ASSIGN_OTHERS_KEY = "crm.assign-others";
|
|
37851
37893
|
var CRM_WRITE_DEFAULTS = {
|
|
37852
37894
|
"deals.delete": "ask",
|
|
@@ -37854,7 +37896,7 @@ var CRM_WRITE_DEFAULTS = {
|
|
|
37854
37896
|
[CRM_ASSIGN_OTHERS_KEY]: "deny"
|
|
37855
37897
|
};
|
|
37856
37898
|
|
|
37857
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37899
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/services/evidence.js
|
|
37858
37900
|
import { createHash as createHash11, randomUUID as randomUUID6 } from "node:crypto";
|
|
37859
37901
|
var hash2 = /* @__PURE__ */ __name((value) => createHash11("sha256").update(JSON.stringify(value)).digest("hex"), "hash");
|
|
37860
37902
|
var positive2 = /* @__PURE__ */ __name((value, name, minimum = 1) => {
|
|
@@ -37928,7 +37970,7 @@ var prepareEvidencePacket = /* @__PURE__ */ __name(({ kind, source, page, limits
|
|
|
37928
37970
|
return { ...content, id: randomUUID6(), fingerprint: hash2(content) };
|
|
37929
37971
|
}, "prepareEvidencePacket");
|
|
37930
37972
|
|
|
37931
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37973
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/services/evidence-read.js
|
|
37932
37974
|
var readEvidencePacket = /* @__PURE__ */ __name(async (store, account, { chat, limit, before: before2 }, messenger = {}) => {
|
|
37933
37975
|
if (!Number.isSafeInteger(limit) || limit < 1 || limit > 100)
|
|
37934
37976
|
throw new CliError("validation_error", "evidence message limit must be an integer from 1 to 100");
|
|
@@ -37948,7 +37990,7 @@ var readEvidencePacket = /* @__PURE__ */ __name(async (store, account, { chat, l
|
|
|
37948
37990
|
return { ...packet, nextBeforeId: older && last ? last.id : null };
|
|
37949
37991
|
}, "readEvidencePacket");
|
|
37950
37992
|
|
|
37951
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37993
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/services/meeting-project-discovery.js
|
|
37952
37994
|
var scopeKeys = [
|
|
37953
37995
|
"accountId",
|
|
37954
37996
|
"meetingId",
|
|
@@ -37970,7 +38012,7 @@ var optionKeys = /* @__PURE__ */ new Set([
|
|
|
37970
38012
|
"maxVocabularyReadBytes"
|
|
37971
38013
|
]);
|
|
37972
38014
|
|
|
37973
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38015
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/services/text-model-choice.js
|
|
37974
38016
|
import { createHash as createHash12 } from "node:crypto";
|
|
37975
38017
|
import { existsSync as existsSync3 } from "node:fs";
|
|
37976
38018
|
var useTextModel = /* @__PURE__ */ __name(async (id2, { env, command }) => {
|
|
@@ -38101,7 +38143,7 @@ var addCustomTextModel = /* @__PURE__ */ __name(async (id2, payload, { env, fetc
|
|
|
38101
38143
|
return { ...checked2.output, custom: true };
|
|
38102
38144
|
}, "addCustomTextModel");
|
|
38103
38145
|
|
|
38104
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38146
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/context/communication-selection.js
|
|
38105
38147
|
var communicationFields = {
|
|
38106
38148
|
sources: pipe(array(strictObject({
|
|
38107
38149
|
id: pipe(string(), regex(/^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$/)),
|
|
@@ -38133,7 +38175,7 @@ var communicationRequest = /* @__PURE__ */ __name((value, preparationAfter) => {
|
|
|
38133
38175
|
return { ...input, after, before: before2 };
|
|
38134
38176
|
}, "communicationRequest");
|
|
38135
38177
|
|
|
38136
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38178
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/services/meeting-preparation-validation.js
|
|
38137
38179
|
var MEETING_PREPARATION_LIMITS = {
|
|
38138
38180
|
meetings: { min: 1, max: 20, default: 5 },
|
|
38139
38181
|
cues: { min: 1, max: 100, default: 10 },
|
|
@@ -38206,7 +38248,7 @@ var validateMeetingPreparationRequest = /* @__PURE__ */ __name((externalId, orig
|
|
|
38206
38248
|
};
|
|
38207
38249
|
}, "validateMeetingPreparationRequest");
|
|
38208
38250
|
|
|
38209
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38251
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/services/meeting-communications-selection.js
|
|
38210
38252
|
var validatePreparationCommunications = /* @__PURE__ */ __name((section, request, after) => {
|
|
38211
38253
|
const fail2 = /* @__PURE__ */ __name(() => {
|
|
38212
38254
|
throw new CliError("invalid_response", "Preparation communications returned another selection or invalid evidence");
|
|
@@ -38254,7 +38296,7 @@ var validatePreparationCommunications = /* @__PURE__ */ __name((section, request
|
|
|
38254
38296
|
}
|
|
38255
38297
|
}, "validatePreparationCommunications");
|
|
38256
38298
|
|
|
38257
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38299
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/services/package-upgrade.js
|
|
38258
38300
|
var upgradePackage = /* @__PURE__ */ __name(async ({ current, command, packageName, check: check2 }, ports) => {
|
|
38259
38301
|
const installer = ports.installer();
|
|
38260
38302
|
const argv = updateCommand(installer, packageName);
|
|
@@ -38319,7 +38361,7 @@ var dayAfter = /* @__PURE__ */ __name((published) => {
|
|
|
38319
38361
|
return Number.isNaN(time) ? null : new Date(time + 24 * 60 * 60 * 1e3).toISOString();
|
|
38320
38362
|
}, "dayAfter");
|
|
38321
38363
|
|
|
38322
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38364
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/services/index.js
|
|
38323
38365
|
var servicesFor = /* @__PURE__ */ __name((deps) => {
|
|
38324
38366
|
const pictures = picturesService(deps);
|
|
38325
38367
|
const base = {
|
|
@@ -38356,7 +38398,7 @@ var servicesFor = /* @__PURE__ */ __name((deps) => {
|
|
|
38356
38398
|
return deps.messenger.services ? { ...base, ...deps.messenger.services(base, deps) } : base;
|
|
38357
38399
|
}, "servicesFor");
|
|
38358
38400
|
|
|
38359
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38401
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/background/relay.js
|
|
38360
38402
|
import { createHash as createHash13 } from "node:crypto";
|
|
38361
38403
|
import { chmodSync, lstatSync, mkdirSync as mkdirSync6, rmSync as rmSync2 } from "node:fs";
|
|
38362
38404
|
import { createConnection, createServer } from "node:net";
|
|
@@ -38577,7 +38619,7 @@ var relayCommand = /* @__PURE__ */ __name((path, request, options2) => new Promi
|
|
|
38577
38619
|
}, () => finish({ error: stopped() }));
|
|
38578
38620
|
}), "relayCommand");
|
|
38579
38621
|
|
|
38580
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38622
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-relay.js
|
|
38581
38623
|
var lentConnection = /* @__PURE__ */ __name((connection, watchers) => throughWrapper(connection, {
|
|
38582
38624
|
close: /* @__PURE__ */ __name(async () => {
|
|
38583
38625
|
}, "close"),
|