@wirecat/hubspot-cli 0.3.2 → 0.5.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 +34 -0
- package/README.md +6 -5
- package/dist/bin/hubspot.js +2 -2
- package/dist/bundle/agent-RBQMA24N.js +40 -0
- package/dist/bundle/{all-profiles-6452VSJB.js → all-profiles-PGFXLOKN.js} +11 -11
- package/dist/bundle/{anthropic-VQUOVYOW.js → anthropic-LPOJ3TYF.js} +5 -5
- package/dist/bundle/{app-server-EQZUP4H4.js → app-server-EYWGCSRY.js} +68 -68
- package/dist/bundle/{bun-AJPJ4ZUN.js → bun-ZJOOKIIW.js} +2 -2
- package/dist/bundle/{bun-sqlite-AGXGSF6D.js → bun-sqlite-Y6KKH2OW.js} +6 -6
- package/dist/bundle/{chunk-2A64XS22.js → chunk-23CLSKY7.js} +3 -3
- package/dist/bundle/{chunk-GZZR5U3K.js → chunk-34HDRZIL.js} +14 -14
- package/dist/bundle/{chunk-NZGI74GS.js → chunk-3CHJYWA2.js} +6 -6
- package/dist/bundle/{chunk-PMP37KLR.js → chunk-4RZ4DUQT.js} +3 -3
- package/dist/bundle/{chunk-LT5KE44Q.js → chunk-5ENY4POG.js} +61 -61
- package/dist/bundle/{chunk-QBEDVMLZ.js → chunk-5HGS65I3.js} +2 -2
- package/dist/bundle/{chunk-KVXEEKBB.js → chunk-5UPNDUAA.js} +2 -2
- package/dist/bundle/{chunk-YIF5M5R6.js → chunk-5WADRBQG.js} +3 -3
- package/dist/bundle/{chunk-KO4VR5NK.js → chunk-6PWRJGX4.js} +4 -4
- package/dist/bundle/{chunk-TKK3ECDS.js → chunk-6S422S22.js} +7 -7
- package/dist/bundle/{chunk-5AYKCKSE.js → chunk-7Q64D56R.js} +11 -11
- package/dist/bundle/{chunk-PHXOL5HZ.js → chunk-7RIE3DAW.js} +174 -161
- package/dist/bundle/{chunk-RVWGFD32.js → chunk-A5UTNGI4.js} +13 -13
- package/dist/bundle/{chunk-NTQBS2JL.js → chunk-ABPZOI3C.js} +4 -4
- package/dist/bundle/{chunk-L433IDOX.js → chunk-AHZQMSXW.js} +10 -10
- package/dist/bundle/{chunk-X5S5KUSU.js → chunk-AIQT2GGK.js} +19 -19
- package/dist/bundle/{chunk-3R4KRNUZ.js → chunk-AVBKXCEY.js} +8 -8
- package/dist/bundle/{chunk-TIHDBKA7.js → chunk-BCW7DAVV.js} +2 -2
- package/dist/bundle/{chunk-7UEL65GQ.js → chunk-BGUGTMTS.js} +8 -8
- package/dist/bundle/{chunk-BN22EKQQ.js → chunk-BH5FEFZB.js} +2 -2
- package/dist/bundle/{chunk-DJ2GJ77D.js → chunk-BVK4GUUI.js} +1352 -838
- package/dist/bundle/{chunk-3TEFE6YU.js → chunk-BW7NPFVC.js} +18 -8
- package/dist/bundle/{chunk-WRCKE5ND.js → chunk-CWCJEAHZ.js} +3 -3
- package/dist/bundle/{chunk-DW23LM47.js → chunk-DDMBPYHP.js} +2 -2
- package/dist/bundle/{chunk-WGBVRDY3.js → chunk-DEUCWBBH.js} +103 -5
- package/dist/bundle/{chunk-SEELWPRD.js → chunk-DJUUQG6Y.js} +8 -8
- package/dist/bundle/{chunk-VW5F6FK3.js → chunk-EGR3YUWD.js} +4 -4
- package/dist/bundle/{chunk-M763RNWP.js → chunk-EPBHJMF6.js} +20 -14
- package/dist/bundle/{chunk-7NZT7Y55.js → chunk-GZJP3KQQ.js} +3 -4
- package/dist/bundle/{chunk-BHZUPOQY.js → chunk-HBFSGL5E.js} +26 -26
- package/dist/bundle/{chunk-O3VM5PTJ.js → chunk-HPRGUUHY.js} +1 -1
- package/dist/bundle/{chunk-DSRXCLPO.js → chunk-HPSESLOZ.js} +1 -1
- package/dist/bundle/{chunk-Q27QAB4X.js → chunk-I334AT2H.js} +7 -7
- package/dist/bundle/{chunk-BAUK2MD5.js → chunk-K3WCBNH4.js} +43 -64
- package/dist/bundle/{chunk-JK2SNLU5.js → chunk-K5S7MKBB.js} +17 -17
- package/dist/bundle/{chunk-J5P5VSRG.js → chunk-KAW5VEER.js} +21 -8
- package/dist/bundle/{chunk-NNMU2TDU.js → chunk-KC4ILAKO.js} +1 -1
- package/dist/bundle/{chunk-K4X5ZHI2.js → chunk-KRTXJMCD.js} +16 -16
- package/dist/bundle/{chunk-DQB5JMTY.js → chunk-KXWRVLSU.js} +1 -1
- package/dist/bundle/{chunk-VQEAZXTV.js → chunk-L4SVHQ7H.js} +7 -7
- package/dist/bundle/{chunk-ARTJLL7W.js → chunk-L6WSFVTD.js} +8 -8
- package/dist/bundle/{chunk-OJIJVOOA.js → chunk-LWS5AO3H.js} +17 -17
- package/dist/bundle/{chunk-E4X7JAFC.js → chunk-LXLXF2OE.js} +3 -3
- package/dist/bundle/{chunk-ODPU3II6.js → chunk-MENMD5Y5.js} +8 -8
- package/dist/bundle/{chunk-5ZV7REBE.js → chunk-MFWECOO3.js} +82 -64
- package/dist/bundle/{chunk-HPZRUY6S.js → chunk-MGMLSPIY.js} +1 -1
- package/dist/bundle/{chunk-B3EH22CO.js → chunk-MKBQFD37.js} +1 -1
- package/dist/bundle/{chunk-E4FAMU2S.js → chunk-MPNMEWHA.js} +417 -320
- package/dist/bundle/{chunk-2HYGCLKN.js → chunk-MPQ4SPZG.js} +93 -40
- package/dist/bundle/{chunk-ITGNDZRR.js → chunk-MW4ROXQ6.js} +3 -3
- package/dist/bundle/{chunk-JP2HJXFO.js → chunk-NEDV6RCQ.js} +10 -3
- package/dist/bundle/{chunk-PLRUUXK7.js → chunk-NEP67GLY.js} +6 -6
- package/dist/bundle/{chunk-6MFP47XC.js → chunk-NKIKMG33.js} +35 -35
- package/dist/bundle/{chunk-GC6FLHZF.js → chunk-NLPGUYCG.js} +12 -12
- package/dist/bundle/{chunk-AF7DANIR.js → chunk-OCISQFMW.js} +1 -1
- package/dist/bundle/{chunk-AVUMH42T.js → chunk-ODRF47VS.js} +8 -8
- package/dist/bundle/{chunk-EE4JSYGZ.js → chunk-OFOA6VJ2.js} +3 -3
- package/dist/bundle/{chunk-BUGROVF3.js → chunk-PMGAU6AP.js} +2 -2
- package/dist/bundle/{chunk-IQ2XZ62J.js → chunk-POTS24SH.js} +18 -18
- package/dist/bundle/{chunk-B2W3C4N6.js → chunk-PPQRWFJZ.js} +5 -5
- package/dist/bundle/{chunk-GRFICQTZ.js → chunk-QCHW7R7L.js} +1 -1
- package/dist/bundle/{chunk-5K3FGXZH.js → chunk-QDNYJOWJ.js} +1 -1
- package/dist/bundle/{chunk-WCQW4GYO.js → chunk-QIHJKE4K.js} +24 -8
- package/dist/bundle/{chunk-7LQRXVQ3.js → chunk-QLFD3MOL.js} +1002 -560
- package/dist/bundle/{chunk-7VHBS5BJ.js → chunk-QPTHEZZ5.js} +2 -2
- package/dist/bundle/{chunk-IXZLMFPO.js → chunk-R7ZOCDNG.js} +1 -1
- package/dist/bundle/{chunk-FIVD4HM4.js → chunk-RJBKDZGV.js} +8 -8
- package/dist/bundle/{chunk-4DNHXRCJ.js → chunk-RZS7N3OZ.js} +7 -7
- package/dist/bundle/{chunk-A6UFH3QU.js → chunk-SBNZYRVZ.js} +4 -4
- package/dist/bundle/{chunk-EMOVVERN.js → chunk-STTHRJBX.js} +5 -5
- package/dist/bundle/{chunk-2NCO4E4T.js → chunk-V5VMAHDQ.js} +6 -6
- package/dist/bundle/{chunk-LA3YU4K7.js → chunk-VCYUYFIV.js} +1 -1
- package/dist/bundle/{chunk-3I2FGNWO.js → chunk-VIJV474N.js} +1 -1
- package/dist/bundle/{chunk-ABXVU5O4.js → chunk-WDR77HPO.js} +22 -1
- package/dist/bundle/{chunk-3PEKYGZ3.js → chunk-WEM4FZPM.js} +2 -2
- package/dist/bundle/{chunk-5PPG73G6.js → chunk-WQZENAPE.js} +3 -3
- package/dist/bundle/{chunk-5YNAVVCW.js → chunk-WXEN6AXQ.js} +16 -3
- package/dist/bundle/{chunk-IBTMK5KD.js → chunk-YJLJZMEA.js} +25 -25
- package/dist/bundle/{chunk-2PRVWEJC.js → chunk-YQBGPBYN.js} +2 -2
- package/dist/bundle/{chunk-3DIXAEGH.js → chunk-YZ5MULJM.js} +3 -3
- package/dist/bundle/{chunk-JUKAIXKY.js → chunk-Z7FC6VVM.js} +1 -1
- package/dist/bundle/{chunk-LKSNISYV.js → chunk-ZKPM53YG.js} +4 -4
- package/dist/bundle/{chunk-U6XA3OOM.js → chunk-ZLWQPUPB.js} +2 -2
- package/dist/bundle/{chunk-CBCEMFCF.js → chunk-ZMHD76RE.js} +2 -2
- package/dist/bundle/command-contract-O2UKYHLD.js +40 -0
- package/dist/bundle/{command-server-entry-GJSMDSNE.js → command-server-entry-B7S5AUE6.js} +28 -28
- package/dist/bundle/{decode-6PLXHVHW.js → decode-7L33C5UJ.js} +5 -5
- package/dist/bundle/{dispatch-TAQ7635E.js → dispatch-BIGHHSXV.js} +8 -8
- package/dist/bundle/{echarts-UZ7QLRE2.js → echarts-CWR3QH55.js} +2 -2
- package/dist/bundle/{embed-AWLL4EBF.js → embed-GXQ3HOQ6.js} +6 -6
- package/dist/bundle/{embedder-MM225YJ6.js → embedder-47OYXGLS.js} +9 -9
- package/dist/bundle/{failure-MR2XVHFP.js → failure-VMZOU5GZ.js} +2 -2
- package/dist/bundle/{first-run-KCZVNFJ7.js → first-run-YVQQOUQG.js} +12 -12
- package/dist/bundle/first-screen-TU3KE2B5.js +40 -0
- package/dist/bundle/hubspot.js +27 -25
- package/dist/bundle/{instructions-ZJ7U3QUE.js → instructions-QFS2MPK3.js} +1 -1
- package/dist/bundle/{mcp-CNV7F2XZ.js → mcp-Z2KZNCXB.js} +2 -2
- package/dist/bundle/meeting-combined-WBEOLQMP.js +25 -0
- package/dist/bundle/{meeting-model-OYXB2NOE.js → meeting-model-GLF2HVJG.js} +11 -11
- package/dist/bundle/{meeting-semantic-S3DBB7XD.js → meeting-semantic-RG56F4YX.js} +6 -6
- package/dist/bundle/{node-HGCZGZ4R.js → node-3TSWTXGI.js} +2 -2
- package/dist/bundle/{node-sqlite-RKYSRKEB.js → node-sqlite-UPQCG7DJ.js} +7 -7
- package/dist/bundle/{oauth-PYDCAQ7Y.js → oauth-MCVEENW3.js} +7 -7
- package/dist/bundle/{open-UCDSQUN2.js → open-JMUTKUYJ.js} +5 -5
- package/dist/bundle/{openai-Y4F5ZC7O.js → openai-HT7YDOK7.js} +15 -15
- package/dist/bundle/{process-P7FB7YO7.js → process-7RC6DAGM.js} +1 -1
- package/dist/bundle/{program-VKYZXANH.js → program-3DLBMOEJ.js} +174 -120
- package/dist/bundle/{prompt-E5TKZ37Q.js → prompt-7EROPXPF.js} +5 -5
- package/dist/bundle/{recognize-5NYPTSLT.js → recognize-B232GXD2.js} +4 -4
- package/dist/bundle/{remote-U4LUAHF2.js → remote-HGV64VRC.js} +9 -9
- package/dist/bundle/{rerank-AJAVKK5L.js → rerank-5S6TDXHD.js} +7 -7
- package/dist/bundle/{schemas-QLQ2K6DL.js → schemas-SB42IXEX.js} +1 -1
- package/dist/bundle/{serve-4UJ3R5IP.js → serve-D2WFCV6Z.js} +9 -9
- package/dist/bundle/{server-DUKWJUKD.js → server-4AXPTJPV.js} +60 -60
- package/dist/bundle/server-FFHVNABP.js +86 -0
- package/dist/bundle/{source-LJG4BWRU.js → source-DF63EC2B.js} +114 -86
- package/dist/bundle/{sqlite-runtime-KLEA4XAU.js → sqlite-runtime-DAFMZNLI.js} +6 -6
- package/dist/bundle/{state-COGSYMVH.js → state-7OEBDXVV.js} +6 -6
- package/dist/bundle/{store-BJXCSP26.js → store-2ZWSWF76.js} +24 -24
- package/dist/bundle/{store-V5UMSWK4.js → store-KC6US326.js} +26 -22
- package/dist/bundle/store-Q3ZKD4FJ.js +34 -0
- package/dist/bundle/store-maintenance-command-24A4GBRP.js +73 -0
- package/dist/bundle/surface-SPTM57EP.js +72 -0
- package/dist/bundle/writer-EQQ55HOS.js +86 -0
- package/dist/config.d.ts +1 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +59 -10
- package/dist/config.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +4 -4
- package/skills/hubspot-cli/references/api/api-basic.md +34 -6
- package/skills/hubspot-cli/references/api/api-batch.md +19 -9
- package/skills/hubspot-cli/references/api/api-search.md +9 -0
- package/dist/bundle/agent-A7ARC3QB.js +0 -40
- package/dist/bundle/command-contract-R2FGN7CQ.js +0 -40
- package/dist/bundle/first-screen-SCDV7TXT.js +0 -40
- package/dist/bundle/meeting-combined-EL5XZIJ5.js +0 -25
- package/dist/bundle/server-UQVV2PPX.js +0 -86
- package/dist/bundle/store-7DQGZH64.js +0 -32
- package/dist/bundle/store-maintenance-command-DQUBBWMD.js +0 -73
- package/dist/bundle/surface-IGBQUYE5.js +0 -72
- package/dist/bundle/writer-QOEJONAD.js +0 -86
|
@@ -3,15 +3,15 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
answerOf,
|
|
5
5
|
messengerContext
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-KRTXJMCD.js";
|
|
7
7
|
import {
|
|
8
8
|
chatEventAnswer,
|
|
9
9
|
memberAnswer,
|
|
10
10
|
pollVoteAnswer
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-MENMD5Y5.js";
|
|
12
12
|
import {
|
|
13
13
|
serveRelay
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-PPQRWFJZ.js";
|
|
15
15
|
import {
|
|
16
16
|
FETCHING,
|
|
17
17
|
RULES_VERSION,
|
|
@@ -28,20 +28,21 @@ import {
|
|
|
28
28
|
servicesFor,
|
|
29
29
|
syncsOneChat,
|
|
30
30
|
withTimeLimit
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-MPNMEWHA.js";
|
|
32
32
|
import {
|
|
33
33
|
capability,
|
|
34
34
|
queryTerms,
|
|
35
35
|
typedQuery,
|
|
36
36
|
withQuery
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-EPBHJMF6.js";
|
|
38
38
|
import {
|
|
39
39
|
holdLock,
|
|
40
40
|
lockPath,
|
|
41
|
+
markCurrent,
|
|
41
42
|
releaseLock,
|
|
42
43
|
servingProfiles,
|
|
43
44
|
takeLock
|
|
44
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-WXEN6AXQ.js";
|
|
45
46
|
import {
|
|
46
47
|
Command,
|
|
47
48
|
LOCAL_READ,
|
|
@@ -68,10 +69,10 @@ import {
|
|
|
68
69
|
snakeKeys,
|
|
69
70
|
storeTable,
|
|
70
71
|
withoutProviderRefs
|
|
71
|
-
} from "./chunk-
|
|
72
|
+
} from "./chunk-7RIE3DAW.js";
|
|
72
73
|
import {
|
|
73
74
|
holdersOf
|
|
74
|
-
} from "./chunk-
|
|
75
|
+
} from "./chunk-R7ZOCDNG.js";
|
|
75
76
|
import {
|
|
76
77
|
QUICK_HEALTH_CHECKS,
|
|
77
78
|
fts5Tables,
|
|
@@ -79,7 +80,7 @@ import {
|
|
|
79
80
|
lossUnknown,
|
|
80
81
|
storeDamageReport,
|
|
81
82
|
storeHealth
|
|
82
|
-
} from "./chunk-
|
|
83
|
+
} from "./chunk-K5S7MKBB.js";
|
|
83
84
|
import {
|
|
84
85
|
CORPORA,
|
|
85
86
|
MIGRATIONS,
|
|
@@ -103,6 +104,7 @@ import {
|
|
|
103
104
|
readStoreTables,
|
|
104
105
|
rebuildMentions,
|
|
105
106
|
resetAttachmentWords,
|
|
107
|
+
resetContentPostWords,
|
|
106
108
|
resetCrmFileWords,
|
|
107
109
|
resetNoteIndex,
|
|
108
110
|
resetSearchIndex,
|
|
@@ -116,55 +118,55 @@ import {
|
|
|
116
118
|
storeClients,
|
|
117
119
|
storeContents,
|
|
118
120
|
vectorIndexCounts
|
|
119
|
-
} from "./chunk-
|
|
121
|
+
} from "./chunk-QLFD3MOL.js";
|
|
120
122
|
import {
|
|
121
123
|
currentRun,
|
|
122
124
|
readDamageMark,
|
|
123
125
|
readHealthMark,
|
|
124
126
|
readJournalMark,
|
|
125
127
|
recordDeepCheck
|
|
126
|
-
} from "./chunk-
|
|
128
|
+
} from "./chunk-YJLJZMEA.js";
|
|
127
129
|
import {
|
|
128
130
|
failureKey,
|
|
129
131
|
isStoreDamage
|
|
130
|
-
} from "./chunk-
|
|
132
|
+
} from "./chunk-DDMBPYHP.js";
|
|
131
133
|
import {
|
|
132
134
|
modelAddressAllowed,
|
|
133
135
|
onThisComputer
|
|
134
|
-
} from "./chunk-
|
|
135
|
-
import {
|
|
136
|
-
readSharedSection,
|
|
137
|
-
sharedConfigPath,
|
|
138
|
-
writeSharedSection
|
|
139
|
-
} from "./chunk-4DNHXRCJ.js";
|
|
136
|
+
} from "./chunk-QIHJKE4K.js";
|
|
140
137
|
import {
|
|
141
138
|
renderMessages
|
|
142
|
-
} from "./chunk-
|
|
139
|
+
} from "./chunk-BCW7DAVV.js";
|
|
143
140
|
import {
|
|
144
141
|
levelFor
|
|
145
|
-
} from "./chunk-
|
|
142
|
+
} from "./chunk-BW7NPFVC.js";
|
|
146
143
|
import {
|
|
147
144
|
formatLocator,
|
|
148
145
|
parseLocator
|
|
149
|
-
} from "./chunk-
|
|
146
|
+
} from "./chunk-NLPGUYCG.js";
|
|
150
147
|
import {
|
|
151
148
|
queryFieldsOf
|
|
152
|
-
} from "./chunk-
|
|
149
|
+
} from "./chunk-5ENY4POG.js";
|
|
150
|
+
import {
|
|
151
|
+
readSharedSection,
|
|
152
|
+
sharedConfigPath,
|
|
153
|
+
writeSharedSection
|
|
154
|
+
} from "./chunk-RZS7N3OZ.js";
|
|
153
155
|
import {
|
|
154
156
|
readSecret
|
|
155
|
-
} from "./chunk-
|
|
157
|
+
} from "./chunk-MW4ROXQ6.js";
|
|
156
158
|
import {
|
|
157
159
|
storePath
|
|
158
|
-
} from "./chunk-
|
|
160
|
+
} from "./chunk-WEM4FZPM.js";
|
|
159
161
|
import {
|
|
160
162
|
openCache
|
|
161
|
-
} from "./chunk-
|
|
163
|
+
} from "./chunk-3CHJYWA2.js";
|
|
162
164
|
import {
|
|
163
165
|
Credentials,
|
|
164
166
|
isMovedRun,
|
|
165
167
|
resolvePaths,
|
|
166
168
|
writeSecurely
|
|
167
|
-
} from "./chunk-
|
|
169
|
+
} from "./chunk-AIQT2GGK.js";
|
|
168
170
|
import {
|
|
169
171
|
array,
|
|
170
172
|
boolean,
|
|
@@ -189,7 +191,7 @@ import {
|
|
|
189
191
|
} from "./chunk-S4UUN6LD.js";
|
|
190
192
|
import {
|
|
191
193
|
CliError
|
|
192
|
-
} from "./chunk-
|
|
194
|
+
} from "./chunk-PMGAU6AP.js";
|
|
193
195
|
import {
|
|
194
196
|
__commonJS,
|
|
195
197
|
__name,
|
|
@@ -5529,11 +5531,11 @@ var require_liquid_node = __commonJS({
|
|
|
5529
5531
|
}
|
|
5530
5532
|
});
|
|
5531
5533
|
|
|
5532
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5534
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/cli/messenger/store-maintenance-command.js
|
|
5533
5535
|
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";
|
|
5534
5536
|
import { dirname as dirname3, resolve } from "node:path";
|
|
5535
5537
|
|
|
5536
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5538
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/sealed.js
|
|
5537
5539
|
import { createCipheriv, createDecipheriv, createHash, randomBytes, scrypt, timingSafeEqual } from "node:crypto";
|
|
5538
5540
|
import { closeSync, createReadStream, createWriteStream, existsSync, openSync, readSync, renameSync, rmSync, statSync } from "node:fs";
|
|
5539
5541
|
import { Transform } from "node:stream";
|
|
@@ -5640,7 +5642,7 @@ var unsealFile = /* @__PURE__ */ __name(async (from, to, password) => {
|
|
|
5640
5642
|
renameSync(pending, to);
|
|
5641
5643
|
}, "unsealFile");
|
|
5642
5644
|
|
|
5643
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5645
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/store/compatibility.js
|
|
5644
5646
|
var SPEAKS = MIGRATIONS.at(-1)?.version ?? 0;
|
|
5645
5647
|
var fileSchemaOf = /* @__PURE__ */ __name((database) => {
|
|
5646
5648
|
const tracked = database.prepare("SELECT 1 FROM sqlite_master WHERE name = 'schema_migrations'").get();
|
|
@@ -5664,7 +5666,7 @@ var compatibilityOf = /* @__PURE__ */ __name((file2, migrations = MIGRATIONS) =>
|
|
|
5664
5666
|
};
|
|
5665
5667
|
}, "compatibilityOf");
|
|
5666
5668
|
|
|
5667
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5669
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/store/repair.js
|
|
5668
5670
|
import { createHash as createHash2 } from "node:crypto";
|
|
5669
5671
|
var COPY_MARK = "__repair_";
|
|
5670
5672
|
var COPY_NAME = /__repair_[0-9a-f]{8}(_\d+)?$/;
|
|
@@ -5918,19 +5920,19 @@ var deleteCopy = /* @__PURE__ */ __name((database, name) => {
|
|
|
5918
5920
|
return found;
|
|
5919
5921
|
}, "deleteCopy");
|
|
5920
5922
|
|
|
5921
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5923
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/cli/store-info.js
|
|
5922
5924
|
import { existsSync as existsSync4, statSync as statSync3 } from "node:fs";
|
|
5923
5925
|
|
|
5924
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5926
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/cli/store-recover.js
|
|
5925
5927
|
import { existsSync as existsSync3 } from "node:fs";
|
|
5926
5928
|
|
|
5927
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5929
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/store/recover.js
|
|
5928
5930
|
import { execFileSync, spawn } from "node:child_process";
|
|
5929
5931
|
import { existsSync as existsSync2, readFileSync, realpathSync, renameSync as renameSync2, rmSync as rmSync2, statfsSync, statSync as statSync2, writeFileSync } from "node:fs";
|
|
5930
5932
|
import { basename, dirname, join } from "node:path";
|
|
5931
5933
|
import { Transform as Transform2 } from "node:stream";
|
|
5932
5934
|
|
|
5933
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5935
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/store/refill.js
|
|
5934
5936
|
var REFILL_MARGIN_MS = 864e5;
|
|
5935
5937
|
var TIME_KEYS = 1e12;
|
|
5936
5938
|
var integerId = `external_id GLOB '[0-9]*' AND NOT external_id GLOB '*[^0-9]*'`;
|
|
@@ -6010,7 +6012,7 @@ var forgetMail = /* @__PURE__ */ __name((database, cutoff, now) => {
|
|
|
6010
6012
|
return [...folders].map(([account, count3]) => ({ account, folders: count3 }));
|
|
6011
6013
|
}, "forgetMail");
|
|
6012
6014
|
|
|
6013
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6015
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/store/recover.js
|
|
6014
6016
|
var SQLITE3_MINIMUM = [3, 43, 0];
|
|
6015
6017
|
var STORE_PARTS = ["", "-wal", "-shm"];
|
|
6016
6018
|
var RECOVER_LOCK = ".recover-lock";
|
|
@@ -6289,6 +6291,7 @@ var FILLERS = {
|
|
|
6289
6291
|
attachment_words: /* @__PURE__ */ __name((database) => void resetAttachmentWords(database), "attachment_words"),
|
|
6290
6292
|
crm_file_words: /* @__PURE__ */ __name((database) => void resetCrmFileWords(database), "crm_file_words"),
|
|
6291
6293
|
tracker_item_words: /* @__PURE__ */ __name((database) => void resetTrackerItemWords(database), "tracker_item_words"),
|
|
6294
|
+
content_post_words: /* @__PURE__ */ __name((database) => void resetContentPostWords(database), "content_post_words"),
|
|
6292
6295
|
attachment_name_words: /* @__PURE__ */ __name((database) => (
|
|
6293
6296
|
// As migration 20 filled it: й and ё fold as the triggers fold them.
|
|
6294
6297
|
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")
|
|
@@ -6540,7 +6543,7 @@ var recoverLocked = /* @__PURE__ */ __name(async ({ path, command, version, sqli
|
|
|
6540
6543
|
}
|
|
6541
6544
|
}, "recoverLocked");
|
|
6542
6545
|
|
|
6543
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6546
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/cli/store-recover.js
|
|
6544
6547
|
var COUNTED = [
|
|
6545
6548
|
"accounts",
|
|
6546
6549
|
"chats",
|
|
@@ -6696,7 +6699,7 @@ var storeRecoverCommand = /* @__PURE__ */ __name(({ command, version }) => {
|
|
|
6696
6699
|
return recover;
|
|
6697
6700
|
}, "storeRecoverCommand");
|
|
6698
6701
|
|
|
6699
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6702
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/cli/store-info.js
|
|
6700
6703
|
var pendingIfKnown = /* @__PURE__ */ __name((database) => database.prepare("SELECT 1 FROM pragma_table_info('messages') WHERE name = 'normalized_text'").get() ? pendingNormalization(database) : null, "pendingIfKnown");
|
|
6701
6704
|
var bytesOf = /* @__PURE__ */ __name((path) => existsSync4(path) ? statSync3(path).size : 0, "bytesOf");
|
|
6702
6705
|
var messageOf = /* @__PURE__ */ __name((error) => error instanceof Error ? error.message : String(error), "messageOf");
|
|
@@ -6742,7 +6745,7 @@ var storeInfoCommand = /* @__PURE__ */ __name(() => annotate(new Command("info")
|
|
|
6742
6745
|
renderAnswer(this, outputFor(this), itemOf(answer));
|
|
6743
6746
|
}), "storeInfoCommand");
|
|
6744
6747
|
|
|
6745
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6748
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/cli/messenger/password.js
|
|
6746
6749
|
var ENCRYPT_OPTION = [
|
|
6747
6750
|
"--encrypt",
|
|
6748
6751
|
"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"
|
|
@@ -6761,7 +6764,7 @@ var passwordOf = /* @__PURE__ */ __name(async (command, { twice }) => {
|
|
|
6761
6764
|
return password;
|
|
6762
6765
|
}, "passwordOf");
|
|
6763
6766
|
|
|
6764
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6767
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/replies/rules.js
|
|
6765
6768
|
import { existsSync as existsSync5, readFileSync as readFileSync2 } from "node:fs";
|
|
6766
6769
|
import { join as join2 } from "node:path";
|
|
6767
6770
|
var REPLY_ACTIONS = ["reply", "task"];
|
|
@@ -6932,7 +6935,7 @@ var problem = /* @__PURE__ */ __name((issue) => {
|
|
|
6932
6935
|
}, "problem");
|
|
6933
6936
|
var broken = /* @__PURE__ */ __name((path, why) => new CliError("configuration_error", `the reply rules ${path} cannot be read (${why}) \u2014 fix the file`), "broken");
|
|
6934
6937
|
|
|
6935
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6938
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/replies/state.js
|
|
6936
6939
|
import { existsSync as existsSync6, readFileSync as readFileSync3 } from "node:fs";
|
|
6937
6940
|
import { join as join3 } from "node:path";
|
|
6938
6941
|
var ANSWERED_KEPT = 1e3;
|
|
@@ -6985,7 +6988,7 @@ var recordReply = /* @__PURE__ */ __name((state, rule2, message, now) => {
|
|
|
6985
6988
|
}, "recordReply");
|
|
6986
6989
|
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");
|
|
6987
6990
|
|
|
6988
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6991
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/replies/decide.js
|
|
6989
6992
|
var skip = /* @__PURE__ */ __name((why) => ({ skip: why }), "skip");
|
|
6990
6993
|
var decide = /* @__PURE__ */ __name((rule2, incoming, state, now) => {
|
|
6991
6994
|
const { message, chat, owner, sender } = incoming;
|
|
@@ -7091,10 +7094,10 @@ var filled = /* @__PURE__ */ __name((template2, senderName) => {
|
|
|
7091
7094
|
return template2.replaceAll("{firstName}", name.split(/\s+/)[0] ?? name).replaceAll("{name}", name);
|
|
7092
7095
|
}, "filled");
|
|
7093
7096
|
|
|
7094
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7097
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/replies/template.js
|
|
7095
7098
|
var import_liquidjs2 = __toESM(require_liquid_node(), 1);
|
|
7096
7099
|
|
|
7097
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7100
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/render/liquid.js
|
|
7098
7101
|
var import_liquidjs = __toESM(require_liquid_node(), 1);
|
|
7099
7102
|
var safeLiquid = /* @__PURE__ */ __name((limits) => {
|
|
7100
7103
|
const engine = new import_liquidjs.Liquid({
|
|
@@ -7121,7 +7124,7 @@ var safeLiquid = /* @__PURE__ */ __name((limits) => {
|
|
|
7121
7124
|
return engine;
|
|
7122
7125
|
}, "safeLiquid");
|
|
7123
7126
|
|
|
7124
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7127
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/replies/template.js
|
|
7125
7128
|
var TEMPLATE_LIMITS = {
|
|
7126
7129
|
parse: 32768,
|
|
7127
7130
|
renders: 2e3,
|
|
@@ -7260,7 +7263,7 @@ var renderReplyTemplate = /* @__PURE__ */ __name(async (reply, input) => {
|
|
|
7260
7263
|
}
|
|
7261
7264
|
}, "renderReplyTemplate");
|
|
7262
7265
|
|
|
7263
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7266
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/replies/dry-run.js
|
|
7264
7267
|
var DRY_RUN_DAYS = 7;
|
|
7265
7268
|
var PAGE = 500;
|
|
7266
7269
|
var dryRun = /* @__PURE__ */ __name(async (store, account, rules, { since, until = Date.now(), only, audience, render }) => {
|
|
@@ -7374,7 +7377,7 @@ var storedSince = /* @__PURE__ */ __name(async (store, account, chat, since) =>
|
|
|
7374
7377
|
}
|
|
7375
7378
|
}, "storedSince");
|
|
7376
7379
|
|
|
7377
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7380
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/models/ai.js
|
|
7378
7381
|
var AI_PROVIDERS = ["anthropic", "openai", "ollama"];
|
|
7379
7382
|
var DEFAULT_BASE_URL = {
|
|
7380
7383
|
anthropic: "https://api.anthropic.com",
|
|
@@ -7524,7 +7527,7 @@ var checkAi = /* @__PURE__ */ __name(async (deps) => {
|
|
|
7524
7527
|
}
|
|
7525
7528
|
}, "checkAi");
|
|
7526
7529
|
|
|
7527
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7530
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/models/purpose.js
|
|
7528
7531
|
var HOSTED = {
|
|
7529
7532
|
openai: "https://api.openai.com/v1",
|
|
7530
7533
|
anthropic: "https://api.anthropic.com"
|
|
@@ -7545,7 +7548,7 @@ var purposeModel = /* @__PURE__ */ __name((settings, purpose, deps) => {
|
|
|
7545
7548
|
return shared ? { target: shared.target, key: /* @__PURE__ */ __name(() => shared.key, "key"), shared: shared.setting } : void 0;
|
|
7546
7549
|
}, "purposeModel");
|
|
7547
7550
|
|
|
7548
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7551
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/replies/consents.js
|
|
7549
7552
|
import { existsSync as existsSync7, readFileSync as readFileSync4 } from "node:fs";
|
|
7550
7553
|
import { join as join4 } from "node:path";
|
|
7551
7554
|
var shape = strictObject({
|
|
@@ -7570,7 +7573,7 @@ var mayModelReply = /* @__PURE__ */ __name((path, provider, chat) => {
|
|
|
7570
7573
|
return consent.provider === provider && !consent.deniedChats.includes(chat);
|
|
7571
7574
|
}, "mayModelReply");
|
|
7572
7575
|
|
|
7573
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7576
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/replies/rendering.js
|
|
7574
7577
|
var replyRenderer = /* @__PURE__ */ __name((app, profile, settings, env, warn, options = {
|
|
7575
7578
|
ai: true
|
|
7576
7579
|
}) => async (rule2, message, chat, now) => {
|
|
@@ -7618,7 +7621,7 @@ var replyRenderer = /* @__PURE__ */ __name((app, profile, settings, env, warn, o
|
|
|
7618
7621
|
return result2;
|
|
7619
7622
|
}, "replyRenderer");
|
|
7620
7623
|
|
|
7621
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7624
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/replies/serve.js
|
|
7622
7625
|
var NOT_ALLOWED = "replies.send is not allow";
|
|
7623
7626
|
var NO_RULES = "no rules";
|
|
7624
7627
|
var ONLY_TASK = "opened a task, sent nothing";
|
|
@@ -7711,7 +7714,7 @@ var replyTo = /* @__PURE__ */ __name(async (deps, message) => {
|
|
|
7711
7714
|
return { skip: why };
|
|
7712
7715
|
}, "replyTo");
|
|
7713
7716
|
|
|
7714
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7717
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-catch-up.js
|
|
7715
7718
|
var START_SYNC_DELAY_MS = 3e4;
|
|
7716
7719
|
var START_SYNC_BUDGET_MS = 5 * 6e4;
|
|
7717
7720
|
var START_SYNC_WINDOW_MS = 7 * 864e5;
|
|
@@ -7788,7 +7791,7 @@ var startSync = /* @__PURE__ */ __name(({ chats, newestHeld, fetch, note, warn,
|
|
|
7788
7791
|
};
|
|
7789
7792
|
}, "startSync");
|
|
7790
7793
|
|
|
7791
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7794
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-members.js
|
|
7792
7795
|
var FIRST_FETCH_MS = 6e4;
|
|
7793
7796
|
var DAY_MS = 864e5;
|
|
7794
7797
|
var memberFetches = /* @__PURE__ */ __name(({ withStore, fetch, warn, firstMs = FIRST_FETCH_MS, everyMs = DAY_MS }) => {
|
|
@@ -7842,7 +7845,7 @@ var memberFetches = /* @__PURE__ */ __name(({ withStore, fetch, warn, firstMs =
|
|
|
7842
7845
|
};
|
|
7843
7846
|
}, "memberFetches");
|
|
7844
7847
|
|
|
7845
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7848
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-notice.js
|
|
7846
7849
|
var record2 = /* @__PURE__ */ __name((context, app, severity, attributes) => recordLogFor(context.streams.diagnostic, app, { command: currentRun().command || "serve" })[severity](attributes), "record");
|
|
7847
7850
|
var noticeFor = /* @__PURE__ */ __name((context, app, severity = "warn") => ({ text, ...attributes }) => {
|
|
7848
7851
|
if (context.format === "pretty") {
|
|
@@ -7875,7 +7878,7 @@ var recordDiagnostics = /* @__PURE__ */ __name((context, app) => {
|
|
|
7875
7878
|
return context;
|
|
7876
7879
|
}, "recordDiagnostics");
|
|
7877
7880
|
|
|
7878
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7881
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-outdated.js
|
|
7879
7882
|
import { existsSync as existsSync8, readFileSync as readFileSync5, realpathSync as realpathSync2 } from "node:fs";
|
|
7880
7883
|
import { dirname as dirname2, join as join5 } from "node:path";
|
|
7881
7884
|
var OUTDATED_CHECK_MS = 6e4;
|
|
@@ -7961,7 +7964,7 @@ var watchOutdated = /* @__PURE__ */ __name(({ check: check2, onOutdated, everyMs
|
|
|
7961
7964
|
};
|
|
7962
7965
|
}, "watchOutdated");
|
|
7963
7966
|
|
|
7964
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7967
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-stems.js
|
|
7965
7968
|
var STEMS_EVERY_MS = 3e4;
|
|
7966
7969
|
var STEMS_SLICE_MS = 2e3;
|
|
7967
7970
|
var stemFills = /* @__PURE__ */ __name(({ withStore, warn, everyMs = STEMS_EVERY_MS, sliceMs = STEMS_SLICE_MS }) => {
|
|
@@ -8001,7 +8004,7 @@ var stemFills = /* @__PURE__ */ __name(({ withStore, warn, everyMs = STEMS_EVERY
|
|
|
8001
8004
|
};
|
|
8002
8005
|
}, "stemFills");
|
|
8003
8006
|
|
|
8004
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8007
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/cli/messenger/message-items.js
|
|
8005
8008
|
var defined = /* @__PURE__ */ __name((value) => Object.fromEntries(Object.entries(value).filter(([, one]) => one !== void 0)), "defined");
|
|
8006
8009
|
var attachmentItem = /* @__PURE__ */ __name((attachment) => defined({
|
|
8007
8010
|
kind: attachment.kind,
|
|
@@ -8097,7 +8100,7 @@ var viewOf = /* @__PURE__ */ __name((context, messenger) => ({
|
|
|
8097
8100
|
locale: messenger.app.locale
|
|
8098
8101
|
}), "viewOf");
|
|
8099
8102
|
|
|
8100
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8103
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/cli/messenger/watch-answers.js
|
|
8101
8104
|
var observed = /* @__PURE__ */ __name((value) => ({
|
|
8102
8105
|
value: value.value,
|
|
8103
8106
|
observed_at: value.observedAt,
|
|
@@ -8164,7 +8167,7 @@ var watchEventItem = /* @__PURE__ */ __name((value, account) => {
|
|
|
8164
8167
|
}
|
|
8165
8168
|
}, "watchEventItem");
|
|
8166
8169
|
|
|
8167
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8170
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/cli/messenger/watch-command.js
|
|
8168
8171
|
var watchCommand = /* @__PURE__ */ __name((messenger) => annotate(new Command("watch"), {
|
|
8169
8172
|
output: { entity: "watch_item" },
|
|
8170
8173
|
effects: REMOTE_READ,
|
|
@@ -8319,7 +8322,8 @@ var describe = /* @__PURE__ */ __name((event, render) => {
|
|
|
8319
8322
|
}
|
|
8320
8323
|
}, "describe");
|
|
8321
8324
|
|
|
8322
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8325
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-command.js
|
|
8326
|
+
var CURRENT_EVERY_MS = 6e4;
|
|
8323
8327
|
var serveCommand = /* @__PURE__ */ __name((messenger) => {
|
|
8324
8328
|
const command = annotate(new Command("serve"), {
|
|
8325
8329
|
output: { entity: "serve_summary" },
|
|
@@ -8342,9 +8346,18 @@ var serveCommand = /* @__PURE__ */ __name((messenger) => {
|
|
|
8342
8346
|
throw new CliError("validation_error", `${messenger.app.command} serve is already running for profile ${context.profile} (PID ${held.pid}, since ${held.startedAt})`);
|
|
8343
8347
|
}
|
|
8344
8348
|
let relaying;
|
|
8349
|
+
let current;
|
|
8350
|
+
const stamp = /* @__PURE__ */ __name(() => {
|
|
8351
|
+
try {
|
|
8352
|
+
markCurrent(path);
|
|
8353
|
+
} catch {
|
|
8354
|
+
}
|
|
8355
|
+
}, "stamp");
|
|
8345
8356
|
const onReady = /* @__PURE__ */ __name(() => {
|
|
8346
8357
|
const listening2 = { pid: process.pid, startedAt, version, listeningAt: (/* @__PURE__ */ new Date()).toISOString() };
|
|
8347
8358
|
holdLock(path, listening2);
|
|
8359
|
+
stamp();
|
|
8360
|
+
current ??= setInterval(stamp, CURRENT_EVERY_MS).unref();
|
|
8348
8361
|
note({
|
|
8349
8362
|
code: "listening",
|
|
8350
8363
|
text: `listening for profile ${context.profile}, catching up on what arrived while it was down`
|
|
@@ -8465,6 +8478,10 @@ var serveCommand = /* @__PURE__ */ __name((messenger) => {
|
|
|
8465
8478
|
}, "connected")
|
|
8466
8479
|
});
|
|
8467
8480
|
} finally {
|
|
8481
|
+
if (current) {
|
|
8482
|
+
clearInterval(current);
|
|
8483
|
+
stamp();
|
|
8484
|
+
}
|
|
8468
8485
|
watch.stop();
|
|
8469
8486
|
await relaying;
|
|
8470
8487
|
await relay?.close();
|
|
@@ -8605,7 +8622,7 @@ var tasking = /* @__PURE__ */ __name((context, warn) => {
|
|
|
8605
8622
|
};
|
|
8606
8623
|
}, "tasking");
|
|
8607
8624
|
|
|
8608
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8625
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/cli/messenger/store-tables-command.js
|
|
8609
8626
|
import { existsSync as existsSync9 } from "node:fs";
|
|
8610
8627
|
var PATH = "store tables list";
|
|
8611
8628
|
var STORE_TABLES_QUERY = {
|
|
@@ -8648,7 +8665,7 @@ var storeTablesCommand = /* @__PURE__ */ __name((owner) => {
|
|
|
8648
8665
|
return tables;
|
|
8649
8666
|
}, "storeTablesCommand");
|
|
8650
8667
|
|
|
8651
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8668
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/cli/messenger/store-maintenance-command.js
|
|
8652
8669
|
var SEARCH_INDEXES = ["messages_fts", "chats_fts", "identities_fts"];
|
|
8653
8670
|
var WORD_INDEX = "message_words";
|
|
8654
8671
|
var schemaOf = /* @__PURE__ */ __name((database) => {
|
|
@@ -8892,7 +8909,8 @@ var inspect = /* @__PURE__ */ __name((path) => reading(path, (database) => {
|
|
|
8892
8909
|
...stems ? [["message_stems", indexIntegrity(database, "message_stems", 0)]] : [],
|
|
8893
8910
|
...schema.version > 0 ? [["attachment_words", indexIntegrity(database, "attachment_words", 0)]] : [],
|
|
8894
8911
|
...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)]] : []
|
|
8912
|
+
...schema.version >= 70 ? [["tracker_item_words", indexIntegrity(database, "tracker_item_words", 0)]] : [],
|
|
8913
|
+
...schema.version >= 71 ? [["content_post_words", indexIntegrity(database, "content_post_words", 0)]] : []
|
|
8896
8914
|
]);
|
|
8897
8915
|
const size = bytesOf2(path) + bytesOf2(`${path}-wal`);
|
|
8898
8916
|
const { bavail, bsize } = statfsSync2(dirname3(path));
|
|
@@ -9060,7 +9078,7 @@ var reindexCommand = /* @__PURE__ */ __name((owner) => destroysNothing(annotate(
|
|
|
9060
9078
|
throw new CliError("validation_error", `the store is behind this build \u2014 \`${lineOf(this, "store migrate")}\` first`);
|
|
9061
9079
|
}
|
|
9062
9080
|
resetSearchIndex(database);
|
|
9063
|
-
const fileTexts = resetAttachmentWords(database) + resetCrmFileWords(database) + resetTrackerItemWords(database);
|
|
9081
|
+
const fileTexts = resetAttachmentWords(database) + resetCrmFileWords(database) + resetTrackerItemWords(database) + resetContentPostWords(database);
|
|
9064
9082
|
const words = buildWordIndex(database, (note) => renderer.note(note));
|
|
9065
9083
|
return {
|
|
9066
9084
|
path,
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
__name
|
|
5
5
|
} from "./chunk-ZVVMGPBJ.js";
|
|
6
6
|
|
|
7
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/cli/stdin-field.js
|
|
8
8
|
var fields = /* @__PURE__ */ new WeakMap();
|
|
9
9
|
var readsStdin = /* @__PURE__ */ __name((command, field) => {
|
|
10
10
|
fields.set(command, field);
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
__name
|
|
5
5
|
} from "./chunk-ZVVMGPBJ.js";
|
|
6
6
|
|
|
7
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/mcp/instructions.js
|
|
8
8
|
var instructions = /* @__PURE__ */ __name(({ command, name, profile, writes, skill }) => {
|
|
9
9
|
const all = typeof profile !== "string";
|
|
10
10
|
const offers = /* @__PURE__ */ __name((key) => all || writes.includes(key), "offers");
|