Initial commit

Supervised action bridge between Claude Code and the host system.
Server accepts structured action requests, applies per-action policies
(auto-accept/auto-deny/queue), and executes approved actions via typed
handlers. Client provides CLI and module interfaces for calling the API.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-07 20:01:54 +00:00
commit 5a557a642a
9 changed files with 1208 additions and 0 deletions

22
client/conduit.js Normal file
View File

@@ -0,0 +1,22 @@
// Conduit client module — import this when using conduit programmatically.
// Designed for use by Claude or other tools that want to call conduit actions.
const BASE_URL = process.env.CONDUIT_URL || "http://localhost:3333";
export async function callAction(action, params = {}) {
const res = await fetch(`${BASE_URL}/action`, {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({ action, ...params }),
});
return res.json();
}
export async function listActions() {
return callAction("list-actions");
}
export async function getQueue() {
const res = await fetch(`${BASE_URL}/queue`);
return res.json();
}