@wirecat/tg-cli 0.104.0 → 0.105.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-QTAHA2JC.js → adapter-WWYRCTPE.js} +37 -37
- package/dist/bundle/{all-profiles-7CXBVRFU.js → all-profiles-IJYM6NIJ.js} +5 -5
- package/dist/bundle/{anthropic-FWBQ7JHT.js → anthropic-EDRWOXB5.js} +3 -3
- package/dist/bundle/{app-server-XF4GY2Y6.js → app-server-2NF7ZH3C.js} +34 -34
- package/dist/bundle/{bot-api-XDMMWRYI.js → bot-api-XCDLL6M2.js} +38 -38
- package/dist/bundle/{bot-history-TU2X7RNN.js → bot-history-37WSQX3U.js} +10 -10
- package/dist/bundle/{bun-6GSDPKNZ.js → bun-ZX34DXTI.js} +2 -2
- package/dist/bundle/{bun-sqlite-AO27E35V.js → bun-sqlite-7TZ73UKO.js} +2 -2
- package/dist/bundle/{chunk-6YUFPSSE.js → chunk-2A2KXY5G.js} +4 -4
- package/dist/bundle/{chunk-C5N7G6UH.js → chunk-2J2G3ELT.js} +1 -1
- package/dist/bundle/{chunk-UVYY5EIS.js → chunk-443D2OY7.js} +1 -1
- package/dist/bundle/{chunk-YD6ZQ6LM.js → chunk-4N53GVUI.js} +42 -42
- package/dist/bundle/{chunk-KRLCUBII.js → chunk-4UZE26T6.js} +5 -5
- package/dist/bundle/{chunk-YBQ753RP.js → chunk-4VFRP2T2.js} +20 -20
- package/dist/bundle/{chunk-MB3PCNRL.js → chunk-56JDML7T.js} +2 -2
- package/dist/bundle/{chunk-B7TTM75D.js → chunk-5PDGRPTS.js} +1 -1
- package/dist/bundle/{chunk-6K4QGBXU.js → chunk-6MQ3DEXF.js} +1 -1
- package/dist/bundle/{chunk-HOR7DS3P.js → chunk-73OWDRGK.js} +20 -20
- package/dist/bundle/{chunk-Y3VNNLUT.js → chunk-AQGW6OHU.js} +1 -1
- package/dist/bundle/{chunk-RRWMYR2H.js → chunk-ETVQH5AL.js} +9 -9
- package/dist/bundle/{chunk-BKVJNPA6.js → chunk-FNASJIAI.js} +11 -11
- package/dist/bundle/{chunk-UDXRDFHN.js → chunk-GGIDY5KC.js} +91 -91
- package/dist/bundle/{chunk-U2AK4QXY.js → chunk-HJSWUHHP.js} +1 -1
- package/dist/bundle/{chunk-ZBH7Z6WX.js → chunk-J5OIB3OW.js} +2 -2
- package/dist/bundle/{chunk-GE22MYA6.js → chunk-J6B5DQ3I.js} +47 -47
- package/dist/bundle/{chunk-MCD2GANK.js → chunk-L23IJ3IZ.js} +5 -5
- package/dist/bundle/{chunk-FUWSIEYY.js → chunk-LOIFBJBA.js} +9 -9
- package/dist/bundle/{chunk-PWIE7VBL.js → chunk-MAV5ODPN.js} +1 -1
- package/dist/bundle/{chunk-DANCAYRP.js → chunk-MHS2LEZA.js} +8 -6
- package/dist/bundle/{chunk-SZE6425L.js → chunk-N5BGV5YZ.js} +26 -26
- package/dist/bundle/{chunk-N6VHHMSZ.js → chunk-NBXUNS6Q.js} +1 -1
- package/dist/bundle/{chunk-Y5PJQPMQ.js → chunk-NEPB2EI6.js} +1 -1
- package/dist/bundle/{chunk-PHQTSF44.js → chunk-OOBCCVYM.js} +4 -4
- package/dist/bundle/{chunk-LOFG3Q35.js → chunk-PFL3CCP2.js} +1 -1
- package/dist/bundle/{chunk-BI2AXVHY.js → chunk-Q6NALH2X.js} +2 -2
- package/dist/bundle/{chunk-RTAV5XNT.js → chunk-QAW5QNOY.js} +8 -8
- package/dist/bundle/{chunk-FRZHF2X6.js → chunk-QPE72FCE.js} +7 -7
- package/dist/bundle/{chunk-LJCGQMGN.js → chunk-QVXMOHHN.js} +4 -4
- package/dist/bundle/{chunk-5K7E36ND.js → chunk-QWPVSWQE.js} +2 -2
- package/dist/bundle/{chunk-54RJDS3X.js → chunk-RDO66SBI.js} +2 -2
- package/dist/bundle/{chunk-GZ5CR5QB.js → chunk-RI7H2VVU.js} +7 -7
- package/dist/bundle/{chunk-3GGU65YR.js → chunk-S3C2L3IE.js} +4 -4
- package/dist/bundle/{chunk-MR4LW4EC.js → chunk-S7FO7OU2.js} +248 -246
- package/dist/bundle/{chunk-7WHM3KNI.js → chunk-SJIHZA4K.js} +1 -1
- package/dist/bundle/{chunk-ADMV4WGV.js → chunk-SLFDNASB.js} +4 -4
- package/dist/bundle/{chunk-QY7MW7HK.js → chunk-VIGQIMGM.js} +2 -2
- package/dist/bundle/{chunk-P3WU6UYJ.js → chunk-WD7Q2H4J.js} +193 -193
- package/dist/bundle/{chunk-UTVANQN5.js → chunk-XP4JEE47.js} +1 -1
- package/dist/bundle/{chunk-LSQUNABH.js → chunk-YGYQY5AG.js} +1 -1
- package/dist/bundle/{chunk-TJR37WKA.js → chunk-YSIC5B32.js} +10 -10
- package/dist/bundle/{chunk-UT6G2X7T.js → chunk-Z6SXT5DV.js} +3 -3
- package/dist/bundle/{chunk-3XZQQGCB.js → chunk-ZI7THBWF.js} +51 -47
- package/dist/bundle/{chunk-BIWJK5YU.js → chunk-ZIG4WIVN.js} +1 -1
- package/dist/bundle/{chunk-QVTCOBN5.js → chunk-ZM2AI3E5.js} +255 -250
- package/dist/bundle/{command-contract-RICU4OWW.js → command-contract-OF6TUQ5B.js} +12 -12
- package/dist/bundle/{echarts-2YP32GX5.js → echarts-WFLEME5I.js} +2 -2
- package/dist/bundle/{embed-QNWVBCL5.js → embed-ESTG27RK.js} +3 -3
- package/dist/bundle/{embedder-ENS7ARPP.js → embedder-P3W76VOZ.js} +6 -6
- package/dist/bundle/{entry-MPYSQPZO.js → entry-SNRZGNRA.js} +3 -3
- package/dist/bundle/{first-run-YLB7RNGP.js → first-run-JS24HORG.js} +5 -5
- package/dist/bundle/{first-screen-AYOE4JFC.js → first-screen-U63BJPXI.js} +13 -13
- package/dist/bundle/{identity-XQLO7NYW.js → identity-TYE57SHY.js} +1 -1
- package/dist/bundle/{instructions-5F4XG3B6.js → instructions-ERMZPVS4.js} +1 -1
- package/dist/bundle/{node-JOUDFPFN.js → node-KDZSMKIC.js} +2 -2
- package/dist/bundle/{node-sqlite-ZY6ZFFXS.js → node-sqlite-FR64YDYV.js} +2 -2
- package/dist/bundle/{oauth-KOR3ZNTA.js → oauth-SPE76ZIY.js} +4 -4
- package/dist/bundle/{open-JACXAGY5.js → open-UEFCMPLC.js} +1 -1
- package/dist/bundle/{process-7W3X5VME.js → process-7MD6MEGB.js} +1 -1
- package/dist/bundle/{program-NSZWGHNJ.js → program-NFFSOGUY.js} +40 -40
- package/dist/bundle/{prompt-CRRG5UB6.js → prompt-3PI4H66U.js} +2 -2
- package/dist/bundle/{recognize-ASXEB45M.js → recognize-54LQOU24.js} +3 -3
- package/dist/bundle/{remote-CB3GAXGJ.js → remote-JQ74NVUK.js} +4 -4
- package/dist/bundle/{rerank-PDD5BPID.js → rerank-66YCEORD.js} +4 -4
- package/dist/bundle/{serve-M4XFAYUM.js → serve-5SP2TCGV.js} +6 -6
- package/dist/bundle/{server-IN673OYO.js → server-GFICDJ6J.js} +26 -26
- package/dist/bundle/server-KMKRKOZP.js +55 -0
- package/dist/bundle/{state-626GOOVZ.js → state-U7HXQB6I.js} +3 -3
- package/dist/bundle/{store-6JM4HJU5.js → store-O4QVYHFL.js} +7 -7
- package/dist/bundle/store-maintenance-command-BNRZ5IJD.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/server-ISWPSKQ6.js +0 -55
- package/dist/bundle/store-maintenance-command-DI2UX4V3.js +0 -44
|
@@ -38,23 +38,23 @@ import {
|
|
|
38
38
|
typedCommand,
|
|
39
39
|
vectorModelKey,
|
|
40
40
|
withAttempt
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-J6B5DQ3I.js";
|
|
42
42
|
import {
|
|
43
43
|
isCliFailure
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-QPE72FCE.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-NBXUNS6Q.js";
|
|
52
52
|
import {
|
|
53
53
|
MAX_MODEL_IMAGE_BYTES
|
|
54
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-PFL3CCP2.js";
|
|
55
55
|
import {
|
|
56
56
|
remoteKey
|
|
57
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-VIGQIMGM.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-L23IJ3IZ.js";
|
|
69
69
|
import {
|
|
70
70
|
installFiles,
|
|
71
71
|
megabytes
|
|
72
|
-
} from "./chunk-
|
|
72
|
+
} from "./chunk-QVXMOHHN.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-ZM2AI3E5.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-ZI7THBWF.js";
|
|
185
185
|
import {
|
|
186
186
|
DEFAULT_STEMMERS,
|
|
187
187
|
createStemmer,
|
|
188
188
|
fold,
|
|
189
189
|
normalize
|
|
190
|
-
} from "./chunk-
|
|
190
|
+
} from "./chunk-RI7H2VVU.js";
|
|
191
191
|
import {
|
|
192
192
|
DEFAULT_TASK_CATEGORIES,
|
|
193
193
|
FALLBACK_CATEGORY
|
|
194
|
-
} from "./chunk-
|
|
194
|
+
} from "./chunk-OOBCCVYM.js";
|
|
195
195
|
import {
|
|
196
196
|
storePath,
|
|
197
197
|
wirecatDirectory
|
|
198
|
-
} from "./chunk-
|
|
198
|
+
} from "./chunk-NEPB2EI6.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.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/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.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/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.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/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.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/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.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/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.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/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.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/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.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/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.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/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.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/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.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/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.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/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.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/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.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/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({
|
|
@@ -17934,7 +17934,7 @@ var sessionAnswer = /* @__PURE__ */ __name(({ current, client, device, location,
|
|
|
17934
17934
|
...createdAt === void 0 ? {} : { created_at: createdAt }
|
|
17935
17935
|
}), "sessionAnswer");
|
|
17936
17936
|
|
|
17937
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17937
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/services/deps.js
|
|
17938
17938
|
var accountStore = /* @__PURE__ */ __name(async (deps) => (await deps.store()).forAccount(await deps.account()), "accountStore");
|
|
17939
17939
|
var crossAccount = /* @__PURE__ */ __name((deps, _reason) => deps.store(), "crossAccount");
|
|
17940
17940
|
var NO_LOCAL_STORE = "this answer comes from the messenger, not from the local store";
|
|
@@ -17999,7 +17999,7 @@ var storedDeps = /* @__PURE__ */ __name((messenger, store, account, guard) => ({
|
|
|
17999
17999
|
}), "storedDeps");
|
|
18000
18000
|
var storeModeDeps = /* @__PURE__ */ __name((messenger, store, account, guard) => ({ ...storedDeps(messenger, store, account, guard), offline: false, reads: "store" }), "storeModeDeps");
|
|
18001
18001
|
|
|
18002
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18002
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/resolve.js
|
|
18003
18003
|
var isId = /* @__PURE__ */ __name((reference) => /^-?\d+$/.test(reference.trim()), "isId");
|
|
18004
18004
|
var foldName = /* @__PURE__ */ __name((name) => name.normalize("NFC").replace(/[\uFE0E\uFE0F\u200D]/g, "").toLowerCase(), "foldName");
|
|
18005
18005
|
var pickChat = /* @__PURE__ */ __name((reference, chats) => {
|
|
@@ -18037,7 +18037,7 @@ ${lines3}`, { candidates });
|
|
|
18037
18037
|
}, "ambiguous");
|
|
18038
18038
|
var isPresent = /* @__PURE__ */ __name((value) => value !== null && value !== void 0, "isPresent");
|
|
18039
18039
|
|
|
18040
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18040
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/ports/messenger.js
|
|
18041
18041
|
var throughWrapper = /* @__PURE__ */ __name((inner, handled, wrap = (_, call) => call) => new Proxy(handled, {
|
|
18042
18042
|
get: /* @__PURE__ */ __name((own, key) => {
|
|
18043
18043
|
if (key in own)
|
|
@@ -18054,7 +18054,7 @@ var capability = /* @__PURE__ */ __name((adapter, method, what) => {
|
|
|
18054
18054
|
return found.bind(adapter);
|
|
18055
18055
|
}, "capability");
|
|
18056
18056
|
|
|
18057
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18057
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/services/message-resolution.js
|
|
18058
18058
|
var readChatId = /* @__PURE__ */ __name(async (deps, reference, store, account) => {
|
|
18059
18059
|
if (deps.reads !== "store")
|
|
18060
18060
|
return keptChatId(deps.messenger, reference, store, account);
|
|
@@ -18201,7 +18201,7 @@ var senderAmong = /* @__PURE__ */ __name(async (store, accounts, reference) => {
|
|
|
18201
18201
|
}
|
|
18202
18202
|
}, "senderAmong");
|
|
18203
18203
|
|
|
18204
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18204
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/services/person-context.js
|
|
18205
18205
|
var CONTEXT_MESSAGES = 10;
|
|
18206
18206
|
var CONTEXT_BYTES = 64 * 1024;
|
|
18207
18207
|
var toContext = /* @__PURE__ */ __name((key, message, chatTitle) => ({
|
|
@@ -18457,10 +18457,10 @@ var personMessages = /* @__PURE__ */ __name(async (store, asked, reference, { ch
|
|
|
18457
18457
|
};
|
|
18458
18458
|
}, "personMessages");
|
|
18459
18459
|
|
|
18460
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18460
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/services/meeting-evidence.js
|
|
18461
18461
|
import { createHash } from "node:crypto";
|
|
18462
18462
|
|
|
18463
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18463
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/services/meeting-reference.js
|
|
18464
18464
|
var missing2 = /* @__PURE__ */ __name(() => new CliError("not_found", "the meeting evidence is unavailable for this account"), "missing");
|
|
18465
18465
|
var authorizedMeetingMetadata = /* @__PURE__ */ __name(async (store, accountId, reference, options = {}) => {
|
|
18466
18466
|
const parsed = parseMeetingReference(reference);
|
|
@@ -18478,7 +18478,7 @@ var authorizedMeetingMetadata = /* @__PURE__ */ __name(async (store, accountId,
|
|
|
18478
18478
|
return { parsed, meeting };
|
|
18479
18479
|
}, "authorizedMeetingMetadata");
|
|
18480
18480
|
|
|
18481
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18481
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/services/meeting-evidence.js
|
|
18482
18482
|
var hash = /* @__PURE__ */ __name((value) => createHash("sha256").update(JSON.stringify(value)).digest("hex"), "hash");
|
|
18483
18483
|
var checkMeetingCancelled = /* @__PURE__ */ __name((signal) => {
|
|
18484
18484
|
if (signal?.aborted)
|
|
@@ -18677,7 +18677,7 @@ var readMeetingEvidence = /* @__PURE__ */ __name(async (store, accountId, refere
|
|
|
18677
18677
|
return { ...packet, fingerprint: hash(packet) };
|
|
18678
18678
|
}, "readMeetingEvidence");
|
|
18679
18679
|
|
|
18680
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18680
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/services/person-meeting-context.js
|
|
18681
18681
|
var personMeetingContext = /* @__PURE__ */ __name(async (store, personReference, options) => {
|
|
18682
18682
|
const { meetings = 10, cues = 5, bytes: bytes2 = 64 * 1024, scanLimit = 1e3, since, signal } = options;
|
|
18683
18683
|
const requestedAccounts = options.accountIds;
|
|
@@ -18776,7 +18776,7 @@ var personMeetingContext = /* @__PURE__ */ __name(async (store, personReference,
|
|
|
18776
18776
|
};
|
|
18777
18777
|
}, "personMeetingContext");
|
|
18778
18778
|
|
|
18779
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18779
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/services/person-preparation.js
|
|
18780
18780
|
var PREPARE_BYTES = 96 * 1024;
|
|
18781
18781
|
var MEETINGS = 5;
|
|
18782
18782
|
var CUES = 3;
|
|
@@ -18893,7 +18893,7 @@ var meetingsOf = /* @__PURE__ */ __name(async (store, uid, stored, since, left)
|
|
|
18893
18893
|
}
|
|
18894
18894
|
}, "meetingsOf");
|
|
18895
18895
|
|
|
18896
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18896
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/services/person-profile.js
|
|
18897
18897
|
var personProfile = /* @__PURE__ */ __name(async (deps, person) => {
|
|
18898
18898
|
const online = deps.offline ? void 0 : await deps.connection();
|
|
18899
18899
|
const held = await storeIfOpen(deps);
|
|
@@ -18950,7 +18950,7 @@ var quiet = /* @__PURE__ */ __name((facts) => facts.chats.map(({ id: id2, title,
|
|
|
18950
18950
|
complete: false
|
|
18951
18951
|
})), "quiet");
|
|
18952
18952
|
|
|
18953
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18953
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/services/person-timeline.js
|
|
18954
18954
|
var TIMELINE_ITEMS = 50;
|
|
18955
18955
|
var TIMELINE_MAX = 500;
|
|
18956
18956
|
var SCOPES = ["personal", "work"];
|
|
@@ -19005,7 +19005,7 @@ var personTimeline = /* @__PURE__ */ __name(async (store, asked, reference, { sc
|
|
|
19005
19005
|
};
|
|
19006
19006
|
}, "personTimeline");
|
|
19007
19007
|
|
|
19008
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19008
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/services/people.js
|
|
19009
19009
|
var peopleService = /* @__PURE__ */ __name((deps) => {
|
|
19010
19010
|
const localCard = /* @__PURE__ */ __name(async (card, includeNotes = false) => {
|
|
19011
19011
|
const held = await storeIfOpen(deps);
|
|
@@ -19229,7 +19229,7 @@ var byRecency = /* @__PURE__ */ __name((a, b) => (b.lastMessagedAt ?? "").locale
|
|
|
19229
19229
|
var byName = /* @__PURE__ */ __name((a, b) => (a.name ?? "").localeCompare(b.name ?? ""), "byName");
|
|
19230
19230
|
var maskedAccount = /* @__PURE__ */ __name((account) => account.phone ? { ...account, phone: `***${account.phone.replace(/\D/g, "").slice(-4)}` } : account, "maskedAccount");
|
|
19231
19231
|
|
|
19232
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19232
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/services/moment.js
|
|
19233
19233
|
var AGO = /^(\d+)(m|h|d)$/;
|
|
19234
19234
|
var AGO_MS = { m: 6e4, h: 36e5, d: 864e5 };
|
|
19235
19235
|
var DATE = /^\d{4}-\d{2}-\d{2}/;
|
|
@@ -19269,7 +19269,7 @@ var dateWindow = /* @__PURE__ */ __name(({ sinceTime, untilTime, zone, now = Dat
|
|
|
19269
19269
|
};
|
|
19270
19270
|
}, "dateWindow");
|
|
19271
19271
|
|
|
19272
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19272
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/services/questions.js
|
|
19273
19273
|
var LINKS = /https?:\/\/\S+/g;
|
|
19274
19274
|
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");
|
|
19275
19275
|
var questions = /* @__PURE__ */ __name((messages, { answerers: answerers2 }) => {
|
|
@@ -19296,7 +19296,7 @@ var questions = /* @__PURE__ */ __name((messages, { answerers: answerers2 }) =>
|
|
|
19296
19296
|
});
|
|
19297
19297
|
}, "questions");
|
|
19298
19298
|
|
|
19299
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19299
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/services/task-categories.js
|
|
19300
19300
|
var names = /* @__PURE__ */ __name((categories) => categories.map(({ name }) => name).join(", "), "names");
|
|
19301
19301
|
var taskCategoryOf = /* @__PURE__ */ __name((categories = DEFAULT_TASK_CATEGORIES, flag = "--category") => (typed) => {
|
|
19302
19302
|
const name = typed.trim().toLowerCase();
|
|
@@ -19346,7 +19346,7 @@ var categorize = /* @__PURE__ */ __name((text, categories = DEFAULT_TASK_CATEGOR
|
|
|
19346
19346
|
return best.name;
|
|
19347
19347
|
}, "categorize");
|
|
19348
19348
|
|
|
19349
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19349
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/services/task-rules.js
|
|
19350
19350
|
var taskAccount = /* @__PURE__ */ __name(({ provider, account }) => `${provider}:${account}`, "taskAccount");
|
|
19351
19351
|
var RULES_IN = {
|
|
19352
19352
|
dialog: "all",
|
|
@@ -19552,7 +19552,7 @@ var applyTaskRulesToChats = /* @__PURE__ */ __name(async (store, account, chatId
|
|
|
19552
19552
|
return passes;
|
|
19553
19553
|
}, "applyTaskRulesToChats");
|
|
19554
19554
|
|
|
19555
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19555
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/botcheck/check.js
|
|
19556
19556
|
var DAY_MS = 864e5;
|
|
19557
19557
|
var NEW_DAYS = 30;
|
|
19558
19558
|
var SAME_TEXT_MIN = 20;
|
|
@@ -19629,7 +19629,7 @@ var scorePerson = /* @__PURE__ */ __name(({ subject, provider, activity, photos,
|
|
|
19629
19629
|
};
|
|
19630
19630
|
}, "scorePerson");
|
|
19631
19631
|
|
|
19632
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19632
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/botcheck/registries.js
|
|
19633
19633
|
var REGISTRIES = {
|
|
19634
19634
|
cas: { title: "Combot Anti-Spam (CAS)", docs: "https://cas.chat/api" },
|
|
19635
19635
|
lols: { title: "lols.bot", docs: "https://api.lols.bot/lols-bot.json" }
|
|
@@ -19714,7 +19714,7 @@ var notCovered = /* @__PURE__ */ __name((messenger, now = /* @__PURE__ */ new Da
|
|
|
19714
19714
|
detail: `lists Telegram accounts only, not ${messenger} ones`
|
|
19715
19715
|
})), "notCovered");
|
|
19716
19716
|
|
|
19717
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19717
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/botcheck/service.js
|
|
19718
19718
|
var ACTIVITY_MESSAGES = 1e3;
|
|
19719
19719
|
var botCheckService = /* @__PURE__ */ __name((deps) => {
|
|
19720
19720
|
const subjectOf = /* @__PURE__ */ __name(async (reference) => {
|
|
@@ -19802,7 +19802,7 @@ var botCheckService = /* @__PURE__ */ __name((deps) => {
|
|
|
19802
19802
|
};
|
|
19803
19803
|
}, "botCheckService");
|
|
19804
19804
|
|
|
19805
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19805
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/domain/thread.js
|
|
19806
19806
|
var threadIdOf = /* @__PURE__ */ __name((value) => {
|
|
19807
19807
|
if (value === void 0)
|
|
19808
19808
|
return void 0;
|
|
@@ -19812,7 +19812,7 @@ var threadIdOf = /* @__PURE__ */ __name((value) => {
|
|
|
19812
19812
|
return id2;
|
|
19813
19813
|
}, "threadIdOf");
|
|
19814
19814
|
|
|
19815
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19815
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/services/chat-stats.js
|
|
19816
19816
|
var TOP_POSTS = 5;
|
|
19817
19817
|
var JOINS = /* @__PURE__ */ new Set(["join", "add"]);
|
|
19818
19818
|
var LEAVES = /* @__PURE__ */ new Set(["leave", "remove"]);
|
|
@@ -19929,7 +19929,7 @@ var median = /* @__PURE__ */ __name((values) => {
|
|
|
19929
19929
|
return Math.round(sorted.length % 2 === 0 ? ((sorted[middle - 1] ?? upper) + upper) / 2 : upper);
|
|
19930
19930
|
}, "median");
|
|
19931
19931
|
|
|
19932
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19932
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/services/member-history.js
|
|
19933
19933
|
var memberEvents = /* @__PURE__ */ __name((stays, revisions, since = 0) => {
|
|
19934
19934
|
const events = [];
|
|
19935
19935
|
for (const stay of stays) {
|
|
@@ -19961,7 +19961,7 @@ var memberEvents = /* @__PURE__ */ __name((stays, revisions, since = 0) => {
|
|
|
19961
19961
|
return events.filter(({ at }) => Date.parse(at) >= since).sort((a, b) => Date.parse(a.at) - Date.parse(b.at) || a.id.localeCompare(b.id));
|
|
19962
19962
|
}, "memberEvents");
|
|
19963
19963
|
|
|
19964
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19964
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/services/chats.js
|
|
19965
19965
|
var EVENTS_DAYS = 7;
|
|
19966
19966
|
var TRACKED_DAYS = 30;
|
|
19967
19967
|
var STATS_PAGE = 1e3;
|
|
@@ -20256,7 +20256,7 @@ var storedMembers = /* @__PURE__ */ __name(async (store, chatId) => {
|
|
|
20256
20256
|
return members.length === 0 ? null : members;
|
|
20257
20257
|
}, "storedMembers");
|
|
20258
20258
|
|
|
20259
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20259
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/services/inbox.js
|
|
20260
20260
|
var INBOX_CHATS = 20;
|
|
20261
20261
|
var REVIEW_DAYS = 3;
|
|
20262
20262
|
var UNANSWERED_HOURS = 24;
|
|
@@ -20464,7 +20464,7 @@ var inboxService = /* @__PURE__ */ __name((deps) => {
|
|
|
20464
20464
|
};
|
|
20465
20465
|
}, "inboxService");
|
|
20466
20466
|
|
|
20467
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20467
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/domain/formatting.js
|
|
20468
20468
|
var invalid = /* @__PURE__ */ __name(() => new CliError("validation_error", "the messenger formatter returned invalid text spans"), "invalid");
|
|
20469
20469
|
var validateFormattedText = /* @__PURE__ */ __name((formatted2) => {
|
|
20470
20470
|
const { text, spans } = formatted2;
|
|
@@ -20524,7 +20524,7 @@ var visibleFormattedText = /* @__PURE__ */ __name((formatted2) => {
|
|
|
20524
20524
|
};
|
|
20525
20525
|
}, "visibleFormattedText");
|
|
20526
20526
|
|
|
20527
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20527
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/moderation/check.js
|
|
20528
20528
|
var INVITE = /max\.ru\/join\/|(t|telegram)\.me\/(\+|joinchat\/)|tg:\/\/join/i;
|
|
20529
20529
|
var LINK2 = /https?:\/\/\S+/i;
|
|
20530
20530
|
var STRENGTH = { report: 0, delete: 1, remove: 2 };
|
|
@@ -20712,7 +20712,7 @@ var nextPoint = /* @__PURE__ */ __name((rows, found) => {
|
|
|
20712
20712
|
}, "nextPoint");
|
|
20713
20713
|
var someUndone = /* @__PURE__ */ __name((rows) => rows.some(undone), "someUndone");
|
|
20714
20714
|
|
|
20715
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20715
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/moderation/rules.js
|
|
20716
20716
|
import { existsSync, readFileSync } from "node:fs";
|
|
20717
20717
|
import { join } from "node:path";
|
|
20718
20718
|
var RULE_ACTIONS = ["report", "delete", "remove"];
|
|
@@ -20855,7 +20855,7 @@ var assign = /* @__PURE__ */ __name((rules, key, value) => {
|
|
|
20855
20855
|
return { ...rules, [head]: { ...rules[head], [tail]: value } };
|
|
20856
20856
|
}, "assign");
|
|
20857
20857
|
|
|
20858
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20858
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/services/task-tag-filters.js
|
|
20859
20859
|
var taskTagFilters = /* @__PURE__ */ __name(async (store, query) => {
|
|
20860
20860
|
const tags = /* @__PURE__ */ new Map();
|
|
20861
20861
|
for (const node of query ? walkQuery(query.root) : [])
|
|
@@ -20864,7 +20864,7 @@ var taskTagFilters = /* @__PURE__ */ __name(async (store, query) => {
|
|
|
20864
20864
|
return tags;
|
|
20865
20865
|
}, "taskTagFilters");
|
|
20866
20866
|
|
|
20867
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20867
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/services/tasks.js
|
|
20868
20868
|
var TASK_QUERY = {
|
|
20869
20869
|
entity: "task",
|
|
20870
20870
|
backend: "sql",
|
|
@@ -21344,7 +21344,7 @@ var taskView = /* @__PURE__ */ __name(async (store, account, task2) => {
|
|
|
21344
21344
|
};
|
|
21345
21345
|
}, "taskView");
|
|
21346
21346
|
|
|
21347
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21347
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/services/excerpt.js
|
|
21348
21348
|
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");
|
|
21349
21349
|
var excerpt = /* @__PURE__ */ __name((text, query, size2 = 240, options = {}) => {
|
|
21350
21350
|
const flat = text.replace(/\s+/g, " ").trim();
|
|
@@ -21360,18 +21360,18 @@ var excerpt = /* @__PURE__ */ __name((text, query, size2 = 240, options = {}) =>
|
|
|
21360
21360
|
}, "excerpt");
|
|
21361
21361
|
var withExcerpt = /* @__PURE__ */ __name(({ matchedText, ...hit }, query) => ({ ...hit, excerpt: excerpt(matchedText ?? hit.text, query) }), "withExcerpt");
|
|
21362
21362
|
|
|
21363
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21363
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/services/media-archive.js
|
|
21364
21364
|
import { setTimeout as sleep } from "node:timers/promises";
|
|
21365
21365
|
|
|
21366
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21366
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/services/media-archive-files.js
|
|
21367
21367
|
import { lstat as lstat4 } from "node:fs/promises";
|
|
21368
21368
|
|
|
21369
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21369
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-store.js
|
|
21370
21370
|
import { createHash as createHash3, randomUUID as randomUUID4 } from "node:crypto";
|
|
21371
21371
|
import { open as open6, rename as rename3, unlink as unlink6 } from "node:fs/promises";
|
|
21372
21372
|
import { join as join6 } from "node:path";
|
|
21373
21373
|
|
|
21374
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21374
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/files/atomic-write.js
|
|
21375
21375
|
import { randomUUID } from "node:crypto";
|
|
21376
21376
|
import { constants } from "node:fs";
|
|
21377
21377
|
import { link as link2, open as open2, realpath, rename, unlink } from "node:fs/promises";
|
|
@@ -21409,7 +21409,7 @@ var writeFileAtomic = /* @__PURE__ */ __name(async (path, content, { mode = 384,
|
|
|
21409
21409
|
}
|
|
21410
21410
|
}, "writeFileAtomic");
|
|
21411
21411
|
|
|
21412
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21412
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/files/ordinary-file.js
|
|
21413
21413
|
import { constants as constants2 } from "node:fs";
|
|
21414
21414
|
import { lstat, open as open3 } from "node:fs/promises";
|
|
21415
21415
|
var deviceOf = /* @__PURE__ */ __name((dev) => process.platform === "win32" ? BigInt.asUintN(32, dev) : dev, "deviceOf");
|
|
@@ -21475,7 +21475,7 @@ var syncDirectory = /* @__PURE__ */ __name(async (path) => {
|
|
|
21475
21475
|
}
|
|
21476
21476
|
}, "syncDirectory");
|
|
21477
21477
|
|
|
21478
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21478
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/files/bounded-utf8.js
|
|
21479
21479
|
var readBoundedUtf8File = /* @__PURE__ */ __name(async (path, { maxBytes }) => {
|
|
21480
21480
|
if (!Number.isSafeInteger(maxBytes) || maxBytes < 1 || maxBytes > 16 * 1024 * 1024)
|
|
21481
21481
|
throw new CliError("validation_error", "file maxBytes takes 1\u201316777216 bytes");
|
|
@@ -21504,21 +21504,21 @@ var readBoundedUtf8File = /* @__PURE__ */ __name(async (path, { maxBytes }) => {
|
|
|
21504
21504
|
}
|
|
21505
21505
|
}, "readBoundedUtf8File");
|
|
21506
21506
|
|
|
21507
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21507
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/files/lock.js
|
|
21508
21508
|
import { mkdir as mkdir2 } from "node:fs/promises";
|
|
21509
21509
|
import { basename as basename3, dirname as dirname3 } from "node:path";
|
|
21510
21510
|
|
|
21511
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21511
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/files/native-writer-lease.js
|
|
21512
21512
|
import { randomUUID as randomUUID2 } from "node:crypto";
|
|
21513
21513
|
import { lstat as lstat3, mkdir, open as open4, realpath as realpath3, rmdir as rmdir2, unlink as unlink4 } from "node:fs/promises";
|
|
21514
21514
|
import { hostname as hostname2 } from "node:os";
|
|
21515
21515
|
import { join as join4 } from "node:path";
|
|
21516
21516
|
|
|
21517
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21517
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/files/native-lease-inspection.js
|
|
21518
21518
|
import { lstat as lstat2, readdir, realpath as realpath2, unlink as unlink2 } from "node:fs/promises";
|
|
21519
21519
|
import { join as join3 } from "node:path";
|
|
21520
21520
|
|
|
21521
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21521
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/files/native-lease-owner.js
|
|
21522
21522
|
import { hostname } from "node:os";
|
|
21523
21523
|
var missingLeaseFile = /* @__PURE__ */ __name((error) => typeof error === "object" && error !== null && "code" in error && error.code === "ENOENT", "missingLeaseFile");
|
|
21524
21524
|
var readLeaseOwner = /* @__PURE__ */ __name(async (path, name, signal) => {
|
|
@@ -21563,7 +21563,7 @@ var leaseOwnerStatus = /* @__PURE__ */ __name((owner) => {
|
|
|
21563
21563
|
}
|
|
21564
21564
|
}, "leaseOwnerStatus");
|
|
21565
21565
|
|
|
21566
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21566
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/files/native-lease-inspection.js
|
|
21567
21567
|
var leaseInspection = /* @__PURE__ */ __name((markerDirectory) => {
|
|
21568
21568
|
const inspect = /* @__PURE__ */ __name(async (destination, options = {}) => {
|
|
21569
21569
|
options.signal?.throwIfAborted();
|
|
@@ -21622,7 +21622,7 @@ var leaseInspection = /* @__PURE__ */ __name((markerDirectory) => {
|
|
|
21622
21622
|
return { inspect, recover };
|
|
21623
21623
|
}, "leaseInspection");
|
|
21624
21624
|
|
|
21625
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21625
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/files/native-lease-release.js
|
|
21626
21626
|
import { rmdir, unlink as unlink3 } from "node:fs/promises";
|
|
21627
21627
|
var ownedNativeLease = /* @__PURE__ */ __name((path, name, owner, folder, identity) => {
|
|
21628
21628
|
let releasing;
|
|
@@ -21647,7 +21647,7 @@ var ownedNativeLease = /* @__PURE__ */ __name((path, name, owner, folder, identi
|
|
|
21647
21647
|
};
|
|
21648
21648
|
}, "ownedNativeLease");
|
|
21649
21649
|
|
|
21650
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21650
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/files/native-writer-lease.js
|
|
21651
21651
|
var validName = /* @__PURE__ */ __name((value) => typeof value === "string" && value.length > 0 && value !== "." && value !== ".." && !/[\\/\0:]/.test(value), "validName");
|
|
21652
21652
|
var nativeWriterLeaseStore = /* @__PURE__ */ __name((layout) => {
|
|
21653
21653
|
const { markerDirectory, legacyMarker } = layout;
|
|
@@ -21718,7 +21718,7 @@ var nativeWriterLeaseStore = /* @__PURE__ */ __name((layout) => {
|
|
|
21718
21718
|
};
|
|
21719
21719
|
}, "nativeWriterLeaseStore");
|
|
21720
21720
|
|
|
21721
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21721
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/files/lock.js
|
|
21722
21722
|
var acquireLock = /* @__PURE__ */ __name(async (path, { signal } = {}) => {
|
|
21723
21723
|
const folder = dirname3(path);
|
|
21724
21724
|
await mkdir2(folder, { recursive: true, mode: 448 });
|
|
@@ -21733,7 +21733,7 @@ var acquireLock = /* @__PURE__ */ __name(async (path, { signal } = {}) => {
|
|
|
21733
21733
|
});
|
|
21734
21734
|
}, "acquireLock");
|
|
21735
21735
|
|
|
21736
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21736
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-metadata.js
|
|
21737
21737
|
import { createHash as createHash2 } from "node:crypto";
|
|
21738
21738
|
var metadataLimit = 16384;
|
|
21739
21739
|
var partialIdentity = /* @__PURE__ */ __name((locator) => JSON.stringify([locator.provider, locator.account, locator.occurrenceId, locator.assetId]), "partialIdentity");
|
|
@@ -21793,7 +21793,7 @@ var readPartialMetadata = /* @__PURE__ */ __name(async (path, locator, maxBytes,
|
|
|
21793
21793
|
}
|
|
21794
21794
|
}, "readPartialMetadata");
|
|
21795
21795
|
|
|
21796
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21796
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-writer.js
|
|
21797
21797
|
import { randomUUID as randomUUID3 } from "node:crypto";
|
|
21798
21798
|
import { open as open5, rename as rename2, unlink as unlink5 } from "node:fs/promises";
|
|
21799
21799
|
import { join as join5 } from "node:path";
|
|
@@ -21885,7 +21885,7 @@ var partialWriter = /* @__PURE__ */ __name(async (input) => {
|
|
|
21885
21885
|
};
|
|
21886
21886
|
}, "partialWriter");
|
|
21887
21887
|
|
|
21888
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21888
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-store.js
|
|
21889
21889
|
var NativeRecordingPartialStore = class {
|
|
21890
21890
|
static {
|
|
21891
21891
|
__name(this, "NativeRecordingPartialStore");
|
|
@@ -21992,12 +21992,12 @@ var NativeRecordingPartialStore = class {
|
|
|
21992
21992
|
}
|
|
21993
21993
|
};
|
|
21994
21994
|
|
|
21995
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21995
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication.js
|
|
21996
21996
|
import { createHash as createHash4 } from "node:crypto";
|
|
21997
21997
|
import { link as link3 } from "node:fs/promises";
|
|
21998
21998
|
import { basename as basename4, dirname as dirname4, join as join8, resolve as resolve2 } from "node:path";
|
|
21999
21999
|
|
|
22000
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22000
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication-files.js
|
|
22001
22001
|
import { unlink as unlink7 } from "node:fs/promises";
|
|
22002
22002
|
var verifiedPublicationFile = /* @__PURE__ */ __name(async (path, expected, signal, writable = false) => {
|
|
22003
22003
|
signal?.throwIfAborted();
|
|
@@ -22032,7 +22032,7 @@ var commitPublication = /* @__PURE__ */ __name(async (root, partialPath, finalPa
|
|
|
22032
22032
|
signal?.throwIfAborted();
|
|
22033
22033
|
}, "commitPublication");
|
|
22034
22034
|
|
|
22035
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22035
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication-journal.js
|
|
22036
22036
|
import { randomUUID as randomUUID5 } from "node:crypto";
|
|
22037
22037
|
import { open as open7, rename as rename4, unlink as unlink8 } from "node:fs/promises";
|
|
22038
22038
|
import { join as join7 } from "node:path";
|
|
@@ -22105,7 +22105,7 @@ var writePublicationJournal = /* @__PURE__ */ __name(async (root, path, prefix,
|
|
|
22105
22105
|
}
|
|
22106
22106
|
}, "writePublicationJournal");
|
|
22107
22107
|
|
|
22108
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22108
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication.js
|
|
22109
22109
|
var NativeRecordingPublication = class {
|
|
22110
22110
|
static {
|
|
22111
22111
|
__name(this, "NativeRecordingPublication");
|
|
@@ -22178,7 +22178,7 @@ var NativeRecordingPublication = class {
|
|
|
22178
22178
|
}
|
|
22179
22179
|
};
|
|
22180
22180
|
|
|
22181
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22181
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/services/media-archive-manifest.js
|
|
22182
22182
|
import { createHash as createHash5 } from "node:crypto";
|
|
22183
22183
|
import { readdir as readdir2 } from "node:fs/promises";
|
|
22184
22184
|
import { isAbsolute as isAbsolute2, join as join9, resolve as resolve3 } from "node:path";
|
|
@@ -22265,7 +22265,7 @@ var commitMediaEntry = /* @__PURE__ */ __name((root, one, beforePublish) => writ
|
|
|
22265
22265
|
beforePublish
|
|
22266
22266
|
}), "commitMediaEntry");
|
|
22267
22267
|
|
|
22268
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22268
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/services/media-archive-files.js
|
|
22269
22269
|
var validator = '"media-completed-v1"';
|
|
22270
22270
|
var maximumFileBytes = 64 * 1024 * 1024 * 1024;
|
|
22271
22271
|
var archiveMediaFile = /* @__PURE__ */ __name(async (root, identity, kind, file2, beforeWrite, signal, metadata = {}) => {
|
|
@@ -22366,7 +22366,7 @@ var archiveMediaFile = /* @__PURE__ */ __name(async (root, identity, kind, file2
|
|
|
22366
22366
|
return entry;
|
|
22367
22367
|
}, "archiveMediaFile");
|
|
22368
22368
|
|
|
22369
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22369
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/services/media-archive-locks.js
|
|
22370
22370
|
import { mkdir as mkdir3, realpath as realpath4 } from "node:fs/promises";
|
|
22371
22371
|
import { join as join10, resolve as resolve4 } from "node:path";
|
|
22372
22372
|
var archiveLocations = /* @__PURE__ */ __name(async (initial, signal) => {
|
|
@@ -22433,7 +22433,7 @@ var withMediaArchiveLocks = /* @__PURE__ */ __name(async (directory2, signal, ru
|
|
|
22433
22433
|
throw new CliError("validation_error", "archive locations changed during locking; run the command again");
|
|
22434
22434
|
}, "withMediaArchiveLocks");
|
|
22435
22435
|
|
|
22436
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22436
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/services/media-archive.js
|
|
22437
22437
|
var validateMediaSince = /* @__PURE__ */ __name((value, flag = "--since-time") => {
|
|
22438
22438
|
if (value === void 0)
|
|
22439
22439
|
return void 0;
|
|
@@ -22586,7 +22586,7 @@ var archiveMedia = /* @__PURE__ */ __name(async (ports, options) => {
|
|
|
22586
22586
|
}, { create: true });
|
|
22587
22587
|
}, "archiveMedia");
|
|
22588
22588
|
|
|
22589
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22589
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/services/media-archive-move.js
|
|
22590
22590
|
import { realpath as realpath5, unlink as unlink9 } from "node:fs/promises";
|
|
22591
22591
|
import { basename as basename5, dirname as dirname5, join as join11, resolve as resolve5 } from "node:path";
|
|
22592
22592
|
var canonicalDestination = /* @__PURE__ */ __name(async (directory2) => {
|
|
@@ -22739,7 +22739,7 @@ var moveMediaArchive = /* @__PURE__ */ __name(async (options) => {
|
|
|
22739
22739
|
}, { additional: [target2], createAdditional: !options.dryRun });
|
|
22740
22740
|
}, "moveMediaArchive");
|
|
22741
22741
|
|
|
22742
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22742
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/services/model-downloads.js
|
|
22743
22743
|
var bytesOf = /* @__PURE__ */ __name((model) => model.files.reduce((sum2, file2) => sum2 + file2.bytes, 0), "bytesOf");
|
|
22744
22744
|
var nativeRuntime = /* @__PURE__ */ __name(async ({ env, progress = /* @__PURE__ */ __name(() => {
|
|
22745
22745
|
}, "progress") }) => {
|
|
@@ -22762,7 +22762,7 @@ var downloadTextModel = /* @__PURE__ */ __name(async (id2, { env, progress = /*
|
|
|
22762
22762
|
}
|
|
22763
22763
|
await nativeRuntime({ env, progress });
|
|
22764
22764
|
progress(`${model.id}: loading it once to check it works`);
|
|
22765
|
-
const { openEmbedder: openEmbedder2 } = await import("./embed-
|
|
22765
|
+
const { openEmbedder: openEmbedder2 } = await import("./embed-ESTG27RK.js");
|
|
22766
22766
|
const embedder = await openEmbedder2(model, directory2);
|
|
22767
22767
|
try {
|
|
22768
22768
|
const [vector] = await embedder.embed(["check"], "query");
|
|
@@ -22783,7 +22783,7 @@ var downloadRerankModel = /* @__PURE__ */ __name(async (id2, { env, progress = /
|
|
|
22783
22783
|
}
|
|
22784
22784
|
await nativeRuntime({ env, progress });
|
|
22785
22785
|
progress(`${model.id}: loading it once to check it works`);
|
|
22786
|
-
const { openReranker } = await import("./rerank-
|
|
22786
|
+
const { openReranker } = await import("./rerank-66YCEORD.js");
|
|
22787
22787
|
const reranker = await openReranker(model, directory2);
|
|
22788
22788
|
try {
|
|
22789
22789
|
await reranker.score("check", ["check"]);
|
|
@@ -22801,7 +22801,7 @@ var downloadImageModel = /* @__PURE__ */ __name(async (id2, { env, progress = /*
|
|
|
22801
22801
|
await installFiles(placedImage(model, directory2), { progress });
|
|
22802
22802
|
}
|
|
22803
22803
|
progress(`${model.id}: loading it once to check it works`);
|
|
22804
|
-
const { openPictureEmbedder } = await import("./embedder-
|
|
22804
|
+
const { openPictureEmbedder } = await import("./embedder-P3W76VOZ.js");
|
|
22805
22805
|
const embedder = await openPictureEmbedder(model, directory2);
|
|
22806
22806
|
try {
|
|
22807
22807
|
const vector = await embedder.embedQuery("check");
|
|
@@ -22813,7 +22813,7 @@ var downloadImageModel = /* @__PURE__ */ __name(async (id2, { env, progress = /*
|
|
|
22813
22813
|
return { model, directory: directory2 };
|
|
22814
22814
|
}, "downloadImageModel");
|
|
22815
22815
|
|
|
22816
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22816
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/services/account.js
|
|
22817
22817
|
var accountService = /* @__PURE__ */ __name((deps) => {
|
|
22818
22818
|
const online = /* @__PURE__ */ __name(async (command) => {
|
|
22819
22819
|
if (deps.offline)
|
|
@@ -22885,7 +22885,7 @@ var accountService = /* @__PURE__ */ __name((deps) => {
|
|
|
22885
22885
|
};
|
|
22886
22886
|
}, "accountService");
|
|
22887
22887
|
|
|
22888
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22888
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/domain/send-time.js
|
|
22889
22889
|
var MINUTE = 6e4;
|
|
22890
22890
|
var YEAR = 365 * 24 * 60 * MINUTE;
|
|
22891
22891
|
var DELAY = /^(\d+)(m|h|d)$/;
|
|
@@ -22904,7 +22904,7 @@ var sendTime = /* @__PURE__ */ __name((value, now = Date.now(), flag = "--at-tim
|
|
|
22904
22904
|
return new Date(at - at % MINUTE).toISOString();
|
|
22905
22905
|
}, "sendTime");
|
|
22906
22906
|
|
|
22907
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22907
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/services/admin.js
|
|
22908
22908
|
var recordMembership = /* @__PURE__ */ __name(async (deps, operationId, done2, change, fix, write) => {
|
|
22909
22909
|
try {
|
|
22910
22910
|
const held = await accountStoreIfOpen(deps);
|
|
@@ -23151,7 +23151,7 @@ var linkLimits = /* @__PURE__ */ __name(({ approval, expires, maxUses }) => {
|
|
|
23151
23151
|
return expires === void 0 ? void 0 : sendTime(expires, Date.now(), "--expire-time");
|
|
23152
23152
|
}, "linkLimits");
|
|
23153
23153
|
|
|
23154
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23154
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/services/mail-search.js
|
|
23155
23155
|
var THREADS_PAGE = 500;
|
|
23156
23156
|
var threadsOf = /* @__PURE__ */ __name(async (store, key) => {
|
|
23157
23157
|
const account = await store.accounts.storedAccount(key).catch(() => void 0);
|
|
@@ -23230,7 +23230,7 @@ var readMail = /* @__PURE__ */ __name(async (store, locator, { before: before2 =
|
|
|
23230
23230
|
return thread.slice(Math.max(0, at - before2), at + after + 1).map((hit) => hit.id === message ? { ...hit, anchor: true } : hit);
|
|
23231
23231
|
}, "readMail");
|
|
23232
23232
|
|
|
23233
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23233
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/services/search-kind.js
|
|
23234
23234
|
var NO_MAIL = "no_mail";
|
|
23235
23235
|
var MAIL = "email";
|
|
23236
23236
|
var listContextOf = /* @__PURE__ */ __name(async (store, account, app, stored) => {
|
|
@@ -23277,7 +23277,7 @@ var accountsOfKind = /* @__PURE__ */ __name((kind, chosen, held, explicit, comma
|
|
|
23277
23277
|
return chosenMail.map(({ provider, account }) => ({ provider, account }));
|
|
23278
23278
|
}, "accountsOfKind");
|
|
23279
23279
|
|
|
23280
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23280
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/services/messages-search.js
|
|
23281
23281
|
var MAIL_FIELDS = /* @__PURE__ */ new Set(["to", "cc", "bcc", "subject", "mailbox", "label", "is"]);
|
|
23282
23282
|
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");
|
|
23283
23283
|
var prepareLucene = /* @__PURE__ */ __name(async (store, account, request, messenger) => {
|
|
@@ -23608,7 +23608,7 @@ var statsLucene = /* @__PURE__ */ __name(async (store, account, request, messeng
|
|
|
23608
23608
|
};
|
|
23609
23609
|
}, "statsLucene");
|
|
23610
23610
|
|
|
23611
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23611
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/services/rankings-selection.js
|
|
23612
23612
|
var RANKING_SELECTION_BYTES = 64 * 1024;
|
|
23613
23613
|
var object = /* @__PURE__ */ __name((value) => value !== null && typeof value === "object" && !Array.isArray(value) ? value : void 0, "object");
|
|
23614
23614
|
function invalid3(message = "ranking selection is invalid \u2014 obtain a new drilldown from stats top") {
|
|
@@ -23777,7 +23777,7 @@ var readRankingSelection = /* @__PURE__ */ __name(async (store, input) => {
|
|
|
23777
23777
|
};
|
|
23778
23778
|
}, "readRankingSelection");
|
|
23779
23779
|
|
|
23780
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23780
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/services/search-record.js
|
|
23781
23781
|
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");
|
|
23782
23782
|
var searchRecordOf = /* @__PURE__ */ __name((command, params) => ({
|
|
23783
23783
|
command,
|
|
@@ -23787,7 +23787,7 @@ var searchRecordOf = /* @__PURE__ */ __name((command, params) => ({
|
|
|
23787
23787
|
fieldsVersion: FIELD_VERSION
|
|
23788
23788
|
}), "searchRecordOf");
|
|
23789
23789
|
|
|
23790
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23790
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/services/admin-statistics.js
|
|
23791
23791
|
function invalid4(message) {
|
|
23792
23792
|
throw new CliError("validation_error", message);
|
|
23793
23793
|
}
|
|
@@ -24081,7 +24081,7 @@ var adminStatisticsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
24081
24081
|
}, "evidence")
|
|
24082
24082
|
}), "adminStatisticsService");
|
|
24083
24083
|
|
|
24084
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24084
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/services/agenda.js
|
|
24085
24085
|
var DAY = 864e5;
|
|
24086
24086
|
var CLAIMS = ["none", "mine", "others", "any"];
|
|
24087
24087
|
var TASK_FIELDS = /* @__PURE__ */ new Set(["tag", "category", "claimed"]);
|
|
@@ -24303,10 +24303,10 @@ var agendaItem = /* @__PURE__ */ __name((shown) => {
|
|
|
24303
24303
|
};
|
|
24304
24304
|
}, "agendaItem");
|
|
24305
24305
|
|
|
24306
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24306
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/services/archive.js
|
|
24307
24307
|
import { setTimeout as sleep3 } from "node:timers/promises";
|
|
24308
24308
|
|
|
24309
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24309
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/services/backfill-estimate.js
|
|
24310
24310
|
var REQUEST_MS = 400;
|
|
24311
24311
|
var estimateBackfill = /* @__PURE__ */ __name(({ ranges, held, newest, page, maxPages, pauseMs }) => {
|
|
24312
24312
|
const lowest = ranges[0];
|
|
@@ -24329,13 +24329,13 @@ var estimateBackfill = /* @__PURE__ */ __name(({ ranges, held, newest, page, max
|
|
|
24329
24329
|
};
|
|
24330
24330
|
}, "estimateBackfill");
|
|
24331
24331
|
|
|
24332
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24332
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/domain/recovery.js
|
|
24333
24333
|
var withRecovery = /* @__PURE__ */ __name((error) => ({
|
|
24334
24334
|
...error,
|
|
24335
24335
|
retryable: typeof error.retryable === "boolean" ? error.retryable : error.code === "rate_limited" || error.status === 429
|
|
24336
24336
|
}), "withRecovery");
|
|
24337
24337
|
|
|
24338
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24338
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/services/batch.js
|
|
24339
24339
|
var actionable = /* @__PURE__ */ __name((error) => {
|
|
24340
24340
|
if (isCliFailure(error))
|
|
24341
24341
|
return withRecovery({ code: error.code, message: error.message, ...error.details });
|
|
@@ -24418,7 +24418,7 @@ var mergeBatches = /* @__PURE__ */ __name((a, b) => {
|
|
|
24418
24418
|
};
|
|
24419
24419
|
}, "mergeBatches");
|
|
24420
24420
|
|
|
24421
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24421
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/services/patience.js
|
|
24422
24422
|
import { setTimeout as sleep2 } from "node:timers/promises";
|
|
24423
24423
|
var LONGEST_WAIT_MS = 5 * 60 * 1e3;
|
|
24424
24424
|
var patiently = /* @__PURE__ */ __name(async (request, note, stop) => {
|
|
@@ -24441,7 +24441,7 @@ var patiently = /* @__PURE__ */ __name(async (request, note, stop) => {
|
|
|
24441
24441
|
}
|
|
24442
24442
|
}, "patiently");
|
|
24443
24443
|
|
|
24444
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24444
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/images/context/index.js
|
|
24445
24445
|
var CONTEXT_MESSAGES2 = 3;
|
|
24446
24446
|
var CONTEXT_MINUTES = 10;
|
|
24447
24447
|
var MAX_CHARS = 1200;
|
|
@@ -24465,12 +24465,12 @@ var context = {
|
|
|
24465
24465
|
}, "describe")
|
|
24466
24466
|
};
|
|
24467
24467
|
|
|
24468
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24468
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/images/registry.js
|
|
24469
24469
|
var BUILT_INS = [context];
|
|
24470
24470
|
var providers = [...BUILT_INS];
|
|
24471
24471
|
var registeredImageProviders = /* @__PURE__ */ __name(() => providers, "registeredImageProviders");
|
|
24472
24472
|
|
|
24473
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24473
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/services/conversations.js
|
|
24474
24474
|
var READ_PAGE = 5e3;
|
|
24475
24475
|
var CHAIN = 50;
|
|
24476
24476
|
var CONVERSATION_QUERY = {
|
|
@@ -24622,7 +24622,7 @@ var sized = /* @__PURE__ */ __name((size2) => {
|
|
|
24622
24622
|
return size2;
|
|
24623
24623
|
}, "sized");
|
|
24624
24624
|
|
|
24625
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24625
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/services/embeddings-maintenance.js
|
|
24626
24626
|
var REFRESH_BOUNDS = { maxChats: 20, maxChunks: 2e3 };
|
|
24627
24627
|
var MESSAGE_PAGE = 5e3;
|
|
24628
24628
|
var PER_SESSION = 8;
|
|
@@ -24641,7 +24641,7 @@ var embeddingTarget = /* @__PURE__ */ __name((deps, choice = DEFAULT_TEXT_MODEL)
|
|
|
24641
24641
|
price: remote.price,
|
|
24642
24642
|
installed: true,
|
|
24643
24643
|
perBatch: PER_REQUEST * concurrency,
|
|
24644
|
-
open: /* @__PURE__ */ __name(async () => (await import("./remote-
|
|
24644
|
+
open: /* @__PURE__ */ __name(async () => (await import("./remote-JQ74NVUK.js")).openRemote(remote, apiKey, { concurrency }), "open")
|
|
24645
24645
|
};
|
|
24646
24646
|
}
|
|
24647
24647
|
const model = textModel(choice);
|
|
@@ -24658,7 +24658,7 @@ var embeddingTarget = /* @__PURE__ */ __name((deps, choice = DEFAULT_TEXT_MODEL)
|
|
|
24658
24658
|
if (!isTextModelInstalled(model, directory2))
|
|
24659
24659
|
throw notDownloaded(model.id);
|
|
24660
24660
|
if (apart) {
|
|
24661
|
-
const { openProcess } = await import("./process-
|
|
24661
|
+
const { openProcess } = await import("./process-7MD6MEGB.js");
|
|
24662
24662
|
return openProcess(model, directory2, { threads: threads ?? defaultThreads() });
|
|
24663
24663
|
}
|
|
24664
24664
|
return openEmbedder(model, directory2, { threads: threads ?? defaultThreads() });
|
|
@@ -24947,7 +24947,7 @@ var shaped = /* @__PURE__ */ __name(({ chatId, builtAt, algorithmVersion, pendin
|
|
|
24947
24947
|
return { ...one, state };
|
|
24948
24948
|
}, "shaped");
|
|
24949
24949
|
|
|
24950
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24950
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/services/search-catchup.js
|
|
24951
24951
|
var CATCH_UP_BOUNDS = { maxChunks: 500, maxMessages: 1e4, timeMs: 3e4 };
|
|
24952
24952
|
var validateCatchUpBounds = /* @__PURE__ */ __name((options) => {
|
|
24953
24953
|
for (const [key, value, maximum] of [
|
|
@@ -25000,7 +25000,7 @@ var catchUpSearch = /* @__PURE__ */ __name(async (deps, chat, options, signal, c
|
|
|
25000
25000
|
}
|
|
25001
25001
|
}, "catchUpSearch");
|
|
25002
25002
|
|
|
25003
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25003
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/services/archive.js
|
|
25004
25004
|
var pushed = /* @__PURE__ */ __name((deps, what) => {
|
|
25005
25005
|
if (deps.reads === "store") {
|
|
25006
25006
|
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`);
|
|
@@ -25317,7 +25317,7 @@ var timeOfKey = /* @__PURE__ */ __name(async (store, account, chatId, key, byTim
|
|
|
25317
25317
|
return message?.timestamp ?? fallback;
|
|
25318
25318
|
}, "timeOfKey");
|
|
25319
25319
|
|
|
25320
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25320
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/services/archive-gaps.js
|
|
25321
25321
|
import { createHash as createHash6, randomUUID as randomUUID6 } from "node:crypto";
|
|
25322
25322
|
var GAP_BOUNDS = { maxGaps: 5, limit: 500, timeMs: 3e4 };
|
|
25323
25323
|
var validateRepair = /* @__PURE__ */ __name((messenger, options) => {
|
|
@@ -25454,12 +25454,12 @@ var gapsService = /* @__PURE__ */ __name((deps) => {
|
|
|
25454
25454
|
return { plan, repair };
|
|
25455
25455
|
}, "gapsService");
|
|
25456
25456
|
|
|
25457
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25457
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/services/attachments.js
|
|
25458
25458
|
import { createHash as createHash8 } from "node:crypto";
|
|
25459
25459
|
import { constants as constants4 } from "node:fs";
|
|
25460
25460
|
import { open as open9, readFile, stat as stat2 } from "node:fs/promises";
|
|
25461
25461
|
|
|
25462
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25462
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/attachments/directory.js
|
|
25463
25463
|
import { lstat as lstat5, readdir as readdir3, realpath as realpath6 } from "node:fs/promises";
|
|
25464
25464
|
import { basename as basename6, join as join12, relative as relative2, sep as sep2 } from "node:path";
|
|
25465
25465
|
var MAX_FILES = 1e4;
|
|
@@ -25530,15 +25530,15 @@ var directoryPaths = /* @__PURE__ */ __name(async (store, chat, directory2, app,
|
|
|
25530
25530
|
return choices;
|
|
25531
25531
|
}, "directoryPaths");
|
|
25532
25532
|
|
|
25533
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25533
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/attachments/documents.js
|
|
25534
25534
|
import { posix } from "node:path";
|
|
25535
25535
|
|
|
25536
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25536
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/attachments/container.js
|
|
25537
25537
|
import { setImmediate as tick } from "node:timers/promises";
|
|
25538
25538
|
import { crc32 } from "node:zlib";
|
|
25539
25539
|
var import_xmldom = __toESM(require_lib(), 1);
|
|
25540
25540
|
|
|
25541
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25541
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/attachments/encoding.js
|
|
25542
25542
|
var import_chardet = __toESM(require_lib2(), 1);
|
|
25543
25543
|
var import_iconv_lite = __toESM(require_lib3(), 1);
|
|
25544
25544
|
var SAMPLE = 65536;
|
|
@@ -25640,7 +25640,7 @@ var decodeXml = /* @__PURE__ */ __name((bytes2) => {
|
|
|
25640
25640
|
return result.text;
|
|
25641
25641
|
}, "decodeXml");
|
|
25642
25642
|
|
|
25643
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25643
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/attachments/container.js
|
|
25644
25644
|
var MAX_PART = 10 * 1024 * 1024;
|
|
25645
25645
|
var MAX_ENTRIES = 1e3;
|
|
25646
25646
|
var decoder = new TextDecoder("utf-8", { fatal: true });
|
|
@@ -25855,7 +25855,7 @@ var elements = /* @__PURE__ */ __name((node, name, namespace) => {
|
|
|
25855
25855
|
return found;
|
|
25856
25856
|
}, "elements");
|
|
25857
25857
|
|
|
25858
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25858
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/attachments/sheets.js
|
|
25859
25859
|
var columnName = /* @__PURE__ */ __name((column) => {
|
|
25860
25860
|
let name = "";
|
|
25861
25861
|
for (let rest = column; rest > 0; rest = Math.floor((rest - 1) / 26))
|
|
@@ -25910,7 +25910,7 @@ var sheetText = /* @__PURE__ */ __name((sheets2, maxChars = MAX_TEXT_CHARS) => {
|
|
|
25910
25910
|
return { text: parts.join("").trim(), truncated: false };
|
|
25911
25911
|
}, "sheetText");
|
|
25912
25912
|
|
|
25913
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25913
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/attachments/documents.js
|
|
25914
25914
|
var OFFICE = "urn:oasis:names:tc:opendocument:xmlns:office:1.0";
|
|
25915
25915
|
var TEXT = "urn:oasis:names:tc:opendocument:xmlns:text:1.0";
|
|
25916
25916
|
var TABLE = "urn:oasis:names:tc:opendocument:xmlns:table:1.0";
|
|
@@ -26310,10 +26310,10 @@ var readDocument = /* @__PURE__ */ __name(async (bytes2, kind, signal) => {
|
|
|
26310
26310
|
}
|
|
26311
26311
|
}, "readDocument");
|
|
26312
26312
|
|
|
26313
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26313
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/attachments/extract.js
|
|
26314
26314
|
import { extname as extname3 } from "node:path";
|
|
26315
26315
|
|
|
26316
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26316
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/readers/engine.js
|
|
26317
26317
|
import { readFileSync as readFileSync2 } from "node:fs";
|
|
26318
26318
|
import { dirname as dirname6, extname as extname2, join as join13 } from "node:path";
|
|
26319
26319
|
import { fileURLToPath } from "node:url";
|
|
@@ -26374,7 +26374,7 @@ var derived = /* @__PURE__ */ __name((bytes2, extractor, read) => {
|
|
|
26374
26374
|
}
|
|
26375
26375
|
}, "derived");
|
|
26376
26376
|
|
|
26377
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26377
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/readers/image/index.js
|
|
26378
26378
|
var IMAGES = /* @__PURE__ */ new Set([".jpg", ".jpeg", ".png", ".webp", ".gif", ".heic", ".tif", ".tiff", ".bmp"]);
|
|
26379
26379
|
var image2 = {
|
|
26380
26380
|
id: "image",
|
|
@@ -26383,7 +26383,7 @@ var image2 = {
|
|
|
26383
26383
|
read: /* @__PURE__ */ __name(async () => ({ status: "needs-agent" }), "read")
|
|
26384
26384
|
};
|
|
26385
26385
|
|
|
26386
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26386
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/readers/doc/index.js
|
|
26387
26387
|
var OLE = "\xD0\xCF\xE0\xA1\xB1\xE1";
|
|
26388
26388
|
var doc = {
|
|
26389
26389
|
id: "doc",
|
|
@@ -26395,7 +26395,7 @@ var doc = {
|
|
|
26395
26395
|
}), "read")
|
|
26396
26396
|
};
|
|
26397
26397
|
|
|
26398
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26398
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/readers/docx/index.js
|
|
26399
26399
|
var DOCX = "application/vnd.openxmlformats-officedocument.wordprocessingml.document";
|
|
26400
26400
|
var docx = {
|
|
26401
26401
|
id: "docx",
|
|
@@ -26408,7 +26408,7 @@ var docx = {
|
|
|
26408
26408
|
}), "read")
|
|
26409
26409
|
};
|
|
26410
26410
|
|
|
26411
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26411
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/attachments/markup.js
|
|
26412
26412
|
var import_iconv_lite2 = __toESM(require_lib3(), 1);
|
|
26413
26413
|
var RTF_SKIPPED = /* @__PURE__ */ new Set([
|
|
26414
26414
|
"fonttbl",
|
|
@@ -26584,7 +26584,7 @@ var htmlText = /* @__PURE__ */ __name((source) => {
|
|
|
26584
26584
|
}, "htmlText");
|
|
26585
26585
|
var safeChar = /* @__PURE__ */ __name((code, fallback) => code > 0 && code <= 1114111 ? String.fromCodePoint(code) : fallback, "safeChar");
|
|
26586
26586
|
|
|
26587
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26587
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/readers/html/page.js
|
|
26588
26588
|
var clean = /* @__PURE__ */ __name((value) => typeof value === "string" ? value.replace(/\s+/g, " ").trim() : "", "clean");
|
|
26589
26589
|
var namesIn = /* @__PURE__ */ __name((value) => [value].flat().map((entry) => typeof entry === "string" ? clean(entry) : clean(entry?.name)).filter(Boolean).join(", "), "namesIn");
|
|
26590
26590
|
var jsonLdNodes = /* @__PURE__ */ __name((document) => {
|
|
@@ -26640,7 +26640,7 @@ var markdownSections = /* @__PURE__ */ __name((text) => {
|
|
|
26640
26640
|
return found.map((section, index) => ({ ...section, end: found[index + 1]?.start ?? text.length }));
|
|
26641
26641
|
}, "markdownSections");
|
|
26642
26642
|
|
|
26643
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26643
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/readers/html/index.js
|
|
26644
26644
|
var HTML = /* @__PURE__ */ new Set([".html", ".htm", ".xhtml"]);
|
|
26645
26645
|
var first = /* @__PURE__ */ __name((...values) => values.find((value) => typeof value === "string" && value !== ""), "first");
|
|
26646
26646
|
var loaded = /* @__PURE__ */ __name(async (load, name) => {
|
|
@@ -26711,7 +26711,7 @@ var html = {
|
|
|
26711
26711
|
}, "read")
|
|
26712
26712
|
};
|
|
26713
26713
|
|
|
26714
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26714
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/readers/office/index.js
|
|
26715
26715
|
var office = {
|
|
26716
26716
|
id: "office",
|
|
26717
26717
|
version: documentExtractor("odt"),
|
|
@@ -26722,7 +26722,7 @@ var office = {
|
|
|
26722
26722
|
}, "read")
|
|
26723
26723
|
};
|
|
26724
26724
|
|
|
26725
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26725
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/readers/pdf/index.js
|
|
26726
26726
|
var pdf = {
|
|
26727
26727
|
id: "pdf",
|
|
26728
26728
|
version: "unpdf",
|
|
@@ -26789,7 +26789,7 @@ var pdf = {
|
|
|
26789
26789
|
}), "read")
|
|
26790
26790
|
};
|
|
26791
26791
|
|
|
26792
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26792
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/readers/plain/index.js
|
|
26793
26793
|
var PLAIN = /* @__PURE__ */ new Set([".txt", ".md", ".markdown", ".csv", ".tsv", ".json", ".log"]);
|
|
26794
26794
|
var isPlain = /* @__PURE__ */ __name((hint) => PLAIN.has(extensionOf(hint)) || hint.mime?.startsWith("text/") || hint.mime === "application/json", "isPlain");
|
|
26795
26795
|
var readPlain = /* @__PURE__ */ __name((bytes2) => {
|
|
@@ -26809,7 +26809,7 @@ var plain = {
|
|
|
26809
26809
|
read: /* @__PURE__ */ __name(async (bytes2) => readPlain(bytes2), "read")
|
|
26810
26810
|
};
|
|
26811
26811
|
|
|
26812
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26812
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/readers/rtf/index.js
|
|
26813
26813
|
var rtf = {
|
|
26814
26814
|
id: "rtf",
|
|
26815
26815
|
version: "v1",
|
|
@@ -26817,10 +26817,10 @@ var rtf = {
|
|
|
26817
26817
|
read: /* @__PURE__ */ __name(async (bytes2) => derived(bytes2, "rtf:v1", rtfText), "read")
|
|
26818
26818
|
};
|
|
26819
26819
|
|
|
26820
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26820
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/readers/sheets/index.js
|
|
26821
26821
|
import { basename as basename7 } from "node:path";
|
|
26822
26822
|
|
|
26823
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26823
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/attachments/csv-spans.js
|
|
26824
26824
|
var delimitedSpans = /* @__PURE__ */ __name((text, delimiter, maxCells = 1e4) => {
|
|
26825
26825
|
const cells = [];
|
|
26826
26826
|
let row = 1, column = 1, start = 0, quoted = false, truncated = false;
|
|
@@ -26858,7 +26858,7 @@ var delimitedSpans = /* @__PURE__ */ __name((text, delimiter, maxCells = 1e4) =>
|
|
|
26858
26858
|
return { cells, truncated };
|
|
26859
26859
|
}, "delimitedSpans");
|
|
26860
26860
|
|
|
26861
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26861
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/readers/sheets/index.js
|
|
26862
26862
|
var DELIMITED = {
|
|
26863
26863
|
".csv": ",",
|
|
26864
26864
|
".tsv": " ",
|
|
@@ -26897,7 +26897,7 @@ var sheets = {
|
|
|
26897
26897
|
}, "read")
|
|
26898
26898
|
};
|
|
26899
26899
|
|
|
26900
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26900
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/readers/registry.js
|
|
26901
26901
|
var BUILT_INS2 = [office, pdf, docx, doc, rtf, html, sheets, plain, image2];
|
|
26902
26902
|
var HEAD_BYTES = 1024;
|
|
26903
26903
|
var readers = [...BUILT_INS2];
|
|
@@ -26907,7 +26907,7 @@ var readWithRegistry = /* @__PURE__ */ __name(async (bytes2, hint, context2) =>
|
|
|
26907
26907
|
return reader ? reader.read(bytes2, hint, context2) : { status: "unsupported" };
|
|
26908
26908
|
}, "readWithRegistry");
|
|
26909
26909
|
|
|
26910
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26910
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/attachments/extract.js
|
|
26911
26911
|
var importEngine = /* @__PURE__ */ __name((name) => importFrom(new URL("attachments/extract.js", import.meta.resolve("@wirecat/cli-core")).href, name), "importEngine");
|
|
26912
26912
|
var extensionOf2 = /* @__PURE__ */ __name(({ name, path }) => extname3(name ?? path).toLowerCase(), "extensionOf");
|
|
26913
26913
|
var extractText = /* @__PURE__ */ __name(async (bytes2, hint, load, signal, env = process.env) => {
|
|
@@ -27986,7 +27986,7 @@ function imageSize(input) {
|
|
|
27986
27986
|
}
|
|
27987
27987
|
__name(imageSize, "imageSize");
|
|
27988
27988
|
|
|
27989
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27989
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/attachments/ocr.js
|
|
27990
27990
|
var MAX_PAGES = 20;
|
|
27991
27991
|
var MAX_PIXELS = 2e7;
|
|
27992
27992
|
var cancelled2 = /* @__PURE__ */ __name((signal) => {
|
|
@@ -28137,7 +28137,7 @@ var ocrPdf = /* @__PURE__ */ __name(async (bytes2, pipeline2, load, signal) => {
|
|
|
28137
28137
|
}
|
|
28138
28138
|
}, "ocrPdf");
|
|
28139
28139
|
|
|
28140
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28140
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/attachments/pdf-preview.js
|
|
28141
28141
|
var pdfPreview = /* @__PURE__ */ __name(async (bytes2, page, signal, load = importEngine, env = process.env) => {
|
|
28142
28142
|
const limits = pdfPreviewLimits(env);
|
|
28143
28143
|
const cancelled4 = /* @__PURE__ */ __name(() => {
|
|
@@ -28214,7 +28214,7 @@ var pdfPreview = /* @__PURE__ */ __name(async (bytes2, page, signal, load = impo
|
|
|
28214
28214
|
}
|
|
28215
28215
|
}, "pdfPreview");
|
|
28216
28216
|
|
|
28217
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28217
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/attachments/transfer.js
|
|
28218
28218
|
import { createHash as createHash7 } from "node:crypto";
|
|
28219
28219
|
import { constants as constants3 } from "node:fs";
|
|
28220
28220
|
import { lstat as lstat6, open as open8 } from "node:fs/promises";
|
|
@@ -28322,7 +28322,7 @@ var transferMime = /* @__PURE__ */ __name((head, hint, name = null) => {
|
|
|
28322
28322
|
return hint !== null && /^[a-z0-9.+-]+\/[a-z0-9.+-]+$/i.test(hint) ? hint : "application/octet-stream";
|
|
28323
28323
|
}, "transferMime");
|
|
28324
28324
|
|
|
28325
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28325
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/services/attachments.js
|
|
28326
28326
|
var ATTACHMENT_QUERY = {
|
|
28327
28327
|
entity: "attachment",
|
|
28328
28328
|
backend: "sql",
|
|
@@ -28703,7 +28703,7 @@ var attachmentsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
28703
28703
|
}, "setText")
|
|
28704
28704
|
}), "attachmentsService");
|
|
28705
28705
|
|
|
28706
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28706
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/services/chat-documents.js
|
|
28707
28707
|
var chatDocumentsService = /* @__PURE__ */ __name((deps) => ({
|
|
28708
28708
|
list: /* @__PURE__ */ __name(async (chat, { limit, offset, ref }) => {
|
|
28709
28709
|
const store = await accountStore(deps);
|
|
@@ -28733,7 +28733,7 @@ var chatDocumentsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
28733
28733
|
}, "list")
|
|
28734
28734
|
}), "chatDocumentsService");
|
|
28735
28735
|
|
|
28736
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28736
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/services/retention.js
|
|
28737
28737
|
var observationDuration = /* @__PURE__ */ __name((text, flag) => {
|
|
28738
28738
|
const match = /^(\d+(?:\.\d+)?)([smhdw])$/.exec(text);
|
|
28739
28739
|
const units2 = { s: 1e3, m: 6e4, h: 36e5, d: 864e5, w: 6048e5 };
|
|
@@ -28820,7 +28820,7 @@ var isRetentionSelection = /* @__PURE__ */ __name((selection) => {
|
|
|
28820
28820
|
}
|
|
28821
28821
|
}, "isRetentionSelection");
|
|
28822
28822
|
|
|
28823
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28823
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/services/counters.js
|
|
28824
28824
|
var counterFields = /* @__PURE__ */ __name((text = "views,reactions,comments") => {
|
|
28825
28825
|
const fields = text.split(",").map((one) => one.trim());
|
|
28826
28826
|
if (!fields.length || fields.some((one) => !COUNTER_FIELDS.includes(one)) || new Set(fields).size !== fields.length)
|
|
@@ -29027,7 +29027,7 @@ var countersService = /* @__PURE__ */ __name((deps) => {
|
|
|
29027
29027
|
};
|
|
29028
29028
|
}, "countersService");
|
|
29029
29029
|
|
|
29030
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29030
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/services/search-refresh.js
|
|
29031
29031
|
var SYNC_KEY = "messages.sync-first";
|
|
29032
29032
|
var SYNC_BOUNDS = { maxChats: 5, timeMs: 3e4, maxMessages: 500 };
|
|
29033
29033
|
var keyOf2 = /* @__PURE__ */ __name((chat) => JSON.stringify([chat.account.provider, chat.account.account, chat.chatId]), "keyOf");
|
|
@@ -29159,7 +29159,7 @@ var withRefresh = /* @__PURE__ */ __name((found, refreshed) => ({
|
|
|
29159
29159
|
...!refreshed || refreshed.complete ? {} : { coverage: { ...found.coverage, state: "stale" } }
|
|
29160
29160
|
}), "withRefresh");
|
|
29161
29161
|
|
|
29162
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29162
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/services/embeddings-search.js
|
|
29163
29163
|
var CANDIDATES = 50;
|
|
29164
29164
|
var WORD_HITS = 200;
|
|
29165
29165
|
var RRF_K = 60;
|
|
@@ -29434,13 +29434,13 @@ var meanOf = /* @__PURE__ */ __name((vectors) => {
|
|
|
29434
29434
|
return mean.map((value) => value / length);
|
|
29435
29435
|
}, "meanOf");
|
|
29436
29436
|
|
|
29437
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29437
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/services/embeddings.js
|
|
29438
29438
|
var embeddingsService = /* @__PURE__ */ __name((deps) => ({
|
|
29439
29439
|
...embeddingsMaintenance(deps),
|
|
29440
29440
|
...embeddingsSearch(deps)
|
|
29441
29441
|
}), "embeddingsService");
|
|
29442
29442
|
|
|
29443
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29443
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/services/folders.js
|
|
29444
29444
|
var foldersService = /* @__PURE__ */ __name((deps) => {
|
|
29445
29445
|
const online = /* @__PURE__ */ __name(async (command) => {
|
|
29446
29446
|
if (deps.offline)
|
|
@@ -29581,7 +29581,7 @@ var foldersService = /* @__PURE__ */ __name((deps) => {
|
|
|
29581
29581
|
};
|
|
29582
29582
|
}, "foldersService");
|
|
29583
29583
|
|
|
29584
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29584
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/services/mentions.js
|
|
29585
29585
|
var REVIEW_COUNT = 500;
|
|
29586
29586
|
var mentionsService = /* @__PURE__ */ __name((deps) => {
|
|
29587
29587
|
const located = /* @__PURE__ */ __name(async () => {
|
|
@@ -29660,7 +29660,7 @@ var mentionsService = /* @__PURE__ */ __name((deps) => {
|
|
|
29660
29660
|
};
|
|
29661
29661
|
}, "mentionsService");
|
|
29662
29662
|
|
|
29663
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29663
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/domain/message-link.js
|
|
29664
29664
|
var messageLinkTarget = /* @__PURE__ */ __name((reference, message, provider) => {
|
|
29665
29665
|
if (isLocator(reference)) {
|
|
29666
29666
|
if (message !== void 0)
|
|
@@ -29707,7 +29707,7 @@ var validatePermalink = /* @__PURE__ */ __name((link5) => {
|
|
|
29707
29707
|
return { url: link5.url, access: link5.access, reason: link5.reason };
|
|
29708
29708
|
}, "validatePermalink");
|
|
29709
29709
|
|
|
29710
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29710
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/domain/pin-duration.js
|
|
29711
29711
|
var spokenSeconds = /* @__PURE__ */ __name((seconds) => {
|
|
29712
29712
|
if (seconds % 86400 === 0 && seconds > 86400)
|
|
29713
29713
|
return `${seconds / 86400}d`;
|
|
@@ -29739,7 +29739,7 @@ var pinDurationOf = /* @__PURE__ */ __name((value, allowed, flag = "--expire-tim
|
|
|
29739
29739
|
return seconds;
|
|
29740
29740
|
}, "pinDurationOf");
|
|
29741
29741
|
|
|
29742
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29742
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/sends/send-as.js
|
|
29743
29743
|
var sendAsCheck = /* @__PURE__ */ __name((connection, sendAs) => {
|
|
29744
29744
|
if (sendAs === void 0) {
|
|
29745
29745
|
const saved = connection.savedSender?.bind(connection);
|
|
@@ -29764,7 +29764,7 @@ var typedSendAs = /* @__PURE__ */ __name((typed) => {
|
|
|
29764
29764
|
return sendAs;
|
|
29765
29765
|
}, "typedSendAs");
|
|
29766
29766
|
|
|
29767
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29767
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/search/question-plan.js
|
|
29768
29768
|
var words = /* @__PURE__ */ __name((text) => normalize(text).match(/[\p{L}\p{N}]+/gu) ?? [], "words");
|
|
29769
29769
|
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"));
|
|
29770
29770
|
var questionWord = /\b(?:what|which|how|who|where|when|can|could|should)\b|(?:^|\s)(?:сколько|какой|какая|какие|какое|кто|кому|кем|где|когда|как|что|можно|может|могут|ли)(?:\s|$)/iu;
|
|
@@ -29879,7 +29879,7 @@ function planQuestion(text, strict = false) {
|
|
|
29879
29879
|
}
|
|
29880
29880
|
__name(planQuestion, "planQuestion");
|
|
29881
29881
|
|
|
29882
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29882
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/services/messages-combined.js
|
|
29883
29883
|
var COMBINED_DEFAULTS = { candidateDepth: 300, rrfK: 60, rerank: "all", chatCap: 0 };
|
|
29884
29884
|
var tokensOf = /* @__PURE__ */ __name((text) => normalize(text).match(/[\p{L}\p{N}\p{Co}\p{M}]+/gu) ?? [], "tokensOf");
|
|
29885
29885
|
var searchCombined = /* @__PURE__ */ __name(async (store, account, request, messenger = {}, options = COMBINED_DEFAULTS) => {
|
|
@@ -30072,7 +30072,7 @@ var signals = /* @__PURE__ */ __name((hit, terms, corrections, execution, mode,
|
|
|
30072
30072
|
return mode === "coverage" ? coverage * 4 : mode === "proximity" ? proximity : mode === "phrase" ? phrase : coverage * 4 + proximity + phrase;
|
|
30073
30073
|
}, "signals");
|
|
30074
30074
|
|
|
30075
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30075
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/services/messages-discovery.js
|
|
30076
30076
|
var MEANING_DEPTH = 100;
|
|
30077
30077
|
var RRF_K2 = 60;
|
|
30078
30078
|
var RERANK_DEPTH = 50;
|
|
@@ -30341,7 +30341,7 @@ var mixedWithReranker = /* @__PURE__ */ __name((head, scores) => {
|
|
|
30341
30341
|
})).sort((a, b) => b.mixed - a.mixed).map(({ hit }) => hit);
|
|
30342
30342
|
}, "mixedWithReranker");
|
|
30343
30343
|
|
|
30344
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30344
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/services/thread-context.js
|
|
30345
30345
|
var THREAD_BOUNDS = { maxHops: 8, maxMessages: 50, maxBytes: 65536, withinMs: 864e5 };
|
|
30346
30346
|
var bytes = /* @__PURE__ */ __name((items, links) => Buffer.byteLength(JSON.stringify({ items, links }), "utf8"), "bytes");
|
|
30347
30347
|
var threadBounds = /* @__PURE__ */ __name((options = {}) => {
|
|
@@ -30540,7 +30540,7 @@ var readThreadContext = /* @__PURE__ */ __name(async (store, account, chat, mess
|
|
|
30540
30540
|
return result;
|
|
30541
30541
|
}, "readThreadContext");
|
|
30542
30542
|
|
|
30543
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30543
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/services/messages-archive-search.js
|
|
30544
30544
|
var SEARCH_FILL_MS = 200;
|
|
30545
30545
|
var statsStore = /* @__PURE__ */ __name(async (store, account, request, messenger = {}) => {
|
|
30546
30546
|
const stop = Date.now() + SEARCH_FILL_MS;
|
|
@@ -30600,12 +30600,12 @@ var accountOf2 = /* @__PURE__ */ __name((hit) => {
|
|
|
30600
30600
|
}, "accountOf");
|
|
30601
30601
|
var keyOf3 = /* @__PURE__ */ __name(({ provider, account }) => `${provider}/${account}`, "keyOf");
|
|
30602
30602
|
|
|
30603
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30603
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/services/pictures.js
|
|
30604
30604
|
import { createHash as createHash9 } from "node:crypto";
|
|
30605
30605
|
import { readFile as readFile2, stat as stat3 } from "node:fs/promises";
|
|
30606
30606
|
import { setTimeout as sleep4 } from "node:timers/promises";
|
|
30607
30607
|
|
|
30608
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30608
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/services/file-download.js
|
|
30609
30609
|
import { createWriteStream, mkdirSync } from "node:fs";
|
|
30610
30610
|
import { link as link4, rm } from "node:fs/promises";
|
|
30611
30611
|
import { basename as basename8, join as join14, resolve as resolve6 } from "node:path";
|
|
@@ -30728,7 +30728,7 @@ var save = /* @__PURE__ */ __name(async (file2, directory2, fallbackName, { uniq
|
|
|
30728
30728
|
}
|
|
30729
30729
|
}, "save");
|
|
30730
30730
|
|
|
30731
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30731
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/services/pictures.js
|
|
30732
30732
|
var PICTURE_MAX_BYTES = 25 * 1024 * 1024;
|
|
30733
30733
|
var PICTURE_FLOOR = 0.25;
|
|
30734
30734
|
var PAGE4 = 50;
|
|
@@ -30745,7 +30745,7 @@ var picturesService = /* @__PURE__ */ __name((deps) => {
|
|
|
30745
30745
|
const directory2 = imageModelsDirectory(deps.env);
|
|
30746
30746
|
if (!isImageModelInstalled(model2, directory2))
|
|
30747
30747
|
throw new CliError("not_found", missingModel(model2.id), { reason: "model.not-downloaded", model: model2.id });
|
|
30748
|
-
const { openPictureEmbedder } = await import("./embedder-
|
|
30748
|
+
const { openPictureEmbedder } = await import("./embedder-P3W76VOZ.js");
|
|
30749
30749
|
return openPictureEmbedder(model2, directory2);
|
|
30750
30750
|
}, "open");
|
|
30751
30751
|
const embedder = /* @__PURE__ */ __name(() => {
|
|
@@ -30941,7 +30941,7 @@ var withPictures = /* @__PURE__ */ __name((messages, pictures) => ({
|
|
|
30941
30941
|
}, "search")
|
|
30942
30942
|
}), "withPictures");
|
|
30943
30943
|
|
|
30944
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30944
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/services/messages-meaning.js
|
|
30945
30945
|
var meaningLane = /* @__PURE__ */ __name((deps) => async (question, accounts, shared) => {
|
|
30946
30946
|
const target2 = embeddingTarget(deps, DEFAULT_TEXT_MODEL);
|
|
30947
30947
|
const skipped = /* @__PURE__ */ __name((reason, step) => ({
|
|
@@ -30989,7 +30989,7 @@ var meaningLane = /* @__PURE__ */ __name((deps) => async (question, accounts, sh
|
|
|
30989
30989
|
}
|
|
30990
30990
|
}, "meaningLane");
|
|
30991
30991
|
|
|
30992
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30992
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/services/messages-rerank.js
|
|
30993
30993
|
var rerankLane = /* @__PURE__ */ __name((deps) => {
|
|
30994
30994
|
const choice = deps.reranker ?? DEFAULT_RERANK_MODEL;
|
|
30995
30995
|
if (choice === "off")
|
|
@@ -31001,9 +31001,9 @@ var rerankLane = /* @__PURE__ */ __name((deps) => {
|
|
|
31001
31001
|
return { skipped: { reason: `${model.id} is not downloaded`, step: "models.download", model: model.id } };
|
|
31002
31002
|
try {
|
|
31003
31003
|
const warm = deps.embedders;
|
|
31004
|
-
const reranker = warm ? await warm.reranker(`rerank:${model.id}`, async () => (await import("./process-
|
|
31004
|
+
const reranker = warm ? await warm.reranker(`rerank:${model.id}`, async () => (await import("./process-7MD6MEGB.js")).openRerankerProcess(model, directory2, {
|
|
31005
31005
|
threads: defaultThreads()
|
|
31006
|
-
})) : await (await import("./rerank-
|
|
31006
|
+
})) : await (await import("./rerank-66YCEORD.js")).openReranker(model, directory2);
|
|
31007
31007
|
return {
|
|
31008
31008
|
model: model.id,
|
|
31009
31009
|
score: /* @__PURE__ */ __name((question, passages) => reranker.score(plainWords(question), passages), "score"),
|
|
@@ -31023,17 +31023,17 @@ var rerankLane = /* @__PURE__ */ __name((deps) => {
|
|
|
31023
31023
|
};
|
|
31024
31024
|
}, "rerankLane");
|
|
31025
31025
|
|
|
31026
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31026
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/services/document-pictures.js
|
|
31027
31027
|
var openPictureEmbedderFor = /* @__PURE__ */ __name(async ({ env, command } = {}) => {
|
|
31028
31028
|
const model = imageModel(DEFAULT_IMAGE_MODEL);
|
|
31029
31029
|
const directory2 = imageModelsDirectory(env);
|
|
31030
31030
|
if (!isImageModelInstalled(model, directory2))
|
|
31031
31031
|
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 });
|
|
31032
|
-
const { openPictureEmbedder } = await import("./embedder-
|
|
31032
|
+
const { openPictureEmbedder } = await import("./embedder-P3W76VOZ.js");
|
|
31033
31033
|
return openPictureEmbedder(model, directory2);
|
|
31034
31034
|
}, "openPictureEmbedderFor");
|
|
31035
31035
|
|
|
31036
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31036
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/services/document-source.js
|
|
31037
31037
|
var documentSource = /* @__PURE__ */ __name((note, accounts, profiles, file2) => {
|
|
31038
31038
|
const metadata = note.frontMatter;
|
|
31039
31039
|
const account = accounts.find(({ id: id2 }) => String(id2) === note.folderId);
|
|
@@ -31050,7 +31050,7 @@ var documentSource = /* @__PURE__ */ __name((note, accounts, profiles, file2) =>
|
|
|
31050
31050
|
};
|
|
31051
31051
|
}, "documentSource");
|
|
31052
31052
|
|
|
31053
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31053
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/services/notes-title-tier.js
|
|
31054
31054
|
var plainQueryWords = /* @__PURE__ */ __name((query) => {
|
|
31055
31055
|
let root;
|
|
31056
31056
|
try {
|
|
@@ -31077,7 +31077,7 @@ var titleTiers = /* @__PURE__ */ __name((hits, words2) => {
|
|
|
31077
31077
|
return [...hits].sort((a, b) => rank(a) - rank(b));
|
|
31078
31078
|
}, "titleTiers");
|
|
31079
31079
|
|
|
31080
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31080
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/services/notes-search.js
|
|
31081
31081
|
var storeQuery = /* @__PURE__ */ __name(async (store, text, { exact, timezone } = {}) => {
|
|
31082
31082
|
const ast = validateFields(parseLucene(text, { ...SEARCH_QUERY, defaultField: exact ? "exact" : "text" }));
|
|
31083
31083
|
const zone = timezoneOf(timezone);
|
|
@@ -31390,7 +31390,7 @@ var searchNotesOf = /* @__PURE__ */ __name(async (store, account, text, { accoun
|
|
|
31390
31390
|
};
|
|
31391
31391
|
}, "searchNotesOf");
|
|
31392
31392
|
|
|
31393
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31393
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/services/events-search.js
|
|
31394
31394
|
var MAX_EVENTS_OFFSET = 1e3;
|
|
31395
31395
|
var iso3 = /* @__PURE__ */ __name((at) => at === null ? null : new Date(at).toISOString(), "iso");
|
|
31396
31396
|
var accountIdsOf = /* @__PURE__ */ __name(async (store, accounts) => {
|
|
@@ -31502,7 +31502,7 @@ var searchEvents = /* @__PURE__ */ __name(async (store, query, { limit = 20, off
|
|
|
31502
31502
|
};
|
|
31503
31503
|
}, "searchEvents");
|
|
31504
31504
|
|
|
31505
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31505
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/services/search-all.js
|
|
31506
31506
|
var RESOURCES_SEARCHED = ["messages", "mail", "notes", "events"];
|
|
31507
31507
|
var skippable = /* @__PURE__ */ __name((error) => error instanceof CliError && (error.code === "validation_error" || error.code === "not_found"), "skippable");
|
|
31508
31508
|
var filtersBeside = /* @__PURE__ */ __name((text) => {
|
|
@@ -31705,7 +31705,7 @@ var searchAll = /* @__PURE__ */ __name(async (store, account, request, messenger
|
|
|
31705
31705
|
};
|
|
31706
31706
|
}, "searchAll");
|
|
31707
31707
|
|
|
31708
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31708
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/services/search-all-meetings.js
|
|
31709
31709
|
var RESOURCES_SEARCHED_WITH_MEETINGS = [...RESOURCES_SEARCHED, "meetings"];
|
|
31710
31710
|
var whole2 = /* @__PURE__ */ __name((value, minimum, maximum, label) => {
|
|
31711
31711
|
if (!Number.isSafeInteger(value) || value < minimum || value > maximum)
|
|
@@ -31952,7 +31952,7 @@ var searchAllOfSource = /* @__PURE__ */ __name(async (store, account, source, re
|
|
|
31952
31952
|
return { ...found, skipped: [...skipped, ...empty2, ...unnamed, ...found.skipped] };
|
|
31953
31953
|
}, "searchAllOfSource");
|
|
31954
31954
|
|
|
31955
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31955
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/services/server-search.js
|
|
31956
31956
|
var SERVER_SEARCH_KEY = "messages.server-search";
|
|
31957
31957
|
var SERVER_BOUNDS = { timeMs: 5e3, perCall: 100, maxCalls: 3 };
|
|
31958
31958
|
var DEFAULT_BACKEND = "both";
|
|
@@ -32141,7 +32141,7 @@ var searchServer = /* @__PURE__ */ __name(async (deps, request) => {
|
|
|
32141
32141
|
return { report, sources };
|
|
32142
32142
|
}, "searchServer");
|
|
32143
32143
|
|
|
32144
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32144
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/services/messages.js
|
|
32145
32145
|
var DELETE_AT_ONCE = 10;
|
|
32146
32146
|
var messagesService = /* @__PURE__ */ __name((deps) => {
|
|
32147
32147
|
const { guard } = deps;
|
|
@@ -32567,7 +32567,7 @@ var checkMediaOptions = /* @__PURE__ */ __name((messenger, asked, attachments) =
|
|
|
32567
32567
|
throw new CliError("validation_error", `${MEDIA_FLAGS[first2]} needs a --photo or --file`);
|
|
32568
32568
|
}, "checkMediaOptions");
|
|
32569
32569
|
|
|
32570
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32570
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/domain/channel-tags.js
|
|
32571
32571
|
var CHANNEL_TAG_RULES_VERSION = "keywords-v1";
|
|
32572
32572
|
var RULES = {
|
|
32573
32573
|
ai: [/\b(ai|gpt|llm|machine learning|artificial intelligence)\b/iu, /нейросет|искусственн/iu],
|
|
@@ -32582,7 +32582,7 @@ var classifyChannel = /* @__PURE__ */ __name((metadata) => Object.entries(RULES)
|
|
|
32582
32582
|
return fields.length ? [{ tag, score: fields.length / 3, fields }] : [];
|
|
32583
32583
|
}), "classifyChannel");
|
|
32584
32584
|
|
|
32585
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32585
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/services/metadata.js
|
|
32586
32586
|
var metadataService = /* @__PURE__ */ __name((deps) => {
|
|
32587
32587
|
const held = /* @__PURE__ */ __name(async (reference, { includeLeft = false } = {}) => {
|
|
32588
32588
|
const store = await deps.store();
|
|
@@ -32668,7 +32668,7 @@ var metadataService = /* @__PURE__ */ __name((deps) => {
|
|
|
32668
32668
|
};
|
|
32669
32669
|
}, "metadataService");
|
|
32670
32670
|
|
|
32671
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32671
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/moderation/run.js
|
|
32672
32672
|
var FIRST_LOOK_MS = 24 * 36e5;
|
|
32673
32673
|
var moderateWith = /* @__PURE__ */ __name(async (run) => {
|
|
32674
32674
|
const { chatId, title, rules, point, since, dryRun } = run;
|
|
@@ -32705,7 +32705,7 @@ var moderateWith = /* @__PURE__ */ __name(async (run) => {
|
|
|
32705
32705
|
return { chatId, rows, notes };
|
|
32706
32706
|
}, "moderateWith");
|
|
32707
32707
|
|
|
32708
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32708
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/services/moderation.js
|
|
32709
32709
|
var moderationService = /* @__PURE__ */ __name((deps) => {
|
|
32710
32710
|
const file2 = /* @__PURE__ */ __name(() => new ModerationRules(moderationPathFor(deps.messenger.app, deps.profile ?? "default", deps.env ?? process.env)), "file");
|
|
32711
32711
|
const group = /* @__PURE__ */ __name(async (chat) => {
|
|
@@ -32783,7 +32783,7 @@ var moderatorOf = /* @__PURE__ */ __name((adapter, deps) => ({
|
|
|
32783
32783
|
}, "removePerson")
|
|
32784
32784
|
}), "moderatorOf");
|
|
32785
32785
|
|
|
32786
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32786
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/services/private-people.js
|
|
32787
32787
|
var noteItem = /* @__PURE__ */ __name((provider, note) => ({
|
|
32788
32788
|
id: note.id,
|
|
32789
32789
|
contact: formatReference({ type: "contact", provider, id: note.personId }),
|
|
@@ -32827,7 +32827,7 @@ var privatePeopleService = /* @__PURE__ */ __name((deps) => {
|
|
|
32827
32827
|
};
|
|
32828
32828
|
}, "privatePeopleService");
|
|
32829
32829
|
|
|
32830
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32830
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/services/rankings.js
|
|
32831
32831
|
var empty = /* @__PURE__ */ __name(() => ({
|
|
32832
32832
|
total: 0,
|
|
32833
32833
|
population: 0,
|
|
@@ -33083,7 +33083,7 @@ var rankingsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
33083
33083
|
}, "evidence")
|
|
33084
33084
|
}), "rankingsService");
|
|
33085
33085
|
|
|
33086
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33086
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/services/searches.js
|
|
33087
33087
|
var savedSearchItem = /* @__PURE__ */ __name((one) => ({
|
|
33088
33088
|
id: one.id,
|
|
33089
33089
|
name: one.name,
|
|
@@ -33212,7 +33212,7 @@ var searchesService = /* @__PURE__ */ __name((deps) => {
|
|
|
33212
33212
|
};
|
|
33213
33213
|
}, "searchesService");
|
|
33214
33214
|
|
|
33215
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33215
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/services/tags.js
|
|
33216
33216
|
var TAGGING_QUERY = {
|
|
33217
33217
|
entity: "tagging",
|
|
33218
33218
|
backend: "sql",
|
|
@@ -33296,7 +33296,7 @@ var tagsService = /* @__PURE__ */ __name((deps) => {
|
|
|
33296
33296
|
};
|
|
33297
33297
|
}, "tagsService");
|
|
33298
33298
|
|
|
33299
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33299
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/services/topics.js
|
|
33300
33300
|
var actionOf = /* @__PURE__ */ __name(({ title, closed, pinned, hidden }) => {
|
|
33301
33301
|
const set = [closed, pinned, hidden].filter((one) => one !== void 0).length;
|
|
33302
33302
|
if (title !== void 0 || set !== 1)
|
|
@@ -33481,7 +33481,7 @@ var topicsService = /* @__PURE__ */ __name((deps) => {
|
|
|
33481
33481
|
};
|
|
33482
33482
|
}, "topicsService");
|
|
33483
33483
|
|
|
33484
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33484
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/services/evidence.js
|
|
33485
33485
|
import { createHash as createHash10, randomUUID as randomUUID7 } from "node:crypto";
|
|
33486
33486
|
var hash2 = /* @__PURE__ */ __name((value) => createHash10("sha256").update(JSON.stringify(value)).digest("hex"), "hash");
|
|
33487
33487
|
var positive = /* @__PURE__ */ __name((value, name, minimum = 1) => {
|
|
@@ -33555,7 +33555,7 @@ var prepareEvidencePacket = /* @__PURE__ */ __name(({ kind, source, page, limits
|
|
|
33555
33555
|
return { ...content, id: randomUUID7(), fingerprint: hash2(content) };
|
|
33556
33556
|
}, "prepareEvidencePacket");
|
|
33557
33557
|
|
|
33558
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33558
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/services/evidence-read.js
|
|
33559
33559
|
var readEvidencePacket = /* @__PURE__ */ __name(async (store, account, { chat, limit, before: before2 }, messenger = {}) => {
|
|
33560
33560
|
if (!Number.isSafeInteger(limit) || limit < 1 || limit > 100)
|
|
33561
33561
|
throw new CliError("validation_error", "evidence message limit must be an integer from 1 to 100");
|
|
@@ -33575,7 +33575,7 @@ var readEvidencePacket = /* @__PURE__ */ __name(async (store, account, { chat, l
|
|
|
33575
33575
|
return { ...packet, nextBeforeId: older && last ? last.id : null };
|
|
33576
33576
|
}, "readEvidencePacket");
|
|
33577
33577
|
|
|
33578
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33578
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/services/meeting-project-discovery.js
|
|
33579
33579
|
var scopeKeys = [
|
|
33580
33580
|
"accountId",
|
|
33581
33581
|
"meetingId",
|
|
@@ -33597,7 +33597,7 @@ var optionKeys = /* @__PURE__ */ new Set([
|
|
|
33597
33597
|
"maxVocabularyReadBytes"
|
|
33598
33598
|
]);
|
|
33599
33599
|
|
|
33600
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33600
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/context/communication-selection.js
|
|
33601
33601
|
var communicationFields = {
|
|
33602
33602
|
sources: pipe(array(strictObject({
|
|
33603
33603
|
id: pipe(string(), regex(/^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$/)),
|
|
@@ -33629,7 +33629,7 @@ var communicationRequest = /* @__PURE__ */ __name((value, preparationAfter) => {
|
|
|
33629
33629
|
return { ...input, after, before: before2 };
|
|
33630
33630
|
}, "communicationRequest");
|
|
33631
33631
|
|
|
33632
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33632
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/services/meeting-preparation-validation.js
|
|
33633
33633
|
var MEETING_PREPARATION_LIMITS = {
|
|
33634
33634
|
meetings: { min: 1, max: 20, default: 5 },
|
|
33635
33635
|
cues: { min: 1, max: 100, default: 10 },
|
|
@@ -33702,7 +33702,7 @@ var validateMeetingPreparationRequest = /* @__PURE__ */ __name((externalId, orig
|
|
|
33702
33702
|
};
|
|
33703
33703
|
}, "validateMeetingPreparationRequest");
|
|
33704
33704
|
|
|
33705
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33705
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/services/meeting-communications-selection.js
|
|
33706
33706
|
var validatePreparationCommunications = /* @__PURE__ */ __name((section, request, after) => {
|
|
33707
33707
|
const fail = /* @__PURE__ */ __name(() => {
|
|
33708
33708
|
throw new CliError("invalid_response", "Preparation communications returned another selection or invalid evidence");
|
|
@@ -33750,7 +33750,7 @@ var validatePreparationCommunications = /* @__PURE__ */ __name((section, request
|
|
|
33750
33750
|
}
|
|
33751
33751
|
}, "validatePreparationCommunications");
|
|
33752
33752
|
|
|
33753
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33753
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/services/package-upgrade.js
|
|
33754
33754
|
var upgradePackage = /* @__PURE__ */ __name(async ({ current, command, packageName, check: check2 }, ports) => {
|
|
33755
33755
|
const installer = ports.installer();
|
|
33756
33756
|
const argv = updateCommand(installer, packageName);
|
|
@@ -33815,7 +33815,7 @@ var dayAfter = /* @__PURE__ */ __name((published) => {
|
|
|
33815
33815
|
return Number.isNaN(time) ? null : new Date(time + 24 * 60 * 60 * 1e3).toISOString();
|
|
33816
33816
|
}, "dayAfter");
|
|
33817
33817
|
|
|
33818
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33818
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/services/index.js
|
|
33819
33819
|
var servicesFor = /* @__PURE__ */ __name((deps) => {
|
|
33820
33820
|
const pictures = picturesService(deps);
|
|
33821
33821
|
const base = {
|
|
@@ -33851,7 +33851,7 @@ var servicesFor = /* @__PURE__ */ __name((deps) => {
|
|
|
33851
33851
|
return deps.messenger.services ? { ...base, ...deps.messenger.services(base, deps) } : base;
|
|
33852
33852
|
}, "servicesFor");
|
|
33853
33853
|
|
|
33854
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33854
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/background/relay.js
|
|
33855
33855
|
import { createHash as createHash11 } from "node:crypto";
|
|
33856
33856
|
import { chmodSync, lstatSync, mkdirSync as mkdirSync2, rmSync } from "node:fs";
|
|
33857
33857
|
import { createConnection, createServer } from "node:net";
|
|
@@ -34072,7 +34072,7 @@ var relayCommand = /* @__PURE__ */ __name((path, request, options) => new Promis
|
|
|
34072
34072
|
}, () => finish({ error: stopped() }));
|
|
34073
34073
|
}), "relayCommand");
|
|
34074
34074
|
|
|
34075
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34075
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-relay.js
|
|
34076
34076
|
var lentConnection = /* @__PURE__ */ __name((connection, watchers) => throughWrapper(connection, {
|
|
34077
34077
|
close: /* @__PURE__ */ __name(async () => {
|
|
34078
34078
|
}, "close"),
|