hyperframes 0.9.28-alpha.0 → 0.9.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -2
- package/dist/{add-WSGJ42KQ.js → add-XQCABYNY.js} +14 -14
- package/dist/{agentPromptGenerator-JTMVHRZN.js → agentPromptGenerator-S2SYZY3A.js} +7 -7
- package/dist/{animatedGifPrep-V3FJENRD.js → animatedGifPrep-SACSOT4A.js} +7 -7
- package/dist/api.js +38 -39
- package/dist/{asset-6LZTBFS7.js → asset-JPI3LFG4.js} +2 -2
- package/dist/{assetCataloger-GRGAUHXL.js → assetCataloger-TJQ5OLMV.js} +8 -8
- package/dist/{audio-QCMSKGKQ.js → audio-RG6NXOMI.js} +24 -25
- package/dist/{auth-TB7AUPRE.js → auth-7G2OCS7L.js} +4 -4
- package/dist/{autoUpdate-G3G7WBJF.js → autoUpdate-7RS75ENY.js} +3 -3
- package/dist/{avatars-6ILGXRFF.js → avatars-KWPVXWXC.js} +15 -16
- package/dist/{backgroundChecks-E3VZ7KZN.js → backgroundChecks-5HHWQH5H.js} +4 -4
- package/dist/backgroundChecksWorker.js +4 -4
- package/dist/{batchRender-KWIPFU5Q.js → batchRender-AL6DO5IA.js} +4 -4
- package/dist/{beats-OBIGBNZA.js → beats-XHKWF5KT.js} +11 -11
- package/dist/{benchmark-64IXFBPC.js → benchmark-57RNYMON.js} +11 -11
- package/dist/{billing-3X5BWBTI.js → billing-FXAMQKDS.js} +15 -16
- package/dist/{browser-DZ3XIEFA.js → browser-TV2VPWQJ.js} +8 -8
- package/dist/{bundleWithLocalizedFonts-PKQN5CMM.js → bundleWithLocalizedFonts-YGHFRVJW.js} +1 -1
- package/dist/{capture-NTN7O6RZ.js → capture-GPT5V4ND.js} +22 -22
- package/dist/{capture-V7RAUBMG.js → capture-LHPSRQ4R.js} +3 -3
- package/dist/{captureCompositionFrame-KMMB3FVD.js → captureCompositionFrame-TLV2WC4Q.js} +14 -14
- package/dist/{catalog-YIGPXM7Q.js → catalog-7A3MMFTN.js} +14 -14
- package/dist/{catch-up-LOGK3VIS.js → catch-up-SEGXPPOX.js} +9 -9
- package/dist/{check-FVXJBA5U.js → check-OP5AR33W.js} +44 -43
- package/dist/{checkAudio-FSIRCDM6.js → checkAudio-QDAUXX7W.js} +15 -15
- package/dist/{checkBrowser-NXRXF73I.js → checkBrowser-OGE3A52R.js} +37 -37
- package/dist/{chunk-HWQ6SNLY.js → chunk-257XUBNU.js} +1 -1
- package/dist/{chunk-XGRXNWDK.js → chunk-3JFV42QB.js} +3 -3
- package/dist/{chunk-QTDTCTGB.js → chunk-4N3UVDIJ.js} +4 -6
- package/dist/{chunk-YPPJJ5ZH.js → chunk-55ZEUSPW.js} +1 -1
- package/dist/{chunk-RGINHOAX.js → chunk-5E6Y7CW3.js} +22 -4
- package/dist/{chunk-UF6C3CCP.js → chunk-5RUGBDAC.js} +1 -1
- package/dist/{chunk-ME6L6GUF.js → chunk-6FHIR4KD.js} +1 -1
- package/dist/{chunk-BP75ZLZ5.js → chunk-6LCIO2YY.js} +2 -2
- package/dist/{chunk-5BIHQCC2.js → chunk-6UMISKCG.js} +4 -4
- package/dist/{chunk-UO6DALBR.js → chunk-6WCOY6MS.js} +4 -4
- package/dist/{chunk-PG26KCBX.js → chunk-7FYGCIHK.js} +2 -2
- package/dist/{chunk-3YP3OQVH.js → chunk-7M26J4R3.js} +1 -1
- package/dist/{chunk-5FI52L2T.js → chunk-A7HPQVS5.js} +1 -1
- package/dist/{chunk-5RETZFNG.js → chunk-AA2DNXEJ.js} +7 -7
- package/dist/{chunk-YOUHA4KP.js → chunk-AVXIDAFJ.js} +9 -11
- package/dist/{chunk-MEVLYDL2.js → chunk-BJYCLZBQ.js} +1 -1
- package/dist/{chunk-W4DMQZL5.js → chunk-BZULWFMJ.js} +11 -2
- package/dist/{chunk-CHCMXYER.js → chunk-C5JKRCSG.js} +1 -1
- package/dist/{chunk-KFU75UXA.js → chunk-CINCDA5M.js} +2 -2
- package/dist/{chunk-VVGNWH2J.js → chunk-CSCK6RGC.js} +12 -12
- package/dist/{chunk-QMGFXL43.js → chunk-D5HNV6G6.js} +1 -1
- package/dist/{chunk-VSQ5NWCF.js → chunk-DJVSNDF3.js} +3 -3
- package/dist/{chunk-UVZDPGZR.js → chunk-DKSCZYFP.js} +1 -1
- package/dist/{chunk-HYXSD2UA.js → chunk-E3UFWFZZ.js} +1 -1
- package/dist/{chunk-E7YPIP42.js → chunk-E53UDY74.js} +2 -2
- package/dist/{chunk-RSZWWTQN.js → chunk-E54N6IPY.js} +2 -2
- package/dist/{chunk-PWW2DKGL.js → chunk-EENM7GX3.js} +2 -2
- package/dist/{chunk-M7U6JTXF.js → chunk-EOJ2PMOV.js} +2 -2
- package/dist/{chunk-3T6BFAKZ.js → chunk-F24B2PLD.js} +1 -1
- package/dist/{chunk-KBF2DIZX.js → chunk-FBLCK3YJ.js} +9 -9
- package/dist/{chunk-A5CTI6RW.js → chunk-G4D7EBDQ.js} +3 -3
- package/dist/{chunk-5EYQ222G.js → chunk-GGDJLN5I.js} +0 -20
- package/dist/{chunk-N6NB2WZ4.js → chunk-GUHCMOE2.js} +2 -2
- package/dist/{chunk-AAENGP3S.js → chunk-IOPIOX5K.js} +66 -16
- package/dist/{chunk-WYA575QX.js → chunk-IQKMIYLG.js} +5 -7
- package/dist/{chunk-G6CN5UWR.js → chunk-IX22RYJO.js} +1 -1
- package/dist/{chunk-HW325JBH.js → chunk-IX3K55NA.js} +4 -4
- package/dist/{chunk-WIJGRX5X.js → chunk-IYYZMZD2.js} +1 -1
- package/dist/{chunk-JX4BEVC3.js → chunk-J237HI2F.js} +41 -29
- package/dist/{chunk-4OZVFZCO.js → chunk-JLUOG6S2.js} +1 -1
- package/dist/{chunk-XMHYE6XY.js → chunk-JMPTLXJQ.js} +3 -3
- package/dist/{chunk-O5G2LEUB.js → chunk-K77GTFH3.js} +3 -3
- package/dist/{chunk-6ODX6SHY.js → chunk-L2GOO2UY.js} +2 -2
- package/dist/{chunk-UDEFHX4Z.js → chunk-L5KXLXFY.js} +15 -15
- package/dist/{chunk-UGX3IARM.js → chunk-LAI7UTBM.js} +30 -28
- package/dist/{chunk-AHRX3FHF.js → chunk-LMCFILEY.js} +3 -3
- package/dist/{chunk-FID757D3.js → chunk-LP7B3JLC.js} +0 -1
- package/dist/chunk-LPB7T67S.js +29 -0
- package/dist/{chunk-VCNPBW4L.js → chunk-LXAJQXHM.js} +1 -1
- package/dist/{chunk-WXEXQLVV.js → chunk-M457GQGR.js} +344 -216
- package/dist/{chunk-MFSQZ2PR.js → chunk-MMCMEW7K.js} +1 -1
- package/dist/{chunk-CJC6U3E7.js → chunk-MPKBIC4Z.js} +2 -2
- package/dist/{chunk-7U2B7OF6.js → chunk-MVJ7AX6W.js} +1 -1
- package/dist/{chunk-3MYEF34S.js → chunk-NFUXYBOR.js} +1 -1
- package/dist/{chunk-RERVXE6J.js → chunk-NHJ5YUBZ.js} +2 -2
- package/dist/{chunk-KJ5QBEMN.js → chunk-NURN5W6M.js} +6 -8
- package/dist/{chunk-ZEKQATYP.js → chunk-NUUN7XB4.js} +6 -6
- package/dist/{chunk-ZQLJLORI.js → chunk-NXVDTRXA.js} +6 -6
- package/dist/{chunk-WRN3ZY5P.js → chunk-O5P75JID.js} +7 -7
- package/dist/{chunk-IMSLXLUI.js → chunk-OSDNRYQJ.js} +1 -1
- package/dist/{chunk-H3MJLPAC.js → chunk-P2A6MYSQ.js} +1 -1
- package/dist/{chunk-JEVWAGQP.js → chunk-P5USY2GC.js} +1 -1
- package/dist/{chunk-6EZ76UBP.js → chunk-PEJQV2RL.js} +17 -17
- package/dist/{chunk-HP6IDD33.js → chunk-PF23WT5C.js} +5 -5
- package/dist/{chunk-ASMDPTT3.js → chunk-PL5C5FKM.js} +1 -1
- package/dist/{chunk-Q5J4OO7N.js → chunk-QT766HQV.js} +38 -20
- package/dist/{chunk-VNKPEYMW.js → chunk-RFLV3WR5.js} +1 -1
- package/dist/{chunk-Q6TVZY36.js → chunk-RYT22J4V.js} +2 -2
- package/dist/{chunk-WOSVLHQH.js → chunk-SCNC7YPB.js} +1 -1
- package/dist/{chunk-3DVDIXOZ.js → chunk-SDYZOTB7.js} +2 -2
- package/dist/{chunk-K2OQYSDS.js → chunk-SJOA2RCP.js} +12 -12
- package/dist/{chunk-RO74CZMK.js → chunk-SQRI67KR.js} +1 -1
- package/dist/{chunk-WUOMBLQL.js → chunk-SWEC6N6N.js} +2 -2
- package/dist/{chunk-TF7VWCJM.js → chunk-TCQKCUDA.js} +1 -1
- package/dist/{chunk-MWBRY5HN.js → chunk-TMYY4DV4.js} +3 -3
- package/dist/{chunk-E3EIKMUU.js → chunk-TTKJF3LI.js} +1 -1
- package/dist/{chunk-AJVYQVDB.js → chunk-U5RXCKWJ.js} +1 -1
- package/dist/{chunk-NKWJNDKO.js → chunk-UAEL2JEL.js} +4 -4
- package/dist/{chunk-C756HYL7.js → chunk-UVF4HXPW.js} +2 -2
- package/dist/chunk-UZGRZRD6.js +413 -0
- package/dist/{chunk-BI33G4XD.js → chunk-V4M7PKBM.js} +7 -7
- package/dist/{chunk-7XHVHBFV.js → chunk-V4Z37HFN.js} +3 -3
- package/dist/{chunk-7ZKUPLMN.js → chunk-VCMPKZFN.js} +18 -18
- package/dist/{chunk-DPAC75N5.js → chunk-VOVC3QCN.js} +3 -3
- package/dist/{chunk-YJBGA3W6.js → chunk-VXWASGGT.js} +2 -2
- package/dist/{chunk-RPMPHUOS.js → chunk-W4EAYORI.js} +3 -3
- package/dist/{chunk-6NG6PATW.js → chunk-W7TS3CZA.js} +1 -1
- package/dist/{chunk-MBRBEXMF.js → chunk-WMZDESYF.js} +1 -1
- package/dist/{chunk-Z2N7XOOB.js → chunk-X2YNB244.js} +3 -3
- package/dist/{chunk-GN3CCXVU.js → chunk-XLERIR2V.js} +1 -1
- package/dist/{chunk-RNUIFYO6.js → chunk-XPGH4KBU.js} +1 -1
- package/dist/{chunk-BFDNZ2JT.js → chunk-YSAK7PJZ.js} +2 -2
- package/dist/{chunk-IEB4IKXF.js → chunk-YU2KLER7.js} +1 -1
- package/dist/{chunk-FW7MDSCQ.js → chunk-Z677PTBA.js} +2 -2
- package/dist/{chunk-3Q7LAXFJ.js → chunk-ZUXES5HA.js} +2 -2
- package/dist/{chunk-C7ME7Y45.js → chunk-ZWJ7PWTY.js} +2 -2
- package/dist/{clean-6YCVFT7D.js → clean-UGV3DTVQ.js} +22 -22
- package/dist/cli.js +64 -65
- package/dist/{cloud-TEJ6UVBU.js → cloud-QJMPTQ3N.js} +5 -6
- package/dist/{cloud-BPWS4GJS.js → cloud-SDC56AHY.js} +4 -4
- package/dist/{cloudrun-A7DU7DQE.js → cloudrun-T7VVPRDG.js} +7 -7
- package/dist/{compare-HELNXJLM.js → compare-LG42JVYH.js} +35 -35
- package/dist/{compiler-J43BE6LC.js → compiler-ZSIKBZBR.js} +4 -4
- package/dist/{component-WEC4QGT3.js → component-OPAFYBPO.js} +3 -3
- package/dist/{compositions-RSUPWPK6.js → compositions-JP655NT3.js} +13 -13
- package/dist/{curve-OK5TBGXV.js → curve-RN7HDXOS.js} +12 -12
- package/dist/{cuts-S5WHYQZZ.js → cuts-ET7N7IBU.js} +13 -13
- package/dist/{delete-5NHJKNWL.js → delete-5552CGT5.js} +8 -9
- package/dist/{deploy-7PLBBXNB.js → deploy-NMFEPGRQ.js} +6 -6
- package/dist/{describeProject-WVLTYWPG.js → describeProject-CWLV5OAT.js} +8 -8
- package/dist/{deterministicFonts-UZIF5XZW.js → deterministicFonts-SKRN3TCP.js} +2 -2
- package/dist/{diff-W4EXKV5Q.js → diff-HZX2TISC.js} +39 -40
- package/dist/{dist-4JHP47NU.js → dist-EFXKPJJT.js} +2 -2
- package/dist/{dist-AUYCAQMA.js → dist-O45G7NET.js} +14 -14
- package/dist/{dist-F3Y2XHZL.js → dist-QRXJMFI7.js} +3 -3
- package/dist/{doctor-7Y75ZXTU.js → doctor-IYEYULPD.js} +12 -12
- package/dist/{energy-Y4KYLWLZ.js → energy-YXEPVRKW.js} +13 -13
- package/dist/{events-3LAHSBBF.js → events-GA24CH3D.js} +8 -8
- package/dist/{events-TQD3L5FS.js → events-JAY5YNEU.js} +15 -15
- package/dist/{events-67Q5DIRC.js → events-KYCNM6C3.js} +4 -4
- package/dist/{extract-6KGIEC76.js → extract-TFEVGLLS.js} +16 -16
- package/dist/{face-OBEAPOZR.js → face-NP7JGAE7.js} +14 -14
- package/dist/{feedback-QTB2UH3Q.js → feedback-UPYWXKHN.js} +14 -15
- package/dist/{ffmpeg-4CMA6M2L.js → ffmpeg-RYNM3JM2.js} +7 -7
- package/dist/{figma-4ZKDJA4R.js → figma-PL4YF6AD.js} +3 -3
- package/dist/fontLocalizeCli.js +13 -13
- package/dist/{frames-OFLJT4D5.js → frames-7CHO3XUP.js} +14 -14
- package/dist/{generate-LHRF4A3Z.js → generate-I3UK6VFX.js} +26 -27
- package/dist/{get-56RYQ7KG.js → get-DRFSJ333.js} +8 -9
- package/dist/{gpuPolicy-35XK273G.js → gpuPolicy-OAUKEMJC.js} +7 -7
- package/dist/{grade-compare-GQVODT4T.js → grade-compare-PYDF6Y6J.js} +37 -37
- package/dist/{gsapParserAcorn-5YD4N6HQ.js → gsapParserAcorn-SKGP4R4N.js} +1 -1
- package/dist/{heifImagePrep-7WN2QNQM.js → heifImagePrep-23E67GBA.js} +8 -8
- package/dist/{help-E2TKPNJJ.js → help-N2SPZK4D.js} +1 -1
- package/dist/{history-AJ2MSBW6.js → history-LXYOTFY7.js} +11 -11
- package/dist/hyperframes-player.global.js +2 -2
- package/dist/{info-HV43ZADN.js → info-ENAE5IAD.js} +15 -15
- package/dist/{init-OHVVGDSF.js → init-DMKB6PK6.js} +29 -29
- package/dist/{ink-IESBIGOE.js → ink-ANDD7W6Y.js} +13 -13
- package/dist/{inspect-Y7YS3ILY.js → inspect-2XZYCFMK.js} +34 -34
- package/dist/{installer-AJESSC5Y.js → installer-VPGNKCEU.js} +5 -5
- package/dist/{keyframes-XSL7JGAF.js → keyframes-UKUFE6ZF.js} +15 -12
- package/dist/{lambda-KU65SSVE.js → lambda-T4WMAZZV.js} +13 -13
- package/dist/{layout-ORX7QBGL.js → layout-FX2Q65LB.js} +34 -34
- package/dist/{lint-KUGT5YHK.js → lint-AHORS3BL.js} +12 -12
- package/dist/{lintProject-Z6TG3Z34.js → lintProject-5CBL7VFV.js} +2 -2
- package/dist/{list-EB3WYTHH.js → list-H7F3WXD4.js} +10 -11
- package/dist/{localPage-QLGKJQ6X.js → localPage-UUSOCL7L.js} +7 -7
- package/dist/{login-O5HWEYI4.js → login-6ORXT7JS.js} +7 -8
- package/dist/{logout-AHGR3X5U.js → logout-FJ444652.js} +4 -6
- package/dist/{look-BPSKQDST.js → look-XFA3GQDV.js} +13 -13
- package/dist/{manager-MNOR566P.js → manager-ZGVNWYBK.js} +8 -8
- package/dist/{measure-USYFR5EK.js → measure-WIARVYP6.js} +11 -11
- package/dist/{media-treatment-5YATQA5D.js → media-treatment-L2OD4GAB.js} +15 -15
- package/dist/{media-use-BA245HF5.js → media-use-SYSDJH23.js} +7 -9
- package/dist/{models-ST3IIAN2.js → models-YOGYUKBX.js} +11 -11
- package/dist/{motionShot-DOIU74HO.js → motionShot-II6JZGTO.js} +19 -19
- package/dist/{normalize-audio-PPSCFVKC.js → normalize-audio-L6V6T2XW.js} +11 -11
- package/dist/{open-R2EPWLS6.js → open-BPGKTYYV.js} +14 -14
- package/dist/{parakeetRunner-Q2SYZVYV.js → parakeetRunner-BWX3UQH4.js} +13 -13
- package/dist/{pipeline-NQ4BI2D7.js → pipeline-O3VKDLBZ.js} +10 -10
- package/dist/{play-J3DJBBXW.js → play-NLZ4D4VN.js} +26 -26
- package/dist/{preflight-DLO6LHGO.js → preflight-HEAPQ7N7.js} +8 -8
- package/dist/{present-MIWYYTIE.js → present-XPLUCZ5Z.js} +21 -21
- package/dist/{preview-DEGHLTT6.js → preview-JAWCYDZP.js} +23 -23
- package/dist/{probe-63RJNPIB.js → probe-3AL2MBSY.js} +13 -13
- package/dist/{producer-H7L5TBE4.js → producer-OQETVMJH.js} +1 -1
- package/dist/{projectConfig-GJL2ZGOU.js → projectConfig-UHYPGWD5.js} +7 -7
- package/dist/{publication-BLLVTVD6.js → publication-5KOANEHK.js} +3 -3
- package/dist/{publish-CYPJA7T7.js → publish-C3ARXH6D.js} +23 -83
- package/dist/{refresh-TB4TNH7R.js → refresh-YY4K2RWR.js} +3 -4
- package/dist/{remove-background-KX574FQY.js → remove-background-2SNU7KAA.js} +11 -11
- package/dist/{render-SHUBWBK4.js → render-FFA55SPM.js} +938 -316
- package/dist/{render-N7PKCVEP.js → render-IKHZUOCM.js} +44 -45
- package/dist/{render-RUEXLOWE.js → render-TSV3XTQV.js} +6 -6
- package/dist/{render-batch-QFGQD5FM.js → render-batch-ISMXAG7F.js} +6 -6
- package/dist/renderSetupWorker.js +2 -2
- package/dist/{resolver-HQIDF3TF.js → resolver-ZWNLOG6O.js} +5 -5
- package/dist/{reverse-D2XWX6FV.js → reverse-74KYO2KF.js} +1 -1
- package/dist/{run-EVZGKUEX.js → run-UPKPPRV7.js} +4 -5
- package/dist/{screenshotCapture-4JLD2OQZ.js → screenshotCapture-HBOH5VXI.js} +8 -8
- package/dist/{sherpa-LU5AOQHV.js → sherpa-DBCTQWM3.js} +12 -12
- package/dist/skills/hyperframes-cli/SKILL.md +3 -3
- package/dist/skills/hyperframes-cli/references/preview-render.md +0 -20
- package/dist/{skills-KVQ2G6P5.js → skills-YYOPM674.js} +11 -11
- package/dist/{skillsUpdateCheck-EB54PRMT.js → skillsUpdateCheck-2G4HUWXT.js} +4 -4
- package/dist/{snapshot-QWO6OXG3.js → snapshot-FSN6MIFT.js} +50 -48
- package/dist/{src-WMZX5C4A.js → src-PZKWEQB3.js} +12 -12
- package/dist/{src-I3B7LYZM.js → src-W2OMGCC2.js} +6 -6
- package/dist/{start-ACVZUBZX.js → start-BC3LQ6XM.js} +24 -25
- package/dist/{staticProjectServer-C6KEOAYY.js → staticProjectServer-NOC42RG6.js} +19 -19
- package/dist/{status-RYI42XDB.js → status-GAMGQR6J.js} +18 -20
- package/dist/studio/assets/{codec-D6qbrtZY.js → codec-DqZyhFXM.js} +1 -1
- package/dist/studio/assets/{hyperframes-player-BVe9IO80.js → hyperframes-player-aBBb_UoJ.js} +2 -2
- package/dist/studio/assets/{index-BZu8x7Q5.js → index-CceqlOsz.js} +1 -1
- package/dist/studio/assets/{index-Cq2w6U13.css → index-dsfjBidg.css} +1 -1
- package/dist/studio/assets/{index-Cl9fSd9I.js → index-nztwvLTw.js} +184 -184
- package/dist/studio/assets/{pausedVideoDecoder-DfnHfnL7.js → pausedVideoDecoder-CwC0h32O.js} +1 -1
- package/dist/studio/index.html +2 -2
- package/dist/{studio-api-RBURPKYX.js → studio-api-2I44WB4P.js} +14 -14
- package/dist/{studioServer-J5DYNR6R.js → studioServer-YOES7J26.js} +83 -434
- package/dist/{sync-MUKE7NSP.js → sync-SAFSREBK.js} +13 -13
- package/dist/{telemetry-6MDOWNLT.js → telemetry-JKUAFRWX.js} +8 -8
- package/dist/{templates-LWPXN7M2.js → templates-T63OMFEN.js} +18 -19
- package/dist/{timeline-WTBC3J7O.js → timeline-4WIGTZRE.js} +21 -21
- package/dist/{tokens-4NPCCANL.js → tokens-JK3XREP4.js} +2 -2
- package/dist/{transcribe-RL7LGXU6.js → transcribe-APCPBJXE.js} +10 -10
- package/dist/{transcribe-NZJPYTM7.js → transcribe-DWCOZPAN.js} +28 -29
- package/dist/{tts-NANTORLP.js → tts-HOZ6X3MD.js} +1 -1
- package/dist/{update-DZCGNNOU.js → update-I3DN6NUV.js} +12 -12
- package/dist/{updateCheck-N3C56RNJ.js → updateCheck-5C2PHZ24.js} +3 -3
- package/dist/{upgrade-RCV7ZF5Z.js → upgrade-KBMPHPSY.js} +4 -4
- package/dist/{urlDownloader-SSPDDS4Y.js → urlDownloader-T5UKNPTJ.js} +6 -6
- package/dist/{validate-HQDRN6T3.js → validate-YNITWYCF.js} +28 -28
- package/dist/{video-FPDBQAXL.js → video-JRQOXAZ2.js} +8 -8
- package/dist/{voices-PMLIXQT4.js → voices-7QS4D5EP.js} +23 -24
- package/dist/warmCheck.js +44 -43
- package/package.json +1 -2
- package/dist/chunk-DDCFX533.js +0 -387
- package/dist/chunk-EKT2P27A.js +0 -538
- package/dist/chunk-F2FRUMWN.js +0 -3699
- package/dist/chunk-JE2YBPC5.js +0 -152
- package/dist/chunk-U2NESB4H.js +0 -173
- package/dist/chunk-USTPTY7P.js +0 -51
- package/dist/chunk-VHXIMBTF.js +0 -343
- package/dist/contract/LICENSE-Unicode.txt +0 -39
- package/dist/contract/path-policy.json +0 -311
- package/dist/contract/unicode-15.1.0.json +0 -6179
- package/dist/execute-GFHAD3L6.js +0 -109
- package/dist/oauth-KUPQUH6E.js +0 -40
- package/dist/plan-CN2TTIAA.js +0 -88
- package/dist/service-L3K45WOD.js +0 -68
- package/dist/share-7G44HDSY.js +0 -226
- package/dist/{destroy-IWHFUGJL.js → destroy-YAMTVR2W.js} +4 -4
- package/dist/{synthesize-NJKCIPKW.js → synthesize-MDW4ZWTN.js} +5 -5
package/dist/chunk-JE2YBPC5.js
DELETED
|
@@ -1,152 +0,0 @@
|
|
|
1
|
-
import { createRequire as __hf_createRequire } from "node:module";
|
|
2
|
-
import { fileURLToPath as __hf_fileURLToPath } from "node:url";
|
|
3
|
-
import { dirname as __hf_dirname } from "node:path";
|
|
4
|
-
var require = __hf_createRequire(import.meta.url);
|
|
5
|
-
var __filename = __hf_fileURLToPath(import.meta.url);
|
|
6
|
-
var __dirname = __hf_dirname(__filename);
|
|
7
|
-
import {
|
|
8
|
-
apiBaseUrl,
|
|
9
|
-
isHeaderSafe,
|
|
10
|
-
readStore
|
|
11
|
-
} from "./chunk-WXEXQLVV.js";
|
|
12
|
-
import {
|
|
13
|
-
ErrInvalidStore,
|
|
14
|
-
ErrLoginExpired,
|
|
15
|
-
ErrNotConfigured,
|
|
16
|
-
assertOAuthIdentity,
|
|
17
|
-
isAuthError
|
|
18
|
-
} from "./chunk-FID757D3.js";
|
|
19
|
-
|
|
20
|
-
// src/auth/resolver.ts
|
|
21
|
-
var ENV_CREDENTIAL_VAR = {
|
|
22
|
-
env: "HEYGEN_API_KEY",
|
|
23
|
-
env_alias: "HYPERFRAMES_API_KEY",
|
|
24
|
-
env_oauth: "HEYGEN_ACCESS_TOKEN"
|
|
25
|
-
};
|
|
26
|
-
var envCredentialVar = (source) => source in ENV_CREDENTIAL_VAR ? ENV_CREDENTIAL_VAR[source] : void 0;
|
|
27
|
-
var EXPIRY_SKEW_MS = 60 * 1e3;
|
|
28
|
-
async function resolveCredential(opts = {}) {
|
|
29
|
-
const now = (opts.now ?? (() => /* @__PURE__ */ new Date()))();
|
|
30
|
-
const envKey = envApiKey();
|
|
31
|
-
if (envKey && !heygenApiHost()) return envKey;
|
|
32
|
-
const accessToken = headerSafeEnv(ENV_CREDENTIAL_VAR.env_oauth);
|
|
33
|
-
if (accessToken) {
|
|
34
|
-
return { type: "oauth", access_token: accessToken, source: "env_oauth", refreshable: false };
|
|
35
|
-
}
|
|
36
|
-
if (envKey && loginRefreshFailed) return envKey;
|
|
37
|
-
return await fromStore(now, envKey);
|
|
38
|
-
}
|
|
39
|
-
async function fromStore(now, envKey) {
|
|
40
|
-
const store = await readStore().catch((err) => {
|
|
41
|
-
if (envKey) return null;
|
|
42
|
-
throw err;
|
|
43
|
-
});
|
|
44
|
-
if (!store || store.source === "absent") {
|
|
45
|
-
if (envKey) return envKey;
|
|
46
|
-
throw ErrNotConfigured();
|
|
47
|
-
}
|
|
48
|
-
const { credentials, source } = store;
|
|
49
|
-
const fileSource = source === "file_legacy" ? "file_legacy" : "file_json";
|
|
50
|
-
const login = credentials.oauth && boundToThisClient(credentials.oauth) ? pickOAuth(credentials.oauth, now, fileSource) : null;
|
|
51
|
-
return login ?? envKey ?? storedApiKey(credentials, fileSource);
|
|
52
|
-
}
|
|
53
|
-
function storedApiKey(credentials, source) {
|
|
54
|
-
if (credentials.oauth) {
|
|
55
|
-
assertOAuthIdentity(credentials.oauth);
|
|
56
|
-
throw ErrLoginExpired();
|
|
57
|
-
}
|
|
58
|
-
if (credentials.api_key) return { type: "api_key", key: credentials.api_key, source };
|
|
59
|
-
throw ErrNotConfigured();
|
|
60
|
-
}
|
|
61
|
-
function envApiKey() {
|
|
62
|
-
const heygenEnv = headerSafeEnv(ENV_CREDENTIAL_VAR.env);
|
|
63
|
-
if (heygenEnv) return { type: "api_key", key: heygenEnv, source: "env" };
|
|
64
|
-
const hfEnv = headerSafeEnv(ENV_CREDENTIAL_VAR.env_alias);
|
|
65
|
-
if (hfEnv) return { type: "api_key", key: hfEnv, source: "env_alias" };
|
|
66
|
-
return void 0;
|
|
67
|
-
}
|
|
68
|
-
function heygenApiHost() {
|
|
69
|
-
const mediaBase = process.env["HEYGEN_API_BASE"]?.trim();
|
|
70
|
-
return [apiBaseUrl(), ...mediaBase ? [mediaBase] : []].every((base) => {
|
|
71
|
-
try {
|
|
72
|
-
const host = new URL(base).hostname;
|
|
73
|
-
return host === "heygen.com" || host.endsWith(".heygen.com");
|
|
74
|
-
} catch {
|
|
75
|
-
return false;
|
|
76
|
-
}
|
|
77
|
-
});
|
|
78
|
-
}
|
|
79
|
-
function boundToThisClient(tokens) {
|
|
80
|
-
try {
|
|
81
|
-
assertOAuthIdentity(tokens);
|
|
82
|
-
return true;
|
|
83
|
-
} catch {
|
|
84
|
-
return false;
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
var loginRefreshFailed = false;
|
|
88
|
-
async function afterRefreshFailure(err, refreshToken) {
|
|
89
|
-
if (!isAuthError(err)) throw err;
|
|
90
|
-
if (err.code === "LOGIN_CHANGED" || err.code === "REFRESH_FAILED") {
|
|
91
|
-
const stored = await readStore().catch(() => null);
|
|
92
|
-
const current = stored?.credentials.oauth?.refresh_token;
|
|
93
|
-
if (current && current !== refreshToken) {
|
|
94
|
-
const next = await resolveCredential();
|
|
95
|
-
if (next.type !== "oauth" || !next.refreshable) return next;
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
if (!err.refused && err.code !== "LOGIN_EXPIRED") throw err;
|
|
99
|
-
const key = envApiKey();
|
|
100
|
-
if (!key) throw err;
|
|
101
|
-
loginRefreshFailed = true;
|
|
102
|
-
return key;
|
|
103
|
-
}
|
|
104
|
-
function headerSafeEnv(name) {
|
|
105
|
-
const value = process.env[name];
|
|
106
|
-
if (value && !isHeaderSafe(value)) {
|
|
107
|
-
throw ErrInvalidStore(`${name} contains control characters`);
|
|
108
|
-
}
|
|
109
|
-
return value;
|
|
110
|
-
}
|
|
111
|
-
async function tryResolveCredential(opts = {}) {
|
|
112
|
-
try {
|
|
113
|
-
return await resolveCredential(opts);
|
|
114
|
-
} catch (err) {
|
|
115
|
-
if (isAuthError(err) && err.code === "NOT_CONFIGURED") {
|
|
116
|
-
return null;
|
|
117
|
-
}
|
|
118
|
-
throw err;
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
function pickOAuth(tokens, now, source) {
|
|
122
|
-
const expiresAt = parseDate(tokens.expires_at);
|
|
123
|
-
const expired = isTokenExpired(expiresAt, now);
|
|
124
|
-
if (expired && !tokens.refresh_token) return null;
|
|
125
|
-
const out = {
|
|
126
|
-
type: "oauth",
|
|
127
|
-
access_token: tokens.access_token,
|
|
128
|
-
source,
|
|
129
|
-
refreshable: expired && tokens.refresh_token !== void 0
|
|
130
|
-
};
|
|
131
|
-
if (tokens.refresh_token) out.refresh_token = tokens.refresh_token;
|
|
132
|
-
if (expiresAt) out.expires_at = expiresAt;
|
|
133
|
-
if (tokens.scope) out.scope = tokens.scope;
|
|
134
|
-
return out;
|
|
135
|
-
}
|
|
136
|
-
function isTokenExpired(expiresAt, now) {
|
|
137
|
-
return expiresAt !== void 0 && expiresAt.getTime() - EXPIRY_SKEW_MS < now.getTime();
|
|
138
|
-
}
|
|
139
|
-
function parseDate(s) {
|
|
140
|
-
if (!s) return void 0;
|
|
141
|
-
const d = new Date(s);
|
|
142
|
-
return Number.isNaN(d.getTime()) ? void 0 : d;
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
export {
|
|
146
|
-
ENV_CREDENTIAL_VAR,
|
|
147
|
-
envCredentialVar,
|
|
148
|
-
resolveCredential,
|
|
149
|
-
afterRefreshFailure,
|
|
150
|
-
tryResolveCredential,
|
|
151
|
-
isTokenExpired
|
|
152
|
-
};
|
package/dist/chunk-U2NESB4H.js
DELETED
|
@@ -1,173 +0,0 @@
|
|
|
1
|
-
import { createRequire as __hf_createRequire } from "node:module";
|
|
2
|
-
import { fileURLToPath as __hf_fileURLToPath } from "node:url";
|
|
3
|
-
import { dirname as __hf_dirname } from "node:path";
|
|
4
|
-
var require = __hf_createRequire(import.meta.url);
|
|
5
|
-
var __filename = __hf_fileURLToPath(import.meta.url);
|
|
6
|
-
var __dirname = __hf_dirname(__filename);
|
|
7
|
-
import {
|
|
8
|
-
shouldTrack
|
|
9
|
-
} from "./chunk-PWW2DKGL.js";
|
|
10
|
-
|
|
11
|
-
// src/telemetry/renderObservability.ts
|
|
12
|
-
function renderObservabilityTelemetryPayload(observability) {
|
|
13
|
-
if (!observability) return {};
|
|
14
|
-
const diagnostics = observability.browserDiagnostics;
|
|
15
|
-
const capture = observability.capture;
|
|
16
|
-
const extraction = observability.extraction;
|
|
17
|
-
const init = observability.init;
|
|
18
|
-
return {
|
|
19
|
-
observabilityRenderJobId: observability.renderJobId,
|
|
20
|
-
observabilityCompositionHash: observability.compositionHash,
|
|
21
|
-
observabilityEventCount: observability.eventCount,
|
|
22
|
-
observabilityLastPhase: observability.lastEvent?.phase,
|
|
23
|
-
observabilityLastStatus: observability.lastEvent?.status,
|
|
24
|
-
observabilityFailedPhase: observability.failedPhase,
|
|
25
|
-
browserDiagnosticCount: diagnostics.total,
|
|
26
|
-
browserDiagnosticErrors: diagnostics.errors,
|
|
27
|
-
browserDiagnosticPageErrors: diagnostics.pageErrors,
|
|
28
|
-
browserDiagnosticRequestFailed: diagnostics.requestFailed,
|
|
29
|
-
browserDiagnosticHttpErrors: diagnostics.httpErrors,
|
|
30
|
-
browserDiagnosticNavigationStarts: diagnostics.navigationStarts,
|
|
31
|
-
browserDiagnosticNavigationFailures: diagnostics.navigationFailures,
|
|
32
|
-
browserDiagnosticConsoleErrors: diagnostics.consoleErrors,
|
|
33
|
-
browserDiagnosticConsoleWarnings: diagnostics.consoleWarnings,
|
|
34
|
-
captureMode: capture.captureMode,
|
|
35
|
-
captureForceScreenshot: capture.forceScreenshot,
|
|
36
|
-
captureWorkerCount: capture.workerCount,
|
|
37
|
-
captureUseStreamingEncode: capture.useStreamingEncode,
|
|
38
|
-
captureUseLayeredComposite: capture.useLayeredComposite,
|
|
39
|
-
captureUsePageSideCompositing: capture.usePageSideCompositing,
|
|
40
|
-
captureHasHdrContent: capture.hasHdrContent,
|
|
41
|
-
captureBrowserGpuMode: capture.browserGpuMode,
|
|
42
|
-
captureProtocolTimeoutMs: capture.protocolTimeoutMs,
|
|
43
|
-
capturePageNavigationTimeoutMs: capture.pageNavigationTimeoutMs,
|
|
44
|
-
capturePlayerReadyTimeoutMs: capture.playerReadyTimeoutMs,
|
|
45
|
-
captureTransientRetries: capture.transientRetries,
|
|
46
|
-
captureMemoryExhaustionDetected: capture.memoryExhaustionDetected,
|
|
47
|
-
captureDeWorkerInversion: capture.deWorkerInversion,
|
|
48
|
-
captureDePreInversionWorkers: capture.dePreInversionWorkers,
|
|
49
|
-
captureCompositionElementCount: capture.compositionElementCount,
|
|
50
|
-
captureCompositionElementCountSource: capture.compositionElementCountSource,
|
|
51
|
-
captureCompositionElementTags: capture.compositionElementTags,
|
|
52
|
-
captureArollVideoCount: capture.arollVideoCount,
|
|
53
|
-
captureHeygenVideoCount: capture.heygenVideoCount,
|
|
54
|
-
captureAdaptersUsed: capture.adaptersUsed,
|
|
55
|
-
captureAudioCount: capture.audioCount,
|
|
56
|
-
captureImageCount: capture.imageCount,
|
|
57
|
-
captureSubCompositionCount: capture.subCompositionCount,
|
|
58
|
-
captureAudioGroupCount: capture.audioGroupCount,
|
|
59
|
-
captureColorGradingCount: capture.colorGradingCount,
|
|
60
|
-
captureHasLut: capture.hasLut,
|
|
61
|
-
captureRootBodyMismatch: capture.rootBodyMismatch,
|
|
62
|
-
captureRootBodyDeltaPxBucket: capture.rootBodyDeltaPxBucket,
|
|
63
|
-
captureDeShortBand: capture.deShortBand,
|
|
64
|
-
captureDeParallelRouter: capture.deParallelRouter,
|
|
65
|
-
captureDeGpuRenderer: capture.deGpuRenderer,
|
|
66
|
-
captureDePreRouterWorkers: capture.dePreRouterWorkers,
|
|
67
|
-
captureDeSelfVerifyFallback: capture.deSelfVerifyFallback,
|
|
68
|
-
captureDeFallbackReason: capture.deFallbackReason,
|
|
69
|
-
captureDeFallbackFailedDb: capture.deFallbackFailedDb,
|
|
70
|
-
captureDeFallbackFrameIndex: capture.deFallbackFrameIndex,
|
|
71
|
-
captureDeFallbackThresholdDb: capture.deFallbackThresholdDb,
|
|
72
|
-
captureParallelStream: capture.captureParallelStream,
|
|
73
|
-
captureChromeBrowserRssPeakMb: capture.chromeBrowserRssPeakMb,
|
|
74
|
-
captureChromeRendererRssPeakMb: capture.chromeRendererRssPeakMb,
|
|
75
|
-
captureChromeRssLastMb: capture.chromeRssLastMb,
|
|
76
|
-
captureChromeGpuProcessSeenLastSample: capture.chromeGpuProcessSeenLastSample,
|
|
77
|
-
captureChromeMemorySamples: capture.chromeMemorySamples,
|
|
78
|
-
captureCapturePath: capture.capturePath,
|
|
79
|
-
captureSegmentIndex: capture.segmentIndex,
|
|
80
|
-
captureSegmentRetries: capture.segmentRetries,
|
|
81
|
-
observabilityExtractVideoCount: extraction?.videoCount,
|
|
82
|
-
observabilityExtractedVideoCount: extraction?.extractedVideoCount,
|
|
83
|
-
observabilityExtractTotalFrames: extraction?.totalFramesExtracted,
|
|
84
|
-
observabilityExtractMaxFramesPerVideo: extraction?.maxFramesPerVideo,
|
|
85
|
-
observabilityExtractAvgFramesPerVideo: extraction?.avgFramesPerExtractedVideo,
|
|
86
|
-
observabilityExtractVfrProbeMs: extraction?.vfrProbeMs,
|
|
87
|
-
observabilityExtractVfrPreflightMs: extraction?.vfrPreflightMs,
|
|
88
|
-
observabilityExtractVfrPreflightCount: extraction?.vfrPreflightCount,
|
|
89
|
-
observabilityExtractCacheHits: extraction?.cacheHits,
|
|
90
|
-
observabilityExtractCacheMisses: extraction?.cacheMisses,
|
|
91
|
-
observabilityInitDurationMs: init?.initDurationMs,
|
|
92
|
-
observabilityInitTweenCount: init?.tweenCount,
|
|
93
|
-
observabilityInitElementCount: init?.elementCount
|
|
94
|
-
};
|
|
95
|
-
}
|
|
96
|
-
function renderJobObservabilityTelemetryPayload(job) {
|
|
97
|
-
return {
|
|
98
|
-
...renderObservabilityTelemetryPayload(
|
|
99
|
-
job?.errorDetails?.observability ?? job?.perfSummary?.observability
|
|
100
|
-
),
|
|
101
|
-
subTimelineWait: job?.errorDetails?.subTimelineWait ?? job?.perfSummary?.subTimelineWait
|
|
102
|
-
};
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
// src/telemetry/renderCpu.ts
|
|
106
|
-
import { cpus, loadavg, platform } from "os";
|
|
107
|
-
var SAMPLE_INTERVAL_MS = 2e3;
|
|
108
|
-
var BUSY_CORE_PCT = 80;
|
|
109
|
-
function readCoreTimes() {
|
|
110
|
-
return cpus().map(({ times }) => {
|
|
111
|
-
const total = times.user + times.nice + times.sys + times.idle + times.irq;
|
|
112
|
-
return { busy: total - times.idle, total };
|
|
113
|
-
});
|
|
114
|
-
}
|
|
115
|
-
function busyBetween(from, to) {
|
|
116
|
-
let busy = 0;
|
|
117
|
-
let total = 0;
|
|
118
|
-
let coresBusy = 0;
|
|
119
|
-
to.forEach((core, i) => {
|
|
120
|
-
const before = from[i];
|
|
121
|
-
if (!before) return;
|
|
122
|
-
const dBusy = core.busy - before.busy;
|
|
123
|
-
const dTotal = core.total - before.total;
|
|
124
|
-
if (dTotal <= 0) return;
|
|
125
|
-
busy += dBusy;
|
|
126
|
-
total += dTotal;
|
|
127
|
-
if (dBusy / dTotal * 100 >= BUSY_CORE_PCT) coresBusy++;
|
|
128
|
-
});
|
|
129
|
-
return total > 0 ? { pct: Math.round(busy / total * 100), coresBusy } : null;
|
|
130
|
-
}
|
|
131
|
-
function readLoadAvg() {
|
|
132
|
-
if (platform() === "win32") return void 0;
|
|
133
|
-
return Math.round((loadavg()[0] ?? 0) * 100) / 100;
|
|
134
|
-
}
|
|
135
|
-
var DISABLED = { stop: () => ({}) };
|
|
136
|
-
function startRenderCpuSampler(requesterOptedIn = true) {
|
|
137
|
-
if (!requesterOptedIn || !shouldTrack()) return DISABLED;
|
|
138
|
-
const start = readCoreTimes();
|
|
139
|
-
const loadAvgStart = readLoadAvg();
|
|
140
|
-
let last = start;
|
|
141
|
-
let peak = null;
|
|
142
|
-
const sample = () => {
|
|
143
|
-
const now = readCoreTimes();
|
|
144
|
-
const window = busyBetween(last, now);
|
|
145
|
-
if (window && (!peak || window.pct > peak.pct)) peak = window;
|
|
146
|
-
last = now;
|
|
147
|
-
};
|
|
148
|
-
const timer = setInterval(sample, SAMPLE_INTERVAL_MS);
|
|
149
|
-
timer.unref?.();
|
|
150
|
-
let result;
|
|
151
|
-
return {
|
|
152
|
-
stop() {
|
|
153
|
-
if (result) return result;
|
|
154
|
-
clearInterval(timer);
|
|
155
|
-
sample();
|
|
156
|
-
const avg = busyBetween(start, last);
|
|
157
|
-
result = {
|
|
158
|
-
cpuBusyAvgPct: avg?.pct,
|
|
159
|
-
cpuBusyPeakPct: peak?.pct,
|
|
160
|
-
cpuCoresBusyPeak: peak?.coresBusy,
|
|
161
|
-
loadAvgStart,
|
|
162
|
-
loadAvgEnd: readLoadAvg()
|
|
163
|
-
};
|
|
164
|
-
return result;
|
|
165
|
-
}
|
|
166
|
-
};
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
export {
|
|
170
|
-
renderObservabilityTelemetryPayload,
|
|
171
|
-
renderJobObservabilityTelemetryPayload,
|
|
172
|
-
startRenderCpuSampler
|
|
173
|
-
};
|
package/dist/chunk-USTPTY7P.js
DELETED
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import { createRequire as __hf_createRequire } from "node:module";
|
|
2
|
-
import { fileURLToPath as __hf_fileURLToPath } from "node:url";
|
|
3
|
-
import { dirname as __hf_dirname } from "node:path";
|
|
4
|
-
var require = __hf_createRequire(import.meta.url);
|
|
5
|
-
var __filename = __hf_fileURLToPath(import.meta.url);
|
|
6
|
-
var __dirname = __hf_dirname(__filename);
|
|
7
|
-
import {
|
|
8
|
-
ReviewFailed,
|
|
9
|
-
ShareSourceError,
|
|
10
|
-
reviewSentence
|
|
11
|
-
} from "./chunk-F2FRUMWN.js";
|
|
12
|
-
import {
|
|
13
|
-
isAuthError
|
|
14
|
-
} from "./chunk-FID757D3.js";
|
|
15
|
-
import {
|
|
16
|
-
CliUsageError
|
|
17
|
-
} from "./chunk-66W5IWLO.js";
|
|
18
|
-
|
|
19
|
-
// src/share/errors.ts
|
|
20
|
-
var HINTS = {
|
|
21
|
-
review_upload_origins_required: "Review video storage is not configured. Set HYPERFRAMES_REVIEW_UPLOAD_ORIGINS to the exact storage origins provided by your deployment.",
|
|
22
|
-
review_project_limit_reached: "Your workspace has used its five free shared projects. Update an existing share, or manage and remove one to free a slot. Turning a link off does not free a slot.",
|
|
23
|
-
review_subscription_required: "That sharing option is not included in this workspace's plan. Choose an available audience explicitly or manage your plan.",
|
|
24
|
-
workspace_mismatch: "This folder already shares into another workspace. Manage the existing share instead of changing its identity.",
|
|
25
|
-
review_binding_changed: "The review linked to this folder changed. Run hyperframes share --status before trying again.",
|
|
26
|
-
manage_existing_audience: "Manage this existing share to change its audience. Copying or updating a share preserves its settings.",
|
|
27
|
-
not_shared: "This project has no shared review yet. Run hyperframes share with an explicit audience."
|
|
28
|
-
};
|
|
29
|
-
function shareError(error) {
|
|
30
|
-
if (error instanceof CliUsageError) return { code: error.code, message: error.message };
|
|
31
|
-
if (error instanceof ShareSourceError)
|
|
32
|
-
return { code: "source_unavailable", message: error.message };
|
|
33
|
-
if (isAuthError(error))
|
|
34
|
-
return {
|
|
35
|
-
code: error.code.toLowerCase(),
|
|
36
|
-
message: `${error.message} ${error.hint ?? ""}`.trim()
|
|
37
|
-
};
|
|
38
|
-
if (error instanceof ReviewFailed)
|
|
39
|
-
return {
|
|
40
|
-
code: error.status === 401 ? "login_expired" : error.reason || "share_failed",
|
|
41
|
-
message: HINTS[error.reason] ?? reviewSentence(error)
|
|
42
|
-
};
|
|
43
|
-
return {
|
|
44
|
-
code: "share_failed",
|
|
45
|
-
message: error instanceof Error ? error.message : "Sharing failed. Try again."
|
|
46
|
-
};
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
export {
|
|
50
|
-
shareError
|
|
51
|
-
};
|