@agentproto/driver-agent-cli
Version:
@agentproto/driver-agent-cli — AIP-45 AGENT-CLI.md reference implementation. Multi-protocol runner that loads an AGENT-CLI.md manifest, spawns the binary, and dispatches turns through an ACP / MCP / proprietary arm. ACP arm delegates to @agentproto/acp; e
25 lines (21 loc) • 948 B
TypeScript
import { l as AgentCliFrontmatter, A as AgentCliHandle } from '../schema-CKrBhnuF.js';
export { K as agentCliFrontmatterSchema } from '../schema-CKrBhnuF.js';
import '@agentproto/acp';
import '@agentproto/acp/client';
import '@agentproto/command-sandbox';
import 'zod';
/**
* AIP-45 AGENT-CLI.md sidecar parser + manifest-to-handle constructor.
*
* Mirror of `@agentproto/skill/manifest` and `@agentproto/acp/manifest`:
* the .md provides metadata; the TS runtime supplies any spec-specific
* runtime bits. Both inputs end up in `defineAgentCli` so the cross-AIP
* invariants run uniformly.
*/
interface AgentCliManifest {
frontmatter: AgentCliFrontmatter;
body: string;
}
declare function parseAgentCliManifest(source: string): AgentCliManifest;
declare function agentCliFromManifest(manifest: AgentCliManifest): AgentCliHandle;
export { AgentCliFrontmatter, type AgentCliManifest, agentCliFromManifest, parseAgentCliManifest };