@wirecat/cli-memo 0.131.52 → 0.131.53
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/memo.js +2 -2
- package/dist/bundle/{all-profiles-ZFVBLT2D.js → all-profiles-PJR2VHDP.js} +5 -5
- package/dist/bundle/{anthropic-UG2YHOT7.js → anthropic-ZUDIWREK.js} +3 -3
- package/dist/bundle/{app-server-AQYA4TB6.js → app-server-EYNQ4L2V.js} +35 -35
- package/dist/bundle/auto-JV4T2URZ.js +86 -0
- package/dist/bundle/{bun-QJUFWKEZ.js → bun-W2ZP6I6Z.js} +2 -2
- package/dist/bundle/{bun-sqlite-GWVRHYF4.js → bun-sqlite-T2CTJ6AR.js} +2 -2
- package/dist/bundle/{chunk-RYY4YRKQ.js → chunk-26QKDK5P.js} +5 -5
- package/dist/bundle/{chunk-EEEZGK2J.js → chunk-2NVP4FZH.js} +1 -1
- package/dist/bundle/{chunk-NNUP36UQ.js → chunk-34GJQ4ZR.js} +1 -1
- package/dist/bundle/{chunk-6PQIXQFD.js → chunk-3MWNNJII.js} +8 -8
- package/dist/bundle/{chunk-AU5GAMGM.js → chunk-4335SGVD.js} +2170 -1265
- package/dist/bundle/{chunk-M64NVDB4.js → chunk-4VQ7FPNW.js} +3 -3
- package/dist/bundle/{chunk-6BVWU2UM.js → chunk-5UM2OEOR.js} +2 -2
- package/dist/bundle/{chunk-S7X5ZMQN.js → chunk-643B3X4D.js} +2 -2
- package/dist/bundle/{chunk-G52Y3KOO.js → chunk-6NJ5OI2S.js} +1 -1
- package/dist/bundle/{chunk-X6XIW76O.js → chunk-7ZO2LAFF.js} +5 -5
- package/dist/bundle/{chunk-4ISZPK6D.js → chunk-AF2ZDP3M.js} +1 -1
- package/dist/bundle/{chunk-6GF4TIVM.js → chunk-AYY5CYJJ.js} +1 -1
- package/dist/bundle/{chunk-2CBOPOC7.js → chunk-B5VQSSL2.js} +12 -12
- package/dist/bundle/{chunk-G4Z4WSIG.js → chunk-BC7N6IQ6.js} +1 -1
- package/dist/bundle/{chunk-3O46NA2H.js → chunk-BEO6VJ2E.js} +47 -47
- package/dist/bundle/{chunk-NIUWQP7F.js → chunk-CADGAURO.js} +28 -28
- package/dist/bundle/{chunk-ERZBEQAY.js → chunk-CQPZUKTI.js} +296 -261
- package/dist/bundle/{chunk-N5J6GT7C.js → chunk-D63QZQR7.js} +4 -4
- package/dist/bundle/{chunk-ETYAJPIT.js → chunk-DDD3CXHR.js} +20 -20
- package/dist/bundle/{chunk-GJWNHWG7.js → chunk-F3BUTC2N.js} +51 -36
- package/dist/bundle/{chunk-U4ZD5SYO.js → chunk-FUINFNUC.js} +1 -1
- package/dist/bundle/{chunk-IALGFO44.js → chunk-GESLAB4N.js} +2 -2
- package/dist/bundle/{chunk-LX65W7IK.js → chunk-I3TF3CDE.js} +4 -4
- package/dist/bundle/{chunk-FWCFEJWD.js → chunk-IRFHHNSX.js} +159 -151
- package/dist/bundle/{chunk-VOWEZBOJ.js → chunk-IVDBHH3N.js} +1 -1
- package/dist/bundle/{chunk-7SVHEGRO.js → chunk-JB43Q2QL.js} +1 -1
- package/dist/bundle/{chunk-ZVR6S4XB.js → chunk-JBQP2M7J.js} +7 -7
- package/dist/bundle/{chunk-MICF3K6S.js → chunk-JGY2PJ3N.js} +12 -12
- package/dist/bundle/{chunk-NZKDNBYE.js → chunk-KK2ATSEC.js} +6 -6
- package/dist/bundle/{chunk-XIHQOSCT.js → chunk-KTVYCPJW.js} +1 -1
- package/dist/bundle/{chunk-55GFDV24.js → chunk-LBGZT3W4.js} +5 -5
- package/dist/bundle/{chunk-ZKXIZD4C.js → chunk-LCE5LBZC.js} +4 -4
- package/dist/bundle/{chunk-A7DXLOMS.js → chunk-LCP4TVBX.js} +1 -1
- package/dist/bundle/{chunk-EKQNL6VJ.js → chunk-MFVZXEQN.js} +21 -21
- package/dist/bundle/{chunk-IKG2OPHU.js → chunk-MGDBKE7E.js} +6 -6
- package/dist/bundle/{chunk-6ZQK3L35.js → chunk-MU4MPJCU.js} +2 -2
- package/dist/bundle/{chunk-A36ASW3I.js → chunk-MV5W4FLV.js} +1 -1
- package/dist/bundle/{chunk-AGOUP5AH.js → chunk-O7CBAY6J.js} +4 -4
- package/dist/bundle/{chunk-I4LXP4HQ.js → chunk-OKERVM3M.js} +4 -4
- package/dist/bundle/{chunk-G7K4J3NS.js → chunk-OSPAMIIY.js} +3 -3
- package/dist/bundle/{chunk-5WT6SEXS.js → chunk-P3MKPY7D.js} +21 -9
- package/dist/bundle/{chunk-PKVXZZTM.js → chunk-P5UTNYA7.js} +2 -2
- package/dist/bundle/{chunk-2GEV2TXW.js → chunk-PHP3T567.js} +3 -3
- package/dist/bundle/{chunk-OIPJYDLZ.js → chunk-PSJB456T.js} +1 -1
- package/dist/bundle/{chunk-65576OCE.js → chunk-RSBROHX4.js} +1 -1
- package/dist/bundle/{chunk-NUQ3N3V3.js → chunk-RX6JTLKD.js} +7 -7
- package/dist/bundle/{chunk-KGPD3OCD.js → chunk-SR3ZNX24.js} +259 -154
- package/dist/bundle/{chunk-NOEXRGYH.js → chunk-T5WGWLY2.js} +10 -10
- package/dist/bundle/{chunk-ZVJAZXME.js → chunk-UBZN4EWJ.js} +4 -4
- package/dist/bundle/{chunk-OWS67HTV.js → chunk-VBYV6XQI.js} +2 -2
- package/dist/bundle/{chunk-ZYQEWB6P.js → chunk-VPCNLTME.js} +2 -2
- package/dist/bundle/{chunk-TM6R3Z45.js → chunk-VQTU4ILC.js} +1 -1
- package/dist/bundle/{chunk-PBM5GH7S.js → chunk-VXZ7FWKU.js} +2 -2
- package/dist/bundle/{chunk-LUHMRW3P.js → chunk-WNQUOEUV.js} +4 -4
- package/dist/bundle/{chunk-EQUPZVV6.js → chunk-WXFNUZZU.js} +5 -5
- package/dist/bundle/{chunk-TQS6ZKC3.js → chunk-WYZDNDQ5.js} +266 -265
- package/dist/bundle/{chunk-U6E3BGHO.js → chunk-ZTM4UUCP.js} +9 -9
- package/dist/bundle/{command-contract-7AADJ3UC.js → command-contract-EWPKHGAZ.js} +11 -11
- package/dist/bundle/{decode-XMIBTI5O.js → decode-UWT3Y66W.js} +2 -2
- package/dist/bundle/{echarts-W7DPDJA5.js → echarts-7VGTR45R.js} +2 -2
- package/dist/bundle/{embed-EP3KKO6Y.js → embed-CM2QSTNK.js} +3 -3
- package/dist/bundle/{embedder-ENGCALJ7.js → embedder-CDCAMVV7.js} +6 -6
- package/dist/bundle/{entry-BGSKREOS.js → entry-WHEWBNJL.js} +4 -4
- package/dist/bundle/failure-XQ7TMBYM.js +66 -0
- package/dist/bundle/{first-run-4EBMV2EM.js → first-run-ZBIQO5RZ.js} +5 -5
- package/dist/bundle/{first-screen-2TM3BF2Y.js → first-screen-CUAY5N6E.js} +12 -12
- package/dist/bundle/{instructions-A42XETMK.js → instructions-LYKSTUGQ.js} +1 -1
- package/dist/bundle/{mcp-5LAWRSJK.js → mcp-I72UY3QP.js} +35 -35
- package/dist/bundle/memo.js +6 -6
- package/dist/bundle/{node-IRL66JK2.js → node-LFRTSZBZ.js} +2 -2
- package/dist/bundle/{node-sqlite-SOGTH72B.js → node-sqlite-Y47T5FTT.js} +3 -3
- package/dist/bundle/{oauth-RB5W3AC7.js → oauth-YM5C6VS3.js} +4 -4
- package/dist/bundle/{open-552EJ4JC.js → open-WPA4DW5G.js} +2 -2
- package/dist/bundle/{openai-ZLOHEEDH.js → openai-RCPT23DA.js} +7 -7
- package/dist/bundle/{process-46SUXGWW.js → process-P2X2KFMR.js} +1 -1
- package/dist/bundle/{program-ZLWKMT65.js → program-LE3UATKG.js} +58 -58
- package/dist/bundle/{prompt-2NHJSYKX.js → prompt-65WPTVYC.js} +2 -2
- package/dist/bundle/{recognize-2LDM6KHL.js → recognize-MEFMK7HT.js} +1 -1
- package/dist/bundle/{remote-DBYHHENF.js → remote-4XIR3ZYK.js} +4 -4
- package/dist/bundle/{rerank-N5T2TIIY.js → rerank-YRLAXFFL.js} +4 -4
- package/dist/bundle/{serve-S6B54R2F.js → serve-6SPZH6CY.js} +6 -6
- package/dist/bundle/server-FB75UHSF.js +48 -0
- package/dist/bundle/server-IELXA6S2.js +61 -0
- package/dist/bundle/{server-QH6AKPRV.js → server-MU43SKL5.js} +50 -50
- package/dist/bundle/{state-ZXZGIIJW.js → state-G34NVZ7F.js} +3 -3
- package/dist/bundle/{store-PNJNDMQ4.js → store-6U4SYK4Q.js} +17 -9
- package/dist/bundle/store-maintenance-command-ONVPBZLT.js +48 -0
- package/dist/bundle/update-TO3RIYTH.js +69 -0
- package/dist/knowledge/relationships.d.ts +5 -1
- package/dist/knowledge/relationships.d.ts.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +2 -2
- package/skills/morning-digest/SKILL.md +38 -13
- package/dist/bundle/auto-2AY6K6DI.js +0 -86
- package/dist/bundle/failure-ZKQVXWAB.js +0 -66
- package/dist/bundle/server-KZZHFPTZ.js +0 -61
- package/dist/bundle/server-WAIPBBM7.js +0 -48
- package/dist/bundle/store-maintenance-command-2ZVV3DGA.js +0 -48
- package/dist/bundle/update-6HXLLGTQ.js +0 -69
- /package/dist/bundle/{chunk-DPRGC5YX.js → chunk-2H36DXV7.js} +0 -0
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
sameOrdinaryFile,
|
|
9
9
|
syncDirectory,
|
|
10
10
|
writeFileAtomic
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-JGY2PJ3N.js";
|
|
12
12
|
import {
|
|
13
13
|
Command,
|
|
14
14
|
DEFAULT_IMAGE_MODEL,
|
|
@@ -49,14 +49,14 @@ import {
|
|
|
49
49
|
typedCommand,
|
|
50
50
|
vectorModelKey,
|
|
51
51
|
withAttempt
|
|
52
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-IRFHHNSX.js";
|
|
53
53
|
import {
|
|
54
54
|
isNewer,
|
|
55
55
|
updateCommand
|
|
56
56
|
} from "./chunk-MZMJALJT.js";
|
|
57
57
|
import {
|
|
58
58
|
readOnlyLockOf
|
|
59
|
-
} from "./chunk-
|
|
59
|
+
} from "./chunk-6NJ5OI2S.js";
|
|
60
60
|
import {
|
|
61
61
|
AGENDA_COLUMNS,
|
|
62
62
|
CHAT_COLUMNS,
|
|
@@ -160,7 +160,7 @@ import {
|
|
|
160
160
|
validateAst,
|
|
161
161
|
validateFields,
|
|
162
162
|
withoutField
|
|
163
|
-
} from "./chunk-
|
|
163
|
+
} from "./chunk-4335SGVD.js";
|
|
164
164
|
import {
|
|
165
165
|
EVENT_QUERY,
|
|
166
166
|
MEETING_FIELD_NAMES,
|
|
@@ -185,6 +185,7 @@ import {
|
|
|
185
185
|
implicitTextTerms,
|
|
186
186
|
importFiles,
|
|
187
187
|
isClosedState,
|
|
188
|
+
isUsable,
|
|
188
189
|
liftMeetingFields,
|
|
189
190
|
listed,
|
|
190
191
|
meetingCueFingerprint,
|
|
@@ -215,28 +216,28 @@ import {
|
|
|
215
216
|
validateQuery,
|
|
216
217
|
walkQuery,
|
|
217
218
|
zonedMoment
|
|
218
|
-
} from "./chunk-
|
|
219
|
+
} from "./chunk-SR3ZNX24.js";
|
|
219
220
|
import {
|
|
220
221
|
damagedFile,
|
|
221
222
|
isCliFailure,
|
|
222
223
|
sqliteCode
|
|
223
|
-
} from "./chunk-
|
|
224
|
+
} from "./chunk-P5UTNYA7.js";
|
|
224
225
|
import {
|
|
225
226
|
DEFAULT_STEMMERS,
|
|
226
227
|
createStemmer,
|
|
227
228
|
fold,
|
|
228
229
|
normalize
|
|
229
|
-
} from "./chunk-
|
|
230
|
+
} from "./chunk-RX6JTLKD.js";
|
|
230
231
|
import {
|
|
231
232
|
DEFAULT_TASK_CATEGORIES,
|
|
232
233
|
FALLBACK_CATEGORY
|
|
233
|
-
} from "./chunk-
|
|
234
|
+
} from "./chunk-UBZN4EWJ.js";
|
|
234
235
|
import {
|
|
235
236
|
MAX_MODEL_IMAGE_BYTES
|
|
236
|
-
} from "./chunk-
|
|
237
|
+
} from "./chunk-KTVYCPJW.js";
|
|
237
238
|
import {
|
|
238
239
|
remoteKey
|
|
239
|
-
} from "./chunk-
|
|
240
|
+
} from "./chunk-VPCNLTME.js";
|
|
240
241
|
import {
|
|
241
242
|
Unzip,
|
|
242
243
|
UnzipInflate,
|
|
@@ -247,15 +248,15 @@ import {
|
|
|
247
248
|
placedText,
|
|
248
249
|
runEmbedders,
|
|
249
250
|
textModelsDirectory
|
|
250
|
-
} from "./chunk-
|
|
251
|
+
} from "./chunk-26QKDK5P.js";
|
|
251
252
|
import {
|
|
252
253
|
installFiles,
|
|
253
254
|
megabytes
|
|
254
|
-
} from "./chunk-
|
|
255
|
+
} from "./chunk-OSPAMIIY.js";
|
|
255
256
|
import {
|
|
256
257
|
storePath,
|
|
257
258
|
wirecatDirectory
|
|
258
|
-
} from "./chunk-
|
|
259
|
+
} from "./chunk-RSBROHX4.js";
|
|
259
260
|
import {
|
|
260
261
|
resolvePaths,
|
|
261
262
|
writeSecurely
|
|
@@ -16908,7 +16909,7 @@ var require_lib3 = __commonJS({
|
|
|
16908
16909
|
}
|
|
16909
16910
|
});
|
|
16910
16911
|
|
|
16911
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16912
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/conversations/link.js
|
|
16912
16913
|
var RULES_VERSION = 5;
|
|
16913
16914
|
var LOOK_BACK = 50;
|
|
16914
16915
|
var SAME_SENDER_WITHIN = 10;
|
|
@@ -16998,10 +16999,10 @@ var latest = /* @__PURE__ */ __name((window3, matches) => {
|
|
|
16998
16999
|
var sameThread = /* @__PURE__ */ __name((a, b) => a.threadId === b.threadId, "sameThread");
|
|
16999
17000
|
var link = /* @__PURE__ */ __name((message, parentId, source, kind, confidence, method) => ({ messageId: message.id, parentId, source, kind, confidence, method }), "link");
|
|
17000
17001
|
|
|
17001
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17002
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/ports/traits.js
|
|
17002
17003
|
var syncsOneChat = /* @__PURE__ */ __name((messenger) => messenger.history !== "store" || messenger.historyOnDemand === true, "syncsOneChat");
|
|
17003
17004
|
|
|
17004
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17005
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/store/damage.js
|
|
17005
17006
|
var DERIVED = /* @__PURE__ */ new Set(["mentions", "involvements", "embeddings"]);
|
|
17006
17007
|
var named = /* @__PURE__ */ __name((tables) => tables.length <= 5 ? tables.join(", ") : `${tables.slice(0, 5).join(", ")} and ${tables.length - 5} more`, "named");
|
|
17007
17008
|
var isDerivedTable = /* @__PURE__ */ __name((table, searchIndexes) => DERIVED.has(table) || table.startsWith("vector_index_") || searchIndexes.some((index) => table === index || table.startsWith(`${index}_`)), "isDerivedTable");
|
|
@@ -17048,7 +17049,7 @@ var explainDamage = /* @__PURE__ */ __name((health, command, mark = null) => {
|
|
|
17048
17049
|
};
|
|
17049
17050
|
}, "explainDamage");
|
|
17050
17051
|
|
|
17051
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17052
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/store/health.js
|
|
17052
17053
|
import { existsSync, statSync } from "node:fs";
|
|
17053
17054
|
var JSON_COLUMNS = {
|
|
17054
17055
|
accounts: ["settings"],
|
|
@@ -17190,10 +17191,10 @@ var storeHealth = /* @__PURE__ */ __name(async (path, { deep = false } = {}) =>
|
|
|
17190
17191
|
}
|
|
17191
17192
|
}, "storeHealth");
|
|
17192
17193
|
|
|
17193
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17194
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/store/sqlite/document-transfer/snapshot.js
|
|
17194
17195
|
var MAX_BYTES = 16 * 1024 * 1024;
|
|
17195
17196
|
|
|
17196
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17197
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/store/project-transfer/preview.js
|
|
17197
17198
|
var previewProjectAnnotationSnapshot = /* @__PURE__ */ __name(async (options) => {
|
|
17198
17199
|
if (!options || typeof options !== "object" || Array.isArray(options))
|
|
17199
17200
|
throw new CliError("validation_error", "project preview options are required");
|
|
@@ -17219,7 +17220,7 @@ var previewProjectAnnotationSnapshot = /* @__PURE__ */ __name(async (options) =>
|
|
|
17219
17220
|
});
|
|
17220
17221
|
}, "previewProjectAnnotationSnapshot");
|
|
17221
17222
|
|
|
17222
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17223
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/store/project-transfer/snapshot.js
|
|
17223
17224
|
var snapshotProjectAnnotations = /* @__PURE__ */ __name(async (options) => {
|
|
17224
17225
|
if (!options || typeof options !== "object" || Array.isArray(options))
|
|
17225
17226
|
throw new CliError("validation_error", "snapshot options are required");
|
|
@@ -17240,7 +17241,7 @@ var snapshotProjectAnnotations = /* @__PURE__ */ __name(async (options) => {
|
|
|
17240
17241
|
}
|
|
17241
17242
|
}, "snapshotProjectAnnotations");
|
|
17242
17243
|
|
|
17243
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17244
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/cli/messenger/lacks.js
|
|
17244
17245
|
var COMMAND_NEEDS = {
|
|
17245
17246
|
"account update": ["updateProfile", "change the profile"],
|
|
17246
17247
|
"account sessions list": ["sessions", "list the account's sessions"],
|
|
@@ -17290,7 +17291,7 @@ var hideNever = /* @__PURE__ */ __name((messenger, group) => {
|
|
|
17290
17291
|
return group;
|
|
17291
17292
|
}, "hideNever");
|
|
17292
17293
|
|
|
17293
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17294
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/services/members-audit.js
|
|
17294
17295
|
var AUDIT_PAGE = 200;
|
|
17295
17296
|
var AUDIT_BUDGET = 10;
|
|
17296
17297
|
var AUDIT_PAUSE_MS = 1e3;
|
|
@@ -17370,7 +17371,7 @@ var burstJoins = /* @__PURE__ */ __name((members) => {
|
|
|
17370
17371
|
return found;
|
|
17371
17372
|
}, "burstJoins");
|
|
17372
17373
|
|
|
17373
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17374
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/meetings/cli/query-options.js
|
|
17374
17375
|
var queryWordsAfterOptions = /* @__PURE__ */ __name((command) => {
|
|
17375
17376
|
command.allowUnknownOption();
|
|
17376
17377
|
const parse = command.parseOptions.bind(command);
|
|
@@ -17390,7 +17391,7 @@ var queryWordsAfterOptions = /* @__PURE__ */ __name((command) => {
|
|
|
17390
17391
|
return command;
|
|
17391
17392
|
}, "queryWordsAfterOptions");
|
|
17392
17393
|
|
|
17393
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17394
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/meetings/cli/passage.js
|
|
17394
17395
|
var count = /* @__PURE__ */ __name((value) => {
|
|
17395
17396
|
if (!/^(0|[1-9]\d*)$/.test(value) || !Number.isSafeInteger(Number(value)))
|
|
17396
17397
|
throw new CliError("validation_error", "expected a nonnegative safe integer");
|
|
@@ -17432,7 +17433,7 @@ var addMeetingPassageCommandDefinition = /* @__PURE__ */ __name((program, deps)
|
|
|
17432
17433
|
var createMeetingPassageCommand = sharedCommand(createMeetingPassageCommandDefinition);
|
|
17433
17434
|
var addMeetingPassageCommand = sharedCommand(addMeetingPassageCommandDefinition);
|
|
17434
17435
|
|
|
17435
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17436
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/meetings/cli/project-evidence.js
|
|
17436
17437
|
var integer2 = /* @__PURE__ */ __name((value) => {
|
|
17437
17438
|
if (!/^[1-9]\d*$/.test(value) || !Number.isSafeInteger(Number(value)))
|
|
17438
17439
|
throw new CliError("validation_error", "expected a positive safe integer");
|
|
@@ -17455,7 +17456,7 @@ ${fieldsHelp(MEETING_PROJECT_EVIDENCE_QUERY)}`).option("--limit <n>", "hits in o
|
|
|
17455
17456
|
}, "addMeetingProjectEvidenceCommandDefinition");
|
|
17456
17457
|
var addMeetingProjectEvidenceCommand = sharedCommand(addMeetingProjectEvidenceCommandDefinition);
|
|
17457
17458
|
|
|
17458
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17459
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/meetings/cli/search.js
|
|
17459
17460
|
var ZONED = /(?:Z|[+-]\d{2}:?\d{2})$/i;
|
|
17460
17461
|
var moment = /* @__PURE__ */ __name((flag, end, readIn) => (value) => {
|
|
17461
17462
|
const zone = timezoneOf();
|
|
@@ -17541,7 +17542,7 @@ var addMeetingSearchCommandDefinition = /* @__PURE__ */ __name((program, deps) =
|
|
|
17541
17542
|
var createMeetingSearchCommand = sharedCommand(createMeetingSearchCommandDefinition);
|
|
17542
17543
|
var addMeetingSearchCommand = sharedCommand(addMeetingSearchCommandDefinition);
|
|
17543
17544
|
|
|
17544
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17545
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/meetings/cli/index.js
|
|
17545
17546
|
var integer4 = /* @__PURE__ */ __name((text2) => {
|
|
17546
17547
|
if (!/^[1-9]\d*$/.test(text2) || !Number.isSafeInteger(Number(text2)))
|
|
17547
17548
|
throw new InvalidArgumentError("expected a positive integer");
|
|
@@ -17685,7 +17686,7 @@ ${fieldsHelp(EVENT_QUERY, MEETING_QUERY_GUIDE)}`);
|
|
|
17685
17686
|
}, "addMeetingCommandsDefinition");
|
|
17686
17687
|
var addMeetingCommands = sharedCommand(addMeetingCommandsDefinition);
|
|
17687
17688
|
|
|
17688
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17689
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/cli/list-query.js
|
|
17689
17690
|
var LIST_QUERY_GUIDE = "https://github.com/WireCatLabs/cli-core/blob/main/docs/search/query-language.md";
|
|
17690
17691
|
var QUERY_ARGUMENT = "field:value terms that narrow the list \u2014 the fields are below";
|
|
17691
17692
|
var withQuery = /* @__PURE__ */ __name((command, registry) => {
|
|
@@ -17818,7 +17819,7 @@ var termField = /* @__PURE__ */ __name((name, type, example, more = {}) => nativ
|
|
|
17818
17819
|
var queryHelp = /* @__PURE__ */ __name((registry) => `
|
|
17819
17820
|
${fieldsHelp(registry, LIST_QUERY_GUIDE)}`, "queryHelp");
|
|
17820
17821
|
|
|
17821
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17822
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/cli/paging.js
|
|
17822
17823
|
var positiveCount = /* @__PURE__ */ __name((flag) => (value) => {
|
|
17823
17824
|
if (!/^\d+$/.test(value.trim()) || Number(value) < 1)
|
|
17824
17825
|
throw new CliError("validation_error", `${flag} takes a whole number from 1 upwards, not "${value}"`);
|
|
@@ -17827,7 +17828,7 @@ var positiveCount = /* @__PURE__ */ __name((flag) => (value) => {
|
|
|
17827
17828
|
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");
|
|
17828
17829
|
var window = /* @__PURE__ */ __name(({ limit, page, all }) => all ? { offset: 0 } : { limit, offset: (page - 1) * limit }, "window");
|
|
17829
17830
|
|
|
17830
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17831
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/cli/messenger/chat-answers.js
|
|
17831
17832
|
var defined = /* @__PURE__ */ __name((record2) => Object.fromEntries(Object.entries(record2).filter(([, value]) => value !== void 0)), "defined");
|
|
17832
17833
|
var chatRef = /* @__PURE__ */ __name((account, chat) => formatReference({ type: "chat", provider: account.provider, account: account.account, chat }), "chatRef");
|
|
17833
17834
|
var settingsOf = /* @__PURE__ */ __name((settings) => defined({
|
|
@@ -18089,7 +18090,7 @@ var sessionAnswer = /* @__PURE__ */ __name(({ current, client, device, location,
|
|
|
18089
18090
|
...createdAt === void 0 ? {} : { created_at: createdAt }
|
|
18090
18091
|
}), "sessionAnswer");
|
|
18091
18092
|
|
|
18092
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18093
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/ports/messenger.js
|
|
18093
18094
|
var throughWrapper = /* @__PURE__ */ __name((inner, handled, wrap = (_, call) => call) => new Proxy(handled, {
|
|
18094
18095
|
get: /* @__PURE__ */ __name((own, key) => {
|
|
18095
18096
|
if (key in own)
|
|
@@ -18106,12 +18107,12 @@ var capability = /* @__PURE__ */ __name((adapter, method, what) => {
|
|
|
18106
18107
|
return found.bind(adapter);
|
|
18107
18108
|
}, "capability");
|
|
18108
18109
|
|
|
18109
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18110
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/sends/send-id.js
|
|
18110
18111
|
import { randomBytes } from "node:crypto";
|
|
18111
18112
|
var newSendId = /* @__PURE__ */ __name(() => randomBytes(8).readBigInt64BE().toString(), "newSendId");
|
|
18112
18113
|
var newOperationId = newSendId;
|
|
18113
18114
|
|
|
18114
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18115
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/services/deps.js
|
|
18115
18116
|
var accountStore = /* @__PURE__ */ __name(async (deps) => (await deps.store()).forAccount(await deps.account()), "accountStore");
|
|
18116
18117
|
var crossAccount = /* @__PURE__ */ __name((deps, _reason) => deps.store(), "crossAccount");
|
|
18117
18118
|
var NO_LOCAL_STORE = "this answer comes from the messenger, not from the local store";
|
|
@@ -18186,7 +18187,7 @@ var storeOnlyDeps = /* @__PURE__ */ __name((store, account, { app, env }) => {
|
|
|
18186
18187
|
return { ...storedDeps(messenger, store, account, guard), ...env === void 0 ? {} : { env } };
|
|
18187
18188
|
}, "storeOnlyDeps");
|
|
18188
18189
|
|
|
18189
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18190
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/services/patience.js
|
|
18190
18191
|
import { setTimeout as sleep } from "node:timers/promises";
|
|
18191
18192
|
var LONGEST_WAIT_MS = 5 * 60 * 1e3;
|
|
18192
18193
|
var patiently = /* @__PURE__ */ __name(async (request, note2, stop) => {
|
|
@@ -18209,10 +18210,10 @@ var patiently = /* @__PURE__ */ __name(async (request, note2, stop) => {
|
|
|
18209
18210
|
}
|
|
18210
18211
|
}, "patiently");
|
|
18211
18212
|
|
|
18212
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18213
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/services/archive.js
|
|
18213
18214
|
import { setTimeout as sleep2 } from "node:timers/promises";
|
|
18214
18215
|
|
|
18215
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18216
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/services/backfill-estimate.js
|
|
18216
18217
|
var REQUEST_MS = 400;
|
|
18217
18218
|
var estimateBackfill = /* @__PURE__ */ __name(({ ranges, held, newest, page, maxPages, pauseMs }) => {
|
|
18218
18219
|
const lowest = ranges[0];
|
|
@@ -18235,13 +18236,13 @@ var estimateBackfill = /* @__PURE__ */ __name(({ ranges, held, newest, page, max
|
|
|
18235
18236
|
};
|
|
18236
18237
|
}, "estimateBackfill");
|
|
18237
18238
|
|
|
18238
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18239
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/domain/recovery.js
|
|
18239
18240
|
var withRecovery = /* @__PURE__ */ __name((error) => ({
|
|
18240
18241
|
...error,
|
|
18241
18242
|
retryable: typeof error.retryable === "boolean" ? error.retryable : error.code === "rate_limited" || error.status === 429
|
|
18242
18243
|
}), "withRecovery");
|
|
18243
18244
|
|
|
18244
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18245
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/services/batch.js
|
|
18245
18246
|
var actionable = /* @__PURE__ */ __name((error) => {
|
|
18246
18247
|
if (isCliFailure(error))
|
|
18247
18248
|
return withRecovery({ code: error.code, message: error.message, ...error.details });
|
|
@@ -18324,7 +18325,7 @@ var mergeBatches = /* @__PURE__ */ __name((a, b) => {
|
|
|
18324
18325
|
};
|
|
18325
18326
|
}, "mergeBatches");
|
|
18326
18327
|
|
|
18327
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18328
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/domain/ref-arguments.js
|
|
18328
18329
|
var TAKES = {
|
|
18329
18330
|
chat: "a chat: chat:<provider>/<account>/<chat>, its id or its title",
|
|
18330
18331
|
message: "a message: msg:<provider>/<account>/<chat>/<message>, or a chat and the message's id"
|
|
@@ -18384,7 +18385,7 @@ var ensureAccount = /* @__PURE__ */ __name(async (reference, scope, profilesOn)
|
|
|
18384
18385
|
throw wrongAccount(reference, scope, profiles);
|
|
18385
18386
|
}, "ensureAccount");
|
|
18386
18387
|
|
|
18387
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18388
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/resolve.js
|
|
18388
18389
|
var isId = /* @__PURE__ */ __name((reference) => /^-?\d+$/.test(reference.trim()), "isId");
|
|
18389
18390
|
var foldName = /* @__PURE__ */ __name((name) => name.normalize("NFC").replace(/[\uFE0E\uFE0F\u200D]/g, "").toLowerCase().replaceAll("\u0451", "\u0435"), "foldName");
|
|
18390
18391
|
var pickChat = /* @__PURE__ */ __name((reference, chats) => {
|
|
@@ -18429,7 +18430,7 @@ ${lines3}`, { candidates });
|
|
|
18429
18430
|
}, "ambiguous");
|
|
18430
18431
|
var isPresent = /* @__PURE__ */ __name((value) => value !== null && value !== void 0, "isPresent");
|
|
18431
18432
|
|
|
18432
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18433
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/services/message-resolution.js
|
|
18433
18434
|
var readChatId = /* @__PURE__ */ __name(async (deps, reference, store, account) => {
|
|
18434
18435
|
if (deps.reads !== "store")
|
|
18435
18436
|
return keptChatId(deps.messenger, reference, store, account);
|
|
@@ -18588,7 +18589,7 @@ var senderAmong = /* @__PURE__ */ __name(async (store, accounts, reference) => {
|
|
|
18588
18589
|
}
|
|
18589
18590
|
}, "senderAmong");
|
|
18590
18591
|
|
|
18591
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18592
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/images/context/index.js
|
|
18592
18593
|
var CONTEXT_MESSAGES = 3;
|
|
18593
18594
|
var CONTEXT_MINUTES = 10;
|
|
18594
18595
|
var MAX_CHARS = 1200;
|
|
@@ -18612,12 +18613,12 @@ var context = {
|
|
|
18612
18613
|
}, "describe")
|
|
18613
18614
|
};
|
|
18614
18615
|
|
|
18615
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18616
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/images/registry.js
|
|
18616
18617
|
var BUILT_INS = [context];
|
|
18617
18618
|
var providers = [...BUILT_INS];
|
|
18618
18619
|
var registeredImageProviders = /* @__PURE__ */ __name(() => providers, "registeredImageProviders");
|
|
18619
18620
|
|
|
18620
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18621
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/services/conversations.js
|
|
18621
18622
|
var READ_PAGE = 5e3;
|
|
18622
18623
|
var CHAIN = 50;
|
|
18623
18624
|
var CONVERSATION_QUERY = {
|
|
@@ -18769,7 +18770,7 @@ var sized = /* @__PURE__ */ __name((size4) => {
|
|
|
18769
18770
|
return size4;
|
|
18770
18771
|
}, "sized");
|
|
18771
18772
|
|
|
18772
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18773
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/services/embeddings-maintenance.js
|
|
18773
18774
|
var REFRESH_BOUNDS = { maxChats: 20, maxChunks: 2e3 };
|
|
18774
18775
|
var MESSAGE_PAGE = 5e3;
|
|
18775
18776
|
var PER_SESSION = 8;
|
|
@@ -18788,7 +18789,7 @@ var embeddingTarget = /* @__PURE__ */ __name((deps, choice = DEFAULT_TEXT_MODEL)
|
|
|
18788
18789
|
price: remote.price,
|
|
18789
18790
|
installed: true,
|
|
18790
18791
|
perBatch: PER_REQUEST * concurrency,
|
|
18791
|
-
open: /* @__PURE__ */ __name(async () => (await import("./remote-
|
|
18792
|
+
open: /* @__PURE__ */ __name(async () => (await import("./remote-4XIR3ZYK.js")).openRemote(remote, apiKey, { concurrency }), "open")
|
|
18792
18793
|
};
|
|
18793
18794
|
}
|
|
18794
18795
|
const model = textModel(choice);
|
|
@@ -18805,7 +18806,7 @@ var embeddingTarget = /* @__PURE__ */ __name((deps, choice = DEFAULT_TEXT_MODEL)
|
|
|
18805
18806
|
if (!isTextModelInstalled(model, directory2))
|
|
18806
18807
|
throw notDownloaded(model.id);
|
|
18807
18808
|
if (apart) {
|
|
18808
|
-
const { openProcess } = await import("./process-
|
|
18809
|
+
const { openProcess } = await import("./process-P2X2KFMR.js");
|
|
18809
18810
|
return openProcess(model, directory2, { threads: threads ?? defaultThreads() });
|
|
18810
18811
|
}
|
|
18811
18812
|
return openEmbedder(model, directory2, { threads: threads ?? defaultThreads() });
|
|
@@ -19094,7 +19095,7 @@ var shaped = /* @__PURE__ */ __name(({ chatId, builtAt, algorithmVersion, pendin
|
|
|
19094
19095
|
return { ...one2, state };
|
|
19095
19096
|
}, "shaped");
|
|
19096
19097
|
|
|
19097
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19098
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/services/search-catchup.js
|
|
19098
19099
|
var CATCH_UP_BOUNDS = { maxChunks: 500, maxMessages: 1e4, timeMs: 3e4 };
|
|
19099
19100
|
var validateCatchUpBounds = /* @__PURE__ */ __name((options) => {
|
|
19100
19101
|
for (const [key, value, maximum] of [
|
|
@@ -19147,7 +19148,7 @@ var catchUpSearch = /* @__PURE__ */ __name(async (deps, chat, options, signal, c
|
|
|
19147
19148
|
}
|
|
19148
19149
|
}, "catchUpSearch");
|
|
19149
19150
|
|
|
19150
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19151
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/services/archive.js
|
|
19151
19152
|
var pushed = /* @__PURE__ */ __name((deps, what) => {
|
|
19152
19153
|
if (deps.reads === "store") {
|
|
19153
19154
|
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`);
|
|
@@ -19513,7 +19514,7 @@ var timeOfKey = /* @__PURE__ */ __name(async (store, account, chatId, key, byTim
|
|
|
19513
19514
|
return message?.timestamp ?? fallback;
|
|
19514
19515
|
}, "timeOfKey");
|
|
19515
19516
|
|
|
19516
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19517
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/services/questions.js
|
|
19517
19518
|
var LINKS = /https?:\/\/\S+/g;
|
|
19518
19519
|
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");
|
|
19519
19520
|
var questions = /* @__PURE__ */ __name((messages, { answerers: answerers2, asker = "others" }) => {
|
|
@@ -19543,7 +19544,7 @@ var questions = /* @__PURE__ */ __name((messages, { answerers: answerers2, asker
|
|
|
19543
19544
|
});
|
|
19544
19545
|
}, "questions");
|
|
19545
19546
|
|
|
19546
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19547
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/services/task-categories.js
|
|
19547
19548
|
var names = /* @__PURE__ */ __name((categories) => categories.map(({ name }) => name).join(", "), "names");
|
|
19548
19549
|
var taskCategoryOf = /* @__PURE__ */ __name((categories = DEFAULT_TASK_CATEGORIES, flag = "--category") => (typed) => {
|
|
19549
19550
|
const name = typed.trim().toLowerCase();
|
|
@@ -19600,7 +19601,7 @@ var categorize = /* @__PURE__ */ __name((text2, categories = DEFAULT_TASK_CATEGO
|
|
|
19600
19601
|
return best.name;
|
|
19601
19602
|
}, "categorize");
|
|
19602
19603
|
|
|
19603
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19604
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/services/task-rules.js
|
|
19604
19605
|
var taskAccount = /* @__PURE__ */ __name(({ provider, account }) => `${provider}:${account}`, "taskAccount");
|
|
19605
19606
|
var RULES_IN = {
|
|
19606
19607
|
dialog: "all",
|
|
@@ -19806,7 +19807,7 @@ var applyTaskRulesToChats = /* @__PURE__ */ __name(async (store, account, chatId
|
|
|
19806
19807
|
return passes;
|
|
19807
19808
|
}, "applyTaskRulesToChats");
|
|
19808
19809
|
|
|
19809
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19810
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/context/evidence-response.js
|
|
19810
19811
|
var contextSourceKey = /* @__PURE__ */ __name((source) => JSON.stringify([source.kind, source.accountId, source.provider, source.account]), "contextSourceKey");
|
|
19811
19812
|
var validateContextEvidencePage = /* @__PURE__ */ __name((page, request) => {
|
|
19812
19813
|
const fail3 = /* @__PURE__ */ __name(() => {
|
|
@@ -19870,7 +19871,7 @@ var validateContextEvidencePage = /* @__PURE__ */ __name((page, request) => {
|
|
|
19870
19871
|
}
|
|
19871
19872
|
}, "validateContextEvidencePage");
|
|
19872
19873
|
|
|
19873
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19874
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/context/read-budget.js
|
|
19874
19875
|
var contextReadBudget = /* @__PURE__ */ __name((limits = {}) => {
|
|
19875
19876
|
if (!limits || typeof limits !== "object" || Array.isArray(limits))
|
|
19876
19877
|
throw new CliError("validation_error", "limits needs a context read allowance");
|
|
@@ -19923,7 +19924,7 @@ var contextReadBudget = /* @__PURE__ */ __name((limits = {}) => {
|
|
|
19923
19924
|
};
|
|
19924
19925
|
}, "contextReadBudget");
|
|
19925
19926
|
|
|
19926
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19927
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/services/context-evidence.js
|
|
19927
19928
|
var createContextEvidenceReader = /* @__PURE__ */ __name((port, allowed, limits) => {
|
|
19928
19929
|
if (!port || typeof port.read !== "function")
|
|
19929
19930
|
throw new CliError("configuration_error", "context evidence reader is unavailable");
|
|
@@ -19967,7 +19968,7 @@ var createContextEvidenceReader = /* @__PURE__ */ __name((port, allowed, limits)
|
|
|
19967
19968
|
};
|
|
19968
19969
|
}, "createContextEvidenceReader");
|
|
19969
19970
|
|
|
19970
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19971
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/services/ingest.js
|
|
19971
19972
|
var emptyReceipt = /* @__PURE__ */ __name((dryRun) => ({
|
|
19972
19973
|
dryRun,
|
|
19973
19974
|
source: null,
|
|
@@ -20042,7 +20043,7 @@ var ingest = /* @__PURE__ */ __name(async (store, envelope, { account, dryRun =
|
|
|
20042
20043
|
return receipt;
|
|
20043
20044
|
}, "ingest");
|
|
20044
20045
|
|
|
20045
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20046
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/services/project-purposes.js
|
|
20046
20047
|
var BUILT_IN_PURPOSES = ["work", "sales", "support", "other"];
|
|
20047
20048
|
var DEFAULT_PURPOSES = ["work"];
|
|
20048
20049
|
var LINK_PURPOSE = "work";
|
|
@@ -20072,7 +20073,7 @@ var purposeList = /* @__PURE__ */ __name((value, previous = []) => [
|
|
|
20072
20073
|
...value.split(",").map((one2) => one2.trim()).filter(Boolean)
|
|
20073
20074
|
], "purposeList");
|
|
20074
20075
|
|
|
20075
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20076
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/services/moment.js
|
|
20076
20077
|
var AGO = /^(\d+)(m|h|d)$/;
|
|
20077
20078
|
var AGO_MS = { m: 6e4, h: 36e5, d: 864e5 };
|
|
20078
20079
|
var DATE = /^\d{4}-\d{2}-\d{2}/;
|
|
@@ -20112,7 +20113,7 @@ var dateWindow = /* @__PURE__ */ __name(({ sinceTime, untilTime, zone, now = Dat
|
|
|
20112
20113
|
};
|
|
20113
20114
|
}, "dateWindow");
|
|
20114
20115
|
|
|
20115
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20116
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/botcheck/check.js
|
|
20116
20117
|
var DAY_MS = 864e5;
|
|
20117
20118
|
var NEW_DAYS = 30;
|
|
20118
20119
|
var SAME_TEXT_MIN = 20;
|
|
@@ -20189,7 +20190,7 @@ var scorePerson = /* @__PURE__ */ __name(({ subject, provider, activity, photos,
|
|
|
20189
20190
|
};
|
|
20190
20191
|
}, "scorePerson");
|
|
20191
20192
|
|
|
20192
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20193
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/http/time-limit.js
|
|
20193
20194
|
var timeLimit = /* @__PURE__ */ __name((ms) => {
|
|
20194
20195
|
const controller = new AbortController();
|
|
20195
20196
|
const timer = setTimeout(() => controller.abort(new DOMException("The operation timed out.", "TimeoutError")), ms);
|
|
@@ -20205,7 +20206,7 @@ var withTimeLimit = /* @__PURE__ */ __name(async (ms, run) => {
|
|
|
20205
20206
|
}
|
|
20206
20207
|
}, "withTimeLimit");
|
|
20207
20208
|
|
|
20208
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20209
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/botcheck/registries.js
|
|
20209
20210
|
var REGISTRIES = {
|
|
20210
20211
|
cas: { title: "Combot Anti-Spam (CAS)", docs: "https://cas.chat/api" },
|
|
20211
20212
|
lols: { title: "lols.bot", docs: "https://api.lols.bot/lols-bot.json" }
|
|
@@ -20292,7 +20293,7 @@ var notCovered = /* @__PURE__ */ __name((messenger, now = /* @__PURE__ */ new Da
|
|
|
20292
20293
|
detail: `lists Telegram accounts only, not ${messenger} ones`
|
|
20293
20294
|
})), "notCovered");
|
|
20294
20295
|
|
|
20295
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20296
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/botcheck/service.js
|
|
20296
20297
|
var ACTIVITY_MESSAGES = 1e3;
|
|
20297
20298
|
var botCheckService = /* @__PURE__ */ __name((deps) => {
|
|
20298
20299
|
const subjectOf = /* @__PURE__ */ __name(async (reference) => {
|
|
@@ -20380,7 +20381,7 @@ var botCheckService = /* @__PURE__ */ __name((deps) => {
|
|
|
20380
20381
|
};
|
|
20381
20382
|
}, "botCheckService");
|
|
20382
20383
|
|
|
20383
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20384
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/domain/thread.js
|
|
20384
20385
|
var threadIdOf = /* @__PURE__ */ __name((value) => {
|
|
20385
20386
|
if (value === void 0)
|
|
20386
20387
|
return void 0;
|
|
@@ -20390,7 +20391,7 @@ var threadIdOf = /* @__PURE__ */ __name((value) => {
|
|
|
20390
20391
|
return id2;
|
|
20391
20392
|
}, "threadIdOf");
|
|
20392
20393
|
|
|
20393
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20394
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/services/chat-stats.js
|
|
20394
20395
|
var TOP_POSTS = 5;
|
|
20395
20396
|
var JOINS = /* @__PURE__ */ new Set(["join", "add"]);
|
|
20396
20397
|
var LEAVES = /* @__PURE__ */ new Set(["leave", "remove"]);
|
|
@@ -20507,7 +20508,7 @@ var median = /* @__PURE__ */ __name((values) => {
|
|
|
20507
20508
|
return Math.round(sorted.length % 2 === 0 ? ((sorted[middle - 1] ?? upper) + upper) / 2 : upper);
|
|
20508
20509
|
}, "median");
|
|
20509
20510
|
|
|
20510
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20511
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/services/member-history.js
|
|
20511
20512
|
var memberEvents = /* @__PURE__ */ __name((stays, revisions, since = 0) => {
|
|
20512
20513
|
const events = [];
|
|
20513
20514
|
for (const stay of stays) {
|
|
@@ -20539,7 +20540,7 @@ var memberEvents = /* @__PURE__ */ __name((stays, revisions, since = 0) => {
|
|
|
20539
20540
|
return events.filter(({ at }) => Date.parse(at) >= since).sort((a, b) => Date.parse(a.at) - Date.parse(b.at) || a.id.localeCompare(b.id));
|
|
20540
20541
|
}, "memberEvents");
|
|
20541
20542
|
|
|
20542
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20543
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/services/chats.js
|
|
20543
20544
|
var EVENTS_DAYS = 7;
|
|
20544
20545
|
var TRACKED_DAYS = 30;
|
|
20545
20546
|
var STATS_PAGE = 1e3;
|
|
@@ -20834,7 +20835,7 @@ var storedMembers = /* @__PURE__ */ __name(async (store, chatId) => {
|
|
|
20834
20835
|
return members.length === 0 ? null : members;
|
|
20835
20836
|
}, "storedMembers");
|
|
20836
20837
|
|
|
20837
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20838
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/services/inbox.js
|
|
20838
20839
|
var INBOX_CHATS = 20;
|
|
20839
20840
|
var REVIEW_DAYS = 3;
|
|
20840
20841
|
var UNANSWERED_HOURS = 24;
|
|
@@ -21042,7 +21043,7 @@ var inboxService = /* @__PURE__ */ __name((deps) => {
|
|
|
21042
21043
|
};
|
|
21043
21044
|
}, "inboxService");
|
|
21044
21045
|
|
|
21045
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21046
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/services/person-context.js
|
|
21046
21047
|
var CONTEXT_MESSAGES2 = 10;
|
|
21047
21048
|
var CONTEXT_BYTES = 64 * 1024;
|
|
21048
21049
|
var toContext = /* @__PURE__ */ __name((key, message, chatTitle2) => ({
|
|
@@ -21331,10 +21332,10 @@ var personMessages = /* @__PURE__ */ __name(async (store, asked, reference, { ch
|
|
|
21331
21332
|
};
|
|
21332
21333
|
}, "personMessages");
|
|
21333
21334
|
|
|
21334
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21335
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/services/meeting-evidence.js
|
|
21335
21336
|
import { createHash } from "node:crypto";
|
|
21336
21337
|
|
|
21337
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21338
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/services/meeting-reference.js
|
|
21338
21339
|
var missing2 = /* @__PURE__ */ __name(() => new CliError("not_found", "the meeting evidence is unavailable for this account"), "missing");
|
|
21339
21340
|
var authorizedMeetingMetadata = /* @__PURE__ */ __name(async (store, accountId, reference, options = {}) => {
|
|
21340
21341
|
const parsed = parseMeetingReference(reference);
|
|
@@ -21352,7 +21353,7 @@ var authorizedMeetingMetadata = /* @__PURE__ */ __name(async (store, accountId,
|
|
|
21352
21353
|
return { parsed, meeting };
|
|
21353
21354
|
}, "authorizedMeetingMetadata");
|
|
21354
21355
|
|
|
21355
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21356
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/services/meeting-evidence.js
|
|
21356
21357
|
var hash = /* @__PURE__ */ __name((value) => createHash("sha256").update(JSON.stringify(value)).digest("hex"), "hash");
|
|
21357
21358
|
var checkMeetingCancelled = /* @__PURE__ */ __name((signal) => {
|
|
21358
21359
|
if (signal?.aborted)
|
|
@@ -21551,7 +21552,7 @@ var readMeetingEvidence = /* @__PURE__ */ __name(async (store, accountId, refere
|
|
|
21551
21552
|
return { ...packet, fingerprint: hash(packet) };
|
|
21552
21553
|
}, "readMeetingEvidence");
|
|
21553
21554
|
|
|
21554
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21555
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/services/person-meeting-context.js
|
|
21555
21556
|
var personMeetingContext = /* @__PURE__ */ __name(async (store, personReference, options) => {
|
|
21556
21557
|
const { meetings = 10, cues = 5, bytes: bytes2 = 64 * 1024, scanLimit = 1e3, since, signal } = options;
|
|
21557
21558
|
const requestedAccounts = options.accountIds;
|
|
@@ -21650,7 +21651,7 @@ var personMeetingContext = /* @__PURE__ */ __name(async (store, personReference,
|
|
|
21650
21651
|
};
|
|
21651
21652
|
}, "personMeetingContext");
|
|
21652
21653
|
|
|
21653
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21654
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/services/person-preparation.js
|
|
21654
21655
|
var PREPARE_BYTES = 96 * 1024;
|
|
21655
21656
|
var MEETINGS = 5;
|
|
21656
21657
|
var CUES = 3;
|
|
@@ -21766,7 +21767,7 @@ var meetingsOf = /* @__PURE__ */ __name(async (store, uid, stored, since, left)
|
|
|
21766
21767
|
}
|
|
21767
21768
|
}, "meetingsOf");
|
|
21768
21769
|
|
|
21769
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21770
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/services/person-profile.js
|
|
21770
21771
|
var personProfile = /* @__PURE__ */ __name(async (deps, person, known2) => {
|
|
21771
21772
|
const online = deps.offline ? void 0 : await deps.connection();
|
|
21772
21773
|
const held = await storeIfOpen(deps);
|
|
@@ -21836,7 +21837,7 @@ var quiet = /* @__PURE__ */ __name((facts) => facts.chats.map(({ id: id2, title,
|
|
|
21836
21837
|
complete: false
|
|
21837
21838
|
})), "quiet");
|
|
21838
21839
|
|
|
21839
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21840
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/services/person-timeline.js
|
|
21840
21841
|
var TIMELINE_ITEMS = 50;
|
|
21841
21842
|
var TIMELINE_MAX = 500;
|
|
21842
21843
|
var SCOPES2 = ["personal", "work"];
|
|
@@ -21891,7 +21892,7 @@ var personTimeline = /* @__PURE__ */ __name(async (store, asked, reference, { sc
|
|
|
21891
21892
|
};
|
|
21892
21893
|
}, "personTimeline");
|
|
21893
21894
|
|
|
21894
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21895
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/services/people.js
|
|
21895
21896
|
var peopleService = /* @__PURE__ */ __name((deps) => {
|
|
21896
21897
|
const localCard = /* @__PURE__ */ __name(async (card, includeNotes = false) => {
|
|
21897
21898
|
const held = await storeIfOpen(deps);
|
|
@@ -22118,7 +22119,7 @@ var withoutPhone = /* @__PURE__ */ __name((answer) => {
|
|
|
22118
22119
|
return rest;
|
|
22119
22120
|
}, "withoutPhone");
|
|
22120
22121
|
|
|
22121
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22122
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/services/task-stats.js
|
|
22122
22123
|
var TASK_STATS_BY = ["chat", "meeting", "project"];
|
|
22123
22124
|
var PERIOD_FIELD = "created";
|
|
22124
22125
|
var refuseNestedPeriod = /* @__PURE__ */ __name((node, top = true) => {
|
|
@@ -22221,7 +22222,7 @@ var meetingNames = /* @__PURE__ */ __name(async (store, groups) => {
|
|
|
22221
22222
|
}));
|
|
22222
22223
|
}, "meetingNames");
|
|
22223
22224
|
|
|
22224
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22225
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/services/task-tag-filters.js
|
|
22225
22226
|
var taskTagFilters = /* @__PURE__ */ __name(async (store, query) => {
|
|
22226
22227
|
const tags = /* @__PURE__ */ new Map();
|
|
22227
22228
|
for (const node of query ? walkQuery(query.root) : [])
|
|
@@ -22230,7 +22231,7 @@ var taskTagFilters = /* @__PURE__ */ __name(async (store, query) => {
|
|
|
22230
22231
|
return tags;
|
|
22231
22232
|
}, "taskTagFilters");
|
|
22232
22233
|
|
|
22233
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22234
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/services/tasks.js
|
|
22234
22235
|
var TASK_QUERY = {
|
|
22235
22236
|
entity: "task",
|
|
22236
22237
|
backend: "sql",
|
|
@@ -22722,7 +22723,7 @@ var taskView = /* @__PURE__ */ __name(async (store, account, task2) => {
|
|
|
22722
22723
|
};
|
|
22723
22724
|
}, "taskView");
|
|
22724
22725
|
|
|
22725
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22726
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/services/proposal-tasks.js
|
|
22726
22727
|
var proposalSource = /* @__PURE__ */ __name((id2) => `proposed-action:${id2}`, "proposalSource");
|
|
22727
22728
|
var approveAsTask = /* @__PURE__ */ __name(async (store, id2, by) => {
|
|
22728
22729
|
const proposal = await store.proposedActions.get(id2);
|
|
@@ -22745,7 +22746,7 @@ var approveAsTask = /* @__PURE__ */ __name(async (store, id2, by) => {
|
|
|
22745
22746
|
return { proposal: await store.proposedActions.approve(proposal.id, by, { task: task2.id }), task: task2 };
|
|
22746
22747
|
}, "approveAsTask");
|
|
22747
22748
|
|
|
22748
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22749
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/services/proposals/ids.js
|
|
22749
22750
|
var MAX_IDS = 500;
|
|
22750
22751
|
var refuse = /* @__PURE__ */ __name((message) => {
|
|
22751
22752
|
throw new CliError("validation_error", message, { reason: "proposal.ids" });
|
|
@@ -22787,7 +22788,7 @@ var parseProposalIds = /* @__PURE__ */ __name((text2) => {
|
|
|
22787
22788
|
return ids;
|
|
22788
22789
|
}, "parseProposalIds");
|
|
22789
22790
|
|
|
22790
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22791
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/shared.js
|
|
22791
22792
|
var proposerOfAuthor = /* @__PURE__ */ __name((author) => {
|
|
22792
22793
|
if (author.type === "person")
|
|
22793
22794
|
return { type: "person", id: author.id };
|
|
@@ -22829,7 +22830,7 @@ var storedStatus = /* @__PURE__ */ __name((filter) => {
|
|
|
22829
22830
|
return status === "proposed" || status === "rejected" ? status : void 0;
|
|
22830
22831
|
}, "storedStatus");
|
|
22831
22832
|
|
|
22832
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22833
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/action.js
|
|
22833
22834
|
var rowOf = /* @__PURE__ */ __name((action2) => ({
|
|
22834
22835
|
id: action2.id,
|
|
22835
22836
|
kind: "action",
|
|
@@ -22869,7 +22870,7 @@ var actionKind = /* @__PURE__ */ __name((store, claimed) => ({
|
|
|
22869
22870
|
}, "decide")
|
|
22870
22871
|
}), "actionKind");
|
|
22871
22872
|
|
|
22872
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22873
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/fact.js
|
|
22873
22874
|
var STATUS = {
|
|
22874
22875
|
proposed: "proposed",
|
|
22875
22876
|
accepted: "confirmed",
|
|
@@ -22912,7 +22913,7 @@ var factKind = /* @__PURE__ */ __name((store) => ({
|
|
|
22912
22913
|
}, "decide")
|
|
22913
22914
|
}), "factKind");
|
|
22914
22915
|
|
|
22915
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22916
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/finance.js
|
|
22916
22917
|
var rowOf3 = /* @__PURE__ */ __name((kind, entry) => ({
|
|
22917
22918
|
id: entry.ref,
|
|
22918
22919
|
kind,
|
|
@@ -22947,7 +22948,7 @@ var financeKind = /* @__PURE__ */ __name((store, kind) => ({
|
|
|
22947
22948
|
var invoiceKind = /* @__PURE__ */ __name((store) => financeKind(store, "invoice"), "invoiceKind");
|
|
22948
22949
|
var paymentKind = /* @__PURE__ */ __name((store) => financeKind(store, "payment"), "paymentKind");
|
|
22949
22950
|
|
|
22950
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22951
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/findings.js
|
|
22951
22952
|
var FACT_SUMMARIES = {
|
|
22952
22953
|
fact: /* @__PURE__ */ __name((finding) => finding.statement, "fact"),
|
|
22953
22954
|
task: /* @__PURE__ */ __name((finding) => finding.title, "task"),
|
|
@@ -23019,7 +23020,7 @@ var findingsKind = /* @__PURE__ */ __name((store) => {
|
|
|
23019
23020
|
};
|
|
23020
23021
|
}, "findingsKind");
|
|
23021
23022
|
|
|
23022
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23023
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/key-document.js
|
|
23023
23024
|
var linkRow = /* @__PURE__ */ __name((link4) => ({
|
|
23024
23025
|
id: `key:${link4.id}`,
|
|
23025
23026
|
kind: "key_document",
|
|
@@ -23087,7 +23088,7 @@ var keyDocumentKind = /* @__PURE__ */ __name((store) => {
|
|
|
23087
23088
|
};
|
|
23088
23089
|
}, "keyDocumentKind");
|
|
23089
23090
|
|
|
23090
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23091
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/mail-findings.js
|
|
23091
23092
|
var words = /* @__PURE__ */ __name((...parts) => parts.filter(Boolean).join(" "), "words");
|
|
23092
23093
|
var summaryOf = /* @__PURE__ */ __name((finding) => {
|
|
23093
23094
|
switch (finding.kind) {
|
|
@@ -23175,7 +23176,7 @@ var mailFindingsKind = /* @__PURE__ */ __name((store) => {
|
|
|
23175
23176
|
};
|
|
23176
23177
|
}, "mailFindingsKind");
|
|
23177
23178
|
|
|
23178
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23179
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/meeting-findings.js
|
|
23179
23180
|
var rowOf6 = /* @__PURE__ */ __name((action2, batch) => {
|
|
23180
23181
|
const findings = batch.input.findings;
|
|
23181
23182
|
const projects = [...new Set(findings.map((one2) => "project" in one2 ? one2.project : void 0))];
|
|
@@ -23239,7 +23240,7 @@ var meetingFindingsKind = /* @__PURE__ */ __name((store) => {
|
|
|
23239
23240
|
};
|
|
23240
23241
|
}, "meetingFindingsKind");
|
|
23241
23242
|
|
|
23242
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23243
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/memory.js
|
|
23243
23244
|
var STATUS2 = {
|
|
23244
23245
|
proposed: "proposed",
|
|
23245
23246
|
confirmed: "confirmed",
|
|
@@ -23280,7 +23281,7 @@ var memoryKind = /* @__PURE__ */ __name((store) => ({
|
|
|
23280
23281
|
}, "decide")
|
|
23281
23282
|
}), "memoryKind");
|
|
23282
23283
|
|
|
23283
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23284
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/orders.js
|
|
23284
23285
|
var rowOf8 = /* @__PURE__ */ __name((order) => ({
|
|
23285
23286
|
id: order.ref,
|
|
23286
23287
|
kind: "order",
|
|
@@ -23312,7 +23313,7 @@ var orderKind = /* @__PURE__ */ __name((store) => ({
|
|
|
23312
23313
|
}, "decide")
|
|
23313
23314
|
}), "orderKind");
|
|
23314
23315
|
|
|
23315
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23316
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/organization.js
|
|
23316
23317
|
var ORGANIZATION_ADD_KIND = "organization_add";
|
|
23317
23318
|
var ORGANIZATION_RENAME_KIND = "organization_rename";
|
|
23318
23319
|
var rowOf9 = /* @__PURE__ */ __name((action2) => {
|
|
@@ -23368,7 +23369,7 @@ var organizationKind = /* @__PURE__ */ __name((store) => ({
|
|
|
23368
23369
|
}, "decide")
|
|
23369
23370
|
}), "organizationKind");
|
|
23370
23371
|
|
|
23371
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23372
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/relationship.js
|
|
23372
23373
|
var linkRow2 = /* @__PURE__ */ __name((link4) => ({
|
|
23373
23374
|
id: `link:${link4.id}`,
|
|
23374
23375
|
kind: "relationship",
|
|
@@ -23442,7 +23443,7 @@ var relationshipKind = /* @__PURE__ */ __name((store) => {
|
|
|
23442
23443
|
};
|
|
23443
23444
|
}, "relationshipKind");
|
|
23444
23445
|
|
|
23445
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23446
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/relationship-update.js
|
|
23446
23447
|
var KIND = "relationship_update";
|
|
23447
23448
|
var summaryOf2 = /* @__PURE__ */ __name(({ changes }) => Object.entries(changes).map(([field, value]) => `${field} ${value ?? "cleared"}`).join(", "), "summaryOf");
|
|
23448
23449
|
var rowOf10 = /* @__PURE__ */ __name((action2) => {
|
|
@@ -23492,7 +23493,7 @@ var relationshipUpdateKind = /* @__PURE__ */ __name((store) => ({
|
|
|
23492
23493
|
}, "decide")
|
|
23493
23494
|
}), "relationshipUpdateKind");
|
|
23494
23495
|
|
|
23495
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23496
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/task-close.js
|
|
23496
23497
|
var rowOf11 = /* @__PURE__ */ __name((task2) => {
|
|
23497
23498
|
const suggestion = task2.closeSuggestion;
|
|
23498
23499
|
if (suggestion === null)
|
|
@@ -23560,7 +23561,7 @@ var taskCloseKind = /* @__PURE__ */ __name((store) => {
|
|
|
23560
23561
|
};
|
|
23561
23562
|
}, "taskCloseKind");
|
|
23562
23563
|
|
|
23563
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23564
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/services/proposals/registry.js
|
|
23564
23565
|
var PREFIX = /^([a-z][a-z_]*):/;
|
|
23565
23566
|
var marked = /* @__PURE__ */ __name((kind, row) => kind.ownerOnly ? { ...row, ownerOnly: true } : row, "marked");
|
|
23566
23567
|
var refusalOf = /* @__PURE__ */ __name((id2, error) => {
|
|
@@ -23688,7 +23689,7 @@ var proposalRegistry = /* @__PURE__ */ __name((store) => {
|
|
|
23688
23689
|
return registry;
|
|
23689
23690
|
}, "proposalRegistry");
|
|
23690
23691
|
|
|
23691
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23692
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/mail/owed.js
|
|
23692
23693
|
var mailTurn = /* @__PURE__ */ __name((newest) => {
|
|
23693
23694
|
if (newest === null)
|
|
23694
23695
|
return null;
|
|
@@ -23697,7 +23698,7 @@ var mailTurn = /* @__PURE__ */ __name((newest) => {
|
|
|
23697
23698
|
return newest.addressed ? "owed" : null;
|
|
23698
23699
|
}, "mailTurn");
|
|
23699
23700
|
|
|
23700
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23701
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/services/agenda-mail.js
|
|
23701
23702
|
var absent = /* @__PURE__ */ __name((error) => {
|
|
23702
23703
|
if (error instanceof CliError && error.code === "not_found")
|
|
23703
23704
|
return void 0;
|
|
@@ -23755,7 +23756,7 @@ var mailActivity = /* @__PURE__ */ __name(async (store, account, since, chats) =
|
|
|
23755
23756
|
};
|
|
23756
23757
|
}, "mailActivity");
|
|
23757
23758
|
|
|
23758
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23759
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/services/chat-coverage.js
|
|
23759
23760
|
var chatCoverage = /* @__PURE__ */ __name(async (store, account, chatIds) => {
|
|
23760
23761
|
const ids = [...new Set(chatIds)];
|
|
23761
23762
|
if (ids.length === 0)
|
|
@@ -23781,7 +23782,7 @@ var chatCoverage = /* @__PURE__ */ __name(async (store, account, chatIds) => {
|
|
|
23781
23782
|
}));
|
|
23782
23783
|
}, "chatCoverage");
|
|
23783
23784
|
|
|
23784
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23785
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/services/agenda.js
|
|
23785
23786
|
var DAY = 864e5;
|
|
23786
23787
|
var AGENDA_DEFAULTS = { unanswered: DAY, waiting: 7 * DAY };
|
|
23787
23788
|
var CLAIMS = ["none", "mine", "others", "any"];
|
|
@@ -24028,7 +24029,7 @@ var agendaItem = /* @__PURE__ */ __name((shown) => {
|
|
|
24028
24029
|
};
|
|
24029
24030
|
}, "agendaItem");
|
|
24030
24031
|
|
|
24031
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24032
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/services/excerpt.js
|
|
24032
24033
|
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");
|
|
24033
24034
|
var excerpt = /* @__PURE__ */ __name((text2, query, size4 = 240, options = {}) => {
|
|
24034
24035
|
const flat = text2.replace(/\s+/g, " ").trim();
|
|
@@ -24044,7 +24045,7 @@ var excerpt = /* @__PURE__ */ __name((text2, query, size4 = 240, options = {}) =
|
|
|
24044
24045
|
}, "excerpt");
|
|
24045
24046
|
var withExcerpt = /* @__PURE__ */ __name(({ matchedText, ...hit }, query) => ({ ...hit, excerpt: excerpt(matchedText ?? hit.text, query) }), "withExcerpt");
|
|
24046
24047
|
|
|
24047
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24048
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/services/link-scorers/shared.js
|
|
24048
24049
|
var escaped = /* @__PURE__ */ __name((text2) => text2.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), "escaped");
|
|
24049
24050
|
var folded = /* @__PURE__ */ __name((text2) => text2.normalize("NFKC").toLowerCase().replace(/\s+/gu, " "), "folded");
|
|
24050
24051
|
var wholeWords = /* @__PURE__ */ __name((term) => new RegExp(`(?<![\\p{L}\\p{N}\\p{M}_])${escaped(normalizeVocabularyName(term))}(?![\\p{L}\\p{N}\\p{M}_])`, "u"), "wholeWords");
|
|
@@ -24073,7 +24074,7 @@ var personRefOf = /* @__PURE__ */ __name(async (store, provider, id2) => {
|
|
|
24073
24074
|
}, "personRefOf");
|
|
24074
24075
|
var projectsOf = /* @__PURE__ */ __name(async (store, person, project2) => (/* @__PURE__ */ new Set([
|
|
24075
24076
|
project2,
|
|
24076
|
-
...(await store.knowledge.relations(null, person)).filter((one2) => one2.
|
|
24077
|
+
...(await store.knowledge.relations(null, person)).filter((one2) => isUsable(one2.standing) && one2.kind === "member-of" && one2.from === person && one2.to.startsWith("project:")).map((one2) => one2.to)
|
|
24077
24078
|
])).size, "projectsOf");
|
|
24078
24079
|
var identitiesIn = /* @__PURE__ */ __name(async (store, people, provider) => {
|
|
24079
24080
|
const found = [];
|
|
@@ -24086,7 +24087,7 @@ var identitiesIn = /* @__PURE__ */ __name(async (store, people, provider) => {
|
|
|
24086
24087
|
return found;
|
|
24087
24088
|
}, "identitiesIn");
|
|
24088
24089
|
|
|
24089
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24090
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/services/link-scorers/alias-hits.js
|
|
24090
24091
|
var SEARCH_LIMIT = 500;
|
|
24091
24092
|
var aliasWeight = /* @__PURE__ */ __name((hits) => hits >= 10 ? 0.55 : hits >= 3 ? 0.35 : 0, "aliasWeight");
|
|
24092
24093
|
var aliasHits = {
|
|
@@ -24135,7 +24136,7 @@ var aliasHits = {
|
|
|
24135
24136
|
}, "candidates")
|
|
24136
24137
|
};
|
|
24137
24138
|
|
|
24138
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24139
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/services/link-scorers/chat-senders.js
|
|
24139
24140
|
var WEIGHT = 0.5;
|
|
24140
24141
|
var LARGE_GROUP_WEIGHT = 0.2;
|
|
24141
24142
|
var LARGE_GROUP = 30;
|
|
@@ -24189,7 +24190,7 @@ var chatSenders = {
|
|
|
24189
24190
|
}, "candidates")
|
|
24190
24191
|
};
|
|
24191
24192
|
|
|
24192
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24193
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/services/link-scorers/chat-title.js
|
|
24193
24194
|
var WEIGHT2 = 0.7;
|
|
24194
24195
|
var chatTitle = {
|
|
24195
24196
|
id: "chat-title",
|
|
@@ -24228,7 +24229,7 @@ var chatTitle = {
|
|
|
24228
24229
|
}, "candidates")
|
|
24229
24230
|
};
|
|
24230
24231
|
|
|
24231
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24232
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/services/link-scorers/email-domain.js
|
|
24232
24233
|
var WEIGHT3 = 0.3;
|
|
24233
24234
|
var CONTACTS = 500;
|
|
24234
24235
|
var MOST_PAIRS = 200;
|
|
@@ -24289,7 +24290,7 @@ var emailDomain = {
|
|
|
24289
24290
|
}, "candidates")
|
|
24290
24291
|
};
|
|
24291
24292
|
|
|
24292
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24293
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/services/link-scorers/mail-thread.js
|
|
24293
24294
|
var NAMED = 0.7;
|
|
24294
24295
|
var MEMBER_ONLY = 0.3;
|
|
24295
24296
|
var READ_LIMIT2 = 500;
|
|
@@ -24363,7 +24364,7 @@ var mailThread = {
|
|
|
24363
24364
|
}, "candidates")
|
|
24364
24365
|
};
|
|
24365
24366
|
|
|
24366
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24367
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/services/link-scorers/member-chats.js
|
|
24367
24368
|
var WEIGHT4 = 0.5;
|
|
24368
24369
|
var memberChats = {
|
|
24369
24370
|
id: "member-chats",
|
|
@@ -24404,7 +24405,7 @@ var memberChats = {
|
|
|
24404
24405
|
}, "candidates")
|
|
24405
24406
|
};
|
|
24406
24407
|
|
|
24407
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24408
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/services/link-scorers/member-dialog.js
|
|
24408
24409
|
var WEIGHT5 = 0.6;
|
|
24409
24410
|
var memberDialog = {
|
|
24410
24411
|
id: "member-dialog",
|
|
@@ -24439,7 +24440,7 @@ var memberDialog = {
|
|
|
24439
24440
|
}, "candidates")
|
|
24440
24441
|
};
|
|
24441
24442
|
|
|
24442
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24443
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/services/project-gathering-around.js
|
|
24443
24444
|
var storedMessageNeighbours = /* @__PURE__ */ __name((messages) => ({
|
|
24444
24445
|
async around(ref, window3) {
|
|
24445
24446
|
const at = parseLocator(ref);
|
|
@@ -24535,7 +24536,7 @@ var storedNeighbours = /* @__PURE__ */ __name((store) => {
|
|
|
24535
24536
|
};
|
|
24536
24537
|
}, "storedNeighbours");
|
|
24537
24538
|
|
|
24538
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24539
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/services/project-gathering-request.js
|
|
24539
24540
|
import { createHash as createHash2 } from "node:crypto";
|
|
24540
24541
|
var DAY2 = 864e5;
|
|
24541
24542
|
var MAX_TIME = 864e13;
|
|
@@ -24851,7 +24852,7 @@ var decodeCheckpoint = /* @__PURE__ */ __name((text2, plan) => {
|
|
|
24851
24852
|
return value;
|
|
24852
24853
|
}, "decodeCheckpoint");
|
|
24853
24854
|
|
|
24854
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24855
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/services/project-gathering.js
|
|
24855
24856
|
var terminal = /* @__PURE__ */ new Set(["done", "unavailable", "failed"]);
|
|
24856
24857
|
var PAGE2 = 20;
|
|
24857
24858
|
var PEOPLE = 20;
|
|
@@ -25255,7 +25256,7 @@ var peopleOf = /* @__PURE__ */ __name((items, senderOf) => {
|
|
|
25255
25256
|
return [...byKey.values()].sort((a, b) => b.items - a.items || a.name.localeCompare(b.name));
|
|
25256
25257
|
}, "peopleOf");
|
|
25257
25258
|
|
|
25258
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25259
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/services/meeting-project-candidate-matching.js
|
|
25259
25260
|
var normalizedText = /* @__PURE__ */ __name((text2) => text2.normalize("NFKC").toLowerCase().replace(/\s+/gu, " "), "normalizedText");
|
|
25260
25261
|
var termsOf = /* @__PURE__ */ __name((entry) => [
|
|
25261
25262
|
{ name: entry.name, kind: "canonical" },
|
|
@@ -25299,7 +25300,7 @@ var matchVocabularyTerms = /* @__PURE__ */ __name((catalog, texts) => {
|
|
|
25299
25300
|
return result.sort((a, b) => Number(a.entry.id) - Number(b.entry.id));
|
|
25300
25301
|
}, "matchVocabularyTerms");
|
|
25301
25302
|
|
|
25302
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25303
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/services/project-gathering-mentions.js
|
|
25303
25304
|
var KINDS = ["project", "tag", "topic"];
|
|
25304
25305
|
var findEvidenceMentions = /* @__PURE__ */ __name(async (vocabulary, gathering, options = {}) => {
|
|
25305
25306
|
if (typeof vocabulary?.vocabulary !== "function")
|
|
@@ -25354,7 +25355,7 @@ var findEvidenceMentions = /* @__PURE__ */ __name(async (vocabulary, gathering,
|
|
|
25354
25355
|
};
|
|
25355
25356
|
}, "findEvidenceMentions");
|
|
25356
25357
|
|
|
25357
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25358
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/services/stored-project-gathering.js
|
|
25358
25359
|
var storedChatCount = /* @__PURE__ */ __name((store) => async (account, chatId, { since, until }) => {
|
|
25359
25360
|
const window3 = { since: new Date(since).toISOString(), until: new Date(until - 1).toISOString() };
|
|
25360
25361
|
const [messages, newest, oldest] = await Promise.all([
|
|
@@ -25449,7 +25450,7 @@ var proposedLinksOf = /* @__PURE__ */ __name(async (store, project2) => {
|
|
|
25449
25450
|
}
|
|
25450
25451
|
];
|
|
25451
25452
|
}).sort((a, b) => Number(a.id) - Number(b.id));
|
|
25452
|
-
const legacy = (await store.knowledge.relations(null, project2)).filter((one2) =>
|
|
25453
|
+
const legacy = (await store.knowledge.relations(null, project2)).filter((one2) => one2.standing === "proposed" && one2.kind === "member-of" && one2.to === project2).map((one2) => ({ from: one2.from, id: `link:${one2.id}`, role: one2.role, purpose: one2.purpose }));
|
|
25453
25454
|
return [...proposals, ...legacy];
|
|
25454
25455
|
}, "proposedLinksOf");
|
|
25455
25456
|
var memberRefsOf = /* @__PURE__ */ __name(async (store, project2, includeProposed) => {
|
|
@@ -25457,7 +25458,7 @@ var memberRefsOf = /* @__PURE__ */ __name(async (store, project2, includePropose
|
|
|
25457
25458
|
return [];
|
|
25458
25459
|
const confirmed = /* @__PURE__ */ new Set();
|
|
25459
25460
|
for (const relation of await store.knowledge.relations(null, project2))
|
|
25460
|
-
if (relation.
|
|
25461
|
+
if (isUsable(relation.standing) && relation.kind === "member-of" && relation.to === project2 && /^person:.+/.test(relation.from))
|
|
25461
25462
|
confirmed.add(relation.from);
|
|
25462
25463
|
const members = [...confirmed].sort().map((ref) => ({ ref }));
|
|
25463
25464
|
if (!includeProposed)
|
|
@@ -25495,7 +25496,7 @@ var linkedChatsOf = /* @__PURE__ */ __name(async (store, project2, options = {})
|
|
|
25495
25496
|
return [];
|
|
25496
25497
|
const chats = [];
|
|
25497
25498
|
for (const relation of await store.knowledge.relations(null, project2)) {
|
|
25498
|
-
if (!relation.
|
|
25499
|
+
if (!isUsable(relation.standing) || relation.kind !== "member-of" || relation.to !== project2)
|
|
25499
25500
|
continue;
|
|
25500
25501
|
const reference = chatOf2(relation.from);
|
|
25501
25502
|
if (reference)
|
|
@@ -25660,7 +25661,7 @@ var purposeHintOf = /* @__PURE__ */ __name((linked, rows, of) => {
|
|
|
25660
25661
|
return { chat: top.ref, relationship: link4.relationship, items, of };
|
|
25661
25662
|
}, "purposeHintOf");
|
|
25662
25663
|
|
|
25663
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25664
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/services/link-scorers/scan.js
|
|
25664
25665
|
var SCORERS = [chatTitle, aliasHits, memberChats, memberDialog, chatSenders, mailThread];
|
|
25665
25666
|
var PERSON_SCORERS = [emailDomain];
|
|
25666
25667
|
var SCAN_BOT = { bot: "memo-scan", kind: "rule" };
|
|
@@ -25678,7 +25679,7 @@ var projectOf3 = /* @__PURE__ */ __name(async (store, reference) => {
|
|
|
25678
25679
|
var confirmedOf = /* @__PURE__ */ __name(async (store, project2) => {
|
|
25679
25680
|
if (!project2)
|
|
25680
25681
|
return { chats: [], people: [] };
|
|
25681
|
-
const members = (await store.knowledge.relations(null, project2.ref)).filter((one2) => one2.
|
|
25682
|
+
const members = (await store.knowledge.relations(null, project2.ref)).filter((one2) => isUsable(one2.standing) && one2.kind === "member-of" && one2.to === project2.ref);
|
|
25682
25683
|
return {
|
|
25683
25684
|
chats: [...new Set(members.map((one2) => one2.from).filter((ref) => ref.startsWith("chat:")))].sort(),
|
|
25684
25685
|
people: [...new Set(members.map((one2) => one2.from).filter((ref) => ref.startsWith("person:")))].sort()
|
|
@@ -25908,18 +25909,18 @@ var referenceOf = /* @__PURE__ */ __name((text2) => {
|
|
|
25908
25909
|
}, "referenceOf");
|
|
25909
25910
|
var rejectedReversed = /* @__PURE__ */ __name(async (store, candidate) => candidate.kind === "related-to" && candidate.to.startsWith("person:") && ((await store.knowledge.relationState(null, { from: candidate.to, to: candidate.from, kind: candidate.kind }))?.rejected ?? false), "rejectedReversed");
|
|
25910
25911
|
|
|
25911
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25912
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/services/media-archive.js
|
|
25912
25913
|
import { setTimeout as sleep3 } from "node:timers/promises";
|
|
25913
25914
|
|
|
25914
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25915
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/services/media-archive-files.js
|
|
25915
25916
|
import { lstat } from "node:fs/promises";
|
|
25916
25917
|
|
|
25917
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25918
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-store.js
|
|
25918
25919
|
import { createHash as createHash4, randomUUID as randomUUID2 } from "node:crypto";
|
|
25919
25920
|
import { open as open2, rename as rename2, unlink as unlink2 } from "node:fs/promises";
|
|
25920
25921
|
import { join as join2 } from "node:path";
|
|
25921
25922
|
|
|
25922
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25923
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-metadata.js
|
|
25923
25924
|
import { createHash as createHash3 } from "node:crypto";
|
|
25924
25925
|
var metadataLimit = 16384;
|
|
25925
25926
|
var partialIdentity = /* @__PURE__ */ __name((locator) => JSON.stringify([locator.provider, locator.account, locator.occurrenceId, locator.assetId]), "partialIdentity");
|
|
@@ -25979,7 +25980,7 @@ var readPartialMetadata = /* @__PURE__ */ __name(async (path, locator, maxBytes,
|
|
|
25979
25980
|
}
|
|
25980
25981
|
}, "readPartialMetadata");
|
|
25981
25982
|
|
|
25982
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25983
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-writer.js
|
|
25983
25984
|
import { randomUUID } from "node:crypto";
|
|
25984
25985
|
import { open, rename, unlink } from "node:fs/promises";
|
|
25985
25986
|
import { join } from "node:path";
|
|
@@ -26071,7 +26072,7 @@ var partialWriter = /* @__PURE__ */ __name(async (input) => {
|
|
|
26071
26072
|
};
|
|
26072
26073
|
}, "partialWriter");
|
|
26073
26074
|
|
|
26074
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26075
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-store.js
|
|
26075
26076
|
var NativeRecordingPartialStore = class {
|
|
26076
26077
|
static {
|
|
26077
26078
|
__name(this, "NativeRecordingPartialStore");
|
|
@@ -26178,12 +26179,12 @@ var NativeRecordingPartialStore = class {
|
|
|
26178
26179
|
}
|
|
26179
26180
|
};
|
|
26180
26181
|
|
|
26181
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26182
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication.js
|
|
26182
26183
|
import { createHash as createHash5 } from "node:crypto";
|
|
26183
26184
|
import { link as link2 } from "node:fs/promises";
|
|
26184
26185
|
import { basename, dirname, join as join4, resolve } from "node:path";
|
|
26185
26186
|
|
|
26186
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26187
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication-files.js
|
|
26187
26188
|
import { unlink as unlink3 } from "node:fs/promises";
|
|
26188
26189
|
var verifiedPublicationFile = /* @__PURE__ */ __name(async (path, expected2, signal, writable = false) => {
|
|
26189
26190
|
signal?.throwIfAborted();
|
|
@@ -26218,7 +26219,7 @@ var commitPublication = /* @__PURE__ */ __name(async (root, partialPath, finalPa
|
|
|
26218
26219
|
signal?.throwIfAborted();
|
|
26219
26220
|
}, "commitPublication");
|
|
26220
26221
|
|
|
26221
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26222
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication-journal.js
|
|
26222
26223
|
import { randomUUID as randomUUID3 } from "node:crypto";
|
|
26223
26224
|
import { open as open3, rename as rename3, unlink as unlink4 } from "node:fs/promises";
|
|
26224
26225
|
import { join as join3 } from "node:path";
|
|
@@ -26291,7 +26292,7 @@ var writePublicationJournal = /* @__PURE__ */ __name(async (root, path, prefix,
|
|
|
26291
26292
|
}
|
|
26292
26293
|
}, "writePublicationJournal");
|
|
26293
26294
|
|
|
26294
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26295
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication.js
|
|
26295
26296
|
var NativeRecordingPublication = class {
|
|
26296
26297
|
static {
|
|
26297
26298
|
__name(this, "NativeRecordingPublication");
|
|
@@ -26364,7 +26365,7 @@ var NativeRecordingPublication = class {
|
|
|
26364
26365
|
}
|
|
26365
26366
|
};
|
|
26366
26367
|
|
|
26367
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26368
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/services/media-archive-manifest.js
|
|
26368
26369
|
import { createHash as createHash6 } from "node:crypto";
|
|
26369
26370
|
import { readdir } from "node:fs/promises";
|
|
26370
26371
|
import { isAbsolute, join as join5, resolve as resolve2 } from "node:path";
|
|
@@ -26451,7 +26452,7 @@ var commitMediaEntry = /* @__PURE__ */ __name((root, one2, beforePublish) => wri
|
|
|
26451
26452
|
beforePublish
|
|
26452
26453
|
}), "commitMediaEntry");
|
|
26453
26454
|
|
|
26454
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26455
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/services/media-archive-files.js
|
|
26455
26456
|
var validator = '"media-completed-v1"';
|
|
26456
26457
|
var maximumFileBytes = 64 * 1024 * 1024 * 1024;
|
|
26457
26458
|
var archiveMediaFile = /* @__PURE__ */ __name(async (root, identity, kind, file2, beforeWrite, signal, metadata = {}) => {
|
|
@@ -26552,7 +26553,7 @@ var archiveMediaFile = /* @__PURE__ */ __name(async (root, identity, kind, file2
|
|
|
26552
26553
|
return entry;
|
|
26553
26554
|
}, "archiveMediaFile");
|
|
26554
26555
|
|
|
26555
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26556
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/services/media-archive-locks.js
|
|
26556
26557
|
import { mkdir, realpath } from "node:fs/promises";
|
|
26557
26558
|
import { join as join6, resolve as resolve3 } from "node:path";
|
|
26558
26559
|
var archiveLocations = /* @__PURE__ */ __name(async (initial, signal) => {
|
|
@@ -26619,7 +26620,7 @@ var withMediaArchiveLocks = /* @__PURE__ */ __name(async (directory2, signal, ru
|
|
|
26619
26620
|
throw new CliError("validation_error", "archive locations changed during locking; run the command again");
|
|
26620
26621
|
}, "withMediaArchiveLocks");
|
|
26621
26622
|
|
|
26622
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26623
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/services/media-archive.js
|
|
26623
26624
|
var validateMediaSince = /* @__PURE__ */ __name((value, flag = "--since-time") => {
|
|
26624
26625
|
if (value === void 0)
|
|
26625
26626
|
return void 0;
|
|
@@ -26772,7 +26773,7 @@ var archiveMedia = /* @__PURE__ */ __name(async (ports, options) => {
|
|
|
26772
26773
|
}, { create: true });
|
|
26773
26774
|
}, "archiveMedia");
|
|
26774
26775
|
|
|
26775
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26776
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/services/media-archive-move.js
|
|
26776
26777
|
import { realpath as realpath2, unlink as unlink5 } from "node:fs/promises";
|
|
26777
26778
|
import { basename as basename2, dirname as dirname2, join as join7, resolve as resolve4 } from "node:path";
|
|
26778
26779
|
var canonicalDestination = /* @__PURE__ */ __name(async (directory2) => {
|
|
@@ -26925,7 +26926,7 @@ var moveMediaArchive = /* @__PURE__ */ __name(async (options) => {
|
|
|
26925
26926
|
}, { additional: [target2], createAdditional: !options.dryRun });
|
|
26926
26927
|
}, "moveMediaArchive");
|
|
26927
26928
|
|
|
26928
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26929
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/services/model-downloads.js
|
|
26929
26930
|
var bytesOf2 = /* @__PURE__ */ __name((model) => model.files.reduce((sum2, file2) => sum2 + file2.bytes, 0), "bytesOf");
|
|
26930
26931
|
var nativeRuntime = /* @__PURE__ */ __name(async ({ env, progress = /* @__PURE__ */ __name(() => {
|
|
26931
26932
|
}, "progress") }) => {
|
|
@@ -26948,7 +26949,7 @@ var downloadTextModel = /* @__PURE__ */ __name(async (id2, { env, progress = /*
|
|
|
26948
26949
|
}
|
|
26949
26950
|
await nativeRuntime({ env, progress });
|
|
26950
26951
|
progress(`${model.id}: loading it once to check it works`);
|
|
26951
|
-
const { openEmbedder: openEmbedder2 } = await import("./embed-
|
|
26952
|
+
const { openEmbedder: openEmbedder2 } = await import("./embed-CM2QSTNK.js");
|
|
26952
26953
|
const embedder = await openEmbedder2(model, directory2);
|
|
26953
26954
|
try {
|
|
26954
26955
|
const [vector] = await embedder.embed(["check"], "query");
|
|
@@ -26969,7 +26970,7 @@ var downloadRerankModel = /* @__PURE__ */ __name(async (id2, { env, progress = /
|
|
|
26969
26970
|
}
|
|
26970
26971
|
await nativeRuntime({ env, progress });
|
|
26971
26972
|
progress(`${model.id}: loading it once to check it works`);
|
|
26972
|
-
const { openReranker } = await import("./rerank-
|
|
26973
|
+
const { openReranker } = await import("./rerank-YRLAXFFL.js");
|
|
26973
26974
|
const reranker = await openReranker(model, directory2);
|
|
26974
26975
|
try {
|
|
26975
26976
|
await reranker.score("check", ["check"]);
|
|
@@ -26987,7 +26988,7 @@ var downloadImageModel = /* @__PURE__ */ __name(async (id2, { env, progress = /*
|
|
|
26987
26988
|
await installFiles(placedImage(model, directory2), { progress, ...bytes2 ? { bytes: bytes2 } : {} });
|
|
26988
26989
|
}
|
|
26989
26990
|
progress(`${model.id}: loading it once to check it works`);
|
|
26990
|
-
const { openPictureEmbedder } = await import("./embedder-
|
|
26991
|
+
const { openPictureEmbedder } = await import("./embedder-CDCAMVV7.js");
|
|
26991
26992
|
const embedder = await openPictureEmbedder(model, directory2);
|
|
26992
26993
|
try {
|
|
26993
26994
|
const vector = await embedder.embedQuery("check");
|
|
@@ -26999,7 +27000,7 @@ var downloadImageModel = /* @__PURE__ */ __name(async (id2, { env, progress = /*
|
|
|
26999
27000
|
return { model, directory: directory2 };
|
|
27000
27001
|
}, "downloadImageModel");
|
|
27001
27002
|
|
|
27002
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27003
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/domain/money-words.js
|
|
27003
27004
|
var MONEY_REQUEST = "money-request";
|
|
27004
27005
|
var MONEY_DONE = "money-done";
|
|
27005
27006
|
var PROMISE = "promise";
|
|
@@ -27033,10 +27034,10 @@ var MONEY_WORDS = [
|
|
|
27033
27034
|
}
|
|
27034
27035
|
];
|
|
27035
27036
|
|
|
27036
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27037
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/services/money-words.js
|
|
27037
27038
|
var moneyClassesOf = /* @__PURE__ */ __name((text2) => listsHit(text2, MONEY_WORDS), "moneyClassesOf");
|
|
27038
27039
|
|
|
27039
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27040
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/domain/status-words.js
|
|
27040
27041
|
var words2 = /* @__PURE__ */ __name((forms) => new RegExp(`(?<![\\p{L}\\p{N}])(?:${forms.join("|")})(?![\\p{L}\\p{N}])`, "iu"), "words");
|
|
27041
27042
|
var MONEY_DONE_FORMS = words2([
|
|
27042
27043
|
"\u043E\u043F\u043B\u0430\u0442\u0438\u043B[\u0430\u0438]?",
|
|
@@ -27076,7 +27077,7 @@ var PROMISE_FORMS = words2([
|
|
|
27076
27077
|
"estar\xE1 listo"
|
|
27077
27078
|
]);
|
|
27078
27079
|
|
|
27079
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27080
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/services/project-status/items.js
|
|
27080
27081
|
var EXCERPT_CHARS = 80;
|
|
27081
27082
|
var excerpt2 = /* @__PURE__ */ __name((text2) => {
|
|
27082
27083
|
const flat = text2.replace(/\s+/g, " ").trim();
|
|
@@ -27098,7 +27099,7 @@ var whoOf = /* @__PURE__ */ __name((message) => ({
|
|
|
27098
27099
|
var fromOwner = /* @__PURE__ */ __name((message) => message.outgoing === true, "fromOwner");
|
|
27099
27100
|
var day = /* @__PURE__ */ __name((at) => new Date(at).toISOString().slice(0, 10), "day");
|
|
27100
27101
|
|
|
27101
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27102
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/services/project-status/signals/amounts.js
|
|
27102
27103
|
var MONEY = DEFAULT_TASK_CATEGORIES.filter((category) => category.name === "money");
|
|
27103
27104
|
var verbOf = /* @__PURE__ */ __name((text2) => {
|
|
27104
27105
|
if (MONEY_DONE_FORMS.test(text2))
|
|
@@ -27179,7 +27180,7 @@ var amounts = {
|
|
|
27179
27180
|
attention: /* @__PURE__ */ __name((items) => items.flatMap((item2) => item2.chat !== null && item2.data.state === "asked" ? [{ chat: item2.chat, weight: 2, why: "money asked" }] : []), "attention")
|
|
27180
27181
|
};
|
|
27181
27182
|
|
|
27182
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27183
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/services/project-status/signals/children.js
|
|
27183
27184
|
var children = {
|
|
27184
27185
|
id: "children",
|
|
27185
27186
|
version: 1,
|
|
@@ -27208,7 +27209,7 @@ var children = {
|
|
|
27208
27209
|
}, "read")
|
|
27209
27210
|
};
|
|
27210
27211
|
|
|
27211
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27212
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/services/project-status/signals/coverage.js
|
|
27212
27213
|
var coverage = {
|
|
27213
27214
|
id: "coverage",
|
|
27214
27215
|
version: 1,
|
|
@@ -27237,7 +27238,7 @@ var coverage = {
|
|
|
27237
27238
|
attention: /* @__PURE__ */ __name((items) => items.flatMap((item2) => item2.chat !== null && item2.data.state !== "complete" && item2.data.beforeHeld ? [{ chat: item2.chat, weight: 3, why: "held in part" }] : []), "attention")
|
|
27238
27239
|
};
|
|
27239
27240
|
|
|
27240
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27241
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/services/project-status/signals/payments.js
|
|
27241
27242
|
var holding = /* @__PURE__ */ __name((row) => row.review !== "rejected", "holding");
|
|
27242
27243
|
var item = /* @__PURE__ */ __name((row, at, data) => ({
|
|
27243
27244
|
signal: "payments",
|
|
@@ -27287,7 +27288,7 @@ var payments = {
|
|
|
27287
27288
|
}, "read")
|
|
27288
27289
|
};
|
|
27289
27290
|
|
|
27290
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27291
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/services/project-status/signals/promises.js
|
|
27291
27292
|
var PATTERNS_PER_CHAT = 3;
|
|
27292
27293
|
var DAY3 = 864e5;
|
|
27293
27294
|
var KINDS2 = /* @__PURE__ */ new Set(["promise", "request"]);
|
|
@@ -27376,7 +27377,7 @@ var promises = {
|
|
|
27376
27377
|
}, "read")
|
|
27377
27378
|
};
|
|
27378
27379
|
|
|
27379
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27380
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/services/project-status/signals/questions.js
|
|
27380
27381
|
var PER_SIDE = 5;
|
|
27381
27382
|
var WEEK = 7 * 864e5;
|
|
27382
27383
|
var NOBODY = /* @__PURE__ */ new Set();
|
|
@@ -27407,7 +27408,7 @@ var questions2 = {
|
|
|
27407
27408
|
}, "attention")
|
|
27408
27409
|
};
|
|
27409
27410
|
|
|
27410
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27411
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/services/project-status/signals/reply-next.js
|
|
27411
27412
|
var targetOf = /* @__PURE__ */ __name((message, chat, owners) => {
|
|
27412
27413
|
const byId2 = /* @__PURE__ */ __name((id2) => chat.messages.find((one2) => one2.id === id2), "byId");
|
|
27413
27414
|
const quoted = message.replyTo ?? (message.replyToId === void 0 ? void 0 : byId2(message.replyToId));
|
|
@@ -27475,7 +27476,7 @@ var replyNext = {
|
|
|
27475
27476
|
attention: /* @__PURE__ */ __name((items) => items.flatMap((item2) => item2.chat !== null && item2.data.next === "owner" ? [{ chat: item2.chat, weight: 2, why: "your move" }] : []), "attention")
|
|
27476
27477
|
};
|
|
27477
27478
|
|
|
27478
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27479
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/services/project-status/signals/topics.js
|
|
27479
27480
|
var escaped2 = /* @__PURE__ */ __name((text2) => text2.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), "escaped");
|
|
27480
27481
|
var wholeWord = /* @__PURE__ */ __name((word) => new RegExp(`(?<![\\p{L}\\p{N}])${escaped2(word)}(?![\\p{L}\\p{N}])`, "u"), "wholeWord");
|
|
27481
27482
|
var matcherOf = /* @__PURE__ */ __name((query) => {
|
|
@@ -27521,7 +27522,7 @@ var topics = {
|
|
|
27521
27522
|
}, "read")
|
|
27522
27523
|
};
|
|
27523
27524
|
|
|
27524
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27525
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/services/project-status/signals/index.js
|
|
27525
27526
|
var STATUS_SIGNALS = [
|
|
27526
27527
|
replyNext,
|
|
27527
27528
|
questions2,
|
|
@@ -27533,7 +27534,7 @@ var STATUS_SIGNALS = [
|
|
|
27533
27534
|
children
|
|
27534
27535
|
];
|
|
27535
27536
|
|
|
27536
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27537
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/services/project-status/index.js
|
|
27537
27538
|
var DAY4 = 864e5;
|
|
27538
27539
|
var STATUS_WINDOW = 300;
|
|
27539
27540
|
var STATUS_CHATS = 16;
|
|
@@ -27549,7 +27550,7 @@ var childrenOf = /* @__PURE__ */ __name(async (store, root, catalog) => {
|
|
|
27549
27550
|
const below = [];
|
|
27550
27551
|
for (const parent of level2)
|
|
27551
27552
|
for (const relation of await store.knowledge.relations(null, parent)) {
|
|
27552
|
-
if (!relation.
|
|
27553
|
+
if (!isUsable(relation.standing) || relation.kind !== "member-of" || relation.to !== parent)
|
|
27553
27554
|
continue;
|
|
27554
27555
|
if (!relation.from.startsWith("project:"))
|
|
27555
27556
|
continue;
|
|
@@ -27722,7 +27723,7 @@ var projectStatus = /* @__PURE__ */ __name(async (store, input) => {
|
|
|
27722
27723
|
};
|
|
27723
27724
|
}, "projectStatus");
|
|
27724
27725
|
|
|
27725
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27726
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/services/account.js
|
|
27726
27727
|
var accountService = /* @__PURE__ */ __name((deps) => {
|
|
27727
27728
|
const online = /* @__PURE__ */ __name(async (command) => {
|
|
27728
27729
|
if (deps.offline)
|
|
@@ -27794,7 +27795,7 @@ var accountService = /* @__PURE__ */ __name((deps) => {
|
|
|
27794
27795
|
};
|
|
27795
27796
|
}, "accountService");
|
|
27796
27797
|
|
|
27797
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27798
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/domain/send-time.js
|
|
27798
27799
|
var MINUTE = 6e4;
|
|
27799
27800
|
var YEAR = 365 * 24 * 60 * MINUTE;
|
|
27800
27801
|
var DELAY = /^(\d+)(m|h|d)$/;
|
|
@@ -27813,7 +27814,7 @@ var sendTime = /* @__PURE__ */ __name((value, now = Date.now(), flag = "--at-tim
|
|
|
27813
27814
|
return new Date(at - at % MINUTE).toISOString();
|
|
27814
27815
|
}, "sendTime");
|
|
27815
27816
|
|
|
27816
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27817
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/services/admin.js
|
|
27817
27818
|
var recordMembership = /* @__PURE__ */ __name(async (deps, operationId, done2, change, fix, write2) => {
|
|
27818
27819
|
try {
|
|
27819
27820
|
const held = await accountStoreIfOpen(deps);
|
|
@@ -28060,7 +28061,7 @@ var linkLimits = /* @__PURE__ */ __name(({ approval, expires, maxUses }) => {
|
|
|
28060
28061
|
return expires === void 0 ? void 0 : sendTime(expires, Date.now(), "--expire-time");
|
|
28061
28062
|
}, "linkLimits");
|
|
28062
28063
|
|
|
28063
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28064
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/services/mail-search.js
|
|
28064
28065
|
var THREADS_PAGE = 500;
|
|
28065
28066
|
var threadsOf = /* @__PURE__ */ __name(async (store, key) => {
|
|
28066
28067
|
const account = await store.accounts.storedAccount(key).catch(() => void 0);
|
|
@@ -28139,7 +28140,7 @@ var readMail = /* @__PURE__ */ __name(async (store, locator, { before: before2 =
|
|
|
28139
28140
|
return thread.slice(Math.max(0, at - before2), at + after + 1).map((hit) => hit.id === message ? { ...hit, anchor: true } : hit);
|
|
28140
28141
|
}, "readMail");
|
|
28141
28142
|
|
|
28142
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28143
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/services/search-kind.js
|
|
28143
28144
|
var NO_MAIL = "no_mail";
|
|
28144
28145
|
var MAIL = "email";
|
|
28145
28146
|
var listContextOf = /* @__PURE__ */ __name(async (store, account, app, stored) => {
|
|
@@ -28186,7 +28187,7 @@ var accountsOfKind = /* @__PURE__ */ __name((kind, chosen, held, explicit, comma
|
|
|
28186
28187
|
return chosenMail.map(({ provider, account }) => ({ provider, account }));
|
|
28187
28188
|
}, "accountsOfKind");
|
|
28188
28189
|
|
|
28189
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28190
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/services/messages-search.js
|
|
28190
28191
|
var MAIL_FIELDS = /* @__PURE__ */ new Set(["to", "cc", "bcc", "subject", "mailbox", "label", "is"]);
|
|
28191
28192
|
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");
|
|
28192
28193
|
var prepareLucene = /* @__PURE__ */ __name(async (store, account, request, messenger) => {
|
|
@@ -28534,7 +28535,7 @@ var statsLucene = /* @__PURE__ */ __name(async (store, account, request, messeng
|
|
|
28534
28535
|
};
|
|
28535
28536
|
}, "statsLucene");
|
|
28536
28537
|
|
|
28537
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28538
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/services/rankings-selection.js
|
|
28538
28539
|
var RANKING_SELECTION_BYTES = 64 * 1024;
|
|
28539
28540
|
var object = /* @__PURE__ */ __name((value) => value !== null && typeof value === "object" && !Array.isArray(value) ? value : void 0, "object");
|
|
28540
28541
|
function invalid(message = "ranking selection is invalid \u2014 obtain a new drilldown from stats top") {
|
|
@@ -28703,7 +28704,7 @@ var readRankingSelection = /* @__PURE__ */ __name(async (store, input) => {
|
|
|
28703
28704
|
};
|
|
28704
28705
|
}, "readRankingSelection");
|
|
28705
28706
|
|
|
28706
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28707
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/services/search-record.js
|
|
28707
28708
|
var canonical = /* @__PURE__ */ __name((value, nested = false) => Array.isArray(value) ? value.map((one2) => canonical(one2, true)) : value !== null && typeof value === "object" ? Object.fromEntries(Object.entries(value).filter(([, one2]) => one2 !== void 0 && (nested || one2 !== false)).sort(([a], [b]) => a < b ? -1 : a > b ? 1 : 0).map(([key, one2]) => [key, canonical(one2, true)])) : value, "canonical");
|
|
28708
28709
|
var searchRecordOf = /* @__PURE__ */ __name((command, params) => ({
|
|
28709
28710
|
command,
|
|
@@ -28713,7 +28714,7 @@ var searchRecordOf = /* @__PURE__ */ __name((command, params) => ({
|
|
|
28713
28714
|
fieldsVersion: FIELD_VERSION
|
|
28714
28715
|
}), "searchRecordOf");
|
|
28715
28716
|
|
|
28716
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28717
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/services/admin-statistics.js
|
|
28717
28718
|
function invalid2(message) {
|
|
28718
28719
|
throw new CliError("validation_error", message);
|
|
28719
28720
|
}
|
|
@@ -29007,7 +29008,7 @@ var adminStatisticsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
29007
29008
|
}, "evidence")
|
|
29008
29009
|
}), "adminStatisticsService");
|
|
29009
29010
|
|
|
29010
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29011
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/services/archive-gaps.js
|
|
29011
29012
|
import { createHash as createHash7, randomUUID as randomUUID4 } from "node:crypto";
|
|
29012
29013
|
var GAP_BOUNDS = { maxGaps: 5, limit: 500, timeMs: 3e4 };
|
|
29013
29014
|
var validateRepair = /* @__PURE__ */ __name((messenger, options) => {
|
|
@@ -29144,16 +29145,16 @@ var gapsService = /* @__PURE__ */ __name((deps) => {
|
|
|
29144
29145
|
return { plan, repair };
|
|
29145
29146
|
}, "gapsService");
|
|
29146
29147
|
|
|
29147
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29148
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/services/attachments.js
|
|
29148
29149
|
import { createHash as createHash9 } from "node:crypto";
|
|
29149
29150
|
import { constants as constants2, mkdirSync as mkdirSync2 } from "node:fs";
|
|
29150
29151
|
import { lstat as lstat4, open as open6, readFile, stat as stat2 } from "node:fs/promises";
|
|
29151
29152
|
|
|
29152
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29153
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/attachments/directory.js
|
|
29153
29154
|
import { lstat as lstat2, readdir as readdir2, realpath as realpath3 } from "node:fs/promises";
|
|
29154
29155
|
import { basename as basename4, join as join8, relative as relative2, sep as sep2 } from "node:path";
|
|
29155
29156
|
|
|
29156
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29157
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/sends/upload.js
|
|
29157
29158
|
import { openAsBlob, realpathSync } from "node:fs";
|
|
29158
29159
|
import { open as open4, stat } from "node:fs/promises";
|
|
29159
29160
|
import { basename as basename3, dirname as dirname3, extname, isAbsolute as isAbsolute2, relative, resolve as resolve5, sep } from "node:path";
|
|
@@ -29355,7 +29356,7 @@ var readStickerFile = /* @__PURE__ */ __name(async (path, maxBytes, read2) => {
|
|
|
29355
29356
|
return { name, source };
|
|
29356
29357
|
}, "readStickerFile");
|
|
29357
29358
|
|
|
29358
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29359
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/attachments/directory.js
|
|
29359
29360
|
var MAX_FILES = 1e4;
|
|
29360
29361
|
var directoryPaths = /* @__PURE__ */ __name(async (store, chat, directory2, app, env) => {
|
|
29361
29362
|
if (refusedPlace(directory2, app, env))
|
|
@@ -29424,15 +29425,15 @@ var directoryPaths = /* @__PURE__ */ __name(async (store, chat, directory2, app,
|
|
|
29424
29425
|
return choices;
|
|
29425
29426
|
}, "directoryPaths");
|
|
29426
29427
|
|
|
29427
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29428
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/attachments/documents.js
|
|
29428
29429
|
import { posix } from "node:path";
|
|
29429
29430
|
|
|
29430
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29431
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/attachments/container.js
|
|
29431
29432
|
import { setImmediate as tick } from "node:timers/promises";
|
|
29432
29433
|
import { crc32 } from "node:zlib";
|
|
29433
29434
|
var import_xmldom = __toESM(require_lib(), 1);
|
|
29434
29435
|
|
|
29435
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29436
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/attachments/encoding.js
|
|
29436
29437
|
var import_chardet = __toESM(require_lib2(), 1);
|
|
29437
29438
|
var import_iconv_lite = __toESM(require_lib3(), 1);
|
|
29438
29439
|
var SAMPLE = 65536;
|
|
@@ -29534,7 +29535,7 @@ var decodeXml = /* @__PURE__ */ __name((bytes2) => {
|
|
|
29534
29535
|
return result.text;
|
|
29535
29536
|
}, "decodeXml");
|
|
29536
29537
|
|
|
29537
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29538
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/attachments/container.js
|
|
29538
29539
|
var MAX_PART = 10 * 1024 * 1024;
|
|
29539
29540
|
var MAX_ENTRIES = 1e3;
|
|
29540
29541
|
var decoder = new TextDecoder("utf-8", { fatal: true });
|
|
@@ -29749,7 +29750,7 @@ var elements = /* @__PURE__ */ __name((node, name, namespace) => {
|
|
|
29749
29750
|
return found;
|
|
29750
29751
|
}, "elements");
|
|
29751
29752
|
|
|
29752
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29753
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/attachments/sheets.js
|
|
29753
29754
|
var columnName = /* @__PURE__ */ __name((column) => {
|
|
29754
29755
|
let name = "";
|
|
29755
29756
|
for (let rest = column; rest > 0; rest = Math.floor((rest - 1) / 26))
|
|
@@ -29804,7 +29805,7 @@ var sheetText = /* @__PURE__ */ __name((sheets2, maxChars = MAX_TEXT_CHARS) => {
|
|
|
29804
29805
|
return { text: parts.join("").trim(), truncated: false };
|
|
29805
29806
|
}, "sheetText");
|
|
29806
29807
|
|
|
29807
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29808
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/attachments/documents.js
|
|
29808
29809
|
var OFFICE = "urn:oasis:names:tc:opendocument:xmlns:office:1.0";
|
|
29809
29810
|
var TEXT = "urn:oasis:names:tc:opendocument:xmlns:text:1.0";
|
|
29810
29811
|
var TABLE = "urn:oasis:names:tc:opendocument:xmlns:table:1.0";
|
|
@@ -30204,10 +30205,10 @@ var readDocument = /* @__PURE__ */ __name(async (bytes2, kind, signal) => {
|
|
|
30204
30205
|
}
|
|
30205
30206
|
}, "readDocument");
|
|
30206
30207
|
|
|
30207
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30208
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/attachments/extract.js
|
|
30208
30209
|
import { extname as extname3 } from "node:path";
|
|
30209
30210
|
|
|
30210
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30211
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/readers/engine.js
|
|
30211
30212
|
import { readFileSync } from "node:fs";
|
|
30212
30213
|
import { dirname as dirname4, extname as extname2, join as join9 } from "node:path";
|
|
30213
30214
|
import { fileURLToPath } from "node:url";
|
|
@@ -30268,7 +30269,7 @@ var derived = /* @__PURE__ */ __name((bytes2, extractor, read2) => {
|
|
|
30268
30269
|
}
|
|
30269
30270
|
}, "derived");
|
|
30270
30271
|
|
|
30271
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30272
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/readers/image/index.js
|
|
30272
30273
|
var IMAGES = /* @__PURE__ */ new Set([".jpg", ".jpeg", ".png", ".webp", ".gif", ".heic", ".tif", ".tiff", ".bmp"]);
|
|
30273
30274
|
var image2 = {
|
|
30274
30275
|
id: "image",
|
|
@@ -30277,7 +30278,7 @@ var image2 = {
|
|
|
30277
30278
|
read: /* @__PURE__ */ __name(async () => ({ status: "needs-agent" }), "read")
|
|
30278
30279
|
};
|
|
30279
30280
|
|
|
30280
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30281
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/readers/doc/index.js
|
|
30281
30282
|
var OLE = "\xD0\xCF\xE0\xA1\xB1\xE1";
|
|
30282
30283
|
var doc = {
|
|
30283
30284
|
id: "doc",
|
|
@@ -30289,7 +30290,7 @@ var doc = {
|
|
|
30289
30290
|
}), "read")
|
|
30290
30291
|
};
|
|
30291
30292
|
|
|
30292
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30293
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/readers/docx/index.js
|
|
30293
30294
|
var DOCX = "application/vnd.openxmlformats-officedocument.wordprocessingml.document";
|
|
30294
30295
|
var docx = {
|
|
30295
30296
|
id: "docx",
|
|
@@ -30302,7 +30303,7 @@ var docx = {
|
|
|
30302
30303
|
}), "read")
|
|
30303
30304
|
};
|
|
30304
30305
|
|
|
30305
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30306
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/attachments/markup.js
|
|
30306
30307
|
var import_iconv_lite2 = __toESM(require_lib3(), 1);
|
|
30307
30308
|
var RTF_SKIPPED = /* @__PURE__ */ new Set([
|
|
30308
30309
|
"fonttbl",
|
|
@@ -30478,7 +30479,7 @@ var htmlText = /* @__PURE__ */ __name((source) => {
|
|
|
30478
30479
|
}, "htmlText");
|
|
30479
30480
|
var safeChar = /* @__PURE__ */ __name((code, fallback) => code > 0 && code <= 1114111 ? String.fromCodePoint(code) : fallback, "safeChar");
|
|
30480
30481
|
|
|
30481
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30482
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/readers/html/page.js
|
|
30482
30483
|
var clean = /* @__PURE__ */ __name((value) => typeof value === "string" ? value.replace(/\s+/g, " ").trim() : "", "clean");
|
|
30483
30484
|
var namesIn = /* @__PURE__ */ __name((value) => [value].flat().map((entry) => typeof entry === "string" ? clean(entry) : clean(entry?.name)).filter(Boolean).join(", "), "namesIn");
|
|
30484
30485
|
var jsonLdNodes = /* @__PURE__ */ __name((document) => {
|
|
@@ -30534,7 +30535,7 @@ var markdownSections = /* @__PURE__ */ __name((text2) => {
|
|
|
30534
30535
|
return found.map((section, index) => ({ ...section, end: found[index + 1]?.start ?? text2.length }));
|
|
30535
30536
|
}, "markdownSections");
|
|
30536
30537
|
|
|
30537
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30538
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/readers/html/index.js
|
|
30538
30539
|
var HTML = /* @__PURE__ */ new Set([".html", ".htm", ".xhtml"]);
|
|
30539
30540
|
var first = /* @__PURE__ */ __name((...values) => values.find((value) => typeof value === "string" && value !== ""), "first");
|
|
30540
30541
|
var loaded = /* @__PURE__ */ __name(async (load, name) => {
|
|
@@ -30605,7 +30606,7 @@ var html = {
|
|
|
30605
30606
|
}, "read")
|
|
30606
30607
|
};
|
|
30607
30608
|
|
|
30608
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30609
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/readers/office/index.js
|
|
30609
30610
|
var office = {
|
|
30610
30611
|
id: "office",
|
|
30611
30612
|
version: documentExtractor("odt"),
|
|
@@ -30616,7 +30617,7 @@ var office = {
|
|
|
30616
30617
|
}, "read")
|
|
30617
30618
|
};
|
|
30618
30619
|
|
|
30619
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30620
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/readers/pdf/index.js
|
|
30620
30621
|
var pdf = {
|
|
30621
30622
|
id: "pdf",
|
|
30622
30623
|
version: "unpdf",
|
|
@@ -30683,7 +30684,7 @@ var pdf = {
|
|
|
30683
30684
|
}), "read")
|
|
30684
30685
|
};
|
|
30685
30686
|
|
|
30686
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30687
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/readers/plain/index.js
|
|
30687
30688
|
var PLAIN = /* @__PURE__ */ new Set([".txt", ".md", ".markdown", ".csv", ".tsv", ".json", ".log"]);
|
|
30688
30689
|
var isPlain = /* @__PURE__ */ __name((hint) => PLAIN.has(extensionOf(hint)) || hint.mime?.startsWith("text/") || hint.mime === "application/json", "isPlain");
|
|
30689
30690
|
var readPlain = /* @__PURE__ */ __name((bytes2) => {
|
|
@@ -30703,7 +30704,7 @@ var plain = {
|
|
|
30703
30704
|
read: /* @__PURE__ */ __name(async (bytes2) => readPlain(bytes2), "read")
|
|
30704
30705
|
};
|
|
30705
30706
|
|
|
30706
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30707
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/readers/rtf/index.js
|
|
30707
30708
|
var rtf = {
|
|
30708
30709
|
id: "rtf",
|
|
30709
30710
|
version: "v1",
|
|
@@ -30711,10 +30712,10 @@ var rtf = {
|
|
|
30711
30712
|
read: /* @__PURE__ */ __name(async (bytes2) => derived(bytes2, "rtf:v1", rtfText), "read")
|
|
30712
30713
|
};
|
|
30713
30714
|
|
|
30714
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30715
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/readers/sheets/index.js
|
|
30715
30716
|
import { basename as basename5 } from "node:path";
|
|
30716
30717
|
|
|
30717
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30718
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/attachments/csv-spans.js
|
|
30718
30719
|
var delimitedSpans = /* @__PURE__ */ __name((text2, delimiter, maxCells = 1e4) => {
|
|
30719
30720
|
const cells = [];
|
|
30720
30721
|
let row = 1, column = 1, start = 0, quoted = false, truncated = false;
|
|
@@ -30752,7 +30753,7 @@ var delimitedSpans = /* @__PURE__ */ __name((text2, delimiter, maxCells = 1e4) =
|
|
|
30752
30753
|
return { cells, truncated };
|
|
30753
30754
|
}, "delimitedSpans");
|
|
30754
30755
|
|
|
30755
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30756
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/readers/sheets/index.js
|
|
30756
30757
|
var DELIMITED = {
|
|
30757
30758
|
".csv": ",",
|
|
30758
30759
|
".tsv": " ",
|
|
@@ -30791,7 +30792,7 @@ var sheets = {
|
|
|
30791
30792
|
}, "read")
|
|
30792
30793
|
};
|
|
30793
30794
|
|
|
30794
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30795
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/readers/registry.js
|
|
30795
30796
|
var BUILT_INS2 = [office, pdf, docx, doc, rtf, html, sheets, plain, image2];
|
|
30796
30797
|
var HEAD_BYTES = 1024;
|
|
30797
30798
|
var readers = [...BUILT_INS2];
|
|
@@ -30801,7 +30802,7 @@ var readWithRegistry = /* @__PURE__ */ __name(async (bytes2, hint, context2) =>
|
|
|
30801
30802
|
return reader ? reader.read(bytes2, hint, context2) : { status: "unsupported" };
|
|
30802
30803
|
}, "readWithRegistry");
|
|
30803
30804
|
|
|
30804
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30805
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/attachments/extract.js
|
|
30805
30806
|
var importEngine = /* @__PURE__ */ __name((name) => importFrom(new URL("attachments/extract.js", import.meta.resolve("@wirecat/cli-core")).href, name), "importEngine");
|
|
30806
30807
|
var extensionOf2 = /* @__PURE__ */ __name(({ name, path }) => extname3(name ?? path).toLowerCase(), "extensionOf");
|
|
30807
30808
|
var extractText = /* @__PURE__ */ __name(async (bytes2, hint, load, signal, env = process.env) => {
|
|
@@ -31880,7 +31881,7 @@ function imageSize(input) {
|
|
|
31880
31881
|
}
|
|
31881
31882
|
__name(imageSize, "imageSize");
|
|
31882
31883
|
|
|
31883
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31884
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/attachments/ocr.js
|
|
31884
31885
|
var MAX_PAGES = 20;
|
|
31885
31886
|
var MAX_PIXELS = 2e7;
|
|
31886
31887
|
var cancelled2 = /* @__PURE__ */ __name((signal) => {
|
|
@@ -32031,7 +32032,7 @@ var ocrPdf = /* @__PURE__ */ __name(async (bytes2, pipeline2, load, signal) => {
|
|
|
32031
32032
|
}
|
|
32032
32033
|
}, "ocrPdf");
|
|
32033
32034
|
|
|
32034
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32035
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/attachments/pdf-preview.js
|
|
32035
32036
|
var pdfPreview = /* @__PURE__ */ __name(async (bytes2, page, signal, load = importEngine, env = process.env) => {
|
|
32036
32037
|
const limits = pdfPreviewLimits(env);
|
|
32037
32038
|
const cancelled4 = /* @__PURE__ */ __name(() => {
|
|
@@ -32108,7 +32109,7 @@ var pdfPreview = /* @__PURE__ */ __name(async (bytes2, page, signal, load = impo
|
|
|
32108
32109
|
}
|
|
32109
32110
|
}, "pdfPreview");
|
|
32110
32111
|
|
|
32111
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32112
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/attachments/transfer.js
|
|
32112
32113
|
import { createHash as createHash8 } from "node:crypto";
|
|
32113
32114
|
import { constants } from "node:fs";
|
|
32114
32115
|
import { lstat as lstat3, open as open5 } from "node:fs/promises";
|
|
@@ -32216,7 +32217,7 @@ var transferMime = /* @__PURE__ */ __name((head, hint, name = null) => {
|
|
|
32216
32217
|
return hint !== null && /^[a-z0-9.+-]+\/[a-z0-9.+-]+$/i.test(hint) ? hint : "application/octet-stream";
|
|
32217
32218
|
}, "transferMime");
|
|
32218
32219
|
|
|
32219
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32220
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/services/file-download.js
|
|
32220
32221
|
import { createWriteStream, mkdirSync } from "node:fs";
|
|
32221
32222
|
import { link as link3, rm } from "node:fs/promises";
|
|
32222
32223
|
import { join as join10, resolve as resolve6 } from "node:path";
|
|
@@ -32330,7 +32331,7 @@ var save = /* @__PURE__ */ __name(async (file2, directory2, fallbackName, { uniq
|
|
|
32330
32331
|
}
|
|
32331
32332
|
}, "save");
|
|
32332
32333
|
|
|
32333
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32334
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/services/attachments.js
|
|
32334
32335
|
var ATTACHMENT_QUERY = {
|
|
32335
32336
|
entity: "attachment",
|
|
32336
32337
|
backend: "sql",
|
|
@@ -32753,7 +32754,7 @@ var attachmentsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
32753
32754
|
}, "setText")
|
|
32754
32755
|
}), "attachmentsService");
|
|
32755
32756
|
|
|
32756
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32757
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/services/chat-documents.js
|
|
32757
32758
|
var chatDocumentsService = /* @__PURE__ */ __name((deps) => ({
|
|
32758
32759
|
list: /* @__PURE__ */ __name(async (chat, { limit, offset, ref }) => {
|
|
32759
32760
|
const store = await accountStore(deps);
|
|
@@ -32783,7 +32784,7 @@ var chatDocumentsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
32783
32784
|
}, "list")
|
|
32784
32785
|
}), "chatDocumentsService");
|
|
32785
32786
|
|
|
32786
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32787
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/services/retention.js
|
|
32787
32788
|
var observationDuration = /* @__PURE__ */ __name((text2, flag) => {
|
|
32788
32789
|
const match = /^(\d+(?:\.\d+)?)([smhdw])$/.exec(text2);
|
|
32789
32790
|
const units2 = { s: 1e3, m: 6e4, h: 36e5, d: 864e5, w: 6048e5 };
|
|
@@ -32870,7 +32871,7 @@ var isRetentionSelection = /* @__PURE__ */ __name((selection) => {
|
|
|
32870
32871
|
}
|
|
32871
32872
|
}, "isRetentionSelection");
|
|
32872
32873
|
|
|
32873
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32874
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/services/counters.js
|
|
32874
32875
|
var counterFields = /* @__PURE__ */ __name((text2 = "views,reactions,comments") => {
|
|
32875
32876
|
const fields = text2.split(",").map((one2) => one2.trim());
|
|
32876
32877
|
if (!fields.length || fields.some((one2) => !COUNTER_FIELDS.includes(one2)) || new Set(fields).size !== fields.length)
|
|
@@ -33077,7 +33078,7 @@ var countersService = /* @__PURE__ */ __name((deps) => {
|
|
|
33077
33078
|
};
|
|
33078
33079
|
}, "countersService");
|
|
33079
33080
|
|
|
33080
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33081
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/services/search-refresh.js
|
|
33081
33082
|
var SYNC_KEY = "messages.sync-first";
|
|
33082
33083
|
var SYNC_BOUNDS = { maxChats: 5, timeMs: 3e4, maxMessages: 500 };
|
|
33083
33084
|
var keyOf2 = /* @__PURE__ */ __name((chat) => JSON.stringify([chat.account.provider, chat.account.account, chat.chatId]), "keyOf");
|
|
@@ -33209,7 +33210,7 @@ var withRefresh = /* @__PURE__ */ __name((found, refreshed) => ({
|
|
|
33209
33210
|
...!refreshed || refreshed.complete ? {} : { coverage: { ...found.coverage, state: "stale" } }
|
|
33210
33211
|
}), "withRefresh");
|
|
33211
33212
|
|
|
33212
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33213
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/services/embeddings-search.js
|
|
33213
33214
|
var CANDIDATES = 50;
|
|
33214
33215
|
var WORD_HITS = 200;
|
|
33215
33216
|
var RRF_K = 60;
|
|
@@ -33484,13 +33485,13 @@ var meanOf = /* @__PURE__ */ __name((vectors) => {
|
|
|
33484
33485
|
return mean2.map((value) => value / length);
|
|
33485
33486
|
}, "meanOf");
|
|
33486
33487
|
|
|
33487
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33488
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/services/embeddings.js
|
|
33488
33489
|
var embeddingsService = /* @__PURE__ */ __name((deps) => ({
|
|
33489
33490
|
...embeddingsMaintenance(deps),
|
|
33490
33491
|
...embeddingsSearch(deps)
|
|
33491
33492
|
}), "embeddingsService");
|
|
33492
33493
|
|
|
33493
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33494
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/services/folders.js
|
|
33494
33495
|
var foldersService = /* @__PURE__ */ __name((deps) => {
|
|
33495
33496
|
const online = /* @__PURE__ */ __name(async (command) => {
|
|
33496
33497
|
if (deps.offline)
|
|
@@ -33631,7 +33632,7 @@ var foldersService = /* @__PURE__ */ __name((deps) => {
|
|
|
33631
33632
|
};
|
|
33632
33633
|
}, "foldersService");
|
|
33633
33634
|
|
|
33634
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33635
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/services/mentions.js
|
|
33635
33636
|
var REVIEW_COUNT = 500;
|
|
33636
33637
|
var mentionsService = /* @__PURE__ */ __name((deps) => {
|
|
33637
33638
|
const located = /* @__PURE__ */ __name(async () => {
|
|
@@ -33710,7 +33711,7 @@ var mentionsService = /* @__PURE__ */ __name((deps) => {
|
|
|
33710
33711
|
};
|
|
33711
33712
|
}, "mentionsService");
|
|
33712
33713
|
|
|
33713
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33714
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/domain/formatting.js
|
|
33714
33715
|
var invalid3 = /* @__PURE__ */ __name(() => new CliError("validation_error", "the messenger formatter returned invalid text spans"), "invalid");
|
|
33715
33716
|
var validateFormattedText = /* @__PURE__ */ __name((formatted2) => {
|
|
33716
33717
|
const { text: text2, spans } = formatted2;
|
|
@@ -33770,7 +33771,7 @@ var visibleFormattedText = /* @__PURE__ */ __name((formatted2) => {
|
|
|
33770
33771
|
};
|
|
33771
33772
|
}, "visibleFormattedText");
|
|
33772
33773
|
|
|
33773
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33774
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/domain/message-link.js
|
|
33774
33775
|
var fileLinks = /* @__PURE__ */ __name((attachments) => hitFiles(attachments).map(({ position, kind, name }) => ({
|
|
33775
33776
|
position,
|
|
33776
33777
|
kind,
|
|
@@ -33819,7 +33820,7 @@ var validatePermalink = /* @__PURE__ */ __name((link4) => {
|
|
|
33819
33820
|
return { url: link4.url, access: link4.access, reason: link4.reason };
|
|
33820
33821
|
}, "validatePermalink");
|
|
33821
33822
|
|
|
33822
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33823
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/domain/pin-duration.js
|
|
33823
33824
|
var spokenSeconds = /* @__PURE__ */ __name((seconds) => {
|
|
33824
33825
|
if (seconds % 86400 === 0 && seconds > 86400)
|
|
33825
33826
|
return `${seconds / 86400}d`;
|
|
@@ -33851,7 +33852,7 @@ var pinDurationOf = /* @__PURE__ */ __name((value, allowed, flag = "--expire-tim
|
|
|
33851
33852
|
return seconds;
|
|
33852
33853
|
}, "pinDurationOf");
|
|
33853
33854
|
|
|
33854
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33855
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/sends/send-as.js
|
|
33855
33856
|
var sendAsCheck = /* @__PURE__ */ __name((connection, sendAs) => {
|
|
33856
33857
|
if (sendAs === void 0) {
|
|
33857
33858
|
const saved = connection.savedSender?.bind(connection);
|
|
@@ -33876,7 +33877,7 @@ var typedSendAs = /* @__PURE__ */ __name((typed) => {
|
|
|
33876
33877
|
return sendAs;
|
|
33877
33878
|
}, "typedSendAs");
|
|
33878
33879
|
|
|
33879
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33880
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/search/total.js
|
|
33880
33881
|
var TOTAL_CAP = 1e4;
|
|
33881
33882
|
var totalOf = /* @__PURE__ */ __name((count4, shown, hasMore, exact = true) => {
|
|
33882
33883
|
const least = shown + (hasMore ? 1 : 0);
|
|
@@ -33887,7 +33888,7 @@ var totalOf = /* @__PURE__ */ __name((count4, shown, hasMore, exact = true) => {
|
|
|
33887
33888
|
return { value: count4, relation: exact ? "eq" : "gte" };
|
|
33888
33889
|
}, "totalOf");
|
|
33889
33890
|
|
|
33890
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33891
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/search/lucene/meaning-parts.js
|
|
33891
33892
|
var WORD_FIELDS = /* @__PURE__ */ new Set(["text", "exact"]);
|
|
33892
33893
|
var fieldsOfQuery = /* @__PURE__ */ __name((root, everything) => {
|
|
33893
33894
|
let narrows = false;
|
|
@@ -33916,7 +33917,7 @@ var meaningWords = /* @__PURE__ */ __name((root) => {
|
|
|
33916
33917
|
return wanted(root).join(" ").trim();
|
|
33917
33918
|
}, "meaningWords");
|
|
33918
33919
|
|
|
33919
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33920
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/search/question-plan.js
|
|
33920
33921
|
var words3 = /* @__PURE__ */ __name((text2) => normalize(text2).match(/[\p{L}\p{N}]+/gu) ?? [], "words");
|
|
33921
33922
|
var scaffolding = new Set(words3("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"));
|
|
33922
33923
|
var questionWord = /\b(?:what|which|how|who|where|when|can|could|should)\b|(?:^|\s)(?:сколько|какой|какая|какие|какое|кто|кому|кем|где|когда|как|что|можно|может|могут|ли)(?:\s|$)/iu;
|
|
@@ -34048,7 +34049,7 @@ var questionLookup = /* @__PURE__ */ __name((text2) => {
|
|
|
34048
34049
|
return terms.length ? anyOfTerms(terms, plan.scope) : void 0;
|
|
34049
34050
|
}, "questionLookup");
|
|
34050
34051
|
|
|
34051
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34052
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/services/messages-combined.js
|
|
34052
34053
|
var COMBINED_DEFAULTS = { candidateDepth: 300, rrfK: 60, rerank: "all", chatCap: 0 };
|
|
34053
34054
|
var tokensOf = /* @__PURE__ */ __name((text2) => normalize(text2).match(/[\p{L}\p{N}\p{Co}\p{M}]+/gu) ?? [], "tokensOf");
|
|
34054
34055
|
var searchCombined = /* @__PURE__ */ __name(async (store, account, request, messenger = {}, options = COMBINED_DEFAULTS) => {
|
|
@@ -34241,7 +34242,7 @@ var signals = /* @__PURE__ */ __name((hit, terms, corrections, execution, mode,
|
|
|
34241
34242
|
return mode === "coverage" ? coverage2 * 4 : mode === "proximity" ? proximity : mode === "phrase" ? phrase : coverage2 * 4 + proximity + phrase;
|
|
34242
34243
|
}, "signals");
|
|
34243
34244
|
|
|
34244
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34245
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/services/messages-discovery.js
|
|
34245
34246
|
var MEANING_DEPTH = 100;
|
|
34246
34247
|
var RRF_K2 = 60;
|
|
34247
34248
|
var RERANK_DEPTH = 50;
|
|
@@ -34566,7 +34567,7 @@ var mixedWithReranker = /* @__PURE__ */ __name((head, scores) => {
|
|
|
34566
34567
|
})).sort((a, b) => b.mixed - a.mixed).map(({ hit }) => hit);
|
|
34567
34568
|
}, "mixedWithReranker");
|
|
34568
34569
|
|
|
34569
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34570
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/services/thread-context.js
|
|
34570
34571
|
var THREAD_BOUNDS = { maxHops: 8, maxMessages: 50, maxBytes: 65536, withinMs: 864e5 };
|
|
34571
34572
|
var bytes = /* @__PURE__ */ __name((items, links) => Buffer.byteLength(JSON.stringify({ items, links }), "utf8"), "bytes");
|
|
34572
34573
|
var threadBounds = /* @__PURE__ */ __name((options = {}) => {
|
|
@@ -34765,7 +34766,7 @@ var readThreadContext = /* @__PURE__ */ __name(async (store, account, chat, mess
|
|
|
34765
34766
|
return result;
|
|
34766
34767
|
}, "readThreadContext");
|
|
34767
34768
|
|
|
34768
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34769
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/services/messages-archive-search.js
|
|
34769
34770
|
var SEARCH_FILL_MS = 200;
|
|
34770
34771
|
var statsStore = /* @__PURE__ */ __name(async (store, account, request, messenger = {}) => {
|
|
34771
34772
|
const stop = Date.now() + SEARCH_FILL_MS;
|
|
@@ -34834,12 +34835,12 @@ var accountOf2 = /* @__PURE__ */ __name((hit) => {
|
|
|
34834
34835
|
}, "accountOf");
|
|
34835
34836
|
var keyOf3 = /* @__PURE__ */ __name(({ provider, account }) => `${provider}/${account}`, "keyOf");
|
|
34836
34837
|
|
|
34837
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34838
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/services/pictures.js
|
|
34838
34839
|
import { createHash as createHash10 } from "node:crypto";
|
|
34839
34840
|
import { readFile as readFile2, stat as stat3 } from "node:fs/promises";
|
|
34840
34841
|
import { setTimeout as sleep4 } from "node:timers/promises";
|
|
34841
34842
|
|
|
34842
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34843
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/domain/models.js
|
|
34843
34844
|
var GROUP_SETTINGS = [
|
|
34844
34845
|
"allCanPin",
|
|
34845
34846
|
"onlyAdminsAdd",
|
|
@@ -34853,7 +34854,7 @@ var ADMIN_RIGHTS = ["read", "members", "admins", "info", "pin", "link", "post",
|
|
|
34853
34854
|
var senderIsMe = /* @__PURE__ */ __name((message, account) => message.outgoing === true || message.senderId !== null && String(message.senderId) === account, "senderIsMe");
|
|
34854
34855
|
var MEDIA_KINDS = ["photo", "video", "file", "audio", "link"];
|
|
34855
34856
|
|
|
34856
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34857
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/services/pictures.js
|
|
34857
34858
|
var PICTURE_MAX_BYTES = 25 * 1024 * 1024;
|
|
34858
34859
|
var PICTURE_FLOOR = 0.25;
|
|
34859
34860
|
var PAGE4 = 50;
|
|
@@ -34870,7 +34871,7 @@ var picturesService = /* @__PURE__ */ __name((deps) => {
|
|
|
34870
34871
|
const directory2 = imageModelsDirectory(deps.env);
|
|
34871
34872
|
if (!isImageModelInstalled(model2, directory2))
|
|
34872
34873
|
throw new CliError("not_found", missingModel(model2.id), { reason: "model.not-downloaded", model: model2.id });
|
|
34873
|
-
const { openPictureEmbedder } = await import("./embedder-
|
|
34874
|
+
const { openPictureEmbedder } = await import("./embedder-CDCAMVV7.js");
|
|
34874
34875
|
return openPictureEmbedder(model2, directory2);
|
|
34875
34876
|
}, "open");
|
|
34876
34877
|
const embedder = /* @__PURE__ */ __name(() => {
|
|
@@ -35067,7 +35068,7 @@ var withPictures = /* @__PURE__ */ __name((messages, pictures) => ({
|
|
|
35067
35068
|
}, "search")
|
|
35068
35069
|
}), "withPictures");
|
|
35069
35070
|
|
|
35070
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35071
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/services/messages-meaning.js
|
|
35071
35072
|
var meaningLane = /* @__PURE__ */ __name((deps) => async (question, accounts, shared, within) => {
|
|
35072
35073
|
const target2 = embeddingTarget(deps, DEFAULT_TEXT_MODEL);
|
|
35073
35074
|
const skipped = /* @__PURE__ */ __name((reason, step) => ({
|
|
@@ -35135,7 +35136,7 @@ var meaningLane = /* @__PURE__ */ __name((deps) => async (question, accounts, sh
|
|
|
35135
35136
|
}
|
|
35136
35137
|
}, "meaningLane");
|
|
35137
35138
|
|
|
35138
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35139
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/services/messages-rerank.js
|
|
35139
35140
|
var rerankLane = /* @__PURE__ */ __name((deps) => {
|
|
35140
35141
|
const choice = deps.reranker ?? DEFAULT_RERANK_MODEL;
|
|
35141
35142
|
if (choice === "off")
|
|
@@ -35147,9 +35148,9 @@ var rerankLane = /* @__PURE__ */ __name((deps) => {
|
|
|
35147
35148
|
return { skipped: { reason: `${model.id} is not downloaded`, step: "models.download", model: model.id } };
|
|
35148
35149
|
try {
|
|
35149
35150
|
const warm = deps.embedders;
|
|
35150
|
-
const reranker = warm ? await warm.reranker(`rerank:${model.id}`, async () => (await import("./process-
|
|
35151
|
+
const reranker = warm ? await warm.reranker(`rerank:${model.id}`, async () => (await import("./process-P2X2KFMR.js")).openRerankerProcess(model, directory2, {
|
|
35151
35152
|
threads: defaultThreads()
|
|
35152
|
-
})) : await (await import("./rerank-
|
|
35153
|
+
})) : await (await import("./rerank-YRLAXFFL.js")).openReranker(model, directory2);
|
|
35153
35154
|
return {
|
|
35154
35155
|
model: model.id,
|
|
35155
35156
|
score: /* @__PURE__ */ __name((question, passages) => reranker.score(plainWords(question), passages), "score"),
|
|
@@ -35169,17 +35170,17 @@ var rerankLane = /* @__PURE__ */ __name((deps) => {
|
|
|
35169
35170
|
};
|
|
35170
35171
|
}, "rerankLane");
|
|
35171
35172
|
|
|
35172
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35173
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/services/document-pictures.js
|
|
35173
35174
|
var openPictureEmbedderFor = /* @__PURE__ */ __name(async ({ env, command } = {}) => {
|
|
35174
35175
|
const model = imageModel(DEFAULT_IMAGE_MODEL);
|
|
35175
35176
|
const directory2 = imageModelsDirectory(env);
|
|
35176
35177
|
if (!isImageModelInstalled(model, directory2))
|
|
35177
35178
|
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 });
|
|
35178
|
-
const { openPictureEmbedder } = await import("./embedder-
|
|
35179
|
+
const { openPictureEmbedder } = await import("./embedder-CDCAMVV7.js");
|
|
35179
35180
|
return openPictureEmbedder(model, directory2);
|
|
35180
35181
|
}, "openPictureEmbedderFor");
|
|
35181
35182
|
|
|
35182
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35183
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/services/document-source.js
|
|
35183
35184
|
var documentSource = /* @__PURE__ */ __name((note2, accounts, profiles, file2) => {
|
|
35184
35185
|
const metadata = note2.frontMatter;
|
|
35185
35186
|
const account = accounts.find(({ id: id2 }) => String(id2) === note2.folderId);
|
|
@@ -35194,7 +35195,7 @@ var documentSource = /* @__PURE__ */ __name((note2, accounts, profiles, file2) =
|
|
|
35194
35195
|
};
|
|
35195
35196
|
}, "documentSource");
|
|
35196
35197
|
|
|
35197
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35198
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/services/notes-title-tier.js
|
|
35198
35199
|
var plainQueryWords = /* @__PURE__ */ __name((query) => {
|
|
35199
35200
|
let root;
|
|
35200
35201
|
try {
|
|
@@ -35221,7 +35222,7 @@ var titleTiers = /* @__PURE__ */ __name((hits, words4) => {
|
|
|
35221
35222
|
return [...hits].sort((a, b) => rank(a) - rank(b));
|
|
35222
35223
|
}, "titleTiers");
|
|
35223
35224
|
|
|
35224
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35225
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/services/notes-search.js
|
|
35225
35226
|
var storeQuery = /* @__PURE__ */ __name(async (store, text2, { exact, timezone } = {}) => resolvedQuery(store, parsedQuery(text2, exact), timezone), "storeQuery");
|
|
35226
35227
|
var parsedQuery = /* @__PURE__ */ __name((text2, exact) => validateFields(parseLucene(text2, { ...SEARCH_QUERY, defaultField: exact ? "exact" : "text" })).root, "parsedQuery");
|
|
35227
35228
|
var resolvedQuery = /* @__PURE__ */ __name(async (store, root, timezone) => {
|
|
@@ -35668,7 +35669,7 @@ var searchNotesOf = /* @__PURE__ */ __name(async (store, account, text2, { accou
|
|
|
35668
35669
|
};
|
|
35669
35670
|
}, "searchNotesOf");
|
|
35670
35671
|
|
|
35671
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35672
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/services/events-search.js
|
|
35672
35673
|
var MAX_EVENTS_OFFSET = 1e3;
|
|
35673
35674
|
var iso3 = /* @__PURE__ */ __name((at) => at === null ? null : new Date(at).toISOString(), "iso");
|
|
35674
35675
|
var accountIdsOf = /* @__PURE__ */ __name(async (store, accounts) => {
|
|
@@ -35786,7 +35787,7 @@ var searchEvents = /* @__PURE__ */ __name(async (store, query, { limit = 20, off
|
|
|
35786
35787
|
};
|
|
35787
35788
|
}, "searchEvents");
|
|
35788
35789
|
|
|
35789
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35790
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/services/search-all.js
|
|
35790
35791
|
var RESOURCES_SEARCHED = ["messages", "mail", "notes", "events", "crm"];
|
|
35791
35792
|
var refusal = /* @__PURE__ */ __name((error, text2) => {
|
|
35792
35793
|
const { reason, span } = error.details ?? {};
|
|
@@ -36057,7 +36058,7 @@ var oneList = /* @__PURE__ */ __name((lists, cosines) => {
|
|
|
36057
36058
|
return [...place.values()].sort((a, b) => a.rank - b.rank || cosine(b.item.ref) - cosine(a.item.ref)).map(({ item: item2 }) => item2);
|
|
36058
36059
|
}, "oneList");
|
|
36059
36060
|
|
|
36060
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36061
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/services/search-all-meetings.js
|
|
36061
36062
|
var RESOURCES_SEARCHED_WITH_MEETINGS = [...RESOURCES_SEARCHED, "meetings"];
|
|
36062
36063
|
var whole2 = /* @__PURE__ */ __name((value, minimum, maximum, label) => {
|
|
36063
36064
|
if (!Number.isSafeInteger(value) || value < minimum || value > maximum)
|
|
@@ -36311,7 +36312,7 @@ var searchAllOfSource = /* @__PURE__ */ __name(async (store, account, source, re
|
|
|
36311
36312
|
return { ...found, skipped: [...skipped, ...empty2, ...unnamed, ...found.skipped] };
|
|
36312
36313
|
}, "searchAllOfSource");
|
|
36313
36314
|
|
|
36314
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36315
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/services/server-search.js
|
|
36315
36316
|
var SERVER_SEARCH_KEY = "messages.server-search";
|
|
36316
36317
|
var SERVER_BOUNDS = { timeMs: 5e3, perCall: 100, maxCalls: 3, textBytes: 262144 };
|
|
36317
36318
|
var DEFAULT_BACKEND = "both";
|
|
@@ -36500,7 +36501,7 @@ var searchServer = /* @__PURE__ */ __name(async (deps, request) => {
|
|
|
36500
36501
|
return { report, sources };
|
|
36501
36502
|
}, "searchServer");
|
|
36502
36503
|
|
|
36503
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36504
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/services/messages.js
|
|
36504
36505
|
var DELETE_AT_ONCE = 10;
|
|
36505
36506
|
var filesOf = /* @__PURE__ */ __name(({ attachments }) => {
|
|
36506
36507
|
const files = fileLinks(attachments);
|
|
@@ -36941,7 +36942,7 @@ var checkMediaOptions = /* @__PURE__ */ __name((messenger, asked, attachments) =
|
|
|
36941
36942
|
throw new CliError("validation_error", `${MEDIA_FLAGS[first2]} needs a --photo or --file`);
|
|
36942
36943
|
}, "checkMediaOptions");
|
|
36943
36944
|
|
|
36944
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36945
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/domain/channel-tags.js
|
|
36945
36946
|
var CHANNEL_TAG_RULES_VERSION = "keywords-v1";
|
|
36946
36947
|
var RULES = {
|
|
36947
36948
|
ai: [/\b(ai|gpt|llm|machine learning|artificial intelligence)\b/iu, /нейросет|искусственн/iu],
|
|
@@ -36956,7 +36957,7 @@ var classifyChannel = /* @__PURE__ */ __name((metadata) => Object.entries(RULES)
|
|
|
36956
36957
|
return fields.length ? [{ tag, score: fields.length / 3, fields }] : [];
|
|
36957
36958
|
}), "classifyChannel");
|
|
36958
36959
|
|
|
36959
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36960
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/services/metadata.js
|
|
36960
36961
|
var metadataService = /* @__PURE__ */ __name((deps) => {
|
|
36961
36962
|
const held = /* @__PURE__ */ __name(async (reference, { includeLeft = false } = {}) => {
|
|
36962
36963
|
const store = await deps.store();
|
|
@@ -37042,7 +37043,7 @@ var metadataService = /* @__PURE__ */ __name((deps) => {
|
|
|
37042
37043
|
};
|
|
37043
37044
|
}, "metadataService");
|
|
37044
37045
|
|
|
37045
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37046
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/moderation/check.js
|
|
37046
37047
|
var INVITE = /max\.ru\/join\/|(t|telegram)\.me\/(\+|joinchat\/)|tg:\/\/join/i;
|
|
37047
37048
|
var LINK2 = /https?:\/\/\S+/i;
|
|
37048
37049
|
var STRENGTH = { report: 0, delete: 1, remove: 2 };
|
|
@@ -37230,7 +37231,7 @@ var nextPoint = /* @__PURE__ */ __name((rows, found) => {
|
|
|
37230
37231
|
}, "nextPoint");
|
|
37231
37232
|
var someUndone = /* @__PURE__ */ __name((rows) => rows.some(undone), "someUndone");
|
|
37232
37233
|
|
|
37233
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37234
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/moderation/rules.js
|
|
37234
37235
|
import { existsSync as existsSync2, readFileSync as readFileSync2 } from "node:fs";
|
|
37235
37236
|
import { join as join11 } from "node:path";
|
|
37236
37237
|
var RULE_ACTIONS = ["report", "delete", "remove"];
|
|
@@ -37373,7 +37374,7 @@ var assign = /* @__PURE__ */ __name((rules, key, value) => {
|
|
|
37373
37374
|
return { ...rules, [head]: { ...rules[head], [tail]: value } };
|
|
37374
37375
|
}, "assign");
|
|
37375
37376
|
|
|
37376
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37377
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/moderation/run.js
|
|
37377
37378
|
var FIRST_LOOK_MS = 24 * 36e5;
|
|
37378
37379
|
var moderateWith = /* @__PURE__ */ __name(async (run) => {
|
|
37379
37380
|
const { chatId, title, rules, point, since, dryRun } = run;
|
|
@@ -37410,7 +37411,7 @@ var moderateWith = /* @__PURE__ */ __name(async (run) => {
|
|
|
37410
37411
|
return { chatId, rows, notes };
|
|
37411
37412
|
}, "moderateWith");
|
|
37412
37413
|
|
|
37413
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37414
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/services/moderation.js
|
|
37414
37415
|
var moderationService = /* @__PURE__ */ __name((deps) => {
|
|
37415
37416
|
const file2 = /* @__PURE__ */ __name(() => new ModerationRules(moderationPathFor(deps.messenger.app, deps.profile ?? "default", deps.env ?? process.env)), "file");
|
|
37416
37417
|
const group = /* @__PURE__ */ __name(async (chat) => {
|
|
@@ -37488,7 +37489,7 @@ var moderatorOf = /* @__PURE__ */ __name((adapter, deps) => ({
|
|
|
37488
37489
|
}, "removePerson")
|
|
37489
37490
|
}), "moderatorOf");
|
|
37490
37491
|
|
|
37491
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37492
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/services/private-people.js
|
|
37492
37493
|
var noteItem = /* @__PURE__ */ __name((provider, note2) => ({
|
|
37493
37494
|
id: note2.id,
|
|
37494
37495
|
contact: formatReference({ type: "contact", provider, id: note2.personId }),
|
|
@@ -37532,7 +37533,7 @@ var privatePeopleService = /* @__PURE__ */ __name((deps) => {
|
|
|
37532
37533
|
};
|
|
37533
37534
|
}, "privatePeopleService");
|
|
37534
37535
|
|
|
37535
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37536
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/services/rankings.js
|
|
37536
37537
|
var empty = /* @__PURE__ */ __name(() => ({
|
|
37537
37538
|
total: 0,
|
|
37538
37539
|
population: 0,
|
|
@@ -37788,7 +37789,7 @@ var rankingsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
37788
37789
|
}, "evidence")
|
|
37789
37790
|
}), "rankingsService");
|
|
37790
37791
|
|
|
37791
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37792
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/services/reply-stats.js
|
|
37792
37793
|
var FIELDS = ["date", "chat", "kind"];
|
|
37793
37794
|
var WAITING_TAIL = 100;
|
|
37794
37795
|
var plainOnly = /* @__PURE__ */ __name((text2, command) => {
|
|
@@ -37915,7 +37916,7 @@ var replyStatsService = /* @__PURE__ */ __name((deps) => {
|
|
|
37915
37916
|
};
|
|
37916
37917
|
}, "replyStatsService");
|
|
37917
37918
|
|
|
37918
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37919
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/services/searches.js
|
|
37919
37920
|
var savedSearchItem = /* @__PURE__ */ __name((one2) => ({
|
|
37920
37921
|
id: one2.id,
|
|
37921
37922
|
name: one2.name,
|
|
@@ -38044,7 +38045,7 @@ var searchesService = /* @__PURE__ */ __name((deps) => {
|
|
|
38044
38045
|
};
|
|
38045
38046
|
}, "searchesService");
|
|
38046
38047
|
|
|
38047
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38048
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/services/tags.js
|
|
38048
38049
|
var TAGGING_QUERY = {
|
|
38049
38050
|
entity: "tagging",
|
|
38050
38051
|
backend: "sql",
|
|
@@ -38128,7 +38129,7 @@ var tagsService = /* @__PURE__ */ __name((deps) => {
|
|
|
38128
38129
|
};
|
|
38129
38130
|
}, "tagsService");
|
|
38130
38131
|
|
|
38131
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38132
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/services/topics.js
|
|
38132
38133
|
var actionOf = /* @__PURE__ */ __name(({ title, closed, pinned, hidden, icon }) => {
|
|
38133
38134
|
const set = [closed, pinned, hidden].filter((one2) => one2 !== void 0).length;
|
|
38134
38135
|
if (title !== void 0 || icon !== void 0 || set !== 1)
|
|
@@ -38327,7 +38328,7 @@ var topicsService = /* @__PURE__ */ __name((deps) => {
|
|
|
38327
38328
|
};
|
|
38328
38329
|
}, "topicsService");
|
|
38329
38330
|
|
|
38330
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38331
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/services/evidence.js
|
|
38331
38332
|
import { createHash as createHash11, randomUUID as randomUUID5 } from "node:crypto";
|
|
38332
38333
|
var hash2 = /* @__PURE__ */ __name((value) => createHash11("sha256").update(JSON.stringify(value)).digest("hex"), "hash");
|
|
38333
38334
|
var positive = /* @__PURE__ */ __name((value, name, minimum = 1) => {
|
|
@@ -38401,7 +38402,7 @@ var prepareEvidencePacket = /* @__PURE__ */ __name(({ kind, source, page, limits
|
|
|
38401
38402
|
return { ...content, id: randomUUID5(), fingerprint: hash2(content) };
|
|
38402
38403
|
}, "prepareEvidencePacket");
|
|
38403
38404
|
|
|
38404
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38405
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/services/evidence-read.js
|
|
38405
38406
|
var readEvidencePacket = /* @__PURE__ */ __name(async (store, account, { chat, limit, before: before2 }, messenger = {}) => {
|
|
38406
38407
|
if (!Number.isSafeInteger(limit) || limit < 1 || limit > 100)
|
|
38407
38408
|
throw new CliError("validation_error", "evidence message limit must be an integer from 1 to 100");
|
|
@@ -38421,7 +38422,7 @@ var readEvidencePacket = /* @__PURE__ */ __name(async (store, account, { chat, l
|
|
|
38421
38422
|
return { ...packet, nextBeforeId: older && last ? last.id : null };
|
|
38422
38423
|
}, "readEvidencePacket");
|
|
38423
38424
|
|
|
38424
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38425
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/services/meeting-hit-search.js
|
|
38425
38426
|
var refreshMeetingIndex = /* @__PURE__ */ __name(async (meetings, accountId, signal) => {
|
|
38426
38427
|
let before2 = Number.POSITIVE_INFINITY;
|
|
38427
38428
|
for (; ; ) {
|
|
@@ -38483,7 +38484,7 @@ var searchMeetingHits = /* @__PURE__ */ __name(async (store, query, request, opt
|
|
|
38483
38484
|
return { ...result, selection };
|
|
38484
38485
|
}, "searchMeetingHits");
|
|
38485
38486
|
|
|
38486
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38487
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/services/meeting-project-discovery.js
|
|
38487
38488
|
import { createHash as createHash12 } from "node:crypto";
|
|
38488
38489
|
var scopeKeys = [
|
|
38489
38490
|
"accountId",
|
|
@@ -38618,7 +38619,7 @@ var readMeetingProjectDiscovery = /* @__PURE__ */ __name(async (ports, projectNa
|
|
|
38618
38619
|
};
|
|
38619
38620
|
}, "readMeetingProjectDiscovery");
|
|
38620
38621
|
|
|
38621
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38622
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/services/meeting-hit-context.js
|
|
38622
38623
|
import { createHash as createHash13 } from "node:crypto";
|
|
38623
38624
|
var contextCue = /* @__PURE__ */ __name((cue) => ({
|
|
38624
38625
|
ref: cue.reference,
|
|
@@ -38736,7 +38737,7 @@ var readMeetingHitContext = /* @__PURE__ */ __name(async (store, accountId, refe
|
|
|
38736
38737
|
return { ...packet, fingerprint: createHash13("sha256").update(JSON.stringify(packet)).digest("hex") };
|
|
38737
38738
|
}, "readMeetingHitContext");
|
|
38738
38739
|
|
|
38739
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38740
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/services/meeting-passage-format.js
|
|
38740
38741
|
var visible = /* @__PURE__ */ __name((text2) => text2.replace(/[\p{Cc}\p{Cf}]/gu, (value) => value === "\n" || value === " " ? value : `\\u{${value.codePointAt(0)?.toString(16)}}`), "visible");
|
|
38741
38742
|
var markdown = /* @__PURE__ */ __name((text2) => visible(text2).replaceAll("&", "&").replaceAll("<", "<").replaceAll(">", ">").replace(/[\\`*_[\]#|~]/g, "\\$&"), "markdown");
|
|
38742
38743
|
var timestamp = /* @__PURE__ */ __name((ms) => {
|
|
@@ -38812,7 +38813,7 @@ var readMeetingPassage = /* @__PURE__ */ __name(async (store, accountId, referen
|
|
|
38812
38813
|
return { packet, content };
|
|
38813
38814
|
}, "readMeetingPassage");
|
|
38814
38815
|
|
|
38815
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38816
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/context/communication-selection.js
|
|
38816
38817
|
var communicationFields = {
|
|
38817
38818
|
sources: pipe(array(strictObject({
|
|
38818
38819
|
id: pipe(string(), regex(/^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$/)),
|
|
@@ -38844,7 +38845,7 @@ var communicationRequest = /* @__PURE__ */ __name((value, preparationAfter) => {
|
|
|
38844
38845
|
return { ...input, after, before: before2 };
|
|
38845
38846
|
}, "communicationRequest");
|
|
38846
38847
|
|
|
38847
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38848
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/services/meeting-preparation-validation.js
|
|
38848
38849
|
var MEETING_PREPARATION_LIMITS = {
|
|
38849
38850
|
meetings: { min: 1, max: 20, default: 5 },
|
|
38850
38851
|
cues: { min: 1, max: 100, default: 10 },
|
|
@@ -38930,7 +38931,7 @@ var preparationRequest = /* @__PURE__ */ __name((accountId, externalId, original
|
|
|
38930
38931
|
return { ...input, history };
|
|
38931
38932
|
}, "preparationRequest");
|
|
38932
38933
|
|
|
38933
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38934
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/services/meeting-communications-preparation.js
|
|
38934
38935
|
var readPreparationCommunications = /* @__PURE__ */ __name(async (plan, signal) => {
|
|
38935
38936
|
const section = {
|
|
38936
38937
|
readUsage: plan.reader.usage(),
|
|
@@ -39035,7 +39036,7 @@ var appendPreparationCommunications = /* @__PURE__ */ __name((result, read2) =>
|
|
|
39035
39036
|
result.knowledge.coverage.otherSources = "see-communications";
|
|
39036
39037
|
}, "appendPreparationCommunications");
|
|
39037
39038
|
|
|
39038
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39039
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/services/meeting-communications-selection.js
|
|
39039
39040
|
var captureCommunicationSelections = /* @__PURE__ */ __name((port) => {
|
|
39040
39041
|
if (port === void 0)
|
|
39041
39042
|
return void 0;
|
|
@@ -39140,7 +39141,7 @@ var validatePreparationCommunications = /* @__PURE__ */ __name((section, request
|
|
|
39140
39141
|
}
|
|
39141
39142
|
}, "validatePreparationCommunications");
|
|
39142
39143
|
|
|
39143
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39144
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/services/meeting-knowledge-preparation.js
|
|
39144
39145
|
var invalid5 = /* @__PURE__ */ __name(() => {
|
|
39145
39146
|
throw new CliError("invalid_response", "Preparation knowledge returned an invalid selection");
|
|
39146
39147
|
}, "invalid");
|
|
@@ -39209,7 +39210,7 @@ var appendKnowledgePreparation = /* @__PURE__ */ __name(async (store, result, in
|
|
|
39209
39210
|
}
|
|
39210
39211
|
}, "appendKnowledgePreparation");
|
|
39211
39212
|
|
|
39212
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39213
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/services/meeting-notes-preparation.js
|
|
39213
39214
|
var invalid6 = /* @__PURE__ */ __name(() => {
|
|
39214
39215
|
throw new CliError("invalid_response", "Preparation notes returned an invalid selection");
|
|
39215
39216
|
}, "invalid");
|
|
@@ -39283,7 +39284,7 @@ var appendNotesPreparation = /* @__PURE__ */ __name(async (store, result, input)
|
|
|
39283
39284
|
}
|
|
39284
39285
|
}, "appendNotesPreparation");
|
|
39285
39286
|
|
|
39286
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39287
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/services/meeting-project-preparation.js
|
|
39287
39288
|
var PAGE_LIMIT = 4;
|
|
39288
39289
|
var size2 = /* @__PURE__ */ __name((value) => Buffer.byteLength(JSON.stringify(value), "utf8"), "size");
|
|
39289
39290
|
var appendProjectPreparation = /* @__PURE__ */ __name(async (ports, result, input) => {
|
|
@@ -39333,7 +39334,7 @@ var appendProjectPreparation = /* @__PURE__ */ __name(async (ports, result, inpu
|
|
|
39333
39334
|
}
|
|
39334
39335
|
}, "appendProjectPreparation");
|
|
39335
39336
|
|
|
39336
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39337
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/services/meeting-related-preparation.js
|
|
39337
39338
|
var appendRelatedPreparation = /* @__PURE__ */ __name(async (store, result, input) => {
|
|
39338
39339
|
if (!result.series || !result.items.length || result.coverage.outputLimited)
|
|
39339
39340
|
return;
|
|
@@ -39405,7 +39406,7 @@ var appendRelatedPreparation = /* @__PURE__ */ __name(async (store, result, inpu
|
|
|
39405
39406
|
}
|
|
39406
39407
|
}, "appendRelatedPreparation");
|
|
39407
39408
|
|
|
39408
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39409
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/services/meeting-preparation.js
|
|
39409
39410
|
var size3 = /* @__PURE__ */ __name((value) => Buffer.byteLength(JSON.stringify(value), "utf8"), "size");
|
|
39410
39411
|
var createMeetingPreparationService = /* @__PURE__ */ __name((scope, accountId, ports) => {
|
|
39411
39412
|
const fixed = snapshotMeetingScope(scope);
|
|
@@ -39543,7 +39544,7 @@ var createMeetingPreparationService = /* @__PURE__ */ __name((scope, accountId,
|
|
|
39543
39544
|
};
|
|
39544
39545
|
}, "createMeetingPreparationService");
|
|
39545
39546
|
|
|
39546
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39547
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/services/package-upgrade.js
|
|
39547
39548
|
var upgradePackage = /* @__PURE__ */ __name(async ({ current, command, packageName, check: check2 }, ports) => {
|
|
39548
39549
|
const installer = ports.installer();
|
|
39549
39550
|
const argv = updateCommand(installer, packageName);
|
|
@@ -39608,7 +39609,7 @@ var dayAfter = /* @__PURE__ */ __name((published) => {
|
|
|
39608
39609
|
return Number.isNaN(time) ? null : new Date(time + 24 * 60 * 60 * 1e3).toISOString();
|
|
39609
39610
|
}, "dayAfter");
|
|
39610
39611
|
|
|
39611
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39612
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/services/index.js
|
|
39612
39613
|
var servicesFor = /* @__PURE__ */ __name((deps) => {
|
|
39613
39614
|
const pictures = picturesService(deps);
|
|
39614
39615
|
const base = {
|
|
@@ -39645,7 +39646,7 @@ var servicesFor = /* @__PURE__ */ __name((deps) => {
|
|
|
39645
39646
|
return deps.messenger.services ? { ...base, ...deps.messenger.services(base, deps) } : base;
|
|
39646
39647
|
}, "servicesFor");
|
|
39647
39648
|
|
|
39648
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39649
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/background/relay.js
|
|
39649
39650
|
import { createHash as createHash14 } from "node:crypto";
|
|
39650
39651
|
import { chmodSync, lstatSync, mkdirSync as mkdirSync3, rmSync } from "node:fs";
|
|
39651
39652
|
import { createConnection, createServer } from "node:net";
|
|
@@ -39793,7 +39794,7 @@ var serve = /* @__PURE__ */ __name(async (socket, request, stdin, signal, run) =
|
|
|
39793
39794
|
}
|
|
39794
39795
|
}, "serve");
|
|
39795
39796
|
|
|
39796
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39797
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-relay.js
|
|
39797
39798
|
var lentConnection = /* @__PURE__ */ __name((connection, watchers) => throughWrapper(connection, {
|
|
39798
39799
|
close: /* @__PURE__ */ __name(async () => {
|
|
39799
39800
|
}, "close"),
|