feat(acp): scaffold fusion-plugin-acp-runtime (U1)

New runtime plugin registering runtimeId 'acp', mirroring the
fusion-plugin-droid-runtime shape. Adds @agentclientprotocol/sdk@0.24.0
and an SDK smoke-import test that gates on the load-bearing exports
(ClientSideConnection, ndJsonStream, PROTOCOL_VERSION=1) so a breaking
SDK change surfaces at U1. Runtime adapter is a contract-conforming
skeleton (incl. describeModel); session driving lands in U2/U3.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
gsxdsm
2026-06-03 08:35:51 -07:00
parent 8e3f4df2b4
commit a3292fb545
12 changed files with 456 additions and 0 deletions

View File

@@ -0,0 +1,41 @@
{
"name": "@fusion-plugin-examples/acp-runtime",
"version": "0.1.0",
"type": "module",
"description": "ACP (Agent Client Protocol) runtime plugin for Fusion — drives any ACP-compatible agent over JSON-RPC/stdio",
"keywords": [
"fusion-plugin",
"acp",
"agent-client-protocol",
"runtime"
],
"exports": {
".": {
"types": "./src/index.ts",
"import": "./src/index.ts"
},
"./probe": {
"types": "./src/probe.ts",
"import": "./src/probe.ts"
}
},
"private": true,
"scripts": {
"build": "tsc",
"test": "vitest run --silent=passed-only --reporter=dot",
"typecheck": "tsc --noEmit"
},
"dependencies": {
"@agentclientprotocol/sdk": "0.24.0",
"@fusion/plugin-sdk": "workspace:*"
},
"peerDependencies": {
"@earendil-works/pi-ai": "*",
"@earendil-works/pi-coding-agent": "*"
},
"devDependencies": {
"@types/node": "^25.5.2",
"typescript": "^5.7.0",
"vitest": "^3.2.4"
}
}