@wirecat/hubspot-cli 0.2.0 → 0.3.1
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 +27 -0
- package/README.md +2 -2
- package/contracts/wirecat.json +40 -2
- package/dist/bin/hubspot.js +2 -2
- package/dist/bundle/agent-A7ARC3QB.js +40 -0
- package/dist/bundle/{all-profiles-64JAUYW4.js → all-profiles-6452VSJB.js} +64 -22
- package/dist/bundle/{anthropic-VJOS4OUM.js → anthropic-VQUOVYOW.js} +6 -6
- package/dist/bundle/{app-server-GXV2OFML.js → app-server-EQZUP4H4.js} +79 -68
- package/dist/bundle/{bun-M3J2QTR3.js → bun-AJPJ4ZUN.js} +2 -2
- package/dist/bundle/{bun-sqlite-IX3XYA5F.js → bun-sqlite-AGXGSF6D.js} +7 -7
- package/dist/bundle/{chunk-N2XADGL4.js → chunk-2A64XS22.js} +4 -4
- package/dist/bundle/{chunk-Q2OLOMHL.js → chunk-2HYGCLKN.js} +93 -565
- package/dist/bundle/{chunk-FOZYMDRL.js → chunk-2NCO4E4T.js} +6 -6
- package/dist/bundle/{chunk-FBCCBCFH.js → chunk-2PRVWEJC.js} +3 -3
- package/dist/bundle/{chunk-LOBVOGOE.js → chunk-3DIXAEGH.js} +4 -4
- package/dist/bundle/{chunk-O3DYRCIT.js → chunk-3I2FGNWO.js} +1 -1
- package/dist/bundle/{chunk-65TWQ7BV.js → chunk-3PEKYGZ3.js} +2 -2
- package/dist/bundle/{chunk-DRWWJLI6.js → chunk-3R4KRNUZ.js} +8 -8
- package/dist/bundle/{chunk-2VGD63G6.js → chunk-3TEFE6YU.js} +7 -7
- package/dist/bundle/{chunk-TI46WQXQ.js → chunk-4DNHXRCJ.js} +7 -7
- package/dist/bundle/{chunk-QU25DA5N.js → chunk-5AYKCKSE.js} +11 -11
- package/dist/bundle/{chunk-CWXOXIWS.js → chunk-5K3FGXZH.js} +1 -1
- package/dist/bundle/{chunk-24ERVFJP.js → chunk-5YNAVVCW.js} +3 -3
- package/dist/bundle/{chunk-URX6YDUL.js → chunk-5ZV7REBE.js} +75 -66
- package/dist/bundle/{chunk-TLKEPUAV.js → chunk-6MFP47XC.js} +60 -50
- package/dist/bundle/{chunk-36ITRDYY.js → chunk-7LQRXVQ3.js} +783 -482
- package/dist/bundle/{chunk-E5WLE7BM.js → chunk-7NZT7Y55.js} +1 -1
- package/dist/bundle/{chunk-C32AKHTY.js → chunk-7UEL65GQ.js} +35 -12
- package/dist/bundle/chunk-7VHBS5BJ.js +108 -0
- package/dist/bundle/{chunk-O55RWNSH.js → chunk-A6UFH3QU.js} +4 -4
- package/dist/bundle/{chunk-WE4UFASG.js → chunk-ABXVU5O4.js} +8 -1
- package/dist/bundle/{chunk-4W6BMH45.js → chunk-AF7DANIR.js} +2 -100
- package/dist/bundle/{chunk-2VGZRYEH.js → chunk-ARTJLL7W.js} +6 -6
- package/dist/bundle/chunk-AVUMH42T.js +194 -0
- package/dist/bundle/{chunk-MFNMKHML.js → chunk-AWOJYRQW.js} +1024 -1639
- package/dist/bundle/chunk-B2W3C4N6.js +338 -0
- package/dist/bundle/{chunk-FKA7DOCK.js → chunk-B3EH22CO.js} +1 -1
- package/dist/bundle/{chunk-E52JAS35.js → chunk-BAUK2MD5.js} +6 -6
- package/dist/bundle/{chunk-LXZ66MCH.js → chunk-BHZUPOQY.js} +35 -29
- package/dist/bundle/{chunk-JLDBMEKZ.js → chunk-BN22EKQQ.js} +2 -2
- package/dist/bundle/{chunk-DB2XKHI4.js → chunk-BUGROVF3.js} +2 -2
- package/dist/bundle/{chunk-DSP36YHQ.js → chunk-CBCEMFCF.js} +2 -2
- package/dist/bundle/{chunk-HZRQLAHO.js → chunk-DQB5JMTY.js} +1 -1
- package/dist/bundle/{chunk-FPUGMDJV.js → chunk-DSRXCLPO.js} +1 -1
- package/dist/bundle/{chunk-UUMUL4L3.js → chunk-DW23LM47.js} +2 -2
- package/dist/bundle/{chunk-VOH7S5M4.js → chunk-E4FAMU2S.js} +3230 -3116
- package/dist/bundle/{chunk-TKVL2C3B.js → chunk-E4X7JAFC.js} +3 -3
- package/dist/bundle/{chunk-NUU4WZVL.js → chunk-EE4JSYGZ.js} +3 -3
- package/dist/bundle/{chunk-NWHEHV3K.js → chunk-EMOVVERN.js} +5 -5
- package/dist/bundle/{chunk-PVKF24ZW.js → chunk-FIVD4HM4.js} +8 -8
- package/dist/bundle/{chunk-QJW35N5V.js → chunk-GC6FLHZF.js} +12 -12
- package/dist/bundle/{chunk-TP7GDWVF.js → chunk-GRFICQTZ.js} +1 -1
- package/dist/bundle/{chunk-GPYCBYX5.js → chunk-GZZR5U3K.js} +12 -12
- package/dist/bundle/{chunk-X2M6NIQG.js → chunk-HPZRUY6S.js} +1 -1
- package/dist/bundle/{chunk-CLAN3FES.js → chunk-IBTMK5KD.js} +54 -34
- package/dist/bundle/{chunk-5A6ZYNAQ.js → chunk-IQ2XZ62J.js} +18 -18
- package/dist/bundle/{chunk-DBEQI5YM.js → chunk-ITGNDZRR.js} +3 -3
- package/dist/bundle/{chunk-W53EJOFQ.js → chunk-IXZLMFPO.js} +1 -1
- package/dist/bundle/{chunk-TOSCB4SO.js → chunk-J5P5VSRG.js} +16 -10
- package/dist/bundle/{chunk-RMIYKDUL.js → chunk-JK2SNLU5.js} +17 -17
- package/dist/bundle/{chunk-43EKCUBJ.js → chunk-JP2HJXFO.js} +3 -3
- package/dist/bundle/{chunk-DFCHHR5M.js → chunk-JUKAIXKY.js} +1 -1
- package/dist/bundle/{chunk-3WLYWRGG.js → chunk-K4X5ZHI2.js} +19 -17
- package/dist/bundle/{chunk-5GBUCHRU.js → chunk-KO4VR5NK.js} +4 -4
- package/dist/bundle/{chunk-PPHBRESD.js → chunk-KVXEEKBB.js} +2 -2
- package/dist/bundle/{chunk-SDQGB4KB.js → chunk-L433IDOX.js} +9 -9
- package/dist/bundle/chunk-LA3YU4K7.js +40 -0
- package/dist/bundle/{chunk-ECEZOLOD.js → chunk-LKSNISYV.js} +4 -4
- package/dist/bundle/{chunk-5K7QLJMM.js → chunk-LT5KE44Q.js} +226 -226
- package/dist/bundle/{chunk-YMCY7VRE.js → chunk-LTVYGXWT.js} +7 -7
- package/dist/bundle/chunk-M763RNWP.js +733 -0
- package/dist/bundle/{chunk-IMJQRPLN.js → chunk-NNMU2TDU.js} +1 -1
- package/dist/bundle/chunk-NTQBS2JL.js +52 -0
- package/dist/bundle/{chunk-HCAZV5NP.js → chunk-NZGI74GS.js} +6 -6
- package/dist/bundle/{chunk-W7HM2VGO.js → chunk-O3VM5PTJ.js} +1 -1
- package/dist/bundle/chunk-ODPU3II6.js +353 -0
- package/dist/bundle/chunk-OJIJVOOA.js +561 -0
- package/dist/bundle/{chunk-7ELMWE3P.js → chunk-PHXOL5HZ.js} +176 -160
- package/dist/bundle/{chunk-5D4AEUVA.js → chunk-PL5P7UKW.js} +434 -1
- package/dist/bundle/{chunk-B3MANLNK.js → chunk-PLRUUXK7.js} +19 -233
- package/dist/bundle/{chunk-RR5MX5TM.js → chunk-PMP37KLR.js} +4 -4
- package/dist/bundle/{chunk-FTFV3HFW.js → chunk-Q27QAB4X.js} +9 -9
- package/dist/bundle/{chunk-2QZK5BEP.js → chunk-RVWGFD32.js} +30 -15
- package/dist/bundle/{chunk-MVA5HVKL.js → chunk-S4UUN6LD.js} +18 -0
- package/dist/bundle/{chunk-QGFX5MXL.js → chunk-SEELWPRD.js} +9 -9
- package/dist/bundle/{chunk-HC5ZWE5X.js → chunk-TIHDBKA7.js} +2 -2
- package/dist/bundle/{chunk-NHHJHXMQ.js → chunk-U6XA3OOM.js} +2 -2
- package/dist/bundle/{chunk-IJADZW42.js → chunk-VNPC274V.js} +3 -3
- package/dist/bundle/{chunk-NXERIDPJ.js → chunk-VQEAZXTV.js} +7 -7
- package/dist/bundle/{chunk-P5BHKKBI.js → chunk-VW5F6FK3.js} +4 -4
- package/dist/bundle/{chunk-XRREFEIW.js → chunk-WCQW4GYO.js} +7 -7
- package/dist/bundle/{chunk-H3TNVEQX.js → chunk-WGBVRDY3.js} +29 -4
- package/dist/bundle/chunk-WRCKE5ND.js +80 -0
- package/dist/bundle/{chunk-TBJYLC5K.js → chunk-X5S5KUSU.js} +75 -75
- package/dist/bundle/{chunk-2UOJ7DLZ.js → chunk-XLDQTDF6.js} +3 -3
- package/dist/bundle/{chunk-Z73OL5HV.js → chunk-Z6ZQVYIE.js} +3 -3
- package/dist/bundle/command-contract-R2FGN7CQ.js +40 -0
- package/dist/bundle/{command-server-entry-DJKVVZCQ.js → command-server-entry-GJSMDSNE.js} +29 -29
- package/dist/bundle/{decode-FC65Y4IV.js → decode-6PLXHVHW.js} +6 -6
- package/dist/bundle/{dispatch-KOISQ5QJ.js → dispatch-TAQ7635E.js} +8 -8
- package/dist/bundle/dist-PAKDDIBT.js +191 -0
- package/dist/bundle/{echarts-FVTUDXDU.js → echarts-UZ7QLRE2.js} +2 -2
- package/dist/bundle/{embed-VNBZFPYH.js → embed-AWLL4EBF.js} +7 -7
- package/dist/bundle/{embedder-6U4NOFRO.js → embedder-MM225YJ6.js} +10 -10
- package/dist/bundle/{failure-FZ6VYKEQ.js → failure-MR2XVHFP.js} +3 -3
- package/dist/bundle/first-run-KCZVNFJ7.js +29 -0
- package/dist/bundle/first-screen-SCDV7TXT.js +40 -0
- package/dist/bundle/hubspot.js +26 -26
- package/dist/bundle/{instructions-HET7BCYK.js → instructions-ZJ7U3QUE.js} +1 -1
- package/dist/bundle/{mcp-RGNRW77S.js → mcp-CNV7F2XZ.js} +2 -2
- package/dist/bundle/meeting-combined-EL5XZIJ5.js +25 -0
- package/dist/bundle/meeting-model-OYXB2NOE.js +25 -0
- package/dist/bundle/{meeting-semantic-JY3OGCBS.js → meeting-semantic-S3DBB7XD.js} +7 -7
- package/dist/bundle/{node-CXZIFHZC.js → node-HGCZGZ4R.js} +2 -2
- package/dist/bundle/{node-sqlite-P3O7XN7Q.js → node-sqlite-RKYSRKEB.js} +8 -8
- package/dist/bundle/oauth-PYDCAQ7Y.js +20 -0
- package/dist/bundle/{open-F4P6YV54.js → open-UCDSQUN2.js} +6 -6
- package/dist/bundle/{openai-4AICLIK3.js → openai-Y4F5ZC7O.js} +16 -16
- package/dist/bundle/{process-5RUXWGYS.js → process-P7FB7YO7.js} +1 -1
- package/dist/bundle/{program-XA4C44Z4.js → program-O2A5L4S4.js} +683 -242
- package/dist/bundle/{prompt-NFMDVBZ4.js → prompt-E5TKZ37Q.js} +6 -6
- package/dist/bundle/{recognize-DKN3RY4V.js → recognize-5NYPTSLT.js} +5 -5
- package/dist/bundle/{remote-6QHAGQWY.js → remote-U4LUAHF2.js} +10 -10
- package/dist/bundle/{rerank-M4KHEHUZ.js → rerank-AJAVKK5L.js} +8 -8
- package/dist/bundle/{schemas-JRL3DLMP.js → schemas-QLQ2K6DL.js} +7 -33
- package/dist/bundle/{serve-DNU43ND6.js → serve-4UJ3R5IP.js} +11 -11
- package/dist/bundle/{server-ATG5KY7K.js → server-DUKWJUKD.js} +73 -61
- package/dist/bundle/server-UQVV2PPX.js +86 -0
- package/dist/bundle/{source-54HR4IWG.js → source-FCQDXCAD.js} +334 -78
- package/dist/bundle/{sqlite-runtime-EMQAC63N.js → sqlite-runtime-KLEA4XAU.js} +7 -7
- package/dist/bundle/{state-T45CX7VY.js → state-COGSYMVH.js} +7 -7
- package/dist/bundle/{store-6TZ2FCVA.js → store-BJXCSP26.js} +25 -24
- package/dist/bundle/store-CHH3G3SL.js +32 -0
- package/dist/bundle/{store-6LCEVBAZ.js → store-V5UMSWK4.js} +27 -22
- package/dist/bundle/store-maintenance-command-DQUBBWMD.js +73 -0
- package/dist/bundle/surface-IGBQUYE5.js +72 -0
- package/dist/bundle/writer-AQSEPEEN.js +86 -0
- package/dist/commands/session.js +2 -2
- package/dist/commands/session.js.map +1 -1
- package/dist/config.d.ts +1 -1
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +1 -5
- package/dist/config.js.map +1 -1
- package/dist/crm/activities.d.ts.map +1 -1
- package/dist/crm/activities.js +3 -13
- package/dist/crm/activities.js.map +1 -1
- package/dist/crm/records.d.ts +6 -0
- package/dist/crm/records.d.ts.map +1 -1
- package/dist/crm/records.js +6 -0
- package/dist/crm/records.js.map +1 -1
- package/dist/crm/source.d.ts +0 -6
- package/dist/crm/source.d.ts.map +1 -1
- package/dist/crm/source.js +1 -7
- package/dist/crm/source.js.map +1 -1
- package/dist/generated/manifest.d.ts.map +1 -1
- package/dist/generated/manifest.js +0 -115
- package/dist/generated/manifest.js.map +1 -1
- package/dist/generated/types.d.ts +160 -0
- package/dist/generated/types.d.ts.map +1 -1
- package/dist/hubspot/transport.js +1 -1
- package/dist/hubspot/transport.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/command-contract-C6CBFXZF.js +0 -40
- package/dist/bundle/first-run-UWAFSINQ.js +0 -29
- package/dist/bundle/first-screen-RTVMGHAE.js +0 -40
- package/dist/bundle/meeting-combined-L5AGBPYX.js +0 -25
- package/dist/bundle/meeting-model-NTB4RK3F.js +0 -25
- package/dist/bundle/oauth-HNCY4B2S.js +0 -20
- package/dist/bundle/server-VNWVVH7A.js +0 -77
- package/dist/bundle/store-DXWYNVVB.js +0 -32
- package/dist/bundle/store-maintenance-command-J57HCJYY.js +0 -68
- package/dist/bundle/writer-NLLI5YRM.js +0 -79
|
@@ -3,39 +3,45 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
answerOf,
|
|
5
5
|
messengerContext
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-K4X5ZHI2.js";
|
|
7
|
+
import {
|
|
8
|
+
chatEventAnswer,
|
|
9
|
+
memberAnswer,
|
|
10
|
+
pollVoteAnswer
|
|
11
|
+
} from "./chunk-ODPU3II6.js";
|
|
12
|
+
import {
|
|
13
|
+
serveRelay
|
|
14
|
+
} from "./chunk-B2W3C4N6.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
|
newSendId,
|
|
18
23
|
onlineDeps,
|
|
19
24
|
openRequestTask,
|
|
20
25
|
patiently,
|
|
21
|
-
pollVoteAnswer,
|
|
22
|
-
queryTerms,
|
|
23
26
|
refuseLockedOutput,
|
|
24
27
|
senderIsMe,
|
|
25
|
-
serveRelay,
|
|
26
28
|
servicesFor,
|
|
27
29
|
syncsOneChat,
|
|
28
|
-
typedQuery,
|
|
29
|
-
withQuery,
|
|
30
30
|
withTimeLimit
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-E4FAMU2S.js";
|
|
32
|
+
import {
|
|
33
|
+
capability,
|
|
34
|
+
queryTerms,
|
|
35
|
+
typedQuery,
|
|
36
|
+
withQuery
|
|
37
|
+
} from "./chunk-M763RNWP.js";
|
|
32
38
|
import {
|
|
33
39
|
holdLock,
|
|
34
40
|
lockPath,
|
|
35
41
|
releaseLock,
|
|
36
42
|
servingProfiles,
|
|
37
43
|
takeLock
|
|
38
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-5YNAVVCW.js";
|
|
39
45
|
import {
|
|
40
46
|
Command,
|
|
41
47
|
LOCAL_READ,
|
|
@@ -62,10 +68,10 @@ import {
|
|
|
62
68
|
snakeKeys,
|
|
63
69
|
storeTable,
|
|
64
70
|
withoutProviderRefs
|
|
65
|
-
} from "./chunk-
|
|
71
|
+
} from "./chunk-PHXOL5HZ.js";
|
|
66
72
|
import {
|
|
67
73
|
holdersOf
|
|
68
|
-
} from "./chunk-
|
|
74
|
+
} from "./chunk-IXZLMFPO.js";
|
|
69
75
|
import {
|
|
70
76
|
QUICK_HEALTH_CHECKS,
|
|
71
77
|
fts5Tables,
|
|
@@ -73,7 +79,7 @@ import {
|
|
|
73
79
|
lossUnknown,
|
|
74
80
|
storeDamageReport,
|
|
75
81
|
storeHealth
|
|
76
|
-
} from "./chunk-
|
|
82
|
+
} from "./chunk-JK2SNLU5.js";
|
|
77
83
|
import {
|
|
78
84
|
CORPORA,
|
|
79
85
|
MIGRATIONS,
|
|
@@ -101,6 +107,7 @@ import {
|
|
|
101
107
|
resetNoteIndex,
|
|
102
108
|
resetSearchIndex,
|
|
103
109
|
resetStems,
|
|
110
|
+
resetTrackerItemWords,
|
|
104
111
|
rollBack,
|
|
105
112
|
rowCounts,
|
|
106
113
|
searchIndexState,
|
|
@@ -109,55 +116,55 @@ import {
|
|
|
109
116
|
storeClients,
|
|
110
117
|
storeContents,
|
|
111
118
|
vectorIndexCounts
|
|
112
|
-
} from "./chunk-
|
|
119
|
+
} from "./chunk-7LQRXVQ3.js";
|
|
113
120
|
import {
|
|
114
121
|
currentRun,
|
|
115
122
|
readDamageMark,
|
|
116
123
|
readHealthMark,
|
|
117
124
|
readJournalMark,
|
|
118
125
|
recordDeepCheck
|
|
119
|
-
} from "./chunk-
|
|
126
|
+
} from "./chunk-IBTMK5KD.js";
|
|
120
127
|
import {
|
|
121
128
|
failureKey,
|
|
122
129
|
isStoreDamage
|
|
123
|
-
} from "./chunk-
|
|
130
|
+
} from "./chunk-DW23LM47.js";
|
|
124
131
|
import {
|
|
125
132
|
modelAddressAllowed,
|
|
126
133
|
onThisComputer
|
|
127
|
-
} from "./chunk-
|
|
134
|
+
} from "./chunk-WCQW4GYO.js";
|
|
128
135
|
import {
|
|
129
136
|
readSharedSection,
|
|
130
137
|
sharedConfigPath,
|
|
131
138
|
writeSharedSection
|
|
132
|
-
} from "./chunk-
|
|
139
|
+
} from "./chunk-4DNHXRCJ.js";
|
|
133
140
|
import {
|
|
134
141
|
renderMessages
|
|
135
|
-
} from "./chunk-
|
|
142
|
+
} from "./chunk-TIHDBKA7.js";
|
|
136
143
|
import {
|
|
137
144
|
levelFor
|
|
138
|
-
} from "./chunk-
|
|
145
|
+
} from "./chunk-3TEFE6YU.js";
|
|
139
146
|
import {
|
|
140
147
|
formatLocator,
|
|
141
148
|
parseLocator
|
|
142
|
-
} from "./chunk-
|
|
149
|
+
} from "./chunk-GC6FLHZF.js";
|
|
143
150
|
import {
|
|
144
151
|
queryFieldsOf
|
|
145
|
-
} from "./chunk-
|
|
152
|
+
} from "./chunk-LT5KE44Q.js";
|
|
146
153
|
import {
|
|
147
154
|
readSecret
|
|
148
|
-
} from "./chunk-
|
|
155
|
+
} from "./chunk-ITGNDZRR.js";
|
|
149
156
|
import {
|
|
150
157
|
storePath
|
|
151
|
-
} from "./chunk-
|
|
158
|
+
} from "./chunk-3PEKYGZ3.js";
|
|
152
159
|
import {
|
|
153
160
|
openCache
|
|
154
|
-
} from "./chunk-
|
|
161
|
+
} from "./chunk-NZGI74GS.js";
|
|
155
162
|
import {
|
|
156
163
|
Credentials,
|
|
157
164
|
isMovedRun,
|
|
158
165
|
resolvePaths,
|
|
159
166
|
writeSecurely
|
|
160
|
-
} from "./chunk-
|
|
167
|
+
} from "./chunk-X5S5KUSU.js";
|
|
161
168
|
import {
|
|
162
169
|
array,
|
|
163
170
|
boolean,
|
|
@@ -179,10 +186,10 @@ import {
|
|
|
179
186
|
string,
|
|
180
187
|
transform,
|
|
181
188
|
trim
|
|
182
|
-
} from "./chunk-
|
|
189
|
+
} from "./chunk-S4UUN6LD.js";
|
|
183
190
|
import {
|
|
184
191
|
CliError
|
|
185
|
-
} from "./chunk-
|
|
192
|
+
} from "./chunk-BUGROVF3.js";
|
|
186
193
|
import {
|
|
187
194
|
__commonJS,
|
|
188
195
|
__name,
|
|
@@ -5522,11 +5529,11 @@ var require_liquid_node = __commonJS({
|
|
|
5522
5529
|
}
|
|
5523
5530
|
});
|
|
5524
5531
|
|
|
5525
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5532
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/cli/messenger/store-maintenance-command.js
|
|
5526
5533
|
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";
|
|
5527
5534
|
import { dirname as dirname3, resolve } from "node:path";
|
|
5528
5535
|
|
|
5529
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5536
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/sealed.js
|
|
5530
5537
|
import { createCipheriv, createDecipheriv, createHash, randomBytes, scrypt, timingSafeEqual } from "node:crypto";
|
|
5531
5538
|
import { closeSync, createReadStream, createWriteStream, existsSync, openSync, readSync, renameSync, rmSync, statSync } from "node:fs";
|
|
5532
5539
|
import { Transform } from "node:stream";
|
|
@@ -5633,7 +5640,7 @@ var unsealFile = /* @__PURE__ */ __name(async (from, to, password) => {
|
|
|
5633
5640
|
renameSync(pending, to);
|
|
5634
5641
|
}, "unsealFile");
|
|
5635
5642
|
|
|
5636
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5643
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/store/compatibility.js
|
|
5637
5644
|
var SPEAKS = MIGRATIONS.at(-1)?.version ?? 0;
|
|
5638
5645
|
var fileSchemaOf = /* @__PURE__ */ __name((database) => {
|
|
5639
5646
|
const tracked = database.prepare("SELECT 1 FROM sqlite_master WHERE name = 'schema_migrations'").get();
|
|
@@ -5657,7 +5664,7 @@ var compatibilityOf = /* @__PURE__ */ __name((file2, migrations = MIGRATIONS) =>
|
|
|
5657
5664
|
};
|
|
5658
5665
|
}, "compatibilityOf");
|
|
5659
5666
|
|
|
5660
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5667
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/store/repair.js
|
|
5661
5668
|
import { createHash as createHash2 } from "node:crypto";
|
|
5662
5669
|
var COPY_MARK = "__repair_";
|
|
5663
5670
|
var COPY_NAME = /__repair_[0-9a-f]{8}(_\d+)?$/;
|
|
@@ -5911,19 +5918,19 @@ var deleteCopy = /* @__PURE__ */ __name((database, name) => {
|
|
|
5911
5918
|
return found;
|
|
5912
5919
|
}, "deleteCopy");
|
|
5913
5920
|
|
|
5914
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5921
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/cli/store-info.js
|
|
5915
5922
|
import { existsSync as existsSync4, statSync as statSync3 } from "node:fs";
|
|
5916
5923
|
|
|
5917
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5924
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/cli/store-recover.js
|
|
5918
5925
|
import { existsSync as existsSync3 } from "node:fs";
|
|
5919
5926
|
|
|
5920
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5927
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/store/recover.js
|
|
5921
5928
|
import { execFileSync, spawn } from "node:child_process";
|
|
5922
5929
|
import { existsSync as existsSync2, readFileSync, realpathSync, renameSync as renameSync2, rmSync as rmSync2, statfsSync, statSync as statSync2, writeFileSync } from "node:fs";
|
|
5923
5930
|
import { basename, dirname, join } from "node:path";
|
|
5924
5931
|
import { Transform as Transform2 } from "node:stream";
|
|
5925
5932
|
|
|
5926
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5933
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/store/refill.js
|
|
5927
5934
|
var REFILL_MARGIN_MS = 864e5;
|
|
5928
5935
|
var TIME_KEYS = 1e12;
|
|
5929
5936
|
var integerId = `external_id GLOB '[0-9]*' AND NOT external_id GLOB '*[^0-9]*'`;
|
|
@@ -6003,7 +6010,7 @@ var forgetMail = /* @__PURE__ */ __name((database, cutoff, now) => {
|
|
|
6003
6010
|
return [...folders].map(([account, count3]) => ({ account, folders: count3 }));
|
|
6004
6011
|
}, "forgetMail");
|
|
6005
6012
|
|
|
6006
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6013
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/store/recover.js
|
|
6007
6014
|
var SQLITE3_MINIMUM = [3, 43, 0];
|
|
6008
6015
|
var STORE_PARTS = ["", "-wal", "-shm"];
|
|
6009
6016
|
var RECOVER_LOCK = ".recover-lock";
|
|
@@ -6281,6 +6288,7 @@ var FILLERS = {
|
|
|
6281
6288
|
}, "message_stems"),
|
|
6282
6289
|
attachment_words: /* @__PURE__ */ __name((database) => void resetAttachmentWords(database), "attachment_words"),
|
|
6283
6290
|
crm_file_words: /* @__PURE__ */ __name((database) => void resetCrmFileWords(database), "crm_file_words"),
|
|
6291
|
+
tracker_item_words: /* @__PURE__ */ __name((database) => void resetTrackerItemWords(database), "tracker_item_words"),
|
|
6284
6292
|
attachment_name_words: /* @__PURE__ */ __name((database) => (
|
|
6285
6293
|
// As migration 20 filled it: й and ё fold as the triggers fold them.
|
|
6286
6294
|
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")
|
|
@@ -6532,7 +6540,7 @@ var recoverLocked = /* @__PURE__ */ __name(async ({ path, command, version, sqli
|
|
|
6532
6540
|
}
|
|
6533
6541
|
}, "recoverLocked");
|
|
6534
6542
|
|
|
6535
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6543
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/cli/store-recover.js
|
|
6536
6544
|
var COUNTED = [
|
|
6537
6545
|
"accounts",
|
|
6538
6546
|
"chats",
|
|
@@ -6688,7 +6696,7 @@ var storeRecoverCommand = /* @__PURE__ */ __name(({ command, version }) => {
|
|
|
6688
6696
|
return recover;
|
|
6689
6697
|
}, "storeRecoverCommand");
|
|
6690
6698
|
|
|
6691
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6699
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/cli/store-info.js
|
|
6692
6700
|
var pendingIfKnown = /* @__PURE__ */ __name((database) => database.prepare("SELECT 1 FROM pragma_table_info('messages') WHERE name = 'normalized_text'").get() ? pendingNormalization(database) : null, "pendingIfKnown");
|
|
6693
6701
|
var bytesOf = /* @__PURE__ */ __name((path) => existsSync4(path) ? statSync3(path).size : 0, "bytesOf");
|
|
6694
6702
|
var messageOf = /* @__PURE__ */ __name((error) => error instanceof Error ? error.message : String(error), "messageOf");
|
|
@@ -6734,7 +6742,7 @@ var storeInfoCommand = /* @__PURE__ */ __name(() => annotate(new Command("info")
|
|
|
6734
6742
|
renderAnswer(this, outputFor(this), itemOf(answer));
|
|
6735
6743
|
}), "storeInfoCommand");
|
|
6736
6744
|
|
|
6737
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6745
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/cli/messenger/password.js
|
|
6738
6746
|
var ENCRYPT_OPTION = [
|
|
6739
6747
|
"--encrypt",
|
|
6740
6748
|
"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"
|
|
@@ -6753,7 +6761,7 @@ var passwordOf = /* @__PURE__ */ __name(async (command, { twice }) => {
|
|
|
6753
6761
|
return password;
|
|
6754
6762
|
}, "passwordOf");
|
|
6755
6763
|
|
|
6756
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6764
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/replies/rules.js
|
|
6757
6765
|
import { existsSync as existsSync5, readFileSync as readFileSync2 } from "node:fs";
|
|
6758
6766
|
import { join as join2 } from "node:path";
|
|
6759
6767
|
var REPLY_ACTIONS = ["reply", "task"];
|
|
@@ -6924,7 +6932,7 @@ var problem = /* @__PURE__ */ __name((issue) => {
|
|
|
6924
6932
|
}, "problem");
|
|
6925
6933
|
var broken = /* @__PURE__ */ __name((path, why) => new CliError("configuration_error", `the reply rules ${path} cannot be read (${why}) \u2014 fix the file`), "broken");
|
|
6926
6934
|
|
|
6927
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6935
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/replies/state.js
|
|
6928
6936
|
import { existsSync as existsSync6, readFileSync as readFileSync3 } from "node:fs";
|
|
6929
6937
|
import { join as join3 } from "node:path";
|
|
6930
6938
|
var ANSWERED_KEPT = 1e3;
|
|
@@ -6977,7 +6985,7 @@ var recordReply = /* @__PURE__ */ __name((state, rule2, message, now) => {
|
|
|
6977
6985
|
}, "recordReply");
|
|
6978
6986
|
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");
|
|
6979
6987
|
|
|
6980
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6988
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/replies/decide.js
|
|
6981
6989
|
var skip = /* @__PURE__ */ __name((why) => ({ skip: why }), "skip");
|
|
6982
6990
|
var decide = /* @__PURE__ */ __name((rule2, incoming, state, now) => {
|
|
6983
6991
|
const { message, chat, owner, sender } = incoming;
|
|
@@ -7083,10 +7091,10 @@ var filled = /* @__PURE__ */ __name((template2, senderName) => {
|
|
|
7083
7091
|
return template2.replaceAll("{firstName}", name.split(/\s+/)[0] ?? name).replaceAll("{name}", name);
|
|
7084
7092
|
}, "filled");
|
|
7085
7093
|
|
|
7086
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7094
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/replies/template.js
|
|
7087
7095
|
var import_liquidjs2 = __toESM(require_liquid_node(), 1);
|
|
7088
7096
|
|
|
7089
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7097
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/render/liquid.js
|
|
7090
7098
|
var import_liquidjs = __toESM(require_liquid_node(), 1);
|
|
7091
7099
|
var safeLiquid = /* @__PURE__ */ __name((limits) => {
|
|
7092
7100
|
const engine = new import_liquidjs.Liquid({
|
|
@@ -7113,7 +7121,7 @@ var safeLiquid = /* @__PURE__ */ __name((limits) => {
|
|
|
7113
7121
|
return engine;
|
|
7114
7122
|
}, "safeLiquid");
|
|
7115
7123
|
|
|
7116
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7124
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/replies/template.js
|
|
7117
7125
|
var TEMPLATE_LIMITS = {
|
|
7118
7126
|
parse: 32768,
|
|
7119
7127
|
renders: 2e3,
|
|
@@ -7252,7 +7260,7 @@ var renderReplyTemplate = /* @__PURE__ */ __name(async (reply, input) => {
|
|
|
7252
7260
|
}
|
|
7253
7261
|
}, "renderReplyTemplate");
|
|
7254
7262
|
|
|
7255
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7263
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/replies/dry-run.js
|
|
7256
7264
|
var DRY_RUN_DAYS = 7;
|
|
7257
7265
|
var PAGE = 500;
|
|
7258
7266
|
var dryRun = /* @__PURE__ */ __name(async (store, account, rules, { since, until = Date.now(), only, audience, render }) => {
|
|
@@ -7366,7 +7374,7 @@ var storedSince = /* @__PURE__ */ __name(async (store, account, chat, since) =>
|
|
|
7366
7374
|
}
|
|
7367
7375
|
}, "storedSince");
|
|
7368
7376
|
|
|
7369
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7377
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/models/ai.js
|
|
7370
7378
|
var AI_PROVIDERS = ["anthropic", "openai", "ollama"];
|
|
7371
7379
|
var DEFAULT_BASE_URL = {
|
|
7372
7380
|
anthropic: "https://api.anthropic.com",
|
|
@@ -7516,7 +7524,7 @@ var checkAi = /* @__PURE__ */ __name(async (deps) => {
|
|
|
7516
7524
|
}
|
|
7517
7525
|
}, "checkAi");
|
|
7518
7526
|
|
|
7519
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7527
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/models/purpose.js
|
|
7520
7528
|
var HOSTED = {
|
|
7521
7529
|
openai: "https://api.openai.com/v1",
|
|
7522
7530
|
anthropic: "https://api.anthropic.com"
|
|
@@ -7537,7 +7545,7 @@ var purposeModel = /* @__PURE__ */ __name((settings, purpose, deps) => {
|
|
|
7537
7545
|
return shared ? { target: shared.target, key: /* @__PURE__ */ __name(() => shared.key, "key"), shared: shared.setting } : void 0;
|
|
7538
7546
|
}, "purposeModel");
|
|
7539
7547
|
|
|
7540
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7548
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/replies/consents.js
|
|
7541
7549
|
import { existsSync as existsSync7, readFileSync as readFileSync4 } from "node:fs";
|
|
7542
7550
|
import { join as join4 } from "node:path";
|
|
7543
7551
|
var shape = strictObject({
|
|
@@ -7562,7 +7570,7 @@ var mayModelReply = /* @__PURE__ */ __name((path, provider, chat) => {
|
|
|
7562
7570
|
return consent.provider === provider && !consent.deniedChats.includes(chat);
|
|
7563
7571
|
}, "mayModelReply");
|
|
7564
7572
|
|
|
7565
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7573
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/replies/rendering.js
|
|
7566
7574
|
var replyRenderer = /* @__PURE__ */ __name((app, profile, settings, env, warn, options = {
|
|
7567
7575
|
ai: true
|
|
7568
7576
|
}) => async (rule2, message, chat, now) => {
|
|
@@ -7610,7 +7618,7 @@ var replyRenderer = /* @__PURE__ */ __name((app, profile, settings, env, warn, o
|
|
|
7610
7618
|
return result2;
|
|
7611
7619
|
}, "replyRenderer");
|
|
7612
7620
|
|
|
7613
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7621
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/replies/serve.js
|
|
7614
7622
|
var NOT_ALLOWED = "replies.send is not allow";
|
|
7615
7623
|
var NO_RULES = "no rules";
|
|
7616
7624
|
var ONLY_TASK = "opened a task, sent nothing";
|
|
@@ -7703,7 +7711,7 @@ var replyTo = /* @__PURE__ */ __name(async (deps, message) => {
|
|
|
7703
7711
|
return { skip: why };
|
|
7704
7712
|
}, "replyTo");
|
|
7705
7713
|
|
|
7706
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7714
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-catch-up.js
|
|
7707
7715
|
var START_SYNC_DELAY_MS = 3e4;
|
|
7708
7716
|
var START_SYNC_BUDGET_MS = 5 * 6e4;
|
|
7709
7717
|
var START_SYNC_WINDOW_MS = 7 * 864e5;
|
|
@@ -7780,7 +7788,7 @@ var startSync = /* @__PURE__ */ __name(({ chats, newestHeld, fetch, note, warn,
|
|
|
7780
7788
|
};
|
|
7781
7789
|
}, "startSync");
|
|
7782
7790
|
|
|
7783
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7791
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-members.js
|
|
7784
7792
|
var FIRST_FETCH_MS = 6e4;
|
|
7785
7793
|
var DAY_MS = 864e5;
|
|
7786
7794
|
var memberFetches = /* @__PURE__ */ __name(({ withStore, fetch, warn, firstMs = FIRST_FETCH_MS, everyMs = DAY_MS }) => {
|
|
@@ -7834,7 +7842,7 @@ var memberFetches = /* @__PURE__ */ __name(({ withStore, fetch, warn, firstMs =
|
|
|
7834
7842
|
};
|
|
7835
7843
|
}, "memberFetches");
|
|
7836
7844
|
|
|
7837
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7845
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-notice.js
|
|
7838
7846
|
var record2 = /* @__PURE__ */ __name((context, app, severity, attributes) => recordLogFor(context.streams.diagnostic, app, { command: currentRun().command || "serve" })[severity](attributes), "record");
|
|
7839
7847
|
var noticeFor = /* @__PURE__ */ __name((context, app, severity = "warn") => ({ text, ...attributes }) => {
|
|
7840
7848
|
if (context.format === "pretty") {
|
|
@@ -7867,7 +7875,7 @@ var recordDiagnostics = /* @__PURE__ */ __name((context, app) => {
|
|
|
7867
7875
|
return context;
|
|
7868
7876
|
}, "recordDiagnostics");
|
|
7869
7877
|
|
|
7870
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7878
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-outdated.js
|
|
7871
7879
|
import { existsSync as existsSync8, readFileSync as readFileSync5, realpathSync as realpathSync2 } from "node:fs";
|
|
7872
7880
|
import { dirname as dirname2, join as join5 } from "node:path";
|
|
7873
7881
|
var OUTDATED_CHECK_MS = 6e4;
|
|
@@ -7953,7 +7961,7 @@ var watchOutdated = /* @__PURE__ */ __name(({ check: check2, onOutdated, everyMs
|
|
|
7953
7961
|
};
|
|
7954
7962
|
}, "watchOutdated");
|
|
7955
7963
|
|
|
7956
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7964
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-stems.js
|
|
7957
7965
|
var STEMS_EVERY_MS = 3e4;
|
|
7958
7966
|
var STEMS_SLICE_MS = 2e3;
|
|
7959
7967
|
var stemFills = /* @__PURE__ */ __name(({ withStore, warn, everyMs = STEMS_EVERY_MS, sliceMs = STEMS_SLICE_MS }) => {
|
|
@@ -7993,7 +8001,7 @@ var stemFills = /* @__PURE__ */ __name(({ withStore, warn, everyMs = STEMS_EVERY
|
|
|
7993
8001
|
};
|
|
7994
8002
|
}, "stemFills");
|
|
7995
8003
|
|
|
7996
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8004
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/cli/messenger/message-items.js
|
|
7997
8005
|
var defined = /* @__PURE__ */ __name((value) => Object.fromEntries(Object.entries(value).filter(([, one]) => one !== void 0)), "defined");
|
|
7998
8006
|
var attachmentItem = /* @__PURE__ */ __name((attachment) => defined({
|
|
7999
8007
|
kind: attachment.kind,
|
|
@@ -8089,7 +8097,7 @@ var viewOf = /* @__PURE__ */ __name((context, messenger) => ({
|
|
|
8089
8097
|
locale: messenger.app.locale
|
|
8090
8098
|
}), "viewOf");
|
|
8091
8099
|
|
|
8092
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8100
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/cli/messenger/watch-answers.js
|
|
8093
8101
|
var observed = /* @__PURE__ */ __name((value) => ({
|
|
8094
8102
|
value: value.value,
|
|
8095
8103
|
observed_at: value.observedAt,
|
|
@@ -8156,7 +8164,7 @@ var watchEventItem = /* @__PURE__ */ __name((value, account) => {
|
|
|
8156
8164
|
}
|
|
8157
8165
|
}, "watchEventItem");
|
|
8158
8166
|
|
|
8159
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8167
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/cli/messenger/watch-command.js
|
|
8160
8168
|
var watchCommand = /* @__PURE__ */ __name((messenger) => annotate(new Command("watch"), {
|
|
8161
8169
|
output: { entity: "watch_item" },
|
|
8162
8170
|
effects: REMOTE_READ,
|
|
@@ -8311,7 +8319,7 @@ var describe = /* @__PURE__ */ __name((event, render) => {
|
|
|
8311
8319
|
}
|
|
8312
8320
|
}, "describe");
|
|
8313
8321
|
|
|
8314
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8322
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-command.js
|
|
8315
8323
|
var serveCommand = /* @__PURE__ */ __name((messenger) => {
|
|
8316
8324
|
const command = annotate(new Command("serve"), {
|
|
8317
8325
|
output: { entity: "serve_summary" },
|
|
@@ -8597,7 +8605,7 @@ var tasking = /* @__PURE__ */ __name((context, warn) => {
|
|
|
8597
8605
|
};
|
|
8598
8606
|
}, "tasking");
|
|
8599
8607
|
|
|
8600
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8608
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/cli/messenger/store-tables-command.js
|
|
8601
8609
|
import { existsSync as existsSync9 } from "node:fs";
|
|
8602
8610
|
var PATH = "store tables list";
|
|
8603
8611
|
var STORE_TABLES_QUERY = {
|
|
@@ -8640,7 +8648,7 @@ var storeTablesCommand = /* @__PURE__ */ __name((owner) => {
|
|
|
8640
8648
|
return tables;
|
|
8641
8649
|
}, "storeTablesCommand");
|
|
8642
8650
|
|
|
8643
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8651
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/cli/messenger/store-maintenance-command.js
|
|
8644
8652
|
var SEARCH_INDEXES = ["messages_fts", "chats_fts", "identities_fts"];
|
|
8645
8653
|
var WORD_INDEX = "message_words";
|
|
8646
8654
|
var schemaOf = /* @__PURE__ */ __name((database) => {
|
|
@@ -8883,7 +8891,8 @@ var inspect = /* @__PURE__ */ __name((path) => reading(path, (database) => {
|
|
|
8883
8891
|
...wordIndex ? [[WORD_INDEX, indexIntegrity(database, WORD_INDEX, 0)]] : [],
|
|
8884
8892
|
...stems ? [["message_stems", indexIntegrity(database, "message_stems", 0)]] : [],
|
|
8885
8893
|
...schema.version > 0 ? [["attachment_words", indexIntegrity(database, "attachment_words", 0)]] : [],
|
|
8886
|
-
...schema.version >= 68 ? [["crm_file_words", indexIntegrity(database, "crm_file_words", 0)]] : []
|
|
8894
|
+
...schema.version >= 68 ? [["crm_file_words", indexIntegrity(database, "crm_file_words", 0)]] : [],
|
|
8895
|
+
...schema.version >= 70 ? [["tracker_item_words", indexIntegrity(database, "tracker_item_words", 0)]] : []
|
|
8887
8896
|
]);
|
|
8888
8897
|
const size = bytesOf2(path) + bytesOf2(`${path}-wal`);
|
|
8889
8898
|
const { bavail, bsize } = statfsSync2(dirname3(path));
|
|
@@ -9051,7 +9060,7 @@ var reindexCommand = /* @__PURE__ */ __name((owner) => destroysNothing(annotate(
|
|
|
9051
9060
|
throw new CliError("validation_error", `the store is behind this build \u2014 \`${lineOf(this, "store migrate")}\` first`);
|
|
9052
9061
|
}
|
|
9053
9062
|
resetSearchIndex(database);
|
|
9054
|
-
const fileTexts = resetAttachmentWords(database) + resetCrmFileWords(database);
|
|
9063
|
+
const fileTexts = resetAttachmentWords(database) + resetCrmFileWords(database) + resetTrackerItemWords(database);
|
|
9055
9064
|
const words = buildWordIndex(database, (note) => renderer.note(note));
|
|
9056
9065
|
return {
|
|
9057
9066
|
path,
|