@wirecat/cli-memo 0.131.33 → 0.131.34
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-I67AQBML.js → all-profiles-GPFKMOBB.js} +5 -5
- package/dist/bundle/{anthropic-TAN7BXEI.js → anthropic-ASHT7U76.js} +3 -3
- package/dist/bundle/{app-server-BB6D3T5A.js → app-server-D3IL4M6V.js} +35 -35
- package/dist/bundle/auto-BL5FF576.js +86 -0
- package/dist/bundle/{bun-UQEFISW2.js → bun-EIOFQKTA.js} +2 -2
- package/dist/bundle/{bun-sqlite-2QF3TO47.js → bun-sqlite-YIX2BVSZ.js} +2 -2
- package/dist/bundle/{chunk-MI6OKBKQ.js → chunk-26I6JRFH.js} +4 -4
- package/dist/bundle/{chunk-NOBWIWEE.js → chunk-2RDJLWOY.js} +2 -2
- package/dist/bundle/{chunk-NAKJLG6G.js → chunk-3W4HD6ZQ.js} +5 -5
- package/dist/bundle/{chunk-SN3VTCKM.js → chunk-47KEZ3AX.js} +12 -12
- package/dist/bundle/{chunk-3DDGDOTM.js → chunk-4VJJEIVC.js} +5 -5
- package/dist/bundle/{chunk-KBSN3KOJ.js → chunk-5HVQTBDA.js} +20 -20
- package/dist/bundle/{chunk-3CVPUL6V.js → chunk-5OCV4UG5.js} +2 -2
- package/dist/bundle/{chunk-BFLYYQZ7.js → chunk-6PTJTITL.js} +3 -3
- package/dist/bundle/{chunk-BT6ZZUXC.js → chunk-7PQZBIBH.js} +54 -54
- package/dist/bundle/{chunk-WSSMVWI6.js → chunk-7YECAMPV.js} +43 -43
- package/dist/bundle/{chunk-DUQGOBGY.js → chunk-AQQSOZ57.js} +9 -9
- package/dist/bundle/{chunk-5DEHFWR4.js → chunk-BN5H2M75.js} +1 -1
- package/dist/bundle/{chunk-4BDZUM4Z.js → chunk-BRG5MJLL.js} +1 -1
- package/dist/bundle/{chunk-YGKZOBRU.js → chunk-BWVE7V4A.js} +10 -10
- package/dist/bundle/{chunk-OGOMIZVL.js → chunk-C7AXGHGM.js} +1 -1
- package/dist/bundle/{chunk-LJZAVL4S.js → chunk-CL6MHRXX.js} +2 -2
- package/dist/bundle/{chunk-PVKETTTH.js → chunk-D22HTXOR.js} +7 -7
- package/dist/bundle/{chunk-R37MXUSP.js → chunk-D5LDALYF.js} +11 -11
- package/dist/bundle/{chunk-FZXOHGOA.js → chunk-DOXKMSML.js} +3 -3
- package/dist/bundle/{chunk-LUX5CPKS.js → chunk-DU6LCIHP.js} +1 -1
- package/dist/bundle/{chunk-BUYST3RY.js → chunk-E7NEGYRF.js} +1 -1
- package/dist/bundle/{chunk-KTGIARY4.js → chunk-EGB2R53R.js} +1 -1
- package/dist/bundle/{chunk-AP3AG2BB.js → chunk-EQR2QVP3.js} +4 -4
- package/dist/bundle/{chunk-ABORNS53.js → chunk-EVD3X6HS.js} +7 -7
- package/dist/bundle/{chunk-5JAYP233.js → chunk-G7TQ5W5Z.js} +7 -7
- package/dist/bundle/{chunk-JCFO4LQL.js → chunk-GWMA7EU5.js} +1 -1
- package/dist/bundle/{chunk-MF2IXW4D.js → chunk-GY27B6XK.js} +1 -1
- package/dist/bundle/{chunk-7OSMWDV3.js → chunk-H7N5JMQN.js} +2 -2
- package/dist/bundle/{chunk-2Y2UWMJX.js → chunk-I4SJXEDS.js} +5 -5
- package/dist/bundle/{chunk-PI5XHH3B.js → chunk-IAFUPD2G.js} +5 -5
- package/dist/bundle/{chunk-L5XW7SRP.js → chunk-JD4EEKNA.js} +1 -1
- package/dist/bundle/{chunk-P7AWDFQW.js → chunk-KG7APWFM.js} +1 -1
- package/dist/bundle/{chunk-YBSILL43.js → chunk-L43BXXBS.js} +4 -4
- package/dist/bundle/{chunk-LDEPGWLS.js → chunk-LC5SAWVM.js} +27 -27
- package/dist/bundle/{chunk-6MDFXQ3P.js → chunk-MQ7IHK4Z.js} +257 -280
- package/dist/bundle/{chunk-536BN5HJ.js → chunk-NDEA2YAQ.js} +1 -1
- package/dist/bundle/{chunk-MZMKZ3FS.js → chunk-NECGI52P.js} +8 -8
- package/dist/bundle/{chunk-IT5OORGL.js → chunk-NPLZ67KU.js} +1 -1
- package/dist/bundle/{chunk-RRLIMG4U.js → chunk-ONEW2BND.js} +32 -32
- package/dist/bundle/{chunk-QMK5MB3I.js → chunk-RQVC4ETN.js} +2 -2
- package/dist/bundle/{chunk-2S5YZCD4.js → chunk-RTPTCTH6.js} +2 -2
- package/dist/bundle/{chunk-62H5HS77.js → chunk-S62WXHPD.js} +6 -6
- package/dist/bundle/{chunk-N75EWKKC.js → chunk-SMAODNHO.js} +1 -1
- package/dist/bundle/{chunk-BSPNSDJR.js → chunk-TVHCOWJD.js} +4 -4
- package/dist/bundle/{chunk-3TEBUFO4.js → chunk-UBUKFDMN.js} +1 -1
- package/dist/bundle/{chunk-EN3D3M3X.js → chunk-UW2FRDLZ.js} +2 -2
- package/dist/bundle/{chunk-UMWPJXNA.js → chunk-VE2NDXFO.js} +3 -3
- package/dist/bundle/{chunk-SLY3522P.js → chunk-WROCO6RJ.js} +4 -4
- package/dist/bundle/{chunk-KJBKP66D.js → chunk-XV4E2XGC.js} +3 -3
- package/dist/bundle/{chunk-JOUN3RQQ.js → chunk-XZ3XUN4R.js} +162 -178
- package/dist/bundle/{chunk-S6HHL43A.js → chunk-Y3NJODLW.js} +1 -1
- package/dist/bundle/{chunk-GUCICZ5E.js → chunk-Y3XTA24Z.js} +4 -4
- package/dist/bundle/{chunk-AFCZMG3T.js → chunk-YJMQBJWU.js} +20 -20
- package/dist/bundle/{chunk-FQ23ENBP.js → chunk-YZU5HNYY.js} +275 -275
- package/dist/bundle/{chunk-X5WJDJ7B.js → chunk-ZE5HUZJV.js} +9 -9
- package/dist/bundle/{chunk-HU2UNNN5.js → chunk-ZV2K5I2G.js} +1 -1
- package/dist/bundle/{chunk-5M4CW3PM.js → chunk-ZWBLSTFE.js} +365 -314
- package/dist/bundle/{command-contract-LRGVHRDS.js → command-contract-X3I3J4AF.js} +11 -11
- package/dist/bundle/{decode-AC2QFP22.js → decode-BF5RUGSR.js} +2 -2
- package/dist/bundle/{echarts-2LGYCSJM.js → echarts-ADL7T3Q3.js} +2 -2
- package/dist/bundle/{embed-5G5NJRTM.js → embed-DOTUACTV.js} +3 -3
- package/dist/bundle/{embedder-AWGIIEIK.js → embedder-TMR4UP7L.js} +6 -6
- package/dist/bundle/{entry-J2G7NST5.js → entry-RPG5J5UQ.js} +4 -4
- package/dist/bundle/failure-4CTYFX6P.js +66 -0
- package/dist/bundle/{first-run-CIE4REGV.js → first-run-ONCIVD42.js} +5 -5
- package/dist/bundle/{first-screen-PLNL6V5J.js → first-screen-4LRYED7X.js} +12 -12
- package/dist/bundle/{instructions-5236MVDG.js → instructions-QVBHRTPG.js} +1 -1
- package/dist/bundle/{mcp-IRYWZZMF.js → mcp-4AFVFHYE.js} +35 -35
- package/dist/bundle/memo.js +6 -6
- package/dist/bundle/{node-7746MVI2.js → node-6OXRSWHH.js} +2 -2
- package/dist/bundle/{node-sqlite-2JD5RF5A.js → node-sqlite-TG4H4T3L.js} +3 -3
- package/dist/bundle/{oauth-BUMW77DB.js → oauth-OXKNZOKZ.js} +4 -4
- package/dist/bundle/{open-CXUGW7QC.js → open-WW3W42QS.js} +2 -2
- package/dist/bundle/{openai-ORFEPFYD.js → openai-MNHTZHBT.js} +7 -7
- package/dist/bundle/{process-JXXYNYHP.js → process-TCXURVHD.js} +1 -1
- package/dist/bundle/{program-4RYVZYD2.js → program-GYW7IHWQ.js} +64 -73
- package/dist/bundle/{prompt-EHLY4L77.js → prompt-TGGJDYAS.js} +2 -2
- package/dist/bundle/{recognize-ES7MH57V.js → recognize-WV4MK35T.js} +1 -1
- package/dist/bundle/{remote-EZ76X2VI.js → remote-RQVV5MFO.js} +4 -4
- package/dist/bundle/{rerank-CDIZ6AA6.js → rerank-OJPVJGX5.js} +4 -4
- package/dist/bundle/{serve-YRSGBTJY.js → serve-KG7HPG5B.js} +6 -6
- package/dist/bundle/{server-MW5247KA.js → server-ESYNVVQC.js} +50 -50
- package/dist/bundle/server-TQVOXRHP.js +48 -0
- package/dist/bundle/server-YKMBFXQ4.js +61 -0
- package/dist/bundle/{state-S6A5VAWR.js → state-G7KN3S6X.js} +3 -3
- package/dist/bundle/{store-O5CDNS3U.js → store-GI2FLGUI.js} +9 -9
- package/dist/bundle/store-maintenance-command-CQ3KI7LW.js +48 -0
- package/dist/bundle/update-NP3I4GCG.js +69 -0
- package/dist/knowledge/project-status-command.d.ts.map +1 -1
- package/dist/knowledge/project-status-command.js +12 -19
- package/dist/knowledge/project-status-command.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +2 -2
- package/dist/bundle/auto-6555QOPH.js +0 -86
- package/dist/bundle/failure-7SDDOWOC.js +0 -66
- package/dist/bundle/server-EUYRPM4X.js +0 -48
- package/dist/bundle/server-OHIH2CMF.js +0 -61
- package/dist/bundle/store-maintenance-command-3OFVJT4R.js +0 -48
- package/dist/bundle/update-RC5CLYFY.js +0 -69
- /package/dist/bundle/{chunk-JB5P5WSQ.js → chunk-3RFXKBZA.js} +0 -0
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
sameOrdinaryFile,
|
|
9
9
|
syncDirectory,
|
|
10
10
|
writeFileAtomic
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-47KEZ3AX.js";
|
|
12
12
|
import {
|
|
13
13
|
Command,
|
|
14
14
|
DEFAULT_IMAGE_MODEL,
|
|
@@ -51,17 +51,17 @@ import {
|
|
|
51
51
|
typedCommand,
|
|
52
52
|
vectorModelKey,
|
|
53
53
|
withAttempt
|
|
54
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-XZ3XUN4R.js";
|
|
55
55
|
import {
|
|
56
56
|
isCliFailure
|
|
57
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-G7TQ5W5Z.js";
|
|
58
58
|
import {
|
|
59
59
|
isNewer,
|
|
60
60
|
updateCommand
|
|
61
61
|
} from "./chunk-I7PL5WX2.js";
|
|
62
62
|
import {
|
|
63
63
|
readOnlyLockOf
|
|
64
|
-
} from "./chunk-
|
|
64
|
+
} from "./chunk-E7NEGYRF.js";
|
|
65
65
|
import {
|
|
66
66
|
AGENDA_COLUMNS,
|
|
67
67
|
CHAT_COLUMNS,
|
|
@@ -163,7 +163,7 @@ import {
|
|
|
163
163
|
validateAst,
|
|
164
164
|
validateFields,
|
|
165
165
|
withoutField
|
|
166
|
-
} from "./chunk-
|
|
166
|
+
} from "./chunk-YZU5HNYY.js";
|
|
167
167
|
import {
|
|
168
168
|
EVENT_QUERY,
|
|
169
169
|
MEETING_FINDINGS_KIND,
|
|
@@ -217,23 +217,23 @@ import {
|
|
|
217
217
|
validateQuery,
|
|
218
218
|
walkQuery,
|
|
219
219
|
zonedMoment
|
|
220
|
-
} from "./chunk-
|
|
220
|
+
} from "./chunk-7PQZBIBH.js";
|
|
221
221
|
import {
|
|
222
222
|
DEFAULT_STEMMERS,
|
|
223
223
|
createStemmer,
|
|
224
224
|
fold,
|
|
225
225
|
normalize
|
|
226
|
-
} from "./chunk-
|
|
226
|
+
} from "./chunk-EVD3X6HS.js";
|
|
227
227
|
import {
|
|
228
228
|
DEFAULT_TASK_CATEGORIES,
|
|
229
229
|
FALLBACK_CATEGORY
|
|
230
|
-
} from "./chunk-
|
|
230
|
+
} from "./chunk-L43BXXBS.js";
|
|
231
231
|
import {
|
|
232
232
|
MAX_MODEL_IMAGE_BYTES
|
|
233
|
-
} from "./chunk-
|
|
233
|
+
} from "./chunk-BN5H2M75.js";
|
|
234
234
|
import {
|
|
235
235
|
remoteKey
|
|
236
|
-
} from "./chunk-
|
|
236
|
+
} from "./chunk-RQVC4ETN.js";
|
|
237
237
|
import {
|
|
238
238
|
Unzip,
|
|
239
239
|
UnzipInflate,
|
|
@@ -244,15 +244,15 @@ import {
|
|
|
244
244
|
placedText,
|
|
245
245
|
runEmbedders,
|
|
246
246
|
textModelsDirectory
|
|
247
|
-
} from "./chunk-
|
|
247
|
+
} from "./chunk-3W4HD6ZQ.js";
|
|
248
248
|
import {
|
|
249
249
|
installFiles,
|
|
250
250
|
megabytes
|
|
251
|
-
} from "./chunk-
|
|
251
|
+
} from "./chunk-6PTJTITL.js";
|
|
252
252
|
import {
|
|
253
253
|
storePath,
|
|
254
254
|
wirecatDirectory
|
|
255
|
-
} from "./chunk-
|
|
255
|
+
} from "./chunk-NPLZ67KU.js";
|
|
256
256
|
import {
|
|
257
257
|
resolvePaths,
|
|
258
258
|
writeSecurely
|
|
@@ -16905,7 +16905,7 @@ var require_lib3 = __commonJS({
|
|
|
16905
16905
|
}
|
|
16906
16906
|
});
|
|
16907
16907
|
|
|
16908
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16908
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/conversations/link.js
|
|
16909
16909
|
var RULES_VERSION = 5;
|
|
16910
16910
|
var LOOK_BACK = 50;
|
|
16911
16911
|
var SAME_SENDER_WITHIN = 10;
|
|
@@ -16995,13 +16995,13 @@ var latest = /* @__PURE__ */ __name((window3, matches) => {
|
|
|
16995
16995
|
var sameThread = /* @__PURE__ */ __name((a, b) => a.threadId === b.threadId, "sameThread");
|
|
16996
16996
|
var link = /* @__PURE__ */ __name((message, parentId, source, kind, confidence, method) => ({ messageId: message.id, parentId, source, kind, confidence, method }), "link");
|
|
16997
16997
|
|
|
16998
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16998
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/ports/traits.js
|
|
16999
16999
|
var syncsOneChat = /* @__PURE__ */ __name((messenger) => messenger.history !== "store" || messenger.historyOnDemand === true, "syncsOneChat");
|
|
17000
17000
|
|
|
17001
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17001
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/sqlite/document-transfer/snapshot.js
|
|
17002
17002
|
var MAX_BYTES = 16 * 1024 * 1024;
|
|
17003
17003
|
|
|
17004
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17004
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/knowledge-query.js
|
|
17005
17005
|
var ORGANIZATIONS_QUERY = {
|
|
17006
17006
|
entity: "organization",
|
|
17007
17007
|
backend: "sql",
|
|
@@ -17036,7 +17036,7 @@ var REMINDERS_QUERY = {
|
|
|
17036
17036
|
})
|
|
17037
17037
|
};
|
|
17038
17038
|
|
|
17039
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17039
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/project-transfer/preview.js
|
|
17040
17040
|
var previewProjectAnnotationSnapshot = /* @__PURE__ */ __name(async (options) => {
|
|
17041
17041
|
if (!options || typeof options !== "object" || Array.isArray(options))
|
|
17042
17042
|
throw new CliError("validation_error", "project preview options are required");
|
|
@@ -17058,7 +17058,7 @@ var previewProjectAnnotationSnapshot = /* @__PURE__ */ __name(async (options) =>
|
|
|
17058
17058
|
}
|
|
17059
17059
|
}, "previewProjectAnnotationSnapshot");
|
|
17060
17060
|
|
|
17061
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17061
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/project-transfer/snapshot.js
|
|
17062
17062
|
var snapshotProjectAnnotations = /* @__PURE__ */ __name(async (options) => {
|
|
17063
17063
|
if (!options || typeof options !== "object" || Array.isArray(options))
|
|
17064
17064
|
throw new CliError("validation_error", "snapshot options are required");
|
|
@@ -17079,7 +17079,7 @@ var snapshotProjectAnnotations = /* @__PURE__ */ __name(async (options) => {
|
|
|
17079
17079
|
}
|
|
17080
17080
|
}, "snapshotProjectAnnotations");
|
|
17081
17081
|
|
|
17082
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17082
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/cli/messenger/lacks.js
|
|
17083
17083
|
var COMMAND_NEEDS = {
|
|
17084
17084
|
"account update": ["updateProfile", "change the profile"],
|
|
17085
17085
|
"account sessions list": ["sessions", "list the account's sessions"],
|
|
@@ -17129,7 +17129,7 @@ var hideNever = /* @__PURE__ */ __name((messenger, group) => {
|
|
|
17129
17129
|
return group;
|
|
17130
17130
|
}, "hideNever");
|
|
17131
17131
|
|
|
17132
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17132
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/services/members-audit.js
|
|
17133
17133
|
var AUDIT_PAGE = 200;
|
|
17134
17134
|
var AUDIT_BUDGET = 10;
|
|
17135
17135
|
var AUDIT_PAUSE_MS = 1e3;
|
|
@@ -17209,7 +17209,7 @@ var burstJoins = /* @__PURE__ */ __name((members) => {
|
|
|
17209
17209
|
return found;
|
|
17210
17210
|
}, "burstJoins");
|
|
17211
17211
|
|
|
17212
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17212
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/meetings/cli/query-options.js
|
|
17213
17213
|
var queryWordsAfterOptions = /* @__PURE__ */ __name((command) => {
|
|
17214
17214
|
command.allowUnknownOption();
|
|
17215
17215
|
const parse = command.parseOptions.bind(command);
|
|
@@ -17229,7 +17229,7 @@ var queryWordsAfterOptions = /* @__PURE__ */ __name((command) => {
|
|
|
17229
17229
|
return command;
|
|
17230
17230
|
}, "queryWordsAfterOptions");
|
|
17231
17231
|
|
|
17232
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17232
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/meetings/cli/passage.js
|
|
17233
17233
|
var count = /* @__PURE__ */ __name((value) => {
|
|
17234
17234
|
if (!/^(0|[1-9]\d*)$/.test(value) || !Number.isSafeInteger(Number(value)))
|
|
17235
17235
|
throw new CliError("validation_error", "expected a nonnegative safe integer");
|
|
@@ -17271,7 +17271,7 @@ var addMeetingPassageCommandDefinition = /* @__PURE__ */ __name((program, deps)
|
|
|
17271
17271
|
var createMeetingPassageCommand = sharedCommand(createMeetingPassageCommandDefinition);
|
|
17272
17272
|
var addMeetingPassageCommand = sharedCommand(addMeetingPassageCommandDefinition);
|
|
17273
17273
|
|
|
17274
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17274
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/meetings/cli/project-evidence.js
|
|
17275
17275
|
var integer2 = /* @__PURE__ */ __name((value) => {
|
|
17276
17276
|
if (!/^[1-9]\d*$/.test(value) || !Number.isSafeInteger(Number(value)))
|
|
17277
17277
|
throw new CliError("validation_error", "expected a positive safe integer");
|
|
@@ -17294,7 +17294,7 @@ ${fieldsHelp(MEETING_PROJECT_EVIDENCE_QUERY)}`).option("--limit <n>", "hits in o
|
|
|
17294
17294
|
}, "addMeetingProjectEvidenceCommandDefinition");
|
|
17295
17295
|
var addMeetingProjectEvidenceCommand = sharedCommand(addMeetingProjectEvidenceCommandDefinition);
|
|
17296
17296
|
|
|
17297
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17297
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/meetings/cli/search.js
|
|
17298
17298
|
var ZONED = /(?:Z|[+-]\d{2}:?\d{2})$/i;
|
|
17299
17299
|
var moment = /* @__PURE__ */ __name((flag, end, readIn) => (value) => {
|
|
17300
17300
|
const zone = timezoneOf();
|
|
@@ -17380,7 +17380,7 @@ var addMeetingSearchCommandDefinition = /* @__PURE__ */ __name((program, deps) =
|
|
|
17380
17380
|
var createMeetingSearchCommand = sharedCommand(createMeetingSearchCommandDefinition);
|
|
17381
17381
|
var addMeetingSearchCommand = sharedCommand(addMeetingSearchCommandDefinition);
|
|
17382
17382
|
|
|
17383
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17383
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/meetings/cli/index.js
|
|
17384
17384
|
var integer4 = /* @__PURE__ */ __name((text2) => {
|
|
17385
17385
|
if (!/^[1-9]\d*$/.test(text2) || !Number.isSafeInteger(Number(text2)))
|
|
17386
17386
|
throw new InvalidArgumentError("expected a positive integer");
|
|
@@ -17512,7 +17512,7 @@ ${fieldsHelp(EVENT_QUERY, MEETING_QUERY_GUIDE)}`);
|
|
|
17512
17512
|
}, "addMeetingCommandsDefinition");
|
|
17513
17513
|
var addMeetingCommands = sharedCommand(addMeetingCommandsDefinition);
|
|
17514
17514
|
|
|
17515
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17515
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/cli/list-query.js
|
|
17516
17516
|
var LIST_QUERY_GUIDE = "https://github.com/WireCatLabs/cli-core/blob/main/docs/search/query-language.md";
|
|
17517
17517
|
var QUERY_ARGUMENT = "field:value terms that narrow the list \u2014 the fields are below";
|
|
17518
17518
|
var withQuery = /* @__PURE__ */ __name((command, registry) => {
|
|
@@ -17645,7 +17645,7 @@ var termField = /* @__PURE__ */ __name((name, type, example, more = {}) => nativ
|
|
|
17645
17645
|
var queryHelp = /* @__PURE__ */ __name((registry) => `
|
|
17646
17646
|
${fieldsHelp(registry, LIST_QUERY_GUIDE)}`, "queryHelp");
|
|
17647
17647
|
|
|
17648
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17648
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/cli/paging.js
|
|
17649
17649
|
var positiveCount = /* @__PURE__ */ __name((flag) => (value) => {
|
|
17650
17650
|
if (!/^\d+$/.test(value.trim()) || Number(value) < 1)
|
|
17651
17651
|
throw new CliError("validation_error", `${flag} takes a whole number from 1 upwards, not "${value}"`);
|
|
@@ -17654,7 +17654,7 @@ var positiveCount = /* @__PURE__ */ __name((flag) => (value) => {
|
|
|
17654
17654
|
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");
|
|
17655
17655
|
var window = /* @__PURE__ */ __name(({ limit, page, all }) => all ? { offset: 0 } : { limit, offset: (page - 1) * limit }, "window");
|
|
17656
17656
|
|
|
17657
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17657
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/cli/messenger/chat-answers.js
|
|
17658
17658
|
var defined = /* @__PURE__ */ __name((record2) => Object.fromEntries(Object.entries(record2).filter(([, value]) => value !== void 0)), "defined");
|
|
17659
17659
|
var chatRef = /* @__PURE__ */ __name((account, chat) => formatReference({ type: "chat", provider: account.provider, account: account.account, chat }), "chatRef");
|
|
17660
17660
|
var settingsOf = /* @__PURE__ */ __name((settings) => defined({
|
|
@@ -17916,7 +17916,7 @@ var sessionAnswer = /* @__PURE__ */ __name(({ current, client, device, location,
|
|
|
17916
17916
|
...createdAt === void 0 ? {} : { created_at: createdAt }
|
|
17917
17917
|
}), "sessionAnswer");
|
|
17918
17918
|
|
|
17919
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17919
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/ports/messenger.js
|
|
17920
17920
|
var throughWrapper = /* @__PURE__ */ __name((inner, handled, wrap = (_, call) => call) => new Proxy(handled, {
|
|
17921
17921
|
get: /* @__PURE__ */ __name((own, key) => {
|
|
17922
17922
|
if (key in own)
|
|
@@ -17933,12 +17933,12 @@ var capability = /* @__PURE__ */ __name((adapter, method, what) => {
|
|
|
17933
17933
|
return found.bind(adapter);
|
|
17934
17934
|
}, "capability");
|
|
17935
17935
|
|
|
17936
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17936
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/sends/send-id.js
|
|
17937
17937
|
import { randomBytes } from "node:crypto";
|
|
17938
17938
|
var newSendId = /* @__PURE__ */ __name(() => randomBytes(8).readBigInt64BE().toString(), "newSendId");
|
|
17939
17939
|
var newOperationId = newSendId;
|
|
17940
17940
|
|
|
17941
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17941
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/services/deps.js
|
|
17942
17942
|
var accountStore = /* @__PURE__ */ __name(async (deps) => (await deps.store()).forAccount(await deps.account()), "accountStore");
|
|
17943
17943
|
var crossAccount = /* @__PURE__ */ __name((deps, _reason) => deps.store(), "crossAccount");
|
|
17944
17944
|
var NO_LOCAL_STORE = "this answer comes from the messenger, not from the local store";
|
|
@@ -18015,7 +18015,7 @@ var storeOnlyDeps = /* @__PURE__ */ __name((store, account, { app, env }) => {
|
|
|
18015
18015
|
return { ...storedDeps(messenger, store, account, guard), ...env === void 0 ? {} : { env } };
|
|
18016
18016
|
}, "storeOnlyDeps");
|
|
18017
18017
|
|
|
18018
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18018
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/services/patience.js
|
|
18019
18019
|
import { setTimeout as sleep } from "node:timers/promises";
|
|
18020
18020
|
var LONGEST_WAIT_MS = 5 * 60 * 1e3;
|
|
18021
18021
|
var patiently = /* @__PURE__ */ __name(async (request, note2, stop) => {
|
|
@@ -18038,10 +18038,10 @@ var patiently = /* @__PURE__ */ __name(async (request, note2, stop) => {
|
|
|
18038
18038
|
}
|
|
18039
18039
|
}, "patiently");
|
|
18040
18040
|
|
|
18041
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18041
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/services/archive.js
|
|
18042
18042
|
import { setTimeout as sleep2 } from "node:timers/promises";
|
|
18043
18043
|
|
|
18044
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18044
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/services/backfill-estimate.js
|
|
18045
18045
|
var REQUEST_MS = 400;
|
|
18046
18046
|
var estimateBackfill = /* @__PURE__ */ __name(({ ranges, held, newest, page, maxPages, pauseMs }) => {
|
|
18047
18047
|
const lowest = ranges[0];
|
|
@@ -18064,13 +18064,13 @@ var estimateBackfill = /* @__PURE__ */ __name(({ ranges, held, newest, page, max
|
|
|
18064
18064
|
};
|
|
18065
18065
|
}, "estimateBackfill");
|
|
18066
18066
|
|
|
18067
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18067
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/domain/recovery.js
|
|
18068
18068
|
var withRecovery = /* @__PURE__ */ __name((error) => ({
|
|
18069
18069
|
...error,
|
|
18070
18070
|
retryable: typeof error.retryable === "boolean" ? error.retryable : error.code === "rate_limited" || error.status === 429
|
|
18071
18071
|
}), "withRecovery");
|
|
18072
18072
|
|
|
18073
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18073
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/services/batch.js
|
|
18074
18074
|
var actionable = /* @__PURE__ */ __name((error) => {
|
|
18075
18075
|
if (isCliFailure(error))
|
|
18076
18076
|
return withRecovery({ code: error.code, message: error.message, ...error.details });
|
|
@@ -18153,7 +18153,7 @@ var mergeBatches = /* @__PURE__ */ __name((a, b) => {
|
|
|
18153
18153
|
};
|
|
18154
18154
|
}, "mergeBatches");
|
|
18155
18155
|
|
|
18156
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18156
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/domain/ref-arguments.js
|
|
18157
18157
|
var TAKES = {
|
|
18158
18158
|
chat: "a chat: chat:<provider>/<account>/<chat>, its id or its title",
|
|
18159
18159
|
message: "a message: msg:<provider>/<account>/<chat>/<message>, or a chat and the message's id"
|
|
@@ -18213,7 +18213,7 @@ var ensureAccount = /* @__PURE__ */ __name(async (reference, scope, profilesOn)
|
|
|
18213
18213
|
throw wrongAccount(reference, scope, profiles);
|
|
18214
18214
|
}, "ensureAccount");
|
|
18215
18215
|
|
|
18216
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18216
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/resolve.js
|
|
18217
18217
|
var isId = /* @__PURE__ */ __name((reference) => /^-?\d+$/.test(reference.trim()), "isId");
|
|
18218
18218
|
var foldName = /* @__PURE__ */ __name((name) => name.normalize("NFC").replace(/[\uFE0E\uFE0F\u200D]/g, "").toLowerCase(), "foldName");
|
|
18219
18219
|
var pickChat = /* @__PURE__ */ __name((reference, chats) => {
|
|
@@ -18258,7 +18258,7 @@ ${lines3}`, { candidates });
|
|
|
18258
18258
|
}, "ambiguous");
|
|
18259
18259
|
var isPresent = /* @__PURE__ */ __name((value) => value !== null && value !== void 0, "isPresent");
|
|
18260
18260
|
|
|
18261
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18261
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/services/message-resolution.js
|
|
18262
18262
|
var readChatId = /* @__PURE__ */ __name(async (deps, reference, store, account) => {
|
|
18263
18263
|
if (deps.reads !== "store")
|
|
18264
18264
|
return keptChatId(deps.messenger, reference, store, account);
|
|
@@ -18417,7 +18417,7 @@ var senderAmong = /* @__PURE__ */ __name(async (store, accounts, reference) => {
|
|
|
18417
18417
|
}
|
|
18418
18418
|
}, "senderAmong");
|
|
18419
18419
|
|
|
18420
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18420
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/images/context/index.js
|
|
18421
18421
|
var CONTEXT_MESSAGES = 3;
|
|
18422
18422
|
var CONTEXT_MINUTES = 10;
|
|
18423
18423
|
var MAX_CHARS = 1200;
|
|
@@ -18441,12 +18441,12 @@ var context = {
|
|
|
18441
18441
|
}, "describe")
|
|
18442
18442
|
};
|
|
18443
18443
|
|
|
18444
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18444
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/images/registry.js
|
|
18445
18445
|
var BUILT_INS = [context];
|
|
18446
18446
|
var providers = [...BUILT_INS];
|
|
18447
18447
|
var registeredImageProviders = /* @__PURE__ */ __name(() => providers, "registeredImageProviders");
|
|
18448
18448
|
|
|
18449
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18449
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/services/conversations.js
|
|
18450
18450
|
var READ_PAGE = 5e3;
|
|
18451
18451
|
var CHAIN = 50;
|
|
18452
18452
|
var CONVERSATION_QUERY = {
|
|
@@ -18598,7 +18598,7 @@ var sized = /* @__PURE__ */ __name((size4) => {
|
|
|
18598
18598
|
return size4;
|
|
18599
18599
|
}, "sized");
|
|
18600
18600
|
|
|
18601
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18601
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/services/embeddings-maintenance.js
|
|
18602
18602
|
var REFRESH_BOUNDS = { maxChats: 20, maxChunks: 2e3 };
|
|
18603
18603
|
var MESSAGE_PAGE = 5e3;
|
|
18604
18604
|
var PER_SESSION = 8;
|
|
@@ -18617,7 +18617,7 @@ var embeddingTarget = /* @__PURE__ */ __name((deps, choice = DEFAULT_TEXT_MODEL)
|
|
|
18617
18617
|
price: remote.price,
|
|
18618
18618
|
installed: true,
|
|
18619
18619
|
perBatch: PER_REQUEST * concurrency,
|
|
18620
|
-
open: /* @__PURE__ */ __name(async () => (await import("./remote-
|
|
18620
|
+
open: /* @__PURE__ */ __name(async () => (await import("./remote-RQVV5MFO.js")).openRemote(remote, apiKey, { concurrency }), "open")
|
|
18621
18621
|
};
|
|
18622
18622
|
}
|
|
18623
18623
|
const model = textModel(choice);
|
|
@@ -18634,7 +18634,7 @@ var embeddingTarget = /* @__PURE__ */ __name((deps, choice = DEFAULT_TEXT_MODEL)
|
|
|
18634
18634
|
if (!isTextModelInstalled(model, directory2))
|
|
18635
18635
|
throw notDownloaded(model.id);
|
|
18636
18636
|
if (apart) {
|
|
18637
|
-
const { openProcess } = await import("./process-
|
|
18637
|
+
const { openProcess } = await import("./process-TCXURVHD.js");
|
|
18638
18638
|
return openProcess(model, directory2, { threads: threads ?? defaultThreads() });
|
|
18639
18639
|
}
|
|
18640
18640
|
return openEmbedder(model, directory2, { threads: threads ?? defaultThreads() });
|
|
@@ -18923,7 +18923,7 @@ var shaped = /* @__PURE__ */ __name(({ chatId, builtAt, algorithmVersion, pendin
|
|
|
18923
18923
|
return { ...one2, state };
|
|
18924
18924
|
}, "shaped");
|
|
18925
18925
|
|
|
18926
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18926
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/services/search-catchup.js
|
|
18927
18927
|
var CATCH_UP_BOUNDS = { maxChunks: 500, maxMessages: 1e4, timeMs: 3e4 };
|
|
18928
18928
|
var validateCatchUpBounds = /* @__PURE__ */ __name((options) => {
|
|
18929
18929
|
for (const [key, value, maximum] of [
|
|
@@ -18976,7 +18976,7 @@ var catchUpSearch = /* @__PURE__ */ __name(async (deps, chat, options, signal, c
|
|
|
18976
18976
|
}
|
|
18977
18977
|
}, "catchUpSearch");
|
|
18978
18978
|
|
|
18979
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18979
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/services/archive.js
|
|
18980
18980
|
var pushed = /* @__PURE__ */ __name((deps, what) => {
|
|
18981
18981
|
if (deps.reads === "store") {
|
|
18982
18982
|
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`);
|
|
@@ -19342,7 +19342,7 @@ var timeOfKey = /* @__PURE__ */ __name(async (store, account, chatId, key, byTim
|
|
|
19342
19342
|
return message?.timestamp ?? fallback;
|
|
19343
19343
|
}, "timeOfKey");
|
|
19344
19344
|
|
|
19345
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19345
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/services/questions.js
|
|
19346
19346
|
var LINKS = /https?:\/\/\S+/g;
|
|
19347
19347
|
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");
|
|
19348
19348
|
var questions = /* @__PURE__ */ __name((messages, { answerers: answerers2, asker = "others" }) => {
|
|
@@ -19372,7 +19372,7 @@ var questions = /* @__PURE__ */ __name((messages, { answerers: answerers2, asker
|
|
|
19372
19372
|
});
|
|
19373
19373
|
}, "questions");
|
|
19374
19374
|
|
|
19375
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19375
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/services/task-categories.js
|
|
19376
19376
|
var names = /* @__PURE__ */ __name((categories) => categories.map(({ name }) => name).join(", "), "names");
|
|
19377
19377
|
var taskCategoryOf = /* @__PURE__ */ __name((categories = DEFAULT_TASK_CATEGORIES, flag = "--category") => (typed) => {
|
|
19378
19378
|
const name = typed.trim().toLowerCase();
|
|
@@ -19429,7 +19429,7 @@ var categorize = /* @__PURE__ */ __name((text2, categories = DEFAULT_TASK_CATEGO
|
|
|
19429
19429
|
return best.name;
|
|
19430
19430
|
}, "categorize");
|
|
19431
19431
|
|
|
19432
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19432
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/services/task-rules.js
|
|
19433
19433
|
var taskAccount = /* @__PURE__ */ __name(({ provider, account }) => `${provider}:${account}`, "taskAccount");
|
|
19434
19434
|
var RULES_IN = {
|
|
19435
19435
|
dialog: "all",
|
|
@@ -19635,7 +19635,7 @@ var applyTaskRulesToChats = /* @__PURE__ */ __name(async (store, account, chatId
|
|
|
19635
19635
|
return passes;
|
|
19636
19636
|
}, "applyTaskRulesToChats");
|
|
19637
19637
|
|
|
19638
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19638
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/context/evidence-response.js
|
|
19639
19639
|
var contextSourceKey = /* @__PURE__ */ __name((source) => JSON.stringify([source.kind, source.accountId, source.provider, source.account]), "contextSourceKey");
|
|
19640
19640
|
var validateContextEvidencePage = /* @__PURE__ */ __name((page, request) => {
|
|
19641
19641
|
const fail3 = /* @__PURE__ */ __name(() => {
|
|
@@ -19699,7 +19699,7 @@ var validateContextEvidencePage = /* @__PURE__ */ __name((page, request) => {
|
|
|
19699
19699
|
}
|
|
19700
19700
|
}, "validateContextEvidencePage");
|
|
19701
19701
|
|
|
19702
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19702
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/context/read-budget.js
|
|
19703
19703
|
var contextReadBudget = /* @__PURE__ */ __name((limits = {}) => {
|
|
19704
19704
|
if (!limits || typeof limits !== "object" || Array.isArray(limits))
|
|
19705
19705
|
throw new CliError("validation_error", "limits needs a context read allowance");
|
|
@@ -19752,7 +19752,7 @@ var contextReadBudget = /* @__PURE__ */ __name((limits = {}) => {
|
|
|
19752
19752
|
};
|
|
19753
19753
|
}, "contextReadBudget");
|
|
19754
19754
|
|
|
19755
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19755
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/services/context-evidence.js
|
|
19756
19756
|
var createContextEvidenceReader = /* @__PURE__ */ __name((port, allowed, limits) => {
|
|
19757
19757
|
if (!port || typeof port.read !== "function")
|
|
19758
19758
|
throw new CliError("configuration_error", "context evidence reader is unavailable");
|
|
@@ -19796,7 +19796,7 @@ var createContextEvidenceReader = /* @__PURE__ */ __name((port, allowed, limits)
|
|
|
19796
19796
|
};
|
|
19797
19797
|
}, "createContextEvidenceReader");
|
|
19798
19798
|
|
|
19799
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19799
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/services/ingest.js
|
|
19800
19800
|
var emptyReceipt = /* @__PURE__ */ __name((dryRun) => ({
|
|
19801
19801
|
dryRun,
|
|
19802
19802
|
source: null,
|
|
@@ -19871,7 +19871,7 @@ var ingest = /* @__PURE__ */ __name(async (store, envelope, { account, dryRun =
|
|
|
19871
19871
|
return receipt;
|
|
19872
19872
|
}, "ingest");
|
|
19873
19873
|
|
|
19874
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19874
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/services/project-purposes.js
|
|
19875
19875
|
var BUILT_IN_PURPOSES = ["work", "sales", "support", "other"];
|
|
19876
19876
|
var DEFAULT_PURPOSES = ["work"];
|
|
19877
19877
|
var LINK_PURPOSE = "work";
|
|
@@ -19901,7 +19901,7 @@ var purposeList = /* @__PURE__ */ __name((value, previous = []) => [
|
|
|
19901
19901
|
...value.split(",").map((one2) => one2.trim()).filter(Boolean)
|
|
19902
19902
|
], "purposeList");
|
|
19903
19903
|
|
|
19904
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19904
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/services/moment.js
|
|
19905
19905
|
var AGO = /^(\d+)(m|h|d)$/;
|
|
19906
19906
|
var AGO_MS = { m: 6e4, h: 36e5, d: 864e5 };
|
|
19907
19907
|
var DATE = /^\d{4}-\d{2}-\d{2}/;
|
|
@@ -19941,7 +19941,7 @@ var dateWindow = /* @__PURE__ */ __name(({ sinceTime, untilTime, zone, now = Dat
|
|
|
19941
19941
|
};
|
|
19942
19942
|
}, "dateWindow");
|
|
19943
19943
|
|
|
19944
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19944
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/botcheck/check.js
|
|
19945
19945
|
var DAY_MS = 864e5;
|
|
19946
19946
|
var NEW_DAYS = 30;
|
|
19947
19947
|
var SAME_TEXT_MIN = 20;
|
|
@@ -20018,7 +20018,7 @@ var scorePerson = /* @__PURE__ */ __name(({ subject, provider, activity, photos,
|
|
|
20018
20018
|
};
|
|
20019
20019
|
}, "scorePerson");
|
|
20020
20020
|
|
|
20021
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20021
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/http/time-limit.js
|
|
20022
20022
|
var timeLimit = /* @__PURE__ */ __name((ms) => {
|
|
20023
20023
|
const controller = new AbortController();
|
|
20024
20024
|
const timer = setTimeout(() => controller.abort(new DOMException("The operation timed out.", "TimeoutError")), ms);
|
|
@@ -20034,7 +20034,7 @@ var withTimeLimit = /* @__PURE__ */ __name(async (ms, run) => {
|
|
|
20034
20034
|
}
|
|
20035
20035
|
}, "withTimeLimit");
|
|
20036
20036
|
|
|
20037
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20037
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/botcheck/registries.js
|
|
20038
20038
|
var REGISTRIES = {
|
|
20039
20039
|
cas: { title: "Combot Anti-Spam (CAS)", docs: "https://cas.chat/api" },
|
|
20040
20040
|
lols: { title: "lols.bot", docs: "https://api.lols.bot/lols-bot.json" }
|
|
@@ -20121,7 +20121,7 @@ var notCovered = /* @__PURE__ */ __name((messenger, now = /* @__PURE__ */ new Da
|
|
|
20121
20121
|
detail: `lists Telegram accounts only, not ${messenger} ones`
|
|
20122
20122
|
})), "notCovered");
|
|
20123
20123
|
|
|
20124
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20124
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/botcheck/service.js
|
|
20125
20125
|
var ACTIVITY_MESSAGES = 1e3;
|
|
20126
20126
|
var botCheckService = /* @__PURE__ */ __name((deps) => {
|
|
20127
20127
|
const subjectOf = /* @__PURE__ */ __name(async (reference) => {
|
|
@@ -20209,7 +20209,7 @@ var botCheckService = /* @__PURE__ */ __name((deps) => {
|
|
|
20209
20209
|
};
|
|
20210
20210
|
}, "botCheckService");
|
|
20211
20211
|
|
|
20212
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20212
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/domain/thread.js
|
|
20213
20213
|
var threadIdOf = /* @__PURE__ */ __name((value) => {
|
|
20214
20214
|
if (value === void 0)
|
|
20215
20215
|
return void 0;
|
|
@@ -20219,7 +20219,7 @@ var threadIdOf = /* @__PURE__ */ __name((value) => {
|
|
|
20219
20219
|
return id2;
|
|
20220
20220
|
}, "threadIdOf");
|
|
20221
20221
|
|
|
20222
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20222
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/services/chat-stats.js
|
|
20223
20223
|
var TOP_POSTS = 5;
|
|
20224
20224
|
var JOINS = /* @__PURE__ */ new Set(["join", "add"]);
|
|
20225
20225
|
var LEAVES = /* @__PURE__ */ new Set(["leave", "remove"]);
|
|
@@ -20336,7 +20336,7 @@ var median = /* @__PURE__ */ __name((values) => {
|
|
|
20336
20336
|
return Math.round(sorted.length % 2 === 0 ? ((sorted[middle - 1] ?? upper) + upper) / 2 : upper);
|
|
20337
20337
|
}, "median");
|
|
20338
20338
|
|
|
20339
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20339
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/services/member-history.js
|
|
20340
20340
|
var memberEvents = /* @__PURE__ */ __name((stays, revisions, since = 0) => {
|
|
20341
20341
|
const events = [];
|
|
20342
20342
|
for (const stay of stays) {
|
|
@@ -20368,7 +20368,7 @@ var memberEvents = /* @__PURE__ */ __name((stays, revisions, since = 0) => {
|
|
|
20368
20368
|
return events.filter(({ at }) => Date.parse(at) >= since).sort((a, b) => Date.parse(a.at) - Date.parse(b.at) || a.id.localeCompare(b.id));
|
|
20369
20369
|
}, "memberEvents");
|
|
20370
20370
|
|
|
20371
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20371
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/services/chats.js
|
|
20372
20372
|
var EVENTS_DAYS = 7;
|
|
20373
20373
|
var TRACKED_DAYS = 30;
|
|
20374
20374
|
var STATS_PAGE = 1e3;
|
|
@@ -20663,7 +20663,7 @@ var storedMembers = /* @__PURE__ */ __name(async (store, chatId) => {
|
|
|
20663
20663
|
return members.length === 0 ? null : members;
|
|
20664
20664
|
}, "storedMembers");
|
|
20665
20665
|
|
|
20666
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20666
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/services/inbox.js
|
|
20667
20667
|
var INBOX_CHATS = 20;
|
|
20668
20668
|
var REVIEW_DAYS = 3;
|
|
20669
20669
|
var UNANSWERED_HOURS = 24;
|
|
@@ -20871,7 +20871,7 @@ var inboxService = /* @__PURE__ */ __name((deps) => {
|
|
|
20871
20871
|
};
|
|
20872
20872
|
}, "inboxService");
|
|
20873
20873
|
|
|
20874
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20874
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/services/person-context.js
|
|
20875
20875
|
var CONTEXT_MESSAGES2 = 10;
|
|
20876
20876
|
var CONTEXT_BYTES = 64 * 1024;
|
|
20877
20877
|
var toContext = /* @__PURE__ */ __name((key, message, chatTitle2) => ({
|
|
@@ -21132,10 +21132,10 @@ var personMessages = /* @__PURE__ */ __name(async (store, asked, reference, { ch
|
|
|
21132
21132
|
};
|
|
21133
21133
|
}, "personMessages");
|
|
21134
21134
|
|
|
21135
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21135
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/services/meeting-evidence.js
|
|
21136
21136
|
import { createHash } from "node:crypto";
|
|
21137
21137
|
|
|
21138
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21138
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/services/meeting-reference.js
|
|
21139
21139
|
var missing2 = /* @__PURE__ */ __name(() => new CliError("not_found", "the meeting evidence is unavailable for this account"), "missing");
|
|
21140
21140
|
var authorizedMeetingMetadata = /* @__PURE__ */ __name(async (store, accountId, reference, options = {}) => {
|
|
21141
21141
|
const parsed = parseMeetingReference(reference);
|
|
@@ -21153,7 +21153,7 @@ var authorizedMeetingMetadata = /* @__PURE__ */ __name(async (store, accountId,
|
|
|
21153
21153
|
return { parsed, meeting };
|
|
21154
21154
|
}, "authorizedMeetingMetadata");
|
|
21155
21155
|
|
|
21156
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21156
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/services/meeting-evidence.js
|
|
21157
21157
|
var hash = /* @__PURE__ */ __name((value) => createHash("sha256").update(JSON.stringify(value)).digest("hex"), "hash");
|
|
21158
21158
|
var checkMeetingCancelled = /* @__PURE__ */ __name((signal) => {
|
|
21159
21159
|
if (signal?.aborted)
|
|
@@ -21352,7 +21352,7 @@ var readMeetingEvidence = /* @__PURE__ */ __name(async (store, accountId, refere
|
|
|
21352
21352
|
return { ...packet, fingerprint: hash(packet) };
|
|
21353
21353
|
}, "readMeetingEvidence");
|
|
21354
21354
|
|
|
21355
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21355
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/services/person-meeting-context.js
|
|
21356
21356
|
var personMeetingContext = /* @__PURE__ */ __name(async (store, personReference, options) => {
|
|
21357
21357
|
const { meetings = 10, cues = 5, bytes: bytes2 = 64 * 1024, scanLimit = 1e3, since, signal } = options;
|
|
21358
21358
|
const requestedAccounts = options.accountIds;
|
|
@@ -21451,7 +21451,7 @@ var personMeetingContext = /* @__PURE__ */ __name(async (store, personReference,
|
|
|
21451
21451
|
};
|
|
21452
21452
|
}, "personMeetingContext");
|
|
21453
21453
|
|
|
21454
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21454
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/services/person-preparation.js
|
|
21455
21455
|
var PREPARE_BYTES = 96 * 1024;
|
|
21456
21456
|
var MEETINGS = 5;
|
|
21457
21457
|
var CUES = 3;
|
|
@@ -21568,7 +21568,7 @@ var meetingsOf = /* @__PURE__ */ __name(async (store, uid, stored, since, left)
|
|
|
21568
21568
|
}
|
|
21569
21569
|
}, "meetingsOf");
|
|
21570
21570
|
|
|
21571
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21571
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/services/person-profile.js
|
|
21572
21572
|
var personProfile = /* @__PURE__ */ __name(async (deps, person, known2) => {
|
|
21573
21573
|
const online = deps.offline ? void 0 : await deps.connection();
|
|
21574
21574
|
const held = await storeIfOpen(deps);
|
|
@@ -21638,7 +21638,7 @@ var quiet = /* @__PURE__ */ __name((facts) => facts.chats.map(({ id: id2, title,
|
|
|
21638
21638
|
complete: false
|
|
21639
21639
|
})), "quiet");
|
|
21640
21640
|
|
|
21641
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21641
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/services/person-timeline.js
|
|
21642
21642
|
var TIMELINE_ITEMS = 50;
|
|
21643
21643
|
var TIMELINE_MAX = 500;
|
|
21644
21644
|
var SCOPES2 = ["personal", "work"];
|
|
@@ -21693,7 +21693,7 @@ var personTimeline = /* @__PURE__ */ __name(async (store, asked, reference, { sc
|
|
|
21693
21693
|
};
|
|
21694
21694
|
}, "personTimeline");
|
|
21695
21695
|
|
|
21696
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21696
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/services/people.js
|
|
21697
21697
|
var peopleService = /* @__PURE__ */ __name((deps) => {
|
|
21698
21698
|
const localCard = /* @__PURE__ */ __name(async (card, includeNotes = false) => {
|
|
21699
21699
|
const held = await storeIfOpen(deps);
|
|
@@ -21920,7 +21920,7 @@ var withoutPhone = /* @__PURE__ */ __name((answer) => {
|
|
|
21920
21920
|
return rest;
|
|
21921
21921
|
}, "withoutPhone");
|
|
21922
21922
|
|
|
21923
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21923
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/services/task-stats.js
|
|
21924
21924
|
var TASK_STATS_BY = ["chat", "meeting", "project"];
|
|
21925
21925
|
var PERIOD_FIELD = "created";
|
|
21926
21926
|
var refuseNestedPeriod = /* @__PURE__ */ __name((node, top = true) => {
|
|
@@ -22023,7 +22023,7 @@ var meetingNames = /* @__PURE__ */ __name(async (store, groups) => {
|
|
|
22023
22023
|
}));
|
|
22024
22024
|
}, "meetingNames");
|
|
22025
22025
|
|
|
22026
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22026
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/services/task-tag-filters.js
|
|
22027
22027
|
var taskTagFilters = /* @__PURE__ */ __name(async (store, query) => {
|
|
22028
22028
|
const tags = /* @__PURE__ */ new Map();
|
|
22029
22029
|
for (const node of query ? walkQuery(query.root) : [])
|
|
@@ -22032,7 +22032,7 @@ var taskTagFilters = /* @__PURE__ */ __name(async (store, query) => {
|
|
|
22032
22032
|
return tags;
|
|
22033
22033
|
}, "taskTagFilters");
|
|
22034
22034
|
|
|
22035
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22035
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/services/tasks.js
|
|
22036
22036
|
var TASK_QUERY = {
|
|
22037
22037
|
entity: "task",
|
|
22038
22038
|
backend: "sql",
|
|
@@ -22524,7 +22524,7 @@ var taskView = /* @__PURE__ */ __name(async (store, account, task2) => {
|
|
|
22524
22524
|
};
|
|
22525
22525
|
}, "taskView");
|
|
22526
22526
|
|
|
22527
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22527
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/services/proposal-tasks.js
|
|
22528
22528
|
var proposalSource = /* @__PURE__ */ __name((id2) => `proposed-action:${id2}`, "proposalSource");
|
|
22529
22529
|
var approveAsTask = /* @__PURE__ */ __name(async (store, id2, by) => {
|
|
22530
22530
|
const proposal = await store.proposedActions.get(id2);
|
|
@@ -22547,7 +22547,7 @@ var approveAsTask = /* @__PURE__ */ __name(async (store, id2, by) => {
|
|
|
22547
22547
|
return { proposal: await store.proposedActions.approve(proposal.id, by, { task: task2.id }), task: task2 };
|
|
22548
22548
|
}, "approveAsTask");
|
|
22549
22549
|
|
|
22550
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22550
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/services/proposals/ids.js
|
|
22551
22551
|
var MAX_IDS = 500;
|
|
22552
22552
|
var refuse = /* @__PURE__ */ __name((message) => {
|
|
22553
22553
|
throw new CliError("validation_error", message, { reason: "proposal.ids" });
|
|
@@ -22589,7 +22589,7 @@ var parseProposalIds = /* @__PURE__ */ __name((text2) => {
|
|
|
22589
22589
|
return ids;
|
|
22590
22590
|
}, "parseProposalIds");
|
|
22591
22591
|
|
|
22592
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22592
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/shared.js
|
|
22593
22593
|
var proposerOfAuthor = /* @__PURE__ */ __name((author) => {
|
|
22594
22594
|
if (author.type === "person")
|
|
22595
22595
|
return { type: "person", id: author.id };
|
|
@@ -22631,7 +22631,7 @@ var storedStatus = /* @__PURE__ */ __name((filter) => {
|
|
|
22631
22631
|
return status === "proposed" || status === "rejected" ? status : void 0;
|
|
22632
22632
|
}, "storedStatus");
|
|
22633
22633
|
|
|
22634
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22634
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/action.js
|
|
22635
22635
|
var rowOf = /* @__PURE__ */ __name((action2) => ({
|
|
22636
22636
|
id: action2.id,
|
|
22637
22637
|
kind: "action",
|
|
@@ -22671,7 +22671,7 @@ var actionKind = /* @__PURE__ */ __name((store, claimed) => ({
|
|
|
22671
22671
|
}, "decide")
|
|
22672
22672
|
}), "actionKind");
|
|
22673
22673
|
|
|
22674
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22674
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/fact.js
|
|
22675
22675
|
var STATUS = {
|
|
22676
22676
|
proposed: "proposed",
|
|
22677
22677
|
accepted: "confirmed",
|
|
@@ -22714,7 +22714,7 @@ var factKind = /* @__PURE__ */ __name((store) => ({
|
|
|
22714
22714
|
}, "decide")
|
|
22715
22715
|
}), "factKind");
|
|
22716
22716
|
|
|
22717
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22717
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/finance.js
|
|
22718
22718
|
var rowOf3 = /* @__PURE__ */ __name((kind, entry) => ({
|
|
22719
22719
|
id: entry.ref,
|
|
22720
22720
|
kind,
|
|
@@ -22749,7 +22749,7 @@ var financeKind = /* @__PURE__ */ __name((store, kind) => ({
|
|
|
22749
22749
|
var invoiceKind = /* @__PURE__ */ __name((store) => financeKind(store, "invoice"), "invoiceKind");
|
|
22750
22750
|
var paymentKind = /* @__PURE__ */ __name((store) => financeKind(store, "payment"), "paymentKind");
|
|
22751
22751
|
|
|
22752
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22752
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/findings.js
|
|
22753
22753
|
var FACT_SUMMARIES = {
|
|
22754
22754
|
fact: /* @__PURE__ */ __name((finding) => finding.statement, "fact"),
|
|
22755
22755
|
task: /* @__PURE__ */ __name((finding) => finding.title, "task"),
|
|
@@ -22821,7 +22821,7 @@ var findingsKind = /* @__PURE__ */ __name((store) => {
|
|
|
22821
22821
|
};
|
|
22822
22822
|
}, "findingsKind");
|
|
22823
22823
|
|
|
22824
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22824
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/key-document.js
|
|
22825
22825
|
var linkRow = /* @__PURE__ */ __name((link4) => ({
|
|
22826
22826
|
id: `key:${link4.id}`,
|
|
22827
22827
|
kind: "key_document",
|
|
@@ -22889,7 +22889,7 @@ var keyDocumentKind = /* @__PURE__ */ __name((store) => {
|
|
|
22889
22889
|
};
|
|
22890
22890
|
}, "keyDocumentKind");
|
|
22891
22891
|
|
|
22892
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22892
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/mail-findings.js
|
|
22893
22893
|
var words = /* @__PURE__ */ __name((...parts) => parts.filter(Boolean).join(" "), "words");
|
|
22894
22894
|
var summaryOf = /* @__PURE__ */ __name((finding) => {
|
|
22895
22895
|
switch (finding.kind) {
|
|
@@ -22977,7 +22977,7 @@ var mailFindingsKind = /* @__PURE__ */ __name((store) => {
|
|
|
22977
22977
|
};
|
|
22978
22978
|
}, "mailFindingsKind");
|
|
22979
22979
|
|
|
22980
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22980
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/meeting-findings.js
|
|
22981
22981
|
var rowOf6 = /* @__PURE__ */ __name((action2, batch) => {
|
|
22982
22982
|
const findings = batch.input.findings;
|
|
22983
22983
|
const projects = [...new Set(findings.map((one2) => "project" in one2 ? one2.project : void 0))];
|
|
@@ -23041,7 +23041,7 @@ var meetingFindingsKind = /* @__PURE__ */ __name((store) => {
|
|
|
23041
23041
|
};
|
|
23042
23042
|
}, "meetingFindingsKind");
|
|
23043
23043
|
|
|
23044
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23044
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/memory.js
|
|
23045
23045
|
var STATUS2 = {
|
|
23046
23046
|
proposed: "proposed",
|
|
23047
23047
|
confirmed: "confirmed",
|
|
@@ -23082,7 +23082,7 @@ var memoryKind = /* @__PURE__ */ __name((store) => ({
|
|
|
23082
23082
|
}, "decide")
|
|
23083
23083
|
}), "memoryKind");
|
|
23084
23084
|
|
|
23085
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23085
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/orders.js
|
|
23086
23086
|
var rowOf8 = /* @__PURE__ */ __name((order) => ({
|
|
23087
23087
|
id: order.ref,
|
|
23088
23088
|
kind: "order",
|
|
@@ -23114,7 +23114,7 @@ var orderKind = /* @__PURE__ */ __name((store) => ({
|
|
|
23114
23114
|
}, "decide")
|
|
23115
23115
|
}), "orderKind");
|
|
23116
23116
|
|
|
23117
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23117
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/relationship.js
|
|
23118
23118
|
var linkRow2 = /* @__PURE__ */ __name((link4) => ({
|
|
23119
23119
|
id: `link:${link4.id}`,
|
|
23120
23120
|
kind: "relationship",
|
|
@@ -23188,7 +23188,7 @@ var relationshipKind = /* @__PURE__ */ __name((store) => {
|
|
|
23188
23188
|
};
|
|
23189
23189
|
}, "relationshipKind");
|
|
23190
23190
|
|
|
23191
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23191
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/relationship-update.js
|
|
23192
23192
|
var KIND = "relationship_update";
|
|
23193
23193
|
var summaryOf2 = /* @__PURE__ */ __name(({ changes }) => Object.entries(changes).map(([field, value]) => `${field} ${value ?? "cleared"}`).join(", "), "summaryOf");
|
|
23194
23194
|
var rowOf9 = /* @__PURE__ */ __name((action2) => {
|
|
@@ -23238,7 +23238,7 @@ var relationshipUpdateKind = /* @__PURE__ */ __name((store) => ({
|
|
|
23238
23238
|
}, "decide")
|
|
23239
23239
|
}), "relationshipUpdateKind");
|
|
23240
23240
|
|
|
23241
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23241
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/task-close.js
|
|
23242
23242
|
var rowOf10 = /* @__PURE__ */ __name((task2) => {
|
|
23243
23243
|
const suggestion = task2.closeSuggestion;
|
|
23244
23244
|
if (suggestion === null)
|
|
@@ -23306,7 +23306,7 @@ var taskCloseKind = /* @__PURE__ */ __name((store) => {
|
|
|
23306
23306
|
};
|
|
23307
23307
|
}, "taskCloseKind");
|
|
23308
23308
|
|
|
23309
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23309
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/services/proposals/registry.js
|
|
23310
23310
|
var PREFIX = /^([a-z][a-z_]*):/;
|
|
23311
23311
|
var marked = /* @__PURE__ */ __name((kind, row) => kind.ownerOnly ? { ...row, ownerOnly: true } : row, "marked");
|
|
23312
23312
|
var refusalOf = /* @__PURE__ */ __name((id2, error) => {
|
|
@@ -23433,7 +23433,7 @@ var proposalRegistry = /* @__PURE__ */ __name((store) => {
|
|
|
23433
23433
|
return registry;
|
|
23434
23434
|
}, "proposalRegistry");
|
|
23435
23435
|
|
|
23436
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23436
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/mail/owed.js
|
|
23437
23437
|
var mailTurn = /* @__PURE__ */ __name((newest) => {
|
|
23438
23438
|
if (newest === null)
|
|
23439
23439
|
return null;
|
|
@@ -23442,7 +23442,7 @@ var mailTurn = /* @__PURE__ */ __name((newest) => {
|
|
|
23442
23442
|
return newest.addressed ? "owed" : null;
|
|
23443
23443
|
}, "mailTurn");
|
|
23444
23444
|
|
|
23445
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23445
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/services/agenda-mail.js
|
|
23446
23446
|
var absent = /* @__PURE__ */ __name((error) => {
|
|
23447
23447
|
if (error instanceof CliError && error.code === "not_found")
|
|
23448
23448
|
return void 0;
|
|
@@ -23500,7 +23500,7 @@ var mailActivity = /* @__PURE__ */ __name(async (store, account, since, chats) =
|
|
|
23500
23500
|
};
|
|
23501
23501
|
}, "mailActivity");
|
|
23502
23502
|
|
|
23503
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23503
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/services/chat-coverage.js
|
|
23504
23504
|
var chatCoverage = /* @__PURE__ */ __name(async (store, account, chatIds) => {
|
|
23505
23505
|
const ids = [...new Set(chatIds)];
|
|
23506
23506
|
if (ids.length === 0)
|
|
@@ -23526,7 +23526,7 @@ var chatCoverage = /* @__PURE__ */ __name(async (store, account, chatIds) => {
|
|
|
23526
23526
|
}));
|
|
23527
23527
|
}, "chatCoverage");
|
|
23528
23528
|
|
|
23529
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23529
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/services/agenda.js
|
|
23530
23530
|
var DAY = 864e5;
|
|
23531
23531
|
var AGENDA_DEFAULTS = { unanswered: DAY, waiting: 7 * DAY };
|
|
23532
23532
|
var CLAIMS = ["none", "mine", "others", "any"];
|
|
@@ -23773,7 +23773,7 @@ var agendaItem = /* @__PURE__ */ __name((shown) => {
|
|
|
23773
23773
|
};
|
|
23774
23774
|
}, "agendaItem");
|
|
23775
23775
|
|
|
23776
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23776
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/services/excerpt.js
|
|
23777
23777
|
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");
|
|
23778
23778
|
var excerpt = /* @__PURE__ */ __name((text2, query, size4 = 240, options = {}) => {
|
|
23779
23779
|
const flat = text2.replace(/\s+/g, " ").trim();
|
|
@@ -23789,7 +23789,7 @@ var excerpt = /* @__PURE__ */ __name((text2, query, size4 = 240, options = {}) =
|
|
|
23789
23789
|
}, "excerpt");
|
|
23790
23790
|
var withExcerpt = /* @__PURE__ */ __name(({ matchedText, ...hit }, query) => ({ ...hit, excerpt: excerpt(matchedText ?? hit.text, query) }), "withExcerpt");
|
|
23791
23791
|
|
|
23792
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23792
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/services/link-scorers/shared.js
|
|
23793
23793
|
var escaped = /* @__PURE__ */ __name((text2) => text2.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), "escaped");
|
|
23794
23794
|
var folded = /* @__PURE__ */ __name((text2) => text2.normalize("NFKC").toLowerCase().replace(/\s+/gu, " "), "folded");
|
|
23795
23795
|
var wholeWords = /* @__PURE__ */ __name((term) => new RegExp(`(?<![\\p{L}\\p{N}\\p{M}_])${escaped(normalizeVocabularyName(term))}(?![\\p{L}\\p{N}\\p{M}_])`, "u"), "wholeWords");
|
|
@@ -23828,7 +23828,7 @@ var identitiesIn = /* @__PURE__ */ __name(async (store, people, provider) => {
|
|
|
23828
23828
|
return found;
|
|
23829
23829
|
}, "identitiesIn");
|
|
23830
23830
|
|
|
23831
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23831
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/services/link-scorers/alias-hits.js
|
|
23832
23832
|
var SEARCH_LIMIT = 500;
|
|
23833
23833
|
var aliasWeight = /* @__PURE__ */ __name((hits) => hits >= 10 ? 0.55 : hits >= 3 ? 0.35 : 0, "aliasWeight");
|
|
23834
23834
|
var aliasHits = {
|
|
@@ -23877,7 +23877,7 @@ var aliasHits = {
|
|
|
23877
23877
|
}, "candidates")
|
|
23878
23878
|
};
|
|
23879
23879
|
|
|
23880
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23880
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/services/link-scorers/chat-senders.js
|
|
23881
23881
|
var WEIGHT = 0.5;
|
|
23882
23882
|
var LARGE_GROUP_WEIGHT = 0.2;
|
|
23883
23883
|
var LARGE_GROUP = 30;
|
|
@@ -23929,7 +23929,7 @@ var chatSenders = {
|
|
|
23929
23929
|
}, "candidates")
|
|
23930
23930
|
};
|
|
23931
23931
|
|
|
23932
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23932
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/services/link-scorers/chat-title.js
|
|
23933
23933
|
var WEIGHT2 = 0.7;
|
|
23934
23934
|
var chatTitle = {
|
|
23935
23935
|
id: "chat-title",
|
|
@@ -23968,7 +23968,7 @@ var chatTitle = {
|
|
|
23968
23968
|
}, "candidates")
|
|
23969
23969
|
};
|
|
23970
23970
|
|
|
23971
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23971
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/services/link-scorers/email-domain.js
|
|
23972
23972
|
var WEIGHT3 = 0.3;
|
|
23973
23973
|
var CONTACTS = 500;
|
|
23974
23974
|
var MOST_PAIRS = 200;
|
|
@@ -24029,7 +24029,7 @@ var emailDomain = {
|
|
|
24029
24029
|
}, "candidates")
|
|
24030
24030
|
};
|
|
24031
24031
|
|
|
24032
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24032
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/services/link-scorers/mail-thread.js
|
|
24033
24033
|
var NAMED = 0.7;
|
|
24034
24034
|
var MEMBER_ONLY = 0.3;
|
|
24035
24035
|
var READ_LIMIT2 = 500;
|
|
@@ -24102,7 +24102,7 @@ var mailThread = {
|
|
|
24102
24102
|
}, "candidates")
|
|
24103
24103
|
};
|
|
24104
24104
|
|
|
24105
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24105
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/services/link-scorers/member-chats.js
|
|
24106
24106
|
var WEIGHT4 = 0.5;
|
|
24107
24107
|
var memberChats = {
|
|
24108
24108
|
id: "member-chats",
|
|
@@ -24142,7 +24142,7 @@ var memberChats = {
|
|
|
24142
24142
|
}, "candidates")
|
|
24143
24143
|
};
|
|
24144
24144
|
|
|
24145
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24145
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/services/link-scorers/member-dialog.js
|
|
24146
24146
|
var WEIGHT5 = 0.6;
|
|
24147
24147
|
var memberDialog = {
|
|
24148
24148
|
id: "member-dialog",
|
|
@@ -24176,7 +24176,7 @@ var memberDialog = {
|
|
|
24176
24176
|
}, "candidates")
|
|
24177
24177
|
};
|
|
24178
24178
|
|
|
24179
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24179
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/services/project-gathering-around.js
|
|
24180
24180
|
var storedMessageNeighbours = /* @__PURE__ */ __name((messages) => ({
|
|
24181
24181
|
async around(ref, window3) {
|
|
24182
24182
|
const at = parseLocator(ref);
|
|
@@ -24272,7 +24272,7 @@ var storedNeighbours = /* @__PURE__ */ __name((store) => {
|
|
|
24272
24272
|
};
|
|
24273
24273
|
}, "storedNeighbours");
|
|
24274
24274
|
|
|
24275
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24275
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/services/project-gathering-request.js
|
|
24276
24276
|
import { createHash as createHash2 } from "node:crypto";
|
|
24277
24277
|
var DAY2 = 864e5;
|
|
24278
24278
|
var MAX_TIME = 864e13;
|
|
@@ -24588,7 +24588,7 @@ var decodeCheckpoint = /* @__PURE__ */ __name((text2, plan) => {
|
|
|
24588
24588
|
return value;
|
|
24589
24589
|
}, "decodeCheckpoint");
|
|
24590
24590
|
|
|
24591
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24591
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/services/project-gathering.js
|
|
24592
24592
|
var terminal = /* @__PURE__ */ new Set(["done", "unavailable", "failed"]);
|
|
24593
24593
|
var PAGE2 = 20;
|
|
24594
24594
|
var PEOPLE = 20;
|
|
@@ -24992,7 +24992,7 @@ var peopleOf = /* @__PURE__ */ __name((items, senderOf) => {
|
|
|
24992
24992
|
return [...byKey.values()].sort((a, b) => b.items - a.items || a.name.localeCompare(b.name));
|
|
24993
24993
|
}, "peopleOf");
|
|
24994
24994
|
|
|
24995
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24995
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/services/meeting-project-candidate-matching.js
|
|
24996
24996
|
var normalizedText = /* @__PURE__ */ __name((text2) => text2.normalize("NFKC").toLowerCase().replace(/\s+/gu, " "), "normalizedText");
|
|
24997
24997
|
var termsOf = /* @__PURE__ */ __name((entry) => [
|
|
24998
24998
|
{ name: entry.name, kind: "canonical" },
|
|
@@ -25036,7 +25036,7 @@ var matchVocabularyTerms = /* @__PURE__ */ __name((catalog, texts) => {
|
|
|
25036
25036
|
return result.sort((a, b) => Number(a.entry.id) - Number(b.entry.id));
|
|
25037
25037
|
}, "matchVocabularyTerms");
|
|
25038
25038
|
|
|
25039
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25039
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/services/project-gathering-mentions.js
|
|
25040
25040
|
var KINDS = ["project", "tag", "topic"];
|
|
25041
25041
|
var findEvidenceMentions = /* @__PURE__ */ __name(async (vocabulary, gathering, options = {}) => {
|
|
25042
25042
|
if (typeof vocabulary?.vocabulary !== "function")
|
|
@@ -25091,7 +25091,7 @@ var findEvidenceMentions = /* @__PURE__ */ __name(async (vocabulary, gathering,
|
|
|
25091
25091
|
};
|
|
25092
25092
|
}, "findEvidenceMentions");
|
|
25093
25093
|
|
|
25094
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25094
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/services/stored-project-gathering.js
|
|
25095
25095
|
var storedChatCount = /* @__PURE__ */ __name((store) => async (account, chatId, { since, until }) => {
|
|
25096
25096
|
const window3 = { since: new Date(since).toISOString(), until: new Date(until - 1).toISOString() };
|
|
25097
25097
|
const [messages, newest, oldest] = await Promise.all([
|
|
@@ -25397,7 +25397,7 @@ var purposeHintOf = /* @__PURE__ */ __name((linked, rows, of) => {
|
|
|
25397
25397
|
return { chat: top.ref, relationship: link4.relationship, items, of };
|
|
25398
25398
|
}, "purposeHintOf");
|
|
25399
25399
|
|
|
25400
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25400
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/services/link-scorers/scan.js
|
|
25401
25401
|
var SCORERS = [chatTitle, aliasHits, memberChats, memberDialog, chatSenders, mailThread];
|
|
25402
25402
|
var PERSON_SCORERS = [emailDomain];
|
|
25403
25403
|
var SCAN_BOT = { bot: "memo-scan", kind: "rule" };
|
|
@@ -25605,18 +25605,18 @@ var referenceOf = /* @__PURE__ */ __name((text2) => {
|
|
|
25605
25605
|
}, "referenceOf");
|
|
25606
25606
|
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");
|
|
25607
25607
|
|
|
25608
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25608
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/services/media-archive.js
|
|
25609
25609
|
import { setTimeout as sleep3 } from "node:timers/promises";
|
|
25610
25610
|
|
|
25611
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25611
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/services/media-archive-files.js
|
|
25612
25612
|
import { lstat } from "node:fs/promises";
|
|
25613
25613
|
|
|
25614
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25614
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-store.js
|
|
25615
25615
|
import { createHash as createHash4, randomUUID as randomUUID2 } from "node:crypto";
|
|
25616
25616
|
import { open as open2, rename as rename2, unlink as unlink2 } from "node:fs/promises";
|
|
25617
25617
|
import { join as join2 } from "node:path";
|
|
25618
25618
|
|
|
25619
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25619
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-metadata.js
|
|
25620
25620
|
import { createHash as createHash3 } from "node:crypto";
|
|
25621
25621
|
var metadataLimit = 16384;
|
|
25622
25622
|
var partialIdentity = /* @__PURE__ */ __name((locator) => JSON.stringify([locator.provider, locator.account, locator.occurrenceId, locator.assetId]), "partialIdentity");
|
|
@@ -25676,7 +25676,7 @@ var readPartialMetadata = /* @__PURE__ */ __name(async (path, locator, maxBytes,
|
|
|
25676
25676
|
}
|
|
25677
25677
|
}, "readPartialMetadata");
|
|
25678
25678
|
|
|
25679
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25679
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-writer.js
|
|
25680
25680
|
import { randomUUID } from "node:crypto";
|
|
25681
25681
|
import { open, rename, unlink } from "node:fs/promises";
|
|
25682
25682
|
import { join } from "node:path";
|
|
@@ -25768,7 +25768,7 @@ var partialWriter = /* @__PURE__ */ __name(async (input) => {
|
|
|
25768
25768
|
};
|
|
25769
25769
|
}, "partialWriter");
|
|
25770
25770
|
|
|
25771
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25771
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-store.js
|
|
25772
25772
|
var NativeRecordingPartialStore = class {
|
|
25773
25773
|
static {
|
|
25774
25774
|
__name(this, "NativeRecordingPartialStore");
|
|
@@ -25875,12 +25875,12 @@ var NativeRecordingPartialStore = class {
|
|
|
25875
25875
|
}
|
|
25876
25876
|
};
|
|
25877
25877
|
|
|
25878
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25878
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication.js
|
|
25879
25879
|
import { createHash as createHash5 } from "node:crypto";
|
|
25880
25880
|
import { link as link2 } from "node:fs/promises";
|
|
25881
25881
|
import { basename, dirname, join as join4, resolve } from "node:path";
|
|
25882
25882
|
|
|
25883
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25883
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication-files.js
|
|
25884
25884
|
import { unlink as unlink3 } from "node:fs/promises";
|
|
25885
25885
|
var verifiedPublicationFile = /* @__PURE__ */ __name(async (path, expected2, signal, writable = false) => {
|
|
25886
25886
|
signal?.throwIfAborted();
|
|
@@ -25915,7 +25915,7 @@ var commitPublication = /* @__PURE__ */ __name(async (root, partialPath, finalPa
|
|
|
25915
25915
|
signal?.throwIfAborted();
|
|
25916
25916
|
}, "commitPublication");
|
|
25917
25917
|
|
|
25918
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25918
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication-journal.js
|
|
25919
25919
|
import { randomUUID as randomUUID3 } from "node:crypto";
|
|
25920
25920
|
import { open as open3, rename as rename3, unlink as unlink4 } from "node:fs/promises";
|
|
25921
25921
|
import { join as join3 } from "node:path";
|
|
@@ -25988,7 +25988,7 @@ var writePublicationJournal = /* @__PURE__ */ __name(async (root, path, prefix,
|
|
|
25988
25988
|
}
|
|
25989
25989
|
}, "writePublicationJournal");
|
|
25990
25990
|
|
|
25991
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25991
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication.js
|
|
25992
25992
|
var NativeRecordingPublication = class {
|
|
25993
25993
|
static {
|
|
25994
25994
|
__name(this, "NativeRecordingPublication");
|
|
@@ -26061,7 +26061,7 @@ var NativeRecordingPublication = class {
|
|
|
26061
26061
|
}
|
|
26062
26062
|
};
|
|
26063
26063
|
|
|
26064
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26064
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/services/media-archive-manifest.js
|
|
26065
26065
|
import { createHash as createHash6 } from "node:crypto";
|
|
26066
26066
|
import { readdir } from "node:fs/promises";
|
|
26067
26067
|
import { isAbsolute, join as join5, resolve as resolve2 } from "node:path";
|
|
@@ -26148,7 +26148,7 @@ var commitMediaEntry = /* @__PURE__ */ __name((root, one2, beforePublish) => wri
|
|
|
26148
26148
|
beforePublish
|
|
26149
26149
|
}), "commitMediaEntry");
|
|
26150
26150
|
|
|
26151
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26151
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/services/media-archive-files.js
|
|
26152
26152
|
var validator = '"media-completed-v1"';
|
|
26153
26153
|
var maximumFileBytes = 64 * 1024 * 1024 * 1024;
|
|
26154
26154
|
var archiveMediaFile = /* @__PURE__ */ __name(async (root, identity, kind, file2, beforeWrite, signal, metadata = {}) => {
|
|
@@ -26249,7 +26249,7 @@ var archiveMediaFile = /* @__PURE__ */ __name(async (root, identity, kind, file2
|
|
|
26249
26249
|
return entry;
|
|
26250
26250
|
}, "archiveMediaFile");
|
|
26251
26251
|
|
|
26252
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26252
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/services/media-archive-locks.js
|
|
26253
26253
|
import { mkdir, realpath } from "node:fs/promises";
|
|
26254
26254
|
import { join as join6, resolve as resolve3 } from "node:path";
|
|
26255
26255
|
var archiveLocations = /* @__PURE__ */ __name(async (initial, signal) => {
|
|
@@ -26316,7 +26316,7 @@ var withMediaArchiveLocks = /* @__PURE__ */ __name(async (directory2, signal, ru
|
|
|
26316
26316
|
throw new CliError("validation_error", "archive locations changed during locking; run the command again");
|
|
26317
26317
|
}, "withMediaArchiveLocks");
|
|
26318
26318
|
|
|
26319
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26319
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/services/media-archive.js
|
|
26320
26320
|
var validateMediaSince = /* @__PURE__ */ __name((value, flag = "--since-time") => {
|
|
26321
26321
|
if (value === void 0)
|
|
26322
26322
|
return void 0;
|
|
@@ -26469,7 +26469,7 @@ var archiveMedia = /* @__PURE__ */ __name(async (ports, options) => {
|
|
|
26469
26469
|
}, { create: true });
|
|
26470
26470
|
}, "archiveMedia");
|
|
26471
26471
|
|
|
26472
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26472
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/services/media-archive-move.js
|
|
26473
26473
|
import { realpath as realpath2, unlink as unlink5 } from "node:fs/promises";
|
|
26474
26474
|
import { basename as basename2, dirname as dirname2, join as join7, resolve as resolve4 } from "node:path";
|
|
26475
26475
|
var canonicalDestination = /* @__PURE__ */ __name(async (directory2) => {
|
|
@@ -26622,7 +26622,7 @@ var moveMediaArchive = /* @__PURE__ */ __name(async (options) => {
|
|
|
26622
26622
|
}, { additional: [target2], createAdditional: !options.dryRun });
|
|
26623
26623
|
}, "moveMediaArchive");
|
|
26624
26624
|
|
|
26625
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26625
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/services/model-downloads.js
|
|
26626
26626
|
var bytesOf = /* @__PURE__ */ __name((model) => model.files.reduce((sum2, file2) => sum2 + file2.bytes, 0), "bytesOf");
|
|
26627
26627
|
var nativeRuntime = /* @__PURE__ */ __name(async ({ env, progress = /* @__PURE__ */ __name(() => {
|
|
26628
26628
|
}, "progress") }) => {
|
|
@@ -26645,7 +26645,7 @@ var downloadTextModel = /* @__PURE__ */ __name(async (id2, { env, progress = /*
|
|
|
26645
26645
|
}
|
|
26646
26646
|
await nativeRuntime({ env, progress });
|
|
26647
26647
|
progress(`${model.id}: loading it once to check it works`);
|
|
26648
|
-
const { openEmbedder: openEmbedder2 } = await import("./embed-
|
|
26648
|
+
const { openEmbedder: openEmbedder2 } = await import("./embed-DOTUACTV.js");
|
|
26649
26649
|
const embedder = await openEmbedder2(model, directory2);
|
|
26650
26650
|
try {
|
|
26651
26651
|
const [vector] = await embedder.embed(["check"], "query");
|
|
@@ -26666,7 +26666,7 @@ var downloadRerankModel = /* @__PURE__ */ __name(async (id2, { env, progress = /
|
|
|
26666
26666
|
}
|
|
26667
26667
|
await nativeRuntime({ env, progress });
|
|
26668
26668
|
progress(`${model.id}: loading it once to check it works`);
|
|
26669
|
-
const { openReranker } = await import("./rerank-
|
|
26669
|
+
const { openReranker } = await import("./rerank-OJPVJGX5.js");
|
|
26670
26670
|
const reranker = await openReranker(model, directory2);
|
|
26671
26671
|
try {
|
|
26672
26672
|
await reranker.score("check", ["check"]);
|
|
@@ -26684,7 +26684,7 @@ var downloadImageModel = /* @__PURE__ */ __name(async (id2, { env, progress = /*
|
|
|
26684
26684
|
await installFiles(placedImage(model, directory2), { progress });
|
|
26685
26685
|
}
|
|
26686
26686
|
progress(`${model.id}: loading it once to check it works`);
|
|
26687
|
-
const { openPictureEmbedder } = await import("./embedder-
|
|
26687
|
+
const { openPictureEmbedder } = await import("./embedder-TMR4UP7L.js");
|
|
26688
26688
|
const embedder = await openPictureEmbedder(model, directory2);
|
|
26689
26689
|
try {
|
|
26690
26690
|
const vector = await embedder.embedQuery("check");
|
|
@@ -26696,7 +26696,7 @@ var downloadImageModel = /* @__PURE__ */ __name(async (id2, { env, progress = /*
|
|
|
26696
26696
|
return { model, directory: directory2 };
|
|
26697
26697
|
}, "downloadImageModel");
|
|
26698
26698
|
|
|
26699
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26699
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/domain/money-words.js
|
|
26700
26700
|
var MONEY_REQUEST = "money-request";
|
|
26701
26701
|
var MONEY_DONE = "money-done";
|
|
26702
26702
|
var PROMISE = "promise";
|
|
@@ -26730,10 +26730,10 @@ var MONEY_WORDS = [
|
|
|
26730
26730
|
}
|
|
26731
26731
|
];
|
|
26732
26732
|
|
|
26733
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26733
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/services/money-words.js
|
|
26734
26734
|
var moneyClassesOf = /* @__PURE__ */ __name((text2) => listsHit(text2, MONEY_WORDS), "moneyClassesOf");
|
|
26735
26735
|
|
|
26736
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26736
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/domain/status-words.js
|
|
26737
26737
|
var words2 = /* @__PURE__ */ __name((forms) => new RegExp(`(?<![\\p{L}\\p{N}])(?:${forms.join("|")})(?![\\p{L}\\p{N}])`, "iu"), "words");
|
|
26738
26738
|
var MONEY_DONE_FORMS = words2([
|
|
26739
26739
|
"\u043E\u043F\u043B\u0430\u0442\u0438\u043B[\u0430\u0438]?",
|
|
@@ -26773,7 +26773,7 @@ var PROMISE_FORMS = words2([
|
|
|
26773
26773
|
"estar\xE1 listo"
|
|
26774
26774
|
]);
|
|
26775
26775
|
|
|
26776
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26776
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/services/project-status/items.js
|
|
26777
26777
|
var EXCERPT_CHARS = 80;
|
|
26778
26778
|
var excerpt2 = /* @__PURE__ */ __name((text2) => {
|
|
26779
26779
|
const flat = text2.replace(/\s+/g, " ").trim();
|
|
@@ -26795,7 +26795,7 @@ var whoOf = /* @__PURE__ */ __name((message) => ({
|
|
|
26795
26795
|
var fromOwner = /* @__PURE__ */ __name((message) => message.outgoing === true, "fromOwner");
|
|
26796
26796
|
var day = /* @__PURE__ */ __name((at) => new Date(at).toISOString().slice(0, 10), "day");
|
|
26797
26797
|
|
|
26798
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26798
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/services/project-status/signals/amounts.js
|
|
26799
26799
|
var MONEY = DEFAULT_TASK_CATEGORIES.filter((category) => category.name === "money");
|
|
26800
26800
|
var verbOf = /* @__PURE__ */ __name((text2) => {
|
|
26801
26801
|
if (MONEY_DONE_FORMS.test(text2))
|
|
@@ -26875,7 +26875,7 @@ var amounts = {
|
|
|
26875
26875
|
attention: /* @__PURE__ */ __name((items) => items.flatMap((item2) => item2.chat !== null && item2.data.state === "open" ? [{ chat: item2.chat, weight: 2, why: "money open" }] : []), "attention")
|
|
26876
26876
|
};
|
|
26877
26877
|
|
|
26878
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26878
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/services/project-status/signals/children.js
|
|
26879
26879
|
var children = {
|
|
26880
26880
|
id: "children",
|
|
26881
26881
|
version: 1,
|
|
@@ -26904,7 +26904,7 @@ var children = {
|
|
|
26904
26904
|
}, "read")
|
|
26905
26905
|
};
|
|
26906
26906
|
|
|
26907
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26907
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/services/project-status/signals/coverage.js
|
|
26908
26908
|
var coverage = {
|
|
26909
26909
|
id: "coverage",
|
|
26910
26910
|
version: 1,
|
|
@@ -26933,29 +26933,7 @@ var coverage = {
|
|
|
26933
26933
|
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")
|
|
26934
26934
|
};
|
|
26935
26935
|
|
|
26936
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26937
|
-
var lastMessage = {
|
|
26938
|
-
id: "last-message",
|
|
26939
|
-
version: 1,
|
|
26940
|
-
scope: "chat",
|
|
26941
|
-
read: /* @__PURE__ */ __name(async (_context, chat) => {
|
|
26942
|
-
const last = chat?.messages.at(-1);
|
|
26943
|
-
if (!chat || !last)
|
|
26944
|
-
return [];
|
|
26945
|
-
const item2 = {
|
|
26946
|
-
signal: "last-message",
|
|
26947
|
-
chat: chat.ref,
|
|
26948
|
-
at: last.timestamp,
|
|
26949
|
-
who: whoOf(last),
|
|
26950
|
-
evidence: evidenceOf(chat, last),
|
|
26951
|
-
basis: "store",
|
|
26952
|
-
data: {}
|
|
26953
|
-
};
|
|
26954
|
-
return [item2];
|
|
26955
|
-
}, "read")
|
|
26956
|
-
};
|
|
26957
|
-
|
|
26958
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/services/project-status/signals/payments.js
|
|
26936
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/services/project-status/signals/payments.js
|
|
26959
26937
|
var holding = /* @__PURE__ */ __name((row) => row.review !== "rejected", "holding");
|
|
26960
26938
|
var item = /* @__PURE__ */ __name((row, at, data) => ({
|
|
26961
26939
|
signal: "payments",
|
|
@@ -27005,7 +26983,7 @@ var payments = {
|
|
|
27005
26983
|
}, "read")
|
|
27006
26984
|
};
|
|
27007
26985
|
|
|
27008
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26986
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/services/project-status/signals/promises.js
|
|
27009
26987
|
var PATTERNS_PER_CHAT = 3;
|
|
27010
26988
|
var DAY3 = 864e5;
|
|
27011
26989
|
var KINDS2 = /* @__PURE__ */ new Set(["promise", "request"]);
|
|
@@ -27094,7 +27072,7 @@ var promises = {
|
|
|
27094
27072
|
}, "read")
|
|
27095
27073
|
};
|
|
27096
27074
|
|
|
27097
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27075
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/services/project-status/signals/questions.js
|
|
27098
27076
|
var PER_SIDE = 5;
|
|
27099
27077
|
var WEEK = 7 * 864e5;
|
|
27100
27078
|
var NOBODY = /* @__PURE__ */ new Set();
|
|
@@ -27125,7 +27103,7 @@ var questions2 = {
|
|
|
27125
27103
|
}, "attention")
|
|
27126
27104
|
};
|
|
27127
27105
|
|
|
27128
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27106
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/services/project-status/signals/reply-next.js
|
|
27129
27107
|
var targetOf = /* @__PURE__ */ __name((message, chat, owners) => {
|
|
27130
27108
|
const byId2 = /* @__PURE__ */ __name((id2) => chat.messages.find((one2) => one2.id === id2), "byId");
|
|
27131
27109
|
const quoted = message.replyTo ?? (message.replyToId === void 0 ? void 0 : byId2(message.replyToId));
|
|
@@ -27193,7 +27171,7 @@ var replyNext = {
|
|
|
27193
27171
|
attention: /* @__PURE__ */ __name((items) => items.flatMap((item2) => item2.chat !== null && item2.data.next === "owner" ? [{ chat: item2.chat, weight: 2, why: "your move" }] : []), "attention")
|
|
27194
27172
|
};
|
|
27195
27173
|
|
|
27196
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27174
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/services/project-status/signals/topics.js
|
|
27197
27175
|
var escaped2 = /* @__PURE__ */ __name((text2) => text2.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), "escaped");
|
|
27198
27176
|
var wholeWord = /* @__PURE__ */ __name((word) => new RegExp(`(?<![\\p{L}\\p{N}])${escaped2(word)}(?![\\p{L}\\p{N}])`, "u"), "wholeWord");
|
|
27199
27177
|
var matcherOf = /* @__PURE__ */ __name((query) => {
|
|
@@ -27239,9 +27217,8 @@ var topics = {
|
|
|
27239
27217
|
}, "read")
|
|
27240
27218
|
};
|
|
27241
27219
|
|
|
27242
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27220
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/services/project-status/signals/index.js
|
|
27243
27221
|
var STATUS_SIGNALS = [
|
|
27244
|
-
lastMessage,
|
|
27245
27222
|
replyNext,
|
|
27246
27223
|
questions2,
|
|
27247
27224
|
promises,
|
|
@@ -27252,7 +27229,7 @@ var STATUS_SIGNALS = [
|
|
|
27252
27229
|
children
|
|
27253
27230
|
];
|
|
27254
27231
|
|
|
27255
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27232
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/services/project-status/index.js
|
|
27256
27233
|
var DAY4 = 864e5;
|
|
27257
27234
|
var STATUS_WINDOW = 300;
|
|
27258
27235
|
var STATUS_CHATS = 16;
|
|
@@ -27434,7 +27411,7 @@ var projectStatus = /* @__PURE__ */ __name(async (store, input) => {
|
|
|
27434
27411
|
};
|
|
27435
27412
|
}, "projectStatus");
|
|
27436
27413
|
|
|
27437
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27414
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/services/account.js
|
|
27438
27415
|
var accountService = /* @__PURE__ */ __name((deps) => {
|
|
27439
27416
|
const online = /* @__PURE__ */ __name(async (command) => {
|
|
27440
27417
|
if (deps.offline)
|
|
@@ -27506,7 +27483,7 @@ var accountService = /* @__PURE__ */ __name((deps) => {
|
|
|
27506
27483
|
};
|
|
27507
27484
|
}, "accountService");
|
|
27508
27485
|
|
|
27509
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27486
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/domain/send-time.js
|
|
27510
27487
|
var MINUTE = 6e4;
|
|
27511
27488
|
var YEAR = 365 * 24 * 60 * MINUTE;
|
|
27512
27489
|
var DELAY = /^(\d+)(m|h|d)$/;
|
|
@@ -27525,7 +27502,7 @@ var sendTime = /* @__PURE__ */ __name((value, now = Date.now(), flag = "--at-tim
|
|
|
27525
27502
|
return new Date(at - at % MINUTE).toISOString();
|
|
27526
27503
|
}, "sendTime");
|
|
27527
27504
|
|
|
27528
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27505
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/services/admin.js
|
|
27529
27506
|
var recordMembership = /* @__PURE__ */ __name(async (deps, operationId, done2, change, fix, write2) => {
|
|
27530
27507
|
try {
|
|
27531
27508
|
const held = await accountStoreIfOpen(deps);
|
|
@@ -27772,7 +27749,7 @@ var linkLimits = /* @__PURE__ */ __name(({ approval, expires, maxUses }) => {
|
|
|
27772
27749
|
return expires === void 0 ? void 0 : sendTime(expires, Date.now(), "--expire-time");
|
|
27773
27750
|
}, "linkLimits");
|
|
27774
27751
|
|
|
27775
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27752
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/services/mail-search.js
|
|
27776
27753
|
var THREADS_PAGE = 500;
|
|
27777
27754
|
var threadsOf = /* @__PURE__ */ __name(async (store, key) => {
|
|
27778
27755
|
const account = await store.accounts.storedAccount(key).catch(() => void 0);
|
|
@@ -27851,7 +27828,7 @@ var readMail = /* @__PURE__ */ __name(async (store, locator, { before: before2 =
|
|
|
27851
27828
|
return thread.slice(Math.max(0, at - before2), at + after + 1).map((hit) => hit.id === message ? { ...hit, anchor: true } : hit);
|
|
27852
27829
|
}, "readMail");
|
|
27853
27830
|
|
|
27854
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27831
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/services/search-kind.js
|
|
27855
27832
|
var NO_MAIL = "no_mail";
|
|
27856
27833
|
var MAIL = "email";
|
|
27857
27834
|
var listContextOf = /* @__PURE__ */ __name(async (store, account, app, stored) => {
|
|
@@ -27898,7 +27875,7 @@ var accountsOfKind = /* @__PURE__ */ __name((kind, chosen, held, explicit, comma
|
|
|
27898
27875
|
return chosenMail.map(({ provider, account }) => ({ provider, account }));
|
|
27899
27876
|
}, "accountsOfKind");
|
|
27900
27877
|
|
|
27901
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27878
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/services/messages-search.js
|
|
27902
27879
|
var MAIL_FIELDS = /* @__PURE__ */ new Set(["to", "cc", "bcc", "subject", "mailbox", "label", "is"]);
|
|
27903
27880
|
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");
|
|
27904
27881
|
var prepareLucene = /* @__PURE__ */ __name(async (store, account, request, messenger) => {
|
|
@@ -28246,7 +28223,7 @@ var statsLucene = /* @__PURE__ */ __name(async (store, account, request, messeng
|
|
|
28246
28223
|
};
|
|
28247
28224
|
}, "statsLucene");
|
|
28248
28225
|
|
|
28249
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28226
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/services/rankings-selection.js
|
|
28250
28227
|
var RANKING_SELECTION_BYTES = 64 * 1024;
|
|
28251
28228
|
var object = /* @__PURE__ */ __name((value) => value !== null && typeof value === "object" && !Array.isArray(value) ? value : void 0, "object");
|
|
28252
28229
|
function invalid(message = "ranking selection is invalid \u2014 obtain a new drilldown from stats top") {
|
|
@@ -28415,7 +28392,7 @@ var readRankingSelection = /* @__PURE__ */ __name(async (store, input) => {
|
|
|
28415
28392
|
};
|
|
28416
28393
|
}, "readRankingSelection");
|
|
28417
28394
|
|
|
28418
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28395
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/services/search-record.js
|
|
28419
28396
|
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");
|
|
28420
28397
|
var searchRecordOf = /* @__PURE__ */ __name((command, params) => ({
|
|
28421
28398
|
command,
|
|
@@ -28425,7 +28402,7 @@ var searchRecordOf = /* @__PURE__ */ __name((command, params) => ({
|
|
|
28425
28402
|
fieldsVersion: FIELD_VERSION
|
|
28426
28403
|
}), "searchRecordOf");
|
|
28427
28404
|
|
|
28428
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28405
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/services/admin-statistics.js
|
|
28429
28406
|
function invalid2(message) {
|
|
28430
28407
|
throw new CliError("validation_error", message);
|
|
28431
28408
|
}
|
|
@@ -28719,7 +28696,7 @@ var adminStatisticsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
28719
28696
|
}, "evidence")
|
|
28720
28697
|
}), "adminStatisticsService");
|
|
28721
28698
|
|
|
28722
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28699
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/services/archive-gaps.js
|
|
28723
28700
|
import { createHash as createHash7, randomUUID as randomUUID4 } from "node:crypto";
|
|
28724
28701
|
var GAP_BOUNDS = { maxGaps: 5, limit: 500, timeMs: 3e4 };
|
|
28725
28702
|
var validateRepair = /* @__PURE__ */ __name((messenger, options) => {
|
|
@@ -28856,16 +28833,16 @@ var gapsService = /* @__PURE__ */ __name((deps) => {
|
|
|
28856
28833
|
return { plan, repair };
|
|
28857
28834
|
}, "gapsService");
|
|
28858
28835
|
|
|
28859
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28836
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/services/attachments.js
|
|
28860
28837
|
import { createHash as createHash9 } from "node:crypto";
|
|
28861
28838
|
import { constants as constants2, mkdirSync as mkdirSync2 } from "node:fs";
|
|
28862
28839
|
import { lstat as lstat4, open as open6, readFile, stat as stat2 } from "node:fs/promises";
|
|
28863
28840
|
|
|
28864
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28841
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/attachments/directory.js
|
|
28865
28842
|
import { lstat as lstat2, readdir as readdir2, realpath as realpath3 } from "node:fs/promises";
|
|
28866
28843
|
import { basename as basename4, join as join8, relative as relative2, sep as sep2 } from "node:path";
|
|
28867
28844
|
|
|
28868
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28845
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/sends/upload.js
|
|
28869
28846
|
import { openAsBlob, realpathSync } from "node:fs";
|
|
28870
28847
|
import { open as open4, stat } from "node:fs/promises";
|
|
28871
28848
|
import { basename as basename3, dirname as dirname3, extname, isAbsolute as isAbsolute2, relative, resolve as resolve5, sep } from "node:path";
|
|
@@ -29067,7 +29044,7 @@ var readStickerFile = /* @__PURE__ */ __name(async (path, maxBytes, read2) => {
|
|
|
29067
29044
|
return { name, source };
|
|
29068
29045
|
}, "readStickerFile");
|
|
29069
29046
|
|
|
29070
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29047
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/attachments/directory.js
|
|
29071
29048
|
var MAX_FILES = 1e4;
|
|
29072
29049
|
var directoryPaths = /* @__PURE__ */ __name(async (store, chat, directory2, app, env) => {
|
|
29073
29050
|
if (refusedPlace(directory2, app, env))
|
|
@@ -29136,15 +29113,15 @@ var directoryPaths = /* @__PURE__ */ __name(async (store, chat, directory2, app,
|
|
|
29136
29113
|
return choices;
|
|
29137
29114
|
}, "directoryPaths");
|
|
29138
29115
|
|
|
29139
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29116
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/attachments/documents.js
|
|
29140
29117
|
import { posix } from "node:path";
|
|
29141
29118
|
|
|
29142
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29119
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/attachments/container.js
|
|
29143
29120
|
import { setImmediate as tick } from "node:timers/promises";
|
|
29144
29121
|
import { crc32 } from "node:zlib";
|
|
29145
29122
|
var import_xmldom = __toESM(require_lib(), 1);
|
|
29146
29123
|
|
|
29147
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29124
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/attachments/encoding.js
|
|
29148
29125
|
var import_chardet = __toESM(require_lib2(), 1);
|
|
29149
29126
|
var import_iconv_lite = __toESM(require_lib3(), 1);
|
|
29150
29127
|
var SAMPLE = 65536;
|
|
@@ -29246,7 +29223,7 @@ var decodeXml = /* @__PURE__ */ __name((bytes2) => {
|
|
|
29246
29223
|
return result.text;
|
|
29247
29224
|
}, "decodeXml");
|
|
29248
29225
|
|
|
29249
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29226
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/attachments/container.js
|
|
29250
29227
|
var MAX_PART = 10 * 1024 * 1024;
|
|
29251
29228
|
var MAX_ENTRIES = 1e3;
|
|
29252
29229
|
var decoder = new TextDecoder("utf-8", { fatal: true });
|
|
@@ -29461,7 +29438,7 @@ var elements = /* @__PURE__ */ __name((node, name, namespace) => {
|
|
|
29461
29438
|
return found;
|
|
29462
29439
|
}, "elements");
|
|
29463
29440
|
|
|
29464
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29441
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/attachments/sheets.js
|
|
29465
29442
|
var columnName = /* @__PURE__ */ __name((column) => {
|
|
29466
29443
|
let name = "";
|
|
29467
29444
|
for (let rest = column; rest > 0; rest = Math.floor((rest - 1) / 26))
|
|
@@ -29516,7 +29493,7 @@ var sheetText = /* @__PURE__ */ __name((sheets2, maxChars = MAX_TEXT_CHARS) => {
|
|
|
29516
29493
|
return { text: parts.join("").trim(), truncated: false };
|
|
29517
29494
|
}, "sheetText");
|
|
29518
29495
|
|
|
29519
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29496
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/attachments/documents.js
|
|
29520
29497
|
var OFFICE = "urn:oasis:names:tc:opendocument:xmlns:office:1.0";
|
|
29521
29498
|
var TEXT = "urn:oasis:names:tc:opendocument:xmlns:text:1.0";
|
|
29522
29499
|
var TABLE = "urn:oasis:names:tc:opendocument:xmlns:table:1.0";
|
|
@@ -29916,10 +29893,10 @@ var readDocument = /* @__PURE__ */ __name(async (bytes2, kind, signal) => {
|
|
|
29916
29893
|
}
|
|
29917
29894
|
}, "readDocument");
|
|
29918
29895
|
|
|
29919
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29896
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/attachments/extract.js
|
|
29920
29897
|
import { extname as extname3 } from "node:path";
|
|
29921
29898
|
|
|
29922
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29899
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/readers/engine.js
|
|
29923
29900
|
import { readFileSync } from "node:fs";
|
|
29924
29901
|
import { dirname as dirname4, extname as extname2, join as join9 } from "node:path";
|
|
29925
29902
|
import { fileURLToPath } from "node:url";
|
|
@@ -29980,7 +29957,7 @@ var derived = /* @__PURE__ */ __name((bytes2, extractor, read2) => {
|
|
|
29980
29957
|
}
|
|
29981
29958
|
}, "derived");
|
|
29982
29959
|
|
|
29983
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29960
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/readers/image/index.js
|
|
29984
29961
|
var IMAGES = /* @__PURE__ */ new Set([".jpg", ".jpeg", ".png", ".webp", ".gif", ".heic", ".tif", ".tiff", ".bmp"]);
|
|
29985
29962
|
var image2 = {
|
|
29986
29963
|
id: "image",
|
|
@@ -29989,7 +29966,7 @@ var image2 = {
|
|
|
29989
29966
|
read: /* @__PURE__ */ __name(async () => ({ status: "needs-agent" }), "read")
|
|
29990
29967
|
};
|
|
29991
29968
|
|
|
29992
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29969
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/readers/doc/index.js
|
|
29993
29970
|
var OLE = "\xD0\xCF\xE0\xA1\xB1\xE1";
|
|
29994
29971
|
var doc = {
|
|
29995
29972
|
id: "doc",
|
|
@@ -30001,7 +29978,7 @@ var doc = {
|
|
|
30001
29978
|
}), "read")
|
|
30002
29979
|
};
|
|
30003
29980
|
|
|
30004
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29981
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/readers/docx/index.js
|
|
30005
29982
|
var DOCX = "application/vnd.openxmlformats-officedocument.wordprocessingml.document";
|
|
30006
29983
|
var docx = {
|
|
30007
29984
|
id: "docx",
|
|
@@ -30014,7 +29991,7 @@ var docx = {
|
|
|
30014
29991
|
}), "read")
|
|
30015
29992
|
};
|
|
30016
29993
|
|
|
30017
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29994
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/attachments/markup.js
|
|
30018
29995
|
var import_iconv_lite2 = __toESM(require_lib3(), 1);
|
|
30019
29996
|
var RTF_SKIPPED = /* @__PURE__ */ new Set([
|
|
30020
29997
|
"fonttbl",
|
|
@@ -30190,7 +30167,7 @@ var htmlText = /* @__PURE__ */ __name((source) => {
|
|
|
30190
30167
|
}, "htmlText");
|
|
30191
30168
|
var safeChar = /* @__PURE__ */ __name((code, fallback) => code > 0 && code <= 1114111 ? String.fromCodePoint(code) : fallback, "safeChar");
|
|
30192
30169
|
|
|
30193
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30170
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/readers/html/page.js
|
|
30194
30171
|
var clean = /* @__PURE__ */ __name((value) => typeof value === "string" ? value.replace(/\s+/g, " ").trim() : "", "clean");
|
|
30195
30172
|
var namesIn = /* @__PURE__ */ __name((value) => [value].flat().map((entry) => typeof entry === "string" ? clean(entry) : clean(entry?.name)).filter(Boolean).join(", "), "namesIn");
|
|
30196
30173
|
var jsonLdNodes = /* @__PURE__ */ __name((document) => {
|
|
@@ -30246,7 +30223,7 @@ var markdownSections = /* @__PURE__ */ __name((text2) => {
|
|
|
30246
30223
|
return found.map((section, index) => ({ ...section, end: found[index + 1]?.start ?? text2.length }));
|
|
30247
30224
|
}, "markdownSections");
|
|
30248
30225
|
|
|
30249
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30226
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/readers/html/index.js
|
|
30250
30227
|
var HTML = /* @__PURE__ */ new Set([".html", ".htm", ".xhtml"]);
|
|
30251
30228
|
var first = /* @__PURE__ */ __name((...values) => values.find((value) => typeof value === "string" && value !== ""), "first");
|
|
30252
30229
|
var loaded = /* @__PURE__ */ __name(async (load, name) => {
|
|
@@ -30317,7 +30294,7 @@ var html = {
|
|
|
30317
30294
|
}, "read")
|
|
30318
30295
|
};
|
|
30319
30296
|
|
|
30320
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30297
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/readers/office/index.js
|
|
30321
30298
|
var office = {
|
|
30322
30299
|
id: "office",
|
|
30323
30300
|
version: documentExtractor("odt"),
|
|
@@ -30328,7 +30305,7 @@ var office = {
|
|
|
30328
30305
|
}, "read")
|
|
30329
30306
|
};
|
|
30330
30307
|
|
|
30331
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30308
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/readers/pdf/index.js
|
|
30332
30309
|
var pdf = {
|
|
30333
30310
|
id: "pdf",
|
|
30334
30311
|
version: "unpdf",
|
|
@@ -30395,7 +30372,7 @@ var pdf = {
|
|
|
30395
30372
|
}), "read")
|
|
30396
30373
|
};
|
|
30397
30374
|
|
|
30398
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30375
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/readers/plain/index.js
|
|
30399
30376
|
var PLAIN = /* @__PURE__ */ new Set([".txt", ".md", ".markdown", ".csv", ".tsv", ".json", ".log"]);
|
|
30400
30377
|
var isPlain = /* @__PURE__ */ __name((hint) => PLAIN.has(extensionOf(hint)) || hint.mime?.startsWith("text/") || hint.mime === "application/json", "isPlain");
|
|
30401
30378
|
var readPlain = /* @__PURE__ */ __name((bytes2) => {
|
|
@@ -30415,7 +30392,7 @@ var plain = {
|
|
|
30415
30392
|
read: /* @__PURE__ */ __name(async (bytes2) => readPlain(bytes2), "read")
|
|
30416
30393
|
};
|
|
30417
30394
|
|
|
30418
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30395
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/readers/rtf/index.js
|
|
30419
30396
|
var rtf = {
|
|
30420
30397
|
id: "rtf",
|
|
30421
30398
|
version: "v1",
|
|
@@ -30423,10 +30400,10 @@ var rtf = {
|
|
|
30423
30400
|
read: /* @__PURE__ */ __name(async (bytes2) => derived(bytes2, "rtf:v1", rtfText), "read")
|
|
30424
30401
|
};
|
|
30425
30402
|
|
|
30426
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30403
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/readers/sheets/index.js
|
|
30427
30404
|
import { basename as basename5 } from "node:path";
|
|
30428
30405
|
|
|
30429
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30406
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/attachments/csv-spans.js
|
|
30430
30407
|
var delimitedSpans = /* @__PURE__ */ __name((text2, delimiter, maxCells = 1e4) => {
|
|
30431
30408
|
const cells = [];
|
|
30432
30409
|
let row = 1, column = 1, start = 0, quoted = false, truncated = false;
|
|
@@ -30464,7 +30441,7 @@ var delimitedSpans = /* @__PURE__ */ __name((text2, delimiter, maxCells = 1e4) =
|
|
|
30464
30441
|
return { cells, truncated };
|
|
30465
30442
|
}, "delimitedSpans");
|
|
30466
30443
|
|
|
30467
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30444
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/readers/sheets/index.js
|
|
30468
30445
|
var DELIMITED = {
|
|
30469
30446
|
".csv": ",",
|
|
30470
30447
|
".tsv": " ",
|
|
@@ -30503,7 +30480,7 @@ var sheets = {
|
|
|
30503
30480
|
}, "read")
|
|
30504
30481
|
};
|
|
30505
30482
|
|
|
30506
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30483
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/readers/registry.js
|
|
30507
30484
|
var BUILT_INS2 = [office, pdf, docx, doc, rtf, html, sheets, plain, image2];
|
|
30508
30485
|
var HEAD_BYTES = 1024;
|
|
30509
30486
|
var readers = [...BUILT_INS2];
|
|
@@ -30513,7 +30490,7 @@ var readWithRegistry = /* @__PURE__ */ __name(async (bytes2, hint, context2) =>
|
|
|
30513
30490
|
return reader ? reader.read(bytes2, hint, context2) : { status: "unsupported" };
|
|
30514
30491
|
}, "readWithRegistry");
|
|
30515
30492
|
|
|
30516
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30493
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/attachments/extract.js
|
|
30517
30494
|
var importEngine = /* @__PURE__ */ __name((name) => importFrom(new URL("attachments/extract.js", import.meta.resolve("@wirecat/cli-core")).href, name), "importEngine");
|
|
30518
30495
|
var extensionOf2 = /* @__PURE__ */ __name(({ name, path }) => extname3(name ?? path).toLowerCase(), "extensionOf");
|
|
30519
30496
|
var extractText = /* @__PURE__ */ __name(async (bytes2, hint, load, signal, env = process.env) => {
|
|
@@ -31592,7 +31569,7 @@ function imageSize(input) {
|
|
|
31592
31569
|
}
|
|
31593
31570
|
__name(imageSize, "imageSize");
|
|
31594
31571
|
|
|
31595
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31572
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/attachments/ocr.js
|
|
31596
31573
|
var MAX_PAGES = 20;
|
|
31597
31574
|
var MAX_PIXELS = 2e7;
|
|
31598
31575
|
var cancelled2 = /* @__PURE__ */ __name((signal) => {
|
|
@@ -31743,7 +31720,7 @@ var ocrPdf = /* @__PURE__ */ __name(async (bytes2, pipeline2, load, signal) => {
|
|
|
31743
31720
|
}
|
|
31744
31721
|
}, "ocrPdf");
|
|
31745
31722
|
|
|
31746
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31723
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/attachments/pdf-preview.js
|
|
31747
31724
|
var pdfPreview = /* @__PURE__ */ __name(async (bytes2, page, signal, load = importEngine, env = process.env) => {
|
|
31748
31725
|
const limits = pdfPreviewLimits(env);
|
|
31749
31726
|
const cancelled4 = /* @__PURE__ */ __name(() => {
|
|
@@ -31820,7 +31797,7 @@ var pdfPreview = /* @__PURE__ */ __name(async (bytes2, page, signal, load = impo
|
|
|
31820
31797
|
}
|
|
31821
31798
|
}, "pdfPreview");
|
|
31822
31799
|
|
|
31823
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31800
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/attachments/transfer.js
|
|
31824
31801
|
import { createHash as createHash8 } from "node:crypto";
|
|
31825
31802
|
import { constants } from "node:fs";
|
|
31826
31803
|
import { lstat as lstat3, open as open5 } from "node:fs/promises";
|
|
@@ -31928,7 +31905,7 @@ var transferMime = /* @__PURE__ */ __name((head, hint, name = null) => {
|
|
|
31928
31905
|
return hint !== null && /^[a-z0-9.+-]+\/[a-z0-9.+-]+$/i.test(hint) ? hint : "application/octet-stream";
|
|
31929
31906
|
}, "transferMime");
|
|
31930
31907
|
|
|
31931
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31908
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/services/file-download.js
|
|
31932
31909
|
import { createWriteStream, mkdirSync } from "node:fs";
|
|
31933
31910
|
import { link as link3, rm } from "node:fs/promises";
|
|
31934
31911
|
import { join as join10, resolve as resolve6 } from "node:path";
|
|
@@ -32042,7 +32019,7 @@ var save = /* @__PURE__ */ __name(async (file2, directory2, fallbackName, { uniq
|
|
|
32042
32019
|
}
|
|
32043
32020
|
}, "save");
|
|
32044
32021
|
|
|
32045
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32022
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/services/attachments.js
|
|
32046
32023
|
var ATTACHMENT_QUERY = {
|
|
32047
32024
|
entity: "attachment",
|
|
32048
32025
|
backend: "sql",
|
|
@@ -32465,7 +32442,7 @@ var attachmentsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
32465
32442
|
}, "setText")
|
|
32466
32443
|
}), "attachmentsService");
|
|
32467
32444
|
|
|
32468
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32445
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/services/chat-documents.js
|
|
32469
32446
|
var chatDocumentsService = /* @__PURE__ */ __name((deps) => ({
|
|
32470
32447
|
list: /* @__PURE__ */ __name(async (chat, { limit, offset, ref }) => {
|
|
32471
32448
|
const store = await accountStore(deps);
|
|
@@ -32495,7 +32472,7 @@ var chatDocumentsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
32495
32472
|
}, "list")
|
|
32496
32473
|
}), "chatDocumentsService");
|
|
32497
32474
|
|
|
32498
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32475
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/services/retention.js
|
|
32499
32476
|
var observationDuration = /* @__PURE__ */ __name((text2, flag) => {
|
|
32500
32477
|
const match = /^(\d+(?:\.\d+)?)([smhdw])$/.exec(text2);
|
|
32501
32478
|
const units2 = { s: 1e3, m: 6e4, h: 36e5, d: 864e5, w: 6048e5 };
|
|
@@ -32582,7 +32559,7 @@ var isRetentionSelection = /* @__PURE__ */ __name((selection) => {
|
|
|
32582
32559
|
}
|
|
32583
32560
|
}, "isRetentionSelection");
|
|
32584
32561
|
|
|
32585
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32562
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/services/counters.js
|
|
32586
32563
|
var counterFields = /* @__PURE__ */ __name((text2 = "views,reactions,comments") => {
|
|
32587
32564
|
const fields = text2.split(",").map((one2) => one2.trim());
|
|
32588
32565
|
if (!fields.length || fields.some((one2) => !COUNTER_FIELDS.includes(one2)) || new Set(fields).size !== fields.length)
|
|
@@ -32789,7 +32766,7 @@ var countersService = /* @__PURE__ */ __name((deps) => {
|
|
|
32789
32766
|
};
|
|
32790
32767
|
}, "countersService");
|
|
32791
32768
|
|
|
32792
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32769
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/services/search-refresh.js
|
|
32793
32770
|
var SYNC_KEY = "messages.sync-first";
|
|
32794
32771
|
var SYNC_BOUNDS = { maxChats: 5, timeMs: 3e4, maxMessages: 500 };
|
|
32795
32772
|
var keyOf2 = /* @__PURE__ */ __name((chat) => JSON.stringify([chat.account.provider, chat.account.account, chat.chatId]), "keyOf");
|
|
@@ -32921,7 +32898,7 @@ var withRefresh = /* @__PURE__ */ __name((found, refreshed) => ({
|
|
|
32921
32898
|
...!refreshed || refreshed.complete ? {} : { coverage: { ...found.coverage, state: "stale" } }
|
|
32922
32899
|
}), "withRefresh");
|
|
32923
32900
|
|
|
32924
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32901
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/services/embeddings-search.js
|
|
32925
32902
|
var CANDIDATES = 50;
|
|
32926
32903
|
var WORD_HITS = 200;
|
|
32927
32904
|
var RRF_K = 60;
|
|
@@ -33196,13 +33173,13 @@ var meanOf = /* @__PURE__ */ __name((vectors) => {
|
|
|
33196
33173
|
return mean2.map((value) => value / length);
|
|
33197
33174
|
}, "meanOf");
|
|
33198
33175
|
|
|
33199
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33176
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/services/embeddings.js
|
|
33200
33177
|
var embeddingsService = /* @__PURE__ */ __name((deps) => ({
|
|
33201
33178
|
...embeddingsMaintenance(deps),
|
|
33202
33179
|
...embeddingsSearch(deps)
|
|
33203
33180
|
}), "embeddingsService");
|
|
33204
33181
|
|
|
33205
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33182
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/services/folders.js
|
|
33206
33183
|
var foldersService = /* @__PURE__ */ __name((deps) => {
|
|
33207
33184
|
const online = /* @__PURE__ */ __name(async (command) => {
|
|
33208
33185
|
if (deps.offline)
|
|
@@ -33343,7 +33320,7 @@ var foldersService = /* @__PURE__ */ __name((deps) => {
|
|
|
33343
33320
|
};
|
|
33344
33321
|
}, "foldersService");
|
|
33345
33322
|
|
|
33346
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33323
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/services/mentions.js
|
|
33347
33324
|
var REVIEW_COUNT = 500;
|
|
33348
33325
|
var mentionsService = /* @__PURE__ */ __name((deps) => {
|
|
33349
33326
|
const located = /* @__PURE__ */ __name(async () => {
|
|
@@ -33422,7 +33399,7 @@ var mentionsService = /* @__PURE__ */ __name((deps) => {
|
|
|
33422
33399
|
};
|
|
33423
33400
|
}, "mentionsService");
|
|
33424
33401
|
|
|
33425
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33402
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/domain/formatting.js
|
|
33426
33403
|
var invalid3 = /* @__PURE__ */ __name(() => new CliError("validation_error", "the messenger formatter returned invalid text spans"), "invalid");
|
|
33427
33404
|
var validateFormattedText = /* @__PURE__ */ __name((formatted2) => {
|
|
33428
33405
|
const { text: text2, spans } = formatted2;
|
|
@@ -33482,7 +33459,7 @@ var visibleFormattedText = /* @__PURE__ */ __name((formatted2) => {
|
|
|
33482
33459
|
};
|
|
33483
33460
|
}, "visibleFormattedText");
|
|
33484
33461
|
|
|
33485
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33462
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/domain/message-link.js
|
|
33486
33463
|
var fileLinks = /* @__PURE__ */ __name((attachments) => hitFiles(attachments).map(({ position, kind, name }) => ({
|
|
33487
33464
|
position,
|
|
33488
33465
|
kind,
|
|
@@ -33531,7 +33508,7 @@ var validatePermalink = /* @__PURE__ */ __name((link4) => {
|
|
|
33531
33508
|
return { url: link4.url, access: link4.access, reason: link4.reason };
|
|
33532
33509
|
}, "validatePermalink");
|
|
33533
33510
|
|
|
33534
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33511
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/domain/pin-duration.js
|
|
33535
33512
|
var spokenSeconds = /* @__PURE__ */ __name((seconds) => {
|
|
33536
33513
|
if (seconds % 86400 === 0 && seconds > 86400)
|
|
33537
33514
|
return `${seconds / 86400}d`;
|
|
@@ -33563,7 +33540,7 @@ var pinDurationOf = /* @__PURE__ */ __name((value, allowed, flag = "--expire-tim
|
|
|
33563
33540
|
return seconds;
|
|
33564
33541
|
}, "pinDurationOf");
|
|
33565
33542
|
|
|
33566
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33543
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/sends/send-as.js
|
|
33567
33544
|
var sendAsCheck = /* @__PURE__ */ __name((connection, sendAs) => {
|
|
33568
33545
|
if (sendAs === void 0) {
|
|
33569
33546
|
const saved = connection.savedSender?.bind(connection);
|
|
@@ -33588,7 +33565,7 @@ var typedSendAs = /* @__PURE__ */ __name((typed) => {
|
|
|
33588
33565
|
return sendAs;
|
|
33589
33566
|
}, "typedSendAs");
|
|
33590
33567
|
|
|
33591
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33568
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/search/total.js
|
|
33592
33569
|
var TOTAL_CAP = 1e4;
|
|
33593
33570
|
var totalOf = /* @__PURE__ */ __name((count4, shown, hasMore, exact = true) => {
|
|
33594
33571
|
const least = shown + (hasMore ? 1 : 0);
|
|
@@ -33599,7 +33576,7 @@ var totalOf = /* @__PURE__ */ __name((count4, shown, hasMore, exact = true) => {
|
|
|
33599
33576
|
return { value: count4, relation: exact ? "eq" : "gte" };
|
|
33600
33577
|
}, "totalOf");
|
|
33601
33578
|
|
|
33602
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33579
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/search/lucene/meaning-parts.js
|
|
33603
33580
|
var WORD_FIELDS = /* @__PURE__ */ new Set(["text", "exact"]);
|
|
33604
33581
|
var fieldsOfQuery = /* @__PURE__ */ __name((root, everything) => {
|
|
33605
33582
|
let narrows = false;
|
|
@@ -33628,7 +33605,7 @@ var meaningWords = /* @__PURE__ */ __name((root) => {
|
|
|
33628
33605
|
return wanted(root).join(" ").trim();
|
|
33629
33606
|
}, "meaningWords");
|
|
33630
33607
|
|
|
33631
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33608
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/search/question-plan.js
|
|
33632
33609
|
var words3 = /* @__PURE__ */ __name((text2) => normalize(text2).match(/[\p{L}\p{N}]+/gu) ?? [], "words");
|
|
33633
33610
|
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"));
|
|
33634
33611
|
var questionWord = /\b(?:what|which|how|who|where|when|can|could|should)\b|(?:^|\s)(?:сколько|какой|какая|какие|какое|кто|кому|кем|где|когда|как|что|можно|может|могут|ли)(?:\s|$)/iu;
|
|
@@ -33760,7 +33737,7 @@ var questionLookup = /* @__PURE__ */ __name((text2) => {
|
|
|
33760
33737
|
return terms.length ? anyOfTerms(terms, plan.scope) : void 0;
|
|
33761
33738
|
}, "questionLookup");
|
|
33762
33739
|
|
|
33763
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33740
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/services/messages-combined.js
|
|
33764
33741
|
var COMBINED_DEFAULTS = { candidateDepth: 300, rrfK: 60, rerank: "all", chatCap: 0 };
|
|
33765
33742
|
var tokensOf = /* @__PURE__ */ __name((text2) => normalize(text2).match(/[\p{L}\p{N}\p{Co}\p{M}]+/gu) ?? [], "tokensOf");
|
|
33766
33743
|
var searchCombined = /* @__PURE__ */ __name(async (store, account, request, messenger = {}, options = COMBINED_DEFAULTS) => {
|
|
@@ -33953,7 +33930,7 @@ var signals = /* @__PURE__ */ __name((hit, terms, corrections, execution, mode,
|
|
|
33953
33930
|
return mode === "coverage" ? coverage2 * 4 : mode === "proximity" ? proximity : mode === "phrase" ? phrase : coverage2 * 4 + proximity + phrase;
|
|
33954
33931
|
}, "signals");
|
|
33955
33932
|
|
|
33956
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33933
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/services/messages-discovery.js
|
|
33957
33934
|
var MEANING_DEPTH = 100;
|
|
33958
33935
|
var RRF_K2 = 60;
|
|
33959
33936
|
var RERANK_DEPTH = 50;
|
|
@@ -34278,7 +34255,7 @@ var mixedWithReranker = /* @__PURE__ */ __name((head, scores) => {
|
|
|
34278
34255
|
})).sort((a, b) => b.mixed - a.mixed).map(({ hit }) => hit);
|
|
34279
34256
|
}, "mixedWithReranker");
|
|
34280
34257
|
|
|
34281
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34258
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/services/thread-context.js
|
|
34282
34259
|
var THREAD_BOUNDS = { maxHops: 8, maxMessages: 50, maxBytes: 65536, withinMs: 864e5 };
|
|
34283
34260
|
var bytes = /* @__PURE__ */ __name((items, links) => Buffer.byteLength(JSON.stringify({ items, links }), "utf8"), "bytes");
|
|
34284
34261
|
var threadBounds = /* @__PURE__ */ __name((options = {}) => {
|
|
@@ -34477,7 +34454,7 @@ var readThreadContext = /* @__PURE__ */ __name(async (store, account, chat, mess
|
|
|
34477
34454
|
return result;
|
|
34478
34455
|
}, "readThreadContext");
|
|
34479
34456
|
|
|
34480
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34457
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/services/messages-archive-search.js
|
|
34481
34458
|
var SEARCH_FILL_MS = 200;
|
|
34482
34459
|
var statsStore = /* @__PURE__ */ __name(async (store, account, request, messenger = {}) => {
|
|
34483
34460
|
const stop = Date.now() + SEARCH_FILL_MS;
|
|
@@ -34544,12 +34521,12 @@ var accountOf2 = /* @__PURE__ */ __name((hit) => {
|
|
|
34544
34521
|
}, "accountOf");
|
|
34545
34522
|
var keyOf3 = /* @__PURE__ */ __name(({ provider, account }) => `${provider}/${account}`, "keyOf");
|
|
34546
34523
|
|
|
34547
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34524
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/services/pictures.js
|
|
34548
34525
|
import { createHash as createHash10 } from "node:crypto";
|
|
34549
34526
|
import { readFile as readFile2, stat as stat3 } from "node:fs/promises";
|
|
34550
34527
|
import { setTimeout as sleep4 } from "node:timers/promises";
|
|
34551
34528
|
|
|
34552
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34529
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/domain/models.js
|
|
34553
34530
|
var GROUP_SETTINGS = [
|
|
34554
34531
|
"allCanPin",
|
|
34555
34532
|
"onlyAdminsAdd",
|
|
@@ -34563,7 +34540,7 @@ var ADMIN_RIGHTS = ["read", "members", "admins", "info", "pin", "link", "post",
|
|
|
34563
34540
|
var senderIsMe = /* @__PURE__ */ __name((message, account) => message.outgoing === true || message.senderId !== null && String(message.senderId) === account, "senderIsMe");
|
|
34564
34541
|
var MEDIA_KINDS = ["photo", "video", "file", "audio", "link"];
|
|
34565
34542
|
|
|
34566
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34543
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/services/pictures.js
|
|
34567
34544
|
var PICTURE_MAX_BYTES = 25 * 1024 * 1024;
|
|
34568
34545
|
var PICTURE_FLOOR = 0.25;
|
|
34569
34546
|
var PAGE4 = 50;
|
|
@@ -34580,7 +34557,7 @@ var picturesService = /* @__PURE__ */ __name((deps) => {
|
|
|
34580
34557
|
const directory2 = imageModelsDirectory(deps.env);
|
|
34581
34558
|
if (!isImageModelInstalled(model2, directory2))
|
|
34582
34559
|
throw new CliError("not_found", missingModel(model2.id), { reason: "model.not-downloaded", model: model2.id });
|
|
34583
|
-
const { openPictureEmbedder } = await import("./embedder-
|
|
34560
|
+
const { openPictureEmbedder } = await import("./embedder-TMR4UP7L.js");
|
|
34584
34561
|
return openPictureEmbedder(model2, directory2);
|
|
34585
34562
|
}, "open");
|
|
34586
34563
|
const embedder = /* @__PURE__ */ __name(() => {
|
|
@@ -34777,7 +34754,7 @@ var withPictures = /* @__PURE__ */ __name((messages, pictures) => ({
|
|
|
34777
34754
|
}, "search")
|
|
34778
34755
|
}), "withPictures");
|
|
34779
34756
|
|
|
34780
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34757
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/services/messages-meaning.js
|
|
34781
34758
|
var meaningLane = /* @__PURE__ */ __name((deps) => async (question, accounts, shared, within) => {
|
|
34782
34759
|
const target2 = embeddingTarget(deps, DEFAULT_TEXT_MODEL);
|
|
34783
34760
|
const skipped = /* @__PURE__ */ __name((reason, step) => ({
|
|
@@ -34845,7 +34822,7 @@ var meaningLane = /* @__PURE__ */ __name((deps) => async (question, accounts, sh
|
|
|
34845
34822
|
}
|
|
34846
34823
|
}, "meaningLane");
|
|
34847
34824
|
|
|
34848
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34825
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/services/messages-rerank.js
|
|
34849
34826
|
var rerankLane = /* @__PURE__ */ __name((deps) => {
|
|
34850
34827
|
const choice = deps.reranker ?? DEFAULT_RERANK_MODEL;
|
|
34851
34828
|
if (choice === "off")
|
|
@@ -34857,9 +34834,9 @@ var rerankLane = /* @__PURE__ */ __name((deps) => {
|
|
|
34857
34834
|
return { skipped: { reason: `${model.id} is not downloaded`, step: "models.download", model: model.id } };
|
|
34858
34835
|
try {
|
|
34859
34836
|
const warm = deps.embedders;
|
|
34860
|
-
const reranker = warm ? await warm.reranker(`rerank:${model.id}`, async () => (await import("./process-
|
|
34837
|
+
const reranker = warm ? await warm.reranker(`rerank:${model.id}`, async () => (await import("./process-TCXURVHD.js")).openRerankerProcess(model, directory2, {
|
|
34861
34838
|
threads: defaultThreads()
|
|
34862
|
-
})) : await (await import("./rerank-
|
|
34839
|
+
})) : await (await import("./rerank-OJPVJGX5.js")).openReranker(model, directory2);
|
|
34863
34840
|
return {
|
|
34864
34841
|
model: model.id,
|
|
34865
34842
|
score: /* @__PURE__ */ __name((question, passages) => reranker.score(plainWords(question), passages), "score"),
|
|
@@ -34879,17 +34856,17 @@ var rerankLane = /* @__PURE__ */ __name((deps) => {
|
|
|
34879
34856
|
};
|
|
34880
34857
|
}, "rerankLane");
|
|
34881
34858
|
|
|
34882
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34859
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/services/document-pictures.js
|
|
34883
34860
|
var openPictureEmbedderFor = /* @__PURE__ */ __name(async ({ env, command } = {}) => {
|
|
34884
34861
|
const model = imageModel(DEFAULT_IMAGE_MODEL);
|
|
34885
34862
|
const directory2 = imageModelsDirectory(env);
|
|
34886
34863
|
if (!isImageModelInstalled(model, directory2))
|
|
34887
34864
|
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 });
|
|
34888
|
-
const { openPictureEmbedder } = await import("./embedder-
|
|
34865
|
+
const { openPictureEmbedder } = await import("./embedder-TMR4UP7L.js");
|
|
34889
34866
|
return openPictureEmbedder(model, directory2);
|
|
34890
34867
|
}, "openPictureEmbedderFor");
|
|
34891
34868
|
|
|
34892
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34869
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/services/document-source.js
|
|
34893
34870
|
var documentSource = /* @__PURE__ */ __name((note2, accounts, profiles, file2) => {
|
|
34894
34871
|
const metadata = note2.frontMatter;
|
|
34895
34872
|
const account = accounts.find(({ id: id2 }) => String(id2) === note2.folderId);
|
|
@@ -34904,7 +34881,7 @@ var documentSource = /* @__PURE__ */ __name((note2, accounts, profiles, file2) =
|
|
|
34904
34881
|
};
|
|
34905
34882
|
}, "documentSource");
|
|
34906
34883
|
|
|
34907
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34884
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/services/notes-title-tier.js
|
|
34908
34885
|
var plainQueryWords = /* @__PURE__ */ __name((query) => {
|
|
34909
34886
|
let root;
|
|
34910
34887
|
try {
|
|
@@ -34931,7 +34908,7 @@ var titleTiers = /* @__PURE__ */ __name((hits, words4) => {
|
|
|
34931
34908
|
return [...hits].sort((a, b) => rank(a) - rank(b));
|
|
34932
34909
|
}, "titleTiers");
|
|
34933
34910
|
|
|
34934
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34911
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/services/notes-search.js
|
|
34935
34912
|
var storeQuery = /* @__PURE__ */ __name(async (store, text2, { exact, timezone } = {}) => resolvedQuery(store, parsedQuery(text2, exact), timezone), "storeQuery");
|
|
34936
34913
|
var parsedQuery = /* @__PURE__ */ __name((text2, exact) => validateFields(parseLucene(text2, { ...SEARCH_QUERY, defaultField: exact ? "exact" : "text" })).root, "parsedQuery");
|
|
34937
34914
|
var resolvedQuery = /* @__PURE__ */ __name(async (store, root, timezone) => {
|
|
@@ -35374,7 +35351,7 @@ var searchNotesOf = /* @__PURE__ */ __name(async (store, account, text2, { accou
|
|
|
35374
35351
|
};
|
|
35375
35352
|
}, "searchNotesOf");
|
|
35376
35353
|
|
|
35377
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35354
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/services/events-search.js
|
|
35378
35355
|
var MAX_EVENTS_OFFSET = 1e3;
|
|
35379
35356
|
var iso3 = /* @__PURE__ */ __name((at) => at === null ? null : new Date(at).toISOString(), "iso");
|
|
35380
35357
|
var accountIdsOf = /* @__PURE__ */ __name(async (store, accounts) => {
|
|
@@ -35491,7 +35468,7 @@ var searchEvents = /* @__PURE__ */ __name(async (store, query, { limit = 20, off
|
|
|
35491
35468
|
};
|
|
35492
35469
|
}, "searchEvents");
|
|
35493
35470
|
|
|
35494
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35471
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/services/search-all.js
|
|
35495
35472
|
var RESOURCES_SEARCHED = ["messages", "mail", "notes", "events"];
|
|
35496
35473
|
var skippable = /* @__PURE__ */ __name((error) => error instanceof CliError && (error.code === "validation_error" || error.code === "not_found"), "skippable");
|
|
35497
35474
|
var filtersBeside = /* @__PURE__ */ __name((text2) => {
|
|
@@ -35720,7 +35697,7 @@ var oneList = /* @__PURE__ */ __name((lists, cosines) => {
|
|
|
35720
35697
|
return [...place.values()].sort((a, b) => a.rank - b.rank || cosine(b.item.ref) - cosine(a.item.ref)).map(({ item: item2 }) => item2);
|
|
35721
35698
|
}, "oneList");
|
|
35722
35699
|
|
|
35723
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35700
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/services/search-all-meetings.js
|
|
35724
35701
|
var RESOURCES_SEARCHED_WITH_MEETINGS = [...RESOURCES_SEARCHED, "meetings"];
|
|
35725
35702
|
var whole2 = /* @__PURE__ */ __name((value, minimum, maximum, label) => {
|
|
35726
35703
|
if (!Number.isSafeInteger(value) || value < minimum || value > maximum)
|
|
@@ -35973,7 +35950,7 @@ var searchAllOfSource = /* @__PURE__ */ __name(async (store, account, source, re
|
|
|
35973
35950
|
return { ...found, skipped: [...skipped, ...empty2, ...unnamed, ...found.skipped] };
|
|
35974
35951
|
}, "searchAllOfSource");
|
|
35975
35952
|
|
|
35976
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35953
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/services/server-search.js
|
|
35977
35954
|
var SERVER_SEARCH_KEY = "messages.server-search";
|
|
35978
35955
|
var SERVER_BOUNDS = { timeMs: 5e3, perCall: 100, maxCalls: 3, textBytes: 262144 };
|
|
35979
35956
|
var DEFAULT_BACKEND = "both";
|
|
@@ -36162,7 +36139,7 @@ var searchServer = /* @__PURE__ */ __name(async (deps, request) => {
|
|
|
36162
36139
|
return { report, sources };
|
|
36163
36140
|
}, "searchServer");
|
|
36164
36141
|
|
|
36165
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36142
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/services/messages.js
|
|
36166
36143
|
var DELETE_AT_ONCE = 10;
|
|
36167
36144
|
var filesOf = /* @__PURE__ */ __name(({ attachments }) => {
|
|
36168
36145
|
const files = fileLinks(attachments);
|
|
@@ -36603,7 +36580,7 @@ var checkMediaOptions = /* @__PURE__ */ __name((messenger, asked, attachments) =
|
|
|
36603
36580
|
throw new CliError("validation_error", `${MEDIA_FLAGS[first2]} needs a --photo or --file`);
|
|
36604
36581
|
}, "checkMediaOptions");
|
|
36605
36582
|
|
|
36606
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36583
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/domain/channel-tags.js
|
|
36607
36584
|
var CHANNEL_TAG_RULES_VERSION = "keywords-v1";
|
|
36608
36585
|
var RULES = {
|
|
36609
36586
|
ai: [/\b(ai|gpt|llm|machine learning|artificial intelligence)\b/iu, /нейросет|искусственн/iu],
|
|
@@ -36618,7 +36595,7 @@ var classifyChannel = /* @__PURE__ */ __name((metadata) => Object.entries(RULES)
|
|
|
36618
36595
|
return fields.length ? [{ tag, score: fields.length / 3, fields }] : [];
|
|
36619
36596
|
}), "classifyChannel");
|
|
36620
36597
|
|
|
36621
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36598
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/services/metadata.js
|
|
36622
36599
|
var metadataService = /* @__PURE__ */ __name((deps) => {
|
|
36623
36600
|
const held = /* @__PURE__ */ __name(async (reference, { includeLeft = false } = {}) => {
|
|
36624
36601
|
const store = await deps.store();
|
|
@@ -36704,7 +36681,7 @@ var metadataService = /* @__PURE__ */ __name((deps) => {
|
|
|
36704
36681
|
};
|
|
36705
36682
|
}, "metadataService");
|
|
36706
36683
|
|
|
36707
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36684
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/moderation/check.js
|
|
36708
36685
|
var INVITE = /max\.ru\/join\/|(t|telegram)\.me\/(\+|joinchat\/)|tg:\/\/join/i;
|
|
36709
36686
|
var LINK2 = /https?:\/\/\S+/i;
|
|
36710
36687
|
var STRENGTH = { report: 0, delete: 1, remove: 2 };
|
|
@@ -36892,7 +36869,7 @@ var nextPoint = /* @__PURE__ */ __name((rows, found) => {
|
|
|
36892
36869
|
}, "nextPoint");
|
|
36893
36870
|
var someUndone = /* @__PURE__ */ __name((rows) => rows.some(undone), "someUndone");
|
|
36894
36871
|
|
|
36895
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36872
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/moderation/rules.js
|
|
36896
36873
|
import { existsSync, readFileSync as readFileSync2 } from "node:fs";
|
|
36897
36874
|
import { join as join11 } from "node:path";
|
|
36898
36875
|
var RULE_ACTIONS = ["report", "delete", "remove"];
|
|
@@ -37035,7 +37012,7 @@ var assign = /* @__PURE__ */ __name((rules, key, value) => {
|
|
|
37035
37012
|
return { ...rules, [head]: { ...rules[head], [tail]: value } };
|
|
37036
37013
|
}, "assign");
|
|
37037
37014
|
|
|
37038
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37015
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/moderation/run.js
|
|
37039
37016
|
var FIRST_LOOK_MS = 24 * 36e5;
|
|
37040
37017
|
var moderateWith = /* @__PURE__ */ __name(async (run) => {
|
|
37041
37018
|
const { chatId, title, rules, point, since, dryRun } = run;
|
|
@@ -37072,7 +37049,7 @@ var moderateWith = /* @__PURE__ */ __name(async (run) => {
|
|
|
37072
37049
|
return { chatId, rows, notes };
|
|
37073
37050
|
}, "moderateWith");
|
|
37074
37051
|
|
|
37075
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37052
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/services/moderation.js
|
|
37076
37053
|
var moderationService = /* @__PURE__ */ __name((deps) => {
|
|
37077
37054
|
const file2 = /* @__PURE__ */ __name(() => new ModerationRules(moderationPathFor(deps.messenger.app, deps.profile ?? "default", deps.env ?? process.env)), "file");
|
|
37078
37055
|
const group = /* @__PURE__ */ __name(async (chat) => {
|
|
@@ -37150,7 +37127,7 @@ var moderatorOf = /* @__PURE__ */ __name((adapter, deps) => ({
|
|
|
37150
37127
|
}, "removePerson")
|
|
37151
37128
|
}), "moderatorOf");
|
|
37152
37129
|
|
|
37153
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37130
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/services/private-people.js
|
|
37154
37131
|
var noteItem = /* @__PURE__ */ __name((provider, note2) => ({
|
|
37155
37132
|
id: note2.id,
|
|
37156
37133
|
contact: formatReference({ type: "contact", provider, id: note2.personId }),
|
|
@@ -37194,7 +37171,7 @@ var privatePeopleService = /* @__PURE__ */ __name((deps) => {
|
|
|
37194
37171
|
};
|
|
37195
37172
|
}, "privatePeopleService");
|
|
37196
37173
|
|
|
37197
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37174
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/services/rankings.js
|
|
37198
37175
|
var empty = /* @__PURE__ */ __name(() => ({
|
|
37199
37176
|
total: 0,
|
|
37200
37177
|
population: 0,
|
|
@@ -37450,7 +37427,7 @@ var rankingsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
37450
37427
|
}, "evidence")
|
|
37451
37428
|
}), "rankingsService");
|
|
37452
37429
|
|
|
37453
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37430
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/services/reply-stats.js
|
|
37454
37431
|
var FIELDS = ["date", "chat", "kind"];
|
|
37455
37432
|
var WAITING_TAIL = 100;
|
|
37456
37433
|
var plainOnly = /* @__PURE__ */ __name((text2, command) => {
|
|
@@ -37577,7 +37554,7 @@ var replyStatsService = /* @__PURE__ */ __name((deps) => {
|
|
|
37577
37554
|
};
|
|
37578
37555
|
}, "replyStatsService");
|
|
37579
37556
|
|
|
37580
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37557
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/services/searches.js
|
|
37581
37558
|
var savedSearchItem = /* @__PURE__ */ __name((one2) => ({
|
|
37582
37559
|
id: one2.id,
|
|
37583
37560
|
name: one2.name,
|
|
@@ -37706,7 +37683,7 @@ var searchesService = /* @__PURE__ */ __name((deps) => {
|
|
|
37706
37683
|
};
|
|
37707
37684
|
}, "searchesService");
|
|
37708
37685
|
|
|
37709
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37686
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/services/tags.js
|
|
37710
37687
|
var TAGGING_QUERY = {
|
|
37711
37688
|
entity: "tagging",
|
|
37712
37689
|
backend: "sql",
|
|
@@ -37790,7 +37767,7 @@ var tagsService = /* @__PURE__ */ __name((deps) => {
|
|
|
37790
37767
|
};
|
|
37791
37768
|
}, "tagsService");
|
|
37792
37769
|
|
|
37793
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37770
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/services/topics.js
|
|
37794
37771
|
var actionOf = /* @__PURE__ */ __name(({ title, closed, pinned, hidden, icon }) => {
|
|
37795
37772
|
const set = [closed, pinned, hidden].filter((one2) => one2 !== void 0).length;
|
|
37796
37773
|
if (title !== void 0 || icon !== void 0 || set !== 1)
|
|
@@ -37989,7 +37966,7 @@ var topicsService = /* @__PURE__ */ __name((deps) => {
|
|
|
37989
37966
|
};
|
|
37990
37967
|
}, "topicsService");
|
|
37991
37968
|
|
|
37992
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37969
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/services/evidence.js
|
|
37993
37970
|
import { createHash as createHash11, randomUUID as randomUUID5 } from "node:crypto";
|
|
37994
37971
|
var hash2 = /* @__PURE__ */ __name((value) => createHash11("sha256").update(JSON.stringify(value)).digest("hex"), "hash");
|
|
37995
37972
|
var positive = /* @__PURE__ */ __name((value, name, minimum = 1) => {
|
|
@@ -38063,7 +38040,7 @@ var prepareEvidencePacket = /* @__PURE__ */ __name(({ kind, source, page, limits
|
|
|
38063
38040
|
return { ...content, id: randomUUID5(), fingerprint: hash2(content) };
|
|
38064
38041
|
}, "prepareEvidencePacket");
|
|
38065
38042
|
|
|
38066
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38043
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/services/evidence-read.js
|
|
38067
38044
|
var readEvidencePacket = /* @__PURE__ */ __name(async (store, account, { chat, limit, before: before2 }, messenger = {}) => {
|
|
38068
38045
|
if (!Number.isSafeInteger(limit) || limit < 1 || limit > 100)
|
|
38069
38046
|
throw new CliError("validation_error", "evidence message limit must be an integer from 1 to 100");
|
|
@@ -38083,7 +38060,7 @@ var readEvidencePacket = /* @__PURE__ */ __name(async (store, account, { chat, l
|
|
|
38083
38060
|
return { ...packet, nextBeforeId: older && last ? last.id : null };
|
|
38084
38061
|
}, "readEvidencePacket");
|
|
38085
38062
|
|
|
38086
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38063
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/services/meeting-hit-search.js
|
|
38087
38064
|
var refreshMeetingIndex = /* @__PURE__ */ __name(async (meetings, accountId, signal) => {
|
|
38088
38065
|
let before2 = Number.POSITIVE_INFINITY;
|
|
38089
38066
|
for (; ; ) {
|
|
@@ -38145,7 +38122,7 @@ var searchMeetingHits = /* @__PURE__ */ __name(async (store, query, request, opt
|
|
|
38145
38122
|
return { ...result, selection };
|
|
38146
38123
|
}, "searchMeetingHits");
|
|
38147
38124
|
|
|
38148
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38125
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/services/meeting-project-discovery.js
|
|
38149
38126
|
import { createHash as createHash12 } from "node:crypto";
|
|
38150
38127
|
var scopeKeys = [
|
|
38151
38128
|
"accountId",
|
|
@@ -38280,7 +38257,7 @@ var readMeetingProjectDiscovery = /* @__PURE__ */ __name(async (ports, projectNa
|
|
|
38280
38257
|
};
|
|
38281
38258
|
}, "readMeetingProjectDiscovery");
|
|
38282
38259
|
|
|
38283
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38260
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/services/meeting-hit-context.js
|
|
38284
38261
|
import { createHash as createHash13 } from "node:crypto";
|
|
38285
38262
|
var contextCue = /* @__PURE__ */ __name((cue) => ({
|
|
38286
38263
|
ref: cue.reference,
|
|
@@ -38398,7 +38375,7 @@ var readMeetingHitContext = /* @__PURE__ */ __name(async (store, accountId, refe
|
|
|
38398
38375
|
return { ...packet, fingerprint: createHash13("sha256").update(JSON.stringify(packet)).digest("hex") };
|
|
38399
38376
|
}, "readMeetingHitContext");
|
|
38400
38377
|
|
|
38401
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38378
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/services/meeting-passage-format.js
|
|
38402
38379
|
var visible = /* @__PURE__ */ __name((text2) => text2.replace(/[\p{Cc}\p{Cf}]/gu, (value) => value === "\n" || value === " " ? value : `\\u{${value.codePointAt(0)?.toString(16)}}`), "visible");
|
|
38403
38380
|
var markdown = /* @__PURE__ */ __name((text2) => visible(text2).replaceAll("&", "&").replaceAll("<", "<").replaceAll(">", ">").replace(/[\\`*_[\]#|~]/g, "\\$&"), "markdown");
|
|
38404
38381
|
var timestamp = /* @__PURE__ */ __name((ms) => {
|
|
@@ -38474,7 +38451,7 @@ var readMeetingPassage = /* @__PURE__ */ __name(async (store, accountId, referen
|
|
|
38474
38451
|
return { packet, content };
|
|
38475
38452
|
}, "readMeetingPassage");
|
|
38476
38453
|
|
|
38477
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38454
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/context/communication-selection.js
|
|
38478
38455
|
var communicationFields = {
|
|
38479
38456
|
sources: pipe(array(strictObject({
|
|
38480
38457
|
id: pipe(string(), regex(/^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$/)),
|
|
@@ -38506,7 +38483,7 @@ var communicationRequest = /* @__PURE__ */ __name((value, preparationAfter) => {
|
|
|
38506
38483
|
return { ...input, after, before: before2 };
|
|
38507
38484
|
}, "communicationRequest");
|
|
38508
38485
|
|
|
38509
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38486
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/services/meeting-preparation-validation.js
|
|
38510
38487
|
var MEETING_PREPARATION_LIMITS = {
|
|
38511
38488
|
meetings: { min: 1, max: 20, default: 5 },
|
|
38512
38489
|
cues: { min: 1, max: 100, default: 10 },
|
|
@@ -38592,7 +38569,7 @@ var preparationRequest = /* @__PURE__ */ __name((accountId, externalId, original
|
|
|
38592
38569
|
return { ...input, history };
|
|
38593
38570
|
}, "preparationRequest");
|
|
38594
38571
|
|
|
38595
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38572
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/services/meeting-communications-preparation.js
|
|
38596
38573
|
var readPreparationCommunications = /* @__PURE__ */ __name(async (plan, signal) => {
|
|
38597
38574
|
const section = {
|
|
38598
38575
|
readUsage: plan.reader.usage(),
|
|
@@ -38697,7 +38674,7 @@ var appendPreparationCommunications = /* @__PURE__ */ __name((result, read2) =>
|
|
|
38697
38674
|
result.knowledge.coverage.otherSources = "see-communications";
|
|
38698
38675
|
}, "appendPreparationCommunications");
|
|
38699
38676
|
|
|
38700
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38677
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/services/meeting-communications-selection.js
|
|
38701
38678
|
var captureCommunicationSelections = /* @__PURE__ */ __name((port) => {
|
|
38702
38679
|
if (port === void 0)
|
|
38703
38680
|
return void 0;
|
|
@@ -38802,7 +38779,7 @@ var validatePreparationCommunications = /* @__PURE__ */ __name((section, request
|
|
|
38802
38779
|
}
|
|
38803
38780
|
}, "validatePreparationCommunications");
|
|
38804
38781
|
|
|
38805
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38782
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/services/meeting-knowledge-preparation.js
|
|
38806
38783
|
var invalid5 = /* @__PURE__ */ __name(() => {
|
|
38807
38784
|
throw new CliError("invalid_response", "Preparation knowledge returned an invalid selection");
|
|
38808
38785
|
}, "invalid");
|
|
@@ -38871,7 +38848,7 @@ var appendKnowledgePreparation = /* @__PURE__ */ __name(async (store, result, in
|
|
|
38871
38848
|
}
|
|
38872
38849
|
}, "appendKnowledgePreparation");
|
|
38873
38850
|
|
|
38874
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38851
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/services/meeting-notes-preparation.js
|
|
38875
38852
|
var invalid6 = /* @__PURE__ */ __name(() => {
|
|
38876
38853
|
throw new CliError("invalid_response", "Preparation notes returned an invalid selection");
|
|
38877
38854
|
}, "invalid");
|
|
@@ -38945,7 +38922,7 @@ var appendNotesPreparation = /* @__PURE__ */ __name(async (store, result, input)
|
|
|
38945
38922
|
}
|
|
38946
38923
|
}, "appendNotesPreparation");
|
|
38947
38924
|
|
|
38948
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38925
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/services/meeting-project-preparation.js
|
|
38949
38926
|
var PAGE_LIMIT = 4;
|
|
38950
38927
|
var size2 = /* @__PURE__ */ __name((value) => Buffer.byteLength(JSON.stringify(value), "utf8"), "size");
|
|
38951
38928
|
var appendProjectPreparation = /* @__PURE__ */ __name(async (ports, result, input) => {
|
|
@@ -38995,7 +38972,7 @@ var appendProjectPreparation = /* @__PURE__ */ __name(async (ports, result, inpu
|
|
|
38995
38972
|
}
|
|
38996
38973
|
}, "appendProjectPreparation");
|
|
38997
38974
|
|
|
38998
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38975
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/services/meeting-related-preparation.js
|
|
38999
38976
|
var appendRelatedPreparation = /* @__PURE__ */ __name(async (store, result, input) => {
|
|
39000
38977
|
if (!result.series || !result.items.length || result.coverage.outputLimited)
|
|
39001
38978
|
return;
|
|
@@ -39067,7 +39044,7 @@ var appendRelatedPreparation = /* @__PURE__ */ __name(async (store, result, inpu
|
|
|
39067
39044
|
}
|
|
39068
39045
|
}, "appendRelatedPreparation");
|
|
39069
39046
|
|
|
39070
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39047
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/services/meeting-preparation.js
|
|
39071
39048
|
var size3 = /* @__PURE__ */ __name((value) => Buffer.byteLength(JSON.stringify(value), "utf8"), "size");
|
|
39072
39049
|
var createMeetingPreparationService = /* @__PURE__ */ __name((scope, accountId, ports) => {
|
|
39073
39050
|
const fixed = snapshotMeetingScope(scope);
|
|
@@ -39205,7 +39182,7 @@ var createMeetingPreparationService = /* @__PURE__ */ __name((scope, accountId,
|
|
|
39205
39182
|
};
|
|
39206
39183
|
}, "createMeetingPreparationService");
|
|
39207
39184
|
|
|
39208
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39185
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/services/package-upgrade.js
|
|
39209
39186
|
var upgradePackage = /* @__PURE__ */ __name(async ({ current, command, packageName, check: check2 }, ports) => {
|
|
39210
39187
|
const installer = ports.installer();
|
|
39211
39188
|
const argv = updateCommand(installer, packageName);
|
|
@@ -39270,7 +39247,7 @@ var dayAfter = /* @__PURE__ */ __name((published) => {
|
|
|
39270
39247
|
return Number.isNaN(time) ? null : new Date(time + 24 * 60 * 60 * 1e3).toISOString();
|
|
39271
39248
|
}, "dayAfter");
|
|
39272
39249
|
|
|
39273
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39250
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/services/index.js
|
|
39274
39251
|
var servicesFor = /* @__PURE__ */ __name((deps) => {
|
|
39275
39252
|
const pictures = picturesService(deps);
|
|
39276
39253
|
const base = {
|
|
@@ -39307,7 +39284,7 @@ var servicesFor = /* @__PURE__ */ __name((deps) => {
|
|
|
39307
39284
|
return deps.messenger.services ? { ...base, ...deps.messenger.services(base, deps) } : base;
|
|
39308
39285
|
}, "servicesFor");
|
|
39309
39286
|
|
|
39310
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39287
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/background/relay.js
|
|
39311
39288
|
import { createHash as createHash14 } from "node:crypto";
|
|
39312
39289
|
import { chmodSync, lstatSync, mkdirSync as mkdirSync3, rmSync } from "node:fs";
|
|
39313
39290
|
import { createConnection, createServer } from "node:net";
|
|
@@ -39455,7 +39432,7 @@ var serve = /* @__PURE__ */ __name(async (socket, request, stdin, signal, run) =
|
|
|
39455
39432
|
}
|
|
39456
39433
|
}, "serve");
|
|
39457
39434
|
|
|
39458
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39435
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-relay.js
|
|
39459
39436
|
var lentConnection = /* @__PURE__ */ __name((connection, watchers) => throughWrapper(connection, {
|
|
39460
39437
|
close: /* @__PURE__ */ __name(async () => {
|
|
39461
39438
|
}, "close"),
|