@wirecat/cli-memo 0.131.29 → 0.131.30
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-HXT2KPB6.js → all-profiles-4XCG2A54.js} +5 -5
- package/dist/bundle/{anthropic-C6H35WZP.js → anthropic-MAVIW4DJ.js} +3 -3
- package/dist/bundle/{app-server-Y6JGICRB.js → app-server-LGSYLIB3.js} +35 -35
- package/dist/bundle/auto-72Y6UJWK.js +86 -0
- package/dist/bundle/{bun-K5H33WQK.js → bun-XWUEHWDW.js} +2 -2
- package/dist/bundle/{bun-sqlite-2NGQT7HH.js → bun-sqlite-OSAC45TI.js} +2 -2
- package/dist/bundle/{chunk-7OYQFT5N.js → chunk-2NEXX3EI.js} +1 -1
- package/dist/bundle/{chunk-WI7KTIMF.js → chunk-3DXTHN5C.js} +7 -7
- package/dist/bundle/{chunk-P5FETWRW.js → chunk-3V5JXPGK.js} +1 -1
- package/dist/bundle/{chunk-WFQPCCM2.js → chunk-5CKE7LAP.js} +1 -1
- package/dist/bundle/{chunk-ERRC42BB.js → chunk-5R3OXHIN.js} +1 -1
- package/dist/bundle/{chunk-H6JNEHUC.js → chunk-6SE6ZDBF.js} +1 -1
- package/dist/bundle/{chunk-7PH33JE4.js → chunk-6ZVN4S36.js} +2 -2
- package/dist/bundle/{chunk-RGPCN63U.js → chunk-76MMXZ3W.js} +4 -4
- package/dist/bundle/{chunk-PUQYCAEP.js → chunk-7VJZKUN3.js} +9 -9
- package/dist/bundle/{chunk-HBKYPSX3.js → chunk-B6S42B6J.js} +11 -11
- package/dist/bundle/{chunk-XNV2JTJ4.js → chunk-CNAOMV43.js} +1 -1
- package/dist/bundle/{chunk-MJF6VGW4.js → chunk-CYUP7HQG.js} +421 -360
- package/dist/bundle/{chunk-BWQMZNDC.js → chunk-D6BK3H4D.js} +4 -4
- package/dist/bundle/{chunk-R7XIZMM5.js → chunk-DIQAOLWH.js} +1 -1
- package/dist/bundle/{chunk-5ZWRS2JY.js → chunk-DIT5NA73.js} +5 -5
- package/dist/bundle/{chunk-SQ6OFUHW.js → chunk-DYNSZDXG.js} +20 -20
- package/dist/bundle/{chunk-2O2RWKUT.js → chunk-EEKOBGQ7.js} +1 -1
- package/dist/bundle/{chunk-QVFB2MVU.js → chunk-EJZKYJKO.js} +2 -2
- package/dist/bundle/{chunk-KFSZAV5L.js → chunk-GACW4GZZ.js} +4 -4
- package/dist/bundle/{chunk-DXCBZT4T.js → chunk-GN3U74DV.js} +12 -12
- package/dist/bundle/{chunk-MPNDEGMC.js → chunk-GSCFCNGO.js} +7 -7
- package/dist/bundle/{chunk-46ACMQUU.js → chunk-GW2KCP4G.js} +27 -27
- package/dist/bundle/{chunk-65YDJ3Z4.js → chunk-H52RNBPU.js} +2 -2
- package/dist/bundle/{chunk-FUMGREBO.js → chunk-HWJHWNBW.js} +3 -3
- package/dist/bundle/{chunk-XHHSQ4FN.js → chunk-IIXZMACE.js} +14 -9
- package/dist/bundle/{chunk-G62DN6QY.js → chunk-JHLGFPMK.js} +2 -2
- package/dist/bundle/{chunk-XUHVJGIL.js → chunk-K6Z6B2CW.js} +10 -10
- package/dist/bundle/{chunk-H3NMOWPB.js → chunk-KJE2KFYH.js} +198 -52
- package/dist/bundle/{chunk-UZUNSDGN.js → chunk-M3REIIOH.js} +1 -1
- package/dist/bundle/{chunk-HVD2CTPH.js → chunk-MHHLYRRD.js} +1 -1
- package/dist/bundle/{chunk-2WGR73KL.js → chunk-MLDBSKW6.js} +8 -8
- package/dist/bundle/{chunk-GVYOICNB.js → chunk-N4AWIP4D.js} +5 -5
- package/dist/bundle/{chunk-6YDPWVDH.js → chunk-NUEIRBKY.js} +1 -1
- package/dist/bundle/{chunk-M3VBB37S.js → chunk-PJM4QQBT.js} +2 -2
- package/dist/bundle/{chunk-NIEWG4OY.js → chunk-Q3XFJOAY.js} +1 -1
- package/dist/bundle/{chunk-IQEEOXBV.js → chunk-QQBRNKHQ.js} +51 -50
- package/dist/bundle/{chunk-IIM3FF5L.js → chunk-RCPP2Q5O.js} +6 -6
- package/dist/bundle/{chunk-6IJ7XNK5.js → chunk-RUWY43XR.js} +252 -246
- package/dist/bundle/{chunk-KJEJOWJY.js → chunk-S34FLB7K.js} +2 -2
- package/dist/bundle/{chunk-6BS3FHTC.js → chunk-SIY75R4D.js} +5 -5
- package/dist/bundle/{chunk-FJXFU7NN.js → chunk-SQHIXN2N.js} +2 -2
- package/dist/bundle/{chunk-KIJ7UJHD.js → chunk-TIQUMRSO.js} +215 -151
- package/dist/bundle/{chunk-SZUYOU6U.js → chunk-TIU2N2SP.js} +20 -20
- package/dist/bundle/{chunk-YZKHWANJ.js → chunk-U5PEYBQT.js} +4 -4
- package/dist/bundle/{chunk-YLVSSQJP.js → chunk-U6NL7SAX.js} +5 -5
- package/dist/bundle/{chunk-7ACGYEGV.js → chunk-UBYCWQSV.js} +4 -4
- package/dist/bundle/{chunk-S67KFN67.js → chunk-UGV57SZH.js} +1 -1
- package/dist/bundle/{chunk-5FEJKSQJ.js → chunk-USLIHXWA.js} +3 -3
- package/dist/bundle/{chunk-KCAELZXB.js → chunk-UVO7UNYH.js} +1 -1
- package/dist/bundle/{chunk-Q63L5WS2.js → chunk-UXGQXP5U.js} +3 -3
- package/dist/bundle/{chunk-ERZLVE54.js → chunk-VDGKBAS2.js} +1038 -670
- package/dist/bundle/{chunk-6NGLATFQ.js → chunk-WUV5O5HN.js} +4 -4
- package/dist/bundle/{chunk-W7T2JSKY.js → chunk-XDQIJSJE.js} +1 -1
- package/dist/bundle/{chunk-KCQPEY6C.js → chunk-XV7YW65Y.js} +4 -4
- package/dist/bundle/{chunk-ZW44VJNY.js → chunk-YJSCSLAT.js} +3 -3
- package/dist/bundle/{chunk-HAC3CWPB.js → chunk-YUEAM6ZP.js} +7 -7
- package/dist/bundle/{chunk-FBSY3DVN.js → chunk-Z7J7SVZJ.js} +1 -1
- package/dist/bundle/{command-contract-AFUDV7JM.js → command-contract-ZLDRM6DG.js} +11 -11
- package/dist/bundle/{decode-P5SEK56D.js → decode-Y2DWOSOW.js} +2 -2
- package/dist/bundle/{echarts-CLHJYMDK.js → echarts-2ZHQHZ4R.js} +2 -2
- package/dist/bundle/{embed-X6H74LGP.js → embed-JEER47U6.js} +3 -3
- package/dist/bundle/{embedder-H5SWOSEL.js → embedder-BJQEGCE5.js} +6 -6
- package/dist/bundle/{entry-66SEZMKI.js → entry-YKH7GAX7.js} +4 -4
- package/dist/bundle/failure-JE2JCLGO.js +66 -0
- package/dist/bundle/{first-run-S7EW77F6.js → first-run-ESH5B55J.js} +5 -5
- package/dist/bundle/{first-screen-6GA36WQT.js → first-screen-RTATNK4S.js} +12 -12
- package/dist/bundle/{instructions-IUUSY6DO.js → instructions-NJYYRMYK.js} +1 -1
- package/dist/bundle/{mcp-7SDVTKCE.js → mcp-ZRKYZLNM.js} +35 -35
- package/dist/bundle/memo.js +6 -6
- package/dist/bundle/{node-6T5LUBAE.js → node-DBNZMTJO.js} +2 -2
- package/dist/bundle/{node-sqlite-ZTDWPRJU.js → node-sqlite-CCNVCZSG.js} +3 -3
- package/dist/bundle/{oauth-G4TCULLQ.js → oauth-UV7KBQFP.js} +4 -4
- package/dist/bundle/{open-DRJ24C7U.js → open-VTOLLLS4.js} +2 -2
- package/dist/bundle/{openai-3DSR7Z4Z.js → openai-RTJNHBCG.js} +7 -7
- package/dist/bundle/{process-IPM3OJDN.js → process-TAFRBB53.js} +1 -1
- package/dist/bundle/{program-6E2SWPCU.js → program-4UU6HJQM.js} +215 -110
- package/dist/bundle/{prompt-XKR6EQAT.js → prompt-ESMCTEJI.js} +2 -2
- package/dist/bundle/{recognize-GZXAXTEH.js → recognize-V53GEY6R.js} +1 -1
- package/dist/bundle/{remote-Y5ML6KR4.js → remote-KGKRAGA6.js} +4 -4
- package/dist/bundle/{rerank-FNNXUTMN.js → rerank-DTD24I7Y.js} +4 -4
- package/dist/bundle/{serve-BGU5ERNX.js → serve-2DVSIKM7.js} +6 -6
- package/dist/bundle/server-ODWZJIRX.js +48 -0
- package/dist/bundle/{server-3L4FHYFM.js → server-UBMV5OI7.js} +50 -50
- package/dist/bundle/server-V5YRZZID.js +61 -0
- package/dist/bundle/{state-WAMVO34N.js → state-ONT6T6PY.js} +3 -3
- package/dist/bundle/{store-PVY4UTTR.js → store-TOYBDMML.js} +9 -9
- package/dist/bundle/store-maintenance-command-HIMIMWFU.js +48 -0
- package/dist/bundle/update-AO5UWEBY.js +69 -0
- package/dist/discovery/command.d.ts.map +1 -1
- package/dist/discovery/command.js +1 -0
- package/dist/discovery/command.js.map +1 -1
- package/dist/examples.d.ts.map +1 -1
- package/dist/examples.js +6 -0
- package/dist/examples.js.map +1 -1
- package/dist/finance/orders-command.d.ts +12 -0
- package/dist/finance/orders-command.d.ts.map +1 -0
- package/dist/finance/orders-command.js +92 -0
- package/dist/finance/orders-command.js.map +1 -0
- package/dist/mail/findings-command.d.ts.map +1 -1
- package/dist/mail/findings-command.js +7 -2
- package/dist/mail/findings-command.js.map +1 -1
- package/dist/program.d.ts.map +1 -1
- package/dist/program.js +30 -0
- package/dist/program.js.map +1 -1
- package/dist/review/kinds.d.ts +1 -1
- package/dist/review/kinds.d.ts.map +1 -1
- package/dist/review/kinds.js +1 -0
- package/dist/review/kinds.js.map +1 -1
- package/dist/review/review.d.ts.map +1 -1
- package/dist/review/review.js +1 -0
- package/dist/review/review.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +2 -2
- package/skills/mail-triage/SKILL.md +30 -4
- package/dist/bundle/auto-A2Y225YZ.js +0 -86
- package/dist/bundle/failure-PNTFMNKK.js +0 -66
- package/dist/bundle/server-5F3GJPG3.js +0 -48
- package/dist/bundle/server-JX5TWAAW.js +0 -61
- package/dist/bundle/store-maintenance-command-RGZJWNE2.js +0 -48
- package/dist/bundle/update-VJLZT6ER.js +0 -69
- /package/dist/bundle/{chunk-XGTIABPY.js → chunk-G6I5A2N3.js} +0 -0
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
sameOrdinaryFile,
|
|
9
9
|
syncDirectory,
|
|
10
10
|
writeFileAtomic
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-GN3U74DV.js";
|
|
12
12
|
import {
|
|
13
13
|
Command,
|
|
14
14
|
DEFAULT_IMAGE_MODEL,
|
|
@@ -51,17 +51,17 @@ import {
|
|
|
51
51
|
typedCommand,
|
|
52
52
|
vectorModelKey,
|
|
53
53
|
withAttempt
|
|
54
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-TIQUMRSO.js";
|
|
55
55
|
import {
|
|
56
56
|
isCliFailure
|
|
57
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-3DXTHN5C.js";
|
|
58
58
|
import {
|
|
59
59
|
isNewer,
|
|
60
60
|
updateCommand
|
|
61
61
|
} from "./chunk-I7PL5WX2.js";
|
|
62
62
|
import {
|
|
63
63
|
readOnlyLockOf
|
|
64
|
-
} from "./chunk-
|
|
64
|
+
} from "./chunk-CNAOMV43.js";
|
|
65
65
|
import {
|
|
66
66
|
AGENDA_COLUMNS,
|
|
67
67
|
CHAT_COLUMNS,
|
|
@@ -163,7 +163,7 @@ import {
|
|
|
163
163
|
validateAst,
|
|
164
164
|
validateFields,
|
|
165
165
|
withoutField
|
|
166
|
-
} from "./chunk-
|
|
166
|
+
} from "./chunk-VDGKBAS2.js";
|
|
167
167
|
import {
|
|
168
168
|
EVENT_QUERY,
|
|
169
169
|
MEETING_FINDINGS_KIND,
|
|
@@ -217,23 +217,23 @@ import {
|
|
|
217
217
|
validateQuery,
|
|
218
218
|
walkQuery,
|
|
219
219
|
zonedMoment
|
|
220
|
-
} from "./chunk-
|
|
220
|
+
} from "./chunk-KJE2KFYH.js";
|
|
221
221
|
import {
|
|
222
222
|
DEFAULT_STEMMERS,
|
|
223
223
|
createStemmer,
|
|
224
224
|
fold,
|
|
225
225
|
normalize
|
|
226
|
-
} from "./chunk-
|
|
226
|
+
} from "./chunk-YUEAM6ZP.js";
|
|
227
227
|
import {
|
|
228
228
|
DEFAULT_TASK_CATEGORIES,
|
|
229
229
|
FALLBACK_CATEGORY
|
|
230
|
-
} from "./chunk-
|
|
230
|
+
} from "./chunk-UBYCWQSV.js";
|
|
231
231
|
import {
|
|
232
232
|
MAX_MODEL_IMAGE_BYTES
|
|
233
|
-
} from "./chunk-
|
|
233
|
+
} from "./chunk-UGV57SZH.js";
|
|
234
234
|
import {
|
|
235
235
|
remoteKey
|
|
236
|
-
} from "./chunk-
|
|
236
|
+
} from "./chunk-JHLGFPMK.js";
|
|
237
237
|
import {
|
|
238
238
|
Unzip,
|
|
239
239
|
UnzipInflate,
|
|
@@ -244,15 +244,15 @@ import {
|
|
|
244
244
|
placedText,
|
|
245
245
|
runEmbedders,
|
|
246
246
|
textModelsDirectory
|
|
247
|
-
} from "./chunk-
|
|
247
|
+
} from "./chunk-DIT5NA73.js";
|
|
248
248
|
import {
|
|
249
249
|
installFiles,
|
|
250
250
|
megabytes
|
|
251
|
-
} from "./chunk-
|
|
251
|
+
} from "./chunk-HWJHWNBW.js";
|
|
252
252
|
import {
|
|
253
253
|
storePath,
|
|
254
254
|
wirecatDirectory
|
|
255
|
-
} from "./chunk-
|
|
255
|
+
} from "./chunk-DIQAOLWH.js";
|
|
256
256
|
import {
|
|
257
257
|
resolvePaths,
|
|
258
258
|
writeSecurely
|
|
@@ -16905,7 +16905,7 @@ var require_lib3 = __commonJS({
|
|
|
16905
16905
|
}
|
|
16906
16906
|
});
|
|
16907
16907
|
|
|
16908
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16908
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/conversations/link.js
|
|
16909
16909
|
var RULES_VERSION = 5;
|
|
16910
16910
|
var LOOK_BACK = 50;
|
|
16911
16911
|
var SAME_SENDER_WITHIN = 10;
|
|
@@ -16995,13 +16995,13 @@ var latest = /* @__PURE__ */ __name((window3, matches) => {
|
|
|
16995
16995
|
var sameThread = /* @__PURE__ */ __name((a, b) => a.threadId === b.threadId, "sameThread");
|
|
16996
16996
|
var link = /* @__PURE__ */ __name((message, parentId, source, kind, confidence, method) => ({ messageId: message.id, parentId, source, kind, confidence, method }), "link");
|
|
16997
16997
|
|
|
16998
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16998
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/ports/traits.js
|
|
16999
16999
|
var syncsOneChat = /* @__PURE__ */ __name((messenger) => messenger.history !== "store" || messenger.historyOnDemand === true, "syncsOneChat");
|
|
17000
17000
|
|
|
17001
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17001
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/sqlite/document-transfer/snapshot.js
|
|
17002
17002
|
var MAX_BYTES = 16 * 1024 * 1024;
|
|
17003
17003
|
|
|
17004
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17004
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/knowledge-query.js
|
|
17005
17005
|
var ORGANIZATIONS_QUERY = {
|
|
17006
17006
|
entity: "organization",
|
|
17007
17007
|
backend: "sql",
|
|
@@ -17036,7 +17036,7 @@ var REMINDERS_QUERY = {
|
|
|
17036
17036
|
})
|
|
17037
17037
|
};
|
|
17038
17038
|
|
|
17039
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17039
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/project-transfer/preview.js
|
|
17040
17040
|
var previewProjectAnnotationSnapshot = /* @__PURE__ */ __name(async (options) => {
|
|
17041
17041
|
if (!options || typeof options !== "object" || Array.isArray(options))
|
|
17042
17042
|
throw new CliError("validation_error", "project preview options are required");
|
|
@@ -17058,7 +17058,7 @@ var previewProjectAnnotationSnapshot = /* @__PURE__ */ __name(async (options) =>
|
|
|
17058
17058
|
}
|
|
17059
17059
|
}, "previewProjectAnnotationSnapshot");
|
|
17060
17060
|
|
|
17061
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17061
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/project-transfer/snapshot.js
|
|
17062
17062
|
var snapshotProjectAnnotations = /* @__PURE__ */ __name(async (options) => {
|
|
17063
17063
|
if (!options || typeof options !== "object" || Array.isArray(options))
|
|
17064
17064
|
throw new CliError("validation_error", "snapshot options are required");
|
|
@@ -17079,7 +17079,7 @@ var snapshotProjectAnnotations = /* @__PURE__ */ __name(async (options) => {
|
|
|
17079
17079
|
}
|
|
17080
17080
|
}, "snapshotProjectAnnotations");
|
|
17081
17081
|
|
|
17082
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17082
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/cli/messenger/lacks.js
|
|
17083
17083
|
var COMMAND_NEEDS = {
|
|
17084
17084
|
"account update": ["updateProfile", "change the profile"],
|
|
17085
17085
|
"account sessions list": ["sessions", "list the account's sessions"],
|
|
@@ -17129,7 +17129,7 @@ var hideNever = /* @__PURE__ */ __name((messenger, group) => {
|
|
|
17129
17129
|
return group;
|
|
17130
17130
|
}, "hideNever");
|
|
17131
17131
|
|
|
17132
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17132
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/services/members-audit.js
|
|
17133
17133
|
var AUDIT_PAGE = 200;
|
|
17134
17134
|
var AUDIT_BUDGET = 10;
|
|
17135
17135
|
var AUDIT_PAUSE_MS = 1e3;
|
|
@@ -17209,7 +17209,7 @@ var burstJoins = /* @__PURE__ */ __name((members) => {
|
|
|
17209
17209
|
return found;
|
|
17210
17210
|
}, "burstJoins");
|
|
17211
17211
|
|
|
17212
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17212
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/meetings/cli/query-options.js
|
|
17213
17213
|
var queryWordsAfterOptions = /* @__PURE__ */ __name((command) => {
|
|
17214
17214
|
command.allowUnknownOption();
|
|
17215
17215
|
const parse = command.parseOptions.bind(command);
|
|
@@ -17229,7 +17229,7 @@ var queryWordsAfterOptions = /* @__PURE__ */ __name((command) => {
|
|
|
17229
17229
|
return command;
|
|
17230
17230
|
}, "queryWordsAfterOptions");
|
|
17231
17231
|
|
|
17232
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17232
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/meetings/cli/passage.js
|
|
17233
17233
|
var count = /* @__PURE__ */ __name((value) => {
|
|
17234
17234
|
if (!/^(0|[1-9]\d*)$/.test(value) || !Number.isSafeInteger(Number(value)))
|
|
17235
17235
|
throw new CliError("validation_error", "expected a nonnegative safe integer");
|
|
@@ -17271,7 +17271,7 @@ var addMeetingPassageCommandDefinition = /* @__PURE__ */ __name((program, deps)
|
|
|
17271
17271
|
var createMeetingPassageCommand = sharedCommand(createMeetingPassageCommandDefinition);
|
|
17272
17272
|
var addMeetingPassageCommand = sharedCommand(addMeetingPassageCommandDefinition);
|
|
17273
17273
|
|
|
17274
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17274
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/meetings/cli/project-evidence.js
|
|
17275
17275
|
var integer2 = /* @__PURE__ */ __name((value) => {
|
|
17276
17276
|
if (!/^[1-9]\d*$/.test(value) || !Number.isSafeInteger(Number(value)))
|
|
17277
17277
|
throw new CliError("validation_error", "expected a positive safe integer");
|
|
@@ -17283,8 +17283,8 @@ var addMeetingProjectEvidenceCommandDefinition = /* @__PURE__ */ __name((program
|
|
|
17283
17283
|
throw new CliError("configuration_error", "meeting command group is unavailable");
|
|
17284
17284
|
const projects = group.commands.find((command) => command.name() === "projects") ?? group.command("projects").description("project-name evidence in stored meetings");
|
|
17285
17285
|
return annotate(queryWordsAfterOptions(projects.command("evidence").description("find cited project-name and alias evidence in the local meeting index; does not refresh it or confirm membership")).argument("<project>", "existing project name, key or explicit alias").argument("[query...]", "exact ID fields and a UTC started_at range, joined by AND").addHelpText("after", `
|
|
17286
|
-
${fieldsHelp(MEETING_PROJECT_EVIDENCE_QUERY)}`).option("--limit <n>", "hits in one name page, 1 through 1000 (default 100)", integer2).option("--cursor <cursor>", "continue with the same project and frozen selection from next").option("--max-read-bytes <bytes>", "word-read byte budget, at most 67108864 (default 4194304)", integer2).action(async (project2,
|
|
17287
|
-
deps.output(await readMeetingProjectEvidence(deps.read, project2, { ...options, query:
|
|
17286
|
+
${fieldsHelp(MEETING_PROJECT_EVIDENCE_QUERY)}`).option("--limit <n>", "hits in one name page, 1 through 1000 (default 100)", integer2).option("--cursor <cursor>", "continue with the same project and frozen selection from next").option("--max-read-bytes <bytes>", "word-read byte budget, at most 67108864 (default 4194304)", integer2).action(async (project2, words4, options) => {
|
|
17287
|
+
deps.output(await readMeetingProjectEvidence(deps.read, project2, { ...options, query: words4.join(" "), signal: deps.signal() }, deps.now?.()));
|
|
17288
17288
|
}), {
|
|
17289
17289
|
origin: "handwritten",
|
|
17290
17290
|
effects: { remote: "none", local: "read" },
|
|
@@ -17294,7 +17294,7 @@ ${fieldsHelp(MEETING_PROJECT_EVIDENCE_QUERY)}`).option("--limit <n>", "hits in o
|
|
|
17294
17294
|
}, "addMeetingProjectEvidenceCommandDefinition");
|
|
17295
17295
|
var addMeetingProjectEvidenceCommand = sharedCommand(addMeetingProjectEvidenceCommandDefinition);
|
|
17296
17296
|
|
|
17297
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17297
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/meetings/cli/search.js
|
|
17298
17298
|
var ZONED = /(?:Z|[+-]\d{2}:?\d{2})$/i;
|
|
17299
17299
|
var moment = /* @__PURE__ */ __name((flag, end, readIn) => (value) => {
|
|
17300
17300
|
const zone = timezoneOf();
|
|
@@ -17380,7 +17380,7 @@ var addMeetingSearchCommandDefinition = /* @__PURE__ */ __name((program, deps) =
|
|
|
17380
17380
|
var createMeetingSearchCommand = sharedCommand(createMeetingSearchCommandDefinition);
|
|
17381
17381
|
var addMeetingSearchCommand = sharedCommand(addMeetingSearchCommandDefinition);
|
|
17382
17382
|
|
|
17383
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17383
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/meetings/cli/index.js
|
|
17384
17384
|
var integer4 = /* @__PURE__ */ __name((text2) => {
|
|
17385
17385
|
if (!/^[1-9]\d*$/.test(text2) || !Number.isSafeInteger(Number(text2)))
|
|
17386
17386
|
throw new InvalidArgumentError("expected a positive integer");
|
|
@@ -17417,8 +17417,8 @@ var addMeetingCommandsDefinition = /* @__PURE__ */ __name((program, deps) => {
|
|
|
17417
17417
|
const list3 = queryWordsAfterOptions(group.command("list").description("stored meetings, newest first")).argument("[query...]", "field:value terms that narrow the list \u2014 the fields are below").addHelpText("after", `
|
|
17418
17418
|
${fieldsHelp(MEETING_QUERY, MEETING_QUERY_GUIDE)}`);
|
|
17419
17419
|
annotate(list3, { effects: LOCAL_READ, query: defineQuery(MEETING_QUERY), output: { entity: "meeting" } });
|
|
17420
|
-
output(list3).option("--limit <n>", "meetings per page", integer4, 100).option("--page <n>", "page number", integer4, 1).action(async (
|
|
17421
|
-
const query = meetingsQuery(
|
|
17420
|
+
output(list3).option("--limit <n>", "meetings per page", integer4, 100).option("--page <n>", "page number", integer4, 1).action(async (words4, opts, command) => {
|
|
17421
|
+
const query = meetingsQuery(words4.join(" "));
|
|
17422
17422
|
print(await meetingsList(deps.store, { accountId: deps.accountId, limit: opts.limit, ...query ? { query } : {} }, opts.page), command);
|
|
17423
17423
|
});
|
|
17424
17424
|
output(annotate(group.command("show"), { effects: LOCAL_READ, output: { entity: "meeting_details" } }).description("show a stored meeting").argument("<meeting>", "stored meeting id", integer4).addHelpText("after", SAVE_HELP)).action(async (id2, _opts, command) => {
|
|
@@ -17500,8 +17500,8 @@ ${deps.importHelp}`);
|
|
|
17500
17500
|
}).command("list")).description("list stored events").argument("[query...]", "event id, origin or time fields that narrow the list").addHelpText("after", `
|
|
17501
17501
|
${fieldsHelp(EVENT_QUERY, MEETING_QUERY_GUIDE)}`);
|
|
17502
17502
|
annotate(eventList, { effects: LOCAL_READ, output: { entity: "event" }, query: EVENT_QUERY });
|
|
17503
|
-
output(eventList).action(async (
|
|
17504
|
-
const query =
|
|
17503
|
+
output(eventList).action(async (words4, _opts, command) => {
|
|
17504
|
+
const query = words4.length ? parseLucene(words4.join(" "), { defaultField: "none", command: "events list" }) : void 0;
|
|
17505
17505
|
if (query)
|
|
17506
17506
|
validateQuery(query, EVENT_QUERY, { command: "events list" });
|
|
17507
17507
|
if (query && !deps.store.queryEvents)
|
|
@@ -17512,7 +17512,7 @@ ${fieldsHelp(EVENT_QUERY, MEETING_QUERY_GUIDE)}`);
|
|
|
17512
17512
|
}, "addMeetingCommandsDefinition");
|
|
17513
17513
|
var addMeetingCommands = sharedCommand(addMeetingCommandsDefinition);
|
|
17514
17514
|
|
|
17515
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17515
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/cli/list-query.js
|
|
17516
17516
|
var LIST_QUERY_GUIDE = "https://github.com/WireCatLabs/cli-core/blob/main/docs/search/query-language.md";
|
|
17517
17517
|
var QUERY_ARGUMENT = "field:value terms that narrow the list \u2014 the fields are below";
|
|
17518
17518
|
var withQuery = /* @__PURE__ */ __name((command, registry) => {
|
|
@@ -17562,7 +17562,7 @@ var listQuery = /* @__PURE__ */ __name((text2, registry, command, { defaultField
|
|
|
17562
17562
|
}
|
|
17563
17563
|
};
|
|
17564
17564
|
}, "listQuery");
|
|
17565
|
-
var typedQuery = /* @__PURE__ */ __name((
|
|
17565
|
+
var typedQuery = /* @__PURE__ */ __name((words4) => typeof words4 === "string" ? words4 : (words4 ?? []).join(" "), "typedQuery");
|
|
17566
17566
|
var EVERY = Number.MAX_SAFE_INTEGER - 1;
|
|
17567
17567
|
var pageOf = /* @__PURE__ */ __name(({ limit, page, all }) => all ? { limit: EVERY, offset: 0 } : { limit, offset: (page - 1) * limit }, "pageOf");
|
|
17568
17568
|
var pagedList = /* @__PURE__ */ __name((command, { limit, page, all }, { items, has_more, ...rest }) => listOf(command, {
|
|
@@ -17602,9 +17602,9 @@ var nativeTermLists = /* @__PURE__ */ __name((ast, command, repeatable = [], neg
|
|
|
17602
17602
|
add(ast.root);
|
|
17603
17603
|
return terms;
|
|
17604
17604
|
}, "nativeTermLists");
|
|
17605
|
-
var queryTerms = /* @__PURE__ */ __name((
|
|
17605
|
+
var queryTerms = /* @__PURE__ */ __name((words4, registry, command) => {
|
|
17606
17606
|
const terms = /* @__PURE__ */ new Map();
|
|
17607
|
-
for (const [field, node] of nativeTerms(listQuery(typedQuery(
|
|
17607
|
+
for (const [field, node] of nativeTerms(listQuery(typedQuery(words4), registry, command), command)) {
|
|
17608
17608
|
if (node.operator !== "term" && node.operator !== "phrase")
|
|
17609
17609
|
queryError("query.unsupported-placement", node.span, `${field} takes one whole value here`, {
|
|
17610
17610
|
command,
|
|
@@ -17645,7 +17645,7 @@ var termField = /* @__PURE__ */ __name((name, type, example, more = {}) => nativ
|
|
|
17645
17645
|
var queryHelp = /* @__PURE__ */ __name((registry) => `
|
|
17646
17646
|
${fieldsHelp(registry, LIST_QUERY_GUIDE)}`, "queryHelp");
|
|
17647
17647
|
|
|
17648
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17648
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/cli/paging.js
|
|
17649
17649
|
var positiveCount = /* @__PURE__ */ __name((flag) => (value) => {
|
|
17650
17650
|
if (!/^\d+$/.test(value.trim()) || Number(value) < 1)
|
|
17651
17651
|
throw new CliError("validation_error", `${flag} takes a whole number from 1 upwards, not "${value}"`);
|
|
@@ -17654,7 +17654,7 @@ var positiveCount = /* @__PURE__ */ __name((flag) => (value) => {
|
|
|
17654
17654
|
var withPaging = /* @__PURE__ */ __name((command) => command.option("--limit <n>", "how many to show", positiveCount("--limit")).option("--page <n>", "which page, starting at 1", positiveCount("--page")).option("--all", "every row, no paging"), "withPaging");
|
|
17655
17655
|
var window = /* @__PURE__ */ __name(({ limit, page, all }) => all ? { offset: 0 } : { limit, offset: (page - 1) * limit }, "window");
|
|
17656
17656
|
|
|
17657
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17657
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/cli/messenger/chat-answers.js
|
|
17658
17658
|
var defined = /* @__PURE__ */ __name((record2) => Object.fromEntries(Object.entries(record2).filter(([, value]) => value !== void 0)), "defined");
|
|
17659
17659
|
var chatRef = /* @__PURE__ */ __name((account, chat) => formatReference({ type: "chat", provider: account.provider, account: account.account, chat }), "chatRef");
|
|
17660
17660
|
var settingsOf = /* @__PURE__ */ __name((settings) => defined({
|
|
@@ -17916,7 +17916,7 @@ var sessionAnswer = /* @__PURE__ */ __name(({ current, client, device, location,
|
|
|
17916
17916
|
...createdAt === void 0 ? {} : { created_at: createdAt }
|
|
17917
17917
|
}), "sessionAnswer");
|
|
17918
17918
|
|
|
17919
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17919
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/ports/messenger.js
|
|
17920
17920
|
var throughWrapper = /* @__PURE__ */ __name((inner, handled, wrap = (_, call) => call) => new Proxy(handled, {
|
|
17921
17921
|
get: /* @__PURE__ */ __name((own, key) => {
|
|
17922
17922
|
if (key in own)
|
|
@@ -17933,12 +17933,12 @@ var capability = /* @__PURE__ */ __name((adapter, method, what) => {
|
|
|
17933
17933
|
return found.bind(adapter);
|
|
17934
17934
|
}, "capability");
|
|
17935
17935
|
|
|
17936
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17936
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/sends/send-id.js
|
|
17937
17937
|
import { randomBytes } from "node:crypto";
|
|
17938
17938
|
var newSendId = /* @__PURE__ */ __name(() => randomBytes(8).readBigInt64BE().toString(), "newSendId");
|
|
17939
17939
|
var newOperationId = newSendId;
|
|
17940
17940
|
|
|
17941
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17941
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/services/deps.js
|
|
17942
17942
|
var accountStore = /* @__PURE__ */ __name(async (deps) => (await deps.store()).forAccount(await deps.account()), "accountStore");
|
|
17943
17943
|
var crossAccount = /* @__PURE__ */ __name((deps, _reason) => deps.store(), "crossAccount");
|
|
17944
17944
|
var NO_LOCAL_STORE = "this answer comes from the messenger, not from the local store";
|
|
@@ -18015,7 +18015,7 @@ var storeOnlyDeps = /* @__PURE__ */ __name((store, account, { app, env }) => {
|
|
|
18015
18015
|
return { ...storedDeps(messenger, store, account, guard), ...env === void 0 ? {} : { env } };
|
|
18016
18016
|
}, "storeOnlyDeps");
|
|
18017
18017
|
|
|
18018
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18018
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/services/patience.js
|
|
18019
18019
|
import { setTimeout as sleep } from "node:timers/promises";
|
|
18020
18020
|
var LONGEST_WAIT_MS = 5 * 60 * 1e3;
|
|
18021
18021
|
var patiently = /* @__PURE__ */ __name(async (request, note2, stop) => {
|
|
@@ -18038,10 +18038,10 @@ var patiently = /* @__PURE__ */ __name(async (request, note2, stop) => {
|
|
|
18038
18038
|
}
|
|
18039
18039
|
}, "patiently");
|
|
18040
18040
|
|
|
18041
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18041
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/services/archive.js
|
|
18042
18042
|
import { setTimeout as sleep2 } from "node:timers/promises";
|
|
18043
18043
|
|
|
18044
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18044
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/services/backfill-estimate.js
|
|
18045
18045
|
var REQUEST_MS = 400;
|
|
18046
18046
|
var estimateBackfill = /* @__PURE__ */ __name(({ ranges, held, newest, page, maxPages, pauseMs }) => {
|
|
18047
18047
|
const lowest = ranges[0];
|
|
@@ -18064,13 +18064,13 @@ var estimateBackfill = /* @__PURE__ */ __name(({ ranges, held, newest, page, max
|
|
|
18064
18064
|
};
|
|
18065
18065
|
}, "estimateBackfill");
|
|
18066
18066
|
|
|
18067
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18067
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/domain/recovery.js
|
|
18068
18068
|
var withRecovery = /* @__PURE__ */ __name((error) => ({
|
|
18069
18069
|
...error,
|
|
18070
18070
|
retryable: typeof error.retryable === "boolean" ? error.retryable : error.code === "rate_limited" || error.status === 429
|
|
18071
18071
|
}), "withRecovery");
|
|
18072
18072
|
|
|
18073
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18073
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/services/batch.js
|
|
18074
18074
|
var actionable = /* @__PURE__ */ __name((error) => {
|
|
18075
18075
|
if (isCliFailure(error))
|
|
18076
18076
|
return withRecovery({ code: error.code, message: error.message, ...error.details });
|
|
@@ -18153,7 +18153,7 @@ var mergeBatches = /* @__PURE__ */ __name((a, b) => {
|
|
|
18153
18153
|
};
|
|
18154
18154
|
}, "mergeBatches");
|
|
18155
18155
|
|
|
18156
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18156
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/domain/ref-arguments.js
|
|
18157
18157
|
var TAKES = {
|
|
18158
18158
|
chat: "a chat: chat:<provider>/<account>/<chat>, its id or its title",
|
|
18159
18159
|
message: "a message: msg:<provider>/<account>/<chat>/<message>, or a chat and the message's id"
|
|
@@ -18213,7 +18213,7 @@ var ensureAccount = /* @__PURE__ */ __name(async (reference, scope, profilesOn)
|
|
|
18213
18213
|
throw wrongAccount(reference, scope, profiles);
|
|
18214
18214
|
}, "ensureAccount");
|
|
18215
18215
|
|
|
18216
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18216
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/resolve.js
|
|
18217
18217
|
var isId = /* @__PURE__ */ __name((reference) => /^-?\d+$/.test(reference.trim()), "isId");
|
|
18218
18218
|
var foldName = /* @__PURE__ */ __name((name) => name.normalize("NFC").replace(/[\uFE0E\uFE0F\u200D]/g, "").toLowerCase(), "foldName");
|
|
18219
18219
|
var pickChat = /* @__PURE__ */ __name((reference, chats) => {
|
|
@@ -18258,7 +18258,7 @@ ${lines3}`, { candidates });
|
|
|
18258
18258
|
}, "ambiguous");
|
|
18259
18259
|
var isPresent = /* @__PURE__ */ __name((value) => value !== null && value !== void 0, "isPresent");
|
|
18260
18260
|
|
|
18261
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18261
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/services/message-resolution.js
|
|
18262
18262
|
var readChatId = /* @__PURE__ */ __name(async (deps, reference, store, account) => {
|
|
18263
18263
|
if (deps.reads !== "store")
|
|
18264
18264
|
return keptChatId(deps.messenger, reference, store, account);
|
|
@@ -18417,7 +18417,7 @@ var senderAmong = /* @__PURE__ */ __name(async (store, accounts, reference) => {
|
|
|
18417
18417
|
}
|
|
18418
18418
|
}, "senderAmong");
|
|
18419
18419
|
|
|
18420
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18420
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/images/context/index.js
|
|
18421
18421
|
var CONTEXT_MESSAGES = 3;
|
|
18422
18422
|
var CONTEXT_MINUTES = 10;
|
|
18423
18423
|
var MAX_CHARS = 1200;
|
|
@@ -18441,12 +18441,12 @@ var context = {
|
|
|
18441
18441
|
}, "describe")
|
|
18442
18442
|
};
|
|
18443
18443
|
|
|
18444
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18444
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/images/registry.js
|
|
18445
18445
|
var BUILT_INS = [context];
|
|
18446
18446
|
var providers = [...BUILT_INS];
|
|
18447
18447
|
var registeredImageProviders = /* @__PURE__ */ __name(() => providers, "registeredImageProviders");
|
|
18448
18448
|
|
|
18449
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18449
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/services/conversations.js
|
|
18450
18450
|
var READ_PAGE = 5e3;
|
|
18451
18451
|
var CHAIN = 50;
|
|
18452
18452
|
var CONVERSATION_QUERY = {
|
|
@@ -18598,7 +18598,7 @@ var sized = /* @__PURE__ */ __name((size4) => {
|
|
|
18598
18598
|
return size4;
|
|
18599
18599
|
}, "sized");
|
|
18600
18600
|
|
|
18601
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18601
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/services/embeddings-maintenance.js
|
|
18602
18602
|
var REFRESH_BOUNDS = { maxChats: 20, maxChunks: 2e3 };
|
|
18603
18603
|
var MESSAGE_PAGE = 5e3;
|
|
18604
18604
|
var PER_SESSION = 8;
|
|
@@ -18617,7 +18617,7 @@ var embeddingTarget = /* @__PURE__ */ __name((deps, choice = DEFAULT_TEXT_MODEL)
|
|
|
18617
18617
|
price: remote.price,
|
|
18618
18618
|
installed: true,
|
|
18619
18619
|
perBatch: PER_REQUEST * concurrency,
|
|
18620
|
-
open: /* @__PURE__ */ __name(async () => (await import("./remote-
|
|
18620
|
+
open: /* @__PURE__ */ __name(async () => (await import("./remote-KGKRAGA6.js")).openRemote(remote, apiKey, { concurrency }), "open")
|
|
18621
18621
|
};
|
|
18622
18622
|
}
|
|
18623
18623
|
const model = textModel(choice);
|
|
@@ -18634,7 +18634,7 @@ var embeddingTarget = /* @__PURE__ */ __name((deps, choice = DEFAULT_TEXT_MODEL)
|
|
|
18634
18634
|
if (!isTextModelInstalled(model, directory2))
|
|
18635
18635
|
throw notDownloaded(model.id);
|
|
18636
18636
|
if (apart) {
|
|
18637
|
-
const { openProcess } = await import("./process-
|
|
18637
|
+
const { openProcess } = await import("./process-TAFRBB53.js");
|
|
18638
18638
|
return openProcess(model, directory2, { threads: threads ?? defaultThreads() });
|
|
18639
18639
|
}
|
|
18640
18640
|
return openEmbedder(model, directory2, { threads: threads ?? defaultThreads() });
|
|
@@ -18923,7 +18923,7 @@ var shaped = /* @__PURE__ */ __name(({ chatId, builtAt, algorithmVersion, pendin
|
|
|
18923
18923
|
return { ...one2, state };
|
|
18924
18924
|
}, "shaped");
|
|
18925
18925
|
|
|
18926
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18926
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/services/search-catchup.js
|
|
18927
18927
|
var CATCH_UP_BOUNDS = { maxChunks: 500, maxMessages: 1e4, timeMs: 3e4 };
|
|
18928
18928
|
var validateCatchUpBounds = /* @__PURE__ */ __name((options) => {
|
|
18929
18929
|
for (const [key, value, maximum] of [
|
|
@@ -18976,7 +18976,7 @@ var catchUpSearch = /* @__PURE__ */ __name(async (deps, chat, options, signal, c
|
|
|
18976
18976
|
}
|
|
18977
18977
|
}, "catchUpSearch");
|
|
18978
18978
|
|
|
18979
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18979
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/services/archive.js
|
|
18980
18980
|
var pushed = /* @__PURE__ */ __name((deps, what) => {
|
|
18981
18981
|
if (deps.reads === "store") {
|
|
18982
18982
|
throw new CliError("validation_error", `${what} asks for older history, and this messenger pushes its history instead \u2014 keep \`${typedCommand(deps.messenger.app.command, "serve")}\` running`);
|
|
@@ -19342,7 +19342,7 @@ var timeOfKey = /* @__PURE__ */ __name(async (store, account, chatId, key, byTim
|
|
|
19342
19342
|
return message?.timestamp ?? fallback;
|
|
19343
19343
|
}, "timeOfKey");
|
|
19344
19344
|
|
|
19345
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19345
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/services/questions.js
|
|
19346
19346
|
var LINKS = /https?:\/\/\S+/g;
|
|
19347
19347
|
var unanswered = /* @__PURE__ */ __name((messages, { answerers: answerers2, before: before2 }) => questions(messages, { answerers: answerers2 }).filter(({ question, answer }) => answer === void 0 && Date.parse(question.timestamp) < before2).map(({ question }) => question), "unanswered");
|
|
19348
19348
|
var questions = /* @__PURE__ */ __name((messages, { answerers: answerers2, asker = "others" }) => {
|
|
@@ -19372,7 +19372,7 @@ var questions = /* @__PURE__ */ __name((messages, { answerers: answerers2, asker
|
|
|
19372
19372
|
});
|
|
19373
19373
|
}, "questions");
|
|
19374
19374
|
|
|
19375
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19375
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/services/task-categories.js
|
|
19376
19376
|
var names = /* @__PURE__ */ __name((categories) => categories.map(({ name }) => name).join(", "), "names");
|
|
19377
19377
|
var taskCategoryOf = /* @__PURE__ */ __name((categories = DEFAULT_TASK_CATEGORIES, flag = "--category") => (typed) => {
|
|
19378
19378
|
const name = typed.trim().toLowerCase();
|
|
@@ -19396,7 +19396,7 @@ var triggerStems = /* @__PURE__ */ __name((categories) => {
|
|
|
19396
19396
|
const { english, spanish } = stemmersOf();
|
|
19397
19397
|
const built = categories.map(({ name, triggers }) => ({
|
|
19398
19398
|
name,
|
|
19399
|
-
english: new Set(Object.values(triggers).flatMap((
|
|
19399
|
+
english: new Set(Object.values(triggers).flatMap((words4) => words4.flatMap((word) => english.stemTokens(word)))),
|
|
19400
19400
|
spanish: new Set(triggers.es.flatMap((word) => spanish.stemTokens(word)))
|
|
19401
19401
|
}));
|
|
19402
19402
|
stemsByList.set(categories, built);
|
|
@@ -19429,7 +19429,7 @@ var categorize = /* @__PURE__ */ __name((text2, categories = DEFAULT_TASK_CATEGO
|
|
|
19429
19429
|
return best.name;
|
|
19430
19430
|
}, "categorize");
|
|
19431
19431
|
|
|
19432
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19432
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/services/task-rules.js
|
|
19433
19433
|
var taskAccount = /* @__PURE__ */ __name(({ provider, account }) => `${provider}:${account}`, "taskAccount");
|
|
19434
19434
|
var RULES_IN = {
|
|
19435
19435
|
dialog: "all",
|
|
@@ -19635,7 +19635,7 @@ var applyTaskRulesToChats = /* @__PURE__ */ __name(async (store, account, chatId
|
|
|
19635
19635
|
return passes;
|
|
19636
19636
|
}, "applyTaskRulesToChats");
|
|
19637
19637
|
|
|
19638
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19638
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/context/evidence-response.js
|
|
19639
19639
|
var contextSourceKey = /* @__PURE__ */ __name((source) => JSON.stringify([source.kind, source.accountId, source.provider, source.account]), "contextSourceKey");
|
|
19640
19640
|
var validateContextEvidencePage = /* @__PURE__ */ __name((page, request) => {
|
|
19641
19641
|
const fail3 = /* @__PURE__ */ __name(() => {
|
|
@@ -19699,7 +19699,7 @@ var validateContextEvidencePage = /* @__PURE__ */ __name((page, request) => {
|
|
|
19699
19699
|
}
|
|
19700
19700
|
}, "validateContextEvidencePage");
|
|
19701
19701
|
|
|
19702
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19702
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/context/read-budget.js
|
|
19703
19703
|
var contextReadBudget = /* @__PURE__ */ __name((limits = {}) => {
|
|
19704
19704
|
if (!limits || typeof limits !== "object" || Array.isArray(limits))
|
|
19705
19705
|
throw new CliError("validation_error", "limits needs a context read allowance");
|
|
@@ -19752,7 +19752,7 @@ var contextReadBudget = /* @__PURE__ */ __name((limits = {}) => {
|
|
|
19752
19752
|
};
|
|
19753
19753
|
}, "contextReadBudget");
|
|
19754
19754
|
|
|
19755
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19755
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/services/context-evidence.js
|
|
19756
19756
|
var createContextEvidenceReader = /* @__PURE__ */ __name((port, allowed, limits) => {
|
|
19757
19757
|
if (!port || typeof port.read !== "function")
|
|
19758
19758
|
throw new CliError("configuration_error", "context evidence reader is unavailable");
|
|
@@ -19796,7 +19796,7 @@ var createContextEvidenceReader = /* @__PURE__ */ __name((port, allowed, limits)
|
|
|
19796
19796
|
};
|
|
19797
19797
|
}, "createContextEvidenceReader");
|
|
19798
19798
|
|
|
19799
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19799
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/services/ingest.js
|
|
19800
19800
|
var emptyReceipt = /* @__PURE__ */ __name((dryRun) => ({
|
|
19801
19801
|
dryRun,
|
|
19802
19802
|
source: null,
|
|
@@ -19871,7 +19871,7 @@ var ingest = /* @__PURE__ */ __name(async (store, envelope, { account, dryRun =
|
|
|
19871
19871
|
return receipt;
|
|
19872
19872
|
}, "ingest");
|
|
19873
19873
|
|
|
19874
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19874
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/services/project-purposes.js
|
|
19875
19875
|
var BUILT_IN_PURPOSES = ["work", "sales", "support", "other"];
|
|
19876
19876
|
var DEFAULT_PURPOSES = ["work"];
|
|
19877
19877
|
var LINK_PURPOSE = "work";
|
|
@@ -19882,15 +19882,15 @@ var unknown2 = /* @__PURE__ */ __name((asked, config) => {
|
|
|
19882
19882
|
throw new CliError("validation_error", `unknown purpose ${wrong.join(", ")}; the configured ones are ${config.purposes.join(", ")}, or all`, { param: "purpose", purposes: [...config.purposes] });
|
|
19883
19883
|
}, "unknown");
|
|
19884
19884
|
var purposesOf = /* @__PURE__ */ __name((asked, config = BUILT_IN_PURPOSE_CONFIG, project2) => {
|
|
19885
|
-
const
|
|
19886
|
-
if (
|
|
19887
|
-
if (
|
|
19885
|
+
const words4 = (asked ?? []).map((one2) => one2.trim()).filter(Boolean);
|
|
19886
|
+
if (words4.includes("all")) {
|
|
19887
|
+
if (words4.length > 1)
|
|
19888
19888
|
throw new CliError("validation_error", "--purpose all reads every purpose; give it alone");
|
|
19889
19889
|
return "all";
|
|
19890
19890
|
}
|
|
19891
|
-
if (
|
|
19892
|
-
unknown2(
|
|
19893
|
-
return new Set(
|
|
19891
|
+
if (words4.length) {
|
|
19892
|
+
unknown2(words4, config);
|
|
19893
|
+
return new Set(words4);
|
|
19894
19894
|
}
|
|
19895
19895
|
const own = (project2?.key ? config.projects?.[project2.key] : void 0) ?? (project2?.ref ? config.projects?.[project2.ref] : void 0);
|
|
19896
19896
|
return new Set(own ?? config.defaults);
|
|
@@ -19901,7 +19901,7 @@ var purposeList = /* @__PURE__ */ __name((value, previous = []) => [
|
|
|
19901
19901
|
...value.split(",").map((one2) => one2.trim()).filter(Boolean)
|
|
19902
19902
|
], "purposeList");
|
|
19903
19903
|
|
|
19904
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19904
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/services/moment.js
|
|
19905
19905
|
var AGO = /^(\d+)(m|h|d)$/;
|
|
19906
19906
|
var AGO_MS = { m: 6e4, h: 36e5, d: 864e5 };
|
|
19907
19907
|
var DATE = /^\d{4}-\d{2}-\d{2}/;
|
|
@@ -19941,7 +19941,7 @@ var dateWindow = /* @__PURE__ */ __name(({ sinceTime, untilTime, zone, now = Dat
|
|
|
19941
19941
|
};
|
|
19942
19942
|
}, "dateWindow");
|
|
19943
19943
|
|
|
19944
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19944
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/botcheck/check.js
|
|
19945
19945
|
var DAY_MS = 864e5;
|
|
19946
19946
|
var NEW_DAYS = 30;
|
|
19947
19947
|
var SAME_TEXT_MIN = 20;
|
|
@@ -20018,7 +20018,23 @@ var scorePerson = /* @__PURE__ */ __name(({ subject, provider, activity, photos,
|
|
|
20018
20018
|
};
|
|
20019
20019
|
}, "scorePerson");
|
|
20020
20020
|
|
|
20021
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20021
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/http/time-limit.js
|
|
20022
|
+
var timeLimit = /* @__PURE__ */ __name((ms) => {
|
|
20023
|
+
const controller = new AbortController();
|
|
20024
|
+
const timer = setTimeout(() => controller.abort(new DOMException("The operation timed out.", "TimeoutError")), ms);
|
|
20025
|
+
timer.unref();
|
|
20026
|
+
return { signal: controller.signal, clear: /* @__PURE__ */ __name(() => clearTimeout(timer), "clear") };
|
|
20027
|
+
}, "timeLimit");
|
|
20028
|
+
var withTimeLimit = /* @__PURE__ */ __name(async (ms, run) => {
|
|
20029
|
+
const limit = timeLimit(ms);
|
|
20030
|
+
try {
|
|
20031
|
+
return await run(limit.signal);
|
|
20032
|
+
} finally {
|
|
20033
|
+
limit.clear();
|
|
20034
|
+
}
|
|
20035
|
+
}, "withTimeLimit");
|
|
20036
|
+
|
|
20037
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/botcheck/registries.js
|
|
20022
20038
|
var REGISTRIES = {
|
|
20023
20039
|
cas: { title: "Combot Anti-Spam (CAS)", docs: "https://cas.chat/api" },
|
|
20024
20040
|
lols: { title: "lols.bot", docs: "https://api.lols.bot/lols-bot.json" }
|
|
@@ -20027,16 +20043,18 @@ var TIMEOUT_MS = 1e4;
|
|
|
20027
20043
|
var askRegistries = /* @__PURE__ */ __name(async (id2, options = {}) => Promise.all([askCas(id2, options), askLols(id2, options)]), "askRegistries");
|
|
20028
20044
|
var getJson = /* @__PURE__ */ __name(async (url, headers, { fetch: fetchFn = fetch, timeoutMs = TIMEOUT_MS }) => {
|
|
20029
20045
|
try {
|
|
20030
|
-
const
|
|
20031
|
-
|
|
20032
|
-
|
|
20033
|
-
|
|
20046
|
+
const { status, text: text2 } = await withTimeLimit(timeoutMs, async (signal) => {
|
|
20047
|
+
const response = await fetchFn(url, {
|
|
20048
|
+
headers: { accept: "application/json", ...headers },
|
|
20049
|
+
signal,
|
|
20050
|
+
redirect: "error"
|
|
20051
|
+
});
|
|
20052
|
+
return { status: response.status, text: await response.text() };
|
|
20034
20053
|
});
|
|
20035
|
-
const text2 = await response.text();
|
|
20036
20054
|
try {
|
|
20037
|
-
return { status
|
|
20055
|
+
return { status, body: JSON.parse(text2) };
|
|
20038
20056
|
} catch {
|
|
20039
|
-
return { failed: `answered ${
|
|
20057
|
+
return { failed: `answered ${status} with something that is not JSON` };
|
|
20040
20058
|
}
|
|
20041
20059
|
} catch (error) {
|
|
20042
20060
|
return {
|
|
@@ -20103,7 +20121,7 @@ var notCovered = /* @__PURE__ */ __name((messenger, now = /* @__PURE__ */ new Da
|
|
|
20103
20121
|
detail: `lists Telegram accounts only, not ${messenger} ones`
|
|
20104
20122
|
})), "notCovered");
|
|
20105
20123
|
|
|
20106
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20124
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/botcheck/service.js
|
|
20107
20125
|
var ACTIVITY_MESSAGES = 1e3;
|
|
20108
20126
|
var botCheckService = /* @__PURE__ */ __name((deps) => {
|
|
20109
20127
|
const subjectOf = /* @__PURE__ */ __name(async (reference) => {
|
|
@@ -20191,7 +20209,7 @@ var botCheckService = /* @__PURE__ */ __name((deps) => {
|
|
|
20191
20209
|
};
|
|
20192
20210
|
}, "botCheckService");
|
|
20193
20211
|
|
|
20194
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20212
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/domain/thread.js
|
|
20195
20213
|
var threadIdOf = /* @__PURE__ */ __name((value) => {
|
|
20196
20214
|
if (value === void 0)
|
|
20197
20215
|
return void 0;
|
|
@@ -20201,7 +20219,7 @@ var threadIdOf = /* @__PURE__ */ __name((value) => {
|
|
|
20201
20219
|
return id2;
|
|
20202
20220
|
}, "threadIdOf");
|
|
20203
20221
|
|
|
20204
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20222
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/services/chat-stats.js
|
|
20205
20223
|
var TOP_POSTS = 5;
|
|
20206
20224
|
var JOINS = /* @__PURE__ */ new Set(["join", "add"]);
|
|
20207
20225
|
var LEAVES = /* @__PURE__ */ new Set(["leave", "remove"]);
|
|
@@ -20318,7 +20336,7 @@ var median = /* @__PURE__ */ __name((values) => {
|
|
|
20318
20336
|
return Math.round(sorted.length % 2 === 0 ? ((sorted[middle - 1] ?? upper) + upper) / 2 : upper);
|
|
20319
20337
|
}, "median");
|
|
20320
20338
|
|
|
20321
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20339
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/services/member-history.js
|
|
20322
20340
|
var memberEvents = /* @__PURE__ */ __name((stays, revisions, since = 0) => {
|
|
20323
20341
|
const events = [];
|
|
20324
20342
|
for (const stay of stays) {
|
|
@@ -20350,7 +20368,7 @@ var memberEvents = /* @__PURE__ */ __name((stays, revisions, since = 0) => {
|
|
|
20350
20368
|
return events.filter(({ at }) => Date.parse(at) >= since).sort((a, b) => Date.parse(a.at) - Date.parse(b.at) || a.id.localeCompare(b.id));
|
|
20351
20369
|
}, "memberEvents");
|
|
20352
20370
|
|
|
20353
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20371
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/services/chats.js
|
|
20354
20372
|
var EVENTS_DAYS = 7;
|
|
20355
20373
|
var TRACKED_DAYS = 30;
|
|
20356
20374
|
var STATS_PAGE = 1e3;
|
|
@@ -20645,7 +20663,7 @@ var storedMembers = /* @__PURE__ */ __name(async (store, chatId) => {
|
|
|
20645
20663
|
return members.length === 0 ? null : members;
|
|
20646
20664
|
}, "storedMembers");
|
|
20647
20665
|
|
|
20648
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20666
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/services/inbox.js
|
|
20649
20667
|
var INBOX_CHATS = 20;
|
|
20650
20668
|
var REVIEW_DAYS = 3;
|
|
20651
20669
|
var UNANSWERED_HOURS = 24;
|
|
@@ -20853,7 +20871,7 @@ var inboxService = /* @__PURE__ */ __name((deps) => {
|
|
|
20853
20871
|
};
|
|
20854
20872
|
}, "inboxService");
|
|
20855
20873
|
|
|
20856
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20874
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/services/person-context.js
|
|
20857
20875
|
var CONTEXT_MESSAGES2 = 10;
|
|
20858
20876
|
var CONTEXT_BYTES = 64 * 1024;
|
|
20859
20877
|
var toContext = /* @__PURE__ */ __name((key, message, chatTitle2) => ({
|
|
@@ -21114,10 +21132,10 @@ var personMessages = /* @__PURE__ */ __name(async (store, asked, reference, { ch
|
|
|
21114
21132
|
};
|
|
21115
21133
|
}, "personMessages");
|
|
21116
21134
|
|
|
21117
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21135
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/services/meeting-evidence.js
|
|
21118
21136
|
import { createHash } from "node:crypto";
|
|
21119
21137
|
|
|
21120
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21138
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/services/meeting-reference.js
|
|
21121
21139
|
var missing2 = /* @__PURE__ */ __name(() => new CliError("not_found", "the meeting evidence is unavailable for this account"), "missing");
|
|
21122
21140
|
var authorizedMeetingMetadata = /* @__PURE__ */ __name(async (store, accountId, reference, options = {}) => {
|
|
21123
21141
|
const parsed = parseMeetingReference(reference);
|
|
@@ -21135,7 +21153,7 @@ var authorizedMeetingMetadata = /* @__PURE__ */ __name(async (store, accountId,
|
|
|
21135
21153
|
return { parsed, meeting };
|
|
21136
21154
|
}, "authorizedMeetingMetadata");
|
|
21137
21155
|
|
|
21138
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21156
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/services/meeting-evidence.js
|
|
21139
21157
|
var hash = /* @__PURE__ */ __name((value) => createHash("sha256").update(JSON.stringify(value)).digest("hex"), "hash");
|
|
21140
21158
|
var checkMeetingCancelled = /* @__PURE__ */ __name((signal) => {
|
|
21141
21159
|
if (signal?.aborted)
|
|
@@ -21334,7 +21352,7 @@ var readMeetingEvidence = /* @__PURE__ */ __name(async (store, accountId, refere
|
|
|
21334
21352
|
return { ...packet, fingerprint: hash(packet) };
|
|
21335
21353
|
}, "readMeetingEvidence");
|
|
21336
21354
|
|
|
21337
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21355
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/services/person-meeting-context.js
|
|
21338
21356
|
var personMeetingContext = /* @__PURE__ */ __name(async (store, personReference, options) => {
|
|
21339
21357
|
const { meetings = 10, cues = 5, bytes: bytes2 = 64 * 1024, scanLimit = 1e3, since, signal } = options;
|
|
21340
21358
|
const requestedAccounts = options.accountIds;
|
|
@@ -21433,7 +21451,7 @@ var personMeetingContext = /* @__PURE__ */ __name(async (store, personReference,
|
|
|
21433
21451
|
};
|
|
21434
21452
|
}, "personMeetingContext");
|
|
21435
21453
|
|
|
21436
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21454
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/services/person-preparation.js
|
|
21437
21455
|
var PREPARE_BYTES = 96 * 1024;
|
|
21438
21456
|
var MEETINGS = 5;
|
|
21439
21457
|
var CUES = 3;
|
|
@@ -21550,7 +21568,7 @@ var meetingsOf = /* @__PURE__ */ __name(async (store, uid, stored, since, left)
|
|
|
21550
21568
|
}
|
|
21551
21569
|
}, "meetingsOf");
|
|
21552
21570
|
|
|
21553
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21571
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/services/person-profile.js
|
|
21554
21572
|
var personProfile = /* @__PURE__ */ __name(async (deps, person, known2) => {
|
|
21555
21573
|
const online = deps.offline ? void 0 : await deps.connection();
|
|
21556
21574
|
const held = await storeIfOpen(deps);
|
|
@@ -21620,7 +21638,7 @@ var quiet = /* @__PURE__ */ __name((facts) => facts.chats.map(({ id: id2, title,
|
|
|
21620
21638
|
complete: false
|
|
21621
21639
|
})), "quiet");
|
|
21622
21640
|
|
|
21623
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21641
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/services/person-timeline.js
|
|
21624
21642
|
var TIMELINE_ITEMS = 50;
|
|
21625
21643
|
var TIMELINE_MAX = 500;
|
|
21626
21644
|
var SCOPES2 = ["personal", "work"];
|
|
@@ -21675,7 +21693,7 @@ var personTimeline = /* @__PURE__ */ __name(async (store, asked, reference, { sc
|
|
|
21675
21693
|
};
|
|
21676
21694
|
}, "personTimeline");
|
|
21677
21695
|
|
|
21678
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21696
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/services/people.js
|
|
21679
21697
|
var peopleService = /* @__PURE__ */ __name((deps) => {
|
|
21680
21698
|
const localCard = /* @__PURE__ */ __name(async (card, includeNotes = false) => {
|
|
21681
21699
|
const held = await storeIfOpen(deps);
|
|
@@ -21902,7 +21920,7 @@ var withoutPhone = /* @__PURE__ */ __name((answer) => {
|
|
|
21902
21920
|
return rest;
|
|
21903
21921
|
}, "withoutPhone");
|
|
21904
21922
|
|
|
21905
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21923
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/services/task-stats.js
|
|
21906
21924
|
var TASK_STATS_BY = ["chat", "meeting", "project"];
|
|
21907
21925
|
var PERIOD_FIELD = "created";
|
|
21908
21926
|
var refuseNestedPeriod = /* @__PURE__ */ __name((node, top = true) => {
|
|
@@ -22005,7 +22023,7 @@ var meetingNames = /* @__PURE__ */ __name(async (store, groups) => {
|
|
|
22005
22023
|
}));
|
|
22006
22024
|
}, "meetingNames");
|
|
22007
22025
|
|
|
22008
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22026
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/services/task-tag-filters.js
|
|
22009
22027
|
var taskTagFilters = /* @__PURE__ */ __name(async (store, query) => {
|
|
22010
22028
|
const tags = /* @__PURE__ */ new Map();
|
|
22011
22029
|
for (const node of query ? walkQuery(query.root) : [])
|
|
@@ -22014,7 +22032,7 @@ var taskTagFilters = /* @__PURE__ */ __name(async (store, query) => {
|
|
|
22014
22032
|
return tags;
|
|
22015
22033
|
}, "taskTagFilters");
|
|
22016
22034
|
|
|
22017
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22035
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/services/tasks.js
|
|
22018
22036
|
var TASK_QUERY = {
|
|
22019
22037
|
entity: "task",
|
|
22020
22038
|
backend: "sql",
|
|
@@ -22506,7 +22524,7 @@ var taskView = /* @__PURE__ */ __name(async (store, account, task2) => {
|
|
|
22506
22524
|
};
|
|
22507
22525
|
}, "taskView");
|
|
22508
22526
|
|
|
22509
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22527
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/services/proposal-tasks.js
|
|
22510
22528
|
var proposalSource = /* @__PURE__ */ __name((id2) => `proposed-action:${id2}`, "proposalSource");
|
|
22511
22529
|
var approveAsTask = /* @__PURE__ */ __name(async (store, id2, by) => {
|
|
22512
22530
|
const proposal = await store.proposedActions.get(id2);
|
|
@@ -22529,7 +22547,7 @@ var approveAsTask = /* @__PURE__ */ __name(async (store, id2, by) => {
|
|
|
22529
22547
|
return { proposal: await store.proposedActions.approve(proposal.id, by, { task: task2.id }), task: task2 };
|
|
22530
22548
|
}, "approveAsTask");
|
|
22531
22549
|
|
|
22532
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22550
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/services/proposals/ids.js
|
|
22533
22551
|
var MAX_IDS = 500;
|
|
22534
22552
|
var refuse = /* @__PURE__ */ __name((message) => {
|
|
22535
22553
|
throw new CliError("validation_error", message, { reason: "proposal.ids" });
|
|
@@ -22571,7 +22589,7 @@ var parseProposalIds = /* @__PURE__ */ __name((text2) => {
|
|
|
22571
22589
|
return ids;
|
|
22572
22590
|
}, "parseProposalIds");
|
|
22573
22591
|
|
|
22574
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22592
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/shared.js
|
|
22575
22593
|
var proposerOfAuthor = /* @__PURE__ */ __name((author) => {
|
|
22576
22594
|
if (author.type === "person")
|
|
22577
22595
|
return { type: "person", id: author.id };
|
|
@@ -22613,7 +22631,7 @@ var storedStatus = /* @__PURE__ */ __name((filter) => {
|
|
|
22613
22631
|
return status === "proposed" || status === "rejected" ? status : void 0;
|
|
22614
22632
|
}, "storedStatus");
|
|
22615
22633
|
|
|
22616
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22634
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/action.js
|
|
22617
22635
|
var rowOf = /* @__PURE__ */ __name((action2) => ({
|
|
22618
22636
|
id: action2.id,
|
|
22619
22637
|
kind: "action",
|
|
@@ -22653,7 +22671,7 @@ var actionKind = /* @__PURE__ */ __name((store, claimed) => ({
|
|
|
22653
22671
|
}, "decide")
|
|
22654
22672
|
}), "actionKind");
|
|
22655
22673
|
|
|
22656
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22674
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/fact.js
|
|
22657
22675
|
var STATUS = {
|
|
22658
22676
|
proposed: "proposed",
|
|
22659
22677
|
accepted: "confirmed",
|
|
@@ -22696,7 +22714,7 @@ var factKind = /* @__PURE__ */ __name((store) => ({
|
|
|
22696
22714
|
}, "decide")
|
|
22697
22715
|
}), "factKind");
|
|
22698
22716
|
|
|
22699
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22717
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/finance.js
|
|
22700
22718
|
var rowOf3 = /* @__PURE__ */ __name((kind, entry) => ({
|
|
22701
22719
|
id: entry.ref,
|
|
22702
22720
|
kind,
|
|
@@ -22731,7 +22749,7 @@ var financeKind = /* @__PURE__ */ __name((store, kind) => ({
|
|
|
22731
22749
|
var invoiceKind = /* @__PURE__ */ __name((store) => financeKind(store, "invoice"), "invoiceKind");
|
|
22732
22750
|
var paymentKind = /* @__PURE__ */ __name((store) => financeKind(store, "payment"), "paymentKind");
|
|
22733
22751
|
|
|
22734
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22752
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/findings.js
|
|
22735
22753
|
var FACT_SUMMARIES = {
|
|
22736
22754
|
fact: /* @__PURE__ */ __name((finding) => finding.statement, "fact"),
|
|
22737
22755
|
task: /* @__PURE__ */ __name((finding) => finding.title, "task"),
|
|
@@ -22803,7 +22821,7 @@ var findingsKind = /* @__PURE__ */ __name((store) => {
|
|
|
22803
22821
|
};
|
|
22804
22822
|
}, "findingsKind");
|
|
22805
22823
|
|
|
22806
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22824
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/key-document.js
|
|
22807
22825
|
var linkRow = /* @__PURE__ */ __name((link4) => ({
|
|
22808
22826
|
id: `key:${link4.id}`,
|
|
22809
22827
|
kind: "key_document",
|
|
@@ -22871,7 +22889,8 @@ var keyDocumentKind = /* @__PURE__ */ __name((store) => {
|
|
|
22871
22889
|
};
|
|
22872
22890
|
}, "keyDocumentKind");
|
|
22873
22891
|
|
|
22874
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22892
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/mail-findings.js
|
|
22893
|
+
var words = /* @__PURE__ */ __name((...parts) => parts.filter(Boolean).join(" "), "words");
|
|
22875
22894
|
var summaryOf = /* @__PURE__ */ __name((finding) => {
|
|
22876
22895
|
switch (finding.kind) {
|
|
22877
22896
|
case "task":
|
|
@@ -22886,6 +22905,14 @@ var summaryOf = /* @__PURE__ */ __name((finding) => {
|
|
|
22886
22905
|
return `${finding.from} \u2192 ${finding.to}`;
|
|
22887
22906
|
case "new_contact":
|
|
22888
22907
|
return `${finding.name} <${finding.address}>`;
|
|
22908
|
+
case "invoice":
|
|
22909
|
+
return words("invoice", finding.number, finding.total, finding.currency, `\xB7 ${finding.reason}`);
|
|
22910
|
+
case "payment":
|
|
22911
|
+
return words("payment", finding.amount, finding.currency, finding.date, `\xB7 ${finding.reason}`);
|
|
22912
|
+
case "order":
|
|
22913
|
+
return words("order", finding.number, finding.supplierName, finding.status ?? "placed", `\xB7 ${finding.reason}`);
|
|
22914
|
+
case "order_update":
|
|
22915
|
+
return words("order", finding.number, finding.supplierName, finding.status, `\xB7 ${finding.reason}`);
|
|
22889
22916
|
}
|
|
22890
22917
|
}, "summaryOf");
|
|
22891
22918
|
var rowOf5 = /* @__PURE__ */ __name((batch, createdAt) => {
|
|
@@ -22950,7 +22977,7 @@ var mailFindingsKind = /* @__PURE__ */ __name((store) => {
|
|
|
22950
22977
|
};
|
|
22951
22978
|
}, "mailFindingsKind");
|
|
22952
22979
|
|
|
22953
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22980
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/meeting-findings.js
|
|
22954
22981
|
var rowOf6 = /* @__PURE__ */ __name((action2, batch) => {
|
|
22955
22982
|
const findings = batch.input.findings;
|
|
22956
22983
|
const projects = [...new Set(findings.map((one2) => "project" in one2 ? one2.project : void 0))];
|
|
@@ -23014,7 +23041,7 @@ var meetingFindingsKind = /* @__PURE__ */ __name((store) => {
|
|
|
23014
23041
|
};
|
|
23015
23042
|
}, "meetingFindingsKind");
|
|
23016
23043
|
|
|
23017
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23044
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/memory.js
|
|
23018
23045
|
var STATUS2 = {
|
|
23019
23046
|
proposed: "proposed",
|
|
23020
23047
|
confirmed: "confirmed",
|
|
@@ -23055,7 +23082,39 @@ var memoryKind = /* @__PURE__ */ __name((store) => ({
|
|
|
23055
23082
|
}, "decide")
|
|
23056
23083
|
}), "memoryKind");
|
|
23057
23084
|
|
|
23058
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23085
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/orders.js
|
|
23086
|
+
var rowOf8 = /* @__PURE__ */ __name((order) => ({
|
|
23087
|
+
id: order.ref,
|
|
23088
|
+
kind: "order",
|
|
23089
|
+
status: order.review,
|
|
23090
|
+
project: order.project,
|
|
23091
|
+
subject: order.ref,
|
|
23092
|
+
object: order.supplier?.ref ?? null,
|
|
23093
|
+
summary: order.title,
|
|
23094
|
+
proposedBy: proposerOfAuthor(order.author),
|
|
23095
|
+
reason: order.reason,
|
|
23096
|
+
evidence: [],
|
|
23097
|
+
score: null,
|
|
23098
|
+
signals: null,
|
|
23099
|
+
parts: null,
|
|
23100
|
+
createdAt: order.createdAt
|
|
23101
|
+
}), "rowOf");
|
|
23102
|
+
var orderKind = /* @__PURE__ */ __name((store) => ({
|
|
23103
|
+
kind: "order",
|
|
23104
|
+
prefix: "order",
|
|
23105
|
+
list: /* @__PURE__ */ __name(async (filter) => {
|
|
23106
|
+
const status = filter.status ?? "proposed";
|
|
23107
|
+
const orders = await store.orders.list({ ...pushed2(filter), ...status === "all" ? {} : { review: status } });
|
|
23108
|
+
return kept(orders.map(rowOf8), filter);
|
|
23109
|
+
}, "list"),
|
|
23110
|
+
get: /* @__PURE__ */ __name(async (id2) => rowOf8(await store.orders.get(id2)), "get"),
|
|
23111
|
+
decide: /* @__PURE__ */ __name(async (id2, { confirm, by, reason }) => {
|
|
23112
|
+
const order = confirm ? await store.orders.confirm(id2, by, reason) : await store.orders.reject(id2, by, reason);
|
|
23113
|
+
return { id: id2, kind: "order", status: confirm ? "confirmed" : "rejected", made: confirm ? [order.ref] : [] };
|
|
23114
|
+
}, "decide")
|
|
23115
|
+
}), "orderKind");
|
|
23116
|
+
|
|
23117
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/relationship.js
|
|
23059
23118
|
var linkRow2 = /* @__PURE__ */ __name((link4) => ({
|
|
23060
23119
|
id: `link:${link4.id}`,
|
|
23061
23120
|
kind: "relationship",
|
|
@@ -23129,10 +23188,10 @@ var relationshipKind = /* @__PURE__ */ __name((store) => {
|
|
|
23129
23188
|
};
|
|
23130
23189
|
}, "relationshipKind");
|
|
23131
23190
|
|
|
23132
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23191
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/relationship-update.js
|
|
23133
23192
|
var KIND = "relationship_update";
|
|
23134
23193
|
var summaryOf2 = /* @__PURE__ */ __name(({ changes }) => Object.entries(changes).map(([field, value]) => `${field} ${value ?? "cleared"}`).join(", "), "summaryOf");
|
|
23135
|
-
var
|
|
23194
|
+
var rowOf9 = /* @__PURE__ */ __name((action2) => {
|
|
23136
23195
|
const payload = action2.payload;
|
|
23137
23196
|
return {
|
|
23138
23197
|
id: action2.id,
|
|
@@ -23161,9 +23220,9 @@ var relationshipUpdateKind = /* @__PURE__ */ __name((store) => ({
|
|
|
23161
23220
|
...status === void 0 ? {} : { status },
|
|
23162
23221
|
...pushed2(filter)
|
|
23163
23222
|
});
|
|
23164
|
-
return kept(stored.map(
|
|
23223
|
+
return kept(stored.map(rowOf9), filter);
|
|
23165
23224
|
}, "list"),
|
|
23166
|
-
get: /* @__PURE__ */ __name(async (id2) =>
|
|
23225
|
+
get: /* @__PURE__ */ __name(async (id2) => rowOf9(await store.proposedActions.get(id2)), "get"),
|
|
23167
23226
|
decide: /* @__PURE__ */ __name(async (id2, { confirm, by, reason }) => {
|
|
23168
23227
|
const { relation } = await store.knowledge.decideRelationUpdate(id2, {
|
|
23169
23228
|
confirm,
|
|
@@ -23179,8 +23238,8 @@ var relationshipUpdateKind = /* @__PURE__ */ __name((store) => ({
|
|
|
23179
23238
|
}, "decide")
|
|
23180
23239
|
}), "relationshipUpdateKind");
|
|
23181
23240
|
|
|
23182
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23183
|
-
var
|
|
23241
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/task-close.js
|
|
23242
|
+
var rowOf10 = /* @__PURE__ */ __name((task2) => {
|
|
23184
23243
|
const suggestion = task2.closeSuggestion;
|
|
23185
23244
|
if (suggestion === null)
|
|
23186
23245
|
return void 0;
|
|
@@ -23205,7 +23264,7 @@ var taskCloseKind = /* @__PURE__ */ __name((store) => {
|
|
|
23205
23264
|
const taskOf = /* @__PURE__ */ __name(async (id2) => {
|
|
23206
23265
|
const key = id2.slice("close:".length);
|
|
23207
23266
|
const task2 = await store.tasks.details(key).catch(() => void 0);
|
|
23208
|
-
const row = task2 &&
|
|
23267
|
+
const row = task2 && rowOf10(task2);
|
|
23209
23268
|
if (!task2 || !row)
|
|
23210
23269
|
throw new CliError("not_found", `no close waits on task ${key}`);
|
|
23211
23270
|
return { task: task2, row };
|
|
@@ -23222,7 +23281,7 @@ var taskCloseKind = /* @__PURE__ */ __name((store) => {
|
|
|
23222
23281
|
where: { sql: "t.close_suggested_as IS NOT NULL", params: [] },
|
|
23223
23282
|
limit: filter.offset + filter.limit
|
|
23224
23283
|
});
|
|
23225
|
-
return kept(tasks.flatMap((task2) =>
|
|
23284
|
+
return kept(tasks.flatMap((task2) => rowOf10(task2) ?? []), { ...filter, limit: filter.offset + filter.limit });
|
|
23226
23285
|
}, "list"),
|
|
23227
23286
|
get: /* @__PURE__ */ __name(async (id2) => (await taskOf(id2)).row, "get"),
|
|
23228
23287
|
decide: /* @__PURE__ */ __name(async (id2, { confirm, by, reason }) => {
|
|
@@ -23247,7 +23306,7 @@ var taskCloseKind = /* @__PURE__ */ __name((store) => {
|
|
|
23247
23306
|
};
|
|
23248
23307
|
}, "taskCloseKind");
|
|
23249
23308
|
|
|
23250
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23309
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/services/proposals/registry.js
|
|
23251
23310
|
var PREFIX = /^([a-z][a-z_]*):/;
|
|
23252
23311
|
var marked = /* @__PURE__ */ __name((kind, row) => kind.ownerOnly ? { ...row, ownerOnly: true } : row, "marked");
|
|
23253
23312
|
var refusalOf = /* @__PURE__ */ __name((id2, error) => {
|
|
@@ -23362,6 +23421,7 @@ var proposalRegistry = /* @__PURE__ */ __name((store) => {
|
|
|
23362
23421
|
factKind(store),
|
|
23363
23422
|
invoiceKind(store),
|
|
23364
23423
|
paymentKind(store),
|
|
23424
|
+
orderKind(store),
|
|
23365
23425
|
memoryKind(store),
|
|
23366
23426
|
findingsKind(store),
|
|
23367
23427
|
mailFindingsKind(store),
|
|
@@ -23373,7 +23433,7 @@ var proposalRegistry = /* @__PURE__ */ __name((store) => {
|
|
|
23373
23433
|
return registry;
|
|
23374
23434
|
}, "proposalRegistry");
|
|
23375
23435
|
|
|
23376
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23436
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/mail/owed.js
|
|
23377
23437
|
var mailTurn = /* @__PURE__ */ __name((newest) => {
|
|
23378
23438
|
if (newest === null)
|
|
23379
23439
|
return null;
|
|
@@ -23382,7 +23442,7 @@ var mailTurn = /* @__PURE__ */ __name((newest) => {
|
|
|
23382
23442
|
return newest.addressed ? "owed" : null;
|
|
23383
23443
|
}, "mailTurn");
|
|
23384
23444
|
|
|
23385
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23445
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/services/agenda-mail.js
|
|
23386
23446
|
var absent = /* @__PURE__ */ __name((error) => {
|
|
23387
23447
|
if (error instanceof CliError && error.code === "not_found")
|
|
23388
23448
|
return void 0;
|
|
@@ -23440,7 +23500,7 @@ var mailActivity = /* @__PURE__ */ __name(async (store, account, since, chats) =
|
|
|
23440
23500
|
};
|
|
23441
23501
|
}, "mailActivity");
|
|
23442
23502
|
|
|
23443
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23503
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/services/chat-coverage.js
|
|
23444
23504
|
var chatCoverage = /* @__PURE__ */ __name(async (store, account, chatIds) => {
|
|
23445
23505
|
const ids = [...new Set(chatIds)];
|
|
23446
23506
|
if (ids.length === 0)
|
|
@@ -23466,7 +23526,7 @@ var chatCoverage = /* @__PURE__ */ __name(async (store, account, chatIds) => {
|
|
|
23466
23526
|
}));
|
|
23467
23527
|
}, "chatCoverage");
|
|
23468
23528
|
|
|
23469
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23529
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/services/agenda.js
|
|
23470
23530
|
var DAY = 864e5;
|
|
23471
23531
|
var AGENDA_DEFAULTS = { unanswered: DAY, waiting: 7 * DAY };
|
|
23472
23532
|
var CLAIMS = ["none", "mine", "others", "any"];
|
|
@@ -23713,7 +23773,7 @@ var agendaItem = /* @__PURE__ */ __name((shown) => {
|
|
|
23713
23773
|
};
|
|
23714
23774
|
}, "agendaItem");
|
|
23715
23775
|
|
|
23716
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23776
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/services/excerpt.js
|
|
23717
23777
|
var queryWords = /* @__PURE__ */ __name((query) => query.toLowerCase().split(/\s+/).map((word) => word.replace(/^[\p{L}_]+:/u, "").replace(/~\d+$/u, "").replace(/^[^\p{L}\p{N}]+|[^\p{L}\p{N}]+$/gu, "")).filter((word) => word.length > 2 && !["and", "or", "not"].includes(word)), "queryWords");
|
|
23718
23778
|
var excerpt = /* @__PURE__ */ __name((text2, query, size4 = 240, options = {}) => {
|
|
23719
23779
|
const flat = text2.replace(/\s+/g, " ").trim();
|
|
@@ -23729,7 +23789,7 @@ var excerpt = /* @__PURE__ */ __name((text2, query, size4 = 240, options = {}) =
|
|
|
23729
23789
|
}, "excerpt");
|
|
23730
23790
|
var withExcerpt = /* @__PURE__ */ __name(({ matchedText, ...hit }, query) => ({ ...hit, excerpt: excerpt(matchedText ?? hit.text, query) }), "withExcerpt");
|
|
23731
23791
|
|
|
23732
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23792
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/services/link-scorers/shared.js
|
|
23733
23793
|
var escaped = /* @__PURE__ */ __name((text2) => text2.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), "escaped");
|
|
23734
23794
|
var folded = /* @__PURE__ */ __name((text2) => text2.normalize("NFKC").toLowerCase().replace(/\s+/gu, " "), "folded");
|
|
23735
23795
|
var wholeWords = /* @__PURE__ */ __name((term) => new RegExp(`(?<![\\p{L}\\p{N}\\p{M}_])${escaped(normalizeVocabularyName(term))}(?![\\p{L}\\p{N}\\p{M}_])`, "u"), "wholeWords");
|
|
@@ -23768,7 +23828,7 @@ var identitiesIn = /* @__PURE__ */ __name(async (store, people, provider) => {
|
|
|
23768
23828
|
return found;
|
|
23769
23829
|
}, "identitiesIn");
|
|
23770
23830
|
|
|
23771
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23831
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/services/link-scorers/alias-hits.js
|
|
23772
23832
|
var SEARCH_LIMIT = 500;
|
|
23773
23833
|
var aliasWeight = /* @__PURE__ */ __name((hits) => hits >= 10 ? 0.55 : hits >= 3 ? 0.35 : 0, "aliasWeight");
|
|
23774
23834
|
var aliasHits = {
|
|
@@ -23817,7 +23877,7 @@ var aliasHits = {
|
|
|
23817
23877
|
}, "candidates")
|
|
23818
23878
|
};
|
|
23819
23879
|
|
|
23820
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23880
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/services/link-scorers/chat-senders.js
|
|
23821
23881
|
var WEIGHT = 0.5;
|
|
23822
23882
|
var LARGE_GROUP_WEIGHT = 0.2;
|
|
23823
23883
|
var LARGE_GROUP = 30;
|
|
@@ -23869,7 +23929,7 @@ var chatSenders = {
|
|
|
23869
23929
|
}, "candidates")
|
|
23870
23930
|
};
|
|
23871
23931
|
|
|
23872
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23932
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/services/link-scorers/chat-title.js
|
|
23873
23933
|
var WEIGHT2 = 0.7;
|
|
23874
23934
|
var chatTitle = {
|
|
23875
23935
|
id: "chat-title",
|
|
@@ -23908,7 +23968,7 @@ var chatTitle = {
|
|
|
23908
23968
|
}, "candidates")
|
|
23909
23969
|
};
|
|
23910
23970
|
|
|
23911
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23971
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/services/link-scorers/email-domain.js
|
|
23912
23972
|
var WEIGHT3 = 0.3;
|
|
23913
23973
|
var CONTACTS = 500;
|
|
23914
23974
|
var MOST_PAIRS = 200;
|
|
@@ -23969,7 +24029,7 @@ var emailDomain = {
|
|
|
23969
24029
|
}, "candidates")
|
|
23970
24030
|
};
|
|
23971
24031
|
|
|
23972
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24032
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/services/link-scorers/mail-thread.js
|
|
23973
24033
|
var NAMED = 0.7;
|
|
23974
24034
|
var MEMBER_ONLY = 0.3;
|
|
23975
24035
|
var READ_LIMIT2 = 500;
|
|
@@ -24042,7 +24102,7 @@ var mailThread = {
|
|
|
24042
24102
|
}, "candidates")
|
|
24043
24103
|
};
|
|
24044
24104
|
|
|
24045
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24105
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/services/link-scorers/member-chats.js
|
|
24046
24106
|
var WEIGHT4 = 0.5;
|
|
24047
24107
|
var memberChats = {
|
|
24048
24108
|
id: "member-chats",
|
|
@@ -24082,7 +24142,7 @@ var memberChats = {
|
|
|
24082
24142
|
}, "candidates")
|
|
24083
24143
|
};
|
|
24084
24144
|
|
|
24085
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24145
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/services/link-scorers/member-dialog.js
|
|
24086
24146
|
var WEIGHT5 = 0.6;
|
|
24087
24147
|
var memberDialog = {
|
|
24088
24148
|
id: "member-dialog",
|
|
@@ -24116,7 +24176,7 @@ var memberDialog = {
|
|
|
24116
24176
|
}, "candidates")
|
|
24117
24177
|
};
|
|
24118
24178
|
|
|
24119
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24179
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/services/project-gathering-around.js
|
|
24120
24180
|
var storedMessageNeighbours = /* @__PURE__ */ __name((messages) => ({
|
|
24121
24181
|
async around(ref, window3) {
|
|
24122
24182
|
const at = parseLocator(ref);
|
|
@@ -24135,8 +24195,8 @@ var wordsOf = /* @__PURE__ */ __name((text2) => (text2.match(/[\p{L}\p{N}\p{M}]+
|
|
|
24135
24195
|
var documentMatches = /* @__PURE__ */ __name((text2, queries, window3) => {
|
|
24136
24196
|
const paragraphs = text2.split(/\n\s*\n/).map((part) => part.replace(/\s+/g, " ").trim()).filter(Boolean);
|
|
24137
24197
|
const query = queries.join(" ");
|
|
24138
|
-
const
|
|
24139
|
-
const matching2 = paragraphs.flatMap((part, index) => wordsOf(part).some((word) =>
|
|
24198
|
+
const words4 = new Set(wordsOf(query));
|
|
24199
|
+
const matching2 = paragraphs.flatMap((part, index) => wordsOf(part).some((word) => words4.has(word)) ? [index] : []);
|
|
24140
24200
|
const hit = matching2[0];
|
|
24141
24201
|
if (hit === void 0 || paragraphs.length < 2)
|
|
24142
24202
|
return { around: [], moreMatches: 0 };
|
|
@@ -24212,7 +24272,7 @@ var storedNeighbours = /* @__PURE__ */ __name((store) => {
|
|
|
24212
24272
|
};
|
|
24213
24273
|
}, "storedNeighbours");
|
|
24214
24274
|
|
|
24215
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24275
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/services/project-gathering-request.js
|
|
24216
24276
|
import { createHash as createHash2 } from "node:crypto";
|
|
24217
24277
|
var DAY2 = 864e5;
|
|
24218
24278
|
var MAX_TIME = 864e13;
|
|
@@ -24246,10 +24306,10 @@ var text = /* @__PURE__ */ __name((value, name, max) => typeof value === "string
|
|
|
24246
24306
|
var whole = /* @__PURE__ */ __name((value, name, low, high) => Number.isSafeInteger(value) && value >= low && value <= high ? value : fail(`${name} must be a whole number from ${low} to ${high}`, name), "whole");
|
|
24247
24307
|
var laneQuery = /* @__PURE__ */ __name((value, name) => {
|
|
24248
24308
|
const query = text(value, name, 2048);
|
|
24249
|
-
const
|
|
24250
|
-
if (!
|
|
24309
|
+
const words4 = query.match(/[\p{L}\p{N}]+/gu) ?? [];
|
|
24310
|
+
if (!words4.length || words4.length > 16)
|
|
24251
24311
|
fail(`${name} needs 1\u201316 literal words`, name);
|
|
24252
|
-
return
|
|
24312
|
+
return words4.join(" ");
|
|
24253
24313
|
}, "laneQuery");
|
|
24254
24314
|
var list = /* @__PURE__ */ __name((value, name, max) => {
|
|
24255
24315
|
if (value === void 0)
|
|
@@ -24528,7 +24588,7 @@ var decodeCheckpoint = /* @__PURE__ */ __name((text2, plan) => {
|
|
|
24528
24588
|
return value;
|
|
24529
24589
|
}, "decodeCheckpoint");
|
|
24530
24590
|
|
|
24531
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24591
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/services/project-gathering.js
|
|
24532
24592
|
var terminal = /* @__PURE__ */ new Set(["done", "unavailable", "failed"]);
|
|
24533
24593
|
var PAGE2 = 20;
|
|
24534
24594
|
var PEOPLE = 20;
|
|
@@ -24932,7 +24992,7 @@ var peopleOf = /* @__PURE__ */ __name((items, senderOf) => {
|
|
|
24932
24992
|
return [...byKey.values()].sort((a, b) => b.items - a.items || a.name.localeCompare(b.name));
|
|
24933
24993
|
}, "peopleOf");
|
|
24934
24994
|
|
|
24935
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24995
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/services/meeting-project-candidate-matching.js
|
|
24936
24996
|
var normalizedText = /* @__PURE__ */ __name((text2) => text2.normalize("NFKC").toLowerCase().replace(/\s+/gu, " "), "normalizedText");
|
|
24937
24997
|
var termsOf = /* @__PURE__ */ __name((entry) => [
|
|
24938
24998
|
{ name: entry.name, kind: "canonical" },
|
|
@@ -24976,7 +25036,7 @@ var matchVocabularyTerms = /* @__PURE__ */ __name((catalog, texts) => {
|
|
|
24976
25036
|
return result.sort((a, b) => Number(a.entry.id) - Number(b.entry.id));
|
|
24977
25037
|
}, "matchVocabularyTerms");
|
|
24978
25038
|
|
|
24979
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25039
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/services/project-gathering-mentions.js
|
|
24980
25040
|
var KINDS = ["project", "tag", "topic"];
|
|
24981
25041
|
var findEvidenceMentions = /* @__PURE__ */ __name(async (vocabulary, gathering, options = {}) => {
|
|
24982
25042
|
if (typeof vocabulary?.vocabulary !== "function")
|
|
@@ -25031,7 +25091,7 @@ var findEvidenceMentions = /* @__PURE__ */ __name(async (vocabulary, gathering,
|
|
|
25031
25091
|
};
|
|
25032
25092
|
}, "findEvidenceMentions");
|
|
25033
25093
|
|
|
25034
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25094
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/services/stored-project-gathering.js
|
|
25035
25095
|
var storedChatCount = /* @__PURE__ */ __name((store) => async (account, chatId, { since, until }) => {
|
|
25036
25096
|
const window3 = { since: new Date(since).toISOString(), until: new Date(until - 1).toISOString() };
|
|
25037
25097
|
const [messages, newest, oldest] = await Promise.all([
|
|
@@ -25337,7 +25397,7 @@ var purposeHintOf = /* @__PURE__ */ __name((linked, rows, of) => {
|
|
|
25337
25397
|
return { chat: top.ref, relationship: link4.relationship, items, of };
|
|
25338
25398
|
}, "purposeHintOf");
|
|
25339
25399
|
|
|
25340
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25400
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/services/link-scorers/scan.js
|
|
25341
25401
|
var SCORERS = [chatTitle, aliasHits, memberChats, memberDialog, chatSenders, mailThread];
|
|
25342
25402
|
var PERSON_SCORERS = [emailDomain];
|
|
25343
25403
|
var SCAN_BOT = { bot: "memo-scan", kind: "rule" };
|
|
@@ -25545,18 +25605,18 @@ var referenceOf = /* @__PURE__ */ __name((text2) => {
|
|
|
25545
25605
|
}, "referenceOf");
|
|
25546
25606
|
var rejectedReversed = /* @__PURE__ */ __name(async (store, candidate) => candidate.kind === "related-to" && candidate.to.startsWith("person:") && ((await store.knowledge.relationState(null, { from: candidate.to, to: candidate.from, kind: candidate.kind }))?.rejected ?? false), "rejectedReversed");
|
|
25547
25607
|
|
|
25548
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25608
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/services/media-archive.js
|
|
25549
25609
|
import { setTimeout as sleep3 } from "node:timers/promises";
|
|
25550
25610
|
|
|
25551
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25611
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/services/media-archive-files.js
|
|
25552
25612
|
import { lstat } from "node:fs/promises";
|
|
25553
25613
|
|
|
25554
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25614
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-store.js
|
|
25555
25615
|
import { createHash as createHash4, randomUUID as randomUUID2 } from "node:crypto";
|
|
25556
25616
|
import { open as open2, rename as rename2, unlink as unlink2 } from "node:fs/promises";
|
|
25557
25617
|
import { join as join2 } from "node:path";
|
|
25558
25618
|
|
|
25559
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25619
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-metadata.js
|
|
25560
25620
|
import { createHash as createHash3 } from "node:crypto";
|
|
25561
25621
|
var metadataLimit = 16384;
|
|
25562
25622
|
var partialIdentity = /* @__PURE__ */ __name((locator) => JSON.stringify([locator.provider, locator.account, locator.occurrenceId, locator.assetId]), "partialIdentity");
|
|
@@ -25616,7 +25676,7 @@ var readPartialMetadata = /* @__PURE__ */ __name(async (path, locator, maxBytes,
|
|
|
25616
25676
|
}
|
|
25617
25677
|
}, "readPartialMetadata");
|
|
25618
25678
|
|
|
25619
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25679
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-writer.js
|
|
25620
25680
|
import { randomUUID } from "node:crypto";
|
|
25621
25681
|
import { open, rename, unlink } from "node:fs/promises";
|
|
25622
25682
|
import { join } from "node:path";
|
|
@@ -25708,7 +25768,7 @@ var partialWriter = /* @__PURE__ */ __name(async (input) => {
|
|
|
25708
25768
|
};
|
|
25709
25769
|
}, "partialWriter");
|
|
25710
25770
|
|
|
25711
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25771
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-store.js
|
|
25712
25772
|
var NativeRecordingPartialStore = class {
|
|
25713
25773
|
static {
|
|
25714
25774
|
__name(this, "NativeRecordingPartialStore");
|
|
@@ -25815,12 +25875,12 @@ var NativeRecordingPartialStore = class {
|
|
|
25815
25875
|
}
|
|
25816
25876
|
};
|
|
25817
25877
|
|
|
25818
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25878
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication.js
|
|
25819
25879
|
import { createHash as createHash5 } from "node:crypto";
|
|
25820
25880
|
import { link as link2 } from "node:fs/promises";
|
|
25821
25881
|
import { basename, dirname, join as join4, resolve } from "node:path";
|
|
25822
25882
|
|
|
25823
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25883
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication-files.js
|
|
25824
25884
|
import { unlink as unlink3 } from "node:fs/promises";
|
|
25825
25885
|
var verifiedPublicationFile = /* @__PURE__ */ __name(async (path, expected2, signal, writable = false) => {
|
|
25826
25886
|
signal?.throwIfAborted();
|
|
@@ -25855,7 +25915,7 @@ var commitPublication = /* @__PURE__ */ __name(async (root, partialPath, finalPa
|
|
|
25855
25915
|
signal?.throwIfAborted();
|
|
25856
25916
|
}, "commitPublication");
|
|
25857
25917
|
|
|
25858
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25918
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication-journal.js
|
|
25859
25919
|
import { randomUUID as randomUUID3 } from "node:crypto";
|
|
25860
25920
|
import { open as open3, rename as rename3, unlink as unlink4 } from "node:fs/promises";
|
|
25861
25921
|
import { join as join3 } from "node:path";
|
|
@@ -25928,7 +25988,7 @@ var writePublicationJournal = /* @__PURE__ */ __name(async (root, path, prefix,
|
|
|
25928
25988
|
}
|
|
25929
25989
|
}, "writePublicationJournal");
|
|
25930
25990
|
|
|
25931
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25991
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication.js
|
|
25932
25992
|
var NativeRecordingPublication = class {
|
|
25933
25993
|
static {
|
|
25934
25994
|
__name(this, "NativeRecordingPublication");
|
|
@@ -26001,7 +26061,7 @@ var NativeRecordingPublication = class {
|
|
|
26001
26061
|
}
|
|
26002
26062
|
};
|
|
26003
26063
|
|
|
26004
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26064
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/services/media-archive-manifest.js
|
|
26005
26065
|
import { createHash as createHash6 } from "node:crypto";
|
|
26006
26066
|
import { readdir } from "node:fs/promises";
|
|
26007
26067
|
import { isAbsolute, join as join5, resolve as resolve2 } from "node:path";
|
|
@@ -26088,7 +26148,7 @@ var commitMediaEntry = /* @__PURE__ */ __name((root, one2, beforePublish) => wri
|
|
|
26088
26148
|
beforePublish
|
|
26089
26149
|
}), "commitMediaEntry");
|
|
26090
26150
|
|
|
26091
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26151
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/services/media-archive-files.js
|
|
26092
26152
|
var validator = '"media-completed-v1"';
|
|
26093
26153
|
var maximumFileBytes = 64 * 1024 * 1024 * 1024;
|
|
26094
26154
|
var archiveMediaFile = /* @__PURE__ */ __name(async (root, identity, kind, file2, beforeWrite, signal, metadata = {}) => {
|
|
@@ -26189,7 +26249,7 @@ var archiveMediaFile = /* @__PURE__ */ __name(async (root, identity, kind, file2
|
|
|
26189
26249
|
return entry;
|
|
26190
26250
|
}, "archiveMediaFile");
|
|
26191
26251
|
|
|
26192
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26252
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/services/media-archive-locks.js
|
|
26193
26253
|
import { mkdir, realpath } from "node:fs/promises";
|
|
26194
26254
|
import { join as join6, resolve as resolve3 } from "node:path";
|
|
26195
26255
|
var archiveLocations = /* @__PURE__ */ __name(async (initial, signal) => {
|
|
@@ -26256,7 +26316,7 @@ var withMediaArchiveLocks = /* @__PURE__ */ __name(async (directory2, signal, ru
|
|
|
26256
26316
|
throw new CliError("validation_error", "archive locations changed during locking; run the command again");
|
|
26257
26317
|
}, "withMediaArchiveLocks");
|
|
26258
26318
|
|
|
26259
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26319
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/services/media-archive.js
|
|
26260
26320
|
var validateMediaSince = /* @__PURE__ */ __name((value, flag = "--since-time") => {
|
|
26261
26321
|
if (value === void 0)
|
|
26262
26322
|
return void 0;
|
|
@@ -26409,7 +26469,7 @@ var archiveMedia = /* @__PURE__ */ __name(async (ports, options) => {
|
|
|
26409
26469
|
}, { create: true });
|
|
26410
26470
|
}, "archiveMedia");
|
|
26411
26471
|
|
|
26412
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26472
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/services/media-archive-move.js
|
|
26413
26473
|
import { realpath as realpath2, unlink as unlink5 } from "node:fs/promises";
|
|
26414
26474
|
import { basename as basename2, dirname as dirname2, join as join7, resolve as resolve4 } from "node:path";
|
|
26415
26475
|
var canonicalDestination = /* @__PURE__ */ __name(async (directory2) => {
|
|
@@ -26562,7 +26622,7 @@ var moveMediaArchive = /* @__PURE__ */ __name(async (options) => {
|
|
|
26562
26622
|
}, { additional: [target2], createAdditional: !options.dryRun });
|
|
26563
26623
|
}, "moveMediaArchive");
|
|
26564
26624
|
|
|
26565
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26625
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/services/model-downloads.js
|
|
26566
26626
|
var bytesOf = /* @__PURE__ */ __name((model) => model.files.reduce((sum2, file2) => sum2 + file2.bytes, 0), "bytesOf");
|
|
26567
26627
|
var nativeRuntime = /* @__PURE__ */ __name(async ({ env, progress = /* @__PURE__ */ __name(() => {
|
|
26568
26628
|
}, "progress") }) => {
|
|
@@ -26585,7 +26645,7 @@ var downloadTextModel = /* @__PURE__ */ __name(async (id2, { env, progress = /*
|
|
|
26585
26645
|
}
|
|
26586
26646
|
await nativeRuntime({ env, progress });
|
|
26587
26647
|
progress(`${model.id}: loading it once to check it works`);
|
|
26588
|
-
const { openEmbedder: openEmbedder2 } = await import("./embed-
|
|
26648
|
+
const { openEmbedder: openEmbedder2 } = await import("./embed-JEER47U6.js");
|
|
26589
26649
|
const embedder = await openEmbedder2(model, directory2);
|
|
26590
26650
|
try {
|
|
26591
26651
|
const [vector] = await embedder.embed(["check"], "query");
|
|
@@ -26606,7 +26666,7 @@ var downloadRerankModel = /* @__PURE__ */ __name(async (id2, { env, progress = /
|
|
|
26606
26666
|
}
|
|
26607
26667
|
await nativeRuntime({ env, progress });
|
|
26608
26668
|
progress(`${model.id}: loading it once to check it works`);
|
|
26609
|
-
const { openReranker } = await import("./rerank-
|
|
26669
|
+
const { openReranker } = await import("./rerank-DTD24I7Y.js");
|
|
26610
26670
|
const reranker = await openReranker(model, directory2);
|
|
26611
26671
|
try {
|
|
26612
26672
|
await reranker.score("check", ["check"]);
|
|
@@ -26624,7 +26684,7 @@ var downloadImageModel = /* @__PURE__ */ __name(async (id2, { env, progress = /*
|
|
|
26624
26684
|
await installFiles(placedImage(model, directory2), { progress });
|
|
26625
26685
|
}
|
|
26626
26686
|
progress(`${model.id}: loading it once to check it works`);
|
|
26627
|
-
const { openPictureEmbedder } = await import("./embedder-
|
|
26687
|
+
const { openPictureEmbedder } = await import("./embedder-BJQEGCE5.js");
|
|
26628
26688
|
const embedder = await openPictureEmbedder(model, directory2);
|
|
26629
26689
|
try {
|
|
26630
26690
|
const vector = await embedder.embedQuery("check");
|
|
@@ -26636,7 +26696,7 @@ var downloadImageModel = /* @__PURE__ */ __name(async (id2, { env, progress = /*
|
|
|
26636
26696
|
return { model, directory: directory2 };
|
|
26637
26697
|
}, "downloadImageModel");
|
|
26638
26698
|
|
|
26639
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26699
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/domain/money-words.js
|
|
26640
26700
|
var MONEY_REQUEST = "money-request";
|
|
26641
26701
|
var MONEY_DONE = "money-done";
|
|
26642
26702
|
var PROMISE = "promise";
|
|
@@ -26670,12 +26730,12 @@ var MONEY_WORDS = [
|
|
|
26670
26730
|
}
|
|
26671
26731
|
];
|
|
26672
26732
|
|
|
26673
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26733
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/services/money-words.js
|
|
26674
26734
|
var moneyClassesOf = /* @__PURE__ */ __name((text2) => listsHit(text2, MONEY_WORDS), "moneyClassesOf");
|
|
26675
26735
|
|
|
26676
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26677
|
-
var
|
|
26678
|
-
var MONEY_DONE_FORMS =
|
|
26736
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/domain/status-words.js
|
|
26737
|
+
var words2 = /* @__PURE__ */ __name((forms) => new RegExp(`(?<![\\p{L}\\p{N}])(?:${forms.join("|")})(?![\\p{L}\\p{N}])`, "iu"), "words");
|
|
26738
|
+
var MONEY_DONE_FORMS = words2([
|
|
26679
26739
|
"\u043E\u043F\u043B\u0430\u0442\u0438\u043B[\u0430\u0438]?",
|
|
26680
26740
|
"\u0437\u0430\u043F\u043B\u0430\u0442\u0438\u043B[\u0430\u0438]?",
|
|
26681
26741
|
"\u043F\u0435\u0440\u0435\u0432\u0435\u043B[\u0430\u0438]?",
|
|
@@ -26689,7 +26749,7 @@ var MONEY_DONE_FORMS = words([
|
|
|
26689
26749
|
"pagado",
|
|
26690
26750
|
"transfer\xED"
|
|
26691
26751
|
]);
|
|
26692
|
-
var PROMISE_FORMS =
|
|
26752
|
+
var PROMISE_FORMS = words2([
|
|
26693
26753
|
"\u0441\u0434\u0435\u043B\u0430\u044E",
|
|
26694
26754
|
"\u043F\u0440\u0438\u0448\u043B\u044E",
|
|
26695
26755
|
"\u043E\u0442\u043F\u0440\u0430\u0432\u043B\u044E",
|
|
@@ -26713,7 +26773,7 @@ var PROMISE_FORMS = words([
|
|
|
26713
26773
|
"estar\xE1 listo"
|
|
26714
26774
|
]);
|
|
26715
26775
|
|
|
26716
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26776
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/services/project-status/items.js
|
|
26717
26777
|
var EXCERPT_CHARS = 80;
|
|
26718
26778
|
var excerpt2 = /* @__PURE__ */ __name((text2) => {
|
|
26719
26779
|
const flat = text2.replace(/\s+/g, " ").trim();
|
|
@@ -26735,7 +26795,7 @@ var whoOf = /* @__PURE__ */ __name((message) => ({
|
|
|
26735
26795
|
var fromOwner = /* @__PURE__ */ __name((message) => message.outgoing === true, "fromOwner");
|
|
26736
26796
|
var day = /* @__PURE__ */ __name((at) => new Date(at).toISOString().slice(0, 10), "day");
|
|
26737
26797
|
|
|
26738
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26798
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/services/project-status/signals/amounts.js
|
|
26739
26799
|
var MONEY = DEFAULT_TASK_CATEGORIES.filter((category) => category.name === "money");
|
|
26740
26800
|
var verbOf = /* @__PURE__ */ __name((text2) => {
|
|
26741
26801
|
if (MONEY_DONE_FORMS.test(text2))
|
|
@@ -26815,7 +26875,7 @@ var amounts = {
|
|
|
26815
26875
|
attention: /* @__PURE__ */ __name((items) => items.flatMap((item2) => item2.chat !== null && item2.data.state === "open" ? [{ chat: item2.chat, weight: 2, why: "money open" }] : []), "attention")
|
|
26816
26876
|
};
|
|
26817
26877
|
|
|
26818
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26878
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/services/project-status/signals/children.js
|
|
26819
26879
|
var children = {
|
|
26820
26880
|
id: "children",
|
|
26821
26881
|
version: 1,
|
|
@@ -26844,7 +26904,7 @@ var children = {
|
|
|
26844
26904
|
}, "read")
|
|
26845
26905
|
};
|
|
26846
26906
|
|
|
26847
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26907
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/services/project-status/signals/coverage.js
|
|
26848
26908
|
var coverage = {
|
|
26849
26909
|
id: "coverage",
|
|
26850
26910
|
version: 1,
|
|
@@ -26873,7 +26933,7 @@ var coverage = {
|
|
|
26873
26933
|
attention: /* @__PURE__ */ __name((items) => items.flatMap((item2) => item2.chat !== null && item2.data.state !== "complete" && item2.data.beforeHeld ? [{ chat: item2.chat, weight: 3, why: "held in part" }] : []), "attention")
|
|
26874
26934
|
};
|
|
26875
26935
|
|
|
26876
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26936
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/services/project-status/signals/last-message.js
|
|
26877
26937
|
var lastMessage = {
|
|
26878
26938
|
id: "last-message",
|
|
26879
26939
|
version: 1,
|
|
@@ -26895,7 +26955,7 @@ var lastMessage = {
|
|
|
26895
26955
|
}, "read")
|
|
26896
26956
|
};
|
|
26897
26957
|
|
|
26898
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26958
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/services/project-status/signals/payments.js
|
|
26899
26959
|
var holding = /* @__PURE__ */ __name((row) => row.review !== "rejected", "holding");
|
|
26900
26960
|
var item = /* @__PURE__ */ __name((row, at, data) => ({
|
|
26901
26961
|
signal: "payments",
|
|
@@ -26945,7 +27005,7 @@ var payments = {
|
|
|
26945
27005
|
}, "read")
|
|
26946
27006
|
};
|
|
26947
27007
|
|
|
26948
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27008
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/services/project-status/signals/promises.js
|
|
26949
27009
|
var PATTERNS_PER_CHAT = 3;
|
|
26950
27010
|
var DAY3 = 864e5;
|
|
26951
27011
|
var KINDS2 = /* @__PURE__ */ new Set(["promise", "request"]);
|
|
@@ -27034,7 +27094,7 @@ var promises = {
|
|
|
27034
27094
|
}, "read")
|
|
27035
27095
|
};
|
|
27036
27096
|
|
|
27037
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27097
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/services/project-status/signals/questions.js
|
|
27038
27098
|
var PER_SIDE = 5;
|
|
27039
27099
|
var WEEK = 7 * 864e5;
|
|
27040
27100
|
var NOBODY = /* @__PURE__ */ new Set();
|
|
@@ -27065,7 +27125,7 @@ var questions2 = {
|
|
|
27065
27125
|
}, "attention")
|
|
27066
27126
|
};
|
|
27067
27127
|
|
|
27068
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27128
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/services/project-status/signals/reply-next.js
|
|
27069
27129
|
var targetOf = /* @__PURE__ */ __name((message, chat, owners) => {
|
|
27070
27130
|
const byId2 = /* @__PURE__ */ __name((id2) => chat.messages.find((one2) => one2.id === id2), "byId");
|
|
27071
27131
|
const quoted = message.replyTo ?? (message.replyToId === void 0 ? void 0 : byId2(message.replyToId));
|
|
@@ -27133,14 +27193,14 @@ var replyNext = {
|
|
|
27133
27193
|
attention: /* @__PURE__ */ __name((items) => items.flatMap((item2) => item2.chat !== null && item2.data.next === "owner" ? [{ chat: item2.chat, weight: 2, why: "your move" }] : []), "attention")
|
|
27134
27194
|
};
|
|
27135
27195
|
|
|
27136
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27196
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/services/project-status/signals/topics.js
|
|
27137
27197
|
var escaped2 = /* @__PURE__ */ __name((text2) => text2.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), "escaped");
|
|
27138
27198
|
var wholeWord = /* @__PURE__ */ __name((word) => new RegExp(`(?<![\\p{L}\\p{N}])${escaped2(word)}(?![\\p{L}\\p{N}])`, "u"), "wholeWord");
|
|
27139
27199
|
var matcherOf = /* @__PURE__ */ __name((query) => {
|
|
27140
|
-
const
|
|
27200
|
+
const words4 = normalize(query).split(" ").filter(Boolean).map(wholeWord);
|
|
27141
27201
|
return (text2) => {
|
|
27142
27202
|
const folded2 = normalize(text2);
|
|
27143
|
-
return
|
|
27203
|
+
return words4.length > 0 && words4.every((word) => word.test(folded2));
|
|
27144
27204
|
};
|
|
27145
27205
|
}, "matcherOf");
|
|
27146
27206
|
var topics = {
|
|
@@ -27179,7 +27239,7 @@ var topics = {
|
|
|
27179
27239
|
}, "read")
|
|
27180
27240
|
};
|
|
27181
27241
|
|
|
27182
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27242
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/services/project-status/signals/index.js
|
|
27183
27243
|
var STATUS_SIGNALS = [
|
|
27184
27244
|
lastMessage,
|
|
27185
27245
|
replyNext,
|
|
@@ -27192,7 +27252,7 @@ var STATUS_SIGNALS = [
|
|
|
27192
27252
|
children
|
|
27193
27253
|
];
|
|
27194
27254
|
|
|
27195
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27255
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/services/project-status/index.js
|
|
27196
27256
|
var DAY4 = 864e5;
|
|
27197
27257
|
var STATUS_WINDOW = 300;
|
|
27198
27258
|
var STATUS_CHATS = 16;
|
|
@@ -27374,7 +27434,7 @@ var projectStatus = /* @__PURE__ */ __name(async (store, input) => {
|
|
|
27374
27434
|
};
|
|
27375
27435
|
}, "projectStatus");
|
|
27376
27436
|
|
|
27377
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27437
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/services/account.js
|
|
27378
27438
|
var accountService = /* @__PURE__ */ __name((deps) => {
|
|
27379
27439
|
const online = /* @__PURE__ */ __name(async (command) => {
|
|
27380
27440
|
if (deps.offline)
|
|
@@ -27446,7 +27506,7 @@ var accountService = /* @__PURE__ */ __name((deps) => {
|
|
|
27446
27506
|
};
|
|
27447
27507
|
}, "accountService");
|
|
27448
27508
|
|
|
27449
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27509
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/domain/send-time.js
|
|
27450
27510
|
var MINUTE = 6e4;
|
|
27451
27511
|
var YEAR = 365 * 24 * 60 * MINUTE;
|
|
27452
27512
|
var DELAY = /^(\d+)(m|h|d)$/;
|
|
@@ -27465,7 +27525,7 @@ var sendTime = /* @__PURE__ */ __name((value, now = Date.now(), flag = "--at-tim
|
|
|
27465
27525
|
return new Date(at - at % MINUTE).toISOString();
|
|
27466
27526
|
}, "sendTime");
|
|
27467
27527
|
|
|
27468
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27528
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/services/admin.js
|
|
27469
27529
|
var recordMembership = /* @__PURE__ */ __name(async (deps, operationId, done2, change, fix, write2) => {
|
|
27470
27530
|
try {
|
|
27471
27531
|
const held = await accountStoreIfOpen(deps);
|
|
@@ -27712,7 +27772,7 @@ var linkLimits = /* @__PURE__ */ __name(({ approval, expires, maxUses }) => {
|
|
|
27712
27772
|
return expires === void 0 ? void 0 : sendTime(expires, Date.now(), "--expire-time");
|
|
27713
27773
|
}, "linkLimits");
|
|
27714
27774
|
|
|
27715
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27775
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/services/mail-search.js
|
|
27716
27776
|
var THREADS_PAGE = 500;
|
|
27717
27777
|
var threadsOf = /* @__PURE__ */ __name(async (store, key) => {
|
|
27718
27778
|
const account = await store.accounts.storedAccount(key).catch(() => void 0);
|
|
@@ -27791,7 +27851,7 @@ var readMail = /* @__PURE__ */ __name(async (store, locator, { before: before2 =
|
|
|
27791
27851
|
return thread.slice(Math.max(0, at - before2), at + after + 1).map((hit) => hit.id === message ? { ...hit, anchor: true } : hit);
|
|
27792
27852
|
}, "readMail");
|
|
27793
27853
|
|
|
27794
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27854
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/services/search-kind.js
|
|
27795
27855
|
var NO_MAIL = "no_mail";
|
|
27796
27856
|
var MAIL = "email";
|
|
27797
27857
|
var listContextOf = /* @__PURE__ */ __name(async (store, account, app, stored) => {
|
|
@@ -27838,7 +27898,7 @@ var accountsOfKind = /* @__PURE__ */ __name((kind, chosen, held, explicit, comma
|
|
|
27838
27898
|
return chosenMail.map(({ provider, account }) => ({ provider, account }));
|
|
27839
27899
|
}, "accountsOfKind");
|
|
27840
27900
|
|
|
27841
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27901
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/services/messages-search.js
|
|
27842
27902
|
var MAIL_FIELDS = /* @__PURE__ */ new Set(["to", "cc", "bcc", "subject", "mailbox", "label", "is"]);
|
|
27843
27903
|
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");
|
|
27844
27904
|
var prepareLucene = /* @__PURE__ */ __name(async (store, account, request, messenger) => {
|
|
@@ -28186,7 +28246,7 @@ var statsLucene = /* @__PURE__ */ __name(async (store, account, request, messeng
|
|
|
28186
28246
|
};
|
|
28187
28247
|
}, "statsLucene");
|
|
28188
28248
|
|
|
28189
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28249
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/services/rankings-selection.js
|
|
28190
28250
|
var RANKING_SELECTION_BYTES = 64 * 1024;
|
|
28191
28251
|
var object = /* @__PURE__ */ __name((value) => value !== null && typeof value === "object" && !Array.isArray(value) ? value : void 0, "object");
|
|
28192
28252
|
function invalid(message = "ranking selection is invalid \u2014 obtain a new drilldown from stats top") {
|
|
@@ -28355,7 +28415,7 @@ var readRankingSelection = /* @__PURE__ */ __name(async (store, input) => {
|
|
|
28355
28415
|
};
|
|
28356
28416
|
}, "readRankingSelection");
|
|
28357
28417
|
|
|
28358
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28418
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/services/search-record.js
|
|
28359
28419
|
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");
|
|
28360
28420
|
var searchRecordOf = /* @__PURE__ */ __name((command, params) => ({
|
|
28361
28421
|
command,
|
|
@@ -28365,7 +28425,7 @@ var searchRecordOf = /* @__PURE__ */ __name((command, params) => ({
|
|
|
28365
28425
|
fieldsVersion: FIELD_VERSION
|
|
28366
28426
|
}), "searchRecordOf");
|
|
28367
28427
|
|
|
28368
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28428
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/services/admin-statistics.js
|
|
28369
28429
|
function invalid2(message) {
|
|
28370
28430
|
throw new CliError("validation_error", message);
|
|
28371
28431
|
}
|
|
@@ -28659,7 +28719,7 @@ var adminStatisticsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
28659
28719
|
}, "evidence")
|
|
28660
28720
|
}), "adminStatisticsService");
|
|
28661
28721
|
|
|
28662
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28722
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/services/archive-gaps.js
|
|
28663
28723
|
import { createHash as createHash7, randomUUID as randomUUID4 } from "node:crypto";
|
|
28664
28724
|
var GAP_BOUNDS = { maxGaps: 5, limit: 500, timeMs: 3e4 };
|
|
28665
28725
|
var validateRepair = /* @__PURE__ */ __name((messenger, options) => {
|
|
@@ -28796,16 +28856,16 @@ var gapsService = /* @__PURE__ */ __name((deps) => {
|
|
|
28796
28856
|
return { plan, repair };
|
|
28797
28857
|
}, "gapsService");
|
|
28798
28858
|
|
|
28799
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28859
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/services/attachments.js
|
|
28800
28860
|
import { createHash as createHash9 } from "node:crypto";
|
|
28801
28861
|
import { constants as constants2, mkdirSync as mkdirSync2 } from "node:fs";
|
|
28802
28862
|
import { lstat as lstat4, open as open6, readFile, stat as stat2 } from "node:fs/promises";
|
|
28803
28863
|
|
|
28804
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28864
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/attachments/directory.js
|
|
28805
28865
|
import { lstat as lstat2, readdir as readdir2, realpath as realpath3 } from "node:fs/promises";
|
|
28806
28866
|
import { basename as basename4, join as join8, relative as relative2, sep as sep2 } from "node:path";
|
|
28807
28867
|
|
|
28808
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28868
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/sends/upload.js
|
|
28809
28869
|
import { openAsBlob, realpathSync } from "node:fs";
|
|
28810
28870
|
import { open as open4, stat } from "node:fs/promises";
|
|
28811
28871
|
import { basename as basename3, dirname as dirname3, extname, isAbsolute as isAbsolute2, relative, resolve as resolve5, sep } from "node:path";
|
|
@@ -29007,7 +29067,7 @@ var readStickerFile = /* @__PURE__ */ __name(async (path, maxBytes, read2) => {
|
|
|
29007
29067
|
return { name, source };
|
|
29008
29068
|
}, "readStickerFile");
|
|
29009
29069
|
|
|
29010
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29070
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/attachments/directory.js
|
|
29011
29071
|
var MAX_FILES = 1e4;
|
|
29012
29072
|
var directoryPaths = /* @__PURE__ */ __name(async (store, chat, directory2, app, env) => {
|
|
29013
29073
|
if (refusedPlace(directory2, app, env))
|
|
@@ -29076,15 +29136,15 @@ var directoryPaths = /* @__PURE__ */ __name(async (store, chat, directory2, app,
|
|
|
29076
29136
|
return choices;
|
|
29077
29137
|
}, "directoryPaths");
|
|
29078
29138
|
|
|
29079
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29139
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/attachments/documents.js
|
|
29080
29140
|
import { posix } from "node:path";
|
|
29081
29141
|
|
|
29082
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29142
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/attachments/container.js
|
|
29083
29143
|
import { setImmediate as tick } from "node:timers/promises";
|
|
29084
29144
|
import { crc32 } from "node:zlib";
|
|
29085
29145
|
var import_xmldom = __toESM(require_lib(), 1);
|
|
29086
29146
|
|
|
29087
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29147
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/attachments/encoding.js
|
|
29088
29148
|
var import_chardet = __toESM(require_lib2(), 1);
|
|
29089
29149
|
var import_iconv_lite = __toESM(require_lib3(), 1);
|
|
29090
29150
|
var SAMPLE = 65536;
|
|
@@ -29186,7 +29246,7 @@ var decodeXml = /* @__PURE__ */ __name((bytes2) => {
|
|
|
29186
29246
|
return result.text;
|
|
29187
29247
|
}, "decodeXml");
|
|
29188
29248
|
|
|
29189
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29249
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/attachments/container.js
|
|
29190
29250
|
var MAX_PART = 10 * 1024 * 1024;
|
|
29191
29251
|
var MAX_ENTRIES = 1e3;
|
|
29192
29252
|
var decoder = new TextDecoder("utf-8", { fatal: true });
|
|
@@ -29401,7 +29461,7 @@ var elements = /* @__PURE__ */ __name((node, name, namespace) => {
|
|
|
29401
29461
|
return found;
|
|
29402
29462
|
}, "elements");
|
|
29403
29463
|
|
|
29404
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29464
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/attachments/sheets.js
|
|
29405
29465
|
var columnName = /* @__PURE__ */ __name((column) => {
|
|
29406
29466
|
let name = "";
|
|
29407
29467
|
for (let rest = column; rest > 0; rest = Math.floor((rest - 1) / 26))
|
|
@@ -29456,7 +29516,7 @@ var sheetText = /* @__PURE__ */ __name((sheets2, maxChars = MAX_TEXT_CHARS) => {
|
|
|
29456
29516
|
return { text: parts.join("").trim(), truncated: false };
|
|
29457
29517
|
}, "sheetText");
|
|
29458
29518
|
|
|
29459
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29519
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/attachments/documents.js
|
|
29460
29520
|
var OFFICE = "urn:oasis:names:tc:opendocument:xmlns:office:1.0";
|
|
29461
29521
|
var TEXT = "urn:oasis:names:tc:opendocument:xmlns:text:1.0";
|
|
29462
29522
|
var TABLE = "urn:oasis:names:tc:opendocument:xmlns:table:1.0";
|
|
@@ -29856,10 +29916,10 @@ var readDocument = /* @__PURE__ */ __name(async (bytes2, kind, signal) => {
|
|
|
29856
29916
|
}
|
|
29857
29917
|
}, "readDocument");
|
|
29858
29918
|
|
|
29859
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29919
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/attachments/extract.js
|
|
29860
29920
|
import { extname as extname3 } from "node:path";
|
|
29861
29921
|
|
|
29862
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29922
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/readers/engine.js
|
|
29863
29923
|
import { readFileSync } from "node:fs";
|
|
29864
29924
|
import { dirname as dirname4, extname as extname2, join as join9 } from "node:path";
|
|
29865
29925
|
import { fileURLToPath } from "node:url";
|
|
@@ -29920,7 +29980,7 @@ var derived = /* @__PURE__ */ __name((bytes2, extractor, read2) => {
|
|
|
29920
29980
|
}
|
|
29921
29981
|
}, "derived");
|
|
29922
29982
|
|
|
29923
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29983
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/readers/image/index.js
|
|
29924
29984
|
var IMAGES = /* @__PURE__ */ new Set([".jpg", ".jpeg", ".png", ".webp", ".gif", ".heic", ".tif", ".tiff", ".bmp"]);
|
|
29925
29985
|
var image2 = {
|
|
29926
29986
|
id: "image",
|
|
@@ -29929,7 +29989,7 @@ var image2 = {
|
|
|
29929
29989
|
read: /* @__PURE__ */ __name(async () => ({ status: "needs-agent" }), "read")
|
|
29930
29990
|
};
|
|
29931
29991
|
|
|
29932
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29992
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/readers/doc/index.js
|
|
29933
29993
|
var OLE = "\xD0\xCF\xE0\xA1\xB1\xE1";
|
|
29934
29994
|
var doc = {
|
|
29935
29995
|
id: "doc",
|
|
@@ -29941,7 +30001,7 @@ var doc = {
|
|
|
29941
30001
|
}), "read")
|
|
29942
30002
|
};
|
|
29943
30003
|
|
|
29944
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30004
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/readers/docx/index.js
|
|
29945
30005
|
var DOCX = "application/vnd.openxmlformats-officedocument.wordprocessingml.document";
|
|
29946
30006
|
var docx = {
|
|
29947
30007
|
id: "docx",
|
|
@@ -29954,7 +30014,7 @@ var docx = {
|
|
|
29954
30014
|
}), "read")
|
|
29955
30015
|
};
|
|
29956
30016
|
|
|
29957
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30017
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/attachments/markup.js
|
|
29958
30018
|
var import_iconv_lite2 = __toESM(require_lib3(), 1);
|
|
29959
30019
|
var RTF_SKIPPED = /* @__PURE__ */ new Set([
|
|
29960
30020
|
"fonttbl",
|
|
@@ -30130,7 +30190,7 @@ var htmlText = /* @__PURE__ */ __name((source) => {
|
|
|
30130
30190
|
}, "htmlText");
|
|
30131
30191
|
var safeChar = /* @__PURE__ */ __name((code, fallback) => code > 0 && code <= 1114111 ? String.fromCodePoint(code) : fallback, "safeChar");
|
|
30132
30192
|
|
|
30133
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30193
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/readers/html/page.js
|
|
30134
30194
|
var clean = /* @__PURE__ */ __name((value) => typeof value === "string" ? value.replace(/\s+/g, " ").trim() : "", "clean");
|
|
30135
30195
|
var namesIn = /* @__PURE__ */ __name((value) => [value].flat().map((entry) => typeof entry === "string" ? clean(entry) : clean(entry?.name)).filter(Boolean).join(", "), "namesIn");
|
|
30136
30196
|
var jsonLdNodes = /* @__PURE__ */ __name((document) => {
|
|
@@ -30186,7 +30246,7 @@ var markdownSections = /* @__PURE__ */ __name((text2) => {
|
|
|
30186
30246
|
return found.map((section, index) => ({ ...section, end: found[index + 1]?.start ?? text2.length }));
|
|
30187
30247
|
}, "markdownSections");
|
|
30188
30248
|
|
|
30189
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30249
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/readers/html/index.js
|
|
30190
30250
|
var HTML = /* @__PURE__ */ new Set([".html", ".htm", ".xhtml"]);
|
|
30191
30251
|
var first = /* @__PURE__ */ __name((...values) => values.find((value) => typeof value === "string" && value !== ""), "first");
|
|
30192
30252
|
var loaded = /* @__PURE__ */ __name(async (load, name) => {
|
|
@@ -30257,7 +30317,7 @@ var html = {
|
|
|
30257
30317
|
}, "read")
|
|
30258
30318
|
};
|
|
30259
30319
|
|
|
30260
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30320
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/readers/office/index.js
|
|
30261
30321
|
var office = {
|
|
30262
30322
|
id: "office",
|
|
30263
30323
|
version: documentExtractor("odt"),
|
|
@@ -30268,7 +30328,7 @@ var office = {
|
|
|
30268
30328
|
}, "read")
|
|
30269
30329
|
};
|
|
30270
30330
|
|
|
30271
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30331
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/readers/pdf/index.js
|
|
30272
30332
|
var pdf = {
|
|
30273
30333
|
id: "pdf",
|
|
30274
30334
|
version: "unpdf",
|
|
@@ -30335,7 +30395,7 @@ var pdf = {
|
|
|
30335
30395
|
}), "read")
|
|
30336
30396
|
};
|
|
30337
30397
|
|
|
30338
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30398
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/readers/plain/index.js
|
|
30339
30399
|
var PLAIN = /* @__PURE__ */ new Set([".txt", ".md", ".markdown", ".csv", ".tsv", ".json", ".log"]);
|
|
30340
30400
|
var isPlain = /* @__PURE__ */ __name((hint) => PLAIN.has(extensionOf(hint)) || hint.mime?.startsWith("text/") || hint.mime === "application/json", "isPlain");
|
|
30341
30401
|
var readPlain = /* @__PURE__ */ __name((bytes2) => {
|
|
@@ -30355,7 +30415,7 @@ var plain = {
|
|
|
30355
30415
|
read: /* @__PURE__ */ __name(async (bytes2) => readPlain(bytes2), "read")
|
|
30356
30416
|
};
|
|
30357
30417
|
|
|
30358
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30418
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/readers/rtf/index.js
|
|
30359
30419
|
var rtf = {
|
|
30360
30420
|
id: "rtf",
|
|
30361
30421
|
version: "v1",
|
|
@@ -30363,10 +30423,10 @@ var rtf = {
|
|
|
30363
30423
|
read: /* @__PURE__ */ __name(async (bytes2) => derived(bytes2, "rtf:v1", rtfText), "read")
|
|
30364
30424
|
};
|
|
30365
30425
|
|
|
30366
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30426
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/readers/sheets/index.js
|
|
30367
30427
|
import { basename as basename5 } from "node:path";
|
|
30368
30428
|
|
|
30369
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30429
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/attachments/csv-spans.js
|
|
30370
30430
|
var delimitedSpans = /* @__PURE__ */ __name((text2, delimiter, maxCells = 1e4) => {
|
|
30371
30431
|
const cells = [];
|
|
30372
30432
|
let row = 1, column = 1, start = 0, quoted = false, truncated = false;
|
|
@@ -30404,7 +30464,7 @@ var delimitedSpans = /* @__PURE__ */ __name((text2, delimiter, maxCells = 1e4) =
|
|
|
30404
30464
|
return { cells, truncated };
|
|
30405
30465
|
}, "delimitedSpans");
|
|
30406
30466
|
|
|
30407
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30467
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/readers/sheets/index.js
|
|
30408
30468
|
var DELIMITED = {
|
|
30409
30469
|
".csv": ",",
|
|
30410
30470
|
".tsv": " ",
|
|
@@ -30443,7 +30503,7 @@ var sheets = {
|
|
|
30443
30503
|
}, "read")
|
|
30444
30504
|
};
|
|
30445
30505
|
|
|
30446
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30506
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/readers/registry.js
|
|
30447
30507
|
var BUILT_INS2 = [office, pdf, docx, doc, rtf, html, sheets, plain, image2];
|
|
30448
30508
|
var HEAD_BYTES = 1024;
|
|
30449
30509
|
var readers = [...BUILT_INS2];
|
|
@@ -30453,7 +30513,7 @@ var readWithRegistry = /* @__PURE__ */ __name(async (bytes2, hint, context2) =>
|
|
|
30453
30513
|
return reader ? reader.read(bytes2, hint, context2) : { status: "unsupported" };
|
|
30454
30514
|
}, "readWithRegistry");
|
|
30455
30515
|
|
|
30456
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30516
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/attachments/extract.js
|
|
30457
30517
|
var importEngine = /* @__PURE__ */ __name((name) => importFrom(new URL("attachments/extract.js", import.meta.resolve("@wirecat/cli-core")).href, name), "importEngine");
|
|
30458
30518
|
var extensionOf2 = /* @__PURE__ */ __name(({ name, path }) => extname3(name ?? path).toLowerCase(), "extensionOf");
|
|
30459
30519
|
var extractText = /* @__PURE__ */ __name(async (bytes2, hint, load, signal, env = process.env) => {
|
|
@@ -31532,7 +31592,7 @@ function imageSize(input) {
|
|
|
31532
31592
|
}
|
|
31533
31593
|
__name(imageSize, "imageSize");
|
|
31534
31594
|
|
|
31535
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31595
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/attachments/ocr.js
|
|
31536
31596
|
var MAX_PAGES = 20;
|
|
31537
31597
|
var MAX_PIXELS = 2e7;
|
|
31538
31598
|
var cancelled2 = /* @__PURE__ */ __name((signal) => {
|
|
@@ -31683,7 +31743,7 @@ var ocrPdf = /* @__PURE__ */ __name(async (bytes2, pipeline2, load, signal) => {
|
|
|
31683
31743
|
}
|
|
31684
31744
|
}, "ocrPdf");
|
|
31685
31745
|
|
|
31686
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31746
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/attachments/pdf-preview.js
|
|
31687
31747
|
var pdfPreview = /* @__PURE__ */ __name(async (bytes2, page, signal, load = importEngine, env = process.env) => {
|
|
31688
31748
|
const limits = pdfPreviewLimits(env);
|
|
31689
31749
|
const cancelled4 = /* @__PURE__ */ __name(() => {
|
|
@@ -31760,7 +31820,7 @@ var pdfPreview = /* @__PURE__ */ __name(async (bytes2, page, signal, load = impo
|
|
|
31760
31820
|
}
|
|
31761
31821
|
}, "pdfPreview");
|
|
31762
31822
|
|
|
31763
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31823
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/attachments/transfer.js
|
|
31764
31824
|
import { createHash as createHash8 } from "node:crypto";
|
|
31765
31825
|
import { constants } from "node:fs";
|
|
31766
31826
|
import { lstat as lstat3, open as open5 } from "node:fs/promises";
|
|
@@ -31868,7 +31928,7 @@ var transferMime = /* @__PURE__ */ __name((head, hint, name = null) => {
|
|
|
31868
31928
|
return hint !== null && /^[a-z0-9.+-]+\/[a-z0-9.+-]+$/i.test(hint) ? hint : "application/octet-stream";
|
|
31869
31929
|
}, "transferMime");
|
|
31870
31930
|
|
|
31871
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31931
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/services/file-download.js
|
|
31872
31932
|
import { createWriteStream, mkdirSync } from "node:fs";
|
|
31873
31933
|
import { link as link3, rm } from "node:fs/promises";
|
|
31874
31934
|
import { join as join10, resolve as resolve6 } from "node:path";
|
|
@@ -31982,7 +32042,7 @@ var save = /* @__PURE__ */ __name(async (file2, directory2, fallbackName, { uniq
|
|
|
31982
32042
|
}
|
|
31983
32043
|
}, "save");
|
|
31984
32044
|
|
|
31985
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32045
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/services/attachments.js
|
|
31986
32046
|
var ATTACHMENT_QUERY = {
|
|
31987
32047
|
entity: "attachment",
|
|
31988
32048
|
backend: "sql",
|
|
@@ -32405,7 +32465,7 @@ var attachmentsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
32405
32465
|
}, "setText")
|
|
32406
32466
|
}), "attachmentsService");
|
|
32407
32467
|
|
|
32408
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32468
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/services/chat-documents.js
|
|
32409
32469
|
var chatDocumentsService = /* @__PURE__ */ __name((deps) => ({
|
|
32410
32470
|
list: /* @__PURE__ */ __name(async (chat, { limit, offset, ref }) => {
|
|
32411
32471
|
const store = await accountStore(deps);
|
|
@@ -32435,7 +32495,7 @@ var chatDocumentsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
32435
32495
|
}, "list")
|
|
32436
32496
|
}), "chatDocumentsService");
|
|
32437
32497
|
|
|
32438
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32498
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/services/retention.js
|
|
32439
32499
|
var observationDuration = /* @__PURE__ */ __name((text2, flag) => {
|
|
32440
32500
|
const match = /^(\d+(?:\.\d+)?)([smhdw])$/.exec(text2);
|
|
32441
32501
|
const units2 = { s: 1e3, m: 6e4, h: 36e5, d: 864e5, w: 6048e5 };
|
|
@@ -32522,7 +32582,7 @@ var isRetentionSelection = /* @__PURE__ */ __name((selection) => {
|
|
|
32522
32582
|
}
|
|
32523
32583
|
}, "isRetentionSelection");
|
|
32524
32584
|
|
|
32525
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32585
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/services/counters.js
|
|
32526
32586
|
var counterFields = /* @__PURE__ */ __name((text2 = "views,reactions,comments") => {
|
|
32527
32587
|
const fields = text2.split(",").map((one2) => one2.trim());
|
|
32528
32588
|
if (!fields.length || fields.some((one2) => !COUNTER_FIELDS.includes(one2)) || new Set(fields).size !== fields.length)
|
|
@@ -32729,7 +32789,7 @@ var countersService = /* @__PURE__ */ __name((deps) => {
|
|
|
32729
32789
|
};
|
|
32730
32790
|
}, "countersService");
|
|
32731
32791
|
|
|
32732
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32792
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/services/search-refresh.js
|
|
32733
32793
|
var SYNC_KEY = "messages.sync-first";
|
|
32734
32794
|
var SYNC_BOUNDS = { maxChats: 5, timeMs: 3e4, maxMessages: 500 };
|
|
32735
32795
|
var keyOf2 = /* @__PURE__ */ __name((chat) => JSON.stringify([chat.account.provider, chat.account.account, chat.chatId]), "keyOf");
|
|
@@ -32861,20 +32921,20 @@ var withRefresh = /* @__PURE__ */ __name((found, refreshed) => ({
|
|
|
32861
32921
|
...!refreshed || refreshed.complete ? {} : { coverage: { ...found.coverage, state: "stale" } }
|
|
32862
32922
|
}), "withRefresh");
|
|
32863
32923
|
|
|
32864
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32924
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/services/embeddings-search.js
|
|
32865
32925
|
var CANDIDATES = 50;
|
|
32866
32926
|
var WORD_HITS = 200;
|
|
32867
32927
|
var RRF_K = 60;
|
|
32868
32928
|
var embeddingsSearch = /* @__PURE__ */ __name((deps) => {
|
|
32869
32929
|
const command = deps.messenger.app.command;
|
|
32870
32930
|
const byWords = /* @__PURE__ */ __name(async (query, prepared, conversations, since) => {
|
|
32871
|
-
const
|
|
32931
|
+
const words4 = [...new Set(query.toLowerCase().match(/[\p{L}\p{N}]+/gu) ?? [])];
|
|
32872
32932
|
const outside = /* @__PURE__ */ new Map();
|
|
32873
|
-
if (!
|
|
32933
|
+
if (!words4.length || !prepared.scopeAccounts.length)
|
|
32874
32934
|
return { hits: [], outside, sources: /* @__PURE__ */ new Map() };
|
|
32875
32935
|
const store = await deps.store();
|
|
32876
32936
|
const lexical = await prepareLucene(store, await deps.account(), {
|
|
32877
|
-
text:
|
|
32937
|
+
text: words4.map((word) => word.length >= 3 ? `${word}*` : `"${word}"`).join(" OR "),
|
|
32878
32938
|
accounts: prepared.scopeAccounts,
|
|
32879
32939
|
limit: WORD_HITS
|
|
32880
32940
|
}, deps.messenger);
|
|
@@ -32980,9 +33040,9 @@ var embeddingsSearch = /* @__PURE__ */ __name((deps) => {
|
|
|
32980
33040
|
const eligibility = filter === void 0 ? void 0 : await store.queries.conversationEligibility(prepared.execution);
|
|
32981
33041
|
const selected = prepared.selectedChat;
|
|
32982
33042
|
const scopeOf4 = /* @__PURE__ */ __name((one2) => selected ? selected.account.provider === one2.provider && selected.account.account === one2.account ? { chatId: selected.chatId } : null : {}, "scopeOf");
|
|
32983
|
-
const
|
|
33043
|
+
const words4 = await byWords(query, prepared, eligibility?.conversations, since);
|
|
32984
33044
|
const meaning = [];
|
|
32985
|
-
const sources =
|
|
33045
|
+
const sources = words4.sources;
|
|
32986
33046
|
if (target2.installed && prepared.scopeAccounts.length && eligibility?.conversations.length !== 0) {
|
|
32987
33047
|
await withEmbedder(deps, target2, choice, {}, async (embedder) => {
|
|
32988
33048
|
const [vector] = await embedder.embed([query], "query");
|
|
@@ -33026,7 +33086,7 @@ var embeddingsSearch = /* @__PURE__ */ __name((deps) => {
|
|
|
33026
33086
|
continue;
|
|
33027
33087
|
const eligibleChats = eligibility?.chats.filter(({ account: account2 }) => account2.provider === one2.provider && account2.account === one2.account).map(({ chat: chat2 }) => chat2);
|
|
33028
33088
|
const rows = eligibleChats === void 0 ? await store.vectors.readiness(one2, { ...scope, model: target2.key, searchableOnly: true }) : (await Promise.all(eligibleChats.map((chatId) => store.vectors.readiness(one2, { chatId, model: target2.key })))).flat();
|
|
33029
|
-
const readiness2 = searchReadiness(rows.map(shaped), target2.installed,
|
|
33089
|
+
const readiness2 = searchReadiness(rows.map(shaped), target2.installed, words4.outside.get(JSON.stringify(one2))?.chats ?? /* @__PURE__ */ new Set());
|
|
33030
33090
|
scoped.push({ source: one2, readiness: readiness2 });
|
|
33031
33091
|
const other = await store.vectors.embeddedOnlyElsewhere(one2, { ...scope, model: target2.key });
|
|
33032
33092
|
elsewhere.push(...other.filter((id2) => eligibleChats === void 0 || eligibleChats.includes(id2)).map((id2) => prepared.scopeAccounts.length > 1 ? [one2.provider, one2.account, id2].map(encodeURIComponent).join("/") : id2));
|
|
@@ -33042,7 +33102,7 @@ var embeddingsSearch = /* @__PURE__ */ __name((deps) => {
|
|
|
33042
33102
|
accounts: prepared.scopeAccounts,
|
|
33043
33103
|
model: target2.id,
|
|
33044
33104
|
meaning: target2.installed ? "searched" : "unavailable",
|
|
33045
|
-
hits: fused(meaning,
|
|
33105
|
+
hits: fused(meaning, words4.hits, meaningFloor(target2.key)).slice(0, limit).map((hit) => {
|
|
33046
33106
|
const source2 = sources.get(hit.summary.id);
|
|
33047
33107
|
return {
|
|
33048
33108
|
...hit,
|
|
@@ -33088,7 +33148,7 @@ var embeddingsSearch = /* @__PURE__ */ __name((deps) => {
|
|
|
33088
33148
|
}, "related")
|
|
33089
33149
|
};
|
|
33090
33150
|
}, "embeddingsSearch");
|
|
33091
|
-
var fused = /* @__PURE__ */ __name((meaning,
|
|
33151
|
+
var fused = /* @__PURE__ */ __name((meaning, words4, minimumCosine) => {
|
|
33092
33152
|
const merged = /* @__PURE__ */ new Map();
|
|
33093
33153
|
meaning.filter(({ score }) => score > minimumCosine).forEach(({ summary, chunk, score, stale, matchedIn }, index) => {
|
|
33094
33154
|
merged.set(matchedIn ? `${summary.id}#${chunk.firstMessageId}` : summary.id, {
|
|
@@ -33101,7 +33161,7 @@ var fused = /* @__PURE__ */ __name((meaning, words3, minimumCosine) => {
|
|
|
33101
33161
|
fused: 1 / (RRF_K + index + 1)
|
|
33102
33162
|
});
|
|
33103
33163
|
});
|
|
33104
|
-
|
|
33164
|
+
words4.forEach(({ summary, chunk }, index) => {
|
|
33105
33165
|
const share = 1 / (RRF_K + index + 1);
|
|
33106
33166
|
const held = merged.get(summary.id);
|
|
33107
33167
|
if (held) {
|
|
@@ -33136,13 +33196,13 @@ var meanOf = /* @__PURE__ */ __name((vectors) => {
|
|
|
33136
33196
|
return mean2.map((value) => value / length);
|
|
33137
33197
|
}, "meanOf");
|
|
33138
33198
|
|
|
33139
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33199
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/services/embeddings.js
|
|
33140
33200
|
var embeddingsService = /* @__PURE__ */ __name((deps) => ({
|
|
33141
33201
|
...embeddingsMaintenance(deps),
|
|
33142
33202
|
...embeddingsSearch(deps)
|
|
33143
33203
|
}), "embeddingsService");
|
|
33144
33204
|
|
|
33145
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33205
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/services/folders.js
|
|
33146
33206
|
var foldersService = /* @__PURE__ */ __name((deps) => {
|
|
33147
33207
|
const online = /* @__PURE__ */ __name(async (command) => {
|
|
33148
33208
|
if (deps.offline)
|
|
@@ -33283,7 +33343,7 @@ var foldersService = /* @__PURE__ */ __name((deps) => {
|
|
|
33283
33343
|
};
|
|
33284
33344
|
}, "foldersService");
|
|
33285
33345
|
|
|
33286
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33346
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/services/mentions.js
|
|
33287
33347
|
var REVIEW_COUNT = 500;
|
|
33288
33348
|
var mentionsService = /* @__PURE__ */ __name((deps) => {
|
|
33289
33349
|
const located = /* @__PURE__ */ __name(async () => {
|
|
@@ -33362,7 +33422,7 @@ var mentionsService = /* @__PURE__ */ __name((deps) => {
|
|
|
33362
33422
|
};
|
|
33363
33423
|
}, "mentionsService");
|
|
33364
33424
|
|
|
33365
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33425
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/domain/formatting.js
|
|
33366
33426
|
var invalid3 = /* @__PURE__ */ __name(() => new CliError("validation_error", "the messenger formatter returned invalid text spans"), "invalid");
|
|
33367
33427
|
var validateFormattedText = /* @__PURE__ */ __name((formatted2) => {
|
|
33368
33428
|
const { text: text2, spans } = formatted2;
|
|
@@ -33422,7 +33482,7 @@ var visibleFormattedText = /* @__PURE__ */ __name((formatted2) => {
|
|
|
33422
33482
|
};
|
|
33423
33483
|
}, "visibleFormattedText");
|
|
33424
33484
|
|
|
33425
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33485
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/domain/message-link.js
|
|
33426
33486
|
var fileLinks = /* @__PURE__ */ __name((attachments) => hitFiles(attachments).map(({ position, kind, name }) => ({
|
|
33427
33487
|
position,
|
|
33428
33488
|
kind,
|
|
@@ -33471,7 +33531,7 @@ var validatePermalink = /* @__PURE__ */ __name((link4) => {
|
|
|
33471
33531
|
return { url: link4.url, access: link4.access, reason: link4.reason };
|
|
33472
33532
|
}, "validatePermalink");
|
|
33473
33533
|
|
|
33474
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33534
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/domain/pin-duration.js
|
|
33475
33535
|
var spokenSeconds = /* @__PURE__ */ __name((seconds) => {
|
|
33476
33536
|
if (seconds % 86400 === 0 && seconds > 86400)
|
|
33477
33537
|
return `${seconds / 86400}d`;
|
|
@@ -33482,8 +33542,8 @@ var spokenSeconds = /* @__PURE__ */ __name((seconds) => {
|
|
|
33482
33542
|
return `${seconds}s`;
|
|
33483
33543
|
}, "spokenSeconds");
|
|
33484
33544
|
var pinDurationsText = /* @__PURE__ */ __name((allowed) => {
|
|
33485
|
-
const
|
|
33486
|
-
return
|
|
33545
|
+
const words4 = allowed.map(spokenSeconds);
|
|
33546
|
+
return words4.length > 1 ? `${words4.slice(0, -1).join(", ")} or ${words4.at(-1)}` : words4[0] ?? "";
|
|
33487
33547
|
}, "pinDurationsText");
|
|
33488
33548
|
var pinLengthHelp = /* @__PURE__ */ __name((allowed, fallback) => `how long the pin lasts: ${pinDurationsText(allowed)}` + (fallback === void 0 ? "" : `; ${spokenSeconds(fallback)} by default`), "pinLengthHelp");
|
|
33489
33549
|
var pinDurationOf = /* @__PURE__ */ __name((value, allowed, flag = "--expire-time") => {
|
|
@@ -33503,7 +33563,7 @@ var pinDurationOf = /* @__PURE__ */ __name((value, allowed, flag = "--expire-tim
|
|
|
33503
33563
|
return seconds;
|
|
33504
33564
|
}, "pinDurationOf");
|
|
33505
33565
|
|
|
33506
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33566
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/sends/send-as.js
|
|
33507
33567
|
var sendAsCheck = /* @__PURE__ */ __name((connection, sendAs) => {
|
|
33508
33568
|
if (sendAs === void 0) {
|
|
33509
33569
|
const saved = connection.savedSender?.bind(connection);
|
|
@@ -33528,7 +33588,7 @@ var typedSendAs = /* @__PURE__ */ __name((typed) => {
|
|
|
33528
33588
|
return sendAs;
|
|
33529
33589
|
}, "typedSendAs");
|
|
33530
33590
|
|
|
33531
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33591
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/search/total.js
|
|
33532
33592
|
var TOTAL_CAP = 1e4;
|
|
33533
33593
|
var totalOf = /* @__PURE__ */ __name((count4, shown, hasMore, exact = true) => {
|
|
33534
33594
|
const least = shown + (hasMore ? 1 : 0);
|
|
@@ -33539,7 +33599,7 @@ var totalOf = /* @__PURE__ */ __name((count4, shown, hasMore, exact = true) => {
|
|
|
33539
33599
|
return { value: count4, relation: exact ? "eq" : "gte" };
|
|
33540
33600
|
}, "totalOf");
|
|
33541
33601
|
|
|
33542
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33602
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/search/lucene/meaning-parts.js
|
|
33543
33603
|
var WORD_FIELDS = /* @__PURE__ */ new Set(["text", "exact"]);
|
|
33544
33604
|
var fieldsOfQuery = /* @__PURE__ */ __name((root, everything) => {
|
|
33545
33605
|
let narrows = false;
|
|
@@ -33568,12 +33628,12 @@ var meaningWords = /* @__PURE__ */ __name((root) => {
|
|
|
33568
33628
|
return wanted(root).join(" ").trim();
|
|
33569
33629
|
}, "meaningWords");
|
|
33570
33630
|
|
|
33571
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33572
|
-
var
|
|
33573
|
-
var scaffolding = new Set(
|
|
33631
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/search/question-plan.js
|
|
33632
|
+
var words3 = /* @__PURE__ */ __name((text2) => normalize(text2).match(/[\p{L}\p{N}]+/gu) ?? [], "words");
|
|
33633
|
+
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"));
|
|
33574
33634
|
var questionWord = /\b(?:what|which|how|who|where|when|can|could|should)\b|(?:^|\s)(?:сколько|какой|какая|какие|какое|кто|кому|кем|где|когда|как|что|можно|может|могут|ли)(?:\s|$)/iu;
|
|
33575
|
-
var QUESTION_STARTS = new Set(
|
|
33576
|
-
var QUESTION_FILLER = new Set(
|
|
33635
|
+
var QUESTION_STARTS = new Set(words3("what which how who whom whose where when why can could should would did do does is are was were will \u0447\u0442\u043E \u043A\u0442\u043E \u043A\u043E\u0433\u043E \u043A\u043E\u043C\u0443 \u043A\u0435\u043C \u0433\u0434\u0435 \u043A\u043E\u0433\u0434\u0430 \u043A\u0430\u043A \u043A\u0430\u043A\u043E\u0439 \u043A\u0430\u043A\u0430\u044F \u043A\u0430\u043A\u043E\u0435 \u043A\u0430\u043A\u0438\u0435 \u043A\u0430\u043A\u0443\u044E \u043A\u0430\u043A\u0438\u043C \u043A\u0430\u043A\u043E\u0433\u043E \u043A\u0430\u043A\u0438\u0445 \u043F\u043E\u0447\u0435\u043C\u0443 \u0437\u0430\u0447\u0435\u043C \u043E\u0442\u043A\u0443\u0434\u0430 \u043A\u0443\u0434\u0430 \u0441\u043A\u043E\u043B\u044C\u043A\u043E \u043B\u0438 \u043C\u043E\u0436\u043D\u043E \u0440\u0430\u0437\u0432\u0435 \u0447\u0435\u0439 \u0447\u044C\u044F \u0447\u044C\u0451 \u0447\u044C\u0438"));
|
|
33636
|
+
var QUESTION_FILLER = new Set(words3("about any did does why whom whose would will \u044D\u0442\u043E \u043C\u044B \u0432\u044B \u044F \u043E\u043D\u0438 \u043E\u043D \u043E\u043D\u0430 \u043E \u043E\u0431 \u043F\u0440\u043E \u043B\u0438"));
|
|
33577
33637
|
function planQuestion(text2, strict = false) {
|
|
33578
33638
|
if (strict)
|
|
33579
33639
|
return {
|
|
@@ -33581,15 +33641,15 @@ function planQuestion(text2, strict = false) {
|
|
|
33581
33641
|
natural: false,
|
|
33582
33642
|
queries: [text2],
|
|
33583
33643
|
scope: "",
|
|
33584
|
-
terms:
|
|
33585
|
-
rankingTerms:
|
|
33644
|
+
terms: words3(text2),
|
|
33645
|
+
rankingTerms: words3(text2),
|
|
33586
33646
|
removed: [],
|
|
33587
33647
|
aliases: []
|
|
33588
33648
|
};
|
|
33589
33649
|
const inputAst = parseLucene(text2, MESSAGE_PARSING);
|
|
33590
33650
|
const rawTextual = walkQuery(inputAst.root).filter((node) => node.field === "text" || node.field === "exact");
|
|
33591
33651
|
const body = rawTextual.map((node) => node.value).join(" ");
|
|
33592
|
-
const prefix =
|
|
33652
|
+
const prefix = words3(body).slice(0, 2);
|
|
33593
33653
|
const questionPrefix = [
|
|
33594
33654
|
"what",
|
|
33595
33655
|
"which",
|
|
@@ -33639,12 +33699,12 @@ function planQuestion(text2, strict = false) {
|
|
|
33639
33699
|
natural: false,
|
|
33640
33700
|
queries: [text2],
|
|
33641
33701
|
scope,
|
|
33642
|
-
terms: textual.flatMap((p) =>
|
|
33643
|
-
rankingTerms: textual.flatMap((p) =>
|
|
33702
|
+
terms: textual.flatMap((p) => words3(p.value)),
|
|
33703
|
+
rankingTerms: textual.flatMap((p) => words3(p.value)),
|
|
33644
33704
|
removed: [],
|
|
33645
33705
|
aliases: []
|
|
33646
33706
|
};
|
|
33647
|
-
const original = textual.flatMap((p) =>
|
|
33707
|
+
const original = textual.flatMap((p) => words3(p.value));
|
|
33648
33708
|
const removed = original.filter((w) => scaffolding.has(w));
|
|
33649
33709
|
const terms = [...new Set(original.filter((w) => !scaffolding.has(w)))];
|
|
33650
33710
|
if (!terms.length)
|
|
@@ -33684,7 +33744,7 @@ function planQuestion(text2, strict = false) {
|
|
|
33684
33744
|
__name(planQuestion, "planQuestion");
|
|
33685
33745
|
var questionText = /* @__PURE__ */ __name((text2) => text2.replace(new RegExp("(?<=\\p{L})\\?(?=\\s|$)", "gu"), "").replace(/"(?:[^"\\]|\\.)*"|(?<=\d):(?=\d)/gu, (found) => found === ":" ? " " : found), "questionText");
|
|
33686
33746
|
var lookupTerms = /* @__PURE__ */ __name((plan) => [
|
|
33687
|
-
...new Set(plan.terms.concat(plan.aliases.flatMap((alias) =>
|
|
33747
|
+
...new Set(plan.terms.concat(plan.aliases.flatMap((alias) => words3(alias.split(" -> ")[1] ?? ""))))
|
|
33688
33748
|
], "lookupTerms");
|
|
33689
33749
|
var anyOfTerms = /* @__PURE__ */ __name((terms, scope) => `(${terms.join(" OR ")})${scope ? ` ${scope}` : ""}`, "anyOfTerms");
|
|
33690
33750
|
var questionLookup = /* @__PURE__ */ __name((text2) => {
|
|
@@ -33700,7 +33760,7 @@ var questionLookup = /* @__PURE__ */ __name((text2) => {
|
|
|
33700
33760
|
return terms.length ? anyOfTerms(terms, plan.scope) : void 0;
|
|
33701
33761
|
}, "questionLookup");
|
|
33702
33762
|
|
|
33703
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33763
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/services/messages-combined.js
|
|
33704
33764
|
var COMBINED_DEFAULTS = { candidateDepth: 300, rrfK: 60, rerank: "all", chatCap: 0 };
|
|
33705
33765
|
var tokensOf = /* @__PURE__ */ __name((text2) => normalize(text2).match(/[\p{L}\p{N}\p{Co}\p{M}]+/gu) ?? [], "tokensOf");
|
|
33706
33766
|
var searchCombined = /* @__PURE__ */ __name(async (store, account, request, messenger = {}, options = COMBINED_DEFAULTS) => {
|
|
@@ -33893,7 +33953,7 @@ var signals = /* @__PURE__ */ __name((hit, terms, corrections, execution, mode,
|
|
|
33893
33953
|
return mode === "coverage" ? coverage2 * 4 : mode === "proximity" ? proximity : mode === "phrase" ? phrase : coverage2 * 4 + proximity + phrase;
|
|
33894
33954
|
}, "signals");
|
|
33895
33955
|
|
|
33896
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33956
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/services/messages-discovery.js
|
|
33897
33957
|
var MEANING_DEPTH = 100;
|
|
33898
33958
|
var RRF_K2 = 60;
|
|
33899
33959
|
var RERANK_DEPTH = 50;
|
|
@@ -33929,7 +33989,7 @@ var searchDiscovery = /* @__PURE__ */ __name(async (store, account, asked, messe
|
|
|
33929
33989
|
const question = root === void 0 ? text2 : meaningWords(root);
|
|
33930
33990
|
if (!question)
|
|
33931
33991
|
return searchLucene(store, account, request, messenger);
|
|
33932
|
-
const terms = root === void 0 ? lookupTerms(plan) : [...new Set(
|
|
33992
|
+
const terms = root === void 0 ? lookupTerms(plan) : [...new Set(words3(question))];
|
|
33933
33993
|
if (!terms.length)
|
|
33934
33994
|
return searchLucene(store, account, request, messenger);
|
|
33935
33995
|
if (terms.length > 64)
|
|
@@ -34032,7 +34092,7 @@ var searchDiscovery = /* @__PURE__ */ __name(async (store, account, asked, messe
|
|
|
34032
34092
|
bytes2 += Buffer.byteLength(body);
|
|
34033
34093
|
if (bytes2 > QUERY_LIMITS.bodyBytes)
|
|
34034
34094
|
exhausted("bodyBytes");
|
|
34035
|
-
const tokens = new Set(
|
|
34095
|
+
const tokens = new Set(words3(body).map(stem));
|
|
34036
34096
|
const matchedTerms = terms.filter((_, i) => tokens.has(stems[i] ?? ""));
|
|
34037
34097
|
const missingTerms = terms.filter((_, i) => !tokens.has(stems[i] ?? ""));
|
|
34038
34098
|
const coverage2 = matchedTerms.length / terms.length;
|
|
@@ -34178,10 +34238,10 @@ var nearEligible = /* @__PURE__ */ __name(async (store, account, request, messen
|
|
|
34178
34238
|
return hit ? [{ ...hit, cosine: m.score }] : [];
|
|
34179
34239
|
});
|
|
34180
34240
|
}, "nearEligible");
|
|
34181
|
-
var fusedWithMeaning = /* @__PURE__ */ __name((
|
|
34241
|
+
var fusedWithMeaning = /* @__PURE__ */ __name((words4, near2, described) => {
|
|
34182
34242
|
const merged = /* @__PURE__ */ new Map();
|
|
34183
34243
|
const by = /* @__PURE__ */ __name((hit, foundBy) => hit.discovery ? { ...hit, discovery: { ...hit.discovery, foundBy } } : hit, "by");
|
|
34184
|
-
|
|
34244
|
+
words4.forEach((hit, rank) => {
|
|
34185
34245
|
merged.set(hit.locator, { hit: by(hit, ["words"]), rrf: 1 / (RRF_K2 + rank + 1) });
|
|
34186
34246
|
});
|
|
34187
34247
|
near2.forEach(({ cosine: _, ...m }, rank) => {
|
|
@@ -34218,7 +34278,7 @@ var mixedWithReranker = /* @__PURE__ */ __name((head, scores) => {
|
|
|
34218
34278
|
})).sort((a, b) => b.mixed - a.mixed).map(({ hit }) => hit);
|
|
34219
34279
|
}, "mixedWithReranker");
|
|
34220
34280
|
|
|
34221
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34281
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/services/thread-context.js
|
|
34222
34282
|
var THREAD_BOUNDS = { maxHops: 8, maxMessages: 50, maxBytes: 65536, withinMs: 864e5 };
|
|
34223
34283
|
var bytes = /* @__PURE__ */ __name((items, links) => Buffer.byteLength(JSON.stringify({ items, links }), "utf8"), "bytes");
|
|
34224
34284
|
var threadBounds = /* @__PURE__ */ __name((options = {}) => {
|
|
@@ -34417,7 +34477,7 @@ var readThreadContext = /* @__PURE__ */ __name(async (store, account, chat, mess
|
|
|
34417
34477
|
return result;
|
|
34418
34478
|
}, "readThreadContext");
|
|
34419
34479
|
|
|
34420
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34480
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/services/messages-archive-search.js
|
|
34421
34481
|
var SEARCH_FILL_MS = 200;
|
|
34422
34482
|
var statsStore = /* @__PURE__ */ __name(async (store, account, request, messenger = {}) => {
|
|
34423
34483
|
const stop = Date.now() + SEARCH_FILL_MS;
|
|
@@ -34484,12 +34544,12 @@ var accountOf2 = /* @__PURE__ */ __name((hit) => {
|
|
|
34484
34544
|
}, "accountOf");
|
|
34485
34545
|
var keyOf3 = /* @__PURE__ */ __name(({ provider, account }) => `${provider}/${account}`, "keyOf");
|
|
34486
34546
|
|
|
34487
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34547
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/services/pictures.js
|
|
34488
34548
|
import { createHash as createHash10 } from "node:crypto";
|
|
34489
34549
|
import { readFile as readFile2, stat as stat3 } from "node:fs/promises";
|
|
34490
34550
|
import { setTimeout as sleep4 } from "node:timers/promises";
|
|
34491
34551
|
|
|
34492
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34552
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/domain/models.js
|
|
34493
34553
|
var GROUP_SETTINGS = [
|
|
34494
34554
|
"allCanPin",
|
|
34495
34555
|
"onlyAdminsAdd",
|
|
@@ -34503,7 +34563,7 @@ var ADMIN_RIGHTS = ["read", "members", "admins", "info", "pin", "link", "post",
|
|
|
34503
34563
|
var senderIsMe = /* @__PURE__ */ __name((message, account) => message.outgoing === true || message.senderId !== null && String(message.senderId) === account, "senderIsMe");
|
|
34504
34564
|
var MEDIA_KINDS = ["photo", "video", "file", "audio", "link"];
|
|
34505
34565
|
|
|
34506
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34566
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/services/pictures.js
|
|
34507
34567
|
var PICTURE_MAX_BYTES = 25 * 1024 * 1024;
|
|
34508
34568
|
var PICTURE_FLOOR = 0.25;
|
|
34509
34569
|
var PAGE4 = 50;
|
|
@@ -34520,7 +34580,7 @@ var picturesService = /* @__PURE__ */ __name((deps) => {
|
|
|
34520
34580
|
const directory2 = imageModelsDirectory(deps.env);
|
|
34521
34581
|
if (!isImageModelInstalled(model2, directory2))
|
|
34522
34582
|
throw new CliError("not_found", missingModel(model2.id), { reason: "model.not-downloaded", model: model2.id });
|
|
34523
|
-
const { openPictureEmbedder } = await import("./embedder-
|
|
34583
|
+
const { openPictureEmbedder } = await import("./embedder-BJQEGCE5.js");
|
|
34524
34584
|
return openPictureEmbedder(model2, directory2);
|
|
34525
34585
|
}, "open");
|
|
34526
34586
|
const embedder = /* @__PURE__ */ __name(() => {
|
|
@@ -34651,8 +34711,8 @@ var picturesService = /* @__PURE__ */ __name((deps) => {
|
|
|
34651
34711
|
lane: /* @__PURE__ */ __name(async (query, { chat, since, limit = 5 } = {}) => {
|
|
34652
34712
|
if (!deps.pictures)
|
|
34653
34713
|
return {};
|
|
34654
|
-
const
|
|
34655
|
-
if (
|
|
34714
|
+
const words4 = plainWords(query);
|
|
34715
|
+
if (words4 === "")
|
|
34656
34716
|
return {};
|
|
34657
34717
|
const store = await deps.store();
|
|
34658
34718
|
const account = await deps.account();
|
|
@@ -34660,7 +34720,7 @@ var picturesService = /* @__PURE__ */ __name((deps) => {
|
|
|
34660
34720
|
let vector;
|
|
34661
34721
|
try {
|
|
34662
34722
|
const use = await embedder();
|
|
34663
|
-
vector = await use.embedQuery(
|
|
34723
|
+
vector = await use.embedQuery(words4);
|
|
34664
34724
|
} catch (error) {
|
|
34665
34725
|
if (error instanceof CliError && error.code === "not_found")
|
|
34666
34726
|
return { picturesSkipped: error.message, picturesModel: model.id };
|
|
@@ -34717,7 +34777,7 @@ var withPictures = /* @__PURE__ */ __name((messages, pictures) => ({
|
|
|
34717
34777
|
}, "search")
|
|
34718
34778
|
}), "withPictures");
|
|
34719
34779
|
|
|
34720
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34780
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/services/messages-meaning.js
|
|
34721
34781
|
var meaningLane = /* @__PURE__ */ __name((deps) => async (question, accounts, shared, within) => {
|
|
34722
34782
|
const target2 = embeddingTarget(deps, DEFAULT_TEXT_MODEL);
|
|
34723
34783
|
const skipped = /* @__PURE__ */ __name((reason, step) => ({
|
|
@@ -34739,13 +34799,13 @@ var meaningLane = /* @__PURE__ */ __name((deps) => async (question, accounts, sh
|
|
|
34739
34799
|
}
|
|
34740
34800
|
if (ready.length === 0 && mail.size === 0)
|
|
34741
34801
|
return skipped("no message has a vector yet", "conversations.rebuild");
|
|
34742
|
-
const
|
|
34802
|
+
const words4 = plainWords(question);
|
|
34743
34803
|
try {
|
|
34744
34804
|
const ranked = [];
|
|
34745
|
-
if (
|
|
34805
|
+
if (words4) {
|
|
34746
34806
|
const pks = await within?.();
|
|
34747
34807
|
const lookUp = /* @__PURE__ */ __name(async (embedder) => {
|
|
34748
|
-
const [query] = await embedder.embed([
|
|
34808
|
+
const [query] = await embedder.embed([words4], "query");
|
|
34749
34809
|
for (const one2 of ready) {
|
|
34750
34810
|
const near2 = pks ? await store.vectors.scoreMessages(one2, { model: target2.key, query, pks }) : await store.vectors.nearestMessages(one2, {
|
|
34751
34811
|
model: target2.key,
|
|
@@ -34785,7 +34845,7 @@ var meaningLane = /* @__PURE__ */ __name((deps) => async (question, accounts, sh
|
|
|
34785
34845
|
}
|
|
34786
34846
|
}, "meaningLane");
|
|
34787
34847
|
|
|
34788
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34848
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/services/messages-rerank.js
|
|
34789
34849
|
var rerankLane = /* @__PURE__ */ __name((deps) => {
|
|
34790
34850
|
const choice = deps.reranker ?? DEFAULT_RERANK_MODEL;
|
|
34791
34851
|
if (choice === "off")
|
|
@@ -34797,9 +34857,9 @@ var rerankLane = /* @__PURE__ */ __name((deps) => {
|
|
|
34797
34857
|
return { skipped: { reason: `${model.id} is not downloaded`, step: "models.download", model: model.id } };
|
|
34798
34858
|
try {
|
|
34799
34859
|
const warm = deps.embedders;
|
|
34800
|
-
const reranker = warm ? await warm.reranker(`rerank:${model.id}`, async () => (await import("./process-
|
|
34860
|
+
const reranker = warm ? await warm.reranker(`rerank:${model.id}`, async () => (await import("./process-TAFRBB53.js")).openRerankerProcess(model, directory2, {
|
|
34801
34861
|
threads: defaultThreads()
|
|
34802
|
-
})) : await (await import("./rerank-
|
|
34862
|
+
})) : await (await import("./rerank-DTD24I7Y.js")).openReranker(model, directory2);
|
|
34803
34863
|
return {
|
|
34804
34864
|
model: model.id,
|
|
34805
34865
|
score: /* @__PURE__ */ __name((question, passages) => reranker.score(plainWords(question), passages), "score"),
|
|
@@ -34819,17 +34879,17 @@ var rerankLane = /* @__PURE__ */ __name((deps) => {
|
|
|
34819
34879
|
};
|
|
34820
34880
|
}, "rerankLane");
|
|
34821
34881
|
|
|
34822
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34882
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/services/document-pictures.js
|
|
34823
34883
|
var openPictureEmbedderFor = /* @__PURE__ */ __name(async ({ env, command } = {}) => {
|
|
34824
34884
|
const model = imageModel(DEFAULT_IMAGE_MODEL);
|
|
34825
34885
|
const directory2 = imageModelsDirectory(env);
|
|
34826
34886
|
if (!isImageModelInstalled(model, directory2))
|
|
34827
34887
|
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 });
|
|
34828
|
-
const { openPictureEmbedder } = await import("./embedder-
|
|
34888
|
+
const { openPictureEmbedder } = await import("./embedder-BJQEGCE5.js");
|
|
34829
34889
|
return openPictureEmbedder(model, directory2);
|
|
34830
34890
|
}, "openPictureEmbedderFor");
|
|
34831
34891
|
|
|
34832
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34892
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/services/document-source.js
|
|
34833
34893
|
var documentSource = /* @__PURE__ */ __name((note2, accounts, profiles, file2) => {
|
|
34834
34894
|
const metadata = note2.frontMatter;
|
|
34835
34895
|
const account = accounts.find(({ id: id2 }) => String(id2) === note2.folderId);
|
|
@@ -34844,7 +34904,7 @@ var documentSource = /* @__PURE__ */ __name((note2, accounts, profiles, file2) =
|
|
|
34844
34904
|
};
|
|
34845
34905
|
}, "documentSource");
|
|
34846
34906
|
|
|
34847
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34907
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/services/notes-title-tier.js
|
|
34848
34908
|
var plainQueryWords = /* @__PURE__ */ __name((query) => {
|
|
34849
34909
|
let root;
|
|
34850
34910
|
try {
|
|
@@ -34859,19 +34919,19 @@ var plainQueryWords = /* @__PURE__ */ __name((query) => {
|
|
|
34859
34919
|
return void 0;
|
|
34860
34920
|
values.push(leaf.value);
|
|
34861
34921
|
}
|
|
34862
|
-
const
|
|
34863
|
-
return
|
|
34922
|
+
const words4 = normalize(values.join(" "));
|
|
34923
|
+
return words4 === "" || /["\\]/u.test(words4) ? void 0 : words4;
|
|
34864
34924
|
}, "plainQueryWords");
|
|
34865
|
-
var titleQuery = /* @__PURE__ */ __name((
|
|
34866
|
-
var titleTiers = /* @__PURE__ */ __name((hits,
|
|
34925
|
+
var titleQuery = /* @__PURE__ */ __name((words4) => words4.split(" ").map((word) => `title:"${word}"`).join(" AND "), "titleQuery");
|
|
34926
|
+
var titleTiers = /* @__PURE__ */ __name((hits, words4) => {
|
|
34867
34927
|
const rank = /* @__PURE__ */ __name(({ note: note2 }) => {
|
|
34868
34928
|
const title = normalize(note2.title ?? "");
|
|
34869
|
-
return title ===
|
|
34929
|
+
return title === words4 ? 0 : title.includes(words4) ? 1 : 2;
|
|
34870
34930
|
}, "rank");
|
|
34871
34931
|
return [...hits].sort((a, b) => rank(a) - rank(b));
|
|
34872
34932
|
}, "titleTiers");
|
|
34873
34933
|
|
|
34874
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34934
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/services/notes-search.js
|
|
34875
34935
|
var storeQuery = /* @__PURE__ */ __name(async (store, text2, { exact, timezone } = {}) => resolvedQuery(store, parsedQuery(text2, exact), timezone), "storeQuery");
|
|
34876
34936
|
var parsedQuery = /* @__PURE__ */ __name((text2, exact) => validateFields(parseLucene(text2, { ...SEARCH_QUERY, defaultField: exact ? "exact" : "text" })).root, "parsedQuery");
|
|
34877
34937
|
var resolvedQuery = /* @__PURE__ */ __name(async (store, root, timezone) => {
|
|
@@ -34993,14 +35053,14 @@ var MAX_NOTES_OFFSET = 1e3;
|
|
|
34993
35053
|
var CANDIDATES2 = 50;
|
|
34994
35054
|
var RRF_K3 = 60;
|
|
34995
35055
|
var firstLine = /* @__PURE__ */ __name((text2, query) => {
|
|
34996
|
-
const
|
|
35056
|
+
const words4 = query.toLowerCase().split(/\s+/).map((word) => word.replace(/^[^\p{L}\p{N}]+|[^\p{L}\p{N}]+$/gu, "")).filter((word) => word.length > 2 && !["and", "or", "not"].includes(word));
|
|
34997
35057
|
const lines3 = text2.split("\n");
|
|
34998
|
-
const found = lines3.find((line2) =>
|
|
35058
|
+
const found = lines3.find((line2) => words4.some((word) => line2.toLowerCase().includes(word)));
|
|
34999
35059
|
return (found ?? lines3.find((line2) => line2.trim() !== "") ?? "").trim().slice(0, MAX_LINE);
|
|
35000
35060
|
}, "firstLine");
|
|
35001
35061
|
var pictureLane = /* @__PURE__ */ __name(async (store, query, { folderIds, source, limit, env, command, embedder }) => {
|
|
35002
|
-
const
|
|
35003
|
-
if (
|
|
35062
|
+
const words4 = plainWords(query);
|
|
35063
|
+
if (words4 === "" || source === "internal")
|
|
35004
35064
|
return {};
|
|
35005
35065
|
let vector;
|
|
35006
35066
|
try {
|
|
@@ -35009,7 +35069,7 @@ var pictureLane = /* @__PURE__ */ __name(async (store, query, { folderIds, sourc
|
|
|
35009
35069
|
...command === void 0 ? {} : { command }
|
|
35010
35070
|
});
|
|
35011
35071
|
try {
|
|
35012
|
-
vector = await use.embedQuery(
|
|
35072
|
+
vector = await use.embedQuery(words4);
|
|
35013
35073
|
} finally {
|
|
35014
35074
|
if (!embedder)
|
|
35015
35075
|
await use.close();
|
|
@@ -35090,13 +35150,13 @@ var filterRefs = /* @__PURE__ */ __name(async (store, narrowing, scope) => {
|
|
|
35090
35150
|
}
|
|
35091
35151
|
}, "filterRefs");
|
|
35092
35152
|
var notesTotal = /* @__PURE__ */ __name(async (store, text2, { exact, scope, shown, hasMore }, others, othersComplete) => {
|
|
35093
|
-
let
|
|
35153
|
+
let words4;
|
|
35094
35154
|
try {
|
|
35095
35155
|
const { root, stemmer } = await storeQuery(store, text2, {
|
|
35096
35156
|
exact,
|
|
35097
35157
|
...scope.timezone ? { timezone: scope.timezone } : {}
|
|
35098
35158
|
});
|
|
35099
|
-
|
|
35159
|
+
words4 = await store.notes.matchingRefs({
|
|
35100
35160
|
root,
|
|
35101
35161
|
limit: TOTAL_CAP,
|
|
35102
35162
|
...scope.folderIds ? { folderIds: scope.folderIds } : {},
|
|
@@ -35109,7 +35169,7 @@ var notesTotal = /* @__PURE__ */ __name(async (store, text2, { exact, scope, sho
|
|
|
35109
35169
|
return totalOf(void 0, shown, hasMore);
|
|
35110
35170
|
throw error;
|
|
35111
35171
|
}
|
|
35112
|
-
const count4 = (/* @__PURE__ */ new Set([...
|
|
35172
|
+
const count4 = (/* @__PURE__ */ new Set([...words4.refs, ...others])).size + (words4.hasMore ? 1 : 0);
|
|
35113
35173
|
return totalOf(count4, shown, hasMore, othersComplete);
|
|
35114
35174
|
}, "notesTotal");
|
|
35115
35175
|
var searchNotes = /* @__PURE__ */ __name(async (store, query, { limit = 20, offset = 0, tag, filter: expression, folderIds, withInternal, source: given, exact = false, discover = false, timezone, env, command, embedders, pictures: withPictures2 = false, pictureLimit = 5, pictureEmbedder } = {}) => {
|
|
@@ -35120,7 +35180,7 @@ var searchNotes = /* @__PURE__ */ __name(async (store, query, { limit = 20, offs
|
|
|
35120
35180
|
const filter = [expression ? `(${expression})` : "", label === void 0 ? "" : `tag:${label}`].filter(Boolean).join(" AND ") || void 0;
|
|
35121
35181
|
const lookup2 = discover && !exact ? questionLookup(query) : void 0;
|
|
35122
35182
|
const parsed = query.trim() ? parsedQuery(lookup2 === void 0 ? query : questionText(query), exact) : void 0;
|
|
35123
|
-
const
|
|
35183
|
+
const words4 = parsed === void 0 ? "" : meaningWords(parsed);
|
|
35124
35184
|
const narrowing = allOf([
|
|
35125
35185
|
...parsed === void 0 ? [] : [fieldsOfQuery2(parsed)].filter((node) => node !== void 0),
|
|
35126
35186
|
...filter === void 0 ? [] : [parsedQuery(filter)]
|
|
@@ -35141,7 +35201,7 @@ var searchNotes = /* @__PURE__ */ __name(async (store, query, { limit = 20, offs
|
|
|
35141
35201
|
let meaningComplete = true;
|
|
35142
35202
|
if (exact)
|
|
35143
35203
|
meaningSkipped = "--exact searches words as written";
|
|
35144
|
-
else if (
|
|
35204
|
+
else if (words4) {
|
|
35145
35205
|
const lane2 = {
|
|
35146
35206
|
command,
|
|
35147
35207
|
...env === void 0 ? {} : { env },
|
|
@@ -35155,10 +35215,10 @@ var searchNotes = /* @__PURE__ */ __name(async (store, query, { limit = 20, offs
|
|
|
35155
35215
|
const within = narrowing === void 0 ? void 0 : await filterRefs(store, narrowing, scope);
|
|
35156
35216
|
let nearest;
|
|
35157
35217
|
if (within === void 0) {
|
|
35158
|
-
nearest = await nearestNotes(store,
|
|
35218
|
+
nearest = await nearestNotes(store, words4, { ...lane2, limit: depth });
|
|
35159
35219
|
meaningComplete = nearest.length < depth;
|
|
35160
35220
|
} else {
|
|
35161
|
-
const ranked2 = within.length ? await nearestAmong(store,
|
|
35221
|
+
const ranked2 = within.length ? await nearestAmong(store, words4, within, lane2) : [];
|
|
35162
35222
|
meaningRefs = new Set(ranked2.map(({ ref }) => ref));
|
|
35163
35223
|
nearest = ranked2.slice(0, depth);
|
|
35164
35224
|
}
|
|
@@ -35232,7 +35292,7 @@ var searchNotes = /* @__PURE__ */ __name(async (store, query, { limit = 20, offs
|
|
|
35232
35292
|
title: note2.title,
|
|
35233
35293
|
...documentSource(note2, accounts, profiles, note2.source === "file" ? (await store.files.ofDocument(note2.ref))[0] : void 0),
|
|
35234
35294
|
updated_at: at,
|
|
35235
|
-
excerpt: firstLine(note2.text,
|
|
35295
|
+
excerpt: firstLine(note2.text, words4),
|
|
35236
35296
|
links,
|
|
35237
35297
|
found_by: foundBy,
|
|
35238
35298
|
...cosines.has(ref) ? { meaning_score: cosines.get(ref) } : {}
|
|
@@ -35256,7 +35316,7 @@ var searchNotes = /* @__PURE__ */ __name(async (store, query, { limit = 20, offs
|
|
|
35256
35316
|
if (record2.ref?.startsWith("note:") || record2.ref?.startsWith("document:"))
|
|
35257
35317
|
record2.name = (await store.notes.note(record2.ref).catch(() => void 0))?.title ?? record2.name;
|
|
35258
35318
|
}
|
|
35259
|
-
const lane = withPictures2 ? await pictureLane(store,
|
|
35319
|
+
const lane = withPictures2 ? await pictureLane(store, words4, {
|
|
35260
35320
|
folderIds,
|
|
35261
35321
|
source,
|
|
35262
35322
|
limit: pictureLimit,
|
|
@@ -35314,7 +35374,7 @@ var searchNotesOf = /* @__PURE__ */ __name(async (store, account, text2, { accou
|
|
|
35314
35374
|
};
|
|
35315
35375
|
}, "searchNotesOf");
|
|
35316
35376
|
|
|
35317
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35377
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/services/events-search.js
|
|
35318
35378
|
var MAX_EVENTS_OFFSET = 1e3;
|
|
35319
35379
|
var iso3 = /* @__PURE__ */ __name((at) => at === null ? null : new Date(at).toISOString(), "iso");
|
|
35320
35380
|
var accountIdsOf = /* @__PURE__ */ __name(async (store, accounts) => {
|
|
@@ -35339,11 +35399,11 @@ var foundEvent = /* @__PURE__ */ __name((hit, query, foundBy) => ({
|
|
|
35339
35399
|
found_by: foundBy
|
|
35340
35400
|
}), "foundEvent");
|
|
35341
35401
|
var CANDIDATES3 = 50;
|
|
35342
|
-
var nearestEvents = /* @__PURE__ */ __name(async (store,
|
|
35402
|
+
var nearestEvents = /* @__PURE__ */ __name(async (store, words4, { limit, accountIds, env, command, embedders }) => {
|
|
35343
35403
|
const { model, directory: directory2, key } = localModel(void 0, env, command);
|
|
35344
35404
|
if (!await store.calendar.embedded(key, accountIds ? { accountIds } : {}))
|
|
35345
35405
|
throw new CliError("not_found", `no event has vectors of ${model.id} yet, so only words were matched`);
|
|
35346
|
-
const [vector] = await withLocal(model, directory2, void 0, (embedder) => embedder.embed([
|
|
35406
|
+
const [vector] = await withLocal(model, directory2, void 0, (embedder) => embedder.embed([words4], "query"), embedders);
|
|
35347
35407
|
const floor = meaningFloor(key);
|
|
35348
35408
|
return (await store.calendar.nearest(key, vector, { limit, ...accountIds ? { accountIds } : {} })).filter(({ score }) => score > floor);
|
|
35349
35409
|
}, "nearestEvents");
|
|
@@ -35359,7 +35419,7 @@ var searchEvents = /* @__PURE__ */ __name(async (store, query, { limit = 20, off
|
|
|
35359
35419
|
const accountIds = accounts === void 0 ? void 0 : await accountIdsOf(store, accounts);
|
|
35360
35420
|
if (accountIds?.length === 0)
|
|
35361
35421
|
return { query, by: "words", hits: [], has_more: false };
|
|
35362
|
-
const
|
|
35422
|
+
const words4 = plainQueryWords(asked === void 0 ? query : questionText(query));
|
|
35363
35423
|
const window3 = offset + limit;
|
|
35364
35424
|
let meaningSkipped;
|
|
35365
35425
|
let meaning;
|
|
@@ -35367,11 +35427,11 @@ var searchEvents = /* @__PURE__ */ __name(async (store, query, { limit = 20, off
|
|
|
35367
35427
|
meaningSkipped = "--exact searches words as written";
|
|
35368
35428
|
else if (newest)
|
|
35369
35429
|
meaningSkipped = "newest first orders by time";
|
|
35370
|
-
else if (
|
|
35430
|
+
else if (words4 === void 0)
|
|
35371
35431
|
meaningSkipped = "the query has fields or operators, which meaning cannot follow";
|
|
35372
35432
|
else
|
|
35373
35433
|
try {
|
|
35374
|
-
meaning = await nearestEvents(store,
|
|
35434
|
+
meaning = await nearestEvents(store, words4, {
|
|
35375
35435
|
limit: Math.max(window3, CANDIDATES3),
|
|
35376
35436
|
...accountIds ? { accountIds } : {},
|
|
35377
35437
|
...env === void 0 ? {} : { env },
|
|
@@ -35431,7 +35491,7 @@ var searchEvents = /* @__PURE__ */ __name(async (store, query, { limit = 20, off
|
|
|
35431
35491
|
};
|
|
35432
35492
|
}, "searchEvents");
|
|
35433
35493
|
|
|
35434
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35494
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/services/search-all.js
|
|
35435
35495
|
var RESOURCES_SEARCHED = ["messages", "mail", "notes", "events"];
|
|
35436
35496
|
var skippable = /* @__PURE__ */ __name((error) => error instanceof CliError && (error.code === "validation_error" || error.code === "not_found"), "skippable");
|
|
35437
35497
|
var filtersBeside = /* @__PURE__ */ __name((text2) => {
|
|
@@ -35660,7 +35720,7 @@ var oneList = /* @__PURE__ */ __name((lists, cosines) => {
|
|
|
35660
35720
|
return [...place.values()].sort((a, b) => a.rank - b.rank || cosine(b.item.ref) - cosine(a.item.ref)).map(({ item: item2 }) => item2);
|
|
35661
35721
|
}, "oneList");
|
|
35662
35722
|
|
|
35663
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35723
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/services/search-all-meetings.js
|
|
35664
35724
|
var RESOURCES_SEARCHED_WITH_MEETINGS = [...RESOURCES_SEARCHED, "meetings"];
|
|
35665
35725
|
var whole2 = /* @__PURE__ */ __name((value, minimum, maximum, label) => {
|
|
35666
35726
|
if (!Number.isSafeInteger(value) || value < minimum || value > maximum)
|
|
@@ -35913,7 +35973,7 @@ var searchAllOfSource = /* @__PURE__ */ __name(async (store, account, source, re
|
|
|
35913
35973
|
return { ...found, skipped: [...skipped, ...empty2, ...unnamed, ...found.skipped] };
|
|
35914
35974
|
}, "searchAllOfSource");
|
|
35915
35975
|
|
|
35916
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35976
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/services/server-search.js
|
|
35917
35977
|
var SERVER_SEARCH_KEY = "messages.server-search";
|
|
35918
35978
|
var SERVER_BOUNDS = { timeMs: 5e3, perCall: 100, maxCalls: 3, textBytes: 262144 };
|
|
35919
35979
|
var DEFAULT_BACKEND = "both";
|
|
@@ -35961,8 +36021,8 @@ var branchesOf = /* @__PURE__ */ __name((node, account) => {
|
|
|
35961
36021
|
const should = node.clauses.filter(({ occur }) => occur === "should");
|
|
35962
36022
|
return should.length ? should.flatMap(({ node: node2 }) => branchesOf(node2, account)) : [{ words: [] }];
|
|
35963
36023
|
}, "branchesOf");
|
|
35964
|
-
var asQuery = /* @__PURE__ */ __name(({ words:
|
|
35965
|
-
text:
|
|
36024
|
+
var asQuery = /* @__PURE__ */ __name(({ words: words4, from, ...rest }) => ({
|
|
36025
|
+
text: words4.join(" "),
|
|
35966
36026
|
...rest,
|
|
35967
36027
|
...from !== void 0 && rest.chat !== void 0 ? { from } : {}
|
|
35968
36028
|
}), "asQuery");
|
|
@@ -36019,7 +36079,7 @@ var searchServer = /* @__PURE__ */ __name(async (deps, request) => {
|
|
|
36019
36079
|
return skip("other_accounts");
|
|
36020
36080
|
const all = branchesOf(execution.root, account).flatMap((branch) => merge(scoped, branch) ?? []);
|
|
36021
36081
|
const unique = [
|
|
36022
|
-
...new Map(all.filter(({ words:
|
|
36082
|
+
...new Map(all.filter(({ words: words4 }) => words4.length).map((branch) => [JSON.stringify(branch), branch])).values()
|
|
36023
36083
|
];
|
|
36024
36084
|
if (!unique.length)
|
|
36025
36085
|
return skip("no_words");
|
|
@@ -36102,7 +36162,7 @@ var searchServer = /* @__PURE__ */ __name(async (deps, request) => {
|
|
|
36102
36162
|
return { report, sources };
|
|
36103
36163
|
}, "searchServer");
|
|
36104
36164
|
|
|
36105
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36165
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/services/messages.js
|
|
36106
36166
|
var DELETE_AT_ONCE = 10;
|
|
36107
36167
|
var filesOf = /* @__PURE__ */ __name(({ attachments }) => {
|
|
36108
36168
|
const files = fileLinks(attachments);
|
|
@@ -36543,7 +36603,7 @@ var checkMediaOptions = /* @__PURE__ */ __name((messenger, asked, attachments) =
|
|
|
36543
36603
|
throw new CliError("validation_error", `${MEDIA_FLAGS[first2]} needs a --photo or --file`);
|
|
36544
36604
|
}, "checkMediaOptions");
|
|
36545
36605
|
|
|
36546
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36606
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/domain/channel-tags.js
|
|
36547
36607
|
var CHANNEL_TAG_RULES_VERSION = "keywords-v1";
|
|
36548
36608
|
var RULES = {
|
|
36549
36609
|
ai: [/\b(ai|gpt|llm|machine learning|artificial intelligence)\b/iu, /нейросет|искусственн/iu],
|
|
@@ -36558,7 +36618,7 @@ var classifyChannel = /* @__PURE__ */ __name((metadata) => Object.entries(RULES)
|
|
|
36558
36618
|
return fields.length ? [{ tag, score: fields.length / 3, fields }] : [];
|
|
36559
36619
|
}), "classifyChannel");
|
|
36560
36620
|
|
|
36561
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36621
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/services/metadata.js
|
|
36562
36622
|
var metadataService = /* @__PURE__ */ __name((deps) => {
|
|
36563
36623
|
const held = /* @__PURE__ */ __name(async (reference, { includeLeft = false } = {}) => {
|
|
36564
36624
|
const store = await deps.store();
|
|
@@ -36644,7 +36704,7 @@ var metadataService = /* @__PURE__ */ __name((deps) => {
|
|
|
36644
36704
|
};
|
|
36645
36705
|
}, "metadataService");
|
|
36646
36706
|
|
|
36647
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36707
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/moderation/check.js
|
|
36648
36708
|
var INVITE = /max\.ru\/join\/|(t|telegram)\.me\/(\+|joinchat\/)|tg:\/\/join/i;
|
|
36649
36709
|
var LINK2 = /https?:\/\/\S+/i;
|
|
36650
36710
|
var STRENGTH = { report: 0, delete: 1, remove: 2 };
|
|
@@ -36832,7 +36892,7 @@ var nextPoint = /* @__PURE__ */ __name((rows, found) => {
|
|
|
36832
36892
|
}, "nextPoint");
|
|
36833
36893
|
var someUndone = /* @__PURE__ */ __name((rows) => rows.some(undone), "someUndone");
|
|
36834
36894
|
|
|
36835
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36895
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/moderation/rules.js
|
|
36836
36896
|
import { existsSync, readFileSync as readFileSync2 } from "node:fs";
|
|
36837
36897
|
import { join as join11 } from "node:path";
|
|
36838
36898
|
var RULE_ACTIONS = ["report", "delete", "remove"];
|
|
@@ -36975,7 +37035,7 @@ var assign = /* @__PURE__ */ __name((rules, key, value) => {
|
|
|
36975
37035
|
return { ...rules, [head]: { ...rules[head], [tail]: value } };
|
|
36976
37036
|
}, "assign");
|
|
36977
37037
|
|
|
36978
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37038
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/moderation/run.js
|
|
36979
37039
|
var FIRST_LOOK_MS = 24 * 36e5;
|
|
36980
37040
|
var moderateWith = /* @__PURE__ */ __name(async (run) => {
|
|
36981
37041
|
const { chatId, title, rules, point, since, dryRun } = run;
|
|
@@ -37012,7 +37072,7 @@ var moderateWith = /* @__PURE__ */ __name(async (run) => {
|
|
|
37012
37072
|
return { chatId, rows, notes };
|
|
37013
37073
|
}, "moderateWith");
|
|
37014
37074
|
|
|
37015
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37075
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/services/moderation.js
|
|
37016
37076
|
var moderationService = /* @__PURE__ */ __name((deps) => {
|
|
37017
37077
|
const file2 = /* @__PURE__ */ __name(() => new ModerationRules(moderationPathFor(deps.messenger.app, deps.profile ?? "default", deps.env ?? process.env)), "file");
|
|
37018
37078
|
const group = /* @__PURE__ */ __name(async (chat) => {
|
|
@@ -37090,7 +37150,7 @@ var moderatorOf = /* @__PURE__ */ __name((adapter, deps) => ({
|
|
|
37090
37150
|
}, "removePerson")
|
|
37091
37151
|
}), "moderatorOf");
|
|
37092
37152
|
|
|
37093
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37153
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/services/private-people.js
|
|
37094
37154
|
var noteItem = /* @__PURE__ */ __name((provider, note2) => ({
|
|
37095
37155
|
id: note2.id,
|
|
37096
37156
|
contact: formatReference({ type: "contact", provider, id: note2.personId }),
|
|
@@ -37134,7 +37194,7 @@ var privatePeopleService = /* @__PURE__ */ __name((deps) => {
|
|
|
37134
37194
|
};
|
|
37135
37195
|
}, "privatePeopleService");
|
|
37136
37196
|
|
|
37137
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37197
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/services/rankings.js
|
|
37138
37198
|
var empty = /* @__PURE__ */ __name(() => ({
|
|
37139
37199
|
total: 0,
|
|
37140
37200
|
population: 0,
|
|
@@ -37390,7 +37450,7 @@ var rankingsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
37390
37450
|
}, "evidence")
|
|
37391
37451
|
}), "rankingsService");
|
|
37392
37452
|
|
|
37393
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37453
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/services/reply-stats.js
|
|
37394
37454
|
var FIELDS = ["date", "chat", "kind"];
|
|
37395
37455
|
var WAITING_TAIL = 100;
|
|
37396
37456
|
var plainOnly = /* @__PURE__ */ __name((text2, command) => {
|
|
@@ -37517,7 +37577,7 @@ var replyStatsService = /* @__PURE__ */ __name((deps) => {
|
|
|
37517
37577
|
};
|
|
37518
37578
|
}, "replyStatsService");
|
|
37519
37579
|
|
|
37520
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37580
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/services/searches.js
|
|
37521
37581
|
var savedSearchItem = /* @__PURE__ */ __name((one2) => ({
|
|
37522
37582
|
id: one2.id,
|
|
37523
37583
|
name: one2.name,
|
|
@@ -37563,14 +37623,14 @@ var named = /* @__PURE__ */ __name((search, check2) => {
|
|
|
37563
37623
|
throw new CliError(error.code, `${label}: ${error.message}`, error.details);
|
|
37564
37624
|
}
|
|
37565
37625
|
}, "named");
|
|
37566
|
-
var both = /* @__PURE__ */ __name((stored,
|
|
37626
|
+
var both = /* @__PURE__ */ __name((stored, words4) => ({
|
|
37567
37627
|
version: 1,
|
|
37568
37628
|
language: "lucene-v1",
|
|
37569
37629
|
root: {
|
|
37570
37630
|
kind: "boolean",
|
|
37571
37631
|
clauses: [
|
|
37572
37632
|
{ occur: "must", node: stored.root },
|
|
37573
|
-
{ occur: "must", node: parseLucene(
|
|
37633
|
+
{ occur: "must", node: parseLucene(words4, MESSAGE_PARSING).root }
|
|
37574
37634
|
],
|
|
37575
37635
|
span: { start: 0, end: 0 }
|
|
37576
37636
|
}
|
|
@@ -37611,7 +37671,7 @@ var searchesService = /* @__PURE__ */ __name((deps) => {
|
|
|
37611
37671
|
}), "history"),
|
|
37612
37672
|
delete: /* @__PURE__ */ __name((reference) => inStore(async (store) => store.searches.deleteSearch((await found(store, reference)).id)), "delete"),
|
|
37613
37673
|
clear: /* @__PURE__ */ __name(() => inStore(async (store) => ({ cleared: await store.searches.clearSearchHistory(MESSAGE_SEARCH_COMMANDS) })), "clear"),
|
|
37614
|
-
resolve: /* @__PURE__ */ __name((reference, { text:
|
|
37674
|
+
resolve: /* @__PURE__ */ __name((reference, { text: words4, ...typed }) => inStore(async (store) => {
|
|
37615
37675
|
const search = await found(store, reference);
|
|
37616
37676
|
const stored = search.params;
|
|
37617
37677
|
const inherited = { ...stored };
|
|
@@ -37632,7 +37692,7 @@ var searchesService = /* @__PURE__ */ __name((deps) => {
|
|
|
37632
37692
|
throw new CliError("validation_error", "the legacy search and --regex are gone; save it again as Lucene");
|
|
37633
37693
|
checked(stored);
|
|
37634
37694
|
});
|
|
37635
|
-
const extra =
|
|
37695
|
+
const extra = words4?.trim() ? words4.trim() : void 0;
|
|
37636
37696
|
if (extra !== void 0) {
|
|
37637
37697
|
if (params.ast !== void 0)
|
|
37638
37698
|
params.ast = both(validateAst(params.ast), extra);
|
|
@@ -37646,7 +37706,7 @@ var searchesService = /* @__PURE__ */ __name((deps) => {
|
|
|
37646
37706
|
};
|
|
37647
37707
|
}, "searchesService");
|
|
37648
37708
|
|
|
37649
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37709
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/services/tags.js
|
|
37650
37710
|
var TAGGING_QUERY = {
|
|
37651
37711
|
entity: "tagging",
|
|
37652
37712
|
backend: "sql",
|
|
@@ -37730,7 +37790,7 @@ var tagsService = /* @__PURE__ */ __name((deps) => {
|
|
|
37730
37790
|
};
|
|
37731
37791
|
}, "tagsService");
|
|
37732
37792
|
|
|
37733
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37793
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/services/topics.js
|
|
37734
37794
|
var actionOf = /* @__PURE__ */ __name(({ title, closed, pinned, hidden, icon }) => {
|
|
37735
37795
|
const set = [closed, pinned, hidden].filter((one2) => one2 !== void 0).length;
|
|
37736
37796
|
if (title !== void 0 || icon !== void 0 || set !== 1)
|
|
@@ -37929,7 +37989,7 @@ var topicsService = /* @__PURE__ */ __name((deps) => {
|
|
|
37929
37989
|
};
|
|
37930
37990
|
}, "topicsService");
|
|
37931
37991
|
|
|
37932
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37992
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/services/evidence.js
|
|
37933
37993
|
import { createHash as createHash11, randomUUID as randomUUID5 } from "node:crypto";
|
|
37934
37994
|
var hash2 = /* @__PURE__ */ __name((value) => createHash11("sha256").update(JSON.stringify(value)).digest("hex"), "hash");
|
|
37935
37995
|
var positive = /* @__PURE__ */ __name((value, name, minimum = 1) => {
|
|
@@ -38003,7 +38063,7 @@ var prepareEvidencePacket = /* @__PURE__ */ __name(({ kind, source, page, limits
|
|
|
38003
38063
|
return { ...content, id: randomUUID5(), fingerprint: hash2(content) };
|
|
38004
38064
|
}, "prepareEvidencePacket");
|
|
38005
38065
|
|
|
38006
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38066
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/services/evidence-read.js
|
|
38007
38067
|
var readEvidencePacket = /* @__PURE__ */ __name(async (store, account, { chat, limit, before: before2 }, messenger = {}) => {
|
|
38008
38068
|
if (!Number.isSafeInteger(limit) || limit < 1 || limit > 100)
|
|
38009
38069
|
throw new CliError("validation_error", "evidence message limit must be an integer from 1 to 100");
|
|
@@ -38023,7 +38083,7 @@ var readEvidencePacket = /* @__PURE__ */ __name(async (store, account, { chat, l
|
|
|
38023
38083
|
return { ...packet, nextBeforeId: older && last ? last.id : null };
|
|
38024
38084
|
}, "readEvidencePacket");
|
|
38025
38085
|
|
|
38026
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38086
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/services/meeting-hit-search.js
|
|
38027
38087
|
var refreshMeetingIndex = /* @__PURE__ */ __name(async (meetings, accountId, signal) => {
|
|
38028
38088
|
let before2 = Number.POSITIVE_INFINITY;
|
|
38029
38089
|
for (; ; ) {
|
|
@@ -38085,7 +38145,7 @@ var searchMeetingHits = /* @__PURE__ */ __name(async (store, query, request, opt
|
|
|
38085
38145
|
return { ...result, selection };
|
|
38086
38146
|
}, "searchMeetingHits");
|
|
38087
38147
|
|
|
38088
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38148
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/services/meeting-project-discovery.js
|
|
38089
38149
|
import { createHash as createHash12 } from "node:crypto";
|
|
38090
38150
|
var scopeKeys = [
|
|
38091
38151
|
"accountId",
|
|
@@ -38220,7 +38280,7 @@ var readMeetingProjectDiscovery = /* @__PURE__ */ __name(async (ports, projectNa
|
|
|
38220
38280
|
};
|
|
38221
38281
|
}, "readMeetingProjectDiscovery");
|
|
38222
38282
|
|
|
38223
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38283
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/services/meeting-hit-context.js
|
|
38224
38284
|
import { createHash as createHash13 } from "node:crypto";
|
|
38225
38285
|
var contextCue = /* @__PURE__ */ __name((cue) => ({
|
|
38226
38286
|
ref: cue.reference,
|
|
@@ -38338,7 +38398,7 @@ var readMeetingHitContext = /* @__PURE__ */ __name(async (store, accountId, refe
|
|
|
38338
38398
|
return { ...packet, fingerprint: createHash13("sha256").update(JSON.stringify(packet)).digest("hex") };
|
|
38339
38399
|
}, "readMeetingHitContext");
|
|
38340
38400
|
|
|
38341
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38401
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/services/meeting-passage-format.js
|
|
38342
38402
|
var visible = /* @__PURE__ */ __name((text2) => text2.replace(/[\p{Cc}\p{Cf}]/gu, (value) => value === "\n" || value === " " ? value : `\\u{${value.codePointAt(0)?.toString(16)}}`), "visible");
|
|
38343
38403
|
var markdown = /* @__PURE__ */ __name((text2) => visible(text2).replaceAll("&", "&").replaceAll("<", "<").replaceAll(">", ">").replace(/[\\`*_[\]#|~]/g, "\\$&"), "markdown");
|
|
38344
38404
|
var timestamp = /* @__PURE__ */ __name((ms) => {
|
|
@@ -38414,7 +38474,7 @@ var readMeetingPassage = /* @__PURE__ */ __name(async (store, accountId, referen
|
|
|
38414
38474
|
return { packet, content };
|
|
38415
38475
|
}, "readMeetingPassage");
|
|
38416
38476
|
|
|
38417
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38477
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/context/communication-selection.js
|
|
38418
38478
|
var communicationFields = {
|
|
38419
38479
|
sources: pipe(array(strictObject({
|
|
38420
38480
|
id: pipe(string(), regex(/^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$/)),
|
|
@@ -38434,8 +38494,8 @@ var communicationRequest = /* @__PURE__ */ __name((value, preparationAfter) => {
|
|
|
38434
38494
|
throw new CliError("validation_error", `invalid communications.${field}`);
|
|
38435
38495
|
}
|
|
38436
38496
|
const input = parsed.output;
|
|
38437
|
-
const
|
|
38438
|
-
if (Buffer.byteLength(input.query) > 2048 || !
|
|
38497
|
+
const words4 = input.query.match(/[\p{L}\p{N}]+/gu) ?? [];
|
|
38498
|
+
if (Buffer.byteLength(input.query) > 2048 || !words4.length || words4.length > 16)
|
|
38439
38499
|
throw new CliError("validation_error", "communications.query needs 1\u201316 literal words within 2048 UTF-8 bytes");
|
|
38440
38500
|
const before2 = input.before ?? preparationAfter;
|
|
38441
38501
|
const after = input.after ?? Math.max(0, before2 - 14 * 864e5);
|
|
@@ -38446,7 +38506,7 @@ var communicationRequest = /* @__PURE__ */ __name((value, preparationAfter) => {
|
|
|
38446
38506
|
return { ...input, after, before: before2 };
|
|
38447
38507
|
}, "communicationRequest");
|
|
38448
38508
|
|
|
38449
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38509
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/services/meeting-preparation-validation.js
|
|
38450
38510
|
var MEETING_PREPARATION_LIMITS = {
|
|
38451
38511
|
meetings: { min: 1, max: 20, default: 5 },
|
|
38452
38512
|
cues: { min: 1, max: 100, default: 10 },
|
|
@@ -38532,7 +38592,7 @@ var preparationRequest = /* @__PURE__ */ __name((accountId, externalId, original
|
|
|
38532
38592
|
return { ...input, history };
|
|
38533
38593
|
}, "preparationRequest");
|
|
38534
38594
|
|
|
38535
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38595
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/services/meeting-communications-preparation.js
|
|
38536
38596
|
var readPreparationCommunications = /* @__PURE__ */ __name(async (plan, signal) => {
|
|
38537
38597
|
const section = {
|
|
38538
38598
|
readUsage: plan.reader.usage(),
|
|
@@ -38637,7 +38697,7 @@ var appendPreparationCommunications = /* @__PURE__ */ __name((result, read2) =>
|
|
|
38637
38697
|
result.knowledge.coverage.otherSources = "see-communications";
|
|
38638
38698
|
}, "appendPreparationCommunications");
|
|
38639
38699
|
|
|
38640
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38700
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/services/meeting-communications-selection.js
|
|
38641
38701
|
var captureCommunicationSelections = /* @__PURE__ */ __name((port) => {
|
|
38642
38702
|
if (port === void 0)
|
|
38643
38703
|
return void 0;
|
|
@@ -38742,7 +38802,7 @@ var validatePreparationCommunications = /* @__PURE__ */ __name((section, request
|
|
|
38742
38802
|
}
|
|
38743
38803
|
}, "validatePreparationCommunications");
|
|
38744
38804
|
|
|
38745
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38805
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/services/meeting-knowledge-preparation.js
|
|
38746
38806
|
var invalid5 = /* @__PURE__ */ __name(() => {
|
|
38747
38807
|
throw new CliError("invalid_response", "Preparation knowledge returned an invalid selection");
|
|
38748
38808
|
}, "invalid");
|
|
@@ -38811,7 +38871,7 @@ var appendKnowledgePreparation = /* @__PURE__ */ __name(async (store, result, in
|
|
|
38811
38871
|
}
|
|
38812
38872
|
}, "appendKnowledgePreparation");
|
|
38813
38873
|
|
|
38814
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38874
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/services/meeting-notes-preparation.js
|
|
38815
38875
|
var invalid6 = /* @__PURE__ */ __name(() => {
|
|
38816
38876
|
throw new CliError("invalid_response", "Preparation notes returned an invalid selection");
|
|
38817
38877
|
}, "invalid");
|
|
@@ -38885,7 +38945,7 @@ var appendNotesPreparation = /* @__PURE__ */ __name(async (store, result, input)
|
|
|
38885
38945
|
}
|
|
38886
38946
|
}, "appendNotesPreparation");
|
|
38887
38947
|
|
|
38888
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38948
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/services/meeting-project-preparation.js
|
|
38889
38949
|
var PAGE_LIMIT = 4;
|
|
38890
38950
|
var size2 = /* @__PURE__ */ __name((value) => Buffer.byteLength(JSON.stringify(value), "utf8"), "size");
|
|
38891
38951
|
var appendProjectPreparation = /* @__PURE__ */ __name(async (ports, result, input) => {
|
|
@@ -38935,7 +38995,7 @@ var appendProjectPreparation = /* @__PURE__ */ __name(async (ports, result, inpu
|
|
|
38935
38995
|
}
|
|
38936
38996
|
}, "appendProjectPreparation");
|
|
38937
38997
|
|
|
38938
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38998
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/services/meeting-related-preparation.js
|
|
38939
38999
|
var appendRelatedPreparation = /* @__PURE__ */ __name(async (store, result, input) => {
|
|
38940
39000
|
if (!result.series || !result.items.length || result.coverage.outputLimited)
|
|
38941
39001
|
return;
|
|
@@ -39007,7 +39067,7 @@ var appendRelatedPreparation = /* @__PURE__ */ __name(async (store, result, inpu
|
|
|
39007
39067
|
}
|
|
39008
39068
|
}, "appendRelatedPreparation");
|
|
39009
39069
|
|
|
39010
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39070
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/services/meeting-preparation.js
|
|
39011
39071
|
var size3 = /* @__PURE__ */ __name((value) => Buffer.byteLength(JSON.stringify(value), "utf8"), "size");
|
|
39012
39072
|
var createMeetingPreparationService = /* @__PURE__ */ __name((scope, accountId, ports) => {
|
|
39013
39073
|
const fixed = snapshotMeetingScope(scope);
|
|
@@ -39145,7 +39205,7 @@ var createMeetingPreparationService = /* @__PURE__ */ __name((scope, accountId,
|
|
|
39145
39205
|
};
|
|
39146
39206
|
}, "createMeetingPreparationService");
|
|
39147
39207
|
|
|
39148
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39208
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/services/package-upgrade.js
|
|
39149
39209
|
var upgradePackage = /* @__PURE__ */ __name(async ({ current, command, packageName, check: check2 }, ports) => {
|
|
39150
39210
|
const installer = ports.installer();
|
|
39151
39211
|
const argv = updateCommand(installer, packageName);
|
|
@@ -39210,7 +39270,7 @@ var dayAfter = /* @__PURE__ */ __name((published) => {
|
|
|
39210
39270
|
return Number.isNaN(time) ? null : new Date(time + 24 * 60 * 60 * 1e3).toISOString();
|
|
39211
39271
|
}, "dayAfter");
|
|
39212
39272
|
|
|
39213
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39273
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/services/index.js
|
|
39214
39274
|
var servicesFor = /* @__PURE__ */ __name((deps) => {
|
|
39215
39275
|
const pictures = picturesService(deps);
|
|
39216
39276
|
const base = {
|
|
@@ -39247,7 +39307,7 @@ var servicesFor = /* @__PURE__ */ __name((deps) => {
|
|
|
39247
39307
|
return deps.messenger.services ? { ...base, ...deps.messenger.services(base, deps) } : base;
|
|
39248
39308
|
}, "servicesFor");
|
|
39249
39309
|
|
|
39250
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39310
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/background/relay.js
|
|
39251
39311
|
import { createHash as createHash14 } from "node:crypto";
|
|
39252
39312
|
import { chmodSync, lstatSync, mkdirSync as mkdirSync3, rmSync } from "node:fs";
|
|
39253
39313
|
import { createConnection, createServer } from "node:net";
|
|
@@ -39395,7 +39455,7 @@ var serve = /* @__PURE__ */ __name(async (socket, request, stdin, signal, run) =
|
|
|
39395
39455
|
}
|
|
39396
39456
|
}, "serve");
|
|
39397
39457
|
|
|
39398
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39458
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-relay.js
|
|
39399
39459
|
var lentConnection = /* @__PURE__ */ __name((connection, watchers) => throughWrapper(connection, {
|
|
39400
39460
|
close: /* @__PURE__ */ __name(async () => {
|
|
39401
39461
|
}, "close"),
|
|
@@ -39485,6 +39545,7 @@ export {
|
|
|
39485
39545
|
syncsOneChat,
|
|
39486
39546
|
throughWrapper,
|
|
39487
39547
|
capability,
|
|
39548
|
+
withTimeLimit,
|
|
39488
39549
|
newSendId,
|
|
39489
39550
|
newOperationId,
|
|
39490
39551
|
batchProgress,
|