@wirecat/tg-cli 0.111.0 → 0.112.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/README.md +3 -0
- package/dist/bin/tg.js +2 -2
- package/dist/bundle/{adapter-WFC2JAD4.js → adapter-ILDV2YSZ.js} +70 -50
- package/dist/bundle/{all-profiles-FEUSGHT7.js → all-profiles-4SH2Q4WV.js} +8 -8
- package/dist/bundle/{anthropic-O646SJIJ.js → anthropic-64SM23YO.js} +5 -5
- package/dist/bundle/{app-server-7P23Y45A.js → app-server-SSYZWCDJ.js} +40 -40
- package/dist/bundle/{bot-api-WTJCL6VF.js → bot-api-OHAGQMES.js} +46 -46
- package/dist/bundle/{bot-history-5J2Q4SPC.js → bot-history-AUFO7UL2.js} +15 -15
- package/dist/bundle/{bun-KUKVEKDW.js → bun-AHZX63TR.js} +2 -2
- package/dist/bundle/{bun-sqlite-2G5TXHYE.js → bun-sqlite-KBIIODPV.js} +4 -4
- package/dist/bundle/{chunk-43ZFY6TW.js → chunk-2IGZLBTE.js} +2 -2
- package/dist/bundle/{chunk-ABVHA4K6.js → chunk-3AJO4GER.js} +5 -5
- package/dist/bundle/{chunk-PNUHAHTF.js → chunk-3GL4AOOG.js} +1 -1
- package/dist/bundle/{chunk-TWZTQHP6.js → chunk-3W7BU2BL.js} +6 -6
- package/dist/bundle/{chunk-YFK3DNNP.js → chunk-4IDJ7QCG.js} +4 -4
- package/dist/bundle/{chunk-KLHLWKWC.js → chunk-4JXZKMXV.js} +65 -54
- package/dist/bundle/{chunk-J4QVXR5I.js → chunk-5BNYW5RA.js} +2 -2
- package/dist/bundle/{chunk-33HEHPIK.js → chunk-5W72OARG.js} +8 -8
- package/dist/bundle/{chunk-YG4BO7N3.js → chunk-6KGENDPF.js} +2 -2
- package/dist/bundle/{chunk-HN6ZMUAS.js → chunk-7MFJFVUN.js} +1 -1
- package/dist/bundle/{chunk-3BD24JYK.js → chunk-B3Y2KZRS.js} +105 -94
- package/dist/bundle/{chunk-KE47Y4PW.js → chunk-BIERCQVG.js} +639 -374
- package/dist/bundle/{chunk-J2Z5E7TO.js → chunk-BTAET4U3.js} +1 -1
- package/dist/bundle/{chunk-UIPT6IAU.js → chunk-COTC7HF3.js} +1 -1
- package/dist/bundle/{chunk-MSGYLWCH.js → chunk-D5JP2YWG.js} +2 -2
- package/dist/bundle/{chunk-UDYCZ5KB.js → chunk-DFUTZGEV.js} +1 -1
- package/dist/bundle/{chunk-QVM2HKJP.js → chunk-DNYGJAEP.js} +4 -4
- package/dist/bundle/{chunk-2ZH3PUQX.js → chunk-E4EJ2UTT.js} +2 -2
- package/dist/bundle/{chunk-DREEXESG.js → chunk-EO7PQE3J.js} +82 -64
- package/dist/bundle/{chunk-NIKYFRDQ.js → chunk-EPAOLRUL.js} +2 -2
- package/dist/bundle/{chunk-BNQOUCL2.js → chunk-GM44UNGL.js} +1 -1
- package/dist/bundle/{chunk-NQAV7U7C.js → chunk-GSGS62LX.js} +1 -1
- package/dist/bundle/{chunk-UPRYEDAV.js → chunk-GW7JRFTF.js} +3 -3
- package/dist/bundle/{chunk-QEAMO2TS.js → chunk-ICEJKOKO.js} +7 -7
- package/dist/bundle/{chunk-LLAZSGS7.js → chunk-JIGYVVWA.js} +22 -22
- package/dist/bundle/{chunk-UMUJHC4M.js → chunk-JLB5LEXJ.js} +3 -3
- package/dist/bundle/{chunk-WDRNVSWF.js → chunk-JPRYFDOJ.js} +45 -44
- package/dist/bundle/{chunk-VIEVOF3O.js → chunk-JXTYTAWE.js} +11 -11
- package/dist/bundle/{chunk-XXOJ7PQY.js → chunk-JYOQMYNJ.js} +28 -28
- package/dist/bundle/{chunk-7665YBJ7.js → chunk-K7VOCHVS.js} +6 -6
- package/dist/bundle/{chunk-K457FHD4.js → chunk-KGYPSBTI.js} +22 -22
- package/dist/bundle/{chunk-BWRCPMMC.js → chunk-KLNQXUDX.js} +18 -18
- package/dist/bundle/{chunk-5ZPLOYTP.js → chunk-KYYAHIG2.js} +238 -222
- package/dist/bundle/{chunk-COHMFCHD.js → chunk-MCXVGHL6.js} +85 -31
- package/dist/bundle/{chunk-T6DSAROY.js → chunk-NKACHGB2.js} +25 -14
- package/dist/bundle/{chunk-OYVDWHP5.js → chunk-NQKPXVLX.js} +2 -2
- package/dist/bundle/{chunk-CJUSP5X2.js → chunk-PDVSMGWO.js} +2 -2
- package/dist/bundle/{chunk-XIRASTVS.js → chunk-PXUHQO66.js} +11 -11
- package/dist/bundle/{chunk-EO563SUX.js → chunk-QL4WBCL5.js} +7 -7
- package/dist/bundle/{chunk-PQGWEFJ2.js → chunk-QMJGHSGN.js} +3 -3
- package/dist/bundle/{chunk-UFIUMPXP.js → chunk-RANORATG.js} +4 -4
- package/dist/bundle/{chunk-5FJQG5UZ.js → chunk-RC7EBLHM.js} +8 -8
- package/dist/bundle/{chunk-7GQLD5TJ.js → chunk-RHYMEHYK.js} +2 -2
- package/dist/bundle/{chunk-QAC6Z675.js → chunk-RPNRCFEE.js} +2 -2
- package/dist/bundle/{chunk-EB44Z44U.js → chunk-SC2DUQAK.js} +1 -1
- package/dist/bundle/{chunk-ONHHBPV3.js → chunk-SFJFBIYP.js} +2 -2
- package/dist/bundle/{chunk-ITSSCYLP.js → chunk-TOBJGMMA.js} +11 -11
- package/dist/bundle/{chunk-ZCHC7TYO.js → chunk-TUJEJ4D5.js} +26 -13
- package/dist/bundle/{chunk-DEG4JJHG.js → chunk-UQOSZ2XX.js} +449 -341
- package/dist/bundle/{chunk-ZCV4UEVH.js → chunk-UVRD447S.js} +3 -3
- package/dist/bundle/{chunk-2K6IGVSI.js → chunk-UXCWUEN7.js} +5 -5
- package/dist/bundle/{chunk-3WUTBGZE.js → chunk-WI2S6INJ.js} +6 -6
- package/dist/bundle/{chunk-AUWYMMYL.js → chunk-WWKXTKCE.js} +4 -4
- package/dist/bundle/{chunk-QLLPZWYZ.js → chunk-XSYJKEA5.js} +4 -4
- package/dist/bundle/command-contract-4KVJJZ46.js +32 -0
- package/dist/bundle/{decode-QJNVAAKJ.js → decode-FR3QHHJI.js} +4 -4
- package/dist/bundle/{echarts-2EDY7OUX.js → echarts-VTV4C2OS.js} +2 -2
- package/dist/bundle/{embed-PZSXOQJO.js → embed-US7X5P5D.js} +5 -5
- package/dist/bundle/{embedder-O4EGMMUU.js → embedder-63Z7ZBYG.js} +8 -8
- package/dist/bundle/{entry-DVLMQM6J.js → entry-B4J7IAG3.js} +5 -5
- package/dist/bundle/{first-run-J67KTUWA.js → first-run-MXPPUGII.js} +9 -9
- package/dist/bundle/first-screen-GFYHUBBD.js +30 -0
- package/dist/bundle/{identity-DSYY4FLQ.js → identity-AQWKU7SM.js} +3 -3
- package/dist/bundle/{instructions-O535XB2L.js → instructions-GBR6DJTK.js} +1 -1
- package/dist/bundle/{mcp-EMNFFY4N.js → mcp-YJEQYYTR.js} +2 -2
- package/dist/bundle/{node-S3VEQNTE.js → node-QXGPMDH2.js} +2 -2
- package/dist/bundle/{node-sqlite-3DNWF2BW.js → node-sqlite-L6CAMXQ2.js} +4 -4
- package/dist/bundle/{oauth-IU2RAZ3D.js → oauth-5RK6J4SG.js} +6 -6
- package/dist/bundle/{open-M2IPPXMI.js → open-A3IAG7U6.js} +3 -3
- package/dist/bundle/{openai-GDI7HISL.js → openai-YKNGCHVV.js} +13 -13
- package/dist/bundle/{process-3IGMEATV.js → process-CGLNXFIU.js} +1 -1
- package/dist/bundle/{program-P7YPHVLD.js → program-AEDR6R5P.js} +48 -48
- package/dist/bundle/{prompt-S6R7IHDK.js → prompt-65CSCL2T.js} +4 -4
- package/dist/bundle/{proxy-transport-OROEVBCG.js → proxy-transport-U3QOYMQF.js} +4 -4
- package/dist/bundle/{recognize-PFZRQ3P4.js → recognize-ECRO6CFK.js} +3 -3
- package/dist/bundle/{remote-Q37V7LUX.js → remote-6IEFZFGO.js} +6 -6
- package/dist/bundle/{rerank-V5YQQQAM.js → rerank-23GXWT2V.js} +6 -6
- package/dist/bundle/{serve-5CAD2UVG.js → serve-S65YTPZN.js} +8 -8
- package/dist/bundle/server-IH24WEAC.js +56 -0
- package/dist/bundle/{server-R6YAO2SG.js → server-MVTBK7GV.js} +32 -32
- package/dist/bundle/{state-Y3A2NEM3.js → state-TH3UVQAW.js} +5 -5
- package/dist/bundle/{store-H5K32CNI.js → store-2WFTUSNG.js} +12 -10
- package/dist/bundle/store-maintenance-command-PUOU2CL6.js +45 -0
- package/dist/bundle/tg.js +4 -4
- package/dist/telegram/adapter.d.ts +2 -0
- package/dist/telegram/adapter.d.ts.map +1 -1
- package/dist/telegram/adapter.js +3 -0
- package/dist/telegram/adapter.js.map +1 -1
- package/dist/telegram/topics.d.ts +4 -2
- package/dist/telegram/topics.d.ts.map +1 -1
- package/dist/telegram/topics.js +21 -3
- package/dist/telegram/topics.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +3 -3
- package/skills/tg-cli/SKILL.md +2 -0
- package/dist/bundle/command-contract-JCRVVL7P.js +0 -32
- package/dist/bundle/first-screen-PYEE5NMQ.js +0 -30
- package/dist/bundle/server-RUQLAWWS.js +0 -56
- package/dist/bundle/store-maintenance-command-QZDC4WKW.js +0 -45
- /package/dist/bundle/{chunk-NPGVOZVK.js → chunk-WJWLHLQ7.js} +0 -0
|
@@ -4,10 +4,11 @@ import {
|
|
|
4
4
|
acquireLock,
|
|
5
5
|
openOrdinaryFile,
|
|
6
6
|
readBoundedUtf8File,
|
|
7
|
+
safeName,
|
|
7
8
|
sameOrdinaryFile,
|
|
8
9
|
syncDirectory,
|
|
9
10
|
writeFileAtomic
|
|
10
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-TUJEJ4D5.js";
|
|
11
12
|
import {
|
|
12
13
|
Command,
|
|
13
14
|
DEFAULT_IMAGE_MODEL,
|
|
@@ -46,23 +47,23 @@ import {
|
|
|
46
47
|
typedCommand,
|
|
47
48
|
vectorModelKey,
|
|
48
49
|
withAttempt
|
|
49
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-4JXZKMXV.js";
|
|
50
51
|
import {
|
|
51
52
|
isCliFailure
|
|
52
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-RC7EBLHM.js";
|
|
53
54
|
import {
|
|
54
55
|
isNewer,
|
|
55
56
|
updateCommand
|
|
56
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-3AJO4GER.js";
|
|
57
58
|
import {
|
|
58
59
|
readOnlyLockOf
|
|
59
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-2IGZLBTE.js";
|
|
60
61
|
import {
|
|
61
62
|
MAX_MODEL_IMAGE_BYTES
|
|
62
|
-
} from "./chunk-
|
|
63
|
+
} from "./chunk-RPNRCFEE.js";
|
|
63
64
|
import {
|
|
64
65
|
remoteKey
|
|
65
|
-
} from "./chunk-
|
|
66
|
+
} from "./chunk-JLB5LEXJ.js";
|
|
66
67
|
import {
|
|
67
68
|
Unzip,
|
|
68
69
|
UnzipInflate,
|
|
@@ -73,11 +74,11 @@ import {
|
|
|
73
74
|
placedText,
|
|
74
75
|
runEmbedders,
|
|
75
76
|
textModelsDirectory
|
|
76
|
-
} from "./chunk-
|
|
77
|
+
} from "./chunk-K7VOCHVS.js";
|
|
77
78
|
import {
|
|
78
79
|
installFiles,
|
|
79
80
|
megabytes
|
|
80
|
-
} from "./chunk-
|
|
81
|
+
} from "./chunk-WWKXTKCE.js";
|
|
81
82
|
import {
|
|
82
83
|
AGENDA_COLUMNS,
|
|
83
84
|
CHAT_COLUMNS,
|
|
@@ -149,7 +150,7 @@ import {
|
|
|
149
150
|
threadConversation,
|
|
150
151
|
validateAst,
|
|
151
152
|
validateFields
|
|
152
|
-
} from "./chunk-
|
|
153
|
+
} from "./chunk-BIERCQVG.js";
|
|
153
154
|
import {
|
|
154
155
|
EVENT_QUERY,
|
|
155
156
|
MEETING_PROJECT_EVIDENCE_QUERY,
|
|
@@ -194,27 +195,27 @@ import {
|
|
|
194
195
|
validateQuery,
|
|
195
196
|
walkQuery,
|
|
196
197
|
zonedMoment
|
|
197
|
-
} from "./chunk-
|
|
198
|
+
} from "./chunk-EO7PQE3J.js";
|
|
198
199
|
import {
|
|
199
200
|
DEFAULT_STEMMERS,
|
|
200
201
|
createStemmer,
|
|
201
202
|
fold,
|
|
202
203
|
normalize
|
|
203
|
-
} from "./chunk-
|
|
204
|
+
} from "./chunk-5W72OARG.js";
|
|
204
205
|
import {
|
|
205
206
|
DEFAULT_TASK_CATEGORIES,
|
|
206
207
|
FALLBACK_CATEGORY
|
|
207
|
-
} from "./chunk-
|
|
208
|
+
} from "./chunk-WI2S6INJ.js";
|
|
208
209
|
import {
|
|
209
210
|
storePath,
|
|
210
211
|
wirecatDirectory
|
|
211
|
-
} from "./chunk-
|
|
212
|
+
} from "./chunk-RHYMEHYK.js";
|
|
212
213
|
import {
|
|
213
214
|
resolvePaths,
|
|
214
215
|
singleLine,
|
|
215
216
|
visibleControls,
|
|
216
217
|
writeSecurely
|
|
217
|
-
} from "./chunk-
|
|
218
|
+
} from "./chunk-KLNQXUDX.js";
|
|
218
219
|
import {
|
|
219
220
|
CliError,
|
|
220
221
|
array,
|
|
@@ -239,7 +240,7 @@ import {
|
|
|
239
240
|
string,
|
|
240
241
|
transform,
|
|
241
242
|
unknown
|
|
242
|
-
} from "./chunk-
|
|
243
|
+
} from "./chunk-QL4WBCL5.js";
|
|
243
244
|
import {
|
|
244
245
|
importFrom,
|
|
245
246
|
resolveFrom
|
|
@@ -16859,7 +16860,7 @@ var require_lib3 = __commonJS({
|
|
|
16859
16860
|
}
|
|
16860
16861
|
});
|
|
16861
16862
|
|
|
16862
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16863
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/conversations/link.js
|
|
16863
16864
|
var RULES_VERSION = 5;
|
|
16864
16865
|
var LOOK_BACK = 50;
|
|
16865
16866
|
var SAME_SENDER_WITHIN = 10;
|
|
@@ -16949,15 +16950,15 @@ var latest = /* @__PURE__ */ __name((window3, matches) => {
|
|
|
16949
16950
|
var sameThread = /* @__PURE__ */ __name((a, b) => a.threadId === b.threadId, "sameThread");
|
|
16950
16951
|
var link = /* @__PURE__ */ __name((message, parentId, source, kind, confidence, method) => ({ messageId: message.id, parentId, source, kind, confidence, method }), "link");
|
|
16951
16952
|
|
|
16952
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16953
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/ports/traits.js
|
|
16953
16954
|
var syncsOneChat = /* @__PURE__ */ __name((messenger) => messenger.history !== "store" || messenger.historyOnDemand === true, "syncsOneChat");
|
|
16954
16955
|
|
|
16955
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16956
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/sends/send-id.js
|
|
16956
16957
|
import { randomBytes } from "node:crypto";
|
|
16957
16958
|
var newSendId = /* @__PURE__ */ __name(() => randomBytes(8).readBigInt64BE().toString(), "newSendId");
|
|
16958
16959
|
var newOperationId = newSendId;
|
|
16959
16960
|
|
|
16960
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16961
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/sends/upload.js
|
|
16961
16962
|
import { openAsBlob, realpathSync } from "node:fs";
|
|
16962
16963
|
import { open, stat } from "node:fs/promises";
|
|
16963
16964
|
import { basename, dirname, extname, isAbsolute, relative, resolve, sep } from "node:path";
|
|
@@ -17178,7 +17179,7 @@ var readStickerFile = /* @__PURE__ */ __name(async (path, maxBytes, read) => {
|
|
|
17178
17179
|
return { name, source };
|
|
17179
17180
|
}, "readStickerFile");
|
|
17180
17181
|
|
|
17181
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17182
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/cli/messenger/lacks.js
|
|
17182
17183
|
var COMMAND_NEEDS = {
|
|
17183
17184
|
"account update": ["updateProfile", "change the profile"],
|
|
17184
17185
|
"account sessions list": ["sessions", "list the account's sessions"],
|
|
@@ -17228,7 +17229,7 @@ var hideNever = /* @__PURE__ */ __name((messenger, group) => {
|
|
|
17228
17229
|
return group;
|
|
17229
17230
|
}, "hideNever");
|
|
17230
17231
|
|
|
17231
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17232
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/services/members-audit.js
|
|
17232
17233
|
var AUDIT_PAGE = 200;
|
|
17233
17234
|
var AUDIT_BUDGET = 10;
|
|
17234
17235
|
var AUDIT_PAUSE_MS = 1e3;
|
|
@@ -17308,7 +17309,7 @@ var burstJoins = /* @__PURE__ */ __name((members) => {
|
|
|
17308
17309
|
return found;
|
|
17309
17310
|
}, "burstJoins");
|
|
17310
17311
|
|
|
17311
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17312
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/meetings/cli/query-options.js
|
|
17312
17313
|
var queryWordsAfterOptions = /* @__PURE__ */ __name((command) => {
|
|
17313
17314
|
command.allowUnknownOption();
|
|
17314
17315
|
const parse = command.parseOptions.bind(command);
|
|
@@ -17328,7 +17329,7 @@ var queryWordsAfterOptions = /* @__PURE__ */ __name((command) => {
|
|
|
17328
17329
|
return command;
|
|
17329
17330
|
}, "queryWordsAfterOptions");
|
|
17330
17331
|
|
|
17331
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17332
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/meetings/cli/passage.js
|
|
17332
17333
|
var count = /* @__PURE__ */ __name((value) => {
|
|
17333
17334
|
if (!/^(0|[1-9]\d*)$/.test(value) || !Number.isSafeInteger(Number(value)))
|
|
17334
17335
|
throw new CliError("validation_error", "expected a nonnegative safe integer");
|
|
@@ -17370,7 +17371,7 @@ var addMeetingPassageCommandDefinition = /* @__PURE__ */ __name((program, deps)
|
|
|
17370
17371
|
var createMeetingPassageCommand = sharedCommand(createMeetingPassageCommandDefinition);
|
|
17371
17372
|
var addMeetingPassageCommand = sharedCommand(addMeetingPassageCommandDefinition);
|
|
17372
17373
|
|
|
17373
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17374
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/meetings/cli/project-evidence.js
|
|
17374
17375
|
var integer2 = /* @__PURE__ */ __name((value) => {
|
|
17375
17376
|
if (!/^[1-9]\d*$/.test(value) || !Number.isSafeInteger(Number(value)))
|
|
17376
17377
|
throw new CliError("validation_error", "expected a positive safe integer");
|
|
@@ -17393,7 +17394,7 @@ ${fieldsHelp(MEETING_PROJECT_EVIDENCE_QUERY)}`).option("--limit <n>", "hits in o
|
|
|
17393
17394
|
}, "addMeetingProjectEvidenceCommandDefinition");
|
|
17394
17395
|
var addMeetingProjectEvidenceCommand = sharedCommand(addMeetingProjectEvidenceCommandDefinition);
|
|
17395
17396
|
|
|
17396
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17397
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/meetings/cli/search.js
|
|
17397
17398
|
var ZONED = /(?:Z|[+-]\d{2}:?\d{2})$/i;
|
|
17398
17399
|
var moment = /* @__PURE__ */ __name((flag, end, readIn) => (value) => {
|
|
17399
17400
|
const zone = timezoneOf();
|
|
@@ -17479,7 +17480,7 @@ var addMeetingSearchCommandDefinition = /* @__PURE__ */ __name((program, deps) =
|
|
|
17479
17480
|
var createMeetingSearchCommand = sharedCommand(createMeetingSearchCommandDefinition);
|
|
17480
17481
|
var addMeetingSearchCommand = sharedCommand(addMeetingSearchCommandDefinition);
|
|
17481
17482
|
|
|
17482
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17483
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/meetings/cli/index.js
|
|
17483
17484
|
var integer4 = /* @__PURE__ */ __name((text2) => {
|
|
17484
17485
|
if (!/^[1-9]\d*$/.test(text2) || !Number.isSafeInteger(Number(text2)))
|
|
17485
17486
|
throw new InvalidArgumentError("expected a positive integer");
|
|
@@ -17599,7 +17600,7 @@ ${fieldsHelp(EVENT_QUERY, MEETING_QUERY_GUIDE)}`);
|
|
|
17599
17600
|
}, "addMeetingCommandsDefinition");
|
|
17600
17601
|
var addMeetingCommands = sharedCommand(addMeetingCommandsDefinition);
|
|
17601
17602
|
|
|
17602
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17603
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/cli/list-query.js
|
|
17603
17604
|
var LIST_QUERY_GUIDE = "https://github.com/WireCatLabs/cli-core/blob/main/docs/search/query-language.md";
|
|
17604
17605
|
var withQuery = /* @__PURE__ */ __name((command, registry) => {
|
|
17605
17606
|
const query = defineQuery(registry);
|
|
@@ -17616,9 +17617,19 @@ var unfilteredQuery = /* @__PURE__ */ __name((entity, schema2) => ({
|
|
|
17616
17617
|
backend: "native",
|
|
17617
17618
|
fields: queryFieldsOf(schema2, {})
|
|
17618
17619
|
}), "unfilteredQuery");
|
|
17620
|
+
var withTomorrow = /* @__PURE__ */ __name((query, registry, zone = timezoneOf(), now = Date.now()) => {
|
|
17621
|
+
const times = new Set(registry.fields.filter(({ type }) => type === "time").map(({ name }) => name));
|
|
17622
|
+
const date2 = /* @__PURE__ */ new Date(`${new Intl.DateTimeFormat("en-CA", { timeZone: zone }).format(now)}T00:00:00Z`);
|
|
17623
|
+
date2.setUTCDate(date2.getUTCDate() + 1);
|
|
17624
|
+
const tomorrow = date2.toISOString().slice(0, 10);
|
|
17625
|
+
const day = /* @__PURE__ */ __name((value) => value.toLowerCase() === "tomorrow" ? tomorrow : value, "day");
|
|
17626
|
+
const map = /* @__PURE__ */ __name((node) => node.kind === "predicate" ? times.has(node.field) ? { ...node, value: day(node.value), ...node.upper === void 0 ? {} : { upper: day(node.upper) } } : node : { ...node, clauses: node.clauses.map((clause) => ({ ...clause, node: map(clause.node) })) }, "map");
|
|
17627
|
+
return { ...query, root: map(query.root) };
|
|
17628
|
+
}, "withTomorrow");
|
|
17619
17629
|
var listQuery = /* @__PURE__ */ __name((text2, registry, command, { defaultField = "none" } = {}) => {
|
|
17620
17630
|
const context2 = { command, guide: LIST_QUERY_GUIDE };
|
|
17621
|
-
const
|
|
17631
|
+
const parsed = text2.trim() === "" ? void 0 : parseLucene(text2, { defaultField, ...context2 });
|
|
17632
|
+
const typed = parsed && withTomorrow(parsed, registry);
|
|
17622
17633
|
if (typed)
|
|
17623
17634
|
validateQuery(typed, registry, context2);
|
|
17624
17635
|
const named2 = typed ? fieldsNamed(typed) : /* @__PURE__ */ new Set();
|
|
@@ -17715,7 +17726,7 @@ var termField = /* @__PURE__ */ __name((name, type, example, more = {}) => nativ
|
|
|
17715
17726
|
var queryHelp = /* @__PURE__ */ __name((registry) => `
|
|
17716
17727
|
${fieldsHelp(registry, LIST_QUERY_GUIDE)}`, "queryHelp");
|
|
17717
17728
|
|
|
17718
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17729
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/cli/paging.js
|
|
17719
17730
|
var positiveCount = /* @__PURE__ */ __name((flag) => (value) => {
|
|
17720
17731
|
if (!/^\d+$/.test(value.trim()) || Number(value) < 1)
|
|
17721
17732
|
throw new CliError("validation_error", `${flag} takes a whole number from 1 upwards, not "${value}"`);
|
|
@@ -17724,7 +17735,7 @@ var positiveCount = /* @__PURE__ */ __name((flag) => (value) => {
|
|
|
17724
17735
|
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");
|
|
17725
17736
|
var window = /* @__PURE__ */ __name(({ limit, page, all }) => all ? { offset: 0 } : { limit, offset: (page - 1) * limit }, "window");
|
|
17726
17737
|
|
|
17727
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17738
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/cli/messenger/chat-answers.js
|
|
17728
17739
|
var defined = /* @__PURE__ */ __name((record2) => Object.fromEntries(Object.entries(record2).filter(([, value]) => value !== void 0)), "defined");
|
|
17729
17740
|
var chatRef = /* @__PURE__ */ __name((account, chat) => formatReference({ type: "chat", provider: account.provider, account: account.account, chat }), "chatRef");
|
|
17730
17741
|
var settingsOf = /* @__PURE__ */ __name((settings) => defined({
|
|
@@ -17986,7 +17997,7 @@ var sessionAnswer = /* @__PURE__ */ __name(({ current, client, device, location,
|
|
|
17986
17997
|
...createdAt === void 0 ? {} : { created_at: createdAt }
|
|
17987
17998
|
}), "sessionAnswer");
|
|
17988
17999
|
|
|
17989
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18000
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/services/deps.js
|
|
17990
18001
|
var accountStore = /* @__PURE__ */ __name(async (deps) => (await deps.store()).forAccount(await deps.account()), "accountStore");
|
|
17991
18002
|
var crossAccount = /* @__PURE__ */ __name((deps, _reason) => deps.store(), "crossAccount");
|
|
17992
18003
|
var NO_LOCAL_STORE = "this answer comes from the messenger, not from the local store";
|
|
@@ -18051,7 +18062,7 @@ var storedDeps = /* @__PURE__ */ __name((messenger, store, account, guard) => ({
|
|
|
18051
18062
|
}), "storedDeps");
|
|
18052
18063
|
var storeModeDeps = /* @__PURE__ */ __name((messenger, store, account, guard) => ({ ...storedDeps(messenger, store, account, guard), offline: false, reads: "store" }), "storeModeDeps");
|
|
18053
18064
|
|
|
18054
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18065
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/resolve.js
|
|
18055
18066
|
var isId = /* @__PURE__ */ __name((reference) => /^-?\d+$/.test(reference.trim()), "isId");
|
|
18056
18067
|
var foldName = /* @__PURE__ */ __name((name) => name.normalize("NFC").replace(/[\uFE0E\uFE0F\u200D]/g, "").toLowerCase(), "foldName");
|
|
18057
18068
|
var pickChat = /* @__PURE__ */ __name((reference, chats) => {
|
|
@@ -18089,7 +18100,7 @@ ${lines3}`, { candidates });
|
|
|
18089
18100
|
}, "ambiguous");
|
|
18090
18101
|
var isPresent = /* @__PURE__ */ __name((value) => value !== null && value !== void 0, "isPresent");
|
|
18091
18102
|
|
|
18092
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18103
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/ports/messenger.js
|
|
18093
18104
|
var throughWrapper = /* @__PURE__ */ __name((inner, handled, wrap = (_, call) => call) => new Proxy(handled, {
|
|
18094
18105
|
get: /* @__PURE__ */ __name((own, key) => {
|
|
18095
18106
|
if (key in own)
|
|
@@ -18106,7 +18117,7 @@ var capability = /* @__PURE__ */ __name((adapter, method, what) => {
|
|
|
18106
18117
|
return found.bind(adapter);
|
|
18107
18118
|
}, "capability");
|
|
18108
18119
|
|
|
18109
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18120
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/services/moment.js
|
|
18110
18121
|
var AGO = /^(\d+)(m|h|d)$/;
|
|
18111
18122
|
var AGO_MS = { m: 6e4, h: 36e5, d: 864e5 };
|
|
18112
18123
|
var DATE = /^\d{4}-\d{2}-\d{2}/;
|
|
@@ -18146,7 +18157,7 @@ var dateWindow = /* @__PURE__ */ __name(({ sinceTime, untilTime, zone, now = Dat
|
|
|
18146
18157
|
};
|
|
18147
18158
|
}, "dateWindow");
|
|
18148
18159
|
|
|
18149
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18160
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/services/questions.js
|
|
18150
18161
|
var LINKS = /https?:\/\/\S+/g;
|
|
18151
18162
|
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");
|
|
18152
18163
|
var questions = /* @__PURE__ */ __name((messages, { answerers: answerers2 }) => {
|
|
@@ -18173,7 +18184,7 @@ var questions = /* @__PURE__ */ __name((messages, { answerers: answerers2 }) =>
|
|
|
18173
18184
|
});
|
|
18174
18185
|
}, "questions");
|
|
18175
18186
|
|
|
18176
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18187
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/services/task-categories.js
|
|
18177
18188
|
var names = /* @__PURE__ */ __name((categories) => categories.map(({ name }) => name).join(", "), "names");
|
|
18178
18189
|
var taskCategoryOf = /* @__PURE__ */ __name((categories = DEFAULT_TASK_CATEGORIES, flag = "--category") => (typed) => {
|
|
18179
18190
|
const name = typed.trim().toLowerCase();
|
|
@@ -18223,7 +18234,7 @@ var categorize = /* @__PURE__ */ __name((text2, categories = DEFAULT_TASK_CATEGO
|
|
|
18223
18234
|
return best.name;
|
|
18224
18235
|
}, "categorize");
|
|
18225
18236
|
|
|
18226
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18237
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/services/task-rules.js
|
|
18227
18238
|
var taskAccount = /* @__PURE__ */ __name(({ provider, account }) => `${provider}:${account}`, "taskAccount");
|
|
18228
18239
|
var RULES_IN = {
|
|
18229
18240
|
dialog: "all",
|
|
@@ -18429,7 +18440,7 @@ var applyTaskRulesToChats = /* @__PURE__ */ __name(async (store, account, chatId
|
|
|
18429
18440
|
return passes;
|
|
18430
18441
|
}, "applyTaskRulesToChats");
|
|
18431
18442
|
|
|
18432
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18443
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/botcheck/check.js
|
|
18433
18444
|
var DAY_MS = 864e5;
|
|
18434
18445
|
var NEW_DAYS = 30;
|
|
18435
18446
|
var SAME_TEXT_MIN = 20;
|
|
@@ -18506,7 +18517,7 @@ var scorePerson = /* @__PURE__ */ __name(({ subject, provider, activity, photos,
|
|
|
18506
18517
|
};
|
|
18507
18518
|
}, "scorePerson");
|
|
18508
18519
|
|
|
18509
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18520
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/botcheck/registries.js
|
|
18510
18521
|
var REGISTRIES = {
|
|
18511
18522
|
cas: { title: "Combot Anti-Spam (CAS)", docs: "https://cas.chat/api" },
|
|
18512
18523
|
lols: { title: "lols.bot", docs: "https://api.lols.bot/lols-bot.json" }
|
|
@@ -18591,7 +18602,7 @@ var notCovered = /* @__PURE__ */ __name((messenger, now = /* @__PURE__ */ new Da
|
|
|
18591
18602
|
detail: `lists Telegram accounts only, not ${messenger} ones`
|
|
18592
18603
|
})), "notCovered");
|
|
18593
18604
|
|
|
18594
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18605
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/botcheck/service.js
|
|
18595
18606
|
var ACTIVITY_MESSAGES = 1e3;
|
|
18596
18607
|
var botCheckService = /* @__PURE__ */ __name((deps) => {
|
|
18597
18608
|
const subjectOf = /* @__PURE__ */ __name(async (reference) => {
|
|
@@ -18679,7 +18690,7 @@ var botCheckService = /* @__PURE__ */ __name((deps) => {
|
|
|
18679
18690
|
};
|
|
18680
18691
|
}, "botCheckService");
|
|
18681
18692
|
|
|
18682
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18693
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/domain/thread.js
|
|
18683
18694
|
var threadIdOf = /* @__PURE__ */ __name((value) => {
|
|
18684
18695
|
if (value === void 0)
|
|
18685
18696
|
return void 0;
|
|
@@ -18689,7 +18700,7 @@ var threadIdOf = /* @__PURE__ */ __name((value) => {
|
|
|
18689
18700
|
return id2;
|
|
18690
18701
|
}, "threadIdOf");
|
|
18691
18702
|
|
|
18692
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18703
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/services/chat-stats.js
|
|
18693
18704
|
var TOP_POSTS = 5;
|
|
18694
18705
|
var JOINS = /* @__PURE__ */ new Set(["join", "add"]);
|
|
18695
18706
|
var LEAVES = /* @__PURE__ */ new Set(["leave", "remove"]);
|
|
@@ -18806,7 +18817,7 @@ var median = /* @__PURE__ */ __name((values) => {
|
|
|
18806
18817
|
return Math.round(sorted.length % 2 === 0 ? ((sorted[middle - 1] ?? upper) + upper) / 2 : upper);
|
|
18807
18818
|
}, "median");
|
|
18808
18819
|
|
|
18809
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18820
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/services/member-history.js
|
|
18810
18821
|
var memberEvents = /* @__PURE__ */ __name((stays, revisions, since = 0) => {
|
|
18811
18822
|
const events = [];
|
|
18812
18823
|
for (const stay of stays) {
|
|
@@ -18838,7 +18849,7 @@ var memberEvents = /* @__PURE__ */ __name((stays, revisions, since = 0) => {
|
|
|
18838
18849
|
return events.filter(({ at }) => Date.parse(at) >= since).sort((a, b) => Date.parse(a.at) - Date.parse(b.at) || a.id.localeCompare(b.id));
|
|
18839
18850
|
}, "memberEvents");
|
|
18840
18851
|
|
|
18841
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18852
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/services/message-resolution.js
|
|
18842
18853
|
var readChatId = /* @__PURE__ */ __name(async (deps, reference, store, account) => {
|
|
18843
18854
|
if (deps.reads !== "store")
|
|
18844
18855
|
return keptChatId(deps.messenger, reference, store, account);
|
|
@@ -18985,7 +18996,7 @@ var senderAmong = /* @__PURE__ */ __name(async (store, accounts, reference) => {
|
|
|
18985
18996
|
}
|
|
18986
18997
|
}, "senderAmong");
|
|
18987
18998
|
|
|
18988
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18999
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/services/chats.js
|
|
18989
19000
|
var EVENTS_DAYS = 7;
|
|
18990
19001
|
var TRACKED_DAYS = 30;
|
|
18991
19002
|
var STATS_PAGE = 1e3;
|
|
@@ -19280,7 +19291,7 @@ var storedMembers = /* @__PURE__ */ __name(async (store, chatId) => {
|
|
|
19280
19291
|
return members.length === 0 ? null : members;
|
|
19281
19292
|
}, "storedMembers");
|
|
19282
19293
|
|
|
19283
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19294
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/services/inbox.js
|
|
19284
19295
|
var INBOX_CHATS = 20;
|
|
19285
19296
|
var REVIEW_DAYS = 3;
|
|
19286
19297
|
var UNANSWERED_HOURS = 24;
|
|
@@ -19488,7 +19499,7 @@ var inboxService = /* @__PURE__ */ __name((deps) => {
|
|
|
19488
19499
|
};
|
|
19489
19500
|
}, "inboxService");
|
|
19490
19501
|
|
|
19491
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19502
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/domain/formatting.js
|
|
19492
19503
|
var invalid = /* @__PURE__ */ __name(() => new CliError("validation_error", "the messenger formatter returned invalid text spans"), "invalid");
|
|
19493
19504
|
var validateFormattedText = /* @__PURE__ */ __name((formatted2) => {
|
|
19494
19505
|
const { text: text2, spans } = formatted2;
|
|
@@ -19548,7 +19559,7 @@ var visibleFormattedText = /* @__PURE__ */ __name((formatted2) => {
|
|
|
19548
19559
|
};
|
|
19549
19560
|
}, "visibleFormattedText");
|
|
19550
19561
|
|
|
19551
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19562
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/moderation/check.js
|
|
19552
19563
|
var INVITE = /max\.ru\/join\/|(t|telegram)\.me\/(\+|joinchat\/)|tg:\/\/join/i;
|
|
19553
19564
|
var LINK2 = /https?:\/\/\S+/i;
|
|
19554
19565
|
var STRENGTH = { report: 0, delete: 1, remove: 2 };
|
|
@@ -19736,7 +19747,7 @@ var nextPoint = /* @__PURE__ */ __name((rows, found) => {
|
|
|
19736
19747
|
}, "nextPoint");
|
|
19737
19748
|
var someUndone = /* @__PURE__ */ __name((rows) => rows.some(undone), "someUndone");
|
|
19738
19749
|
|
|
19739
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19750
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/moderation/rules.js
|
|
19740
19751
|
import { existsSync, readFileSync } from "node:fs";
|
|
19741
19752
|
import { join } from "node:path";
|
|
19742
19753
|
var RULE_ACTIONS = ["report", "delete", "remove"];
|
|
@@ -19879,7 +19890,7 @@ var assign = /* @__PURE__ */ __name((rules, key, value) => {
|
|
|
19879
19890
|
return { ...rules, [head]: { ...rules[head], [tail]: value } };
|
|
19880
19891
|
}, "assign");
|
|
19881
19892
|
|
|
19882
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19893
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/services/person-context.js
|
|
19883
19894
|
var CONTEXT_MESSAGES = 10;
|
|
19884
19895
|
var CONTEXT_BYTES = 64 * 1024;
|
|
19885
19896
|
var toContext = /* @__PURE__ */ __name((key, message, chatTitle) => ({
|
|
@@ -20135,10 +20146,10 @@ var personMessages = /* @__PURE__ */ __name(async (store, asked, reference, { ch
|
|
|
20135
20146
|
};
|
|
20136
20147
|
}, "personMessages");
|
|
20137
20148
|
|
|
20138
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20149
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/services/meeting-evidence.js
|
|
20139
20150
|
import { createHash } from "node:crypto";
|
|
20140
20151
|
|
|
20141
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20152
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/services/meeting-reference.js
|
|
20142
20153
|
var missing2 = /* @__PURE__ */ __name(() => new CliError("not_found", "the meeting evidence is unavailable for this account"), "missing");
|
|
20143
20154
|
var authorizedMeetingMetadata = /* @__PURE__ */ __name(async (store, accountId, reference, options = {}) => {
|
|
20144
20155
|
const parsed = parseMeetingReference(reference);
|
|
@@ -20156,7 +20167,7 @@ var authorizedMeetingMetadata = /* @__PURE__ */ __name(async (store, accountId,
|
|
|
20156
20167
|
return { parsed, meeting };
|
|
20157
20168
|
}, "authorizedMeetingMetadata");
|
|
20158
20169
|
|
|
20159
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20170
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/services/meeting-evidence.js
|
|
20160
20171
|
var hash = /* @__PURE__ */ __name((value) => createHash("sha256").update(JSON.stringify(value)).digest("hex"), "hash");
|
|
20161
20172
|
var checkMeetingCancelled = /* @__PURE__ */ __name((signal) => {
|
|
20162
20173
|
if (signal?.aborted)
|
|
@@ -20355,7 +20366,7 @@ var readMeetingEvidence = /* @__PURE__ */ __name(async (store, accountId, refere
|
|
|
20355
20366
|
return { ...packet, fingerprint: hash(packet) };
|
|
20356
20367
|
}, "readMeetingEvidence");
|
|
20357
20368
|
|
|
20358
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20369
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/services/person-meeting-context.js
|
|
20359
20370
|
var personMeetingContext = /* @__PURE__ */ __name(async (store, personReference, options) => {
|
|
20360
20371
|
const { meetings = 10, cues = 5, bytes: bytes2 = 64 * 1024, scanLimit = 1e3, since, signal } = options;
|
|
20361
20372
|
const requestedAccounts = options.accountIds;
|
|
@@ -20454,7 +20465,7 @@ var personMeetingContext = /* @__PURE__ */ __name(async (store, personReference,
|
|
|
20454
20465
|
};
|
|
20455
20466
|
}, "personMeetingContext");
|
|
20456
20467
|
|
|
20457
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20468
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/services/person-preparation.js
|
|
20458
20469
|
var PREPARE_BYTES = 96 * 1024;
|
|
20459
20470
|
var MEETINGS = 5;
|
|
20460
20471
|
var CUES = 3;
|
|
@@ -20571,7 +20582,7 @@ var meetingsOf = /* @__PURE__ */ __name(async (store, uid, stored, since, left)
|
|
|
20571
20582
|
}
|
|
20572
20583
|
}, "meetingsOf");
|
|
20573
20584
|
|
|
20574
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20585
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/services/person-profile.js
|
|
20575
20586
|
var personProfile = /* @__PURE__ */ __name(async (deps, person, known2) => {
|
|
20576
20587
|
const online = deps.offline ? void 0 : await deps.connection();
|
|
20577
20588
|
const held = await storeIfOpen(deps);
|
|
@@ -20641,7 +20652,7 @@ var quiet = /* @__PURE__ */ __name((facts) => facts.chats.map(({ id: id2, title,
|
|
|
20641
20652
|
complete: false
|
|
20642
20653
|
})), "quiet");
|
|
20643
20654
|
|
|
20644
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20655
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/services/person-timeline.js
|
|
20645
20656
|
var TIMELINE_ITEMS = 50;
|
|
20646
20657
|
var TIMELINE_MAX = 500;
|
|
20647
20658
|
var SCOPES = ["personal", "work"];
|
|
@@ -20696,7 +20707,7 @@ var personTimeline = /* @__PURE__ */ __name(async (store, asked, reference, { sc
|
|
|
20696
20707
|
};
|
|
20697
20708
|
}, "personTimeline");
|
|
20698
20709
|
|
|
20699
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20710
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/services/people.js
|
|
20700
20711
|
var peopleService = /* @__PURE__ */ __name((deps) => {
|
|
20701
20712
|
const localCard = /* @__PURE__ */ __name(async (card, includeNotes = false) => {
|
|
20702
20713
|
const held = await storeIfOpen(deps);
|
|
@@ -20923,7 +20934,7 @@ var withoutPhone = /* @__PURE__ */ __name((answer) => {
|
|
|
20923
20934
|
return rest;
|
|
20924
20935
|
}, "withoutPhone");
|
|
20925
20936
|
|
|
20926
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20937
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/services/task-tag-filters.js
|
|
20927
20938
|
var taskTagFilters = /* @__PURE__ */ __name(async (store, query) => {
|
|
20928
20939
|
const tags = /* @__PURE__ */ new Map();
|
|
20929
20940
|
for (const node of query ? walkQuery(query.root) : [])
|
|
@@ -20932,7 +20943,7 @@ var taskTagFilters = /* @__PURE__ */ __name(async (store, query) => {
|
|
|
20932
20943
|
return tags;
|
|
20933
20944
|
}, "taskTagFilters");
|
|
20934
20945
|
|
|
20935
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20946
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/services/tasks.js
|
|
20936
20947
|
var TASK_QUERY = {
|
|
20937
20948
|
entity: "task",
|
|
20938
20949
|
backend: "sql",
|
|
@@ -21117,7 +21128,7 @@ var tasksService = /* @__PURE__ */ __name((deps, categories) => {
|
|
|
21117
21128
|
...previews ? { previews: await Promise.all(shown.map(({ task: task2 }) => taskView(store, account, task2))) } : {}
|
|
21118
21129
|
};
|
|
21119
21130
|
}), "list"),
|
|
21120
|
-
add: /* @__PURE__ */ __name((message, type, origin, { category: named2, ...plan } = {}, choice = {}) => inStore(async (store, account) => {
|
|
21131
|
+
add: /* @__PURE__ */ __name((message, type, origin, { category: named2, ...plan } = {}, choice = {}, author = void 0) => inStore(async (store, account) => {
|
|
21121
21132
|
const chosen = named2 === void 0 ? void 0 : await categoryOf(store, named2);
|
|
21122
21133
|
const source = message.trim();
|
|
21123
21134
|
const native = isNoteReference(source);
|
|
@@ -21152,7 +21163,7 @@ var tasksService = /* @__PURE__ */ __name((deps, categories) => {
|
|
|
21152
21163
|
...plan.dueAt ? { due: plan.dueAt } : {}
|
|
21153
21164
|
};
|
|
21154
21165
|
const subject = { account: taskAccount(account), draft };
|
|
21155
|
-
const by = origin === "owner" ? "owner" : { bot: origin };
|
|
21166
|
+
const by = author ?? (origin === "owner" ? "owner" : { bot: origin });
|
|
21156
21167
|
if (choice.attach !== void 0) {
|
|
21157
21168
|
const target2 = await owned(store, account, choice.attach);
|
|
21158
21169
|
const similarity = await store.tasks.compare(subject, target2.id);
|
|
@@ -21412,7 +21423,7 @@ var taskView = /* @__PURE__ */ __name(async (store, account, task2) => {
|
|
|
21412
21423
|
};
|
|
21413
21424
|
}, "taskView");
|
|
21414
21425
|
|
|
21415
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21426
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/services/chat-coverage.js
|
|
21416
21427
|
var chatCoverage = /* @__PURE__ */ __name(async (store, account, chatIds) => {
|
|
21417
21428
|
const ids = [...new Set(chatIds)];
|
|
21418
21429
|
if (ids.length === 0)
|
|
@@ -21438,7 +21449,7 @@ var chatCoverage = /* @__PURE__ */ __name(async (store, account, chatIds) => {
|
|
|
21438
21449
|
}));
|
|
21439
21450
|
}, "chatCoverage");
|
|
21440
21451
|
|
|
21441
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21452
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/context/evidence-response.js
|
|
21442
21453
|
var contextSourceKey = /* @__PURE__ */ __name((source) => JSON.stringify([source.kind, source.accountId, source.provider, source.account]), "contextSourceKey");
|
|
21443
21454
|
var validateContextEvidencePage = /* @__PURE__ */ __name((page, request) => {
|
|
21444
21455
|
const fail2 = /* @__PURE__ */ __name(() => {
|
|
@@ -21502,7 +21513,7 @@ var validateContextEvidencePage = /* @__PURE__ */ __name((page, request) => {
|
|
|
21502
21513
|
}
|
|
21503
21514
|
}, "validateContextEvidencePage");
|
|
21504
21515
|
|
|
21505
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21516
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/context/read-budget.js
|
|
21506
21517
|
var contextReadBudget = /* @__PURE__ */ __name((limits = {}) => {
|
|
21507
21518
|
if (!limits || typeof limits !== "object" || Array.isArray(limits))
|
|
21508
21519
|
throw new CliError("validation_error", "limits needs a context read allowance");
|
|
@@ -21555,7 +21566,7 @@ var contextReadBudget = /* @__PURE__ */ __name((limits = {}) => {
|
|
|
21555
21566
|
};
|
|
21556
21567
|
}, "contextReadBudget");
|
|
21557
21568
|
|
|
21558
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21569
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/services/context-evidence.js
|
|
21559
21570
|
var createContextEvidenceReader = /* @__PURE__ */ __name((port, allowed, limits) => {
|
|
21560
21571
|
if (!port || typeof port.read !== "function")
|
|
21561
21572
|
throw new CliError("configuration_error", "context evidence reader is unavailable");
|
|
@@ -21599,7 +21610,7 @@ var createContextEvidenceReader = /* @__PURE__ */ __name((port, allowed, limits)
|
|
|
21599
21610
|
};
|
|
21600
21611
|
}, "createContextEvidenceReader");
|
|
21601
21612
|
|
|
21602
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21613
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/services/excerpt.js
|
|
21603
21614
|
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");
|
|
21604
21615
|
var excerpt = /* @__PURE__ */ __name((text2, query, size2 = 240, options = {}) => {
|
|
21605
21616
|
const flat = text2.replace(/\s+/g, " ").trim();
|
|
@@ -21615,18 +21626,18 @@ var excerpt = /* @__PURE__ */ __name((text2, query, size2 = 240, options = {}) =
|
|
|
21615
21626
|
}, "excerpt");
|
|
21616
21627
|
var withExcerpt = /* @__PURE__ */ __name(({ matchedText, ...hit }, query) => ({ ...hit, excerpt: excerpt(matchedText ?? hit.text, query) }), "withExcerpt");
|
|
21617
21628
|
|
|
21618
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21629
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/services/media-archive.js
|
|
21619
21630
|
import { setTimeout as sleep } from "node:timers/promises";
|
|
21620
21631
|
|
|
21621
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21632
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/services/media-archive-files.js
|
|
21622
21633
|
import { lstat } from "node:fs/promises";
|
|
21623
21634
|
|
|
21624
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21635
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-store.js
|
|
21625
21636
|
import { createHash as createHash3, randomUUID as randomUUID2 } from "node:crypto";
|
|
21626
21637
|
import { open as open3, rename as rename2, unlink as unlink2 } from "node:fs/promises";
|
|
21627
21638
|
import { join as join3 } from "node:path";
|
|
21628
21639
|
|
|
21629
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21640
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-metadata.js
|
|
21630
21641
|
import { createHash as createHash2 } from "node:crypto";
|
|
21631
21642
|
var metadataLimit = 16384;
|
|
21632
21643
|
var partialIdentity = /* @__PURE__ */ __name((locator) => JSON.stringify([locator.provider, locator.account, locator.occurrenceId, locator.assetId]), "partialIdentity");
|
|
@@ -21686,7 +21697,7 @@ var readPartialMetadata = /* @__PURE__ */ __name(async (path, locator, maxBytes,
|
|
|
21686
21697
|
}
|
|
21687
21698
|
}, "readPartialMetadata");
|
|
21688
21699
|
|
|
21689
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21700
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-writer.js
|
|
21690
21701
|
import { randomUUID } from "node:crypto";
|
|
21691
21702
|
import { open as open2, rename, unlink } from "node:fs/promises";
|
|
21692
21703
|
import { join as join2 } from "node:path";
|
|
@@ -21778,7 +21789,7 @@ var partialWriter = /* @__PURE__ */ __name(async (input) => {
|
|
|
21778
21789
|
};
|
|
21779
21790
|
}, "partialWriter");
|
|
21780
21791
|
|
|
21781
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21792
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-store.js
|
|
21782
21793
|
var NativeRecordingPartialStore = class {
|
|
21783
21794
|
static {
|
|
21784
21795
|
__name(this, "NativeRecordingPartialStore");
|
|
@@ -21885,12 +21896,12 @@ var NativeRecordingPartialStore = class {
|
|
|
21885
21896
|
}
|
|
21886
21897
|
};
|
|
21887
21898
|
|
|
21888
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21899
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication.js
|
|
21889
21900
|
import { createHash as createHash4 } from "node:crypto";
|
|
21890
21901
|
import { link as link2 } from "node:fs/promises";
|
|
21891
21902
|
import { basename as basename2, dirname as dirname2, join as join5, resolve as resolve2 } from "node:path";
|
|
21892
21903
|
|
|
21893
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21904
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication-files.js
|
|
21894
21905
|
import { unlink as unlink3 } from "node:fs/promises";
|
|
21895
21906
|
var verifiedPublicationFile = /* @__PURE__ */ __name(async (path, expected, signal, writable = false) => {
|
|
21896
21907
|
signal?.throwIfAborted();
|
|
@@ -21925,7 +21936,7 @@ var commitPublication = /* @__PURE__ */ __name(async (root, partialPath, finalPa
|
|
|
21925
21936
|
signal?.throwIfAborted();
|
|
21926
21937
|
}, "commitPublication");
|
|
21927
21938
|
|
|
21928
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21939
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication-journal.js
|
|
21929
21940
|
import { randomUUID as randomUUID3 } from "node:crypto";
|
|
21930
21941
|
import { open as open4, rename as rename3, unlink as unlink4 } from "node:fs/promises";
|
|
21931
21942
|
import { join as join4 } from "node:path";
|
|
@@ -21998,7 +22009,7 @@ var writePublicationJournal = /* @__PURE__ */ __name(async (root, path, prefix,
|
|
|
21998
22009
|
}
|
|
21999
22010
|
}, "writePublicationJournal");
|
|
22000
22011
|
|
|
22001
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22012
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication.js
|
|
22002
22013
|
var NativeRecordingPublication = class {
|
|
22003
22014
|
static {
|
|
22004
22015
|
__name(this, "NativeRecordingPublication");
|
|
@@ -22071,7 +22082,7 @@ var NativeRecordingPublication = class {
|
|
|
22071
22082
|
}
|
|
22072
22083
|
};
|
|
22073
22084
|
|
|
22074
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22085
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/services/media-archive-manifest.js
|
|
22075
22086
|
import { createHash as createHash5 } from "node:crypto";
|
|
22076
22087
|
import { readdir } from "node:fs/promises";
|
|
22077
22088
|
import { isAbsolute as isAbsolute2, join as join6, resolve as resolve3 } from "node:path";
|
|
@@ -22158,7 +22169,7 @@ var commitMediaEntry = /* @__PURE__ */ __name((root, one, beforePublish) => writ
|
|
|
22158
22169
|
beforePublish
|
|
22159
22170
|
}), "commitMediaEntry");
|
|
22160
22171
|
|
|
22161
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22172
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/services/media-archive-files.js
|
|
22162
22173
|
var validator = '"media-completed-v1"';
|
|
22163
22174
|
var maximumFileBytes = 64 * 1024 * 1024 * 1024;
|
|
22164
22175
|
var archiveMediaFile = /* @__PURE__ */ __name(async (root, identity, kind, file2, beforeWrite, signal, metadata = {}) => {
|
|
@@ -22259,7 +22270,7 @@ var archiveMediaFile = /* @__PURE__ */ __name(async (root, identity, kind, file2
|
|
|
22259
22270
|
return entry;
|
|
22260
22271
|
}, "archiveMediaFile");
|
|
22261
22272
|
|
|
22262
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22273
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/services/media-archive-locks.js
|
|
22263
22274
|
import { mkdir, realpath } from "node:fs/promises";
|
|
22264
22275
|
import { join as join7, resolve as resolve4 } from "node:path";
|
|
22265
22276
|
var archiveLocations = /* @__PURE__ */ __name(async (initial, signal) => {
|
|
@@ -22326,7 +22337,7 @@ var withMediaArchiveLocks = /* @__PURE__ */ __name(async (directory2, signal, ru
|
|
|
22326
22337
|
throw new CliError("validation_error", "archive locations changed during locking; run the command again");
|
|
22327
22338
|
}, "withMediaArchiveLocks");
|
|
22328
22339
|
|
|
22329
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22340
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/services/media-archive.js
|
|
22330
22341
|
var validateMediaSince = /* @__PURE__ */ __name((value, flag = "--since-time") => {
|
|
22331
22342
|
if (value === void 0)
|
|
22332
22343
|
return void 0;
|
|
@@ -22479,7 +22490,7 @@ var archiveMedia = /* @__PURE__ */ __name(async (ports, options) => {
|
|
|
22479
22490
|
}, { create: true });
|
|
22480
22491
|
}, "archiveMedia");
|
|
22481
22492
|
|
|
22482
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22493
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/services/media-archive-move.js
|
|
22483
22494
|
import { realpath as realpath2, unlink as unlink5 } from "node:fs/promises";
|
|
22484
22495
|
import { basename as basename3, dirname as dirname3, join as join8, resolve as resolve5 } from "node:path";
|
|
22485
22496
|
var canonicalDestination = /* @__PURE__ */ __name(async (directory2) => {
|
|
@@ -22632,7 +22643,7 @@ var moveMediaArchive = /* @__PURE__ */ __name(async (options) => {
|
|
|
22632
22643
|
}, { additional: [target2], createAdditional: !options.dryRun });
|
|
22633
22644
|
}, "moveMediaArchive");
|
|
22634
22645
|
|
|
22635
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22646
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/services/model-downloads.js
|
|
22636
22647
|
var bytesOf = /* @__PURE__ */ __name((model) => model.files.reduce((sum2, file2) => sum2 + file2.bytes, 0), "bytesOf");
|
|
22637
22648
|
var nativeRuntime = /* @__PURE__ */ __name(async ({ env, progress = /* @__PURE__ */ __name(() => {
|
|
22638
22649
|
}, "progress") }) => {
|
|
@@ -22655,7 +22666,7 @@ var downloadTextModel = /* @__PURE__ */ __name(async (id2, { env, progress = /*
|
|
|
22655
22666
|
}
|
|
22656
22667
|
await nativeRuntime({ env, progress });
|
|
22657
22668
|
progress(`${model.id}: loading it once to check it works`);
|
|
22658
|
-
const { openEmbedder: openEmbedder2 } = await import("./embed-
|
|
22669
|
+
const { openEmbedder: openEmbedder2 } = await import("./embed-US7X5P5D.js");
|
|
22659
22670
|
const embedder = await openEmbedder2(model, directory2);
|
|
22660
22671
|
try {
|
|
22661
22672
|
const [vector] = await embedder.embed(["check"], "query");
|
|
@@ -22676,7 +22687,7 @@ var downloadRerankModel = /* @__PURE__ */ __name(async (id2, { env, progress = /
|
|
|
22676
22687
|
}
|
|
22677
22688
|
await nativeRuntime({ env, progress });
|
|
22678
22689
|
progress(`${model.id}: loading it once to check it works`);
|
|
22679
|
-
const { openReranker } = await import("./rerank-
|
|
22690
|
+
const { openReranker } = await import("./rerank-23GXWT2V.js");
|
|
22680
22691
|
const reranker = await openReranker(model, directory2);
|
|
22681
22692
|
try {
|
|
22682
22693
|
await reranker.score("check", ["check"]);
|
|
@@ -22694,7 +22705,7 @@ var downloadImageModel = /* @__PURE__ */ __name(async (id2, { env, progress = /*
|
|
|
22694
22705
|
await installFiles(placedImage(model, directory2), { progress });
|
|
22695
22706
|
}
|
|
22696
22707
|
progress(`${model.id}: loading it once to check it works`);
|
|
22697
|
-
const { openPictureEmbedder } = await import("./embedder-
|
|
22708
|
+
const { openPictureEmbedder } = await import("./embedder-63Z7ZBYG.js");
|
|
22698
22709
|
const embedder = await openPictureEmbedder(model, directory2);
|
|
22699
22710
|
try {
|
|
22700
22711
|
const vector = await embedder.embedQuery("check");
|
|
@@ -22706,7 +22717,7 @@ var downloadImageModel = /* @__PURE__ */ __name(async (id2, { env, progress = /*
|
|
|
22706
22717
|
return { model, directory: directory2 };
|
|
22707
22718
|
}, "downloadImageModel");
|
|
22708
22719
|
|
|
22709
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22720
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/services/project-gathering-around.js
|
|
22710
22721
|
var storedMessageNeighbours = /* @__PURE__ */ __name((messages) => ({
|
|
22711
22722
|
async around(ref, window3) {
|
|
22712
22723
|
const at = parseLocator(ref);
|
|
@@ -22801,7 +22812,7 @@ var storedNeighbours = /* @__PURE__ */ __name((store) => {
|
|
|
22801
22812
|
};
|
|
22802
22813
|
}, "storedNeighbours");
|
|
22803
22814
|
|
|
22804
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22815
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/services/project-gathering-request.js
|
|
22805
22816
|
import { createHash as createHash6 } from "node:crypto";
|
|
22806
22817
|
var DAY = 864e5;
|
|
22807
22818
|
var MAX_TIME = 864e13;
|
|
@@ -23117,7 +23128,7 @@ var decodeCheckpoint = /* @__PURE__ */ __name((text2, plan) => {
|
|
|
23117
23128
|
return value;
|
|
23118
23129
|
}, "decodeCheckpoint");
|
|
23119
23130
|
|
|
23120
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23131
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/services/project-gathering.js
|
|
23121
23132
|
var terminal = /* @__PURE__ */ new Set(["done", "unavailable", "failed"]);
|
|
23122
23133
|
var PAGE2 = 20;
|
|
23123
23134
|
var PEOPLE = 20;
|
|
@@ -23521,7 +23532,7 @@ var peopleOf = /* @__PURE__ */ __name((items, senderOf) => {
|
|
|
23521
23532
|
return [...byKey.values()].sort((a, b) => b.items - a.items || a.name.localeCompare(b.name));
|
|
23522
23533
|
}, "peopleOf");
|
|
23523
23534
|
|
|
23524
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23535
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/services/meeting-project-candidate-matching.js
|
|
23525
23536
|
var normalizedText = /* @__PURE__ */ __name((text2) => text2.normalize("NFKC").toLowerCase().replace(/\s+/gu, " "), "normalizedText");
|
|
23526
23537
|
var termsOf = /* @__PURE__ */ __name((entry) => [
|
|
23527
23538
|
{ name: entry.name, kind: "canonical" },
|
|
@@ -23565,7 +23576,7 @@ var matchVocabularyTerms = /* @__PURE__ */ __name((catalog, texts) => {
|
|
|
23565
23576
|
return result.sort((a, b) => Number(a.entry.id) - Number(b.entry.id));
|
|
23566
23577
|
}, "matchVocabularyTerms");
|
|
23567
23578
|
|
|
23568
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23579
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/services/project-gathering-mentions.js
|
|
23569
23580
|
var KINDS = ["project", "tag", "topic"];
|
|
23570
23581
|
var findEvidenceMentions = /* @__PURE__ */ __name(async (vocabulary, gathering, options = {}) => {
|
|
23571
23582
|
if (typeof vocabulary?.vocabulary !== "function")
|
|
@@ -23620,7 +23631,7 @@ var findEvidenceMentions = /* @__PURE__ */ __name(async (vocabulary, gathering,
|
|
|
23620
23631
|
};
|
|
23621
23632
|
}, "findEvidenceMentions");
|
|
23622
23633
|
|
|
23623
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23634
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/services/stored-project-gathering.js
|
|
23624
23635
|
var PROJECT_ID = /^project:[1-9]\d*$/;
|
|
23625
23636
|
var canonicalProjectRef = /* @__PURE__ */ __name(async (store, reference) => {
|
|
23626
23637
|
if (PROJECT_ID.test(reference)) {
|
|
@@ -23786,7 +23797,7 @@ var gatherStoredProject = /* @__PURE__ */ __name(async (store, input) => {
|
|
|
23786
23797
|
return { projectRef: project.ref, unreadSources: [...unread, ...unreadChats, ...members.left], ...gathered, mentions };
|
|
23787
23798
|
}, "gatherStoredProject");
|
|
23788
23799
|
|
|
23789
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23800
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/services/account.js
|
|
23790
23801
|
var accountService = /* @__PURE__ */ __name((deps) => {
|
|
23791
23802
|
const online = /* @__PURE__ */ __name(async (command) => {
|
|
23792
23803
|
if (deps.offline)
|
|
@@ -23858,7 +23869,7 @@ var accountService = /* @__PURE__ */ __name((deps) => {
|
|
|
23858
23869
|
};
|
|
23859
23870
|
}, "accountService");
|
|
23860
23871
|
|
|
23861
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23872
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/domain/send-time.js
|
|
23862
23873
|
var MINUTE = 6e4;
|
|
23863
23874
|
var YEAR = 365 * 24 * 60 * MINUTE;
|
|
23864
23875
|
var DELAY = /^(\d+)(m|h|d)$/;
|
|
@@ -23877,7 +23888,7 @@ var sendTime = /* @__PURE__ */ __name((value, now = Date.now(), flag = "--at-tim
|
|
|
23877
23888
|
return new Date(at - at % MINUTE).toISOString();
|
|
23878
23889
|
}, "sendTime");
|
|
23879
23890
|
|
|
23880
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23891
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/services/admin.js
|
|
23881
23892
|
var recordMembership = /* @__PURE__ */ __name(async (deps, operationId, done2, change, fix, write) => {
|
|
23882
23893
|
try {
|
|
23883
23894
|
const held = await accountStoreIfOpen(deps);
|
|
@@ -24124,7 +24135,7 @@ var linkLimits = /* @__PURE__ */ __name(({ approval, expires, maxUses }) => {
|
|
|
24124
24135
|
return expires === void 0 ? void 0 : sendTime(expires, Date.now(), "--expire-time");
|
|
24125
24136
|
}, "linkLimits");
|
|
24126
24137
|
|
|
24127
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24138
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/services/mail-search.js
|
|
24128
24139
|
var THREADS_PAGE = 500;
|
|
24129
24140
|
var threadsOf = /* @__PURE__ */ __name(async (store, key) => {
|
|
24130
24141
|
const account = await store.accounts.storedAccount(key).catch(() => void 0);
|
|
@@ -24203,7 +24214,7 @@ var readMail = /* @__PURE__ */ __name(async (store, locator, { before: before2 =
|
|
|
24203
24214
|
return thread.slice(Math.max(0, at - before2), at + after + 1).map((hit) => hit.id === message ? { ...hit, anchor: true } : hit);
|
|
24204
24215
|
}, "readMail");
|
|
24205
24216
|
|
|
24206
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24217
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/services/search-kind.js
|
|
24207
24218
|
var NO_MAIL = "no_mail";
|
|
24208
24219
|
var MAIL = "email";
|
|
24209
24220
|
var listContextOf = /* @__PURE__ */ __name(async (store, account, app, stored) => {
|
|
@@ -24250,7 +24261,7 @@ var accountsOfKind = /* @__PURE__ */ __name((kind, chosen, held, explicit, comma
|
|
|
24250
24261
|
return chosenMail.map(({ provider, account }) => ({ provider, account }));
|
|
24251
24262
|
}, "accountsOfKind");
|
|
24252
24263
|
|
|
24253
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24264
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/services/messages-search.js
|
|
24254
24265
|
var MAIL_FIELDS = /* @__PURE__ */ new Set(["to", "cc", "bcc", "subject", "mailbox", "label", "is"]);
|
|
24255
24266
|
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");
|
|
24256
24267
|
var prepareLucene = /* @__PURE__ */ __name(async (store, account, request, messenger) => {
|
|
@@ -24598,7 +24609,7 @@ var statsLucene = /* @__PURE__ */ __name(async (store, account, request, messeng
|
|
|
24598
24609
|
};
|
|
24599
24610
|
}, "statsLucene");
|
|
24600
24611
|
|
|
24601
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24612
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/services/rankings-selection.js
|
|
24602
24613
|
var RANKING_SELECTION_BYTES = 64 * 1024;
|
|
24603
24614
|
var object = /* @__PURE__ */ __name((value) => value !== null && typeof value === "object" && !Array.isArray(value) ? value : void 0, "object");
|
|
24604
24615
|
function invalid3(message = "ranking selection is invalid \u2014 obtain a new drilldown from stats top") {
|
|
@@ -24767,7 +24778,7 @@ var readRankingSelection = /* @__PURE__ */ __name(async (store, input) => {
|
|
|
24767
24778
|
};
|
|
24768
24779
|
}, "readRankingSelection");
|
|
24769
24780
|
|
|
24770
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24781
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/services/search-record.js
|
|
24771
24782
|
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");
|
|
24772
24783
|
var searchRecordOf = /* @__PURE__ */ __name((command, params) => ({
|
|
24773
24784
|
command,
|
|
@@ -24777,7 +24788,7 @@ var searchRecordOf = /* @__PURE__ */ __name((command, params) => ({
|
|
|
24777
24788
|
fieldsVersion: FIELD_VERSION
|
|
24778
24789
|
}), "searchRecordOf");
|
|
24779
24790
|
|
|
24780
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24791
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/services/admin-statistics.js
|
|
24781
24792
|
function invalid4(message) {
|
|
24782
24793
|
throw new CliError("validation_error", message);
|
|
24783
24794
|
}
|
|
@@ -25071,7 +25082,7 @@ var adminStatisticsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
25071
25082
|
}, "evidence")
|
|
25072
25083
|
}), "adminStatisticsService");
|
|
25073
25084
|
|
|
25074
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25085
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/services/agenda.js
|
|
25075
25086
|
var DAY2 = 864e5;
|
|
25076
25087
|
var CLAIMS = ["none", "mine", "others", "any"];
|
|
25077
25088
|
var TASK_FIELDS = /* @__PURE__ */ new Set(["tag", "category", "claimed"]);
|
|
@@ -25313,10 +25324,10 @@ var agendaItem = /* @__PURE__ */ __name((shown) => {
|
|
|
25313
25324
|
};
|
|
25314
25325
|
}, "agendaItem");
|
|
25315
25326
|
|
|
25316
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25327
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/services/archive.js
|
|
25317
25328
|
import { setTimeout as sleep3 } from "node:timers/promises";
|
|
25318
25329
|
|
|
25319
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25330
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/services/backfill-estimate.js
|
|
25320
25331
|
var REQUEST_MS = 400;
|
|
25321
25332
|
var estimateBackfill = /* @__PURE__ */ __name(({ ranges, held, newest, page, maxPages, pauseMs }) => {
|
|
25322
25333
|
const lowest = ranges[0];
|
|
@@ -25339,13 +25350,13 @@ var estimateBackfill = /* @__PURE__ */ __name(({ ranges, held, newest, page, max
|
|
|
25339
25350
|
};
|
|
25340
25351
|
}, "estimateBackfill");
|
|
25341
25352
|
|
|
25342
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25353
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/domain/recovery.js
|
|
25343
25354
|
var withRecovery = /* @__PURE__ */ __name((error) => ({
|
|
25344
25355
|
...error,
|
|
25345
25356
|
retryable: typeof error.retryable === "boolean" ? error.retryable : error.code === "rate_limited" || error.status === 429
|
|
25346
25357
|
}), "withRecovery");
|
|
25347
25358
|
|
|
25348
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25359
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/services/batch.js
|
|
25349
25360
|
var actionable = /* @__PURE__ */ __name((error) => {
|
|
25350
25361
|
if (isCliFailure(error))
|
|
25351
25362
|
return withRecovery({ code: error.code, message: error.message, ...error.details });
|
|
@@ -25428,7 +25439,7 @@ var mergeBatches = /* @__PURE__ */ __name((a, b) => {
|
|
|
25428
25439
|
};
|
|
25429
25440
|
}, "mergeBatches");
|
|
25430
25441
|
|
|
25431
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25442
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/services/patience.js
|
|
25432
25443
|
import { setTimeout as sleep2 } from "node:timers/promises";
|
|
25433
25444
|
var LONGEST_WAIT_MS = 5 * 60 * 1e3;
|
|
25434
25445
|
var patiently = /* @__PURE__ */ __name(async (request, note, stop) => {
|
|
@@ -25451,7 +25462,7 @@ var patiently = /* @__PURE__ */ __name(async (request, note, stop) => {
|
|
|
25451
25462
|
}
|
|
25452
25463
|
}, "patiently");
|
|
25453
25464
|
|
|
25454
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25465
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/images/context/index.js
|
|
25455
25466
|
var CONTEXT_MESSAGES2 = 3;
|
|
25456
25467
|
var CONTEXT_MINUTES = 10;
|
|
25457
25468
|
var MAX_CHARS = 1200;
|
|
@@ -25475,12 +25486,12 @@ var context = {
|
|
|
25475
25486
|
}, "describe")
|
|
25476
25487
|
};
|
|
25477
25488
|
|
|
25478
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25489
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/images/registry.js
|
|
25479
25490
|
var BUILT_INS = [context];
|
|
25480
25491
|
var providers = [...BUILT_INS];
|
|
25481
25492
|
var registeredImageProviders = /* @__PURE__ */ __name(() => providers, "registeredImageProviders");
|
|
25482
25493
|
|
|
25483
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25494
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/services/conversations.js
|
|
25484
25495
|
var READ_PAGE = 5e3;
|
|
25485
25496
|
var CHAIN = 50;
|
|
25486
25497
|
var CONVERSATION_QUERY = {
|
|
@@ -25632,7 +25643,7 @@ var sized = /* @__PURE__ */ __name((size2) => {
|
|
|
25632
25643
|
return size2;
|
|
25633
25644
|
}, "sized");
|
|
25634
25645
|
|
|
25635
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25646
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/services/embeddings-maintenance.js
|
|
25636
25647
|
var REFRESH_BOUNDS = { maxChats: 20, maxChunks: 2e3 };
|
|
25637
25648
|
var MESSAGE_PAGE = 5e3;
|
|
25638
25649
|
var PER_SESSION = 8;
|
|
@@ -25651,7 +25662,7 @@ var embeddingTarget = /* @__PURE__ */ __name((deps, choice = DEFAULT_TEXT_MODEL)
|
|
|
25651
25662
|
price: remote.price,
|
|
25652
25663
|
installed: true,
|
|
25653
25664
|
perBatch: PER_REQUEST * concurrency,
|
|
25654
|
-
open: /* @__PURE__ */ __name(async () => (await import("./remote-
|
|
25665
|
+
open: /* @__PURE__ */ __name(async () => (await import("./remote-6IEFZFGO.js")).openRemote(remote, apiKey, { concurrency }), "open")
|
|
25655
25666
|
};
|
|
25656
25667
|
}
|
|
25657
25668
|
const model = textModel(choice);
|
|
@@ -25668,7 +25679,7 @@ var embeddingTarget = /* @__PURE__ */ __name((deps, choice = DEFAULT_TEXT_MODEL)
|
|
|
25668
25679
|
if (!isTextModelInstalled(model, directory2))
|
|
25669
25680
|
throw notDownloaded(model.id);
|
|
25670
25681
|
if (apart) {
|
|
25671
|
-
const { openProcess } = await import("./process-
|
|
25682
|
+
const { openProcess } = await import("./process-CGLNXFIU.js");
|
|
25672
25683
|
return openProcess(model, directory2, { threads: threads ?? defaultThreads() });
|
|
25673
25684
|
}
|
|
25674
25685
|
return openEmbedder(model, directory2, { threads: threads ?? defaultThreads() });
|
|
@@ -25957,7 +25968,7 @@ var shaped = /* @__PURE__ */ __name(({ chatId, builtAt, algorithmVersion, pendin
|
|
|
25957
25968
|
return { ...one, state };
|
|
25958
25969
|
}, "shaped");
|
|
25959
25970
|
|
|
25960
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25971
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/services/search-catchup.js
|
|
25961
25972
|
var CATCH_UP_BOUNDS = { maxChunks: 500, maxMessages: 1e4, timeMs: 3e4 };
|
|
25962
25973
|
var validateCatchUpBounds = /* @__PURE__ */ __name((options) => {
|
|
25963
25974
|
for (const [key, value, maximum] of [
|
|
@@ -26010,7 +26021,7 @@ var catchUpSearch = /* @__PURE__ */ __name(async (deps, chat, options, signal, c
|
|
|
26010
26021
|
}
|
|
26011
26022
|
}, "catchUpSearch");
|
|
26012
26023
|
|
|
26013
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26024
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/services/archive.js
|
|
26014
26025
|
var pushed = /* @__PURE__ */ __name((deps, what) => {
|
|
26015
26026
|
if (deps.reads === "store") {
|
|
26016
26027
|
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`);
|
|
@@ -26331,7 +26342,7 @@ var timeOfKey = /* @__PURE__ */ __name(async (store, account, chatId, key, byTim
|
|
|
26331
26342
|
return message?.timestamp ?? fallback;
|
|
26332
26343
|
}, "timeOfKey");
|
|
26333
26344
|
|
|
26334
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26345
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/services/archive-gaps.js
|
|
26335
26346
|
import { createHash as createHash7, randomUUID as randomUUID4 } from "node:crypto";
|
|
26336
26347
|
var GAP_BOUNDS = { maxGaps: 5, limit: 500, timeMs: 3e4 };
|
|
26337
26348
|
var validateRepair = /* @__PURE__ */ __name((messenger, options) => {
|
|
@@ -26468,12 +26479,12 @@ var gapsService = /* @__PURE__ */ __name((deps) => {
|
|
|
26468
26479
|
return { plan, repair };
|
|
26469
26480
|
}, "gapsService");
|
|
26470
26481
|
|
|
26471
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26482
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/services/attachments.js
|
|
26472
26483
|
import { createHash as createHash9 } from "node:crypto";
|
|
26473
26484
|
import { constants as constants2 } from "node:fs";
|
|
26474
26485
|
import { open as open6, readFile, stat as stat2 } from "node:fs/promises";
|
|
26475
26486
|
|
|
26476
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26487
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/attachments/directory.js
|
|
26477
26488
|
import { lstat as lstat2, readdir as readdir2, realpath as realpath3 } from "node:fs/promises";
|
|
26478
26489
|
import { basename as basename4, join as join9, relative as relative2, sep as sep2 } from "node:path";
|
|
26479
26490
|
var MAX_FILES = 1e4;
|
|
@@ -26544,15 +26555,15 @@ var directoryPaths = /* @__PURE__ */ __name(async (store, chat, directory2, app,
|
|
|
26544
26555
|
return choices;
|
|
26545
26556
|
}, "directoryPaths");
|
|
26546
26557
|
|
|
26547
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26558
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/attachments/documents.js
|
|
26548
26559
|
import { posix } from "node:path";
|
|
26549
26560
|
|
|
26550
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26561
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/attachments/container.js
|
|
26551
26562
|
import { setImmediate as tick } from "node:timers/promises";
|
|
26552
26563
|
import { crc32 } from "node:zlib";
|
|
26553
26564
|
var import_xmldom = __toESM(require_lib(), 1);
|
|
26554
26565
|
|
|
26555
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26566
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/attachments/encoding.js
|
|
26556
26567
|
var import_chardet = __toESM(require_lib2(), 1);
|
|
26557
26568
|
var import_iconv_lite = __toESM(require_lib3(), 1);
|
|
26558
26569
|
var SAMPLE = 65536;
|
|
@@ -26654,7 +26665,7 @@ var decodeXml = /* @__PURE__ */ __name((bytes2) => {
|
|
|
26654
26665
|
return result.text;
|
|
26655
26666
|
}, "decodeXml");
|
|
26656
26667
|
|
|
26657
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26668
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/attachments/container.js
|
|
26658
26669
|
var MAX_PART = 10 * 1024 * 1024;
|
|
26659
26670
|
var MAX_ENTRIES = 1e3;
|
|
26660
26671
|
var decoder = new TextDecoder("utf-8", { fatal: true });
|
|
@@ -26667,7 +26678,7 @@ var cancelled = /* @__PURE__ */ __name((signal) => {
|
|
|
26667
26678
|
if (signal?.aborted)
|
|
26668
26679
|
throw new CliError("cancelled", "document extraction cancelled");
|
|
26669
26680
|
}, "cancelled");
|
|
26670
|
-
var
|
|
26681
|
+
var safeName2 = /* @__PURE__ */ __name((name) => name.length > 0 && name.length <= 512 && !/^[\\/]|\\/.test(name) && ![...name].some((character) => character.charCodeAt(0) < 32) && !name.split("/").includes(".."), "safeName");
|
|
26671
26682
|
var directory = /* @__PURE__ */ __name((bytes2) => {
|
|
26672
26683
|
const view = new DataView(bytes2.buffer, bytes2.byteOffset, bytes2.byteLength);
|
|
26673
26684
|
let end = -1;
|
|
@@ -26702,7 +26713,7 @@ var directory = /* @__PURE__ */ __name((bytes2) => {
|
|
|
26702
26713
|
if (next > stop)
|
|
26703
26714
|
throw new Error("invalid_zip");
|
|
26704
26715
|
const name = decoder.decode(bytes2.subarray(offset + 46, offset + 46 + length));
|
|
26705
|
-
if (!
|
|
26716
|
+
if (!safeName2(name) || entries.has(name) || flags & 1 || method !== 0 && method !== 8)
|
|
26706
26717
|
throw new Error("invalid_zip");
|
|
26707
26718
|
if ((view.getUint32(offset + 38, true) >>> 16 & 61440) === 40960)
|
|
26708
26719
|
throw new Error("invalid_zip");
|
|
@@ -26869,7 +26880,7 @@ var elements = /* @__PURE__ */ __name((node, name, namespace) => {
|
|
|
26869
26880
|
return found;
|
|
26870
26881
|
}, "elements");
|
|
26871
26882
|
|
|
26872
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26883
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/attachments/sheets.js
|
|
26873
26884
|
var columnName = /* @__PURE__ */ __name((column) => {
|
|
26874
26885
|
let name = "";
|
|
26875
26886
|
for (let rest = column; rest > 0; rest = Math.floor((rest - 1) / 26))
|
|
@@ -26924,7 +26935,7 @@ var sheetText = /* @__PURE__ */ __name((sheets2, maxChars = MAX_TEXT_CHARS) => {
|
|
|
26924
26935
|
return { text: parts.join("").trim(), truncated: false };
|
|
26925
26936
|
}, "sheetText");
|
|
26926
26937
|
|
|
26927
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26938
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/attachments/documents.js
|
|
26928
26939
|
var OFFICE = "urn:oasis:names:tc:opendocument:xmlns:office:1.0";
|
|
26929
26940
|
var TEXT = "urn:oasis:names:tc:opendocument:xmlns:text:1.0";
|
|
26930
26941
|
var TABLE = "urn:oasis:names:tc:opendocument:xmlns:table:1.0";
|
|
@@ -27324,10 +27335,10 @@ var readDocument = /* @__PURE__ */ __name(async (bytes2, kind, signal) => {
|
|
|
27324
27335
|
}
|
|
27325
27336
|
}, "readDocument");
|
|
27326
27337
|
|
|
27327
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27338
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/attachments/extract.js
|
|
27328
27339
|
import { extname as extname3 } from "node:path";
|
|
27329
27340
|
|
|
27330
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27341
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/readers/engine.js
|
|
27331
27342
|
import { readFileSync as readFileSync2 } from "node:fs";
|
|
27332
27343
|
import { dirname as dirname4, extname as extname2, join as join10 } from "node:path";
|
|
27333
27344
|
import { fileURLToPath } from "node:url";
|
|
@@ -27388,7 +27399,7 @@ var derived = /* @__PURE__ */ __name((bytes2, extractor, read) => {
|
|
|
27388
27399
|
}
|
|
27389
27400
|
}, "derived");
|
|
27390
27401
|
|
|
27391
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27402
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/readers/image/index.js
|
|
27392
27403
|
var IMAGES = /* @__PURE__ */ new Set([".jpg", ".jpeg", ".png", ".webp", ".gif", ".heic", ".tif", ".tiff", ".bmp"]);
|
|
27393
27404
|
var image2 = {
|
|
27394
27405
|
id: "image",
|
|
@@ -27397,7 +27408,7 @@ var image2 = {
|
|
|
27397
27408
|
read: /* @__PURE__ */ __name(async () => ({ status: "needs-agent" }), "read")
|
|
27398
27409
|
};
|
|
27399
27410
|
|
|
27400
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27411
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/readers/doc/index.js
|
|
27401
27412
|
var OLE = "\xD0\xCF\xE0\xA1\xB1\xE1";
|
|
27402
27413
|
var doc = {
|
|
27403
27414
|
id: "doc",
|
|
@@ -27409,7 +27420,7 @@ var doc = {
|
|
|
27409
27420
|
}), "read")
|
|
27410
27421
|
};
|
|
27411
27422
|
|
|
27412
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27423
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/readers/docx/index.js
|
|
27413
27424
|
var DOCX = "application/vnd.openxmlformats-officedocument.wordprocessingml.document";
|
|
27414
27425
|
var docx = {
|
|
27415
27426
|
id: "docx",
|
|
@@ -27422,7 +27433,7 @@ var docx = {
|
|
|
27422
27433
|
}), "read")
|
|
27423
27434
|
};
|
|
27424
27435
|
|
|
27425
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27436
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/attachments/markup.js
|
|
27426
27437
|
var import_iconv_lite2 = __toESM(require_lib3(), 1);
|
|
27427
27438
|
var RTF_SKIPPED = /* @__PURE__ */ new Set([
|
|
27428
27439
|
"fonttbl",
|
|
@@ -27598,7 +27609,7 @@ var htmlText = /* @__PURE__ */ __name((source) => {
|
|
|
27598
27609
|
}, "htmlText");
|
|
27599
27610
|
var safeChar = /* @__PURE__ */ __name((code, fallback) => code > 0 && code <= 1114111 ? String.fromCodePoint(code) : fallback, "safeChar");
|
|
27600
27611
|
|
|
27601
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27612
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/readers/html/page.js
|
|
27602
27613
|
var clean = /* @__PURE__ */ __name((value) => typeof value === "string" ? value.replace(/\s+/g, " ").trim() : "", "clean");
|
|
27603
27614
|
var namesIn = /* @__PURE__ */ __name((value) => [value].flat().map((entry) => typeof entry === "string" ? clean(entry) : clean(entry?.name)).filter(Boolean).join(", "), "namesIn");
|
|
27604
27615
|
var jsonLdNodes = /* @__PURE__ */ __name((document) => {
|
|
@@ -27654,7 +27665,7 @@ var markdownSections = /* @__PURE__ */ __name((text2) => {
|
|
|
27654
27665
|
return found.map((section, index) => ({ ...section, end: found[index + 1]?.start ?? text2.length }));
|
|
27655
27666
|
}, "markdownSections");
|
|
27656
27667
|
|
|
27657
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27668
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/readers/html/index.js
|
|
27658
27669
|
var HTML = /* @__PURE__ */ new Set([".html", ".htm", ".xhtml"]);
|
|
27659
27670
|
var first = /* @__PURE__ */ __name((...values) => values.find((value) => typeof value === "string" && value !== ""), "first");
|
|
27660
27671
|
var loaded = /* @__PURE__ */ __name(async (load, name) => {
|
|
@@ -27725,7 +27736,7 @@ var html = {
|
|
|
27725
27736
|
}, "read")
|
|
27726
27737
|
};
|
|
27727
27738
|
|
|
27728
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27739
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/readers/office/index.js
|
|
27729
27740
|
var office = {
|
|
27730
27741
|
id: "office",
|
|
27731
27742
|
version: documentExtractor("odt"),
|
|
@@ -27736,7 +27747,7 @@ var office = {
|
|
|
27736
27747
|
}, "read")
|
|
27737
27748
|
};
|
|
27738
27749
|
|
|
27739
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27750
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/readers/pdf/index.js
|
|
27740
27751
|
var pdf = {
|
|
27741
27752
|
id: "pdf",
|
|
27742
27753
|
version: "unpdf",
|
|
@@ -27803,7 +27814,7 @@ var pdf = {
|
|
|
27803
27814
|
}), "read")
|
|
27804
27815
|
};
|
|
27805
27816
|
|
|
27806
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27817
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/readers/plain/index.js
|
|
27807
27818
|
var PLAIN = /* @__PURE__ */ new Set([".txt", ".md", ".markdown", ".csv", ".tsv", ".json", ".log"]);
|
|
27808
27819
|
var isPlain = /* @__PURE__ */ __name((hint) => PLAIN.has(extensionOf(hint)) || hint.mime?.startsWith("text/") || hint.mime === "application/json", "isPlain");
|
|
27809
27820
|
var readPlain = /* @__PURE__ */ __name((bytes2) => {
|
|
@@ -27823,7 +27834,7 @@ var plain = {
|
|
|
27823
27834
|
read: /* @__PURE__ */ __name(async (bytes2) => readPlain(bytes2), "read")
|
|
27824
27835
|
};
|
|
27825
27836
|
|
|
27826
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27837
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/readers/rtf/index.js
|
|
27827
27838
|
var rtf = {
|
|
27828
27839
|
id: "rtf",
|
|
27829
27840
|
version: "v1",
|
|
@@ -27831,10 +27842,10 @@ var rtf = {
|
|
|
27831
27842
|
read: /* @__PURE__ */ __name(async (bytes2) => derived(bytes2, "rtf:v1", rtfText), "read")
|
|
27832
27843
|
};
|
|
27833
27844
|
|
|
27834
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27845
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/readers/sheets/index.js
|
|
27835
27846
|
import { basename as basename5 } from "node:path";
|
|
27836
27847
|
|
|
27837
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27848
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/attachments/csv-spans.js
|
|
27838
27849
|
var delimitedSpans = /* @__PURE__ */ __name((text2, delimiter, maxCells = 1e4) => {
|
|
27839
27850
|
const cells = [];
|
|
27840
27851
|
let row = 1, column = 1, start = 0, quoted = false, truncated = false;
|
|
@@ -27872,7 +27883,7 @@ var delimitedSpans = /* @__PURE__ */ __name((text2, delimiter, maxCells = 1e4) =
|
|
|
27872
27883
|
return { cells, truncated };
|
|
27873
27884
|
}, "delimitedSpans");
|
|
27874
27885
|
|
|
27875
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27886
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/readers/sheets/index.js
|
|
27876
27887
|
var DELIMITED = {
|
|
27877
27888
|
".csv": ",",
|
|
27878
27889
|
".tsv": " ",
|
|
@@ -27911,7 +27922,7 @@ var sheets = {
|
|
|
27911
27922
|
}, "read")
|
|
27912
27923
|
};
|
|
27913
27924
|
|
|
27914
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27925
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/readers/registry.js
|
|
27915
27926
|
var BUILT_INS2 = [office, pdf, docx, doc, rtf, html, sheets, plain, image2];
|
|
27916
27927
|
var HEAD_BYTES = 1024;
|
|
27917
27928
|
var readers = [...BUILT_INS2];
|
|
@@ -27921,7 +27932,7 @@ var readWithRegistry = /* @__PURE__ */ __name(async (bytes2, hint, context2) =>
|
|
|
27921
27932
|
return reader ? reader.read(bytes2, hint, context2) : { status: "unsupported" };
|
|
27922
27933
|
}, "readWithRegistry");
|
|
27923
27934
|
|
|
27924
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27935
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/attachments/extract.js
|
|
27925
27936
|
var importEngine = /* @__PURE__ */ __name((name) => importFrom(new URL("attachments/extract.js", import.meta.resolve("@wirecat/cli-core")).href, name), "importEngine");
|
|
27926
27937
|
var extensionOf2 = /* @__PURE__ */ __name(({ name, path }) => extname3(name ?? path).toLowerCase(), "extensionOf");
|
|
27927
27938
|
var extractText = /* @__PURE__ */ __name(async (bytes2, hint, load, signal, env = process.env) => {
|
|
@@ -29000,7 +29011,7 @@ function imageSize(input) {
|
|
|
29000
29011
|
}
|
|
29001
29012
|
__name(imageSize, "imageSize");
|
|
29002
29013
|
|
|
29003
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29014
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/attachments/ocr.js
|
|
29004
29015
|
var MAX_PAGES = 20;
|
|
29005
29016
|
var MAX_PIXELS = 2e7;
|
|
29006
29017
|
var cancelled2 = /* @__PURE__ */ __name((signal) => {
|
|
@@ -29151,7 +29162,7 @@ var ocrPdf = /* @__PURE__ */ __name(async (bytes2, pipeline2, load, signal) => {
|
|
|
29151
29162
|
}
|
|
29152
29163
|
}, "ocrPdf");
|
|
29153
29164
|
|
|
29154
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29165
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/attachments/pdf-preview.js
|
|
29155
29166
|
var pdfPreview = /* @__PURE__ */ __name(async (bytes2, page, signal, load = importEngine, env = process.env) => {
|
|
29156
29167
|
const limits = pdfPreviewLimits(env);
|
|
29157
29168
|
const cancelled4 = /* @__PURE__ */ __name(() => {
|
|
@@ -29228,7 +29239,7 @@ var pdfPreview = /* @__PURE__ */ __name(async (bytes2, page, signal, load = impo
|
|
|
29228
29239
|
}
|
|
29229
29240
|
}, "pdfPreview");
|
|
29230
29241
|
|
|
29231
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29242
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/attachments/transfer.js
|
|
29232
29243
|
import { createHash as createHash8 } from "node:crypto";
|
|
29233
29244
|
import { constants } from "node:fs";
|
|
29234
29245
|
import { lstat as lstat3, open as open5 } from "node:fs/promises";
|
|
@@ -29336,7 +29347,7 @@ var transferMime = /* @__PURE__ */ __name((head, hint, name = null) => {
|
|
|
29336
29347
|
return hint !== null && /^[a-z0-9.+-]+\/[a-z0-9.+-]+$/i.test(hint) ? hint : "application/octet-stream";
|
|
29337
29348
|
}, "transferMime");
|
|
29338
29349
|
|
|
29339
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29350
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/services/attachments.js
|
|
29340
29351
|
var ATTACHMENT_QUERY = {
|
|
29341
29352
|
entity: "attachment",
|
|
29342
29353
|
backend: "sql",
|
|
@@ -29717,7 +29728,7 @@ var attachmentsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
29717
29728
|
}, "setText")
|
|
29718
29729
|
}), "attachmentsService");
|
|
29719
29730
|
|
|
29720
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29731
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/services/chat-documents.js
|
|
29721
29732
|
var chatDocumentsService = /* @__PURE__ */ __name((deps) => ({
|
|
29722
29733
|
list: /* @__PURE__ */ __name(async (chat, { limit, offset, ref }) => {
|
|
29723
29734
|
const store = await accountStore(deps);
|
|
@@ -29747,7 +29758,7 @@ var chatDocumentsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
29747
29758
|
}, "list")
|
|
29748
29759
|
}), "chatDocumentsService");
|
|
29749
29760
|
|
|
29750
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29761
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/services/retention.js
|
|
29751
29762
|
var observationDuration = /* @__PURE__ */ __name((text2, flag) => {
|
|
29752
29763
|
const match = /^(\d+(?:\.\d+)?)([smhdw])$/.exec(text2);
|
|
29753
29764
|
const units2 = { s: 1e3, m: 6e4, h: 36e5, d: 864e5, w: 6048e5 };
|
|
@@ -29834,7 +29845,7 @@ var isRetentionSelection = /* @__PURE__ */ __name((selection) => {
|
|
|
29834
29845
|
}
|
|
29835
29846
|
}, "isRetentionSelection");
|
|
29836
29847
|
|
|
29837
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29848
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/services/counters.js
|
|
29838
29849
|
var counterFields = /* @__PURE__ */ __name((text2 = "views,reactions,comments") => {
|
|
29839
29850
|
const fields = text2.split(",").map((one) => one.trim());
|
|
29840
29851
|
if (!fields.length || fields.some((one) => !COUNTER_FIELDS.includes(one)) || new Set(fields).size !== fields.length)
|
|
@@ -30041,7 +30052,7 @@ var countersService = /* @__PURE__ */ __name((deps) => {
|
|
|
30041
30052
|
};
|
|
30042
30053
|
}, "countersService");
|
|
30043
30054
|
|
|
30044
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30055
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/services/search-refresh.js
|
|
30045
30056
|
var SYNC_KEY = "messages.sync-first";
|
|
30046
30057
|
var SYNC_BOUNDS = { maxChats: 5, timeMs: 3e4, maxMessages: 500 };
|
|
30047
30058
|
var keyOf2 = /* @__PURE__ */ __name((chat) => JSON.stringify([chat.account.provider, chat.account.account, chat.chatId]), "keyOf");
|
|
@@ -30173,7 +30184,7 @@ var withRefresh = /* @__PURE__ */ __name((found, refreshed) => ({
|
|
|
30173
30184
|
...!refreshed || refreshed.complete ? {} : { coverage: { ...found.coverage, state: "stale" } }
|
|
30174
30185
|
}), "withRefresh");
|
|
30175
30186
|
|
|
30176
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30187
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/services/embeddings-search.js
|
|
30177
30188
|
var CANDIDATES = 50;
|
|
30178
30189
|
var WORD_HITS = 200;
|
|
30179
30190
|
var RRF_K = 60;
|
|
@@ -30448,13 +30459,13 @@ var meanOf = /* @__PURE__ */ __name((vectors) => {
|
|
|
30448
30459
|
return mean.map((value) => value / length);
|
|
30449
30460
|
}, "meanOf");
|
|
30450
30461
|
|
|
30451
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30462
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/services/embeddings.js
|
|
30452
30463
|
var embeddingsService = /* @__PURE__ */ __name((deps) => ({
|
|
30453
30464
|
...embeddingsMaintenance(deps),
|
|
30454
30465
|
...embeddingsSearch(deps)
|
|
30455
30466
|
}), "embeddingsService");
|
|
30456
30467
|
|
|
30457
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30468
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/services/folders.js
|
|
30458
30469
|
var foldersService = /* @__PURE__ */ __name((deps) => {
|
|
30459
30470
|
const online = /* @__PURE__ */ __name(async (command) => {
|
|
30460
30471
|
if (deps.offline)
|
|
@@ -30595,7 +30606,7 @@ var foldersService = /* @__PURE__ */ __name((deps) => {
|
|
|
30595
30606
|
};
|
|
30596
30607
|
}, "foldersService");
|
|
30597
30608
|
|
|
30598
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30609
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/services/mentions.js
|
|
30599
30610
|
var REVIEW_COUNT = 500;
|
|
30600
30611
|
var mentionsService = /* @__PURE__ */ __name((deps) => {
|
|
30601
30612
|
const located = /* @__PURE__ */ __name(async () => {
|
|
@@ -30674,7 +30685,7 @@ var mentionsService = /* @__PURE__ */ __name((deps) => {
|
|
|
30674
30685
|
};
|
|
30675
30686
|
}, "mentionsService");
|
|
30676
30687
|
|
|
30677
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30688
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/domain/message-link.js
|
|
30678
30689
|
var messageLinkTarget = /* @__PURE__ */ __name((reference, message, provider) => {
|
|
30679
30690
|
if (isLocator(reference)) {
|
|
30680
30691
|
if (message !== void 0)
|
|
@@ -30721,7 +30732,7 @@ var validatePermalink = /* @__PURE__ */ __name((link4) => {
|
|
|
30721
30732
|
return { url: link4.url, access: link4.access, reason: link4.reason };
|
|
30722
30733
|
}, "validatePermalink");
|
|
30723
30734
|
|
|
30724
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30735
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/domain/pin-duration.js
|
|
30725
30736
|
var spokenSeconds = /* @__PURE__ */ __name((seconds) => {
|
|
30726
30737
|
if (seconds % 86400 === 0 && seconds > 86400)
|
|
30727
30738
|
return `${seconds / 86400}d`;
|
|
@@ -30753,7 +30764,7 @@ var pinDurationOf = /* @__PURE__ */ __name((value, allowed, flag = "--expire-tim
|
|
|
30753
30764
|
return seconds;
|
|
30754
30765
|
}, "pinDurationOf");
|
|
30755
30766
|
|
|
30756
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30767
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/sends/send-as.js
|
|
30757
30768
|
var sendAsCheck = /* @__PURE__ */ __name((connection, sendAs) => {
|
|
30758
30769
|
if (sendAs === void 0) {
|
|
30759
30770
|
const saved = connection.savedSender?.bind(connection);
|
|
@@ -30778,7 +30789,7 @@ var typedSendAs = /* @__PURE__ */ __name((typed) => {
|
|
|
30778
30789
|
return sendAs;
|
|
30779
30790
|
}, "typedSendAs");
|
|
30780
30791
|
|
|
30781
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30792
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/search/total.js
|
|
30782
30793
|
var TOTAL_CAP = 1e4;
|
|
30783
30794
|
var totalOf = /* @__PURE__ */ __name((count4, shown, hasMore, exact = true) => {
|
|
30784
30795
|
const least = shown + (hasMore ? 1 : 0);
|
|
@@ -30789,7 +30800,7 @@ var totalOf = /* @__PURE__ */ __name((count4, shown, hasMore, exact = true) => {
|
|
|
30789
30800
|
return { value: count4, relation: exact ? "eq" : "gte" };
|
|
30790
30801
|
}, "totalOf");
|
|
30791
30802
|
|
|
30792
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30803
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/search/lucene/meaning-parts.js
|
|
30793
30804
|
var WORD_FIELDS = /* @__PURE__ */ new Set(["text", "exact"]);
|
|
30794
30805
|
var fieldsOfQuery = /* @__PURE__ */ __name((root, everything) => {
|
|
30795
30806
|
let narrows = false;
|
|
@@ -30818,7 +30829,7 @@ var meaningWords = /* @__PURE__ */ __name((root) => {
|
|
|
30818
30829
|
return wanted(root).join(" ").trim();
|
|
30819
30830
|
}, "meaningWords");
|
|
30820
30831
|
|
|
30821
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30832
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/search/question-plan.js
|
|
30822
30833
|
var words = /* @__PURE__ */ __name((text2) => normalize(text2).match(/[\p{L}\p{N}]+/gu) ?? [], "words");
|
|
30823
30834
|
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"));
|
|
30824
30835
|
var questionWord = /\b(?:what|which|how|who|where|when|can|could|should)\b|(?:^|\s)(?:сколько|какой|какая|какие|какое|кто|кому|кем|где|когда|как|что|можно|может|могут|ли)(?:\s|$)/iu;
|
|
@@ -30933,7 +30944,7 @@ function planQuestion(text2, strict = false) {
|
|
|
30933
30944
|
}
|
|
30934
30945
|
__name(planQuestion, "planQuestion");
|
|
30935
30946
|
|
|
30936
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30947
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/services/messages-combined.js
|
|
30937
30948
|
var COMBINED_DEFAULTS = { candidateDepth: 300, rrfK: 60, rerank: "all", chatCap: 0 };
|
|
30938
30949
|
var tokensOf = /* @__PURE__ */ __name((text2) => normalize(text2).match(/[\p{L}\p{N}\p{Co}\p{M}]+/gu) ?? [], "tokensOf");
|
|
30939
30950
|
var searchCombined = /* @__PURE__ */ __name(async (store, account, request, messenger = {}, options = COMBINED_DEFAULTS) => {
|
|
@@ -31126,7 +31137,7 @@ var signals = /* @__PURE__ */ __name((hit, terms, corrections, execution, mode,
|
|
|
31126
31137
|
return mode === "coverage" ? coverage * 4 : mode === "proximity" ? proximity : mode === "phrase" ? phrase : coverage * 4 + proximity + phrase;
|
|
31127
31138
|
}, "signals");
|
|
31128
31139
|
|
|
31129
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31140
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/services/messages-discovery.js
|
|
31130
31141
|
var MEANING_DEPTH = 100;
|
|
31131
31142
|
var RRF_K2 = 60;
|
|
31132
31143
|
var RERANK_DEPTH = 50;
|
|
@@ -31454,7 +31465,7 @@ var mixedWithReranker = /* @__PURE__ */ __name((head, scores) => {
|
|
|
31454
31465
|
})).sort((a, b) => b.mixed - a.mixed).map(({ hit }) => hit);
|
|
31455
31466
|
}, "mixedWithReranker");
|
|
31456
31467
|
|
|
31457
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31468
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/services/thread-context.js
|
|
31458
31469
|
var THREAD_BOUNDS = { maxHops: 8, maxMessages: 50, maxBytes: 65536, withinMs: 864e5 };
|
|
31459
31470
|
var bytes = /* @__PURE__ */ __name((items, links) => Buffer.byteLength(JSON.stringify({ items, links }), "utf8"), "bytes");
|
|
31460
31471
|
var threadBounds = /* @__PURE__ */ __name((options = {}) => {
|
|
@@ -31653,7 +31664,7 @@ var readThreadContext = /* @__PURE__ */ __name(async (store, account, chat, mess
|
|
|
31653
31664
|
return result;
|
|
31654
31665
|
}, "readThreadContext");
|
|
31655
31666
|
|
|
31656
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31667
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/services/messages-archive-search.js
|
|
31657
31668
|
var SEARCH_FILL_MS = 200;
|
|
31658
31669
|
var statsStore = /* @__PURE__ */ __name(async (store, account, request, messenger = {}) => {
|
|
31659
31670
|
const stop = Date.now() + SEARCH_FILL_MS;
|
|
@@ -31720,12 +31731,12 @@ var accountOf2 = /* @__PURE__ */ __name((hit) => {
|
|
|
31720
31731
|
}, "accountOf");
|
|
31721
31732
|
var keyOf3 = /* @__PURE__ */ __name(({ provider, account }) => `${provider}/${account}`, "keyOf");
|
|
31722
31733
|
|
|
31723
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31734
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/services/pictures.js
|
|
31724
31735
|
import { createHash as createHash10 } from "node:crypto";
|
|
31725
31736
|
import { readFile as readFile2, stat as stat3 } from "node:fs/promises";
|
|
31726
31737
|
import { setTimeout as sleep4 } from "node:timers/promises";
|
|
31727
31738
|
|
|
31728
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31739
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/domain/models.js
|
|
31729
31740
|
var GROUP_SETTINGS = [
|
|
31730
31741
|
"allCanPin",
|
|
31731
31742
|
"onlyAdminsAdd",
|
|
@@ -31739,10 +31750,10 @@ var ADMIN_RIGHTS = ["read", "members", "admins", "info", "pin", "link", "post",
|
|
|
31739
31750
|
var senderIsMe = /* @__PURE__ */ __name((message, account) => message.outgoing === true || message.senderId !== null && String(message.senderId) === account, "senderIsMe");
|
|
31740
31751
|
var MEDIA_KINDS = ["photo", "video", "file", "audio", "link"];
|
|
31741
31752
|
|
|
31742
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31753
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/services/file-download.js
|
|
31743
31754
|
import { createWriteStream, mkdirSync } from "node:fs";
|
|
31744
31755
|
import { link as link3, rm } from "node:fs/promises";
|
|
31745
|
-
import {
|
|
31756
|
+
import { join as join11, resolve as resolve6 } from "node:path";
|
|
31746
31757
|
import { Readable, Transform } from "node:stream";
|
|
31747
31758
|
import { pipeline } from "node:stream/promises";
|
|
31748
31759
|
var refreshedFiles = /* @__PURE__ */ __name((files) => files.flatMap(({ kind, name, position, providerRef }) => providerRef === void 0 || Object.keys(providerRef).length === 0 ? [] : [
|
|
@@ -31816,17 +31827,8 @@ var EXTENSIONS = {
|
|
|
31816
31827
|
"application/pdf": "pdf"
|
|
31817
31828
|
};
|
|
31818
31829
|
var BY_KIND = { photo: "jpg" };
|
|
31819
|
-
var safeName2 = /* @__PURE__ */ __name((name, platform = process.platform) => {
|
|
31820
|
-
let plain2 = name === void 0 ? "" : basename6(name.replaceAll("\\", "/")).replace(/[\p{Cc}---]/gu, "").replace(/^\.+/, "");
|
|
31821
|
-
if (platform === "win32") {
|
|
31822
|
-
plain2 = plain2.replace(/[<>:"|?*]/g, "_").replace(/[. ]+$/, "");
|
|
31823
|
-
if (/^(con|prn|aux|nul|com[1-9]|lpt[1-9])(?:\.|$)/i.test(plain2))
|
|
31824
|
-
return void 0;
|
|
31825
|
-
}
|
|
31826
|
-
return plain2 === "" ? void 0 : plain2;
|
|
31827
|
-
}, "safeName");
|
|
31828
31830
|
var save = /* @__PURE__ */ __name(async (file2, directory2, fallbackName, { unique = false } = {}) => {
|
|
31829
|
-
const own =
|
|
31831
|
+
const own = safeName(file2.name);
|
|
31830
31832
|
const fileName = /* @__PURE__ */ __name(() => {
|
|
31831
31833
|
const extension = EXTENSIONS[file2.mime ?? ""] ?? BY_KIND[file2.kind];
|
|
31832
31834
|
return own ?? (extension ? `${fallbackName}.${extension}` : fallbackName);
|
|
@@ -31862,7 +31864,7 @@ var save = /* @__PURE__ */ __name(async (file2, directory2, fallbackName, { uniq
|
|
|
31862
31864
|
}
|
|
31863
31865
|
}, "save");
|
|
31864
31866
|
|
|
31865
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31867
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/services/pictures.js
|
|
31866
31868
|
var PICTURE_MAX_BYTES = 25 * 1024 * 1024;
|
|
31867
31869
|
var PICTURE_FLOOR = 0.25;
|
|
31868
31870
|
var PAGE5 = 50;
|
|
@@ -31879,7 +31881,7 @@ var picturesService = /* @__PURE__ */ __name((deps) => {
|
|
|
31879
31881
|
const directory2 = imageModelsDirectory(deps.env);
|
|
31880
31882
|
if (!isImageModelInstalled(model2, directory2))
|
|
31881
31883
|
throw new CliError("not_found", missingModel(model2.id), { reason: "model.not-downloaded", model: model2.id });
|
|
31882
|
-
const { openPictureEmbedder } = await import("./embedder-
|
|
31884
|
+
const { openPictureEmbedder } = await import("./embedder-63Z7ZBYG.js");
|
|
31883
31885
|
return openPictureEmbedder(model2, directory2);
|
|
31884
31886
|
}, "open");
|
|
31885
31887
|
const embedder = /* @__PURE__ */ __name(() => {
|
|
@@ -32076,7 +32078,7 @@ var withPictures = /* @__PURE__ */ __name((messages, pictures) => ({
|
|
|
32076
32078
|
}, "search")
|
|
32077
32079
|
}), "withPictures");
|
|
32078
32080
|
|
|
32079
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32081
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/services/messages-meaning.js
|
|
32080
32082
|
var meaningLane = /* @__PURE__ */ __name((deps) => async (question, accounts, shared, within) => {
|
|
32081
32083
|
const target2 = embeddingTarget(deps, DEFAULT_TEXT_MODEL);
|
|
32082
32084
|
const skipped = /* @__PURE__ */ __name((reason, step) => ({
|
|
@@ -32125,7 +32127,7 @@ var meaningLane = /* @__PURE__ */ __name((deps) => async (question, accounts, sh
|
|
|
32125
32127
|
}
|
|
32126
32128
|
}, "meaningLane");
|
|
32127
32129
|
|
|
32128
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32130
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/services/messages-rerank.js
|
|
32129
32131
|
var rerankLane = /* @__PURE__ */ __name((deps) => {
|
|
32130
32132
|
const choice = deps.reranker ?? DEFAULT_RERANK_MODEL;
|
|
32131
32133
|
if (choice === "off")
|
|
@@ -32137,9 +32139,9 @@ var rerankLane = /* @__PURE__ */ __name((deps) => {
|
|
|
32137
32139
|
return { skipped: { reason: `${model.id} is not downloaded`, step: "models.download", model: model.id } };
|
|
32138
32140
|
try {
|
|
32139
32141
|
const warm = deps.embedders;
|
|
32140
|
-
const reranker = warm ? await warm.reranker(`rerank:${model.id}`, async () => (await import("./process-
|
|
32142
|
+
const reranker = warm ? await warm.reranker(`rerank:${model.id}`, async () => (await import("./process-CGLNXFIU.js")).openRerankerProcess(model, directory2, {
|
|
32141
32143
|
threads: defaultThreads()
|
|
32142
|
-
})) : await (await import("./rerank-
|
|
32144
|
+
})) : await (await import("./rerank-23GXWT2V.js")).openReranker(model, directory2);
|
|
32143
32145
|
return {
|
|
32144
32146
|
model: model.id,
|
|
32145
32147
|
score: /* @__PURE__ */ __name((question, passages) => reranker.score(plainWords(question), passages), "score"),
|
|
@@ -32159,17 +32161,17 @@ var rerankLane = /* @__PURE__ */ __name((deps) => {
|
|
|
32159
32161
|
};
|
|
32160
32162
|
}, "rerankLane");
|
|
32161
32163
|
|
|
32162
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32164
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/services/document-pictures.js
|
|
32163
32165
|
var openPictureEmbedderFor = /* @__PURE__ */ __name(async ({ env, command } = {}) => {
|
|
32164
32166
|
const model = imageModel(DEFAULT_IMAGE_MODEL);
|
|
32165
32167
|
const directory2 = imageModelsDirectory(env);
|
|
32166
32168
|
if (!isImageModelInstalled(model, directory2))
|
|
32167
32169
|
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 });
|
|
32168
|
-
const { openPictureEmbedder } = await import("./embedder-
|
|
32170
|
+
const { openPictureEmbedder } = await import("./embedder-63Z7ZBYG.js");
|
|
32169
32171
|
return openPictureEmbedder(model, directory2);
|
|
32170
32172
|
}, "openPictureEmbedderFor");
|
|
32171
32173
|
|
|
32172
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32174
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/services/document-source.js
|
|
32173
32175
|
var documentSource = /* @__PURE__ */ __name((note, accounts, profiles, file2) => {
|
|
32174
32176
|
const metadata = note.frontMatter;
|
|
32175
32177
|
const account = accounts.find(({ id: id2 }) => String(id2) === note.folderId);
|
|
@@ -32184,7 +32186,7 @@ var documentSource = /* @__PURE__ */ __name((note, accounts, profiles, file2) =>
|
|
|
32184
32186
|
};
|
|
32185
32187
|
}, "documentSource");
|
|
32186
32188
|
|
|
32187
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32189
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/services/notes-title-tier.js
|
|
32188
32190
|
var plainQueryWords = /* @__PURE__ */ __name((query) => {
|
|
32189
32191
|
let root;
|
|
32190
32192
|
try {
|
|
@@ -32211,7 +32213,7 @@ var titleTiers = /* @__PURE__ */ __name((hits, words2) => {
|
|
|
32211
32213
|
return [...hits].sort((a, b) => rank(a) - rank(b));
|
|
32212
32214
|
}, "titleTiers");
|
|
32213
32215
|
|
|
32214
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32216
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/services/notes-search.js
|
|
32215
32217
|
var storeQuery = /* @__PURE__ */ __name(async (store, text2, { exact, timezone } = {}) => resolvedQuery(store, parsedQuery(text2, exact), timezone), "storeQuery");
|
|
32216
32218
|
var parsedQuery = /* @__PURE__ */ __name((text2, exact) => validateFields(parseLucene(text2, { ...SEARCH_QUERY, defaultField: exact ? "exact" : "text" })).root, "parsedQuery");
|
|
32217
32219
|
var resolvedQuery = /* @__PURE__ */ __name(async (store, root, timezone) => {
|
|
@@ -32621,7 +32623,7 @@ var searchNotesOf = /* @__PURE__ */ __name(async (store, account, text2, { accou
|
|
|
32621
32623
|
};
|
|
32622
32624
|
}, "searchNotesOf");
|
|
32623
32625
|
|
|
32624
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32626
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/services/events-search.js
|
|
32625
32627
|
var MAX_EVENTS_OFFSET = 1e3;
|
|
32626
32628
|
var iso3 = /* @__PURE__ */ __name((at) => at === null ? null : new Date(at).toISOString(), "iso");
|
|
32627
32629
|
var accountIdsOf = /* @__PURE__ */ __name(async (store, accounts) => {
|
|
@@ -32733,7 +32735,7 @@ var searchEvents = /* @__PURE__ */ __name(async (store, query, { limit = 20, off
|
|
|
32733
32735
|
};
|
|
32734
32736
|
}, "searchEvents");
|
|
32735
32737
|
|
|
32736
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32738
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/services/search-all.js
|
|
32737
32739
|
var RESOURCES_SEARCHED = ["messages", "mail", "notes", "events"];
|
|
32738
32740
|
var skippable = /* @__PURE__ */ __name((error) => error instanceof CliError && (error.code === "validation_error" || error.code === "not_found"), "skippable");
|
|
32739
32741
|
var filtersBeside = /* @__PURE__ */ __name((text2) => {
|
|
@@ -32941,7 +32943,7 @@ var searchAll = /* @__PURE__ */ __name(async (store, account, request, messenger
|
|
|
32941
32943
|
};
|
|
32942
32944
|
}, "searchAll");
|
|
32943
32945
|
|
|
32944
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32946
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/services/search-all-meetings.js
|
|
32945
32947
|
var RESOURCES_SEARCHED_WITH_MEETINGS = [...RESOURCES_SEARCHED, "meetings"];
|
|
32946
32948
|
var whole3 = /* @__PURE__ */ __name((value, minimum, maximum, label) => {
|
|
32947
32949
|
if (!Number.isSafeInteger(value) || value < minimum || value > maximum)
|
|
@@ -33188,7 +33190,7 @@ var searchAllOfSource = /* @__PURE__ */ __name(async (store, account, source, re
|
|
|
33188
33190
|
return { ...found, skipped: [...skipped, ...empty2, ...unnamed, ...found.skipped] };
|
|
33189
33191
|
}, "searchAllOfSource");
|
|
33190
33192
|
|
|
33191
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33193
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/services/server-search.js
|
|
33192
33194
|
var SERVER_SEARCH_KEY = "messages.server-search";
|
|
33193
33195
|
var SERVER_BOUNDS = { timeMs: 5e3, perCall: 100, maxCalls: 3 };
|
|
33194
33196
|
var DEFAULT_BACKEND = "both";
|
|
@@ -33377,7 +33379,7 @@ var searchServer = /* @__PURE__ */ __name(async (deps, request) => {
|
|
|
33377
33379
|
return { report, sources };
|
|
33378
33380
|
}, "searchServer");
|
|
33379
33381
|
|
|
33380
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33382
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/services/messages.js
|
|
33381
33383
|
var DELETE_AT_ONCE = 10;
|
|
33382
33384
|
var messagesService = /* @__PURE__ */ __name((deps) => {
|
|
33383
33385
|
const { guard } = deps;
|
|
@@ -33803,7 +33805,7 @@ var checkMediaOptions = /* @__PURE__ */ __name((messenger, asked, attachments) =
|
|
|
33803
33805
|
throw new CliError("validation_error", `${MEDIA_FLAGS[first2]} needs a --photo or --file`);
|
|
33804
33806
|
}, "checkMediaOptions");
|
|
33805
33807
|
|
|
33806
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33808
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/domain/channel-tags.js
|
|
33807
33809
|
var CHANNEL_TAG_RULES_VERSION = "keywords-v1";
|
|
33808
33810
|
var RULES = {
|
|
33809
33811
|
ai: [/\b(ai|gpt|llm|machine learning|artificial intelligence)\b/iu, /нейросет|искусственн/iu],
|
|
@@ -33818,7 +33820,7 @@ var classifyChannel = /* @__PURE__ */ __name((metadata) => Object.entries(RULES)
|
|
|
33818
33820
|
return fields.length ? [{ tag, score: fields.length / 3, fields }] : [];
|
|
33819
33821
|
}), "classifyChannel");
|
|
33820
33822
|
|
|
33821
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33823
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/services/metadata.js
|
|
33822
33824
|
var metadataService = /* @__PURE__ */ __name((deps) => {
|
|
33823
33825
|
const held = /* @__PURE__ */ __name(async (reference, { includeLeft = false } = {}) => {
|
|
33824
33826
|
const store = await deps.store();
|
|
@@ -33904,7 +33906,7 @@ var metadataService = /* @__PURE__ */ __name((deps) => {
|
|
|
33904
33906
|
};
|
|
33905
33907
|
}, "metadataService");
|
|
33906
33908
|
|
|
33907
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33909
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/moderation/run.js
|
|
33908
33910
|
var FIRST_LOOK_MS = 24 * 36e5;
|
|
33909
33911
|
var moderateWith = /* @__PURE__ */ __name(async (run) => {
|
|
33910
33912
|
const { chatId, title, rules, point, since, dryRun } = run;
|
|
@@ -33941,7 +33943,7 @@ var moderateWith = /* @__PURE__ */ __name(async (run) => {
|
|
|
33941
33943
|
return { chatId, rows, notes };
|
|
33942
33944
|
}, "moderateWith");
|
|
33943
33945
|
|
|
33944
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33946
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/services/moderation.js
|
|
33945
33947
|
var moderationService = /* @__PURE__ */ __name((deps) => {
|
|
33946
33948
|
const file2 = /* @__PURE__ */ __name(() => new ModerationRules(moderationPathFor(deps.messenger.app, deps.profile ?? "default", deps.env ?? process.env)), "file");
|
|
33947
33949
|
const group = /* @__PURE__ */ __name(async (chat) => {
|
|
@@ -34019,7 +34021,7 @@ var moderatorOf = /* @__PURE__ */ __name((adapter, deps) => ({
|
|
|
34019
34021
|
}, "removePerson")
|
|
34020
34022
|
}), "moderatorOf");
|
|
34021
34023
|
|
|
34022
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34024
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/services/private-people.js
|
|
34023
34025
|
var noteItem = /* @__PURE__ */ __name((provider, note) => ({
|
|
34024
34026
|
id: note.id,
|
|
34025
34027
|
contact: formatReference({ type: "contact", provider, id: note.personId }),
|
|
@@ -34063,7 +34065,7 @@ var privatePeopleService = /* @__PURE__ */ __name((deps) => {
|
|
|
34063
34065
|
};
|
|
34064
34066
|
}, "privatePeopleService");
|
|
34065
34067
|
|
|
34066
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34068
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/services/rankings.js
|
|
34067
34069
|
var empty = /* @__PURE__ */ __name(() => ({
|
|
34068
34070
|
total: 0,
|
|
34069
34071
|
population: 0,
|
|
@@ -34319,7 +34321,7 @@ var rankingsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
34319
34321
|
}, "evidence")
|
|
34320
34322
|
}), "rankingsService");
|
|
34321
34323
|
|
|
34322
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34324
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/services/searches.js
|
|
34323
34325
|
var savedSearchItem = /* @__PURE__ */ __name((one) => ({
|
|
34324
34326
|
id: one.id,
|
|
34325
34327
|
name: one.name,
|
|
@@ -34448,7 +34450,7 @@ var searchesService = /* @__PURE__ */ __name((deps) => {
|
|
|
34448
34450
|
};
|
|
34449
34451
|
}, "searchesService");
|
|
34450
34452
|
|
|
34451
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34453
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/services/tags.js
|
|
34452
34454
|
var TAGGING_QUERY = {
|
|
34453
34455
|
entity: "tagging",
|
|
34454
34456
|
backend: "sql",
|
|
@@ -34532,10 +34534,10 @@ var tagsService = /* @__PURE__ */ __name((deps) => {
|
|
|
34532
34534
|
};
|
|
34533
34535
|
}, "tagsService");
|
|
34534
34536
|
|
|
34535
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34536
|
-
var actionOf = /* @__PURE__ */ __name(({ title, closed, pinned, hidden }) => {
|
|
34537
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/services/topics.js
|
|
34538
|
+
var actionOf = /* @__PURE__ */ __name(({ title, closed, pinned, hidden, icon }) => {
|
|
34537
34539
|
const set = [closed, pinned, hidden].filter((one) => one !== void 0).length;
|
|
34538
|
-
if (title !== void 0 || set !== 1)
|
|
34540
|
+
if (title !== void 0 || icon !== void 0 || set !== 1)
|
|
34539
34541
|
return "topic-edit";
|
|
34540
34542
|
if (closed !== void 0)
|
|
34541
34543
|
return closed ? "topic-close" : "topic-reopen";
|
|
@@ -34547,6 +34549,12 @@ var validTitle = /* @__PURE__ */ __name((title) => {
|
|
|
34547
34549
|
if (title.trim() === "" || new TextEncoder().encode(title).byteLength > 128)
|
|
34548
34550
|
throw new CliError("validation_error", "a topic title needs 1\u2013128 UTF-8 bytes");
|
|
34549
34551
|
}, "validTitle");
|
|
34552
|
+
var validIcon = /* @__PURE__ */ __name((icon) => {
|
|
34553
|
+
const emoji = icon.trim();
|
|
34554
|
+
if (emoji === "")
|
|
34555
|
+
throw new CliError("validation_error", "which icon? give an emoji from `topics icons list`");
|
|
34556
|
+
return emoji;
|
|
34557
|
+
}, "validIcon");
|
|
34550
34558
|
var topicsService = /* @__PURE__ */ __name((deps) => {
|
|
34551
34559
|
const online = /* @__PURE__ */ __name(async () => {
|
|
34552
34560
|
if (deps.offline)
|
|
@@ -34562,6 +34570,11 @@ var topicsService = /* @__PURE__ */ __name((deps) => {
|
|
|
34562
34570
|
throw new CliError("validation_error", "which topic? give its id, from `topics list`");
|
|
34563
34571
|
return capability(await deps.connection(), "topic", "show a forum topic")(chat, id2);
|
|
34564
34572
|
}, "show"),
|
|
34573
|
+
icons: /* @__PURE__ */ __name(async () => {
|
|
34574
|
+
if (deps.offline)
|
|
34575
|
+
throw new CliError("validation_error", "`topics icons list` asks the messenger; not with --offline");
|
|
34576
|
+
return capability(await deps.connection(), "topicIcons", "list topic icons")();
|
|
34577
|
+
}, "icons"),
|
|
34565
34578
|
enable: /* @__PURE__ */ __name(async (chat, { upgrade }) => {
|
|
34566
34579
|
const connection = await online();
|
|
34567
34580
|
const probe = capability(connection, "forumState", "configure forum topics");
|
|
@@ -34638,8 +34651,9 @@ var topicsService = /* @__PURE__ */ __name((deps) => {
|
|
|
34638
34651
|
forum: true
|
|
34639
34652
|
};
|
|
34640
34653
|
}, "enable"),
|
|
34641
|
-
create: /* @__PURE__ */ __name(async (chat, title, { sendId }) => {
|
|
34654
|
+
create: /* @__PURE__ */ __name(async (chat, title, { sendId, icon: typedIcon }) => {
|
|
34642
34655
|
validTitle(title);
|
|
34656
|
+
const icon = typedIcon === void 0 ? void 0 : validIcon(typedIcon);
|
|
34643
34657
|
const connection = await online();
|
|
34644
34658
|
const create = capability(connection, "createTopic", "create forum topics");
|
|
34645
34659
|
const probe = capability(connection, "forumState", "read forum settings");
|
|
@@ -34654,7 +34668,7 @@ var topicsService = /* @__PURE__ */ __name((deps) => {
|
|
|
34654
34668
|
action: "topic-create",
|
|
34655
34669
|
key: "topics.create",
|
|
34656
34670
|
length: title.length
|
|
34657
|
-
}, () => create(target2, title, { sendId: id2 }), (done2) => ({ threadId: done2.id, resultChatId: target2 }), async () => {
|
|
34671
|
+
}, () => create(target2, title, { sendId: id2, ...icon === void 0 ? {} : { icon } }), (done2) => ({ threadId: done2.id, resultChatId: target2 }), async () => {
|
|
34658
34672
|
const state = await probe(chatId);
|
|
34659
34673
|
if (!state.forum)
|
|
34660
34674
|
throw new CliError("validation_error", "enable topics first with `topics enable`; creating a topic never upgrades a group");
|
|
@@ -34668,8 +34682,9 @@ var topicsService = /* @__PURE__ */ __name((deps) => {
|
|
|
34668
34682
|
}, "create"),
|
|
34669
34683
|
edit: /* @__PURE__ */ __name(async (chat, typedTopic, change) => {
|
|
34670
34684
|
const { title, closed, pinned, hidden } = change;
|
|
34671
|
-
|
|
34672
|
-
|
|
34685
|
+
const icon = change.icon == null ? change.icon : validIcon(change.icon);
|
|
34686
|
+
if ([title, closed, pinned, hidden, icon].every((one) => one === void 0))
|
|
34687
|
+
throw new CliError("validation_error", "nothing to change \u2014 rename, close, reopen, pin, unpin, hide or give an icon");
|
|
34673
34688
|
if (title !== void 0)
|
|
34674
34689
|
validTitle(title);
|
|
34675
34690
|
const topicId = typedTopic.trim();
|
|
@@ -34684,7 +34699,8 @@ var topicsService = /* @__PURE__ */ __name((deps) => {
|
|
|
34684
34699
|
...title === void 0 ? {} : { title },
|
|
34685
34700
|
...closed === void 0 ? {} : { closed },
|
|
34686
34701
|
...pinned === void 0 ? {} : { pinned },
|
|
34687
|
-
...hidden === void 0 ? {} : { hidden }
|
|
34702
|
+
...hidden === void 0 ? {} : { hidden },
|
|
34703
|
+
...icon === void 0 ? {} : { icon }
|
|
34688
34704
|
}));
|
|
34689
34705
|
return { operationId, chatId, topic };
|
|
34690
34706
|
}, "edit"),
|
|
@@ -34717,7 +34733,7 @@ var topicsService = /* @__PURE__ */ __name((deps) => {
|
|
|
34717
34733
|
};
|
|
34718
34734
|
}, "topicsService");
|
|
34719
34735
|
|
|
34720
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34736
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/services/evidence.js
|
|
34721
34737
|
import { createHash as createHash11, randomUUID as randomUUID5 } from "node:crypto";
|
|
34722
34738
|
var hash2 = /* @__PURE__ */ __name((value) => createHash11("sha256").update(JSON.stringify(value)).digest("hex"), "hash");
|
|
34723
34739
|
var positive = /* @__PURE__ */ __name((value, name, minimum = 1) => {
|
|
@@ -34791,7 +34807,7 @@ var prepareEvidencePacket = /* @__PURE__ */ __name(({ kind, source, page, limits
|
|
|
34791
34807
|
return { ...content, id: randomUUID5(), fingerprint: hash2(content) };
|
|
34792
34808
|
}, "prepareEvidencePacket");
|
|
34793
34809
|
|
|
34794
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34810
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/services/evidence-read.js
|
|
34795
34811
|
var readEvidencePacket = /* @__PURE__ */ __name(async (store, account, { chat, limit, before: before2 }, messenger = {}) => {
|
|
34796
34812
|
if (!Number.isSafeInteger(limit) || limit < 1 || limit > 100)
|
|
34797
34813
|
throw new CliError("validation_error", "evidence message limit must be an integer from 1 to 100");
|
|
@@ -34811,7 +34827,7 @@ var readEvidencePacket = /* @__PURE__ */ __name(async (store, account, { chat, l
|
|
|
34811
34827
|
return { ...packet, nextBeforeId: older && last ? last.id : null };
|
|
34812
34828
|
}, "readEvidencePacket");
|
|
34813
34829
|
|
|
34814
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34830
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/services/meeting-project-discovery.js
|
|
34815
34831
|
var scopeKeys = [
|
|
34816
34832
|
"accountId",
|
|
34817
34833
|
"meetingId",
|
|
@@ -34833,7 +34849,7 @@ var optionKeys = /* @__PURE__ */ new Set([
|
|
|
34833
34849
|
"maxVocabularyReadBytes"
|
|
34834
34850
|
]);
|
|
34835
34851
|
|
|
34836
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34852
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/context/communication-selection.js
|
|
34837
34853
|
var communicationFields = {
|
|
34838
34854
|
sources: pipe(array(strictObject({
|
|
34839
34855
|
id: pipe(string(), regex(/^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$/)),
|
|
@@ -34865,7 +34881,7 @@ var communicationRequest = /* @__PURE__ */ __name((value, preparationAfter) => {
|
|
|
34865
34881
|
return { ...input, after, before: before2 };
|
|
34866
34882
|
}, "communicationRequest");
|
|
34867
34883
|
|
|
34868
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34884
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/services/meeting-preparation-validation.js
|
|
34869
34885
|
var MEETING_PREPARATION_LIMITS = {
|
|
34870
34886
|
meetings: { min: 1, max: 20, default: 5 },
|
|
34871
34887
|
cues: { min: 1, max: 100, default: 10 },
|
|
@@ -34938,7 +34954,7 @@ var validateMeetingPreparationRequest = /* @__PURE__ */ __name((externalId, orig
|
|
|
34938
34954
|
};
|
|
34939
34955
|
}, "validateMeetingPreparationRequest");
|
|
34940
34956
|
|
|
34941
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34957
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/services/meeting-communications-selection.js
|
|
34942
34958
|
var validatePreparationCommunications = /* @__PURE__ */ __name((section, request, after) => {
|
|
34943
34959
|
const fail2 = /* @__PURE__ */ __name(() => {
|
|
34944
34960
|
throw new CliError("invalid_response", "Preparation communications returned another selection or invalid evidence");
|
|
@@ -34986,7 +35002,7 @@ var validatePreparationCommunications = /* @__PURE__ */ __name((section, request
|
|
|
34986
35002
|
}
|
|
34987
35003
|
}, "validatePreparationCommunications");
|
|
34988
35004
|
|
|
34989
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35005
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/services/package-upgrade.js
|
|
34990
35006
|
var upgradePackage = /* @__PURE__ */ __name(async ({ current, command, packageName, check: check2 }, ports) => {
|
|
34991
35007
|
const installer = ports.installer();
|
|
34992
35008
|
const argv = updateCommand(installer, packageName);
|
|
@@ -35051,7 +35067,7 @@ var dayAfter = /* @__PURE__ */ __name((published) => {
|
|
|
35051
35067
|
return Number.isNaN(time) ? null : new Date(time + 24 * 60 * 60 * 1e3).toISOString();
|
|
35052
35068
|
}, "dayAfter");
|
|
35053
35069
|
|
|
35054
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35070
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/services/index.js
|
|
35055
35071
|
var servicesFor = /* @__PURE__ */ __name((deps) => {
|
|
35056
35072
|
const pictures = picturesService(deps);
|
|
35057
35073
|
const base = {
|
|
@@ -35087,7 +35103,7 @@ var servicesFor = /* @__PURE__ */ __name((deps) => {
|
|
|
35087
35103
|
return deps.messenger.services ? { ...base, ...deps.messenger.services(base, deps) } : base;
|
|
35088
35104
|
}, "servicesFor");
|
|
35089
35105
|
|
|
35090
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35106
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/background/relay.js
|
|
35091
35107
|
import { createHash as createHash12 } from "node:crypto";
|
|
35092
35108
|
import { chmodSync, lstatSync, mkdirSync as mkdirSync2, rmSync } from "node:fs";
|
|
35093
35109
|
import { createConnection, createServer } from "node:net";
|
|
@@ -35308,7 +35324,7 @@ var relayCommand = /* @__PURE__ */ __name((path, request, options) => new Promis
|
|
|
35308
35324
|
}, () => finish({ error: stopped() }));
|
|
35309
35325
|
}), "relayCommand");
|
|
35310
35326
|
|
|
35311
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35327
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-relay.js
|
|
35312
35328
|
var lentConnection = /* @__PURE__ */ __name((connection, watchers) => throughWrapper(connection, {
|
|
35313
35329
|
close: /* @__PURE__ */ __name(async () => {
|
|
35314
35330
|
}, "close"),
|