hyperframes 0.9.19 → 0.9.21
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-VQVP3JPZ.js} +14 -15
- package/dist/{agentPromptGenerator-VKOL4XCD.js → agentPromptGenerator-PAFWQGHU.js} +10 -11
- package/dist/{animatedGifPrep-MD4BNSPH.js → animatedGifPrep-AK26JDVM.js} +10 -11
- package/dist/api.js +36 -37
- package/dist/{appHistory-WXJ4STHX.js → appHistory-FVDSCS64.js} +1 -1
- package/dist/{asset-J42DGWPQ.js → asset-N6RZSN44.js} +2 -2
- package/dist/{assetCataloger-XDZB53RE.js → assetCataloger-GWF6II54.js} +11 -12
- package/dist/{audio-6EV56WMQ.js → audio-ZHVBBQRA.js} +70 -26
- package/dist/{auth-ECYU3HT4.js → auth-AJM3YSN6.js} +4 -4
- package/dist/{autoUpdate-HIKCPXQA.js → autoUpdate-GV4LPAJX.js} +2 -2
- package/dist/{avatars-X7DEU57Y.js → avatars-5EKOR2DW.js} +16 -17
- package/dist/{backgroundChecks-IYWWBPTC.js → backgroundChecks-J4XJD4ET.js} +3 -3
- package/dist/backgroundChecksWorker.js +3 -3
- package/dist/{batchRender-3TAV6XQQ.js → batchRender-UKQ36JT2.js} +5 -6
- package/dist/{beats-IFJBCISA.js → beats-LXYHFVPP.js} +11 -12
- package/dist/{benchmark-OS6LVCAY.js → benchmark-KXR56MIT.js} +11 -12
- package/dist/{billing-4NRHG5FO.js → billing-3XQYSAKP.js} +15 -16
- package/dist/{browser-CFI3GKFB.js → browser-P52FDITF.js} +16 -4
- package/dist/{bundleWithLocalizedFonts-6YHKES5G.js → bundleWithLocalizedFonts-I3KWYN6X.js} +1 -1
- package/dist/{capture-SNHDWW7W.js → capture-2PSBIAL2.js} +3 -3
- package/dist/{capture-4H3W3FNF.js → capture-SMWSGGMG.js} +22 -23
- package/dist/{captureCompositionFrame-BH4UMGJP.js → captureCompositionFrame-WRY5ATM7.js} +16 -17
- package/dist/{catalog-RZOQ54KZ.js → catalog-JIO6RXSR.js} +14 -15
- package/dist/{catch-up-PA4QGVNL.js → catch-up-A73H7VGC.js} +18 -7
- package/dist/{check-J2TCCJL5.js → check-FI7SUTK7.js} +43 -42
- package/dist/{checkAudio-RIFMEOQI.js → checkAudio-73DDBXXJ.js} +13 -14
- package/dist/{checkBrowser-M4YCLLDJ.js → checkBrowser-X5VVYQES.js} +35 -36
- package/dist/{chunk-E3GBPA37.js → chunk-2HRKRRQH.js} +2 -2
- package/dist/{chunk-OR2FAQFS.js → chunk-3FG3YAHZ.js} +1 -1
- package/dist/{chunk-BJUPV6I3.js → chunk-3OIUJOIR.js} +1 -1
- package/dist/{chunk-FSTINYWN.js → chunk-3TLAQU62.js} +1 -1
- package/dist/{chunk-DTJV7ST5.js → chunk-3ZXKEGKV.js} +1 -1
- package/dist/{chunk-ABT7WBZZ.js → chunk-4EL5RKLS.js} +1 -1
- package/dist/{chunk-TOD5PQJF.js → chunk-4EMQHF3T.js} +2 -2
- package/dist/{chunk-6OBCXHIF.js → chunk-4FNJ2QNP.js} +4 -4
- package/dist/{chunk-3QIHS5V3.js → chunk-4NLG5TO6.js} +3 -3
- package/dist/{chunk-63LNVITK.js → chunk-4UXCWPHU.js} +1 -1
- package/dist/{chunk-UPURJC4I.js → chunk-4ZLMVX3O.js} +1 -1
- package/dist/{chunk-IV2R3NET.js → chunk-5PY66UGZ.js} +3 -3
- package/dist/{chunk-ZPJYWAAS.js → chunk-7ETNIXIN.js} +1 -1
- package/dist/{chunk-HNGHIX26.js → chunk-7EUZAQD6.js} +35 -2
- package/dist/{chunk-BEAEO4OV.js → chunk-A2NL7HGF.js} +1 -1
- package/dist/{chunk-JWQHGM3V.js → chunk-A4JU6QUG.js} +1 -1
- 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-BABCRBAO.js} +38 -4
- package/dist/{chunk-SVT6FCQX.js → chunk-BUCJXB6D.js} +1 -1
- package/dist/{chunk-3UYQMVJS.js → chunk-C4KYJSSF.js} +9 -9
- package/dist/{chunk-N7D6YUGR.js → chunk-CFOJE3VR.js} +2 -2
- package/dist/{chunk-GKLZMLX3.js → chunk-CXUT4XVT.js} +22 -1
- package/dist/{chunk-2DPQ347C.js → chunk-CZK7A5IB.js} +4 -4
- package/dist/{chunk-3XJM7XZN.js → chunk-D3NWGOXW.js} +30 -0
- package/dist/{chunk-PTIOZJMF.js → chunk-D7C6NOOO.js} +2 -2
- package/dist/{chunk-H3YZRS32.js → chunk-DXIGIMRP.js} +2 -2
- package/dist/{chunk-T655WZ4R.js → chunk-DYPAXBNK.js} +1 -1
- package/dist/{chunk-4FFKOLNM.js → chunk-DZQEPGNY.js} +3 -3
- package/dist/{chunk-RKRJAQFI.js → chunk-F4XUCHQQ.js} +1 -1
- package/dist/{chunk-URGLY5QV.js → chunk-FASKJUYU.js} +98 -35
- package/dist/{chunk-7EN7RIPV.js → chunk-FET6WMTX.js} +2 -2
- package/dist/{chunk-WRBUQRJJ.js → chunk-FOX7LXZ2.js} +1 -1
- package/dist/chunk-FRBQYFUV.js +481 -0
- package/dist/{chunk-XPIP5ZV3.js → chunk-G5UZHDEZ.js} +2 -2
- package/dist/{chunk-AKEZ2BEE.js → chunk-G77Z4GWC.js} +1 -1
- package/dist/{chunk-6AYTP32B.js → chunk-GG7RYSIU.js} +1 -1
- package/dist/{chunk-KXZD37E5.js → chunk-GH6GWAID.js} +1 -1
- package/dist/{chunk-2LZO4FX3.js → chunk-GKOSN3Q6.js} +3 -3
- package/dist/chunk-GREVQ2SM.js +5035 -0
- package/dist/{chunk-J3QW55W5.js → chunk-H6676SHA.js} +1 -1
- package/dist/{chunk-SJUFAZV5.js → chunk-H7N3J7Y3.js} +2 -2
- package/dist/{chunk-RWJFNJUE.js → chunk-HCFBCEJT.js} +1 -1
- package/dist/{chunk-NKK2FRY7.js → chunk-I7WVS7WN.js} +1 -1
- package/dist/{chunk-UIUILBMB.js → chunk-IFY5ACTF.js} +13 -13
- package/dist/{chunk-M3EGX3ID.js → chunk-IQR26ZJD.js} +5 -5
- package/dist/{chunk-XYHAXHOH.js → chunk-IRWQMKV7.js} +1 -1
- package/dist/{chunk-HY5KQ4KT.js → chunk-ITO3VCCW.js} +10 -10
- package/dist/{chunk-XKYXENEP.js → chunk-JNN2CTGU.js} +2 -2
- package/dist/{chunk-6KBDQAZC.js → chunk-JT6LFFYK.js} +1 -1
- package/dist/{chunk-L24NAUBS.js → chunk-KBHBSWEE.js} +64 -19
- package/dist/{chunk-XQD6XWE3.js → chunk-L2SQTHMP.js} +1 -1
- package/dist/{chunk-ZVDYDMQA.js → chunk-L4C4F4O3.js} +3 -3
- package/dist/{chunk-RLXUABCX.js → chunk-LDO7SB4J.js} +12 -5
- package/dist/{chunk-IPXNWK7O.js → chunk-LGSSYJS2.js} +2 -2
- package/dist/{chunk-ATUCYH5L.js → chunk-LIFQONFJ.js} +1 -1
- package/dist/{chunk-NTMMUK6Q.js → chunk-LLUKDUVS.js} +38 -20
- package/dist/{chunk-IDNKBZNX.js → chunk-LMUF3BGR.js} +1 -1
- package/dist/{chunk-5PC5FMF4.js → chunk-LQBZCXMR.js} +3 -3
- package/dist/{chunk-L6YCPDRH.js → chunk-M32FE7JZ.js} +3 -3
- package/dist/{chunk-BYVDFTG6.js → chunk-M7Z2SEQG.js} +2 -2
- package/dist/{chunk-RL3CNZAX.js → chunk-MERPHIUD.js} +2 -2
- package/dist/{chunk-JWORQ5WQ.js → chunk-MFDNMTOP.js} +1 -1
- package/dist/{chunk-CBHNARFI.js → chunk-MNMIIDOX.js} +1 -1
- package/dist/{chunk-PMAGFCRB.js → chunk-NBHVLN5J.js} +7 -7
- package/dist/{chunk-Z2BBCW57.js → chunk-NTNNGWKO.js} +3 -3
- package/dist/{chunk-VXZOWF6M.js → chunk-ONBYVA2L.js} +62 -25
- package/dist/{chunk-G2HKE5CX.js → chunk-OQ6VGBQV.js} +1 -1
- package/dist/{chunk-GNING3UV.js → chunk-OXMEC34G.js} +1 -1
- package/dist/{chunk-VGAKHIDG.js → chunk-OXUX73RX.js} +10 -10
- package/dist/{chunk-A5MTIN4M.js → chunk-P7WDQTQZ.js} +1 -1
- package/dist/chunk-PJNDSYJV.js +525 -0
- package/dist/{chunk-X2TDLUIK.js → chunk-PPOJMJR5.js} +51 -16
- package/dist/{chunk-67JLV22D.js → chunk-Q2LO2ZF6.js} +3 -3
- package/dist/{chunk-CPFG5QSQ.js → chunk-QAES6F2D.js} +7 -7
- package/dist/{chunk-FJXBDFH6.js → chunk-QXVJ33BP.js} +362 -190
- package/dist/{chunk-WAY7TXDD.js → chunk-RLY4LECT.js} +2 -2
- package/dist/{chunk-JDAYOJGJ.js → chunk-RQIR2BOG.js} +1 -1
- package/dist/{chunk-YCXW65RT.js → chunk-RYRSI623.js} +5 -5
- package/dist/{chunk-BUIZAY4L.js → chunk-TERSCNBN.js} +19 -8
- package/dist/{chunk-I4G55F5J.js → chunk-TLNKHH52.js} +1 -1
- package/dist/{chunk-I2L7KR3N.js → chunk-UFMWWEL3.js} +7 -7
- package/dist/{chunk-GZK32KOL.js → chunk-W62DJ5ZK.js} +5 -5
- package/dist/{chunk-TLZCUWHQ.js → chunk-WFEKL42K.js} +266 -61
- package/dist/{chunk-LDFI55LW.js → chunk-WZCSU7ZP.js} +1 -1
- package/dist/{chunk-7HROKMNQ.js → chunk-XC5PF4T4.js} +4 -4
- package/dist/{chunk-2752JKE6.js → chunk-XQUO3BOS.js} +65 -21
- package/dist/{chunk-2AL2DME3.js → chunk-XRNXGF7I.js} +2 -2
- package/dist/{chunk-QEFMUD5U.js → chunk-YALKIB2K.js} +1 -1
- package/dist/{chunk-W6Q7Q7BS.js → chunk-YQV44DRO.js} +77 -2
- package/dist/{chunk-WBXUGXZP.js → chunk-YZKRMBYH.js} +1 -1
- package/dist/{chunk-D33DCBBM.js → chunk-ZEQOP7XA.js} +2 -2
- package/dist/{chunk-YBUZQGMX.js → chunk-ZFYCYUVY.js} +2 -2
- package/dist/{chunk-LFSSI7W3.js → chunk-ZH3SXWCV.js} +42 -15
- package/dist/{chunk-TJUJJYJC.js → chunk-ZNFYQMFN.js} +2 -2
- package/dist/{clean-PMM6YUQ3.js → clean-PILJFGU2.js} +20 -21
- package/dist/cli.js +62 -62
- package/dist/{cloud-D3WTNTF2.js → cloud-D7DFYONW.js} +4 -4
- package/dist/{cloud-OIPASJZZ.js → cloud-HBMQH4EU.js} +4 -4
- package/dist/{cloudrun-3TXJ2QOV.js → cloudrun-JZQMF5DS.js} +6 -7
- package/dist/commands/layout-audit.browser.js +287 -23
- package/dist/{compare-NC7JQXZH.js → compare-5RSAPYJI.js} +32 -33
- package/dist/{compiler-C2HCN5CA.js → compiler-T4BPLRFY.js} +4 -4
- package/dist/{component-M2VJD3QI.js → component-DMHFV7BD.js} +3 -3
- package/dist/{compositions-3QMQV5OS.js → compositions-OW776OLK.js} +14 -15
- package/dist/{curve-S3VZXTYX.js → curve-4GNM7DWM.js} +14 -15
- package/dist/{cuts-O3OKZGPU.js → cuts-M5R2LKDZ.js} +15 -16
- package/dist/{delete-RFDRT4K6.js → delete-MYG77L66.js} +7 -7
- package/dist/{deploy-LIQXICPP.js → deploy-FGHE4FID.js} +1 -1
- package/dist/{describeProject-IUAV4C55.js → describeProject-SLAKVOOS.js} +11 -12
- package/dist/{deterministicFonts-DQDB47K3.js → deterministicFonts-IXXU76SA.js} +1 -1
- package/dist/{diff-F434Y7GL.js → diff-TNHEXG72.js} +35 -36
- package/dist/{dist-KA45Z5SZ.js → dist-23VTYBIX.js} +11 -12
- package/dist/{dist-URQMS2HM.js → dist-5ITUK4AA.js} +6 -4
- package/dist/{dist-6N5S5326.js → dist-PEDQQRFU.js} +17 -17
- package/dist/docs/motion-blur.md +3 -5
- package/dist/{doctor-VAEAFW3N.js → doctor-ILCPSC6S.js} +14 -15
- package/dist/{energy-HQG367CH.js → energy-SCJII6HC.js} +15 -16
- package/dist/{events-R55FOR6B.js → events-D2QORX35.js} +2 -2
- package/dist/{events-M457QJCL.js → events-OHIGKF4W.js} +16 -4
- package/dist/{events-3HQKXGJN.js → events-ZMK5VRA2.js} +17 -18
- package/dist/{extract-KSYOILWX.js → extract-OD3LI3YL.js} +15 -16
- package/dist/{face-IOYVA3KO.js → face-SFQDTQXC.js} +15 -16
- package/dist/{feedback-OLY2Y2HB.js → feedback-N3JK4ULK.js} +18 -19
- package/dist/{ffmpeg-POWBUKIU.js → ffmpeg-E55HQX7V.js} +10 -11
- package/dist/{figma-PYAOGAQ7.js → figma-JYVZPN5L.js} +3 -3
- package/dist/fontLocalizeCli.js +14 -15
- package/dist/{frames-RIUU6JZF.js → frames-BLCIN32Q.js} +16 -17
- package/dist/{generate-TVFTFEHB.js → generate-B7MUYYON.js} +27 -28
- package/dist/{get-ASVUBVPU.js → get-VQWG2NY4.js} +7 -7
- package/dist/{gpuPolicy-QDYHFIDS.js → gpuPolicy-3TMFL6TM.js} +10 -11
- package/dist/{grade-compare-2TVGR2WJ.js → grade-compare-LCS5CBNW.js} +33 -34
- package/dist/{heifImagePrep-ZDQ6FE6L.js → heifImagePrep-VHAJEZGL.js} +11 -12
- package/dist/{help-MZHLMNGB.js → help-GSE5DFSB.js} +1 -1
- package/dist/{history-CCPMGESN.js → history-RSB65UN3.js} +19 -8
- package/dist/hyperframe.manifest.json +1 -1
- package/dist/hyperframe.runtime.iife.js +65 -65
- package/dist/hyperframes-player.global.js +1 -1
- package/dist/{info-5CRW7PXR.js → info-FLLONVY5.js} +16 -17
- package/dist/{init-6U5JDVOC.js → init-EAKY3LFR.js} +30 -31
- package/dist/{ink-BVK6K2CB.js → ink-ZDZVD5CD.js} +15 -16
- package/dist/{inspect-NUGGYSLQ.js → inspect-LFEK6HOL.js} +33 -34
- package/dist/{installer-TBUJ66L6.js → installer-5NJVGV6X.js} +6 -7
- package/dist/{keyframes-N5637YSK.js → keyframes-TZBDB442.js} +16 -8
- package/dist/{lambda-VPSI7MTF.js → lambda-RYX5NXX5.js} +14 -15
- package/dist/{layout-FHJ2SQTW.js → layout-VATFBERH.js} +33 -34
- package/dist/{lint-XPRHASUK.js → lint-QAGBHUXZ.js} +27 -13
- package/dist/{lintProject-6TML32JZ.js → lintProject-BC5ISNKQ.js} +2 -2
- package/dist/{list-TST4Z4GR.js → list-VQZOLGEO.js} +7 -7
- package/dist/{localPage-NR4NBUTZ.js → localPage-ZEJ7ZKIE.js} +10 -11
- package/dist/{login-64KOPWVK.js → login-7BL2N6JG.js} +6 -6
- package/dist/{logout-EQ2HJDL4.js → logout-EKDVIU6Y.js} +2 -2
- package/dist/{look-VBHITYXG.js → look-OKDV2W4W.js} +15 -16
- package/dist/{manager-OAK67I5F.js → manager-QPEMMSLW.js} +11 -12
- package/dist/{measure-NNQ6XXH2.js → measure-WJ6TR545.js} +11 -11
- package/dist/{media-treatment-M2X3Q5NV.js → media-treatment-QYQVLCYP.js} +16 -17
- package/dist/{media-use-ZGJJL6KV.js → media-use-OWKQQSPJ.js} +4 -4
- package/dist/{models-Y24YJJ6P.js → models-FZ4HL5BX.js} +14 -15
- package/dist/{motionShot-KMU2SMX6.js → motionShot-IHZ544WM.js} +19 -20
- package/dist/{normalize-audio-27XH53UL.js → normalize-audio-77ZTAPPL.js} +11 -12
- package/dist/{open-6MLQR2BC.js → open-Q7AAAYVN.js} +70 -20
- package/dist/{parakeetRunner-BMK7KY7W.js → parakeetRunner-TAMKXXNN.js} +15 -16
- package/dist/{pipeline-AILSBZUB.js → pipeline-MK7LCHQD.js} +13 -14
- package/dist/{play-VTM2B4CS.js → play-WBLWBDBS.js} +22 -23
- package/dist/{preflight-IRQCF5ZW.js → preflight-O2EH2LOC.js} +11 -12
- package/dist/{present-JQH4CETR.js → present-3GW46ZYF.js} +18 -19
- package/dist/{preview-KGMCKLBI.js → preview-MPAHNXEJ.js} +57 -504
- package/dist/{probe-IP6W7U4A.js → probe-4F2PK26B.js} +15 -16
- package/dist/{producer-PRYLGX6W.js → producer-T462QJC7.js} +1 -1
- package/dist/{projectConfig-6WPGQGI3.js → projectConfig-T3WVF6H4.js} +8 -9
- package/dist/{publication-25E6ZMLB.js → publication-DX3VDYCI.js} +4 -5
- package/dist/{publish-6QT26AMU.js → publish-VNMKJMAK.js} +15 -16
- package/dist/{refresh-ARZZRKMP.js → refresh-ZHLUUENK.js} +2 -2
- package/dist/{remove-background-CVQQZNQQ.js → remove-background-7LE4IIOE.js} +14 -15
- package/dist/{render-3VHULZTP.js → render-5PTZ5VLW.js} +7 -8
- package/dist/{render-PUXPIIGJ.js → render-JKUR7OI2.js} +76 -39
- package/dist/{render-VMHF2RVD.js → render-RPHNBD4F.js} +42 -39
- package/dist/{render-batch-UKWKZUJM.js → render-batch-X2QMZUYH.js} +7 -8
- package/dist/renderSetupWorker.js +11 -8
- package/dist/{resolver-KEMGGVU7.js → resolver-AXDCEJ77.js} +6 -7
- package/dist/{reverse-4BCCUHPA.js → reverse-DQSOSC5W.js} +1 -1
- package/dist/{run-WZP6HXIH.js → run-IQLZHH6D.js} +5 -5
- package/dist/{screenshotCapture-VGOH65YU.js → screenshotCapture-EAATIOT3.js} +11 -12
- package/dist/{sherpa-AQJGVMWJ.js → sherpa-NPPB3DTN.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/hyperframes-cli/references/preview-render.md +1 -1
- package/dist/skills/media-use/audio/scripts/audio.mjs +56 -26
- package/dist/skills/media-use/audio/scripts/lib/media-record.mjs +3 -3
- package/dist/skills/media-use/audio/scripts/lib/media-record.test.mjs +16 -1
- package/dist/skills/media-use/audio/scripts/lib/recording.mjs +53 -0
- package/dist/skills/media-use/audio/scripts/lib/voice-credit.mjs +17 -0
- package/dist/skills/media-use/audio/scripts/lib/voice-credit.test.mjs +21 -0
- package/dist/skills/media-use/audio/scripts/recording.test.mjs +139 -0
- package/dist/skills/media-use/references/audio.md +2 -1
- package/dist/skills/media-use/references/heygen.md +9 -9
- package/dist/{skills-VB4OXS7B.js → skills-S2ODBBMC.js} +19 -7
- package/dist/{skillsUpdateCheck-HMGBIR2Z.js → skillsUpdateCheck-AOCZDRXM.js} +3 -3
- package/dist/{snapshot-SXWIDOD3.js → snapshot-SS6WDSZ5.js} +40 -41
- package/dist/{src-IEVHZX7S.js → src-HHRR3UTF.js} +13 -14
- package/dist/{src-RETKK67M.js → src-MYVZPRHS.js} +20 -19
- package/dist/{start-PDD5527T.js → start-OYIXMJKF.js} +24 -25
- package/dist/{staticProjectServer-GJQCWV7Y.js → staticProjectServer-65X4MWEN.js} +21 -22
- package/dist/{status-N6FGW6E2.js → status-JEYVWANY.js} +16 -17
- package/dist/studio/assets/{hyperframes-player-Dszy0WKm.js → hyperframes-player-DqxUNa9H.js} +1 -1
- package/dist/studio/assets/index-Bgfyny02.css +1 -0
- package/dist/studio/assets/{index-CWYuXWlI.js → index-CFUJyYA1.js} +1 -1
- package/dist/studio/assets/{index-BeR5xCi5.js → index-Cq43Ovkf.js} +196 -196
- package/dist/studio/index.html +2 -2
- package/dist/{studio-api-IAELPUY4.js → studio-api-GJGFGQQW.js} +11 -12
- package/dist/{studioServer-XTVVJA3E.js → studioServer-IS27DJNF.js} +66 -59
- package/dist/{sync-SDUSYR4M.js → sync-NLK2RFSR.js} +15 -16
- package/dist/{telemetry-IXOTZW4E.js → telemetry-BMPRZBBX.js} +22 -2
- package/dist/{telemetry-U4VJBESU.js → telemetry-BPPPHER2.js} +16 -4
- package/dist/templates/_shared/AGENTS.md +3 -1
- package/dist/templates/_shared/CLAUDE.md +3 -1
- package/dist/{templates-VFKKDFCR.js → templates-YWBAFFI4.js} +25 -26
- package/dist/{timeline-62HYU4LF.js → timeline-FAFHG2G4.js} +21 -22
- package/dist/{tokens-XJUQMDBP.js → tokens-QCZBFNMS.js} +2 -2
- package/dist/{transcribe-7IPTYLH2.js → transcribe-2P6GMYWR.js} +29 -30
- package/dist/{transcribe-RRGMCQBP.js → transcribe-VL3YKFMY.js} +13 -14
- package/dist/{update-EAL42IMG.js → update-NWDCG6JG.js} +20 -8
- package/dist/{updateCheck-CCDI422O.js → updateCheck-PX4XSKDO.js} +2 -2
- package/dist/{upgrade-A73PJHPY.js → upgrade-VWETDZDT.js} +3 -3
- package/dist/{upload-YQMBLKH5.js → upload-PEY7EYFV.js} +7 -2
- package/dist/{urlDownloader-JZIEE3AD.js → urlDownloader-7TVBPNBG.js} +9 -10
- package/dist/{validate-N6F4N34T.js → validate-HCJAHDTZ.js} +27 -28
- package/dist/{video-6LPKR7VA.js → video-JDUB5IFM.js} +11 -12
- package/dist/{voices-LFPLTLKV.js → voices-YBKCBC6K.js} +30 -29
- package/dist/warmCheck.js +41 -42
- package/package.json +1 -1
- package/dist/chunk-GDQQ4U3L.js +0 -226
- package/dist/chunk-TK7THLRO.js +0 -65
- package/dist/chunk-X7SYA4OP.js +0 -5035
- package/dist/studio/assets/index-CNZk2EFC.css +0 -1
|
@@ -13,13 +13,18 @@ import {
|
|
|
13
13
|
import {
|
|
14
14
|
formatLintStartupMessage
|
|
15
15
|
} from "./chunk-B2RMMRJB.js";
|
|
16
|
+
import {
|
|
17
|
+
PreviewPortUnavailableError,
|
|
18
|
+
listBackgroundPreviewStatuses,
|
|
19
|
+
readBackgroundPreviewStatus,
|
|
20
|
+
startBackgroundPreview,
|
|
21
|
+
stopBackgroundPreview
|
|
22
|
+
} from "./chunk-FRBQYFUV.js";
|
|
16
23
|
import {
|
|
17
24
|
desktopHint,
|
|
18
25
|
insideHostApp
|
|
19
|
-
} from "./chunk-
|
|
20
|
-
import
|
|
21
|
-
windowsLocalAppData
|
|
22
|
-
} from "./chunk-GKLZMLX3.js";
|
|
26
|
+
} from "./chunk-ONBYVA2L.js";
|
|
27
|
+
import "./chunk-CXUT4XVT.js";
|
|
23
28
|
import {
|
|
24
29
|
R,
|
|
25
30
|
ge,
|
|
@@ -31,9 +36,8 @@ import {
|
|
|
31
36
|
import {
|
|
32
37
|
resolveProject,
|
|
33
38
|
resolveProjectOrThrow
|
|
34
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-JT6LFFYK.js";
|
|
35
40
|
import {
|
|
36
|
-
MAX_PORT_SCAN,
|
|
37
41
|
PreviewServerPortMismatchError,
|
|
38
42
|
activeServerOnPort,
|
|
39
43
|
closeServer,
|
|
@@ -44,24 +48,24 @@ import {
|
|
|
44
48
|
import "./chunk-M3JU24AI.js";
|
|
45
49
|
import {
|
|
46
50
|
resolveLocalBrowserGpuMode
|
|
47
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-JNN2CTGU.js";
|
|
48
52
|
import {
|
|
49
53
|
resolveAutoProxy
|
|
50
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-7ETNIXIN.js";
|
|
51
55
|
import "./chunk-XT7X6QCP.js";
|
|
52
56
|
import "./chunk-5YPMCCCA.js";
|
|
53
57
|
import "./chunk-A4ZTSQLW.js";
|
|
54
58
|
import "./chunk-HVW7ABXD.js";
|
|
55
|
-
import "./chunk-
|
|
59
|
+
import "./chunk-FOX7LXZ2.js";
|
|
56
60
|
import "./chunk-JHOCK3DG.js";
|
|
57
|
-
import "./chunk-
|
|
58
|
-
import "./chunk-
|
|
61
|
+
import "./chunk-MERPHIUD.js";
|
|
62
|
+
import "./chunk-YZKRMBYH.js";
|
|
59
63
|
import "./chunk-AWDFDFI3.js";
|
|
60
64
|
import "./chunk-P6LJ4Y32.js";
|
|
61
65
|
import "./chunk-D3UCUI7G.js";
|
|
62
66
|
import "./chunk-T2WJO4XM.js";
|
|
63
|
-
import "./chunk-
|
|
64
|
-
import "./chunk-
|
|
67
|
+
import "./chunk-7EUZAQD6.js";
|
|
68
|
+
import "./chunk-P7WDQTQZ.js";
|
|
65
69
|
import "./chunk-PXVQOMKL.js";
|
|
66
70
|
import "./chunk-MCDNAIFF.js";
|
|
67
71
|
import "./chunk-LP7B3JLC.js";
|
|
@@ -74,50 +78,43 @@ import "./chunk-54HJ63Q2.js";
|
|
|
74
78
|
import {
|
|
75
79
|
c
|
|
76
80
|
} from "./chunk-HOCC4J5C.js";
|
|
77
|
-
import "./chunk-
|
|
81
|
+
import "./chunk-WFEKL42K.js";
|
|
78
82
|
import "./chunk-Z5J67X44.js";
|
|
79
83
|
import "./chunk-5S7W3TUO.js";
|
|
80
84
|
import "./chunk-D3MUHMFG.js";
|
|
81
|
-
import "./chunk-
|
|
85
|
+
import "./chunk-M7Z2SEQG.js";
|
|
82
86
|
import "./chunk-YWRUQ7XZ.js";
|
|
83
|
-
import "./chunk-
|
|
84
|
-
import "./chunk-
|
|
87
|
+
import "./chunk-3GXQPCJC.js";
|
|
88
|
+
import "./chunk-YQV44DRO.js";
|
|
89
|
+
import "./chunk-FXMKHHPO.js";
|
|
90
|
+
import "./chunk-GREVQ2SM.js";
|
|
85
91
|
import "./chunk-VC76R6W2.js";
|
|
86
92
|
import "./chunk-OFQWTKPW.js";
|
|
87
93
|
import "./chunk-RQVDTPGD.js";
|
|
88
|
-
import "./chunk-3GXQPCJC.js";
|
|
89
|
-
import "./chunk-TK7THLRO.js";
|
|
90
|
-
import "./chunk-FXMKHHPO.js";
|
|
91
94
|
import {
|
|
92
|
-
isProcessDescendant,
|
|
93
95
|
killOrphanedProcesses,
|
|
94
|
-
killProcessTree
|
|
95
|
-
processIdentity
|
|
96
|
+
killProcessTree
|
|
96
97
|
} from "./chunk-PV4XID2A.js";
|
|
97
98
|
import {
|
|
98
99
|
runRenderSetupWorker
|
|
99
100
|
} from "./chunk-X6JUUQCM.js";
|
|
100
|
-
import
|
|
101
|
-
terminateProcessTree
|
|
102
|
-
} from "./chunk-KGPLIH7B.js";
|
|
101
|
+
import "./chunk-KGPLIH7B.js";
|
|
103
102
|
import "./chunk-LAGZGKKN.js";
|
|
104
103
|
import "./chunk-K4MJX7SR.js";
|
|
105
104
|
import "./chunk-WE42NVH7.js";
|
|
106
|
-
import "./chunk-
|
|
105
|
+
import "./chunk-LLUKDUVS.js";
|
|
107
106
|
import "./chunk-WVRAFHJU.js";
|
|
108
107
|
import "./chunk-HYRPH6LL.js";
|
|
108
|
+
import "./chunk-FBN2M2HK.js";
|
|
109
109
|
import "./chunk-OHQRQE7F.js";
|
|
110
110
|
import "./chunk-CUCP7FKH.js";
|
|
111
111
|
import "./chunk-FR7YBU3H.js";
|
|
112
112
|
import "./chunk-DPVXBVLL.js";
|
|
113
113
|
import "./chunk-GWTIFRF5.js";
|
|
114
114
|
import "./chunk-2RY2LWAA.js";
|
|
115
|
-
import "./chunk-EPQC3FGZ.js";
|
|
116
115
|
import "./chunk-WC4MTXGN.js";
|
|
117
|
-
import "./chunk-
|
|
118
|
-
import
|
|
119
|
-
namedCacheDir
|
|
120
|
-
} from "./chunk-JOQR4AP6.js";
|
|
116
|
+
import "./chunk-EPQC3FGZ.js";
|
|
117
|
+
import "./chunk-JOQR4AP6.js";
|
|
121
118
|
import "./chunk-BR2JQQC5.js";
|
|
122
119
|
import "./chunk-CMQZP52Y.js";
|
|
123
120
|
import {
|
|
@@ -131,7 +128,7 @@ import {
|
|
|
131
128
|
} from "./chunk-66W5IWLO.js";
|
|
132
129
|
import "./chunk-FYZFURBN.js";
|
|
133
130
|
import "./chunk-QBXDU24O.js";
|
|
134
|
-
import "./chunk-
|
|
131
|
+
import "./chunk-XRNXGF7I.js";
|
|
135
132
|
import {
|
|
136
133
|
normalizeErrorMessage
|
|
137
134
|
} from "./chunk-E63BDV4Z.js";
|
|
@@ -142,8 +139,8 @@ import "./chunk-M2WBOQ2Q.js";
|
|
|
142
139
|
|
|
143
140
|
// src/commands/preview.ts
|
|
144
141
|
import { spawn } from "child_process";
|
|
145
|
-
import { existsSync
|
|
146
|
-
import { resolve
|
|
142
|
+
import { existsSync, lstatSync, mkdirSync, readlinkSync, symlinkSync, unlinkSync } from "fs";
|
|
143
|
+
import { resolve, dirname, basename, join } from "path";
|
|
147
144
|
import { fileURLToPath } from "url";
|
|
148
145
|
import { createRequire } from "module";
|
|
149
146
|
|
|
@@ -160,454 +157,6 @@ function studioProxyEnv(autoProxy, baseEnv = process.env, preview) {
|
|
|
160
157
|
};
|
|
161
158
|
}
|
|
162
159
|
|
|
163
|
-
// src/commands/previewLifecycle.ts
|
|
164
|
-
import { spawn as nodeSpawn } from "child_process";
|
|
165
|
-
import { createHash } from "crypto";
|
|
166
|
-
import {
|
|
167
|
-
closeSync,
|
|
168
|
-
existsSync,
|
|
169
|
-
mkdirSync,
|
|
170
|
-
openSync,
|
|
171
|
-
readFileSync,
|
|
172
|
-
readdirSync,
|
|
173
|
-
renameSync,
|
|
174
|
-
rmSync,
|
|
175
|
-
writeFileSync
|
|
176
|
-
} from "fs";
|
|
177
|
-
import { devNull, homedir } from "os";
|
|
178
|
-
import { dirname, join, resolve } from "path";
|
|
179
|
-
import { stripVTControlCharacters } from "util";
|
|
180
|
-
var PreviewPortUnavailableError = class extends Error {
|
|
181
|
-
requestedPort;
|
|
182
|
-
boundPort;
|
|
183
|
-
constructor(requestedPort, boundPort) {
|
|
184
|
-
super(
|
|
185
|
-
`Port ${requestedPort} is already in use; the background preview would have started on port ${boundPort} instead. Free port ${requestedPort}, pick another --port, or omit --port to accept the next free port.`
|
|
186
|
-
);
|
|
187
|
-
this.name = "PreviewPortUnavailableError";
|
|
188
|
-
this.requestedPort = requestedPort;
|
|
189
|
-
this.boundPort = boundPort;
|
|
190
|
-
}
|
|
191
|
-
};
|
|
192
|
-
function defaultStateHome() {
|
|
193
|
-
return namedCacheDir("state") || process.env.XDG_STATE_HOME || windowsLocalAppData() || join(homedir(), ".local", "state");
|
|
194
|
-
}
|
|
195
|
-
function normalized(path) {
|
|
196
|
-
const resolved = resolve(path).replace(/\\/g, "/");
|
|
197
|
-
return process.platform === "win32" ? resolved.toLowerCase() : resolved;
|
|
198
|
-
}
|
|
199
|
-
function sessionDirectory(stateHome = defaultStateHome()) {
|
|
200
|
-
return join(stateHome, "hyperframes", "previews");
|
|
201
|
-
}
|
|
202
|
-
function previewSessionPath(projectDir, stateHome = defaultStateHome()) {
|
|
203
|
-
const key = createHash("sha256").update(normalized(projectDir)).digest("hex").slice(0, 16);
|
|
204
|
-
return join(sessionDirectory(stateHome), `${key}.json`);
|
|
205
|
-
}
|
|
206
|
-
function previewLogPath(projectDir, stateHome = defaultStateHome()) {
|
|
207
|
-
return previewSessionPath(projectDir, stateHome).replace(/\.json$/, ".log");
|
|
208
|
-
}
|
|
209
|
-
function writePreviewSession(session, stateHome = defaultStateHome()) {
|
|
210
|
-
const path = previewSessionPath(session.projectDir, stateHome);
|
|
211
|
-
mkdirSync(dirname(path), { recursive: true });
|
|
212
|
-
const temporary = `${path}.${process.pid}.tmp`;
|
|
213
|
-
try {
|
|
214
|
-
writeFileSync(temporary, `${JSON.stringify(session, null, 2)}
|
|
215
|
-
`, { mode: 384 });
|
|
216
|
-
renameSync(temporary, path);
|
|
217
|
-
} finally {
|
|
218
|
-
rmSync(temporary, { force: true });
|
|
219
|
-
}
|
|
220
|
-
}
|
|
221
|
-
function readPreviewSession(projectDir, stateHome = defaultStateHome()) {
|
|
222
|
-
const path = previewSessionPath(projectDir, stateHome);
|
|
223
|
-
if (!existsSync(path)) return null;
|
|
224
|
-
try {
|
|
225
|
-
const parsed = JSON.parse(readFileSync(path, "utf8"));
|
|
226
|
-
if (!Number.isInteger(parsed.pid) || parsed.pid <= 0 || normalized(parsed.projectDir) !== normalized(projectDir)) {
|
|
227
|
-
throw new Error("invalid preview session");
|
|
228
|
-
}
|
|
229
|
-
return parsed;
|
|
230
|
-
} catch {
|
|
231
|
-
rmSync(path, { force: true });
|
|
232
|
-
return null;
|
|
233
|
-
}
|
|
234
|
-
}
|
|
235
|
-
function hasValidPreviewProcess(session) {
|
|
236
|
-
return Number.isInteger(session.pid) && session.pid > 0;
|
|
237
|
-
}
|
|
238
|
-
function hasValidPreviewEndpoint(session) {
|
|
239
|
-
return Number.isInteger(session.port) && session.port > 0 && session.port <= 65535;
|
|
240
|
-
}
|
|
241
|
-
function matchesPreviewSessionFile(session, path, stateHome) {
|
|
242
|
-
return typeof session.projectDir === "string" && typeof session.logPath === "string" && previewSessionPath(session.projectDir, stateHome) === path;
|
|
243
|
-
}
|
|
244
|
-
function readPreviewSessionFile(path, stateHome) {
|
|
245
|
-
try {
|
|
246
|
-
const parsed = JSON.parse(readFileSync(path, "utf8"));
|
|
247
|
-
if (!hasValidPreviewProcess(parsed) || !hasValidPreviewEndpoint(parsed) || !matchesPreviewSessionFile(parsed, path, stateHome)) {
|
|
248
|
-
throw new Error("invalid preview session");
|
|
249
|
-
}
|
|
250
|
-
return parsed;
|
|
251
|
-
} catch {
|
|
252
|
-
rmSync(path, { force: true });
|
|
253
|
-
return null;
|
|
254
|
-
}
|
|
255
|
-
}
|
|
256
|
-
function removePreviewSession(projectDir, stateHome = defaultStateHome()) {
|
|
257
|
-
rmSync(previewSessionPath(projectDir, stateHome), { force: true });
|
|
258
|
-
}
|
|
259
|
-
function matchingServer(servers, projectDir, browserGpuMode) {
|
|
260
|
-
return policyMatchingServers(servers, projectDir, browserGpuMode)[0] ?? null;
|
|
261
|
-
}
|
|
262
|
-
function policyMatchingServers(servers, projectDir, browserGpuMode) {
|
|
263
|
-
return sameProjectServers(servers, projectDir).filter(
|
|
264
|
-
(server) => browserGpuMode === void 0 || server.browserGpuMode === browserGpuMode
|
|
265
|
-
);
|
|
266
|
-
}
|
|
267
|
-
function matchingServerAtPort(servers, projectDir, port) {
|
|
268
|
-
return matchingServer(
|
|
269
|
-
servers.filter((server) => server.port === port),
|
|
270
|
-
projectDir
|
|
271
|
-
);
|
|
272
|
-
}
|
|
273
|
-
function sameProjectServers(servers, projectDir) {
|
|
274
|
-
const project = normalized(projectDir);
|
|
275
|
-
return servers.filter((server) => normalized(server.projectDir) === project);
|
|
276
|
-
}
|
|
277
|
-
function sameProjectPorts(servers, projectDir) {
|
|
278
|
-
return new Set(sameProjectServers(servers, projectDir).map((server) => server.port));
|
|
279
|
-
}
|
|
280
|
-
async function stopProcess(pid) {
|
|
281
|
-
await terminateProcessTree(pid);
|
|
282
|
-
}
|
|
283
|
-
var delay = (ms) => new Promise((done) => setTimeout(done, ms));
|
|
284
|
-
function openLog(logPath) {
|
|
285
|
-
try {
|
|
286
|
-
mkdirSync(dirname(logPath), { recursive: true });
|
|
287
|
-
return openSync(logPath, "a", 384);
|
|
288
|
-
} catch (error) {
|
|
289
|
-
console.warn(
|
|
290
|
-
`[hyperframes] background preview log not written: cannot open ${logPath} (${error})`
|
|
291
|
-
);
|
|
292
|
-
return openSync(devNull, "a");
|
|
293
|
-
}
|
|
294
|
-
}
|
|
295
|
-
function spawnDetachedPreview(projectDir, stateHome, dependencies) {
|
|
296
|
-
const logPath = previewLogPath(projectDir, stateHome);
|
|
297
|
-
const logFd = openLog(logPath);
|
|
298
|
-
const spawn2 = dependencies.spawn ?? nodeSpawn;
|
|
299
|
-
let child;
|
|
300
|
-
try {
|
|
301
|
-
child = spawn2(
|
|
302
|
-
dependencies.execPath ?? process.execPath,
|
|
303
|
-
buildBackgroundPreviewArgs(dependencies.argv ?? process.argv.slice(1)),
|
|
304
|
-
{
|
|
305
|
-
detached: true,
|
|
306
|
-
windowsHide: true,
|
|
307
|
-
stdio: ["ignore", logFd, logFd],
|
|
308
|
-
env: process.env
|
|
309
|
-
}
|
|
310
|
-
);
|
|
311
|
-
} finally {
|
|
312
|
-
closeSync(logFd);
|
|
313
|
-
}
|
|
314
|
-
if (!child.pid) throw new Error("background preview child did not report a PID");
|
|
315
|
-
let exit = null;
|
|
316
|
-
child.once?.("exit", (code, signal) => {
|
|
317
|
-
exit = signal ? `signal ${signal}` : `exit code ${code}`;
|
|
318
|
-
});
|
|
319
|
-
child.unref();
|
|
320
|
-
return {
|
|
321
|
-
pid: child.pid,
|
|
322
|
-
wrapperIdentity: (dependencies.identity ?? processIdentity)(child.pid) ?? void 0,
|
|
323
|
-
logPath,
|
|
324
|
-
exitedWith: () => exit
|
|
325
|
-
};
|
|
326
|
-
}
|
|
327
|
-
function startedServer(servers, projectDir, preLaunchPorts, launchedPid, dependencies) {
|
|
328
|
-
const isDescendant = dependencies.isDescendant ?? isProcessDescendant;
|
|
329
|
-
const ours = (server) => {
|
|
330
|
-
const pid = Number(server.pid);
|
|
331
|
-
return pid === launchedPid || isDescendant(pid, launchedPid);
|
|
332
|
-
};
|
|
333
|
-
const candidates = servers.filter((server) => !preLaunchPorts.has(server.port) && ours(server));
|
|
334
|
-
return matchingServer(candidates, projectDir, dependencies.browserGpuMode);
|
|
335
|
-
}
|
|
336
|
-
function buildBackgroundPreviewArgs(argv) {
|
|
337
|
-
const filtered = argv.filter(
|
|
338
|
-
(arg) => arg !== "--background" && !arg.startsWith("--background=") && arg !== "--foreground" && !arg.startsWith("--foreground=") && arg !== "--open" && arg !== "--no-open" && arg !== "--force-new" && arg !== "--json"
|
|
339
|
-
);
|
|
340
|
-
return [...filtered, "--foreground", "--no-open", "--force-new"];
|
|
341
|
-
}
|
|
342
|
-
function statusServer(servers, projectDir, saved, preferredPort) {
|
|
343
|
-
const candidates = sameProjectServers(servers, projectDir);
|
|
344
|
-
return candidates.find((server) => server.port === preferredPort) ?? candidates.find((server) => server.port === saved?.port) ?? candidates[0] ?? null;
|
|
345
|
-
}
|
|
346
|
-
function isCurrentPreviewWrapper(saved, dependencies) {
|
|
347
|
-
return !!saved.wrapperIdentity && (dependencies.identity ?? processIdentity)(saved.pid) === saved.wrapperIdentity;
|
|
348
|
-
}
|
|
349
|
-
function managedStatusLogPath(server, saved, pid, dependencies) {
|
|
350
|
-
if (!saved || saved.port !== server.port || server.pidSource !== "os") {
|
|
351
|
-
return void 0;
|
|
352
|
-
}
|
|
353
|
-
if (!isCurrentPreviewWrapper(saved, dependencies)) {
|
|
354
|
-
return void 0;
|
|
355
|
-
}
|
|
356
|
-
const isDescendant = dependencies.isDescendant ?? isProcessDescendant;
|
|
357
|
-
return pid === saved.pid || isDescendant(pid, saved.pid) ? saved.logPath : void 0;
|
|
358
|
-
}
|
|
359
|
-
async function readBackgroundPreviewStatus(projectDir, startPort, dependencies = {}) {
|
|
360
|
-
const { stateHome, saved, scanned } = await readPreviewLifecycleState(
|
|
361
|
-
projectDir,
|
|
362
|
-
startPort,
|
|
363
|
-
dependencies
|
|
364
|
-
);
|
|
365
|
-
const server = statusServer(scanned, projectDir, saved, dependencies.preferredPort);
|
|
366
|
-
if (server) {
|
|
367
|
-
const listenerPid = Number(server.pid);
|
|
368
|
-
const pid = Number.isInteger(listenerPid) && listenerPid > 0 ? listenerPid : null;
|
|
369
|
-
const logPath = pid === null ? void 0 : managedStatusLogPath(server, saved, pid, dependencies);
|
|
370
|
-
return {
|
|
371
|
-
pid,
|
|
372
|
-
port: server.port,
|
|
373
|
-
projectDir: resolve(projectDir),
|
|
374
|
-
...logPath ? { logPath } : {}
|
|
375
|
-
};
|
|
376
|
-
}
|
|
377
|
-
if (saved && wrapperProcessIsAlive(saved, dependencies)) return null;
|
|
378
|
-
removePreviewSession(projectDir, stateHome);
|
|
379
|
-
return null;
|
|
380
|
-
}
|
|
381
|
-
function processIsSignalable(pid) {
|
|
382
|
-
try {
|
|
383
|
-
process.kill(pid, 0);
|
|
384
|
-
return true;
|
|
385
|
-
} catch (error) {
|
|
386
|
-
return error?.code === "EPERM";
|
|
387
|
-
}
|
|
388
|
-
}
|
|
389
|
-
function wrapperProcessIsAlive(saved, dependencies) {
|
|
390
|
-
if (!saved.wrapperIdentity) return false;
|
|
391
|
-
const signalable = dependencies.isSignalable ?? processIsSignalable;
|
|
392
|
-
if (!signalable(saved.pid)) return false;
|
|
393
|
-
const identity = (dependencies.identity ?? processIdentity)(saved.pid);
|
|
394
|
-
if (identity === null) return true;
|
|
395
|
-
return identity === saved.wrapperIdentity;
|
|
396
|
-
}
|
|
397
|
-
async function listBackgroundPreviewStatuses(dependencies = {}) {
|
|
398
|
-
const stateHome = dependencies.stateHome ?? defaultStateHome();
|
|
399
|
-
const directory = sessionDirectory(stateHome);
|
|
400
|
-
let files;
|
|
401
|
-
try {
|
|
402
|
-
files = readdirSync(directory).filter((name) => name.endsWith(".json")).map((name) => join(directory, name));
|
|
403
|
-
} catch {
|
|
404
|
-
return [];
|
|
405
|
-
}
|
|
406
|
-
const saved = files.map((path) => readPreviewSessionFile(path, stateHome)).filter((session) => session !== null);
|
|
407
|
-
const statuses = await Promise.all(
|
|
408
|
-
saved.map(
|
|
409
|
-
(session) => readBackgroundPreviewStatus(session.projectDir, session.port, {
|
|
410
|
-
...dependencies,
|
|
411
|
-
stateHome
|
|
412
|
-
})
|
|
413
|
-
)
|
|
414
|
-
);
|
|
415
|
-
return statuses.filter((status) => status !== null);
|
|
416
|
-
}
|
|
417
|
-
function readyPreviewSession(server, pid, wrapperIdentity, projectDir, logPath, dependencies) {
|
|
418
|
-
const identity = wrapperIdentity ?? (dependencies.identity ?? processIdentity)(pid) ?? void 0;
|
|
419
|
-
const liveServerPid = Number(server.pid);
|
|
420
|
-
return {
|
|
421
|
-
session: {
|
|
422
|
-
pid,
|
|
423
|
-
wrapperIdentity: identity,
|
|
424
|
-
port: server.port,
|
|
425
|
-
projectDir: resolve(projectDir),
|
|
426
|
-
logPath
|
|
427
|
-
},
|
|
428
|
-
publicPid: Number.isInteger(liveServerPid) && liveServerPid > 0 ? liveServerPid : pid
|
|
429
|
-
};
|
|
430
|
-
}
|
|
431
|
-
function ownedStopTargetPid(saved, liveServerPid, dependencies) {
|
|
432
|
-
if (!saved?.wrapperIdentity) return liveServerPid;
|
|
433
|
-
const identity = dependencies.identity ?? processIdentity;
|
|
434
|
-
if (identity(saved.pid) !== saved.wrapperIdentity) return liveServerPid;
|
|
435
|
-
if (saved.pid === liveServerPid) return saved.pid;
|
|
436
|
-
const isDescendant = dependencies.isDescendant ?? isProcessDescendant;
|
|
437
|
-
return isDescendant(liveServerPid, saved.pid) ? saved.pid : liveServerPid;
|
|
438
|
-
}
|
|
439
|
-
async function stopOwnedPreviewBeforeReplacement(owned, projectDir, dependencies) {
|
|
440
|
-
if (!owned) return;
|
|
441
|
-
await stopBackgroundPreview(projectDir, owned.port, dependencies);
|
|
442
|
-
}
|
|
443
|
-
function savedOwnedPreview(servers, saved, projectDir) {
|
|
444
|
-
if (!saved) return null;
|
|
445
|
-
const savedPortServers = servers.filter((server) => server.port === saved.port);
|
|
446
|
-
return matchingServer(savedPortServers, projectDir);
|
|
447
|
-
}
|
|
448
|
-
function isPortInScanRange(port, scanStart) {
|
|
449
|
-
return port >= scanStart && port < scanStart + MAX_PORT_SCAN;
|
|
450
|
-
}
|
|
451
|
-
async function addSavedPortServer(scanned, savedPort, scanStart, dependencies) {
|
|
452
|
-
if (savedPort === void 0 || isPortInScanRange(savedPort, scanStart)) return;
|
|
453
|
-
const server = await (dependencies.probe ?? activeServerOnPort)(savedPort);
|
|
454
|
-
if (server) scanned.push(server);
|
|
455
|
-
}
|
|
456
|
-
async function readPreviewLifecycleState(projectDir, startPort, dependencies) {
|
|
457
|
-
const scan = dependencies.scan ?? scanActiveServers;
|
|
458
|
-
const stateHome = dependencies.stateHome ?? defaultStateHome();
|
|
459
|
-
const saved = readPreviewSession(projectDir, stateHome);
|
|
460
|
-
const scanStart = dependencies.preferredPort ?? saved?.port ?? startPort;
|
|
461
|
-
const scanned = await scan(scanStart);
|
|
462
|
-
await addSavedPortServer(scanned, saved?.port, scanStart, dependencies);
|
|
463
|
-
return { scan, stateHome, saved, scanned };
|
|
464
|
-
}
|
|
465
|
-
function unmetPreferredPort(port, preferredPort) {
|
|
466
|
-
return preferredPort !== void 0 && port !== preferredPort ? preferredPort : void 0;
|
|
467
|
-
}
|
|
468
|
-
function reuseExistingPreview(reusableExisting, candidates, dependencies) {
|
|
469
|
-
if (!reusableExisting || dependencies.forceNew) return null;
|
|
470
|
-
const unmet = unmetPreferredPort(reusableExisting.port, dependencies.preferredPort);
|
|
471
|
-
if (unmet !== void 0) {
|
|
472
|
-
throw new PreviewServerPortMismatchError(
|
|
473
|
-
unmet,
|
|
474
|
-
candidates,
|
|
475
|
-
` To start one on port ${unmet} instead, add --force-new or run --stop first.`
|
|
476
|
-
);
|
|
477
|
-
}
|
|
478
|
-
return {
|
|
479
|
-
type: "reused",
|
|
480
|
-
port: reusableExisting.port,
|
|
481
|
-
pid: reusableExisting.pid ? Number(reusableExisting.pid) : null,
|
|
482
|
-
logPath: null
|
|
483
|
-
};
|
|
484
|
-
}
|
|
485
|
-
async function startBackgroundPreview(projectDir, startPort, dependencies = {}) {
|
|
486
|
-
const launchStart = dependencies.preferredPort ?? startPort;
|
|
487
|
-
const { scan, stateHome, saved, scanned } = await readPreviewLifecycleState(
|
|
488
|
-
projectDir,
|
|
489
|
-
startPort,
|
|
490
|
-
dependencies
|
|
491
|
-
);
|
|
492
|
-
const candidates = policyMatchingServers(scanned, projectDir, dependencies.browserGpuMode);
|
|
493
|
-
const onPreferredPort = candidates.find((server2) => server2.port === dependencies.preferredPort) ?? null;
|
|
494
|
-
const requestedExisting = candidates[0] ?? null;
|
|
495
|
-
const ownedExisting = savedOwnedPreview(scanned, saved, projectDir);
|
|
496
|
-
const reusableOwned = ownedExisting ? matchingServer([ownedExisting], projectDir, dependencies.browserGpuMode) : null;
|
|
497
|
-
const reusableExisting = onPreferredPort ?? reusableOwned ?? (ownedExisting ? null : requestedExisting);
|
|
498
|
-
const reused = reuseExistingPreview(reusableExisting, candidates, dependencies);
|
|
499
|
-
if (reused) return reused;
|
|
500
|
-
await stopOwnedPreviewBeforeReplacement(ownedExisting, projectDir, dependencies);
|
|
501
|
-
const preLaunchPorts = sameProjectPorts(await scan(launchStart), projectDir);
|
|
502
|
-
const { pid, wrapperIdentity, logPath, exitedWith } = spawnDetachedPreview(
|
|
503
|
-
projectDir,
|
|
504
|
-
stateHome,
|
|
505
|
-
dependencies
|
|
506
|
-
);
|
|
507
|
-
const kill = dependencies.kill ?? stopProcess;
|
|
508
|
-
const server = await awaitStartedServer(
|
|
509
|
-
projectDir,
|
|
510
|
-
launchStart,
|
|
511
|
-
preLaunchPorts,
|
|
512
|
-
pid,
|
|
513
|
-
exitedWith,
|
|
514
|
-
dependencies
|
|
515
|
-
);
|
|
516
|
-
if (!server) {
|
|
517
|
-
const exit = exitedWith();
|
|
518
|
-
if (exit) {
|
|
519
|
-
throw new Error(
|
|
520
|
-
`background preview exited (${exit}) before it was ready; see ${logPath}${logTail(logPath)}`
|
|
521
|
-
);
|
|
522
|
-
}
|
|
523
|
-
await kill(pid);
|
|
524
|
-
throw new Error(`background preview did not become ready; see ${logPath}`);
|
|
525
|
-
}
|
|
526
|
-
const unmet = unmetPreferredPort(server.port, dependencies.preferredPort);
|
|
527
|
-
if (unmet !== void 0) {
|
|
528
|
-
await kill(pid);
|
|
529
|
-
if (!await awaitServerGone(projectDir, server.port, dependencies)) {
|
|
530
|
-
throw new Error(
|
|
531
|
-
`background preview on port ${server.port} did not stop after failing to bind port ${unmet}; see ${logPath}`
|
|
532
|
-
);
|
|
533
|
-
}
|
|
534
|
-
throw new PreviewPortUnavailableError(unmet, server.port);
|
|
535
|
-
}
|
|
536
|
-
const ready = readyPreviewSession(
|
|
537
|
-
server,
|
|
538
|
-
pid,
|
|
539
|
-
wrapperIdentity,
|
|
540
|
-
projectDir,
|
|
541
|
-
logPath,
|
|
542
|
-
dependencies
|
|
543
|
-
);
|
|
544
|
-
writePreviewSession(ready.session, stateHome);
|
|
545
|
-
return {
|
|
546
|
-
type: "started",
|
|
547
|
-
...ready.session,
|
|
548
|
-
pid: ready.publicPid
|
|
549
|
-
};
|
|
550
|
-
}
|
|
551
|
-
function logTail(logPath) {
|
|
552
|
-
try {
|
|
553
|
-
const text = stripVTControlCharacters(readFileSync(logPath, "utf8"));
|
|
554
|
-
const lines = text.trimEnd().split("\n").slice(-5);
|
|
555
|
-
return lines.join("").trim() ? `
|
|
556
|
-
${lines.join("\n")}` : "";
|
|
557
|
-
} catch {
|
|
558
|
-
return "";
|
|
559
|
-
}
|
|
560
|
-
}
|
|
561
|
-
async function awaitStartedServer(projectDir, startPort, preLaunchPorts, launchedPid, exitedWith, dependencies) {
|
|
562
|
-
const scan = dependencies.scan ?? scanActiveServers;
|
|
563
|
-
const sleep = dependencies.sleep ?? delay;
|
|
564
|
-
for (let attempt = 0; attempt < 50 && !exitedWith(); attempt++) {
|
|
565
|
-
const server = startedServer(
|
|
566
|
-
await scan(startPort),
|
|
567
|
-
projectDir,
|
|
568
|
-
preLaunchPorts,
|
|
569
|
-
launchedPid,
|
|
570
|
-
dependencies
|
|
571
|
-
);
|
|
572
|
-
if (server) return server;
|
|
573
|
-
await sleep(200);
|
|
574
|
-
}
|
|
575
|
-
return null;
|
|
576
|
-
}
|
|
577
|
-
async function stopBackgroundPreview(projectDir, startPort, dependencies = {}) {
|
|
578
|
-
const stateHome = dependencies.stateHome ?? defaultStateHome();
|
|
579
|
-
const saved = readPreviewSession(projectDir, stateHome);
|
|
580
|
-
const scan = dependencies.scan ?? scanActiveServers;
|
|
581
|
-
const server = saved ? await probeMatchingServerAtPort(projectDir, saved.port, dependencies) : matchingServer(await scan(dependencies.preferredPort ?? startPort), projectDir);
|
|
582
|
-
if (!server) {
|
|
583
|
-
removePreviewSession(projectDir, stateHome);
|
|
584
|
-
return false;
|
|
585
|
-
}
|
|
586
|
-
const pid = Number(server.pid);
|
|
587
|
-
if (!Number.isInteger(pid) || pid <= 0) {
|
|
588
|
-
throw new Error(`preview ownership could not be proven for ${resolve(projectDir)}`);
|
|
589
|
-
}
|
|
590
|
-
const kill = dependencies.kill ?? stopProcess;
|
|
591
|
-
await kill(ownedStopTargetPid(saved, pid, dependencies));
|
|
592
|
-
if (!await awaitServerGone(projectDir, server.port, dependencies)) {
|
|
593
|
-
throw new Error(`background preview did not stop for ${resolve(projectDir)}`);
|
|
594
|
-
}
|
|
595
|
-
removePreviewSession(projectDir, stateHome);
|
|
596
|
-
return true;
|
|
597
|
-
}
|
|
598
|
-
async function probeMatchingServerAtPort(projectDir, port, dependencies) {
|
|
599
|
-
const server = await (dependencies.probe ?? activeServerOnPort)(port);
|
|
600
|
-
return matchingServerAtPort(server ? [server] : [], projectDir, port);
|
|
601
|
-
}
|
|
602
|
-
async function awaitServerGone(projectDir, port, dependencies) {
|
|
603
|
-
const sleep = dependencies.sleep ?? delay;
|
|
604
|
-
for (let attempt = 0; attempt < 25; attempt++) {
|
|
605
|
-
if (!await probeMatchingServerAtPort(projectDir, port, dependencies)) return true;
|
|
606
|
-
await sleep(100);
|
|
607
|
-
}
|
|
608
|
-
return false;
|
|
609
|
-
}
|
|
610
|
-
|
|
611
160
|
// src/commands/previewLifecycleOutput.ts
|
|
612
161
|
function lifecyclePayload(operation, result) {
|
|
613
162
|
return { schemaVersion: 1, operation, ok: true, result };
|
|
@@ -870,6 +419,7 @@ var preview_default = defineCommand({
|
|
|
870
419
|
return;
|
|
871
420
|
}
|
|
872
421
|
printStudioSummary(project2.name, previewBaseUrl(status.port), project2.dir, {
|
|
422
|
+
preview: status.logPath ? "background" : "foreground",
|
|
873
423
|
details: [
|
|
874
424
|
`${status.logPath ? "Background preview" : "Preview"} running${status.pid === null ? "" : ` (PID ${status.pid})`}.`,
|
|
875
425
|
...status.logPath ? [`Log: ${status.logPath}`] : []
|
|
@@ -1030,6 +580,7 @@ var preview_default = defineCommand({
|
|
|
1030
580
|
} else {
|
|
1031
581
|
ge(c.bold("hyperframes preview"));
|
|
1032
582
|
printStudioSummary(projectName, url, dir, {
|
|
583
|
+
preview: "background",
|
|
1033
584
|
details: [
|
|
1034
585
|
background.type === "reused" ? "Reusing the background server already running for this project." : `Running in the background. Log: ${background.logPath}`,
|
|
1035
586
|
"Changes reload automatically in the studio."
|
|
@@ -1159,11 +710,11 @@ async function handlePreviewList(startPort, json, dependencies = {}) {
|
|
|
1159
710
|
]);
|
|
1160
711
|
const listedSessions = managedSessions.filter(
|
|
1161
712
|
(session) => session.pid !== null || !scannedServers.some(
|
|
1162
|
-
(server) => publicPreviewPid(server.pid, null) !== null && server.port === session.port &&
|
|
713
|
+
(server) => publicPreviewPid(server.pid, null) !== null && server.port === session.port && resolve(server.projectDir) === resolve(session.projectDir)
|
|
1163
714
|
)
|
|
1164
715
|
);
|
|
1165
716
|
const managedKeys = new Set(
|
|
1166
|
-
listedSessions.map((session) => `${
|
|
717
|
+
listedSessions.map((session) => `${resolve(session.projectDir)}\0${session.port}`)
|
|
1167
718
|
);
|
|
1168
719
|
const servers = [
|
|
1169
720
|
...listedSessions.map((session) => ({
|
|
@@ -1175,7 +726,7 @@ async function handlePreviewList(startPort, json, dependencies = {}) {
|
|
|
1175
726
|
pid: session.pid === null ? null : String(session.pid)
|
|
1176
727
|
})),
|
|
1177
728
|
...scannedServers.filter(
|
|
1178
|
-
(server) => !managedKeys.has(`${
|
|
729
|
+
(server) => !managedKeys.has(`${resolve(server.projectDir)}\0${server.port}`)
|
|
1179
730
|
)
|
|
1180
731
|
];
|
|
1181
732
|
if (json) {
|
|
@@ -1621,7 +1172,7 @@ function printStudioSummary(projectName, serverUrl, projectDir, opts = {}) {
|
|
|
1621
1172
|
console.log(` ${c.dim("Project")} ${c.accent(projectName)}`);
|
|
1622
1173
|
console.log(` ${c.dim("Studio")} ${c.accent(urls.studioUrl)}`);
|
|
1623
1174
|
console.log(` ${c.dim("Server")} ${c.accent(urls.serverUrl)}`);
|
|
1624
|
-
const hint = desktopHint(projectDir);
|
|
1175
|
+
const hint = desktopHint(projectDir, { preview: opts.preview });
|
|
1625
1176
|
if (hint) console.log(` ${c.dim("Desktop")} ${hint}`);
|
|
1626
1177
|
console.log();
|
|
1627
1178
|
for (const detail of opts.details ?? []) {
|
|
@@ -1632,20 +1183,20 @@ function printStudioSummary(projectName, serverUrl, projectDir, opts = {}) {
|
|
|
1632
1183
|
console.log();
|
|
1633
1184
|
}
|
|
1634
1185
|
function linkProjectIntoStudioData(dir, projectsDir, projectName) {
|
|
1635
|
-
const symlinkPath =
|
|
1636
|
-
|
|
1186
|
+
const symlinkPath = join(projectsDir, projectName);
|
|
1187
|
+
mkdirSync(projectsDir, { recursive: true });
|
|
1637
1188
|
let createdSymlink = false;
|
|
1638
1189
|
if (dir !== symlinkPath) {
|
|
1639
|
-
if (
|
|
1190
|
+
if (existsSync(symlinkPath)) {
|
|
1640
1191
|
try {
|
|
1641
1192
|
const stat = lstatSync(symlinkPath);
|
|
1642
|
-
if (stat.isSymbolicLink() &&
|
|
1193
|
+
if (stat.isSymbolicLink() && resolve(readlinkSync(symlinkPath)) !== resolve(dir)) {
|
|
1643
1194
|
unlinkSync(symlinkPath);
|
|
1644
1195
|
}
|
|
1645
1196
|
} catch {
|
|
1646
1197
|
}
|
|
1647
1198
|
}
|
|
1648
|
-
if (!
|
|
1199
|
+
if (!existsSync(symlinkPath)) {
|
|
1649
1200
|
symlinkSync(dir, symlinkPath, process.platform === "win32" ? "junction" : "dir");
|
|
1650
1201
|
createdSymlink = true;
|
|
1651
1202
|
}
|
|
@@ -1656,7 +1207,7 @@ function removeSymlinkOnExit(createdSymlink, symlinkPath) {
|
|
|
1656
1207
|
if (!createdSymlink) return;
|
|
1657
1208
|
process.on("exit", () => {
|
|
1658
1209
|
try {
|
|
1659
|
-
if (
|
|
1210
|
+
if (existsSync(symlinkPath)) unlinkSync(symlinkPath);
|
|
1660
1211
|
} catch {
|
|
1661
1212
|
}
|
|
1662
1213
|
});
|
|
@@ -1693,6 +1244,7 @@ function attachStudioReadyHandler(child, spinner2, projectName, projectDir, opti
|
|
|
1693
1244
|
} else {
|
|
1694
1245
|
spinner2.stop(c.success("Studio running"));
|
|
1695
1246
|
printStudioSummary(projectName, url, projectDir, {
|
|
1247
|
+
preview: "foreground",
|
|
1696
1248
|
footer: "Press Ctrl+C to stop"
|
|
1697
1249
|
});
|
|
1698
1250
|
}
|
|
@@ -1722,14 +1274,14 @@ function reportPreviewShutdown(json) {
|
|
|
1722
1274
|
}
|
|
1723
1275
|
async function runDevMode(dir, options) {
|
|
1724
1276
|
const thisFile = fileURLToPath(import.meta.url);
|
|
1725
|
-
const repoRoot =
|
|
1726
|
-
const projectsDir =
|
|
1277
|
+
const repoRoot = resolve(dirname(thisFile), "..", "..", "..", "..");
|
|
1278
|
+
const projectsDir = join(repoRoot, "packages", "studio", "data", "projects");
|
|
1727
1279
|
const pName = options?.projectName ?? basename(dir);
|
|
1728
1280
|
const { symlinkPath, createdSymlink } = linkProjectIntoStudioData(dir, projectsDir, pName);
|
|
1729
1281
|
if (!options?.json) ge(c.bold("hyperframes preview"));
|
|
1730
1282
|
const s = spinner();
|
|
1731
1283
|
if (!options?.json) s.start("Starting studio...");
|
|
1732
|
-
const studioPkgDir =
|
|
1284
|
+
const studioPkgDir = join(repoRoot, "packages", "studio");
|
|
1733
1285
|
const child = spawn("bun", ["run", "dev", "--", ...previewViteArgs(options?.port)], {
|
|
1734
1286
|
cwd: studioPkgDir,
|
|
1735
1287
|
stdio: ["ignore", "pipe", "pipe"],
|
|
@@ -1746,18 +1298,18 @@ async function runDevMode(dir, options) {
|
|
|
1746
1298
|
}
|
|
1747
1299
|
function hasLocalStudio(dir) {
|
|
1748
1300
|
try {
|
|
1749
|
-
const req = createRequire(
|
|
1750
|
-
const studioPkgPath =
|
|
1751
|
-
return
|
|
1301
|
+
const req = createRequire(join(dir, "package.json"));
|
|
1302
|
+
const studioPkgPath = dirname(req.resolve("@hyperframes/studio/package.json"));
|
|
1303
|
+
return existsSync(join(studioPkgPath, "vite.config.ts"));
|
|
1752
1304
|
} catch {
|
|
1753
1305
|
return false;
|
|
1754
1306
|
}
|
|
1755
1307
|
}
|
|
1756
1308
|
async function runLocalStudioMode(dir, options) {
|
|
1757
|
-
const req = createRequire(
|
|
1758
|
-
const studioPkgPath =
|
|
1309
|
+
const req = createRequire(join(dir, "package.json"));
|
|
1310
|
+
const studioPkgPath = dirname(req.resolve("@hyperframes/studio/package.json"));
|
|
1759
1311
|
const pName = options?.projectName ?? basename(dir);
|
|
1760
|
-
const projectsDir =
|
|
1312
|
+
const projectsDir = join(studioPkgPath, "data", "projects");
|
|
1761
1313
|
const { symlinkPath, createdSymlink } = linkProjectIntoStudioData(dir, projectsDir, pName);
|
|
1762
1314
|
if (!options?.json) ge(c.bold("hyperframes preview") + c.dim(" (local studio)"));
|
|
1763
1315
|
const s = spinner();
|
|
@@ -1778,7 +1330,7 @@ async function runLocalStudioMode(dir, options) {
|
|
|
1778
1330
|
return waitForStudioChildClose(child);
|
|
1779
1331
|
}
|
|
1780
1332
|
async function runEmbeddedMode(dir, startPort, options) {
|
|
1781
|
-
const { createStudioServer, loadPreviewServerBuildSignature, resolveStudioBundle } = await import("./studioServer-
|
|
1333
|
+
const { createStudioServer, loadPreviewServerBuildSignature, resolveStudioBundle } = await import("./studioServer-IS27DJNF.js");
|
|
1782
1334
|
const pName = options?.projectName ?? basename(dir);
|
|
1783
1335
|
const studioBundle = resolveStudioBundle();
|
|
1784
1336
|
if (!options?.json) ge(c.bold("hyperframes preview"));
|
|
@@ -1875,6 +1427,7 @@ async function runEmbeddedMode(dir, startPort, options) {
|
|
|
1875
1427
|
console.log();
|
|
1876
1428
|
}
|
|
1877
1429
|
printStudioSummary(pName, url, dir, {
|
|
1430
|
+
preview: "foreground",
|
|
1878
1431
|
details: [
|
|
1879
1432
|
"Edit with your AI agent \u2014 it has HyperFrames skills installed.",
|
|
1880
1433
|
"Changes reload automatically in the studio."
|
|
@@ -1911,7 +1464,7 @@ async function runEmbeddedMode(dir, startPort, options) {
|
|
|
1911
1464
|
};
|
|
1912
1465
|
process.on("SIGINT", shutdown);
|
|
1913
1466
|
process.on("SIGTERM", shutdown);
|
|
1914
|
-
import("./src-
|
|
1467
|
+
import("./src-MYVZPRHS.js").then(({ killTrackedProcesses }) => {
|
|
1915
1468
|
process.once("exit", () => {
|
|
1916
1469
|
if (!shuttingDown) killTrackedProcesses();
|
|
1917
1470
|
});
|