@wirecat/zoom-cli 0.81.0 → 0.83.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/README.md +2 -2
- package/contracts/wirecat.json +54 -54
- package/dist/answers.d.ts +56 -0
- package/dist/answers.d.ts.map +1 -1
- package/dist/api.d.ts.map +1 -1
- package/dist/api.js +1 -1
- package/dist/api.js.map +1 -1
- package/dist/bin/main.js +2 -15
- package/dist/bin/main.js.map +1 -1
- package/dist/bin/zm.js +2 -2
- package/dist/bundle/agent-3HDWEZ5M.js +47 -0
- package/dist/bundle/{all-profiles-3ASMN35R.js → all-profiles-RY2OMSDL.js} +12 -12
- package/dist/bundle/answer-policy-IFVXPPGW.js +131 -0
- package/dist/bundle/{anthropic-XXI53VNI.js → anthropic-36VPSF7B.js} +6 -6
- package/dist/bundle/{app-server-B7WLNZNQ.js → app-server-ZVJVUGB7.js} +79 -76
- package/dist/bundle/{bun-2FLR4IV4.js → bun-F4M4KCNA.js} +2 -2
- package/dist/bundle/{bun-sqlite-3NNHTOGM.js → bun-sqlite-IOPYIUA7.js} +7 -7
- package/dist/bundle/{chunk-L54I45OX.js → chunk-26TW5RZ6.js} +33 -317
- package/dist/bundle/{chunk-JK24A3RP.js → chunk-2DK5BBFF.js} +3 -3
- package/dist/bundle/{chunk-4VOCXLMJ.js → chunk-2IBKKVVZ.js} +6 -6
- package/dist/bundle/{chunk-WKNYNK7W.js → chunk-2S54TM4N.js} +4 -4
- package/dist/bundle/{chunk-WHXYPLUE.js → chunk-3AQHKXVR.js} +4 -4
- package/dist/bundle/{chunk-YISJJNXT.js → chunk-3CW2C7ZA.js} +3 -3
- package/dist/bundle/{chunk-77TJ3AJH.js → chunk-3KUEZK5Z.js} +3 -3
- package/dist/bundle/{chunk-NQGGTO3B.js → chunk-3PXUQFHX.js} +8 -8
- package/dist/bundle/{chunk-N5ROXGY4.js → chunk-3QN5KDFZ.js} +167 -167
- package/dist/bundle/{chunk-AWJQ6FAX.js → chunk-434YFJAE.js} +2 -2
- package/dist/bundle/{chunk-4BU3LRTB.js → chunk-575JMTDR.js} +19 -18
- package/dist/bundle/{chunk-NM5XMKWO.js → chunk-5B2LV4MS.js} +2 -1
- package/dist/bundle/{chunk-3M436OO2.js → chunk-5WL5RHOO.js} +7 -102
- package/dist/bundle/{chunk-PS7HQ5LQ.js → chunk-6C7ESL5N.js} +3 -3
- package/dist/bundle/{chunk-SRUAUMBL.js → chunk-6E4KLYNP.js} +12 -12
- package/dist/bundle/chunk-7JDXR75Q.js +465 -0
- package/dist/bundle/{chunk-L2ERFXB7.js → chunk-AK3H2C65.js} +40 -31
- package/dist/bundle/{chunk-OEQNP56V.js → chunk-AQ5RIOUE.js} +1 -1
- package/dist/bundle/{chunk-35FVYRH5.js → chunk-AQLUAQXJ.js} +37 -180
- package/dist/bundle/{chunk-EPASOAEI.js → chunk-ASTLGFTR.js} +284 -184
- package/dist/bundle/{chunk-YNWBRDBX.js → chunk-ATHBB7OU.js} +2 -2
- package/dist/bundle/{chunk-ZFRYFDZN.js → chunk-B2NM65RD.js} +14 -6
- package/dist/bundle/{chunk-VQTYJ6XH.js → chunk-B4KHDXJE.js} +3 -3
- package/dist/bundle/{chunk-G3DWMG7Y.js → chunk-BAFC7WNI.js} +4 -4
- package/dist/bundle/{chunk-2GNGR265.js → chunk-BBGJQMRI.js} +1 -1
- package/dist/bundle/{chunk-C4BBCSGK.js → chunk-BTLZYRIW.js} +6 -6
- package/dist/bundle/{chunk-T2BHIC37.js → chunk-BZDS2X6Y.js} +65 -65
- package/dist/bundle/{chunk-3UX4VJWD.js → chunk-C7JPYWYQ.js} +3 -4
- package/dist/bundle/{chunk-R4CXFYQN.js → chunk-CDQUW25G.js} +180 -38
- package/dist/bundle/{chunk-YJKXCINQ.js → chunk-CJWGJBHW.js} +274 -60
- package/dist/bundle/{chunk-F2J2FQUB.js → chunk-D7RCUODT.js} +9 -9
- package/dist/bundle/{chunk-AV2ZJ4WX.js → chunk-DNCLQPOM.js} +1 -1
- package/dist/bundle/{chunk-LGESUPKO.js → chunk-DQJECJUE.js} +25 -90
- package/dist/bundle/{chunk-MA4UJNUI.js → chunk-E4JQ3MCW.js} +12 -12
- package/dist/bundle/{chunk-GW2A2FJH.js → chunk-E4ODYLEK.js} +8 -8
- package/dist/bundle/{chunk-Q26UFIH4.js → chunk-EE45N67Q.js} +16 -3
- package/dist/bundle/{chunk-5SEBLX6B.js → chunk-EEEU4MKK.js} +12 -12
- package/dist/bundle/{chunk-YRDQ54G5.js → chunk-ESN3W2MZ.js} +24 -11
- package/dist/bundle/{chunk-M7OYEMLI.js → chunk-ETIZGA4P.js} +7 -7
- package/dist/bundle/{chunk-IVZACJ6X.js → chunk-F44QK6CK.js} +4 -4
- package/dist/bundle/{chunk-JKEMW6E4.js → chunk-FH2UFNH6.js} +2 -2
- package/dist/bundle/{chunk-XYQVVW4R.js → chunk-FTH6WGYO.js} +1 -1
- package/dist/bundle/chunk-FWACRG4X.js +160 -0
- package/dist/bundle/chunk-G5SZL7G2.js +150 -0
- package/dist/bundle/{chunk-GDRFVBCB.js → chunk-G6CHEFAG.js} +2 -2
- package/dist/bundle/{chunk-2ELGSNX3.js → chunk-GHJD7PE6.js} +170 -170
- package/dist/bundle/{chunk-LECMHK2F.js → chunk-GZ7WBU5Y.js} +1 -1
- package/dist/bundle/{chunk-4ZXJ4AZW.js → chunk-H6A4NWYJ.js} +322 -45
- package/dist/bundle/{chunk-D26K6756.js → chunk-HKLRI2LB.js} +6 -6
- package/dist/bundle/{chunk-R6HP2XKD.js → chunk-HMD4FZYY.js} +5 -5
- package/dist/bundle/{chunk-2Z7UOXFC.js → chunk-HO4JGD4Q.js} +1 -1
- package/dist/bundle/chunk-HUAHLO6N.js +29 -0
- package/dist/bundle/{chunk-UHMJSSQO.js → chunk-IANKXHSE.js} +1 -1
- package/dist/bundle/{chunk-QFK52FG6.js → chunk-IQZXFWFI.js} +3 -3
- package/dist/bundle/{chunk-GPRJXJC7.js → chunk-ISQ23VKV.js} +22 -1
- package/dist/bundle/{chunk-ZLYICF6A.js → chunk-JEH33ZCD.js} +4 -4
- package/dist/bundle/{chunk-IDUKCXL7.js → chunk-JUNQYWQ2.js} +13 -9
- package/dist/bundle/{chunk-337ALCXQ.js → chunk-JUXMVQWJ.js} +312 -153
- package/dist/bundle/{chunk-5EWYDHBH.js → chunk-KHQDWYCG.js} +2 -2
- package/dist/bundle/{chunk-FMMYBVCH.js → chunk-KYRYD4CR.js} +1 -1
- package/dist/bundle/chunk-LBGT6W4R.js +377 -0
- package/dist/bundle/{chunk-UUVWAVKN.js → chunk-LN7HRYTH.js} +3 -3
- package/dist/bundle/{chunk-NS3JWBDR.js → chunk-MEB7HBTM.js} +6 -6
- package/dist/bundle/{chunk-K7CTCDYX.js → chunk-MEEFWYX3.js} +6 -6
- package/dist/bundle/{chunk-BQBC2WIG.js → chunk-MNOAMJ6H.js} +1 -1
- package/dist/bundle/{chunk-Y7XJA4EW.js → chunk-MYHPXJDG.js} +4 -4
- package/dist/bundle/{chunk-7JWVPJIP.js → chunk-NGI37RFW.js} +10 -10
- package/dist/bundle/{chunk-437DLSB3.js → chunk-NZMWD7Y3.js} +17227 -13055
- package/dist/bundle/chunk-O6IECJRM.js +54 -0
- package/dist/bundle/{chunk-LVCCZI5A.js → chunk-OBWL3BUV.js} +39 -39
- package/dist/bundle/{chunk-GCAJW4SR.js → chunk-OEEWVKJX.js} +1 -1
- package/dist/bundle/chunk-OGTN2KVG.js +147 -0
- package/dist/bundle/{chunk-B2WBWKYN.js → chunk-OQYZ3W4K.js} +12 -12
- package/dist/bundle/{chunk-IFM4G4MT.js → chunk-P3ZCTYGW.js} +4 -4
- package/dist/bundle/{chunk-VAW7QGJA.js → chunk-PVEBAHFU.js} +3 -3
- package/dist/bundle/{chunk-IYNICUCC.js → chunk-R2B6PUVI.js} +4 -4
- package/dist/bundle/{chunk-D7CDHBDX.js → chunk-R6IA5UQB.js} +1 -1
- package/dist/bundle/{chunk-T7QPZYRZ.js → chunk-RLOH7RDN.js} +7 -7
- package/dist/bundle/{chunk-V3ZTAAJ6.js → chunk-RQ4AXSCJ.js} +8 -8
- package/dist/bundle/{chunk-4BXLHSXY.js → chunk-RYGTCRFZ.js} +2 -2
- package/dist/bundle/{chunk-XWKUGAG6.js → chunk-S4PXWIE4.js} +85 -87
- package/dist/bundle/{chunk-ZMAPXIGC.js → chunk-SDZZYZLL.js} +2 -2
- package/dist/bundle/{chunk-ZNAX7GUV.js → chunk-SHQAYUK6.js} +8 -8
- package/dist/bundle/{chunk-YUDVRFXN.js → chunk-T3W4V4A6.js} +1 -1
- package/dist/bundle/{chunk-F5ZAN7OC.js → chunk-TCT5D2X2.js} +1 -1
- package/dist/bundle/{chunk-EEBSKMEA.js → chunk-TDWPOSPR.js} +12 -12
- package/dist/bundle/{chunk-WIX6BFRF.js → chunk-TER3N27H.js} +8 -8
- package/dist/bundle/{chunk-UMPUY77T.js → chunk-TMTNP7QN.js} +10 -10
- package/dist/bundle/{chunk-BZXHJKKI.js → chunk-TO5UEWXR.js} +2 -2
- 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-RQFRXUI4.js → chunk-UBH7YF3C.js} +200 -112
- package/dist/bundle/{chunk-MBBR7QHI.js → chunk-UEAE3JUU.js} +2641 -1150
- package/dist/bundle/{chunk-2RFWRJFK.js → chunk-UHR363OD.js} +14 -10
- package/dist/bundle/{chunk-RRYHLP3A.js → chunk-UM52A76S.js} +6 -6
- package/dist/bundle/chunk-URP6BTHN.js +624 -0
- package/dist/bundle/{chunk-HHQROAJQ.js → chunk-UWQEAA6S.js} +1 -1
- package/dist/bundle/{chunk-DMJLJVD3.js → chunk-VR7QZGRU.js} +7 -7
- package/dist/bundle/{chunk-QNG27PGH.js → chunk-VRH5PBSL.js} +21 -17
- package/dist/bundle/chunk-VTLQTQKY.js +1756 -0
- package/dist/bundle/{chunk-NX3BLISW.js → chunk-VTYNLTDW.js} +6 -6
- package/dist/bundle/{chunk-HIFPHARA.js → chunk-WY7XG6TE.js} +4 -4
- package/dist/bundle/{chunk-IBYGNUO7.js → chunk-XEOZTA3H.js} +1 -1
- package/dist/bundle/{chunk-4FSH7K6N.js → chunk-XH23ML2V.js} +2 -2
- package/dist/bundle/{chunk-VXD65V67.js → chunk-XYF76A26.js} +2224 -2288
- package/dist/bundle/{chunk-J5EHZBO5.js → chunk-ZDYJAEVB.js} +19 -3
- package/dist/bundle/{chunk-FXZPAGHT.js → chunk-ZJ63HDBT.js} +2 -2
- package/dist/bundle/{chunk-N62P5FY4.js → chunk-ZT4ZPUIO.js} +12 -12
- package/dist/bundle/{cli-WTGAGSXV.js → cli-JK6PQSSN.js} +133 -116
- package/dist/bundle/command-contract-F3QNBKPX.js +46 -0
- package/dist/bundle/{command-server-entry-47CAYN3E.js → command-server-entry-DJLGN62J.js} +36 -35
- package/dist/bundle/config-TYYMV3HV.js +118 -0
- package/dist/bundle/{decode-2G7QS5IQ.js → decode-ZZICNNFF.js} +6 -6
- package/dist/bundle/{dispatch-ZAP3KBVJ.js → dispatch-FKMIPCPQ.js} +9 -9
- package/dist/bundle/{dist-WY6R3WH7.js → dist-NQPF25XI.js} +52 -49
- package/dist/bundle/{echarts-YRRVLEX3.js → echarts-QMAA7HH5.js} +2 -2
- package/dist/bundle/{embed-B5H3OW2O.js → embed-T64EUKUI.js} +7 -7
- package/dist/bundle/{embedder-3O73SP6Y.js → embedder-ZEKISZXI.js} +10 -10
- package/dist/bundle/{failure-EYGW7JMC.js → failure-XTWBYI2A.js} +3 -3
- package/dist/bundle/first-run-ZFNY4RRH.js +29 -0
- package/dist/bundle/first-screen-LPGCHRHZ.js +47 -0
- package/dist/bundle/{folders-4CGFWM6H.js → folders-ROKVKSCT.js} +5 -5
- package/dist/bundle/{instructions-AG7SRWTR.js → instructions-4H7UREH2.js} +1 -1
- package/dist/bundle/{main-DOGY6FJP.js → main-GCK3VYAA.js} +27 -37
- package/dist/bundle/{mcp-YGOAUNC3.js → mcp-5HFPWC3W.js} +2 -2
- package/dist/bundle/meeting-combined-7HDPOUPB.js +28 -0
- package/dist/bundle/meeting-model-MVUW7UPQ.js +26 -0
- package/dist/bundle/{meeting-semantic-FOEBWV3P.js → meeting-semantic-IF633WGX.js} +8 -8
- package/dist/bundle/{meetings-PVE4C2NF.js → meetings-RY2AAPHV.js} +7 -7
- package/dist/bundle/{node-GJQYN4FT.js → node-P3PUHKYH.js} +2 -2
- package/dist/bundle/{node-sqlite-MLRYKVCQ.js → node-sqlite-ASAZJNHE.js} +8 -8
- package/dist/bundle/{oauth-AC55C6SG.js → oauth-4U3OCK3W.js} +8 -8
- package/dist/bundle/oauth-AJARLPSY.js +46 -0
- package/dist/bundle/{open-3LGTYP6M.js → open-SEJRY2ZI.js} +6 -6
- package/dist/bundle/openai-FZDSC2AA.js +28 -0
- package/dist/bundle/{output-file-FXMTTLOI.js → output-file-RYIOIXMD.js} +6 -6
- package/dist/bundle/{process-MEKCZMX3.js → process-AFIXYXWL.js} +1 -1
- package/dist/bundle/{program-E5BSSIGY.js → program-OYLVYA4Z.js} +186 -247
- package/dist/bundle/{prompt-AIA6QSZK.js → prompt-BCRD64F4.js} +6 -6
- package/dist/bundle/public-SVJILCNI.js +206 -0
- package/dist/bundle/{recognize-M57VNTEV.js → recognize-25ITJWGX.js} +5 -5
- package/dist/bundle/{remote-3OTENZ7Z.js → remote-5FBAJX7O.js} +11 -11
- package/dist/bundle/{rerank-P5WHDFDU.js → rerank-2HGWWORY.js} +8 -8
- package/dist/bundle/run-log-7HRF4Y47.js +145 -0
- package/dist/bundle/{serve-BRLC2QVV.js → serve-RL35MSJD.js} +10 -10
- package/dist/bundle/{server-25NF7DMS.js → server-QUSBWACP.js} +71 -68
- package/dist/bundle/server-SCK2SRDK.js +96 -0
- package/dist/bundle/{services-MJE43OGD.js → services-BGRIQNDC.js} +66 -60
- package/dist/bundle/{speech-4AVCWTQH.js → speech-4W3ZMTFK.js} +25 -25
- package/dist/bundle/{sqlite-runtime-U4TQXWMC.js → sqlite-runtime-K3KLRZCV.js} +7 -7
- package/dist/bundle/{state-GNUGVMY7.js → state-GYL4C74G.js} +7 -7
- package/dist/bundle/{store-KBFZVQWF.js → store-27UQMNEO.js} +28 -26
- package/dist/bundle/{store-MHVBFUBB.js → store-NLYH5SQX.js} +64 -46
- package/dist/bundle/store-connection-CZILWRSR.js +112 -0
- package/dist/bundle/store-maintenance-command-Z3QLNSXJ.js +84 -0
- package/dist/bundle/{streaming-6F7AFEHD.js → streaming-73EKEGPF.js} +7 -7
- package/dist/bundle/surface-CV3C4RV2.js +82 -0
- package/dist/bundle/tokens-PY3S22LY.js +27 -0
- package/dist/bundle/zm.js +9 -9
- package/dist/bundle/{zoom-app-YTGOZ2FS.js → zoom-app-4F4YY4OI.js} +11 -9
- package/dist/commands.d.ts +1 -8
- package/dist/commands.d.ts.map +1 -1
- package/dist/commands.js +3 -33
- package/dist/commands.js.map +1 -1
- package/dist/index.d.ts +1 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -2
- package/dist/index.js.map +1 -1
- package/dist/program-bindings.d.ts.map +1 -1
- package/dist/program-bindings.js +2 -12
- package/dist/program-bindings.js.map +1 -1
- package/dist/program.d.ts +3 -5
- package/dist/program.d.ts.map +1 -1
- package/dist/run.d.ts.map +1 -1
- package/dist/run.js +6 -1
- package/dist/run.js.map +1 -1
- package/dist/setup-commands.d.ts +5 -14
- package/dist/setup-commands.d.ts.map +1 -1
- package/dist/setup-commands.js +7 -142
- package/dist/setup-commands.js.map +1 -1
- package/dist/tokens.d.ts +20 -44
- package/dist/tokens.d.ts.map +1 -1
- package/dist/tokens.js +95 -308
- package/dist/tokens.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/dist/zoom-app.js +1 -1
- package/dist/zoom-app.js.map +1 -1
- package/dist/zoom-session.d.ts +6 -0
- package/dist/zoom-session.d.ts.map +1 -0
- package/dist/zoom-session.js +72 -0
- package/dist/zoom-session.js.map +1 -0
- package/package.json +3 -3
- package/skills/zoom-cli/references/setup.md +2 -2
- package/dist/bundle/agent-VYAJCJLE.js +0 -45
- package/dist/bundle/answer-policy-PTH4F2DW.js +0 -129
- package/dist/bundle/chunk-46EF6P2J.js +0 -72
- package/dist/bundle/chunk-4B335BCJ.js +0 -330
- package/dist/bundle/chunk-EWEQ7AXL.js +0 -719
- package/dist/bundle/chunk-FXCR4DGU.js +0 -37
- package/dist/bundle/chunk-KZ3B6HW5.js +0 -31
- package/dist/bundle/chunk-TI4WJOEX.js +0 -789
- package/dist/bundle/chunk-UPR2S5IE.js +0 -773
- 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
- package/dist/bundle/tokens-BB4MQBLH.js +0 -25
- package/dist/login.d.ts +0 -16
- package/dist/login.d.ts.map +0 -1
- package/dist/login.js +0 -98
- package/dist/login.js.map +0 -1
- /package/dist/bundle/{chunk-7O7XM37N.js → chunk-7ECP5ZQR.js} +0 -0
|
@@ -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-HO4JGD4Q.js";
|
|
6
6
|
import {
|
|
7
7
|
CliError
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-IANKXHSE.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@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/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@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/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@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/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@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/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@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/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@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/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"];
|
|
@@ -19,14 +19,14 @@ import {
|
|
|
19
19
|
string,
|
|
20
20
|
text,
|
|
21
21
|
unknown
|
|
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
|
visibleControls
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-BBGJQMRI.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@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/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@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/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@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/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@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/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@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/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,157 +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.
|
|
2259
|
-
import { readFileSync as readFileSync2 } from "node:fs";
|
|
2260
|
-
import { join as join3, resolve } from "node:path";
|
|
2261
|
-
var keyringService = /* @__PURE__ */ __name((service, _configDir, _isolated) => service, "keyringService");
|
|
2262
|
-
var movedRunService = /* @__PURE__ */ __name((service, configDir) => `${service}:${resolve(configDir)}`, "movedRunService");
|
|
2263
|
-
var warnedRuns = /* @__PURE__ */ new WeakSet();
|
|
2264
|
-
var Credentials = class {
|
|
2265
|
-
static {
|
|
2266
|
-
__name(this, "Credentials");
|
|
2267
|
-
}
|
|
2268
|
-
#configDir;
|
|
2269
|
-
#storage;
|
|
2270
|
-
#keyring;
|
|
2271
|
-
#env;
|
|
2272
|
-
#service;
|
|
2273
|
-
#envVar;
|
|
2274
|
-
#fileName;
|
|
2275
|
-
#warn;
|
|
2276
|
-
/** Set only for a moved run with the system keyring. */
|
|
2277
|
-
#temporaryService;
|
|
2278
|
-
constructor(options) {
|
|
2279
|
-
this.#configDir = options.configDir;
|
|
2280
|
-
this.#storage = options.storage ?? "auto";
|
|
2281
|
-
this.#keyring = options.keyring ?? systemKeyring;
|
|
2282
|
-
this.#env = options.env ?? process.env;
|
|
2283
|
-
this.#envVar = options.envVar;
|
|
2284
|
-
this.#fileName = options.fileName ?? "credentials.json";
|
|
2285
|
-
this.#warn = options.warn ?? ((message) => process.stderr.write(`${message}
|
|
2286
|
-
`));
|
|
2287
|
-
this.#service = options.service;
|
|
2288
|
-
const moved = this.#keyring === systemKeyring && (options.isolated === true || homeIsMoved({ env: this.#env }));
|
|
2289
|
-
this.#temporaryService = moved ? movedRunService(options.service, options.configDir) : void 0;
|
|
2290
|
-
}
|
|
2291
|
-
read(account) {
|
|
2292
|
-
const fromEnv = this.#envVar ? this.#env[this.#envVar]?.trim() : void 0;
|
|
2293
|
-
if (fromEnv)
|
|
2294
|
-
return { secret: fromEnv, source: "environment" };
|
|
2295
|
-
const fromFile = this.#storage === "keyring" ? void 0 : this.#readFile()?.[account]?.secret;
|
|
2296
|
-
if (fromFile)
|
|
2297
|
-
return { secret: fromFile, source: "file" };
|
|
2298
|
-
if (this.#storage !== "file") {
|
|
2299
|
-
const temporary = this.#temporaryService;
|
|
2300
|
-
let fromKeyring;
|
|
2301
|
-
try {
|
|
2302
|
-
fromKeyring = temporary && this.#keyring.get(temporary, account) || this.#keyring.get(this.#service, account);
|
|
2303
|
-
} catch (error) {
|
|
2304
|
-
throw this.#unreachable(account, error);
|
|
2305
|
-
}
|
|
2306
|
-
if (fromKeyring)
|
|
2307
|
-
return { secret: fromKeyring, source: "keyring" };
|
|
2308
|
-
}
|
|
2309
|
-
return void 0;
|
|
2310
|
-
}
|
|
2311
|
-
write(account, secret, options = {}) {
|
|
2312
|
-
const inFile = this.#storage === "auto" && this.#readFile()?.[account] !== void 0;
|
|
2313
|
-
if (this.#storage === "keyring" || this.#storage === "auto" && (options.signIn || !inFile)) {
|
|
2314
|
-
const stored = this.#tryKeyring(() => {
|
|
2315
|
-
this.#keyring.set(this.#temporaryService ?? this.#service, account, secret);
|
|
2316
|
-
return true;
|
|
2317
|
-
});
|
|
2318
|
-
if (stored) {
|
|
2319
|
-
if (inFile)
|
|
2320
|
-
this.#removeFromFile(account);
|
|
2321
|
-
return "keyring";
|
|
2322
|
-
}
|
|
2323
|
-
}
|
|
2324
|
-
const store = this.#readFile();
|
|
2325
|
-
if (!store) {
|
|
2326
|
-
throw new CliError("configuration_error", `${this.#path()} cannot be read as a credentials file; storing now would replace every secret in it. Fix the file or move it aside, then try again.`);
|
|
2327
|
-
}
|
|
2328
|
-
store[account] = { secret };
|
|
2329
|
-
this.#writeFile(store);
|
|
2330
|
-
return "file";
|
|
2331
|
-
}
|
|
2332
|
-
remove(account) {
|
|
2333
|
-
const removed = [];
|
|
2334
|
-
if (this.#storage !== "file") {
|
|
2335
|
-
if (this.#tryKeyring(() => this.#keyring.delete(this.#temporaryService ?? this.#service, account))) {
|
|
2336
|
-
removed.push("keyring");
|
|
2337
|
-
}
|
|
2338
|
-
if (this.#temporaryService && this.#ownersEntryExists(account)) {
|
|
2339
|
-
this.#warn(removed.includes("keyring") ? `removed this run's own sign-in of ${account} from the OS keyring and kept the owner's: a run with moved folders never removes it` : `kept ${account} in the OS keyring: it is the owner's sign-in, shared with every run, and a run with moved folders never removes it`);
|
|
2340
|
-
}
|
|
2341
|
-
}
|
|
2342
|
-
if (this.#storage !== "keyring" && this.#removeFromFile(account))
|
|
2343
|
-
removed.push("file");
|
|
2344
|
-
return removed;
|
|
2345
|
-
}
|
|
2346
|
-
#removeFromFile(account) {
|
|
2347
|
-
const store = this.#readFile();
|
|
2348
|
-
if (store?.[account] === void 0)
|
|
2349
|
-
return false;
|
|
2350
|
-
delete store[account];
|
|
2351
|
-
this.#writeFile(store);
|
|
2352
|
-
return true;
|
|
2353
|
-
}
|
|
2354
|
-
/** Only for the warning: a keyring that fails here must not fail a removal that already happened. */
|
|
2355
|
-
#ownersEntryExists(account) {
|
|
2356
|
-
try {
|
|
2357
|
-
return this.#keyring.get(this.#service, account) !== null;
|
|
2358
|
-
} catch {
|
|
2359
|
-
return false;
|
|
2360
|
-
}
|
|
2361
|
-
}
|
|
2362
|
-
#path() {
|
|
2363
|
-
return join3(this.#configDir, this.#fileName);
|
|
2364
|
-
}
|
|
2365
|
-
/** `undefined` when the file exists but is not a store: writing would replace what it holds. */
|
|
2366
|
-
#readFile() {
|
|
2367
|
-
let text2;
|
|
2368
|
-
try {
|
|
2369
|
-
text2 = readFileSync2(this.#path(), "utf8");
|
|
2370
|
-
} catch (error) {
|
|
2371
|
-
if (error.code === "ENOENT")
|
|
2372
|
-
return {};
|
|
2373
|
-
return void 0;
|
|
2374
|
-
}
|
|
2375
|
-
try {
|
|
2376
|
-
const parsed = JSON.parse(text2);
|
|
2377
|
-
return typeof parsed === "object" && parsed !== null && !Array.isArray(parsed) ? parsed : void 0;
|
|
2378
|
-
} catch {
|
|
2379
|
-
return void 0;
|
|
2380
|
-
}
|
|
2381
|
-
}
|
|
2382
|
-
#writeFile(store) {
|
|
2383
|
-
writeSecurely(this.#path(), `${JSON.stringify(store, null, 2)}
|
|
2384
|
-
`, 384);
|
|
2385
|
-
}
|
|
2386
|
-
#unreachable(account, error) {
|
|
2387
|
-
const where = this.#storage === "keyring" ? "" : `, and ${this.#path()} holds no sign-in for ${account}`;
|
|
2388
|
-
return new CliError("configuration_error", `the OS keyring did not answer (${error instanceof Error ? error.message : String(error)})${where}. On Linux a restarted session bus is a known cause: log out and back in, or set DBUS_SESSION_BUS_ADDRESS=unix:path=$XDG_RUNTIME_DIR/bus. On a machine with no keyring, sign in with file storage.`, { reason: "keyring.unreachable" });
|
|
2389
|
-
}
|
|
2390
|
-
#tryKeyring(operation) {
|
|
2391
|
-
if (this.#storage === "keyring")
|
|
2392
|
-
return operation();
|
|
2393
|
-
try {
|
|
2394
|
-
return operation();
|
|
2395
|
-
} catch (error) {
|
|
2396
|
-
if (!warnedRuns.has(this.#env)) {
|
|
2397
|
-
warnedRuns.add(this.#env);
|
|
2398
|
-
this.#warn(`could not reach the OS keyring \u2014 it may be locked, or no keyring service is running (${error instanceof Error ? error.message : String(error)}); using ${this.#path()} instead, readable only by you`);
|
|
2399
|
-
}
|
|
2400
|
-
return void 0;
|
|
2401
|
-
}
|
|
2402
|
-
}
|
|
2403
|
-
};
|
|
2404
|
-
|
|
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
|
|
2258
|
+
// 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/logging.js
|
|
2406
2259
|
import { appendFileSync } from "node:fs";
|
|
2407
2260
|
|
|
2408
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2261
|
+
// 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/standards/log.js
|
|
2409
2262
|
var LOG_SEVERITIES = ["trace", "debug", "info", "warn", "error", "fatal"];
|
|
2410
2263
|
var logRecordSchema = strictObject({
|
|
2411
2264
|
time: isoTime,
|
|
@@ -2483,7 +2336,7 @@ var traceIdOf = /* @__PURE__ */ __name((traceparent) => {
|
|
|
2483
2336
|
return traceId;
|
|
2484
2337
|
}, "traceIdOf");
|
|
2485
2338
|
|
|
2486
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2339
|
+
// 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/logging.js
|
|
2487
2340
|
var REDACTED_FIELDS = [
|
|
2488
2341
|
"authorization",
|
|
2489
2342
|
"Authorization",
|
|
@@ -2577,7 +2430,7 @@ var silent = {
|
|
|
2577
2430
|
}, "error")
|
|
2578
2431
|
};
|
|
2579
2432
|
|
|
2580
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2433
|
+
// 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/output-buffer.js
|
|
2581
2434
|
var createOutputBuffer = /* @__PURE__ */ __name(({ maxOutputBytes = 4 * 1024 * 1024, fields, format } = {}) => {
|
|
2582
2435
|
if (!Number.isSafeInteger(maxOutputBytes) || maxOutputBytes < 0)
|
|
2583
2436
|
throw new CliError("validation_error", "maxOutputBytes must be a nonnegative whole byte count");
|
|
@@ -2638,7 +2491,7 @@ var createOutputBuffer = /* @__PURE__ */ __name(({ maxOutputBytes = 4 * 1024 * 1
|
|
|
2638
2491
|
};
|
|
2639
2492
|
}, "createOutputBuffer");
|
|
2640
2493
|
|
|
2641
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2494
|
+
// 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/drain.js
|
|
2642
2495
|
var waitForDrain = /* @__PURE__ */ __name((stream, signal) => {
|
|
2643
2496
|
if (signal?.aborted)
|
|
2644
2497
|
return Promise.reject(signal.reason);
|
|
@@ -2666,7 +2519,7 @@ var waitForDrain = /* @__PURE__ */ __name((stream, signal) => {
|
|
|
2666
2519
|
});
|
|
2667
2520
|
}, "waitForDrain");
|
|
2668
2521
|
|
|
2669
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2522
|
+
// 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/streams.js
|
|
2670
2523
|
var processStreams = {
|
|
2671
2524
|
drain: /* @__PURE__ */ __name(async (signal) => {
|
|
2672
2525
|
await Promise.all([waitForDrain(process.stdout, signal), waitForDrain(process.stderr, signal)]);
|
|
@@ -2695,7 +2548,7 @@ var captureStreams = /* @__PURE__ */ __name(() => {
|
|
|
2695
2548
|
};
|
|
2696
2549
|
}, "captureStreams");
|
|
2697
2550
|
|
|
2698
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2551
|
+
// 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/retry.js
|
|
2699
2552
|
var DEFAULT_RETRY = {
|
|
2700
2553
|
retries: 1,
|
|
2701
2554
|
baseDelayMs: 250,
|
|
@@ -2707,7 +2560,7 @@ var backoffMs = /* @__PURE__ */ __name((attempt, config, random) => {
|
|
|
2707
2560
|
return Math.round(random() * ceiling);
|
|
2708
2561
|
}, "backoffMs");
|
|
2709
2562
|
|
|
2710
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2563
|
+
// 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/constants.js
|
|
2711
2564
|
import { fileURLToPath } from "node:url";
|
|
2712
2565
|
var BASE_CONSTANTS = new URL("../constants.json", new URL("constants.js", import.meta.resolve("@wirecat/cli-base")).href);
|
|
2713
2566
|
var baseConstantsSchema = object({});
|
|
@@ -2762,7 +2615,154 @@ var loadConstants = /* @__PURE__ */ __name((layers, schema) => {
|
|
|
2762
2615
|
return deepFreeze(result.output);
|
|
2763
2616
|
}, "loadConstants");
|
|
2764
2617
|
|
|
2765
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2618
|
+
// 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/credentials.js
|
|
2619
|
+
import { readFileSync as readFileSync2 } from "node:fs";
|
|
2620
|
+
import { join as join3, resolve } from "node:path";
|
|
2621
|
+
var keyringService = /* @__PURE__ */ __name((service, _configDir, _isolated) => service, "keyringService");
|
|
2622
|
+
var movedRunService = /* @__PURE__ */ __name((service, configDir) => `${service}:${resolve(configDir)}`, "movedRunService");
|
|
2623
|
+
var warnedRuns = /* @__PURE__ */ new WeakSet();
|
|
2624
|
+
var Credentials = class {
|
|
2625
|
+
static {
|
|
2626
|
+
__name(this, "Credentials");
|
|
2627
|
+
}
|
|
2628
|
+
#configDir;
|
|
2629
|
+
#storage;
|
|
2630
|
+
#keyring;
|
|
2631
|
+
#env;
|
|
2632
|
+
#service;
|
|
2633
|
+
#envVar;
|
|
2634
|
+
#fileName;
|
|
2635
|
+
#warn;
|
|
2636
|
+
/** Set only for a moved run with the system keyring. */
|
|
2637
|
+
#temporaryService;
|
|
2638
|
+
constructor(options) {
|
|
2639
|
+
this.#configDir = options.configDir;
|
|
2640
|
+
this.#storage = options.storage ?? "auto";
|
|
2641
|
+
this.#keyring = options.keyring ?? systemKeyring;
|
|
2642
|
+
this.#env = options.env ?? process.env;
|
|
2643
|
+
this.#envVar = options.envVar;
|
|
2644
|
+
this.#fileName = options.fileName ?? "credentials.json";
|
|
2645
|
+
this.#warn = options.warn ?? ((message) => process.stderr.write(`${message}
|
|
2646
|
+
`));
|
|
2647
|
+
this.#service = options.service;
|
|
2648
|
+
const moved = this.#keyring === systemKeyring && (options.isolated === true || homeIsMoved({ env: this.#env }));
|
|
2649
|
+
this.#temporaryService = moved ? movedRunService(options.service, options.configDir) : void 0;
|
|
2650
|
+
}
|
|
2651
|
+
read(account) {
|
|
2652
|
+
const fromEnv = this.#envVar ? this.#env[this.#envVar]?.trim() : void 0;
|
|
2653
|
+
if (fromEnv)
|
|
2654
|
+
return { secret: fromEnv, source: "environment" };
|
|
2655
|
+
const fromFile = this.#storage === "keyring" ? void 0 : this.#readFile()?.[account]?.secret;
|
|
2656
|
+
if (fromFile)
|
|
2657
|
+
return { secret: fromFile, source: "file" };
|
|
2658
|
+
if (this.#storage !== "file") {
|
|
2659
|
+
const temporary = this.#temporaryService;
|
|
2660
|
+
let fromKeyring;
|
|
2661
|
+
try {
|
|
2662
|
+
fromKeyring = temporary && this.#keyring.get(temporary, account) || this.#keyring.get(this.#service, account);
|
|
2663
|
+
} catch (error) {
|
|
2664
|
+
throw this.#unreachable(account, error);
|
|
2665
|
+
}
|
|
2666
|
+
if (fromKeyring)
|
|
2667
|
+
return { secret: fromKeyring, source: "keyring" };
|
|
2668
|
+
}
|
|
2669
|
+
return void 0;
|
|
2670
|
+
}
|
|
2671
|
+
write(account, secret, options = {}) {
|
|
2672
|
+
const inFile = this.#storage === "auto" && this.#readFile()?.[account] !== void 0;
|
|
2673
|
+
if (this.#storage === "keyring" || this.#storage === "auto" && (options.signIn || !inFile)) {
|
|
2674
|
+
const stored = this.#tryKeyring(() => {
|
|
2675
|
+
this.#keyring.set(this.#temporaryService ?? this.#service, account, secret);
|
|
2676
|
+
return true;
|
|
2677
|
+
});
|
|
2678
|
+
if (stored) {
|
|
2679
|
+
if (inFile)
|
|
2680
|
+
this.#removeFromFile(account);
|
|
2681
|
+
return "keyring";
|
|
2682
|
+
}
|
|
2683
|
+
}
|
|
2684
|
+
const store = this.#readFile();
|
|
2685
|
+
if (!store) {
|
|
2686
|
+
throw new CliError("configuration_error", `${this.#path()} cannot be read as a credentials file; storing now would replace every secret in it. Fix the file or move it aside, then try again.`);
|
|
2687
|
+
}
|
|
2688
|
+
store[account] = { secret };
|
|
2689
|
+
this.#writeFile(store);
|
|
2690
|
+
return "file";
|
|
2691
|
+
}
|
|
2692
|
+
remove(account) {
|
|
2693
|
+
const removed = [];
|
|
2694
|
+
if (this.#storage !== "file") {
|
|
2695
|
+
if (this.#tryKeyring(() => this.#keyring.delete(this.#temporaryService ?? this.#service, account))) {
|
|
2696
|
+
removed.push("keyring");
|
|
2697
|
+
}
|
|
2698
|
+
if (this.#temporaryService && this.#ownersEntryExists(account)) {
|
|
2699
|
+
this.#warn(removed.includes("keyring") ? `removed this run's own sign-in of ${account} from the OS keyring and kept the owner's: a run with moved folders never removes it` : `kept ${account} in the OS keyring: it is the owner's sign-in, shared with every run, and a run with moved folders never removes it`);
|
|
2700
|
+
}
|
|
2701
|
+
}
|
|
2702
|
+
if (this.#storage !== "keyring" && this.#removeFromFile(account))
|
|
2703
|
+
removed.push("file");
|
|
2704
|
+
return removed;
|
|
2705
|
+
}
|
|
2706
|
+
#removeFromFile(account) {
|
|
2707
|
+
const store = this.#readFile();
|
|
2708
|
+
if (store?.[account] === void 0)
|
|
2709
|
+
return false;
|
|
2710
|
+
delete store[account];
|
|
2711
|
+
this.#writeFile(store);
|
|
2712
|
+
return true;
|
|
2713
|
+
}
|
|
2714
|
+
/** Only for the warning: a keyring that fails here must not fail a removal that already happened. */
|
|
2715
|
+
#ownersEntryExists(account) {
|
|
2716
|
+
try {
|
|
2717
|
+
return this.#keyring.get(this.#service, account) !== null;
|
|
2718
|
+
} catch {
|
|
2719
|
+
return false;
|
|
2720
|
+
}
|
|
2721
|
+
}
|
|
2722
|
+
#path() {
|
|
2723
|
+
return join3(this.#configDir, this.#fileName);
|
|
2724
|
+
}
|
|
2725
|
+
/** `undefined` when the file exists but is not a store: writing would replace what it holds. */
|
|
2726
|
+
#readFile() {
|
|
2727
|
+
let text2;
|
|
2728
|
+
try {
|
|
2729
|
+
text2 = readFileSync2(this.#path(), "utf8");
|
|
2730
|
+
} catch (error) {
|
|
2731
|
+
if (error.code === "ENOENT")
|
|
2732
|
+
return {};
|
|
2733
|
+
return void 0;
|
|
2734
|
+
}
|
|
2735
|
+
try {
|
|
2736
|
+
const parsed = JSON.parse(text2);
|
|
2737
|
+
return typeof parsed === "object" && parsed !== null && !Array.isArray(parsed) ? parsed : void 0;
|
|
2738
|
+
} catch {
|
|
2739
|
+
return void 0;
|
|
2740
|
+
}
|
|
2741
|
+
}
|
|
2742
|
+
#writeFile(store) {
|
|
2743
|
+
writeSecurely(this.#path(), `${JSON.stringify(store, null, 2)}
|
|
2744
|
+
`, 384);
|
|
2745
|
+
}
|
|
2746
|
+
#unreachable(account, error) {
|
|
2747
|
+
const where = this.#storage === "keyring" ? "" : `, and ${this.#path()} holds no sign-in for ${account}`;
|
|
2748
|
+
return new CliError("configuration_error", `the OS keyring did not answer (${error instanceof Error ? error.message : String(error)})${where}. On Linux a restarted session bus is a known cause: log out and back in, or set DBUS_SESSION_BUS_ADDRESS=unix:path=$XDG_RUNTIME_DIR/bus. On a machine with no keyring, sign in with file storage.`, { reason: "keyring.unreachable" });
|
|
2749
|
+
}
|
|
2750
|
+
#tryKeyring(operation) {
|
|
2751
|
+
if (this.#storage === "keyring")
|
|
2752
|
+
return operation();
|
|
2753
|
+
try {
|
|
2754
|
+
return operation();
|
|
2755
|
+
} catch (error) {
|
|
2756
|
+
if (!warnedRuns.has(this.#env)) {
|
|
2757
|
+
warnedRuns.add(this.#env);
|
|
2758
|
+
this.#warn(`could not reach the OS keyring \u2014 it may be locked, or no keyring service is running (${error instanceof Error ? error.message : String(error)}); using ${this.#path()} instead, readable only by you`);
|
|
2759
|
+
}
|
|
2760
|
+
return void 0;
|
|
2761
|
+
}
|
|
2762
|
+
}
|
|
2763
|
+
};
|
|
2764
|
+
|
|
2765
|
+
// 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/time.js
|
|
2766
2766
|
var abortError = /* @__PURE__ */ __name(() => new DOMException("The operation was aborted.", "AbortError"), "abortError");
|
|
2767
2767
|
var realSleep = /* @__PURE__ */ __name((ms, signal) => new Promise((resolve2, reject) => {
|
|
2768
2768
|
if (signal?.aborted) {
|
|
@@ -2777,7 +2777,7 @@ var realSleep = /* @__PURE__ */ __name((ms, signal) => new Promise((resolve2, re
|
|
|
2777
2777
|
}), "realSleep");
|
|
2778
2778
|
var wallClock = /* @__PURE__ */ __name(() => /* @__PURE__ */ new Date(), "wallClock");
|
|
2779
2779
|
|
|
2780
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2780
|
+
// 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/deadline.js
|
|
2781
2781
|
var createDeadline = /* @__PURE__ */ __name(({ timeoutMs, signal, sleep = realSleep } = {}) => {
|
|
2782
2782
|
if (timeoutMs !== void 0 && (!Number.isSafeInteger(timeoutMs) || timeoutMs < 0 || timeoutMs > 2147483647))
|
|
2783
2783
|
throw new CliError("validation_error", "timeoutMs must be an integer from zero through 2147483647");
|
|
@@ -2861,7 +2861,7 @@ var createDeadline = /* @__PURE__ */ __name(({ timeoutMs, signal, sleep = realSl
|
|
|
2861
2861
|
};
|
|
2862
2862
|
}, "createDeadline");
|
|
2863
2863
|
|
|
2864
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2864
|
+
// 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/pretty.js
|
|
2865
2865
|
var import_cli_table3 = __toESM(require_cli_table3(), 1);
|
|
2866
2866
|
import { styleText } from "node:util";
|
|
2867
2867
|
var renderPretty = /* @__PURE__ */ __name((value, options) => {
|
|
@@ -2936,7 +2936,7 @@ var BORDERLESS = {
|
|
|
2936
2936
|
middle: ""
|
|
2937
2937
|
};
|
|
2938
2938
|
|
|
2939
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2939
|
+
// 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/renderer.js
|
|
2940
2940
|
var createRenderer = /* @__PURE__ */ __name(({ format, color, streams = processStreams, quiet = false }) => {
|
|
2941
2941
|
const mark = /* @__PURE__ */ __name((symbol, message) => format === "pretty" ? `${symbol} ${visibleControls(message)}` : visibleControls(message), "mark");
|
|
2942
2942
|
const say = /* @__PURE__ */ __name((symbol) => (message) => {
|
|
@@ -3,11 +3,11 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
timezoneOf,
|
|
5
5
|
wallTime
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-UAWSINMC.js";
|
|
7
7
|
import {
|
|
8
8
|
CliError,
|
|
9
9
|
isCliError
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-IANKXHSE.js";
|
|
11
11
|
import {
|
|
12
12
|
__name
|
|
13
13
|
} from "./chunk-ZVVMGPBJ.js";
|
|
@@ -5,21 +5,21 @@ import {
|
|
|
5
5
|
UNTRUSTED_NEUTRAL,
|
|
6
6
|
agentArguments,
|
|
7
7
|
agentJson
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-E4ODYLEK.js";
|
|
9
9
|
import {
|
|
10
10
|
callerOf
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-G6CHEFAG.js";
|
|
12
12
|
import {
|
|
13
13
|
refuseLacking
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-ZDYJAEVB.js";
|
|
15
15
|
import {
|
|
16
16
|
onlineDeps,
|
|
17
17
|
servicesFor,
|
|
18
18
|
storeModeDeps
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-UEAE3JUU.js";
|
|
20
20
|
import {
|
|
21
21
|
failureContext
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-CJWGJBHW.js";
|
|
23
23
|
import {
|
|
24
24
|
DEFAULT_OUTPUT_BYTES,
|
|
25
25
|
ENTITIES,
|
|
@@ -32,32 +32,33 @@ import {
|
|
|
32
32
|
refuseStoreChange,
|
|
33
33
|
sealed,
|
|
34
34
|
startRecording
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-ASTLGFTR.js";
|
|
36
36
|
import {
|
|
37
37
|
currentCaller,
|
|
38
38
|
keepsSuccess,
|
|
39
39
|
runContextOf,
|
|
40
40
|
withCaller
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-RLOH7RDN.js";
|
|
42
42
|
import {
|
|
43
43
|
fetchesAt,
|
|
44
44
|
keyForCommand,
|
|
45
45
|
levelFor,
|
|
46
46
|
readKeysForCommand
|
|
47
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-RQ4AXSCJ.js";
|
|
48
48
|
import {
|
|
49
49
|
MAX_BUFFERED_INPUT
|
|
50
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-KHQDWYCG.js";
|
|
51
51
|
import {
|
|
52
52
|
inRun,
|
|
53
53
|
newRunId
|
|
54
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-HKLRI2LB.js";
|
|
55
55
|
import {
|
|
56
|
+
storeBusy,
|
|
56
57
|
storeDamaged
|
|
57
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-B2NM65RD.js";
|
|
58
59
|
import {
|
|
59
60
|
traceIdOf
|
|
60
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-3QN5KDFZ.js";
|
|
61
62
|
import {
|
|
62
63
|
array,
|
|
63
64
|
boolean,
|
|
@@ -84,19 +85,19 @@ import {
|
|
|
84
85
|
toJsonSchema,
|
|
85
86
|
toStandardJsonSchema,
|
|
86
87
|
unknown
|
|
87
|
-
} from "./chunk-
|
|
88
|
+
} from "./chunk-ESN3W2MZ.js";
|
|
88
89
|
import {
|
|
89
90
|
CliError,
|
|
90
91
|
errorCodes
|
|
91
|
-
} from "./chunk-
|
|
92
|
+
} from "./chunk-IANKXHSE.js";
|
|
92
93
|
import {
|
|
93
94
|
__name
|
|
94
95
|
} from "./chunk-ZVVMGPBJ.js";
|
|
95
96
|
|
|
96
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
97
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/mcp/surface.js
|
|
97
98
|
import { randomUUID } from "node:crypto";
|
|
98
99
|
|
|
99
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
100
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/mcp/tool.js
|
|
100
101
|
var limit = optional(pipe(number(), integer(), minValue(1), maxValue(100), description("how many")));
|
|
101
102
|
var page = optional(pipe(number(), integer(), minValue(1), description("which page, from 1")));
|
|
102
103
|
var message = pipe(
|
|
@@ -352,10 +353,10 @@ var answered = /* @__PURE__ */ __name((answer, maxBytes = DEFAULT_OUTPUT_BYTES,
|
|
|
352
353
|
var failed = /* @__PURE__ */ __name((error, errors, effects) => {
|
|
353
354
|
const judged = judgedEffects(effects);
|
|
354
355
|
const context = { ...failureContext(errors), ...judged ? { effects: judged } : {} };
|
|
355
|
-
return mcpErrorResult(JSON.parse(agentJson(errorObjectOf(storeDamaged(error), context))));
|
|
356
|
+
return mcpErrorResult(JSON.parse(agentJson(errorObjectOf(storeBusy(storeDamaged(error)), context))));
|
|
356
357
|
}, "failed");
|
|
357
358
|
|
|
358
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
359
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/mcp/surface.js
|
|
359
360
|
var MATCHES = 8;
|
|
360
361
|
var ANSWER = answerSchema();
|
|
361
362
|
var agentAnswer = /* @__PURE__ */ __name((prefix, writes) => {
|
|
@@ -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@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/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);
|
|
@@ -21,5 +21,6 @@ var withTimeLimit = /* @__PURE__ */ __name(async (ms, run) => {
|
|
|
21
21
|
}, "withTimeLimit");
|
|
22
22
|
|
|
23
23
|
export {
|
|
24
|
+
timeLimit,
|
|
24
25
|
withTimeLimit
|
|
25
26
|
};
|