Files
heygen-com__hyperframes/packages/studio-server/package.json
Miguel Angel Simon Sierra 94e78e806e feat(studio): talk to coding agents over the Agent Client Protocol
Studio's existing transport spawns a CLI and reads whatever it prints, so
every harness needs its own parser and an agent that wants to ask a
question has nobody to ask. ACP is the published standard for this
boundary: JSON-RPC over stdio, capabilities negotiated up front.

This is the connection half only: open a stream, complete the handshake,
clean the process up. A dead agent reports its exit code rather than the
transport's bare "connection closed", and a silent one fails on a
deadline naming the command instead of hanging.

Verified against @agentclientprotocol/codex-acp: the handshake returns
protocolVersion 1, loadSession, and three auth methods.
2026-08-05 21:36:24 -07:00

154 lines
5.0 KiB
JSON

{
"name": "@hyperframes/studio-server",
"version": "0.7.92",
"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"
}
},
"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"
}
},
"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": {
"@agentclientprotocol/sdk": "^1.3.0",
"@hyperframes/core": "workspace:*",
"@hyperframes/parsers": "workspace:*",
"hono": "^4.0.0",
"linkedom": "^0.18.12",
"postcss": "^8.5.8",
"postcss-selector-parser": "^7.1.2",
"zod": "^4.4.3"
},
"devDependencies": {
"@types/node": "^25.0.10",
"tsup": "^8.0.0",
"tsx": "^4.21.0",
"typescript": "^5.0.0",
"vitest": "^3.2.4"
}
}