@wirecat/zoom-cli 0.80.0 → 0.81.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 +71 -3
- package/dist/answers.d.ts +44 -0
- package/dist/answers.d.ts.map +1 -1
- package/dist/bin/zm.js +2 -2
- package/dist/bundle/agent-VYAJCJLE.js +45 -0
- package/dist/bundle/{all-profiles-5GOKWOT4.js → all-profiles-3ASMN35R.js} +64 -22
- package/dist/bundle/answer-policy-PTH4F2DW.js +129 -0
- package/dist/bundle/{anthropic-NHXMOFYS.js → anthropic-XXI53VNI.js} +6 -6
- package/dist/bundle/{app-server-HFW5Z5PI.js → app-server-B7WLNZNQ.js} +90 -80
- package/dist/bundle/{bun-M5IGY2TG.js → bun-2FLR4IV4.js} +2 -2
- package/dist/bundle/{bun-sqlite-MTP5JJQ2.js → bun-sqlite-3NNHTOGM.js} +7 -7
- package/dist/bundle/{chunk-P2JTVRGU.js → chunk-2ELGSNX3.js} +17 -17
- package/dist/bundle/{chunk-5RVXXDN7.js → chunk-2GNGR265.js} +1 -1
- package/dist/bundle/{chunk-W2QDYMAM.js → chunk-2RFWRJFK.js} +7 -7
- package/dist/bundle/{chunk-4OAR7BGU.js → chunk-2Z7UOXFC.js} +1 -1
- package/dist/bundle/chunk-337ALCXQ.js +640 -0
- package/dist/bundle/{chunk-4F7Q5CET.js → chunk-35FVYRH5.js} +20 -18
- package/dist/bundle/{chunk-HH7GR6TN.js → chunk-3M436OO2.js} +6 -6
- package/dist/bundle/{chunk-5QXQIZJY.js → chunk-3UX4VJWD.js} +1 -1
- package/dist/bundle/{chunk-NRVMK5H3.js → chunk-437DLSB3.js} +1211 -615
- package/dist/bundle/{chunk-L2TURFT6.js → chunk-46EF6P2J.js} +3 -3
- package/dist/bundle/{chunk-GVKZZT7E.js → chunk-4B335BCJ.js} +7 -78
- package/dist/bundle/chunk-4BU3LRTB.js +561 -0
- package/dist/bundle/{chunk-W32HK7KG.js → chunk-4BXLHSXY.js} +2 -2
- package/dist/bundle/{chunk-JGSVWLL2.js → chunk-4FSH7K6N.js} +2 -2
- package/dist/bundle/{chunk-GCUOZ2OA.js → chunk-4VOCXLMJ.js} +6 -6
- package/dist/bundle/{chunk-XL4ND7CZ.js → chunk-4ZXJ4AZW.js} +26 -26
- package/dist/bundle/{chunk-6CDMGT6Q.js → chunk-5EWYDHBH.js} +2 -2
- package/dist/bundle/{chunk-HGSBLY6M.js → chunk-5SEBLX6B.js} +12 -12
- package/dist/bundle/{chunk-TDBVM2SS.js → chunk-77TJ3AJH.js} +3 -3
- package/dist/bundle/{chunk-5XO2AY6D.js → chunk-7JWVPJIP.js} +10 -10
- package/dist/bundle/{chunk-FPUGMDJV.js → chunk-AV2ZJ4WX.js} +1 -1
- package/dist/bundle/{chunk-PCPOO5FS.js → chunk-AWJQ6FAX.js} +2 -2
- package/dist/bundle/{chunk-N5YUHN6S.js → chunk-B2WBWKYN.js} +12 -12
- package/dist/bundle/{chunk-W7M4JYEE.js → chunk-BQBC2WIG.js} +1 -1
- package/dist/bundle/{chunk-NXFKZFTC.js → chunk-BZXHJKKI.js} +3 -3
- package/dist/bundle/{chunk-BPSURRAD.js → chunk-C4BBCSGK.js} +43 -64
- package/dist/bundle/{chunk-CWXOXIWS.js → chunk-CFQQTDSA.js} +1 -1
- package/dist/bundle/{chunk-2P6MQH4V.js → chunk-D26K6756.js} +6 -6
- package/dist/bundle/{chunk-XKLU5KV2.js → chunk-D7CDHBDX.js} +1 -1
- package/dist/bundle/{chunk-6LY4LBSD.js → chunk-DMJLJVD3.js} +7 -7
- package/dist/bundle/{chunk-K672XJ2P.js → chunk-EEBSKMEA.js} +12 -12
- package/dist/bundle/{chunk-SUG6YGAF.js → chunk-EPASOAEI.js} +166 -161
- package/dist/bundle/{chunk-M4LAF627.js → chunk-EWEQ7AXL.js} +19 -19
- package/dist/bundle/{chunk-ARL2TTPZ.js → chunk-F2J2FQUB.js} +9 -9
- package/dist/bundle/{chunk-RT7C3SSJ.js → chunk-F5ZAN7OC.js} +1 -1
- package/dist/bundle/{chunk-6QCBTBDA.js → chunk-FMMYBVCH.js} +1 -1
- package/dist/bundle/{chunk-EI37UXDR.js → chunk-FXCR4DGU.js} +1 -1
- package/dist/bundle/{chunk-D4HKTC2T.js → chunk-FXZPAGHT.js} +2 -2
- package/dist/bundle/{chunk-CW6CPQHI.js → chunk-G3DWMG7Y.js} +4 -4
- package/dist/bundle/{chunk-W3GZ7JUO.js → chunk-GCAJW4SR.js} +1 -1
- package/dist/bundle/chunk-GDRFVBCB.js +108 -0
- package/dist/bundle/{chunk-A3TUG2DP.js → chunk-GPRJXJC7.js} +15 -1
- package/dist/bundle/chunk-GW2A2FJH.js +209 -0
- package/dist/bundle/{chunk-3Z7CFQTI.js → chunk-HHQROAJQ.js} +1 -1
- package/dist/bundle/{chunk-BRMV33MO.js → chunk-HIFPHARA.js} +4 -4
- package/dist/bundle/{chunk-O3DYRCIT.js → chunk-HVXOA4FO.js} +1 -1
- package/dist/bundle/{chunk-ONJPUFLX.js → chunk-IBYGNUO7.js} +1 -1
- package/dist/bundle/{chunk-GGKEQQME.js → chunk-IDUKCXL7.js} +8 -8
- package/dist/bundle/{chunk-5CJ6AAUI.js → chunk-IFM4G4MT.js} +4 -4
- package/dist/bundle/chunk-IVZACJ6X.js +52 -0
- package/dist/bundle/{chunk-XIHENZW6.js → chunk-IYNICUCC.js} +4 -4
- package/dist/bundle/chunk-J5EHZBO5.js +68 -0
- package/dist/bundle/{chunk-FIJREKLA.js → chunk-JK24A3RP.js} +3 -3
- package/dist/bundle/{chunk-TNL3YQ33.js → chunk-JKEMW6E4.js} +2 -2
- package/dist/bundle/{chunk-3AOESMW6.js → chunk-K7CTCDYX.js} +18 -259
- package/dist/bundle/{chunk-OXPHJEJ2.js → chunk-KZ3B6HW5.js} +3 -3
- package/dist/bundle/{chunk-E3JVLVVB.js → chunk-L2ERFXB7.js} +30 -28
- package/dist/bundle/{chunk-DZ6H3YJH.js → chunk-L54I45OX.js} +19 -16
- package/dist/bundle/{chunk-475P3LWG.js → chunk-LECMHK2F.js} +1 -1
- package/dist/bundle/{chunk-6PIXP5IH.js → chunk-LGESUPKO.js} +20 -20
- package/dist/bundle/{chunk-75JW7X2W.js → chunk-LVCCZI5A.js} +71 -61
- package/dist/bundle/chunk-M7OYEMLI.js +340 -0
- package/dist/bundle/{chunk-O4ZBFATF.js → chunk-MA4UJNUI.js} +12 -12
- package/dist/bundle/{chunk-RFXJLG5V.js → chunk-MBBR7QHI.js} +3377 -2720
- package/dist/bundle/{chunk-BNEJKGG7.js → chunk-N5ROXGY4.js} +78 -76
- package/dist/bundle/{chunk-BW5JEOBE.js → chunk-N62P5FY4.js} +12 -12
- package/dist/bundle/{chunk-5K54M6RD.js → chunk-NM5XMKWO.js} +1 -1
- package/dist/bundle/{chunk-EMYRUJCV.js → chunk-NQGGTO3B.js} +8 -8
- package/dist/bundle/{chunk-7U5X37TE.js → chunk-NS3JWBDR.js} +6 -6
- package/dist/bundle/{chunk-QIK2IBJ4.js → chunk-NX3BLISW.js} +23 -7
- package/dist/bundle/{chunk-2XZ2YKW4.js → chunk-OEQNP56V.js} +2 -100
- package/dist/bundle/{chunk-5D4AEUVA.js → chunk-PL5P7UKW.js} +434 -1
- package/dist/bundle/{chunk-GCPO7T2X.js → chunk-PS7HQ5LQ.js} +3 -3
- package/dist/bundle/{chunk-MH4L5LL6.js → chunk-Q26UFIH4.js} +3 -3
- package/dist/bundle/{chunk-JXSEH64A.js → chunk-QFK52FG6.js} +3 -3
- package/dist/bundle/chunk-QNG27PGH.js +751 -0
- package/dist/bundle/{chunk-YR5TRWT2.js → chunk-R4CXFYQN.js} +139 -574
- package/dist/bundle/{chunk-YAA2D6RP.js → chunk-R6HP2XKD.js} +5 -5
- package/dist/bundle/{chunk-CHEHK6IW.js → chunk-RQFRXUI4.js} +77 -67
- package/dist/bundle/{chunk-CWCDCNXA.js → chunk-RRYHLP3A.js} +6 -6
- package/dist/bundle/{chunk-EPIA2UUM.js → chunk-SRUAUMBL.js} +12 -12
- package/dist/bundle/{chunk-TMYZKDQ7.js → chunk-T2BHIC37.js} +65 -65
- package/dist/bundle/{chunk-FSLR2YGR.js → chunk-T7QPZYRZ.js} +7 -7
- package/dist/bundle/{chunk-PKW3TPNP.js → chunk-TI4WJOEX.js} +13 -13
- package/dist/bundle/{chunk-ST3ZB7LS.js → chunk-UHMJSSQO.js} +1 -1
- package/dist/bundle/{chunk-GRYXOSN6.js → chunk-UMPUY77T.js} +10 -10
- package/dist/bundle/{chunk-Q5LUGY2V.js → chunk-UPR2S5IE.js} +9 -9
- package/dist/bundle/chunk-UUVWAVKN.js +80 -0
- package/dist/bundle/{chunk-DYRISFHZ.js → chunk-V3ZTAAJ6.js} +19 -9
- package/dist/bundle/{chunk-Q6MISDKJ.js → chunk-VAW7QGJA.js} +3 -3
- package/dist/bundle/{chunk-L6FM5RQY.js → chunk-VQTYJ6XH.js} +3 -3
- package/dist/bundle/{chunk-BIKHHFD2.js → chunk-VXD65V67.js} +1395 -1529
- package/dist/bundle/{chunk-XTCAWNBP.js → chunk-WHXYPLUE.js} +4 -4
- package/dist/bundle/chunk-WIX6BFRF.js +353 -0
- package/dist/bundle/{chunk-JJX4HKDV.js → chunk-WKNYNK7W.js} +4 -4
- package/dist/bundle/{chunk-NMETTKCV.js → chunk-XWKUGAG6.js} +14 -14
- package/dist/bundle/{chunk-3UONR5HW.js → chunk-XYQVVW4R.js} +1 -1
- package/dist/bundle/{chunk-RMX2WPWS.js → chunk-Y7XJA4EW.js} +4 -4
- package/dist/bundle/{chunk-Z3CPZ4I4.js → chunk-YIIGF643.js} +306 -306
- package/dist/bundle/{chunk-PMO2Z6DQ.js → chunk-YISJJNXT.js} +3 -3
- package/dist/bundle/{chunk-UX4JZMA4.js → chunk-YJKXCINQ.js} +28 -3
- package/dist/bundle/{chunk-U5N2PKKM.js → chunk-YNWBRDBX.js} +2 -2
- package/dist/bundle/{chunk-ZPZT46O6.js → chunk-YRDQ54G5.js} +33 -10
- package/dist/bundle/{chunk-VN7TKMOW.js → chunk-YUDVRFXN.js} +1 -1
- package/dist/bundle/{chunk-6I4C4ZFT.js → chunk-ZFRYFDZN.js} +2 -2
- package/dist/bundle/{chunk-IQWBGMCR.js → chunk-ZLYICF6A.js} +4 -4
- package/dist/bundle/{chunk-G5VH4WUF.js → chunk-ZMAPXIGC.js} +2 -2
- package/dist/bundle/{chunk-6MDL2LZA.js → chunk-ZNAX7GUV.js} +8 -8
- package/dist/bundle/{cli-QNBYDOKV.js → cli-WTGAGSXV.js} +142 -97
- package/dist/bundle/command-contract-3IKVWPDL.js +45 -0
- package/dist/bundle/{command-server-entry-WMA4SWJ5.js → command-server-entry-47CAYN3E.js} +35 -35
- package/dist/bundle/config-ZOGOKGTU.js +116 -0
- package/dist/bundle/{decode-7PXUXNIP.js → decode-2G7QS5IQ.js} +6 -6
- package/dist/bundle/{dispatch-AWDROXWN.js → dispatch-ZAP3KBVJ.js} +9 -9
- package/dist/bundle/dist-PAKDDIBT.js +191 -0
- package/dist/bundle/{dist-TSBH4FOU.js → dist-WY6R3WH7.js} +21 -21
- package/dist/bundle/{echarts-WIDIUEO6.js → echarts-YRRVLEX3.js} +2 -2
- package/dist/bundle/{embed-EIRVQF5E.js → embed-B5H3OW2O.js} +7 -7
- package/dist/bundle/{embedder-MXPM6OXK.js → embedder-3O73SP6Y.js} +10 -10
- package/dist/bundle/{failure-JZW73RP7.js → failure-EYGW7JMC.js} +3 -3
- package/dist/bundle/first-run-MPKMDEMA.js +29 -0
- package/dist/bundle/first-screen-AIAAC3KF.js +45 -0
- package/dist/bundle/{folders-TGFOE7DY.js → folders-4CGFWM6H.js} +5 -5
- package/dist/bundle/{instructions-D5LNE6NJ.js → instructions-AG7SRWTR.js} +1 -1
- package/dist/bundle/{main-OHW5Z56X.js → main-DOGY6FJP.js} +24 -24
- package/dist/bundle/{mcp-RGNRW77S.js → mcp-YGOAUNC3.js} +2 -2
- package/dist/bundle/meeting-combined-YKPKTKGA.js +26 -0
- package/dist/bundle/meeting-model-HTXSGHNM.js +26 -0
- package/dist/bundle/{meeting-semantic-FYOVY4S2.js → meeting-semantic-FOEBWV3P.js} +8 -8
- package/dist/bundle/{meetings-WI4SXPBJ.js → meetings-PVE4C2NF.js} +7 -7
- package/dist/bundle/{node-UEWUFR7N.js → node-GJQYN4FT.js} +2 -2
- package/dist/bundle/{node-sqlite-FJWKJHYU.js → node-sqlite-MLRYKVCQ.js} +8 -8
- package/dist/bundle/oauth-AC55C6SG.js +20 -0
- package/dist/bundle/{open-EFYTWUGC.js → open-3LGTYP6M.js} +6 -6
- package/dist/bundle/openai-E2MSLVIX.js +28 -0
- package/dist/bundle/{output-file-J4SU6X4I.js → output-file-FXMTTLOI.js} +6 -6
- package/dist/bundle/{process-U5PLNIDC.js → process-MEKCZMX3.js} +1 -1
- package/dist/bundle/{program-3JICCSA6.js → program-E5BSSIGY.js} +164 -155
- package/dist/bundle/{prompt-YPDMSOKC.js → prompt-AIA6QSZK.js} +6 -6
- package/dist/bundle/{recognize-Z2SSWUKH.js → recognize-M57VNTEV.js} +5 -5
- package/dist/bundle/{remote-R5HMDHOG.js → remote-3OTENZ7Z.js} +11 -11
- package/dist/bundle/{rerank-6NGBEMQ2.js → rerank-P5WHDFDU.js} +8 -8
- package/dist/bundle/run-log-EOQ4EQDS.js +143 -0
- package/dist/bundle/{serve-CU3RMWU7.js → serve-BRLC2QVV.js} +11 -11
- package/dist/bundle/{server-SOQSVX2Q.js → server-25NF7DMS.js} +80 -69
- package/dist/bundle/server-EW2RL2EL.js +93 -0
- package/dist/bundle/{services-LROZ3RDT.js → services-MJE43OGD.js} +54 -52
- package/dist/bundle/{speech-AS77HFIF.js → speech-4AVCWTQH.js} +28 -28
- package/dist/bundle/{sqlite-runtime-U25NS6BK.js → sqlite-runtime-U4TQXWMC.js} +7 -7
- package/dist/bundle/{state-CPEVKK66.js → state-GNUGVMY7.js} +7 -7
- package/dist/bundle/{store-6CHRMJM7.js → store-KBFZVQWF.js} +31 -24
- package/dist/bundle/{store-QKHCZOYR.js → store-MHVBFUBB.js} +27 -26
- package/dist/bundle/store-connection-SKRUAI4L.js +109 -0
- package/dist/bundle/store-maintenance-command-G6EXJSHJ.js +81 -0
- package/dist/bundle/{streaming-VDJOYGMO.js → streaming-6F7AFEHD.js} +7 -7
- package/dist/bundle/surface-DWEWB5RG.js +79 -0
- package/dist/bundle/{tokens-JBN2OHQB.js → tokens-BB4MQBLH.js} +11 -10
- package/dist/bundle/zm.js +9 -9
- package/dist/bundle/{zoom-app-Q4IKYNG3.js → zoom-app-YTGOZ2FS.js} +8 -8
- package/dist/commands.d.ts +1 -0
- package/dist/commands.d.ts.map +1 -1
- package/dist/commands.js +8 -2
- package/dist/commands.js.map +1 -1
- package/dist/setup-commands.d.ts +1 -1
- package/dist/setup-commands.d.ts.map +1 -1
- package/dist/setup-commands.js +31 -5
- package/dist/setup-commands.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/dist/zoom-api/types.d.ts +5 -0
- package/dist/zoom-api/types.d.ts.map +1 -1
- package/package.json +3 -3
- package/dist/bundle/answer-policy-7PYXHK2I.js +0 -122
- package/dist/bundle/chunk-3BTRJYIT.js +0 -729
- package/dist/bundle/command-contract-CT6MV6YG.js +0 -45
- package/dist/bundle/config-ZFQFDEVL.js +0 -109
- package/dist/bundle/first-run-K6EHRAIM.js +0 -29
- package/dist/bundle/first-screen-C6AF4KT4.js +0 -45
- package/dist/bundle/meeting-combined-3OKFXZNA.js +0 -26
- package/dist/bundle/meeting-model-4XNF725D.js +0 -26
- package/dist/bundle/oauth-KOONTGLW.js +0 -20
- package/dist/bundle/openai-6Y2JRDNY.js +0 -28
- package/dist/bundle/run-log-LG3TI3WI.js +0 -136
- package/dist/bundle/server-X7JYRMKX.js +0 -85
- package/dist/bundle/store-connection-FCDVOPWB.js +0 -102
- package/dist/bundle/store-maintenance-command-6HVOAHOZ.js +0 -77
|
@@ -19,14 +19,14 @@ import {
|
|
|
19
19
|
string,
|
|
20
20
|
text,
|
|
21
21
|
unknown
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-YRDQ54G5.js";
|
|
23
23
|
import {
|
|
24
24
|
CliError,
|
|
25
25
|
isCliError
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-UHMJSSQO.js";
|
|
27
27
|
import {
|
|
28
28
|
visibleControls
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-2GNGR265.js";
|
|
30
30
|
import {
|
|
31
31
|
__commonJS,
|
|
32
32
|
__name,
|
|
@@ -1899,7 +1899,7 @@ var require_cli_table3 = __commonJS({
|
|
|
1899
1899
|
}
|
|
1900
1900
|
});
|
|
1901
1901
|
|
|
1902
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
1902
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/result-fields.js
|
|
1903
1903
|
var forbidden = /* @__PURE__ */ new Set(["__proto__", "prototype", "constructor"]);
|
|
1904
1904
|
var validate = /* @__PURE__ */ __name((paths) => {
|
|
1905
1905
|
if (paths.length === 0 || paths.length > 128 || paths.some((path) => path.length > 256 || !/^[A-Za-z][A-Za-z0-9_]*(?:\.[A-Za-z][A-Za-z0-9_]*)*$/.test(path) || path.split(".").some((part) => forbidden.has(part))))
|
|
@@ -1964,7 +1964,7 @@ var projectFields = /* @__PURE__ */ __name((value, fields) => {
|
|
|
1964
1964
|
return project(value, fields);
|
|
1965
1965
|
}, "projectFields");
|
|
1966
1966
|
|
|
1967
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
1967
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/batch.js
|
|
1968
1968
|
var BATCH_LIMITS = Object.freeze({
|
|
1969
1969
|
requests: 32,
|
|
1970
1970
|
input_bytes: 262144,
|
|
@@ -2111,7 +2111,7 @@ var runBatch = /* @__PURE__ */ __name(async (requests, options = {}) => {
|
|
|
2111
2111
|
};
|
|
2112
2112
|
}, "runBatch");
|
|
2113
2113
|
|
|
2114
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2114
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/config.js
|
|
2115
2115
|
import { randomBytes } from "node:crypto";
|
|
2116
2116
|
import { mkdirSync, readFileSync, renameSync, rmSync, writeFileSync } from "node:fs";
|
|
2117
2117
|
import { dirname, join } from "node:path";
|
|
@@ -2155,7 +2155,7 @@ var saveConfigFile = /* @__PURE__ */ __name((path, config) => {
|
|
|
2155
2155
|
`, 384);
|
|
2156
2156
|
}, "saveConfigFile");
|
|
2157
2157
|
|
|
2158
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2158
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/keyring.js
|
|
2159
2159
|
import { createRequire } from "node:module";
|
|
2160
2160
|
var ENTRY_OPTIONS = { linux: { store: "secret-service" } };
|
|
2161
2161
|
var require2 = createRequire(new URL("keyring.js", import.meta.resolve("@wirecat/cli-base")).href);
|
|
@@ -2181,7 +2181,7 @@ var systemKeyring = {
|
|
|
2181
2181
|
delete: /* @__PURE__ */ __name((service, account) => entry(service, account).deletePassword(), "delete")
|
|
2182
2182
|
};
|
|
2183
2183
|
|
|
2184
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2184
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/paths.js
|
|
2185
2185
|
import { realpathSync } from "node:fs";
|
|
2186
2186
|
import { homedir, userInfo } from "node:os";
|
|
2187
2187
|
import { join as join2, posix, win32 } from "node:path";
|
|
@@ -2255,9 +2255,10 @@ var homeIsMoved = /* @__PURE__ */ __name(({ env = process.env, platform = proces
|
|
|
2255
2255
|
var isMovedRun = /* @__PURE__ */ __name((options) => pathsAreOverridden(options) || homeIsMoved(options), "isMovedRun");
|
|
2256
2256
|
var configFilePath = /* @__PURE__ */ __name((configDir, fileName = "config.json") => join2(configDir, fileName), "configFilePath");
|
|
2257
2257
|
|
|
2258
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2258
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/credentials.js
|
|
2259
2259
|
import { readFileSync as readFileSync2 } from "node:fs";
|
|
2260
2260
|
import { join as join3, resolve } from "node:path";
|
|
2261
|
+
var keyringService = /* @__PURE__ */ __name((service, _configDir, _isolated) => service, "keyringService");
|
|
2261
2262
|
var movedRunService = /* @__PURE__ */ __name((service, configDir) => `${service}:${resolve(configDir)}`, "movedRunService");
|
|
2262
2263
|
var warnedRuns = /* @__PURE__ */ new WeakSet();
|
|
2263
2264
|
var Credentials = class {
|
|
@@ -2401,10 +2402,10 @@ var Credentials = class {
|
|
|
2401
2402
|
}
|
|
2402
2403
|
};
|
|
2403
2404
|
|
|
2404
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2405
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/logging.js
|
|
2405
2406
|
import { appendFileSync } from "node:fs";
|
|
2406
2407
|
|
|
2407
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2408
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/log.js
|
|
2408
2409
|
var LOG_SEVERITIES = ["trace", "debug", "info", "warn", "error", "fatal"];
|
|
2409
2410
|
var logRecordSchema = strictObject({
|
|
2410
2411
|
time: isoTime,
|
|
@@ -2482,7 +2483,7 @@ var traceIdOf = /* @__PURE__ */ __name((traceparent) => {
|
|
|
2482
2483
|
return traceId;
|
|
2483
2484
|
}, "traceIdOf");
|
|
2484
2485
|
|
|
2485
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2486
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/logging.js
|
|
2486
2487
|
var REDACTED_FIELDS = [
|
|
2487
2488
|
"authorization",
|
|
2488
2489
|
"Authorization",
|
|
@@ -2576,7 +2577,7 @@ var silent = {
|
|
|
2576
2577
|
}, "error")
|
|
2577
2578
|
};
|
|
2578
2579
|
|
|
2579
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2580
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/output-buffer.js
|
|
2580
2581
|
var createOutputBuffer = /* @__PURE__ */ __name(({ maxOutputBytes = 4 * 1024 * 1024, fields, format } = {}) => {
|
|
2581
2582
|
if (!Number.isSafeInteger(maxOutputBytes) || maxOutputBytes < 0)
|
|
2582
2583
|
throw new CliError("validation_error", "maxOutputBytes must be a nonnegative whole byte count");
|
|
@@ -2637,7 +2638,64 @@ var createOutputBuffer = /* @__PURE__ */ __name(({ maxOutputBytes = 4 * 1024 * 1
|
|
|
2637
2638
|
};
|
|
2638
2639
|
}, "createOutputBuffer");
|
|
2639
2640
|
|
|
2640
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2641
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/drain.js
|
|
2642
|
+
var waitForDrain = /* @__PURE__ */ __name((stream, signal) => {
|
|
2643
|
+
if (signal?.aborted)
|
|
2644
|
+
return Promise.reject(signal.reason);
|
|
2645
|
+
if (stream.destroyed)
|
|
2646
|
+
return Promise.reject(new Error("output stream closed"));
|
|
2647
|
+
if (!stream.writableNeedDrain)
|
|
2648
|
+
return Promise.resolve();
|
|
2649
|
+
return new Promise((resolve2, reject) => {
|
|
2650
|
+
const cleanup = /* @__PURE__ */ __name(() => {
|
|
2651
|
+
stream.off("drain", drained).off("error", failed).off("close", closed);
|
|
2652
|
+
signal?.removeEventListener("abort", aborted);
|
|
2653
|
+
}, "cleanup");
|
|
2654
|
+
const drained = /* @__PURE__ */ __name(() => {
|
|
2655
|
+
cleanup();
|
|
2656
|
+
resolve2();
|
|
2657
|
+
}, "drained");
|
|
2658
|
+
const failed = /* @__PURE__ */ __name((error) => {
|
|
2659
|
+
cleanup();
|
|
2660
|
+
reject(error);
|
|
2661
|
+
}, "failed");
|
|
2662
|
+
const closed = /* @__PURE__ */ __name(() => failed(new Error("output stream closed before drain")), "closed");
|
|
2663
|
+
const aborted = /* @__PURE__ */ __name(() => failed(signal?.reason), "aborted");
|
|
2664
|
+
stream.once("drain", drained).once("error", failed).once("close", closed);
|
|
2665
|
+
signal?.addEventListener("abort", aborted, { once: true });
|
|
2666
|
+
});
|
|
2667
|
+
}, "waitForDrain");
|
|
2668
|
+
|
|
2669
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/streams.js
|
|
2670
|
+
var processStreams = {
|
|
2671
|
+
drain: /* @__PURE__ */ __name(async (signal) => {
|
|
2672
|
+
await Promise.all([waitForDrain(process.stdout, signal), waitForDrain(process.stderr, signal)]);
|
|
2673
|
+
}, "drain"),
|
|
2674
|
+
data: /* @__PURE__ */ __name((text2) => {
|
|
2675
|
+
process.stdout.write(`${text2}
|
|
2676
|
+
`);
|
|
2677
|
+
}, "data"),
|
|
2678
|
+
diagnostic: /* @__PURE__ */ __name((text2) => {
|
|
2679
|
+
process.stderr.write(`${text2}
|
|
2680
|
+
`);
|
|
2681
|
+
}, "diagnostic"),
|
|
2682
|
+
progress: /* @__PURE__ */ __name((text2) => {
|
|
2683
|
+
process.stderr.write(`\r${text2.padEnd(72)}${text2 === "" ? "\r" : ""}`);
|
|
2684
|
+
}, "progress")
|
|
2685
|
+
};
|
|
2686
|
+
var captureStreams = /* @__PURE__ */ __name(() => {
|
|
2687
|
+
const stdout = [];
|
|
2688
|
+
const stderr = [];
|
|
2689
|
+
return {
|
|
2690
|
+
stdout,
|
|
2691
|
+
stderr,
|
|
2692
|
+
data: /* @__PURE__ */ __name((text2) => stdout.push(text2), "data"),
|
|
2693
|
+
diagnostic: /* @__PURE__ */ __name((text2) => stderr.push(text2), "diagnostic"),
|
|
2694
|
+
progress: /* @__PURE__ */ __name((text2) => stderr.push(text2), "progress")
|
|
2695
|
+
};
|
|
2696
|
+
}, "captureStreams");
|
|
2697
|
+
|
|
2698
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/retry.js
|
|
2641
2699
|
var DEFAULT_RETRY = {
|
|
2642
2700
|
retries: 1,
|
|
2643
2701
|
baseDelayMs: 250,
|
|
@@ -2649,7 +2707,7 @@ var backoffMs = /* @__PURE__ */ __name((attempt, config, random) => {
|
|
|
2649
2707
|
return Math.round(random() * ceiling);
|
|
2650
2708
|
}, "backoffMs");
|
|
2651
2709
|
|
|
2652
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2710
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/constants.js
|
|
2653
2711
|
import { fileURLToPath } from "node:url";
|
|
2654
2712
|
var BASE_CONSTANTS = new URL("../constants.json", new URL("constants.js", import.meta.resolve("@wirecat/cli-base")).href);
|
|
2655
2713
|
var baseConstantsSchema = object({});
|
|
@@ -2704,7 +2762,7 @@ var loadConstants = /* @__PURE__ */ __name((layers, schema) => {
|
|
|
2704
2762
|
return deepFreeze(result.output);
|
|
2705
2763
|
}, "loadConstants");
|
|
2706
2764
|
|
|
2707
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2765
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/time.js
|
|
2708
2766
|
var abortError = /* @__PURE__ */ __name(() => new DOMException("The operation was aborted.", "AbortError"), "abortError");
|
|
2709
2767
|
var realSleep = /* @__PURE__ */ __name((ms, signal) => new Promise((resolve2, reject) => {
|
|
2710
2768
|
if (signal?.aborted) {
|
|
@@ -2719,7 +2777,7 @@ var realSleep = /* @__PURE__ */ __name((ms, signal) => new Promise((resolve2, re
|
|
|
2719
2777
|
}), "realSleep");
|
|
2720
2778
|
var wallClock = /* @__PURE__ */ __name(() => /* @__PURE__ */ new Date(), "wallClock");
|
|
2721
2779
|
|
|
2722
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2780
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/deadline.js
|
|
2723
2781
|
var createDeadline = /* @__PURE__ */ __name(({ timeoutMs, signal, sleep = realSleep } = {}) => {
|
|
2724
2782
|
if (timeoutMs !== void 0 && (!Number.isSafeInteger(timeoutMs) || timeoutMs < 0 || timeoutMs > 2147483647))
|
|
2725
2783
|
throw new CliError("validation_error", "timeoutMs must be an integer from zero through 2147483647");
|
|
@@ -2803,7 +2861,7 @@ var createDeadline = /* @__PURE__ */ __name(({ timeoutMs, signal, sleep = realSl
|
|
|
2803
2861
|
};
|
|
2804
2862
|
}, "createDeadline");
|
|
2805
2863
|
|
|
2806
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2864
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/pretty.js
|
|
2807
2865
|
var import_cli_table3 = __toESM(require_cli_table3(), 1);
|
|
2808
2866
|
import { styleText } from "node:util";
|
|
2809
2867
|
var renderPretty = /* @__PURE__ */ __name((value, options) => {
|
|
@@ -2878,64 +2936,7 @@ var BORDERLESS = {
|
|
|
2878
2936
|
middle: ""
|
|
2879
2937
|
};
|
|
2880
2938
|
|
|
2881
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2882
|
-
var waitForDrain = /* @__PURE__ */ __name((stream, signal) => {
|
|
2883
|
-
if (signal?.aborted)
|
|
2884
|
-
return Promise.reject(signal.reason);
|
|
2885
|
-
if (stream.destroyed)
|
|
2886
|
-
return Promise.reject(new Error("output stream closed"));
|
|
2887
|
-
if (!stream.writableNeedDrain)
|
|
2888
|
-
return Promise.resolve();
|
|
2889
|
-
return new Promise((resolve2, reject) => {
|
|
2890
|
-
const cleanup = /* @__PURE__ */ __name(() => {
|
|
2891
|
-
stream.off("drain", drained).off("error", failed).off("close", closed);
|
|
2892
|
-
signal?.removeEventListener("abort", aborted);
|
|
2893
|
-
}, "cleanup");
|
|
2894
|
-
const drained = /* @__PURE__ */ __name(() => {
|
|
2895
|
-
cleanup();
|
|
2896
|
-
resolve2();
|
|
2897
|
-
}, "drained");
|
|
2898
|
-
const failed = /* @__PURE__ */ __name((error) => {
|
|
2899
|
-
cleanup();
|
|
2900
|
-
reject(error);
|
|
2901
|
-
}, "failed");
|
|
2902
|
-
const closed = /* @__PURE__ */ __name(() => failed(new Error("output stream closed before drain")), "closed");
|
|
2903
|
-
const aborted = /* @__PURE__ */ __name(() => failed(signal?.reason), "aborted");
|
|
2904
|
-
stream.once("drain", drained).once("error", failed).once("close", closed);
|
|
2905
|
-
signal?.addEventListener("abort", aborted, { once: true });
|
|
2906
|
-
});
|
|
2907
|
-
}, "waitForDrain");
|
|
2908
|
-
|
|
2909
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/streams.js
|
|
2910
|
-
var processStreams = {
|
|
2911
|
-
drain: /* @__PURE__ */ __name(async (signal) => {
|
|
2912
|
-
await Promise.all([waitForDrain(process.stdout, signal), waitForDrain(process.stderr, signal)]);
|
|
2913
|
-
}, "drain"),
|
|
2914
|
-
data: /* @__PURE__ */ __name((text2) => {
|
|
2915
|
-
process.stdout.write(`${text2}
|
|
2916
|
-
`);
|
|
2917
|
-
}, "data"),
|
|
2918
|
-
diagnostic: /* @__PURE__ */ __name((text2) => {
|
|
2919
|
-
process.stderr.write(`${text2}
|
|
2920
|
-
`);
|
|
2921
|
-
}, "diagnostic"),
|
|
2922
|
-
progress: /* @__PURE__ */ __name((text2) => {
|
|
2923
|
-
process.stderr.write(`\r${text2.padEnd(72)}${text2 === "" ? "\r" : ""}`);
|
|
2924
|
-
}, "progress")
|
|
2925
|
-
};
|
|
2926
|
-
var captureStreams = /* @__PURE__ */ __name(() => {
|
|
2927
|
-
const stdout = [];
|
|
2928
|
-
const stderr = [];
|
|
2929
|
-
return {
|
|
2930
|
-
stdout,
|
|
2931
|
-
stderr,
|
|
2932
|
-
data: /* @__PURE__ */ __name((text2) => stdout.push(text2), "data"),
|
|
2933
|
-
diagnostic: /* @__PURE__ */ __name((text2) => stderr.push(text2), "diagnostic"),
|
|
2934
|
-
progress: /* @__PURE__ */ __name((text2) => stderr.push(text2), "progress")
|
|
2935
|
-
};
|
|
2936
|
-
}, "captureStreams");
|
|
2937
|
-
|
|
2938
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/renderer.js
|
|
2939
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/renderer.js
|
|
2939
2940
|
var createRenderer = /* @__PURE__ */ __name(({ format, color, streams = processStreams, quiet = false }) => {
|
|
2940
2941
|
const mark = /* @__PURE__ */ __name((symbol, message) => format === "pretty" ? `${symbol} ${visibleControls(message)}` : visibleControls(message), "mark");
|
|
2941
2942
|
const say = /* @__PURE__ */ __name((symbol) => (message) => {
|
|
@@ -2991,6 +2992,7 @@ export {
|
|
|
2991
2992
|
pathsAreOverridden,
|
|
2992
2993
|
isMovedRun,
|
|
2993
2994
|
configFilePath,
|
|
2995
|
+
keyringService,
|
|
2994
2996
|
Credentials,
|
|
2995
2997
|
realSleep,
|
|
2996
2998
|
wallClock,
|
|
@@ -2,31 +2,31 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
updateCommand
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-Y7XJA4EW.js";
|
|
6
6
|
import {
|
|
7
7
|
QUESTIONS,
|
|
8
8
|
readSetupAnswers,
|
|
9
9
|
unanswered,
|
|
10
10
|
writeSetupAnswers
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-ZLYICF6A.js";
|
|
12
12
|
import {
|
|
13
13
|
DEFAULT_STEMMERS,
|
|
14
14
|
LANGUAGES
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-NQGGTO3B.js";
|
|
16
16
|
import {
|
|
17
17
|
sharedConfigPath
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-ZNAX7GUV.js";
|
|
19
19
|
import {
|
|
20
20
|
installerOf
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-HVXOA4FO.js";
|
|
22
22
|
import {
|
|
23
23
|
storePath
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-JKEMW6E4.js";
|
|
25
25
|
import {
|
|
26
26
|
__name
|
|
27
27
|
} from "./chunk-ZVVMGPBJ.js";
|
|
28
28
|
|
|
29
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29
|
+
// 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/first-run.js
|
|
30
30
|
import { spawnSync } from "node:child_process";
|
|
31
31
|
import { accessSync, constants, realpathSync } from "node:fs";
|
|
32
32
|
import { delimiter, join } from "node:path";
|
|
@@ -84,7 +84,7 @@ var suggested = /* @__PURE__ */ __name((env, contentLanguages) => {
|
|
|
84
84
|
return (own.length ? own : LANGUAGES.filter(({ code }) => code === "en" || code === system)).map(({ name }) => name);
|
|
85
85
|
}, "suggested");
|
|
86
86
|
var askLanguages = /* @__PURE__ */ __name(async ({ command, env, io, contentLanguages }) => {
|
|
87
|
-
const { openStore } = await import("./store-
|
|
87
|
+
const { openStore } = await import("./store-KBFZVQWF.js");
|
|
88
88
|
const store = await openStore({ env });
|
|
89
89
|
let rebuild = false;
|
|
90
90
|
try {
|
|
@@ -113,8 +113,8 @@ var askLanguages = /* @__PURE__ */ __name(async ({ command, env, io, contentLang
|
|
|
113
113
|
if (!rebuild)
|
|
114
114
|
return;
|
|
115
115
|
const [{ openCache }, { buildStems }] = await Promise.all([
|
|
116
|
-
import("./open-
|
|
117
|
-
import("./store-maintenance-command-
|
|
116
|
+
import("./open-3LGTYP6M.js"),
|
|
117
|
+
import("./store-maintenance-command-G6EXJSHJ.js")
|
|
118
118
|
]);
|
|
119
119
|
const database = await openCache(storePath(env));
|
|
120
120
|
try {
|
|
@@ -126,7 +126,7 @@ var askLanguages = /* @__PURE__ */ __name(async ({ command, env, io, contentLang
|
|
|
126
126
|
var askTools = /* @__PURE__ */ __name(async (run) => {
|
|
127
127
|
const { command, env, io } = run;
|
|
128
128
|
const installed = run.installed ?? ((name) => onPath(name, env));
|
|
129
|
-
const { WIRECAT_TOOLS } = await import("./first-screen-
|
|
129
|
+
const { WIRECAT_TOOLS } = await import("./first-screen-AIAAC3KF.js");
|
|
130
130
|
const others = WIRECAT_TOOLS.filter((tool) => tool.command !== command);
|
|
131
131
|
const missing = others.filter((tool) => !installed(tool.command));
|
|
132
132
|
io.say("Other WireCat tools \u2014 they share this store, so one search finds everything:");
|
|
@@ -200,7 +200,7 @@ var setupAtStart = /* @__PURE__ */ __name(async (start) => {
|
|
|
200
200
|
// `setup describe` and `setup apply` are a program's; only the bare walk-through asks everything again.
|
|
201
201
|
all: start.path.length === 1 && start.path[0] === "setup",
|
|
202
202
|
io: {
|
|
203
|
-
ask: /* @__PURE__ */ __name(async (prompt) => (await import("./prompt-
|
|
203
|
+
ask: /* @__PURE__ */ __name(async (prompt) => (await import("./prompt-AIA6QSZK.js")).readSecret(prompt, { input, echo: true }), "ask"),
|
|
204
204
|
say: /* @__PURE__ */ __name((text) => process.stderr.write(`${text}
|
|
205
205
|
`), "say")
|
|
206
206
|
}
|
|
@@ -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.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/http/time-limit.js
|
|
8
8
|
var timeLimit = /* @__PURE__ */ __name((ms) => {
|
|
9
9
|
const controller = new AbortController();
|
|
10
10
|
const timer = setTimeout(() => controller.abort(new DOMException("The operation timed out.", "TimeoutError")), ms);
|
|
@@ -2,15 +2,15 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
normalize
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-2Z7UOXFC.js";
|
|
6
6
|
import {
|
|
7
7
|
CliError
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-UHMJSSQO.js";
|
|
9
9
|
import {
|
|
10
10
|
__name
|
|
11
11
|
} from "./chunk-ZVVMGPBJ.js";
|
|
12
12
|
|
|
13
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
13
|
+
// 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/search/languages.js
|
|
14
14
|
var LANGUAGES = [
|
|
15
15
|
{ name: "russian", code: "ru", label: "Russian", script: "cyrillic", dictionary: "dictionary-ru" },
|
|
16
16
|
{ name: "english", code: "en", label: "English", script: "latin", dictionary: "dictionary-en" },
|
|
@@ -18,7 +18,7 @@ var LANGUAGES = [
|
|
|
18
18
|
];
|
|
19
19
|
var languagesOf = /* @__PURE__ */ __name((script) => LANGUAGES.filter((one) => one.script === script).map(({ name }) => name), "languagesOf");
|
|
20
20
|
|
|
21
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21
|
+
// 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/search/snowball/base-stemmer.js
|
|
22
22
|
var BaseStemmer = class {
|
|
23
23
|
static {
|
|
24
24
|
__name(this, "BaseStemmer");
|
|
@@ -393,7 +393,7 @@ var BaseStemmer = class {
|
|
|
393
393
|
}
|
|
394
394
|
};
|
|
395
395
|
|
|
396
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
396
|
+
// 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/search/snowball/english-stemmer.js
|
|
397
397
|
var a_0 = [
|
|
398
398
|
["arsen", -1],
|
|
399
399
|
["commun", -1],
|
|
@@ -1094,7 +1094,7 @@ var english_stemmer_default = class extends BaseStemmer {
|
|
|
1094
1094
|
stemWord = this.stem;
|
|
1095
1095
|
};
|
|
1096
1096
|
|
|
1097
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1097
|
+
// 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/search/snowball/russian-stemmer.js
|
|
1098
1098
|
var a_02 = [
|
|
1099
1099
|
["\u0432", 1],
|
|
1100
1100
|
["\u0438\u0432", 2, 1],
|
|
@@ -1517,7 +1517,7 @@ var russian_stemmer_default = class extends BaseStemmer {
|
|
|
1517
1517
|
stemWord = this.stem;
|
|
1518
1518
|
};
|
|
1519
1519
|
|
|
1520
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1520
|
+
// 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/search/snowball/spanish-stemmer.js
|
|
1521
1521
|
var a_03 = [
|
|
1522
1522
|
["", 6],
|
|
1523
1523
|
["\xE1", 1, 1],
|
|
@@ -2193,7 +2193,7 @@ var spanish_stemmer_default = class extends BaseStemmer {
|
|
|
2193
2193
|
stemWord = this.stem;
|
|
2194
2194
|
};
|
|
2195
2195
|
|
|
2196
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2196
|
+
// 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/search/stem.js
|
|
2197
2197
|
var SNOWBALL_VERSION = "3.1.1";
|
|
2198
2198
|
var CYRILLIC_STEMMERS = [...languagesOf("cyrillic"), "none"];
|
|
2199
2199
|
var LATIN_STEMMERS = [...languagesOf("latin"), "none"];
|
|
@@ -2,15 +2,15 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
PRAGMAS
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-FMMYBVCH.js";
|
|
6
6
|
import {
|
|
7
7
|
CliError
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-UHMJSSQO.js";
|
|
9
9
|
import {
|
|
10
10
|
__name
|
|
11
11
|
} from "./chunk-ZVVMGPBJ.js";
|
|
12
12
|
|
|
13
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
13
|
+
// 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/store/sqlite-warning.js
|
|
14
14
|
var SQLITE_WARNING = "SQLite is an experimental feature";
|
|
15
15
|
var quieted = /* @__PURE__ */ new WeakSet();
|
|
16
16
|
var quietSqliteWarning = /* @__PURE__ */ __name((host = process) => {
|
|
@@ -31,7 +31,7 @@ var isSqliteWarning = /* @__PURE__ */ __name((warning, options) => {
|
|
|
31
31
|
return name === "ExperimentalWarning" && message.startsWith(SQLITE_WARNING);
|
|
32
32
|
}, "isSqliteWarning");
|
|
33
33
|
|
|
34
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34
|
+
// 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/store/open.js
|
|
35
35
|
var openCache = /* @__PURE__ */ __name(async (path) => {
|
|
36
36
|
const database = await openFile(path);
|
|
37
37
|
try {
|
|
@@ -44,12 +44,12 @@ var openCache = /* @__PURE__ */ __name(async (path) => {
|
|
|
44
44
|
}, "openCache");
|
|
45
45
|
var openFile = /* @__PURE__ */ __name((path) => "Bun" in globalThis ? openUnderBun(path) : openUnderNode(path), "openFile");
|
|
46
46
|
var openUnderBun = /* @__PURE__ */ __name(async (path) => {
|
|
47
|
-
const { openWithBunSqlite } = await import("./bun-sqlite-
|
|
47
|
+
const { openWithBunSqlite } = await import("./bun-sqlite-3NNHTOGM.js");
|
|
48
48
|
return await openWithBunSqlite(path);
|
|
49
49
|
}, "openUnderBun");
|
|
50
50
|
var openUnderNode = /* @__PURE__ */ __name(async (path) => {
|
|
51
51
|
quietSqliteWarning();
|
|
52
|
-
const { openWithNodeSqlite } = await import("./node-sqlite-
|
|
52
|
+
const { openWithNodeSqlite } = await import("./node-sqlite-MLRYKVCQ.js");
|
|
53
53
|
return openWithNodeSqlite(path);
|
|
54
54
|
}, "openUnderNode");
|
|
55
55
|
var runtime = /* @__PURE__ */ __name(() => {
|
|
@@ -5,16 +5,16 @@ import {
|
|
|
5
5
|
backoffMs,
|
|
6
6
|
realSleep,
|
|
7
7
|
wallClock
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-N5ROXGY4.js";
|
|
9
9
|
import {
|
|
10
10
|
CliError,
|
|
11
11
|
isCliError
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-UHMJSSQO.js";
|
|
13
13
|
import {
|
|
14
14
|
__name
|
|
15
15
|
} from "./chunk-ZVVMGPBJ.js";
|
|
16
16
|
|
|
17
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
17
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/http/hosts.js
|
|
18
18
|
var LABEL = "[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?";
|
|
19
19
|
var HOST_PATTERN = new RegExp(`^(?:${LABEL}(?:\\.${LABEL})*|\\*\\.${LABEL}(?:\\.${LABEL})+)$`);
|
|
20
20
|
var hostProblems = /* @__PURE__ */ __name((hosts) => [
|
|
@@ -26,7 +26,7 @@ var hostCovered = /* @__PURE__ */ __name((hostname, hosts) => {
|
|
|
26
26
|
return hosts.some((host) => host.startsWith("*.") ? name.endsWith(host.slice(1)) : name === host);
|
|
27
27
|
}, "hostCovered");
|
|
28
28
|
|
|
29
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
29
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/http/fetch.js
|
|
30
30
|
var HOST_FETCH_TIMEOUT_MS = 3e4;
|
|
31
31
|
var REDIRECTS = 5;
|
|
32
32
|
var REDIRECT_STATUSES = /* @__PURE__ */ new Set([301, 302, 303, 307, 308]);
|
|
@@ -61,6 +61,17 @@ var checked = /* @__PURE__ */ __name((url, hosts) => {
|
|
|
61
61
|
throw undeclared(url);
|
|
62
62
|
return url;
|
|
63
63
|
}, "checked");
|
|
64
|
+
var ENCODED_SLASH = /%2f|%5c/i;
|
|
65
|
+
var scopeOf = /* @__PURE__ */ __name((scope) => {
|
|
66
|
+
if (scope === void 0)
|
|
67
|
+
return void 0;
|
|
68
|
+
if (!URL.canParse(scope))
|
|
69
|
+
throw new CliError("configuration_error", `credentialScope ${scope} is not a URL`);
|
|
70
|
+
const { origin, pathname } = new URL(scope);
|
|
71
|
+
const prefix = pathname.endsWith("/") ? pathname : `${pathname}/`;
|
|
72
|
+
return (url) => url.origin === origin && (url.pathname === pathname || url.pathname.startsWith(prefix)) && !ENCODED_SLASH.test(url.pathname);
|
|
73
|
+
}, "scopeOf");
|
|
74
|
+
var signedHeaders = /* @__PURE__ */ __name((headers) => CREDENTIAL_HEADERS.some((name) => headers.has(name)), "signedHeaders");
|
|
64
75
|
var NOT_SENT = /* @__PURE__ */ new Set(["EAI_AGAIN", "ENOTFOUND", "ECONNREFUSED"]);
|
|
65
76
|
var neverSent = /* @__PURE__ */ __name((error) => {
|
|
66
77
|
for (let at = error, depth = 0; at instanceof Error && depth < 4; at = at.cause, depth++) {
|
|
@@ -75,6 +86,7 @@ var hostFetch = /* @__PURE__ */ __name((options) => {
|
|
|
75
86
|
if (problems.length > 0)
|
|
76
87
|
throw new CliError("configuration_error", problems.join("; "));
|
|
77
88
|
const { hosts, fetch: send = globalThis.fetch, timeoutMs = HOST_FETCH_TIMEOUT_MS, redirects = REDIRECTS } = options;
|
|
89
|
+
const inScope = scopeOf(options.credentialScope);
|
|
78
90
|
return async (input, init = {}) => {
|
|
79
91
|
const request = input instanceof Request ? input : void 0;
|
|
80
92
|
let url = checked(new URL(request?.url ?? String(input)), hosts);
|
|
@@ -85,6 +97,10 @@ var hostFetch = /* @__PURE__ */ __name((options) => {
|
|
|
85
97
|
let method = (init.method ?? request?.method ?? "GET").toUpperCase();
|
|
86
98
|
let body = init.body ?? request?.body ?? void 0;
|
|
87
99
|
const headers = new Headers(init.headers ?? request?.headers);
|
|
100
|
+
if (inScope && signedHeaders(headers) && !inScope(url))
|
|
101
|
+
throw new CliError("configuration_error", `the sign-in goes only under ${options.credentialScope}, not ${url.origin}${url.pathname}`, {
|
|
102
|
+
sent: false
|
|
103
|
+
});
|
|
88
104
|
let answered = false;
|
|
89
105
|
try {
|
|
90
106
|
let response = await send(input, { ...init, signal, ...follow ? { redirect: "manual" } : {} });
|
|
@@ -105,7 +121,7 @@ var hostFetch = /* @__PURE__ */ __name((options) => {
|
|
|
105
121
|
headers.delete("content-length");
|
|
106
122
|
} else if (body instanceof ReadableStream)
|
|
107
123
|
throw new CliError("invalid_response", `${url.hostname} redirected a streamed body, which cannot be sent again`);
|
|
108
|
-
if (next.origin !== url.origin)
|
|
124
|
+
if (inScope ? !inScope(next) : next.origin !== url.origin)
|
|
109
125
|
for (const name of CREDENTIAL_HEADERS)
|
|
110
126
|
headers.delete(name);
|
|
111
127
|
url = next;
|
|
@@ -128,7 +144,7 @@ var hostFetch = /* @__PURE__ */ __name((options) => {
|
|
|
128
144
|
};
|
|
129
145
|
}, "hostFetch");
|
|
130
146
|
|
|
131
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
147
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/http/body.js
|
|
132
148
|
var interrupted = /* @__PURE__ */ __name((signal) => isCliError(signal.reason) ? signal.reason : new CliError(signal.reason instanceof Error && signal.reason.name === "TimeoutError" ? "timeout" : "cancelled", "HTTP response read was interrupted"), "interrupted");
|
|
133
149
|
var checked2 = /* @__PURE__ */ __name((signal) => {
|
|
134
150
|
if (signal?.aborted)
|
|
@@ -213,7 +229,7 @@ var readJsonResponse = /* @__PURE__ */ __name(async (response, options) => {
|
|
|
213
229
|
}
|
|
214
230
|
}, "readJsonResponse");
|
|
215
231
|
|
|
216
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
232
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/http/index.js
|
|
217
233
|
var parseRetryAfter = /* @__PURE__ */ __name((header, now) => {
|
|
218
234
|
if (!header)
|
|
219
235
|
return void 0;
|