@wirecat/drive-cli 0.67.0 → 0.69.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/dist/bin/drive.js +2 -2
- package/dist/bundle/{all-profiles-DVZUVAPQ.js → all-profiles-B4A737YW.js} +20 -30
- package/dist/bundle/{anthropic-Y45C45O2.js → anthropic-RZGPDESM.js} +3 -3
- package/dist/bundle/{app-server-GTXUOUGD.js → app-server-OWEW7DY5.js} +51 -63
- package/dist/bundle/{bun-QVJV76QJ.js → bun-V5QLYBZU.js} +2 -2
- package/dist/bundle/{bun-sqlite-CC7PIAMH.js → bun-sqlite-KHLHXXGH.js} +4 -4
- package/dist/bundle/{chunk-ETAFFY3J.js → chunk-22SH77TG.js} +65 -64
- package/dist/bundle/{chunk-2Y3YBDZX.js → chunk-25FT44S3.js} +1482 -464
- package/dist/bundle/{chunk-YVUAG7RF.js → chunk-2DS2TDGW.js} +29 -28
- package/dist/bundle/{chunk-JJHDV32D.js → chunk-2Q4CB4EI.js} +1 -1
- package/dist/bundle/{chunk-HJF2QGOX.js → chunk-2VFAXC6O.js} +30 -17
- package/dist/bundle/{chunk-ULH3TNUP.js → chunk-376ZGVUZ.js} +4 -4
- package/dist/bundle/{chunk-NWYVOHIX.js → chunk-3RLRJHAI.js} +1646 -976
- package/dist/bundle/{chunk-SXJDCRXE.js → chunk-3URYKAJP.js} +1 -1
- package/dist/bundle/{chunk-7AZCAUST.js → chunk-3YKAFLXY.js} +1 -1
- package/dist/bundle/{chunk-MF46W7PQ.js → chunk-4J5GJJ2I.js} +1 -1
- package/dist/bundle/{chunk-3RG6LL25.js → chunk-4YECZ6CN.js} +11 -11
- package/dist/bundle/{chunk-SJE7UGOW.js → chunk-4ZFO2CVH.js} +4 -4
- package/dist/bundle/{chunk-UFNE57VY.js → chunk-533XOW74.js} +2 -2
- package/dist/bundle/{chunk-6ERQE4FS.js → chunk-5B5NOAIA.js} +100 -55
- package/dist/bundle/{chunk-MW46BLWH.js → chunk-5SJZDEIO.js} +2 -0
- package/dist/bundle/{chunk-RC72RU66.js → chunk-6D44YQ5X.js} +5 -5
- package/dist/bundle/{chunk-2MEVCMBW.js → chunk-6EL5AVXX.js} +3 -5
- package/dist/bundle/{chunk-ZU5VQYNY.js → chunk-6XNTELM5.js} +1 -1
- package/dist/bundle/{chunk-7J2IP3WL.js → chunk-AD7VI3XU.js} +6 -6
- package/dist/bundle/{chunk-Y5WSRG3F.js → chunk-AMQGKMLZ.js} +2 -2
- package/dist/bundle/{chunk-UOAHZV3K.js → chunk-BBJVV4E2.js} +28 -29
- package/dist/bundle/{chunk-XZCF5XU7.js → chunk-BVVXYZSU.js} +5 -5
- package/dist/bundle/{chunk-E3XA56TS.js → chunk-CAQ5GW3A.js} +1 -1
- package/dist/bundle/{chunk-MEQNAZ6R.js → chunk-CDSB7WVG.js} +323 -12
- package/dist/bundle/{chunk-P6A77LMP.js → chunk-CU6RATZH.js} +5 -7
- package/dist/bundle/{chunk-MEY7URZZ.js → chunk-CZ4UEXCE.js} +4 -4
- package/dist/bundle/{chunk-JLUQZZ26.js → chunk-E7URRFBB.js} +7 -7
- package/dist/bundle/{chunk-JCNEPYQZ.js → chunk-EL2E3ABX.js} +12 -12
- package/dist/bundle/{chunk-BHSLMJF7.js → chunk-EWUQIUTB.js} +4 -4
- package/dist/bundle/{chunk-4VH7M2OD.js → chunk-F5UUJU6R.js} +2 -2
- package/dist/bundle/{chunk-CWDC6QJM.js → chunk-GHFBT2ZM.js} +4 -4
- package/dist/bundle/{chunk-2PIA45FC.js → chunk-GK6KXBL6.js} +1 -1
- package/dist/bundle/{chunk-T2VAEDJS.js → chunk-GTDCP5OG.js} +3 -3
- package/dist/bundle/{chunk-IRULPE5M.js → chunk-HEBZCKMU.js} +1695 -672
- package/dist/bundle/{chunk-EXWOOST5.js → chunk-I55XYREN.js} +667 -230
- package/dist/bundle/{chunk-5TSILGTO.js → chunk-IQ2QU2X6.js} +1613 -1101
- package/dist/bundle/{chunk-WKIQKGOF.js → chunk-KUQDBWPU.js} +42 -32
- package/dist/bundle/{chunk-AJ3DFPRT.js → chunk-L342KHIZ.js} +105 -1
- package/dist/bundle/{chunk-JY2GZDJL.js → chunk-LRCSDAYK.js} +3 -3
- package/dist/bundle/{chunk-U2ERT45N.js → chunk-LUZRVBQR.js} +4 -4
- package/dist/bundle/{chunk-AAZPDWRD.js → chunk-MHXZ62CU.js} +1 -1
- package/dist/bundle/{chunk-ZK46UHDP.js → chunk-N4ACIIQB.js} +2 -2
- package/dist/bundle/{chunk-FS2PG2PE.js → chunk-NVDR72GP.js} +19 -19
- package/dist/bundle/{chunk-VZ5KETIX.js → chunk-O6PD7RZY.js} +2 -2
- package/dist/bundle/{chunk-PDHN4GHU.js → chunk-OOIAJRKQ.js} +1 -1
- package/dist/bundle/{chunk-JEMBW6IO.js → chunk-OUM4ZO53.js} +1 -1
- package/dist/bundle/{chunk-QOKPRFHM.js → chunk-PB6NWKH3.js} +2 -2
- package/dist/bundle/{chunk-C72WYRXD.js → chunk-QJGFQRTL.js} +10 -10
- package/dist/bundle/chunk-RLGQMMYE.js +707 -0
- package/dist/bundle/{chunk-4G7WQNG7.js → chunk-RWQ7T4Y5.js} +2 -2
- package/dist/bundle/{chunk-ZH4H5XTA.js → chunk-SEJBS7SI.js} +1 -1
- package/dist/bundle/{chunk-OOBSSU2G.js → chunk-SY2HLH5R.js} +33 -19
- package/dist/bundle/{chunk-LSAIXPAX.js → chunk-SYUXKV2E.js} +1 -1
- package/dist/bundle/{chunk-FOMQ4MG3.js → chunk-T4FMXDDV.js} +2 -2
- package/dist/bundle/{chunk-5DMPGTNR.js → chunk-T6X6EZ5N.js} +3 -3
- package/dist/bundle/{chunk-RLH6BOEG.js → chunk-TZ75K6R7.js} +6 -6
- package/dist/bundle/{chunk-D4MVEOU2.js → chunk-U3RXH6RY.js} +1 -1
- package/dist/bundle/{chunk-ABJQ6IDU.js → chunk-V4FMN5A6.js} +16 -16
- package/dist/bundle/{chunk-WBKYZZQT.js → chunk-VUPWDCYV.js} +1 -1
- package/dist/bundle/{chunk-V7E25BUU.js → chunk-WNMPIRRF.js} +98 -6
- package/dist/bundle/{chunk-DAFKV6DJ.js → chunk-WOUIHZRI.js} +13 -15
- package/dist/bundle/{chunk-WWW7YTFG.js → chunk-WQOGHND4.js} +1 -1
- package/dist/bundle/{chunk-NFIR346J.js → chunk-XUHQ7DVT.js} +1 -1
- package/dist/bundle/{chunk-YI4DXASF.js → chunk-XVH3WZSZ.js} +49 -55
- package/dist/bundle/{chunk-ZEPDEFVT.js → chunk-ZBYKCVSV.js} +1 -1
- package/dist/bundle/{chunk-LXRBTXCZ.js → chunk-ZUG67442.js} +2 -2
- package/dist/bundle/{cli-U4LSBYDV.js → cli-BS4L3HAP.js} +100 -70
- package/dist/bundle/{command-contract-UU5T24ZZ.js → command-contract-HYURWSD6.js} +16 -17
- package/dist/bundle/{command-server-entry-PK6FBUPO.js → command-server-entry-CJ2CV7ZV.js} +23 -24
- package/dist/bundle/{decode-3ZE6NBKV.js → decode-E2NM5SSM.js} +3 -3
- package/dist/bundle/drive.js +4 -4
- package/dist/bundle/{echarts-6FWNCNXK.js → echarts-QIXLXS3G.js} +2 -2
- package/dist/bundle/{embed-DGYBBZUW.js → embed-YNZW5X6M.js} +4 -4
- package/dist/bundle/{embedder-O7A6VMWI.js → embedder-LRC2PKTS.js} +7 -7
- package/dist/bundle/{entry-CDJ2QSU2.js → entry-2IMSWRJU.js} +7 -7
- package/dist/bundle/{first-run-UOQW7DN5.js → first-run-7CPHQDM5.js} +7 -7
- package/dist/bundle/first-screen-OKZ7GMFR.js +38 -0
- package/dist/bundle/{google-HPX52KMC.js → google-WDKDBDD4.js} +15 -15
- package/dist/bundle/{google-api-HIMN4XL5.js → google-api-7JDZDCWE.js} +52 -53
- package/dist/bundle/{grants-RO42I6E4.js → grants-AU25GWKF.js} +57 -58
- package/dist/bundle/{identity-NFGHDPLL.js → identity-E43WKN5F.js} +1 -1
- package/dist/bundle/{instructions-6JAQYCM6.js → instructions-MD2RZT5Z.js} +1 -1
- package/dist/bundle/{login-RZOQN63N.js → login-RBDJPQAG.js} +57 -58
- package/dist/bundle/{node-KSIX3GIH.js → node-IEVT2FSJ.js} +2 -2
- package/dist/bundle/{node-sqlite-4FJ6WJXN.js → node-sqlite-IENH4TRX.js} +5 -5
- package/dist/bundle/{oauth-BKZAMFKK.js → oauth-3JGSN47Z.js} +5 -5
- package/dist/bundle/{open-4AQJGH42.js → open-TZ5H7NYM.js} +3 -3
- package/dist/bundle/{openai-24F2OX55.js → openai-XF2KB7W2.js} +14 -14
- package/dist/bundle/{process-7NOA2T7H.js → process-6Q23D3TO.js} +1 -1
- package/dist/bundle/{program-7JHMLDEX.js → program-D5XWOHV5.js} +88 -88
- package/dist/bundle/{prompt-NM66MAZ4.js → prompt-KUC5D4GX.js} +3 -3
- package/dist/bundle/{recognize-DBKV2JYZ.js → recognize-DPFW7HO3.js} +2 -2
- package/dist/bundle/{remote-ABWUTBVB.js → remote-MODTSUNH.js} +8 -8
- package/dist/bundle/{rerank-FQAU4ENY.js → rerank-JK7SERLE.js} +5 -5
- package/dist/bundle/{serve-QLJG4QZD.js → serve-BV2WHZLW.js} +7 -7
- package/dist/bundle/server-6YDI4Y36.js +72 -0
- package/dist/bundle/{server-VGZNK5XD.js → server-N3WPEU7Z.js} +47 -44
- package/dist/bundle/{services-5KARVUHK.js → services-SV6CFUCS.js} +42 -27
- package/dist/bundle/{sqlite-runtime-ILF6EFQJ.js → sqlite-runtime-RZ5PLZVQ.js} +4 -4
- package/dist/bundle/{state-R2M56GPU.js → state-RAZIREVG.js} +4 -4
- package/dist/bundle/{store-DA4K7HWW.js → store-2DLGLYS6.js} +18 -14
- package/dist/bundle/{store-2OBVMUQL.js → store-DQKJKX2G.js} +12 -12
- package/dist/bundle/store-maintenance-command-UJ5F5L4H.js +64 -0
- package/dist/bundle/tokens-LY3WML55.js +110 -0
- package/dist/policy.d.ts +2 -0
- package/dist/policy.d.ts.map +1 -1
- package/dist/policy.js +2 -1
- package/dist/policy.js.map +1 -1
- package/dist/program.d.ts.map +1 -1
- package/dist/program.js +3 -2
- package/dist/program.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +2 -2
- package/dist/bundle/chunk-AZKFZ7J7.js +0 -76
- package/dist/bundle/chunk-JO7BJYAP.js +0 -1235
- package/dist/bundle/chunk-MBLB4TQI.js +0 -1316
- package/dist/bundle/first-screen-SNDV4YKF.js +0 -39
- package/dist/bundle/server-NUBLY5SV.js +0 -74
- package/dist/bundle/store-maintenance-command-KSIPI5B5.js +0 -65
- package/dist/bundle/tokens-VQDGSHRB.js +0 -111
|
@@ -2,20 +2,17 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
sharedModel
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-TZ75K6R7.js";
|
|
6
6
|
import {
|
|
7
7
|
answerOf,
|
|
8
8
|
messengerContext
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-2DS2TDGW.js";
|
|
10
10
|
import {
|
|
11
11
|
chatEventAnswer,
|
|
12
12
|
memberAnswer,
|
|
13
13
|
pollVoteAnswer,
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
typedQuery,
|
|
17
|
-
withQuery
|
|
18
|
-
} from "./chunk-JO7BJYAP.js";
|
|
14
|
+
serveRelay
|
|
15
|
+
} from "./chunk-RLGQMMYE.js";
|
|
19
16
|
import {
|
|
20
17
|
FETCHING,
|
|
21
18
|
RULES_VERSION,
|
|
@@ -25,17 +22,20 @@ import {
|
|
|
25
22
|
onlineDeps,
|
|
26
23
|
openRequestTask,
|
|
27
24
|
patiently,
|
|
25
|
+
queryTerms,
|
|
28
26
|
refuseLockedOutput,
|
|
29
27
|
senderIsMe,
|
|
30
28
|
servicesFor,
|
|
31
|
-
syncsOneChat
|
|
32
|
-
|
|
29
|
+
syncsOneChat,
|
|
30
|
+
typedQuery,
|
|
31
|
+
withQuery
|
|
32
|
+
} from "./chunk-HEBZCKMU.js";
|
|
33
33
|
import {
|
|
34
34
|
embeddingKeys,
|
|
35
35
|
endpointKeyName,
|
|
36
36
|
modelGateway,
|
|
37
37
|
withTimeLimit
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-5B5NOAIA.js";
|
|
39
39
|
import {
|
|
40
40
|
stringWidth,
|
|
41
41
|
wrapAnsi
|
|
@@ -46,7 +46,7 @@ import {
|
|
|
46
46
|
releaseLock,
|
|
47
47
|
servingProfiles,
|
|
48
48
|
takeLock
|
|
49
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-T6X6EZ5N.js";
|
|
50
50
|
import {
|
|
51
51
|
QUICK_HEALTH_CHECKS,
|
|
52
52
|
fts5Tables,
|
|
@@ -54,7 +54,7 @@ import {
|
|
|
54
54
|
lossUnknown,
|
|
55
55
|
storeDamageReport,
|
|
56
56
|
storeHealth
|
|
57
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-V4FMN5A6.js";
|
|
58
58
|
import {
|
|
59
59
|
Command,
|
|
60
60
|
LOCAL_READ,
|
|
@@ -62,37 +62,35 @@ import {
|
|
|
62
62
|
REMOTE_READ,
|
|
63
63
|
REMOTE_WRITE,
|
|
64
64
|
annotate,
|
|
65
|
+
codeOf,
|
|
65
66
|
commandAt,
|
|
66
67
|
destroysNothing,
|
|
67
68
|
environmentOf,
|
|
68
69
|
grantsAuthority,
|
|
69
70
|
itemOf,
|
|
70
71
|
jsonlRecords,
|
|
72
|
+
levelFor,
|
|
71
73
|
lineOf,
|
|
72
74
|
listOf,
|
|
73
75
|
nextStep,
|
|
74
76
|
outputFor,
|
|
77
|
+
parseDuration,
|
|
75
78
|
recalledAccount,
|
|
76
79
|
recordLogFor,
|
|
77
80
|
renderAnswer,
|
|
78
81
|
snakeKeys,
|
|
79
82
|
storeTable,
|
|
80
83
|
withoutProviderRefs
|
|
81
|
-
} from "./chunk-
|
|
82
|
-
import {
|
|
83
|
-
codeOf,
|
|
84
|
-
levelFor,
|
|
85
|
-
parseDuration
|
|
86
|
-
} from "./chunk-MBLB4TQI.js";
|
|
84
|
+
} from "./chunk-25FT44S3.js";
|
|
87
85
|
import {
|
|
88
86
|
modelTarget
|
|
89
|
-
} from "./chunk-
|
|
87
|
+
} from "./chunk-F5UUJU6R.js";
|
|
90
88
|
import {
|
|
91
89
|
holdersOf
|
|
92
|
-
} from "./chunk-
|
|
90
|
+
} from "./chunk-WQOGHND4.js";
|
|
93
91
|
import {
|
|
94
92
|
readSecret
|
|
95
|
-
} from "./chunk-
|
|
93
|
+
} from "./chunk-T4FMXDDV.js";
|
|
96
94
|
import {
|
|
97
95
|
CORPORA,
|
|
98
96
|
MIGRATIONS,
|
|
@@ -127,10 +125,10 @@ import {
|
|
|
127
125
|
storeClients,
|
|
128
126
|
storeContents,
|
|
129
127
|
vectorIndexCounts
|
|
130
|
-
} from "./chunk-
|
|
128
|
+
} from "./chunk-3RLRJHAI.js";
|
|
131
129
|
import {
|
|
132
130
|
openCache
|
|
133
|
-
} from "./chunk-
|
|
131
|
+
} from "./chunk-6D44YQ5X.js";
|
|
134
132
|
import {
|
|
135
133
|
currentRun,
|
|
136
134
|
formatLocator,
|
|
@@ -139,21 +137,21 @@ import {
|
|
|
139
137
|
readHealthMark,
|
|
140
138
|
readJournalMark,
|
|
141
139
|
recordDeepCheck
|
|
142
|
-
} from "./chunk-
|
|
140
|
+
} from "./chunk-I55XYREN.js";
|
|
143
141
|
import {
|
|
144
142
|
queryFieldsOf
|
|
145
143
|
} from "./chunk-UPCEHSIZ.js";
|
|
146
144
|
import {
|
|
147
145
|
failureKey,
|
|
148
146
|
isStoreDamage
|
|
149
|
-
} from "./chunk-
|
|
147
|
+
} from "./chunk-3YKAFLXY.js";
|
|
150
148
|
import {
|
|
151
149
|
storePath
|
|
152
|
-
} from "./chunk-
|
|
150
|
+
} from "./chunk-RWQ7T4Y5.js";
|
|
153
151
|
import {
|
|
154
152
|
resolvePaths,
|
|
155
153
|
writeSecurely
|
|
156
|
-
} from "./chunk-
|
|
154
|
+
} from "./chunk-5SJZDEIO.js";
|
|
157
155
|
import {
|
|
158
156
|
singleLine,
|
|
159
157
|
visibleControls
|
|
@@ -5521,11 +5519,11 @@ var require_liquid_node = __commonJS({
|
|
|
5521
5519
|
}
|
|
5522
5520
|
});
|
|
5523
5521
|
|
|
5524
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5522
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/cli/messenger/store-maintenance-command.js
|
|
5525
5523
|
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";
|
|
5526
5524
|
import { dirname as dirname3, resolve } from "node:path";
|
|
5527
5525
|
|
|
5528
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5526
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/sealed.js
|
|
5529
5527
|
import { createCipheriv, createDecipheriv, createHash, randomBytes, scrypt, timingSafeEqual } from "node:crypto";
|
|
5530
5528
|
import { closeSync, createReadStream, createWriteStream, existsSync, openSync, readSync, renameSync, rmSync, statSync } from "node:fs";
|
|
5531
5529
|
import { Transform } from "node:stream";
|
|
@@ -5632,7 +5630,7 @@ var unsealFile = /* @__PURE__ */ __name(async (from, to, password) => {
|
|
|
5632
5630
|
renameSync(pending, to);
|
|
5633
5631
|
}, "unsealFile");
|
|
5634
5632
|
|
|
5635
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5633
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/store/compatibility.js
|
|
5636
5634
|
var SPEAKS = MIGRATIONS.at(-1)?.version ?? 0;
|
|
5637
5635
|
var fileSchemaOf = /* @__PURE__ */ __name((database) => {
|
|
5638
5636
|
const tracked = database.prepare("SELECT 1 FROM sqlite_master WHERE name = 'schema_migrations'").get();
|
|
@@ -5656,7 +5654,7 @@ var compatibilityOf = /* @__PURE__ */ __name((file2, migrations = MIGRATIONS) =>
|
|
|
5656
5654
|
};
|
|
5657
5655
|
}, "compatibilityOf");
|
|
5658
5656
|
|
|
5659
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5657
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/store/repair.js
|
|
5660
5658
|
import { createHash as createHash2 } from "node:crypto";
|
|
5661
5659
|
var COPY_MARK = "__repair_";
|
|
5662
5660
|
var COPY_NAME = /__repair_[0-9a-f]{8}(_\d+)?$/;
|
|
@@ -5910,19 +5908,19 @@ var deleteCopy = /* @__PURE__ */ __name((database, name) => {
|
|
|
5910
5908
|
return found;
|
|
5911
5909
|
}, "deleteCopy");
|
|
5912
5910
|
|
|
5913
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5911
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/cli/store-info.js
|
|
5914
5912
|
import { existsSync as existsSync4, statSync as statSync3 } from "node:fs";
|
|
5915
5913
|
|
|
5916
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5914
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/cli/store-recover.js
|
|
5917
5915
|
import { existsSync as existsSync3 } from "node:fs";
|
|
5918
5916
|
|
|
5919
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5917
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/store/recover.js
|
|
5920
5918
|
import { execFileSync, spawn } from "node:child_process";
|
|
5921
5919
|
import { existsSync as existsSync2, readFileSync, realpathSync, renameSync as renameSync2, rmSync as rmSync2, statfsSync, statSync as statSync2, writeFileSync } from "node:fs";
|
|
5922
5920
|
import { basename, dirname, join } from "node:path";
|
|
5923
5921
|
import { Transform as Transform2 } from "node:stream";
|
|
5924
5922
|
|
|
5925
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5923
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/store/refill.js
|
|
5926
5924
|
var REFILL_MARGIN_MS = 864e5;
|
|
5927
5925
|
var TIME_KEYS = 1e12;
|
|
5928
5926
|
var integerId = `external_id GLOB '[0-9]*' AND NOT external_id GLOB '*[^0-9]*'`;
|
|
@@ -6002,7 +6000,7 @@ var forgetMail = /* @__PURE__ */ __name((database, cutoff, now) => {
|
|
|
6002
6000
|
return [...folders].map(([account, count3]) => ({ account, folders: count3 }));
|
|
6003
6001
|
}, "forgetMail");
|
|
6004
6002
|
|
|
6005
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6003
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/store/recover.js
|
|
6006
6004
|
var SQLITE3_MINIMUM = [3, 43, 0];
|
|
6007
6005
|
var STORE_PARTS = ["", "-wal", "-shm"];
|
|
6008
6006
|
var RECOVER_LOCK = ".recover-lock";
|
|
@@ -6530,7 +6528,7 @@ var recoverLocked = /* @__PURE__ */ __name(async ({ path, command, version, sqli
|
|
|
6530
6528
|
}
|
|
6531
6529
|
}, "recoverLocked");
|
|
6532
6530
|
|
|
6533
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6531
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/cli/store-recover.js
|
|
6534
6532
|
var COUNTED = [
|
|
6535
6533
|
"accounts",
|
|
6536
6534
|
"chats",
|
|
@@ -6686,7 +6684,7 @@ var storeRecoverCommand = /* @__PURE__ */ __name(({ command, version }) => {
|
|
|
6686
6684
|
return recover;
|
|
6687
6685
|
}, "storeRecoverCommand");
|
|
6688
6686
|
|
|
6689
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6687
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/cli/store-info.js
|
|
6690
6688
|
var pendingIfKnown = /* @__PURE__ */ __name((database) => database.prepare("SELECT 1 FROM pragma_table_info('messages') WHERE name = 'normalized_text'").get() ? pendingNormalization(database) : null, "pendingIfKnown");
|
|
6691
6689
|
var bytesOf = /* @__PURE__ */ __name((path) => existsSync4(path) ? statSync3(path).size : 0, "bytesOf");
|
|
6692
6690
|
var messageOf = /* @__PURE__ */ __name((error) => error instanceof Error ? error.message : String(error), "messageOf");
|
|
@@ -6736,7 +6734,7 @@ var sharedStoreCommand = /* @__PURE__ */ __name((app) => {
|
|
|
6736
6734
|
return app ? store.addCommand(storeRecoverCommand(app)) : store;
|
|
6737
6735
|
}, "sharedStoreCommand");
|
|
6738
6736
|
|
|
6739
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6737
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/cli/messenger/password.js
|
|
6740
6738
|
var ENCRYPT_OPTION = [
|
|
6741
6739
|
"--encrypt",
|
|
6742
6740
|
"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"
|
|
@@ -6755,7 +6753,7 @@ var passwordOf = /* @__PURE__ */ __name(async (command, { twice }) => {
|
|
|
6755
6753
|
return password;
|
|
6756
6754
|
}, "passwordOf");
|
|
6757
6755
|
|
|
6758
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6756
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/replies/rules.js
|
|
6759
6757
|
import { existsSync as existsSync5, readFileSync as readFileSync2 } from "node:fs";
|
|
6760
6758
|
import { join as join2 } from "node:path";
|
|
6761
6759
|
var REPLY_ACTIONS = ["reply", "task"];
|
|
@@ -6926,7 +6924,7 @@ var problem = /* @__PURE__ */ __name((issue) => {
|
|
|
6926
6924
|
}, "problem");
|
|
6927
6925
|
var broken = /* @__PURE__ */ __name((path, why) => new CliError("configuration_error", `the reply rules ${path} cannot be read (${why}) \u2014 fix the file`), "broken");
|
|
6928
6926
|
|
|
6929
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6927
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/replies/state.js
|
|
6930
6928
|
import { existsSync as existsSync6, readFileSync as readFileSync3 } from "node:fs";
|
|
6931
6929
|
import { join as join3 } from "node:path";
|
|
6932
6930
|
var ANSWERED_KEPT = 1e3;
|
|
@@ -6979,7 +6977,7 @@ var recordReply = /* @__PURE__ */ __name((state, rule2, message, now) => {
|
|
|
6979
6977
|
}, "recordReply");
|
|
6980
6978
|
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");
|
|
6981
6979
|
|
|
6982
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6980
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/replies/decide.js
|
|
6983
6981
|
var skip = /* @__PURE__ */ __name((why) => ({ skip: why }), "skip");
|
|
6984
6982
|
var decide = /* @__PURE__ */ __name((rule2, incoming, state, now) => {
|
|
6985
6983
|
const { message, chat, owner, sender } = incoming;
|
|
@@ -7085,10 +7083,10 @@ var filled = /* @__PURE__ */ __name((template2, senderName) => {
|
|
|
7085
7083
|
return template2.replaceAll("{firstName}", name.split(/\s+/)[0] ?? name).replaceAll("{name}", name);
|
|
7086
7084
|
}, "filled");
|
|
7087
7085
|
|
|
7088
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7086
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/replies/template.js
|
|
7089
7087
|
var import_liquidjs2 = __toESM(require_liquid_node(), 1);
|
|
7090
7088
|
|
|
7091
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7089
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/render/liquid.js
|
|
7092
7090
|
var import_liquidjs = __toESM(require_liquid_node(), 1);
|
|
7093
7091
|
var safeLiquid = /* @__PURE__ */ __name((limits) => {
|
|
7094
7092
|
const engine = new import_liquidjs.Liquid({
|
|
@@ -7115,7 +7113,7 @@ var safeLiquid = /* @__PURE__ */ __name((limits) => {
|
|
|
7115
7113
|
return engine;
|
|
7116
7114
|
}, "safeLiquid");
|
|
7117
7115
|
|
|
7118
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7116
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/replies/template.js
|
|
7119
7117
|
var TEMPLATE_LIMITS = {
|
|
7120
7118
|
parse: 32768,
|
|
7121
7119
|
renders: 2e3,
|
|
@@ -7254,7 +7252,7 @@ var renderReplyTemplate = /* @__PURE__ */ __name(async (reply, input) => {
|
|
|
7254
7252
|
}
|
|
7255
7253
|
}, "renderReplyTemplate");
|
|
7256
7254
|
|
|
7257
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7255
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/replies/dry-run.js
|
|
7258
7256
|
var DRY_RUN_DAYS = 7;
|
|
7259
7257
|
var PAGE = 500;
|
|
7260
7258
|
var dryRun = /* @__PURE__ */ __name(async (store, account, rules, { since, until = Date.now(), only, audience, render }) => {
|
|
@@ -7368,7 +7366,7 @@ var storedSince = /* @__PURE__ */ __name(async (store, account, chat, since) =>
|
|
|
7368
7366
|
}
|
|
7369
7367
|
}, "storedSince");
|
|
7370
7368
|
|
|
7371
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7369
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/models/purpose.js
|
|
7372
7370
|
var HOSTED = {
|
|
7373
7371
|
openai: "https://api.openai.com/v1",
|
|
7374
7372
|
anthropic: "https://api.anthropic.com"
|
|
@@ -7389,7 +7387,7 @@ var purposeModel = /* @__PURE__ */ __name((settings, purpose, deps) => {
|
|
|
7389
7387
|
return shared ? { target: shared.target, key: /* @__PURE__ */ __name(() => shared.key, "key"), shared: shared.setting } : void 0;
|
|
7390
7388
|
}, "purposeModel");
|
|
7391
7389
|
|
|
7392
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7390
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/replies/consents.js
|
|
7393
7391
|
import { existsSync as existsSync7, readFileSync as readFileSync4 } from "node:fs";
|
|
7394
7392
|
import { join as join4 } from "node:path";
|
|
7395
7393
|
var shape = strictObject({
|
|
@@ -7414,7 +7412,7 @@ var mayModelReply = /* @__PURE__ */ __name((path, provider, chat) => {
|
|
|
7414
7412
|
return consent.provider === provider && !consent.deniedChats.includes(chat);
|
|
7415
7413
|
}, "mayModelReply");
|
|
7416
7414
|
|
|
7417
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7415
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/replies/rendering.js
|
|
7418
7416
|
var replyRenderer = /* @__PURE__ */ __name((app, profile, settings, env, warn, options = {
|
|
7419
7417
|
ai: true
|
|
7420
7418
|
}) => async (rule2, message, chat, now) => {
|
|
@@ -7462,7 +7460,7 @@ var replyRenderer = /* @__PURE__ */ __name((app, profile, settings, env, warn, o
|
|
|
7462
7460
|
return result2;
|
|
7463
7461
|
}, "replyRenderer");
|
|
7464
7462
|
|
|
7465
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7463
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/replies/serve.js
|
|
7466
7464
|
var NOT_ALLOWED = "replies.send is not allow";
|
|
7467
7465
|
var NO_RULES = "no rules";
|
|
7468
7466
|
var ONLY_TASK = "opened a task, sent nothing";
|
|
@@ -7555,7 +7553,7 @@ var replyTo = /* @__PURE__ */ __name(async (deps, message) => {
|
|
|
7555
7553
|
return { skip: why };
|
|
7556
7554
|
}, "replyTo");
|
|
7557
7555
|
|
|
7558
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7556
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-catch-up.js
|
|
7559
7557
|
var START_SYNC_DELAY_MS = 3e4;
|
|
7560
7558
|
var START_SYNC_BUDGET_MS = 5 * 6e4;
|
|
7561
7559
|
var START_SYNC_WINDOW_MS = 7 * 864e5;
|
|
@@ -7632,7 +7630,7 @@ var startSync = /* @__PURE__ */ __name(({ chats, newestHeld, fetch, note, warn,
|
|
|
7632
7630
|
};
|
|
7633
7631
|
}, "startSync");
|
|
7634
7632
|
|
|
7635
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7633
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-members.js
|
|
7636
7634
|
var FIRST_FETCH_MS = 6e4;
|
|
7637
7635
|
var DAY_MS = 864e5;
|
|
7638
7636
|
var memberFetches = /* @__PURE__ */ __name(({ withStore, fetch, warn, firstMs = FIRST_FETCH_MS, everyMs = DAY_MS }) => {
|
|
@@ -7686,7 +7684,7 @@ var memberFetches = /* @__PURE__ */ __name(({ withStore, fetch, warn, firstMs =
|
|
|
7686
7684
|
};
|
|
7687
7685
|
}, "memberFetches");
|
|
7688
7686
|
|
|
7689
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7687
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-notice.js
|
|
7690
7688
|
var record2 = /* @__PURE__ */ __name((context, app, severity, attributes) => recordLogFor(context.streams.diagnostic, app, { command: currentRun().command || "serve" })[severity](attributes), "record");
|
|
7691
7689
|
var noticeFor = /* @__PURE__ */ __name((context, app, severity = "warn") => ({ text, ...attributes }) => {
|
|
7692
7690
|
if (context.format === "pretty") {
|
|
@@ -7719,7 +7717,7 @@ var recordDiagnostics = /* @__PURE__ */ __name((context, app) => {
|
|
|
7719
7717
|
return context;
|
|
7720
7718
|
}, "recordDiagnostics");
|
|
7721
7719
|
|
|
7722
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7720
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-outdated.js
|
|
7723
7721
|
import { existsSync as existsSync8, readFileSync as readFileSync5, realpathSync as realpathSync2 } from "node:fs";
|
|
7724
7722
|
import { dirname as dirname2, join as join5 } from "node:path";
|
|
7725
7723
|
var OUTDATED_CHECK_MS = 6e4;
|
|
@@ -7805,7 +7803,7 @@ var watchOutdated = /* @__PURE__ */ __name(({ check: check2, onOutdated, everyMs
|
|
|
7805
7803
|
};
|
|
7806
7804
|
}, "watchOutdated");
|
|
7807
7805
|
|
|
7808
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7806
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-stems.js
|
|
7809
7807
|
var STEMS_EVERY_MS = 3e4;
|
|
7810
7808
|
var STEMS_SLICE_MS = 2e3;
|
|
7811
7809
|
var stemFills = /* @__PURE__ */ __name(({ withStore, warn, everyMs = STEMS_EVERY_MS, sliceMs = STEMS_SLICE_MS }) => {
|
|
@@ -7845,7 +7843,7 @@ var stemFills = /* @__PURE__ */ __name(({ withStore, warn, everyMs = STEMS_EVERY
|
|
|
7845
7843
|
};
|
|
7846
7844
|
}, "stemFills");
|
|
7847
7845
|
|
|
7848
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7846
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/render/messages.js
|
|
7849
7847
|
import { styleText } from "node:util";
|
|
7850
7848
|
var TIME_WIDTH = 8;
|
|
7851
7849
|
var INDENT = " ".repeat(TIME_WIDTH + 2);
|
|
@@ -8021,7 +8019,7 @@ var editedAt = /* @__PURE__ */ __name((message, options) => {
|
|
|
8021
8019
|
return day(edited) === day(message.timestamp) ? time : `${day(edited)} ${time}`;
|
|
8022
8020
|
}, "editedAt");
|
|
8023
8021
|
|
|
8024
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8022
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/cli/messenger/message-items.js
|
|
8025
8023
|
var defined = /* @__PURE__ */ __name((value) => Object.fromEntries(Object.entries(value).filter(([, one]) => one !== void 0)), "defined");
|
|
8026
8024
|
var attachmentItem = /* @__PURE__ */ __name((attachment) => defined({
|
|
8027
8025
|
kind: attachment.kind,
|
|
@@ -8117,7 +8115,7 @@ var viewOf = /* @__PURE__ */ __name((context, messenger) => ({
|
|
|
8117
8115
|
locale: messenger.app.locale
|
|
8118
8116
|
}), "viewOf");
|
|
8119
8117
|
|
|
8120
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8118
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/cli/messenger/watch-answers.js
|
|
8121
8119
|
var observed = /* @__PURE__ */ __name((value) => ({
|
|
8122
8120
|
value: value.value,
|
|
8123
8121
|
observed_at: value.observedAt,
|
|
@@ -8184,7 +8182,7 @@ var watchEventItem = /* @__PURE__ */ __name((value, account) => {
|
|
|
8184
8182
|
}
|
|
8185
8183
|
}, "watchEventItem");
|
|
8186
8184
|
|
|
8187
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8185
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/cli/messenger/watch-command.js
|
|
8188
8186
|
var watchCommand = /* @__PURE__ */ __name((messenger) => annotate(new Command("watch"), {
|
|
8189
8187
|
output: { entity: "watch_item" },
|
|
8190
8188
|
effects: REMOTE_READ,
|
|
@@ -8339,7 +8337,7 @@ var describe = /* @__PURE__ */ __name((event, render) => {
|
|
|
8339
8337
|
}
|
|
8340
8338
|
}, "describe");
|
|
8341
8339
|
|
|
8342
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8340
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-command.js
|
|
8343
8341
|
var serveCommand = /* @__PURE__ */ __name((messenger) => {
|
|
8344
8342
|
const command = annotate(new Command("serve"), {
|
|
8345
8343
|
output: { entity: "serve_summary" },
|
|
@@ -8380,7 +8378,7 @@ var serveCommand = /* @__PURE__ */ __name((messenger) => {
|
|
|
8380
8378
|
});
|
|
8381
8379
|
}, "onReady");
|
|
8382
8380
|
const counts = {};
|
|
8383
|
-
const rules = replying(context, messenger, Date.parse(startedAt));
|
|
8381
|
+
const rules = replying(context, messenger, Date.parse(startedAt), () => messenger.resolveSettings(this.optsWithGlobals(), { env: context.env }));
|
|
8384
8382
|
const tasks = tasking(context, warn);
|
|
8385
8383
|
const { handled, startSyncDelayMs, outdated: outdatedHook } = environmentOf(this);
|
|
8386
8384
|
const count3 = /* @__PURE__ */ __name((event) => {
|
|
@@ -8522,7 +8520,7 @@ var NO_REPLIES = {
|
|
|
8522
8520
|
}, "stop"),
|
|
8523
8521
|
summary: /* @__PURE__ */ __name(() => ({}), "summary")
|
|
8524
8522
|
};
|
|
8525
|
-
var replying = /* @__PURE__ */ __name((context, messenger, since) => {
|
|
8523
|
+
var replying = /* @__PURE__ */ __name((context, messenger, since, reload) => {
|
|
8526
8524
|
if (messenger.autoReplies === false)
|
|
8527
8525
|
return NO_REPLIES;
|
|
8528
8526
|
const controller = new AbortController();
|
|
@@ -8547,6 +8545,9 @@ var replying = /* @__PURE__ */ __name((context, messenger, since) => {
|
|
|
8547
8545
|
if (connection === void 0 || controller.signal.aborted)
|
|
8548
8546
|
return;
|
|
8549
8547
|
const open = connection;
|
|
8548
|
+
const current = reload();
|
|
8549
|
+
settings.permissions = current.permissions;
|
|
8550
|
+
settings.permissionSources = current.permissionSources;
|
|
8550
8551
|
const answer = await replyTo({
|
|
8551
8552
|
rulesPath: repliesPathFor(app, profile, env),
|
|
8552
8553
|
statePath: repliesStatePathFor(app, profile, env),
|
|
@@ -8622,7 +8623,7 @@ var tasking = /* @__PURE__ */ __name((context, warn) => {
|
|
|
8622
8623
|
};
|
|
8623
8624
|
}, "tasking");
|
|
8624
8625
|
|
|
8625
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8626
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/cli/messenger/store-tables-command.js
|
|
8626
8627
|
import { existsSync as existsSync9 } from "node:fs";
|
|
8627
8628
|
var PATH = "store tables list";
|
|
8628
8629
|
var STORE_TABLES_QUERY = {
|
|
@@ -8665,7 +8666,7 @@ var storeTablesCommand = /* @__PURE__ */ __name((owner) => {
|
|
|
8665
8666
|
return tables;
|
|
8666
8667
|
}, "storeTablesCommand");
|
|
8667
8668
|
|
|
8668
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8669
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/cli/messenger/store-maintenance-command.js
|
|
8669
8670
|
var SEARCH_INDEXES = ["messages_fts", "chats_fts", "identities_fts"];
|
|
8670
8671
|
var WORD_INDEX = "message_words";
|
|
8671
8672
|
var schemaOf = /* @__PURE__ */ __name((database) => {
|