@fusedio/agentbridge-adapter-cursor
v0.1.3
Published
agentbridge adapter for the Cursor CLI (cursor-agent).
Downloads
2,410
Readme
@fusedio/agentbridge-adapter-cursor
agentbridge adapter for the Cursor CLI
CLI (cursor-agent). Parses its stream-json output into agentbridge's normalized
TranscriptEntry stream and a final ExecutionResult carrying token usage and costUsd.
Install
npm install @fusedio/agentbridge-hub @fusedio/agentbridge-adapter-cursorRequires the cursor-agent CLI on your PATH.
Usage
import { createAgentHub } from "@fusedio/agentbridge-hub";
import { createAdapter } from "@fusedio/agentbridge-adapter-cursor/server";
const hub = createAgentHub({ adapters: [createAdapter()] });
const run = hub.run({ adapter: "cursor", prompt: "…", cwd: process.cwd() });Two entry points:
.— metadata + the pure stdout-line parser (browser-safe, no Node imports)../server— Node-only execution: thecreateAdapter()factory,execute, andtestEnvironment.
ESM-only, Node >= 20.
License
MIT © Fused
