@wirecat/zoom-cli 0.81.0 → 0.82.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/answers.d.ts +56 -0
- package/dist/answers.d.ts.map +1 -1
- package/dist/bin/zm.js +2 -2
- package/dist/bundle/agent-F4TRJWWS.js +46 -0
- package/dist/bundle/{all-profiles-3ASMN35R.js → all-profiles-RULEKTDQ.js} +12 -12
- package/dist/bundle/answer-policy-6XC57AEZ.js +131 -0
- package/dist/bundle/{anthropic-XXI53VNI.js → anthropic-4NAQBZFL.js} +6 -6
- package/dist/bundle/{app-server-B7WLNZNQ.js → app-server-VLR42U5L.js} +78 -76
- package/dist/bundle/{bun-2FLR4IV4.js → bun-OPDGMZZQ.js} +2 -2
- package/dist/bundle/{bun-sqlite-3NNHTOGM.js → bun-sqlite-HC6X4AOX.js} +7 -7
- package/dist/bundle/{chunk-JKEMW6E4.js → chunk-274SLQNW.js} +2 -2
- package/dist/bundle/{chunk-IFM4G4MT.js → chunk-2CI2OEZQ.js} +4 -4
- package/dist/bundle/{chunk-4B335BCJ.js → chunk-2DBF2IIC.js} +5 -5
- package/dist/bundle/{chunk-437DLSB3.js → chunk-2GP573Q4.js} +14997 -11784
- package/dist/bundle/{chunk-2Z7UOXFC.js → chunk-2JHVQMVC.js} +1 -1
- package/dist/bundle/{chunk-D7CDHBDX.js → chunk-2SWKQ7C4.js} +1 -1
- package/dist/bundle/{chunk-GCAJW4SR.js → chunk-2XBDILVW.js} +1 -1
- package/dist/bundle/{chunk-XYQVVW4R.js → chunk-3HC5F3P7.js} +1 -1
- package/dist/bundle/{chunk-YUDVRFXN.js → chunk-3YM4B2GT.js} +1 -1
- package/dist/bundle/{chunk-AWJQ6FAX.js → chunk-434YFJAE.js} +2 -2
- package/dist/bundle/{chunk-G3DWMG7Y.js → chunk-4HLQ2JGK.js} +4 -4
- package/dist/bundle/{chunk-F5ZAN7OC.js → chunk-4N7PP76S.js} +1 -1
- package/dist/bundle/{chunk-WKNYNK7W.js → chunk-52Y4ETKU.js} +4 -4
- package/dist/bundle/{chunk-VXD65V67.js → chunk-5HAUK3I4.js} +1546 -2006
- package/dist/bundle/{chunk-2RFWRJFK.js → chunk-5KYQ53EF.js} +13 -9
- package/dist/bundle/{chunk-N62P5FY4.js → chunk-5TU7Y5UW.js} +12 -12
- package/dist/bundle/{chunk-2ELGSNX3.js → chunk-66ALX4ZI.js} +168 -168
- package/dist/bundle/{chunk-SRUAUMBL.js → chunk-676C2LE6.js} +12 -12
- package/dist/bundle/{chunk-N5ROXGY4.js → chunk-6CWL5BKG.js} +21 -21
- package/dist/bundle/{chunk-77TJ3AJH.js → chunk-6QYZP4E2.js} +3 -3
- package/dist/bundle/{chunk-QFK52FG6.js → chunk-6VK332XS.js} +3 -3
- package/dist/bundle/{chunk-BQBC2WIG.js → chunk-73MOMNLL.js} +1 -1
- package/dist/bundle/{chunk-EEBSKMEA.js → chunk-7QPIUMUG.js} +12 -12
- package/dist/bundle/{chunk-RRYHLP3A.js → chunk-7UVDPRFK.js} +6 -6
- package/dist/bundle/{chunk-Y7XJA4EW.js → chunk-A6EZK5RG.js} +4 -4
- package/dist/bundle/{chunk-IBYGNUO7.js → chunk-AC6VJNMJ.js} +1 -1
- package/dist/bundle/{chunk-NX3BLISW.js → chunk-ACI4YIEH.js} +6 -6
- package/dist/bundle/{chunk-YJKXCINQ.js → chunk-AIKFOBDO.js} +254 -60
- package/dist/bundle/{chunk-PS7HQ5LQ.js → chunk-ASBDFXLS.js} +3 -3
- package/dist/bundle/{chunk-MA4UJNUI.js → chunk-B32KZRQM.js} +12 -12
- package/dist/bundle/{chunk-2GNGR265.js → chunk-BBGJQMRI.js} +1 -1
- package/dist/bundle/{chunk-IVZACJ6X.js → chunk-BDKVOU3I.js} +4 -4
- package/dist/bundle/{chunk-4VOCXLMJ.js → chunk-BP4FYANF.js} +6 -6
- package/dist/bundle/{chunk-WHXYPLUE.js → chunk-DCYFT3FR.js} +4 -4
- package/dist/bundle/{chunk-AV2ZJ4WX.js → chunk-DNCLQPOM.js} +1 -1
- package/dist/bundle/{chunk-TI4WJOEX.js → chunk-DSZYABYL.js} +38 -19
- package/dist/bundle/{chunk-ZNAX7GUV.js → chunk-E745WZKY.js} +8 -8
- package/dist/bundle/{chunk-M7OYEMLI.js → chunk-EGTCQKHV.js} +7 -7
- package/dist/bundle/{chunk-GDRFVBCB.js → chunk-EQG3PIH2.js} +2 -2
- package/dist/bundle/{chunk-YRDQ54G5.js → chunk-ESN3W2MZ.js} +24 -11
- package/dist/bundle/{chunk-NS3JWBDR.js → chunk-G46WJ7YO.js} +6 -6
- package/dist/bundle/{chunk-VQTYJ6XH.js → chunk-G6PETRMV.js} +3 -3
- package/dist/bundle/{chunk-QNG27PGH.js → chunk-GBHMT2IU.js} +21 -17
- package/dist/bundle/{chunk-FMMYBVCH.js → chunk-GGMAIIVE.js} +1 -1
- package/dist/bundle/{chunk-ZFRYFDZN.js → chunk-GTKPMYK7.js} +2 -2
- package/dist/bundle/{chunk-B2WBWKYN.js → chunk-GWGHH56B.js} +12 -12
- package/dist/bundle/{chunk-7JWVPJIP.js → chunk-HC6VN5CO.js} +10 -10
- package/dist/bundle/{chunk-F2J2FQUB.js → chunk-HP7A2ZOP.js} +9 -9
- package/dist/bundle/{chunk-GW2A2FJH.js → chunk-HZENBDW2.js} +8 -8
- package/dist/bundle/{chunk-UHMJSSQO.js → chunk-IANKXHSE.js} +1 -1
- package/dist/bundle/{chunk-IDUKCXL7.js → chunk-ICPJT672.js} +13 -9
- package/dist/bundle/{chunk-UUVWAVKN.js → chunk-JQ54DYAQ.js} +3 -3
- package/dist/bundle/{chunk-337ALCXQ.js → chunk-K5JGJIV2.js} +8 -8
- package/dist/bundle/{chunk-V3ZTAAJ6.js → chunk-KJ6USQDZ.js} +8 -8
- package/dist/bundle/{chunk-T2BHIC37.js → chunk-KKFY23AK.js} +65 -65
- package/dist/bundle/{chunk-J5EHZBO5.js → chunk-KQPUVXKX.js} +19 -3
- package/dist/bundle/{chunk-C4BBCSGK.js → chunk-KVJ3I7UL.js} +6 -6
- package/dist/bundle/{chunk-BZXHJKKI.js → chunk-KWU46LNK.js} +2 -2
- package/dist/bundle/chunk-KXJ3JEDH.js +2 -0
- package/dist/bundle/{chunk-R6HP2XKD.js → chunk-L75SMSJR.js} +5 -5
- package/dist/bundle/{chunk-KZ3B6HW5.js → chunk-LAYYO4WD.js} +3 -3
- package/dist/bundle/{chunk-LGESUPKO.js → chunk-LEKKTJKK.js} +40 -26
- package/dist/bundle/{chunk-K7CTCDYX.js → chunk-M7H4MCAX.js} +6 -6
- package/dist/bundle/{chunk-L54I45OX.js → chunk-MAJJ4PG3.js} +13 -13
- package/dist/bundle/{chunk-ZMAPXIGC.js → chunk-MQLPZBMQ.js} +2 -2
- package/dist/bundle/{chunk-HHQROAJQ.js → chunk-N3JLO63O.js} +1 -1
- package/dist/bundle/{chunk-XWKUGAG6.js → chunk-N46F72AF.js} +14 -14
- package/dist/bundle/{chunk-GPRJXJC7.js → chunk-NB7EOAUZ.js} +22 -1
- package/dist/bundle/{chunk-HIFPHARA.js → chunk-NEMX3UNN.js} +4 -4
- package/dist/bundle/{chunk-5EWYDHBH.js → chunk-OBXQLFT5.js} +2 -2
- package/dist/bundle/{chunk-3M436OO2.js → chunk-OGNO35A2.js} +6 -6
- package/dist/bundle/{chunk-VAW7QGJA.js → chunk-OIPYBF43.js} +3 -3
- package/dist/bundle/{chunk-DMJLJVD3.js → chunk-OO4TRVPB.js} +7 -7
- package/dist/bundle/{chunk-RQFRXUI4.js → chunk-OQFQ77AY.js} +198 -112
- package/dist/bundle/{chunk-UPR2S5IE.js → chunk-PMUPN6JW.js} +8 -8
- package/dist/bundle/{chunk-4BU3LRTB.js → chunk-PSKTMMCO.js} +17 -17
- package/dist/bundle/{chunk-YNWBRDBX.js → chunk-PWVJUIDQ.js} +2 -2
- package/dist/bundle/{chunk-LECMHK2F.js → chunk-Q7ICVP25.js} +1 -1
- package/dist/bundle/{chunk-4FSH7K6N.js → chunk-QG6PILDO.js} +2 -2
- package/dist/bundle/{chunk-NM5XMKWO.js → chunk-QPHBK63S.js} +1 -1
- package/dist/bundle/{chunk-MBBR7QHI.js → chunk-QVSL5WJ7.js} +2501 -1062
- package/dist/bundle/{chunk-ZLYICF6A.js → chunk-QVYAV7F2.js} +4 -4
- package/dist/bundle/{chunk-IYNICUCC.js → chunk-R2B6PUVI.js} +4 -4
- package/dist/bundle/{chunk-Q26UFIH4.js → chunk-RQOZBTNI.js} +16 -3
- package/dist/bundle/{chunk-T7QPZYRZ.js → chunk-T7IAWEBU.js} +7 -7
- package/dist/bundle/{chunk-FXZPAGHT.js → chunk-TKNM22OH.js} +2 -2
- package/dist/bundle/{chunk-FXCR4DGU.js → chunk-TKVBFJ5C.js} +1 -1
- package/dist/bundle/{chunk-HVXOA4FO.js → chunk-TXDR6YSF.js} +1 -1
- package/dist/bundle/{chunk-CFQQTDSA.js → chunk-TY7NDMFY.js} +1 -1
- package/dist/bundle/{chunk-YIIGF643.js → chunk-UAWSINMC.js} +10 -10
- package/dist/bundle/{chunk-35FVYRH5.js → chunk-UKAAAOPC.js} +28 -179
- package/dist/bundle/{chunk-4ZXJ4AZW.js → chunk-UL2PXLKT.js} +26 -26
- package/dist/bundle/{chunk-UMPUY77T.js → chunk-UQCTXZEP.js} +10 -10
- package/dist/bundle/{chunk-L2ERFXB7.js → chunk-UR5DBODY.js} +35 -30
- package/dist/bundle/{chunk-EPASOAEI.js → chunk-V5EJSF2B.js} +230 -165
- package/dist/bundle/{chunk-5SEBLX6B.js → chunk-VB72LTSZ.js} +12 -12
- package/dist/bundle/{chunk-OEQNP56V.js → chunk-VB7FZOYX.js} +1 -1
- package/dist/bundle/{chunk-YISJJNXT.js → chunk-VS6WURLX.js} +3 -3
- package/dist/bundle/{chunk-3UX4VJWD.js → chunk-VZ5PPYDG.js} +3 -4
- package/dist/bundle/{chunk-R4CXFYQN.js → chunk-W5QHB53X.js} +180 -38
- package/dist/bundle/{chunk-D26K6756.js → chunk-WMANRJR5.js} +6 -6
- package/dist/bundle/chunk-WOPVBRPV.js +29 -0
- package/dist/bundle/{chunk-4BXLHSXY.js → chunk-XQ2WL3HB.js} +2 -2
- package/dist/bundle/{chunk-JK24A3RP.js → chunk-XQQVMECZ.js} +3 -3
- package/dist/bundle/{chunk-LVCCZI5A.js → chunk-Y6PVS55U.js} +38 -38
- package/dist/bundle/{chunk-NQGGTO3B.js → chunk-YJXJJ2XP.js} +8 -8
- package/dist/bundle/{chunk-46EF6P2J.js → chunk-YY7XKHDY.js} +10 -3
- package/dist/bundle/{chunk-WIX6BFRF.js → chunk-ZED2CJW5.js} +8 -8
- package/dist/bundle/chunk-ZOYOXWJB.js +746 -0
- package/dist/bundle/{cli-WTGAGSXV.js → cli-U4O5XB7J.js} +118 -116
- package/dist/bundle/command-contract-FBTK6GQX.js +45 -0
- package/dist/bundle/{command-server-entry-47CAYN3E.js → command-server-entry-KKH6ZWJV.js} +35 -35
- package/dist/bundle/config-FRJSIZNN.js +118 -0
- package/dist/bundle/{decode-2G7QS5IQ.js → decode-TPCNXEK4.js} +6 -6
- package/dist/bundle/{dispatch-ZAP3KBVJ.js → dispatch-FKMIPCPQ.js} +9 -9
- package/dist/bundle/{dist-WY6R3WH7.js → dist-7CLBCYZN.js} +23 -21
- package/dist/bundle/{echarts-YRRVLEX3.js → echarts-O3TNDAXJ.js} +2 -2
- package/dist/bundle/{embed-B5H3OW2O.js → embed-WCJSFVSK.js} +7 -7
- package/dist/bundle/{embedder-3O73SP6Y.js → embedder-TBBUPXBX.js} +10 -10
- package/dist/bundle/{failure-EYGW7JMC.js → failure-XTWBYI2A.js} +3 -3
- package/dist/bundle/first-run-ELEMFW42.js +29 -0
- package/dist/bundle/first-screen-DIOBWMKP.js +46 -0
- package/dist/bundle/{folders-4CGFWM6H.js → folders-LXOL4N4S.js} +5 -5
- package/dist/bundle/{instructions-AG7SRWTR.js → instructions-AMH5RWVJ.js} +1 -1
- package/dist/bundle/{main-DOGY6FJP.js → main-YAA7WQ23.js} +24 -24
- package/dist/bundle/{mcp-YGOAUNC3.js → mcp-5HFPWC3W.js} +2 -2
- package/dist/bundle/meeting-combined-UXCF4SJ3.js +26 -0
- package/dist/bundle/meeting-model-3BZJ3EQP.js +26 -0
- package/dist/bundle/{meeting-semantic-FOEBWV3P.js → meeting-semantic-3HU7I2SJ.js} +8 -8
- package/dist/bundle/{meetings-PVE4C2NF.js → meetings-XWMB6FOH.js} +7 -7
- package/dist/bundle/{node-GJQYN4FT.js → node-EGMCBAO7.js} +2 -2
- package/dist/bundle/{node-sqlite-MLRYKVCQ.js → node-sqlite-IJBWENFX.js} +8 -8
- package/dist/bundle/{oauth-AC55C6SG.js → oauth-SZDDAP7A.js} +8 -8
- package/dist/bundle/{open-3LGTYP6M.js → open-NS3TMKZX.js} +6 -6
- package/dist/bundle/openai-4DN6WI3B.js +28 -0
- package/dist/bundle/{output-file-FXMTTLOI.js → output-file-2UB5JP3R.js} +6 -6
- package/dist/bundle/{process-MEKCZMX3.js → process-SGHEN6MQ.js} +1 -1
- package/dist/bundle/{program-E5BSSIGY.js → program-GVCGZP27.js} +105 -104
- package/dist/bundle/{prompt-AIA6QSZK.js → prompt-HJFMPFVC.js} +6 -6
- package/dist/bundle/public-C2ZB2AGQ.js +198 -0
- package/dist/bundle/{recognize-M57VNTEV.js → recognize-2SEI5PPM.js} +5 -5
- package/dist/bundle/{remote-3OTENZ7Z.js → remote-2DMS74XE.js} +11 -11
- package/dist/bundle/{rerank-P5WHDFDU.js → rerank-H6GCYVIA.js} +8 -8
- package/dist/bundle/run-log-QU26SUZP.js +145 -0
- package/dist/bundle/{serve-BRLC2QVV.js → serve-ODVRPFJO.js} +10 -10
- package/dist/bundle/server-NBPF6IDZ.js +95 -0
- package/dist/bundle/{server-25NF7DMS.js → server-PCLIO24L.js} +70 -68
- package/dist/bundle/{services-MJE43OGD.js → services-4QAPXBLO.js} +60 -56
- package/dist/bundle/{speech-4AVCWTQH.js → speech-MA6ZT3WE.js} +25 -25
- package/dist/bundle/{sqlite-runtime-U4TQXWMC.js → sqlite-runtime-PVMAUXRN.js} +7 -7
- package/dist/bundle/{state-GNUGVMY7.js → state-QFMTYUME.js} +7 -7
- package/dist/bundle/{store-KBFZVQWF.js → store-25OTAQC3.js} +25 -25
- package/dist/bundle/{store-MHVBFUBB.js → store-F724QIKJ.js} +34 -27
- package/dist/bundle/store-connection-OGPXANGB.js +111 -0
- package/dist/bundle/store-maintenance-command-2CM7LLNQ.js +83 -0
- package/dist/bundle/{streaming-6F7AFEHD.js → streaming-S22C4DG5.js} +7 -7
- package/dist/bundle/surface-7PXHWCF6.js +81 -0
- package/dist/bundle/{tokens-BB4MQBLH.js → tokens-NLUHA2DW.js} +11 -11
- package/dist/bundle/zm.js +9 -9
- package/dist/bundle/{zoom-app-YTGOZ2FS.js → zoom-app-YWFB367P.js} +8 -8
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +3 -3
- package/dist/bundle/agent-VYAJCJLE.js +0 -45
- package/dist/bundle/answer-policy-PTH4F2DW.js +0 -129
- package/dist/bundle/chunk-EWEQ7AXL.js +0 -719
- package/dist/bundle/command-contract-3IKVWPDL.js +0 -45
- package/dist/bundle/config-ZOGOKGTU.js +0 -116
- package/dist/bundle/first-run-MPKMDEMA.js +0 -29
- package/dist/bundle/first-screen-AIAAC3KF.js +0 -45
- package/dist/bundle/meeting-combined-YKPKTKGA.js +0 -26
- package/dist/bundle/meeting-model-HTXSGHNM.js +0 -26
- package/dist/bundle/openai-E2MSLVIX.js +0 -28
- package/dist/bundle/run-log-EOQ4EQDS.js +0 -143
- package/dist/bundle/server-EW2RL2EL.js +0 -93
- package/dist/bundle/store-connection-SKRUAI4L.js +0 -109
- package/dist/bundle/store-maintenance-command-G6EXJSHJ.js +0 -81
- package/dist/bundle/surface-DWEWB5RG.js +0 -79
|
@@ -4,18 +4,18 @@ import {
|
|
|
4
4
|
readSharedSection,
|
|
5
5
|
sharedConfigPath,
|
|
6
6
|
writeSharedSection
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-E745WZKY.js";
|
|
8
8
|
import {
|
|
9
9
|
storePath
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-274SLQNW.js";
|
|
11
11
|
import {
|
|
12
12
|
CliError
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-IANKXHSE.js";
|
|
14
14
|
import {
|
|
15
15
|
__name
|
|
16
16
|
} from "./chunk-ZVVMGPBJ.js";
|
|
17
17
|
|
|
18
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/cli/setup-answers.js
|
|
19
19
|
var PERMISSION_ANSWERS = ["readonly", "allow"];
|
|
20
20
|
var QUESTIONS = ["languages", "tools", "permissions"];
|
|
21
21
|
var SECTION = "setup";
|
|
@@ -2,12 +2,12 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
singleLine
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-BBGJQMRI.js";
|
|
6
6
|
import {
|
|
7
7
|
__name
|
|
8
8
|
} from "./chunk-ZVVMGPBJ.js";
|
|
9
9
|
|
|
10
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
10
|
+
// node_modules/.pnpm/@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/wcat/names.js
|
|
11
11
|
var FIRST_PARTY_TOOLS = [
|
|
12
12
|
{ name: "tg", package: "@wirecat/tg-cli" },
|
|
13
13
|
{ name: "max", package: "@wirecat/max-cli" },
|
|
@@ -31,7 +31,7 @@ var DESCRIBE_FLAG = "--wcat-describe";
|
|
|
31
31
|
var DESCRIBE_MAX_BYTES = 64 * 1024;
|
|
32
32
|
var DISPATCH_FLAG = "--wcat-dispatch";
|
|
33
33
|
|
|
34
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
34
|
+
// node_modules/.pnpm/@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/wcat/describe.js
|
|
35
35
|
var DESCRIBE_FORMAT = 1;
|
|
36
36
|
var DESCRIBE_MANIFEST_FORMAT = 2;
|
|
37
37
|
var describeAnswer = /* @__PURE__ */ __name((tool, manifest) => {
|
|
@@ -74,7 +74,7 @@ var parseDescribe = /* @__PURE__ */ __name((text) => {
|
|
|
74
74
|
};
|
|
75
75
|
}, "parseDescribe");
|
|
76
76
|
|
|
77
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
77
|
+
// node_modules/.pnpm/@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/wcat/shim.js
|
|
78
78
|
import { lstatSync, readFileSync, renameSync, rmSync, statSync, writeFileSync } from "node:fs";
|
|
79
79
|
import { join } from "node:path";
|
|
80
80
|
var SHIM_FORMAT = 2;
|
|
@@ -2,16 +2,16 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
alive
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-3YM4B2GT.js";
|
|
6
6
|
import {
|
|
7
7
|
resolvePaths,
|
|
8
8
|
writeSecurely
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-6CWL5BKG.js";
|
|
10
10
|
import {
|
|
11
11
|
__name
|
|
12
12
|
} from "./chunk-ZVVMGPBJ.js";
|
|
13
13
|
|
|
14
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
14
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/background/lock.js
|
|
15
15
|
import { existsSync, linkSync, mkdirSync, readdirSync, readFileSync, rmSync, writeFileSync } from "node:fs";
|
|
16
16
|
import { dirname, join } from "node:path";
|
|
17
17
|
var lockPath = /* @__PURE__ */ __name((app, profile, env) => join(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "serve", `${profile}.lock`), "lockPath");
|
|
@@ -53,6 +53,17 @@ var releaseLock = /* @__PURE__ */ __name((path, pid = process.pid) => {
|
|
|
53
53
|
if (readLock(path)?.pid === pid)
|
|
54
54
|
rmSync(path, { force: true });
|
|
55
55
|
}, "releaseLock");
|
|
56
|
+
var currentPath = /* @__PURE__ */ __name((lock) => lock.replace(/\.lock$/, ".current"), "currentPath");
|
|
57
|
+
var markCurrent = /* @__PURE__ */ __name((lock, at = /* @__PURE__ */ new Date()) => writeSecurely(currentPath(lock), `${JSON.stringify({ at: at.toISOString() })}
|
|
58
|
+
`, 384), "markCurrent");
|
|
59
|
+
var readCurrent = /* @__PURE__ */ __name((lock) => {
|
|
60
|
+
try {
|
|
61
|
+
const { at } = JSON.parse(readFileSync(currentPath(lock), "utf8"));
|
|
62
|
+
return typeof at === "string" ? at : void 0;
|
|
63
|
+
} catch {
|
|
64
|
+
return void 0;
|
|
65
|
+
}
|
|
66
|
+
}, "readCurrent");
|
|
56
67
|
var servingProfiles = /* @__PURE__ */ __name((app, env) => {
|
|
57
68
|
const dir = dirname(lockPath(app, "default", env));
|
|
58
69
|
if (!existsSync(dir))
|
|
@@ -69,5 +80,7 @@ export {
|
|
|
69
80
|
holdLock,
|
|
70
81
|
takeLock,
|
|
71
82
|
releaseLock,
|
|
83
|
+
markCurrent,
|
|
84
|
+
readCurrent,
|
|
72
85
|
servingProfiles
|
|
73
86
|
};
|
|
@@ -2,19 +2,19 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
isCliFailure
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-GTKPMYK7.js";
|
|
6
6
|
import {
|
|
7
7
|
secretNamed,
|
|
8
8
|
withoutSecrets
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-73MOMNLL.js";
|
|
10
10
|
import {
|
|
11
11
|
isContentKey
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-6CWL5BKG.js";
|
|
13
13
|
import {
|
|
14
14
|
__name
|
|
15
15
|
} from "./chunk-ZVVMGPBJ.js";
|
|
16
16
|
|
|
17
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/runs/events.js
|
|
18
18
|
var providerErrorKey = /* @__PURE__ */ __name((value) => typeof value === "string" && /^[A-Za-z][A-Za-z0-9._-]{0,63}$/.test(value) ? value : void 0, "providerErrorKey");
|
|
19
19
|
var renderEvent = /* @__PURE__ */ __name((event) => {
|
|
20
20
|
if (event.event === "store")
|
|
@@ -66,11 +66,11 @@ var MARK = { request: "\u2192", response: "\u2190", cache: "\u2022", warning: "!
|
|
|
66
66
|
var age = /* @__PURE__ */ __name((ms) => ms < 1e3 ? `${ms}ms` : `${Math.round(ms / 1e3)}s`, "age");
|
|
67
67
|
var size = /* @__PURE__ */ __name((bytes) => bytes < 1e3 ? `${bytes} B` : `${(bytes / 1e3).toFixed(1)} kB`, "size");
|
|
68
68
|
|
|
69
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
69
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/runs/run-context.js
|
|
70
70
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
71
71
|
import { createHash } from "node:crypto";
|
|
72
72
|
|
|
73
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
73
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/runs/error-detail.js
|
|
74
74
|
import { homedir } from "node:os";
|
|
75
75
|
var MESSAGE_AT_MOST = 500;
|
|
76
76
|
var CAUSES_AT_MOST = 5;
|
|
@@ -183,7 +183,7 @@ var redactText = /* @__PURE__ */ __name((text) => {
|
|
|
183
183
|
return out.length > MESSAGE_AT_MOST ? `${out.slice(0, MESSAGE_AT_MOST)}\u2026` : out;
|
|
184
184
|
}, "redactText");
|
|
185
185
|
|
|
186
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
186
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/runs/run-context.js
|
|
187
187
|
var REDACTED = "[redacted]";
|
|
188
188
|
var keepsSuccess = /* @__PURE__ */ __name(({ record, fromFlag, env, caller, persistent = false }) => {
|
|
189
189
|
if (!record)
|
|
@@ -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-IANKXHSE.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@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/ports/app.js
|
|
11
11
|
import { readFileSync } from "node:fs";
|
|
12
12
|
var envName = /* @__PURE__ */ __name((app, name) => `${app.envPrefix}_${name}`, "envName");
|
|
13
13
|
var locking = /* @__PURE__ */ __name((value) => value !== void 0 && value.trim() !== "" && value !== "0", "locking");
|
|
@@ -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@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/cli/messenger/private-files.js
|
|
8
8
|
import { existsSync, statSync } from "node:fs";
|
|
9
9
|
var shellQuoted = /* @__PURE__ */ __name((path) => `'${path.replaceAll("'", `'\\''`)}'`, "shellQuoted");
|
|
10
10
|
var privateFiles = /* @__PURE__ */ __name(({ files, dirs }, platform = process.platform) => {
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
__name
|
|
5
5
|
} from "./chunk-ZVVMGPBJ.js";
|
|
6
6
|
|
|
7
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
7
|
+
// node_modules/.pnpm/@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/installer.js
|
|
8
8
|
var installerOf = /* @__PURE__ */ __name((scriptPath) => {
|
|
9
9
|
const path = scriptPath.replaceAll("\\", "/");
|
|
10
10
|
if (path.includes("/_npx/"))
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
__name
|
|
5
5
|
} from "./chunk-ZVVMGPBJ.js";
|
|
6
6
|
|
|
7
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
7
|
+
// node_modules/.pnpm/@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/executable.js
|
|
8
8
|
import { existsSync } from "node:fs";
|
|
9
9
|
import { win32 } from "node:path";
|
|
10
10
|
var variable = /* @__PURE__ */ __name((env, name) => Object.entries(env).find(([key]) => key.toUpperCase() === name)?.[1], "variable");
|
|
@@ -19,16 +19,16 @@ import {
|
|
|
19
19
|
reference,
|
|
20
20
|
string,
|
|
21
21
|
variant
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-ESN3W2MZ.js";
|
|
23
23
|
import {
|
|
24
24
|
CliError,
|
|
25
25
|
isCliError
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-IANKXHSE.js";
|
|
27
27
|
import {
|
|
28
28
|
__name
|
|
29
29
|
} from "./chunk-ZVVMGPBJ.js";
|
|
30
30
|
|
|
31
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
31
|
+
// node_modules/.pnpm/@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/query/help.js
|
|
32
32
|
var shownOf = /* @__PURE__ */ __name((registry) => registry.backend === "native" ? registry.fields.filter((field) => field.native) : registry.fields, "shownOf");
|
|
33
33
|
var leftOut = /* @__PURE__ */ __name((fields) => fields.filter((field) => field.negatable).map((field) => field.name), "leftOut");
|
|
34
34
|
var has = /* @__PURE__ */ __name((fields, operator) => fields.some((field) => field.operators.includes(operator)), "has");
|
|
@@ -65,7 +65,7 @@ var queryDescription = /* @__PURE__ */ __name((registry) => {
|
|
|
65
65
|
return `${terms}; fields: ${fields.join(", ")}; e.g. ${shown[0]?.example ?? ""}${defaults}`;
|
|
66
66
|
}, "queryDescription");
|
|
67
67
|
|
|
68
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
68
|
+
// node_modules/.pnpm/@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/query/types.js
|
|
69
69
|
var QUERY_LIMITS = {
|
|
70
70
|
bytes: 8192,
|
|
71
71
|
depth: 32,
|
|
@@ -109,7 +109,7 @@ function queryError(reason, span, alternative, context = {}, details = {}) {
|
|
|
109
109
|
__name(queryError, "queryError");
|
|
110
110
|
var walkQuery = /* @__PURE__ */ __name((node) => node.kind === "predicate" ? [node] : node.clauses.flatMap(({ node: node2 }) => walkQuery(node2)), "walkQuery");
|
|
111
111
|
|
|
112
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
112
|
+
// node_modules/.pnpm/@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/query/dates.js
|
|
113
113
|
var timezoneOf = /* @__PURE__ */ __name((given) => {
|
|
114
114
|
const zone = given ?? Intl.DateTimeFormat().resolvedOptions().timeZone ?? "UTC";
|
|
115
115
|
try {
|
|
@@ -259,7 +259,7 @@ var dateRange = /* @__PURE__ */ __name((lower, upper, lowerInclusive, upperInclu
|
|
|
259
259
|
};
|
|
260
260
|
}, "dateRange");
|
|
261
261
|
|
|
262
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
262
|
+
// node_modules/.pnpm/@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/query/evaluate.js
|
|
263
263
|
var wordsOf = /* @__PURE__ */ __name((text) => text.toLowerCase().match(/[\p{L}\p{N}]+/gu) ?? [], "wordsOf");
|
|
264
264
|
var pattern = /* @__PURE__ */ __name((value) => new RegExp(`^${[...value].map((char) => char === "*" ? ".*" : char === "?" ? "." : char.replace(/[.+^${}()|[\]\\]/, "\\$&")).join("")}$`, "iu"), "pattern");
|
|
265
265
|
var present = /* @__PURE__ */ __name((value) => value !== void 0 && value !== null && value !== "", "present");
|
|
@@ -314,7 +314,7 @@ var matches = /* @__PURE__ */ __name((node, item, byName, options) => {
|
|
|
314
314
|
}, "matches");
|
|
315
315
|
var evaluate = /* @__PURE__ */ __name((ast, fields, item, options = {}) => matches(ast.root, item, new Map(fields.map((field) => [field.name, field])), options), "evaluate");
|
|
316
316
|
|
|
317
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
317
|
+
// node_modules/.pnpm/@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/query/fields.js
|
|
318
318
|
var FIELD_TYPES = ["kw", "txt", "enum", "num", "time", "bool", "ref"];
|
|
319
319
|
var OPERATORS_BY_TYPE = {
|
|
320
320
|
kw: ["term", "phrase", "wildcard"],
|
|
@@ -393,7 +393,7 @@ var queryFieldsOf = /* @__PURE__ */ __name((schema, annotations = {}) => {
|
|
|
393
393
|
return [...own, ...relations, ...states];
|
|
394
394
|
}, "queryFieldsOf");
|
|
395
395
|
|
|
396
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
396
|
+
// node_modules/.pnpm/@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/query/parser.js
|
|
397
397
|
var whitespace = /* @__PURE__ */ __name((c) => /[ \t\n\r\u3000]/u.test(c), "whitespace");
|
|
398
398
|
var reserved = /* @__PURE__ */ new Set([
|
|
399
399
|
"+",
|
|
@@ -702,7 +702,7 @@ var implicitTextTerms = /* @__PURE__ */ __name((text) => {
|
|
|
702
702
|
return new Set(tokens.flatMap((token, index) => (token.kind === "term" || token.kind === "number") && ![":", "=", "<", ">", "<=", ">="].includes(tokens[index - 1]?.kind ?? "") && ![":", "=", "<", ">", "<=", ">="].includes(tokens[index + 1]?.kind ?? "") ? [token.span.start] : []));
|
|
703
703
|
}, "implicitTextTerms");
|
|
704
704
|
|
|
705
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
705
|
+
// node_modules/.pnpm/@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/query/validate.js
|
|
706
706
|
var inContext = /* @__PURE__ */ __name((context, run) => {
|
|
707
707
|
try {
|
|
708
708
|
run();
|
|
@@ -777,7 +777,7 @@ var validateQuery = /* @__PURE__ */ __name((ast, registry, options = {}) => {
|
|
|
777
777
|
}, "validateQuery");
|
|
778
778
|
var fieldsNamed = /* @__PURE__ */ __name((ast) => new Set(walkQuery(ast.root).map((node) => node.field)), "fieldsNamed");
|
|
779
779
|
|
|
780
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
780
|
+
// node_modules/.pnpm/@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/query/registry.js
|
|
781
781
|
var describeQuery = /* @__PURE__ */ __name((registry) => ({
|
|
782
782
|
entity: registry.entity,
|
|
783
783
|
backend: registry.backend,
|
|
@@ -2,10 +2,10 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
refuseLacking
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-KQPUVXKX.js";
|
|
6
6
|
import {
|
|
7
7
|
servingProfiles
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-RQOZBTNI.js";
|
|
9
9
|
import {
|
|
10
10
|
DEFAULT_PACE,
|
|
11
11
|
FloodMemory,
|
|
@@ -20,198 +20,56 @@ import {
|
|
|
20
20
|
pacePathFor,
|
|
21
21
|
profilesOnAccount,
|
|
22
22
|
recipientsPathFor,
|
|
23
|
+
refuseUnknownPermissionKeys,
|
|
23
24
|
servicesFor,
|
|
25
|
+
terminalAsker,
|
|
24
26
|
waitForTurn
|
|
25
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-QVSL5WJ7.js";
|
|
26
28
|
import {
|
|
27
29
|
capability,
|
|
28
30
|
throughWrapper
|
|
29
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-GBHMT2IU.js";
|
|
30
32
|
import {
|
|
31
33
|
asFirstWord,
|
|
32
34
|
baseContext,
|
|
33
35
|
codeOf,
|
|
34
36
|
currentOperation,
|
|
35
37
|
environmentOf,
|
|
36
|
-
issueMessage,
|
|
37
38
|
limitBatch,
|
|
38
|
-
permissionIssues,
|
|
39
|
-
publicIssue,
|
|
40
39
|
recalledAccount,
|
|
41
40
|
rememberAccount,
|
|
42
41
|
rootOf2 as rootOf
|
|
43
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-V5EJSF2B.js";
|
|
44
43
|
import {
|
|
45
44
|
providerErrorKey
|
|
46
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-T7IAWEBU.js";
|
|
47
46
|
import {
|
|
48
|
-
AUTHORITY_KEY,
|
|
49
47
|
CEILING_KEY,
|
|
50
|
-
DEFAULT_PERMISSIONS,
|
|
51
|
-
KEYED_UNDER_HOUSEKEEPING,
|
|
52
|
-
WRITE_KEYS,
|
|
53
48
|
fetchesUnder,
|
|
54
|
-
keyForCommand,
|
|
55
49
|
levelFor,
|
|
56
|
-
readKeysForCommand
|
|
57
|
-
|
|
58
|
-
} from "./chunk-V3ZTAAJ6.js";
|
|
50
|
+
readKeysForCommand
|
|
51
|
+
} from "./chunk-KJ6USQDZ.js";
|
|
59
52
|
import {
|
|
60
53
|
openStore
|
|
61
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-2GP573Q4.js";
|
|
62
55
|
import {
|
|
63
56
|
chatReferenceOf,
|
|
64
57
|
ensureAccount,
|
|
65
58
|
foldName,
|
|
66
59
|
isId,
|
|
67
60
|
pickPerson
|
|
68
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-LEKKTJKK.js";
|
|
69
62
|
import {
|
|
70
63
|
isCliFailure
|
|
71
|
-
} from "./chunk-
|
|
64
|
+
} from "./chunk-GTKPMYK7.js";
|
|
72
65
|
import {
|
|
73
66
|
CliError
|
|
74
|
-
} from "./chunk-
|
|
67
|
+
} from "./chunk-IANKXHSE.js";
|
|
75
68
|
import {
|
|
76
69
|
__name
|
|
77
70
|
} from "./chunk-ZVVMGPBJ.js";
|
|
78
71
|
|
|
79
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
80
|
-
import { openSync } from "node:fs";
|
|
81
|
-
import { createInterface } from "node:readline";
|
|
82
|
-
import { ReadStream } from "node:tty";
|
|
83
|
-
var fromTerminal = /* @__PURE__ */ __name(async (question) => {
|
|
84
|
-
if (!process.stdin.isTTY || !process.stderr.isTTY)
|
|
85
|
-
return null;
|
|
86
|
-
let input;
|
|
87
|
-
try {
|
|
88
|
-
input = new ReadStream(openSync("/dev/tty", "r"));
|
|
89
|
-
} catch {
|
|
90
|
-
return null;
|
|
91
|
-
}
|
|
92
|
-
const reader = createInterface({ input, output: process.stderr, terminal: true });
|
|
93
|
-
try {
|
|
94
|
-
return await new Promise((resolve, reject) => {
|
|
95
|
-
const cancel = /* @__PURE__ */ __name(() => reject(new CliError("cancelled", "cancelled \u2014 nothing was done")), "cancel");
|
|
96
|
-
reader.once("SIGINT", cancel);
|
|
97
|
-
reader.once("close", cancel);
|
|
98
|
-
reader.question(question, resolve);
|
|
99
|
-
});
|
|
100
|
-
} finally {
|
|
101
|
-
reader.close();
|
|
102
|
-
input.destroy();
|
|
103
|
-
}
|
|
104
|
-
}, "fromTerminal");
|
|
105
|
-
var what = /* @__PURE__ */ __name((key, { chatId, count, personIds, forEveryone }) => [
|
|
106
|
-
key,
|
|
107
|
-
forEveryone ? "for everyone" : void 0,
|
|
108
|
-
count !== void 0 ? `${count} ${count === 1 ? "item" : "items"}` : void 0,
|
|
109
|
-
personIds?.length ? `${personIds.length} ${personIds.length === 1 ? "person" : "people"}` : void 0,
|
|
110
|
-
chatId !== null ? `in chat ${chatId}` : void 0
|
|
111
|
-
].filter(Boolean).join(", "), "what");
|
|
112
|
-
var answerOf = /* @__PURE__ */ __name(async (command, question) => {
|
|
113
|
-
const given = command.optsWithGlobals();
|
|
114
|
-
if (given.json === true || given.jsonl === true)
|
|
115
|
-
return null;
|
|
116
|
-
return (environmentOf(command).answer ?? fromTerminal)(question);
|
|
117
|
-
}, "answerOf");
|
|
118
|
-
var terminalAsker = /* @__PURE__ */ __name((command) => async (key, request) => {
|
|
119
|
-
if (environmentOf(command).agent)
|
|
120
|
-
return;
|
|
121
|
-
const flag = skipFlagFor(key);
|
|
122
|
-
const given = command.optsWithGlobals();
|
|
123
|
-
if (flag === "--yes" ? given.yes === true : given.allowDangerous === true)
|
|
124
|
-
return;
|
|
125
|
-
const machine = given.json === true || given.jsonl === true;
|
|
126
|
-
const answer = machine ? null : await (environmentOf(command).answer ?? fromTerminal)(`${what(key, request)} \u2014 go ahead? [y/N] `);
|
|
127
|
-
if (answer === null) {
|
|
128
|
-
throw new CliError("confirmation_required", `${key} asks before it acts (its permission level is ask), and nobody is at a terminal to answer \u2014 add ${flag} to go ahead`, { permission: key });
|
|
129
|
-
}
|
|
130
|
-
if (!/^\s*y(es)?\s*$/i.test(answer))
|
|
131
|
-
throw new CliError("cancelled", `${key}: not done \u2014 the answer was no`);
|
|
132
|
-
}, "terminalAsker");
|
|
133
|
-
|
|
134
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/cli/permission-keys.js
|
|
135
|
-
var HOUSEKEEPING = /* @__PURE__ */ new Set([
|
|
136
|
-
"help",
|
|
137
|
-
"guide",
|
|
138
|
-
"config",
|
|
139
|
-
"session",
|
|
140
|
-
"doctor",
|
|
141
|
-
"commands",
|
|
142
|
-
"complete",
|
|
143
|
-
"upgrade",
|
|
144
|
-
"skill",
|
|
145
|
-
"mcp",
|
|
146
|
-
"runs"
|
|
147
|
-
]);
|
|
148
|
-
var commandPathKey = /* @__PURE__ */ __name((path) => path[0] === void 0 || HOUSEKEEPING.has(path[0]) && !KEYED_UNDER_HOUSEKEEPING.has(path.join(".")) ? null : path.join("."), "commandPathKey");
|
|
149
|
-
var commandPermissions = /* @__PURE__ */ __name(({ keyOf = commandPathKey, extra = [], defaults = {}, alsoChecks } = {}) => ({
|
|
150
|
-
keyOf,
|
|
151
|
-
extra: [AUTHORITY_KEY, ...extra],
|
|
152
|
-
defaults: { ...DEFAULT_PERMISSIONS, ...defaults },
|
|
153
|
-
...alsoChecks ? { alsoChecks } : {}
|
|
154
|
-
}), "commandPermissions");
|
|
155
|
-
var pathOf = /* @__PURE__ */ __name((command) => {
|
|
156
|
-
const words = [];
|
|
157
|
-
for (let at = command; at?.parent; at = at.parent)
|
|
158
|
-
words.unshift(at.name());
|
|
159
|
-
return words;
|
|
160
|
-
}, "pathOf");
|
|
161
|
-
var rootOf2 = /* @__PURE__ */ __name((command) => {
|
|
162
|
-
let at = command;
|
|
163
|
-
while (at.parent)
|
|
164
|
-
at = at.parent;
|
|
165
|
-
return at;
|
|
166
|
-
}, "rootOf");
|
|
167
|
-
var everyCommand = /* @__PURE__ */ __name((command) => [command, ...command.commands.flatMap(everyCommand)], "everyCommand");
|
|
168
|
-
var knownPermissionKeys = /* @__PURE__ */ __name((command, keyOf = (one) => keyForCommand(pathOf(one)), extra = []) => {
|
|
169
|
-
const known = /* @__PURE__ */ new Set();
|
|
170
|
-
const add = /* @__PURE__ */ __name((key) => {
|
|
171
|
-
for (let parts = key.split("."); parts.length > 0; parts = parts.slice(0, -1))
|
|
172
|
-
known.add(parts.join("."));
|
|
173
|
-
}, "add");
|
|
174
|
-
if (typeof keyOf !== "function") {
|
|
175
|
-
for (const one of everyCommand(rootOf2(command))) {
|
|
176
|
-
const key = keyOf.keyOf(pathOf(one));
|
|
177
|
-
if (key)
|
|
178
|
-
add(key);
|
|
179
|
-
}
|
|
180
|
-
for (const key of [...keyOf.extra, ...extra])
|
|
181
|
-
add(key);
|
|
182
|
-
return known;
|
|
183
|
-
}
|
|
184
|
-
for (const one of everyCommand(rootOf2(command))) {
|
|
185
|
-
const own = keyOf(one);
|
|
186
|
-
const key = own === void 0 ? keyForCommand(pathOf(one)) : own;
|
|
187
|
-
if (key)
|
|
188
|
-
add(key);
|
|
189
|
-
}
|
|
190
|
-
for (const key of [...WRITE_KEYS, ...extra])
|
|
191
|
-
add(key);
|
|
192
|
-
return known;
|
|
193
|
-
}, "knownPermissionKeys");
|
|
194
|
-
var knownBeside = /* @__PURE__ */ __name((key, known) => {
|
|
195
|
-
const parent = key.split(".").slice(0, -1).join(".");
|
|
196
|
-
const depth = parent === "" ? 1 : parent.split(".").length + 1;
|
|
197
|
-
return [...known].filter((one) => one.split(".").length === depth && (parent === "" || one.startsWith(`${parent}.`))).sort();
|
|
198
|
-
}, "knownBeside");
|
|
199
|
-
var unknownPermissionKeys = /* @__PURE__ */ __name((levels, known) => Object.keys(levels).filter((key) => key !== CEILING_KEY && !known.has(key)), "unknownPermissionKeys");
|
|
200
|
-
var unknownPermissionIssues = /* @__PURE__ */ __name((command, settings, tool, keyOf) => {
|
|
201
|
-
const saved = settings.savedPermissions ?? Object.keys(settings.permissions).filter((key) => key !== CEILING_KEY && settings.permissionSources[key] !== "flag").map((key) => ({ key, at: ["profiles", settings.profile, "permissions", key] }));
|
|
202
|
-
return permissionIssues(saved, knownPermissionKeys(command, keyOf), { file: settings.configPath, tool }).map(publicIssue);
|
|
203
|
-
}, "unknownPermissionIssues");
|
|
204
|
-
var refuseUnknownPermissionKeys = /* @__PURE__ */ __name((command, settings, tool, keyOf) => {
|
|
205
|
-
const issues = unknownPermissionIssues(command, settings, tool, keyOf);
|
|
206
|
-
if (issues.length > 0)
|
|
207
|
-
throw new CliError("configuration_error", issueMessage(issues), { permission: issues[0]?.key });
|
|
208
|
-
const flagged = Object.keys(settings.permissions).filter((key2) => settings.permissionSources[key2] === "flag");
|
|
209
|
-
const [key] = unknownPermissionKeys(Object.fromEntries(flagged.map((one) => [one, true])), knownPermissionKeys(command, keyOf));
|
|
210
|
-
if (key !== void 0)
|
|
211
|
-
throw new CliError("validation_error", `--permission ${key} names no command`, { permission: key });
|
|
212
|
-
}, "refuseUnknownPermissionKeys");
|
|
213
|
-
|
|
214
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/cli/messenger/stored.js
|
|
72
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/cli/messenger/stored.js
|
|
215
73
|
var REKEY_PACING = { lockMs: 50, pauseMs: 25 };
|
|
216
74
|
var stored = /* @__PURE__ */ __name((messenger, { account, store, warn, events, pending, announcing, deletedWithoutChat, profile, rekeyed, rekeyPacing = REKEY_PACING, closing, namesFromStore, recipientIds, countsUnread = false, historyLimits, command = "cli" }) => {
|
|
217
75
|
let warned = false;
|
|
@@ -787,15 +645,15 @@ var keep = /* @__PURE__ */ __name(async (store, account, event, seenAt, among, c
|
|
|
787
645
|
}
|
|
788
646
|
}, "keep");
|
|
789
647
|
|
|
790
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
648
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/cli/messenger/flooded.js
|
|
791
649
|
var LONG_LIVED = /* @__PURE__ */ new Set(["self", "newSendId", "close", "formatMarkdown", "formatHtml", "storedChats"]);
|
|
792
650
|
var LISTENING = /* @__PURE__ */ new Set(["watch", "feed", "listen", "listenHistory"]);
|
|
793
651
|
var BLOCKING = /* @__PURE__ */ new Set(["frozen", "limited", "banned"]);
|
|
794
652
|
var chatOf = /* @__PURE__ */ __name((args) => typeof args[0] === "string" && /^-?\d+$/.test(args[0]) ? args[0] : void 0, "chatOf");
|
|
795
653
|
var flooded = /* @__PURE__ */ __name((messenger, memory, { name, warn, pacer }) => {
|
|
796
|
-
const kept = /* @__PURE__ */ __name(async (operation,
|
|
654
|
+
const kept = /* @__PURE__ */ __name(async (operation, what) => {
|
|
797
655
|
try {
|
|
798
|
-
await
|
|
656
|
+
await what();
|
|
799
657
|
} catch (error) {
|
|
800
658
|
warn(`could not remember ${name}'s wait (${error instanceof Error ? error.message : String(error)})`, {
|
|
801
659
|
event: "warning",
|
|
@@ -884,7 +742,7 @@ var flooded = /* @__PURE__ */ __name((messenger, memory, { name, warn, pacer })
|
|
|
884
742
|
});
|
|
885
743
|
}, "flooded");
|
|
886
744
|
|
|
887
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
745
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/cli/messenger/observed.js
|
|
888
746
|
var observed = /* @__PURE__ */ __name((messenger, events) => {
|
|
889
747
|
const timed = /* @__PURE__ */ __name(async (operation, named, work, after) => {
|
|
890
748
|
const write = currentOperation();
|
|
@@ -983,7 +841,7 @@ var byPart = /* @__PURE__ */ __name((batch, counts) => {
|
|
|
983
841
|
counts[part] = (counts[part] ?? 0) + items.length;
|
|
984
842
|
}, "byPart");
|
|
985
843
|
|
|
986
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
844
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/cli/messenger/context.js
|
|
987
845
|
var lazyStore = /* @__PURE__ */ __name((env, command, version) => {
|
|
988
846
|
let opened;
|
|
989
847
|
return {
|
|
@@ -1077,7 +935,7 @@ var settled = /* @__PURE__ */ __name(async (pending, ms) => {
|
|
|
1077
935
|
clearTimeout(timer);
|
|
1078
936
|
}
|
|
1079
937
|
}, "settled");
|
|
1080
|
-
var listened = /* @__PURE__ */ __name(({ run, operation, what
|
|
938
|
+
var listened = /* @__PURE__ */ __name(({ run, operation, what }, events, warn, waitMs) => {
|
|
1081
939
|
const abort = new AbortController();
|
|
1082
940
|
let closing = false;
|
|
1083
941
|
const ended = Promise.resolve().then(() => run(abort.signal)).catch((error) => {
|
|
@@ -1085,11 +943,11 @@ var listened = /* @__PURE__ */ __name(({ run, operation, what: what2 }, events,
|
|
|
1085
943
|
return;
|
|
1086
944
|
const warning = { event: "warning", code: "listen_failed", operation };
|
|
1087
945
|
events(warning);
|
|
1088
|
-
warn(`${
|
|
946
|
+
warn(`${what} arriving during this command are not saved: ${error instanceof Error ? error.message : String(error)}`, warning);
|
|
1089
947
|
});
|
|
1090
948
|
return {
|
|
1091
949
|
operation,
|
|
1092
|
-
what
|
|
950
|
+
what,
|
|
1093
951
|
closing: /* @__PURE__ */ __name(() => {
|
|
1094
952
|
closing = true;
|
|
1095
953
|
}, "closing"),
|
|
@@ -1180,10 +1038,10 @@ var connected = /* @__PURE__ */ __name((connection, { app, provider, name, delet
|
|
|
1180
1038
|
events(warning);
|
|
1181
1039
|
warn(text, warning);
|
|
1182
1040
|
}, "warned");
|
|
1183
|
-
passives.forEach(({ operation, what
|
|
1041
|
+
passives.forEach(({ operation, what }, at) => {
|
|
1184
1042
|
if (ended[at])
|
|
1185
1043
|
return;
|
|
1186
|
-
warned({ event: "warning", code: "store_not_written", operation }, `not saved to the local store: the messenger was still handing on ${
|
|
1044
|
+
warned({ event: "warning", code: "store_not_written", operation }, `not saved to the local store: the messenger was still handing on ${what} at exit`);
|
|
1187
1045
|
});
|
|
1188
1046
|
await settled(/* @__PURE__ */ new Set([...pending, ...announcing]), closeWaitMs);
|
|
1189
1047
|
closing.abort();
|
|
@@ -1242,14 +1100,14 @@ var warnUnserved = /* @__PURE__ */ __name(async (messenger, profile, { env, rend
|
|
|
1242
1100
|
const newest = (await store.chats.chatStats(account)).map((one) => one.newestAt).reduce((latest, at) => at !== null && (latest === null || at > latest) ? at : latest, null);
|
|
1243
1101
|
renderer.warn(`no \`${messenger.app.command} ${profile} serve\` keeps profile "${profile}" up to date \u2014 ` + (newest === null ? "the local store holds no messages yet" : `the newest stored message is from ${newest}`));
|
|
1244
1102
|
}, "warnUnserved");
|
|
1245
|
-
var
|
|
1103
|
+
var pathOf = /* @__PURE__ */ __name((command) => {
|
|
1246
1104
|
const words = [];
|
|
1247
1105
|
for (let at = command; at?.parent; at = at.parent)
|
|
1248
1106
|
words.unshift(at.name());
|
|
1249
1107
|
return words;
|
|
1250
1108
|
}, "pathOf");
|
|
1251
1109
|
var refuseDenied = /* @__PURE__ */ __name((command, settings) => {
|
|
1252
|
-
for (const key of readKeysForCommand(
|
|
1110
|
+
for (const key of readKeysForCommand(pathOf(command))) {
|
|
1253
1111
|
const { level, key: named } = levelFor(settings.permissions, key);
|
|
1254
1112
|
if (level !== "deny")
|
|
1255
1113
|
continue;
|
|
@@ -1272,7 +1130,7 @@ var messengerContext = /* @__PURE__ */ __name((command, messenger, resolving = {
|
|
|
1272
1130
|
const base = baseContext(command, (flags, options) => messenger.resolveSettings(flags, { ...options, ...resolving }));
|
|
1273
1131
|
const { profile } = base.settings;
|
|
1274
1132
|
refuseDenied(command, base.settings);
|
|
1275
|
-
refuseLacking(messenger,
|
|
1133
|
+
refuseLacking(messenger, pathOf(command));
|
|
1276
1134
|
refuseUnknownPermissionKeys(command, base.settings, app.command, messenger.permissionKey);
|
|
1277
1135
|
const warn = /* @__PURE__ */ __name((text, warning) => base.renderer.warn(text, warning), "warn");
|
|
1278
1136
|
const accountFor = /* @__PURE__ */ __name(() => {
|
|
@@ -1384,15 +1242,6 @@ var messengerContext = /* @__PURE__ */ __name((command, messenger, resolving = {
|
|
|
1384
1242
|
}, "messengerContext");
|
|
1385
1243
|
|
|
1386
1244
|
export {
|
|
1387
|
-
answerOf,
|
|
1388
|
-
terminalAsker,
|
|
1389
|
-
commandPathKey,
|
|
1390
|
-
commandPermissions,
|
|
1391
|
-
knownPermissionKeys,
|
|
1392
|
-
knownBeside,
|
|
1393
|
-
unknownPermissionKeys,
|
|
1394
|
-
unknownPermissionIssues,
|
|
1395
|
-
refuseUnknownPermissionKeys,
|
|
1396
1245
|
stored,
|
|
1397
1246
|
fill,
|
|
1398
1247
|
connectFor,
|