@wirecat/cli-memo 0.131.44 → 0.131.45
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-MFZPFIHO.js → all-profiles-ZBASDAVU.js} +5 -5
- package/dist/bundle/{anthropic-KJBO3FCU.js → anthropic-3ZS3RCUH.js} +3 -3
- package/dist/bundle/{app-server-A2XCJDGI.js → app-server-PQF22PMD.js} +35 -35
- package/dist/bundle/auto-NW7IP4ST.js +86 -0
- package/dist/bundle/{bun-BT7YVHDQ.js → bun-3CGVV3V2.js} +2 -2
- package/dist/bundle/{bun-sqlite-EG4TSO2G.js → bun-sqlite-D6T3ESTG.js} +2 -2
- package/dist/bundle/{chunk-5Q5JMJKP.js → chunk-25MS26SH.js} +14 -9
- package/dist/bundle/{chunk-2HHWU7GF.js → chunk-2OYB4PWV.js} +5 -5
- package/dist/bundle/{chunk-45LXRNPA.js → chunk-5IYS3BWO.js} +56 -56
- package/dist/bundle/{chunk-E454LAVZ.js → chunk-5ZHM6SZW.js} +1 -1
- package/dist/bundle/{chunk-NKAXCQNN.js → chunk-65MK55RS.js} +53 -44
- package/dist/bundle/{chunk-QNLXDR4W.js → chunk-6NQTGFAL.js} +2 -2
- package/dist/bundle/{chunk-GURLGLGY.js → chunk-75EEQB2R.js} +11 -11
- package/dist/bundle/{chunk-OK372VP3.js → chunk-75RJJQ2Q.js} +10 -10
- package/dist/bundle/{chunk-JFGPXSHH.js → chunk-7EA6M6RA.js} +4 -4
- package/dist/bundle/{chunk-EYKJXPDD.js → chunk-7G63XPDR.js} +7 -7
- package/dist/bundle/{chunk-6LXBT4F3.js → chunk-7G7N3IUO.js} +1 -1
- package/dist/bundle/{chunk-OBFWJJFV.js → chunk-7WJEQ36E.js} +2 -2
- package/dist/bundle/{chunk-7VXPMICZ.js → chunk-AOSSO4YI.js} +6 -6
- package/dist/bundle/{chunk-5OOASLTP.js → chunk-B4PZQYGP.js} +8 -8
- package/dist/bundle/{chunk-YGNKWWOX.js → chunk-C6GSSMDG.js} +1 -1
- package/dist/bundle/{chunk-SP7FRSAG.js → chunk-CAPDRDQU.js} +5 -5
- package/dist/bundle/{chunk-HQXTNBEY.js → chunk-CGJFYMVZ.js} +7 -7
- package/dist/bundle/{chunk-GWI3XFJR.js → chunk-CH37NCAP.js} +3 -3
- package/dist/bundle/{chunk-5HODYN65.js → chunk-CRLYBXV5.js} +31 -31
- package/dist/bundle/{chunk-Q2XEAF7Q.js → chunk-CXRCADXS.js} +9 -9
- package/dist/bundle/{chunk-NEQGFKOR.js → chunk-EJ2PEYQU.js} +1 -1
- package/dist/bundle/{chunk-NXCYAOYY.js → chunk-EJ4X6XH2.js} +1 -1
- package/dist/bundle/{chunk-BBT2TWCN.js → chunk-F2VTAFIT.js} +1 -1
- package/dist/bundle/{chunk-IKLSYWX7.js → chunk-FMMIPFTU.js} +4 -4
- package/dist/bundle/{chunk-GZCZKPUM.js → chunk-FRT7URL7.js} +623 -444
- package/dist/bundle/{chunk-POSVGIP5.js → chunk-G3FRUKAD.js} +258 -159
- package/dist/bundle/{chunk-Q2SZI7LP.js → chunk-G6TRTDHB.js} +2 -2
- package/dist/bundle/{chunk-OEOU4MLY.js → chunk-GBRK3WXY.js} +2 -2
- package/dist/bundle/{chunk-N6XUB5Z6.js → chunk-GOJZ3FQY.js} +20 -20
- package/dist/bundle/{chunk-XTLFCF35.js → chunk-GTPWWGQI.js} +7 -7
- package/dist/bundle/{chunk-MEO3B2OF.js → chunk-HAPE26JK.js} +12 -12
- package/dist/bundle/{chunk-T2NE3S47.js → chunk-HXCSD2XV.js} +1 -1
- package/dist/bundle/{chunk-T3ZQDLBU.js → chunk-IAPKZSC5.js} +1 -1
- package/dist/bundle/{chunk-BJS2EWG5.js → chunk-IJBJ47GI.js} +2 -2
- package/dist/bundle/{chunk-QZDSHJMZ.js → chunk-IQ2MW47B.js} +27 -27
- package/dist/bundle/{chunk-NXJZMS35.js → chunk-IYJGFBNN.js} +5 -5
- package/dist/bundle/{chunk-I6JHSNDD.js → chunk-KE3CYUON.js} +1 -1
- package/dist/bundle/{chunk-WJBLLOBC.js → chunk-L45FSDH3.js} +1 -1
- package/dist/bundle/{chunk-ZIRR4BJ5.js → chunk-LL3Z6KA3.js} +5 -5
- package/dist/bundle/{chunk-KD4A5HF6.js → chunk-MKVUBQEG.js} +1 -1
- package/dist/bundle/{chunk-KKDTX2LO.js → chunk-NB267XRJ.js} +4 -4
- package/dist/bundle/{chunk-4J6U4RIU.js → chunk-NBA3GJBR.js} +1011 -726
- package/dist/bundle/{chunk-SWE4LSXN.js → chunk-NTFEJ52I.js} +1 -1
- package/dist/bundle/{chunk-N4XNQ67E.js → chunk-OMBFF6Z6.js} +7 -1
- package/dist/bundle/{chunk-GTN4Z7XH.js → chunk-OT4CLMVF.js} +3 -3
- package/dist/bundle/{chunk-CJQYTFN6.js → chunk-OTOKJAYR.js} +3 -3
- package/dist/bundle/{chunk-WNZVZE3L.js → chunk-PMUAUR5S.js} +4 -4
- package/dist/bundle/{chunk-IXAHSLWQ.js → chunk-PXSGUVZP.js} +43 -43
- package/dist/bundle/{chunk-K6UTFYOL.js → chunk-SK3TPK5Y.js} +4 -4
- package/dist/bundle/{chunk-MQ66CMD3.js → chunk-TKFG75MJ.js} +2 -2
- package/dist/bundle/{chunk-TK6P24AN.js → chunk-TVZEELSS.js} +258 -257
- package/dist/bundle/{chunk-R2YMI2ZV.js → chunk-U4J7TAOW.js} +1 -1
- package/dist/bundle/{chunk-S4PKJOJP.js → chunk-UP2K5XUA.js} +3 -3
- package/dist/bundle/{chunk-GZTKZRWO.js → chunk-WGX73SAA.js} +2 -2
- package/dist/bundle/{chunk-X3PFDJSJ.js → chunk-YDNM5KYV.js} +4 -4
- package/dist/bundle/{chunk-O4VDVY67.js → chunk-YWTWDX4F.js} +1 -1
- package/dist/bundle/{chunk-XIZPBRIW.js → chunk-ZJXAYYLF.js} +1 -1
- package/dist/bundle/{command-contract-JJQE3MCP.js → command-contract-K3GJRRXT.js} +11 -11
- package/dist/bundle/{decode-AMWZXLFS.js → decode-TTMBMSGQ.js} +2 -2
- package/dist/bundle/{echarts-UCAIOY4N.js → echarts-7XN2RLJT.js} +2 -2
- package/dist/bundle/{embed-DYNZ4223.js → embed-UKTHDQH5.js} +3 -3
- package/dist/bundle/{embedder-XG344VNB.js → embedder-SCKLAVKW.js} +6 -6
- package/dist/bundle/{entry-CIUBRSDD.js → entry-VQRYB2HE.js} +4 -4
- package/dist/bundle/failure-JHW2U2OF.js +66 -0
- package/dist/bundle/{first-run-DFXU6DO2.js → first-run-RL6ZRY3Y.js} +5 -5
- package/dist/bundle/{first-screen-QDTJRHSS.js → first-screen-CRURWNKP.js} +12 -12
- package/dist/bundle/{instructions-MFAYYVVL.js → instructions-KGU67SPR.js} +1 -1
- package/dist/bundle/{mcp-5GUDJIDV.js → mcp-CSN7BDNG.js} +35 -35
- package/dist/bundle/memo.js +6 -6
- package/dist/bundle/{node-UILGGXFZ.js → node-S5LQLVMO.js} +2 -2
- package/dist/bundle/{node-sqlite-FJR5DRBC.js → node-sqlite-PFCIEDPX.js} +3 -3
- package/dist/bundle/{oauth-2WCGPG4N.js → oauth-KJOGYDPV.js} +4 -4
- package/dist/bundle/{open-I7ZYXOHK.js → open-TPBENKAD.js} +2 -2
- package/dist/bundle/{openai-4GB2FGUR.js → openai-UOYTHO32.js} +7 -7
- package/dist/bundle/{process-NRZZD4IS.js → process-JWKE7GPV.js} +1 -1
- package/dist/bundle/{program-HYJUSSU4.js → program-RJ6X4DXE.js} +451 -300
- package/dist/bundle/{prompt-F5RHTE7V.js → prompt-5HQ3Z7ZS.js} +2 -2
- package/dist/bundle/{recognize-UXXDJQEW.js → recognize-5ILXEPII.js} +1 -1
- package/dist/bundle/{remote-IW5FTICS.js → remote-WIN3HJII.js} +4 -4
- package/dist/bundle/{rerank-RRLNQ5C2.js → rerank-JKHDSEBI.js} +4 -4
- package/dist/bundle/{serve-GXJLUYCV.js → serve-VMHFRDYH.js} +6 -6
- package/dist/bundle/server-IBJ23GCB.js +48 -0
- package/dist/bundle/server-SNWCFMJN.js +61 -0
- package/dist/bundle/{server-646V4VPF.js → server-TKWVP4OJ.js} +50 -50
- package/dist/bundle/{state-3NLLRTD2.js → state-OWOLD7JI.js} +3 -3
- package/dist/bundle/{store-3DFD7E66.js → store-6GFFSNRY.js} +9 -9
- package/dist/bundle/store-maintenance-command-7DMPWFT4.js +48 -0
- package/dist/bundle/update-KSB7VYAW.js +69 -0
- package/dist/digest/command.d.ts.map +1 -1
- package/dist/digest/command.js +2 -1
- package/dist/digest/command.js.map +1 -1
- package/dist/digest/digest.d.ts +5 -0
- package/dist/digest/digest.d.ts.map +1 -1
- package/dist/digest/digest.js +19 -5
- package/dist/digest/digest.js.map +1 -1
- package/dist/digest/known.d.ts +7 -0
- package/dist/digest/known.d.ts.map +1 -0
- package/dist/digest/known.js +28 -0
- package/dist/digest/known.js.map +1 -0
- package/dist/digest/text.d.ts.map +1 -1
- package/dist/digest/text.js +13 -1
- package/dist/digest/text.js.map +1 -1
- package/dist/doctor/command.d.ts +1 -1
- package/dist/mail/findings-command.d.ts.map +1 -1
- package/dist/mail/findings-command.js +20 -3
- package/dist/mail/findings-command.js.map +1 -1
- package/dist/mail/findings-duplicates.d.ts +19 -0
- package/dist/mail/findings-duplicates.d.ts.map +1 -0
- package/dist/mail/findings-duplicates.js +159 -0
- package/dist/mail/findings-duplicates.js.map +1 -0
- package/dist/program.d.ts.map +1 -1
- package/dist/program.js +0 -63
- package/dist/program.js.map +1 -1
- package/dist/reasons.d.ts.map +1 -1
- package/dist/reasons.js +6 -0
- package/dist/reasons.js.map +1 -1
- package/dist/search/command.d.ts.map +1 -1
- package/dist/search/command.js +3 -1
- package/dist/search/command.js.map +1 -1
- package/dist/search/search.d.ts.map +1 -1
- package/dist/search/search.js +10 -2
- package/dist/search/search.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +3 -3
- package/skills/cli-memo/SKILL.md +3 -1
- package/skills/morning-digest/SKILL.md +5 -4
- package/dist/bundle/auto-W3BUP6YI.js +0 -86
- package/dist/bundle/failure-JTQUF4RT.js +0 -66
- package/dist/bundle/server-DJUCOKNC.js +0 -48
- package/dist/bundle/server-ITBSOGIC.js +0 -61
- package/dist/bundle/store-maintenance-command-D7O6QCVF.js +0 -48
- package/dist/bundle/update-GQFRQVAV.js +0 -69
- /package/dist/bundle/{chunk-NJG67ZXD.js → chunk-DL5LDAOS.js} +0 -0
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
sameOrdinaryFile,
|
|
9
9
|
syncDirectory,
|
|
10
10
|
writeFileAtomic
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-HAPE26JK.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-G3FRUKAD.js";
|
|
52
52
|
import {
|
|
53
53
|
isCliFailure
|
|
54
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-7G63XPDR.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-F2VTAFIT.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-NBA3GJBR.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-5IYS3BWO.js";
|
|
218
218
|
import {
|
|
219
219
|
DEFAULT_STEMMERS,
|
|
220
220
|
createStemmer,
|
|
221
221
|
fold,
|
|
222
222
|
normalize
|
|
223
|
-
} from "./chunk-
|
|
223
|
+
} from "./chunk-CGJFYMVZ.js";
|
|
224
224
|
import {
|
|
225
225
|
DEFAULT_TASK_CATEGORIES,
|
|
226
226
|
FALLBACK_CATEGORY
|
|
227
|
-
} from "./chunk-
|
|
227
|
+
} from "./chunk-YDNM5KYV.js";
|
|
228
228
|
import {
|
|
229
229
|
MAX_MODEL_IMAGE_BYTES
|
|
230
|
-
} from "./chunk-
|
|
230
|
+
} from "./chunk-MKVUBQEG.js";
|
|
231
231
|
import {
|
|
232
232
|
remoteKey
|
|
233
|
-
} from "./chunk-
|
|
233
|
+
} from "./chunk-IJBJ47GI.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-IYJGFBNN.js";
|
|
245
245
|
import {
|
|
246
246
|
installFiles,
|
|
247
247
|
megabytes
|
|
248
|
-
} from "./chunk-
|
|
248
|
+
} from "./chunk-OTOKJAYR.js";
|
|
249
249
|
import {
|
|
250
250
|
storePath,
|
|
251
251
|
wirecatDirectory
|
|
252
|
-
} from "./chunk-
|
|
252
|
+
} from "./chunk-U4J7TAOW.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.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/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.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/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.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/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.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/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.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/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.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/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.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/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.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/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.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/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.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/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.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/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.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/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.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/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.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/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.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/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.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/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.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/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.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/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.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/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.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/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.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/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.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/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.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/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.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/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.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/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.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/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.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/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.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/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.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/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.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/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-WIN3HJII.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-JWKE7GPV.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.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/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.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/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.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/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.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/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();
|
|
@@ -19391,7 +19391,7 @@ var categorize = /* @__PURE__ */ __name((text2, categories = DEFAULT_TASK_CATEGO
|
|
|
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.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/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.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/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.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/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.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/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.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/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.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/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.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/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.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/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.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/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.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/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.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/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.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/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.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/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.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/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.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/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;
|
|
@@ -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.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/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.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/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.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/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.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/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.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/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.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/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.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/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.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/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.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/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.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/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.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/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.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/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.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/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.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/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.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/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.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/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,7 +22593,7 @@ 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.
|
|
22596
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/action.js
|
|
22597
22597
|
var rowOf = /* @__PURE__ */ __name((action2) => ({
|
|
22598
22598
|
id: action2.id,
|
|
22599
22599
|
kind: "action",
|
|
@@ -22633,7 +22633,7 @@ var actionKind = /* @__PURE__ */ __name((store, claimed) => ({
|
|
|
22633
22633
|
}, "decide")
|
|
22634
22634
|
}), "actionKind");
|
|
22635
22635
|
|
|
22636
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22636
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/fact.js
|
|
22637
22637
|
var STATUS = {
|
|
22638
22638
|
proposed: "proposed",
|
|
22639
22639
|
accepted: "confirmed",
|
|
@@ -22676,7 +22676,7 @@ var factKind = /* @__PURE__ */ __name((store) => ({
|
|
|
22676
22676
|
}, "decide")
|
|
22677
22677
|
}), "factKind");
|
|
22678
22678
|
|
|
22679
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22679
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/finance.js
|
|
22680
22680
|
var rowOf3 = /* @__PURE__ */ __name((kind, entry) => ({
|
|
22681
22681
|
id: entry.ref,
|
|
22682
22682
|
kind,
|
|
@@ -22711,7 +22711,7 @@ var financeKind = /* @__PURE__ */ __name((store, kind) => ({
|
|
|
22711
22711
|
var invoiceKind = /* @__PURE__ */ __name((store) => financeKind(store, "invoice"), "invoiceKind");
|
|
22712
22712
|
var paymentKind = /* @__PURE__ */ __name((store) => financeKind(store, "payment"), "paymentKind");
|
|
22713
22713
|
|
|
22714
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22714
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/findings.js
|
|
22715
22715
|
var FACT_SUMMARIES = {
|
|
22716
22716
|
fact: /* @__PURE__ */ __name((finding) => finding.statement, "fact"),
|
|
22717
22717
|
task: /* @__PURE__ */ __name((finding) => finding.title, "task"),
|
|
@@ -22783,7 +22783,7 @@ var findingsKind = /* @__PURE__ */ __name((store) => {
|
|
|
22783
22783
|
};
|
|
22784
22784
|
}, "findingsKind");
|
|
22785
22785
|
|
|
22786
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22786
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/key-document.js
|
|
22787
22787
|
var linkRow = /* @__PURE__ */ __name((link4) => ({
|
|
22788
22788
|
id: `key:${link4.id}`,
|
|
22789
22789
|
kind: "key_document",
|
|
@@ -22851,7 +22851,7 @@ var keyDocumentKind = /* @__PURE__ */ __name((store) => {
|
|
|
22851
22851
|
};
|
|
22852
22852
|
}, "keyDocumentKind");
|
|
22853
22853
|
|
|
22854
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22854
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/mail-findings.js
|
|
22855
22855
|
var words = /* @__PURE__ */ __name((...parts) => parts.filter(Boolean).join(" "), "words");
|
|
22856
22856
|
var summaryOf = /* @__PURE__ */ __name((finding) => {
|
|
22857
22857
|
switch (finding.kind) {
|
|
@@ -22939,7 +22939,7 @@ var mailFindingsKind = /* @__PURE__ */ __name((store) => {
|
|
|
22939
22939
|
};
|
|
22940
22940
|
}, "mailFindingsKind");
|
|
22941
22941
|
|
|
22942
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22942
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/meeting-findings.js
|
|
22943
22943
|
var rowOf6 = /* @__PURE__ */ __name((action2, batch) => {
|
|
22944
22944
|
const findings = batch.input.findings;
|
|
22945
22945
|
const projects = [...new Set(findings.map((one2) => "project" in one2 ? one2.project : void 0))];
|
|
@@ -23003,7 +23003,7 @@ var meetingFindingsKind = /* @__PURE__ */ __name((store) => {
|
|
|
23003
23003
|
};
|
|
23004
23004
|
}, "meetingFindingsKind");
|
|
23005
23005
|
|
|
23006
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23006
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/memory.js
|
|
23007
23007
|
var STATUS2 = {
|
|
23008
23008
|
proposed: "proposed",
|
|
23009
23009
|
confirmed: "confirmed",
|
|
@@ -23044,7 +23044,7 @@ var memoryKind = /* @__PURE__ */ __name((store) => ({
|
|
|
23044
23044
|
}, "decide")
|
|
23045
23045
|
}), "memoryKind");
|
|
23046
23046
|
|
|
23047
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23047
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/orders.js
|
|
23048
23048
|
var rowOf8 = /* @__PURE__ */ __name((order) => ({
|
|
23049
23049
|
id: order.ref,
|
|
23050
23050
|
kind: "order",
|
|
@@ -23076,7 +23076,7 @@ var orderKind = /* @__PURE__ */ __name((store) => ({
|
|
|
23076
23076
|
}, "decide")
|
|
23077
23077
|
}), "orderKind");
|
|
23078
23078
|
|
|
23079
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23079
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/organization.js
|
|
23080
23080
|
var ORGANIZATION_ADD_KIND = "organization_add";
|
|
23081
23081
|
var ORGANIZATION_RENAME_KIND = "organization_rename";
|
|
23082
23082
|
var rowOf9 = /* @__PURE__ */ __name((action2) => {
|
|
@@ -23132,7 +23132,7 @@ var organizationKind = /* @__PURE__ */ __name((store) => ({
|
|
|
23132
23132
|
}, "decide")
|
|
23133
23133
|
}), "organizationKind");
|
|
23134
23134
|
|
|
23135
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23135
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/relationship.js
|
|
23136
23136
|
var linkRow2 = /* @__PURE__ */ __name((link4) => ({
|
|
23137
23137
|
id: `link:${link4.id}`,
|
|
23138
23138
|
kind: "relationship",
|
|
@@ -23206,7 +23206,7 @@ var relationshipKind = /* @__PURE__ */ __name((store) => {
|
|
|
23206
23206
|
};
|
|
23207
23207
|
}, "relationshipKind");
|
|
23208
23208
|
|
|
23209
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23209
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/relationship-update.js
|
|
23210
23210
|
var KIND = "relationship_update";
|
|
23211
23211
|
var summaryOf2 = /* @__PURE__ */ __name(({ changes }) => Object.entries(changes).map(([field, value]) => `${field} ${value ?? "cleared"}`).join(", "), "summaryOf");
|
|
23212
23212
|
var rowOf10 = /* @__PURE__ */ __name((action2) => {
|
|
@@ -23256,7 +23256,7 @@ var relationshipUpdateKind = /* @__PURE__ */ __name((store) => ({
|
|
|
23256
23256
|
}, "decide")
|
|
23257
23257
|
}), "relationshipUpdateKind");
|
|
23258
23258
|
|
|
23259
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23259
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/task-close.js
|
|
23260
23260
|
var rowOf11 = /* @__PURE__ */ __name((task2) => {
|
|
23261
23261
|
const suggestion = task2.closeSuggestion;
|
|
23262
23262
|
if (suggestion === null)
|
|
@@ -23324,7 +23324,7 @@ var taskCloseKind = /* @__PURE__ */ __name((store) => {
|
|
|
23324
23324
|
};
|
|
23325
23325
|
}, "taskCloseKind");
|
|
23326
23326
|
|
|
23327
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23327
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/services/proposals/registry.js
|
|
23328
23328
|
var PREFIX = /^([a-z][a-z_]*):/;
|
|
23329
23329
|
var marked = /* @__PURE__ */ __name((kind, row) => kind.ownerOnly ? { ...row, ownerOnly: true } : row, "marked");
|
|
23330
23330
|
var refusalOf = /* @__PURE__ */ __name((id2, error) => {
|
|
@@ -23452,7 +23452,7 @@ var proposalRegistry = /* @__PURE__ */ __name((store) => {
|
|
|
23452
23452
|
return registry;
|
|
23453
23453
|
}, "proposalRegistry");
|
|
23454
23454
|
|
|
23455
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23455
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/mail/owed.js
|
|
23456
23456
|
var mailTurn = /* @__PURE__ */ __name((newest) => {
|
|
23457
23457
|
if (newest === null)
|
|
23458
23458
|
return null;
|
|
@@ -23461,7 +23461,7 @@ var mailTurn = /* @__PURE__ */ __name((newest) => {
|
|
|
23461
23461
|
return newest.addressed ? "owed" : null;
|
|
23462
23462
|
}, "mailTurn");
|
|
23463
23463
|
|
|
23464
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23464
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/services/agenda-mail.js
|
|
23465
23465
|
var absent = /* @__PURE__ */ __name((error) => {
|
|
23466
23466
|
if (error instanceof CliError && error.code === "not_found")
|
|
23467
23467
|
return void 0;
|
|
@@ -23519,7 +23519,7 @@ var mailActivity = /* @__PURE__ */ __name(async (store, account, since, chats) =
|
|
|
23519
23519
|
};
|
|
23520
23520
|
}, "mailActivity");
|
|
23521
23521
|
|
|
23522
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23522
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/services/chat-coverage.js
|
|
23523
23523
|
var chatCoverage = /* @__PURE__ */ __name(async (store, account, chatIds) => {
|
|
23524
23524
|
const ids = [...new Set(chatIds)];
|
|
23525
23525
|
if (ids.length === 0)
|
|
@@ -23545,7 +23545,7 @@ var chatCoverage = /* @__PURE__ */ __name(async (store, account, chatIds) => {
|
|
|
23545
23545
|
}));
|
|
23546
23546
|
}, "chatCoverage");
|
|
23547
23547
|
|
|
23548
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23548
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/services/agenda.js
|
|
23549
23549
|
var DAY = 864e5;
|
|
23550
23550
|
var AGENDA_DEFAULTS = { unanswered: DAY, waiting: 7 * DAY };
|
|
23551
23551
|
var CLAIMS = ["none", "mine", "others", "any"];
|
|
@@ -23792,7 +23792,7 @@ var agendaItem = /* @__PURE__ */ __name((shown) => {
|
|
|
23792
23792
|
};
|
|
23793
23793
|
}, "agendaItem");
|
|
23794
23794
|
|
|
23795
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23795
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/services/excerpt.js
|
|
23796
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");
|
|
23797
23797
|
var excerpt = /* @__PURE__ */ __name((text2, query, size4 = 240, options = {}) => {
|
|
23798
23798
|
const flat = text2.replace(/\s+/g, " ").trim();
|
|
@@ -23808,7 +23808,7 @@ var excerpt = /* @__PURE__ */ __name((text2, query, size4 = 240, options = {}) =
|
|
|
23808
23808
|
}, "excerpt");
|
|
23809
23809
|
var withExcerpt = /* @__PURE__ */ __name(({ matchedText, ...hit }, query) => ({ ...hit, excerpt: excerpt(matchedText ?? hit.text, query) }), "withExcerpt");
|
|
23810
23810
|
|
|
23811
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23811
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/services/link-scorers/shared.js
|
|
23812
23812
|
var escaped = /* @__PURE__ */ __name((text2) => text2.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), "escaped");
|
|
23813
23813
|
var folded = /* @__PURE__ */ __name((text2) => text2.normalize("NFKC").toLowerCase().replace(/\s+/gu, " "), "folded");
|
|
23814
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");
|
|
@@ -23847,7 +23847,7 @@ var identitiesIn = /* @__PURE__ */ __name(async (store, people, provider) => {
|
|
|
23847
23847
|
return found;
|
|
23848
23848
|
}, "identitiesIn");
|
|
23849
23849
|
|
|
23850
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23850
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/services/link-scorers/alias-hits.js
|
|
23851
23851
|
var SEARCH_LIMIT = 500;
|
|
23852
23852
|
var aliasWeight = /* @__PURE__ */ __name((hits) => hits >= 10 ? 0.55 : hits >= 3 ? 0.35 : 0, "aliasWeight");
|
|
23853
23853
|
var aliasHits = {
|
|
@@ -23896,7 +23896,7 @@ var aliasHits = {
|
|
|
23896
23896
|
}, "candidates")
|
|
23897
23897
|
};
|
|
23898
23898
|
|
|
23899
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23899
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/services/link-scorers/chat-senders.js
|
|
23900
23900
|
var WEIGHT = 0.5;
|
|
23901
23901
|
var LARGE_GROUP_WEIGHT = 0.2;
|
|
23902
23902
|
var LARGE_GROUP = 30;
|
|
@@ -23948,7 +23948,7 @@ var chatSenders = {
|
|
|
23948
23948
|
}, "candidates")
|
|
23949
23949
|
};
|
|
23950
23950
|
|
|
23951
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23951
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/services/link-scorers/chat-title.js
|
|
23952
23952
|
var WEIGHT2 = 0.7;
|
|
23953
23953
|
var chatTitle = {
|
|
23954
23954
|
id: "chat-title",
|
|
@@ -23987,7 +23987,7 @@ var chatTitle = {
|
|
|
23987
23987
|
}, "candidates")
|
|
23988
23988
|
};
|
|
23989
23989
|
|
|
23990
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23990
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/services/link-scorers/email-domain.js
|
|
23991
23991
|
var WEIGHT3 = 0.3;
|
|
23992
23992
|
var CONTACTS = 500;
|
|
23993
23993
|
var MOST_PAIRS = 200;
|
|
@@ -24048,7 +24048,7 @@ var emailDomain = {
|
|
|
24048
24048
|
}, "candidates")
|
|
24049
24049
|
};
|
|
24050
24050
|
|
|
24051
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24051
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/services/link-scorers/mail-thread.js
|
|
24052
24052
|
var NAMED = 0.7;
|
|
24053
24053
|
var MEMBER_ONLY = 0.3;
|
|
24054
24054
|
var READ_LIMIT2 = 500;
|
|
@@ -24121,7 +24121,7 @@ var mailThread = {
|
|
|
24121
24121
|
}, "candidates")
|
|
24122
24122
|
};
|
|
24123
24123
|
|
|
24124
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24124
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/services/link-scorers/member-chats.js
|
|
24125
24125
|
var WEIGHT4 = 0.5;
|
|
24126
24126
|
var memberChats = {
|
|
24127
24127
|
id: "member-chats",
|
|
@@ -24161,7 +24161,7 @@ var memberChats = {
|
|
|
24161
24161
|
}, "candidates")
|
|
24162
24162
|
};
|
|
24163
24163
|
|
|
24164
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24164
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/services/link-scorers/member-dialog.js
|
|
24165
24165
|
var WEIGHT5 = 0.6;
|
|
24166
24166
|
var memberDialog = {
|
|
24167
24167
|
id: "member-dialog",
|
|
@@ -24195,7 +24195,7 @@ var memberDialog = {
|
|
|
24195
24195
|
}, "candidates")
|
|
24196
24196
|
};
|
|
24197
24197
|
|
|
24198
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24198
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/services/project-gathering-around.js
|
|
24199
24199
|
var storedMessageNeighbours = /* @__PURE__ */ __name((messages) => ({
|
|
24200
24200
|
async around(ref, window3) {
|
|
24201
24201
|
const at = parseLocator(ref);
|
|
@@ -24291,7 +24291,7 @@ var storedNeighbours = /* @__PURE__ */ __name((store) => {
|
|
|
24291
24291
|
};
|
|
24292
24292
|
}, "storedNeighbours");
|
|
24293
24293
|
|
|
24294
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24294
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/services/project-gathering-request.js
|
|
24295
24295
|
import { createHash as createHash2 } from "node:crypto";
|
|
24296
24296
|
var DAY2 = 864e5;
|
|
24297
24297
|
var MAX_TIME = 864e13;
|
|
@@ -24607,7 +24607,7 @@ var decodeCheckpoint = /* @__PURE__ */ __name((text2, plan) => {
|
|
|
24607
24607
|
return value;
|
|
24608
24608
|
}, "decodeCheckpoint");
|
|
24609
24609
|
|
|
24610
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24610
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/services/project-gathering.js
|
|
24611
24611
|
var terminal = /* @__PURE__ */ new Set(["done", "unavailable", "failed"]);
|
|
24612
24612
|
var PAGE2 = 20;
|
|
24613
24613
|
var PEOPLE = 20;
|
|
@@ -25011,7 +25011,7 @@ var peopleOf = /* @__PURE__ */ __name((items, senderOf) => {
|
|
|
25011
25011
|
return [...byKey.values()].sort((a, b) => b.items - a.items || a.name.localeCompare(b.name));
|
|
25012
25012
|
}, "peopleOf");
|
|
25013
25013
|
|
|
25014
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25014
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/services/meeting-project-candidate-matching.js
|
|
25015
25015
|
var normalizedText = /* @__PURE__ */ __name((text2) => text2.normalize("NFKC").toLowerCase().replace(/\s+/gu, " "), "normalizedText");
|
|
25016
25016
|
var termsOf = /* @__PURE__ */ __name((entry) => [
|
|
25017
25017
|
{ name: entry.name, kind: "canonical" },
|
|
@@ -25055,7 +25055,7 @@ var matchVocabularyTerms = /* @__PURE__ */ __name((catalog, texts) => {
|
|
|
25055
25055
|
return result.sort((a, b) => Number(a.entry.id) - Number(b.entry.id));
|
|
25056
25056
|
}, "matchVocabularyTerms");
|
|
25057
25057
|
|
|
25058
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25058
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/services/project-gathering-mentions.js
|
|
25059
25059
|
var KINDS = ["project", "tag", "topic"];
|
|
25060
25060
|
var findEvidenceMentions = /* @__PURE__ */ __name(async (vocabulary, gathering, options = {}) => {
|
|
25061
25061
|
if (typeof vocabulary?.vocabulary !== "function")
|
|
@@ -25110,7 +25110,7 @@ var findEvidenceMentions = /* @__PURE__ */ __name(async (vocabulary, gathering,
|
|
|
25110
25110
|
};
|
|
25111
25111
|
}, "findEvidenceMentions");
|
|
25112
25112
|
|
|
25113
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25113
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/services/stored-project-gathering.js
|
|
25114
25114
|
var storedChatCount = /* @__PURE__ */ __name((store) => async (account, chatId, { since, until }) => {
|
|
25115
25115
|
const window3 = { since: new Date(since).toISOString(), until: new Date(until - 1).toISOString() };
|
|
25116
25116
|
const [messages, newest, oldest] = await Promise.all([
|
|
@@ -25416,7 +25416,7 @@ var purposeHintOf = /* @__PURE__ */ __name((linked, rows, of) => {
|
|
|
25416
25416
|
return { chat: top.ref, relationship: link4.relationship, items, of };
|
|
25417
25417
|
}, "purposeHintOf");
|
|
25418
25418
|
|
|
25419
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25419
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/services/link-scorers/scan.js
|
|
25420
25420
|
var SCORERS = [chatTitle, aliasHits, memberChats, memberDialog, chatSenders, mailThread];
|
|
25421
25421
|
var PERSON_SCORERS = [emailDomain];
|
|
25422
25422
|
var SCAN_BOT = { bot: "memo-scan", kind: "rule" };
|
|
@@ -25624,18 +25624,18 @@ var referenceOf = /* @__PURE__ */ __name((text2) => {
|
|
|
25624
25624
|
}, "referenceOf");
|
|
25625
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");
|
|
25626
25626
|
|
|
25627
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25627
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/services/media-archive.js
|
|
25628
25628
|
import { setTimeout as sleep3 } from "node:timers/promises";
|
|
25629
25629
|
|
|
25630
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25630
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/services/media-archive-files.js
|
|
25631
25631
|
import { lstat } from "node:fs/promises";
|
|
25632
25632
|
|
|
25633
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25633
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-store.js
|
|
25634
25634
|
import { createHash as createHash4, randomUUID as randomUUID2 } from "node:crypto";
|
|
25635
25635
|
import { open as open2, rename as rename2, unlink as unlink2 } from "node:fs/promises";
|
|
25636
25636
|
import { join as join2 } from "node:path";
|
|
25637
25637
|
|
|
25638
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25638
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-metadata.js
|
|
25639
25639
|
import { createHash as createHash3 } from "node:crypto";
|
|
25640
25640
|
var metadataLimit = 16384;
|
|
25641
25641
|
var partialIdentity = /* @__PURE__ */ __name((locator) => JSON.stringify([locator.provider, locator.account, locator.occurrenceId, locator.assetId]), "partialIdentity");
|
|
@@ -25695,7 +25695,7 @@ var readPartialMetadata = /* @__PURE__ */ __name(async (path, locator, maxBytes,
|
|
|
25695
25695
|
}
|
|
25696
25696
|
}, "readPartialMetadata");
|
|
25697
25697
|
|
|
25698
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25698
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-writer.js
|
|
25699
25699
|
import { randomUUID } from "node:crypto";
|
|
25700
25700
|
import { open, rename, unlink } from "node:fs/promises";
|
|
25701
25701
|
import { join } from "node:path";
|
|
@@ -25787,7 +25787,7 @@ var partialWriter = /* @__PURE__ */ __name(async (input) => {
|
|
|
25787
25787
|
};
|
|
25788
25788
|
}, "partialWriter");
|
|
25789
25789
|
|
|
25790
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25790
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-store.js
|
|
25791
25791
|
var NativeRecordingPartialStore = class {
|
|
25792
25792
|
static {
|
|
25793
25793
|
__name(this, "NativeRecordingPartialStore");
|
|
@@ -25894,12 +25894,12 @@ var NativeRecordingPartialStore = class {
|
|
|
25894
25894
|
}
|
|
25895
25895
|
};
|
|
25896
25896
|
|
|
25897
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25897
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication.js
|
|
25898
25898
|
import { createHash as createHash5 } from "node:crypto";
|
|
25899
25899
|
import { link as link2 } from "node:fs/promises";
|
|
25900
25900
|
import { basename, dirname, join as join4, resolve } from "node:path";
|
|
25901
25901
|
|
|
25902
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25902
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication-files.js
|
|
25903
25903
|
import { unlink as unlink3 } from "node:fs/promises";
|
|
25904
25904
|
var verifiedPublicationFile = /* @__PURE__ */ __name(async (path, expected2, signal, writable = false) => {
|
|
25905
25905
|
signal?.throwIfAborted();
|
|
@@ -25934,7 +25934,7 @@ var commitPublication = /* @__PURE__ */ __name(async (root, partialPath, finalPa
|
|
|
25934
25934
|
signal?.throwIfAborted();
|
|
25935
25935
|
}, "commitPublication");
|
|
25936
25936
|
|
|
25937
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25937
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication-journal.js
|
|
25938
25938
|
import { randomUUID as randomUUID3 } from "node:crypto";
|
|
25939
25939
|
import { open as open3, rename as rename3, unlink as unlink4 } from "node:fs/promises";
|
|
25940
25940
|
import { join as join3 } from "node:path";
|
|
@@ -26007,7 +26007,7 @@ var writePublicationJournal = /* @__PURE__ */ __name(async (root, path, prefix,
|
|
|
26007
26007
|
}
|
|
26008
26008
|
}, "writePublicationJournal");
|
|
26009
26009
|
|
|
26010
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26010
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication.js
|
|
26011
26011
|
var NativeRecordingPublication = class {
|
|
26012
26012
|
static {
|
|
26013
26013
|
__name(this, "NativeRecordingPublication");
|
|
@@ -26080,7 +26080,7 @@ var NativeRecordingPublication = class {
|
|
|
26080
26080
|
}
|
|
26081
26081
|
};
|
|
26082
26082
|
|
|
26083
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26083
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/services/media-archive-manifest.js
|
|
26084
26084
|
import { createHash as createHash6 } from "node:crypto";
|
|
26085
26085
|
import { readdir } from "node:fs/promises";
|
|
26086
26086
|
import { isAbsolute, join as join5, resolve as resolve2 } from "node:path";
|
|
@@ -26167,7 +26167,7 @@ var commitMediaEntry = /* @__PURE__ */ __name((root, one2, beforePublish) => wri
|
|
|
26167
26167
|
beforePublish
|
|
26168
26168
|
}), "commitMediaEntry");
|
|
26169
26169
|
|
|
26170
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26170
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/services/media-archive-files.js
|
|
26171
26171
|
var validator = '"media-completed-v1"';
|
|
26172
26172
|
var maximumFileBytes = 64 * 1024 * 1024 * 1024;
|
|
26173
26173
|
var archiveMediaFile = /* @__PURE__ */ __name(async (root, identity, kind, file2, beforeWrite, signal, metadata = {}) => {
|
|
@@ -26268,7 +26268,7 @@ var archiveMediaFile = /* @__PURE__ */ __name(async (root, identity, kind, file2
|
|
|
26268
26268
|
return entry;
|
|
26269
26269
|
}, "archiveMediaFile");
|
|
26270
26270
|
|
|
26271
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26271
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/services/media-archive-locks.js
|
|
26272
26272
|
import { mkdir, realpath } from "node:fs/promises";
|
|
26273
26273
|
import { join as join6, resolve as resolve3 } from "node:path";
|
|
26274
26274
|
var archiveLocations = /* @__PURE__ */ __name(async (initial, signal) => {
|
|
@@ -26335,7 +26335,7 @@ var withMediaArchiveLocks = /* @__PURE__ */ __name(async (directory2, signal, ru
|
|
|
26335
26335
|
throw new CliError("validation_error", "archive locations changed during locking; run the command again");
|
|
26336
26336
|
}, "withMediaArchiveLocks");
|
|
26337
26337
|
|
|
26338
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26338
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/services/media-archive.js
|
|
26339
26339
|
var validateMediaSince = /* @__PURE__ */ __name((value, flag = "--since-time") => {
|
|
26340
26340
|
if (value === void 0)
|
|
26341
26341
|
return void 0;
|
|
@@ -26488,7 +26488,7 @@ var archiveMedia = /* @__PURE__ */ __name(async (ports, options) => {
|
|
|
26488
26488
|
}, { create: true });
|
|
26489
26489
|
}, "archiveMedia");
|
|
26490
26490
|
|
|
26491
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26491
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/services/media-archive-move.js
|
|
26492
26492
|
import { realpath as realpath2, unlink as unlink5 } from "node:fs/promises";
|
|
26493
26493
|
import { basename as basename2, dirname as dirname2, join as join7, resolve as resolve4 } from "node:path";
|
|
26494
26494
|
var canonicalDestination = /* @__PURE__ */ __name(async (directory2) => {
|
|
@@ -26641,7 +26641,7 @@ var moveMediaArchive = /* @__PURE__ */ __name(async (options) => {
|
|
|
26641
26641
|
}, { additional: [target2], createAdditional: !options.dryRun });
|
|
26642
26642
|
}, "moveMediaArchive");
|
|
26643
26643
|
|
|
26644
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26644
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/services/model-downloads.js
|
|
26645
26645
|
var bytesOf = /* @__PURE__ */ __name((model) => model.files.reduce((sum2, file2) => sum2 + file2.bytes, 0), "bytesOf");
|
|
26646
26646
|
var nativeRuntime = /* @__PURE__ */ __name(async ({ env, progress = /* @__PURE__ */ __name(() => {
|
|
26647
26647
|
}, "progress") }) => {
|
|
@@ -26664,7 +26664,7 @@ var downloadTextModel = /* @__PURE__ */ __name(async (id2, { env, progress = /*
|
|
|
26664
26664
|
}
|
|
26665
26665
|
await nativeRuntime({ env, progress });
|
|
26666
26666
|
progress(`${model.id}: loading it once to check it works`);
|
|
26667
|
-
const { openEmbedder: openEmbedder2 } = await import("./embed-
|
|
26667
|
+
const { openEmbedder: openEmbedder2 } = await import("./embed-UKTHDQH5.js");
|
|
26668
26668
|
const embedder = await openEmbedder2(model, directory2);
|
|
26669
26669
|
try {
|
|
26670
26670
|
const [vector] = await embedder.embed(["check"], "query");
|
|
@@ -26685,7 +26685,7 @@ var downloadRerankModel = /* @__PURE__ */ __name(async (id2, { env, progress = /
|
|
|
26685
26685
|
}
|
|
26686
26686
|
await nativeRuntime({ env, progress });
|
|
26687
26687
|
progress(`${model.id}: loading it once to check it works`);
|
|
26688
|
-
const { openReranker } = await import("./rerank-
|
|
26688
|
+
const { openReranker } = await import("./rerank-JKHDSEBI.js");
|
|
26689
26689
|
const reranker = await openReranker(model, directory2);
|
|
26690
26690
|
try {
|
|
26691
26691
|
await reranker.score("check", ["check"]);
|
|
@@ -26703,7 +26703,7 @@ var downloadImageModel = /* @__PURE__ */ __name(async (id2, { env, progress = /*
|
|
|
26703
26703
|
await installFiles(placedImage(model, directory2), { progress });
|
|
26704
26704
|
}
|
|
26705
26705
|
progress(`${model.id}: loading it once to check it works`);
|
|
26706
|
-
const { openPictureEmbedder } = await import("./embedder-
|
|
26706
|
+
const { openPictureEmbedder } = await import("./embedder-SCKLAVKW.js");
|
|
26707
26707
|
const embedder = await openPictureEmbedder(model, directory2);
|
|
26708
26708
|
try {
|
|
26709
26709
|
const vector = await embedder.embedQuery("check");
|
|
@@ -26715,7 +26715,7 @@ var downloadImageModel = /* @__PURE__ */ __name(async (id2, { env, progress = /*
|
|
|
26715
26715
|
return { model, directory: directory2 };
|
|
26716
26716
|
}, "downloadImageModel");
|
|
26717
26717
|
|
|
26718
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26718
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/domain/money-words.js
|
|
26719
26719
|
var MONEY_REQUEST = "money-request";
|
|
26720
26720
|
var MONEY_DONE = "money-done";
|
|
26721
26721
|
var PROMISE = "promise";
|
|
@@ -26749,10 +26749,10 @@ var MONEY_WORDS = [
|
|
|
26749
26749
|
}
|
|
26750
26750
|
];
|
|
26751
26751
|
|
|
26752
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26752
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/services/money-words.js
|
|
26753
26753
|
var moneyClassesOf = /* @__PURE__ */ __name((text2) => listsHit(text2, MONEY_WORDS), "moneyClassesOf");
|
|
26754
26754
|
|
|
26755
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26755
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/domain/status-words.js
|
|
26756
26756
|
var words2 = /* @__PURE__ */ __name((forms) => new RegExp(`(?<![\\p{L}\\p{N}])(?:${forms.join("|")})(?![\\p{L}\\p{N}])`, "iu"), "words");
|
|
26757
26757
|
var MONEY_DONE_FORMS = words2([
|
|
26758
26758
|
"\u043E\u043F\u043B\u0430\u0442\u0438\u043B[\u0430\u0438]?",
|
|
@@ -26792,7 +26792,7 @@ var PROMISE_FORMS = words2([
|
|
|
26792
26792
|
"estar\xE1 listo"
|
|
26793
26793
|
]);
|
|
26794
26794
|
|
|
26795
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26795
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/services/project-status/items.js
|
|
26796
26796
|
var EXCERPT_CHARS = 80;
|
|
26797
26797
|
var excerpt2 = /* @__PURE__ */ __name((text2) => {
|
|
26798
26798
|
const flat = text2.replace(/\s+/g, " ").trim();
|
|
@@ -26814,7 +26814,7 @@ var whoOf = /* @__PURE__ */ __name((message) => ({
|
|
|
26814
26814
|
var fromOwner = /* @__PURE__ */ __name((message) => message.outgoing === true, "fromOwner");
|
|
26815
26815
|
var day = /* @__PURE__ */ __name((at) => new Date(at).toISOString().slice(0, 10), "day");
|
|
26816
26816
|
|
|
26817
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26817
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/services/project-status/signals/amounts.js
|
|
26818
26818
|
var MONEY = DEFAULT_TASK_CATEGORIES.filter((category) => category.name === "money");
|
|
26819
26819
|
var verbOf = /* @__PURE__ */ __name((text2) => {
|
|
26820
26820
|
if (MONEY_DONE_FORMS.test(text2))
|
|
@@ -26895,7 +26895,7 @@ var amounts = {
|
|
|
26895
26895
|
attention: /* @__PURE__ */ __name((items) => items.flatMap((item2) => item2.chat !== null && item2.data.state === "asked" ? [{ chat: item2.chat, weight: 2, why: "money asked" }] : []), "attention")
|
|
26896
26896
|
};
|
|
26897
26897
|
|
|
26898
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26898
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/services/project-status/signals/children.js
|
|
26899
26899
|
var children = {
|
|
26900
26900
|
id: "children",
|
|
26901
26901
|
version: 1,
|
|
@@ -26924,7 +26924,7 @@ var children = {
|
|
|
26924
26924
|
}, "read")
|
|
26925
26925
|
};
|
|
26926
26926
|
|
|
26927
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26927
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/services/project-status/signals/coverage.js
|
|
26928
26928
|
var coverage = {
|
|
26929
26929
|
id: "coverage",
|
|
26930
26930
|
version: 1,
|
|
@@ -26953,7 +26953,7 @@ var coverage = {
|
|
|
26953
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")
|
|
26954
26954
|
};
|
|
26955
26955
|
|
|
26956
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26956
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/services/project-status/signals/payments.js
|
|
26957
26957
|
var holding = /* @__PURE__ */ __name((row) => row.review !== "rejected", "holding");
|
|
26958
26958
|
var item = /* @__PURE__ */ __name((row, at, data) => ({
|
|
26959
26959
|
signal: "payments",
|
|
@@ -27003,7 +27003,7 @@ var payments = {
|
|
|
27003
27003
|
}, "read")
|
|
27004
27004
|
};
|
|
27005
27005
|
|
|
27006
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27006
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/services/project-status/signals/promises.js
|
|
27007
27007
|
var PATTERNS_PER_CHAT = 3;
|
|
27008
27008
|
var DAY3 = 864e5;
|
|
27009
27009
|
var KINDS2 = /* @__PURE__ */ new Set(["promise", "request"]);
|
|
@@ -27092,7 +27092,7 @@ var promises = {
|
|
|
27092
27092
|
}, "read")
|
|
27093
27093
|
};
|
|
27094
27094
|
|
|
27095
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27095
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/services/project-status/signals/questions.js
|
|
27096
27096
|
var PER_SIDE = 5;
|
|
27097
27097
|
var WEEK = 7 * 864e5;
|
|
27098
27098
|
var NOBODY = /* @__PURE__ */ new Set();
|
|
@@ -27123,7 +27123,7 @@ var questions2 = {
|
|
|
27123
27123
|
}, "attention")
|
|
27124
27124
|
};
|
|
27125
27125
|
|
|
27126
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27126
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/services/project-status/signals/reply-next.js
|
|
27127
27127
|
var targetOf = /* @__PURE__ */ __name((message, chat, owners) => {
|
|
27128
27128
|
const byId2 = /* @__PURE__ */ __name((id2) => chat.messages.find((one2) => one2.id === id2), "byId");
|
|
27129
27129
|
const quoted = message.replyTo ?? (message.replyToId === void 0 ? void 0 : byId2(message.replyToId));
|
|
@@ -27191,7 +27191,7 @@ var replyNext = {
|
|
|
27191
27191
|
attention: /* @__PURE__ */ __name((items) => items.flatMap((item2) => item2.chat !== null && item2.data.next === "owner" ? [{ chat: item2.chat, weight: 2, why: "your move" }] : []), "attention")
|
|
27192
27192
|
};
|
|
27193
27193
|
|
|
27194
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27194
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/services/project-status/signals/topics.js
|
|
27195
27195
|
var escaped2 = /* @__PURE__ */ __name((text2) => text2.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), "escaped");
|
|
27196
27196
|
var wholeWord = /* @__PURE__ */ __name((word) => new RegExp(`(?<![\\p{L}\\p{N}])${escaped2(word)}(?![\\p{L}\\p{N}])`, "u"), "wholeWord");
|
|
27197
27197
|
var matcherOf = /* @__PURE__ */ __name((query) => {
|
|
@@ -27237,7 +27237,7 @@ var topics = {
|
|
|
27237
27237
|
}, "read")
|
|
27238
27238
|
};
|
|
27239
27239
|
|
|
27240
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27240
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/services/project-status/signals/index.js
|
|
27241
27241
|
var STATUS_SIGNALS = [
|
|
27242
27242
|
replyNext,
|
|
27243
27243
|
questions2,
|
|
@@ -27249,7 +27249,7 @@ var STATUS_SIGNALS = [
|
|
|
27249
27249
|
children
|
|
27250
27250
|
];
|
|
27251
27251
|
|
|
27252
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27252
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/services/project-status/index.js
|
|
27253
27253
|
var DAY4 = 864e5;
|
|
27254
27254
|
var STATUS_WINDOW = 300;
|
|
27255
27255
|
var STATUS_CHATS = 16;
|
|
@@ -27438,7 +27438,7 @@ var projectStatus = /* @__PURE__ */ __name(async (store, input) => {
|
|
|
27438
27438
|
};
|
|
27439
27439
|
}, "projectStatus");
|
|
27440
27440
|
|
|
27441
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27441
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/services/account.js
|
|
27442
27442
|
var accountService = /* @__PURE__ */ __name((deps) => {
|
|
27443
27443
|
const online = /* @__PURE__ */ __name(async (command) => {
|
|
27444
27444
|
if (deps.offline)
|
|
@@ -27510,7 +27510,7 @@ var accountService = /* @__PURE__ */ __name((deps) => {
|
|
|
27510
27510
|
};
|
|
27511
27511
|
}, "accountService");
|
|
27512
27512
|
|
|
27513
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27513
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/domain/send-time.js
|
|
27514
27514
|
var MINUTE = 6e4;
|
|
27515
27515
|
var YEAR = 365 * 24 * 60 * MINUTE;
|
|
27516
27516
|
var DELAY = /^(\d+)(m|h|d)$/;
|
|
@@ -27529,7 +27529,7 @@ var sendTime = /* @__PURE__ */ __name((value, now = Date.now(), flag = "--at-tim
|
|
|
27529
27529
|
return new Date(at - at % MINUTE).toISOString();
|
|
27530
27530
|
}, "sendTime");
|
|
27531
27531
|
|
|
27532
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27532
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/services/admin.js
|
|
27533
27533
|
var recordMembership = /* @__PURE__ */ __name(async (deps, operationId, done2, change, fix, write2) => {
|
|
27534
27534
|
try {
|
|
27535
27535
|
const held = await accountStoreIfOpen(deps);
|
|
@@ -27776,7 +27776,7 @@ var linkLimits = /* @__PURE__ */ __name(({ approval, expires, maxUses }) => {
|
|
|
27776
27776
|
return expires === void 0 ? void 0 : sendTime(expires, Date.now(), "--expire-time");
|
|
27777
27777
|
}, "linkLimits");
|
|
27778
27778
|
|
|
27779
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27779
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/services/mail-search.js
|
|
27780
27780
|
var THREADS_PAGE = 500;
|
|
27781
27781
|
var threadsOf = /* @__PURE__ */ __name(async (store, key) => {
|
|
27782
27782
|
const account = await store.accounts.storedAccount(key).catch(() => void 0);
|
|
@@ -27855,7 +27855,7 @@ var readMail = /* @__PURE__ */ __name(async (store, locator, { before: before2 =
|
|
|
27855
27855
|
return thread.slice(Math.max(0, at - before2), at + after + 1).map((hit) => hit.id === message ? { ...hit, anchor: true } : hit);
|
|
27856
27856
|
}, "readMail");
|
|
27857
27857
|
|
|
27858
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27858
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/services/search-kind.js
|
|
27859
27859
|
var NO_MAIL = "no_mail";
|
|
27860
27860
|
var MAIL = "email";
|
|
27861
27861
|
var listContextOf = /* @__PURE__ */ __name(async (store, account, app, stored) => {
|
|
@@ -27902,7 +27902,7 @@ var accountsOfKind = /* @__PURE__ */ __name((kind, chosen, held, explicit, comma
|
|
|
27902
27902
|
return chosenMail.map(({ provider, account }) => ({ provider, account }));
|
|
27903
27903
|
}, "accountsOfKind");
|
|
27904
27904
|
|
|
27905
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27905
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/services/messages-search.js
|
|
27906
27906
|
var MAIL_FIELDS = /* @__PURE__ */ new Set(["to", "cc", "bcc", "subject", "mailbox", "label", "is"]);
|
|
27907
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");
|
|
27908
27908
|
var prepareLucene = /* @__PURE__ */ __name(async (store, account, request, messenger) => {
|
|
@@ -28250,7 +28250,7 @@ var statsLucene = /* @__PURE__ */ __name(async (store, account, request, messeng
|
|
|
28250
28250
|
};
|
|
28251
28251
|
}, "statsLucene");
|
|
28252
28252
|
|
|
28253
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28253
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/services/rankings-selection.js
|
|
28254
28254
|
var RANKING_SELECTION_BYTES = 64 * 1024;
|
|
28255
28255
|
var object = /* @__PURE__ */ __name((value) => value !== null && typeof value === "object" && !Array.isArray(value) ? value : void 0, "object");
|
|
28256
28256
|
function invalid(message = "ranking selection is invalid \u2014 obtain a new drilldown from stats top") {
|
|
@@ -28419,7 +28419,7 @@ var readRankingSelection = /* @__PURE__ */ __name(async (store, input) => {
|
|
|
28419
28419
|
};
|
|
28420
28420
|
}, "readRankingSelection");
|
|
28421
28421
|
|
|
28422
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28422
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/services/search-record.js
|
|
28423
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");
|
|
28424
28424
|
var searchRecordOf = /* @__PURE__ */ __name((command, params) => ({
|
|
28425
28425
|
command,
|
|
@@ -28429,7 +28429,7 @@ var searchRecordOf = /* @__PURE__ */ __name((command, params) => ({
|
|
|
28429
28429
|
fieldsVersion: FIELD_VERSION
|
|
28430
28430
|
}), "searchRecordOf");
|
|
28431
28431
|
|
|
28432
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28432
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/services/admin-statistics.js
|
|
28433
28433
|
function invalid2(message) {
|
|
28434
28434
|
throw new CliError("validation_error", message);
|
|
28435
28435
|
}
|
|
@@ -28723,7 +28723,7 @@ var adminStatisticsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
28723
28723
|
}, "evidence")
|
|
28724
28724
|
}), "adminStatisticsService");
|
|
28725
28725
|
|
|
28726
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28726
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/services/archive-gaps.js
|
|
28727
28727
|
import { createHash as createHash7, randomUUID as randomUUID4 } from "node:crypto";
|
|
28728
28728
|
var GAP_BOUNDS = { maxGaps: 5, limit: 500, timeMs: 3e4 };
|
|
28729
28729
|
var validateRepair = /* @__PURE__ */ __name((messenger, options) => {
|
|
@@ -28860,16 +28860,16 @@ var gapsService = /* @__PURE__ */ __name((deps) => {
|
|
|
28860
28860
|
return { plan, repair };
|
|
28861
28861
|
}, "gapsService");
|
|
28862
28862
|
|
|
28863
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28863
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/services/attachments.js
|
|
28864
28864
|
import { createHash as createHash9 } from "node:crypto";
|
|
28865
28865
|
import { constants as constants2, mkdirSync as mkdirSync2 } from "node:fs";
|
|
28866
28866
|
import { lstat as lstat4, open as open6, readFile, stat as stat2 } from "node:fs/promises";
|
|
28867
28867
|
|
|
28868
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28868
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/attachments/directory.js
|
|
28869
28869
|
import { lstat as lstat2, readdir as readdir2, realpath as realpath3 } from "node:fs/promises";
|
|
28870
28870
|
import { basename as basename4, join as join8, relative as relative2, sep as sep2 } from "node:path";
|
|
28871
28871
|
|
|
28872
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28872
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/sends/upload.js
|
|
28873
28873
|
import { openAsBlob, realpathSync } from "node:fs";
|
|
28874
28874
|
import { open as open4, stat } from "node:fs/promises";
|
|
28875
28875
|
import { basename as basename3, dirname as dirname3, extname, isAbsolute as isAbsolute2, relative, resolve as resolve5, sep } from "node:path";
|
|
@@ -29071,7 +29071,7 @@ var readStickerFile = /* @__PURE__ */ __name(async (path, maxBytes, read2) => {
|
|
|
29071
29071
|
return { name, source };
|
|
29072
29072
|
}, "readStickerFile");
|
|
29073
29073
|
|
|
29074
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29074
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/attachments/directory.js
|
|
29075
29075
|
var MAX_FILES = 1e4;
|
|
29076
29076
|
var directoryPaths = /* @__PURE__ */ __name(async (store, chat, directory2, app, env) => {
|
|
29077
29077
|
if (refusedPlace(directory2, app, env))
|
|
@@ -29140,15 +29140,15 @@ var directoryPaths = /* @__PURE__ */ __name(async (store, chat, directory2, app,
|
|
|
29140
29140
|
return choices;
|
|
29141
29141
|
}, "directoryPaths");
|
|
29142
29142
|
|
|
29143
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29143
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/attachments/documents.js
|
|
29144
29144
|
import { posix } from "node:path";
|
|
29145
29145
|
|
|
29146
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29146
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/attachments/container.js
|
|
29147
29147
|
import { setImmediate as tick } from "node:timers/promises";
|
|
29148
29148
|
import { crc32 } from "node:zlib";
|
|
29149
29149
|
var import_xmldom = __toESM(require_lib(), 1);
|
|
29150
29150
|
|
|
29151
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29151
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/attachments/encoding.js
|
|
29152
29152
|
var import_chardet = __toESM(require_lib2(), 1);
|
|
29153
29153
|
var import_iconv_lite = __toESM(require_lib3(), 1);
|
|
29154
29154
|
var SAMPLE = 65536;
|
|
@@ -29250,7 +29250,7 @@ var decodeXml = /* @__PURE__ */ __name((bytes2) => {
|
|
|
29250
29250
|
return result.text;
|
|
29251
29251
|
}, "decodeXml");
|
|
29252
29252
|
|
|
29253
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29253
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/attachments/container.js
|
|
29254
29254
|
var MAX_PART = 10 * 1024 * 1024;
|
|
29255
29255
|
var MAX_ENTRIES = 1e3;
|
|
29256
29256
|
var decoder = new TextDecoder("utf-8", { fatal: true });
|
|
@@ -29465,7 +29465,7 @@ var elements = /* @__PURE__ */ __name((node, name, namespace) => {
|
|
|
29465
29465
|
return found;
|
|
29466
29466
|
}, "elements");
|
|
29467
29467
|
|
|
29468
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29468
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/attachments/sheets.js
|
|
29469
29469
|
var columnName = /* @__PURE__ */ __name((column) => {
|
|
29470
29470
|
let name = "";
|
|
29471
29471
|
for (let rest = column; rest > 0; rest = Math.floor((rest - 1) / 26))
|
|
@@ -29520,7 +29520,7 @@ var sheetText = /* @__PURE__ */ __name((sheets2, maxChars = MAX_TEXT_CHARS) => {
|
|
|
29520
29520
|
return { text: parts.join("").trim(), truncated: false };
|
|
29521
29521
|
}, "sheetText");
|
|
29522
29522
|
|
|
29523
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29523
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/attachments/documents.js
|
|
29524
29524
|
var OFFICE = "urn:oasis:names:tc:opendocument:xmlns:office:1.0";
|
|
29525
29525
|
var TEXT = "urn:oasis:names:tc:opendocument:xmlns:text:1.0";
|
|
29526
29526
|
var TABLE = "urn:oasis:names:tc:opendocument:xmlns:table:1.0";
|
|
@@ -29920,10 +29920,10 @@ var readDocument = /* @__PURE__ */ __name(async (bytes2, kind, signal) => {
|
|
|
29920
29920
|
}
|
|
29921
29921
|
}, "readDocument");
|
|
29922
29922
|
|
|
29923
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29923
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/attachments/extract.js
|
|
29924
29924
|
import { extname as extname3 } from "node:path";
|
|
29925
29925
|
|
|
29926
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29926
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/readers/engine.js
|
|
29927
29927
|
import { readFileSync } from "node:fs";
|
|
29928
29928
|
import { dirname as dirname4, extname as extname2, join as join9 } from "node:path";
|
|
29929
29929
|
import { fileURLToPath } from "node:url";
|
|
@@ -29984,7 +29984,7 @@ var derived = /* @__PURE__ */ __name((bytes2, extractor, read2) => {
|
|
|
29984
29984
|
}
|
|
29985
29985
|
}, "derived");
|
|
29986
29986
|
|
|
29987
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29987
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/readers/image/index.js
|
|
29988
29988
|
var IMAGES = /* @__PURE__ */ new Set([".jpg", ".jpeg", ".png", ".webp", ".gif", ".heic", ".tif", ".tiff", ".bmp"]);
|
|
29989
29989
|
var image2 = {
|
|
29990
29990
|
id: "image",
|
|
@@ -29993,7 +29993,7 @@ var image2 = {
|
|
|
29993
29993
|
read: /* @__PURE__ */ __name(async () => ({ status: "needs-agent" }), "read")
|
|
29994
29994
|
};
|
|
29995
29995
|
|
|
29996
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29996
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/readers/doc/index.js
|
|
29997
29997
|
var OLE = "\xD0\xCF\xE0\xA1\xB1\xE1";
|
|
29998
29998
|
var doc = {
|
|
29999
29999
|
id: "doc",
|
|
@@ -30005,7 +30005,7 @@ var doc = {
|
|
|
30005
30005
|
}), "read")
|
|
30006
30006
|
};
|
|
30007
30007
|
|
|
30008
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30008
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/readers/docx/index.js
|
|
30009
30009
|
var DOCX = "application/vnd.openxmlformats-officedocument.wordprocessingml.document";
|
|
30010
30010
|
var docx = {
|
|
30011
30011
|
id: "docx",
|
|
@@ -30018,7 +30018,7 @@ var docx = {
|
|
|
30018
30018
|
}), "read")
|
|
30019
30019
|
};
|
|
30020
30020
|
|
|
30021
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30021
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/attachments/markup.js
|
|
30022
30022
|
var import_iconv_lite2 = __toESM(require_lib3(), 1);
|
|
30023
30023
|
var RTF_SKIPPED = /* @__PURE__ */ new Set([
|
|
30024
30024
|
"fonttbl",
|
|
@@ -30194,7 +30194,7 @@ var htmlText = /* @__PURE__ */ __name((source) => {
|
|
|
30194
30194
|
}, "htmlText");
|
|
30195
30195
|
var safeChar = /* @__PURE__ */ __name((code, fallback) => code > 0 && code <= 1114111 ? String.fromCodePoint(code) : fallback, "safeChar");
|
|
30196
30196
|
|
|
30197
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30197
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/readers/html/page.js
|
|
30198
30198
|
var clean = /* @__PURE__ */ __name((value) => typeof value === "string" ? value.replace(/\s+/g, " ").trim() : "", "clean");
|
|
30199
30199
|
var namesIn = /* @__PURE__ */ __name((value) => [value].flat().map((entry) => typeof entry === "string" ? clean(entry) : clean(entry?.name)).filter(Boolean).join(", "), "namesIn");
|
|
30200
30200
|
var jsonLdNodes = /* @__PURE__ */ __name((document) => {
|
|
@@ -30250,7 +30250,7 @@ var markdownSections = /* @__PURE__ */ __name((text2) => {
|
|
|
30250
30250
|
return found.map((section, index) => ({ ...section, end: found[index + 1]?.start ?? text2.length }));
|
|
30251
30251
|
}, "markdownSections");
|
|
30252
30252
|
|
|
30253
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30253
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/readers/html/index.js
|
|
30254
30254
|
var HTML = /* @__PURE__ */ new Set([".html", ".htm", ".xhtml"]);
|
|
30255
30255
|
var first = /* @__PURE__ */ __name((...values) => values.find((value) => typeof value === "string" && value !== ""), "first");
|
|
30256
30256
|
var loaded = /* @__PURE__ */ __name(async (load, name) => {
|
|
@@ -30321,7 +30321,7 @@ var html = {
|
|
|
30321
30321
|
}, "read")
|
|
30322
30322
|
};
|
|
30323
30323
|
|
|
30324
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30324
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/readers/office/index.js
|
|
30325
30325
|
var office = {
|
|
30326
30326
|
id: "office",
|
|
30327
30327
|
version: documentExtractor("odt"),
|
|
@@ -30332,7 +30332,7 @@ var office = {
|
|
|
30332
30332
|
}, "read")
|
|
30333
30333
|
};
|
|
30334
30334
|
|
|
30335
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30335
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/readers/pdf/index.js
|
|
30336
30336
|
var pdf = {
|
|
30337
30337
|
id: "pdf",
|
|
30338
30338
|
version: "unpdf",
|
|
@@ -30399,7 +30399,7 @@ var pdf = {
|
|
|
30399
30399
|
}), "read")
|
|
30400
30400
|
};
|
|
30401
30401
|
|
|
30402
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30402
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/readers/plain/index.js
|
|
30403
30403
|
var PLAIN = /* @__PURE__ */ new Set([".txt", ".md", ".markdown", ".csv", ".tsv", ".json", ".log"]);
|
|
30404
30404
|
var isPlain = /* @__PURE__ */ __name((hint) => PLAIN.has(extensionOf(hint)) || hint.mime?.startsWith("text/") || hint.mime === "application/json", "isPlain");
|
|
30405
30405
|
var readPlain = /* @__PURE__ */ __name((bytes2) => {
|
|
@@ -30419,7 +30419,7 @@ var plain = {
|
|
|
30419
30419
|
read: /* @__PURE__ */ __name(async (bytes2) => readPlain(bytes2), "read")
|
|
30420
30420
|
};
|
|
30421
30421
|
|
|
30422
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30422
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/readers/rtf/index.js
|
|
30423
30423
|
var rtf = {
|
|
30424
30424
|
id: "rtf",
|
|
30425
30425
|
version: "v1",
|
|
@@ -30427,10 +30427,10 @@ var rtf = {
|
|
|
30427
30427
|
read: /* @__PURE__ */ __name(async (bytes2) => derived(bytes2, "rtf:v1", rtfText), "read")
|
|
30428
30428
|
};
|
|
30429
30429
|
|
|
30430
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30430
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/readers/sheets/index.js
|
|
30431
30431
|
import { basename as basename5 } from "node:path";
|
|
30432
30432
|
|
|
30433
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30433
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/attachments/csv-spans.js
|
|
30434
30434
|
var delimitedSpans = /* @__PURE__ */ __name((text2, delimiter, maxCells = 1e4) => {
|
|
30435
30435
|
const cells = [];
|
|
30436
30436
|
let row = 1, column = 1, start = 0, quoted = false, truncated = false;
|
|
@@ -30468,7 +30468,7 @@ var delimitedSpans = /* @__PURE__ */ __name((text2, delimiter, maxCells = 1e4) =
|
|
|
30468
30468
|
return { cells, truncated };
|
|
30469
30469
|
}, "delimitedSpans");
|
|
30470
30470
|
|
|
30471
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30471
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/readers/sheets/index.js
|
|
30472
30472
|
var DELIMITED = {
|
|
30473
30473
|
".csv": ",",
|
|
30474
30474
|
".tsv": " ",
|
|
@@ -30507,7 +30507,7 @@ var sheets = {
|
|
|
30507
30507
|
}, "read")
|
|
30508
30508
|
};
|
|
30509
30509
|
|
|
30510
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30510
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/readers/registry.js
|
|
30511
30511
|
var BUILT_INS2 = [office, pdf, docx, doc, rtf, html, sheets, plain, image2];
|
|
30512
30512
|
var HEAD_BYTES = 1024;
|
|
30513
30513
|
var readers = [...BUILT_INS2];
|
|
@@ -30517,7 +30517,7 @@ var readWithRegistry = /* @__PURE__ */ __name(async (bytes2, hint, context2) =>
|
|
|
30517
30517
|
return reader ? reader.read(bytes2, hint, context2) : { status: "unsupported" };
|
|
30518
30518
|
}, "readWithRegistry");
|
|
30519
30519
|
|
|
30520
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30520
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/attachments/extract.js
|
|
30521
30521
|
var importEngine = /* @__PURE__ */ __name((name) => importFrom(new URL("attachments/extract.js", import.meta.resolve("@wirecat/cli-core")).href, name), "importEngine");
|
|
30522
30522
|
var extensionOf2 = /* @__PURE__ */ __name(({ name, path }) => extname3(name ?? path).toLowerCase(), "extensionOf");
|
|
30523
30523
|
var extractText = /* @__PURE__ */ __name(async (bytes2, hint, load, signal, env = process.env) => {
|
|
@@ -31596,7 +31596,7 @@ function imageSize(input) {
|
|
|
31596
31596
|
}
|
|
31597
31597
|
__name(imageSize, "imageSize");
|
|
31598
31598
|
|
|
31599
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31599
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/attachments/ocr.js
|
|
31600
31600
|
var MAX_PAGES = 20;
|
|
31601
31601
|
var MAX_PIXELS = 2e7;
|
|
31602
31602
|
var cancelled2 = /* @__PURE__ */ __name((signal) => {
|
|
@@ -31747,7 +31747,7 @@ var ocrPdf = /* @__PURE__ */ __name(async (bytes2, pipeline2, load, signal) => {
|
|
|
31747
31747
|
}
|
|
31748
31748
|
}, "ocrPdf");
|
|
31749
31749
|
|
|
31750
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31750
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/attachments/pdf-preview.js
|
|
31751
31751
|
var pdfPreview = /* @__PURE__ */ __name(async (bytes2, page, signal, load = importEngine, env = process.env) => {
|
|
31752
31752
|
const limits = pdfPreviewLimits(env);
|
|
31753
31753
|
const cancelled4 = /* @__PURE__ */ __name(() => {
|
|
@@ -31824,7 +31824,7 @@ var pdfPreview = /* @__PURE__ */ __name(async (bytes2, page, signal, load = impo
|
|
|
31824
31824
|
}
|
|
31825
31825
|
}, "pdfPreview");
|
|
31826
31826
|
|
|
31827
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31827
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/attachments/transfer.js
|
|
31828
31828
|
import { createHash as createHash8 } from "node:crypto";
|
|
31829
31829
|
import { constants } from "node:fs";
|
|
31830
31830
|
import { lstat as lstat3, open as open5 } from "node:fs/promises";
|
|
@@ -31932,7 +31932,7 @@ var transferMime = /* @__PURE__ */ __name((head, hint, name = null) => {
|
|
|
31932
31932
|
return hint !== null && /^[a-z0-9.+-]+\/[a-z0-9.+-]+$/i.test(hint) ? hint : "application/octet-stream";
|
|
31933
31933
|
}, "transferMime");
|
|
31934
31934
|
|
|
31935
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31935
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/services/file-download.js
|
|
31936
31936
|
import { createWriteStream, mkdirSync } from "node:fs";
|
|
31937
31937
|
import { link as link3, rm } from "node:fs/promises";
|
|
31938
31938
|
import { join as join10, resolve as resolve6 } from "node:path";
|
|
@@ -32046,7 +32046,7 @@ var save = /* @__PURE__ */ __name(async (file2, directory2, fallbackName, { uniq
|
|
|
32046
32046
|
}
|
|
32047
32047
|
}, "save");
|
|
32048
32048
|
|
|
32049
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32049
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/services/attachments.js
|
|
32050
32050
|
var ATTACHMENT_QUERY = {
|
|
32051
32051
|
entity: "attachment",
|
|
32052
32052
|
backend: "sql",
|
|
@@ -32469,7 +32469,7 @@ var attachmentsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
32469
32469
|
}, "setText")
|
|
32470
32470
|
}), "attachmentsService");
|
|
32471
32471
|
|
|
32472
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32472
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/services/chat-documents.js
|
|
32473
32473
|
var chatDocumentsService = /* @__PURE__ */ __name((deps) => ({
|
|
32474
32474
|
list: /* @__PURE__ */ __name(async (chat, { limit, offset, ref }) => {
|
|
32475
32475
|
const store = await accountStore(deps);
|
|
@@ -32499,7 +32499,7 @@ var chatDocumentsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
32499
32499
|
}, "list")
|
|
32500
32500
|
}), "chatDocumentsService");
|
|
32501
32501
|
|
|
32502
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32502
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/services/retention.js
|
|
32503
32503
|
var observationDuration = /* @__PURE__ */ __name((text2, flag) => {
|
|
32504
32504
|
const match = /^(\d+(?:\.\d+)?)([smhdw])$/.exec(text2);
|
|
32505
32505
|
const units2 = { s: 1e3, m: 6e4, h: 36e5, d: 864e5, w: 6048e5 };
|
|
@@ -32586,7 +32586,7 @@ var isRetentionSelection = /* @__PURE__ */ __name((selection) => {
|
|
|
32586
32586
|
}
|
|
32587
32587
|
}, "isRetentionSelection");
|
|
32588
32588
|
|
|
32589
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32589
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/services/counters.js
|
|
32590
32590
|
var counterFields = /* @__PURE__ */ __name((text2 = "views,reactions,comments") => {
|
|
32591
32591
|
const fields = text2.split(",").map((one2) => one2.trim());
|
|
32592
32592
|
if (!fields.length || fields.some((one2) => !COUNTER_FIELDS.includes(one2)) || new Set(fields).size !== fields.length)
|
|
@@ -32793,7 +32793,7 @@ var countersService = /* @__PURE__ */ __name((deps) => {
|
|
|
32793
32793
|
};
|
|
32794
32794
|
}, "countersService");
|
|
32795
32795
|
|
|
32796
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32796
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/services/search-refresh.js
|
|
32797
32797
|
var SYNC_KEY = "messages.sync-first";
|
|
32798
32798
|
var SYNC_BOUNDS = { maxChats: 5, timeMs: 3e4, maxMessages: 500 };
|
|
32799
32799
|
var keyOf2 = /* @__PURE__ */ __name((chat) => JSON.stringify([chat.account.provider, chat.account.account, chat.chatId]), "keyOf");
|
|
@@ -32925,7 +32925,7 @@ var withRefresh = /* @__PURE__ */ __name((found, refreshed) => ({
|
|
|
32925
32925
|
...!refreshed || refreshed.complete ? {} : { coverage: { ...found.coverage, state: "stale" } }
|
|
32926
32926
|
}), "withRefresh");
|
|
32927
32927
|
|
|
32928
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32928
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/services/embeddings-search.js
|
|
32929
32929
|
var CANDIDATES = 50;
|
|
32930
32930
|
var WORD_HITS = 200;
|
|
32931
32931
|
var RRF_K = 60;
|
|
@@ -33200,13 +33200,13 @@ var meanOf = /* @__PURE__ */ __name((vectors) => {
|
|
|
33200
33200
|
return mean2.map((value) => value / length);
|
|
33201
33201
|
}, "meanOf");
|
|
33202
33202
|
|
|
33203
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33203
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/services/embeddings.js
|
|
33204
33204
|
var embeddingsService = /* @__PURE__ */ __name((deps) => ({
|
|
33205
33205
|
...embeddingsMaintenance(deps),
|
|
33206
33206
|
...embeddingsSearch(deps)
|
|
33207
33207
|
}), "embeddingsService");
|
|
33208
33208
|
|
|
33209
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33209
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/services/folders.js
|
|
33210
33210
|
var foldersService = /* @__PURE__ */ __name((deps) => {
|
|
33211
33211
|
const online = /* @__PURE__ */ __name(async (command) => {
|
|
33212
33212
|
if (deps.offline)
|
|
@@ -33347,7 +33347,7 @@ var foldersService = /* @__PURE__ */ __name((deps) => {
|
|
|
33347
33347
|
};
|
|
33348
33348
|
}, "foldersService");
|
|
33349
33349
|
|
|
33350
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33350
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/services/mentions.js
|
|
33351
33351
|
var REVIEW_COUNT = 500;
|
|
33352
33352
|
var mentionsService = /* @__PURE__ */ __name((deps) => {
|
|
33353
33353
|
const located = /* @__PURE__ */ __name(async () => {
|
|
@@ -33426,7 +33426,7 @@ var mentionsService = /* @__PURE__ */ __name((deps) => {
|
|
|
33426
33426
|
};
|
|
33427
33427
|
}, "mentionsService");
|
|
33428
33428
|
|
|
33429
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33429
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/domain/formatting.js
|
|
33430
33430
|
var invalid3 = /* @__PURE__ */ __name(() => new CliError("validation_error", "the messenger formatter returned invalid text spans"), "invalid");
|
|
33431
33431
|
var validateFormattedText = /* @__PURE__ */ __name((formatted2) => {
|
|
33432
33432
|
const { text: text2, spans } = formatted2;
|
|
@@ -33486,7 +33486,7 @@ var visibleFormattedText = /* @__PURE__ */ __name((formatted2) => {
|
|
|
33486
33486
|
};
|
|
33487
33487
|
}, "visibleFormattedText");
|
|
33488
33488
|
|
|
33489
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33489
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/domain/message-link.js
|
|
33490
33490
|
var fileLinks = /* @__PURE__ */ __name((attachments) => hitFiles(attachments).map(({ position, kind, name }) => ({
|
|
33491
33491
|
position,
|
|
33492
33492
|
kind,
|
|
@@ -33535,7 +33535,7 @@ var validatePermalink = /* @__PURE__ */ __name((link4) => {
|
|
|
33535
33535
|
return { url: link4.url, access: link4.access, reason: link4.reason };
|
|
33536
33536
|
}, "validatePermalink");
|
|
33537
33537
|
|
|
33538
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33538
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/domain/pin-duration.js
|
|
33539
33539
|
var spokenSeconds = /* @__PURE__ */ __name((seconds) => {
|
|
33540
33540
|
if (seconds % 86400 === 0 && seconds > 86400)
|
|
33541
33541
|
return `${seconds / 86400}d`;
|
|
@@ -33567,7 +33567,7 @@ var pinDurationOf = /* @__PURE__ */ __name((value, allowed, flag = "--expire-tim
|
|
|
33567
33567
|
return seconds;
|
|
33568
33568
|
}, "pinDurationOf");
|
|
33569
33569
|
|
|
33570
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33570
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/sends/send-as.js
|
|
33571
33571
|
var sendAsCheck = /* @__PURE__ */ __name((connection, sendAs) => {
|
|
33572
33572
|
if (sendAs === void 0) {
|
|
33573
33573
|
const saved = connection.savedSender?.bind(connection);
|
|
@@ -33592,7 +33592,7 @@ var typedSendAs = /* @__PURE__ */ __name((typed) => {
|
|
|
33592
33592
|
return sendAs;
|
|
33593
33593
|
}, "typedSendAs");
|
|
33594
33594
|
|
|
33595
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33595
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/search/total.js
|
|
33596
33596
|
var TOTAL_CAP = 1e4;
|
|
33597
33597
|
var totalOf = /* @__PURE__ */ __name((count4, shown, hasMore, exact = true) => {
|
|
33598
33598
|
const least = shown + (hasMore ? 1 : 0);
|
|
@@ -33603,7 +33603,7 @@ var totalOf = /* @__PURE__ */ __name((count4, shown, hasMore, exact = true) => {
|
|
|
33603
33603
|
return { value: count4, relation: exact ? "eq" : "gte" };
|
|
33604
33604
|
}, "totalOf");
|
|
33605
33605
|
|
|
33606
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33606
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/search/lucene/meaning-parts.js
|
|
33607
33607
|
var WORD_FIELDS = /* @__PURE__ */ new Set(["text", "exact"]);
|
|
33608
33608
|
var fieldsOfQuery = /* @__PURE__ */ __name((root, everything) => {
|
|
33609
33609
|
let narrows = false;
|
|
@@ -33632,7 +33632,7 @@ var meaningWords = /* @__PURE__ */ __name((root) => {
|
|
|
33632
33632
|
return wanted(root).join(" ").trim();
|
|
33633
33633
|
}, "meaningWords");
|
|
33634
33634
|
|
|
33635
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33635
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/search/question-plan.js
|
|
33636
33636
|
var words3 = /* @__PURE__ */ __name((text2) => normalize(text2).match(/[\p{L}\p{N}]+/gu) ?? [], "words");
|
|
33637
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"));
|
|
33638
33638
|
var questionWord = /\b(?:what|which|how|who|where|when|can|could|should)\b|(?:^|\s)(?:сколько|какой|какая|какие|какое|кто|кому|кем|где|когда|как|что|можно|может|могут|ли)(?:\s|$)/iu;
|
|
@@ -33764,7 +33764,7 @@ var questionLookup = /* @__PURE__ */ __name((text2) => {
|
|
|
33764
33764
|
return terms.length ? anyOfTerms(terms, plan.scope) : void 0;
|
|
33765
33765
|
}, "questionLookup");
|
|
33766
33766
|
|
|
33767
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33767
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/services/messages-combined.js
|
|
33768
33768
|
var COMBINED_DEFAULTS = { candidateDepth: 300, rrfK: 60, rerank: "all", chatCap: 0 };
|
|
33769
33769
|
var tokensOf = /* @__PURE__ */ __name((text2) => normalize(text2).match(/[\p{L}\p{N}\p{Co}\p{M}]+/gu) ?? [], "tokensOf");
|
|
33770
33770
|
var searchCombined = /* @__PURE__ */ __name(async (store, account, request, messenger = {}, options = COMBINED_DEFAULTS) => {
|
|
@@ -33957,7 +33957,7 @@ var signals = /* @__PURE__ */ __name((hit, terms, corrections, execution, mode,
|
|
|
33957
33957
|
return mode === "coverage" ? coverage2 * 4 : mode === "proximity" ? proximity : mode === "phrase" ? phrase : coverage2 * 4 + proximity + phrase;
|
|
33958
33958
|
}, "signals");
|
|
33959
33959
|
|
|
33960
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33960
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/services/messages-discovery.js
|
|
33961
33961
|
var MEANING_DEPTH = 100;
|
|
33962
33962
|
var RRF_K2 = 60;
|
|
33963
33963
|
var RERANK_DEPTH = 50;
|
|
@@ -34282,7 +34282,7 @@ var mixedWithReranker = /* @__PURE__ */ __name((head, scores) => {
|
|
|
34282
34282
|
})).sort((a, b) => b.mixed - a.mixed).map(({ hit }) => hit);
|
|
34283
34283
|
}, "mixedWithReranker");
|
|
34284
34284
|
|
|
34285
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34285
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/services/thread-context.js
|
|
34286
34286
|
var THREAD_BOUNDS = { maxHops: 8, maxMessages: 50, maxBytes: 65536, withinMs: 864e5 };
|
|
34287
34287
|
var bytes = /* @__PURE__ */ __name((items, links) => Buffer.byteLength(JSON.stringify({ items, links }), "utf8"), "bytes");
|
|
34288
34288
|
var threadBounds = /* @__PURE__ */ __name((options = {}) => {
|
|
@@ -34481,7 +34481,7 @@ var readThreadContext = /* @__PURE__ */ __name(async (store, account, chat, mess
|
|
|
34481
34481
|
return result;
|
|
34482
34482
|
}, "readThreadContext");
|
|
34483
34483
|
|
|
34484
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34484
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/services/messages-archive-search.js
|
|
34485
34485
|
var SEARCH_FILL_MS = 200;
|
|
34486
34486
|
var statsStore = /* @__PURE__ */ __name(async (store, account, request, messenger = {}) => {
|
|
34487
34487
|
const stop = Date.now() + SEARCH_FILL_MS;
|
|
@@ -34548,12 +34548,12 @@ var accountOf2 = /* @__PURE__ */ __name((hit) => {
|
|
|
34548
34548
|
}, "accountOf");
|
|
34549
34549
|
var keyOf3 = /* @__PURE__ */ __name(({ provider, account }) => `${provider}/${account}`, "keyOf");
|
|
34550
34550
|
|
|
34551
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34551
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/services/pictures.js
|
|
34552
34552
|
import { createHash as createHash10 } from "node:crypto";
|
|
34553
34553
|
import { readFile as readFile2, stat as stat3 } from "node:fs/promises";
|
|
34554
34554
|
import { setTimeout as sleep4 } from "node:timers/promises";
|
|
34555
34555
|
|
|
34556
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34556
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/domain/models.js
|
|
34557
34557
|
var GROUP_SETTINGS = [
|
|
34558
34558
|
"allCanPin",
|
|
34559
34559
|
"onlyAdminsAdd",
|
|
@@ -34567,7 +34567,7 @@ var ADMIN_RIGHTS = ["read", "members", "admins", "info", "pin", "link", "post",
|
|
|
34567
34567
|
var senderIsMe = /* @__PURE__ */ __name((message, account) => message.outgoing === true || message.senderId !== null && String(message.senderId) === account, "senderIsMe");
|
|
34568
34568
|
var MEDIA_KINDS = ["photo", "video", "file", "audio", "link"];
|
|
34569
34569
|
|
|
34570
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34570
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/services/pictures.js
|
|
34571
34571
|
var PICTURE_MAX_BYTES = 25 * 1024 * 1024;
|
|
34572
34572
|
var PICTURE_FLOOR = 0.25;
|
|
34573
34573
|
var PAGE4 = 50;
|
|
@@ -34584,7 +34584,7 @@ var picturesService = /* @__PURE__ */ __name((deps) => {
|
|
|
34584
34584
|
const directory2 = imageModelsDirectory(deps.env);
|
|
34585
34585
|
if (!isImageModelInstalled(model2, directory2))
|
|
34586
34586
|
throw new CliError("not_found", missingModel(model2.id), { reason: "model.not-downloaded", model: model2.id });
|
|
34587
|
-
const { openPictureEmbedder } = await import("./embedder-
|
|
34587
|
+
const { openPictureEmbedder } = await import("./embedder-SCKLAVKW.js");
|
|
34588
34588
|
return openPictureEmbedder(model2, directory2);
|
|
34589
34589
|
}, "open");
|
|
34590
34590
|
const embedder = /* @__PURE__ */ __name(() => {
|
|
@@ -34781,7 +34781,7 @@ var withPictures = /* @__PURE__ */ __name((messages, pictures) => ({
|
|
|
34781
34781
|
}, "search")
|
|
34782
34782
|
}), "withPictures");
|
|
34783
34783
|
|
|
34784
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34784
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/services/messages-meaning.js
|
|
34785
34785
|
var meaningLane = /* @__PURE__ */ __name((deps) => async (question, accounts, shared, within) => {
|
|
34786
34786
|
const target2 = embeddingTarget(deps, DEFAULT_TEXT_MODEL);
|
|
34787
34787
|
const skipped = /* @__PURE__ */ __name((reason, step) => ({
|
|
@@ -34849,7 +34849,7 @@ var meaningLane = /* @__PURE__ */ __name((deps) => async (question, accounts, sh
|
|
|
34849
34849
|
}
|
|
34850
34850
|
}, "meaningLane");
|
|
34851
34851
|
|
|
34852
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34852
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/services/messages-rerank.js
|
|
34853
34853
|
var rerankLane = /* @__PURE__ */ __name((deps) => {
|
|
34854
34854
|
const choice = deps.reranker ?? DEFAULT_RERANK_MODEL;
|
|
34855
34855
|
if (choice === "off")
|
|
@@ -34861,9 +34861,9 @@ var rerankLane = /* @__PURE__ */ __name((deps) => {
|
|
|
34861
34861
|
return { skipped: { reason: `${model.id} is not downloaded`, step: "models.download", model: model.id } };
|
|
34862
34862
|
try {
|
|
34863
34863
|
const warm = deps.embedders;
|
|
34864
|
-
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-JWKE7GPV.js")).openRerankerProcess(model, directory2, {
|
|
34865
34865
|
threads: defaultThreads()
|
|
34866
|
-
})) : await (await import("./rerank-
|
|
34866
|
+
})) : await (await import("./rerank-JKHDSEBI.js")).openReranker(model, directory2);
|
|
34867
34867
|
return {
|
|
34868
34868
|
model: model.id,
|
|
34869
34869
|
score: /* @__PURE__ */ __name((question, passages) => reranker.score(plainWords(question), passages), "score"),
|
|
@@ -34883,17 +34883,17 @@ var rerankLane = /* @__PURE__ */ __name((deps) => {
|
|
|
34883
34883
|
};
|
|
34884
34884
|
}, "rerankLane");
|
|
34885
34885
|
|
|
34886
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34886
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/services/document-pictures.js
|
|
34887
34887
|
var openPictureEmbedderFor = /* @__PURE__ */ __name(async ({ env, command } = {}) => {
|
|
34888
34888
|
const model = imageModel(DEFAULT_IMAGE_MODEL);
|
|
34889
34889
|
const directory2 = imageModelsDirectory(env);
|
|
34890
34890
|
if (!isImageModelInstalled(model, directory2))
|
|
34891
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 });
|
|
34892
|
-
const { openPictureEmbedder } = await import("./embedder-
|
|
34892
|
+
const { openPictureEmbedder } = await import("./embedder-SCKLAVKW.js");
|
|
34893
34893
|
return openPictureEmbedder(model, directory2);
|
|
34894
34894
|
}, "openPictureEmbedderFor");
|
|
34895
34895
|
|
|
34896
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34896
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/services/document-source.js
|
|
34897
34897
|
var documentSource = /* @__PURE__ */ __name((note2, accounts, profiles, file2) => {
|
|
34898
34898
|
const metadata = note2.frontMatter;
|
|
34899
34899
|
const account = accounts.find(({ id: id2 }) => String(id2) === note2.folderId);
|
|
@@ -34908,7 +34908,7 @@ var documentSource = /* @__PURE__ */ __name((note2, accounts, profiles, file2) =
|
|
|
34908
34908
|
};
|
|
34909
34909
|
}, "documentSource");
|
|
34910
34910
|
|
|
34911
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34911
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/services/notes-title-tier.js
|
|
34912
34912
|
var plainQueryWords = /* @__PURE__ */ __name((query) => {
|
|
34913
34913
|
let root;
|
|
34914
34914
|
try {
|
|
@@ -34935,7 +34935,7 @@ var titleTiers = /* @__PURE__ */ __name((hits, words4) => {
|
|
|
34935
34935
|
return [...hits].sort((a, b) => rank(a) - rank(b));
|
|
34936
34936
|
}, "titleTiers");
|
|
34937
34937
|
|
|
34938
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34938
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/services/notes-search.js
|
|
34939
34939
|
var storeQuery = /* @__PURE__ */ __name(async (store, text2, { exact, timezone } = {}) => resolvedQuery(store, parsedQuery(text2, exact), timezone), "storeQuery");
|
|
34940
34940
|
var parsedQuery = /* @__PURE__ */ __name((text2, exact) => validateFields(parseLucene(text2, { ...SEARCH_QUERY, defaultField: exact ? "exact" : "text" })).root, "parsedQuery");
|
|
34941
34941
|
var resolvedQuery = /* @__PURE__ */ __name(async (store, root, timezone) => {
|
|
@@ -35378,7 +35378,7 @@ var searchNotesOf = /* @__PURE__ */ __name(async (store, account, text2, { accou
|
|
|
35378
35378
|
};
|
|
35379
35379
|
}, "searchNotesOf");
|
|
35380
35380
|
|
|
35381
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35381
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/services/events-search.js
|
|
35382
35382
|
var MAX_EVENTS_OFFSET = 1e3;
|
|
35383
35383
|
var iso3 = /* @__PURE__ */ __name((at) => at === null ? null : new Date(at).toISOString(), "iso");
|
|
35384
35384
|
var accountIdsOf = /* @__PURE__ */ __name(async (store, accounts) => {
|
|
@@ -35495,7 +35495,7 @@ var searchEvents = /* @__PURE__ */ __name(async (store, query, { limit = 20, off
|
|
|
35495
35495
|
};
|
|
35496
35496
|
}, "searchEvents");
|
|
35497
35497
|
|
|
35498
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35498
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/services/search-all.js
|
|
35499
35499
|
var RESOURCES_SEARCHED = ["messages", "mail", "notes", "events", "crm"];
|
|
35500
35500
|
var skippable = /* @__PURE__ */ __name((error) => error instanceof CliError && (error.code === "validation_error" || error.code === "not_found"), "skippable");
|
|
35501
35501
|
var filtersBeside = /* @__PURE__ */ __name((text2) => {
|
|
@@ -35756,7 +35756,7 @@ var oneList = /* @__PURE__ */ __name((lists, cosines) => {
|
|
|
35756
35756
|
return [...place.values()].sort((a, b) => a.rank - b.rank || cosine(b.item.ref) - cosine(a.item.ref)).map(({ item: item2 }) => item2);
|
|
35757
35757
|
}, "oneList");
|
|
35758
35758
|
|
|
35759
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35759
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/services/search-all-meetings.js
|
|
35760
35760
|
var RESOURCES_SEARCHED_WITH_MEETINGS = [...RESOURCES_SEARCHED, "meetings"];
|
|
35761
35761
|
var whole2 = /* @__PURE__ */ __name((value, minimum, maximum, label) => {
|
|
35762
35762
|
if (!Number.isSafeInteger(value) || value < minimum || value > maximum)
|
|
@@ -36010,7 +36010,7 @@ var searchAllOfSource = /* @__PURE__ */ __name(async (store, account, source, re
|
|
|
36010
36010
|
return { ...found, skipped: [...skipped, ...empty2, ...unnamed, ...found.skipped] };
|
|
36011
36011
|
}, "searchAllOfSource");
|
|
36012
36012
|
|
|
36013
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36013
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/services/server-search.js
|
|
36014
36014
|
var SERVER_SEARCH_KEY = "messages.server-search";
|
|
36015
36015
|
var SERVER_BOUNDS = { timeMs: 5e3, perCall: 100, maxCalls: 3, textBytes: 262144 };
|
|
36016
36016
|
var DEFAULT_BACKEND = "both";
|
|
@@ -36199,7 +36199,7 @@ var searchServer = /* @__PURE__ */ __name(async (deps, request) => {
|
|
|
36199
36199
|
return { report, sources };
|
|
36200
36200
|
}, "searchServer");
|
|
36201
36201
|
|
|
36202
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36202
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/services/messages.js
|
|
36203
36203
|
var DELETE_AT_ONCE = 10;
|
|
36204
36204
|
var filesOf = /* @__PURE__ */ __name(({ attachments }) => {
|
|
36205
36205
|
const files = fileLinks(attachments);
|
|
@@ -36640,7 +36640,7 @@ var checkMediaOptions = /* @__PURE__ */ __name((messenger, asked, attachments) =
|
|
|
36640
36640
|
throw new CliError("validation_error", `${MEDIA_FLAGS[first2]} needs a --photo or --file`);
|
|
36641
36641
|
}, "checkMediaOptions");
|
|
36642
36642
|
|
|
36643
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36643
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/domain/channel-tags.js
|
|
36644
36644
|
var CHANNEL_TAG_RULES_VERSION = "keywords-v1";
|
|
36645
36645
|
var RULES = {
|
|
36646
36646
|
ai: [/\b(ai|gpt|llm|machine learning|artificial intelligence)\b/iu, /нейросет|искусственн/iu],
|
|
@@ -36655,7 +36655,7 @@ var classifyChannel = /* @__PURE__ */ __name((metadata) => Object.entries(RULES)
|
|
|
36655
36655
|
return fields.length ? [{ tag, score: fields.length / 3, fields }] : [];
|
|
36656
36656
|
}), "classifyChannel");
|
|
36657
36657
|
|
|
36658
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36658
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/services/metadata.js
|
|
36659
36659
|
var metadataService = /* @__PURE__ */ __name((deps) => {
|
|
36660
36660
|
const held = /* @__PURE__ */ __name(async (reference, { includeLeft = false } = {}) => {
|
|
36661
36661
|
const store = await deps.store();
|
|
@@ -36741,7 +36741,7 @@ var metadataService = /* @__PURE__ */ __name((deps) => {
|
|
|
36741
36741
|
};
|
|
36742
36742
|
}, "metadataService");
|
|
36743
36743
|
|
|
36744
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36744
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/moderation/check.js
|
|
36745
36745
|
var INVITE = /max\.ru\/join\/|(t|telegram)\.me\/(\+|joinchat\/)|tg:\/\/join/i;
|
|
36746
36746
|
var LINK2 = /https?:\/\/\S+/i;
|
|
36747
36747
|
var STRENGTH = { report: 0, delete: 1, remove: 2 };
|
|
@@ -36929,7 +36929,7 @@ var nextPoint = /* @__PURE__ */ __name((rows, found) => {
|
|
|
36929
36929
|
}, "nextPoint");
|
|
36930
36930
|
var someUndone = /* @__PURE__ */ __name((rows) => rows.some(undone), "someUndone");
|
|
36931
36931
|
|
|
36932
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36932
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/moderation/rules.js
|
|
36933
36933
|
import { existsSync, readFileSync as readFileSync2 } from "node:fs";
|
|
36934
36934
|
import { join as join11 } from "node:path";
|
|
36935
36935
|
var RULE_ACTIONS = ["report", "delete", "remove"];
|
|
@@ -37072,7 +37072,7 @@ var assign = /* @__PURE__ */ __name((rules, key, value) => {
|
|
|
37072
37072
|
return { ...rules, [head]: { ...rules[head], [tail]: value } };
|
|
37073
37073
|
}, "assign");
|
|
37074
37074
|
|
|
37075
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37075
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/moderation/run.js
|
|
37076
37076
|
var FIRST_LOOK_MS = 24 * 36e5;
|
|
37077
37077
|
var moderateWith = /* @__PURE__ */ __name(async (run) => {
|
|
37078
37078
|
const { chatId, title, rules, point, since, dryRun } = run;
|
|
@@ -37109,7 +37109,7 @@ var moderateWith = /* @__PURE__ */ __name(async (run) => {
|
|
|
37109
37109
|
return { chatId, rows, notes };
|
|
37110
37110
|
}, "moderateWith");
|
|
37111
37111
|
|
|
37112
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37112
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/services/moderation.js
|
|
37113
37113
|
var moderationService = /* @__PURE__ */ __name((deps) => {
|
|
37114
37114
|
const file2 = /* @__PURE__ */ __name(() => new ModerationRules(moderationPathFor(deps.messenger.app, deps.profile ?? "default", deps.env ?? process.env)), "file");
|
|
37115
37115
|
const group = /* @__PURE__ */ __name(async (chat) => {
|
|
@@ -37187,7 +37187,7 @@ var moderatorOf = /* @__PURE__ */ __name((adapter, deps) => ({
|
|
|
37187
37187
|
}, "removePerson")
|
|
37188
37188
|
}), "moderatorOf");
|
|
37189
37189
|
|
|
37190
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37190
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/services/private-people.js
|
|
37191
37191
|
var noteItem = /* @__PURE__ */ __name((provider, note2) => ({
|
|
37192
37192
|
id: note2.id,
|
|
37193
37193
|
contact: formatReference({ type: "contact", provider, id: note2.personId }),
|
|
@@ -37231,7 +37231,7 @@ var privatePeopleService = /* @__PURE__ */ __name((deps) => {
|
|
|
37231
37231
|
};
|
|
37232
37232
|
}, "privatePeopleService");
|
|
37233
37233
|
|
|
37234
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37234
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/services/rankings.js
|
|
37235
37235
|
var empty = /* @__PURE__ */ __name(() => ({
|
|
37236
37236
|
total: 0,
|
|
37237
37237
|
population: 0,
|
|
@@ -37487,7 +37487,7 @@ var rankingsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
37487
37487
|
}, "evidence")
|
|
37488
37488
|
}), "rankingsService");
|
|
37489
37489
|
|
|
37490
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37490
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/services/reply-stats.js
|
|
37491
37491
|
var FIELDS = ["date", "chat", "kind"];
|
|
37492
37492
|
var WAITING_TAIL = 100;
|
|
37493
37493
|
var plainOnly = /* @__PURE__ */ __name((text2, command) => {
|
|
@@ -37614,7 +37614,7 @@ var replyStatsService = /* @__PURE__ */ __name((deps) => {
|
|
|
37614
37614
|
};
|
|
37615
37615
|
}, "replyStatsService");
|
|
37616
37616
|
|
|
37617
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37617
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/services/searches.js
|
|
37618
37618
|
var savedSearchItem = /* @__PURE__ */ __name((one2) => ({
|
|
37619
37619
|
id: one2.id,
|
|
37620
37620
|
name: one2.name,
|
|
@@ -37743,7 +37743,7 @@ var searchesService = /* @__PURE__ */ __name((deps) => {
|
|
|
37743
37743
|
};
|
|
37744
37744
|
}, "searchesService");
|
|
37745
37745
|
|
|
37746
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37746
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/services/tags.js
|
|
37747
37747
|
var TAGGING_QUERY = {
|
|
37748
37748
|
entity: "tagging",
|
|
37749
37749
|
backend: "sql",
|
|
@@ -37827,7 +37827,7 @@ var tagsService = /* @__PURE__ */ __name((deps) => {
|
|
|
37827
37827
|
};
|
|
37828
37828
|
}, "tagsService");
|
|
37829
37829
|
|
|
37830
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37830
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/services/topics.js
|
|
37831
37831
|
var actionOf = /* @__PURE__ */ __name(({ title, closed, pinned, hidden, icon }) => {
|
|
37832
37832
|
const set = [closed, pinned, hidden].filter((one2) => one2 !== void 0).length;
|
|
37833
37833
|
if (title !== void 0 || icon !== void 0 || set !== 1)
|
|
@@ -38026,7 +38026,7 @@ var topicsService = /* @__PURE__ */ __name((deps) => {
|
|
|
38026
38026
|
};
|
|
38027
38027
|
}, "topicsService");
|
|
38028
38028
|
|
|
38029
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38029
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/services/evidence.js
|
|
38030
38030
|
import { createHash as createHash11, randomUUID as randomUUID5 } from "node:crypto";
|
|
38031
38031
|
var hash2 = /* @__PURE__ */ __name((value) => createHash11("sha256").update(JSON.stringify(value)).digest("hex"), "hash");
|
|
38032
38032
|
var positive = /* @__PURE__ */ __name((value, name, minimum = 1) => {
|
|
@@ -38100,7 +38100,7 @@ var prepareEvidencePacket = /* @__PURE__ */ __name(({ kind, source, page, limits
|
|
|
38100
38100
|
return { ...content, id: randomUUID5(), fingerprint: hash2(content) };
|
|
38101
38101
|
}, "prepareEvidencePacket");
|
|
38102
38102
|
|
|
38103
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38103
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/services/evidence-read.js
|
|
38104
38104
|
var readEvidencePacket = /* @__PURE__ */ __name(async (store, account, { chat, limit, before: before2 }, messenger = {}) => {
|
|
38105
38105
|
if (!Number.isSafeInteger(limit) || limit < 1 || limit > 100)
|
|
38106
38106
|
throw new CliError("validation_error", "evidence message limit must be an integer from 1 to 100");
|
|
@@ -38120,7 +38120,7 @@ var readEvidencePacket = /* @__PURE__ */ __name(async (store, account, { chat, l
|
|
|
38120
38120
|
return { ...packet, nextBeforeId: older && last ? last.id : null };
|
|
38121
38121
|
}, "readEvidencePacket");
|
|
38122
38122
|
|
|
38123
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38123
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/services/meeting-hit-search.js
|
|
38124
38124
|
var refreshMeetingIndex = /* @__PURE__ */ __name(async (meetings, accountId, signal) => {
|
|
38125
38125
|
let before2 = Number.POSITIVE_INFINITY;
|
|
38126
38126
|
for (; ; ) {
|
|
@@ -38182,7 +38182,7 @@ var searchMeetingHits = /* @__PURE__ */ __name(async (store, query, request, opt
|
|
|
38182
38182
|
return { ...result, selection };
|
|
38183
38183
|
}, "searchMeetingHits");
|
|
38184
38184
|
|
|
38185
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38185
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/services/meeting-project-discovery.js
|
|
38186
38186
|
import { createHash as createHash12 } from "node:crypto";
|
|
38187
38187
|
var scopeKeys = [
|
|
38188
38188
|
"accountId",
|
|
@@ -38317,7 +38317,7 @@ var readMeetingProjectDiscovery = /* @__PURE__ */ __name(async (ports, projectNa
|
|
|
38317
38317
|
};
|
|
38318
38318
|
}, "readMeetingProjectDiscovery");
|
|
38319
38319
|
|
|
38320
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38320
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/services/meeting-hit-context.js
|
|
38321
38321
|
import { createHash as createHash13 } from "node:crypto";
|
|
38322
38322
|
var contextCue = /* @__PURE__ */ __name((cue) => ({
|
|
38323
38323
|
ref: cue.reference,
|
|
@@ -38435,7 +38435,7 @@ var readMeetingHitContext = /* @__PURE__ */ __name(async (store, accountId, refe
|
|
|
38435
38435
|
return { ...packet, fingerprint: createHash13("sha256").update(JSON.stringify(packet)).digest("hex") };
|
|
38436
38436
|
}, "readMeetingHitContext");
|
|
38437
38437
|
|
|
38438
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38438
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/services/meeting-passage-format.js
|
|
38439
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");
|
|
38440
38440
|
var markdown = /* @__PURE__ */ __name((text2) => visible(text2).replaceAll("&", "&").replaceAll("<", "<").replaceAll(">", ">").replace(/[\\`*_[\]#|~]/g, "\\$&"), "markdown");
|
|
38441
38441
|
var timestamp = /* @__PURE__ */ __name((ms) => {
|
|
@@ -38511,7 +38511,7 @@ var readMeetingPassage = /* @__PURE__ */ __name(async (store, accountId, referen
|
|
|
38511
38511
|
return { packet, content };
|
|
38512
38512
|
}, "readMeetingPassage");
|
|
38513
38513
|
|
|
38514
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38514
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/context/communication-selection.js
|
|
38515
38515
|
var communicationFields = {
|
|
38516
38516
|
sources: pipe(array(strictObject({
|
|
38517
38517
|
id: pipe(string(), regex(/^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$/)),
|
|
@@ -38543,7 +38543,7 @@ var communicationRequest = /* @__PURE__ */ __name((value, preparationAfter) => {
|
|
|
38543
38543
|
return { ...input, after, before: before2 };
|
|
38544
38544
|
}, "communicationRequest");
|
|
38545
38545
|
|
|
38546
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38546
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/services/meeting-preparation-validation.js
|
|
38547
38547
|
var MEETING_PREPARATION_LIMITS = {
|
|
38548
38548
|
meetings: { min: 1, max: 20, default: 5 },
|
|
38549
38549
|
cues: { min: 1, max: 100, default: 10 },
|
|
@@ -38629,7 +38629,7 @@ var preparationRequest = /* @__PURE__ */ __name((accountId, externalId, original
|
|
|
38629
38629
|
return { ...input, history };
|
|
38630
38630
|
}, "preparationRequest");
|
|
38631
38631
|
|
|
38632
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38632
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/services/meeting-communications-preparation.js
|
|
38633
38633
|
var readPreparationCommunications = /* @__PURE__ */ __name(async (plan, signal) => {
|
|
38634
38634
|
const section = {
|
|
38635
38635
|
readUsage: plan.reader.usage(),
|
|
@@ -38734,7 +38734,7 @@ var appendPreparationCommunications = /* @__PURE__ */ __name((result, read2) =>
|
|
|
38734
38734
|
result.knowledge.coverage.otherSources = "see-communications";
|
|
38735
38735
|
}, "appendPreparationCommunications");
|
|
38736
38736
|
|
|
38737
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38737
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/services/meeting-communications-selection.js
|
|
38738
38738
|
var captureCommunicationSelections = /* @__PURE__ */ __name((port) => {
|
|
38739
38739
|
if (port === void 0)
|
|
38740
38740
|
return void 0;
|
|
@@ -38839,7 +38839,7 @@ var validatePreparationCommunications = /* @__PURE__ */ __name((section, request
|
|
|
38839
38839
|
}
|
|
38840
38840
|
}, "validatePreparationCommunications");
|
|
38841
38841
|
|
|
38842
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38842
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/services/meeting-knowledge-preparation.js
|
|
38843
38843
|
var invalid5 = /* @__PURE__ */ __name(() => {
|
|
38844
38844
|
throw new CliError("invalid_response", "Preparation knowledge returned an invalid selection");
|
|
38845
38845
|
}, "invalid");
|
|
@@ -38908,7 +38908,7 @@ var appendKnowledgePreparation = /* @__PURE__ */ __name(async (store, result, in
|
|
|
38908
38908
|
}
|
|
38909
38909
|
}, "appendKnowledgePreparation");
|
|
38910
38910
|
|
|
38911
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38911
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/services/meeting-notes-preparation.js
|
|
38912
38912
|
var invalid6 = /* @__PURE__ */ __name(() => {
|
|
38913
38913
|
throw new CliError("invalid_response", "Preparation notes returned an invalid selection");
|
|
38914
38914
|
}, "invalid");
|
|
@@ -38982,7 +38982,7 @@ var appendNotesPreparation = /* @__PURE__ */ __name(async (store, result, input)
|
|
|
38982
38982
|
}
|
|
38983
38983
|
}, "appendNotesPreparation");
|
|
38984
38984
|
|
|
38985
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38985
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/services/meeting-project-preparation.js
|
|
38986
38986
|
var PAGE_LIMIT = 4;
|
|
38987
38987
|
var size2 = /* @__PURE__ */ __name((value) => Buffer.byteLength(JSON.stringify(value), "utf8"), "size");
|
|
38988
38988
|
var appendProjectPreparation = /* @__PURE__ */ __name(async (ports, result, input) => {
|
|
@@ -39032,7 +39032,7 @@ var appendProjectPreparation = /* @__PURE__ */ __name(async (ports, result, inpu
|
|
|
39032
39032
|
}
|
|
39033
39033
|
}, "appendProjectPreparation");
|
|
39034
39034
|
|
|
39035
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39035
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/services/meeting-related-preparation.js
|
|
39036
39036
|
var appendRelatedPreparation = /* @__PURE__ */ __name(async (store, result, input) => {
|
|
39037
39037
|
if (!result.series || !result.items.length || result.coverage.outputLimited)
|
|
39038
39038
|
return;
|
|
@@ -39104,7 +39104,7 @@ var appendRelatedPreparation = /* @__PURE__ */ __name(async (store, result, inpu
|
|
|
39104
39104
|
}
|
|
39105
39105
|
}, "appendRelatedPreparation");
|
|
39106
39106
|
|
|
39107
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39107
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/services/meeting-preparation.js
|
|
39108
39108
|
var size3 = /* @__PURE__ */ __name((value) => Buffer.byteLength(JSON.stringify(value), "utf8"), "size");
|
|
39109
39109
|
var createMeetingPreparationService = /* @__PURE__ */ __name((scope, accountId, ports) => {
|
|
39110
39110
|
const fixed = snapshotMeetingScope(scope);
|
|
@@ -39242,7 +39242,7 @@ var createMeetingPreparationService = /* @__PURE__ */ __name((scope, accountId,
|
|
|
39242
39242
|
};
|
|
39243
39243
|
}, "createMeetingPreparationService");
|
|
39244
39244
|
|
|
39245
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39245
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/services/package-upgrade.js
|
|
39246
39246
|
var upgradePackage = /* @__PURE__ */ __name(async ({ current, command, packageName, check: check2 }, ports) => {
|
|
39247
39247
|
const installer = ports.installer();
|
|
39248
39248
|
const argv = updateCommand(installer, packageName);
|
|
@@ -39307,7 +39307,7 @@ var dayAfter = /* @__PURE__ */ __name((published) => {
|
|
|
39307
39307
|
return Number.isNaN(time) ? null : new Date(time + 24 * 60 * 60 * 1e3).toISOString();
|
|
39308
39308
|
}, "dayAfter");
|
|
39309
39309
|
|
|
39310
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39310
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/services/index.js
|
|
39311
39311
|
var servicesFor = /* @__PURE__ */ __name((deps) => {
|
|
39312
39312
|
const pictures = picturesService(deps);
|
|
39313
39313
|
const base = {
|
|
@@ -39344,7 +39344,7 @@ var servicesFor = /* @__PURE__ */ __name((deps) => {
|
|
|
39344
39344
|
return deps.messenger.services ? { ...base, ...deps.messenger.services(base, deps) } : base;
|
|
39345
39345
|
}, "servicesFor");
|
|
39346
39346
|
|
|
39347
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39347
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/background/relay.js
|
|
39348
39348
|
import { createHash as createHash14 } from "node:crypto";
|
|
39349
39349
|
import { chmodSync, lstatSync, mkdirSync as mkdirSync3, rmSync } from "node:fs";
|
|
39350
39350
|
import { createConnection, createServer } from "node:net";
|
|
@@ -39492,7 +39492,7 @@ var serve = /* @__PURE__ */ __name(async (socket, request, stdin, signal, run) =
|
|
|
39492
39492
|
}
|
|
39493
39493
|
}, "serve");
|
|
39494
39494
|
|
|
39495
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39495
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-relay.js
|
|
39496
39496
|
var lentConnection = /* @__PURE__ */ __name((connection, watchers) => throughWrapper(connection, {
|
|
39497
39497
|
close: /* @__PURE__ */ __name(async () => {
|
|
39498
39498
|
}, "close"),
|
|
@@ -39685,6 +39685,7 @@ export {
|
|
|
39685
39685
|
pinDurationOf,
|
|
39686
39686
|
sendAsCheck,
|
|
39687
39687
|
typedSendAs,
|
|
39688
|
+
questionLookup,
|
|
39688
39689
|
MAX_SEARCH_OFFSET,
|
|
39689
39690
|
searchStore,
|
|
39690
39691
|
GROUP_SETTINGS,
|