@wirecat/tg-cli 0.106.0 → 0.108.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/dist/bin/tg.js +2 -2
- package/dist/bundle/{adapter-TIGHDHUK.js → adapter-YFWRJWL5.js} +37 -37
- package/dist/bundle/{all-profiles-N4DLSGWY.js → all-profiles-GQIZSF4W.js} +5 -5
- package/dist/bundle/{anthropic-D2T2QRLR.js → anthropic-BKWEDKPU.js} +3 -3
- package/dist/bundle/{app-server-FZTDNSPB.js → app-server-RJV7ICLH.js} +34 -34
- package/dist/bundle/{bot-api-OMUV6EIK.js → bot-api-2PAH2JZ3.js} +38 -38
- package/dist/bundle/{bot-history-P2MWYLXW.js → bot-history-DPPZ43F4.js} +10 -10
- package/dist/bundle/{bun-UA5PRMLC.js → bun-Q7COX3Z5.js} +2 -2
- package/dist/bundle/{bun-sqlite-XVRVJ7A2.js → bun-sqlite-YI4AYZXO.js} +2 -2
- package/dist/bundle/{chunk-ELQ5ORY2.js → chunk-26PWIQPP.js} +195 -195
- package/dist/bundle/{chunk-R2F6U4F3.js → chunk-3562DVQ7.js} +7 -7
- package/dist/bundle/{chunk-QWTHUKS4.js → chunk-3GXKJKIC.js} +4 -4
- package/dist/bundle/{chunk-XX37LKXG.js → chunk-3HYDKCXB.js} +4 -4
- package/dist/bundle/{chunk-ID6TO5P5.js → chunk-4RDMNNVO.js} +14 -9
- package/dist/bundle/{chunk-XXLAGQDN.js → chunk-5HPXENE5.js} +1 -1
- package/dist/bundle/{chunk-T3ZLOMWW.js → chunk-5P27JGGA.js} +4 -4
- package/dist/bundle/{chunk-WLGQTYIO.js → chunk-6MZ2ZBX4.js} +2 -2
- package/dist/bundle/{chunk-DC7O7TVJ.js → chunk-6QTUYMGX.js} +1 -1
- package/dist/bundle/{chunk-JOSUY2NX.js → chunk-76OSISA3.js} +1 -1
- package/dist/bundle/{chunk-LSP2NCNL.js → chunk-77OOX2OE.js} +47 -47
- package/dist/bundle/{chunk-C2MKA7SX.js → chunk-AOUB2QFP.js} +1 -1
- package/dist/bundle/{recognize-T5TPTI6P.js → chunk-AS2BVZU3.js} +6 -6
- package/dist/bundle/{chunk-LGKLQE2I.js → chunk-B7TFWNKJ.js} +1 -1
- package/dist/bundle/{chunk-XFXTB522.js → chunk-BL72ZIBV.js} +1 -1
- package/dist/bundle/{chunk-C6NTI37N.js → chunk-BOSMBW4I.js} +10 -10
- package/dist/bundle/{chunk-2J3TUUCO.js → chunk-BT6PWDM6.js} +2 -2
- package/dist/bundle/{chunk-VYFKWPIS.js → chunk-CVWF3BFK.js} +42 -42
- package/dist/bundle/{chunk-E5Z4FGRD.js → chunk-CZANI3DM.js} +20 -20
- package/dist/bundle/{chunk-ADLIUGL2.js → chunk-D6DBVPES.js} +2 -2
- package/dist/bundle/{chunk-XMKKBDEW.js → chunk-DNOJKQXQ.js} +289 -264
- package/dist/bundle/{chunk-AQSKZMBD.js → chunk-DUWTG2GE.js} +7 -7
- package/dist/bundle/{chunk-PEIDCYF5.js → chunk-EBB7RFCW.js} +1 -1
- package/dist/bundle/{chunk-FO33YFWF.js → chunk-EWL3ZFOI.js} +5 -5
- package/dist/bundle/{chunk-QI75LME5.js → chunk-F67VPIJL.js} +26 -26
- package/dist/bundle/{chunk-DECFDUNW.js → chunk-KQFR7ZAA.js} +11 -11
- package/dist/bundle/{chunk-EPKGNUOZ.js → chunk-KZPZFPGB.js} +20 -20
- package/dist/bundle/{chunk-67GS5BZI.js → chunk-LY2LFJMU.js} +92 -92
- package/dist/bundle/{chunk-7P6ZCUPN.js → chunk-LYLGLFWY.js} +2 -2
- package/dist/bundle/{chunk-T5OFRHDS.js → chunk-NCXCBVHO.js} +5 -5
- package/dist/bundle/{chunk-GD6BOLZP.js → chunk-OB5PPPXH.js} +11 -6
- package/dist/bundle/{chunk-6BQUCCBD.js → chunk-ON67U6WV.js} +4 -4
- package/dist/bundle/{chunk-T4UTTH3A.js → chunk-PCMW3PW6.js} +1 -1
- package/dist/bundle/{chunk-2GQCWNX5.js → chunk-PQHYM2XC.js} +1 -1
- package/dist/bundle/{chunk-PHPXTRMS.js → chunk-QVIT6SQ5.js} +1888 -1562
- package/dist/bundle/{chunk-EW3Y44NV.js → chunk-R5YOKYTE.js} +9 -9
- package/dist/bundle/{chunk-WPRLG5SL.js → chunk-REI5TPS3.js} +8 -8
- package/dist/bundle/{chunk-EUTOFAUT.js → chunk-SONKULUF.js} +2 -2
- package/dist/bundle/{chunk-GHAQXUH3.js → chunk-TVA3NXXO.js} +1 -1
- package/dist/bundle/{chunk-QQYM26DA.js → chunk-VK2YLSK7.js} +1 -1
- package/dist/bundle/{chunk-BLWCHZCW.js → chunk-WEDWIXIC.js} +2 -2
- package/dist/bundle/{chunk-V7OXTQBY.js → chunk-WKSLGPZQ.js} +3 -3
- package/dist/bundle/{chunk-XQV7EMAI.js → chunk-WUF64WOG.js} +4 -4
- package/dist/bundle/{chunk-PAHBZPZN.js → chunk-XZXOGHU5.js} +70 -46
- package/dist/bundle/{chunk-6XXI3AHJ.js → chunk-YJ6GFFEE.js} +1 -1
- package/dist/bundle/{chunk-ONK66VVG.js → chunk-ZHHVNTBJ.js} +1 -1
- package/dist/bundle/{chunk-BZUO2KFV.js → chunk-ZYBDAZFO.js} +1 -1
- package/dist/bundle/{command-contract-N5FA573V.js → command-contract-5GJV6EHG.js} +12 -12
- package/dist/bundle/decode-ZFAFVFWX.js +159 -0
- package/dist/bundle/{echarts-WLPTUTMR.js → echarts-SVXNTKGV.js} +2 -2
- package/dist/bundle/{embed-IALJOWZJ.js → embed-V755YE7O.js} +3 -3
- package/dist/bundle/{embedder-ZY2TS2XJ.js → embedder-MQAPNQBH.js} +6 -6
- package/dist/bundle/{entry-67RA75VS.js → entry-ULQ3VOMQ.js} +3 -3
- package/dist/bundle/{first-run-QN3UUBJW.js → first-run-64BTWXDR.js} +5 -5
- package/dist/bundle/{first-screen-FK4ZJQJY.js → first-screen-YZCH4TEV.js} +13 -13
- package/dist/bundle/{identity-X3YA364I.js → identity-PW45VBUU.js} +1 -1
- package/dist/bundle/{instructions-355MU4CT.js → instructions-G3ZUIRRH.js} +1 -1
- package/dist/bundle/{node-UGJWZLVB.js → node-IDJXLZSX.js} +2 -2
- package/dist/bundle/node-sqlite-W22J37MG.js +62 -0
- package/dist/bundle/{oauth-EZGVL3PP.js → oauth-Q52LBXDE.js} +4 -4
- package/dist/bundle/{open-ANYJ5AKD.js → open-YLD7VHEC.js} +1 -1
- package/dist/bundle/{process-JVAQXITD.js → process-OBESF2XG.js} +1 -1
- package/dist/bundle/{program-QGSZY5SZ.js → program-EBMWHOKQ.js} +40 -40
- package/dist/bundle/{prompt-EWF4ZSJO.js → prompt-FHHQF3MG.js} +2 -2
- package/dist/bundle/recognize-QNHKHGKM.js +22 -0
- package/dist/bundle/{remote-KOAALKIC.js → remote-RVZWRCCT.js} +4 -4
- package/dist/bundle/{rerank-MCXFZFRH.js → rerank-KG2USEME.js} +4 -4
- package/dist/bundle/{serve-QEVXXJ2G.js → serve-I4MJKEQ4.js} +6 -6
- package/dist/bundle/server-AXMWFPNT.js +55 -0
- package/dist/bundle/{server-Y3ZLG44J.js → server-GV7SV3L6.js} +26 -26
- package/dist/bundle/{state-F2ZJV2VP.js → state-AJKHWFBU.js} +3 -3
- package/dist/bundle/{store-QX7HBTOW.js → store-L3HFSSGJ.js} +7 -7
- package/dist/bundle/store-maintenance-command-Y22ARSDR.js +44 -0
- package/dist/bundle/tg.js +2 -2
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +2 -2
- package/dist/bundle/node-sqlite-FJFIOC3K.js +0 -46
- package/dist/bundle/server-6QM3GFZX.js +0 -55
- package/dist/bundle/store-maintenance-command-ZBOQSTHY.js +0 -44
|
@@ -38,23 +38,23 @@ import {
|
|
|
38
38
|
typedCommand,
|
|
39
39
|
vectorModelKey,
|
|
40
40
|
withAttempt
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-77OOX2OE.js";
|
|
42
42
|
import {
|
|
43
43
|
isCliFailure
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-DUWTG2GE.js";
|
|
45
45
|
import {
|
|
46
46
|
isNewer,
|
|
47
47
|
updateCommand
|
|
48
48
|
} from "./chunk-VMU4SGCE.js";
|
|
49
49
|
import {
|
|
50
50
|
readOnlyLockOf
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-PCMW3PW6.js";
|
|
52
52
|
import {
|
|
53
53
|
MAX_MODEL_IMAGE_BYTES
|
|
54
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-6QTUYMGX.js";
|
|
55
55
|
import {
|
|
56
56
|
remoteKey
|
|
57
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-LYLGLFWY.js";
|
|
58
58
|
import {
|
|
59
59
|
Unzip,
|
|
60
60
|
UnzipInflate,
|
|
@@ -65,11 +65,11 @@ import {
|
|
|
65
65
|
placedText,
|
|
66
66
|
runEmbedders,
|
|
67
67
|
textModelsDirectory
|
|
68
|
-
} from "./chunk-
|
|
68
|
+
} from "./chunk-EWL3ZFOI.js";
|
|
69
69
|
import {
|
|
70
70
|
installFiles,
|
|
71
71
|
megabytes
|
|
72
|
-
} from "./chunk-
|
|
72
|
+
} from "./chunk-3HYDKCXB.js";
|
|
73
73
|
import {
|
|
74
74
|
AGENDA_COLUMNS,
|
|
75
75
|
CHAT_COLUMNS,
|
|
@@ -137,7 +137,7 @@ import {
|
|
|
137
137
|
threadConversation,
|
|
138
138
|
validateAst,
|
|
139
139
|
validateFields
|
|
140
|
-
} from "./chunk-
|
|
140
|
+
} from "./chunk-QVIT6SQ5.js";
|
|
141
141
|
import {
|
|
142
142
|
EVENT_QUERY,
|
|
143
143
|
MEETING_PROJECT_EVIDENCE_QUERY,
|
|
@@ -181,21 +181,21 @@ import {
|
|
|
181
181
|
validateQuery,
|
|
182
182
|
walkQuery,
|
|
183
183
|
zonedMoment
|
|
184
|
-
} from "./chunk-
|
|
184
|
+
} from "./chunk-XZXOGHU5.js";
|
|
185
185
|
import {
|
|
186
186
|
DEFAULT_STEMMERS,
|
|
187
187
|
createStemmer,
|
|
188
188
|
fold,
|
|
189
189
|
normalize
|
|
190
|
-
} from "./chunk-
|
|
190
|
+
} from "./chunk-3562DVQ7.js";
|
|
191
191
|
import {
|
|
192
192
|
DEFAULT_TASK_CATEGORIES,
|
|
193
193
|
FALLBACK_CATEGORY
|
|
194
|
-
} from "./chunk-
|
|
194
|
+
} from "./chunk-ON67U6WV.js";
|
|
195
195
|
import {
|
|
196
196
|
storePath,
|
|
197
197
|
wirecatDirectory
|
|
198
|
-
} from "./chunk-
|
|
198
|
+
} from "./chunk-EBB7RFCW.js";
|
|
199
199
|
import {
|
|
200
200
|
resolvePaths,
|
|
201
201
|
singleLine,
|
|
@@ -16846,7 +16846,7 @@ var require_lib3 = __commonJS({
|
|
|
16846
16846
|
}
|
|
16847
16847
|
});
|
|
16848
16848
|
|
|
16849
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16849
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/conversations/link.js
|
|
16850
16850
|
var RULES_VERSION = 5;
|
|
16851
16851
|
var LOOK_BACK = 50;
|
|
16852
16852
|
var SAME_SENDER_WITHIN = 10;
|
|
@@ -16936,15 +16936,15 @@ var latest = /* @__PURE__ */ __name((window3, matches) => {
|
|
|
16936
16936
|
var sameThread = /* @__PURE__ */ __name((a, b) => a.threadId === b.threadId, "sameThread");
|
|
16937
16937
|
var link = /* @__PURE__ */ __name((message, parentId, source, kind, confidence, method) => ({ messageId: message.id, parentId, source, kind, confidence, method }), "link");
|
|
16938
16938
|
|
|
16939
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16939
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/ports/traits.js
|
|
16940
16940
|
var syncsOneChat = /* @__PURE__ */ __name((messenger) => messenger.history !== "store" || messenger.historyOnDemand === true, "syncsOneChat");
|
|
16941
16941
|
|
|
16942
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16942
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/sends/send-id.js
|
|
16943
16943
|
import { randomBytes } from "node:crypto";
|
|
16944
16944
|
var newSendId = /* @__PURE__ */ __name(() => randomBytes(8).readBigInt64BE().toString(), "newSendId");
|
|
16945
16945
|
var newOperationId = newSendId;
|
|
16946
16946
|
|
|
16947
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16947
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/sends/upload.js
|
|
16948
16948
|
import { openAsBlob, realpathSync } from "node:fs";
|
|
16949
16949
|
import { open, stat } from "node:fs/promises";
|
|
16950
16950
|
import { basename, dirname, extname, isAbsolute, relative, resolve, sep } from "node:path";
|
|
@@ -17165,7 +17165,7 @@ var readStickerFile = /* @__PURE__ */ __name(async (path, maxBytes, read) => {
|
|
|
17165
17165
|
return { name, source };
|
|
17166
17166
|
}, "readStickerFile");
|
|
17167
17167
|
|
|
17168
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17168
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/cli/messenger/lacks.js
|
|
17169
17169
|
var COMMAND_NEEDS = {
|
|
17170
17170
|
"account update": ["updateProfile", "change the profile"],
|
|
17171
17171
|
"account sessions list": ["sessions", "list the account's sessions"],
|
|
@@ -17215,7 +17215,7 @@ var hideNever = /* @__PURE__ */ __name((messenger, group) => {
|
|
|
17215
17215
|
return group;
|
|
17216
17216
|
}, "hideNever");
|
|
17217
17217
|
|
|
17218
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17218
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/services/members-audit.js
|
|
17219
17219
|
var AUDIT_PAGE = 200;
|
|
17220
17220
|
var AUDIT_BUDGET = 10;
|
|
17221
17221
|
var AUDIT_PAUSE_MS = 1e3;
|
|
@@ -17295,7 +17295,7 @@ var burstJoins = /* @__PURE__ */ __name((members) => {
|
|
|
17295
17295
|
return found;
|
|
17296
17296
|
}, "burstJoins");
|
|
17297
17297
|
|
|
17298
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17298
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/meetings/cli/query-options.js
|
|
17299
17299
|
var queryWordsAfterOptions = /* @__PURE__ */ __name((command) => {
|
|
17300
17300
|
command.allowUnknownOption();
|
|
17301
17301
|
const parse = command.parseOptions.bind(command);
|
|
@@ -17315,7 +17315,7 @@ var queryWordsAfterOptions = /* @__PURE__ */ __name((command) => {
|
|
|
17315
17315
|
return command;
|
|
17316
17316
|
}, "queryWordsAfterOptions");
|
|
17317
17317
|
|
|
17318
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17318
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/meetings/cli/passage.js
|
|
17319
17319
|
var count = /* @__PURE__ */ __name((value) => {
|
|
17320
17320
|
if (!/^(0|[1-9]\d*)$/.test(value) || !Number.isSafeInteger(Number(value)))
|
|
17321
17321
|
throw new CliError("validation_error", "expected a nonnegative safe integer");
|
|
@@ -17357,7 +17357,7 @@ var addMeetingPassageCommandDefinition = /* @__PURE__ */ __name((program, deps)
|
|
|
17357
17357
|
var createMeetingPassageCommand = sharedCommand(createMeetingPassageCommandDefinition);
|
|
17358
17358
|
var addMeetingPassageCommand = sharedCommand(addMeetingPassageCommandDefinition);
|
|
17359
17359
|
|
|
17360
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17360
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/meetings/cli/project-evidence.js
|
|
17361
17361
|
var integer2 = /* @__PURE__ */ __name((value) => {
|
|
17362
17362
|
if (!/^[1-9]\d*$/.test(value) || !Number.isSafeInteger(Number(value)))
|
|
17363
17363
|
throw new CliError("validation_error", "expected a positive safe integer");
|
|
@@ -17380,7 +17380,7 @@ ${fieldsHelp(MEETING_PROJECT_EVIDENCE_QUERY)}`).option("--limit <n>", "hits in o
|
|
|
17380
17380
|
}, "addMeetingProjectEvidenceCommandDefinition");
|
|
17381
17381
|
var addMeetingProjectEvidenceCommand = sharedCommand(addMeetingProjectEvidenceCommandDefinition);
|
|
17382
17382
|
|
|
17383
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17383
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/meetings/cli/search.js
|
|
17384
17384
|
var ZONED = /(?:Z|[+-]\d{2}:?\d{2})$/i;
|
|
17385
17385
|
var moment = /* @__PURE__ */ __name((flag, end, readIn) => (value) => {
|
|
17386
17386
|
const zone = timezoneOf();
|
|
@@ -17466,7 +17466,7 @@ var addMeetingSearchCommandDefinition = /* @__PURE__ */ __name((program, deps) =
|
|
|
17466
17466
|
var createMeetingSearchCommand = sharedCommand(createMeetingSearchCommandDefinition);
|
|
17467
17467
|
var addMeetingSearchCommand = sharedCommand(addMeetingSearchCommandDefinition);
|
|
17468
17468
|
|
|
17469
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17469
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/meetings/cli/index.js
|
|
17470
17470
|
var integer4 = /* @__PURE__ */ __name((text) => {
|
|
17471
17471
|
if (!/^[1-9]\d*$/.test(text) || !Number.isSafeInteger(Number(text)))
|
|
17472
17472
|
throw new InvalidArgumentError("expected a positive integer");
|
|
@@ -17586,7 +17586,7 @@ ${fieldsHelp(EVENT_QUERY, MEETING_QUERY_GUIDE)}`);
|
|
|
17586
17586
|
}, "addMeetingCommandsDefinition");
|
|
17587
17587
|
var addMeetingCommands = sharedCommand(addMeetingCommandsDefinition);
|
|
17588
17588
|
|
|
17589
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17589
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/cli/list-query.js
|
|
17590
17590
|
var LIST_QUERY_GUIDE = "https://github.com/WireCatLabs/cli-core/blob/main/docs/search/query-language.md";
|
|
17591
17591
|
var withQuery = /* @__PURE__ */ __name((command, registry) => {
|
|
17592
17592
|
const query = defineQuery(registry);
|
|
@@ -17700,7 +17700,7 @@ var termField = /* @__PURE__ */ __name((name, type, example, more = {}) => nativ
|
|
|
17700
17700
|
var queryHelp = /* @__PURE__ */ __name((registry) => `
|
|
17701
17701
|
${fieldsHelp(registry, LIST_QUERY_GUIDE)}`, "queryHelp");
|
|
17702
17702
|
|
|
17703
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17703
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/cli/paging.js
|
|
17704
17704
|
var positiveCount = /* @__PURE__ */ __name((flag) => (value) => {
|
|
17705
17705
|
if (!/^\d+$/.test(value.trim()) || Number(value) < 1)
|
|
17706
17706
|
throw new CliError("validation_error", `${flag} takes a whole number from 1 upwards, not "${value}"`);
|
|
@@ -17709,7 +17709,7 @@ var positiveCount = /* @__PURE__ */ __name((flag) => (value) => {
|
|
|
17709
17709
|
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");
|
|
17710
17710
|
var window = /* @__PURE__ */ __name(({ limit, page, all }) => all ? { offset: 0 } : { limit, offset: (page - 1) * limit }, "window");
|
|
17711
17711
|
|
|
17712
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17712
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/cli/messenger/chat-answers.js
|
|
17713
17713
|
var defined = /* @__PURE__ */ __name((record2) => Object.fromEntries(Object.entries(record2).filter(([, value]) => value !== void 0)), "defined");
|
|
17714
17714
|
var chatRef = /* @__PURE__ */ __name((account, chat) => formatReference({ type: "chat", provider: account.provider, account: account.account, chat }), "chatRef");
|
|
17715
17715
|
var settingsOf = /* @__PURE__ */ __name((settings) => defined({
|
|
@@ -17971,7 +17971,7 @@ var sessionAnswer = /* @__PURE__ */ __name(({ current, client, device, location,
|
|
|
17971
17971
|
...createdAt === void 0 ? {} : { created_at: createdAt }
|
|
17972
17972
|
}), "sessionAnswer");
|
|
17973
17973
|
|
|
17974
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17974
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/services/deps.js
|
|
17975
17975
|
var accountStore = /* @__PURE__ */ __name(async (deps) => (await deps.store()).forAccount(await deps.account()), "accountStore");
|
|
17976
17976
|
var crossAccount = /* @__PURE__ */ __name((deps, _reason) => deps.store(), "crossAccount");
|
|
17977
17977
|
var NO_LOCAL_STORE = "this answer comes from the messenger, not from the local store";
|
|
@@ -18036,7 +18036,7 @@ var storedDeps = /* @__PURE__ */ __name((messenger, store, account, guard) => ({
|
|
|
18036
18036
|
}), "storedDeps");
|
|
18037
18037
|
var storeModeDeps = /* @__PURE__ */ __name((messenger, store, account, guard) => ({ ...storedDeps(messenger, store, account, guard), offline: false, reads: "store" }), "storeModeDeps");
|
|
18038
18038
|
|
|
18039
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18039
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/resolve.js
|
|
18040
18040
|
var isId = /* @__PURE__ */ __name((reference) => /^-?\d+$/.test(reference.trim()), "isId");
|
|
18041
18041
|
var foldName = /* @__PURE__ */ __name((name) => name.normalize("NFC").replace(/[\uFE0E\uFE0F\u200D]/g, "").toLowerCase(), "foldName");
|
|
18042
18042
|
var pickChat = /* @__PURE__ */ __name((reference, chats) => {
|
|
@@ -18074,7 +18074,7 @@ ${lines3}`, { candidates });
|
|
|
18074
18074
|
}, "ambiguous");
|
|
18075
18075
|
var isPresent = /* @__PURE__ */ __name((value) => value !== null && value !== void 0, "isPresent");
|
|
18076
18076
|
|
|
18077
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18077
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/ports/messenger.js
|
|
18078
18078
|
var throughWrapper = /* @__PURE__ */ __name((inner, handled, wrap = (_, call) => call) => new Proxy(handled, {
|
|
18079
18079
|
get: /* @__PURE__ */ __name((own, key) => {
|
|
18080
18080
|
if (key in own)
|
|
@@ -18091,7 +18091,7 @@ var capability = /* @__PURE__ */ __name((adapter, method, what) => {
|
|
|
18091
18091
|
return found.bind(adapter);
|
|
18092
18092
|
}, "capability");
|
|
18093
18093
|
|
|
18094
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18094
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/services/moment.js
|
|
18095
18095
|
var AGO = /^(\d+)(m|h|d)$/;
|
|
18096
18096
|
var AGO_MS = { m: 6e4, h: 36e5, d: 864e5 };
|
|
18097
18097
|
var DATE = /^\d{4}-\d{2}-\d{2}/;
|
|
@@ -18131,7 +18131,7 @@ var dateWindow = /* @__PURE__ */ __name(({ sinceTime, untilTime, zone, now = Dat
|
|
|
18131
18131
|
};
|
|
18132
18132
|
}, "dateWindow");
|
|
18133
18133
|
|
|
18134
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18134
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/services/questions.js
|
|
18135
18135
|
var LINKS = /https?:\/\/\S+/g;
|
|
18136
18136
|
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");
|
|
18137
18137
|
var questions = /* @__PURE__ */ __name((messages, { answerers: answerers2 }) => {
|
|
@@ -18158,7 +18158,7 @@ var questions = /* @__PURE__ */ __name((messages, { answerers: answerers2 }) =>
|
|
|
18158
18158
|
});
|
|
18159
18159
|
}, "questions");
|
|
18160
18160
|
|
|
18161
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18161
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/services/task-categories.js
|
|
18162
18162
|
var names = /* @__PURE__ */ __name((categories) => categories.map(({ name }) => name).join(", "), "names");
|
|
18163
18163
|
var taskCategoryOf = /* @__PURE__ */ __name((categories = DEFAULT_TASK_CATEGORIES, flag = "--category") => (typed) => {
|
|
18164
18164
|
const name = typed.trim().toLowerCase();
|
|
@@ -18208,7 +18208,7 @@ var categorize = /* @__PURE__ */ __name((text, categories = DEFAULT_TASK_CATEGOR
|
|
|
18208
18208
|
return best.name;
|
|
18209
18209
|
}, "categorize");
|
|
18210
18210
|
|
|
18211
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18211
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/services/task-rules.js
|
|
18212
18212
|
var taskAccount = /* @__PURE__ */ __name(({ provider, account }) => `${provider}:${account}`, "taskAccount");
|
|
18213
18213
|
var RULES_IN = {
|
|
18214
18214
|
dialog: "all",
|
|
@@ -18414,7 +18414,7 @@ var applyTaskRulesToChats = /* @__PURE__ */ __name(async (store, account, chatId
|
|
|
18414
18414
|
return passes;
|
|
18415
18415
|
}, "applyTaskRulesToChats");
|
|
18416
18416
|
|
|
18417
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18417
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/botcheck/check.js
|
|
18418
18418
|
var DAY_MS = 864e5;
|
|
18419
18419
|
var NEW_DAYS = 30;
|
|
18420
18420
|
var SAME_TEXT_MIN = 20;
|
|
@@ -18491,7 +18491,7 @@ var scorePerson = /* @__PURE__ */ __name(({ subject, provider, activity, photos,
|
|
|
18491
18491
|
};
|
|
18492
18492
|
}, "scorePerson");
|
|
18493
18493
|
|
|
18494
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18494
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/botcheck/registries.js
|
|
18495
18495
|
var REGISTRIES = {
|
|
18496
18496
|
cas: { title: "Combot Anti-Spam (CAS)", docs: "https://cas.chat/api" },
|
|
18497
18497
|
lols: { title: "lols.bot", docs: "https://api.lols.bot/lols-bot.json" }
|
|
@@ -18576,7 +18576,7 @@ var notCovered = /* @__PURE__ */ __name((messenger, now = /* @__PURE__ */ new Da
|
|
|
18576
18576
|
detail: `lists Telegram accounts only, not ${messenger} ones`
|
|
18577
18577
|
})), "notCovered");
|
|
18578
18578
|
|
|
18579
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18579
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/botcheck/service.js
|
|
18580
18580
|
var ACTIVITY_MESSAGES = 1e3;
|
|
18581
18581
|
var botCheckService = /* @__PURE__ */ __name((deps) => {
|
|
18582
18582
|
const subjectOf = /* @__PURE__ */ __name(async (reference) => {
|
|
@@ -18664,7 +18664,7 @@ var botCheckService = /* @__PURE__ */ __name((deps) => {
|
|
|
18664
18664
|
};
|
|
18665
18665
|
}, "botCheckService");
|
|
18666
18666
|
|
|
18667
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18667
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/domain/thread.js
|
|
18668
18668
|
var threadIdOf = /* @__PURE__ */ __name((value) => {
|
|
18669
18669
|
if (value === void 0)
|
|
18670
18670
|
return void 0;
|
|
@@ -18674,7 +18674,7 @@ var threadIdOf = /* @__PURE__ */ __name((value) => {
|
|
|
18674
18674
|
return id2;
|
|
18675
18675
|
}, "threadIdOf");
|
|
18676
18676
|
|
|
18677
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18677
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/services/chat-stats.js
|
|
18678
18678
|
var TOP_POSTS = 5;
|
|
18679
18679
|
var JOINS = /* @__PURE__ */ new Set(["join", "add"]);
|
|
18680
18680
|
var LEAVES = /* @__PURE__ */ new Set(["leave", "remove"]);
|
|
@@ -18791,7 +18791,7 @@ var median = /* @__PURE__ */ __name((values) => {
|
|
|
18791
18791
|
return Math.round(sorted.length % 2 === 0 ? ((sorted[middle - 1] ?? upper) + upper) / 2 : upper);
|
|
18792
18792
|
}, "median");
|
|
18793
18793
|
|
|
18794
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18794
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/services/member-history.js
|
|
18795
18795
|
var memberEvents = /* @__PURE__ */ __name((stays, revisions, since = 0) => {
|
|
18796
18796
|
const events = [];
|
|
18797
18797
|
for (const stay of stays) {
|
|
@@ -18823,7 +18823,7 @@ var memberEvents = /* @__PURE__ */ __name((stays, revisions, since = 0) => {
|
|
|
18823
18823
|
return events.filter(({ at }) => Date.parse(at) >= since).sort((a, b) => Date.parse(a.at) - Date.parse(b.at) || a.id.localeCompare(b.id));
|
|
18824
18824
|
}, "memberEvents");
|
|
18825
18825
|
|
|
18826
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18826
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/services/message-resolution.js
|
|
18827
18827
|
var readChatId = /* @__PURE__ */ __name(async (deps, reference, store, account) => {
|
|
18828
18828
|
if (deps.reads !== "store")
|
|
18829
18829
|
return keptChatId(deps.messenger, reference, store, account);
|
|
@@ -18970,7 +18970,7 @@ var senderAmong = /* @__PURE__ */ __name(async (store, accounts, reference) => {
|
|
|
18970
18970
|
}
|
|
18971
18971
|
}, "senderAmong");
|
|
18972
18972
|
|
|
18973
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18973
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/services/chats.js
|
|
18974
18974
|
var EVENTS_DAYS = 7;
|
|
18975
18975
|
var TRACKED_DAYS = 30;
|
|
18976
18976
|
var STATS_PAGE = 1e3;
|
|
@@ -19265,7 +19265,7 @@ var storedMembers = /* @__PURE__ */ __name(async (store, chatId) => {
|
|
|
19265
19265
|
return members.length === 0 ? null : members;
|
|
19266
19266
|
}, "storedMembers");
|
|
19267
19267
|
|
|
19268
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19268
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/services/inbox.js
|
|
19269
19269
|
var INBOX_CHATS = 20;
|
|
19270
19270
|
var REVIEW_DAYS = 3;
|
|
19271
19271
|
var UNANSWERED_HOURS = 24;
|
|
@@ -19473,7 +19473,7 @@ var inboxService = /* @__PURE__ */ __name((deps) => {
|
|
|
19473
19473
|
};
|
|
19474
19474
|
}, "inboxService");
|
|
19475
19475
|
|
|
19476
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19476
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/domain/formatting.js
|
|
19477
19477
|
var invalid = /* @__PURE__ */ __name(() => new CliError("validation_error", "the messenger formatter returned invalid text spans"), "invalid");
|
|
19478
19478
|
var validateFormattedText = /* @__PURE__ */ __name((formatted2) => {
|
|
19479
19479
|
const { text, spans } = formatted2;
|
|
@@ -19533,7 +19533,7 @@ var visibleFormattedText = /* @__PURE__ */ __name((formatted2) => {
|
|
|
19533
19533
|
};
|
|
19534
19534
|
}, "visibleFormattedText");
|
|
19535
19535
|
|
|
19536
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19536
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/moderation/check.js
|
|
19537
19537
|
var INVITE = /max\.ru\/join\/|(t|telegram)\.me\/(\+|joinchat\/)|tg:\/\/join/i;
|
|
19538
19538
|
var LINK2 = /https?:\/\/\S+/i;
|
|
19539
19539
|
var STRENGTH = { report: 0, delete: 1, remove: 2 };
|
|
@@ -19721,7 +19721,7 @@ var nextPoint = /* @__PURE__ */ __name((rows, found) => {
|
|
|
19721
19721
|
}, "nextPoint");
|
|
19722
19722
|
var someUndone = /* @__PURE__ */ __name((rows) => rows.some(undone), "someUndone");
|
|
19723
19723
|
|
|
19724
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19724
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/moderation/rules.js
|
|
19725
19725
|
import { existsSync, readFileSync } from "node:fs";
|
|
19726
19726
|
import { join } from "node:path";
|
|
19727
19727
|
var RULE_ACTIONS = ["report", "delete", "remove"];
|
|
@@ -19864,7 +19864,7 @@ var assign = /* @__PURE__ */ __name((rules, key, value) => {
|
|
|
19864
19864
|
return { ...rules, [head]: { ...rules[head], [tail]: value } };
|
|
19865
19865
|
}, "assign");
|
|
19866
19866
|
|
|
19867
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19867
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/services/person-context.js
|
|
19868
19868
|
var CONTEXT_MESSAGES = 10;
|
|
19869
19869
|
var CONTEXT_BYTES = 64 * 1024;
|
|
19870
19870
|
var toContext = /* @__PURE__ */ __name((key, message, chatTitle) => ({
|
|
@@ -20120,10 +20120,10 @@ var personMessages = /* @__PURE__ */ __name(async (store, asked, reference, { ch
|
|
|
20120
20120
|
};
|
|
20121
20121
|
}, "personMessages");
|
|
20122
20122
|
|
|
20123
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20123
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/services/meeting-evidence.js
|
|
20124
20124
|
import { createHash } from "node:crypto";
|
|
20125
20125
|
|
|
20126
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20126
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/services/meeting-reference.js
|
|
20127
20127
|
var missing2 = /* @__PURE__ */ __name(() => new CliError("not_found", "the meeting evidence is unavailable for this account"), "missing");
|
|
20128
20128
|
var authorizedMeetingMetadata = /* @__PURE__ */ __name(async (store, accountId, reference, options = {}) => {
|
|
20129
20129
|
const parsed = parseMeetingReference(reference);
|
|
@@ -20141,7 +20141,7 @@ var authorizedMeetingMetadata = /* @__PURE__ */ __name(async (store, accountId,
|
|
|
20141
20141
|
return { parsed, meeting };
|
|
20142
20142
|
}, "authorizedMeetingMetadata");
|
|
20143
20143
|
|
|
20144
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20144
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/services/meeting-evidence.js
|
|
20145
20145
|
var hash = /* @__PURE__ */ __name((value) => createHash("sha256").update(JSON.stringify(value)).digest("hex"), "hash");
|
|
20146
20146
|
var checkMeetingCancelled = /* @__PURE__ */ __name((signal) => {
|
|
20147
20147
|
if (signal?.aborted)
|
|
@@ -20340,7 +20340,7 @@ var readMeetingEvidence = /* @__PURE__ */ __name(async (store, accountId, refere
|
|
|
20340
20340
|
return { ...packet, fingerprint: hash(packet) };
|
|
20341
20341
|
}, "readMeetingEvidence");
|
|
20342
20342
|
|
|
20343
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20343
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/services/person-meeting-context.js
|
|
20344
20344
|
var personMeetingContext = /* @__PURE__ */ __name(async (store, personReference, options) => {
|
|
20345
20345
|
const { meetings = 10, cues = 5, bytes: bytes2 = 64 * 1024, scanLimit = 1e3, since, signal } = options;
|
|
20346
20346
|
const requestedAccounts = options.accountIds;
|
|
@@ -20439,7 +20439,7 @@ var personMeetingContext = /* @__PURE__ */ __name(async (store, personReference,
|
|
|
20439
20439
|
};
|
|
20440
20440
|
}, "personMeetingContext");
|
|
20441
20441
|
|
|
20442
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20442
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/services/person-preparation.js
|
|
20443
20443
|
var PREPARE_BYTES = 96 * 1024;
|
|
20444
20444
|
var MEETINGS = 5;
|
|
20445
20445
|
var CUES = 3;
|
|
@@ -20556,7 +20556,7 @@ var meetingsOf = /* @__PURE__ */ __name(async (store, uid, stored, since, left)
|
|
|
20556
20556
|
}
|
|
20557
20557
|
}, "meetingsOf");
|
|
20558
20558
|
|
|
20559
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20559
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/services/person-profile.js
|
|
20560
20560
|
var personProfile = /* @__PURE__ */ __name(async (deps, person, known) => {
|
|
20561
20561
|
const online = deps.offline ? void 0 : await deps.connection();
|
|
20562
20562
|
const held = await storeIfOpen(deps);
|
|
@@ -20626,7 +20626,7 @@ var quiet = /* @__PURE__ */ __name((facts) => facts.chats.map(({ id: id2, title,
|
|
|
20626
20626
|
complete: false
|
|
20627
20627
|
})), "quiet");
|
|
20628
20628
|
|
|
20629
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20629
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/services/person-timeline.js
|
|
20630
20630
|
var TIMELINE_ITEMS = 50;
|
|
20631
20631
|
var TIMELINE_MAX = 500;
|
|
20632
20632
|
var SCOPES = ["personal", "work"];
|
|
@@ -20681,7 +20681,7 @@ var personTimeline = /* @__PURE__ */ __name(async (store, asked, reference, { sc
|
|
|
20681
20681
|
};
|
|
20682
20682
|
}, "personTimeline");
|
|
20683
20683
|
|
|
20684
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20684
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/services/people.js
|
|
20685
20685
|
var peopleService = /* @__PURE__ */ __name((deps) => {
|
|
20686
20686
|
const localCard = /* @__PURE__ */ __name(async (card, includeNotes = false) => {
|
|
20687
20687
|
const held = await storeIfOpen(deps);
|
|
@@ -20908,7 +20908,7 @@ var withoutPhone = /* @__PURE__ */ __name((answer) => {
|
|
|
20908
20908
|
return rest;
|
|
20909
20909
|
}, "withoutPhone");
|
|
20910
20910
|
|
|
20911
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20911
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/services/task-tag-filters.js
|
|
20912
20912
|
var taskTagFilters = /* @__PURE__ */ __name(async (store, query) => {
|
|
20913
20913
|
const tags = /* @__PURE__ */ new Map();
|
|
20914
20914
|
for (const node of query ? walkQuery(query.root) : [])
|
|
@@ -20917,7 +20917,7 @@ var taskTagFilters = /* @__PURE__ */ __name(async (store, query) => {
|
|
|
20917
20917
|
return tags;
|
|
20918
20918
|
}, "taskTagFilters");
|
|
20919
20919
|
|
|
20920
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20920
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/services/tasks.js
|
|
20921
20921
|
var TASK_QUERY = {
|
|
20922
20922
|
entity: "task",
|
|
20923
20923
|
backend: "sql",
|
|
@@ -21397,7 +21397,7 @@ var taskView = /* @__PURE__ */ __name(async (store, account, task2) => {
|
|
|
21397
21397
|
};
|
|
21398
21398
|
}, "taskView");
|
|
21399
21399
|
|
|
21400
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21400
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/services/excerpt.js
|
|
21401
21401
|
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");
|
|
21402
21402
|
var excerpt = /* @__PURE__ */ __name((text, query, size2 = 240, options = {}) => {
|
|
21403
21403
|
const flat = text.replace(/\s+/g, " ").trim();
|
|
@@ -21413,18 +21413,18 @@ var excerpt = /* @__PURE__ */ __name((text, query, size2 = 240, options = {}) =>
|
|
|
21413
21413
|
}, "excerpt");
|
|
21414
21414
|
var withExcerpt = /* @__PURE__ */ __name(({ matchedText, ...hit }, query) => ({ ...hit, excerpt: excerpt(matchedText ?? hit.text, query) }), "withExcerpt");
|
|
21415
21415
|
|
|
21416
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21416
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/services/media-archive.js
|
|
21417
21417
|
import { setTimeout as sleep } from "node:timers/promises";
|
|
21418
21418
|
|
|
21419
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21419
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/services/media-archive-files.js
|
|
21420
21420
|
import { lstat as lstat4 } from "node:fs/promises";
|
|
21421
21421
|
|
|
21422
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21422
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-store.js
|
|
21423
21423
|
import { createHash as createHash3, randomUUID as randomUUID4 } from "node:crypto";
|
|
21424
21424
|
import { open as open6, rename as rename3, unlink as unlink6 } from "node:fs/promises";
|
|
21425
21425
|
import { join as join6 } from "node:path";
|
|
21426
21426
|
|
|
21427
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21427
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/files/atomic-write.js
|
|
21428
21428
|
import { randomUUID } from "node:crypto";
|
|
21429
21429
|
import { constants } from "node:fs";
|
|
21430
21430
|
import { link as link2, open as open2, realpath, rename, unlink } from "node:fs/promises";
|
|
@@ -21462,7 +21462,7 @@ var writeFileAtomic = /* @__PURE__ */ __name(async (path, content, { mode = 384,
|
|
|
21462
21462
|
}
|
|
21463
21463
|
}, "writeFileAtomic");
|
|
21464
21464
|
|
|
21465
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21465
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/files/ordinary-file.js
|
|
21466
21466
|
import { constants as constants2 } from "node:fs";
|
|
21467
21467
|
import { lstat, open as open3 } from "node:fs/promises";
|
|
21468
21468
|
var deviceOf = /* @__PURE__ */ __name((dev) => process.platform === "win32" ? BigInt.asUintN(32, dev) : dev, "deviceOf");
|
|
@@ -21528,7 +21528,7 @@ var syncDirectory = /* @__PURE__ */ __name(async (path) => {
|
|
|
21528
21528
|
}
|
|
21529
21529
|
}, "syncDirectory");
|
|
21530
21530
|
|
|
21531
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21531
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/files/bounded-utf8.js
|
|
21532
21532
|
var readBoundedUtf8File = /* @__PURE__ */ __name(async (path, { maxBytes }) => {
|
|
21533
21533
|
if (!Number.isSafeInteger(maxBytes) || maxBytes < 1 || maxBytes > 16 * 1024 * 1024)
|
|
21534
21534
|
throw new CliError("validation_error", "file maxBytes takes 1\u201316777216 bytes");
|
|
@@ -21557,21 +21557,21 @@ var readBoundedUtf8File = /* @__PURE__ */ __name(async (path, { maxBytes }) => {
|
|
|
21557
21557
|
}
|
|
21558
21558
|
}, "readBoundedUtf8File");
|
|
21559
21559
|
|
|
21560
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21560
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/files/lock.js
|
|
21561
21561
|
import { mkdir as mkdir2 } from "node:fs/promises";
|
|
21562
21562
|
import { basename as basename3, dirname as dirname3 } from "node:path";
|
|
21563
21563
|
|
|
21564
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21564
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/files/native-writer-lease.js
|
|
21565
21565
|
import { randomUUID as randomUUID2 } from "node:crypto";
|
|
21566
21566
|
import { lstat as lstat3, mkdir, open as open4, realpath as realpath3, rmdir as rmdir2, unlink as unlink4 } from "node:fs/promises";
|
|
21567
21567
|
import { hostname as hostname2 } from "node:os";
|
|
21568
21568
|
import { join as join4 } from "node:path";
|
|
21569
21569
|
|
|
21570
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21570
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/files/native-lease-inspection.js
|
|
21571
21571
|
import { lstat as lstat2, readdir, realpath as realpath2, unlink as unlink2 } from "node:fs/promises";
|
|
21572
21572
|
import { join as join3 } from "node:path";
|
|
21573
21573
|
|
|
21574
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21574
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/files/native-lease-owner.js
|
|
21575
21575
|
import { hostname } from "node:os";
|
|
21576
21576
|
var missingLeaseFile = /* @__PURE__ */ __name((error) => typeof error === "object" && error !== null && "code" in error && error.code === "ENOENT", "missingLeaseFile");
|
|
21577
21577
|
var readLeaseOwner = /* @__PURE__ */ __name(async (path, name, signal) => {
|
|
@@ -21616,7 +21616,7 @@ var leaseOwnerStatus = /* @__PURE__ */ __name((owner) => {
|
|
|
21616
21616
|
}
|
|
21617
21617
|
}, "leaseOwnerStatus");
|
|
21618
21618
|
|
|
21619
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21619
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/files/native-lease-inspection.js
|
|
21620
21620
|
var leaseInspection = /* @__PURE__ */ __name((markerDirectory) => {
|
|
21621
21621
|
const inspect = /* @__PURE__ */ __name(async (destination, options = {}) => {
|
|
21622
21622
|
options.signal?.throwIfAborted();
|
|
@@ -21675,7 +21675,7 @@ var leaseInspection = /* @__PURE__ */ __name((markerDirectory) => {
|
|
|
21675
21675
|
return { inspect, recover };
|
|
21676
21676
|
}, "leaseInspection");
|
|
21677
21677
|
|
|
21678
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21678
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/files/native-lease-release.js
|
|
21679
21679
|
import { rmdir, unlink as unlink3 } from "node:fs/promises";
|
|
21680
21680
|
var ownedNativeLease = /* @__PURE__ */ __name((path, name, owner, folder, identity) => {
|
|
21681
21681
|
let releasing;
|
|
@@ -21700,7 +21700,7 @@ var ownedNativeLease = /* @__PURE__ */ __name((path, name, owner, folder, identi
|
|
|
21700
21700
|
};
|
|
21701
21701
|
}, "ownedNativeLease");
|
|
21702
21702
|
|
|
21703
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21703
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/files/native-writer-lease.js
|
|
21704
21704
|
var validName = /* @__PURE__ */ __name((value) => typeof value === "string" && value.length > 0 && value !== "." && value !== ".." && !/[\\/\0:]/.test(value), "validName");
|
|
21705
21705
|
var nativeWriterLeaseStore = /* @__PURE__ */ __name((layout) => {
|
|
21706
21706
|
const { markerDirectory, legacyMarker } = layout;
|
|
@@ -21771,7 +21771,7 @@ var nativeWriterLeaseStore = /* @__PURE__ */ __name((layout) => {
|
|
|
21771
21771
|
};
|
|
21772
21772
|
}, "nativeWriterLeaseStore");
|
|
21773
21773
|
|
|
21774
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21774
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/files/lock.js
|
|
21775
21775
|
var acquireLock = /* @__PURE__ */ __name(async (path, { signal } = {}) => {
|
|
21776
21776
|
const folder = dirname3(path);
|
|
21777
21777
|
await mkdir2(folder, { recursive: true, mode: 448 });
|
|
@@ -21786,7 +21786,7 @@ var acquireLock = /* @__PURE__ */ __name(async (path, { signal } = {}) => {
|
|
|
21786
21786
|
});
|
|
21787
21787
|
}, "acquireLock");
|
|
21788
21788
|
|
|
21789
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21789
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-metadata.js
|
|
21790
21790
|
import { createHash as createHash2 } from "node:crypto";
|
|
21791
21791
|
var metadataLimit = 16384;
|
|
21792
21792
|
var partialIdentity = /* @__PURE__ */ __name((locator) => JSON.stringify([locator.provider, locator.account, locator.occurrenceId, locator.assetId]), "partialIdentity");
|
|
@@ -21846,7 +21846,7 @@ var readPartialMetadata = /* @__PURE__ */ __name(async (path, locator, maxBytes,
|
|
|
21846
21846
|
}
|
|
21847
21847
|
}, "readPartialMetadata");
|
|
21848
21848
|
|
|
21849
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21849
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-writer.js
|
|
21850
21850
|
import { randomUUID as randomUUID3 } from "node:crypto";
|
|
21851
21851
|
import { open as open5, rename as rename2, unlink as unlink5 } from "node:fs/promises";
|
|
21852
21852
|
import { join as join5 } from "node:path";
|
|
@@ -21938,7 +21938,7 @@ var partialWriter = /* @__PURE__ */ __name(async (input) => {
|
|
|
21938
21938
|
};
|
|
21939
21939
|
}, "partialWriter");
|
|
21940
21940
|
|
|
21941
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21941
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-store.js
|
|
21942
21942
|
var NativeRecordingPartialStore = class {
|
|
21943
21943
|
static {
|
|
21944
21944
|
__name(this, "NativeRecordingPartialStore");
|
|
@@ -22045,12 +22045,12 @@ var NativeRecordingPartialStore = class {
|
|
|
22045
22045
|
}
|
|
22046
22046
|
};
|
|
22047
22047
|
|
|
22048
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22048
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication.js
|
|
22049
22049
|
import { createHash as createHash4 } from "node:crypto";
|
|
22050
22050
|
import { link as link3 } from "node:fs/promises";
|
|
22051
22051
|
import { basename as basename4, dirname as dirname4, join as join8, resolve as resolve2 } from "node:path";
|
|
22052
22052
|
|
|
22053
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22053
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication-files.js
|
|
22054
22054
|
import { unlink as unlink7 } from "node:fs/promises";
|
|
22055
22055
|
var verifiedPublicationFile = /* @__PURE__ */ __name(async (path, expected, signal, writable = false) => {
|
|
22056
22056
|
signal?.throwIfAborted();
|
|
@@ -22085,7 +22085,7 @@ var commitPublication = /* @__PURE__ */ __name(async (root, partialPath, finalPa
|
|
|
22085
22085
|
signal?.throwIfAborted();
|
|
22086
22086
|
}, "commitPublication");
|
|
22087
22087
|
|
|
22088
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22088
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication-journal.js
|
|
22089
22089
|
import { randomUUID as randomUUID5 } from "node:crypto";
|
|
22090
22090
|
import { open as open7, rename as rename4, unlink as unlink8 } from "node:fs/promises";
|
|
22091
22091
|
import { join as join7 } from "node:path";
|
|
@@ -22158,7 +22158,7 @@ var writePublicationJournal = /* @__PURE__ */ __name(async (root, path, prefix,
|
|
|
22158
22158
|
}
|
|
22159
22159
|
}, "writePublicationJournal");
|
|
22160
22160
|
|
|
22161
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22161
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication.js
|
|
22162
22162
|
var NativeRecordingPublication = class {
|
|
22163
22163
|
static {
|
|
22164
22164
|
__name(this, "NativeRecordingPublication");
|
|
@@ -22231,7 +22231,7 @@ var NativeRecordingPublication = class {
|
|
|
22231
22231
|
}
|
|
22232
22232
|
};
|
|
22233
22233
|
|
|
22234
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22234
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/services/media-archive-manifest.js
|
|
22235
22235
|
import { createHash as createHash5 } from "node:crypto";
|
|
22236
22236
|
import { readdir as readdir2 } from "node:fs/promises";
|
|
22237
22237
|
import { isAbsolute as isAbsolute2, join as join9, resolve as resolve3 } from "node:path";
|
|
@@ -22318,7 +22318,7 @@ var commitMediaEntry = /* @__PURE__ */ __name((root, one, beforePublish) => writ
|
|
|
22318
22318
|
beforePublish
|
|
22319
22319
|
}), "commitMediaEntry");
|
|
22320
22320
|
|
|
22321
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22321
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/services/media-archive-files.js
|
|
22322
22322
|
var validator = '"media-completed-v1"';
|
|
22323
22323
|
var maximumFileBytes = 64 * 1024 * 1024 * 1024;
|
|
22324
22324
|
var archiveMediaFile = /* @__PURE__ */ __name(async (root, identity, kind, file2, beforeWrite, signal, metadata = {}) => {
|
|
@@ -22419,7 +22419,7 @@ var archiveMediaFile = /* @__PURE__ */ __name(async (root, identity, kind, file2
|
|
|
22419
22419
|
return entry;
|
|
22420
22420
|
}, "archiveMediaFile");
|
|
22421
22421
|
|
|
22422
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22422
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/services/media-archive-locks.js
|
|
22423
22423
|
import { mkdir as mkdir3, realpath as realpath4 } from "node:fs/promises";
|
|
22424
22424
|
import { join as join10, resolve as resolve4 } from "node:path";
|
|
22425
22425
|
var archiveLocations = /* @__PURE__ */ __name(async (initial, signal) => {
|
|
@@ -22486,7 +22486,7 @@ var withMediaArchiveLocks = /* @__PURE__ */ __name(async (directory2, signal, ru
|
|
|
22486
22486
|
throw new CliError("validation_error", "archive locations changed during locking; run the command again");
|
|
22487
22487
|
}, "withMediaArchiveLocks");
|
|
22488
22488
|
|
|
22489
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22489
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/services/media-archive.js
|
|
22490
22490
|
var validateMediaSince = /* @__PURE__ */ __name((value, flag = "--since-time") => {
|
|
22491
22491
|
if (value === void 0)
|
|
22492
22492
|
return void 0;
|
|
@@ -22639,7 +22639,7 @@ var archiveMedia = /* @__PURE__ */ __name(async (ports, options) => {
|
|
|
22639
22639
|
}, { create: true });
|
|
22640
22640
|
}, "archiveMedia");
|
|
22641
22641
|
|
|
22642
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22642
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/services/media-archive-move.js
|
|
22643
22643
|
import { realpath as realpath5, unlink as unlink9 } from "node:fs/promises";
|
|
22644
22644
|
import { basename as basename5, dirname as dirname5, join as join11, resolve as resolve5 } from "node:path";
|
|
22645
22645
|
var canonicalDestination = /* @__PURE__ */ __name(async (directory2) => {
|
|
@@ -22792,7 +22792,7 @@ var moveMediaArchive = /* @__PURE__ */ __name(async (options) => {
|
|
|
22792
22792
|
}, { additional: [target2], createAdditional: !options.dryRun });
|
|
22793
22793
|
}, "moveMediaArchive");
|
|
22794
22794
|
|
|
22795
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22795
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/services/model-downloads.js
|
|
22796
22796
|
var bytesOf = /* @__PURE__ */ __name((model) => model.files.reduce((sum2, file2) => sum2 + file2.bytes, 0), "bytesOf");
|
|
22797
22797
|
var nativeRuntime = /* @__PURE__ */ __name(async ({ env, progress = /* @__PURE__ */ __name(() => {
|
|
22798
22798
|
}, "progress") }) => {
|
|
@@ -22815,7 +22815,7 @@ var downloadTextModel = /* @__PURE__ */ __name(async (id2, { env, progress = /*
|
|
|
22815
22815
|
}
|
|
22816
22816
|
await nativeRuntime({ env, progress });
|
|
22817
22817
|
progress(`${model.id}: loading it once to check it works`);
|
|
22818
|
-
const { openEmbedder: openEmbedder2 } = await import("./embed-
|
|
22818
|
+
const { openEmbedder: openEmbedder2 } = await import("./embed-V755YE7O.js");
|
|
22819
22819
|
const embedder = await openEmbedder2(model, directory2);
|
|
22820
22820
|
try {
|
|
22821
22821
|
const [vector] = await embedder.embed(["check"], "query");
|
|
@@ -22836,7 +22836,7 @@ var downloadRerankModel = /* @__PURE__ */ __name(async (id2, { env, progress = /
|
|
|
22836
22836
|
}
|
|
22837
22837
|
await nativeRuntime({ env, progress });
|
|
22838
22838
|
progress(`${model.id}: loading it once to check it works`);
|
|
22839
|
-
const { openReranker } = await import("./rerank-
|
|
22839
|
+
const { openReranker } = await import("./rerank-KG2USEME.js");
|
|
22840
22840
|
const reranker = await openReranker(model, directory2);
|
|
22841
22841
|
try {
|
|
22842
22842
|
await reranker.score("check", ["check"]);
|
|
@@ -22854,7 +22854,7 @@ var downloadImageModel = /* @__PURE__ */ __name(async (id2, { env, progress = /*
|
|
|
22854
22854
|
await installFiles(placedImage(model, directory2), { progress });
|
|
22855
22855
|
}
|
|
22856
22856
|
progress(`${model.id}: loading it once to check it works`);
|
|
22857
|
-
const { openPictureEmbedder } = await import("./embedder-
|
|
22857
|
+
const { openPictureEmbedder } = await import("./embedder-MQAPNQBH.js");
|
|
22858
22858
|
const embedder = await openPictureEmbedder(model, directory2);
|
|
22859
22859
|
try {
|
|
22860
22860
|
const vector = await embedder.embedQuery("check");
|
|
@@ -22866,7 +22866,7 @@ var downloadImageModel = /* @__PURE__ */ __name(async (id2, { env, progress = /*
|
|
|
22866
22866
|
return { model, directory: directory2 };
|
|
22867
22867
|
}, "downloadImageModel");
|
|
22868
22868
|
|
|
22869
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22869
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/services/account.js
|
|
22870
22870
|
var accountService = /* @__PURE__ */ __name((deps) => {
|
|
22871
22871
|
const online = /* @__PURE__ */ __name(async (command) => {
|
|
22872
22872
|
if (deps.offline)
|
|
@@ -22938,7 +22938,7 @@ var accountService = /* @__PURE__ */ __name((deps) => {
|
|
|
22938
22938
|
};
|
|
22939
22939
|
}, "accountService");
|
|
22940
22940
|
|
|
22941
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22941
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/domain/send-time.js
|
|
22942
22942
|
var MINUTE = 6e4;
|
|
22943
22943
|
var YEAR = 365 * 24 * 60 * MINUTE;
|
|
22944
22944
|
var DELAY = /^(\d+)(m|h|d)$/;
|
|
@@ -22957,7 +22957,7 @@ var sendTime = /* @__PURE__ */ __name((value, now = Date.now(), flag = "--at-tim
|
|
|
22957
22957
|
return new Date(at - at % MINUTE).toISOString();
|
|
22958
22958
|
}, "sendTime");
|
|
22959
22959
|
|
|
22960
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22960
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/services/admin.js
|
|
22961
22961
|
var recordMembership = /* @__PURE__ */ __name(async (deps, operationId, done2, change, fix, write) => {
|
|
22962
22962
|
try {
|
|
22963
22963
|
const held = await accountStoreIfOpen(deps);
|
|
@@ -23204,7 +23204,7 @@ var linkLimits = /* @__PURE__ */ __name(({ approval, expires, maxUses }) => {
|
|
|
23204
23204
|
return expires === void 0 ? void 0 : sendTime(expires, Date.now(), "--expire-time");
|
|
23205
23205
|
}, "linkLimits");
|
|
23206
23206
|
|
|
23207
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23207
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/services/mail-search.js
|
|
23208
23208
|
var THREADS_PAGE = 500;
|
|
23209
23209
|
var threadsOf = /* @__PURE__ */ __name(async (store, key) => {
|
|
23210
23210
|
const account = await store.accounts.storedAccount(key).catch(() => void 0);
|
|
@@ -23283,7 +23283,7 @@ var readMail = /* @__PURE__ */ __name(async (store, locator, { before: before2 =
|
|
|
23283
23283
|
return thread.slice(Math.max(0, at - before2), at + after + 1).map((hit) => hit.id === message ? { ...hit, anchor: true } : hit);
|
|
23284
23284
|
}, "readMail");
|
|
23285
23285
|
|
|
23286
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23286
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/services/search-kind.js
|
|
23287
23287
|
var NO_MAIL = "no_mail";
|
|
23288
23288
|
var MAIL = "email";
|
|
23289
23289
|
var listContextOf = /* @__PURE__ */ __name(async (store, account, app, stored) => {
|
|
@@ -23330,7 +23330,7 @@ var accountsOfKind = /* @__PURE__ */ __name((kind, chosen, held, explicit, comma
|
|
|
23330
23330
|
return chosenMail.map(({ provider, account }) => ({ provider, account }));
|
|
23331
23331
|
}, "accountsOfKind");
|
|
23332
23332
|
|
|
23333
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23333
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/services/messages-search.js
|
|
23334
23334
|
var MAIL_FIELDS = /* @__PURE__ */ new Set(["to", "cc", "bcc", "subject", "mailbox", "label", "is"]);
|
|
23335
23335
|
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");
|
|
23336
23336
|
var prepareLucene = /* @__PURE__ */ __name(async (store, account, request, messenger) => {
|
|
@@ -23661,7 +23661,7 @@ var statsLucene = /* @__PURE__ */ __name(async (store, account, request, messeng
|
|
|
23661
23661
|
};
|
|
23662
23662
|
}, "statsLucene");
|
|
23663
23663
|
|
|
23664
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23664
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/services/rankings-selection.js
|
|
23665
23665
|
var RANKING_SELECTION_BYTES = 64 * 1024;
|
|
23666
23666
|
var object = /* @__PURE__ */ __name((value) => value !== null && typeof value === "object" && !Array.isArray(value) ? value : void 0, "object");
|
|
23667
23667
|
function invalid3(message = "ranking selection is invalid \u2014 obtain a new drilldown from stats top") {
|
|
@@ -23830,7 +23830,7 @@ var readRankingSelection = /* @__PURE__ */ __name(async (store, input) => {
|
|
|
23830
23830
|
};
|
|
23831
23831
|
}, "readRankingSelection");
|
|
23832
23832
|
|
|
23833
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23833
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/services/search-record.js
|
|
23834
23834
|
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");
|
|
23835
23835
|
var searchRecordOf = /* @__PURE__ */ __name((command, params) => ({
|
|
23836
23836
|
command,
|
|
@@ -23840,7 +23840,7 @@ var searchRecordOf = /* @__PURE__ */ __name((command, params) => ({
|
|
|
23840
23840
|
fieldsVersion: FIELD_VERSION
|
|
23841
23841
|
}), "searchRecordOf");
|
|
23842
23842
|
|
|
23843
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23843
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/services/admin-statistics.js
|
|
23844
23844
|
function invalid4(message) {
|
|
23845
23845
|
throw new CliError("validation_error", message);
|
|
23846
23846
|
}
|
|
@@ -24134,7 +24134,7 @@ var adminStatisticsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
24134
24134
|
}, "evidence")
|
|
24135
24135
|
}), "adminStatisticsService");
|
|
24136
24136
|
|
|
24137
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24137
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/services/agenda.js
|
|
24138
24138
|
var DAY = 864e5;
|
|
24139
24139
|
var CLAIMS = ["none", "mine", "others", "any"];
|
|
24140
24140
|
var TASK_FIELDS = /* @__PURE__ */ new Set(["tag", "category", "claimed"]);
|
|
@@ -24356,10 +24356,10 @@ var agendaItem = /* @__PURE__ */ __name((shown) => {
|
|
|
24356
24356
|
};
|
|
24357
24357
|
}, "agendaItem");
|
|
24358
24358
|
|
|
24359
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24359
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/services/archive.js
|
|
24360
24360
|
import { setTimeout as sleep3 } from "node:timers/promises";
|
|
24361
24361
|
|
|
24362
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24362
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/services/backfill-estimate.js
|
|
24363
24363
|
var REQUEST_MS = 400;
|
|
24364
24364
|
var estimateBackfill = /* @__PURE__ */ __name(({ ranges, held, newest, page, maxPages, pauseMs }) => {
|
|
24365
24365
|
const lowest = ranges[0];
|
|
@@ -24382,13 +24382,13 @@ var estimateBackfill = /* @__PURE__ */ __name(({ ranges, held, newest, page, max
|
|
|
24382
24382
|
};
|
|
24383
24383
|
}, "estimateBackfill");
|
|
24384
24384
|
|
|
24385
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24385
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/domain/recovery.js
|
|
24386
24386
|
var withRecovery = /* @__PURE__ */ __name((error) => ({
|
|
24387
24387
|
...error,
|
|
24388
24388
|
retryable: typeof error.retryable === "boolean" ? error.retryable : error.code === "rate_limited" || error.status === 429
|
|
24389
24389
|
}), "withRecovery");
|
|
24390
24390
|
|
|
24391
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24391
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/services/batch.js
|
|
24392
24392
|
var actionable = /* @__PURE__ */ __name((error) => {
|
|
24393
24393
|
if (isCliFailure(error))
|
|
24394
24394
|
return withRecovery({ code: error.code, message: error.message, ...error.details });
|
|
@@ -24471,7 +24471,7 @@ var mergeBatches = /* @__PURE__ */ __name((a, b) => {
|
|
|
24471
24471
|
};
|
|
24472
24472
|
}, "mergeBatches");
|
|
24473
24473
|
|
|
24474
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24474
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/services/patience.js
|
|
24475
24475
|
import { setTimeout as sleep2 } from "node:timers/promises";
|
|
24476
24476
|
var LONGEST_WAIT_MS = 5 * 60 * 1e3;
|
|
24477
24477
|
var patiently = /* @__PURE__ */ __name(async (request, note, stop) => {
|
|
@@ -24494,7 +24494,7 @@ var patiently = /* @__PURE__ */ __name(async (request, note, stop) => {
|
|
|
24494
24494
|
}
|
|
24495
24495
|
}, "patiently");
|
|
24496
24496
|
|
|
24497
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24497
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/images/context/index.js
|
|
24498
24498
|
var CONTEXT_MESSAGES2 = 3;
|
|
24499
24499
|
var CONTEXT_MINUTES = 10;
|
|
24500
24500
|
var MAX_CHARS = 1200;
|
|
@@ -24518,12 +24518,12 @@ var context = {
|
|
|
24518
24518
|
}, "describe")
|
|
24519
24519
|
};
|
|
24520
24520
|
|
|
24521
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24521
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/images/registry.js
|
|
24522
24522
|
var BUILT_INS = [context];
|
|
24523
24523
|
var providers = [...BUILT_INS];
|
|
24524
24524
|
var registeredImageProviders = /* @__PURE__ */ __name(() => providers, "registeredImageProviders");
|
|
24525
24525
|
|
|
24526
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24526
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/services/conversations.js
|
|
24527
24527
|
var READ_PAGE = 5e3;
|
|
24528
24528
|
var CHAIN = 50;
|
|
24529
24529
|
var CONVERSATION_QUERY = {
|
|
@@ -24675,7 +24675,7 @@ var sized = /* @__PURE__ */ __name((size2) => {
|
|
|
24675
24675
|
return size2;
|
|
24676
24676
|
}, "sized");
|
|
24677
24677
|
|
|
24678
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24678
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/services/embeddings-maintenance.js
|
|
24679
24679
|
var REFRESH_BOUNDS = { maxChats: 20, maxChunks: 2e3 };
|
|
24680
24680
|
var MESSAGE_PAGE = 5e3;
|
|
24681
24681
|
var PER_SESSION = 8;
|
|
@@ -24694,7 +24694,7 @@ var embeddingTarget = /* @__PURE__ */ __name((deps, choice = DEFAULT_TEXT_MODEL)
|
|
|
24694
24694
|
price: remote.price,
|
|
24695
24695
|
installed: true,
|
|
24696
24696
|
perBatch: PER_REQUEST * concurrency,
|
|
24697
|
-
open: /* @__PURE__ */ __name(async () => (await import("./remote-
|
|
24697
|
+
open: /* @__PURE__ */ __name(async () => (await import("./remote-RVZWRCCT.js")).openRemote(remote, apiKey, { concurrency }), "open")
|
|
24698
24698
|
};
|
|
24699
24699
|
}
|
|
24700
24700
|
const model = textModel(choice);
|
|
@@ -24711,7 +24711,7 @@ var embeddingTarget = /* @__PURE__ */ __name((deps, choice = DEFAULT_TEXT_MODEL)
|
|
|
24711
24711
|
if (!isTextModelInstalled(model, directory2))
|
|
24712
24712
|
throw notDownloaded(model.id);
|
|
24713
24713
|
if (apart) {
|
|
24714
|
-
const { openProcess } = await import("./process-
|
|
24714
|
+
const { openProcess } = await import("./process-OBESF2XG.js");
|
|
24715
24715
|
return openProcess(model, directory2, { threads: threads ?? defaultThreads() });
|
|
24716
24716
|
}
|
|
24717
24717
|
return openEmbedder(model, directory2, { threads: threads ?? defaultThreads() });
|
|
@@ -25000,7 +25000,7 @@ var shaped = /* @__PURE__ */ __name(({ chatId, builtAt, algorithmVersion, pendin
|
|
|
25000
25000
|
return { ...one, state };
|
|
25001
25001
|
}, "shaped");
|
|
25002
25002
|
|
|
25003
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25003
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/services/search-catchup.js
|
|
25004
25004
|
var CATCH_UP_BOUNDS = { maxChunks: 500, maxMessages: 1e4, timeMs: 3e4 };
|
|
25005
25005
|
var validateCatchUpBounds = /* @__PURE__ */ __name((options) => {
|
|
25006
25006
|
for (const [key, value, maximum] of [
|
|
@@ -25053,7 +25053,7 @@ var catchUpSearch = /* @__PURE__ */ __name(async (deps, chat, options, signal, c
|
|
|
25053
25053
|
}
|
|
25054
25054
|
}, "catchUpSearch");
|
|
25055
25055
|
|
|
25056
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25056
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/services/archive.js
|
|
25057
25057
|
var pushed = /* @__PURE__ */ __name((deps, what) => {
|
|
25058
25058
|
if (deps.reads === "store") {
|
|
25059
25059
|
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`);
|
|
@@ -25370,7 +25370,7 @@ var timeOfKey = /* @__PURE__ */ __name(async (store, account, chatId, key, byTim
|
|
|
25370
25370
|
return message?.timestamp ?? fallback;
|
|
25371
25371
|
}, "timeOfKey");
|
|
25372
25372
|
|
|
25373
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25373
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/services/archive-gaps.js
|
|
25374
25374
|
import { createHash as createHash6, randomUUID as randomUUID6 } from "node:crypto";
|
|
25375
25375
|
var GAP_BOUNDS = { maxGaps: 5, limit: 500, timeMs: 3e4 };
|
|
25376
25376
|
var validateRepair = /* @__PURE__ */ __name((messenger, options) => {
|
|
@@ -25507,12 +25507,12 @@ var gapsService = /* @__PURE__ */ __name((deps) => {
|
|
|
25507
25507
|
return { plan, repair };
|
|
25508
25508
|
}, "gapsService");
|
|
25509
25509
|
|
|
25510
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25510
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/services/attachments.js
|
|
25511
25511
|
import { createHash as createHash8 } from "node:crypto";
|
|
25512
25512
|
import { constants as constants4 } from "node:fs";
|
|
25513
25513
|
import { open as open9, readFile, stat as stat2 } from "node:fs/promises";
|
|
25514
25514
|
|
|
25515
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25515
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/attachments/directory.js
|
|
25516
25516
|
import { lstat as lstat5, readdir as readdir3, realpath as realpath6 } from "node:fs/promises";
|
|
25517
25517
|
import { basename as basename6, join as join12, relative as relative2, sep as sep2 } from "node:path";
|
|
25518
25518
|
var MAX_FILES = 1e4;
|
|
@@ -25583,15 +25583,15 @@ var directoryPaths = /* @__PURE__ */ __name(async (store, chat, directory2, app,
|
|
|
25583
25583
|
return choices;
|
|
25584
25584
|
}, "directoryPaths");
|
|
25585
25585
|
|
|
25586
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25586
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/attachments/documents.js
|
|
25587
25587
|
import { posix } from "node:path";
|
|
25588
25588
|
|
|
25589
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25589
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/attachments/container.js
|
|
25590
25590
|
import { setImmediate as tick } from "node:timers/promises";
|
|
25591
25591
|
import { crc32 } from "node:zlib";
|
|
25592
25592
|
var import_xmldom = __toESM(require_lib(), 1);
|
|
25593
25593
|
|
|
25594
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25594
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/attachments/encoding.js
|
|
25595
25595
|
var import_chardet = __toESM(require_lib2(), 1);
|
|
25596
25596
|
var import_iconv_lite = __toESM(require_lib3(), 1);
|
|
25597
25597
|
var SAMPLE = 65536;
|
|
@@ -25693,7 +25693,7 @@ var decodeXml = /* @__PURE__ */ __name((bytes2) => {
|
|
|
25693
25693
|
return result.text;
|
|
25694
25694
|
}, "decodeXml");
|
|
25695
25695
|
|
|
25696
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25696
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/attachments/container.js
|
|
25697
25697
|
var MAX_PART = 10 * 1024 * 1024;
|
|
25698
25698
|
var MAX_ENTRIES = 1e3;
|
|
25699
25699
|
var decoder = new TextDecoder("utf-8", { fatal: true });
|
|
@@ -25908,7 +25908,7 @@ var elements = /* @__PURE__ */ __name((node, name, namespace) => {
|
|
|
25908
25908
|
return found;
|
|
25909
25909
|
}, "elements");
|
|
25910
25910
|
|
|
25911
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25911
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/attachments/sheets.js
|
|
25912
25912
|
var columnName = /* @__PURE__ */ __name((column) => {
|
|
25913
25913
|
let name = "";
|
|
25914
25914
|
for (let rest = column; rest > 0; rest = Math.floor((rest - 1) / 26))
|
|
@@ -25963,7 +25963,7 @@ var sheetText = /* @__PURE__ */ __name((sheets2, maxChars = MAX_TEXT_CHARS) => {
|
|
|
25963
25963
|
return { text: parts.join("").trim(), truncated: false };
|
|
25964
25964
|
}, "sheetText");
|
|
25965
25965
|
|
|
25966
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25966
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/attachments/documents.js
|
|
25967
25967
|
var OFFICE = "urn:oasis:names:tc:opendocument:xmlns:office:1.0";
|
|
25968
25968
|
var TEXT = "urn:oasis:names:tc:opendocument:xmlns:text:1.0";
|
|
25969
25969
|
var TABLE = "urn:oasis:names:tc:opendocument:xmlns:table:1.0";
|
|
@@ -26363,10 +26363,10 @@ var readDocument = /* @__PURE__ */ __name(async (bytes2, kind, signal) => {
|
|
|
26363
26363
|
}
|
|
26364
26364
|
}, "readDocument");
|
|
26365
26365
|
|
|
26366
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26366
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/attachments/extract.js
|
|
26367
26367
|
import { extname as extname3 } from "node:path";
|
|
26368
26368
|
|
|
26369
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26369
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/readers/engine.js
|
|
26370
26370
|
import { readFileSync as readFileSync2 } from "node:fs";
|
|
26371
26371
|
import { dirname as dirname6, extname as extname2, join as join13 } from "node:path";
|
|
26372
26372
|
import { fileURLToPath } from "node:url";
|
|
@@ -26427,7 +26427,7 @@ var derived = /* @__PURE__ */ __name((bytes2, extractor, read) => {
|
|
|
26427
26427
|
}
|
|
26428
26428
|
}, "derived");
|
|
26429
26429
|
|
|
26430
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26430
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/readers/image/index.js
|
|
26431
26431
|
var IMAGES = /* @__PURE__ */ new Set([".jpg", ".jpeg", ".png", ".webp", ".gif", ".heic", ".tif", ".tiff", ".bmp"]);
|
|
26432
26432
|
var image2 = {
|
|
26433
26433
|
id: "image",
|
|
@@ -26436,7 +26436,7 @@ var image2 = {
|
|
|
26436
26436
|
read: /* @__PURE__ */ __name(async () => ({ status: "needs-agent" }), "read")
|
|
26437
26437
|
};
|
|
26438
26438
|
|
|
26439
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26439
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/readers/doc/index.js
|
|
26440
26440
|
var OLE = "\xD0\xCF\xE0\xA1\xB1\xE1";
|
|
26441
26441
|
var doc = {
|
|
26442
26442
|
id: "doc",
|
|
@@ -26448,7 +26448,7 @@ var doc = {
|
|
|
26448
26448
|
}), "read")
|
|
26449
26449
|
};
|
|
26450
26450
|
|
|
26451
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26451
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/readers/docx/index.js
|
|
26452
26452
|
var DOCX = "application/vnd.openxmlformats-officedocument.wordprocessingml.document";
|
|
26453
26453
|
var docx = {
|
|
26454
26454
|
id: "docx",
|
|
@@ -26461,7 +26461,7 @@ var docx = {
|
|
|
26461
26461
|
}), "read")
|
|
26462
26462
|
};
|
|
26463
26463
|
|
|
26464
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26464
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/attachments/markup.js
|
|
26465
26465
|
var import_iconv_lite2 = __toESM(require_lib3(), 1);
|
|
26466
26466
|
var RTF_SKIPPED = /* @__PURE__ */ new Set([
|
|
26467
26467
|
"fonttbl",
|
|
@@ -26637,7 +26637,7 @@ var htmlText = /* @__PURE__ */ __name((source) => {
|
|
|
26637
26637
|
}, "htmlText");
|
|
26638
26638
|
var safeChar = /* @__PURE__ */ __name((code, fallback) => code > 0 && code <= 1114111 ? String.fromCodePoint(code) : fallback, "safeChar");
|
|
26639
26639
|
|
|
26640
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26640
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/readers/html/page.js
|
|
26641
26641
|
var clean = /* @__PURE__ */ __name((value) => typeof value === "string" ? value.replace(/\s+/g, " ").trim() : "", "clean");
|
|
26642
26642
|
var namesIn = /* @__PURE__ */ __name((value) => [value].flat().map((entry) => typeof entry === "string" ? clean(entry) : clean(entry?.name)).filter(Boolean).join(", "), "namesIn");
|
|
26643
26643
|
var jsonLdNodes = /* @__PURE__ */ __name((document) => {
|
|
@@ -26693,7 +26693,7 @@ var markdownSections = /* @__PURE__ */ __name((text) => {
|
|
|
26693
26693
|
return found.map((section, index) => ({ ...section, end: found[index + 1]?.start ?? text.length }));
|
|
26694
26694
|
}, "markdownSections");
|
|
26695
26695
|
|
|
26696
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26696
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/readers/html/index.js
|
|
26697
26697
|
var HTML = /* @__PURE__ */ new Set([".html", ".htm", ".xhtml"]);
|
|
26698
26698
|
var first = /* @__PURE__ */ __name((...values) => values.find((value) => typeof value === "string" && value !== ""), "first");
|
|
26699
26699
|
var loaded = /* @__PURE__ */ __name(async (load, name) => {
|
|
@@ -26764,7 +26764,7 @@ var html = {
|
|
|
26764
26764
|
}, "read")
|
|
26765
26765
|
};
|
|
26766
26766
|
|
|
26767
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26767
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/readers/office/index.js
|
|
26768
26768
|
var office = {
|
|
26769
26769
|
id: "office",
|
|
26770
26770
|
version: documentExtractor("odt"),
|
|
@@ -26775,7 +26775,7 @@ var office = {
|
|
|
26775
26775
|
}, "read")
|
|
26776
26776
|
};
|
|
26777
26777
|
|
|
26778
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26778
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/readers/pdf/index.js
|
|
26779
26779
|
var pdf = {
|
|
26780
26780
|
id: "pdf",
|
|
26781
26781
|
version: "unpdf",
|
|
@@ -26842,7 +26842,7 @@ var pdf = {
|
|
|
26842
26842
|
}), "read")
|
|
26843
26843
|
};
|
|
26844
26844
|
|
|
26845
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26845
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/readers/plain/index.js
|
|
26846
26846
|
var PLAIN = /* @__PURE__ */ new Set([".txt", ".md", ".markdown", ".csv", ".tsv", ".json", ".log"]);
|
|
26847
26847
|
var isPlain = /* @__PURE__ */ __name((hint) => PLAIN.has(extensionOf(hint)) || hint.mime?.startsWith("text/") || hint.mime === "application/json", "isPlain");
|
|
26848
26848
|
var readPlain = /* @__PURE__ */ __name((bytes2) => {
|
|
@@ -26862,7 +26862,7 @@ var plain = {
|
|
|
26862
26862
|
read: /* @__PURE__ */ __name(async (bytes2) => readPlain(bytes2), "read")
|
|
26863
26863
|
};
|
|
26864
26864
|
|
|
26865
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26865
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/readers/rtf/index.js
|
|
26866
26866
|
var rtf = {
|
|
26867
26867
|
id: "rtf",
|
|
26868
26868
|
version: "v1",
|
|
@@ -26870,10 +26870,10 @@ var rtf = {
|
|
|
26870
26870
|
read: /* @__PURE__ */ __name(async (bytes2) => derived(bytes2, "rtf:v1", rtfText), "read")
|
|
26871
26871
|
};
|
|
26872
26872
|
|
|
26873
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26873
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/readers/sheets/index.js
|
|
26874
26874
|
import { basename as basename7 } from "node:path";
|
|
26875
26875
|
|
|
26876
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26876
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/attachments/csv-spans.js
|
|
26877
26877
|
var delimitedSpans = /* @__PURE__ */ __name((text, delimiter, maxCells = 1e4) => {
|
|
26878
26878
|
const cells = [];
|
|
26879
26879
|
let row = 1, column = 1, start = 0, quoted = false, truncated = false;
|
|
@@ -26911,7 +26911,7 @@ var delimitedSpans = /* @__PURE__ */ __name((text, delimiter, maxCells = 1e4) =>
|
|
|
26911
26911
|
return { cells, truncated };
|
|
26912
26912
|
}, "delimitedSpans");
|
|
26913
26913
|
|
|
26914
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26914
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/readers/sheets/index.js
|
|
26915
26915
|
var DELIMITED = {
|
|
26916
26916
|
".csv": ",",
|
|
26917
26917
|
".tsv": " ",
|
|
@@ -26950,7 +26950,7 @@ var sheets = {
|
|
|
26950
26950
|
}, "read")
|
|
26951
26951
|
};
|
|
26952
26952
|
|
|
26953
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26953
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/readers/registry.js
|
|
26954
26954
|
var BUILT_INS2 = [office, pdf, docx, doc, rtf, html, sheets, plain, image2];
|
|
26955
26955
|
var HEAD_BYTES = 1024;
|
|
26956
26956
|
var readers = [...BUILT_INS2];
|
|
@@ -26960,7 +26960,7 @@ var readWithRegistry = /* @__PURE__ */ __name(async (bytes2, hint, context2) =>
|
|
|
26960
26960
|
return reader ? reader.read(bytes2, hint, context2) : { status: "unsupported" };
|
|
26961
26961
|
}, "readWithRegistry");
|
|
26962
26962
|
|
|
26963
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26963
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/attachments/extract.js
|
|
26964
26964
|
var importEngine = /* @__PURE__ */ __name((name) => importFrom(new URL("attachments/extract.js", import.meta.resolve("@wirecat/cli-core")).href, name), "importEngine");
|
|
26965
26965
|
var extensionOf2 = /* @__PURE__ */ __name(({ name, path }) => extname3(name ?? path).toLowerCase(), "extensionOf");
|
|
26966
26966
|
var extractText = /* @__PURE__ */ __name(async (bytes2, hint, load, signal, env = process.env) => {
|
|
@@ -28039,7 +28039,7 @@ function imageSize(input) {
|
|
|
28039
28039
|
}
|
|
28040
28040
|
__name(imageSize, "imageSize");
|
|
28041
28041
|
|
|
28042
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28042
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/attachments/ocr.js
|
|
28043
28043
|
var MAX_PAGES = 20;
|
|
28044
28044
|
var MAX_PIXELS = 2e7;
|
|
28045
28045
|
var cancelled2 = /* @__PURE__ */ __name((signal) => {
|
|
@@ -28190,7 +28190,7 @@ var ocrPdf = /* @__PURE__ */ __name(async (bytes2, pipeline2, load, signal) => {
|
|
|
28190
28190
|
}
|
|
28191
28191
|
}, "ocrPdf");
|
|
28192
28192
|
|
|
28193
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28193
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/attachments/pdf-preview.js
|
|
28194
28194
|
var pdfPreview = /* @__PURE__ */ __name(async (bytes2, page, signal, load = importEngine, env = process.env) => {
|
|
28195
28195
|
const limits = pdfPreviewLimits(env);
|
|
28196
28196
|
const cancelled4 = /* @__PURE__ */ __name(() => {
|
|
@@ -28267,7 +28267,7 @@ var pdfPreview = /* @__PURE__ */ __name(async (bytes2, page, signal, load = impo
|
|
|
28267
28267
|
}
|
|
28268
28268
|
}, "pdfPreview");
|
|
28269
28269
|
|
|
28270
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28270
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/attachments/transfer.js
|
|
28271
28271
|
import { createHash as createHash7 } from "node:crypto";
|
|
28272
28272
|
import { constants as constants3 } from "node:fs";
|
|
28273
28273
|
import { lstat as lstat6, open as open8 } from "node:fs/promises";
|
|
@@ -28375,7 +28375,7 @@ var transferMime = /* @__PURE__ */ __name((head, hint, name = null) => {
|
|
|
28375
28375
|
return hint !== null && /^[a-z0-9.+-]+\/[a-z0-9.+-]+$/i.test(hint) ? hint : "application/octet-stream";
|
|
28376
28376
|
}, "transferMime");
|
|
28377
28377
|
|
|
28378
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28378
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/services/attachments.js
|
|
28379
28379
|
var ATTACHMENT_QUERY = {
|
|
28380
28380
|
entity: "attachment",
|
|
28381
28381
|
backend: "sql",
|
|
@@ -28756,7 +28756,7 @@ var attachmentsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
28756
28756
|
}, "setText")
|
|
28757
28757
|
}), "attachmentsService");
|
|
28758
28758
|
|
|
28759
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28759
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/services/chat-documents.js
|
|
28760
28760
|
var chatDocumentsService = /* @__PURE__ */ __name((deps) => ({
|
|
28761
28761
|
list: /* @__PURE__ */ __name(async (chat, { limit, offset, ref }) => {
|
|
28762
28762
|
const store = await accountStore(deps);
|
|
@@ -28786,7 +28786,7 @@ var chatDocumentsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
28786
28786
|
}, "list")
|
|
28787
28787
|
}), "chatDocumentsService");
|
|
28788
28788
|
|
|
28789
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28789
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/services/retention.js
|
|
28790
28790
|
var observationDuration = /* @__PURE__ */ __name((text, flag) => {
|
|
28791
28791
|
const match = /^(\d+(?:\.\d+)?)([smhdw])$/.exec(text);
|
|
28792
28792
|
const units2 = { s: 1e3, m: 6e4, h: 36e5, d: 864e5, w: 6048e5 };
|
|
@@ -28873,7 +28873,7 @@ var isRetentionSelection = /* @__PURE__ */ __name((selection) => {
|
|
|
28873
28873
|
}
|
|
28874
28874
|
}, "isRetentionSelection");
|
|
28875
28875
|
|
|
28876
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28876
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/services/counters.js
|
|
28877
28877
|
var counterFields = /* @__PURE__ */ __name((text = "views,reactions,comments") => {
|
|
28878
28878
|
const fields = text.split(",").map((one) => one.trim());
|
|
28879
28879
|
if (!fields.length || fields.some((one) => !COUNTER_FIELDS.includes(one)) || new Set(fields).size !== fields.length)
|
|
@@ -29080,7 +29080,7 @@ var countersService = /* @__PURE__ */ __name((deps) => {
|
|
|
29080
29080
|
};
|
|
29081
29081
|
}, "countersService");
|
|
29082
29082
|
|
|
29083
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29083
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/services/search-refresh.js
|
|
29084
29084
|
var SYNC_KEY = "messages.sync-first";
|
|
29085
29085
|
var SYNC_BOUNDS = { maxChats: 5, timeMs: 3e4, maxMessages: 500 };
|
|
29086
29086
|
var keyOf2 = /* @__PURE__ */ __name((chat) => JSON.stringify([chat.account.provider, chat.account.account, chat.chatId]), "keyOf");
|
|
@@ -29212,7 +29212,7 @@ var withRefresh = /* @__PURE__ */ __name((found, refreshed) => ({
|
|
|
29212
29212
|
...!refreshed || refreshed.complete ? {} : { coverage: { ...found.coverage, state: "stale" } }
|
|
29213
29213
|
}), "withRefresh");
|
|
29214
29214
|
|
|
29215
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29215
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/services/embeddings-search.js
|
|
29216
29216
|
var CANDIDATES = 50;
|
|
29217
29217
|
var WORD_HITS = 200;
|
|
29218
29218
|
var RRF_K = 60;
|
|
@@ -29487,13 +29487,13 @@ var meanOf = /* @__PURE__ */ __name((vectors) => {
|
|
|
29487
29487
|
return mean.map((value) => value / length);
|
|
29488
29488
|
}, "meanOf");
|
|
29489
29489
|
|
|
29490
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29490
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/services/embeddings.js
|
|
29491
29491
|
var embeddingsService = /* @__PURE__ */ __name((deps) => ({
|
|
29492
29492
|
...embeddingsMaintenance(deps),
|
|
29493
29493
|
...embeddingsSearch(deps)
|
|
29494
29494
|
}), "embeddingsService");
|
|
29495
29495
|
|
|
29496
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29496
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/services/folders.js
|
|
29497
29497
|
var foldersService = /* @__PURE__ */ __name((deps) => {
|
|
29498
29498
|
const online = /* @__PURE__ */ __name(async (command) => {
|
|
29499
29499
|
if (deps.offline)
|
|
@@ -29634,7 +29634,7 @@ var foldersService = /* @__PURE__ */ __name((deps) => {
|
|
|
29634
29634
|
};
|
|
29635
29635
|
}, "foldersService");
|
|
29636
29636
|
|
|
29637
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29637
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/services/mentions.js
|
|
29638
29638
|
var REVIEW_COUNT = 500;
|
|
29639
29639
|
var mentionsService = /* @__PURE__ */ __name((deps) => {
|
|
29640
29640
|
const located = /* @__PURE__ */ __name(async () => {
|
|
@@ -29713,7 +29713,7 @@ var mentionsService = /* @__PURE__ */ __name((deps) => {
|
|
|
29713
29713
|
};
|
|
29714
29714
|
}, "mentionsService");
|
|
29715
29715
|
|
|
29716
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29716
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/domain/message-link.js
|
|
29717
29717
|
var messageLinkTarget = /* @__PURE__ */ __name((reference, message, provider) => {
|
|
29718
29718
|
if (isLocator(reference)) {
|
|
29719
29719
|
if (message !== void 0)
|
|
@@ -29760,7 +29760,7 @@ var validatePermalink = /* @__PURE__ */ __name((link5) => {
|
|
|
29760
29760
|
return { url: link5.url, access: link5.access, reason: link5.reason };
|
|
29761
29761
|
}, "validatePermalink");
|
|
29762
29762
|
|
|
29763
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29763
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/domain/pin-duration.js
|
|
29764
29764
|
var spokenSeconds = /* @__PURE__ */ __name((seconds) => {
|
|
29765
29765
|
if (seconds % 86400 === 0 && seconds > 86400)
|
|
29766
29766
|
return `${seconds / 86400}d`;
|
|
@@ -29792,7 +29792,7 @@ var pinDurationOf = /* @__PURE__ */ __name((value, allowed, flag = "--expire-tim
|
|
|
29792
29792
|
return seconds;
|
|
29793
29793
|
}, "pinDurationOf");
|
|
29794
29794
|
|
|
29795
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29795
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/sends/send-as.js
|
|
29796
29796
|
var sendAsCheck = /* @__PURE__ */ __name((connection, sendAs) => {
|
|
29797
29797
|
if (sendAs === void 0) {
|
|
29798
29798
|
const saved = connection.savedSender?.bind(connection);
|
|
@@ -29817,7 +29817,7 @@ var typedSendAs = /* @__PURE__ */ __name((typed) => {
|
|
|
29817
29817
|
return sendAs;
|
|
29818
29818
|
}, "typedSendAs");
|
|
29819
29819
|
|
|
29820
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29820
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/search/question-plan.js
|
|
29821
29821
|
var words = /* @__PURE__ */ __name((text) => normalize(text).match(/[\p{L}\p{N}]+/gu) ?? [], "words");
|
|
29822
29822
|
var scaffolding = new Set(words("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"));
|
|
29823
29823
|
var questionWord = /\b(?:what|which|how|who|where|when|can|could|should)\b|(?:^|\s)(?:сколько|какой|какая|какие|какое|кто|кому|кем|где|когда|как|что|можно|может|могут|ли)(?:\s|$)/iu;
|
|
@@ -29932,7 +29932,7 @@ function planQuestion(text, strict = false) {
|
|
|
29932
29932
|
}
|
|
29933
29933
|
__name(planQuestion, "planQuestion");
|
|
29934
29934
|
|
|
29935
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29935
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/services/messages-combined.js
|
|
29936
29936
|
var COMBINED_DEFAULTS = { candidateDepth: 300, rrfK: 60, rerank: "all", chatCap: 0 };
|
|
29937
29937
|
var tokensOf = /* @__PURE__ */ __name((text) => normalize(text).match(/[\p{L}\p{N}\p{Co}\p{M}]+/gu) ?? [], "tokensOf");
|
|
29938
29938
|
var searchCombined = /* @__PURE__ */ __name(async (store, account, request, messenger = {}, options = COMBINED_DEFAULTS) => {
|
|
@@ -30125,7 +30125,7 @@ var signals = /* @__PURE__ */ __name((hit, terms, corrections, execution, mode,
|
|
|
30125
30125
|
return mode === "coverage" ? coverage * 4 : mode === "proximity" ? proximity : mode === "phrase" ? phrase : coverage * 4 + proximity + phrase;
|
|
30126
30126
|
}, "signals");
|
|
30127
30127
|
|
|
30128
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30128
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/services/messages-discovery.js
|
|
30129
30129
|
var MEANING_DEPTH = 100;
|
|
30130
30130
|
var RRF_K2 = 60;
|
|
30131
30131
|
var RERANK_DEPTH = 50;
|
|
@@ -30394,7 +30394,7 @@ var mixedWithReranker = /* @__PURE__ */ __name((head, scores) => {
|
|
|
30394
30394
|
})).sort((a, b) => b.mixed - a.mixed).map(({ hit }) => hit);
|
|
30395
30395
|
}, "mixedWithReranker");
|
|
30396
30396
|
|
|
30397
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30397
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/services/thread-context.js
|
|
30398
30398
|
var THREAD_BOUNDS = { maxHops: 8, maxMessages: 50, maxBytes: 65536, withinMs: 864e5 };
|
|
30399
30399
|
var bytes = /* @__PURE__ */ __name((items, links) => Buffer.byteLength(JSON.stringify({ items, links }), "utf8"), "bytes");
|
|
30400
30400
|
var threadBounds = /* @__PURE__ */ __name((options = {}) => {
|
|
@@ -30593,7 +30593,7 @@ var readThreadContext = /* @__PURE__ */ __name(async (store, account, chat, mess
|
|
|
30593
30593
|
return result;
|
|
30594
30594
|
}, "readThreadContext");
|
|
30595
30595
|
|
|
30596
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30596
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/services/messages-archive-search.js
|
|
30597
30597
|
var SEARCH_FILL_MS = 200;
|
|
30598
30598
|
var statsStore = /* @__PURE__ */ __name(async (store, account, request, messenger = {}) => {
|
|
30599
30599
|
const stop = Date.now() + SEARCH_FILL_MS;
|
|
@@ -30653,12 +30653,12 @@ var accountOf2 = /* @__PURE__ */ __name((hit) => {
|
|
|
30653
30653
|
}, "accountOf");
|
|
30654
30654
|
var keyOf3 = /* @__PURE__ */ __name(({ provider, account }) => `${provider}/${account}`, "keyOf");
|
|
30655
30655
|
|
|
30656
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30656
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/services/pictures.js
|
|
30657
30657
|
import { createHash as createHash9 } from "node:crypto";
|
|
30658
30658
|
import { readFile as readFile2, stat as stat3 } from "node:fs/promises";
|
|
30659
30659
|
import { setTimeout as sleep4 } from "node:timers/promises";
|
|
30660
30660
|
|
|
30661
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30661
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/domain/models.js
|
|
30662
30662
|
var GROUP_SETTINGS = [
|
|
30663
30663
|
"allCanPin",
|
|
30664
30664
|
"onlyAdminsAdd",
|
|
@@ -30672,7 +30672,7 @@ var ADMIN_RIGHTS = ["read", "members", "admins", "info", "pin", "link", "post",
|
|
|
30672
30672
|
var senderIsMe = /* @__PURE__ */ __name((message, account) => message.outgoing === true || message.senderId !== null && String(message.senderId) === account, "senderIsMe");
|
|
30673
30673
|
var MEDIA_KINDS = ["photo", "video", "file", "audio", "link"];
|
|
30674
30674
|
|
|
30675
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30675
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/services/file-download.js
|
|
30676
30676
|
import { createWriteStream, mkdirSync } from "node:fs";
|
|
30677
30677
|
import { link as link4, rm } from "node:fs/promises";
|
|
30678
30678
|
import { basename as basename8, join as join14, resolve as resolve6 } from "node:path";
|
|
@@ -30795,7 +30795,7 @@ var save = /* @__PURE__ */ __name(async (file2, directory2, fallbackName, { uniq
|
|
|
30795
30795
|
}
|
|
30796
30796
|
}, "save");
|
|
30797
30797
|
|
|
30798
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30798
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/services/pictures.js
|
|
30799
30799
|
var PICTURE_MAX_BYTES = 25 * 1024 * 1024;
|
|
30800
30800
|
var PICTURE_FLOOR = 0.25;
|
|
30801
30801
|
var PAGE4 = 50;
|
|
@@ -30812,7 +30812,7 @@ var picturesService = /* @__PURE__ */ __name((deps) => {
|
|
|
30812
30812
|
const directory2 = imageModelsDirectory(deps.env);
|
|
30813
30813
|
if (!isImageModelInstalled(model2, directory2))
|
|
30814
30814
|
throw new CliError("not_found", missingModel(model2.id), { reason: "model.not-downloaded", model: model2.id });
|
|
30815
|
-
const { openPictureEmbedder } = await import("./embedder-
|
|
30815
|
+
const { openPictureEmbedder } = await import("./embedder-MQAPNQBH.js");
|
|
30816
30816
|
return openPictureEmbedder(model2, directory2);
|
|
30817
30817
|
}, "open");
|
|
30818
30818
|
const embedder = /* @__PURE__ */ __name(() => {
|
|
@@ -31009,7 +31009,7 @@ var withPictures = /* @__PURE__ */ __name((messages, pictures) => ({
|
|
|
31009
31009
|
}, "search")
|
|
31010
31010
|
}), "withPictures");
|
|
31011
31011
|
|
|
31012
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31012
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/services/messages-meaning.js
|
|
31013
31013
|
var meaningLane = /* @__PURE__ */ __name((deps) => async (question, accounts, shared) => {
|
|
31014
31014
|
const target2 = embeddingTarget(deps, DEFAULT_TEXT_MODEL);
|
|
31015
31015
|
const skipped = /* @__PURE__ */ __name((reason, step) => ({
|
|
@@ -31057,7 +31057,7 @@ var meaningLane = /* @__PURE__ */ __name((deps) => async (question, accounts, sh
|
|
|
31057
31057
|
}
|
|
31058
31058
|
}, "meaningLane");
|
|
31059
31059
|
|
|
31060
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31060
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/services/messages-rerank.js
|
|
31061
31061
|
var rerankLane = /* @__PURE__ */ __name((deps) => {
|
|
31062
31062
|
const choice = deps.reranker ?? DEFAULT_RERANK_MODEL;
|
|
31063
31063
|
if (choice === "off")
|
|
@@ -31069,9 +31069,9 @@ var rerankLane = /* @__PURE__ */ __name((deps) => {
|
|
|
31069
31069
|
return { skipped: { reason: `${model.id} is not downloaded`, step: "models.download", model: model.id } };
|
|
31070
31070
|
try {
|
|
31071
31071
|
const warm = deps.embedders;
|
|
31072
|
-
const reranker = warm ? await warm.reranker(`rerank:${model.id}`, async () => (await import("./process-
|
|
31072
|
+
const reranker = warm ? await warm.reranker(`rerank:${model.id}`, async () => (await import("./process-OBESF2XG.js")).openRerankerProcess(model, directory2, {
|
|
31073
31073
|
threads: defaultThreads()
|
|
31074
|
-
})) : await (await import("./rerank-
|
|
31074
|
+
})) : await (await import("./rerank-KG2USEME.js")).openReranker(model, directory2);
|
|
31075
31075
|
return {
|
|
31076
31076
|
model: model.id,
|
|
31077
31077
|
score: /* @__PURE__ */ __name((question, passages) => reranker.score(plainWords(question), passages), "score"),
|
|
@@ -31091,17 +31091,17 @@ var rerankLane = /* @__PURE__ */ __name((deps) => {
|
|
|
31091
31091
|
};
|
|
31092
31092
|
}, "rerankLane");
|
|
31093
31093
|
|
|
31094
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31094
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/services/document-pictures.js
|
|
31095
31095
|
var openPictureEmbedderFor = /* @__PURE__ */ __name(async ({ env, command } = {}) => {
|
|
31096
31096
|
const model = imageModel(DEFAULT_IMAGE_MODEL);
|
|
31097
31097
|
const directory2 = imageModelsDirectory(env);
|
|
31098
31098
|
if (!isImageModelInstalled(model, directory2))
|
|
31099
31099
|
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 });
|
|
31100
|
-
const { openPictureEmbedder } = await import("./embedder-
|
|
31100
|
+
const { openPictureEmbedder } = await import("./embedder-MQAPNQBH.js");
|
|
31101
31101
|
return openPictureEmbedder(model, directory2);
|
|
31102
31102
|
}, "openPictureEmbedderFor");
|
|
31103
31103
|
|
|
31104
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31104
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/services/document-source.js
|
|
31105
31105
|
var documentSource = /* @__PURE__ */ __name((note, accounts, profiles, file2) => {
|
|
31106
31106
|
const metadata = note.frontMatter;
|
|
31107
31107
|
const account = accounts.find(({ id: id2 }) => String(id2) === note.folderId);
|
|
@@ -31118,7 +31118,7 @@ var documentSource = /* @__PURE__ */ __name((note, accounts, profiles, file2) =>
|
|
|
31118
31118
|
};
|
|
31119
31119
|
}, "documentSource");
|
|
31120
31120
|
|
|
31121
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31121
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/services/notes-title-tier.js
|
|
31122
31122
|
var plainQueryWords = /* @__PURE__ */ __name((query) => {
|
|
31123
31123
|
let root;
|
|
31124
31124
|
try {
|
|
@@ -31145,7 +31145,7 @@ var titleTiers = /* @__PURE__ */ __name((hits, words2) => {
|
|
|
31145
31145
|
return [...hits].sort((a, b) => rank(a) - rank(b));
|
|
31146
31146
|
}, "titleTiers");
|
|
31147
31147
|
|
|
31148
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31148
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/services/notes-search.js
|
|
31149
31149
|
var storeQuery = /* @__PURE__ */ __name(async (store, text, { exact, timezone } = {}) => {
|
|
31150
31150
|
const ast = validateFields(parseLucene(text, { ...SEARCH_QUERY, defaultField: exact ? "exact" : "text" }));
|
|
31151
31151
|
const zone = timezoneOf(timezone);
|
|
@@ -31458,7 +31458,7 @@ var searchNotesOf = /* @__PURE__ */ __name(async (store, account, text, { accoun
|
|
|
31458
31458
|
};
|
|
31459
31459
|
}, "searchNotesOf");
|
|
31460
31460
|
|
|
31461
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31461
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/services/events-search.js
|
|
31462
31462
|
var MAX_EVENTS_OFFSET = 1e3;
|
|
31463
31463
|
var iso3 = /* @__PURE__ */ __name((at) => at === null ? null : new Date(at).toISOString(), "iso");
|
|
31464
31464
|
var accountIdsOf = /* @__PURE__ */ __name(async (store, accounts) => {
|
|
@@ -31570,7 +31570,7 @@ var searchEvents = /* @__PURE__ */ __name(async (store, query, { limit = 20, off
|
|
|
31570
31570
|
};
|
|
31571
31571
|
}, "searchEvents");
|
|
31572
31572
|
|
|
31573
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31573
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/services/search-all.js
|
|
31574
31574
|
var RESOURCES_SEARCHED = ["messages", "mail", "notes", "events"];
|
|
31575
31575
|
var skippable = /* @__PURE__ */ __name((error) => error instanceof CliError && (error.code === "validation_error" || error.code === "not_found"), "skippable");
|
|
31576
31576
|
var filtersBeside = /* @__PURE__ */ __name((text) => {
|
|
@@ -31774,7 +31774,7 @@ var searchAll = /* @__PURE__ */ __name(async (store, account, request, messenger
|
|
|
31774
31774
|
};
|
|
31775
31775
|
}, "searchAll");
|
|
31776
31776
|
|
|
31777
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31777
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/services/search-all-meetings.js
|
|
31778
31778
|
var RESOURCES_SEARCHED_WITH_MEETINGS = [...RESOURCES_SEARCHED, "meetings"];
|
|
31779
31779
|
var whole2 = /* @__PURE__ */ __name((value, minimum, maximum, label) => {
|
|
31780
31780
|
if (!Number.isSafeInteger(value) || value < minimum || value > maximum)
|
|
@@ -32021,7 +32021,7 @@ var searchAllOfSource = /* @__PURE__ */ __name(async (store, account, source, re
|
|
|
32021
32021
|
return { ...found, skipped: [...skipped, ...empty2, ...unnamed, ...found.skipped] };
|
|
32022
32022
|
}, "searchAllOfSource");
|
|
32023
32023
|
|
|
32024
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32024
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/services/server-search.js
|
|
32025
32025
|
var SERVER_SEARCH_KEY = "messages.server-search";
|
|
32026
32026
|
var SERVER_BOUNDS = { timeMs: 5e3, perCall: 100, maxCalls: 3 };
|
|
32027
32027
|
var DEFAULT_BACKEND = "both";
|
|
@@ -32210,7 +32210,7 @@ var searchServer = /* @__PURE__ */ __name(async (deps, request) => {
|
|
|
32210
32210
|
return { report, sources };
|
|
32211
32211
|
}, "searchServer");
|
|
32212
32212
|
|
|
32213
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32213
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/services/messages.js
|
|
32214
32214
|
var DELETE_AT_ONCE = 10;
|
|
32215
32215
|
var messagesService = /* @__PURE__ */ __name((deps) => {
|
|
32216
32216
|
const { guard } = deps;
|
|
@@ -32636,7 +32636,7 @@ var checkMediaOptions = /* @__PURE__ */ __name((messenger, asked, attachments) =
|
|
|
32636
32636
|
throw new CliError("validation_error", `${MEDIA_FLAGS[first2]} needs a --photo or --file`);
|
|
32637
32637
|
}, "checkMediaOptions");
|
|
32638
32638
|
|
|
32639
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32639
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/domain/channel-tags.js
|
|
32640
32640
|
var CHANNEL_TAG_RULES_VERSION = "keywords-v1";
|
|
32641
32641
|
var RULES = {
|
|
32642
32642
|
ai: [/\b(ai|gpt|llm|machine learning|artificial intelligence)\b/iu, /нейросет|искусственн/iu],
|
|
@@ -32651,7 +32651,7 @@ var classifyChannel = /* @__PURE__ */ __name((metadata) => Object.entries(RULES)
|
|
|
32651
32651
|
return fields.length ? [{ tag, score: fields.length / 3, fields }] : [];
|
|
32652
32652
|
}), "classifyChannel");
|
|
32653
32653
|
|
|
32654
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32654
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/services/metadata.js
|
|
32655
32655
|
var metadataService = /* @__PURE__ */ __name((deps) => {
|
|
32656
32656
|
const held = /* @__PURE__ */ __name(async (reference, { includeLeft = false } = {}) => {
|
|
32657
32657
|
const store = await deps.store();
|
|
@@ -32737,7 +32737,7 @@ var metadataService = /* @__PURE__ */ __name((deps) => {
|
|
|
32737
32737
|
};
|
|
32738
32738
|
}, "metadataService");
|
|
32739
32739
|
|
|
32740
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32740
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/moderation/run.js
|
|
32741
32741
|
var FIRST_LOOK_MS = 24 * 36e5;
|
|
32742
32742
|
var moderateWith = /* @__PURE__ */ __name(async (run) => {
|
|
32743
32743
|
const { chatId, title, rules, point, since, dryRun } = run;
|
|
@@ -32774,7 +32774,7 @@ var moderateWith = /* @__PURE__ */ __name(async (run) => {
|
|
|
32774
32774
|
return { chatId, rows, notes };
|
|
32775
32775
|
}, "moderateWith");
|
|
32776
32776
|
|
|
32777
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32777
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/services/moderation.js
|
|
32778
32778
|
var moderationService = /* @__PURE__ */ __name((deps) => {
|
|
32779
32779
|
const file2 = /* @__PURE__ */ __name(() => new ModerationRules(moderationPathFor(deps.messenger.app, deps.profile ?? "default", deps.env ?? process.env)), "file");
|
|
32780
32780
|
const group = /* @__PURE__ */ __name(async (chat) => {
|
|
@@ -32852,7 +32852,7 @@ var moderatorOf = /* @__PURE__ */ __name((adapter, deps) => ({
|
|
|
32852
32852
|
}, "removePerson")
|
|
32853
32853
|
}), "moderatorOf");
|
|
32854
32854
|
|
|
32855
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32855
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/services/private-people.js
|
|
32856
32856
|
var noteItem = /* @__PURE__ */ __name((provider, note) => ({
|
|
32857
32857
|
id: note.id,
|
|
32858
32858
|
contact: formatReference({ type: "contact", provider, id: note.personId }),
|
|
@@ -32896,7 +32896,7 @@ var privatePeopleService = /* @__PURE__ */ __name((deps) => {
|
|
|
32896
32896
|
};
|
|
32897
32897
|
}, "privatePeopleService");
|
|
32898
32898
|
|
|
32899
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32899
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/services/rankings.js
|
|
32900
32900
|
var empty = /* @__PURE__ */ __name(() => ({
|
|
32901
32901
|
total: 0,
|
|
32902
32902
|
population: 0,
|
|
@@ -33152,7 +33152,7 @@ var rankingsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
33152
33152
|
}, "evidence")
|
|
33153
33153
|
}), "rankingsService");
|
|
33154
33154
|
|
|
33155
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33155
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/services/searches.js
|
|
33156
33156
|
var savedSearchItem = /* @__PURE__ */ __name((one) => ({
|
|
33157
33157
|
id: one.id,
|
|
33158
33158
|
name: one.name,
|
|
@@ -33281,7 +33281,7 @@ var searchesService = /* @__PURE__ */ __name((deps) => {
|
|
|
33281
33281
|
};
|
|
33282
33282
|
}, "searchesService");
|
|
33283
33283
|
|
|
33284
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33284
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/services/tags.js
|
|
33285
33285
|
var TAGGING_QUERY = {
|
|
33286
33286
|
entity: "tagging",
|
|
33287
33287
|
backend: "sql",
|
|
@@ -33293,7 +33293,7 @@ var TAGGING_QUERY = {
|
|
|
33293
33293
|
var TAGGING_COLUMNS = {
|
|
33294
33294
|
tag: { type: "kw", sql: "x.tag" },
|
|
33295
33295
|
type: { type: "enum", sql: "x.tag_type" },
|
|
33296
|
-
name: { type: "kw", sql: "
|
|
33296
|
+
name: { type: "kw", sql: "x.name_folded", folded: true },
|
|
33297
33297
|
sources: {
|
|
33298
33298
|
where: /* @__PURE__ */ __name((node) => node.operator === "wildcard" ? { sql: "1", params: [] } : node.value.toLowerCase() === "auto" ? { sql: "x.auto = 1", params: [] } : { sql: "(x.auto = 0 OR x.source = 'owner')", params: [] }, "where")
|
|
33299
33299
|
},
|
|
@@ -33365,7 +33365,7 @@ var tagsService = /* @__PURE__ */ __name((deps) => {
|
|
|
33365
33365
|
};
|
|
33366
33366
|
}, "tagsService");
|
|
33367
33367
|
|
|
33368
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33368
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/services/topics.js
|
|
33369
33369
|
var actionOf = /* @__PURE__ */ __name(({ title, closed, pinned, hidden }) => {
|
|
33370
33370
|
const set = [closed, pinned, hidden].filter((one) => one !== void 0).length;
|
|
33371
33371
|
if (title !== void 0 || set !== 1)
|
|
@@ -33550,7 +33550,7 @@ var topicsService = /* @__PURE__ */ __name((deps) => {
|
|
|
33550
33550
|
};
|
|
33551
33551
|
}, "topicsService");
|
|
33552
33552
|
|
|
33553
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33553
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/services/evidence.js
|
|
33554
33554
|
import { createHash as createHash10, randomUUID as randomUUID7 } from "node:crypto";
|
|
33555
33555
|
var hash2 = /* @__PURE__ */ __name((value) => createHash10("sha256").update(JSON.stringify(value)).digest("hex"), "hash");
|
|
33556
33556
|
var positive = /* @__PURE__ */ __name((value, name, minimum = 1) => {
|
|
@@ -33624,7 +33624,7 @@ var prepareEvidencePacket = /* @__PURE__ */ __name(({ kind, source, page, limits
|
|
|
33624
33624
|
return { ...content, id: randomUUID7(), fingerprint: hash2(content) };
|
|
33625
33625
|
}, "prepareEvidencePacket");
|
|
33626
33626
|
|
|
33627
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33627
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/services/evidence-read.js
|
|
33628
33628
|
var readEvidencePacket = /* @__PURE__ */ __name(async (store, account, { chat, limit, before: before2 }, messenger = {}) => {
|
|
33629
33629
|
if (!Number.isSafeInteger(limit) || limit < 1 || limit > 100)
|
|
33630
33630
|
throw new CliError("validation_error", "evidence message limit must be an integer from 1 to 100");
|
|
@@ -33644,7 +33644,7 @@ var readEvidencePacket = /* @__PURE__ */ __name(async (store, account, { chat, l
|
|
|
33644
33644
|
return { ...packet, nextBeforeId: older && last ? last.id : null };
|
|
33645
33645
|
}, "readEvidencePacket");
|
|
33646
33646
|
|
|
33647
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33647
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/services/meeting-project-discovery.js
|
|
33648
33648
|
var scopeKeys = [
|
|
33649
33649
|
"accountId",
|
|
33650
33650
|
"meetingId",
|
|
@@ -33666,7 +33666,7 @@ var optionKeys = /* @__PURE__ */ new Set([
|
|
|
33666
33666
|
"maxVocabularyReadBytes"
|
|
33667
33667
|
]);
|
|
33668
33668
|
|
|
33669
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33669
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/context/communication-selection.js
|
|
33670
33670
|
var communicationFields = {
|
|
33671
33671
|
sources: pipe(array(strictObject({
|
|
33672
33672
|
id: pipe(string(), regex(/^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$/)),
|
|
@@ -33698,7 +33698,7 @@ var communicationRequest = /* @__PURE__ */ __name((value, preparationAfter) => {
|
|
|
33698
33698
|
return { ...input, after, before: before2 };
|
|
33699
33699
|
}, "communicationRequest");
|
|
33700
33700
|
|
|
33701
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33701
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/services/meeting-preparation-validation.js
|
|
33702
33702
|
var MEETING_PREPARATION_LIMITS = {
|
|
33703
33703
|
meetings: { min: 1, max: 20, default: 5 },
|
|
33704
33704
|
cues: { min: 1, max: 100, default: 10 },
|
|
@@ -33771,7 +33771,7 @@ var validateMeetingPreparationRequest = /* @__PURE__ */ __name((externalId, orig
|
|
|
33771
33771
|
};
|
|
33772
33772
|
}, "validateMeetingPreparationRequest");
|
|
33773
33773
|
|
|
33774
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33774
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/services/meeting-communications-selection.js
|
|
33775
33775
|
var validatePreparationCommunications = /* @__PURE__ */ __name((section, request, after) => {
|
|
33776
33776
|
const fail = /* @__PURE__ */ __name(() => {
|
|
33777
33777
|
throw new CliError("invalid_response", "Preparation communications returned another selection or invalid evidence");
|
|
@@ -33819,7 +33819,7 @@ var validatePreparationCommunications = /* @__PURE__ */ __name((section, request
|
|
|
33819
33819
|
}
|
|
33820
33820
|
}, "validatePreparationCommunications");
|
|
33821
33821
|
|
|
33822
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33822
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/services/package-upgrade.js
|
|
33823
33823
|
var upgradePackage = /* @__PURE__ */ __name(async ({ current, command, packageName, check: check2 }, ports) => {
|
|
33824
33824
|
const installer = ports.installer();
|
|
33825
33825
|
const argv = updateCommand(installer, packageName);
|
|
@@ -33884,7 +33884,7 @@ var dayAfter = /* @__PURE__ */ __name((published) => {
|
|
|
33884
33884
|
return Number.isNaN(time) ? null : new Date(time + 24 * 60 * 60 * 1e3).toISOString();
|
|
33885
33885
|
}, "dayAfter");
|
|
33886
33886
|
|
|
33887
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33887
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/services/index.js
|
|
33888
33888
|
var servicesFor = /* @__PURE__ */ __name((deps) => {
|
|
33889
33889
|
const pictures = picturesService(deps);
|
|
33890
33890
|
const base = {
|
|
@@ -33920,7 +33920,7 @@ var servicesFor = /* @__PURE__ */ __name((deps) => {
|
|
|
33920
33920
|
return deps.messenger.services ? { ...base, ...deps.messenger.services(base, deps) } : base;
|
|
33921
33921
|
}, "servicesFor");
|
|
33922
33922
|
|
|
33923
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33923
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/background/relay.js
|
|
33924
33924
|
import { createHash as createHash11 } from "node:crypto";
|
|
33925
33925
|
import { chmodSync, lstatSync, mkdirSync as mkdirSync2, rmSync } from "node:fs";
|
|
33926
33926
|
import { createConnection, createServer } from "node:net";
|
|
@@ -34141,7 +34141,7 @@ var relayCommand = /* @__PURE__ */ __name((path, request, options) => new Promis
|
|
|
34141
34141
|
}, () => finish({ error: stopped() }));
|
|
34142
34142
|
}), "relayCommand");
|
|
34143
34143
|
|
|
34144
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34144
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-relay.js
|
|
34145
34145
|
var lentConnection = /* @__PURE__ */ __name((connection, watchers) => throughWrapper(connection, {
|
|
34146
34146
|
close: /* @__PURE__ */ __name(async () => {
|
|
34147
34147
|
}, "close"),
|