@wirecat/cli-memo 0.131.42 → 0.131.44
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-ZBEW2K6Y.js → all-profiles-MFZPFIHO.js} +5 -5
- package/dist/bundle/{anthropic-2OBFMS2B.js → anthropic-KJBO3FCU.js} +3 -3
- package/dist/bundle/{app-server-2BPUD7XU.js → app-server-A2XCJDGI.js} +35 -35
- package/dist/bundle/auto-W3BUP6YI.js +86 -0
- package/dist/bundle/{bun-4NGTZRHL.js → bun-BT7YVHDQ.js} +2 -2
- package/dist/bundle/{bun-sqlite-INSVTXFN.js → bun-sqlite-EG4TSO2G.js} +2 -2
- package/dist/bundle/{chunk-HCMQGNZU.js → chunk-2HHWU7GF.js} +5 -5
- package/dist/bundle/{chunk-A2KU4HSF.js → chunk-45LXRNPA.js} +56 -56
- package/dist/bundle/{chunk-5O3T7Z7F.js → chunk-4J6U4RIU.js} +296 -282
- package/dist/bundle/{chunk-4OYYJSRS.js → chunk-5HODYN65.js} +31 -31
- package/dist/bundle/{chunk-2IO2DEBO.js → chunk-5OOASLTP.js} +8 -8
- package/dist/bundle/{chunk-RV4EBFH2.js → chunk-5Q5JMJKP.js} +9 -9
- package/dist/bundle/{chunk-CKLLVPTR.js → chunk-6LXBT4F3.js} +1 -1
- package/dist/bundle/{chunk-O4I3BJPM.js → chunk-7VXPMICZ.js} +6 -6
- package/dist/bundle/{chunk-TWBJOORY.js → chunk-BBT2TWCN.js} +1 -1
- package/dist/bundle/{chunk-DA5YMQCB.js → chunk-BJS2EWG5.js} +2 -2
- package/dist/bundle/{chunk-UX34ZUMK.js → chunk-CJQYTFN6.js} +3 -3
- package/dist/bundle/{chunk-MWKPW3RU.js → chunk-E454LAVZ.js} +1 -1
- package/dist/bundle/{chunk-2P54ZDQO.js → chunk-EYKJXPDD.js} +7 -7
- package/dist/bundle/{chunk-E3P7PIR3.js → chunk-GTN4Z7XH.js} +3 -3
- package/dist/bundle/{chunk-TCNOZZPS.js → chunk-GURLGLGY.js} +11 -11
- package/dist/bundle/{chunk-KVKO4X7K.js → chunk-GWI3XFJR.js} +3 -3
- package/dist/bundle/{chunk-UK2MCVKV.js → chunk-GZCZKPUM.js} +248 -248
- package/dist/bundle/{chunk-GECE7WJD.js → chunk-GZTKZRWO.js} +2 -2
- package/dist/bundle/{chunk-GHLLCV4E.js → chunk-HQXTNBEY.js} +7 -7
- package/dist/bundle/{chunk-O6YTC7DC.js → chunk-I6JHSNDD.js} +1 -1
- package/dist/bundle/{chunk-CZ2CX43P.js → chunk-IKLSYWX7.js} +4 -4
- package/dist/bundle/{chunk-YLJWCB6F.js → chunk-IXAHSLWQ.js} +43 -43
- package/dist/bundle/{chunk-QWNEZWGZ.js → chunk-JFGPXSHH.js} +4 -4
- package/dist/bundle/{chunk-WSPCOSYD.js → chunk-K6UTFYOL.js} +4 -4
- package/dist/bundle/{chunk-KHEFBWLH.js → chunk-KD4A5HF6.js} +1 -1
- package/dist/bundle/{chunk-HQQC5JRS.js → chunk-KKDTX2LO.js} +4 -4
- package/dist/bundle/{chunk-UCLNEOQS.js → chunk-MEO3B2OF.js} +12 -12
- package/dist/bundle/{chunk-RHIQ34XW.js → chunk-MQ66CMD3.js} +2 -2
- package/dist/bundle/{chunk-6BW7SC6A.js → chunk-N4XNQ67E.js} +1 -1
- package/dist/bundle/{chunk-WG6AOUQW.js → chunk-N6XUB5Z6.js} +24 -21
- package/dist/bundle/{chunk-OAIRZNL2.js → chunk-NEQGFKOR.js} +1 -1
- package/dist/bundle/{chunk-OJX6GNQY.js → chunk-NKAXCQNN.js} +20 -20
- package/dist/bundle/{chunk-42VOTRWE.js → chunk-NXCYAOYY.js} +1 -1
- package/dist/bundle/{chunk-QWZUMUA7.js → chunk-NXJZMS35.js} +5 -5
- package/dist/bundle/{chunk-TBGBA45H.js → chunk-O4VDVY67.js} +1 -1
- package/dist/bundle/{chunk-T4NH7JI6.js → chunk-OBFWJJFV.js} +2 -2
- package/dist/bundle/{chunk-IAML53OZ.js → chunk-OEOU4MLY.js} +2 -2
- package/dist/bundle/{chunk-67TMJCHI.js → chunk-OK372VP3.js} +10 -10
- package/dist/bundle/{chunk-WFA2ZLJB.js → chunk-POSVGIP5.js} +149 -149
- package/dist/bundle/{chunk-LBMZ7SQI.js → chunk-Q2SZI7LP.js} +2 -2
- package/dist/bundle/{chunk-XUNIJW7V.js → chunk-Q2XEAF7Q.js} +9 -9
- package/dist/bundle/{chunk-W7GJREIL.js → chunk-QNLXDR4W.js} +2 -2
- package/dist/bundle/{chunk-KBOLP4OR.js → chunk-QZDSHJMZ.js} +27 -27
- package/dist/bundle/{chunk-F6UUS3OF.js → chunk-R2YMI2ZV.js} +1 -1
- package/dist/bundle/{chunk-ELPCHMDA.js → chunk-S4PKJOJP.js} +3 -3
- package/dist/bundle/{chunk-QWNVEFWY.js → chunk-SP7FRSAG.js} +5 -5
- package/dist/bundle/{chunk-O34QHLL5.js → chunk-SWE4LSXN.js} +1 -1
- package/dist/bundle/{chunk-NP5FU56F.js → chunk-T2NE3S47.js} +1 -1
- package/dist/bundle/{chunk-NCBHNEWW.js → chunk-T3ZQDLBU.js} +1 -1
- package/dist/bundle/{chunk-JWQWLMFP.js → chunk-TK6P24AN.js} +413 -386
- package/dist/bundle/{chunk-LJDBOXZN.js → chunk-WJBLLOBC.js} +1 -1
- package/dist/bundle/{chunk-2XCXOI4F.js → chunk-WNZVZE3L.js} +4 -4
- package/dist/bundle/{chunk-OYHQYCGJ.js → chunk-X3PFDJSJ.js} +4 -4
- package/dist/bundle/{chunk-EKFHAT36.js → chunk-XIZPBRIW.js} +1 -1
- package/dist/bundle/{chunk-KKXXP5RY.js → chunk-XTLFCF35.js} +7 -7
- package/dist/bundle/{chunk-TXU5T7VA.js → chunk-YGNKWWOX.js} +1 -1
- package/dist/bundle/{chunk-PRL227K7.js → chunk-ZIRR4BJ5.js} +5 -5
- package/dist/bundle/{command-contract-EYE52WTH.js → command-contract-JJQE3MCP.js} +11 -11
- package/dist/bundle/{decode-JVG6DJJV.js → decode-AMWZXLFS.js} +2 -2
- package/dist/bundle/{echarts-4IS4IPI4.js → echarts-UCAIOY4N.js} +2 -2
- package/dist/bundle/{embed-7CN33CQR.js → embed-DYNZ4223.js} +3 -3
- package/dist/bundle/{embedder-TZ345BZF.js → embedder-XG344VNB.js} +6 -6
- package/dist/bundle/{entry-5VZRNBLV.js → entry-CIUBRSDD.js} +4 -4
- package/dist/bundle/failure-JTQUF4RT.js +66 -0
- package/dist/bundle/{first-run-EMHSBODF.js → first-run-DFXU6DO2.js} +5 -5
- package/dist/bundle/{first-screen-3PJ3HFLG.js → first-screen-QDTJRHSS.js} +12 -12
- package/dist/bundle/{instructions-BTAYTZIS.js → instructions-MFAYYVVL.js} +1 -1
- package/dist/bundle/{mcp-I5KREUIV.js → mcp-5GUDJIDV.js} +35 -35
- package/dist/bundle/memo.js +6 -6
- package/dist/bundle/{node-FMT4QVUG.js → node-UILGGXFZ.js} +2 -2
- package/dist/bundle/{node-sqlite-2RDIBVYM.js → node-sqlite-FJR5DRBC.js} +3 -3
- package/dist/bundle/{oauth-MF53KMXM.js → oauth-2WCGPG4N.js} +4 -4
- package/dist/bundle/{open-WKKHNBXL.js → open-I7ZYXOHK.js} +2 -2
- package/dist/bundle/{openai-36KNG2DB.js → openai-4GB2FGUR.js} +7 -7
- package/dist/bundle/{process-F2FWK4Q4.js → process-NRZZD4IS.js} +1 -1
- package/dist/bundle/{program-W55Y6LL2.js → program-HYJUSSU4.js} +567 -198
- package/dist/bundle/{prompt-2TR6X3TJ.js → prompt-F5RHTE7V.js} +2 -2
- package/dist/bundle/{recognize-MOBCGUI7.js → recognize-UXXDJQEW.js} +1 -1
- package/dist/bundle/{remote-GARKVCO7.js → remote-IW5FTICS.js} +4 -4
- package/dist/bundle/{rerank-L3G7P3KX.js → rerank-RRLNQ5C2.js} +4 -4
- package/dist/bundle/{serve-ABRMEJ7P.js → serve-GXJLUYCV.js} +6 -6
- package/dist/bundle/{server-XLMROR5L.js → server-646V4VPF.js} +50 -50
- package/dist/bundle/server-DJUCOKNC.js +48 -0
- package/dist/bundle/server-ITBSOGIC.js +61 -0
- package/dist/bundle/{state-5N2RVH2Y.js → state-3NLLRTD2.js} +3 -3
- package/dist/bundle/{store-4ML7O47C.js → store-3DFD7E66.js} +9 -9
- package/dist/bundle/store-maintenance-command-D7O6QCVF.js +48 -0
- package/dist/bundle/update-GQFRQVAV.js +69 -0
- package/dist/context/command.d.ts +4 -0
- package/dist/context/command.d.ts.map +1 -1
- package/dist/context/command.js +7 -5
- package/dist/context/command.js.map +1 -1
- package/dist/context/context.d.ts.map +1 -1
- package/dist/context/context.js +4 -3
- package/dist/context/context.js.map +1 -1
- package/dist/contract-overrides/skill.js +1 -1
- package/dist/contract-overrides/skill.js.map +1 -1
- package/dist/digest/command.d.ts +9 -0
- package/dist/digest/command.d.ts.map +1 -0
- package/dist/digest/command.js +58 -0
- package/dist/digest/command.js.map +1 -0
- package/dist/digest/digest.d.ts +57 -0
- package/dist/digest/digest.d.ts.map +1 -0
- package/dist/digest/digest.js +333 -0
- package/dist/digest/digest.js.map +1 -0
- package/dist/digest/text.d.ts +8 -0
- package/dist/digest/text.d.ts.map +1 -0
- package/dist/digest/text.js +35 -0
- package/dist/digest/text.js.map +1 -0
- package/dist/examples.d.ts.map +1 -1
- package/dist/examples.js +3 -2
- package/dist/examples.js.map +1 -1
- package/dist/knowledge/command.d.ts.map +1 -1
- package/dist/knowledge/command.js +17 -33
- package/dist/knowledge/command.js.map +1 -1
- package/dist/knowledge/project-context.d.ts +1 -0
- package/dist/knowledge/project-context.d.ts.map +1 -1
- package/dist/knowledge/project-context.js +6 -3
- package/dist/knowledge/project-context.js.map +1 -1
- package/dist/knowledge/project-status-command.d.ts.map +1 -1
- package/dist/knowledge/project-status-command.js +2 -1
- package/dist/knowledge/project-status-command.js.map +1 -1
- package/dist/program.d.ts.map +1 -1
- package/dist/program.js +1 -0
- package/dist/program.js.map +1 -1
- package/dist/review/command.d.ts.map +1 -1
- package/dist/review/command.js +4 -8
- package/dist/review/command.js.map +1 -1
- package/dist/review/status.d.ts +9 -0
- package/dist/review/status.d.ts.map +1 -1
- package/dist/review/status.js +11 -6
- package/dist/review/status.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +2 -2
- package/skills/cli-memo/topics/projects.md +3 -1
- package/skills/morning-digest/SKILL.md +49 -0
- package/dist/bundle/auto-NIATDHS4.js +0 -86
- package/dist/bundle/failure-KIFYUUO6.js +0 -66
- package/dist/bundle/server-NMRAFTY3.js +0 -61
- package/dist/bundle/server-VX3L42ED.js +0 -48
- package/dist/bundle/store-maintenance-command-O3OTXKNO.js +0 -48
- package/dist/bundle/update-OWKZLZTS.js +0 -69
- /package/dist/bundle/{chunk-O3EZTSTN.js → chunk-NJG67ZXD.js} +0 -0
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
sameOrdinaryFile,
|
|
9
9
|
syncDirectory,
|
|
10
10
|
writeFileAtomic
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-MEO3B2OF.js";
|
|
12
12
|
import {
|
|
13
13
|
Command,
|
|
14
14
|
DEFAULT_IMAGE_MODEL,
|
|
@@ -48,17 +48,17 @@ import {
|
|
|
48
48
|
typedCommand,
|
|
49
49
|
vectorModelKey,
|
|
50
50
|
withAttempt
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-POSVGIP5.js";
|
|
52
52
|
import {
|
|
53
53
|
isCliFailure
|
|
54
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-EYKJXPDD.js";
|
|
55
55
|
import {
|
|
56
56
|
isNewer,
|
|
57
57
|
updateCommand
|
|
58
58
|
} from "./chunk-JY34MQW4.js";
|
|
59
59
|
import {
|
|
60
60
|
readOnlyLockOf
|
|
61
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-BBT2TWCN.js";
|
|
62
62
|
import {
|
|
63
63
|
AGENDA_COLUMNS,
|
|
64
64
|
CHAT_COLUMNS,
|
|
@@ -160,7 +160,7 @@ import {
|
|
|
160
160
|
validateAst,
|
|
161
161
|
validateFields,
|
|
162
162
|
withoutField
|
|
163
|
-
} from "./chunk-
|
|
163
|
+
} from "./chunk-4J6U4RIU.js";
|
|
164
164
|
import {
|
|
165
165
|
EVENT_QUERY,
|
|
166
166
|
MEETING_FINDINGS_KIND,
|
|
@@ -214,23 +214,23 @@ import {
|
|
|
214
214
|
validateQuery,
|
|
215
215
|
walkQuery,
|
|
216
216
|
zonedMoment
|
|
217
|
-
} from "./chunk-
|
|
217
|
+
} from "./chunk-45LXRNPA.js";
|
|
218
218
|
import {
|
|
219
219
|
DEFAULT_STEMMERS,
|
|
220
220
|
createStemmer,
|
|
221
221
|
fold,
|
|
222
222
|
normalize
|
|
223
|
-
} from "./chunk-
|
|
223
|
+
} from "./chunk-HQXTNBEY.js";
|
|
224
224
|
import {
|
|
225
225
|
DEFAULT_TASK_CATEGORIES,
|
|
226
226
|
FALLBACK_CATEGORY
|
|
227
|
-
} from "./chunk-
|
|
227
|
+
} from "./chunk-X3PFDJSJ.js";
|
|
228
228
|
import {
|
|
229
229
|
MAX_MODEL_IMAGE_BYTES
|
|
230
|
-
} from "./chunk-
|
|
230
|
+
} from "./chunk-KD4A5HF6.js";
|
|
231
231
|
import {
|
|
232
232
|
remoteKey
|
|
233
|
-
} from "./chunk-
|
|
233
|
+
} from "./chunk-BJS2EWG5.js";
|
|
234
234
|
import {
|
|
235
235
|
Unzip,
|
|
236
236
|
UnzipInflate,
|
|
@@ -241,15 +241,15 @@ import {
|
|
|
241
241
|
placedText,
|
|
242
242
|
runEmbedders,
|
|
243
243
|
textModelsDirectory
|
|
244
|
-
} from "./chunk-
|
|
244
|
+
} from "./chunk-NXJZMS35.js";
|
|
245
245
|
import {
|
|
246
246
|
installFiles,
|
|
247
247
|
megabytes
|
|
248
|
-
} from "./chunk-
|
|
248
|
+
} from "./chunk-CJQYTFN6.js";
|
|
249
249
|
import {
|
|
250
250
|
storePath,
|
|
251
251
|
wirecatDirectory
|
|
252
|
-
} from "./chunk-
|
|
252
|
+
} from "./chunk-R2YMI2ZV.js";
|
|
253
253
|
import {
|
|
254
254
|
resolvePaths,
|
|
255
255
|
writeSecurely
|
|
@@ -16902,7 +16902,7 @@ var require_lib3 = __commonJS({
|
|
|
16902
16902
|
}
|
|
16903
16903
|
});
|
|
16904
16904
|
|
|
16905
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16905
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/conversations/link.js
|
|
16906
16906
|
var RULES_VERSION = 5;
|
|
16907
16907
|
var LOOK_BACK = 50;
|
|
16908
16908
|
var SAME_SENDER_WITHIN = 10;
|
|
@@ -16992,13 +16992,13 @@ var latest = /* @__PURE__ */ __name((window3, matches) => {
|
|
|
16992
16992
|
var sameThread = /* @__PURE__ */ __name((a, b) => a.threadId === b.threadId, "sameThread");
|
|
16993
16993
|
var link = /* @__PURE__ */ __name((message, parentId, source, kind, confidence, method) => ({ messageId: message.id, parentId, source, kind, confidence, method }), "link");
|
|
16994
16994
|
|
|
16995
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16995
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/ports/traits.js
|
|
16996
16996
|
var syncsOneChat = /* @__PURE__ */ __name((messenger) => messenger.history !== "store" || messenger.historyOnDemand === true, "syncsOneChat");
|
|
16997
16997
|
|
|
16998
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16998
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/store/sqlite/document-transfer/snapshot.js
|
|
16999
16999
|
var MAX_BYTES = 16 * 1024 * 1024;
|
|
17000
17000
|
|
|
17001
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17001
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/store/project-transfer/preview.js
|
|
17002
17002
|
var previewProjectAnnotationSnapshot = /* @__PURE__ */ __name(async (options) => {
|
|
17003
17003
|
if (!options || typeof options !== "object" || Array.isArray(options))
|
|
17004
17004
|
throw new CliError("validation_error", "project preview options are required");
|
|
@@ -17020,7 +17020,7 @@ var previewProjectAnnotationSnapshot = /* @__PURE__ */ __name(async (options) =>
|
|
|
17020
17020
|
}
|
|
17021
17021
|
}, "previewProjectAnnotationSnapshot");
|
|
17022
17022
|
|
|
17023
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17023
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/store/project-transfer/snapshot.js
|
|
17024
17024
|
var snapshotProjectAnnotations = /* @__PURE__ */ __name(async (options) => {
|
|
17025
17025
|
if (!options || typeof options !== "object" || Array.isArray(options))
|
|
17026
17026
|
throw new CliError("validation_error", "snapshot options are required");
|
|
@@ -17041,7 +17041,7 @@ var snapshotProjectAnnotations = /* @__PURE__ */ __name(async (options) => {
|
|
|
17041
17041
|
}
|
|
17042
17042
|
}, "snapshotProjectAnnotations");
|
|
17043
17043
|
|
|
17044
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17044
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/cli/messenger/lacks.js
|
|
17045
17045
|
var COMMAND_NEEDS = {
|
|
17046
17046
|
"account update": ["updateProfile", "change the profile"],
|
|
17047
17047
|
"account sessions list": ["sessions", "list the account's sessions"],
|
|
@@ -17091,7 +17091,7 @@ var hideNever = /* @__PURE__ */ __name((messenger, group) => {
|
|
|
17091
17091
|
return group;
|
|
17092
17092
|
}, "hideNever");
|
|
17093
17093
|
|
|
17094
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17094
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/members-audit.js
|
|
17095
17095
|
var AUDIT_PAGE = 200;
|
|
17096
17096
|
var AUDIT_BUDGET = 10;
|
|
17097
17097
|
var AUDIT_PAUSE_MS = 1e3;
|
|
@@ -17171,7 +17171,7 @@ var burstJoins = /* @__PURE__ */ __name((members) => {
|
|
|
17171
17171
|
return found;
|
|
17172
17172
|
}, "burstJoins");
|
|
17173
17173
|
|
|
17174
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17174
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/meetings/cli/query-options.js
|
|
17175
17175
|
var queryWordsAfterOptions = /* @__PURE__ */ __name((command) => {
|
|
17176
17176
|
command.allowUnknownOption();
|
|
17177
17177
|
const parse = command.parseOptions.bind(command);
|
|
@@ -17191,7 +17191,7 @@ var queryWordsAfterOptions = /* @__PURE__ */ __name((command) => {
|
|
|
17191
17191
|
return command;
|
|
17192
17192
|
}, "queryWordsAfterOptions");
|
|
17193
17193
|
|
|
17194
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17194
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/meetings/cli/passage.js
|
|
17195
17195
|
var count = /* @__PURE__ */ __name((value) => {
|
|
17196
17196
|
if (!/^(0|[1-9]\d*)$/.test(value) || !Number.isSafeInteger(Number(value)))
|
|
17197
17197
|
throw new CliError("validation_error", "expected a nonnegative safe integer");
|
|
@@ -17233,7 +17233,7 @@ var addMeetingPassageCommandDefinition = /* @__PURE__ */ __name((program, deps)
|
|
|
17233
17233
|
var createMeetingPassageCommand = sharedCommand(createMeetingPassageCommandDefinition);
|
|
17234
17234
|
var addMeetingPassageCommand = sharedCommand(addMeetingPassageCommandDefinition);
|
|
17235
17235
|
|
|
17236
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17236
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/meetings/cli/project-evidence.js
|
|
17237
17237
|
var integer2 = /* @__PURE__ */ __name((value) => {
|
|
17238
17238
|
if (!/^[1-9]\d*$/.test(value) || !Number.isSafeInteger(Number(value)))
|
|
17239
17239
|
throw new CliError("validation_error", "expected a positive safe integer");
|
|
@@ -17256,7 +17256,7 @@ ${fieldsHelp(MEETING_PROJECT_EVIDENCE_QUERY)}`).option("--limit <n>", "hits in o
|
|
|
17256
17256
|
}, "addMeetingProjectEvidenceCommandDefinition");
|
|
17257
17257
|
var addMeetingProjectEvidenceCommand = sharedCommand(addMeetingProjectEvidenceCommandDefinition);
|
|
17258
17258
|
|
|
17259
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17259
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/meetings/cli/search.js
|
|
17260
17260
|
var ZONED = /(?:Z|[+-]\d{2}:?\d{2})$/i;
|
|
17261
17261
|
var moment = /* @__PURE__ */ __name((flag, end, readIn) => (value) => {
|
|
17262
17262
|
const zone = timezoneOf();
|
|
@@ -17342,7 +17342,7 @@ var addMeetingSearchCommandDefinition = /* @__PURE__ */ __name((program, deps) =
|
|
|
17342
17342
|
var createMeetingSearchCommand = sharedCommand(createMeetingSearchCommandDefinition);
|
|
17343
17343
|
var addMeetingSearchCommand = sharedCommand(addMeetingSearchCommandDefinition);
|
|
17344
17344
|
|
|
17345
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17345
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/meetings/cli/index.js
|
|
17346
17346
|
var integer4 = /* @__PURE__ */ __name((text2) => {
|
|
17347
17347
|
if (!/^[1-9]\d*$/.test(text2) || !Number.isSafeInteger(Number(text2)))
|
|
17348
17348
|
throw new InvalidArgumentError("expected a positive integer");
|
|
@@ -17474,7 +17474,7 @@ ${fieldsHelp(EVENT_QUERY, MEETING_QUERY_GUIDE)}`);
|
|
|
17474
17474
|
}, "addMeetingCommandsDefinition");
|
|
17475
17475
|
var addMeetingCommands = sharedCommand(addMeetingCommandsDefinition);
|
|
17476
17476
|
|
|
17477
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17477
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/cli/list-query.js
|
|
17478
17478
|
var LIST_QUERY_GUIDE = "https://github.com/WireCatLabs/cli-core/blob/main/docs/search/query-language.md";
|
|
17479
17479
|
var QUERY_ARGUMENT = "field:value terms that narrow the list \u2014 the fields are below";
|
|
17480
17480
|
var withQuery = /* @__PURE__ */ __name((command, registry) => {
|
|
@@ -17607,7 +17607,7 @@ var termField = /* @__PURE__ */ __name((name, type, example, more = {}) => nativ
|
|
|
17607
17607
|
var queryHelp = /* @__PURE__ */ __name((registry) => `
|
|
17608
17608
|
${fieldsHelp(registry, LIST_QUERY_GUIDE)}`, "queryHelp");
|
|
17609
17609
|
|
|
17610
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17610
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/cli/paging.js
|
|
17611
17611
|
var positiveCount = /* @__PURE__ */ __name((flag) => (value) => {
|
|
17612
17612
|
if (!/^\d+$/.test(value.trim()) || Number(value) < 1)
|
|
17613
17613
|
throw new CliError("validation_error", `${flag} takes a whole number from 1 upwards, not "${value}"`);
|
|
@@ -17616,7 +17616,7 @@ var positiveCount = /* @__PURE__ */ __name((flag) => (value) => {
|
|
|
17616
17616
|
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");
|
|
17617
17617
|
var window = /* @__PURE__ */ __name(({ limit, page, all }) => all ? { offset: 0 } : { limit, offset: (page - 1) * limit }, "window");
|
|
17618
17618
|
|
|
17619
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17619
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/cli/messenger/chat-answers.js
|
|
17620
17620
|
var defined = /* @__PURE__ */ __name((record2) => Object.fromEntries(Object.entries(record2).filter(([, value]) => value !== void 0)), "defined");
|
|
17621
17621
|
var chatRef = /* @__PURE__ */ __name((account, chat) => formatReference({ type: "chat", provider: account.provider, account: account.account, chat }), "chatRef");
|
|
17622
17622
|
var settingsOf = /* @__PURE__ */ __name((settings) => defined({
|
|
@@ -17878,7 +17878,7 @@ var sessionAnswer = /* @__PURE__ */ __name(({ current, client, device, location,
|
|
|
17878
17878
|
...createdAt === void 0 ? {} : { created_at: createdAt }
|
|
17879
17879
|
}), "sessionAnswer");
|
|
17880
17880
|
|
|
17881
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17881
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/ports/messenger.js
|
|
17882
17882
|
var throughWrapper = /* @__PURE__ */ __name((inner, handled, wrap = (_, call) => call) => new Proxy(handled, {
|
|
17883
17883
|
get: /* @__PURE__ */ __name((own, key) => {
|
|
17884
17884
|
if (key in own)
|
|
@@ -17895,12 +17895,12 @@ var capability = /* @__PURE__ */ __name((adapter, method, what) => {
|
|
|
17895
17895
|
return found.bind(adapter);
|
|
17896
17896
|
}, "capability");
|
|
17897
17897
|
|
|
17898
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17898
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/sends/send-id.js
|
|
17899
17899
|
import { randomBytes } from "node:crypto";
|
|
17900
17900
|
var newSendId = /* @__PURE__ */ __name(() => randomBytes(8).readBigInt64BE().toString(), "newSendId");
|
|
17901
17901
|
var newOperationId = newSendId;
|
|
17902
17902
|
|
|
17903
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17903
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/deps.js
|
|
17904
17904
|
var accountStore = /* @__PURE__ */ __name(async (deps) => (await deps.store()).forAccount(await deps.account()), "accountStore");
|
|
17905
17905
|
var crossAccount = /* @__PURE__ */ __name((deps, _reason) => deps.store(), "crossAccount");
|
|
17906
17906
|
var NO_LOCAL_STORE = "this answer comes from the messenger, not from the local store";
|
|
@@ -17977,7 +17977,7 @@ var storeOnlyDeps = /* @__PURE__ */ __name((store, account, { app, env }) => {
|
|
|
17977
17977
|
return { ...storedDeps(messenger, store, account, guard), ...env === void 0 ? {} : { env } };
|
|
17978
17978
|
}, "storeOnlyDeps");
|
|
17979
17979
|
|
|
17980
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17980
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/patience.js
|
|
17981
17981
|
import { setTimeout as sleep } from "node:timers/promises";
|
|
17982
17982
|
var LONGEST_WAIT_MS = 5 * 60 * 1e3;
|
|
17983
17983
|
var patiently = /* @__PURE__ */ __name(async (request, note2, stop) => {
|
|
@@ -18000,10 +18000,10 @@ var patiently = /* @__PURE__ */ __name(async (request, note2, stop) => {
|
|
|
18000
18000
|
}
|
|
18001
18001
|
}, "patiently");
|
|
18002
18002
|
|
|
18003
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18003
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/archive.js
|
|
18004
18004
|
import { setTimeout as sleep2 } from "node:timers/promises";
|
|
18005
18005
|
|
|
18006
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18006
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/backfill-estimate.js
|
|
18007
18007
|
var REQUEST_MS = 400;
|
|
18008
18008
|
var estimateBackfill = /* @__PURE__ */ __name(({ ranges, held, newest, page, maxPages, pauseMs }) => {
|
|
18009
18009
|
const lowest = ranges[0];
|
|
@@ -18026,13 +18026,13 @@ var estimateBackfill = /* @__PURE__ */ __name(({ ranges, held, newest, page, max
|
|
|
18026
18026
|
};
|
|
18027
18027
|
}, "estimateBackfill");
|
|
18028
18028
|
|
|
18029
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18029
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/domain/recovery.js
|
|
18030
18030
|
var withRecovery = /* @__PURE__ */ __name((error) => ({
|
|
18031
18031
|
...error,
|
|
18032
18032
|
retryable: typeof error.retryable === "boolean" ? error.retryable : error.code === "rate_limited" || error.status === 429
|
|
18033
18033
|
}), "withRecovery");
|
|
18034
18034
|
|
|
18035
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18035
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/batch.js
|
|
18036
18036
|
var actionable = /* @__PURE__ */ __name((error) => {
|
|
18037
18037
|
if (isCliFailure(error))
|
|
18038
18038
|
return withRecovery({ code: error.code, message: error.message, ...error.details });
|
|
@@ -18115,7 +18115,7 @@ var mergeBatches = /* @__PURE__ */ __name((a, b) => {
|
|
|
18115
18115
|
};
|
|
18116
18116
|
}, "mergeBatches");
|
|
18117
18117
|
|
|
18118
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18118
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/domain/ref-arguments.js
|
|
18119
18119
|
var TAKES = {
|
|
18120
18120
|
chat: "a chat: chat:<provider>/<account>/<chat>, its id or its title",
|
|
18121
18121
|
message: "a message: msg:<provider>/<account>/<chat>/<message>, or a chat and the message's id"
|
|
@@ -18175,7 +18175,7 @@ var ensureAccount = /* @__PURE__ */ __name(async (reference, scope, profilesOn)
|
|
|
18175
18175
|
throw wrongAccount(reference, scope, profiles);
|
|
18176
18176
|
}, "ensureAccount");
|
|
18177
18177
|
|
|
18178
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18178
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/resolve.js
|
|
18179
18179
|
var isId = /* @__PURE__ */ __name((reference) => /^-?\d+$/.test(reference.trim()), "isId");
|
|
18180
18180
|
var foldName = /* @__PURE__ */ __name((name) => name.normalize("NFC").replace(/[\uFE0E\uFE0F\u200D]/g, "").toLowerCase(), "foldName");
|
|
18181
18181
|
var pickChat = /* @__PURE__ */ __name((reference, chats) => {
|
|
@@ -18220,7 +18220,7 @@ ${lines3}`, { candidates });
|
|
|
18220
18220
|
}, "ambiguous");
|
|
18221
18221
|
var isPresent = /* @__PURE__ */ __name((value) => value !== null && value !== void 0, "isPresent");
|
|
18222
18222
|
|
|
18223
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18223
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/message-resolution.js
|
|
18224
18224
|
var readChatId = /* @__PURE__ */ __name(async (deps, reference, store, account) => {
|
|
18225
18225
|
if (deps.reads !== "store")
|
|
18226
18226
|
return keptChatId(deps.messenger, reference, store, account);
|
|
@@ -18379,7 +18379,7 @@ var senderAmong = /* @__PURE__ */ __name(async (store, accounts, reference) => {
|
|
|
18379
18379
|
}
|
|
18380
18380
|
}, "senderAmong");
|
|
18381
18381
|
|
|
18382
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18382
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/images/context/index.js
|
|
18383
18383
|
var CONTEXT_MESSAGES = 3;
|
|
18384
18384
|
var CONTEXT_MINUTES = 10;
|
|
18385
18385
|
var MAX_CHARS = 1200;
|
|
@@ -18403,12 +18403,12 @@ var context = {
|
|
|
18403
18403
|
}, "describe")
|
|
18404
18404
|
};
|
|
18405
18405
|
|
|
18406
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18406
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/images/registry.js
|
|
18407
18407
|
var BUILT_INS = [context];
|
|
18408
18408
|
var providers = [...BUILT_INS];
|
|
18409
18409
|
var registeredImageProviders = /* @__PURE__ */ __name(() => providers, "registeredImageProviders");
|
|
18410
18410
|
|
|
18411
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18411
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/conversations.js
|
|
18412
18412
|
var READ_PAGE = 5e3;
|
|
18413
18413
|
var CHAIN = 50;
|
|
18414
18414
|
var CONVERSATION_QUERY = {
|
|
@@ -18560,7 +18560,7 @@ var sized = /* @__PURE__ */ __name((size4) => {
|
|
|
18560
18560
|
return size4;
|
|
18561
18561
|
}, "sized");
|
|
18562
18562
|
|
|
18563
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18563
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/embeddings-maintenance.js
|
|
18564
18564
|
var REFRESH_BOUNDS = { maxChats: 20, maxChunks: 2e3 };
|
|
18565
18565
|
var MESSAGE_PAGE = 5e3;
|
|
18566
18566
|
var PER_SESSION = 8;
|
|
@@ -18579,7 +18579,7 @@ var embeddingTarget = /* @__PURE__ */ __name((deps, choice = DEFAULT_TEXT_MODEL)
|
|
|
18579
18579
|
price: remote.price,
|
|
18580
18580
|
installed: true,
|
|
18581
18581
|
perBatch: PER_REQUEST * concurrency,
|
|
18582
|
-
open: /* @__PURE__ */ __name(async () => (await import("./remote-
|
|
18582
|
+
open: /* @__PURE__ */ __name(async () => (await import("./remote-IW5FTICS.js")).openRemote(remote, apiKey, { concurrency }), "open")
|
|
18583
18583
|
};
|
|
18584
18584
|
}
|
|
18585
18585
|
const model = textModel(choice);
|
|
@@ -18596,7 +18596,7 @@ var embeddingTarget = /* @__PURE__ */ __name((deps, choice = DEFAULT_TEXT_MODEL)
|
|
|
18596
18596
|
if (!isTextModelInstalled(model, directory2))
|
|
18597
18597
|
throw notDownloaded(model.id);
|
|
18598
18598
|
if (apart) {
|
|
18599
|
-
const { openProcess } = await import("./process-
|
|
18599
|
+
const { openProcess } = await import("./process-NRZZD4IS.js");
|
|
18600
18600
|
return openProcess(model, directory2, { threads: threads ?? defaultThreads() });
|
|
18601
18601
|
}
|
|
18602
18602
|
return openEmbedder(model, directory2, { threads: threads ?? defaultThreads() });
|
|
@@ -18885,7 +18885,7 @@ var shaped = /* @__PURE__ */ __name(({ chatId, builtAt, algorithmVersion, pendin
|
|
|
18885
18885
|
return { ...one2, state };
|
|
18886
18886
|
}, "shaped");
|
|
18887
18887
|
|
|
18888
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18888
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/search-catchup.js
|
|
18889
18889
|
var CATCH_UP_BOUNDS = { maxChunks: 500, maxMessages: 1e4, timeMs: 3e4 };
|
|
18890
18890
|
var validateCatchUpBounds = /* @__PURE__ */ __name((options) => {
|
|
18891
18891
|
for (const [key, value, maximum] of [
|
|
@@ -18938,7 +18938,7 @@ var catchUpSearch = /* @__PURE__ */ __name(async (deps, chat, options, signal, c
|
|
|
18938
18938
|
}
|
|
18939
18939
|
}, "catchUpSearch");
|
|
18940
18940
|
|
|
18941
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18941
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/archive.js
|
|
18942
18942
|
var pushed = /* @__PURE__ */ __name((deps, what) => {
|
|
18943
18943
|
if (deps.reads === "store") {
|
|
18944
18944
|
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`);
|
|
@@ -19304,7 +19304,7 @@ var timeOfKey = /* @__PURE__ */ __name(async (store, account, chatId, key, byTim
|
|
|
19304
19304
|
return message?.timestamp ?? fallback;
|
|
19305
19305
|
}, "timeOfKey");
|
|
19306
19306
|
|
|
19307
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19307
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/questions.js
|
|
19308
19308
|
var LINKS = /https?:\/\/\S+/g;
|
|
19309
19309
|
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");
|
|
19310
19310
|
var questions = /* @__PURE__ */ __name((messages, { answerers: answerers2, asker = "others" }) => {
|
|
@@ -19334,7 +19334,7 @@ var questions = /* @__PURE__ */ __name((messages, { answerers: answerers2, asker
|
|
|
19334
19334
|
});
|
|
19335
19335
|
}, "questions");
|
|
19336
19336
|
|
|
19337
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19337
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/task-categories.js
|
|
19338
19338
|
var names = /* @__PURE__ */ __name((categories) => categories.map(({ name }) => name).join(", "), "names");
|
|
19339
19339
|
var taskCategoryOf = /* @__PURE__ */ __name((categories = DEFAULT_TASK_CATEGORIES, flag = "--category") => (typed) => {
|
|
19340
19340
|
const name = typed.trim().toLowerCase();
|
|
@@ -19368,7 +19368,7 @@ var hitsByList = /* @__PURE__ */ __name((text2, categories) => {
|
|
|
19368
19368
|
const stem = stemmersOf();
|
|
19369
19369
|
const english = stem.english.stemTokens(text2);
|
|
19370
19370
|
const spanish = readsSpanish(text2) ? stem.spanish.stemTokens(text2) : [];
|
|
19371
|
-
const
|
|
19371
|
+
const counted2 = [];
|
|
19372
19372
|
for (const triggers of triggerStems(categories)) {
|
|
19373
19373
|
const hit = /* @__PURE__ */ new Set();
|
|
19374
19374
|
english.forEach((word, at) => {
|
|
@@ -19378,20 +19378,20 @@ var hitsByList = /* @__PURE__ */ __name((text2, categories) => {
|
|
|
19378
19378
|
else if (other !== void 0 && triggers.spanish.has(other))
|
|
19379
19379
|
hit.add(other);
|
|
19380
19380
|
});
|
|
19381
|
-
|
|
19381
|
+
counted2.push({ name: triggers.name, hits: hit.size });
|
|
19382
19382
|
}
|
|
19383
|
-
return
|
|
19383
|
+
return counted2;
|
|
19384
19384
|
}, "hitsByList");
|
|
19385
19385
|
var listsHit = /* @__PURE__ */ __name((text2, categories) => hitsByList(text2, categories).filter(({ hits }) => hits > 0).map(({ name }) => name), "listsHit");
|
|
19386
19386
|
var categorize = /* @__PURE__ */ __name((text2, categories = DEFAULT_TASK_CATEGORIES) => {
|
|
19387
19387
|
let best = { name: FALLBACK_CATEGORY, hits: 0 };
|
|
19388
|
-
for (const
|
|
19389
|
-
if (
|
|
19390
|
-
best =
|
|
19388
|
+
for (const counted2 of hitsByList(text2, categories))
|
|
19389
|
+
if (counted2.hits > best.hits)
|
|
19390
|
+
best = counted2;
|
|
19391
19391
|
return best.name;
|
|
19392
19392
|
}, "categorize");
|
|
19393
19393
|
|
|
19394
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19394
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/task-rules.js
|
|
19395
19395
|
var taskAccount = /* @__PURE__ */ __name(({ provider, account }) => `${provider}:${account}`, "taskAccount");
|
|
19396
19396
|
var RULES_IN = {
|
|
19397
19397
|
dialog: "all",
|
|
@@ -19597,7 +19597,7 @@ var applyTaskRulesToChats = /* @__PURE__ */ __name(async (store, account, chatId
|
|
|
19597
19597
|
return passes;
|
|
19598
19598
|
}, "applyTaskRulesToChats");
|
|
19599
19599
|
|
|
19600
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19600
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/context/evidence-response.js
|
|
19601
19601
|
var contextSourceKey = /* @__PURE__ */ __name((source) => JSON.stringify([source.kind, source.accountId, source.provider, source.account]), "contextSourceKey");
|
|
19602
19602
|
var validateContextEvidencePage = /* @__PURE__ */ __name((page, request) => {
|
|
19603
19603
|
const fail3 = /* @__PURE__ */ __name(() => {
|
|
@@ -19661,7 +19661,7 @@ var validateContextEvidencePage = /* @__PURE__ */ __name((page, request) => {
|
|
|
19661
19661
|
}
|
|
19662
19662
|
}, "validateContextEvidencePage");
|
|
19663
19663
|
|
|
19664
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19664
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/context/read-budget.js
|
|
19665
19665
|
var contextReadBudget = /* @__PURE__ */ __name((limits = {}) => {
|
|
19666
19666
|
if (!limits || typeof limits !== "object" || Array.isArray(limits))
|
|
19667
19667
|
throw new CliError("validation_error", "limits needs a context read allowance");
|
|
@@ -19714,7 +19714,7 @@ var contextReadBudget = /* @__PURE__ */ __name((limits = {}) => {
|
|
|
19714
19714
|
};
|
|
19715
19715
|
}, "contextReadBudget");
|
|
19716
19716
|
|
|
19717
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19717
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/context-evidence.js
|
|
19718
19718
|
var createContextEvidenceReader = /* @__PURE__ */ __name((port, allowed, limits) => {
|
|
19719
19719
|
if (!port || typeof port.read !== "function")
|
|
19720
19720
|
throw new CliError("configuration_error", "context evidence reader is unavailable");
|
|
@@ -19758,7 +19758,7 @@ var createContextEvidenceReader = /* @__PURE__ */ __name((port, allowed, limits)
|
|
|
19758
19758
|
};
|
|
19759
19759
|
}, "createContextEvidenceReader");
|
|
19760
19760
|
|
|
19761
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19761
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/ingest.js
|
|
19762
19762
|
var emptyReceipt = /* @__PURE__ */ __name((dryRun) => ({
|
|
19763
19763
|
dryRun,
|
|
19764
19764
|
source: null,
|
|
@@ -19833,7 +19833,7 @@ var ingest = /* @__PURE__ */ __name(async (store, envelope, { account, dryRun =
|
|
|
19833
19833
|
return receipt;
|
|
19834
19834
|
}, "ingest");
|
|
19835
19835
|
|
|
19836
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19836
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/project-purposes.js
|
|
19837
19837
|
var BUILT_IN_PURPOSES = ["work", "sales", "support", "other"];
|
|
19838
19838
|
var DEFAULT_PURPOSES = ["work"];
|
|
19839
19839
|
var LINK_PURPOSE = "work";
|
|
@@ -19863,7 +19863,7 @@ var purposeList = /* @__PURE__ */ __name((value, previous = []) => [
|
|
|
19863
19863
|
...value.split(",").map((one2) => one2.trim()).filter(Boolean)
|
|
19864
19864
|
], "purposeList");
|
|
19865
19865
|
|
|
19866
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19866
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/moment.js
|
|
19867
19867
|
var AGO = /^(\d+)(m|h|d)$/;
|
|
19868
19868
|
var AGO_MS = { m: 6e4, h: 36e5, d: 864e5 };
|
|
19869
19869
|
var DATE = /^\d{4}-\d{2}-\d{2}/;
|
|
@@ -19903,7 +19903,7 @@ var dateWindow = /* @__PURE__ */ __name(({ sinceTime, untilTime, zone, now = Dat
|
|
|
19903
19903
|
};
|
|
19904
19904
|
}, "dateWindow");
|
|
19905
19905
|
|
|
19906
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19906
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/botcheck/check.js
|
|
19907
19907
|
var DAY_MS = 864e5;
|
|
19908
19908
|
var NEW_DAYS = 30;
|
|
19909
19909
|
var SAME_TEXT_MIN = 20;
|
|
@@ -19980,7 +19980,7 @@ var scorePerson = /* @__PURE__ */ __name(({ subject, provider, activity, photos,
|
|
|
19980
19980
|
};
|
|
19981
19981
|
}, "scorePerson");
|
|
19982
19982
|
|
|
19983
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19983
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/http/time-limit.js
|
|
19984
19984
|
var timeLimit = /* @__PURE__ */ __name((ms) => {
|
|
19985
19985
|
const controller = new AbortController();
|
|
19986
19986
|
const timer = setTimeout(() => controller.abort(new DOMException("The operation timed out.", "TimeoutError")), ms);
|
|
@@ -19996,7 +19996,7 @@ var withTimeLimit = /* @__PURE__ */ __name(async (ms, run) => {
|
|
|
19996
19996
|
}
|
|
19997
19997
|
}, "withTimeLimit");
|
|
19998
19998
|
|
|
19999
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19999
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/botcheck/registries.js
|
|
20000
20000
|
var REGISTRIES = {
|
|
20001
20001
|
cas: { title: "Combot Anti-Spam (CAS)", docs: "https://cas.chat/api" },
|
|
20002
20002
|
lols: { title: "lols.bot", docs: "https://api.lols.bot/lols-bot.json" }
|
|
@@ -20083,7 +20083,7 @@ var notCovered = /* @__PURE__ */ __name((messenger, now = /* @__PURE__ */ new Da
|
|
|
20083
20083
|
detail: `lists Telegram accounts only, not ${messenger} ones`
|
|
20084
20084
|
})), "notCovered");
|
|
20085
20085
|
|
|
20086
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20086
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/botcheck/service.js
|
|
20087
20087
|
var ACTIVITY_MESSAGES = 1e3;
|
|
20088
20088
|
var botCheckService = /* @__PURE__ */ __name((deps) => {
|
|
20089
20089
|
const subjectOf = /* @__PURE__ */ __name(async (reference) => {
|
|
@@ -20171,7 +20171,7 @@ var botCheckService = /* @__PURE__ */ __name((deps) => {
|
|
|
20171
20171
|
};
|
|
20172
20172
|
}, "botCheckService");
|
|
20173
20173
|
|
|
20174
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20174
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/domain/thread.js
|
|
20175
20175
|
var threadIdOf = /* @__PURE__ */ __name((value) => {
|
|
20176
20176
|
if (value === void 0)
|
|
20177
20177
|
return void 0;
|
|
@@ -20181,7 +20181,7 @@ var threadIdOf = /* @__PURE__ */ __name((value) => {
|
|
|
20181
20181
|
return id2;
|
|
20182
20182
|
}, "threadIdOf");
|
|
20183
20183
|
|
|
20184
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20184
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/chat-stats.js
|
|
20185
20185
|
var TOP_POSTS = 5;
|
|
20186
20186
|
var JOINS = /* @__PURE__ */ new Set(["join", "add"]);
|
|
20187
20187
|
var LEAVES = /* @__PURE__ */ new Set(["leave", "remove"]);
|
|
@@ -20298,7 +20298,7 @@ var median = /* @__PURE__ */ __name((values) => {
|
|
|
20298
20298
|
return Math.round(sorted.length % 2 === 0 ? ((sorted[middle - 1] ?? upper) + upper) / 2 : upper);
|
|
20299
20299
|
}, "median");
|
|
20300
20300
|
|
|
20301
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20301
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/member-history.js
|
|
20302
20302
|
var memberEvents = /* @__PURE__ */ __name((stays, revisions, since = 0) => {
|
|
20303
20303
|
const events = [];
|
|
20304
20304
|
for (const stay of stays) {
|
|
@@ -20330,7 +20330,7 @@ var memberEvents = /* @__PURE__ */ __name((stays, revisions, since = 0) => {
|
|
|
20330
20330
|
return events.filter(({ at }) => Date.parse(at) >= since).sort((a, b) => Date.parse(a.at) - Date.parse(b.at) || a.id.localeCompare(b.id));
|
|
20331
20331
|
}, "memberEvents");
|
|
20332
20332
|
|
|
20333
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20333
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/chats.js
|
|
20334
20334
|
var EVENTS_DAYS = 7;
|
|
20335
20335
|
var TRACKED_DAYS = 30;
|
|
20336
20336
|
var STATS_PAGE = 1e3;
|
|
@@ -20448,8 +20448,8 @@ var chatsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
20448
20448
|
});
|
|
20449
20449
|
const counts = await store.roster.memberCounts(chatId, { since: new Date(from).toISOString().slice(0, 10) });
|
|
20450
20450
|
const known2 = unrecorded ? { ...stats, complete: false, membersUnrecorded: true } : stats;
|
|
20451
|
-
const
|
|
20452
|
-
return completeness.state === "complete" || !syncsOneChat(deps.messenger) ?
|
|
20451
|
+
const counted2 = counts.length > 0 ? { ...known2, memberCounts: counts } : known2;
|
|
20452
|
+
return completeness.state === "complete" || !syncsOneChat(deps.messenger) ? counted2 : { ...counted2, fetch: typedCommand(deps.messenger.app.command, `messages sync ${chatId}`) };
|
|
20453
20453
|
}, "stats"),
|
|
20454
20454
|
sendAs: /* @__PURE__ */ __name(async (chat) => {
|
|
20455
20455
|
if (deps.offline) {
|
|
@@ -20625,7 +20625,7 @@ var storedMembers = /* @__PURE__ */ __name(async (store, chatId) => {
|
|
|
20625
20625
|
return members.length === 0 ? null : members;
|
|
20626
20626
|
}, "storedMembers");
|
|
20627
20627
|
|
|
20628
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20628
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/inbox.js
|
|
20629
20629
|
var INBOX_CHATS = 20;
|
|
20630
20630
|
var REVIEW_DAYS = 3;
|
|
20631
20631
|
var UNANSWERED_HOURS = 24;
|
|
@@ -20833,7 +20833,7 @@ var inboxService = /* @__PURE__ */ __name((deps) => {
|
|
|
20833
20833
|
};
|
|
20834
20834
|
}, "inboxService");
|
|
20835
20835
|
|
|
20836
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20836
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/person-context.js
|
|
20837
20837
|
var CONTEXT_MESSAGES2 = 10;
|
|
20838
20838
|
var CONTEXT_BYTES = 64 * 1024;
|
|
20839
20839
|
var toContext = /* @__PURE__ */ __name((key, message, chatTitle2) => ({
|
|
@@ -21094,10 +21094,10 @@ var personMessages = /* @__PURE__ */ __name(async (store, asked, reference, { ch
|
|
|
21094
21094
|
};
|
|
21095
21095
|
}, "personMessages");
|
|
21096
21096
|
|
|
21097
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21097
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/meeting-evidence.js
|
|
21098
21098
|
import { createHash } from "node:crypto";
|
|
21099
21099
|
|
|
21100
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21100
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/meeting-reference.js
|
|
21101
21101
|
var missing2 = /* @__PURE__ */ __name(() => new CliError("not_found", "the meeting evidence is unavailable for this account"), "missing");
|
|
21102
21102
|
var authorizedMeetingMetadata = /* @__PURE__ */ __name(async (store, accountId, reference, options = {}) => {
|
|
21103
21103
|
const parsed = parseMeetingReference(reference);
|
|
@@ -21115,7 +21115,7 @@ var authorizedMeetingMetadata = /* @__PURE__ */ __name(async (store, accountId,
|
|
|
21115
21115
|
return { parsed, meeting };
|
|
21116
21116
|
}, "authorizedMeetingMetadata");
|
|
21117
21117
|
|
|
21118
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21118
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/meeting-evidence.js
|
|
21119
21119
|
var hash = /* @__PURE__ */ __name((value) => createHash("sha256").update(JSON.stringify(value)).digest("hex"), "hash");
|
|
21120
21120
|
var checkMeetingCancelled = /* @__PURE__ */ __name((signal) => {
|
|
21121
21121
|
if (signal?.aborted)
|
|
@@ -21314,7 +21314,7 @@ var readMeetingEvidence = /* @__PURE__ */ __name(async (store, accountId, refere
|
|
|
21314
21314
|
return { ...packet, fingerprint: hash(packet) };
|
|
21315
21315
|
}, "readMeetingEvidence");
|
|
21316
21316
|
|
|
21317
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21317
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/person-meeting-context.js
|
|
21318
21318
|
var personMeetingContext = /* @__PURE__ */ __name(async (store, personReference, options) => {
|
|
21319
21319
|
const { meetings = 10, cues = 5, bytes: bytes2 = 64 * 1024, scanLimit = 1e3, since, signal } = options;
|
|
21320
21320
|
const requestedAccounts = options.accountIds;
|
|
@@ -21413,7 +21413,7 @@ var personMeetingContext = /* @__PURE__ */ __name(async (store, personReference,
|
|
|
21413
21413
|
};
|
|
21414
21414
|
}, "personMeetingContext");
|
|
21415
21415
|
|
|
21416
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21416
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/person-preparation.js
|
|
21417
21417
|
var PREPARE_BYTES = 96 * 1024;
|
|
21418
21418
|
var MEETINGS = 5;
|
|
21419
21419
|
var CUES = 3;
|
|
@@ -21530,7 +21530,7 @@ var meetingsOf = /* @__PURE__ */ __name(async (store, uid, stored, since, left)
|
|
|
21530
21530
|
}
|
|
21531
21531
|
}, "meetingsOf");
|
|
21532
21532
|
|
|
21533
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21533
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/person-profile.js
|
|
21534
21534
|
var personProfile = /* @__PURE__ */ __name(async (deps, person, known2) => {
|
|
21535
21535
|
const online = deps.offline ? void 0 : await deps.connection();
|
|
21536
21536
|
const held = await storeIfOpen(deps);
|
|
@@ -21600,7 +21600,7 @@ var quiet = /* @__PURE__ */ __name((facts) => facts.chats.map(({ id: id2, title,
|
|
|
21600
21600
|
complete: false
|
|
21601
21601
|
})), "quiet");
|
|
21602
21602
|
|
|
21603
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21603
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/person-timeline.js
|
|
21604
21604
|
var TIMELINE_ITEMS = 50;
|
|
21605
21605
|
var TIMELINE_MAX = 500;
|
|
21606
21606
|
var SCOPES2 = ["personal", "work"];
|
|
@@ -21655,7 +21655,7 @@ var personTimeline = /* @__PURE__ */ __name(async (store, asked, reference, { sc
|
|
|
21655
21655
|
};
|
|
21656
21656
|
}, "personTimeline");
|
|
21657
21657
|
|
|
21658
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21658
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/people.js
|
|
21659
21659
|
var peopleService = /* @__PURE__ */ __name((deps) => {
|
|
21660
21660
|
const localCard = /* @__PURE__ */ __name(async (card, includeNotes = false) => {
|
|
21661
21661
|
const held = await storeIfOpen(deps);
|
|
@@ -21882,7 +21882,7 @@ var withoutPhone = /* @__PURE__ */ __name((answer) => {
|
|
|
21882
21882
|
return rest;
|
|
21883
21883
|
}, "withoutPhone");
|
|
21884
21884
|
|
|
21885
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21885
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/task-stats.js
|
|
21886
21886
|
var TASK_STATS_BY = ["chat", "meeting", "project"];
|
|
21887
21887
|
var PERIOD_FIELD = "created";
|
|
21888
21888
|
var refuseNestedPeriod = /* @__PURE__ */ __name((node, top = true) => {
|
|
@@ -21985,7 +21985,7 @@ var meetingNames = /* @__PURE__ */ __name(async (store, groups) => {
|
|
|
21985
21985
|
}));
|
|
21986
21986
|
}, "meetingNames");
|
|
21987
21987
|
|
|
21988
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21988
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/task-tag-filters.js
|
|
21989
21989
|
var taskTagFilters = /* @__PURE__ */ __name(async (store, query) => {
|
|
21990
21990
|
const tags = /* @__PURE__ */ new Map();
|
|
21991
21991
|
for (const node of query ? walkQuery(query.root) : [])
|
|
@@ -21994,7 +21994,7 @@ var taskTagFilters = /* @__PURE__ */ __name(async (store, query) => {
|
|
|
21994
21994
|
return tags;
|
|
21995
21995
|
}, "taskTagFilters");
|
|
21996
21996
|
|
|
21997
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21997
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/tasks.js
|
|
21998
21998
|
var TASK_QUERY = {
|
|
21999
21999
|
entity: "task",
|
|
22000
22000
|
backend: "sql",
|
|
@@ -22486,7 +22486,7 @@ var taskView = /* @__PURE__ */ __name(async (store, account, task2) => {
|
|
|
22486
22486
|
};
|
|
22487
22487
|
}, "taskView");
|
|
22488
22488
|
|
|
22489
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22489
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/proposal-tasks.js
|
|
22490
22490
|
var proposalSource = /* @__PURE__ */ __name((id2) => `proposed-action:${id2}`, "proposalSource");
|
|
22491
22491
|
var approveAsTask = /* @__PURE__ */ __name(async (store, id2, by) => {
|
|
22492
22492
|
const proposal = await store.proposedActions.get(id2);
|
|
@@ -22509,7 +22509,7 @@ var approveAsTask = /* @__PURE__ */ __name(async (store, id2, by) => {
|
|
|
22509
22509
|
return { proposal: await store.proposedActions.approve(proposal.id, by, { task: task2.id }), task: task2 };
|
|
22510
22510
|
}, "approveAsTask");
|
|
22511
22511
|
|
|
22512
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22512
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/proposals/ids.js
|
|
22513
22513
|
var MAX_IDS = 500;
|
|
22514
22514
|
var refuse = /* @__PURE__ */ __name((message) => {
|
|
22515
22515
|
throw new CliError("validation_error", message, { reason: "proposal.ids" });
|
|
@@ -22551,7 +22551,7 @@ var parseProposalIds = /* @__PURE__ */ __name((text2) => {
|
|
|
22551
22551
|
return ids;
|
|
22552
22552
|
}, "parseProposalIds");
|
|
22553
22553
|
|
|
22554
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22554
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/shared.js
|
|
22555
22555
|
var proposerOfAuthor = /* @__PURE__ */ __name((author) => {
|
|
22556
22556
|
if (author.type === "person")
|
|
22557
22557
|
return { type: "person", id: author.id };
|
|
@@ -22593,76 +22593,8 @@ var storedStatus = /* @__PURE__ */ __name((filter) => {
|
|
|
22593
22593
|
return status === "proposed" || status === "rejected" ? status : void 0;
|
|
22594
22594
|
}, "storedStatus");
|
|
22595
22595
|
|
|
22596
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22597
|
-
var
|
|
22598
|
-
var ORGANIZATION_RENAME_KIND = "organization_rename";
|
|
22599
|
-
var rowOf = /* @__PURE__ */ __name((action2) => {
|
|
22600
|
-
const renamed2 = action2.kind === ORGANIZATION_RENAME_KIND;
|
|
22601
|
-
const { name, kind } = action2.payload;
|
|
22602
|
-
const { organization: organization2 } = action2.payload;
|
|
22603
|
-
return {
|
|
22604
|
-
id: action2.id,
|
|
22605
|
-
kind: "organization",
|
|
22606
|
-
status: actionStatus(action2.status),
|
|
22607
|
-
project: null,
|
|
22608
|
-
subject: renamed2 ? organization2 : "organization:new",
|
|
22609
|
-
object: null,
|
|
22610
|
-
summary: renamed2 ? `rename ${organization2} to ${name}` : `add ${kind} ${name}`,
|
|
22611
|
-
proposedBy: proposerOfAction(action2),
|
|
22612
|
-
reason: action2.reason,
|
|
22613
|
-
evidence: [],
|
|
22614
|
-
score: null,
|
|
22615
|
-
signals: null,
|
|
22616
|
-
parts: null,
|
|
22617
|
-
createdAt: action2.createdAt
|
|
22618
|
-
};
|
|
22619
|
-
}, "rowOf");
|
|
22620
|
-
var proposeOrganization = /* @__PURE__ */ __name((store, input, by, reason) => store.proposedActions.propose({
|
|
22621
|
-
kind: ORGANIZATION_ADD_KIND,
|
|
22622
|
-
by,
|
|
22623
|
-
payload: input,
|
|
22624
|
-
...reason === void 0 ? {} : { reason }
|
|
22625
|
-
}), "proposeOrganization");
|
|
22626
|
-
var proposeOrganizationRename = /* @__PURE__ */ __name((store, input, by, reason) => store.proposedActions.propose({
|
|
22627
|
-
kind: ORGANIZATION_RENAME_KIND,
|
|
22628
|
-
by,
|
|
22629
|
-
payload: input,
|
|
22630
|
-
...reason === void 0 ? {} : { reason }
|
|
22631
|
-
}), "proposeOrganizationRename");
|
|
22632
|
-
var organizationKind = /* @__PURE__ */ __name((store) => ({
|
|
22633
|
-
kind: "organization",
|
|
22634
|
-
stored: [ORGANIZATION_ADD_KIND, ORGANIZATION_RENAME_KIND],
|
|
22635
|
-
list: /* @__PURE__ */ __name(async (filter) => {
|
|
22636
|
-
const status = storedStatus(filter);
|
|
22637
|
-
const actions = await store.proposedActions.list({
|
|
22638
|
-
kinds: [ORGANIZATION_ADD_KIND, ORGANIZATION_RENAME_KIND],
|
|
22639
|
-
...status === void 0 ? {} : { status },
|
|
22640
|
-
...pushed2(filter)
|
|
22641
|
-
});
|
|
22642
|
-
return kept(actions.map(rowOf), filter);
|
|
22643
|
-
}, "list"),
|
|
22644
|
-
get: /* @__PURE__ */ __name(async (id2) => rowOf(await store.proposedActions.get(id2)), "get"),
|
|
22645
|
-
decide: /* @__PURE__ */ __name(async (id2, { confirm, by, reason }) => {
|
|
22646
|
-
if (!confirm) {
|
|
22647
|
-
await store.proposedActions.reject(id2, by, reason);
|
|
22648
|
-
return { id: id2, kind: "organization", status: "rejected", made: [] };
|
|
22649
|
-
}
|
|
22650
|
-
const action2 = await store.proposedActions.get(id2);
|
|
22651
|
-
if (action2.kind === ORGANIZATION_RENAME_KIND) {
|
|
22652
|
-
const { organization: organization2, name: name2 } = action2.payload;
|
|
22653
|
-
const renamed2 = await store.knowledge.updateOrganization(organization2, { name: name2 });
|
|
22654
|
-
await store.proposedActions.approve(id2, by, { organization: renamed2.ref });
|
|
22655
|
-
return { id: id2, kind: "organization", status: "confirmed", made: [] };
|
|
22656
|
-
}
|
|
22657
|
-
const { name, kind, scope } = action2.payload;
|
|
22658
|
-
const made = await store.knowledge.addOrganization({ name, kind, ...scope === void 0 ? {} : { scope } });
|
|
22659
|
-
await store.proposedActions.approve(id2, by, { organization: made.ref });
|
|
22660
|
-
return { id: id2, kind: "organization", status: "confirmed", made: [made.ref] };
|
|
22661
|
-
}, "decide")
|
|
22662
|
-
}), "organizationKind");
|
|
22663
|
-
|
|
22664
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.588.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_b859f846da38ad2f474ef5e15fe95f19/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/action.js
|
|
22665
|
-
var rowOf2 = /* @__PURE__ */ __name((action2) => ({
|
|
22596
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/action.js
|
|
22597
|
+
var rowOf = /* @__PURE__ */ __name((action2) => ({
|
|
22666
22598
|
id: action2.id,
|
|
22667
22599
|
kind: "action",
|
|
22668
22600
|
status: actionStatus(action2.status),
|
|
@@ -22688,9 +22620,9 @@ var actionKind = /* @__PURE__ */ __name((store, claimed) => ({
|
|
|
22688
22620
|
...status === void 0 ? {} : { status },
|
|
22689
22621
|
...pushed2(filter)
|
|
22690
22622
|
});
|
|
22691
|
-
return kept(actions.map(
|
|
22623
|
+
return kept(actions.map(rowOf), filter);
|
|
22692
22624
|
}, "list"),
|
|
22693
|
-
get: /* @__PURE__ */ __name(async (id2) =>
|
|
22625
|
+
get: /* @__PURE__ */ __name(async (id2) => rowOf(await store.proposedActions.get(id2)), "get"),
|
|
22694
22626
|
decide: /* @__PURE__ */ __name(async (id2, { confirm, by, reason }) => {
|
|
22695
22627
|
if (!confirm) {
|
|
22696
22628
|
await store.proposedActions.reject(id2, by, reason);
|
|
@@ -22701,7 +22633,7 @@ var actionKind = /* @__PURE__ */ __name((store, claimed) => ({
|
|
|
22701
22633
|
}, "decide")
|
|
22702
22634
|
}), "actionKind");
|
|
22703
22635
|
|
|
22704
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22636
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/fact.js
|
|
22705
22637
|
var STATUS = {
|
|
22706
22638
|
proposed: "proposed",
|
|
22707
22639
|
accepted: "confirmed",
|
|
@@ -22709,7 +22641,7 @@ var STATUS = {
|
|
|
22709
22641
|
reversed: "confirmed",
|
|
22710
22642
|
rejected: "rejected"
|
|
22711
22643
|
};
|
|
22712
|
-
var
|
|
22644
|
+
var rowOf2 = /* @__PURE__ */ __name((fact) => ({
|
|
22713
22645
|
id: fact.ref,
|
|
22714
22646
|
kind: "fact",
|
|
22715
22647
|
status: STATUS[fact.status],
|
|
@@ -22735,17 +22667,17 @@ var factKind = /* @__PURE__ */ __name((store) => ({
|
|
|
22735
22667
|
...status === "all" ? {} : { status: status === "confirmed" ? "accepted" : status },
|
|
22736
22668
|
order: "created"
|
|
22737
22669
|
});
|
|
22738
|
-
return kept(facts.map(
|
|
22670
|
+
return kept(facts.map(rowOf2), filter);
|
|
22739
22671
|
}, "list"),
|
|
22740
|
-
get: /* @__PURE__ */ __name(async (id2) =>
|
|
22672
|
+
get: /* @__PURE__ */ __name(async (id2) => rowOf2(await store.facts.get(id2)), "get"),
|
|
22741
22673
|
decide: /* @__PURE__ */ __name(async (id2, { confirm, by, reason }) => {
|
|
22742
22674
|
const fact = confirm ? await store.facts.accept(id2, by, reason) : await store.facts.reject(id2, by, reason);
|
|
22743
22675
|
return { id: id2, kind: "fact", status: confirm ? "confirmed" : "rejected", made: confirm ? [fact.ref] : [] };
|
|
22744
22676
|
}, "decide")
|
|
22745
22677
|
}), "factKind");
|
|
22746
22678
|
|
|
22747
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22748
|
-
var
|
|
22679
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/finance.js
|
|
22680
|
+
var rowOf3 = /* @__PURE__ */ __name((kind, entry) => ({
|
|
22749
22681
|
id: entry.ref,
|
|
22750
22682
|
kind,
|
|
22751
22683
|
status: entry.review,
|
|
@@ -22768,9 +22700,9 @@ var financeKind = /* @__PURE__ */ __name((store, kind) => ({
|
|
|
22768
22700
|
const status = filter.status ?? "proposed";
|
|
22769
22701
|
const options = { ...pushed2(filter), ...status === "all" ? {} : { review: status } };
|
|
22770
22702
|
const entries = kind === "invoice" ? await store.finance.invoices(options) : await store.finance.payments(options);
|
|
22771
|
-
return kept(entries.map((entry) =>
|
|
22703
|
+
return kept(entries.map((entry) => rowOf3(kind, entry)), filter);
|
|
22772
22704
|
}, "list"),
|
|
22773
|
-
get: /* @__PURE__ */ __name(async (id2) =>
|
|
22705
|
+
get: /* @__PURE__ */ __name(async (id2) => rowOf3(kind, kind === "invoice" ? await store.finance.invoice(id2) : await store.finance.payment(id2)), "get"),
|
|
22774
22706
|
decide: /* @__PURE__ */ __name(async (id2, { confirm, by, reason }) => {
|
|
22775
22707
|
const entry = confirm ? await store.finance.confirm(id2, by, reason) : await store.finance.reject(id2, by, reason);
|
|
22776
22708
|
return { id: id2, kind, status: confirm ? "confirmed" : "rejected", made: confirm ? [entry.ref] : [] };
|
|
@@ -22779,14 +22711,14 @@ var financeKind = /* @__PURE__ */ __name((store, kind) => ({
|
|
|
22779
22711
|
var invoiceKind = /* @__PURE__ */ __name((store) => financeKind(store, "invoice"), "invoiceKind");
|
|
22780
22712
|
var paymentKind = /* @__PURE__ */ __name((store) => financeKind(store, "payment"), "paymentKind");
|
|
22781
22713
|
|
|
22782
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22714
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/findings.js
|
|
22783
22715
|
var FACT_SUMMARIES = {
|
|
22784
22716
|
fact: /* @__PURE__ */ __name((finding) => finding.statement, "fact"),
|
|
22785
22717
|
task: /* @__PURE__ */ __name((finding) => finding.title, "task"),
|
|
22786
22718
|
payment: /* @__PURE__ */ __name((finding) => paymentTitle(finding), "payment")
|
|
22787
22719
|
};
|
|
22788
22720
|
var statusOf = /* @__PURE__ */ __name((batch) => batch.status === "proposed" ? "proposed" : batch.receipt?.accepted.length ? "confirmed" : "rejected", "statusOf");
|
|
22789
|
-
var
|
|
22721
|
+
var rowOf4 = /* @__PURE__ */ __name((batch, createdAt) => {
|
|
22790
22722
|
const findings = batch.input.findings;
|
|
22791
22723
|
const outcome2 = /* @__PURE__ */ __name((id2) => batch.receipt?.items.find((item2) => item2.id === id2)?.status ?? null, "outcome");
|
|
22792
22724
|
return {
|
|
@@ -22812,7 +22744,7 @@ var rowOf5 = /* @__PURE__ */ __name((batch, createdAt) => {
|
|
|
22812
22744
|
};
|
|
22813
22745
|
}, "rowOf");
|
|
22814
22746
|
var findingsKind = /* @__PURE__ */ __name((store) => {
|
|
22815
|
-
const created = /* @__PURE__ */ __name(async (batch) =>
|
|
22747
|
+
const created = /* @__PURE__ */ __name(async (batch) => rowOf4(batch, (await store.proposedActions.get(batch.id)).createdAt), "created");
|
|
22816
22748
|
return {
|
|
22817
22749
|
kind: "findings",
|
|
22818
22750
|
stored: [EVIDENCE_FINDINGS_KIND],
|
|
@@ -22851,7 +22783,7 @@ var findingsKind = /* @__PURE__ */ __name((store) => {
|
|
|
22851
22783
|
};
|
|
22852
22784
|
}, "findingsKind");
|
|
22853
22785
|
|
|
22854
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22786
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/key-document.js
|
|
22855
22787
|
var linkRow = /* @__PURE__ */ __name((link4) => ({
|
|
22856
22788
|
id: `key:${link4.id}`,
|
|
22857
22789
|
kind: "key_document",
|
|
@@ -22919,7 +22851,7 @@ var keyDocumentKind = /* @__PURE__ */ __name((store) => {
|
|
|
22919
22851
|
};
|
|
22920
22852
|
}, "keyDocumentKind");
|
|
22921
22853
|
|
|
22922
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22854
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/mail-findings.js
|
|
22923
22855
|
var words = /* @__PURE__ */ __name((...parts) => parts.filter(Boolean).join(" "), "words");
|
|
22924
22856
|
var summaryOf = /* @__PURE__ */ __name((finding) => {
|
|
22925
22857
|
switch (finding.kind) {
|
|
@@ -22945,7 +22877,7 @@ var summaryOf = /* @__PURE__ */ __name((finding) => {
|
|
|
22945
22877
|
return words("order", finding.number, finding.supplierName, finding.status, `\xB7 ${finding.reason}`);
|
|
22946
22878
|
}
|
|
22947
22879
|
}, "summaryOf");
|
|
22948
|
-
var
|
|
22880
|
+
var rowOf5 = /* @__PURE__ */ __name((batch, createdAt) => {
|
|
22949
22881
|
const findings = batch.input.findings;
|
|
22950
22882
|
const outcome2 = /* @__PURE__ */ __name((id2) => batch.receipt?.items.find((item2) => item2.id === id2)?.status ?? null, "outcome");
|
|
22951
22883
|
const project2 = findings.flatMap((finding) => "project" in finding && finding.project ? [finding.project] : [])[0] ?? null;
|
|
@@ -22972,7 +22904,7 @@ var rowOf6 = /* @__PURE__ */ __name((batch, createdAt) => {
|
|
|
22972
22904
|
};
|
|
22973
22905
|
}, "rowOf");
|
|
22974
22906
|
var mailFindingsKind = /* @__PURE__ */ __name((store) => {
|
|
22975
|
-
const created = /* @__PURE__ */ __name(async (batch) =>
|
|
22907
|
+
const created = /* @__PURE__ */ __name(async (batch) => rowOf5(batch, (await store.proposedActions.get(batch.id)).createdAt), "created");
|
|
22976
22908
|
return {
|
|
22977
22909
|
kind: "mail_findings",
|
|
22978
22910
|
stored: [MAIL_FINDINGS_KIND],
|
|
@@ -23007,8 +22939,8 @@ var mailFindingsKind = /* @__PURE__ */ __name((store) => {
|
|
|
23007
22939
|
};
|
|
23008
22940
|
}, "mailFindingsKind");
|
|
23009
22941
|
|
|
23010
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23011
|
-
var
|
|
22942
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/meeting-findings.js
|
|
22943
|
+
var rowOf6 = /* @__PURE__ */ __name((action2, batch) => {
|
|
23012
22944
|
const findings = batch.input.findings;
|
|
23013
22945
|
const projects = [...new Set(findings.map((one2) => "project" in one2 ? one2.project : void 0))];
|
|
23014
22946
|
const outcome2 = /* @__PURE__ */ __name((id2) => batch.receipt?.items.find((item2) => item2.id === id2)?.status ?? null, "outcome");
|
|
@@ -23053,12 +22985,12 @@ var meetingFindingsKind = /* @__PURE__ */ __name((store) => {
|
|
|
23053
22985
|
...filter.by === void 0 ? {} : { proposedBy: filter.by },
|
|
23054
22986
|
limit: Math.min(filter.offset + filter.limit, 500)
|
|
23055
22987
|
});
|
|
23056
|
-
const rows = await Promise.all(actions.map(async (action2) =>
|
|
22988
|
+
const rows = await Promise.all(actions.map(async (action2) => rowOf6(action2, (await batchOf(action2)).batch)));
|
|
23057
22989
|
return kept(rows, { ...filter, limit: filter.offset + filter.limit });
|
|
23058
22990
|
}, "list"),
|
|
23059
22991
|
get: /* @__PURE__ */ __name(async (id2) => {
|
|
23060
22992
|
const action2 = await store.proposedActions.get(id2);
|
|
23061
|
-
return
|
|
22993
|
+
return rowOf6(action2, (await batchOf(action2)).batch);
|
|
23062
22994
|
}, "get"),
|
|
23063
22995
|
decide: /* @__PURE__ */ __name(async (id2, { confirm, by, parts }) => {
|
|
23064
22996
|
const { account, batch } = await batchOf(await store.proposedActions.get(id2));
|
|
@@ -23071,14 +23003,14 @@ var meetingFindingsKind = /* @__PURE__ */ __name((store) => {
|
|
|
23071
23003
|
};
|
|
23072
23004
|
}, "meetingFindingsKind");
|
|
23073
23005
|
|
|
23074
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23006
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/memory.js
|
|
23075
23007
|
var STATUS2 = {
|
|
23076
23008
|
proposed: "proposed",
|
|
23077
23009
|
confirmed: "confirmed",
|
|
23078
23010
|
superseded: "confirmed",
|
|
23079
23011
|
stale: "rejected"
|
|
23080
23012
|
};
|
|
23081
|
-
var
|
|
23013
|
+
var rowOf7 = /* @__PURE__ */ __name((memory) => ({
|
|
23082
23014
|
id: memory.ref,
|
|
23083
23015
|
kind: "memory",
|
|
23084
23016
|
status: STATUS2[memory.status],
|
|
@@ -23103,17 +23035,17 @@ var memoryKind = /* @__PURE__ */ __name((store) => ({
|
|
|
23103
23035
|
...pushed2(filter),
|
|
23104
23036
|
...status === "all" ? {} : { status: status === "rejected" ? "stale" : status }
|
|
23105
23037
|
});
|
|
23106
|
-
return kept(memories.map(
|
|
23038
|
+
return kept(memories.map(rowOf7), filter);
|
|
23107
23039
|
}, "list"),
|
|
23108
|
-
get: /* @__PURE__ */ __name(async (id2) =>
|
|
23040
|
+
get: /* @__PURE__ */ __name(async (id2) => rowOf7(await store.memories.get(id2)), "get"),
|
|
23109
23041
|
decide: /* @__PURE__ */ __name(async (id2, { confirm, by }) => {
|
|
23110
23042
|
const memory = confirm ? await store.memories.confirm(id2, by) : await store.memories.markStale(id2, by);
|
|
23111
23043
|
return { id: id2, kind: "memory", status: confirm ? "confirmed" : "rejected", made: confirm ? [memory.ref] : [] };
|
|
23112
23044
|
}, "decide")
|
|
23113
23045
|
}), "memoryKind");
|
|
23114
23046
|
|
|
23115
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23116
|
-
var
|
|
23047
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/orders.js
|
|
23048
|
+
var rowOf8 = /* @__PURE__ */ __name((order) => ({
|
|
23117
23049
|
id: order.ref,
|
|
23118
23050
|
kind: "order",
|
|
23119
23051
|
status: order.review,
|
|
@@ -23135,16 +23067,72 @@ var orderKind = /* @__PURE__ */ __name((store) => ({
|
|
|
23135
23067
|
list: /* @__PURE__ */ __name(async (filter) => {
|
|
23136
23068
|
const status = filter.status ?? "proposed";
|
|
23137
23069
|
const orders = await store.orders.list({ ...pushed2(filter), ...status === "all" ? {} : { review: status } });
|
|
23138
|
-
return kept(orders.map(
|
|
23070
|
+
return kept(orders.map(rowOf8), filter);
|
|
23139
23071
|
}, "list"),
|
|
23140
|
-
get: /* @__PURE__ */ __name(async (id2) =>
|
|
23072
|
+
get: /* @__PURE__ */ __name(async (id2) => rowOf8(await store.orders.get(id2)), "get"),
|
|
23141
23073
|
decide: /* @__PURE__ */ __name(async (id2, { confirm, by, reason }) => {
|
|
23142
23074
|
const order = confirm ? await store.orders.confirm(id2, by, reason) : await store.orders.reject(id2, by, reason);
|
|
23143
23075
|
return { id: id2, kind: "order", status: confirm ? "confirmed" : "rejected", made: confirm ? [order.ref] : [] };
|
|
23144
23076
|
}, "decide")
|
|
23145
23077
|
}), "orderKind");
|
|
23146
23078
|
|
|
23147
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23079
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/organization.js
|
|
23080
|
+
var ORGANIZATION_ADD_KIND = "organization_add";
|
|
23081
|
+
var ORGANIZATION_RENAME_KIND = "organization_rename";
|
|
23082
|
+
var rowOf9 = /* @__PURE__ */ __name((action2) => {
|
|
23083
|
+
const renamed2 = action2.kind === ORGANIZATION_RENAME_KIND;
|
|
23084
|
+
const { name, kind } = action2.payload;
|
|
23085
|
+
const { organization: organization2 } = action2.payload;
|
|
23086
|
+
return {
|
|
23087
|
+
id: action2.id,
|
|
23088
|
+
kind: "organization",
|
|
23089
|
+
status: actionStatus(action2.status),
|
|
23090
|
+
project: null,
|
|
23091
|
+
subject: renamed2 ? organization2 : "organization:new",
|
|
23092
|
+
object: null,
|
|
23093
|
+
summary: renamed2 ? `rename ${organization2} to ${name}` : `add ${kind} ${name}`,
|
|
23094
|
+
proposedBy: proposerOfAction(action2),
|
|
23095
|
+
reason: action2.reason,
|
|
23096
|
+
evidence: [],
|
|
23097
|
+
score: null,
|
|
23098
|
+
signals: null,
|
|
23099
|
+
parts: null,
|
|
23100
|
+
createdAt: action2.createdAt
|
|
23101
|
+
};
|
|
23102
|
+
}, "rowOf");
|
|
23103
|
+
var organizationKind = /* @__PURE__ */ __name((store) => ({
|
|
23104
|
+
kind: "organization",
|
|
23105
|
+
stored: [ORGANIZATION_ADD_KIND, ORGANIZATION_RENAME_KIND],
|
|
23106
|
+
list: /* @__PURE__ */ __name(async (filter) => {
|
|
23107
|
+
const status = storedStatus(filter);
|
|
23108
|
+
const actions = await store.proposedActions.list({
|
|
23109
|
+
kinds: [ORGANIZATION_ADD_KIND, ORGANIZATION_RENAME_KIND],
|
|
23110
|
+
...status === void 0 ? {} : { status },
|
|
23111
|
+
...pushed2(filter)
|
|
23112
|
+
});
|
|
23113
|
+
return kept(actions.map(rowOf9), filter);
|
|
23114
|
+
}, "list"),
|
|
23115
|
+
get: /* @__PURE__ */ __name(async (id2) => rowOf9(await store.proposedActions.get(id2)), "get"),
|
|
23116
|
+
decide: /* @__PURE__ */ __name(async (id2, { confirm, by, reason }) => {
|
|
23117
|
+
if (!confirm) {
|
|
23118
|
+
await store.proposedActions.reject(id2, by, reason);
|
|
23119
|
+
return { id: id2, kind: "organization", status: "rejected", made: [] };
|
|
23120
|
+
}
|
|
23121
|
+
const action2 = await store.proposedActions.get(id2);
|
|
23122
|
+
if (action2.kind === ORGANIZATION_RENAME_KIND) {
|
|
23123
|
+
const { organization: organization2, name: name2 } = action2.payload;
|
|
23124
|
+
const renamed2 = await store.knowledge.updateOrganization(organization2, { name: name2 });
|
|
23125
|
+
await store.proposedActions.approve(id2, by, { organization: renamed2.ref });
|
|
23126
|
+
return { id: id2, kind: "organization", status: "confirmed", made: [] };
|
|
23127
|
+
}
|
|
23128
|
+
const { name, kind, scope } = action2.payload;
|
|
23129
|
+
const made = await store.knowledge.addOrganization({ name, kind, ...scope === void 0 ? {} : { scope } });
|
|
23130
|
+
await store.proposedActions.approve(id2, by, { organization: made.ref });
|
|
23131
|
+
return { id: id2, kind: "organization", status: "confirmed", made: [made.ref] };
|
|
23132
|
+
}, "decide")
|
|
23133
|
+
}), "organizationKind");
|
|
23134
|
+
|
|
23135
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/relationship.js
|
|
23148
23136
|
var linkRow2 = /* @__PURE__ */ __name((link4) => ({
|
|
23149
23137
|
id: `link:${link4.id}`,
|
|
23150
23138
|
kind: "relationship",
|
|
@@ -23218,7 +23206,7 @@ var relationshipKind = /* @__PURE__ */ __name((store) => {
|
|
|
23218
23206
|
};
|
|
23219
23207
|
}, "relationshipKind");
|
|
23220
23208
|
|
|
23221
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23209
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/relationship-update.js
|
|
23222
23210
|
var KIND = "relationship_update";
|
|
23223
23211
|
var summaryOf2 = /* @__PURE__ */ __name(({ changes }) => Object.entries(changes).map(([field, value]) => `${field} ${value ?? "cleared"}`).join(", "), "summaryOf");
|
|
23224
23212
|
var rowOf10 = /* @__PURE__ */ __name((action2) => {
|
|
@@ -23268,7 +23256,7 @@ var relationshipUpdateKind = /* @__PURE__ */ __name((store) => ({
|
|
|
23268
23256
|
}, "decide")
|
|
23269
23257
|
}), "relationshipUpdateKind");
|
|
23270
23258
|
|
|
23271
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23259
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/task-close.js
|
|
23272
23260
|
var rowOf11 = /* @__PURE__ */ __name((task2) => {
|
|
23273
23261
|
const suggestion = task2.closeSuggestion;
|
|
23274
23262
|
if (suggestion === null)
|
|
@@ -23336,7 +23324,7 @@ var taskCloseKind = /* @__PURE__ */ __name((store) => {
|
|
|
23336
23324
|
};
|
|
23337
23325
|
}, "taskCloseKind");
|
|
23338
23326
|
|
|
23339
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23327
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/proposals/registry.js
|
|
23340
23328
|
var PREFIX = /^([a-z][a-z_]*):/;
|
|
23341
23329
|
var marked = /* @__PURE__ */ __name((kind, row) => kind.ownerOnly ? { ...row, ownerOnly: true } : row, "marked");
|
|
23342
23330
|
var refusalOf = /* @__PURE__ */ __name((id2, error) => {
|
|
@@ -23464,7 +23452,7 @@ var proposalRegistry = /* @__PURE__ */ __name((store) => {
|
|
|
23464
23452
|
return registry;
|
|
23465
23453
|
}, "proposalRegistry");
|
|
23466
23454
|
|
|
23467
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23455
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/mail/owed.js
|
|
23468
23456
|
var mailTurn = /* @__PURE__ */ __name((newest) => {
|
|
23469
23457
|
if (newest === null)
|
|
23470
23458
|
return null;
|
|
@@ -23473,7 +23461,7 @@ var mailTurn = /* @__PURE__ */ __name((newest) => {
|
|
|
23473
23461
|
return newest.addressed ? "owed" : null;
|
|
23474
23462
|
}, "mailTurn");
|
|
23475
23463
|
|
|
23476
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23464
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/agenda-mail.js
|
|
23477
23465
|
var absent = /* @__PURE__ */ __name((error) => {
|
|
23478
23466
|
if (error instanceof CliError && error.code === "not_found")
|
|
23479
23467
|
return void 0;
|
|
@@ -23531,7 +23519,7 @@ var mailActivity = /* @__PURE__ */ __name(async (store, account, since, chats) =
|
|
|
23531
23519
|
};
|
|
23532
23520
|
}, "mailActivity");
|
|
23533
23521
|
|
|
23534
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23522
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/chat-coverage.js
|
|
23535
23523
|
var chatCoverage = /* @__PURE__ */ __name(async (store, account, chatIds) => {
|
|
23536
23524
|
const ids = [...new Set(chatIds)];
|
|
23537
23525
|
if (ids.length === 0)
|
|
@@ -23557,7 +23545,7 @@ var chatCoverage = /* @__PURE__ */ __name(async (store, account, chatIds) => {
|
|
|
23557
23545
|
}));
|
|
23558
23546
|
}, "chatCoverage");
|
|
23559
23547
|
|
|
23560
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23548
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/agenda.js
|
|
23561
23549
|
var DAY = 864e5;
|
|
23562
23550
|
var AGENDA_DEFAULTS = { unanswered: DAY, waiting: 7 * DAY };
|
|
23563
23551
|
var CLAIMS = ["none", "mine", "others", "any"];
|
|
@@ -23804,7 +23792,7 @@ var agendaItem = /* @__PURE__ */ __name((shown) => {
|
|
|
23804
23792
|
};
|
|
23805
23793
|
}, "agendaItem");
|
|
23806
23794
|
|
|
23807
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23795
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/excerpt.js
|
|
23808
23796
|
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");
|
|
23809
23797
|
var excerpt = /* @__PURE__ */ __name((text2, query, size4 = 240, options = {}) => {
|
|
23810
23798
|
const flat = text2.replace(/\s+/g, " ").trim();
|
|
@@ -23820,7 +23808,7 @@ var excerpt = /* @__PURE__ */ __name((text2, query, size4 = 240, options = {}) =
|
|
|
23820
23808
|
}, "excerpt");
|
|
23821
23809
|
var withExcerpt = /* @__PURE__ */ __name(({ matchedText, ...hit }, query) => ({ ...hit, excerpt: excerpt(matchedText ?? hit.text, query) }), "withExcerpt");
|
|
23822
23810
|
|
|
23823
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23811
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/link-scorers/shared.js
|
|
23824
23812
|
var escaped = /* @__PURE__ */ __name((text2) => text2.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), "escaped");
|
|
23825
23813
|
var folded = /* @__PURE__ */ __name((text2) => text2.normalize("NFKC").toLowerCase().replace(/\s+/gu, " "), "folded");
|
|
23826
23814
|
var wholeWords = /* @__PURE__ */ __name((term) => new RegExp(`(?<![\\p{L}\\p{N}\\p{M}_])${escaped(normalizeVocabularyName(term))}(?![\\p{L}\\p{N}\\p{M}_])`, "u"), "wholeWords");
|
|
@@ -23859,7 +23847,7 @@ var identitiesIn = /* @__PURE__ */ __name(async (store, people, provider) => {
|
|
|
23859
23847
|
return found;
|
|
23860
23848
|
}, "identitiesIn");
|
|
23861
23849
|
|
|
23862
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23850
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/link-scorers/alias-hits.js
|
|
23863
23851
|
var SEARCH_LIMIT = 500;
|
|
23864
23852
|
var aliasWeight = /* @__PURE__ */ __name((hits) => hits >= 10 ? 0.55 : hits >= 3 ? 0.35 : 0, "aliasWeight");
|
|
23865
23853
|
var aliasHits = {
|
|
@@ -23908,7 +23896,7 @@ var aliasHits = {
|
|
|
23908
23896
|
}, "candidates")
|
|
23909
23897
|
};
|
|
23910
23898
|
|
|
23911
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23899
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/link-scorers/chat-senders.js
|
|
23912
23900
|
var WEIGHT = 0.5;
|
|
23913
23901
|
var LARGE_GROUP_WEIGHT = 0.2;
|
|
23914
23902
|
var LARGE_GROUP = 30;
|
|
@@ -23960,7 +23948,7 @@ var chatSenders = {
|
|
|
23960
23948
|
}, "candidates")
|
|
23961
23949
|
};
|
|
23962
23950
|
|
|
23963
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23951
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/link-scorers/chat-title.js
|
|
23964
23952
|
var WEIGHT2 = 0.7;
|
|
23965
23953
|
var chatTitle = {
|
|
23966
23954
|
id: "chat-title",
|
|
@@ -23999,7 +23987,7 @@ var chatTitle = {
|
|
|
23999
23987
|
}, "candidates")
|
|
24000
23988
|
};
|
|
24001
23989
|
|
|
24002
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23990
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/link-scorers/email-domain.js
|
|
24003
23991
|
var WEIGHT3 = 0.3;
|
|
24004
23992
|
var CONTACTS = 500;
|
|
24005
23993
|
var MOST_PAIRS = 200;
|
|
@@ -24060,7 +24048,7 @@ var emailDomain = {
|
|
|
24060
24048
|
}, "candidates")
|
|
24061
24049
|
};
|
|
24062
24050
|
|
|
24063
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24051
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/link-scorers/mail-thread.js
|
|
24064
24052
|
var NAMED = 0.7;
|
|
24065
24053
|
var MEMBER_ONLY = 0.3;
|
|
24066
24054
|
var READ_LIMIT2 = 500;
|
|
@@ -24133,7 +24121,7 @@ var mailThread = {
|
|
|
24133
24121
|
}, "candidates")
|
|
24134
24122
|
};
|
|
24135
24123
|
|
|
24136
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24124
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/link-scorers/member-chats.js
|
|
24137
24125
|
var WEIGHT4 = 0.5;
|
|
24138
24126
|
var memberChats = {
|
|
24139
24127
|
id: "member-chats",
|
|
@@ -24173,7 +24161,7 @@ var memberChats = {
|
|
|
24173
24161
|
}, "candidates")
|
|
24174
24162
|
};
|
|
24175
24163
|
|
|
24176
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24164
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/link-scorers/member-dialog.js
|
|
24177
24165
|
var WEIGHT5 = 0.6;
|
|
24178
24166
|
var memberDialog = {
|
|
24179
24167
|
id: "member-dialog",
|
|
@@ -24207,7 +24195,7 @@ var memberDialog = {
|
|
|
24207
24195
|
}, "candidates")
|
|
24208
24196
|
};
|
|
24209
24197
|
|
|
24210
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24198
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/project-gathering-around.js
|
|
24211
24199
|
var storedMessageNeighbours = /* @__PURE__ */ __name((messages) => ({
|
|
24212
24200
|
async around(ref, window3) {
|
|
24213
24201
|
const at = parseLocator(ref);
|
|
@@ -24303,7 +24291,7 @@ var storedNeighbours = /* @__PURE__ */ __name((store) => {
|
|
|
24303
24291
|
};
|
|
24304
24292
|
}, "storedNeighbours");
|
|
24305
24293
|
|
|
24306
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24294
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/project-gathering-request.js
|
|
24307
24295
|
import { createHash as createHash2 } from "node:crypto";
|
|
24308
24296
|
var DAY2 = 864e5;
|
|
24309
24297
|
var MAX_TIME = 864e13;
|
|
@@ -24619,7 +24607,7 @@ var decodeCheckpoint = /* @__PURE__ */ __name((text2, plan) => {
|
|
|
24619
24607
|
return value;
|
|
24620
24608
|
}, "decodeCheckpoint");
|
|
24621
24609
|
|
|
24622
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24610
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/project-gathering.js
|
|
24623
24611
|
var terminal = /* @__PURE__ */ new Set(["done", "unavailable", "failed"]);
|
|
24624
24612
|
var PAGE2 = 20;
|
|
24625
24613
|
var PEOPLE = 20;
|
|
@@ -25023,7 +25011,7 @@ var peopleOf = /* @__PURE__ */ __name((items, senderOf) => {
|
|
|
25023
25011
|
return [...byKey.values()].sort((a, b) => b.items - a.items || a.name.localeCompare(b.name));
|
|
25024
25012
|
}, "peopleOf");
|
|
25025
25013
|
|
|
25026
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25014
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/meeting-project-candidate-matching.js
|
|
25027
25015
|
var normalizedText = /* @__PURE__ */ __name((text2) => text2.normalize("NFKC").toLowerCase().replace(/\s+/gu, " "), "normalizedText");
|
|
25028
25016
|
var termsOf = /* @__PURE__ */ __name((entry) => [
|
|
25029
25017
|
{ name: entry.name, kind: "canonical" },
|
|
@@ -25067,7 +25055,7 @@ var matchVocabularyTerms = /* @__PURE__ */ __name((catalog, texts) => {
|
|
|
25067
25055
|
return result.sort((a, b) => Number(a.entry.id) - Number(b.entry.id));
|
|
25068
25056
|
}, "matchVocabularyTerms");
|
|
25069
25057
|
|
|
25070
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25058
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/project-gathering-mentions.js
|
|
25071
25059
|
var KINDS = ["project", "tag", "topic"];
|
|
25072
25060
|
var findEvidenceMentions = /* @__PURE__ */ __name(async (vocabulary, gathering, options = {}) => {
|
|
25073
25061
|
if (typeof vocabulary?.vocabulary !== "function")
|
|
@@ -25122,7 +25110,7 @@ var findEvidenceMentions = /* @__PURE__ */ __name(async (vocabulary, gathering,
|
|
|
25122
25110
|
};
|
|
25123
25111
|
}, "findEvidenceMentions");
|
|
25124
25112
|
|
|
25125
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25113
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/stored-project-gathering.js
|
|
25126
25114
|
var storedChatCount = /* @__PURE__ */ __name((store) => async (account, chatId, { since, until }) => {
|
|
25127
25115
|
const window3 = { since: new Date(since).toISOString(), until: new Date(until - 1).toISOString() };
|
|
25128
25116
|
const [messages, newest, oldest] = await Promise.all([
|
|
@@ -25390,7 +25378,7 @@ var gatherStoredProject = /* @__PURE__ */ __name(async (store, input) => {
|
|
|
25390
25378
|
const leftOut = [];
|
|
25391
25379
|
for (const one2 of all.filter((chat) => !purposeRead(purposes, chat.purpose))) {
|
|
25392
25380
|
const account = { provider: one2.provider, account: one2.account };
|
|
25393
|
-
const [
|
|
25381
|
+
const [counted2, [held]] = await Promise.all([
|
|
25394
25382
|
count4(account, one2.chat, { since: gathered.window.after, until: gathered.window.before }),
|
|
25395
25383
|
chatCoverage(store, account, [one2.chat])
|
|
25396
25384
|
]);
|
|
@@ -25403,7 +25391,7 @@ var gatherStoredProject = /* @__PURE__ */ __name(async (store, input) => {
|
|
|
25403
25391
|
purpose: one2.purpose ?? LINK_PURPOSE,
|
|
25404
25392
|
relationship: one2.relationship,
|
|
25405
25393
|
...one2.proposed ? { proposed: one2.proposed } : {},
|
|
25406
|
-
...
|
|
25394
|
+
...counted2
|
|
25407
25395
|
});
|
|
25408
25396
|
}
|
|
25409
25397
|
return {
|
|
@@ -25428,7 +25416,7 @@ var purposeHintOf = /* @__PURE__ */ __name((linked, rows, of) => {
|
|
|
25428
25416
|
return { chat: top.ref, relationship: link4.relationship, items, of };
|
|
25429
25417
|
}, "purposeHintOf");
|
|
25430
25418
|
|
|
25431
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25419
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/link-scorers/scan.js
|
|
25432
25420
|
var SCORERS = [chatTitle, aliasHits, memberChats, memberDialog, chatSenders, mailThread];
|
|
25433
25421
|
var PERSON_SCORERS = [emailDomain];
|
|
25434
25422
|
var SCAN_BOT = { bot: "memo-scan", kind: "rule" };
|
|
@@ -25636,18 +25624,18 @@ var referenceOf = /* @__PURE__ */ __name((text2) => {
|
|
|
25636
25624
|
}, "referenceOf");
|
|
25637
25625
|
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");
|
|
25638
25626
|
|
|
25639
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25627
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/media-archive.js
|
|
25640
25628
|
import { setTimeout as sleep3 } from "node:timers/promises";
|
|
25641
25629
|
|
|
25642
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25630
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/media-archive-files.js
|
|
25643
25631
|
import { lstat } from "node:fs/promises";
|
|
25644
25632
|
|
|
25645
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25633
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-store.js
|
|
25646
25634
|
import { createHash as createHash4, randomUUID as randomUUID2 } from "node:crypto";
|
|
25647
25635
|
import { open as open2, rename as rename2, unlink as unlink2 } from "node:fs/promises";
|
|
25648
25636
|
import { join as join2 } from "node:path";
|
|
25649
25637
|
|
|
25650
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25638
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-metadata.js
|
|
25651
25639
|
import { createHash as createHash3 } from "node:crypto";
|
|
25652
25640
|
var metadataLimit = 16384;
|
|
25653
25641
|
var partialIdentity = /* @__PURE__ */ __name((locator) => JSON.stringify([locator.provider, locator.account, locator.occurrenceId, locator.assetId]), "partialIdentity");
|
|
@@ -25707,7 +25695,7 @@ var readPartialMetadata = /* @__PURE__ */ __name(async (path, locator, maxBytes,
|
|
|
25707
25695
|
}
|
|
25708
25696
|
}, "readPartialMetadata");
|
|
25709
25697
|
|
|
25710
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25698
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-writer.js
|
|
25711
25699
|
import { randomUUID } from "node:crypto";
|
|
25712
25700
|
import { open, rename, unlink } from "node:fs/promises";
|
|
25713
25701
|
import { join } from "node:path";
|
|
@@ -25799,7 +25787,7 @@ var partialWriter = /* @__PURE__ */ __name(async (input) => {
|
|
|
25799
25787
|
};
|
|
25800
25788
|
}, "partialWriter");
|
|
25801
25789
|
|
|
25802
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25790
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-store.js
|
|
25803
25791
|
var NativeRecordingPartialStore = class {
|
|
25804
25792
|
static {
|
|
25805
25793
|
__name(this, "NativeRecordingPartialStore");
|
|
@@ -25906,12 +25894,12 @@ var NativeRecordingPartialStore = class {
|
|
|
25906
25894
|
}
|
|
25907
25895
|
};
|
|
25908
25896
|
|
|
25909
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25897
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication.js
|
|
25910
25898
|
import { createHash as createHash5 } from "node:crypto";
|
|
25911
25899
|
import { link as link2 } from "node:fs/promises";
|
|
25912
25900
|
import { basename, dirname, join as join4, resolve } from "node:path";
|
|
25913
25901
|
|
|
25914
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25902
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication-files.js
|
|
25915
25903
|
import { unlink as unlink3 } from "node:fs/promises";
|
|
25916
25904
|
var verifiedPublicationFile = /* @__PURE__ */ __name(async (path, expected2, signal, writable = false) => {
|
|
25917
25905
|
signal?.throwIfAborted();
|
|
@@ -25946,7 +25934,7 @@ var commitPublication = /* @__PURE__ */ __name(async (root, partialPath, finalPa
|
|
|
25946
25934
|
signal?.throwIfAborted();
|
|
25947
25935
|
}, "commitPublication");
|
|
25948
25936
|
|
|
25949
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25937
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication-journal.js
|
|
25950
25938
|
import { randomUUID as randomUUID3 } from "node:crypto";
|
|
25951
25939
|
import { open as open3, rename as rename3, unlink as unlink4 } from "node:fs/promises";
|
|
25952
25940
|
import { join as join3 } from "node:path";
|
|
@@ -26019,7 +26007,7 @@ var writePublicationJournal = /* @__PURE__ */ __name(async (root, path, prefix,
|
|
|
26019
26007
|
}
|
|
26020
26008
|
}, "writePublicationJournal");
|
|
26021
26009
|
|
|
26022
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26010
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication.js
|
|
26023
26011
|
var NativeRecordingPublication = class {
|
|
26024
26012
|
static {
|
|
26025
26013
|
__name(this, "NativeRecordingPublication");
|
|
@@ -26092,7 +26080,7 @@ var NativeRecordingPublication = class {
|
|
|
26092
26080
|
}
|
|
26093
26081
|
};
|
|
26094
26082
|
|
|
26095
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26083
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/media-archive-manifest.js
|
|
26096
26084
|
import { createHash as createHash6 } from "node:crypto";
|
|
26097
26085
|
import { readdir } from "node:fs/promises";
|
|
26098
26086
|
import { isAbsolute, join as join5, resolve as resolve2 } from "node:path";
|
|
@@ -26179,7 +26167,7 @@ var commitMediaEntry = /* @__PURE__ */ __name((root, one2, beforePublish) => wri
|
|
|
26179
26167
|
beforePublish
|
|
26180
26168
|
}), "commitMediaEntry");
|
|
26181
26169
|
|
|
26182
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26170
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/media-archive-files.js
|
|
26183
26171
|
var validator = '"media-completed-v1"';
|
|
26184
26172
|
var maximumFileBytes = 64 * 1024 * 1024 * 1024;
|
|
26185
26173
|
var archiveMediaFile = /* @__PURE__ */ __name(async (root, identity, kind, file2, beforeWrite, signal, metadata = {}) => {
|
|
@@ -26280,7 +26268,7 @@ var archiveMediaFile = /* @__PURE__ */ __name(async (root, identity, kind, file2
|
|
|
26280
26268
|
return entry;
|
|
26281
26269
|
}, "archiveMediaFile");
|
|
26282
26270
|
|
|
26283
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26271
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/media-archive-locks.js
|
|
26284
26272
|
import { mkdir, realpath } from "node:fs/promises";
|
|
26285
26273
|
import { join as join6, resolve as resolve3 } from "node:path";
|
|
26286
26274
|
var archiveLocations = /* @__PURE__ */ __name(async (initial, signal) => {
|
|
@@ -26347,7 +26335,7 @@ var withMediaArchiveLocks = /* @__PURE__ */ __name(async (directory2, signal, ru
|
|
|
26347
26335
|
throw new CliError("validation_error", "archive locations changed during locking; run the command again");
|
|
26348
26336
|
}, "withMediaArchiveLocks");
|
|
26349
26337
|
|
|
26350
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26338
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/media-archive.js
|
|
26351
26339
|
var validateMediaSince = /* @__PURE__ */ __name((value, flag = "--since-time") => {
|
|
26352
26340
|
if (value === void 0)
|
|
26353
26341
|
return void 0;
|
|
@@ -26500,7 +26488,7 @@ var archiveMedia = /* @__PURE__ */ __name(async (ports, options) => {
|
|
|
26500
26488
|
}, { create: true });
|
|
26501
26489
|
}, "archiveMedia");
|
|
26502
26490
|
|
|
26503
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26491
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/media-archive-move.js
|
|
26504
26492
|
import { realpath as realpath2, unlink as unlink5 } from "node:fs/promises";
|
|
26505
26493
|
import { basename as basename2, dirname as dirname2, join as join7, resolve as resolve4 } from "node:path";
|
|
26506
26494
|
var canonicalDestination = /* @__PURE__ */ __name(async (directory2) => {
|
|
@@ -26653,7 +26641,7 @@ var moveMediaArchive = /* @__PURE__ */ __name(async (options) => {
|
|
|
26653
26641
|
}, { additional: [target2], createAdditional: !options.dryRun });
|
|
26654
26642
|
}, "moveMediaArchive");
|
|
26655
26643
|
|
|
26656
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26644
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/model-downloads.js
|
|
26657
26645
|
var bytesOf = /* @__PURE__ */ __name((model) => model.files.reduce((sum2, file2) => sum2 + file2.bytes, 0), "bytesOf");
|
|
26658
26646
|
var nativeRuntime = /* @__PURE__ */ __name(async ({ env, progress = /* @__PURE__ */ __name(() => {
|
|
26659
26647
|
}, "progress") }) => {
|
|
@@ -26676,7 +26664,7 @@ var downloadTextModel = /* @__PURE__ */ __name(async (id2, { env, progress = /*
|
|
|
26676
26664
|
}
|
|
26677
26665
|
await nativeRuntime({ env, progress });
|
|
26678
26666
|
progress(`${model.id}: loading it once to check it works`);
|
|
26679
|
-
const { openEmbedder: openEmbedder2 } = await import("./embed-
|
|
26667
|
+
const { openEmbedder: openEmbedder2 } = await import("./embed-DYNZ4223.js");
|
|
26680
26668
|
const embedder = await openEmbedder2(model, directory2);
|
|
26681
26669
|
try {
|
|
26682
26670
|
const [vector] = await embedder.embed(["check"], "query");
|
|
@@ -26697,7 +26685,7 @@ var downloadRerankModel = /* @__PURE__ */ __name(async (id2, { env, progress = /
|
|
|
26697
26685
|
}
|
|
26698
26686
|
await nativeRuntime({ env, progress });
|
|
26699
26687
|
progress(`${model.id}: loading it once to check it works`);
|
|
26700
|
-
const { openReranker } = await import("./rerank-
|
|
26688
|
+
const { openReranker } = await import("./rerank-RRLNQ5C2.js");
|
|
26701
26689
|
const reranker = await openReranker(model, directory2);
|
|
26702
26690
|
try {
|
|
26703
26691
|
await reranker.score("check", ["check"]);
|
|
@@ -26715,7 +26703,7 @@ var downloadImageModel = /* @__PURE__ */ __name(async (id2, { env, progress = /*
|
|
|
26715
26703
|
await installFiles(placedImage(model, directory2), { progress });
|
|
26716
26704
|
}
|
|
26717
26705
|
progress(`${model.id}: loading it once to check it works`);
|
|
26718
|
-
const { openPictureEmbedder } = await import("./embedder-
|
|
26706
|
+
const { openPictureEmbedder } = await import("./embedder-XG344VNB.js");
|
|
26719
26707
|
const embedder = await openPictureEmbedder(model, directory2);
|
|
26720
26708
|
try {
|
|
26721
26709
|
const vector = await embedder.embedQuery("check");
|
|
@@ -26727,7 +26715,7 @@ var downloadImageModel = /* @__PURE__ */ __name(async (id2, { env, progress = /*
|
|
|
26727
26715
|
return { model, directory: directory2 };
|
|
26728
26716
|
}, "downloadImageModel");
|
|
26729
26717
|
|
|
26730
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26718
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/domain/money-words.js
|
|
26731
26719
|
var MONEY_REQUEST = "money-request";
|
|
26732
26720
|
var MONEY_DONE = "money-done";
|
|
26733
26721
|
var PROMISE = "promise";
|
|
@@ -26761,10 +26749,10 @@ var MONEY_WORDS = [
|
|
|
26761
26749
|
}
|
|
26762
26750
|
];
|
|
26763
26751
|
|
|
26764
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26752
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/money-words.js
|
|
26765
26753
|
var moneyClassesOf = /* @__PURE__ */ __name((text2) => listsHit(text2, MONEY_WORDS), "moneyClassesOf");
|
|
26766
26754
|
|
|
26767
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26755
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/domain/status-words.js
|
|
26768
26756
|
var words2 = /* @__PURE__ */ __name((forms) => new RegExp(`(?<![\\p{L}\\p{N}])(?:${forms.join("|")})(?![\\p{L}\\p{N}])`, "iu"), "words");
|
|
26769
26757
|
var MONEY_DONE_FORMS = words2([
|
|
26770
26758
|
"\u043E\u043F\u043B\u0430\u0442\u0438\u043B[\u0430\u0438]?",
|
|
@@ -26804,7 +26792,7 @@ var PROMISE_FORMS = words2([
|
|
|
26804
26792
|
"estar\xE1 listo"
|
|
26805
26793
|
]);
|
|
26806
26794
|
|
|
26807
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26795
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/project-status/items.js
|
|
26808
26796
|
var EXCERPT_CHARS = 80;
|
|
26809
26797
|
var excerpt2 = /* @__PURE__ */ __name((text2) => {
|
|
26810
26798
|
const flat = text2.replace(/\s+/g, " ").trim();
|
|
@@ -26826,7 +26814,7 @@ var whoOf = /* @__PURE__ */ __name((message) => ({
|
|
|
26826
26814
|
var fromOwner = /* @__PURE__ */ __name((message) => message.outgoing === true, "fromOwner");
|
|
26827
26815
|
var day = /* @__PURE__ */ __name((at) => new Date(at).toISOString().slice(0, 10), "day");
|
|
26828
26816
|
|
|
26829
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26817
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/project-status/signals/amounts.js
|
|
26830
26818
|
var MONEY = DEFAULT_TASK_CATEGORIES.filter((category) => category.name === "money");
|
|
26831
26819
|
var verbOf = /* @__PURE__ */ __name((text2) => {
|
|
26832
26820
|
if (MONEY_DONE_FORMS.test(text2))
|
|
@@ -26866,10 +26854,10 @@ var rowsOf = /* @__PURE__ */ __name((chat) => chat.messages.flatMap((message) =>
|
|
|
26866
26854
|
var centsText = /* @__PURE__ */ __name((cents) => `${Math.floor(cents / 100)}.${String(cents % 100).padStart(2, "0")}`, "centsText");
|
|
26867
26855
|
var amounts = {
|
|
26868
26856
|
id: "amounts",
|
|
26869
|
-
version:
|
|
26857
|
+
version: 3,
|
|
26870
26858
|
scope: "chat",
|
|
26871
|
-
read: /* @__PURE__ */ __name(async (
|
|
26872
|
-
if (!chat)
|
|
26859
|
+
read: /* @__PURE__ */ __name(async (context2, chat) => {
|
|
26860
|
+
if (!chat || context2.books)
|
|
26873
26861
|
return [];
|
|
26874
26862
|
const groups = /* @__PURE__ */ new Map();
|
|
26875
26863
|
for (const row of rowsOf(chat)) {
|
|
@@ -26882,7 +26870,8 @@ var amounts = {
|
|
|
26882
26870
|
const lastAsk = asks.at(-1);
|
|
26883
26871
|
const first2 = asks[0] ?? done2[0] ?? rows[0];
|
|
26884
26872
|
const paidAfter = done2.some((row) => !lastAsk || Date.parse(row.message.timestamp) >= Date.parse(lastAsk.message.timestamp));
|
|
26885
|
-
const
|
|
26873
|
+
const paid2 = asks.length ? paidAfter : done2.length > 0;
|
|
26874
|
+
const state = paid2 ? "paid-mentioned" : asks.length ? "asked" : "mentioned";
|
|
26886
26875
|
const cited2 = asks.length ? [...asks, ...paidAfter ? done2.slice(-1) : []] : rows;
|
|
26887
26876
|
return {
|
|
26888
26877
|
signal: "amounts",
|
|
@@ -26903,10 +26892,10 @@ var amounts = {
|
|
|
26903
26892
|
};
|
|
26904
26893
|
});
|
|
26905
26894
|
}, "read"),
|
|
26906
|
-
attention: /* @__PURE__ */ __name((items) => items.flatMap((item2) => item2.chat !== null && item2.data.state === "
|
|
26895
|
+
attention: /* @__PURE__ */ __name((items) => items.flatMap((item2) => item2.chat !== null && item2.data.state === "asked" ? [{ chat: item2.chat, weight: 2, why: "money asked" }] : []), "attention")
|
|
26907
26896
|
};
|
|
26908
26897
|
|
|
26909
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26898
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/project-status/signals/children.js
|
|
26910
26899
|
var children = {
|
|
26911
26900
|
id: "children",
|
|
26912
26901
|
version: 1,
|
|
@@ -26935,7 +26924,7 @@ var children = {
|
|
|
26935
26924
|
}, "read")
|
|
26936
26925
|
};
|
|
26937
26926
|
|
|
26938
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26927
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/project-status/signals/coverage.js
|
|
26939
26928
|
var coverage = {
|
|
26940
26929
|
id: "coverage",
|
|
26941
26930
|
version: 1,
|
|
@@ -26964,7 +26953,7 @@ var coverage = {
|
|
|
26964
26953
|
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")
|
|
26965
26954
|
};
|
|
26966
26955
|
|
|
26967
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26956
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/project-status/signals/payments.js
|
|
26968
26957
|
var holding = /* @__PURE__ */ __name((row) => row.review !== "rejected", "holding");
|
|
26969
26958
|
var item = /* @__PURE__ */ __name((row, at, data) => ({
|
|
26970
26959
|
signal: "payments",
|
|
@@ -27014,7 +27003,7 @@ var payments = {
|
|
|
27014
27003
|
}, "read")
|
|
27015
27004
|
};
|
|
27016
27005
|
|
|
27017
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27006
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/project-status/signals/promises.js
|
|
27018
27007
|
var PATTERNS_PER_CHAT = 3;
|
|
27019
27008
|
var DAY3 = 864e5;
|
|
27020
27009
|
var KINDS2 = /* @__PURE__ */ new Set(["promise", "request"]);
|
|
@@ -27103,7 +27092,7 @@ var promises = {
|
|
|
27103
27092
|
}, "read")
|
|
27104
27093
|
};
|
|
27105
27094
|
|
|
27106
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27095
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/project-status/signals/questions.js
|
|
27107
27096
|
var PER_SIDE = 5;
|
|
27108
27097
|
var WEEK = 7 * 864e5;
|
|
27109
27098
|
var NOBODY = /* @__PURE__ */ new Set();
|
|
@@ -27134,7 +27123,7 @@ var questions2 = {
|
|
|
27134
27123
|
}, "attention")
|
|
27135
27124
|
};
|
|
27136
27125
|
|
|
27137
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27126
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/project-status/signals/reply-next.js
|
|
27138
27127
|
var targetOf = /* @__PURE__ */ __name((message, chat, owners) => {
|
|
27139
27128
|
const byId2 = /* @__PURE__ */ __name((id2) => chat.messages.find((one2) => one2.id === id2), "byId");
|
|
27140
27129
|
const quoted = message.replyTo ?? (message.replyToId === void 0 ? void 0 : byId2(message.replyToId));
|
|
@@ -27202,7 +27191,7 @@ var replyNext = {
|
|
|
27202
27191
|
attention: /* @__PURE__ */ __name((items) => items.flatMap((item2) => item2.chat !== null && item2.data.next === "owner" ? [{ chat: item2.chat, weight: 2, why: "your move" }] : []), "attention")
|
|
27203
27192
|
};
|
|
27204
27193
|
|
|
27205
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27194
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/project-status/signals/topics.js
|
|
27206
27195
|
var escaped2 = /* @__PURE__ */ __name((text2) => text2.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), "escaped");
|
|
27207
27196
|
var wholeWord = /* @__PURE__ */ __name((word) => new RegExp(`(?<![\\p{L}\\p{N}])${escaped2(word)}(?![\\p{L}\\p{N}])`, "u"), "wholeWord");
|
|
27208
27197
|
var matcherOf = /* @__PURE__ */ __name((query) => {
|
|
@@ -27248,7 +27237,7 @@ var topics = {
|
|
|
27248
27237
|
}, "read")
|
|
27249
27238
|
};
|
|
27250
27239
|
|
|
27251
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27240
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/project-status/signals/index.js
|
|
27252
27241
|
var STATUS_SIGNALS = [
|
|
27253
27242
|
replyNext,
|
|
27254
27243
|
questions2,
|
|
@@ -27260,7 +27249,7 @@ var STATUS_SIGNALS = [
|
|
|
27260
27249
|
children
|
|
27261
27250
|
];
|
|
27262
27251
|
|
|
27263
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27252
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/project-status/index.js
|
|
27264
27253
|
var DAY4 = 864e5;
|
|
27265
27254
|
var STATUS_WINDOW = 300;
|
|
27266
27255
|
var STATUS_CHATS = 16;
|
|
@@ -27305,17 +27294,23 @@ var childrenOf = /* @__PURE__ */ __name(async (store, root, catalog) => {
|
|
|
27305
27294
|
}, "childrenOf");
|
|
27306
27295
|
var inAccounts = /* @__PURE__ */ __name((accounts, provider, account) => accounts === void 0 || accounts.some((one2) => one2.provider === provider && one2.account === account), "inAccounts");
|
|
27307
27296
|
var failure = /* @__PURE__ */ __name((error) => error instanceof Error ? error.message : String(error), "failure");
|
|
27308
|
-
var
|
|
27309
|
-
const
|
|
27310
|
-
|
|
27311
|
-
|
|
27312
|
-
|
|
27297
|
+
var owed = /* @__PURE__ */ __name((item2) => {
|
|
27298
|
+
const data = item2.data;
|
|
27299
|
+
return item2.signal === "payments" && data.state === "expected" && data.status === "confirmed";
|
|
27300
|
+
}, "owed");
|
|
27301
|
+
var keepsBooks = /* @__PURE__ */ __name(async (store, projects) => {
|
|
27302
|
+
for (const project2 of projects) {
|
|
27303
|
+
const filter = { project: project2, review: "confirmed", limit: 1 };
|
|
27304
|
+
if ((await store.finance.invoices(filter)).length || (await store.finance.payments(filter)).length)
|
|
27305
|
+
return true;
|
|
27306
|
+
}
|
|
27307
|
+
return false;
|
|
27308
|
+
}, "keepsBooks");
|
|
27313
27309
|
var totalsOf = /* @__PURE__ */ __name((items) => {
|
|
27314
27310
|
const totals = /* @__PURE__ */ new Map();
|
|
27315
|
-
const open7 = counted2(items);
|
|
27316
27311
|
for (const item2 of items) {
|
|
27317
27312
|
const data = item2.data;
|
|
27318
|
-
if (!
|
|
27313
|
+
if (!owed(item2) || data.amount === void 0)
|
|
27319
27314
|
continue;
|
|
27320
27315
|
const key = `${data.direction}|${data.currency ?? ""}`;
|
|
27321
27316
|
const total = totals.get(key) ?? {
|
|
@@ -27398,6 +27393,7 @@ var projectStatus = /* @__PURE__ */ __name(async (store, input) => {
|
|
|
27398
27393
|
chats,
|
|
27399
27394
|
project: { ...root, children: children2, cut },
|
|
27400
27395
|
store,
|
|
27396
|
+
books: await keepsBooks(store, [root.ref, ...children2.map((child) => child.ref)]),
|
|
27401
27397
|
contextQueries: input.contextQueries ?? []
|
|
27402
27398
|
};
|
|
27403
27399
|
const items = [];
|
|
@@ -27442,7 +27438,7 @@ var projectStatus = /* @__PURE__ */ __name(async (store, input) => {
|
|
|
27442
27438
|
};
|
|
27443
27439
|
}, "projectStatus");
|
|
27444
27440
|
|
|
27445
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27441
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/account.js
|
|
27446
27442
|
var accountService = /* @__PURE__ */ __name((deps) => {
|
|
27447
27443
|
const online = /* @__PURE__ */ __name(async (command) => {
|
|
27448
27444
|
if (deps.offline)
|
|
@@ -27514,7 +27510,7 @@ var accountService = /* @__PURE__ */ __name((deps) => {
|
|
|
27514
27510
|
};
|
|
27515
27511
|
}, "accountService");
|
|
27516
27512
|
|
|
27517
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27513
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/domain/send-time.js
|
|
27518
27514
|
var MINUTE = 6e4;
|
|
27519
27515
|
var YEAR = 365 * 24 * 60 * MINUTE;
|
|
27520
27516
|
var DELAY = /^(\d+)(m|h|d)$/;
|
|
@@ -27533,7 +27529,7 @@ var sendTime = /* @__PURE__ */ __name((value, now = Date.now(), flag = "--at-tim
|
|
|
27533
27529
|
return new Date(at - at % MINUTE).toISOString();
|
|
27534
27530
|
}, "sendTime");
|
|
27535
27531
|
|
|
27536
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27532
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/admin.js
|
|
27537
27533
|
var recordMembership = /* @__PURE__ */ __name(async (deps, operationId, done2, change, fix, write2) => {
|
|
27538
27534
|
try {
|
|
27539
27535
|
const held = await accountStoreIfOpen(deps);
|
|
@@ -27679,21 +27675,21 @@ var adminService = /* @__PURE__ */ __name((deps) => {
|
|
|
27679
27675
|
const answerAll = capability(connection, "answerAllJoinRequests", "answer every join request at once");
|
|
27680
27676
|
const { id: chatId } = await connection.resolve(chat);
|
|
27681
27677
|
const page = await list3(chatId, { limit: 100, ...link4 === void 0 ? {} : { link: link4 } });
|
|
27682
|
-
const
|
|
27678
|
+
const counted2 = page.total ?? page.items.length;
|
|
27683
27679
|
if (page.total === void 0 && page.hasMore)
|
|
27684
27680
|
throw new CliError("validation_error", "too many requests to count; answer them by person, or by --link");
|
|
27685
|
-
if (
|
|
27686
|
-
return { chatId, accepted: accept, counted:
|
|
27681
|
+
if (counted2 === 0)
|
|
27682
|
+
return { chatId, accepted: accept, counted: counted2 };
|
|
27687
27683
|
const operationId = newOperationId();
|
|
27688
27684
|
await guardedWrite(deps.guard, {
|
|
27689
27685
|
operationId,
|
|
27690
27686
|
chatId,
|
|
27691
27687
|
kind: "chat",
|
|
27692
27688
|
action: accept ? "requests.accept" : "requests.decline",
|
|
27693
|
-
count:
|
|
27694
|
-
people:
|
|
27689
|
+
count: counted2,
|
|
27690
|
+
people: counted2
|
|
27695
27691
|
}, () => answerAll(chatId, accept, link4));
|
|
27696
|
-
return { operationId, chatId, accepted: accept, counted:
|
|
27692
|
+
return { operationId, chatId, accepted: accept, counted: counted2 };
|
|
27697
27693
|
}, "answerAllRequests"),
|
|
27698
27694
|
links: /* @__PURE__ */ __name(async (chat, window3) => {
|
|
27699
27695
|
if (deps.offline)
|
|
@@ -27780,7 +27776,7 @@ var linkLimits = /* @__PURE__ */ __name(({ approval, expires, maxUses }) => {
|
|
|
27780
27776
|
return expires === void 0 ? void 0 : sendTime(expires, Date.now(), "--expire-time");
|
|
27781
27777
|
}, "linkLimits");
|
|
27782
27778
|
|
|
27783
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27779
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/mail-search.js
|
|
27784
27780
|
var THREADS_PAGE = 500;
|
|
27785
27781
|
var threadsOf = /* @__PURE__ */ __name(async (store, key) => {
|
|
27786
27782
|
const account = await store.accounts.storedAccount(key).catch(() => void 0);
|
|
@@ -27859,7 +27855,7 @@ var readMail = /* @__PURE__ */ __name(async (store, locator, { before: before2 =
|
|
|
27859
27855
|
return thread.slice(Math.max(0, at - before2), at + after + 1).map((hit) => hit.id === message ? { ...hit, anchor: true } : hit);
|
|
27860
27856
|
}, "readMail");
|
|
27861
27857
|
|
|
27862
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27858
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/search-kind.js
|
|
27863
27859
|
var NO_MAIL = "no_mail";
|
|
27864
27860
|
var MAIL = "email";
|
|
27865
27861
|
var listContextOf = /* @__PURE__ */ __name(async (store, account, app, stored) => {
|
|
@@ -27906,7 +27902,7 @@ var accountsOfKind = /* @__PURE__ */ __name((kind, chosen, held, explicit, comma
|
|
|
27906
27902
|
return chosenMail.map(({ provider, account }) => ({ provider, account }));
|
|
27907
27903
|
}, "accountsOfKind");
|
|
27908
27904
|
|
|
27909
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27905
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/messages-search.js
|
|
27910
27906
|
var MAIL_FIELDS = /* @__PURE__ */ new Set(["to", "cc", "bcc", "subject", "mailbox", "label", "is"]);
|
|
27911
27907
|
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");
|
|
27912
27908
|
var prepareLucene = /* @__PURE__ */ __name(async (store, account, request, messenger) => {
|
|
@@ -28254,7 +28250,7 @@ var statsLucene = /* @__PURE__ */ __name(async (store, account, request, messeng
|
|
|
28254
28250
|
};
|
|
28255
28251
|
}, "statsLucene");
|
|
28256
28252
|
|
|
28257
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28253
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/rankings-selection.js
|
|
28258
28254
|
var RANKING_SELECTION_BYTES = 64 * 1024;
|
|
28259
28255
|
var object = /* @__PURE__ */ __name((value) => value !== null && typeof value === "object" && !Array.isArray(value) ? value : void 0, "object");
|
|
28260
28256
|
function invalid(message = "ranking selection is invalid \u2014 obtain a new drilldown from stats top") {
|
|
@@ -28423,7 +28419,7 @@ var readRankingSelection = /* @__PURE__ */ __name(async (store, input) => {
|
|
|
28423
28419
|
};
|
|
28424
28420
|
}, "readRankingSelection");
|
|
28425
28421
|
|
|
28426
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28422
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/search-record.js
|
|
28427
28423
|
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");
|
|
28428
28424
|
var searchRecordOf = /* @__PURE__ */ __name((command, params) => ({
|
|
28429
28425
|
command,
|
|
@@ -28433,7 +28429,7 @@ var searchRecordOf = /* @__PURE__ */ __name((command, params) => ({
|
|
|
28433
28429
|
fieldsVersion: FIELD_VERSION
|
|
28434
28430
|
}), "searchRecordOf");
|
|
28435
28431
|
|
|
28436
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28432
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/admin-statistics.js
|
|
28437
28433
|
function invalid2(message) {
|
|
28438
28434
|
throw new CliError("validation_error", message);
|
|
28439
28435
|
}
|
|
@@ -28727,7 +28723,7 @@ var adminStatisticsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
28727
28723
|
}, "evidence")
|
|
28728
28724
|
}), "adminStatisticsService");
|
|
28729
28725
|
|
|
28730
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28726
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/archive-gaps.js
|
|
28731
28727
|
import { createHash as createHash7, randomUUID as randomUUID4 } from "node:crypto";
|
|
28732
28728
|
var GAP_BOUNDS = { maxGaps: 5, limit: 500, timeMs: 3e4 };
|
|
28733
28729
|
var validateRepair = /* @__PURE__ */ __name((messenger, options) => {
|
|
@@ -28864,16 +28860,16 @@ var gapsService = /* @__PURE__ */ __name((deps) => {
|
|
|
28864
28860
|
return { plan, repair };
|
|
28865
28861
|
}, "gapsService");
|
|
28866
28862
|
|
|
28867
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28863
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/attachments.js
|
|
28868
28864
|
import { createHash as createHash9 } from "node:crypto";
|
|
28869
28865
|
import { constants as constants2, mkdirSync as mkdirSync2 } from "node:fs";
|
|
28870
28866
|
import { lstat as lstat4, open as open6, readFile, stat as stat2 } from "node:fs/promises";
|
|
28871
28867
|
|
|
28872
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28868
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/attachments/directory.js
|
|
28873
28869
|
import { lstat as lstat2, readdir as readdir2, realpath as realpath3 } from "node:fs/promises";
|
|
28874
28870
|
import { basename as basename4, join as join8, relative as relative2, sep as sep2 } from "node:path";
|
|
28875
28871
|
|
|
28876
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28872
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/sends/upload.js
|
|
28877
28873
|
import { openAsBlob, realpathSync } from "node:fs";
|
|
28878
28874
|
import { open as open4, stat } from "node:fs/promises";
|
|
28879
28875
|
import { basename as basename3, dirname as dirname3, extname, isAbsolute as isAbsolute2, relative, resolve as resolve5, sep } from "node:path";
|
|
@@ -29075,7 +29071,7 @@ var readStickerFile = /* @__PURE__ */ __name(async (path, maxBytes, read2) => {
|
|
|
29075
29071
|
return { name, source };
|
|
29076
29072
|
}, "readStickerFile");
|
|
29077
29073
|
|
|
29078
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29074
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/attachments/directory.js
|
|
29079
29075
|
var MAX_FILES = 1e4;
|
|
29080
29076
|
var directoryPaths = /* @__PURE__ */ __name(async (store, chat, directory2, app, env) => {
|
|
29081
29077
|
if (refusedPlace(directory2, app, env))
|
|
@@ -29144,15 +29140,15 @@ var directoryPaths = /* @__PURE__ */ __name(async (store, chat, directory2, app,
|
|
|
29144
29140
|
return choices;
|
|
29145
29141
|
}, "directoryPaths");
|
|
29146
29142
|
|
|
29147
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29143
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/attachments/documents.js
|
|
29148
29144
|
import { posix } from "node:path";
|
|
29149
29145
|
|
|
29150
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29146
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/attachments/container.js
|
|
29151
29147
|
import { setImmediate as tick } from "node:timers/promises";
|
|
29152
29148
|
import { crc32 } from "node:zlib";
|
|
29153
29149
|
var import_xmldom = __toESM(require_lib(), 1);
|
|
29154
29150
|
|
|
29155
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29151
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/attachments/encoding.js
|
|
29156
29152
|
var import_chardet = __toESM(require_lib2(), 1);
|
|
29157
29153
|
var import_iconv_lite = __toESM(require_lib3(), 1);
|
|
29158
29154
|
var SAMPLE = 65536;
|
|
@@ -29254,7 +29250,7 @@ var decodeXml = /* @__PURE__ */ __name((bytes2) => {
|
|
|
29254
29250
|
return result.text;
|
|
29255
29251
|
}, "decodeXml");
|
|
29256
29252
|
|
|
29257
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29253
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/attachments/container.js
|
|
29258
29254
|
var MAX_PART = 10 * 1024 * 1024;
|
|
29259
29255
|
var MAX_ENTRIES = 1e3;
|
|
29260
29256
|
var decoder = new TextDecoder("utf-8", { fatal: true });
|
|
@@ -29469,7 +29465,7 @@ var elements = /* @__PURE__ */ __name((node, name, namespace) => {
|
|
|
29469
29465
|
return found;
|
|
29470
29466
|
}, "elements");
|
|
29471
29467
|
|
|
29472
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29468
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/attachments/sheets.js
|
|
29473
29469
|
var columnName = /* @__PURE__ */ __name((column) => {
|
|
29474
29470
|
let name = "";
|
|
29475
29471
|
for (let rest = column; rest > 0; rest = Math.floor((rest - 1) / 26))
|
|
@@ -29524,7 +29520,7 @@ var sheetText = /* @__PURE__ */ __name((sheets2, maxChars = MAX_TEXT_CHARS) => {
|
|
|
29524
29520
|
return { text: parts.join("").trim(), truncated: false };
|
|
29525
29521
|
}, "sheetText");
|
|
29526
29522
|
|
|
29527
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29523
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/attachments/documents.js
|
|
29528
29524
|
var OFFICE = "urn:oasis:names:tc:opendocument:xmlns:office:1.0";
|
|
29529
29525
|
var TEXT = "urn:oasis:names:tc:opendocument:xmlns:text:1.0";
|
|
29530
29526
|
var TABLE = "urn:oasis:names:tc:opendocument:xmlns:table:1.0";
|
|
@@ -29924,10 +29920,10 @@ var readDocument = /* @__PURE__ */ __name(async (bytes2, kind, signal) => {
|
|
|
29924
29920
|
}
|
|
29925
29921
|
}, "readDocument");
|
|
29926
29922
|
|
|
29927
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29923
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/attachments/extract.js
|
|
29928
29924
|
import { extname as extname3 } from "node:path";
|
|
29929
29925
|
|
|
29930
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29926
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/readers/engine.js
|
|
29931
29927
|
import { readFileSync } from "node:fs";
|
|
29932
29928
|
import { dirname as dirname4, extname as extname2, join as join9 } from "node:path";
|
|
29933
29929
|
import { fileURLToPath } from "node:url";
|
|
@@ -29988,7 +29984,7 @@ var derived = /* @__PURE__ */ __name((bytes2, extractor, read2) => {
|
|
|
29988
29984
|
}
|
|
29989
29985
|
}, "derived");
|
|
29990
29986
|
|
|
29991
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29987
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/readers/image/index.js
|
|
29992
29988
|
var IMAGES = /* @__PURE__ */ new Set([".jpg", ".jpeg", ".png", ".webp", ".gif", ".heic", ".tif", ".tiff", ".bmp"]);
|
|
29993
29989
|
var image2 = {
|
|
29994
29990
|
id: "image",
|
|
@@ -29997,7 +29993,7 @@ var image2 = {
|
|
|
29997
29993
|
read: /* @__PURE__ */ __name(async () => ({ status: "needs-agent" }), "read")
|
|
29998
29994
|
};
|
|
29999
29995
|
|
|
30000
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29996
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/readers/doc/index.js
|
|
30001
29997
|
var OLE = "\xD0\xCF\xE0\xA1\xB1\xE1";
|
|
30002
29998
|
var doc = {
|
|
30003
29999
|
id: "doc",
|
|
@@ -30009,7 +30005,7 @@ var doc = {
|
|
|
30009
30005
|
}), "read")
|
|
30010
30006
|
};
|
|
30011
30007
|
|
|
30012
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30008
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/readers/docx/index.js
|
|
30013
30009
|
var DOCX = "application/vnd.openxmlformats-officedocument.wordprocessingml.document";
|
|
30014
30010
|
var docx = {
|
|
30015
30011
|
id: "docx",
|
|
@@ -30022,7 +30018,7 @@ var docx = {
|
|
|
30022
30018
|
}), "read")
|
|
30023
30019
|
};
|
|
30024
30020
|
|
|
30025
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30021
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/attachments/markup.js
|
|
30026
30022
|
var import_iconv_lite2 = __toESM(require_lib3(), 1);
|
|
30027
30023
|
var RTF_SKIPPED = /* @__PURE__ */ new Set([
|
|
30028
30024
|
"fonttbl",
|
|
@@ -30198,7 +30194,7 @@ var htmlText = /* @__PURE__ */ __name((source) => {
|
|
|
30198
30194
|
}, "htmlText");
|
|
30199
30195
|
var safeChar = /* @__PURE__ */ __name((code, fallback) => code > 0 && code <= 1114111 ? String.fromCodePoint(code) : fallback, "safeChar");
|
|
30200
30196
|
|
|
30201
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30197
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/readers/html/page.js
|
|
30202
30198
|
var clean = /* @__PURE__ */ __name((value) => typeof value === "string" ? value.replace(/\s+/g, " ").trim() : "", "clean");
|
|
30203
30199
|
var namesIn = /* @__PURE__ */ __name((value) => [value].flat().map((entry) => typeof entry === "string" ? clean(entry) : clean(entry?.name)).filter(Boolean).join(", "), "namesIn");
|
|
30204
30200
|
var jsonLdNodes = /* @__PURE__ */ __name((document) => {
|
|
@@ -30254,7 +30250,7 @@ var markdownSections = /* @__PURE__ */ __name((text2) => {
|
|
|
30254
30250
|
return found.map((section, index) => ({ ...section, end: found[index + 1]?.start ?? text2.length }));
|
|
30255
30251
|
}, "markdownSections");
|
|
30256
30252
|
|
|
30257
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30253
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/readers/html/index.js
|
|
30258
30254
|
var HTML = /* @__PURE__ */ new Set([".html", ".htm", ".xhtml"]);
|
|
30259
30255
|
var first = /* @__PURE__ */ __name((...values) => values.find((value) => typeof value === "string" && value !== ""), "first");
|
|
30260
30256
|
var loaded = /* @__PURE__ */ __name(async (load, name) => {
|
|
@@ -30325,7 +30321,7 @@ var html = {
|
|
|
30325
30321
|
}, "read")
|
|
30326
30322
|
};
|
|
30327
30323
|
|
|
30328
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30324
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/readers/office/index.js
|
|
30329
30325
|
var office = {
|
|
30330
30326
|
id: "office",
|
|
30331
30327
|
version: documentExtractor("odt"),
|
|
@@ -30336,7 +30332,7 @@ var office = {
|
|
|
30336
30332
|
}, "read")
|
|
30337
30333
|
};
|
|
30338
30334
|
|
|
30339
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30335
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/readers/pdf/index.js
|
|
30340
30336
|
var pdf = {
|
|
30341
30337
|
id: "pdf",
|
|
30342
30338
|
version: "unpdf",
|
|
@@ -30403,7 +30399,7 @@ var pdf = {
|
|
|
30403
30399
|
}), "read")
|
|
30404
30400
|
};
|
|
30405
30401
|
|
|
30406
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30402
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/readers/plain/index.js
|
|
30407
30403
|
var PLAIN = /* @__PURE__ */ new Set([".txt", ".md", ".markdown", ".csv", ".tsv", ".json", ".log"]);
|
|
30408
30404
|
var isPlain = /* @__PURE__ */ __name((hint) => PLAIN.has(extensionOf(hint)) || hint.mime?.startsWith("text/") || hint.mime === "application/json", "isPlain");
|
|
30409
30405
|
var readPlain = /* @__PURE__ */ __name((bytes2) => {
|
|
@@ -30423,7 +30419,7 @@ var plain = {
|
|
|
30423
30419
|
read: /* @__PURE__ */ __name(async (bytes2) => readPlain(bytes2), "read")
|
|
30424
30420
|
};
|
|
30425
30421
|
|
|
30426
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30422
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/readers/rtf/index.js
|
|
30427
30423
|
var rtf = {
|
|
30428
30424
|
id: "rtf",
|
|
30429
30425
|
version: "v1",
|
|
@@ -30431,10 +30427,10 @@ var rtf = {
|
|
|
30431
30427
|
read: /* @__PURE__ */ __name(async (bytes2) => derived(bytes2, "rtf:v1", rtfText), "read")
|
|
30432
30428
|
};
|
|
30433
30429
|
|
|
30434
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30430
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/readers/sheets/index.js
|
|
30435
30431
|
import { basename as basename5 } from "node:path";
|
|
30436
30432
|
|
|
30437
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30433
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/attachments/csv-spans.js
|
|
30438
30434
|
var delimitedSpans = /* @__PURE__ */ __name((text2, delimiter, maxCells = 1e4) => {
|
|
30439
30435
|
const cells = [];
|
|
30440
30436
|
let row = 1, column = 1, start = 0, quoted = false, truncated = false;
|
|
@@ -30472,7 +30468,7 @@ var delimitedSpans = /* @__PURE__ */ __name((text2, delimiter, maxCells = 1e4) =
|
|
|
30472
30468
|
return { cells, truncated };
|
|
30473
30469
|
}, "delimitedSpans");
|
|
30474
30470
|
|
|
30475
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30471
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/readers/sheets/index.js
|
|
30476
30472
|
var DELIMITED = {
|
|
30477
30473
|
".csv": ",",
|
|
30478
30474
|
".tsv": " ",
|
|
@@ -30511,7 +30507,7 @@ var sheets = {
|
|
|
30511
30507
|
}, "read")
|
|
30512
30508
|
};
|
|
30513
30509
|
|
|
30514
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30510
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/readers/registry.js
|
|
30515
30511
|
var BUILT_INS2 = [office, pdf, docx, doc, rtf, html, sheets, plain, image2];
|
|
30516
30512
|
var HEAD_BYTES = 1024;
|
|
30517
30513
|
var readers = [...BUILT_INS2];
|
|
@@ -30521,7 +30517,7 @@ var readWithRegistry = /* @__PURE__ */ __name(async (bytes2, hint, context2) =>
|
|
|
30521
30517
|
return reader ? reader.read(bytes2, hint, context2) : { status: "unsupported" };
|
|
30522
30518
|
}, "readWithRegistry");
|
|
30523
30519
|
|
|
30524
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30520
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/attachments/extract.js
|
|
30525
30521
|
var importEngine = /* @__PURE__ */ __name((name) => importFrom(new URL("attachments/extract.js", import.meta.resolve("@wirecat/cli-core")).href, name), "importEngine");
|
|
30526
30522
|
var extensionOf2 = /* @__PURE__ */ __name(({ name, path }) => extname3(name ?? path).toLowerCase(), "extensionOf");
|
|
30527
30523
|
var extractText = /* @__PURE__ */ __name(async (bytes2, hint, load, signal, env = process.env) => {
|
|
@@ -31600,7 +31596,7 @@ function imageSize(input) {
|
|
|
31600
31596
|
}
|
|
31601
31597
|
__name(imageSize, "imageSize");
|
|
31602
31598
|
|
|
31603
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31599
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/attachments/ocr.js
|
|
31604
31600
|
var MAX_PAGES = 20;
|
|
31605
31601
|
var MAX_PIXELS = 2e7;
|
|
31606
31602
|
var cancelled2 = /* @__PURE__ */ __name((signal) => {
|
|
@@ -31751,7 +31747,7 @@ var ocrPdf = /* @__PURE__ */ __name(async (bytes2, pipeline2, load, signal) => {
|
|
|
31751
31747
|
}
|
|
31752
31748
|
}, "ocrPdf");
|
|
31753
31749
|
|
|
31754
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31750
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/attachments/pdf-preview.js
|
|
31755
31751
|
var pdfPreview = /* @__PURE__ */ __name(async (bytes2, page, signal, load = importEngine, env = process.env) => {
|
|
31756
31752
|
const limits = pdfPreviewLimits(env);
|
|
31757
31753
|
const cancelled4 = /* @__PURE__ */ __name(() => {
|
|
@@ -31828,7 +31824,7 @@ var pdfPreview = /* @__PURE__ */ __name(async (bytes2, page, signal, load = impo
|
|
|
31828
31824
|
}
|
|
31829
31825
|
}, "pdfPreview");
|
|
31830
31826
|
|
|
31831
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31827
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/attachments/transfer.js
|
|
31832
31828
|
import { createHash as createHash8 } from "node:crypto";
|
|
31833
31829
|
import { constants } from "node:fs";
|
|
31834
31830
|
import { lstat as lstat3, open as open5 } from "node:fs/promises";
|
|
@@ -31936,7 +31932,7 @@ var transferMime = /* @__PURE__ */ __name((head, hint, name = null) => {
|
|
|
31936
31932
|
return hint !== null && /^[a-z0-9.+-]+\/[a-z0-9.+-]+$/i.test(hint) ? hint : "application/octet-stream";
|
|
31937
31933
|
}, "transferMime");
|
|
31938
31934
|
|
|
31939
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31935
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/file-download.js
|
|
31940
31936
|
import { createWriteStream, mkdirSync } from "node:fs";
|
|
31941
31937
|
import { link as link3, rm } from "node:fs/promises";
|
|
31942
31938
|
import { join as join10, resolve as resolve6 } from "node:path";
|
|
@@ -32050,7 +32046,7 @@ var save = /* @__PURE__ */ __name(async (file2, directory2, fallbackName, { uniq
|
|
|
32050
32046
|
}
|
|
32051
32047
|
}, "save");
|
|
32052
32048
|
|
|
32053
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32049
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/attachments.js
|
|
32054
32050
|
var ATTACHMENT_QUERY = {
|
|
32055
32051
|
entity: "attachment",
|
|
32056
32052
|
backend: "sql",
|
|
@@ -32473,7 +32469,7 @@ var attachmentsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
32473
32469
|
}, "setText")
|
|
32474
32470
|
}), "attachmentsService");
|
|
32475
32471
|
|
|
32476
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32472
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/chat-documents.js
|
|
32477
32473
|
var chatDocumentsService = /* @__PURE__ */ __name((deps) => ({
|
|
32478
32474
|
list: /* @__PURE__ */ __name(async (chat, { limit, offset, ref }) => {
|
|
32479
32475
|
const store = await accountStore(deps);
|
|
@@ -32503,7 +32499,7 @@ var chatDocumentsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
32503
32499
|
}, "list")
|
|
32504
32500
|
}), "chatDocumentsService");
|
|
32505
32501
|
|
|
32506
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32502
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/retention.js
|
|
32507
32503
|
var observationDuration = /* @__PURE__ */ __name((text2, flag) => {
|
|
32508
32504
|
const match = /^(\d+(?:\.\d+)?)([smhdw])$/.exec(text2);
|
|
32509
32505
|
const units2 = { s: 1e3, m: 6e4, h: 36e5, d: 864e5, w: 6048e5 };
|
|
@@ -32590,7 +32586,7 @@ var isRetentionSelection = /* @__PURE__ */ __name((selection) => {
|
|
|
32590
32586
|
}
|
|
32591
32587
|
}, "isRetentionSelection");
|
|
32592
32588
|
|
|
32593
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32589
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/counters.js
|
|
32594
32590
|
var counterFields = /* @__PURE__ */ __name((text2 = "views,reactions,comments") => {
|
|
32595
32591
|
const fields = text2.split(",").map((one2) => one2.trim());
|
|
32596
32592
|
if (!fields.length || fields.some((one2) => !COUNTER_FIELDS.includes(one2)) || new Set(fields).size !== fields.length)
|
|
@@ -32797,7 +32793,7 @@ var countersService = /* @__PURE__ */ __name((deps) => {
|
|
|
32797
32793
|
};
|
|
32798
32794
|
}, "countersService");
|
|
32799
32795
|
|
|
32800
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32796
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/search-refresh.js
|
|
32801
32797
|
var SYNC_KEY = "messages.sync-first";
|
|
32802
32798
|
var SYNC_BOUNDS = { maxChats: 5, timeMs: 3e4, maxMessages: 500 };
|
|
32803
32799
|
var keyOf2 = /* @__PURE__ */ __name((chat) => JSON.stringify([chat.account.provider, chat.account.account, chat.chatId]), "keyOf");
|
|
@@ -32889,7 +32885,7 @@ var refreshSearch = /* @__PURE__ */ __name(async (deps, request) => {
|
|
|
32889
32885
|
}
|
|
32890
32886
|
try {
|
|
32891
32887
|
const newest = (await store.messages.messages(account, chatId, { limit: 1 })).items[0];
|
|
32892
|
-
let
|
|
32888
|
+
let counted2 = 0;
|
|
32893
32889
|
const fetched = await archiveService(deps).fetch(chatId, {
|
|
32894
32890
|
limit: options.maxMessages - result.messages,
|
|
32895
32891
|
pageSize: Math.min(100, deps.messenger.fetching?.maxPageSize ?? 100),
|
|
@@ -32898,11 +32894,11 @@ var refreshSearch = /* @__PURE__ */ __name(async (deps, request) => {
|
|
|
32898
32894
|
stop,
|
|
32899
32895
|
note: note2,
|
|
32900
32896
|
onPage: /* @__PURE__ */ __name(({ fetched: fetched2 }) => {
|
|
32901
|
-
result.messages += fetched2 -
|
|
32902
|
-
|
|
32897
|
+
result.messages += fetched2 - counted2;
|
|
32898
|
+
counted2 = fetched2;
|
|
32903
32899
|
}, "onPage")
|
|
32904
32900
|
});
|
|
32905
|
-
result.messages += fetched.fetched -
|
|
32901
|
+
result.messages += fetched.fetched - counted2;
|
|
32906
32902
|
if (fetched.stopped || !fetched.complete && !fetched.reachedSince) {
|
|
32907
32903
|
result.complete = false;
|
|
32908
32904
|
result.failed.push({
|
|
@@ -32929,7 +32925,7 @@ var withRefresh = /* @__PURE__ */ __name((found, refreshed) => ({
|
|
|
32929
32925
|
...!refreshed || refreshed.complete ? {} : { coverage: { ...found.coverage, state: "stale" } }
|
|
32930
32926
|
}), "withRefresh");
|
|
32931
32927
|
|
|
32932
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32928
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/embeddings-search.js
|
|
32933
32929
|
var CANDIDATES = 50;
|
|
32934
32930
|
var WORD_HITS = 200;
|
|
32935
32931
|
var RRF_K = 60;
|
|
@@ -33204,13 +33200,13 @@ var meanOf = /* @__PURE__ */ __name((vectors) => {
|
|
|
33204
33200
|
return mean2.map((value) => value / length);
|
|
33205
33201
|
}, "meanOf");
|
|
33206
33202
|
|
|
33207
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33203
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/embeddings.js
|
|
33208
33204
|
var embeddingsService = /* @__PURE__ */ __name((deps) => ({
|
|
33209
33205
|
...embeddingsMaintenance(deps),
|
|
33210
33206
|
...embeddingsSearch(deps)
|
|
33211
33207
|
}), "embeddingsService");
|
|
33212
33208
|
|
|
33213
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33209
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/folders.js
|
|
33214
33210
|
var foldersService = /* @__PURE__ */ __name((deps) => {
|
|
33215
33211
|
const online = /* @__PURE__ */ __name(async (command) => {
|
|
33216
33212
|
if (deps.offline)
|
|
@@ -33351,7 +33347,7 @@ var foldersService = /* @__PURE__ */ __name((deps) => {
|
|
|
33351
33347
|
};
|
|
33352
33348
|
}, "foldersService");
|
|
33353
33349
|
|
|
33354
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33350
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/mentions.js
|
|
33355
33351
|
var REVIEW_COUNT = 500;
|
|
33356
33352
|
var mentionsService = /* @__PURE__ */ __name((deps) => {
|
|
33357
33353
|
const located = /* @__PURE__ */ __name(async () => {
|
|
@@ -33430,7 +33426,7 @@ var mentionsService = /* @__PURE__ */ __name((deps) => {
|
|
|
33430
33426
|
};
|
|
33431
33427
|
}, "mentionsService");
|
|
33432
33428
|
|
|
33433
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33429
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/domain/formatting.js
|
|
33434
33430
|
var invalid3 = /* @__PURE__ */ __name(() => new CliError("validation_error", "the messenger formatter returned invalid text spans"), "invalid");
|
|
33435
33431
|
var validateFormattedText = /* @__PURE__ */ __name((formatted2) => {
|
|
33436
33432
|
const { text: text2, spans } = formatted2;
|
|
@@ -33490,7 +33486,7 @@ var visibleFormattedText = /* @__PURE__ */ __name((formatted2) => {
|
|
|
33490
33486
|
};
|
|
33491
33487
|
}, "visibleFormattedText");
|
|
33492
33488
|
|
|
33493
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33489
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/domain/message-link.js
|
|
33494
33490
|
var fileLinks = /* @__PURE__ */ __name((attachments) => hitFiles(attachments).map(({ position, kind, name }) => ({
|
|
33495
33491
|
position,
|
|
33496
33492
|
kind,
|
|
@@ -33539,7 +33535,7 @@ var validatePermalink = /* @__PURE__ */ __name((link4) => {
|
|
|
33539
33535
|
return { url: link4.url, access: link4.access, reason: link4.reason };
|
|
33540
33536
|
}, "validatePermalink");
|
|
33541
33537
|
|
|
33542
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33538
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/domain/pin-duration.js
|
|
33543
33539
|
var spokenSeconds = /* @__PURE__ */ __name((seconds) => {
|
|
33544
33540
|
if (seconds % 86400 === 0 && seconds > 86400)
|
|
33545
33541
|
return `${seconds / 86400}d`;
|
|
@@ -33571,7 +33567,7 @@ var pinDurationOf = /* @__PURE__ */ __name((value, allowed, flag = "--expire-tim
|
|
|
33571
33567
|
return seconds;
|
|
33572
33568
|
}, "pinDurationOf");
|
|
33573
33569
|
|
|
33574
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33570
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/sends/send-as.js
|
|
33575
33571
|
var sendAsCheck = /* @__PURE__ */ __name((connection, sendAs) => {
|
|
33576
33572
|
if (sendAs === void 0) {
|
|
33577
33573
|
const saved = connection.savedSender?.bind(connection);
|
|
@@ -33596,7 +33592,7 @@ var typedSendAs = /* @__PURE__ */ __name((typed) => {
|
|
|
33596
33592
|
return sendAs;
|
|
33597
33593
|
}, "typedSendAs");
|
|
33598
33594
|
|
|
33599
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33595
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/search/total.js
|
|
33600
33596
|
var TOTAL_CAP = 1e4;
|
|
33601
33597
|
var totalOf = /* @__PURE__ */ __name((count4, shown, hasMore, exact = true) => {
|
|
33602
33598
|
const least = shown + (hasMore ? 1 : 0);
|
|
@@ -33607,7 +33603,7 @@ var totalOf = /* @__PURE__ */ __name((count4, shown, hasMore, exact = true) => {
|
|
|
33607
33603
|
return { value: count4, relation: exact ? "eq" : "gte" };
|
|
33608
33604
|
}, "totalOf");
|
|
33609
33605
|
|
|
33610
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33606
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/search/lucene/meaning-parts.js
|
|
33611
33607
|
var WORD_FIELDS = /* @__PURE__ */ new Set(["text", "exact"]);
|
|
33612
33608
|
var fieldsOfQuery = /* @__PURE__ */ __name((root, everything) => {
|
|
33613
33609
|
let narrows = false;
|
|
@@ -33636,7 +33632,7 @@ var meaningWords = /* @__PURE__ */ __name((root) => {
|
|
|
33636
33632
|
return wanted(root).join(" ").trim();
|
|
33637
33633
|
}, "meaningWords");
|
|
33638
33634
|
|
|
33639
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33635
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/search/question-plan.js
|
|
33640
33636
|
var words3 = /* @__PURE__ */ __name((text2) => normalize(text2).match(/[\p{L}\p{N}]+/gu) ?? [], "words");
|
|
33641
33637
|
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"));
|
|
33642
33638
|
var questionWord = /\b(?:what|which|how|who|where|when|can|could|should)\b|(?:^|\s)(?:сколько|какой|какая|какие|какое|кто|кому|кем|где|когда|как|что|можно|может|могут|ли)(?:\s|$)/iu;
|
|
@@ -33768,7 +33764,7 @@ var questionLookup = /* @__PURE__ */ __name((text2) => {
|
|
|
33768
33764
|
return terms.length ? anyOfTerms(terms, plan.scope) : void 0;
|
|
33769
33765
|
}, "questionLookup");
|
|
33770
33766
|
|
|
33771
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33767
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/messages-combined.js
|
|
33772
33768
|
var COMBINED_DEFAULTS = { candidateDepth: 300, rrfK: 60, rerank: "all", chatCap: 0 };
|
|
33773
33769
|
var tokensOf = /* @__PURE__ */ __name((text2) => normalize(text2).match(/[\p{L}\p{N}\p{Co}\p{M}]+/gu) ?? [], "tokensOf");
|
|
33774
33770
|
var searchCombined = /* @__PURE__ */ __name(async (store, account, request, messenger = {}, options = COMBINED_DEFAULTS) => {
|
|
@@ -33961,7 +33957,7 @@ var signals = /* @__PURE__ */ __name((hit, terms, corrections, execution, mode,
|
|
|
33961
33957
|
return mode === "coverage" ? coverage2 * 4 : mode === "proximity" ? proximity : mode === "phrase" ? phrase : coverage2 * 4 + proximity + phrase;
|
|
33962
33958
|
}, "signals");
|
|
33963
33959
|
|
|
33964
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33960
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/messages-discovery.js
|
|
33965
33961
|
var MEANING_DEPTH = 100;
|
|
33966
33962
|
var RRF_K2 = 60;
|
|
33967
33963
|
var RERANK_DEPTH = 50;
|
|
@@ -34286,7 +34282,7 @@ var mixedWithReranker = /* @__PURE__ */ __name((head, scores) => {
|
|
|
34286
34282
|
})).sort((a, b) => b.mixed - a.mixed).map(({ hit }) => hit);
|
|
34287
34283
|
}, "mixedWithReranker");
|
|
34288
34284
|
|
|
34289
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34285
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/thread-context.js
|
|
34290
34286
|
var THREAD_BOUNDS = { maxHops: 8, maxMessages: 50, maxBytes: 65536, withinMs: 864e5 };
|
|
34291
34287
|
var bytes = /* @__PURE__ */ __name((items, links) => Buffer.byteLength(JSON.stringify({ items, links }), "utf8"), "bytes");
|
|
34292
34288
|
var threadBounds = /* @__PURE__ */ __name((options = {}) => {
|
|
@@ -34485,7 +34481,7 @@ var readThreadContext = /* @__PURE__ */ __name(async (store, account, chat, mess
|
|
|
34485
34481
|
return result;
|
|
34486
34482
|
}, "readThreadContext");
|
|
34487
34483
|
|
|
34488
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34484
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/messages-archive-search.js
|
|
34489
34485
|
var SEARCH_FILL_MS = 200;
|
|
34490
34486
|
var statsStore = /* @__PURE__ */ __name(async (store, account, request, messenger = {}) => {
|
|
34491
34487
|
const stop = Date.now() + SEARCH_FILL_MS;
|
|
@@ -34552,12 +34548,12 @@ var accountOf2 = /* @__PURE__ */ __name((hit) => {
|
|
|
34552
34548
|
}, "accountOf");
|
|
34553
34549
|
var keyOf3 = /* @__PURE__ */ __name(({ provider, account }) => `${provider}/${account}`, "keyOf");
|
|
34554
34550
|
|
|
34555
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34551
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/pictures.js
|
|
34556
34552
|
import { createHash as createHash10 } from "node:crypto";
|
|
34557
34553
|
import { readFile as readFile2, stat as stat3 } from "node:fs/promises";
|
|
34558
34554
|
import { setTimeout as sleep4 } from "node:timers/promises";
|
|
34559
34555
|
|
|
34560
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34556
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/domain/models.js
|
|
34561
34557
|
var GROUP_SETTINGS = [
|
|
34562
34558
|
"allCanPin",
|
|
34563
34559
|
"onlyAdminsAdd",
|
|
@@ -34571,7 +34567,7 @@ var ADMIN_RIGHTS = ["read", "members", "admins", "info", "pin", "link", "post",
|
|
|
34571
34567
|
var senderIsMe = /* @__PURE__ */ __name((message, account) => message.outgoing === true || message.senderId !== null && String(message.senderId) === account, "senderIsMe");
|
|
34572
34568
|
var MEDIA_KINDS = ["photo", "video", "file", "audio", "link"];
|
|
34573
34569
|
|
|
34574
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34570
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/pictures.js
|
|
34575
34571
|
var PICTURE_MAX_BYTES = 25 * 1024 * 1024;
|
|
34576
34572
|
var PICTURE_FLOOR = 0.25;
|
|
34577
34573
|
var PAGE4 = 50;
|
|
@@ -34588,7 +34584,7 @@ var picturesService = /* @__PURE__ */ __name((deps) => {
|
|
|
34588
34584
|
const directory2 = imageModelsDirectory(deps.env);
|
|
34589
34585
|
if (!isImageModelInstalled(model2, directory2))
|
|
34590
34586
|
throw new CliError("not_found", missingModel(model2.id), { reason: "model.not-downloaded", model: model2.id });
|
|
34591
|
-
const { openPictureEmbedder } = await import("./embedder-
|
|
34587
|
+
const { openPictureEmbedder } = await import("./embedder-XG344VNB.js");
|
|
34592
34588
|
return openPictureEmbedder(model2, directory2);
|
|
34593
34589
|
}, "open");
|
|
34594
34590
|
const embedder = /* @__PURE__ */ __name(() => {
|
|
@@ -34785,7 +34781,7 @@ var withPictures = /* @__PURE__ */ __name((messages, pictures) => ({
|
|
|
34785
34781
|
}, "search")
|
|
34786
34782
|
}), "withPictures");
|
|
34787
34783
|
|
|
34788
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34784
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/messages-meaning.js
|
|
34789
34785
|
var meaningLane = /* @__PURE__ */ __name((deps) => async (question, accounts, shared, within) => {
|
|
34790
34786
|
const target2 = embeddingTarget(deps, DEFAULT_TEXT_MODEL);
|
|
34791
34787
|
const skipped = /* @__PURE__ */ __name((reason, step) => ({
|
|
@@ -34853,7 +34849,7 @@ var meaningLane = /* @__PURE__ */ __name((deps) => async (question, accounts, sh
|
|
|
34853
34849
|
}
|
|
34854
34850
|
}, "meaningLane");
|
|
34855
34851
|
|
|
34856
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34852
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/messages-rerank.js
|
|
34857
34853
|
var rerankLane = /* @__PURE__ */ __name((deps) => {
|
|
34858
34854
|
const choice = deps.reranker ?? DEFAULT_RERANK_MODEL;
|
|
34859
34855
|
if (choice === "off")
|
|
@@ -34865,9 +34861,9 @@ var rerankLane = /* @__PURE__ */ __name((deps) => {
|
|
|
34865
34861
|
return { skipped: { reason: `${model.id} is not downloaded`, step: "models.download", model: model.id } };
|
|
34866
34862
|
try {
|
|
34867
34863
|
const warm = deps.embedders;
|
|
34868
|
-
const reranker = warm ? await warm.reranker(`rerank:${model.id}`, async () => (await import("./process-
|
|
34864
|
+
const reranker = warm ? await warm.reranker(`rerank:${model.id}`, async () => (await import("./process-NRZZD4IS.js")).openRerankerProcess(model, directory2, {
|
|
34869
34865
|
threads: defaultThreads()
|
|
34870
|
-
})) : await (await import("./rerank-
|
|
34866
|
+
})) : await (await import("./rerank-RRLNQ5C2.js")).openReranker(model, directory2);
|
|
34871
34867
|
return {
|
|
34872
34868
|
model: model.id,
|
|
34873
34869
|
score: /* @__PURE__ */ __name((question, passages) => reranker.score(plainWords(question), passages), "score"),
|
|
@@ -34887,17 +34883,17 @@ var rerankLane = /* @__PURE__ */ __name((deps) => {
|
|
|
34887
34883
|
};
|
|
34888
34884
|
}, "rerankLane");
|
|
34889
34885
|
|
|
34890
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34886
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/document-pictures.js
|
|
34891
34887
|
var openPictureEmbedderFor = /* @__PURE__ */ __name(async ({ env, command } = {}) => {
|
|
34892
34888
|
const model = imageModel(DEFAULT_IMAGE_MODEL);
|
|
34893
34889
|
const directory2 = imageModelsDirectory(env);
|
|
34894
34890
|
if (!isImageModelInstalled(model, directory2))
|
|
34895
34891
|
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 });
|
|
34896
|
-
const { openPictureEmbedder } = await import("./embedder-
|
|
34892
|
+
const { openPictureEmbedder } = await import("./embedder-XG344VNB.js");
|
|
34897
34893
|
return openPictureEmbedder(model, directory2);
|
|
34898
34894
|
}, "openPictureEmbedderFor");
|
|
34899
34895
|
|
|
34900
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34896
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/document-source.js
|
|
34901
34897
|
var documentSource = /* @__PURE__ */ __name((note2, accounts, profiles, file2) => {
|
|
34902
34898
|
const metadata = note2.frontMatter;
|
|
34903
34899
|
const account = accounts.find(({ id: id2 }) => String(id2) === note2.folderId);
|
|
@@ -34912,7 +34908,7 @@ var documentSource = /* @__PURE__ */ __name((note2, accounts, profiles, file2) =
|
|
|
34912
34908
|
};
|
|
34913
34909
|
}, "documentSource");
|
|
34914
34910
|
|
|
34915
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34911
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/notes-title-tier.js
|
|
34916
34912
|
var plainQueryWords = /* @__PURE__ */ __name((query) => {
|
|
34917
34913
|
let root;
|
|
34918
34914
|
try {
|
|
@@ -34939,7 +34935,7 @@ var titleTiers = /* @__PURE__ */ __name((hits, words4) => {
|
|
|
34939
34935
|
return [...hits].sort((a, b) => rank(a) - rank(b));
|
|
34940
34936
|
}, "titleTiers");
|
|
34941
34937
|
|
|
34942
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34938
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/notes-search.js
|
|
34943
34939
|
var storeQuery = /* @__PURE__ */ __name(async (store, text2, { exact, timezone } = {}) => resolvedQuery(store, parsedQuery(text2, exact), timezone), "storeQuery");
|
|
34944
34940
|
var parsedQuery = /* @__PURE__ */ __name((text2, exact) => validateFields(parseLucene(text2, { ...SEARCH_QUERY, defaultField: exact ? "exact" : "text" })).root, "parsedQuery");
|
|
34945
34941
|
var resolvedQuery = /* @__PURE__ */ __name(async (store, root, timezone) => {
|
|
@@ -35244,13 +35240,13 @@ var searchNotes = /* @__PURE__ */ __name(async (store, query, { limit = 20, offs
|
|
|
35244
35240
|
meaningSkipped = error.message;
|
|
35245
35241
|
}
|
|
35246
35242
|
}
|
|
35247
|
-
const
|
|
35248
|
-
const titled =
|
|
35249
|
-
text: [titleQuery(
|
|
35243
|
+
const titleWords2 = plainQueryWords(rest);
|
|
35244
|
+
const titled = titleWords2 === void 0 ? { items: [], hasMore: false } : await searchNotesQuery(store, {
|
|
35245
|
+
text: [titleQuery(titleWords2), filter ?? ""].filter(Boolean).join(" AND "),
|
|
35250
35246
|
limit: Math.max(window3, CANDIDATES2),
|
|
35251
35247
|
...scope
|
|
35252
35248
|
});
|
|
35253
|
-
const tier =
|
|
35249
|
+
const tier = titleWords2 === void 0 ? [] : titleTiers(titled.items, titleWords2);
|
|
35254
35250
|
const tierRefs = new Set(tier.map(({ ref }) => ref));
|
|
35255
35251
|
const slice = meaning === void 0 && tier.length === 0;
|
|
35256
35252
|
const matched = await searchNotesQuery(store, {
|
|
@@ -35382,7 +35378,7 @@ var searchNotesOf = /* @__PURE__ */ __name(async (store, account, text2, { accou
|
|
|
35382
35378
|
};
|
|
35383
35379
|
}, "searchNotesOf");
|
|
35384
35380
|
|
|
35385
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35381
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/events-search.js
|
|
35386
35382
|
var MAX_EVENTS_OFFSET = 1e3;
|
|
35387
35383
|
var iso3 = /* @__PURE__ */ __name((at) => at === null ? null : new Date(at).toISOString(), "iso");
|
|
35388
35384
|
var accountIdsOf = /* @__PURE__ */ __name(async (store, accounts) => {
|
|
@@ -35499,8 +35495,8 @@ var searchEvents = /* @__PURE__ */ __name(async (store, query, { limit = 20, off
|
|
|
35499
35495
|
};
|
|
35500
35496
|
}, "searchEvents");
|
|
35501
35497
|
|
|
35502
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35503
|
-
var RESOURCES_SEARCHED = ["messages", "mail", "notes", "events"];
|
|
35498
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/search-all.js
|
|
35499
|
+
var RESOURCES_SEARCHED = ["messages", "mail", "notes", "events", "crm"];
|
|
35504
35500
|
var skippable = /* @__PURE__ */ __name((error) => error instanceof CliError && (error.code === "validation_error" || error.code === "not_found"), "skippable");
|
|
35505
35501
|
var filtersBeside = /* @__PURE__ */ __name((text2) => {
|
|
35506
35502
|
const { root } = parseLucene(text2, MESSAGE_PARSING);
|
|
@@ -35508,6 +35504,15 @@ var filtersBeside = /* @__PURE__ */ __name((text2) => {
|
|
|
35508
35504
|
const top = root.kind === "boolean" ? root.clauses : [{ node: root, occur: "must" }];
|
|
35509
35505
|
return top.every(({ node, occur }) => occur !== "must_not" && followable(node, occur === "must")) ? planQuestion(text2).scope : void 0;
|
|
35510
35506
|
}, "filtersBeside");
|
|
35507
|
+
var titleWords = /* @__PURE__ */ __name((text2) => {
|
|
35508
|
+
const { root } = parseLucene(text2, SEARCH_QUERY);
|
|
35509
|
+
const clauses = root.kind === "boolean" ? root.clauses : [{ node: root, occur: "must" }];
|
|
35510
|
+
const words4 = clauses.map(({ node, occur }) => occur !== "must_not" && node.kind === "predicate" && node.field === "text" && (node.operator === "term" || node.operator === "phrase") ? node.value : (() => {
|
|
35511
|
+
throw new CliError("validation_error", "deals and leads are found by the words of their title only");
|
|
35512
|
+
})());
|
|
35513
|
+
return { words: words4, anyWord: clauses.length > 1 && clauses.every(({ occur }) => occur === "should") };
|
|
35514
|
+
}, "titleWords");
|
|
35515
|
+
var crmAccounts = /* @__PURE__ */ __name(async (store) => (await store.accounts.accounts()).filter(({ provider }) => kindIn(provider) === "crm"), "crmAccounts");
|
|
35511
35516
|
var searchAll = /* @__PURE__ */ __name(async (store, account, request, messenger = {}, searchMessages = (query) => searchStore(store, account, query, messenger), meaning) => {
|
|
35512
35517
|
if (!request.text.trim())
|
|
35513
35518
|
throw new CliError("validation_error", "say what to find");
|
|
@@ -35686,6 +35691,29 @@ var searchAll = /* @__PURE__ */ __name(async (store, account, request, messenger
|
|
|
35686
35691
|
foundBy: hit.found_by
|
|
35687
35692
|
})));
|
|
35688
35693
|
accounts.push(...read2.map(({ provider, account: account2 }) => ({ resource, provider, account: account2 })));
|
|
35694
|
+
} else if (resource === "crm") {
|
|
35695
|
+
const { words: words4, anyWord } = titleWords(request.text);
|
|
35696
|
+
const chosen = request.scope?.crm;
|
|
35697
|
+
const found = await store.deals.find({
|
|
35698
|
+
words: words4,
|
|
35699
|
+
anyWord: anyWord || discover,
|
|
35700
|
+
limit: Math.min(window3 + 1, 500),
|
|
35701
|
+
...chosen === void 0 ? {} : { accounts: chosen }
|
|
35702
|
+
});
|
|
35703
|
+
hasMore ||= found.length > window3;
|
|
35704
|
+
lists.push(found.slice(0, window3).map((deal) => ({
|
|
35705
|
+
kind: deal.kind,
|
|
35706
|
+
ref: deal.ref,
|
|
35707
|
+
provider: deal.account?.provider ?? "crm",
|
|
35708
|
+
account: deal.account?.account ?? INTERNAL_NOTES,
|
|
35709
|
+
title: deal.title,
|
|
35710
|
+
timestamp: deal.updatedAt,
|
|
35711
|
+
text: deal.summary,
|
|
35712
|
+
foundBy: ["title"]
|
|
35713
|
+
})));
|
|
35714
|
+
const read2 = chosen ?? [...await crmAccounts(store), { provider: "crm", account: INTERNAL_NOTES }];
|
|
35715
|
+
for (const { provider, account: account2 } of read2)
|
|
35716
|
+
accounts.push({ resource, provider, account: account2 });
|
|
35689
35717
|
} else
|
|
35690
35718
|
lists.push(await messagesOf(resource));
|
|
35691
35719
|
searched.push(resource);
|
|
@@ -35728,7 +35756,7 @@ var oneList = /* @__PURE__ */ __name((lists, cosines) => {
|
|
|
35728
35756
|
return [...place.values()].sort((a, b) => a.rank - b.rank || cosine(b.item.ref) - cosine(a.item.ref)).map(({ item: item2 }) => item2);
|
|
35729
35757
|
}, "oneList");
|
|
35730
35758
|
|
|
35731
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35759
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/search-all-meetings.js
|
|
35732
35760
|
var RESOURCES_SEARCHED_WITH_MEETINGS = [...RESOURCES_SEARCHED, "meetings"];
|
|
35733
35761
|
var whole2 = /* @__PURE__ */ __name((value, minimum, maximum, label) => {
|
|
35734
35762
|
if (!Number.isSafeInteger(value) || value < minimum || value > maximum)
|
|
@@ -35973,7 +36001,8 @@ var searchAllOfSource = /* @__PURE__ */ __name(async (store, account, source, re
|
|
|
35973
36001
|
messages: named2("messages"),
|
|
35974
36002
|
mail: named2("mail"),
|
|
35975
36003
|
notes: named2("notes"),
|
|
35976
|
-
events: named2("events")
|
|
36004
|
+
events: named2("events"),
|
|
36005
|
+
crm: named2("crm")
|
|
35977
36006
|
},
|
|
35978
36007
|
...meetings[0] ? { meetingAccount: meetings[0] } : {}
|
|
35979
36008
|
}, messenger, searchMessages, meaning);
|
|
@@ -35981,7 +36010,7 @@ var searchAllOfSource = /* @__PURE__ */ __name(async (store, account, source, re
|
|
|
35981
36010
|
return { ...found, skipped: [...skipped, ...empty2, ...unnamed, ...found.skipped] };
|
|
35982
36011
|
}, "searchAllOfSource");
|
|
35983
36012
|
|
|
35984
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36013
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/server-search.js
|
|
35985
36014
|
var SERVER_SEARCH_KEY = "messages.server-search";
|
|
35986
36015
|
var SERVER_BOUNDS = { timeMs: 5e3, perCall: 100, maxCalls: 3, textBytes: 262144 };
|
|
35987
36016
|
var DEFAULT_BACKEND = "both";
|
|
@@ -36170,7 +36199,7 @@ var searchServer = /* @__PURE__ */ __name(async (deps, request) => {
|
|
|
36170
36199
|
return { report, sources };
|
|
36171
36200
|
}, "searchServer");
|
|
36172
36201
|
|
|
36173
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36202
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/messages.js
|
|
36174
36203
|
var DELETE_AT_ONCE = 10;
|
|
36175
36204
|
var filesOf = /* @__PURE__ */ __name(({ attachments }) => {
|
|
36176
36205
|
const files = fileLinks(attachments);
|
|
@@ -36611,7 +36640,7 @@ var checkMediaOptions = /* @__PURE__ */ __name((messenger, asked, attachments) =
|
|
|
36611
36640
|
throw new CliError("validation_error", `${MEDIA_FLAGS[first2]} needs a --photo or --file`);
|
|
36612
36641
|
}, "checkMediaOptions");
|
|
36613
36642
|
|
|
36614
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36643
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/domain/channel-tags.js
|
|
36615
36644
|
var CHANNEL_TAG_RULES_VERSION = "keywords-v1";
|
|
36616
36645
|
var RULES = {
|
|
36617
36646
|
ai: [/\b(ai|gpt|llm|machine learning|artificial intelligence)\b/iu, /нейросет|искусственн/iu],
|
|
@@ -36626,7 +36655,7 @@ var classifyChannel = /* @__PURE__ */ __name((metadata) => Object.entries(RULES)
|
|
|
36626
36655
|
return fields.length ? [{ tag, score: fields.length / 3, fields }] : [];
|
|
36627
36656
|
}), "classifyChannel");
|
|
36628
36657
|
|
|
36629
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36658
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/metadata.js
|
|
36630
36659
|
var metadataService = /* @__PURE__ */ __name((deps) => {
|
|
36631
36660
|
const held = /* @__PURE__ */ __name(async (reference, { includeLeft = false } = {}) => {
|
|
36632
36661
|
const store = await deps.store();
|
|
@@ -36712,7 +36741,7 @@ var metadataService = /* @__PURE__ */ __name((deps) => {
|
|
|
36712
36741
|
};
|
|
36713
36742
|
}, "metadataService");
|
|
36714
36743
|
|
|
36715
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36744
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/moderation/check.js
|
|
36716
36745
|
var INVITE = /max\.ru\/join\/|(t|telegram)\.me\/(\+|joinchat\/)|tg:\/\/join/i;
|
|
36717
36746
|
var LINK2 = /https?:\/\/\S+/i;
|
|
36718
36747
|
var STRENGTH = { report: 0, delete: 1, remove: 2 };
|
|
@@ -36900,7 +36929,7 @@ var nextPoint = /* @__PURE__ */ __name((rows, found) => {
|
|
|
36900
36929
|
}, "nextPoint");
|
|
36901
36930
|
var someUndone = /* @__PURE__ */ __name((rows) => rows.some(undone), "someUndone");
|
|
36902
36931
|
|
|
36903
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36932
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/moderation/rules.js
|
|
36904
36933
|
import { existsSync, readFileSync as readFileSync2 } from "node:fs";
|
|
36905
36934
|
import { join as join11 } from "node:path";
|
|
36906
36935
|
var RULE_ACTIONS = ["report", "delete", "remove"];
|
|
@@ -37043,7 +37072,7 @@ var assign = /* @__PURE__ */ __name((rules, key, value) => {
|
|
|
37043
37072
|
return { ...rules, [head]: { ...rules[head], [tail]: value } };
|
|
37044
37073
|
}, "assign");
|
|
37045
37074
|
|
|
37046
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37075
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/moderation/run.js
|
|
37047
37076
|
var FIRST_LOOK_MS = 24 * 36e5;
|
|
37048
37077
|
var moderateWith = /* @__PURE__ */ __name(async (run) => {
|
|
37049
37078
|
const { chatId, title, rules, point, since, dryRun } = run;
|
|
@@ -37080,7 +37109,7 @@ var moderateWith = /* @__PURE__ */ __name(async (run) => {
|
|
|
37080
37109
|
return { chatId, rows, notes };
|
|
37081
37110
|
}, "moderateWith");
|
|
37082
37111
|
|
|
37083
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37112
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/moderation.js
|
|
37084
37113
|
var moderationService = /* @__PURE__ */ __name((deps) => {
|
|
37085
37114
|
const file2 = /* @__PURE__ */ __name(() => new ModerationRules(moderationPathFor(deps.messenger.app, deps.profile ?? "default", deps.env ?? process.env)), "file");
|
|
37086
37115
|
const group = /* @__PURE__ */ __name(async (chat) => {
|
|
@@ -37158,7 +37187,7 @@ var moderatorOf = /* @__PURE__ */ __name((adapter, deps) => ({
|
|
|
37158
37187
|
}, "removePerson")
|
|
37159
37188
|
}), "moderatorOf");
|
|
37160
37189
|
|
|
37161
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37190
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/private-people.js
|
|
37162
37191
|
var noteItem = /* @__PURE__ */ __name((provider, note2) => ({
|
|
37163
37192
|
id: note2.id,
|
|
37164
37193
|
contact: formatReference({ type: "contact", provider, id: note2.personId }),
|
|
@@ -37202,7 +37231,7 @@ var privatePeopleService = /* @__PURE__ */ __name((deps) => {
|
|
|
37202
37231
|
};
|
|
37203
37232
|
}, "privatePeopleService");
|
|
37204
37233
|
|
|
37205
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37234
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/rankings.js
|
|
37206
37235
|
var empty = /* @__PURE__ */ __name(() => ({
|
|
37207
37236
|
total: 0,
|
|
37208
37237
|
population: 0,
|
|
@@ -37458,7 +37487,7 @@ var rankingsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
37458
37487
|
}, "evidence")
|
|
37459
37488
|
}), "rankingsService");
|
|
37460
37489
|
|
|
37461
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37490
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/reply-stats.js
|
|
37462
37491
|
var FIELDS = ["date", "chat", "kind"];
|
|
37463
37492
|
var WAITING_TAIL = 100;
|
|
37464
37493
|
var plainOnly = /* @__PURE__ */ __name((text2, command) => {
|
|
@@ -37585,7 +37614,7 @@ var replyStatsService = /* @__PURE__ */ __name((deps) => {
|
|
|
37585
37614
|
};
|
|
37586
37615
|
}, "replyStatsService");
|
|
37587
37616
|
|
|
37588
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37617
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/searches.js
|
|
37589
37618
|
var savedSearchItem = /* @__PURE__ */ __name((one2) => ({
|
|
37590
37619
|
id: one2.id,
|
|
37591
37620
|
name: one2.name,
|
|
@@ -37714,7 +37743,7 @@ var searchesService = /* @__PURE__ */ __name((deps) => {
|
|
|
37714
37743
|
};
|
|
37715
37744
|
}, "searchesService");
|
|
37716
37745
|
|
|
37717
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37746
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/tags.js
|
|
37718
37747
|
var TAGGING_QUERY = {
|
|
37719
37748
|
entity: "tagging",
|
|
37720
37749
|
backend: "sql",
|
|
@@ -37798,7 +37827,7 @@ var tagsService = /* @__PURE__ */ __name((deps) => {
|
|
|
37798
37827
|
};
|
|
37799
37828
|
}, "tagsService");
|
|
37800
37829
|
|
|
37801
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37830
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/topics.js
|
|
37802
37831
|
var actionOf = /* @__PURE__ */ __name(({ title, closed, pinned, hidden, icon }) => {
|
|
37803
37832
|
const set = [closed, pinned, hidden].filter((one2) => one2 !== void 0).length;
|
|
37804
37833
|
if (title !== void 0 || icon !== void 0 || set !== 1)
|
|
@@ -37997,7 +38026,7 @@ var topicsService = /* @__PURE__ */ __name((deps) => {
|
|
|
37997
38026
|
};
|
|
37998
38027
|
}, "topicsService");
|
|
37999
38028
|
|
|
38000
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38029
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/evidence.js
|
|
38001
38030
|
import { createHash as createHash11, randomUUID as randomUUID5 } from "node:crypto";
|
|
38002
38031
|
var hash2 = /* @__PURE__ */ __name((value) => createHash11("sha256").update(JSON.stringify(value)).digest("hex"), "hash");
|
|
38003
38032
|
var positive = /* @__PURE__ */ __name((value, name, minimum = 1) => {
|
|
@@ -38071,7 +38100,7 @@ var prepareEvidencePacket = /* @__PURE__ */ __name(({ kind, source, page, limits
|
|
|
38071
38100
|
return { ...content, id: randomUUID5(), fingerprint: hash2(content) };
|
|
38072
38101
|
}, "prepareEvidencePacket");
|
|
38073
38102
|
|
|
38074
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38103
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/evidence-read.js
|
|
38075
38104
|
var readEvidencePacket = /* @__PURE__ */ __name(async (store, account, { chat, limit, before: before2 }, messenger = {}) => {
|
|
38076
38105
|
if (!Number.isSafeInteger(limit) || limit < 1 || limit > 100)
|
|
38077
38106
|
throw new CliError("validation_error", "evidence message limit must be an integer from 1 to 100");
|
|
@@ -38091,7 +38120,7 @@ var readEvidencePacket = /* @__PURE__ */ __name(async (store, account, { chat, l
|
|
|
38091
38120
|
return { ...packet, nextBeforeId: older && last ? last.id : null };
|
|
38092
38121
|
}, "readEvidencePacket");
|
|
38093
38122
|
|
|
38094
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38123
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/meeting-hit-search.js
|
|
38095
38124
|
var refreshMeetingIndex = /* @__PURE__ */ __name(async (meetings, accountId, signal) => {
|
|
38096
38125
|
let before2 = Number.POSITIVE_INFINITY;
|
|
38097
38126
|
for (; ; ) {
|
|
@@ -38153,7 +38182,7 @@ var searchMeetingHits = /* @__PURE__ */ __name(async (store, query, request, opt
|
|
|
38153
38182
|
return { ...result, selection };
|
|
38154
38183
|
}, "searchMeetingHits");
|
|
38155
38184
|
|
|
38156
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38185
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/meeting-project-discovery.js
|
|
38157
38186
|
import { createHash as createHash12 } from "node:crypto";
|
|
38158
38187
|
var scopeKeys = [
|
|
38159
38188
|
"accountId",
|
|
@@ -38288,7 +38317,7 @@ var readMeetingProjectDiscovery = /* @__PURE__ */ __name(async (ports, projectNa
|
|
|
38288
38317
|
};
|
|
38289
38318
|
}, "readMeetingProjectDiscovery");
|
|
38290
38319
|
|
|
38291
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38320
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/meeting-hit-context.js
|
|
38292
38321
|
import { createHash as createHash13 } from "node:crypto";
|
|
38293
38322
|
var contextCue = /* @__PURE__ */ __name((cue) => ({
|
|
38294
38323
|
ref: cue.reference,
|
|
@@ -38406,7 +38435,7 @@ var readMeetingHitContext = /* @__PURE__ */ __name(async (store, accountId, refe
|
|
|
38406
38435
|
return { ...packet, fingerprint: createHash13("sha256").update(JSON.stringify(packet)).digest("hex") };
|
|
38407
38436
|
}, "readMeetingHitContext");
|
|
38408
38437
|
|
|
38409
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38438
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/meeting-passage-format.js
|
|
38410
38439
|
var visible = /* @__PURE__ */ __name((text2) => text2.replace(/[\p{Cc}\p{Cf}]/gu, (value) => value === "\n" || value === " " ? value : `\\u{${value.codePointAt(0)?.toString(16)}}`), "visible");
|
|
38411
38440
|
var markdown = /* @__PURE__ */ __name((text2) => visible(text2).replaceAll("&", "&").replaceAll("<", "<").replaceAll(">", ">").replace(/[\\`*_[\]#|~]/g, "\\$&"), "markdown");
|
|
38412
38441
|
var timestamp = /* @__PURE__ */ __name((ms) => {
|
|
@@ -38482,7 +38511,7 @@ var readMeetingPassage = /* @__PURE__ */ __name(async (store, accountId, referen
|
|
|
38482
38511
|
return { packet, content };
|
|
38483
38512
|
}, "readMeetingPassage");
|
|
38484
38513
|
|
|
38485
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38514
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/context/communication-selection.js
|
|
38486
38515
|
var communicationFields = {
|
|
38487
38516
|
sources: pipe(array(strictObject({
|
|
38488
38517
|
id: pipe(string(), regex(/^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$/)),
|
|
@@ -38514,7 +38543,7 @@ var communicationRequest = /* @__PURE__ */ __name((value, preparationAfter) => {
|
|
|
38514
38543
|
return { ...input, after, before: before2 };
|
|
38515
38544
|
}, "communicationRequest");
|
|
38516
38545
|
|
|
38517
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38546
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/meeting-preparation-validation.js
|
|
38518
38547
|
var MEETING_PREPARATION_LIMITS = {
|
|
38519
38548
|
meetings: { min: 1, max: 20, default: 5 },
|
|
38520
38549
|
cues: { min: 1, max: 100, default: 10 },
|
|
@@ -38600,7 +38629,7 @@ var preparationRequest = /* @__PURE__ */ __name((accountId, externalId, original
|
|
|
38600
38629
|
return { ...input, history };
|
|
38601
38630
|
}, "preparationRequest");
|
|
38602
38631
|
|
|
38603
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38632
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/meeting-communications-preparation.js
|
|
38604
38633
|
var readPreparationCommunications = /* @__PURE__ */ __name(async (plan, signal) => {
|
|
38605
38634
|
const section = {
|
|
38606
38635
|
readUsage: plan.reader.usage(),
|
|
@@ -38705,7 +38734,7 @@ var appendPreparationCommunications = /* @__PURE__ */ __name((result, read2) =>
|
|
|
38705
38734
|
result.knowledge.coverage.otherSources = "see-communications";
|
|
38706
38735
|
}, "appendPreparationCommunications");
|
|
38707
38736
|
|
|
38708
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38737
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/meeting-communications-selection.js
|
|
38709
38738
|
var captureCommunicationSelections = /* @__PURE__ */ __name((port) => {
|
|
38710
38739
|
if (port === void 0)
|
|
38711
38740
|
return void 0;
|
|
@@ -38810,7 +38839,7 @@ var validatePreparationCommunications = /* @__PURE__ */ __name((section, request
|
|
|
38810
38839
|
}
|
|
38811
38840
|
}, "validatePreparationCommunications");
|
|
38812
38841
|
|
|
38813
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38842
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/meeting-knowledge-preparation.js
|
|
38814
38843
|
var invalid5 = /* @__PURE__ */ __name(() => {
|
|
38815
38844
|
throw new CliError("invalid_response", "Preparation knowledge returned an invalid selection");
|
|
38816
38845
|
}, "invalid");
|
|
@@ -38879,7 +38908,7 @@ var appendKnowledgePreparation = /* @__PURE__ */ __name(async (store, result, in
|
|
|
38879
38908
|
}
|
|
38880
38909
|
}, "appendKnowledgePreparation");
|
|
38881
38910
|
|
|
38882
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38911
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/meeting-notes-preparation.js
|
|
38883
38912
|
var invalid6 = /* @__PURE__ */ __name(() => {
|
|
38884
38913
|
throw new CliError("invalid_response", "Preparation notes returned an invalid selection");
|
|
38885
38914
|
}, "invalid");
|
|
@@ -38953,7 +38982,7 @@ var appendNotesPreparation = /* @__PURE__ */ __name(async (store, result, input)
|
|
|
38953
38982
|
}
|
|
38954
38983
|
}, "appendNotesPreparation");
|
|
38955
38984
|
|
|
38956
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38985
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/meeting-project-preparation.js
|
|
38957
38986
|
var PAGE_LIMIT = 4;
|
|
38958
38987
|
var size2 = /* @__PURE__ */ __name((value) => Buffer.byteLength(JSON.stringify(value), "utf8"), "size");
|
|
38959
38988
|
var appendProjectPreparation = /* @__PURE__ */ __name(async (ports, result, input) => {
|
|
@@ -39003,7 +39032,7 @@ var appendProjectPreparation = /* @__PURE__ */ __name(async (ports, result, inpu
|
|
|
39003
39032
|
}
|
|
39004
39033
|
}, "appendProjectPreparation");
|
|
39005
39034
|
|
|
39006
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39035
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/meeting-related-preparation.js
|
|
39007
39036
|
var appendRelatedPreparation = /* @__PURE__ */ __name(async (store, result, input) => {
|
|
39008
39037
|
if (!result.series || !result.items.length || result.coverage.outputLimited)
|
|
39009
39038
|
return;
|
|
@@ -39075,7 +39104,7 @@ var appendRelatedPreparation = /* @__PURE__ */ __name(async (store, result, inpu
|
|
|
39075
39104
|
}
|
|
39076
39105
|
}, "appendRelatedPreparation");
|
|
39077
39106
|
|
|
39078
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39107
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/meeting-preparation.js
|
|
39079
39108
|
var size3 = /* @__PURE__ */ __name((value) => Buffer.byteLength(JSON.stringify(value), "utf8"), "size");
|
|
39080
39109
|
var createMeetingPreparationService = /* @__PURE__ */ __name((scope, accountId, ports) => {
|
|
39081
39110
|
const fixed = snapshotMeetingScope(scope);
|
|
@@ -39213,7 +39242,7 @@ var createMeetingPreparationService = /* @__PURE__ */ __name((scope, accountId,
|
|
|
39213
39242
|
};
|
|
39214
39243
|
}, "createMeetingPreparationService");
|
|
39215
39244
|
|
|
39216
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39245
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/package-upgrade.js
|
|
39217
39246
|
var upgradePackage = /* @__PURE__ */ __name(async ({ current, command, packageName, check: check2 }, ports) => {
|
|
39218
39247
|
const installer = ports.installer();
|
|
39219
39248
|
const argv = updateCommand(installer, packageName);
|
|
@@ -39278,7 +39307,7 @@ var dayAfter = /* @__PURE__ */ __name((published) => {
|
|
|
39278
39307
|
return Number.isNaN(time) ? null : new Date(time + 24 * 60 * 60 * 1e3).toISOString();
|
|
39279
39308
|
}, "dayAfter");
|
|
39280
39309
|
|
|
39281
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39310
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/index.js
|
|
39282
39311
|
var servicesFor = /* @__PURE__ */ __name((deps) => {
|
|
39283
39312
|
const pictures = picturesService(deps);
|
|
39284
39313
|
const base = {
|
|
@@ -39315,7 +39344,7 @@ var servicesFor = /* @__PURE__ */ __name((deps) => {
|
|
|
39315
39344
|
return deps.messenger.services ? { ...base, ...deps.messenger.services(base, deps) } : base;
|
|
39316
39345
|
}, "servicesFor");
|
|
39317
39346
|
|
|
39318
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39347
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/background/relay.js
|
|
39319
39348
|
import { createHash as createHash14 } from "node:crypto";
|
|
39320
39349
|
import { chmodSync, lstatSync, mkdirSync as mkdirSync3, rmSync } from "node:fs";
|
|
39321
39350
|
import { createConnection, createServer } from "node:net";
|
|
@@ -39463,7 +39492,7 @@ var serve = /* @__PURE__ */ __name(async (socket, request, stdin, signal, run) =
|
|
|
39463
39492
|
}
|
|
39464
39493
|
}, "serve");
|
|
39465
39494
|
|
|
39466
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39495
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-relay.js
|
|
39467
39496
|
var lentConnection = /* @__PURE__ */ __name((connection, watchers) => throughWrapper(connection, {
|
|
39468
39497
|
close: /* @__PURE__ */ __name(async () => {
|
|
39469
39498
|
}, "close"),
|
|
@@ -39717,8 +39746,6 @@ export {
|
|
|
39717
39746
|
upgradePackage,
|
|
39718
39747
|
approveAsTask,
|
|
39719
39748
|
parseProposalIds,
|
|
39720
|
-
proposeOrganization,
|
|
39721
|
-
proposeOrganizationRename,
|
|
39722
39749
|
proposalRegistry,
|
|
39723
39750
|
servicesFor,
|
|
39724
39751
|
lackedNeed,
|