@wirecat/cli-memo 0.131.17 → 0.131.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bin/memo.js +2 -2
- package/dist/bundle/{all-profiles-T5FHXOPF.js → all-profiles-MVF2XGZK.js} +5 -4
- package/dist/bundle/{anthropic-PHVNLFRZ.js → anthropic-OPFHMF2S.js} +3 -3
- package/dist/bundle/{app-server-B3CY5NR7.js → app-server-VHVC55S3.js} +35 -34
- package/dist/bundle/auto-F53FUP45.js +82 -0
- package/dist/bundle/{bun-XU55PNTO.js → bun-P6TMDZGU.js} +2 -2
- package/dist/bundle/{bun-sqlite-KODHIZ3K.js → bun-sqlite-3G3NLK4O.js} +2 -2
- package/dist/bundle/{chunk-LQ5UAGPT.js → chunk-2KOVYXWK.js} +2291 -799
- package/dist/bundle/{chunk-XSILYUVP.js → chunk-2R25UBIH.js} +20 -20
- package/dist/bundle/{chunk-PBBADVLT.js → chunk-36ULPM2W.js} +2 -2
- package/dist/bundle/{chunk-EMI2IDP5.js → chunk-3ORDQ62F.js} +6 -6
- package/dist/bundle/{chunk-6ATZ453X.js → chunk-4MIPN37I.js} +459 -158
- package/dist/bundle/{chunk-GZ7QIMRX.js → chunk-4TERVG26.js} +7 -1
- package/dist/bundle/{chunk-SGVRFADD.js → chunk-4VKNUBD5.js} +5 -5
- package/dist/bundle/{chunk-47U4HRPP.js → chunk-57Q6NXQT.js} +3 -3
- package/dist/bundle/{chunk-CYFMLJRG.js → chunk-5KUPVC5M.js} +1 -1
- package/dist/bundle/{chunk-4WHPVXZ5.js → chunk-5XDYV2YT.js} +1 -1
- package/dist/bundle/{chunk-SSUQPDR7.js → chunk-63XICXGM.js} +1 -1
- package/dist/bundle/{chunk-OO5PSCYL.js → chunk-66YZUX2C.js} +4 -4
- package/dist/bundle/{chunk-7FCFK5A5.js → chunk-6DG7VK3H.js} +2 -2
- package/dist/bundle/{chunk-UXNGJ5KC.js → chunk-7J5HTZCM.js} +1 -1
- package/dist/bundle/{chunk-KLDHQWJ2.js → chunk-BINR6MJ5.js} +1 -1
- package/dist/bundle/{chunk-5VSLMXE2.js → chunk-BMHSGZNE.js} +4 -4
- package/dist/bundle/{chunk-JWZIP2UJ.js → chunk-BPYQYZXA.js} +10 -10
- package/dist/bundle/{chunk-S5HW37G6.js → chunk-D6G23NFJ.js} +1 -1
- package/dist/bundle/{chunk-JX2JC4VV.js → chunk-DLRLOGVU.js} +23 -4
- package/dist/bundle/{chunk-HR3GJMED.js → chunk-EFKEG2BA.js} +2 -2
- package/dist/bundle/{chunk-6N6FNKT4.js → chunk-EL4ZKQUN.js} +2 -2
- package/dist/bundle/{chunk-TPFPWZGB.js → chunk-EMKFG5BP.js} +2 -2
- package/dist/bundle/{chunk-G4H2CVWX.js → chunk-F5CQ2NVA.js} +10 -87
- package/dist/bundle/{chunk-Z7OTEPTP.js → chunk-FMSA2X3E.js} +1 -1
- package/dist/bundle/{chunk-DBSWX4D2.js → chunk-GJKM32WA.js} +20 -20
- package/dist/bundle/{chunk-XRXLLVM2.js → chunk-IW3U6XXI.js} +3 -3
- package/dist/bundle/chunk-JDJDNMCP.js +93 -0
- package/dist/bundle/{chunk-OFOATVS5.js → chunk-JHKTN6NL.js} +9 -9
- package/dist/bundle/{chunk-MP5VZZMR.js → chunk-KO455254.js} +12 -12
- package/dist/bundle/{chunk-5C6B3MNJ.js → chunk-KVVDRD7M.js} +1 -1
- package/dist/bundle/{chunk-2CDGVXXN.js → chunk-LDVU22MF.js} +5 -5
- package/dist/bundle/{chunk-QVM24RSA.js → chunk-LEUNYKL6.js} +2 -2
- package/dist/bundle/{chunk-ASULRGXI.js → chunk-LKYHSVQL.js} +7 -7
- package/dist/bundle/{chunk-PIIK4CAE.js → chunk-LQJ4KHXK.js} +8 -8
- package/dist/bundle/{chunk-EIJMXN2G.js → chunk-NKTAEBCU.js} +3 -3
- package/dist/bundle/{chunk-YTRGKGLT.js → chunk-OTHEM74Z.js} +5 -5
- package/dist/bundle/{chunk-QPARISUU.js → chunk-OVFMY6ZP.js} +1 -1
- package/dist/bundle/{chunk-X6BSGHTT.js → chunk-P22V2OLJ.js} +43 -9
- package/dist/bundle/{chunk-RXDMVHUB.js → chunk-P3TYFDMP.js} +4 -4
- package/dist/bundle/{chunk-HMPSGU4S.js → chunk-RFB5LOYR.js} +4 -4
- package/dist/bundle/{chunk-NZCKOPKU.js → chunk-RITXQKYG.js} +5 -5
- package/dist/bundle/{chunk-65VTPQQA.js → chunk-SHDZVM3B.js} +1 -1
- package/dist/bundle/{chunk-BXUDUNOK.js → chunk-SJLVBJ2L.js} +1 -1
- package/dist/bundle/{chunk-XJHY7NNU.js → chunk-SO6VNTF6.js} +1 -1
- package/dist/bundle/{chunk-YN4FBMXV.js → chunk-T557KUST.js} +2 -2
- package/dist/bundle/{chunk-KA2CKNGF.js → chunk-TQNQS6TR.js} +43 -43
- package/dist/bundle/{chunk-FITNKTJB.js → chunk-UC4IL2P7.js} +1 -1
- package/dist/bundle/{chunk-7AIR3RVV.js → chunk-V7DZG62U.js} +7 -7
- package/dist/bundle/{chunk-NCKQYO23.js → chunk-VQGVPDMH.js} +11 -11
- package/dist/bundle/{chunk-BNWPOSGL.js → chunk-VUWUSGSN.js} +4 -4
- package/dist/bundle/{chunk-RW2YXWQG.js → chunk-WOIRWVDJ.js} +644 -357
- package/dist/bundle/{chunk-LLC2SOAP.js → chunk-WRPRPVZF.js} +27 -27
- package/dist/bundle/{chunk-KPBZ6E3Q.js → chunk-XWS4PTES.js} +621 -466
- package/dist/bundle/{chunk-P4ALQIOM.js → chunk-XZWUBDBG.js} +1 -1
- package/dist/bundle/{chunk-365G3D33.js → chunk-Y3DGAYTD.js} +3 -3
- package/dist/bundle/{chunk-4LLG7DHY.js → chunk-YVECM7XA.js} +3 -3
- package/dist/bundle/{chunk-CUQA5KDN.js → chunk-Z54GPSVH.js} +82 -62
- package/dist/bundle/{chunk-EUIYRXNA.js → chunk-ZYM4M62Q.js} +1 -1
- package/dist/bundle/{command-contract-PX6KPRM4.js → command-contract-NMJKYTS4.js} +11 -10
- package/dist/bundle/{decode-5SW67NPU.js → decode-BUTF6VGO.js} +2 -2
- package/dist/bundle/{echarts-DGITZGC2.js → echarts-KH3YOWMK.js} +2 -2
- package/dist/bundle/{embed-ZNS6M27B.js → embed-WBVM7KQ2.js} +3 -3
- package/dist/bundle/{embedder-FJROMOX4.js → embedder-27HQIFHM.js} +6 -6
- package/dist/bundle/{entry-65WPL5AJ.js → entry-K2WWMF2B.js} +4 -4
- package/dist/bundle/failure-NHDQ5WEW.js +62 -0
- package/dist/bundle/{first-run-NRTHUTDT.js → first-run-7P5N72VR.js} +5 -5
- package/dist/bundle/{first-screen-RKNTSAJJ.js → first-screen-3GM5HC4Y.js} +12 -11
- package/dist/bundle/{instructions-AJ5VTQ2U.js → instructions-POJKHKRZ.js} +1 -1
- package/dist/bundle/mcp-YGWNSJUH.js +86 -0
- package/dist/bundle/memo.js +6 -6
- package/dist/bundle/{node-762GQ2RA.js → node-W245R2OP.js} +2 -2
- package/dist/bundle/{node-sqlite-4LKLWO2T.js → node-sqlite-FUYOXFW5.js} +3 -3
- package/dist/bundle/{oauth-P67IYAGN.js → oauth-ATB3NWQA.js} +4 -4
- package/dist/bundle/{open-ERD25J5M.js → open-HEBEWCYB.js} +2 -2
- package/dist/bundle/{openai-Z77SB2I5.js → openai-DN7NA2IU.js} +7 -7
- package/dist/bundle/{process-Q3NEJZWY.js → process-QTIDOJMF.js} +1 -1
- package/dist/bundle/{program-UF3YO2YK.js → program-WNFCYNGP.js} +3076 -1259
- package/dist/bundle/{prompt-7CVPYADG.js → prompt-RQXVPJ4A.js} +2 -2
- package/dist/bundle/{recognize-2TS3PRPO.js → recognize-G7NIZ3IT.js} +1 -1
- package/dist/bundle/{remote-NOBDTVJN.js → remote-H452UBSK.js} +4 -4
- package/dist/bundle/{rerank-ZQKXRS6O.js → rerank-77UYD2UD.js} +4 -4
- package/dist/bundle/{serve-BJGDW3AS.js → serve-L6R4ODZV.js} +6 -6
- package/dist/bundle/server-SWUSQSRW.js +44 -0
- package/dist/bundle/server-W4IKTTUY.js +57 -0
- package/dist/bundle/{server-XMDCBI42.js → server-ZBX4HFHT.js} +56 -50
- package/dist/bundle/{setup-L7OLXLWU.js → setup-ZGH5OZ7A.js} +39 -38
- package/dist/bundle/{state-Y2657WG3.js → state-KHMYDV4I.js} +3 -3
- package/dist/bundle/{store-YJBO6PVL.js → store-M7KGTLUG.js} +9 -8
- package/dist/bundle/store-maintenance-command-ZPN2ZUL4.js +44 -0
- package/dist/bundle/update-RFTADFRO.js +65 -0
- package/dist/context/command.d.ts +8 -1
- package/dist/context/command.d.ts.map +1 -1
- package/dist/context/command.js +15 -2
- package/dist/context/command.js.map +1 -1
- package/dist/discovery/command.d.ts.map +1 -1
- package/dist/discovery/command.js +3 -0
- package/dist/discovery/command.js.map +1 -1
- package/dist/examples.d.ts.map +1 -1
- package/dist/examples.js +44 -4
- package/dist/examples.js.map +1 -1
- package/dist/facts/fact.d.ts +1 -1
- package/dist/finance/command.d.ts +4 -0
- package/dist/finance/command.d.ts.map +1 -0
- package/dist/finance/command.js +126 -0
- package/dist/finance/command.js.map +1 -0
- package/dist/finance/finance.d.ts +38 -0
- package/dist/finance/finance.d.ts.map +1 -0
- package/dist/finance/finance.js +128 -0
- package/dist/finance/finance.js.map +1 -0
- package/dist/knowledge/command.js +1 -1
- package/dist/knowledge/command.js.map +1 -1
- package/dist/knowledge/project-actions-command.d.ts.map +1 -1
- package/dist/knowledge/project-actions-command.js +4 -1
- package/dist/knowledge/project-actions-command.js.map +1 -1
- package/dist/knowledge/project-actions.d.ts +1 -1
- package/dist/knowledge/project-context.d.ts +12 -2
- package/dist/knowledge/project-context.d.ts.map +1 -1
- package/dist/knowledge/project-context.js +6 -3
- package/dist/knowledge/project-context.js.map +1 -1
- package/dist/knowledge/project-status-command.d.ts.map +1 -1
- package/dist/knowledge/project-status-command.js +21 -10
- package/dist/knowledge/project-status-command.js.map +1 -1
- package/dist/mcp/catalogue.d.ts +3 -0
- package/dist/mcp/catalogue.d.ts.map +1 -1
- package/dist/mcp/catalogue.js +9 -2
- package/dist/mcp/catalogue.js.map +1 -1
- package/dist/program.d.ts.map +1 -1
- package/dist/program.js +75 -0
- package/dist/program.js.map +1 -1
- package/dist/reasons.d.ts.map +1 -1
- package/dist/reasons.js +6 -0
- package/dist/reasons.js.map +1 -1
- package/dist/records/import.d.ts +8 -0
- package/dist/records/import.d.ts.map +1 -0
- package/dist/records/import.js +72 -0
- package/dist/records/import.js.map +1 -0
- package/dist/review/command.d.ts +1 -0
- package/dist/review/command.d.ts.map +1 -1
- package/dist/review/command.js +49 -14
- package/dist/review/command.js.map +1 -1
- package/dist/review/kinds.d.ts +34 -0
- package/dist/review/kinds.d.ts.map +1 -0
- package/dist/review/kinds.js +230 -0
- package/dist/review/kinds.js.map +1 -0
- package/dist/review/review.d.ts +31 -7
- package/dist/review/review.d.ts.map +1 -1
- package/dist/review/review.js +69 -27
- package/dist/review/review.js.map +1 -1
- package/dist/review/status.d.ts +48 -0
- package/dist/review/status.d.ts.map +1 -0
- package/dist/review/status.js +88 -0
- package/dist/review/status.js.map +1 -0
- package/dist/rows.d.ts.map +1 -1
- package/dist/rows.js +19 -0
- package/dist/rows.js.map +1 -1
- package/dist/schedule/command.d.ts +7 -0
- package/dist/schedule/command.d.ts.map +1 -0
- package/dist/schedule/command.js +23 -0
- package/dist/schedule/command.js.map +1 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +2 -2
- package/scenarios/project-state.md +1 -1
- package/skills/cli-memo/SKILL.md +22 -3
- package/dist/bundle/auto-C7ZWP3WY.js +0 -81
- package/dist/bundle/failure-7GV6RULH.js +0 -61
- package/dist/bundle/mcp-FOL2IELJ.js +0 -85
- package/dist/bundle/server-6UZ7GQAX.js +0 -56
- package/dist/bundle/server-ECXA5HKO.js +0 -43
- package/dist/bundle/store-maintenance-command-5SK354IH.js +0 -43
- package/dist/bundle/update-VSANDEPL.js +0 -64
- /package/dist/bundle/{chunk-TCOQYXGZ.js → chunk-7YF2MSEC.js} +0 -0
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
sameOrdinaryFile,
|
|
9
9
|
syncDirectory,
|
|
10
10
|
writeFileAtomic
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-KO455254.js";
|
|
12
12
|
import {
|
|
13
13
|
Command,
|
|
14
14
|
DEFAULT_IMAGE_MODEL,
|
|
@@ -51,23 +51,23 @@ import {
|
|
|
51
51
|
typedCommand,
|
|
52
52
|
vectorModelKey,
|
|
53
53
|
withAttempt
|
|
54
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-4MIPN37I.js";
|
|
55
55
|
import {
|
|
56
56
|
isCliFailure
|
|
57
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-F5CQ2NVA.js";
|
|
58
58
|
import {
|
|
59
59
|
isNewer,
|
|
60
60
|
updateCommand
|
|
61
61
|
} from "./chunk-3DVKC2XM.js";
|
|
62
62
|
import {
|
|
63
63
|
readOnlyLockOf
|
|
64
|
-
} from "./chunk-
|
|
64
|
+
} from "./chunk-SHDZVM3B.js";
|
|
65
65
|
import {
|
|
66
66
|
MAX_MODEL_IMAGE_BYTES
|
|
67
|
-
} from "./chunk-
|
|
67
|
+
} from "./chunk-5KUPVC5M.js";
|
|
68
68
|
import {
|
|
69
69
|
remoteKey
|
|
70
|
-
} from "./chunk-
|
|
70
|
+
} from "./chunk-LEUNYKL6.js";
|
|
71
71
|
import {
|
|
72
72
|
Unzip,
|
|
73
73
|
UnzipInflate,
|
|
@@ -78,11 +78,11 @@ import {
|
|
|
78
78
|
placedText,
|
|
79
79
|
runEmbedders,
|
|
80
80
|
textModelsDirectory
|
|
81
|
-
} from "./chunk-
|
|
81
|
+
} from "./chunk-LDVU22MF.js";
|
|
82
82
|
import {
|
|
83
83
|
installFiles,
|
|
84
84
|
megabytes
|
|
85
|
-
} from "./chunk-
|
|
85
|
+
} from "./chunk-57Q6NXQT.js";
|
|
86
86
|
import {
|
|
87
87
|
AGENDA_COLUMNS,
|
|
88
88
|
CHAT_COLUMNS,
|
|
@@ -128,6 +128,7 @@ import {
|
|
|
128
128
|
decodeProjectAnnotationSnapshot,
|
|
129
129
|
dueDayOf,
|
|
130
130
|
entriesOfList,
|
|
131
|
+
envelopeErrors,
|
|
131
132
|
exhausted,
|
|
132
133
|
fetchedKey,
|
|
133
134
|
fitting,
|
|
@@ -158,6 +159,7 @@ import {
|
|
|
158
159
|
parseLocator,
|
|
159
160
|
parseReference,
|
|
160
161
|
pdfPreviewLimits,
|
|
162
|
+
pointerOf,
|
|
161
163
|
previewAnnotationSnapshot,
|
|
162
164
|
projectAnnotationBindingSources,
|
|
163
165
|
projectAnnotationSnapshot,
|
|
@@ -168,12 +170,13 @@ import {
|
|
|
168
170
|
queryFilter,
|
|
169
171
|
rankingContextRange,
|
|
170
172
|
rankingOptions,
|
|
173
|
+
recordErrors,
|
|
171
174
|
searchError,
|
|
172
175
|
sourceOf,
|
|
173
176
|
threadConversation,
|
|
174
177
|
validateAst,
|
|
175
178
|
validateFields
|
|
176
|
-
} from "./chunk-
|
|
179
|
+
} from "./chunk-2KOVYXWK.js";
|
|
177
180
|
import {
|
|
178
181
|
EVENT_QUERY,
|
|
179
182
|
MEETING_FINDINGS_KIND,
|
|
@@ -227,21 +230,21 @@ import {
|
|
|
227
230
|
validateQuery,
|
|
228
231
|
walkQuery,
|
|
229
232
|
zonedMoment
|
|
230
|
-
} from "./chunk-
|
|
233
|
+
} from "./chunk-Z54GPSVH.js";
|
|
231
234
|
import {
|
|
232
235
|
DEFAULT_STEMMERS,
|
|
233
236
|
createStemmer,
|
|
234
237
|
fold,
|
|
235
238
|
normalize
|
|
236
|
-
} from "./chunk-
|
|
239
|
+
} from "./chunk-LKYHSVQL.js";
|
|
237
240
|
import {
|
|
238
241
|
DEFAULT_TASK_CATEGORIES,
|
|
239
242
|
FALLBACK_CATEGORY
|
|
240
|
-
} from "./chunk-
|
|
243
|
+
} from "./chunk-RFB5LOYR.js";
|
|
241
244
|
import {
|
|
242
245
|
storePath,
|
|
243
246
|
wirecatDirectory
|
|
244
|
-
} from "./chunk-
|
|
247
|
+
} from "./chunk-7J5HTZCM.js";
|
|
245
248
|
import {
|
|
246
249
|
CliError,
|
|
247
250
|
array,
|
|
@@ -295,9 +298,9 @@ var require_conventions = __commonJS({
|
|
|
295
298
|
}
|
|
296
299
|
for (var i = 0; i < list3.length; i++) {
|
|
297
300
|
if (hasOwn(list3, i)) {
|
|
298
|
-
var
|
|
299
|
-
if (predicate.call(void 0,
|
|
300
|
-
return
|
|
301
|
+
var item2 = list3[i];
|
|
302
|
+
if (predicate.call(void 0, item2, i, list3)) {
|
|
303
|
+
return item2;
|
|
301
304
|
}
|
|
302
305
|
}
|
|
303
306
|
}
|
|
@@ -1106,8 +1109,8 @@ var require_dom = __commonJS({
|
|
|
1106
1109
|
* The first index of the node in the NodeList; -1 if not found.
|
|
1107
1110
|
* @private
|
|
1108
1111
|
*/
|
|
1109
|
-
indexOf: /* @__PURE__ */ __name(function(
|
|
1110
|
-
return Array.prototype.indexOf.call(this,
|
|
1112
|
+
indexOf: /* @__PURE__ */ __name(function(item2) {
|
|
1113
|
+
return Array.prototype.indexOf.call(this, item2);
|
|
1111
1114
|
}, "indexOf")
|
|
1112
1115
|
};
|
|
1113
1116
|
NodeList.prototype[Symbol.iterator] = function() {
|
|
@@ -16890,7 +16893,7 @@ var require_lib3 = __commonJS({
|
|
|
16890
16893
|
}
|
|
16891
16894
|
});
|
|
16892
16895
|
|
|
16893
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16896
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/conversations/link.js
|
|
16894
16897
|
var RULES_VERSION = 5;
|
|
16895
16898
|
var LOOK_BACK = 50;
|
|
16896
16899
|
var SAME_SENDER_WITHIN = 10;
|
|
@@ -16980,13 +16983,13 @@ var latest = /* @__PURE__ */ __name((window3, matches) => {
|
|
|
16980
16983
|
var sameThread = /* @__PURE__ */ __name((a, b) => a.threadId === b.threadId, "sameThread");
|
|
16981
16984
|
var link = /* @__PURE__ */ __name((message, parentId, source, kind, confidence, method) => ({ messageId: message.id, parentId, source, kind, confidence, method }), "link");
|
|
16982
16985
|
|
|
16983
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16986
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/ports/traits.js
|
|
16984
16987
|
var syncsOneChat = /* @__PURE__ */ __name((messenger) => messenger.history !== "store" || messenger.historyOnDemand === true, "syncsOneChat");
|
|
16985
16988
|
|
|
16986
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16989
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/store/sqlite/document-transfer/snapshot.js
|
|
16987
16990
|
var MAX_BYTES = 16 * 1024 * 1024;
|
|
16988
16991
|
|
|
16989
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16992
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/store/knowledge-query.js
|
|
16990
16993
|
var ORGANIZATIONS_QUERY = {
|
|
16991
16994
|
entity: "organization",
|
|
16992
16995
|
backend: "sql",
|
|
@@ -17021,7 +17024,7 @@ var REMINDERS_QUERY = {
|
|
|
17021
17024
|
})
|
|
17022
17025
|
};
|
|
17023
17026
|
|
|
17024
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17027
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/store/project-transfer/preview.js
|
|
17025
17028
|
var previewProjectAnnotationSnapshot = /* @__PURE__ */ __name(async (options) => {
|
|
17026
17029
|
if (!options || typeof options !== "object" || Array.isArray(options))
|
|
17027
17030
|
throw new CliError("validation_error", "project preview options are required");
|
|
@@ -17043,7 +17046,7 @@ var previewProjectAnnotationSnapshot = /* @__PURE__ */ __name(async (options) =>
|
|
|
17043
17046
|
}
|
|
17044
17047
|
}, "previewProjectAnnotationSnapshot");
|
|
17045
17048
|
|
|
17046
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17049
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/store/project-transfer/snapshot.js
|
|
17047
17050
|
var snapshotProjectAnnotations = /* @__PURE__ */ __name(async (options) => {
|
|
17048
17051
|
if (!options || typeof options !== "object" || Array.isArray(options))
|
|
17049
17052
|
throw new CliError("validation_error", "snapshot options are required");
|
|
@@ -17064,7 +17067,7 @@ var snapshotProjectAnnotations = /* @__PURE__ */ __name(async (options) => {
|
|
|
17064
17067
|
}
|
|
17065
17068
|
}, "snapshotProjectAnnotations");
|
|
17066
17069
|
|
|
17067
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17070
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/cli/messenger/lacks.js
|
|
17068
17071
|
var COMMAND_NEEDS = {
|
|
17069
17072
|
"account update": ["updateProfile", "change the profile"],
|
|
17070
17073
|
"account sessions list": ["sessions", "list the account's sessions"],
|
|
@@ -17114,7 +17117,7 @@ var hideNever = /* @__PURE__ */ __name((messenger, group) => {
|
|
|
17114
17117
|
return group;
|
|
17115
17118
|
}, "hideNever");
|
|
17116
17119
|
|
|
17117
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17120
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/services/members-audit.js
|
|
17118
17121
|
var AUDIT_PAGE = 200;
|
|
17119
17122
|
var AUDIT_BUDGET = 10;
|
|
17120
17123
|
var AUDIT_PAUSE_MS = 1e3;
|
|
@@ -17194,7 +17197,7 @@ var burstJoins = /* @__PURE__ */ __name((members) => {
|
|
|
17194
17197
|
return found;
|
|
17195
17198
|
}, "burstJoins");
|
|
17196
17199
|
|
|
17197
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17200
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/meetings/cli/query-options.js
|
|
17198
17201
|
var queryWordsAfterOptions = /* @__PURE__ */ __name((command) => {
|
|
17199
17202
|
command.allowUnknownOption();
|
|
17200
17203
|
const parse = command.parseOptions.bind(command);
|
|
@@ -17214,7 +17217,7 @@ var queryWordsAfterOptions = /* @__PURE__ */ __name((command) => {
|
|
|
17214
17217
|
return command;
|
|
17215
17218
|
}, "queryWordsAfterOptions");
|
|
17216
17219
|
|
|
17217
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17220
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/meetings/cli/passage.js
|
|
17218
17221
|
var count = /* @__PURE__ */ __name((value) => {
|
|
17219
17222
|
if (!/^(0|[1-9]\d*)$/.test(value) || !Number.isSafeInteger(Number(value)))
|
|
17220
17223
|
throw new CliError("validation_error", "expected a nonnegative safe integer");
|
|
@@ -17256,7 +17259,7 @@ var addMeetingPassageCommandDefinition = /* @__PURE__ */ __name((program, deps)
|
|
|
17256
17259
|
var createMeetingPassageCommand = sharedCommand(createMeetingPassageCommandDefinition);
|
|
17257
17260
|
var addMeetingPassageCommand = sharedCommand(addMeetingPassageCommandDefinition);
|
|
17258
17261
|
|
|
17259
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17262
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/meetings/cli/project-evidence.js
|
|
17260
17263
|
var integer2 = /* @__PURE__ */ __name((value) => {
|
|
17261
17264
|
if (!/^[1-9]\d*$/.test(value) || !Number.isSafeInteger(Number(value)))
|
|
17262
17265
|
throw new CliError("validation_error", "expected a positive safe integer");
|
|
@@ -17279,7 +17282,7 @@ ${fieldsHelp(MEETING_PROJECT_EVIDENCE_QUERY)}`).option("--limit <n>", "hits in o
|
|
|
17279
17282
|
}, "addMeetingProjectEvidenceCommandDefinition");
|
|
17280
17283
|
var addMeetingProjectEvidenceCommand = sharedCommand(addMeetingProjectEvidenceCommandDefinition);
|
|
17281
17284
|
|
|
17282
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17285
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/meetings/cli/search.js
|
|
17283
17286
|
var ZONED = /(?:Z|[+-]\d{2}:?\d{2})$/i;
|
|
17284
17287
|
var moment = /* @__PURE__ */ __name((flag, end, readIn) => (value) => {
|
|
17285
17288
|
const zone = timezoneOf();
|
|
@@ -17365,7 +17368,7 @@ var addMeetingSearchCommandDefinition = /* @__PURE__ */ __name((program, deps) =
|
|
|
17365
17368
|
var createMeetingSearchCommand = sharedCommand(createMeetingSearchCommandDefinition);
|
|
17366
17369
|
var addMeetingSearchCommand = sharedCommand(addMeetingSearchCommandDefinition);
|
|
17367
17370
|
|
|
17368
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17371
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/meetings/cli/index.js
|
|
17369
17372
|
var integer4 = /* @__PURE__ */ __name((text2) => {
|
|
17370
17373
|
if (!/^[1-9]\d*$/.test(text2) || !Number.isSafeInteger(Number(text2)))
|
|
17371
17374
|
throw new InvalidArgumentError("expected a positive integer");
|
|
@@ -17497,7 +17500,7 @@ ${fieldsHelp(EVENT_QUERY, MEETING_QUERY_GUIDE)}`);
|
|
|
17497
17500
|
}, "addMeetingCommandsDefinition");
|
|
17498
17501
|
var addMeetingCommands = sharedCommand(addMeetingCommandsDefinition);
|
|
17499
17502
|
|
|
17500
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17503
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/cli/list-query.js
|
|
17501
17504
|
var LIST_QUERY_GUIDE = "https://github.com/WireCatLabs/cli-core/blob/main/docs/search/query-language.md";
|
|
17502
17505
|
var QUERY_ARGUMENT = "field:value terms that narrow the list \u2014 the fields are below";
|
|
17503
17506
|
var withQuery = /* @__PURE__ */ __name((command, registry) => {
|
|
@@ -17630,7 +17633,7 @@ var termField = /* @__PURE__ */ __name((name, type, example, more = {}) => nativ
|
|
|
17630
17633
|
var queryHelp = /* @__PURE__ */ __name((registry) => `
|
|
17631
17634
|
${fieldsHelp(registry, LIST_QUERY_GUIDE)}`, "queryHelp");
|
|
17632
17635
|
|
|
17633
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17636
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/cli/paging.js
|
|
17634
17637
|
var positiveCount = /* @__PURE__ */ __name((flag) => (value) => {
|
|
17635
17638
|
if (!/^\d+$/.test(value.trim()) || Number(value) < 1)
|
|
17636
17639
|
throw new CliError("validation_error", `${flag} takes a whole number from 1 upwards, not "${value}"`);
|
|
@@ -17639,7 +17642,7 @@ var positiveCount = /* @__PURE__ */ __name((flag) => (value) => {
|
|
|
17639
17642
|
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");
|
|
17640
17643
|
var window = /* @__PURE__ */ __name(({ limit, page, all }) => all ? { offset: 0 } : { limit, offset: (page - 1) * limit }, "window");
|
|
17641
17644
|
|
|
17642
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17645
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/cli/messenger/chat-answers.js
|
|
17643
17646
|
var defined = /* @__PURE__ */ __name((record2) => Object.fromEntries(Object.entries(record2).filter(([, value]) => value !== void 0)), "defined");
|
|
17644
17647
|
var chatRef = /* @__PURE__ */ __name((account, chat) => formatReference({ type: "chat", provider: account.provider, account: account.account, chat }), "chatRef");
|
|
17645
17648
|
var settingsOf = /* @__PURE__ */ __name((settings) => defined({
|
|
@@ -17830,7 +17833,7 @@ var folderAnswer = /* @__PURE__ */ __name((folder) => {
|
|
|
17830
17833
|
excluded_chats: shown?.excluded
|
|
17831
17834
|
});
|
|
17832
17835
|
}, "folderAnswer");
|
|
17833
|
-
var lines = /* @__PURE__ */ __name((line2) => (body) => (body.items ?? (body.item === void 0 ? [] : [body.item])).map((
|
|
17836
|
+
var lines = /* @__PURE__ */ __name((line2) => (body) => (body.items ?? (body.item === void 0 ? [] : [body.item])).map((item2) => `${line2(item2).trimEnd()}
|
|
17834
17837
|
`).join(""), "lines");
|
|
17835
17838
|
var pageOf2 = /* @__PURE__ */ __name(({ limit, page, all }, { items, hasMore }) => all ? { limit: Math.max(1, items.length), has_more: false, page: 1 } : { limit, has_more: hasMore, page }, "pageOf");
|
|
17836
17839
|
var wholeList = /* @__PURE__ */ __name((command, items, extra = {}) => listOf(command, { items, limit: Math.max(1, items.length), has_more: false, ...extra }), "wholeList");
|
|
@@ -17901,7 +17904,7 @@ var sessionAnswer = /* @__PURE__ */ __name(({ current, client, device, location,
|
|
|
17901
17904
|
...createdAt === void 0 ? {} : { created_at: createdAt }
|
|
17902
17905
|
}), "sessionAnswer");
|
|
17903
17906
|
|
|
17904
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17907
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/ports/messenger.js
|
|
17905
17908
|
var throughWrapper = /* @__PURE__ */ __name((inner, handled, wrap = (_, call) => call) => new Proxy(handled, {
|
|
17906
17909
|
get: /* @__PURE__ */ __name((own, key) => {
|
|
17907
17910
|
if (key in own)
|
|
@@ -17918,12 +17921,12 @@ var capability = /* @__PURE__ */ __name((adapter, method, what) => {
|
|
|
17918
17921
|
return found.bind(adapter);
|
|
17919
17922
|
}, "capability");
|
|
17920
17923
|
|
|
17921
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17924
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/sends/send-id.js
|
|
17922
17925
|
import { randomBytes } from "node:crypto";
|
|
17923
17926
|
var newSendId = /* @__PURE__ */ __name(() => randomBytes(8).readBigInt64BE().toString(), "newSendId");
|
|
17924
17927
|
var newOperationId = newSendId;
|
|
17925
17928
|
|
|
17926
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17929
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/services/deps.js
|
|
17927
17930
|
var accountStore = /* @__PURE__ */ __name(async (deps) => (await deps.store()).forAccount(await deps.account()), "accountStore");
|
|
17928
17931
|
var crossAccount = /* @__PURE__ */ __name((deps, _reason) => deps.store(), "crossAccount");
|
|
17929
17932
|
var NO_LOCAL_STORE = "this answer comes from the messenger, not from the local store";
|
|
@@ -17936,11 +17939,11 @@ var storeAbsent = /* @__PURE__ */ __name((error) => {
|
|
|
17936
17939
|
return error instanceof Error && typeof code === "number" && (code & 255) === SQLITE_BUSY;
|
|
17937
17940
|
}, "storeAbsent");
|
|
17938
17941
|
var accountUnknown = /* @__PURE__ */ __name((error) => isCliFailure(error) && (error.code === "not_found" || error.code === "authentication_error"), "accountUnknown");
|
|
17939
|
-
var unless = /* @__PURE__ */ __name(async (work,
|
|
17942
|
+
var unless = /* @__PURE__ */ __name(async (work, expected2) => {
|
|
17940
17943
|
try {
|
|
17941
17944
|
return await work();
|
|
17942
17945
|
} catch (error) {
|
|
17943
|
-
if (
|
|
17946
|
+
if (expected2(error))
|
|
17944
17947
|
return void 0;
|
|
17945
17948
|
throw error;
|
|
17946
17949
|
}
|
|
@@ -18000,7 +18003,7 @@ var storeOnlyDeps = /* @__PURE__ */ __name((store, account, { app, env }) => {
|
|
|
18000
18003
|
return { ...storedDeps(messenger, store, account, guard), ...env === void 0 ? {} : { env } };
|
|
18001
18004
|
}, "storeOnlyDeps");
|
|
18002
18005
|
|
|
18003
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18006
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/services/patience.js
|
|
18004
18007
|
import { setTimeout as sleep } from "node:timers/promises";
|
|
18005
18008
|
var LONGEST_WAIT_MS = 5 * 60 * 1e3;
|
|
18006
18009
|
var patiently = /* @__PURE__ */ __name(async (request, note2, stop) => {
|
|
@@ -18023,10 +18026,10 @@ var patiently = /* @__PURE__ */ __name(async (request, note2, stop) => {
|
|
|
18023
18026
|
}
|
|
18024
18027
|
}, "patiently");
|
|
18025
18028
|
|
|
18026
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18029
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/services/archive.js
|
|
18027
18030
|
import { setTimeout as sleep2 } from "node:timers/promises";
|
|
18028
18031
|
|
|
18029
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18032
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/services/backfill-estimate.js
|
|
18030
18033
|
var REQUEST_MS = 400;
|
|
18031
18034
|
var estimateBackfill = /* @__PURE__ */ __name(({ ranges, held, newest, page, maxPages, pauseMs }) => {
|
|
18032
18035
|
const lowest = ranges[0];
|
|
@@ -18049,13 +18052,13 @@ var estimateBackfill = /* @__PURE__ */ __name(({ ranges, held, newest, page, max
|
|
|
18049
18052
|
};
|
|
18050
18053
|
}, "estimateBackfill");
|
|
18051
18054
|
|
|
18052
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18055
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/domain/recovery.js
|
|
18053
18056
|
var withRecovery = /* @__PURE__ */ __name((error) => ({
|
|
18054
18057
|
...error,
|
|
18055
18058
|
retryable: typeof error.retryable === "boolean" ? error.retryable : error.code === "rate_limited" || error.status === 429
|
|
18056
18059
|
}), "withRecovery");
|
|
18057
18060
|
|
|
18058
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18061
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/services/batch.js
|
|
18059
18062
|
var actionable = /* @__PURE__ */ __name((error) => {
|
|
18060
18063
|
if (isCliFailure(error))
|
|
18061
18064
|
return withRecovery({ code: error.code, message: error.message, ...error.details });
|
|
@@ -18138,7 +18141,7 @@ var mergeBatches = /* @__PURE__ */ __name((a, b) => {
|
|
|
18138
18141
|
};
|
|
18139
18142
|
}, "mergeBatches");
|
|
18140
18143
|
|
|
18141
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18144
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/domain/ref-arguments.js
|
|
18142
18145
|
var TAKES = {
|
|
18143
18146
|
chat: "a chat: chat:<provider>/<account>/<chat>, its id or its title",
|
|
18144
18147
|
message: "a message: msg:<provider>/<account>/<chat>/<message>, or a chat and the message's id"
|
|
@@ -18198,7 +18201,7 @@ var ensureAccount = /* @__PURE__ */ __name(async (reference, scope, profilesOn)
|
|
|
18198
18201
|
throw wrongAccount(reference, scope, profiles);
|
|
18199
18202
|
}, "ensureAccount");
|
|
18200
18203
|
|
|
18201
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18204
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/resolve.js
|
|
18202
18205
|
var isId = /* @__PURE__ */ __name((reference) => /^-?\d+$/.test(reference.trim()), "isId");
|
|
18203
18206
|
var foldName = /* @__PURE__ */ __name((name) => name.normalize("NFC").replace(/[\uFE0E\uFE0F\u200D]/g, "").toLowerCase(), "foldName");
|
|
18204
18207
|
var pickChat = /* @__PURE__ */ __name((reference, chats) => {
|
|
@@ -18243,7 +18246,7 @@ ${lines3}`, { candidates });
|
|
|
18243
18246
|
}, "ambiguous");
|
|
18244
18247
|
var isPresent = /* @__PURE__ */ __name((value) => value !== null && value !== void 0, "isPresent");
|
|
18245
18248
|
|
|
18246
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18249
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/services/message-resolution.js
|
|
18247
18250
|
var readChatId = /* @__PURE__ */ __name(async (deps, reference, store, account) => {
|
|
18248
18251
|
if (deps.reads !== "store")
|
|
18249
18252
|
return keptChatId(deps.messenger, reference, store, account);
|
|
@@ -18402,7 +18405,7 @@ var senderAmong = /* @__PURE__ */ __name(async (store, accounts, reference) => {
|
|
|
18402
18405
|
}
|
|
18403
18406
|
}, "senderAmong");
|
|
18404
18407
|
|
|
18405
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18408
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/images/context/index.js
|
|
18406
18409
|
var CONTEXT_MESSAGES = 3;
|
|
18407
18410
|
var CONTEXT_MINUTES = 10;
|
|
18408
18411
|
var MAX_CHARS = 1200;
|
|
@@ -18426,12 +18429,12 @@ var context = {
|
|
|
18426
18429
|
}, "describe")
|
|
18427
18430
|
};
|
|
18428
18431
|
|
|
18429
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18432
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/images/registry.js
|
|
18430
18433
|
var BUILT_INS = [context];
|
|
18431
18434
|
var providers = [...BUILT_INS];
|
|
18432
18435
|
var registeredImageProviders = /* @__PURE__ */ __name(() => providers, "registeredImageProviders");
|
|
18433
18436
|
|
|
18434
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18437
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/services/conversations.js
|
|
18435
18438
|
var READ_PAGE = 5e3;
|
|
18436
18439
|
var CHAIN = 50;
|
|
18437
18440
|
var CONVERSATION_QUERY = {
|
|
@@ -18583,7 +18586,7 @@ var sized = /* @__PURE__ */ __name((size4) => {
|
|
|
18583
18586
|
return size4;
|
|
18584
18587
|
}, "sized");
|
|
18585
18588
|
|
|
18586
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18589
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/services/embeddings-maintenance.js
|
|
18587
18590
|
var REFRESH_BOUNDS = { maxChats: 20, maxChunks: 2e3 };
|
|
18588
18591
|
var MESSAGE_PAGE = 5e3;
|
|
18589
18592
|
var PER_SESSION = 8;
|
|
@@ -18602,7 +18605,7 @@ var embeddingTarget = /* @__PURE__ */ __name((deps, choice = DEFAULT_TEXT_MODEL)
|
|
|
18602
18605
|
price: remote.price,
|
|
18603
18606
|
installed: true,
|
|
18604
18607
|
perBatch: PER_REQUEST * concurrency,
|
|
18605
|
-
open: /* @__PURE__ */ __name(async () => (await import("./remote-
|
|
18608
|
+
open: /* @__PURE__ */ __name(async () => (await import("./remote-H452UBSK.js")).openRemote(remote, apiKey, { concurrency }), "open")
|
|
18606
18609
|
};
|
|
18607
18610
|
}
|
|
18608
18611
|
const model = textModel(choice);
|
|
@@ -18619,7 +18622,7 @@ var embeddingTarget = /* @__PURE__ */ __name((deps, choice = DEFAULT_TEXT_MODEL)
|
|
|
18619
18622
|
if (!isTextModelInstalled(model, directory2))
|
|
18620
18623
|
throw notDownloaded(model.id);
|
|
18621
18624
|
if (apart) {
|
|
18622
|
-
const { openProcess } = await import("./process-
|
|
18625
|
+
const { openProcess } = await import("./process-QTIDOJMF.js");
|
|
18623
18626
|
return openProcess(model, directory2, { threads: threads ?? defaultThreads() });
|
|
18624
18627
|
}
|
|
18625
18628
|
return openEmbedder(model, directory2, { threads: threads ?? defaultThreads() });
|
|
@@ -18908,7 +18911,7 @@ var shaped = /* @__PURE__ */ __name(({ chatId, builtAt, algorithmVersion, pendin
|
|
|
18908
18911
|
return { ...one2, state };
|
|
18909
18912
|
}, "shaped");
|
|
18910
18913
|
|
|
18911
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18914
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/services/search-catchup.js
|
|
18912
18915
|
var CATCH_UP_BOUNDS = { maxChunks: 500, maxMessages: 1e4, timeMs: 3e4 };
|
|
18913
18916
|
var validateCatchUpBounds = /* @__PURE__ */ __name((options) => {
|
|
18914
18917
|
for (const [key, value, maximum] of [
|
|
@@ -18961,7 +18964,7 @@ var catchUpSearch = /* @__PURE__ */ __name(async (deps, chat, options, signal, c
|
|
|
18961
18964
|
}
|
|
18962
18965
|
}, "catchUpSearch");
|
|
18963
18966
|
|
|
18964
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18967
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/services/archive.js
|
|
18965
18968
|
var pushed = /* @__PURE__ */ __name((deps, what) => {
|
|
18966
18969
|
if (deps.reads === "store") {
|
|
18967
18970
|
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`);
|
|
@@ -19327,7 +19330,7 @@ var timeOfKey = /* @__PURE__ */ __name(async (store, account, chatId, key, byTim
|
|
|
19327
19330
|
return message?.timestamp ?? fallback;
|
|
19328
19331
|
}, "timeOfKey");
|
|
19329
19332
|
|
|
19330
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19333
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/services/questions.js
|
|
19331
19334
|
var LINKS = /https?:\/\/\S+/g;
|
|
19332
19335
|
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");
|
|
19333
19336
|
var questions = /* @__PURE__ */ __name((messages, { answerers: answerers2, asker = "others" }) => {
|
|
@@ -19357,7 +19360,7 @@ var questions = /* @__PURE__ */ __name((messages, { answerers: answerers2, asker
|
|
|
19357
19360
|
});
|
|
19358
19361
|
}, "questions");
|
|
19359
19362
|
|
|
19360
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19363
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/services/task-categories.js
|
|
19361
19364
|
var names = /* @__PURE__ */ __name((categories) => categories.map(({ name }) => name).join(", "), "names");
|
|
19362
19365
|
var taskCategoryOf = /* @__PURE__ */ __name((categories = DEFAULT_TASK_CATEGORIES, flag = "--category") => (typed) => {
|
|
19363
19366
|
const name = typed.trim().toLowerCase();
|
|
@@ -19414,7 +19417,7 @@ var categorize = /* @__PURE__ */ __name((text2, categories = DEFAULT_TASK_CATEGO
|
|
|
19414
19417
|
return best.name;
|
|
19415
19418
|
}, "categorize");
|
|
19416
19419
|
|
|
19417
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19420
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/services/task-rules.js
|
|
19418
19421
|
var taskAccount = /* @__PURE__ */ __name(({ provider, account }) => `${provider}:${account}`, "taskAccount");
|
|
19419
19422
|
var RULES_IN = {
|
|
19420
19423
|
dialog: "all",
|
|
@@ -19620,7 +19623,7 @@ var applyTaskRulesToChats = /* @__PURE__ */ __name(async (store, account, chatId
|
|
|
19620
19623
|
return passes;
|
|
19621
19624
|
}, "applyTaskRulesToChats");
|
|
19622
19625
|
|
|
19623
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19626
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/context/evidence-response.js
|
|
19624
19627
|
var contextSourceKey = /* @__PURE__ */ __name((source) => JSON.stringify([source.kind, source.accountId, source.provider, source.account]), "contextSourceKey");
|
|
19625
19628
|
var validateContextEvidencePage = /* @__PURE__ */ __name((page, request) => {
|
|
19626
19629
|
const fail3 = /* @__PURE__ */ __name(() => {
|
|
@@ -19643,33 +19646,33 @@ var validateContextEvidencePage = /* @__PURE__ */ __name((page, request) => {
|
|
|
19643
19646
|
if (big !== void 0 && (!big || page.items.length || typeof big.ref !== "string" || !Number.isSafeInteger(big.bytes) || big.bytes <= maxReadBytes))
|
|
19644
19647
|
fail3();
|
|
19645
19648
|
let actual = 0;
|
|
19646
|
-
for (const
|
|
19647
|
-
if (!
|
|
19649
|
+
for (const item2 of page.items) {
|
|
19650
|
+
if (!item2 || item2.provider !== source.provider || item2.account !== source.account || typeof item2.text !== "string" || typeof item2.ref !== "string")
|
|
19648
19651
|
fail3();
|
|
19649
|
-
if (!Number.isSafeInteger(
|
|
19652
|
+
if (!Number.isSafeInteger(item2.at) || item2.at < after || item2.at >= before2 || !Number.isSafeInteger(item2.updatedAt) || item2.updatedAt < 0)
|
|
19650
19653
|
fail3();
|
|
19651
|
-
if (
|
|
19654
|
+
if (item2.revision !== null && (!Number.isSafeInteger(item2.revision) || item2.revision < 1))
|
|
19652
19655
|
fail3();
|
|
19653
|
-
if (source.kind === "document" ? !["source-modified", "stored-update"].includes(
|
|
19656
|
+
if (source.kind === "document" ? !["source-modified", "stored-update"].includes(item2.timeKind) : item2.timeKind !== (source.kind === "meeting" ? "meeting-start" : "sent"))
|
|
19654
19657
|
fail3();
|
|
19655
|
-
const sender =
|
|
19658
|
+
const sender = item2.sender;
|
|
19656
19659
|
if (sender != null && (typeof sender !== "object" || typeof sender.provider !== "string" || typeof sender.id !== "string" || typeof sender.owner !== "boolean" || [sender.name, sender.person, sender.personName].some((v) => v !== null && typeof v !== "string") || sender.person !== null && !/^person:[1-9]\d*$/.test(sender.person)))
|
|
19657
19660
|
fail3();
|
|
19658
|
-
const text2 = [
|
|
19661
|
+
const text2 = [item2.text, item2.title, item2.url, item2.provider, item2.account, item2.timeKind];
|
|
19659
19662
|
if (text2.some((value) => value !== null && typeof value !== "string"))
|
|
19660
19663
|
fail3();
|
|
19661
19664
|
if (source.kind === "document") {
|
|
19662
|
-
const id2 = Number(
|
|
19663
|
-
if (!Number.isSafeInteger(id2) || id2 < 1 ||
|
|
19665
|
+
const id2 = Number(item2.ref.slice(9));
|
|
19666
|
+
if (!Number.isSafeInteger(id2) || id2 < 1 || item2.ref !== `document:${id2}`)
|
|
19664
19667
|
fail3();
|
|
19665
19668
|
} else if (source.kind === "meeting") {
|
|
19666
|
-
const reference = parseMeetingReference(
|
|
19667
|
-
if (reference.accountId !== source.accountId || reference.transcriptId === void 0 || reference.cuePosition === void 0 || formatMeetingReference(reference) !==
|
|
19669
|
+
const reference = parseMeetingReference(item2.ref);
|
|
19670
|
+
if (reference.accountId !== source.accountId || reference.transcriptId === void 0 || reference.cuePosition === void 0 || formatMeetingReference(reference) !== item2.ref)
|
|
19668
19671
|
fail3();
|
|
19669
|
-
text2.push(
|
|
19672
|
+
text2.push(item2.ref);
|
|
19670
19673
|
} else {
|
|
19671
|
-
const locator = parseLocator(
|
|
19672
|
-
if (locator.provider !== source.provider || locator.account !== source.account || chat !== void 0 && locator.chat !== chat || formatLocator(locator) !==
|
|
19674
|
+
const locator = parseLocator(item2.ref);
|
|
19675
|
+
if (locator.provider !== source.provider || locator.account !== source.account || chat !== void 0 && locator.chat !== chat || formatLocator(locator) !== item2.ref)
|
|
19673
19676
|
fail3();
|
|
19674
19677
|
text2.push(locator.chat, locator.message);
|
|
19675
19678
|
}
|
|
@@ -19684,7 +19687,7 @@ var validateContextEvidencePage = /* @__PURE__ */ __name((page, request) => {
|
|
|
19684
19687
|
}
|
|
19685
19688
|
}, "validateContextEvidencePage");
|
|
19686
19689
|
|
|
19687
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19690
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/context/read-budget.js
|
|
19688
19691
|
var contextReadBudget = /* @__PURE__ */ __name((limits = {}) => {
|
|
19689
19692
|
if (!limits || typeof limits !== "object" || Array.isArray(limits))
|
|
19690
19693
|
throw new CliError("validation_error", "limits needs a context read allowance");
|
|
@@ -19737,7 +19740,7 @@ var contextReadBudget = /* @__PURE__ */ __name((limits = {}) => {
|
|
|
19737
19740
|
};
|
|
19738
19741
|
}, "contextReadBudget");
|
|
19739
19742
|
|
|
19740
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19743
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/services/context-evidence.js
|
|
19741
19744
|
var createContextEvidenceReader = /* @__PURE__ */ __name((port, allowed, limits) => {
|
|
19742
19745
|
if (!port || typeof port.read !== "function")
|
|
19743
19746
|
throw new CliError("configuration_error", "context evidence reader is unavailable");
|
|
@@ -19781,7 +19784,82 @@ var createContextEvidenceReader = /* @__PURE__ */ __name((port, allowed, limits)
|
|
|
19781
19784
|
};
|
|
19782
19785
|
}, "createContextEvidenceReader");
|
|
19783
19786
|
|
|
19784
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19787
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/services/ingest.js
|
|
19788
|
+
var emptyReceipt = /* @__PURE__ */ __name((dryRun) => ({
|
|
19789
|
+
dryRun,
|
|
19790
|
+
source: null,
|
|
19791
|
+
created: 0,
|
|
19792
|
+
updated: 0,
|
|
19793
|
+
unchanged: 0,
|
|
19794
|
+
deleted: 0,
|
|
19795
|
+
refused: 0,
|
|
19796
|
+
proposed: [],
|
|
19797
|
+
waiting: [],
|
|
19798
|
+
flagged: [],
|
|
19799
|
+
errors: []
|
|
19800
|
+
}), "emptyReceipt");
|
|
19801
|
+
var ingest = /* @__PURE__ */ __name(async (store, envelope, { account, dryRun = false, chunk = 1e3 }) => {
|
|
19802
|
+
const receipt = emptyReceipt(dryRun);
|
|
19803
|
+
const broken2 = envelopeErrors(envelope, account);
|
|
19804
|
+
if (broken2.length > 0)
|
|
19805
|
+
return { ...receipt, errors: broken2 };
|
|
19806
|
+
const { source, records } = envelope;
|
|
19807
|
+
receipt.source = { provider: source.provider, account: source.account, batchId: source.batch_id };
|
|
19808
|
+
const taken = [];
|
|
19809
|
+
const keys = /* @__PURE__ */ new Set();
|
|
19810
|
+
const identities = /* @__PURE__ */ new Set();
|
|
19811
|
+
for (const [index, record2] of records.entries()) {
|
|
19812
|
+
const errors = recordErrors(record2, index);
|
|
19813
|
+
const valid = record2;
|
|
19814
|
+
if (errors.length === 0 && keys.has(valid.key))
|
|
19815
|
+
errors.push({
|
|
19816
|
+
pointer: pointerOf("records", index, "key"),
|
|
19817
|
+
code: "record.duplicate-key",
|
|
19818
|
+
message: "another record of this envelope has this key",
|
|
19819
|
+
key: valid.key
|
|
19820
|
+
});
|
|
19821
|
+
const identity = errors.length === 0 ? `${valid.type}\0${valid.external_id}` : "";
|
|
19822
|
+
if (errors.length === 0 && identities.has(identity))
|
|
19823
|
+
errors.push({
|
|
19824
|
+
pointer: pointerOf("records", index, "external_id"),
|
|
19825
|
+
code: "record.duplicate",
|
|
19826
|
+
message: `another record of this envelope is ${valid.type} ${valid.external_id}`,
|
|
19827
|
+
key: valid.key
|
|
19828
|
+
});
|
|
19829
|
+
if (errors.length > 0) {
|
|
19830
|
+
receipt.refused += 1;
|
|
19831
|
+
for (const error of errors)
|
|
19832
|
+
receipt.errors.push(error);
|
|
19833
|
+
continue;
|
|
19834
|
+
}
|
|
19835
|
+
keys.add(valid.key);
|
|
19836
|
+
identities.add(identity);
|
|
19837
|
+
taken.push({ index, record: valid });
|
|
19838
|
+
}
|
|
19839
|
+
const written = await store.records.write(source, taken, { dryRun, chunk });
|
|
19840
|
+
for (const outcome2 of written.outcomes) {
|
|
19841
|
+
receipt[outcome2.status] += 1;
|
|
19842
|
+
if (outcome2.error)
|
|
19843
|
+
receipt.errors.push(outcome2.error);
|
|
19844
|
+
}
|
|
19845
|
+
for (const error of written.laterErrors)
|
|
19846
|
+
receipt.errors.push(error);
|
|
19847
|
+
receipt.errors.sort((a, b) => a.pointer.localeCompare(b.pointer, "en", { numeric: true }));
|
|
19848
|
+
receipt.proposed = written.proposed;
|
|
19849
|
+
receipt.waiting = written.waiting.map(({ index, key, missing: missing4 }) => ({
|
|
19850
|
+
key,
|
|
19851
|
+
pointer: pointerOf("records", index, "relations"),
|
|
19852
|
+
missing: missing4
|
|
19853
|
+
}));
|
|
19854
|
+
receipt.flagged = written.flagged.map(({ index, key, entity }) => ({
|
|
19855
|
+
key,
|
|
19856
|
+
pointer: pointerOf("records", index),
|
|
19857
|
+
entity
|
|
19858
|
+
}));
|
|
19859
|
+
return receipt;
|
|
19860
|
+
}, "ingest");
|
|
19861
|
+
|
|
19862
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/services/project-purposes.js
|
|
19785
19863
|
var BUILT_IN_PURPOSES = ["work", "sales", "support", "other"];
|
|
19786
19864
|
var DEFAULT_PURPOSES = ["work"];
|
|
19787
19865
|
var LINK_PURPOSE = "work";
|
|
@@ -19811,7 +19889,7 @@ var purposeList = /* @__PURE__ */ __name((value, previous = []) => [
|
|
|
19811
19889
|
...value.split(",").map((one2) => one2.trim()).filter(Boolean)
|
|
19812
19890
|
], "purposeList");
|
|
19813
19891
|
|
|
19814
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19892
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/services/moment.js
|
|
19815
19893
|
var AGO = /^(\d+)(m|h|d)$/;
|
|
19816
19894
|
var AGO_MS = { m: 6e4, h: 36e5, d: 864e5 };
|
|
19817
19895
|
var DATE = /^\d{4}-\d{2}-\d{2}/;
|
|
@@ -19851,7 +19929,7 @@ var dateWindow = /* @__PURE__ */ __name(({ sinceTime, untilTime, zone, now = Dat
|
|
|
19851
19929
|
};
|
|
19852
19930
|
}, "dateWindow");
|
|
19853
19931
|
|
|
19854
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19932
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/botcheck/check.js
|
|
19855
19933
|
var DAY_MS = 864e5;
|
|
19856
19934
|
var NEW_DAYS = 30;
|
|
19857
19935
|
var SAME_TEXT_MIN = 20;
|
|
@@ -19928,7 +20006,7 @@ var scorePerson = /* @__PURE__ */ __name(({ subject, provider, activity, photos,
|
|
|
19928
20006
|
};
|
|
19929
20007
|
}, "scorePerson");
|
|
19930
20008
|
|
|
19931
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20009
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/botcheck/registries.js
|
|
19932
20010
|
var REGISTRIES = {
|
|
19933
20011
|
cas: { title: "Combot Anti-Spam (CAS)", docs: "https://cas.chat/api" },
|
|
19934
20012
|
lols: { title: "lols.bot", docs: "https://api.lols.bot/lols-bot.json" }
|
|
@@ -20013,7 +20091,7 @@ var notCovered = /* @__PURE__ */ __name((messenger, now = /* @__PURE__ */ new Da
|
|
|
20013
20091
|
detail: `lists Telegram accounts only, not ${messenger} ones`
|
|
20014
20092
|
})), "notCovered");
|
|
20015
20093
|
|
|
20016
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20094
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/botcheck/service.js
|
|
20017
20095
|
var ACTIVITY_MESSAGES = 1e3;
|
|
20018
20096
|
var botCheckService = /* @__PURE__ */ __name((deps) => {
|
|
20019
20097
|
const subjectOf = /* @__PURE__ */ __name(async (reference) => {
|
|
@@ -20101,7 +20179,7 @@ var botCheckService = /* @__PURE__ */ __name((deps) => {
|
|
|
20101
20179
|
};
|
|
20102
20180
|
}, "botCheckService");
|
|
20103
20181
|
|
|
20104
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20182
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/domain/thread.js
|
|
20105
20183
|
var threadIdOf = /* @__PURE__ */ __name((value) => {
|
|
20106
20184
|
if (value === void 0)
|
|
20107
20185
|
return void 0;
|
|
@@ -20111,7 +20189,7 @@ var threadIdOf = /* @__PURE__ */ __name((value) => {
|
|
|
20111
20189
|
return id2;
|
|
20112
20190
|
}, "threadIdOf");
|
|
20113
20191
|
|
|
20114
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20192
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/services/chat-stats.js
|
|
20115
20193
|
var TOP_POSTS = 5;
|
|
20116
20194
|
var JOINS = /* @__PURE__ */ new Set(["join", "add"]);
|
|
20117
20195
|
var LEAVES = /* @__PURE__ */ new Set(["leave", "remove"]);
|
|
@@ -20228,7 +20306,7 @@ var median = /* @__PURE__ */ __name((values) => {
|
|
|
20228
20306
|
return Math.round(sorted.length % 2 === 0 ? ((sorted[middle - 1] ?? upper) + upper) / 2 : upper);
|
|
20229
20307
|
}, "median");
|
|
20230
20308
|
|
|
20231
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20309
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/services/member-history.js
|
|
20232
20310
|
var memberEvents = /* @__PURE__ */ __name((stays, revisions, since = 0) => {
|
|
20233
20311
|
const events = [];
|
|
20234
20312
|
for (const stay of stays) {
|
|
@@ -20260,7 +20338,7 @@ var memberEvents = /* @__PURE__ */ __name((stays, revisions, since = 0) => {
|
|
|
20260
20338
|
return events.filter(({ at }) => Date.parse(at) >= since).sort((a, b) => Date.parse(a.at) - Date.parse(b.at) || a.id.localeCompare(b.id));
|
|
20261
20339
|
}, "memberEvents");
|
|
20262
20340
|
|
|
20263
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20341
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/services/chats.js
|
|
20264
20342
|
var EVENTS_DAYS = 7;
|
|
20265
20343
|
var TRACKED_DAYS = 30;
|
|
20266
20344
|
var STATS_PAGE = 1e3;
|
|
@@ -20278,18 +20356,18 @@ var storedEvents = /* @__PURE__ */ __name(async (store, deps, chat, since) => {
|
|
|
20278
20356
|
var deepChecks = /* @__PURE__ */ __name(async (deps, items, deep, pauseMs, registry) => {
|
|
20279
20357
|
const checks = botCheckService(deps);
|
|
20280
20358
|
const checked2 = [];
|
|
20281
|
-
for (const [index,
|
|
20359
|
+
for (const [index, item2] of items.entries()) {
|
|
20282
20360
|
if (index >= deep) {
|
|
20283
|
-
checked2.push(
|
|
20361
|
+
checked2.push(item2);
|
|
20284
20362
|
continue;
|
|
20285
20363
|
}
|
|
20286
20364
|
if (index > 0)
|
|
20287
20365
|
await new Promise((resolve7) => setTimeout(resolve7, pauseMs));
|
|
20288
|
-
const { score, reasons, registries, unknown: unknown3 } = await checks.person(
|
|
20366
|
+
const { score, reasons, registries, unknown: unknown3 } = await checks.person(item2.id, {
|
|
20289
20367
|
registries: true,
|
|
20290
20368
|
...registry ? { registry } : {}
|
|
20291
20369
|
});
|
|
20292
|
-
checked2.push({ ...
|
|
20370
|
+
checked2.push({ ...item2, check: { score, reasons, registries, unknown: unknown3 } });
|
|
20293
20371
|
}
|
|
20294
20372
|
return checked2;
|
|
20295
20373
|
}, "deepChecks");
|
|
@@ -20555,7 +20633,7 @@ var storedMembers = /* @__PURE__ */ __name(async (store, chatId) => {
|
|
|
20555
20633
|
return members.length === 0 ? null : members;
|
|
20556
20634
|
}, "storedMembers");
|
|
20557
20635
|
|
|
20558
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20636
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/services/inbox.js
|
|
20559
20637
|
var INBOX_CHATS = 20;
|
|
20560
20638
|
var REVIEW_DAYS = 3;
|
|
20561
20639
|
var UNANSWERED_HOURS = 24;
|
|
@@ -20763,7 +20841,7 @@ var inboxService = /* @__PURE__ */ __name((deps) => {
|
|
|
20763
20841
|
};
|
|
20764
20842
|
}, "inboxService");
|
|
20765
20843
|
|
|
20766
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20844
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/services/person-context.js
|
|
20767
20845
|
var CONTEXT_MESSAGES2 = 10;
|
|
20768
20846
|
var CONTEXT_BYTES = 64 * 1024;
|
|
20769
20847
|
var toContext = /* @__PURE__ */ __name((key, message, chatTitle2) => ({
|
|
@@ -20948,8 +21026,8 @@ var recordContext = /* @__PURE__ */ __name(async (store, record2, reads, { messa
|
|
|
20948
21026
|
var withinBytes = /* @__PURE__ */ __name((lists, bytes2) => {
|
|
20949
21027
|
let used = 0;
|
|
20950
21028
|
let cut = false;
|
|
20951
|
-
const keep2 = /* @__PURE__ */ __name((items) => items.filter((
|
|
20952
|
-
const size4 = Buffer.byteLength(JSON.stringify(
|
|
21029
|
+
const keep2 = /* @__PURE__ */ __name((items) => items.filter((item2) => {
|
|
21030
|
+
const size4 = Buffer.byteLength(JSON.stringify(item2), "utf8");
|
|
20953
21031
|
if (cut || used + size4 > bytes2) {
|
|
20954
21032
|
cut = true;
|
|
20955
21033
|
return false;
|
|
@@ -21024,10 +21102,10 @@ var personMessages = /* @__PURE__ */ __name(async (store, asked, reference, { ch
|
|
|
21024
21102
|
};
|
|
21025
21103
|
}, "personMessages");
|
|
21026
21104
|
|
|
21027
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21105
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/services/meeting-evidence.js
|
|
21028
21106
|
import { createHash } from "node:crypto";
|
|
21029
21107
|
|
|
21030
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21108
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/services/meeting-reference.js
|
|
21031
21109
|
var missing2 = /* @__PURE__ */ __name(() => new CliError("not_found", "the meeting evidence is unavailable for this account"), "missing");
|
|
21032
21110
|
var authorizedMeetingMetadata = /* @__PURE__ */ __name(async (store, accountId, reference, options = {}) => {
|
|
21033
21111
|
const parsed = parseMeetingReference(reference);
|
|
@@ -21045,7 +21123,7 @@ var authorizedMeetingMetadata = /* @__PURE__ */ __name(async (store, accountId,
|
|
|
21045
21123
|
return { parsed, meeting };
|
|
21046
21124
|
}, "authorizedMeetingMetadata");
|
|
21047
21125
|
|
|
21048
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21126
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/services/meeting-evidence.js
|
|
21049
21127
|
var hash = /* @__PURE__ */ __name((value) => createHash("sha256").update(JSON.stringify(value)).digest("hex"), "hash");
|
|
21050
21128
|
var checkMeetingCancelled = /* @__PURE__ */ __name((signal) => {
|
|
21051
21129
|
if (signal?.aborted)
|
|
@@ -21191,16 +21269,16 @@ var readMeetingEvidence = /* @__PURE__ */ __name(async (store, accountId, refere
|
|
|
21191
21269
|
hasMore = true;
|
|
21192
21270
|
break;
|
|
21193
21271
|
}
|
|
21194
|
-
const
|
|
21195
|
-
const bytes2 = Buffer.byteLength(JSON.stringify(
|
|
21272
|
+
const item2 = cueEvidence(accountId, meeting.id, page.transcript, row);
|
|
21273
|
+
const bytes2 = Buffer.byteLength(JSON.stringify(item2), "utf8") + (items.length ? 1 : 0);
|
|
21196
21274
|
if (contentBytes + bytes2 > limits.bytes) {
|
|
21197
21275
|
truncatedBy = "bytes";
|
|
21198
21276
|
hasMore = true;
|
|
21199
21277
|
break;
|
|
21200
21278
|
}
|
|
21201
|
-
items.push(
|
|
21279
|
+
items.push(item2);
|
|
21202
21280
|
contentBytes += bytes2;
|
|
21203
|
-
nextReference =
|
|
21281
|
+
nextReference = item2.reference;
|
|
21204
21282
|
afterPosition = row.position;
|
|
21205
21283
|
}
|
|
21206
21284
|
if (truncatedBy !== null || parsed.cuePosition !== void 0 || !page.hasMore)
|
|
@@ -21244,7 +21322,7 @@ var readMeetingEvidence = /* @__PURE__ */ __name(async (store, accountId, refere
|
|
|
21244
21322
|
return { ...packet, fingerprint: hash(packet) };
|
|
21245
21323
|
}, "readMeetingEvidence");
|
|
21246
21324
|
|
|
21247
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21325
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/services/person-meeting-context.js
|
|
21248
21326
|
var personMeetingContext = /* @__PURE__ */ __name(async (store, personReference, options) => {
|
|
21249
21327
|
const { meetings = 10, cues = 5, bytes: bytes2 = 64 * 1024, scanLimit = 1e3, since, signal } = options;
|
|
21250
21328
|
const requestedAccounts = options.accountIds;
|
|
@@ -21308,7 +21386,7 @@ var personMeetingContext = /* @__PURE__ */ __name(async (store, personReference,
|
|
|
21308
21386
|
}
|
|
21309
21387
|
throw error;
|
|
21310
21388
|
}
|
|
21311
|
-
const
|
|
21389
|
+
const item2 = {
|
|
21312
21390
|
reference,
|
|
21313
21391
|
cues: evidence.items,
|
|
21314
21392
|
cueCoverage: {
|
|
@@ -21317,12 +21395,12 @@ var personMeetingContext = /* @__PURE__ */ __name(async (store, personReference,
|
|
|
21317
21395
|
hasMore: evidence.coverage.hasMore
|
|
21318
21396
|
}
|
|
21319
21397
|
};
|
|
21320
|
-
const itemBytes = Buffer.byteLength(JSON.stringify(
|
|
21398
|
+
const itemBytes = Buffer.byteLength(JSON.stringify(item2), "utf8") + (items.length ? 1 : 0);
|
|
21321
21399
|
if (contentBytes + itemBytes > bytes2) {
|
|
21322
21400
|
truncatedBy = "bytes";
|
|
21323
21401
|
break;
|
|
21324
21402
|
}
|
|
21325
|
-
items.push(
|
|
21403
|
+
items.push(item2);
|
|
21326
21404
|
contentBytes += itemBytes;
|
|
21327
21405
|
}
|
|
21328
21406
|
checkMeetingCancelled(signal);
|
|
@@ -21343,7 +21421,7 @@ var personMeetingContext = /* @__PURE__ */ __name(async (store, personReference,
|
|
|
21343
21421
|
};
|
|
21344
21422
|
}, "personMeetingContext");
|
|
21345
21423
|
|
|
21346
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21424
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/services/person-preparation.js
|
|
21347
21425
|
var PREPARE_BYTES = 96 * 1024;
|
|
21348
21426
|
var MEETINGS = 5;
|
|
21349
21427
|
var CUES = 3;
|
|
@@ -21356,14 +21434,14 @@ var personPreparation = /* @__PURE__ */ __name(async (store, asked, reference, o
|
|
|
21356
21434
|
const budgeted = /* @__PURE__ */ __name((page) => {
|
|
21357
21435
|
const items = [];
|
|
21358
21436
|
let cut = false;
|
|
21359
|
-
for (const
|
|
21360
|
-
const bytes2 = size(
|
|
21437
|
+
for (const item2 of page.items.slice(0, limit)) {
|
|
21438
|
+
const bytes2 = size(item2);
|
|
21361
21439
|
if (cut || bytes2 > left) {
|
|
21362
21440
|
cut = true;
|
|
21363
21441
|
continue;
|
|
21364
21442
|
}
|
|
21365
21443
|
left -= bytes2;
|
|
21366
|
-
items.push(
|
|
21444
|
+
items.push(item2);
|
|
21367
21445
|
}
|
|
21368
21446
|
const over = page.hasMore || page.items.length > limit;
|
|
21369
21447
|
return {
|
|
@@ -21446,7 +21524,7 @@ var meetingsOf = /* @__PURE__ */ __name(async (store, uid, stored, since, left)
|
|
|
21446
21524
|
bytes: Math.min(left(), 4 * 1024 * 1024),
|
|
21447
21525
|
...since === void 0 ? {} : { since }
|
|
21448
21526
|
});
|
|
21449
|
-
const read2 = new Set(found.items.map((
|
|
21527
|
+
const read2 = new Set(found.items.map((item2) => parseMeetingReference(item2.reference).accountId));
|
|
21450
21528
|
return {
|
|
21451
21529
|
items: found.items,
|
|
21452
21530
|
hasMore: found.coverage.truncatedBy !== null || found.coverage.scanLimitReached,
|
|
@@ -21460,7 +21538,7 @@ var meetingsOf = /* @__PURE__ */ __name(async (store, uid, stored, since, left)
|
|
|
21460
21538
|
}
|
|
21461
21539
|
}, "meetingsOf");
|
|
21462
21540
|
|
|
21463
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21541
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/services/person-profile.js
|
|
21464
21542
|
var personProfile = /* @__PURE__ */ __name(async (deps, person, known2) => {
|
|
21465
21543
|
const online = deps.offline ? void 0 : await deps.connection();
|
|
21466
21544
|
const held = await storeIfOpen(deps);
|
|
@@ -21530,7 +21608,7 @@ var quiet = /* @__PURE__ */ __name((facts) => facts.chats.map(({ id: id2, title,
|
|
|
21530
21608
|
complete: false
|
|
21531
21609
|
})), "quiet");
|
|
21532
21610
|
|
|
21533
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21611
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/services/person-timeline.js
|
|
21534
21612
|
var TIMELINE_ITEMS = 50;
|
|
21535
21613
|
var TIMELINE_MAX = 500;
|
|
21536
21614
|
var SCOPES2 = ["personal", "work"];
|
|
@@ -21585,7 +21663,7 @@ var personTimeline = /* @__PURE__ */ __name(async (store, asked, reference, { sc
|
|
|
21585
21663
|
};
|
|
21586
21664
|
}, "personTimeline");
|
|
21587
21665
|
|
|
21588
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21666
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/services/people.js
|
|
21589
21667
|
var peopleService = /* @__PURE__ */ __name((deps) => {
|
|
21590
21668
|
const localCard = /* @__PURE__ */ __name(async (card, includeNotes = false) => {
|
|
21591
21669
|
const held = await storeIfOpen(deps);
|
|
@@ -21812,7 +21890,7 @@ var withoutPhone = /* @__PURE__ */ __name((answer) => {
|
|
|
21812
21890
|
return rest;
|
|
21813
21891
|
}, "withoutPhone");
|
|
21814
21892
|
|
|
21815
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21893
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/services/task-tag-filters.js
|
|
21816
21894
|
var taskTagFilters = /* @__PURE__ */ __name(async (store, query) => {
|
|
21817
21895
|
const tags = /* @__PURE__ */ new Map();
|
|
21818
21896
|
for (const node of query ? walkQuery(query.root) : [])
|
|
@@ -21821,7 +21899,7 @@ var taskTagFilters = /* @__PURE__ */ __name(async (store, query) => {
|
|
|
21821
21899
|
return tags;
|
|
21822
21900
|
}, "taskTagFilters");
|
|
21823
21901
|
|
|
21824
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21902
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/services/tasks.js
|
|
21825
21903
|
var TASK_QUERY = {
|
|
21826
21904
|
entity: "task",
|
|
21827
21905
|
backend: "sql",
|
|
@@ -22301,7 +22379,7 @@ var taskView = /* @__PURE__ */ __name(async (store, account, task2) => {
|
|
|
22301
22379
|
};
|
|
22302
22380
|
}, "taskView");
|
|
22303
22381
|
|
|
22304
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22382
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/services/proposal-tasks.js
|
|
22305
22383
|
var proposalSource = /* @__PURE__ */ __name((id2) => `proposed-action:${id2}`, "proposalSource");
|
|
22306
22384
|
var approveAsTask = /* @__PURE__ */ __name(async (store, id2, by) => {
|
|
22307
22385
|
const proposal = await store.proposedActions.get(id2);
|
|
@@ -22331,7 +22409,7 @@ var approveAsTask = /* @__PURE__ */ __name(async (store, id2, by) => {
|
|
|
22331
22409
|
return { proposal: await store.proposedActions.approve(proposal.id, by, { task: task2.id }), task: task2 };
|
|
22332
22410
|
}, "approveAsTask");
|
|
22333
22411
|
|
|
22334
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22412
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/services/proposals/ids.js
|
|
22335
22413
|
var MAX_IDS = 500;
|
|
22336
22414
|
var refuse = /* @__PURE__ */ __name((message) => {
|
|
22337
22415
|
throw new CliError("validation_error", message, { reason: "proposal.ids" });
|
|
@@ -22371,7 +22449,7 @@ var parseProposalIds = /* @__PURE__ */ __name((text2) => {
|
|
|
22371
22449
|
return ids;
|
|
22372
22450
|
}, "parseProposalIds");
|
|
22373
22451
|
|
|
22374
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22452
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/shared.js
|
|
22375
22453
|
var proposerOfAuthor = /* @__PURE__ */ __name((author) => {
|
|
22376
22454
|
if (author.type === "person")
|
|
22377
22455
|
return { type: "person", id: author.id };
|
|
@@ -22413,7 +22491,7 @@ var storedStatus = /* @__PURE__ */ __name((filter) => {
|
|
|
22413
22491
|
return status === "proposed" || status === "rejected" ? status : void 0;
|
|
22414
22492
|
}, "storedStatus");
|
|
22415
22493
|
|
|
22416
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22494
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/action.js
|
|
22417
22495
|
var rowOf = /* @__PURE__ */ __name((action2) => ({
|
|
22418
22496
|
id: action2.id,
|
|
22419
22497
|
kind: "action",
|
|
@@ -22452,7 +22530,7 @@ var actionKind = /* @__PURE__ */ __name((store, claimed) => ({
|
|
|
22452
22530
|
}, "decide")
|
|
22453
22531
|
}), "actionKind");
|
|
22454
22532
|
|
|
22455
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22533
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/fact.js
|
|
22456
22534
|
var STATUS = {
|
|
22457
22535
|
proposed: "proposed",
|
|
22458
22536
|
accepted: "confirmed",
|
|
@@ -22495,16 +22573,51 @@ var factKind = /* @__PURE__ */ __name((store) => ({
|
|
|
22495
22573
|
}, "decide")
|
|
22496
22574
|
}), "factKind");
|
|
22497
22575
|
|
|
22498
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22576
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/finance.js
|
|
22577
|
+
var rowOf3 = /* @__PURE__ */ __name((kind, entry) => ({
|
|
22578
|
+
id: entry.ref,
|
|
22579
|
+
kind,
|
|
22580
|
+
status: entry.review,
|
|
22581
|
+
project: entry.project,
|
|
22582
|
+
subject: entry.ref,
|
|
22583
|
+
object: "counterparty" in entry ? entry.counterparty.ref : (entry.direction === "in" ? entry.payer : entry.payee)?.ref ?? null,
|
|
22584
|
+
summary: entry.title,
|
|
22585
|
+
proposedBy: proposerOfAuthor(entry.author),
|
|
22586
|
+
reason: entry.reason,
|
|
22587
|
+
evidence: [],
|
|
22588
|
+
score: null,
|
|
22589
|
+
signals: null,
|
|
22590
|
+
parts: null,
|
|
22591
|
+
createdAt: entry.createdAt
|
|
22592
|
+
}), "rowOf");
|
|
22593
|
+
var financeKind = /* @__PURE__ */ __name((store, kind) => ({
|
|
22594
|
+
kind,
|
|
22595
|
+
prefix: kind,
|
|
22596
|
+
list: /* @__PURE__ */ __name(async (filter) => {
|
|
22597
|
+
const status = filter.status ?? "proposed";
|
|
22598
|
+
const options = { ...pushed2(filter), ...status === "all" ? {} : { review: status } };
|
|
22599
|
+
const entries = kind === "invoice" ? await store.finance.invoices(options) : await store.finance.payments(options);
|
|
22600
|
+
return kept(entries.map((entry) => rowOf3(kind, entry)), filter);
|
|
22601
|
+
}, "list"),
|
|
22602
|
+
get: /* @__PURE__ */ __name(async (id2) => rowOf3(kind, kind === "invoice" ? await store.finance.invoice(id2) : await store.finance.payment(id2)), "get"),
|
|
22603
|
+
decide: /* @__PURE__ */ __name(async (id2, { confirm, by, reason }) => {
|
|
22604
|
+
const entry = confirm ? await store.finance.confirm(id2, by, reason) : await store.finance.reject(id2, by, reason);
|
|
22605
|
+
return { id: id2, kind, status: confirm ? "confirmed" : "rejected", made: confirm ? [entry.ref] : [] };
|
|
22606
|
+
}, "decide")
|
|
22607
|
+
}), "financeKind");
|
|
22608
|
+
var invoiceKind = /* @__PURE__ */ __name((store) => financeKind(store, "invoice"), "invoiceKind");
|
|
22609
|
+
var paymentKind = /* @__PURE__ */ __name((store) => financeKind(store, "payment"), "paymentKind");
|
|
22610
|
+
|
|
22611
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/findings.js
|
|
22499
22612
|
var FACT_SUMMARIES = {
|
|
22500
22613
|
fact: /* @__PURE__ */ __name((finding) => finding.statement, "fact"),
|
|
22501
22614
|
task: /* @__PURE__ */ __name((finding) => finding.title, "task"),
|
|
22502
22615
|
payment: /* @__PURE__ */ __name((finding) => paymentTitle(finding), "payment")
|
|
22503
22616
|
};
|
|
22504
22617
|
var statusOf = /* @__PURE__ */ __name((batch) => batch.status === "proposed" ? "proposed" : batch.receipt?.accepted.length ? "confirmed" : "rejected", "statusOf");
|
|
22505
|
-
var
|
|
22618
|
+
var rowOf4 = /* @__PURE__ */ __name((batch, createdAt) => {
|
|
22506
22619
|
const findings = batch.input.findings;
|
|
22507
|
-
const outcome2 = /* @__PURE__ */ __name((id2) => batch.receipt?.items.find((
|
|
22620
|
+
const outcome2 = /* @__PURE__ */ __name((id2) => batch.receipt?.items.find((item2) => item2.id === id2)?.status ?? null, "outcome");
|
|
22508
22621
|
return {
|
|
22509
22622
|
id: batch.id,
|
|
22510
22623
|
kind: "findings",
|
|
@@ -22528,7 +22641,7 @@ var rowOf3 = /* @__PURE__ */ __name((batch, createdAt) => {
|
|
|
22528
22641
|
};
|
|
22529
22642
|
}, "rowOf");
|
|
22530
22643
|
var findingsKind = /* @__PURE__ */ __name((store) => {
|
|
22531
|
-
const created = /* @__PURE__ */ __name(async (batch) =>
|
|
22644
|
+
const created = /* @__PURE__ */ __name(async (batch) => rowOf4(batch, (await store.proposedActions.get(batch.id)).createdAt), "created");
|
|
22532
22645
|
return {
|
|
22533
22646
|
kind: "findings",
|
|
22534
22647
|
stored: [EVIDENCE_FINDINGS_KIND],
|
|
@@ -22561,13 +22674,13 @@ var findingsKind = /* @__PURE__ */ __name((store) => {
|
|
|
22561
22674
|
by,
|
|
22562
22675
|
...reason === void 0 ? {} : { reason }
|
|
22563
22676
|
});
|
|
22564
|
-
const made = (reviewed.receipt?.items ?? []).flatMap((
|
|
22677
|
+
const made = (reviewed.receipt?.items ?? []).flatMap((item2) => item2.status === "accepted" && item2.reference && !item2.reused ? [item2.reference] : []);
|
|
22565
22678
|
return { id: id2, kind: "findings", status: accept.length ? "confirmed" : "rejected", made };
|
|
22566
22679
|
}, "decide")
|
|
22567
22680
|
};
|
|
22568
22681
|
}, "findingsKind");
|
|
22569
22682
|
|
|
22570
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22683
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/key-document.js
|
|
22571
22684
|
var linkRow = /* @__PURE__ */ __name((link4) => ({
|
|
22572
22685
|
id: `key:${link4.id}`,
|
|
22573
22686
|
kind: "key_document",
|
|
@@ -22635,14 +22748,14 @@ var keyDocumentKind = /* @__PURE__ */ __name((store) => {
|
|
|
22635
22748
|
};
|
|
22636
22749
|
}, "keyDocumentKind");
|
|
22637
22750
|
|
|
22638
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22751
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/memory.js
|
|
22639
22752
|
var STATUS2 = {
|
|
22640
22753
|
proposed: "proposed",
|
|
22641
22754
|
confirmed: "confirmed",
|
|
22642
22755
|
superseded: "confirmed",
|
|
22643
22756
|
stale: "rejected"
|
|
22644
22757
|
};
|
|
22645
|
-
var
|
|
22758
|
+
var rowOf5 = /* @__PURE__ */ __name((memory) => ({
|
|
22646
22759
|
id: memory.ref,
|
|
22647
22760
|
kind: "memory",
|
|
22648
22761
|
status: STATUS2[memory.status],
|
|
@@ -22667,16 +22780,16 @@ var memoryKind = /* @__PURE__ */ __name((store) => ({
|
|
|
22667
22780
|
...pushed2(filter),
|
|
22668
22781
|
...status === "all" ? {} : { status: status === "rejected" ? "stale" : status }
|
|
22669
22782
|
});
|
|
22670
|
-
return kept(memories.map(
|
|
22783
|
+
return kept(memories.map(rowOf5), filter);
|
|
22671
22784
|
}, "list"),
|
|
22672
|
-
get: /* @__PURE__ */ __name(async (id2) =>
|
|
22785
|
+
get: /* @__PURE__ */ __name(async (id2) => rowOf5(await store.memories.get(id2)), "get"),
|
|
22673
22786
|
decide: /* @__PURE__ */ __name(async (id2, { confirm, by }) => {
|
|
22674
22787
|
const memory = confirm ? await store.memories.confirm(id2, by) : await store.memories.markStale(id2, by);
|
|
22675
22788
|
return { id: id2, kind: "memory", status: confirm ? "confirmed" : "rejected", made: confirm ? [memory.ref] : [] };
|
|
22676
22789
|
}, "decide")
|
|
22677
22790
|
}), "memoryKind");
|
|
22678
22791
|
|
|
22679
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22792
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/relationship.js
|
|
22680
22793
|
var linkRow2 = /* @__PURE__ */ __name((link4) => ({
|
|
22681
22794
|
id: `link:${link4.id}`,
|
|
22682
22795
|
kind: "relationship",
|
|
@@ -22750,10 +22863,10 @@ var relationshipKind = /* @__PURE__ */ __name((store) => {
|
|
|
22750
22863
|
};
|
|
22751
22864
|
}, "relationshipKind");
|
|
22752
22865
|
|
|
22753
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22866
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/relationship-update.js
|
|
22754
22867
|
var KIND = "relationship_update";
|
|
22755
22868
|
var summaryOf = /* @__PURE__ */ __name(({ changes }) => Object.entries(changes).map(([field, value]) => `${field} ${value ?? "cleared"}`).join(", "), "summaryOf");
|
|
22756
|
-
var
|
|
22869
|
+
var rowOf6 = /* @__PURE__ */ __name((action2) => {
|
|
22757
22870
|
const payload = action2.payload;
|
|
22758
22871
|
return {
|
|
22759
22872
|
id: action2.id,
|
|
@@ -22782,9 +22895,9 @@ var relationshipUpdateKind = /* @__PURE__ */ __name((store) => ({
|
|
|
22782
22895
|
...status === void 0 ? {} : { status },
|
|
22783
22896
|
...pushed2(filter)
|
|
22784
22897
|
});
|
|
22785
|
-
return kept(stored.map(
|
|
22898
|
+
return kept(stored.map(rowOf6), filter);
|
|
22786
22899
|
}, "list"),
|
|
22787
|
-
get: /* @__PURE__ */ __name(async (id2) =>
|
|
22900
|
+
get: /* @__PURE__ */ __name(async (id2) => rowOf6(await store.proposedActions.get(id2)), "get"),
|
|
22788
22901
|
decide: /* @__PURE__ */ __name(async (id2, { confirm, by, reason }) => {
|
|
22789
22902
|
const { relation } = await store.knowledge.decideRelationUpdate(id2, {
|
|
22790
22903
|
confirm,
|
|
@@ -22800,7 +22913,7 @@ var relationshipUpdateKind = /* @__PURE__ */ __name((store) => ({
|
|
|
22800
22913
|
}, "decide")
|
|
22801
22914
|
}), "relationshipUpdateKind");
|
|
22802
22915
|
|
|
22803
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22916
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/services/proposals/registry.js
|
|
22804
22917
|
var PREFIX = /^([a-z][a-z_]*):/;
|
|
22805
22918
|
var refusalOf = /* @__PURE__ */ __name((id2, error) => {
|
|
22806
22919
|
if (!(error instanceof CliError))
|
|
@@ -22909,6 +23022,8 @@ var proposalRegistry = /* @__PURE__ */ __name((store) => {
|
|
|
22909
23022
|
relationshipUpdateKind(store),
|
|
22910
23023
|
keyDocumentKind(store),
|
|
22911
23024
|
factKind(store),
|
|
23025
|
+
invoiceKind(store),
|
|
23026
|
+
paymentKind(store),
|
|
22912
23027
|
memoryKind(store),
|
|
22913
23028
|
findingsKind(store)
|
|
22914
23029
|
])
|
|
@@ -22917,7 +23032,7 @@ var proposalRegistry = /* @__PURE__ */ __name((store) => {
|
|
|
22917
23032
|
return registry;
|
|
22918
23033
|
}, "proposalRegistry");
|
|
22919
23034
|
|
|
22920
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23035
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/mail/owed.js
|
|
22921
23036
|
var mailTurn = /* @__PURE__ */ __name((newest) => {
|
|
22922
23037
|
if (newest === null)
|
|
22923
23038
|
return null;
|
|
@@ -22926,7 +23041,7 @@ var mailTurn = /* @__PURE__ */ __name((newest) => {
|
|
|
22926
23041
|
return newest.addressed ? "owed" : null;
|
|
22927
23042
|
}, "mailTurn");
|
|
22928
23043
|
|
|
22929
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23044
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/services/agenda-mail.js
|
|
22930
23045
|
var absent = /* @__PURE__ */ __name((error) => {
|
|
22931
23046
|
if (error instanceof CliError && error.code === "not_found")
|
|
22932
23047
|
return void 0;
|
|
@@ -22984,7 +23099,7 @@ var mailActivity = /* @__PURE__ */ __name(async (store, account, since, chats) =
|
|
|
22984
23099
|
};
|
|
22985
23100
|
}, "mailActivity");
|
|
22986
23101
|
|
|
22987
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23102
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/services/chat-coverage.js
|
|
22988
23103
|
var chatCoverage = /* @__PURE__ */ __name(async (store, account, chatIds) => {
|
|
22989
23104
|
const ids = [...new Set(chatIds)];
|
|
22990
23105
|
if (ids.length === 0)
|
|
@@ -23010,7 +23125,7 @@ var chatCoverage = /* @__PURE__ */ __name(async (store, account, chatIds) => {
|
|
|
23010
23125
|
}));
|
|
23011
23126
|
}, "chatCoverage");
|
|
23012
23127
|
|
|
23013
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23128
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/services/agenda.js
|
|
23014
23129
|
var DAY = 864e5;
|
|
23015
23130
|
var AGENDA_DEFAULTS = { unanswered: DAY, waiting: 7 * DAY };
|
|
23016
23131
|
var CLAIMS = ["none", "mine", "others", "any"];
|
|
@@ -23257,7 +23372,7 @@ var agendaItem = /* @__PURE__ */ __name((shown) => {
|
|
|
23257
23372
|
};
|
|
23258
23373
|
}, "agendaItem");
|
|
23259
23374
|
|
|
23260
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23375
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/services/excerpt.js
|
|
23261
23376
|
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");
|
|
23262
23377
|
var excerpt = /* @__PURE__ */ __name((text2, query, size4 = 240, options = {}) => {
|
|
23263
23378
|
const flat = text2.replace(/\s+/g, " ").trim();
|
|
@@ -23273,7 +23388,7 @@ var excerpt = /* @__PURE__ */ __name((text2, query, size4 = 240, options = {}) =
|
|
|
23273
23388
|
}, "excerpt");
|
|
23274
23389
|
var withExcerpt = /* @__PURE__ */ __name(({ matchedText, ...hit }, query) => ({ ...hit, excerpt: excerpt(matchedText ?? hit.text, query) }), "withExcerpt");
|
|
23275
23390
|
|
|
23276
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23391
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/services/project-gathering-around.js
|
|
23277
23392
|
var storedMessageNeighbours = /* @__PURE__ */ __name((messages) => ({
|
|
23278
23393
|
async around(ref, window3) {
|
|
23279
23394
|
const at = parseLocator(ref);
|
|
@@ -23308,35 +23423,35 @@ var documentPassage = /* @__PURE__ */ __name((text2, query, window3) => document
|
|
|
23308
23423
|
var attachNeighbours = /* @__PURE__ */ __name(async (items, reader, window3, budget, known2, signal) => {
|
|
23309
23424
|
if (!reader || window3.before + window3.after === 0)
|
|
23310
23425
|
return;
|
|
23311
|
-
for (const
|
|
23312
|
-
if (
|
|
23426
|
+
for (const item2 of items) {
|
|
23427
|
+
if (item2.kind !== "message" && item2.kind !== "mail")
|
|
23313
23428
|
continue;
|
|
23314
23429
|
if (budget.remaining() <= 0) {
|
|
23315
|
-
|
|
23316
|
-
|
|
23430
|
+
item2.around = null;
|
|
23431
|
+
item2.aroundIssue = "read-bytes";
|
|
23317
23432
|
continue;
|
|
23318
23433
|
}
|
|
23319
23434
|
signal?.throwIfAborted();
|
|
23320
23435
|
try {
|
|
23321
|
-
const rows = await reader.around(
|
|
23436
|
+
const rows = await reader.around(item2.ref, window3);
|
|
23322
23437
|
const around = [];
|
|
23323
23438
|
for (const row of rows.slice(0, window3.before + window3.after)) {
|
|
23324
23439
|
const text2 = excerpt(row.text, "", 200);
|
|
23325
23440
|
const bytes2 = Buffer.byteLength(text2);
|
|
23326
23441
|
if (bytes2 > budget.remaining()) {
|
|
23327
|
-
|
|
23442
|
+
item2.aroundIssue = "read-bytes";
|
|
23328
23443
|
break;
|
|
23329
23444
|
}
|
|
23330
23445
|
budget.charge(bytes2);
|
|
23331
23446
|
around.push({ ...row, text: text2, found: known2(row.ref) });
|
|
23332
23447
|
}
|
|
23333
|
-
|
|
23448
|
+
item2.around = around;
|
|
23334
23449
|
} catch (error) {
|
|
23335
23450
|
signal?.throwIfAborted();
|
|
23336
23451
|
if (!(error instanceof CliError))
|
|
23337
23452
|
throw error;
|
|
23338
|
-
|
|
23339
|
-
|
|
23453
|
+
item2.around = null;
|
|
23454
|
+
item2.aroundIssue = error.code;
|
|
23340
23455
|
}
|
|
23341
23456
|
}
|
|
23342
23457
|
}, "attachNeighbours");
|
|
@@ -23369,7 +23484,7 @@ var storedNeighbours = /* @__PURE__ */ __name((store) => {
|
|
|
23369
23484
|
};
|
|
23370
23485
|
}, "storedNeighbours");
|
|
23371
23486
|
|
|
23372
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23487
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/services/project-gathering-request.js
|
|
23373
23488
|
import { createHash as createHash2 } from "node:crypto";
|
|
23374
23489
|
var DAY2 = 864e5;
|
|
23375
23490
|
var MAX_TIME = 864e13;
|
|
@@ -23685,7 +23800,7 @@ var decodeCheckpoint = /* @__PURE__ */ __name((text2, plan) => {
|
|
|
23685
23800
|
return value;
|
|
23686
23801
|
}, "decodeCheckpoint");
|
|
23687
23802
|
|
|
23688
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23803
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/services/project-gathering.js
|
|
23689
23804
|
var terminal = /* @__PURE__ */ new Set(["done", "unavailable", "failed"]);
|
|
23690
23805
|
var PAGE2 = 20;
|
|
23691
23806
|
var PEOPLE = 20;
|
|
@@ -23832,27 +23947,27 @@ var gatherProjectEvidence = /* @__PURE__ */ __name(async (ports, request) => {
|
|
|
23832
23947
|
matchedAgain.set(ref, (matchedAgain.get(ref) ?? /* @__PURE__ */ new Set()).add(lane.id));
|
|
23833
23948
|
return true;
|
|
23834
23949
|
}, "again");
|
|
23835
|
-
const take = /* @__PURE__ */ __name((
|
|
23836
|
-
if (again(
|
|
23950
|
+
const take = /* @__PURE__ */ __name((item2, lane, kind, source) => {
|
|
23951
|
+
if (again(item2.ref, lane))
|
|
23837
23952
|
return;
|
|
23838
|
-
seen.add(seenKey(
|
|
23839
|
-
const short = excerpt(
|
|
23840
|
-
const fingerprint = contextEvidenceFingerprint(
|
|
23841
|
-
const { sender, ...stored } =
|
|
23953
|
+
seen.add(seenKey(item2.ref));
|
|
23954
|
+
const short = excerpt(item2.text, lane.query ?? "", 300, { literal: true });
|
|
23955
|
+
const fingerprint = contextEvidenceFingerprint(item2);
|
|
23956
|
+
const { sender, ...stored } = item2;
|
|
23842
23957
|
if (sender)
|
|
23843
|
-
senderOf.set(
|
|
23958
|
+
senderOf.set(item2.ref, sender);
|
|
23844
23959
|
const entry = {
|
|
23845
23960
|
...stored,
|
|
23846
23961
|
kind,
|
|
23847
23962
|
source,
|
|
23848
23963
|
text: short,
|
|
23849
|
-
textTruncated: short !==
|
|
23964
|
+
textTruncated: short !== item2.text.replace(/\s+/g, " ").trim(),
|
|
23850
23965
|
fingerprint,
|
|
23851
23966
|
lanes: [lane.id],
|
|
23852
23967
|
context: contextOf(lane)
|
|
23853
23968
|
};
|
|
23854
23969
|
if (kind === "document" && lane.query !== null && plan.around.before + plan.around.after) {
|
|
23855
|
-
const passage = documentMatches(
|
|
23970
|
+
const passage = documentMatches(item2.text, queries, plan.around);
|
|
23856
23971
|
entry.around = [];
|
|
23857
23972
|
entry.moreMatches = passage.moreMatches;
|
|
23858
23973
|
for (const part of passage.around) {
|
|
@@ -23862,10 +23977,10 @@ var gatherProjectEvidence = /* @__PURE__ */ __name(async (ports, request) => {
|
|
|
23862
23977
|
break;
|
|
23863
23978
|
}
|
|
23864
23979
|
usage.aroundBytes += bytes2;
|
|
23865
|
-
entry.around.push({ ref:
|
|
23980
|
+
entry.around.push({ ref: item2.ref, at: item2.at, sender: null, ...part });
|
|
23866
23981
|
}
|
|
23867
23982
|
}
|
|
23868
|
-
byRef.set(
|
|
23983
|
+
byRef.set(item2.ref, entry);
|
|
23869
23984
|
items.push(entry);
|
|
23870
23985
|
usage.items++;
|
|
23871
23986
|
if (linkedLanes.has(lane.id))
|
|
@@ -23932,8 +24047,8 @@ var gatherProjectEvidence = /* @__PURE__ */ __name(async (ports, request) => {
|
|
|
23932
24047
|
}
|
|
23933
24048
|
state.pages++;
|
|
23934
24049
|
state.code = page.coverage.index === "ready" ? null : `index-${page.coverage.index}`;
|
|
23935
|
-
for (const
|
|
23936
|
-
take(
|
|
24050
|
+
for (const item2 of page.items)
|
|
24051
|
+
take(item2, unit.lane, unit.source.kind, unit.sourceIndex);
|
|
23937
24052
|
if (!page.coverage.available)
|
|
23938
24053
|
state.state = "unavailable";
|
|
23939
24054
|
else if (page.next) {
|
|
@@ -23957,7 +24072,7 @@ var gatherProjectEvidence = /* @__PURE__ */ __name(async (ports, request) => {
|
|
|
23957
24072
|
}
|
|
23958
24073
|
await attachNeighbours(
|
|
23959
24074
|
// A linked chat's neighbours are already its own lane's evidence.
|
|
23960
|
-
items.filter((
|
|
24075
|
+
items.filter((item2) => item2.context !== "linked-chat"),
|
|
23961
24076
|
ports.neighbours,
|
|
23962
24077
|
plan.around,
|
|
23963
24078
|
{
|
|
@@ -24068,8 +24183,8 @@ var gatherProjectEvidence = /* @__PURE__ */ __name(async (ports, request) => {
|
|
|
24068
24183
|
}, "gatherProjectEvidence");
|
|
24069
24184
|
var peopleOf = /* @__PURE__ */ __name((items, senderOf) => {
|
|
24070
24185
|
const byKey = /* @__PURE__ */ new Map();
|
|
24071
|
-
for (const
|
|
24072
|
-
const sender = senderOf.get(
|
|
24186
|
+
for (const item2 of items) {
|
|
24187
|
+
const sender = senderOf.get(item2.ref);
|
|
24073
24188
|
if (!sender || sender.owner)
|
|
24074
24189
|
continue;
|
|
24075
24190
|
const key = sender.person ?? JSON.stringify([sender.provider, sender.id]);
|
|
@@ -24081,15 +24196,15 @@ var peopleOf = /* @__PURE__ */ __name((items, senderOf) => {
|
|
|
24081
24196
|
contexts: {}
|
|
24082
24197
|
};
|
|
24083
24198
|
byKey.set(key, found);
|
|
24084
|
-
if (!found.identities.some((i) => i.provider === sender.provider && i.account ===
|
|
24085
|
-
found.identities.push({ provider: sender.provider, account:
|
|
24199
|
+
if (!found.identities.some((i) => i.provider === sender.provider && i.account === item2.account && i.id === sender.id))
|
|
24200
|
+
found.identities.push({ provider: sender.provider, account: item2.account, id: sender.id });
|
|
24086
24201
|
found.items++;
|
|
24087
|
-
found.contexts[
|
|
24202
|
+
found.contexts[item2.context] = (found.contexts[item2.context] ?? 0) + 1;
|
|
24088
24203
|
}
|
|
24089
24204
|
return [...byKey.values()].sort((a, b) => b.items - a.items || a.name.localeCompare(b.name));
|
|
24090
24205
|
}, "peopleOf");
|
|
24091
24206
|
|
|
24092
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24207
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/services/meeting-project-candidate-matching.js
|
|
24093
24208
|
var normalizedText = /* @__PURE__ */ __name((text2) => text2.normalize("NFKC").toLowerCase().replace(/\s+/gu, " "), "normalizedText");
|
|
24094
24209
|
var termsOf = /* @__PURE__ */ __name((entry) => [
|
|
24095
24210
|
{ name: entry.name, kind: "canonical" },
|
|
@@ -24133,7 +24248,7 @@ var matchVocabularyTerms = /* @__PURE__ */ __name((catalog, texts) => {
|
|
|
24133
24248
|
return result.sort((a, b) => Number(a.entry.id) - Number(b.entry.id));
|
|
24134
24249
|
}, "matchVocabularyTerms");
|
|
24135
24250
|
|
|
24136
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24251
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/services/project-gathering-mentions.js
|
|
24137
24252
|
var KINDS = ["project", "tag", "topic"];
|
|
24138
24253
|
var findEvidenceMentions = /* @__PURE__ */ __name(async (vocabulary, gathering, options = {}) => {
|
|
24139
24254
|
if (typeof vocabulary?.vocabulary !== "function")
|
|
@@ -24141,9 +24256,9 @@ var findEvidenceMentions = /* @__PURE__ */ __name(async (vocabulary, gathering,
|
|
|
24141
24256
|
const limit = options.limit ?? 50;
|
|
24142
24257
|
if (!Number.isSafeInteger(limit) || limit < 1 || limit > 200)
|
|
24143
24258
|
throw new CliError("validation_error", "limit must be a whole number from 1 to 200", { param: "limit" });
|
|
24144
|
-
const texts = gathering.items.flatMap((
|
|
24145
|
-
{ text: `${
|
|
24146
|
-
...(
|
|
24259
|
+
const texts = gathering.items.flatMap((item2) => [
|
|
24260
|
+
{ text: `${item2.title ?? ""} ${item2.text}`, source: { reference: item2.ref, in: "hit" } },
|
|
24261
|
+
...(item2.around ?? []).map((one2) => ({ text: one2.text, source: { reference: one2.ref, in: "around" } }))
|
|
24147
24262
|
]);
|
|
24148
24263
|
const items = [];
|
|
24149
24264
|
const vocabularyFingerprints = {};
|
|
@@ -24188,7 +24303,7 @@ var findEvidenceMentions = /* @__PURE__ */ __name(async (vocabulary, gathering,
|
|
|
24188
24303
|
};
|
|
24189
24304
|
}, "findEvidenceMentions");
|
|
24190
24305
|
|
|
24191
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24306
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/services/stored-project-gathering.js
|
|
24192
24307
|
var storedChatCount = /* @__PURE__ */ __name((store) => async (account, chatId, { since, until }) => {
|
|
24193
24308
|
const window3 = { since: new Date(since).toISOString(), until: new Date(until - 1).toISOString() };
|
|
24194
24309
|
const [messages, newest, oldest] = await Promise.all([
|
|
@@ -24439,9 +24554,9 @@ var gatherStoredProject = /* @__PURE__ */ __name(async (store, input) => {
|
|
|
24439
24554
|
if (proposed && lane.kinds.includes("sender"))
|
|
24440
24555
|
proposedLanes.set(lane.id, proposed);
|
|
24441
24556
|
}
|
|
24442
|
-
const items = gathered.items.map((
|
|
24443
|
-
const proposed =
|
|
24444
|
-
return proposed ? { ...
|
|
24557
|
+
const items = gathered.items.map((item2) => {
|
|
24558
|
+
const proposed = item2.lanes.every((lane) => proposedLanes.has(lane)) ? proposedLanes.get(item2.lanes[0] ?? "") : void 0;
|
|
24559
|
+
return proposed ? { ...item2, proposed } : item2;
|
|
24445
24560
|
});
|
|
24446
24561
|
const linkedRows = gathered.linkedChats.map((row) => {
|
|
24447
24562
|
const link4 = byRef.get(row.ref);
|
|
@@ -24494,18 +24609,18 @@ var purposeHintOf = /* @__PURE__ */ __name((linked, rows, of) => {
|
|
|
24494
24609
|
return { chat: top.ref, relationship: link4.relationship, items, of };
|
|
24495
24610
|
}, "purposeHintOf");
|
|
24496
24611
|
|
|
24497
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24612
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/services/media-archive.js
|
|
24498
24613
|
import { setTimeout as sleep3 } from "node:timers/promises";
|
|
24499
24614
|
|
|
24500
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24615
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/services/media-archive-files.js
|
|
24501
24616
|
import { lstat } from "node:fs/promises";
|
|
24502
24617
|
|
|
24503
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24618
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-store.js
|
|
24504
24619
|
import { createHash as createHash4, randomUUID as randomUUID2 } from "node:crypto";
|
|
24505
24620
|
import { open as open2, rename as rename2, unlink as unlink2 } from "node:fs/promises";
|
|
24506
24621
|
import { join as join2 } from "node:path";
|
|
24507
24622
|
|
|
24508
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24623
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-metadata.js
|
|
24509
24624
|
import { createHash as createHash3 } from "node:crypto";
|
|
24510
24625
|
var metadataLimit = 16384;
|
|
24511
24626
|
var partialIdentity = /* @__PURE__ */ __name((locator) => JSON.stringify([locator.provider, locator.account, locator.occurrenceId, locator.assetId]), "partialIdentity");
|
|
@@ -24565,7 +24680,7 @@ var readPartialMetadata = /* @__PURE__ */ __name(async (path, locator, maxBytes,
|
|
|
24565
24680
|
}
|
|
24566
24681
|
}, "readPartialMetadata");
|
|
24567
24682
|
|
|
24568
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24683
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-writer.js
|
|
24569
24684
|
import { randomUUID } from "node:crypto";
|
|
24570
24685
|
import { open, rename, unlink } from "node:fs/promises";
|
|
24571
24686
|
import { join } from "node:path";
|
|
@@ -24657,7 +24772,7 @@ var partialWriter = /* @__PURE__ */ __name(async (input) => {
|
|
|
24657
24772
|
};
|
|
24658
24773
|
}, "partialWriter");
|
|
24659
24774
|
|
|
24660
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24775
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-store.js
|
|
24661
24776
|
var NativeRecordingPartialStore = class {
|
|
24662
24777
|
static {
|
|
24663
24778
|
__name(this, "NativeRecordingPartialStore");
|
|
@@ -24764,21 +24879,21 @@ var NativeRecordingPartialStore = class {
|
|
|
24764
24879
|
}
|
|
24765
24880
|
};
|
|
24766
24881
|
|
|
24767
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24882
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication.js
|
|
24768
24883
|
import { createHash as createHash5 } from "node:crypto";
|
|
24769
24884
|
import { link as link2 } from "node:fs/promises";
|
|
24770
24885
|
import { basename, dirname, join as join4, resolve } from "node:path";
|
|
24771
24886
|
|
|
24772
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24887
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication-files.js
|
|
24773
24888
|
import { unlink as unlink3 } from "node:fs/promises";
|
|
24774
|
-
var verifiedPublicationFile = /* @__PURE__ */ __name(async (path,
|
|
24889
|
+
var verifiedPublicationFile = /* @__PURE__ */ __name(async (path, expected2, signal, writable = false) => {
|
|
24775
24890
|
signal?.throwIfAborted();
|
|
24776
24891
|
const file2 = await openOrdinaryFile(path, { writable });
|
|
24777
24892
|
try {
|
|
24778
|
-
if ((await file2.stat()).size !==
|
|
24893
|
+
if ((await file2.stat()).size !== expected2.size)
|
|
24779
24894
|
throw new CliError("validation_error", "recording recovery final checksum does not match");
|
|
24780
|
-
const actual = await fingerprintPartial(file2, signal,
|
|
24781
|
-
if (actual.offset !==
|
|
24895
|
+
const actual = await fingerprintPartial(file2, signal, expected2.size);
|
|
24896
|
+
if (actual.offset !== expected2.size || actual.sha256 !== expected2.sha256)
|
|
24782
24897
|
throw new CliError("validation_error", "recording recovery final checksum does not match");
|
|
24783
24898
|
return file2;
|
|
24784
24899
|
} catch (error) {
|
|
@@ -24804,7 +24919,7 @@ var commitPublication = /* @__PURE__ */ __name(async (root, partialPath, finalPa
|
|
|
24804
24919
|
signal?.throwIfAborted();
|
|
24805
24920
|
}, "commitPublication");
|
|
24806
24921
|
|
|
24807
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24922
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication-journal.js
|
|
24808
24923
|
import { randomUUID as randomUUID3 } from "node:crypto";
|
|
24809
24924
|
import { open as open3, rename as rename3, unlink as unlink4 } from "node:fs/promises";
|
|
24810
24925
|
import { join as join3 } from "node:path";
|
|
@@ -24877,7 +24992,7 @@ var writePublicationJournal = /* @__PURE__ */ __name(async (root, path, prefix,
|
|
|
24877
24992
|
}
|
|
24878
24993
|
}, "writePublicationJournal");
|
|
24879
24994
|
|
|
24880
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24995
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication.js
|
|
24881
24996
|
var NativeRecordingPublication = class {
|
|
24882
24997
|
static {
|
|
24883
24998
|
__name(this, "NativeRecordingPublication");
|
|
@@ -24904,13 +25019,13 @@ var NativeRecordingPublication = class {
|
|
|
24904
25019
|
write(value) {
|
|
24905
25020
|
return writePublicationJournal(this.root, this.journalPath, this.options.prefix, value, this.options.codec, this.options.metadataLimit, this.options.signal);
|
|
24906
25021
|
}
|
|
24907
|
-
validate(partialPath,
|
|
24908
|
-
if (resolve(dirname(partialPath)) !== resolve(this.root) || resolve(partialPath) === resolve(this.finalPath) || resolve(partialPath) === resolve(this.journalPath) || !Number.isSafeInteger(
|
|
25022
|
+
validate(partialPath, expected2) {
|
|
25023
|
+
if (resolve(dirname(partialPath)) !== resolve(this.root) || resolve(partialPath) === resolve(this.finalPath) || resolve(partialPath) === resolve(this.journalPath) || !Number.isSafeInteger(expected2.size) || expected2.size < 0 || expected2.size > this.options.maxBytes || typeof expected2.sha256 !== "string" || !/^[a-f0-9]{64}$/.test(expected2.sha256))
|
|
24909
25024
|
throw new CliError("validation_error", "invalid recording publication evidence");
|
|
24910
25025
|
this.options.signal?.throwIfAborted();
|
|
24911
25026
|
}
|
|
24912
|
-
async publish(partialPath,
|
|
24913
|
-
const proof = { ...
|
|
25027
|
+
async publish(partialPath, expected2, commit) {
|
|
25028
|
+
const proof = { ...expected2 };
|
|
24914
25029
|
this.validate(partialPath, proof);
|
|
24915
25030
|
const partial = await verifiedPublicationFile(partialPath, proof, this.options.signal, true);
|
|
24916
25031
|
try {
|
|
@@ -24928,14 +25043,14 @@ var NativeRecordingPublication = class {
|
|
|
24928
25043
|
const intent = await this.read();
|
|
24929
25044
|
if (intent === null)
|
|
24930
25045
|
throw new CliError("validation_error", "recording path already exists without a verified manifest or scoped recovery record");
|
|
24931
|
-
const
|
|
24932
|
-
this.validate(partialPath,
|
|
25046
|
+
const expected2 = { ...this.options.evidence(intent) };
|
|
25047
|
+
this.validate(partialPath, expected2);
|
|
24933
25048
|
const completed = await loadPartial();
|
|
24934
|
-
if (!strongRecordingValidator(
|
|
25049
|
+
if (!strongRecordingValidator(expected2.validator) || !completed || partialIdentity(completed.locator) !== this.scope || completed.offset !== expected2.size || completed.sha256 !== expected2.sha256 || completed.validator !== expected2.validator || completed.total !== null && completed.total !== expected2.size)
|
|
24935
25050
|
throw new CliError("validation_error", "recording recovery checkpoint does not prove this completed asset");
|
|
24936
|
-
const partial = await verifiedPublicationFile(partialPath,
|
|
25051
|
+
const partial = await verifiedPublicationFile(partialPath, expected2, this.options.signal);
|
|
24937
25052
|
try {
|
|
24938
|
-
const final = await verifiedPublicationFile(this.finalPath,
|
|
25053
|
+
const final = await verifiedPublicationFile(this.finalPath, expected2, this.options.signal, true);
|
|
24939
25054
|
try {
|
|
24940
25055
|
await final.sync();
|
|
24941
25056
|
this.options.signal?.throwIfAborted();
|
|
@@ -24950,7 +25065,7 @@ var NativeRecordingPublication = class {
|
|
|
24950
25065
|
}
|
|
24951
25066
|
};
|
|
24952
25067
|
|
|
24953
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25068
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/services/media-archive-manifest.js
|
|
24954
25069
|
import { createHash as createHash6 } from "node:crypto";
|
|
24955
25070
|
import { readdir } from "node:fs/promises";
|
|
24956
25071
|
import { isAbsolute, join as join5, resolve as resolve2 } from "node:path";
|
|
@@ -25037,7 +25152,7 @@ var commitMediaEntry = /* @__PURE__ */ __name((root, one2, beforePublish) => wri
|
|
|
25037
25152
|
beforePublish
|
|
25038
25153
|
}), "commitMediaEntry");
|
|
25039
25154
|
|
|
25040
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25155
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/services/media-archive-files.js
|
|
25041
25156
|
var validator = '"media-completed-v1"';
|
|
25042
25157
|
var maximumFileBytes = 64 * 1024 * 1024 * 1024;
|
|
25043
25158
|
var archiveMediaFile = /* @__PURE__ */ __name(async (root, identity, kind, file2, beforeWrite, signal, metadata = {}) => {
|
|
@@ -25138,7 +25253,7 @@ var archiveMediaFile = /* @__PURE__ */ __name(async (root, identity, kind, file2
|
|
|
25138
25253
|
return entry;
|
|
25139
25254
|
}, "archiveMediaFile");
|
|
25140
25255
|
|
|
25141
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25256
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/services/media-archive-locks.js
|
|
25142
25257
|
import { mkdir, realpath } from "node:fs/promises";
|
|
25143
25258
|
import { join as join6, resolve as resolve3 } from "node:path";
|
|
25144
25259
|
var archiveLocations = /* @__PURE__ */ __name(async (initial, signal) => {
|
|
@@ -25205,7 +25320,7 @@ var withMediaArchiveLocks = /* @__PURE__ */ __name(async (directory2, signal, ru
|
|
|
25205
25320
|
throw new CliError("validation_error", "archive locations changed during locking; run the command again");
|
|
25206
25321
|
}, "withMediaArchiveLocks");
|
|
25207
25322
|
|
|
25208
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25323
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/services/media-archive.js
|
|
25209
25324
|
var validateMediaSince = /* @__PURE__ */ __name((value, flag = "--since-time") => {
|
|
25210
25325
|
if (value === void 0)
|
|
25211
25326
|
return void 0;
|
|
@@ -25358,7 +25473,7 @@ var archiveMedia = /* @__PURE__ */ __name(async (ports, options) => {
|
|
|
25358
25473
|
}, { create: true });
|
|
25359
25474
|
}, "archiveMedia");
|
|
25360
25475
|
|
|
25361
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25476
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/services/media-archive-move.js
|
|
25362
25477
|
import { realpath as realpath2, unlink as unlink5 } from "node:fs/promises";
|
|
25363
25478
|
import { basename as basename2, dirname as dirname2, join as join7, resolve as resolve4 } from "node:path";
|
|
25364
25479
|
var canonicalDestination = /* @__PURE__ */ __name(async (directory2) => {
|
|
@@ -25511,7 +25626,7 @@ var moveMediaArchive = /* @__PURE__ */ __name(async (options) => {
|
|
|
25511
25626
|
}, { additional: [target2], createAdditional: !options.dryRun });
|
|
25512
25627
|
}, "moveMediaArchive");
|
|
25513
25628
|
|
|
25514
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25629
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/services/model-downloads.js
|
|
25515
25630
|
var bytesOf = /* @__PURE__ */ __name((model) => model.files.reduce((sum2, file2) => sum2 + file2.bytes, 0), "bytesOf");
|
|
25516
25631
|
var nativeRuntime = /* @__PURE__ */ __name(async ({ env, progress = /* @__PURE__ */ __name(() => {
|
|
25517
25632
|
}, "progress") }) => {
|
|
@@ -25534,7 +25649,7 @@ var downloadTextModel = /* @__PURE__ */ __name(async (id2, { env, progress = /*
|
|
|
25534
25649
|
}
|
|
25535
25650
|
await nativeRuntime({ env, progress });
|
|
25536
25651
|
progress(`${model.id}: loading it once to check it works`);
|
|
25537
|
-
const { openEmbedder: openEmbedder2 } = await import("./embed-
|
|
25652
|
+
const { openEmbedder: openEmbedder2 } = await import("./embed-WBVM7KQ2.js");
|
|
25538
25653
|
const embedder = await openEmbedder2(model, directory2);
|
|
25539
25654
|
try {
|
|
25540
25655
|
const [vector] = await embedder.embed(["check"], "query");
|
|
@@ -25555,7 +25670,7 @@ var downloadRerankModel = /* @__PURE__ */ __name(async (id2, { env, progress = /
|
|
|
25555
25670
|
}
|
|
25556
25671
|
await nativeRuntime({ env, progress });
|
|
25557
25672
|
progress(`${model.id}: loading it once to check it works`);
|
|
25558
|
-
const { openReranker } = await import("./rerank-
|
|
25673
|
+
const { openReranker } = await import("./rerank-77UYD2UD.js");
|
|
25559
25674
|
const reranker = await openReranker(model, directory2);
|
|
25560
25675
|
try {
|
|
25561
25676
|
await reranker.score("check", ["check"]);
|
|
@@ -25573,7 +25688,7 @@ var downloadImageModel = /* @__PURE__ */ __name(async (id2, { env, progress = /*
|
|
|
25573
25688
|
await installFiles(placedImage(model, directory2), { progress });
|
|
25574
25689
|
}
|
|
25575
25690
|
progress(`${model.id}: loading it once to check it works`);
|
|
25576
|
-
const { openPictureEmbedder } = await import("./embedder-
|
|
25691
|
+
const { openPictureEmbedder } = await import("./embedder-27HQIFHM.js");
|
|
25577
25692
|
const embedder = await openPictureEmbedder(model, directory2);
|
|
25578
25693
|
try {
|
|
25579
25694
|
const vector = await embedder.embedQuery("check");
|
|
@@ -25585,7 +25700,7 @@ var downloadImageModel = /* @__PURE__ */ __name(async (id2, { env, progress = /*
|
|
|
25585
25700
|
return { model, directory: directory2 };
|
|
25586
25701
|
}, "downloadImageModel");
|
|
25587
25702
|
|
|
25588
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25703
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/domain/money-words.js
|
|
25589
25704
|
var MONEY_REQUEST = "money-request";
|
|
25590
25705
|
var MONEY_DONE = "money-done";
|
|
25591
25706
|
var PROMISE = "promise";
|
|
@@ -25619,10 +25734,10 @@ var MONEY_WORDS = [
|
|
|
25619
25734
|
}
|
|
25620
25735
|
];
|
|
25621
25736
|
|
|
25622
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25737
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/services/money-words.js
|
|
25623
25738
|
var moneyClassesOf = /* @__PURE__ */ __name((text2) => listsHit(text2, MONEY_WORDS), "moneyClassesOf");
|
|
25624
25739
|
|
|
25625
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25740
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/domain/status-words.js
|
|
25626
25741
|
var words = /* @__PURE__ */ __name((forms) => new RegExp(`(?<![\\p{L}\\p{N}])(?:${forms.join("|")})(?![\\p{L}\\p{N}])`, "iu"), "words");
|
|
25627
25742
|
var MONEY_DONE_FORMS = words([
|
|
25628
25743
|
"\u043E\u043F\u043B\u0430\u0442\u0438\u043B[\u0430\u0438]?",
|
|
@@ -25662,7 +25777,7 @@ var PROMISE_FORMS = words([
|
|
|
25662
25777
|
"estar\xE1 listo"
|
|
25663
25778
|
]);
|
|
25664
25779
|
|
|
25665
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25780
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/services/project-status/items.js
|
|
25666
25781
|
var EXCERPT_CHARS = 80;
|
|
25667
25782
|
var excerpt2 = /* @__PURE__ */ __name((text2) => {
|
|
25668
25783
|
const flat = text2.replace(/\s+/g, " ").trim();
|
|
@@ -25684,7 +25799,7 @@ var whoOf = /* @__PURE__ */ __name((message) => ({
|
|
|
25684
25799
|
var fromOwner = /* @__PURE__ */ __name((message) => message.outgoing === true, "fromOwner");
|
|
25685
25800
|
var day = /* @__PURE__ */ __name((at) => new Date(at).toISOString().slice(0, 10), "day");
|
|
25686
25801
|
|
|
25687
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25802
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/services/project-status/signals/amounts.js
|
|
25688
25803
|
var MONEY = DEFAULT_TASK_CATEGORIES.filter((category) => category.name === "money");
|
|
25689
25804
|
var verbOf = /* @__PURE__ */ __name((text2) => {
|
|
25690
25805
|
if (MONEY_DONE_FORMS.test(text2))
|
|
@@ -25761,16 +25876,16 @@ var amounts = {
|
|
|
25761
25876
|
};
|
|
25762
25877
|
});
|
|
25763
25878
|
}, "read"),
|
|
25764
|
-
attention: /* @__PURE__ */ __name((items) => items.flatMap((
|
|
25879
|
+
attention: /* @__PURE__ */ __name((items) => items.flatMap((item2) => item2.chat !== null && item2.data.state === "open" ? [{ chat: item2.chat, weight: 2, why: "money open" }] : []), "attention")
|
|
25765
25880
|
};
|
|
25766
25881
|
|
|
25767
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25882
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/services/project-status/signals/children.js
|
|
25768
25883
|
var children = {
|
|
25769
25884
|
id: "children",
|
|
25770
25885
|
version: 1,
|
|
25771
25886
|
scope: "project",
|
|
25772
25887
|
read: /* @__PURE__ */ __name(async (context2) => {
|
|
25773
|
-
const
|
|
25888
|
+
const item2 = /* @__PURE__ */ __name((data) => ({
|
|
25774
25889
|
signal: "children",
|
|
25775
25890
|
chat: null,
|
|
25776
25891
|
at: null,
|
|
@@ -25780,7 +25895,7 @@ var children = {
|
|
|
25780
25895
|
data
|
|
25781
25896
|
}), "item");
|
|
25782
25897
|
return [
|
|
25783
|
-
...context2.project.children.map((child) =>
|
|
25898
|
+
...context2.project.children.map((child) => item2({
|
|
25784
25899
|
child: child.ref,
|
|
25785
25900
|
key: child.key,
|
|
25786
25901
|
name: child.name,
|
|
@@ -25788,12 +25903,12 @@ var children = {
|
|
|
25788
25903
|
chats: context2.chats.filter((chat) => chat.project === child.ref).length,
|
|
25789
25904
|
cut: null
|
|
25790
25905
|
})),
|
|
25791
|
-
...context2.project.cut.map(({ ref, reason }) =>
|
|
25906
|
+
...context2.project.cut.map(({ ref, reason }) => item2({ child: ref, key: null, name: null, depth: null, chats: null, cut: reason }))
|
|
25792
25907
|
];
|
|
25793
25908
|
}, "read")
|
|
25794
25909
|
};
|
|
25795
25910
|
|
|
25796
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25911
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/services/project-status/signals/coverage.js
|
|
25797
25912
|
var coverage = {
|
|
25798
25913
|
id: "coverage",
|
|
25799
25914
|
version: 1,
|
|
@@ -25819,10 +25934,10 @@ var coverage = {
|
|
|
25819
25934
|
}
|
|
25820
25935
|
];
|
|
25821
25936
|
}, "read"),
|
|
25822
|
-
attention: /* @__PURE__ */ __name((items) => items.flatMap((
|
|
25937
|
+
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")
|
|
25823
25938
|
};
|
|
25824
25939
|
|
|
25825
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25940
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/services/project-status/signals/last-message.js
|
|
25826
25941
|
var lastMessage = {
|
|
25827
25942
|
id: "last-message",
|
|
25828
25943
|
version: 1,
|
|
@@ -25831,7 +25946,7 @@ var lastMessage = {
|
|
|
25831
25946
|
const last = chat?.messages.at(-1);
|
|
25832
25947
|
if (!chat || !last)
|
|
25833
25948
|
return [];
|
|
25834
|
-
const
|
|
25949
|
+
const item2 = {
|
|
25835
25950
|
signal: "last-message",
|
|
25836
25951
|
chat: chat.ref,
|
|
25837
25952
|
at: last.timestamp,
|
|
@@ -25840,33 +25955,61 @@ var lastMessage = {
|
|
|
25840
25955
|
basis: "store",
|
|
25841
25956
|
data: {}
|
|
25842
25957
|
};
|
|
25843
|
-
return [
|
|
25958
|
+
return [item2];
|
|
25844
25959
|
}, "read")
|
|
25845
25960
|
};
|
|
25846
25961
|
|
|
25847
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25848
|
-
var
|
|
25962
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/services/project-status/signals/payments.js
|
|
25963
|
+
var holding = /* @__PURE__ */ __name((row) => row.review !== "rejected", "holding");
|
|
25964
|
+
var item = /* @__PURE__ */ __name((row, at, data) => ({
|
|
25965
|
+
signal: "payments",
|
|
25966
|
+
chat: null,
|
|
25967
|
+
at,
|
|
25968
|
+
who: null,
|
|
25969
|
+
// The row first, then what it cites, so an amount read from a cited message is not counted twice.
|
|
25970
|
+
evidence: [row.ref, ...row.evidence].map((ref) => ({ ref, fingerprint: null })),
|
|
25971
|
+
basis: "store",
|
|
25972
|
+
data: { ...data, title: row.title, status: row.review }
|
|
25973
|
+
}), "item");
|
|
25974
|
+
var paid = /* @__PURE__ */ __name((row) => {
|
|
25975
|
+
const party = row.direction === "in" ? row.payer : row.payee;
|
|
25976
|
+
return item(row, `${row.date}T00:00:00.000Z`, {
|
|
25977
|
+
amount: row.amount,
|
|
25978
|
+
currency: row.currency,
|
|
25979
|
+
direction: row.direction === "in" ? "to_us" : "from_us",
|
|
25980
|
+
counterparty: party?.ref ?? null,
|
|
25981
|
+
counterparty_name: party?.name ?? null,
|
|
25982
|
+
due_at: null,
|
|
25983
|
+
state: "paid",
|
|
25984
|
+
item: row.reference,
|
|
25985
|
+
paid_at: row.date
|
|
25986
|
+
});
|
|
25987
|
+
}, "paid");
|
|
25988
|
+
var expected = /* @__PURE__ */ __name((row) => item(row, row.issueDate === null ? row.createdAt : `${row.issueDate}T00:00:00.000Z`, {
|
|
25989
|
+
amount: row.open,
|
|
25990
|
+
currency: row.currency,
|
|
25991
|
+
direction: row.direction === "receivable" ? "to_us" : "from_us",
|
|
25992
|
+
counterparty: row.counterparty.ref,
|
|
25993
|
+
counterparty_name: row.counterparty.name,
|
|
25994
|
+
due_at: row.dueDate,
|
|
25995
|
+
state: "expected",
|
|
25996
|
+
item: row.number
|
|
25997
|
+
}), "expected");
|
|
25849
25998
|
var payments = {
|
|
25850
25999
|
id: "payments",
|
|
25851
|
-
version:
|
|
26000
|
+
version: 3,
|
|
25852
26001
|
scope: "project",
|
|
25853
26002
|
read: /* @__PURE__ */ __name(async (context2) => {
|
|
25854
26003
|
const projects = [context2.project.ref, ...context2.project.children.map((child) => child.ref)];
|
|
25855
|
-
const
|
|
25856
|
-
|
|
25857
|
-
|
|
25858
|
-
|
|
25859
|
-
|
|
25860
|
-
who: null,
|
|
25861
|
-
// The fact first, then what it cites, so an amount read from a cited message is not counted twice.
|
|
25862
|
-
evidence: [fact.ref, ...fact.evidence].map((ref) => ({ ref, fingerprint: null })),
|
|
25863
|
-
basis: "fact",
|
|
25864
|
-
data: { ...fact.payment, title: paymentTitle(fact), status: fact.status }
|
|
25865
|
-
}));
|
|
26004
|
+
const rows = await Promise.all(projects.map(async (project2) => [
|
|
26005
|
+
...(await context2.store.finance.payments({ project: project2, limit: 500 })).filter(holding).map(paid),
|
|
26006
|
+
...(await context2.store.finance.invoices({ project: project2, open: true, limit: 500 })).filter(holding).map(expected)
|
|
26007
|
+
]));
|
|
26008
|
+
return rows.flat();
|
|
25866
26009
|
}, "read")
|
|
25867
26010
|
};
|
|
25868
26011
|
|
|
25869
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26012
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/services/project-status/signals/promises.js
|
|
25870
26013
|
var PATTERNS_PER_CHAT = 3;
|
|
25871
26014
|
var DAY3 = 864e5;
|
|
25872
26015
|
var KINDS2 = /* @__PURE__ */ new Set(["promise", "request"]);
|
|
@@ -25955,7 +26098,7 @@ var promises = {
|
|
|
25955
26098
|
}, "read")
|
|
25956
26099
|
};
|
|
25957
26100
|
|
|
25958
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26101
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/services/project-status/signals/questions.js
|
|
25959
26102
|
var PER_SIDE = 5;
|
|
25960
26103
|
var WEEK = 7 * 864e5;
|
|
25961
26104
|
var NOBODY = /* @__PURE__ */ new Set();
|
|
@@ -25981,12 +26124,12 @@ var questions2 = {
|
|
|
25981
26124
|
})));
|
|
25982
26125
|
}, "read"),
|
|
25983
26126
|
attention: /* @__PURE__ */ __name((items, context2) => {
|
|
25984
|
-
const stale = new Set(items.flatMap((
|
|
26127
|
+
const stale = new Set(items.flatMap((item2) => item2.chat !== null && item2.data.side === "yours" && item2.at && context2.now - Date.parse(item2.at) > WEEK ? [item2.chat] : []));
|
|
25985
26128
|
return [...stale].map((chat) => ({ chat, weight: 1, why: "your question unanswered for a week" }));
|
|
25986
26129
|
}, "attention")
|
|
25987
26130
|
};
|
|
25988
26131
|
|
|
25989
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26132
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/services/project-status/signals/reply-next.js
|
|
25990
26133
|
var targetOf = /* @__PURE__ */ __name((message, chat, owners) => {
|
|
25991
26134
|
const byId2 = /* @__PURE__ */ __name((id2) => chat.messages.find((one2) => one2.id === id2), "byId");
|
|
25992
26135
|
const quoted = message.replyTo ?? (message.replyToId === void 0 ? void 0 : byId2(message.replyToId));
|
|
@@ -26051,10 +26194,10 @@ var replyNext = {
|
|
|
26051
26194
|
}
|
|
26052
26195
|
];
|
|
26053
26196
|
}, "read"),
|
|
26054
|
-
attention: /* @__PURE__ */ __name((items) => items.flatMap((
|
|
26197
|
+
attention: /* @__PURE__ */ __name((items) => items.flatMap((item2) => item2.chat !== null && item2.data.next === "owner" ? [{ chat: item2.chat, weight: 2, why: "your move" }] : []), "attention")
|
|
26055
26198
|
};
|
|
26056
26199
|
|
|
26057
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26200
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/services/project-status/signals/topics.js
|
|
26058
26201
|
var escaped = /* @__PURE__ */ __name((text2) => text2.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), "escaped");
|
|
26059
26202
|
var wholeWord = /* @__PURE__ */ __name((word) => new RegExp(`(?<![\\p{L}\\p{N}])${escaped(word)}(?![\\p{L}\\p{N}])`, "u"), "wholeWord");
|
|
26060
26203
|
var matcherOf = /* @__PURE__ */ __name((query) => {
|
|
@@ -26100,7 +26243,7 @@ var topics = {
|
|
|
26100
26243
|
}, "read")
|
|
26101
26244
|
};
|
|
26102
26245
|
|
|
26103
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26246
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/services/project-status/signals/index.js
|
|
26104
26247
|
var STATUS_SIGNALS = [
|
|
26105
26248
|
lastMessage,
|
|
26106
26249
|
replyNext,
|
|
@@ -26113,7 +26256,7 @@ var STATUS_SIGNALS = [
|
|
|
26113
26256
|
children
|
|
26114
26257
|
];
|
|
26115
26258
|
|
|
26116
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26259
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/services/project-status/index.js
|
|
26117
26260
|
var DAY4 = 864e5;
|
|
26118
26261
|
var STATUS_WINDOW = 300;
|
|
26119
26262
|
var STATUS_CHATS = 16;
|
|
@@ -26159,15 +26302,16 @@ var childrenOf = /* @__PURE__ */ __name(async (store, root, catalog) => {
|
|
|
26159
26302
|
var inAccounts = /* @__PURE__ */ __name((accounts, provider, account) => accounts === void 0 || accounts.some((one2) => one2.provider === provider && one2.account === account), "inAccounts");
|
|
26160
26303
|
var failure = /* @__PURE__ */ __name((error) => error instanceof Error ? error.message : String(error), "failure");
|
|
26161
26304
|
var counted2 = /* @__PURE__ */ __name((items) => {
|
|
26162
|
-
const
|
|
26163
|
-
|
|
26305
|
+
const confirmed = /* @__PURE__ */ __name((item2) => item2.signal === "payments" && item2.data.status === "confirmed", "confirmed");
|
|
26306
|
+
const recorded = new Set(items.filter(confirmed).flatMap((item2) => item2.evidence.slice(1).map((one2) => one2.ref)));
|
|
26307
|
+
return (item2, state) => item2.signal === "payments" ? state === "expected" && confirmed(item2) : item2.signal === "amounts" && state === "open" && !item2.evidence.some((one2) => recorded.has(one2.ref));
|
|
26164
26308
|
}, "counted");
|
|
26165
26309
|
var totalsOf = /* @__PURE__ */ __name((items) => {
|
|
26166
26310
|
const totals = /* @__PURE__ */ new Map();
|
|
26167
26311
|
const open7 = counted2(items);
|
|
26168
|
-
for (const
|
|
26169
|
-
const data =
|
|
26170
|
-
if (!open7(
|
|
26312
|
+
for (const item2 of items) {
|
|
26313
|
+
const data = item2.data;
|
|
26314
|
+
if (!open7(item2, data.state) || data.amount === void 0)
|
|
26171
26315
|
continue;
|
|
26172
26316
|
const key = `${data.direction}|${data.currency ?? ""}`;
|
|
26173
26317
|
const total = totals.get(key) ?? {
|
|
@@ -26294,7 +26438,7 @@ var projectStatus = /* @__PURE__ */ __name(async (store, input) => {
|
|
|
26294
26438
|
};
|
|
26295
26439
|
}, "projectStatus");
|
|
26296
26440
|
|
|
26297
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26441
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/services/account.js
|
|
26298
26442
|
var accountService = /* @__PURE__ */ __name((deps) => {
|
|
26299
26443
|
const online = /* @__PURE__ */ __name(async (command) => {
|
|
26300
26444
|
if (deps.offline)
|
|
@@ -26366,7 +26510,7 @@ var accountService = /* @__PURE__ */ __name((deps) => {
|
|
|
26366
26510
|
};
|
|
26367
26511
|
}, "accountService");
|
|
26368
26512
|
|
|
26369
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26513
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/domain/send-time.js
|
|
26370
26514
|
var MINUTE = 6e4;
|
|
26371
26515
|
var YEAR = 365 * 24 * 60 * MINUTE;
|
|
26372
26516
|
var DELAY = /^(\d+)(m|h|d)$/;
|
|
@@ -26385,7 +26529,7 @@ var sendTime = /* @__PURE__ */ __name((value, now = Date.now(), flag = "--at-tim
|
|
|
26385
26529
|
return new Date(at - at % MINUTE).toISOString();
|
|
26386
26530
|
}, "sendTime");
|
|
26387
26531
|
|
|
26388
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26532
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/services/admin.js
|
|
26389
26533
|
var recordMembership = /* @__PURE__ */ __name(async (deps, operationId, done2, change, fix, write2) => {
|
|
26390
26534
|
try {
|
|
26391
26535
|
const held = await accountStoreIfOpen(deps);
|
|
@@ -26632,7 +26776,7 @@ var linkLimits = /* @__PURE__ */ __name(({ approval, expires, maxUses }) => {
|
|
|
26632
26776
|
return expires === void 0 ? void 0 : sendTime(expires, Date.now(), "--expire-time");
|
|
26633
26777
|
}, "linkLimits");
|
|
26634
26778
|
|
|
26635
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26779
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/services/mail-search.js
|
|
26636
26780
|
var THREADS_PAGE = 500;
|
|
26637
26781
|
var threadsOf = /* @__PURE__ */ __name(async (store, key) => {
|
|
26638
26782
|
const account = await store.accounts.storedAccount(key).catch(() => void 0);
|
|
@@ -26711,7 +26855,7 @@ var readMail = /* @__PURE__ */ __name(async (store, locator, { before: before2 =
|
|
|
26711
26855
|
return thread.slice(Math.max(0, at - before2), at + after + 1).map((hit) => hit.id === message ? { ...hit, anchor: true } : hit);
|
|
26712
26856
|
}, "readMail");
|
|
26713
26857
|
|
|
26714
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26858
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/services/search-kind.js
|
|
26715
26859
|
var NO_MAIL = "no_mail";
|
|
26716
26860
|
var MAIL = "email";
|
|
26717
26861
|
var listContextOf = /* @__PURE__ */ __name(async (store, account, app, stored) => {
|
|
@@ -26758,7 +26902,7 @@ var accountsOfKind = /* @__PURE__ */ __name((kind, chosen, held, explicit, comma
|
|
|
26758
26902
|
return chosenMail.map(({ provider, account }) => ({ provider, account }));
|
|
26759
26903
|
}, "accountsOfKind");
|
|
26760
26904
|
|
|
26761
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26905
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/services/messages-search.js
|
|
26762
26906
|
var MAIL_FIELDS = /* @__PURE__ */ new Set(["to", "cc", "bcc", "subject", "mailbox", "label", "is"]);
|
|
26763
26907
|
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");
|
|
26764
26908
|
var prepareLucene = /* @__PURE__ */ __name(async (store, account, request, messenger) => {
|
|
@@ -27017,9 +27161,9 @@ var searchLucene = /* @__PURE__ */ __name(async (store, account, request, messen
|
|
|
27017
27161
|
}, "inMailTables");
|
|
27018
27162
|
const found = !prepared.scopeAccounts.length ? { items: [], hasMore: false } : mailAccounts.length ? mergeMail(await execute(prepared.execution), await inMailTables(), request.limit, request.newest) : await execute(prepared.execution);
|
|
27019
27163
|
const { completeness, coverage: coverage2 } = request.kind === "mail" ? { completeness: [], coverage: void 0 } : await coverageOf(store, prepared, messenger);
|
|
27020
|
-
const items = await Promise.all(found.items.map(async (
|
|
27021
|
-
const garbled =
|
|
27022
|
-
const hit = withExcerpt(
|
|
27164
|
+
const items = await Promise.all(found.items.map(async (item2) => {
|
|
27165
|
+
const garbled = item2.corrections?.flatMap(({ to }) => to) ?? [];
|
|
27166
|
+
const hit = withExcerpt(item2, [request.text ?? "", ...garbled].join(" "));
|
|
27023
27167
|
if (!request.context)
|
|
27024
27168
|
return hit;
|
|
27025
27169
|
const locator = parseLocator(hit.locator);
|
|
@@ -27106,7 +27250,7 @@ var statsLucene = /* @__PURE__ */ __name(async (store, account, request, messeng
|
|
|
27106
27250
|
};
|
|
27107
27251
|
}, "statsLucene");
|
|
27108
27252
|
|
|
27109
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27253
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/services/rankings-selection.js
|
|
27110
27254
|
var RANKING_SELECTION_BYTES = 64 * 1024;
|
|
27111
27255
|
var object = /* @__PURE__ */ __name((value) => value !== null && typeof value === "object" && !Array.isArray(value) ? value : void 0, "object");
|
|
27112
27256
|
function invalid(message = "ranking selection is invalid \u2014 obtain a new drilldown from stats top") {
|
|
@@ -27275,7 +27419,7 @@ var readRankingSelection = /* @__PURE__ */ __name(async (store, input) => {
|
|
|
27275
27419
|
};
|
|
27276
27420
|
}, "readRankingSelection");
|
|
27277
27421
|
|
|
27278
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27422
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/services/search-record.js
|
|
27279
27423
|
var canonical = /* @__PURE__ */ __name((value, nested = false) => Array.isArray(value) ? value.map((one2) => canonical(one2, true)) : value !== null && typeof value === "object" ? Object.fromEntries(Object.entries(value).filter(([, one2]) => one2 !== void 0 && (nested || one2 !== false)).sort(([a], [b]) => a < b ? -1 : a > b ? 1 : 0).map(([key, one2]) => [key, canonical(one2, true)])) : value, "canonical");
|
|
27280
27424
|
var searchRecordOf = /* @__PURE__ */ __name((command, params) => ({
|
|
27281
27425
|
command,
|
|
@@ -27285,7 +27429,7 @@ var searchRecordOf = /* @__PURE__ */ __name((command, params) => ({
|
|
|
27285
27429
|
fieldsVersion: FIELD_VERSION
|
|
27286
27430
|
}), "searchRecordOf");
|
|
27287
27431
|
|
|
27288
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27432
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/services/admin-statistics.js
|
|
27289
27433
|
function invalid2(message) {
|
|
27290
27434
|
throw new CliError("validation_error", message);
|
|
27291
27435
|
}
|
|
@@ -27579,7 +27723,7 @@ var adminStatisticsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
27579
27723
|
}, "evidence")
|
|
27580
27724
|
}), "adminStatisticsService");
|
|
27581
27725
|
|
|
27582
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27726
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/services/archive-gaps.js
|
|
27583
27727
|
import { createHash as createHash7, randomUUID as randomUUID4 } from "node:crypto";
|
|
27584
27728
|
var GAP_BOUNDS = { maxGaps: 5, limit: 500, timeMs: 3e4 };
|
|
27585
27729
|
var validateRepair = /* @__PURE__ */ __name((messenger, options) => {
|
|
@@ -27716,16 +27860,16 @@ var gapsService = /* @__PURE__ */ __name((deps) => {
|
|
|
27716
27860
|
return { plan, repair };
|
|
27717
27861
|
}, "gapsService");
|
|
27718
27862
|
|
|
27719
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27863
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/services/attachments.js
|
|
27720
27864
|
import { createHash as createHash9 } from "node:crypto";
|
|
27721
27865
|
import { constants as constants2, mkdirSync as mkdirSync2 } from "node:fs";
|
|
27722
27866
|
import { lstat as lstat4, open as open6, readFile, stat as stat2 } from "node:fs/promises";
|
|
27723
27867
|
|
|
27724
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27868
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/attachments/directory.js
|
|
27725
27869
|
import { lstat as lstat2, readdir as readdir2, realpath as realpath3 } from "node:fs/promises";
|
|
27726
27870
|
import { basename as basename4, join as join8, relative as relative2, sep as sep2 } from "node:path";
|
|
27727
27871
|
|
|
27728
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27872
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/sends/upload.js
|
|
27729
27873
|
import { openAsBlob, realpathSync } from "node:fs";
|
|
27730
27874
|
import { open as open4, stat } from "node:fs/promises";
|
|
27731
27875
|
import { basename as basename3, dirname as dirname3, extname, isAbsolute as isAbsolute2, relative, resolve as resolve5, sep } from "node:path";
|
|
@@ -27927,7 +28071,7 @@ var readStickerFile = /* @__PURE__ */ __name(async (path, maxBytes, read2) => {
|
|
|
27927
28071
|
return { name, source };
|
|
27928
28072
|
}, "readStickerFile");
|
|
27929
28073
|
|
|
27930
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28074
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/attachments/directory.js
|
|
27931
28075
|
var MAX_FILES = 1e4;
|
|
27932
28076
|
var directoryPaths = /* @__PURE__ */ __name(async (store, chat, directory2, app, env) => {
|
|
27933
28077
|
if (refusedPlace(directory2, app, env))
|
|
@@ -27996,15 +28140,15 @@ var directoryPaths = /* @__PURE__ */ __name(async (store, chat, directory2, app,
|
|
|
27996
28140
|
return choices;
|
|
27997
28141
|
}, "directoryPaths");
|
|
27998
28142
|
|
|
27999
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28143
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/attachments/documents.js
|
|
28000
28144
|
import { posix } from "node:path";
|
|
28001
28145
|
|
|
28002
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28146
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/attachments/container.js
|
|
28003
28147
|
import { setImmediate as tick } from "node:timers/promises";
|
|
28004
28148
|
import { crc32 } from "node:zlib";
|
|
28005
28149
|
var import_xmldom = __toESM(require_lib(), 1);
|
|
28006
28150
|
|
|
28007
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28151
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/attachments/encoding.js
|
|
28008
28152
|
var import_chardet = __toESM(require_lib2(), 1);
|
|
28009
28153
|
var import_iconv_lite = __toESM(require_lib3(), 1);
|
|
28010
28154
|
var SAMPLE = 65536;
|
|
@@ -28106,7 +28250,7 @@ var decodeXml = /* @__PURE__ */ __name((bytes2) => {
|
|
|
28106
28250
|
return result.text;
|
|
28107
28251
|
}, "decodeXml");
|
|
28108
28252
|
|
|
28109
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28253
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/attachments/container.js
|
|
28110
28254
|
var MAX_PART = 10 * 1024 * 1024;
|
|
28111
28255
|
var MAX_ENTRIES = 1e3;
|
|
28112
28256
|
var decoder = new TextDecoder("utf-8", { fatal: true });
|
|
@@ -28185,8 +28329,8 @@ var readContainer = /* @__PURE__ */ __name(async (bytes2, signal) => {
|
|
|
28185
28329
|
const done2 = /* @__PURE__ */ new Set();
|
|
28186
28330
|
let expanded = 0;
|
|
28187
28331
|
const archive = new Unzip((file2) => {
|
|
28188
|
-
const
|
|
28189
|
-
if (!
|
|
28332
|
+
const expected2 = entries.get(file2.name);
|
|
28333
|
+
if (!expected2 || seen.has(file2.name))
|
|
28190
28334
|
throw new Error("invalid_zip");
|
|
28191
28335
|
seen.add(file2.name);
|
|
28192
28336
|
const keep2 = /\.(xml|rels|opf|xhtml|html)$/i.test(file2.name) || file2.name === "mimetype";
|
|
@@ -28204,7 +28348,7 @@ var readContainer = /* @__PURE__ */ __name(async (bytes2, signal) => {
|
|
|
28204
28348
|
if (keep2)
|
|
28205
28349
|
parts.push(data.slice());
|
|
28206
28350
|
if (final) {
|
|
28207
|
-
if (size4 !==
|
|
28351
|
+
if (size4 !== expected2.size || checksum !== expected2.crc)
|
|
28208
28352
|
throw new Error("invalid_zip");
|
|
28209
28353
|
done2.add(file2.name);
|
|
28210
28354
|
if (keep2) {
|
|
@@ -28321,7 +28465,7 @@ var elements = /* @__PURE__ */ __name((node, name, namespace) => {
|
|
|
28321
28465
|
return found;
|
|
28322
28466
|
}, "elements");
|
|
28323
28467
|
|
|
28324
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28468
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/attachments/sheets.js
|
|
28325
28469
|
var columnName = /* @__PURE__ */ __name((column) => {
|
|
28326
28470
|
let name = "";
|
|
28327
28471
|
for (let rest = column; rest > 0; rest = Math.floor((rest - 1) / 26))
|
|
@@ -28376,7 +28520,7 @@ var sheetText = /* @__PURE__ */ __name((sheets2, maxChars = MAX_TEXT_CHARS) => {
|
|
|
28376
28520
|
return { text: parts.join("").trim(), truncated: false };
|
|
28377
28521
|
}, "sheetText");
|
|
28378
28522
|
|
|
28379
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28523
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/attachments/documents.js
|
|
28380
28524
|
var OFFICE = "urn:oasis:names:tc:opendocument:xmlns:office:1.0";
|
|
28381
28525
|
var TEXT = "urn:oasis:names:tc:opendocument:xmlns:text:1.0";
|
|
28382
28526
|
var TABLE = "urn:oasis:names:tc:opendocument:xmlns:table:1.0";
|
|
@@ -28712,21 +28856,21 @@ var readBook = /* @__PURE__ */ __name((archive, output) => {
|
|
|
28712
28856
|
const book = xmlPart(archive, path);
|
|
28713
28857
|
rootIs(book, "package", [OPF]);
|
|
28714
28858
|
const manifest = /* @__PURE__ */ new Map();
|
|
28715
|
-
for (const
|
|
28716
|
-
const id2 = required(attribute(
|
|
28859
|
+
for (const item2 of elements(book, "item", OPF)) {
|
|
28860
|
+
const id2 = required(attribute(item2, "id"));
|
|
28717
28861
|
if (manifest.has(id2))
|
|
28718
28862
|
throw new Error("duplicate_chapter");
|
|
28719
|
-
manifest.set(id2, { path: target(path, required(attribute(
|
|
28863
|
+
manifest.set(id2, { path: target(path, required(attribute(item2, "href"))), type: attribute(item2, "media-type") });
|
|
28720
28864
|
}
|
|
28721
28865
|
let number2 = 0;
|
|
28722
28866
|
const chapters = elements(book, "itemref", OPF);
|
|
28723
28867
|
if (!chapters.length)
|
|
28724
28868
|
throw new Error("missing_chapters");
|
|
28725
28869
|
for (const chapter of chapters) {
|
|
28726
|
-
const
|
|
28727
|
-
if (
|
|
28870
|
+
const item2 = manifest.get(required(attribute(chapter, "idref")));
|
|
28871
|
+
if (item2?.type !== "application/xhtml+xml")
|
|
28728
28872
|
throw new Error("unsupported_chapter");
|
|
28729
|
-
const document = xmlPart(archive,
|
|
28873
|
+
const document = xmlPart(archive, item2.path);
|
|
28730
28874
|
const bodies = elements(document, "body", XHTML);
|
|
28731
28875
|
if (bodies.length !== 1)
|
|
28732
28876
|
throw new Error("missing_chapter");
|
|
@@ -28776,10 +28920,10 @@ var readDocument = /* @__PURE__ */ __name(async (bytes2, kind, signal) => {
|
|
|
28776
28920
|
}
|
|
28777
28921
|
}, "readDocument");
|
|
28778
28922
|
|
|
28779
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28923
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/attachments/extract.js
|
|
28780
28924
|
import { extname as extname3 } from "node:path";
|
|
28781
28925
|
|
|
28782
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28926
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/readers/engine.js
|
|
28783
28927
|
import { readFileSync } from "node:fs";
|
|
28784
28928
|
import { dirname as dirname4, extname as extname2, join as join9 } from "node:path";
|
|
28785
28929
|
import { fileURLToPath } from "node:url";
|
|
@@ -28840,7 +28984,7 @@ var derived = /* @__PURE__ */ __name((bytes2, extractor, read2) => {
|
|
|
28840
28984
|
}
|
|
28841
28985
|
}, "derived");
|
|
28842
28986
|
|
|
28843
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28987
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/readers/image/index.js
|
|
28844
28988
|
var IMAGES = /* @__PURE__ */ new Set([".jpg", ".jpeg", ".png", ".webp", ".gif", ".heic", ".tif", ".tiff", ".bmp"]);
|
|
28845
28989
|
var image2 = {
|
|
28846
28990
|
id: "image",
|
|
@@ -28849,7 +28993,7 @@ var image2 = {
|
|
|
28849
28993
|
read: /* @__PURE__ */ __name(async () => ({ status: "needs-agent" }), "read")
|
|
28850
28994
|
};
|
|
28851
28995
|
|
|
28852
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28996
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/readers/doc/index.js
|
|
28853
28997
|
var OLE = "\xD0\xCF\xE0\xA1\xB1\xE1";
|
|
28854
28998
|
var doc = {
|
|
28855
28999
|
id: "doc",
|
|
@@ -28861,7 +29005,7 @@ var doc = {
|
|
|
28861
29005
|
}), "read")
|
|
28862
29006
|
};
|
|
28863
29007
|
|
|
28864
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29008
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/readers/docx/index.js
|
|
28865
29009
|
var DOCX = "application/vnd.openxmlformats-officedocument.wordprocessingml.document";
|
|
28866
29010
|
var docx = {
|
|
28867
29011
|
id: "docx",
|
|
@@ -28874,7 +29018,7 @@ var docx = {
|
|
|
28874
29018
|
}), "read")
|
|
28875
29019
|
};
|
|
28876
29020
|
|
|
28877
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29021
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/attachments/markup.js
|
|
28878
29022
|
var import_iconv_lite2 = __toESM(require_lib3(), 1);
|
|
28879
29023
|
var RTF_SKIPPED = /* @__PURE__ */ new Set([
|
|
28880
29024
|
"fonttbl",
|
|
@@ -29050,7 +29194,7 @@ var htmlText = /* @__PURE__ */ __name((source) => {
|
|
|
29050
29194
|
}, "htmlText");
|
|
29051
29195
|
var safeChar = /* @__PURE__ */ __name((code, fallback) => code > 0 && code <= 1114111 ? String.fromCodePoint(code) : fallback, "safeChar");
|
|
29052
29196
|
|
|
29053
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29197
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/readers/html/page.js
|
|
29054
29198
|
var clean = /* @__PURE__ */ __name((value) => typeof value === "string" ? value.replace(/\s+/g, " ").trim() : "", "clean");
|
|
29055
29199
|
var namesIn = /* @__PURE__ */ __name((value) => [value].flat().map((entry) => typeof entry === "string" ? clean(entry) : clean(entry?.name)).filter(Boolean).join(", "), "namesIn");
|
|
29056
29200
|
var jsonLdNodes = /* @__PURE__ */ __name((document) => {
|
|
@@ -29106,7 +29250,7 @@ var markdownSections = /* @__PURE__ */ __name((text2) => {
|
|
|
29106
29250
|
return found.map((section, index) => ({ ...section, end: found[index + 1]?.start ?? text2.length }));
|
|
29107
29251
|
}, "markdownSections");
|
|
29108
29252
|
|
|
29109
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29253
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/readers/html/index.js
|
|
29110
29254
|
var HTML = /* @__PURE__ */ new Set([".html", ".htm", ".xhtml"]);
|
|
29111
29255
|
var first = /* @__PURE__ */ __name((...values) => values.find((value) => typeof value === "string" && value !== ""), "first");
|
|
29112
29256
|
var loaded = /* @__PURE__ */ __name(async (load, name) => {
|
|
@@ -29177,7 +29321,7 @@ var html = {
|
|
|
29177
29321
|
}, "read")
|
|
29178
29322
|
};
|
|
29179
29323
|
|
|
29180
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29324
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/readers/office/index.js
|
|
29181
29325
|
var office = {
|
|
29182
29326
|
id: "office",
|
|
29183
29327
|
version: documentExtractor("odt"),
|
|
@@ -29188,7 +29332,7 @@ var office = {
|
|
|
29188
29332
|
}, "read")
|
|
29189
29333
|
};
|
|
29190
29334
|
|
|
29191
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29335
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/readers/pdf/index.js
|
|
29192
29336
|
var pdf = {
|
|
29193
29337
|
id: "pdf",
|
|
29194
29338
|
version: "unpdf",
|
|
@@ -29255,7 +29399,7 @@ var pdf = {
|
|
|
29255
29399
|
}), "read")
|
|
29256
29400
|
};
|
|
29257
29401
|
|
|
29258
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29402
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/readers/plain/index.js
|
|
29259
29403
|
var PLAIN = /* @__PURE__ */ new Set([".txt", ".md", ".markdown", ".csv", ".tsv", ".json", ".log"]);
|
|
29260
29404
|
var isPlain = /* @__PURE__ */ __name((hint) => PLAIN.has(extensionOf(hint)) || hint.mime?.startsWith("text/") || hint.mime === "application/json", "isPlain");
|
|
29261
29405
|
var readPlain = /* @__PURE__ */ __name((bytes2) => {
|
|
@@ -29275,7 +29419,7 @@ var plain = {
|
|
|
29275
29419
|
read: /* @__PURE__ */ __name(async (bytes2) => readPlain(bytes2), "read")
|
|
29276
29420
|
};
|
|
29277
29421
|
|
|
29278
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29422
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/readers/rtf/index.js
|
|
29279
29423
|
var rtf = {
|
|
29280
29424
|
id: "rtf",
|
|
29281
29425
|
version: "v1",
|
|
@@ -29283,10 +29427,10 @@ var rtf = {
|
|
|
29283
29427
|
read: /* @__PURE__ */ __name(async (bytes2) => derived(bytes2, "rtf:v1", rtfText), "read")
|
|
29284
29428
|
};
|
|
29285
29429
|
|
|
29286
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29430
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/readers/sheets/index.js
|
|
29287
29431
|
import { basename as basename5 } from "node:path";
|
|
29288
29432
|
|
|
29289
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29433
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/attachments/csv-spans.js
|
|
29290
29434
|
var delimitedSpans = /* @__PURE__ */ __name((text2, delimiter, maxCells = 1e4) => {
|
|
29291
29435
|
const cells = [];
|
|
29292
29436
|
let row = 1, column = 1, start = 0, quoted = false, truncated = false;
|
|
@@ -29324,7 +29468,7 @@ var delimitedSpans = /* @__PURE__ */ __name((text2, delimiter, maxCells = 1e4) =
|
|
|
29324
29468
|
return { cells, truncated };
|
|
29325
29469
|
}, "delimitedSpans");
|
|
29326
29470
|
|
|
29327
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29471
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/readers/sheets/index.js
|
|
29328
29472
|
var DELIMITED = {
|
|
29329
29473
|
".csv": ",",
|
|
29330
29474
|
".tsv": " ",
|
|
@@ -29363,7 +29507,7 @@ var sheets = {
|
|
|
29363
29507
|
}, "read")
|
|
29364
29508
|
};
|
|
29365
29509
|
|
|
29366
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29510
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/readers/registry.js
|
|
29367
29511
|
var BUILT_INS2 = [office, pdf, docx, doc, rtf, html, sheets, plain, image2];
|
|
29368
29512
|
var HEAD_BYTES = 1024;
|
|
29369
29513
|
var readers = [...BUILT_INS2];
|
|
@@ -29373,7 +29517,7 @@ var readWithRegistry = /* @__PURE__ */ __name(async (bytes2, hint, context2) =>
|
|
|
29373
29517
|
return reader ? reader.read(bytes2, hint, context2) : { status: "unsupported" };
|
|
29374
29518
|
}, "readWithRegistry");
|
|
29375
29519
|
|
|
29376
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29520
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/attachments/extract.js
|
|
29377
29521
|
var importEngine = /* @__PURE__ */ __name((name) => importFrom(new URL("attachments/extract.js", import.meta.resolve("@wirecat/cli-core")).href, name), "importEngine");
|
|
29378
29522
|
var extensionOf2 = /* @__PURE__ */ __name(({ name, path }) => extname3(name ?? path).toLowerCase(), "extensionOf");
|
|
29379
29523
|
var extractText = /* @__PURE__ */ __name(async (bytes2, hint, load, signal, env = process.env) => {
|
|
@@ -30452,7 +30596,7 @@ function imageSize(input) {
|
|
|
30452
30596
|
}
|
|
30453
30597
|
__name(imageSize, "imageSize");
|
|
30454
30598
|
|
|
30455
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30599
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/attachments/ocr.js
|
|
30456
30600
|
var MAX_PAGES = 20;
|
|
30457
30601
|
var MAX_PIXELS = 2e7;
|
|
30458
30602
|
var cancelled2 = /* @__PURE__ */ __name((signal) => {
|
|
@@ -30536,7 +30680,7 @@ var ocrPdf = /* @__PURE__ */ __name(async (bytes2, pipeline2, load, signal) => {
|
|
|
30536
30680
|
let text2;
|
|
30537
30681
|
try {
|
|
30538
30682
|
const content = await page.getTextContent();
|
|
30539
|
-
text2 = content.items.map((
|
|
30683
|
+
text2 = content.items.map((item2) => `${item2.str ?? ""}${item2.hasEOL ? "\n" : " "}`).join("").trim();
|
|
30540
30684
|
if (!text2) {
|
|
30541
30685
|
if (typeof unpdf.createIsomorphicCanvasFactory !== "function" || typeof unpdf.renderPageAsImage !== "function")
|
|
30542
30686
|
return { status: "engine-missing", engine: "unpdf" };
|
|
@@ -30603,7 +30747,7 @@ var ocrPdf = /* @__PURE__ */ __name(async (bytes2, pipeline2, load, signal) => {
|
|
|
30603
30747
|
}
|
|
30604
30748
|
}, "ocrPdf");
|
|
30605
30749
|
|
|
30606
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30750
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/attachments/pdf-preview.js
|
|
30607
30751
|
var pdfPreview = /* @__PURE__ */ __name(async (bytes2, page, signal, load = importEngine, env = process.env) => {
|
|
30608
30752
|
const limits = pdfPreviewLimits(env);
|
|
30609
30753
|
const cancelled4 = /* @__PURE__ */ __name(() => {
|
|
@@ -30680,7 +30824,7 @@ var pdfPreview = /* @__PURE__ */ __name(async (bytes2, page, signal, load = impo
|
|
|
30680
30824
|
}
|
|
30681
30825
|
}, "pdfPreview");
|
|
30682
30826
|
|
|
30683
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30827
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/attachments/transfer.js
|
|
30684
30828
|
import { createHash as createHash8 } from "node:crypto";
|
|
30685
30829
|
import { constants } from "node:fs";
|
|
30686
30830
|
import { lstat as lstat3, open as open5 } from "node:fs/promises";
|
|
@@ -30788,7 +30932,7 @@ var transferMime = /* @__PURE__ */ __name((head, hint, name = null) => {
|
|
|
30788
30932
|
return hint !== null && /^[a-z0-9.+-]+\/[a-z0-9.+-]+$/i.test(hint) ? hint : "application/octet-stream";
|
|
30789
30933
|
}, "transferMime");
|
|
30790
30934
|
|
|
30791
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30935
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/services/file-download.js
|
|
30792
30936
|
import { createWriteStream, mkdirSync } from "node:fs";
|
|
30793
30937
|
import { link as link3, rm } from "node:fs/promises";
|
|
30794
30938
|
import { join as join10, resolve as resolve6 } from "node:path";
|
|
@@ -30902,7 +31046,7 @@ var save = /* @__PURE__ */ __name(async (file2, directory2, fallbackName, { uniq
|
|
|
30902
31046
|
}
|
|
30903
31047
|
}, "save");
|
|
30904
31048
|
|
|
30905
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31049
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/services/attachments.js
|
|
30906
31050
|
var ATTACHMENT_QUERY = {
|
|
30907
31051
|
entity: "attachment",
|
|
30908
31052
|
backend: "sql",
|
|
@@ -31098,7 +31242,7 @@ var attachmentsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
31098
31242
|
issue = batch.fail(formatLocator({ ...account, chat: file2.chatId, message: file2.messageId }), "extract", limitIssue ?? (extraction?.status === "unreadable" && extraction.issue ? extraction.issue : new CliError(status === "missing" ? "not_found" : "validation_error", status === "too-large" ? "attachment exceeds an extraction, decompression or OCR size limit" : extraction?.status === "engine-missing" ? `attachment engine-missing; ${engineMissing(extraction.engine)}; \`doctor\` lists the readers` : `attachment ${status}; retry or skip this item`, { limit_source: ocr ? "provider" : "local" })), file2.position + 1);
|
|
31099
31243
|
} else
|
|
31100
31244
|
batch.ok();
|
|
31101
|
-
const
|
|
31245
|
+
const item2 = {
|
|
31102
31246
|
ref: formatLocator({ ...account, chat: file2.chatId, message: file2.messageId }),
|
|
31103
31247
|
attachment: file2.position + 1,
|
|
31104
31248
|
kind: file2.kind,
|
|
@@ -31113,13 +31257,13 @@ var attachmentsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
31113
31257
|
...extraction.pages === void 0 ? {} : { pages: extraction.pages, ocrPages: extraction.ocrPages }
|
|
31114
31258
|
} : {}
|
|
31115
31259
|
};
|
|
31116
|
-
finished.set(file2.pk,
|
|
31117
|
-
onItem?.(
|
|
31260
|
+
finished.set(file2.pk, item2);
|
|
31261
|
+
onItem?.(item2);
|
|
31118
31262
|
}, "processFile");
|
|
31119
31263
|
const failedItem = /* @__PURE__ */ __name((file2, stage, error) => {
|
|
31120
31264
|
const issue = batch.fail(formatLocator({ ...account, chat: file2.chatId, message: file2.messageId }), stage, error, file2.position + 1);
|
|
31121
31265
|
run.failed += 1;
|
|
31122
|
-
const
|
|
31266
|
+
const item2 = {
|
|
31123
31267
|
ref: formatLocator({ ...account, chat: file2.chatId, message: file2.messageId }),
|
|
31124
31268
|
attachment: file2.position + 1,
|
|
31125
31269
|
kind: file2.kind,
|
|
@@ -31128,8 +31272,8 @@ var attachmentsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
31128
31272
|
error: issue.code,
|
|
31129
31273
|
issue
|
|
31130
31274
|
};
|
|
31131
|
-
finished.set(file2.pk,
|
|
31132
|
-
onItem?.(
|
|
31275
|
+
finished.set(file2.pk, item2);
|
|
31276
|
+
onItem?.(item2);
|
|
31133
31277
|
}, "failedItem");
|
|
31134
31278
|
try {
|
|
31135
31279
|
walk: for (; ; ) {
|
|
@@ -31189,7 +31333,7 @@ var attachmentsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
31189
31333
|
run.batch = batch.result();
|
|
31190
31334
|
run.complete = false;
|
|
31191
31335
|
}
|
|
31192
|
-
run.items = [...finished.entries()].sort(([a], [b]) => b - a).map(([,
|
|
31336
|
+
run.items = [...finished.entries()].sort(([a], [b]) => b - a).map(([, item2]) => item2);
|
|
31193
31337
|
return run;
|
|
31194
31338
|
}, "extract"),
|
|
31195
31339
|
list: /* @__PURE__ */ __name(async ({ limit, offset = 0, query }) => {
|
|
@@ -31325,7 +31469,7 @@ var attachmentsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
31325
31469
|
}, "setText")
|
|
31326
31470
|
}), "attachmentsService");
|
|
31327
31471
|
|
|
31328
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31472
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/services/chat-documents.js
|
|
31329
31473
|
var chatDocumentsService = /* @__PURE__ */ __name((deps) => ({
|
|
31330
31474
|
list: /* @__PURE__ */ __name(async (chat, { limit, offset, ref }) => {
|
|
31331
31475
|
const store = await accountStore(deps);
|
|
@@ -31355,7 +31499,7 @@ var chatDocumentsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
31355
31499
|
}, "list")
|
|
31356
31500
|
}), "chatDocumentsService");
|
|
31357
31501
|
|
|
31358
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31502
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/services/retention.js
|
|
31359
31503
|
var observationDuration = /* @__PURE__ */ __name((text2, flag) => {
|
|
31360
31504
|
const match = /^(\d+(?:\.\d+)?)([smhdw])$/.exec(text2);
|
|
31361
31505
|
const units2 = { s: 1e3, m: 6e4, h: 36e5, d: 864e5, w: 6048e5 };
|
|
@@ -31389,14 +31533,14 @@ var retentionService = /* @__PURE__ */ __name((deps) => ({
|
|
|
31389
31533
|
const result = await store.roster.retention(account, chatId, options);
|
|
31390
31534
|
return {
|
|
31391
31535
|
...result,
|
|
31392
|
-
items: result.items.map((
|
|
31393
|
-
...
|
|
31536
|
+
items: result.items.map((item2) => ({
|
|
31537
|
+
...item2,
|
|
31394
31538
|
drilldown: {
|
|
31395
31539
|
command: "stats messages evidence",
|
|
31396
31540
|
arguments: {
|
|
31397
|
-
message:
|
|
31541
|
+
message: item2.cohort,
|
|
31398
31542
|
component: "report",
|
|
31399
|
-
selection: { kind: "retention", version: 1, account, chatId, cohort:
|
|
31543
|
+
selection: { kind: "retention", version: 1, account, chatId, cohort: item2.cohort, options }
|
|
31400
31544
|
}
|
|
31401
31545
|
}
|
|
31402
31546
|
})),
|
|
@@ -31442,7 +31586,7 @@ var isRetentionSelection = /* @__PURE__ */ __name((selection) => {
|
|
|
31442
31586
|
}
|
|
31443
31587
|
}, "isRetentionSelection");
|
|
31444
31588
|
|
|
31445
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31589
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/services/counters.js
|
|
31446
31590
|
var counterFields = /* @__PURE__ */ __name((text2 = "views,reactions,comments") => {
|
|
31447
31591
|
const fields = text2.split(",").map((one2) => one2.trim());
|
|
31448
31592
|
if (!fields.length || fields.some((one2) => !COUNTER_FIELDS.includes(one2)) || new Set(fields).size !== fields.length)
|
|
@@ -31505,7 +31649,7 @@ var countersService = /* @__PURE__ */ __name((deps) => {
|
|
|
31505
31649
|
fields,
|
|
31506
31650
|
now,
|
|
31507
31651
|
maxAge,
|
|
31508
|
-
items: items.map((
|
|
31652
|
+
items: items.map((item2) => ({ ...item2, counters: item2.counters.filter((one2) => fields.includes(one2.counter)) })),
|
|
31509
31653
|
hasMore
|
|
31510
31654
|
};
|
|
31511
31655
|
}, "select");
|
|
@@ -31649,7 +31793,7 @@ var countersService = /* @__PURE__ */ __name((deps) => {
|
|
|
31649
31793
|
};
|
|
31650
31794
|
}, "countersService");
|
|
31651
31795
|
|
|
31652
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31796
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/services/search-refresh.js
|
|
31653
31797
|
var SYNC_KEY = "messages.sync-first";
|
|
31654
31798
|
var SYNC_BOUNDS = { maxChats: 5, timeMs: 3e4, maxMessages: 500 };
|
|
31655
31799
|
var keyOf2 = /* @__PURE__ */ __name((chat) => JSON.stringify([chat.account.provider, chat.account.account, chat.chatId]), "keyOf");
|
|
@@ -31781,7 +31925,7 @@ var withRefresh = /* @__PURE__ */ __name((found, refreshed) => ({
|
|
|
31781
31925
|
...!refreshed || refreshed.complete ? {} : { coverage: { ...found.coverage, state: "stale" } }
|
|
31782
31926
|
}), "withRefresh");
|
|
31783
31927
|
|
|
31784
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31928
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/services/embeddings-search.js
|
|
31785
31929
|
var CANDIDATES = 50;
|
|
31786
31930
|
var WORD_HITS = 200;
|
|
31787
31931
|
var RRF_K = 60;
|
|
@@ -32056,13 +32200,13 @@ var meanOf = /* @__PURE__ */ __name((vectors) => {
|
|
|
32056
32200
|
return mean.map((value) => value / length);
|
|
32057
32201
|
}, "meanOf");
|
|
32058
32202
|
|
|
32059
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32203
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/services/embeddings.js
|
|
32060
32204
|
var embeddingsService = /* @__PURE__ */ __name((deps) => ({
|
|
32061
32205
|
...embeddingsMaintenance(deps),
|
|
32062
32206
|
...embeddingsSearch(deps)
|
|
32063
32207
|
}), "embeddingsService");
|
|
32064
32208
|
|
|
32065
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32209
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/services/folders.js
|
|
32066
32210
|
var foldersService = /* @__PURE__ */ __name((deps) => {
|
|
32067
32211
|
const online = /* @__PURE__ */ __name(async (command) => {
|
|
32068
32212
|
if (deps.offline)
|
|
@@ -32203,7 +32347,7 @@ var foldersService = /* @__PURE__ */ __name((deps) => {
|
|
|
32203
32347
|
};
|
|
32204
32348
|
}, "foldersService");
|
|
32205
32349
|
|
|
32206
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32350
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/services/mentions.js
|
|
32207
32351
|
var REVIEW_COUNT = 500;
|
|
32208
32352
|
var mentionsService = /* @__PURE__ */ __name((deps) => {
|
|
32209
32353
|
const located = /* @__PURE__ */ __name(async () => {
|
|
@@ -32282,7 +32426,7 @@ var mentionsService = /* @__PURE__ */ __name((deps) => {
|
|
|
32282
32426
|
};
|
|
32283
32427
|
}, "mentionsService");
|
|
32284
32428
|
|
|
32285
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32429
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/domain/formatting.js
|
|
32286
32430
|
var invalid3 = /* @__PURE__ */ __name(() => new CliError("validation_error", "the messenger formatter returned invalid text spans"), "invalid");
|
|
32287
32431
|
var validateFormattedText = /* @__PURE__ */ __name((formatted2) => {
|
|
32288
32432
|
const { text: text2, spans } = formatted2;
|
|
@@ -32342,7 +32486,7 @@ var visibleFormattedText = /* @__PURE__ */ __name((formatted2) => {
|
|
|
32342
32486
|
};
|
|
32343
32487
|
}, "visibleFormattedText");
|
|
32344
32488
|
|
|
32345
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32489
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/domain/message-link.js
|
|
32346
32490
|
var fileLinks = /* @__PURE__ */ __name((attachments) => hitFiles(attachments).map(({ position, kind, name }) => ({
|
|
32347
32491
|
position,
|
|
32348
32492
|
kind,
|
|
@@ -32391,7 +32535,7 @@ var validatePermalink = /* @__PURE__ */ __name((link4) => {
|
|
|
32391
32535
|
return { url: link4.url, access: link4.access, reason: link4.reason };
|
|
32392
32536
|
}, "validatePermalink");
|
|
32393
32537
|
|
|
32394
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32538
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/domain/pin-duration.js
|
|
32395
32539
|
var spokenSeconds = /* @__PURE__ */ __name((seconds) => {
|
|
32396
32540
|
if (seconds % 86400 === 0 && seconds > 86400)
|
|
32397
32541
|
return `${seconds / 86400}d`;
|
|
@@ -32423,7 +32567,7 @@ var pinDurationOf = /* @__PURE__ */ __name((value, allowed, flag = "--expire-tim
|
|
|
32423
32567
|
return seconds;
|
|
32424
32568
|
}, "pinDurationOf");
|
|
32425
32569
|
|
|
32426
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32570
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/sends/send-as.js
|
|
32427
32571
|
var sendAsCheck = /* @__PURE__ */ __name((connection, sendAs) => {
|
|
32428
32572
|
if (sendAs === void 0) {
|
|
32429
32573
|
const saved = connection.savedSender?.bind(connection);
|
|
@@ -32448,7 +32592,7 @@ var typedSendAs = /* @__PURE__ */ __name((typed) => {
|
|
|
32448
32592
|
return sendAs;
|
|
32449
32593
|
}, "typedSendAs");
|
|
32450
32594
|
|
|
32451
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32595
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/search/total.js
|
|
32452
32596
|
var TOTAL_CAP = 1e4;
|
|
32453
32597
|
var totalOf = /* @__PURE__ */ __name((count4, shown, hasMore, exact = true) => {
|
|
32454
32598
|
const least = shown + (hasMore ? 1 : 0);
|
|
@@ -32459,7 +32603,7 @@ var totalOf = /* @__PURE__ */ __name((count4, shown, hasMore, exact = true) => {
|
|
|
32459
32603
|
return { value: count4, relation: exact ? "eq" : "gte" };
|
|
32460
32604
|
}, "totalOf");
|
|
32461
32605
|
|
|
32462
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32606
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/search/lucene/meaning-parts.js
|
|
32463
32607
|
var WORD_FIELDS = /* @__PURE__ */ new Set(["text", "exact"]);
|
|
32464
32608
|
var fieldsOfQuery = /* @__PURE__ */ __name((root, everything) => {
|
|
32465
32609
|
let narrows = false;
|
|
@@ -32488,7 +32632,7 @@ var meaningWords = /* @__PURE__ */ __name((root) => {
|
|
|
32488
32632
|
return wanted(root).join(" ").trim();
|
|
32489
32633
|
}, "meaningWords");
|
|
32490
32634
|
|
|
32491
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32635
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/search/question-plan.js
|
|
32492
32636
|
var words2 = /* @__PURE__ */ __name((text2) => normalize(text2).match(/[\p{L}\p{N}]+/gu) ?? [], "words");
|
|
32493
32637
|
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"));
|
|
32494
32638
|
var questionWord = /\b(?:what|which|how|who|where|when|can|could|should)\b|(?:^|\s)(?:сколько|какой|какая|какие|какое|кто|кому|кем|где|когда|как|что|можно|может|могут|ли)(?:\s|$)/iu;
|
|
@@ -32603,7 +32747,7 @@ function planQuestion(text2, strict = false) {
|
|
|
32603
32747
|
}
|
|
32604
32748
|
__name(planQuestion, "planQuestion");
|
|
32605
32749
|
|
|
32606
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32750
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/services/messages-combined.js
|
|
32607
32751
|
var COMBINED_DEFAULTS = { candidateDepth: 300, rrfK: 60, rerank: "all", chatCap: 0 };
|
|
32608
32752
|
var tokensOf = /* @__PURE__ */ __name((text2) => normalize(text2).match(/[\p{L}\p{N}\p{Co}\p{M}]+/gu) ?? [], "tokensOf");
|
|
32609
32753
|
var searchCombined = /* @__PURE__ */ __name(async (store, account, request, messenger = {}, options = COMBINED_DEFAULTS) => {
|
|
@@ -32727,8 +32871,8 @@ var searchCombined = /* @__PURE__ */ __name(async (store, account, request, mess
|
|
|
32727
32871
|
return finish(listed2.map(({ fused: _fused, ...hit }) => hit), ordered.length > request.limit || truncated, usedCorrections, truncated, true);
|
|
32728
32872
|
async function finish(items, hasMore, listed3, truncated2, expanded) {
|
|
32729
32873
|
const { completeness, coverage: coverage2 } = request.kind === "mail" ? { completeness: [], coverage: void 0 } : await coverageOf(store, prepared, messenger);
|
|
32730
|
-
const hydrated = await Promise.all(items.map(async (
|
|
32731
|
-
const hit = withExcerpt(
|
|
32874
|
+
const hydrated = await Promise.all(items.map(async (item2) => {
|
|
32875
|
+
const hit = withExcerpt(item2, request.text ?? "");
|
|
32732
32876
|
if (!request.context)
|
|
32733
32877
|
return hit;
|
|
32734
32878
|
const { provider, account: account2 } = parseLocator(hit.locator);
|
|
@@ -32796,7 +32940,7 @@ var signals = /* @__PURE__ */ __name((hit, terms, corrections, execution, mode,
|
|
|
32796
32940
|
return mode === "coverage" ? coverage2 * 4 : mode === "proximity" ? proximity : mode === "phrase" ? phrase : coverage2 * 4 + proximity + phrase;
|
|
32797
32941
|
}, "signals");
|
|
32798
32942
|
|
|
32799
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32943
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/services/messages-discovery.js
|
|
32800
32944
|
var MEANING_DEPTH = 100;
|
|
32801
32945
|
var RRF_K2 = 60;
|
|
32802
32946
|
var RERANK_DEPTH = 50;
|
|
@@ -33124,7 +33268,7 @@ var mixedWithReranker = /* @__PURE__ */ __name((head, scores) => {
|
|
|
33124
33268
|
})).sort((a, b) => b.mixed - a.mixed).map(({ hit }) => hit);
|
|
33125
33269
|
}, "mixedWithReranker");
|
|
33126
33270
|
|
|
33127
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33271
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/services/thread-context.js
|
|
33128
33272
|
var THREAD_BOUNDS = { maxHops: 8, maxMessages: 50, maxBytes: 65536, withinMs: 864e5 };
|
|
33129
33273
|
var bytes = /* @__PURE__ */ __name((items, links) => Buffer.byteLength(JSON.stringify({ items, links }), "utf8"), "bytes");
|
|
33130
33274
|
var threadBounds = /* @__PURE__ */ __name((options = {}) => {
|
|
@@ -33194,8 +33338,8 @@ var readThreadContext = /* @__PURE__ */ __name(async (store, account, chat, mess
|
|
|
33194
33338
|
stopped("messages");
|
|
33195
33339
|
const neighbours = anchor ? await around(message, before2, after) : [];
|
|
33196
33340
|
const nearest = neighbours.sort((a, b) => Number(a.id !== message) - Number(b.id !== message) || Math.abs(Date.parse(a.timestamp) - Date.parse(anchor?.timestamp ?? "")) - Math.abs(Date.parse(b.timestamp) - Date.parse(anchor?.timestamp ?? "")));
|
|
33197
|
-
for (const
|
|
33198
|
-
if (
|
|
33341
|
+
for (const item2 of nearest) {
|
|
33342
|
+
if (item2.threadId !== anchor?.threadId) {
|
|
33199
33343
|
stopped("thread");
|
|
33200
33344
|
continue;
|
|
33201
33345
|
}
|
|
@@ -33203,15 +33347,15 @@ var readThreadContext = /* @__PURE__ */ __name(async (store, account, chat, mess
|
|
|
33203
33347
|
stopped("messages");
|
|
33204
33348
|
break;
|
|
33205
33349
|
}
|
|
33206
|
-
if (Math.abs(Date.parse(
|
|
33350
|
+
if (Math.abs(Date.parse(item2.timestamp) - Date.parse(anchor?.timestamp ?? "")) > bounds.withinMs) {
|
|
33207
33351
|
stopped("time");
|
|
33208
33352
|
continue;
|
|
33209
33353
|
}
|
|
33210
|
-
if (bytes([...result.items,
|
|
33354
|
+
if (bytes([...result.items, item2], []) > bounds.maxBytes) {
|
|
33211
33355
|
stopped("bytes");
|
|
33212
33356
|
break;
|
|
33213
33357
|
}
|
|
33214
|
-
result.items.push(
|
|
33358
|
+
result.items.push(item2);
|
|
33215
33359
|
}
|
|
33216
33360
|
result.items.sort((a, b) => a.timestamp.localeCompare(b.timestamp) || a.id.localeCompare(b.id));
|
|
33217
33361
|
return result;
|
|
@@ -33241,16 +33385,16 @@ var readThreadContext = /* @__PURE__ */ __name(async (store, account, chat, mess
|
|
|
33241
33385
|
break;
|
|
33242
33386
|
}
|
|
33243
33387
|
const node = queue[index];
|
|
33244
|
-
const [
|
|
33245
|
-
if (!
|
|
33388
|
+
const [item2] = node.id === message ? [anchor] : await around(node.id);
|
|
33389
|
+
if (!item2) {
|
|
33246
33390
|
result.stale = true;
|
|
33247
33391
|
continue;
|
|
33248
33392
|
}
|
|
33249
|
-
if (Math.abs(Date.parse(
|
|
33393
|
+
if (Math.abs(Date.parse(item2.timestamp) - at) > bounds.withinMs) {
|
|
33250
33394
|
stopped("time");
|
|
33251
33395
|
continue;
|
|
33252
33396
|
}
|
|
33253
|
-
if (
|
|
33397
|
+
if (item2.threadId !== anchor.threadId) {
|
|
33254
33398
|
stopped("thread");
|
|
33255
33399
|
continue;
|
|
33256
33400
|
}
|
|
@@ -33258,7 +33402,7 @@ var readThreadContext = /* @__PURE__ */ __name(async (store, account, chat, mess
|
|
|
33258
33402
|
stopped("messages");
|
|
33259
33403
|
break;
|
|
33260
33404
|
}
|
|
33261
|
-
const { anchor: _anchor, ...body } =
|
|
33405
|
+
const { anchor: _anchor, ...body } = item2;
|
|
33262
33406
|
const displayed2 = node.id === message ? { ...body, anchor: true } : body;
|
|
33263
33407
|
const own = await linksOf(node.id);
|
|
33264
33408
|
const parent = chosen(own);
|
|
@@ -33323,7 +33467,7 @@ var readThreadContext = /* @__PURE__ */ __name(async (store, account, chat, mess
|
|
|
33323
33467
|
return result;
|
|
33324
33468
|
}, "readThreadContext");
|
|
33325
33469
|
|
|
33326
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33470
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/services/messages-archive-search.js
|
|
33327
33471
|
var SEARCH_FILL_MS = 200;
|
|
33328
33472
|
var statsStore = /* @__PURE__ */ __name(async (store, account, request, messenger = {}) => {
|
|
33329
33473
|
const stop = Date.now() + SEARCH_FILL_MS;
|
|
@@ -33390,12 +33534,12 @@ var accountOf2 = /* @__PURE__ */ __name((hit) => {
|
|
|
33390
33534
|
}, "accountOf");
|
|
33391
33535
|
var keyOf3 = /* @__PURE__ */ __name(({ provider, account }) => `${provider}/${account}`, "keyOf");
|
|
33392
33536
|
|
|
33393
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33537
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/services/pictures.js
|
|
33394
33538
|
import { createHash as createHash10 } from "node:crypto";
|
|
33395
33539
|
import { readFile as readFile2, stat as stat3 } from "node:fs/promises";
|
|
33396
33540
|
import { setTimeout as sleep4 } from "node:timers/promises";
|
|
33397
33541
|
|
|
33398
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33542
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/domain/models.js
|
|
33399
33543
|
var GROUP_SETTINGS = [
|
|
33400
33544
|
"allCanPin",
|
|
33401
33545
|
"onlyAdminsAdd",
|
|
@@ -33409,7 +33553,7 @@ var ADMIN_RIGHTS = ["read", "members", "admins", "info", "pin", "link", "post",
|
|
|
33409
33553
|
var senderIsMe = /* @__PURE__ */ __name((message, account) => message.outgoing === true || message.senderId !== null && String(message.senderId) === account, "senderIsMe");
|
|
33410
33554
|
var MEDIA_KINDS = ["photo", "video", "file", "audio", "link"];
|
|
33411
33555
|
|
|
33412
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33556
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/services/pictures.js
|
|
33413
33557
|
var PICTURE_MAX_BYTES = 25 * 1024 * 1024;
|
|
33414
33558
|
var PICTURE_FLOOR = 0.25;
|
|
33415
33559
|
var PAGE4 = 50;
|
|
@@ -33426,7 +33570,7 @@ var picturesService = /* @__PURE__ */ __name((deps) => {
|
|
|
33426
33570
|
const directory2 = imageModelsDirectory(deps.env);
|
|
33427
33571
|
if (!isImageModelInstalled(model2, directory2))
|
|
33428
33572
|
throw new CliError("not_found", missingModel(model2.id), { reason: "model.not-downloaded", model: model2.id });
|
|
33429
|
-
const { openPictureEmbedder } = await import("./embedder-
|
|
33573
|
+
const { openPictureEmbedder } = await import("./embedder-27HQIFHM.js");
|
|
33430
33574
|
return openPictureEmbedder(model2, directory2);
|
|
33431
33575
|
}, "open");
|
|
33432
33576
|
const embedder = /* @__PURE__ */ __name(() => {
|
|
@@ -33623,7 +33767,7 @@ var withPictures = /* @__PURE__ */ __name((messages, pictures) => ({
|
|
|
33623
33767
|
}, "search")
|
|
33624
33768
|
}), "withPictures");
|
|
33625
33769
|
|
|
33626
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33770
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/services/messages-meaning.js
|
|
33627
33771
|
var meaningLane = /* @__PURE__ */ __name((deps) => async (question, accounts, shared, within) => {
|
|
33628
33772
|
const target2 = embeddingTarget(deps, DEFAULT_TEXT_MODEL);
|
|
33629
33773
|
const skipped = /* @__PURE__ */ __name((reason, step) => ({
|
|
@@ -33672,7 +33816,7 @@ var meaningLane = /* @__PURE__ */ __name((deps) => async (question, accounts, sh
|
|
|
33672
33816
|
}
|
|
33673
33817
|
}, "meaningLane");
|
|
33674
33818
|
|
|
33675
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33819
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/services/messages-rerank.js
|
|
33676
33820
|
var rerankLane = /* @__PURE__ */ __name((deps) => {
|
|
33677
33821
|
const choice = deps.reranker ?? DEFAULT_RERANK_MODEL;
|
|
33678
33822
|
if (choice === "off")
|
|
@@ -33684,9 +33828,9 @@ var rerankLane = /* @__PURE__ */ __name((deps) => {
|
|
|
33684
33828
|
return { skipped: { reason: `${model.id} is not downloaded`, step: "models.download", model: model.id } };
|
|
33685
33829
|
try {
|
|
33686
33830
|
const warm = deps.embedders;
|
|
33687
|
-
const reranker = warm ? await warm.reranker(`rerank:${model.id}`, async () => (await import("./process-
|
|
33831
|
+
const reranker = warm ? await warm.reranker(`rerank:${model.id}`, async () => (await import("./process-QTIDOJMF.js")).openRerankerProcess(model, directory2, {
|
|
33688
33832
|
threads: defaultThreads()
|
|
33689
|
-
})) : await (await import("./rerank-
|
|
33833
|
+
})) : await (await import("./rerank-77UYD2UD.js")).openReranker(model, directory2);
|
|
33690
33834
|
return {
|
|
33691
33835
|
model: model.id,
|
|
33692
33836
|
score: /* @__PURE__ */ __name((question, passages) => reranker.score(plainWords(question), passages), "score"),
|
|
@@ -33706,17 +33850,17 @@ var rerankLane = /* @__PURE__ */ __name((deps) => {
|
|
|
33706
33850
|
};
|
|
33707
33851
|
}, "rerankLane");
|
|
33708
33852
|
|
|
33709
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33853
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/services/document-pictures.js
|
|
33710
33854
|
var openPictureEmbedderFor = /* @__PURE__ */ __name(async ({ env, command } = {}) => {
|
|
33711
33855
|
const model = imageModel(DEFAULT_IMAGE_MODEL);
|
|
33712
33856
|
const directory2 = imageModelsDirectory(env);
|
|
33713
33857
|
if (!isImageModelInstalled(model, directory2))
|
|
33714
33858
|
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 });
|
|
33715
|
-
const { openPictureEmbedder } = await import("./embedder-
|
|
33859
|
+
const { openPictureEmbedder } = await import("./embedder-27HQIFHM.js");
|
|
33716
33860
|
return openPictureEmbedder(model, directory2);
|
|
33717
33861
|
}, "openPictureEmbedderFor");
|
|
33718
33862
|
|
|
33719
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33863
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/services/document-source.js
|
|
33720
33864
|
var documentSource = /* @__PURE__ */ __name((note2, accounts, profiles, file2) => {
|
|
33721
33865
|
const metadata = note2.frontMatter;
|
|
33722
33866
|
const account = accounts.find(({ id: id2 }) => String(id2) === note2.folderId);
|
|
@@ -33731,7 +33875,7 @@ var documentSource = /* @__PURE__ */ __name((note2, accounts, profiles, file2) =
|
|
|
33731
33875
|
};
|
|
33732
33876
|
}, "documentSource");
|
|
33733
33877
|
|
|
33734
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33878
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/services/notes-title-tier.js
|
|
33735
33879
|
var plainQueryWords = /* @__PURE__ */ __name((query) => {
|
|
33736
33880
|
let root;
|
|
33737
33881
|
try {
|
|
@@ -33758,7 +33902,7 @@ var titleTiers = /* @__PURE__ */ __name((hits, words3) => {
|
|
|
33758
33902
|
return [...hits].sort((a, b) => rank(a) - rank(b));
|
|
33759
33903
|
}, "titleTiers");
|
|
33760
33904
|
|
|
33761
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33905
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/services/notes-search.js
|
|
33762
33906
|
var storeQuery = /* @__PURE__ */ __name(async (store, text2, { exact, timezone } = {}) => resolvedQuery(store, parsedQuery(text2, exact), timezone), "storeQuery");
|
|
33763
33907
|
var parsedQuery = /* @__PURE__ */ __name((text2, exact) => validateFields(parseLucene(text2, { ...SEARCH_QUERY, defaultField: exact ? "exact" : "text" })).root, "parsedQuery");
|
|
33764
33908
|
var resolvedQuery = /* @__PURE__ */ __name(async (store, root, timezone) => {
|
|
@@ -34193,7 +34337,7 @@ var searchNotesOf = /* @__PURE__ */ __name(async (store, account, text2, { accou
|
|
|
34193
34337
|
};
|
|
34194
34338
|
}, "searchNotesOf");
|
|
34195
34339
|
|
|
34196
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34340
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/services/events-search.js
|
|
34197
34341
|
var MAX_EVENTS_OFFSET = 1e3;
|
|
34198
34342
|
var iso3 = /* @__PURE__ */ __name((at) => at === null ? null : new Date(at).toISOString(), "iso");
|
|
34199
34343
|
var accountIdsOf = /* @__PURE__ */ __name(async (store, accounts) => {
|
|
@@ -34305,7 +34449,7 @@ var searchEvents = /* @__PURE__ */ __name(async (store, query, { limit = 20, off
|
|
|
34305
34449
|
};
|
|
34306
34450
|
}, "searchEvents");
|
|
34307
34451
|
|
|
34308
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34452
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/services/search-all.js
|
|
34309
34453
|
var RESOURCES_SEARCHED = ["messages", "mail", "notes", "events"];
|
|
34310
34454
|
var skippable = /* @__PURE__ */ __name((error) => error instanceof CliError && (error.code === "validation_error" || error.code === "not_found"), "skippable");
|
|
34311
34455
|
var filtersBeside = /* @__PURE__ */ __name((text2) => {
|
|
@@ -34395,8 +34539,8 @@ var searchAll = /* @__PURE__ */ __name(async (store, account, request, messenger
|
|
|
34395
34539
|
messagesBy = { by: "words and meaning", ...lane.partly ? { meaningSkipped: lane.partly } : {} };
|
|
34396
34540
|
const near2 = await nearEligible(store, account, query, messenger, lane.ranked, filters ? { text: filters } : {});
|
|
34397
34541
|
const fused2 = /* @__PURE__ */ new Map();
|
|
34398
|
-
byWords.forEach((
|
|
34399
|
-
fused2.set(
|
|
34542
|
+
byWords.forEach((item2, rank) => {
|
|
34543
|
+
fused2.set(item2.ref, { item: item2, score: 1 / (RRF_K3 + rank + 1) });
|
|
34400
34544
|
});
|
|
34401
34545
|
near2.forEach((hit, rank) => {
|
|
34402
34546
|
const held = fused2.get(hit.locator);
|
|
@@ -34407,7 +34551,7 @@ var searchAll = /* @__PURE__ */ __name(async (store, account, request, messenger
|
|
|
34407
34551
|
score: (held?.score ?? 0) + 1 / (RRF_K3 + rank + 1)
|
|
34408
34552
|
});
|
|
34409
34553
|
});
|
|
34410
|
-
return [...fused2.values()].sort((a, b) => b.score - a.score).map(({ item }) =>
|
|
34554
|
+
return [...fused2.values()].sort((a, b) => b.score - a.score).map(({ item: item2 }) => item2);
|
|
34411
34555
|
}, "messagesOf");
|
|
34412
34556
|
const embedders = runEmbedders();
|
|
34413
34557
|
try {
|
|
@@ -34491,12 +34635,12 @@ var searchAll = /* @__PURE__ */ __name(async (store, account, request, messenger
|
|
|
34491
34635
|
}
|
|
34492
34636
|
const ranked = /* @__PURE__ */ new Map();
|
|
34493
34637
|
for (const list3 of lists)
|
|
34494
|
-
list3.forEach((
|
|
34495
|
-
const held = ranked.get(
|
|
34638
|
+
list3.forEach((item2, rank) => {
|
|
34639
|
+
const held = ranked.get(item2.ref) ?? { item: item2, score: 0 };
|
|
34496
34640
|
held.score += 1 / (RRF_K3 + rank + 1);
|
|
34497
|
-
ranked.set(
|
|
34641
|
+
ranked.set(item2.ref, held);
|
|
34498
34642
|
});
|
|
34499
|
-
const ordered = [...ranked.values()].sort((a, b) => b.score - a.score).map(({ item }) =>
|
|
34643
|
+
const ordered = [...ranked.values()].sort((a, b) => b.score - a.score).map(({ item: item2 }) => item2);
|
|
34500
34644
|
const more = hasMore || ordered.length > window3;
|
|
34501
34645
|
return {
|
|
34502
34646
|
query: request.text,
|
|
@@ -34514,7 +34658,7 @@ var searchAll = /* @__PURE__ */ __name(async (store, account, request, messenger
|
|
|
34514
34658
|
};
|
|
34515
34659
|
}, "searchAll");
|
|
34516
34660
|
|
|
34517
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34661
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/services/search-all-meetings.js
|
|
34518
34662
|
var RESOURCES_SEARCHED_WITH_MEETINGS = [...RESOURCES_SEARCHED, "meetings"];
|
|
34519
34663
|
var whole2 = /* @__PURE__ */ __name((value, minimum, maximum, label) => {
|
|
34520
34664
|
if (!Number.isSafeInteger(value) || value < minimum || value > maximum)
|
|
@@ -34682,16 +34826,16 @@ var searchAllIncludingMeetings = /* @__PURE__ */ __name(async (store, account, r
|
|
|
34682
34826
|
};
|
|
34683
34827
|
}
|
|
34684
34828
|
const ranked = /* @__PURE__ */ new Map();
|
|
34685
|
-
for (const list3 of [legacy.items, meetings.items.map(({ item }) =>
|
|
34686
|
-
list3.forEach((
|
|
34687
|
-
const key =
|
|
34688
|
-
const held = ranked.get(key) ?? { item, score: 0 };
|
|
34829
|
+
for (const list3 of [legacy.items, meetings.items.map(({ item: item2 }) => item2)])
|
|
34830
|
+
list3.forEach((item2, rank) => {
|
|
34831
|
+
const key = item2.kind === "meeting" ? JSON.stringify([item2.kind, item2.accountId, item2.meetingId, item2.scope, item2.id]) : item2.ref;
|
|
34832
|
+
const held = ranked.get(key) ?? { item: item2, score: 0 };
|
|
34689
34833
|
held.score += 1 / (RRF_K3 + rank + 1);
|
|
34690
34834
|
ranked.set(key, held);
|
|
34691
34835
|
});
|
|
34692
|
-
const ordered = [...ranked.values()].sort((a, b) => b.score - a.score).map(({ item }) =>
|
|
34836
|
+
const ordered = [...ranked.values()].sort((a, b) => b.score - a.score).map(({ item: item2 }) => item2);
|
|
34693
34837
|
const items = ordered.slice(offset, window3);
|
|
34694
|
-
const returnedMeetings = ordered.slice(0, window3).filter((
|
|
34838
|
+
const returnedMeetings = ordered.slice(0, window3).filter((item2) => item2.kind === "meeting").length;
|
|
34695
34839
|
const nextCursor = meetings.items[returnedMeetings]?.before ?? (!meetings.coverage.complete ? meetings.after : void 0);
|
|
34696
34840
|
const more = legacy.hasMore || ordered.length > window3;
|
|
34697
34841
|
const { nextOffset: _, ...rest } = legacy;
|
|
@@ -34726,13 +34870,13 @@ var searchAllWithMeetings = /* @__PURE__ */ __name(async (store, account, reques
|
|
|
34726
34870
|
var holdingMeetings = /* @__PURE__ */ __name(async (store, named2) => {
|
|
34727
34871
|
if (named2.length < 2)
|
|
34728
34872
|
return named2;
|
|
34729
|
-
const
|
|
34873
|
+
const holding2 = [];
|
|
34730
34874
|
for (const key of named2) {
|
|
34731
34875
|
const { id: id2 } = await store.accounts.storedAccount(key);
|
|
34732
34876
|
if ((await store.meetings.meetings({ accountId: id2, limit: 1 })).length)
|
|
34733
|
-
|
|
34877
|
+
holding2.push(key);
|
|
34734
34878
|
}
|
|
34735
|
-
return
|
|
34879
|
+
return holding2.length ? holding2 : named2;
|
|
34736
34880
|
}, "holdingMeetings");
|
|
34737
34881
|
var searchAllOfSource = /* @__PURE__ */ __name(async (store, account, source, request, messenger, searchMessages, meaning) => {
|
|
34738
34882
|
const only = request.only ?? RESOURCES_SEARCHED_WITH_MEETINGS;
|
|
@@ -34767,7 +34911,7 @@ var searchAllOfSource = /* @__PURE__ */ __name(async (store, account, source, re
|
|
|
34767
34911
|
return { ...found, skipped: [...skipped, ...empty2, ...unnamed, ...found.skipped] };
|
|
34768
34912
|
}, "searchAllOfSource");
|
|
34769
34913
|
|
|
34770
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34914
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/services/server-search.js
|
|
34771
34915
|
var SERVER_SEARCH_KEY = "messages.server-search";
|
|
34772
34916
|
var SERVER_BOUNDS = { timeMs: 5e3, perCall: 100, maxCalls: 3, textBytes: 262144 };
|
|
34773
34917
|
var DEFAULT_BACKEND = "both";
|
|
@@ -34956,7 +35100,7 @@ var searchServer = /* @__PURE__ */ __name(async (deps, request) => {
|
|
|
34956
35100
|
return { report, sources };
|
|
34957
35101
|
}, "searchServer");
|
|
34958
35102
|
|
|
34959
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35103
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/services/messages.js
|
|
34960
35104
|
var DELETE_AT_ONCE = 10;
|
|
34961
35105
|
var filesOf = /* @__PURE__ */ __name(({ attachments }) => {
|
|
34962
35106
|
const files = fileLinks(attachments);
|
|
@@ -35113,7 +35257,7 @@ var messagesService = /* @__PURE__ */ __name((deps) => {
|
|
|
35113
35257
|
const store = await deps.store();
|
|
35114
35258
|
const chat2 = await readChatId(deps, target2.chat, store, account);
|
|
35115
35259
|
const found2 = await store.messages.around(account, chat2, target2.message, { before: 0, after: 0 });
|
|
35116
|
-
const held2 = found2.find((
|
|
35260
|
+
const held2 = found2.find((item2) => item2.id === target2.message && item2.chatId === chat2);
|
|
35117
35261
|
if (!held2)
|
|
35118
35262
|
throw new CliError("not_found", "no such message in this account's stored chat");
|
|
35119
35263
|
return {
|
|
@@ -35131,14 +35275,14 @@ var messagesService = /* @__PURE__ */ __name((deps) => {
|
|
|
35131
35275
|
const locator = formatLocator({ ...account, chat, message: target2.message });
|
|
35132
35276
|
if (connection.permalink) {
|
|
35133
35277
|
const permalink = validatePermalink(await connection.permalink(chat, target2.message));
|
|
35134
|
-
const held2 = await deps.store().then((store) => store.messages.around(account, chat, target2.message, { before: 0, after: 0 })).then((found2) => found2.find((
|
|
35278
|
+
const held2 = await deps.store().then((store) => store.messages.around(account, chat, target2.message, { before: 0, after: 0 })).then((found2) => found2.find((item2) => item2.id === target2.message && item2.chatId === chat)).catch(() => void 0);
|
|
35135
35279
|
return { locator, ...permalink, ...held2 ? filesOf(held2) : {} };
|
|
35136
35280
|
}
|
|
35137
35281
|
const found = await capability(connection, "around", "read a message")(chat, target2.message, {
|
|
35138
35282
|
before: 0,
|
|
35139
35283
|
after: 0
|
|
35140
35284
|
});
|
|
35141
|
-
const held = found.find((
|
|
35285
|
+
const held = found.find((item2) => item2.id === target2.message && item2.chatId === chat);
|
|
35142
35286
|
if (!held)
|
|
35143
35287
|
throw new CliError("not_found", "no such message in this chat");
|
|
35144
35288
|
return { locator, url: null, access: "unavailable", reason: "unsupported_provider", ...filesOf(held) };
|
|
@@ -35397,7 +35541,7 @@ var checkMediaOptions = /* @__PURE__ */ __name((messenger, asked, attachments) =
|
|
|
35397
35541
|
throw new CliError("validation_error", `${MEDIA_FLAGS[first2]} needs a --photo or --file`);
|
|
35398
35542
|
}, "checkMediaOptions");
|
|
35399
35543
|
|
|
35400
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35544
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/domain/channel-tags.js
|
|
35401
35545
|
var CHANNEL_TAG_RULES_VERSION = "keywords-v1";
|
|
35402
35546
|
var RULES = {
|
|
35403
35547
|
ai: [/\b(ai|gpt|llm|machine learning|artificial intelligence)\b/iu, /нейросет|искусственн/iu],
|
|
@@ -35412,7 +35556,7 @@ var classifyChannel = /* @__PURE__ */ __name((metadata) => Object.entries(RULES)
|
|
|
35412
35556
|
return fields.length ? [{ tag, score: fields.length / 3, fields }] : [];
|
|
35413
35557
|
}), "classifyChannel");
|
|
35414
35558
|
|
|
35415
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35559
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/services/metadata.js
|
|
35416
35560
|
var metadataService = /* @__PURE__ */ __name((deps) => {
|
|
35417
35561
|
const held = /* @__PURE__ */ __name(async (reference, { includeLeft = false } = {}) => {
|
|
35418
35562
|
const store = await deps.store();
|
|
@@ -35498,7 +35642,7 @@ var metadataService = /* @__PURE__ */ __name((deps) => {
|
|
|
35498
35642
|
};
|
|
35499
35643
|
}, "metadataService");
|
|
35500
35644
|
|
|
35501
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35645
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/moderation/check.js
|
|
35502
35646
|
var INVITE = /max\.ru\/join\/|(t|telegram)\.me\/(\+|joinchat\/)|tg:\/\/join/i;
|
|
35503
35647
|
var LINK2 = /https?:\/\/\S+/i;
|
|
35504
35648
|
var STRENGTH = { report: 0, delete: 1, remove: 2 };
|
|
@@ -35686,7 +35830,7 @@ var nextPoint = /* @__PURE__ */ __name((rows, found) => {
|
|
|
35686
35830
|
}, "nextPoint");
|
|
35687
35831
|
var someUndone = /* @__PURE__ */ __name((rows) => rows.some(undone), "someUndone");
|
|
35688
35832
|
|
|
35689
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35833
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/moderation/rules.js
|
|
35690
35834
|
import { existsSync, readFileSync as readFileSync2 } from "node:fs";
|
|
35691
35835
|
import { join as join11 } from "node:path";
|
|
35692
35836
|
var RULE_ACTIONS = ["report", "delete", "remove"];
|
|
@@ -35736,7 +35880,7 @@ var defaultRules = /* @__PURE__ */ __name((title) => ({
|
|
|
35736
35880
|
newAccount: { days: 7, action: "report" },
|
|
35737
35881
|
consent: { delete: "ask", remove: "ask" }
|
|
35738
35882
|
}), "defaultRules");
|
|
35739
|
-
var list2 = /* @__PURE__ */ __name((value) => value.split(",").map((
|
|
35883
|
+
var list2 = /* @__PURE__ */ __name((value) => value.split(",").map((item2) => item2.trim()).filter(Boolean), "list");
|
|
35740
35884
|
var whole3 = /* @__PURE__ */ __name((value) => /^\d+$/.test(value.trim()) ? Number(value) : Number.NaN, "whole");
|
|
35741
35885
|
var KEYS = {
|
|
35742
35886
|
trusted: { help: "person ids, comma-separated; never acted on", parse: list2 },
|
|
@@ -35829,7 +35973,7 @@ var assign = /* @__PURE__ */ __name((rules, key, value) => {
|
|
|
35829
35973
|
return { ...rules, [head]: { ...rules[head], [tail]: value } };
|
|
35830
35974
|
}, "assign");
|
|
35831
35975
|
|
|
35832
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35976
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/moderation/run.js
|
|
35833
35977
|
var FIRST_LOOK_MS = 24 * 36e5;
|
|
35834
35978
|
var moderateWith = /* @__PURE__ */ __name(async (run) => {
|
|
35835
35979
|
const { chatId, title, rules, point, since, dryRun } = run;
|
|
@@ -35866,7 +36010,7 @@ var moderateWith = /* @__PURE__ */ __name(async (run) => {
|
|
|
35866
36010
|
return { chatId, rows, notes };
|
|
35867
36011
|
}, "moderateWith");
|
|
35868
36012
|
|
|
35869
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36013
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/services/moderation.js
|
|
35870
36014
|
var moderationService = /* @__PURE__ */ __name((deps) => {
|
|
35871
36015
|
const file2 = /* @__PURE__ */ __name(() => new ModerationRules(moderationPathFor(deps.messenger.app, deps.profile ?? "default", deps.env ?? process.env)), "file");
|
|
35872
36016
|
const group = /* @__PURE__ */ __name(async (chat) => {
|
|
@@ -35944,7 +36088,7 @@ var moderatorOf = /* @__PURE__ */ __name((adapter, deps) => ({
|
|
|
35944
36088
|
}, "removePerson")
|
|
35945
36089
|
}), "moderatorOf");
|
|
35946
36090
|
|
|
35947
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36091
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/services/private-people.js
|
|
35948
36092
|
var noteItem = /* @__PURE__ */ __name((provider, note2) => ({
|
|
35949
36093
|
id: note2.id,
|
|
35950
36094
|
contact: formatReference({ type: "contact", provider, id: note2.personId }),
|
|
@@ -35988,7 +36132,7 @@ var privatePeopleService = /* @__PURE__ */ __name((deps) => {
|
|
|
35988
36132
|
};
|
|
35989
36133
|
}, "privatePeopleService");
|
|
35990
36134
|
|
|
35991
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36135
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/services/rankings.js
|
|
35992
36136
|
var empty = /* @__PURE__ */ __name(() => ({
|
|
35993
36137
|
total: 0,
|
|
35994
36138
|
population: 0,
|
|
@@ -36244,7 +36388,7 @@ var rankingsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
36244
36388
|
}, "evidence")
|
|
36245
36389
|
}), "rankingsService");
|
|
36246
36390
|
|
|
36247
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36391
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/services/searches.js
|
|
36248
36392
|
var savedSearchItem = /* @__PURE__ */ __name((one2) => ({
|
|
36249
36393
|
id: one2.id,
|
|
36250
36394
|
name: one2.name,
|
|
@@ -36373,7 +36517,7 @@ var searchesService = /* @__PURE__ */ __name((deps) => {
|
|
|
36373
36517
|
};
|
|
36374
36518
|
}, "searchesService");
|
|
36375
36519
|
|
|
36376
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36520
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/services/tags.js
|
|
36377
36521
|
var TAGGING_QUERY = {
|
|
36378
36522
|
entity: "tagging",
|
|
36379
36523
|
backend: "sql",
|
|
@@ -36457,7 +36601,7 @@ var tagsService = /* @__PURE__ */ __name((deps) => {
|
|
|
36457
36601
|
};
|
|
36458
36602
|
}, "tagsService");
|
|
36459
36603
|
|
|
36460
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36604
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/services/topics.js
|
|
36461
36605
|
var actionOf = /* @__PURE__ */ __name(({ title, closed, pinned, hidden, icon }) => {
|
|
36462
36606
|
const set = [closed, pinned, hidden].filter((one2) => one2 !== void 0).length;
|
|
36463
36607
|
if (title !== void 0 || icon !== void 0 || set !== 1)
|
|
@@ -36656,7 +36800,7 @@ var topicsService = /* @__PURE__ */ __name((deps) => {
|
|
|
36656
36800
|
};
|
|
36657
36801
|
}, "topicsService");
|
|
36658
36802
|
|
|
36659
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36803
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/services/evidence.js
|
|
36660
36804
|
import { createHash as createHash11, randomUUID as randomUUID5 } from "node:crypto";
|
|
36661
36805
|
var hash2 = /* @__PURE__ */ __name((value) => createHash11("sha256").update(JSON.stringify(value)).digest("hex"), "hash");
|
|
36662
36806
|
var positive = /* @__PURE__ */ __name((value, name, minimum = 1) => {
|
|
@@ -36702,13 +36846,13 @@ var prepareEvidencePacket = /* @__PURE__ */ __name(({ kind, source, page, limits
|
|
|
36702
36846
|
threadId: message.threadId ?? null,
|
|
36703
36847
|
attachmentKinds: message.attachments.map(({ kind: attachmentKind }) => attachmentKind)
|
|
36704
36848
|
};
|
|
36705
|
-
const
|
|
36706
|
-
const bytes2 = Buffer.byteLength(JSON.stringify(
|
|
36849
|
+
const item2 = { ...content2, fingerprint: hash2(content2) };
|
|
36850
|
+
const bytes2 = Buffer.byteLength(JSON.stringify(item2), "utf8") + (items.length > 0 ? 1 : 0);
|
|
36707
36851
|
if (bytes2 > limits.bytes - contentBytes) {
|
|
36708
36852
|
truncatedBy = "bytes";
|
|
36709
36853
|
break;
|
|
36710
36854
|
}
|
|
36711
|
-
items.push(
|
|
36855
|
+
items.push(item2);
|
|
36712
36856
|
contentBytes += bytes2;
|
|
36713
36857
|
}
|
|
36714
36858
|
const content = {
|
|
@@ -36730,7 +36874,7 @@ var prepareEvidencePacket = /* @__PURE__ */ __name(({ kind, source, page, limits
|
|
|
36730
36874
|
return { ...content, id: randomUUID5(), fingerprint: hash2(content) };
|
|
36731
36875
|
}, "prepareEvidencePacket");
|
|
36732
36876
|
|
|
36733
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36877
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/services/evidence-read.js
|
|
36734
36878
|
var readEvidencePacket = /* @__PURE__ */ __name(async (store, account, { chat, limit, before: before2 }, messenger = {}) => {
|
|
36735
36879
|
if (!Number.isSafeInteger(limit) || limit < 1 || limit > 100)
|
|
36736
36880
|
throw new CliError("validation_error", "evidence message limit must be an integer from 1 to 100");
|
|
@@ -36750,7 +36894,7 @@ var readEvidencePacket = /* @__PURE__ */ __name(async (store, account, { chat, l
|
|
|
36750
36894
|
return { ...packet, nextBeforeId: older && last ? last.id : null };
|
|
36751
36895
|
}, "readEvidencePacket");
|
|
36752
36896
|
|
|
36753
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36897
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/services/meeting-hit-search.js
|
|
36754
36898
|
var refreshMeetingIndex = /* @__PURE__ */ __name(async (meetings, accountId, signal) => {
|
|
36755
36899
|
let before2 = Number.POSITIVE_INFINITY;
|
|
36756
36900
|
for (; ; ) {
|
|
@@ -36812,7 +36956,7 @@ var searchMeetingHits = /* @__PURE__ */ __name(async (store, query, request, opt
|
|
|
36812
36956
|
return { ...result, selection };
|
|
36813
36957
|
}, "searchMeetingHits");
|
|
36814
36958
|
|
|
36815
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36959
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/services/meeting-project-discovery.js
|
|
36816
36960
|
import { createHash as createHash12 } from "node:crypto";
|
|
36817
36961
|
var scopeKeys = [
|
|
36818
36962
|
"accountId",
|
|
@@ -36947,7 +37091,7 @@ var readMeetingProjectDiscovery = /* @__PURE__ */ __name(async (ports, projectNa
|
|
|
36947
37091
|
};
|
|
36948
37092
|
}, "readMeetingProjectDiscovery");
|
|
36949
37093
|
|
|
36950
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37094
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/services/meeting-hit-context.js
|
|
36951
37095
|
import { createHash as createHash13 } from "node:crypto";
|
|
36952
37096
|
var contextCue = /* @__PURE__ */ __name((cue) => ({
|
|
36953
37097
|
ref: cue.reference,
|
|
@@ -37065,7 +37209,7 @@ var readMeetingHitContext = /* @__PURE__ */ __name(async (store, accountId, refe
|
|
|
37065
37209
|
return { ...packet, fingerprint: createHash13("sha256").update(JSON.stringify(packet)).digest("hex") };
|
|
37066
37210
|
}, "readMeetingHitContext");
|
|
37067
37211
|
|
|
37068
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37212
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/services/meeting-passage-format.js
|
|
37069
37213
|
var visible = /* @__PURE__ */ __name((text2) => text2.replace(/[\p{Cc}\p{Cf}]/gu, (value) => value === "\n" || value === " " ? value : `\\u{${value.codePointAt(0)?.toString(16)}}`), "visible");
|
|
37070
37214
|
var markdown = /* @__PURE__ */ __name((text2) => visible(text2).replaceAll("&", "&").replaceAll("<", "<").replaceAll(">", ">").replace(/[\\`*_[\]#|~]/g, "\\$&"), "markdown");
|
|
37071
37215
|
var timestamp = /* @__PURE__ */ __name((ms) => {
|
|
@@ -37102,21 +37246,21 @@ var formatMeetingPassage = /* @__PURE__ */ __name((packet, format = "text", maxB
|
|
|
37102
37246
|
let bytes2 = Buffer.byteLength(lines3.join("\n"), "utf8") + 1;
|
|
37103
37247
|
if (bytes2 > maxBytes)
|
|
37104
37248
|
throw new CliError("validation_error", "compact passage exceeds its output byte budget");
|
|
37105
|
-
for (const
|
|
37106
|
-
const cue = "ref" in
|
|
37107
|
-
ref:
|
|
37108
|
-
start:
|
|
37109
|
-
end:
|
|
37110
|
-
speaker:
|
|
37111
|
-
text:
|
|
37112
|
-
revision:
|
|
37249
|
+
for (const item2 of packet.items) {
|
|
37250
|
+
const cue = "ref" in item2 ? {
|
|
37251
|
+
ref: item2.ref,
|
|
37252
|
+
start: item2.start_ms,
|
|
37253
|
+
end: item2.end_ms,
|
|
37254
|
+
speaker: item2.speaker_name,
|
|
37255
|
+
text: item2.text,
|
|
37256
|
+
revision: item2.revision
|
|
37113
37257
|
} : {
|
|
37114
|
-
ref:
|
|
37115
|
-
start:
|
|
37116
|
-
end:
|
|
37117
|
-
speaker:
|
|
37118
|
-
text:
|
|
37119
|
-
revision:
|
|
37258
|
+
ref: item2.reference,
|
|
37259
|
+
start: item2.startMs,
|
|
37260
|
+
end: item2.endMs,
|
|
37261
|
+
speaker: item2.speakerName,
|
|
37262
|
+
text: item2.text,
|
|
37263
|
+
revision: item2.revision
|
|
37120
37264
|
};
|
|
37121
37265
|
const label = (cue.speaker ?? "Unknown speaker").replace(/[\r\n\t]/g, " ");
|
|
37122
37266
|
const heading = `${timestamp(cue.start)}\u2013${timestamp(cue.end)} | ${format === "markdown" ? markdown(label) : visible(label)} | ${ref(cue.ref)} | ${cue.revision}`;
|
|
@@ -37141,7 +37285,7 @@ var readMeetingPassage = /* @__PURE__ */ __name(async (store, accountId, referen
|
|
|
37141
37285
|
return { packet, content };
|
|
37142
37286
|
}, "readMeetingPassage");
|
|
37143
37287
|
|
|
37144
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37288
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/context/communication-selection.js
|
|
37145
37289
|
var communicationFields = {
|
|
37146
37290
|
sources: pipe(array(strictObject({
|
|
37147
37291
|
id: pipe(string(), regex(/^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$/)),
|
|
@@ -37173,7 +37317,7 @@ var communicationRequest = /* @__PURE__ */ __name((value, preparationAfter) => {
|
|
|
37173
37317
|
return { ...input, after, before: before2 };
|
|
37174
37318
|
}, "communicationRequest");
|
|
37175
37319
|
|
|
37176
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37320
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/services/meeting-preparation-validation.js
|
|
37177
37321
|
var MEETING_PREPARATION_LIMITS = {
|
|
37178
37322
|
meetings: { min: 1, max: 20, default: 5 },
|
|
37179
37323
|
cues: { min: 1, max: 100, default: 10 },
|
|
@@ -37259,7 +37403,7 @@ var preparationRequest = /* @__PURE__ */ __name((accountId, externalId, original
|
|
|
37259
37403
|
return { ...input, history };
|
|
37260
37404
|
}, "preparationRequest");
|
|
37261
37405
|
|
|
37262
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37406
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/services/meeting-communications-preparation.js
|
|
37263
37407
|
var readPreparationCommunications = /* @__PURE__ */ __name(async (plan, signal) => {
|
|
37264
37408
|
const section = {
|
|
37265
37409
|
readUsage: plan.reader.usage(),
|
|
@@ -37305,13 +37449,13 @@ var readPreparationCommunications = /* @__PURE__ */ __name(async (plan, signal)
|
|
|
37305
37449
|
} else if (page.coverage.index !== "ready")
|
|
37306
37450
|
coverage2.issue = "configuration_error";
|
|
37307
37451
|
const refs = /* @__PURE__ */ new Set();
|
|
37308
|
-
for (const
|
|
37309
|
-
if (refs.has(
|
|
37452
|
+
for (const item2 of page.items) {
|
|
37453
|
+
if (refs.has(item2.ref))
|
|
37310
37454
|
continue;
|
|
37311
|
-
refs.add(
|
|
37312
|
-
const text2 = excerpt(
|
|
37313
|
-
const whole4 =
|
|
37314
|
-
const { sender: _, ...rest } =
|
|
37455
|
+
refs.add(item2.ref);
|
|
37456
|
+
const text2 = excerpt(item2.text, plan.input.query, 300, { literal: true });
|
|
37457
|
+
const whole4 = item2.text.replace(/\s+/g, " ").trim();
|
|
37458
|
+
const { sender: _, ...rest } = item2;
|
|
37315
37459
|
items.push({ ...rest, text: text2, selectionId: read2.id, textTruncated: text2 !== whole4 });
|
|
37316
37460
|
}
|
|
37317
37461
|
} catch (error) {
|
|
@@ -37335,9 +37479,9 @@ var readPreparationCommunications = /* @__PURE__ */ __name(async (plan, signal)
|
|
|
37335
37479
|
const candidates = [];
|
|
37336
37480
|
for (let rank = 0; rank < 10; rank++)
|
|
37337
37481
|
for (const lane of lanes) {
|
|
37338
|
-
const
|
|
37339
|
-
if (
|
|
37340
|
-
candidates.push(
|
|
37482
|
+
const item2 = lane[rank];
|
|
37483
|
+
if (item2)
|
|
37484
|
+
candidates.push(item2);
|
|
37341
37485
|
}
|
|
37342
37486
|
section.readUsage = plan.reader.usage();
|
|
37343
37487
|
return { section, candidates };
|
|
@@ -37364,7 +37508,7 @@ var appendPreparationCommunications = /* @__PURE__ */ __name((result, read2) =>
|
|
|
37364
37508
|
result.knowledge.coverage.otherSources = "see-communications";
|
|
37365
37509
|
}, "appendPreparationCommunications");
|
|
37366
37510
|
|
|
37367
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37511
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/services/meeting-communications-selection.js
|
|
37368
37512
|
var captureCommunicationSelections = /* @__PURE__ */ __name((port) => {
|
|
37369
37513
|
if (port === void 0)
|
|
37370
37514
|
return void 0;
|
|
@@ -37431,13 +37575,13 @@ var validatePreparationCommunications = /* @__PURE__ */ __name((section, request
|
|
|
37431
37575
|
fail3();
|
|
37432
37576
|
return;
|
|
37433
37577
|
}
|
|
37434
|
-
const
|
|
37435
|
-
if (!section || section.query !==
|
|
37578
|
+
const expected2 = communicationRequest(request, after);
|
|
37579
|
+
if (!section || section.query !== expected2.query || section.window?.after !== expected2.after || section.window?.before !== expected2.before)
|
|
37436
37580
|
fail3();
|
|
37437
|
-
if (!Array.isArray(section.sources) || section.sources.length !==
|
|
37581
|
+
if (!Array.isArray(section.sources) || section.sources.length !== expected2.sources.length || section.sources.some((s) => !s || typeof s.selectionId !== "string") || new Set(section.sources.map((s) => s.selectionId)).size !== expected2.sources.length)
|
|
37438
37582
|
fail3();
|
|
37439
37583
|
for (const source of section.sources) {
|
|
37440
|
-
if (!
|
|
37584
|
+
if (!expected2.sources.some((s) => s.id === source.selectionId))
|
|
37441
37585
|
fail3();
|
|
37442
37586
|
try {
|
|
37443
37587
|
contextSource(source.source);
|
|
@@ -37447,20 +37591,20 @@ var validatePreparationCommunications = /* @__PURE__ */ __name((section, request
|
|
|
37447
37591
|
}
|
|
37448
37592
|
if (!Array.isArray(section.items) || section.items.length > 20)
|
|
37449
37593
|
fail3();
|
|
37450
|
-
for (const
|
|
37451
|
-
if (!
|
|
37594
|
+
for (const item2 of section.items) {
|
|
37595
|
+
if (!item2)
|
|
37452
37596
|
fail3();
|
|
37453
|
-
const source = section.sources.find((s) => s.selectionId ===
|
|
37454
|
-
if (!source ||
|
|
37597
|
+
const source = section.sources.find((s) => s.selectionId === item2.selectionId)?.source;
|
|
37598
|
+
if (!source || item2.provider !== source.provider || item2.account !== source.account || !Number.isSafeInteger(item2.at) || item2.at < expected2.after || item2.at >= expected2.before || !Number.isSafeInteger(item2.updatedAt) || item2.updatedAt < 0 || item2.updatedAt > 864e13 || typeof item2.text !== "string" || Buffer.byteLength(item2.text) > 1024)
|
|
37455
37599
|
fail3();
|
|
37456
37600
|
try {
|
|
37457
37601
|
if (source.kind === "document") {
|
|
37458
|
-
const id2 = Number(
|
|
37459
|
-
if (!Number.isSafeInteger(id2) || id2 < 1 ||
|
|
37602
|
+
const id2 = Number(item2.ref.slice(9));
|
|
37603
|
+
if (!Number.isSafeInteger(id2) || id2 < 1 || item2.ref !== `document:${id2}`)
|
|
37460
37604
|
fail3();
|
|
37461
37605
|
} else {
|
|
37462
|
-
const locator = parseLocator(
|
|
37463
|
-
if (locator.provider !== source.provider || locator.account !== source.account || formatLocator(locator) !==
|
|
37606
|
+
const locator = parseLocator(item2.ref);
|
|
37607
|
+
if (locator.provider !== source.provider || locator.account !== source.account || formatLocator(locator) !== item2.ref)
|
|
37464
37608
|
fail3();
|
|
37465
37609
|
}
|
|
37466
37610
|
} catch {
|
|
@@ -37469,7 +37613,7 @@ var validatePreparationCommunications = /* @__PURE__ */ __name((section, request
|
|
|
37469
37613
|
}
|
|
37470
37614
|
}, "validatePreparationCommunications");
|
|
37471
37615
|
|
|
37472
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37616
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/services/meeting-knowledge-preparation.js
|
|
37473
37617
|
var invalid5 = /* @__PURE__ */ __name(() => {
|
|
37474
37618
|
throw new CliError("invalid_response", "Preparation knowledge returned an invalid selection");
|
|
37475
37619
|
}, "invalid");
|
|
@@ -37494,7 +37638,7 @@ var appendKnowledgePreparation = /* @__PURE__ */ __name(async (store, result, in
|
|
|
37494
37638
|
const page = await store.preparationKnowledge({
|
|
37495
37639
|
accountId: result.accountId,
|
|
37496
37640
|
seriesId: result.series.id,
|
|
37497
|
-
anchorIds: result.items.map((
|
|
37641
|
+
anchorIds: result.items.map((item2) => item2.meeting.id),
|
|
37498
37642
|
after: input.historyAfter,
|
|
37499
37643
|
before: input.after,
|
|
37500
37644
|
limit,
|
|
@@ -37511,7 +37655,7 @@ var appendKnowledgePreparation = /* @__PURE__ */ __name(async (store, result, in
|
|
|
37511
37655
|
if (readBytes > input.maxReadBytes)
|
|
37512
37656
|
return invalid5();
|
|
37513
37657
|
const knowledge = {
|
|
37514
|
-
anchors: result.items.map((
|
|
37658
|
+
anchors: result.items.map((item2) => item2.reference),
|
|
37515
37659
|
items: [],
|
|
37516
37660
|
selection: "accepted-global-person/project-facts",
|
|
37517
37661
|
coverage: {
|
|
@@ -37538,7 +37682,7 @@ var appendKnowledgePreparation = /* @__PURE__ */ __name(async (store, result, in
|
|
|
37538
37682
|
}
|
|
37539
37683
|
}, "appendKnowledgePreparation");
|
|
37540
37684
|
|
|
37541
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37685
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/services/meeting-notes-preparation.js
|
|
37542
37686
|
var invalid6 = /* @__PURE__ */ __name(() => {
|
|
37543
37687
|
throw new CliError("invalid_response", "Preparation notes returned an invalid selection");
|
|
37544
37688
|
}, "invalid");
|
|
@@ -37563,7 +37707,7 @@ var appendNotesPreparation = /* @__PURE__ */ __name(async (store, result, input)
|
|
|
37563
37707
|
const page = await store.preparationNotes({
|
|
37564
37708
|
accountId: result.accountId,
|
|
37565
37709
|
seriesId: result.series.id,
|
|
37566
|
-
anchorIds: result.items.map((
|
|
37710
|
+
anchorIds: result.items.map((item2) => item2.meeting.id),
|
|
37567
37711
|
after: input.historyAfter,
|
|
37568
37712
|
before: input.after,
|
|
37569
37713
|
limit,
|
|
@@ -37576,7 +37720,7 @@ var appendNotesPreparation = /* @__PURE__ */ __name(async (store, result, input)
|
|
|
37576
37720
|
const selection = page.selection === void 0 ? "owner-written-global-person/project-notes" : page.selection;
|
|
37577
37721
|
if (!["owner-written-global-person/project-notes", "owner-written-meeting/person/project-notes"].includes(selection))
|
|
37578
37722
|
return invalid6();
|
|
37579
|
-
const anchors = new Set(result.items.map((
|
|
37723
|
+
const anchors = new Set(result.items.map((item2) => item2.reference));
|
|
37580
37724
|
const items = page.items.map((note2) => noteOf(note2, input.after, anchors));
|
|
37581
37725
|
if (items.some((note2) => note2.meeting) && selection !== "owner-written-meeting/person/project-notes")
|
|
37582
37726
|
return invalid6();
|
|
@@ -37585,7 +37729,7 @@ var appendNotesPreparation = /* @__PURE__ */ __name(async (store, result, input)
|
|
|
37585
37729
|
if (items.reduce((total, note2) => total + Buffer.byteLength((note2.title ?? "") + note2.text, "utf8"), 0) > input.maxReadBytes)
|
|
37586
37730
|
return invalid6();
|
|
37587
37731
|
const notes = {
|
|
37588
|
-
anchors: result.items.map((
|
|
37732
|
+
anchors: result.items.map((item2) => item2.reference),
|
|
37589
37733
|
items: [],
|
|
37590
37734
|
selection,
|
|
37591
37735
|
coverage: {
|
|
@@ -37612,7 +37756,7 @@ var appendNotesPreparation = /* @__PURE__ */ __name(async (store, result, input)
|
|
|
37612
37756
|
}
|
|
37613
37757
|
}, "appendNotesPreparation");
|
|
37614
37758
|
|
|
37615
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37759
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/services/meeting-project-preparation.js
|
|
37616
37760
|
var PAGE_LIMIT = 4;
|
|
37617
37761
|
var size2 = /* @__PURE__ */ __name((value) => Buffer.byteLength(JSON.stringify(value), "utf8"), "size");
|
|
37618
37762
|
var appendProjectPreparation = /* @__PURE__ */ __name(async (ports, result, input) => {
|
|
@@ -37662,13 +37806,13 @@ var appendProjectPreparation = /* @__PURE__ */ __name(async (ports, result, inpu
|
|
|
37662
37806
|
}
|
|
37663
37807
|
}, "appendProjectPreparation");
|
|
37664
37808
|
|
|
37665
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37809
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/services/meeting-related-preparation.js
|
|
37666
37810
|
var appendRelatedPreparation = /* @__PURE__ */ __name(async (store, result, input) => {
|
|
37667
37811
|
if (!result.series || !result.items.length || result.coverage.outputLimited)
|
|
37668
37812
|
return;
|
|
37669
37813
|
const size4 = /* @__PURE__ */ __name(() => Buffer.byteLength(JSON.stringify(result), "utf8"), "size");
|
|
37670
37814
|
const related = result.related;
|
|
37671
|
-
related.anchors = result.items.map((
|
|
37815
|
+
related.anchors = result.items.map((item2) => item2.reference);
|
|
37672
37816
|
if (size4() > input.bytes) {
|
|
37673
37817
|
related.anchors = [];
|
|
37674
37818
|
related.outputLimited = result.coverage.outputLimited = true;
|
|
@@ -37677,7 +37821,7 @@ var appendRelatedPreparation = /* @__PURE__ */ __name(async (store, result, inpu
|
|
|
37677
37821
|
const page = await store.relatedHistory({
|
|
37678
37822
|
accountId: result.accountId,
|
|
37679
37823
|
seriesId: result.series.id,
|
|
37680
|
-
anchorIds: result.items.map((
|
|
37824
|
+
anchorIds: result.items.map((item2) => item2.meeting.id),
|
|
37681
37825
|
after: input.historyAfter,
|
|
37682
37826
|
before: input.after,
|
|
37683
37827
|
limit: input.meetings,
|
|
@@ -37689,7 +37833,7 @@ var appendRelatedPreparation = /* @__PURE__ */ __name(async (store, result, inpu
|
|
|
37689
37833
|
throw new CliError("invalid_response", "Related history exceeded its bound");
|
|
37690
37834
|
result.coverage.unqueried = ["person-nonmeeting-context", "project-nonmeeting-context", "project-alias-candidates"];
|
|
37691
37835
|
related.hasMore = page.hasMore;
|
|
37692
|
-
const selected = new Set(result.items.map((
|
|
37836
|
+
const selected = new Set(result.items.map((item2) => item2.meeting.id));
|
|
37693
37837
|
for (const entry of page.items) {
|
|
37694
37838
|
const meeting = entry.meeting;
|
|
37695
37839
|
if (!Number.isSafeInteger(meeting.id) || meeting.id < 1 || selected.has(meeting.id) || meeting.startedAt === null || meeting.startedAt < input.historyAfter || meeting.startedAt >= input.after || typeof entry.sharedPerson !== "boolean" || typeof entry.sharedProject !== "boolean" || !(entry.sharedPerson || entry.sharedProject))
|
|
@@ -37734,7 +37878,7 @@ var appendRelatedPreparation = /* @__PURE__ */ __name(async (store, result, inpu
|
|
|
37734
37878
|
}
|
|
37735
37879
|
}, "appendRelatedPreparation");
|
|
37736
37880
|
|
|
37737
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37881
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/services/meeting-preparation.js
|
|
37738
37882
|
var size3 = /* @__PURE__ */ __name((value) => Buffer.byteLength(JSON.stringify(value), "utf8"), "size");
|
|
37739
37883
|
var createMeetingPreparationService = /* @__PURE__ */ __name((scope, accountId, ports) => {
|
|
37740
37884
|
const fixed = snapshotMeetingScope(scope);
|
|
@@ -37872,7 +38016,7 @@ var createMeetingPreparationService = /* @__PURE__ */ __name((scope, accountId,
|
|
|
37872
38016
|
};
|
|
37873
38017
|
}, "createMeetingPreparationService");
|
|
37874
38018
|
|
|
37875
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38019
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/services/package-upgrade.js
|
|
37876
38020
|
var upgradePackage = /* @__PURE__ */ __name(async ({ current, command, packageName, check: check2 }, ports) => {
|
|
37877
38021
|
const installer = ports.installer();
|
|
37878
38022
|
const argv = updateCommand(installer, packageName);
|
|
@@ -37937,7 +38081,7 @@ var dayAfter = /* @__PURE__ */ __name((published) => {
|
|
|
37937
38081
|
return Number.isNaN(time) ? null : new Date(time + 24 * 60 * 60 * 1e3).toISOString();
|
|
37938
38082
|
}, "dayAfter");
|
|
37939
38083
|
|
|
37940
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38084
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/services/index.js
|
|
37941
38085
|
var servicesFor = /* @__PURE__ */ __name((deps) => {
|
|
37942
38086
|
const pictures = picturesService(deps);
|
|
37943
38087
|
const base = {
|
|
@@ -37973,7 +38117,7 @@ var servicesFor = /* @__PURE__ */ __name((deps) => {
|
|
|
37973
38117
|
return deps.messenger.services ? { ...base, ...deps.messenger.services(base, deps) } : base;
|
|
37974
38118
|
}, "servicesFor");
|
|
37975
38119
|
|
|
37976
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38120
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/background/relay.js
|
|
37977
38121
|
import { createHash as createHash14 } from "node:crypto";
|
|
37978
38122
|
import { chmodSync, lstatSync, mkdirSync as mkdirSync3, rmSync } from "node:fs";
|
|
37979
38123
|
import { createConnection, createServer } from "node:net";
|
|
@@ -38121,7 +38265,7 @@ var serve = /* @__PURE__ */ __name(async (socket, request, stdin, signal, run) =
|
|
|
38121
38265
|
}
|
|
38122
38266
|
}, "serve");
|
|
38123
38267
|
|
|
38124
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38268
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-relay.js
|
|
38125
38269
|
var lentConnection = /* @__PURE__ */ __name((connection, watchers) => throughWrapper(connection, {
|
|
38126
38270
|
close: /* @__PURE__ */ __name(async () => {
|
|
38127
38271
|
}, "close"),
|
|
@@ -38242,6 +38386,7 @@ export {
|
|
|
38242
38386
|
fetchInto,
|
|
38243
38387
|
REGISTRIES,
|
|
38244
38388
|
registriesCover,
|
|
38389
|
+
mailTurn,
|
|
38245
38390
|
chatCoverage,
|
|
38246
38391
|
threadIdOf,
|
|
38247
38392
|
AUDIT_PAGE,
|
|
@@ -38250,14 +38395,19 @@ export {
|
|
|
38250
38395
|
EVENTS_DAYS,
|
|
38251
38396
|
TRACKED_DAYS,
|
|
38252
38397
|
CHAT_KINDS,
|
|
38398
|
+
taskAccount,
|
|
38399
|
+
RULES_IN,
|
|
38253
38400
|
ARRIVAL_WINDOW,
|
|
38254
38401
|
applyTaskRulesOnArrival,
|
|
38402
|
+
FIRST_PASS_DAYS,
|
|
38255
38403
|
applyTaskRulesSinceLastPass,
|
|
38256
38404
|
openRequestTask,
|
|
38257
38405
|
applyTaskRulesToChats,
|
|
38406
|
+
AGENDA_DEFAULTS,
|
|
38258
38407
|
AGENDA_QUERY,
|
|
38259
38408
|
agendaItem,
|
|
38260
38409
|
excerpt,
|
|
38410
|
+
ingest,
|
|
38261
38411
|
BUILT_IN_PURPOSES,
|
|
38262
38412
|
purposesOf,
|
|
38263
38413
|
purposeList,
|
|
@@ -38323,6 +38473,10 @@ export {
|
|
|
38323
38473
|
searchNotesOf,
|
|
38324
38474
|
calendarAccounts,
|
|
38325
38475
|
searchAll,
|
|
38476
|
+
SERVER_SEARCH_KEY,
|
|
38477
|
+
SERVER_BOUNDS,
|
|
38478
|
+
DEFAULT_BACKEND,
|
|
38479
|
+
sourceKey,
|
|
38326
38480
|
DELETE_AT_ONCE,
|
|
38327
38481
|
describe,
|
|
38328
38482
|
CHECK_READS,
|
|
@@ -38366,6 +38520,7 @@ export {
|
|
|
38366
38520
|
upgradePackage,
|
|
38367
38521
|
approveAsTask,
|
|
38368
38522
|
parseProposalIds,
|
|
38523
|
+
FACT_SUMMARIES,
|
|
38369
38524
|
proposalRegistry,
|
|
38370
38525
|
servicesFor,
|
|
38371
38526
|
lackedNeed,
|