mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-09-14 18:01:20 +08:00
fbe4c49110
Adds the studio-server side of the voiceover spectral-carve pipeline: - vstSidecar.ts spawns and supervises the hyperframes-vst host process, resolving it from the published PyPI package (uvx, or an explicit HYPERFRAMES_VST_HOST override), and requires a shared-secret token on the WebSocket so a local port can't be driven by another process on the box. - vstCarve.ts + POST /vst/carve run voiceover analysis and return carve bands. - The CLI re-exports the sidecar through @hyperframes/studio-server/vst-sidecar so preview can stop the process on shutdown, and the Vite dev adapter threads the auth token through to the browser. The host itself is not vendored: it is an external Python package with its own release cadence, so depending on the published build keeps plugin-host upgrades out of this repo's release train.
162 lines
5.2 KiB
JSON
162 lines
5.2 KiB
JSON
{
|
|
"name": "@hyperframes/studio-server",
|
|
"version": "0.7.85",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/heygen-com/hyperframes",
|
|
"directory": "packages/studio-server"
|
|
},
|
|
"files": [
|
|
"dist",
|
|
"README.md"
|
|
],
|
|
"type": "module",
|
|
"main": "./src/index.ts",
|
|
"types": "./src/index.ts",
|
|
"exports": {
|
|
".": {
|
|
"bun": "./src/index.ts",
|
|
"node": "./dist/index.js",
|
|
"import": "./src/index.ts",
|
|
"types": "./src/index.ts"
|
|
},
|
|
"./package.json": "./package.json",
|
|
"./screenshot-clip": {
|
|
"bun": "./src/helpers/screenshotClip.ts",
|
|
"node": "./dist/helpers/screenshotClip.js",
|
|
"import": "./src/helpers/screenshotClip.ts",
|
|
"types": "./src/helpers/screenshotClip.ts"
|
|
},
|
|
"./manual-edits-render-script": {
|
|
"bun": "./src/helpers/manualEditsRenderScript.ts",
|
|
"node": "./dist/helpers/manualEditsRenderScript.js",
|
|
"import": "./src/helpers/manualEditsRenderScript.ts",
|
|
"types": "./src/helpers/manualEditsRenderScript.ts"
|
|
},
|
|
"./studio-motion-render-script": {
|
|
"bun": "./src/helpers/studioMotionRenderScript.ts",
|
|
"node": "./dist/helpers/studioMotionRenderScript.js",
|
|
"import": "./src/helpers/studioMotionRenderScript.ts",
|
|
"types": "./src/helpers/studioMotionRenderScript.ts"
|
|
},
|
|
"./draft-markers": {
|
|
"bun": "./src/helpers/draftMarkers.ts",
|
|
"node": "./dist/helpers/draftMarkers.js",
|
|
"import": "./src/helpers/draftMarkers.ts",
|
|
"types": "./src/helpers/draftMarkers.ts"
|
|
},
|
|
"./finite-mutation": {
|
|
"bun": "./src/helpers/finiteMutation.ts",
|
|
"node": "./dist/helpers/finiteMutation.js",
|
|
"import": "./src/helpers/finiteMutation.ts",
|
|
"types": "./src/helpers/finiteMutation.ts"
|
|
},
|
|
"./source-mutation": {
|
|
"bun": "./src/helpers/sourceMutation.ts",
|
|
"node": "./dist/helpers/sourceMutation.js",
|
|
"import": "./src/helpers/sourceMutation.ts",
|
|
"types": "./src/helpers/sourceMutation.ts"
|
|
},
|
|
"./media-codec-map": {
|
|
"bun": "./src/helpers/mediaCodecMap.ts",
|
|
"node": "./dist/helpers/mediaCodecMap.js",
|
|
"import": "./src/helpers/mediaCodecMap.ts",
|
|
"types": "./src/helpers/mediaCodecMap.ts"
|
|
},
|
|
"./proxy-transcoder": {
|
|
"bun": "./src/helpers/proxyTranscoder.ts",
|
|
"node": "./dist/helpers/proxyTranscoder.js",
|
|
"import": "./src/helpers/proxyTranscoder.ts",
|
|
"types": "./src/helpers/proxyTranscoder.ts"
|
|
},
|
|
"./media-proxy-preview": {
|
|
"bun": "./src/helpers/mediaProxyPreview.ts",
|
|
"node": "./dist/helpers/mediaProxyPreview.js",
|
|
"import": "./src/helpers/mediaProxyPreview.ts",
|
|
"types": "./src/helpers/mediaProxyPreview.ts"
|
|
},
|
|
"./vst-sidecar": {
|
|
"bun": "./src/vstSidecar.ts",
|
|
"node": "./dist/vstSidecar.js",
|
|
"import": "./src/vstSidecar.ts",
|
|
"types": "./src/vstSidecar.ts"
|
|
}
|
|
},
|
|
"publishConfig": {
|
|
"access": "public",
|
|
"exports": {
|
|
".": {
|
|
"import": "./dist/index.js",
|
|
"types": "./dist/index.d.ts"
|
|
},
|
|
"./package.json": "./package.json",
|
|
"./screenshot-clip": {
|
|
"import": "./dist/helpers/screenshotClip.js",
|
|
"types": "./dist/helpers/screenshotClip.d.ts"
|
|
},
|
|
"./manual-edits-render-script": {
|
|
"import": "./dist/helpers/manualEditsRenderScript.js",
|
|
"types": "./dist/helpers/manualEditsRenderScript.d.ts"
|
|
},
|
|
"./studio-motion-render-script": {
|
|
"import": "./dist/helpers/studioMotionRenderScript.js",
|
|
"types": "./dist/helpers/studioMotionRenderScript.d.ts"
|
|
},
|
|
"./draft-markers": {
|
|
"import": "./dist/helpers/draftMarkers.js",
|
|
"types": "./dist/helpers/draftMarkers.d.ts"
|
|
},
|
|
"./finite-mutation": {
|
|
"import": "./dist/helpers/finiteMutation.js",
|
|
"types": "./dist/helpers/finiteMutation.d.ts"
|
|
},
|
|
"./source-mutation": {
|
|
"import": "./dist/helpers/sourceMutation.js",
|
|
"types": "./dist/helpers/sourceMutation.d.ts"
|
|
},
|
|
"./media-codec-map": {
|
|
"import": "./dist/helpers/mediaCodecMap.js",
|
|
"types": "./dist/helpers/mediaCodecMap.d.ts"
|
|
},
|
|
"./proxy-transcoder": {
|
|
"import": "./dist/helpers/proxyTranscoder.js",
|
|
"types": "./dist/helpers/proxyTranscoder.d.ts"
|
|
},
|
|
"./media-proxy-preview": {
|
|
"import": "./dist/helpers/mediaProxyPreview.js",
|
|
"types": "./dist/helpers/mediaProxyPreview.d.ts"
|
|
},
|
|
"./vst-sidecar": {
|
|
"import": "./dist/vstSidecar.js",
|
|
"types": "./dist/vstSidecar.d.ts"
|
|
}
|
|
},
|
|
"main": "./dist/index.js",
|
|
"types": "./dist/index.d.ts"
|
|
},
|
|
"scripts": {
|
|
"build": "tsup",
|
|
"test": "vitest run",
|
|
"test:acorn-writer": "bun scripts/run-acorn-writer-tests.ts",
|
|
"test:watch": "vitest",
|
|
"typecheck": "tsc --noEmit",
|
|
"report:gsap-writers": "bun src/routes/gsapMutationCapabilities.report.ts",
|
|
"prepublishOnly": "echo skip"
|
|
},
|
|
"dependencies": {
|
|
"@hyperframes/core": "workspace:*",
|
|
"@hyperframes/parsers": "workspace:*",
|
|
"hono": "^4.0.0",
|
|
"linkedom": "^0.18.12",
|
|
"postcss": "^8.5.8",
|
|
"postcss-selector-parser": "^7.1.2"
|
|
},
|
|
"devDependencies": {
|
|
"@types/node": "^25.0.10",
|
|
"tsup": "^8.0.0",
|
|
"tsx": "^4.21.0",
|
|
"typescript": "^5.0.0",
|
|
"vitest": "^3.2.4"
|
|
}
|
|
}
|