@wirecat/cli-memo 0.131.73 → 0.131.75
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-L5QBYI3V.js → all-profiles-LUGN5BHP.js} +9 -9
- package/dist/bundle/{anthropic-XXKHNCQS.js → anthropic-W7JXDZPL.js} +5 -5
- package/dist/bundle/{app-server-FDMP3IBP.js → app-server-TRRARE66.js} +50 -49
- package/dist/bundle/auto-AQAKW55Z.js +89 -0
- package/dist/bundle/{bun-VLN4HBWB.js → bun-S3JZIN4S.js} +2 -2
- package/dist/bundle/{bun-sqlite-KJCYXNMS.js → bun-sqlite-X3WQN3CV.js} +5 -5
- package/dist/bundle/{chunk-ZTONSM5X.js → chunk-2EZFUIL4.js} +2 -2
- package/dist/bundle/{chunk-HBP7AQXX.js → chunk-2QND7VJS.js} +12 -12
- package/dist/bundle/{chunk-2BH2RNFR.js → chunk-346PWQJF.js} +8 -8
- package/dist/bundle/{chunk-B7ATMWVO.js → chunk-4KDORB7C.js} +12 -37
- package/dist/bundle/{chunk-V3JOIUVB.js → chunk-4O2MYFYC.js} +4 -4
- package/dist/bundle/{chunk-I6MGDSYH.js → chunk-4QGUBKN5.js} +6 -6
- package/dist/bundle/{chunk-YDGZJK6U.js → chunk-4XI7S3PO.js} +24 -24
- package/dist/bundle/{chunk-XGXEWKR7.js → chunk-5CTOWPOL.js} +12 -12
- package/dist/bundle/{chunk-6OPZTBRR.js → chunk-5RLCKP5E.js} +59 -35
- package/dist/bundle/{chunk-VQUSPMYO.js → chunk-6AOPUQTC.js} +1 -1
- package/dist/bundle/chunk-6FTZ53TT.js +18 -0
- package/dist/bundle/{chunk-BTVND2RV.js → chunk-6I4DOBSD.js} +13 -13
- package/dist/bundle/{chunk-WJNLBQSV.js → chunk-6VMIMAZ2.js} +544 -586
- package/dist/bundle/{chunk-BBLT77AO.js → chunk-7Y4HUYI3.js} +26 -14
- package/dist/bundle/{chunk-JLC2RE4Y.js → chunk-AOHT5FNX.js} +82 -82
- package/dist/bundle/{chunk-VPR47AG4.js → chunk-BDVM5652.js} +1 -1
- package/dist/bundle/{chunk-MM3OMWST.js → chunk-C6MWOBEL.js} +24 -22
- package/dist/bundle/{chunk-LHZ4QBWB.js → chunk-E2PSOSTN.js} +2 -2
- package/dist/bundle/{chunk-J7ESMDVV.js → chunk-E74VWHZ2.js} +1 -1
- package/dist/bundle/{chunk-MLN4DPXN.js → chunk-EWRHTZD3.js} +17 -17
- package/dist/bundle/{chunk-FMSXN2N6.js → chunk-FGMFJUHR.js} +1058 -774
- package/dist/bundle/{chunk-A7QXBRUH.js → chunk-G45BLLDR.js} +4 -4
- package/dist/bundle/{chunk-KK3ZHBMI.js → chunk-GFVSZY4J.js} +26 -2
- package/dist/bundle/{chunk-IUEYR3TK.js → chunk-IQIM4UC7.js} +10 -10
- package/dist/bundle/{chunk-JABLJBXL.js → chunk-JINEHQ2T.js} +4927 -4920
- package/dist/bundle/chunk-KA5MDFLU.js +138 -0
- package/dist/bundle/{chunk-IKH4RCJO.js → chunk-KDBAY5JZ.js} +1 -1
- package/dist/bundle/{chunk-LJCT7YG6.js → chunk-KEBL3PY4.js} +4 -4
- package/dist/bundle/{chunk-C3UOKLIT.js → chunk-KUFOM3SB.js} +2 -2
- package/dist/bundle/{chunk-ZIGVDRSI.js → chunk-KYJBGCTC.js} +2 -2
- package/dist/bundle/{chunk-R3PK4Y7C.js → chunk-LPGE6ACC.js} +2 -2
- package/dist/bundle/{chunk-6ZRBQTKZ.js → chunk-LX3OSTBD.js} +4 -4
- package/dist/bundle/{chunk-NMOWIFH3.js → chunk-MPZBV5RL.js} +8 -8
- package/dist/bundle/{chunk-H74CWBSY.js → chunk-NR633L2N.js} +4 -4
- package/dist/bundle/{chunk-DSU6UR2X.js → chunk-NT5IOEEK.js} +1 -1
- package/dist/bundle/chunk-OWUEEVF6.js +177 -0
- package/dist/bundle/{chunk-L62FWN3Y.js → chunk-OYKQX4H3.js} +1 -1
- package/dist/bundle/{chunk-W6JPIP5C.js → chunk-QKWM4VK4.js} +6 -6
- package/dist/bundle/chunk-QYJJBE56.js +109 -0
- package/dist/bundle/{chunk-JPXDDRBD.js → chunk-RZS24U4N.js} +11 -11
- package/dist/bundle/{chunk-EI2P5E4C.js → chunk-SCYHDYLI.js} +3 -1
- package/dist/bundle/{chunk-OGUXOAOH.js → chunk-SIOPF2UG.js} +6 -6
- package/dist/bundle/{chunk-RB266FS6.js → chunk-SIQDO5DN.js} +4 -4
- package/dist/bundle/{chunk-O5KXCQE4.js → chunk-SJD4KTK2.js} +4 -4
- package/dist/bundle/{chunk-PAHBDQ5A.js → chunk-UIAGASGP.js} +6 -6
- package/dist/bundle/{chunk-ZI5Y2EUA.js → chunk-UU3OAPGO.js} +7 -7
- package/dist/bundle/{chunk-ON7ZROFP.js → chunk-V7BDQIZS.js} +2 -2
- package/dist/bundle/{chunk-EH7ACKFW.js → chunk-VB4OLJHK.js} +3 -3
- package/dist/bundle/{chunk-SILEPITK.js → chunk-VFKCZJFT.js} +25 -35
- package/dist/bundle/{chunk-HE2F4JII.js → chunk-VYCLOFPC.js} +24 -9
- package/dist/bundle/{chunk-UUBV5ATQ.js → chunk-W46O6RJ5.js} +20 -20
- package/dist/bundle/{chunk-QHLEMEF3.js → chunk-W64FO6DD.js} +53 -48
- package/dist/bundle/{chunk-LG5SQGNM.js → chunk-WKLF7CAM.js} +47 -45
- package/dist/bundle/{chunk-X35Q5CHE.js → chunk-WZHCQ4VZ.js} +8 -8
- package/dist/bundle/{chunk-PF6LXPK5.js → chunk-XMHWGHID.js} +4280 -4278
- package/dist/bundle/chunk-XPCTY6XV.js +116 -0
- package/dist/bundle/{chunk-E75LK7GD.js → chunk-XPSXVUZG.js} +3 -3
- package/dist/bundle/{chunk-XM6ZAPFW.js → chunk-XQ3RZU3J.js} +1 -1
- package/dist/bundle/{chunk-LOYI3STE.js → chunk-XQHOMQNZ.js} +4 -4
- package/dist/bundle/{chunk-K54MCZWM.js → chunk-YB4KGUXY.js} +3 -3
- package/dist/bundle/{chunk-US2HTCJA.js → chunk-YDTGYYOR.js} +4 -4
- package/dist/bundle/{chunk-EQLOQOIB.js → chunk-YLYZNPAZ.js} +2 -2
- package/dist/bundle/{chunk-BOZEBD3I.js → chunk-ZISVFVQU.js} +1445 -832
- package/dist/bundle/{chunk-IDCYBSML.js → chunk-ZL63GL3Y.js} +3 -3
- package/dist/bundle/{chunk-2C323QNQ.js → chunk-ZP2XI5DR.js} +9 -9
- package/dist/bundle/{chunk-3CANRF2G.js → chunk-ZTZLAGZA.js} +3 -3
- package/dist/bundle/{chunk-FSXQLNU4.js → chunk-ZXW5FPH2.js} +1 -1
- package/dist/bundle/command-contract-QQG343ZQ.js +32 -0
- package/dist/bundle/command-server-entry-XVUPTSSH.js +145 -0
- package/dist/bundle/{decode-OS6Y6ICA.js → decode-METZOSMG.js} +5 -5
- package/dist/bundle/{dispatch-VJSUBAUM.js → dispatch-PHB2Y6ZL.js} +8 -8
- package/dist/bundle/{echarts-JKGDUDYL.js → echarts-EBSP4VCK.js} +2 -2
- package/dist/bundle/{embed-UB4LH6MF.js → embed-GVVU7N7W.js} +6 -6
- package/dist/bundle/{embedder-TUQBG22Y.js → embedder-6BZOYAXV.js} +9 -9
- package/dist/bundle/entry-TBOYUMWB.js +21 -0
- package/dist/bundle/failure-EKMEAYZH.js +69 -0
- package/dist/bundle/{failure-GLF7OMMM.js → failure-OBT7CUVW.js} +2 -2
- package/dist/bundle/{first-run-VNJHZYGS.js → first-run-HQ4GA4EF.js} +11 -11
- package/dist/bundle/first-screen-6T65PQ37.js +30 -0
- package/dist/bundle/{instructions-Q6IZQUU7.js → instructions-VDKK3Y5Z.js} +1 -1
- package/dist/bundle/{mcp-H2WYFBNW.js → mcp-5275YLID.js} +2 -2
- package/dist/bundle/mcp-DEY765VA.js +90 -0
- package/dist/bundle/memo.js +16 -16
- package/dist/bundle/{node-ZSSIVKVC.js → node-HWGZYNUX.js} +2 -2
- package/dist/bundle/{node-sqlite-AUNJSQQL.js → node-sqlite-PSYENWGS.js} +6 -6
- package/dist/bundle/{oauth-2MTJFCMI.js → oauth-TQGMUJK2.js} +7 -7
- package/dist/bundle/{open-U7RC27MJ.js → open-KDDJDKCE.js} +5 -5
- package/dist/bundle/openai-QPGCUM4T.js +24 -0
- package/dist/bundle/{process-UEQX5STY.js → process-APNTXJJE.js} +1 -1
- package/dist/bundle/{program-G3F26HW7.js → program-OGDARQTX.js} +3060 -2547
- package/dist/bundle/{prompt-F23FC5PJ.js → prompt-BMBZCLGF.js} +5 -5
- package/dist/bundle/{recognize-ZVEGVD56.js → recognize-3SEY2MAR.js} +4 -4
- package/dist/bundle/{remote-CZXQS7PS.js → remote-ODH54UXO.js} +7 -7
- package/dist/bundle/{rerank-IRFXSVVO.js → rerank-JQHBNTUK.js} +7 -7
- package/dist/bundle/{serve-6CIMU5HP.js → serve-C22ZONSM.js} +9 -9
- package/dist/bundle/server-3UX245DY.js +62 -0
- package/dist/bundle/server-6G5XF3V5.js +48 -0
- package/dist/bundle/{server-H24MAUT2.js → server-ADPO4V4B.js} +70 -66
- package/dist/bundle/{state-TRWZWXB5.js → state-M3VGXSV4.js} +6 -6
- package/dist/bundle/{store-E4QUOOLX.js → store-GSZAXU3A.js} +13 -13
- package/dist/bundle/store-maintenance-command-QMTALGSQ.js +47 -0
- package/dist/bundle/update-HDJ23IV5.js +72 -0
- package/dist/context/context.d.ts.map +1 -1
- package/dist/context/context.js +4 -2
- package/dist/context/context.js.map +1 -1
- package/dist/contract-overrides/search.d.ts.map +1 -1
- package/dist/contract-overrides/search.js +6 -0
- package/dist/contract-overrides/search.js.map +1 -1
- package/dist/digest/backfill.d.ts +1 -1
- package/dist/digest/backfill.d.ts.map +1 -1
- package/dist/digest/backfill.js +71 -42
- package/dist/digest/backfill.js.map +1 -1
- package/dist/digest/brief.d.ts +14 -3
- package/dist/digest/brief.d.ts.map +1 -1
- package/dist/digest/brief.js +84 -34
- package/dist/digest/brief.js.map +1 -1
- package/dist/digest/command.d.ts +3 -0
- package/dist/digest/command.d.ts.map +1 -1
- package/dist/digest/command.js +23 -0
- package/dist/digest/command.js.map +1 -1
- package/dist/digest/digest-commands.d.ts +6 -0
- package/dist/digest/digest-commands.d.ts.map +1 -0
- package/dist/digest/digest-commands.js +241 -0
- package/dist/digest/digest-commands.js.map +1 -0
- package/dist/digest/digest.d.ts +5 -2
- package/dist/digest/digest.d.ts.map +1 -1
- package/dist/digest/digest.js +29 -8
- package/dist/digest/digest.js.map +1 -1
- package/dist/digest/digests.d.ts +72 -0
- package/dist/digest/digests.d.ts.map +1 -0
- package/dist/digest/digests.js +122 -0
- package/dist/digest/digests.js.map +1 -0
- package/dist/digest/tasks.d.ts +7 -4
- package/dist/digest/tasks.d.ts.map +1 -1
- package/dist/digest/tasks.js +13 -5
- package/dist/digest/tasks.js.map +1 -1
- package/dist/examples.d.ts.map +1 -1
- package/dist/examples.js +17 -1
- package/dist/examples.js.map +1 -1
- package/dist/people/command.d.ts +0 -1
- package/dist/people/command.d.ts.map +1 -1
- package/dist/people/command.js +114 -12
- package/dist/people/command.js.map +1 -1
- package/dist/program.d.ts +4 -1
- package/dist/program.d.ts.map +1 -1
- package/dist/program.js +9 -5
- package/dist/program.js.map +1 -1
- package/dist/reasons.d.ts.map +1 -1
- package/dist/reasons.js +24 -0
- package/dist/reasons.js.map +1 -1
- package/dist/rows.d.ts.map +1 -1
- package/dist/rows.js +13 -1
- package/dist/rows.js.map +1 -1
- package/dist/schedule/command.d.ts +8 -0
- package/dist/schedule/command.d.ts.map +1 -1
- package/dist/schedule/command.js +4 -2
- package/dist/schedule/command.js.map +1 -1
- package/dist/search/answers.d.ts +6 -1
- package/dist/search/answers.d.ts.map +1 -1
- package/dist/search/answers.js +17 -1
- package/dist/search/answers.js.map +1 -1
- package/dist/search/command.d.ts.map +1 -1
- package/dist/search/command.js +13 -2
- package/dist/search/command.js.map +1 -1
- package/dist/search/lane-gates.d.ts +4 -3
- package/dist/search/lane-gates.d.ts.map +1 -1
- package/dist/search/lane-gates.js +13 -7
- package/dist/search/lane-gates.js.map +1 -1
- package/dist/search/people.d.ts +2 -0
- package/dist/search/people.d.ts.map +1 -1
- package/dist/search/people.js +11 -4
- package/dist/search/people.js.map +1 -1
- package/dist/search/search.d.ts +5 -1
- package/dist/search/search.d.ts.map +1 -1
- package/dist/search/search.js +5 -1
- package/dist/search/search.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +3 -3
- package/dist/bundle/auto-YQAECIZA.js +0 -85
- package/dist/bundle/chunk-KQTR6YA4.js +0 -262
- package/dist/bundle/command-contract-6HJ322BP.js +0 -32
- package/dist/bundle/entry-N4NCIQYH.js +0 -18
- package/dist/bundle/failure-BJEFFYH3.js +0 -65
- package/dist/bundle/first-screen-4XGF2NZ3.js +0 -30
- package/dist/bundle/mcp-REIASUJR.js +0 -90
- package/dist/bundle/openai-2SJCG6XM.js +0 -23
- package/dist/bundle/server-27KXLL4E.js +0 -61
- package/dist/bundle/server-TWMUWMFM.js +0 -48
- package/dist/bundle/store-maintenance-command-GLHRB2VZ.js +0 -47
- package/dist/bundle/update-QQEM73O5.js +0 -68
- /package/dist/bundle/{chunk-SYWHHQMC.js → chunk-G5GW3FFJ.js} +0 -0
- /package/dist/bundle/{chunk-ZOWQ5B33.js → chunk-IXSUVHW6.js} +0 -0
|
@@ -8,67 +8,14 @@ import {
|
|
|
8
8
|
sameOrdinaryFile,
|
|
9
9
|
syncDirectory,
|
|
10
10
|
writeFileAtomic
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-6I4DOBSD.js";
|
|
12
12
|
import {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
CustomTextModelShape,
|
|
16
|
-
DEFAULT_IMAGE_MODEL,
|
|
17
|
-
DEFAULT_RERANK_MODEL,
|
|
18
|
-
DEFAULT_TEXT_MODEL,
|
|
19
|
-
InvalidArgumentError,
|
|
20
|
-
LEVELS,
|
|
21
|
-
LINK,
|
|
22
|
-
Option,
|
|
23
|
-
PREVIOUS_DEFAULT_TEXT_MODEL,
|
|
24
|
-
WEIGHTS,
|
|
25
|
-
agenda,
|
|
26
|
-
annotate,
|
|
27
|
-
annotateOption,
|
|
28
|
-
attachment,
|
|
29
|
-
chosenTextModel,
|
|
30
|
-
codeOf,
|
|
31
|
-
conversation,
|
|
32
|
-
endpoint,
|
|
33
|
-
environmentOf,
|
|
34
|
-
guardedWrite,
|
|
35
|
-
historyWindow,
|
|
36
|
-
imageModel,
|
|
37
|
-
imageModelsDirectory,
|
|
38
|
-
isImageModelInstalled,
|
|
39
|
-
itemOf,
|
|
40
|
-
keyForWrite,
|
|
41
|
-
levelFor,
|
|
42
|
-
listOf,
|
|
43
|
-
meaningFloor,
|
|
44
|
-
nextStep,
|
|
45
|
-
oddName,
|
|
46
|
-
parseDuration,
|
|
47
|
-
placedImage,
|
|
48
|
-
readTextModelsSection,
|
|
49
|
-
renderAnswer,
|
|
50
|
-
rerankModel,
|
|
51
|
-
sentIds,
|
|
52
|
-
sharedCommand,
|
|
53
|
-
skipFlagFor,
|
|
54
|
-
snakeKeys,
|
|
55
|
-
tagging,
|
|
56
|
-
task,
|
|
57
|
-
textModel,
|
|
58
|
-
textModels,
|
|
59
|
-
vectorModelKey,
|
|
60
|
-
writeTextModelsSection
|
|
61
|
-
} from "./chunk-PF6LXPK5.js";
|
|
13
|
+
remoteKey
|
|
14
|
+
} from "./chunk-ZTZLAGZA.js";
|
|
62
15
|
import {
|
|
63
16
|
isNewer,
|
|
64
17
|
updateCommand
|
|
65
|
-
} from "./chunk-
|
|
66
|
-
import {
|
|
67
|
-
MESSENGER_CHANGE_REFUSAL,
|
|
68
|
-
envName,
|
|
69
|
-
readOnlyLockOf,
|
|
70
|
-
readOnlyRefusal
|
|
71
|
-
} from "./chunk-C3UOKLIT.js";
|
|
18
|
+
} from "./chunk-KEBL3PY4.js";
|
|
72
19
|
import {
|
|
73
20
|
AGENDA_COLUMNS,
|
|
74
21
|
BUSINESS_FIND_MAX,
|
|
@@ -106,6 +53,7 @@ import {
|
|
|
106
53
|
calendarKey,
|
|
107
54
|
calendarMoment,
|
|
108
55
|
certaintyOf,
|
|
56
|
+
chatReferenceOf,
|
|
109
57
|
chunkHash,
|
|
110
58
|
chunkTextOf,
|
|
111
59
|
contextEvidenceFingerprint,
|
|
@@ -120,6 +68,7 @@ import {
|
|
|
120
68
|
delayStats,
|
|
121
69
|
dueDayOf,
|
|
122
70
|
e164Of,
|
|
71
|
+
ensureAccount,
|
|
123
72
|
envelopeErrors,
|
|
124
73
|
exhausted,
|
|
125
74
|
fetchedKey,
|
|
@@ -130,6 +79,7 @@ import {
|
|
|
130
79
|
historyStartKey,
|
|
131
80
|
hitFiles,
|
|
132
81
|
inboxKey,
|
|
82
|
+
isId,
|
|
133
83
|
isOwnerOnlyKind,
|
|
134
84
|
isQueryLimit,
|
|
135
85
|
isStemmed,
|
|
@@ -143,6 +93,8 @@ import {
|
|
|
143
93
|
openStoreContext,
|
|
144
94
|
outOfTime,
|
|
145
95
|
pdfPreviewLimits,
|
|
96
|
+
pickChat,
|
|
97
|
+
pickPerson,
|
|
146
98
|
plainQuery,
|
|
147
99
|
pointerOf,
|
|
148
100
|
previewAnnotationSnapshot,
|
|
@@ -162,7 +114,88 @@ import {
|
|
|
162
114
|
validateFields,
|
|
163
115
|
waitingPointer,
|
|
164
116
|
withoutField
|
|
165
|
-
} from "./chunk-
|
|
117
|
+
} from "./chunk-ZISVFVQU.js";
|
|
118
|
+
import {
|
|
119
|
+
DEFAULT_STEMMERS,
|
|
120
|
+
createStemmer,
|
|
121
|
+
fold,
|
|
122
|
+
normalize
|
|
123
|
+
} from "./chunk-MPZBV5RL.js";
|
|
124
|
+
import {
|
|
125
|
+
MAX_MODEL_IMAGE_BYTES,
|
|
126
|
+
checkedOptions,
|
|
127
|
+
messagesFor,
|
|
128
|
+
range,
|
|
129
|
+
systemFor,
|
|
130
|
+
validateImages
|
|
131
|
+
} from "./chunk-SJD4KTK2.js";
|
|
132
|
+
import {
|
|
133
|
+
Unzip,
|
|
134
|
+
UnzipInflate,
|
|
135
|
+
defaultThreads,
|
|
136
|
+
installNativeRuntime,
|
|
137
|
+
isTextModelInstalled,
|
|
138
|
+
openEmbedder,
|
|
139
|
+
placedText,
|
|
140
|
+
runEmbedders,
|
|
141
|
+
textModelsDirectory
|
|
142
|
+
} from "./chunk-SIOPF2UG.js";
|
|
143
|
+
import {
|
|
144
|
+
CEILING_KEY,
|
|
145
|
+
Command,
|
|
146
|
+
CustomTextModelShape,
|
|
147
|
+
DEFAULT_IMAGE_MODEL,
|
|
148
|
+
DEFAULT_RERANK_MODEL,
|
|
149
|
+
DEFAULT_TEXT_MODEL,
|
|
150
|
+
InvalidArgumentError,
|
|
151
|
+
LEVELS,
|
|
152
|
+
LINK,
|
|
153
|
+
Option,
|
|
154
|
+
PREVIOUS_DEFAULT_TEXT_MODEL,
|
|
155
|
+
WEIGHTS,
|
|
156
|
+
agenda,
|
|
157
|
+
annotate,
|
|
158
|
+
annotateOption,
|
|
159
|
+
attachment,
|
|
160
|
+
chosenTextModel,
|
|
161
|
+
codeOf,
|
|
162
|
+
conversation,
|
|
163
|
+
endpoint,
|
|
164
|
+
environmentOf,
|
|
165
|
+
guardedWrite,
|
|
166
|
+
historyWindow,
|
|
167
|
+
imageModel,
|
|
168
|
+
imageModelsDirectory,
|
|
169
|
+
isImageModelInstalled,
|
|
170
|
+
itemOf,
|
|
171
|
+
keyForWrite,
|
|
172
|
+
levelFor,
|
|
173
|
+
listOf,
|
|
174
|
+
meaningFloor,
|
|
175
|
+
nextStep,
|
|
176
|
+
oddName,
|
|
177
|
+
parseDuration,
|
|
178
|
+
placedImage,
|
|
179
|
+
readTextModelsSection,
|
|
180
|
+
renderAnswer,
|
|
181
|
+
rerankModel,
|
|
182
|
+
sentIds,
|
|
183
|
+
sharedCommand,
|
|
184
|
+
skipFlagFor,
|
|
185
|
+
snakeKeys,
|
|
186
|
+
tagging,
|
|
187
|
+
task,
|
|
188
|
+
textModel,
|
|
189
|
+
textModels,
|
|
190
|
+
vectorModelKey,
|
|
191
|
+
writeTextModelsSection
|
|
192
|
+
} from "./chunk-XMHWGHID.js";
|
|
193
|
+
import {
|
|
194
|
+
MESSENGER_CHANGE_REFUSAL,
|
|
195
|
+
envName,
|
|
196
|
+
readOnlyLockOf,
|
|
197
|
+
readOnlyRefusal
|
|
198
|
+
} from "./chunk-KUFOM3SB.js";
|
|
166
199
|
import {
|
|
167
200
|
CATEGORIES,
|
|
168
201
|
DEAL_KINDS,
|
|
@@ -221,7 +254,6 @@ import {
|
|
|
221
254
|
listed,
|
|
222
255
|
listedHolds,
|
|
223
256
|
logAttributes,
|
|
224
|
-
looksLikeReference,
|
|
225
257
|
meetingCueFingerprint,
|
|
226
258
|
meetingDetailsAnswer,
|
|
227
259
|
meetingHitContextLimits,
|
|
@@ -241,7 +273,6 @@ import {
|
|
|
241
273
|
parseReference,
|
|
242
274
|
paymentTitle,
|
|
243
275
|
prepareMeetingProjectEvidence,
|
|
244
|
-
providerLabel,
|
|
245
276
|
providerNamed,
|
|
246
277
|
pull,
|
|
247
278
|
queryError,
|
|
@@ -250,8 +281,8 @@ import {
|
|
|
250
281
|
sameAs,
|
|
251
282
|
scaleOf,
|
|
252
283
|
snapshotMeetingScope,
|
|
253
|
-
sourceOf,
|
|
254
|
-
sourceOf2,
|
|
284
|
+
sourceOf2 as sourceOf,
|
|
285
|
+
sourceOf3 as sourceOf2,
|
|
255
286
|
strongRecordingValidator,
|
|
256
287
|
timezoneOf,
|
|
257
288
|
typedCommand,
|
|
@@ -262,55 +293,27 @@ import {
|
|
|
262
293
|
walkQuery,
|
|
263
294
|
withAttempt,
|
|
264
295
|
zonedMoment
|
|
265
|
-
} from "./chunk-
|
|
296
|
+
} from "./chunk-JINEHQ2T.js";
|
|
266
297
|
import {
|
|
267
298
|
damagedFile,
|
|
268
299
|
isCliFailure,
|
|
269
300
|
sqliteCode
|
|
270
|
-
} from "./chunk-
|
|
271
|
-
import {
|
|
272
|
-
DEFAULT_STEMMERS,
|
|
273
|
-
createStemmer,
|
|
274
|
-
fold,
|
|
275
|
-
normalize
|
|
276
|
-
} from "./chunk-NMOWIFH3.js";
|
|
301
|
+
} from "./chunk-VB4OLJHK.js";
|
|
277
302
|
import {
|
|
278
303
|
DEFAULT_TASK_CATEGORIES,
|
|
279
304
|
FALLBACK_CATEGORY,
|
|
280
305
|
readSharedSection,
|
|
281
306
|
sharedConfigPath,
|
|
282
307
|
writeSharedSection
|
|
283
|
-
} from "./chunk-
|
|
284
|
-
import {
|
|
285
|
-
MAX_MODEL_IMAGE_BYTES,
|
|
286
|
-
checkedOptions,
|
|
287
|
-
messagesFor,
|
|
288
|
-
range,
|
|
289
|
-
systemFor,
|
|
290
|
-
validateImages
|
|
291
|
-
} from "./chunk-O5KXCQE4.js";
|
|
292
|
-
import {
|
|
293
|
-
remoteKey
|
|
294
|
-
} from "./chunk-3CANRF2G.js";
|
|
295
|
-
import {
|
|
296
|
-
Unzip,
|
|
297
|
-
UnzipInflate,
|
|
298
|
-
defaultThreads,
|
|
299
|
-
installNativeRuntime,
|
|
300
|
-
isTextModelInstalled,
|
|
301
|
-
openEmbedder,
|
|
302
|
-
placedText,
|
|
303
|
-
runEmbedders,
|
|
304
|
-
textModelsDirectory
|
|
305
|
-
} from "./chunk-OGUXOAOH.js";
|
|
308
|
+
} from "./chunk-4QGUBKN5.js";
|
|
306
309
|
import {
|
|
307
310
|
installFiles,
|
|
308
311
|
megabytes
|
|
309
|
-
} from "./chunk-
|
|
312
|
+
} from "./chunk-SIQDO5DN.js";
|
|
310
313
|
import {
|
|
311
314
|
storePath,
|
|
312
315
|
wirecatDirectory
|
|
313
|
-
} from "./chunk-
|
|
316
|
+
} from "./chunk-LPGE6ACC.js";
|
|
314
317
|
import {
|
|
315
318
|
Credentials,
|
|
316
319
|
logRecordOf,
|
|
@@ -318,7 +321,7 @@ import {
|
|
|
318
321
|
realSleep,
|
|
319
322
|
resolvePaths,
|
|
320
323
|
writeSecurely
|
|
321
|
-
} from "./chunk-
|
|
324
|
+
} from "./chunk-W46O6RJ5.js";
|
|
322
325
|
import {
|
|
323
326
|
array,
|
|
324
327
|
boolean,
|
|
@@ -326,7 +329,6 @@ import {
|
|
|
326
329
|
getDotPath,
|
|
327
330
|
integer,
|
|
328
331
|
isoTimestamp,
|
|
329
|
-
literal,
|
|
330
332
|
maxLength,
|
|
331
333
|
minLength,
|
|
332
334
|
minValue,
|
|
@@ -347,7 +349,7 @@ import {
|
|
|
347
349
|
trim,
|
|
348
350
|
union,
|
|
349
351
|
unknown
|
|
350
|
-
} from "./chunk-
|
|
352
|
+
} from "./chunk-VYCLOFPC.js";
|
|
351
353
|
import {
|
|
352
354
|
importFrom,
|
|
353
355
|
resolveFrom
|
|
@@ -357,7 +359,7 @@ import {
|
|
|
357
359
|
isCliError,
|
|
358
360
|
singleLine,
|
|
359
361
|
visibleControls
|
|
360
|
-
} from "./chunk-
|
|
362
|
+
} from "./chunk-2EZFUIL4.js";
|
|
361
363
|
import {
|
|
362
364
|
__commonJS,
|
|
363
365
|
__name,
|
|
@@ -16973,7 +16975,7 @@ var require_lib3 = __commonJS({
|
|
|
16973
16975
|
}
|
|
16974
16976
|
});
|
|
16975
16977
|
|
|
16976
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16978
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/conversations/link.js
|
|
16977
16979
|
var RULES_VERSION = 5;
|
|
16978
16980
|
var LOOK_BACK = 50;
|
|
16979
16981
|
var SAME_SENDER_WITHIN = 10;
|
|
@@ -17063,10 +17065,10 @@ var latest = /* @__PURE__ */ __name((window3, matches) => {
|
|
|
17063
17065
|
var sameThread = /* @__PURE__ */ __name((a, b) => a.threadId === b.threadId, "sameThread");
|
|
17064
17066
|
var link = /* @__PURE__ */ __name((message, parentId, source, kind, confidence, method) => ({ messageId: message.id, parentId, source, kind, confidence, method }), "link");
|
|
17065
17067
|
|
|
17066
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17068
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/ports/traits.js
|
|
17067
17069
|
var syncsOneChat = /* @__PURE__ */ __name((messenger) => messenger.history !== "store" || messenger.historyOnDemand === true, "syncsOneChat");
|
|
17068
17070
|
|
|
17069
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17071
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/store/damage.js
|
|
17070
17072
|
var DERIVED = /* @__PURE__ */ new Set(["mentions", "involvements", "embeddings"]);
|
|
17071
17073
|
var named = /* @__PURE__ */ __name((tables) => tables.length <= 5 ? tables.join(", ") : `${tables.slice(0, 5).join(", ")} and ${tables.length - 5} more`, "named");
|
|
17072
17074
|
var isDerivedTable = /* @__PURE__ */ __name((table, searchIndexes) => DERIVED.has(table) || table.startsWith("vector_index_") || searchIndexes.some((index) => table === index || table.startsWith(`${index}_`)), "isDerivedTable");
|
|
@@ -17169,7 +17171,7 @@ var storeDamageReport = /* @__PURE__ */ __name(({ health, command, mark = null,
|
|
|
17169
17171
|
};
|
|
17170
17172
|
}, "storeDamageReport");
|
|
17171
17173
|
|
|
17172
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17174
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/store/health.js
|
|
17173
17175
|
import { existsSync, statSync } from "node:fs";
|
|
17174
17176
|
var JSON_COLUMNS = {
|
|
17175
17177
|
accounts: ["settings"],
|
|
@@ -17311,10 +17313,10 @@ var storeHealth = /* @__PURE__ */ __name(async (path, { deep = false } = {}) =>
|
|
|
17311
17313
|
}
|
|
17312
17314
|
}, "storeHealth");
|
|
17313
17315
|
|
|
17314
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17316
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/store/sqlite/document-transfer/snapshot.js
|
|
17315
17317
|
var MAX_BYTES = 16 * 1024 * 1024;
|
|
17316
17318
|
|
|
17317
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17319
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/store/project-transfer/preview.js
|
|
17318
17320
|
var previewProjectAnnotationSnapshot = /* @__PURE__ */ __name(async (options2) => {
|
|
17319
17321
|
if (!options2 || typeof options2 !== "object" || Array.isArray(options2))
|
|
17320
17322
|
throw new CliError("validation_error", "project preview options are required");
|
|
@@ -17340,7 +17342,7 @@ var previewProjectAnnotationSnapshot = /* @__PURE__ */ __name(async (options2) =
|
|
|
17340
17342
|
});
|
|
17341
17343
|
}, "previewProjectAnnotationSnapshot");
|
|
17342
17344
|
|
|
17343
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17345
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/store/project-transfer/snapshot.js
|
|
17344
17346
|
var snapshotProjectAnnotations = /* @__PURE__ */ __name(async (options2) => {
|
|
17345
17347
|
if (!options2 || typeof options2 !== "object" || Array.isArray(options2))
|
|
17346
17348
|
throw new CliError("validation_error", "snapshot options are required");
|
|
@@ -17361,7 +17363,7 @@ var snapshotProjectAnnotations = /* @__PURE__ */ __name(async (options2) => {
|
|
|
17361
17363
|
}
|
|
17362
17364
|
}, "snapshotProjectAnnotations");
|
|
17363
17365
|
|
|
17364
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17366
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/search/groups.js
|
|
17365
17367
|
var ALL = "all";
|
|
17366
17368
|
var OWNER_NOTES = { provider: "notes", account: INTERNAL_NOTES };
|
|
17367
17369
|
var NOT_GROUP_NAMES = /* @__PURE__ */ new Set([ALL, "bots"]);
|
|
@@ -17495,7 +17497,7 @@ var scopeToGroup = /* @__PURE__ */ __name((run, request, context2) => {
|
|
|
17495
17497
|
return scoped;
|
|
17496
17498
|
}, "scopeToGroup");
|
|
17497
17499
|
|
|
17498
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17500
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/services/search-kind.js
|
|
17499
17501
|
var NO_MAIL = "no_mail";
|
|
17500
17502
|
var MAIL = "email";
|
|
17501
17503
|
var groupLockOf = /* @__PURE__ */ __name((app, env) => {
|
|
@@ -17569,10 +17571,10 @@ var accountsOfKind = /* @__PURE__ */ __name((kind, chosen, held, explicit, comma
|
|
|
17569
17571
|
return chosenMail.map(({ provider, account }) => ({ provider, account }));
|
|
17570
17572
|
}, "accountsOfKind");
|
|
17571
17573
|
|
|
17572
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17574
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/sends/guard.js
|
|
17573
17575
|
import { randomUUID } from "node:crypto";
|
|
17574
17576
|
|
|
17575
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17577
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/sends/flood.js
|
|
17576
17578
|
import { mkdirSync, readFileSync, renameSync, writeFileSync } from "node:fs";
|
|
17577
17579
|
import { dirname, join } from "node:path";
|
|
17578
17580
|
var MOST_DEADLINES = 50;
|
|
@@ -17656,11 +17658,11 @@ var FloodMemory = class {
|
|
|
17656
17658
|
}
|
|
17657
17659
|
};
|
|
17658
17660
|
|
|
17659
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17661
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/sends/journal.js
|
|
17660
17662
|
import { appendFileSync, mkdirSync as mkdirSync3, readFileSync as readFileSync2 } from "node:fs";
|
|
17661
17663
|
import { dirname as dirname3, join as join2 } from "node:path";
|
|
17662
17664
|
|
|
17663
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17665
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/sends/file-lock.js
|
|
17664
17666
|
import { closeSync, mkdirSync as mkdirSync2, openSync, statSync as statSync2, unlinkSync } from "node:fs";
|
|
17665
17667
|
import { dirname as dirname2 } from "node:path";
|
|
17666
17668
|
var LOCK_WAIT_MS = 5e3;
|
|
@@ -17727,7 +17729,7 @@ var lockTime = /* @__PURE__ */ __name((lock) => {
|
|
|
17727
17729
|
}
|
|
17728
17730
|
}, "lockTime");
|
|
17729
17731
|
|
|
17730
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17732
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/sends/journal.js
|
|
17731
17733
|
var sendsPathFor = /* @__PURE__ */ __name((app, profile, env = process.env) => join2(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "sends", `${profile}.jsonl`), "sendsPathFor");
|
|
17732
17734
|
var SendJournal = class {
|
|
17733
17735
|
static {
|
|
@@ -17804,7 +17806,7 @@ var withSendId = /* @__PURE__ */ __name((entry) => {
|
|
|
17804
17806
|
return cid === void 0 || rest.sendId !== void 0 ? rest : { ...rest, sendId: String(cid) };
|
|
17805
17807
|
}, "withSendId");
|
|
17806
17808
|
|
|
17807
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17809
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/sends/recipients.js
|
|
17808
17810
|
import { existsSync as existsSync2, readFileSync as readFileSync3, rmSync } from "node:fs";
|
|
17809
17811
|
import { join as join3 } from "node:path";
|
|
17810
17812
|
var recipientsPathFor = /* @__PURE__ */ __name((app, profile, env = process.env) => join3(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "profiles", `${profile}.recipients.json`), "recipientsPathFor");
|
|
@@ -17916,7 +17918,7 @@ var RecipientList = class {
|
|
|
17916
17918
|
}
|
|
17917
17919
|
};
|
|
17918
17920
|
|
|
17919
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17921
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/sends/guard.js
|
|
17920
17922
|
var HOUR_MS = 60 * 60 * 1e3;
|
|
17921
17923
|
var READS_UNDER_HOLD = /* @__PURE__ */ new Set([
|
|
17922
17924
|
"attachments.extract",
|
|
@@ -17935,7 +17937,7 @@ var weightOf = /* @__PURE__ */ __name(({ kind = "message", action: action2, coun
|
|
|
17935
17937
|
var timeOf = /* @__PURE__ */ __name((entry) => Date.parse(entry.scheduledFor ?? entry.at), "timeOf");
|
|
17936
17938
|
var ceilingRefusal = /* @__PURE__ */ __name((key, command) => new CliError("permission_error", `${key} is not allowed: setup's answer keeps every WireCat tool read-only; the owner changes it at a terminal with \`${command} setup\``, { permission: key }), "ceilingRefusal");
|
|
17937
17939
|
var levelRefusal = /* @__PURE__ */ __name((refused, fix = `${refused.command} ${refused.profile} config set permissions.${refused.key} allow`) => refused.named === CEILING_KEY ? ceilingRefusal(refused.key, refused.command) : new CliError("permission_error", `profile ${refused.profile} does not let ${refused.key} write (permissions.${refused.named} is ${refused.level}, from the ${refused.permissionSources[refused.named ?? ""] ?? "default"}); to allow it: ${fix}`, { permission: refused.key }), "levelRefusal");
|
|
17938
|
-
var sendGuard = /* @__PURE__ */ __name(({ profile, recipients, command = recipients.command, readOnlyLock, permissions, permissionSources = {}, permissionDefaults, permissionFix, ask = refuseToAsk, sendsPerHour, journal, flood, warn, now = /* @__PURE__ */ __name(() => /* @__PURE__ */ new Date(), "now") }) => {
|
|
17940
|
+
var sendGuard = /* @__PURE__ */ __name(({ profile, recipients, command = recipients.command, readOnlyLock, permissions, permissionSources = {}, permissionDefaults, permissionFix, ask: ask2 = refuseToAsk, sendsPerHour, journal, flood, warn, now = /* @__PURE__ */ __name(() => /* @__PURE__ */ new Date(), "now") }) => {
|
|
17939
17941
|
const currentPermissions = /* @__PURE__ */ __name(() => typeof permissions === "function" ? permissions() : permissions, "currentPermissions");
|
|
17940
17942
|
let reservation;
|
|
17941
17943
|
const answered = /* @__PURE__ */ new WeakSet();
|
|
@@ -18055,7 +18057,7 @@ var sendGuard = /* @__PURE__ */ __name(({ profile, recipients, command = recipie
|
|
|
18055
18057
|
if (levelFor(levels, key, permissionDefaults).level !== "ask")
|
|
18056
18058
|
return;
|
|
18057
18059
|
refuseHeld(request);
|
|
18058
|
-
await
|
|
18060
|
+
await ask2(key, request);
|
|
18059
18061
|
answered.add(request);
|
|
18060
18062
|
}, "ask"),
|
|
18061
18063
|
check: /* @__PURE__ */ __name((request, { reserve = true } = {}) => {
|
|
@@ -18093,14 +18095,14 @@ var sendGuard = /* @__PURE__ */ __name(({ profile, recipients, command = recipie
|
|
|
18093
18095
|
var refuseToAsk = /* @__PURE__ */ __name(async (key) => {
|
|
18094
18096
|
throw new CliError("confirmation_required", `${key} asks before it acts (its permission level is ask), and nobody is here to answer \u2014 add ${skipFlagFor(key)} to go ahead`);
|
|
18095
18097
|
}, "refuseToAsk");
|
|
18096
|
-
var guardFor = /* @__PURE__ */ __name((app, settings, warn, env = process.env,
|
|
18098
|
+
var guardFor = /* @__PURE__ */ __name((app, settings, warn, env = process.env, ask2) => sendGuard({
|
|
18097
18099
|
profile: settings.profile,
|
|
18098
18100
|
command: app.command,
|
|
18099
18101
|
...settings.readOnlyLock ? { readOnlyLock: settings.readOnlyLock } : {},
|
|
18100
18102
|
permissions: /* @__PURE__ */ __name(() => settings.permissions, "permissions"),
|
|
18101
18103
|
permissionSources: settings.permissionSources,
|
|
18102
18104
|
...settings.permissionDefaults ? { permissionDefaults: settings.permissionDefaults } : {},
|
|
18103
|
-
...
|
|
18105
|
+
...ask2 ? { ask: ask2 } : {},
|
|
18104
18106
|
sendsPerHour: settings.sendsPerHour,
|
|
18105
18107
|
journal: new SendJournal(sendsPathFor(app, settings.profile, env), { service: app.command, version: app.version }),
|
|
18106
18108
|
recipients: new RecipientList(recipientsPathFor(app, settings.profile, env), app.command),
|
|
@@ -18109,112 +18111,7 @@ var guardFor = /* @__PURE__ */ __name((app, settings, warn, env = process.env, a
|
|
|
18109
18111
|
}), "guardFor");
|
|
18110
18112
|
var journalFailure = /* @__PURE__ */ __name((error) => error?.code ?? (error instanceof Error ? error.name : "error"), "journalFailure");
|
|
18111
18113
|
|
|
18112
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18113
|
-
var TAKES = {
|
|
18114
|
-
chat: "a chat: chat:<provider>/<account>/<chat>, its id or its title",
|
|
18115
|
-
message: "a message: msg:<provider>/<account>/<chat>/<message>, or a chat and the message's id"
|
|
18116
|
-
};
|
|
18117
|
-
var article = /* @__PURE__ */ __name((word) => /^[aeiou]/.test(word) ? "an" : "a", "article");
|
|
18118
|
-
var wrongKind = /* @__PURE__ */ __name((text2, kind, takes) => new CliError("validation_error", `${text2} names ${article(kind)} ${kind}; this takes ${TAKES[takes]}`, {
|
|
18119
|
-
reason: "ref.wrong-kind"
|
|
18120
|
-
}), "wrongKind");
|
|
18121
|
-
var wrongProvider = /* @__PURE__ */ __name((text2, provider, kind) => {
|
|
18122
|
-
const entry = providerNamed(provider);
|
|
18123
|
-
const command = entry?.command;
|
|
18124
|
-
const opens = kind === "entity" ? void 0 : entry?.opens?.[kind];
|
|
18125
|
-
const how = command && opens ? `open it with ${command} <profile> ${opens} ${text2}` : "open it with its own CLI";
|
|
18126
|
-
const label = providerLabel(provider);
|
|
18127
|
-
return new CliError("validation_error", `${text2} is ${article(label.toLowerCase())} ${label} ${kind}; ${how}`, {
|
|
18128
|
-
reason: "ref.wrong-provider"
|
|
18129
|
-
});
|
|
18130
|
-
}, "wrongProvider");
|
|
18131
|
-
var chatReferenceOf = /* @__PURE__ */ __name((text2, provider, takes = "chat") => {
|
|
18132
|
-
const trimmed = text2.trim();
|
|
18133
|
-
if (!looksLikeReference(trimmed))
|
|
18134
|
-
return void 0;
|
|
18135
|
-
const reference = parseReference(trimmed);
|
|
18136
|
-
if (reference.type !== "chat" && reference.type !== "message")
|
|
18137
|
-
throw wrongKind(trimmed, reference.type, takes);
|
|
18138
|
-
if (reference.provider !== provider)
|
|
18139
|
-
throw wrongProvider(trimmed, reference.provider, reference.type);
|
|
18140
|
-
const found = {
|
|
18141
|
-
text: trimmed,
|
|
18142
|
-
provider: reference.provider,
|
|
18143
|
-
account: reference.account,
|
|
18144
|
-
chat: reference.chat,
|
|
18145
|
-
...reference.type === "message" ? { message: reference.message } : {}
|
|
18146
|
-
};
|
|
18147
|
-
return found;
|
|
18148
|
-
}, "chatReferenceOf");
|
|
18149
|
-
var contactReferenceOf = /* @__PURE__ */ __name((text2, provider) => {
|
|
18150
|
-
const trimmed = text2.trim();
|
|
18151
|
-
if (!trimmed.startsWith("contact:"))
|
|
18152
|
-
return void 0;
|
|
18153
|
-
const reference = parseReference(trimmed);
|
|
18154
|
-
if (reference.type !== "contact")
|
|
18155
|
-
return void 0;
|
|
18156
|
-
if (provider !== void 0 && reference.provider !== provider)
|
|
18157
|
-
throw wrongProvider(trimmed, reference.provider, reference.type);
|
|
18158
|
-
return reference.id;
|
|
18159
|
-
}, "contactReferenceOf");
|
|
18160
|
-
var wrongAccount = /* @__PURE__ */ __name((reference, scope, profiles) => {
|
|
18161
|
-
const here = scope.account === void 0 ? "the account of this profile is not known yet" : `${scope.profile === void 0 ? "this profile" : `profile ${scope.profile}`} is account ${scope.account}`;
|
|
18162
|
-
const others = profiles === void 0 ? "" : `. Profiles signed in to ${reference.account}: ${profiles.length > 0 ? profiles.join(", ") : "none here"}`;
|
|
18163
|
-
return new CliError("validation_error", `${reference.text} belongs to account ${reference.account}; ${here}${others}`, { reason: "ref.wrong-account" });
|
|
18164
|
-
}, "wrongAccount");
|
|
18165
|
-
var ensureAccount = /* @__PURE__ */ __name(async (reference, scope, profilesOn2) => {
|
|
18166
|
-
if (scope.account !== void 0 && scope.account === reference.account)
|
|
18167
|
-
return;
|
|
18168
|
-
const profiles = await profilesOn2?.(reference.account).catch(() => void 0);
|
|
18169
|
-
throw wrongAccount(reference, scope, profiles);
|
|
18170
|
-
}, "ensureAccount");
|
|
18171
|
-
|
|
18172
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_5a9525690cd264264c4a3180795dd7f6/node_modules/@wirecat/cli-core/dist/resolve.js
|
|
18173
|
-
var isId = /* @__PURE__ */ __name((reference) => /^-?\d+$/.test(reference.trim()), "isId");
|
|
18174
|
-
var foldName = /* @__PURE__ */ __name((name) => name.normalize("NFC").replace(/[\uFE0E\uFE0F\u200D]/g, "").toLowerCase().replaceAll("\u0451", "\u0435"), "foldName");
|
|
18175
|
-
var pickChat = /* @__PURE__ */ __name((reference, chats) => {
|
|
18176
|
-
const wanted = foldName(reference.trim());
|
|
18177
|
-
const matches = chats.filter((chat) => chat.title !== null && foldName(chat.title).includes(wanted));
|
|
18178
|
-
if (matches.length === 1 && matches[0])
|
|
18179
|
-
return matches[0];
|
|
18180
|
-
if (matches.length === 0)
|
|
18181
|
-
throw new CliError("not_found", `no chat matches "${reference}"`);
|
|
18182
|
-
throw ambiguous(reference, "chats", matches.map((chat) => ({ id: chat.id, title: chat.title })), ({ title }) => singleLine(String(title)));
|
|
18183
|
-
}, "pickChat");
|
|
18184
|
-
var pickPerson = /* @__PURE__ */ __name((reference, people) => {
|
|
18185
|
-
const trimmed = reference.trim();
|
|
18186
|
-
const contact = contactReferenceOf(trimmed, people.provider);
|
|
18187
|
-
if (contact !== void 0) {
|
|
18188
|
-
const named4 = people.get(contact);
|
|
18189
|
-
if (named4)
|
|
18190
|
-
return named4;
|
|
18191
|
-
throw new CliError("not_found", `no person ${contact} in what this account has seen`);
|
|
18192
|
-
}
|
|
18193
|
-
const known2 = people.get(trimmed);
|
|
18194
|
-
if (known2)
|
|
18195
|
-
return known2;
|
|
18196
|
-
if (isId(trimmed))
|
|
18197
|
-
throw new CliError("not_found", `no person ${trimmed} in what this account has seen`);
|
|
18198
|
-
const wanted = foldName(trimmed.replace(/^@/, ""));
|
|
18199
|
-
const everyone = people.all().toSorted((a, b) => (a.name ?? "").localeCompare(b.name ?? ""));
|
|
18200
|
-
const fields = /* @__PURE__ */ __name((person) => [person.alias, person.name, person.username].filter(isPresent).map(foldName), "fields");
|
|
18201
|
-
const exact = everyone.filter((person) => fields(person).includes(wanted));
|
|
18202
|
-
const matches = exact.length > 0 ? exact : everyone.filter((person) => fields(person).some((one2) => one2.includes(wanted)));
|
|
18203
|
-
if (matches.length === 1 && matches[0])
|
|
18204
|
-
return matches[0];
|
|
18205
|
-
if (matches.length === 0)
|
|
18206
|
-
throw new CliError("not_found", `nobody matches "${reference}"`);
|
|
18207
|
-
throw ambiguous(reference, "people", matches.map(({ id: id2, name, username }) => ({ id: id2, name, username })), ({ name, username }) => singleLine([name, username && `@${username}`].filter(isPresent).join(" ")));
|
|
18208
|
-
}, "pickPerson");
|
|
18209
|
-
var ambiguous = /* @__PURE__ */ __name((reference, what, candidates, label) => {
|
|
18210
|
-
const width = Math.max(...candidates.map(({ id: id2 }) => id2.length));
|
|
18211
|
-
const lines3 = candidates.map((candidate) => ` ${candidate.id.padEnd(width)} ${label(candidate)}`).join("\n");
|
|
18212
|
-
return new CliError("validation_error", `"${singleLine(reference)}" matches ${candidates.length} ${what} \u2014 name one by its id:
|
|
18213
|
-
${lines3}`, { candidates });
|
|
18214
|
-
}, "ambiguous");
|
|
18215
|
-
var isPresent = /* @__PURE__ */ __name((value) => value !== null && value !== void 0, "isPresent");
|
|
18216
|
-
|
|
18217
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_5a9525690cd264264c4a3180795dd7f6/node_modules/@wirecat/cli-core/dist/services/deps.js
|
|
18114
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/services/deps.js
|
|
18218
18115
|
var accountStore = /* @__PURE__ */ __name(async (deps) => (await deps.store()).forAccount(await deps.account()), "accountStore");
|
|
18219
18116
|
var crossAccount = /* @__PURE__ */ __name((deps, _reason) => deps.store(), "crossAccount");
|
|
18220
18117
|
var NO_LOCAL_STORE = "this answer comes from the messenger, not from the local store";
|
|
@@ -18289,7 +18186,7 @@ var storeOnlyDeps = /* @__PURE__ */ __name((store, account, { app, env }) => {
|
|
|
18289
18186
|
return { ...storedDeps(messenger, store, account, guard), ...env === void 0 ? {} : { env } };
|
|
18290
18187
|
}, "storeOnlyDeps");
|
|
18291
18188
|
|
|
18292
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18189
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/botcheck/check.js
|
|
18293
18190
|
var DAY_MS = 864e5;
|
|
18294
18191
|
var NEW_DAYS = 30;
|
|
18295
18192
|
var SAME_TEXT_MIN = 20;
|
|
@@ -18366,7 +18263,7 @@ var scorePerson = /* @__PURE__ */ __name(({ subject, provider, activity, photos,
|
|
|
18366
18263
|
};
|
|
18367
18264
|
}, "scorePerson");
|
|
18368
18265
|
|
|
18369
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18266
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/http/time-limit.js
|
|
18370
18267
|
var timeLimit = /* @__PURE__ */ __name((ms) => {
|
|
18371
18268
|
const controller = new AbortController();
|
|
18372
18269
|
const timer = setTimeout(() => controller.abort(new DOMException("The operation timed out.", "TimeoutError")), ms);
|
|
@@ -18382,7 +18279,7 @@ var withTimeLimit = /* @__PURE__ */ __name(async (ms, run) => {
|
|
|
18382
18279
|
}
|
|
18383
18280
|
}, "withTimeLimit");
|
|
18384
18281
|
|
|
18385
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18282
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/botcheck/registries.js
|
|
18386
18283
|
var REGISTRIES = {
|
|
18387
18284
|
cas: { title: "Combot Anti-Spam (CAS)", docs: "https://cas.chat/api" },
|
|
18388
18285
|
lols: { title: "lols.bot", docs: "https://api.lols.bot/lols-bot.json" }
|
|
@@ -18469,7 +18366,7 @@ var notCovered = /* @__PURE__ */ __name((messenger, now = /* @__PURE__ */ new Da
|
|
|
18469
18366
|
detail: `lists Telegram accounts only, not ${messenger} ones`
|
|
18470
18367
|
})), "notCovered");
|
|
18471
18368
|
|
|
18472
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18369
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/botcheck/service.js
|
|
18473
18370
|
var ACTIVITY_MESSAGES = 1e3;
|
|
18474
18371
|
var botCheckService = /* @__PURE__ */ __name((deps) => {
|
|
18475
18372
|
const subjectOf = /* @__PURE__ */ __name(async (reference) => {
|
|
@@ -18557,7 +18454,7 @@ var botCheckService = /* @__PURE__ */ __name((deps) => {
|
|
|
18557
18454
|
};
|
|
18558
18455
|
}, "botCheckService");
|
|
18559
18456
|
|
|
18560
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18457
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/mail/owed.js
|
|
18561
18458
|
var mailTurn = /* @__PURE__ */ __name((newest) => {
|
|
18562
18459
|
if (newest === null)
|
|
18563
18460
|
return null;
|
|
@@ -18566,7 +18463,7 @@ var mailTurn = /* @__PURE__ */ __name((newest) => {
|
|
|
18566
18463
|
return newest.addressed ? "owed" : null;
|
|
18567
18464
|
}, "mailTurn");
|
|
18568
18465
|
|
|
18569
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18466
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/services/agenda-mail.js
|
|
18570
18467
|
var absent = /* @__PURE__ */ __name((error) => {
|
|
18571
18468
|
if (error instanceof CliError && error.code === "not_found")
|
|
18572
18469
|
return void 0;
|
|
@@ -18624,7 +18521,7 @@ var mailActivity = /* @__PURE__ */ __name(async (store, account, since, chats) =
|
|
|
18624
18521
|
};
|
|
18625
18522
|
}, "mailActivity");
|
|
18626
18523
|
|
|
18627
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18524
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/services/chat-coverage.js
|
|
18628
18525
|
var chatCoverage = /* @__PURE__ */ __name(async (store, account, chatIds) => {
|
|
18629
18526
|
const ids = [...new Set(chatIds)];
|
|
18630
18527
|
if (ids.length === 0)
|
|
@@ -18650,7 +18547,7 @@ var chatCoverage = /* @__PURE__ */ __name(async (store, account, chatIds) => {
|
|
|
18650
18547
|
}));
|
|
18651
18548
|
}, "chatCoverage");
|
|
18652
18549
|
|
|
18653
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18550
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/domain/thread.js
|
|
18654
18551
|
var threadIdOf = /* @__PURE__ */ __name((value) => {
|
|
18655
18552
|
if (value === void 0)
|
|
18656
18553
|
return void 0;
|
|
@@ -18660,7 +18557,7 @@ var threadIdOf = /* @__PURE__ */ __name((value) => {
|
|
|
18660
18557
|
return id2;
|
|
18661
18558
|
}, "threadIdOf");
|
|
18662
18559
|
|
|
18663
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18560
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/ports/messenger.js
|
|
18664
18561
|
var throughWrapper = /* @__PURE__ */ __name((inner, handled, wrap = (_, call) => call) => new Proxy(handled, {
|
|
18665
18562
|
get: /* @__PURE__ */ __name((own, key) => {
|
|
18666
18563
|
if (key in own)
|
|
@@ -18677,12 +18574,12 @@ var capability = /* @__PURE__ */ __name((adapter, method, what) => {
|
|
|
18677
18574
|
return found.bind(adapter);
|
|
18678
18575
|
}, "capability");
|
|
18679
18576
|
|
|
18680
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18577
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/sends/send-id.js
|
|
18681
18578
|
import { randomBytes } from "node:crypto";
|
|
18682
18579
|
var newSendId = /* @__PURE__ */ __name(() => randomBytes(8).readBigInt64BE().toString(), "newSendId");
|
|
18683
18580
|
var newOperationId = newSendId;
|
|
18684
18581
|
|
|
18685
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18582
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/services/questions.js
|
|
18686
18583
|
var LINKS = /https?:\/\/\S+/g;
|
|
18687
18584
|
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");
|
|
18688
18585
|
var questions = /* @__PURE__ */ __name((messages, { answerers: answerers2, asker = "others" }) => {
|
|
@@ -18712,7 +18609,7 @@ var questions = /* @__PURE__ */ __name((messages, { answerers: answerers2, asker
|
|
|
18712
18609
|
});
|
|
18713
18610
|
}, "questions");
|
|
18714
18611
|
|
|
18715
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18612
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/services/chat-stats.js
|
|
18716
18613
|
var TOP_POSTS = 5;
|
|
18717
18614
|
var JOINS = /* @__PURE__ */ new Set(["join", "add"]);
|
|
18718
18615
|
var LEAVES = /* @__PURE__ */ new Set(["leave", "remove"]);
|
|
@@ -18829,7 +18726,7 @@ var median = /* @__PURE__ */ __name((values) => {
|
|
|
18829
18726
|
return Math.round(sorted.length % 2 === 0 ? ((sorted[middle - 1] ?? upper) + upper) / 2 : upper);
|
|
18830
18727
|
}, "median");
|
|
18831
18728
|
|
|
18832
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18729
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/services/member-history.js
|
|
18833
18730
|
var memberEvents = /* @__PURE__ */ __name((stays, revisions, since = 0) => {
|
|
18834
18731
|
const events = [];
|
|
18835
18732
|
for (const stay of stays) {
|
|
@@ -18861,7 +18758,7 @@ var memberEvents = /* @__PURE__ */ __name((stays, revisions, since = 0) => {
|
|
|
18861
18758
|
return events.filter(({ at }) => Date.parse(at) >= since).sort((a, b) => Date.parse(a.at) - Date.parse(b.at) || a.id.localeCompare(b.id));
|
|
18862
18759
|
}, "memberEvents");
|
|
18863
18760
|
|
|
18864
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18761
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/services/members-audit.js
|
|
18865
18762
|
var AUDIT_PAGE = 200;
|
|
18866
18763
|
var AUDIT_BUDGET = 10;
|
|
18867
18764
|
var AUDIT_PAUSE_MS = 1e3;
|
|
@@ -18941,7 +18838,7 @@ var burstJoins = /* @__PURE__ */ __name((members) => {
|
|
|
18941
18838
|
return found;
|
|
18942
18839
|
}, "burstJoins");
|
|
18943
18840
|
|
|
18944
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18841
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/services/message-resolution.js
|
|
18945
18842
|
var readChatId = /* @__PURE__ */ __name(async (deps, reference, store, account) => {
|
|
18946
18843
|
if (deps.reads !== "store")
|
|
18947
18844
|
return keptChatId(deps.messenger, reference, store, account);
|
|
@@ -19100,7 +18997,7 @@ var senderAmong = /* @__PURE__ */ __name(async (store, accounts, reference) => {
|
|
|
19100
18997
|
}
|
|
19101
18998
|
}, "senderAmong");
|
|
19102
18999
|
|
|
19103
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19000
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/services/chats.js
|
|
19104
19001
|
var EVENTS_DAYS = 7;
|
|
19105
19002
|
var TRACKED_DAYS = 30;
|
|
19106
19003
|
var STATS_PAGE = 1e3;
|
|
@@ -19395,7 +19292,7 @@ var storedMembers = /* @__PURE__ */ __name(async (store, chatId) => {
|
|
|
19395
19292
|
return members.length === 0 ? null : members;
|
|
19396
19293
|
}, "storedMembers");
|
|
19397
19294
|
|
|
19398
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19295
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/services/task-categories.js
|
|
19399
19296
|
var names = /* @__PURE__ */ __name((categories) => categories.map(({ name }) => name).join(", "), "names");
|
|
19400
19297
|
var taskCategoryOf = /* @__PURE__ */ __name((categories = DEFAULT_TASK_CATEGORIES, flag = "--category") => (typed) => {
|
|
19401
19298
|
const name = typed.trim().toLowerCase();
|
|
@@ -19452,7 +19349,7 @@ var categorize = /* @__PURE__ */ __name((text2, categories = DEFAULT_TASK_CATEGO
|
|
|
19452
19349
|
return best.name;
|
|
19453
19350
|
}, "categorize");
|
|
19454
19351
|
|
|
19455
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19352
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/services/task-rules.js
|
|
19456
19353
|
var taskAccount = /* @__PURE__ */ __name(({ provider, account }) => `${provider}:${account}`, "taskAccount");
|
|
19457
19354
|
var RULES_IN = {
|
|
19458
19355
|
dialog: "all",
|
|
@@ -19658,7 +19555,7 @@ var applyTaskRulesToChats = /* @__PURE__ */ __name(async (store, account, chatId
|
|
|
19658
19555
|
return passes;
|
|
19659
19556
|
}, "applyTaskRulesToChats");
|
|
19660
19557
|
|
|
19661
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19558
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/services/task-tag-filters.js
|
|
19662
19559
|
var taskTagFilters = /* @__PURE__ */ __name(async (store, query) => {
|
|
19663
19560
|
const tags = /* @__PURE__ */ new Map();
|
|
19664
19561
|
for (const node of query ? walkQuery(query.root) : [])
|
|
@@ -19667,7 +19564,7 @@ var taskTagFilters = /* @__PURE__ */ __name(async (store, query) => {
|
|
|
19667
19564
|
return tags;
|
|
19668
19565
|
}, "taskTagFilters");
|
|
19669
19566
|
|
|
19670
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19567
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/services/agenda.js
|
|
19671
19568
|
var DAY = 864e5;
|
|
19672
19569
|
var AGENDA_DEFAULTS = { unanswered: DAY, waiting: 7 * DAY };
|
|
19673
19570
|
var CLAIMS = ["none", "mine", "others", "any"];
|
|
@@ -19914,7 +19811,7 @@ var agendaItem = /* @__PURE__ */ __name((shown) => {
|
|
|
19914
19811
|
};
|
|
19915
19812
|
}, "agendaItem");
|
|
19916
19813
|
|
|
19917
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19814
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/context/evidence-response.js
|
|
19918
19815
|
var contextSourceKey = /* @__PURE__ */ __name((source) => JSON.stringify([source.kind, source.accountId, source.provider, source.account]), "contextSourceKey");
|
|
19919
19816
|
var validateContextEvidencePage = /* @__PURE__ */ __name((page, request) => {
|
|
19920
19817
|
const fail5 = /* @__PURE__ */ __name(() => {
|
|
@@ -19978,7 +19875,7 @@ var validateContextEvidencePage = /* @__PURE__ */ __name((page, request) => {
|
|
|
19978
19875
|
}
|
|
19979
19876
|
}, "validateContextEvidencePage");
|
|
19980
19877
|
|
|
19981
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19878
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/context/read-budget.js
|
|
19982
19879
|
var contextReadBudget = /* @__PURE__ */ __name((limits = {}) => {
|
|
19983
19880
|
if (!limits || typeof limits !== "object" || Array.isArray(limits))
|
|
19984
19881
|
throw new CliError("validation_error", "limits needs a context read allowance");
|
|
@@ -20031,7 +19928,7 @@ var contextReadBudget = /* @__PURE__ */ __name((limits = {}) => {
|
|
|
20031
19928
|
};
|
|
20032
19929
|
}, "contextReadBudget");
|
|
20033
19930
|
|
|
20034
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19931
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/services/context-evidence.js
|
|
20035
19932
|
var createContextEvidenceReader = /* @__PURE__ */ __name((port, allowed, limits) => {
|
|
20036
19933
|
if (!port || typeof port.read !== "function")
|
|
20037
19934
|
throw new CliError("configuration_error", "context evidence reader is unavailable");
|
|
@@ -20075,7 +19972,7 @@ var createContextEvidenceReader = /* @__PURE__ */ __name((port, allowed, limits)
|
|
|
20075
19972
|
};
|
|
20076
19973
|
}, "createContextEvidenceReader");
|
|
20077
19974
|
|
|
20078
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19975
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/services/excerpt.js
|
|
20079
19976
|
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");
|
|
20080
19977
|
var excerpt = /* @__PURE__ */ __name((text2, query, size4 = 240, options2 = {}) => {
|
|
20081
19978
|
const flat = text2.replace(/\s+/g, " ").trim();
|
|
@@ -20091,10 +19988,10 @@ var excerpt = /* @__PURE__ */ __name((text2, query, size4 = 240, options2 = {})
|
|
|
20091
19988
|
}, "excerpt");
|
|
20092
19989
|
var withExcerpt = /* @__PURE__ */ __name(({ matchedText, ...hit }, query) => ({ ...hit, excerpt: excerpt(matchedText ?? hit.text, query) }), "withExcerpt");
|
|
20093
19990
|
|
|
20094
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19991
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/services/ingest.js
|
|
20095
19992
|
import { createInterface } from "node:readline";
|
|
20096
19993
|
|
|
20097
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19994
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/domain/vcard.js
|
|
20098
19995
|
import { createHash } from "node:crypto";
|
|
20099
19996
|
var MAX_ID = 512;
|
|
20100
19997
|
var AS_WORD = new RegExp(`^${WORD_BODY}$`);
|
|
@@ -20325,7 +20222,7 @@ var envelopeOfVcard = /* @__PURE__ */ __name((text2, { provider, account, batchI
|
|
|
20325
20222
|
};
|
|
20326
20223
|
}, "envelopeOfVcard");
|
|
20327
20224
|
|
|
20328
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20225
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/services/ingest.js
|
|
20329
20226
|
var emptyReceipt = /* @__PURE__ */ __name((dryRun, errors) => ({
|
|
20330
20227
|
dryRun,
|
|
20331
20228
|
source: null,
|
|
@@ -20425,7 +20322,7 @@ var ingestVcard = /* @__PURE__ */ __name(async (store, text2, { provider, batchI
|
|
|
20425
20322
|
return { ...await ingest(store, envelope, options2), vcard: issues };
|
|
20426
20323
|
}, "ingestVcard");
|
|
20427
20324
|
|
|
20428
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20325
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/services/link-scorers/shared.js
|
|
20429
20326
|
var escaped = /* @__PURE__ */ __name((text2) => text2.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), "escaped");
|
|
20430
20327
|
var folded = /* @__PURE__ */ __name((text2) => text2.normalize("NFKC").toLowerCase().replace(/\s+/gu, " "), "folded");
|
|
20431
20328
|
var wholeWords = /* @__PURE__ */ __name((term) => new RegExp(`(?<![\\p{L}\\p{N}\\p{M}_])${escaped(normalizeVocabularyName(term))}(?![\\p{L}\\p{N}\\p{M}_])`, "u"), "wholeWords");
|
|
@@ -20469,7 +20366,7 @@ var identitiesIn = /* @__PURE__ */ __name(async (store, people, provider) => {
|
|
|
20469
20366
|
var remembered = /* @__PURE__ */ __name((input, key, read2) => input.remember ? input.remember(key, read2) : read2(), "remembered");
|
|
20470
20367
|
var chatsWithOf = /* @__PURE__ */ __name((input, key, id2) => remembered(input, `chats-with\0${key.provider}\0${key.account}\0${id2}`, () => input.store.chats.chatsWith(key, id2)), "chatsWithOf");
|
|
20471
20368
|
|
|
20472
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20369
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/services/link-scorers/alias-hits.js
|
|
20473
20370
|
var SEARCH_LIMIT = 500;
|
|
20474
20371
|
var aliasWeight = /* @__PURE__ */ __name((hits) => hits >= 10 ? 0.55 : hits >= 3 ? 0.35 : 0, "aliasWeight");
|
|
20475
20372
|
var aliasHits = {
|
|
@@ -20518,7 +20415,7 @@ var aliasHits = {
|
|
|
20518
20415
|
}, "candidates")
|
|
20519
20416
|
};
|
|
20520
20417
|
|
|
20521
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20418
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/services/link-scorers/chat-senders.js
|
|
20522
20419
|
var WEIGHT = 0.5;
|
|
20523
20420
|
var LARGE_GROUP_WEIGHT = 0.2;
|
|
20524
20421
|
var LARGE_GROUP = 30;
|
|
@@ -20590,7 +20487,7 @@ var sendersOf2 = /* @__PURE__ */ __name(async (input, chat, reference, key) => {
|
|
|
20590
20487
|
return found;
|
|
20591
20488
|
}, "sendersOf");
|
|
20592
20489
|
|
|
20593
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20490
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/services/link-scorers/chat-title.js
|
|
20594
20491
|
var WEIGHT2 = 0.7;
|
|
20595
20492
|
var chatTitle = {
|
|
20596
20493
|
id: "chat-title",
|
|
@@ -20629,7 +20526,7 @@ var chatTitle = {
|
|
|
20629
20526
|
}, "candidates")
|
|
20630
20527
|
};
|
|
20631
20528
|
|
|
20632
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20529
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/services/link-scorers/email-domain.js
|
|
20633
20530
|
var WEIGHT3 = 0.3;
|
|
20634
20531
|
var CONTACTS = 500;
|
|
20635
20532
|
var MOST_PAIRS = 200;
|
|
@@ -20690,7 +20587,7 @@ var emailDomain = {
|
|
|
20690
20587
|
}, "candidates")
|
|
20691
20588
|
};
|
|
20692
20589
|
|
|
20693
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20590
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/services/link-scorers/mail-thread.js
|
|
20694
20591
|
var NAMED = 0.7;
|
|
20695
20592
|
var MEMBER_ONLY = 0.3;
|
|
20696
20593
|
var READ_LIMIT2 = 500;
|
|
@@ -20764,7 +20661,7 @@ var mailThread = {
|
|
|
20764
20661
|
}, "candidates")
|
|
20765
20662
|
};
|
|
20766
20663
|
|
|
20767
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20664
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/services/link-scorers/member-chats.js
|
|
20768
20665
|
var WEIGHT4 = 0.5;
|
|
20769
20666
|
var memberChats = {
|
|
20770
20667
|
id: "member-chats",
|
|
@@ -20806,7 +20703,7 @@ var memberChats = {
|
|
|
20806
20703
|
}, "candidates")
|
|
20807
20704
|
};
|
|
20808
20705
|
|
|
20809
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20706
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/services/link-scorers/member-dialog.js
|
|
20810
20707
|
var WEIGHT5 = 0.6;
|
|
20811
20708
|
var memberDialog = {
|
|
20812
20709
|
id: "member-dialog",
|
|
@@ -20839,7 +20736,7 @@ var memberDialog = {
|
|
|
20839
20736
|
}, "candidates")
|
|
20840
20737
|
};
|
|
20841
20738
|
|
|
20842
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20739
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/services/project-purposes.js
|
|
20843
20740
|
var BUILT_IN_PURPOSES = ["work", "sales", "support", "other"];
|
|
20844
20741
|
var DEFAULT_PURPOSES = ["work"];
|
|
20845
20742
|
var LINK_PURPOSE = "work";
|
|
@@ -20869,7 +20766,7 @@ var purposeList = /* @__PURE__ */ __name((value, previous = []) => [
|
|
|
20869
20766
|
...value.split(",").map((one2) => one2.trim()).filter(Boolean)
|
|
20870
20767
|
], "purposeList");
|
|
20871
20768
|
|
|
20872
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20769
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/services/project-gathering-around.js
|
|
20873
20770
|
var storedMessageNeighbours = /* @__PURE__ */ __name((messages) => ({
|
|
20874
20771
|
async around(ref, window3) {
|
|
20875
20772
|
const at = parseLocator(ref);
|
|
@@ -20965,7 +20862,7 @@ var storedNeighbours = /* @__PURE__ */ __name((store) => {
|
|
|
20965
20862
|
};
|
|
20966
20863
|
}, "storedNeighbours");
|
|
20967
20864
|
|
|
20968
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20865
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/services/project-gathering-request.js
|
|
20969
20866
|
import { createHash as createHash2 } from "node:crypto";
|
|
20970
20867
|
var DAY2 = 864e5;
|
|
20971
20868
|
var MAX_TIME = 864e13;
|
|
@@ -21227,7 +21124,7 @@ var contextChunks = /* @__PURE__ */ __name((after, before2) => {
|
|
|
21227
21124
|
}, "contextChunks");
|
|
21228
21125
|
var projectUnits = /* @__PURE__ */ __name((plan, window3) => {
|
|
21229
21126
|
const chunks = contextChunks(window3.after, window3.before);
|
|
21230
|
-
const
|
|
21127
|
+
const literal = chunks.flatMap((chunk) => plan.lanes.filter((lane) => lane.query !== null).flatMap((lane) => plan.sources.map((source, sourceIndex) => ({
|
|
21231
21128
|
lane,
|
|
21232
21129
|
source,
|
|
21233
21130
|
sourceIndex,
|
|
@@ -21254,7 +21151,7 @@ var projectUnits = /* @__PURE__ */ __name((plan, window3) => {
|
|
|
21254
21151
|
}
|
|
21255
21152
|
] : [];
|
|
21256
21153
|
}));
|
|
21257
|
-
const units2 = [...
|
|
21154
|
+
const units2 = [...literal, ...bySender, ...linked];
|
|
21258
21155
|
if (units2.length > LIMITS.units)
|
|
21259
21156
|
fail2(`${units2.length} lane \xD7 source \xD7 90-day reads exceed ${LIMITS.units}; narrow the lanes, sources or window`);
|
|
21260
21157
|
return units2;
|
|
@@ -21281,7 +21178,7 @@ var decodeCheckpoint = /* @__PURE__ */ __name((text2, plan) => {
|
|
|
21281
21178
|
return value;
|
|
21282
21179
|
}, "decodeCheckpoint");
|
|
21283
21180
|
|
|
21284
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21181
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/services/project-gathering.js
|
|
21285
21182
|
var terminal = /* @__PURE__ */ new Set(["done", "unavailable", "failed"]);
|
|
21286
21183
|
var PAGE = 20;
|
|
21287
21184
|
var PEOPLE = 20;
|
|
@@ -21685,7 +21582,7 @@ var peopleOf = /* @__PURE__ */ __name((items, senderOf) => {
|
|
|
21685
21582
|
return [...byKey.values()].sort((a, b) => b.items - a.items || a.name.localeCompare(b.name));
|
|
21686
21583
|
}, "peopleOf");
|
|
21687
21584
|
|
|
21688
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21585
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/services/meeting-project-candidate-matching.js
|
|
21689
21586
|
var normalizedText = /* @__PURE__ */ __name((text2) => text2.normalize("NFKC").toLowerCase().replace(/\s+/gu, " "), "normalizedText");
|
|
21690
21587
|
var termsOf = /* @__PURE__ */ __name((entry) => [
|
|
21691
21588
|
{ name: entry.name, kind: "canonical" },
|
|
@@ -21729,7 +21626,7 @@ var matchVocabularyTerms = /* @__PURE__ */ __name((catalog, texts) => {
|
|
|
21729
21626
|
return result.sort((a, b) => Number(a.entry.id) - Number(b.entry.id));
|
|
21730
21627
|
}, "matchVocabularyTerms");
|
|
21731
21628
|
|
|
21732
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21629
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/services/project-gathering-mentions.js
|
|
21733
21630
|
var KINDS = ["project", "tag", "topic"];
|
|
21734
21631
|
var findEvidenceMentions = /* @__PURE__ */ __name(async (vocabulary, gathering, options2 = {}) => {
|
|
21735
21632
|
if (typeof vocabulary?.vocabulary !== "function")
|
|
@@ -21764,7 +21661,7 @@ var findEvidenceMentions = /* @__PURE__ */ __name(async (vocabulary, gathering,
|
|
|
21764
21661
|
continue;
|
|
21765
21662
|
items.push({
|
|
21766
21663
|
target: { kind, id: entry.id, reference, name: entry.name, key: entry.key },
|
|
21767
|
-
matches: matches.map(({ term, source, ambiguous
|
|
21664
|
+
matches: matches.map(({ term, source, ambiguous }) => ({ term, ambiguous, ...source })),
|
|
21768
21665
|
omittedMatches: omitted
|
|
21769
21666
|
});
|
|
21770
21667
|
}
|
|
@@ -21784,7 +21681,7 @@ var findEvidenceMentions = /* @__PURE__ */ __name(async (vocabulary, gathering,
|
|
|
21784
21681
|
};
|
|
21785
21682
|
}, "findEvidenceMentions");
|
|
21786
21683
|
|
|
21787
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21684
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/services/stored-project-gathering.js
|
|
21788
21685
|
var storedChatCount = /* @__PURE__ */ __name((store) => async (account, chatId, { since, until }) => {
|
|
21789
21686
|
const window3 = { since: new Date(since).toISOString(), until: new Date(until - 1).toISOString() };
|
|
21790
21687
|
const [messages, newest, oldest] = await Promise.all([
|
|
@@ -22090,7 +21987,7 @@ var purposeHintOf = /* @__PURE__ */ __name((linked, rows, of) => {
|
|
|
22090
21987
|
return { chat: top.ref, relationship: link4.relationship, items, of };
|
|
22091
21988
|
}, "purposeHintOf");
|
|
22092
21989
|
|
|
22093
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21990
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/services/link-scorers/scan.js
|
|
22094
21991
|
var SCORERS = [chatTitle, aliasHits, memberChats, memberDialog, chatSenders, mailThread];
|
|
22095
21992
|
var PERSON_SCORERS = [emailDomain];
|
|
22096
21993
|
var SCAN_BOT = { bot: "memo-scan", kind: "rule" };
|
|
@@ -22346,18 +22243,18 @@ var referenceOf = /* @__PURE__ */ __name((text2) => {
|
|
|
22346
22243
|
}, "referenceOf");
|
|
22347
22244
|
var rejectedReversed = /* @__PURE__ */ __name(async (store, candidate) => candidate.kind === "related-to" && candidate.to.startsWith("person:") && ((await store.knowledge.relationState(null, { from: candidate.to, to: candidate.from, kind: candidate.kind }))?.rejected ?? false), "rejectedReversed");
|
|
22348
22245
|
|
|
22349
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22246
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/services/media-archive.js
|
|
22350
22247
|
import { setTimeout as sleep } from "node:timers/promises";
|
|
22351
22248
|
|
|
22352
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22249
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/services/media-archive-files.js
|
|
22353
22250
|
import { lstat } from "node:fs/promises";
|
|
22354
22251
|
|
|
22355
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22252
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-store.js
|
|
22356
22253
|
import { createHash as createHash4, randomUUID as randomUUID3 } from "node:crypto";
|
|
22357
22254
|
import { open as open2, rename as rename2, unlink as unlink2 } from "node:fs/promises";
|
|
22358
22255
|
import { join as join5 } from "node:path";
|
|
22359
22256
|
|
|
22360
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22257
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-metadata.js
|
|
22361
22258
|
import { createHash as createHash3 } from "node:crypto";
|
|
22362
22259
|
var metadataLimit = 16384;
|
|
22363
22260
|
var partialIdentity = /* @__PURE__ */ __name((locator) => JSON.stringify([locator.provider, locator.account, locator.occurrenceId, locator.assetId]), "partialIdentity");
|
|
@@ -22417,7 +22314,7 @@ var readPartialMetadata = /* @__PURE__ */ __name(async (path, locator, maxBytes,
|
|
|
22417
22314
|
}
|
|
22418
22315
|
}, "readPartialMetadata");
|
|
22419
22316
|
|
|
22420
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22317
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-writer.js
|
|
22421
22318
|
import { randomUUID as randomUUID2 } from "node:crypto";
|
|
22422
22319
|
import { open, rename, unlink } from "node:fs/promises";
|
|
22423
22320
|
import { join as join4 } from "node:path";
|
|
@@ -22509,7 +22406,7 @@ var partialWriter = /* @__PURE__ */ __name(async (input) => {
|
|
|
22509
22406
|
};
|
|
22510
22407
|
}, "partialWriter");
|
|
22511
22408
|
|
|
22512
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22409
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-store.js
|
|
22513
22410
|
var NativeRecordingPartialStore = class {
|
|
22514
22411
|
static {
|
|
22515
22412
|
__name(this, "NativeRecordingPartialStore");
|
|
@@ -22616,12 +22513,12 @@ var NativeRecordingPartialStore = class {
|
|
|
22616
22513
|
}
|
|
22617
22514
|
};
|
|
22618
22515
|
|
|
22619
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22516
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication.js
|
|
22620
22517
|
import { createHash as createHash5 } from "node:crypto";
|
|
22621
22518
|
import { link as link2 } from "node:fs/promises";
|
|
22622
22519
|
import { basename, dirname as dirname4, join as join7, resolve } from "node:path";
|
|
22623
22520
|
|
|
22624
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22521
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication-files.js
|
|
22625
22522
|
import { unlink as unlink3 } from "node:fs/promises";
|
|
22626
22523
|
var verifiedPublicationFile = /* @__PURE__ */ __name(async (path, expected2, signal, writable = false) => {
|
|
22627
22524
|
signal?.throwIfAborted();
|
|
@@ -22656,7 +22553,7 @@ var commitPublication = /* @__PURE__ */ __name(async (root, partialPath, finalPa
|
|
|
22656
22553
|
signal?.throwIfAborted();
|
|
22657
22554
|
}, "commitPublication");
|
|
22658
22555
|
|
|
22659
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22556
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication-journal.js
|
|
22660
22557
|
import { randomUUID as randomUUID4 } from "node:crypto";
|
|
22661
22558
|
import { open as open3, rename as rename3, unlink as unlink4 } from "node:fs/promises";
|
|
22662
22559
|
import { join as join6 } from "node:path";
|
|
@@ -22729,7 +22626,7 @@ var writePublicationJournal = /* @__PURE__ */ __name(async (root, path, prefix,
|
|
|
22729
22626
|
}
|
|
22730
22627
|
}, "writePublicationJournal");
|
|
22731
22628
|
|
|
22732
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22629
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication.js
|
|
22733
22630
|
var NativeRecordingPublication = class {
|
|
22734
22631
|
static {
|
|
22735
22632
|
__name(this, "NativeRecordingPublication");
|
|
@@ -22802,7 +22699,7 @@ var NativeRecordingPublication = class {
|
|
|
22802
22699
|
}
|
|
22803
22700
|
};
|
|
22804
22701
|
|
|
22805
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22702
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/services/media-archive-manifest.js
|
|
22806
22703
|
import { createHash as createHash6 } from "node:crypto";
|
|
22807
22704
|
import { readdir } from "node:fs/promises";
|
|
22808
22705
|
import { isAbsolute, join as join8, resolve as resolve2 } from "node:path";
|
|
@@ -22889,7 +22786,7 @@ var commitMediaEntry = /* @__PURE__ */ __name((root, one2, beforePublish) => wri
|
|
|
22889
22786
|
beforePublish
|
|
22890
22787
|
}), "commitMediaEntry");
|
|
22891
22788
|
|
|
22892
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22789
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/services/media-archive-files.js
|
|
22893
22790
|
var validator = '"media-completed-v1"';
|
|
22894
22791
|
var maximumFileBytes = 64 * 1024 * 1024 * 1024;
|
|
22895
22792
|
var archiveMediaFile = /* @__PURE__ */ __name(async (root, identity, kind, file2, beforeWrite, signal, metadata = {}) => {
|
|
@@ -22990,7 +22887,7 @@ var archiveMediaFile = /* @__PURE__ */ __name(async (root, identity, kind, file2
|
|
|
22990
22887
|
return entry;
|
|
22991
22888
|
}, "archiveMediaFile");
|
|
22992
22889
|
|
|
22993
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22890
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/services/media-archive-locks.js
|
|
22994
22891
|
import { mkdir, realpath } from "node:fs/promises";
|
|
22995
22892
|
import { join as join9, resolve as resolve3 } from "node:path";
|
|
22996
22893
|
var archiveLocations = /* @__PURE__ */ __name(async (initial, signal) => {
|
|
@@ -23057,7 +22954,7 @@ var withMediaArchiveLocks = /* @__PURE__ */ __name(async (directory2, signal, ru
|
|
|
23057
22954
|
throw new CliError("validation_error", "archive locations changed during locking; run the command again");
|
|
23058
22955
|
}, "withMediaArchiveLocks");
|
|
23059
22956
|
|
|
23060
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22957
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/services/media-archive.js
|
|
23061
22958
|
var validateMediaSince = /* @__PURE__ */ __name((value, flag = "--since-time") => {
|
|
23062
22959
|
if (value === void 0)
|
|
23063
22960
|
return void 0;
|
|
@@ -23210,7 +23107,7 @@ var archiveMedia = /* @__PURE__ */ __name(async (ports, options2) => {
|
|
|
23210
23107
|
}, { create: true });
|
|
23211
23108
|
}, "archiveMedia");
|
|
23212
23109
|
|
|
23213
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23110
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/services/media-archive-move.js
|
|
23214
23111
|
import { realpath as realpath2, unlink as unlink5 } from "node:fs/promises";
|
|
23215
23112
|
import { basename as basename2, dirname as dirname5, join as join10, resolve as resolve4 } from "node:path";
|
|
23216
23113
|
var canonicalDestination = /* @__PURE__ */ __name(async (directory2) => {
|
|
@@ -23363,7 +23260,7 @@ var moveMediaArchive = /* @__PURE__ */ __name(async (options2) => {
|
|
|
23363
23260
|
}, { additional: [target2], createAdditional: !options2.dryRun });
|
|
23364
23261
|
}, "moveMediaArchive");
|
|
23365
23262
|
|
|
23366
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23263
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/services/model-downloads.js
|
|
23367
23264
|
import { writeFileSync as writeFileSync2 } from "node:fs";
|
|
23368
23265
|
import { join as join11 } from "node:path";
|
|
23369
23266
|
var bytesOf2 = /* @__PURE__ */ __name((model) => model.files.reduce((sum2, file2) => sum2 + file2.bytes, 0), "bytesOf");
|
|
@@ -23388,7 +23285,7 @@ var downloadTextModel = /* @__PURE__ */ __name(async (id2, { env, progress = /*
|
|
|
23388
23285
|
`);
|
|
23389
23286
|
await nativeRuntime({ env, progress });
|
|
23390
23287
|
progress(`${model.id}: loading it once to check it works`);
|
|
23391
|
-
const { openEmbedder: openEmbedder2 } = await import("./embed-
|
|
23288
|
+
const { openEmbedder: openEmbedder2 } = await import("./embed-GVVU7N7W.js");
|
|
23392
23289
|
const embedder = await openEmbedder2(model, directory2);
|
|
23393
23290
|
try {
|
|
23394
23291
|
const [vector] = await embedder.embed(["check"], "query");
|
|
@@ -23409,7 +23306,7 @@ var downloadRerankModel = /* @__PURE__ */ __name(async (id2, { env, progress = /
|
|
|
23409
23306
|
}
|
|
23410
23307
|
await nativeRuntime({ env, progress });
|
|
23411
23308
|
progress(`${model.id}: loading it once to check it works`);
|
|
23412
|
-
const { openReranker } = await import("./rerank-
|
|
23309
|
+
const { openReranker } = await import("./rerank-JQHBNTUK.js");
|
|
23413
23310
|
const reranker = await openReranker(model, directory2);
|
|
23414
23311
|
try {
|
|
23415
23312
|
await reranker.score("check", ["check"]);
|
|
@@ -23427,7 +23324,7 @@ var downloadImageModel = /* @__PURE__ */ __name(async (id2, { env, progress = /*
|
|
|
23427
23324
|
await installFiles(placedImage(model, directory2), { progress, ...bytes2 ? { bytes: bytes2 } : {} });
|
|
23428
23325
|
}
|
|
23429
23326
|
progress(`${model.id}: loading it once to check it works`);
|
|
23430
|
-
const { openPictureEmbedder } = await import("./embedder-
|
|
23327
|
+
const { openPictureEmbedder } = await import("./embedder-6BZOYAXV.js");
|
|
23431
23328
|
const embedder = await openPictureEmbedder(model, directory2);
|
|
23432
23329
|
try {
|
|
23433
23330
|
const vector = await embedder.embedQuery("check");
|
|
@@ -23439,7 +23336,7 @@ var downloadImageModel = /* @__PURE__ */ __name(async (id2, { env, progress = /*
|
|
|
23439
23336
|
return { model, directory: directory2 };
|
|
23440
23337
|
}, "downloadImageModel");
|
|
23441
23338
|
|
|
23442
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23339
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/domain/money-words.js
|
|
23443
23340
|
var MONEY_REQUEST = "money-request";
|
|
23444
23341
|
var MONEY_DONE = "money-done";
|
|
23445
23342
|
var PROMISE = "promise";
|
|
@@ -23473,10 +23370,10 @@ var MONEY_WORDS = [
|
|
|
23473
23370
|
}
|
|
23474
23371
|
];
|
|
23475
23372
|
|
|
23476
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23373
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/services/money-words.js
|
|
23477
23374
|
var moneyClassesOf = /* @__PURE__ */ __name((text2) => listsHit(text2, MONEY_WORDS), "moneyClassesOf");
|
|
23478
23375
|
|
|
23479
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23376
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/domain/status-words.js
|
|
23480
23377
|
var words = /* @__PURE__ */ __name((forms) => new RegExp(`(?<![\\p{L}\\p{N}])(?:${forms.join("|")})(?![\\p{L}\\p{N}])`, "iu"), "words");
|
|
23481
23378
|
var MONEY_DONE_FORMS = words([
|
|
23482
23379
|
"\u043E\u043F\u043B\u0430\u0442\u0438\u043B[\u0430\u0438]?",
|
|
@@ -23516,7 +23413,7 @@ var PROMISE_FORMS = words([
|
|
|
23516
23413
|
"estar\xE1 listo"
|
|
23517
23414
|
]);
|
|
23518
23415
|
|
|
23519
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23416
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/services/project-status/items.js
|
|
23520
23417
|
var EXCERPT_CHARS = 80;
|
|
23521
23418
|
var excerpt2 = /* @__PURE__ */ __name((text2) => {
|
|
23522
23419
|
const flat = text2.replace(/\s+/g, " ").trim();
|
|
@@ -23538,7 +23435,7 @@ var whoOf = /* @__PURE__ */ __name((message) => ({
|
|
|
23538
23435
|
var fromOwner = /* @__PURE__ */ __name((message) => message.outgoing === true, "fromOwner");
|
|
23539
23436
|
var day = /* @__PURE__ */ __name((at) => new Date(at).toISOString().slice(0, 10), "day");
|
|
23540
23437
|
|
|
23541
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23438
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/services/project-status/signals/amounts.js
|
|
23542
23439
|
var MONEY = DEFAULT_TASK_CATEGORIES.filter((category) => category.name === "money");
|
|
23543
23440
|
var verbOf = /* @__PURE__ */ __name((text2) => {
|
|
23544
23441
|
if (MONEY_DONE_FORMS.test(text2))
|
|
@@ -23619,7 +23516,7 @@ var amounts = {
|
|
|
23619
23516
|
attention: /* @__PURE__ */ __name((items) => items.flatMap((item2) => item2.chat !== null && item2.data.state === "asked" ? [{ chat: item2.chat, weight: 2, why: "money asked" }] : []), "attention")
|
|
23620
23517
|
};
|
|
23621
23518
|
|
|
23622
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23519
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/services/project-status/signals/children.js
|
|
23623
23520
|
var children = {
|
|
23624
23521
|
id: "children",
|
|
23625
23522
|
version: 1,
|
|
@@ -23648,7 +23545,7 @@ var children = {
|
|
|
23648
23545
|
}, "read")
|
|
23649
23546
|
};
|
|
23650
23547
|
|
|
23651
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23548
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/services/project-status/signals/coverage.js
|
|
23652
23549
|
var coverage = {
|
|
23653
23550
|
id: "coverage",
|
|
23654
23551
|
version: 1,
|
|
@@ -23677,7 +23574,7 @@ var coverage = {
|
|
|
23677
23574
|
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")
|
|
23678
23575
|
};
|
|
23679
23576
|
|
|
23680
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23577
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/services/project-status/signals/payments.js
|
|
23681
23578
|
var holding2 = /* @__PURE__ */ __name((row) => row.review !== "rejected", "holding");
|
|
23682
23579
|
var item = /* @__PURE__ */ __name((row, at, data) => ({
|
|
23683
23580
|
signal: "payments",
|
|
@@ -23727,7 +23624,7 @@ var payments = {
|
|
|
23727
23624
|
}, "read")
|
|
23728
23625
|
};
|
|
23729
23626
|
|
|
23730
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23627
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/services/project-status/signals/promises.js
|
|
23731
23628
|
var PATTERNS_PER_CHAT = 3;
|
|
23732
23629
|
var DAY3 = 864e5;
|
|
23733
23630
|
var KINDS2 = /* @__PURE__ */ new Set(["promise", "request"]);
|
|
@@ -23816,7 +23713,7 @@ var promises = {
|
|
|
23816
23713
|
}, "read")
|
|
23817
23714
|
};
|
|
23818
23715
|
|
|
23819
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23716
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/services/project-status/signals/questions.js
|
|
23820
23717
|
var PER_SIDE = 5;
|
|
23821
23718
|
var WEEK = 7 * 864e5;
|
|
23822
23719
|
var NOBODY = /* @__PURE__ */ new Set();
|
|
@@ -23847,7 +23744,7 @@ var questions2 = {
|
|
|
23847
23744
|
}, "attention")
|
|
23848
23745
|
};
|
|
23849
23746
|
|
|
23850
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23747
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/services/project-status/signals/reply-next.js
|
|
23851
23748
|
var targetOf = /* @__PURE__ */ __name((message, chat, owners) => {
|
|
23852
23749
|
const byId2 = /* @__PURE__ */ __name((id2) => chat.messages.find((one2) => one2.id === id2), "byId");
|
|
23853
23750
|
const quoted = message.replyTo ?? (message.replyToId === void 0 ? void 0 : byId2(message.replyToId));
|
|
@@ -23915,7 +23812,7 @@ var replyNext = {
|
|
|
23915
23812
|
attention: /* @__PURE__ */ __name((items) => items.flatMap((item2) => item2.chat !== null && item2.data.next === "owner" ? [{ chat: item2.chat, weight: 2, why: "your move" }] : []), "attention")
|
|
23916
23813
|
};
|
|
23917
23814
|
|
|
23918
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23815
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/services/project-status/signals/topics.js
|
|
23919
23816
|
var escaped2 = /* @__PURE__ */ __name((text2) => text2.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), "escaped");
|
|
23920
23817
|
var wholeWord = /* @__PURE__ */ __name((word) => new RegExp(`(?<![\\p{L}\\p{N}])${escaped2(word)}(?![\\p{L}\\p{N}])`, "u"), "wholeWord");
|
|
23921
23818
|
var matcherOf = /* @__PURE__ */ __name((query) => {
|
|
@@ -23961,7 +23858,7 @@ var topics = {
|
|
|
23961
23858
|
}, "read")
|
|
23962
23859
|
};
|
|
23963
23860
|
|
|
23964
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23861
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/services/project-status/signals/index.js
|
|
23965
23862
|
var STATUS_SIGNALS = [
|
|
23966
23863
|
replyNext,
|
|
23967
23864
|
questions2,
|
|
@@ -23973,7 +23870,7 @@ var STATUS_SIGNALS = [
|
|
|
23973
23870
|
children
|
|
23974
23871
|
];
|
|
23975
23872
|
|
|
23976
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23873
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/services/project-status/index.js
|
|
23977
23874
|
var DAY4 = 864e5;
|
|
23978
23875
|
var STATUS_WINDOW = 300;
|
|
23979
23876
|
var STATUS_CHATS = 16;
|
|
@@ -24162,7 +24059,7 @@ var projectStatus = /* @__PURE__ */ __name(async (store, input) => {
|
|
|
24162
24059
|
};
|
|
24163
24060
|
}, "projectStatus");
|
|
24164
24061
|
|
|
24165
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24062
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/services/account.js
|
|
24166
24063
|
var accountService = /* @__PURE__ */ __name((deps) => {
|
|
24167
24064
|
const online = /* @__PURE__ */ __name(async (command) => {
|
|
24168
24065
|
if (deps.offline)
|
|
@@ -24234,7 +24131,7 @@ var accountService = /* @__PURE__ */ __name((deps) => {
|
|
|
24234
24131
|
};
|
|
24235
24132
|
}, "accountService");
|
|
24236
24133
|
|
|
24237
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24134
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/domain/send-time.js
|
|
24238
24135
|
var MINUTE = 6e4;
|
|
24239
24136
|
var YEAR = 365 * 24 * 60 * MINUTE;
|
|
24240
24137
|
var DELAY = /^(\d+)(m|h|d)$/;
|
|
@@ -24253,7 +24150,7 @@ var sendTime = /* @__PURE__ */ __name((value, now = Date.now(), flag = "--at-tim
|
|
|
24253
24150
|
return new Date(at - at % MINUTE).toISOString();
|
|
24254
24151
|
}, "sendTime");
|
|
24255
24152
|
|
|
24256
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24153
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/services/admin.js
|
|
24257
24154
|
var recordMembership = /* @__PURE__ */ __name(async (deps, operationId, done2, change, fix, write2) => {
|
|
24258
24155
|
try {
|
|
24259
24156
|
const held = await accountStoreIfOpen(deps);
|
|
@@ -24500,7 +24397,7 @@ var linkLimits = /* @__PURE__ */ __name(({ approval, expires, maxUses }) => {
|
|
|
24500
24397
|
return expires === void 0 ? void 0 : sendTime(expires, Date.now(), "--expire-time");
|
|
24501
24398
|
}, "linkLimits");
|
|
24502
24399
|
|
|
24503
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24400
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/services/mail-search.js
|
|
24504
24401
|
var THREADS_PAGE = 500;
|
|
24505
24402
|
var threadsOf = /* @__PURE__ */ __name(async (store, key) => {
|
|
24506
24403
|
const account = await store.accounts.storedAccount(key).catch(() => void 0);
|
|
@@ -24579,7 +24476,7 @@ var readMail = /* @__PURE__ */ __name(async (store, locator, { before: before2 =
|
|
|
24579
24476
|
return thread.slice(Math.max(0, at - before2), at + after + 1).map((hit) => hit.id === message ? { ...hit, anchor: true } : hit);
|
|
24580
24477
|
}, "readMail");
|
|
24581
24478
|
|
|
24582
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24479
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/services/messages-search.js
|
|
24583
24480
|
var MAIL_FIELDS = /* @__PURE__ */ new Set(["to", "cc", "bcc", "subject", "mailbox", "label", "is"]);
|
|
24584
24481
|
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");
|
|
24585
24482
|
var prepareLucene = /* @__PURE__ */ __name(async (store, account, request, messenger) => {
|
|
@@ -24681,6 +24578,7 @@ var prepareLucene = /* @__PURE__ */ __name(async (store, account, request, messe
|
|
|
24681
24578
|
...request.senders === void 0 ? {} : { senders: request.senders },
|
|
24682
24579
|
...selectedChat ? { chat: selectedChat } : {},
|
|
24683
24580
|
...request.signal ? { signal: request.signal } : {},
|
|
24581
|
+
...request.timeLimitMs === void 0 ? {} : { timeLimitMs: request.timeLimitMs },
|
|
24684
24582
|
newest: request.newest,
|
|
24685
24583
|
...stemmer ? { stemmer } : {},
|
|
24686
24584
|
...unstemmed ? { unstemmed: true } : {},
|
|
@@ -24927,7 +24825,7 @@ var statsLucene = /* @__PURE__ */ __name(async (store, account, request, messeng
|
|
|
24927
24825
|
};
|
|
24928
24826
|
}, "statsLucene");
|
|
24929
24827
|
|
|
24930
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24828
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/services/moment.js
|
|
24931
24829
|
var AGO = /^(\d+)(m|h|d)$/;
|
|
24932
24830
|
var AGO_MS = { m: 6e4, h: 36e5, d: 864e5 };
|
|
24933
24831
|
var DATE = /^\d{4}-\d{2}-\d{2}/;
|
|
@@ -24967,7 +24865,7 @@ var dateWindow = /* @__PURE__ */ __name(({ sinceTime, untilTime, zone, now = Dat
|
|
|
24967
24865
|
};
|
|
24968
24866
|
}, "dateWindow");
|
|
24969
24867
|
|
|
24970
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24868
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/services/rankings-selection.js
|
|
24971
24869
|
var RANKING_SELECTION_BYTES = 64 * 1024;
|
|
24972
24870
|
var object2 = /* @__PURE__ */ __name((value) => value !== null && typeof value === "object" && !Array.isArray(value) ? value : void 0, "object");
|
|
24973
24871
|
function invalid(message = "ranking selection is invalid \u2014 obtain a new drilldown from stats top") {
|
|
@@ -25136,7 +25034,7 @@ var readRankingSelection = /* @__PURE__ */ __name(async (store, input) => {
|
|
|
25136
25034
|
};
|
|
25137
25035
|
}, "readRankingSelection");
|
|
25138
25036
|
|
|
25139
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25037
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/services/search-record.js
|
|
25140
25038
|
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");
|
|
25141
25039
|
var searchRecordOf = /* @__PURE__ */ __name((command, params) => ({
|
|
25142
25040
|
command,
|
|
@@ -25146,7 +25044,7 @@ var searchRecordOf = /* @__PURE__ */ __name((command, params) => ({
|
|
|
25146
25044
|
fieldsVersion: FIELD_VERSION
|
|
25147
25045
|
}), "searchRecordOf");
|
|
25148
25046
|
|
|
25149
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25047
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/services/admin-statistics.js
|
|
25150
25048
|
function invalid2(message) {
|
|
25151
25049
|
throw new CliError("validation_error", message);
|
|
25152
25050
|
}
|
|
@@ -25440,10 +25338,10 @@ var adminStatisticsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
25440
25338
|
}, "evidence")
|
|
25441
25339
|
}), "adminStatisticsService");
|
|
25442
25340
|
|
|
25443
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25341
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/services/archive.js
|
|
25444
25342
|
import { setTimeout as sleep3 } from "node:timers/promises";
|
|
25445
25343
|
|
|
25446
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25344
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/services/backfill-estimate.js
|
|
25447
25345
|
var REQUEST_MS = 400;
|
|
25448
25346
|
var estimateBackfill = /* @__PURE__ */ __name(({ ranges, held, newest, page, maxPages, pauseMs }) => {
|
|
25449
25347
|
const lowest = ranges[0];
|
|
@@ -25466,13 +25364,13 @@ var estimateBackfill = /* @__PURE__ */ __name(({ ranges, held, newest, page, max
|
|
|
25466
25364
|
};
|
|
25467
25365
|
}, "estimateBackfill");
|
|
25468
25366
|
|
|
25469
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25367
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/domain/recovery.js
|
|
25470
25368
|
var withRecovery = /* @__PURE__ */ __name((error) => ({
|
|
25471
25369
|
...error,
|
|
25472
25370
|
retryable: typeof error.retryable === "boolean" ? error.retryable : error.code === "rate_limited" || error.status === 429
|
|
25473
25371
|
}), "withRecovery");
|
|
25474
25372
|
|
|
25475
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25373
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/services/batch.js
|
|
25476
25374
|
var actionable = /* @__PURE__ */ __name((error) => {
|
|
25477
25375
|
if (isCliFailure(error))
|
|
25478
25376
|
return withRecovery({ code: error.code, message: error.message, ...error.details });
|
|
@@ -25555,7 +25453,7 @@ var mergeBatches = /* @__PURE__ */ __name((a, b) => {
|
|
|
25555
25453
|
};
|
|
25556
25454
|
}, "mergeBatches");
|
|
25557
25455
|
|
|
25558
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25456
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/services/patience.js
|
|
25559
25457
|
import { setTimeout as sleep2 } from "node:timers/promises";
|
|
25560
25458
|
var LONGEST_WAIT_MS = 5 * 60 * 1e3;
|
|
25561
25459
|
var patiently = /* @__PURE__ */ __name(async (request, note2, stop) => {
|
|
@@ -25578,7 +25476,7 @@ var patiently = /* @__PURE__ */ __name(async (request, note2, stop) => {
|
|
|
25578
25476
|
}
|
|
25579
25477
|
}, "patiently");
|
|
25580
25478
|
|
|
25581
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25479
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/images/context/index.js
|
|
25582
25480
|
var CONTEXT_MESSAGES = 3;
|
|
25583
25481
|
var CONTEXT_MINUTES = 10;
|
|
25584
25482
|
var MAX_CHARS = 1200;
|
|
@@ -25602,12 +25500,12 @@ var context = {
|
|
|
25602
25500
|
}, "describe")
|
|
25603
25501
|
};
|
|
25604
25502
|
|
|
25605
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25503
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/images/registry.js
|
|
25606
25504
|
var BUILT_INS = [context];
|
|
25607
25505
|
var providers = [...BUILT_INS];
|
|
25608
25506
|
var registeredImageProviders = /* @__PURE__ */ __name(() => providers, "registeredImageProviders");
|
|
25609
25507
|
|
|
25610
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25508
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/services/conversations.js
|
|
25611
25509
|
var READ_PAGE = 5e3;
|
|
25612
25510
|
var CHAIN = 50;
|
|
25613
25511
|
var CONVERSATION_QUERY = {
|
|
@@ -25759,7 +25657,7 @@ var sized = /* @__PURE__ */ __name((size4) => {
|
|
|
25759
25657
|
return size4;
|
|
25760
25658
|
}, "sized");
|
|
25761
25659
|
|
|
25762
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25660
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/services/embeddings-maintenance.js
|
|
25763
25661
|
var REFRESH_BOUNDS = { maxChats: 20, maxChunks: 2e3 };
|
|
25764
25662
|
var MESSAGE_PAGE = 5e3;
|
|
25765
25663
|
var PER_SESSION = 8;
|
|
@@ -25778,7 +25676,7 @@ var embeddingTarget = /* @__PURE__ */ __name((deps, choice = chosenTextModel(dep
|
|
|
25778
25676
|
price: remote.price,
|
|
25779
25677
|
installed: true,
|
|
25780
25678
|
perBatch: PER_REQUEST * concurrency,
|
|
25781
|
-
open: /* @__PURE__ */ __name(async () => (await import("./remote-
|
|
25679
|
+
open: /* @__PURE__ */ __name(async () => (await import("./remote-ODH54UXO.js")).openRemote(remote, apiKey, { concurrency }), "open")
|
|
25782
25680
|
};
|
|
25783
25681
|
}
|
|
25784
25682
|
const model = textModel(choice, deps.env);
|
|
@@ -25795,7 +25693,7 @@ var embeddingTarget = /* @__PURE__ */ __name((deps, choice = chosenTextModel(dep
|
|
|
25795
25693
|
if (!isTextModelInstalled(model, directory2))
|
|
25796
25694
|
throw notDownloaded(model.id);
|
|
25797
25695
|
if (apart) {
|
|
25798
|
-
const { openProcess } = await import("./process-
|
|
25696
|
+
const { openProcess } = await import("./process-APNTXJJE.js");
|
|
25799
25697
|
return openProcess(model, directory2, { threads: threads ?? defaultThreads() });
|
|
25800
25698
|
}
|
|
25801
25699
|
return openEmbedder(model, directory2, { threads: threads ?? defaultThreads() });
|
|
@@ -26084,7 +25982,7 @@ var shaped = /* @__PURE__ */ __name(({ chatId, builtAt, algorithmVersion, pendin
|
|
|
26084
25982
|
return { ...one2, state };
|
|
26085
25983
|
}, "shaped");
|
|
26086
25984
|
|
|
26087
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25985
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/services/search-catchup.js
|
|
26088
25986
|
var CATCH_UP_BOUNDS = { maxChunks: 500, maxMessages: 1e4, timeMs: 3e4 };
|
|
26089
25987
|
var validateCatchUpBounds = /* @__PURE__ */ __name((options2) => {
|
|
26090
25988
|
for (const [key, value, maximum] of [
|
|
@@ -26137,7 +26035,7 @@ var catchUpSearch = /* @__PURE__ */ __name(async (deps, chat, options2, signal,
|
|
|
26137
26035
|
}
|
|
26138
26036
|
}, "catchUpSearch");
|
|
26139
26037
|
|
|
26140
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26038
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/services/archive.js
|
|
26141
26039
|
var pushed = /* @__PURE__ */ __name((deps, what) => {
|
|
26142
26040
|
if (deps.reads === "store") {
|
|
26143
26041
|
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`);
|
|
@@ -26518,7 +26416,7 @@ var timeOfKey = /* @__PURE__ */ __name(async (store, account, chatId, key, byTim
|
|
|
26518
26416
|
return message?.timestamp ?? fallback;
|
|
26519
26417
|
}, "timeOfKey");
|
|
26520
26418
|
|
|
26521
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26419
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/services/archive-gaps.js
|
|
26522
26420
|
import { createHash as createHash7, randomUUID as randomUUID5 } from "node:crypto";
|
|
26523
26421
|
var GAP_BOUNDS = { maxGaps: 5, limit: 500, timeMs: 3e4 };
|
|
26524
26422
|
var validateRepair = /* @__PURE__ */ __name((messenger, options2) => {
|
|
@@ -26655,16 +26553,16 @@ var gapsService = /* @__PURE__ */ __name((deps) => {
|
|
|
26655
26553
|
return { plan, repair };
|
|
26656
26554
|
}, "gapsService");
|
|
26657
26555
|
|
|
26658
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26556
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/services/attachments.js
|
|
26659
26557
|
import { createHash as createHash9 } from "node:crypto";
|
|
26660
26558
|
import { constants as constants2, mkdirSync as mkdirSync5 } from "node:fs";
|
|
26661
26559
|
import { lstat as lstat4, open as open6, readFile, stat as stat2 } from "node:fs/promises";
|
|
26662
26560
|
|
|
26663
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26561
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/attachments/directory.js
|
|
26664
26562
|
import { lstat as lstat2, readdir as readdir2, realpath as realpath3 } from "node:fs/promises";
|
|
26665
26563
|
import { basename as basename4, join as join12, relative as relative2, sep as sep2 } from "node:path";
|
|
26666
26564
|
|
|
26667
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26565
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/sends/upload.js
|
|
26668
26566
|
import { openAsBlob, realpathSync } from "node:fs";
|
|
26669
26567
|
import { open as open4, stat } from "node:fs/promises";
|
|
26670
26568
|
import { basename as basename3, dirname as dirname6, extname, isAbsolute as isAbsolute2, relative, resolve as resolve5, sep } from "node:path";
|
|
@@ -26866,7 +26764,7 @@ var readStickerFile = /* @__PURE__ */ __name(async (path, maxBytes, read2) => {
|
|
|
26866
26764
|
return { name, source };
|
|
26867
26765
|
}, "readStickerFile");
|
|
26868
26766
|
|
|
26869
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26767
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/attachments/directory.js
|
|
26870
26768
|
var MAX_FILES = 1e4;
|
|
26871
26769
|
var directoryPaths = /* @__PURE__ */ __name(async (store, chat, directory2, app, env) => {
|
|
26872
26770
|
if (refusedPlace(directory2, app, env))
|
|
@@ -26935,15 +26833,15 @@ var directoryPaths = /* @__PURE__ */ __name(async (store, chat, directory2, app,
|
|
|
26935
26833
|
return choices;
|
|
26936
26834
|
}, "directoryPaths");
|
|
26937
26835
|
|
|
26938
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26836
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/attachments/documents.js
|
|
26939
26837
|
import { posix } from "node:path";
|
|
26940
26838
|
|
|
26941
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26839
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/attachments/container.js
|
|
26942
26840
|
import { setImmediate as tick } from "node:timers/promises";
|
|
26943
26841
|
import { crc32 } from "node:zlib";
|
|
26944
26842
|
var import_xmldom = __toESM(require_lib(), 1);
|
|
26945
26843
|
|
|
26946
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26844
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/attachments/encoding.js
|
|
26947
26845
|
var import_chardet = __toESM(require_lib2(), 1);
|
|
26948
26846
|
var import_iconv_lite = __toESM(require_lib3(), 1);
|
|
26949
26847
|
var SAMPLE = 65536;
|
|
@@ -27045,7 +26943,7 @@ var decodeXml = /* @__PURE__ */ __name((bytes2) => {
|
|
|
27045
26943
|
return result.text;
|
|
27046
26944
|
}, "decodeXml");
|
|
27047
26945
|
|
|
27048
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26946
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/attachments/container.js
|
|
27049
26947
|
var MAX_PART = 10 * 1024 * 1024;
|
|
27050
26948
|
var MAX_ENTRIES = 1e3;
|
|
27051
26949
|
var decoder = new TextDecoder("utf-8", { fatal: true });
|
|
@@ -27260,7 +27158,7 @@ var elements = /* @__PURE__ */ __name((node, name, namespace) => {
|
|
|
27260
27158
|
return found;
|
|
27261
27159
|
}, "elements");
|
|
27262
27160
|
|
|
27263
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27161
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/attachments/sheets.js
|
|
27264
27162
|
var columnName = /* @__PURE__ */ __name((column) => {
|
|
27265
27163
|
let name = "";
|
|
27266
27164
|
for (let rest = column; rest > 0; rest = Math.floor((rest - 1) / 26))
|
|
@@ -27315,7 +27213,7 @@ var sheetText = /* @__PURE__ */ __name((sheets2, maxChars = MAX_TEXT_CHARS) => {
|
|
|
27315
27213
|
return { text: parts.join("").trim(), truncated: false };
|
|
27316
27214
|
}, "sheetText");
|
|
27317
27215
|
|
|
27318
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27216
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/attachments/documents.js
|
|
27319
27217
|
var OFFICE = "urn:oasis:names:tc:opendocument:xmlns:office:1.0";
|
|
27320
27218
|
var TEXT = "urn:oasis:names:tc:opendocument:xmlns:text:1.0";
|
|
27321
27219
|
var TABLE = "urn:oasis:names:tc:opendocument:xmlns:table:1.0";
|
|
@@ -27715,10 +27613,10 @@ var readDocument = /* @__PURE__ */ __name(async (bytes2, kind, signal) => {
|
|
|
27715
27613
|
}
|
|
27716
27614
|
}, "readDocument");
|
|
27717
27615
|
|
|
27718
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27616
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/attachments/extract.js
|
|
27719
27617
|
import { extname as extname3 } from "node:path";
|
|
27720
27618
|
|
|
27721
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27619
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/readers/engine.js
|
|
27722
27620
|
import { readFileSync as readFileSync4 } from "node:fs";
|
|
27723
27621
|
import { dirname as dirname7, extname as extname2, join as join13 } from "node:path";
|
|
27724
27622
|
import { fileURLToPath } from "node:url";
|
|
@@ -27779,7 +27677,7 @@ var derived = /* @__PURE__ */ __name((bytes2, extractor, read2) => {
|
|
|
27779
27677
|
}
|
|
27780
27678
|
}, "derived");
|
|
27781
27679
|
|
|
27782
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27680
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/readers/image/index.js
|
|
27783
27681
|
var IMAGES = /* @__PURE__ */ new Set([".jpg", ".jpeg", ".png", ".webp", ".gif", ".heic", ".tif", ".tiff", ".bmp"]);
|
|
27784
27682
|
var image2 = {
|
|
27785
27683
|
id: "image",
|
|
@@ -27788,7 +27686,7 @@ var image2 = {
|
|
|
27788
27686
|
read: /* @__PURE__ */ __name(async () => ({ status: "needs-agent" }), "read")
|
|
27789
27687
|
};
|
|
27790
27688
|
|
|
27791
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27689
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/readers/doc/index.js
|
|
27792
27690
|
var OLE = "\xD0\xCF\xE0\xA1\xB1\xE1";
|
|
27793
27691
|
var doc = {
|
|
27794
27692
|
id: "doc",
|
|
@@ -27800,7 +27698,7 @@ var doc = {
|
|
|
27800
27698
|
}), "read")
|
|
27801
27699
|
};
|
|
27802
27700
|
|
|
27803
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27701
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/readers/docx/index.js
|
|
27804
27702
|
var DOCX = "application/vnd.openxmlformats-officedocument.wordprocessingml.document";
|
|
27805
27703
|
var docx = {
|
|
27806
27704
|
id: "docx",
|
|
@@ -27813,7 +27711,7 @@ var docx = {
|
|
|
27813
27711
|
}), "read")
|
|
27814
27712
|
};
|
|
27815
27713
|
|
|
27816
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27714
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/attachments/markup.js
|
|
27817
27715
|
var import_iconv_lite2 = __toESM(require_lib3(), 1);
|
|
27818
27716
|
var RTF_SKIPPED = /* @__PURE__ */ new Set([
|
|
27819
27717
|
"fonttbl",
|
|
@@ -27989,7 +27887,7 @@ var htmlText = /* @__PURE__ */ __name((source) => {
|
|
|
27989
27887
|
}, "htmlText");
|
|
27990
27888
|
var safeChar = /* @__PURE__ */ __name((code, fallback) => code > 0 && code <= 1114111 ? String.fromCodePoint(code) : fallback, "safeChar");
|
|
27991
27889
|
|
|
27992
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27890
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/readers/html/page.js
|
|
27993
27891
|
var clean = /* @__PURE__ */ __name((value) => typeof value === "string" ? value.replace(/\s+/g, " ").trim() : "", "clean");
|
|
27994
27892
|
var namesIn = /* @__PURE__ */ __name((value) => [value].flat().map((entry) => typeof entry === "string" ? clean(entry) : clean(entry?.name)).filter(Boolean).join(", "), "namesIn");
|
|
27995
27893
|
var jsonLdNodes = /* @__PURE__ */ __name((document) => {
|
|
@@ -28045,7 +27943,7 @@ var markdownSections = /* @__PURE__ */ __name((text2) => {
|
|
|
28045
27943
|
return found.map((section, index) => ({ ...section, end: found[index + 1]?.start ?? text2.length }));
|
|
28046
27944
|
}, "markdownSections");
|
|
28047
27945
|
|
|
28048
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27946
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/readers/html/index.js
|
|
28049
27947
|
var HTML = /* @__PURE__ */ new Set([".html", ".htm", ".xhtml"]);
|
|
28050
27948
|
var first = /* @__PURE__ */ __name((...values) => values.find((value) => typeof value === "string" && value !== ""), "first");
|
|
28051
27949
|
var loaded = /* @__PURE__ */ __name(async (load, name) => {
|
|
@@ -28116,7 +28014,7 @@ var html = {
|
|
|
28116
28014
|
}, "read")
|
|
28117
28015
|
};
|
|
28118
28016
|
|
|
28119
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28017
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/readers/office/index.js
|
|
28120
28018
|
var office = {
|
|
28121
28019
|
id: "office",
|
|
28122
28020
|
version: documentExtractor("odt"),
|
|
@@ -28127,7 +28025,7 @@ var office = {
|
|
|
28127
28025
|
}, "read")
|
|
28128
28026
|
};
|
|
28129
28027
|
|
|
28130
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28028
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/readers/pdf/index.js
|
|
28131
28029
|
var pdf = {
|
|
28132
28030
|
id: "pdf",
|
|
28133
28031
|
version: "unpdf",
|
|
@@ -28194,7 +28092,7 @@ var pdf = {
|
|
|
28194
28092
|
}), "read")
|
|
28195
28093
|
};
|
|
28196
28094
|
|
|
28197
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28095
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/readers/plain/index.js
|
|
28198
28096
|
var PLAIN = /* @__PURE__ */ new Set([".txt", ".md", ".markdown", ".csv", ".tsv", ".json", ".log"]);
|
|
28199
28097
|
var isPlain = /* @__PURE__ */ __name((hint) => PLAIN.has(extensionOf(hint)) || hint.mime?.startsWith("text/") || hint.mime === "application/json", "isPlain");
|
|
28200
28098
|
var readPlain = /* @__PURE__ */ __name((bytes2) => {
|
|
@@ -28214,7 +28112,7 @@ var plain = {
|
|
|
28214
28112
|
read: /* @__PURE__ */ __name(async (bytes2) => readPlain(bytes2), "read")
|
|
28215
28113
|
};
|
|
28216
28114
|
|
|
28217
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28115
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/readers/rtf/index.js
|
|
28218
28116
|
var rtf = {
|
|
28219
28117
|
id: "rtf",
|
|
28220
28118
|
version: "v1",
|
|
@@ -28222,10 +28120,10 @@ var rtf = {
|
|
|
28222
28120
|
read: /* @__PURE__ */ __name(async (bytes2) => derived(bytes2, "rtf:v1", rtfText), "read")
|
|
28223
28121
|
};
|
|
28224
28122
|
|
|
28225
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28123
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/readers/sheets/index.js
|
|
28226
28124
|
import { basename as basename5 } from "node:path";
|
|
28227
28125
|
|
|
28228
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28126
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/attachments/csv-spans.js
|
|
28229
28127
|
var delimitedSpans = /* @__PURE__ */ __name((text2, delimiter, maxCells = 1e4) => {
|
|
28230
28128
|
const cells = [];
|
|
28231
28129
|
let row = 1, column = 1, start = 0, quoted = false, truncated = false;
|
|
@@ -28263,7 +28161,7 @@ var delimitedSpans = /* @__PURE__ */ __name((text2, delimiter, maxCells = 1e4) =
|
|
|
28263
28161
|
return { cells, truncated };
|
|
28264
28162
|
}, "delimitedSpans");
|
|
28265
28163
|
|
|
28266
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28164
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/readers/sheets/index.js
|
|
28267
28165
|
var DELIMITED = {
|
|
28268
28166
|
".csv": ",",
|
|
28269
28167
|
".tsv": " ",
|
|
@@ -28302,7 +28200,7 @@ var sheets = {
|
|
|
28302
28200
|
}, "read")
|
|
28303
28201
|
};
|
|
28304
28202
|
|
|
28305
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28203
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/readers/registry.js
|
|
28306
28204
|
var BUILT_INS2 = [office, pdf, docx, doc, rtf, html, sheets, plain, image2];
|
|
28307
28205
|
var HEAD_BYTES = 1024;
|
|
28308
28206
|
var readers = [...BUILT_INS2];
|
|
@@ -28312,7 +28210,7 @@ var readWithRegistry = /* @__PURE__ */ __name(async (bytes2, hint, context2) =>
|
|
|
28312
28210
|
return reader ? reader.read(bytes2, hint, context2) : { status: "unsupported" };
|
|
28313
28211
|
}, "readWithRegistry");
|
|
28314
28212
|
|
|
28315
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28213
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/attachments/extract.js
|
|
28316
28214
|
var importEngine = /* @__PURE__ */ __name((name) => importFrom(new URL("attachments/extract.js", import.meta.resolve("@wirecat/cli-core")).href, name), "importEngine");
|
|
28317
28215
|
var extensionOf2 = /* @__PURE__ */ __name(({ name, path }) => extname3(name ?? path).toLowerCase(), "extensionOf");
|
|
28318
28216
|
var extractText = /* @__PURE__ */ __name(async (bytes2, hint, load, signal, env = process.env) => {
|
|
@@ -29391,7 +29289,7 @@ function imageSize(input) {
|
|
|
29391
29289
|
}
|
|
29392
29290
|
__name(imageSize, "imageSize");
|
|
29393
29291
|
|
|
29394
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29292
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/attachments/ocr.js
|
|
29395
29293
|
var MAX_PAGES = 20;
|
|
29396
29294
|
var MAX_PIXELS = 2e7;
|
|
29397
29295
|
var cancelled2 = /* @__PURE__ */ __name((signal) => {
|
|
@@ -29542,7 +29440,7 @@ var ocrPdf = /* @__PURE__ */ __name(async (bytes2, pipeline2, load, signal) => {
|
|
|
29542
29440
|
}
|
|
29543
29441
|
}, "ocrPdf");
|
|
29544
29442
|
|
|
29545
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29443
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/attachments/pdf-preview.js
|
|
29546
29444
|
var pdfPreview = /* @__PURE__ */ __name(async (bytes2, page, signal, load = importEngine, env = process.env) => {
|
|
29547
29445
|
const limits = pdfPreviewLimits(env);
|
|
29548
29446
|
const cancelled3 = /* @__PURE__ */ __name(() => {
|
|
@@ -29619,7 +29517,7 @@ var pdfPreview = /* @__PURE__ */ __name(async (bytes2, page, signal, load = impo
|
|
|
29619
29517
|
}
|
|
29620
29518
|
}, "pdfPreview");
|
|
29621
29519
|
|
|
29622
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29520
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/attachments/transfer.js
|
|
29623
29521
|
import { createHash as createHash8 } from "node:crypto";
|
|
29624
29522
|
import { constants } from "node:fs";
|
|
29625
29523
|
import { lstat as lstat3, open as open5 } from "node:fs/promises";
|
|
@@ -29727,7 +29625,7 @@ var transferMime = /* @__PURE__ */ __name((head, hint, name = null) => {
|
|
|
29727
29625
|
return hint !== null && /^[a-z0-9.+-]+\/[a-z0-9.+-]+$/i.test(hint) ? hint : "application/octet-stream";
|
|
29728
29626
|
}, "transferMime");
|
|
29729
29627
|
|
|
29730
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29628
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/services/file-download.js
|
|
29731
29629
|
import { createWriteStream, mkdirSync as mkdirSync4 } from "node:fs";
|
|
29732
29630
|
import { link as link3, rm } from "node:fs/promises";
|
|
29733
29631
|
import { join as join14, resolve as resolve6 } from "node:path";
|
|
@@ -29841,7 +29739,7 @@ var save = /* @__PURE__ */ __name(async (file2, directory2, fallbackName, { uniq
|
|
|
29841
29739
|
}
|
|
29842
29740
|
}, "save");
|
|
29843
29741
|
|
|
29844
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29742
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/services/attachments.js
|
|
29845
29743
|
var ATTACHMENT_QUERY = {
|
|
29846
29744
|
entity: "attachment",
|
|
29847
29745
|
backend: "sql",
|
|
@@ -30264,7 +30162,7 @@ var attachmentsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
30264
30162
|
}, "setText")
|
|
30265
30163
|
}), "attachmentsService");
|
|
30266
30164
|
|
|
30267
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30165
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/services/chat-documents.js
|
|
30268
30166
|
var chatDocumentsService = /* @__PURE__ */ __name((deps) => ({
|
|
30269
30167
|
list: /* @__PURE__ */ __name(async (chat, { limit, offset, ref }) => {
|
|
30270
30168
|
const store = await accountStore(deps);
|
|
@@ -30294,7 +30192,7 @@ var chatDocumentsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
30294
30192
|
}, "list")
|
|
30295
30193
|
}), "chatDocumentsService");
|
|
30296
30194
|
|
|
30297
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30195
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/services/retention.js
|
|
30298
30196
|
var observationDuration = /* @__PURE__ */ __name((text2, flag) => {
|
|
30299
30197
|
const match = /^(\d+(?:\.\d+)?)([smhdw])$/.exec(text2);
|
|
30300
30198
|
const units2 = { s: 1e3, m: 6e4, h: 36e5, d: 864e5, w: 6048e5 };
|
|
@@ -30381,7 +30279,7 @@ var isRetentionSelection = /* @__PURE__ */ __name((selection) => {
|
|
|
30381
30279
|
}
|
|
30382
30280
|
}, "isRetentionSelection");
|
|
30383
30281
|
|
|
30384
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30282
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/services/counters.js
|
|
30385
30283
|
var counterFields = /* @__PURE__ */ __name((text2 = "views,reactions,comments") => {
|
|
30386
30284
|
const fields = text2.split(",").map((one2) => one2.trim());
|
|
30387
30285
|
if (!fields.length || fields.some((one2) => !COUNTER_FIELDS.includes(one2)) || new Set(fields).size !== fields.length)
|
|
@@ -30588,7 +30486,7 @@ var countersService = /* @__PURE__ */ __name((deps) => {
|
|
|
30588
30486
|
};
|
|
30589
30487
|
}, "countersService");
|
|
30590
30488
|
|
|
30591
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30489
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/services/search-refresh.js
|
|
30592
30490
|
var SYNC_KEY = "messages.sync-first";
|
|
30593
30491
|
var SYNC_BOUNDS = { maxChats: 5, timeMs: 3e4, maxMessages: 500 };
|
|
30594
30492
|
var keyOf3 = /* @__PURE__ */ __name((chat) => JSON.stringify([chat.account.provider, chat.account.account, chat.chatId]), "keyOf");
|
|
@@ -30720,7 +30618,7 @@ var withRefresh = /* @__PURE__ */ __name((found, refreshed) => ({
|
|
|
30720
30618
|
...!refreshed || refreshed.complete ? {} : { coverage: { ...found.coverage, state: "stale" } }
|
|
30721
30619
|
}), "withRefresh");
|
|
30722
30620
|
|
|
30723
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30621
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/services/embeddings-search.js
|
|
30724
30622
|
var CANDIDATES = 50;
|
|
30725
30623
|
var WORD_HITS = 200;
|
|
30726
30624
|
var RRF_K = 60;
|
|
@@ -30995,13 +30893,13 @@ var meanOf = /* @__PURE__ */ __name((vectors) => {
|
|
|
30995
30893
|
return mean2.map((value) => value / length);
|
|
30996
30894
|
}, "meanOf");
|
|
30997
30895
|
|
|
30998
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30896
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/services/embeddings.js
|
|
30999
30897
|
var embeddingsService = /* @__PURE__ */ __name((deps) => ({
|
|
31000
30898
|
...embeddingsMaintenance(deps),
|
|
31001
30899
|
...embeddingsSearch(deps)
|
|
31002
30900
|
}), "embeddingsService");
|
|
31003
30901
|
|
|
31004
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30902
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/services/folders.js
|
|
31005
30903
|
var foldersService = /* @__PURE__ */ __name((deps) => {
|
|
31006
30904
|
const online = /* @__PURE__ */ __name(async (command) => {
|
|
31007
30905
|
if (deps.offline)
|
|
@@ -31142,7 +31040,7 @@ var foldersService = /* @__PURE__ */ __name((deps) => {
|
|
|
31142
31040
|
};
|
|
31143
31041
|
}, "foldersService");
|
|
31144
31042
|
|
|
31145
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31043
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/services/inbox.js
|
|
31146
31044
|
var INBOX_CHATS = 20;
|
|
31147
31045
|
var REVIEW_DAYS = 3;
|
|
31148
31046
|
var UNANSWERED_HOURS = 24;
|
|
@@ -31350,7 +31248,7 @@ var inboxService = /* @__PURE__ */ __name((deps) => {
|
|
|
31350
31248
|
};
|
|
31351
31249
|
}, "inboxService");
|
|
31352
31250
|
|
|
31353
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31251
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/services/mentions.js
|
|
31354
31252
|
var REVIEW_COUNT = 500;
|
|
31355
31253
|
var mentionsService = /* @__PURE__ */ __name((deps) => {
|
|
31356
31254
|
const located = /* @__PURE__ */ __name(async () => {
|
|
@@ -31429,7 +31327,7 @@ var mentionsService = /* @__PURE__ */ __name((deps) => {
|
|
|
31429
31327
|
};
|
|
31430
31328
|
}, "mentionsService");
|
|
31431
31329
|
|
|
31432
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31330
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/domain/formatting.js
|
|
31433
31331
|
var invalid3 = /* @__PURE__ */ __name(() => new CliError("validation_error", "the messenger formatter returned invalid text spans"), "invalid");
|
|
31434
31332
|
var validateFormattedText = /* @__PURE__ */ __name((formatted2) => {
|
|
31435
31333
|
const { text: text2, spans } = formatted2;
|
|
@@ -31489,7 +31387,7 @@ var visibleFormattedText = /* @__PURE__ */ __name((formatted2) => {
|
|
|
31489
31387
|
};
|
|
31490
31388
|
}, "visibleFormattedText");
|
|
31491
31389
|
|
|
31492
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31390
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/domain/message-link.js
|
|
31493
31391
|
var fileLinks = /* @__PURE__ */ __name((attachments) => hitFiles(attachments).map(({ position, kind, name }) => ({
|
|
31494
31392
|
position,
|
|
31495
31393
|
kind,
|
|
@@ -31538,7 +31436,7 @@ var validatePermalink = /* @__PURE__ */ __name((link4) => {
|
|
|
31538
31436
|
return { url: link4.url, access: link4.access, reason: link4.reason };
|
|
31539
31437
|
}, "validatePermalink");
|
|
31540
31438
|
|
|
31541
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31439
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/domain/pin-duration.js
|
|
31542
31440
|
var spokenSeconds = /* @__PURE__ */ __name((seconds) => {
|
|
31543
31441
|
if (seconds % 86400 === 0 && seconds > 86400)
|
|
31544
31442
|
return `${seconds / 86400}d`;
|
|
@@ -31570,7 +31468,7 @@ var pinDurationOf = /* @__PURE__ */ __name((value, allowed, flag = "--expire-tim
|
|
|
31570
31468
|
return seconds;
|
|
31571
31469
|
}, "pinDurationOf");
|
|
31572
31470
|
|
|
31573
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31471
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/sends/send-as.js
|
|
31574
31472
|
var sendAsCheck = /* @__PURE__ */ __name((connection, sendAs) => {
|
|
31575
31473
|
if (sendAs === void 0) {
|
|
31576
31474
|
const saved = connection.savedSender?.bind(connection);
|
|
@@ -31595,7 +31493,7 @@ var typedSendAs = /* @__PURE__ */ __name((typed) => {
|
|
|
31595
31493
|
return sendAs;
|
|
31596
31494
|
}, "typedSendAs");
|
|
31597
31495
|
|
|
31598
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31496
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/search/total.js
|
|
31599
31497
|
var TOTAL_CAP = 1e4;
|
|
31600
31498
|
var totalOf = /* @__PURE__ */ __name((count4, shown, hasMore, exact = true) => {
|
|
31601
31499
|
const least = shown + (hasMore ? 1 : 0);
|
|
@@ -31606,7 +31504,7 @@ var totalOf = /* @__PURE__ */ __name((count4, shown, hasMore, exact = true) => {
|
|
|
31606
31504
|
return { value: count4, relation: exact ? "eq" : "gte" };
|
|
31607
31505
|
}, "totalOf");
|
|
31608
31506
|
|
|
31609
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31507
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/search/lucene/meaning-parts.js
|
|
31610
31508
|
var WORD_FIELDS = /* @__PURE__ */ new Set(["text", "exact"]);
|
|
31611
31509
|
var fieldsOfQuery = /* @__PURE__ */ __name((root, everything) => {
|
|
31612
31510
|
let narrows = false;
|
|
@@ -31635,7 +31533,7 @@ var meaningWords = /* @__PURE__ */ __name((root) => {
|
|
|
31635
31533
|
return wanted(root).join(" ").trim();
|
|
31636
31534
|
}, "meaningWords");
|
|
31637
31535
|
|
|
31638
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31536
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/search/question-plan.js
|
|
31639
31537
|
var words2 = /* @__PURE__ */ __name((text2) => normalize(text2).match(/[\p{L}\p{N}]+/gu) ?? [], "words");
|
|
31640
31538
|
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"));
|
|
31641
31539
|
var questionWord = /\b(?:what|which|how|who|where|when|can|could|should)\b|(?:^|\s)(?:сколько|какой|какая|какие|какое|кто|кому|кем|где|когда|как|что|можно|может|могут|ли)(?:\s|$)/iu;
|
|
@@ -31768,7 +31666,7 @@ var questionLookup = /* @__PURE__ */ __name((text2) => {
|
|
|
31768
31666
|
return terms.length ? anyOfTerms(terms, plan.scope) : void 0;
|
|
31769
31667
|
}, "questionLookup");
|
|
31770
31668
|
|
|
31771
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31669
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/services/messages-combined.js
|
|
31772
31670
|
var COMBINED_DEFAULTS = { candidateDepth: 300, rrfK: 60, rerank: "all", chatCap: 0 };
|
|
31773
31671
|
var tokensOf = /* @__PURE__ */ __name((text2) => normalize(text2).match(/[\p{L}\p{N}\p{Co}\p{M}]+/gu) ?? [], "tokensOf");
|
|
31774
31672
|
var searchCombined = /* @__PURE__ */ __name(async (store, account, request, messenger = {}, options2 = COMBINED_DEFAULTS) => {
|
|
@@ -31783,8 +31681,9 @@ var searchCombined = /* @__PURE__ */ __name(async (store, account, request, mess
|
|
|
31783
31681
|
const check2 = /* @__PURE__ */ __name(() => {
|
|
31784
31682
|
if (request.signal?.aborted)
|
|
31785
31683
|
throw new CliError("validation_error", "search was aborted", { reason: "query.aborted", complete: false });
|
|
31786
|
-
|
|
31787
|
-
|
|
31684
|
+
const limitMs = request.timeLimitMs ?? QUERY_LIMITS.milliseconds;
|
|
31685
|
+
if (performance.now() - started > limitMs)
|
|
31686
|
+
outOfTime(limitMs);
|
|
31788
31687
|
}, "check");
|
|
31789
31688
|
check2();
|
|
31790
31689
|
const spans = request.ast === void 0 && !request.exact && request.text !== void 0 ? implicitTextTerms(request.text) : /* @__PURE__ */ new Set();
|
|
@@ -31961,7 +31860,7 @@ var signals = /* @__PURE__ */ __name((hit, terms, corrections, execution, mode,
|
|
|
31961
31860
|
return mode === "coverage" ? coverage2 * 4 : mode === "proximity" ? proximity : mode === "phrase" ? phrase2 : coverage2 * 4 + proximity + phrase2;
|
|
31962
31861
|
}, "signals");
|
|
31963
31862
|
|
|
31964
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31863
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/services/messages-discovery.js
|
|
31965
31864
|
var MEANING_DEPTH = 100;
|
|
31966
31865
|
var RRF_K2 = 60;
|
|
31967
31866
|
var RERANK_DEPTH = 50;
|
|
@@ -32010,8 +31909,9 @@ var searchDiscovery = /* @__PURE__ */ __name(async (store, account, asked, messe
|
|
|
32010
31909
|
const check2 = /* @__PURE__ */ __name(() => {
|
|
32011
31910
|
if (request.signal?.aborted)
|
|
32012
31911
|
throw new CliError("validation_error", "search was aborted", { reason: "query.aborted", complete: false });
|
|
32013
|
-
|
|
32014
|
-
|
|
31912
|
+
const limitMs = request.timeLimitMs ?? QUERY_LIMITS.milliseconds;
|
|
31913
|
+
if (performance.now() - started > limitMs)
|
|
31914
|
+
outOfTime(limitMs);
|
|
32015
31915
|
}, "check");
|
|
32016
31916
|
const union2 = /* @__PURE__ */ new Map();
|
|
32017
31917
|
let truncated = false;
|
|
@@ -32286,7 +32186,7 @@ var mixedWithReranker = /* @__PURE__ */ __name((head, scores) => {
|
|
|
32286
32186
|
})).sort((a, b) => b.mixed - a.mixed).map(({ hit }) => hit);
|
|
32287
32187
|
}, "mixedWithReranker");
|
|
32288
32188
|
|
|
32289
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32189
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/services/thread-context.js
|
|
32290
32190
|
var THREAD_BOUNDS = { maxHops: 8, maxMessages: 50, maxBytes: 65536, withinMs: 864e5 };
|
|
32291
32191
|
var bytes = /* @__PURE__ */ __name((items, links) => Buffer.byteLength(JSON.stringify({ items, links }), "utf8"), "bytes");
|
|
32292
32192
|
var threadBounds = /* @__PURE__ */ __name((options2 = {}) => {
|
|
@@ -32485,7 +32385,7 @@ var readThreadContext = /* @__PURE__ */ __name(async (store, account, chat, mess
|
|
|
32485
32385
|
return result;
|
|
32486
32386
|
}, "readThreadContext");
|
|
32487
32387
|
|
|
32488
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32388
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/services/messages-archive-search.js
|
|
32489
32389
|
var SEARCH_FILL_MS = 200;
|
|
32490
32390
|
var statsStore = /* @__PURE__ */ __name(async (store, account, request, messenger = {}) => {
|
|
32491
32391
|
const stop = Date.now() + SEARCH_FILL_MS;
|
|
@@ -32554,7 +32454,7 @@ var accountOf2 = /* @__PURE__ */ __name((hit) => {
|
|
|
32554
32454
|
}, "accountOf");
|
|
32555
32455
|
var keyOf4 = /* @__PURE__ */ __name(({ provider, account }) => `${provider}/${account}`, "keyOf");
|
|
32556
32456
|
|
|
32557
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32457
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/services/meaning-model.js
|
|
32558
32458
|
var meaningModel = /* @__PURE__ */ __name(async (store, env = process.env) => {
|
|
32559
32459
|
const chosen = chosenTextModel(env);
|
|
32560
32460
|
if (chosen.from === "chosen" || chosen.id !== DEFAULT_TEXT_MODEL)
|
|
@@ -32569,12 +32469,12 @@ var meaningModel = /* @__PURE__ */ __name(async (store, env = process.env) => {
|
|
|
32569
32469
|
return (counts.get(before2) ?? 0) > (counts.get(now) ?? 0) ? previous.id : current.id;
|
|
32570
32470
|
}, "meaningModel");
|
|
32571
32471
|
|
|
32572
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32472
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/services/pictures.js
|
|
32573
32473
|
import { createHash as createHash10 } from "node:crypto";
|
|
32574
32474
|
import { readFile as readFile2, stat as stat3 } from "node:fs/promises";
|
|
32575
32475
|
import { setTimeout as sleep4 } from "node:timers/promises";
|
|
32576
32476
|
|
|
32577
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32477
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/domain/models.js
|
|
32578
32478
|
var GROUP_SETTINGS = [
|
|
32579
32479
|
"allCanPin",
|
|
32580
32480
|
"onlyAdminsAdd",
|
|
@@ -32588,7 +32488,7 @@ var ADMIN_RIGHTS = ["read", "members", "admins", "info", "pin", "link", "post",
|
|
|
32588
32488
|
var senderIsMe = /* @__PURE__ */ __name((message, account) => message.outgoing === true || message.senderId !== null && String(message.senderId) === account, "senderIsMe");
|
|
32589
32489
|
var MEDIA_KINDS = ["photo", "video", "file", "audio", "link"];
|
|
32590
32490
|
|
|
32591
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32491
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/services/pictures.js
|
|
32592
32492
|
var PICTURE_MAX_BYTES = 25 * 1024 * 1024;
|
|
32593
32493
|
var PICTURE_FLOOR = 0.25;
|
|
32594
32494
|
var PAGE4 = 50;
|
|
@@ -32605,7 +32505,7 @@ var picturesService = /* @__PURE__ */ __name((deps) => {
|
|
|
32605
32505
|
const directory2 = imageModelsDirectory(deps.env);
|
|
32606
32506
|
if (!isImageModelInstalled(model2, directory2))
|
|
32607
32507
|
throw new CliError("not_found", missingModel(model2.id), { reason: "model.not-downloaded", model: model2.id });
|
|
32608
|
-
const { openPictureEmbedder } = await import("./embedder-
|
|
32508
|
+
const { openPictureEmbedder } = await import("./embedder-6BZOYAXV.js");
|
|
32609
32509
|
return openPictureEmbedder(model2, directory2);
|
|
32610
32510
|
}, "open");
|
|
32611
32511
|
const embedder = /* @__PURE__ */ __name(() => {
|
|
@@ -32802,7 +32702,7 @@ var withPictures = /* @__PURE__ */ __name((messages, pictures) => ({
|
|
|
32802
32702
|
}, "search")
|
|
32803
32703
|
}), "withPictures");
|
|
32804
32704
|
|
|
32805
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32705
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/services/messages-meaning.js
|
|
32806
32706
|
var meaningText = /* @__PURE__ */ __name((question) => {
|
|
32807
32707
|
try {
|
|
32808
32708
|
const text2 = questionLookup(question) === void 0 ? question : questionText(question);
|
|
@@ -32881,7 +32781,7 @@ var meaningLane = /* @__PURE__ */ __name((deps) => async (question, accounts, sh
|
|
|
32881
32781
|
}
|
|
32882
32782
|
}, "meaningLane");
|
|
32883
32783
|
|
|
32884
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32784
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/services/messages-rerank.js
|
|
32885
32785
|
var rerankLane = /* @__PURE__ */ __name((deps) => {
|
|
32886
32786
|
const choice = deps.reranker ?? DEFAULT_RERANK_MODEL;
|
|
32887
32787
|
if (choice === "off")
|
|
@@ -32893,9 +32793,9 @@ var rerankLane = /* @__PURE__ */ __name((deps) => {
|
|
|
32893
32793
|
return { skipped: { reason: `${model.id} is not downloaded`, step: "models.download", model: model.id } };
|
|
32894
32794
|
try {
|
|
32895
32795
|
const warm = deps.embedders;
|
|
32896
|
-
const reranker = warm ? await warm.reranker(`rerank:${model.id}`, async () => (await import("./process-
|
|
32796
|
+
const reranker = warm ? await warm.reranker(`rerank:${model.id}`, async () => (await import("./process-APNTXJJE.js")).openRerankerProcess(model, directory2, {
|
|
32897
32797
|
threads: defaultThreads()
|
|
32898
|
-
})) : await (await import("./rerank-
|
|
32798
|
+
})) : await (await import("./rerank-JQHBNTUK.js")).openReranker(model, directory2);
|
|
32899
32799
|
return {
|
|
32900
32800
|
model: model.id,
|
|
32901
32801
|
score: /* @__PURE__ */ __name((question, passages) => reranker.score(plainWords(question), passages), "score"),
|
|
@@ -32915,7 +32815,7 @@ var rerankLane = /* @__PURE__ */ __name((deps) => {
|
|
|
32915
32815
|
};
|
|
32916
32816
|
}, "rerankLane");
|
|
32917
32817
|
|
|
32918
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32818
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/search/question-period.js
|
|
32919
32819
|
var DAY5 = 864e5;
|
|
32920
32820
|
var SPAN = { start: 0, end: 0 };
|
|
32921
32821
|
var phrase = /* @__PURE__ */ __name((source) => new RegExp(`(?<![\\p{L}\\p{N}])(?:${source})(?![\\p{L}\\p{N}])`, "giu"), "phrase");
|
|
@@ -33040,17 +32940,17 @@ var questionPeriod = /* @__PURE__ */ __name((text2, now, zone) => {
|
|
|
33040
32940
|
};
|
|
33041
32941
|
}, "questionPeriod");
|
|
33042
32942
|
|
|
33043
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32943
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/services/document-pictures.js
|
|
33044
32944
|
var openPictureEmbedderFor = /* @__PURE__ */ __name(async ({ env, command } = {}) => {
|
|
33045
32945
|
const model = imageModel(DEFAULT_IMAGE_MODEL);
|
|
33046
32946
|
const directory2 = imageModelsDirectory(env);
|
|
33047
32947
|
if (!isImageModelInstalled(model, directory2))
|
|
33048
32948
|
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 });
|
|
33049
|
-
const { openPictureEmbedder } = await import("./embedder-
|
|
32949
|
+
const { openPictureEmbedder } = await import("./embedder-6BZOYAXV.js");
|
|
33050
32950
|
return openPictureEmbedder(model, directory2);
|
|
33051
32951
|
}, "openPictureEmbedderFor");
|
|
33052
32952
|
|
|
33053
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32953
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/services/document-source.js
|
|
33054
32954
|
var documentSource = /* @__PURE__ */ __name((note2, accounts, profiles, file2) => {
|
|
33055
32955
|
const metadata = note2.frontMatter;
|
|
33056
32956
|
const account = accounts.find(({ id: id2 }) => String(id2) === note2.folderId);
|
|
@@ -33065,7 +32965,7 @@ var documentSource = /* @__PURE__ */ __name((note2, accounts, profiles, file2) =
|
|
|
33065
32965
|
};
|
|
33066
32966
|
}, "documentSource");
|
|
33067
32967
|
|
|
33068
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32968
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/embeddings/keys.js
|
|
33069
32969
|
var endpointKeyName = /* @__PURE__ */ __name((baseUrl) => {
|
|
33070
32970
|
const host = new URL(baseUrl).host;
|
|
33071
32971
|
return ["openai", "anthropic"].includes(host) ? `endpoint:${host}` : host;
|
|
@@ -33098,7 +32998,7 @@ var embeddingKeys = /* @__PURE__ */ __name((app, env = process.env, keyring) =>
|
|
|
33098
32998
|
};
|
|
33099
32999
|
}, "embeddingKeys");
|
|
33100
33000
|
|
|
33101
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33001
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/models/openai.js
|
|
33102
33002
|
var options = strictObject({
|
|
33103
33003
|
temperature: range(0, 2),
|
|
33104
33004
|
top_p: range(0, 1),
|
|
@@ -33152,7 +33052,7 @@ var openai = {
|
|
|
33152
33052
|
}), "complete")
|
|
33153
33053
|
};
|
|
33154
33054
|
|
|
33155
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33055
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/models/index.js
|
|
33156
33056
|
var modelGateway = /* @__PURE__ */ __name((deps) => ({
|
|
33157
33057
|
complete: /* @__PURE__ */ __name(async (request) => {
|
|
33158
33058
|
if (deps.signal?.aborted)
|
|
@@ -33167,7 +33067,7 @@ var modelGateway = /* @__PURE__ */ __name((deps) => ({
|
|
|
33167
33067
|
if (!adapter && target2.provider === "openai")
|
|
33168
33068
|
adapter = openai;
|
|
33169
33069
|
if (!adapter && target2.provider === "anthropic")
|
|
33170
|
-
adapter = (await import("./anthropic-
|
|
33070
|
+
adapter = (await import("./anthropic-W7JXDZPL.js")).anthropic;
|
|
33171
33071
|
if (!adapter)
|
|
33172
33072
|
throw new CliError("validation_error", `no model adapter for ${target2.provider}`);
|
|
33173
33073
|
if (request.images !== void 0 && adapter.images !== true)
|
|
@@ -33219,17 +33119,20 @@ var modelGateway = /* @__PURE__ */ __name((deps) => ({
|
|
|
33219
33119
|
}, "complete")
|
|
33220
33120
|
}), "modelGateway");
|
|
33221
33121
|
|
|
33222
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33122
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/services/enrichment-setting.js
|
|
33223
33123
|
var SECTION = "enrichment";
|
|
33224
33124
|
var ENRICHMENT_PROVIDERS = ["openai", "anthropic"];
|
|
33225
33125
|
var DEFAULT_BASE_URLS = {
|
|
33226
33126
|
openai: "https://api.openai.com/v1",
|
|
33227
33127
|
anthropic: "https://api.anthropic.com"
|
|
33228
33128
|
};
|
|
33229
|
-
var
|
|
33129
|
+
var MODEL_CHOICE = {
|
|
33230
33130
|
provider: picklist(ENRICHMENT_PROVIDERS),
|
|
33231
33131
|
model: pipe(string(), trim(), minLength(1), maxLength(200)),
|
|
33232
|
-
base_url: optional(pipe(string(), check((value) => endpoint(value), "use an HTTP/S endpoint without credentials, query or fragment")))
|
|
33132
|
+
base_url: optional(pipe(string(), check((value) => endpoint(value), "use an HTTP/S endpoint without credentials, query or fragment")))
|
|
33133
|
+
};
|
|
33134
|
+
var Setting = strictObject({
|
|
33135
|
+
...MODEL_CHOICE,
|
|
33233
33136
|
/** When the owner agreed that records go to this provider and endpoint; the setting exists only with it. */
|
|
33234
33137
|
consented_at: pipe(string(), isoTimestamp())
|
|
33235
33138
|
});
|
|
@@ -33291,7 +33194,7 @@ var costOf = /* @__PURE__ */ __name((usage, setting) => {
|
|
|
33291
33194
|
return price ? Math.round((usage.input * price.input + usage.output * price.output) * 1e6) / 1e6 : null;
|
|
33292
33195
|
}, "costOf");
|
|
33293
33196
|
|
|
33294
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33197
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/services/enrichment.js
|
|
33295
33198
|
var ENRICH_PER_RUN = 600;
|
|
33296
33199
|
var BATCH = 20;
|
|
33297
33200
|
var CONCURRENCY = 4;
|
|
@@ -33425,7 +33328,7 @@ var enrichRecords = /* @__PURE__ */ __name(async (store, options2) => {
|
|
|
33425
33328
|
let failedBatches = 0;
|
|
33426
33329
|
let reason;
|
|
33427
33330
|
let reasonId;
|
|
33428
|
-
const
|
|
33331
|
+
const ask2 = /* @__PURE__ */ __name(async (batch) => {
|
|
33429
33332
|
const answer = await gateway.complete({
|
|
33430
33333
|
purpose: "enrichment",
|
|
33431
33334
|
system: SYSTEM,
|
|
@@ -33463,7 +33366,7 @@ var enrichRecords = /* @__PURE__ */ __name(async (store, options2) => {
|
|
|
33463
33366
|
while (reason === void 0 && next < batches.length) {
|
|
33464
33367
|
const batch = batches[next++];
|
|
33465
33368
|
try {
|
|
33466
|
-
await
|
|
33369
|
+
await ask2(batch);
|
|
33467
33370
|
} catch (error) {
|
|
33468
33371
|
failed += batch.length;
|
|
33469
33372
|
const id2 = reasonIdOf(error);
|
|
@@ -33538,7 +33441,7 @@ var enrichmentState = /* @__PURE__ */ __name(async (store, env, estimateFor, key
|
|
|
33538
33441
|
};
|
|
33539
33442
|
}, "enrichmentState");
|
|
33540
33443
|
|
|
33541
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33444
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/services/notes-title-tier.js
|
|
33542
33445
|
var plainQueryWords = /* @__PURE__ */ __name((query) => {
|
|
33543
33446
|
let root;
|
|
33544
33447
|
try {
|
|
@@ -33565,7 +33468,7 @@ var titleTiers = /* @__PURE__ */ __name((hits, words4) => {
|
|
|
33565
33468
|
return [...hits].sort((a, b) => rank(a) - rank(b));
|
|
33566
33469
|
}, "titleTiers");
|
|
33567
33470
|
|
|
33568
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33471
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/services/notes-search.js
|
|
33569
33472
|
var storeQuery = /* @__PURE__ */ __name(async (store, text2, { exact, timezone } = {}) => resolvedQuery(store, parsedQuery(text2, exact), timezone), "storeQuery");
|
|
33570
33473
|
var parsedQuery = /* @__PURE__ */ __name((text2, exact) => validateFields(parseLucene(text2, { ...SEARCH_QUERY, defaultField: exact ? "exact" : "text" })).root, "parsedQuery");
|
|
33571
33474
|
var resolvedQuery = /* @__PURE__ */ __name(async (store, root, timezone) => {
|
|
@@ -34048,7 +33951,7 @@ var searchNotesOf = /* @__PURE__ */ __name(async (store, account, text2, { accou
|
|
|
34048
33951
|
};
|
|
34049
33952
|
}, "searchNotesOf");
|
|
34050
33953
|
|
|
34051
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33954
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/services/events-search.js
|
|
34052
33955
|
var MAX_EVENTS_OFFSET = 1e3;
|
|
34053
33956
|
var iso = /* @__PURE__ */ __name((at) => at === null ? null : new Date(at).toISOString(), "iso");
|
|
34054
33957
|
var accountIdsOf = /* @__PURE__ */ __name(async (store, accounts) => {
|
|
@@ -34166,7 +34069,7 @@ var searchEvents = /* @__PURE__ */ __name(async (store, query, { limit = 20, off
|
|
|
34166
34069
|
};
|
|
34167
34070
|
}, "searchEvents");
|
|
34168
34071
|
|
|
34169
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34072
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/services/search-all-business.js
|
|
34170
34073
|
var OWN_BUSINESS = { provider: "business", account: INTERNAL_NOTES };
|
|
34171
34074
|
var BUSINESS_WORDS_ONLY = "invoices, payments, orders, contracts, subscriptions, products and wallets are found by the words of their numbers and names only";
|
|
34172
34075
|
var placeOf = /* @__PURE__ */ __name(({ source, imported }) => source ?? (imported === void 0 ? OWN_BUSINESS : { provider: imported, account: "" }), "placeOf");
|
|
@@ -34197,7 +34100,7 @@ var searchBusiness = /* @__PURE__ */ __name(async (store, { words: words4, anyWo
|
|
|
34197
34100
|
};
|
|
34198
34101
|
}, "searchBusiness");
|
|
34199
34102
|
|
|
34200
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34103
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/services/meeting-hit-search.js
|
|
34201
34104
|
var refreshMeetingIndex = /* @__PURE__ */ __name(async (meetings, accountId, signal) => {
|
|
34202
34105
|
let before2 = Number.POSITIVE_INFINITY;
|
|
34203
34106
|
for (; ; ) {
|
|
@@ -34259,7 +34162,7 @@ var searchMeetingHits = /* @__PURE__ */ __name(async (store, query, request, opt
|
|
|
34259
34162
|
return { ...result, selection };
|
|
34260
34163
|
}, "searchMeetingHits");
|
|
34261
34164
|
|
|
34262
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34165
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/services/search-all-meetings.js
|
|
34263
34166
|
var MOST_HITS_PER_MEETING = 3;
|
|
34264
34167
|
var PAGE_ROWS = 200;
|
|
34265
34168
|
var MOST_PAGES = 25;
|
|
@@ -34487,17 +34390,17 @@ var titleItem = /* @__PURE__ */ __name((account, meeting, query) => ({
|
|
|
34487
34390
|
foundBy: ["title"]
|
|
34488
34391
|
}), "titleItem");
|
|
34489
34392
|
|
|
34490
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34393
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/services/search-harder.js
|
|
34491
34394
|
var SECTION2 = "search_harder";
|
|
34492
|
-
var
|
|
34493
|
-
|
|
34494
|
-
|
|
34395
|
+
var HARDER_MODELS = {
|
|
34396
|
+
anthropic: "claude-haiku-5-5",
|
|
34397
|
+
openai: "gpt-4o-mini"
|
|
34398
|
+
};
|
|
34495
34399
|
var HARDER_CANDIDATES = 30;
|
|
34496
34400
|
var HARDER_CHARS = 400;
|
|
34497
34401
|
var TIMEOUT_MS2 = 5e3;
|
|
34498
34402
|
var Setting2 = strictObject({
|
|
34499
|
-
|
|
34500
|
-
model: pipe(string(), trim(), minLength(1), maxLength(200)),
|
|
34403
|
+
...MODEL_CHOICE,
|
|
34501
34404
|
/** When the owner agreed that a `--harder` search sends its question and hits; the setting exists only with it. */
|
|
34502
34405
|
consented_at: pipe(string(), isoTimestamp())
|
|
34503
34406
|
});
|
|
@@ -34512,7 +34415,9 @@ var readHarderSetting = /* @__PURE__ */ __name((env) => {
|
|
|
34512
34415
|
return checked2.output;
|
|
34513
34416
|
}, "readHarderSetting");
|
|
34514
34417
|
var writeHarderSetting = /* @__PURE__ */ __name((env, setting) => writeSharedSection(enrichmentSettingPath(env), SECTION2, setting === void 0 ? void 0 : parse(Setting2, setting)), "writeHarderSetting");
|
|
34418
|
+
var harderRanking = /* @__PURE__ */ __name(({ reason: _reason, ...rest }) => rest, "harderRanking");
|
|
34515
34419
|
var PROMPT = "Today is {as_of}. A person searches their own archive of messages, mails, notes, calendar entries and phone records with the question below. Here are {n} candidate records, numbered, in the data.\n\nQuestion: {question}\n\nWhich records help answer the question? List their numbers, most useful first, at most ten; an empty list if none does.";
|
|
34420
|
+
var JSON_SHAPE = '\n\nAnswer with JSON only, in the form {"records": [numbers]}.';
|
|
34516
34421
|
var FORMAT = {
|
|
34517
34422
|
type: "json_schema",
|
|
34518
34423
|
schema: {
|
|
@@ -34523,11 +34428,22 @@ var FORMAT = {
|
|
|
34523
34428
|
}
|
|
34524
34429
|
};
|
|
34525
34430
|
var Reply2 = object({ records: array(pipe(number(), integer())) });
|
|
34431
|
+
var jsonOf = /* @__PURE__ */ __name((text2) => {
|
|
34432
|
+
try {
|
|
34433
|
+
return JSON.parse(text2);
|
|
34434
|
+
} catch {
|
|
34435
|
+
const start = text2.indexOf("{");
|
|
34436
|
+
const end = text2.lastIndexOf("}");
|
|
34437
|
+
if (start < 0 || end <= start)
|
|
34438
|
+
throw new Error("no JSON in the answer");
|
|
34439
|
+
return JSON.parse(text2.slice(start, end + 1));
|
|
34440
|
+
}
|
|
34441
|
+
}, "jsonOf");
|
|
34526
34442
|
var recordLine = /* @__PURE__ */ __name((hit, i) => `[${i}] (${hit.timestamp?.slice(0, 10) ?? "undated"}) ${`${hit.title ? `${hit.title}
|
|
34527
34443
|
` : ""}${hit.text.slice(0, HARDER_CHARS)}`.replace(/\s*\n\s*/g, " ")}`, "recordLine");
|
|
34528
34444
|
var REASON_TEXT2 = {
|
|
34529
34445
|
"harder.no-consent": "the owner has not agreed to send searches to a hosted model",
|
|
34530
|
-
"harder.no-key": "no
|
|
34446
|
+
"harder.no-key": "no key for the provider",
|
|
34531
34447
|
"harder.bad-setting": "the search_harder setting cannot be read; nothing was sent",
|
|
34532
34448
|
"harder.later-page": "--harder reorders the first page only; nothing was sent",
|
|
34533
34449
|
"harder.too-few": "fewer than two hits to reorder; nothing was sent",
|
|
@@ -34551,102 +34467,151 @@ var reasonOf = /* @__PURE__ */ __name((error, timedOut) => {
|
|
|
34551
34467
|
return "harder.rate-limited";
|
|
34552
34468
|
return "harder.error";
|
|
34553
34469
|
}, "reasonOf");
|
|
34554
|
-
var
|
|
34555
|
-
|
|
34470
|
+
var UNSET = {
|
|
34471
|
+
provider: "anthropic",
|
|
34472
|
+
model: HARDER_MODELS.anthropic,
|
|
34473
|
+
endpoint: enrichmentEndpoint({ provider: "anthropic" })
|
|
34474
|
+
};
|
|
34475
|
+
var harderAccess = /* @__PURE__ */ __name(({ env, command, ...options2 }) => {
|
|
34556
34476
|
let setting;
|
|
34557
|
-
let unreadable;
|
|
34558
34477
|
try {
|
|
34559
34478
|
setting = readHarderSetting(env);
|
|
34560
34479
|
} catch (error) {
|
|
34561
|
-
unreadable = error instanceof CliError ? error.message : REASON_TEXT2["harder.bad-setting"];
|
|
34480
|
+
const unreadable = error instanceof CliError ? error.message : REASON_TEXT2["harder.bad-setting"];
|
|
34481
|
+
return { ready: false, ...UNSET, reason_id: "harder.bad-setting", reason: `${unreadable}; nothing was sent` };
|
|
34562
34482
|
}
|
|
34563
|
-
const model = setting?.model ?? DEFAULT_HARDER_MODEL;
|
|
34564
|
-
const plain2 = /* @__PURE__ */ __name((reason_id, extra = {}, reason = REASON_TEXT2[reason_id]) => ({
|
|
34565
|
-
items: [...hits],
|
|
34566
|
-
harder: {
|
|
34567
|
-
applied: false,
|
|
34568
|
-
provider: HARDER_PROVIDER,
|
|
34569
|
-
model,
|
|
34570
|
-
sent: 0,
|
|
34571
|
-
cost_usd: 0,
|
|
34572
|
-
ms: Date.now() - started,
|
|
34573
|
-
...extra,
|
|
34574
|
-
reason,
|
|
34575
|
-
reason_id
|
|
34576
|
-
}
|
|
34577
|
-
}), "plain");
|
|
34578
|
-
if (laterPage)
|
|
34579
|
-
return plain2("harder.later-page");
|
|
34580
|
-
if (unreadable !== void 0)
|
|
34581
|
-
return plain2("harder.bad-setting", {}, `${unreadable}; nothing was sent`);
|
|
34582
34483
|
const tool = command ?? "memo";
|
|
34583
34484
|
if (!setting)
|
|
34584
|
-
return
|
|
34585
|
-
|
|
34485
|
+
return {
|
|
34486
|
+
ready: false,
|
|
34487
|
+
...UNSET,
|
|
34488
|
+
reason_id: "harder.no-consent",
|
|
34489
|
+
reason: `${REASON_TEXT2["harder.no-consent"]}: \`${tool} models search-consents set <provider> --yes\`; nothing was sent`
|
|
34490
|
+
};
|
|
34491
|
+
const chosen = {
|
|
34492
|
+
provider: setting.provider,
|
|
34493
|
+
model: setting.model,
|
|
34494
|
+
endpoint: enrichmentEndpoint(setting),
|
|
34495
|
+
custom: setting.base_url !== void 0
|
|
34496
|
+
};
|
|
34497
|
+
let key;
|
|
34586
34498
|
try {
|
|
34587
|
-
|
|
34499
|
+
key = keyLookup({ env, ...options2 }, setting)?.key;
|
|
34588
34500
|
} catch {
|
|
34589
|
-
return
|
|
34501
|
+
return {
|
|
34502
|
+
ready: false,
|
|
34503
|
+
...chosen,
|
|
34504
|
+
reason_id: "harder.error",
|
|
34505
|
+
reason: `the ${setting.provider} key could not be read; nothing was sent`
|
|
34506
|
+
};
|
|
34590
34507
|
}
|
|
34591
|
-
if (
|
|
34592
|
-
return
|
|
34593
|
-
|
|
34594
|
-
|
|
34595
|
-
|
|
34508
|
+
if (key === void 0 && !chosen.custom)
|
|
34509
|
+
return {
|
|
34510
|
+
ready: false,
|
|
34511
|
+
...chosen,
|
|
34512
|
+
reason_id: "harder.no-key",
|
|
34513
|
+
reason: `no ${setting.provider} key: \`${tool} models keys set ${setting.provider}\` or set ${keyVariable(setting.provider)}; nothing was sent`
|
|
34514
|
+
};
|
|
34515
|
+
return { ready: true, ...chosen, ...key === void 0 ? {} : { key } };
|
|
34516
|
+
}, "harderAccess");
|
|
34517
|
+
var ask = /* @__PURE__ */ __name(async (access, options2, request) => {
|
|
34596
34518
|
const limit = new AbortController();
|
|
34597
34519
|
const timer = setTimeout(() => limit.abort(), options2.timeoutMs ?? TIMEOUT_MS2);
|
|
34598
34520
|
const gateway = modelGateway({
|
|
34599
|
-
resolve: /* @__PURE__ */ __name(() => ({ provider:
|
|
34600
|
-
consent: /* @__PURE__ */ __name((_request, chosen) => chosen.provider ===
|
|
34601
|
-
key: /* @__PURE__ */ __name(() =>
|
|
34521
|
+
resolve: /* @__PURE__ */ __name(() => ({ provider: access.provider, model: access.model, baseUrl: access.endpoint }), "resolve"),
|
|
34522
|
+
consent: /* @__PURE__ */ __name((_request, chosen) => chosen.provider === access.provider && chosen.baseUrl === access.endpoint, "consent"),
|
|
34523
|
+
key: /* @__PURE__ */ __name(() => access.key, "key"),
|
|
34602
34524
|
signal: limit.signal,
|
|
34603
34525
|
...options2.adapters ? { adapters: options2.adapters } : {},
|
|
34604
34526
|
...options2.fetch ? { fetch: options2.fetch } : {}
|
|
34605
34527
|
});
|
|
34606
|
-
const
|
|
34528
|
+
const { format, ...rest } = request;
|
|
34529
|
+
const settings = access.provider === "anthropic" ? { thinking: { type: "disabled" }, output_config: { effort: "low", ...format ? { format } : {} } } : access.custom ? void 0 : { temperature: 0, ...format ? { response_format: { type: "json_object" } } : {} };
|
|
34607
34530
|
try {
|
|
34608
34531
|
const answer = await gateway.complete({
|
|
34609
|
-
|
|
34610
|
-
|
|
34611
|
-
|
|
34612
|
-
maxTokens: 300,
|
|
34613
|
-
options: { thinking: { type: "disabled" }, output_config: { effort: "low", format: FORMAT } }
|
|
34532
|
+
...rest,
|
|
34533
|
+
...format && access.provider !== "anthropic" ? { prompt: `${rest.prompt}${JSON_SHAPE}` } : {},
|
|
34534
|
+
...settings ? { options: settings } : {}
|
|
34614
34535
|
});
|
|
34615
34536
|
const cost = costOf(answer.usage ?? { input: answer.tokens, output: 0 }, {
|
|
34616
|
-
provider:
|
|
34617
|
-
model:
|
|
34537
|
+
provider: access.provider,
|
|
34538
|
+
model: access.model,
|
|
34539
|
+
...access.custom ? { base_url: access.endpoint } : {}
|
|
34618
34540
|
});
|
|
34619
|
-
|
|
34620
|
-
try {
|
|
34621
|
-
picked = parse(Reply2, JSON.parse(answer.text)).records;
|
|
34622
|
-
} catch {
|
|
34623
|
-
return plain2("harder.bad-reply", { ...sent, cost_usd: cost });
|
|
34624
|
-
}
|
|
34625
|
-
const first2 = [...new Set(picked.filter((i) => i >= 0 && i < candidates.length))];
|
|
34626
|
-
const chosen = new Set(first2);
|
|
34627
|
-
return {
|
|
34628
|
-
items: [
|
|
34629
|
-
...first2.map((i) => candidates[i]),
|
|
34630
|
-
...candidates.filter((_, i) => !chosen.has(i)),
|
|
34631
|
-
...hits.slice(HARDER_CANDIDATES)
|
|
34632
|
-
],
|
|
34633
|
-
harder: {
|
|
34634
|
-
applied: true,
|
|
34635
|
-
provider: HARDER_PROVIDER,
|
|
34636
|
-
model: setting.model,
|
|
34637
|
-
...sent,
|
|
34638
|
-
cost_usd: cost,
|
|
34639
|
-
ms: Date.now() - started
|
|
34640
|
-
}
|
|
34641
|
-
};
|
|
34541
|
+
return { text: answer.text, cost, ...answer.usage ? { usage: answer.usage } : {} };
|
|
34642
34542
|
} catch (error) {
|
|
34643
|
-
return
|
|
34543
|
+
return { reason_id: reasonOf(error, limit.signal.aborted) };
|
|
34644
34544
|
} finally {
|
|
34645
34545
|
clearTimeout(timer);
|
|
34646
34546
|
}
|
|
34547
|
+
}, "ask");
|
|
34548
|
+
var reorderHarder = /* @__PURE__ */ __name(async (question, hits, { laterPage, access: given, ...asking }) => {
|
|
34549
|
+
const started = Date.now();
|
|
34550
|
+
const access = laterPage ? void 0 : given ?? harderAccess(asking);
|
|
34551
|
+
const plain2 = /* @__PURE__ */ __name((reason_id, extra = {}, reason = REASON_TEXT2[reason_id]) => ({
|
|
34552
|
+
items: [...hits],
|
|
34553
|
+
harder: {
|
|
34554
|
+
applied: false,
|
|
34555
|
+
provider: (access ?? UNSET).provider,
|
|
34556
|
+
model: (access ?? UNSET).model,
|
|
34557
|
+
endpoint: (access ?? UNSET).endpoint,
|
|
34558
|
+
sent: 0,
|
|
34559
|
+
cost_usd: 0,
|
|
34560
|
+
ms: Date.now() - started,
|
|
34561
|
+
...extra,
|
|
34562
|
+
reason,
|
|
34563
|
+
reason_id
|
|
34564
|
+
}
|
|
34565
|
+
}), "plain");
|
|
34566
|
+
if (!access)
|
|
34567
|
+
return plain2("harder.later-page");
|
|
34568
|
+
if (!access.ready)
|
|
34569
|
+
return plain2(access.reason_id, {}, access.reason);
|
|
34570
|
+
const candidates = hits.slice(0, HARDER_CANDIDATES);
|
|
34571
|
+
if (candidates.length < 2)
|
|
34572
|
+
return plain2("harder.too-few");
|
|
34573
|
+
const sent = { sent: candidates.length };
|
|
34574
|
+
const answer = await ask(access, asking, {
|
|
34575
|
+
purpose: "search-harder",
|
|
34576
|
+
prompt: PROMPT.replace("{as_of}", new Date(asking.now).toISOString().slice(0, 10)).replace("{n}", String(candidates.length)).replace("{question}", () => question),
|
|
34577
|
+
data: candidates.map(recordLine).join("\n"),
|
|
34578
|
+
maxTokens: 300,
|
|
34579
|
+
format: FORMAT
|
|
34580
|
+
});
|
|
34581
|
+
if ("reason_id" in answer)
|
|
34582
|
+
return plain2(answer.reason_id, { ...sent, cost_usd: null });
|
|
34583
|
+
let picked;
|
|
34584
|
+
try {
|
|
34585
|
+
picked = parse(Reply2, jsonOf(answer.text)).records;
|
|
34586
|
+
} catch {
|
|
34587
|
+
return plain2("harder.bad-reply", {
|
|
34588
|
+
...sent,
|
|
34589
|
+
cost_usd: answer.cost,
|
|
34590
|
+
...answer.usage ? { usage: answer.usage } : {}
|
|
34591
|
+
});
|
|
34592
|
+
}
|
|
34593
|
+
const first2 = [...new Set(picked.filter((i) => i >= 0 && i < candidates.length))];
|
|
34594
|
+
const chosen = new Set(first2);
|
|
34595
|
+
return {
|
|
34596
|
+
items: [
|
|
34597
|
+
...first2.map((i) => candidates[i]),
|
|
34598
|
+
...candidates.filter((_, i) => !chosen.has(i)),
|
|
34599
|
+
...hits.slice(HARDER_CANDIDATES)
|
|
34600
|
+
],
|
|
34601
|
+
harder: {
|
|
34602
|
+
applied: true,
|
|
34603
|
+
provider: access.provider,
|
|
34604
|
+
model: access.model,
|
|
34605
|
+
endpoint: access.endpoint,
|
|
34606
|
+
...sent,
|
|
34607
|
+
cost_usd: answer.cost,
|
|
34608
|
+
...answer.usage ? { usage: answer.usage } : {},
|
|
34609
|
+
ms: Date.now() - started
|
|
34610
|
+
}
|
|
34611
|
+
};
|
|
34647
34612
|
}, "reorderHarder");
|
|
34648
34613
|
|
|
34649
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34614
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/services/search-all.js
|
|
34650
34615
|
var RESOURCES_SEARCHED = ["messages", "mail", "notes", "events", "crm", "business", "meetings"];
|
|
34651
34616
|
var refusal = /* @__PURE__ */ __name((error, text2) => {
|
|
34652
34617
|
const { reason, span } = error.details ?? {};
|
|
@@ -34960,7 +34925,7 @@ var searchAll = /* @__PURE__ */ __name(async (store, account, asked, messenger =
|
|
|
34960
34925
|
now: request.now ?? Date.now(),
|
|
34961
34926
|
...command === void 0 ? {} : { command }
|
|
34962
34927
|
};
|
|
34963
|
-
const done2 = await reorderHarder(
|
|
34928
|
+
const done2 = await reorderHarder(asked.text, ordered, { ...asking, laterPage: offset > 0 });
|
|
34964
34929
|
ordered = done2.items;
|
|
34965
34930
|
harder = done2.harder;
|
|
34966
34931
|
}
|
|
@@ -35020,7 +34985,7 @@ var insidePeriodFirst = /* @__PURE__ */ __name((ordered, period) => {
|
|
|
35020
34985
|
return ordered.map((item2, rank) => ({ item: item2, score: 1 - rank / PERIOD_DEPTH + (inside2(item2) ? PERIOD_BOOST : 0) })).sort((a, b) => b.score - a.score).map(({ item: item2 }) => item2);
|
|
35021
34986
|
}, "insidePeriodFirst");
|
|
35022
34987
|
|
|
35023
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34988
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/services/server-search.js
|
|
35024
34989
|
var SERVER_SEARCH_KEY = "messages.server-search";
|
|
35025
34990
|
var SERVER_BOUNDS = { timeMs: 5e3, perCall: 100, maxCalls: 3, textBytes: 262144 };
|
|
35026
34991
|
var DEFAULT_BACKEND = "both";
|
|
@@ -35151,7 +35116,7 @@ var searchServer = /* @__PURE__ */ __name(async (deps, request) => {
|
|
|
35151
35116
|
report.complete = false;
|
|
35152
35117
|
report.failed.push({ chat: branch.chat ?? null, reason });
|
|
35153
35118
|
}, "fail");
|
|
35154
|
-
const
|
|
35119
|
+
const ask2 = /* @__PURE__ */ __name(async (adapter) => {
|
|
35155
35120
|
const search = capability(adapter, "searchMessages", "search messages on its server");
|
|
35156
35121
|
await Promise.all(calls.map(async (branch) => {
|
|
35157
35122
|
if (!open7)
|
|
@@ -35173,7 +35138,7 @@ var searchServer = /* @__PURE__ */ __name(async (deps, request) => {
|
|
|
35173
35138
|
}));
|
|
35174
35139
|
}, "ask");
|
|
35175
35140
|
try {
|
|
35176
|
-
const run = deps.withConnection ? deps.withConnection(
|
|
35141
|
+
const run = deps.withConnection ? deps.withConnection(ask2) : deps.connection().then(ask2);
|
|
35177
35142
|
const outcome2 = await Promise.race([
|
|
35178
35143
|
run.then(() => "done", () => "failed"),
|
|
35179
35144
|
bound2
|
|
@@ -35209,7 +35174,7 @@ var searchServer = /* @__PURE__ */ __name(async (deps, request) => {
|
|
|
35209
35174
|
return { report, sources };
|
|
35210
35175
|
}, "searchServer");
|
|
35211
35176
|
|
|
35212
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35177
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/services/messages.js
|
|
35213
35178
|
var DELETE_AT_ONCE = 10;
|
|
35214
35179
|
var filesOf = /* @__PURE__ */ __name(({ attachments }) => {
|
|
35215
35180
|
const files = fileLinks(attachments);
|
|
@@ -35649,7 +35614,7 @@ var checkMediaOptions = /* @__PURE__ */ __name((messenger, asked, attachments) =
|
|
|
35649
35614
|
throw new CliError("validation_error", `${MEDIA_FLAGS[first2]} needs a --photo or --file`);
|
|
35650
35615
|
}, "checkMediaOptions");
|
|
35651
35616
|
|
|
35652
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35617
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/domain/channel-tags.js
|
|
35653
35618
|
var CHANNEL_TAG_RULES_VERSION = "keywords-v1";
|
|
35654
35619
|
var RULES2 = {
|
|
35655
35620
|
ai: [/\b(ai|gpt|llm|machine learning|artificial intelligence)\b/iu, /нейросет|искусственн/iu],
|
|
@@ -35664,7 +35629,7 @@ var classifyChannel = /* @__PURE__ */ __name((metadata) => Object.entries(RULES2
|
|
|
35664
35629
|
return fields.length ? [{ tag, score: fields.length / 3, fields }] : [];
|
|
35665
35630
|
}), "classifyChannel");
|
|
35666
35631
|
|
|
35667
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35632
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/services/metadata.js
|
|
35668
35633
|
var metadataService = /* @__PURE__ */ __name((deps) => {
|
|
35669
35634
|
const held = /* @__PURE__ */ __name(async (reference, { includeLeft = false } = {}) => {
|
|
35670
35635
|
const store = await deps.store();
|
|
@@ -35750,7 +35715,7 @@ var metadataService = /* @__PURE__ */ __name((deps) => {
|
|
|
35750
35715
|
};
|
|
35751
35716
|
}, "metadataService");
|
|
35752
35717
|
|
|
35753
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35718
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/moderation/check.js
|
|
35754
35719
|
var INVITE = /max\.ru\/join\/|(t|telegram)\.me\/(\+|joinchat\/)|tg:\/\/join/i;
|
|
35755
35720
|
var LINK2 = /https?:\/\/\S+/i;
|
|
35756
35721
|
var STRENGTH = { report: 0, delete: 1, remove: 2 };
|
|
@@ -35938,7 +35903,7 @@ var nextPoint = /* @__PURE__ */ __name((rows, found) => {
|
|
|
35938
35903
|
}, "nextPoint");
|
|
35939
35904
|
var someUndone = /* @__PURE__ */ __name((rows) => rows.some(undone), "someUndone");
|
|
35940
35905
|
|
|
35941
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35906
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/moderation/rules.js
|
|
35942
35907
|
import { existsSync as existsSync3, readFileSync as readFileSync5 } from "node:fs";
|
|
35943
35908
|
import { join as join15 } from "node:path";
|
|
35944
35909
|
var RULE_ACTIONS = ["report", "delete", "remove"];
|
|
@@ -36081,7 +36046,7 @@ var assign = /* @__PURE__ */ __name((rules, key, value) => {
|
|
|
36081
36046
|
return { ...rules, [head]: { ...rules[head], [tail]: value } };
|
|
36082
36047
|
}, "assign");
|
|
36083
36048
|
|
|
36084
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36049
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/moderation/run.js
|
|
36085
36050
|
var FIRST_LOOK_MS = 24 * 36e5;
|
|
36086
36051
|
var moderateWith = /* @__PURE__ */ __name(async (run) => {
|
|
36087
36052
|
const { chatId, title, rules, point, since, dryRun } = run;
|
|
@@ -36118,7 +36083,7 @@ var moderateWith = /* @__PURE__ */ __name(async (run) => {
|
|
|
36118
36083
|
return { chatId, rows, notes };
|
|
36119
36084
|
}, "moderateWith");
|
|
36120
36085
|
|
|
36121
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36086
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/services/moderation.js
|
|
36122
36087
|
var moderationService = /* @__PURE__ */ __name((deps) => {
|
|
36123
36088
|
const file2 = /* @__PURE__ */ __name(() => new ModerationRules(moderationPathFor(deps.messenger.app, deps.profile ?? "default", deps.env ?? process.env)), "file");
|
|
36124
36089
|
const group = /* @__PURE__ */ __name(async (chat) => {
|
|
@@ -36196,7 +36161,7 @@ var moderatorOf = /* @__PURE__ */ __name((adapter, deps) => ({
|
|
|
36196
36161
|
}, "removePerson")
|
|
36197
36162
|
}), "moderatorOf");
|
|
36198
36163
|
|
|
36199
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36164
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/services/person-context.js
|
|
36200
36165
|
var CONTEXT_MESSAGES2 = 10;
|
|
36201
36166
|
var CONTEXT_BYTES = 64 * 1024;
|
|
36202
36167
|
var toContext = /* @__PURE__ */ __name((key, message, chatTitle2) => ({
|
|
@@ -36495,10 +36460,10 @@ var personMessages = /* @__PURE__ */ __name(async (store, asked, reference, { ch
|
|
|
36495
36460
|
};
|
|
36496
36461
|
}, "personMessages");
|
|
36497
36462
|
|
|
36498
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36463
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/services/meeting-evidence.js
|
|
36499
36464
|
import { createHash as createHash11 } from "node:crypto";
|
|
36500
36465
|
|
|
36501
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36466
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/services/meeting-reference.js
|
|
36502
36467
|
var missing3 = /* @__PURE__ */ __name(() => new CliError("not_found", "the meeting evidence is unavailable for this account"), "missing");
|
|
36503
36468
|
var authorizedMeetingMetadata = /* @__PURE__ */ __name(async (store, accountId, reference, options2 = {}) => {
|
|
36504
36469
|
const parsed = parseMeetingReference(reference);
|
|
@@ -36516,7 +36481,7 @@ var authorizedMeetingMetadata = /* @__PURE__ */ __name(async (store, accountId,
|
|
|
36516
36481
|
return { parsed, meeting };
|
|
36517
36482
|
}, "authorizedMeetingMetadata");
|
|
36518
36483
|
|
|
36519
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36484
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/services/meeting-evidence.js
|
|
36520
36485
|
var hash = /* @__PURE__ */ __name((value) => createHash11("sha256").update(JSON.stringify(value)).digest("hex"), "hash");
|
|
36521
36486
|
var checkMeetingCancelled = /* @__PURE__ */ __name((signal) => {
|
|
36522
36487
|
if (signal?.aborted)
|
|
@@ -36715,7 +36680,7 @@ var readMeetingEvidence = /* @__PURE__ */ __name(async (store, accountId, refere
|
|
|
36715
36680
|
return { ...packet, fingerprint: hash(packet) };
|
|
36716
36681
|
}, "readMeetingEvidence");
|
|
36717
36682
|
|
|
36718
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36683
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/services/person-meeting-context.js
|
|
36719
36684
|
var personMeetingContext = /* @__PURE__ */ __name(async (store, personReference, options2) => {
|
|
36720
36685
|
const { meetings = 10, cues = 5, bytes: bytes2 = 64 * 1024, scanLimit = 1e3, since, signal } = options2;
|
|
36721
36686
|
const requestedAccounts = options2.accountIds;
|
|
@@ -36814,7 +36779,7 @@ var personMeetingContext = /* @__PURE__ */ __name(async (store, personReference,
|
|
|
36814
36779
|
};
|
|
36815
36780
|
}, "personMeetingContext");
|
|
36816
36781
|
|
|
36817
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36782
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/services/person-preparation.js
|
|
36818
36783
|
var PREPARE_BYTES = 96 * 1024;
|
|
36819
36784
|
var MEETINGS = 5;
|
|
36820
36785
|
var CUES = 3;
|
|
@@ -36937,7 +36902,7 @@ var meetingsOf = /* @__PURE__ */ __name(async (store, uid, stored, since, left)
|
|
|
36937
36902
|
}
|
|
36938
36903
|
}, "meetingsOf");
|
|
36939
36904
|
|
|
36940
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36905
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/services/person-profile.js
|
|
36941
36906
|
var personProfile = /* @__PURE__ */ __name(async (deps, person, known2) => {
|
|
36942
36907
|
const online = deps.offline ? void 0 : await deps.connection();
|
|
36943
36908
|
const held = await storeIfOpen(deps);
|
|
@@ -37007,7 +36972,7 @@ var quiet = /* @__PURE__ */ __name((facts) => facts.chats.map(({ id: id2, title,
|
|
|
37007
36972
|
complete: false
|
|
37008
36973
|
})), "quiet");
|
|
37009
36974
|
|
|
37010
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36975
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/services/person-timeline.js
|
|
37011
36976
|
var TIMELINE_ITEMS = 50;
|
|
37012
36977
|
var TIMELINE_MAX = 500;
|
|
37013
36978
|
var SCOPES2 = ["personal", "work"];
|
|
@@ -37069,7 +37034,7 @@ var personTimeline = /* @__PURE__ */ __name(async (store, asked, reference, { sc
|
|
|
37069
37034
|
};
|
|
37070
37035
|
}, "personTimeline");
|
|
37071
37036
|
|
|
37072
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37037
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/services/people.js
|
|
37073
37038
|
var peopleService = /* @__PURE__ */ __name((deps) => {
|
|
37074
37039
|
const localCard = /* @__PURE__ */ __name(async (card, includeNotes = false) => {
|
|
37075
37040
|
const held = await storeIfOpen(deps);
|
|
@@ -37190,7 +37155,7 @@ var peopleService = /* @__PURE__ */ __name((deps) => {
|
|
|
37190
37155
|
else if (known2.name !== person.name || known2.username !== person.username)
|
|
37191
37156
|
changed += 1;
|
|
37192
37157
|
}
|
|
37193
|
-
await store.people.
|
|
37158
|
+
await store.people.saveAddressBook(account, people);
|
|
37194
37159
|
return {
|
|
37195
37160
|
added,
|
|
37196
37161
|
changed,
|
|
@@ -37323,7 +37288,7 @@ var withoutPhone = /* @__PURE__ */ __name((answer) => {
|
|
|
37323
37288
|
return rest;
|
|
37324
37289
|
}, "withoutPhone");
|
|
37325
37290
|
|
|
37326
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37291
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/services/private-people.js
|
|
37327
37292
|
var noteItem = /* @__PURE__ */ __name((provider, note2) => ({
|
|
37328
37293
|
id: note2.id,
|
|
37329
37294
|
contact: formatReference({ type: "contact", provider, id: note2.personId }),
|
|
@@ -37367,7 +37332,7 @@ var privatePeopleService = /* @__PURE__ */ __name((deps) => {
|
|
|
37367
37332
|
};
|
|
37368
37333
|
}, "privatePeopleService");
|
|
37369
37334
|
|
|
37370
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37335
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/services/rankings.js
|
|
37371
37336
|
var empty = /* @__PURE__ */ __name(() => ({
|
|
37372
37337
|
total: 0,
|
|
37373
37338
|
population: 0,
|
|
@@ -37623,7 +37588,7 @@ var rankingsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
37623
37588
|
}, "evidence")
|
|
37624
37589
|
}), "rankingsService");
|
|
37625
37590
|
|
|
37626
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37591
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/services/reply-stats.js
|
|
37627
37592
|
var FIELDS = ["date", "chat", "kind"];
|
|
37628
37593
|
var WAITING_TAIL = 100;
|
|
37629
37594
|
var plainOnly = /* @__PURE__ */ __name((text2, command) => {
|
|
@@ -37750,7 +37715,7 @@ var replyStatsService = /* @__PURE__ */ __name((deps) => {
|
|
|
37750
37715
|
};
|
|
37751
37716
|
}, "replyStatsService");
|
|
37752
37717
|
|
|
37753
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37718
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/services/searches.js
|
|
37754
37719
|
var savedSearchItem = /* @__PURE__ */ __name((one2) => ({
|
|
37755
37720
|
id: one2.id,
|
|
37756
37721
|
name: one2.name,
|
|
@@ -37879,7 +37844,7 @@ var searchesService = /* @__PURE__ */ __name((deps) => {
|
|
|
37879
37844
|
};
|
|
37880
37845
|
}, "searchesService");
|
|
37881
37846
|
|
|
37882
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37847
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/services/tags.js
|
|
37883
37848
|
var TAGGING_QUERY = {
|
|
37884
37849
|
entity: "tagging",
|
|
37885
37850
|
backend: "sql",
|
|
@@ -37963,7 +37928,7 @@ var tagsService = /* @__PURE__ */ __name((deps) => {
|
|
|
37963
37928
|
};
|
|
37964
37929
|
}, "tagsService");
|
|
37965
37930
|
|
|
37966
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37931
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/services/task-stats.js
|
|
37967
37932
|
var TASK_STATS_BY = ["chat", "meeting", "project"];
|
|
37968
37933
|
var PERIOD_FIELD = "created";
|
|
37969
37934
|
var refuseNestedPeriod = /* @__PURE__ */ __name((node, top = true) => {
|
|
@@ -38066,7 +38031,7 @@ var meetingNames = /* @__PURE__ */ __name(async (store, groups) => {
|
|
|
38066
38031
|
}));
|
|
38067
38032
|
}, "meetingNames");
|
|
38068
38033
|
|
|
38069
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38034
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/services/tasks.js
|
|
38070
38035
|
var TASK_QUERY = {
|
|
38071
38036
|
entity: "task",
|
|
38072
38037
|
backend: "sql",
|
|
@@ -38558,7 +38523,7 @@ var taskView = /* @__PURE__ */ __name(async (store, account, task2) => {
|
|
|
38558
38523
|
};
|
|
38559
38524
|
}, "taskView");
|
|
38560
38525
|
|
|
38561
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38526
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/services/topics.js
|
|
38562
38527
|
var actionOf = /* @__PURE__ */ __name(({ title, closed, pinned, hidden, icon }) => {
|
|
38563
38528
|
const set = [closed, pinned, hidden].filter((one2) => one2 !== void 0).length;
|
|
38564
38529
|
if (title !== void 0 || icon !== void 0 || set !== 1)
|
|
@@ -38757,7 +38722,7 @@ var topicsService = /* @__PURE__ */ __name((deps) => {
|
|
|
38757
38722
|
};
|
|
38758
38723
|
}, "topicsService");
|
|
38759
38724
|
|
|
38760
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38725
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/crm/sync.js
|
|
38761
38726
|
var CLOCK_MARGIN = 60 * 6e4;
|
|
38762
38727
|
var GAPS = "crm:gaps";
|
|
38763
38728
|
var crmGapsOf = /* @__PURE__ */ __name(async (store, account) => {
|
|
@@ -38769,7 +38734,7 @@ var crmGapsOf = /* @__PURE__ */ __name(async (store, account) => {
|
|
|
38769
38734
|
}
|
|
38770
38735
|
}, "crmGapsOf");
|
|
38771
38736
|
|
|
38772
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38737
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/crm/writer.js
|
|
38773
38738
|
var CRM_ASSIGN_OTHERS_KEY = "crm.assign-others";
|
|
38774
38739
|
var CRM_WRITE_DEFAULTS = {
|
|
38775
38740
|
"deals.delete": "ask",
|
|
@@ -38777,7 +38742,7 @@ var CRM_WRITE_DEFAULTS = {
|
|
|
38777
38742
|
[CRM_ASSIGN_OTHERS_KEY]: "deny"
|
|
38778
38743
|
};
|
|
38779
38744
|
|
|
38780
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38745
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/services/business-context.js
|
|
38781
38746
|
var SECTION_LIMIT = 20;
|
|
38782
38747
|
var STORE_PAGE = 500;
|
|
38783
38748
|
var sectionOf = /* @__PURE__ */ __name((all, limit, next, { more = false, total = all.length, newest = false } = {}) => {
|
|
@@ -38901,7 +38866,7 @@ var coverageFor = /* @__PURE__ */ __name(async (store, base, scope) => {
|
|
|
38901
38866
|
}, "coverageFor");
|
|
38902
38867
|
var newestFirst2 = /* @__PURE__ */ __name((a, b) => (b.at ?? "").localeCompare(a.at ?? "") || a.ref.localeCompare(b.ref), "newestFirst");
|
|
38903
38868
|
|
|
38904
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38869
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/services/communications.js
|
|
38905
38870
|
var MAIL_ROWS = 500;
|
|
38906
38871
|
var EVENT_ROWS2 = 1e3;
|
|
38907
38872
|
var calendarsOf = /* @__PURE__ */ __name(async (store, stored) => {
|
|
@@ -39027,7 +38992,7 @@ var communicationsOf = /* @__PURE__ */ __name(async (store, asked, scope, { sinc
|
|
|
39027
38992
|
};
|
|
39028
38993
|
}, "communicationsOf");
|
|
39029
38994
|
|
|
39030
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38995
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/services/money-context.js
|
|
39031
38996
|
var invoiceLine = /* @__PURE__ */ __name((invoice, linkedBy) => ({
|
|
39032
38997
|
ref: invoice.ref,
|
|
39033
38998
|
title: invoice.title,
|
|
@@ -39099,7 +39064,7 @@ var moneyOf = /* @__PURE__ */ __name((rows, limit, next, complete) => {
|
|
|
39099
39064
|
};
|
|
39100
39065
|
}, "moneyOf");
|
|
39101
39066
|
|
|
39102
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39067
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/services/organization-context.js
|
|
39103
39068
|
var dealLine = /* @__PURE__ */ __name((deal) => ({
|
|
39104
39069
|
ref: deal.ref,
|
|
39105
39070
|
kind: deal.kind,
|
|
@@ -39239,7 +39204,7 @@ var organizationContext = /* @__PURE__ */ __name(async (store, reference, { acco
|
|
|
39239
39204
|
};
|
|
39240
39205
|
}, "organizationContext");
|
|
39241
39206
|
|
|
39242
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39207
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/services/deal-context.js
|
|
39243
39208
|
var DAY6 = 864e5;
|
|
39244
39209
|
var dealContext = /* @__PURE__ */ __name(async (store, reference, { accounts, limit = SECTION_LIMIT, now = Date.now(), deniedKinds = [] } = {}) => {
|
|
39245
39210
|
const scope = scopeOf4(accounts, deniedKinds);
|
|
@@ -39348,7 +39313,7 @@ var dealBrief = /* @__PURE__ */ __name((context2) => ({
|
|
|
39348
39313
|
notRead: context2.coverage.notRead
|
|
39349
39314
|
}), "dealBrief");
|
|
39350
39315
|
|
|
39351
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39316
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/services/evidence.js
|
|
39352
39317
|
import { createHash as createHash12, randomUUID as randomUUID6 } from "node:crypto";
|
|
39353
39318
|
var hash2 = /* @__PURE__ */ __name((value) => createHash12("sha256").update(JSON.stringify(value)).digest("hex"), "hash");
|
|
39354
39319
|
var positive2 = /* @__PURE__ */ __name((value, name, minimum = 1) => {
|
|
@@ -39422,7 +39387,7 @@ var prepareEvidencePacket = /* @__PURE__ */ __name(({ kind, source, page, limits
|
|
|
39422
39387
|
return { ...content, id: randomUUID6(), fingerprint: hash2(content) };
|
|
39423
39388
|
}, "prepareEvidencePacket");
|
|
39424
39389
|
|
|
39425
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39390
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/services/evidence-read.js
|
|
39426
39391
|
var readEvidencePacket = /* @__PURE__ */ __name(async (store, account, { chat, limit, before: before2 }, messenger = {}) => {
|
|
39427
39392
|
if (!Number.isSafeInteger(limit) || limit < 1 || limit > 100)
|
|
39428
39393
|
throw new CliError("validation_error", "evidence message limit must be an integer from 1 to 100");
|
|
@@ -39442,7 +39407,7 @@ var readEvidencePacket = /* @__PURE__ */ __name(async (store, account, { chat, l
|
|
|
39442
39407
|
return { ...packet, nextBeforeId: older && last ? last.id : null };
|
|
39443
39408
|
}, "readEvidencePacket");
|
|
39444
39409
|
|
|
39445
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39410
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/services/meeting-project-discovery.js
|
|
39446
39411
|
import { createHash as createHash13 } from "node:crypto";
|
|
39447
39412
|
var scopeKeys = [
|
|
39448
39413
|
"accountId",
|
|
@@ -39577,7 +39542,7 @@ var readMeetingProjectDiscovery = /* @__PURE__ */ __name(async (ports, projectNa
|
|
|
39577
39542
|
};
|
|
39578
39543
|
}, "readMeetingProjectDiscovery");
|
|
39579
39544
|
|
|
39580
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39545
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/services/person-business.js
|
|
39581
39546
|
var personBusiness = /* @__PURE__ */ __name(async (store, uid, { limit = SECTION_LIMIT, scope = scopeOf4(void 0) } = {}) => {
|
|
39582
39547
|
const ref = `person:${uid}`;
|
|
39583
39548
|
const { edges, full } = await edgesOf(store, ref, scope);
|
|
@@ -39635,7 +39600,7 @@ var canonicalPersonContext = /* @__PURE__ */ __name(async (store, reference, { a
|
|
|
39635
39600
|
};
|
|
39636
39601
|
}, "canonicalPersonContext");
|
|
39637
39602
|
|
|
39638
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39603
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/services/text-model-choice.js
|
|
39639
39604
|
import { createHash as createHash14 } from "node:crypto";
|
|
39640
39605
|
import { existsSync as existsSync4 } from "node:fs";
|
|
39641
39606
|
var useTextModel = /* @__PURE__ */ __name(async (id2, { env, command }) => {
|
|
@@ -39766,7 +39731,7 @@ var addCustomTextModel = /* @__PURE__ */ __name(async (id2, payload, { env, fetc
|
|
|
39766
39731
|
return { ...checked2.output, custom: true };
|
|
39767
39732
|
}, "addCustomTextModel");
|
|
39768
39733
|
|
|
39769
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39734
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/services/account-groups.js
|
|
39770
39735
|
var fail4 = /* @__PURE__ */ __name((code, message) => {
|
|
39771
39736
|
throw new CliError(code, message);
|
|
39772
39737
|
}, "fail");
|
|
@@ -39843,7 +39808,7 @@ var moveGroupMember = /* @__PURE__ */ __name(async (at, move) => {
|
|
|
39843
39808
|
return listAccountGroups(at);
|
|
39844
39809
|
}, "moveGroupMember");
|
|
39845
39810
|
|
|
39846
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39811
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/services/group-guard.js
|
|
39847
39812
|
var refOf = /* @__PURE__ */ __name((item2) => typeof item2 === "string" ? item2 : typeof item2 === "object" && item2 !== null && "ref" in item2 ? item2.ref : void 0, "refOf");
|
|
39848
39813
|
var groupGuardOf = /* @__PURE__ */ __name(async (store, app, env) => {
|
|
39849
39814
|
const group = groupLockOf(app, env);
|
|
@@ -39954,7 +39919,7 @@ var lockedRegistry = /* @__PURE__ */ __name((registry, guard) => {
|
|
|
39954
39919
|
};
|
|
39955
39920
|
}, "lockedRegistry");
|
|
39956
39921
|
|
|
39957
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39922
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/services/meeting-hit-context.js
|
|
39958
39923
|
import { createHash as createHash15 } from "node:crypto";
|
|
39959
39924
|
var contextCue = /* @__PURE__ */ __name((cue) => ({
|
|
39960
39925
|
ref: cue.reference,
|
|
@@ -40072,7 +40037,7 @@ var readMeetingHitContext = /* @__PURE__ */ __name(async (store, accountId, refe
|
|
|
40072
40037
|
return { ...packet, fingerprint: createHash15("sha256").update(JSON.stringify(packet)).digest("hex") };
|
|
40073
40038
|
}, "readMeetingHitContext");
|
|
40074
40039
|
|
|
40075
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40040
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/services/meeting-passage-format.js
|
|
40076
40041
|
var visible = /* @__PURE__ */ __name((text2) => text2.replace(/[\p{Cc}\p{Cf}]/gu, (value) => value === "\n" || value === " " ? value : `\\u{${value.codePointAt(0)?.toString(16)}}`), "visible");
|
|
40077
40042
|
var markdown = /* @__PURE__ */ __name((text2) => visible(text2).replaceAll("&", "&").replaceAll("<", "<").replaceAll(">", ">").replace(/[\\`*_[\]#|~]/g, "\\$&"), "markdown");
|
|
40078
40043
|
var timestamp = /* @__PURE__ */ __name((ms) => {
|
|
@@ -40148,7 +40113,7 @@ var readMeetingPassage = /* @__PURE__ */ __name(async (store, accountId, referen
|
|
|
40148
40113
|
return { packet, content };
|
|
40149
40114
|
}, "readMeetingPassage");
|
|
40150
40115
|
|
|
40151
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40116
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/context/communication-selection.js
|
|
40152
40117
|
var communicationFields = {
|
|
40153
40118
|
sources: pipe(array(strictObject({
|
|
40154
40119
|
id: pipe(string(), regex(/^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$/)),
|
|
@@ -40180,7 +40145,7 @@ var communicationRequest = /* @__PURE__ */ __name((value, preparationAfter) => {
|
|
|
40180
40145
|
return { ...input, after, before: before2 };
|
|
40181
40146
|
}, "communicationRequest");
|
|
40182
40147
|
|
|
40183
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40148
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/services/meeting-preparation-validation.js
|
|
40184
40149
|
var MEETING_PREPARATION_LIMITS = {
|
|
40185
40150
|
meetings: { min: 1, max: 20, default: 5 },
|
|
40186
40151
|
cues: { min: 1, max: 100, default: 10 },
|
|
@@ -40266,7 +40231,7 @@ var preparationRequest = /* @__PURE__ */ __name((accountId, externalId, original
|
|
|
40266
40231
|
return { ...input, history };
|
|
40267
40232
|
}, "preparationRequest");
|
|
40268
40233
|
|
|
40269
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40234
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/services/meeting-communications-preparation.js
|
|
40270
40235
|
var readPreparationCommunications = /* @__PURE__ */ __name(async (plan, signal) => {
|
|
40271
40236
|
const section = {
|
|
40272
40237
|
readUsage: plan.reader.usage(),
|
|
@@ -40371,7 +40336,7 @@ var appendPreparationCommunications = /* @__PURE__ */ __name((result, read2) =>
|
|
|
40371
40336
|
result.knowledge.coverage.otherSources = "see-communications";
|
|
40372
40337
|
}, "appendPreparationCommunications");
|
|
40373
40338
|
|
|
40374
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40339
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/services/meeting-communications-selection.js
|
|
40375
40340
|
var captureCommunicationSelections = /* @__PURE__ */ __name((port) => {
|
|
40376
40341
|
if (port === void 0)
|
|
40377
40342
|
return void 0;
|
|
@@ -40476,7 +40441,7 @@ var validatePreparationCommunications = /* @__PURE__ */ __name((section, request
|
|
|
40476
40441
|
}
|
|
40477
40442
|
}, "validatePreparationCommunications");
|
|
40478
40443
|
|
|
40479
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40444
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/services/meeting-knowledge-preparation.js
|
|
40480
40445
|
var invalid6 = /* @__PURE__ */ __name(() => {
|
|
40481
40446
|
throw new CliError("invalid_response", "Preparation knowledge returned an invalid selection");
|
|
40482
40447
|
}, "invalid");
|
|
@@ -40545,7 +40510,7 @@ var appendKnowledgePreparation = /* @__PURE__ */ __name(async (store, result, in
|
|
|
40545
40510
|
}
|
|
40546
40511
|
}, "appendKnowledgePreparation");
|
|
40547
40512
|
|
|
40548
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40513
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/services/meeting-notes-preparation.js
|
|
40549
40514
|
var invalid7 = /* @__PURE__ */ __name(() => {
|
|
40550
40515
|
throw new CliError("invalid_response", "Preparation notes returned an invalid selection");
|
|
40551
40516
|
}, "invalid");
|
|
@@ -40619,7 +40584,7 @@ var appendNotesPreparation = /* @__PURE__ */ __name(async (store, result, input)
|
|
|
40619
40584
|
}
|
|
40620
40585
|
}, "appendNotesPreparation");
|
|
40621
40586
|
|
|
40622
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40587
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/services/meeting-project-preparation.js
|
|
40623
40588
|
var PAGE_LIMIT = 4;
|
|
40624
40589
|
var size2 = /* @__PURE__ */ __name((value) => Buffer.byteLength(JSON.stringify(value), "utf8"), "size");
|
|
40625
40590
|
var appendProjectPreparation = /* @__PURE__ */ __name(async (ports, result, input) => {
|
|
@@ -40669,7 +40634,7 @@ var appendProjectPreparation = /* @__PURE__ */ __name(async (ports, result, inpu
|
|
|
40669
40634
|
}
|
|
40670
40635
|
}, "appendProjectPreparation");
|
|
40671
40636
|
|
|
40672
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40637
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/services/meeting-related-preparation.js
|
|
40673
40638
|
var appendRelatedPreparation = /* @__PURE__ */ __name(async (store, result, input) => {
|
|
40674
40639
|
if (!result.series || !result.items.length || result.coverage.outputLimited)
|
|
40675
40640
|
return;
|
|
@@ -40741,7 +40706,7 @@ var appendRelatedPreparation = /* @__PURE__ */ __name(async (store, result, inpu
|
|
|
40741
40706
|
}
|
|
40742
40707
|
}, "appendRelatedPreparation");
|
|
40743
40708
|
|
|
40744
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40709
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/services/meeting-preparation.js
|
|
40745
40710
|
var size3 = /* @__PURE__ */ __name((value) => Buffer.byteLength(JSON.stringify(value), "utf8"), "size");
|
|
40746
40711
|
var createMeetingPreparationService = /* @__PURE__ */ __name((scope, accountId, ports) => {
|
|
40747
40712
|
const fixed = snapshotMeetingScope(scope);
|
|
@@ -40879,7 +40844,7 @@ var createMeetingPreparationService = /* @__PURE__ */ __name((scope, accountId,
|
|
|
40879
40844
|
};
|
|
40880
40845
|
}, "createMeetingPreparationService");
|
|
40881
40846
|
|
|
40882
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40847
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/services/package-upgrade.js
|
|
40883
40848
|
var upgradePackage = /* @__PURE__ */ __name(async ({ current, command, packageName, check: check2 }, ports) => {
|
|
40884
40849
|
const installer = ports.installer();
|
|
40885
40850
|
const argv = updateCommand(installer, packageName);
|
|
@@ -40944,7 +40909,7 @@ var dayAfter = /* @__PURE__ */ __name((published) => {
|
|
|
40944
40909
|
return Number.isNaN(time) ? null : new Date(time + 24 * 60 * 60 * 1e3).toISOString();
|
|
40945
40910
|
}, "dayAfter");
|
|
40946
40911
|
|
|
40947
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40912
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/services/proposal-tasks.js
|
|
40948
40913
|
var proposalSource = /* @__PURE__ */ __name((id2) => `proposed-action:${id2}`, "proposalSource");
|
|
40949
40914
|
var approveAsTask = /* @__PURE__ */ __name(async (store, id2, by) => {
|
|
40950
40915
|
const proposal = await store.proposedActions.get(id2);
|
|
@@ -40967,7 +40932,7 @@ var approveAsTask = /* @__PURE__ */ __name(async (store, id2, by) => {
|
|
|
40967
40932
|
return { proposal: await store.proposedActions.approve(proposal.id, by, { task: task2.id }), task: task2 };
|
|
40968
40933
|
}, "approveAsTask");
|
|
40969
40934
|
|
|
40970
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40935
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/services/proposals/ids.js
|
|
40971
40936
|
var MAX_IDS = 500;
|
|
40972
40937
|
var refuse = /* @__PURE__ */ __name((message) => {
|
|
40973
40938
|
throw new CliError("validation_error", message, { reason: "proposal.ids" });
|
|
@@ -41009,7 +40974,7 @@ var parseProposalIds = /* @__PURE__ */ __name((text2) => {
|
|
|
41009
40974
|
return ids;
|
|
41010
40975
|
}, "parseProposalIds");
|
|
41011
40976
|
|
|
41012
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40977
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/shared.js
|
|
41013
40978
|
var proposerOfAuthor = /* @__PURE__ */ __name((author) => {
|
|
41014
40979
|
if (author.type === "person")
|
|
41015
40980
|
return { type: "person", id: author.id };
|
|
@@ -41081,7 +41046,7 @@ var reviewedKind = /* @__PURE__ */ __name((spec) => ({
|
|
|
41081
41046
|
}, "decide")
|
|
41082
41047
|
}), "reviewedKind");
|
|
41083
41048
|
|
|
41084
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
41049
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/findings.js
|
|
41085
41050
|
var FACT_SUMMARIES = {
|
|
41086
41051
|
fact: /* @__PURE__ */ __name((finding) => finding.statement, "fact"),
|
|
41087
41052
|
task: /* @__PURE__ */ __name((finding) => finding.title, "task"),
|
|
@@ -41153,7 +41118,7 @@ var findingsKind = /* @__PURE__ */ __name((store) => {
|
|
|
41153
41118
|
};
|
|
41154
41119
|
}, "findingsKind");
|
|
41155
41120
|
|
|
41156
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
41121
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/organization.js
|
|
41157
41122
|
var ORGANIZATION_ADD_KIND = "organization_add";
|
|
41158
41123
|
var ORGANIZATION_RENAME_KIND = "organization_rename";
|
|
41159
41124
|
var rowOf2 = /* @__PURE__ */ __name((action2) => {
|
|
@@ -41209,7 +41174,7 @@ var organizationKind = /* @__PURE__ */ __name((store) => ({
|
|
|
41209
41174
|
}, "decide")
|
|
41210
41175
|
}), "organizationKind");
|
|
41211
41176
|
|
|
41212
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
41177
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/action.js
|
|
41213
41178
|
var rowOf3 = /* @__PURE__ */ __name((action2) => ({
|
|
41214
41179
|
id: action2.id,
|
|
41215
41180
|
kind: "action",
|
|
@@ -41249,7 +41214,7 @@ var actionKind = /* @__PURE__ */ __name((store, claimed) => ({
|
|
|
41249
41214
|
}, "decide")
|
|
41250
41215
|
}), "actionKind");
|
|
41251
41216
|
|
|
41252
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
41217
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/contracts.js
|
|
41253
41218
|
var contractKind = /* @__PURE__ */ __name((store) => reviewedKind({
|
|
41254
41219
|
type: "contract",
|
|
41255
41220
|
list: /* @__PURE__ */ __name((options2) => store.contracts.list(options2), "list"),
|
|
@@ -41258,7 +41223,7 @@ var contractKind = /* @__PURE__ */ __name((store) => reviewedKind({
|
|
|
41258
41223
|
decide: /* @__PURE__ */ __name(async (id2, confirm, { by, reason }) => (confirm ? await store.contracts.confirm(id2, by, reason) : await store.contracts.reject(id2, by, reason)).ref, "decide")
|
|
41259
41224
|
}), "contractKind");
|
|
41260
41225
|
|
|
41261
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
41226
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/fact.js
|
|
41262
41227
|
var STATUS = {
|
|
41263
41228
|
proposed: "proposed",
|
|
41264
41229
|
accepted: "confirmed",
|
|
@@ -41301,7 +41266,7 @@ var factKind = /* @__PURE__ */ __name((store) => ({
|
|
|
41301
41266
|
}, "decide")
|
|
41302
41267
|
}), "factKind");
|
|
41303
41268
|
|
|
41304
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
41269
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/finance.js
|
|
41305
41270
|
var invoiceKind = /* @__PURE__ */ __name((store) => reviewedKind({
|
|
41306
41271
|
type: "invoice",
|
|
41307
41272
|
list: /* @__PURE__ */ __name((options2) => store.finance.invoices(options2), "list"),
|
|
@@ -41317,7 +41282,7 @@ var paymentKind = /* @__PURE__ */ __name((store) => reviewedKind({
|
|
|
41317
41282
|
decide: /* @__PURE__ */ __name(async (id2, confirm, { by, reason }) => (confirm ? await store.finance.confirm(id2, by, reason) : await store.finance.reject(id2, by, reason)).ref, "decide")
|
|
41318
41283
|
}), "paymentKind");
|
|
41319
41284
|
|
|
41320
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
41285
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/identity-link.js
|
|
41321
41286
|
var rowOf5 = /* @__PURE__ */ __name((action2) => {
|
|
41322
41287
|
const payload = action2.payload;
|
|
41323
41288
|
const [from, to] = payload.persons;
|
|
@@ -41364,7 +41329,7 @@ var identityLinkKind = /* @__PURE__ */ __name((store) => ({
|
|
|
41364
41329
|
}, "decide")
|
|
41365
41330
|
}), "identityLinkKind");
|
|
41366
41331
|
|
|
41367
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
41332
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/key-document.js
|
|
41368
41333
|
var linkRow = /* @__PURE__ */ __name((link4) => ({
|
|
41369
41334
|
id: `key:${link4.id}`,
|
|
41370
41335
|
kind: "key_document",
|
|
@@ -41432,7 +41397,7 @@ var keyDocumentKind = /* @__PURE__ */ __name((store) => {
|
|
|
41432
41397
|
};
|
|
41433
41398
|
}, "keyDocumentKind");
|
|
41434
41399
|
|
|
41435
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
41400
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/mail-findings.js
|
|
41436
41401
|
var words3 = /* @__PURE__ */ __name((...parts) => parts.filter(Boolean).join(" "), "words");
|
|
41437
41402
|
var summaryOf = /* @__PURE__ */ __name((finding) => {
|
|
41438
41403
|
switch (finding.kind) {
|
|
@@ -41520,7 +41485,7 @@ var mailFindingsKind = /* @__PURE__ */ __name((store) => {
|
|
|
41520
41485
|
};
|
|
41521
41486
|
}, "mailFindingsKind");
|
|
41522
41487
|
|
|
41523
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
41488
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/meeting-findings.js
|
|
41524
41489
|
var rowOf7 = /* @__PURE__ */ __name((action2, batch) => {
|
|
41525
41490
|
const findings = batch.input.findings;
|
|
41526
41491
|
const projects = [...new Set(findings.map((one2) => "project" in one2 ? one2.project : void 0))];
|
|
@@ -41584,7 +41549,7 @@ var meetingFindingsKind = /* @__PURE__ */ __name((store) => {
|
|
|
41584
41549
|
};
|
|
41585
41550
|
}, "meetingFindingsKind");
|
|
41586
41551
|
|
|
41587
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
41552
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/memory.js
|
|
41588
41553
|
var STATUS2 = {
|
|
41589
41554
|
proposed: "proposed",
|
|
41590
41555
|
confirmed: "confirmed",
|
|
@@ -41625,7 +41590,7 @@ var memoryKind = /* @__PURE__ */ __name((store) => ({
|
|
|
41625
41590
|
}, "decide")
|
|
41626
41591
|
}), "memoryKind");
|
|
41627
41592
|
|
|
41628
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
41593
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/orders.js
|
|
41629
41594
|
var orderKind = /* @__PURE__ */ __name((store) => reviewedKind({
|
|
41630
41595
|
type: "order",
|
|
41631
41596
|
list: /* @__PURE__ */ __name((options2) => store.orders.list(options2), "list"),
|
|
@@ -41634,7 +41599,7 @@ var orderKind = /* @__PURE__ */ __name((store) => reviewedKind({
|
|
|
41634
41599
|
decide: /* @__PURE__ */ __name(async (id2, confirm, { by, reason }) => (confirm ? await store.orders.confirm(id2, by, reason) : await store.orders.reject(id2, by, reason)).ref, "decide")
|
|
41635
41600
|
}), "orderKind");
|
|
41636
41601
|
|
|
41637
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
41602
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/relationship.js
|
|
41638
41603
|
var linkRow2 = /* @__PURE__ */ __name((link4) => ({
|
|
41639
41604
|
id: `link:${link4.id}`,
|
|
41640
41605
|
kind: "relationship",
|
|
@@ -41709,7 +41674,7 @@ var relationshipKind = /* @__PURE__ */ __name((store) => {
|
|
|
41709
41674
|
};
|
|
41710
41675
|
}, "relationshipKind");
|
|
41711
41676
|
|
|
41712
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
41677
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/relationship-update.js
|
|
41713
41678
|
var KIND = "relationship_update";
|
|
41714
41679
|
var summaryOf2 = /* @__PURE__ */ __name(({ changes }) => Object.entries(changes).map(([field, value]) => `${field} ${value ?? "cleared"}`).join(", "), "summaryOf");
|
|
41715
41680
|
var rowOf9 = /* @__PURE__ */ __name((action2) => {
|
|
@@ -41759,7 +41724,7 @@ var relationshipUpdateKind = /* @__PURE__ */ __name((store) => ({
|
|
|
41759
41724
|
}, "decide")
|
|
41760
41725
|
}), "relationshipUpdateKind");
|
|
41761
41726
|
|
|
41762
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
41727
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/source-review.js
|
|
41763
41728
|
var rowOf10 = /* @__PURE__ */ __name((action2) => {
|
|
41764
41729
|
const payload = action2.payload;
|
|
41765
41730
|
const sources = payload.sources.flatMap((source) => source.ref ?? []);
|
|
@@ -41802,7 +41767,7 @@ var sourceReviewKind = /* @__PURE__ */ __name((store) => ({
|
|
|
41802
41767
|
}, "decide")
|
|
41803
41768
|
}), "sourceReviewKind");
|
|
41804
41769
|
|
|
41805
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
41770
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/subscriptions.js
|
|
41806
41771
|
var subscriptionKind = /* @__PURE__ */ __name((store) => reviewedKind({
|
|
41807
41772
|
type: "subscription",
|
|
41808
41773
|
list: /* @__PURE__ */ __name((options2) => store.subscriptions.list(options2), "list"),
|
|
@@ -41821,7 +41786,7 @@ var subscriptionPriceKind = /* @__PURE__ */ __name((store) => reviewedKind({
|
|
|
41821
41786
|
}, "decide")
|
|
41822
41787
|
}), "subscriptionPriceKind");
|
|
41823
41788
|
|
|
41824
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
41789
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/task-close.js
|
|
41825
41790
|
var rowOf11 = /* @__PURE__ */ __name((task2) => {
|
|
41826
41791
|
const suggestion = task2.closeSuggestion;
|
|
41827
41792
|
if (suggestion === null)
|
|
@@ -41889,7 +41854,7 @@ var taskCloseKind = /* @__PURE__ */ __name((store) => {
|
|
|
41889
41854
|
};
|
|
41890
41855
|
}, "taskCloseKind");
|
|
41891
41856
|
|
|
41892
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
41857
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/transactions.js
|
|
41893
41858
|
var transactionKind = /* @__PURE__ */ __name((store) => reviewedKind({
|
|
41894
41859
|
type: "transaction",
|
|
41895
41860
|
list: /* @__PURE__ */ __name((options2) => store.transactions.list(options2), "list"),
|
|
@@ -41898,7 +41863,7 @@ var transactionKind = /* @__PURE__ */ __name((store) => reviewedKind({
|
|
|
41898
41863
|
decide: /* @__PURE__ */ __name(async (id2, confirm, { by, reason }) => (confirm ? await store.transactions.confirm(id2, by, reason) : await store.transactions.reject(id2, by, reason)).ref, "decide")
|
|
41899
41864
|
}), "transactionKind");
|
|
41900
41865
|
|
|
41901
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
41866
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/services/proposals/registry.js
|
|
41902
41867
|
var PREFIX = /^([a-z][a-z_]*):/;
|
|
41903
41868
|
var marked = /* @__PURE__ */ __name((kind, row) => kind.ownerOnly ? { ...row, ownerOnly: true } : row, "marked");
|
|
41904
41869
|
var refusalOf = /* @__PURE__ */ __name((id2, error) => {
|
|
@@ -42032,7 +41997,7 @@ var proposalRegistry = /* @__PURE__ */ __name((store) => {
|
|
|
42032
41997
|
return registry;
|
|
42033
41998
|
}, "proposalRegistry");
|
|
42034
41999
|
|
|
42035
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
42000
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/services/index.js
|
|
42036
42001
|
var servicesFor = /* @__PURE__ */ __name((deps) => {
|
|
42037
42002
|
const pictures = picturesService(deps);
|
|
42038
42003
|
const base = {
|
|
@@ -42069,7 +42034,7 @@ var servicesFor = /* @__PURE__ */ __name((deps) => {
|
|
|
42069
42034
|
return deps.messenger.services ? { ...base, ...deps.messenger.services(base, deps) } : base;
|
|
42070
42035
|
}, "servicesFor");
|
|
42071
42036
|
|
|
42072
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
42037
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/cli/messenger/lacks.js
|
|
42073
42038
|
var COMMAND_NEEDS = {
|
|
42074
42039
|
"account update": ["updateProfile", "change the profile"],
|
|
42075
42040
|
"account sessions list": ["sessions", "list the account's sessions"],
|
|
@@ -42119,7 +42084,7 @@ var hideNever = /* @__PURE__ */ __name((messenger, group) => {
|
|
|
42119
42084
|
return group;
|
|
42120
42085
|
}, "hideNever");
|
|
42121
42086
|
|
|
42122
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
42087
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/meetings/cli/query-options.js
|
|
42123
42088
|
var queryWordsAfterOptions = /* @__PURE__ */ __name((command) => {
|
|
42124
42089
|
command.allowUnknownOption();
|
|
42125
42090
|
const parse2 = command.parseOptions.bind(command);
|
|
@@ -42139,7 +42104,7 @@ var queryWordsAfterOptions = /* @__PURE__ */ __name((command) => {
|
|
|
42139
42104
|
return command;
|
|
42140
42105
|
}, "queryWordsAfterOptions");
|
|
42141
42106
|
|
|
42142
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
42107
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/meetings/cli/passage.js
|
|
42143
42108
|
var count3 = /* @__PURE__ */ __name((value) => {
|
|
42144
42109
|
if (!/^(0|[1-9]\d*)$/.test(value) || !Number.isSafeInteger(Number(value)))
|
|
42145
42110
|
throw new CliError("validation_error", "expected a nonnegative safe integer");
|
|
@@ -42181,7 +42146,7 @@ var addMeetingPassageCommandDefinition = /* @__PURE__ */ __name((program, deps)
|
|
|
42181
42146
|
var createMeetingPassageCommand = sharedCommand(createMeetingPassageCommandDefinition);
|
|
42182
42147
|
var addMeetingPassageCommand = sharedCommand(addMeetingPassageCommandDefinition);
|
|
42183
42148
|
|
|
42184
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
42149
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/meetings/cli/project-evidence.js
|
|
42185
42150
|
var integer2 = /* @__PURE__ */ __name((value) => {
|
|
42186
42151
|
if (!/^[1-9]\d*$/.test(value) || !Number.isSafeInteger(Number(value)))
|
|
42187
42152
|
throw new CliError("validation_error", "expected a positive safe integer");
|
|
@@ -42204,7 +42169,7 @@ ${fieldsHelp(MEETING_PROJECT_EVIDENCE_QUERY)}`).option("--limit <n>", "hits in o
|
|
|
42204
42169
|
}, "addMeetingProjectEvidenceCommandDefinition");
|
|
42205
42170
|
var addMeetingProjectEvidenceCommand = sharedCommand(addMeetingProjectEvidenceCommandDefinition);
|
|
42206
42171
|
|
|
42207
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
42172
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/meetings/cli/search.js
|
|
42208
42173
|
var ZONED = /(?:Z|[+-]\d{2}:?\d{2})$/i;
|
|
42209
42174
|
var moment = /* @__PURE__ */ __name((flag, end, readIn) => (value) => {
|
|
42210
42175
|
const zone = timezoneOf();
|
|
@@ -42290,7 +42255,7 @@ var addMeetingSearchCommandDefinition = /* @__PURE__ */ __name((program, deps) =
|
|
|
42290
42255
|
var createMeetingSearchCommand = sharedCommand(createMeetingSearchCommandDefinition);
|
|
42291
42256
|
var addMeetingSearchCommand = sharedCommand(addMeetingSearchCommandDefinition);
|
|
42292
42257
|
|
|
42293
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
42258
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/meetings/cli/index.js
|
|
42294
42259
|
var integer4 = /* @__PURE__ */ __name((text2) => {
|
|
42295
42260
|
if (!/^[1-9]\d*$/.test(text2) || !Number.isSafeInteger(Number(text2)))
|
|
42296
42261
|
throw new InvalidArgumentError("expected a positive integer");
|
|
@@ -42434,7 +42399,7 @@ ${fieldsHelp(EVENT_QUERY, MEETING_QUERY_GUIDE)}`);
|
|
|
42434
42399
|
}, "addMeetingCommandsDefinition");
|
|
42435
42400
|
var addMeetingCommands = sharedCommand(addMeetingCommandsDefinition);
|
|
42436
42401
|
|
|
42437
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
42402
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/cli/list-query.js
|
|
42438
42403
|
var LIST_QUERY_GUIDE = "https://github.com/WireCatLabs/cli-core/blob/main/docs/search/query-language.md";
|
|
42439
42404
|
var QUERY_ARGUMENT = "field:value terms that narrow the list \u2014 the fields are below";
|
|
42440
42405
|
var withQuery = /* @__PURE__ */ __name((command, registry) => {
|
|
@@ -42567,7 +42532,7 @@ var termField = /* @__PURE__ */ __name((name, type, example, more = {}) => nativ
|
|
|
42567
42532
|
var queryHelp = /* @__PURE__ */ __name((registry) => `
|
|
42568
42533
|
${fieldsHelp(registry, LIST_QUERY_GUIDE)}`, "queryHelp");
|
|
42569
42534
|
|
|
42570
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
42535
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/cli/paging.js
|
|
42571
42536
|
var positiveCount = /* @__PURE__ */ __name((flag) => (value) => {
|
|
42572
42537
|
if (!/^\d+$/.test(value.trim()) || Number(value) < 1)
|
|
42573
42538
|
throw new CliError("validation_error", `${flag} takes a whole number from 1 upwards, not "${value}"`);
|
|
@@ -42576,7 +42541,7 @@ var positiveCount = /* @__PURE__ */ __name((flag) => (value) => {
|
|
|
42576
42541
|
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");
|
|
42577
42542
|
var window2 = /* @__PURE__ */ __name(({ limit, page, all }) => all ? { offset: 0 } : { limit, offset: (page - 1) * limit }, "window");
|
|
42578
42543
|
|
|
42579
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
42544
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/cli/messenger/chat-answers.js
|
|
42580
42545
|
var defined = /* @__PURE__ */ __name((record2) => Object.fromEntries(Object.entries(record2).filter(([, value]) => value !== void 0)), "defined");
|
|
42581
42546
|
var chatRef2 = /* @__PURE__ */ __name((account, chat) => formatReference({ type: "chat", provider: account.provider, account: account.account, chat }), "chatRef");
|
|
42582
42547
|
var settingsOf = /* @__PURE__ */ __name((settings) => defined({
|
|
@@ -42838,7 +42803,7 @@ var sessionAnswer = /* @__PURE__ */ __name(({ current, client, device, location,
|
|
|
42838
42803
|
...createdAt === void 0 ? {} : { created_at: createdAt }
|
|
42839
42804
|
}), "sessionAnswer");
|
|
42840
42805
|
|
|
42841
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
42806
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/background/relay.js
|
|
42842
42807
|
import { createHash as createHash16 } from "node:crypto";
|
|
42843
42808
|
import { chmodSync, lstatSync, mkdirSync as mkdirSync6, rmSync as rmSync2 } from "node:fs";
|
|
42844
42809
|
import { createConnection, createServer } from "node:net";
|
|
@@ -42986,7 +42951,7 @@ var serve = /* @__PURE__ */ __name(async (socket, request, stdin, signal, run) =
|
|
|
42986
42951
|
}
|
|
42987
42952
|
}, "serve");
|
|
42988
42953
|
|
|
42989
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
42954
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-relay.js
|
|
42990
42955
|
var lentConnection = /* @__PURE__ */ __name((connection, watchers) => throughWrapper(connection, {
|
|
42991
42956
|
close: /* @__PURE__ */ __name(async () => {
|
|
42992
42957
|
}, "close"),
|
|
@@ -43091,13 +43056,6 @@ export {
|
|
|
43091
43056
|
newOperationId,
|
|
43092
43057
|
batchProgress,
|
|
43093
43058
|
mergeBatches,
|
|
43094
|
-
chatReferenceOf,
|
|
43095
|
-
wrongAccount,
|
|
43096
|
-
ensureAccount,
|
|
43097
|
-
isId,
|
|
43098
|
-
foldName,
|
|
43099
|
-
pickChat,
|
|
43100
|
-
pickPerson,
|
|
43101
43059
|
OFFLINE,
|
|
43102
43060
|
onlineDeps,
|
|
43103
43061
|
storedDeps,
|
|
@@ -43216,6 +43174,7 @@ export {
|
|
|
43216
43174
|
writeEnrichmentSetting,
|
|
43217
43175
|
enrichmentEndpoint,
|
|
43218
43176
|
isEnrichmentProvider,
|
|
43177
|
+
enrichmentPrice,
|
|
43219
43178
|
keyLookup,
|
|
43220
43179
|
keyVariable,
|
|
43221
43180
|
enrichmentState,
|
|
@@ -43225,13 +43184,12 @@ export {
|
|
|
43225
43184
|
searchNotesOf,
|
|
43226
43185
|
calendarAccounts,
|
|
43227
43186
|
searchMeetingHits,
|
|
43228
|
-
|
|
43229
|
-
DEFAULT_HARDER_MODEL,
|
|
43230
|
-
HARDER_ENDPOINT,
|
|
43187
|
+
HARDER_MODELS,
|
|
43231
43188
|
HARDER_CANDIDATES,
|
|
43232
43189
|
HARDER_CHARS,
|
|
43233
43190
|
readHarderSetting,
|
|
43234
43191
|
writeHarderSetting,
|
|
43192
|
+
harderRanking,
|
|
43235
43193
|
RESOURCES_SEARCHED,
|
|
43236
43194
|
searchAll,
|
|
43237
43195
|
SERVER_SEARCH_KEY,
|