@wirecat/cli-memo 0.131.67 → 0.131.68
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-W3GRNNLJ.js → all-profiles-6JKSPBBO.js} +5 -5
- package/dist/bundle/{anthropic-GWMYHBO4.js → anthropic-YA2N6EJ4.js} +2 -2
- package/dist/bundle/{app-server-RQ26EXNI.js → app-server-PGZD3JUW.js} +35 -35
- package/dist/bundle/auto-OVLXIZRU.js +85 -0
- package/dist/bundle/{bun-KKLPQTG5.js → bun-OUFOAYV4.js} +2 -2
- package/dist/bundle/{bun-sqlite-WKIZJNTG.js → bun-sqlite-5RZTFU2Q.js} +2 -2
- package/dist/bundle/{chunk-R4H5HSQZ.js → chunk-22CDLXSR.js} +4 -4
- package/dist/bundle/{chunk-XI5UABKO.js → chunk-267N22E4.js} +1 -1
- package/dist/bundle/{chunk-7IKET6ES.js → chunk-276KPJI5.js} +2 -2
- package/dist/bundle/{chunk-32ROGX5N.js → chunk-2C7Z7CKD.js} +1 -1
- package/dist/bundle/{chunk-NNUJWCEJ.js → chunk-2DQYP2K3.js} +1 -1
- package/dist/bundle/{chunk-TQXXOUOX.js → chunk-2F35N6BI.js} +1 -1
- package/dist/bundle/{chunk-7OMKWYFN.js → chunk-37H7TTWN.js} +16 -9
- package/dist/bundle/{chunk-ECMYCWG2.js → chunk-3LGLKLBA.js} +2 -2
- package/dist/bundle/{chunk-TWTAWPC7.js → chunk-4AH6FONF.js} +12 -12
- package/dist/bundle/{chunk-MLF5FLAP.js → chunk-4HSWIXYE.js} +4 -4
- package/dist/bundle/{chunk-GU3MRYK2.js → chunk-53EAI4VZ.js} +1 -1
- package/dist/bundle/{chunk-7DANHJF6.js → chunk-5EB34LNI.js} +31 -31
- package/dist/bundle/{chunk-TPYXULNG.js → chunk-5EZOMIPL.js} +5 -5
- package/dist/bundle/{chunk-VVTC2YAX.js → chunk-5JPVRS7W.js} +4 -4
- package/dist/bundle/{chunk-ZVXXJYNW.js → chunk-5OMM4CDT.js} +2 -2
- package/dist/bundle/{chunk-FBSHWCIZ.js → chunk-5RYMHX2O.js} +9 -9
- package/dist/bundle/{chunk-AGNWFOAJ.js → chunk-67VEVKMJ.js} +1 -1
- package/dist/bundle/{chunk-TNHFKR6P.js → chunk-6A6HR2CS.js} +21 -21
- package/dist/bundle/{chunk-JG7EDH7K.js → chunk-7JFLHRQL.js} +1 -1
- package/dist/bundle/{chunk-CQNYBTWP.js → chunk-7L4PBN5S.js} +2 -2
- package/dist/bundle/{chunk-ZNBLWLCD.js → chunk-A3WUEOEV.js} +151 -151
- package/dist/bundle/{chunk-PBOVHHYG.js → chunk-AJMAR5DC.js} +8 -8
- package/dist/bundle/{chunk-WJ2OYD2D.js → chunk-BGWPKEKK.js} +4 -4
- package/dist/bundle/{chunk-GHN2KYMO.js → chunk-BQYAMBKB.js} +21 -21
- package/dist/bundle/{chunk-VUCD4DAQ.js → chunk-ECHN36DC.js} +4 -4
- package/dist/bundle/{chunk-TXWVZVDK.js → chunk-EDPA54WQ.js} +3 -3
- package/dist/bundle/{chunk-JEKIBI7P.js → chunk-EEBQN7TK.js} +4 -4
- package/dist/bundle/{chunk-ZOIW2YEU.js → chunk-EO4JMJFZ.js} +7 -7
- package/dist/bundle/{chunk-TFAUB6JO.js → chunk-EOJPZ3LX.js} +374 -306
- package/dist/bundle/{chunk-ZU6HZLZP.js → chunk-FOF7KGG3.js} +429 -90
- package/dist/bundle/{chunk-XYL7GDCX.js → chunk-FSDAEZFS.js} +5 -5
- package/dist/bundle/{chunk-IKZBO7NV.js → chunk-FYWGFRR2.js} +623 -509
- package/dist/bundle/{chunk-DNDELSVT.js → chunk-FZHYGJQ2.js} +5 -5
- package/dist/bundle/{chunk-4JTCNMW6.js → chunk-IHHXGTMX.js} +1 -1
- package/dist/bundle/{chunk-BOOEDDVY.js → chunk-JQREFZWM.js} +78 -63
- package/dist/bundle/{chunk-4C6RU7DG.js → chunk-KX7CVSAY.js} +4 -4
- package/dist/bundle/{chunk-YAFSD345.js → chunk-MK6SQ32Q.js} +12 -12
- package/dist/bundle/{chunk-XVPMSMSP.js → chunk-MWQI6FSU.js} +3 -3
- package/dist/bundle/{chunk-W7FYMZOW.js → chunk-N73YBQ42.js} +6 -6
- package/dist/bundle/{chunk-OUSLPKWY.js → chunk-OBQ7TSUB.js} +1 -1
- package/dist/bundle/{chunk-QCWA3JUT.js → chunk-PHSYMVYX.js} +2 -2
- package/dist/bundle/{chunk-HUPZ6XYH.js → chunk-PSYQPO6D.js} +2 -2
- package/dist/bundle/{chunk-XK4VVGMH.js → chunk-PUACXS7G.js} +2 -2
- package/dist/bundle/{chunk-ORKWFXWV.js → chunk-QHUPSOQT.js} +10 -10
- package/dist/bundle/{chunk-GUWRR7F2.js → chunk-QZU5IM5E.js} +2 -2
- package/dist/bundle/{chunk-SKBDI7LU.js → chunk-RG4GW7EY.js} +28 -28
- package/dist/bundle/{chunk-SUCG5HBF.js → chunk-RHW3DDWI.js} +1 -1
- package/dist/bundle/{chunk-OU4PN7PF.js → chunk-TV75OHKJ.js} +7 -7
- package/dist/bundle/{chunk-7KYVUVDS.js → chunk-TXOXPQN2.js} +2 -2
- package/dist/bundle/{chunk-QFSMJTEA.js → chunk-V2YS63Z5.js} +1 -1
- package/dist/bundle/{chunk-Q4JYHQ47.js → chunk-V6QYWGO4.js} +342 -323
- package/dist/bundle/{chunk-6SFTVGNL.js → chunk-VPKJZKXV.js} +1 -1
- package/dist/bundle/{chunk-QMTCYKAA.js → chunk-WLD5XU3T.js} +6 -6
- package/dist/bundle/{chunk-DNS2QWK3.js → chunk-WNA2WNDK.js} +3 -3
- package/dist/bundle/{chunk-GJ3P7RJF.js → chunk-YTJWIJIG.js} +5 -5
- package/dist/bundle/{chunk-MCA265JM.js → chunk-YVVRV3PQ.js} +19 -1
- package/dist/bundle/{command-contract-46BU5YKL.js → command-contract-RX6RWHCT.js} +11 -11
- package/dist/bundle/{decode-KRVQZPSB.js → decode-IJMDTGTW.js} +2 -2
- package/dist/bundle/{echarts-O6QQRVZE.js → echarts-EHYUXOKP.js} +2 -2
- package/dist/bundle/{embed-DA4H2F4F.js → embed-RUY3UIVC.js} +3 -3
- package/dist/bundle/{embedder-HWAFLIYM.js → embedder-P6WBMEGP.js} +6 -6
- package/dist/bundle/{entry-DE7GJOIZ.js → entry-XHWG43NW.js} +4 -4
- package/dist/bundle/failure-Z7WOYPMA.js +65 -0
- package/dist/bundle/{first-run-GOBPIKQF.js → first-run-FQ2BAEYK.js} +5 -5
- package/dist/bundle/{first-screen-3V3HWSQM.js → first-screen-GP2QGKUA.js} +12 -12
- package/dist/bundle/{instructions-GYYMBSZW.js → instructions-ZMG4FLGO.js} +1 -1
- package/dist/bundle/{mcp-6RDHWRXG.js → mcp-USR3ZFQU.js} +35 -35
- package/dist/bundle/memo.js +6 -6
- package/dist/bundle/{node-R3OFASC5.js → node-QYL4B7JS.js} +2 -2
- package/dist/bundle/{node-sqlite-DYHDZJ5A.js → node-sqlite-ESTT2OCF.js} +3 -3
- package/dist/bundle/{oauth-SMCDSCXQ.js → oauth-CFQFSIRQ.js} +4 -4
- package/dist/bundle/{open-GX7RPGQW.js → open-3XO2HMIT.js} +2 -2
- package/dist/bundle/{openai-WM4TRXCC.js → openai-STUNDBD6.js} +7 -7
- package/dist/bundle/{process-NT5OZH2V.js → process-P4UAJCZX.js} +1 -1
- package/dist/bundle/{program-YQ3UT2LI.js → program-FVSSLRBJ.js} +2028 -1862
- package/dist/bundle/{prompt-5XJNSXCW.js → prompt-ZCYMFMIG.js} +2 -2
- package/dist/bundle/{recognize-DQNGZLRX.js → recognize-V3BY33FK.js} +1 -1
- package/dist/bundle/{remote-RMRYJZSZ.js → remote-IP4QR7SP.js} +4 -4
- package/dist/bundle/{rerank-5J6JM43S.js → rerank-VKUSF3DM.js} +4 -4
- package/dist/bundle/{serve-4RVWOQVC.js → serve-VBIUARHJ.js} +6 -6
- package/dist/bundle/{server-NKCRFK26.js → server-3FW2MQRQ.js} +49 -49
- package/dist/bundle/server-SWSWXNDP.js +48 -0
- package/dist/bundle/server-YRZDZ2PZ.js +61 -0
- package/dist/bundle/{state-MGVPOLPZ.js → state-UBAIZ2WP.js} +3 -3
- package/dist/bundle/{store-IEK4PPOE.js → store-PIQ4TF4O.js} +9 -9
- package/dist/bundle/store-maintenance-command-EWEXJ253.js +47 -0
- package/dist/bundle/update-6QYRXRVJ.js +68 -0
- package/dist/digest/backfill.d.ts +9 -0
- package/dist/digest/backfill.d.ts.map +1 -0
- package/dist/digest/backfill.js +142 -0
- package/dist/digest/backfill.js.map +1 -0
- package/dist/digest/command.d.ts +2 -0
- package/dist/digest/command.d.ts.map +1 -1
- package/dist/digest/command.js +18 -1
- package/dist/digest/command.js.map +1 -1
- package/dist/digest/digest.d.ts +6 -1
- package/dist/digest/digest.d.ts.map +1 -1
- package/dist/digest/digest.js +26 -15
- package/dist/digest/digest.js.map +1 -1
- package/dist/digest/sync-health.d.ts +1 -2
- package/dist/digest/sync-health.d.ts.map +1 -1
- package/dist/digest/tasks.d.ts +14 -1
- package/dist/digest/tasks.d.ts.map +1 -1
- package/dist/digest/tasks.js +31 -4
- package/dist/digest/tasks.js.map +1 -1
- package/dist/discovery/command.d.ts.map +1 -1
- package/dist/discovery/command.js +1 -0
- package/dist/discovery/command.js.map +1 -1
- package/dist/examples.d.ts.map +1 -1
- package/dist/examples.js +4 -0
- package/dist/examples.js.map +1 -1
- package/dist/knowledge/relationships.d.ts +2 -0
- package/dist/knowledge/relationships.d.ts.map +1 -1
- package/dist/program.d.ts.map +1 -1
- package/dist/program.js +2 -0
- package/dist/program.js.map +1 -1
- package/dist/read-only.d.ts +1 -1
- package/dist/reasons.d.ts.map +1 -1
- package/dist/reasons.js +18 -0
- package/dist/reasons.js.map +1 -1
- package/dist/schedule/command.d.ts +2 -1
- package/dist/schedule/command.d.ts.map +1 -1
- package/dist/schedule/command.js +6 -2
- package/dist/schedule/command.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +4 -4
- package/skills/mail-triage/SKILL.md +25 -19
- package/skills/morning-digest/SKILL.md +15 -1
- package/dist/bundle/auto-FR6LX5KO.js +0 -85
- package/dist/bundle/failure-U3VNIQNX.js +0 -65
- package/dist/bundle/server-HH2X6G7V.js +0 -61
- package/dist/bundle/server-MS3JKMGF.js +0 -48
- package/dist/bundle/store-maintenance-command-GSS2AY4J.js +0 -47
- package/dist/bundle/update-S5XRRWTH.js +0 -68
- /package/dist/bundle/{chunk-DS7NXKAN.js → chunk-AWVQHWIS.js} +0 -0
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
sameOrdinaryFile,
|
|
9
9
|
syncDirectory,
|
|
10
10
|
writeFileAtomic
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-MK6SQ32Q.js";
|
|
12
12
|
import {
|
|
13
13
|
Command,
|
|
14
14
|
CustomTextModelShape,
|
|
@@ -54,7 +54,7 @@ import {
|
|
|
54
54
|
vectorModelKey,
|
|
55
55
|
withAttempt,
|
|
56
56
|
writeTextModelsSection
|
|
57
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-A3WUEOEV.js";
|
|
58
58
|
import {
|
|
59
59
|
isNewer,
|
|
60
60
|
updateCommand
|
|
@@ -62,7 +62,7 @@ import {
|
|
|
62
62
|
import {
|
|
63
63
|
envName,
|
|
64
64
|
readOnlyLockOf
|
|
65
|
-
} from "./chunk-
|
|
65
|
+
} from "./chunk-2DQYP2K3.js";
|
|
66
66
|
import {
|
|
67
67
|
AGENDA_COLUMNS,
|
|
68
68
|
BUSINESS_FIND_MAX,
|
|
@@ -176,7 +176,7 @@ import {
|
|
|
176
176
|
validateFields,
|
|
177
177
|
waitingPointer,
|
|
178
178
|
withoutField
|
|
179
|
-
} from "./chunk-
|
|
179
|
+
} from "./chunk-FYWGFRR2.js";
|
|
180
180
|
import {
|
|
181
181
|
EVENT_QUERY,
|
|
182
182
|
MEETING_FIELD_NAMES,
|
|
@@ -233,25 +233,25 @@ import {
|
|
|
233
233
|
validateQuery,
|
|
234
234
|
walkQuery,
|
|
235
235
|
zonedMoment
|
|
236
|
-
} from "./chunk-
|
|
236
|
+
} from "./chunk-JQREFZWM.js";
|
|
237
237
|
import {
|
|
238
238
|
damagedFile,
|
|
239
239
|
isCliFailure,
|
|
240
240
|
sqliteCode
|
|
241
|
-
} from "./chunk-
|
|
241
|
+
} from "./chunk-3LGLKLBA.js";
|
|
242
242
|
import {
|
|
243
243
|
DEFAULT_STEMMERS,
|
|
244
244
|
createStemmer,
|
|
245
245
|
fold,
|
|
246
246
|
normalize
|
|
247
|
-
} from "./chunk-
|
|
247
|
+
} from "./chunk-TV75OHKJ.js";
|
|
248
248
|
import {
|
|
249
249
|
DEFAULT_TASK_CATEGORIES,
|
|
250
250
|
FALLBACK_CATEGORY,
|
|
251
251
|
readSharedSection,
|
|
252
252
|
sharedConfigPath,
|
|
253
253
|
writeSharedSection
|
|
254
|
-
} from "./chunk-
|
|
254
|
+
} from "./chunk-BGWPKEKK.js";
|
|
255
255
|
import {
|
|
256
256
|
MAX_MODEL_IMAGE_BYTES,
|
|
257
257
|
checkedOptions,
|
|
@@ -259,10 +259,10 @@ import {
|
|
|
259
259
|
range,
|
|
260
260
|
systemFor,
|
|
261
261
|
validateImages
|
|
262
|
-
} from "./chunk-
|
|
262
|
+
} from "./chunk-5OMM4CDT.js";
|
|
263
263
|
import {
|
|
264
264
|
remoteKey
|
|
265
|
-
} from "./chunk-
|
|
265
|
+
} from "./chunk-QZU5IM5E.js";
|
|
266
266
|
import {
|
|
267
267
|
Unzip,
|
|
268
268
|
UnzipInflate,
|
|
@@ -273,15 +273,15 @@ import {
|
|
|
273
273
|
placedText,
|
|
274
274
|
runEmbedders,
|
|
275
275
|
textModelsDirectory
|
|
276
|
-
} from "./chunk-
|
|
276
|
+
} from "./chunk-FZHYGJQ2.js";
|
|
277
277
|
import {
|
|
278
278
|
installFiles,
|
|
279
279
|
megabytes
|
|
280
|
-
} from "./chunk-
|
|
280
|
+
} from "./chunk-WNA2WNDK.js";
|
|
281
281
|
import {
|
|
282
282
|
storePath,
|
|
283
283
|
wirecatDirectory
|
|
284
|
-
} from "./chunk-
|
|
284
|
+
} from "./chunk-V2YS63Z5.js";
|
|
285
285
|
import {
|
|
286
286
|
Credentials,
|
|
287
287
|
pathsAreOverridden,
|
|
@@ -16941,7 +16941,7 @@ var require_lib3 = __commonJS({
|
|
|
16941
16941
|
}
|
|
16942
16942
|
});
|
|
16943
16943
|
|
|
16944
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16944
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/conversations/link.js
|
|
16945
16945
|
var RULES_VERSION = 5;
|
|
16946
16946
|
var LOOK_BACK = 50;
|
|
16947
16947
|
var SAME_SENDER_WITHIN = 10;
|
|
@@ -17031,10 +17031,10 @@ var latest = /* @__PURE__ */ __name((window3, matches) => {
|
|
|
17031
17031
|
var sameThread = /* @__PURE__ */ __name((a, b) => a.threadId === b.threadId, "sameThread");
|
|
17032
17032
|
var link = /* @__PURE__ */ __name((message, parentId, source, kind, confidence, method) => ({ messageId: message.id, parentId, source, kind, confidence, method }), "link");
|
|
17033
17033
|
|
|
17034
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17034
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/ports/traits.js
|
|
17035
17035
|
var syncsOneChat = /* @__PURE__ */ __name((messenger) => messenger.history !== "store" || messenger.historyOnDemand === true, "syncsOneChat");
|
|
17036
17036
|
|
|
17037
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17037
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/store/damage.js
|
|
17038
17038
|
var DERIVED = /* @__PURE__ */ new Set(["mentions", "involvements", "embeddings"]);
|
|
17039
17039
|
var named = /* @__PURE__ */ __name((tables) => tables.length <= 5 ? tables.join(", ") : `${tables.slice(0, 5).join(", ")} and ${tables.length - 5} more`, "named");
|
|
17040
17040
|
var isDerivedTable = /* @__PURE__ */ __name((table, searchIndexes) => DERIVED.has(table) || table.startsWith("vector_index_") || searchIndexes.some((index) => table === index || table.startsWith(`${index}_`)), "isDerivedTable");
|
|
@@ -17081,7 +17081,7 @@ var explainDamage = /* @__PURE__ */ __name((health, command, mark = null) => {
|
|
|
17081
17081
|
};
|
|
17082
17082
|
}, "explainDamage");
|
|
17083
17083
|
|
|
17084
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17084
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/store/health.js
|
|
17085
17085
|
import { existsSync, statSync } from "node:fs";
|
|
17086
17086
|
var JSON_COLUMNS = {
|
|
17087
17087
|
accounts: ["settings"],
|
|
@@ -17223,10 +17223,10 @@ var storeHealth = /* @__PURE__ */ __name(async (path, { deep = false } = {}) =>
|
|
|
17223
17223
|
}
|
|
17224
17224
|
}, "storeHealth");
|
|
17225
17225
|
|
|
17226
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17226
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/store/sqlite/document-transfer/snapshot.js
|
|
17227
17227
|
var MAX_BYTES = 16 * 1024 * 1024;
|
|
17228
17228
|
|
|
17229
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17229
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/store/project-transfer/preview.js
|
|
17230
17230
|
var previewProjectAnnotationSnapshot = /* @__PURE__ */ __name(async (options2) => {
|
|
17231
17231
|
if (!options2 || typeof options2 !== "object" || Array.isArray(options2))
|
|
17232
17232
|
throw new CliError("validation_error", "project preview options are required");
|
|
@@ -17252,7 +17252,7 @@ var previewProjectAnnotationSnapshot = /* @__PURE__ */ __name(async (options2) =
|
|
|
17252
17252
|
});
|
|
17253
17253
|
}, "previewProjectAnnotationSnapshot");
|
|
17254
17254
|
|
|
17255
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17255
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/store/project-transfer/snapshot.js
|
|
17256
17256
|
var snapshotProjectAnnotations = /* @__PURE__ */ __name(async (options2) => {
|
|
17257
17257
|
if (!options2 || typeof options2 !== "object" || Array.isArray(options2))
|
|
17258
17258
|
throw new CliError("validation_error", "snapshot options are required");
|
|
@@ -17273,7 +17273,7 @@ var snapshotProjectAnnotations = /* @__PURE__ */ __name(async (options2) => {
|
|
|
17273
17273
|
}
|
|
17274
17274
|
}, "snapshotProjectAnnotations");
|
|
17275
17275
|
|
|
17276
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17276
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/cli/messenger/lacks.js
|
|
17277
17277
|
var COMMAND_NEEDS = {
|
|
17278
17278
|
"account update": ["updateProfile", "change the profile"],
|
|
17279
17279
|
"account sessions list": ["sessions", "list the account's sessions"],
|
|
@@ -17323,7 +17323,7 @@ var hideNever = /* @__PURE__ */ __name((messenger, group) => {
|
|
|
17323
17323
|
return group;
|
|
17324
17324
|
}, "hideNever");
|
|
17325
17325
|
|
|
17326
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17326
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/services/members-audit.js
|
|
17327
17327
|
var AUDIT_PAGE = 200;
|
|
17328
17328
|
var AUDIT_BUDGET = 10;
|
|
17329
17329
|
var AUDIT_PAUSE_MS = 1e3;
|
|
@@ -17403,7 +17403,7 @@ var burstJoins = /* @__PURE__ */ __name((members) => {
|
|
|
17403
17403
|
return found;
|
|
17404
17404
|
}, "burstJoins");
|
|
17405
17405
|
|
|
17406
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17406
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/meetings/cli/query-options.js
|
|
17407
17407
|
var queryWordsAfterOptions = /* @__PURE__ */ __name((command) => {
|
|
17408
17408
|
command.allowUnknownOption();
|
|
17409
17409
|
const parse2 = command.parseOptions.bind(command);
|
|
@@ -17423,7 +17423,7 @@ var queryWordsAfterOptions = /* @__PURE__ */ __name((command) => {
|
|
|
17423
17423
|
return command;
|
|
17424
17424
|
}, "queryWordsAfterOptions");
|
|
17425
17425
|
|
|
17426
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17426
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/meetings/cli/passage.js
|
|
17427
17427
|
var count = /* @__PURE__ */ __name((value) => {
|
|
17428
17428
|
if (!/^(0|[1-9]\d*)$/.test(value) || !Number.isSafeInteger(Number(value)))
|
|
17429
17429
|
throw new CliError("validation_error", "expected a nonnegative safe integer");
|
|
@@ -17465,7 +17465,7 @@ var addMeetingPassageCommandDefinition = /* @__PURE__ */ __name((program, deps)
|
|
|
17465
17465
|
var createMeetingPassageCommand = sharedCommand(createMeetingPassageCommandDefinition);
|
|
17466
17466
|
var addMeetingPassageCommand = sharedCommand(addMeetingPassageCommandDefinition);
|
|
17467
17467
|
|
|
17468
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17468
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/meetings/cli/project-evidence.js
|
|
17469
17469
|
var integer2 = /* @__PURE__ */ __name((value) => {
|
|
17470
17470
|
if (!/^[1-9]\d*$/.test(value) || !Number.isSafeInteger(Number(value)))
|
|
17471
17471
|
throw new CliError("validation_error", "expected a positive safe integer");
|
|
@@ -17488,7 +17488,7 @@ ${fieldsHelp(MEETING_PROJECT_EVIDENCE_QUERY)}`).option("--limit <n>", "hits in o
|
|
|
17488
17488
|
}, "addMeetingProjectEvidenceCommandDefinition");
|
|
17489
17489
|
var addMeetingProjectEvidenceCommand = sharedCommand(addMeetingProjectEvidenceCommandDefinition);
|
|
17490
17490
|
|
|
17491
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17491
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/meetings/cli/search.js
|
|
17492
17492
|
var ZONED = /(?:Z|[+-]\d{2}:?\d{2})$/i;
|
|
17493
17493
|
var moment = /* @__PURE__ */ __name((flag, end, readIn) => (value) => {
|
|
17494
17494
|
const zone = timezoneOf();
|
|
@@ -17574,7 +17574,7 @@ var addMeetingSearchCommandDefinition = /* @__PURE__ */ __name((program, deps) =
|
|
|
17574
17574
|
var createMeetingSearchCommand = sharedCommand(createMeetingSearchCommandDefinition);
|
|
17575
17575
|
var addMeetingSearchCommand = sharedCommand(addMeetingSearchCommandDefinition);
|
|
17576
17576
|
|
|
17577
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17577
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/meetings/cli/index.js
|
|
17578
17578
|
var integer4 = /* @__PURE__ */ __name((text2) => {
|
|
17579
17579
|
if (!/^[1-9]\d*$/.test(text2) || !Number.isSafeInteger(Number(text2)))
|
|
17580
17580
|
throw new InvalidArgumentError("expected a positive integer");
|
|
@@ -17718,7 +17718,7 @@ ${fieldsHelp(EVENT_QUERY, MEETING_QUERY_GUIDE)}`);
|
|
|
17718
17718
|
}, "addMeetingCommandsDefinition");
|
|
17719
17719
|
var addMeetingCommands = sharedCommand(addMeetingCommandsDefinition);
|
|
17720
17720
|
|
|
17721
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17721
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/cli/list-query.js
|
|
17722
17722
|
var LIST_QUERY_GUIDE = "https://github.com/WireCatLabs/cli-core/blob/main/docs/search/query-language.md";
|
|
17723
17723
|
var QUERY_ARGUMENT = "field:value terms that narrow the list \u2014 the fields are below";
|
|
17724
17724
|
var withQuery = /* @__PURE__ */ __name((command, registry) => {
|
|
@@ -17851,7 +17851,7 @@ var termField = /* @__PURE__ */ __name((name, type, example, more = {}) => nativ
|
|
|
17851
17851
|
var queryHelp = /* @__PURE__ */ __name((registry) => `
|
|
17852
17852
|
${fieldsHelp(registry, LIST_QUERY_GUIDE)}`, "queryHelp");
|
|
17853
17853
|
|
|
17854
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17854
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/cli/paging.js
|
|
17855
17855
|
var positiveCount = /* @__PURE__ */ __name((flag) => (value) => {
|
|
17856
17856
|
if (!/^\d+$/.test(value.trim()) || Number(value) < 1)
|
|
17857
17857
|
throw new CliError("validation_error", `${flag} takes a whole number from 1 upwards, not "${value}"`);
|
|
@@ -17860,7 +17860,7 @@ var positiveCount = /* @__PURE__ */ __name((flag) => (value) => {
|
|
|
17860
17860
|
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");
|
|
17861
17861
|
var window = /* @__PURE__ */ __name(({ limit, page, all }) => all ? { offset: 0 } : { limit, offset: (page - 1) * limit }, "window");
|
|
17862
17862
|
|
|
17863
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17863
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/cli/messenger/chat-answers.js
|
|
17864
17864
|
var defined = /* @__PURE__ */ __name((record2) => Object.fromEntries(Object.entries(record2).filter(([, value]) => value !== void 0)), "defined");
|
|
17865
17865
|
var chatRef = /* @__PURE__ */ __name((account, chat) => formatReference({ type: "chat", provider: account.provider, account: account.account, chat }), "chatRef");
|
|
17866
17866
|
var settingsOf = /* @__PURE__ */ __name((settings) => defined({
|
|
@@ -18122,7 +18122,7 @@ var sessionAnswer = /* @__PURE__ */ __name(({ current, client, device, location,
|
|
|
18122
18122
|
...createdAt === void 0 ? {} : { created_at: createdAt }
|
|
18123
18123
|
}), "sessionAnswer");
|
|
18124
18124
|
|
|
18125
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18125
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/ports/messenger.js
|
|
18126
18126
|
var throughWrapper = /* @__PURE__ */ __name((inner, handled, wrap = (_, call) => call) => new Proxy(handled, {
|
|
18127
18127
|
get: /* @__PURE__ */ __name((own, key) => {
|
|
18128
18128
|
if (key in own)
|
|
@@ -18139,7 +18139,7 @@ var capability = /* @__PURE__ */ __name((adapter, method, what) => {
|
|
|
18139
18139
|
return found.bind(adapter);
|
|
18140
18140
|
}, "capability");
|
|
18141
18141
|
|
|
18142
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18142
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/http/time-limit.js
|
|
18143
18143
|
var timeLimit = /* @__PURE__ */ __name((ms) => {
|
|
18144
18144
|
const controller = new AbortController();
|
|
18145
18145
|
const timer = setTimeout(() => controller.abort(new DOMException("The operation timed out.", "TimeoutError")), ms);
|
|
@@ -18155,7 +18155,7 @@ var withTimeLimit = /* @__PURE__ */ __name(async (ms, run) => {
|
|
|
18155
18155
|
}
|
|
18156
18156
|
}, "withTimeLimit");
|
|
18157
18157
|
|
|
18158
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18158
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/models/openai.js
|
|
18159
18159
|
var options = strictObject({
|
|
18160
18160
|
temperature: range(0, 2),
|
|
18161
18161
|
top_p: range(0, 1),
|
|
@@ -18209,7 +18209,7 @@ var openai = {
|
|
|
18209
18209
|
}), "complete")
|
|
18210
18210
|
};
|
|
18211
18211
|
|
|
18212
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18212
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/models/index.js
|
|
18213
18213
|
var modelGateway = /* @__PURE__ */ __name((deps) => ({
|
|
18214
18214
|
complete: /* @__PURE__ */ __name(async (request) => {
|
|
18215
18215
|
if (deps.signal?.aborted)
|
|
@@ -18224,7 +18224,7 @@ var modelGateway = /* @__PURE__ */ __name((deps) => ({
|
|
|
18224
18224
|
if (!adapter && target2.provider === "openai")
|
|
18225
18225
|
adapter = openai;
|
|
18226
18226
|
if (!adapter && target2.provider === "anthropic")
|
|
18227
|
-
adapter = (await import("./anthropic-
|
|
18227
|
+
adapter = (await import("./anthropic-YA2N6EJ4.js")).anthropic;
|
|
18228
18228
|
if (!adapter)
|
|
18229
18229
|
throw new CliError("validation_error", `no model adapter for ${target2.provider}`);
|
|
18230
18230
|
if (request.images !== void 0 && adapter.images !== true)
|
|
@@ -18265,12 +18265,12 @@ var modelGateway = /* @__PURE__ */ __name((deps) => ({
|
|
|
18265
18265
|
}, "complete")
|
|
18266
18266
|
}), "modelGateway");
|
|
18267
18267
|
|
|
18268
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18268
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/sends/send-id.js
|
|
18269
18269
|
import { randomBytes } from "node:crypto";
|
|
18270
18270
|
var newSendId = /* @__PURE__ */ __name(() => randomBytes(8).readBigInt64BE().toString(), "newSendId");
|
|
18271
18271
|
var newOperationId = newSendId;
|
|
18272
18272
|
|
|
18273
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18273
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/services/deps.js
|
|
18274
18274
|
var accountStore = /* @__PURE__ */ __name(async (deps) => (await deps.store()).forAccount(await deps.account()), "accountStore");
|
|
18275
18275
|
var crossAccount = /* @__PURE__ */ __name((deps, _reason) => deps.store(), "crossAccount");
|
|
18276
18276
|
var NO_LOCAL_STORE = "this answer comes from the messenger, not from the local store";
|
|
@@ -18345,7 +18345,7 @@ var storeOnlyDeps = /* @__PURE__ */ __name((store, account, { app, env }) => {
|
|
|
18345
18345
|
return { ...storedDeps(messenger, store, account, guard), ...env === void 0 ? {} : { env } };
|
|
18346
18346
|
}, "storeOnlyDeps");
|
|
18347
18347
|
|
|
18348
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18348
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/services/patience.js
|
|
18349
18349
|
import { setTimeout as sleep } from "node:timers/promises";
|
|
18350
18350
|
var LONGEST_WAIT_MS = 5 * 60 * 1e3;
|
|
18351
18351
|
var patiently = /* @__PURE__ */ __name(async (request, note2, stop) => {
|
|
@@ -18368,10 +18368,10 @@ var patiently = /* @__PURE__ */ __name(async (request, note2, stop) => {
|
|
|
18368
18368
|
}
|
|
18369
18369
|
}, "patiently");
|
|
18370
18370
|
|
|
18371
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18371
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/services/archive.js
|
|
18372
18372
|
import { setTimeout as sleep2 } from "node:timers/promises";
|
|
18373
18373
|
|
|
18374
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18374
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/services/backfill-estimate.js
|
|
18375
18375
|
var REQUEST_MS = 400;
|
|
18376
18376
|
var estimateBackfill = /* @__PURE__ */ __name(({ ranges, held, newest, page, maxPages, pauseMs }) => {
|
|
18377
18377
|
const lowest = ranges[0];
|
|
@@ -18394,13 +18394,13 @@ var estimateBackfill = /* @__PURE__ */ __name(({ ranges, held, newest, page, max
|
|
|
18394
18394
|
};
|
|
18395
18395
|
}, "estimateBackfill");
|
|
18396
18396
|
|
|
18397
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18397
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/domain/recovery.js
|
|
18398
18398
|
var withRecovery = /* @__PURE__ */ __name((error) => ({
|
|
18399
18399
|
...error,
|
|
18400
18400
|
retryable: typeof error.retryable === "boolean" ? error.retryable : error.code === "rate_limited" || error.status === 429
|
|
18401
18401
|
}), "withRecovery");
|
|
18402
18402
|
|
|
18403
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18403
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/services/batch.js
|
|
18404
18404
|
var actionable = /* @__PURE__ */ __name((error) => {
|
|
18405
18405
|
if (isCliFailure(error))
|
|
18406
18406
|
return withRecovery({ code: error.code, message: error.message, ...error.details });
|
|
@@ -18483,7 +18483,7 @@ var mergeBatches = /* @__PURE__ */ __name((a, b) => {
|
|
|
18483
18483
|
};
|
|
18484
18484
|
}, "mergeBatches");
|
|
18485
18485
|
|
|
18486
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18486
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/domain/ref-arguments.js
|
|
18487
18487
|
var TAKES = {
|
|
18488
18488
|
chat: "a chat: chat:<provider>/<account>/<chat>, its id or its title",
|
|
18489
18489
|
message: "a message: msg:<provider>/<account>/<chat>/<message>, or a chat and the message's id"
|
|
@@ -18543,7 +18543,7 @@ var ensureAccount = /* @__PURE__ */ __name(async (reference, scope, profilesOn)
|
|
|
18543
18543
|
throw wrongAccount(reference, scope, profiles);
|
|
18544
18544
|
}, "ensureAccount");
|
|
18545
18545
|
|
|
18546
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18546
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/resolve.js
|
|
18547
18547
|
var isId = /* @__PURE__ */ __name((reference) => /^-?\d+$/.test(reference.trim()), "isId");
|
|
18548
18548
|
var foldName = /* @__PURE__ */ __name((name) => name.normalize("NFC").replace(/[\uFE0E\uFE0F\u200D]/g, "").toLowerCase().replaceAll("\u0451", "\u0435"), "foldName");
|
|
18549
18549
|
var pickChat = /* @__PURE__ */ __name((reference, chats) => {
|
|
@@ -18588,7 +18588,7 @@ ${lines3}`, { candidates });
|
|
|
18588
18588
|
}, "ambiguous");
|
|
18589
18589
|
var isPresent = /* @__PURE__ */ __name((value) => value !== null && value !== void 0, "isPresent");
|
|
18590
18590
|
|
|
18591
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18591
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/services/message-resolution.js
|
|
18592
18592
|
var readChatId = /* @__PURE__ */ __name(async (deps, reference, store, account) => {
|
|
18593
18593
|
if (deps.reads !== "store")
|
|
18594
18594
|
return keptChatId(deps.messenger, reference, store, account);
|
|
@@ -18747,7 +18747,7 @@ var senderAmong = /* @__PURE__ */ __name(async (store, accounts, reference) => {
|
|
|
18747
18747
|
}
|
|
18748
18748
|
}, "senderAmong");
|
|
18749
18749
|
|
|
18750
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18750
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/images/context/index.js
|
|
18751
18751
|
var CONTEXT_MESSAGES = 3;
|
|
18752
18752
|
var CONTEXT_MINUTES = 10;
|
|
18753
18753
|
var MAX_CHARS = 1200;
|
|
@@ -18771,12 +18771,12 @@ var context = {
|
|
|
18771
18771
|
}, "describe")
|
|
18772
18772
|
};
|
|
18773
18773
|
|
|
18774
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18774
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/images/registry.js
|
|
18775
18775
|
var BUILT_INS = [context];
|
|
18776
18776
|
var providers = [...BUILT_INS];
|
|
18777
18777
|
var registeredImageProviders = /* @__PURE__ */ __name(() => providers, "registeredImageProviders");
|
|
18778
18778
|
|
|
18779
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18779
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/services/conversations.js
|
|
18780
18780
|
var READ_PAGE = 5e3;
|
|
18781
18781
|
var CHAIN = 50;
|
|
18782
18782
|
var CONVERSATION_QUERY = {
|
|
@@ -18928,7 +18928,7 @@ var sized = /* @__PURE__ */ __name((size4) => {
|
|
|
18928
18928
|
return size4;
|
|
18929
18929
|
}, "sized");
|
|
18930
18930
|
|
|
18931
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18931
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/services/embeddings-maintenance.js
|
|
18932
18932
|
var REFRESH_BOUNDS = { maxChats: 20, maxChunks: 2e3 };
|
|
18933
18933
|
var MESSAGE_PAGE = 5e3;
|
|
18934
18934
|
var PER_SESSION = 8;
|
|
@@ -18947,7 +18947,7 @@ var embeddingTarget = /* @__PURE__ */ __name((deps, choice = chosenTextModel(dep
|
|
|
18947
18947
|
price: remote.price,
|
|
18948
18948
|
installed: true,
|
|
18949
18949
|
perBatch: PER_REQUEST * concurrency,
|
|
18950
|
-
open: /* @__PURE__ */ __name(async () => (await import("./remote-
|
|
18950
|
+
open: /* @__PURE__ */ __name(async () => (await import("./remote-IP4QR7SP.js")).openRemote(remote, apiKey, { concurrency }), "open")
|
|
18951
18951
|
};
|
|
18952
18952
|
}
|
|
18953
18953
|
const model = textModel(choice, deps.env);
|
|
@@ -18964,7 +18964,7 @@ var embeddingTarget = /* @__PURE__ */ __name((deps, choice = chosenTextModel(dep
|
|
|
18964
18964
|
if (!isTextModelInstalled(model, directory2))
|
|
18965
18965
|
throw notDownloaded(model.id);
|
|
18966
18966
|
if (apart) {
|
|
18967
|
-
const { openProcess } = await import("./process-
|
|
18967
|
+
const { openProcess } = await import("./process-P4UAJCZX.js");
|
|
18968
18968
|
return openProcess(model, directory2, { threads: threads ?? defaultThreads() });
|
|
18969
18969
|
}
|
|
18970
18970
|
return openEmbedder(model, directory2, { threads: threads ?? defaultThreads() });
|
|
@@ -19253,7 +19253,7 @@ var shaped = /* @__PURE__ */ __name(({ chatId, builtAt, algorithmVersion, pendin
|
|
|
19253
19253
|
return { ...one2, state };
|
|
19254
19254
|
}, "shaped");
|
|
19255
19255
|
|
|
19256
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19256
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/services/search-catchup.js
|
|
19257
19257
|
var CATCH_UP_BOUNDS = { maxChunks: 500, maxMessages: 1e4, timeMs: 3e4 };
|
|
19258
19258
|
var validateCatchUpBounds = /* @__PURE__ */ __name((options2) => {
|
|
19259
19259
|
for (const [key, value, maximum] of [
|
|
@@ -19306,7 +19306,7 @@ var catchUpSearch = /* @__PURE__ */ __name(async (deps, chat, options2, signal,
|
|
|
19306
19306
|
}
|
|
19307
19307
|
}, "catchUpSearch");
|
|
19308
19308
|
|
|
19309
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19309
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/services/archive.js
|
|
19310
19310
|
var pushed = /* @__PURE__ */ __name((deps, what) => {
|
|
19311
19311
|
if (deps.reads === "store") {
|
|
19312
19312
|
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`);
|
|
@@ -19672,7 +19672,7 @@ var timeOfKey = /* @__PURE__ */ __name(async (store, account, chatId, key, byTim
|
|
|
19672
19672
|
return message?.timestamp ?? fallback;
|
|
19673
19673
|
}, "timeOfKey");
|
|
19674
19674
|
|
|
19675
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19675
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/services/questions.js
|
|
19676
19676
|
var LINKS = /https?:\/\/\S+/g;
|
|
19677
19677
|
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");
|
|
19678
19678
|
var questions = /* @__PURE__ */ __name((messages, { answerers: answerers2, asker = "others" }) => {
|
|
@@ -19702,7 +19702,7 @@ var questions = /* @__PURE__ */ __name((messages, { answerers: answerers2, asker
|
|
|
19702
19702
|
});
|
|
19703
19703
|
}, "questions");
|
|
19704
19704
|
|
|
19705
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19705
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/services/task-categories.js
|
|
19706
19706
|
var names = /* @__PURE__ */ __name((categories) => categories.map(({ name }) => name).join(", "), "names");
|
|
19707
19707
|
var taskCategoryOf = /* @__PURE__ */ __name((categories = DEFAULT_TASK_CATEGORIES, flag = "--category") => (typed) => {
|
|
19708
19708
|
const name = typed.trim().toLowerCase();
|
|
@@ -19759,7 +19759,7 @@ var categorize = /* @__PURE__ */ __name((text2, categories = DEFAULT_TASK_CATEGO
|
|
|
19759
19759
|
return best.name;
|
|
19760
19760
|
}, "categorize");
|
|
19761
19761
|
|
|
19762
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19762
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/services/task-rules.js
|
|
19763
19763
|
var taskAccount = /* @__PURE__ */ __name(({ provider, account }) => `${provider}:${account}`, "taskAccount");
|
|
19764
19764
|
var RULES_IN = {
|
|
19765
19765
|
dialog: "all",
|
|
@@ -19965,7 +19965,7 @@ var applyTaskRulesToChats = /* @__PURE__ */ __name(async (store, account, chatId
|
|
|
19965
19965
|
return passes;
|
|
19966
19966
|
}, "applyTaskRulesToChats");
|
|
19967
19967
|
|
|
19968
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19968
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/context/evidence-response.js
|
|
19969
19969
|
var contextSourceKey = /* @__PURE__ */ __name((source) => JSON.stringify([source.kind, source.accountId, source.provider, source.account]), "contextSourceKey");
|
|
19970
19970
|
var validateContextEvidencePage = /* @__PURE__ */ __name((page, request) => {
|
|
19971
19971
|
const fail3 = /* @__PURE__ */ __name(() => {
|
|
@@ -20029,7 +20029,7 @@ var validateContextEvidencePage = /* @__PURE__ */ __name((page, request) => {
|
|
|
20029
20029
|
}
|
|
20030
20030
|
}, "validateContextEvidencePage");
|
|
20031
20031
|
|
|
20032
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20032
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/context/read-budget.js
|
|
20033
20033
|
var contextReadBudget = /* @__PURE__ */ __name((limits = {}) => {
|
|
20034
20034
|
if (!limits || typeof limits !== "object" || Array.isArray(limits))
|
|
20035
20035
|
throw new CliError("validation_error", "limits needs a context read allowance");
|
|
@@ -20082,7 +20082,7 @@ var contextReadBudget = /* @__PURE__ */ __name((limits = {}) => {
|
|
|
20082
20082
|
};
|
|
20083
20083
|
}, "contextReadBudget");
|
|
20084
20084
|
|
|
20085
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20085
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/services/context-evidence.js
|
|
20086
20086
|
var createContextEvidenceReader = /* @__PURE__ */ __name((port, allowed, limits) => {
|
|
20087
20087
|
if (!port || typeof port.read !== "function")
|
|
20088
20088
|
throw new CliError("configuration_error", "context evidence reader is unavailable");
|
|
@@ -20126,7 +20126,7 @@ var createContextEvidenceReader = /* @__PURE__ */ __name((port, allowed, limits)
|
|
|
20126
20126
|
};
|
|
20127
20127
|
}, "createContextEvidenceReader");
|
|
20128
20128
|
|
|
20129
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20129
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/services/project-purposes.js
|
|
20130
20130
|
var BUILT_IN_PURPOSES = ["work", "sales", "support", "other"];
|
|
20131
20131
|
var DEFAULT_PURPOSES = ["work"];
|
|
20132
20132
|
var LINK_PURPOSE = "work";
|
|
@@ -20156,7 +20156,7 @@ var purposeList = /* @__PURE__ */ __name((value, previous = []) => [
|
|
|
20156
20156
|
...value.split(",").map((one2) => one2.trim()).filter(Boolean)
|
|
20157
20157
|
], "purposeList");
|
|
20158
20158
|
|
|
20159
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20159
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/services/moment.js
|
|
20160
20160
|
var AGO = /^(\d+)(m|h|d)$/;
|
|
20161
20161
|
var AGO_MS = { m: 6e4, h: 36e5, d: 864e5 };
|
|
20162
20162
|
var DATE = /^\d{4}-\d{2}-\d{2}/;
|
|
@@ -20196,20 +20196,20 @@ var dateWindow = /* @__PURE__ */ __name(({ sinceTime, untilTime, zone, now = Dat
|
|
|
20196
20196
|
};
|
|
20197
20197
|
}, "dateWindow");
|
|
20198
20198
|
|
|
20199
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20199
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/attachments/extract.js
|
|
20200
20200
|
import { extname as extname2 } from "node:path";
|
|
20201
20201
|
|
|
20202
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20202
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/readers/engine.js
|
|
20203
20203
|
import { readFileSync } from "node:fs";
|
|
20204
20204
|
import { dirname, extname, join } from "node:path";
|
|
20205
20205
|
import { fileURLToPath } from "node:url";
|
|
20206
20206
|
|
|
20207
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20207
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/attachments/container.js
|
|
20208
20208
|
import { setImmediate as tick } from "node:timers/promises";
|
|
20209
20209
|
import { crc32 } from "node:zlib";
|
|
20210
20210
|
var import_xmldom = __toESM(require_lib(), 1);
|
|
20211
20211
|
|
|
20212
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20212
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/attachments/encoding.js
|
|
20213
20213
|
var import_chardet = __toESM(require_lib2(), 1);
|
|
20214
20214
|
var import_iconv_lite = __toESM(require_lib3(), 1);
|
|
20215
20215
|
var SAMPLE = 65536;
|
|
@@ -20311,7 +20311,7 @@ var decodeXml = /* @__PURE__ */ __name((bytes2) => {
|
|
|
20311
20311
|
return result.text;
|
|
20312
20312
|
}, "decodeXml");
|
|
20313
20313
|
|
|
20314
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20314
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/attachments/container.js
|
|
20315
20315
|
var MAX_PART = 10 * 1024 * 1024;
|
|
20316
20316
|
var MAX_ENTRIES = 1e3;
|
|
20317
20317
|
var decoder = new TextDecoder("utf-8", { fatal: true });
|
|
@@ -20526,7 +20526,7 @@ var elements = /* @__PURE__ */ __name((node, name, namespace) => {
|
|
|
20526
20526
|
return found;
|
|
20527
20527
|
}, "elements");
|
|
20528
20528
|
|
|
20529
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20529
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/readers/engine.js
|
|
20530
20530
|
var BUILT_IN = ["unpdf", "mammoth", "word-extractor", "linkedom", "defuddle/node"];
|
|
20531
20531
|
var ENGINES = [...BUILT_IN, "@napi-rs/canvas"];
|
|
20532
20532
|
var isMissing = /* @__PURE__ */ __name((error, name) => error?.code === "ERR_MODULE_NOT_FOUND" && String(error.message).includes(name), "isMissing");
|
|
@@ -20584,7 +20584,7 @@ var derived = /* @__PURE__ */ __name((bytes2, extractor, read2) => {
|
|
|
20584
20584
|
}
|
|
20585
20585
|
}, "derived");
|
|
20586
20586
|
|
|
20587
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20587
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/readers/image/index.js
|
|
20588
20588
|
var IMAGES = /* @__PURE__ */ new Set([".jpg", ".jpeg", ".png", ".webp", ".gif", ".heic", ".tif", ".tiff", ".bmp"]);
|
|
20589
20589
|
var image = {
|
|
20590
20590
|
id: "image",
|
|
@@ -20593,7 +20593,7 @@ var image = {
|
|
|
20593
20593
|
read: /* @__PURE__ */ __name(async () => ({ status: "needs-agent" }), "read")
|
|
20594
20594
|
};
|
|
20595
20595
|
|
|
20596
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20596
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/readers/doc/index.js
|
|
20597
20597
|
var OLE = "\xD0\xCF\xE0\xA1\xB1\xE1";
|
|
20598
20598
|
var doc = {
|
|
20599
20599
|
id: "doc",
|
|
@@ -20605,7 +20605,7 @@ var doc = {
|
|
|
20605
20605
|
}), "read")
|
|
20606
20606
|
};
|
|
20607
20607
|
|
|
20608
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20608
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/readers/docx/index.js
|
|
20609
20609
|
var DOCX = "application/vnd.openxmlformats-officedocument.wordprocessingml.document";
|
|
20610
20610
|
var docx = {
|
|
20611
20611
|
id: "docx",
|
|
@@ -20618,7 +20618,7 @@ var docx = {
|
|
|
20618
20618
|
}), "read")
|
|
20619
20619
|
};
|
|
20620
20620
|
|
|
20621
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20621
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/attachments/markup.js
|
|
20622
20622
|
var import_iconv_lite2 = __toESM(require_lib3(), 1);
|
|
20623
20623
|
var RTF_SKIPPED = /* @__PURE__ */ new Set([
|
|
20624
20624
|
"fonttbl",
|
|
@@ -20794,7 +20794,7 @@ var htmlText = /* @__PURE__ */ __name((source) => {
|
|
|
20794
20794
|
}, "htmlText");
|
|
20795
20795
|
var safeChar = /* @__PURE__ */ __name((code, fallback) => code > 0 && code <= 1114111 ? String.fromCodePoint(code) : fallback, "safeChar");
|
|
20796
20796
|
|
|
20797
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20797
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/readers/html/page.js
|
|
20798
20798
|
var clean = /* @__PURE__ */ __name((value) => typeof value === "string" ? value.replace(/\s+/g, " ").trim() : "", "clean");
|
|
20799
20799
|
var namesIn = /* @__PURE__ */ __name((value) => [value].flat().map((entry) => typeof entry === "string" ? clean(entry) : clean(entry?.name)).filter(Boolean).join(", "), "namesIn");
|
|
20800
20800
|
var jsonLdNodes = /* @__PURE__ */ __name((document) => {
|
|
@@ -20850,7 +20850,7 @@ var markdownSections = /* @__PURE__ */ __name((text2) => {
|
|
|
20850
20850
|
return found.map((section, index) => ({ ...section, end: found[index + 1]?.start ?? text2.length }));
|
|
20851
20851
|
}, "markdownSections");
|
|
20852
20852
|
|
|
20853
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20853
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/readers/html/index.js
|
|
20854
20854
|
var HTML = /* @__PURE__ */ new Set([".html", ".htm", ".xhtml"]);
|
|
20855
20855
|
var first = /* @__PURE__ */ __name((...values) => values.find((value) => typeof value === "string" && value !== ""), "first");
|
|
20856
20856
|
var loaded = /* @__PURE__ */ __name(async (load, name) => {
|
|
@@ -20921,10 +20921,10 @@ var html = {
|
|
|
20921
20921
|
}, "read")
|
|
20922
20922
|
};
|
|
20923
20923
|
|
|
20924
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20924
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/attachments/documents.js
|
|
20925
20925
|
import { posix } from "node:path";
|
|
20926
20926
|
|
|
20927
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20927
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/attachments/sheets.js
|
|
20928
20928
|
var columnName = /* @__PURE__ */ __name((column) => {
|
|
20929
20929
|
let name = "";
|
|
20930
20930
|
for (let rest = column; rest > 0; rest = Math.floor((rest - 1) / 26))
|
|
@@ -20979,7 +20979,7 @@ var sheetText = /* @__PURE__ */ __name((sheets2, maxChars = MAX_TEXT_CHARS) => {
|
|
|
20979
20979
|
return { text: parts.join("").trim(), truncated: false };
|
|
20980
20980
|
}, "sheetText");
|
|
20981
20981
|
|
|
20982
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20982
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/attachments/documents.js
|
|
20983
20983
|
var OFFICE = "urn:oasis:names:tc:opendocument:xmlns:office:1.0";
|
|
20984
20984
|
var TEXT = "urn:oasis:names:tc:opendocument:xmlns:text:1.0";
|
|
20985
20985
|
var TABLE = "urn:oasis:names:tc:opendocument:xmlns:table:1.0";
|
|
@@ -21379,7 +21379,7 @@ var readDocument = /* @__PURE__ */ __name(async (bytes2, kind, signal) => {
|
|
|
21379
21379
|
}
|
|
21380
21380
|
}, "readDocument");
|
|
21381
21381
|
|
|
21382
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21382
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/readers/office/index.js
|
|
21383
21383
|
var office = {
|
|
21384
21384
|
id: "office",
|
|
21385
21385
|
version: documentExtractor("odt"),
|
|
@@ -21390,7 +21390,7 @@ var office = {
|
|
|
21390
21390
|
}, "read")
|
|
21391
21391
|
};
|
|
21392
21392
|
|
|
21393
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21393
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/readers/pdf/index.js
|
|
21394
21394
|
var pdf = {
|
|
21395
21395
|
id: "pdf",
|
|
21396
21396
|
version: "unpdf",
|
|
@@ -21457,7 +21457,7 @@ var pdf = {
|
|
|
21457
21457
|
}), "read")
|
|
21458
21458
|
};
|
|
21459
21459
|
|
|
21460
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21460
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/readers/plain/index.js
|
|
21461
21461
|
var PLAIN = /* @__PURE__ */ new Set([".txt", ".md", ".markdown", ".csv", ".tsv", ".json", ".log"]);
|
|
21462
21462
|
var isPlain = /* @__PURE__ */ __name((hint) => PLAIN.has(extensionOf(hint)) || hint.mime?.startsWith("text/") || hint.mime === "application/json", "isPlain");
|
|
21463
21463
|
var readPlain = /* @__PURE__ */ __name((bytes2) => {
|
|
@@ -21477,7 +21477,7 @@ var plain = {
|
|
|
21477
21477
|
read: /* @__PURE__ */ __name(async (bytes2) => readPlain(bytes2), "read")
|
|
21478
21478
|
};
|
|
21479
21479
|
|
|
21480
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21480
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/readers/rtf/index.js
|
|
21481
21481
|
var rtf = {
|
|
21482
21482
|
id: "rtf",
|
|
21483
21483
|
version: "v1",
|
|
@@ -21485,10 +21485,10 @@ var rtf = {
|
|
|
21485
21485
|
read: /* @__PURE__ */ __name(async (bytes2) => derived(bytes2, "rtf:v1", rtfText), "read")
|
|
21486
21486
|
};
|
|
21487
21487
|
|
|
21488
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21488
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/readers/sheets/index.js
|
|
21489
21489
|
import { basename } from "node:path";
|
|
21490
21490
|
|
|
21491
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21491
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/attachments/csv-spans.js
|
|
21492
21492
|
var delimitedSpans = /* @__PURE__ */ __name((text2, delimiter, maxCells = 1e4) => {
|
|
21493
21493
|
const cells = [];
|
|
21494
21494
|
let row = 1, column = 1, start = 0, quoted = false, truncated = false;
|
|
@@ -21526,7 +21526,7 @@ var delimitedSpans = /* @__PURE__ */ __name((text2, delimiter, maxCells = 1e4) =
|
|
|
21526
21526
|
return { cells, truncated };
|
|
21527
21527
|
}, "delimitedSpans");
|
|
21528
21528
|
|
|
21529
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21529
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/readers/sheets/index.js
|
|
21530
21530
|
var DELIMITED = {
|
|
21531
21531
|
".csv": ",",
|
|
21532
21532
|
".tsv": " ",
|
|
@@ -21565,7 +21565,7 @@ var sheets = {
|
|
|
21565
21565
|
}, "read")
|
|
21566
21566
|
};
|
|
21567
21567
|
|
|
21568
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21568
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/readers/registry.js
|
|
21569
21569
|
var BUILT_INS2 = [office, pdf, docx, doc, rtf, html, sheets, plain, image];
|
|
21570
21570
|
var HEAD_BYTES = 1024;
|
|
21571
21571
|
var readers = [...BUILT_INS2];
|
|
@@ -21575,7 +21575,7 @@ var readWithRegistry = /* @__PURE__ */ __name(async (bytes2, hint, context2) =>
|
|
|
21575
21575
|
return reader ? reader.read(bytes2, hint, context2) : { status: "unsupported" };
|
|
21576
21576
|
}, "readWithRegistry");
|
|
21577
21577
|
|
|
21578
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21578
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/attachments/extract.js
|
|
21579
21579
|
var importEngine = /* @__PURE__ */ __name((name) => importFrom(new URL("attachments/extract.js", import.meta.resolve("@wirecat/cli-core")).href, name), "importEngine");
|
|
21580
21580
|
var extensionOf2 = /* @__PURE__ */ __name(({ name, path }) => extname2(name ?? path).toLowerCase(), "extensionOf");
|
|
21581
21581
|
var extractText = /* @__PURE__ */ __name(async (bytes2, hint, load, signal, env = process.env) => {
|
|
@@ -21613,7 +21613,7 @@ var engineStates = /* @__PURE__ */ __name((resolve7 = (name) => resolveFrom(new
|
|
|
21613
21613
|
}
|
|
21614
21614
|
})), "engineStates");
|
|
21615
21615
|
|
|
21616
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21616
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/botcheck/check.js
|
|
21617
21617
|
var DAY_MS = 864e5;
|
|
21618
21618
|
var NEW_DAYS = 30;
|
|
21619
21619
|
var SAME_TEXT_MIN = 20;
|
|
@@ -21690,7 +21690,7 @@ var scorePerson = /* @__PURE__ */ __name(({ subject, provider, activity, photos,
|
|
|
21690
21690
|
};
|
|
21691
21691
|
}, "scorePerson");
|
|
21692
21692
|
|
|
21693
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21693
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/botcheck/registries.js
|
|
21694
21694
|
var REGISTRIES = {
|
|
21695
21695
|
cas: { title: "Combot Anti-Spam (CAS)", docs: "https://cas.chat/api" },
|
|
21696
21696
|
lols: { title: "lols.bot", docs: "https://api.lols.bot/lols-bot.json" }
|
|
@@ -21777,7 +21777,7 @@ var notCovered = /* @__PURE__ */ __name((messenger, now = /* @__PURE__ */ new Da
|
|
|
21777
21777
|
detail: `lists Telegram accounts only, not ${messenger} ones`
|
|
21778
21778
|
})), "notCovered");
|
|
21779
21779
|
|
|
21780
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21780
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/botcheck/service.js
|
|
21781
21781
|
var ACTIVITY_MESSAGES = 1e3;
|
|
21782
21782
|
var botCheckService = /* @__PURE__ */ __name((deps) => {
|
|
21783
21783
|
const subjectOf = /* @__PURE__ */ __name(async (reference) => {
|
|
@@ -21865,7 +21865,7 @@ var botCheckService = /* @__PURE__ */ __name((deps) => {
|
|
|
21865
21865
|
};
|
|
21866
21866
|
}, "botCheckService");
|
|
21867
21867
|
|
|
21868
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21868
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/domain/thread.js
|
|
21869
21869
|
var threadIdOf = /* @__PURE__ */ __name((value) => {
|
|
21870
21870
|
if (value === void 0)
|
|
21871
21871
|
return void 0;
|
|
@@ -21875,7 +21875,7 @@ var threadIdOf = /* @__PURE__ */ __name((value) => {
|
|
|
21875
21875
|
return id2;
|
|
21876
21876
|
}, "threadIdOf");
|
|
21877
21877
|
|
|
21878
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21878
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/services/chat-stats.js
|
|
21879
21879
|
var TOP_POSTS = 5;
|
|
21880
21880
|
var JOINS = /* @__PURE__ */ new Set(["join", "add"]);
|
|
21881
21881
|
var LEAVES = /* @__PURE__ */ new Set(["leave", "remove"]);
|
|
@@ -21992,7 +21992,7 @@ var median = /* @__PURE__ */ __name((values) => {
|
|
|
21992
21992
|
return Math.round(sorted.length % 2 === 0 ? ((sorted[middle - 1] ?? upper) + upper) / 2 : upper);
|
|
21993
21993
|
}, "median");
|
|
21994
21994
|
|
|
21995
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21995
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/services/member-history.js
|
|
21996
21996
|
var memberEvents = /* @__PURE__ */ __name((stays, revisions, since = 0) => {
|
|
21997
21997
|
const events = [];
|
|
21998
21998
|
for (const stay of stays) {
|
|
@@ -22024,7 +22024,7 @@ var memberEvents = /* @__PURE__ */ __name((stays, revisions, since = 0) => {
|
|
|
22024
22024
|
return events.filter(({ at }) => Date.parse(at) >= since).sort((a, b) => Date.parse(a.at) - Date.parse(b.at) || a.id.localeCompare(b.id));
|
|
22025
22025
|
}, "memberEvents");
|
|
22026
22026
|
|
|
22027
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22027
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/services/chats.js
|
|
22028
22028
|
var EVENTS_DAYS = 7;
|
|
22029
22029
|
var TRACKED_DAYS = 30;
|
|
22030
22030
|
var STATS_PAGE = 1e3;
|
|
@@ -22319,7 +22319,7 @@ var storedMembers = /* @__PURE__ */ __name(async (store, chatId) => {
|
|
|
22319
22319
|
return members.length === 0 ? null : members;
|
|
22320
22320
|
}, "storedMembers");
|
|
22321
22321
|
|
|
22322
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22322
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/services/inbox.js
|
|
22323
22323
|
var INBOX_CHATS = 20;
|
|
22324
22324
|
var REVIEW_DAYS = 3;
|
|
22325
22325
|
var UNANSWERED_HOURS = 24;
|
|
@@ -22527,7 +22527,7 @@ var inboxService = /* @__PURE__ */ __name((deps) => {
|
|
|
22527
22527
|
};
|
|
22528
22528
|
}, "inboxService");
|
|
22529
22529
|
|
|
22530
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22530
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/services/person-context.js
|
|
22531
22531
|
var CONTEXT_MESSAGES2 = 10;
|
|
22532
22532
|
var CONTEXT_BYTES = 64 * 1024;
|
|
22533
22533
|
var toContext = /* @__PURE__ */ __name((key, message, chatTitle2) => ({
|
|
@@ -22816,10 +22816,10 @@ var personMessages = /* @__PURE__ */ __name(async (store, asked, reference, { ch
|
|
|
22816
22816
|
};
|
|
22817
22817
|
}, "personMessages");
|
|
22818
22818
|
|
|
22819
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22819
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/services/meeting-evidence.js
|
|
22820
22820
|
import { createHash } from "node:crypto";
|
|
22821
22821
|
|
|
22822
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22822
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/services/meeting-reference.js
|
|
22823
22823
|
var missing2 = /* @__PURE__ */ __name(() => new CliError("not_found", "the meeting evidence is unavailable for this account"), "missing");
|
|
22824
22824
|
var authorizedMeetingMetadata = /* @__PURE__ */ __name(async (store, accountId, reference, options2 = {}) => {
|
|
22825
22825
|
const parsed = parseMeetingReference(reference);
|
|
@@ -22837,7 +22837,7 @@ var authorizedMeetingMetadata = /* @__PURE__ */ __name(async (store, accountId,
|
|
|
22837
22837
|
return { parsed, meeting };
|
|
22838
22838
|
}, "authorizedMeetingMetadata");
|
|
22839
22839
|
|
|
22840
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22840
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/services/meeting-evidence.js
|
|
22841
22841
|
var hash = /* @__PURE__ */ __name((value) => createHash("sha256").update(JSON.stringify(value)).digest("hex"), "hash");
|
|
22842
22842
|
var checkMeetingCancelled = /* @__PURE__ */ __name((signal) => {
|
|
22843
22843
|
if (signal?.aborted)
|
|
@@ -23036,7 +23036,7 @@ var readMeetingEvidence = /* @__PURE__ */ __name(async (store, accountId, refere
|
|
|
23036
23036
|
return { ...packet, fingerprint: hash(packet) };
|
|
23037
23037
|
}, "readMeetingEvidence");
|
|
23038
23038
|
|
|
23039
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23039
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/services/person-meeting-context.js
|
|
23040
23040
|
var personMeetingContext = /* @__PURE__ */ __name(async (store, personReference, options2) => {
|
|
23041
23041
|
const { meetings = 10, cues = 5, bytes: bytes2 = 64 * 1024, scanLimit = 1e3, since, signal } = options2;
|
|
23042
23042
|
const requestedAccounts = options2.accountIds;
|
|
@@ -23135,7 +23135,7 @@ var personMeetingContext = /* @__PURE__ */ __name(async (store, personReference,
|
|
|
23135
23135
|
};
|
|
23136
23136
|
}, "personMeetingContext");
|
|
23137
23137
|
|
|
23138
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23138
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/services/person-preparation.js
|
|
23139
23139
|
var PREPARE_BYTES = 96 * 1024;
|
|
23140
23140
|
var MEETINGS = 5;
|
|
23141
23141
|
var CUES = 3;
|
|
@@ -23251,7 +23251,7 @@ var meetingsOf = /* @__PURE__ */ __name(async (store, uid, stored, since, left)
|
|
|
23251
23251
|
}
|
|
23252
23252
|
}, "meetingsOf");
|
|
23253
23253
|
|
|
23254
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23254
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/services/person-profile.js
|
|
23255
23255
|
var personProfile = /* @__PURE__ */ __name(async (deps, person, known2) => {
|
|
23256
23256
|
const online = deps.offline ? void 0 : await deps.connection();
|
|
23257
23257
|
const held = await storeIfOpen(deps);
|
|
@@ -23321,7 +23321,7 @@ var quiet = /* @__PURE__ */ __name((facts) => facts.chats.map(({ id: id2, title,
|
|
|
23321
23321
|
complete: false
|
|
23322
23322
|
})), "quiet");
|
|
23323
23323
|
|
|
23324
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23324
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/services/person-timeline.js
|
|
23325
23325
|
var TIMELINE_ITEMS = 50;
|
|
23326
23326
|
var TIMELINE_MAX = 500;
|
|
23327
23327
|
var SCOPES2 = ["personal", "work"];
|
|
@@ -23376,7 +23376,7 @@ var personTimeline = /* @__PURE__ */ __name(async (store, asked, reference, { sc
|
|
|
23376
23376
|
};
|
|
23377
23377
|
}, "personTimeline");
|
|
23378
23378
|
|
|
23379
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23379
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/services/people.js
|
|
23380
23380
|
var peopleService = /* @__PURE__ */ __name((deps) => {
|
|
23381
23381
|
const localCard = /* @__PURE__ */ __name(async (card, includeNotes = false) => {
|
|
23382
23382
|
const held = await storeIfOpen(deps);
|
|
@@ -23603,7 +23603,7 @@ var withoutPhone = /* @__PURE__ */ __name((answer) => {
|
|
|
23603
23603
|
return rest;
|
|
23604
23604
|
}, "withoutPhone");
|
|
23605
23605
|
|
|
23606
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23606
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/services/task-stats.js
|
|
23607
23607
|
var TASK_STATS_BY = ["chat", "meeting", "project"];
|
|
23608
23608
|
var PERIOD_FIELD = "created";
|
|
23609
23609
|
var refuseNestedPeriod = /* @__PURE__ */ __name((node, top = true) => {
|
|
@@ -23706,7 +23706,7 @@ var meetingNames = /* @__PURE__ */ __name(async (store, groups) => {
|
|
|
23706
23706
|
}));
|
|
23707
23707
|
}, "meetingNames");
|
|
23708
23708
|
|
|
23709
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23709
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/services/task-tag-filters.js
|
|
23710
23710
|
var taskTagFilters = /* @__PURE__ */ __name(async (store, query) => {
|
|
23711
23711
|
const tags = /* @__PURE__ */ new Map();
|
|
23712
23712
|
for (const node of query ? walkQuery(query.root) : [])
|
|
@@ -23715,7 +23715,7 @@ var taskTagFilters = /* @__PURE__ */ __name(async (store, query) => {
|
|
|
23715
23715
|
return tags;
|
|
23716
23716
|
}, "taskTagFilters");
|
|
23717
23717
|
|
|
23718
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23718
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/services/tasks.js
|
|
23719
23719
|
var TASK_QUERY = {
|
|
23720
23720
|
entity: "task",
|
|
23721
23721
|
backend: "sql",
|
|
@@ -24207,7 +24207,7 @@ var taskView = /* @__PURE__ */ __name(async (store, account, task2) => {
|
|
|
24207
24207
|
};
|
|
24208
24208
|
}, "taskView");
|
|
24209
24209
|
|
|
24210
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24210
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/services/proposal-tasks.js
|
|
24211
24211
|
var proposalSource = /* @__PURE__ */ __name((id2) => `proposed-action:${id2}`, "proposalSource");
|
|
24212
24212
|
var approveAsTask = /* @__PURE__ */ __name(async (store, id2, by) => {
|
|
24213
24213
|
const proposal = await store.proposedActions.get(id2);
|
|
@@ -24230,7 +24230,7 @@ var approveAsTask = /* @__PURE__ */ __name(async (store, id2, by) => {
|
|
|
24230
24230
|
return { proposal: await store.proposedActions.approve(proposal.id, by, { task: task2.id }), task: task2 };
|
|
24231
24231
|
}, "approveAsTask");
|
|
24232
24232
|
|
|
24233
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24233
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/services/proposals/ids.js
|
|
24234
24234
|
var MAX_IDS = 500;
|
|
24235
24235
|
var refuse = /* @__PURE__ */ __name((message) => {
|
|
24236
24236
|
throw new CliError("validation_error", message, { reason: "proposal.ids" });
|
|
@@ -24272,7 +24272,7 @@ var parseProposalIds = /* @__PURE__ */ __name((text2) => {
|
|
|
24272
24272
|
return ids;
|
|
24273
24273
|
}, "parseProposalIds");
|
|
24274
24274
|
|
|
24275
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24275
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/shared.js
|
|
24276
24276
|
var proposerOfAuthor = /* @__PURE__ */ __name((author) => {
|
|
24277
24277
|
if (author.type === "person")
|
|
24278
24278
|
return { type: "person", id: author.id };
|
|
@@ -24344,7 +24344,7 @@ var reviewedKind = /* @__PURE__ */ __name((spec) => ({
|
|
|
24344
24344
|
}, "decide")
|
|
24345
24345
|
}), "reviewedKind");
|
|
24346
24346
|
|
|
24347
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24347
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/action.js
|
|
24348
24348
|
var rowOf = /* @__PURE__ */ __name((action2) => ({
|
|
24349
24349
|
id: action2.id,
|
|
24350
24350
|
kind: "action",
|
|
@@ -24384,7 +24384,7 @@ var actionKind = /* @__PURE__ */ __name((store, claimed) => ({
|
|
|
24384
24384
|
}, "decide")
|
|
24385
24385
|
}), "actionKind");
|
|
24386
24386
|
|
|
24387
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24387
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/contracts.js
|
|
24388
24388
|
var contractKind = /* @__PURE__ */ __name((store) => reviewedKind({
|
|
24389
24389
|
type: "contract",
|
|
24390
24390
|
list: /* @__PURE__ */ __name((options2) => store.contracts.list(options2), "list"),
|
|
@@ -24393,7 +24393,7 @@ var contractKind = /* @__PURE__ */ __name((store) => reviewedKind({
|
|
|
24393
24393
|
decide: /* @__PURE__ */ __name(async (id2, confirm, { by, reason }) => (confirm ? await store.contracts.confirm(id2, by, reason) : await store.contracts.reject(id2, by, reason)).ref, "decide")
|
|
24394
24394
|
}), "contractKind");
|
|
24395
24395
|
|
|
24396
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24396
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/fact.js
|
|
24397
24397
|
var STATUS = {
|
|
24398
24398
|
proposed: "proposed",
|
|
24399
24399
|
accepted: "confirmed",
|
|
@@ -24436,7 +24436,7 @@ var factKind = /* @__PURE__ */ __name((store) => ({
|
|
|
24436
24436
|
}, "decide")
|
|
24437
24437
|
}), "factKind");
|
|
24438
24438
|
|
|
24439
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24439
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/finance.js
|
|
24440
24440
|
var invoiceKind = /* @__PURE__ */ __name((store) => reviewedKind({
|
|
24441
24441
|
type: "invoice",
|
|
24442
24442
|
list: /* @__PURE__ */ __name((options2) => store.finance.invoices(options2), "list"),
|
|
@@ -24452,7 +24452,7 @@ var paymentKind = /* @__PURE__ */ __name((store) => reviewedKind({
|
|
|
24452
24452
|
decide: /* @__PURE__ */ __name(async (id2, confirm, { by, reason }) => (confirm ? await store.finance.confirm(id2, by, reason) : await store.finance.reject(id2, by, reason)).ref, "decide")
|
|
24453
24453
|
}), "paymentKind");
|
|
24454
24454
|
|
|
24455
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24455
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/findings.js
|
|
24456
24456
|
var FACT_SUMMARIES = {
|
|
24457
24457
|
fact: /* @__PURE__ */ __name((finding) => finding.statement, "fact"),
|
|
24458
24458
|
task: /* @__PURE__ */ __name((finding) => finding.title, "task"),
|
|
@@ -24524,7 +24524,7 @@ var findingsKind = /* @__PURE__ */ __name((store) => {
|
|
|
24524
24524
|
};
|
|
24525
24525
|
}, "findingsKind");
|
|
24526
24526
|
|
|
24527
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24527
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/key-document.js
|
|
24528
24528
|
var linkRow = /* @__PURE__ */ __name((link4) => ({
|
|
24529
24529
|
id: `key:${link4.id}`,
|
|
24530
24530
|
kind: "key_document",
|
|
@@ -24592,7 +24592,7 @@ var keyDocumentKind = /* @__PURE__ */ __name((store) => {
|
|
|
24592
24592
|
};
|
|
24593
24593
|
}, "keyDocumentKind");
|
|
24594
24594
|
|
|
24595
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24595
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/mail-findings.js
|
|
24596
24596
|
var words = /* @__PURE__ */ __name((...parts) => parts.filter(Boolean).join(" "), "words");
|
|
24597
24597
|
var summaryOf = /* @__PURE__ */ __name((finding) => {
|
|
24598
24598
|
switch (finding.kind) {
|
|
@@ -24680,7 +24680,7 @@ var mailFindingsKind = /* @__PURE__ */ __name((store) => {
|
|
|
24680
24680
|
};
|
|
24681
24681
|
}, "mailFindingsKind");
|
|
24682
24682
|
|
|
24683
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24683
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/meeting-findings.js
|
|
24684
24684
|
var rowOf5 = /* @__PURE__ */ __name((action2, batch) => {
|
|
24685
24685
|
const findings = batch.input.findings;
|
|
24686
24686
|
const projects = [...new Set(findings.map((one2) => "project" in one2 ? one2.project : void 0))];
|
|
@@ -24744,7 +24744,7 @@ var meetingFindingsKind = /* @__PURE__ */ __name((store) => {
|
|
|
24744
24744
|
};
|
|
24745
24745
|
}, "meetingFindingsKind");
|
|
24746
24746
|
|
|
24747
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24747
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/memory.js
|
|
24748
24748
|
var STATUS2 = {
|
|
24749
24749
|
proposed: "proposed",
|
|
24750
24750
|
confirmed: "confirmed",
|
|
@@ -24785,7 +24785,7 @@ var memoryKind = /* @__PURE__ */ __name((store) => ({
|
|
|
24785
24785
|
}, "decide")
|
|
24786
24786
|
}), "memoryKind");
|
|
24787
24787
|
|
|
24788
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24788
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/orders.js
|
|
24789
24789
|
var orderKind = /* @__PURE__ */ __name((store) => reviewedKind({
|
|
24790
24790
|
type: "order",
|
|
24791
24791
|
list: /* @__PURE__ */ __name((options2) => store.orders.list(options2), "list"),
|
|
@@ -24794,7 +24794,7 @@ var orderKind = /* @__PURE__ */ __name((store) => reviewedKind({
|
|
|
24794
24794
|
decide: /* @__PURE__ */ __name(async (id2, confirm, { by, reason }) => (confirm ? await store.orders.confirm(id2, by, reason) : await store.orders.reject(id2, by, reason)).ref, "decide")
|
|
24795
24795
|
}), "orderKind");
|
|
24796
24796
|
|
|
24797
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24797
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/organization.js
|
|
24798
24798
|
var ORGANIZATION_ADD_KIND = "organization_add";
|
|
24799
24799
|
var ORGANIZATION_RENAME_KIND = "organization_rename";
|
|
24800
24800
|
var rowOf7 = /* @__PURE__ */ __name((action2) => {
|
|
@@ -24850,7 +24850,7 @@ var organizationKind = /* @__PURE__ */ __name((store) => ({
|
|
|
24850
24850
|
}, "decide")
|
|
24851
24851
|
}), "organizationKind");
|
|
24852
24852
|
|
|
24853
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24853
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/relationship.js
|
|
24854
24854
|
var linkRow2 = /* @__PURE__ */ __name((link4) => ({
|
|
24855
24855
|
id: `link:${link4.id}`,
|
|
24856
24856
|
kind: "relationship",
|
|
@@ -24925,7 +24925,7 @@ var relationshipKind = /* @__PURE__ */ __name((store) => {
|
|
|
24925
24925
|
};
|
|
24926
24926
|
}, "relationshipKind");
|
|
24927
24927
|
|
|
24928
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24928
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/relationship-update.js
|
|
24929
24929
|
var KIND = "relationship_update";
|
|
24930
24930
|
var summaryOf2 = /* @__PURE__ */ __name(({ changes }) => Object.entries(changes).map(([field, value]) => `${field} ${value ?? "cleared"}`).join(", "), "summaryOf");
|
|
24931
24931
|
var rowOf8 = /* @__PURE__ */ __name((action2) => {
|
|
@@ -24975,7 +24975,7 @@ var relationshipUpdateKind = /* @__PURE__ */ __name((store) => ({
|
|
|
24975
24975
|
}, "decide")
|
|
24976
24976
|
}), "relationshipUpdateKind");
|
|
24977
24977
|
|
|
24978
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24978
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/source-review.js
|
|
24979
24979
|
var rowOf9 = /* @__PURE__ */ __name((action2) => {
|
|
24980
24980
|
const payload = action2.payload;
|
|
24981
24981
|
const sources = payload.sources.flatMap((source) => source.ref ?? []);
|
|
@@ -25018,7 +25018,7 @@ var sourceReviewKind = /* @__PURE__ */ __name((store) => ({
|
|
|
25018
25018
|
}, "decide")
|
|
25019
25019
|
}), "sourceReviewKind");
|
|
25020
25020
|
|
|
25021
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25021
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/subscriptions.js
|
|
25022
25022
|
var subscriptionKind = /* @__PURE__ */ __name((store) => reviewedKind({
|
|
25023
25023
|
type: "subscription",
|
|
25024
25024
|
list: /* @__PURE__ */ __name((options2) => store.subscriptions.list(options2), "list"),
|
|
@@ -25037,7 +25037,7 @@ var subscriptionPriceKind = /* @__PURE__ */ __name((store) => reviewedKind({
|
|
|
25037
25037
|
}, "decide")
|
|
25038
25038
|
}), "subscriptionPriceKind");
|
|
25039
25039
|
|
|
25040
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25040
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/task-close.js
|
|
25041
25041
|
var rowOf10 = /* @__PURE__ */ __name((task2) => {
|
|
25042
25042
|
const suggestion = task2.closeSuggestion;
|
|
25043
25043
|
if (suggestion === null)
|
|
@@ -25105,7 +25105,7 @@ var taskCloseKind = /* @__PURE__ */ __name((store) => {
|
|
|
25105
25105
|
};
|
|
25106
25106
|
}, "taskCloseKind");
|
|
25107
25107
|
|
|
25108
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25108
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/transactions.js
|
|
25109
25109
|
var transactionKind = /* @__PURE__ */ __name((store) => reviewedKind({
|
|
25110
25110
|
type: "transaction",
|
|
25111
25111
|
list: /* @__PURE__ */ __name((options2) => store.transactions.list(options2), "list"),
|
|
@@ -25114,7 +25114,7 @@ var transactionKind = /* @__PURE__ */ __name((store) => reviewedKind({
|
|
|
25114
25114
|
decide: /* @__PURE__ */ __name(async (id2, confirm, { by, reason }) => (confirm ? await store.transactions.confirm(id2, by, reason) : await store.transactions.reject(id2, by, reason)).ref, "decide")
|
|
25115
25115
|
}), "transactionKind");
|
|
25116
25116
|
|
|
25117
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25117
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/services/proposals/registry.js
|
|
25118
25118
|
var PREFIX = /^([a-z][a-z_]*):/;
|
|
25119
25119
|
var marked = /* @__PURE__ */ __name((kind, row) => kind.ownerOnly ? { ...row, ownerOnly: true } : row, "marked");
|
|
25120
25120
|
var refusalOf = /* @__PURE__ */ __name((id2, error) => {
|
|
@@ -25247,7 +25247,7 @@ var proposalRegistry = /* @__PURE__ */ __name((store) => {
|
|
|
25247
25247
|
return registry;
|
|
25248
25248
|
}, "proposalRegistry");
|
|
25249
25249
|
|
|
25250
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25250
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/mail/owed.js
|
|
25251
25251
|
var mailTurn = /* @__PURE__ */ __name((newest) => {
|
|
25252
25252
|
if (newest === null)
|
|
25253
25253
|
return null;
|
|
@@ -25256,7 +25256,7 @@ var mailTurn = /* @__PURE__ */ __name((newest) => {
|
|
|
25256
25256
|
return newest.addressed ? "owed" : null;
|
|
25257
25257
|
}, "mailTurn");
|
|
25258
25258
|
|
|
25259
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25259
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/services/agenda-mail.js
|
|
25260
25260
|
var absent = /* @__PURE__ */ __name((error) => {
|
|
25261
25261
|
if (error instanceof CliError && error.code === "not_found")
|
|
25262
25262
|
return void 0;
|
|
@@ -25314,7 +25314,7 @@ var mailActivity = /* @__PURE__ */ __name(async (store, account, since, chats) =
|
|
|
25314
25314
|
};
|
|
25315
25315
|
}, "mailActivity");
|
|
25316
25316
|
|
|
25317
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25317
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/services/chat-coverage.js
|
|
25318
25318
|
var chatCoverage = /* @__PURE__ */ __name(async (store, account, chatIds) => {
|
|
25319
25319
|
const ids = [...new Set(chatIds)];
|
|
25320
25320
|
if (ids.length === 0)
|
|
@@ -25340,7 +25340,7 @@ var chatCoverage = /* @__PURE__ */ __name(async (store, account, chatIds) => {
|
|
|
25340
25340
|
}));
|
|
25341
25341
|
}, "chatCoverage");
|
|
25342
25342
|
|
|
25343
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25343
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/services/agenda.js
|
|
25344
25344
|
var DAY = 864e5;
|
|
25345
25345
|
var AGENDA_DEFAULTS = { unanswered: DAY, waiting: 7 * DAY };
|
|
25346
25346
|
var CLAIMS = ["none", "mine", "others", "any"];
|
|
@@ -25587,7 +25587,7 @@ var agendaItem = /* @__PURE__ */ __name((shown) => {
|
|
|
25587
25587
|
};
|
|
25588
25588
|
}, "agendaItem");
|
|
25589
25589
|
|
|
25590
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25590
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/services/excerpt.js
|
|
25591
25591
|
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");
|
|
25592
25592
|
var excerpt = /* @__PURE__ */ __name((text2, query, size4 = 240, options2 = {}) => {
|
|
25593
25593
|
const flat = text2.replace(/\s+/g, " ").trim();
|
|
@@ -25603,10 +25603,10 @@ var excerpt = /* @__PURE__ */ __name((text2, query, size4 = 240, options2 = {})
|
|
|
25603
25603
|
}, "excerpt");
|
|
25604
25604
|
var withExcerpt = /* @__PURE__ */ __name(({ matchedText, ...hit }, query) => ({ ...hit, excerpt: excerpt(matchedText ?? hit.text, query) }), "withExcerpt");
|
|
25605
25605
|
|
|
25606
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25606
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/services/ingest.js
|
|
25607
25607
|
import { createInterface } from "node:readline";
|
|
25608
25608
|
|
|
25609
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25609
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/domain/vcard.js
|
|
25610
25610
|
import { createHash as createHash2 } from "node:crypto";
|
|
25611
25611
|
var MAX_ID = 512;
|
|
25612
25612
|
var AS_WORD = new RegExp(`^${WORD_BODY}$`);
|
|
@@ -25843,7 +25843,7 @@ var envelopeOfVcard = /* @__PURE__ */ __name((text2, { provider, account, batchI
|
|
|
25843
25843
|
};
|
|
25844
25844
|
}, "envelopeOfVcard");
|
|
25845
25845
|
|
|
25846
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25846
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/services/ingest.js
|
|
25847
25847
|
var emptyReceipt = /* @__PURE__ */ __name((dryRun, errors) => ({
|
|
25848
25848
|
dryRun,
|
|
25849
25849
|
source: null,
|
|
@@ -25939,7 +25939,7 @@ var ingestVcard = /* @__PURE__ */ __name(async (store, text2, { provider, batchI
|
|
|
25939
25939
|
return { ...await ingest(store, envelope, options2), vcard: issues };
|
|
25940
25940
|
}, "ingestVcard");
|
|
25941
25941
|
|
|
25942
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25942
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/services/link-scorers/shared.js
|
|
25943
25943
|
var escaped = /* @__PURE__ */ __name((text2) => text2.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), "escaped");
|
|
25944
25944
|
var folded = /* @__PURE__ */ __name((text2) => text2.normalize("NFKC").toLowerCase().replace(/\s+/gu, " "), "folded");
|
|
25945
25945
|
var wholeWords = /* @__PURE__ */ __name((term) => new RegExp(`(?<![\\p{L}\\p{N}\\p{M}_])${escaped(normalizeVocabularyName(term))}(?![\\p{L}\\p{N}\\p{M}_])`, "u"), "wholeWords");
|
|
@@ -25962,8 +25962,8 @@ var namesProject = /* @__PURE__ */ __name((project2) => {
|
|
|
25962
25962
|
var chatRef2 = /* @__PURE__ */ __name((key, chat) => formatReference({ type: "chat", provider: key.provider, account: String(key.account), chat: String(chat) }), "chatRef");
|
|
25963
25963
|
var contactRef2 = /* @__PURE__ */ __name((provider, id2) => formatReference({ type: "contact", provider, id: String(id2) }), "contactRef");
|
|
25964
25964
|
var sameAccount = /* @__PURE__ */ __name((a, b) => a.provider === b.provider && String(a.account) === b.account, "sameAccount");
|
|
25965
|
-
var personRefOf = /* @__PURE__ */ __name(async (
|
|
25966
|
-
const person = await store.people.personOf({ provider, id: id2 });
|
|
25965
|
+
var personRefOf = /* @__PURE__ */ __name(async (input, provider, id2) => {
|
|
25966
|
+
const person = await remembered(input, `person-of\0${provider}\0${String(id2)}`, () => input.store.people.personOf({ provider, id: id2 }));
|
|
25967
25967
|
return person ? `person:${person.uid}` : void 0;
|
|
25968
25968
|
}, "personRefOf");
|
|
25969
25969
|
var projectsOf = /* @__PURE__ */ __name(async (store, person, project2) => (/* @__PURE__ */ new Set([
|
|
@@ -25980,8 +25980,10 @@ var identitiesIn = /* @__PURE__ */ __name(async (store, people, provider) => {
|
|
|
25980
25980
|
}
|
|
25981
25981
|
return found;
|
|
25982
25982
|
}, "identitiesIn");
|
|
25983
|
+
var remembered = /* @__PURE__ */ __name((input, key, read2) => input.remember ? input.remember(key, read2) : read2(), "remembered");
|
|
25984
|
+
var chatsWithOf = /* @__PURE__ */ __name((input, key, id2) => remembered(input, `chats-with\0${key.provider}\0${key.account}\0${id2}`, () => input.store.chats.chatsWith(key, id2)), "chatsWithOf");
|
|
25983
25985
|
|
|
25984
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25986
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/services/link-scorers/alias-hits.js
|
|
25985
25987
|
var SEARCH_LIMIT = 500;
|
|
25986
25988
|
var aliasWeight = /* @__PURE__ */ __name((hits) => hits >= 10 ? 0.55 : hits >= 3 ? 0.35 : 0, "aliasWeight");
|
|
25987
25989
|
var aliasHits = {
|
|
@@ -26030,7 +26032,7 @@ var aliasHits = {
|
|
|
26030
26032
|
}, "candidates")
|
|
26031
26033
|
};
|
|
26032
26034
|
|
|
26033
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26035
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/services/link-scorers/chat-senders.js
|
|
26034
26036
|
var WEIGHT = 0.5;
|
|
26035
26037
|
var LARGE_GROUP_WEIGHT = 0.2;
|
|
26036
26038
|
var LARGE_GROUP = 30;
|
|
@@ -26048,7 +26050,8 @@ var chatSenders = {
|
|
|
26048
26050
|
id: "chat-senders",
|
|
26049
26051
|
version: 3,
|
|
26050
26052
|
spreads: true,
|
|
26051
|
-
candidates: /* @__PURE__ */ __name(async (
|
|
26053
|
+
candidates: /* @__PURE__ */ __name(async (input) => {
|
|
26054
|
+
const { project: project2, confirmed, sources, signal } = input;
|
|
26052
26055
|
if (!project2)
|
|
26053
26056
|
return [];
|
|
26054
26057
|
const found = [];
|
|
@@ -26060,39 +26063,48 @@ var chatSenders = {
|
|
|
26060
26063
|
if (!key)
|
|
26061
26064
|
continue;
|
|
26062
26065
|
signal?.throwIfAborted();
|
|
26063
|
-
const
|
|
26064
|
-
|
|
26065
|
-
for (const message of page.items) {
|
|
26066
|
-
if (message.senderId === null || message.senderIsChat)
|
|
26067
|
-
continue;
|
|
26068
|
-
const id2 = String(message.senderId);
|
|
26069
|
-
senders.set(id2, { count: (senders.get(id2)?.count ?? 0) + 1, last: String(message.id) });
|
|
26070
|
-
}
|
|
26071
|
-
const size4 = Math.max((await store.roster.members(key, reference.chat)).length, senders.size);
|
|
26072
|
-
const weight = size4 > LARGE_GROUP ? LARGE_GROUP_WEIGHT : WEIGHT;
|
|
26073
|
-
const where = named2(await store.chats.chatTitle(key, reference.chat), chat);
|
|
26074
|
-
for (const [id2, { count: count4, last }] of senders) {
|
|
26075
|
-
if (size4 > SMALL_CHAT && count4 < MIN_MESSAGES)
|
|
26076
|
-
continue;
|
|
26077
|
-
const person = await personRefOf(store, key.provider, id2);
|
|
26078
|
-
if (!person || person === owner)
|
|
26079
|
-
continue;
|
|
26080
|
-
found.push({
|
|
26081
|
-
from: person,
|
|
26082
|
-
to: project2.ref,
|
|
26083
|
-
kind: "member-of",
|
|
26084
|
-
weight,
|
|
26085
|
-
why: `wrote ${count4} message${count4 === 1 ? "" : "s"} in ${where} (${size4} people) since ${since.slice(0, 10)}`,
|
|
26086
|
-
evidence: [chat, formatReference({ ...reference, type: "message", message: last })],
|
|
26087
|
-
identity: contactRef2(key.provider, id2)
|
|
26088
|
-
});
|
|
26089
|
-
}
|
|
26066
|
+
for (const one2 of await remembered(input, `chat-senders\0${chat}`, () => sendersOf2(input, chat, reference, key)))
|
|
26067
|
+
found.push(one2);
|
|
26090
26068
|
}
|
|
26091
26069
|
return found;
|
|
26092
26070
|
}, "candidates")
|
|
26093
26071
|
};
|
|
26072
|
+
var sendersOf2 = /* @__PURE__ */ __name(async (input, chat, reference, key) => {
|
|
26073
|
+
const { store, project: project2, since, owner } = input;
|
|
26074
|
+
if (!project2)
|
|
26075
|
+
return [];
|
|
26076
|
+
const found = [];
|
|
26077
|
+
const page = await store.messages.messages(key, reference.chat, { limit: READ_LIMIT, since, outgoing: false });
|
|
26078
|
+
const senders = /* @__PURE__ */ new Map();
|
|
26079
|
+
for (const message of page.items) {
|
|
26080
|
+
if (message.senderId === null || message.senderIsChat)
|
|
26081
|
+
continue;
|
|
26082
|
+
const id2 = String(message.senderId);
|
|
26083
|
+
senders.set(id2, { count: (senders.get(id2)?.count ?? 0) + 1, last: String(message.id) });
|
|
26084
|
+
}
|
|
26085
|
+
const size4 = Math.max((await store.roster.members(key, reference.chat)).length, senders.size);
|
|
26086
|
+
const weight = size4 > LARGE_GROUP ? LARGE_GROUP_WEIGHT : WEIGHT;
|
|
26087
|
+
const where = named2(await store.chats.chatTitle(key, reference.chat), chat);
|
|
26088
|
+
for (const [id2, { count: count4, last }] of senders) {
|
|
26089
|
+
if (size4 > SMALL_CHAT && count4 < MIN_MESSAGES)
|
|
26090
|
+
continue;
|
|
26091
|
+
const person = await personRefOf(input, key.provider, id2);
|
|
26092
|
+
if (!person || person === owner)
|
|
26093
|
+
continue;
|
|
26094
|
+
found.push({
|
|
26095
|
+
from: person,
|
|
26096
|
+
to: project2.ref,
|
|
26097
|
+
kind: "member-of",
|
|
26098
|
+
weight,
|
|
26099
|
+
why: `wrote ${count4} message${count4 === 1 ? "" : "s"} in ${where} (${size4} people) since ${since.slice(0, 10)}`,
|
|
26100
|
+
evidence: [chat, formatReference({ ...reference, type: "message", message: last })],
|
|
26101
|
+
identity: contactRef2(key.provider, id2)
|
|
26102
|
+
});
|
|
26103
|
+
}
|
|
26104
|
+
return found;
|
|
26105
|
+
}, "sendersOf");
|
|
26094
26106
|
|
|
26095
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26107
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/services/link-scorers/chat-title.js
|
|
26096
26108
|
var WEIGHT2 = 0.7;
|
|
26097
26109
|
var chatTitle = {
|
|
26098
26110
|
id: "chat-title",
|
|
@@ -26131,7 +26143,7 @@ var chatTitle = {
|
|
|
26131
26143
|
}, "candidates")
|
|
26132
26144
|
};
|
|
26133
26145
|
|
|
26134
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26146
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/services/link-scorers/email-domain.js
|
|
26135
26147
|
var WEIGHT3 = 0.3;
|
|
26136
26148
|
var CONTACTS = 500;
|
|
26137
26149
|
var MOST_PAIRS = 200;
|
|
@@ -26192,7 +26204,7 @@ var emailDomain = {
|
|
|
26192
26204
|
}, "candidates")
|
|
26193
26205
|
};
|
|
26194
26206
|
|
|
26195
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26207
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/services/link-scorers/mail-thread.js
|
|
26196
26208
|
var NAMED = 0.7;
|
|
26197
26209
|
var MEMBER_ONLY = 0.3;
|
|
26198
26210
|
var READ_LIMIT2 = 500;
|
|
@@ -26266,13 +26278,14 @@ var mailThread = {
|
|
|
26266
26278
|
}, "candidates")
|
|
26267
26279
|
};
|
|
26268
26280
|
|
|
26269
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26281
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/services/link-scorers/member-chats.js
|
|
26270
26282
|
var WEIGHT4 = 0.5;
|
|
26271
26283
|
var memberChats = {
|
|
26272
26284
|
id: "member-chats",
|
|
26273
26285
|
version: 1,
|
|
26274
26286
|
spreads: true,
|
|
26275
|
-
candidates: /* @__PURE__ */ __name(async (
|
|
26287
|
+
candidates: /* @__PURE__ */ __name(async (input) => {
|
|
26288
|
+
const { store, project: project2, confirmed, sources, owner, signal } = input;
|
|
26276
26289
|
if (!project2)
|
|
26277
26290
|
return [];
|
|
26278
26291
|
const people = confirmed.people.filter((person) => person !== owner);
|
|
@@ -26281,7 +26294,7 @@ var memberChats = {
|
|
|
26281
26294
|
const members = /* @__PURE__ */ new Map();
|
|
26282
26295
|
for (const { person, id: id2 } of await identitiesIn(store, people, key.provider)) {
|
|
26283
26296
|
signal?.throwIfAborted();
|
|
26284
|
-
for (const chat of await
|
|
26297
|
+
for (const chat of await chatsWithOf(input, key, id2)) {
|
|
26285
26298
|
if (chat.kind !== "group" && chat.kind !== "channel")
|
|
26286
26299
|
continue;
|
|
26287
26300
|
const held = members.get(String(chat.id)) ?? /* @__PURE__ */ new Set();
|
|
@@ -26307,27 +26320,25 @@ var memberChats = {
|
|
|
26307
26320
|
}, "candidates")
|
|
26308
26321
|
};
|
|
26309
26322
|
|
|
26310
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26323
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/services/link-scorers/member-dialog.js
|
|
26311
26324
|
var WEIGHT5 = 0.6;
|
|
26312
26325
|
var memberDialog = {
|
|
26313
26326
|
id: "member-dialog",
|
|
26314
26327
|
version: 2,
|
|
26315
26328
|
spreads: true,
|
|
26316
|
-
candidates: /* @__PURE__ */ __name(async (
|
|
26329
|
+
candidates: /* @__PURE__ */ __name(async (input) => {
|
|
26330
|
+
const { store, project: project2, confirmed, sources, owner, signal } = input;
|
|
26317
26331
|
if (!project2)
|
|
26318
26332
|
return [];
|
|
26319
26333
|
const people = confirmed.people.filter((person) => person !== owner);
|
|
26320
|
-
const projects = /* @__PURE__ */ new Map();
|
|
26321
26334
|
const found = [];
|
|
26322
26335
|
for (const key of sources)
|
|
26323
26336
|
for (const { person, id: id2 } of await identitiesIn(store, people, key.provider)) {
|
|
26324
26337
|
signal?.throwIfAborted();
|
|
26325
|
-
for (const chat of await
|
|
26338
|
+
for (const chat of await chatsWithOf(input, key, id2)) {
|
|
26326
26339
|
if (chat.kind !== "dialog")
|
|
26327
26340
|
continue;
|
|
26328
|
-
|
|
26329
|
-
projects.set(person, await projectsOf(store, person, project2.ref));
|
|
26330
|
-
const shared = projects.get(person) ?? 1;
|
|
26341
|
+
const shared = await remembered(input, `projects-of\0${person}`, () => projectsOf(store, person, project2.ref));
|
|
26331
26342
|
found.push({
|
|
26332
26343
|
from: chatRef2(key, chat.id),
|
|
26333
26344
|
to: project2.ref,
|
|
@@ -26342,7 +26353,7 @@ var memberDialog = {
|
|
|
26342
26353
|
}, "candidates")
|
|
26343
26354
|
};
|
|
26344
26355
|
|
|
26345
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26356
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/services/project-gathering-around.js
|
|
26346
26357
|
var storedMessageNeighbours = /* @__PURE__ */ __name((messages) => ({
|
|
26347
26358
|
async around(ref, window3) {
|
|
26348
26359
|
const at = parseLocator(ref);
|
|
@@ -26438,7 +26449,7 @@ var storedNeighbours = /* @__PURE__ */ __name((store) => {
|
|
|
26438
26449
|
};
|
|
26439
26450
|
}, "storedNeighbours");
|
|
26440
26451
|
|
|
26441
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26452
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/services/project-gathering-request.js
|
|
26442
26453
|
import { createHash as createHash3 } from "node:crypto";
|
|
26443
26454
|
var DAY2 = 864e5;
|
|
26444
26455
|
var MAX_TIME = 864e13;
|
|
@@ -26754,7 +26765,7 @@ var decodeCheckpoint = /* @__PURE__ */ __name((text2, plan) => {
|
|
|
26754
26765
|
return value;
|
|
26755
26766
|
}, "decodeCheckpoint");
|
|
26756
26767
|
|
|
26757
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26768
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/services/project-gathering.js
|
|
26758
26769
|
var terminal = /* @__PURE__ */ new Set(["done", "unavailable", "failed"]);
|
|
26759
26770
|
var PAGE2 = 20;
|
|
26760
26771
|
var PEOPLE = 20;
|
|
@@ -27158,7 +27169,7 @@ var peopleOf = /* @__PURE__ */ __name((items, senderOf) => {
|
|
|
27158
27169
|
return [...byKey.values()].sort((a, b) => b.items - a.items || a.name.localeCompare(b.name));
|
|
27159
27170
|
}, "peopleOf");
|
|
27160
27171
|
|
|
27161
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27172
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/services/meeting-project-candidate-matching.js
|
|
27162
27173
|
var normalizedText = /* @__PURE__ */ __name((text2) => text2.normalize("NFKC").toLowerCase().replace(/\s+/gu, " "), "normalizedText");
|
|
27163
27174
|
var termsOf = /* @__PURE__ */ __name((entry) => [
|
|
27164
27175
|
{ name: entry.name, kind: "canonical" },
|
|
@@ -27202,7 +27213,7 @@ var matchVocabularyTerms = /* @__PURE__ */ __name((catalog, texts) => {
|
|
|
27202
27213
|
return result.sort((a, b) => Number(a.entry.id) - Number(b.entry.id));
|
|
27203
27214
|
}, "matchVocabularyTerms");
|
|
27204
27215
|
|
|
27205
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27216
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/services/project-gathering-mentions.js
|
|
27206
27217
|
var KINDS = ["project", "tag", "topic"];
|
|
27207
27218
|
var findEvidenceMentions = /* @__PURE__ */ __name(async (vocabulary, gathering, options2 = {}) => {
|
|
27208
27219
|
if (typeof vocabulary?.vocabulary !== "function")
|
|
@@ -27257,7 +27268,7 @@ var findEvidenceMentions = /* @__PURE__ */ __name(async (vocabulary, gathering,
|
|
|
27257
27268
|
};
|
|
27258
27269
|
}, "findEvidenceMentions");
|
|
27259
27270
|
|
|
27260
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27271
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/services/stored-project-gathering.js
|
|
27261
27272
|
var storedChatCount = /* @__PURE__ */ __name((store) => async (account, chatId, { since, until }) => {
|
|
27262
27273
|
const window3 = { since: new Date(since).toISOString(), until: new Date(until - 1).toISOString() };
|
|
27263
27274
|
const [messages, newest, oldest] = await Promise.all([
|
|
@@ -27308,7 +27319,7 @@ var withOwner = /* @__PURE__ */ __name(async (store, reference) => {
|
|
|
27308
27319
|
throw new CliError("not_found", "person:me: no person is marked as you in the store; mark yours with `<messenger> <profile> contacts link <your id> me`", { reason: "person.no-owner" });
|
|
27309
27320
|
return `person:${owner.uid}`;
|
|
27310
27321
|
}, "withOwner");
|
|
27311
|
-
var
|
|
27322
|
+
var sendersOf3 = /* @__PURE__ */ __name((person) => person.identities.map((identity) => ({ provider: identity.provider, id: String(identity.id) })), "sendersOf");
|
|
27312
27323
|
var contactOf = /* @__PURE__ */ __name(async (store, contact) => {
|
|
27313
27324
|
const reference = await withOwner(store, contact);
|
|
27314
27325
|
if (!reference.startsWith("person:"))
|
|
@@ -27316,7 +27327,7 @@ var contactOf = /* @__PURE__ */ __name(async (store, contact) => {
|
|
|
27316
27327
|
const person = await store.people.personByUid(reference.slice("person:".length));
|
|
27317
27328
|
if (!person)
|
|
27318
27329
|
throw new CliError("not_found", `no person ${contact}`, { param: "contact" });
|
|
27319
|
-
const senders =
|
|
27330
|
+
const senders = sendersOf3(person);
|
|
27320
27331
|
const aliases = /* @__PURE__ */ new Set();
|
|
27321
27332
|
for (const identity of person.identities)
|
|
27322
27333
|
for (const account of identity.accounts) {
|
|
@@ -27377,7 +27388,7 @@ var memberLanesOf = /* @__PURE__ */ __name(async (store, project2, given, room,
|
|
|
27377
27388
|
for (const member of (await memberRefsOf(store, project2, includeProposed)).filter((one2) => !given.has(one2.ref))) {
|
|
27378
27389
|
const { ref: reference, ...marks } = member;
|
|
27379
27390
|
const person = await store.people.personByUid(reference.slice("person:".length));
|
|
27380
|
-
const senders = person ?
|
|
27391
|
+
const senders = person ? sendersOf3(person) : [];
|
|
27381
27392
|
const state = !senders.length ? "no-identity" : lanes.length >= room ? "member-limit" : "read";
|
|
27382
27393
|
if (state === "read")
|
|
27383
27394
|
lanes.push({ reference, senders });
|
|
@@ -27563,7 +27574,7 @@ var purposeHintOf = /* @__PURE__ */ __name((linked, rows, of) => {
|
|
|
27563
27574
|
return { chat: top.ref, relationship: link4.relationship, items, of };
|
|
27564
27575
|
}, "purposeHintOf");
|
|
27565
27576
|
|
|
27566
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27577
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/services/link-scorers/scan.js
|
|
27567
27578
|
var SCORERS = [chatTitle, aliasHits, memberChats, memberDialog, chatSenders, mailThread];
|
|
27568
27579
|
var PERSON_SCORERS = [emailDomain];
|
|
27569
27580
|
var SCAN_BOT = { bot: "memo-scan", kind: "rule" };
|
|
@@ -27626,7 +27637,8 @@ var scanProjectLinks = /* @__PURE__ */ __name(async (store, input) => {
|
|
|
27626
27637
|
since: new Date(since).toISOString(),
|
|
27627
27638
|
purposes: input.purposes ?? BUILT_IN_PURPOSES,
|
|
27628
27639
|
owner: owner ? `person:${owner.uid}` : null,
|
|
27629
|
-
...input.signal ? { signal: input.signal } : {}
|
|
27640
|
+
...input.signal ? { signal: input.signal } : {},
|
|
27641
|
+
remember: rememberer()
|
|
27630
27642
|
};
|
|
27631
27643
|
const scorers = input.scorers ?? (project2 ? SCORERS : PERSON_SCORERS);
|
|
27632
27644
|
const skipped = {
|
|
@@ -27646,13 +27658,13 @@ var scanProjectLinks = /* @__PURE__ */ __name(async (store, input) => {
|
|
|
27646
27658
|
return held;
|
|
27647
27659
|
}, "candidatesOf");
|
|
27648
27660
|
let seeds = scorerInput.confirmed;
|
|
27649
|
-
let collected = await collect(
|
|
27661
|
+
let collected = await collect(scorerInput, scorers, (scorer) => candidatesOf(scorer, seeds));
|
|
27650
27662
|
for (let hop = 0; hop < MAX_HOPS && scorers.some((one2) => one2.spreads); hop++) {
|
|
27651
27663
|
const grown = await seedsOf(store, seeds, collected.scored, threshold);
|
|
27652
27664
|
if (!grown)
|
|
27653
27665
|
break;
|
|
27654
27666
|
seeds = grown;
|
|
27655
|
-
collected = await collect(
|
|
27667
|
+
collected = await collect(scorerInput, scorers, (scorer) => candidatesOf(scorer, seeds));
|
|
27656
27668
|
}
|
|
27657
27669
|
skipped.nameOnly = collected.nameOnly;
|
|
27658
27670
|
skipped.unresolved = collected.unresolved;
|
|
@@ -27715,7 +27727,7 @@ var scanProjectLinks = /* @__PURE__ */ __name(async (store, input) => {
|
|
|
27715
27727
|
}
|
|
27716
27728
|
return { project: project2?.ref ?? null, proposals, skipped };
|
|
27717
27729
|
}, "scanProjectLinks");
|
|
27718
|
-
var collect = /* @__PURE__ */ __name(async (
|
|
27730
|
+
var collect = /* @__PURE__ */ __name(async (input, scorers, candidatesOf) => {
|
|
27719
27731
|
const pairs = /* @__PURE__ */ new Map();
|
|
27720
27732
|
const nameOnly = /* @__PURE__ */ new Set();
|
|
27721
27733
|
let unresolved = 0;
|
|
@@ -27723,7 +27735,7 @@ var collect = /* @__PURE__ */ __name(async (store, input, scorers, candidatesOf)
|
|
|
27723
27735
|
input.signal?.throwIfAborted();
|
|
27724
27736
|
for (const candidate of await candidatesOf(scorer)) {
|
|
27725
27737
|
const key = pairKey(candidate);
|
|
27726
|
-
const verdict = await admissible(
|
|
27738
|
+
const verdict = await admissible(input, candidate);
|
|
27727
27739
|
if (verdict === "owner")
|
|
27728
27740
|
continue;
|
|
27729
27741
|
if (verdict === "name-only") {
|
|
@@ -27782,7 +27794,7 @@ var seedsOf = /* @__PURE__ */ __name(async (store, seeds, scored, threshold) =>
|
|
|
27782
27794
|
}
|
|
27783
27795
|
return chats.size + people.size === size4 ? void 0 : { chats: [...chats].sort(), people: [...people].sort() };
|
|
27784
27796
|
}, "seedsOf");
|
|
27785
|
-
var admissible = /* @__PURE__ */ __name(async (
|
|
27797
|
+
var admissible = /* @__PURE__ */ __name(async (input, candidate) => {
|
|
27786
27798
|
if (candidate.from === candidate.to || !Number.isFinite(candidate.weight))
|
|
27787
27799
|
return "unresolved";
|
|
27788
27800
|
if (input.project && candidate.to !== input.project.ref && !candidate.to.startsWith("person:"))
|
|
@@ -27793,8 +27805,7 @@ var admissible = /* @__PURE__ */ __name(async (store, input, candidate) => {
|
|
|
27793
27805
|
const identity = candidate.identity === void 0 ? void 0 : referenceOf(candidate.identity);
|
|
27794
27806
|
if (identity?.type !== "contact")
|
|
27795
27807
|
return "name-only";
|
|
27796
|
-
|
|
27797
|
-
return person !== void 0 && `person:${person.uid}` === candidate.from ? "ok" : "name-only";
|
|
27808
|
+
return await personRefOf(input, identity.provider, identity.id) === candidate.from ? "ok" : "name-only";
|
|
27798
27809
|
}
|
|
27799
27810
|
if (candidate.from.startsWith("chat:")) {
|
|
27800
27811
|
const chat = referenceOf(candidate.from);
|
|
@@ -27802,6 +27813,14 @@ var admissible = /* @__PURE__ */ __name(async (store, input, candidate) => {
|
|
|
27802
27813
|
}
|
|
27803
27814
|
return "unresolved";
|
|
27804
27815
|
}, "admissible");
|
|
27816
|
+
var rememberer = /* @__PURE__ */ __name(() => {
|
|
27817
|
+
const held = /* @__PURE__ */ new Map();
|
|
27818
|
+
return (key, read2) => {
|
|
27819
|
+
const found = held.get(key) ?? read2();
|
|
27820
|
+
held.set(key, found);
|
|
27821
|
+
return found;
|
|
27822
|
+
};
|
|
27823
|
+
}, "rememberer");
|
|
27805
27824
|
var referenceOf = /* @__PURE__ */ __name((text2) => {
|
|
27806
27825
|
try {
|
|
27807
27826
|
return parseReference(text2);
|
|
@@ -27811,18 +27830,18 @@ var referenceOf = /* @__PURE__ */ __name((text2) => {
|
|
|
27811
27830
|
}, "referenceOf");
|
|
27812
27831
|
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");
|
|
27813
27832
|
|
|
27814
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27833
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/services/media-archive.js
|
|
27815
27834
|
import { setTimeout as sleep3 } from "node:timers/promises";
|
|
27816
27835
|
|
|
27817
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27836
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/services/media-archive-files.js
|
|
27818
27837
|
import { lstat } from "node:fs/promises";
|
|
27819
27838
|
|
|
27820
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27839
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-store.js
|
|
27821
27840
|
import { createHash as createHash5, randomUUID as randomUUID2 } from "node:crypto";
|
|
27822
27841
|
import { open as open2, rename as rename2, unlink as unlink2 } from "node:fs/promises";
|
|
27823
27842
|
import { join as join3 } from "node:path";
|
|
27824
27843
|
|
|
27825
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27844
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-metadata.js
|
|
27826
27845
|
import { createHash as createHash4 } from "node:crypto";
|
|
27827
27846
|
var metadataLimit = 16384;
|
|
27828
27847
|
var partialIdentity = /* @__PURE__ */ __name((locator) => JSON.stringify([locator.provider, locator.account, locator.occurrenceId, locator.assetId]), "partialIdentity");
|
|
@@ -27882,7 +27901,7 @@ var readPartialMetadata = /* @__PURE__ */ __name(async (path, locator, maxBytes,
|
|
|
27882
27901
|
}
|
|
27883
27902
|
}, "readPartialMetadata");
|
|
27884
27903
|
|
|
27885
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27904
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-writer.js
|
|
27886
27905
|
import { randomUUID } from "node:crypto";
|
|
27887
27906
|
import { open, rename, unlink } from "node:fs/promises";
|
|
27888
27907
|
import { join as join2 } from "node:path";
|
|
@@ -27974,7 +27993,7 @@ var partialWriter = /* @__PURE__ */ __name(async (input) => {
|
|
|
27974
27993
|
};
|
|
27975
27994
|
}, "partialWriter");
|
|
27976
27995
|
|
|
27977
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27996
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-store.js
|
|
27978
27997
|
var NativeRecordingPartialStore = class {
|
|
27979
27998
|
static {
|
|
27980
27999
|
__name(this, "NativeRecordingPartialStore");
|
|
@@ -28081,12 +28100,12 @@ var NativeRecordingPartialStore = class {
|
|
|
28081
28100
|
}
|
|
28082
28101
|
};
|
|
28083
28102
|
|
|
28084
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28103
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication.js
|
|
28085
28104
|
import { createHash as createHash6 } from "node:crypto";
|
|
28086
28105
|
import { link as link2 } from "node:fs/promises";
|
|
28087
28106
|
import { basename as basename2, dirname as dirname2, join as join5, resolve } from "node:path";
|
|
28088
28107
|
|
|
28089
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28108
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication-files.js
|
|
28090
28109
|
import { unlink as unlink3 } from "node:fs/promises";
|
|
28091
28110
|
var verifiedPublicationFile = /* @__PURE__ */ __name(async (path, expected2, signal, writable = false) => {
|
|
28092
28111
|
signal?.throwIfAborted();
|
|
@@ -28121,7 +28140,7 @@ var commitPublication = /* @__PURE__ */ __name(async (root, partialPath, finalPa
|
|
|
28121
28140
|
signal?.throwIfAborted();
|
|
28122
28141
|
}, "commitPublication");
|
|
28123
28142
|
|
|
28124
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28143
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication-journal.js
|
|
28125
28144
|
import { randomUUID as randomUUID3 } from "node:crypto";
|
|
28126
28145
|
import { open as open3, rename as rename3, unlink as unlink4 } from "node:fs/promises";
|
|
28127
28146
|
import { join as join4 } from "node:path";
|
|
@@ -28194,7 +28213,7 @@ var writePublicationJournal = /* @__PURE__ */ __name(async (root, path, prefix,
|
|
|
28194
28213
|
}
|
|
28195
28214
|
}, "writePublicationJournal");
|
|
28196
28215
|
|
|
28197
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28216
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication.js
|
|
28198
28217
|
var NativeRecordingPublication = class {
|
|
28199
28218
|
static {
|
|
28200
28219
|
__name(this, "NativeRecordingPublication");
|
|
@@ -28267,7 +28286,7 @@ var NativeRecordingPublication = class {
|
|
|
28267
28286
|
}
|
|
28268
28287
|
};
|
|
28269
28288
|
|
|
28270
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28289
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/services/media-archive-manifest.js
|
|
28271
28290
|
import { createHash as createHash7 } from "node:crypto";
|
|
28272
28291
|
import { readdir } from "node:fs/promises";
|
|
28273
28292
|
import { isAbsolute, join as join6, resolve as resolve2 } from "node:path";
|
|
@@ -28354,7 +28373,7 @@ var commitMediaEntry = /* @__PURE__ */ __name((root, one2, beforePublish) => wri
|
|
|
28354
28373
|
beforePublish
|
|
28355
28374
|
}), "commitMediaEntry");
|
|
28356
28375
|
|
|
28357
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28376
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/services/media-archive-files.js
|
|
28358
28377
|
var validator = '"media-completed-v1"';
|
|
28359
28378
|
var maximumFileBytes = 64 * 1024 * 1024 * 1024;
|
|
28360
28379
|
var archiveMediaFile = /* @__PURE__ */ __name(async (root, identity, kind, file2, beforeWrite, signal, metadata = {}) => {
|
|
@@ -28455,7 +28474,7 @@ var archiveMediaFile = /* @__PURE__ */ __name(async (root, identity, kind, file2
|
|
|
28455
28474
|
return entry;
|
|
28456
28475
|
}, "archiveMediaFile");
|
|
28457
28476
|
|
|
28458
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28477
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/services/media-archive-locks.js
|
|
28459
28478
|
import { mkdir, realpath } from "node:fs/promises";
|
|
28460
28479
|
import { join as join7, resolve as resolve3 } from "node:path";
|
|
28461
28480
|
var archiveLocations = /* @__PURE__ */ __name(async (initial, signal) => {
|
|
@@ -28522,7 +28541,7 @@ var withMediaArchiveLocks = /* @__PURE__ */ __name(async (directory2, signal, ru
|
|
|
28522
28541
|
throw new CliError("validation_error", "archive locations changed during locking; run the command again");
|
|
28523
28542
|
}, "withMediaArchiveLocks");
|
|
28524
28543
|
|
|
28525
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28544
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/services/media-archive.js
|
|
28526
28545
|
var validateMediaSince = /* @__PURE__ */ __name((value, flag = "--since-time") => {
|
|
28527
28546
|
if (value === void 0)
|
|
28528
28547
|
return void 0;
|
|
@@ -28675,7 +28694,7 @@ var archiveMedia = /* @__PURE__ */ __name(async (ports, options2) => {
|
|
|
28675
28694
|
}, { create: true });
|
|
28676
28695
|
}, "archiveMedia");
|
|
28677
28696
|
|
|
28678
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28697
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/services/media-archive-move.js
|
|
28679
28698
|
import { realpath as realpath2, unlink as unlink5 } from "node:fs/promises";
|
|
28680
28699
|
import { basename as basename3, dirname as dirname3, join as join8, resolve as resolve4 } from "node:path";
|
|
28681
28700
|
var canonicalDestination = /* @__PURE__ */ __name(async (directory2) => {
|
|
@@ -28828,7 +28847,7 @@ var moveMediaArchive = /* @__PURE__ */ __name(async (options2) => {
|
|
|
28828
28847
|
}, { additional: [target2], createAdditional: !options2.dryRun });
|
|
28829
28848
|
}, "moveMediaArchive");
|
|
28830
28849
|
|
|
28831
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28850
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/services/model-downloads.js
|
|
28832
28851
|
var bytesOf2 = /* @__PURE__ */ __name((model) => model.files.reduce((sum2, file2) => sum2 + file2.bytes, 0), "bytesOf");
|
|
28833
28852
|
var nativeRuntime = /* @__PURE__ */ __name(async ({ env, progress = /* @__PURE__ */ __name(() => {
|
|
28834
28853
|
}, "progress") }) => {
|
|
@@ -28851,7 +28870,7 @@ var downloadTextModel = /* @__PURE__ */ __name(async (id2, { env, progress = /*
|
|
|
28851
28870
|
}
|
|
28852
28871
|
await nativeRuntime({ env, progress });
|
|
28853
28872
|
progress(`${model.id}: loading it once to check it works`);
|
|
28854
|
-
const { openEmbedder: openEmbedder2 } = await import("./embed-
|
|
28873
|
+
const { openEmbedder: openEmbedder2 } = await import("./embed-RUY3UIVC.js");
|
|
28855
28874
|
const embedder = await openEmbedder2(model, directory2);
|
|
28856
28875
|
try {
|
|
28857
28876
|
const [vector] = await embedder.embed(["check"], "query");
|
|
@@ -28872,7 +28891,7 @@ var downloadRerankModel = /* @__PURE__ */ __name(async (id2, { env, progress = /
|
|
|
28872
28891
|
}
|
|
28873
28892
|
await nativeRuntime({ env, progress });
|
|
28874
28893
|
progress(`${model.id}: loading it once to check it works`);
|
|
28875
|
-
const { openReranker } = await import("./rerank-
|
|
28894
|
+
const { openReranker } = await import("./rerank-VKUSF3DM.js");
|
|
28876
28895
|
const reranker = await openReranker(model, directory2);
|
|
28877
28896
|
try {
|
|
28878
28897
|
await reranker.score("check", ["check"]);
|
|
@@ -28890,7 +28909,7 @@ var downloadImageModel = /* @__PURE__ */ __name(async (id2, { env, progress = /*
|
|
|
28890
28909
|
await installFiles(placedImage(model, directory2), { progress, ...bytes2 ? { bytes: bytes2 } : {} });
|
|
28891
28910
|
}
|
|
28892
28911
|
progress(`${model.id}: loading it once to check it works`);
|
|
28893
|
-
const { openPictureEmbedder } = await import("./embedder-
|
|
28912
|
+
const { openPictureEmbedder } = await import("./embedder-P6WBMEGP.js");
|
|
28894
28913
|
const embedder = await openPictureEmbedder(model, directory2);
|
|
28895
28914
|
try {
|
|
28896
28915
|
const vector = await embedder.embedQuery("check");
|
|
@@ -28902,7 +28921,7 @@ var downloadImageModel = /* @__PURE__ */ __name(async (id2, { env, progress = /*
|
|
|
28902
28921
|
return { model, directory: directory2 };
|
|
28903
28922
|
}, "downloadImageModel");
|
|
28904
28923
|
|
|
28905
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28924
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/domain/money-words.js
|
|
28906
28925
|
var MONEY_REQUEST = "money-request";
|
|
28907
28926
|
var MONEY_DONE = "money-done";
|
|
28908
28927
|
var PROMISE = "promise";
|
|
@@ -28936,10 +28955,10 @@ var MONEY_WORDS = [
|
|
|
28936
28955
|
}
|
|
28937
28956
|
];
|
|
28938
28957
|
|
|
28939
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28958
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/services/money-words.js
|
|
28940
28959
|
var moneyClassesOf = /* @__PURE__ */ __name((text2) => listsHit(text2, MONEY_WORDS), "moneyClassesOf");
|
|
28941
28960
|
|
|
28942
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28961
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/domain/status-words.js
|
|
28943
28962
|
var words2 = /* @__PURE__ */ __name((forms) => new RegExp(`(?<![\\p{L}\\p{N}])(?:${forms.join("|")})(?![\\p{L}\\p{N}])`, "iu"), "words");
|
|
28944
28963
|
var MONEY_DONE_FORMS = words2([
|
|
28945
28964
|
"\u043E\u043F\u043B\u0430\u0442\u0438\u043B[\u0430\u0438]?",
|
|
@@ -28979,7 +28998,7 @@ var PROMISE_FORMS = words2([
|
|
|
28979
28998
|
"estar\xE1 listo"
|
|
28980
28999
|
]);
|
|
28981
29000
|
|
|
28982
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29001
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/services/project-status/items.js
|
|
28983
29002
|
var EXCERPT_CHARS = 80;
|
|
28984
29003
|
var excerpt2 = /* @__PURE__ */ __name((text2) => {
|
|
28985
29004
|
const flat = text2.replace(/\s+/g, " ").trim();
|
|
@@ -29001,7 +29020,7 @@ var whoOf = /* @__PURE__ */ __name((message) => ({
|
|
|
29001
29020
|
var fromOwner = /* @__PURE__ */ __name((message) => message.outgoing === true, "fromOwner");
|
|
29002
29021
|
var day = /* @__PURE__ */ __name((at) => new Date(at).toISOString().slice(0, 10), "day");
|
|
29003
29022
|
|
|
29004
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29023
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/services/project-status/signals/amounts.js
|
|
29005
29024
|
var MONEY = DEFAULT_TASK_CATEGORIES.filter((category) => category.name === "money");
|
|
29006
29025
|
var verbOf = /* @__PURE__ */ __name((text2) => {
|
|
29007
29026
|
if (MONEY_DONE_FORMS.test(text2))
|
|
@@ -29082,7 +29101,7 @@ var amounts = {
|
|
|
29082
29101
|
attention: /* @__PURE__ */ __name((items) => items.flatMap((item2) => item2.chat !== null && item2.data.state === "asked" ? [{ chat: item2.chat, weight: 2, why: "money asked" }] : []), "attention")
|
|
29083
29102
|
};
|
|
29084
29103
|
|
|
29085
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29104
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/services/project-status/signals/children.js
|
|
29086
29105
|
var children = {
|
|
29087
29106
|
id: "children",
|
|
29088
29107
|
version: 1,
|
|
@@ -29111,7 +29130,7 @@ var children = {
|
|
|
29111
29130
|
}, "read")
|
|
29112
29131
|
};
|
|
29113
29132
|
|
|
29114
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29133
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/services/project-status/signals/coverage.js
|
|
29115
29134
|
var coverage = {
|
|
29116
29135
|
id: "coverage",
|
|
29117
29136
|
version: 1,
|
|
@@ -29140,7 +29159,7 @@ var coverage = {
|
|
|
29140
29159
|
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")
|
|
29141
29160
|
};
|
|
29142
29161
|
|
|
29143
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29162
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/services/project-status/signals/payments.js
|
|
29144
29163
|
var holding = /* @__PURE__ */ __name((row) => row.review !== "rejected", "holding");
|
|
29145
29164
|
var item = /* @__PURE__ */ __name((row, at, data) => ({
|
|
29146
29165
|
signal: "payments",
|
|
@@ -29190,7 +29209,7 @@ var payments = {
|
|
|
29190
29209
|
}, "read")
|
|
29191
29210
|
};
|
|
29192
29211
|
|
|
29193
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29212
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/services/project-status/signals/promises.js
|
|
29194
29213
|
var PATTERNS_PER_CHAT = 3;
|
|
29195
29214
|
var DAY3 = 864e5;
|
|
29196
29215
|
var KINDS2 = /* @__PURE__ */ new Set(["promise", "request"]);
|
|
@@ -29279,7 +29298,7 @@ var promises = {
|
|
|
29279
29298
|
}, "read")
|
|
29280
29299
|
};
|
|
29281
29300
|
|
|
29282
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29301
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/services/project-status/signals/questions.js
|
|
29283
29302
|
var PER_SIDE = 5;
|
|
29284
29303
|
var WEEK = 7 * 864e5;
|
|
29285
29304
|
var NOBODY = /* @__PURE__ */ new Set();
|
|
@@ -29310,7 +29329,7 @@ var questions2 = {
|
|
|
29310
29329
|
}, "attention")
|
|
29311
29330
|
};
|
|
29312
29331
|
|
|
29313
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29332
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/services/project-status/signals/reply-next.js
|
|
29314
29333
|
var targetOf = /* @__PURE__ */ __name((message, chat, owners) => {
|
|
29315
29334
|
const byId2 = /* @__PURE__ */ __name((id2) => chat.messages.find((one2) => one2.id === id2), "byId");
|
|
29316
29335
|
const quoted = message.replyTo ?? (message.replyToId === void 0 ? void 0 : byId2(message.replyToId));
|
|
@@ -29378,7 +29397,7 @@ var replyNext = {
|
|
|
29378
29397
|
attention: /* @__PURE__ */ __name((items) => items.flatMap((item2) => item2.chat !== null && item2.data.next === "owner" ? [{ chat: item2.chat, weight: 2, why: "your move" }] : []), "attention")
|
|
29379
29398
|
};
|
|
29380
29399
|
|
|
29381
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29400
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/services/project-status/signals/topics.js
|
|
29382
29401
|
var escaped2 = /* @__PURE__ */ __name((text2) => text2.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), "escaped");
|
|
29383
29402
|
var wholeWord = /* @__PURE__ */ __name((word) => new RegExp(`(?<![\\p{L}\\p{N}])${escaped2(word)}(?![\\p{L}\\p{N}])`, "u"), "wholeWord");
|
|
29384
29403
|
var matcherOf = /* @__PURE__ */ __name((query) => {
|
|
@@ -29424,7 +29443,7 @@ var topics = {
|
|
|
29424
29443
|
}, "read")
|
|
29425
29444
|
};
|
|
29426
29445
|
|
|
29427
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29446
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/services/project-status/signals/index.js
|
|
29428
29447
|
var STATUS_SIGNALS = [
|
|
29429
29448
|
replyNext,
|
|
29430
29449
|
questions2,
|
|
@@ -29436,7 +29455,7 @@ var STATUS_SIGNALS = [
|
|
|
29436
29455
|
children
|
|
29437
29456
|
];
|
|
29438
29457
|
|
|
29439
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29458
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/services/project-status/index.js
|
|
29440
29459
|
var DAY4 = 864e5;
|
|
29441
29460
|
var STATUS_WINDOW = 300;
|
|
29442
29461
|
var STATUS_CHATS = 16;
|
|
@@ -29625,7 +29644,7 @@ var projectStatus = /* @__PURE__ */ __name(async (store, input) => {
|
|
|
29625
29644
|
};
|
|
29626
29645
|
}, "projectStatus");
|
|
29627
29646
|
|
|
29628
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29647
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/services/account.js
|
|
29629
29648
|
var accountService = /* @__PURE__ */ __name((deps) => {
|
|
29630
29649
|
const online = /* @__PURE__ */ __name(async (command) => {
|
|
29631
29650
|
if (deps.offline)
|
|
@@ -29697,7 +29716,7 @@ var accountService = /* @__PURE__ */ __name((deps) => {
|
|
|
29697
29716
|
};
|
|
29698
29717
|
}, "accountService");
|
|
29699
29718
|
|
|
29700
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29719
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/domain/send-time.js
|
|
29701
29720
|
var MINUTE = 6e4;
|
|
29702
29721
|
var YEAR = 365 * 24 * 60 * MINUTE;
|
|
29703
29722
|
var DELAY = /^(\d+)(m|h|d)$/;
|
|
@@ -29716,7 +29735,7 @@ var sendTime = /* @__PURE__ */ __name((value, now = Date.now(), flag = "--at-tim
|
|
|
29716
29735
|
return new Date(at - at % MINUTE).toISOString();
|
|
29717
29736
|
}, "sendTime");
|
|
29718
29737
|
|
|
29719
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29738
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/services/admin.js
|
|
29720
29739
|
var recordMembership = /* @__PURE__ */ __name(async (deps, operationId, done2, change, fix, write2) => {
|
|
29721
29740
|
try {
|
|
29722
29741
|
const held = await accountStoreIfOpen(deps);
|
|
@@ -29963,7 +29982,7 @@ var linkLimits = /* @__PURE__ */ __name(({ approval, expires, maxUses }) => {
|
|
|
29963
29982
|
return expires === void 0 ? void 0 : sendTime(expires, Date.now(), "--expire-time");
|
|
29964
29983
|
}, "linkLimits");
|
|
29965
29984
|
|
|
29966
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29985
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/services/mail-search.js
|
|
29967
29986
|
var THREADS_PAGE = 500;
|
|
29968
29987
|
var threadsOf = /* @__PURE__ */ __name(async (store, key) => {
|
|
29969
29988
|
const account = await store.accounts.storedAccount(key).catch(() => void 0);
|
|
@@ -30042,7 +30061,7 @@ var readMail = /* @__PURE__ */ __name(async (store, locator, { before: before2 =
|
|
|
30042
30061
|
return thread.slice(Math.max(0, at - before2), at + after + 1).map((hit) => hit.id === message ? { ...hit, anchor: true } : hit);
|
|
30043
30062
|
}, "readMail");
|
|
30044
30063
|
|
|
30045
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30064
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/services/search-kind.js
|
|
30046
30065
|
var NO_MAIL = "no_mail";
|
|
30047
30066
|
var MAIL = "email";
|
|
30048
30067
|
var listContextOf = /* @__PURE__ */ __name(async (store, account, app, stored) => {
|
|
@@ -30089,7 +30108,7 @@ var accountsOfKind = /* @__PURE__ */ __name((kind, chosen, held, explicit, comma
|
|
|
30089
30108
|
return chosenMail.map(({ provider, account }) => ({ provider, account }));
|
|
30090
30109
|
}, "accountsOfKind");
|
|
30091
30110
|
|
|
30092
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30111
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/services/messages-search.js
|
|
30093
30112
|
var MAIL_FIELDS = /* @__PURE__ */ new Set(["to", "cc", "bcc", "subject", "mailbox", "label", "is"]);
|
|
30094
30113
|
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");
|
|
30095
30114
|
var prepareLucene = /* @__PURE__ */ __name(async (store, account, request, messenger) => {
|
|
@@ -30437,7 +30456,7 @@ var statsLucene = /* @__PURE__ */ __name(async (store, account, request, messeng
|
|
|
30437
30456
|
};
|
|
30438
30457
|
}, "statsLucene");
|
|
30439
30458
|
|
|
30440
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30459
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/services/rankings-selection.js
|
|
30441
30460
|
var RANKING_SELECTION_BYTES = 64 * 1024;
|
|
30442
30461
|
var object2 = /* @__PURE__ */ __name((value) => value !== null && typeof value === "object" && !Array.isArray(value) ? value : void 0, "object");
|
|
30443
30462
|
function invalid(message = "ranking selection is invalid \u2014 obtain a new drilldown from stats top") {
|
|
@@ -30606,7 +30625,7 @@ var readRankingSelection = /* @__PURE__ */ __name(async (store, input) => {
|
|
|
30606
30625
|
};
|
|
30607
30626
|
}, "readRankingSelection");
|
|
30608
30627
|
|
|
30609
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30628
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/services/search-record.js
|
|
30610
30629
|
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");
|
|
30611
30630
|
var searchRecordOf = /* @__PURE__ */ __name((command, params) => ({
|
|
30612
30631
|
command,
|
|
@@ -30616,7 +30635,7 @@ var searchRecordOf = /* @__PURE__ */ __name((command, params) => ({
|
|
|
30616
30635
|
fieldsVersion: FIELD_VERSION
|
|
30617
30636
|
}), "searchRecordOf");
|
|
30618
30637
|
|
|
30619
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30638
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/services/admin-statistics.js
|
|
30620
30639
|
function invalid2(message) {
|
|
30621
30640
|
throw new CliError("validation_error", message);
|
|
30622
30641
|
}
|
|
@@ -30910,7 +30929,7 @@ var adminStatisticsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
30910
30929
|
}, "evidence")
|
|
30911
30930
|
}), "adminStatisticsService");
|
|
30912
30931
|
|
|
30913
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30932
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/services/archive-gaps.js
|
|
30914
30933
|
import { createHash as createHash8, randomUUID as randomUUID4 } from "node:crypto";
|
|
30915
30934
|
var GAP_BOUNDS = { maxGaps: 5, limit: 500, timeMs: 3e4 };
|
|
30916
30935
|
var validateRepair = /* @__PURE__ */ __name((messenger, options2) => {
|
|
@@ -31047,16 +31066,16 @@ var gapsService = /* @__PURE__ */ __name((deps) => {
|
|
|
31047
31066
|
return { plan, repair };
|
|
31048
31067
|
}, "gapsService");
|
|
31049
31068
|
|
|
31050
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31069
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/services/attachments.js
|
|
31051
31070
|
import { createHash as createHash10 } from "node:crypto";
|
|
31052
31071
|
import { constants as constants2, mkdirSync as mkdirSync2 } from "node:fs";
|
|
31053
31072
|
import { lstat as lstat4, open as open6, readFile, stat as stat2 } from "node:fs/promises";
|
|
31054
31073
|
|
|
31055
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31074
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/attachments/directory.js
|
|
31056
31075
|
import { lstat as lstat2, readdir as readdir2, realpath as realpath3 } from "node:fs/promises";
|
|
31057
31076
|
import { basename as basename5, join as join9, relative as relative2, sep as sep2 } from "node:path";
|
|
31058
31077
|
|
|
31059
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31078
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/sends/upload.js
|
|
31060
31079
|
import { openAsBlob, realpathSync } from "node:fs";
|
|
31061
31080
|
import { open as open4, stat } from "node:fs/promises";
|
|
31062
31081
|
import { basename as basename4, dirname as dirname4, extname as extname3, isAbsolute as isAbsolute2, relative, resolve as resolve5, sep } from "node:path";
|
|
@@ -31258,7 +31277,7 @@ var readStickerFile = /* @__PURE__ */ __name(async (path, maxBytes, read2) => {
|
|
|
31258
31277
|
return { name, source };
|
|
31259
31278
|
}, "readStickerFile");
|
|
31260
31279
|
|
|
31261
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31280
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/attachments/directory.js
|
|
31262
31281
|
var MAX_FILES = 1e4;
|
|
31263
31282
|
var directoryPaths = /* @__PURE__ */ __name(async (store, chat, directory2, app, env) => {
|
|
31264
31283
|
if (refusedPlace(directory2, app, env))
|
|
@@ -32368,7 +32387,7 @@ function imageSize(input) {
|
|
|
32368
32387
|
}
|
|
32369
32388
|
__name(imageSize, "imageSize");
|
|
32370
32389
|
|
|
32371
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32390
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/attachments/ocr.js
|
|
32372
32391
|
var MAX_PAGES = 20;
|
|
32373
32392
|
var MAX_PIXELS = 2e7;
|
|
32374
32393
|
var cancelled2 = /* @__PURE__ */ __name((signal) => {
|
|
@@ -32519,7 +32538,7 @@ var ocrPdf = /* @__PURE__ */ __name(async (bytes2, pipeline2, load, signal) => {
|
|
|
32519
32538
|
}
|
|
32520
32539
|
}, "ocrPdf");
|
|
32521
32540
|
|
|
32522
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32541
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/attachments/pdf-preview.js
|
|
32523
32542
|
var pdfPreview = /* @__PURE__ */ __name(async (bytes2, page, signal, load = importEngine, env = process.env) => {
|
|
32524
32543
|
const limits = pdfPreviewLimits(env);
|
|
32525
32544
|
const cancelled4 = /* @__PURE__ */ __name(() => {
|
|
@@ -32596,7 +32615,7 @@ var pdfPreview = /* @__PURE__ */ __name(async (bytes2, page, signal, load = impo
|
|
|
32596
32615
|
}
|
|
32597
32616
|
}, "pdfPreview");
|
|
32598
32617
|
|
|
32599
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32618
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/attachments/transfer.js
|
|
32600
32619
|
import { createHash as createHash9 } from "node:crypto";
|
|
32601
32620
|
import { constants } from "node:fs";
|
|
32602
32621
|
import { lstat as lstat3, open as open5 } from "node:fs/promises";
|
|
@@ -32704,7 +32723,7 @@ var transferMime = /* @__PURE__ */ __name((head, hint, name = null) => {
|
|
|
32704
32723
|
return hint !== null && /^[a-z0-9.+-]+\/[a-z0-9.+-]+$/i.test(hint) ? hint : "application/octet-stream";
|
|
32705
32724
|
}, "transferMime");
|
|
32706
32725
|
|
|
32707
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32726
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/services/file-download.js
|
|
32708
32727
|
import { createWriteStream, mkdirSync } from "node:fs";
|
|
32709
32728
|
import { link as link3, rm } from "node:fs/promises";
|
|
32710
32729
|
import { join as join10, resolve as resolve6 } from "node:path";
|
|
@@ -32818,7 +32837,7 @@ var save = /* @__PURE__ */ __name(async (file2, directory2, fallbackName, { uniq
|
|
|
32818
32837
|
}
|
|
32819
32838
|
}, "save");
|
|
32820
32839
|
|
|
32821
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32840
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/services/attachments.js
|
|
32822
32841
|
var ATTACHMENT_QUERY = {
|
|
32823
32842
|
entity: "attachment",
|
|
32824
32843
|
backend: "sql",
|
|
@@ -33241,7 +33260,7 @@ var attachmentsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
33241
33260
|
}, "setText")
|
|
33242
33261
|
}), "attachmentsService");
|
|
33243
33262
|
|
|
33244
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33263
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/services/chat-documents.js
|
|
33245
33264
|
var chatDocumentsService = /* @__PURE__ */ __name((deps) => ({
|
|
33246
33265
|
list: /* @__PURE__ */ __name(async (chat, { limit, offset, ref }) => {
|
|
33247
33266
|
const store = await accountStore(deps);
|
|
@@ -33271,7 +33290,7 @@ var chatDocumentsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
33271
33290
|
}, "list")
|
|
33272
33291
|
}), "chatDocumentsService");
|
|
33273
33292
|
|
|
33274
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33293
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/services/retention.js
|
|
33275
33294
|
var observationDuration = /* @__PURE__ */ __name((text2, flag) => {
|
|
33276
33295
|
const match = /^(\d+(?:\.\d+)?)([smhdw])$/.exec(text2);
|
|
33277
33296
|
const units2 = { s: 1e3, m: 6e4, h: 36e5, d: 864e5, w: 6048e5 };
|
|
@@ -33358,7 +33377,7 @@ var isRetentionSelection = /* @__PURE__ */ __name((selection) => {
|
|
|
33358
33377
|
}
|
|
33359
33378
|
}, "isRetentionSelection");
|
|
33360
33379
|
|
|
33361
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33380
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/services/counters.js
|
|
33362
33381
|
var counterFields = /* @__PURE__ */ __name((text2 = "views,reactions,comments") => {
|
|
33363
33382
|
const fields = text2.split(",").map((one2) => one2.trim());
|
|
33364
33383
|
if (!fields.length || fields.some((one2) => !COUNTER_FIELDS.includes(one2)) || new Set(fields).size !== fields.length)
|
|
@@ -33565,7 +33584,7 @@ var countersService = /* @__PURE__ */ __name((deps) => {
|
|
|
33565
33584
|
};
|
|
33566
33585
|
}, "countersService");
|
|
33567
33586
|
|
|
33568
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33587
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/services/search-refresh.js
|
|
33569
33588
|
var SYNC_KEY = "messages.sync-first";
|
|
33570
33589
|
var SYNC_BOUNDS = { maxChats: 5, timeMs: 3e4, maxMessages: 500 };
|
|
33571
33590
|
var keyOf2 = /* @__PURE__ */ __name((chat) => JSON.stringify([chat.account.provider, chat.account.account, chat.chatId]), "keyOf");
|
|
@@ -33697,7 +33716,7 @@ var withRefresh = /* @__PURE__ */ __name((found, refreshed) => ({
|
|
|
33697
33716
|
...!refreshed || refreshed.complete ? {} : { coverage: { ...found.coverage, state: "stale" } }
|
|
33698
33717
|
}), "withRefresh");
|
|
33699
33718
|
|
|
33700
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33719
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/services/embeddings-search.js
|
|
33701
33720
|
var CANDIDATES = 50;
|
|
33702
33721
|
var WORD_HITS = 200;
|
|
33703
33722
|
var RRF_K = 60;
|
|
@@ -33972,13 +33991,13 @@ var meanOf = /* @__PURE__ */ __name((vectors) => {
|
|
|
33972
33991
|
return mean2.map((value) => value / length);
|
|
33973
33992
|
}, "meanOf");
|
|
33974
33993
|
|
|
33975
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33994
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/services/embeddings.js
|
|
33976
33995
|
var embeddingsService = /* @__PURE__ */ __name((deps) => ({
|
|
33977
33996
|
...embeddingsMaintenance(deps),
|
|
33978
33997
|
...embeddingsSearch(deps)
|
|
33979
33998
|
}), "embeddingsService");
|
|
33980
33999
|
|
|
33981
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34000
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/services/folders.js
|
|
33982
34001
|
var foldersService = /* @__PURE__ */ __name((deps) => {
|
|
33983
34002
|
const online = /* @__PURE__ */ __name(async (command) => {
|
|
33984
34003
|
if (deps.offline)
|
|
@@ -34119,7 +34138,7 @@ var foldersService = /* @__PURE__ */ __name((deps) => {
|
|
|
34119
34138
|
};
|
|
34120
34139
|
}, "foldersService");
|
|
34121
34140
|
|
|
34122
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34141
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/services/mentions.js
|
|
34123
34142
|
var REVIEW_COUNT = 500;
|
|
34124
34143
|
var mentionsService = /* @__PURE__ */ __name((deps) => {
|
|
34125
34144
|
const located = /* @__PURE__ */ __name(async () => {
|
|
@@ -34198,7 +34217,7 @@ var mentionsService = /* @__PURE__ */ __name((deps) => {
|
|
|
34198
34217
|
};
|
|
34199
34218
|
}, "mentionsService");
|
|
34200
34219
|
|
|
34201
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34220
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/domain/formatting.js
|
|
34202
34221
|
var invalid3 = /* @__PURE__ */ __name(() => new CliError("validation_error", "the messenger formatter returned invalid text spans"), "invalid");
|
|
34203
34222
|
var validateFormattedText = /* @__PURE__ */ __name((formatted2) => {
|
|
34204
34223
|
const { text: text2, spans } = formatted2;
|
|
@@ -34258,7 +34277,7 @@ var visibleFormattedText = /* @__PURE__ */ __name((formatted2) => {
|
|
|
34258
34277
|
};
|
|
34259
34278
|
}, "visibleFormattedText");
|
|
34260
34279
|
|
|
34261
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34280
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/domain/message-link.js
|
|
34262
34281
|
var fileLinks = /* @__PURE__ */ __name((attachments) => hitFiles(attachments).map(({ position, kind, name }) => ({
|
|
34263
34282
|
position,
|
|
34264
34283
|
kind,
|
|
@@ -34307,7 +34326,7 @@ var validatePermalink = /* @__PURE__ */ __name((link4) => {
|
|
|
34307
34326
|
return { url: link4.url, access: link4.access, reason: link4.reason };
|
|
34308
34327
|
}, "validatePermalink");
|
|
34309
34328
|
|
|
34310
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34329
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/domain/pin-duration.js
|
|
34311
34330
|
var spokenSeconds = /* @__PURE__ */ __name((seconds) => {
|
|
34312
34331
|
if (seconds % 86400 === 0 && seconds > 86400)
|
|
34313
34332
|
return `${seconds / 86400}d`;
|
|
@@ -34339,7 +34358,7 @@ var pinDurationOf = /* @__PURE__ */ __name((value, allowed, flag = "--expire-tim
|
|
|
34339
34358
|
return seconds;
|
|
34340
34359
|
}, "pinDurationOf");
|
|
34341
34360
|
|
|
34342
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34361
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/sends/send-as.js
|
|
34343
34362
|
var sendAsCheck = /* @__PURE__ */ __name((connection, sendAs) => {
|
|
34344
34363
|
if (sendAs === void 0) {
|
|
34345
34364
|
const saved = connection.savedSender?.bind(connection);
|
|
@@ -34364,7 +34383,7 @@ var typedSendAs = /* @__PURE__ */ __name((typed) => {
|
|
|
34364
34383
|
return sendAs;
|
|
34365
34384
|
}, "typedSendAs");
|
|
34366
34385
|
|
|
34367
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34386
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/search/total.js
|
|
34368
34387
|
var TOTAL_CAP = 1e4;
|
|
34369
34388
|
var totalOf = /* @__PURE__ */ __name((count4, shown, hasMore, exact = true) => {
|
|
34370
34389
|
const least = shown + (hasMore ? 1 : 0);
|
|
@@ -34375,7 +34394,7 @@ var totalOf = /* @__PURE__ */ __name((count4, shown, hasMore, exact = true) => {
|
|
|
34375
34394
|
return { value: count4, relation: exact ? "eq" : "gte" };
|
|
34376
34395
|
}, "totalOf");
|
|
34377
34396
|
|
|
34378
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34397
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/search/lucene/meaning-parts.js
|
|
34379
34398
|
var WORD_FIELDS = /* @__PURE__ */ new Set(["text", "exact"]);
|
|
34380
34399
|
var fieldsOfQuery = /* @__PURE__ */ __name((root, everything) => {
|
|
34381
34400
|
let narrows = false;
|
|
@@ -34404,7 +34423,7 @@ var meaningWords = /* @__PURE__ */ __name((root) => {
|
|
|
34404
34423
|
return wanted(root).join(" ").trim();
|
|
34405
34424
|
}, "meaningWords");
|
|
34406
34425
|
|
|
34407
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34426
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/search/question-plan.js
|
|
34408
34427
|
var words3 = /* @__PURE__ */ __name((text2) => normalize(text2).match(/[\p{L}\p{N}]+/gu) ?? [], "words");
|
|
34409
34428
|
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"));
|
|
34410
34429
|
var questionWord = /\b(?:what|which|how|who|where|when|can|could|should)\b|(?:^|\s)(?:сколько|какой|какая|какие|какое|кто|кому|кем|где|когда|как|что|можно|может|могут|ли)(?:\s|$)/iu;
|
|
@@ -34537,7 +34556,7 @@ var questionLookup = /* @__PURE__ */ __name((text2) => {
|
|
|
34537
34556
|
return terms.length ? anyOfTerms(terms, plan.scope) : void 0;
|
|
34538
34557
|
}, "questionLookup");
|
|
34539
34558
|
|
|
34540
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34559
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/services/messages-combined.js
|
|
34541
34560
|
var COMBINED_DEFAULTS = { candidateDepth: 300, rrfK: 60, rerank: "all", chatCap: 0 };
|
|
34542
34561
|
var tokensOf = /* @__PURE__ */ __name((text2) => normalize(text2).match(/[\p{L}\p{N}\p{Co}\p{M}]+/gu) ?? [], "tokensOf");
|
|
34543
34562
|
var searchCombined = /* @__PURE__ */ __name(async (store, account, request, messenger = {}, options2 = COMBINED_DEFAULTS) => {
|
|
@@ -34730,7 +34749,7 @@ var signals = /* @__PURE__ */ __name((hit, terms, corrections, execution, mode,
|
|
|
34730
34749
|
return mode === "coverage" ? coverage2 * 4 : mode === "proximity" ? proximity : mode === "phrase" ? phrase : coverage2 * 4 + proximity + phrase;
|
|
34731
34750
|
}, "signals");
|
|
34732
34751
|
|
|
34733
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34752
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/services/messages-discovery.js
|
|
34734
34753
|
var MEANING_DEPTH = 100;
|
|
34735
34754
|
var RRF_K2 = 60;
|
|
34736
34755
|
var RERANK_DEPTH = 50;
|
|
@@ -35055,7 +35074,7 @@ var mixedWithReranker = /* @__PURE__ */ __name((head, scores) => {
|
|
|
35055
35074
|
})).sort((a, b) => b.mixed - a.mixed).map(({ hit }) => hit);
|
|
35056
35075
|
}, "mixedWithReranker");
|
|
35057
35076
|
|
|
35058
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35077
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/services/thread-context.js
|
|
35059
35078
|
var THREAD_BOUNDS = { maxHops: 8, maxMessages: 50, maxBytes: 65536, withinMs: 864e5 };
|
|
35060
35079
|
var bytes = /* @__PURE__ */ __name((items, links) => Buffer.byteLength(JSON.stringify({ items, links }), "utf8"), "bytes");
|
|
35061
35080
|
var threadBounds = /* @__PURE__ */ __name((options2 = {}) => {
|
|
@@ -35254,7 +35273,7 @@ var readThreadContext = /* @__PURE__ */ __name(async (store, account, chat, mess
|
|
|
35254
35273
|
return result;
|
|
35255
35274
|
}, "readThreadContext");
|
|
35256
35275
|
|
|
35257
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35276
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/services/messages-archive-search.js
|
|
35258
35277
|
var SEARCH_FILL_MS = 200;
|
|
35259
35278
|
var statsStore = /* @__PURE__ */ __name(async (store, account, request, messenger = {}) => {
|
|
35260
35279
|
const stop = Date.now() + SEARCH_FILL_MS;
|
|
@@ -35323,12 +35342,12 @@ var accountOf2 = /* @__PURE__ */ __name((hit) => {
|
|
|
35323
35342
|
}, "accountOf");
|
|
35324
35343
|
var keyOf3 = /* @__PURE__ */ __name(({ provider, account }) => `${provider}/${account}`, "keyOf");
|
|
35325
35344
|
|
|
35326
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35345
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/services/pictures.js
|
|
35327
35346
|
import { createHash as createHash11 } from "node:crypto";
|
|
35328
35347
|
import { readFile as readFile2, stat as stat3 } from "node:fs/promises";
|
|
35329
35348
|
import { setTimeout as sleep4 } from "node:timers/promises";
|
|
35330
35349
|
|
|
35331
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35350
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/domain/models.js
|
|
35332
35351
|
var GROUP_SETTINGS = [
|
|
35333
35352
|
"allCanPin",
|
|
35334
35353
|
"onlyAdminsAdd",
|
|
@@ -35342,7 +35361,7 @@ var ADMIN_RIGHTS = ["read", "members", "admins", "info", "pin", "link", "post",
|
|
|
35342
35361
|
var senderIsMe = /* @__PURE__ */ __name((message, account) => message.outgoing === true || message.senderId !== null && String(message.senderId) === account, "senderIsMe");
|
|
35343
35362
|
var MEDIA_KINDS = ["photo", "video", "file", "audio", "link"];
|
|
35344
35363
|
|
|
35345
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35364
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/services/pictures.js
|
|
35346
35365
|
var PICTURE_MAX_BYTES = 25 * 1024 * 1024;
|
|
35347
35366
|
var PICTURE_FLOOR = 0.25;
|
|
35348
35367
|
var PAGE4 = 50;
|
|
@@ -35359,7 +35378,7 @@ var picturesService = /* @__PURE__ */ __name((deps) => {
|
|
|
35359
35378
|
const directory2 = imageModelsDirectory(deps.env);
|
|
35360
35379
|
if (!isImageModelInstalled(model2, directory2))
|
|
35361
35380
|
throw new CliError("not_found", missingModel(model2.id), { reason: "model.not-downloaded", model: model2.id });
|
|
35362
|
-
const { openPictureEmbedder } = await import("./embedder-
|
|
35381
|
+
const { openPictureEmbedder } = await import("./embedder-P6WBMEGP.js");
|
|
35363
35382
|
return openPictureEmbedder(model2, directory2);
|
|
35364
35383
|
}, "open");
|
|
35365
35384
|
const embedder = /* @__PURE__ */ __name(() => {
|
|
@@ -35556,7 +35575,7 @@ var withPictures = /* @__PURE__ */ __name((messages, pictures) => ({
|
|
|
35556
35575
|
}, "search")
|
|
35557
35576
|
}), "withPictures");
|
|
35558
35577
|
|
|
35559
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35578
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/services/messages-meaning.js
|
|
35560
35579
|
var meaningText = /* @__PURE__ */ __name((question) => {
|
|
35561
35580
|
try {
|
|
35562
35581
|
const text2 = questionLookup(question) === void 0 ? question : questionText(question);
|
|
@@ -35636,7 +35655,7 @@ var meaningLane = /* @__PURE__ */ __name((deps) => async (question, accounts, sh
|
|
|
35636
35655
|
}
|
|
35637
35656
|
}, "meaningLane");
|
|
35638
35657
|
|
|
35639
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35658
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/services/messages-rerank.js
|
|
35640
35659
|
var rerankLane = /* @__PURE__ */ __name((deps) => {
|
|
35641
35660
|
const choice = deps.reranker ?? DEFAULT_RERANK_MODEL;
|
|
35642
35661
|
if (choice === "off")
|
|
@@ -35648,9 +35667,9 @@ var rerankLane = /* @__PURE__ */ __name((deps) => {
|
|
|
35648
35667
|
return { skipped: { reason: `${model.id} is not downloaded`, step: "models.download", model: model.id } };
|
|
35649
35668
|
try {
|
|
35650
35669
|
const warm = deps.embedders;
|
|
35651
|
-
const reranker = warm ? await warm.reranker(`rerank:${model.id}`, async () => (await import("./process-
|
|
35670
|
+
const reranker = warm ? await warm.reranker(`rerank:${model.id}`, async () => (await import("./process-P4UAJCZX.js")).openRerankerProcess(model, directory2, {
|
|
35652
35671
|
threads: defaultThreads()
|
|
35653
|
-
})) : await (await import("./rerank-
|
|
35672
|
+
})) : await (await import("./rerank-VKUSF3DM.js")).openReranker(model, directory2);
|
|
35654
35673
|
return {
|
|
35655
35674
|
model: model.id,
|
|
35656
35675
|
score: /* @__PURE__ */ __name((question, passages) => reranker.score(plainWords(question), passages), "score"),
|
|
@@ -35670,17 +35689,17 @@ var rerankLane = /* @__PURE__ */ __name((deps) => {
|
|
|
35670
35689
|
};
|
|
35671
35690
|
}, "rerankLane");
|
|
35672
35691
|
|
|
35673
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35692
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/services/document-pictures.js
|
|
35674
35693
|
var openPictureEmbedderFor = /* @__PURE__ */ __name(async ({ env, command } = {}) => {
|
|
35675
35694
|
const model = imageModel(DEFAULT_IMAGE_MODEL);
|
|
35676
35695
|
const directory2 = imageModelsDirectory(env);
|
|
35677
35696
|
if (!isImageModelInstalled(model, directory2))
|
|
35678
35697
|
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 });
|
|
35679
|
-
const { openPictureEmbedder } = await import("./embedder-
|
|
35698
|
+
const { openPictureEmbedder } = await import("./embedder-P6WBMEGP.js");
|
|
35680
35699
|
return openPictureEmbedder(model, directory2);
|
|
35681
35700
|
}, "openPictureEmbedderFor");
|
|
35682
35701
|
|
|
35683
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35702
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/services/document-source.js
|
|
35684
35703
|
var documentSource = /* @__PURE__ */ __name((note2, accounts, profiles, file2) => {
|
|
35685
35704
|
const metadata = note2.frontMatter;
|
|
35686
35705
|
const account = accounts.find(({ id: id2 }) => String(id2) === note2.folderId);
|
|
@@ -35695,7 +35714,7 @@ var documentSource = /* @__PURE__ */ __name((note2, accounts, profiles, file2) =
|
|
|
35695
35714
|
};
|
|
35696
35715
|
}, "documentSource");
|
|
35697
35716
|
|
|
35698
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35717
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/embeddings/keys.js
|
|
35699
35718
|
var endpointKeyName = /* @__PURE__ */ __name((baseUrl) => {
|
|
35700
35719
|
const host = new URL(baseUrl).host;
|
|
35701
35720
|
return ["openai", "anthropic"].includes(host) ? `endpoint:${host}` : host;
|
|
@@ -35728,7 +35747,7 @@ var embeddingKeys = /* @__PURE__ */ __name((app, env = process.env, keyring) =>
|
|
|
35728
35747
|
};
|
|
35729
35748
|
}, "embeddingKeys");
|
|
35730
35749
|
|
|
35731
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35750
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/services/enrichment-setting.js
|
|
35732
35751
|
var SECTION = "enrichment";
|
|
35733
35752
|
var ENRICHMENT_PROVIDERS = ["openai", "anthropic"];
|
|
35734
35753
|
var DEFAULT_BASE_URLS = {
|
|
@@ -35800,7 +35819,7 @@ var costOf = /* @__PURE__ */ __name((usage, setting) => {
|
|
|
35800
35819
|
return price ? Math.round((usage.input * price.input + usage.output * price.output) * 1e6) / 1e6 : null;
|
|
35801
35820
|
}, "costOf");
|
|
35802
35821
|
|
|
35803
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35822
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/services/enrichment.js
|
|
35804
35823
|
var ENRICH_PER_RUN = 600;
|
|
35805
35824
|
var BATCH = 20;
|
|
35806
35825
|
var CONCURRENCY = 4;
|
|
@@ -36018,7 +36037,7 @@ var enrichmentState = /* @__PURE__ */ __name(async (store, env, estimateFor, key
|
|
|
36018
36037
|
};
|
|
36019
36038
|
}, "enrichmentState");
|
|
36020
36039
|
|
|
36021
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36040
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/services/notes-title-tier.js
|
|
36022
36041
|
var plainQueryWords = /* @__PURE__ */ __name((query) => {
|
|
36023
36042
|
let root;
|
|
36024
36043
|
try {
|
|
@@ -36045,7 +36064,7 @@ var titleTiers = /* @__PURE__ */ __name((hits, words4) => {
|
|
|
36045
36064
|
return [...hits].sort((a, b) => rank(a) - rank(b));
|
|
36046
36065
|
}, "titleTiers");
|
|
36047
36066
|
|
|
36048
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36067
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/services/notes-search.js
|
|
36049
36068
|
var storeQuery = /* @__PURE__ */ __name(async (store, text2, { exact, timezone } = {}) => resolvedQuery(store, parsedQuery(text2, exact), timezone), "storeQuery");
|
|
36050
36069
|
var parsedQuery = /* @__PURE__ */ __name((text2, exact) => validateFields(parseLucene(text2, { ...SEARCH_QUERY, defaultField: exact ? "exact" : "text" })).root, "parsedQuery");
|
|
36051
36070
|
var resolvedQuery = /* @__PURE__ */ __name(async (store, root, timezone) => {
|
|
@@ -36521,7 +36540,7 @@ var searchNotesOf = /* @__PURE__ */ __name(async (store, account, text2, { accou
|
|
|
36521
36540
|
};
|
|
36522
36541
|
}, "searchNotesOf");
|
|
36523
36542
|
|
|
36524
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36543
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/services/events-search.js
|
|
36525
36544
|
var MAX_EVENTS_OFFSET = 1e3;
|
|
36526
36545
|
var iso3 = /* @__PURE__ */ __name((at) => at === null ? null : new Date(at).toISOString(), "iso");
|
|
36527
36546
|
var accountIdsOf = /* @__PURE__ */ __name(async (store, accounts) => {
|
|
@@ -36639,7 +36658,7 @@ var searchEvents = /* @__PURE__ */ __name(async (store, query, { limit = 20, off
|
|
|
36639
36658
|
};
|
|
36640
36659
|
}, "searchEvents");
|
|
36641
36660
|
|
|
36642
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36661
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/services/search-all-business.js
|
|
36643
36662
|
var OWN_BUSINESS = { provider: "business", account: INTERNAL_NOTES };
|
|
36644
36663
|
var BUSINESS_WORDS_ONLY = "invoices, payments, orders, contracts, subscriptions, products and wallets are found by the words of their numbers and names only";
|
|
36645
36664
|
var placeOf = /* @__PURE__ */ __name(({ source, imported }) => source ?? (imported === void 0 ? OWN_BUSINESS : { provider: imported, account: "" }), "placeOf");
|
|
@@ -36670,7 +36689,7 @@ var searchBusiness = /* @__PURE__ */ __name(async (store, { words: words4, anyWo
|
|
|
36670
36689
|
};
|
|
36671
36690
|
}, "searchBusiness");
|
|
36672
36691
|
|
|
36673
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36692
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/services/search-all.js
|
|
36674
36693
|
var RESOURCES_SEARCHED = ["messages", "mail", "notes", "events", "crm", "business"];
|
|
36675
36694
|
var refusal = /* @__PURE__ */ __name((error, text2) => {
|
|
36676
36695
|
const { reason, span } = error.details ?? {};
|
|
@@ -36977,7 +36996,7 @@ var oneList = /* @__PURE__ */ __name((lists, cosines) => {
|
|
|
36977
36996
|
return [...place.values()].sort((a, b) => head(a.rank) - head(b.rank) || b.cosine - a.cosine || a.rank - b.rank).map(({ item: item2 }) => item2);
|
|
36978
36997
|
}, "oneList");
|
|
36979
36998
|
|
|
36980
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36999
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/services/search-all-meetings.js
|
|
36981
37000
|
var RESOURCES_SEARCHED_WITH_MEETINGS = [...RESOURCES_SEARCHED, "meetings"];
|
|
36982
37001
|
var whole2 = /* @__PURE__ */ __name((value, minimum, maximum, label) => {
|
|
36983
37002
|
if (!Number.isSafeInteger(value) || value < minimum || value > maximum)
|
|
@@ -37235,7 +37254,7 @@ var searchAllOfSource = /* @__PURE__ */ __name(async (store, account, source, re
|
|
|
37235
37254
|
return { ...found, skipped: [...skipped, ...empty2, ...unnamed, ...found.skipped] };
|
|
37236
37255
|
}, "searchAllOfSource");
|
|
37237
37256
|
|
|
37238
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37257
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/services/server-search.js
|
|
37239
37258
|
var SERVER_SEARCH_KEY = "messages.server-search";
|
|
37240
37259
|
var SERVER_BOUNDS = { timeMs: 5e3, perCall: 100, maxCalls: 3, textBytes: 262144 };
|
|
37241
37260
|
var DEFAULT_BACKEND = "both";
|
|
@@ -37424,7 +37443,7 @@ var searchServer = /* @__PURE__ */ __name(async (deps, request) => {
|
|
|
37424
37443
|
return { report, sources };
|
|
37425
37444
|
}, "searchServer");
|
|
37426
37445
|
|
|
37427
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37446
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/services/messages.js
|
|
37428
37447
|
var DELETE_AT_ONCE = 10;
|
|
37429
37448
|
var filesOf = /* @__PURE__ */ __name(({ attachments }) => {
|
|
37430
37449
|
const files = fileLinks(attachments);
|
|
@@ -37865,7 +37884,7 @@ var checkMediaOptions = /* @__PURE__ */ __name((messenger, asked, attachments) =
|
|
|
37865
37884
|
throw new CliError("validation_error", `${MEDIA_FLAGS[first2]} needs a --photo or --file`);
|
|
37866
37885
|
}, "checkMediaOptions");
|
|
37867
37886
|
|
|
37868
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37887
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/domain/channel-tags.js
|
|
37869
37888
|
var CHANNEL_TAG_RULES_VERSION = "keywords-v1";
|
|
37870
37889
|
var RULES = {
|
|
37871
37890
|
ai: [/\b(ai|gpt|llm|machine learning|artificial intelligence)\b/iu, /нейросет|искусственн/iu],
|
|
@@ -37880,7 +37899,7 @@ var classifyChannel = /* @__PURE__ */ __name((metadata) => Object.entries(RULES)
|
|
|
37880
37899
|
return fields.length ? [{ tag, score: fields.length / 3, fields }] : [];
|
|
37881
37900
|
}), "classifyChannel");
|
|
37882
37901
|
|
|
37883
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37902
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/services/metadata.js
|
|
37884
37903
|
var metadataService = /* @__PURE__ */ __name((deps) => {
|
|
37885
37904
|
const held = /* @__PURE__ */ __name(async (reference, { includeLeft = false } = {}) => {
|
|
37886
37905
|
const store = await deps.store();
|
|
@@ -37966,7 +37985,7 @@ var metadataService = /* @__PURE__ */ __name((deps) => {
|
|
|
37966
37985
|
};
|
|
37967
37986
|
}, "metadataService");
|
|
37968
37987
|
|
|
37969
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37988
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/moderation/check.js
|
|
37970
37989
|
var INVITE = /max\.ru\/join\/|(t|telegram)\.me\/(\+|joinchat\/)|tg:\/\/join/i;
|
|
37971
37990
|
var LINK2 = /https?:\/\/\S+/i;
|
|
37972
37991
|
var STRENGTH = { report: 0, delete: 1, remove: 2 };
|
|
@@ -38154,7 +38173,7 @@ var nextPoint = /* @__PURE__ */ __name((rows, found) => {
|
|
|
38154
38173
|
}, "nextPoint");
|
|
38155
38174
|
var someUndone = /* @__PURE__ */ __name((rows) => rows.some(undone), "someUndone");
|
|
38156
38175
|
|
|
38157
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38176
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/moderation/rules.js
|
|
38158
38177
|
import { existsSync as existsSync2, readFileSync as readFileSync2 } from "node:fs";
|
|
38159
38178
|
import { join as join11 } from "node:path";
|
|
38160
38179
|
var RULE_ACTIONS = ["report", "delete", "remove"];
|
|
@@ -38297,7 +38316,7 @@ var assign = /* @__PURE__ */ __name((rules, key, value) => {
|
|
|
38297
38316
|
return { ...rules, [head]: { ...rules[head], [tail]: value } };
|
|
38298
38317
|
}, "assign");
|
|
38299
38318
|
|
|
38300
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38319
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/moderation/run.js
|
|
38301
38320
|
var FIRST_LOOK_MS = 24 * 36e5;
|
|
38302
38321
|
var moderateWith = /* @__PURE__ */ __name(async (run) => {
|
|
38303
38322
|
const { chatId, title, rules, point, since, dryRun } = run;
|
|
@@ -38334,7 +38353,7 @@ var moderateWith = /* @__PURE__ */ __name(async (run) => {
|
|
|
38334
38353
|
return { chatId, rows, notes };
|
|
38335
38354
|
}, "moderateWith");
|
|
38336
38355
|
|
|
38337
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38356
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/services/moderation.js
|
|
38338
38357
|
var moderationService = /* @__PURE__ */ __name((deps) => {
|
|
38339
38358
|
const file2 = /* @__PURE__ */ __name(() => new ModerationRules(moderationPathFor(deps.messenger.app, deps.profile ?? "default", deps.env ?? process.env)), "file");
|
|
38340
38359
|
const group = /* @__PURE__ */ __name(async (chat) => {
|
|
@@ -38412,7 +38431,7 @@ var moderatorOf = /* @__PURE__ */ __name((adapter, deps) => ({
|
|
|
38412
38431
|
}, "removePerson")
|
|
38413
38432
|
}), "moderatorOf");
|
|
38414
38433
|
|
|
38415
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38434
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/services/private-people.js
|
|
38416
38435
|
var noteItem = /* @__PURE__ */ __name((provider, note2) => ({
|
|
38417
38436
|
id: note2.id,
|
|
38418
38437
|
contact: formatReference({ type: "contact", provider, id: note2.personId }),
|
|
@@ -38456,7 +38475,7 @@ var privatePeopleService = /* @__PURE__ */ __name((deps) => {
|
|
|
38456
38475
|
};
|
|
38457
38476
|
}, "privatePeopleService");
|
|
38458
38477
|
|
|
38459
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38478
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/services/rankings.js
|
|
38460
38479
|
var empty = /* @__PURE__ */ __name(() => ({
|
|
38461
38480
|
total: 0,
|
|
38462
38481
|
population: 0,
|
|
@@ -38712,7 +38731,7 @@ var rankingsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
38712
38731
|
}, "evidence")
|
|
38713
38732
|
}), "rankingsService");
|
|
38714
38733
|
|
|
38715
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38734
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/services/reply-stats.js
|
|
38716
38735
|
var FIELDS = ["date", "chat", "kind"];
|
|
38717
38736
|
var WAITING_TAIL = 100;
|
|
38718
38737
|
var plainOnly = /* @__PURE__ */ __name((text2, command) => {
|
|
@@ -38839,7 +38858,7 @@ var replyStatsService = /* @__PURE__ */ __name((deps) => {
|
|
|
38839
38858
|
};
|
|
38840
38859
|
}, "replyStatsService");
|
|
38841
38860
|
|
|
38842
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38861
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/services/searches.js
|
|
38843
38862
|
var savedSearchItem = /* @__PURE__ */ __name((one2) => ({
|
|
38844
38863
|
id: one2.id,
|
|
38845
38864
|
name: one2.name,
|
|
@@ -38968,7 +38987,7 @@ var searchesService = /* @__PURE__ */ __name((deps) => {
|
|
|
38968
38987
|
};
|
|
38969
38988
|
}, "searchesService");
|
|
38970
38989
|
|
|
38971
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38990
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/services/tags.js
|
|
38972
38991
|
var TAGGING_QUERY = {
|
|
38973
38992
|
entity: "tagging",
|
|
38974
38993
|
backend: "sql",
|
|
@@ -39052,7 +39071,7 @@ var tagsService = /* @__PURE__ */ __name((deps) => {
|
|
|
39052
39071
|
};
|
|
39053
39072
|
}, "tagsService");
|
|
39054
39073
|
|
|
39055
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39074
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/services/topics.js
|
|
39056
39075
|
var actionOf = /* @__PURE__ */ __name(({ title, closed, pinned, hidden, icon }) => {
|
|
39057
39076
|
const set = [closed, pinned, hidden].filter((one2) => one2 !== void 0).length;
|
|
39058
39077
|
if (title !== void 0 || icon !== void 0 || set !== 1)
|
|
@@ -39251,7 +39270,7 @@ var topicsService = /* @__PURE__ */ __name((deps) => {
|
|
|
39251
39270
|
};
|
|
39252
39271
|
}, "topicsService");
|
|
39253
39272
|
|
|
39254
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39273
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/services/evidence.js
|
|
39255
39274
|
import { createHash as createHash12, randomUUID as randomUUID5 } from "node:crypto";
|
|
39256
39275
|
var hash2 = /* @__PURE__ */ __name((value) => createHash12("sha256").update(JSON.stringify(value)).digest("hex"), "hash");
|
|
39257
39276
|
var positive = /* @__PURE__ */ __name((value, name, minimum = 1) => {
|
|
@@ -39325,7 +39344,7 @@ var prepareEvidencePacket = /* @__PURE__ */ __name(({ kind, source, page, limits
|
|
|
39325
39344
|
return { ...content, id: randomUUID5(), fingerprint: hash2(content) };
|
|
39326
39345
|
}, "prepareEvidencePacket");
|
|
39327
39346
|
|
|
39328
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39347
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/services/evidence-read.js
|
|
39329
39348
|
var readEvidencePacket = /* @__PURE__ */ __name(async (store, account, { chat, limit, before: before2 }, messenger = {}) => {
|
|
39330
39349
|
if (!Number.isSafeInteger(limit) || limit < 1 || limit > 100)
|
|
39331
39350
|
throw new CliError("validation_error", "evidence message limit must be an integer from 1 to 100");
|
|
@@ -39345,7 +39364,7 @@ var readEvidencePacket = /* @__PURE__ */ __name(async (store, account, { chat, l
|
|
|
39345
39364
|
return { ...packet, nextBeforeId: older && last ? last.id : null };
|
|
39346
39365
|
}, "readEvidencePacket");
|
|
39347
39366
|
|
|
39348
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39367
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/services/meeting-hit-search.js
|
|
39349
39368
|
var refreshMeetingIndex = /* @__PURE__ */ __name(async (meetings, accountId, signal) => {
|
|
39350
39369
|
let before2 = Number.POSITIVE_INFINITY;
|
|
39351
39370
|
for (; ; ) {
|
|
@@ -39407,7 +39426,7 @@ var searchMeetingHits = /* @__PURE__ */ __name(async (store, query, request, opt
|
|
|
39407
39426
|
return { ...result, selection };
|
|
39408
39427
|
}, "searchMeetingHits");
|
|
39409
39428
|
|
|
39410
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39429
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/services/meeting-project-discovery.js
|
|
39411
39430
|
import { createHash as createHash13 } from "node:crypto";
|
|
39412
39431
|
var scopeKeys = [
|
|
39413
39432
|
"accountId",
|
|
@@ -39542,7 +39561,7 @@ var readMeetingProjectDiscovery = /* @__PURE__ */ __name(async (ports, projectNa
|
|
|
39542
39561
|
};
|
|
39543
39562
|
}, "readMeetingProjectDiscovery");
|
|
39544
39563
|
|
|
39545
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39564
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/services/text-model-choice.js
|
|
39546
39565
|
import { createHash as createHash14 } from "node:crypto";
|
|
39547
39566
|
import { existsSync as existsSync3 } from "node:fs";
|
|
39548
39567
|
var useTextModel = /* @__PURE__ */ __name(async (id2, { env, command }) => {
|
|
@@ -39673,7 +39692,7 @@ var addCustomTextModel = /* @__PURE__ */ __name(async (id2, payload, { env, fetc
|
|
|
39673
39692
|
return { ...checked2.output, custom: true };
|
|
39674
39693
|
}, "addCustomTextModel");
|
|
39675
39694
|
|
|
39676
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39695
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/services/meeting-hit-context.js
|
|
39677
39696
|
import { createHash as createHash15 } from "node:crypto";
|
|
39678
39697
|
var contextCue = /* @__PURE__ */ __name((cue) => ({
|
|
39679
39698
|
ref: cue.reference,
|
|
@@ -39791,7 +39810,7 @@ var readMeetingHitContext = /* @__PURE__ */ __name(async (store, accountId, refe
|
|
|
39791
39810
|
return { ...packet, fingerprint: createHash15("sha256").update(JSON.stringify(packet)).digest("hex") };
|
|
39792
39811
|
}, "readMeetingHitContext");
|
|
39793
39812
|
|
|
39794
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39813
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/services/meeting-passage-format.js
|
|
39795
39814
|
var visible = /* @__PURE__ */ __name((text2) => text2.replace(/[\p{Cc}\p{Cf}]/gu, (value) => value === "\n" || value === " " ? value : `\\u{${value.codePointAt(0)?.toString(16)}}`), "visible");
|
|
39796
39815
|
var markdown = /* @__PURE__ */ __name((text2) => visible(text2).replaceAll("&", "&").replaceAll("<", "<").replaceAll(">", ">").replace(/[\\`*_[\]#|~]/g, "\\$&"), "markdown");
|
|
39797
39816
|
var timestamp = /* @__PURE__ */ __name((ms) => {
|
|
@@ -39867,7 +39886,7 @@ var readMeetingPassage = /* @__PURE__ */ __name(async (store, accountId, referen
|
|
|
39867
39886
|
return { packet, content };
|
|
39868
39887
|
}, "readMeetingPassage");
|
|
39869
39888
|
|
|
39870
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39889
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/context/communication-selection.js
|
|
39871
39890
|
var communicationFields = {
|
|
39872
39891
|
sources: pipe(array(strictObject({
|
|
39873
39892
|
id: pipe(string(), regex(/^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$/)),
|
|
@@ -39899,7 +39918,7 @@ var communicationRequest = /* @__PURE__ */ __name((value, preparationAfter) => {
|
|
|
39899
39918
|
return { ...input, after, before: before2 };
|
|
39900
39919
|
}, "communicationRequest");
|
|
39901
39920
|
|
|
39902
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39921
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/services/meeting-preparation-validation.js
|
|
39903
39922
|
var MEETING_PREPARATION_LIMITS = {
|
|
39904
39923
|
meetings: { min: 1, max: 20, default: 5 },
|
|
39905
39924
|
cues: { min: 1, max: 100, default: 10 },
|
|
@@ -39985,7 +40004,7 @@ var preparationRequest = /* @__PURE__ */ __name((accountId, externalId, original
|
|
|
39985
40004
|
return { ...input, history };
|
|
39986
40005
|
}, "preparationRequest");
|
|
39987
40006
|
|
|
39988
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40007
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/services/meeting-communications-preparation.js
|
|
39989
40008
|
var readPreparationCommunications = /* @__PURE__ */ __name(async (plan, signal) => {
|
|
39990
40009
|
const section = {
|
|
39991
40010
|
readUsage: plan.reader.usage(),
|
|
@@ -40090,7 +40109,7 @@ var appendPreparationCommunications = /* @__PURE__ */ __name((result, read2) =>
|
|
|
40090
40109
|
result.knowledge.coverage.otherSources = "see-communications";
|
|
40091
40110
|
}, "appendPreparationCommunications");
|
|
40092
40111
|
|
|
40093
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40112
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/services/meeting-communications-selection.js
|
|
40094
40113
|
var captureCommunicationSelections = /* @__PURE__ */ __name((port) => {
|
|
40095
40114
|
if (port === void 0)
|
|
40096
40115
|
return void 0;
|
|
@@ -40195,7 +40214,7 @@ var validatePreparationCommunications = /* @__PURE__ */ __name((section, request
|
|
|
40195
40214
|
}
|
|
40196
40215
|
}, "validatePreparationCommunications");
|
|
40197
40216
|
|
|
40198
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40217
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/services/meeting-knowledge-preparation.js
|
|
40199
40218
|
var invalid6 = /* @__PURE__ */ __name(() => {
|
|
40200
40219
|
throw new CliError("invalid_response", "Preparation knowledge returned an invalid selection");
|
|
40201
40220
|
}, "invalid");
|
|
@@ -40264,7 +40283,7 @@ var appendKnowledgePreparation = /* @__PURE__ */ __name(async (store, result, in
|
|
|
40264
40283
|
}
|
|
40265
40284
|
}, "appendKnowledgePreparation");
|
|
40266
40285
|
|
|
40267
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40286
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/services/meeting-notes-preparation.js
|
|
40268
40287
|
var invalid7 = /* @__PURE__ */ __name(() => {
|
|
40269
40288
|
throw new CliError("invalid_response", "Preparation notes returned an invalid selection");
|
|
40270
40289
|
}, "invalid");
|
|
@@ -40338,7 +40357,7 @@ var appendNotesPreparation = /* @__PURE__ */ __name(async (store, result, input)
|
|
|
40338
40357
|
}
|
|
40339
40358
|
}, "appendNotesPreparation");
|
|
40340
40359
|
|
|
40341
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40360
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/services/meeting-project-preparation.js
|
|
40342
40361
|
var PAGE_LIMIT = 4;
|
|
40343
40362
|
var size2 = /* @__PURE__ */ __name((value) => Buffer.byteLength(JSON.stringify(value), "utf8"), "size");
|
|
40344
40363
|
var appendProjectPreparation = /* @__PURE__ */ __name(async (ports, result, input) => {
|
|
@@ -40388,7 +40407,7 @@ var appendProjectPreparation = /* @__PURE__ */ __name(async (ports, result, inpu
|
|
|
40388
40407
|
}
|
|
40389
40408
|
}, "appendProjectPreparation");
|
|
40390
40409
|
|
|
40391
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40410
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/services/meeting-related-preparation.js
|
|
40392
40411
|
var appendRelatedPreparation = /* @__PURE__ */ __name(async (store, result, input) => {
|
|
40393
40412
|
if (!result.series || !result.items.length || result.coverage.outputLimited)
|
|
40394
40413
|
return;
|
|
@@ -40460,7 +40479,7 @@ var appendRelatedPreparation = /* @__PURE__ */ __name(async (store, result, inpu
|
|
|
40460
40479
|
}
|
|
40461
40480
|
}, "appendRelatedPreparation");
|
|
40462
40481
|
|
|
40463
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40482
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/services/meeting-preparation.js
|
|
40464
40483
|
var size3 = /* @__PURE__ */ __name((value) => Buffer.byteLength(JSON.stringify(value), "utf8"), "size");
|
|
40465
40484
|
var createMeetingPreparationService = /* @__PURE__ */ __name((scope, accountId, ports) => {
|
|
40466
40485
|
const fixed = snapshotMeetingScope(scope);
|
|
@@ -40598,7 +40617,7 @@ var createMeetingPreparationService = /* @__PURE__ */ __name((scope, accountId,
|
|
|
40598
40617
|
};
|
|
40599
40618
|
}, "createMeetingPreparationService");
|
|
40600
40619
|
|
|
40601
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40620
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/services/package-upgrade.js
|
|
40602
40621
|
var upgradePackage = /* @__PURE__ */ __name(async ({ current, command, packageName, check: check2 }, ports) => {
|
|
40603
40622
|
const installer = ports.installer();
|
|
40604
40623
|
const argv = updateCommand(installer, packageName);
|
|
@@ -40663,7 +40682,7 @@ var dayAfter = /* @__PURE__ */ __name((published) => {
|
|
|
40663
40682
|
return Number.isNaN(time) ? null : new Date(time + 24 * 60 * 60 * 1e3).toISOString();
|
|
40664
40683
|
}, "dayAfter");
|
|
40665
40684
|
|
|
40666
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40685
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/services/index.js
|
|
40667
40686
|
var servicesFor = /* @__PURE__ */ __name((deps) => {
|
|
40668
40687
|
const pictures = picturesService(deps);
|
|
40669
40688
|
const base = {
|
|
@@ -40700,7 +40719,7 @@ var servicesFor = /* @__PURE__ */ __name((deps) => {
|
|
|
40700
40719
|
return deps.messenger.services ? { ...base, ...deps.messenger.services(base, deps) } : base;
|
|
40701
40720
|
}, "servicesFor");
|
|
40702
40721
|
|
|
40703
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40722
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/background/relay.js
|
|
40704
40723
|
import { createHash as createHash16 } from "node:crypto";
|
|
40705
40724
|
import { chmodSync, lstatSync, mkdirSync as mkdirSync3, rmSync } from "node:fs";
|
|
40706
40725
|
import { createConnection, createServer } from "node:net";
|
|
@@ -40848,7 +40867,7 @@ var serve = /* @__PURE__ */ __name(async (socket, request, stdin, signal, run) =
|
|
|
40848
40867
|
}
|
|
40849
40868
|
}, "serve");
|
|
40850
40869
|
|
|
40851
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40870
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-relay.js
|
|
40852
40871
|
var lentConnection = /* @__PURE__ */ __name((connection, watchers) => throughWrapper(connection, {
|
|
40853
40872
|
close: /* @__PURE__ */ __name(async () => {
|
|
40854
40873
|
}, "close"),
|