@wirecat/hubspot-cli 0.5.0 → 0.6.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 +28 -0
- package/README.md +73 -52
- package/contracts/wirecat.json +39 -13
- package/dist/bin/hubspot.js +2 -2
- package/dist/bundle/agent-XB35QVOK.js +40 -0
- package/dist/bundle/{all-profiles-PGFXLOKN.js → all-profiles-HFVXPMF6.js} +11 -11
- package/dist/bundle/{anthropic-LPOJ3TYF.js → anthropic-VE6WR6IN.js} +5 -5
- package/dist/bundle/{app-server-EYWGCSRY.js → app-server-GZ4DCQK7.js} +68 -68
- package/dist/bundle/{bun-ZJOOKIIW.js → bun-2DHMKD34.js} +2 -2
- package/dist/bundle/{bun-sqlite-Y6KKH2OW.js → bun-sqlite-T5XTYL7L.js} +6 -6
- package/dist/bundle/{chunk-WQZENAPE.js → chunk-24HPBWKZ.js} +63 -4
- package/dist/bundle/{chunk-STTHRJBX.js → chunk-2I2KBCS6.js} +5 -5
- package/dist/bundle/{chunk-AIQT2GGK.js → chunk-2K5BAY32.js} +19 -19
- package/dist/bundle/{chunk-WEM4FZPM.js → chunk-2VUIJ5XB.js} +2 -2
- package/dist/bundle/{chunk-KRTXJMCD.js → chunk-3HS7JTPI.js} +27 -177
- package/dist/bundle/{chunk-BCW7DAVV.js → chunk-3TLNO3VM.js} +2 -2
- package/dist/bundle/{chunk-AVBKXCEY.js → chunk-3W5R3XAH.js} +8 -8
- package/dist/bundle/{chunk-QDNYJOWJ.js → chunk-3WG4MTQI.js} +1 -1
- package/dist/bundle/{chunk-HPRGUUHY.js → chunk-3YTTWJKL.js} +1 -1
- package/dist/bundle/{chunk-ZKPM53YG.js → chunk-4UEYVM46.js} +4 -4
- package/dist/bundle/{chunk-NKIKMG33.js → chunk-5ILCAAY4.js} +35 -35
- package/dist/bundle/{chunk-34HDRZIL.js → chunk-5IPB5WLB.js} +12 -12
- package/dist/bundle/{chunk-QPTHEZZ5.js → chunk-5NIIXJV3.js} +2 -2
- package/dist/bundle/{chunk-MPNMEWHA.js → chunk-5O5WYSSO.js} +1900 -650
- package/dist/bundle/{chunk-MPQ4SPZG.js → chunk-5VTKBGPW.js} +74 -31
- package/dist/bundle/{chunk-QIHJKE4K.js → chunk-5WDNG4QE.js} +7 -7
- package/dist/bundle/{chunk-OFOA6VJ2.js → chunk-67YPTVGP.js} +3 -3
- package/dist/bundle/{chunk-DEUCWBBH.js → chunk-6DABKZYH.js} +70 -11
- package/dist/bundle/{chunk-VIJV474N.js → chunk-745FMNI5.js} +1 -1
- package/dist/bundle/{chunk-KXWRVLSU.js → chunk-AKSWXRIU.js} +1 -1
- package/dist/bundle/{chunk-PMGAU6AP.js → chunk-AP3CWDRK.js} +2 -2
- package/dist/bundle/{chunk-5UPNDUAA.js → chunk-BM5F2ZNI.js} +2 -2
- package/dist/bundle/{chunk-EPBHJMF6.js → chunk-BU5CEMUH.js} +13 -13
- package/dist/bundle/{chunk-6PWRJGX4.js → chunk-CTN4DW2F.js} +4 -4
- package/dist/bundle/{chunk-CWCJEAHZ.js → chunk-CU76ZACK.js} +3 -3
- package/dist/bundle/{chunk-4RZ4DUQT.js → chunk-DIKUPU3T.js} +3 -3
- package/dist/bundle/{chunk-POTS24SH.js → chunk-E27NRLJZ.js} +18 -18
- package/dist/bundle/{chunk-BH5FEFZB.js → chunk-EB53G4HO.js} +2 -2
- package/dist/bundle/{chunk-DJUUQG6Y.js → chunk-EJZIEBAR.js} +8 -8
- package/dist/bundle/{chunk-BW7NPFVC.js → chunk-G6LDK6DJ.js} +7 -7
- package/dist/bundle/{chunk-V5VMAHDQ.js → chunk-GEJI27GN.js} +6 -6
- package/dist/bundle/{chunk-YQBGPBYN.js → chunk-GHXTNKX2.js} +2 -2
- package/dist/bundle/{chunk-5HGS65I3.js → chunk-GR4HZBWO.js} +2 -2
- package/dist/bundle/{chunk-I334AT2H.js → chunk-GWXTVO43.js} +7 -7
- package/dist/bundle/{chunk-Z7FC6VVM.js → chunk-H4W2OO35.js} +1 -1
- package/dist/bundle/{chunk-KAW5VEER.js → chunk-H5HBZCEJ.js} +8 -8
- package/dist/bundle/{chunk-VCYUYFIV.js → chunk-HX2BE7DO.js} +1 -1
- package/dist/bundle/{chunk-3CHJYWA2.js → chunk-HYDXA624.js} +6 -6
- package/dist/bundle/{chunk-DDMBPYHP.js → chunk-HZIGGAC7.js} +2 -2
- package/dist/bundle/{chunk-RJBKDZGV.js → chunk-I75ON7VM.js} +8 -8
- package/dist/bundle/{chunk-ODRF47VS.js → chunk-ID4GJFE7.js} +8 -8
- package/dist/bundle/{chunk-LWS5AO3H.js → chunk-J2SCELII.js} +16 -16
- package/dist/bundle/{chunk-R7ZOCDNG.js → chunk-J4FXBF44.js} +1 -1
- package/dist/bundle/{chunk-QCHW7R7L.js → chunk-J76CMNWQ.js} +1 -1
- package/dist/bundle/{chunk-AHZQMSXW.js → chunk-JDCFHZNU.js} +8 -8
- package/dist/bundle/{chunk-K3WCBNH4.js → chunk-JFLKTYH5.js} +6 -6
- package/dist/bundle/{chunk-5WADRBQG.js → chunk-K4Y2ZWOO.js} +3 -3
- package/dist/bundle/{chunk-PPQRWFJZ.js → chunk-KDW7B7AR.js} +5 -5
- package/dist/bundle/{chunk-YZ5MULJM.js → chunk-KKMOKSS5.js} +3 -3
- package/dist/bundle/{chunk-MFWECOO3.js → chunk-LHY5XGIR.js} +59 -59
- package/dist/bundle/{chunk-MW4ROXQ6.js → chunk-LTU4BQ4S.js} +3 -3
- package/dist/bundle/{chunk-A5UTNGI4.js → chunk-M3LRSN6J.js} +13 -13
- package/dist/bundle/{chunk-RZS7N3OZ.js → chunk-MJ24YFXZ.js} +7 -7
- package/dist/bundle/{chunk-HBFSGL5E.js → chunk-MSQGZHKM.js} +32 -28
- package/dist/bundle/{chunk-OCISQFMW.js → chunk-NQOQG7L3.js} +1 -1
- package/dist/bundle/{chunk-QLFD3MOL.js → chunk-PDVMYIBP.js} +1492 -733
- package/dist/bundle/{chunk-NEDV6RCQ.js → chunk-PR7ZDMGF.js} +3 -3
- package/dist/bundle/{chunk-L6WSFVTD.js → chunk-PZ3QJDTD.js} +5 -5
- package/dist/bundle/{chunk-LXLXF2OE.js → chunk-Q6AC7WLD.js} +3 -3
- package/dist/bundle/{chunk-WXEN6AXQ.js → chunk-QH47G73D.js} +3 -3
- package/dist/bundle/{chunk-23CLSKY7.js → chunk-QK5HQUHB.js} +3 -3
- package/dist/bundle/{chunk-KC4ILAKO.js → chunk-R26OEZOL.js} +1 -1
- package/dist/bundle/{chunk-NLPGUYCG.js → chunk-RLK2EGQD.js} +21 -15
- package/dist/bundle/{chunk-SBNZYRVZ.js → chunk-RLNPTES2.js} +4 -4
- package/dist/bundle/{chunk-K5S7MKBB.js → chunk-T4MZJMEJ.js} +17 -17
- package/dist/bundle/{chunk-MGMLSPIY.js → chunk-TAPQZYXY.js} +1 -1
- package/dist/bundle/{chunk-HPSESLOZ.js → chunk-TCSVW7BA.js} +1 -1
- package/dist/bundle/{chunk-7Q64D56R.js → chunk-THGAVPRA.js} +11 -11
- package/dist/bundle/{chunk-BVK4GUUI.js → chunk-TRLV5NWZ.js} +1706 -1820
- package/dist/bundle/{chunk-WDR77HPO.js → chunk-TT75CEYZ.js} +8 -1
- package/dist/bundle/{chunk-L4SVHQ7H.js → chunk-TXO4CJW3.js} +7 -7
- package/dist/bundle/{chunk-MKBQFD37.js → chunk-UCGZRZJA.js} +1 -1
- package/dist/bundle/{chunk-5ENY4POG.js → chunk-UVGJL753.js} +61 -61
- package/dist/bundle/{chunk-GZJP3KQQ.js → chunk-UZ2CL435.js} +1 -1
- package/dist/bundle/{chunk-YJLJZMEA.js → chunk-V7N2K5OT.js} +33 -30
- package/dist/bundle/{chunk-MENMD5Y5.js → chunk-VR2CJFVL.js} +8 -8
- package/dist/bundle/{chunk-EGR3YUWD.js → chunk-WASBOYI2.js} +4 -4
- package/dist/bundle/{chunk-NEP67GLY.js → chunk-WE4JSHIG.js} +6 -6
- package/dist/bundle/{chunk-ABPZOI3C.js → chunk-X2QRCFGJ.js} +4 -4
- package/dist/bundle/{chunk-ZLWQPUPB.js → chunk-XRFYVVFU.js} +2 -2
- package/dist/bundle/{chunk-6S422S22.js → chunk-YDG5FIQB.js} +7 -9
- package/dist/bundle/{chunk-ZMHD76RE.js → chunk-YIH2A2PQ.js} +2 -2
- package/dist/bundle/{chunk-7RIE3DAW.js → chunk-ZERQSELP.js} +189 -158
- package/dist/bundle/{chunk-BGUGTMTS.js → chunk-ZKTYTOF4.js} +8 -8
- package/dist/bundle/command-contract-5FXCYQUS.js +40 -0
- package/dist/bundle/{command-server-entry-B7S5AUE6.js → command-server-entry-H6IAJNOF.js} +28 -28
- package/dist/bundle/{decode-7L33C5UJ.js → decode-TR2EC46M.js} +5 -5
- package/dist/bundle/{dispatch-BIGHHSXV.js → dispatch-B2EP6DDT.js} +8 -8
- package/dist/bundle/{echarts-CWR3QH55.js → echarts-7OP7I5B2.js} +2 -2
- package/dist/bundle/{embed-GXQ3HOQ6.js → embed-FLGS4LN7.js} +6 -6
- package/dist/bundle/{embedder-47OYXGLS.js → embedder-JIXQXCP3.js} +9 -9
- package/dist/bundle/{failure-VMZOU5GZ.js → failure-AOACEURF.js} +2 -2
- package/dist/bundle/{first-run-YVQQOUQG.js → first-run-XJ2NWIK2.js} +12 -12
- package/dist/bundle/first-screen-U73G5CMM.js +40 -0
- package/dist/bundle/hubspot.js +27 -27
- package/dist/bundle/{instructions-QFS2MPK3.js → instructions-PYCYV6QE.js} +1 -1
- package/dist/bundle/{mcp-Z2KZNCXB.js → mcp-ZNULRPZ4.js} +2 -2
- package/dist/bundle/meeting-combined-IHTM5H5B.js +25 -0
- package/dist/bundle/{meeting-model-GLF2HVJG.js → meeting-model-2PA5WJY5.js} +11 -11
- package/dist/bundle/{meeting-semantic-RG56F4YX.js → meeting-semantic-5IH63QFV.js} +6 -6
- package/dist/bundle/{node-3TSWTXGI.js → node-6GTNIVBM.js} +2 -2
- package/dist/bundle/{node-sqlite-UPQCG7DJ.js → node-sqlite-FBCEHPNT.js} +7 -7
- package/dist/bundle/{oauth-MCVEENW3.js → oauth-BFP4SCL5.js} +7 -7
- package/dist/bundle/{open-JMUTKUYJ.js → open-MLU4MHGO.js} +5 -5
- package/dist/bundle/{openai-HT7YDOK7.js → openai-R7WJI6SO.js} +15 -15
- package/dist/bundle/{process-7RC6DAGM.js → process-NMNQLJHZ.js} +1 -1
- package/dist/bundle/{program-3DLBMOEJ.js → program-Z735HPFG.js} +474 -320
- package/dist/bundle/{prompt-7EROPXPF.js → prompt-A6RM55Q4.js} +5 -5
- package/dist/bundle/{recognize-B232GXD2.js → recognize-ORRDV45M.js} +4 -4
- package/dist/bundle/{remote-HGV64VRC.js → remote-UF3WSC4X.js} +9 -9
- package/dist/bundle/{rerank-5S6TDXHD.js → rerank-ZSJORUGH.js} +7 -7
- package/dist/bundle/{schemas-SB42IXEX.js → schemas-EXBNVPMI.js} +1 -1
- package/dist/bundle/{serve-D2WFCV6Z.js → serve-4KBJ6SIA.js} +9 -9
- package/dist/bundle/{server-4AXPTJPV.js → server-IFK4S6LJ.js} +60 -60
- package/dist/bundle/server-MNUAZWTN.js +86 -0
- package/dist/bundle/source-PBCQAG4C.js +426 -0
- package/dist/bundle/{sqlite-runtime-DAFMZNLI.js → sqlite-runtime-XPDUWOPG.js} +6 -6
- package/dist/bundle/{state-7OEBDXVV.js → state-4M26H7NL.js} +6 -6
- package/dist/bundle/{store-2ZWSWF76.js → store-3W4ZOOIB.js} +28 -24
- package/dist/bundle/store-CDY2PW6J.js +34 -0
- package/dist/bundle/{store-KC6US326.js → store-ICTY3RIF.js} +22 -22
- package/dist/bundle/store-maintenance-command-Y7TC3I43.js +73 -0
- package/dist/bundle/surface-4LNDJZD2.js +72 -0
- package/dist/bundle/writer-WGHWQTC2.js +86 -0
- package/dist/commands/account.d.ts +3 -2
- package/dist/commands/account.d.ts.map +1 -1
- package/dist/commands/account.js +31 -78
- package/dist/commands/account.js.map +1 -1
- package/dist/commands/crm-shared.d.ts.map +1 -1
- package/dist/commands/crm-shared.js +2 -0
- package/dist/commands/crm-shared.js.map +1 -1
- package/dist/commands/session.d.ts +0 -3
- package/dist/commands/session.d.ts.map +1 -1
- package/dist/commands/session.js +4 -31
- package/dist/commands/session.js.map +1 -1
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +16 -10
- package/dist/config.js.map +1 -1
- package/dist/crm/activities.d.ts +6 -1
- package/dist/crm/activities.d.ts.map +1 -1
- package/dist/crm/activities.js +36 -0
- package/dist/crm/activities.js.map +1 -1
- package/dist/crm/writer.d.ts +1 -1
- package/dist/crm/writer.d.ts.map +1 -1
- package/dist/crm/writer.js +69 -1
- package/dist/crm/writer.js.map +1 -1
- package/dist/program.d.ts.map +1 -1
- package/dist/program.js +0 -2
- package/dist/program.js.map +1 -1
- package/dist/reasons.d.ts.map +1 -1
- package/dist/reasons.js +0 -2
- package/dist/reasons.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +3 -3
- package/skills/hubspot-cli/SKILL.md +10 -5
- package/skills/hubspot-cli/references/api/api-basic.md +2 -2
- package/skills/hubspot-cli/references/api/api-batch.md +2 -2
- package/dist/bundle/agent-RBQMA24N.js +0 -40
- package/dist/bundle/command-contract-O2UKYHLD.js +0 -40
- package/dist/bundle/first-screen-TU3KE2B5.js +0 -40
- package/dist/bundle/meeting-combined-WBEOLQMP.js +0 -25
- package/dist/bundle/server-FFHVNABP.js +0 -86
- package/dist/bundle/source-DF63EC2B.js +0 -945
- package/dist/bundle/store-Q3ZKD4FJ.js +0 -34
- package/dist/bundle/store-maintenance-command-24A4GBRP.js +0 -73
- package/dist/bundle/surface-SPTM57EP.js +0 -72
- package/dist/bundle/writer-EQQ55HOS.js +0 -86
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { createRequire as __bundleRequire } from "node:module";
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
|
-
answerOf,
|
|
5
4
|
messengerContext
|
|
6
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-3HS7JTPI.js";
|
|
7
6
|
import {
|
|
8
7
|
chatEventAnswer,
|
|
9
8
|
memberAnswer,
|
|
10
9
|
pollVoteAnswer
|
|
11
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-VR2CJFVL.js";
|
|
12
11
|
import {
|
|
13
12
|
serveRelay
|
|
14
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-KDW7B7AR.js";
|
|
15
14
|
import {
|
|
16
15
|
FETCHING,
|
|
17
16
|
RULES_VERSION,
|
|
17
|
+
answerOf,
|
|
18
18
|
applyTaskRulesOnArrival,
|
|
19
19
|
embeddingKeys,
|
|
20
20
|
endpointKeyName,
|
|
@@ -28,13 +28,13 @@ import {
|
|
|
28
28
|
servicesFor,
|
|
29
29
|
syncsOneChat,
|
|
30
30
|
withTimeLimit
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-5O5WYSSO.js";
|
|
32
32
|
import {
|
|
33
33
|
capability,
|
|
34
34
|
queryTerms,
|
|
35
35
|
typedQuery,
|
|
36
36
|
withQuery
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-BU5CEMUH.js";
|
|
38
38
|
import {
|
|
39
39
|
holdLock,
|
|
40
40
|
lockPath,
|
|
@@ -42,7 +42,7 @@ import {
|
|
|
42
42
|
releaseLock,
|
|
43
43
|
servingProfiles,
|
|
44
44
|
takeLock
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-QH47G73D.js";
|
|
46
46
|
import {
|
|
47
47
|
Command,
|
|
48
48
|
LOCAL_READ,
|
|
@@ -69,10 +69,10 @@ import {
|
|
|
69
69
|
snakeKeys,
|
|
70
70
|
storeTable,
|
|
71
71
|
withoutProviderRefs
|
|
72
|
-
} from "./chunk-
|
|
72
|
+
} from "./chunk-ZERQSELP.js";
|
|
73
73
|
import {
|
|
74
74
|
holdersOf
|
|
75
|
-
} from "./chunk-
|
|
75
|
+
} from "./chunk-J4FXBF44.js";
|
|
76
76
|
import {
|
|
77
77
|
QUICK_HEALTH_CHECKS,
|
|
78
78
|
fts5Tables,
|
|
@@ -80,7 +80,7 @@ import {
|
|
|
80
80
|
lossUnknown,
|
|
81
81
|
storeDamageReport,
|
|
82
82
|
storeHealth
|
|
83
|
-
} from "./chunk-
|
|
83
|
+
} from "./chunk-T4MZJMEJ.js";
|
|
84
84
|
import {
|
|
85
85
|
CORPORA,
|
|
86
86
|
MIGRATIONS,
|
|
@@ -118,55 +118,55 @@ import {
|
|
|
118
118
|
storeClients,
|
|
119
119
|
storeContents,
|
|
120
120
|
vectorIndexCounts
|
|
121
|
-
} from "./chunk-
|
|
121
|
+
} from "./chunk-PDVMYIBP.js";
|
|
122
122
|
import {
|
|
123
123
|
currentRun,
|
|
124
124
|
readDamageMark,
|
|
125
125
|
readHealthMark,
|
|
126
126
|
readJournalMark,
|
|
127
127
|
recordDeepCheck
|
|
128
|
-
} from "./chunk-
|
|
128
|
+
} from "./chunk-V7N2K5OT.js";
|
|
129
129
|
import {
|
|
130
130
|
failureKey,
|
|
131
131
|
isStoreDamage
|
|
132
|
-
} from "./chunk-
|
|
132
|
+
} from "./chunk-HZIGGAC7.js";
|
|
133
133
|
import {
|
|
134
134
|
modelAddressAllowed,
|
|
135
135
|
onThisComputer
|
|
136
|
-
} from "./chunk-
|
|
136
|
+
} from "./chunk-5WDNG4QE.js";
|
|
137
137
|
import {
|
|
138
138
|
renderMessages
|
|
139
|
-
} from "./chunk-
|
|
139
|
+
} from "./chunk-3TLNO3VM.js";
|
|
140
140
|
import {
|
|
141
141
|
levelFor
|
|
142
|
-
} from "./chunk-
|
|
142
|
+
} from "./chunk-G6LDK6DJ.js";
|
|
143
143
|
import {
|
|
144
144
|
formatLocator,
|
|
145
145
|
parseLocator
|
|
146
|
-
} from "./chunk-
|
|
146
|
+
} from "./chunk-RLK2EGQD.js";
|
|
147
147
|
import {
|
|
148
148
|
queryFieldsOf
|
|
149
|
-
} from "./chunk-
|
|
149
|
+
} from "./chunk-UVGJL753.js";
|
|
150
150
|
import {
|
|
151
151
|
readSharedSection,
|
|
152
152
|
sharedConfigPath,
|
|
153
153
|
writeSharedSection
|
|
154
|
-
} from "./chunk-
|
|
154
|
+
} from "./chunk-MJ24YFXZ.js";
|
|
155
155
|
import {
|
|
156
156
|
readSecret
|
|
157
|
-
} from "./chunk-
|
|
157
|
+
} from "./chunk-LTU4BQ4S.js";
|
|
158
158
|
import {
|
|
159
159
|
storePath
|
|
160
|
-
} from "./chunk-
|
|
160
|
+
} from "./chunk-2VUIJ5XB.js";
|
|
161
161
|
import {
|
|
162
162
|
openCache
|
|
163
|
-
} from "./chunk-
|
|
163
|
+
} from "./chunk-HYDXA624.js";
|
|
164
164
|
import {
|
|
165
165
|
Credentials,
|
|
166
166
|
isMovedRun,
|
|
167
167
|
resolvePaths,
|
|
168
168
|
writeSecurely
|
|
169
|
-
} from "./chunk-
|
|
169
|
+
} from "./chunk-2K5BAY32.js";
|
|
170
170
|
import {
|
|
171
171
|
array,
|
|
172
172
|
boolean,
|
|
@@ -191,7 +191,7 @@ import {
|
|
|
191
191
|
} from "./chunk-S4UUN6LD.js";
|
|
192
192
|
import {
|
|
193
193
|
CliError
|
|
194
|
-
} from "./chunk-
|
|
194
|
+
} from "./chunk-AP3CWDRK.js";
|
|
195
195
|
import {
|
|
196
196
|
__commonJS,
|
|
197
197
|
__name,
|
|
@@ -5531,11 +5531,11 @@ var require_liquid_node = __commonJS({
|
|
|
5531
5531
|
}
|
|
5532
5532
|
});
|
|
5533
5533
|
|
|
5534
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5534
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/cli/messenger/store-maintenance-command.js
|
|
5535
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";
|
|
5536
5536
|
import { dirname as dirname3, resolve } from "node:path";
|
|
5537
5537
|
|
|
5538
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5538
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/sealed.js
|
|
5539
5539
|
import { createCipheriv, createDecipheriv, createHash, randomBytes, scrypt, timingSafeEqual } from "node:crypto";
|
|
5540
5540
|
import { closeSync, createReadStream, createWriteStream, existsSync, openSync, readSync, renameSync, rmSync, statSync } from "node:fs";
|
|
5541
5541
|
import { Transform } from "node:stream";
|
|
@@ -5642,7 +5642,7 @@ var unsealFile = /* @__PURE__ */ __name(async (from, to, password) => {
|
|
|
5642
5642
|
renameSync(pending, to);
|
|
5643
5643
|
}, "unsealFile");
|
|
5644
5644
|
|
|
5645
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5645
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/store/compatibility.js
|
|
5646
5646
|
var SPEAKS = MIGRATIONS.at(-1)?.version ?? 0;
|
|
5647
5647
|
var fileSchemaOf = /* @__PURE__ */ __name((database) => {
|
|
5648
5648
|
const tracked = database.prepare("SELECT 1 FROM sqlite_master WHERE name = 'schema_migrations'").get();
|
|
@@ -5666,7 +5666,7 @@ var compatibilityOf = /* @__PURE__ */ __name((file2, migrations = MIGRATIONS) =>
|
|
|
5666
5666
|
};
|
|
5667
5667
|
}, "compatibilityOf");
|
|
5668
5668
|
|
|
5669
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5669
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/store/repair.js
|
|
5670
5670
|
import { createHash as createHash2 } from "node:crypto";
|
|
5671
5671
|
var COPY_MARK = "__repair_";
|
|
5672
5672
|
var COPY_NAME = /__repair_[0-9a-f]{8}(_\d+)?$/;
|
|
@@ -5920,19 +5920,19 @@ var deleteCopy = /* @__PURE__ */ __name((database, name) => {
|
|
|
5920
5920
|
return found;
|
|
5921
5921
|
}, "deleteCopy");
|
|
5922
5922
|
|
|
5923
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5923
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/cli/store-info.js
|
|
5924
5924
|
import { existsSync as existsSync4, statSync as statSync3 } from "node:fs";
|
|
5925
5925
|
|
|
5926
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5926
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/cli/store-recover.js
|
|
5927
5927
|
import { existsSync as existsSync3 } from "node:fs";
|
|
5928
5928
|
|
|
5929
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5929
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/store/recover.js
|
|
5930
5930
|
import { execFileSync, spawn } from "node:child_process";
|
|
5931
5931
|
import { existsSync as existsSync2, readFileSync, realpathSync, renameSync as renameSync2, rmSync as rmSync2, statfsSync, statSync as statSync2, writeFileSync } from "node:fs";
|
|
5932
5932
|
import { basename, dirname, join } from "node:path";
|
|
5933
5933
|
import { Transform as Transform2 } from "node:stream";
|
|
5934
5934
|
|
|
5935
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5935
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/store/refill.js
|
|
5936
5936
|
var REFILL_MARGIN_MS = 864e5;
|
|
5937
5937
|
var TIME_KEYS = 1e12;
|
|
5938
5938
|
var integerId = `external_id GLOB '[0-9]*' AND NOT external_id GLOB '*[^0-9]*'`;
|
|
@@ -6012,7 +6012,7 @@ var forgetMail = /* @__PURE__ */ __name((database, cutoff, now) => {
|
|
|
6012
6012
|
return [...folders].map(([account, count3]) => ({ account, folders: count3 }));
|
|
6013
6013
|
}, "forgetMail");
|
|
6014
6014
|
|
|
6015
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6015
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/store/recover.js
|
|
6016
6016
|
var SQLITE3_MINIMUM = [3, 43, 0];
|
|
6017
6017
|
var STORE_PARTS = ["", "-wal", "-shm"];
|
|
6018
6018
|
var RECOVER_LOCK = ".recover-lock";
|
|
@@ -6543,7 +6543,7 @@ var recoverLocked = /* @__PURE__ */ __name(async ({ path, command, version, sqli
|
|
|
6543
6543
|
}
|
|
6544
6544
|
}, "recoverLocked");
|
|
6545
6545
|
|
|
6546
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6546
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/cli/store-recover.js
|
|
6547
6547
|
var COUNTED = [
|
|
6548
6548
|
"accounts",
|
|
6549
6549
|
"chats",
|
|
@@ -6699,7 +6699,7 @@ var storeRecoverCommand = /* @__PURE__ */ __name(({ command, version }) => {
|
|
|
6699
6699
|
return recover;
|
|
6700
6700
|
}, "storeRecoverCommand");
|
|
6701
6701
|
|
|
6702
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6702
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/cli/store-info.js
|
|
6703
6703
|
var pendingIfKnown = /* @__PURE__ */ __name((database) => database.prepare("SELECT 1 FROM pragma_table_info('messages') WHERE name = 'normalized_text'").get() ? pendingNormalization(database) : null, "pendingIfKnown");
|
|
6704
6704
|
var bytesOf = /* @__PURE__ */ __name((path) => existsSync4(path) ? statSync3(path).size : 0, "bytesOf");
|
|
6705
6705
|
var messageOf = /* @__PURE__ */ __name((error) => error instanceof Error ? error.message : String(error), "messageOf");
|
|
@@ -6745,7 +6745,7 @@ var storeInfoCommand = /* @__PURE__ */ __name(() => annotate(new Command("info")
|
|
|
6745
6745
|
renderAnswer(this, outputFor(this), itemOf(answer));
|
|
6746
6746
|
}), "storeInfoCommand");
|
|
6747
6747
|
|
|
6748
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6748
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/cli/messenger/password.js
|
|
6749
6749
|
var ENCRYPT_OPTION = [
|
|
6750
6750
|
"--encrypt",
|
|
6751
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"
|
|
@@ -6764,7 +6764,7 @@ var passwordOf = /* @__PURE__ */ __name(async (command, { twice }) => {
|
|
|
6764
6764
|
return password;
|
|
6765
6765
|
}, "passwordOf");
|
|
6766
6766
|
|
|
6767
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6767
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/replies/rules.js
|
|
6768
6768
|
import { existsSync as existsSync5, readFileSync as readFileSync2 } from "node:fs";
|
|
6769
6769
|
import { join as join2 } from "node:path";
|
|
6770
6770
|
var REPLY_ACTIONS = ["reply", "task"];
|
|
@@ -6935,7 +6935,7 @@ var problem = /* @__PURE__ */ __name((issue) => {
|
|
|
6935
6935
|
}, "problem");
|
|
6936
6936
|
var broken = /* @__PURE__ */ __name((path, why) => new CliError("configuration_error", `the reply rules ${path} cannot be read (${why}) \u2014 fix the file`), "broken");
|
|
6937
6937
|
|
|
6938
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6938
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/replies/state.js
|
|
6939
6939
|
import { existsSync as existsSync6, readFileSync as readFileSync3 } from "node:fs";
|
|
6940
6940
|
import { join as join3 } from "node:path";
|
|
6941
6941
|
var ANSWERED_KEPT = 1e3;
|
|
@@ -6988,7 +6988,7 @@ var recordReply = /* @__PURE__ */ __name((state, rule2, message, now) => {
|
|
|
6988
6988
|
}, "recordReply");
|
|
6989
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");
|
|
6990
6990
|
|
|
6991
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6991
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/replies/decide.js
|
|
6992
6992
|
var skip = /* @__PURE__ */ __name((why) => ({ skip: why }), "skip");
|
|
6993
6993
|
var decide = /* @__PURE__ */ __name((rule2, incoming, state, now) => {
|
|
6994
6994
|
const { message, chat, owner, sender } = incoming;
|
|
@@ -7094,10 +7094,10 @@ var filled = /* @__PURE__ */ __name((template2, senderName) => {
|
|
|
7094
7094
|
return template2.replaceAll("{firstName}", name.split(/\s+/)[0] ?? name).replaceAll("{name}", name);
|
|
7095
7095
|
}, "filled");
|
|
7096
7096
|
|
|
7097
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7097
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/replies/template.js
|
|
7098
7098
|
var import_liquidjs2 = __toESM(require_liquid_node(), 1);
|
|
7099
7099
|
|
|
7100
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7100
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/render/liquid.js
|
|
7101
7101
|
var import_liquidjs = __toESM(require_liquid_node(), 1);
|
|
7102
7102
|
var safeLiquid = /* @__PURE__ */ __name((limits) => {
|
|
7103
7103
|
const engine = new import_liquidjs.Liquid({
|
|
@@ -7124,7 +7124,7 @@ var safeLiquid = /* @__PURE__ */ __name((limits) => {
|
|
|
7124
7124
|
return engine;
|
|
7125
7125
|
}, "safeLiquid");
|
|
7126
7126
|
|
|
7127
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7127
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/replies/template.js
|
|
7128
7128
|
var TEMPLATE_LIMITS = {
|
|
7129
7129
|
parse: 32768,
|
|
7130
7130
|
renders: 2e3,
|
|
@@ -7263,7 +7263,7 @@ var renderReplyTemplate = /* @__PURE__ */ __name(async (reply, input) => {
|
|
|
7263
7263
|
}
|
|
7264
7264
|
}, "renderReplyTemplate");
|
|
7265
7265
|
|
|
7266
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7266
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/replies/dry-run.js
|
|
7267
7267
|
var DRY_RUN_DAYS = 7;
|
|
7268
7268
|
var PAGE = 500;
|
|
7269
7269
|
var dryRun = /* @__PURE__ */ __name(async (store, account, rules, { since, until = Date.now(), only, audience, render }) => {
|
|
@@ -7377,7 +7377,7 @@ var storedSince = /* @__PURE__ */ __name(async (store, account, chat, since) =>
|
|
|
7377
7377
|
}
|
|
7378
7378
|
}, "storedSince");
|
|
7379
7379
|
|
|
7380
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7380
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/models/ai.js
|
|
7381
7381
|
var AI_PROVIDERS = ["anthropic", "openai", "ollama"];
|
|
7382
7382
|
var DEFAULT_BASE_URL = {
|
|
7383
7383
|
anthropic: "https://api.anthropic.com",
|
|
@@ -7527,7 +7527,7 @@ var checkAi = /* @__PURE__ */ __name(async (deps) => {
|
|
|
7527
7527
|
}
|
|
7528
7528
|
}, "checkAi");
|
|
7529
7529
|
|
|
7530
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7530
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/models/purpose.js
|
|
7531
7531
|
var HOSTED = {
|
|
7532
7532
|
openai: "https://api.openai.com/v1",
|
|
7533
7533
|
anthropic: "https://api.anthropic.com"
|
|
@@ -7548,7 +7548,7 @@ var purposeModel = /* @__PURE__ */ __name((settings, purpose, deps) => {
|
|
|
7548
7548
|
return shared ? { target: shared.target, key: /* @__PURE__ */ __name(() => shared.key, "key"), shared: shared.setting } : void 0;
|
|
7549
7549
|
}, "purposeModel");
|
|
7550
7550
|
|
|
7551
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7551
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/replies/consents.js
|
|
7552
7552
|
import { existsSync as existsSync7, readFileSync as readFileSync4 } from "node:fs";
|
|
7553
7553
|
import { join as join4 } from "node:path";
|
|
7554
7554
|
var shape = strictObject({
|
|
@@ -7573,7 +7573,7 @@ var mayModelReply = /* @__PURE__ */ __name((path, provider, chat) => {
|
|
|
7573
7573
|
return consent.provider === provider && !consent.deniedChats.includes(chat);
|
|
7574
7574
|
}, "mayModelReply");
|
|
7575
7575
|
|
|
7576
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7576
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/replies/rendering.js
|
|
7577
7577
|
var replyRenderer = /* @__PURE__ */ __name((app, profile, settings, env, warn, options = {
|
|
7578
7578
|
ai: true
|
|
7579
7579
|
}) => async (rule2, message, chat, now) => {
|
|
@@ -7621,7 +7621,7 @@ var replyRenderer = /* @__PURE__ */ __name((app, profile, settings, env, warn, o
|
|
|
7621
7621
|
return result2;
|
|
7622
7622
|
}, "replyRenderer");
|
|
7623
7623
|
|
|
7624
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7624
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/replies/serve.js
|
|
7625
7625
|
var NOT_ALLOWED = "replies.send is not allow";
|
|
7626
7626
|
var NO_RULES = "no rules";
|
|
7627
7627
|
var ONLY_TASK = "opened a task, sent nothing";
|
|
@@ -7714,7 +7714,7 @@ var replyTo = /* @__PURE__ */ __name(async (deps, message) => {
|
|
|
7714
7714
|
return { skip: why };
|
|
7715
7715
|
}, "replyTo");
|
|
7716
7716
|
|
|
7717
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7717
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-catch-up.js
|
|
7718
7718
|
var START_SYNC_DELAY_MS = 3e4;
|
|
7719
7719
|
var START_SYNC_BUDGET_MS = 5 * 6e4;
|
|
7720
7720
|
var START_SYNC_WINDOW_MS = 7 * 864e5;
|
|
@@ -7791,7 +7791,7 @@ var startSync = /* @__PURE__ */ __name(({ chats, newestHeld, fetch, note, warn,
|
|
|
7791
7791
|
};
|
|
7792
7792
|
}, "startSync");
|
|
7793
7793
|
|
|
7794
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7794
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-members.js
|
|
7795
7795
|
var FIRST_FETCH_MS = 6e4;
|
|
7796
7796
|
var DAY_MS = 864e5;
|
|
7797
7797
|
var memberFetches = /* @__PURE__ */ __name(({ withStore, fetch, warn, firstMs = FIRST_FETCH_MS, everyMs = DAY_MS }) => {
|
|
@@ -7845,7 +7845,7 @@ var memberFetches = /* @__PURE__ */ __name(({ withStore, fetch, warn, firstMs =
|
|
|
7845
7845
|
};
|
|
7846
7846
|
}, "memberFetches");
|
|
7847
7847
|
|
|
7848
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7848
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-notice.js
|
|
7849
7849
|
var record2 = /* @__PURE__ */ __name((context, app, severity, attributes) => recordLogFor(context.streams.diagnostic, app, { command: currentRun().command || "serve" })[severity](attributes), "record");
|
|
7850
7850
|
var noticeFor = /* @__PURE__ */ __name((context, app, severity = "warn") => ({ text, ...attributes }) => {
|
|
7851
7851
|
if (context.format === "pretty") {
|
|
@@ -7878,7 +7878,7 @@ var recordDiagnostics = /* @__PURE__ */ __name((context, app) => {
|
|
|
7878
7878
|
return context;
|
|
7879
7879
|
}, "recordDiagnostics");
|
|
7880
7880
|
|
|
7881
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7881
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-outdated.js
|
|
7882
7882
|
import { existsSync as existsSync8, readFileSync as readFileSync5, realpathSync as realpathSync2 } from "node:fs";
|
|
7883
7883
|
import { dirname as dirname2, join as join5 } from "node:path";
|
|
7884
7884
|
var OUTDATED_CHECK_MS = 6e4;
|
|
@@ -7964,7 +7964,7 @@ var watchOutdated = /* @__PURE__ */ __name(({ check: check2, onOutdated, everyMs
|
|
|
7964
7964
|
};
|
|
7965
7965
|
}, "watchOutdated");
|
|
7966
7966
|
|
|
7967
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7967
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-stems.js
|
|
7968
7968
|
var STEMS_EVERY_MS = 3e4;
|
|
7969
7969
|
var STEMS_SLICE_MS = 2e3;
|
|
7970
7970
|
var stemFills = /* @__PURE__ */ __name(({ withStore, warn, everyMs = STEMS_EVERY_MS, sliceMs = STEMS_SLICE_MS }) => {
|
|
@@ -8004,7 +8004,7 @@ var stemFills = /* @__PURE__ */ __name(({ withStore, warn, everyMs = STEMS_EVERY
|
|
|
8004
8004
|
};
|
|
8005
8005
|
}, "stemFills");
|
|
8006
8006
|
|
|
8007
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8007
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/cli/messenger/message-items.js
|
|
8008
8008
|
var defined = /* @__PURE__ */ __name((value) => Object.fromEntries(Object.entries(value).filter(([, one]) => one !== void 0)), "defined");
|
|
8009
8009
|
var attachmentItem = /* @__PURE__ */ __name((attachment) => defined({
|
|
8010
8010
|
kind: attachment.kind,
|
|
@@ -8100,7 +8100,7 @@ var viewOf = /* @__PURE__ */ __name((context, messenger) => ({
|
|
|
8100
8100
|
locale: messenger.app.locale
|
|
8101
8101
|
}), "viewOf");
|
|
8102
8102
|
|
|
8103
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8103
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/cli/messenger/watch-answers.js
|
|
8104
8104
|
var observed = /* @__PURE__ */ __name((value) => ({
|
|
8105
8105
|
value: value.value,
|
|
8106
8106
|
observed_at: value.observedAt,
|
|
@@ -8167,7 +8167,7 @@ var watchEventItem = /* @__PURE__ */ __name((value, account) => {
|
|
|
8167
8167
|
}
|
|
8168
8168
|
}, "watchEventItem");
|
|
8169
8169
|
|
|
8170
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8170
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/cli/messenger/watch-command.js
|
|
8171
8171
|
var watchCommand = /* @__PURE__ */ __name((messenger) => annotate(new Command("watch"), {
|
|
8172
8172
|
output: { entity: "watch_item" },
|
|
8173
8173
|
effects: REMOTE_READ,
|
|
@@ -8322,7 +8322,7 @@ var describe = /* @__PURE__ */ __name((event, render) => {
|
|
|
8322
8322
|
}
|
|
8323
8323
|
}, "describe");
|
|
8324
8324
|
|
|
8325
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8325
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-command.js
|
|
8326
8326
|
var CURRENT_EVERY_MS = 6e4;
|
|
8327
8327
|
var serveCommand = /* @__PURE__ */ __name((messenger) => {
|
|
8328
8328
|
const command = annotate(new Command("serve"), {
|
|
@@ -8622,7 +8622,7 @@ var tasking = /* @__PURE__ */ __name((context, warn) => {
|
|
|
8622
8622
|
};
|
|
8623
8623
|
}, "tasking");
|
|
8624
8624
|
|
|
8625
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8625
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/cli/messenger/store-tables-command.js
|
|
8626
8626
|
import { existsSync as existsSync9 } from "node:fs";
|
|
8627
8627
|
var PATH = "store tables list";
|
|
8628
8628
|
var STORE_TABLES_QUERY = {
|
|
@@ -8665,7 +8665,7 @@ var storeTablesCommand = /* @__PURE__ */ __name((owner) => {
|
|
|
8665
8665
|
return tables;
|
|
8666
8666
|
}, "storeTablesCommand");
|
|
8667
8667
|
|
|
8668
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8668
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/cli/messenger/store-maintenance-command.js
|
|
8669
8669
|
var SEARCH_INDEXES = ["messages_fts", "chats_fts", "identities_fts"];
|
|
8670
8670
|
var WORD_INDEX = "message_words";
|
|
8671
8671
|
var schemaOf = /* @__PURE__ */ __name((database) => {
|
|
@@ -4,15 +4,15 @@ import {
|
|
|
4
4
|
MAX_SECRET_INPUT,
|
|
5
5
|
bufferedInput,
|
|
6
6
|
inputPolicy
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-BM5F2ZNI.js";
|
|
8
8
|
import {
|
|
9
9
|
CliError
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-AP3CWDRK.js";
|
|
11
11
|
import {
|
|
12
12
|
__name
|
|
13
13
|
} from "./chunk-ZVVMGPBJ.js";
|
|
14
14
|
|
|
15
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
15
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/terminal/prompt.js
|
|
16
16
|
import { createInterface } from "node:readline";
|
|
17
17
|
import { Writable } from "node:stream";
|
|
18
18
|
var EMPTY_TRIES = 3;
|
|
@@ -2,12 +2,12 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
CliError
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-AP3CWDRK.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.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/files/ordinary-file.js
|
|
11
11
|
import { constants } from "node:fs";
|
|
12
12
|
import { lstat, open } from "node:fs/promises";
|
|
13
13
|
var deviceOf = /* @__PURE__ */ __name((dev) => process.platform === "win32" ? BigInt.asUintN(32, dev) : dev, "deviceOf");
|
|
@@ -73,7 +73,7 @@ var syncDirectory = /* @__PURE__ */ __name(async (path) => {
|
|
|
73
73
|
}
|
|
74
74
|
}, "syncDirectory");
|
|
75
75
|
|
|
76
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
76
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/files/atomic-write.js
|
|
77
77
|
import { randomUUID } from "node:crypto";
|
|
78
78
|
import { constants as constants2 } from "node:fs";
|
|
79
79
|
import { link, open as open2, realpath, rename, unlink } from "node:fs/promises";
|
|
@@ -111,7 +111,7 @@ var writeFileAtomic = /* @__PURE__ */ __name(async (path, content, { mode = 384,
|
|
|
111
111
|
}
|
|
112
112
|
}, "writeFileAtomic");
|
|
113
113
|
|
|
114
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
114
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/files/bounded-utf8.js
|
|
115
115
|
var readBoundedUtf8File = /* @__PURE__ */ __name(async (path, { maxBytes }) => {
|
|
116
116
|
if (!Number.isSafeInteger(maxBytes) || maxBytes < 1 || maxBytes > 16 * 1024 * 1024)
|
|
117
117
|
throw new CliError("validation_error", "file maxBytes takes 1\u201316777216 bytes");
|
|
@@ -140,21 +140,21 @@ var readBoundedUtf8File = /* @__PURE__ */ __name(async (path, { maxBytes }) => {
|
|
|
140
140
|
}
|
|
141
141
|
}, "readBoundedUtf8File");
|
|
142
142
|
|
|
143
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
143
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/files/lock.js
|
|
144
144
|
import { mkdir as mkdir2 } from "node:fs/promises";
|
|
145
145
|
import { basename as basename2, dirname as dirname2 } from "node:path";
|
|
146
146
|
|
|
147
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
147
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/files/native-writer-lease.js
|
|
148
148
|
import { randomUUID as randomUUID2 } from "node:crypto";
|
|
149
149
|
import { lstat as lstat3, mkdir, open as open3, realpath as realpath3, rmdir as rmdir2, unlink as unlink4 } from "node:fs/promises";
|
|
150
150
|
import { hostname as hostname2 } from "node:os";
|
|
151
151
|
import { join as join3 } from "node:path";
|
|
152
152
|
|
|
153
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
153
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/files/native-lease-inspection.js
|
|
154
154
|
import { lstat as lstat2, readdir, realpath as realpath2, unlink as unlink2 } from "node:fs/promises";
|
|
155
155
|
import { join as join2 } from "node:path";
|
|
156
156
|
|
|
157
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
157
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/files/native-lease-owner.js
|
|
158
158
|
import { hostname } from "node:os";
|
|
159
159
|
var missingLeaseFile = /* @__PURE__ */ __name((error) => typeof error === "object" && error !== null && "code" in error && error.code === "ENOENT", "missingLeaseFile");
|
|
160
160
|
var readLeaseOwner = /* @__PURE__ */ __name(async (path, name, signal) => {
|
|
@@ -199,7 +199,7 @@ var leaseOwnerStatus = /* @__PURE__ */ __name((owner) => {
|
|
|
199
199
|
}
|
|
200
200
|
}, "leaseOwnerStatus");
|
|
201
201
|
|
|
202
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
202
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/files/native-lease-inspection.js
|
|
203
203
|
var leaseInspection = /* @__PURE__ */ __name((markerDirectory) => {
|
|
204
204
|
const inspect = /* @__PURE__ */ __name(async (destination, options = {}) => {
|
|
205
205
|
options.signal?.throwIfAborted();
|
|
@@ -258,7 +258,7 @@ var leaseInspection = /* @__PURE__ */ __name((markerDirectory) => {
|
|
|
258
258
|
return { inspect, recover };
|
|
259
259
|
}, "leaseInspection");
|
|
260
260
|
|
|
261
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
261
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/files/native-lease-release.js
|
|
262
262
|
import { rmdir, unlink as unlink3 } from "node:fs/promises";
|
|
263
263
|
var ownedNativeLease = /* @__PURE__ */ __name((path, name, owner, folder, identity) => {
|
|
264
264
|
let releasing;
|
|
@@ -283,7 +283,7 @@ var ownedNativeLease = /* @__PURE__ */ __name((path, name, owner, folder, identi
|
|
|
283
283
|
};
|
|
284
284
|
}, "ownedNativeLease");
|
|
285
285
|
|
|
286
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
286
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/files/native-writer-lease.js
|
|
287
287
|
var validName = /* @__PURE__ */ __name((value) => typeof value === "string" && value.length > 0 && value !== "." && value !== ".." && !/[\\/\0:]/.test(value), "validName");
|
|
288
288
|
var nativeWriterLeaseStore = /* @__PURE__ */ __name((layout) => {
|
|
289
289
|
const { markerDirectory, legacyMarker } = layout;
|
|
@@ -354,7 +354,7 @@ var nativeWriterLeaseStore = /* @__PURE__ */ __name((layout) => {
|
|
|
354
354
|
};
|
|
355
355
|
}, "nativeWriterLeaseStore");
|
|
356
356
|
|
|
357
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
357
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/files/lock.js
|
|
358
358
|
var acquireLock = /* @__PURE__ */ __name(async (path, { signal } = {}) => {
|
|
359
359
|
const folder = dirname2(path);
|
|
360
360
|
await mkdir2(folder, { recursive: true, mode: 448 });
|
|
@@ -369,7 +369,7 @@ var acquireLock = /* @__PURE__ */ __name(async (path, { signal } = {}) => {
|
|
|
369
369
|
});
|
|
370
370
|
}, "acquireLock");
|
|
371
371
|
|
|
372
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
372
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/files/safe-name.js
|
|
373
373
|
import { basename as basename3, extname } from "node:path";
|
|
374
374
|
var MOST_NAME_BYTES = 200;
|
|
375
375
|
var bytesOf = /* @__PURE__ */ __name((text) => Buffer.byteLength(text, "utf8"), "bytesOf");
|
|
@@ -2,24 +2,24 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
storePath
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-2VUIJ5XB.js";
|
|
6
6
|
import {
|
|
7
7
|
resolvePaths,
|
|
8
8
|
writeSecurely
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-2K5BAY32.js";
|
|
10
10
|
import {
|
|
11
11
|
CliError,
|
|
12
12
|
singleLine
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-AP3CWDRK.js";
|
|
14
14
|
import {
|
|
15
15
|
__name
|
|
16
16
|
} from "./chunk-ZVVMGPBJ.js";
|
|
17
17
|
|
|
18
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/store/shared-config.js
|
|
19
19
|
import { existsSync, mkdirSync, readFileSync, renameSync, statSync, writeFileSync } from "node:fs";
|
|
20
20
|
import { dirname, join, resolve } from "node:path";
|
|
21
21
|
|
|
22
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/domain/config-repair.js
|
|
23
23
|
var REPAIR_WORDS = {
|
|
24
24
|
byte_order_mark: "an invisible byte-order mark at the start",
|
|
25
25
|
comment: "a comment, which JSON does not allow",
|
|
@@ -303,7 +303,7 @@ var explainBrokenJson = /* @__PURE__ */ __name((text, result) => {
|
|
|
303
303
|
return `line ${line}, column ${column}: ${why}${around(line)}; likely fix: ${fix ?? "correct that part by hand"}`;
|
|
304
304
|
}, "explainBrokenJson");
|
|
305
305
|
|
|
306
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
306
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/domain/task-categories.js
|
|
307
307
|
var DEFAULT_TASK_CATEGORIES = [
|
|
308
308
|
{
|
|
309
309
|
name: "taxes",
|
|
@@ -1058,7 +1058,7 @@ var storedTaskCategories = /* @__PURE__ */ __name((json) => {
|
|
|
1058
1058
|
}
|
|
1059
1059
|
}, "storedTaskCategories");
|
|
1060
1060
|
|
|
1061
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1061
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/store/shared-config.js
|
|
1062
1062
|
var SECTION = "task_categories";
|
|
1063
1063
|
var sharedConfigPath = /* @__PURE__ */ __name((store, env = process.env) => {
|
|
1064
1064
|
const paths = resolvePaths({ appName: "WireCat", prefix: "WIRECAT", env });
|