@wirecat/amo-cli 0.1.1 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +36 -0
- package/README.md +15 -10
- package/contracts/wirecat.json +55 -6
- package/dist/amo/button.d.ts +53 -0
- package/dist/amo/button.d.ts.map +1 -0
- package/dist/amo/button.js +234 -0
- package/dist/amo/button.js.map +1 -0
- package/dist/amo/oauth.d.ts +12 -3
- package/dist/amo/oauth.d.ts.map +1 -1
- package/dist/amo/oauth.js +19 -6
- package/dist/amo/oauth.js.map +1 -1
- package/dist/bin/amo.js +2 -2
- package/dist/bundle/agent-FDNP27SW.js +40 -0
- package/dist/bundle/{all-profiles-3KQVWDV4.js → all-profiles-PPUN52SP.js} +63 -21
- package/dist/bundle/amo.js +28 -26
- package/dist/bundle/{anthropic-N5NOX7K7.js → anthropic-RDNDT6ZP.js} +5 -5
- package/dist/bundle/{app-server-2MST5EZ5.js → app-server-MMALJDBP.js} +79 -68
- package/dist/bundle/{bun-4NHWOFX2.js → bun-Y4FRPURU.js} +2 -2
- package/dist/bundle/{bun-sqlite-DRSXPWPR.js → bun-sqlite-7NXJGZCO.js} +6 -6
- package/dist/bundle/{chunk-GNTJMB6X.js → chunk-2YEDK2XV.js} +4 -4
- package/dist/bundle/chunk-3NDMVXGS.js +80 -0
- package/dist/bundle/{chunk-Y37A3232.js → chunk-3RP57VDS.js} +114 -7
- package/dist/bundle/{chunk-ODNQU7DH.js → chunk-3YOZTGZ6.js} +43 -64
- package/dist/bundle/{chunk-ESZSMZKT.js → chunk-4EYPFFTN.js} +2 -2
- package/dist/bundle/{chunk-TZSUZGWM.js → chunk-4MVTSMWP.js} +2 -2
- package/dist/bundle/{chunk-LJQUYECN.js → chunk-5DPMNYQT.js} +1 -1
- package/dist/bundle/{chunk-7PKFYX7V.js → chunk-5POLHHDZ.js} +8 -8
- package/dist/bundle/{chunk-A33TIM5D.js → chunk-5RXH35ZA.js} +225 -225
- package/dist/bundle/{chunk-BVMNXI53.js → chunk-77FP6AWC.js} +25 -25
- package/dist/bundle/{chunk-L6AFE73L.js → chunk-7E6QSIRQ.js} +1 -1
- package/dist/bundle/chunk-7SBAHYZW.js +734 -0
- package/dist/bundle/{chunk-GQ7VFIYM.js → chunk-7USADF2W.js} +23 -7
- package/dist/bundle/{chunk-AHJ4W2IL.js → chunk-7VSYOMEH.js} +2 -2
- package/dist/bundle/chunk-7Z6NYSAN.js +52 -0
- package/dist/bundle/chunk-AYR6FIXN.js +30 -0
- package/dist/bundle/{chunk-ADEWU4P4.js → chunk-B4ITT55D.js} +1 -1
- package/dist/bundle/{chunk-AUBB72VF.js → chunk-BKTLAXUK.js} +41 -10
- package/dist/bundle/{chunk-63F65DHU.js → chunk-BYVDMPLX.js} +2 -2
- package/dist/bundle/{chunk-V77XNPXG.js → chunk-CQ472K6W.js} +11 -11
- package/dist/bundle/{chunk-FKR3M62D.js → chunk-CUZISGWH.js} +13 -13
- package/dist/bundle/{chunk-LDEBZ3IX.js → chunk-D6UPCAPD.js} +1 -1
- package/dist/bundle/{chunk-P3WQRTYZ.js → chunk-E2DLRLJ5.js} +1 -1
- package/dist/bundle/{chunk-NJYAL3UW.js → chunk-EHULZEXQ.js} +1 -1
- package/dist/bundle/chunk-EKNP326Q.js +108 -0
- package/dist/bundle/{chunk-DJD7TBYG.js → chunk-ELJGALVX.js} +76 -74
- package/dist/bundle/{chunk-RPWAJYI6.js → chunk-FI2TP6TY.js} +3 -3
- package/dist/bundle/{chunk-CDY2NJFE.js → chunk-FPDTIQOK.js} +2 -2
- package/dist/bundle/{chunk-NC76INB2.js → chunk-FPIUFSWK.js} +3099 -2266
- package/dist/bundle/{chunk-SZ2V62HB.js → chunk-GCUFGDKE.js} +2 -2
- package/dist/bundle/{chunk-LRBPT7LQ.js → chunk-GKP7CKW2.js} +6 -6
- package/dist/bundle/chunk-H34RBRS3.js +209 -0
- package/dist/bundle/{chunk-O2UCU52O.js → chunk-HQH4YPO5.js} +134 -569
- package/dist/bundle/{chunk-TNUFLULO.js → chunk-I4QCJZW7.js} +8 -8
- package/dist/bundle/{chunk-DXGGCGRP.js → chunk-IDQ7BNCZ.js} +14 -14
- package/dist/bundle/{chunk-JMDLPBXK.js → chunk-IEAPNTHT.js} +17 -17
- package/dist/bundle/{chunk-XQL7FEF4.js → chunk-ILUREFWJ.js} +9 -9
- package/dist/bundle/{chunk-QRQYUHCZ.js → chunk-IYUWVMGP.js} +12 -12
- package/dist/bundle/chunk-JTFAG3BX.js +338 -0
- package/dist/bundle/{chunk-CHUKWON6.js → chunk-JZ2AITOE.js} +3 -3
- package/dist/bundle/{chunk-JR6TSMFX.js → chunk-KEOKH2OZ.js} +103 -70
- package/dist/bundle/{chunk-UMVRT7VQ.js → chunk-KKXF6TSS.js} +1 -1
- package/dist/bundle/{chunk-5E5R65CA.js → chunk-KTLCQ7GC.js} +2 -2
- package/dist/bundle/{chunk-QDMXZZG4.js → chunk-KZDBO2FT.js} +18 -8
- package/dist/bundle/{chunk-VX37MPTJ.js → chunk-L2ZQDTDU.js} +1 -1
- package/dist/bundle/{chunk-CUZRHF34.js → chunk-L3JDQNBC.js} +4 -4
- package/dist/bundle/{chunk-3IRJDH2U.js → chunk-L72UALL5.js} +2 -100
- package/dist/bundle/{chunk-XRTD2GCU.js → chunk-LOSOWTAZ.js} +19 -258
- package/dist/bundle/{chunk-LGQXGOPJ.js → chunk-LYRICHEK.js} +2 -2
- package/dist/bundle/{chunk-UBRREVLJ.js → chunk-MMOEAH5G.js} +2 -2
- package/dist/bundle/{chunk-EQ7A6NA6.js → chunk-MPXKBF37.js} +1 -1
- package/dist/bundle/{chunk-SMSTGO2G.js → chunk-MYMBPQPQ.js} +4 -4
- package/dist/bundle/chunk-N4A6E2LL.js +559 -0
- package/dist/bundle/{chunk-5HGGG3QO.js → chunk-NJ2LJKNH.js} +16 -3
- package/dist/bundle/{chunk-TGEQNS6G.js → chunk-OMH3WP7F.js} +1 -1
- package/dist/bundle/{chunk-ULXQ5MJM.js → chunk-ORFLQGWH.js} +4 -4
- package/dist/bundle/{chunk-DQV2IKCF.js → chunk-PFZ7WG2B.js} +10 -3
- package/dist/bundle/{chunk-5D4AEUVA.js → chunk-PL5P7UKW.js} +434 -1
- package/dist/bundle/{chunk-6RS7OYTD.js → chunk-Q2YVY7IR.js} +3 -3
- package/dist/bundle/{chunk-DOSJONCX.js → chunk-QHA33ZS6.js} +7 -7
- package/dist/bundle/{chunk-JH3UOHRE.js → chunk-QQT7WUR4.js} +4 -4
- package/dist/bundle/{chunk-EROSAUNP.js → chunk-R23DRW2T.js} +5 -5
- package/dist/bundle/{chunk-WCYCUTSK.js → chunk-SBQ5MFHM.js} +7 -7
- package/dist/bundle/{chunk-DAY6TSPF.js → chunk-SJYVKR54.js} +62 -50
- package/dist/bundle/{chunk-T2UDLX76.js → chunk-SJZ52MZE.js} +6 -6
- package/dist/bundle/{chunk-ZM7I52EP.js → chunk-T6D34X5S.js} +3 -4
- package/dist/bundle/{chunk-P5LYZRKW.js → chunk-TCDER3G7.js} +1586 -749
- package/dist/bundle/{chunk-2I5UVMLW.js → chunk-TWZF7VO6.js} +1726 -1159
- package/dist/bundle/{chunk-VVHRQ46X.js → chunk-UA7C57IB.js} +2 -2
- package/dist/bundle/{chunk-5SBLU7D7.js → chunk-UM6SDFB6.js} +1 -1
- package/dist/bundle/{chunk-7U5HJEPZ.js → chunk-UOPP6ORQ.js} +21 -19
- package/dist/bundle/{chunk-U7RLVJ34.js → chunk-UT3ODJMI.js} +4 -4
- package/dist/bundle/{chunk-7GTUZY7M.js → chunk-UZLT6VSP.js} +3 -3
- package/dist/bundle/{chunk-5RLUHTK6.js → chunk-V3ZWYMXT.js} +1 -1
- package/dist/bundle/{chunk-LSND5QYI.js → chunk-VD7HD25M.js} +9 -9
- package/dist/bundle/{chunk-PFO76YFP.js → chunk-VEGNZPQU.js} +18 -18
- package/dist/bundle/{chunk-5Z5PEEKP.js → chunk-VFU25P57.js} +4 -4
- package/dist/bundle/{chunk-4ZAK773N.js → chunk-VJHOBOJR.js} +3 -3
- package/dist/bundle/{chunk-PM77PRB6.js → chunk-VPBSZ4HQ.js} +185 -162
- package/dist/bundle/{chunk-Q2VNBY4Y.js → chunk-VY27K2SH.js} +746 -1205
- package/dist/bundle/{chunk-XEFAMLSD.js → chunk-W4KY5JF5.js} +3 -3
- package/dist/bundle/{chunk-73CXFE36.js → chunk-WBWVBEHH.js} +29 -1
- package/dist/bundle/{chunk-NHXJYS4R.js → chunk-XDT74W5P.js} +32 -28
- package/dist/bundle/{chunk-EPOV5UIO.js → chunk-XI75EKLG.js} +11 -11
- package/dist/bundle/{chunk-2B24PDH7.js → chunk-XM2G62YF.js} +8 -6
- package/dist/bundle/{chunk-5D4Z2B5B.js → chunk-YSOGGUK3.js} +9 -9
- package/dist/bundle/chunk-YVO2YGML.js +353 -0
- package/dist/bundle/{chunk-EQUKVVHX.js → chunk-ZIFEIJRK.js} +7 -7
- package/dist/bundle/{cli-QVWTXADI.js → cli-GAO7LDDA.js} +150 -103
- package/dist/bundle/command-contract-RLIBGIDT.js +39 -0
- package/dist/bundle/{command-server-entry-5VL5U5EE.js → command-server-entry-BCDJP7XE.js} +28 -28
- package/dist/bundle/{decode-SQ5WGNDX.js → decode-OY2GR442.js} +5 -5
- package/dist/bundle/{dispatch-LA4DFXJD.js → dispatch-JWEJCBTF.js} +8 -8
- package/dist/bundle/dist-PAKDDIBT.js +191 -0
- package/dist/bundle/{echarts-25Z3RINX.js → echarts-AHEPEA5P.js} +2 -2
- package/dist/bundle/{embed-BNOTNXMA.js → embed-RVSUV54Z.js} +6 -6
- package/dist/bundle/{embedder-BCUT7KKV.js → embedder-GRZXZUXR.js} +9 -9
- package/dist/bundle/{failure-PKAC6XCT.js → failure-DDCSR54L.js} +2 -2
- package/dist/bundle/{first-run-EO5K5GME.js → first-run-G3WI4DH4.js} +12 -12
- package/dist/bundle/first-screen-6MLCMW2U.js +39 -0
- package/dist/bundle/{instructions-VLM3QAYB.js → instructions-NWQC5IP4.js} +1 -1
- package/dist/bundle/{mcp-7ILNMJH5.js → mcp-KGWT6TGO.js} +2 -2
- package/dist/bundle/meeting-combined-SVTFVZNJ.js +24 -0
- package/dist/bundle/{meeting-model-GHMMUQ34.js → meeting-model-I6T5HIZ5.js} +11 -11
- package/dist/bundle/{meeting-semantic-BMP6323L.js → meeting-semantic-47UA5JBF.js} +6 -6
- package/dist/bundle/{node-CT3N3TNL.js → node-7VXN7F4B.js} +2 -2
- package/dist/bundle/{node-sqlite-MELD2SBX.js → node-sqlite-BSEON57L.js} +7 -7
- package/dist/bundle/{oauth-YBH5OKC2.js → oauth-V6UAT4YD.js} +8 -8
- package/dist/bundle/{open-WNSBWTAG.js → open-7LVAY7ZU.js} +5 -5
- package/dist/bundle/{openai-XSNMNLW6.js → openai-OIEH342H.js} +15 -15
- package/dist/bundle/{process-I2QKOMM7.js → process-PTUCNLZ7.js} +1 -1
- package/dist/bundle/{program-DV73CIGP.js → program-S5WY5IZP.js} +643 -852
- package/dist/bundle/{prompt-SOG4AKPM.js → prompt-7XWTEQ62.js} +5 -5
- package/dist/bundle/{recognize-WMQLWMXH.js → recognize-HGIAJXDR.js} +4 -4
- package/dist/bundle/{remote-4BTFOLFY.js → remote-X4SVEMHS.js} +9 -9
- package/dist/bundle/{rerank-LJ3TWRNV.js → rerank-QWM3DQMU.js} +7 -7
- package/dist/bundle/{serve-B6UANKXN.js → serve-VVG3TXYT.js} +10 -10
- package/dist/bundle/{server-YRH6GJ5Z.js → server-EHYK62BJ.js} +73 -61
- package/dist/bundle/server-WRPTBVNW.js +86 -0
- package/dist/bundle/source-YISMYLBQ.js +44 -0
- package/dist/bundle/{sqlite-runtime-R7QFWFE7.js → sqlite-runtime-MCKXDNYC.js} +6 -6
- package/dist/bundle/{state-DIJ5YUOE.js → state-MYNYQJCT.js} +6 -6
- package/dist/bundle/store-A7R2SZVD.js +34 -0
- package/dist/bundle/{store-MYTYDV6A.js → store-B7O3F3QB.js} +28 -21
- package/dist/bundle/{store-6WFWW7EC.js → store-FPIU2546.js} +24 -23
- package/dist/bundle/store-maintenance-command-D55FRTIK.js +73 -0
- package/dist/bundle/surface-3EX6IGHW.js +72 -0
- package/dist/bundle/writer-XDHZ54JD.js +46 -0
- package/dist/commands/session.d.ts +23 -0
- package/dist/commands/session.d.ts.map +1 -1
- package/dist/commands/session.js +115 -45
- package/dist/commands/session.js.map +1 -1
- package/dist/identity.js +1 -1
- package/dist/identity.js.map +1 -1
- package/dist/program.d.ts.map +1 -1
- package/dist/program.js +3 -1
- package/dist/program.js.map +1 -1
- package/dist/reasons.d.ts.map +1 -1
- package/dist/reasons.js +2 -0
- package/dist/reasons.js.map +1 -1
- package/dist/setup/flow.d.ts.map +1 -1
- package/dist/setup/flow.js +74 -4
- package/dist/setup/flow.js.map +1 -1
- package/dist/setup/texts.en.json +22 -1
- package/dist/setup/texts.es.json +22 -1
- package/dist/setup/texts.ru.json +22 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +5 -3
- package/scenarios/first-sync.md +23 -0
- package/scenarios/keep-in-sync.md +18 -0
- package/scenarios/safe-agent-writes.md +21 -0
- package/skills/amo-cli/SKILL.md +1 -1
- package/skills/amo-cli/references/mcp.md +1 -1
- package/skills/amo-cli/references/setup.md +9 -3
- package/dist/bundle/command-contract-QBUQBXH7.js +0 -39
- package/dist/bundle/first-screen-GMN3T6RW.js +0 -39
- package/dist/bundle/meeting-combined-LAMF7S2B.js +0 -24
- package/dist/bundle/server-S6XD6V6E.js +0 -77
- package/dist/bundle/source-DGFTA2TN.js +0 -42
- package/dist/bundle/store-FJCNZULV.js +0 -32
- package/dist/bundle/store-maintenance-command-B5TMKFMG.js +0 -68
- package/dist/bundle/writer-GP7VIMAU.js +0 -44
|
@@ -3,41 +3,50 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
answerOf,
|
|
5
5
|
messengerContext
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-UOPP6ORQ.js";
|
|
7
|
+
import {
|
|
8
|
+
chatEventAnswer,
|
|
9
|
+
memberAnswer,
|
|
10
|
+
pollVoteAnswer
|
|
11
|
+
} from "./chunk-YVO2YGML.js";
|
|
12
|
+
import {
|
|
13
|
+
serveRelay
|
|
14
|
+
} from "./chunk-JTFAG3BX.js";
|
|
7
15
|
import {
|
|
8
16
|
FETCHING,
|
|
9
17
|
RULES_VERSION,
|
|
10
18
|
applyTaskRulesOnArrival,
|
|
11
|
-
capability,
|
|
12
|
-
chatEventAnswer,
|
|
13
19
|
embeddingKeys,
|
|
14
20
|
endpointKeyName,
|
|
15
|
-
memberAnswer,
|
|
16
21
|
modelGateway,
|
|
17
22
|
onlineDeps,
|
|
18
23
|
openRequestTask,
|
|
19
24
|
patiently,
|
|
20
|
-
pollVoteAnswer,
|
|
21
25
|
refuseLockedOutput,
|
|
22
26
|
senderIsMe,
|
|
23
|
-
serveRelay,
|
|
24
27
|
servicesFor,
|
|
25
28
|
syncsOneChat,
|
|
26
29
|
withTimeLimit
|
|
27
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-VY27K2SH.js";
|
|
31
|
+
import {
|
|
32
|
+
newSendId
|
|
33
|
+
} from "./chunk-TWZF7VO6.js";
|
|
34
|
+
import {
|
|
35
|
+
capability
|
|
36
|
+
} from "./chunk-AYR6FIXN.js";
|
|
28
37
|
import {
|
|
29
|
-
newSendId,
|
|
30
38
|
queryTerms,
|
|
31
39
|
typedQuery,
|
|
32
40
|
withQuery
|
|
33
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-7SBAHYZW.js";
|
|
34
42
|
import {
|
|
35
43
|
holdLock,
|
|
36
44
|
lockPath,
|
|
45
|
+
markCurrent,
|
|
37
46
|
releaseLock,
|
|
38
47
|
servingProfiles,
|
|
39
48
|
takeLock
|
|
40
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-NJ2LJKNH.js";
|
|
41
50
|
import {
|
|
42
51
|
Command,
|
|
43
52
|
LOCAL_READ,
|
|
@@ -64,10 +73,10 @@ import {
|
|
|
64
73
|
snakeKeys,
|
|
65
74
|
storeTable,
|
|
66
75
|
withoutProviderRefs
|
|
67
|
-
} from "./chunk-
|
|
76
|
+
} from "./chunk-VPBSZ4HQ.js";
|
|
68
77
|
import {
|
|
69
78
|
holdersOf
|
|
70
|
-
} from "./chunk-
|
|
79
|
+
} from "./chunk-UM6SDFB6.js";
|
|
71
80
|
import {
|
|
72
81
|
QUICK_HEALTH_CHECKS,
|
|
73
82
|
fts5Tables,
|
|
@@ -75,7 +84,7 @@ import {
|
|
|
75
84
|
lossUnknown,
|
|
76
85
|
storeDamageReport,
|
|
77
86
|
storeHealth
|
|
78
|
-
} from "./chunk-
|
|
87
|
+
} from "./chunk-IEAPNTHT.js";
|
|
79
88
|
import {
|
|
80
89
|
CORPORA,
|
|
81
90
|
MIGRATIONS,
|
|
@@ -99,10 +108,12 @@ import {
|
|
|
99
108
|
readStoreTables,
|
|
100
109
|
rebuildMentions,
|
|
101
110
|
resetAttachmentWords,
|
|
111
|
+
resetContentPostWords,
|
|
102
112
|
resetCrmFileWords,
|
|
103
113
|
resetNoteIndex,
|
|
104
114
|
resetSearchIndex,
|
|
105
115
|
resetStems,
|
|
116
|
+
resetTrackerItemWords,
|
|
106
117
|
rollBack,
|
|
107
118
|
rowCounts,
|
|
108
119
|
searchIndexState,
|
|
@@ -111,55 +122,55 @@ import {
|
|
|
111
122
|
storeClients,
|
|
112
123
|
storeContents,
|
|
113
124
|
vectorIndexCounts
|
|
114
|
-
} from "./chunk-
|
|
125
|
+
} from "./chunk-TCDER3G7.js";
|
|
115
126
|
import {
|
|
116
127
|
currentRun,
|
|
117
128
|
readDamageMark,
|
|
118
129
|
readHealthMark,
|
|
119
130
|
readJournalMark,
|
|
120
131
|
recordDeepCheck
|
|
121
|
-
} from "./chunk-
|
|
132
|
+
} from "./chunk-77FP6AWC.js";
|
|
122
133
|
import {
|
|
123
134
|
failureKey,
|
|
124
135
|
isStoreDamage
|
|
125
|
-
} from "./chunk-
|
|
136
|
+
} from "./chunk-MMOEAH5G.js";
|
|
126
137
|
import {
|
|
127
138
|
modelAddressAllowed,
|
|
128
139
|
onThisComputer
|
|
129
|
-
} from "./chunk-
|
|
130
|
-
import {
|
|
131
|
-
readSharedSection,
|
|
132
|
-
sharedConfigPath,
|
|
133
|
-
writeSharedSection
|
|
134
|
-
} from "./chunk-DOSJONCX.js";
|
|
140
|
+
} from "./chunk-7USADF2W.js";
|
|
135
141
|
import {
|
|
136
142
|
renderMessages
|
|
137
|
-
} from "./chunk-
|
|
143
|
+
} from "./chunk-UA7C57IB.js";
|
|
138
144
|
import {
|
|
139
145
|
levelFor
|
|
140
|
-
} from "./chunk-
|
|
146
|
+
} from "./chunk-KZDBO2FT.js";
|
|
141
147
|
import {
|
|
142
148
|
formatLocator,
|
|
143
149
|
parseLocator
|
|
144
|
-
} from "./chunk-
|
|
150
|
+
} from "./chunk-IYUWVMGP.js";
|
|
145
151
|
import {
|
|
146
152
|
queryFieldsOf
|
|
147
|
-
} from "./chunk-
|
|
153
|
+
} from "./chunk-5RXH35ZA.js";
|
|
154
|
+
import {
|
|
155
|
+
readSharedSection,
|
|
156
|
+
sharedConfigPath,
|
|
157
|
+
writeSharedSection
|
|
158
|
+
} from "./chunk-QHA33ZS6.js";
|
|
148
159
|
import {
|
|
149
160
|
readSecret
|
|
150
|
-
} from "./chunk-
|
|
161
|
+
} from "./chunk-VJHOBOJR.js";
|
|
151
162
|
import {
|
|
152
163
|
storePath
|
|
153
|
-
} from "./chunk-
|
|
164
|
+
} from "./chunk-KTLCQ7GC.js";
|
|
154
165
|
import {
|
|
155
166
|
openCache
|
|
156
|
-
} from "./chunk-
|
|
167
|
+
} from "./chunk-GKP7CKW2.js";
|
|
157
168
|
import {
|
|
158
169
|
Credentials,
|
|
159
170
|
isMovedRun,
|
|
160
171
|
resolvePaths,
|
|
161
172
|
writeSecurely
|
|
162
|
-
} from "./chunk-
|
|
173
|
+
} from "./chunk-ELJGALVX.js";
|
|
163
174
|
import {
|
|
164
175
|
array,
|
|
165
176
|
boolean,
|
|
@@ -181,10 +192,10 @@ import {
|
|
|
181
192
|
string,
|
|
182
193
|
transform,
|
|
183
194
|
trim
|
|
184
|
-
} from "./chunk-
|
|
195
|
+
} from "./chunk-BKTLAXUK.js";
|
|
185
196
|
import {
|
|
186
197
|
CliError
|
|
187
|
-
} from "./chunk-
|
|
198
|
+
} from "./chunk-GCUFGDKE.js";
|
|
188
199
|
import {
|
|
189
200
|
__commonJS,
|
|
190
201
|
__name,
|
|
@@ -5524,11 +5535,11 @@ var require_liquid_node = __commonJS({
|
|
|
5524
5535
|
}
|
|
5525
5536
|
});
|
|
5526
5537
|
|
|
5527
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5538
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.720.0_@wirecat+cli-base@0.126.1_commander@15.0.0_esbuild@0.28.2_typ_891204b7e0cfbcc49dd71e2850e8663f/node_modules/@wirecat/cli-core/dist/cli/messenger/store-maintenance-command.js
|
|
5528
5539
|
import { chmodSync, constants, copyFileSync, existsSync as existsSync10, mkdirSync, realpathSync as realpathSync3, renameSync as renameSync3, rmSync as rmSync3, statfsSync as statfsSync2, statSync as statSync4, writeFileSync as writeFileSync2 } from "node:fs";
|
|
5529
5540
|
import { dirname as dirname3, resolve } from "node:path";
|
|
5530
5541
|
|
|
5531
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5542
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.720.0_@wirecat+cli-base@0.126.1_commander@15.0.0_esbuild@0.28.2_typ_891204b7e0cfbcc49dd71e2850e8663f/node_modules/@wirecat/cli-core/dist/sealed.js
|
|
5532
5543
|
import { createCipheriv, createDecipheriv, createHash, randomBytes, scrypt, timingSafeEqual } from "node:crypto";
|
|
5533
5544
|
import { closeSync, createReadStream, createWriteStream, existsSync, openSync, readSync, renameSync, rmSync, statSync } from "node:fs";
|
|
5534
5545
|
import { Transform } from "node:stream";
|
|
@@ -5635,7 +5646,7 @@ var unsealFile = /* @__PURE__ */ __name(async (from, to, password) => {
|
|
|
5635
5646
|
renameSync(pending, to);
|
|
5636
5647
|
}, "unsealFile");
|
|
5637
5648
|
|
|
5638
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5649
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.720.0_@wirecat+cli-base@0.126.1_commander@15.0.0_esbuild@0.28.2_typ_891204b7e0cfbcc49dd71e2850e8663f/node_modules/@wirecat/cli-core/dist/store/compatibility.js
|
|
5639
5650
|
var SPEAKS = MIGRATIONS.at(-1)?.version ?? 0;
|
|
5640
5651
|
var fileSchemaOf = /* @__PURE__ */ __name((database) => {
|
|
5641
5652
|
const tracked = database.prepare("SELECT 1 FROM sqlite_master WHERE name = 'schema_migrations'").get();
|
|
@@ -5659,7 +5670,7 @@ var compatibilityOf = /* @__PURE__ */ __name((file2, migrations = MIGRATIONS) =>
|
|
|
5659
5670
|
};
|
|
5660
5671
|
}, "compatibilityOf");
|
|
5661
5672
|
|
|
5662
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5673
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.720.0_@wirecat+cli-base@0.126.1_commander@15.0.0_esbuild@0.28.2_typ_891204b7e0cfbcc49dd71e2850e8663f/node_modules/@wirecat/cli-core/dist/store/repair.js
|
|
5663
5674
|
import { createHash as createHash2 } from "node:crypto";
|
|
5664
5675
|
var COPY_MARK = "__repair_";
|
|
5665
5676
|
var COPY_NAME = /__repair_[0-9a-f]{8}(_\d+)?$/;
|
|
@@ -5913,19 +5924,19 @@ var deleteCopy = /* @__PURE__ */ __name((database, name) => {
|
|
|
5913
5924
|
return found;
|
|
5914
5925
|
}, "deleteCopy");
|
|
5915
5926
|
|
|
5916
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5927
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.720.0_@wirecat+cli-base@0.126.1_commander@15.0.0_esbuild@0.28.2_typ_891204b7e0cfbcc49dd71e2850e8663f/node_modules/@wirecat/cli-core/dist/cli/store-info.js
|
|
5917
5928
|
import { existsSync as existsSync4, statSync as statSync3 } from "node:fs";
|
|
5918
5929
|
|
|
5919
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5930
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.720.0_@wirecat+cli-base@0.126.1_commander@15.0.0_esbuild@0.28.2_typ_891204b7e0cfbcc49dd71e2850e8663f/node_modules/@wirecat/cli-core/dist/cli/store-recover.js
|
|
5920
5931
|
import { existsSync as existsSync3 } from "node:fs";
|
|
5921
5932
|
|
|
5922
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5933
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.720.0_@wirecat+cli-base@0.126.1_commander@15.0.0_esbuild@0.28.2_typ_891204b7e0cfbcc49dd71e2850e8663f/node_modules/@wirecat/cli-core/dist/store/recover.js
|
|
5923
5934
|
import { execFileSync, spawn } from "node:child_process";
|
|
5924
5935
|
import { existsSync as existsSync2, readFileSync, realpathSync, renameSync as renameSync2, rmSync as rmSync2, statfsSync, statSync as statSync2, writeFileSync } from "node:fs";
|
|
5925
5936
|
import { basename, dirname, join } from "node:path";
|
|
5926
5937
|
import { Transform as Transform2 } from "node:stream";
|
|
5927
5938
|
|
|
5928
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5939
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.720.0_@wirecat+cli-base@0.126.1_commander@15.0.0_esbuild@0.28.2_typ_891204b7e0cfbcc49dd71e2850e8663f/node_modules/@wirecat/cli-core/dist/store/refill.js
|
|
5929
5940
|
var REFILL_MARGIN_MS = 864e5;
|
|
5930
5941
|
var TIME_KEYS = 1e12;
|
|
5931
5942
|
var integerId = `external_id GLOB '[0-9]*' AND NOT external_id GLOB '*[^0-9]*'`;
|
|
@@ -6005,7 +6016,7 @@ var forgetMail = /* @__PURE__ */ __name((database, cutoff, now) => {
|
|
|
6005
6016
|
return [...folders].map(([account, count3]) => ({ account, folders: count3 }));
|
|
6006
6017
|
}, "forgetMail");
|
|
6007
6018
|
|
|
6008
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6019
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.720.0_@wirecat+cli-base@0.126.1_commander@15.0.0_esbuild@0.28.2_typ_891204b7e0cfbcc49dd71e2850e8663f/node_modules/@wirecat/cli-core/dist/store/recover.js
|
|
6009
6020
|
var SQLITE3_MINIMUM = [3, 43, 0];
|
|
6010
6021
|
var STORE_PARTS = ["", "-wal", "-shm"];
|
|
6011
6022
|
var RECOVER_LOCK = ".recover-lock";
|
|
@@ -6283,6 +6294,8 @@ var FILLERS = {
|
|
|
6283
6294
|
}, "message_stems"),
|
|
6284
6295
|
attachment_words: /* @__PURE__ */ __name((database) => void resetAttachmentWords(database), "attachment_words"),
|
|
6285
6296
|
crm_file_words: /* @__PURE__ */ __name((database) => void resetCrmFileWords(database), "crm_file_words"),
|
|
6297
|
+
tracker_item_words: /* @__PURE__ */ __name((database) => void resetTrackerItemWords(database), "tracker_item_words"),
|
|
6298
|
+
content_post_words: /* @__PURE__ */ __name((database) => void resetContentPostWords(database), "content_post_words"),
|
|
6286
6299
|
attachment_name_words: /* @__PURE__ */ __name((database) => (
|
|
6287
6300
|
// As migration 20 filled it: й and ё fold as the triggers fold them.
|
|
6288
6301
|
database.exec("INSERT INTO attachment_name_words (rowid, name) SELECT id, replace(replace(replace(replace(name, '\u0439', '\u0438'), '\u0419', '\u0418'), '\u0451', '\u0435'), '\u0401', '\u0415') FROM attachments WHERE name IS NOT NULL")
|
|
@@ -6534,7 +6547,7 @@ var recoverLocked = /* @__PURE__ */ __name(async ({ path, command, version, sqli
|
|
|
6534
6547
|
}
|
|
6535
6548
|
}, "recoverLocked");
|
|
6536
6549
|
|
|
6537
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6550
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.720.0_@wirecat+cli-base@0.126.1_commander@15.0.0_esbuild@0.28.2_typ_891204b7e0cfbcc49dd71e2850e8663f/node_modules/@wirecat/cli-core/dist/cli/store-recover.js
|
|
6538
6551
|
var COUNTED = [
|
|
6539
6552
|
"accounts",
|
|
6540
6553
|
"chats",
|
|
@@ -6690,7 +6703,7 @@ var storeRecoverCommand = /* @__PURE__ */ __name(({ command, version }) => {
|
|
|
6690
6703
|
return recover;
|
|
6691
6704
|
}, "storeRecoverCommand");
|
|
6692
6705
|
|
|
6693
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6706
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.720.0_@wirecat+cli-base@0.126.1_commander@15.0.0_esbuild@0.28.2_typ_891204b7e0cfbcc49dd71e2850e8663f/node_modules/@wirecat/cli-core/dist/cli/store-info.js
|
|
6694
6707
|
var pendingIfKnown = /* @__PURE__ */ __name((database) => database.prepare("SELECT 1 FROM pragma_table_info('messages') WHERE name = 'normalized_text'").get() ? pendingNormalization(database) : null, "pendingIfKnown");
|
|
6695
6708
|
var bytesOf = /* @__PURE__ */ __name((path) => existsSync4(path) ? statSync3(path).size : 0, "bytesOf");
|
|
6696
6709
|
var messageOf = /* @__PURE__ */ __name((error) => error instanceof Error ? error.message : String(error), "messageOf");
|
|
@@ -6740,7 +6753,7 @@ var sharedStoreCommand = /* @__PURE__ */ __name((app) => {
|
|
|
6740
6753
|
return app ? store.addCommand(storeRecoverCommand(app)) : store;
|
|
6741
6754
|
}, "sharedStoreCommand");
|
|
6742
6755
|
|
|
6743
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6756
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.720.0_@wirecat+cli-base@0.126.1_commander@15.0.0_esbuild@0.28.2_typ_891204b7e0cfbcc49dd71e2850e8663f/node_modules/@wirecat/cli-core/dist/cli/messenger/password.js
|
|
6744
6757
|
var ENCRYPT_OPTION = [
|
|
6745
6758
|
"--encrypt",
|
|
6746
6759
|
"compress and encrypt with a password, typed at a hidden prompt or piped on stdin; it is never kept \u2014 lose it and the file cannot be opened"
|
|
@@ -6759,7 +6772,7 @@ var passwordOf = /* @__PURE__ */ __name(async (command, { twice }) => {
|
|
|
6759
6772
|
return password;
|
|
6760
6773
|
}, "passwordOf");
|
|
6761
6774
|
|
|
6762
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6775
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.720.0_@wirecat+cli-base@0.126.1_commander@15.0.0_esbuild@0.28.2_typ_891204b7e0cfbcc49dd71e2850e8663f/node_modules/@wirecat/cli-core/dist/replies/rules.js
|
|
6763
6776
|
import { existsSync as existsSync5, readFileSync as readFileSync2 } from "node:fs";
|
|
6764
6777
|
import { join as join2 } from "node:path";
|
|
6765
6778
|
var REPLY_ACTIONS = ["reply", "task"];
|
|
@@ -6930,7 +6943,7 @@ var problem = /* @__PURE__ */ __name((issue) => {
|
|
|
6930
6943
|
}, "problem");
|
|
6931
6944
|
var broken = /* @__PURE__ */ __name((path, why) => new CliError("configuration_error", `the reply rules ${path} cannot be read (${why}) \u2014 fix the file`), "broken");
|
|
6932
6945
|
|
|
6933
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6946
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.720.0_@wirecat+cli-base@0.126.1_commander@15.0.0_esbuild@0.28.2_typ_891204b7e0cfbcc49dd71e2850e8663f/node_modules/@wirecat/cli-core/dist/replies/state.js
|
|
6934
6947
|
import { existsSync as existsSync6, readFileSync as readFileSync3 } from "node:fs";
|
|
6935
6948
|
import { join as join3 } from "node:path";
|
|
6936
6949
|
var ANSWERED_KEPT = 1e3;
|
|
@@ -6983,7 +6996,7 @@ var recordReply = /* @__PURE__ */ __name((state, rule2, message, now) => {
|
|
|
6983
6996
|
}, "recordReply");
|
|
6984
6997
|
var broken2 = /* @__PURE__ */ __name((path, why) => new CliError("configuration_error", `the reply state ${path} cannot be read (${why}) \u2014 fix or move the file`), "broken");
|
|
6985
6998
|
|
|
6986
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6999
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.720.0_@wirecat+cli-base@0.126.1_commander@15.0.0_esbuild@0.28.2_typ_891204b7e0cfbcc49dd71e2850e8663f/node_modules/@wirecat/cli-core/dist/replies/decide.js
|
|
6987
7000
|
var skip = /* @__PURE__ */ __name((why) => ({ skip: why }), "skip");
|
|
6988
7001
|
var decide = /* @__PURE__ */ __name((rule2, incoming, state, now) => {
|
|
6989
7002
|
const { message, chat, owner, sender } = incoming;
|
|
@@ -7089,10 +7102,10 @@ var filled = /* @__PURE__ */ __name((template2, senderName) => {
|
|
|
7089
7102
|
return template2.replaceAll("{firstName}", name.split(/\s+/)[0] ?? name).replaceAll("{name}", name);
|
|
7090
7103
|
}, "filled");
|
|
7091
7104
|
|
|
7092
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7105
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.720.0_@wirecat+cli-base@0.126.1_commander@15.0.0_esbuild@0.28.2_typ_891204b7e0cfbcc49dd71e2850e8663f/node_modules/@wirecat/cli-core/dist/replies/template.js
|
|
7093
7106
|
var import_liquidjs2 = __toESM(require_liquid_node(), 1);
|
|
7094
7107
|
|
|
7095
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7108
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.720.0_@wirecat+cli-base@0.126.1_commander@15.0.0_esbuild@0.28.2_typ_891204b7e0cfbcc49dd71e2850e8663f/node_modules/@wirecat/cli-core/dist/render/liquid.js
|
|
7096
7109
|
var import_liquidjs = __toESM(require_liquid_node(), 1);
|
|
7097
7110
|
var safeLiquid = /* @__PURE__ */ __name((limits) => {
|
|
7098
7111
|
const engine = new import_liquidjs.Liquid({
|
|
@@ -7119,7 +7132,7 @@ var safeLiquid = /* @__PURE__ */ __name((limits) => {
|
|
|
7119
7132
|
return engine;
|
|
7120
7133
|
}, "safeLiquid");
|
|
7121
7134
|
|
|
7122
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7135
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.720.0_@wirecat+cli-base@0.126.1_commander@15.0.0_esbuild@0.28.2_typ_891204b7e0cfbcc49dd71e2850e8663f/node_modules/@wirecat/cli-core/dist/replies/template.js
|
|
7123
7136
|
var TEMPLATE_LIMITS = {
|
|
7124
7137
|
parse: 32768,
|
|
7125
7138
|
renders: 2e3,
|
|
@@ -7258,7 +7271,7 @@ var renderReplyTemplate = /* @__PURE__ */ __name(async (reply, input) => {
|
|
|
7258
7271
|
}
|
|
7259
7272
|
}, "renderReplyTemplate");
|
|
7260
7273
|
|
|
7261
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7274
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.720.0_@wirecat+cli-base@0.126.1_commander@15.0.0_esbuild@0.28.2_typ_891204b7e0cfbcc49dd71e2850e8663f/node_modules/@wirecat/cli-core/dist/replies/dry-run.js
|
|
7262
7275
|
var DRY_RUN_DAYS = 7;
|
|
7263
7276
|
var PAGE = 500;
|
|
7264
7277
|
var dryRun = /* @__PURE__ */ __name(async (store, account, rules, { since, until = Date.now(), only, audience, render }) => {
|
|
@@ -7372,7 +7385,7 @@ var storedSince = /* @__PURE__ */ __name(async (store, account, chat, since) =>
|
|
|
7372
7385
|
}
|
|
7373
7386
|
}, "storedSince");
|
|
7374
7387
|
|
|
7375
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7388
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.720.0_@wirecat+cli-base@0.126.1_commander@15.0.0_esbuild@0.28.2_typ_891204b7e0cfbcc49dd71e2850e8663f/node_modules/@wirecat/cli-core/dist/models/ai.js
|
|
7376
7389
|
var AI_PROVIDERS = ["anthropic", "openai", "ollama"];
|
|
7377
7390
|
var DEFAULT_BASE_URL = {
|
|
7378
7391
|
anthropic: "https://api.anthropic.com",
|
|
@@ -7491,7 +7504,11 @@ var aiTextReader = /* @__PURE__ */ __name((deps) => {
|
|
|
7491
7504
|
return {
|
|
7492
7505
|
by: `${setting.provider}/${setting.model}`,
|
|
7493
7506
|
leavesComputer: aiLeavesComputer(setting),
|
|
7494
|
-
complete: /* @__PURE__ */ __name(async (request) => (await gateway.complete(request)).text, "complete")
|
|
7507
|
+
complete: /* @__PURE__ */ __name(async (request) => (await gateway.complete(request)).text, "complete"),
|
|
7508
|
+
answer: /* @__PURE__ */ __name(async (request) => {
|
|
7509
|
+
const { text, usage } = await gateway.complete(request);
|
|
7510
|
+
return usage ? { text, usage } : { text };
|
|
7511
|
+
}, "answer")
|
|
7495
7512
|
};
|
|
7496
7513
|
}, "aiTextReader");
|
|
7497
7514
|
var reasonOf = /* @__PURE__ */ __name((error) => {
|
|
@@ -7536,7 +7553,7 @@ var checkAi = /* @__PURE__ */ __name(async (deps) => {
|
|
|
7536
7553
|
}
|
|
7537
7554
|
}, "checkAi");
|
|
7538
7555
|
|
|
7539
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7556
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.720.0_@wirecat+cli-base@0.126.1_commander@15.0.0_esbuild@0.28.2_typ_891204b7e0cfbcc49dd71e2850e8663f/node_modules/@wirecat/cli-core/dist/models/purpose.js
|
|
7540
7557
|
var HOSTED = {
|
|
7541
7558
|
openai: "https://api.openai.com/v1",
|
|
7542
7559
|
anthropic: "https://api.anthropic.com"
|
|
@@ -7557,7 +7574,7 @@ var purposeModel = /* @__PURE__ */ __name((settings, purpose, deps) => {
|
|
|
7557
7574
|
return shared ? { target: shared.target, key: /* @__PURE__ */ __name(() => shared.key, "key"), shared: shared.setting } : void 0;
|
|
7558
7575
|
}, "purposeModel");
|
|
7559
7576
|
|
|
7560
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7577
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.720.0_@wirecat+cli-base@0.126.1_commander@15.0.0_esbuild@0.28.2_typ_891204b7e0cfbcc49dd71e2850e8663f/node_modules/@wirecat/cli-core/dist/replies/consents.js
|
|
7561
7578
|
import { existsSync as existsSync7, readFileSync as readFileSync4 } from "node:fs";
|
|
7562
7579
|
import { join as join4 } from "node:path";
|
|
7563
7580
|
var shape = strictObject({
|
|
@@ -7582,7 +7599,7 @@ var mayModelReply = /* @__PURE__ */ __name((path, provider, chat) => {
|
|
|
7582
7599
|
return consent.provider === provider && !consent.deniedChats.includes(chat);
|
|
7583
7600
|
}, "mayModelReply");
|
|
7584
7601
|
|
|
7585
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7602
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.720.0_@wirecat+cli-base@0.126.1_commander@15.0.0_esbuild@0.28.2_typ_891204b7e0cfbcc49dd71e2850e8663f/node_modules/@wirecat/cli-core/dist/replies/rendering.js
|
|
7586
7603
|
var replyRenderer = /* @__PURE__ */ __name((app, profile, settings, env, warn, options = {
|
|
7587
7604
|
ai: true
|
|
7588
7605
|
}) => async (rule2, message, chat, now) => {
|
|
@@ -7630,7 +7647,7 @@ var replyRenderer = /* @__PURE__ */ __name((app, profile, settings, env, warn, o
|
|
|
7630
7647
|
return result2;
|
|
7631
7648
|
}, "replyRenderer");
|
|
7632
7649
|
|
|
7633
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7650
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.720.0_@wirecat+cli-base@0.126.1_commander@15.0.0_esbuild@0.28.2_typ_891204b7e0cfbcc49dd71e2850e8663f/node_modules/@wirecat/cli-core/dist/replies/serve.js
|
|
7634
7651
|
var NOT_ALLOWED = "replies.send is not allow";
|
|
7635
7652
|
var NO_RULES = "no rules";
|
|
7636
7653
|
var ONLY_TASK = "opened a task, sent nothing";
|
|
@@ -7723,7 +7740,7 @@ var replyTo = /* @__PURE__ */ __name(async (deps, message) => {
|
|
|
7723
7740
|
return { skip: why };
|
|
7724
7741
|
}, "replyTo");
|
|
7725
7742
|
|
|
7726
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7743
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.720.0_@wirecat+cli-base@0.126.1_commander@15.0.0_esbuild@0.28.2_typ_891204b7e0cfbcc49dd71e2850e8663f/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-catch-up.js
|
|
7727
7744
|
var START_SYNC_DELAY_MS = 3e4;
|
|
7728
7745
|
var START_SYNC_BUDGET_MS = 5 * 6e4;
|
|
7729
7746
|
var START_SYNC_WINDOW_MS = 7 * 864e5;
|
|
@@ -7800,7 +7817,7 @@ var startSync = /* @__PURE__ */ __name(({ chats, newestHeld, fetch, note, warn,
|
|
|
7800
7817
|
};
|
|
7801
7818
|
}, "startSync");
|
|
7802
7819
|
|
|
7803
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7820
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.720.0_@wirecat+cli-base@0.126.1_commander@15.0.0_esbuild@0.28.2_typ_891204b7e0cfbcc49dd71e2850e8663f/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-members.js
|
|
7804
7821
|
var FIRST_FETCH_MS = 6e4;
|
|
7805
7822
|
var DAY_MS = 864e5;
|
|
7806
7823
|
var memberFetches = /* @__PURE__ */ __name(({ withStore, fetch, warn, firstMs = FIRST_FETCH_MS, everyMs = DAY_MS }) => {
|
|
@@ -7854,7 +7871,7 @@ var memberFetches = /* @__PURE__ */ __name(({ withStore, fetch, warn, firstMs =
|
|
|
7854
7871
|
};
|
|
7855
7872
|
}, "memberFetches");
|
|
7856
7873
|
|
|
7857
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7874
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.720.0_@wirecat+cli-base@0.126.1_commander@15.0.0_esbuild@0.28.2_typ_891204b7e0cfbcc49dd71e2850e8663f/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-notice.js
|
|
7858
7875
|
var record2 = /* @__PURE__ */ __name((context, app, severity, attributes) => recordLogFor(context.streams.diagnostic, app, { command: currentRun().command || "serve" })[severity](attributes), "record");
|
|
7859
7876
|
var noticeFor = /* @__PURE__ */ __name((context, app, severity = "warn") => ({ text, ...attributes }) => {
|
|
7860
7877
|
if (context.format === "pretty") {
|
|
@@ -7887,7 +7904,7 @@ var recordDiagnostics = /* @__PURE__ */ __name((context, app) => {
|
|
|
7887
7904
|
return context;
|
|
7888
7905
|
}, "recordDiagnostics");
|
|
7889
7906
|
|
|
7890
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7907
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.720.0_@wirecat+cli-base@0.126.1_commander@15.0.0_esbuild@0.28.2_typ_891204b7e0cfbcc49dd71e2850e8663f/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-outdated.js
|
|
7891
7908
|
import { existsSync as existsSync8, readFileSync as readFileSync5, realpathSync as realpathSync2 } from "node:fs";
|
|
7892
7909
|
import { dirname as dirname2, join as join5 } from "node:path";
|
|
7893
7910
|
var OUTDATED_CHECK_MS = 6e4;
|
|
@@ -7973,7 +7990,7 @@ var watchOutdated = /* @__PURE__ */ __name(({ check: check2, onOutdated, everyMs
|
|
|
7973
7990
|
};
|
|
7974
7991
|
}, "watchOutdated");
|
|
7975
7992
|
|
|
7976
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7993
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.720.0_@wirecat+cli-base@0.126.1_commander@15.0.0_esbuild@0.28.2_typ_891204b7e0cfbcc49dd71e2850e8663f/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-stems.js
|
|
7977
7994
|
var STEMS_EVERY_MS = 3e4;
|
|
7978
7995
|
var STEMS_SLICE_MS = 2e3;
|
|
7979
7996
|
var stemFills = /* @__PURE__ */ __name(({ withStore, warn, everyMs = STEMS_EVERY_MS, sliceMs = STEMS_SLICE_MS }) => {
|
|
@@ -8013,7 +8030,7 @@ var stemFills = /* @__PURE__ */ __name(({ withStore, warn, everyMs = STEMS_EVERY
|
|
|
8013
8030
|
};
|
|
8014
8031
|
}, "stemFills");
|
|
8015
8032
|
|
|
8016
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8033
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.720.0_@wirecat+cli-base@0.126.1_commander@15.0.0_esbuild@0.28.2_typ_891204b7e0cfbcc49dd71e2850e8663f/node_modules/@wirecat/cli-core/dist/cli/messenger/message-items.js
|
|
8017
8034
|
var defined = /* @__PURE__ */ __name((value) => Object.fromEntries(Object.entries(value).filter(([, one]) => one !== void 0)), "defined");
|
|
8018
8035
|
var attachmentItem = /* @__PURE__ */ __name((attachment) => defined({
|
|
8019
8036
|
kind: attachment.kind,
|
|
@@ -8109,7 +8126,7 @@ var viewOf = /* @__PURE__ */ __name((context, messenger) => ({
|
|
|
8109
8126
|
locale: messenger.app.locale
|
|
8110
8127
|
}), "viewOf");
|
|
8111
8128
|
|
|
8112
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8129
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.720.0_@wirecat+cli-base@0.126.1_commander@15.0.0_esbuild@0.28.2_typ_891204b7e0cfbcc49dd71e2850e8663f/node_modules/@wirecat/cli-core/dist/cli/messenger/watch-answers.js
|
|
8113
8130
|
var observed = /* @__PURE__ */ __name((value) => ({
|
|
8114
8131
|
value: value.value,
|
|
8115
8132
|
observed_at: value.observedAt,
|
|
@@ -8176,7 +8193,7 @@ var watchEventItem = /* @__PURE__ */ __name((value, account) => {
|
|
|
8176
8193
|
}
|
|
8177
8194
|
}, "watchEventItem");
|
|
8178
8195
|
|
|
8179
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8196
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.720.0_@wirecat+cli-base@0.126.1_commander@15.0.0_esbuild@0.28.2_typ_891204b7e0cfbcc49dd71e2850e8663f/node_modules/@wirecat/cli-core/dist/cli/messenger/watch-command.js
|
|
8180
8197
|
var watchCommand = /* @__PURE__ */ __name((messenger) => annotate(new Command("watch"), {
|
|
8181
8198
|
output: { entity: "watch_item" },
|
|
8182
8199
|
effects: REMOTE_READ,
|
|
@@ -8331,7 +8348,8 @@ var describe = /* @__PURE__ */ __name((event, render) => {
|
|
|
8331
8348
|
}
|
|
8332
8349
|
}, "describe");
|
|
8333
8350
|
|
|
8334
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8351
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.720.0_@wirecat+cli-base@0.126.1_commander@15.0.0_esbuild@0.28.2_typ_891204b7e0cfbcc49dd71e2850e8663f/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-command.js
|
|
8352
|
+
var CURRENT_EVERY_MS = 6e4;
|
|
8335
8353
|
var serveCommand = /* @__PURE__ */ __name((messenger) => {
|
|
8336
8354
|
const command = annotate(new Command("serve"), {
|
|
8337
8355
|
output: { entity: "serve_summary" },
|
|
@@ -8354,9 +8372,18 @@ var serveCommand = /* @__PURE__ */ __name((messenger) => {
|
|
|
8354
8372
|
throw new CliError("validation_error", `${messenger.app.command} serve is already running for profile ${context.profile} (PID ${held.pid}, since ${held.startedAt})`);
|
|
8355
8373
|
}
|
|
8356
8374
|
let relaying;
|
|
8375
|
+
let current;
|
|
8376
|
+
const stamp = /* @__PURE__ */ __name(() => {
|
|
8377
|
+
try {
|
|
8378
|
+
markCurrent(path);
|
|
8379
|
+
} catch {
|
|
8380
|
+
}
|
|
8381
|
+
}, "stamp");
|
|
8357
8382
|
const onReady = /* @__PURE__ */ __name(() => {
|
|
8358
8383
|
const listening2 = { pid: process.pid, startedAt, version, listeningAt: (/* @__PURE__ */ new Date()).toISOString() };
|
|
8359
8384
|
holdLock(path, listening2);
|
|
8385
|
+
stamp();
|
|
8386
|
+
current ??= setInterval(stamp, CURRENT_EVERY_MS).unref();
|
|
8360
8387
|
note({
|
|
8361
8388
|
code: "listening",
|
|
8362
8389
|
text: `listening for profile ${context.profile}, catching up on what arrived while it was down`
|
|
@@ -8477,6 +8504,10 @@ var serveCommand = /* @__PURE__ */ __name((messenger) => {
|
|
|
8477
8504
|
}, "connected")
|
|
8478
8505
|
});
|
|
8479
8506
|
} finally {
|
|
8507
|
+
if (current) {
|
|
8508
|
+
clearInterval(current);
|
|
8509
|
+
stamp();
|
|
8510
|
+
}
|
|
8480
8511
|
watch.stop();
|
|
8481
8512
|
await relaying;
|
|
8482
8513
|
await relay?.close();
|
|
@@ -8617,7 +8648,7 @@ var tasking = /* @__PURE__ */ __name((context, warn) => {
|
|
|
8617
8648
|
};
|
|
8618
8649
|
}, "tasking");
|
|
8619
8650
|
|
|
8620
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8651
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.720.0_@wirecat+cli-base@0.126.1_commander@15.0.0_esbuild@0.28.2_typ_891204b7e0cfbcc49dd71e2850e8663f/node_modules/@wirecat/cli-core/dist/cli/messenger/store-tables-command.js
|
|
8621
8652
|
import { existsSync as existsSync9 } from "node:fs";
|
|
8622
8653
|
var PATH = "store tables list";
|
|
8623
8654
|
var STORE_TABLES_QUERY = {
|
|
@@ -8660,7 +8691,7 @@ var storeTablesCommand = /* @__PURE__ */ __name((owner) => {
|
|
|
8660
8691
|
return tables;
|
|
8661
8692
|
}, "storeTablesCommand");
|
|
8662
8693
|
|
|
8663
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8694
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.720.0_@wirecat+cli-base@0.126.1_commander@15.0.0_esbuild@0.28.2_typ_891204b7e0cfbcc49dd71e2850e8663f/node_modules/@wirecat/cli-core/dist/cli/messenger/store-maintenance-command.js
|
|
8664
8695
|
var SEARCH_INDEXES = ["messages_fts", "chats_fts", "identities_fts"];
|
|
8665
8696
|
var WORD_INDEX = "message_words";
|
|
8666
8697
|
var schemaOf = /* @__PURE__ */ __name((database) => {
|
|
@@ -8903,7 +8934,9 @@ var inspect = /* @__PURE__ */ __name((path) => reading(path, (database) => {
|
|
|
8903
8934
|
...wordIndex ? [[WORD_INDEX, indexIntegrity(database, WORD_INDEX, 0)]] : [],
|
|
8904
8935
|
...stems ? [["message_stems", indexIntegrity(database, "message_stems", 0)]] : [],
|
|
8905
8936
|
...schema.version > 0 ? [["attachment_words", indexIntegrity(database, "attachment_words", 0)]] : [],
|
|
8906
|
-
...schema.version >= 68 ? [["crm_file_words", indexIntegrity(database, "crm_file_words", 0)]] : []
|
|
8937
|
+
...schema.version >= 68 ? [["crm_file_words", indexIntegrity(database, "crm_file_words", 0)]] : [],
|
|
8938
|
+
...schema.version >= 70 ? [["tracker_item_words", indexIntegrity(database, "tracker_item_words", 0)]] : [],
|
|
8939
|
+
...schema.version >= 71 ? [["content_post_words", indexIntegrity(database, "content_post_words", 0)]] : []
|
|
8907
8940
|
]);
|
|
8908
8941
|
const size = bytesOf2(path) + bytesOf2(`${path}-wal`);
|
|
8909
8942
|
const { bavail, bsize } = statfsSync2(dirname3(path));
|
|
@@ -9071,7 +9104,7 @@ var reindexCommand = /* @__PURE__ */ __name((owner) => destroysNothing(annotate(
|
|
|
9071
9104
|
throw new CliError("validation_error", `the store is behind this build \u2014 \`${lineOf(this, "store migrate")}\` first`);
|
|
9072
9105
|
}
|
|
9073
9106
|
resetSearchIndex(database);
|
|
9074
|
-
const fileTexts = resetAttachmentWords(database) + resetCrmFileWords(database);
|
|
9107
|
+
const fileTexts = resetAttachmentWords(database) + resetCrmFileWords(database) + resetTrackerItemWords(database) + resetContentPostWords(database);
|
|
9075
9108
|
const words = buildWordIndex(database, (note) => renderer.note(note));
|
|
9076
9109
|
return {
|
|
9077
9110
|
path,
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
__name
|
|
5
5
|
} from "./chunk-ZVVMGPBJ.js";
|
|
6
6
|
|
|
7
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
7
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.126.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/executable.js
|
|
8
8
|
import { existsSync } from "node:fs";
|
|
9
9
|
import { win32 } from "node:path";
|
|
10
10
|
var variable = /* @__PURE__ */ __name((env, name) => Object.entries(env).find(([key]) => key.toUpperCase() === name)?.[1], "variable");
|
|
@@ -2,12 +2,12 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
resolvePaths
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-ELJGALVX.js";
|
|
6
6
|
import {
|
|
7
7
|
__name
|
|
8
8
|
} from "./chunk-ZVVMGPBJ.js";
|
|
9
9
|
|
|
10
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.720.0_@wirecat+cli-base@0.126.1_commander@15.0.0_esbuild@0.28.2_typ_891204b7e0cfbcc49dd71e2850e8663f/node_modules/@wirecat/cli-core/dist/store/path.js
|
|
11
11
|
import { realpathSync } from "node:fs";
|
|
12
12
|
import { userInfo } from "node:os";
|
|
13
13
|
import { basename, dirname, isAbsolute, join, relative, resolve } from "node:path";
|