hyperframes 0.8.112 → 0.8.113
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-NIVC2YMT.js → add-ILIGSLV4.js} +15 -15
- package/dist/{animatedGifPrep-NWAJKCHG.js → animatedGifPrep-U7FMC7DB.js} +6 -6
- package/dist/{asset-O6JJKF3Z.js → asset-OFDEIAGM.js} +2 -2
- package/dist/{assetCataloger-DJSPW3RL.js → assetCataloger-5LCGR5XU.js} +2 -2
- package/dist/{auth-6XRZQQQS.js → auth-5JDDEX2M.js} +2 -2
- package/dist/{autoUpdate-GZHLQBLS.js → autoUpdate-JXVZVJCV.js} +2 -2
- package/dist/{backgroundChecks-4QQRGJ5S.js → backgroundChecks-BBWGY3V6.js} +3 -3
- package/dist/backgroundChecksWorker.js +3 -3
- package/dist/{batchRender-PJGNXN7F.js → batchRender-QVJ7NEUH.js} +3 -3
- package/dist/{beats-VYR6B4UB.js → beats-YEYVQMX6.js} +11 -11
- package/dist/{benchmark-CGP2NKIP.js → benchmark-J2V46VWI.js} +12 -12
- package/dist/{browser-ZWD4ETXK.js → browser-XBWASLD2.js} +11 -11
- package/dist/{bundleWithLocalizedFonts-JWHKLSZM.js → bundleWithLocalizedFonts-4CVITCYK.js} +2 -2
- package/dist/{capture-C4MPRLJV.js → capture-F2Y7TIHU.js} +8 -8
- package/dist/{capture-IQ7AUK6M.js → capture-GLHK4ST7.js} +2 -2
- package/dist/{catalog-RZ7PWQMS.js → catalog-3QDMTDK2.js} +15 -15
- package/dist/{check-7UU4SSO6.js → check-O3RR4NWI.js} +32 -32
- package/dist/{checkBrowser-6KYNYIU7.js → checkBrowser-K36DAG4S.js} +29 -29
- package/dist/{chunk-OXZO4WQI.js → chunk-2DBYGR4N.js} +9 -9
- package/dist/{chunk-OWN3ZIIK.js → chunk-3IUSKIZW.js} +1 -1
- package/dist/{chunk-BD3MHTSR.js → chunk-3XPZJUKM.js} +2 -2
- package/dist/{chunk-YQ5MFXWG.js → chunk-4KGMIOMY.js} +5 -5
- package/dist/{chunk-N34BYX3E.js → chunk-4PFZPP2N.js} +54 -30
- package/dist/{chunk-KQ3VNA6R.js → chunk-7543YIMQ.js} +1 -1
- package/dist/{chunk-LYBFDHXD.js → chunk-7CGIICLA.js} +3 -3
- package/dist/{chunk-H3WFEPV2.js → chunk-BOUDTDBQ.js} +1 -1
- package/dist/chunk-C6AIZOQN.js +3541 -0
- package/dist/{chunk-E664L6K3.js → chunk-DDK22K3I.js} +3 -3
- package/dist/{chunk-QXERSWXX.js → chunk-DQBY7FRR.js} +123 -3
- package/dist/{chunk-36XLW2TP.js → chunk-DR7QW6C5.js} +2 -2
- package/dist/{chunk-VW6CVKVA.js → chunk-E52XEEAA.js} +2 -2
- package/dist/{chunk-Q7U7QRC7.js → chunk-EMZF2TPA.js} +2 -2
- package/dist/{chunk-5SDXALUQ.js → chunk-ENHAGQEP.js} +1 -1
- package/dist/{chunk-C4JINRJK.js → chunk-FCEFKWPM.js} +1 -1
- package/dist/{chunk-PRETPA7Z.js → chunk-FW7K32YT.js} +1 -1
- package/dist/{chunk-2GXKCB7J.js → chunk-FXHVADV6.js} +1 -1
- package/dist/{chunk-P74PW7KR.js → chunk-G2T2X6FZ.js} +3 -3
- package/dist/{chunk-CS4IE5G7.js → chunk-GDJ74GHW.js} +4 -3
- package/dist/{chunk-VHRHI3CU.js → chunk-HTQR7SUZ.js} +1 -1
- package/dist/{chunk-EA4LCCJI.js → chunk-HYXL3VJA.js} +5 -5
- package/dist/{chunk-M4RYK5OF.js → chunk-IP3XINRB.js} +1 -1
- package/dist/{chunk-A6GVXZZ3.js → chunk-IRJBTYJF.js} +1 -1
- package/dist/chunk-K4WKGXRC.js +18 -0
- package/dist/{chunk-JRULOVZK.js → chunk-L5QASNBN.js} +1 -1
- package/dist/{chunk-7G25WGTA.js → chunk-L5SYYW2P.js} +2 -2
- package/dist/{chunk-TSZU5JMC.js → chunk-LMC46FK5.js} +2 -2
- package/dist/{chunk-J2S4MY2M.js → chunk-OCNCK5FQ.js} +2 -2
- package/dist/{chunk-NOOBRCMC.js → chunk-OEA2J2TF.js} +3 -3
- package/dist/{chunk-BSBIG74E.js → chunk-P3FGUSFK.js} +8 -8
- package/dist/{chunk-4BXTKKRD.js → chunk-QPR4N2D4.js} +1 -1
- package/dist/{chunk-GODQ5XA4.js → chunk-R4NWAW35.js} +8 -16
- package/dist/{chunk-KIIKVKHB.js → chunk-SIN32SJB.js} +2 -2
- package/dist/{chunk-KPSRL2NB.js → chunk-T3NMEYGM.js} +1 -1
- package/dist/{chunk-BLI5XATY.js → chunk-U4VSY56O.js} +1 -1
- package/dist/{chunk-3Q7HXIXZ.js → chunk-VFCKXTBB.js} +5 -2
- package/dist/{chunk-UTXMQVB2.js → chunk-VIJ35BJ6.js} +10 -10
- package/dist/{chunk-7VIXEM6Q.js → chunk-VLC7JS4K.js} +1 -1
- package/dist/{chunk-TXVN43SX.js → chunk-VTP4VSRP.js} +8 -8
- package/dist/{chunk-BZGWHPRW.js → chunk-XFJXFNJF.js} +3 -3
- package/dist/{chunk-7OJSZTJK.js → chunk-XXKBPGPJ.js} +2 -2
- package/dist/{chunk-P3AQVFY2.js → chunk-XZM2I47O.js} +3 -3
- package/dist/{chunk-YAFO7V4A.js → chunk-YJEGT5L6.js} +1 -1
- package/dist/{chunk-2BEOCUAG.js → chunk-ZMMSMDCA.js} +1 -1
- package/dist/{chunk-POEGJGEA.js → chunk-ZYSS3JED.js} +1 -1
- package/dist/{chunk-KS5HFREQ.js → chunk-ZZIXIOK2.js} +4 -4
- package/dist/{clean-263PH5CR.js → clean-RPB34TT6.js} +16 -16
- package/dist/cli.js +122 -54
- package/dist/{cloud-STLYEQNN.js → cloud-QECFFPKC.js} +4 -4
- package/dist/{cloudrun-7ZVNB6FY.js → cloudrun-BML6ZG7K.js} +3 -3
- package/dist/{compare-33JLJ52D.js → compare-PF6WHQ4T.js} +24 -24
- package/dist/{compiler-H3QAMMC2.js → compiler-ZHVIEP26.js} +3 -3
- package/dist/{component-O5JLM26B.js → component-4ENCNLED.js} +3 -3
- package/dist/{compositions-CN4ZVT5G.js → compositions-5UA33RSG.js} +11 -11
- package/dist/{delete-Z23A45R3.js → delete-SARS5LIK.js} +2 -2
- package/dist/{deploy-PJLSZMUH.js → deploy-MX76RZ36.js} +1 -1
- package/dist/{destroy-IPUDK6YN.js → destroy-H2TZBYHH.js} +1 -1
- package/dist/{dist-ICXYT7XK.js → dist-HRBNHR4M.js} +1 -1
- package/dist/{dist-7VEVT4NT.js → dist-OKRUIHYU.js} +2 -2
- package/dist/{doctor-6QLXSGPK.js → doctor-TSAQGYP4.js} +11 -11
- package/dist/{events-UA4DJUO2.js → events-3HUO73ZE.js} +9 -9
- package/dist/{events-EAAIWITP.js → events-SZ5NWYWD.js} +8 -8
- package/dist/{feedback-2CIRCBHY.js → feedback-42OTOFC6.js} +10 -10
- package/dist/{figma-DFCCII66.js → figma-RYNFCYXB.js} +3 -3
- package/dist/fontLocalizeCli.js +8 -8
- package/dist/{get-UQ2AAXWM.js → get-IRHLG5OQ.js} +2 -2
- package/dist/{gpuPolicy-CPCLBMS5.js → gpuPolicy-LRMOZXFU.js} +6 -6
- package/dist/{grade-compare-THUUFHO3.js → grade-compare-KGJP5HV7.js} +24 -24
- package/dist/{help-SR2MRL3U.js → help-C5HS56RZ.js} +1 -1
- package/dist/{history-WLI7KFXB.js → history-DFJNDM2T.js} +16 -17
- package/dist/hyperframe-runtime.js +52 -52
- package/dist/hyperframe.manifest.json +1 -1
- package/dist/hyperframe.runtime.iife.js +52 -52
- package/dist/hyperframes-player.global.js +1 -1
- package/dist/{info-DFJM3YRJ.js → info-26GTDTKN.js} +11 -11
- package/dist/{init-HEAMOTGH.js → init-RXA6NI73.js} +25 -24
- package/dist/{inspect-TO2EXJNK.js → inspect-2S5GAZYC.js} +25 -25
- package/dist/{installer-REA7ZASD.js → installer-DGYYDGWJ.js} +4 -4
- package/dist/{keyframes-XHEBAJY7.js → keyframes-WBMAX7XZ.js} +12 -12
- package/dist/{lambda-MSWYKDNT.js → lambda-OQBFCEFA.js} +6 -6
- package/dist/{layout-UQXCTFFV.js → layout-ZRU7PXBG.js} +25 -25
- package/dist/{lint-BSMZ526C.js → lint-ATVNZ6FG.js} +12 -12
- package/dist/{lintProject-VNE322A7.js → lintProject-TOLC6HDS.js} +1 -1
- package/dist/{list-RNP5EMTX.js → list-E2GHYPCQ.js} +2 -2
- package/dist/{login-S6V75HG5.js → login-LOC4KA7H.js} +4 -4
- package/dist/{manager-NEVLEZK3.js → manager-CT3D67CG.js} +1 -1
- package/dist/{media-treatment-IHEEEDUQ.js → media-treatment-L43MVH2V.js} +12 -12
- package/dist/{models-OQEBKNJI.js → models-JF5OOZ5A.js} +7 -7
- package/dist/{motionShot-EAIFVJ2I.js → motionShot-BJ5CLYMN.js} +12 -12
- package/dist/{normalize-audio-4ACUR6W6.js → normalize-audio-K33FKGAF.js} +11 -11
- package/dist/{pipeline-SOQHD5YN.js → pipeline-IWPF5ZMK.js} +6 -6
- package/dist/{play-3WJPS3FE.js → play-PHHXYCQI.js} +20 -20
- package/dist/{preflight-ZUADCOLZ.js → preflight-2GH2Z4GZ.js} +8 -8
- package/dist/{present-MU23WZZA.js → present-KBFK2YVB.js} +16 -16
- package/dist/{preview-VOTNRX67.js → preview-T3E5TFDC.js} +159 -87
- package/dist/{producer-HKRMTCPU.js → producer-SL66UNEP.js} +1 -1
- package/dist/{projectConfig-H37MQGE6.js → projectConfig-7AKXZNNR.js} +6 -6
- package/dist/{publication-QVDKMAKD.js → publication-B2OERUY7.js} +2 -2
- package/dist/{publish-54IPKU5O.js → publish-ZGKT7KED.js} +8 -8
- package/dist/{remove-background-KQQ2WPKP.js → remove-background-4LRTT6YL.js} +7 -7
- package/dist/{render-HJQ44SEI.js → render-H6RSJF2V.js} +12 -12
- package/dist/{render-P7727PLY.js → render-OKNPNMFS.js} +23 -23
- package/dist/{render-S2T3SLI4.js → render-TGCDBKMP.js} +3 -3
- package/dist/{render-batch-DUFAHD6F.js → render-batch-WRQFW4UC.js} +3 -3
- package/dist/{renderCancellation-BSVXXGZM.js → renderCancellation-BFCQYGVV.js} +6 -6
- package/dist/renderSetupWorker.js +2 -2
- package/dist/{resolver-PHWKDEH2.js → resolver-37UOGAMT.js} +4 -4
- package/dist/{sherpa-GHQOWXFV.js → sherpa-SDVKYXCX.js} +7 -7
- package/dist/{skills-SOCMD66Y.js → skills-O25ZTFTO.js} +11 -11
- package/dist/{skillsUpdateCheck-PONPICQM.js → skillsUpdateCheck-Y2V4OMMT.js} +3 -3
- package/dist/{snapshot-ECXEZ4TY.js → snapshot-KGM2HZIC.js} +27 -27
- package/dist/{src-LVBNYMJW.js → src-PJJ6NISA.js} +5 -5
- package/dist/{src-RQE5HXZK.js → src-PLWCT745.js} +7 -7
- package/dist/{staticProjectServer-TQYP44CW.js → staticProjectServer-OCE7GU5S.js} +14 -14
- package/dist/{status-HVI7QZHE.js → status-LENRPQS5.js} +6 -6
- package/dist/studio/assets/{hyperframes-player-CBpg41JM.js → hyperframes-player-DzJbtQVO.js} +1 -1
- package/dist/studio/assets/{index-BKy_birQ.js → index-DRhF3v4Z.js} +4 -4
- package/dist/studio/assets/{index-CZfrSyU9.js → index-DgwDQK5G.js} +1 -1
- package/dist/studio/assets/{index-BFitquwi.js → index-n5FUn1xv.js} +1 -1
- package/dist/studio/index.html +1 -1
- package/dist/{studio-api-EKF6TFDB.js → studio-api-IEQ5BIHT.js} +8 -8
- package/dist/{studioSelectionClient-A6JCWRRW.js → studioSelectionClient-IUUPKUHZ.js} +1 -2
- package/dist/{studioServer-BSNDGK63.js → studioServer-LXJ34MGN.js} +43 -43
- package/dist/{system-NLNIE7PO.js → system-4KRSV2B7.js} +6 -6
- package/dist/{telemetry-XNDAM6JU.js → telemetry-R3BPD6VK.js} +9 -9
- package/dist/{timeline-IKWTTCNY.js → timeline-N5UKVS2S.js} +15 -15
- package/dist/{tokens-KOTFKBAK.js → tokens-774UBF2R.js} +2 -2
- package/dist/{transcribe-ELJHKA5B.js → transcribe-3UXXEDXX.js} +7 -7
- package/dist/{transcribe-STEYOXIO.js → transcribe-IP74EZLM.js} +12 -12
- package/dist/{tts-DO2W6NLB.js → tts-P3LIPIL5.js} +13 -6
- package/dist/{updateCheck-OJMEQUST.js → updateCheck-EXHNAPKI.js} +2 -2
- package/dist/{upgrade-NIS32YR6.js → upgrade-A4M3O2F2.js} +2 -2
- package/dist/{urlDownloader-KJSQAFN7.js → urlDownloader-4KNER64L.js} +5 -5
- package/dist/{validate-7MCKNH5K.js → validate-DV75GM6J.js} +15 -15
- package/dist/{video-TUXP3VGQ.js → video-GINAMW5I.js} +6 -6
- package/package.json +1 -1
- package/dist/chunk-S6TH5G6Z.js +0 -3541
- package/dist/chunk-VWA4HODG.js +0 -129
package/dist/chunk-VWA4HODG.js
DELETED
|
@@ -1,129 +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
|
-
scanActiveServers
|
|
9
|
-
} from "./chunk-QXERSWXX.js";
|
|
10
|
-
|
|
11
|
-
// src/utils/studioSelectionClient.ts
|
|
12
|
-
import { existsSync, realpathSync } from "fs";
|
|
13
|
-
import { resolve } from "path";
|
|
14
|
-
var VITE_STUDIO_DISCOVERY_PORTS = [5190];
|
|
15
|
-
var AmbiguousPreviewServerError = class extends Error {
|
|
16
|
-
ports;
|
|
17
|
-
constructor(servers) {
|
|
18
|
-
const ports = servers.map((server) => server.port).sort((a, b) => a - b);
|
|
19
|
-
super(
|
|
20
|
-
`Multiple Studio preview servers match this project (${ports.join(", ")}). Pass --port <port> to choose one.`
|
|
21
|
-
);
|
|
22
|
-
this.name = "AmbiguousPreviewServerError";
|
|
23
|
-
this.ports = ports;
|
|
24
|
-
}
|
|
25
|
-
};
|
|
26
|
-
var PreviewServerPortMismatchError = class extends Error {
|
|
27
|
-
requestedPort;
|
|
28
|
-
ports;
|
|
29
|
-
constructor(requestedPort, servers) {
|
|
30
|
-
const ports = servers.map((server) => server.port).sort((a, b) => a - b);
|
|
31
|
-
super(
|
|
32
|
-
`No Studio preview server for this project is running on port ${requestedPort}. Matching server port${ports.length === 1 ? "" : "s"}: ${ports.join(", ")}. Rerun with --port ${ports[0]}${ports.length > 1 ? " or omit --port to see all candidates" : ""}.`
|
|
33
|
-
);
|
|
34
|
-
this.name = "PreviewServerPortMismatchError";
|
|
35
|
-
this.requestedPort = requestedPort;
|
|
36
|
-
this.ports = ports;
|
|
37
|
-
}
|
|
38
|
-
};
|
|
39
|
-
function normalizePath(path) {
|
|
40
|
-
const resolved = resolve(path);
|
|
41
|
-
try {
|
|
42
|
-
if (existsSync(resolved)) {
|
|
43
|
-
return realpathSync(resolved).replace(/\\/g, "/").toLowerCase();
|
|
44
|
-
}
|
|
45
|
-
} catch {
|
|
46
|
-
}
|
|
47
|
-
return resolved.replace(/\\/g, "/").toLowerCase();
|
|
48
|
-
}
|
|
49
|
-
async function findPreviewServerForProject(projectDir, startPort = 3002, scan = scanActiveServers, fetchImpl = fetch, options = {}) {
|
|
50
|
-
const normalizedProjectDir = normalizePath(projectDir);
|
|
51
|
-
const servers = await scan(startPort);
|
|
52
|
-
const embeddedServers = servers.filter(
|
|
53
|
-
(server) => normalizePath(server.projectDir) === normalizedProjectDir
|
|
54
|
-
);
|
|
55
|
-
if (options.preferredPort !== void 0) {
|
|
56
|
-
const preferred = embeddedServers.find((server) => server.port === options.preferredPort);
|
|
57
|
-
if (preferred) return preferred;
|
|
58
|
-
const viteServer = await findViteStudioServerForProject(normalizedProjectDir, fetchImpl, [
|
|
59
|
-
options.preferredPort
|
|
60
|
-
]);
|
|
61
|
-
if (viteServer) return viteServer;
|
|
62
|
-
if (embeddedServers.length > 0) {
|
|
63
|
-
throw new PreviewServerPortMismatchError(options.preferredPort, embeddedServers);
|
|
64
|
-
}
|
|
65
|
-
return null;
|
|
66
|
-
}
|
|
67
|
-
if (embeddedServers.length === 1) return embeddedServers[0];
|
|
68
|
-
if (embeddedServers.length > 1) throw new AmbiguousPreviewServerError(embeddedServers);
|
|
69
|
-
return findViteStudioServerForProject(normalizedProjectDir, fetchImpl);
|
|
70
|
-
}
|
|
71
|
-
function studioSelectionUrl(server) {
|
|
72
|
-
return studioApiUrl(server, "selection");
|
|
73
|
-
}
|
|
74
|
-
function studioApiUrl(server, route) {
|
|
75
|
-
const host = server.host ?? "127.0.0.1";
|
|
76
|
-
return `http://${host}:${server.port}/api/projects/${encodeURIComponent(server.projectName)}/${route}`;
|
|
77
|
-
}
|
|
78
|
-
var LOOPBACK_HOSTS = ["127.0.0.1", "[::1]"];
|
|
79
|
-
async function findViteStudioServerForProject(normalizedProjectDir, fetchImpl, ports = VITE_STUDIO_DISCOVERY_PORTS) {
|
|
80
|
-
for (const port of ports) {
|
|
81
|
-
for (const host of LOOPBACK_HOSTS) {
|
|
82
|
-
try {
|
|
83
|
-
const response = await fetchImpl(`http://${host}:${port}/api/projects`);
|
|
84
|
-
if (!response.ok) continue;
|
|
85
|
-
const payload = await response.json();
|
|
86
|
-
const project = payload.projects?.find(
|
|
87
|
-
(candidate) => normalizePath(candidate.dir) === normalizedProjectDir
|
|
88
|
-
);
|
|
89
|
-
if (!project) continue;
|
|
90
|
-
return {
|
|
91
|
-
port,
|
|
92
|
-
host,
|
|
93
|
-
projectName: project.id,
|
|
94
|
-
projectDir: project.dir,
|
|
95
|
-
version: "studio-dev",
|
|
96
|
-
pid: null
|
|
97
|
-
};
|
|
98
|
-
} catch {
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
return null;
|
|
103
|
-
}
|
|
104
|
-
async function fetchStudioSelection(server, fetchImpl = fetch) {
|
|
105
|
-
const url = studioSelectionUrl(server);
|
|
106
|
-
const response = await fetchImpl(url);
|
|
107
|
-
if (!response.ok) {
|
|
108
|
-
throw new Error(`selection endpoint returned ${response.status}`);
|
|
109
|
-
}
|
|
110
|
-
return await response.json();
|
|
111
|
-
}
|
|
112
|
-
async function fetchStudioLint(server, fetchImpl = fetch) {
|
|
113
|
-
const url = studioApiUrl(server, "lint");
|
|
114
|
-
const response = await fetchImpl(url);
|
|
115
|
-
if (!response.ok) {
|
|
116
|
-
throw new Error(`lint endpoint returned ${response.status}`);
|
|
117
|
-
}
|
|
118
|
-
return await response.json();
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
export {
|
|
122
|
-
AmbiguousPreviewServerError,
|
|
123
|
-
PreviewServerPortMismatchError,
|
|
124
|
-
findPreviewServerForProject,
|
|
125
|
-
studioSelectionUrl,
|
|
126
|
-
studioApiUrl,
|
|
127
|
-
fetchStudioSelection,
|
|
128
|
-
fetchStudioLint
|
|
129
|
-
};
|