@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
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
__name
|
|
5
5
|
} from "./chunk-ZVVMGPBJ.js";
|
|
6
6
|
|
|
7
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
7
|
+
// node_modules/.pnpm/@wirecat+cli-base@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/sanitize.js
|
|
8
8
|
var CONTROL = (
|
|
9
9
|
// biome-ignore lint/suspicious/noControlCharactersInRegex: matching them is the whole point
|
|
10
10
|
/[\u0000-\u0008\u000B-\u001F\u007F-\u009F\u200B\u200E\u200F\u202A-\u202E\u2066-\u2069\uFEFF\u{E0000}-\u{E007F}]/gu
|
|
@@ -0,0 +1,25 @@
|
|
|
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/ccount@2.0.1/node_modules/ccount/index.js
|
|
8
|
+
function ccount(value, character) {
|
|
9
|
+
const source = String(value);
|
|
10
|
+
if (typeof character !== "string") {
|
|
11
|
+
throw new TypeError("Expected character");
|
|
12
|
+
}
|
|
13
|
+
let count = 0;
|
|
14
|
+
let index = source.indexOf(character);
|
|
15
|
+
while (index !== -1) {
|
|
16
|
+
count++;
|
|
17
|
+
index = source.indexOf(character, index + character.length);
|
|
18
|
+
}
|
|
19
|
+
return count;
|
|
20
|
+
}
|
|
21
|
+
__name(ccount, "ccount");
|
|
22
|
+
|
|
23
|
+
export {
|
|
24
|
+
ccount
|
|
25
|
+
};
|
|
@@ -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.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/background/processes.js
|
|
8
8
|
import { execFileSync } from "node:child_process";
|
|
9
9
|
import { readdirSync, readFileSync, readlinkSync } from "node:fs";
|
|
10
10
|
var alive = /* @__PURE__ */ __name((pid) => {
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { createRequire as __bundleRequire } from "node:module";
|
|
2
|
+
const require = __bundleRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
convert
|
|
5
|
+
} from "./chunk-TRYYWV7J.js";
|
|
6
|
+
|
|
7
|
+
// node_modules/.pnpm/mdast-util-phrasing@4.1.0/node_modules/mdast-util-phrasing/lib/index.js
|
|
8
|
+
var phrasing = (
|
|
9
|
+
/** @type {(node?: unknown) => node is Exclude<PhrasingContent, Html>} */
|
|
10
|
+
convert([
|
|
11
|
+
"break",
|
|
12
|
+
"delete",
|
|
13
|
+
"emphasis",
|
|
14
|
+
// To do: next major: removed since footnotes were added to GFM.
|
|
15
|
+
"footnote",
|
|
16
|
+
"footnoteReference",
|
|
17
|
+
"image",
|
|
18
|
+
"imageReference",
|
|
19
|
+
"inlineCode",
|
|
20
|
+
// Enabled by `mdast-util-math`:
|
|
21
|
+
"inlineMath",
|
|
22
|
+
"link",
|
|
23
|
+
"linkReference",
|
|
24
|
+
// Enabled by `mdast-util-mdx`:
|
|
25
|
+
"mdxJsxTextElement",
|
|
26
|
+
// Enabled by `mdast-util-mdx`:
|
|
27
|
+
"mdxTextExpression",
|
|
28
|
+
"strong",
|
|
29
|
+
"text",
|
|
30
|
+
// Enabled by `mdast-util-directive`:
|
|
31
|
+
"textDirective"
|
|
32
|
+
])
|
|
33
|
+
);
|
|
34
|
+
|
|
35
|
+
export {
|
|
36
|
+
phrasing
|
|
37
|
+
};
|
|
@@ -171,7 +171,9 @@ var fdt = new u8(32);
|
|
|
171
171
|
for (i = 0; i < 32; ++i)
|
|
172
172
|
fdt[i] = 5;
|
|
173
173
|
var i;
|
|
174
|
+
var flm = /* @__PURE__ */ hMap(flt, 9, 0);
|
|
174
175
|
var flrm = /* @__PURE__ */ hMap(flt, 9, 1);
|
|
176
|
+
var fdm = /* @__PURE__ */ hMap(fdt, 5, 0);
|
|
175
177
|
var fdrm = /* @__PURE__ */ hMap(fdt, 5, 1);
|
|
176
178
|
var max = /* @__PURE__ */ __name(function(a) {
|
|
177
179
|
var m = a[0];
|
|
@@ -367,7 +369,321 @@ var inflt = /* @__PURE__ */ __name(function(dat, st, buf, dict) {
|
|
|
367
369
|
} while (!final);
|
|
368
370
|
return bt != buf.length && noBuf ? slc(buf, 0, bt) : buf.subarray(0, bt);
|
|
369
371
|
}, "inflt");
|
|
372
|
+
var wbits = /* @__PURE__ */ __name(function(d, p, v) {
|
|
373
|
+
v <<= p & 7;
|
|
374
|
+
var o = p / 8 | 0;
|
|
375
|
+
d[o] |= v;
|
|
376
|
+
d[o + 1] |= v >> 8;
|
|
377
|
+
}, "wbits");
|
|
378
|
+
var wbits16 = /* @__PURE__ */ __name(function(d, p, v) {
|
|
379
|
+
v <<= p & 7;
|
|
380
|
+
var o = p / 8 | 0;
|
|
381
|
+
d[o] |= v;
|
|
382
|
+
d[o + 1] |= v >> 8;
|
|
383
|
+
d[o + 2] |= v >> 16;
|
|
384
|
+
}, "wbits16");
|
|
385
|
+
var hTree = /* @__PURE__ */ __name(function(d, mb) {
|
|
386
|
+
var t = [];
|
|
387
|
+
for (var i2 = 0; i2 < d.length; ++i2) {
|
|
388
|
+
if (d[i2])
|
|
389
|
+
t.push({ s: i2, f: d[i2] });
|
|
390
|
+
}
|
|
391
|
+
var s = t.length;
|
|
392
|
+
var t2 = t.slice();
|
|
393
|
+
if (!s)
|
|
394
|
+
return { t: et, l: 0 };
|
|
395
|
+
if (s == 1) {
|
|
396
|
+
var v = new u8(t[0].s + 1);
|
|
397
|
+
v[t[0].s] = 1;
|
|
398
|
+
return { t: v, l: 1 };
|
|
399
|
+
}
|
|
400
|
+
t.sort(function(a, b) {
|
|
401
|
+
return a.f - b.f;
|
|
402
|
+
});
|
|
403
|
+
t.push({ s: -1, f: 25001 });
|
|
404
|
+
var l = t[0], r = t[1], i0 = 0, i1 = 1, i22 = 2;
|
|
405
|
+
t[0] = { s: -1, f: l.f + r.f, l, r };
|
|
406
|
+
while (i1 != s - 1) {
|
|
407
|
+
l = t[t[i0].f < t[i22].f ? i0++ : i22++];
|
|
408
|
+
r = t[i0 != i1 && t[i0].f < t[i22].f ? i0++ : i22++];
|
|
409
|
+
t[i1++] = { s: -1, f: l.f + r.f, l, r };
|
|
410
|
+
}
|
|
411
|
+
var maxSym = t2[0].s;
|
|
412
|
+
for (var i2 = 1; i2 < s; ++i2) {
|
|
413
|
+
if (t2[i2].s > maxSym)
|
|
414
|
+
maxSym = t2[i2].s;
|
|
415
|
+
}
|
|
416
|
+
var tr = new u16(maxSym + 1);
|
|
417
|
+
var mbt = ln(t[i1 - 1], tr, 0);
|
|
418
|
+
if (mbt > mb) {
|
|
419
|
+
var i2 = 0, dt = 0;
|
|
420
|
+
var lft = mbt - mb, cst = 1 << lft;
|
|
421
|
+
t2.sort(function(a, b) {
|
|
422
|
+
return tr[b.s] - tr[a.s] || a.f - b.f;
|
|
423
|
+
});
|
|
424
|
+
for (; i2 < s; ++i2) {
|
|
425
|
+
var i2_1 = t2[i2].s;
|
|
426
|
+
if (tr[i2_1] > mb) {
|
|
427
|
+
dt += cst - (1 << mbt - tr[i2_1]);
|
|
428
|
+
tr[i2_1] = mb;
|
|
429
|
+
} else
|
|
430
|
+
break;
|
|
431
|
+
}
|
|
432
|
+
dt >>= lft;
|
|
433
|
+
while (dt > 0) {
|
|
434
|
+
var i2_2 = t2[i2].s;
|
|
435
|
+
if (tr[i2_2] < mb)
|
|
436
|
+
dt -= 1 << mb - tr[i2_2]++ - 1;
|
|
437
|
+
else
|
|
438
|
+
++i2;
|
|
439
|
+
}
|
|
440
|
+
for (; i2 >= 0 && dt; --i2) {
|
|
441
|
+
var i2_3 = t2[i2].s;
|
|
442
|
+
if (tr[i2_3] == mb) {
|
|
443
|
+
--tr[i2_3];
|
|
444
|
+
++dt;
|
|
445
|
+
}
|
|
446
|
+
}
|
|
447
|
+
mbt = mb;
|
|
448
|
+
}
|
|
449
|
+
return { t: new u8(tr), l: mbt };
|
|
450
|
+
}, "hTree");
|
|
451
|
+
var ln = /* @__PURE__ */ __name(function(n, l, d) {
|
|
452
|
+
return n.s == -1 ? Math.max(ln(n.l, l, d + 1), ln(n.r, l, d + 1)) : l[n.s] = d;
|
|
453
|
+
}, "ln");
|
|
454
|
+
var lc = /* @__PURE__ */ __name(function(c) {
|
|
455
|
+
var s = c.length;
|
|
456
|
+
while (s && !c[--s])
|
|
457
|
+
;
|
|
458
|
+
var cl = new u16(++s);
|
|
459
|
+
var cli = 0, cln = c[0], cls = 1;
|
|
460
|
+
var w = /* @__PURE__ */ __name(function(v) {
|
|
461
|
+
cl[cli++] = v;
|
|
462
|
+
}, "w");
|
|
463
|
+
for (var i2 = 1; i2 <= s; ++i2) {
|
|
464
|
+
if (c[i2] == cln && i2 != s)
|
|
465
|
+
++cls;
|
|
466
|
+
else {
|
|
467
|
+
if (!cln && cls > 2) {
|
|
468
|
+
for (; cls > 138; cls -= 138)
|
|
469
|
+
w(32754);
|
|
470
|
+
if (cls > 2) {
|
|
471
|
+
w(cls > 10 ? cls - 11 << 5 | 28690 : cls - 3 << 5 | 12305);
|
|
472
|
+
cls = 0;
|
|
473
|
+
}
|
|
474
|
+
} else if (cls > 3) {
|
|
475
|
+
w(cln), --cls;
|
|
476
|
+
for (; cls > 6; cls -= 6)
|
|
477
|
+
w(8304);
|
|
478
|
+
if (cls > 2)
|
|
479
|
+
w(cls - 3 << 5 | 8208), cls = 0;
|
|
480
|
+
}
|
|
481
|
+
while (cls--)
|
|
482
|
+
w(cln);
|
|
483
|
+
cls = 1;
|
|
484
|
+
cln = c[i2];
|
|
485
|
+
}
|
|
486
|
+
}
|
|
487
|
+
return { c: cl.subarray(0, cli), n: s };
|
|
488
|
+
}, "lc");
|
|
489
|
+
var clen = /* @__PURE__ */ __name(function(cf, cl) {
|
|
490
|
+
var l = 0;
|
|
491
|
+
for (var i2 = 0; i2 < cl.length; ++i2)
|
|
492
|
+
l += cf[i2] * cl[i2];
|
|
493
|
+
return l;
|
|
494
|
+
}, "clen");
|
|
495
|
+
var wfblk = /* @__PURE__ */ __name(function(out, pos, dat) {
|
|
496
|
+
var s = dat.length;
|
|
497
|
+
var o = shft(pos + 2);
|
|
498
|
+
out[o] = s & 255;
|
|
499
|
+
out[o + 1] = s >> 8;
|
|
500
|
+
out[o + 2] = out[o] ^ 255;
|
|
501
|
+
out[o + 3] = out[o + 1] ^ 255;
|
|
502
|
+
for (var i2 = 0; i2 < s; ++i2)
|
|
503
|
+
out[o + i2 + 4] = dat[i2];
|
|
504
|
+
return (o + 4 + s) * 8;
|
|
505
|
+
}, "wfblk");
|
|
506
|
+
var wblk = /* @__PURE__ */ __name(function(dat, out, final, syms, lf, df, eb, li, bs, bl, p) {
|
|
507
|
+
wbits(out, p++, final);
|
|
508
|
+
++lf[256];
|
|
509
|
+
var _a2 = hTree(lf, 15), dlt = _a2.t, mlb = _a2.l;
|
|
510
|
+
var _b2 = hTree(df, 15), ddt = _b2.t, mdb = _b2.l;
|
|
511
|
+
var _c = lc(dlt), lclt = _c.c, nlc = _c.n;
|
|
512
|
+
var _d = lc(ddt), lcdt = _d.c, ndc = _d.n;
|
|
513
|
+
var lcfreq = new u16(19);
|
|
514
|
+
for (var i2 = 0; i2 < lclt.length; ++i2)
|
|
515
|
+
++lcfreq[lclt[i2] & 31];
|
|
516
|
+
for (var i2 = 0; i2 < lcdt.length; ++i2)
|
|
517
|
+
++lcfreq[lcdt[i2] & 31];
|
|
518
|
+
var _e = hTree(lcfreq, 7), lct = _e.t, mlcb = _e.l;
|
|
519
|
+
var nlcc = 19;
|
|
520
|
+
for (; nlcc > 4 && !lct[clim[nlcc - 1]]; --nlcc)
|
|
521
|
+
;
|
|
522
|
+
var flen = bl + 5 << 3;
|
|
523
|
+
var ftlen = clen(lf, flt) + clen(df, fdt) + eb;
|
|
524
|
+
var dtlen = clen(lf, dlt) + clen(df, ddt) + eb + 14 + 3 * nlcc + clen(lcfreq, lct) + 2 * lcfreq[16] + 3 * lcfreq[17] + 7 * lcfreq[18];
|
|
525
|
+
if (bs >= 0 && flen <= ftlen && flen <= dtlen)
|
|
526
|
+
return wfblk(out, p, dat.subarray(bs, bs + bl));
|
|
527
|
+
var lm, ll, dm, dl;
|
|
528
|
+
wbits(out, p, 1 + (dtlen < ftlen)), p += 2;
|
|
529
|
+
if (dtlen < ftlen) {
|
|
530
|
+
lm = hMap(dlt, mlb, 0), ll = dlt, dm = hMap(ddt, mdb, 0), dl = ddt;
|
|
531
|
+
var llm = hMap(lct, mlcb, 0);
|
|
532
|
+
wbits(out, p, nlc - 257);
|
|
533
|
+
wbits(out, p + 5, ndc - 1);
|
|
534
|
+
wbits(out, p + 10, nlcc - 4);
|
|
535
|
+
p += 14;
|
|
536
|
+
for (var i2 = 0; i2 < nlcc; ++i2)
|
|
537
|
+
wbits(out, p + 3 * i2, lct[clim[i2]]);
|
|
538
|
+
p += 3 * nlcc;
|
|
539
|
+
var lcts = [lclt, lcdt];
|
|
540
|
+
for (var it = 0; it < 2; ++it) {
|
|
541
|
+
var clct = lcts[it];
|
|
542
|
+
for (var i2 = 0; i2 < clct.length; ++i2) {
|
|
543
|
+
var len = clct[i2] & 31;
|
|
544
|
+
wbits(out, p, llm[len]), p += lct[len];
|
|
545
|
+
if (len > 15)
|
|
546
|
+
wbits(out, p, clct[i2] >> 5 & 127), p += clct[i2] >> 12;
|
|
547
|
+
}
|
|
548
|
+
}
|
|
549
|
+
} else {
|
|
550
|
+
lm = flm, ll = flt, dm = fdm, dl = fdt;
|
|
551
|
+
}
|
|
552
|
+
for (var i2 = 0; i2 < li; ++i2) {
|
|
553
|
+
var sym = syms[i2];
|
|
554
|
+
if (sym > 255) {
|
|
555
|
+
var len = sym >> 18 & 31;
|
|
556
|
+
wbits16(out, p, lm[len + 257]), p += ll[len + 257];
|
|
557
|
+
if (len > 7)
|
|
558
|
+
wbits(out, p, sym >> 23 & 31), p += fleb[len];
|
|
559
|
+
var dst = sym & 31;
|
|
560
|
+
wbits16(out, p, dm[dst]), p += dl[dst];
|
|
561
|
+
if (dst > 3)
|
|
562
|
+
wbits16(out, p, sym >> 5 & 8191), p += fdeb[dst];
|
|
563
|
+
} else {
|
|
564
|
+
wbits16(out, p, lm[sym]), p += ll[sym];
|
|
565
|
+
}
|
|
566
|
+
}
|
|
567
|
+
wbits16(out, p, lm[256]);
|
|
568
|
+
return p + ll[256];
|
|
569
|
+
}, "wblk");
|
|
570
|
+
var deo = /* @__PURE__ */ new i32([65540, 131080, 131088, 131104, 262176, 1048704, 1048832, 2114560, 2117632]);
|
|
370
571
|
var et = /* @__PURE__ */ new u8(0);
|
|
572
|
+
var dflt = /* @__PURE__ */ __name(function(dat, lvl, plvl, pre, post, st) {
|
|
573
|
+
var s = st.z || dat.length;
|
|
574
|
+
var o = new u8(pre + s + 5 * (1 + Math.ceil(s / 7e3)) + post);
|
|
575
|
+
var w = o.subarray(pre, o.length - post);
|
|
576
|
+
var lst = st.l;
|
|
577
|
+
var pos = (st.r || 0) & 7;
|
|
578
|
+
if (lvl) {
|
|
579
|
+
if (pos)
|
|
580
|
+
w[0] = st.r >> 3;
|
|
581
|
+
var opt = deo[lvl - 1];
|
|
582
|
+
var n = opt >> 13, c = opt & 8191;
|
|
583
|
+
var msk_1 = (1 << plvl) - 1;
|
|
584
|
+
var prev = st.p || new u16(32768), head = st.h || new u16(msk_1 + 1);
|
|
585
|
+
var bs1_1 = Math.ceil(plvl / 3), bs2_1 = 2 * bs1_1;
|
|
586
|
+
var hsh = /* @__PURE__ */ __name(function(i3) {
|
|
587
|
+
return (dat[i3] ^ dat[i3 + 1] << bs1_1 ^ dat[i3 + 2] << bs2_1) & msk_1;
|
|
588
|
+
}, "hsh");
|
|
589
|
+
var syms = new i32(25e3);
|
|
590
|
+
var lf = new u16(288), df = new u16(32);
|
|
591
|
+
var lc_1 = 0, eb = 0, i2 = st.i || 0, li = 0, wi = st.w || 0, bs = 0;
|
|
592
|
+
for (; i2 + 2 < s; ++i2) {
|
|
593
|
+
var hv = hsh(i2);
|
|
594
|
+
var imod = i2 & 32767, pimod = head[hv];
|
|
595
|
+
prev[imod] = pimod;
|
|
596
|
+
head[hv] = imod;
|
|
597
|
+
if (wi <= i2) {
|
|
598
|
+
var rem = s - i2;
|
|
599
|
+
if ((lc_1 > 7e3 || li > 24576) && (rem > 423 || !lst)) {
|
|
600
|
+
pos = wblk(dat, w, 0, syms, lf, df, eb, li, bs, i2 - bs, pos);
|
|
601
|
+
li = lc_1 = eb = 0, bs = i2;
|
|
602
|
+
for (var j = 0; j < 286; ++j)
|
|
603
|
+
lf[j] = 0;
|
|
604
|
+
for (var j = 0; j < 30; ++j)
|
|
605
|
+
df[j] = 0;
|
|
606
|
+
}
|
|
607
|
+
var l = 2, d = 0, ch_1 = c, dif = imod - pimod & 32767;
|
|
608
|
+
if (rem > 2 && hv == hsh(i2 - dif)) {
|
|
609
|
+
var maxn = Math.min(n, rem) - 1;
|
|
610
|
+
var maxd = Math.min(32767, i2);
|
|
611
|
+
var ml = Math.min(258, rem);
|
|
612
|
+
while (dif <= maxd && --ch_1 && imod != pimod) {
|
|
613
|
+
if (dat[i2 + l] == dat[i2 + l - dif]) {
|
|
614
|
+
var nl = 0;
|
|
615
|
+
for (; nl < ml && dat[i2 + nl] == dat[i2 + nl - dif]; ++nl)
|
|
616
|
+
;
|
|
617
|
+
if (nl > l) {
|
|
618
|
+
l = nl, d = dif;
|
|
619
|
+
if (nl > maxn)
|
|
620
|
+
break;
|
|
621
|
+
var mmd = Math.min(dif, nl - 2);
|
|
622
|
+
var md = 0;
|
|
623
|
+
for (var j = 0; j < mmd; ++j) {
|
|
624
|
+
var ti = i2 - dif + j & 32767;
|
|
625
|
+
var pti = prev[ti];
|
|
626
|
+
var cd = ti - pti & 32767;
|
|
627
|
+
if (cd > md)
|
|
628
|
+
md = cd, pimod = ti;
|
|
629
|
+
}
|
|
630
|
+
}
|
|
631
|
+
}
|
|
632
|
+
imod = pimod, pimod = prev[imod];
|
|
633
|
+
dif += imod - pimod & 32767;
|
|
634
|
+
}
|
|
635
|
+
}
|
|
636
|
+
if (d) {
|
|
637
|
+
syms[li++] = 268435456 | revfl[l] << 18 | revfd[d];
|
|
638
|
+
var lin = revfl[l] & 31, din = revfd[d] & 31;
|
|
639
|
+
eb += fleb[lin] + fdeb[din];
|
|
640
|
+
++lf[257 + lin];
|
|
641
|
+
++df[din];
|
|
642
|
+
wi = i2 + l;
|
|
643
|
+
++lc_1;
|
|
644
|
+
} else {
|
|
645
|
+
syms[li++] = dat[i2];
|
|
646
|
+
++lf[dat[i2]];
|
|
647
|
+
}
|
|
648
|
+
}
|
|
649
|
+
}
|
|
650
|
+
for (i2 = Math.max(i2, wi); i2 < s; ++i2) {
|
|
651
|
+
syms[li++] = dat[i2];
|
|
652
|
+
++lf[dat[i2]];
|
|
653
|
+
}
|
|
654
|
+
pos = wblk(dat, w, lst, syms, lf, df, eb, li, bs, i2 - bs, pos);
|
|
655
|
+
if (!lst) {
|
|
656
|
+
st.r = pos & 7 | w[pos / 8 | 0] << 3;
|
|
657
|
+
pos -= 7;
|
|
658
|
+
st.h = head, st.p = prev, st.i = i2, st.w = wi;
|
|
659
|
+
}
|
|
660
|
+
} else {
|
|
661
|
+
for (var i2 = st.w || 0; i2 < s + lst; i2 += 65535) {
|
|
662
|
+
var e = i2 + 65535;
|
|
663
|
+
if (e >= s) {
|
|
664
|
+
w[pos / 8 | 0] = lst;
|
|
665
|
+
e = s;
|
|
666
|
+
}
|
|
667
|
+
pos = wfblk(w, pos + 1, dat.subarray(i2, e));
|
|
668
|
+
}
|
|
669
|
+
st.i = s;
|
|
670
|
+
}
|
|
671
|
+
return slc(o, 0, pre + shft(pos) + post);
|
|
672
|
+
}, "dflt");
|
|
673
|
+
var dopt = /* @__PURE__ */ __name(function(dat, opt, pre, post, st) {
|
|
674
|
+
if (!st) {
|
|
675
|
+
st = { l: 1 };
|
|
676
|
+
if (opt.dictionary) {
|
|
677
|
+
var dict = opt.dictionary.subarray(-32768);
|
|
678
|
+
var newDat = new u8(dict.length + dat.length);
|
|
679
|
+
newDat.set(dict);
|
|
680
|
+
newDat.set(dat, dict.length);
|
|
681
|
+
dat = newDat;
|
|
682
|
+
st.w = dict.length;
|
|
683
|
+
}
|
|
684
|
+
}
|
|
685
|
+
return dflt(dat, opt.level == null ? 6 : opt.level, opt.mem == null ? st.l ? Math.ceil(Math.max(8, Math.min(13, Math.log(dat.length))) * 1.5) : 20 : 12 + opt.mem, pre, post, st);
|
|
686
|
+
}, "dopt");
|
|
371
687
|
var b2 = /* @__PURE__ */ __name(function(d, b) {
|
|
372
688
|
return d[b] | d[b + 1] << 8;
|
|
373
689
|
}, "b2");
|
|
@@ -392,6 +708,10 @@ var gzl = /* @__PURE__ */ __name(function(d) {
|
|
|
392
708
|
var l = d.length;
|
|
393
709
|
return (d[l - 4] | d[l - 3] << 8 | d[l - 2] << 16 | d[l - 1] << 24) >>> 0;
|
|
394
710
|
}, "gzl");
|
|
711
|
+
function deflateSync(data, opts) {
|
|
712
|
+
return dopt(data, opts || {}, 0, 0);
|
|
713
|
+
}
|
|
714
|
+
__name(deflateSync, "deflateSync");
|
|
395
715
|
var Inflate = /* @__PURE__ */ (function() {
|
|
396
716
|
function Inflate2(opts, cb) {
|
|
397
717
|
if (typeof opts == "function")
|
|
@@ -657,6 +977,7 @@ var Unzip = /* @__PURE__ */ (function() {
|
|
|
657
977
|
})();
|
|
658
978
|
|
|
659
979
|
export {
|
|
980
|
+
deflateSync,
|
|
660
981
|
gunzipSync,
|
|
661
982
|
UnzipInflate,
|
|
662
983
|
Unzip
|
|
@@ -2,7 +2,7 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
errorCodes
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-IBQZT2YD.js";
|
|
6
6
|
import {
|
|
7
7
|
__name
|
|
8
8
|
} from "./chunk-ZVVMGPBJ.js";
|
|
@@ -248,6 +248,25 @@ function isoTimestamp(message$1) {
|
|
|
248
248
|
}
|
|
249
249
|
__name(isoTimestamp, "isoTimestamp");
|
|
250
250
|
// @__NO_SIDE_EFFECTS__
|
|
251
|
+
function maxEntries(requirement, message$1) {
|
|
252
|
+
return {
|
|
253
|
+
kind: "validation",
|
|
254
|
+
type: "max_entries",
|
|
255
|
+
reference: maxEntries,
|
|
256
|
+
async: false,
|
|
257
|
+
expects: `<=${requirement}`,
|
|
258
|
+
requirement,
|
|
259
|
+
message: message$1,
|
|
260
|
+
"~run"(dataset, config$1) {
|
|
261
|
+
if (!dataset.typed) return dataset;
|
|
262
|
+
const count2 = Object.keys(dataset.value).length;
|
|
263
|
+
if (dataset.typed && count2 > this.requirement) _addIssue(this, "entries", dataset, config$1, { received: `${count2}` });
|
|
264
|
+
return dataset;
|
|
265
|
+
}
|
|
266
|
+
};
|
|
267
|
+
}
|
|
268
|
+
__name(maxEntries, "maxEntries");
|
|
269
|
+
// @__NO_SIDE_EFFECTS__
|
|
251
270
|
function maxLength(requirement, message$1) {
|
|
252
271
|
return {
|
|
253
272
|
kind: "validation",
|
|
@@ -576,6 +595,23 @@ function exactOptional(wrapped, default_) {
|
|
|
576
595
|
}
|
|
577
596
|
__name(exactOptional, "exactOptional");
|
|
578
597
|
// @__NO_SIDE_EFFECTS__
|
|
598
|
+
function function_(message$1) {
|
|
599
|
+
return _standardSchema({
|
|
600
|
+
kind: "schema",
|
|
601
|
+
type: "function",
|
|
602
|
+
reference: function_,
|
|
603
|
+
expects: "Function",
|
|
604
|
+
async: false,
|
|
605
|
+
message: message$1,
|
|
606
|
+
"~run"(dataset, config$1) {
|
|
607
|
+
if (typeof dataset.value === "function") dataset.typed = true;
|
|
608
|
+
else _addIssue(this, "type", dataset, config$1);
|
|
609
|
+
return dataset;
|
|
610
|
+
}
|
|
611
|
+
});
|
|
612
|
+
}
|
|
613
|
+
__name(function_, "function_");
|
|
614
|
+
// @__NO_SIDE_EFFECTS__
|
|
579
615
|
function lazy(getter) {
|
|
580
616
|
return _standardSchema({
|
|
581
617
|
kind: "schema",
|
|
@@ -1322,7 +1358,7 @@ function unwrap(schema) {
|
|
|
1322
1358
|
}
|
|
1323
1359
|
__name(unwrap, "unwrap");
|
|
1324
1360
|
|
|
1325
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
1361
|
+
// 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/standards/effects.js
|
|
1326
1362
|
var EFFECT_LEVELS = ["none", "read", "write"];
|
|
1327
1363
|
var effectsSchema = strictObject({
|
|
1328
1364
|
remote: picklist(EFFECT_LEVELS),
|
|
@@ -1959,7 +1995,7 @@ function toStandardJsonSchema(schema) {
|
|
|
1959
1995
|
}
|
|
1960
1996
|
__name(toStandardJsonSchema, "toStandardJsonSchema");
|
|
1961
1997
|
|
|
1962
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
1998
|
+
// 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/standards/registry.js
|
|
1963
1999
|
var word = pipe(string(), regex(/^[a-z][a-z0-9]*(-[a-z0-9]+)*$/, "a lower-case word, words joined by -"));
|
|
1964
2000
|
var SNAKE_CASE = /^[a-z][a-z0-9]*(_[a-z0-9]+)*$/;
|
|
1965
2001
|
var text = pipe(string(), regex(/\S/, "must not be empty"));
|
|
@@ -2001,7 +2037,7 @@ var fill = /* @__PURE__ */ __name((template, values) => template.replace(PLACEHO
|
|
|
2001
2037
|
return String(value);
|
|
2002
2038
|
}), "fill");
|
|
2003
2039
|
|
|
2004
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2040
|
+
// 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/standards/output.js
|
|
2005
2041
|
var MAX_NEXT_STEPS = 2;
|
|
2006
2042
|
var COMPACT_FLAG = "--compact";
|
|
2007
2043
|
var isoTime = pipe(string(), isoTimestamp("an ISO 8601 time in UTC"), endsWith("Z", "an ISO 8601 time in UTC, ending in `Z`"));
|
|
@@ -2078,6 +2114,22 @@ var rankingSchema = strictObject({
|
|
|
2078
2114
|
})),
|
|
2079
2115
|
ms: pipe(number(), integer(), minValue(0))
|
|
2080
2116
|
});
|
|
2117
|
+
var count = pipe(number(), integer(), minValue(0));
|
|
2118
|
+
var modelRunSchema = strictObject({
|
|
2119
|
+
provider: text,
|
|
2120
|
+
model: text,
|
|
2121
|
+
endpoint: text,
|
|
2122
|
+
sent: count,
|
|
2123
|
+
done: count,
|
|
2124
|
+
left: count,
|
|
2125
|
+
usage: optional(strictObject({ input: count, output: count })),
|
|
2126
|
+
cost_usd: nullable(pipe(number(), minValue(0))),
|
|
2127
|
+
ms: count
|
|
2128
|
+
});
|
|
2129
|
+
var querySchema = strictObject({
|
|
2130
|
+
chat: optional(strictObject({ word: text, chat_id: text, title: nullable(text) })),
|
|
2131
|
+
respelled: optional(array(strictObject({ word: text, tried: pipe(array(text), minLength(1)) })))
|
|
2132
|
+
});
|
|
2081
2133
|
var metaSchema = strictObject({
|
|
2082
2134
|
run_id: text,
|
|
2083
2135
|
duration_ms: pipe(number(), integer(), minValue(0)),
|
|
@@ -2090,7 +2142,9 @@ var metaSchema = strictObject({
|
|
|
2090
2142
|
now: optional(isoTime),
|
|
2091
2143
|
now_local: optional(localTime),
|
|
2092
2144
|
window: optional(strictObject({ since: optional(isoTime), until: optional(isoTime) })),
|
|
2093
|
-
ranking: optional(rankingSchema)
|
|
2145
|
+
ranking: optional(rankingSchema),
|
|
2146
|
+
model_run: optional(modelRunSchema),
|
|
2147
|
+
query: optional(querySchema)
|
|
2094
2148
|
});
|
|
2095
2149
|
var offsetOf = /* @__PURE__ */ __name((at, zone) => {
|
|
2096
2150
|
const name = new Intl.DateTimeFormat("en-US", { timeZone: zone, timeZoneName: "longOffset" }).formatToParts(at).find((part) => part.type === "timeZoneName")?.value ?? "GMT";
|
|
@@ -2128,7 +2182,7 @@ var jsonlOf = /* @__PURE__ */ __name(({ items, page, meta }) => [
|
|
|
2128
2182
|
JSON.stringify({ type: "end", complete: meta.complete, ...meta.issues ? { issues: meta.issues } : {}, page })
|
|
2129
2183
|
].join("\n"), "jsonlOf");
|
|
2130
2184
|
|
|
2131
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2185
|
+
// 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/standards/errors.js
|
|
2132
2186
|
var CRASH_CODE = "internal_error";
|
|
2133
2187
|
var CRASH_REASON = "command.crashed";
|
|
2134
2188
|
var errorObjectSchema = strictObject({
|
|
@@ -2172,6 +2226,12 @@ var BASE_REASONS = defineReasons([
|
|
|
2172
2226
|
},
|
|
2173
2227
|
{ reason: "batch.output-budget", code: "validation_error", message: "batch output budget exhausted", details: [] },
|
|
2174
2228
|
{ reason: "config.invalid", code: "configuration_error", message: "the configuration is not valid", details: [] },
|
|
2229
|
+
{
|
|
2230
|
+
reason: "keyring.unreachable",
|
|
2231
|
+
code: "configuration_error",
|
|
2232
|
+
message: "the OS keyring did not answer, and no file holds the sign-in",
|
|
2233
|
+
details: []
|
|
2234
|
+
},
|
|
2175
2235
|
{ reason: "auth.failed", code: "authentication_error", message: "the sign-in did not work", details: [] },
|
|
2176
2236
|
{ reason: "access.denied", code: "permission_error", message: "this account may not do that", details: [] },
|
|
2177
2237
|
{ reason: "item.not-found", code: "not_found", message: "nothing found by that name", details: [] },
|
|
@@ -2221,7 +2281,7 @@ var BASE_REASONS = defineReasons([
|
|
|
2221
2281
|
{ reason: CRASH_REASON, code: CRASH_CODE, message: "the command failed; this is a bug", details: [] }
|
|
2222
2282
|
]);
|
|
2223
2283
|
|
|
2224
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2284
|
+
// 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/standards/steps.js
|
|
2225
2285
|
var SAME_COMMAND = "*";
|
|
2226
2286
|
var commandPath = pipe(string(), regex(/^[a-z][a-z0-9-]*( [a-z][a-z0-9-]*)*$/, "a command path such as `messages sync`"));
|
|
2227
2287
|
var stepSchema = union([
|
|
@@ -2308,6 +2368,7 @@ export {
|
|
|
2308
2368
|
integer,
|
|
2309
2369
|
isoDate,
|
|
2310
2370
|
isoTimestamp,
|
|
2371
|
+
maxEntries,
|
|
2311
2372
|
maxLength,
|
|
2312
2373
|
maxValue,
|
|
2313
2374
|
minLength,
|
|
@@ -2324,6 +2385,7 @@ export {
|
|
|
2324
2385
|
boolean,
|
|
2325
2386
|
custom,
|
|
2326
2387
|
exactOptional,
|
|
2388
|
+
function_,
|
|
2327
2389
|
lazy,
|
|
2328
2390
|
literal,
|
|
2329
2391
|
looseObject,
|