@wirecat/hubspot-cli 0.4.0 → 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 +16 -0
- package/README.md +2 -2
- package/dist/bin/hubspot.js +2 -2
- package/dist/bundle/agent-RBQMA24N.js +40 -0
- package/dist/bundle/{all-profiles-JVEE4PXX.js → all-profiles-PGFXLOKN.js} +11 -11
- package/dist/bundle/{anthropic-6HT57GNF.js → anthropic-LPOJ3TYF.js} +5 -5
- package/dist/bundle/{app-server-FOBFF6G6.js → app-server-EYWGCSRY.js} +68 -68
- package/dist/bundle/{bun-GW443QB3.js → bun-ZJOOKIIW.js} +2 -2
- package/dist/bundle/{bun-sqlite-TGIAICDN.js → bun-sqlite-Y6KKH2OW.js} +6 -6
- package/dist/bundle/{chunk-RFGIUCKU.js → chunk-23CLSKY7.js} +3 -3
- package/dist/bundle/{chunk-ETKLP4VE.js → chunk-34HDRZIL.js} +14 -14
- package/dist/bundle/{chunk-PQUZ2YDC.js → chunk-3CHJYWA2.js} +6 -6
- package/dist/bundle/{chunk-7QH5BZUG.js → chunk-4RZ4DUQT.js} +3 -3
- package/dist/bundle/{chunk-NLZADZ4F.js → chunk-5ENY4POG.js} +61 -61
- package/dist/bundle/{chunk-W5X37TBC.js → chunk-5HGS65I3.js} +2 -2
- package/dist/bundle/{chunk-HPRKSL5S.js → chunk-5UPNDUAA.js} +2 -2
- package/dist/bundle/{chunk-LS4S7PAP.js → chunk-5WADRBQG.js} +3 -3
- package/dist/bundle/{chunk-DBPFHJXX.js → chunk-6PWRJGX4.js} +4 -4
- package/dist/bundle/{chunk-Q7DIEU6L.js → chunk-6S422S22.js} +7 -7
- package/dist/bundle/{chunk-E33KM3DB.js → chunk-7Q64D56R.js} +11 -11
- package/dist/bundle/{chunk-HM72O37C.js → chunk-7RIE3DAW.js} +174 -161
- package/dist/bundle/{chunk-LX7QMRRG.js → chunk-A5UTNGI4.js} +13 -13
- package/dist/bundle/{chunk-FWW2CUXH.js → chunk-ABPZOI3C.js} +4 -4
- package/dist/bundle/{chunk-MQACXJLG.js → chunk-AHZQMSXW.js} +10 -10
- package/dist/bundle/{chunk-3BM6KBWP.js → chunk-AIQT2GGK.js} +19 -19
- package/dist/bundle/{chunk-ATGD64VO.js → chunk-AVBKXCEY.js} +8 -8
- package/dist/bundle/{chunk-3SRGN5MQ.js → chunk-BCW7DAVV.js} +2 -2
- package/dist/bundle/{chunk-QNQ4V4UT.js → chunk-BGUGTMTS.js} +8 -8
- package/dist/bundle/{chunk-EU7AVWSX.js → chunk-BH5FEFZB.js} +2 -2
- package/dist/bundle/{chunk-XDDTJYGA.js → chunk-BVK4GUUI.js} +1254 -803
- package/dist/bundle/{chunk-HQYJ66ZX.js → chunk-BW7NPFVC.js} +18 -8
- package/dist/bundle/{chunk-QJHRRJKD.js → chunk-CWCJEAHZ.js} +3 -3
- package/dist/bundle/{chunk-Z3YOKGVZ.js → chunk-DDMBPYHP.js} +2 -2
- package/dist/bundle/{chunk-3MUHCLRY.js → chunk-DEUCWBBH.js} +81 -5
- package/dist/bundle/{chunk-GJSHLF43.js → chunk-DJUUQG6Y.js} +8 -8
- package/dist/bundle/{chunk-7JVKQ6NM.js → chunk-EGR3YUWD.js} +4 -4
- package/dist/bundle/{chunk-FOLKK6FW.js → chunk-EPBHJMF6.js} +20 -14
- package/dist/bundle/{chunk-VMF2UIQI.js → chunk-GZJP3KQQ.js} +3 -4
- package/dist/bundle/{chunk-YYYRE4AV.js → chunk-HBFSGL5E.js} +26 -26
- package/dist/bundle/{chunk-NL3RKJR6.js → chunk-HPRGUUHY.js} +1 -1
- package/dist/bundle/{chunk-AV2ZJ4WX.js → chunk-HPSESLOZ.js} +1 -1
- package/dist/bundle/{chunk-WBUVNKHJ.js → chunk-I334AT2H.js} +7 -7
- package/dist/bundle/{chunk-K4DWBOO6.js → chunk-K3WCBNH4.js} +6 -6
- package/dist/bundle/{chunk-XCDRFC6G.js → chunk-K5S7MKBB.js} +17 -17
- package/dist/bundle/{chunk-3LMW7U7F.js → chunk-KAW5VEER.js} +21 -8
- package/dist/bundle/{chunk-3MPMYAII.js → chunk-KC4ILAKO.js} +1 -1
- package/dist/bundle/{chunk-UHHXZKB2.js → chunk-KRTXJMCD.js} +16 -16
- package/dist/bundle/{chunk-5KLNBGPU.js → chunk-KXWRVLSU.js} +1 -1
- package/dist/bundle/{chunk-7OJ43BAH.js → chunk-L4SVHQ7H.js} +7 -7
- package/dist/bundle/{chunk-2BCWK5BF.js → chunk-L6WSFVTD.js} +8 -8
- package/dist/bundle/{chunk-A6PVEUGN.js → chunk-LWS5AO3H.js} +17 -17
- package/dist/bundle/{chunk-OLDIP4CV.js → chunk-LXLXF2OE.js} +3 -3
- package/dist/bundle/{chunk-QV4GDVBN.js → chunk-MENMD5Y5.js} +8 -8
- package/dist/bundle/{chunk-EBJYK7UM.js → chunk-MFWECOO3.js} +77 -62
- package/dist/bundle/{chunk-TAF4PKDS.js → chunk-MGMLSPIY.js} +1 -1
- package/dist/bundle/{chunk-F4ZLRS4B.js → chunk-MKBQFD37.js} +1 -1
- package/dist/bundle/{chunk-QIFCH5DZ.js → chunk-MPNMEWHA.js} +341 -278
- package/dist/bundle/{chunk-XMWMA2N5.js → chunk-MPQ4SPZG.js} +46 -32
- package/dist/bundle/{chunk-V23OHBGM.js → chunk-MW4ROXQ6.js} +3 -3
- package/dist/bundle/{chunk-QODPEZC5.js → chunk-NEDV6RCQ.js} +10 -3
- package/dist/bundle/{chunk-F3HJ2E3P.js → chunk-NEP67GLY.js} +6 -6
- package/dist/bundle/{chunk-5G4L6NQJ.js → chunk-NKIKMG33.js} +35 -35
- package/dist/bundle/{chunk-T3GZKV5A.js → chunk-NLPGUYCG.js} +12 -12
- package/dist/bundle/{chunk-6NUXFVJQ.js → chunk-OCISQFMW.js} +1 -1
- package/dist/bundle/{chunk-PKFLSX5F.js → chunk-ODRF47VS.js} +8 -8
- package/dist/bundle/{chunk-WATDMTDC.js → chunk-OFOA6VJ2.js} +3 -3
- package/dist/bundle/{chunk-HM6AMYHR.js → chunk-PMGAU6AP.js} +2 -2
- package/dist/bundle/{chunk-JWO3PB5Z.js → chunk-POTS24SH.js} +18 -18
- package/dist/bundle/{chunk-5ZVYIA56.js → chunk-PPQRWFJZ.js} +5 -5
- package/dist/bundle/{chunk-DG4RBKIV.js → chunk-QCHW7R7L.js} +1 -1
- package/dist/bundle/{chunk-CFQQTDSA.js → chunk-QDNYJOWJ.js} +1 -1
- package/dist/bundle/{chunk-M25KVDHA.js → chunk-QIHJKE4K.js} +7 -7
- package/dist/bundle/{chunk-WLFYEAZ6.js → chunk-QLFD3MOL.js} +402 -390
- package/dist/bundle/{chunk-N4EIJ53V.js → chunk-QPTHEZZ5.js} +2 -2
- package/dist/bundle/{chunk-PMJCZIV4.js → chunk-R7ZOCDNG.js} +1 -1
- package/dist/bundle/{chunk-AT43MYQL.js → chunk-RJBKDZGV.js} +8 -8
- package/dist/bundle/{chunk-UIWWAT3C.js → chunk-RZS7N3OZ.js} +7 -7
- package/dist/bundle/{chunk-Z4PY5BDP.js → chunk-SBNZYRVZ.js} +4 -4
- package/dist/bundle/{chunk-4OPN3KCN.js → chunk-STTHRJBX.js} +5 -5
- package/dist/bundle/{chunk-VDAYIXV4.js → chunk-V5VMAHDQ.js} +6 -6
- package/dist/bundle/{chunk-JKNUCEII.js → chunk-VCYUYFIV.js} +1 -1
- package/dist/bundle/{chunk-HVXOA4FO.js → chunk-VIJV474N.js} +1 -1
- package/dist/bundle/{chunk-5OBVICFK.js → chunk-WDR77HPO.js} +15 -1
- package/dist/bundle/{chunk-6ULR7N3T.js → chunk-WEM4FZPM.js} +2 -2
- package/dist/bundle/{chunk-FK4LEJZM.js → chunk-WQZENAPE.js} +3 -3
- package/dist/bundle/{chunk-X5U7GLHD.js → chunk-WXEN6AXQ.js} +16 -3
- package/dist/bundle/{chunk-IED6MKPU.js → chunk-YJLJZMEA.js} +25 -25
- package/dist/bundle/{chunk-XJVFXHDI.js → chunk-YQBGPBYN.js} +2 -2
- package/dist/bundle/{chunk-BXZRSXBL.js → chunk-YZ5MULJM.js} +3 -3
- package/dist/bundle/{chunk-2Q2XIXDL.js → chunk-Z7FC6VVM.js} +1 -1
- package/dist/bundle/{chunk-5WKJFMC3.js → chunk-ZKPM53YG.js} +4 -4
- package/dist/bundle/{chunk-V2B2OWTC.js → chunk-ZLWQPUPB.js} +2 -2
- package/dist/bundle/{chunk-GOOXUCJW.js → chunk-ZMHD76RE.js} +2 -2
- package/dist/bundle/command-contract-O2UKYHLD.js +40 -0
- package/dist/bundle/{command-server-entry-OJQ55UA2.js → command-server-entry-B7S5AUE6.js} +28 -28
- package/dist/bundle/{decode-CDQDRPRJ.js → decode-7L33C5UJ.js} +5 -5
- package/dist/bundle/{dispatch-JQBAZWCL.js → dispatch-BIGHHSXV.js} +8 -8
- package/dist/bundle/{echarts-GJ5JJG2A.js → echarts-CWR3QH55.js} +2 -2
- package/dist/bundle/{embed-BUQXGMKR.js → embed-GXQ3HOQ6.js} +6 -6
- package/dist/bundle/{embedder-FCX6LE4O.js → embedder-47OYXGLS.js} +9 -9
- package/dist/bundle/{failure-I6AAF5R5.js → failure-VMZOU5GZ.js} +2 -2
- package/dist/bundle/{first-run-RPYEXXQK.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-LPVTPERS.js → instructions-QFS2MPK3.js} +1 -1
- package/dist/bundle/{mcp-YGOAUNC3.js → mcp-Z2KZNCXB.js} +2 -2
- package/dist/bundle/meeting-combined-WBEOLQMP.js +25 -0
- package/dist/bundle/{meeting-model-TRGBEWCY.js → meeting-model-GLF2HVJG.js} +11 -11
- package/dist/bundle/{meeting-semantic-RSF5KNKD.js → meeting-semantic-RG56F4YX.js} +6 -6
- package/dist/bundle/{node-UAT3EIAP.js → node-3TSWTXGI.js} +2 -2
- package/dist/bundle/{node-sqlite-3HKDQNFD.js → node-sqlite-UPQCG7DJ.js} +7 -7
- package/dist/bundle/{oauth-DYW2NSZP.js → oauth-MCVEENW3.js} +7 -7
- package/dist/bundle/{open-KBRXJ5BC.js → open-JMUTKUYJ.js} +5 -5
- package/dist/bundle/{openai-YNCLRTSK.js → openai-HT7YDOK7.js} +15 -15
- package/dist/bundle/{process-63BB7LKP.js → process-7RC6DAGM.js} +1 -1
- package/dist/bundle/{program-VX52OB3O.js → program-3DLBMOEJ.js} +134 -114
- package/dist/bundle/{prompt-TWLJ3M2O.js → prompt-7EROPXPF.js} +5 -5
- package/dist/bundle/{recognize-GQ6DLGE7.js → recognize-B232GXD2.js} +4 -4
- package/dist/bundle/{remote-RKNSF3TT.js → remote-HGV64VRC.js} +9 -9
- package/dist/bundle/{rerank-H4HSGQUJ.js → rerank-5S6TDXHD.js} +7 -7
- package/dist/bundle/{schemas-LDK7O6VW.js → schemas-SB42IXEX.js} +1 -1
- package/dist/bundle/{serve-4ZNIAL7H.js → serve-D2WFCV6Z.js} +9 -9
- package/dist/bundle/{server-4G4QB3QN.js → server-4AXPTJPV.js} +60 -60
- package/dist/bundle/server-FFHVNABP.js +86 -0
- package/dist/bundle/{source-2UCNCCO7.js → source-DF63EC2B.js} +114 -86
- package/dist/bundle/{sqlite-runtime-C2JYC7JF.js → sqlite-runtime-DAFMZNLI.js} +6 -6
- package/dist/bundle/{state-3KDXCXHG.js → state-7OEBDXVV.js} +6 -6
- package/dist/bundle/{store-LXLG5HTS.js → store-2ZWSWF76.js} +24 -24
- package/dist/bundle/{store-J5FQBZYR.js → store-KC6US326.js} +22 -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.map +1 -1
- package/dist/config.js +3 -2
- 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/dist/bundle/agent-NST4YXJR.js +0 -40
- package/dist/bundle/command-contract-LYX2QNIA.js +0 -40
- package/dist/bundle/first-screen-Y4EH3HZS.js +0 -40
- package/dist/bundle/meeting-combined-FEEVVUGC.js +0 -25
- package/dist/bundle/server-3IYIZEEQ.js +0 -86
- package/dist/bundle/store-2MNUHHZC.js +0 -32
- package/dist/bundle/store-maintenance-command-DDB7TR6V.js +0 -73
- package/dist/bundle/surface-ZTZANYKC.js +0 -72
- package/dist/bundle/writer-X7PGBLDH.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,
|
|
@@ -117,55 +118,55 @@ import {
|
|
|
117
118
|
storeClients,
|
|
118
119
|
storeContents,
|
|
119
120
|
vectorIndexCounts
|
|
120
|
-
} from "./chunk-
|
|
121
|
+
} from "./chunk-QLFD3MOL.js";
|
|
121
122
|
import {
|
|
122
123
|
currentRun,
|
|
123
124
|
readDamageMark,
|
|
124
125
|
readHealthMark,
|
|
125
126
|
readJournalMark,
|
|
126
127
|
recordDeepCheck
|
|
127
|
-
} from "./chunk-
|
|
128
|
+
} from "./chunk-YJLJZMEA.js";
|
|
128
129
|
import {
|
|
129
130
|
failureKey,
|
|
130
131
|
isStoreDamage
|
|
131
|
-
} from "./chunk-
|
|
132
|
+
} from "./chunk-DDMBPYHP.js";
|
|
132
133
|
import {
|
|
133
134
|
modelAddressAllowed,
|
|
134
135
|
onThisComputer
|
|
135
|
-
} from "./chunk-
|
|
136
|
-
import {
|
|
137
|
-
readSharedSection,
|
|
138
|
-
sharedConfigPath,
|
|
139
|
-
writeSharedSection
|
|
140
|
-
} from "./chunk-UIWWAT3C.js";
|
|
136
|
+
} from "./chunk-QIHJKE4K.js";
|
|
141
137
|
import {
|
|
142
138
|
renderMessages
|
|
143
|
-
} from "./chunk-
|
|
139
|
+
} from "./chunk-BCW7DAVV.js";
|
|
144
140
|
import {
|
|
145
141
|
levelFor
|
|
146
|
-
} from "./chunk-
|
|
142
|
+
} from "./chunk-BW7NPFVC.js";
|
|
147
143
|
import {
|
|
148
144
|
formatLocator,
|
|
149
145
|
parseLocator
|
|
150
|
-
} from "./chunk-
|
|
146
|
+
} from "./chunk-NLPGUYCG.js";
|
|
151
147
|
import {
|
|
152
148
|
queryFieldsOf
|
|
153
|
-
} from "./chunk-
|
|
149
|
+
} from "./chunk-5ENY4POG.js";
|
|
150
|
+
import {
|
|
151
|
+
readSharedSection,
|
|
152
|
+
sharedConfigPath,
|
|
153
|
+
writeSharedSection
|
|
154
|
+
} from "./chunk-RZS7N3OZ.js";
|
|
154
155
|
import {
|
|
155
156
|
readSecret
|
|
156
|
-
} from "./chunk-
|
|
157
|
+
} from "./chunk-MW4ROXQ6.js";
|
|
157
158
|
import {
|
|
158
159
|
storePath
|
|
159
|
-
} from "./chunk-
|
|
160
|
+
} from "./chunk-WEM4FZPM.js";
|
|
160
161
|
import {
|
|
161
162
|
openCache
|
|
162
|
-
} from "./chunk-
|
|
163
|
+
} from "./chunk-3CHJYWA2.js";
|
|
163
164
|
import {
|
|
164
165
|
Credentials,
|
|
165
166
|
isMovedRun,
|
|
166
167
|
resolvePaths,
|
|
167
168
|
writeSecurely
|
|
168
|
-
} from "./chunk-
|
|
169
|
+
} from "./chunk-AIQT2GGK.js";
|
|
169
170
|
import {
|
|
170
171
|
array,
|
|
171
172
|
boolean,
|
|
@@ -190,7 +191,7 @@ import {
|
|
|
190
191
|
} from "./chunk-S4UUN6LD.js";
|
|
191
192
|
import {
|
|
192
193
|
CliError
|
|
193
|
-
} from "./chunk-
|
|
194
|
+
} from "./chunk-PMGAU6AP.js";
|
|
194
195
|
import {
|
|
195
196
|
__commonJS,
|
|
196
197
|
__name,
|
|
@@ -5530,11 +5531,11 @@ var require_liquid_node = __commonJS({
|
|
|
5530
5531
|
}
|
|
5531
5532
|
});
|
|
5532
5533
|
|
|
5533
|
-
// 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
|
|
5534
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";
|
|
5535
5536
|
import { dirname as dirname3, resolve } from "node:path";
|
|
5536
5537
|
|
|
5537
|
-
// 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
|
|
5538
5539
|
import { createCipheriv, createDecipheriv, createHash, randomBytes, scrypt, timingSafeEqual } from "node:crypto";
|
|
5539
5540
|
import { closeSync, createReadStream, createWriteStream, existsSync, openSync, readSync, renameSync, rmSync, statSync } from "node:fs";
|
|
5540
5541
|
import { Transform } from "node:stream";
|
|
@@ -5641,7 +5642,7 @@ var unsealFile = /* @__PURE__ */ __name(async (from, to, password) => {
|
|
|
5641
5642
|
renameSync(pending, to);
|
|
5642
5643
|
}, "unsealFile");
|
|
5643
5644
|
|
|
5644
|
-
// 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
|
|
5645
5646
|
var SPEAKS = MIGRATIONS.at(-1)?.version ?? 0;
|
|
5646
5647
|
var fileSchemaOf = /* @__PURE__ */ __name((database) => {
|
|
5647
5648
|
const tracked = database.prepare("SELECT 1 FROM sqlite_master WHERE name = 'schema_migrations'").get();
|
|
@@ -5665,7 +5666,7 @@ var compatibilityOf = /* @__PURE__ */ __name((file2, migrations = MIGRATIONS) =>
|
|
|
5665
5666
|
};
|
|
5666
5667
|
}, "compatibilityOf");
|
|
5667
5668
|
|
|
5668
|
-
// 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
|
|
5669
5670
|
import { createHash as createHash2 } from "node:crypto";
|
|
5670
5671
|
var COPY_MARK = "__repair_";
|
|
5671
5672
|
var COPY_NAME = /__repair_[0-9a-f]{8}(_\d+)?$/;
|
|
@@ -5919,19 +5920,19 @@ var deleteCopy = /* @__PURE__ */ __name((database, name) => {
|
|
|
5919
5920
|
return found;
|
|
5920
5921
|
}, "deleteCopy");
|
|
5921
5922
|
|
|
5922
|
-
// 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
|
|
5923
5924
|
import { existsSync as existsSync4, statSync as statSync3 } from "node:fs";
|
|
5924
5925
|
|
|
5925
|
-
// 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
|
|
5926
5927
|
import { existsSync as existsSync3 } from "node:fs";
|
|
5927
5928
|
|
|
5928
|
-
// 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
|
|
5929
5930
|
import { execFileSync, spawn } from "node:child_process";
|
|
5930
5931
|
import { existsSync as existsSync2, readFileSync, realpathSync, renameSync as renameSync2, rmSync as rmSync2, statfsSync, statSync as statSync2, writeFileSync } from "node:fs";
|
|
5931
5932
|
import { basename, dirname, join } from "node:path";
|
|
5932
5933
|
import { Transform as Transform2 } from "node:stream";
|
|
5933
5934
|
|
|
5934
|
-
// 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
|
|
5935
5936
|
var REFILL_MARGIN_MS = 864e5;
|
|
5936
5937
|
var TIME_KEYS = 1e12;
|
|
5937
5938
|
var integerId = `external_id GLOB '[0-9]*' AND NOT external_id GLOB '*[^0-9]*'`;
|
|
@@ -6011,7 +6012,7 @@ var forgetMail = /* @__PURE__ */ __name((database, cutoff, now) => {
|
|
|
6011
6012
|
return [...folders].map(([account, count3]) => ({ account, folders: count3 }));
|
|
6012
6013
|
}, "forgetMail");
|
|
6013
6014
|
|
|
6014
|
-
// 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
|
|
6015
6016
|
var SQLITE3_MINIMUM = [3, 43, 0];
|
|
6016
6017
|
var STORE_PARTS = ["", "-wal", "-shm"];
|
|
6017
6018
|
var RECOVER_LOCK = ".recover-lock";
|
|
@@ -6542,7 +6543,7 @@ var recoverLocked = /* @__PURE__ */ __name(async ({ path, command, version, sqli
|
|
|
6542
6543
|
}
|
|
6543
6544
|
}, "recoverLocked");
|
|
6544
6545
|
|
|
6545
|
-
// 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
|
|
6546
6547
|
var COUNTED = [
|
|
6547
6548
|
"accounts",
|
|
6548
6549
|
"chats",
|
|
@@ -6698,7 +6699,7 @@ var storeRecoverCommand = /* @__PURE__ */ __name(({ command, version }) => {
|
|
|
6698
6699
|
return recover;
|
|
6699
6700
|
}, "storeRecoverCommand");
|
|
6700
6701
|
|
|
6701
|
-
// 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
|
|
6702
6703
|
var pendingIfKnown = /* @__PURE__ */ __name((database) => database.prepare("SELECT 1 FROM pragma_table_info('messages') WHERE name = 'normalized_text'").get() ? pendingNormalization(database) : null, "pendingIfKnown");
|
|
6703
6704
|
var bytesOf = /* @__PURE__ */ __name((path) => existsSync4(path) ? statSync3(path).size : 0, "bytesOf");
|
|
6704
6705
|
var messageOf = /* @__PURE__ */ __name((error) => error instanceof Error ? error.message : String(error), "messageOf");
|
|
@@ -6744,7 +6745,7 @@ var storeInfoCommand = /* @__PURE__ */ __name(() => annotate(new Command("info")
|
|
|
6744
6745
|
renderAnswer(this, outputFor(this), itemOf(answer));
|
|
6745
6746
|
}), "storeInfoCommand");
|
|
6746
6747
|
|
|
6747
|
-
// 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
|
|
6748
6749
|
var ENCRYPT_OPTION = [
|
|
6749
6750
|
"--encrypt",
|
|
6750
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"
|
|
@@ -6763,7 +6764,7 @@ var passwordOf = /* @__PURE__ */ __name(async (command, { twice }) => {
|
|
|
6763
6764
|
return password;
|
|
6764
6765
|
}, "passwordOf");
|
|
6765
6766
|
|
|
6766
|
-
// 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
|
|
6767
6768
|
import { existsSync as existsSync5, readFileSync as readFileSync2 } from "node:fs";
|
|
6768
6769
|
import { join as join2 } from "node:path";
|
|
6769
6770
|
var REPLY_ACTIONS = ["reply", "task"];
|
|
@@ -6934,7 +6935,7 @@ var problem = /* @__PURE__ */ __name((issue) => {
|
|
|
6934
6935
|
}, "problem");
|
|
6935
6936
|
var broken = /* @__PURE__ */ __name((path, why) => new CliError("configuration_error", `the reply rules ${path} cannot be read (${why}) \u2014 fix the file`), "broken");
|
|
6936
6937
|
|
|
6937
|
-
// 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
|
|
6938
6939
|
import { existsSync as existsSync6, readFileSync as readFileSync3 } from "node:fs";
|
|
6939
6940
|
import { join as join3 } from "node:path";
|
|
6940
6941
|
var ANSWERED_KEPT = 1e3;
|
|
@@ -6987,7 +6988,7 @@ var recordReply = /* @__PURE__ */ __name((state, rule2, message, now) => {
|
|
|
6987
6988
|
}, "recordReply");
|
|
6988
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");
|
|
6989
6990
|
|
|
6990
|
-
// 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
|
|
6991
6992
|
var skip = /* @__PURE__ */ __name((why) => ({ skip: why }), "skip");
|
|
6992
6993
|
var decide = /* @__PURE__ */ __name((rule2, incoming, state, now) => {
|
|
6993
6994
|
const { message, chat, owner, sender } = incoming;
|
|
@@ -7093,10 +7094,10 @@ var filled = /* @__PURE__ */ __name((template2, senderName) => {
|
|
|
7093
7094
|
return template2.replaceAll("{firstName}", name.split(/\s+/)[0] ?? name).replaceAll("{name}", name);
|
|
7094
7095
|
}, "filled");
|
|
7095
7096
|
|
|
7096
|
-
// 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
|
|
7097
7098
|
var import_liquidjs2 = __toESM(require_liquid_node(), 1);
|
|
7098
7099
|
|
|
7099
|
-
// 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
|
|
7100
7101
|
var import_liquidjs = __toESM(require_liquid_node(), 1);
|
|
7101
7102
|
var safeLiquid = /* @__PURE__ */ __name((limits) => {
|
|
7102
7103
|
const engine = new import_liquidjs.Liquid({
|
|
@@ -7123,7 +7124,7 @@ var safeLiquid = /* @__PURE__ */ __name((limits) => {
|
|
|
7123
7124
|
return engine;
|
|
7124
7125
|
}, "safeLiquid");
|
|
7125
7126
|
|
|
7126
|
-
// 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
|
|
7127
7128
|
var TEMPLATE_LIMITS = {
|
|
7128
7129
|
parse: 32768,
|
|
7129
7130
|
renders: 2e3,
|
|
@@ -7262,7 +7263,7 @@ var renderReplyTemplate = /* @__PURE__ */ __name(async (reply, input) => {
|
|
|
7262
7263
|
}
|
|
7263
7264
|
}, "renderReplyTemplate");
|
|
7264
7265
|
|
|
7265
|
-
// 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
|
|
7266
7267
|
var DRY_RUN_DAYS = 7;
|
|
7267
7268
|
var PAGE = 500;
|
|
7268
7269
|
var dryRun = /* @__PURE__ */ __name(async (store, account, rules, { since, until = Date.now(), only, audience, render }) => {
|
|
@@ -7376,7 +7377,7 @@ var storedSince = /* @__PURE__ */ __name(async (store, account, chat, since) =>
|
|
|
7376
7377
|
}
|
|
7377
7378
|
}, "storedSince");
|
|
7378
7379
|
|
|
7379
|
-
// 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
|
|
7380
7381
|
var AI_PROVIDERS = ["anthropic", "openai", "ollama"];
|
|
7381
7382
|
var DEFAULT_BASE_URL = {
|
|
7382
7383
|
anthropic: "https://api.anthropic.com",
|
|
@@ -7526,7 +7527,7 @@ var checkAi = /* @__PURE__ */ __name(async (deps) => {
|
|
|
7526
7527
|
}
|
|
7527
7528
|
}, "checkAi");
|
|
7528
7529
|
|
|
7529
|
-
// 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
|
|
7530
7531
|
var HOSTED = {
|
|
7531
7532
|
openai: "https://api.openai.com/v1",
|
|
7532
7533
|
anthropic: "https://api.anthropic.com"
|
|
@@ -7547,7 +7548,7 @@ var purposeModel = /* @__PURE__ */ __name((settings, purpose, deps) => {
|
|
|
7547
7548
|
return shared ? { target: shared.target, key: /* @__PURE__ */ __name(() => shared.key, "key"), shared: shared.setting } : void 0;
|
|
7548
7549
|
}, "purposeModel");
|
|
7549
7550
|
|
|
7550
|
-
// 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
|
|
7551
7552
|
import { existsSync as existsSync7, readFileSync as readFileSync4 } from "node:fs";
|
|
7552
7553
|
import { join as join4 } from "node:path";
|
|
7553
7554
|
var shape = strictObject({
|
|
@@ -7572,7 +7573,7 @@ var mayModelReply = /* @__PURE__ */ __name((path, provider, chat) => {
|
|
|
7572
7573
|
return consent.provider === provider && !consent.deniedChats.includes(chat);
|
|
7573
7574
|
}, "mayModelReply");
|
|
7574
7575
|
|
|
7575
|
-
// 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
|
|
7576
7577
|
var replyRenderer = /* @__PURE__ */ __name((app, profile, settings, env, warn, options = {
|
|
7577
7578
|
ai: true
|
|
7578
7579
|
}) => async (rule2, message, chat, now) => {
|
|
@@ -7620,7 +7621,7 @@ var replyRenderer = /* @__PURE__ */ __name((app, profile, settings, env, warn, o
|
|
|
7620
7621
|
return result2;
|
|
7621
7622
|
}, "replyRenderer");
|
|
7622
7623
|
|
|
7623
|
-
// 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
|
|
7624
7625
|
var NOT_ALLOWED = "replies.send is not allow";
|
|
7625
7626
|
var NO_RULES = "no rules";
|
|
7626
7627
|
var ONLY_TASK = "opened a task, sent nothing";
|
|
@@ -7713,7 +7714,7 @@ var replyTo = /* @__PURE__ */ __name(async (deps, message) => {
|
|
|
7713
7714
|
return { skip: why };
|
|
7714
7715
|
}, "replyTo");
|
|
7715
7716
|
|
|
7716
|
-
// 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
|
|
7717
7718
|
var START_SYNC_DELAY_MS = 3e4;
|
|
7718
7719
|
var START_SYNC_BUDGET_MS = 5 * 6e4;
|
|
7719
7720
|
var START_SYNC_WINDOW_MS = 7 * 864e5;
|
|
@@ -7790,7 +7791,7 @@ var startSync = /* @__PURE__ */ __name(({ chats, newestHeld, fetch, note, warn,
|
|
|
7790
7791
|
};
|
|
7791
7792
|
}, "startSync");
|
|
7792
7793
|
|
|
7793
|
-
// 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
|
|
7794
7795
|
var FIRST_FETCH_MS = 6e4;
|
|
7795
7796
|
var DAY_MS = 864e5;
|
|
7796
7797
|
var memberFetches = /* @__PURE__ */ __name(({ withStore, fetch, warn, firstMs = FIRST_FETCH_MS, everyMs = DAY_MS }) => {
|
|
@@ -7844,7 +7845,7 @@ var memberFetches = /* @__PURE__ */ __name(({ withStore, fetch, warn, firstMs =
|
|
|
7844
7845
|
};
|
|
7845
7846
|
}, "memberFetches");
|
|
7846
7847
|
|
|
7847
|
-
// 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
|
|
7848
7849
|
var record2 = /* @__PURE__ */ __name((context, app, severity, attributes) => recordLogFor(context.streams.diagnostic, app, { command: currentRun().command || "serve" })[severity](attributes), "record");
|
|
7849
7850
|
var noticeFor = /* @__PURE__ */ __name((context, app, severity = "warn") => ({ text, ...attributes }) => {
|
|
7850
7851
|
if (context.format === "pretty") {
|
|
@@ -7877,7 +7878,7 @@ var recordDiagnostics = /* @__PURE__ */ __name((context, app) => {
|
|
|
7877
7878
|
return context;
|
|
7878
7879
|
}, "recordDiagnostics");
|
|
7879
7880
|
|
|
7880
|
-
// 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
|
|
7881
7882
|
import { existsSync as existsSync8, readFileSync as readFileSync5, realpathSync as realpathSync2 } from "node:fs";
|
|
7882
7883
|
import { dirname as dirname2, join as join5 } from "node:path";
|
|
7883
7884
|
var OUTDATED_CHECK_MS = 6e4;
|
|
@@ -7963,7 +7964,7 @@ var watchOutdated = /* @__PURE__ */ __name(({ check: check2, onOutdated, everyMs
|
|
|
7963
7964
|
};
|
|
7964
7965
|
}, "watchOutdated");
|
|
7965
7966
|
|
|
7966
|
-
// 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
|
|
7967
7968
|
var STEMS_EVERY_MS = 3e4;
|
|
7968
7969
|
var STEMS_SLICE_MS = 2e3;
|
|
7969
7970
|
var stemFills = /* @__PURE__ */ __name(({ withStore, warn, everyMs = STEMS_EVERY_MS, sliceMs = STEMS_SLICE_MS }) => {
|
|
@@ -8003,7 +8004,7 @@ var stemFills = /* @__PURE__ */ __name(({ withStore, warn, everyMs = STEMS_EVERY
|
|
|
8003
8004
|
};
|
|
8004
8005
|
}, "stemFills");
|
|
8005
8006
|
|
|
8006
|
-
// 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
|
|
8007
8008
|
var defined = /* @__PURE__ */ __name((value) => Object.fromEntries(Object.entries(value).filter(([, one]) => one !== void 0)), "defined");
|
|
8008
8009
|
var attachmentItem = /* @__PURE__ */ __name((attachment) => defined({
|
|
8009
8010
|
kind: attachment.kind,
|
|
@@ -8099,7 +8100,7 @@ var viewOf = /* @__PURE__ */ __name((context, messenger) => ({
|
|
|
8099
8100
|
locale: messenger.app.locale
|
|
8100
8101
|
}), "viewOf");
|
|
8101
8102
|
|
|
8102
|
-
// 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
|
|
8103
8104
|
var observed = /* @__PURE__ */ __name((value) => ({
|
|
8104
8105
|
value: value.value,
|
|
8105
8106
|
observed_at: value.observedAt,
|
|
@@ -8166,7 +8167,7 @@ var watchEventItem = /* @__PURE__ */ __name((value, account) => {
|
|
|
8166
8167
|
}
|
|
8167
8168
|
}, "watchEventItem");
|
|
8168
8169
|
|
|
8169
|
-
// 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
|
|
8170
8171
|
var watchCommand = /* @__PURE__ */ __name((messenger) => annotate(new Command("watch"), {
|
|
8171
8172
|
output: { entity: "watch_item" },
|
|
8172
8173
|
effects: REMOTE_READ,
|
|
@@ -8321,7 +8322,8 @@ var describe = /* @__PURE__ */ __name((event, render) => {
|
|
|
8321
8322
|
}
|
|
8322
8323
|
}, "describe");
|
|
8323
8324
|
|
|
8324
|
-
// 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;
|
|
8325
8327
|
var serveCommand = /* @__PURE__ */ __name((messenger) => {
|
|
8326
8328
|
const command = annotate(new Command("serve"), {
|
|
8327
8329
|
output: { entity: "serve_summary" },
|
|
@@ -8344,9 +8346,18 @@ var serveCommand = /* @__PURE__ */ __name((messenger) => {
|
|
|
8344
8346
|
throw new CliError("validation_error", `${messenger.app.command} serve is already running for profile ${context.profile} (PID ${held.pid}, since ${held.startedAt})`);
|
|
8345
8347
|
}
|
|
8346
8348
|
let relaying;
|
|
8349
|
+
let current;
|
|
8350
|
+
const stamp = /* @__PURE__ */ __name(() => {
|
|
8351
|
+
try {
|
|
8352
|
+
markCurrent(path);
|
|
8353
|
+
} catch {
|
|
8354
|
+
}
|
|
8355
|
+
}, "stamp");
|
|
8347
8356
|
const onReady = /* @__PURE__ */ __name(() => {
|
|
8348
8357
|
const listening2 = { pid: process.pid, startedAt, version, listeningAt: (/* @__PURE__ */ new Date()).toISOString() };
|
|
8349
8358
|
holdLock(path, listening2);
|
|
8359
|
+
stamp();
|
|
8360
|
+
current ??= setInterval(stamp, CURRENT_EVERY_MS).unref();
|
|
8350
8361
|
note({
|
|
8351
8362
|
code: "listening",
|
|
8352
8363
|
text: `listening for profile ${context.profile}, catching up on what arrived while it was down`
|
|
@@ -8467,6 +8478,10 @@ var serveCommand = /* @__PURE__ */ __name((messenger) => {
|
|
|
8467
8478
|
}, "connected")
|
|
8468
8479
|
});
|
|
8469
8480
|
} finally {
|
|
8481
|
+
if (current) {
|
|
8482
|
+
clearInterval(current);
|
|
8483
|
+
stamp();
|
|
8484
|
+
}
|
|
8470
8485
|
watch.stop();
|
|
8471
8486
|
await relaying;
|
|
8472
8487
|
await relay?.close();
|
|
@@ -8607,7 +8622,7 @@ var tasking = /* @__PURE__ */ __name((context, warn) => {
|
|
|
8607
8622
|
};
|
|
8608
8623
|
}, "tasking");
|
|
8609
8624
|
|
|
8610
|
-
// 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
|
|
8611
8626
|
import { existsSync as existsSync9 } from "node:fs";
|
|
8612
8627
|
var PATH = "store tables list";
|
|
8613
8628
|
var STORE_TABLES_QUERY = {
|
|
@@ -8650,7 +8665,7 @@ var storeTablesCommand = /* @__PURE__ */ __name((owner) => {
|
|
|
8650
8665
|
return tables;
|
|
8651
8666
|
}, "storeTablesCommand");
|
|
8652
8667
|
|
|
8653
|
-
// 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
|
|
8654
8669
|
var SEARCH_INDEXES = ["messages_fts", "chats_fts", "identities_fts"];
|
|
8655
8670
|
var WORD_INDEX = "message_words";
|
|
8656
8671
|
var schemaOf = /* @__PURE__ */ __name((database) => {
|
|
@@ -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");
|