@wirecat/zoom-cli 0.72.0 → 0.73.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/contracts/wirecat.json +1478 -0
- package/dist/account-removal.d.ts.map +1 -1
- package/dist/account-removal.js +0 -2
- package/dist/account-removal.js.map +1 -1
- package/dist/answers.d.ts +1 -3
- package/dist/answers.d.ts.map +1 -1
- package/dist/answers.js +0 -3
- package/dist/answers.js.map +1 -1
- package/dist/bin/main.js +13 -5
- package/dist/bin/main.js.map +1 -1
- package/dist/bin/zm.js +2 -2
- package/dist/bundle/{all-profiles-XFIPF4GF.js → all-profiles-V47CUJFK.js} +12 -12
- package/dist/bundle/answer-policy-W6H72X2R.js +112 -0
- package/dist/bundle/{anthropic-SSUBR3BC.js → anthropic-SID7Z3QN.js} +7 -7
- package/dist/bundle/{app-server-7DJHHF2F.js → app-server-KCMUSY4A.js} +67 -61
- package/dist/bundle/{bun-6HBYWQIX.js → bun-PWMM6L45.js} +2 -2
- package/dist/bundle/{bun-sqlite-4L3Q55NB.js → bun-sqlite-3TLKUN5A.js} +7 -7
- package/dist/bundle/{chunk-OY6N2ABP.js → chunk-2BAZRRJP.js} +19 -19
- package/dist/bundle/{chunk-KWURWGGB.js → chunk-2NQPB6MT.js} +28 -9
- package/dist/bundle/chunk-2PYZTRRC.js +84 -0
- package/dist/bundle/chunk-2VYEGKQ3.js +13 -0
- package/dist/bundle/{chunk-X2MP634F.js → chunk-35CYSRGJ.js} +4 -4
- package/dist/bundle/{chunk-SXZGCD6E.js → chunk-3ADFJ3UP.js} +3 -3
- package/dist/bundle/{chunk-63QXCE5Z.js → chunk-3HTJBGNP.js} +10 -10
- package/dist/bundle/{chunk-OHCLQJOV.js → chunk-44YVZIA4.js} +3 -3
- package/dist/bundle/{chunk-D24OQAHM.js → chunk-4LFFDUUW.js} +4 -4
- package/dist/bundle/{chunk-UVZLK3M4.js → chunk-4RJL32PF.js} +25 -10
- package/dist/bundle/{chunk-CANRIRNZ.js → chunk-6AO2RSYH.js} +951 -692
- package/dist/bundle/{chunk-37NF5CBJ.js → chunk-6NI4FE5G.js} +6 -8
- package/dist/bundle/{chunk-QW7YTRV2.js → chunk-6WUTUCKH.js} +3 -3
- package/dist/bundle/{chunk-WOAYHCM2.js → chunk-AIEMFRBU.js} +1 -1
- package/dist/bundle/{chunk-B3SILJBU.js → chunk-CIUJEQH4.js} +30 -22
- package/dist/bundle/{chunk-MSQHSW4C.js → chunk-CMWFYZ45.js} +2 -2
- package/dist/bundle/{chunk-2MIBRVSV.js → chunk-CQBLPBZU.js} +2 -2
- package/dist/bundle/{chunk-U3NJBGLA.js → chunk-DPSTOVKC.js} +185 -34
- package/dist/bundle/{chunk-OP5PGE2N.js → chunk-DYLYH7VE.js} +4 -4
- package/dist/bundle/{chunk-ELJUBPY4.js → chunk-EA2OB75T.js} +1 -1
- package/dist/bundle/{chunk-3KRTEX5M.js → chunk-ERQRY6WZ.js} +3 -2
- package/dist/bundle/{chunk-H53WFZBN.js → chunk-ETQNHS3A.js} +12 -12
- package/dist/bundle/{chunk-JG4MNYG2.js → chunk-EXWZCI5G.js} +1 -1
- package/dist/bundle/{chunk-MCPOZNWG.js → chunk-FIVFP53N.js} +1 -1
- package/dist/bundle/{chunk-7OD3522V.js → chunk-FJMRDRPN.js} +180 -149
- package/dist/bundle/{chunk-RZUJMAMK.js → chunk-FT7X74RT.js} +4 -4
- package/dist/bundle/{chunk-ADLS6FVG.js → chunk-FXBHOCJK.js} +1 -1
- package/dist/bundle/{chunk-JRCH4YZP.js → chunk-FZLJ2G7A.js} +17 -121
- package/dist/bundle/{chunk-ZW5KHKMA.js → chunk-G2TSDMTA.js} +5 -5
- package/dist/bundle/{chunk-7S4D5SM2.js → chunk-G3SIY4MQ.js} +29 -28
- package/dist/bundle/{chunk-M3DMXDX6.js → chunk-GCZMYDKU.js} +6 -6
- package/dist/bundle/{chunk-4XQWF3U2.js → chunk-HAMDPWEZ.js} +6 -6
- package/dist/bundle/{chunk-6DCLZLGX.js → chunk-HCZYJMBP.js} +1 -1
- package/dist/bundle/{chunk-S7SXSHRC.js → chunk-HNWDEDMU.js} +61 -30
- package/dist/bundle/{chunk-24OFZNRC.js → chunk-HO3GBTIT.js} +4038 -3729
- package/dist/bundle/chunk-IE7YBRUO.js +25 -0
- package/dist/bundle/{chunk-XPWZSW6Y.js → chunk-IJCUAKR5.js} +4 -4
- package/dist/bundle/{chunk-RLCVPECY.js → chunk-IKNOTHG2.js} +110 -64
- package/dist/bundle/{chunk-QA6KIL7Q.js → chunk-ILDGZBZD.js} +11 -8
- package/dist/bundle/{chunk-W3YTVEWV.js → chunk-JIS34MLC.js} +9 -9
- package/dist/bundle/{chunk-KFZL67JP.js → chunk-JQF4LM3V.js} +128 -47
- package/dist/bundle/{chunk-ZHA56THL.js → chunk-K5JFX5TK.js} +927 -904
- package/dist/bundle/{chunk-WXTYYWZI.js → chunk-K7EMVFJ7.js} +115 -113
- package/dist/bundle/{chunk-7GLJSJ7M.js → chunk-KHBZ4OEP.js} +1 -1
- package/dist/bundle/{chunk-PJWSGXOB.js → chunk-KK2IVZUQ.js} +7 -7
- package/dist/bundle/{chunk-YVVJ6Y5C.js → chunk-KQD4ZVNC.js} +7 -7
- package/dist/bundle/{chunk-TF2WKPNW.js → chunk-KSNJK4QM.js} +15 -15
- package/dist/bundle/{chunk-KPIQXFNB.js → chunk-KUL7S5Y3.js} +16 -15
- package/dist/bundle/{chunk-JZ4XNNL7.js → chunk-L6YSKCC3.js} +1 -1
- package/dist/bundle/chunk-LQYMN36C.js +73 -0
- package/dist/bundle/{chunk-5MGICK47.js → chunk-LSVQCI6V.js} +26 -26
- package/dist/bundle/{chunk-CW46FWKW.js → chunk-LVDTSCIN.js} +14 -12
- package/dist/bundle/{chunk-RX5CJ55S.js → chunk-M4OP5ASJ.js} +1 -1
- package/dist/bundle/{chunk-FSCPQQS5.js → chunk-MAE5UGRQ.js} +150 -93
- package/dist/bundle/{chunk-4YIGXTBP.js → chunk-MG2CCAVG.js} +3 -3
- package/dist/bundle/{chunk-N4QNYWWG.js → chunk-MOKEB656.js} +2 -2
- package/dist/bundle/{chunk-RN5SU2RN.js → chunk-N3SOTKXC.js} +6 -6
- package/dist/bundle/{chunk-7SUWPMZG.js → chunk-NBA2V6LB.js} +8 -8
- package/dist/bundle/{chunk-LLUNHAZ7.js → chunk-OFA22L4G.js} +4 -4
- package/dist/bundle/{chunk-RJTGENHZ.js → chunk-OKOJEBHK.js} +4 -7
- package/dist/bundle/{chunk-LA6QUVGQ.js → chunk-OMLVWOEF.js} +6 -2
- package/dist/bundle/{chunk-5X4IY5JH.js → chunk-OU5OXA6Q.js} +531 -416
- package/dist/bundle/{chunk-DEPXZJ2V.js → chunk-P4FU6R3Z.js} +17 -13
- package/dist/bundle/{chunk-5AELTC52.js → chunk-PACLT6IW.js} +102 -99
- package/dist/bundle/{chunk-EFF2XBHP.js → chunk-PGPHEC2X.js} +2 -2
- package/dist/bundle/{chunk-NMZQTYKJ.js → chunk-PJ3FKBXG.js} +1 -1
- package/dist/bundle/{chunk-7IFO43Q5.js → chunk-PKON63JH.js} +2 -2
- package/dist/bundle/{chunk-23J2ANZ7.js → chunk-Q43KX56Z.js} +2 -2
- package/dist/bundle/{chunk-VIV64MQM.js → chunk-QS6DWXDB.js} +26 -17
- package/dist/bundle/{chunk-IXO4SCKE.js → chunk-QVJMFZFW.js} +1 -1
- package/dist/bundle/{chunk-U32VL3MA.js → chunk-QWGEOQHA.js} +3 -2
- package/dist/bundle/{chunk-QQUY4MZY.js → chunk-R5FTCNLJ.js} +1 -1
- package/dist/bundle/{chunk-IFBIXU6C.js → chunk-SO52EJ2W.js} +2 -2
- package/dist/bundle/{chunk-JFPUYQSP.js → chunk-SYIOT45G.js} +5 -5
- package/dist/bundle/{chunk-ADKMBXY4.js → chunk-TI2OANJZ.js} +1 -1
- package/dist/bundle/{chunk-IACWKZWS.js → chunk-UIKVP23D.js} +1 -1
- package/dist/bundle/{chunk-JAEPK457.js → chunk-USIMMGWS.js} +23 -23
- package/dist/bundle/{chunk-WZGKHTA4.js → chunk-UYBLNGZ2.js} +8 -2
- package/dist/bundle/{chunk-4SY67IUA.js → chunk-V5Q2QKYM.js} +26 -33
- package/dist/bundle/{chunk-WLVG4RBZ.js → chunk-VJVYGTPM.js} +15 -2
- package/dist/bundle/{chunk-IU4DUUB3.js → chunk-VPPNYUQM.js} +8 -8
- package/dist/bundle/{chunk-D5EUMWD5.js → chunk-X2FILY5F.js} +3 -3
- package/dist/bundle/{chunk-LTWJM3ED.js → chunk-XLY7V2LB.js} +17 -17
- package/dist/bundle/chunk-XWBPP2HX.js +2 -0
- package/dist/bundle/{chunk-ZVFYGTGJ.js → chunk-Y3IH7EZC.js} +17 -17
- package/dist/bundle/{chunk-7JYMGXLI.js → chunk-Z5XCU4S7.js} +45 -41
- package/dist/bundle/{chunk-I7CUMZD6.js → chunk-ZAIE3G5I.js} +3 -3
- package/dist/bundle/{chunk-ERJYJ36F.js → chunk-ZMHZ6CQS.js} +2 -2
- package/dist/bundle/{chunk-T27IMG6X.js → chunk-ZVQDOKDY.js} +1 -1
- package/dist/bundle/{chunk-DOCVEKP2.js → chunk-ZX4QWTMQ.js} +36 -32
- package/dist/bundle/{cli-IYYI7GAM.js → cli-4ZYJ6OZE.js} +109 -101
- package/dist/bundle/command-contract-FJDDCHYP.js +43 -0
- package/dist/bundle/{command-server-entry-FXX4LJWF.js → command-server-entry-CASONRIJ.js} +35 -33
- package/dist/bundle/config-4DZHX2WX.js +99 -0
- package/dist/bundle/{decode-SRGOOGBW.js → decode-KEFCVGEB.js} +6 -6
- package/dist/bundle/{dispatch-OUHRPFUL.js → dispatch-EU67WGME.js} +9 -9
- package/dist/bundle/{dist-UZLNLAIO.js → dist-GCQ7KCKN.js} +26 -22
- package/dist/bundle/{echarts-7CM2MCMW.js → echarts-SDZA2SWG.js} +2 -2
- package/dist/bundle/{embed-VEE56BOB.js → embed-43VJEPM6.js} +7 -7
- package/dist/bundle/{embedder-SZFYR543.js → embedder-Q4ZHAGRP.js} +10 -10
- package/dist/bundle/{failure-MZBNM7M5.js → failure-CTJLEB2R.js} +3 -3
- package/dist/bundle/first-run-CPOLQVNA.js +29 -0
- package/dist/bundle/first-screen-XYESRGWW.js +41 -0
- package/dist/bundle/folders-MSBTAPAG.js +24 -0
- package/dist/bundle/{instructions-R7OHVAWH.js → instructions-7T6JJIFS.js} +1 -1
- package/dist/bundle/{main-EFUN2O3K.js → main-NA3QVPXS.js} +39 -26
- package/dist/bundle/{mcp-7KQUJNFN.js → mcp-TDKGDB4V.js} +2 -2
- package/dist/bundle/{meetings-5I2BDNTA.js → meetings-7CVIQJTA.js} +9 -7
- package/dist/bundle/{node-3N2JGZ7V.js → node-BZDMUFTW.js} +2 -2
- package/dist/bundle/{node-P4E63KXA.js → node-KM3CUABH.js} +9 -9
- package/dist/bundle/{node-sqlite-2UVEE2WM.js → node-sqlite-QHGB23B4.js} +10 -10
- package/dist/bundle/{oauth-AYGD7UU3.js → oauth-BMEMCM2I.js} +8 -8
- package/dist/bundle/{open-3GUVDLGD.js → open-JGU2NRJP.js} +6 -6
- package/dist/bundle/openai-VTXXFNCS.js +28 -0
- package/dist/bundle/{output-file-72JFXVHQ.js → output-file-VDOCYH2G.js} +6 -6
- package/dist/bundle/{process-YAHHUFR5.js → process-756VBE7E.js} +1 -1
- package/dist/bundle/{program-OSZROCTK.js → program-XM6CDIJ2.js} +138 -139
- package/dist/bundle/{prompt-HMCW4XQJ.js → prompt-2IPFXJ4B.js} +6 -6
- package/dist/bundle/{recognize-VF5CA7EM.js → recognize-672E2RIB.js} +5 -5
- package/dist/bundle/{remote-5C6VTPR2.js → remote-YLHRVPDS.js} +11 -10
- package/dist/bundle/{rerank-ER7NEDOI.js → rerank-NBXQG3OS.js} +8 -8
- package/dist/bundle/run-log-3WITBT2F.js +126 -0
- package/dist/bundle/{serve-QJWXJOM7.js → serve-FNLOUMYP.js} +10 -10
- package/dist/bundle/{server-KCIK3Y2P.js → server-7ZB5AK5H.js} +54 -50
- package/dist/bundle/server-GGRGD4SH.js +77 -0
- package/dist/bundle/{services-LQMYJQG3.js → services-Z4UWN64R.js} +46 -44
- package/dist/bundle/{speech-74GJQNQH.js → speech-XSYVCKR3.js} +20 -20
- package/dist/bundle/sqlite-runtime-GAPXJNWU.js +20 -0
- package/dist/bundle/{state-4XDGCHDF.js → state-QSA53EF5.js} +7 -7
- package/dist/bundle/{store-5Y5HK2L2.js → store-EKI4OAJH.js} +20 -20
- package/dist/bundle/{store-Y56AHJ2Y.js → store-NOF5EYUC.js} +30 -28
- package/dist/bundle/store-connection-2OZQGEIO.js +92 -0
- package/dist/bundle/store-maintenance-command-GNX3SOZ6.js +67 -0
- package/dist/bundle/{streaming-E5CR6HSR.js → streaming-PQEXKTE5.js} +7 -7
- package/dist/bundle/tokens-WJQYQ3FK.js +24 -0
- package/dist/bundle/zm.js +9 -9
- package/dist/bundle/{zoom-app-NVL7HEAX.js → zoom-app-Y7RMWLVU.js} +9 -8
- package/dist/folders.d.ts +12 -2
- package/dist/folders.d.ts.map +1 -1
- package/dist/folders.js +81 -3
- package/dist/folders.js.map +1 -1
- package/dist/identity.d.ts +5 -0
- package/dist/identity.d.ts.map +1 -1
- package/dist/identity.js +14 -0
- package/dist/identity.js.map +1 -1
- package/dist/recording-schedule-setup.d.ts.map +1 -1
- package/dist/recording-schedule-setup.js +4 -7
- package/dist/recording-schedule-setup.js.map +1 -1
- package/dist/remote-http.d.ts +1 -1
- package/dist/remote-http.d.ts.map +1 -1
- package/dist/remote-http.js +21 -23
- package/dist/remote-http.js.map +1 -1
- package/dist/setup-commands.d.ts.map +1 -1
- package/dist/setup-commands.js +2 -4
- package/dist/setup-commands.js.map +1 -1
- package/dist/tokens.d.ts +17 -2
- package/dist/tokens.d.ts.map +1 -1
- package/dist/tokens.js +109 -29
- package/dist/tokens.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/dist/wcat.d.ts +3 -0
- package/dist/wcat.d.ts.map +1 -0
- package/dist/wcat.js +4 -0
- package/dist/wcat.js.map +1 -0
- package/package.json +15 -14
- package/dist/bundle/answer-policy-AT6CDEE5.js +0 -110
- package/dist/bundle/chunk-EG25AY4L.js +0 -17
- package/dist/bundle/chunk-K6HR6HCO.js +0 -32
- package/dist/bundle/command-contract-TX7NSUBM.js +0 -42
- package/dist/bundle/config-YKNM33J7.js +0 -96
- package/dist/bundle/first-run-KWC7RKF2.js +0 -29
- package/dist/bundle/first-screen-DWKMNSEI.js +0 -40
- package/dist/bundle/folders-UQXRSDJJ.js +0 -16
- package/dist/bundle/openai-NHCDLWWY.js +0 -28
- package/dist/bundle/run-log-JKTLKXSK.js +0 -124
- package/dist/bundle/server-LLGFDLLJ.js +0 -75
- package/dist/bundle/store-connection-4WI32AYU.js +0 -89
- package/dist/bundle/store-maintenance-command-PCXO5AH4.js +0 -65
- package/dist/bundle/tokens-E2QNVC4F.js +0 -20
- /package/dist/bundle/{chunk-YVNHQFLC.js → chunk-7O7XM37N.js} +0 -0
|
@@ -2,37 +2,40 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
encodeWav
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import {
|
|
7
|
-
providerWaitMs
|
|
8
|
-
} from "./chunk-FSCPQQS5.js";
|
|
5
|
+
} from "./chunk-MG2CCAVG.js";
|
|
9
6
|
import {
|
|
10
7
|
SAMPLE_RATE,
|
|
11
8
|
toModelRate
|
|
12
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-DYLYH7VE.js";
|
|
13
10
|
import {
|
|
14
11
|
OPENAI_URL,
|
|
15
12
|
refuseModelAddress
|
|
16
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-JIS34MLC.js";
|
|
14
|
+
import {
|
|
15
|
+
endpointFetch
|
|
16
|
+
} from "./chunk-LQYMN36C.js";
|
|
17
|
+
import {
|
|
18
|
+
providerWaitMs
|
|
19
|
+
} from "./chunk-MAE5UGRQ.js";
|
|
17
20
|
import {
|
|
18
21
|
OPENAI_TRANSCRIBE_MODEL,
|
|
19
22
|
VAD,
|
|
20
23
|
filesPresent,
|
|
21
24
|
modelsDirectory,
|
|
22
25
|
vadPath
|
|
23
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-4LFFDUUW.js";
|
|
24
27
|
import {
|
|
25
28
|
DEFAULT_RETRY,
|
|
26
29
|
backoffMs
|
|
27
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-HNWDEDMU.js";
|
|
28
31
|
import {
|
|
29
32
|
CliError
|
|
30
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-EA2OB75T.js";
|
|
31
34
|
import {
|
|
32
35
|
__name
|
|
33
36
|
} from "./chunk-ZVVMGPBJ.js";
|
|
34
37
|
|
|
35
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/speech/openai.js
|
|
36
39
|
import { setTimeout as wait } from "node:timers/promises";
|
|
37
40
|
var LONGEST_REQUEST_SECONDS = 600;
|
|
38
41
|
var JOINED_SECONDS = 0.2;
|
|
@@ -81,12 +84,13 @@ var failureOf = /* @__PURE__ */ __name(async (response) => {
|
|
|
81
84
|
return {};
|
|
82
85
|
}
|
|
83
86
|
}, "failureOf");
|
|
87
|
+
var TRANSCRIPTION_TIMEOUT_MS = 6e5;
|
|
84
88
|
var send = /* @__PURE__ */ __name(async (wav, options) => {
|
|
85
|
-
const
|
|
89
|
+
const url = `${(options.baseUrl ?? OPENAI_URL).replace(/\/+$/, "")}/audio/transcriptions`;
|
|
90
|
+
const post = options.fetch ?? endpointFetch(url, TRANSCRIPTION_TIMEOUT_MS);
|
|
86
91
|
const retry = options.retry ?? RETRY;
|
|
87
92
|
const sleep = options.sleep ?? sleeping;
|
|
88
93
|
const random = options.random ?? Math.random;
|
|
89
|
-
const url = `${(options.baseUrl ?? OPENAI_URL).replace(/\/+$/, "")}/audio/transcriptions`;
|
|
90
94
|
for (let attempt = 1; ; attempt++) {
|
|
91
95
|
interrupted(options.signal);
|
|
92
96
|
let response;
|
|
@@ -155,7 +159,7 @@ var piecesOf = /* @__PURE__ */ __name((spans, limit) => {
|
|
|
155
159
|
return pieces;
|
|
156
160
|
}, "piecesOf");
|
|
157
161
|
var openCutter = /* @__PURE__ */ __name(async (vadModel) => {
|
|
158
|
-
const { openSpeechCutter } = await import("./recognize-
|
|
162
|
+
const { openSpeechCutter } = await import("./recognize-672E2RIB.js");
|
|
159
163
|
return openSpeechCutter(vadModel);
|
|
160
164
|
}, "openCutter");
|
|
161
165
|
var checkKeywords = /* @__PURE__ */ __name((keywords = []) => {
|
|
@@ -3,7 +3,7 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
answerOf,
|
|
5
5
|
messengerContext
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-G3SIY4MQ.js";
|
|
7
7
|
import {
|
|
8
8
|
chatEventAnswer,
|
|
9
9
|
memberAnswer,
|
|
@@ -12,17 +12,17 @@ import {
|
|
|
12
12
|
serveRelay,
|
|
13
13
|
typedQuery,
|
|
14
14
|
withQuery
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-2BAZRRJP.js";
|
|
16
16
|
import {
|
|
17
17
|
renderMessages
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-PKON63JH.js";
|
|
19
19
|
import {
|
|
20
20
|
holdLock,
|
|
21
21
|
lockPath,
|
|
22
22
|
releaseLock,
|
|
23
23
|
servingProfiles,
|
|
24
24
|
takeLock
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-3ADFJ3UP.js";
|
|
26
26
|
import {
|
|
27
27
|
FETCHING,
|
|
28
28
|
RULES_VERSION,
|
|
@@ -38,9 +38,11 @@ import {
|
|
|
38
38
|
refuseLockedOutput,
|
|
39
39
|
senderIsMe,
|
|
40
40
|
servicesFor,
|
|
41
|
-
syncsOneChat
|
|
41
|
+
syncsOneChat
|
|
42
|
+
} from "./chunk-OU5OXA6Q.js";
|
|
43
|
+
import {
|
|
42
44
|
withTimeLimit
|
|
43
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-IE7YBRUO.js";
|
|
44
46
|
import {
|
|
45
47
|
QUICK_HEALTH_CHECKS,
|
|
46
48
|
fts5Tables,
|
|
@@ -48,10 +50,49 @@ import {
|
|
|
48
50
|
lossUnknown,
|
|
49
51
|
storeDamageReport,
|
|
50
52
|
storeHealth
|
|
51
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-Y3IH7EZC.js";
|
|
54
|
+
import {
|
|
55
|
+
Command,
|
|
56
|
+
LOCAL_READ,
|
|
57
|
+
LOCAL_WRITE,
|
|
58
|
+
REMOTE_READ,
|
|
59
|
+
REMOTE_WRITE,
|
|
60
|
+
annotate,
|
|
61
|
+
commandAt,
|
|
62
|
+
destroysNothing,
|
|
63
|
+
environmentOf,
|
|
64
|
+
grantsAuthority,
|
|
65
|
+
itemOf,
|
|
66
|
+
jsonlRecords,
|
|
67
|
+
lineOf,
|
|
68
|
+
listOf,
|
|
69
|
+
nextStep,
|
|
70
|
+
outputFor,
|
|
71
|
+
recalledAccount,
|
|
72
|
+
recordLogFor,
|
|
73
|
+
renderAnswer,
|
|
74
|
+
snakeKeys,
|
|
75
|
+
storeTable,
|
|
76
|
+
withoutProviderRefs
|
|
77
|
+
} from "./chunk-FJMRDRPN.js";
|
|
78
|
+
import {
|
|
79
|
+
holdersOf
|
|
80
|
+
} from "./chunk-UIKVP23D.js";
|
|
81
|
+
import {
|
|
82
|
+
codeOf,
|
|
83
|
+
modelTarget,
|
|
84
|
+
parseDuration
|
|
85
|
+
} from "./chunk-USIMMGWS.js";
|
|
86
|
+
import {
|
|
87
|
+
levelFor
|
|
88
|
+
} from "./chunk-OMLVWOEF.js";
|
|
89
|
+
import {
|
|
90
|
+
modelAddressAllowed,
|
|
91
|
+
onThisComputer
|
|
92
|
+
} from "./chunk-LQYMN36C.js";
|
|
52
93
|
import {
|
|
53
94
|
readSecret
|
|
54
|
-
} from "./chunk-
|
|
95
|
+
} from "./chunk-ZAIE3G5I.js";
|
|
55
96
|
import {
|
|
56
97
|
CORPORA,
|
|
57
98
|
MIGRATIONS,
|
|
@@ -86,80 +127,42 @@ import {
|
|
|
86
127
|
storeClients,
|
|
87
128
|
storeContents,
|
|
88
129
|
vectorIndexCounts
|
|
89
|
-
} from "./chunk-
|
|
90
|
-
import {
|
|
91
|
-
openCache
|
|
92
|
-
} from "./chunk-RN5SU2RN.js";
|
|
93
|
-
import {
|
|
94
|
-
Command,
|
|
95
|
-
LOCAL_READ,
|
|
96
|
-
LOCAL_WRITE,
|
|
97
|
-
REMOTE_READ,
|
|
98
|
-
REMOTE_WRITE,
|
|
99
|
-
annotate,
|
|
100
|
-
commandAt,
|
|
101
|
-
destroysNothing,
|
|
102
|
-
environmentOf,
|
|
103
|
-
itemOf,
|
|
104
|
-
jsonlRecords,
|
|
105
|
-
lineOf,
|
|
106
|
-
listOf,
|
|
107
|
-
nextStep,
|
|
108
|
-
outputFor,
|
|
109
|
-
recalledAccount,
|
|
110
|
-
recordLogFor,
|
|
111
|
-
renderAnswer,
|
|
112
|
-
snakeKeys,
|
|
113
|
-
storeTable,
|
|
114
|
-
withoutProviderRefs
|
|
115
|
-
} from "./chunk-7OD3522V.js";
|
|
116
|
-
import {
|
|
117
|
-
holdersOf
|
|
118
|
-
} from "./chunk-IACWKZWS.js";
|
|
119
|
-
import {
|
|
120
|
-
codeOf,
|
|
121
|
-
modelTarget,
|
|
122
|
-
parseDuration
|
|
123
|
-
} from "./chunk-JAEPK457.js";
|
|
124
|
-
import {
|
|
125
|
-
levelFor
|
|
126
|
-
} from "./chunk-LA6QUVGQ.js";
|
|
127
|
-
import {
|
|
128
|
-
modelAddressAllowed,
|
|
129
|
-
onThisComputer
|
|
130
|
-
} from "./chunk-K6HR6HCO.js";
|
|
130
|
+
} from "./chunk-HO3GBTIT.js";
|
|
131
131
|
import {
|
|
132
132
|
currentRun,
|
|
133
133
|
readDamageMark,
|
|
134
134
|
readHealthMark,
|
|
135
135
|
readJournalMark,
|
|
136
136
|
recordDeepCheck
|
|
137
|
-
} from "./chunk-
|
|
137
|
+
} from "./chunk-LSVQCI6V.js";
|
|
138
138
|
import {
|
|
139
139
|
failureKey,
|
|
140
140
|
isStoreDamage
|
|
141
|
-
} from "./chunk-
|
|
141
|
+
} from "./chunk-UYBLNGZ2.js";
|
|
142
142
|
import {
|
|
143
143
|
formatLocator,
|
|
144
144
|
parseLocator
|
|
145
|
-
} from "./chunk-
|
|
145
|
+
} from "./chunk-QS6DWXDB.js";
|
|
146
146
|
import {
|
|
147
147
|
readSharedSection,
|
|
148
148
|
sharedConfigPath,
|
|
149
149
|
writeSharedSection
|
|
150
|
-
} from "./chunk-
|
|
150
|
+
} from "./chunk-VPPNYUQM.js";
|
|
151
151
|
import {
|
|
152
152
|
storePath
|
|
153
|
-
} from "./chunk-
|
|
153
|
+
} from "./chunk-ERQRY6WZ.js";
|
|
154
|
+
import {
|
|
155
|
+
openCache
|
|
156
|
+
} from "./chunk-N3SOTKXC.js";
|
|
154
157
|
import {
|
|
155
158
|
queryFieldsOf
|
|
156
|
-
} from "./chunk-
|
|
159
|
+
} from "./chunk-3HTJBGNP.js";
|
|
157
160
|
import {
|
|
158
161
|
Credentials,
|
|
159
162
|
isMovedRun,
|
|
160
163
|
resolvePaths,
|
|
161
164
|
writeSecurely
|
|
162
|
-
} from "./chunk-
|
|
165
|
+
} from "./chunk-HNWDEDMU.js";
|
|
163
166
|
import {
|
|
164
167
|
array,
|
|
165
168
|
boolean,
|
|
@@ -181,10 +184,10 @@ import {
|
|
|
181
184
|
string,
|
|
182
185
|
transform,
|
|
183
186
|
trim
|
|
184
|
-
} from "./chunk-
|
|
187
|
+
} from "./chunk-4RJL32PF.js";
|
|
185
188
|
import {
|
|
186
189
|
CliError
|
|
187
|
-
} from "./chunk-
|
|
190
|
+
} from "./chunk-EA2OB75T.js";
|
|
188
191
|
import {
|
|
189
192
|
__commonJS,
|
|
190
193
|
__name,
|
|
@@ -5524,11 +5527,11 @@ var require_liquid_node = __commonJS({
|
|
|
5524
5527
|
}
|
|
5525
5528
|
});
|
|
5526
5529
|
|
|
5527
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5530
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/cli/messenger/store-maintenance-command.js
|
|
5528
5531
|
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";
|
|
5529
5532
|
import { dirname as dirname3, resolve } from "node:path";
|
|
5530
5533
|
|
|
5531
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5534
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/sealed.js
|
|
5532
5535
|
import { createCipheriv, createDecipheriv, createHash, randomBytes, scrypt, timingSafeEqual } from "node:crypto";
|
|
5533
5536
|
import { closeSync, createReadStream, createWriteStream, existsSync, openSync, readSync, renameSync, rmSync, statSync } from "node:fs";
|
|
5534
5537
|
import { Transform } from "node:stream";
|
|
@@ -5635,7 +5638,7 @@ var unsealFile = /* @__PURE__ */ __name(async (from, to, password) => {
|
|
|
5635
5638
|
renameSync(pending, to);
|
|
5636
5639
|
}, "unsealFile");
|
|
5637
5640
|
|
|
5638
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5641
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/store/compatibility.js
|
|
5639
5642
|
var SPEAKS = MIGRATIONS.at(-1)?.version ?? 0;
|
|
5640
5643
|
var fileSchemaOf = /* @__PURE__ */ __name((database) => {
|
|
5641
5644
|
const tracked = database.prepare("SELECT 1 FROM sqlite_master WHERE name = 'schema_migrations'").get();
|
|
@@ -5659,7 +5662,7 @@ var compatibilityOf = /* @__PURE__ */ __name((file2, migrations = MIGRATIONS) =>
|
|
|
5659
5662
|
};
|
|
5660
5663
|
}, "compatibilityOf");
|
|
5661
5664
|
|
|
5662
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5665
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/store/repair.js
|
|
5663
5666
|
import { createHash as createHash2 } from "node:crypto";
|
|
5664
5667
|
var COPY_MARK = "__repair_";
|
|
5665
5668
|
var COPY_NAME = /__repair_[0-9a-f]{8}(_\d+)?$/;
|
|
@@ -5913,19 +5916,19 @@ var deleteCopy = /* @__PURE__ */ __name((database, name) => {
|
|
|
5913
5916
|
return found;
|
|
5914
5917
|
}, "deleteCopy");
|
|
5915
5918
|
|
|
5916
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5919
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/cli/store-info.js
|
|
5917
5920
|
import { existsSync as existsSync4, statSync as statSync3 } from "node:fs";
|
|
5918
5921
|
|
|
5919
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5922
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/cli/store-recover.js
|
|
5920
5923
|
import { existsSync as existsSync3 } from "node:fs";
|
|
5921
5924
|
|
|
5922
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5925
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/store/recover.js
|
|
5923
5926
|
import { execFileSync, spawn } from "node:child_process";
|
|
5924
5927
|
import { existsSync as existsSync2, readFileSync, realpathSync, renameSync as renameSync2, rmSync as rmSync2, statfsSync, statSync as statSync2, writeFileSync } from "node:fs";
|
|
5925
5928
|
import { basename, dirname, join } from "node:path";
|
|
5926
5929
|
import { Transform as Transform2 } from "node:stream";
|
|
5927
5930
|
|
|
5928
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5931
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/store/refill.js
|
|
5929
5932
|
var REFILL_MARGIN_MS = 864e5;
|
|
5930
5933
|
var TIME_KEYS = 1e12;
|
|
5931
5934
|
var integerId = `external_id GLOB '[0-9]*' AND NOT external_id GLOB '*[^0-9]*'`;
|
|
@@ -6005,7 +6008,7 @@ var forgetMail = /* @__PURE__ */ __name((database, cutoff, now) => {
|
|
|
6005
6008
|
return [...folders].map(([account, count3]) => ({ account, folders: count3 }));
|
|
6006
6009
|
}, "forgetMail");
|
|
6007
6010
|
|
|
6008
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6011
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/store/recover.js
|
|
6009
6012
|
var SQLITE3_MINIMUM = [3, 43, 0];
|
|
6010
6013
|
var STORE_PARTS = ["", "-wal", "-shm"];
|
|
6011
6014
|
var RECOVER_LOCK = ".recover-lock";
|
|
@@ -6533,7 +6536,7 @@ var recoverLocked = /* @__PURE__ */ __name(async ({ path, command, version, sqli
|
|
|
6533
6536
|
}
|
|
6534
6537
|
}, "recoverLocked");
|
|
6535
6538
|
|
|
6536
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6539
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/cli/store-recover.js
|
|
6537
6540
|
var COUNTED = [
|
|
6538
6541
|
"accounts",
|
|
6539
6542
|
"chats",
|
|
@@ -6674,7 +6677,7 @@ var storeRecoverCommand = /* @__PURE__ */ __name(({ command, version }) => {
|
|
|
6674
6677
|
for (const line of recoveryNotes(answer))
|
|
6675
6678
|
output.renderer.note(line);
|
|
6676
6679
|
});
|
|
6677
|
-
recover.addCommand(annotate(new Command("run"), { effects: LOCAL_WRITE, examples: [`${command} store recover run`] }).summary("rebuild a damaged store from every row it can read").description("copy every readable row into a new file with the sqlite3 program, rebuild the search indexes, mentions and vector index, check it, and put it in place of the store; the damaged file is kept beside it. Refuses while a WireCat timer or process has the store").action(async function() {
|
|
6680
|
+
recover.addCommand(grantsAuthority(annotate(new Command("run"), { effects: LOCAL_WRITE, examples: [`${command} store recover run`] })).summary("rebuild a damaged store from every row it can read").description("copy every readable row into a new file with the sqlite3 program, rebuild the search indexes, mentions and vector index, check it, and put it in place of the store; the damaged file is kept beside it. Refuses while a WireCat timer or process has the store").action(async function() {
|
|
6678
6681
|
const output = outputFor(this);
|
|
6679
6682
|
const answer = await storeRecoveryRun(environmentOf(this).env ?? process.env, {
|
|
6680
6683
|
command,
|
|
@@ -6689,7 +6692,7 @@ var storeRecoverCommand = /* @__PURE__ */ __name(({ command, version }) => {
|
|
|
6689
6692
|
return recover;
|
|
6690
6693
|
}, "storeRecoverCommand");
|
|
6691
6694
|
|
|
6692
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6695
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/cli/store-info.js
|
|
6693
6696
|
var pendingIfKnown = /* @__PURE__ */ __name((database) => database.prepare("SELECT 1 FROM pragma_table_info('messages') WHERE name = 'normalized_text'").get() ? pendingNormalization(database) : null, "pendingIfKnown");
|
|
6694
6697
|
var bytesOf = /* @__PURE__ */ __name((path) => existsSync4(path) ? statSync3(path).size : 0, "bytesOf");
|
|
6695
6698
|
var messageOf = /* @__PURE__ */ __name((error) => error instanceof Error ? error.message : String(error), "messageOf");
|
|
@@ -6739,7 +6742,7 @@ var sharedStoreCommand = /* @__PURE__ */ __name((app) => {
|
|
|
6739
6742
|
return app ? store.addCommand(storeRecoverCommand(app)) : store;
|
|
6740
6743
|
}, "sharedStoreCommand");
|
|
6741
6744
|
|
|
6742
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6745
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/cli/messenger/password.js
|
|
6743
6746
|
var ENCRYPT_OPTION = [
|
|
6744
6747
|
"--encrypt",
|
|
6745
6748
|
"compress and encrypt with a password, typed at a hidden prompt or piped on stdin; it is never kept \u2014 lose it and the file cannot be opened"
|
|
@@ -6758,7 +6761,7 @@ var passwordOf = /* @__PURE__ */ __name(async (command, { twice }) => {
|
|
|
6758
6761
|
return password;
|
|
6759
6762
|
}, "passwordOf");
|
|
6760
6763
|
|
|
6761
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6764
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/replies/rules.js
|
|
6762
6765
|
import { existsSync as existsSync5, readFileSync as readFileSync2 } from "node:fs";
|
|
6763
6766
|
import { join as join2 } from "node:path";
|
|
6764
6767
|
var REPLY_ACTIONS = ["reply", "task"];
|
|
@@ -6929,7 +6932,7 @@ var problem = /* @__PURE__ */ __name((issue) => {
|
|
|
6929
6932
|
}, "problem");
|
|
6930
6933
|
var broken = /* @__PURE__ */ __name((path, why) => new CliError("configuration_error", `the reply rules ${path} cannot be read (${why}) \u2014 fix the file`), "broken");
|
|
6931
6934
|
|
|
6932
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6935
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/replies/state.js
|
|
6933
6936
|
import { existsSync as existsSync6, readFileSync as readFileSync3 } from "node:fs";
|
|
6934
6937
|
import { join as join3 } from "node:path";
|
|
6935
6938
|
var ANSWERED_KEPT = 1e3;
|
|
@@ -6982,7 +6985,7 @@ var recordReply = /* @__PURE__ */ __name((state, rule2, message, now) => {
|
|
|
6982
6985
|
}, "recordReply");
|
|
6983
6986
|
var broken2 = /* @__PURE__ */ __name((path, why) => new CliError("configuration_error", `the reply state ${path} cannot be read (${why}) \u2014 fix or move the file`), "broken");
|
|
6984
6987
|
|
|
6985
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6988
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/replies/decide.js
|
|
6986
6989
|
var skip = /* @__PURE__ */ __name((why) => ({ skip: why }), "skip");
|
|
6987
6990
|
var decide = /* @__PURE__ */ __name((rule2, incoming, state, now) => {
|
|
6988
6991
|
const { message, chat, owner, sender } = incoming;
|
|
@@ -7088,10 +7091,10 @@ var filled = /* @__PURE__ */ __name((template2, senderName) => {
|
|
|
7088
7091
|
return template2.replaceAll("{firstName}", name.split(/\s+/)[0] ?? name).replaceAll("{name}", name);
|
|
7089
7092
|
}, "filled");
|
|
7090
7093
|
|
|
7091
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7094
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/replies/template.js
|
|
7092
7095
|
var import_liquidjs2 = __toESM(require_liquid_node(), 1);
|
|
7093
7096
|
|
|
7094
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7097
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/render/liquid.js
|
|
7095
7098
|
var import_liquidjs = __toESM(require_liquid_node(), 1);
|
|
7096
7099
|
var safeLiquid = /* @__PURE__ */ __name((limits) => {
|
|
7097
7100
|
const engine = new import_liquidjs.Liquid({
|
|
@@ -7118,7 +7121,7 @@ var safeLiquid = /* @__PURE__ */ __name((limits) => {
|
|
|
7118
7121
|
return engine;
|
|
7119
7122
|
}, "safeLiquid");
|
|
7120
7123
|
|
|
7121
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7124
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/replies/template.js
|
|
7122
7125
|
var TEMPLATE_LIMITS = {
|
|
7123
7126
|
parse: 32768,
|
|
7124
7127
|
renders: 2e3,
|
|
@@ -7257,7 +7260,7 @@ var renderReplyTemplate = /* @__PURE__ */ __name(async (reply, input) => {
|
|
|
7257
7260
|
}
|
|
7258
7261
|
}, "renderReplyTemplate");
|
|
7259
7262
|
|
|
7260
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7263
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/replies/dry-run.js
|
|
7261
7264
|
var DRY_RUN_DAYS = 7;
|
|
7262
7265
|
var PAGE = 500;
|
|
7263
7266
|
var dryRun = /* @__PURE__ */ __name(async (store, account, rules, { since, until = Date.now(), only, audience, render }) => {
|
|
@@ -7371,7 +7374,7 @@ var storedSince = /* @__PURE__ */ __name(async (store, account, chat, since) =>
|
|
|
7371
7374
|
}
|
|
7372
7375
|
}, "storedSince");
|
|
7373
7376
|
|
|
7374
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7377
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/models/ai.js
|
|
7375
7378
|
var AI_PROVIDERS = ["anthropic", "openai", "ollama"];
|
|
7376
7379
|
var DEFAULT_BASE_URL = {
|
|
7377
7380
|
anthropic: "https://api.anthropic.com",
|
|
@@ -7417,10 +7420,10 @@ var aiSettingOf = /* @__PURE__ */ __name((given) => {
|
|
|
7417
7420
|
const checked = safeParse(settingShape, draft);
|
|
7418
7421
|
if (!checked.success) {
|
|
7419
7422
|
const field = getDotPath(checked.issues[0]);
|
|
7420
|
-
throw new CliError("validation_error", field === "provider" ? `the provider is one of ${AI_PROVIDERS.join(", ")}` : field === "base_url" ? "this address is not allowed: use https, or http only on this computer" : "name the model, 1 to 200 characters", { reason: field === "base_url" ? "
|
|
7423
|
+
throw new CliError("validation_error", field === "provider" ? `the provider is one of ${AI_PROVIDERS.join(", ")}` : field === "base_url" ? "this address is not allowed: use https, or http only on this computer" : "name the model, 1 to 200 characters", { reason: field === "base_url" ? "model.address-refused" : "ai.setting-invalid" });
|
|
7421
7424
|
}
|
|
7422
7425
|
if (checked.output.provider === "ollama" && !onThisComputer(aiBaseUrl(checked.output)))
|
|
7423
|
-
throw new CliError("validation_error", "Ollama is read only on this computer", { reason: "
|
|
7426
|
+
throw new CliError("validation_error", "Ollama is read only on this computer", { reason: "model.address-refused" });
|
|
7424
7427
|
return given.allowImages ? {
|
|
7425
7428
|
...checked.output,
|
|
7426
7429
|
images: { origin: aiOrigin(checked.output), model: checked.output.model, at: (/* @__PURE__ */ new Date()).toISOString() }
|
|
@@ -7535,7 +7538,7 @@ var checkAi = /* @__PURE__ */ __name(async (deps) => {
|
|
|
7535
7538
|
}
|
|
7536
7539
|
}, "checkAi");
|
|
7537
7540
|
|
|
7538
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7541
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/models/purpose.js
|
|
7539
7542
|
var HOSTED = {
|
|
7540
7543
|
openai: "https://api.openai.com/v1",
|
|
7541
7544
|
anthropic: "https://api.anthropic.com"
|
|
@@ -7556,7 +7559,7 @@ var purposeModel = /* @__PURE__ */ __name((settings, purpose, deps) => {
|
|
|
7556
7559
|
return shared ? { target: shared.target, key: /* @__PURE__ */ __name(() => shared.key, "key"), shared: shared.setting } : void 0;
|
|
7557
7560
|
}, "purposeModel");
|
|
7558
7561
|
|
|
7559
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7562
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/replies/consents.js
|
|
7560
7563
|
import { existsSync as existsSync7, readFileSync as readFileSync4 } from "node:fs";
|
|
7561
7564
|
import { join as join4 } from "node:path";
|
|
7562
7565
|
var shape = strictObject({
|
|
@@ -7581,7 +7584,7 @@ var mayModelReply = /* @__PURE__ */ __name((path, provider, chat) => {
|
|
|
7581
7584
|
return consent.provider === provider && !consent.deniedChats.includes(chat);
|
|
7582
7585
|
}, "mayModelReply");
|
|
7583
7586
|
|
|
7584
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7587
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/replies/rendering.js
|
|
7585
7588
|
var replyRenderer = /* @__PURE__ */ __name((app, profile, settings, env, warn, options = {
|
|
7586
7589
|
ai: true
|
|
7587
7590
|
}) => async (rule2, message, chat, now) => {
|
|
@@ -7629,7 +7632,7 @@ var replyRenderer = /* @__PURE__ */ __name((app, profile, settings, env, warn, o
|
|
|
7629
7632
|
return result2;
|
|
7630
7633
|
}, "replyRenderer");
|
|
7631
7634
|
|
|
7632
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7635
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/replies/serve.js
|
|
7633
7636
|
var NOT_ALLOWED = "replies.send is not allow";
|
|
7634
7637
|
var NO_RULES = "no rules";
|
|
7635
7638
|
var ONLY_TASK = "opened a task, sent nothing";
|
|
@@ -7722,7 +7725,7 @@ var replyTo = /* @__PURE__ */ __name(async (deps, message) => {
|
|
|
7722
7725
|
return { skip: why };
|
|
7723
7726
|
}, "replyTo");
|
|
7724
7727
|
|
|
7725
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7728
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-catch-up.js
|
|
7726
7729
|
var START_SYNC_DELAY_MS = 3e4;
|
|
7727
7730
|
var START_SYNC_BUDGET_MS = 5 * 6e4;
|
|
7728
7731
|
var START_SYNC_WINDOW_MS = 7 * 864e5;
|
|
@@ -7799,7 +7802,7 @@ var startSync = /* @__PURE__ */ __name(({ chats, newestHeld, fetch, note, warn,
|
|
|
7799
7802
|
};
|
|
7800
7803
|
}, "startSync");
|
|
7801
7804
|
|
|
7802
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7805
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-members.js
|
|
7803
7806
|
var FIRST_FETCH_MS = 6e4;
|
|
7804
7807
|
var DAY_MS = 864e5;
|
|
7805
7808
|
var memberFetches = /* @__PURE__ */ __name(({ withStore, fetch, warn, firstMs = FIRST_FETCH_MS, everyMs = DAY_MS }) => {
|
|
@@ -7853,7 +7856,7 @@ var memberFetches = /* @__PURE__ */ __name(({ withStore, fetch, warn, firstMs =
|
|
|
7853
7856
|
};
|
|
7854
7857
|
}, "memberFetches");
|
|
7855
7858
|
|
|
7856
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7859
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-notice.js
|
|
7857
7860
|
var record2 = /* @__PURE__ */ __name((context, app, severity, attributes) => recordLogFor(context.streams.diagnostic, app, { command: currentRun().command || "serve" })[severity](attributes), "record");
|
|
7858
7861
|
var noticeFor = /* @__PURE__ */ __name((context, app, severity = "warn") => ({ text, ...attributes }) => {
|
|
7859
7862
|
if (context.format === "pretty") {
|
|
@@ -7886,7 +7889,7 @@ var recordDiagnostics = /* @__PURE__ */ __name((context, app) => {
|
|
|
7886
7889
|
return context;
|
|
7887
7890
|
}, "recordDiagnostics");
|
|
7888
7891
|
|
|
7889
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7892
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-outdated.js
|
|
7890
7893
|
import { existsSync as existsSync8, readFileSync as readFileSync5, realpathSync as realpathSync2 } from "node:fs";
|
|
7891
7894
|
import { dirname as dirname2, join as join5 } from "node:path";
|
|
7892
7895
|
var OUTDATED_CHECK_MS = 6e4;
|
|
@@ -7972,7 +7975,7 @@ var watchOutdated = /* @__PURE__ */ __name(({ check: check2, onOutdated, everyMs
|
|
|
7972
7975
|
};
|
|
7973
7976
|
}, "watchOutdated");
|
|
7974
7977
|
|
|
7975
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7978
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-stems.js
|
|
7976
7979
|
var STEMS_EVERY_MS = 3e4;
|
|
7977
7980
|
var STEMS_SLICE_MS = 2e3;
|
|
7978
7981
|
var stemFills = /* @__PURE__ */ __name(({ withStore, warn, everyMs = STEMS_EVERY_MS, sliceMs = STEMS_SLICE_MS }) => {
|
|
@@ -8012,7 +8015,7 @@ var stemFills = /* @__PURE__ */ __name(({ withStore, warn, everyMs = STEMS_EVERY
|
|
|
8012
8015
|
};
|
|
8013
8016
|
}, "stemFills");
|
|
8014
8017
|
|
|
8015
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8018
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/cli/messenger/message-items.js
|
|
8016
8019
|
var defined = /* @__PURE__ */ __name((value) => Object.fromEntries(Object.entries(value).filter(([, one]) => one !== void 0)), "defined");
|
|
8017
8020
|
var attachmentItem = /* @__PURE__ */ __name((attachment) => defined({
|
|
8018
8021
|
kind: attachment.kind,
|
|
@@ -8108,7 +8111,7 @@ var viewOf = /* @__PURE__ */ __name((context, messenger) => ({
|
|
|
8108
8111
|
locale: messenger.app.locale
|
|
8109
8112
|
}), "viewOf");
|
|
8110
8113
|
|
|
8111
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8114
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/cli/messenger/watch-answers.js
|
|
8112
8115
|
var observed = /* @__PURE__ */ __name((value) => ({
|
|
8113
8116
|
value: value.value,
|
|
8114
8117
|
observed_at: value.observedAt,
|
|
@@ -8175,7 +8178,7 @@ var watchEventItem = /* @__PURE__ */ __name((value, account) => {
|
|
|
8175
8178
|
}
|
|
8176
8179
|
}, "watchEventItem");
|
|
8177
8180
|
|
|
8178
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8181
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/cli/messenger/watch-command.js
|
|
8179
8182
|
var watchCommand = /* @__PURE__ */ __name((messenger) => annotate(new Command("watch"), {
|
|
8180
8183
|
output: { entity: "watch_item" },
|
|
8181
8184
|
effects: REMOTE_READ,
|
|
@@ -8330,7 +8333,7 @@ var describe = /* @__PURE__ */ __name((event, render) => {
|
|
|
8330
8333
|
}
|
|
8331
8334
|
}, "describe");
|
|
8332
8335
|
|
|
8333
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8336
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-command.js
|
|
8334
8337
|
var serveCommand = /* @__PURE__ */ __name((messenger) => {
|
|
8335
8338
|
const command = annotate(new Command("serve"), {
|
|
8336
8339
|
output: { entity: "serve_summary" },
|
|
@@ -8613,7 +8616,7 @@ var tasking = /* @__PURE__ */ __name((context, warn) => {
|
|
|
8613
8616
|
};
|
|
8614
8617
|
}, "tasking");
|
|
8615
8618
|
|
|
8616
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8619
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/cli/messenger/store-tables-command.js
|
|
8617
8620
|
import { existsSync as existsSync9 } from "node:fs";
|
|
8618
8621
|
var PATH = "store tables list";
|
|
8619
8622
|
var STORE_TABLES_QUERY = {
|
|
@@ -8656,7 +8659,7 @@ var storeTablesCommand = /* @__PURE__ */ __name((owner) => {
|
|
|
8656
8659
|
return tables;
|
|
8657
8660
|
}, "storeTablesCommand");
|
|
8658
8661
|
|
|
8659
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8662
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/cli/messenger/store-maintenance-command.js
|
|
8660
8663
|
var SEARCH_INDEXES = ["messages_fts", "chats_fts", "identities_fts"];
|
|
8661
8664
|
var WORD_INDEX = "message_words";
|
|
8662
8665
|
var schemaOf = /* @__PURE__ */ __name((database) => {
|
|
@@ -9142,7 +9145,7 @@ var decryptCommand = /* @__PURE__ */ __name(() => annotate(new Command("decrypt"
|
|
|
9142
9145
|
await unsealFile(from, to, await passwordOf(this, { twice: false }));
|
|
9143
9146
|
result(this, { path: to, from, bytes: bytesOf2(to) });
|
|
9144
9147
|
}), "decryptCommand");
|
|
9145
|
-
var restoreCommand = /* @__PURE__ */ __name((owner) => annotate(new Command("restore"), { output: { entity: "store_restore" }, effects: LOCAL_WRITE }).summary("restore a backup and keep the current store, or roll back a breaking upgrade").description("put a backup in place of the store; the store it replaces is kept beside it, never deleted. Given a rollback copy (backups/<store>-rollback-schema-<version>-<time>.db, kept for a day before an upgrade older tools cannot open), put its tables back in the store and return it to that version instead").argument("<file>", "a file `store backup` wrote, or a rollback copy; one written with --encrypt asks for its password").action(async function(file2) {
|
|
9148
|
+
var restoreCommand = /* @__PURE__ */ __name((owner) => grantsAuthority(annotate(new Command("restore"), { output: { entity: "store_restore" }, effects: LOCAL_WRITE })).summary("restore a backup and keep the current store, or roll back a breaking upgrade").description("put a backup in place of the store; the store it replaces is kept beside it, never deleted. Given a rollback copy (backups/<store>-rollback-schema-<version>-<time>.db, kept for a day before an upgrade older tools cannot open), put its tables back in the store and return it to that version instead").argument("<file>", "a file `store backup` wrote, or a rollback copy; one written with --encrypt asks for its password").action(async function(file2) {
|
|
9146
9149
|
const path = storePath(environmentOf(this).env ?? process.env);
|
|
9147
9150
|
const given = resolve(file2);
|
|
9148
9151
|
if (!existsSync10(given))
|
|
@@ -9274,7 +9277,7 @@ var quiesce = /* @__PURE__ */ __name(async (path, owner, then, warn, waitMs = ST
|
|
|
9274
9277
|
database.close();
|
|
9275
9278
|
}
|
|
9276
9279
|
}, "quiesce");
|
|
9277
|
-
var resetCommand = /* @__PURE__ */ __name((owner) => annotate(new Command("reset"), { output: { entity: "store_reset" }, effects: LOCAL_WRITE }).summary(`back up the ${archive(owner)} and replace it with an empty one`).description("back the store up beside itself, then delete it and start an empty one at this build's schema; asks first, or --yes").option("--no-backup", "delete the store without backing it up first").option("--dry-run", "list every table it would empty, with its rows, and delete nothing").action(async function({ backup: keep, dryRun: dryRun2 }) {
|
|
9280
|
+
var resetCommand = /* @__PURE__ */ __name((owner) => annotate(new Command("reset"), { output: { entity: "store_reset" }, effects: LOCAL_WRITE, mcp: false }).summary(`back up the ${archive(owner)} and replace it with an empty one`).description("back the store up beside itself, then delete it and start an empty one at this build's schema; asks first, or --yes").option("--no-backup", "delete the store without backing it up first").option("--dry-run", "list every table it would empty, with its rows, and delete nothing").action(async function({ backup: keep, dryRun: dryRun2 }) {
|
|
9278
9281
|
const { renderer } = outputFor(this);
|
|
9279
9282
|
const { command } = owner.app;
|
|
9280
9283
|
const env = environmentOf(this).env ?? process.env;
|
|
@@ -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-EA2OB75T.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.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/cli/input-policy.js
|
|
11
11
|
var MAX_BUFFERED_INPUT = 16 * 1024 * 1024;
|
|
12
12
|
var MAX_SECRET_INPUT = 64 * 1024;
|
|
13
13
|
var policies = /* @__PURE__ */ new WeakMap();
|
|
@@ -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.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/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);
|