hyperframes 0.8.211 → 0.8.212
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{add-WERDY37C.js → add-JSM7YBQX.js} +14 -13
- package/dist/{agentPromptGenerator-SEAPWYY5.js → agentPromptGenerator-NTPYCKOI.js} +5 -5
- package/dist/{animatedGifPrep-LC43PROA.js → animatedGifPrep-XTK7UWXF.js} +5 -5
- package/dist/api.js +17 -17
- package/dist/{asset-IVDQNYHP.js → asset-SMY2EGPH.js} +5 -4
- package/dist/{assetCataloger-PPE7M2WM.js → assetCataloger-CVPWY34W.js} +6 -6
- package/dist/{audio-IJ22GXO6.js → audio-Y4OYLTWN.js} +20 -19
- package/dist/{auth-FZMDHX2H.js → auth-MDEHZR7R.js} +4 -4
- package/dist/{autoUpdate-EO6SFALF.js → autoUpdate-3FL6EDPM.js} +4 -2
- package/dist/{backgroundChecks-YW5VIAYF.js → backgroundChecks-A6TG2BT3.js} +5 -3
- package/dist/backgroundChecksWorker.js +5 -3
- package/dist/{batchRender-OOXYNZOT.js → batchRender-K2PBRRTQ.js} +8 -7
- package/dist/{beats-X7GRQA4J.js → beats-RA6XK6J5.js} +13 -12
- package/dist/{benchmark-JGGBMRZO.js → benchmark-EHU5O4PP.js} +19 -17
- package/dist/{browser-FQ5JPTME.js → browser-7RUIZT2H.js} +12 -10
- package/dist/{bundleWithLocalizedFonts-XA73ZJ4S.js → bundleWithLocalizedFonts-O2U2FYY2.js} +2 -2
- package/dist/{capture-GUVCA5JQ.js → capture-77KDKKNK.js} +13 -12
- package/dist/{capture-KKVB3MKM.js → capture-JGYBORAG.js} +12 -9
- package/dist/{captureCompositionFrame-LNKWWCXE.js → captureCompositionFrame-DZ7EHPZV.js} +13 -12
- package/dist/{catalog-LKJEMEOC.js → catalog-CUP3SYAI.js} +18 -17
- package/dist/{catch-up-FA6KWX4S.js → catch-up-ZGUCWH5Q.js} +8 -7
- package/dist/{check-6GIDKL6S.js → check-ITGFVBT6.js} +41 -40
- package/dist/{checkAudio-H3AUFC4M.js → checkAudio-CTLPD6YT.js} +8 -8
- package/dist/{checkBrowser-YWWF63S6.js → checkBrowser-G2N4JI6N.js} +34 -33
- package/dist/{chunk-Q52ISCT4.js → chunk-25MKZTRT.js} +1 -1
- package/dist/{chunk-KSNIYQRB.js → chunk-26AQTUU4.js} +5 -7
- package/dist/{chunk-3LACB6HG.js → chunk-2YDIEZSF.js} +3 -3
- package/dist/{chunk-QVHC77IF.js → chunk-3JQ2YOKL.js} +2 -2
- package/dist/{chunk-FI7SSV73.js → chunk-3YBXKWAF.js} +1 -1
- package/dist/{chunk-5KOZRJR7.js → chunk-45JN2GIZ.js} +1 -1
- package/dist/{chunk-MMJAHBH2.js → chunk-5SKC4G26.js} +4 -1
- package/dist/{chunk-ZNSKOXFW.js → chunk-5TQ4AEPF.js} +3 -3
- package/dist/{chunk-J2JG4XGP.js → chunk-5ZBMHUY2.js} +4 -0
- package/dist/{chunk-KZBBY72Q.js → chunk-64XQS7AP.js} +1 -1
- package/dist/{chunk-ABBVDJMG.js → chunk-6SG3RRAQ.js} +2 -2
- package/dist/{chunk-JMD5HDPB.js → chunk-6ZLDIMPL.js} +2 -2
- package/dist/{chunk-CJ5QZRY7.js → chunk-7KBS6ZLB.js} +2 -2
- package/dist/{chunk-OOA6C4AG.js → chunk-7Q5TBUC2.js} +2 -2
- package/dist/{chunk-FBN5AQJL.js → chunk-7TWX4Y7I.js} +3 -3
- package/dist/{chunk-BGC5S3OZ.js → chunk-7W7ANGR4.js} +48 -35
- package/dist/{chunk-DJ3H6EW3.js → chunk-7ZAVTGGT.js} +10 -9
- package/dist/{chunk-3NIESDKN.js → chunk-A2WPZE2R.js} +1 -1
- package/dist/{chunk-CNU65QE2.js → chunk-AJAXP4HF.js} +9 -5
- package/dist/{chunk-2QAR7ZNY.js → chunk-BLVHVXRU.js} +2 -2
- package/dist/{chunk-472C35EW.js → chunk-BYRXSKIY.js} +1 -1
- package/dist/{chunk-5AKWJHRJ.js → chunk-CODPTVC2.js} +1 -1
- package/dist/{chunk-LALLQUSK.js → chunk-DP5LF7GF.js} +2 -0
- package/dist/{chunk-AIY2Y5UY.js → chunk-DS7ANFBV.js} +5 -5
- package/dist/{chunk-6J2G57BB.js → chunk-DVVTBVKA.js} +7 -7
- package/dist/{chunk-CGAUUUDL.js → chunk-DXPC7Z6L.js} +3 -3
- package/dist/{chunk-3R5MYOJN.js → chunk-EC77ZBCP.js} +2 -2
- package/dist/{chunk-VWG7OQKU.js → chunk-EQGKUPBJ.js} +4 -1
- package/dist/{chunk-CZCRSS3U.js → chunk-F5XADOGC.js} +1 -1
- package/dist/chunk-FJ646TIT.js +201 -0
- package/dist/{chunk-77KGX4A3.js → chunk-FKFGGAXN.js} +50 -8
- package/dist/{chunk-PICG2XRD.js → chunk-FW6CYA5D.js} +2 -2
- package/dist/{chunk-VUEWZXZG.js → chunk-G6HUXX3L.js} +1 -1
- package/dist/{chunk-5YHQBCWH.js → chunk-G6OKQMJI.js} +12 -2
- package/dist/{chunk-DPYI2HRJ.js → chunk-GQ724553.js} +5 -5
- package/dist/{chunk-SXJJTFV4.js → chunk-GVE6I5EL.js} +4 -4
- package/dist/{chunk-NEQIJUV2.js → chunk-HXZNCXQX.js} +1 -1
- package/dist/{chunk-LAR5VTCN.js → chunk-J7GPSY5N.js} +4 -4
- package/dist/{chunk-4JWKC3GH.js → chunk-JZNQQI5M.js} +5 -5
- package/dist/{chunk-IEVU4FXB.js → chunk-KZZWYIEB.js} +3 -3
- package/dist/{chunk-AHPGAESX.js → chunk-L72RQ45A.js} +1 -1
- package/dist/{chunk-4D46TX6Q.js → chunk-MJCIAZSK.js} +1 -1
- package/dist/{chunk-5LITFBMY.js → chunk-MX2GMAAW.js} +9 -9
- package/dist/{chunk-B2B4MN3R.js → chunk-N3J2MLXC.js} +2 -2
- package/dist/{chunk-JZVUSRZ5.js → chunk-N7XJHZ35.js} +1 -1
- package/dist/{chunk-RQNFW6YC.js → chunk-NGSENR4J.js} +8 -3
- package/dist/{chunk-VGKQFZCC.js → chunk-NXDKBFEO.js} +14 -14
- package/dist/{chunk-UI7X4L4M.js → chunk-OL5E4Y4L.js} +2074 -2060
- package/dist/{chunk-XNFDDVJS.js → chunk-ONMTNYGR.js} +4 -1
- package/dist/{chunk-PKWZG642.js → chunk-ORJY6Z6G.js} +3 -3
- package/dist/{chunk-YWPCMOX4.js → chunk-OSCWTA2O.js} +5 -5
- package/dist/{chunk-SJK64HHG.js → chunk-OWV36OJP.js} +5 -2
- package/dist/{chunk-DAXKGMJL.js → chunk-P2VGMOX7.js} +5 -5
- package/dist/{chunk-OE5EHGDG.js → chunk-PW7FCVHR.js} +1 -1
- package/dist/{chunk-K43XLAQV.js → chunk-Q55JNFDV.js} +3 -3
- package/dist/{chunk-VBC3DQFS.js → chunk-QUXWS5UG.js} +1 -1
- package/dist/{chunk-DMIFCIG6.js → chunk-R5B6GXQM.js} +1 -1
- package/dist/{chunk-5MCR5DA5.js → chunk-RDZKBIEB.js} +5 -5
- package/dist/{chunk-B4KGJHTE.js → chunk-RJILJ4OR.js} +2 -2
- package/dist/{chunk-6EN2LWOM.js → chunk-RQC4PHO3.js} +1 -1
- package/dist/{chunk-ORXLO64X.js → chunk-S2HWGG5O.js} +1 -1
- package/dist/chunk-SJGE5I5F.js +131 -0
- package/dist/{chunk-ZPXXWUQ3.js → chunk-SPDSRBIN.js} +30 -4
- package/dist/{chunk-WNDTMINP.js → chunk-SXTWQ7CH.js} +2 -2
- package/dist/{chunk-22OGII5H.js → chunk-T7KNW7PE.js} +1 -1
- package/dist/{chunk-2RQZQJHV.js → chunk-TPO32Z65.js} +1 -1
- package/dist/{chunk-66KMYUNO.js → chunk-UBUKKTNW.js} +2 -2
- package/dist/{chunk-T2L2GJ4C.js → chunk-UE4CXHMF.js} +7 -7
- package/dist/{chunk-K3LLHG6I.js → chunk-UULZKCBI.js} +1 -1
- package/dist/{chunk-DDRCX7P2.js → chunk-UXH6E5HC.js} +2 -2
- package/dist/{chunk-AQMGYRX6.js → chunk-V6OSE6VT.js} +1 -1
- package/dist/{chunk-67JTGRNM.js → chunk-VKD23SIO.js} +1 -1
- package/dist/{chunk-3JYKWNFR.js → chunk-VVDHSRKD.js} +1 -1
- package/dist/{chunk-KF6I5WA7.js → chunk-W2VJTKIW.js} +15 -18
- package/dist/{chunk-FIC3E7IM.js → chunk-W55BW7KA.js} +9 -9
- package/dist/{chunk-FWKZ3O52.js → chunk-W5OBRMZ6.js} +1 -1
- package/dist/{chunk-YPNBEBQ6.js → chunk-WVIH5BBZ.js} +25 -18
- package/dist/{chunk-Z2UZAY2Q.js → chunk-XEWMJWNW.js} +2 -2
- package/dist/{chunk-DWIMUPFK.js → chunk-XGXTZNES.js} +2 -2
- package/dist/{chunk-GSXA4YLV.js → chunk-Y3U7ECBH.js} +1 -1
- package/dist/{chunk-KDDO3UYI.js → chunk-YACECUHX.js} +3 -3
- package/dist/{chunk-3WL7WU6K.js → chunk-YVT5IU6J.js} +19 -20
- package/dist/{chunk-4EO7DNRJ.js → chunk-YX5ELTKV.js} +2 -2
- package/dist/{chunk-FVY2XRX4.js → chunk-ZCYSQ3NQ.js} +2 -2
- package/dist/{clean-SVEOBRPM.js → clean-FBZ7GHRY.js} +21 -20
- package/dist/cli.js +143 -77
- package/dist/{cloud-ADFJGIEH.js → cloud-VYSWJ7UO.js} +4 -4
- package/dist/{cloudrun-BNY7Q5RK.js → cloudrun-U6LI7KLV.js} +23 -20
- package/dist/{compare-QC3T22KV.js → compare-YR7BMEHJ.js} +44 -45
- package/dist/{compiler-4ITKK4XI.js → compiler-6YCAUK7Z.js} +2 -2
- package/dist/{component-CNZCB3RY.js → component-HVSM6FJV.js} +6 -5
- package/dist/{compositions-UO32IP6Z.js → compositions-QTFL2VNL.js} +13 -12
- package/dist/{delete-RWTOSI24.js → delete-2FHCQ72T.js} +13 -11
- package/dist/{deploy-OKWS53NP.js → deploy-6S45QWG6.js} +5 -5
- package/dist/{destroy-4RL5VOXQ.js → destroy-BQ5R7LUF.js} +3 -3
- package/dist/{dist-AEE3QTRB.js → dist-B4KLCLZ5.js} +2 -2
- package/dist/{docs-UMIA66EZ.js → docs-6EM6FDNI.js} +5 -4
- package/dist/{doctor-SIF72ESZ.js → doctor-4MRS6RED.js} +11 -9
- package/dist/{events-S3VUTFEG.js → events-4VBBY7PP.js} +5 -3
- package/dist/{events-34PIVLZQ.js → events-FN45HVPM.js} +6 -5
- package/dist/{feedback-VS4LRXHW.js → feedback-T67P2CDA.js} +20 -19
- package/dist/{ffmpeg-YVQOKNV6.js → ffmpeg-ED7ZK6XH.js} +5 -5
- package/dist/{figma-AF4JKDBA.js → figma-UXAWKPOY.js} +3 -3
- package/dist/fontLocalizeCli.js +9 -9
- package/dist/{get-UQGCS6Q4.js → get-EFH3PPJA.js} +8 -7
- package/dist/{gpuPolicy-Q4B3D6PW.js → gpuPolicy-ZADQMXQT.js} +5 -5
- package/dist/{grade-compare-G34673XC.js → grade-compare-425BFHSF.js} +46 -44
- package/dist/{heifImagePrep-XD4DGOUS.js → heifImagePrep-ZJM7N2XY.js} +6 -6
- package/dist/{help-3QSD26IC.js → help-23PPB2BD.js} +11 -7
- package/dist/{history-6DC24UCF.js → history-CHJV33M5.js} +15 -12
- package/dist/hyperframe.manifest.json +1 -1
- package/dist/hyperframe.runtime.iife.js +63 -63
- package/dist/hyperframes-player.global.js +1 -1
- package/dist/{info-6JUHWWJK.js → info-36YPISVA.js} +11 -10
- package/dist/{init-2DPX6U3J.js → init-U6EE2EIU.js} +37 -36
- package/dist/{inspect-Z55YUSXC.js → inspect-NI2RMUFR.js} +32 -31
- package/dist/{installer-XVKYJU7S.js → installer-K3HIZ5CF.js} +4 -4
- package/dist/{keyframes-YHF4AQIL.js → keyframes-I6T2IT6I.js} +10 -9
- package/dist/{lambda-JITTS37E.js → lambda-WL64Z2F3.js} +31 -29
- package/dist/{layout-V5NYJXIX.js → layout-R2YZ4N6P.js} +32 -31
- package/dist/{lint-V4WMO7YL.js → lint-IAAG6Z65.js} +17 -14
- package/dist/{list-W7UCIYKA.js → list-3O6743DJ.js} +11 -10
- package/dist/{live-LAHBXVK2.js → live-WWPFZQ74.js} +33 -7
- package/dist/{localPage-BLQFFIDF.js → localPage-L5FRBCNP.js} +5 -5
- package/dist/{login-IX3MOREU.js → login-27TRFTYB.js} +11 -11
- package/dist/{logout-46NLNY2K.js → logout-C6P6ERZ3.js} +5 -5
- package/dist/{manager-WJOWZNHM.js → manager-D6TE4ENP.js} +7 -7
- package/dist/{media-treatment-XBO6EXL4.js → media-treatment-E3YLZVXC.js} +43 -33
- package/dist/{media-use-3RFKY7XJ.js → media-use-ZRHFRO46.js} +1 -1
- package/dist/{models-P3NSHDQS.js → models-2Q3TGNH5.js} +26 -19
- package/dist/{motionShot-D4QMLTQP.js → motionShot-XYW2HMVI.js} +16 -15
- package/dist/{normalize-audio-Q4VUR3QJ.js → normalize-audio-D5WNUNDM.js} +30 -19
- package/dist/{open-LGKX534P.js → open-3KO7UUPC.js} +17 -16
- package/dist/{parakeetRunner-FAOQMPS6.js → parakeetRunner-WX6L6MW5.js} +11 -11
- package/dist/{pipeline-2YONKZYC.js → pipeline-WYIO4KGN.js} +10 -10
- package/dist/{play-PJOUIY55.js → play-ZM3ZUJSZ.js} +31 -33
- package/dist/{policies-UPNRQ7IW.js → policies-J5BWAZHM.js} +11 -10
- package/dist/{preflight-3PPM7QBU.js → preflight-7OMCIXNM.js} +6 -6
- package/dist/{present-323D6OE2.js → present-E2PLH2GJ.js} +27 -29
- package/dist/{preview-E42QP2KX.js → preview-TVRM75FN.js} +24 -23
- package/dist/{producer-MTMNLJSC.js → producer-M5F6KZEF.js} +1 -1
- package/dist/{progress-LMQ2DXM4.js → progress-X3QFO3FE.js} +4 -4
- package/dist/{projectConfig-5QRVB5KY.js → projectConfig-VFKGY3XE.js} +6 -6
- package/dist/{prompts-P3IT5H36.js → prompts-VAO7RDKX.js} +2 -2
- package/dist/{publication-AUZLFOG5.js → publication-AF33R7LF.js} +2 -2
- package/dist/{publish-H5P7UHRV.js → publish-Z7HGDQ5R.js} +17 -17
- package/dist/{refresh-4XRQS3N6.js → refresh-IYRGLHG5.js} +5 -5
- package/dist/{remove-background-T2RV476S.js → remove-background-PN3KCBT4.js} +21 -17
- package/dist/{render-4XEB3XWI.js → render-I3HBIJX3.js} +59 -57
- package/dist/{render-GJH7446R.js → render-IZNPEXMU.js} +11 -10
- package/dist/{render-3FRGIWES.js → render-SEODWRRR.js} +27 -26
- package/dist/{render-batch-77X5453X.js → render-batch-MQSORY55.js} +12 -11
- package/dist/{resolver-DIUNK525.js → resolver-HXE4F2G4.js} +4 -4
- package/dist/{sam-FHJ7IL7T.js → sam-QA7JT7IM.js} +2 -1
- package/dist/{sherpa-SUS3YSEP.js → sherpa-NPT6S3RP.js} +10 -10
- package/dist/{sites-V42IFVTK.js → sites-MTLVMYJ6.js} +2 -2
- package/dist/{skills-YCGSIOCE.js → skills-P3BI55YP.js} +17 -13
- package/dist/{skillsUpdateCheck-VCQIZGOL.js → skillsUpdateCheck-43Q4ZHWN.js} +5 -3
- package/dist/{snapshot-H6R5PWNS.js → snapshot-YLT64YQS.js} +71 -53
- package/dist/{src-ED5VCIRC.js → src-7S7K4QUN.js} +8 -8
- package/dist/{src-HHDLJV4L.js → src-OHJ7USRX.js} +6 -4
- package/dist/{state-D5SYQFCB.js → state-6QHNNHDA.js} +2 -2
- package/dist/{staticProjectServer-VY7QG5XH.js → staticProjectServer-RP3MW2EW.js} +17 -17
- package/dist/{status-GEZNVPII.js → status-SLILCDBZ.js} +12 -7
- package/dist/studio/assets/{hyperframes-player-CzrqgMUX.js → hyperframes-player-DHfuW7Lt.js} +1 -1
- package/dist/studio/assets/{index-k4nVfS2D.js → index-CWgIsKzV.js} +4 -4
- package/dist/studio/assets/{index-B3SPHPi1.js → index-CkjUY33q.js} +1 -1
- package/dist/studio/index.html +1 -1
- package/dist/{studio-api-TR5RPX57.js → studio-api-BZPZCJL6.js} +9 -9
- package/dist/{studioServer-4SZLLQOV.js → studioServer-QLRIXNYM.js} +50 -49
- package/dist/{synthesize-QALK5SQR.js → synthesize-FQML2LN2.js} +2 -2
- package/dist/{telemetry-KGY7G3UR.js → telemetry-NTO4FJFN.js} +5 -4
- package/dist/{telemetry-7HUKOQ6X.js → telemetry-QOBPRUWF.js} +6 -5
- package/dist/{timeline-CGIKWCQI.js → timeline-OLQFVWVU.js} +30 -26
- package/dist/{tokens-AZALDJEK.js → tokens-BAHLVGEC.js} +5 -4
- package/dist/{transcribe-CTF5EIXJ.js → transcribe-3NHUWW4J.js} +27 -24
- package/dist/{transcribe-V6K5547L.js → transcribe-HR6BFDUR.js} +9 -9
- package/dist/{tts-C2HBLFKK.js → tts-K5HRN6NQ.js} +17 -13
- package/dist/{updateCheck-5I563YLB.js → updateCheck-BGHPCA7J.js} +4 -2
- package/dist/{upgrade-GRPVQE7Z.js → upgrade-NFI6JOME.js} +7 -6
- package/dist/{urlDownloader-EP6Q4WES.js → urlDownloader-P35K74RS.js} +4 -4
- package/dist/{validate-TVCDSQS3.js → validate-Q57ZCI4Q.js} +26 -25
- package/dist/{video-CFEIRKAE.js → video-OO2M2AKD.js} +9 -9
- package/dist/warmCheck.js +43 -42
- package/package.json +1 -1
- package/dist/chunk-WQ6ZXHFQ.js +0 -133
|
@@ -4,6 +4,9 @@ import { dirname as __hf_dirname } from "node:path";
|
|
|
4
4
|
var require = __hf_createRequire(import.meta.url);
|
|
5
5
|
var __filename = __hf_fileURLToPath(import.meta.url);
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
|
+
import {
|
|
8
|
+
CliUsageError
|
|
9
|
+
} from "./chunk-DP5LF7GF.js";
|
|
7
10
|
|
|
8
11
|
// src/commands/lambda/sam.ts
|
|
9
12
|
import { execFileSync, spawnSync } from "child_process";
|
|
@@ -41,7 +44,7 @@ function parseReservedConcurrency(raw) {
|
|
|
41
44
|
if (raw === "none") return -1;
|
|
42
45
|
const n = Number(raw);
|
|
43
46
|
if (!Number.isInteger(n) || n < 1) {
|
|
44
|
-
throw new
|
|
47
|
+
throw new CliUsageError(
|
|
45
48
|
`[lambda] --concurrency must be a positive integer or "none"; got ${String(raw)}`
|
|
46
49
|
);
|
|
47
50
|
}
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
} from "./chunk-7VZEOCUY.js";
|
|
10
10
|
import {
|
|
11
11
|
stoppedByCancelSignal
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-VKD23SIO.js";
|
|
13
13
|
import {
|
|
14
14
|
DEFAULT_MODEL,
|
|
15
15
|
ensureModel,
|
|
@@ -17,12 +17,12 @@ import {
|
|
|
17
17
|
hasFFmpeg,
|
|
18
18
|
pinnedWhisperModel,
|
|
19
19
|
sha256File
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-3JQ2YOKL.js";
|
|
21
21
|
import {
|
|
22
22
|
findFFmpeg,
|
|
23
23
|
findFFprobe,
|
|
24
24
|
getFFmpegInstallHint
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-T7KNW7PE.js";
|
|
26
26
|
import {
|
|
27
27
|
findWavChunk
|
|
28
28
|
} from "./chunk-UOFAE5RF.js";
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
} from "./chunk-5ETJX6WM.js";
|
|
17
17
|
import {
|
|
18
18
|
runEnvironmentChecks
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-MJCIAZSK.js";
|
|
20
20
|
import {
|
|
21
21
|
OPTIONAL_PACKAGES,
|
|
22
22
|
installedOptionalPackageVersion
|
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
} from "./chunk-2GICKZ3I.js";
|
|
30
30
|
import {
|
|
31
31
|
resolveExtractCacheDir
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-OL5E4Y4L.js";
|
|
33
33
|
import {
|
|
34
34
|
getFreeDiskMb,
|
|
35
35
|
getShmSizeMb,
|
|
@@ -41,14 +41,14 @@ import {
|
|
|
41
41
|
import {
|
|
42
42
|
getUpdateMeta,
|
|
43
43
|
withMeta
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-NGSENR4J.js";
|
|
45
45
|
import {
|
|
46
46
|
CONFIG_PATH,
|
|
47
47
|
withFileLock
|
|
48
48
|
} from "./chunk-ZCHULPJZ.js";
|
|
49
49
|
import {
|
|
50
50
|
VERSION
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-UXH6E5HC.js";
|
|
52
52
|
import {
|
|
53
53
|
normalizeErrorMessage
|
|
54
54
|
} from "./chunk-E63BDV4Z.js";
|
|
@@ -240,7 +240,7 @@ function checkEnvironment() {
|
|
|
240
240
|
return { ok: true, detail: parts.join(" \xB7 ") };
|
|
241
241
|
}
|
|
242
242
|
async function checkWhisper() {
|
|
243
|
-
const { findWhisper, getInstallInstructions } = await import("./manager-
|
|
243
|
+
const { findWhisper, getInstallInstructions } = await import("./manager-D6TE4ENP.js");
|
|
244
244
|
const result = findWhisper();
|
|
245
245
|
if (result) {
|
|
246
246
|
return { ok: true, detail: result.executablePath };
|
|
@@ -7,9 +7,12 @@ var __dirname = __hf_dirname(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
isTextFile
|
|
9
9
|
} from "./chunk-K4WKGXRC.js";
|
|
10
|
+
import {
|
|
11
|
+
jsonFailure
|
|
12
|
+
} from "./chunk-SJGE5I5F.js";
|
|
10
13
|
import {
|
|
11
14
|
CliUsageError
|
|
12
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-DP5LF7GF.js";
|
|
13
16
|
|
|
14
17
|
// src/utils/reject-extra-positionals.ts
|
|
15
18
|
var ACCEPTS_EXTRA_POSITIONALS = /* @__PURE__ */ new Set([
|
|
@@ -62,7 +65,7 @@ function resolveExtraPositionals(cmd, path, parsed) {
|
|
|
62
65
|
const message = `Unexpected extra argument${plural} for hyperframes ${path}: ${extra.join(", ")}
|
|
63
66
|
Usage: ${usageLine(path, args)}` + (EXTRA_POSITIONAL_HINTS[path] ? `
|
|
64
67
|
${EXTRA_POSITIONAL_HINTS[path]}` : "");
|
|
65
|
-
if (wantsJson(parsed?.json)) console.log(JSON.stringify(
|
|
68
|
+
if (wantsJson(parsed?.json)) console.log(JSON.stringify(jsonFailure("usage_error", message)));
|
|
66
69
|
else console.error(message);
|
|
67
70
|
throw new CliUsageError(
|
|
68
71
|
`${extra.length} unexpected extra argument${plural} for hyperframes ${path}`,
|
|
@@ -6,15 +6,15 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
errorBox
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import {
|
|
11
|
-
failUsage
|
|
12
|
-
} from "./chunk-LALLQUSK.js";
|
|
9
|
+
} from "./chunk-5ZBMHUY2.js";
|
|
13
10
|
import {
|
|
14
11
|
PRORES_PROFILE_NAMES,
|
|
15
12
|
appendRateCapArgs,
|
|
16
13
|
isProresProfile
|
|
17
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-OL5E4Y4L.js";
|
|
15
|
+
import {
|
|
16
|
+
failUsage
|
|
17
|
+
} from "./chunk-DP5LF7GF.js";
|
|
18
18
|
|
|
19
19
|
// src/utils/deliveryFlags.ts
|
|
20
20
|
var deliveryFlagArgs = {
|
|
@@ -12,13 +12,13 @@ import {
|
|
|
12
12
|
forceRefreshCredentials,
|
|
13
13
|
resolveCloudAuthHeaders,
|
|
14
14
|
resolveCloudBaseUrl
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-VVDHSRKD.js";
|
|
16
16
|
import {
|
|
17
17
|
errorBox
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-5ZBMHUY2.js";
|
|
19
19
|
import {
|
|
20
20
|
failCommand
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-DP5LF7GF.js";
|
|
22
22
|
|
|
23
23
|
// src/cloud/poll.ts
|
|
24
24
|
var DEFAULT_POLL_INTERVAL_MS = 2e3;
|
|
@@ -6,10 +6,7 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
resolveCaptureBrowserGpuMode
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import {
|
|
11
|
-
requestCliExit
|
|
12
|
-
} from "./chunk-LALLQUSK.js";
|
|
9
|
+
} from "./chunk-XEWMJWNW.js";
|
|
13
10
|
import {
|
|
14
11
|
explainChromeLaunchFailure,
|
|
15
12
|
inAgentSandbox,
|
|
@@ -18,13 +15,16 @@ import {
|
|
|
18
15
|
oneProcessOverPipe,
|
|
19
16
|
pipeLaunchClosedOnMac,
|
|
20
17
|
sandboxDeniedRemediation
|
|
21
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-OL5E4Y4L.js";
|
|
22
19
|
import {
|
|
23
20
|
processIsAlive
|
|
24
21
|
} from "./chunk-KGPLIH7B.js";
|
|
25
22
|
import {
|
|
26
23
|
withHyperframesBrowserMarker
|
|
27
24
|
} from "./chunk-K4MJX7SR.js";
|
|
25
|
+
import {
|
|
26
|
+
requestCliExit
|
|
27
|
+
} from "./chunk-DP5LF7GF.js";
|
|
28
28
|
import {
|
|
29
29
|
normalizeErrorMessage,
|
|
30
30
|
notePageCrash
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
typeDirPath,
|
|
21
21
|
updateRecord,
|
|
22
22
|
withFigmaErrors
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-DS7ANFBV.js";
|
|
24
24
|
import {
|
|
25
25
|
defineCommand
|
|
26
26
|
} from "./chunk-DL4OD7IA.js";
|
|
@@ -229,7 +229,7 @@ var asset_default = defineCommand({
|
|
|
229
229
|
rendered > 0 ? `(${results.length} nodes, ${rendered} rendered in 1 figma request)` : `(${results.length} nodes, all reused from cache \u2014 no figma request)`
|
|
230
230
|
);
|
|
231
231
|
}
|
|
232
|
-
const { trackFigmaImport } = await import("./telemetry-
|
|
232
|
+
const { trackFigmaImport } = await import("./telemetry-QOBPRUWF.js");
|
|
233
233
|
trackFigmaImport({
|
|
234
234
|
phase: "asset",
|
|
235
235
|
reused: results.every((r) => r.reused),
|
|
@@ -6,7 +6,7 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
shouldTrack
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-EC77ZBCP.js";
|
|
10
10
|
|
|
11
11
|
// src/telemetry/renderObservability.ts
|
|
12
12
|
function renderObservabilityTelemetryPayload(observability) {
|
|
@@ -6,7 +6,7 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
failCommand
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-DP5LF7GF.js";
|
|
10
10
|
|
|
11
11
|
// src/commands/lambda/state.ts
|
|
12
12
|
import { existsSync, mkdirSync, readdirSync, readFileSync, rmSync, writeFileSync } from "fs";
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
import { createRequire as __hf_createRequire } from "node:module";
|
|
2
|
+
import { fileURLToPath as __hf_fileURLToPath } from "node:url";
|
|
3
|
+
import { dirname as __hf_dirname } from "node:path";
|
|
4
|
+
var require = __hf_createRequire(import.meta.url);
|
|
5
|
+
var __filename = __hf_fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = __hf_dirname(__filename);
|
|
7
|
+
import {
|
|
8
|
+
CliRuntimeError,
|
|
9
|
+
CliUsageError,
|
|
10
|
+
failCommand,
|
|
11
|
+
failUsage
|
|
12
|
+
} from "./chunk-DP5LF7GF.js";
|
|
13
|
+
|
|
14
|
+
// src/utils/jsonError.ts
|
|
15
|
+
import { format, stripVTControlCharacters } from "util";
|
|
16
|
+
function jsonFailure(code, message, hint) {
|
|
17
|
+
return { ok: false, error: hint ? { code, message, hint } : { code, message } };
|
|
18
|
+
}
|
|
19
|
+
function failCaught(error, json, line, print = (payload) => console.log(JSON.stringify(payload))) {
|
|
20
|
+
const message = failureMessage(error);
|
|
21
|
+
const usage = error instanceof CliUsageError;
|
|
22
|
+
if (json) print(jsonFailure(usage ? error.code : "runtime_error", message));
|
|
23
|
+
else console.error(line(message));
|
|
24
|
+
if (usage) failUsage();
|
|
25
|
+
failCommand();
|
|
26
|
+
}
|
|
27
|
+
function writeJsonFailure(body) {
|
|
28
|
+
process.stdout.write(`${JSON.stringify({ ok: false, error: body })}
|
|
29
|
+
`);
|
|
30
|
+
}
|
|
31
|
+
var reported;
|
|
32
|
+
var noticeDepth = 0;
|
|
33
|
+
function recordFailure(message, hint) {
|
|
34
|
+
reported = { message, hint };
|
|
35
|
+
}
|
|
36
|
+
function asNotice(write) {
|
|
37
|
+
noticeDepth++;
|
|
38
|
+
try {
|
|
39
|
+
write();
|
|
40
|
+
} finally {
|
|
41
|
+
noticeDepth--;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
var GENERIC_MESSAGES = /* @__PURE__ */ new Set(["Command failed", "Invalid command usage"]);
|
|
45
|
+
function failureMessage(error) {
|
|
46
|
+
if (!(error instanceof Error)) return String(error);
|
|
47
|
+
if (!GENERIC_MESSAGES.has(error.message)) return error.message;
|
|
48
|
+
if (error.cause instanceof Error) return failureMessage(error.cause);
|
|
49
|
+
return reported?.message ?? error.message;
|
|
50
|
+
}
|
|
51
|
+
function watchOutput() {
|
|
52
|
+
let wrote = false;
|
|
53
|
+
let stderr = "";
|
|
54
|
+
let inConsole = false;
|
|
55
|
+
const keep = (text) => {
|
|
56
|
+
if (noticeDepth === 0) stderr = (stderr + text).slice(-4e3);
|
|
57
|
+
};
|
|
58
|
+
const stdoutWrite = process.stdout.write.bind(process.stdout);
|
|
59
|
+
const stderrWrite = process.stderr.write.bind(process.stderr);
|
|
60
|
+
process.stdout.write = ((...args) => {
|
|
61
|
+
wrote = true;
|
|
62
|
+
return stdoutWrite(...args);
|
|
63
|
+
});
|
|
64
|
+
process.stderr.write = ((...args) => {
|
|
65
|
+
if (!inConsole)
|
|
66
|
+
keep(args[0] instanceof Uint8Array ? Buffer.from(args[0]).toString() : String(args[0]));
|
|
67
|
+
return stderrWrite(...args);
|
|
68
|
+
});
|
|
69
|
+
for (const name of ["log", "info", "debug", "dir", "table"]) {
|
|
70
|
+
const original = console[name].bind(console);
|
|
71
|
+
console[name] = (...args) => {
|
|
72
|
+
wrote = true;
|
|
73
|
+
original(...args);
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
for (const name of ["error", "warn"]) {
|
|
77
|
+
const original = console[name].bind(console);
|
|
78
|
+
console[name] = (...args) => {
|
|
79
|
+
keep(`${format(...args)}
|
|
80
|
+
`);
|
|
81
|
+
inConsole = true;
|
|
82
|
+
try {
|
|
83
|
+
original(...args);
|
|
84
|
+
} finally {
|
|
85
|
+
inConsole = false;
|
|
86
|
+
}
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
return {
|
|
90
|
+
wroteStdout: () => wrote,
|
|
91
|
+
stderrText: () => stripVTControlCharacters(stderr).split("\n").map((line) => line.replace(/^[\s✗│◇◆]+/u, "").trim()).filter(Boolean).join(" ").slice(-1e3)
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
function withHint(body, hint) {
|
|
95
|
+
return hint ? { ...body, hint: stripVTControlCharacters(hint) } : body;
|
|
96
|
+
}
|
|
97
|
+
function errorCode(error, result) {
|
|
98
|
+
if (error instanceof CliUsageError) return error.code;
|
|
99
|
+
return result.kind === "usage_error" ? "usage_error" : "runtime_error";
|
|
100
|
+
}
|
|
101
|
+
function ownMessage(error) {
|
|
102
|
+
if (!(error instanceof Error) || GENERIC_MESSAGES.has(error.message)) return void 0;
|
|
103
|
+
const typed = error instanceof CliUsageError || error instanceof CliRuntimeError;
|
|
104
|
+
return typed || !("result" in error) ? stripVTControlCharacters(error.message) : void 0;
|
|
105
|
+
}
|
|
106
|
+
function jsonErrorBody(error, result, stderrText) {
|
|
107
|
+
const code = errorCode(error, result);
|
|
108
|
+
const own = ownMessage(error);
|
|
109
|
+
if (own)
|
|
110
|
+
return withHint(
|
|
111
|
+
{ code, message: own },
|
|
112
|
+
error instanceof CliUsageError ? error.hint : void 0
|
|
113
|
+
);
|
|
114
|
+
if (error instanceof Error && error.cause instanceof Error) {
|
|
115
|
+
return { code, message: failureMessage(error.cause) };
|
|
116
|
+
}
|
|
117
|
+
if (reported)
|
|
118
|
+
return withHint({ code, message: stripVTControlCharacters(reported.message) }, reported.hint);
|
|
119
|
+
return { code, message: stderrText || "Command failed" };
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
export {
|
|
123
|
+
jsonFailure,
|
|
124
|
+
failCaught,
|
|
125
|
+
writeJsonFailure,
|
|
126
|
+
recordFailure,
|
|
127
|
+
asNotice,
|
|
128
|
+
failureMessage,
|
|
129
|
+
watchOutput,
|
|
130
|
+
jsonErrorBody
|
|
131
|
+
};
|
|
@@ -6,15 +6,23 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
updateCheckDisabled
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-NGSENR4J.js";
|
|
10
10
|
import {
|
|
11
11
|
hostAnswers
|
|
12
12
|
} from "./chunk-K4WIOZFP.js";
|
|
13
13
|
import {
|
|
14
|
+
CONFIG_PATH,
|
|
14
15
|
readConfig,
|
|
15
16
|
readConfigFresh,
|
|
16
17
|
writeConfig
|
|
17
18
|
} from "./chunk-ZCHULPJZ.js";
|
|
19
|
+
import {
|
|
20
|
+
isUnattended
|
|
21
|
+
} from "./chunk-J3RXEDR2.js";
|
|
22
|
+
|
|
23
|
+
// src/utils/skillsUpdateCheck.ts
|
|
24
|
+
import { mkdirSync, readFileSync as readFileSync2, writeFileSync } from "fs";
|
|
25
|
+
import { dirname, join as join2, resolve as resolve2 } from "path";
|
|
18
26
|
|
|
19
27
|
// src/utils/skillsManifest.ts
|
|
20
28
|
import { execFile } from "child_process";
|
|
@@ -426,6 +434,23 @@ function skillsCheckDue() {
|
|
|
426
434
|
if (skillsNoticeOff()) return false;
|
|
427
435
|
return !cacheFresh(readConfig().lastSkillsCheck, Date.now());
|
|
428
436
|
}
|
|
437
|
+
function claimDailyNotice(project, now = Date.now()) {
|
|
438
|
+
const noticeFile = join2(dirname(CONFIG_PATH), "skills-notice.json");
|
|
439
|
+
let shown = {};
|
|
440
|
+
try {
|
|
441
|
+
shown = JSON.parse(readFileSync2(noticeFile, "utf-8"));
|
|
442
|
+
} catch {
|
|
443
|
+
}
|
|
444
|
+
if (now - (shown[project] ?? 0) < CHECK_INTERVAL_MS) return false;
|
|
445
|
+
const kept = Object.entries(shown).filter(([, at]) => now - at < CHECK_INTERVAL_MS);
|
|
446
|
+
try {
|
|
447
|
+
mkdirSync(dirname(noticeFile), { recursive: true, mode: 448 });
|
|
448
|
+
writeFileSync(noticeFile, JSON.stringify(Object.fromEntries([...kept, [project, now]])));
|
|
449
|
+
} catch {
|
|
450
|
+
return false;
|
|
451
|
+
}
|
|
452
|
+
return true;
|
|
453
|
+
}
|
|
429
454
|
function skillsNoticeText(meta) {
|
|
430
455
|
const total = meta.outdated + meta.missing;
|
|
431
456
|
if (total < 1) return null;
|
|
@@ -436,10 +461,11 @@ function skillsNoticeText(meta) {
|
|
|
436
461
|
|
|
437
462
|
`;
|
|
438
463
|
}
|
|
439
|
-
function printSkillsUpdateNotice() {
|
|
464
|
+
function printSkillsUpdateNotice(cwd = process.cwd()) {
|
|
440
465
|
if (skillsNoticeOff()) return;
|
|
441
|
-
const
|
|
442
|
-
|
|
466
|
+
const meta = getSkillsUpdateMeta();
|
|
467
|
+
const text = skillsNoticeText(isUnattended() ? { ...meta, outdated: 0 } : meta);
|
|
468
|
+
if (text && claimDailyNotice(resolve2(cwd))) process.stderr.write(text);
|
|
443
469
|
}
|
|
444
470
|
|
|
445
471
|
export {
|
|
@@ -12,12 +12,12 @@ import {
|
|
|
12
12
|
ensureHfIds,
|
|
13
13
|
mintHfId,
|
|
14
14
|
walkCompositionDescendants
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-QUXWS5UG.js";
|
|
16
16
|
import {
|
|
17
17
|
isAllowedHtmlAttribute,
|
|
18
18
|
isSafeAttributeValue,
|
|
19
19
|
sanitizeRichTextChildren
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-BYRXSKIY.js";
|
|
21
21
|
import {
|
|
22
22
|
require_dist
|
|
23
23
|
} from "./chunk-U46JEU26.js";
|
|
@@ -6,14 +6,14 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
loadProducer
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-CODPTVC2.js";
|
|
10
10
|
import {
|
|
11
11
|
resolveProjectRelativeSrc
|
|
12
12
|
} from "./chunk-PBNWRWKA.js";
|
|
13
13
|
|
|
14
14
|
// src/utils/projectMedia.ts
|
|
15
15
|
async function collectProjectMedia(projectDir) {
|
|
16
|
-
const { bundleToSingleHtml } = await import("./compiler-
|
|
16
|
+
const { bundleToSingleHtml } = await import("./compiler-6YCAUK7Z.js");
|
|
17
17
|
const html = await bundleToSingleHtml(projectDir);
|
|
18
18
|
const producer = await loadProducer();
|
|
19
19
|
if (!producer.collectRenderMedia) throw new Error("Render media collector unavailable");
|
|
@@ -6,20 +6,20 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
readCompositionFps
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-V6OSE6VT.js";
|
|
10
10
|
import {
|
|
11
11
|
errorBox
|
|
12
|
-
} from "./chunk-
|
|
13
|
-
import {
|
|
14
|
-
failUsage
|
|
15
|
-
} from "./chunk-LALLQUSK.js";
|
|
12
|
+
} from "./chunk-5ZBMHUY2.js";
|
|
16
13
|
import {
|
|
17
14
|
DEFAULT_CONFIG,
|
|
18
15
|
resolvePageNavigationTimeout
|
|
19
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-OL5E4Y4L.js";
|
|
20
17
|
import {
|
|
21
18
|
parseFps
|
|
22
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-BYRXSKIY.js";
|
|
20
|
+
import {
|
|
21
|
+
failUsage
|
|
22
|
+
} from "./chunk-DP5LF7GF.js";
|
|
23
23
|
|
|
24
24
|
// src/browser/windowsCrash.ts
|
|
25
25
|
var STATUS_STACK_BUFFER_OVERRUN_DEC = "3221225595";
|
|
@@ -6,8 +6,8 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
|
|
8
8
|
// src/version.ts
|
|
9
|
-
var VERSION = true ? "0.8.
|
|
10
|
-
var PRODUCER_VERSION = true ? "0.8.
|
|
9
|
+
var VERSION = true ? "0.8.212" : "0.0.0-dev";
|
|
10
|
+
var PRODUCER_VERSION = true ? "0.8.212" : "0.0.0-dev";
|
|
11
11
|
|
|
12
12
|
export {
|
|
13
13
|
VERSION,
|
|
@@ -10,41 +10,38 @@ import {
|
|
|
10
10
|
import {
|
|
11
11
|
RegistryCompatibilityError,
|
|
12
12
|
gateRegistryItemsCompatibility
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-25MKZTRT.js";
|
|
14
14
|
import {
|
|
15
15
|
DEFAULT_PROJECT_CONFIG,
|
|
16
16
|
createProjectConfig,
|
|
17
17
|
loadProjectConfig,
|
|
18
18
|
projectConfigPath,
|
|
19
19
|
recordProjectRegistryItems
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-F5XADOGC.js";
|
|
21
21
|
import {
|
|
22
22
|
resolveItemWithDependencies,
|
|
23
23
|
resolveItemsByTag
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-Y3U7ECBH.js";
|
|
25
25
|
import {
|
|
26
26
|
InvalidVariableValuesError,
|
|
27
27
|
prepareItem,
|
|
28
28
|
publishItem
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-XGXTZNES.js";
|
|
30
30
|
import {
|
|
31
31
|
DEFAULT_REGISTRY_URL
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-45JN2GIZ.js";
|
|
33
33
|
import {
|
|
34
34
|
trackRegistryItemAdded
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-GVE6I5EL.js";
|
|
36
36
|
import {
|
|
37
37
|
defineCommand
|
|
38
38
|
} from "./chunk-DL4OD7IA.js";
|
|
39
|
-
import {
|
|
40
|
-
failCommand
|
|
41
|
-
} from "./chunk-LALLQUSK.js";
|
|
42
39
|
import {
|
|
43
40
|
c
|
|
44
41
|
} from "./chunk-2GICKZ3I.js";
|
|
45
42
|
import {
|
|
46
43
|
ITEM_TYPE_DIRS
|
|
47
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-BYRXSKIY.js";
|
|
48
45
|
import {
|
|
49
46
|
isProjectRootMissing,
|
|
50
47
|
realpath
|
|
@@ -52,6 +49,12 @@ import {
|
|
|
52
49
|
import {
|
|
53
50
|
parseHTML
|
|
54
51
|
} from "./chunk-GWTIFRF5.js";
|
|
52
|
+
import {
|
|
53
|
+
failCaught
|
|
54
|
+
} from "./chunk-SJGE5I5F.js";
|
|
55
|
+
import {
|
|
56
|
+
failCommand
|
|
57
|
+
} from "./chunk-DP5LF7GF.js";
|
|
55
58
|
|
|
56
59
|
// src/commands/add.ts
|
|
57
60
|
import { existsSync, readFileSync } from "fs";
|
|
@@ -416,10 +419,7 @@ var add_default = defineCommand({
|
|
|
416
419
|
}
|
|
417
420
|
} catch (singleErr) {
|
|
418
421
|
if (!(singleErr instanceof AddError) || singleErr.code !== "unknown-item") {
|
|
419
|
-
|
|
420
|
-
if (json) console.log(JSON.stringify({ ok: false, error: msg }));
|
|
421
|
-
else console.error(c.error(msg));
|
|
422
|
-
failCommand();
|
|
422
|
+
failCaught(singleErr, json, c.error);
|
|
423
423
|
}
|
|
424
424
|
let config = loadProjectConfig(projectDir);
|
|
425
425
|
if (!existsSync(projectConfigPath(projectDir)) && existsSync(resolve(projectDir, "index.html"))) {
|
|
@@ -433,10 +433,7 @@ var add_default = defineCommand({
|
|
|
433
433
|
items = [];
|
|
434
434
|
}
|
|
435
435
|
if (items.length === 0) {
|
|
436
|
-
|
|
437
|
-
if (json) console.log(JSON.stringify({ ok: false, error: msg }));
|
|
438
|
-
else console.error(c.error(msg));
|
|
439
|
-
failCommand();
|
|
436
|
+
failCaught(singleErr, json, c.error);
|
|
440
437
|
}
|
|
441
438
|
if (!json) {
|
|
442
439
|
console.log("");
|