hyperframes 0.9.9 → 0.9.11
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 +9 -0
- package/dist/{add-FQX5F6PC.js → add-IAFJH5RC.js} +6 -6
- package/dist/{agentPromptGenerator-XNGPKVEX.js → agentPromptGenerator-S3GWYMVC.js} +1 -1
- package/dist/{animatedGifPrep-E3PYKFJ3.js → animatedGifPrep-YU7IOD5D.js} +1 -1
- package/dist/api.js +10 -10
- package/dist/{asset-X5GG5TTP.js → asset-UR4PH6KJ.js} +2 -2
- package/dist/{assetCataloger-SDFP4DWL.js → assetCataloger-VKJIQCYP.js} +1 -1
- package/dist/{audio-DDTYFS23.js → audio-HZJ7QZQR.js} +9 -9
- package/dist/{auth-OAWLDT3A.js → auth-UBNAW62X.js} +2 -2
- package/dist/{autoUpdate-BWIPXW2W.js → autoUpdate-DDFTFHRP.js} +3 -3
- package/dist/{backgroundChecks-YJ5NRMBA.js → backgroundChecks-H3TNVYJV.js} +4 -4
- package/dist/backgroundChecksWorker.js +4 -4
- package/dist/{beats-Q2TIAA7S.js → beats-HOIQSFFP.js} +6 -6
- package/dist/{benchmark-I3GRHFIN.js → benchmark-ZYOQV7DK.js} +7 -7
- package/dist/billing-5YSYJJ2V.js +142 -0
- package/dist/{browser-F24WMZ52.js → browser-PLFK53IZ.js} +4 -4
- package/dist/{bundleWithLocalizedFonts-K5CQPNIZ.js → bundleWithLocalizedFonts-TH5SLG6O.js} +2 -2
- package/dist/{capture-UKWY3SZQ.js → capture-MICLAF6V.js} +13 -13
- package/dist/{capture-HLC6I4RE.js → capture-R77HOGLQ.js} +3 -3
- package/dist/{captureCompositionFrame-YMB3CKSP.js → captureCompositionFrame-WBMFZHEF.js} +4 -4
- package/dist/{catalog-H7SOITD6.js → catalog-CGT32566.js} +6 -6
- package/dist/{catch-up-YRGPVEM6.js → catch-up-TMYPXRKC.js} +5 -5
- package/dist/{check-BPQZZ2MO.js → check-4O5J4OWS.js} +23 -23
- package/dist/{checkAudio-4NRQ3WGS.js → checkAudio-AAVDZFIQ.js} +3 -3
- package/dist/{checkBrowser-S66AHKW3.js → checkBrowser-3OCZBJC7.js} +19 -17
- package/dist/{chunk-BYC4C4YY.js → chunk-2VYAX3ZD.js} +2 -2
- package/dist/{chunk-GIYZMGYT.js → chunk-2VZVMCV6.js} +1 -1
- package/dist/{chunk-322AG75G.js → chunk-33K2UZBX.js} +2 -2
- package/dist/{chunk-5YIZRU2L.js → chunk-37537KOL.js} +4 -4
- package/dist/{chunk-NX2X326Z.js → chunk-4ILKN2MX.js} +8 -8
- package/dist/{chunk-NCP3JQ6S.js → chunk-4J4EGANW.js} +2 -2
- package/dist/{chunk-TZBJEKKU.js → chunk-4YCNVKJX.js} +194 -17
- package/dist/{chunk-2ROPUTCS.js → chunk-6DHC3MVK.js} +2 -2
- package/dist/{chunk-BX2JB24X.js → chunk-6JDNEQV5.js} +1 -1
- package/dist/{chunk-6HO6QKYG.js → chunk-6R2PED3X.js} +6 -6
- package/dist/{chunk-DIKIN4BA.js → chunk-6Y7WZTHJ.js} +54 -38
- package/dist/{chunk-HBHLCMOQ.js → chunk-7ZBMUKHY.js} +2 -2
- package/dist/chunk-AHLDGEH5.js +158 -0
- package/dist/{chunk-6DKWOG7L.js → chunk-BBMMVLA3.js} +1 -1
- package/dist/{chunk-BLBMPEBX.js → chunk-BONBJJ35.js} +1 -0
- package/dist/{chunk-63GTSNMY.js → chunk-CD65TPHT.js} +1 -1
- package/dist/{chunk-HUJMTTKR.js → chunk-CN3Q4CDK.js} +43 -27
- package/dist/{chunk-2Y575PWJ.js → chunk-DI3ZFBZ3.js} +1 -1
- package/dist/{chunk-NNF6G2UH.js → chunk-EL2DMHA5.js} +1 -1
- package/dist/{chunk-B5GWDPUO.js → chunk-EPCVE3OX.js} +2 -2
- package/dist/{chunk-6UZLHLFP.js → chunk-FC4WF2VQ.js} +1 -1
- package/dist/{chunk-4W5X4S47.js → chunk-H7H7XNYY.js} +88 -28
- package/dist/{chunk-JZPUXDQE.js → chunk-HY64QA63.js} +1 -1
- package/dist/{chunk-AH6MUQQC.js → chunk-I4XTKG2B.js} +2 -2
- package/dist/{skills-EBVQSIK4.js → chunk-IMK55N3Z.js} +46 -38
- package/dist/{chunk-VNR7LSN4.js → chunk-IQ5OMRLK.js} +39 -41
- package/dist/{chunk-PPMCILED.js → chunk-JS6ZTPYC.js} +4 -4
- package/dist/{chunk-V74HSKGY.js → chunk-JT2ZGKKB.js} +2 -2
- package/dist/{chunk-2NGBIAUF.js → chunk-KNOIX2U5.js} +220 -177
- package/dist/{chunk-MY4PAH7C.js → chunk-LWFXO732.js} +1 -1
- package/dist/{upgrade-ZUWFB2QM.js → chunk-MZHCA5KY.js} +65 -27
- package/dist/{chunk-EN6MPNZT.js → chunk-NQYW4IYN.js} +2 -2
- package/dist/{chunk-H534266X.js → chunk-OKD2LP73.js} +1 -1
- package/dist/{chunk-A2NFFVWH.js → chunk-OQGA4QBD.js} +18 -6
- package/dist/{chunk-UWYHZCEQ.js → chunk-OQHC5YIB.js} +2 -2
- package/dist/{chunk-BHL4KN3H.js → chunk-PKLZ5PV2.js} +1 -1
- package/dist/{chunk-OYAZODSP.js → chunk-QM4OL5MZ.js} +16 -11
- package/dist/{chunk-BBP5KGYS.js → chunk-SUM3VFPQ.js} +2 -2
- package/dist/{chunk-CNX3WKQ5.js → chunk-T4ELNOK6.js} +1 -1
- package/dist/{chunk-VZ5O7A77.js → chunk-V6HV2IDT.js} +5 -2
- package/dist/{chunk-BXYB5NGT.js → chunk-VWUUNGSV.js} +1 -1
- package/dist/{chunk-CBPBTQBH.js → chunk-WJ7E5J77.js} +11 -10
- package/dist/{chunk-62ATHBDS.js → chunk-YJZYUXHQ.js} +1 -1
- package/dist/{chunk-TJ2USKCK.js → chunk-ZUACTOAB.js} +1 -1
- package/dist/{clean-RCXKQNFM.js → clean-2FWZPS4J.js} +9 -9
- package/dist/cli.js +61 -60
- package/dist/{cloud-TQPQZRC5.js → cloud-2UFI7NLD.js} +4 -4
- package/dist/cloud-Z3FNCC4T.js +1 -1
- package/dist/{compare-EO32AASM.js → compare-HKRLSFTU.js} +15 -15
- package/dist/{compiler-NAIDMQFU.js → compiler-KKIYPREA.js} +1 -1
- package/dist/{component-S3TYNVCR.js → component-F43F3363.js} +3 -3
- package/dist/{compositions-4TXRLZ3M.js → compositions-FFXCISLD.js} +7 -7
- package/dist/{curve-HGLOP2GY.js → curve-RHSJUG5P.js} +5 -5
- package/dist/{cuts-VNFIISLL.js → cuts-KVFY3U6C.js} +5 -5
- package/dist/{delete-TIWI3G7X.js → delete-O7IZKKUN.js} +4 -4
- package/dist/{deploy-EHPNOGSY.js → deploy-PZAAUW75.js} +8 -8
- package/dist/{describeProject-DN6YQU3X.js → describeProject-E44RWBJL.js} +1 -1
- package/dist/{diff-46JK5ZCL.js → diff-OMNILRNN.js} +21 -19
- package/dist/{dist-CCPYPKOC.js → dist-PUHEYGA5.js} +3 -3
- package/dist/{doctor-LD23DW4N.js → doctor-4HZN7ZVI.js} +10 -6
- package/dist/{energy-YZ3DB6AI.js → energy-N3ZIPHTP.js} +5 -5
- package/dist/{events-3OWNDNJX.js → events-56A5D6DK.js} +4 -4
- package/dist/{events-MQIKCKA5.js → events-TUTAERAN.js} +6 -6
- package/dist/{events-DRTMYSQ6.js → events-VAJ4Y6XF.js} +3 -3
- package/dist/{extract-F3NBE3X5.js → extract-NJMZEOLG.js} +6 -6
- package/dist/{face-ZU7ZDYGO.js → face-KLV4W6CP.js} +5 -5
- package/dist/{feedback-37M37Y4F.js → feedback-4VEKGVLN.js} +5 -5
- package/dist/{ffmpeg-PERZ6YHQ.js → ffmpeg-A2O4HSRD.js} +1 -1
- package/dist/{figma-55AG42NN.js → figma-6XDKKOA6.js} +3 -3
- package/dist/fontLocalizeCli.js +3 -3
- package/dist/{frames-DJA3CFSY.js → frames-IAMGMNCA.js} +5 -5
- package/dist/{generate-BVJ5XNWP.js → generate-FMATRA3L.js} +11 -9
- package/dist/{get-PGLCWEBG.js → get-JKA3APWR.js} +4 -4
- package/dist/{gpuPolicy-DUNSQM6M.js → gpuPolicy-TKHFDEH2.js} +2 -2
- package/dist/{grade-compare-R6Q6G6WP.js → grade-compare-TCLCDUG5.js} +14 -14
- package/dist/{heifImagePrep-YNPHFR6W.js → heifImagePrep-L2EY67F2.js} +1 -1
- package/dist/{help-4SNDXHWQ.js → help-TWDOQJDN.js} +3 -2
- package/dist/{history-NKRHKIE2.js → history-SOWVZUAB.js} +7 -7
- package/dist/hyperframes-player.global.js +1 -1
- package/dist/{info-U4VDKU2Y.js → info-JDINBZLH.js} +6 -6
- package/dist/{init-2RUVBHQO.js → init-ACNL6AFC.js} +15 -15
- package/dist/{ink-TX3USU7X.js → ink-WNEJROFH.js} +5 -5
- package/dist/{inspect-MAGHXEWS.js → inspect-37AMWUW3.js} +15 -15
- package/dist/{keyframes-2TDECIQZ.js → keyframes-LMUFQW4Z.js} +7 -7
- package/dist/{lambda-CRVYDETX.js → lambda-DRGDNEW6.js} +3 -3
- package/dist/{layout-I3VNHWJH.js → layout-E63HPSXW.js} +15 -15
- package/dist/{lint-MCVWXDJX.js → lint-HNZPRCXH.js} +7 -7
- package/dist/{list-FJJNWPM6.js → list-UMR5VN2M.js} +4 -4
- package/dist/{localPage-6MQ6YFER.js → localPage-KIFKMB2B.js} +1 -1
- package/dist/{login-YAZZWYFK.js → login-OXOPCSUY.js} +4 -4
- package/dist/{look-U5UHXPUQ.js → look-DFQJP2LY.js} +5 -5
- package/dist/{manager-ARXEX6OP.js → manager-T633Z2L4.js} +1 -1
- package/dist/{measure-JAPDVQ5X.js → measure-Y2VXF6LJ.js} +11 -11
- package/dist/{media-treatment-A4Z32NGP.js → media-treatment-U2PDH4P3.js} +8 -8
- package/dist/{media-use-6HX7JHRD.js → media-use-KGNGAQQP.js} +2 -1
- package/dist/{models-GMJODMZ5.js → models-HATSG3VK.js} +5 -5
- package/dist/{motionShot-Z63I3GO7.js → motionShot-45M7MSFQ.js} +7 -7
- package/dist/{normalize-audio-45CHOWKY.js → normalize-audio-SOXEVIKM.js} +5 -5
- package/dist/{open-RSTNLDYI.js → open-LRPNBFRW.js} +5 -5
- package/dist/{parakeetRunner-K4EGDDVH.js → parakeetRunner-A7Z6CQOT.js} +1 -1
- package/dist/{pipeline-EKLTELWF.js → pipeline-N3M6VXBC.js} +4 -4
- package/dist/{play-BYIEIRQQ.js → play-HTHDFMOU.js} +10 -10
- package/dist/{preflight-TC6ZW3GB.js → preflight-XZZXHV42.js} +2 -2
- package/dist/{present-5B5VQKT5.js → present-LQ4PJTP4.js} +10 -10
- package/dist/{preview-5O2HT2WF.js → preview-CTEDNFN3.js} +9 -9
- package/dist/{probe-ZGK6DBAR.js → probe-6IZD5TPR.js} +6 -6
- package/dist/{producer-RFTB2APL.js → producer-4CR46ON4.js} +1 -1
- package/dist/{remove-background-LURZDSDJ.js → remove-background-SYHNGASQ.js} +5 -5
- package/dist/{render-ETZ3WAJO.js → render-JHSMAWED.js} +9 -9
- package/dist/{render-7HIEI7QP.js → render-VZLEKSHR.js} +19 -19
- package/dist/{reverse-VPBNBP2Q.js → reverse-SCXEQVRH.js} +1 -1
- package/dist/{run-XER4YJY5.js → run-GRCZ6JO5.js} +2 -2
- package/dist/{sherpa-D6FQ3CHN.js → sherpa-EENLR3RM.js} +1 -1
- package/dist/skills/hyperframes-cli/SKILL.md +2 -0
- package/dist/skills/media-use/SKILL.md +1 -1
- package/dist/skills/media-use/audio/scripts/lib/heygen.mjs +1 -1
- package/dist/skills/media-use/audio/scripts/lib/heygen.test.mjs +1 -1
- package/dist/skills/media-use/audio/scripts/lib/tts.mjs +2 -0
- package/dist/skills/media-use/audio/scripts/lib/tts.test.mjs +14 -0
- package/dist/skills/media-use/references/heygen.md +2 -2
- package/dist/skills/media-use/scripts/lib/credit-limit.d.mts +3 -0
- package/dist/skills/media-use/scripts/lib/credit-limit.mjs +41 -0
- package/dist/skills/media-use/scripts/lib/credit-limit.test.mjs +39 -0
- package/dist/skills/media-use/scripts/lib/heygen-video-provider.mjs +2 -0
- package/dist/skills/media-use/scripts/lib/voice-provider.mjs +2 -0
- package/dist/skills-4TSYBAGW.js +49 -0
- package/dist/{skillsUpdateCheck-7VXK4R4J.js → skillsUpdateCheck-MGXL5VXL.js} +6 -4
- package/dist/{snapshot-PJUNSMDS.js → snapshot-P27Y3NJE.js} +18 -18
- package/dist/{src-RL6YEPTD.js → src-L7UBHHKB.js} +1 -1
- package/dist/{src-SMIMKSHZ.js → src-MWO2XBSA.js} +2 -2
- package/dist/{start-5ZDH643Z.js → start-L5M26YD5.js} +31 -19
- package/dist/{staticProjectServer-BX4RWEY5.js → staticProjectServer-2JYB7RLI.js} +5 -5
- package/dist/{status-4LLUW5YT.js → status-SUK4I7TS.js} +8 -5
- package/dist/studio/assets/{hyperframes-player-CcNGHTev.js → hyperframes-player-BbRz52ui.js} +1 -1
- package/dist/studio/assets/{index-D9uDed3x.js → index-CCSgOq2L.js} +1 -1
- package/dist/studio/assets/{index-DSRgrCDX.js → index-D3y5mWmH.js} +22 -22
- package/dist/studio/index.html +1 -1
- package/dist/{studio-api-PEUXVD7P.js → studio-api-MEZKFJBY.js} +3 -3
- package/dist/{studioServer-2WIQBEQC.js → studioServer-J5RPUMHP.js} +25 -25
- package/dist/{sync-P3O3WZWT.js → sync-FHT2CHKU.js} +5 -5
- package/dist/{telemetry-267LV4SC.js → telemetry-JWEOBK3Q.js} +4 -4
- package/dist/{telemetry-T73TKZOL.js → telemetry-WGNNQUSF.js} +1 -1
- package/dist/{templates-MQ742KVZ.js → templates-7DIQ52Y4.js} +40 -11
- package/dist/{timeline-WP7AZAQC.js → timeline-ZO3PNIET.js} +9 -9
- package/dist/{tokens-ROFKR7AE.js → tokens-X6OTCQCV.js} +2 -2
- package/dist/{transcribe-WS2STSCJ.js → transcribe-KNO3BK5S.js} +9 -9
- package/dist/{transcribe-N66QUYCS.js → transcribe-QIZGXMR5.js} +1 -1
- package/dist/{tts-HIQMJU6O.js → tts-JHGGL7GL.js} +1 -1
- package/dist/update-WXGSPMEG.js +280 -0
- package/dist/{updateCheck-M2SMSDIO.js → updateCheck-OBYSCTWV.js} +7 -3
- package/dist/upgrade-YCCIVSI6.js +40 -0
- package/dist/{urlDownloader-YNI3Y3IE.js → urlDownloader-FOXK4FYP.js} +1 -1
- package/dist/{validate-M2M37G47.js → validate-TDVQ2B6Y.js} +13 -13
- package/dist/{video-2OEOTSPQ.js → video-AVEGMBDM.js} +1 -1
- package/dist/voices-2LIY4CYK.js +97 -0
- package/dist/warmCheck.js +23 -23
- package/package.json +1 -1
- package/dist/billing-W224NIAM.js +0 -96
- package/dist/chunk-ASGRVFQ3.js +0 -59
- package/dist/{chunk-QUBVGS27.js → chunk-LNTUFRZD.js} +3 -3
- package/dist/{destroy-C5GQLZVZ.js → destroy-IQLGADZM.js} +4 -4
- package/dist/{synthesize-YK3WLOEQ.js → synthesize-YYT7UON6.js} +5 -5
package/dist/billing-W224NIAM.js
DELETED
|
@@ -1,96 +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
|
-
pageUrl,
|
|
9
|
-
readPlan
|
|
10
|
-
} from "./chunk-ASGRVFQ3.js";
|
|
11
|
-
import "./chunk-TSQZ3DSC.js";
|
|
12
|
-
import {
|
|
13
|
-
openBrowser
|
|
14
|
-
} from "./chunk-ETYQYG6Q.js";
|
|
15
|
-
import "./chunk-BVAPHHMQ.js";
|
|
16
|
-
import {
|
|
17
|
-
defineCommand
|
|
18
|
-
} from "./chunk-DL4OD7IA.js";
|
|
19
|
-
import "./chunk-S3S4TGEH.js";
|
|
20
|
-
import {
|
|
21
|
-
c
|
|
22
|
-
} from "./chunk-2GICKZ3I.js";
|
|
23
|
-
import {
|
|
24
|
-
failCommand
|
|
25
|
-
} from "./chunk-66W5IWLO.js";
|
|
26
|
-
import "./chunk-J3RXEDR2.js";
|
|
27
|
-
import "./chunk-E63BDV4Z.js";
|
|
28
|
-
import "./chunk-G7VEYUZ2.js";
|
|
29
|
-
import "./chunk-XT6MXC7A.js";
|
|
30
|
-
import "./chunk-7KDQAD2W.js";
|
|
31
|
-
import "./chunk-M2WBOQ2Q.js";
|
|
32
|
-
|
|
33
|
-
// src/commands/billing.ts
|
|
34
|
-
var describe = (p) => p && p.plan !== "none" ? `${p.plan} plan, ${p.credits.toLocaleString("en-US")} credits` : "Free";
|
|
35
|
-
var billing_default = defineCommand({
|
|
36
|
-
meta: {
|
|
37
|
-
name: "billing",
|
|
38
|
-
description: "Open the HyperFrames plans or credits page and wait until the person is done (subscribe | top-up)"
|
|
39
|
-
},
|
|
40
|
-
args: {
|
|
41
|
-
action: { type: "positional", description: "subscribe | top-up", required: true },
|
|
42
|
-
needed: {
|
|
43
|
-
type: "string",
|
|
44
|
-
description: "Credits the waiting step needs (top-up waits until the balance covers it)"
|
|
45
|
-
},
|
|
46
|
-
tool: { type: "string", description: "The step that is waiting, shown on the page" },
|
|
47
|
-
feature: {
|
|
48
|
-
type: "string",
|
|
49
|
-
description: "The feature that sent the person here, so a purchase is credited to it"
|
|
50
|
-
},
|
|
51
|
-
session: { type: "string", description: "The run to credit the purchase to (with --feature)" },
|
|
52
|
-
timeout: { type: "string", description: "Seconds to wait (default 600)" }
|
|
53
|
-
},
|
|
54
|
-
// fallow-ignore-next-line complexity
|
|
55
|
-
async run({ args }) {
|
|
56
|
-
const action = String(args.action);
|
|
57
|
-
if (action !== "subscribe" && action !== "top-up") {
|
|
58
|
-
console.error(c.error("Use `billing subscribe` or `billing top-up`."));
|
|
59
|
-
failCommand();
|
|
60
|
-
}
|
|
61
|
-
const needed = Number(args.needed) || void 0;
|
|
62
|
-
const before = await readPlan();
|
|
63
|
-
const done = (p) => action === "subscribe" ? !!p && p.plan !== "none" : !!p && p.plan !== "none" && p.credits >= (needed ?? (before?.credits ?? 0) + 1);
|
|
64
|
-
if (done(before) && (action === "subscribe" || needed)) {
|
|
65
|
-
console.log(c.success(`\u2713 Already covered: ${describe(before)}.`));
|
|
66
|
-
return;
|
|
67
|
-
}
|
|
68
|
-
const url = pageUrl(action === "subscribe" ? "plans" : "credits", {
|
|
69
|
-
needed,
|
|
70
|
-
tool: args.tool,
|
|
71
|
-
feature: args.feature,
|
|
72
|
-
rs: args.session
|
|
73
|
-
});
|
|
74
|
-
console.log(`${action === "subscribe" ? "Plans" : "Credits"} page: ${c.accent(url)}`);
|
|
75
|
-
await openBrowser(url);
|
|
76
|
-
console.log("Waiting for the person to finish there ...");
|
|
77
|
-
const deadline = Date.now() + (Number(args.timeout) || 600) * 1e3;
|
|
78
|
-
while (Date.now() < deadline) {
|
|
79
|
-
await new Promise((r) => setTimeout(r, 2e3));
|
|
80
|
-
const now = await readPlan();
|
|
81
|
-
if (done(now)) {
|
|
82
|
-
console.log(c.success(`\u2713 Done: ${describe(now)}. Carry on.`));
|
|
83
|
-
return;
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
console.error(
|
|
87
|
-
c.error(
|
|
88
|
-
`Still waiting on the ${action === "subscribe" ? "plans" : "credits"} page; run this again once it is done.`
|
|
89
|
-
)
|
|
90
|
-
);
|
|
91
|
-
failCommand();
|
|
92
|
-
}
|
|
93
|
-
});
|
|
94
|
-
export {
|
|
95
|
-
billing_default as default
|
|
96
|
-
};
|
package/dist/chunk-ASGRVFQ3.js
DELETED
|
@@ -1,59 +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
|
-
resolveCloudAuthHeaders,
|
|
9
|
-
resolveCloudBaseUrl
|
|
10
|
-
} from "./chunk-TSQZ3DSC.js";
|
|
11
|
-
|
|
12
|
-
// src/heygen/plan.ts
|
|
13
|
-
var UNPAID = /* @__PURE__ */ new Set(["incomplete", "incomplete_expired"]);
|
|
14
|
-
var isRecord = (v) => typeof v === "object" && v !== null && !Array.isArray(v);
|
|
15
|
-
function mockPlan() {
|
|
16
|
-
const raw = process.env["HYPERFRAMES_MOCK_PLAN"]?.trim();
|
|
17
|
-
if (!raw) return null;
|
|
18
|
-
const [plan = "none", credits = "0"] = raw.split(":");
|
|
19
|
-
return { plan, credits: Number(credits) || 0, mock: true };
|
|
20
|
-
}
|
|
21
|
-
var billingBaseUrl = () => resolveCloudBaseUrl().replace("://api.", "://api2.");
|
|
22
|
-
async function readPlan() {
|
|
23
|
-
try {
|
|
24
|
-
const res = await fetch(`${billingBaseUrl()}/v1/payment/hyperframes/subscription`, {
|
|
25
|
-
headers: { ...await resolveCloudAuthHeaders(), accept: "application/json" },
|
|
26
|
-
signal: AbortSignal.timeout(15e3)
|
|
27
|
-
});
|
|
28
|
-
const body = await res.json().catch(() => null);
|
|
29
|
-
const data = isRecord(body) && isRecord(body.data) ? body.data : body;
|
|
30
|
-
if (!res.ok || !isRecord(data)) return mockPlan();
|
|
31
|
-
const usage = isRecord(data.usage) ? data.usage : {};
|
|
32
|
-
const sub = isRecord(data.subscription) ? data.subscription : null;
|
|
33
|
-
const paid = !!sub && !UNPAID.has(String(sub.status));
|
|
34
|
-
return {
|
|
35
|
-
plan: paid ? String(sub.plan_name ?? "paid") : "none",
|
|
36
|
-
credits: Number(usage.remaining_units ?? 0) || 0
|
|
37
|
-
};
|
|
38
|
-
} catch {
|
|
39
|
-
return mockPlan();
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
var webBase = () => "https://hyperframes.studio";
|
|
43
|
-
var plansUrl = () => process.env["HYPERFRAMES_PLANS_URL"] || `${webBase()}/pricing`;
|
|
44
|
-
var creditsUrl = () => process.env["HYPERFRAMES_CREDITS_URL"] || `${webBase()}/pricing`;
|
|
45
|
-
function pageUrl(kind, fields = {}) {
|
|
46
|
-
const url = new URL(fields.base ?? (kind === "plans" ? plansUrl() : creditsUrl()));
|
|
47
|
-
url.searchParams.set("from", "cli");
|
|
48
|
-
if (fields.needed) url.searchParams.set("needed_credits", String(fields.needed));
|
|
49
|
-
if (fields.tool) url.searchParams.set("tool", fields.tool);
|
|
50
|
-
if (fields.feature) url.searchParams.set("feature", fields.feature);
|
|
51
|
-
if (fields.rs) url.searchParams.set("rs", fields.rs);
|
|
52
|
-
return url.toString();
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
export {
|
|
56
|
-
billingBaseUrl,
|
|
57
|
-
readPlan,
|
|
58
|
-
pageUrl
|
|
59
|
-
};
|
|
@@ -24,13 +24,13 @@ import {
|
|
|
24
24
|
refreshIfNeeded,
|
|
25
25
|
resolveCloudBaseUrl
|
|
26
26
|
} from "./chunk-TSQZ3DSC.js";
|
|
27
|
-
import {
|
|
28
|
-
HyperframesCloudClient
|
|
29
|
-
} from "./chunk-3XJM7XZN.js";
|
|
30
27
|
import {
|
|
31
28
|
buildAuthHeaders,
|
|
32
29
|
tryResolveCredential
|
|
33
30
|
} from "./chunk-ETYQYG6Q.js";
|
|
31
|
+
import {
|
|
32
|
+
HyperframesCloudClient
|
|
33
|
+
} from "./chunk-3XJM7XZN.js";
|
|
34
34
|
import {
|
|
35
35
|
decodeAudio,
|
|
36
36
|
probeAudio
|
|
@@ -7,14 +7,14 @@ var __dirname = __hf_dirname(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
repoRoot
|
|
9
9
|
} from "./chunk-2X4PQEYM.js";
|
|
10
|
-
import {
|
|
11
|
-
deleteStackOutputs,
|
|
12
|
-
requireStack
|
|
13
|
-
} from "./chunk-JHOPRAJN.js";
|
|
14
10
|
import {
|
|
15
11
|
deleteEcrRepository,
|
|
16
12
|
samDelete
|
|
17
13
|
} from "./chunk-RXJUMVCA.js";
|
|
14
|
+
import {
|
|
15
|
+
deleteStackOutputs,
|
|
16
|
+
requireStack
|
|
17
|
+
} from "./chunk-JHOPRAJN.js";
|
|
18
18
|
import {
|
|
19
19
|
c
|
|
20
20
|
} from "./chunk-2GICKZ3I.js";
|
|
@@ -4,17 +4,17 @@ import { dirname as __hf_dirname } from "node:path";
|
|
|
4
4
|
var require = __hf_createRequire(import.meta.url);
|
|
5
5
|
var __filename = __hf_fileURLToPath(import.meta.url);
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
|
-
import {
|
|
8
|
-
findPython,
|
|
9
|
-
hasPythonPackage,
|
|
10
|
-
workingPythonEnv
|
|
11
|
-
} from "./chunk-J3OVTOVC.js";
|
|
12
7
|
import {
|
|
13
8
|
DEFAULT_VOICE,
|
|
14
9
|
ensureModel,
|
|
15
10
|
ensureVoices,
|
|
16
11
|
inferLangFromVoiceId
|
|
17
12
|
} from "./chunk-X5FSMQEJ.js";
|
|
13
|
+
import {
|
|
14
|
+
findPython,
|
|
15
|
+
hasPythonPackage,
|
|
16
|
+
workingPythonEnv
|
|
17
|
+
} from "./chunk-J3OVTOVC.js";
|
|
18
18
|
import "./chunk-R4EWRIDL.js";
|
|
19
19
|
import {
|
|
20
20
|
writeNewFileSync
|