@wirecat/drive-cli 0.71.0 → 0.72.1
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 +150 -71
- package/contracts/wirecat.json +77 -8
- package/dist/bin/drive.js +2 -2
- package/dist/bundle/agent-GOCD4ZW2.js +46 -0
- package/dist/bundle/{all-profiles-3QJG2NAN.js → all-profiles-PZVP3G73.js} +67 -25
- package/dist/bundle/{anthropic-PSWTEU6G.js → anthropic-PUOTKSYV.js} +9 -9
- package/dist/bundle/{app-server-PVTA6ABR.js → app-server-MKDCXRZM.js} +97 -79
- package/dist/bundle/{bun-LU5LP3JI.js → bun-NS5YLOQT.js} +2 -2
- package/dist/bundle/{bun-sqlite-PYMKLBRU.js → bun-sqlite-KSKWRLLO.js} +9 -9
- package/dist/bundle/{chunk-COOOO5B3.js → chunk-2CG3LUQS.js} +4 -4
- package/dist/bundle/{chunk-YVI5SQPY.js → chunk-2TVHFJKV.js} +1 -1
- package/dist/bundle/chunk-35FIJGTT.js +52 -0
- package/dist/bundle/chunk-35GROSBS.js +3233 -0
- package/dist/bundle/{chunk-D5TGYUVU.js → chunk-3CH7I452.js} +9 -60
- package/dist/bundle/{chunk-ICDCAQ6K.js → chunk-3QBRS3JT.js} +13 -9
- package/dist/bundle/chunk-3T7JIHSO.js +353 -0
- package/dist/bundle/{chunk-Q7DOMFJ4.js → chunk-3VIEGRBA.js} +6 -6
- package/dist/bundle/chunk-3YCUYFTD.js +2159 -0
- package/dist/bundle/{chunk-CJLVYIOP.js → chunk-3ZGWJYSG.js} +30 -21
- package/dist/bundle/{chunk-YPFWNVHV.js → chunk-43PCMVTZ.js} +2 -100
- package/dist/bundle/{chunk-OF422U5D.js → chunk-4DK55MLP.js} +402 -402
- package/dist/bundle/chunk-4HP6KGBI.js +32 -0
- package/dist/bundle/chunk-4P6D6CUS.js +282 -0
- package/dist/bundle/chunk-4ZAQMDLD.js +1308 -0
- package/dist/bundle/chunk-4ZTB7LS3.js +87 -0
- package/dist/bundle/{chunk-6W763DZN.js → chunk-54O5NJRC.js} +14 -13
- package/dist/bundle/{chunk-MNLL5YLM.js → chunk-5BHP4FVM.js} +2 -2
- package/dist/bundle/{chunk-ACUAV6VX.js → chunk-6JU4KLAZ.js} +108 -72
- package/dist/bundle/{chunk-YMJ6IDGT.js → chunk-6KND2DYT.js} +38 -8
- package/dist/bundle/{chunk-4HWJOU7N.js → chunk-7YPZPJTB.js} +1 -1
- package/dist/bundle/chunk-A5XNUMW7.js +108 -0
- package/dist/bundle/{chunk-X4TIMMKJ.js → chunk-AG34MPVN.js} +1 -1
- package/dist/bundle/chunk-B5V2U7IS.js +221 -0
- package/dist/bundle/chunk-B6JC5RS3.js +696 -0
- package/dist/bundle/chunk-BDZXGDGI.js +80 -0
- package/dist/bundle/{chunk-B5KSXHJ7.js → chunk-BMTMGMGE.js} +1 -1
- package/dist/bundle/{chunk-ZCR3IRZ2.js → chunk-CP2TZXAG.js} +16 -9
- package/dist/bundle/{chunk-TAUBRNC5.js → chunk-DOEP4EPW.js} +72 -59
- package/dist/bundle/chunk-DQSOYH6N.js +20 -0
- package/dist/bundle/{chunk-QETR5HIZ.js → chunk-E2TMWONO.js} +4385 -2684
- package/dist/bundle/chunk-E5EYJU5R.js +7 -0
- package/dist/bundle/chunk-ECYOTDJM.js +14 -0
- package/dist/bundle/{chunk-HL52XXZX.js → chunk-EXHTGQR2.js} +3 -4
- package/dist/bundle/chunk-F4BX7TH2.js +15 -0
- package/dist/bundle/{chunk-ASMMG72J.js → chunk-FJQO5OHR.js} +261 -565
- package/dist/bundle/{chunk-RJOQH5YY.js → chunk-FKP4T7A4.js} +111 -859
- package/dist/bundle/{chunk-JDV7HNNQ.js → chunk-FTL3WXZB.js} +13 -26
- package/dist/bundle/{chunk-FP54WSIR.js → chunk-G2CH4FRW.js} +4 -4
- package/dist/bundle/chunk-G2KKMQRN.js +30 -0
- package/dist/bundle/{chunk-NYECVHFH.js → chunk-G4NHRFS7.js} +755 -0
- package/dist/bundle/{chunk-Y2NWGNUB.js → chunk-G7SKXAVZ.js} +5 -5
- package/dist/bundle/{chunk-FT3LN3HP.js → chunk-GFI3UUIU.js} +1 -1
- package/dist/bundle/chunk-GTPPUBYU.js +1876 -0
- package/dist/bundle/{chunk-QFR2PNJN.js → chunk-GTROGY74.js} +12 -12
- package/dist/bundle/{chunk-UTO2GO4P.js → chunk-GYAPDUF5.js} +45 -66
- package/dist/bundle/{chunk-GBKNJWOZ.js → chunk-HCMEU7AF.js} +8 -8
- package/dist/bundle/{chunk-FJH7DJWK.js → chunk-HDGJ7IDE.js} +6 -6
- package/dist/bundle/{chunk-Z3KUSRCF.js → chunk-HMN26CVU.js} +2 -2
- package/dist/bundle/{chunk-I4RWW3UD.js → chunk-HOICQNJX.js} +20 -5
- package/dist/bundle/{chunk-P7CUM5IB.js → chunk-HPS2YGSZ.js} +1 -1
- package/dist/bundle/{chunk-HMS6EEQL.js → chunk-HSASPXRW.js} +3 -3
- package/dist/bundle/{chunk-KGYVHPGE.js → chunk-IABPGOMT.js} +2 -2
- package/dist/bundle/{chunk-4QNW4NK6.js → chunk-IBQZT2YD.js} +1 -1
- package/dist/bundle/{chunk-PRW6SYA3.js → chunk-IE3R46YN.js} +313 -257
- package/dist/bundle/{chunk-7PDHGZN4.js → chunk-IE6O7463.js} +4 -4
- package/dist/bundle/{chunk-3UGYFXH6.js → chunk-IPBYU43F.js} +192 -379
- package/dist/bundle/{chunk-RWDKMU74.js → chunk-IS7STZEB.js} +3 -3
- package/dist/bundle/{chunk-GOWXXYEF.js → chunk-IV77ZFF4.js} +4 -4
- package/dist/bundle/{chunk-6XFIITOG.js → chunk-JDGF3YYS.js} +4811 -3486
- package/dist/bundle/{chunk-GPQ44Y2R.js → chunk-JHAACT4I.js} +2 -2
- package/dist/bundle/{chunk-SERXSCN3.js → chunk-JRED7BNX.js} +337 -390
- package/dist/bundle/{chunk-MIA7P6FZ.js → chunk-JSYUB4SM.js} +6 -6
- package/dist/bundle/{chunk-RESDD3Q4.js → chunk-JVM75M4H.js} +16 -3
- package/dist/bundle/{chunk-XF4EXO2C.js → chunk-JZ65CQWK.js} +6 -6
- package/dist/bundle/{chunk-QNRRK3CN.js → chunk-KBR7OC5S.js} +2 -2
- package/dist/bundle/chunk-KI6OOW6D.js +123 -0
- package/dist/bundle/chunk-KOI5G7NM.js +388 -0
- package/dist/bundle/{chunk-ZZ32DXTH.js → chunk-KPBUJQKT.js} +1 -1
- package/dist/bundle/{chunk-2LHAVY4U.js → chunk-KVBGIZ2C.js} +1 -1
- package/dist/bundle/chunk-L7P3LUDQ.js +286 -0
- package/dist/bundle/{chunk-SAKO3P4H.js → chunk-LKUWH6KU.js} +1 -1
- package/dist/bundle/chunk-MA6U4XH2.js +36 -0
- package/dist/bundle/{chunk-TAFHYHKA.js → chunk-MA7ETVTZ.js} +43 -186
- package/dist/bundle/{chunk-KYKW2W6X.js → chunk-MDJUYCHT.js} +1 -1
- package/dist/bundle/chunk-MEYYH47C.js +25 -0
- package/dist/bundle/{chunk-Z56QFOBR.js → chunk-MGC2BAD2.js} +1 -1
- package/dist/bundle/chunk-NMQRSEZM.js +37 -0
- package/dist/bundle/{chunk-5DPV7X27.js → chunk-NTZWY5R3.js} +321 -0
- package/dist/bundle/{chunk-OJSBWP3F.js → chunk-OBDPKDGB.js} +69 -7
- package/dist/bundle/{chunk-WVDCCYS3.js → chunk-ODTBJGWQ.js} +17 -17
- package/dist/bundle/chunk-PB6ACIME.js +80 -0
- package/dist/bundle/{chunk-5D4AEUVA.js → chunk-PL5P7UKW.js} +434 -1
- package/dist/bundle/{chunk-72C4YOCH.js → chunk-PMAV3RNP.js} +7 -7
- package/dist/bundle/chunk-PSY67L73.js +783 -0
- package/dist/bundle/{chunk-6TNNT2MQ.js → chunk-PUVQOZ2N.js} +483 -176
- package/dist/bundle/{chunk-SDKQNOL5.js → chunk-QB7K6PIP.js} +6 -6
- package/dist/bundle/chunk-QK7GKFKB.js +188 -0
- package/dist/bundle/{chunk-4PA4DHYV.js → chunk-QMUWHKP5.js} +6 -6
- package/dist/bundle/chunk-QURQ2OU2.js +250 -0
- package/dist/bundle/{chunk-LXKYKRHD.js → chunk-R3EDZWXF.js} +8 -227
- package/dist/bundle/{chunk-KGERXYTV.js → chunk-RM4DO2WZ.js} +1 -1
- package/dist/bundle/chunk-S27UKJVL.js +730 -0
- package/dist/bundle/{chunk-22QQUKWA.js → chunk-S3SLDYTU.js} +1 -1
- package/dist/bundle/{chunk-FCS26CYQ.js → chunk-SAEBHENE.js} +4 -4
- package/dist/bundle/chunk-SM7Z2BQF.js +561 -0
- package/dist/bundle/{chunk-QXC6IEH6.js → chunk-SODB63MR.js} +201 -423
- package/dist/bundle/{chunk-2PUNKUYJ.js → chunk-SSFGSY77.js} +10320 -9907
- package/dist/bundle/{chunk-37MAA6F2.js → chunk-STUPCKAA.js} +11 -2221
- package/dist/bundle/{chunk-BKSQBBYG.js → chunk-SUQT4KI2.js} +9 -9
- package/dist/bundle/{chunk-YPNWIB6H.js → chunk-SWQDKO6D.js} +3 -3
- package/dist/bundle/chunk-SZ7XJZGH.js +2231 -0
- package/dist/bundle/{chunk-3N2OFXB5.js → chunk-T3OK6AYZ.js} +5 -5
- package/dist/bundle/{chunk-HKY7X6NY.js → chunk-TFIAD57H.js} +4 -4
- package/dist/bundle/chunk-TRYYWV7J.js +291 -0
- package/dist/bundle/{chunk-XMMFBPGC.js → chunk-TUL6MCTY.js} +3 -3
- package/dist/bundle/{chunk-6Y2BYFXQ.js → chunk-UC7JLE6J.js} +0 -7
- package/dist/bundle/{chunk-YJIGGUPI.js → chunk-UL5HSHFU.js} +4 -4
- package/dist/bundle/{chunk-3EBBLKIT.js → chunk-UT64BBEP.js} +4 -4
- package/dist/bundle/{chunk-26DHFMGZ.js → chunk-VBIZD5V5.js} +2 -2
- package/dist/bundle/chunk-VHTELRUA.js +50 -0
- package/dist/bundle/chunk-VOQICE3G.js +340 -0
- package/dist/bundle/{chunk-GZ2D4KXG.js → chunk-WDJRUNQN.js} +35 -12
- package/dist/bundle/{chunk-2UUWXPOB.js → chunk-X5CXANSA.js} +3 -3
- package/dist/bundle/{chunk-35SCQ4VI.js → chunk-X6HPQKAI.js} +43 -35
- package/dist/bundle/{chunk-COJSWDNU.js → chunk-XKWQDQ4B.js} +3 -3
- package/dist/bundle/{chunk-6SJOTNHF.js → chunk-XZEVHUKI.js} +6 -28
- package/dist/bundle/{chunk-JZHBZOJR.js → chunk-YE7DJB3F.js} +3 -3
- package/dist/bundle/chunk-YHWFF6DN.js +39 -0
- package/dist/bundle/{chunk-2BVVU7GG.js → chunk-YJVQ5GST.js} +1 -1
- package/dist/bundle/{chunk-ZM63SUHG.js → chunk-YRCGFSRR.js} +2 -2
- package/dist/bundle/{chunk-EOEU3AZN.js → chunk-ZNFXKFGF.js} +13 -13
- package/dist/bundle/{cli-556DERZL.js → cli-KXRWXGTS.js} +217 -114
- package/dist/bundle/command-contract-BGNT7MTQ.js +45 -0
- package/dist/bundle/{command-server-entry-AYLGNZWD.js → command-server-entry-7FZX74T6.js} +36 -34
- package/dist/bundle/{decode-QU24MWMN.js → decode-SZ6W34U3.js} +10 -10
- package/dist/bundle/{dispatch-4KODNOXV.js → dispatch-4KNSZ3PI.js} +10 -10
- package/dist/bundle/dist-PAKDDIBT.js +191 -0
- package/dist/bundle/drive.js +11 -11
- package/dist/bundle/{echarts-BXX4OQWC.js → echarts-ISH62J4E.js} +2 -2
- package/dist/bundle/{embed-KG27KG3D.js → embed-6ODGTZPK.js} +10 -10
- package/dist/bundle/{embedder-IPAVUQUV.js → embedder-6FY67FTQ.js} +15 -15
- package/dist/bundle/entry-2SA6ZX7E.js +25 -0
- package/dist/bundle/{failure-ESL7ETL4.js → failure-V3ILKUTX.js} +4 -4
- package/dist/bundle/first-run-ZNKPPD6M.js +31 -0
- package/dist/bundle/first-screen-WF6GYLPN.js +45 -0
- package/dist/bundle/google-QCADNPCQ.js +46 -0
- package/dist/bundle/{google-api-VCDBSNOW.js → google-api-ZTI3NKZX.js} +88 -73
- package/dist/bundle/grants-BPN5AGDK.js +133 -0
- package/dist/bundle/hast-util-from-html-X2DCPS3T.js +10531 -0
- package/dist/bundle/hast-util-to-html-VP6XLPKJ.js +998 -0
- package/dist/bundle/hast-util-to-mdast-IZ5PRX72.js +2272 -0
- package/dist/bundle/{identity-LOWMVGZY.js → identity-YX4IPGOO.js} +7 -6
- package/dist/bundle/{instructions-2VECIDXF.js → instructions-G5ZGHVFB.js} +1 -1
- package/dist/bundle/{login-7GBONT7V.js → login-CVX5VJX6.js} +96 -81
- package/dist/bundle/{mcp-O6ACR2DX.js → mcp-MQ2L5IIM.js} +2 -2
- package/dist/bundle/{mdast-util-from-markdown-FXEPSNER.js → mdast-util-from-markdown-HEZF7KJ4.js} +137 -195
- package/dist/bundle/mdast-util-gfm-AQW6R6MG.js +925 -0
- package/dist/bundle/mdast-util-to-hast-DF2QVIRV.js +879 -0
- package/dist/bundle/mdast-util-to-markdown-XYLXB3Z3.js +18 -0
- package/dist/bundle/meeting-combined-HKZJMJ6Q.js +28 -0
- package/dist/bundle/meeting-model-DSE4GRVE.js +29 -0
- package/dist/bundle/{meeting-semantic-G7PFOKU7.js → meeting-semantic-OHG2QN2G.js} +10 -10
- package/dist/bundle/{micromark-extension-gfm-GRL24TU6.js → micromark-extension-gfm-OE2GBORZ.js} +11 -78
- package/dist/bundle/{node-MPEQSFI3.js → node-NLJINXVQ.js} +2 -2
- package/dist/bundle/{node-sqlite-OLQMAYB4.js → node-sqlite-KDFQDYVZ.js} +10 -10
- package/dist/bundle/notes-search-3VBVSQ3R.js +70 -0
- package/dist/bundle/oauth-M3E62ZHC.js +22 -0
- package/dist/bundle/{open-OXTE672W.js → open-WVRUVBIZ.js} +8 -8
- package/dist/bundle/{openai-EB3TPIZY.js → openai-JJWOSJMV.js} +22 -21
- package/dist/bundle/{process-F6TKXWWA.js → process-LPVAYRO7.js} +1 -1
- package/dist/bundle/{program-4IFDZ7FM.js → program-ZJRIP25J.js} +276 -1149
- package/dist/bundle/{prompt-F5RRHPN2.js → prompt-XCDHTEAO.js} +8 -8
- package/dist/bundle/{reasons-UORHJDHK.js → reasons-REEEQDAZ.js} +6 -5
- package/dist/bundle/{recognize-DAVNZND3.js → recognize-OZLFDJAT.js} +7 -7
- package/dist/bundle/remote-MDPYVCZB.js +35 -0
- package/dist/bundle/{rerank-CND2GVLZ.js → rerank-FLZWJNHA.js} +11 -11
- package/dist/bundle/{serve-ZHSPUIGX.js → serve-5UV5VLRV.js} +19 -19
- package/dist/bundle/{server-YMAK4LHC.js → server-53A2X2MK.js} +89 -70
- package/dist/bundle/server-5GMURMDE.js +97 -0
- package/dist/bundle/{services-ZILSFJ6E.js → services-XSMH7BXB.js} +109 -89
- package/dist/bundle/{sqlite-runtime-S5VPMZQH.js → sqlite-runtime-E3L7ENFU.js} +9 -9
- package/dist/bundle/{start-CR6X25RT.js → start-4S2VNR4J.js} +7 -7
- package/dist/bundle/{state-YFPHVIIJ.js → state-TQI4JSH7.js} +9 -9
- package/dist/bundle/{store-CL4ZJZRI.js → store-GS7PU6PJ.js} +38 -23
- package/dist/bundle/{store-UODRT6X4.js → store-VYJPL7MW.js} +36 -25
- package/dist/bundle/store-maintenance-command-JJVYUZMG.js +85 -0
- package/dist/bundle/surface-JC4XVMZR.js +83 -0
- package/dist/bundle/tokens-KJQ5EAPW.js +133 -0
- package/dist/commands/documents.d.ts.map +1 -1
- package/dist/commands/documents.js +11 -1
- package/dist/commands/documents.js.map +1 -1
- package/dist/commands/remote.d.ts.map +1 -1
- package/dist/commands/remote.js +8 -22
- package/dist/commands/remote.js.map +1 -1
- package/dist/commands/sync.d.ts.map +1 -1
- package/dist/commands/sync.js +14 -4
- package/dist/commands/sync.js.map +1 -1
- package/dist/config.d.ts +5 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +5 -0
- package/dist/config.js.map +1 -1
- package/dist/first-screen.d.ts.map +1 -1
- package/dist/first-screen.js +2 -1
- package/dist/first-screen.js.map +1 -1
- package/dist/generated/manifest.d.ts +2 -1
- package/dist/generated/manifest.d.ts.map +1 -1
- package/dist/generated/manifest.js +782 -0
- package/dist/generated/manifest.js.map +1 -1
- package/dist/generated/types.d.ts +262 -58
- package/dist/generated/types.d.ts.map +1 -1
- package/dist/google.d.ts.map +1 -1
- package/dist/google.js +5 -5
- package/dist/google.js.map +1 -1
- package/dist/model.d.ts +5 -2
- package/dist/model.d.ts.map +1 -1
- package/dist/model.js.map +1 -1
- package/dist/policy-keys.js +1 -1
- package/dist/policy-keys.js.map +1 -1
- package/dist/program.d.ts.map +1 -1
- package/dist/program.js +9 -4
- package/dist/program.js.map +1 -1
- package/dist/state.d.ts.map +1 -1
- package/dist/state.js +6 -1
- package/dist/state.js.map +1 -1
- package/dist/store.d.ts.map +1 -1
- package/dist/store.js +2 -7
- package/dist/store.js.map +1 -1
- package/dist/supported.d.ts +2 -2
- package/dist/supported.d.ts.map +1 -1
- package/dist/supported.js +2 -3
- package/dist/supported.js.map +1 -1
- package/dist/sync.d.ts +2 -1
- package/dist/sync.d.ts.map +1 -1
- package/dist/sync.js +5 -2
- package/dist/sync.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +3 -3
- package/scenarios/find-decision.md +1 -1
- package/skills/drive-cli/SKILL.md +4 -2
- package/dist/bundle/chunk-J5Q5FS2N.js +0 -593
- package/dist/bundle/chunk-L46C6HQ7.js +0 -729
- package/dist/bundle/chunk-UDMNY63V.js +0 -899
- package/dist/bundle/chunk-VKE77B3F.js +0 -2
- package/dist/bundle/command-contract-VRTOAV6W.js +0 -43
- package/dist/bundle/entry-MVXQETWS.js +0 -25
- package/dist/bundle/first-run-4UVLW2WR.js +0 -31
- package/dist/bundle/first-screen-JAKAIINI.js +0 -41
- package/dist/bundle/google-22NXXJX5.js +0 -45
- package/dist/bundle/grants-MQMTVCRQ.js +0 -118
- package/dist/bundle/mdast-util-gfm-SZM5GBDF.js +0 -2103
- package/dist/bundle/meeting-combined-LVP4AZKA.js +0 -27
- package/dist/bundle/meeting-model-RAY5XDXZ.js +0 -29
- package/dist/bundle/oauth-SGH2I2BY.js +0 -22
- package/dist/bundle/remote-D5EYYIAU.js +0 -35
- package/dist/bundle/server-DUVJWP3Q.js +0 -80
- package/dist/bundle/store-maintenance-command-DY5XIBWR.js +0 -72
- package/dist/bundle/tokens-AF7QOFOF.js +0 -118
|
@@ -2,7 +2,7 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
visibleControls
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-MDJUYCHT.js";
|
|
6
6
|
import {
|
|
7
7
|
BASE_REASONS,
|
|
8
8
|
COMMON_DETAILS,
|
|
@@ -10,16 +10,16 @@ import {
|
|
|
10
10
|
CRASH_REASON,
|
|
11
11
|
stepOf,
|
|
12
12
|
writes
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-OBDPKDGB.js";
|
|
14
14
|
import {
|
|
15
15
|
errorCodes,
|
|
16
16
|
isCliError
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-IBQZT2YD.js";
|
|
18
18
|
import {
|
|
19
19
|
__name
|
|
20
20
|
} from "./chunk-ZVVMGPBJ.js";
|
|
21
21
|
|
|
22
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
22
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/exit-codes.js
|
|
23
23
|
var EXIT_CODES = {
|
|
24
24
|
validation_error: 2,
|
|
25
25
|
configuration_error: 3,
|
|
@@ -40,7 +40,7 @@ var EXIT_CODES = {
|
|
|
40
40
|
var exitCodeFor = /* @__PURE__ */ __name((code) => EXIT_CODES[code], "exitCodeFor");
|
|
41
41
|
var GENERIC_FAILURE = 1;
|
|
42
42
|
|
|
43
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
43
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/failure.js
|
|
44
44
|
var recognise = /* @__PURE__ */ __name((failure) => {
|
|
45
45
|
if (isCliError(failure))
|
|
46
46
|
return failure;
|
|
@@ -5,15 +5,15 @@ import {
|
|
|
5
5
|
readLock,
|
|
6
6
|
releaseLock,
|
|
7
7
|
takeLock
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-JVM75M4H.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.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/mcp/http/state.js
|
|
14
14
|
import { existsSync as existsSync2, readFileSync as readFileSync2 } from "node:fs";
|
|
15
15
|
|
|
16
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/mcp/http/activity.js
|
|
17
17
|
import { randomBytes } from "node:crypto";
|
|
18
18
|
import { chmodSync, existsSync, mkdirSync, readFileSync, renameSync, writeFileSync } from "node:fs";
|
|
19
19
|
import { dirname } from "node:path";
|
|
@@ -86,7 +86,7 @@ var activityRecorder = /* @__PURE__ */ __name((path, now = Date.now) => {
|
|
|
86
86
|
};
|
|
87
87
|
}, "activityRecorder");
|
|
88
88
|
|
|
89
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
89
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/mcp/http/state.js
|
|
90
90
|
var ACCESS_SECONDS = 60 * 60;
|
|
91
91
|
var REFRESH_SECONDS = 30 * 24 * 60 * 60;
|
|
92
92
|
var readStored = /* @__PURE__ */ __name((path) => existsSync2(path) ? JSON.parse(readFileSync2(path, "utf8")) : { clients: [], tokens: [] }, "readStored");
|
|
@@ -0,0 +1,291 @@
|
|
|
1
|
+
import { createRequire as __bundleRequire } from "node:module";
|
|
2
|
+
const require = __bundleRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
__name
|
|
5
|
+
} from "./chunk-ZVVMGPBJ.js";
|
|
6
|
+
|
|
7
|
+
// node_modules/.pnpm/unist-util-is@6.0.1/node_modules/unist-util-is/lib/index.js
|
|
8
|
+
var convert = (
|
|
9
|
+
// Note: overloads in JSDoc can’t yet use different `@template`s.
|
|
10
|
+
/**
|
|
11
|
+
* @type {(
|
|
12
|
+
* (<Condition extends string>(test: Condition) => (node: unknown, index?: number | null | undefined, parent?: Parent | null | undefined, context?: unknown) => node is Node & {type: Condition}) &
|
|
13
|
+
* (<Condition extends Props>(test: Condition) => (node: unknown, index?: number | null | undefined, parent?: Parent | null | undefined, context?: unknown) => node is Node & Condition) &
|
|
14
|
+
* (<Condition extends TestFunction>(test: Condition) => (node: unknown, index?: number | null | undefined, parent?: Parent | null | undefined, context?: unknown) => node is Node & Predicate<Condition, Node>) &
|
|
15
|
+
* ((test?: null | undefined) => (node?: unknown, index?: number | null | undefined, parent?: Parent | null | undefined, context?: unknown) => node is Node) &
|
|
16
|
+
* ((test?: Test) => Check)
|
|
17
|
+
* )}
|
|
18
|
+
*/
|
|
19
|
+
/**
|
|
20
|
+
* @param {Test} [test]
|
|
21
|
+
* @returns {Check}
|
|
22
|
+
*/
|
|
23
|
+
/* @__PURE__ */ __name((function(test) {
|
|
24
|
+
if (test === null || test === void 0) {
|
|
25
|
+
return ok;
|
|
26
|
+
}
|
|
27
|
+
if (typeof test === "function") {
|
|
28
|
+
return castFactory(test);
|
|
29
|
+
}
|
|
30
|
+
if (typeof test === "object") {
|
|
31
|
+
return Array.isArray(test) ? anyFactory(test) : (
|
|
32
|
+
// Cast because `ReadonlyArray` goes into the above but `isArray`
|
|
33
|
+
// narrows to `Array`.
|
|
34
|
+
propertiesFactory(
|
|
35
|
+
/** @type {Props} */
|
|
36
|
+
test
|
|
37
|
+
)
|
|
38
|
+
);
|
|
39
|
+
}
|
|
40
|
+
if (typeof test === "string") {
|
|
41
|
+
return typeFactory(test);
|
|
42
|
+
}
|
|
43
|
+
throw new Error("Expected function, string, or object as test");
|
|
44
|
+
}), "convert")
|
|
45
|
+
);
|
|
46
|
+
function anyFactory(tests) {
|
|
47
|
+
const checks = [];
|
|
48
|
+
let index = -1;
|
|
49
|
+
while (++index < tests.length) {
|
|
50
|
+
checks[index] = convert(tests[index]);
|
|
51
|
+
}
|
|
52
|
+
return castFactory(any);
|
|
53
|
+
function any(...parameters) {
|
|
54
|
+
let index2 = -1;
|
|
55
|
+
while (++index2 < checks.length) {
|
|
56
|
+
if (checks[index2].apply(this, parameters)) return true;
|
|
57
|
+
}
|
|
58
|
+
return false;
|
|
59
|
+
}
|
|
60
|
+
__name(any, "any");
|
|
61
|
+
}
|
|
62
|
+
__name(anyFactory, "anyFactory");
|
|
63
|
+
function propertiesFactory(check) {
|
|
64
|
+
const checkAsRecord = (
|
|
65
|
+
/** @type {Record<string, unknown>} */
|
|
66
|
+
check
|
|
67
|
+
);
|
|
68
|
+
return castFactory(all);
|
|
69
|
+
function all(node) {
|
|
70
|
+
const nodeAsRecord = (
|
|
71
|
+
/** @type {Record<string, unknown>} */
|
|
72
|
+
/** @type {unknown} */
|
|
73
|
+
node
|
|
74
|
+
);
|
|
75
|
+
let key;
|
|
76
|
+
for (key in check) {
|
|
77
|
+
if (nodeAsRecord[key] !== checkAsRecord[key]) return false;
|
|
78
|
+
}
|
|
79
|
+
return true;
|
|
80
|
+
}
|
|
81
|
+
__name(all, "all");
|
|
82
|
+
}
|
|
83
|
+
__name(propertiesFactory, "propertiesFactory");
|
|
84
|
+
function typeFactory(check) {
|
|
85
|
+
return castFactory(type);
|
|
86
|
+
function type(node) {
|
|
87
|
+
return node && node.type === check;
|
|
88
|
+
}
|
|
89
|
+
__name(type, "type");
|
|
90
|
+
}
|
|
91
|
+
__name(typeFactory, "typeFactory");
|
|
92
|
+
function castFactory(testFunction) {
|
|
93
|
+
return check;
|
|
94
|
+
function check(value, index, parent) {
|
|
95
|
+
return Boolean(
|
|
96
|
+
looksLikeANode(value) && testFunction.call(
|
|
97
|
+
this,
|
|
98
|
+
value,
|
|
99
|
+
typeof index === "number" ? index : void 0,
|
|
100
|
+
parent || void 0
|
|
101
|
+
)
|
|
102
|
+
);
|
|
103
|
+
}
|
|
104
|
+
__name(check, "check");
|
|
105
|
+
}
|
|
106
|
+
__name(castFactory, "castFactory");
|
|
107
|
+
function ok() {
|
|
108
|
+
return true;
|
|
109
|
+
}
|
|
110
|
+
__name(ok, "ok");
|
|
111
|
+
function looksLikeANode(value) {
|
|
112
|
+
return value !== null && typeof value === "object" && "type" in value;
|
|
113
|
+
}
|
|
114
|
+
__name(looksLikeANode, "looksLikeANode");
|
|
115
|
+
|
|
116
|
+
// node_modules/.pnpm/unist-util-visit-parents@6.1.0/node_modules/unist-util-visit-parents/lib/color.node.js
|
|
117
|
+
function color(d) {
|
|
118
|
+
return "\x1B[33m" + d + "\x1B[39m";
|
|
119
|
+
}
|
|
120
|
+
__name(color, "color");
|
|
121
|
+
|
|
122
|
+
// node_modules/.pnpm/unist-util-visit-parents@6.1.0/node_modules/unist-util-visit-parents/lib/index.js
|
|
123
|
+
var empty = [];
|
|
124
|
+
var CONTINUE = true;
|
|
125
|
+
var EXIT = false;
|
|
126
|
+
var SKIP = "skip";
|
|
127
|
+
function visitParents(tree, testOrEnterOrVisitors, enterOrVisitorsOrReverse, reverse) {
|
|
128
|
+
if (!tree || typeof tree !== "object") {
|
|
129
|
+
throw new Error("Unexpected value `" + tree + "` for `tree`, expected node");
|
|
130
|
+
}
|
|
131
|
+
let preorder = true;
|
|
132
|
+
let check;
|
|
133
|
+
let visitors;
|
|
134
|
+
let enter;
|
|
135
|
+
let exit;
|
|
136
|
+
if (typeof enterOrVisitorsOrReverse === "function" || enterOrVisitorsOrReverse && typeof enterOrVisitorsOrReverse === "object") {
|
|
137
|
+
check = /** @type {Test} */
|
|
138
|
+
testOrEnterOrVisitors;
|
|
139
|
+
visitors = enterOrVisitorsOrReverse;
|
|
140
|
+
if (reverse) preorder = false;
|
|
141
|
+
} else {
|
|
142
|
+
visitors = /** @type {Visitors | Visitor} */
|
|
143
|
+
testOrEnterOrVisitors;
|
|
144
|
+
if (enterOrVisitorsOrReverse) preorder = false;
|
|
145
|
+
}
|
|
146
|
+
if (typeof visitors === "function") {
|
|
147
|
+
enter = visitors;
|
|
148
|
+
} else if (visitors && typeof visitors === "object") {
|
|
149
|
+
if (visitors.enter === null || visitors.enter === void 0) {
|
|
150
|
+
} else if (typeof visitors.enter === "function") {
|
|
151
|
+
enter = visitors.enter;
|
|
152
|
+
} else {
|
|
153
|
+
throw new Error(
|
|
154
|
+
"Unexpected value `" + visitors.enter + "` for `visitors.enter`, expected optional visitor"
|
|
155
|
+
);
|
|
156
|
+
}
|
|
157
|
+
if (typeof visitors.exit === "function") {
|
|
158
|
+
exit = visitors.exit;
|
|
159
|
+
} else {
|
|
160
|
+
throw new Error(
|
|
161
|
+
"Unexpected value `" + visitors.exit + "` for `visitors.exit`, expected visitor (pass a visitor directly if you only want an enter visitor)"
|
|
162
|
+
);
|
|
163
|
+
}
|
|
164
|
+
} else {
|
|
165
|
+
throw new Error(
|
|
166
|
+
"Unexpected value `" + visitors + "` for `enter` or `visitors`, expected visitor or object with visitors"
|
|
167
|
+
);
|
|
168
|
+
}
|
|
169
|
+
const is2 = convert(check);
|
|
170
|
+
const step = preorder ? 1 : -1;
|
|
171
|
+
factory(tree, void 0, [])();
|
|
172
|
+
function factory(node, index, parents) {
|
|
173
|
+
const value = (
|
|
174
|
+
/** @type {Record<string, unknown>} */
|
|
175
|
+
node && typeof node === "object" ? node : {}
|
|
176
|
+
);
|
|
177
|
+
if (typeof value.type === "string") {
|
|
178
|
+
const name = (
|
|
179
|
+
// `hast`
|
|
180
|
+
typeof value.tagName === "string" ? value.tagName : (
|
|
181
|
+
// `xast`
|
|
182
|
+
typeof value.name === "string" ? value.name : void 0
|
|
183
|
+
)
|
|
184
|
+
);
|
|
185
|
+
Object.defineProperty(visit2, "name", {
|
|
186
|
+
value: "node (" + color(node.type + (name ? "<" + name + ">" : "")) + ")"
|
|
187
|
+
});
|
|
188
|
+
}
|
|
189
|
+
return visit2;
|
|
190
|
+
function visit2() {
|
|
191
|
+
const matches = !check || is2(node, index, parents[parents.length - 1] || void 0);
|
|
192
|
+
let result = empty;
|
|
193
|
+
if (enter && matches) {
|
|
194
|
+
result = toResult(enter(node, parents, index));
|
|
195
|
+
if (result[0] === EXIT) {
|
|
196
|
+
return result;
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
if ("children" in node && node.children) {
|
|
200
|
+
const nodeAsParent = (
|
|
201
|
+
/** @type {UnistParent} */
|
|
202
|
+
node
|
|
203
|
+
);
|
|
204
|
+
if (nodeAsParent.children && result[0] !== SKIP) {
|
|
205
|
+
let offset = (preorder ? -1 : nodeAsParent.children.length) + step;
|
|
206
|
+
const grandparents = [...parents, nodeAsParent];
|
|
207
|
+
while (offset > -1 && offset < nodeAsParent.children.length) {
|
|
208
|
+
const child = nodeAsParent.children[offset];
|
|
209
|
+
const subresult = factory(child, offset, grandparents)();
|
|
210
|
+
if (subresult[0] === EXIT) {
|
|
211
|
+
return subresult;
|
|
212
|
+
}
|
|
213
|
+
offset = typeof subresult[1] === "number" ? subresult[1] : offset + step;
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
if (exit && matches) {
|
|
218
|
+
const exitResult = toResult(exit(node, parents, index));
|
|
219
|
+
if (exitResult[0] === SKIP) {
|
|
220
|
+
throw new Error(
|
|
221
|
+
"Unexpected value `" + exitResult[0] + "` from `exit`, expected `CONTINUE`, `EXIT`, index, or nothing"
|
|
222
|
+
);
|
|
223
|
+
}
|
|
224
|
+
if (exitResult[0] === EXIT || typeof exitResult[1] === "number") {
|
|
225
|
+
return exitResult;
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
return result;
|
|
229
|
+
}
|
|
230
|
+
__name(visit2, "visit");
|
|
231
|
+
}
|
|
232
|
+
__name(factory, "factory");
|
|
233
|
+
}
|
|
234
|
+
__name(visitParents, "visitParents");
|
|
235
|
+
function toResult(value) {
|
|
236
|
+
if (Array.isArray(value)) {
|
|
237
|
+
return value;
|
|
238
|
+
}
|
|
239
|
+
if (typeof value === "number") {
|
|
240
|
+
return [CONTINUE, value];
|
|
241
|
+
}
|
|
242
|
+
return value === null || value === void 0 ? empty : [value];
|
|
243
|
+
}
|
|
244
|
+
__name(toResult, "toResult");
|
|
245
|
+
|
|
246
|
+
// node_modules/.pnpm/unist-util-visit@5.2.0/node_modules/unist-util-visit/lib/index.js
|
|
247
|
+
function visit(tree, testOrEnterOrVisitors, enterOrVisitorsOrReverse, maybeReverse) {
|
|
248
|
+
let check;
|
|
249
|
+
let visitors;
|
|
250
|
+
let reverse;
|
|
251
|
+
if (typeof enterOrVisitorsOrReverse === "function" || enterOrVisitorsOrReverse && typeof enterOrVisitorsOrReverse === "object") {
|
|
252
|
+
check = /** @type {Test} */
|
|
253
|
+
testOrEnterOrVisitors;
|
|
254
|
+
visitors = enterOrVisitorsOrReverse;
|
|
255
|
+
reverse = maybeReverse;
|
|
256
|
+
} else {
|
|
257
|
+
visitors = /** @type {Visitor | Visitors} */
|
|
258
|
+
testOrEnterOrVisitors;
|
|
259
|
+
reverse = enterOrVisitorsOrReverse;
|
|
260
|
+
}
|
|
261
|
+
if (typeof visitors === "function") {
|
|
262
|
+
visitParents(tree, check, wrap(visitors), reverse);
|
|
263
|
+
} else {
|
|
264
|
+
visitParents(tree, check, wrapVisitors(visitors), reverse);
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
__name(visit, "visit");
|
|
268
|
+
function wrapVisitors(visitors) {
|
|
269
|
+
if (!visitors || typeof visitors !== "object") return visitors;
|
|
270
|
+
return {
|
|
271
|
+
enter: typeof visitors.enter === "function" ? wrap(visitors.enter) : visitors.enter,
|
|
272
|
+
exit: typeof visitors.exit === "function" ? wrap(visitors.exit) : visitors.exit
|
|
273
|
+
};
|
|
274
|
+
}
|
|
275
|
+
__name(wrapVisitors, "wrapVisitors");
|
|
276
|
+
function wrap(visitor) {
|
|
277
|
+
return overload;
|
|
278
|
+
function overload(node, parents, index) {
|
|
279
|
+
return visitor(node, index, parents[parents.length - 1]);
|
|
280
|
+
}
|
|
281
|
+
__name(overload, "overload");
|
|
282
|
+
}
|
|
283
|
+
__name(wrap, "wrap");
|
|
284
|
+
|
|
285
|
+
export {
|
|
286
|
+
convert,
|
|
287
|
+
EXIT,
|
|
288
|
+
SKIP,
|
|
289
|
+
visitParents,
|
|
290
|
+
visit
|
|
291
|
+
};
|
|
@@ -3,17 +3,17 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
DOC,
|
|
5
5
|
SHEET
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-PUVQOZ2N.js";
|
|
7
7
|
import {
|
|
8
8
|
CliError
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-IBQZT2YD.js";
|
|
10
10
|
import {
|
|
11
11
|
__name
|
|
12
12
|
} from "./chunk-ZVVMGPBJ.js";
|
|
13
13
|
|
|
14
14
|
// dist/supported.js
|
|
15
15
|
var MAX_ENTRIES = 1e4;
|
|
16
|
-
var tooManyEntries = /* @__PURE__ */ __name(() => new CliError("provider_error", `the
|
|
16
|
+
var tooManyEntries = /* @__PURE__ */ __name((what, fix) => new CliError("provider_error", `the ${what} has more than ${MAX_ENTRIES} entries, the most drive reads at once; ${fix}`, { reason: "listing.too-large" }), "tooManyEntries");
|
|
17
17
|
var XLSX = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet";
|
|
18
18
|
var READABLE = /* @__PURE__ */ new Set([
|
|
19
19
|
"application/pdf",
|
|
@@ -4,12 +4,6 @@ import {
|
|
|
4
4
|
__name
|
|
5
5
|
} from "./chunk-ZVVMGPBJ.js";
|
|
6
6
|
|
|
7
|
-
// node_modules/.pnpm/micromark-util-normalize-identifier@2.0.1/node_modules/micromark-util-normalize-identifier/index.js
|
|
8
|
-
function normalizeIdentifier(value) {
|
|
9
|
-
return value.replace(/[\t\n\r ]+/g, " ").replace(/^ | $/g, "").toLowerCase().toUpperCase();
|
|
10
|
-
}
|
|
11
|
-
__name(normalizeIdentifier, "normalizeIdentifier");
|
|
12
|
-
|
|
13
7
|
// node_modules/.pnpm/micromark-util-character@2.1.1/node_modules/micromark-util-character/index.js
|
|
14
8
|
var asciiAlpha = regexCheck(/[A-Za-z]/);
|
|
15
9
|
var asciiAlphanumeric = regexCheck(/[\dA-Za-z]/);
|
|
@@ -49,7 +43,6 @@ function regexCheck(regex) {
|
|
|
49
43
|
__name(regexCheck, "regexCheck");
|
|
50
44
|
|
|
51
45
|
export {
|
|
52
|
-
normalizeIdentifier,
|
|
53
46
|
asciiAlpha,
|
|
54
47
|
asciiAlphanumeric,
|
|
55
48
|
asciiAtext,
|
|
@@ -2,12 +2,12 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
singleLine
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-MDJUYCHT.js";
|
|
6
6
|
import {
|
|
7
7
|
__name
|
|
8
8
|
} from "./chunk-ZVVMGPBJ.js";
|
|
9
9
|
|
|
10
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
10
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/wcat/names.js
|
|
11
11
|
var FIRST_PARTY_TOOLS = [
|
|
12
12
|
{ name: "tg", package: "@wirecat/tg-cli" },
|
|
13
13
|
{ name: "max", package: "@wirecat/max-cli" },
|
|
@@ -31,7 +31,7 @@ var DESCRIBE_FLAG = "--wcat-describe";
|
|
|
31
31
|
var DESCRIBE_MAX_BYTES = 64 * 1024;
|
|
32
32
|
var DISPATCH_FLAG = "--wcat-dispatch";
|
|
33
33
|
|
|
34
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
34
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/wcat/describe.js
|
|
35
35
|
var DESCRIBE_FORMAT = 1;
|
|
36
36
|
var DESCRIBE_MANIFEST_FORMAT = 2;
|
|
37
37
|
var describeAnswer = /* @__PURE__ */ __name((tool, manifest) => {
|
|
@@ -74,7 +74,7 @@ var parseDescribe = /* @__PURE__ */ __name((text) => {
|
|
|
74
74
|
};
|
|
75
75
|
}, "parseDescribe");
|
|
76
76
|
|
|
77
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
77
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/wcat/shim.js
|
|
78
78
|
import { lstatSync, readFileSync, renameSync, rmSync, statSync, writeFileSync } from "node:fs";
|
|
79
79
|
import { join } from "node:path";
|
|
80
80
|
var SHIM_FORMAT = 2;
|
|
@@ -9,15 +9,15 @@ import {
|
|
|
9
9
|
optional,
|
|
10
10
|
pipe,
|
|
11
11
|
safeParse
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-OBDPKDGB.js";
|
|
13
13
|
import {
|
|
14
14
|
CliError
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-IBQZT2YD.js";
|
|
16
16
|
import {
|
|
17
17
|
__name
|
|
18
18
|
} from "./chunk-ZVVMGPBJ.js";
|
|
19
19
|
|
|
20
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/models/options.js
|
|
21
21
|
var checkedOptions = /* @__PURE__ */ __name((provider, schema, options) => {
|
|
22
22
|
const parsed = safeParse(schema, options);
|
|
23
23
|
if (!parsed.success) {
|
|
@@ -27,7 +27,7 @@ var checkedOptions = /* @__PURE__ */ __name((provider, schema, options) => {
|
|
|
27
27
|
}, "checkedOptions");
|
|
28
28
|
var range = /* @__PURE__ */ __name((min, max) => optional(pipe(number(), finite(), minValue(min), maxValue(max))), "range");
|
|
29
29
|
|
|
30
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/models/types.js
|
|
31
31
|
var MAX_MODEL_IMAGE_BYTES = 4 * 1024 * 1024;
|
|
32
32
|
var validateImages = /* @__PURE__ */ __name((images) => {
|
|
33
33
|
if (images === void 0)
|
|
@@ -3,12 +3,12 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
CliError,
|
|
5
5
|
errorCodes
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-IBQZT2YD.js";
|
|
7
7
|
import {
|
|
8
8
|
__name
|
|
9
9
|
} from "./chunk-ZVVMGPBJ.js";
|
|
10
10
|
|
|
11
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/errors/failures.js
|
|
12
12
|
var isCliFailure = /* @__PURE__ */ __name((value) => value instanceof Error && value.name === "CliError" && errorCodes.includes(value.code), "isCliFailure");
|
|
13
13
|
var isCommanderFailure = /* @__PURE__ */ __name((value) => {
|
|
14
14
|
const { code, exitCode } = value ?? {};
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { createRequire as __bundleRequire } from "node:module";
|
|
2
|
+
const require = __bundleRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
AUTHORITY_KEY,
|
|
5
|
+
BOT_API_KEY,
|
|
6
|
+
authorityAllowed,
|
|
7
|
+
botApiAllowed,
|
|
8
|
+
changesMessenger,
|
|
9
|
+
isBotApi,
|
|
10
|
+
keyForCommand,
|
|
11
|
+
levelFor,
|
|
12
|
+
readKeysForCommand
|
|
13
|
+
} from "./chunk-JRED7BNX.js";
|
|
14
|
+
import {
|
|
15
|
+
writes
|
|
16
|
+
} from "./chunk-OBDPKDGB.js";
|
|
17
|
+
import {
|
|
18
|
+
__name
|
|
19
|
+
} from "./chunk-ZVVMGPBJ.js";
|
|
20
|
+
|
|
21
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/cli/command-availability.js
|
|
22
|
+
var commandAvailability = /* @__PURE__ */ __name((info, levels, keyOf, authority, readOnly = false, mcp = true, declared, fetches) => {
|
|
23
|
+
const declaredKey = declared?.keyOf(info.path);
|
|
24
|
+
const key = declared ? declaredKey : keyOf?.(info.path) ?? keyForCommand(info.path);
|
|
25
|
+
const { level } = key ? levelFor(levels, key, declared?.defaults) : { level: "allow" };
|
|
26
|
+
const judged = { ...key ? { permission: key } : {}, level };
|
|
27
|
+
const blocked = /* @__PURE__ */ __name((reason, permission) => ({
|
|
28
|
+
available: false,
|
|
29
|
+
reason,
|
|
30
|
+
...judged,
|
|
31
|
+
...permission && permission !== judged.permission ? { permission, level: levelFor(levels, permission).level } : {}
|
|
32
|
+
}), "blocked");
|
|
33
|
+
const declaredChange = Boolean(declaredKey) && (info.effects === void 0 || info.effects.remote === "write");
|
|
34
|
+
if (readOnly && (changesMessenger(info) || declaredChange || authority?.(info.path)))
|
|
35
|
+
return blocked("the read-only lock blocks this change");
|
|
36
|
+
if (mcp && authority?.(info.path) && !authorityAllowed(levels))
|
|
37
|
+
return blocked(`the profile keeps ${AUTHORITY_KEY} off`, AUTHORITY_KEY);
|
|
38
|
+
if (mcp && isBotApi(info.path) && !botApiAllowed(levels))
|
|
39
|
+
return blocked(`the profile requires ${BOT_API_KEY}: allow`, BOT_API_KEY);
|
|
40
|
+
if (level === "deny")
|
|
41
|
+
return blocked(`the profile denies ${key}`);
|
|
42
|
+
if (level === "readonly" && writes(info.effects) && fetches?.(info.path) !== true)
|
|
43
|
+
return blocked(`${key} is readonly in this profile`);
|
|
44
|
+
const denied = (declared ? [] : readKeysForCommand(info.path)).find((read) => levelFor(levels, read).level === "deny");
|
|
45
|
+
return denied ? blocked(`the profile denies ${denied}`, denied) : { available: true, ...judged };
|
|
46
|
+
}, "commandAvailability");
|
|
47
|
+
|
|
48
|
+
export {
|
|
49
|
+
commandAvailability
|
|
50
|
+
};
|