@wirecat/bitrix24-cli 0.2.0 → 0.4.0
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/CHANGELOG.md +60 -0
- package/dist/api-keys.d.ts +30 -8
- package/dist/api-keys.d.ts.map +1 -1
- package/dist/api-keys.js +81 -18
- package/dist/api-keys.js.map +1 -1
- package/dist/bin/b24.js +2 -2
- package/dist/bitrix/methods.d.ts.map +1 -1
- package/dist/bitrix/methods.js +7 -3
- package/dist/bitrix/methods.js.map +1 -1
- package/dist/bitrix/transport.d.ts +4 -7
- package/dist/bitrix/transport.d.ts.map +1 -1
- package/dist/bitrix/transport.js +12 -16
- package/dist/bitrix/transport.js.map +1 -1
- package/dist/bundle/{all-profiles-QJ444GSX.js → all-profiles-MBQZCOVK.js} +6 -6
- package/dist/bundle/{anthropic-RHRAVHC2.js → anthropic-QCYLKSJJ.js} +4 -4
- package/dist/bundle/{app-server-QIT6S7AZ.js → app-server-FSLZ2Y6N.js} +42 -42
- package/dist/bundle/b24.js +12 -12
- package/dist/bundle/{bun-H6RSODZ3.js → bun-UYRQXF33.js} +2 -2
- package/dist/bundle/{bun-sqlite-BO4LTQHX.js → bun-sqlite-GXME7EMT.js} +3 -3
- package/dist/bundle/{chunk-MBDK4YXG.js → chunk-2D5W4LWL.js} +1 -1
- package/dist/bundle/{chunk-U5ACMCAQ.js → chunk-2IZ6GGU2.js} +151 -151
- package/dist/bundle/{chunk-VEWWAGTD.js → chunk-4OVK5XW2.js} +8 -8
- package/dist/bundle/{chunk-45AKJVKV.js → chunk-66QLBRIT.js} +1 -1
- package/dist/bundle/{chunk-P364PLIK.js → chunk-6BLVBGRK.js} +9 -9
- package/dist/bundle/{chunk-FOTREPNS.js → chunk-6ERX33NC.js} +8 -8
- package/dist/bundle/{chunk-LRGYKOCP.js → chunk-AMVRNYD6.js} +1 -1
- package/dist/bundle/{chunk-YZ5LHE5Q.js → chunk-AOUNT22U.js} +2 -2
- package/dist/bundle/{chunk-ZDQQCXFG.js → chunk-B252WFK7.js} +13 -13
- package/dist/bundle/{chunk-WKRQ44EH.js → chunk-BHZ5VDDY.js} +13 -13
- package/dist/bundle/{chunk-ZIAQPTUS.js → chunk-COOOXDKZ.js} +3 -3
- package/dist/bundle/{chunk-GDFNH33E.js → chunk-CR3TLGM4.js} +9 -4
- package/dist/bundle/{chunk-D5S6QV6R.js → chunk-D2IRPC5I.js} +6 -6
- package/dist/bundle/{chunk-POC3V3AO.js → chunk-DQIQIZQS.js} +297 -256
- package/dist/bundle/{chunk-QGMDQ2PM.js → chunk-EIGPMMGC.js} +3 -3
- package/dist/bundle/{chunk-WTPMJYMD.js → chunk-ELBOQHJA.js} +45 -45
- package/dist/bundle/{chunk-LSPIOT6Z.js → chunk-EQLWU6ZB.js} +7 -7
- package/dist/bundle/{chunk-WII44RXN.js → chunk-F5NH3UJQ.js} +2 -2
- package/dist/bundle/{chunk-HAXNUIGQ.js → chunk-GTDOUP6L.js} +26 -23
- package/dist/bundle/{chunk-QQXH2OPB.js → chunk-GTFRSYYJ.js} +17 -12
- package/dist/bundle/{chunk-H2ADPPSH.js → chunk-GTMCLOYY.js} +670 -465
- package/dist/bundle/{chunk-7GRZAKBB.js → chunk-IF27EQN6.js} +2 -2
- package/dist/bundle/{chunk-FZL7F5NR.js → chunk-IWEWDVZ6.js} +22 -22
- package/dist/bundle/{program-UYX5362I.js → chunk-J7OMY6EO.js} +16672 -18336
- package/dist/bundle/{chunk-QIPTIUMJ.js → chunk-JAS3OZSP.js} +4 -4
- package/dist/bundle/{chunk-OTD2ZRXD.js → chunk-JB7OXYAU.js} +4 -4
- package/dist/bundle/{chunk-ZEW4P6AH.js → chunk-K7XWCZF6.js} +8 -8
- package/dist/bundle/{chunk-YYO7D2MO.js → chunk-LAYH344Y.js} +28 -28
- package/dist/bundle/{chunk-K3UIB6ZF.js → chunk-M5XMAUGZ.js} +2 -2
- package/dist/bundle/{chunk-2KCZ7BKW.js → chunk-MPI2FDJ4.js} +11 -11
- package/dist/bundle/{chunk-HGL63O5V.js → chunk-MY6FAZRA.js} +2 -2
- package/dist/bundle/{chunk-QC53QBNC.js → chunk-NDSOBIR3.js} +3 -3
- package/dist/bundle/{chunk-XRFJWHY5.js → chunk-NEK7LKC6.js} +4 -4
- package/dist/bundle/{chunk-2SNUMZ7S.js → chunk-NKLLI4B2.js} +6 -6
- package/dist/bundle/{chunk-QMPN6WKD.js → chunk-NWKXMMON.js} +100 -81
- package/dist/bundle/{chunk-P33NDCDI.js → chunk-O7FVOICH.js} +1 -1
- package/dist/bundle/{chunk-SFRNX2TI.js → chunk-OCRCVLZQ.js} +1 -1
- package/dist/bundle/{chunk-TE3FR6MI.js → chunk-OKDC6CLH.js} +5 -5
- package/dist/bundle/{chunk-DTXERR44.js → chunk-OWILUBCI.js} +2 -2
- package/dist/bundle/{chunk-CXL33BFL.js → chunk-OYLJHX74.js} +1 -1
- package/dist/bundle/{chunk-6WY72XVQ.js → chunk-POUSZWMP.js} +4 -4
- package/dist/bundle/{chunk-N6FLBXZS.js → chunk-Q4ILKTV4.js} +3 -3
- package/dist/bundle/{chunk-FLUEXJ4X.js → chunk-Q7Z5IMVY.js} +1 -1
- package/dist/bundle/{chunk-XJXONOB5.js → chunk-QVZSLBR6.js} +1 -1
- package/dist/bundle/{chunk-IRV2PCQ2.js → chunk-SBW2Y7AZ.js} +26 -26
- package/dist/bundle/{chunk-XNHSPHUN.js → chunk-UCLWWSQK.js} +2 -2
- package/dist/bundle/{chunk-BCF7P4FZ.js → chunk-UH56WLDS.js} +8 -8
- package/dist/bundle/{chunk-ZGZT5S6B.js → chunk-VMQL4GNH.js} +55 -55
- package/dist/bundle/{chunk-XD4FRDSL.js → chunk-VTIUWHZ3.js} +5 -5
- package/dist/bundle/{chunk-SGRYYE4X.js → chunk-WJRBX5QB.js} +4 -4
- package/dist/bundle/{chunk-VL6SPMZV.js → chunk-XG6QKS7L.js} +5 -5
- package/dist/bundle/{chunk-RRJNNPR4.js → chunk-XKQZLR2X.js} +1 -1
- package/dist/bundle/{chunk-QSNROIJL.js → chunk-XOPMSWFC.js} +9 -9
- package/dist/bundle/{chunk-EVYSBZ3I.js → chunk-XR5SUCAC.js} +4 -4
- package/dist/bundle/{chunk-PH5FZX6E.js → chunk-Y5PPMGCS.js} +2 -2
- package/dist/bundle/{chunk-EXOOKUEA.js → chunk-YFZXI3NN.js} +2 -2
- package/dist/bundle/{chunk-CNNEA2M4.js → chunk-ZU4HXKEW.js} +3 -3
- package/dist/bundle/command-contract-UON4EIC4.js +30 -0
- package/dist/bundle/{decode-5ZPLTYV6.js → decode-IF2F2SFC.js} +3 -3
- package/dist/bundle/{echarts-J6LAPIX7.js → echarts-WDDVEJO2.js} +2 -2
- package/dist/bundle/{embed-YG5LDHME.js → embed-VDUGYEAR.js} +4 -4
- package/dist/bundle/{embedder-7FNUA5OZ.js → embedder-DUN62H3Z.js} +7 -7
- package/dist/bundle/{first-run-JPZNWIJN.js → first-run-NDGYBQEN.js} +8 -8
- package/dist/bundle/first-screen-QAVKP5RF.js +28 -0
- package/dist/bundle/{instructions-AXWTQHMR.js → instructions-JIIKWS7X.js} +1 -1
- package/dist/bundle/{mcp-7F46P6AM.js → mcp-33JX6KP4.js} +2 -2
- package/dist/bundle/{mcp-HUD6UH5X.js → mcp-57EQ6QJO.js} +58 -47
- package/dist/bundle/mcp-PFJER2DE.js +87 -0
- package/dist/bundle/{node-CWKAIOEM.js → node-K57WT42O.js} +2 -2
- package/dist/bundle/{node-sqlite-LSEKVRDA.js → node-sqlite-KS6ORRIG.js} +4 -4
- package/dist/bundle/{oauth-THYNLRLD.js → oauth-SLSANN37.js} +5 -5
- package/dist/bundle/{open-E47QYKFC.js → open-WJPHADEX.js} +3 -3
- package/dist/bundle/{openai-EWSGC3BC.js → openai-HXB3GTOD.js} +12 -12
- package/dist/bundle/{process-WKTEA3WE.js → process-P73TFAXT.js} +1 -1
- package/dist/bundle/program-7BMG5NIN.js +2250 -0
- package/dist/bundle/{prompt-CAQ7QR3U.js → prompt-WDPV37R4.js} +3 -3
- package/dist/bundle/{recognize-6KGHNZC3.js → recognize-CXIFL6IV.js} +2 -2
- package/dist/bundle/{remote-3UO2WDC3.js → remote-Q4VJ4OQW.js} +5 -5
- package/dist/bundle/{rerank-2JVDPZBX.js → rerank-SUFYK63I.js} +5 -5
- package/dist/bundle/{serve-ES7AG5IK.js → serve-B7PGFOC2.js} +7 -7
- package/dist/bundle/server-4DBNJWW6.js +58 -0
- package/dist/bundle/server-OKE7SXJ2.js +45 -0
- package/dist/bundle/{state-7NH5G4XJ.js → state-EZCCXQV7.js} +4 -4
- package/dist/bundle/{store-7O4JQD2Z.js → store-MZ7JBYR6.js} +12 -12
- package/dist/bundle/store-maintenance-command-T5QZMENJ.js +47 -0
- package/dist/commands/api.d.ts.map +1 -1
- package/dist/commands/api.js +57 -7
- package/dist/commands/api.js.map +1 -1
- package/dist/commands/crm-writes.d.ts.map +1 -1
- package/dist/commands/crm-writes.js +24 -8
- package/dist/commands/crm-writes.js.map +1 -1
- package/dist/commands/crm.d.ts.map +1 -1
- package/dist/commands/crm.js +29 -3
- package/dist/commands/crm.js.map +1 -1
- package/dist/commands/fields.d.ts +3 -0
- package/dist/commands/fields.d.ts.map +1 -0
- package/dist/commands/fields.js +45 -0
- package/dist/commands/fields.js.map +1 -0
- package/dist/commands/write.d.ts +6 -1
- package/dist/commands/write.d.ts.map +1 -1
- package/dist/commands/write.js +7 -5
- package/dist/commands/write.js.map +1 -1
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +2 -1
- package/dist/config.js.map +1 -1
- package/dist/crm/conditions.js +1 -1
- package/dist/crm/conditions.js.map +1 -1
- package/dist/crm/custom-query.d.ts +19 -0
- package/dist/crm/custom-query.d.ts.map +1 -0
- package/dist/crm/custom-query.js +79 -0
- package/dist/crm/custom-query.js.map +1 -0
- package/dist/crm/deal.d.ts +7 -3
- package/dist/crm/deal.d.ts.map +1 -1
- package/dist/crm/deal.js +3 -3
- package/dist/crm/deal.js.map +1 -1
- package/dist/crm/fields.d.ts +44 -0
- package/dist/crm/fields.d.ts.map +1 -0
- package/dist/crm/fields.js +143 -0
- package/dist/crm/fields.js.map +1 -0
- package/dist/crm/items.d.ts +9 -3
- package/dist/crm/items.d.ts.map +1 -1
- package/dist/crm/items.js +27 -6
- package/dist/crm/items.js.map +1 -1
- package/dist/crm/lead.d.ts +7 -3
- package/dist/crm/lead.d.ts.map +1 -1
- package/dist/crm/lead.js +3 -3
- package/dist/crm/lead.js.map +1 -1
- package/dist/crm/organization.d.ts +7 -3
- package/dist/crm/organization.d.ts.map +1 -1
- package/dist/crm/organization.js +3 -3
- package/dist/crm/organization.js.map +1 -1
- package/dist/crm/person.d.ts +7 -3
- package/dist/crm/person.d.ts.map +1 -1
- package/dist/crm/person.js +3 -3
- package/dist/crm/person.js.map +1 -1
- package/dist/crm/values.d.ts +12 -1
- package/dist/crm/values.d.ts.map +1 -1
- package/dist/crm/values.js +12 -2
- package/dist/crm/values.js.map +1 -1
- package/dist/mcp.d.ts.map +1 -1
- package/dist/mcp.js +4 -1
- package/dist/mcp.js.map +1 -1
- package/dist/program.d.ts.map +1 -1
- package/dist/program.js +4 -1
- package/dist/program.js.map +1 -1
- package/dist/reasons.d.ts.map +1 -1
- package/dist/reasons.js +6 -1
- package/dist/reasons.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +3 -3
- package/skills/bitrix24-cli/SKILL.md +8 -3
- package/dist/bundle/command-contract-OKQOE6G4.js +0 -30
- package/dist/bundle/first-screen-VQM4MTS7.js +0 -28
- package/dist/bundle/mcp-J5R5A65I.js +0 -87
- package/dist/bundle/server-5LE5LNUQ.js +0 -45
- package/dist/bundle/server-BU4VBM6S.js +0 -58
- package/dist/bundle/store-maintenance-command-UDVGEY2D.js +0 -47
- /package/dist/bundle/{chunk-4PDYYS5K.js → chunk-NDTJE6JQ.js} +0 -0
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
sameOrdinaryFile,
|
|
9
9
|
syncDirectory,
|
|
10
10
|
writeFileAtomic
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-B252WFK7.js";
|
|
12
12
|
import {
|
|
13
13
|
Command,
|
|
14
14
|
DEFAULT_IMAGE_MODEL,
|
|
@@ -48,17 +48,17 @@ import {
|
|
|
48
48
|
typedCommand,
|
|
49
49
|
vectorModelKey,
|
|
50
50
|
withAttempt
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-2IZ6GGU2.js";
|
|
52
52
|
import {
|
|
53
53
|
isCliFailure
|
|
54
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-6ERX33NC.js";
|
|
55
55
|
import {
|
|
56
56
|
isNewer,
|
|
57
57
|
updateCommand
|
|
58
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-XR5SUCAC.js";
|
|
59
59
|
import {
|
|
60
60
|
remoteKey
|
|
61
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-EIGPMMGC.js";
|
|
62
62
|
import {
|
|
63
63
|
Unzip,
|
|
64
64
|
UnzipInflate,
|
|
@@ -69,14 +69,14 @@ import {
|
|
|
69
69
|
placedText,
|
|
70
70
|
runEmbedders,
|
|
71
71
|
textModelsDirectory
|
|
72
|
-
} from "./chunk-
|
|
72
|
+
} from "./chunk-NKLLI4B2.js";
|
|
73
73
|
import {
|
|
74
74
|
installFiles,
|
|
75
75
|
megabytes
|
|
76
|
-
} from "./chunk-
|
|
76
|
+
} from "./chunk-WJRBX5QB.js";
|
|
77
77
|
import {
|
|
78
78
|
MAX_MODEL_IMAGE_BYTES
|
|
79
|
-
} from "./chunk-
|
|
79
|
+
} from "./chunk-M5XMAUGZ.js";
|
|
80
80
|
import {
|
|
81
81
|
MAX_ACTIONS,
|
|
82
82
|
ModerationRules,
|
|
@@ -94,7 +94,7 @@ import {
|
|
|
94
94
|
someUndone,
|
|
95
95
|
validateFormattedText,
|
|
96
96
|
visibleFormattedText
|
|
97
|
-
} from "./chunk-
|
|
97
|
+
} from "./chunk-UH56WLDS.js";
|
|
98
98
|
import {
|
|
99
99
|
AGENDA_COLUMNS,
|
|
100
100
|
CHAT_COLUMNS,
|
|
@@ -157,27 +157,27 @@ import {
|
|
|
157
157
|
validateAst,
|
|
158
158
|
validateFields,
|
|
159
159
|
withoutField
|
|
160
|
-
} from "./chunk-
|
|
160
|
+
} from "./chunk-GTMCLOYY.js";
|
|
161
161
|
import {
|
|
162
162
|
TASK_KINDS,
|
|
163
163
|
TASK_STATES,
|
|
164
164
|
createTaskService,
|
|
165
165
|
isClosedState
|
|
166
|
-
} from "./chunk-
|
|
166
|
+
} from "./chunk-6BLVBGRK.js";
|
|
167
167
|
import {
|
|
168
168
|
DEFAULT_STEMMERS,
|
|
169
169
|
createStemmer,
|
|
170
170
|
fold,
|
|
171
171
|
normalize
|
|
172
|
-
} from "./chunk-
|
|
172
|
+
} from "./chunk-4OVK5XW2.js";
|
|
173
173
|
import {
|
|
174
174
|
DEFAULT_TASK_CATEGORIES,
|
|
175
175
|
FALLBACK_CATEGORY
|
|
176
|
-
} from "./chunk-
|
|
176
|
+
} from "./chunk-OKDC6CLH.js";
|
|
177
177
|
import {
|
|
178
178
|
storePath,
|
|
179
179
|
wirecatDirectory
|
|
180
|
-
} from "./chunk-
|
|
180
|
+
} from "./chunk-OWILUBCI.js";
|
|
181
181
|
import {
|
|
182
182
|
COUNTER_FIELDS,
|
|
183
183
|
INTERNAL_NOTES,
|
|
@@ -197,7 +197,7 @@ import {
|
|
|
197
197
|
providerNamed,
|
|
198
198
|
rankingOptions,
|
|
199
199
|
rankingQuestion
|
|
200
|
-
} from "./chunk-
|
|
200
|
+
} from "./chunk-GTFRSYYJ.js";
|
|
201
201
|
import {
|
|
202
202
|
EVENT_QUERY,
|
|
203
203
|
MEETING_PROJECT_EVIDENCE_QUERY,
|
|
@@ -238,7 +238,7 @@ import {
|
|
|
238
238
|
validateQuery,
|
|
239
239
|
walkQuery,
|
|
240
240
|
zonedMoment
|
|
241
|
-
} from "./chunk-
|
|
241
|
+
} from "./chunk-VMQL4GNH.js";
|
|
242
242
|
import {
|
|
243
243
|
CliError,
|
|
244
244
|
array,
|
|
@@ -259,7 +259,7 @@ import {
|
|
|
259
259
|
singleLine,
|
|
260
260
|
strictObject,
|
|
261
261
|
string
|
|
262
|
-
} from "./chunk-
|
|
262
|
+
} from "./chunk-SBW2Y7AZ.js";
|
|
263
263
|
import {
|
|
264
264
|
importFrom,
|
|
265
265
|
resolveFrom
|
|
@@ -16879,10 +16879,10 @@ var require_lib3 = __commonJS({
|
|
|
16879
16879
|
}
|
|
16880
16880
|
});
|
|
16881
16881
|
|
|
16882
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16882
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/ports/traits.js
|
|
16883
16883
|
var syncsOneChat = /* @__PURE__ */ __name((messenger) => messenger.history !== "store" || messenger.historyOnDemand === true, "syncsOneChat");
|
|
16884
16884
|
|
|
16885
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16885
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/conversations/link.js
|
|
16886
16886
|
var RULES_VERSION = 5;
|
|
16887
16887
|
var LOOK_BACK = 50;
|
|
16888
16888
|
var SAME_SENDER_WITHIN = 10;
|
|
@@ -16972,7 +16972,7 @@ var latest = /* @__PURE__ */ __name((window3, matches) => {
|
|
|
16972
16972
|
var sameThread = /* @__PURE__ */ __name((a, b) => a.threadId === b.threadId, "sameThread");
|
|
16973
16973
|
var link = /* @__PURE__ */ __name((message, parentId, source, kind, confidence, method) => ({ messageId: message.id, parentId, source, kind, confidence, method }), "link");
|
|
16974
16974
|
|
|
16975
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16975
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/cli/messenger/lacks.js
|
|
16976
16976
|
var COMMAND_NEEDS = {
|
|
16977
16977
|
"account update": ["updateProfile", "change the profile"],
|
|
16978
16978
|
"account sessions list": ["sessions", "list the account's sessions"],
|
|
@@ -17022,7 +17022,7 @@ var hideNever = /* @__PURE__ */ __name((messenger, group) => {
|
|
|
17022
17022
|
return group;
|
|
17023
17023
|
}, "hideNever");
|
|
17024
17024
|
|
|
17025
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17025
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/services/members-audit.js
|
|
17026
17026
|
var AUDIT_PAGE = 200;
|
|
17027
17027
|
var AUDIT_BUDGET = 10;
|
|
17028
17028
|
var AUDIT_PAUSE_MS = 1e3;
|
|
@@ -17102,7 +17102,7 @@ var burstJoins = /* @__PURE__ */ __name((members) => {
|
|
|
17102
17102
|
return found;
|
|
17103
17103
|
}, "burstJoins");
|
|
17104
17104
|
|
|
17105
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17105
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/meetings/cli/query-options.js
|
|
17106
17106
|
var queryWordsAfterOptions = /* @__PURE__ */ __name((command) => {
|
|
17107
17107
|
command.allowUnknownOption();
|
|
17108
17108
|
const parse = command.parseOptions.bind(command);
|
|
@@ -17122,7 +17122,7 @@ var queryWordsAfterOptions = /* @__PURE__ */ __name((command) => {
|
|
|
17122
17122
|
return command;
|
|
17123
17123
|
}, "queryWordsAfterOptions");
|
|
17124
17124
|
|
|
17125
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17125
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/meetings/cli/passage.js
|
|
17126
17126
|
var count = /* @__PURE__ */ __name((value) => {
|
|
17127
17127
|
if (!/^(0|[1-9]\d*)$/.test(value) || !Number.isSafeInteger(Number(value)))
|
|
17128
17128
|
throw new CliError("validation_error", "expected a nonnegative safe integer");
|
|
@@ -17164,7 +17164,7 @@ var addMeetingPassageCommandDefinition = /* @__PURE__ */ __name((program, deps)
|
|
|
17164
17164
|
var createMeetingPassageCommand = sharedCommand(createMeetingPassageCommandDefinition);
|
|
17165
17165
|
var addMeetingPassageCommand = sharedCommand(addMeetingPassageCommandDefinition);
|
|
17166
17166
|
|
|
17167
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17167
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/meetings/cli/project-evidence.js
|
|
17168
17168
|
var integer = /* @__PURE__ */ __name((value) => {
|
|
17169
17169
|
if (!/^[1-9]\d*$/.test(value) || !Number.isSafeInteger(Number(value)))
|
|
17170
17170
|
throw new CliError("validation_error", "expected a positive safe integer");
|
|
@@ -17187,7 +17187,7 @@ ${fieldsHelp(MEETING_PROJECT_EVIDENCE_QUERY)}`).option("--limit <n>", "hits in o
|
|
|
17187
17187
|
}, "addMeetingProjectEvidenceCommandDefinition");
|
|
17188
17188
|
var addMeetingProjectEvidenceCommand = sharedCommand(addMeetingProjectEvidenceCommandDefinition);
|
|
17189
17189
|
|
|
17190
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17190
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/meetings/cli/search.js
|
|
17191
17191
|
var ZONED = /(?:Z|[+-]\d{2}:?\d{2})$/i;
|
|
17192
17192
|
var moment = /* @__PURE__ */ __name((flag, end, readIn) => (value) => {
|
|
17193
17193
|
const zone = timezoneOf();
|
|
@@ -17273,7 +17273,7 @@ var addMeetingSearchCommandDefinition = /* @__PURE__ */ __name((program, deps) =
|
|
|
17273
17273
|
var createMeetingSearchCommand = sharedCommand(createMeetingSearchCommandDefinition);
|
|
17274
17274
|
var addMeetingSearchCommand = sharedCommand(addMeetingSearchCommandDefinition);
|
|
17275
17275
|
|
|
17276
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17276
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/meetings/cli/index.js
|
|
17277
17277
|
var integer3 = /* @__PURE__ */ __name((text2) => {
|
|
17278
17278
|
if (!/^[1-9]\d*$/.test(text2) || !Number.isSafeInteger(Number(text2)))
|
|
17279
17279
|
throw new InvalidArgumentError("expected a positive integer");
|
|
@@ -17405,7 +17405,7 @@ ${fieldsHelp(EVENT_QUERY, MEETING_QUERY_GUIDE)}`);
|
|
|
17405
17405
|
}, "addMeetingCommandsDefinition");
|
|
17406
17406
|
var addMeetingCommands = sharedCommand(addMeetingCommandsDefinition);
|
|
17407
17407
|
|
|
17408
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17408
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/cli/list-query.js
|
|
17409
17409
|
var LIST_QUERY_GUIDE = "https://github.com/WireCatLabs/cli-core/blob/main/docs/search/query-language.md";
|
|
17410
17410
|
var QUERY_ARGUMENT = "field:value terms that narrow the list \u2014 the fields are below";
|
|
17411
17411
|
var withQuery = /* @__PURE__ */ __name((command, registry) => {
|
|
@@ -17544,7 +17544,7 @@ var termField = /* @__PURE__ */ __name((name, type, example, more = {}) => nativ
|
|
|
17544
17544
|
var queryHelp = /* @__PURE__ */ __name((registry) => `
|
|
17545
17545
|
${fieldsHelp(registry, LIST_QUERY_GUIDE)}`, "queryHelp");
|
|
17546
17546
|
|
|
17547
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17547
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/cli/paging.js
|
|
17548
17548
|
var positiveCount = /* @__PURE__ */ __name((flag) => (value) => {
|
|
17549
17549
|
if (!/^\d+$/.test(value.trim()) || Number(value) < 1)
|
|
17550
17550
|
throw new CliError("validation_error", `${flag} takes a whole number from 1 upwards, not "${value}"`);
|
|
@@ -17553,7 +17553,7 @@ var positiveCount = /* @__PURE__ */ __name((flag) => (value) => {
|
|
|
17553
17553
|
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");
|
|
17554
17554
|
var window = /* @__PURE__ */ __name(({ limit, page, all }) => all ? { offset: 0 } : { limit, offset: (page - 1) * limit }, "window");
|
|
17555
17555
|
|
|
17556
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17556
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/cli/messenger/chat-answers.js
|
|
17557
17557
|
var defined = /* @__PURE__ */ __name((record2) => Object.fromEntries(Object.entries(record2).filter(([, value]) => value !== void 0)), "defined");
|
|
17558
17558
|
var chatRef = /* @__PURE__ */ __name((account, chat) => formatReference({ type: "chat", provider: account.provider, account: account.account, chat }), "chatRef");
|
|
17559
17559
|
var settingsOf = /* @__PURE__ */ __name((settings) => defined({
|
|
@@ -17815,7 +17815,7 @@ var sessionAnswer = /* @__PURE__ */ __name(({ current, client, device, location,
|
|
|
17815
17815
|
...createdAt === void 0 ? {} : { created_at: createdAt }
|
|
17816
17816
|
}), "sessionAnswer");
|
|
17817
17817
|
|
|
17818
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17818
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/services/deps.js
|
|
17819
17819
|
var accountStore = /* @__PURE__ */ __name(async (deps) => (await deps.store()).forAccount(await deps.account()), "accountStore");
|
|
17820
17820
|
var crossAccount = /* @__PURE__ */ __name((deps, _reason) => deps.store(), "crossAccount");
|
|
17821
17821
|
var NO_LOCAL_STORE = "this answer comes from the messenger, not from the local store";
|
|
@@ -17879,7 +17879,7 @@ var storedDeps = /* @__PURE__ */ __name((messenger, store, account, guard) => ({
|
|
|
17879
17879
|
}), "storedDeps");
|
|
17880
17880
|
var storeModeDeps = /* @__PURE__ */ __name((messenger, store, account, guard) => ({ ...storedDeps(messenger, store, account, guard), offline: false, reads: "store" }), "storeModeDeps");
|
|
17881
17881
|
|
|
17882
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17882
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/ports/messenger.js
|
|
17883
17883
|
var throughWrapper = /* @__PURE__ */ __name((inner, handled, wrap = (_, call) => call) => new Proxy(handled, {
|
|
17884
17884
|
get: /* @__PURE__ */ __name((own, key) => {
|
|
17885
17885
|
if (key in own)
|
|
@@ -17896,12 +17896,12 @@ var capability = /* @__PURE__ */ __name((adapter, method, what) => {
|
|
|
17896
17896
|
return found.bind(adapter);
|
|
17897
17897
|
}, "capability");
|
|
17898
17898
|
|
|
17899
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17899
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/sends/send-id.js
|
|
17900
17900
|
import { randomBytes } from "node:crypto";
|
|
17901
17901
|
var newSendId = /* @__PURE__ */ __name(() => randomBytes(8).readBigInt64BE().toString(), "newSendId");
|
|
17902
17902
|
var newOperationId = newSendId;
|
|
17903
17903
|
|
|
17904
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17904
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/services/questions.js
|
|
17905
17905
|
var LINKS = /https?:\/\/\S+/g;
|
|
17906
17906
|
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");
|
|
17907
17907
|
var questions = /* @__PURE__ */ __name((messages, { answerers: answerers2, asker = "others" }) => {
|
|
@@ -17931,7 +17931,7 @@ var questions = /* @__PURE__ */ __name((messages, { answerers: answerers2, asker
|
|
|
17931
17931
|
});
|
|
17932
17932
|
}, "questions");
|
|
17933
17933
|
|
|
17934
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17934
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/services/task-categories.js
|
|
17935
17935
|
var names = /* @__PURE__ */ __name((categories) => categories.map(({ name }) => name).join(", "), "names");
|
|
17936
17936
|
var taskCategoryOf = /* @__PURE__ */ __name((categories = DEFAULT_TASK_CATEGORIES, flag = "--category") => (typed) => {
|
|
17937
17937
|
const name = typed.trim().toLowerCase();
|
|
@@ -17965,7 +17965,7 @@ var hitsByList = /* @__PURE__ */ __name((text2, categories) => {
|
|
|
17965
17965
|
const stem = stemmersOf();
|
|
17966
17966
|
const english = stem.english.stemTokens(text2);
|
|
17967
17967
|
const spanish = readsSpanish(text2) ? stem.spanish.stemTokens(text2) : [];
|
|
17968
|
-
const
|
|
17968
|
+
const counted2 = [];
|
|
17969
17969
|
for (const triggers of triggerStems(categories)) {
|
|
17970
17970
|
const hit = /* @__PURE__ */ new Set();
|
|
17971
17971
|
english.forEach((word, at) => {
|
|
@@ -17975,20 +17975,20 @@ var hitsByList = /* @__PURE__ */ __name((text2, categories) => {
|
|
|
17975
17975
|
else if (other !== void 0 && triggers.spanish.has(other))
|
|
17976
17976
|
hit.add(other);
|
|
17977
17977
|
});
|
|
17978
|
-
|
|
17978
|
+
counted2.push({ name: triggers.name, hits: hit.size });
|
|
17979
17979
|
}
|
|
17980
|
-
return
|
|
17980
|
+
return counted2;
|
|
17981
17981
|
}, "hitsByList");
|
|
17982
17982
|
var listsHit = /* @__PURE__ */ __name((text2, categories) => hitsByList(text2, categories).filter(({ hits }) => hits > 0).map(({ name }) => name), "listsHit");
|
|
17983
17983
|
var categorize = /* @__PURE__ */ __name((text2, categories = DEFAULT_TASK_CATEGORIES) => {
|
|
17984
17984
|
let best = { name: FALLBACK_CATEGORY, hits: 0 };
|
|
17985
|
-
for (const
|
|
17986
|
-
if (
|
|
17987
|
-
best =
|
|
17985
|
+
for (const counted2 of hitsByList(text2, categories))
|
|
17986
|
+
if (counted2.hits > best.hits)
|
|
17987
|
+
best = counted2;
|
|
17988
17988
|
return best.name;
|
|
17989
17989
|
}, "categorize");
|
|
17990
17990
|
|
|
17991
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17991
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/services/task-rules.js
|
|
17992
17992
|
var taskAccount = /* @__PURE__ */ __name(({ provider, account }) => `${provider}:${account}`, "taskAccount");
|
|
17993
17993
|
var RULES_IN = {
|
|
17994
17994
|
dialog: "all",
|
|
@@ -18194,7 +18194,7 @@ var applyTaskRulesToChats = /* @__PURE__ */ __name(async (store, account, chatId
|
|
|
18194
18194
|
return passes;
|
|
18195
18195
|
}, "applyTaskRulesToChats");
|
|
18196
18196
|
|
|
18197
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18197
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/services/moment.js
|
|
18198
18198
|
var AGO = /^(\d+)(m|h|d)$/;
|
|
18199
18199
|
var AGO_MS = { m: 6e4, h: 36e5, d: 864e5 };
|
|
18200
18200
|
var DATE = /^\d{4}-\d{2}-\d{2}/;
|
|
@@ -18234,7 +18234,7 @@ var dateWindow = /* @__PURE__ */ __name(({ sinceTime, untilTime, zone, now = Dat
|
|
|
18234
18234
|
};
|
|
18235
18235
|
}, "dateWindow");
|
|
18236
18236
|
|
|
18237
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18237
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/services/patience.js
|
|
18238
18238
|
import { setTimeout as sleep } from "node:timers/promises";
|
|
18239
18239
|
var LONGEST_WAIT_MS = 5 * 60 * 1e3;
|
|
18240
18240
|
var patiently = /* @__PURE__ */ __name(async (request, note2, stop) => {
|
|
@@ -18257,10 +18257,10 @@ var patiently = /* @__PURE__ */ __name(async (request, note2, stop) => {
|
|
|
18257
18257
|
}
|
|
18258
18258
|
}, "patiently");
|
|
18259
18259
|
|
|
18260
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18260
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/services/archive.js
|
|
18261
18261
|
import { setTimeout as sleep2 } from "node:timers/promises";
|
|
18262
18262
|
|
|
18263
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18263
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/services/backfill-estimate.js
|
|
18264
18264
|
var REQUEST_MS = 400;
|
|
18265
18265
|
var estimateBackfill = /* @__PURE__ */ __name(({ ranges, held, newest, page, maxPages, pauseMs }) => {
|
|
18266
18266
|
const lowest = ranges[0];
|
|
@@ -18283,13 +18283,13 @@ var estimateBackfill = /* @__PURE__ */ __name(({ ranges, held, newest, page, max
|
|
|
18283
18283
|
};
|
|
18284
18284
|
}, "estimateBackfill");
|
|
18285
18285
|
|
|
18286
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18286
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/domain/recovery.js
|
|
18287
18287
|
var withRecovery = /* @__PURE__ */ __name((error) => ({
|
|
18288
18288
|
...error,
|
|
18289
18289
|
retryable: typeof error.retryable === "boolean" ? error.retryable : error.code === "rate_limited" || error.status === 429
|
|
18290
18290
|
}), "withRecovery");
|
|
18291
18291
|
|
|
18292
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18292
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/services/batch.js
|
|
18293
18293
|
var actionable = /* @__PURE__ */ __name((error) => {
|
|
18294
18294
|
if (isCliFailure(error))
|
|
18295
18295
|
return withRecovery({ code: error.code, message: error.message, ...error.details });
|
|
@@ -18372,7 +18372,7 @@ var mergeBatches = /* @__PURE__ */ __name((a, b) => {
|
|
|
18372
18372
|
};
|
|
18373
18373
|
}, "mergeBatches");
|
|
18374
18374
|
|
|
18375
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18375
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/services/message-resolution.js
|
|
18376
18376
|
var readChatId = /* @__PURE__ */ __name(async (deps, reference, store, account) => {
|
|
18377
18377
|
if (deps.reads !== "store")
|
|
18378
18378
|
return keptChatId(deps.messenger, reference, store, account);
|
|
@@ -18531,7 +18531,7 @@ var senderAmong = /* @__PURE__ */ __name(async (store, accounts, reference) => {
|
|
|
18531
18531
|
}
|
|
18532
18532
|
}, "senderAmong");
|
|
18533
18533
|
|
|
18534
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18534
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/images/context/index.js
|
|
18535
18535
|
var CONTEXT_MESSAGES = 3;
|
|
18536
18536
|
var CONTEXT_MINUTES = 10;
|
|
18537
18537
|
var MAX_CHARS = 1200;
|
|
@@ -18555,12 +18555,12 @@ var context = {
|
|
|
18555
18555
|
}, "describe")
|
|
18556
18556
|
};
|
|
18557
18557
|
|
|
18558
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18558
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/images/registry.js
|
|
18559
18559
|
var BUILT_INS = [context];
|
|
18560
18560
|
var providers = [...BUILT_INS];
|
|
18561
18561
|
var registeredImageProviders = /* @__PURE__ */ __name(() => providers, "registeredImageProviders");
|
|
18562
18562
|
|
|
18563
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18563
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/services/conversations.js
|
|
18564
18564
|
var READ_PAGE = 5e3;
|
|
18565
18565
|
var CHAIN = 50;
|
|
18566
18566
|
var CONVERSATION_QUERY = {
|
|
@@ -18712,7 +18712,7 @@ var sized = /* @__PURE__ */ __name((size2) => {
|
|
|
18712
18712
|
return size2;
|
|
18713
18713
|
}, "sized");
|
|
18714
18714
|
|
|
18715
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18715
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/services/embeddings-maintenance.js
|
|
18716
18716
|
var REFRESH_BOUNDS = { maxChats: 20, maxChunks: 2e3 };
|
|
18717
18717
|
var MESSAGE_PAGE = 5e3;
|
|
18718
18718
|
var PER_SESSION = 8;
|
|
@@ -18731,7 +18731,7 @@ var embeddingTarget = /* @__PURE__ */ __name((deps, choice = DEFAULT_TEXT_MODEL)
|
|
|
18731
18731
|
price: remote.price,
|
|
18732
18732
|
installed: true,
|
|
18733
18733
|
perBatch: PER_REQUEST * concurrency,
|
|
18734
|
-
open: /* @__PURE__ */ __name(async () => (await import("./remote-
|
|
18734
|
+
open: /* @__PURE__ */ __name(async () => (await import("./remote-Q4VJ4OQW.js")).openRemote(remote, apiKey, { concurrency }), "open")
|
|
18735
18735
|
};
|
|
18736
18736
|
}
|
|
18737
18737
|
const model = textModel(choice);
|
|
@@ -18748,7 +18748,7 @@ var embeddingTarget = /* @__PURE__ */ __name((deps, choice = DEFAULT_TEXT_MODEL)
|
|
|
18748
18748
|
if (!isTextModelInstalled(model, directory2))
|
|
18749
18749
|
throw notDownloaded(model.id);
|
|
18750
18750
|
if (apart) {
|
|
18751
|
-
const { openProcess } = await import("./process-
|
|
18751
|
+
const { openProcess } = await import("./process-P73TFAXT.js");
|
|
18752
18752
|
return openProcess(model, directory2, { threads: threads ?? defaultThreads() });
|
|
18753
18753
|
}
|
|
18754
18754
|
return openEmbedder(model, directory2, { threads: threads ?? defaultThreads() });
|
|
@@ -19037,7 +19037,7 @@ var shaped = /* @__PURE__ */ __name(({ chatId, builtAt, algorithmVersion, pendin
|
|
|
19037
19037
|
return { ...one, state };
|
|
19038
19038
|
}, "shaped");
|
|
19039
19039
|
|
|
19040
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19040
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/services/search-catchup.js
|
|
19041
19041
|
var CATCH_UP_BOUNDS = { maxChunks: 500, maxMessages: 1e4, timeMs: 3e4 };
|
|
19042
19042
|
var validateCatchUpBounds = /* @__PURE__ */ __name((options) => {
|
|
19043
19043
|
for (const [key, value, maximum] of [
|
|
@@ -19090,7 +19090,7 @@ var catchUpSearch = /* @__PURE__ */ __name(async (deps, chat, options, signal, c
|
|
|
19090
19090
|
}
|
|
19091
19091
|
}, "catchUpSearch");
|
|
19092
19092
|
|
|
19093
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19093
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/services/archive.js
|
|
19094
19094
|
var pushed = /* @__PURE__ */ __name((deps, what) => {
|
|
19095
19095
|
if (deps.reads === "store") {
|
|
19096
19096
|
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`);
|
|
@@ -19456,7 +19456,7 @@ var timeOfKey = /* @__PURE__ */ __name(async (store, account, chatId, key, byTim
|
|
|
19456
19456
|
return message?.timestamp ?? fallback;
|
|
19457
19457
|
}, "timeOfKey");
|
|
19458
19458
|
|
|
19459
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19459
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/botcheck/check.js
|
|
19460
19460
|
var DAY_MS = 864e5;
|
|
19461
19461
|
var NEW_DAYS = 30;
|
|
19462
19462
|
var SAME_TEXT_MIN = 20;
|
|
@@ -19533,7 +19533,7 @@ var scorePerson = /* @__PURE__ */ __name(({ subject, provider, activity, photos,
|
|
|
19533
19533
|
};
|
|
19534
19534
|
}, "scorePerson");
|
|
19535
19535
|
|
|
19536
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19536
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/http/time-limit.js
|
|
19537
19537
|
var timeLimit = /* @__PURE__ */ __name((ms) => {
|
|
19538
19538
|
const controller = new AbortController();
|
|
19539
19539
|
const timer = setTimeout(() => controller.abort(new DOMException("The operation timed out.", "TimeoutError")), ms);
|
|
@@ -19549,7 +19549,7 @@ var withTimeLimit = /* @__PURE__ */ __name(async (ms, run) => {
|
|
|
19549
19549
|
}
|
|
19550
19550
|
}, "withTimeLimit");
|
|
19551
19551
|
|
|
19552
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19552
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/botcheck/registries.js
|
|
19553
19553
|
var REGISTRIES = {
|
|
19554
19554
|
cas: { title: "Combot Anti-Spam (CAS)", docs: "https://cas.chat/api" },
|
|
19555
19555
|
lols: { title: "lols.bot", docs: "https://api.lols.bot/lols-bot.json" }
|
|
@@ -19636,7 +19636,7 @@ var notCovered = /* @__PURE__ */ __name((messenger, now = /* @__PURE__ */ new Da
|
|
|
19636
19636
|
detail: `lists Telegram accounts only, not ${messenger} ones`
|
|
19637
19637
|
})), "notCovered");
|
|
19638
19638
|
|
|
19639
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19639
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/botcheck/service.js
|
|
19640
19640
|
var ACTIVITY_MESSAGES = 1e3;
|
|
19641
19641
|
var botCheckService = /* @__PURE__ */ __name((deps) => {
|
|
19642
19642
|
const subjectOf = /* @__PURE__ */ __name(async (reference) => {
|
|
@@ -19724,7 +19724,7 @@ var botCheckService = /* @__PURE__ */ __name((deps) => {
|
|
|
19724
19724
|
};
|
|
19725
19725
|
}, "botCheckService");
|
|
19726
19726
|
|
|
19727
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19727
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/domain/thread.js
|
|
19728
19728
|
var threadIdOf = /* @__PURE__ */ __name((value) => {
|
|
19729
19729
|
if (value === void 0)
|
|
19730
19730
|
return void 0;
|
|
@@ -19734,7 +19734,7 @@ var threadIdOf = /* @__PURE__ */ __name((value) => {
|
|
|
19734
19734
|
return id2;
|
|
19735
19735
|
}, "threadIdOf");
|
|
19736
19736
|
|
|
19737
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19737
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/services/chat-stats.js
|
|
19738
19738
|
var TOP_POSTS = 5;
|
|
19739
19739
|
var JOINS = /* @__PURE__ */ new Set(["join", "add"]);
|
|
19740
19740
|
var LEAVES = /* @__PURE__ */ new Set(["leave", "remove"]);
|
|
@@ -19851,7 +19851,7 @@ var median = /* @__PURE__ */ __name((values) => {
|
|
|
19851
19851
|
return Math.round(sorted.length % 2 === 0 ? ((sorted[middle - 1] ?? upper) + upper) / 2 : upper);
|
|
19852
19852
|
}, "median");
|
|
19853
19853
|
|
|
19854
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19854
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/services/member-history.js
|
|
19855
19855
|
var memberEvents = /* @__PURE__ */ __name((stays, revisions, since = 0) => {
|
|
19856
19856
|
const events = [];
|
|
19857
19857
|
for (const stay of stays) {
|
|
@@ -19883,7 +19883,7 @@ var memberEvents = /* @__PURE__ */ __name((stays, revisions, since = 0) => {
|
|
|
19883
19883
|
return events.filter(({ at }) => Date.parse(at) >= since).sort((a, b) => Date.parse(a.at) - Date.parse(b.at) || a.id.localeCompare(b.id));
|
|
19884
19884
|
}, "memberEvents");
|
|
19885
19885
|
|
|
19886
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19886
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/services/chats.js
|
|
19887
19887
|
var EVENTS_DAYS = 7;
|
|
19888
19888
|
var TRACKED_DAYS = 30;
|
|
19889
19889
|
var STATS_PAGE = 1e3;
|
|
@@ -20001,8 +20001,8 @@ var chatsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
20001
20001
|
});
|
|
20002
20002
|
const counts = await store.roster.memberCounts(chatId, { since: new Date(from).toISOString().slice(0, 10) });
|
|
20003
20003
|
const known2 = unrecorded ? { ...stats, complete: false, membersUnrecorded: true } : stats;
|
|
20004
|
-
const
|
|
20005
|
-
return completeness.state === "complete" || !syncsOneChat(deps.messenger) ?
|
|
20004
|
+
const counted2 = counts.length > 0 ? { ...known2, memberCounts: counts } : known2;
|
|
20005
|
+
return completeness.state === "complete" || !syncsOneChat(deps.messenger) ? counted2 : { ...counted2, fetch: typedCommand(deps.messenger.app.command, `messages sync ${chatId}`) };
|
|
20006
20006
|
}, "stats"),
|
|
20007
20007
|
sendAs: /* @__PURE__ */ __name(async (chat) => {
|
|
20008
20008
|
if (deps.offline) {
|
|
@@ -20178,7 +20178,7 @@ var storedMembers = /* @__PURE__ */ __name(async (store, chatId) => {
|
|
|
20178
20178
|
return members.length === 0 ? null : members;
|
|
20179
20179
|
}, "storedMembers");
|
|
20180
20180
|
|
|
20181
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20181
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/services/inbox.js
|
|
20182
20182
|
var INBOX_CHATS = 20;
|
|
20183
20183
|
var REVIEW_DAYS = 3;
|
|
20184
20184
|
var UNANSWERED_HOURS = 24;
|
|
@@ -20386,7 +20386,7 @@ var inboxService = /* @__PURE__ */ __name((deps) => {
|
|
|
20386
20386
|
};
|
|
20387
20387
|
}, "inboxService");
|
|
20388
20388
|
|
|
20389
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20389
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/services/person-context.js
|
|
20390
20390
|
var CONTEXT_MESSAGES2 = 10;
|
|
20391
20391
|
var CONTEXT_BYTES = 64 * 1024;
|
|
20392
20392
|
var toContext = /* @__PURE__ */ __name((key, message, chatTitle2) => ({
|
|
@@ -20647,10 +20647,10 @@ var personMessages = /* @__PURE__ */ __name(async (store, asked, reference, { ch
|
|
|
20647
20647
|
};
|
|
20648
20648
|
}, "personMessages");
|
|
20649
20649
|
|
|
20650
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20650
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/services/meeting-evidence.js
|
|
20651
20651
|
import { createHash } from "node:crypto";
|
|
20652
20652
|
|
|
20653
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20653
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/services/meeting-reference.js
|
|
20654
20654
|
var missing2 = /* @__PURE__ */ __name(() => new CliError("not_found", "the meeting evidence is unavailable for this account"), "missing");
|
|
20655
20655
|
var authorizedMeetingMetadata = /* @__PURE__ */ __name(async (store, accountId, reference, options = {}) => {
|
|
20656
20656
|
const parsed = parseMeetingReference(reference);
|
|
@@ -20668,7 +20668,7 @@ var authorizedMeetingMetadata = /* @__PURE__ */ __name(async (store, accountId,
|
|
|
20668
20668
|
return { parsed, meeting };
|
|
20669
20669
|
}, "authorizedMeetingMetadata");
|
|
20670
20670
|
|
|
20671
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20671
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/services/meeting-evidence.js
|
|
20672
20672
|
var hash = /* @__PURE__ */ __name((value) => createHash("sha256").update(JSON.stringify(value)).digest("hex"), "hash");
|
|
20673
20673
|
var checkMeetingCancelled = /* @__PURE__ */ __name((signal) => {
|
|
20674
20674
|
if (signal?.aborted)
|
|
@@ -20867,7 +20867,7 @@ var readMeetingEvidence = /* @__PURE__ */ __name(async (store, accountId, refere
|
|
|
20867
20867
|
return { ...packet, fingerprint: hash(packet) };
|
|
20868
20868
|
}, "readMeetingEvidence");
|
|
20869
20869
|
|
|
20870
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20870
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/services/person-meeting-context.js
|
|
20871
20871
|
var personMeetingContext = /* @__PURE__ */ __name(async (store, personReference, options) => {
|
|
20872
20872
|
const { meetings = 10, cues = 5, bytes: bytes2 = 64 * 1024, scanLimit = 1e3, since, signal } = options;
|
|
20873
20873
|
const requestedAccounts = options.accountIds;
|
|
@@ -20966,7 +20966,7 @@ var personMeetingContext = /* @__PURE__ */ __name(async (store, personReference,
|
|
|
20966
20966
|
};
|
|
20967
20967
|
}, "personMeetingContext");
|
|
20968
20968
|
|
|
20969
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20969
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/services/person-preparation.js
|
|
20970
20970
|
var PREPARE_BYTES = 96 * 1024;
|
|
20971
20971
|
var MEETINGS = 5;
|
|
20972
20972
|
var CUES = 3;
|
|
@@ -21083,7 +21083,7 @@ var meetingsOf = /* @__PURE__ */ __name(async (store, uid, stored, since, left)
|
|
|
21083
21083
|
}
|
|
21084
21084
|
}, "meetingsOf");
|
|
21085
21085
|
|
|
21086
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21086
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/services/person-profile.js
|
|
21087
21087
|
var personProfile = /* @__PURE__ */ __name(async (deps, person, known2) => {
|
|
21088
21088
|
const online = deps.offline ? void 0 : await deps.connection();
|
|
21089
21089
|
const held = await storeIfOpen(deps);
|
|
@@ -21153,7 +21153,7 @@ var quiet = /* @__PURE__ */ __name((facts) => facts.chats.map(({ id: id2, title,
|
|
|
21153
21153
|
complete: false
|
|
21154
21154
|
})), "quiet");
|
|
21155
21155
|
|
|
21156
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21156
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/services/person-timeline.js
|
|
21157
21157
|
var TIMELINE_ITEMS = 50;
|
|
21158
21158
|
var TIMELINE_MAX = 500;
|
|
21159
21159
|
var SCOPES = ["personal", "work"];
|
|
@@ -21208,7 +21208,7 @@ var personTimeline = /* @__PURE__ */ __name(async (store, asked, reference, { sc
|
|
|
21208
21208
|
};
|
|
21209
21209
|
}, "personTimeline");
|
|
21210
21210
|
|
|
21211
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21211
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/services/people.js
|
|
21212
21212
|
var peopleService = /* @__PURE__ */ __name((deps) => {
|
|
21213
21213
|
const localCard = /* @__PURE__ */ __name(async (card, includeNotes = false) => {
|
|
21214
21214
|
const held = await storeIfOpen(deps);
|
|
@@ -21435,10 +21435,10 @@ var withoutPhone = /* @__PURE__ */ __name((answer) => {
|
|
|
21435
21435
|
return rest;
|
|
21436
21436
|
}, "withoutPhone");
|
|
21437
21437
|
|
|
21438
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21438
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/store/sqlite/document-transfer/snapshot.js
|
|
21439
21439
|
var MAX_BYTES = 16 * 1024 * 1024;
|
|
21440
21440
|
|
|
21441
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21441
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/services/task-stats.js
|
|
21442
21442
|
var TASK_STATS_BY = ["chat", "meeting", "project"];
|
|
21443
21443
|
var PERIOD_FIELD = "created";
|
|
21444
21444
|
var refuseNestedPeriod = /* @__PURE__ */ __name((node, top = true) => {
|
|
@@ -21541,7 +21541,7 @@ var meetingNames = /* @__PURE__ */ __name(async (store, groups) => {
|
|
|
21541
21541
|
}));
|
|
21542
21542
|
}, "meetingNames");
|
|
21543
21543
|
|
|
21544
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21544
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/services/task-tag-filters.js
|
|
21545
21545
|
var taskTagFilters = /* @__PURE__ */ __name(async (store, query) => {
|
|
21546
21546
|
const tags = /* @__PURE__ */ new Map();
|
|
21547
21547
|
for (const node of query ? walkQuery(query.root) : [])
|
|
@@ -21550,7 +21550,7 @@ var taskTagFilters = /* @__PURE__ */ __name(async (store, query) => {
|
|
|
21550
21550
|
return tags;
|
|
21551
21551
|
}, "taskTagFilters");
|
|
21552
21552
|
|
|
21553
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21553
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/services/tasks.js
|
|
21554
21554
|
var TASK_QUERY = {
|
|
21555
21555
|
entity: "task",
|
|
21556
21556
|
backend: "sql",
|
|
@@ -22042,7 +22042,7 @@ var taskView = /* @__PURE__ */ __name(async (store, account, task2) => {
|
|
|
22042
22042
|
};
|
|
22043
22043
|
}, "taskView");
|
|
22044
22044
|
|
|
22045
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22045
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/mail/owed.js
|
|
22046
22046
|
var mailTurn = /* @__PURE__ */ __name((newest) => {
|
|
22047
22047
|
if (newest === null)
|
|
22048
22048
|
return null;
|
|
@@ -22051,7 +22051,7 @@ var mailTurn = /* @__PURE__ */ __name((newest) => {
|
|
|
22051
22051
|
return newest.addressed ? "owed" : null;
|
|
22052
22052
|
}, "mailTurn");
|
|
22053
22053
|
|
|
22054
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22054
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/services/agenda-mail.js
|
|
22055
22055
|
var absent = /* @__PURE__ */ __name((error) => {
|
|
22056
22056
|
if (error instanceof CliError && error.code === "not_found")
|
|
22057
22057
|
return void 0;
|
|
@@ -22109,7 +22109,7 @@ var mailActivity = /* @__PURE__ */ __name(async (store, account, since, chats) =
|
|
|
22109
22109
|
};
|
|
22110
22110
|
}, "mailActivity");
|
|
22111
22111
|
|
|
22112
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22112
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/services/chat-coverage.js
|
|
22113
22113
|
var chatCoverage = /* @__PURE__ */ __name(async (store, account, chatIds) => {
|
|
22114
22114
|
const ids = [...new Set(chatIds)];
|
|
22115
22115
|
if (ids.length === 0)
|
|
@@ -22135,7 +22135,7 @@ var chatCoverage = /* @__PURE__ */ __name(async (store, account, chatIds) => {
|
|
|
22135
22135
|
}));
|
|
22136
22136
|
}, "chatCoverage");
|
|
22137
22137
|
|
|
22138
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22138
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/services/agenda.js
|
|
22139
22139
|
var DAY = 864e5;
|
|
22140
22140
|
var AGENDA_DEFAULTS = { unanswered: DAY, waiting: 7 * DAY };
|
|
22141
22141
|
var CLAIMS = ["none", "mine", "others", "any"];
|
|
@@ -22382,7 +22382,7 @@ var agendaItem = /* @__PURE__ */ __name((shown) => {
|
|
|
22382
22382
|
};
|
|
22383
22383
|
}, "agendaItem");
|
|
22384
22384
|
|
|
22385
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22385
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/context/evidence-response.js
|
|
22386
22386
|
var contextSourceKey = /* @__PURE__ */ __name((source) => JSON.stringify([source.kind, source.accountId, source.provider, source.account]), "contextSourceKey");
|
|
22387
22387
|
var validateContextEvidencePage = /* @__PURE__ */ __name((page, request) => {
|
|
22388
22388
|
const fail2 = /* @__PURE__ */ __name(() => {
|
|
@@ -22446,7 +22446,7 @@ var validateContextEvidencePage = /* @__PURE__ */ __name((page, request) => {
|
|
|
22446
22446
|
}
|
|
22447
22447
|
}, "validateContextEvidencePage");
|
|
22448
22448
|
|
|
22449
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22449
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/context/read-budget.js
|
|
22450
22450
|
var contextReadBudget = /* @__PURE__ */ __name((limits = {}) => {
|
|
22451
22451
|
if (!limits || typeof limits !== "object" || Array.isArray(limits))
|
|
22452
22452
|
throw new CliError("validation_error", "limits needs a context read allowance");
|
|
@@ -22499,7 +22499,7 @@ var contextReadBudget = /* @__PURE__ */ __name((limits = {}) => {
|
|
|
22499
22499
|
};
|
|
22500
22500
|
}, "contextReadBudget");
|
|
22501
22501
|
|
|
22502
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22502
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/services/context-evidence.js
|
|
22503
22503
|
var createContextEvidenceReader = /* @__PURE__ */ __name((port, allowed, limits) => {
|
|
22504
22504
|
if (!port || typeof port.read !== "function")
|
|
22505
22505
|
throw new CliError("configuration_error", "context evidence reader is unavailable");
|
|
@@ -22543,7 +22543,7 @@ var createContextEvidenceReader = /* @__PURE__ */ __name((port, allowed, limits)
|
|
|
22543
22543
|
};
|
|
22544
22544
|
}, "createContextEvidenceReader");
|
|
22545
22545
|
|
|
22546
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22546
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/services/excerpt.js
|
|
22547
22547
|
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");
|
|
22548
22548
|
var excerpt = /* @__PURE__ */ __name((text2, query, size2 = 240, options = {}) => {
|
|
22549
22549
|
const flat = text2.replace(/\s+/g, " ").trim();
|
|
@@ -22559,7 +22559,7 @@ var excerpt = /* @__PURE__ */ __name((text2, query, size2 = 240, options = {}) =
|
|
|
22559
22559
|
}, "excerpt");
|
|
22560
22560
|
var withExcerpt = /* @__PURE__ */ __name(({ matchedText, ...hit }, query) => ({ ...hit, excerpt: excerpt(matchedText ?? hit.text, query) }), "withExcerpt");
|
|
22561
22561
|
|
|
22562
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22562
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/services/project-purposes.js
|
|
22563
22563
|
var BUILT_IN_PURPOSES = ["work", "sales", "support", "other"];
|
|
22564
22564
|
var DEFAULT_PURPOSES = ["work"];
|
|
22565
22565
|
var LINK_PURPOSE = "work";
|
|
@@ -22589,7 +22589,7 @@ var purposeList = /* @__PURE__ */ __name((value, previous = []) => [
|
|
|
22589
22589
|
...value.split(",").map((one) => one.trim()).filter(Boolean)
|
|
22590
22590
|
], "purposeList");
|
|
22591
22591
|
|
|
22592
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22592
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/services/project-gathering-around.js
|
|
22593
22593
|
var storedMessageNeighbours = /* @__PURE__ */ __name((messages) => ({
|
|
22594
22594
|
async around(ref, window3) {
|
|
22595
22595
|
const at = parseLocator(ref);
|
|
@@ -22684,7 +22684,7 @@ var storedNeighbours = /* @__PURE__ */ __name((store) => {
|
|
|
22684
22684
|
};
|
|
22685
22685
|
}, "storedNeighbours");
|
|
22686
22686
|
|
|
22687
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22687
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/services/project-gathering-request.js
|
|
22688
22688
|
import { createHash as createHash2 } from "node:crypto";
|
|
22689
22689
|
var DAY2 = 864e5;
|
|
22690
22690
|
var MAX_TIME = 864e13;
|
|
@@ -23000,7 +23000,7 @@ var decodeCheckpoint = /* @__PURE__ */ __name((text2, plan) => {
|
|
|
23000
23000
|
return value;
|
|
23001
23001
|
}, "decodeCheckpoint");
|
|
23002
23002
|
|
|
23003
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23003
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/services/project-gathering.js
|
|
23004
23004
|
var terminal = /* @__PURE__ */ new Set(["done", "unavailable", "failed"]);
|
|
23005
23005
|
var PAGE2 = 20;
|
|
23006
23006
|
var PEOPLE = 20;
|
|
@@ -23404,7 +23404,7 @@ var peopleOf = /* @__PURE__ */ __name((items, senderOf) => {
|
|
|
23404
23404
|
return [...byKey.values()].sort((a, b) => b.items - a.items || a.name.localeCompare(b.name));
|
|
23405
23405
|
}, "peopleOf");
|
|
23406
23406
|
|
|
23407
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23407
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/services/meeting-project-candidate-matching.js
|
|
23408
23408
|
var normalizedText = /* @__PURE__ */ __name((text2) => text2.normalize("NFKC").toLowerCase().replace(/\s+/gu, " "), "normalizedText");
|
|
23409
23409
|
var termsOf = /* @__PURE__ */ __name((entry) => [
|
|
23410
23410
|
{ name: entry.name, kind: "canonical" },
|
|
@@ -23448,7 +23448,7 @@ var matchVocabularyTerms = /* @__PURE__ */ __name((catalog, texts) => {
|
|
|
23448
23448
|
return result.sort((a, b) => Number(a.entry.id) - Number(b.entry.id));
|
|
23449
23449
|
}, "matchVocabularyTerms");
|
|
23450
23450
|
|
|
23451
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23451
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/services/project-gathering-mentions.js
|
|
23452
23452
|
var KINDS = ["project", "tag", "topic"];
|
|
23453
23453
|
var findEvidenceMentions = /* @__PURE__ */ __name(async (vocabulary, gathering, options = {}) => {
|
|
23454
23454
|
if (typeof vocabulary?.vocabulary !== "function")
|
|
@@ -23503,7 +23503,7 @@ var findEvidenceMentions = /* @__PURE__ */ __name(async (vocabulary, gathering,
|
|
|
23503
23503
|
};
|
|
23504
23504
|
}, "findEvidenceMentions");
|
|
23505
23505
|
|
|
23506
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23506
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/services/stored-project-gathering.js
|
|
23507
23507
|
var storedChatCount = /* @__PURE__ */ __name((store) => async (account, chatId, { since, until }) => {
|
|
23508
23508
|
const window3 = { since: new Date(since).toISOString(), until: new Date(until - 1).toISOString() };
|
|
23509
23509
|
const [messages, newest, oldest] = await Promise.all([
|
|
@@ -23771,7 +23771,7 @@ var gatherStoredProject = /* @__PURE__ */ __name(async (store, input) => {
|
|
|
23771
23771
|
const leftOut = [];
|
|
23772
23772
|
for (const one of all.filter((chat) => !purposeRead(purposes, chat.purpose))) {
|
|
23773
23773
|
const account = { provider: one.provider, account: one.account };
|
|
23774
|
-
const [
|
|
23774
|
+
const [counted2, [held]] = await Promise.all([
|
|
23775
23775
|
count4(account, one.chat, { since: gathered.window.after, until: gathered.window.before }),
|
|
23776
23776
|
chatCoverage(store, account, [one.chat])
|
|
23777
23777
|
]);
|
|
@@ -23784,7 +23784,7 @@ var gatherStoredProject = /* @__PURE__ */ __name(async (store, input) => {
|
|
|
23784
23784
|
purpose: one.purpose ?? LINK_PURPOSE,
|
|
23785
23785
|
relationship: one.relationship,
|
|
23786
23786
|
...one.proposed ? { proposed: one.proposed } : {},
|
|
23787
|
-
...
|
|
23787
|
+
...counted2
|
|
23788
23788
|
});
|
|
23789
23789
|
}
|
|
23790
23790
|
return {
|
|
@@ -23809,18 +23809,18 @@ var purposeHintOf = /* @__PURE__ */ __name((linked, rows, of) => {
|
|
|
23809
23809
|
return { chat: top.ref, relationship: link4.relationship, items, of };
|
|
23810
23810
|
}, "purposeHintOf");
|
|
23811
23811
|
|
|
23812
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23812
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/services/media-archive.js
|
|
23813
23813
|
import { setTimeout as sleep3 } from "node:timers/promises";
|
|
23814
23814
|
|
|
23815
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23815
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/services/media-archive-files.js
|
|
23816
23816
|
import { lstat } from "node:fs/promises";
|
|
23817
23817
|
|
|
23818
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23818
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-store.js
|
|
23819
23819
|
import { createHash as createHash4, randomUUID as randomUUID2 } from "node:crypto";
|
|
23820
23820
|
import { open as open2, rename as rename2, unlink as unlink2 } from "node:fs/promises";
|
|
23821
23821
|
import { join as join2 } from "node:path";
|
|
23822
23822
|
|
|
23823
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23823
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-metadata.js
|
|
23824
23824
|
import { createHash as createHash3 } from "node:crypto";
|
|
23825
23825
|
var metadataLimit = 16384;
|
|
23826
23826
|
var partialIdentity = /* @__PURE__ */ __name((locator) => JSON.stringify([locator.provider, locator.account, locator.occurrenceId, locator.assetId]), "partialIdentity");
|
|
@@ -23880,7 +23880,7 @@ var readPartialMetadata = /* @__PURE__ */ __name(async (path, locator, maxBytes,
|
|
|
23880
23880
|
}
|
|
23881
23881
|
}, "readPartialMetadata");
|
|
23882
23882
|
|
|
23883
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23883
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-writer.js
|
|
23884
23884
|
import { randomUUID } from "node:crypto";
|
|
23885
23885
|
import { open, rename, unlink } from "node:fs/promises";
|
|
23886
23886
|
import { join } from "node:path";
|
|
@@ -23972,7 +23972,7 @@ var partialWriter = /* @__PURE__ */ __name(async (input) => {
|
|
|
23972
23972
|
};
|
|
23973
23973
|
}, "partialWriter");
|
|
23974
23974
|
|
|
23975
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23975
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-store.js
|
|
23976
23976
|
var NativeRecordingPartialStore = class {
|
|
23977
23977
|
static {
|
|
23978
23978
|
__name(this, "NativeRecordingPartialStore");
|
|
@@ -24079,12 +24079,12 @@ var NativeRecordingPartialStore = class {
|
|
|
24079
24079
|
}
|
|
24080
24080
|
};
|
|
24081
24081
|
|
|
24082
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24082
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication.js
|
|
24083
24083
|
import { createHash as createHash5 } from "node:crypto";
|
|
24084
24084
|
import { link as link2 } from "node:fs/promises";
|
|
24085
24085
|
import { basename, dirname, join as join4, resolve } from "node:path";
|
|
24086
24086
|
|
|
24087
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24087
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication-files.js
|
|
24088
24088
|
import { unlink as unlink3 } from "node:fs/promises";
|
|
24089
24089
|
var verifiedPublicationFile = /* @__PURE__ */ __name(async (path, expected2, signal, writable = false) => {
|
|
24090
24090
|
signal?.throwIfAborted();
|
|
@@ -24119,7 +24119,7 @@ var commitPublication = /* @__PURE__ */ __name(async (root, partialPath, finalPa
|
|
|
24119
24119
|
signal?.throwIfAborted();
|
|
24120
24120
|
}, "commitPublication");
|
|
24121
24121
|
|
|
24122
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24122
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication-journal.js
|
|
24123
24123
|
import { randomUUID as randomUUID3 } from "node:crypto";
|
|
24124
24124
|
import { open as open3, rename as rename3, unlink as unlink4 } from "node:fs/promises";
|
|
24125
24125
|
import { join as join3 } from "node:path";
|
|
@@ -24192,7 +24192,7 @@ var writePublicationJournal = /* @__PURE__ */ __name(async (root, path, prefix,
|
|
|
24192
24192
|
}
|
|
24193
24193
|
}, "writePublicationJournal");
|
|
24194
24194
|
|
|
24195
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24195
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication.js
|
|
24196
24196
|
var NativeRecordingPublication = class {
|
|
24197
24197
|
static {
|
|
24198
24198
|
__name(this, "NativeRecordingPublication");
|
|
@@ -24265,7 +24265,7 @@ var NativeRecordingPublication = class {
|
|
|
24265
24265
|
}
|
|
24266
24266
|
};
|
|
24267
24267
|
|
|
24268
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24268
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/services/media-archive-manifest.js
|
|
24269
24269
|
import { createHash as createHash6 } from "node:crypto";
|
|
24270
24270
|
import { readdir } from "node:fs/promises";
|
|
24271
24271
|
import { isAbsolute, join as join5, resolve as resolve2 } from "node:path";
|
|
@@ -24352,7 +24352,7 @@ var commitMediaEntry = /* @__PURE__ */ __name((root, one, beforePublish) => writ
|
|
|
24352
24352
|
beforePublish
|
|
24353
24353
|
}), "commitMediaEntry");
|
|
24354
24354
|
|
|
24355
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24355
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/services/media-archive-files.js
|
|
24356
24356
|
var validator = '"media-completed-v1"';
|
|
24357
24357
|
var maximumFileBytes = 64 * 1024 * 1024 * 1024;
|
|
24358
24358
|
var archiveMediaFile = /* @__PURE__ */ __name(async (root, identity, kind, file, beforeWrite, signal, metadata = {}) => {
|
|
@@ -24453,7 +24453,7 @@ var archiveMediaFile = /* @__PURE__ */ __name(async (root, identity, kind, file,
|
|
|
24453
24453
|
return entry;
|
|
24454
24454
|
}, "archiveMediaFile");
|
|
24455
24455
|
|
|
24456
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24456
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/services/media-archive-locks.js
|
|
24457
24457
|
import { mkdir, realpath } from "node:fs/promises";
|
|
24458
24458
|
import { join as join6, resolve as resolve3 } from "node:path";
|
|
24459
24459
|
var archiveLocations = /* @__PURE__ */ __name(async (initial, signal) => {
|
|
@@ -24520,7 +24520,7 @@ var withMediaArchiveLocks = /* @__PURE__ */ __name(async (directory2, signal, ru
|
|
|
24520
24520
|
throw new CliError("validation_error", "archive locations changed during locking; run the command again");
|
|
24521
24521
|
}, "withMediaArchiveLocks");
|
|
24522
24522
|
|
|
24523
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24523
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/services/media-archive.js
|
|
24524
24524
|
var validateMediaSince = /* @__PURE__ */ __name((value, flag = "--since-time") => {
|
|
24525
24525
|
if (value === void 0)
|
|
24526
24526
|
return void 0;
|
|
@@ -24673,7 +24673,7 @@ var archiveMedia = /* @__PURE__ */ __name(async (ports, options) => {
|
|
|
24673
24673
|
}, { create: true });
|
|
24674
24674
|
}, "archiveMedia");
|
|
24675
24675
|
|
|
24676
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24676
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/services/media-archive-move.js
|
|
24677
24677
|
import { realpath as realpath2, unlink as unlink5 } from "node:fs/promises";
|
|
24678
24678
|
import { basename as basename2, dirname as dirname2, join as join7, resolve as resolve4 } from "node:path";
|
|
24679
24679
|
var canonicalDestination = /* @__PURE__ */ __name(async (directory2) => {
|
|
@@ -24826,7 +24826,7 @@ var moveMediaArchive = /* @__PURE__ */ __name(async (options) => {
|
|
|
24826
24826
|
}, { additional: [target2], createAdditional: !options.dryRun });
|
|
24827
24827
|
}, "moveMediaArchive");
|
|
24828
24828
|
|
|
24829
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24829
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/services/model-downloads.js
|
|
24830
24830
|
var bytesOf = /* @__PURE__ */ __name((model) => model.files.reduce((sum2, file) => sum2 + file.bytes, 0), "bytesOf");
|
|
24831
24831
|
var nativeRuntime = /* @__PURE__ */ __name(async ({ env, progress = /* @__PURE__ */ __name(() => {
|
|
24832
24832
|
}, "progress") }) => {
|
|
@@ -24849,7 +24849,7 @@ var downloadTextModel = /* @__PURE__ */ __name(async (id2, { env, progress = /*
|
|
|
24849
24849
|
}
|
|
24850
24850
|
await nativeRuntime({ env, progress });
|
|
24851
24851
|
progress(`${model.id}: loading it once to check it works`);
|
|
24852
|
-
const { openEmbedder: openEmbedder2 } = await import("./embed-
|
|
24852
|
+
const { openEmbedder: openEmbedder2 } = await import("./embed-VDUGYEAR.js");
|
|
24853
24853
|
const embedder = await openEmbedder2(model, directory2);
|
|
24854
24854
|
try {
|
|
24855
24855
|
const [vector] = await embedder.embed(["check"], "query");
|
|
@@ -24870,7 +24870,7 @@ var downloadRerankModel = /* @__PURE__ */ __name(async (id2, { env, progress = /
|
|
|
24870
24870
|
}
|
|
24871
24871
|
await nativeRuntime({ env, progress });
|
|
24872
24872
|
progress(`${model.id}: loading it once to check it works`);
|
|
24873
|
-
const { openReranker } = await import("./rerank-
|
|
24873
|
+
const { openReranker } = await import("./rerank-SUFYK63I.js");
|
|
24874
24874
|
const reranker = await openReranker(model, directory2);
|
|
24875
24875
|
try {
|
|
24876
24876
|
await reranker.score("check", ["check"]);
|
|
@@ -24888,7 +24888,7 @@ var downloadImageModel = /* @__PURE__ */ __name(async (id2, { env, progress = /*
|
|
|
24888
24888
|
await installFiles(placedImage(model, directory2), { progress });
|
|
24889
24889
|
}
|
|
24890
24890
|
progress(`${model.id}: loading it once to check it works`);
|
|
24891
|
-
const { openPictureEmbedder } = await import("./embedder-
|
|
24891
|
+
const { openPictureEmbedder } = await import("./embedder-DUN62H3Z.js");
|
|
24892
24892
|
const embedder = await openPictureEmbedder(model, directory2);
|
|
24893
24893
|
try {
|
|
24894
24894
|
const vector = await embedder.embedQuery("check");
|
|
@@ -24900,7 +24900,7 @@ var downloadImageModel = /* @__PURE__ */ __name(async (id2, { env, progress = /*
|
|
|
24900
24900
|
return { model, directory: directory2 };
|
|
24901
24901
|
}, "downloadImageModel");
|
|
24902
24902
|
|
|
24903
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24903
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/domain/money-words.js
|
|
24904
24904
|
var MONEY_REQUEST = "money-request";
|
|
24905
24905
|
var MONEY_DONE = "money-done";
|
|
24906
24906
|
var PROMISE = "promise";
|
|
@@ -24934,10 +24934,10 @@ var MONEY_WORDS = [
|
|
|
24934
24934
|
}
|
|
24935
24935
|
];
|
|
24936
24936
|
|
|
24937
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24937
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/services/money-words.js
|
|
24938
24938
|
var moneyClassesOf = /* @__PURE__ */ __name((text2) => listsHit(text2, MONEY_WORDS), "moneyClassesOf");
|
|
24939
24939
|
|
|
24940
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24940
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/domain/status-words.js
|
|
24941
24941
|
var words = /* @__PURE__ */ __name((forms) => new RegExp(`(?<![\\p{L}\\p{N}])(?:${forms.join("|")})(?![\\p{L}\\p{N}])`, "iu"), "words");
|
|
24942
24942
|
var MONEY_DONE_FORMS = words([
|
|
24943
24943
|
"\u043E\u043F\u043B\u0430\u0442\u0438\u043B[\u0430\u0438]?",
|
|
@@ -24977,7 +24977,7 @@ var PROMISE_FORMS = words([
|
|
|
24977
24977
|
"estar\xE1 listo"
|
|
24978
24978
|
]);
|
|
24979
24979
|
|
|
24980
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24980
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/services/project-status/items.js
|
|
24981
24981
|
var EXCERPT_CHARS = 80;
|
|
24982
24982
|
var excerpt2 = /* @__PURE__ */ __name((text2) => {
|
|
24983
24983
|
const flat = text2.replace(/\s+/g, " ").trim();
|
|
@@ -24999,7 +24999,7 @@ var whoOf = /* @__PURE__ */ __name((message) => ({
|
|
|
24999
24999
|
var fromOwner = /* @__PURE__ */ __name((message) => message.outgoing === true, "fromOwner");
|
|
25000
25000
|
var day = /* @__PURE__ */ __name((at) => new Date(at).toISOString().slice(0, 10), "day");
|
|
25001
25001
|
|
|
25002
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25002
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/services/project-status/signals/amounts.js
|
|
25003
25003
|
var MONEY = DEFAULT_TASK_CATEGORIES.filter((category) => category.name === "money");
|
|
25004
25004
|
var verbOf = /* @__PURE__ */ __name((text2) => {
|
|
25005
25005
|
if (MONEY_DONE_FORMS.test(text2))
|
|
@@ -25039,10 +25039,10 @@ var rowsOf = /* @__PURE__ */ __name((chat) => chat.messages.flatMap((message) =>
|
|
|
25039
25039
|
var centsText = /* @__PURE__ */ __name((cents) => `${Math.floor(cents / 100)}.${String(cents % 100).padStart(2, "0")}`, "centsText");
|
|
25040
25040
|
var amounts = {
|
|
25041
25041
|
id: "amounts",
|
|
25042
|
-
version:
|
|
25042
|
+
version: 3,
|
|
25043
25043
|
scope: "chat",
|
|
25044
|
-
read: /* @__PURE__ */ __name(async (
|
|
25045
|
-
if (!chat)
|
|
25044
|
+
read: /* @__PURE__ */ __name(async (context2, chat) => {
|
|
25045
|
+
if (!chat || context2.books)
|
|
25046
25046
|
return [];
|
|
25047
25047
|
const groups = /* @__PURE__ */ new Map();
|
|
25048
25048
|
for (const row of rowsOf(chat)) {
|
|
@@ -25055,7 +25055,8 @@ var amounts = {
|
|
|
25055
25055
|
const lastAsk = asks.at(-1);
|
|
25056
25056
|
const first2 = asks[0] ?? done2[0] ?? rows[0];
|
|
25057
25057
|
const paidAfter = done2.some((row) => !lastAsk || Date.parse(row.message.timestamp) >= Date.parse(lastAsk.message.timestamp));
|
|
25058
|
-
const
|
|
25058
|
+
const paid2 = asks.length ? paidAfter : done2.length > 0;
|
|
25059
|
+
const state = paid2 ? "paid-mentioned" : asks.length ? "asked" : "mentioned";
|
|
25059
25060
|
const cited = asks.length ? [...asks, ...paidAfter ? done2.slice(-1) : []] : rows;
|
|
25060
25061
|
return {
|
|
25061
25062
|
signal: "amounts",
|
|
@@ -25076,10 +25077,10 @@ var amounts = {
|
|
|
25076
25077
|
};
|
|
25077
25078
|
});
|
|
25078
25079
|
}, "read"),
|
|
25079
|
-
attention: /* @__PURE__ */ __name((items) => items.flatMap((item2) => item2.chat !== null && item2.data.state === "
|
|
25080
|
+
attention: /* @__PURE__ */ __name((items) => items.flatMap((item2) => item2.chat !== null && item2.data.state === "asked" ? [{ chat: item2.chat, weight: 2, why: "money asked" }] : []), "attention")
|
|
25080
25081
|
};
|
|
25081
25082
|
|
|
25082
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25083
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/services/project-status/signals/children.js
|
|
25083
25084
|
var children = {
|
|
25084
25085
|
id: "children",
|
|
25085
25086
|
version: 1,
|
|
@@ -25108,7 +25109,7 @@ var children = {
|
|
|
25108
25109
|
}, "read")
|
|
25109
25110
|
};
|
|
25110
25111
|
|
|
25111
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25112
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/services/project-status/signals/coverage.js
|
|
25112
25113
|
var coverage = {
|
|
25113
25114
|
id: "coverage",
|
|
25114
25115
|
version: 1,
|
|
@@ -25137,7 +25138,7 @@ var coverage = {
|
|
|
25137
25138
|
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")
|
|
25138
25139
|
};
|
|
25139
25140
|
|
|
25140
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25141
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/services/project-status/signals/payments.js
|
|
25141
25142
|
var holding = /* @__PURE__ */ __name((row) => row.review !== "rejected", "holding");
|
|
25142
25143
|
var item = /* @__PURE__ */ __name((row, at, data) => ({
|
|
25143
25144
|
signal: "payments",
|
|
@@ -25187,7 +25188,7 @@ var payments = {
|
|
|
25187
25188
|
}, "read")
|
|
25188
25189
|
};
|
|
25189
25190
|
|
|
25190
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25191
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/services/project-status/signals/promises.js
|
|
25191
25192
|
var PATTERNS_PER_CHAT = 3;
|
|
25192
25193
|
var DAY3 = 864e5;
|
|
25193
25194
|
var KINDS2 = /* @__PURE__ */ new Set(["promise", "request"]);
|
|
@@ -25276,7 +25277,7 @@ var promises = {
|
|
|
25276
25277
|
}, "read")
|
|
25277
25278
|
};
|
|
25278
25279
|
|
|
25279
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25280
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/services/project-status/signals/questions.js
|
|
25280
25281
|
var PER_SIDE = 5;
|
|
25281
25282
|
var WEEK = 7 * 864e5;
|
|
25282
25283
|
var NOBODY = /* @__PURE__ */ new Set();
|
|
@@ -25307,7 +25308,7 @@ var questions2 = {
|
|
|
25307
25308
|
}, "attention")
|
|
25308
25309
|
};
|
|
25309
25310
|
|
|
25310
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25311
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/services/project-status/signals/reply-next.js
|
|
25311
25312
|
var targetOf = /* @__PURE__ */ __name((message, chat, owners) => {
|
|
25312
25313
|
const byId2 = /* @__PURE__ */ __name((id2) => chat.messages.find((one) => one.id === id2), "byId");
|
|
25313
25314
|
const quoted = message.replyTo ?? (message.replyToId === void 0 ? void 0 : byId2(message.replyToId));
|
|
@@ -25375,7 +25376,7 @@ var replyNext = {
|
|
|
25375
25376
|
attention: /* @__PURE__ */ __name((items) => items.flatMap((item2) => item2.chat !== null && item2.data.next === "owner" ? [{ chat: item2.chat, weight: 2, why: "your move" }] : []), "attention")
|
|
25376
25377
|
};
|
|
25377
25378
|
|
|
25378
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25379
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/services/project-status/signals/topics.js
|
|
25379
25380
|
var escaped = /* @__PURE__ */ __name((text2) => text2.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), "escaped");
|
|
25380
25381
|
var wholeWord = /* @__PURE__ */ __name((word) => new RegExp(`(?<![\\p{L}\\p{N}])${escaped(word)}(?![\\p{L}\\p{N}])`, "u"), "wholeWord");
|
|
25381
25382
|
var matcherOf = /* @__PURE__ */ __name((query) => {
|
|
@@ -25421,7 +25422,7 @@ var topics = {
|
|
|
25421
25422
|
}, "read")
|
|
25422
25423
|
};
|
|
25423
25424
|
|
|
25424
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25425
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/services/project-status/signals/index.js
|
|
25425
25426
|
var STATUS_SIGNALS = [
|
|
25426
25427
|
replyNext,
|
|
25427
25428
|
questions2,
|
|
@@ -25433,7 +25434,7 @@ var STATUS_SIGNALS = [
|
|
|
25433
25434
|
children
|
|
25434
25435
|
];
|
|
25435
25436
|
|
|
25436
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25437
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/services/project-status/index.js
|
|
25437
25438
|
var DAY4 = 864e5;
|
|
25438
25439
|
var STATUS_WINDOW = 300;
|
|
25439
25440
|
var STATUS_CHATS = 16;
|
|
@@ -25478,17 +25479,23 @@ var childrenOf = /* @__PURE__ */ __name(async (store, root, catalog) => {
|
|
|
25478
25479
|
}, "childrenOf");
|
|
25479
25480
|
var inAccounts = /* @__PURE__ */ __name((accounts, provider, account) => accounts === void 0 || accounts.some((one) => one.provider === provider && one.account === account), "inAccounts");
|
|
25480
25481
|
var failure = /* @__PURE__ */ __name((error) => error instanceof Error ? error.message : String(error), "failure");
|
|
25481
|
-
var
|
|
25482
|
-
const
|
|
25483
|
-
|
|
25484
|
-
|
|
25485
|
-
|
|
25482
|
+
var owed = /* @__PURE__ */ __name((item2) => {
|
|
25483
|
+
const data = item2.data;
|
|
25484
|
+
return item2.signal === "payments" && data.state === "expected" && data.status === "confirmed";
|
|
25485
|
+
}, "owed");
|
|
25486
|
+
var keepsBooks = /* @__PURE__ */ __name(async (store, projects) => {
|
|
25487
|
+
for (const project2 of projects) {
|
|
25488
|
+
const filter = { project: project2, review: "confirmed", limit: 1 };
|
|
25489
|
+
if ((await store.finance.invoices(filter)).length || (await store.finance.payments(filter)).length)
|
|
25490
|
+
return true;
|
|
25491
|
+
}
|
|
25492
|
+
return false;
|
|
25493
|
+
}, "keepsBooks");
|
|
25486
25494
|
var totalsOf = /* @__PURE__ */ __name((items) => {
|
|
25487
25495
|
const totals = /* @__PURE__ */ new Map();
|
|
25488
|
-
const open7 = counted2(items);
|
|
25489
25496
|
for (const item2 of items) {
|
|
25490
25497
|
const data = item2.data;
|
|
25491
|
-
if (!
|
|
25498
|
+
if (!owed(item2) || data.amount === void 0)
|
|
25492
25499
|
continue;
|
|
25493
25500
|
const key = `${data.direction}|${data.currency ?? ""}`;
|
|
25494
25501
|
const total = totals.get(key) ?? {
|
|
@@ -25571,6 +25578,7 @@ var projectStatus = /* @__PURE__ */ __name(async (store, input) => {
|
|
|
25571
25578
|
chats,
|
|
25572
25579
|
project: { ...root, children: children2, cut },
|
|
25573
25580
|
store,
|
|
25581
|
+
books: await keepsBooks(store, [root.ref, ...children2.map((child) => child.ref)]),
|
|
25574
25582
|
contextQueries: input.contextQueries ?? []
|
|
25575
25583
|
};
|
|
25576
25584
|
const items = [];
|
|
@@ -25615,7 +25623,7 @@ var projectStatus = /* @__PURE__ */ __name(async (store, input) => {
|
|
|
25615
25623
|
};
|
|
25616
25624
|
}, "projectStatus");
|
|
25617
25625
|
|
|
25618
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25626
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/services/account.js
|
|
25619
25627
|
var accountService = /* @__PURE__ */ __name((deps) => {
|
|
25620
25628
|
const online = /* @__PURE__ */ __name(async (command) => {
|
|
25621
25629
|
if (deps.offline)
|
|
@@ -25687,7 +25695,7 @@ var accountService = /* @__PURE__ */ __name((deps) => {
|
|
|
25687
25695
|
};
|
|
25688
25696
|
}, "accountService");
|
|
25689
25697
|
|
|
25690
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25698
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/domain/send-time.js
|
|
25691
25699
|
var MINUTE = 6e4;
|
|
25692
25700
|
var YEAR = 365 * 24 * 60 * MINUTE;
|
|
25693
25701
|
var DELAY = /^(\d+)(m|h|d)$/;
|
|
@@ -25706,7 +25714,7 @@ var sendTime = /* @__PURE__ */ __name((value, now = Date.now(), flag = "--at-tim
|
|
|
25706
25714
|
return new Date(at - at % MINUTE).toISOString();
|
|
25707
25715
|
}, "sendTime");
|
|
25708
25716
|
|
|
25709
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25717
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/services/admin.js
|
|
25710
25718
|
var recordMembership = /* @__PURE__ */ __name(async (deps, operationId, done2, change, fix, write2) => {
|
|
25711
25719
|
try {
|
|
25712
25720
|
const held = await accountStoreIfOpen(deps);
|
|
@@ -25852,21 +25860,21 @@ var adminService = /* @__PURE__ */ __name((deps) => {
|
|
|
25852
25860
|
const answerAll = capability(connection, "answerAllJoinRequests", "answer every join request at once");
|
|
25853
25861
|
const { id: chatId } = await connection.resolve(chat);
|
|
25854
25862
|
const page = await list2(chatId, { limit: 100, ...link4 === void 0 ? {} : { link: link4 } });
|
|
25855
|
-
const
|
|
25863
|
+
const counted2 = page.total ?? page.items.length;
|
|
25856
25864
|
if (page.total === void 0 && page.hasMore)
|
|
25857
25865
|
throw new CliError("validation_error", "too many requests to count; answer them by person, or by --link");
|
|
25858
|
-
if (
|
|
25859
|
-
return { chatId, accepted: accept, counted:
|
|
25866
|
+
if (counted2 === 0)
|
|
25867
|
+
return { chatId, accepted: accept, counted: counted2 };
|
|
25860
25868
|
const operationId = newOperationId();
|
|
25861
25869
|
await guardedWrite(deps.guard, {
|
|
25862
25870
|
operationId,
|
|
25863
25871
|
chatId,
|
|
25864
25872
|
kind: "chat",
|
|
25865
25873
|
action: accept ? "requests.accept" : "requests.decline",
|
|
25866
|
-
count:
|
|
25867
|
-
people:
|
|
25874
|
+
count: counted2,
|
|
25875
|
+
people: counted2
|
|
25868
25876
|
}, () => answerAll(chatId, accept, link4));
|
|
25869
|
-
return { operationId, chatId, accepted: accept, counted:
|
|
25877
|
+
return { operationId, chatId, accepted: accept, counted: counted2 };
|
|
25870
25878
|
}, "answerAllRequests"),
|
|
25871
25879
|
links: /* @__PURE__ */ __name(async (chat, window3) => {
|
|
25872
25880
|
if (deps.offline)
|
|
@@ -25953,7 +25961,7 @@ var linkLimits = /* @__PURE__ */ __name(({ approval, expires, maxUses }) => {
|
|
|
25953
25961
|
return expires === void 0 ? void 0 : sendTime(expires, Date.now(), "--expire-time");
|
|
25954
25962
|
}, "linkLimits");
|
|
25955
25963
|
|
|
25956
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25964
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/services/mail-search.js
|
|
25957
25965
|
var THREADS_PAGE = 500;
|
|
25958
25966
|
var threadsOf = /* @__PURE__ */ __name(async (store, key) => {
|
|
25959
25967
|
const account = await store.accounts.storedAccount(key).catch(() => void 0);
|
|
@@ -26032,7 +26040,7 @@ var readMail = /* @__PURE__ */ __name(async (store, locator, { before: before2 =
|
|
|
26032
26040
|
return thread.slice(Math.max(0, at - before2), at + after + 1).map((hit) => hit.id === message ? { ...hit, anchor: true } : hit);
|
|
26033
26041
|
}, "readMail");
|
|
26034
26042
|
|
|
26035
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26043
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/services/search-kind.js
|
|
26036
26044
|
var NO_MAIL = "no_mail";
|
|
26037
26045
|
var MAIL = "email";
|
|
26038
26046
|
var listContextOf = /* @__PURE__ */ __name(async (store, account, app, stored) => {
|
|
@@ -26079,7 +26087,7 @@ var accountsOfKind = /* @__PURE__ */ __name((kind, chosen, held, explicit, comma
|
|
|
26079
26087
|
return chosenMail.map(({ provider, account }) => ({ provider, account }));
|
|
26080
26088
|
}, "accountsOfKind");
|
|
26081
26089
|
|
|
26082
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26090
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/services/messages-search.js
|
|
26083
26091
|
var MAIL_FIELDS = /* @__PURE__ */ new Set(["to", "cc", "bcc", "subject", "mailbox", "label", "is"]);
|
|
26084
26092
|
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");
|
|
26085
26093
|
var prepareLucene = /* @__PURE__ */ __name(async (store, account, request, messenger) => {
|
|
@@ -26427,7 +26435,7 @@ var statsLucene = /* @__PURE__ */ __name(async (store, account, request, messeng
|
|
|
26427
26435
|
};
|
|
26428
26436
|
}, "statsLucene");
|
|
26429
26437
|
|
|
26430
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26438
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/services/rankings-selection.js
|
|
26431
26439
|
var RANKING_SELECTION_BYTES = 64 * 1024;
|
|
26432
26440
|
var object = /* @__PURE__ */ __name((value) => value !== null && typeof value === "object" && !Array.isArray(value) ? value : void 0, "object");
|
|
26433
26441
|
function invalid(message = "ranking selection is invalid \u2014 obtain a new drilldown from stats top") {
|
|
@@ -26596,7 +26604,7 @@ var readRankingSelection = /* @__PURE__ */ __name(async (store, input) => {
|
|
|
26596
26604
|
};
|
|
26597
26605
|
}, "readRankingSelection");
|
|
26598
26606
|
|
|
26599
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26607
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/services/search-record.js
|
|
26600
26608
|
var canonical = /* @__PURE__ */ __name((value, nested = false) => Array.isArray(value) ? value.map((one) => canonical(one, true)) : value !== null && typeof value === "object" ? Object.fromEntries(Object.entries(value).filter(([, one]) => one !== void 0 && (nested || one !== false)).sort(([a], [b]) => a < b ? -1 : a > b ? 1 : 0).map(([key, one]) => [key, canonical(one, true)])) : value, "canonical");
|
|
26601
26609
|
var searchRecordOf = /* @__PURE__ */ __name((command, params) => ({
|
|
26602
26610
|
command,
|
|
@@ -26606,7 +26614,7 @@ var searchRecordOf = /* @__PURE__ */ __name((command, params) => ({
|
|
|
26606
26614
|
fieldsVersion: FIELD_VERSION
|
|
26607
26615
|
}), "searchRecordOf");
|
|
26608
26616
|
|
|
26609
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26617
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/services/admin-statistics.js
|
|
26610
26618
|
function invalid2(message) {
|
|
26611
26619
|
throw new CliError("validation_error", message);
|
|
26612
26620
|
}
|
|
@@ -26900,7 +26908,7 @@ var adminStatisticsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
26900
26908
|
}, "evidence")
|
|
26901
26909
|
}), "adminStatisticsService");
|
|
26902
26910
|
|
|
26903
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26911
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/services/archive-gaps.js
|
|
26904
26912
|
import { createHash as createHash7, randomUUID as randomUUID4 } from "node:crypto";
|
|
26905
26913
|
var GAP_BOUNDS = { maxGaps: 5, limit: 500, timeMs: 3e4 };
|
|
26906
26914
|
var validateRepair = /* @__PURE__ */ __name((messenger, options) => {
|
|
@@ -27037,16 +27045,16 @@ var gapsService = /* @__PURE__ */ __name((deps) => {
|
|
|
27037
27045
|
return { plan, repair };
|
|
27038
27046
|
}, "gapsService");
|
|
27039
27047
|
|
|
27040
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27048
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/services/attachments.js
|
|
27041
27049
|
import { createHash as createHash9 } from "node:crypto";
|
|
27042
27050
|
import { constants as constants2, mkdirSync as mkdirSync2 } from "node:fs";
|
|
27043
27051
|
import { lstat as lstat4, open as open6, readFile, stat as stat2 } from "node:fs/promises";
|
|
27044
27052
|
|
|
27045
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27053
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/attachments/directory.js
|
|
27046
27054
|
import { lstat as lstat2, readdir as readdir2, realpath as realpath3 } from "node:fs/promises";
|
|
27047
27055
|
import { basename as basename4, join as join8, relative as relative2, sep as sep2 } from "node:path";
|
|
27048
27056
|
|
|
27049
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27057
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/sends/upload.js
|
|
27050
27058
|
import { openAsBlob, realpathSync } from "node:fs";
|
|
27051
27059
|
import { open as open4, stat } from "node:fs/promises";
|
|
27052
27060
|
import { basename as basename3, dirname as dirname3, extname, isAbsolute as isAbsolute2, relative, resolve as resolve5, sep } from "node:path";
|
|
@@ -27248,7 +27256,7 @@ var readStickerFile = /* @__PURE__ */ __name(async (path, maxBytes, read2) => {
|
|
|
27248
27256
|
return { name, source };
|
|
27249
27257
|
}, "readStickerFile");
|
|
27250
27258
|
|
|
27251
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27259
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/attachments/directory.js
|
|
27252
27260
|
var MAX_FILES = 1e4;
|
|
27253
27261
|
var directoryPaths = /* @__PURE__ */ __name(async (store, chat, directory2, app, env) => {
|
|
27254
27262
|
if (refusedPlace(directory2, app, env))
|
|
@@ -27317,15 +27325,15 @@ var directoryPaths = /* @__PURE__ */ __name(async (store, chat, directory2, app,
|
|
|
27317
27325
|
return choices;
|
|
27318
27326
|
}, "directoryPaths");
|
|
27319
27327
|
|
|
27320
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27328
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/attachments/documents.js
|
|
27321
27329
|
import { posix } from "node:path";
|
|
27322
27330
|
|
|
27323
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27331
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/attachments/container.js
|
|
27324
27332
|
import { setImmediate as tick } from "node:timers/promises";
|
|
27325
27333
|
import { crc32 } from "node:zlib";
|
|
27326
27334
|
var import_xmldom = __toESM(require_lib(), 1);
|
|
27327
27335
|
|
|
27328
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27336
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/attachments/encoding.js
|
|
27329
27337
|
var import_chardet = __toESM(require_lib2(), 1);
|
|
27330
27338
|
var import_iconv_lite = __toESM(require_lib3(), 1);
|
|
27331
27339
|
var SAMPLE = 65536;
|
|
@@ -27427,7 +27435,7 @@ var decodeXml = /* @__PURE__ */ __name((bytes2) => {
|
|
|
27427
27435
|
return result.text;
|
|
27428
27436
|
}, "decodeXml");
|
|
27429
27437
|
|
|
27430
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27438
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/attachments/container.js
|
|
27431
27439
|
var MAX_PART = 10 * 1024 * 1024;
|
|
27432
27440
|
var MAX_ENTRIES = 1e3;
|
|
27433
27441
|
var decoder = new TextDecoder("utf-8", { fatal: true });
|
|
@@ -27642,7 +27650,7 @@ var elements = /* @__PURE__ */ __name((node, name, namespace) => {
|
|
|
27642
27650
|
return found;
|
|
27643
27651
|
}, "elements");
|
|
27644
27652
|
|
|
27645
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27653
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/attachments/sheets.js
|
|
27646
27654
|
var columnName = /* @__PURE__ */ __name((column) => {
|
|
27647
27655
|
let name = "";
|
|
27648
27656
|
for (let rest = column; rest > 0; rest = Math.floor((rest - 1) / 26))
|
|
@@ -27697,7 +27705,7 @@ var sheetText = /* @__PURE__ */ __name((sheets2, maxChars = MAX_TEXT_CHARS) => {
|
|
|
27697
27705
|
return { text: parts.join("").trim(), truncated: false };
|
|
27698
27706
|
}, "sheetText");
|
|
27699
27707
|
|
|
27700
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27708
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/attachments/documents.js
|
|
27701
27709
|
var OFFICE = "urn:oasis:names:tc:opendocument:xmlns:office:1.0";
|
|
27702
27710
|
var TEXT = "urn:oasis:names:tc:opendocument:xmlns:text:1.0";
|
|
27703
27711
|
var TABLE = "urn:oasis:names:tc:opendocument:xmlns:table:1.0";
|
|
@@ -28097,10 +28105,10 @@ var readDocument = /* @__PURE__ */ __name(async (bytes2, kind, signal) => {
|
|
|
28097
28105
|
}
|
|
28098
28106
|
}, "readDocument");
|
|
28099
28107
|
|
|
28100
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28108
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/attachments/extract.js
|
|
28101
28109
|
import { extname as extname3 } from "node:path";
|
|
28102
28110
|
|
|
28103
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28111
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/readers/engine.js
|
|
28104
28112
|
import { readFileSync } from "node:fs";
|
|
28105
28113
|
import { dirname as dirname4, extname as extname2, join as join9 } from "node:path";
|
|
28106
28114
|
import { fileURLToPath } from "node:url";
|
|
@@ -28161,7 +28169,7 @@ var derived = /* @__PURE__ */ __name((bytes2, extractor, read2) => {
|
|
|
28161
28169
|
}
|
|
28162
28170
|
}, "derived");
|
|
28163
28171
|
|
|
28164
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28172
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/readers/image/index.js
|
|
28165
28173
|
var IMAGES = /* @__PURE__ */ new Set([".jpg", ".jpeg", ".png", ".webp", ".gif", ".heic", ".tif", ".tiff", ".bmp"]);
|
|
28166
28174
|
var image2 = {
|
|
28167
28175
|
id: "image",
|
|
@@ -28170,7 +28178,7 @@ var image2 = {
|
|
|
28170
28178
|
read: /* @__PURE__ */ __name(async () => ({ status: "needs-agent" }), "read")
|
|
28171
28179
|
};
|
|
28172
28180
|
|
|
28173
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28181
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/readers/doc/index.js
|
|
28174
28182
|
var OLE = "\xD0\xCF\xE0\xA1\xB1\xE1";
|
|
28175
28183
|
var doc = {
|
|
28176
28184
|
id: "doc",
|
|
@@ -28182,7 +28190,7 @@ var doc = {
|
|
|
28182
28190
|
}), "read")
|
|
28183
28191
|
};
|
|
28184
28192
|
|
|
28185
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28193
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/readers/docx/index.js
|
|
28186
28194
|
var DOCX = "application/vnd.openxmlformats-officedocument.wordprocessingml.document";
|
|
28187
28195
|
var docx = {
|
|
28188
28196
|
id: "docx",
|
|
@@ -28195,7 +28203,7 @@ var docx = {
|
|
|
28195
28203
|
}), "read")
|
|
28196
28204
|
};
|
|
28197
28205
|
|
|
28198
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28206
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/attachments/markup.js
|
|
28199
28207
|
var import_iconv_lite2 = __toESM(require_lib3(), 1);
|
|
28200
28208
|
var RTF_SKIPPED = /* @__PURE__ */ new Set([
|
|
28201
28209
|
"fonttbl",
|
|
@@ -28371,7 +28379,7 @@ var htmlText = /* @__PURE__ */ __name((source) => {
|
|
|
28371
28379
|
}, "htmlText");
|
|
28372
28380
|
var safeChar = /* @__PURE__ */ __name((code, fallback) => code > 0 && code <= 1114111 ? String.fromCodePoint(code) : fallback, "safeChar");
|
|
28373
28381
|
|
|
28374
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28382
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/readers/html/page.js
|
|
28375
28383
|
var clean = /* @__PURE__ */ __name((value) => typeof value === "string" ? value.replace(/\s+/g, " ").trim() : "", "clean");
|
|
28376
28384
|
var namesIn = /* @__PURE__ */ __name((value) => [value].flat().map((entry) => typeof entry === "string" ? clean(entry) : clean(entry?.name)).filter(Boolean).join(", "), "namesIn");
|
|
28377
28385
|
var jsonLdNodes = /* @__PURE__ */ __name((document) => {
|
|
@@ -28427,7 +28435,7 @@ var markdownSections = /* @__PURE__ */ __name((text2) => {
|
|
|
28427
28435
|
return found.map((section, index) => ({ ...section, end: found[index + 1]?.start ?? text2.length }));
|
|
28428
28436
|
}, "markdownSections");
|
|
28429
28437
|
|
|
28430
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28438
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/readers/html/index.js
|
|
28431
28439
|
var HTML = /* @__PURE__ */ new Set([".html", ".htm", ".xhtml"]);
|
|
28432
28440
|
var first = /* @__PURE__ */ __name((...values) => values.find((value) => typeof value === "string" && value !== ""), "first");
|
|
28433
28441
|
var loaded = /* @__PURE__ */ __name(async (load, name) => {
|
|
@@ -28498,7 +28506,7 @@ var html = {
|
|
|
28498
28506
|
}, "read")
|
|
28499
28507
|
};
|
|
28500
28508
|
|
|
28501
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28509
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/readers/office/index.js
|
|
28502
28510
|
var office = {
|
|
28503
28511
|
id: "office",
|
|
28504
28512
|
version: documentExtractor("odt"),
|
|
@@ -28509,7 +28517,7 @@ var office = {
|
|
|
28509
28517
|
}, "read")
|
|
28510
28518
|
};
|
|
28511
28519
|
|
|
28512
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28520
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/readers/pdf/index.js
|
|
28513
28521
|
var pdf = {
|
|
28514
28522
|
id: "pdf",
|
|
28515
28523
|
version: "unpdf",
|
|
@@ -28576,7 +28584,7 @@ var pdf = {
|
|
|
28576
28584
|
}), "read")
|
|
28577
28585
|
};
|
|
28578
28586
|
|
|
28579
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28587
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/readers/plain/index.js
|
|
28580
28588
|
var PLAIN = /* @__PURE__ */ new Set([".txt", ".md", ".markdown", ".csv", ".tsv", ".json", ".log"]);
|
|
28581
28589
|
var isPlain = /* @__PURE__ */ __name((hint) => PLAIN.has(extensionOf(hint)) || hint.mime?.startsWith("text/") || hint.mime === "application/json", "isPlain");
|
|
28582
28590
|
var readPlain = /* @__PURE__ */ __name((bytes2) => {
|
|
@@ -28596,7 +28604,7 @@ var plain = {
|
|
|
28596
28604
|
read: /* @__PURE__ */ __name(async (bytes2) => readPlain(bytes2), "read")
|
|
28597
28605
|
};
|
|
28598
28606
|
|
|
28599
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28607
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/readers/rtf/index.js
|
|
28600
28608
|
var rtf = {
|
|
28601
28609
|
id: "rtf",
|
|
28602
28610
|
version: "v1",
|
|
@@ -28604,10 +28612,10 @@ var rtf = {
|
|
|
28604
28612
|
read: /* @__PURE__ */ __name(async (bytes2) => derived(bytes2, "rtf:v1", rtfText), "read")
|
|
28605
28613
|
};
|
|
28606
28614
|
|
|
28607
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28615
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/readers/sheets/index.js
|
|
28608
28616
|
import { basename as basename5 } from "node:path";
|
|
28609
28617
|
|
|
28610
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28618
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/attachments/csv-spans.js
|
|
28611
28619
|
var delimitedSpans = /* @__PURE__ */ __name((text2, delimiter, maxCells = 1e4) => {
|
|
28612
28620
|
const cells = [];
|
|
28613
28621
|
let row = 1, column = 1, start = 0, quoted = false, truncated = false;
|
|
@@ -28645,7 +28653,7 @@ var delimitedSpans = /* @__PURE__ */ __name((text2, delimiter, maxCells = 1e4) =
|
|
|
28645
28653
|
return { cells, truncated };
|
|
28646
28654
|
}, "delimitedSpans");
|
|
28647
28655
|
|
|
28648
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28656
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/readers/sheets/index.js
|
|
28649
28657
|
var DELIMITED = {
|
|
28650
28658
|
".csv": ",",
|
|
28651
28659
|
".tsv": " ",
|
|
@@ -28684,7 +28692,7 @@ var sheets = {
|
|
|
28684
28692
|
}, "read")
|
|
28685
28693
|
};
|
|
28686
28694
|
|
|
28687
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28695
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/readers/registry.js
|
|
28688
28696
|
var BUILT_INS2 = [office, pdf, docx, doc, rtf, html, sheets, plain, image2];
|
|
28689
28697
|
var HEAD_BYTES = 1024;
|
|
28690
28698
|
var readers = [...BUILT_INS2];
|
|
@@ -28694,7 +28702,7 @@ var readWithRegistry = /* @__PURE__ */ __name(async (bytes2, hint, context2) =>
|
|
|
28694
28702
|
return reader ? reader.read(bytes2, hint, context2) : { status: "unsupported" };
|
|
28695
28703
|
}, "readWithRegistry");
|
|
28696
28704
|
|
|
28697
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28705
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/attachments/extract.js
|
|
28698
28706
|
var importEngine = /* @__PURE__ */ __name((name) => importFrom(new URL("attachments/extract.js", import.meta.resolve("@wirecat/cli-core")).href, name), "importEngine");
|
|
28699
28707
|
var extensionOf2 = /* @__PURE__ */ __name(({ name, path }) => extname3(name ?? path).toLowerCase(), "extensionOf");
|
|
28700
28708
|
var extractText = /* @__PURE__ */ __name(async (bytes2, hint, load, signal, env = process.env) => {
|
|
@@ -29773,7 +29781,7 @@ function imageSize(input) {
|
|
|
29773
29781
|
}
|
|
29774
29782
|
__name(imageSize, "imageSize");
|
|
29775
29783
|
|
|
29776
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29784
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/attachments/ocr.js
|
|
29777
29785
|
var MAX_PAGES = 20;
|
|
29778
29786
|
var MAX_PIXELS = 2e7;
|
|
29779
29787
|
var cancelled2 = /* @__PURE__ */ __name((signal) => {
|
|
@@ -29924,7 +29932,7 @@ var ocrPdf = /* @__PURE__ */ __name(async (bytes2, pipeline2, load, signal) => {
|
|
|
29924
29932
|
}
|
|
29925
29933
|
}, "ocrPdf");
|
|
29926
29934
|
|
|
29927
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29935
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/attachments/pdf-preview.js
|
|
29928
29936
|
var pdfPreview = /* @__PURE__ */ __name(async (bytes2, page, signal, load = importEngine, env = process.env) => {
|
|
29929
29937
|
const limits = pdfPreviewLimits(env);
|
|
29930
29938
|
const cancelled4 = /* @__PURE__ */ __name(() => {
|
|
@@ -30001,7 +30009,7 @@ var pdfPreview = /* @__PURE__ */ __name(async (bytes2, page, signal, load = impo
|
|
|
30001
30009
|
}
|
|
30002
30010
|
}, "pdfPreview");
|
|
30003
30011
|
|
|
30004
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30012
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/attachments/transfer.js
|
|
30005
30013
|
import { createHash as createHash8 } from "node:crypto";
|
|
30006
30014
|
import { constants } from "node:fs";
|
|
30007
30015
|
import { lstat as lstat3, open as open5 } from "node:fs/promises";
|
|
@@ -30109,7 +30117,7 @@ var transferMime = /* @__PURE__ */ __name((head, hint, name = null) => {
|
|
|
30109
30117
|
return hint !== null && /^[a-z0-9.+-]+\/[a-z0-9.+-]+$/i.test(hint) ? hint : "application/octet-stream";
|
|
30110
30118
|
}, "transferMime");
|
|
30111
30119
|
|
|
30112
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30120
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/services/file-download.js
|
|
30113
30121
|
import { createWriteStream, mkdirSync } from "node:fs";
|
|
30114
30122
|
import { link as link3, rm } from "node:fs/promises";
|
|
30115
30123
|
import { join as join10, resolve as resolve6 } from "node:path";
|
|
@@ -30223,7 +30231,7 @@ var save = /* @__PURE__ */ __name(async (file, directory2, fallbackName, { uniqu
|
|
|
30223
30231
|
}
|
|
30224
30232
|
}, "save");
|
|
30225
30233
|
|
|
30226
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30234
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/services/attachments.js
|
|
30227
30235
|
var ATTACHMENT_QUERY = {
|
|
30228
30236
|
entity: "attachment",
|
|
30229
30237
|
backend: "sql",
|
|
@@ -30646,7 +30654,7 @@ var attachmentsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
30646
30654
|
}, "setText")
|
|
30647
30655
|
}), "attachmentsService");
|
|
30648
30656
|
|
|
30649
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30657
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/services/chat-documents.js
|
|
30650
30658
|
var chatDocumentsService = /* @__PURE__ */ __name((deps) => ({
|
|
30651
30659
|
list: /* @__PURE__ */ __name(async (chat, { limit, offset, ref }) => {
|
|
30652
30660
|
const store = await accountStore(deps);
|
|
@@ -30676,7 +30684,7 @@ var chatDocumentsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
30676
30684
|
}, "list")
|
|
30677
30685
|
}), "chatDocumentsService");
|
|
30678
30686
|
|
|
30679
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30687
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/services/retention.js
|
|
30680
30688
|
var observationDuration = /* @__PURE__ */ __name((text2, flag) => {
|
|
30681
30689
|
const match = /^(\d+(?:\.\d+)?)([smhdw])$/.exec(text2);
|
|
30682
30690
|
const units2 = { s: 1e3, m: 6e4, h: 36e5, d: 864e5, w: 6048e5 };
|
|
@@ -30763,7 +30771,7 @@ var isRetentionSelection = /* @__PURE__ */ __name((selection) => {
|
|
|
30763
30771
|
}
|
|
30764
30772
|
}, "isRetentionSelection");
|
|
30765
30773
|
|
|
30766
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30774
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/services/counters.js
|
|
30767
30775
|
var counterFields = /* @__PURE__ */ __name((text2 = "views,reactions,comments") => {
|
|
30768
30776
|
const fields = text2.split(",").map((one) => one.trim());
|
|
30769
30777
|
if (!fields.length || fields.some((one) => !COUNTER_FIELDS.includes(one)) || new Set(fields).size !== fields.length)
|
|
@@ -30970,7 +30978,7 @@ var countersService = /* @__PURE__ */ __name((deps) => {
|
|
|
30970
30978
|
};
|
|
30971
30979
|
}, "countersService");
|
|
30972
30980
|
|
|
30973
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30981
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/services/search-refresh.js
|
|
30974
30982
|
var SYNC_KEY = "messages.sync-first";
|
|
30975
30983
|
var SYNC_BOUNDS = { maxChats: 5, timeMs: 3e4, maxMessages: 500 };
|
|
30976
30984
|
var keyOf2 = /* @__PURE__ */ __name((chat) => JSON.stringify([chat.account.provider, chat.account.account, chat.chatId]), "keyOf");
|
|
@@ -31062,7 +31070,7 @@ var refreshSearch = /* @__PURE__ */ __name(async (deps, request) => {
|
|
|
31062
31070
|
}
|
|
31063
31071
|
try {
|
|
31064
31072
|
const newest = (await store.messages.messages(account, chatId, { limit: 1 })).items[0];
|
|
31065
|
-
let
|
|
31073
|
+
let counted2 = 0;
|
|
31066
31074
|
const fetched = await archiveService(deps).fetch(chatId, {
|
|
31067
31075
|
limit: options.maxMessages - result.messages,
|
|
31068
31076
|
pageSize: Math.min(100, deps.messenger.fetching?.maxPageSize ?? 100),
|
|
@@ -31071,11 +31079,11 @@ var refreshSearch = /* @__PURE__ */ __name(async (deps, request) => {
|
|
|
31071
31079
|
stop,
|
|
31072
31080
|
note: note2,
|
|
31073
31081
|
onPage: /* @__PURE__ */ __name(({ fetched: fetched2 }) => {
|
|
31074
|
-
result.messages += fetched2 -
|
|
31075
|
-
|
|
31082
|
+
result.messages += fetched2 - counted2;
|
|
31083
|
+
counted2 = fetched2;
|
|
31076
31084
|
}, "onPage")
|
|
31077
31085
|
});
|
|
31078
|
-
result.messages += fetched.fetched -
|
|
31086
|
+
result.messages += fetched.fetched - counted2;
|
|
31079
31087
|
if (fetched.stopped || !fetched.complete && !fetched.reachedSince) {
|
|
31080
31088
|
result.complete = false;
|
|
31081
31089
|
result.failed.push({
|
|
@@ -31102,7 +31110,7 @@ var withRefresh = /* @__PURE__ */ __name((found, refreshed) => ({
|
|
|
31102
31110
|
...!refreshed || refreshed.complete ? {} : { coverage: { ...found.coverage, state: "stale" } }
|
|
31103
31111
|
}), "withRefresh");
|
|
31104
31112
|
|
|
31105
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31113
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/services/embeddings-search.js
|
|
31106
31114
|
var CANDIDATES = 50;
|
|
31107
31115
|
var WORD_HITS = 200;
|
|
31108
31116
|
var RRF_K = 60;
|
|
@@ -31377,13 +31385,13 @@ var meanOf = /* @__PURE__ */ __name((vectors) => {
|
|
|
31377
31385
|
return mean2.map((value) => value / length);
|
|
31378
31386
|
}, "meanOf");
|
|
31379
31387
|
|
|
31380
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31388
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/services/embeddings.js
|
|
31381
31389
|
var embeddingsService = /* @__PURE__ */ __name((deps) => ({
|
|
31382
31390
|
...embeddingsMaintenance(deps),
|
|
31383
31391
|
...embeddingsSearch(deps)
|
|
31384
31392
|
}), "embeddingsService");
|
|
31385
31393
|
|
|
31386
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31394
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/services/folders.js
|
|
31387
31395
|
var foldersService = /* @__PURE__ */ __name((deps) => {
|
|
31388
31396
|
const online = /* @__PURE__ */ __name(async (command) => {
|
|
31389
31397
|
if (deps.offline)
|
|
@@ -31524,7 +31532,7 @@ var foldersService = /* @__PURE__ */ __name((deps) => {
|
|
|
31524
31532
|
};
|
|
31525
31533
|
}, "foldersService");
|
|
31526
31534
|
|
|
31527
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31535
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/services/mentions.js
|
|
31528
31536
|
var REVIEW_COUNT = 500;
|
|
31529
31537
|
var mentionsService = /* @__PURE__ */ __name((deps) => {
|
|
31530
31538
|
const located = /* @__PURE__ */ __name(async () => {
|
|
@@ -31603,7 +31611,7 @@ var mentionsService = /* @__PURE__ */ __name((deps) => {
|
|
|
31603
31611
|
};
|
|
31604
31612
|
}, "mentionsService");
|
|
31605
31613
|
|
|
31606
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31614
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/domain/message-link.js
|
|
31607
31615
|
var fileLinks = /* @__PURE__ */ __name((attachments) => hitFiles(attachments).map(({ position, kind, name }) => ({
|
|
31608
31616
|
position,
|
|
31609
31617
|
kind,
|
|
@@ -31652,7 +31660,7 @@ var validatePermalink = /* @__PURE__ */ __name((link4) => {
|
|
|
31652
31660
|
return { url: link4.url, access: link4.access, reason: link4.reason };
|
|
31653
31661
|
}, "validatePermalink");
|
|
31654
31662
|
|
|
31655
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31663
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/domain/pin-duration.js
|
|
31656
31664
|
var spokenSeconds = /* @__PURE__ */ __name((seconds) => {
|
|
31657
31665
|
if (seconds % 86400 === 0 && seconds > 86400)
|
|
31658
31666
|
return `${seconds / 86400}d`;
|
|
@@ -31684,7 +31692,7 @@ var pinDurationOf = /* @__PURE__ */ __name((value, allowed, flag = "--expire-tim
|
|
|
31684
31692
|
return seconds;
|
|
31685
31693
|
}, "pinDurationOf");
|
|
31686
31694
|
|
|
31687
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31695
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/sends/send-as.js
|
|
31688
31696
|
var sendAsCheck = /* @__PURE__ */ __name((connection, sendAs) => {
|
|
31689
31697
|
if (sendAs === void 0) {
|
|
31690
31698
|
const saved = connection.savedSender?.bind(connection);
|
|
@@ -31709,7 +31717,7 @@ var typedSendAs = /* @__PURE__ */ __name((typed) => {
|
|
|
31709
31717
|
return sendAs;
|
|
31710
31718
|
}, "typedSendAs");
|
|
31711
31719
|
|
|
31712
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31720
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/search/total.js
|
|
31713
31721
|
var TOTAL_CAP = 1e4;
|
|
31714
31722
|
var totalOf = /* @__PURE__ */ __name((count4, shown, hasMore, exact = true) => {
|
|
31715
31723
|
const least = shown + (hasMore ? 1 : 0);
|
|
@@ -31720,7 +31728,7 @@ var totalOf = /* @__PURE__ */ __name((count4, shown, hasMore, exact = true) => {
|
|
|
31720
31728
|
return { value: count4, relation: exact ? "eq" : "gte" };
|
|
31721
31729
|
}, "totalOf");
|
|
31722
31730
|
|
|
31723
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31731
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/search/lucene/meaning-parts.js
|
|
31724
31732
|
var WORD_FIELDS = /* @__PURE__ */ new Set(["text", "exact"]);
|
|
31725
31733
|
var fieldsOfQuery = /* @__PURE__ */ __name((root, everything) => {
|
|
31726
31734
|
let narrows = false;
|
|
@@ -31749,7 +31757,7 @@ var meaningWords = /* @__PURE__ */ __name((root) => {
|
|
|
31749
31757
|
return wanted(root).join(" ").trim();
|
|
31750
31758
|
}, "meaningWords");
|
|
31751
31759
|
|
|
31752
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31760
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/search/question-plan.js
|
|
31753
31761
|
var words2 = /* @__PURE__ */ __name((text2) => normalize(text2).match(/[\p{L}\p{N}]+/gu) ?? [], "words");
|
|
31754
31762
|
var scaffolding = new Set(words2("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"));
|
|
31755
31763
|
var questionWord = /\b(?:what|which|how|who|where|when|can|could|should)\b|(?:^|\s)(?:сколько|какой|какая|какие|какое|кто|кому|кем|где|когда|как|что|можно|может|могут|ли)(?:\s|$)/iu;
|
|
@@ -31881,7 +31889,7 @@ var questionLookup = /* @__PURE__ */ __name((text2) => {
|
|
|
31881
31889
|
return terms.length ? anyOfTerms(terms, plan.scope) : void 0;
|
|
31882
31890
|
}, "questionLookup");
|
|
31883
31891
|
|
|
31884
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31892
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/services/messages-combined.js
|
|
31885
31893
|
var COMBINED_DEFAULTS = { candidateDepth: 300, rrfK: 60, rerank: "all", chatCap: 0 };
|
|
31886
31894
|
var tokensOf = /* @__PURE__ */ __name((text2) => normalize(text2).match(/[\p{L}\p{N}\p{Co}\p{M}]+/gu) ?? [], "tokensOf");
|
|
31887
31895
|
var searchCombined = /* @__PURE__ */ __name(async (store, account, request, messenger = {}, options = COMBINED_DEFAULTS) => {
|
|
@@ -32074,7 +32082,7 @@ var signals = /* @__PURE__ */ __name((hit, terms, corrections, execution, mode,
|
|
|
32074
32082
|
return mode === "coverage" ? coverage2 * 4 : mode === "proximity" ? proximity : mode === "phrase" ? phrase : coverage2 * 4 + proximity + phrase;
|
|
32075
32083
|
}, "signals");
|
|
32076
32084
|
|
|
32077
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32085
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/services/messages-discovery.js
|
|
32078
32086
|
var MEANING_DEPTH = 100;
|
|
32079
32087
|
var RRF_K2 = 60;
|
|
32080
32088
|
var RERANK_DEPTH = 50;
|
|
@@ -32399,7 +32407,7 @@ var mixedWithReranker = /* @__PURE__ */ __name((head, scores) => {
|
|
|
32399
32407
|
})).sort((a, b) => b.mixed - a.mixed).map(({ hit }) => hit);
|
|
32400
32408
|
}, "mixedWithReranker");
|
|
32401
32409
|
|
|
32402
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32410
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/services/thread-context.js
|
|
32403
32411
|
var THREAD_BOUNDS = { maxHops: 8, maxMessages: 50, maxBytes: 65536, withinMs: 864e5 };
|
|
32404
32412
|
var bytes = /* @__PURE__ */ __name((items, links) => Buffer.byteLength(JSON.stringify({ items, links }), "utf8"), "bytes");
|
|
32405
32413
|
var threadBounds = /* @__PURE__ */ __name((options = {}) => {
|
|
@@ -32598,7 +32606,7 @@ var readThreadContext = /* @__PURE__ */ __name(async (store, account, chat, mess
|
|
|
32598
32606
|
return result;
|
|
32599
32607
|
}, "readThreadContext");
|
|
32600
32608
|
|
|
32601
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32609
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/services/messages-archive-search.js
|
|
32602
32610
|
var SEARCH_FILL_MS = 200;
|
|
32603
32611
|
var statsStore = /* @__PURE__ */ __name(async (store, account, request, messenger = {}) => {
|
|
32604
32612
|
const stop = Date.now() + SEARCH_FILL_MS;
|
|
@@ -32665,12 +32673,12 @@ var accountOf2 = /* @__PURE__ */ __name((hit) => {
|
|
|
32665
32673
|
}, "accountOf");
|
|
32666
32674
|
var keyOf3 = /* @__PURE__ */ __name(({ provider, account }) => `${provider}/${account}`, "keyOf");
|
|
32667
32675
|
|
|
32668
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32676
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/services/pictures.js
|
|
32669
32677
|
import { createHash as createHash10 } from "node:crypto";
|
|
32670
32678
|
import { readFile as readFile2, stat as stat3 } from "node:fs/promises";
|
|
32671
32679
|
import { setTimeout as sleep4 } from "node:timers/promises";
|
|
32672
32680
|
|
|
32673
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32681
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/domain/models.js
|
|
32674
32682
|
var GROUP_SETTINGS = [
|
|
32675
32683
|
"allCanPin",
|
|
32676
32684
|
"onlyAdminsAdd",
|
|
@@ -32684,7 +32692,7 @@ var ADMIN_RIGHTS = ["read", "members", "admins", "info", "pin", "link", "post",
|
|
|
32684
32692
|
var senderIsMe = /* @__PURE__ */ __name((message, account) => message.outgoing === true || message.senderId !== null && String(message.senderId) === account, "senderIsMe");
|
|
32685
32693
|
var MEDIA_KINDS = ["photo", "video", "file", "audio", "link"];
|
|
32686
32694
|
|
|
32687
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32695
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/services/pictures.js
|
|
32688
32696
|
var PICTURE_MAX_BYTES = 25 * 1024 * 1024;
|
|
32689
32697
|
var PICTURE_FLOOR = 0.25;
|
|
32690
32698
|
var PAGE4 = 50;
|
|
@@ -32701,7 +32709,7 @@ var picturesService = /* @__PURE__ */ __name((deps) => {
|
|
|
32701
32709
|
const directory2 = imageModelsDirectory(deps.env);
|
|
32702
32710
|
if (!isImageModelInstalled(model2, directory2))
|
|
32703
32711
|
throw new CliError("not_found", missingModel(model2.id), { reason: "model.not-downloaded", model: model2.id });
|
|
32704
|
-
const { openPictureEmbedder } = await import("./embedder-
|
|
32712
|
+
const { openPictureEmbedder } = await import("./embedder-DUN62H3Z.js");
|
|
32705
32713
|
return openPictureEmbedder(model2, directory2);
|
|
32706
32714
|
}, "open");
|
|
32707
32715
|
const embedder = /* @__PURE__ */ __name(() => {
|
|
@@ -32898,7 +32906,7 @@ var withPictures = /* @__PURE__ */ __name((messages, pictures) => ({
|
|
|
32898
32906
|
}, "search")
|
|
32899
32907
|
}), "withPictures");
|
|
32900
32908
|
|
|
32901
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32909
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/services/messages-meaning.js
|
|
32902
32910
|
var meaningLane = /* @__PURE__ */ __name((deps) => async (question, accounts, shared, within) => {
|
|
32903
32911
|
const target2 = embeddingTarget(deps, DEFAULT_TEXT_MODEL);
|
|
32904
32912
|
const skipped = /* @__PURE__ */ __name((reason, step) => ({
|
|
@@ -32966,7 +32974,7 @@ var meaningLane = /* @__PURE__ */ __name((deps) => async (question, accounts, sh
|
|
|
32966
32974
|
}
|
|
32967
32975
|
}, "meaningLane");
|
|
32968
32976
|
|
|
32969
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32977
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/services/messages-rerank.js
|
|
32970
32978
|
var rerankLane = /* @__PURE__ */ __name((deps) => {
|
|
32971
32979
|
const choice = deps.reranker ?? DEFAULT_RERANK_MODEL;
|
|
32972
32980
|
if (choice === "off")
|
|
@@ -32978,9 +32986,9 @@ var rerankLane = /* @__PURE__ */ __name((deps) => {
|
|
|
32978
32986
|
return { skipped: { reason: `${model.id} is not downloaded`, step: "models.download", model: model.id } };
|
|
32979
32987
|
try {
|
|
32980
32988
|
const warm = deps.embedders;
|
|
32981
|
-
const reranker = warm ? await warm.reranker(`rerank:${model.id}`, async () => (await import("./process-
|
|
32989
|
+
const reranker = warm ? await warm.reranker(`rerank:${model.id}`, async () => (await import("./process-P73TFAXT.js")).openRerankerProcess(model, directory2, {
|
|
32982
32990
|
threads: defaultThreads()
|
|
32983
|
-
})) : await (await import("./rerank-
|
|
32991
|
+
})) : await (await import("./rerank-SUFYK63I.js")).openReranker(model, directory2);
|
|
32984
32992
|
return {
|
|
32985
32993
|
model: model.id,
|
|
32986
32994
|
score: /* @__PURE__ */ __name((question, passages) => reranker.score(plainWords(question), passages), "score"),
|
|
@@ -33000,17 +33008,17 @@ var rerankLane = /* @__PURE__ */ __name((deps) => {
|
|
|
33000
33008
|
};
|
|
33001
33009
|
}, "rerankLane");
|
|
33002
33010
|
|
|
33003
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33011
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/services/document-pictures.js
|
|
33004
33012
|
var openPictureEmbedderFor = /* @__PURE__ */ __name(async ({ env, command } = {}) => {
|
|
33005
33013
|
const model = imageModel(DEFAULT_IMAGE_MODEL);
|
|
33006
33014
|
const directory2 = imageModelsDirectory(env);
|
|
33007
33015
|
if (!isImageModelInstalled(model, directory2))
|
|
33008
33016
|
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 });
|
|
33009
|
-
const { openPictureEmbedder } = await import("./embedder-
|
|
33017
|
+
const { openPictureEmbedder } = await import("./embedder-DUN62H3Z.js");
|
|
33010
33018
|
return openPictureEmbedder(model, directory2);
|
|
33011
33019
|
}, "openPictureEmbedderFor");
|
|
33012
33020
|
|
|
33013
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33021
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/services/document-source.js
|
|
33014
33022
|
var documentSource = /* @__PURE__ */ __name((note2, accounts, profiles, file) => {
|
|
33015
33023
|
const metadata = note2.frontMatter;
|
|
33016
33024
|
const account = accounts.find(({ id: id2 }) => String(id2) === note2.folderId);
|
|
@@ -33025,7 +33033,7 @@ var documentSource = /* @__PURE__ */ __name((note2, accounts, profiles, file) =>
|
|
|
33025
33033
|
};
|
|
33026
33034
|
}, "documentSource");
|
|
33027
33035
|
|
|
33028
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33036
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/services/notes-title-tier.js
|
|
33029
33037
|
var plainQueryWords = /* @__PURE__ */ __name((query) => {
|
|
33030
33038
|
let root;
|
|
33031
33039
|
try {
|
|
@@ -33052,7 +33060,7 @@ var titleTiers = /* @__PURE__ */ __name((hits, words3) => {
|
|
|
33052
33060
|
return [...hits].sort((a, b) => rank(a) - rank(b));
|
|
33053
33061
|
}, "titleTiers");
|
|
33054
33062
|
|
|
33055
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33063
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/services/notes-search.js
|
|
33056
33064
|
var storeQuery = /* @__PURE__ */ __name(async (store, text2, { exact, timezone } = {}) => resolvedQuery(store, parsedQuery(text2, exact), timezone), "storeQuery");
|
|
33057
33065
|
var parsedQuery = /* @__PURE__ */ __name((text2, exact) => validateFields(parseLucene(text2, { ...SEARCH_QUERY, defaultField: exact ? "exact" : "text" })).root, "parsedQuery");
|
|
33058
33066
|
var resolvedQuery = /* @__PURE__ */ __name(async (store, root, timezone) => {
|
|
@@ -33331,13 +33339,13 @@ var searchNotes = /* @__PURE__ */ __name(async (store, query, { limit = 20, offs
|
|
|
33331
33339
|
meaningSkipped = error.message;
|
|
33332
33340
|
}
|
|
33333
33341
|
}
|
|
33334
|
-
const
|
|
33335
|
-
const titled =
|
|
33336
|
-
text: [titleQuery(
|
|
33342
|
+
const titleWords2 = plainQueryWords(rest);
|
|
33343
|
+
const titled = titleWords2 === void 0 ? { items: [], hasMore: false } : await searchNotesQuery(store, {
|
|
33344
|
+
text: [titleQuery(titleWords2), filter ?? ""].filter(Boolean).join(" AND "),
|
|
33337
33345
|
limit: Math.max(window3, CANDIDATES2),
|
|
33338
33346
|
...scope
|
|
33339
33347
|
});
|
|
33340
|
-
const tier =
|
|
33348
|
+
const tier = titleWords2 === void 0 ? [] : titleTiers(titled.items, titleWords2);
|
|
33341
33349
|
const tierRefs = new Set(tier.map(({ ref }) => ref));
|
|
33342
33350
|
const slice = meaning === void 0 && tier.length === 0;
|
|
33343
33351
|
const matched = await searchNotesQuery(store, {
|
|
@@ -33469,7 +33477,7 @@ var searchNotesOf = /* @__PURE__ */ __name(async (store, account, text2, { accou
|
|
|
33469
33477
|
};
|
|
33470
33478
|
}, "searchNotesOf");
|
|
33471
33479
|
|
|
33472
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33480
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/services/events-search.js
|
|
33473
33481
|
var MAX_EVENTS_OFFSET = 1e3;
|
|
33474
33482
|
var iso3 = /* @__PURE__ */ __name((at) => at === null ? null : new Date(at).toISOString(), "iso");
|
|
33475
33483
|
var accountIdsOf = /* @__PURE__ */ __name(async (store, accounts) => {
|
|
@@ -33586,8 +33594,8 @@ var searchEvents = /* @__PURE__ */ __name(async (store, query, { limit = 20, off
|
|
|
33586
33594
|
};
|
|
33587
33595
|
}, "searchEvents");
|
|
33588
33596
|
|
|
33589
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33590
|
-
var RESOURCES_SEARCHED = ["messages", "mail", "notes", "events"];
|
|
33597
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/services/search-all.js
|
|
33598
|
+
var RESOURCES_SEARCHED = ["messages", "mail", "notes", "events", "crm"];
|
|
33591
33599
|
var skippable = /* @__PURE__ */ __name((error) => error instanceof CliError && (error.code === "validation_error" || error.code === "not_found"), "skippable");
|
|
33592
33600
|
var filtersBeside = /* @__PURE__ */ __name((text2) => {
|
|
33593
33601
|
const { root } = parseLucene(text2, MESSAGE_PARSING);
|
|
@@ -33595,6 +33603,15 @@ var filtersBeside = /* @__PURE__ */ __name((text2) => {
|
|
|
33595
33603
|
const top = root.kind === "boolean" ? root.clauses : [{ node: root, occur: "must" }];
|
|
33596
33604
|
return top.every(({ node, occur }) => occur !== "must_not" && followable(node, occur === "must")) ? planQuestion(text2).scope : void 0;
|
|
33597
33605
|
}, "filtersBeside");
|
|
33606
|
+
var titleWords = /* @__PURE__ */ __name((text2) => {
|
|
33607
|
+
const { root } = parseLucene(text2, SEARCH_QUERY);
|
|
33608
|
+
const clauses = root.kind === "boolean" ? root.clauses : [{ node: root, occur: "must" }];
|
|
33609
|
+
const words3 = clauses.map(({ node, occur }) => occur !== "must_not" && node.kind === "predicate" && node.field === "text" && (node.operator === "term" || node.operator === "phrase") ? node.value : (() => {
|
|
33610
|
+
throw new CliError("validation_error", "deals and leads are found by the words of their title only");
|
|
33611
|
+
})());
|
|
33612
|
+
return { words: words3, anyWord: clauses.length > 1 && clauses.every(({ occur }) => occur === "should") };
|
|
33613
|
+
}, "titleWords");
|
|
33614
|
+
var crmAccounts = /* @__PURE__ */ __name(async (store) => (await store.accounts.accounts()).filter(({ provider }) => kindIn(provider) === "crm"), "crmAccounts");
|
|
33598
33615
|
var searchAll = /* @__PURE__ */ __name(async (store, account, request, messenger = {}, searchMessages = (query) => searchStore(store, account, query, messenger), meaning) => {
|
|
33599
33616
|
if (!request.text.trim())
|
|
33600
33617
|
throw new CliError("validation_error", "say what to find");
|
|
@@ -33773,6 +33790,29 @@ var searchAll = /* @__PURE__ */ __name(async (store, account, request, messenger
|
|
|
33773
33790
|
foundBy: hit.found_by
|
|
33774
33791
|
})));
|
|
33775
33792
|
accounts.push(...read2.map(({ provider, account: account2 }) => ({ resource, provider, account: account2 })));
|
|
33793
|
+
} else if (resource === "crm") {
|
|
33794
|
+
const { words: words3, anyWord } = titleWords(request.text);
|
|
33795
|
+
const chosen = request.scope?.crm;
|
|
33796
|
+
const found = await store.deals.find({
|
|
33797
|
+
words: words3,
|
|
33798
|
+
anyWord: anyWord || discover,
|
|
33799
|
+
limit: Math.min(window3 + 1, 500),
|
|
33800
|
+
...chosen === void 0 ? {} : { accounts: chosen }
|
|
33801
|
+
});
|
|
33802
|
+
hasMore ||= found.length > window3;
|
|
33803
|
+
lists.push(found.slice(0, window3).map((deal) => ({
|
|
33804
|
+
kind: deal.kind,
|
|
33805
|
+
ref: deal.ref,
|
|
33806
|
+
provider: deal.account?.provider ?? "crm",
|
|
33807
|
+
account: deal.account?.account ?? INTERNAL_NOTES,
|
|
33808
|
+
title: deal.title,
|
|
33809
|
+
timestamp: deal.updatedAt,
|
|
33810
|
+
text: deal.summary,
|
|
33811
|
+
foundBy: ["title"]
|
|
33812
|
+
})));
|
|
33813
|
+
const read2 = chosen ?? [...await crmAccounts(store), { provider: "crm", account: INTERNAL_NOTES }];
|
|
33814
|
+
for (const { provider, account: account2 } of read2)
|
|
33815
|
+
accounts.push({ resource, provider, account: account2 });
|
|
33776
33816
|
} else
|
|
33777
33817
|
lists.push(await messagesOf(resource));
|
|
33778
33818
|
searched.push(resource);
|
|
@@ -33815,7 +33855,7 @@ var oneList = /* @__PURE__ */ __name((lists, cosines) => {
|
|
|
33815
33855
|
return [...place.values()].sort((a, b) => a.rank - b.rank || cosine(b.item.ref) - cosine(a.item.ref)).map(({ item: item2 }) => item2);
|
|
33816
33856
|
}, "oneList");
|
|
33817
33857
|
|
|
33818
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33858
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/services/search-all-meetings.js
|
|
33819
33859
|
var RESOURCES_SEARCHED_WITH_MEETINGS = [...RESOURCES_SEARCHED, "meetings"];
|
|
33820
33860
|
var whole2 = /* @__PURE__ */ __name((value, minimum, maximum, label) => {
|
|
33821
33861
|
if (!Number.isSafeInteger(value) || value < minimum || value > maximum)
|
|
@@ -34060,7 +34100,8 @@ var searchAllOfSource = /* @__PURE__ */ __name(async (store, account, source, re
|
|
|
34060
34100
|
messages: named2("messages"),
|
|
34061
34101
|
mail: named2("mail"),
|
|
34062
34102
|
notes: named2("notes"),
|
|
34063
|
-
events: named2("events")
|
|
34103
|
+
events: named2("events"),
|
|
34104
|
+
crm: named2("crm")
|
|
34064
34105
|
},
|
|
34065
34106
|
...meetings[0] ? { meetingAccount: meetings[0] } : {}
|
|
34066
34107
|
}, messenger, searchMessages, meaning);
|
|
@@ -34068,7 +34109,7 @@ var searchAllOfSource = /* @__PURE__ */ __name(async (store, account, source, re
|
|
|
34068
34109
|
return { ...found, skipped: [...skipped, ...empty2, ...unnamed, ...found.skipped] };
|
|
34069
34110
|
}, "searchAllOfSource");
|
|
34070
34111
|
|
|
34071
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34112
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/services/server-search.js
|
|
34072
34113
|
var SERVER_SEARCH_KEY = "messages.server-search";
|
|
34073
34114
|
var SERVER_BOUNDS = { timeMs: 5e3, perCall: 100, maxCalls: 3, textBytes: 262144 };
|
|
34074
34115
|
var DEFAULT_BACKEND = "both";
|
|
@@ -34257,7 +34298,7 @@ var searchServer = /* @__PURE__ */ __name(async (deps, request) => {
|
|
|
34257
34298
|
return { report, sources };
|
|
34258
34299
|
}, "searchServer");
|
|
34259
34300
|
|
|
34260
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34301
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/services/messages.js
|
|
34261
34302
|
var DELETE_AT_ONCE = 10;
|
|
34262
34303
|
var filesOf = /* @__PURE__ */ __name(({ attachments }) => {
|
|
34263
34304
|
const files = fileLinks(attachments);
|
|
@@ -34698,7 +34739,7 @@ var checkMediaOptions = /* @__PURE__ */ __name((messenger, asked, attachments) =
|
|
|
34698
34739
|
throw new CliError("validation_error", `${MEDIA_FLAGS[first2]} needs a --photo or --file`);
|
|
34699
34740
|
}, "checkMediaOptions");
|
|
34700
34741
|
|
|
34701
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34742
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/domain/channel-tags.js
|
|
34702
34743
|
var CHANNEL_TAG_RULES_VERSION = "keywords-v1";
|
|
34703
34744
|
var RULES = {
|
|
34704
34745
|
ai: [/\b(ai|gpt|llm|machine learning|artificial intelligence)\b/iu, /нейросет|искусственн/iu],
|
|
@@ -34713,7 +34754,7 @@ var classifyChannel = /* @__PURE__ */ __name((metadata) => Object.entries(RULES)
|
|
|
34713
34754
|
return fields.length ? [{ tag, score: fields.length / 3, fields }] : [];
|
|
34714
34755
|
}), "classifyChannel");
|
|
34715
34756
|
|
|
34716
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34757
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/services/metadata.js
|
|
34717
34758
|
var metadataService = /* @__PURE__ */ __name((deps) => {
|
|
34718
34759
|
const held = /* @__PURE__ */ __name(async (reference, { includeLeft = false } = {}) => {
|
|
34719
34760
|
const store = await deps.store();
|
|
@@ -34799,7 +34840,7 @@ var metadataService = /* @__PURE__ */ __name((deps) => {
|
|
|
34799
34840
|
};
|
|
34800
34841
|
}, "metadataService");
|
|
34801
34842
|
|
|
34802
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34843
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/moderation/run.js
|
|
34803
34844
|
var FIRST_LOOK_MS = 24 * 36e5;
|
|
34804
34845
|
var moderateWith = /* @__PURE__ */ __name(async (run) => {
|
|
34805
34846
|
const { chatId, title, rules, point, since, dryRun } = run;
|
|
@@ -34836,7 +34877,7 @@ var moderateWith = /* @__PURE__ */ __name(async (run) => {
|
|
|
34836
34877
|
return { chatId, rows, notes };
|
|
34837
34878
|
}, "moderateWith");
|
|
34838
34879
|
|
|
34839
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34880
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/services/moderation.js
|
|
34840
34881
|
var moderationService = /* @__PURE__ */ __name((deps) => {
|
|
34841
34882
|
const file = /* @__PURE__ */ __name(() => new ModerationRules(moderationPathFor(deps.messenger.app, deps.profile ?? "default", deps.env ?? process.env)), "file");
|
|
34842
34883
|
const group = /* @__PURE__ */ __name(async (chat) => {
|
|
@@ -34914,7 +34955,7 @@ var moderatorOf = /* @__PURE__ */ __name((adapter, deps) => ({
|
|
|
34914
34955
|
}, "removePerson")
|
|
34915
34956
|
}), "moderatorOf");
|
|
34916
34957
|
|
|
34917
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34958
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/services/private-people.js
|
|
34918
34959
|
var noteItem = /* @__PURE__ */ __name((provider, note2) => ({
|
|
34919
34960
|
id: note2.id,
|
|
34920
34961
|
contact: formatReference({ type: "contact", provider, id: note2.personId }),
|
|
@@ -34958,7 +34999,7 @@ var privatePeopleService = /* @__PURE__ */ __name((deps) => {
|
|
|
34958
34999
|
};
|
|
34959
35000
|
}, "privatePeopleService");
|
|
34960
35001
|
|
|
34961
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35002
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/services/rankings.js
|
|
34962
35003
|
var empty = /* @__PURE__ */ __name(() => ({
|
|
34963
35004
|
total: 0,
|
|
34964
35005
|
population: 0,
|
|
@@ -35214,7 +35255,7 @@ var rankingsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
35214
35255
|
}, "evidence")
|
|
35215
35256
|
}), "rankingsService");
|
|
35216
35257
|
|
|
35217
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35258
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/services/reply-stats.js
|
|
35218
35259
|
var FIELDS = ["date", "chat", "kind"];
|
|
35219
35260
|
var WAITING_TAIL = 100;
|
|
35220
35261
|
var plainOnly = /* @__PURE__ */ __name((text2, command) => {
|
|
@@ -35341,7 +35382,7 @@ var replyStatsService = /* @__PURE__ */ __name((deps) => {
|
|
|
35341
35382
|
};
|
|
35342
35383
|
}, "replyStatsService");
|
|
35343
35384
|
|
|
35344
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35385
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/services/searches.js
|
|
35345
35386
|
var savedSearchItem = /* @__PURE__ */ __name((one) => ({
|
|
35346
35387
|
id: one.id,
|
|
35347
35388
|
name: one.name,
|
|
@@ -35470,7 +35511,7 @@ var searchesService = /* @__PURE__ */ __name((deps) => {
|
|
|
35470
35511
|
};
|
|
35471
35512
|
}, "searchesService");
|
|
35472
35513
|
|
|
35473
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35514
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/services/tags.js
|
|
35474
35515
|
var TAGGING_QUERY = {
|
|
35475
35516
|
entity: "tagging",
|
|
35476
35517
|
backend: "sql",
|
|
@@ -35554,7 +35595,7 @@ var tagsService = /* @__PURE__ */ __name((deps) => {
|
|
|
35554
35595
|
};
|
|
35555
35596
|
}, "tagsService");
|
|
35556
35597
|
|
|
35557
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35598
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/services/topics.js
|
|
35558
35599
|
var actionOf = /* @__PURE__ */ __name(({ title, closed, pinned, hidden, icon }) => {
|
|
35559
35600
|
const set = [closed, pinned, hidden].filter((one) => one !== void 0).length;
|
|
35560
35601
|
if (title !== void 0 || icon !== void 0 || set !== 1)
|
|
@@ -35753,7 +35794,7 @@ var topicsService = /* @__PURE__ */ __name((deps) => {
|
|
|
35753
35794
|
};
|
|
35754
35795
|
}, "topicsService");
|
|
35755
35796
|
|
|
35756
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35797
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/services/evidence.js
|
|
35757
35798
|
import { createHash as createHash11, randomUUID as randomUUID5 } from "node:crypto";
|
|
35758
35799
|
var hash2 = /* @__PURE__ */ __name((value) => createHash11("sha256").update(JSON.stringify(value)).digest("hex"), "hash");
|
|
35759
35800
|
var positive = /* @__PURE__ */ __name((value, name, minimum = 1) => {
|
|
@@ -35827,7 +35868,7 @@ var prepareEvidencePacket = /* @__PURE__ */ __name(({ kind, source, page, limits
|
|
|
35827
35868
|
return { ...content, id: randomUUID5(), fingerprint: hash2(content) };
|
|
35828
35869
|
}, "prepareEvidencePacket");
|
|
35829
35870
|
|
|
35830
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35871
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/services/evidence-read.js
|
|
35831
35872
|
var readEvidencePacket = /* @__PURE__ */ __name(async (store, account, { chat, limit, before: before2 }, messenger = {}) => {
|
|
35832
35873
|
if (!Number.isSafeInteger(limit) || limit < 1 || limit > 100)
|
|
35833
35874
|
throw new CliError("validation_error", "evidence message limit must be an integer from 1 to 100");
|
|
@@ -35847,7 +35888,7 @@ var readEvidencePacket = /* @__PURE__ */ __name(async (store, account, { chat, l
|
|
|
35847
35888
|
return { ...packet, nextBeforeId: older && last ? last.id : null };
|
|
35848
35889
|
}, "readEvidencePacket");
|
|
35849
35890
|
|
|
35850
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35891
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/services/meeting-project-discovery.js
|
|
35851
35892
|
var scopeKeys = [
|
|
35852
35893
|
"accountId",
|
|
35853
35894
|
"meetingId",
|
|
@@ -35869,7 +35910,7 @@ var optionKeys = /* @__PURE__ */ new Set([
|
|
|
35869
35910
|
"maxVocabularyReadBytes"
|
|
35870
35911
|
]);
|
|
35871
35912
|
|
|
35872
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35913
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/context/communication-selection.js
|
|
35873
35914
|
var communicationFields = {
|
|
35874
35915
|
sources: pipe(array(strictObject({
|
|
35875
35916
|
id: pipe(string(), regex(/^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$/)),
|
|
@@ -35901,7 +35942,7 @@ var communicationRequest = /* @__PURE__ */ __name((value, preparationAfter) => {
|
|
|
35901
35942
|
return { ...input, after, before: before2 };
|
|
35902
35943
|
}, "communicationRequest");
|
|
35903
35944
|
|
|
35904
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35945
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/services/meeting-preparation-validation.js
|
|
35905
35946
|
var MEETING_PREPARATION_LIMITS = {
|
|
35906
35947
|
meetings: { min: 1, max: 20, default: 5 },
|
|
35907
35948
|
cues: { min: 1, max: 100, default: 10 },
|
|
@@ -35974,7 +36015,7 @@ var validateMeetingPreparationRequest = /* @__PURE__ */ __name((externalId, orig
|
|
|
35974
36015
|
};
|
|
35975
36016
|
}, "validateMeetingPreparationRequest");
|
|
35976
36017
|
|
|
35977
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36018
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/services/meeting-communications-selection.js
|
|
35978
36019
|
var validatePreparationCommunications = /* @__PURE__ */ __name((section, request, after) => {
|
|
35979
36020
|
const fail2 = /* @__PURE__ */ __name(() => {
|
|
35980
36021
|
throw new CliError("invalid_response", "Preparation communications returned another selection or invalid evidence");
|
|
@@ -36022,7 +36063,7 @@ var validatePreparationCommunications = /* @__PURE__ */ __name((section, request
|
|
|
36022
36063
|
}
|
|
36023
36064
|
}, "validatePreparationCommunications");
|
|
36024
36065
|
|
|
36025
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36066
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/services/package-upgrade.js
|
|
36026
36067
|
var upgradePackage = /* @__PURE__ */ __name(async ({ current, command, packageName, check: check2 }, ports) => {
|
|
36027
36068
|
const installer = ports.installer();
|
|
36028
36069
|
const argv = updateCommand(installer, packageName);
|
|
@@ -36087,7 +36128,7 @@ var dayAfter = /* @__PURE__ */ __name((published) => {
|
|
|
36087
36128
|
return Number.isNaN(time) ? null : new Date(time + 24 * 60 * 60 * 1e3).toISOString();
|
|
36088
36129
|
}, "dayAfter");
|
|
36089
36130
|
|
|
36090
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36131
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/services/index.js
|
|
36091
36132
|
var servicesFor = /* @__PURE__ */ __name((deps) => {
|
|
36092
36133
|
const pictures = picturesService(deps);
|
|
36093
36134
|
const base = {
|
|
@@ -36124,7 +36165,7 @@ var servicesFor = /* @__PURE__ */ __name((deps) => {
|
|
|
36124
36165
|
return deps.messenger.services ? { ...base, ...deps.messenger.services(base, deps) } : base;
|
|
36125
36166
|
}, "servicesFor");
|
|
36126
36167
|
|
|
36127
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36168
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/background/relay.js
|
|
36128
36169
|
import { createHash as createHash12 } from "node:crypto";
|
|
36129
36170
|
import { chmodSync, lstatSync, mkdirSync as mkdirSync3, rmSync } from "node:fs";
|
|
36130
36171
|
import { createConnection, createServer } from "node:net";
|
|
@@ -36345,7 +36386,7 @@ var relayCommand = /* @__PURE__ */ __name((path, request, options) => new Promis
|
|
|
36345
36386
|
}, () => finish({ error: stopped() }));
|
|
36346
36387
|
}), "relayCommand");
|
|
36347
36388
|
|
|
36348
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36389
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.80.1_commander@15.0.0_esbuild@0.28.2_type_4c7167080feb2ba6356a64767981f5fd/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-relay.js
|
|
36349
36390
|
var lentConnection = /* @__PURE__ */ __name((connection, watchers) => throughWrapper(connection, {
|
|
36350
36391
|
close: /* @__PURE__ */ __name(async () => {
|
|
36351
36392
|
}, "close"),
|