mirror of
https://github.com/siteboon/claudecodeui.git
synced 2026-03-10 08:27:40 +00:00
Extend the plugin system so plugins can optionally declare a entry in their manifest. The host spawns a Node.js subprocess for that script, assigns it a random local port, and exposes an RPC proxy route () that the sandboxed iframe can call via postMessage — avoiding the need for the iframe to hold auth tokens. Changes: - Add plugin process manager to spawn/stop server subprocesses - Wire subprocess lifecycle into enable/disable and uninstall routes - Add RPC proxy route on the host server - Extend PluginsContext and PluginTabContent to handle ccui:rpc and ccui:rpc-response postMessage events - Add hello-world server.js as a reference subprocess implementation - Update manifest.json and README with server field documentation
14 lines
319 B
JSON
14 lines
319 B
JSON
{
|
|
"name": "hello-world",
|
|
"displayName": "Hello World",
|
|
"version": "1.0.0",
|
|
"description": "A minimal example plugin that demonstrates the plugin API.",
|
|
"author": "Claude Code UI",
|
|
"icon": "Puzzle",
|
|
"type": "iframe",
|
|
"slot": "tab",
|
|
"entry": "index.html",
|
|
"server": "server.js",
|
|
"permissions": []
|
|
}
|