@wirecat/tg-cli 0.110.0 → 0.111.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bin/tg.js +2 -2
- package/dist/bundle/{adapter-JWUCHTXU.js → adapter-WFC2JAD4.js} +38 -38
- package/dist/bundle/{all-profiles-OMRCKP54.js → all-profiles-FEUSGHT7.js} +5 -5
- package/dist/bundle/{anthropic-WXFHH74P.js → anthropic-O646SJIJ.js} +3 -3
- package/dist/bundle/{app-server-ILIPNO6T.js → app-server-7P23Y45A.js} +35 -35
- package/dist/bundle/{bot-api-KV765AZK.js → bot-api-WTJCL6VF.js} +39 -39
- package/dist/bundle/{bot-history-3P6EIM5L.js → bot-history-5J2Q4SPC.js} +10 -10
- package/dist/bundle/{bun-MJOYPPEN.js → bun-KUKVEKDW.js} +2 -2
- package/dist/bundle/{bun-sqlite-GFRVRRDZ.js → bun-sqlite-2G5TXHYE.js} +2 -2
- package/dist/bundle/{chunk-4BMXELWN.js → chunk-2K6IGVSI.js} +4 -4
- package/dist/bundle/{chunk-3L2JTAVD.js → chunk-2ZH3PUQX.js} +1 -1
- package/dist/bundle/{chunk-6WTLP2SI.js → chunk-33HEHPIK.js} +7 -7
- package/dist/bundle/{chunk-4YOPRYEY.js → chunk-3BD24JYK.js} +96 -92
- package/dist/bundle/{chunk-54CWOD7V.js → chunk-3WUTBGZE.js} +4 -4
- package/dist/bundle/{chunk-XLNYDJKG.js → chunk-43ZFY6TW.js} +1 -1
- package/dist/bundle/{chunk-Q35J5LCO.js → chunk-5FJQG5UZ.js} +9 -8
- package/dist/bundle/{chunk-3XTMVGTS.js → chunk-5ZPLOYTP.js} +205 -204
- package/dist/bundle/{chunk-YWSNUUW5.js → chunk-7665YBJ7.js} +5 -5
- package/dist/bundle/{chunk-VM7I5VKX.js → chunk-7GQLD5TJ.js} +1 -1
- package/dist/bundle/{chunk-NFBOZT7H.js → chunk-AUWYMMYL.js} +3 -3
- package/dist/bundle/{chunk-TJA3BWY3.js → chunk-BNQOUCL2.js} +1 -1
- package/dist/bundle/{chunk-L3YDXUDK.js → chunk-CJUSP5X2.js} +2 -2
- package/dist/bundle/{chunk-TDQVVXPF.js → chunk-COHMFCHD.js} +11 -11
- package/dist/bundle/{chunk-BYOEVYY2.js → chunk-DEG4JJHG.js} +267 -258
- package/dist/bundle/{chunk-YPLL3Q3M.js → chunk-DREEXESG.js} +86 -50
- package/dist/bundle/{chunk-4GOF43MW.js → chunk-HN6ZMUAS.js} +1 -1
- package/dist/bundle/{chunk-SD5J5T7M.js → chunk-ITSSCYLP.js} +9 -9
- package/dist/bundle/{chunk-AXNBGLO5.js → chunk-J2Z5E7TO.js} +1 -1
- package/dist/bundle/{chunk-6KESAYMZ.js → chunk-J4QVXR5I.js} +2 -2
- package/dist/bundle/{chunk-KLOFBUXA.js → chunk-K457FHD4.js} +31 -21
- package/dist/bundle/{chunk-RXWG7OWT.js → chunk-KE47Y4PW.js} +839 -440
- package/dist/bundle/{chunk-QRH2AWBZ.js → chunk-KLHLWKWC.js} +59 -47
- package/dist/bundle/{chunk-GPIORQAD.js → chunk-LLAZSGS7.js} +20 -20
- package/dist/bundle/{chunk-F7RWNBC2.js → chunk-MSGYLWCH.js} +1 -1
- package/dist/bundle/{chunk-YPEAEEHF.js → chunk-NIKYFRDQ.js} +1 -1
- package/dist/bundle/{chunk-4I6HTOCM.js → chunk-NQAV7U7C.js} +1 -1
- package/dist/bundle/{chunk-HCAYTAJN.js → chunk-OYVDWHP5.js} +1 -1
- package/dist/bundle/{chunk-RARYRHQA.js → chunk-PNUHAHTF.js} +1 -1
- package/dist/bundle/{chunk-MZRD776E.js → chunk-PQGWEFJ2.js} +2 -2
- package/dist/bundle/{chunk-NDT22GBK.js → chunk-QAC6Z675.js} +1 -1
- package/dist/bundle/{chunk-5CMOXHQS.js → chunk-QEAMO2TS.js} +6 -6
- package/dist/bundle/{chunk-7LZBMZQM.js → chunk-QLLPZWYZ.js} +3 -3
- package/dist/bundle/{chunk-3KOF5T4N.js → chunk-QVM2HKJP.js} +4 -4
- package/dist/bundle/{chunk-32HEOKI2.js → chunk-T6DSAROY.js} +11 -9
- package/dist/bundle/{chunk-SLAPUEMZ.js → chunk-TWZTQHP6.js} +5 -5
- package/dist/bundle/{chunk-W3B6EEZU.js → chunk-UDYCZ5KB.js} +1 -1
- package/dist/bundle/{chunk-M3XIME74.js → chunk-UFIUMPXP.js} +3 -3
- package/dist/bundle/{chunk-AZYVTDAE.js → chunk-UMUJHC4M.js} +2 -2
- package/dist/bundle/{chunk-7ABA4EXC.js → chunk-UPRYEDAV.js} +2 -2
- package/dist/bundle/{chunk-FYAHTTOB.js → chunk-VIEVOF3O.js} +8 -8
- package/dist/bundle/{chunk-VOBMR7E5.js → chunk-WDRNVSWF.js} +42 -42
- package/dist/bundle/{chunk-2YWQEG2P.js → chunk-XIRASTVS.js} +10 -10
- package/dist/bundle/{chunk-F24EAGOU.js → chunk-XXOJ7PQY.js} +26 -26
- package/dist/bundle/{chunk-MXIBRT6W.js → chunk-YFK3DNNP.js} +4 -4
- package/dist/bundle/{chunk-RSZEEWOW.js → chunk-YG4BO7N3.js} +1 -1
- package/dist/bundle/{chunk-5ASW5BNM.js → chunk-ZCHC7TYO.js} +11 -11
- package/dist/bundle/{chunk-JDOSIWPN.js → chunk-ZCV4UEVH.js} +2 -2
- package/dist/bundle/{command-contract-TNSW7W6G.js → command-contract-JCRVVL7P.js} +12 -12
- package/dist/bundle/{decode-3KBXZCFM.js → decode-QJNVAAKJ.js} +2 -2
- package/dist/bundle/{echarts-24TVPFGC.js → echarts-2EDY7OUX.js} +2 -2
- package/dist/bundle/{embed-3BDPZ4Q7.js → embed-PZSXOQJO.js} +3 -3
- package/dist/bundle/{embedder-EMVDEZFR.js → embedder-O4EGMMUU.js} +6 -6
- package/dist/bundle/{entry-NQD6Z2BM.js → entry-DVLMQM6J.js} +3 -3
- package/dist/bundle/{first-run-ZBIO6C67.js → first-run-J67KTUWA.js} +5 -5
- package/dist/bundle/{first-screen-4HRCG7OX.js → first-screen-PYEE5NMQ.js} +13 -13
- package/dist/bundle/{identity-EDGOOTOM.js → identity-DSYY4FLQ.js} +1 -1
- package/dist/bundle/{instructions-N2WVMNFZ.js → instructions-O535XB2L.js} +1 -1
- package/dist/bundle/{node-VBZAZHUS.js → node-S3VEQNTE.js} +2 -2
- package/dist/bundle/{node-sqlite-C3V64OAL.js → node-sqlite-3DNWF2BW.js} +2 -2
- package/dist/bundle/{oauth-NZXELYDA.js → oauth-IU2RAZ3D.js} +4 -4
- package/dist/bundle/{open-2XRUGMV7.js → open-M2IPPXMI.js} +1 -1
- package/dist/bundle/{openai-OLGTN3ZB.js → openai-GDI7HISL.js} +10 -10
- package/dist/bundle/{process-CASPZ2DH.js → process-3IGMEATV.js} +1 -1
- package/dist/bundle/{program-QPQDSGYA.js → program-P7YPHVLD.js} +41 -41
- package/dist/bundle/{prompt-ESZL7SGX.js → prompt-S6R7IHDK.js} +2 -2
- package/dist/bundle/{recognize-LQ7QOG4T.js → recognize-PFZRQ3P4.js} +1 -1
- package/dist/bundle/{remote-34XP4EDN.js → remote-Q37V7LUX.js} +4 -4
- package/dist/bundle/{rerank-7F6NLBCW.js → rerank-V5YQQQAM.js} +4 -4
- package/dist/bundle/{serve-M6TTKXI4.js → serve-5CAD2UVG.js} +6 -6
- package/dist/bundle/{server-GLZ5M7PE.js → server-R6YAO2SG.js} +27 -27
- package/dist/bundle/server-RUQLAWWS.js +56 -0
- package/dist/bundle/{state-UKKPLMHS.js → state-Y3A2NEM3.js} +3 -3
- package/dist/bundle/{store-J2MBIDJK.js → store-H5K32CNI.js} +7 -7
- package/dist/bundle/store-maintenance-command-QZDC4WKW.js +45 -0
- package/dist/bundle/tg.js +2 -2
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +2 -2
- package/skills/tg-cli/SKILL.md +14 -9
- package/dist/bundle/server-KOW7OKE2.js +0 -56
- package/dist/bundle/store-maintenance-command-64B57C3U.js +0 -45
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
sameOrdinaryFile,
|
|
8
8
|
syncDirectory,
|
|
9
9
|
writeFileAtomic
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-ZCHC7TYO.js";
|
|
11
11
|
import {
|
|
12
12
|
Command,
|
|
13
13
|
DEFAULT_IMAGE_MODEL,
|
|
@@ -46,23 +46,23 @@ import {
|
|
|
46
46
|
typedCommand,
|
|
47
47
|
vectorModelKey,
|
|
48
48
|
withAttempt
|
|
49
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-KLHLWKWC.js";
|
|
50
50
|
import {
|
|
51
51
|
isCliFailure
|
|
52
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-5FJQG5UZ.js";
|
|
53
53
|
import {
|
|
54
54
|
isNewer,
|
|
55
55
|
updateCommand
|
|
56
56
|
} from "./chunk-ABVHA4K6.js";
|
|
57
57
|
import {
|
|
58
58
|
readOnlyLockOf
|
|
59
|
-
} from "./chunk-
|
|
59
|
+
} from "./chunk-43ZFY6TW.js";
|
|
60
60
|
import {
|
|
61
61
|
MAX_MODEL_IMAGE_BYTES
|
|
62
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-QAC6Z675.js";
|
|
63
63
|
import {
|
|
64
64
|
remoteKey
|
|
65
|
-
} from "./chunk-
|
|
65
|
+
} from "./chunk-UMUJHC4M.js";
|
|
66
66
|
import {
|
|
67
67
|
Unzip,
|
|
68
68
|
UnzipInflate,
|
|
@@ -73,11 +73,11 @@ import {
|
|
|
73
73
|
placedText,
|
|
74
74
|
runEmbedders,
|
|
75
75
|
textModelsDirectory
|
|
76
|
-
} from "./chunk-
|
|
76
|
+
} from "./chunk-7665YBJ7.js";
|
|
77
77
|
import {
|
|
78
78
|
installFiles,
|
|
79
79
|
megabytes
|
|
80
|
-
} from "./chunk-
|
|
80
|
+
} from "./chunk-AUWYMMYL.js";
|
|
81
81
|
import {
|
|
82
82
|
AGENDA_COLUMNS,
|
|
83
83
|
CHAT_COLUMNS,
|
|
@@ -149,7 +149,7 @@ import {
|
|
|
149
149
|
threadConversation,
|
|
150
150
|
validateAst,
|
|
151
151
|
validateFields
|
|
152
|
-
} from "./chunk-
|
|
152
|
+
} from "./chunk-KE47Y4PW.js";
|
|
153
153
|
import {
|
|
154
154
|
EVENT_QUERY,
|
|
155
155
|
MEETING_PROJECT_EVIDENCE_QUERY,
|
|
@@ -170,6 +170,7 @@ import {
|
|
|
170
170
|
formatMeetingReference,
|
|
171
171
|
implicitTextTerms,
|
|
172
172
|
importFiles,
|
|
173
|
+
isClosedState,
|
|
173
174
|
listed,
|
|
174
175
|
meetingCueFingerprint,
|
|
175
176
|
meetingDetailsAnswer,
|
|
@@ -193,21 +194,21 @@ import {
|
|
|
193
194
|
validateQuery,
|
|
194
195
|
walkQuery,
|
|
195
196
|
zonedMoment
|
|
196
|
-
} from "./chunk-
|
|
197
|
+
} from "./chunk-DREEXESG.js";
|
|
197
198
|
import {
|
|
198
199
|
DEFAULT_STEMMERS,
|
|
199
200
|
createStemmer,
|
|
200
201
|
fold,
|
|
201
202
|
normalize
|
|
202
|
-
} from "./chunk-
|
|
203
|
+
} from "./chunk-33HEHPIK.js";
|
|
203
204
|
import {
|
|
204
205
|
DEFAULT_TASK_CATEGORIES,
|
|
205
206
|
FALLBACK_CATEGORY
|
|
206
|
-
} from "./chunk-
|
|
207
|
+
} from "./chunk-3WUTBGZE.js";
|
|
207
208
|
import {
|
|
208
209
|
storePath,
|
|
209
210
|
wirecatDirectory
|
|
210
|
-
} from "./chunk-
|
|
211
|
+
} from "./chunk-7GQLD5TJ.js";
|
|
211
212
|
import {
|
|
212
213
|
resolvePaths,
|
|
213
214
|
singleLine,
|
|
@@ -16858,7 +16859,7 @@ var require_lib3 = __commonJS({
|
|
|
16858
16859
|
}
|
|
16859
16860
|
});
|
|
16860
16861
|
|
|
16861
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16862
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/conversations/link.js
|
|
16862
16863
|
var RULES_VERSION = 5;
|
|
16863
16864
|
var LOOK_BACK = 50;
|
|
16864
16865
|
var SAME_SENDER_WITHIN = 10;
|
|
@@ -16948,15 +16949,15 @@ var latest = /* @__PURE__ */ __name((window3, matches) => {
|
|
|
16948
16949
|
var sameThread = /* @__PURE__ */ __name((a, b) => a.threadId === b.threadId, "sameThread");
|
|
16949
16950
|
var link = /* @__PURE__ */ __name((message, parentId, source, kind, confidence, method) => ({ messageId: message.id, parentId, source, kind, confidence, method }), "link");
|
|
16950
16951
|
|
|
16951
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16952
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/ports/traits.js
|
|
16952
16953
|
var syncsOneChat = /* @__PURE__ */ __name((messenger) => messenger.history !== "store" || messenger.historyOnDemand === true, "syncsOneChat");
|
|
16953
16954
|
|
|
16954
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16955
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/sends/send-id.js
|
|
16955
16956
|
import { randomBytes } from "node:crypto";
|
|
16956
16957
|
var newSendId = /* @__PURE__ */ __name(() => randomBytes(8).readBigInt64BE().toString(), "newSendId");
|
|
16957
16958
|
var newOperationId = newSendId;
|
|
16958
16959
|
|
|
16959
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16960
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/sends/upload.js
|
|
16960
16961
|
import { openAsBlob, realpathSync } from "node:fs";
|
|
16961
16962
|
import { open, stat } from "node:fs/promises";
|
|
16962
16963
|
import { basename, dirname, extname, isAbsolute, relative, resolve, sep } from "node:path";
|
|
@@ -17177,7 +17178,7 @@ var readStickerFile = /* @__PURE__ */ __name(async (path, maxBytes, read) => {
|
|
|
17177
17178
|
return { name, source };
|
|
17178
17179
|
}, "readStickerFile");
|
|
17179
17180
|
|
|
17180
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17181
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/cli/messenger/lacks.js
|
|
17181
17182
|
var COMMAND_NEEDS = {
|
|
17182
17183
|
"account update": ["updateProfile", "change the profile"],
|
|
17183
17184
|
"account sessions list": ["sessions", "list the account's sessions"],
|
|
@@ -17227,7 +17228,7 @@ var hideNever = /* @__PURE__ */ __name((messenger, group) => {
|
|
|
17227
17228
|
return group;
|
|
17228
17229
|
}, "hideNever");
|
|
17229
17230
|
|
|
17230
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17231
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/services/members-audit.js
|
|
17231
17232
|
var AUDIT_PAGE = 200;
|
|
17232
17233
|
var AUDIT_BUDGET = 10;
|
|
17233
17234
|
var AUDIT_PAUSE_MS = 1e3;
|
|
@@ -17307,7 +17308,7 @@ var burstJoins = /* @__PURE__ */ __name((members) => {
|
|
|
17307
17308
|
return found;
|
|
17308
17309
|
}, "burstJoins");
|
|
17309
17310
|
|
|
17310
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17311
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/meetings/cli/query-options.js
|
|
17311
17312
|
var queryWordsAfterOptions = /* @__PURE__ */ __name((command) => {
|
|
17312
17313
|
command.allowUnknownOption();
|
|
17313
17314
|
const parse = command.parseOptions.bind(command);
|
|
@@ -17327,7 +17328,7 @@ var queryWordsAfterOptions = /* @__PURE__ */ __name((command) => {
|
|
|
17327
17328
|
return command;
|
|
17328
17329
|
}, "queryWordsAfterOptions");
|
|
17329
17330
|
|
|
17330
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17331
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/meetings/cli/passage.js
|
|
17331
17332
|
var count = /* @__PURE__ */ __name((value) => {
|
|
17332
17333
|
if (!/^(0|[1-9]\d*)$/.test(value) || !Number.isSafeInteger(Number(value)))
|
|
17333
17334
|
throw new CliError("validation_error", "expected a nonnegative safe integer");
|
|
@@ -17369,7 +17370,7 @@ var addMeetingPassageCommandDefinition = /* @__PURE__ */ __name((program, deps)
|
|
|
17369
17370
|
var createMeetingPassageCommand = sharedCommand(createMeetingPassageCommandDefinition);
|
|
17370
17371
|
var addMeetingPassageCommand = sharedCommand(addMeetingPassageCommandDefinition);
|
|
17371
17372
|
|
|
17372
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17373
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/meetings/cli/project-evidence.js
|
|
17373
17374
|
var integer2 = /* @__PURE__ */ __name((value) => {
|
|
17374
17375
|
if (!/^[1-9]\d*$/.test(value) || !Number.isSafeInteger(Number(value)))
|
|
17375
17376
|
throw new CliError("validation_error", "expected a positive safe integer");
|
|
@@ -17392,7 +17393,7 @@ ${fieldsHelp(MEETING_PROJECT_EVIDENCE_QUERY)}`).option("--limit <n>", "hits in o
|
|
|
17392
17393
|
}, "addMeetingProjectEvidenceCommandDefinition");
|
|
17393
17394
|
var addMeetingProjectEvidenceCommand = sharedCommand(addMeetingProjectEvidenceCommandDefinition);
|
|
17394
17395
|
|
|
17395
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17396
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/meetings/cli/search.js
|
|
17396
17397
|
var ZONED = /(?:Z|[+-]\d{2}:?\d{2})$/i;
|
|
17397
17398
|
var moment = /* @__PURE__ */ __name((flag, end, readIn) => (value) => {
|
|
17398
17399
|
const zone = timezoneOf();
|
|
@@ -17478,7 +17479,7 @@ var addMeetingSearchCommandDefinition = /* @__PURE__ */ __name((program, deps) =
|
|
|
17478
17479
|
var createMeetingSearchCommand = sharedCommand(createMeetingSearchCommandDefinition);
|
|
17479
17480
|
var addMeetingSearchCommand = sharedCommand(addMeetingSearchCommandDefinition);
|
|
17480
17481
|
|
|
17481
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17482
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/meetings/cli/index.js
|
|
17482
17483
|
var integer4 = /* @__PURE__ */ __name((text2) => {
|
|
17483
17484
|
if (!/^[1-9]\d*$/.test(text2) || !Number.isSafeInteger(Number(text2)))
|
|
17484
17485
|
throw new InvalidArgumentError("expected a positive integer");
|
|
@@ -17598,7 +17599,7 @@ ${fieldsHelp(EVENT_QUERY, MEETING_QUERY_GUIDE)}`);
|
|
|
17598
17599
|
}, "addMeetingCommandsDefinition");
|
|
17599
17600
|
var addMeetingCommands = sharedCommand(addMeetingCommandsDefinition);
|
|
17600
17601
|
|
|
17601
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17602
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/cli/list-query.js
|
|
17602
17603
|
var LIST_QUERY_GUIDE = "https://github.com/WireCatLabs/cli-core/blob/main/docs/search/query-language.md";
|
|
17603
17604
|
var withQuery = /* @__PURE__ */ __name((command, registry) => {
|
|
17604
17605
|
const query = defineQuery(registry);
|
|
@@ -17615,9 +17616,9 @@ var unfilteredQuery = /* @__PURE__ */ __name((entity, schema2) => ({
|
|
|
17615
17616
|
backend: "native",
|
|
17616
17617
|
fields: queryFieldsOf(schema2, {})
|
|
17617
17618
|
}), "unfilteredQuery");
|
|
17618
|
-
var listQuery = /* @__PURE__ */ __name((text2, registry, command) => {
|
|
17619
|
+
var listQuery = /* @__PURE__ */ __name((text2, registry, command, { defaultField = "none" } = {}) => {
|
|
17619
17620
|
const context2 = { command, guide: LIST_QUERY_GUIDE };
|
|
17620
|
-
const typed = text2.trim() === "" ? void 0 : parseLucene(text2, { defaultField
|
|
17621
|
+
const typed = text2.trim() === "" ? void 0 : parseLucene(text2, { defaultField, ...context2 });
|
|
17621
17622
|
if (typed)
|
|
17622
17623
|
validateQuery(typed, registry, context2);
|
|
17623
17624
|
const named2 = typed ? fieldsNamed(typed) : /* @__PURE__ */ new Set();
|
|
@@ -17714,7 +17715,7 @@ var termField = /* @__PURE__ */ __name((name, type, example, more = {}) => nativ
|
|
|
17714
17715
|
var queryHelp = /* @__PURE__ */ __name((registry) => `
|
|
17715
17716
|
${fieldsHelp(registry, LIST_QUERY_GUIDE)}`, "queryHelp");
|
|
17716
17717
|
|
|
17717
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17718
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/cli/paging.js
|
|
17718
17719
|
var positiveCount = /* @__PURE__ */ __name((flag) => (value) => {
|
|
17719
17720
|
if (!/^\d+$/.test(value.trim()) || Number(value) < 1)
|
|
17720
17721
|
throw new CliError("validation_error", `${flag} takes a whole number from 1 upwards, not "${value}"`);
|
|
@@ -17723,7 +17724,7 @@ var positiveCount = /* @__PURE__ */ __name((flag) => (value) => {
|
|
|
17723
17724
|
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");
|
|
17724
17725
|
var window = /* @__PURE__ */ __name(({ limit, page, all }) => all ? { offset: 0 } : { limit, offset: (page - 1) * limit }, "window");
|
|
17725
17726
|
|
|
17726
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17727
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/cli/messenger/chat-answers.js
|
|
17727
17728
|
var defined = /* @__PURE__ */ __name((record2) => Object.fromEntries(Object.entries(record2).filter(([, value]) => value !== void 0)), "defined");
|
|
17728
17729
|
var chatRef = /* @__PURE__ */ __name((account, chat) => formatReference({ type: "chat", provider: account.provider, account: account.account, chat }), "chatRef");
|
|
17729
17730
|
var settingsOf = /* @__PURE__ */ __name((settings) => defined({
|
|
@@ -17985,7 +17986,7 @@ var sessionAnswer = /* @__PURE__ */ __name(({ current, client, device, location,
|
|
|
17985
17986
|
...createdAt === void 0 ? {} : { created_at: createdAt }
|
|
17986
17987
|
}), "sessionAnswer");
|
|
17987
17988
|
|
|
17988
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17989
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/services/deps.js
|
|
17989
17990
|
var accountStore = /* @__PURE__ */ __name(async (deps) => (await deps.store()).forAccount(await deps.account()), "accountStore");
|
|
17990
17991
|
var crossAccount = /* @__PURE__ */ __name((deps, _reason) => deps.store(), "crossAccount");
|
|
17991
17992
|
var NO_LOCAL_STORE = "this answer comes from the messenger, not from the local store";
|
|
@@ -18050,7 +18051,7 @@ var storedDeps = /* @__PURE__ */ __name((messenger, store, account, guard) => ({
|
|
|
18050
18051
|
}), "storedDeps");
|
|
18051
18052
|
var storeModeDeps = /* @__PURE__ */ __name((messenger, store, account, guard) => ({ ...storedDeps(messenger, store, account, guard), offline: false, reads: "store" }), "storeModeDeps");
|
|
18052
18053
|
|
|
18053
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18054
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/resolve.js
|
|
18054
18055
|
var isId = /* @__PURE__ */ __name((reference) => /^-?\d+$/.test(reference.trim()), "isId");
|
|
18055
18056
|
var foldName = /* @__PURE__ */ __name((name) => name.normalize("NFC").replace(/[\uFE0E\uFE0F\u200D]/g, "").toLowerCase(), "foldName");
|
|
18056
18057
|
var pickChat = /* @__PURE__ */ __name((reference, chats) => {
|
|
@@ -18088,7 +18089,7 @@ ${lines3}`, { candidates });
|
|
|
18088
18089
|
}, "ambiguous");
|
|
18089
18090
|
var isPresent = /* @__PURE__ */ __name((value) => value !== null && value !== void 0, "isPresent");
|
|
18090
18091
|
|
|
18091
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18092
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/ports/messenger.js
|
|
18092
18093
|
var throughWrapper = /* @__PURE__ */ __name((inner, handled, wrap = (_, call) => call) => new Proxy(handled, {
|
|
18093
18094
|
get: /* @__PURE__ */ __name((own, key) => {
|
|
18094
18095
|
if (key in own)
|
|
@@ -18105,7 +18106,7 @@ var capability = /* @__PURE__ */ __name((adapter, method, what) => {
|
|
|
18105
18106
|
return found.bind(adapter);
|
|
18106
18107
|
}, "capability");
|
|
18107
18108
|
|
|
18108
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18109
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/services/moment.js
|
|
18109
18110
|
var AGO = /^(\d+)(m|h|d)$/;
|
|
18110
18111
|
var AGO_MS = { m: 6e4, h: 36e5, d: 864e5 };
|
|
18111
18112
|
var DATE = /^\d{4}-\d{2}-\d{2}/;
|
|
@@ -18145,7 +18146,7 @@ var dateWindow = /* @__PURE__ */ __name(({ sinceTime, untilTime, zone, now = Dat
|
|
|
18145
18146
|
};
|
|
18146
18147
|
}, "dateWindow");
|
|
18147
18148
|
|
|
18148
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18149
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/services/questions.js
|
|
18149
18150
|
var LINKS = /https?:\/\/\S+/g;
|
|
18150
18151
|
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");
|
|
18151
18152
|
var questions = /* @__PURE__ */ __name((messages, { answerers: answerers2 }) => {
|
|
@@ -18172,7 +18173,7 @@ var questions = /* @__PURE__ */ __name((messages, { answerers: answerers2 }) =>
|
|
|
18172
18173
|
});
|
|
18173
18174
|
}, "questions");
|
|
18174
18175
|
|
|
18175
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18176
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/services/task-categories.js
|
|
18176
18177
|
var names = /* @__PURE__ */ __name((categories) => categories.map(({ name }) => name).join(", "), "names");
|
|
18177
18178
|
var taskCategoryOf = /* @__PURE__ */ __name((categories = DEFAULT_TASK_CATEGORIES, flag = "--category") => (typed) => {
|
|
18178
18179
|
const name = typed.trim().toLowerCase();
|
|
@@ -18222,7 +18223,7 @@ var categorize = /* @__PURE__ */ __name((text2, categories = DEFAULT_TASK_CATEGO
|
|
|
18222
18223
|
return best.name;
|
|
18223
18224
|
}, "categorize");
|
|
18224
18225
|
|
|
18225
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18226
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/services/task-rules.js
|
|
18226
18227
|
var taskAccount = /* @__PURE__ */ __name(({ provider, account }) => `${provider}:${account}`, "taskAccount");
|
|
18227
18228
|
var RULES_IN = {
|
|
18228
18229
|
dialog: "all",
|
|
@@ -18264,7 +18265,7 @@ var applyTaskRules = /* @__PURE__ */ __name(async (review, { store, account, now
|
|
|
18264
18265
|
}, "open");
|
|
18265
18266
|
const close = /* @__PURE__ */ __name(async (message, kind, answer) => {
|
|
18266
18267
|
for (const task2 of await store.findBySource(owner, sourceOf2(message))) {
|
|
18267
|
-
if (task2.kind !== kind || task2.state
|
|
18268
|
+
if (task2.kind !== kind || isClosedState(task2.state))
|
|
18268
18269
|
continue;
|
|
18269
18270
|
result.closed += 1;
|
|
18270
18271
|
if (dryRun)
|
|
@@ -18428,7 +18429,7 @@ var applyTaskRulesToChats = /* @__PURE__ */ __name(async (store, account, chatId
|
|
|
18428
18429
|
return passes;
|
|
18429
18430
|
}, "applyTaskRulesToChats");
|
|
18430
18431
|
|
|
18431
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18432
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/botcheck/check.js
|
|
18432
18433
|
var DAY_MS = 864e5;
|
|
18433
18434
|
var NEW_DAYS = 30;
|
|
18434
18435
|
var SAME_TEXT_MIN = 20;
|
|
@@ -18505,7 +18506,7 @@ var scorePerson = /* @__PURE__ */ __name(({ subject, provider, activity, photos,
|
|
|
18505
18506
|
};
|
|
18506
18507
|
}, "scorePerson");
|
|
18507
18508
|
|
|
18508
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18509
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/botcheck/registries.js
|
|
18509
18510
|
var REGISTRIES = {
|
|
18510
18511
|
cas: { title: "Combot Anti-Spam (CAS)", docs: "https://cas.chat/api" },
|
|
18511
18512
|
lols: { title: "lols.bot", docs: "https://api.lols.bot/lols-bot.json" }
|
|
@@ -18590,7 +18591,7 @@ var notCovered = /* @__PURE__ */ __name((messenger, now = /* @__PURE__ */ new Da
|
|
|
18590
18591
|
detail: `lists Telegram accounts only, not ${messenger} ones`
|
|
18591
18592
|
})), "notCovered");
|
|
18592
18593
|
|
|
18593
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18594
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/botcheck/service.js
|
|
18594
18595
|
var ACTIVITY_MESSAGES = 1e3;
|
|
18595
18596
|
var botCheckService = /* @__PURE__ */ __name((deps) => {
|
|
18596
18597
|
const subjectOf = /* @__PURE__ */ __name(async (reference) => {
|
|
@@ -18678,7 +18679,7 @@ var botCheckService = /* @__PURE__ */ __name((deps) => {
|
|
|
18678
18679
|
};
|
|
18679
18680
|
}, "botCheckService");
|
|
18680
18681
|
|
|
18681
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18682
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/domain/thread.js
|
|
18682
18683
|
var threadIdOf = /* @__PURE__ */ __name((value) => {
|
|
18683
18684
|
if (value === void 0)
|
|
18684
18685
|
return void 0;
|
|
@@ -18688,7 +18689,7 @@ var threadIdOf = /* @__PURE__ */ __name((value) => {
|
|
|
18688
18689
|
return id2;
|
|
18689
18690
|
}, "threadIdOf");
|
|
18690
18691
|
|
|
18691
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18692
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/services/chat-stats.js
|
|
18692
18693
|
var TOP_POSTS = 5;
|
|
18693
18694
|
var JOINS = /* @__PURE__ */ new Set(["join", "add"]);
|
|
18694
18695
|
var LEAVES = /* @__PURE__ */ new Set(["leave", "remove"]);
|
|
@@ -18805,7 +18806,7 @@ var median = /* @__PURE__ */ __name((values) => {
|
|
|
18805
18806
|
return Math.round(sorted.length % 2 === 0 ? ((sorted[middle - 1] ?? upper) + upper) / 2 : upper);
|
|
18806
18807
|
}, "median");
|
|
18807
18808
|
|
|
18808
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18809
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/services/member-history.js
|
|
18809
18810
|
var memberEvents = /* @__PURE__ */ __name((stays, revisions, since = 0) => {
|
|
18810
18811
|
const events = [];
|
|
18811
18812
|
for (const stay of stays) {
|
|
@@ -18837,7 +18838,7 @@ var memberEvents = /* @__PURE__ */ __name((stays, revisions, since = 0) => {
|
|
|
18837
18838
|
return events.filter(({ at }) => Date.parse(at) >= since).sort((a, b) => Date.parse(a.at) - Date.parse(b.at) || a.id.localeCompare(b.id));
|
|
18838
18839
|
}, "memberEvents");
|
|
18839
18840
|
|
|
18840
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18841
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/services/message-resolution.js
|
|
18841
18842
|
var readChatId = /* @__PURE__ */ __name(async (deps, reference, store, account) => {
|
|
18842
18843
|
if (deps.reads !== "store")
|
|
18843
18844
|
return keptChatId(deps.messenger, reference, store, account);
|
|
@@ -18984,7 +18985,7 @@ var senderAmong = /* @__PURE__ */ __name(async (store, accounts, reference) => {
|
|
|
18984
18985
|
}
|
|
18985
18986
|
}, "senderAmong");
|
|
18986
18987
|
|
|
18987
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18988
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/services/chats.js
|
|
18988
18989
|
var EVENTS_DAYS = 7;
|
|
18989
18990
|
var TRACKED_DAYS = 30;
|
|
18990
18991
|
var STATS_PAGE = 1e3;
|
|
@@ -19279,7 +19280,7 @@ var storedMembers = /* @__PURE__ */ __name(async (store, chatId) => {
|
|
|
19279
19280
|
return members.length === 0 ? null : members;
|
|
19280
19281
|
}, "storedMembers");
|
|
19281
19282
|
|
|
19282
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19283
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/services/inbox.js
|
|
19283
19284
|
var INBOX_CHATS = 20;
|
|
19284
19285
|
var REVIEW_DAYS = 3;
|
|
19285
19286
|
var UNANSWERED_HOURS = 24;
|
|
@@ -19487,7 +19488,7 @@ var inboxService = /* @__PURE__ */ __name((deps) => {
|
|
|
19487
19488
|
};
|
|
19488
19489
|
}, "inboxService");
|
|
19489
19490
|
|
|
19490
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19491
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/domain/formatting.js
|
|
19491
19492
|
var invalid = /* @__PURE__ */ __name(() => new CliError("validation_error", "the messenger formatter returned invalid text spans"), "invalid");
|
|
19492
19493
|
var validateFormattedText = /* @__PURE__ */ __name((formatted2) => {
|
|
19493
19494
|
const { text: text2, spans } = formatted2;
|
|
@@ -19547,7 +19548,7 @@ var visibleFormattedText = /* @__PURE__ */ __name((formatted2) => {
|
|
|
19547
19548
|
};
|
|
19548
19549
|
}, "visibleFormattedText");
|
|
19549
19550
|
|
|
19550
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19551
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/moderation/check.js
|
|
19551
19552
|
var INVITE = /max\.ru\/join\/|(t|telegram)\.me\/(\+|joinchat\/)|tg:\/\/join/i;
|
|
19552
19553
|
var LINK2 = /https?:\/\/\S+/i;
|
|
19553
19554
|
var STRENGTH = { report: 0, delete: 1, remove: 2 };
|
|
@@ -19735,7 +19736,7 @@ var nextPoint = /* @__PURE__ */ __name((rows, found) => {
|
|
|
19735
19736
|
}, "nextPoint");
|
|
19736
19737
|
var someUndone = /* @__PURE__ */ __name((rows) => rows.some(undone), "someUndone");
|
|
19737
19738
|
|
|
19738
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19739
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/moderation/rules.js
|
|
19739
19740
|
import { existsSync, readFileSync } from "node:fs";
|
|
19740
19741
|
import { join } from "node:path";
|
|
19741
19742
|
var RULE_ACTIONS = ["report", "delete", "remove"];
|
|
@@ -19878,7 +19879,7 @@ var assign = /* @__PURE__ */ __name((rules, key, value) => {
|
|
|
19878
19879
|
return { ...rules, [head]: { ...rules[head], [tail]: value } };
|
|
19879
19880
|
}, "assign");
|
|
19880
19881
|
|
|
19881
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19882
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/services/person-context.js
|
|
19882
19883
|
var CONTEXT_MESSAGES = 10;
|
|
19883
19884
|
var CONTEXT_BYTES = 64 * 1024;
|
|
19884
19885
|
var toContext = /* @__PURE__ */ __name((key, message, chatTitle) => ({
|
|
@@ -20134,10 +20135,10 @@ var personMessages = /* @__PURE__ */ __name(async (store, asked, reference, { ch
|
|
|
20134
20135
|
};
|
|
20135
20136
|
}, "personMessages");
|
|
20136
20137
|
|
|
20137
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20138
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/services/meeting-evidence.js
|
|
20138
20139
|
import { createHash } from "node:crypto";
|
|
20139
20140
|
|
|
20140
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20141
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/services/meeting-reference.js
|
|
20141
20142
|
var missing2 = /* @__PURE__ */ __name(() => new CliError("not_found", "the meeting evidence is unavailable for this account"), "missing");
|
|
20142
20143
|
var authorizedMeetingMetadata = /* @__PURE__ */ __name(async (store, accountId, reference, options = {}) => {
|
|
20143
20144
|
const parsed = parseMeetingReference(reference);
|
|
@@ -20155,7 +20156,7 @@ var authorizedMeetingMetadata = /* @__PURE__ */ __name(async (store, accountId,
|
|
|
20155
20156
|
return { parsed, meeting };
|
|
20156
20157
|
}, "authorizedMeetingMetadata");
|
|
20157
20158
|
|
|
20158
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20159
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/services/meeting-evidence.js
|
|
20159
20160
|
var hash = /* @__PURE__ */ __name((value) => createHash("sha256").update(JSON.stringify(value)).digest("hex"), "hash");
|
|
20160
20161
|
var checkMeetingCancelled = /* @__PURE__ */ __name((signal) => {
|
|
20161
20162
|
if (signal?.aborted)
|
|
@@ -20354,7 +20355,7 @@ var readMeetingEvidence = /* @__PURE__ */ __name(async (store, accountId, refere
|
|
|
20354
20355
|
return { ...packet, fingerprint: hash(packet) };
|
|
20355
20356
|
}, "readMeetingEvidence");
|
|
20356
20357
|
|
|
20357
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20358
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/services/person-meeting-context.js
|
|
20358
20359
|
var personMeetingContext = /* @__PURE__ */ __name(async (store, personReference, options) => {
|
|
20359
20360
|
const { meetings = 10, cues = 5, bytes: bytes2 = 64 * 1024, scanLimit = 1e3, since, signal } = options;
|
|
20360
20361
|
const requestedAccounts = options.accountIds;
|
|
@@ -20453,7 +20454,7 @@ var personMeetingContext = /* @__PURE__ */ __name(async (store, personReference,
|
|
|
20453
20454
|
};
|
|
20454
20455
|
}, "personMeetingContext");
|
|
20455
20456
|
|
|
20456
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20457
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/services/person-preparation.js
|
|
20457
20458
|
var PREPARE_BYTES = 96 * 1024;
|
|
20458
20459
|
var MEETINGS = 5;
|
|
20459
20460
|
var CUES = 3;
|
|
@@ -20570,7 +20571,7 @@ var meetingsOf = /* @__PURE__ */ __name(async (store, uid, stored, since, left)
|
|
|
20570
20571
|
}
|
|
20571
20572
|
}, "meetingsOf");
|
|
20572
20573
|
|
|
20573
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20574
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/services/person-profile.js
|
|
20574
20575
|
var personProfile = /* @__PURE__ */ __name(async (deps, person, known2) => {
|
|
20575
20576
|
const online = deps.offline ? void 0 : await deps.connection();
|
|
20576
20577
|
const held = await storeIfOpen(deps);
|
|
@@ -20640,7 +20641,7 @@ var quiet = /* @__PURE__ */ __name((facts) => facts.chats.map(({ id: id2, title,
|
|
|
20640
20641
|
complete: false
|
|
20641
20642
|
})), "quiet");
|
|
20642
20643
|
|
|
20643
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20644
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/services/person-timeline.js
|
|
20644
20645
|
var TIMELINE_ITEMS = 50;
|
|
20645
20646
|
var TIMELINE_MAX = 500;
|
|
20646
20647
|
var SCOPES = ["personal", "work"];
|
|
@@ -20695,7 +20696,7 @@ var personTimeline = /* @__PURE__ */ __name(async (store, asked, reference, { sc
|
|
|
20695
20696
|
};
|
|
20696
20697
|
}, "personTimeline");
|
|
20697
20698
|
|
|
20698
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20699
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/services/people.js
|
|
20699
20700
|
var peopleService = /* @__PURE__ */ __name((deps) => {
|
|
20700
20701
|
const localCard = /* @__PURE__ */ __name(async (card, includeNotes = false) => {
|
|
20701
20702
|
const held = await storeIfOpen(deps);
|
|
@@ -20922,7 +20923,7 @@ var withoutPhone = /* @__PURE__ */ __name((answer) => {
|
|
|
20922
20923
|
return rest;
|
|
20923
20924
|
}, "withoutPhone");
|
|
20924
20925
|
|
|
20925
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20926
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/services/task-tag-filters.js
|
|
20926
20927
|
var taskTagFilters = /* @__PURE__ */ __name(async (store, query) => {
|
|
20927
20928
|
const tags = /* @__PURE__ */ new Map();
|
|
20928
20929
|
for (const node of query ? walkQuery(query.root) : [])
|
|
@@ -20931,7 +20932,7 @@ var taskTagFilters = /* @__PURE__ */ __name(async (store, query) => {
|
|
|
20931
20932
|
return tags;
|
|
20932
20933
|
}, "taskTagFilters");
|
|
20933
20934
|
|
|
20934
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20935
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/services/tasks.js
|
|
20935
20936
|
var TASK_QUERY = {
|
|
20936
20937
|
entity: "task",
|
|
20937
20938
|
backend: "sql",
|
|
@@ -21068,7 +21069,7 @@ var tasksService = /* @__PURE__ */ __name((deps, categories) => {
|
|
|
21068
21069
|
const planOf = /* @__PURE__ */ __name(async (store, id2, plan, by) => {
|
|
21069
21070
|
if (plan.category !== void 0)
|
|
21070
21071
|
plan = { ...plan, category: await categoryOf(store, plan.category) };
|
|
21071
|
-
const open7 = (await store.tasks.details(id2)).status
|
|
21072
|
+
const open7 = !isClosedState((await store.tasks.details(id2)).status);
|
|
21072
21073
|
if (!open7 && (plan.dueAt != null || plan.nextCheckAt != null))
|
|
21073
21074
|
throw new CliError("validation_error", "a closed task takes no due date or next check; it stays closed");
|
|
21074
21075
|
const { assignees, ...fields } = plan;
|
|
@@ -21099,7 +21100,7 @@ var tasksService = /* @__PURE__ */ __name((deps, categories) => {
|
|
|
21099
21100
|
if (!current.some((one) => one.to === to))
|
|
21100
21101
|
await store.tasks.assign(id2, { to, role: "assignee" }, by);
|
|
21101
21102
|
}, "assign");
|
|
21102
|
-
const reviewAfterLink = /* @__PURE__ */ __name(async (store, id2) => (await store.tasks.get(id2))?.state
|
|
21103
|
+
const reviewAfterLink = /* @__PURE__ */ __name(async (store, id2) => !isClosedState((await store.tasks.get(id2))?.state ?? "done") ? store.tasks.reviewDuplicates(id2, { linked: true }) : 0, "reviewAfterLink");
|
|
21103
21104
|
return {
|
|
21104
21105
|
list: /* @__PURE__ */ __name(({ query, limit, offset, previews }) => inStore(async (store, account) => {
|
|
21105
21106
|
const groups = /* @__PURE__ */ new Map();
|
|
@@ -21245,7 +21246,7 @@ var tasksService = /* @__PURE__ */ __name((deps, categories) => {
|
|
|
21245
21246
|
}, "release"),
|
|
21246
21247
|
close: /* @__PURE__ */ __name((id2, { as, reason, by, agent, certainty, suggestOnly }) => inStore(async (store, account) => {
|
|
21247
21248
|
const existing = await owned(store, account, id2);
|
|
21248
|
-
const suggested = existing.state
|
|
21249
|
+
const suggested = !isClosedState(existing.state) ? await store.tasks.closeSuggestion(id2) : null;
|
|
21249
21250
|
const state = as ?? (by === "owner" ? suggested?.as : void 0);
|
|
21250
21251
|
if (state === void 0)
|
|
21251
21252
|
throw new CliError("validation_error", "say how the task is closed: --as done, or --as dismissed");
|
|
@@ -21255,7 +21256,7 @@ var tasksService = /* @__PURE__ */ __name((deps, categories) => {
|
|
|
21255
21256
|
const { closeCertainty, closeSuggestion } = await store.tasks.details(task2.id);
|
|
21256
21257
|
return { ...await taskView(store, account, task2), closeCertainty, closeSuggestion };
|
|
21257
21258
|
}, "closedView");
|
|
21258
|
-
if (by === "agent" && existing.state
|
|
21259
|
+
if (by === "agent" && !isClosedState(existing.state)) {
|
|
21259
21260
|
if (certainty === void 0)
|
|
21260
21261
|
throw new CliError("validation_error", "an agent closes a task with its certainty, 0 to 1: how sure it is the task needs nothing more", { reason: "task.certainty-required" });
|
|
21261
21262
|
const { allowed, min } = await store.tasks.agentClose();
|
|
@@ -21411,7 +21412,7 @@ var taskView = /* @__PURE__ */ __name(async (store, account, task2) => {
|
|
|
21411
21412
|
};
|
|
21412
21413
|
}, "taskView");
|
|
21413
21414
|
|
|
21414
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21415
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/services/chat-coverage.js
|
|
21415
21416
|
var chatCoverage = /* @__PURE__ */ __name(async (store, account, chatIds) => {
|
|
21416
21417
|
const ids = [...new Set(chatIds)];
|
|
21417
21418
|
if (ids.length === 0)
|
|
@@ -21437,7 +21438,7 @@ var chatCoverage = /* @__PURE__ */ __name(async (store, account, chatIds) => {
|
|
|
21437
21438
|
}));
|
|
21438
21439
|
}, "chatCoverage");
|
|
21439
21440
|
|
|
21440
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21441
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/context/evidence-response.js
|
|
21441
21442
|
var contextSourceKey = /* @__PURE__ */ __name((source) => JSON.stringify([source.kind, source.accountId, source.provider, source.account]), "contextSourceKey");
|
|
21442
21443
|
var validateContextEvidencePage = /* @__PURE__ */ __name((page, request) => {
|
|
21443
21444
|
const fail2 = /* @__PURE__ */ __name(() => {
|
|
@@ -21501,7 +21502,7 @@ var validateContextEvidencePage = /* @__PURE__ */ __name((page, request) => {
|
|
|
21501
21502
|
}
|
|
21502
21503
|
}, "validateContextEvidencePage");
|
|
21503
21504
|
|
|
21504
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21505
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/context/read-budget.js
|
|
21505
21506
|
var contextReadBudget = /* @__PURE__ */ __name((limits = {}) => {
|
|
21506
21507
|
if (!limits || typeof limits !== "object" || Array.isArray(limits))
|
|
21507
21508
|
throw new CliError("validation_error", "limits needs a context read allowance");
|
|
@@ -21554,7 +21555,7 @@ var contextReadBudget = /* @__PURE__ */ __name((limits = {}) => {
|
|
|
21554
21555
|
};
|
|
21555
21556
|
}, "contextReadBudget");
|
|
21556
21557
|
|
|
21557
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21558
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/services/context-evidence.js
|
|
21558
21559
|
var createContextEvidenceReader = /* @__PURE__ */ __name((port, allowed, limits) => {
|
|
21559
21560
|
if (!port || typeof port.read !== "function")
|
|
21560
21561
|
throw new CliError("configuration_error", "context evidence reader is unavailable");
|
|
@@ -21598,7 +21599,7 @@ var createContextEvidenceReader = /* @__PURE__ */ __name((port, allowed, limits)
|
|
|
21598
21599
|
};
|
|
21599
21600
|
}, "createContextEvidenceReader");
|
|
21600
21601
|
|
|
21601
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21602
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/services/excerpt.js
|
|
21602
21603
|
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");
|
|
21603
21604
|
var excerpt = /* @__PURE__ */ __name((text2, query, size2 = 240, options = {}) => {
|
|
21604
21605
|
const flat = text2.replace(/\s+/g, " ").trim();
|
|
@@ -21614,18 +21615,18 @@ var excerpt = /* @__PURE__ */ __name((text2, query, size2 = 240, options = {}) =
|
|
|
21614
21615
|
}, "excerpt");
|
|
21615
21616
|
var withExcerpt = /* @__PURE__ */ __name(({ matchedText, ...hit }, query) => ({ ...hit, excerpt: excerpt(matchedText ?? hit.text, query) }), "withExcerpt");
|
|
21616
21617
|
|
|
21617
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21618
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/services/media-archive.js
|
|
21618
21619
|
import { setTimeout as sleep } from "node:timers/promises";
|
|
21619
21620
|
|
|
21620
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21621
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/services/media-archive-files.js
|
|
21621
21622
|
import { lstat } from "node:fs/promises";
|
|
21622
21623
|
|
|
21623
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21624
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-store.js
|
|
21624
21625
|
import { createHash as createHash3, randomUUID as randomUUID2 } from "node:crypto";
|
|
21625
21626
|
import { open as open3, rename as rename2, unlink as unlink2 } from "node:fs/promises";
|
|
21626
21627
|
import { join as join3 } from "node:path";
|
|
21627
21628
|
|
|
21628
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21629
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-metadata.js
|
|
21629
21630
|
import { createHash as createHash2 } from "node:crypto";
|
|
21630
21631
|
var metadataLimit = 16384;
|
|
21631
21632
|
var partialIdentity = /* @__PURE__ */ __name((locator) => JSON.stringify([locator.provider, locator.account, locator.occurrenceId, locator.assetId]), "partialIdentity");
|
|
@@ -21685,7 +21686,7 @@ var readPartialMetadata = /* @__PURE__ */ __name(async (path, locator, maxBytes,
|
|
|
21685
21686
|
}
|
|
21686
21687
|
}, "readPartialMetadata");
|
|
21687
21688
|
|
|
21688
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21689
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-writer.js
|
|
21689
21690
|
import { randomUUID } from "node:crypto";
|
|
21690
21691
|
import { open as open2, rename, unlink } from "node:fs/promises";
|
|
21691
21692
|
import { join as join2 } from "node:path";
|
|
@@ -21777,7 +21778,7 @@ var partialWriter = /* @__PURE__ */ __name(async (input) => {
|
|
|
21777
21778
|
};
|
|
21778
21779
|
}, "partialWriter");
|
|
21779
21780
|
|
|
21780
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21781
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-store.js
|
|
21781
21782
|
var NativeRecordingPartialStore = class {
|
|
21782
21783
|
static {
|
|
21783
21784
|
__name(this, "NativeRecordingPartialStore");
|
|
@@ -21884,12 +21885,12 @@ var NativeRecordingPartialStore = class {
|
|
|
21884
21885
|
}
|
|
21885
21886
|
};
|
|
21886
21887
|
|
|
21887
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21888
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication.js
|
|
21888
21889
|
import { createHash as createHash4 } from "node:crypto";
|
|
21889
21890
|
import { link as link2 } from "node:fs/promises";
|
|
21890
21891
|
import { basename as basename2, dirname as dirname2, join as join5, resolve as resolve2 } from "node:path";
|
|
21891
21892
|
|
|
21892
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21893
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication-files.js
|
|
21893
21894
|
import { unlink as unlink3 } from "node:fs/promises";
|
|
21894
21895
|
var verifiedPublicationFile = /* @__PURE__ */ __name(async (path, expected, signal, writable = false) => {
|
|
21895
21896
|
signal?.throwIfAborted();
|
|
@@ -21924,7 +21925,7 @@ var commitPublication = /* @__PURE__ */ __name(async (root, partialPath, finalPa
|
|
|
21924
21925
|
signal?.throwIfAborted();
|
|
21925
21926
|
}, "commitPublication");
|
|
21926
21927
|
|
|
21927
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21928
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication-journal.js
|
|
21928
21929
|
import { randomUUID as randomUUID3 } from "node:crypto";
|
|
21929
21930
|
import { open as open4, rename as rename3, unlink as unlink4 } from "node:fs/promises";
|
|
21930
21931
|
import { join as join4 } from "node:path";
|
|
@@ -21997,7 +21998,7 @@ var writePublicationJournal = /* @__PURE__ */ __name(async (root, path, prefix,
|
|
|
21997
21998
|
}
|
|
21998
21999
|
}, "writePublicationJournal");
|
|
21999
22000
|
|
|
22000
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22001
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication.js
|
|
22001
22002
|
var NativeRecordingPublication = class {
|
|
22002
22003
|
static {
|
|
22003
22004
|
__name(this, "NativeRecordingPublication");
|
|
@@ -22070,7 +22071,7 @@ var NativeRecordingPublication = class {
|
|
|
22070
22071
|
}
|
|
22071
22072
|
};
|
|
22072
22073
|
|
|
22073
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22074
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/services/media-archive-manifest.js
|
|
22074
22075
|
import { createHash as createHash5 } from "node:crypto";
|
|
22075
22076
|
import { readdir } from "node:fs/promises";
|
|
22076
22077
|
import { isAbsolute as isAbsolute2, join as join6, resolve as resolve3 } from "node:path";
|
|
@@ -22157,7 +22158,7 @@ var commitMediaEntry = /* @__PURE__ */ __name((root, one, beforePublish) => writ
|
|
|
22157
22158
|
beforePublish
|
|
22158
22159
|
}), "commitMediaEntry");
|
|
22159
22160
|
|
|
22160
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22161
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/services/media-archive-files.js
|
|
22161
22162
|
var validator = '"media-completed-v1"';
|
|
22162
22163
|
var maximumFileBytes = 64 * 1024 * 1024 * 1024;
|
|
22163
22164
|
var archiveMediaFile = /* @__PURE__ */ __name(async (root, identity, kind, file2, beforeWrite, signal, metadata = {}) => {
|
|
@@ -22258,7 +22259,7 @@ var archiveMediaFile = /* @__PURE__ */ __name(async (root, identity, kind, file2
|
|
|
22258
22259
|
return entry;
|
|
22259
22260
|
}, "archiveMediaFile");
|
|
22260
22261
|
|
|
22261
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22262
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/services/media-archive-locks.js
|
|
22262
22263
|
import { mkdir, realpath } from "node:fs/promises";
|
|
22263
22264
|
import { join as join7, resolve as resolve4 } from "node:path";
|
|
22264
22265
|
var archiveLocations = /* @__PURE__ */ __name(async (initial, signal) => {
|
|
@@ -22325,7 +22326,7 @@ var withMediaArchiveLocks = /* @__PURE__ */ __name(async (directory2, signal, ru
|
|
|
22325
22326
|
throw new CliError("validation_error", "archive locations changed during locking; run the command again");
|
|
22326
22327
|
}, "withMediaArchiveLocks");
|
|
22327
22328
|
|
|
22328
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22329
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/services/media-archive.js
|
|
22329
22330
|
var validateMediaSince = /* @__PURE__ */ __name((value, flag = "--since-time") => {
|
|
22330
22331
|
if (value === void 0)
|
|
22331
22332
|
return void 0;
|
|
@@ -22478,7 +22479,7 @@ var archiveMedia = /* @__PURE__ */ __name(async (ports, options) => {
|
|
|
22478
22479
|
}, { create: true });
|
|
22479
22480
|
}, "archiveMedia");
|
|
22480
22481
|
|
|
22481
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22482
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/services/media-archive-move.js
|
|
22482
22483
|
import { realpath as realpath2, unlink as unlink5 } from "node:fs/promises";
|
|
22483
22484
|
import { basename as basename3, dirname as dirname3, join as join8, resolve as resolve5 } from "node:path";
|
|
22484
22485
|
var canonicalDestination = /* @__PURE__ */ __name(async (directory2) => {
|
|
@@ -22631,7 +22632,7 @@ var moveMediaArchive = /* @__PURE__ */ __name(async (options) => {
|
|
|
22631
22632
|
}, { additional: [target2], createAdditional: !options.dryRun });
|
|
22632
22633
|
}, "moveMediaArchive");
|
|
22633
22634
|
|
|
22634
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22635
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/services/model-downloads.js
|
|
22635
22636
|
var bytesOf = /* @__PURE__ */ __name((model) => model.files.reduce((sum2, file2) => sum2 + file2.bytes, 0), "bytesOf");
|
|
22636
22637
|
var nativeRuntime = /* @__PURE__ */ __name(async ({ env, progress = /* @__PURE__ */ __name(() => {
|
|
22637
22638
|
}, "progress") }) => {
|
|
@@ -22654,7 +22655,7 @@ var downloadTextModel = /* @__PURE__ */ __name(async (id2, { env, progress = /*
|
|
|
22654
22655
|
}
|
|
22655
22656
|
await nativeRuntime({ env, progress });
|
|
22656
22657
|
progress(`${model.id}: loading it once to check it works`);
|
|
22657
|
-
const { openEmbedder: openEmbedder2 } = await import("./embed-
|
|
22658
|
+
const { openEmbedder: openEmbedder2 } = await import("./embed-PZSXOQJO.js");
|
|
22658
22659
|
const embedder = await openEmbedder2(model, directory2);
|
|
22659
22660
|
try {
|
|
22660
22661
|
const [vector] = await embedder.embed(["check"], "query");
|
|
@@ -22675,7 +22676,7 @@ var downloadRerankModel = /* @__PURE__ */ __name(async (id2, { env, progress = /
|
|
|
22675
22676
|
}
|
|
22676
22677
|
await nativeRuntime({ env, progress });
|
|
22677
22678
|
progress(`${model.id}: loading it once to check it works`);
|
|
22678
|
-
const { openReranker } = await import("./rerank-
|
|
22679
|
+
const { openReranker } = await import("./rerank-V5YQQQAM.js");
|
|
22679
22680
|
const reranker = await openReranker(model, directory2);
|
|
22680
22681
|
try {
|
|
22681
22682
|
await reranker.score("check", ["check"]);
|
|
@@ -22693,7 +22694,7 @@ var downloadImageModel = /* @__PURE__ */ __name(async (id2, { env, progress = /*
|
|
|
22693
22694
|
await installFiles(placedImage(model, directory2), { progress });
|
|
22694
22695
|
}
|
|
22695
22696
|
progress(`${model.id}: loading it once to check it works`);
|
|
22696
|
-
const { openPictureEmbedder } = await import("./embedder-
|
|
22697
|
+
const { openPictureEmbedder } = await import("./embedder-O4EGMMUU.js");
|
|
22697
22698
|
const embedder = await openPictureEmbedder(model, directory2);
|
|
22698
22699
|
try {
|
|
22699
22700
|
const vector = await embedder.embedQuery("check");
|
|
@@ -22705,7 +22706,7 @@ var downloadImageModel = /* @__PURE__ */ __name(async (id2, { env, progress = /*
|
|
|
22705
22706
|
return { model, directory: directory2 };
|
|
22706
22707
|
}, "downloadImageModel");
|
|
22707
22708
|
|
|
22708
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22709
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/services/project-gathering-around.js
|
|
22709
22710
|
var storedMessageNeighbours = /* @__PURE__ */ __name((messages) => ({
|
|
22710
22711
|
async around(ref, window3) {
|
|
22711
22712
|
const at = parseLocator(ref);
|
|
@@ -22800,7 +22801,7 @@ var storedNeighbours = /* @__PURE__ */ __name((store) => {
|
|
|
22800
22801
|
};
|
|
22801
22802
|
}, "storedNeighbours");
|
|
22802
22803
|
|
|
22803
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22804
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/services/project-gathering-request.js
|
|
22804
22805
|
import { createHash as createHash6 } from "node:crypto";
|
|
22805
22806
|
var DAY = 864e5;
|
|
22806
22807
|
var MAX_TIME = 864e13;
|
|
@@ -23116,7 +23117,7 @@ var decodeCheckpoint = /* @__PURE__ */ __name((text2, plan) => {
|
|
|
23116
23117
|
return value;
|
|
23117
23118
|
}, "decodeCheckpoint");
|
|
23118
23119
|
|
|
23119
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23120
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/services/project-gathering.js
|
|
23120
23121
|
var terminal = /* @__PURE__ */ new Set(["done", "unavailable", "failed"]);
|
|
23121
23122
|
var PAGE2 = 20;
|
|
23122
23123
|
var PEOPLE = 20;
|
|
@@ -23520,7 +23521,7 @@ var peopleOf = /* @__PURE__ */ __name((items, senderOf) => {
|
|
|
23520
23521
|
return [...byKey.values()].sort((a, b) => b.items - a.items || a.name.localeCompare(b.name));
|
|
23521
23522
|
}, "peopleOf");
|
|
23522
23523
|
|
|
23523
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23524
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/services/meeting-project-candidate-matching.js
|
|
23524
23525
|
var normalizedText = /* @__PURE__ */ __name((text2) => text2.normalize("NFKC").toLowerCase().replace(/\s+/gu, " "), "normalizedText");
|
|
23525
23526
|
var termsOf = /* @__PURE__ */ __name((entry) => [
|
|
23526
23527
|
{ name: entry.name, kind: "canonical" },
|
|
@@ -23564,7 +23565,7 @@ var matchVocabularyTerms = /* @__PURE__ */ __name((catalog, texts) => {
|
|
|
23564
23565
|
return result.sort((a, b) => Number(a.entry.id) - Number(b.entry.id));
|
|
23565
23566
|
}, "matchVocabularyTerms");
|
|
23566
23567
|
|
|
23567
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23568
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/services/project-gathering-mentions.js
|
|
23568
23569
|
var KINDS = ["project", "tag", "topic"];
|
|
23569
23570
|
var findEvidenceMentions = /* @__PURE__ */ __name(async (vocabulary, gathering, options = {}) => {
|
|
23570
23571
|
if (typeof vocabulary?.vocabulary !== "function")
|
|
@@ -23619,7 +23620,7 @@ var findEvidenceMentions = /* @__PURE__ */ __name(async (vocabulary, gathering,
|
|
|
23619
23620
|
};
|
|
23620
23621
|
}, "findEvidenceMentions");
|
|
23621
23622
|
|
|
23622
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23623
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/services/stored-project-gathering.js
|
|
23623
23624
|
var PROJECT_ID = /^project:[1-9]\d*$/;
|
|
23624
23625
|
var canonicalProjectRef = /* @__PURE__ */ __name(async (store, reference) => {
|
|
23625
23626
|
if (PROJECT_ID.test(reference)) {
|
|
@@ -23785,7 +23786,7 @@ var gatherStoredProject = /* @__PURE__ */ __name(async (store, input) => {
|
|
|
23785
23786
|
return { projectRef: project.ref, unreadSources: [...unread, ...unreadChats, ...members.left], ...gathered, mentions };
|
|
23786
23787
|
}, "gatherStoredProject");
|
|
23787
23788
|
|
|
23788
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23789
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/services/account.js
|
|
23789
23790
|
var accountService = /* @__PURE__ */ __name((deps) => {
|
|
23790
23791
|
const online = /* @__PURE__ */ __name(async (command) => {
|
|
23791
23792
|
if (deps.offline)
|
|
@@ -23857,7 +23858,7 @@ var accountService = /* @__PURE__ */ __name((deps) => {
|
|
|
23857
23858
|
};
|
|
23858
23859
|
}, "accountService");
|
|
23859
23860
|
|
|
23860
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23861
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/domain/send-time.js
|
|
23861
23862
|
var MINUTE = 6e4;
|
|
23862
23863
|
var YEAR = 365 * 24 * 60 * MINUTE;
|
|
23863
23864
|
var DELAY = /^(\d+)(m|h|d)$/;
|
|
@@ -23876,7 +23877,7 @@ var sendTime = /* @__PURE__ */ __name((value, now = Date.now(), flag = "--at-tim
|
|
|
23876
23877
|
return new Date(at - at % MINUTE).toISOString();
|
|
23877
23878
|
}, "sendTime");
|
|
23878
23879
|
|
|
23879
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23880
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/services/admin.js
|
|
23880
23881
|
var recordMembership = /* @__PURE__ */ __name(async (deps, operationId, done2, change, fix, write) => {
|
|
23881
23882
|
try {
|
|
23882
23883
|
const held = await accountStoreIfOpen(deps);
|
|
@@ -24123,7 +24124,7 @@ var linkLimits = /* @__PURE__ */ __name(({ approval, expires, maxUses }) => {
|
|
|
24123
24124
|
return expires === void 0 ? void 0 : sendTime(expires, Date.now(), "--expire-time");
|
|
24124
24125
|
}, "linkLimits");
|
|
24125
24126
|
|
|
24126
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24127
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/services/mail-search.js
|
|
24127
24128
|
var THREADS_PAGE = 500;
|
|
24128
24129
|
var threadsOf = /* @__PURE__ */ __name(async (store, key) => {
|
|
24129
24130
|
const account = await store.accounts.storedAccount(key).catch(() => void 0);
|
|
@@ -24202,7 +24203,7 @@ var readMail = /* @__PURE__ */ __name(async (store, locator, { before: before2 =
|
|
|
24202
24203
|
return thread.slice(Math.max(0, at - before2), at + after + 1).map((hit) => hit.id === message ? { ...hit, anchor: true } : hit);
|
|
24203
24204
|
}, "readMail");
|
|
24204
24205
|
|
|
24205
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24206
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/services/search-kind.js
|
|
24206
24207
|
var NO_MAIL = "no_mail";
|
|
24207
24208
|
var MAIL = "email";
|
|
24208
24209
|
var listContextOf = /* @__PURE__ */ __name(async (store, account, app, stored) => {
|
|
@@ -24249,7 +24250,7 @@ var accountsOfKind = /* @__PURE__ */ __name((kind, chosen, held, explicit, comma
|
|
|
24249
24250
|
return chosenMail.map(({ provider, account }) => ({ provider, account }));
|
|
24250
24251
|
}, "accountsOfKind");
|
|
24251
24252
|
|
|
24252
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24253
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/services/messages-search.js
|
|
24253
24254
|
var MAIL_FIELDS = /* @__PURE__ */ new Set(["to", "cc", "bcc", "subject", "mailbox", "label", "is"]);
|
|
24254
24255
|
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");
|
|
24255
24256
|
var prepareLucene = /* @__PURE__ */ __name(async (store, account, request, messenger) => {
|
|
@@ -24597,7 +24598,7 @@ var statsLucene = /* @__PURE__ */ __name(async (store, account, request, messeng
|
|
|
24597
24598
|
};
|
|
24598
24599
|
}, "statsLucene");
|
|
24599
24600
|
|
|
24600
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24601
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/services/rankings-selection.js
|
|
24601
24602
|
var RANKING_SELECTION_BYTES = 64 * 1024;
|
|
24602
24603
|
var object = /* @__PURE__ */ __name((value) => value !== null && typeof value === "object" && !Array.isArray(value) ? value : void 0, "object");
|
|
24603
24604
|
function invalid3(message = "ranking selection is invalid \u2014 obtain a new drilldown from stats top") {
|
|
@@ -24766,7 +24767,7 @@ var readRankingSelection = /* @__PURE__ */ __name(async (store, input) => {
|
|
|
24766
24767
|
};
|
|
24767
24768
|
}, "readRankingSelection");
|
|
24768
24769
|
|
|
24769
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24770
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/services/search-record.js
|
|
24770
24771
|
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");
|
|
24771
24772
|
var searchRecordOf = /* @__PURE__ */ __name((command, params) => ({
|
|
24772
24773
|
command,
|
|
@@ -24776,7 +24777,7 @@ var searchRecordOf = /* @__PURE__ */ __name((command, params) => ({
|
|
|
24776
24777
|
fieldsVersion: FIELD_VERSION
|
|
24777
24778
|
}), "searchRecordOf");
|
|
24778
24779
|
|
|
24779
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24780
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/services/admin-statistics.js
|
|
24780
24781
|
function invalid4(message) {
|
|
24781
24782
|
throw new CliError("validation_error", message);
|
|
24782
24783
|
}
|
|
@@ -25070,7 +25071,7 @@ var adminStatisticsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
25070
25071
|
}, "evidence")
|
|
25071
25072
|
}), "adminStatisticsService");
|
|
25072
25073
|
|
|
25073
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25074
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/services/agenda.js
|
|
25074
25075
|
var DAY2 = 864e5;
|
|
25075
25076
|
var CLAIMS = ["none", "mine", "others", "any"];
|
|
25076
25077
|
var TASK_FIELDS = /* @__PURE__ */ new Set(["tag", "category", "claimed"]);
|
|
@@ -25312,10 +25313,10 @@ var agendaItem = /* @__PURE__ */ __name((shown) => {
|
|
|
25312
25313
|
};
|
|
25313
25314
|
}, "agendaItem");
|
|
25314
25315
|
|
|
25315
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25316
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/services/archive.js
|
|
25316
25317
|
import { setTimeout as sleep3 } from "node:timers/promises";
|
|
25317
25318
|
|
|
25318
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25319
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/services/backfill-estimate.js
|
|
25319
25320
|
var REQUEST_MS = 400;
|
|
25320
25321
|
var estimateBackfill = /* @__PURE__ */ __name(({ ranges, held, newest, page, maxPages, pauseMs }) => {
|
|
25321
25322
|
const lowest = ranges[0];
|
|
@@ -25338,13 +25339,13 @@ var estimateBackfill = /* @__PURE__ */ __name(({ ranges, held, newest, page, max
|
|
|
25338
25339
|
};
|
|
25339
25340
|
}, "estimateBackfill");
|
|
25340
25341
|
|
|
25341
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25342
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/domain/recovery.js
|
|
25342
25343
|
var withRecovery = /* @__PURE__ */ __name((error) => ({
|
|
25343
25344
|
...error,
|
|
25344
25345
|
retryable: typeof error.retryable === "boolean" ? error.retryable : error.code === "rate_limited" || error.status === 429
|
|
25345
25346
|
}), "withRecovery");
|
|
25346
25347
|
|
|
25347
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25348
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/services/batch.js
|
|
25348
25349
|
var actionable = /* @__PURE__ */ __name((error) => {
|
|
25349
25350
|
if (isCliFailure(error))
|
|
25350
25351
|
return withRecovery({ code: error.code, message: error.message, ...error.details });
|
|
@@ -25427,7 +25428,7 @@ var mergeBatches = /* @__PURE__ */ __name((a, b) => {
|
|
|
25427
25428
|
};
|
|
25428
25429
|
}, "mergeBatches");
|
|
25429
25430
|
|
|
25430
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25431
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/services/patience.js
|
|
25431
25432
|
import { setTimeout as sleep2 } from "node:timers/promises";
|
|
25432
25433
|
var LONGEST_WAIT_MS = 5 * 60 * 1e3;
|
|
25433
25434
|
var patiently = /* @__PURE__ */ __name(async (request, note, stop) => {
|
|
@@ -25450,7 +25451,7 @@ var patiently = /* @__PURE__ */ __name(async (request, note, stop) => {
|
|
|
25450
25451
|
}
|
|
25451
25452
|
}, "patiently");
|
|
25452
25453
|
|
|
25453
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25454
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/images/context/index.js
|
|
25454
25455
|
var CONTEXT_MESSAGES2 = 3;
|
|
25455
25456
|
var CONTEXT_MINUTES = 10;
|
|
25456
25457
|
var MAX_CHARS = 1200;
|
|
@@ -25474,12 +25475,12 @@ var context = {
|
|
|
25474
25475
|
}, "describe")
|
|
25475
25476
|
};
|
|
25476
25477
|
|
|
25477
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25478
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/images/registry.js
|
|
25478
25479
|
var BUILT_INS = [context];
|
|
25479
25480
|
var providers = [...BUILT_INS];
|
|
25480
25481
|
var registeredImageProviders = /* @__PURE__ */ __name(() => providers, "registeredImageProviders");
|
|
25481
25482
|
|
|
25482
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25483
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/services/conversations.js
|
|
25483
25484
|
var READ_PAGE = 5e3;
|
|
25484
25485
|
var CHAIN = 50;
|
|
25485
25486
|
var CONVERSATION_QUERY = {
|
|
@@ -25631,7 +25632,7 @@ var sized = /* @__PURE__ */ __name((size2) => {
|
|
|
25631
25632
|
return size2;
|
|
25632
25633
|
}, "sized");
|
|
25633
25634
|
|
|
25634
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25635
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/services/embeddings-maintenance.js
|
|
25635
25636
|
var REFRESH_BOUNDS = { maxChats: 20, maxChunks: 2e3 };
|
|
25636
25637
|
var MESSAGE_PAGE = 5e3;
|
|
25637
25638
|
var PER_SESSION = 8;
|
|
@@ -25650,7 +25651,7 @@ var embeddingTarget = /* @__PURE__ */ __name((deps, choice = DEFAULT_TEXT_MODEL)
|
|
|
25650
25651
|
price: remote.price,
|
|
25651
25652
|
installed: true,
|
|
25652
25653
|
perBatch: PER_REQUEST * concurrency,
|
|
25653
|
-
open: /* @__PURE__ */ __name(async () => (await import("./remote-
|
|
25654
|
+
open: /* @__PURE__ */ __name(async () => (await import("./remote-Q37V7LUX.js")).openRemote(remote, apiKey, { concurrency }), "open")
|
|
25654
25655
|
};
|
|
25655
25656
|
}
|
|
25656
25657
|
const model = textModel(choice);
|
|
@@ -25667,7 +25668,7 @@ var embeddingTarget = /* @__PURE__ */ __name((deps, choice = DEFAULT_TEXT_MODEL)
|
|
|
25667
25668
|
if (!isTextModelInstalled(model, directory2))
|
|
25668
25669
|
throw notDownloaded(model.id);
|
|
25669
25670
|
if (apart) {
|
|
25670
|
-
const { openProcess } = await import("./process-
|
|
25671
|
+
const { openProcess } = await import("./process-3IGMEATV.js");
|
|
25671
25672
|
return openProcess(model, directory2, { threads: threads ?? defaultThreads() });
|
|
25672
25673
|
}
|
|
25673
25674
|
return openEmbedder(model, directory2, { threads: threads ?? defaultThreads() });
|
|
@@ -25956,7 +25957,7 @@ var shaped = /* @__PURE__ */ __name(({ chatId, builtAt, algorithmVersion, pendin
|
|
|
25956
25957
|
return { ...one, state };
|
|
25957
25958
|
}, "shaped");
|
|
25958
25959
|
|
|
25959
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25960
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/services/search-catchup.js
|
|
25960
25961
|
var CATCH_UP_BOUNDS = { maxChunks: 500, maxMessages: 1e4, timeMs: 3e4 };
|
|
25961
25962
|
var validateCatchUpBounds = /* @__PURE__ */ __name((options) => {
|
|
25962
25963
|
for (const [key, value, maximum] of [
|
|
@@ -26009,7 +26010,7 @@ var catchUpSearch = /* @__PURE__ */ __name(async (deps, chat, options, signal, c
|
|
|
26009
26010
|
}
|
|
26010
26011
|
}, "catchUpSearch");
|
|
26011
26012
|
|
|
26012
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26013
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/services/archive.js
|
|
26013
26014
|
var pushed = /* @__PURE__ */ __name((deps, what) => {
|
|
26014
26015
|
if (deps.reads === "store") {
|
|
26015
26016
|
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`);
|
|
@@ -26281,7 +26282,7 @@ var fetchInto = /* @__PURE__ */ __name(async ({ history, store, account, fetchin
|
|
|
26281
26282
|
}
|
|
26282
26283
|
const boundary = window3 === void 0 ? held.from : low;
|
|
26283
26284
|
before2 = byTime ? new Date(boundary + (fresh > 0 && !(window3 && fetching.beforeInclusive) ? 1 : 0)).toISOString() : String(boundary);
|
|
26284
|
-
note(`${fetched} messages so far, back to ${
|
|
26285
|
+
note(`${fetched} messages so far, back to ${fromAt.slice(0, 10)}`);
|
|
26285
26286
|
const wait = fetching.jitter ? pauseMs * (1 + Math.random()) : pauseMs;
|
|
26286
26287
|
await sleep3(wait, void 0, { signal: stop }).catch(() => {
|
|
26287
26288
|
});
|
|
@@ -26330,7 +26331,7 @@ var timeOfKey = /* @__PURE__ */ __name(async (store, account, chatId, key, byTim
|
|
|
26330
26331
|
return message?.timestamp ?? fallback;
|
|
26331
26332
|
}, "timeOfKey");
|
|
26332
26333
|
|
|
26333
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26334
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/services/archive-gaps.js
|
|
26334
26335
|
import { createHash as createHash7, randomUUID as randomUUID4 } from "node:crypto";
|
|
26335
26336
|
var GAP_BOUNDS = { maxGaps: 5, limit: 500, timeMs: 3e4 };
|
|
26336
26337
|
var validateRepair = /* @__PURE__ */ __name((messenger, options) => {
|
|
@@ -26467,12 +26468,12 @@ var gapsService = /* @__PURE__ */ __name((deps) => {
|
|
|
26467
26468
|
return { plan, repair };
|
|
26468
26469
|
}, "gapsService");
|
|
26469
26470
|
|
|
26470
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26471
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/services/attachments.js
|
|
26471
26472
|
import { createHash as createHash9 } from "node:crypto";
|
|
26472
26473
|
import { constants as constants2 } from "node:fs";
|
|
26473
26474
|
import { open as open6, readFile, stat as stat2 } from "node:fs/promises";
|
|
26474
26475
|
|
|
26475
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26476
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/attachments/directory.js
|
|
26476
26477
|
import { lstat as lstat2, readdir as readdir2, realpath as realpath3 } from "node:fs/promises";
|
|
26477
26478
|
import { basename as basename4, join as join9, relative as relative2, sep as sep2 } from "node:path";
|
|
26478
26479
|
var MAX_FILES = 1e4;
|
|
@@ -26543,15 +26544,15 @@ var directoryPaths = /* @__PURE__ */ __name(async (store, chat, directory2, app,
|
|
|
26543
26544
|
return choices;
|
|
26544
26545
|
}, "directoryPaths");
|
|
26545
26546
|
|
|
26546
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26547
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/attachments/documents.js
|
|
26547
26548
|
import { posix } from "node:path";
|
|
26548
26549
|
|
|
26549
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26550
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/attachments/container.js
|
|
26550
26551
|
import { setImmediate as tick } from "node:timers/promises";
|
|
26551
26552
|
import { crc32 } from "node:zlib";
|
|
26552
26553
|
var import_xmldom = __toESM(require_lib(), 1);
|
|
26553
26554
|
|
|
26554
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26555
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/attachments/encoding.js
|
|
26555
26556
|
var import_chardet = __toESM(require_lib2(), 1);
|
|
26556
26557
|
var import_iconv_lite = __toESM(require_lib3(), 1);
|
|
26557
26558
|
var SAMPLE = 65536;
|
|
@@ -26653,7 +26654,7 @@ var decodeXml = /* @__PURE__ */ __name((bytes2) => {
|
|
|
26653
26654
|
return result.text;
|
|
26654
26655
|
}, "decodeXml");
|
|
26655
26656
|
|
|
26656
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26657
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/attachments/container.js
|
|
26657
26658
|
var MAX_PART = 10 * 1024 * 1024;
|
|
26658
26659
|
var MAX_ENTRIES = 1e3;
|
|
26659
26660
|
var decoder = new TextDecoder("utf-8", { fatal: true });
|
|
@@ -26868,7 +26869,7 @@ var elements = /* @__PURE__ */ __name((node, name, namespace) => {
|
|
|
26868
26869
|
return found;
|
|
26869
26870
|
}, "elements");
|
|
26870
26871
|
|
|
26871
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26872
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/attachments/sheets.js
|
|
26872
26873
|
var columnName = /* @__PURE__ */ __name((column) => {
|
|
26873
26874
|
let name = "";
|
|
26874
26875
|
for (let rest = column; rest > 0; rest = Math.floor((rest - 1) / 26))
|
|
@@ -26923,7 +26924,7 @@ var sheetText = /* @__PURE__ */ __name((sheets2, maxChars = MAX_TEXT_CHARS) => {
|
|
|
26923
26924
|
return { text: parts.join("").trim(), truncated: false };
|
|
26924
26925
|
}, "sheetText");
|
|
26925
26926
|
|
|
26926
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26927
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/attachments/documents.js
|
|
26927
26928
|
var OFFICE = "urn:oasis:names:tc:opendocument:xmlns:office:1.0";
|
|
26928
26929
|
var TEXT = "urn:oasis:names:tc:opendocument:xmlns:text:1.0";
|
|
26929
26930
|
var TABLE = "urn:oasis:names:tc:opendocument:xmlns:table:1.0";
|
|
@@ -27323,10 +27324,10 @@ var readDocument = /* @__PURE__ */ __name(async (bytes2, kind, signal) => {
|
|
|
27323
27324
|
}
|
|
27324
27325
|
}, "readDocument");
|
|
27325
27326
|
|
|
27326
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27327
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/attachments/extract.js
|
|
27327
27328
|
import { extname as extname3 } from "node:path";
|
|
27328
27329
|
|
|
27329
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27330
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/readers/engine.js
|
|
27330
27331
|
import { readFileSync as readFileSync2 } from "node:fs";
|
|
27331
27332
|
import { dirname as dirname4, extname as extname2, join as join10 } from "node:path";
|
|
27332
27333
|
import { fileURLToPath } from "node:url";
|
|
@@ -27387,7 +27388,7 @@ var derived = /* @__PURE__ */ __name((bytes2, extractor, read) => {
|
|
|
27387
27388
|
}
|
|
27388
27389
|
}, "derived");
|
|
27389
27390
|
|
|
27390
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27391
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/readers/image/index.js
|
|
27391
27392
|
var IMAGES = /* @__PURE__ */ new Set([".jpg", ".jpeg", ".png", ".webp", ".gif", ".heic", ".tif", ".tiff", ".bmp"]);
|
|
27392
27393
|
var image2 = {
|
|
27393
27394
|
id: "image",
|
|
@@ -27396,7 +27397,7 @@ var image2 = {
|
|
|
27396
27397
|
read: /* @__PURE__ */ __name(async () => ({ status: "needs-agent" }), "read")
|
|
27397
27398
|
};
|
|
27398
27399
|
|
|
27399
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27400
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/readers/doc/index.js
|
|
27400
27401
|
var OLE = "\xD0\xCF\xE0\xA1\xB1\xE1";
|
|
27401
27402
|
var doc = {
|
|
27402
27403
|
id: "doc",
|
|
@@ -27408,7 +27409,7 @@ var doc = {
|
|
|
27408
27409
|
}), "read")
|
|
27409
27410
|
};
|
|
27410
27411
|
|
|
27411
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27412
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/readers/docx/index.js
|
|
27412
27413
|
var DOCX = "application/vnd.openxmlformats-officedocument.wordprocessingml.document";
|
|
27413
27414
|
var docx = {
|
|
27414
27415
|
id: "docx",
|
|
@@ -27421,7 +27422,7 @@ var docx = {
|
|
|
27421
27422
|
}), "read")
|
|
27422
27423
|
};
|
|
27423
27424
|
|
|
27424
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27425
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/attachments/markup.js
|
|
27425
27426
|
var import_iconv_lite2 = __toESM(require_lib3(), 1);
|
|
27426
27427
|
var RTF_SKIPPED = /* @__PURE__ */ new Set([
|
|
27427
27428
|
"fonttbl",
|
|
@@ -27597,7 +27598,7 @@ var htmlText = /* @__PURE__ */ __name((source) => {
|
|
|
27597
27598
|
}, "htmlText");
|
|
27598
27599
|
var safeChar = /* @__PURE__ */ __name((code, fallback) => code > 0 && code <= 1114111 ? String.fromCodePoint(code) : fallback, "safeChar");
|
|
27599
27600
|
|
|
27600
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27601
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/readers/html/page.js
|
|
27601
27602
|
var clean = /* @__PURE__ */ __name((value) => typeof value === "string" ? value.replace(/\s+/g, " ").trim() : "", "clean");
|
|
27602
27603
|
var namesIn = /* @__PURE__ */ __name((value) => [value].flat().map((entry) => typeof entry === "string" ? clean(entry) : clean(entry?.name)).filter(Boolean).join(", "), "namesIn");
|
|
27603
27604
|
var jsonLdNodes = /* @__PURE__ */ __name((document) => {
|
|
@@ -27653,7 +27654,7 @@ var markdownSections = /* @__PURE__ */ __name((text2) => {
|
|
|
27653
27654
|
return found.map((section, index) => ({ ...section, end: found[index + 1]?.start ?? text2.length }));
|
|
27654
27655
|
}, "markdownSections");
|
|
27655
27656
|
|
|
27656
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27657
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/readers/html/index.js
|
|
27657
27658
|
var HTML = /* @__PURE__ */ new Set([".html", ".htm", ".xhtml"]);
|
|
27658
27659
|
var first = /* @__PURE__ */ __name((...values) => values.find((value) => typeof value === "string" && value !== ""), "first");
|
|
27659
27660
|
var loaded = /* @__PURE__ */ __name(async (load, name) => {
|
|
@@ -27724,7 +27725,7 @@ var html = {
|
|
|
27724
27725
|
}, "read")
|
|
27725
27726
|
};
|
|
27726
27727
|
|
|
27727
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27728
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/readers/office/index.js
|
|
27728
27729
|
var office = {
|
|
27729
27730
|
id: "office",
|
|
27730
27731
|
version: documentExtractor("odt"),
|
|
@@ -27735,7 +27736,7 @@ var office = {
|
|
|
27735
27736
|
}, "read")
|
|
27736
27737
|
};
|
|
27737
27738
|
|
|
27738
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27739
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/readers/pdf/index.js
|
|
27739
27740
|
var pdf = {
|
|
27740
27741
|
id: "pdf",
|
|
27741
27742
|
version: "unpdf",
|
|
@@ -27802,7 +27803,7 @@ var pdf = {
|
|
|
27802
27803
|
}), "read")
|
|
27803
27804
|
};
|
|
27804
27805
|
|
|
27805
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27806
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/readers/plain/index.js
|
|
27806
27807
|
var PLAIN = /* @__PURE__ */ new Set([".txt", ".md", ".markdown", ".csv", ".tsv", ".json", ".log"]);
|
|
27807
27808
|
var isPlain = /* @__PURE__ */ __name((hint) => PLAIN.has(extensionOf(hint)) || hint.mime?.startsWith("text/") || hint.mime === "application/json", "isPlain");
|
|
27808
27809
|
var readPlain = /* @__PURE__ */ __name((bytes2) => {
|
|
@@ -27822,7 +27823,7 @@ var plain = {
|
|
|
27822
27823
|
read: /* @__PURE__ */ __name(async (bytes2) => readPlain(bytes2), "read")
|
|
27823
27824
|
};
|
|
27824
27825
|
|
|
27825
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27826
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/readers/rtf/index.js
|
|
27826
27827
|
var rtf = {
|
|
27827
27828
|
id: "rtf",
|
|
27828
27829
|
version: "v1",
|
|
@@ -27830,10 +27831,10 @@ var rtf = {
|
|
|
27830
27831
|
read: /* @__PURE__ */ __name(async (bytes2) => derived(bytes2, "rtf:v1", rtfText), "read")
|
|
27831
27832
|
};
|
|
27832
27833
|
|
|
27833
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27834
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/readers/sheets/index.js
|
|
27834
27835
|
import { basename as basename5 } from "node:path";
|
|
27835
27836
|
|
|
27836
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27837
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/attachments/csv-spans.js
|
|
27837
27838
|
var delimitedSpans = /* @__PURE__ */ __name((text2, delimiter, maxCells = 1e4) => {
|
|
27838
27839
|
const cells = [];
|
|
27839
27840
|
let row = 1, column = 1, start = 0, quoted = false, truncated = false;
|
|
@@ -27871,7 +27872,7 @@ var delimitedSpans = /* @__PURE__ */ __name((text2, delimiter, maxCells = 1e4) =
|
|
|
27871
27872
|
return { cells, truncated };
|
|
27872
27873
|
}, "delimitedSpans");
|
|
27873
27874
|
|
|
27874
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27875
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/readers/sheets/index.js
|
|
27875
27876
|
var DELIMITED = {
|
|
27876
27877
|
".csv": ",",
|
|
27877
27878
|
".tsv": " ",
|
|
@@ -27910,7 +27911,7 @@ var sheets = {
|
|
|
27910
27911
|
}, "read")
|
|
27911
27912
|
};
|
|
27912
27913
|
|
|
27913
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27914
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/readers/registry.js
|
|
27914
27915
|
var BUILT_INS2 = [office, pdf, docx, doc, rtf, html, sheets, plain, image2];
|
|
27915
27916
|
var HEAD_BYTES = 1024;
|
|
27916
27917
|
var readers = [...BUILT_INS2];
|
|
@@ -27920,7 +27921,7 @@ var readWithRegistry = /* @__PURE__ */ __name(async (bytes2, hint, context2) =>
|
|
|
27920
27921
|
return reader ? reader.read(bytes2, hint, context2) : { status: "unsupported" };
|
|
27921
27922
|
}, "readWithRegistry");
|
|
27922
27923
|
|
|
27923
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27924
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/attachments/extract.js
|
|
27924
27925
|
var importEngine = /* @__PURE__ */ __name((name) => importFrom(new URL("attachments/extract.js", import.meta.resolve("@wirecat/cli-core")).href, name), "importEngine");
|
|
27925
27926
|
var extensionOf2 = /* @__PURE__ */ __name(({ name, path }) => extname3(name ?? path).toLowerCase(), "extensionOf");
|
|
27926
27927
|
var extractText = /* @__PURE__ */ __name(async (bytes2, hint, load, signal, env = process.env) => {
|
|
@@ -28999,7 +29000,7 @@ function imageSize(input) {
|
|
|
28999
29000
|
}
|
|
29000
29001
|
__name(imageSize, "imageSize");
|
|
29001
29002
|
|
|
29002
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29003
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/attachments/ocr.js
|
|
29003
29004
|
var MAX_PAGES = 20;
|
|
29004
29005
|
var MAX_PIXELS = 2e7;
|
|
29005
29006
|
var cancelled2 = /* @__PURE__ */ __name((signal) => {
|
|
@@ -29150,7 +29151,7 @@ var ocrPdf = /* @__PURE__ */ __name(async (bytes2, pipeline2, load, signal) => {
|
|
|
29150
29151
|
}
|
|
29151
29152
|
}, "ocrPdf");
|
|
29152
29153
|
|
|
29153
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29154
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/attachments/pdf-preview.js
|
|
29154
29155
|
var pdfPreview = /* @__PURE__ */ __name(async (bytes2, page, signal, load = importEngine, env = process.env) => {
|
|
29155
29156
|
const limits = pdfPreviewLimits(env);
|
|
29156
29157
|
const cancelled4 = /* @__PURE__ */ __name(() => {
|
|
@@ -29227,7 +29228,7 @@ var pdfPreview = /* @__PURE__ */ __name(async (bytes2, page, signal, load = impo
|
|
|
29227
29228
|
}
|
|
29228
29229
|
}, "pdfPreview");
|
|
29229
29230
|
|
|
29230
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29231
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/attachments/transfer.js
|
|
29231
29232
|
import { createHash as createHash8 } from "node:crypto";
|
|
29232
29233
|
import { constants } from "node:fs";
|
|
29233
29234
|
import { lstat as lstat3, open as open5 } from "node:fs/promises";
|
|
@@ -29335,7 +29336,7 @@ var transferMime = /* @__PURE__ */ __name((head, hint, name = null) => {
|
|
|
29335
29336
|
return hint !== null && /^[a-z0-9.+-]+\/[a-z0-9.+-]+$/i.test(hint) ? hint : "application/octet-stream";
|
|
29336
29337
|
}, "transferMime");
|
|
29337
29338
|
|
|
29338
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29339
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/services/attachments.js
|
|
29339
29340
|
var ATTACHMENT_QUERY = {
|
|
29340
29341
|
entity: "attachment",
|
|
29341
29342
|
backend: "sql",
|
|
@@ -29716,7 +29717,7 @@ var attachmentsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
29716
29717
|
}, "setText")
|
|
29717
29718
|
}), "attachmentsService");
|
|
29718
29719
|
|
|
29719
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29720
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/services/chat-documents.js
|
|
29720
29721
|
var chatDocumentsService = /* @__PURE__ */ __name((deps) => ({
|
|
29721
29722
|
list: /* @__PURE__ */ __name(async (chat, { limit, offset, ref }) => {
|
|
29722
29723
|
const store = await accountStore(deps);
|
|
@@ -29746,7 +29747,7 @@ var chatDocumentsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
29746
29747
|
}, "list")
|
|
29747
29748
|
}), "chatDocumentsService");
|
|
29748
29749
|
|
|
29749
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29750
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/services/retention.js
|
|
29750
29751
|
var observationDuration = /* @__PURE__ */ __name((text2, flag) => {
|
|
29751
29752
|
const match = /^(\d+(?:\.\d+)?)([smhdw])$/.exec(text2);
|
|
29752
29753
|
const units2 = { s: 1e3, m: 6e4, h: 36e5, d: 864e5, w: 6048e5 };
|
|
@@ -29833,7 +29834,7 @@ var isRetentionSelection = /* @__PURE__ */ __name((selection) => {
|
|
|
29833
29834
|
}
|
|
29834
29835
|
}, "isRetentionSelection");
|
|
29835
29836
|
|
|
29836
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29837
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/services/counters.js
|
|
29837
29838
|
var counterFields = /* @__PURE__ */ __name((text2 = "views,reactions,comments") => {
|
|
29838
29839
|
const fields = text2.split(",").map((one) => one.trim());
|
|
29839
29840
|
if (!fields.length || fields.some((one) => !COUNTER_FIELDS.includes(one)) || new Set(fields).size !== fields.length)
|
|
@@ -30040,7 +30041,7 @@ var countersService = /* @__PURE__ */ __name((deps) => {
|
|
|
30040
30041
|
};
|
|
30041
30042
|
}, "countersService");
|
|
30042
30043
|
|
|
30043
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30044
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/services/search-refresh.js
|
|
30044
30045
|
var SYNC_KEY = "messages.sync-first";
|
|
30045
30046
|
var SYNC_BOUNDS = { maxChats: 5, timeMs: 3e4, maxMessages: 500 };
|
|
30046
30047
|
var keyOf2 = /* @__PURE__ */ __name((chat) => JSON.stringify([chat.account.provider, chat.account.account, chat.chatId]), "keyOf");
|
|
@@ -30172,7 +30173,7 @@ var withRefresh = /* @__PURE__ */ __name((found, refreshed) => ({
|
|
|
30172
30173
|
...!refreshed || refreshed.complete ? {} : { coverage: { ...found.coverage, state: "stale" } }
|
|
30173
30174
|
}), "withRefresh");
|
|
30174
30175
|
|
|
30175
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30176
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/services/embeddings-search.js
|
|
30176
30177
|
var CANDIDATES = 50;
|
|
30177
30178
|
var WORD_HITS = 200;
|
|
30178
30179
|
var RRF_K = 60;
|
|
@@ -30447,13 +30448,13 @@ var meanOf = /* @__PURE__ */ __name((vectors) => {
|
|
|
30447
30448
|
return mean.map((value) => value / length);
|
|
30448
30449
|
}, "meanOf");
|
|
30449
30450
|
|
|
30450
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30451
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/services/embeddings.js
|
|
30451
30452
|
var embeddingsService = /* @__PURE__ */ __name((deps) => ({
|
|
30452
30453
|
...embeddingsMaintenance(deps),
|
|
30453
30454
|
...embeddingsSearch(deps)
|
|
30454
30455
|
}), "embeddingsService");
|
|
30455
30456
|
|
|
30456
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30457
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/services/folders.js
|
|
30457
30458
|
var foldersService = /* @__PURE__ */ __name((deps) => {
|
|
30458
30459
|
const online = /* @__PURE__ */ __name(async (command) => {
|
|
30459
30460
|
if (deps.offline)
|
|
@@ -30594,7 +30595,7 @@ var foldersService = /* @__PURE__ */ __name((deps) => {
|
|
|
30594
30595
|
};
|
|
30595
30596
|
}, "foldersService");
|
|
30596
30597
|
|
|
30597
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30598
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/services/mentions.js
|
|
30598
30599
|
var REVIEW_COUNT = 500;
|
|
30599
30600
|
var mentionsService = /* @__PURE__ */ __name((deps) => {
|
|
30600
30601
|
const located = /* @__PURE__ */ __name(async () => {
|
|
@@ -30673,7 +30674,7 @@ var mentionsService = /* @__PURE__ */ __name((deps) => {
|
|
|
30673
30674
|
};
|
|
30674
30675
|
}, "mentionsService");
|
|
30675
30676
|
|
|
30676
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30677
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/domain/message-link.js
|
|
30677
30678
|
var messageLinkTarget = /* @__PURE__ */ __name((reference, message, provider) => {
|
|
30678
30679
|
if (isLocator(reference)) {
|
|
30679
30680
|
if (message !== void 0)
|
|
@@ -30720,7 +30721,7 @@ var validatePermalink = /* @__PURE__ */ __name((link4) => {
|
|
|
30720
30721
|
return { url: link4.url, access: link4.access, reason: link4.reason };
|
|
30721
30722
|
}, "validatePermalink");
|
|
30722
30723
|
|
|
30723
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30724
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/domain/pin-duration.js
|
|
30724
30725
|
var spokenSeconds = /* @__PURE__ */ __name((seconds) => {
|
|
30725
30726
|
if (seconds % 86400 === 0 && seconds > 86400)
|
|
30726
30727
|
return `${seconds / 86400}d`;
|
|
@@ -30752,7 +30753,7 @@ var pinDurationOf = /* @__PURE__ */ __name((value, allowed, flag = "--expire-tim
|
|
|
30752
30753
|
return seconds;
|
|
30753
30754
|
}, "pinDurationOf");
|
|
30754
30755
|
|
|
30755
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30756
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/sends/send-as.js
|
|
30756
30757
|
var sendAsCheck = /* @__PURE__ */ __name((connection, sendAs) => {
|
|
30757
30758
|
if (sendAs === void 0) {
|
|
30758
30759
|
const saved = connection.savedSender?.bind(connection);
|
|
@@ -30777,7 +30778,7 @@ var typedSendAs = /* @__PURE__ */ __name((typed) => {
|
|
|
30777
30778
|
return sendAs;
|
|
30778
30779
|
}, "typedSendAs");
|
|
30779
30780
|
|
|
30780
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30781
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/search/total.js
|
|
30781
30782
|
var TOTAL_CAP = 1e4;
|
|
30782
30783
|
var totalOf = /* @__PURE__ */ __name((count4, shown, hasMore, exact = true) => {
|
|
30783
30784
|
const least = shown + (hasMore ? 1 : 0);
|
|
@@ -30788,7 +30789,7 @@ var totalOf = /* @__PURE__ */ __name((count4, shown, hasMore, exact = true) => {
|
|
|
30788
30789
|
return { value: count4, relation: exact ? "eq" : "gte" };
|
|
30789
30790
|
}, "totalOf");
|
|
30790
30791
|
|
|
30791
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30792
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/search/lucene/meaning-parts.js
|
|
30792
30793
|
var WORD_FIELDS = /* @__PURE__ */ new Set(["text", "exact"]);
|
|
30793
30794
|
var fieldsOfQuery = /* @__PURE__ */ __name((root, everything) => {
|
|
30794
30795
|
let narrows = false;
|
|
@@ -30817,7 +30818,7 @@ var meaningWords = /* @__PURE__ */ __name((root) => {
|
|
|
30817
30818
|
return wanted(root).join(" ").trim();
|
|
30818
30819
|
}, "meaningWords");
|
|
30819
30820
|
|
|
30820
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30821
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/search/question-plan.js
|
|
30821
30822
|
var words = /* @__PURE__ */ __name((text2) => normalize(text2).match(/[\p{L}\p{N}]+/gu) ?? [], "words");
|
|
30822
30823
|
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"));
|
|
30823
30824
|
var questionWord = /\b(?:what|which|how|who|where|when|can|could|should)\b|(?:^|\s)(?:сколько|какой|какая|какие|какое|кто|кому|кем|где|когда|как|что|можно|может|могут|ли)(?:\s|$)/iu;
|
|
@@ -30932,7 +30933,7 @@ function planQuestion(text2, strict = false) {
|
|
|
30932
30933
|
}
|
|
30933
30934
|
__name(planQuestion, "planQuestion");
|
|
30934
30935
|
|
|
30935
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30936
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/services/messages-combined.js
|
|
30936
30937
|
var COMBINED_DEFAULTS = { candidateDepth: 300, rrfK: 60, rerank: "all", chatCap: 0 };
|
|
30937
30938
|
var tokensOf = /* @__PURE__ */ __name((text2) => normalize(text2).match(/[\p{L}\p{N}\p{Co}\p{M}]+/gu) ?? [], "tokensOf");
|
|
30938
30939
|
var searchCombined = /* @__PURE__ */ __name(async (store, account, request, messenger = {}, options = COMBINED_DEFAULTS) => {
|
|
@@ -31125,7 +31126,7 @@ var signals = /* @__PURE__ */ __name((hit, terms, corrections, execution, mode,
|
|
|
31125
31126
|
return mode === "coverage" ? coverage * 4 : mode === "proximity" ? proximity : mode === "phrase" ? phrase : coverage * 4 + proximity + phrase;
|
|
31126
31127
|
}, "signals");
|
|
31127
31128
|
|
|
31128
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31129
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/services/messages-discovery.js
|
|
31129
31130
|
var MEANING_DEPTH = 100;
|
|
31130
31131
|
var RRF_K2 = 60;
|
|
31131
31132
|
var RERANK_DEPTH = 50;
|
|
@@ -31453,7 +31454,7 @@ var mixedWithReranker = /* @__PURE__ */ __name((head, scores) => {
|
|
|
31453
31454
|
})).sort((a, b) => b.mixed - a.mixed).map(({ hit }) => hit);
|
|
31454
31455
|
}, "mixedWithReranker");
|
|
31455
31456
|
|
|
31456
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31457
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/services/thread-context.js
|
|
31457
31458
|
var THREAD_BOUNDS = { maxHops: 8, maxMessages: 50, maxBytes: 65536, withinMs: 864e5 };
|
|
31458
31459
|
var bytes = /* @__PURE__ */ __name((items, links) => Buffer.byteLength(JSON.stringify({ items, links }), "utf8"), "bytes");
|
|
31459
31460
|
var threadBounds = /* @__PURE__ */ __name((options = {}) => {
|
|
@@ -31652,7 +31653,7 @@ var readThreadContext = /* @__PURE__ */ __name(async (store, account, chat, mess
|
|
|
31652
31653
|
return result;
|
|
31653
31654
|
}, "readThreadContext");
|
|
31654
31655
|
|
|
31655
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31656
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/services/messages-archive-search.js
|
|
31656
31657
|
var SEARCH_FILL_MS = 200;
|
|
31657
31658
|
var statsStore = /* @__PURE__ */ __name(async (store, account, request, messenger = {}) => {
|
|
31658
31659
|
const stop = Date.now() + SEARCH_FILL_MS;
|
|
@@ -31719,12 +31720,12 @@ var accountOf2 = /* @__PURE__ */ __name((hit) => {
|
|
|
31719
31720
|
}, "accountOf");
|
|
31720
31721
|
var keyOf3 = /* @__PURE__ */ __name(({ provider, account }) => `${provider}/${account}`, "keyOf");
|
|
31721
31722
|
|
|
31722
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31723
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/services/pictures.js
|
|
31723
31724
|
import { createHash as createHash10 } from "node:crypto";
|
|
31724
31725
|
import { readFile as readFile2, stat as stat3 } from "node:fs/promises";
|
|
31725
31726
|
import { setTimeout as sleep4 } from "node:timers/promises";
|
|
31726
31727
|
|
|
31727
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31728
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/domain/models.js
|
|
31728
31729
|
var GROUP_SETTINGS = [
|
|
31729
31730
|
"allCanPin",
|
|
31730
31731
|
"onlyAdminsAdd",
|
|
@@ -31738,7 +31739,7 @@ var ADMIN_RIGHTS = ["read", "members", "admins", "info", "pin", "link", "post",
|
|
|
31738
31739
|
var senderIsMe = /* @__PURE__ */ __name((message, account) => message.outgoing === true || message.senderId !== null && String(message.senderId) === account, "senderIsMe");
|
|
31739
31740
|
var MEDIA_KINDS = ["photo", "video", "file", "audio", "link"];
|
|
31740
31741
|
|
|
31741
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31742
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/services/file-download.js
|
|
31742
31743
|
import { createWriteStream, mkdirSync } from "node:fs";
|
|
31743
31744
|
import { link as link3, rm } from "node:fs/promises";
|
|
31744
31745
|
import { basename as basename6, join as join11, resolve as resolve6 } from "node:path";
|
|
@@ -31861,7 +31862,7 @@ var save = /* @__PURE__ */ __name(async (file2, directory2, fallbackName, { uniq
|
|
|
31861
31862
|
}
|
|
31862
31863
|
}, "save");
|
|
31863
31864
|
|
|
31864
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31865
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/services/pictures.js
|
|
31865
31866
|
var PICTURE_MAX_BYTES = 25 * 1024 * 1024;
|
|
31866
31867
|
var PICTURE_FLOOR = 0.25;
|
|
31867
31868
|
var PAGE5 = 50;
|
|
@@ -31878,7 +31879,7 @@ var picturesService = /* @__PURE__ */ __name((deps) => {
|
|
|
31878
31879
|
const directory2 = imageModelsDirectory(deps.env);
|
|
31879
31880
|
if (!isImageModelInstalled(model2, directory2))
|
|
31880
31881
|
throw new CliError("not_found", missingModel(model2.id), { reason: "model.not-downloaded", model: model2.id });
|
|
31881
|
-
const { openPictureEmbedder } = await import("./embedder-
|
|
31882
|
+
const { openPictureEmbedder } = await import("./embedder-O4EGMMUU.js");
|
|
31882
31883
|
return openPictureEmbedder(model2, directory2);
|
|
31883
31884
|
}, "open");
|
|
31884
31885
|
const embedder = /* @__PURE__ */ __name(() => {
|
|
@@ -32075,7 +32076,7 @@ var withPictures = /* @__PURE__ */ __name((messages, pictures) => ({
|
|
|
32075
32076
|
}, "search")
|
|
32076
32077
|
}), "withPictures");
|
|
32077
32078
|
|
|
32078
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32079
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/services/messages-meaning.js
|
|
32079
32080
|
var meaningLane = /* @__PURE__ */ __name((deps) => async (question, accounts, shared, within) => {
|
|
32080
32081
|
const target2 = embeddingTarget(deps, DEFAULT_TEXT_MODEL);
|
|
32081
32082
|
const skipped = /* @__PURE__ */ __name((reason, step) => ({
|
|
@@ -32124,7 +32125,7 @@ var meaningLane = /* @__PURE__ */ __name((deps) => async (question, accounts, sh
|
|
|
32124
32125
|
}
|
|
32125
32126
|
}, "meaningLane");
|
|
32126
32127
|
|
|
32127
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32128
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/services/messages-rerank.js
|
|
32128
32129
|
var rerankLane = /* @__PURE__ */ __name((deps) => {
|
|
32129
32130
|
const choice = deps.reranker ?? DEFAULT_RERANK_MODEL;
|
|
32130
32131
|
if (choice === "off")
|
|
@@ -32136,9 +32137,9 @@ var rerankLane = /* @__PURE__ */ __name((deps) => {
|
|
|
32136
32137
|
return { skipped: { reason: `${model.id} is not downloaded`, step: "models.download", model: model.id } };
|
|
32137
32138
|
try {
|
|
32138
32139
|
const warm = deps.embedders;
|
|
32139
|
-
const reranker = warm ? await warm.reranker(`rerank:${model.id}`, async () => (await import("./process-
|
|
32140
|
+
const reranker = warm ? await warm.reranker(`rerank:${model.id}`, async () => (await import("./process-3IGMEATV.js")).openRerankerProcess(model, directory2, {
|
|
32140
32141
|
threads: defaultThreads()
|
|
32141
|
-
})) : await (await import("./rerank-
|
|
32142
|
+
})) : await (await import("./rerank-V5YQQQAM.js")).openReranker(model, directory2);
|
|
32142
32143
|
return {
|
|
32143
32144
|
model: model.id,
|
|
32144
32145
|
score: /* @__PURE__ */ __name((question, passages) => reranker.score(plainWords(question), passages), "score"),
|
|
@@ -32158,17 +32159,17 @@ var rerankLane = /* @__PURE__ */ __name((deps) => {
|
|
|
32158
32159
|
};
|
|
32159
32160
|
}, "rerankLane");
|
|
32160
32161
|
|
|
32161
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32162
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/services/document-pictures.js
|
|
32162
32163
|
var openPictureEmbedderFor = /* @__PURE__ */ __name(async ({ env, command } = {}) => {
|
|
32163
32164
|
const model = imageModel(DEFAULT_IMAGE_MODEL);
|
|
32164
32165
|
const directory2 = imageModelsDirectory(env);
|
|
32165
32166
|
if (!isImageModelInstalled(model, directory2))
|
|
32166
32167
|
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 });
|
|
32167
|
-
const { openPictureEmbedder } = await import("./embedder-
|
|
32168
|
+
const { openPictureEmbedder } = await import("./embedder-O4EGMMUU.js");
|
|
32168
32169
|
return openPictureEmbedder(model, directory2);
|
|
32169
32170
|
}, "openPictureEmbedderFor");
|
|
32170
32171
|
|
|
32171
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32172
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/services/document-source.js
|
|
32172
32173
|
var documentSource = /* @__PURE__ */ __name((note, accounts, profiles, file2) => {
|
|
32173
32174
|
const metadata = note.frontMatter;
|
|
32174
32175
|
const account = accounts.find(({ id: id2 }) => String(id2) === note.folderId);
|
|
@@ -32183,7 +32184,7 @@ var documentSource = /* @__PURE__ */ __name((note, accounts, profiles, file2) =>
|
|
|
32183
32184
|
};
|
|
32184
32185
|
}, "documentSource");
|
|
32185
32186
|
|
|
32186
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32187
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/services/notes-title-tier.js
|
|
32187
32188
|
var plainQueryWords = /* @__PURE__ */ __name((query) => {
|
|
32188
32189
|
let root;
|
|
32189
32190
|
try {
|
|
@@ -32210,7 +32211,7 @@ var titleTiers = /* @__PURE__ */ __name((hits, words2) => {
|
|
|
32210
32211
|
return [...hits].sort((a, b) => rank(a) - rank(b));
|
|
32211
32212
|
}, "titleTiers");
|
|
32212
32213
|
|
|
32213
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32214
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/services/notes-search.js
|
|
32214
32215
|
var storeQuery = /* @__PURE__ */ __name(async (store, text2, { exact, timezone } = {}) => resolvedQuery(store, parsedQuery(text2, exact), timezone), "storeQuery");
|
|
32215
32216
|
var parsedQuery = /* @__PURE__ */ __name((text2, exact) => validateFields(parseLucene(text2, { ...SEARCH_QUERY, defaultField: exact ? "exact" : "text" })).root, "parsedQuery");
|
|
32216
32217
|
var resolvedQuery = /* @__PURE__ */ __name(async (store, root, timezone) => {
|
|
@@ -32620,7 +32621,7 @@ var searchNotesOf = /* @__PURE__ */ __name(async (store, account, text2, { accou
|
|
|
32620
32621
|
};
|
|
32621
32622
|
}, "searchNotesOf");
|
|
32622
32623
|
|
|
32623
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32624
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/services/events-search.js
|
|
32624
32625
|
var MAX_EVENTS_OFFSET = 1e3;
|
|
32625
32626
|
var iso3 = /* @__PURE__ */ __name((at) => at === null ? null : new Date(at).toISOString(), "iso");
|
|
32626
32627
|
var accountIdsOf = /* @__PURE__ */ __name(async (store, accounts) => {
|
|
@@ -32732,7 +32733,7 @@ var searchEvents = /* @__PURE__ */ __name(async (store, query, { limit = 20, off
|
|
|
32732
32733
|
};
|
|
32733
32734
|
}, "searchEvents");
|
|
32734
32735
|
|
|
32735
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32736
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/services/search-all.js
|
|
32736
32737
|
var RESOURCES_SEARCHED = ["messages", "mail", "notes", "events"];
|
|
32737
32738
|
var skippable = /* @__PURE__ */ __name((error) => error instanceof CliError && (error.code === "validation_error" || error.code === "not_found"), "skippable");
|
|
32738
32739
|
var filtersBeside = /* @__PURE__ */ __name((text2) => {
|
|
@@ -32940,7 +32941,7 @@ var searchAll = /* @__PURE__ */ __name(async (store, account, request, messenger
|
|
|
32940
32941
|
};
|
|
32941
32942
|
}, "searchAll");
|
|
32942
32943
|
|
|
32943
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32944
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/services/search-all-meetings.js
|
|
32944
32945
|
var RESOURCES_SEARCHED_WITH_MEETINGS = [...RESOURCES_SEARCHED, "meetings"];
|
|
32945
32946
|
var whole3 = /* @__PURE__ */ __name((value, minimum, maximum, label) => {
|
|
32946
32947
|
if (!Number.isSafeInteger(value) || value < minimum || value > maximum)
|
|
@@ -33187,7 +33188,7 @@ var searchAllOfSource = /* @__PURE__ */ __name(async (store, account, source, re
|
|
|
33187
33188
|
return { ...found, skipped: [...skipped, ...empty2, ...unnamed, ...found.skipped] };
|
|
33188
33189
|
}, "searchAllOfSource");
|
|
33189
33190
|
|
|
33190
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33191
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/services/server-search.js
|
|
33191
33192
|
var SERVER_SEARCH_KEY = "messages.server-search";
|
|
33192
33193
|
var SERVER_BOUNDS = { timeMs: 5e3, perCall: 100, maxCalls: 3 };
|
|
33193
33194
|
var DEFAULT_BACKEND = "both";
|
|
@@ -33376,7 +33377,7 @@ var searchServer = /* @__PURE__ */ __name(async (deps, request) => {
|
|
|
33376
33377
|
return { report, sources };
|
|
33377
33378
|
}, "searchServer");
|
|
33378
33379
|
|
|
33379
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33380
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/services/messages.js
|
|
33380
33381
|
var DELETE_AT_ONCE = 10;
|
|
33381
33382
|
var messagesService = /* @__PURE__ */ __name((deps) => {
|
|
33382
33383
|
const { guard } = deps;
|
|
@@ -33802,7 +33803,7 @@ var checkMediaOptions = /* @__PURE__ */ __name((messenger, asked, attachments) =
|
|
|
33802
33803
|
throw new CliError("validation_error", `${MEDIA_FLAGS[first2]} needs a --photo or --file`);
|
|
33803
33804
|
}, "checkMediaOptions");
|
|
33804
33805
|
|
|
33805
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33806
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/domain/channel-tags.js
|
|
33806
33807
|
var CHANNEL_TAG_RULES_VERSION = "keywords-v1";
|
|
33807
33808
|
var RULES = {
|
|
33808
33809
|
ai: [/\b(ai|gpt|llm|machine learning|artificial intelligence)\b/iu, /нейросет|искусственн/iu],
|
|
@@ -33817,7 +33818,7 @@ var classifyChannel = /* @__PURE__ */ __name((metadata) => Object.entries(RULES)
|
|
|
33817
33818
|
return fields.length ? [{ tag, score: fields.length / 3, fields }] : [];
|
|
33818
33819
|
}), "classifyChannel");
|
|
33819
33820
|
|
|
33820
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33821
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/services/metadata.js
|
|
33821
33822
|
var metadataService = /* @__PURE__ */ __name((deps) => {
|
|
33822
33823
|
const held = /* @__PURE__ */ __name(async (reference, { includeLeft = false } = {}) => {
|
|
33823
33824
|
const store = await deps.store();
|
|
@@ -33903,7 +33904,7 @@ var metadataService = /* @__PURE__ */ __name((deps) => {
|
|
|
33903
33904
|
};
|
|
33904
33905
|
}, "metadataService");
|
|
33905
33906
|
|
|
33906
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33907
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/moderation/run.js
|
|
33907
33908
|
var FIRST_LOOK_MS = 24 * 36e5;
|
|
33908
33909
|
var moderateWith = /* @__PURE__ */ __name(async (run) => {
|
|
33909
33910
|
const { chatId, title, rules, point, since, dryRun } = run;
|
|
@@ -33940,7 +33941,7 @@ var moderateWith = /* @__PURE__ */ __name(async (run) => {
|
|
|
33940
33941
|
return { chatId, rows, notes };
|
|
33941
33942
|
}, "moderateWith");
|
|
33942
33943
|
|
|
33943
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33944
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/services/moderation.js
|
|
33944
33945
|
var moderationService = /* @__PURE__ */ __name((deps) => {
|
|
33945
33946
|
const file2 = /* @__PURE__ */ __name(() => new ModerationRules(moderationPathFor(deps.messenger.app, deps.profile ?? "default", deps.env ?? process.env)), "file");
|
|
33946
33947
|
const group = /* @__PURE__ */ __name(async (chat) => {
|
|
@@ -34018,7 +34019,7 @@ var moderatorOf = /* @__PURE__ */ __name((adapter, deps) => ({
|
|
|
34018
34019
|
}, "removePerson")
|
|
34019
34020
|
}), "moderatorOf");
|
|
34020
34021
|
|
|
34021
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34022
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/services/private-people.js
|
|
34022
34023
|
var noteItem = /* @__PURE__ */ __name((provider, note) => ({
|
|
34023
34024
|
id: note.id,
|
|
34024
34025
|
contact: formatReference({ type: "contact", provider, id: note.personId }),
|
|
@@ -34062,7 +34063,7 @@ var privatePeopleService = /* @__PURE__ */ __name((deps) => {
|
|
|
34062
34063
|
};
|
|
34063
34064
|
}, "privatePeopleService");
|
|
34064
34065
|
|
|
34065
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34066
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/services/rankings.js
|
|
34066
34067
|
var empty = /* @__PURE__ */ __name(() => ({
|
|
34067
34068
|
total: 0,
|
|
34068
34069
|
population: 0,
|
|
@@ -34318,7 +34319,7 @@ var rankingsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
34318
34319
|
}, "evidence")
|
|
34319
34320
|
}), "rankingsService");
|
|
34320
34321
|
|
|
34321
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34322
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/services/searches.js
|
|
34322
34323
|
var savedSearchItem = /* @__PURE__ */ __name((one) => ({
|
|
34323
34324
|
id: one.id,
|
|
34324
34325
|
name: one.name,
|
|
@@ -34447,7 +34448,7 @@ var searchesService = /* @__PURE__ */ __name((deps) => {
|
|
|
34447
34448
|
};
|
|
34448
34449
|
}, "searchesService");
|
|
34449
34450
|
|
|
34450
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34451
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/services/tags.js
|
|
34451
34452
|
var TAGGING_QUERY = {
|
|
34452
34453
|
entity: "tagging",
|
|
34453
34454
|
backend: "sql",
|
|
@@ -34531,7 +34532,7 @@ var tagsService = /* @__PURE__ */ __name((deps) => {
|
|
|
34531
34532
|
};
|
|
34532
34533
|
}, "tagsService");
|
|
34533
34534
|
|
|
34534
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34535
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/services/topics.js
|
|
34535
34536
|
var actionOf = /* @__PURE__ */ __name(({ title, closed, pinned, hidden }) => {
|
|
34536
34537
|
const set = [closed, pinned, hidden].filter((one) => one !== void 0).length;
|
|
34537
34538
|
if (title !== void 0 || set !== 1)
|
|
@@ -34716,7 +34717,7 @@ var topicsService = /* @__PURE__ */ __name((deps) => {
|
|
|
34716
34717
|
};
|
|
34717
34718
|
}, "topicsService");
|
|
34718
34719
|
|
|
34719
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34720
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/services/evidence.js
|
|
34720
34721
|
import { createHash as createHash11, randomUUID as randomUUID5 } from "node:crypto";
|
|
34721
34722
|
var hash2 = /* @__PURE__ */ __name((value) => createHash11("sha256").update(JSON.stringify(value)).digest("hex"), "hash");
|
|
34722
34723
|
var positive = /* @__PURE__ */ __name((value, name, minimum = 1) => {
|
|
@@ -34790,7 +34791,7 @@ var prepareEvidencePacket = /* @__PURE__ */ __name(({ kind, source, page, limits
|
|
|
34790
34791
|
return { ...content, id: randomUUID5(), fingerprint: hash2(content) };
|
|
34791
34792
|
}, "prepareEvidencePacket");
|
|
34792
34793
|
|
|
34793
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34794
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/services/evidence-read.js
|
|
34794
34795
|
var readEvidencePacket = /* @__PURE__ */ __name(async (store, account, { chat, limit, before: before2 }, messenger = {}) => {
|
|
34795
34796
|
if (!Number.isSafeInteger(limit) || limit < 1 || limit > 100)
|
|
34796
34797
|
throw new CliError("validation_error", "evidence message limit must be an integer from 1 to 100");
|
|
@@ -34810,7 +34811,7 @@ var readEvidencePacket = /* @__PURE__ */ __name(async (store, account, { chat, l
|
|
|
34810
34811
|
return { ...packet, nextBeforeId: older && last ? last.id : null };
|
|
34811
34812
|
}, "readEvidencePacket");
|
|
34812
34813
|
|
|
34813
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34814
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/services/meeting-project-discovery.js
|
|
34814
34815
|
var scopeKeys = [
|
|
34815
34816
|
"accountId",
|
|
34816
34817
|
"meetingId",
|
|
@@ -34832,7 +34833,7 @@ var optionKeys = /* @__PURE__ */ new Set([
|
|
|
34832
34833
|
"maxVocabularyReadBytes"
|
|
34833
34834
|
]);
|
|
34834
34835
|
|
|
34835
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34836
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/context/communication-selection.js
|
|
34836
34837
|
var communicationFields = {
|
|
34837
34838
|
sources: pipe(array(strictObject({
|
|
34838
34839
|
id: pipe(string(), regex(/^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$/)),
|
|
@@ -34864,7 +34865,7 @@ var communicationRequest = /* @__PURE__ */ __name((value, preparationAfter) => {
|
|
|
34864
34865
|
return { ...input, after, before: before2 };
|
|
34865
34866
|
}, "communicationRequest");
|
|
34866
34867
|
|
|
34867
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34868
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/services/meeting-preparation-validation.js
|
|
34868
34869
|
var MEETING_PREPARATION_LIMITS = {
|
|
34869
34870
|
meetings: { min: 1, max: 20, default: 5 },
|
|
34870
34871
|
cues: { min: 1, max: 100, default: 10 },
|
|
@@ -34937,7 +34938,7 @@ var validateMeetingPreparationRequest = /* @__PURE__ */ __name((externalId, orig
|
|
|
34937
34938
|
};
|
|
34938
34939
|
}, "validateMeetingPreparationRequest");
|
|
34939
34940
|
|
|
34940
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34941
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/services/meeting-communications-selection.js
|
|
34941
34942
|
var validatePreparationCommunications = /* @__PURE__ */ __name((section, request, after) => {
|
|
34942
34943
|
const fail2 = /* @__PURE__ */ __name(() => {
|
|
34943
34944
|
throw new CliError("invalid_response", "Preparation communications returned another selection or invalid evidence");
|
|
@@ -34985,7 +34986,7 @@ var validatePreparationCommunications = /* @__PURE__ */ __name((section, request
|
|
|
34985
34986
|
}
|
|
34986
34987
|
}, "validatePreparationCommunications");
|
|
34987
34988
|
|
|
34988
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34989
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/services/package-upgrade.js
|
|
34989
34990
|
var upgradePackage = /* @__PURE__ */ __name(async ({ current, command, packageName, check: check2 }, ports) => {
|
|
34990
34991
|
const installer = ports.installer();
|
|
34991
34992
|
const argv = updateCommand(installer, packageName);
|
|
@@ -35050,7 +35051,7 @@ var dayAfter = /* @__PURE__ */ __name((published) => {
|
|
|
35050
35051
|
return Number.isNaN(time) ? null : new Date(time + 24 * 60 * 60 * 1e3).toISOString();
|
|
35051
35052
|
}, "dayAfter");
|
|
35052
35053
|
|
|
35053
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35054
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/services/index.js
|
|
35054
35055
|
var servicesFor = /* @__PURE__ */ __name((deps) => {
|
|
35055
35056
|
const pictures = picturesService(deps);
|
|
35056
35057
|
const base = {
|
|
@@ -35086,7 +35087,7 @@ var servicesFor = /* @__PURE__ */ __name((deps) => {
|
|
|
35086
35087
|
return deps.messenger.services ? { ...base, ...deps.messenger.services(base, deps) } : base;
|
|
35087
35088
|
}, "servicesFor");
|
|
35088
35089
|
|
|
35089
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35090
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/background/relay.js
|
|
35090
35091
|
import { createHash as createHash12 } from "node:crypto";
|
|
35091
35092
|
import { chmodSync, lstatSync, mkdirSync as mkdirSync2, rmSync } from "node:fs";
|
|
35092
35093
|
import { createConnection, createServer } from "node:net";
|
|
@@ -35307,7 +35308,7 @@ var relayCommand = /* @__PURE__ */ __name((path, request, options) => new Promis
|
|
|
35307
35308
|
}, () => finish({ error: stopped() }));
|
|
35308
35309
|
}), "relayCommand");
|
|
35309
35310
|
|
|
35310
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35311
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-relay.js
|
|
35311
35312
|
var lentConnection = /* @__PURE__ */ __name((connection, watchers) => throughWrapper(connection, {
|
|
35312
35313
|
close: /* @__PURE__ */ __name(async () => {
|
|
35313
35314
|
}, "close"),
|