hyperframes 0.9.19 → 0.9.20
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-YT7BMWZB.js → add-6U3Y7DEN.js} +14 -15
- package/dist/{agentPromptGenerator-VKOL4XCD.js → agentPromptGenerator-2U62YSRT.js} +10 -11
- package/dist/{animatedGifPrep-MD4BNSPH.js → animatedGifPrep-RC6CYTRI.js} +10 -11
- package/dist/api.js +35 -36
- package/dist/{appHistory-WXJ4STHX.js → appHistory-FVDSCS64.js} +1 -1
- package/dist/{asset-J42DGWPQ.js → asset-ER2CUS6B.js} +2 -2
- package/dist/{assetCataloger-XDZB53RE.js → assetCataloger-425SRTPW.js} +11 -12
- package/dist/{audio-6EV56WMQ.js → audio-JUAMPMWA.js} +69 -25
- package/dist/{auth-ECYU3HT4.js → auth-DQ52RE6K.js} +4 -4
- package/dist/{autoUpdate-HIKCPXQA.js → autoUpdate-YUZGZ5ZI.js} +2 -2
- package/dist/{avatars-X7DEU57Y.js → avatars-F4HNQISE.js} +16 -17
- package/dist/{backgroundChecks-IYWWBPTC.js → backgroundChecks-MSOJBGL7.js} +3 -3
- package/dist/backgroundChecksWorker.js +3 -3
- package/dist/{batchRender-3TAV6XQQ.js → batchRender-33AZEDWV.js} +5 -6
- package/dist/{beats-IFJBCISA.js → beats-WI3UU5KD.js} +11 -12
- package/dist/{benchmark-OS6LVCAY.js → benchmark-ZE5Y75YM.js} +11 -12
- package/dist/{billing-4NRHG5FO.js → billing-N4BCUG7R.js} +15 -16
- package/dist/{browser-CFI3GKFB.js → browser-HUOPVD2U.js} +16 -4
- package/dist/{bundleWithLocalizedFonts-6YHKES5G.js → bundleWithLocalizedFonts-PRR3UAJT.js} +1 -1
- package/dist/{capture-SNHDWW7W.js → capture-2QNE2DEY.js} +3 -3
- package/dist/{capture-4H3W3FNF.js → capture-UWQ2GBML.js} +22 -23
- package/dist/{captureCompositionFrame-BH4UMGJP.js → captureCompositionFrame-S2A5KJUT.js} +16 -17
- package/dist/{catalog-RZOQ54KZ.js → catalog-BQZ55PQP.js} +14 -15
- package/dist/{catch-up-PA4QGVNL.js → catch-up-JFII6DVC.js} +18 -7
- package/dist/{check-J2TCCJL5.js → check-KPFCL46S.js} +43 -42
- package/dist/{checkAudio-RIFMEOQI.js → checkAudio-NTES344V.js} +13 -14
- package/dist/{checkBrowser-M4YCLLDJ.js → checkBrowser-WQWRQO2X.js} +35 -36
- package/dist/{chunk-ABT7WBZZ.js → chunk-35APUSDP.js} +1 -1
- package/dist/{chunk-3UYQMVJS.js → chunk-3KJW4NNP.js} +9 -9
- package/dist/{chunk-DTJV7ST5.js → chunk-3WLJMGCI.js} +1 -1
- package/dist/{chunk-HNGHIX26.js → chunk-4EUUYYB3.js} +35 -2
- package/dist/{chunk-2LZO4FX3.js → chunk-4HWNUBW2.js} +3 -3
- package/dist/{chunk-G2HKE5CX.js → chunk-4J2Y6G2X.js} +1 -1
- package/dist/{chunk-OR2FAQFS.js → chunk-4XOQILDV.js} +1 -1
- package/dist/{chunk-AKEZ2BEE.js → chunk-5ECZJECP.js} +1 -1
- package/dist/{chunk-YCXW65RT.js → chunk-5KJWA22L.js} +5 -5
- package/dist/{chunk-CPFG5QSQ.js → chunk-5V3R5ZMY.js} +7 -7
- package/dist/{chunk-NTMMUK6Q.js → chunk-5WKW4P6P.js} +10 -5
- package/dist/{chunk-GDQQ4U3L.js → chunk-6FI5JRM3.js} +122 -27
- package/dist/{chunk-XKYXENEP.js → chunk-76HDNQDL.js} +2 -2
- package/dist/{chunk-BYVDFTG6.js → chunk-76IGIELW.js} +2 -2
- package/dist/{chunk-UIUILBMB.js → chunk-7CGSZ3OR.js} +13 -13
- package/dist/{chunk-A5MTIN4M.js → chunk-7DGAJ7RY.js} +1 -1
- package/dist/chunk-7DS3STTY.js +5035 -0
- package/dist/{chunk-7HROKMNQ.js → chunk-7ISXVZHB.js} +4 -4
- package/dist/{chunk-KXZD37E5.js → chunk-7PG57ERE.js} +1 -1
- package/dist/{chunk-WAY7TXDD.js → chunk-A457YCWN.js} +2 -2
- package/dist/{chunk-WMRHEI4N.js → chunk-ADJCNH7M.js} +1 -1
- package/dist/{chunk-ENVFGBRD.js → chunk-AXFYCH7S.js} +12 -0
- package/dist/{chunk-RRGH76QX.js → chunk-BA3FUJOU.js} +4 -4
- package/dist/{chunk-FJXBDFH6.js → chunk-BQ2U65ZF.js} +272 -186
- package/dist/{chunk-CBHNARFI.js → chunk-C2PQTWAH.js} +1 -1
- package/dist/{chunk-63LNVITK.js → chunk-CKZQQ2DO.js} +1 -1
- package/dist/{chunk-GKLZMLX3.js → chunk-CXUT4XVT.js} +22 -1
- package/dist/{chunk-RL3CNZAX.js → chunk-D3ZYDQMH.js} +2 -2
- package/dist/{chunk-RWJFNJUE.js → chunk-DNWZ66ND.js} +1 -1
- package/dist/{chunk-5PC5FMF4.js → chunk-FPM6B5X5.js} +3 -3
- package/dist/{chunk-IDNKBZNX.js → chunk-FXPBFARU.js} +1 -1
- package/dist/{chunk-JWQHGM3V.js → chunk-FY2QFPEK.js} +1 -1
- package/dist/{chunk-LDFI55LW.js → chunk-G2C7OTXI.js} +1 -1
- package/dist/{chunk-LFSSI7W3.js → chunk-GH4QTKBM.js} +42 -15
- package/dist/{chunk-4FFKOLNM.js → chunk-GNY2WZKA.js} +3 -3
- package/dist/{chunk-J3QW55W5.js → chunk-H6676SHA.js} +1 -1
- package/dist/{chunk-ZPJYWAAS.js → chunk-HCUEMQB4.js} +1 -1
- package/dist/{chunk-I2L7KR3N.js → chunk-HIT72LVX.js} +7 -7
- package/dist/{chunk-TOD5PQJF.js → chunk-IBXWPFGK.js} +2 -2
- package/dist/{chunk-E3GBPA37.js → chunk-IY4I7TV4.js} +2 -2
- package/dist/{chunk-UPURJC4I.js → chunk-JXGFZG73.js} +1 -1
- package/dist/{chunk-L24NAUBS.js → chunk-KBHBSWEE.js} +64 -19
- package/dist/{chunk-6AYTP32B.js → chunk-KKNAM57Z.js} +1 -1
- package/dist/{chunk-6OBCXHIF.js → chunk-KPCCWI5Q.js} +3 -3
- package/dist/{chunk-VXZOWF6M.js → chunk-L6XUDQW6.js} +46 -20
- package/dist/{chunk-T655WZ4R.js → chunk-LDV6P3DG.js} +1 -1
- package/dist/{chunk-URGLY5QV.js → chunk-LEVO6XYF.js} +83 -31
- package/dist/{chunk-BEAEO4OV.js → chunk-LNHMJ555.js} +1 -1
- package/dist/{chunk-X2TDLUIK.js → chunk-M5CDC3VO.js} +32 -7
- package/dist/{chunk-VGAKHIDG.js → chunk-MHW4MMV4.js} +10 -10
- package/dist/{chunk-FSTINYWN.js → chunk-MQFX4OD3.js} +1 -1
- package/dist/{chunk-PMAGFCRB.js → chunk-N2I2YUL7.js} +7 -7
- package/dist/{chunk-JDAYOJGJ.js → chunk-NHV3G6JH.js} +1 -1
- package/dist/{chunk-7EN7RIPV.js → chunk-NSNT4DNY.js} +2 -2
- package/dist/{chunk-3QIHS5V3.js → chunk-NZ6JYCGU.js} +3 -3
- package/dist/{chunk-ZVDYDMQA.js → chunk-OAQTFIWB.js} +3 -3
- package/dist/{chunk-N7D6YUGR.js → chunk-OWBXXAYQ.js} +2 -2
- package/dist/{chunk-PTIOZJMF.js → chunk-P2DAWEPF.js} +2 -2
- package/dist/{chunk-TJUJJYJC.js → chunk-P2GR4V7S.js} +1 -1
- package/dist/{chunk-QEFMUD5U.js → chunk-PAFAOFZZ.js} +1 -1
- package/dist/{chunk-TLZCUWHQ.js → chunk-PGNE33QK.js} +236 -49
- package/dist/{chunk-SJUFAZV5.js → chunk-POKB2QVF.js} +2 -2
- package/dist/{chunk-XYHAXHOH.js → chunk-PWP4W2PF.js} +1 -1
- package/dist/{chunk-M3EGX3ID.js → chunk-Q6DA3X34.js} +4 -4
- package/dist/{chunk-IV2R3NET.js → chunk-QSOIL3EE.js} +3 -3
- package/dist/{chunk-XQD6XWE3.js → chunk-QUYTXJLE.js} +1 -1
- package/dist/{chunk-67JLV22D.js → chunk-QYWOP6MH.js} +3 -3
- package/dist/{chunk-NKK2FRY7.js → chunk-RFG4XUMQ.js} +1 -1
- package/dist/{chunk-GZK32KOL.js → chunk-RONKIDIW.js} +5 -5
- package/dist/{chunk-2DPQ347C.js → chunk-RPSR5YSD.js} +4 -4
- package/dist/{chunk-D33DCBBM.js → chunk-S45SR3TL.js} +2 -2
- package/dist/{chunk-WBXUGXZP.js → chunk-S6MXHF7C.js} +1 -1
- package/dist/{chunk-W6Q7Q7BS.js → chunk-SH6P5CMQ.js} +77 -2
- package/dist/{chunk-2752JKE6.js → chunk-SVOUYNKZ.js} +44 -17
- package/dist/{chunk-YBUZQGMX.js → chunk-TCW3ALLF.js} +2 -2
- package/dist/{chunk-H3YZRS32.js → chunk-TGSBNJYV.js} +2 -2
- package/dist/{chunk-IPXNWK7O.js → chunk-TKHWUM6J.js} +2 -2
- package/dist/{chunk-GNING3UV.js → chunk-UECTSXVZ.js} +1 -1
- package/dist/{chunk-RLXUABCX.js → chunk-UH6JF4TY.js} +12 -5
- package/dist/{chunk-HY5KQ4KT.js → chunk-USRF4NA6.js} +10 -10
- package/dist/{chunk-BJUPV6I3.js → chunk-UXEUKILH.js} +1 -1
- package/dist/{chunk-RKRJAQFI.js → chunk-VM6PDH32.js} +1 -1
- package/dist/{chunk-XPIP5ZV3.js → chunk-WMZHESNZ.js} +2 -2
- package/dist/{chunk-SVT6FCQX.js → chunk-WNPIJ7UG.js} +1 -1
- package/dist/{chunk-I4G55F5J.js → chunk-X254MPK3.js} +1 -1
- package/dist/{chunk-6KBDQAZC.js → chunk-XACDCHJF.js} +1 -1
- package/dist/{chunk-2AL2DME3.js → chunk-XID37ELP.js} +2 -2
- package/dist/{chunk-ATUCYH5L.js → chunk-XU5LAY46.js} +1 -1
- package/dist/{chunk-L6YCPDRH.js → chunk-Y5ZW3BRK.js} +3 -3
- package/dist/{chunk-WRBUQRJJ.js → chunk-YVFJWUSI.js} +1 -1
- package/dist/{chunk-BUIZAY4L.js → chunk-Z745SNN4.js} +1 -1
- package/dist/{chunk-Z2BBCW57.js → chunk-ZNUMTYBZ.js} +3 -3
- package/dist/{clean-PMM6YUQ3.js → clean-5FFXB5MF.js} +20 -21
- package/dist/cli.js +62 -62
- package/dist/{cloud-D3WTNTF2.js → cloud-CINLC3NP.js} +3 -3
- package/dist/{cloud-OIPASJZZ.js → cloud-XC5OSAE2.js} +4 -4
- package/dist/{cloudrun-3TXJ2QOV.js → cloudrun-VVU4XERK.js} +6 -7
- package/dist/{compare-NC7JQXZH.js → compare-6ZVA7JDY.js} +32 -33
- package/dist/{compiler-C2HCN5CA.js → compiler-4WKTHUPH.js} +4 -4
- package/dist/{component-M2VJD3QI.js → component-CYXNZPHM.js} +3 -3
- package/dist/{compositions-3QMQV5OS.js → compositions-Z53CMRFQ.js} +14 -15
- package/dist/{curve-S3VZXTYX.js → curve-ZLVHONKG.js} +14 -15
- package/dist/{cuts-O3OKZGPU.js → cuts-JGHDX4ND.js} +15 -16
- package/dist/{delete-RFDRT4K6.js → delete-C6KCUXEV.js} +5 -5
- package/dist/{deploy-LIQXICPP.js → deploy-3W4FAFBU.js} +1 -1
- package/dist/{describeProject-IUAV4C55.js → describeProject-NB7JQQRZ.js} +11 -12
- package/dist/{deterministicFonts-DQDB47K3.js → deterministicFonts-IXXU76SA.js} +1 -1
- package/dist/{diff-F434Y7GL.js → diff-77IF7ZGC.js} +34 -35
- package/dist/{dist-6N5S5326.js → dist-2MTQQEZT.js} +17 -17
- package/dist/{dist-URQMS2HM.js → dist-LPVHFSCW.js} +2 -2
- package/dist/{dist-KA45Z5SZ.js → dist-PVM257OR.js} +11 -12
- package/dist/docs/motion-blur.md +3 -5
- package/dist/{doctor-VAEAFW3N.js → doctor-7ARBZ2FZ.js} +14 -15
- package/dist/{energy-HQG367CH.js → energy-2I6O5IQY.js} +15 -16
- package/dist/{events-M457QJCL.js → events-CG6ZFBPQ.js} +16 -4
- package/dist/{events-3HQKXGJN.js → events-CXZTEW5W.js} +17 -18
- package/dist/{events-R55FOR6B.js → events-MCXWDE3G.js} +2 -2
- package/dist/{extract-KSYOILWX.js → extract-NSSKZ7EO.js} +15 -16
- package/dist/{face-IOYVA3KO.js → face-CZBXJIJD.js} +15 -16
- package/dist/{feedback-OLY2Y2HB.js → feedback-3ZZQHXQA.js} +18 -19
- package/dist/{ffmpeg-POWBUKIU.js → ffmpeg-KOJQXOMH.js} +10 -11
- package/dist/{figma-PYAOGAQ7.js → figma-T77MIMMN.js} +3 -3
- package/dist/fontLocalizeCli.js +14 -15
- package/dist/{frames-RIUU6JZF.js → frames-GMXMQ7DQ.js} +16 -17
- package/dist/{generate-TVFTFEHB.js → generate-PN2N6MQV.js} +26 -27
- package/dist/{get-ASVUBVPU.js → get-AMP7GO2J.js} +5 -5
- package/dist/{gpuPolicy-QDYHFIDS.js → gpuPolicy-336CZTOI.js} +10 -11
- package/dist/{grade-compare-2TVGR2WJ.js → grade-compare-XHR7XCIJ.js} +33 -34
- package/dist/{heifImagePrep-ZDQ6FE6L.js → heifImagePrep-GAATPFZJ.js} +11 -12
- package/dist/{help-MZHLMNGB.js → help-QLT7Q5CF.js} +1 -1
- package/dist/{history-CCPMGESN.js → history-IBK4ICX6.js} +19 -8
- package/dist/hyperframe.manifest.json +1 -1
- package/dist/hyperframe.runtime.iife.js +73 -73
- package/dist/hyperframes-player.global.js +3 -3
- package/dist/{info-5CRW7PXR.js → info-IF6TAH4N.js} +16 -17
- package/dist/{init-6U5JDVOC.js → init-7TY3OJ6O.js} +30 -31
- package/dist/{ink-BVK6K2CB.js → ink-PGZ7QSBH.js} +15 -16
- package/dist/{inspect-NUGGYSLQ.js → inspect-LHLSKDYO.js} +33 -34
- package/dist/{installer-TBUJ66L6.js → installer-DBTP7YGS.js} +6 -7
- package/dist/{keyframes-N5637YSK.js → keyframes-4M4776JR.js} +16 -8
- package/dist/{lambda-VPSI7MTF.js → lambda-FFMB6Y76.js} +14 -15
- package/dist/{layout-FHJ2SQTW.js → layout-LJHS7HFD.js} +33 -34
- package/dist/{lint-XPRHASUK.js → lint-2J5AVK6D.js} +14 -10
- package/dist/{lintProject-6TML32JZ.js → lintProject-2OD4CDTW.js} +2 -2
- package/dist/{list-TST4Z4GR.js → list-MAYBNZEL.js} +5 -5
- package/dist/{localPage-NR4NBUTZ.js → localPage-EKPNDJ27.js} +10 -11
- package/dist/{login-64KOPWVK.js → login-CEU43XKU.js} +6 -6
- package/dist/{logout-EQ2HJDL4.js → logout-EKDVIU6Y.js} +2 -2
- package/dist/{look-VBHITYXG.js → look-IYTF5GLD.js} +15 -16
- package/dist/{manager-OAK67I5F.js → manager-DILAI3UF.js} +11 -12
- package/dist/{measure-NNQ6XXH2.js → measure-2WZGYPYI.js} +11 -11
- package/dist/{media-treatment-M2X3Q5NV.js → media-treatment-NEY3KFIE.js} +16 -17
- package/dist/{media-use-ZGJJL6KV.js → media-use-3RF5K7J2.js} +4 -4
- package/dist/{models-Y24YJJ6P.js → models-JG3K3WHB.js} +14 -15
- package/dist/{motionShot-KMU2SMX6.js → motionShot-BXTTHXNC.js} +19 -20
- package/dist/{normalize-audio-27XH53UL.js → normalize-audio-V42ORWPJ.js} +11 -12
- package/dist/{open-6MLQR2BC.js → open-TIGOP4UL.js} +15 -16
- package/dist/{parakeetRunner-BMK7KY7W.js → parakeetRunner-ECBLSKPA.js} +15 -16
- package/dist/{pipeline-AILSBZUB.js → pipeline-NAQKFYVO.js} +13 -14
- package/dist/{play-VTM2B4CS.js → play-OCUIRYGT.js} +22 -23
- package/dist/{preflight-IRQCF5ZW.js → preflight-FXN2DIKX.js} +11 -12
- package/dist/{present-JQH4CETR.js → present-EIPGUFX2.js} +18 -19
- package/dist/{preview-KGMCKLBI.js → preview-D3DGM36N.js} +22 -23
- package/dist/{probe-IP6W7U4A.js → probe-LHGNRPYJ.js} +15 -16
- package/dist/{producer-PRYLGX6W.js → producer-MUSGQJB5.js} +1 -1
- package/dist/{projectConfig-6WPGQGI3.js → projectConfig-5XHCXAR2.js} +8 -9
- package/dist/{publication-25E6ZMLB.js → publication-YHI2M2PN.js} +4 -5
- package/dist/{publish-6QT26AMU.js → publish-DD4ZAHEH.js} +15 -16
- package/dist/{refresh-ARZZRKMP.js → refresh-ZHLUUENK.js} +2 -2
- package/dist/{remove-background-CVQQZNQQ.js → remove-background-AJBLAXSV.js} +14 -15
- package/dist/{render-3VHULZTP.js → render-32BRUXZK.js} +7 -8
- package/dist/{render-PUXPIIGJ.js → render-AKGMPEQ4.js} +74 -37
- package/dist/{render-VMHF2RVD.js → render-LCH7X3UA.js} +42 -39
- package/dist/{render-batch-UKWKZUJM.js → render-batch-BGZ4XDDA.js} +7 -8
- package/dist/renderSetupWorker.js +11 -8
- package/dist/{resolver-KEMGGVU7.js → resolver-M64IRWRP.js} +6 -7
- package/dist/{reverse-4BCCUHPA.js → reverse-HLLQAI77.js} +1 -1
- package/dist/{run-WZP6HXIH.js → run-Q4IUMQIY.js} +4 -4
- package/dist/{screenshotCapture-VGOH65YU.js → screenshotCapture-INHISXPC.js} +11 -12
- package/dist/{sherpa-AQJGVMWJ.js → sherpa-MQLZFNTX.js} +14 -15
- package/dist/skills/hyperframes/references/motion.md +1 -1
- package/dist/skills/hyperframes/references/storyboard.md +1 -1
- package/dist/skills/hyperframes-cli/references/lint-validate-inspect.md +1 -1
- package/dist/skills/media-use/references/heygen.md +9 -9
- package/dist/{skills-VB4OXS7B.js → skills-W4F5AJ2K.js} +19 -7
- package/dist/{skillsUpdateCheck-HMGBIR2Z.js → skillsUpdateCheck-GVFHBX3G.js} +3 -3
- package/dist/{snapshot-SXWIDOD3.js → snapshot-34FUMOEG.js} +40 -41
- package/dist/{src-IEVHZX7S.js → src-M3NYEBA7.js} +13 -14
- package/dist/{src-RETKK67M.js → src-VL6XKFAA.js} +20 -19
- package/dist/{start-PDD5527T.js → start-A3YWCGDG.js} +24 -25
- package/dist/{staticProjectServer-GJQCWV7Y.js → staticProjectServer-6NQWZP3Q.js} +21 -22
- package/dist/{status-N6FGW6E2.js → status-ZBUL7MPB.js} +16 -17
- package/dist/studio/assets/{hyperframes-player-Dszy0WKm.js → hyperframes-player-ZQZslutT.js} +3 -3
- package/dist/studio/assets/index-Bgfyny02.css +1 -0
- package/dist/studio/assets/{index-CWYuXWlI.js → index-Bn5atbhb.js} +1 -1
- package/dist/studio/assets/{index-BeR5xCi5.js → index-Bz2pYyGM.js} +196 -196
- package/dist/studio/index.html +2 -2
- package/dist/{studio-api-IAELPUY4.js → studio-api-CIDVEQUP.js} +11 -12
- package/dist/{studioServer-XTVVJA3E.js → studioServer-4FEM4AAL.js} +66 -59
- package/dist/{sync-SDUSYR4M.js → sync-PXQD6JNH.js} +15 -16
- package/dist/{telemetry-IXOTZW4E.js → telemetry-BMPRZBBX.js} +22 -2
- package/dist/{telemetry-U4VJBESU.js → telemetry-W7PZ4E2A.js} +16 -4
- package/dist/{templates-VFKKDFCR.js → templates-ELZU33UU.js} +25 -26
- package/dist/{timeline-62HYU4LF.js → timeline-O7BR3IKC.js} +21 -22
- package/dist/{tokens-XJUQMDBP.js → tokens-RNFI6LFF.js} +2 -2
- package/dist/{transcribe-7IPTYLH2.js → transcribe-GUUUSHHL.js} +28 -29
- package/dist/{transcribe-RRGMCQBP.js → transcribe-XQOGYK6P.js} +13 -14
- package/dist/{update-EAL42IMG.js → update-J37ZLNH7.js} +20 -8
- package/dist/{updateCheck-CCDI422O.js → updateCheck-ALBUZ6YM.js} +2 -2
- package/dist/{upgrade-A73PJHPY.js → upgrade-NVG73VIE.js} +3 -3
- package/dist/{upload-YQMBLKH5.js → upload-HBALN6HE.js} +5 -1
- package/dist/{urlDownloader-JZIEE3AD.js → urlDownloader-TKEHDA5W.js} +9 -10
- package/dist/{validate-N6F4N34T.js → validate-3TFHU3MJ.js} +27 -28
- package/dist/{video-6LPKR7VA.js → video-PBNQGPQO.js} +11 -12
- package/dist/{voices-LFPLTLKV.js → voices-PF7EV4O4.js} +29 -28
- package/dist/warmCheck.js +41 -42
- package/package.json +1 -1
- package/dist/chunk-TK7THLRO.js +0 -65
- package/dist/chunk-X7SYA4OP.js +0 -5035
- package/dist/studio/assets/index-CNZk2EFC.css +0 -1
|
@@ -26,7 +26,16 @@ function windowsLocalAppData() {
|
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
// src/utils/projectRecords.ts
|
|
29
|
-
import {
|
|
29
|
+
import {
|
|
30
|
+
closeSync,
|
|
31
|
+
constants,
|
|
32
|
+
fstatSync,
|
|
33
|
+
lstatSync,
|
|
34
|
+
mkdirSync,
|
|
35
|
+
openSync,
|
|
36
|
+
readSync,
|
|
37
|
+
unlinkSync
|
|
38
|
+
} from "fs";
|
|
30
39
|
import { join } from "path";
|
|
31
40
|
var NO_FOLLOW = constants.O_NOFOLLOW ?? 0;
|
|
32
41
|
var NON_BLOCK = constants.O_NONBLOCK ?? 0;
|
|
@@ -91,6 +100,16 @@ function writeRecord(projectDir, name, data) {
|
|
|
91
100
|
const dir = recordsDir(projectDir, true);
|
|
92
101
|
return dir !== null && replaceFile(join(dir, name), data, 384);
|
|
93
102
|
}
|
|
103
|
+
function removeRecord(projectDir, name) {
|
|
104
|
+
const dir = recordsDir(projectDir);
|
|
105
|
+
try {
|
|
106
|
+
if (!dir || !lstatSync(join(dir, name)).isFile()) return false;
|
|
107
|
+
unlinkSync(join(dir, name));
|
|
108
|
+
return true;
|
|
109
|
+
} catch {
|
|
110
|
+
return false;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
94
113
|
|
|
95
114
|
// src/utils/appHistory.ts
|
|
96
115
|
var APP_HISTORY = "app-history.jsonl";
|
|
@@ -226,7 +245,9 @@ ${CATCH_UP_NOTE}
|
|
|
226
245
|
|
|
227
246
|
export {
|
|
228
247
|
windowsLocalAppData,
|
|
248
|
+
readRecord,
|
|
229
249
|
writeRecord,
|
|
250
|
+
removeRecord,
|
|
230
251
|
APP_HISTORY,
|
|
231
252
|
readAppTurns,
|
|
232
253
|
seenPath,
|
|
@@ -8,14 +8,14 @@ import {
|
|
|
8
8
|
DEFAULT_REGISTRY_URL,
|
|
9
9
|
fetchItemFile,
|
|
10
10
|
validRegistryItem
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-S6MXHF7C.js";
|
|
12
12
|
import {
|
|
13
13
|
publishRegistryFile,
|
|
14
14
|
registryTargetPath
|
|
15
15
|
} from "./chunk-T2WJO4XM.js";
|
|
16
16
|
import {
|
|
17
17
|
validateVariables
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-SH6P5CMQ.js";
|
|
19
19
|
import {
|
|
20
20
|
realProjectRoot
|
|
21
21
|
} from "./chunk-OFQWTKPW.js";
|
|
@@ -7,16 +7,16 @@ var __dirname = __hf_dirname(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
resolveCloudAuthHeaders,
|
|
9
9
|
resolveCloudBaseUrl
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-H6676SHA.js";
|
|
11
11
|
import {
|
|
12
12
|
readProjectConfig
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-HCUEMQB4.js";
|
|
14
14
|
import {
|
|
15
15
|
normalizeSkillSlug
|
|
16
16
|
} from "./chunk-HVW7ABXD.js";
|
|
17
17
|
import {
|
|
18
18
|
trackBillingCheckoutReturnRefused
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-4EUUYYB3.js";
|
|
20
20
|
|
|
21
21
|
// src/heygen/plan.ts
|
|
22
22
|
import { randomUUID } from "crypto";
|
|
@@ -7,12 +7,12 @@ var __dirname = __hf_dirname(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
findCuts,
|
|
9
9
|
signatures
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-UXEUKILH.js";
|
|
11
11
|
import {
|
|
12
12
|
jsonArg,
|
|
13
13
|
num,
|
|
14
14
|
runMeasure
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-TCW3ALLF.js";
|
|
16
16
|
import {
|
|
17
17
|
makeOutputFolder
|
|
18
18
|
} from "./chunk-3S27CPV7.js";
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
publicVoices,
|
|
24
24
|
runJob,
|
|
25
25
|
senderScope
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-Q6DA3X34.js";
|
|
27
27
|
import {
|
|
28
28
|
Fix,
|
|
29
29
|
probeSeconds,
|
|
@@ -32,7 +32,7 @@ import {
|
|
|
32
32
|
round,
|
|
33
33
|
runFfmpeg,
|
|
34
34
|
videoClip
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-RFG4XUMQ.js";
|
|
36
36
|
import {
|
|
37
37
|
loadSharp
|
|
38
38
|
} from "./chunk-NL4RCLQF.js";
|
|
@@ -311,9 +311,9 @@ function assetsOf(r) {
|
|
|
311
311
|
async function uploaded(paths) {
|
|
312
312
|
const ids = /* @__PURE__ */ new Map();
|
|
313
313
|
if (!paths.length) return ids;
|
|
314
|
-
const { createCloudClient } = await import("./cloud-
|
|
315
|
-
const { uploadAssetViaDirectUpload } = await import("./upload-
|
|
316
|
-
const { getMimeType } = await import("./dist-
|
|
314
|
+
const { createCloudClient } = await import("./cloud-CINLC3NP.js");
|
|
315
|
+
const { uploadAssetViaDirectUpload } = await import("./upload-HBALN6HE.js");
|
|
316
|
+
const { getMimeType } = await import("./dist-PVM257OR.js");
|
|
317
317
|
const client = await createCloudClient();
|
|
318
318
|
for (const path of paths) {
|
|
319
319
|
const asset = await uploadAssetViaDirectUpload({
|
|
@@ -475,11 +475,24 @@ async function pickVoice(r) {
|
|
|
475
475
|
]);
|
|
476
476
|
const kept = keptVoice(project, request);
|
|
477
477
|
if (kept) return kept;
|
|
478
|
-
const
|
|
479
|
-
|
|
478
|
+
const language = languageName(r.voice);
|
|
479
|
+
const [voice] = await publicVoices(language, 1);
|
|
480
|
+
const named = voice?.language?.toLowerCase() === language.toLowerCase();
|
|
481
|
+
if (!voice || !named && voice.language?.toLowerCase() === "multilingual")
|
|
482
|
+
throw new Fix(
|
|
483
|
+
`HeyGen has no public voice for ${r.voice}${voice ? ` (it offered a ${voice.language} one)` : ""}`,
|
|
484
|
+
"--voice <the language's English name, e.g. English or Chinese>, or --voice <voice id>"
|
|
485
|
+
);
|
|
480
486
|
keepVoice(project, request, voice);
|
|
481
487
|
return voice;
|
|
482
488
|
}
|
|
489
|
+
var LANGUAGE_TAG = /^([a-z]{2,3})(?:[-_][a-z0-9]{2,8})*$/i;
|
|
490
|
+
var LANGUAGE_NAMES = new Intl.DisplayNames(["en"], { type: "language", fallback: "none" });
|
|
491
|
+
function languageName(spelled) {
|
|
492
|
+
const tag = LANGUAGE_TAG.exec(spelled.trim());
|
|
493
|
+
if (!tag) return spelled;
|
|
494
|
+
return LANGUAGE_NAMES.of(tag[1].toLowerCase()) ?? spelled;
|
|
495
|
+
}
|
|
483
496
|
function checkRequest(r) {
|
|
484
497
|
const route = ROUTES[r.type];
|
|
485
498
|
if (!route.ext.includes(extname(r.out).toLowerCase()))
|
|
@@ -618,7 +631,11 @@ var GPT_IMAGE = {
|
|
|
618
631
|
"4:3": 0.03612,
|
|
619
632
|
"3:4": 0.03612
|
|
620
633
|
};
|
|
634
|
+
var GPT_REFERENCE = 0.0125;
|
|
635
|
+
var GPT_MODELS = /* @__PURE__ */ new Set(["gpt-image-2.5", "gpt-image-2.6", "gpt-image-2.6-flare"]);
|
|
621
636
|
var NANO_IMAGE = 0.067;
|
|
637
|
+
var NANO_2_1_IMAGE = 0.0336;
|
|
638
|
+
var NANO_2_1_REFERENCE = 168e-5;
|
|
622
639
|
var VIDEO_768P_PER_S = 0.018;
|
|
623
640
|
var VIDEO_REF_768P_PER_S = 0.05;
|
|
624
641
|
var VIDEO_INCLUDED_IMAGES = 2;
|
|
@@ -638,12 +655,19 @@ function priceOf(r) {
|
|
|
638
655
|
switch (r.type) {
|
|
639
656
|
case "image": {
|
|
640
657
|
const refs = r.references?.length ?? 0;
|
|
641
|
-
|
|
642
|
-
|
|
658
|
+
const model = r.model ?? "nano-banana-2";
|
|
659
|
+
if (model === "nano-banana-2") return at(NANO_IMAGE, "nano-banana-2, $0.067 an image");
|
|
660
|
+
if (model === "nano-banana-2.1")
|
|
661
|
+
return at(
|
|
662
|
+
NANO_2_1_IMAGE + refs * NANO_2_1_REFERENCE,
|
|
663
|
+
"nano-banana-2.1, $0.0336 an image and $0.00168 a reference"
|
|
664
|
+
);
|
|
665
|
+
if (!GPT_MODELS.has(model))
|
|
666
|
+
return { usd: null, list: null, credits: null, basis: `${model}, not priced ahead` };
|
|
643
667
|
const each = GPT_IMAGE[r.aspect ?? "16:9"] ?? GPT_IMAGE["16:9"];
|
|
644
668
|
return at(
|
|
645
|
-
each +
|
|
646
|
-
|
|
669
|
+
each + refs * GPT_REFERENCE,
|
|
670
|
+
`${model} at ${r.aspect ?? "16:9"}, about $0.0125 a reference`
|
|
647
671
|
);
|
|
648
672
|
}
|
|
649
673
|
case "video": {
|
|
@@ -811,7 +835,7 @@ var generate_default = defineCommand({
|
|
|
811
835
|
script: { type: "string", description: "avatar, voice: the words spoken" },
|
|
812
836
|
voice: {
|
|
813
837
|
type: "string",
|
|
814
|
-
description: "avatar, voice: a HeyGen voice id, or a language for its first voice in it"
|
|
838
|
+
description: "avatar, voice: a HeyGen voice id, or a language (English, Chinese, en, zh-CN) for its first voice in it"
|
|
815
839
|
},
|
|
816
840
|
seconds: {
|
|
817
841
|
type: "string",
|
|
@@ -821,7 +845,10 @@ var generate_default = defineCommand({
|
|
|
821
845
|
type: "string",
|
|
822
846
|
description: "Aspect ratio, e.g. 9:16 (image, video without a first frame, avatar)"
|
|
823
847
|
},
|
|
824
|
-
model: {
|
|
848
|
+
model: {
|
|
849
|
+
type: "string",
|
|
850
|
+
description: "image: nano-banana-2 (default), nano-banana-2.1, gpt-image-2.5, gpt-image-2.6 or gpt-image-2.6-flare"
|
|
851
|
+
},
|
|
825
852
|
bpm: { type: "string", description: "music: tempo, 60\u2013180" },
|
|
826
853
|
vocals: {
|
|
827
854
|
type: "boolean",
|
|
@@ -7,10 +7,10 @@ var __dirname = __hf_dirname(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
parseFeedbackRating,
|
|
9
9
|
trackRenderFeedback
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-4EUUYYB3.js";
|
|
11
11
|
import {
|
|
12
12
|
shouldTrack
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-7DGAJ7RY.js";
|
|
14
14
|
import {
|
|
15
15
|
c
|
|
16
16
|
} from "./chunk-HOCC4J5C.js";
|
|
@@ -84,7 +84,7 @@ async function getDoctorSummary() {
|
|
|
84
84
|
try {
|
|
85
85
|
const [{ getSystemMeta }, { findFFmpeg }] = await Promise.all([
|
|
86
86
|
import("./system-FDPS57FU.js"),
|
|
87
|
-
import("./ffmpeg-
|
|
87
|
+
import("./ffmpeg-KOJQXOMH.js")
|
|
88
88
|
]);
|
|
89
89
|
const sys = getSystemMeta();
|
|
90
90
|
const parts = [
|
|
@@ -6,34 +6,34 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
parakeetRunner
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-XU5LAY46.js";
|
|
10
10
|
import {
|
|
11
11
|
DecodeCancelled,
|
|
12
12
|
prepareSherpaWav,
|
|
13
13
|
sherpaUnsupportedReason,
|
|
14
14
|
transcribeWithSherpa
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-P2DAWEPF.js";
|
|
16
16
|
import {
|
|
17
17
|
idempotencyKey,
|
|
18
18
|
runJob
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-Q6DA3X34.js";
|
|
20
20
|
import {
|
|
21
21
|
projectOf,
|
|
22
22
|
runFfmpeg
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-RFG4XUMQ.js";
|
|
24
24
|
import {
|
|
25
25
|
initialModelForLanguage,
|
|
26
26
|
transcribe
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-QYWOP6MH.js";
|
|
28
28
|
import {
|
|
29
29
|
createRenderCancellationScope,
|
|
30
30
|
stoppedByCancelSignal
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-C2PQTWAH.js";
|
|
32
32
|
import {
|
|
33
33
|
DEFAULT_MODEL,
|
|
34
34
|
findWhisper,
|
|
35
35
|
isWhisperUnavailable
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-Z745SNN4.js";
|
|
37
37
|
import {
|
|
38
38
|
formatSrt,
|
|
39
39
|
formatVtt,
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
typeDirPath,
|
|
21
21
|
updateRecord,
|
|
22
22
|
withFigmaErrors
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-JXGFZG73.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-W7PZ4E2A.js");
|
|
233
233
|
trackFigmaImport({
|
|
234
234
|
phase: "asset",
|
|
235
235
|
reused: results.every((r) => r.reused),
|
|
@@ -8,13 +8,13 @@ import {
|
|
|
8
8
|
DEFAULT_VP9_CPU_USED,
|
|
9
9
|
isHttpUrl,
|
|
10
10
|
runFfmpeg
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-PGNE33QK.js";
|
|
12
12
|
import {
|
|
13
13
|
renameWithRetry
|
|
14
14
|
} from "./chunk-YWRUQ7XZ.js";
|
|
15
15
|
import {
|
|
16
16
|
parseAnimatedGifMetadata
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-SH6P5CMQ.js";
|
|
18
18
|
import {
|
|
19
19
|
parseHTML
|
|
20
20
|
} from "./chunk-GWTIFRF5.js";
|
|
@@ -1278,7 +1278,7 @@ async function withFigmaErrors(command, fn) {
|
|
|
1278
1278
|
} catch (err) {
|
|
1279
1279
|
if (err instanceof Error) {
|
|
1280
1280
|
try {
|
|
1281
|
-
const { trackCommandFailure } = await import("./events-
|
|
1281
|
+
const { trackCommandFailure } = await import("./events-CG6ZFBPQ.js");
|
|
1282
1282
|
trackCommandFailure(
|
|
1283
1283
|
command,
|
|
1284
1284
|
err,
|
|
@@ -465,6 +465,66 @@ function base64UrlEncode(buf) {
|
|
|
465
465
|
// src/auth/loopback.ts
|
|
466
466
|
import { timingSafeEqual } from "crypto";
|
|
467
467
|
import { createServer } from "http";
|
|
468
|
+
|
|
469
|
+
// src/auth/callbackPage.ts
|
|
470
|
+
var MARK_A = "M10.1851 57.8021L33.1145 73.8313C36.2202 75.9978 41.5173 73.5433 42.4816 69.4984L51.7611 30.4271C52.7253 26.3822 48.5802 23.9277 44.4602 26.0942L13.917 42.1235C6.96677 45.7676 4.97564 54.1579 10.1851 57.8021Z";
|
|
471
|
+
var MARK_B = "M87.5129 57.5141L56.9696 73.5433C52.8371 75.7098 48.7046 73.2553 49.6688 69.2104L58.9483 30.1391C59.9125 26.0942 65.2097 23.6397 68.3154 25.8062L91.2447 41.8354C96.4668 45.4796 94.4631 53.8699 87.5129 57.5141Z";
|
|
472
|
+
var STYLE = `:root{color-scheme:light dark;--bg:#f2f0ed;--ink:#1d1b18;--ink2:#5d5a55;--tile:#dff3ea;--tile-ink:#087a54;--bad:#fbe6e1;--bad-ink:#b3402e;--btn:#1d1b18;--btn-ink:#f2f0ed;--panel:#0c0c0e;--panel-ink:#f4f1ec}
|
|
473
|
+
@media(prefers-color-scheme:dark){:root{--bg:#201e1b;--ink:#f6f4f1;--ink2:#b5b1aa;--tile:#1f3a2f;--tile-ink:#37de91;--bad:#3a2420;--bad-ink:#f08a78;--btn:#f6f4f1;--btn-ink:#201e1b}}
|
|
474
|
+
*{box-sizing:border-box}html,body{height:100%;margin:0}
|
|
475
|
+
body{background:var(--bg);color:var(--ink);font:400 15px/1.45 "TT Norms",system-ui,-apple-system,"Segoe UI",sans-serif;-webkit-font-smoothing:antialiased;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.25fr)}
|
|
476
|
+
.col{position:relative;display:flex;flex-direction:column;justify-content:center;padding:48px 32px 48px max(32px,min(7vw,96px))}
|
|
477
|
+
.brand{position:absolute;top:28px;left:32px;display:flex;align-items:center;gap:10px;font-weight:600;font-size:20px;letter-spacing:-.01em}
|
|
478
|
+
.tile{display:grid;place-items:center;width:44px;height:44px;border-radius:12px;background:var(--tile);color:var(--tile-ink);margin-bottom:20px}
|
|
479
|
+
.bad .tile{background:var(--bad);color:var(--bad-ink)}
|
|
480
|
+
h1{margin:0;font-size:30px;line-height:1.1;font-weight:600;letter-spacing:-.02em;text-wrap:balance}
|
|
481
|
+
p{margin:10px 0 0;color:var(--ink2);max-width:360px;text-wrap:pretty}
|
|
482
|
+
code{font:500 13px ui-monospace,SFMono-Regular,Menlo,monospace;color:var(--ink2)}
|
|
483
|
+
.panel{margin:14px;border-radius:24px;background:var(--panel);color:var(--panel-ink);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px}
|
|
484
|
+
.panel b{font-size:26px;font-weight:600;letter-spacing:-.01em}
|
|
485
|
+
.panel small{color:rgb(244 241 236/.58);font-size:14px;margin-top:-10px}
|
|
486
|
+
.badge{position:relative}
|
|
487
|
+
.chk{display:none;position:absolute;right:-8px;bottom:-4px;width:22px;height:22px;border-radius:50%;background:#37de91;place-items:center}
|
|
488
|
+
.ok .chk{display:grid}
|
|
489
|
+
@media(max-width:760px){body{grid-template-columns:1fr;grid-template-rows:auto auto}.col{padding:84px 24px 32px}.brand{left:24px}.panel{min-height:300px;margin:12px}}`;
|
|
490
|
+
var CHECK = '<svg width="22" height="22" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round"><path d="m5.5 12.5 4.2 4.2 8.8-9.4"/></svg>';
|
|
491
|
+
var CROSS = '<svg width="22" height="22" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round"><path d="M6.5 6.5l11 11M17.5 6.5l-11 11"/></svg>';
|
|
492
|
+
var CHK = '<span class="chk"><svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="#0e1a14" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><path d="m6 12.5 4 4 8-9"/></svg></span>';
|
|
493
|
+
function mark(width, height, id) {
|
|
494
|
+
const gradient = (suffix, x1, y1, x2, y2) => `<linearGradient id="${suffix}${id}" gradientUnits="userSpaceOnUse" x1="${x1}" y1="${y1}" x2="${x2}" y2="${y2}"><stop offset="0" stop-color="#06E3FA"/><stop offset="1" stop-color="#4FDB5E"/></linearGradient>`;
|
|
495
|
+
return `<svg viewBox="4 22 92 56" width="${width}" height="${height}" aria-hidden="true"><defs>${gradient("a", "48.57", "25", "44.78", "71.94")}${gradient("b", "54.83", "73.84", "72.1", "32.89")}</defs><path fill="url(#a${id})" d="${MARK_A}"/><path fill="url(#b${id})" d="${MARK_B}"/></svg>`;
|
|
496
|
+
}
|
|
497
|
+
function escapeHtml(s) {
|
|
498
|
+
return s.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'");
|
|
499
|
+
}
|
|
500
|
+
function page(args) {
|
|
501
|
+
const detail = args.detail ? `<p><code>${escapeHtml(args.detail)}</code></p>` : "";
|
|
502
|
+
return `<!doctype html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>${escapeHtml(args.title)}</title><style>${STYLE}</style></head><body class="${args.ok ? "ok" : "bad"}"><main class="col"><div class="brand">${mark(38, 23, "c")}<span>HyperFrames</span></div><div class="tile">${args.ok ? CHECK : CROSS}</div><h1>${escapeHtml(args.title)}</h1><p>${escapeHtml(args.text)}</p>${detail}</main><aside class="panel"><div class="badge">${mark(96, 58, "p")}${CHK}</div><b>HyperFrames</b><small>by HeyGen</small></aside></body></html>`;
|
|
503
|
+
}
|
|
504
|
+
function connectedPage() {
|
|
505
|
+
return page({
|
|
506
|
+
ok: true,
|
|
507
|
+
title: "You're connected",
|
|
508
|
+
text: "Return to your terminal. You can close this tab."
|
|
509
|
+
});
|
|
510
|
+
}
|
|
511
|
+
function failurePage(code, description) {
|
|
512
|
+
if (code === "access_denied") {
|
|
513
|
+
return page({
|
|
514
|
+
ok: false,
|
|
515
|
+
title: "Not authorized",
|
|
516
|
+
text: "Nothing was connected. Run the login again from your terminal."
|
|
517
|
+
});
|
|
518
|
+
}
|
|
519
|
+
return page({
|
|
520
|
+
ok: false,
|
|
521
|
+
title: "Couldn't connect",
|
|
522
|
+
text: description || "Something went wrong on the way back. Run the login again from your terminal.",
|
|
523
|
+
detail: code
|
|
524
|
+
});
|
|
525
|
+
}
|
|
526
|
+
|
|
527
|
+
// src/auth/loopback.ts
|
|
468
528
|
var CALLBACK_PATH = "/oauth/callback";
|
|
469
529
|
var SIGN_IN_WITH_CHECKOUT_TIMEOUT_MS = 60 * 60 * 1e3;
|
|
470
530
|
async function startLoopback(opts) {
|
|
@@ -522,13 +582,13 @@ function handleRequest(req, res, expectedState, redirectUri, resolveResult, reje
|
|
|
522
582
|
const error = params.get("error");
|
|
523
583
|
if (error) {
|
|
524
584
|
const desc = params.get("error_description") ?? "";
|
|
525
|
-
respond(res, 400,
|
|
585
|
+
respond(res, 400, failurePage(error, desc));
|
|
526
586
|
rejectResult(new Error(`OAuth authorize returned error: ${error}${desc ? ` \u2014 ${desc}` : ""}`));
|
|
527
587
|
return;
|
|
528
588
|
}
|
|
529
589
|
const state = params.get("state");
|
|
530
590
|
if (!state || !stateMatches(state, expectedState)) {
|
|
531
|
-
respond(res, 400,
|
|
591
|
+
respond(res, 400, failurePage("invalid_state", "State parameter did not match."));
|
|
532
592
|
rejectResult(new Error("OAuth state mismatch \u2014 possible CSRF, aborting."));
|
|
533
593
|
return;
|
|
534
594
|
}
|
|
@@ -537,12 +597,12 @@ function handleRequest(req, res, expectedState, redirectUri, resolveResult, reje
|
|
|
537
597
|
respond(
|
|
538
598
|
res,
|
|
539
599
|
400,
|
|
540
|
-
|
|
600
|
+
failurePage("missing_code", "Authorization code is missing from the redirect.")
|
|
541
601
|
);
|
|
542
602
|
rejectResult(new Error("OAuth redirect did not include `code`."));
|
|
543
603
|
return;
|
|
544
604
|
}
|
|
545
|
-
respond(res, 200,
|
|
605
|
+
respond(res, 200, connectedPage());
|
|
546
606
|
resolveResult({ code, redirectUri });
|
|
547
607
|
}
|
|
548
608
|
function stateMatches(actual, expected) {
|
|
@@ -563,21 +623,6 @@ function respond(res, status, body) {
|
|
|
563
623
|
connection: "close"
|
|
564
624
|
}).end(body);
|
|
565
625
|
}
|
|
566
|
-
function successPage() {
|
|
567
|
-
return `<!doctype html><html><head><meta charset="utf-8"><title>Signed in to HyperFrames</title>
|
|
568
|
-
<style>body{font-family:system-ui,sans-serif;display:flex;align-items:center;justify-content:center;height:100vh;margin:0;background:#0b0f14;color:#e6e8eb}main{max-width:480px;text-align:center;padding:32px;border-radius:12px;background:#11161d;border:1px solid #1f2630}h1{font-weight:600;margin:0 0 8px;color:#3CE6AC}p{margin:0;color:#9aa3ad}</style>
|
|
569
|
-
</head><body><main><h1>You're signed in.</h1><p>You can close this tab and return to your terminal.</p></main></body></html>`;
|
|
570
|
-
}
|
|
571
|
-
function errorPage(code, description) {
|
|
572
|
-
const safeCode = escapeHtml(code);
|
|
573
|
-
const safeDesc = escapeHtml(description);
|
|
574
|
-
return `<!doctype html><html><head><meta charset="utf-8"><title>Sign-in failed</title>
|
|
575
|
-
<style>body{font-family:system-ui,sans-serif;display:flex;align-items:center;justify-content:center;height:100vh;margin:0;background:#1a0b0b;color:#e6e8eb}main{max-width:480px;text-align:center;padding:32px;border-radius:12px;background:#1d1111;border:1px solid #301f1f}h1{font-weight:600;margin:0 0 8px;color:#ff7a7a}code{background:#2a1414;padding:2px 6px;border-radius:4px}p{margin:8px 0 0;color:#9aa3ad}</style>
|
|
576
|
-
</head><body><main><h1>Sign-in failed</h1><p><code>${safeCode}</code></p><p>${safeDesc}</p></main></body></html>`;
|
|
577
|
-
}
|
|
578
|
-
function escapeHtml(s) {
|
|
579
|
-
return s.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'");
|
|
580
|
-
}
|
|
581
626
|
|
|
582
627
|
// src/auth/oauth.ts
|
|
583
628
|
var REVOKE_TIMEOUT_MS = 5e3;
|
|
@@ -6,7 +6,7 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
findCompositionDimensions
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-NHV3G6JH.js";
|
|
10
10
|
import {
|
|
11
11
|
outputResolutionForSize
|
|
12
12
|
} from "./chunk-CUCP7FKH.js";
|
|
@@ -19,15 +19,15 @@ import {
|
|
|
19
19
|
} from "./chunk-HBAUU3IK.js";
|
|
20
20
|
import {
|
|
21
21
|
uploadAssetViaDirectUpload
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-6FI5JRM3.js";
|
|
23
23
|
import {
|
|
24
24
|
refreshIfNeeded,
|
|
25
25
|
resolveCloudBaseUrl
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-H6676SHA.js";
|
|
27
27
|
import {
|
|
28
28
|
buildAuthHeaders,
|
|
29
29
|
tryResolveCredential
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-KBHBSWEE.js";
|
|
31
31
|
import {
|
|
32
32
|
HyperframesCloudClient
|
|
33
33
|
} from "./chunk-3XJM7XZN.js";
|
|
@@ -7,16 +7,18 @@ var __dirname = __hf_dirname(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
addCatchUpNote,
|
|
9
9
|
markSeen,
|
|
10
|
+
readRecord,
|
|
10
11
|
readSeen,
|
|
12
|
+
removeRecord,
|
|
11
13
|
seenPath,
|
|
12
14
|
writeRecord
|
|
13
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-CXUT4XVT.js";
|
|
14
16
|
import {
|
|
15
17
|
createProjectConfig
|
|
16
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-HCUEMQB4.js";
|
|
17
19
|
import {
|
|
18
20
|
isHyperframesProject
|
|
19
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-SH6P5CMQ.js";
|
|
20
22
|
import {
|
|
21
23
|
isCI
|
|
22
24
|
} from "./chunk-FYZFURBN.js";
|
|
@@ -133,6 +135,7 @@ function openInDesktop(dir, {
|
|
|
133
135
|
installed = () => desktopInstalled({ platform }),
|
|
134
136
|
env = process.env,
|
|
135
137
|
cta,
|
|
138
|
+
doc,
|
|
136
139
|
src = "cli",
|
|
137
140
|
...where
|
|
138
141
|
} = {}) {
|
|
@@ -141,26 +144,49 @@ function openInDesktop(dir, {
|
|
|
141
144
|
reason,
|
|
142
145
|
downloadUrl: desktopDownloadUrl(platform, src) ?? STUDIO_PAGE
|
|
143
146
|
});
|
|
144
|
-
const opened = (
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
147
|
+
const opened = (app) => ({
|
|
148
|
+
opened: true,
|
|
149
|
+
app,
|
|
150
|
+
handedOver: leaveHandoff(dir, agentSession(env))
|
|
151
|
+
});
|
|
152
|
+
const dispatch = () => {
|
|
153
|
+
if (platform === "darwin") {
|
|
154
|
+
const bundleId = bundleIds().find((id) => open(id, dir));
|
|
155
|
+
if (!bundleId) return notOpened(installed() ? "open-failed" : "not-installed");
|
|
156
|
+
return opened(bundleId === bundleIds()[0] ? DEFAULT_APP : bundleId);
|
|
157
|
+
}
|
|
158
|
+
const apps = desktopApps({ platform, env, ...where });
|
|
159
|
+
if (!apps) return notOpened("unsupported-platform");
|
|
160
|
+
if (!apps.length) return notOpened("not-installed");
|
|
161
|
+
const app = apps.find(({ executable }) => launch(executable, dir));
|
|
162
|
+
return app ? opened(app.name) : notOpened("open-failed");
|
|
151
163
|
};
|
|
152
164
|
if (!ready) return notOpened("handoff-unavailable");
|
|
153
165
|
markBareIndexAsProject(dir);
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
166
|
+
const undoIntent = leaveIntent(dir, cta, doc);
|
|
167
|
+
const result = dispatch();
|
|
168
|
+
if (!result.opened) undoIntent();
|
|
169
|
+
return result;
|
|
170
|
+
}
|
|
171
|
+
function leaveIntent(dir, cta, doc) {
|
|
172
|
+
const before = readRecord(dir, DESKTOP_CTA_RECORD, 4096);
|
|
173
|
+
const earlier = (() => {
|
|
174
|
+
try {
|
|
175
|
+
return JSON.parse(before);
|
|
176
|
+
} catch {
|
|
177
|
+
return null;
|
|
178
|
+
}
|
|
179
|
+
})();
|
|
180
|
+
if (cta || doc)
|
|
181
|
+
writeRecord(dir, DESKTOP_CTA_RECORD, JSON.stringify({ cta, at: Date.now(), doc }));
|
|
182
|
+
else if (earlier?.doc !== void 0)
|
|
183
|
+
writeRecord(dir, DESKTOP_CTA_RECORD, JSON.stringify({ ...earlier, doc: void 0 }));
|
|
184
|
+
else return () => {
|
|
185
|
+
};
|
|
186
|
+
return () => {
|
|
187
|
+
if (!before) removeRecord(dir, DESKTOP_CTA_RECORD);
|
|
188
|
+
else writeRecord(dir, DESKTOP_CTA_RECORD, before);
|
|
189
|
+
};
|
|
164
190
|
}
|
|
165
191
|
function openCommandFor(dir, cwd = process.cwd()) {
|
|
166
192
|
const shown = relative(cwd, dir) || ".";
|