@wirecat/zoom-cli 0.72.0 → 0.74.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-SDOAABLC.js} +12 -12
- package/dist/bundle/answer-policy-RHS74QYY.js +110 -0
- package/dist/bundle/{anthropic-SSUBR3BC.js → anthropic-HCVY2PIN.js} +7 -7
- package/dist/bundle/{app-server-7DJHHF2F.js → app-server-V64VS6KN.js} +65 -61
- package/dist/bundle/{bun-6HBYWQIX.js → bun-EBQHHLKR.js} +2 -2
- package/dist/bundle/{bun-sqlite-4L3Q55NB.js → bun-sqlite-PVMXO2JB.js} +7 -7
- package/dist/bundle/chunk-2PNG76LV.js +707 -0
- package/dist/bundle/chunk-2PYZTRRC.js +84 -0
- package/dist/bundle/{chunk-63QXCE5Z.js → chunk-3HTJBGNP.js} +10 -10
- package/dist/bundle/{chunk-5X4IY5JH.js → chunk-3ROL6MBJ.js} +1763 -762
- package/dist/bundle/{chunk-N4QNYWWG.js → chunk-3TYNBHBK.js} +2 -2
- package/dist/bundle/{chunk-7SUWPMZG.js → chunk-4ELLWJT4.js} +8 -8
- package/dist/bundle/{chunk-PJWSGXOB.js → chunk-4EZKR6Q4.js} +7 -7
- package/dist/bundle/{chunk-UVZLK3M4.js → chunk-4RJL32PF.js} +25 -10
- package/dist/bundle/{chunk-LTWJM3ED.js → chunk-5KDBLEUF.js} +17 -17
- package/dist/bundle/{chunk-7IFO43Q5.js → chunk-5R6EBM5Z.js} +2 -2
- package/dist/bundle/{chunk-OHCLQJOV.js → chunk-6EMOZGSN.js} +3 -3
- package/dist/bundle/{chunk-D24OQAHM.js → chunk-6GPBDVQ2.js} +4 -4
- package/dist/bundle/chunk-7NE3LB7A.js +25 -0
- package/dist/bundle/{chunk-VIV64MQM.js → chunk-7R4UU65O.js} +26 -17
- package/dist/bundle/{chunk-4XQWF3U2.js → chunk-7W23N2YW.js} +6 -6
- package/dist/bundle/{chunk-RN5SU2RN.js → chunk-AFUHT7F7.js} +6 -6
- package/dist/bundle/{chunk-SXZGCD6E.js → chunk-APLV37JA.js} +3 -3
- package/dist/bundle/{chunk-LLUNHAZ7.js → chunk-BKMC4ETU.js} +4 -4
- package/dist/bundle/{chunk-IACWKZWS.js → chunk-BOGGQOVO.js} +1 -1
- package/dist/bundle/{chunk-U3NJBGLA.js → chunk-DSRG5NRF.js} +185 -34
- package/dist/bundle/{chunk-X2MP634F.js → chunk-DXZN3DU6.js} +4 -4
- package/dist/bundle/{chunk-ELJUBPY4.js → chunk-EA2OB75T.js} +1 -1
- package/dist/bundle/{chunk-ZVFYGTGJ.js → chunk-F6PUM6ZK.js} +17 -17
- package/dist/bundle/{chunk-MCPOZNWG.js → chunk-FIVFP53N.js} +1 -1
- package/dist/bundle/{chunk-WOAYHCM2.js → chunk-FL2TKSZY.js} +1 -1
- 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-I7CUMZD6.js → chunk-FY2X6U6O.js} +3 -3
- package/dist/bundle/{chunk-W3YTVEWV.js → chunk-GPGIU3OG.js} +9 -9
- package/dist/bundle/{chunk-6DCLZLGX.js → chunk-HCZYJMBP.js} +1 -1
- package/dist/bundle/{chunk-IU4DUUB3.js → chunk-HGUYJUNO.js} +325 -14
- package/dist/bundle/{chunk-S7SXSHRC.js → chunk-HNWDEDMU.js} +61 -30
- package/dist/bundle/{chunk-NMZQTYKJ.js → chunk-HZUUVNWC.js} +1 -1
- package/dist/bundle/{chunk-7S4D5SM2.js → chunk-I2D4ZZOD.js} +31 -32
- package/dist/bundle/{chunk-XPWZSW6Y.js → chunk-IJCUAKR5.js} +4 -4
- package/dist/bundle/{chunk-QQUY4MZY.js → chunk-IJONJTST.js} +1 -1
- package/dist/bundle/chunk-IS6FUZCP.js +73 -0
- package/dist/bundle/{chunk-ZW5KHKMA.js → chunk-IZUOL4Q6.js} +5 -5
- package/dist/bundle/{chunk-H53WFZBN.js → chunk-KBRIMLVN.js} +12 -12
- package/dist/bundle/{chunk-2MIBRVSV.js → chunk-KCPRTZBZ.js} +2 -2
- package/dist/bundle/chunk-KYL5FYOW.js +13 -0
- package/dist/bundle/{chunk-4SY67IUA.js → chunk-LHPYSVGP.js} +26 -35
- package/dist/bundle/{chunk-JG4MNYG2.js → chunk-LN2LWPN2.js} +1 -1
- package/dist/bundle/{chunk-CW46FWKW.js → chunk-LQR4V5EY.js} +14 -12
- package/dist/bundle/{chunk-B3SILJBU.js → chunk-LUBG5GKK.js} +30 -22
- package/dist/bundle/{chunk-3KRTEX5M.js → chunk-LZ4AVHBS.js} +3 -2
- 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-KPIQXFNB.js → chunk-N7KCNMKL.js} +16 -15
- package/dist/bundle/{chunk-RLCVPECY.js → chunk-NKBMLSWK.js} +110 -64
- package/dist/bundle/{chunk-T27IMG6X.js → chunk-NV2REPY6.js} +1 -1
- package/dist/bundle/{chunk-EFF2XBHP.js → chunk-OP6HK2QL.js} +2 -2
- package/dist/bundle/{chunk-WLVG4RBZ.js → chunk-OPUGV7VW.js} +15 -2
- package/dist/bundle/{chunk-5AELTC52.js → chunk-P53CLAXD.js} +103 -102
- package/dist/bundle/{chunk-KWURWGGB.js → chunk-PKM2UKAZ.js} +32 -9
- package/dist/bundle/{chunk-7JYMGXLI.js → chunk-PMHMKZEJ.js} +47 -43
- package/dist/bundle/{chunk-23J2ANZ7.js → chunk-QAGSAOYS.js} +2 -2
- package/dist/bundle/{chunk-JZ4XNNL7.js → chunk-QLKCKTM4.js} +1 -1
- package/dist/bundle/{chunk-OP5PGE2N.js → chunk-QSWR7VDA.js} +4 -4
- package/dist/bundle/{chunk-LA6QUVGQ.js → chunk-R35YGFKQ.js} +163 -16
- package/dist/bundle/{chunk-CANRIRNZ.js → chunk-R4J4DLJV.js} +1792 -1205
- package/dist/bundle/{chunk-QW7YTRV2.js → chunk-RJJ4OYNH.js} +3 -3
- package/dist/bundle/{chunk-DOCVEKP2.js → chunk-RQJ2RXFO.js} +37 -35
- package/dist/bundle/{chunk-TF2WKPNW.js → chunk-RRW54FK6.js} +17 -17
- package/dist/bundle/{chunk-KFZL67JP.js → chunk-SKDQNYKA.js} +129 -48
- package/dist/bundle/{chunk-7GLJSJ7M.js → chunk-SPWKGRTO.js} +1 -1
- package/dist/bundle/{chunk-MSQHSW4C.js → chunk-SY4MIIWF.js} +2 -2
- package/dist/bundle/{chunk-ZHA56THL.js → chunk-TKPIDOW5.js} +927 -904
- package/dist/bundle/{chunk-WXTYYWZI.js → chunk-TLNZUPGU.js} +115 -113
- package/dist/bundle/{chunk-WZGKHTA4.js → chunk-TMCXUWTY.js} +8 -2
- package/dist/bundle/{chunk-7OD3522V.js → chunk-TN2YUZBF.js} +1192 -496
- package/dist/bundle/{chunk-JFPUYQSP.js → chunk-UGLNVUFX.js} +5 -5
- package/dist/bundle/{chunk-IFBIXU6C.js → chunk-UVWNUY3W.js} +2 -2
- package/dist/bundle/{chunk-5MGICK47.js → chunk-UW3BB2XW.js} +26 -26
- package/dist/bundle/{chunk-24OFZNRC.js → chunk-UXSTXFZQ.js} +5168 -4245
- package/dist/bundle/{chunk-U32VL3MA.js → chunk-WRRGO246.js} +3 -2
- package/dist/bundle/{chunk-QA6KIL7Q.js → chunk-WYV5IITK.js} +11 -8
- package/dist/bundle/{chunk-D5EUMWD5.js → chunk-X2FILY5F.js} +3 -3
- package/dist/bundle/{chunk-4YIGXTBP.js → chunk-XCC7R47Z.js} +3 -3
- package/dist/bundle/{chunk-37NF5CBJ.js → chunk-XFT3YIHU.js} +6 -8
- package/dist/bundle/{chunk-IXO4SCKE.js → chunk-XGEPAJBY.js} +1 -1
- package/dist/bundle/chunk-XWBPP2HX.js +2 -0
- package/dist/bundle/{chunk-RJTGENHZ.js → chunk-Y4KWWPIO.js} +4 -7
- package/dist/bundle/{chunk-DEPXZJ2V.js → chunk-YFLTHGB3.js} +17 -13
- package/dist/bundle/{chunk-JRCH4YZP.js → chunk-YM6ZATEK.js} +17 -121
- package/dist/bundle/{chunk-ADKMBXY4.js → chunk-YNI57LTZ.js} +1 -1
- package/dist/bundle/{chunk-ERJYJ36F.js → chunk-ZMHZ6CQS.js} +2 -2
- package/dist/bundle/{chunk-M3DMXDX6.js → chunk-ZYMTS3CI.js} +6 -6
- package/dist/bundle/{cli-IYYI7GAM.js → cli-5ALOQCAC.js} +152 -123
- package/dist/bundle/command-contract-WO5QJVLZ.js +41 -0
- package/dist/bundle/{command-server-entry-FXX4LJWF.js → command-server-entry-ICOMIJIH.js} +33 -33
- package/dist/bundle/config-YQA5TJ7Y.js +97 -0
- package/dist/bundle/{decode-SRGOOGBW.js → decode-7LFOROWF.js} +6 -6
- package/dist/bundle/{dispatch-OUHRPFUL.js → dispatch-EU67WGME.js} +9 -9
- package/dist/bundle/{dist-UZLNLAIO.js → dist-KJOOYNCP.js} +25 -22
- package/dist/bundle/{echarts-7CM2MCMW.js → echarts-EJXBKCJT.js} +2 -2
- package/dist/bundle/{embed-VEE56BOB.js → embed-TOZCKRRO.js} +7 -7
- package/dist/bundle/{embedder-SZFYR543.js → embedder-QKEKUCS5.js} +10 -10
- package/dist/bundle/{failure-MZBNM7M5.js → failure-CTJLEB2R.js} +3 -3
- package/dist/bundle/first-run-S7CQVGK6.js +29 -0
- package/dist/bundle/first-screen-6GW6FD6S.js +39 -0
- package/dist/bundle/folders-MSBTAPAG.js +24 -0
- package/dist/bundle/{instructions-R7OHVAWH.js → instructions-Z7GVGWXS.js} +1 -1
- package/dist/bundle/{main-EFUN2O3K.js → main-RL3GC4OX.js} +39 -26
- package/dist/bundle/{mcp-7KQUJNFN.js → mcp-TDKGDB4V.js} +2 -2
- package/dist/bundle/{meetings-5I2BDNTA.js → meetings-JCMLE5AO.js} +9 -7
- package/dist/bundle/{node-P4E63KXA.js → node-KM3CUABH.js} +9 -9
- package/dist/bundle/{node-3N2JGZ7V.js → node-L2PVEW3N.js} +2 -2
- package/dist/bundle/{node-sqlite-2UVEE2WM.js → node-sqlite-4YW3W4XI.js} +10 -10
- package/dist/bundle/{oauth-AYGD7UU3.js → oauth-NNHWAT6A.js} +8 -8
- package/dist/bundle/{open-3GUVDLGD.js → open-PF2JHJIY.js} +6 -6
- package/dist/bundle/openai-C72ADYMD.js +28 -0
- package/dist/bundle/{output-file-72JFXVHQ.js → output-file-VDOCYH2G.js} +6 -6
- package/dist/bundle/{process-YAHHUFR5.js → process-MNZTQ2DA.js} +1 -1
- package/dist/bundle/{program-OSZROCTK.js → program-FOCBZZZS.js} +146 -151
- package/dist/bundle/{prompt-HMCW4XQJ.js → prompt-RBSUKMV7.js} +6 -6
- package/dist/bundle/{recognize-VF5CA7EM.js → recognize-RM6TQKK3.js} +5 -5
- package/dist/bundle/{remote-5C6VTPR2.js → remote-UKHTU3YR.js} +11 -10
- package/dist/bundle/{rerank-ER7NEDOI.js → rerank-3LBRVESU.js} +8 -8
- package/dist/bundle/run-log-UXINNGKA.js +124 -0
- package/dist/bundle/{serve-QJWXJOM7.js → serve-OOZFTW3W.js} +10 -10
- package/dist/bundle/server-DM5ZPFZB.js +75 -0
- package/dist/bundle/{server-KCIK3Y2P.js → server-YNQPNIJD.js} +52 -50
- package/dist/bundle/{services-LQMYJQG3.js → services-SLEOMN4B.js} +61 -44
- package/dist/bundle/{speech-74GJQNQH.js → speech-FZZ6QVGU.js} +20 -20
- package/dist/bundle/sqlite-runtime-WUR4PWYB.js +20 -0
- package/dist/bundle/{state-4XDGCHDF.js → state-ET36L4TY.js} +7 -7
- package/dist/bundle/{store-5Y5HK2L2.js → store-DI6OUBXA.js} +20 -20
- package/dist/bundle/{store-Y56AHJ2Y.js → store-SQB2DOVJ.js} +34 -28
- package/dist/bundle/store-connection-M6LVRAZ5.js +90 -0
- package/dist/bundle/store-maintenance-command-B66KWG6K.js +65 -0
- package/dist/bundle/{streaming-E5CR6HSR.js → streaming-PQEXKTE5.js} +7 -7
- package/dist/bundle/tokens-SUHRRQ25.js +24 -0
- package/dist/bundle/zm.js +9 -9
- package/dist/bundle/{zoom-app-NVL7HEAX.js → zoom-app-GE4SSHOP.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-JAEPK457.js +0 -997
- package/dist/bundle/chunk-K6HR6HCO.js +0 -32
- package/dist/bundle/chunk-OY6N2ABP.js +0 -1239
- package/dist/bundle/chunk-YVVJ6Y5C.js +0 -153
- 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
|
@@ -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.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/store/driver.js
|
|
8
8
|
var TIME_LIMIT_FUNCTION = "wc_time_limit";
|
|
9
9
|
var TimeLimitReached = class extends Error {
|
|
10
10
|
static {
|
|
@@ -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.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/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();
|
|
@@ -2,7 +2,7 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
|
|
4
4
|
// dist/version.js
|
|
5
|
-
var VERSION = "0.
|
|
5
|
+
var VERSION = "0.74.0";
|
|
6
6
|
|
|
7
7
|
// dist/identity.js
|
|
8
8
|
var CLIENT_ID_MISSING = "zoom.client-id-missing";
|
|
@@ -23,9 +23,22 @@ var ZM = {
|
|
|
23
23
|
messenger: false,
|
|
24
24
|
errors: { reasons: ZOOM_REASONS }
|
|
25
25
|
};
|
|
26
|
+
var ZOOM_HOSTS = ["zoom.us", "*.zoom.us", "zoom.com", "*.zoom.com"];
|
|
27
|
+
var DESKTOP = {
|
|
28
|
+
...ZM,
|
|
29
|
+
docs: "https://wirecat.dev/en/docs/zm",
|
|
30
|
+
hosts: ZOOM_HOSTS,
|
|
31
|
+
tagline: "Zoom transcripts and recordings, searchable",
|
|
32
|
+
syncs: "meetings and transcripts",
|
|
33
|
+
signIn: {
|
|
34
|
+
gives: "Lets your agent find your Zoom meetings and read their transcripts and summaries.",
|
|
35
|
+
asks: "Your browser opens Zoom to approve access. Zoom first needs an app of your own, made once in the Zoom App Marketplace."
|
|
36
|
+
}
|
|
37
|
+
};
|
|
26
38
|
|
|
27
39
|
export {
|
|
28
40
|
VERSION,
|
|
29
41
|
CLIENT_ID_MISSING,
|
|
30
|
-
ZM
|
|
42
|
+
ZM,
|
|
43
|
+
ZOOM_HOSTS
|
|
31
44
|
};
|
|
@@ -3,26 +3,23 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
answerOf,
|
|
5
5
|
messengerContext
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-I2D4ZZOD.js";
|
|
7
7
|
import {
|
|
8
8
|
chatEventAnswer,
|
|
9
9
|
memberAnswer,
|
|
10
10
|
pollVoteAnswer,
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
typedQuery,
|
|
14
|
-
withQuery
|
|
15
|
-
} from "./chunk-OY6N2ABP.js";
|
|
11
|
+
serveRelay
|
|
12
|
+
} from "./chunk-2PNG76LV.js";
|
|
16
13
|
import {
|
|
17
14
|
renderMessages
|
|
18
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-5R6EBM5Z.js";
|
|
19
16
|
import {
|
|
20
17
|
holdLock,
|
|
21
18
|
lockPath,
|
|
22
19
|
releaseLock,
|
|
23
20
|
servingProfiles,
|
|
24
21
|
takeLock
|
|
25
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-APLV37JA.js";
|
|
26
23
|
import {
|
|
27
24
|
FETCHING,
|
|
28
25
|
RULES_VERSION,
|
|
@@ -35,12 +32,17 @@ import {
|
|
|
35
32
|
onlineDeps,
|
|
36
33
|
openRequestTask,
|
|
37
34
|
patiently,
|
|
35
|
+
queryTerms,
|
|
38
36
|
refuseLockedOutput,
|
|
39
37
|
senderIsMe,
|
|
40
38
|
servicesFor,
|
|
41
39
|
syncsOneChat,
|
|
40
|
+
typedQuery,
|
|
41
|
+
withQuery
|
|
42
|
+
} from "./chunk-3ROL6MBJ.js";
|
|
43
|
+
import {
|
|
42
44
|
withTimeLimit
|
|
43
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-7NE3LB7A.js";
|
|
44
46
|
import {
|
|
45
47
|
QUICK_HEALTH_CHECKS,
|
|
46
48
|
fts5Tables,
|
|
@@ -48,10 +50,47 @@ import {
|
|
|
48
50
|
lossUnknown,
|
|
49
51
|
storeDamageReport,
|
|
50
52
|
storeHealth
|
|
51
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-F6PUM6ZK.js";
|
|
54
|
+
import {
|
|
55
|
+
Command,
|
|
56
|
+
LOCAL_READ,
|
|
57
|
+
LOCAL_WRITE,
|
|
58
|
+
REMOTE_READ,
|
|
59
|
+
REMOTE_WRITE,
|
|
60
|
+
annotate,
|
|
61
|
+
codeOf,
|
|
62
|
+
commandAt,
|
|
63
|
+
destroysNothing,
|
|
64
|
+
environmentOf,
|
|
65
|
+
grantsAuthority,
|
|
66
|
+
itemOf,
|
|
67
|
+
jsonlRecords,
|
|
68
|
+
lineOf,
|
|
69
|
+
listOf,
|
|
70
|
+
modelTarget,
|
|
71
|
+
nextStep,
|
|
72
|
+
outputFor,
|
|
73
|
+
parseDuration,
|
|
74
|
+
recalledAccount,
|
|
75
|
+
recordLogFor,
|
|
76
|
+
renderAnswer,
|
|
77
|
+
snakeKeys,
|
|
78
|
+
storeTable,
|
|
79
|
+
withoutProviderRefs
|
|
80
|
+
} from "./chunk-TN2YUZBF.js";
|
|
81
|
+
import {
|
|
82
|
+
levelFor
|
|
83
|
+
} from "./chunk-R35YGFKQ.js";
|
|
84
|
+
import {
|
|
85
|
+
holdersOf
|
|
86
|
+
} from "./chunk-BOGGQOVO.js";
|
|
87
|
+
import {
|
|
88
|
+
modelAddressAllowed,
|
|
89
|
+
onThisComputer
|
|
90
|
+
} from "./chunk-IS6FUZCP.js";
|
|
52
91
|
import {
|
|
53
92
|
readSecret
|
|
54
|
-
} from "./chunk-
|
|
93
|
+
} from "./chunk-FY2X6U6O.js";
|
|
55
94
|
import {
|
|
56
95
|
CORPORA,
|
|
57
96
|
MIGRATIONS,
|
|
@@ -86,80 +125,42 @@ import {
|
|
|
86
125
|
storeClients,
|
|
87
126
|
storeContents,
|
|
88
127
|
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";
|
|
128
|
+
} from "./chunk-UXSTXFZQ.js";
|
|
131
129
|
import {
|
|
132
130
|
currentRun,
|
|
133
131
|
readDamageMark,
|
|
134
132
|
readHealthMark,
|
|
135
133
|
readJournalMark,
|
|
136
134
|
recordDeepCheck
|
|
137
|
-
} from "./chunk-
|
|
135
|
+
} from "./chunk-UW3BB2XW.js";
|
|
138
136
|
import {
|
|
139
137
|
failureKey,
|
|
140
138
|
isStoreDamage
|
|
141
|
-
} from "./chunk-
|
|
139
|
+
} from "./chunk-TMCXUWTY.js";
|
|
142
140
|
import {
|
|
143
141
|
formatLocator,
|
|
144
142
|
parseLocator
|
|
145
|
-
} from "./chunk-
|
|
143
|
+
} from "./chunk-7R4UU65O.js";
|
|
146
144
|
import {
|
|
147
145
|
readSharedSection,
|
|
148
146
|
sharedConfigPath,
|
|
149
147
|
writeSharedSection
|
|
150
|
-
} from "./chunk-
|
|
148
|
+
} from "./chunk-HGUYJUNO.js";
|
|
151
149
|
import {
|
|
152
150
|
storePath
|
|
153
|
-
} from "./chunk-
|
|
151
|
+
} from "./chunk-LZ4AVHBS.js";
|
|
152
|
+
import {
|
|
153
|
+
openCache
|
|
154
|
+
} from "./chunk-AFUHT7F7.js";
|
|
154
155
|
import {
|
|
155
156
|
queryFieldsOf
|
|
156
|
-
} from "./chunk-
|
|
157
|
+
} from "./chunk-3HTJBGNP.js";
|
|
157
158
|
import {
|
|
158
159
|
Credentials,
|
|
159
160
|
isMovedRun,
|
|
160
161
|
resolvePaths,
|
|
161
162
|
writeSecurely
|
|
162
|
-
} from "./chunk-
|
|
163
|
+
} from "./chunk-HNWDEDMU.js";
|
|
163
164
|
import {
|
|
164
165
|
array,
|
|
165
166
|
boolean,
|
|
@@ -181,10 +182,10 @@ import {
|
|
|
181
182
|
string,
|
|
182
183
|
transform,
|
|
183
184
|
trim
|
|
184
|
-
} from "./chunk-
|
|
185
|
+
} from "./chunk-4RJL32PF.js";
|
|
185
186
|
import {
|
|
186
187
|
CliError
|
|
187
|
-
} from "./chunk-
|
|
188
|
+
} from "./chunk-EA2OB75T.js";
|
|
188
189
|
import {
|
|
189
190
|
__commonJS,
|
|
190
191
|
__name,
|
|
@@ -5524,11 +5525,11 @@ var require_liquid_node = __commonJS({
|
|
|
5524
5525
|
}
|
|
5525
5526
|
});
|
|
5526
5527
|
|
|
5527
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5528
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/cli/messenger/store-maintenance-command.js
|
|
5528
5529
|
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
5530
|
import { dirname as dirname3, resolve } from "node:path";
|
|
5530
5531
|
|
|
5531
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5532
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/sealed.js
|
|
5532
5533
|
import { createCipheriv, createDecipheriv, createHash, randomBytes, scrypt, timingSafeEqual } from "node:crypto";
|
|
5533
5534
|
import { closeSync, createReadStream, createWriteStream, existsSync, openSync, readSync, renameSync, rmSync, statSync } from "node:fs";
|
|
5534
5535
|
import { Transform } from "node:stream";
|
|
@@ -5635,7 +5636,7 @@ var unsealFile = /* @__PURE__ */ __name(async (from, to, password) => {
|
|
|
5635
5636
|
renameSync(pending, to);
|
|
5636
5637
|
}, "unsealFile");
|
|
5637
5638
|
|
|
5638
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5639
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/store/compatibility.js
|
|
5639
5640
|
var SPEAKS = MIGRATIONS.at(-1)?.version ?? 0;
|
|
5640
5641
|
var fileSchemaOf = /* @__PURE__ */ __name((database) => {
|
|
5641
5642
|
const tracked = database.prepare("SELECT 1 FROM sqlite_master WHERE name = 'schema_migrations'").get();
|
|
@@ -5659,7 +5660,7 @@ var compatibilityOf = /* @__PURE__ */ __name((file2, migrations = MIGRATIONS) =>
|
|
|
5659
5660
|
};
|
|
5660
5661
|
}, "compatibilityOf");
|
|
5661
5662
|
|
|
5662
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5663
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/store/repair.js
|
|
5663
5664
|
import { createHash as createHash2 } from "node:crypto";
|
|
5664
5665
|
var COPY_MARK = "__repair_";
|
|
5665
5666
|
var COPY_NAME = /__repair_[0-9a-f]{8}(_\d+)?$/;
|
|
@@ -5913,19 +5914,19 @@ var deleteCopy = /* @__PURE__ */ __name((database, name) => {
|
|
|
5913
5914
|
return found;
|
|
5914
5915
|
}, "deleteCopy");
|
|
5915
5916
|
|
|
5916
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5917
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/cli/store-info.js
|
|
5917
5918
|
import { existsSync as existsSync4, statSync as statSync3 } from "node:fs";
|
|
5918
5919
|
|
|
5919
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5920
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/cli/store-recover.js
|
|
5920
5921
|
import { existsSync as existsSync3 } from "node:fs";
|
|
5921
5922
|
|
|
5922
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5923
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/store/recover.js
|
|
5923
5924
|
import { execFileSync, spawn } from "node:child_process";
|
|
5924
5925
|
import { existsSync as existsSync2, readFileSync, realpathSync, renameSync as renameSync2, rmSync as rmSync2, statfsSync, statSync as statSync2, writeFileSync } from "node:fs";
|
|
5925
5926
|
import { basename, dirname, join } from "node:path";
|
|
5926
5927
|
import { Transform as Transform2 } from "node:stream";
|
|
5927
5928
|
|
|
5928
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5929
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/store/refill.js
|
|
5929
5930
|
var REFILL_MARGIN_MS = 864e5;
|
|
5930
5931
|
var TIME_KEYS = 1e12;
|
|
5931
5932
|
var integerId = `external_id GLOB '[0-9]*' AND NOT external_id GLOB '*[^0-9]*'`;
|
|
@@ -6005,7 +6006,7 @@ var forgetMail = /* @__PURE__ */ __name((database, cutoff, now) => {
|
|
|
6005
6006
|
return [...folders].map(([account, count3]) => ({ account, folders: count3 }));
|
|
6006
6007
|
}, "forgetMail");
|
|
6007
6008
|
|
|
6008
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6009
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/store/recover.js
|
|
6009
6010
|
var SQLITE3_MINIMUM = [3, 43, 0];
|
|
6010
6011
|
var STORE_PARTS = ["", "-wal", "-shm"];
|
|
6011
6012
|
var RECOVER_LOCK = ".recover-lock";
|
|
@@ -6533,7 +6534,7 @@ var recoverLocked = /* @__PURE__ */ __name(async ({ path, command, version, sqli
|
|
|
6533
6534
|
}
|
|
6534
6535
|
}, "recoverLocked");
|
|
6535
6536
|
|
|
6536
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6537
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/cli/store-recover.js
|
|
6537
6538
|
var COUNTED = [
|
|
6538
6539
|
"accounts",
|
|
6539
6540
|
"chats",
|
|
@@ -6674,7 +6675,7 @@ var storeRecoverCommand = /* @__PURE__ */ __name(({ command, version }) => {
|
|
|
6674
6675
|
for (const line of recoveryNotes(answer))
|
|
6675
6676
|
output.renderer.note(line);
|
|
6676
6677
|
});
|
|
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() {
|
|
6678
|
+
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
6679
|
const output = outputFor(this);
|
|
6679
6680
|
const answer = await storeRecoveryRun(environmentOf(this).env ?? process.env, {
|
|
6680
6681
|
command,
|
|
@@ -6689,7 +6690,7 @@ var storeRecoverCommand = /* @__PURE__ */ __name(({ command, version }) => {
|
|
|
6689
6690
|
return recover;
|
|
6690
6691
|
}, "storeRecoverCommand");
|
|
6691
6692
|
|
|
6692
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6693
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/cli/store-info.js
|
|
6693
6694
|
var pendingIfKnown = /* @__PURE__ */ __name((database) => database.prepare("SELECT 1 FROM pragma_table_info('messages') WHERE name = 'normalized_text'").get() ? pendingNormalization(database) : null, "pendingIfKnown");
|
|
6694
6695
|
var bytesOf = /* @__PURE__ */ __name((path) => existsSync4(path) ? statSync3(path).size : 0, "bytesOf");
|
|
6695
6696
|
var messageOf = /* @__PURE__ */ __name((error) => error instanceof Error ? error.message : String(error), "messageOf");
|
|
@@ -6739,7 +6740,7 @@ var sharedStoreCommand = /* @__PURE__ */ __name((app) => {
|
|
|
6739
6740
|
return app ? store.addCommand(storeRecoverCommand(app)) : store;
|
|
6740
6741
|
}, "sharedStoreCommand");
|
|
6741
6742
|
|
|
6742
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6743
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/cli/messenger/password.js
|
|
6743
6744
|
var ENCRYPT_OPTION = [
|
|
6744
6745
|
"--encrypt",
|
|
6745
6746
|
"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 +6759,7 @@ var passwordOf = /* @__PURE__ */ __name(async (command, { twice }) => {
|
|
|
6758
6759
|
return password;
|
|
6759
6760
|
}, "passwordOf");
|
|
6760
6761
|
|
|
6761
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6762
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/replies/rules.js
|
|
6762
6763
|
import { existsSync as existsSync5, readFileSync as readFileSync2 } from "node:fs";
|
|
6763
6764
|
import { join as join2 } from "node:path";
|
|
6764
6765
|
var REPLY_ACTIONS = ["reply", "task"];
|
|
@@ -6929,7 +6930,7 @@ var problem = /* @__PURE__ */ __name((issue) => {
|
|
|
6929
6930
|
}, "problem");
|
|
6930
6931
|
var broken = /* @__PURE__ */ __name((path, why) => new CliError("configuration_error", `the reply rules ${path} cannot be read (${why}) \u2014 fix the file`), "broken");
|
|
6931
6932
|
|
|
6932
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6933
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/replies/state.js
|
|
6933
6934
|
import { existsSync as existsSync6, readFileSync as readFileSync3 } from "node:fs";
|
|
6934
6935
|
import { join as join3 } from "node:path";
|
|
6935
6936
|
var ANSWERED_KEPT = 1e3;
|
|
@@ -6982,7 +6983,7 @@ var recordReply = /* @__PURE__ */ __name((state, rule2, message, now) => {
|
|
|
6982
6983
|
}, "recordReply");
|
|
6983
6984
|
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
6985
|
|
|
6985
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6986
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/replies/decide.js
|
|
6986
6987
|
var skip = /* @__PURE__ */ __name((why) => ({ skip: why }), "skip");
|
|
6987
6988
|
var decide = /* @__PURE__ */ __name((rule2, incoming, state, now) => {
|
|
6988
6989
|
const { message, chat, owner, sender } = incoming;
|
|
@@ -7088,10 +7089,10 @@ var filled = /* @__PURE__ */ __name((template2, senderName) => {
|
|
|
7088
7089
|
return template2.replaceAll("{firstName}", name.split(/\s+/)[0] ?? name).replaceAll("{name}", name);
|
|
7089
7090
|
}, "filled");
|
|
7090
7091
|
|
|
7091
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7092
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/replies/template.js
|
|
7092
7093
|
var import_liquidjs2 = __toESM(require_liquid_node(), 1);
|
|
7093
7094
|
|
|
7094
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7095
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/render/liquid.js
|
|
7095
7096
|
var import_liquidjs = __toESM(require_liquid_node(), 1);
|
|
7096
7097
|
var safeLiquid = /* @__PURE__ */ __name((limits) => {
|
|
7097
7098
|
const engine = new import_liquidjs.Liquid({
|
|
@@ -7118,7 +7119,7 @@ var safeLiquid = /* @__PURE__ */ __name((limits) => {
|
|
|
7118
7119
|
return engine;
|
|
7119
7120
|
}, "safeLiquid");
|
|
7120
7121
|
|
|
7121
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7122
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/replies/template.js
|
|
7122
7123
|
var TEMPLATE_LIMITS = {
|
|
7123
7124
|
parse: 32768,
|
|
7124
7125
|
renders: 2e3,
|
|
@@ -7257,7 +7258,7 @@ var renderReplyTemplate = /* @__PURE__ */ __name(async (reply, input) => {
|
|
|
7257
7258
|
}
|
|
7258
7259
|
}, "renderReplyTemplate");
|
|
7259
7260
|
|
|
7260
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7261
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/replies/dry-run.js
|
|
7261
7262
|
var DRY_RUN_DAYS = 7;
|
|
7262
7263
|
var PAGE = 500;
|
|
7263
7264
|
var dryRun = /* @__PURE__ */ __name(async (store, account, rules, { since, until = Date.now(), only, audience, render }) => {
|
|
@@ -7371,7 +7372,7 @@ var storedSince = /* @__PURE__ */ __name(async (store, account, chat, since) =>
|
|
|
7371
7372
|
}
|
|
7372
7373
|
}, "storedSince");
|
|
7373
7374
|
|
|
7374
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7375
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/models/ai.js
|
|
7375
7376
|
var AI_PROVIDERS = ["anthropic", "openai", "ollama"];
|
|
7376
7377
|
var DEFAULT_BASE_URL = {
|
|
7377
7378
|
anthropic: "https://api.anthropic.com",
|
|
@@ -7417,10 +7418,10 @@ var aiSettingOf = /* @__PURE__ */ __name((given) => {
|
|
|
7417
7418
|
const checked = safeParse(settingShape, draft);
|
|
7418
7419
|
if (!checked.success) {
|
|
7419
7420
|
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" ? "
|
|
7421
|
+
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
7422
|
}
|
|
7422
7423
|
if (checked.output.provider === "ollama" && !onThisComputer(aiBaseUrl(checked.output)))
|
|
7423
|
-
throw new CliError("validation_error", "Ollama is read only on this computer", { reason: "
|
|
7424
|
+
throw new CliError("validation_error", "Ollama is read only on this computer", { reason: "model.address-refused" });
|
|
7424
7425
|
return given.allowImages ? {
|
|
7425
7426
|
...checked.output,
|
|
7426
7427
|
images: { origin: aiOrigin(checked.output), model: checked.output.model, at: (/* @__PURE__ */ new Date()).toISOString() }
|
|
@@ -7535,7 +7536,7 @@ var checkAi = /* @__PURE__ */ __name(async (deps) => {
|
|
|
7535
7536
|
}
|
|
7536
7537
|
}, "checkAi");
|
|
7537
7538
|
|
|
7538
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7539
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/models/purpose.js
|
|
7539
7540
|
var HOSTED = {
|
|
7540
7541
|
openai: "https://api.openai.com/v1",
|
|
7541
7542
|
anthropic: "https://api.anthropic.com"
|
|
@@ -7556,7 +7557,7 @@ var purposeModel = /* @__PURE__ */ __name((settings, purpose, deps) => {
|
|
|
7556
7557
|
return shared ? { target: shared.target, key: /* @__PURE__ */ __name(() => shared.key, "key"), shared: shared.setting } : void 0;
|
|
7557
7558
|
}, "purposeModel");
|
|
7558
7559
|
|
|
7559
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7560
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/replies/consents.js
|
|
7560
7561
|
import { existsSync as existsSync7, readFileSync as readFileSync4 } from "node:fs";
|
|
7561
7562
|
import { join as join4 } from "node:path";
|
|
7562
7563
|
var shape = strictObject({
|
|
@@ -7581,7 +7582,7 @@ var mayModelReply = /* @__PURE__ */ __name((path, provider, chat) => {
|
|
|
7581
7582
|
return consent.provider === provider && !consent.deniedChats.includes(chat);
|
|
7582
7583
|
}, "mayModelReply");
|
|
7583
7584
|
|
|
7584
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7585
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/replies/rendering.js
|
|
7585
7586
|
var replyRenderer = /* @__PURE__ */ __name((app, profile, settings, env, warn, options = {
|
|
7586
7587
|
ai: true
|
|
7587
7588
|
}) => async (rule2, message, chat, now) => {
|
|
@@ -7629,7 +7630,7 @@ var replyRenderer = /* @__PURE__ */ __name((app, profile, settings, env, warn, o
|
|
|
7629
7630
|
return result2;
|
|
7630
7631
|
}, "replyRenderer");
|
|
7631
7632
|
|
|
7632
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7633
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/replies/serve.js
|
|
7633
7634
|
var NOT_ALLOWED = "replies.send is not allow";
|
|
7634
7635
|
var NO_RULES = "no rules";
|
|
7635
7636
|
var ONLY_TASK = "opened a task, sent nothing";
|
|
@@ -7722,7 +7723,7 @@ var replyTo = /* @__PURE__ */ __name(async (deps, message) => {
|
|
|
7722
7723
|
return { skip: why };
|
|
7723
7724
|
}, "replyTo");
|
|
7724
7725
|
|
|
7725
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7726
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-catch-up.js
|
|
7726
7727
|
var START_SYNC_DELAY_MS = 3e4;
|
|
7727
7728
|
var START_SYNC_BUDGET_MS = 5 * 6e4;
|
|
7728
7729
|
var START_SYNC_WINDOW_MS = 7 * 864e5;
|
|
@@ -7799,7 +7800,7 @@ var startSync = /* @__PURE__ */ __name(({ chats, newestHeld, fetch, note, warn,
|
|
|
7799
7800
|
};
|
|
7800
7801
|
}, "startSync");
|
|
7801
7802
|
|
|
7802
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7803
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-members.js
|
|
7803
7804
|
var FIRST_FETCH_MS = 6e4;
|
|
7804
7805
|
var DAY_MS = 864e5;
|
|
7805
7806
|
var memberFetches = /* @__PURE__ */ __name(({ withStore, fetch, warn, firstMs = FIRST_FETCH_MS, everyMs = DAY_MS }) => {
|
|
@@ -7853,7 +7854,7 @@ var memberFetches = /* @__PURE__ */ __name(({ withStore, fetch, warn, firstMs =
|
|
|
7853
7854
|
};
|
|
7854
7855
|
}, "memberFetches");
|
|
7855
7856
|
|
|
7856
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7857
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-notice.js
|
|
7857
7858
|
var record2 = /* @__PURE__ */ __name((context, app, severity, attributes) => recordLogFor(context.streams.diagnostic, app, { command: currentRun().command || "serve" })[severity](attributes), "record");
|
|
7858
7859
|
var noticeFor = /* @__PURE__ */ __name((context, app, severity = "warn") => ({ text, ...attributes }) => {
|
|
7859
7860
|
if (context.format === "pretty") {
|
|
@@ -7886,7 +7887,7 @@ var recordDiagnostics = /* @__PURE__ */ __name((context, app) => {
|
|
|
7886
7887
|
return context;
|
|
7887
7888
|
}, "recordDiagnostics");
|
|
7888
7889
|
|
|
7889
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7890
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-outdated.js
|
|
7890
7891
|
import { existsSync as existsSync8, readFileSync as readFileSync5, realpathSync as realpathSync2 } from "node:fs";
|
|
7891
7892
|
import { dirname as dirname2, join as join5 } from "node:path";
|
|
7892
7893
|
var OUTDATED_CHECK_MS = 6e4;
|
|
@@ -7972,7 +7973,7 @@ var watchOutdated = /* @__PURE__ */ __name(({ check: check2, onOutdated, everyMs
|
|
|
7972
7973
|
};
|
|
7973
7974
|
}, "watchOutdated");
|
|
7974
7975
|
|
|
7975
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7976
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-stems.js
|
|
7976
7977
|
var STEMS_EVERY_MS = 3e4;
|
|
7977
7978
|
var STEMS_SLICE_MS = 2e3;
|
|
7978
7979
|
var stemFills = /* @__PURE__ */ __name(({ withStore, warn, everyMs = STEMS_EVERY_MS, sliceMs = STEMS_SLICE_MS }) => {
|
|
@@ -8012,7 +8013,7 @@ var stemFills = /* @__PURE__ */ __name(({ withStore, warn, everyMs = STEMS_EVERY
|
|
|
8012
8013
|
};
|
|
8013
8014
|
}, "stemFills");
|
|
8014
8015
|
|
|
8015
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8016
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/cli/messenger/message-items.js
|
|
8016
8017
|
var defined = /* @__PURE__ */ __name((value) => Object.fromEntries(Object.entries(value).filter(([, one]) => one !== void 0)), "defined");
|
|
8017
8018
|
var attachmentItem = /* @__PURE__ */ __name((attachment) => defined({
|
|
8018
8019
|
kind: attachment.kind,
|
|
@@ -8108,7 +8109,7 @@ var viewOf = /* @__PURE__ */ __name((context, messenger) => ({
|
|
|
8108
8109
|
locale: messenger.app.locale
|
|
8109
8110
|
}), "viewOf");
|
|
8110
8111
|
|
|
8111
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8112
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/cli/messenger/watch-answers.js
|
|
8112
8113
|
var observed = /* @__PURE__ */ __name((value) => ({
|
|
8113
8114
|
value: value.value,
|
|
8114
8115
|
observed_at: value.observedAt,
|
|
@@ -8175,7 +8176,7 @@ var watchEventItem = /* @__PURE__ */ __name((value, account) => {
|
|
|
8175
8176
|
}
|
|
8176
8177
|
}, "watchEventItem");
|
|
8177
8178
|
|
|
8178
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8179
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/cli/messenger/watch-command.js
|
|
8179
8180
|
var watchCommand = /* @__PURE__ */ __name((messenger) => annotate(new Command("watch"), {
|
|
8180
8181
|
output: { entity: "watch_item" },
|
|
8181
8182
|
effects: REMOTE_READ,
|
|
@@ -8330,7 +8331,7 @@ var describe = /* @__PURE__ */ __name((event, render) => {
|
|
|
8330
8331
|
}
|
|
8331
8332
|
}, "describe");
|
|
8332
8333
|
|
|
8333
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8334
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-command.js
|
|
8334
8335
|
var serveCommand = /* @__PURE__ */ __name((messenger) => {
|
|
8335
8336
|
const command = annotate(new Command("serve"), {
|
|
8336
8337
|
output: { entity: "serve_summary" },
|
|
@@ -8613,7 +8614,7 @@ var tasking = /* @__PURE__ */ __name((context, warn) => {
|
|
|
8613
8614
|
};
|
|
8614
8615
|
}, "tasking");
|
|
8615
8616
|
|
|
8616
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8617
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/cli/messenger/store-tables-command.js
|
|
8617
8618
|
import { existsSync as existsSync9 } from "node:fs";
|
|
8618
8619
|
var PATH = "store tables list";
|
|
8619
8620
|
var STORE_TABLES_QUERY = {
|
|
@@ -8656,7 +8657,7 @@ var storeTablesCommand = /* @__PURE__ */ __name((owner) => {
|
|
|
8656
8657
|
return tables;
|
|
8657
8658
|
}, "storeTablesCommand");
|
|
8658
8659
|
|
|
8659
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8660
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/cli/messenger/store-maintenance-command.js
|
|
8660
8661
|
var SEARCH_INDEXES = ["messages_fts", "chats_fts", "identities_fts"];
|
|
8661
8662
|
var WORD_INDEX = "message_words";
|
|
8662
8663
|
var schemaOf = /* @__PURE__ */ __name((database) => {
|
|
@@ -9142,7 +9143,7 @@ var decryptCommand = /* @__PURE__ */ __name(() => annotate(new Command("decrypt"
|
|
|
9142
9143
|
await unsealFile(from, to, await passwordOf(this, { twice: false }));
|
|
9143
9144
|
result(this, { path: to, from, bytes: bytesOf2(to) });
|
|
9144
9145
|
}), "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) {
|
|
9146
|
+
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
9147
|
const path = storePath(environmentOf(this).env ?? process.env);
|
|
9147
9148
|
const given = resolve(file2);
|
|
9148
9149
|
if (!existsSync10(given))
|
|
@@ -9274,7 +9275,7 @@ var quiesce = /* @__PURE__ */ __name(async (path, owner, then, warn, waitMs = ST
|
|
|
9274
9275
|
database.close();
|
|
9275
9276
|
}
|
|
9276
9277
|
}, "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 }) {
|
|
9278
|
+
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
9279
|
const { renderer } = outputFor(this);
|
|
9279
9280
|
const { command } = owner.app;
|
|
9280
9281
|
const env = environmentOf(this).env ?? process.env;
|