UNPKG

@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
import { m as AgentCliFrontmatter, A as AgentCliHandle } from '../schema-_N8GL_uH.js'; export { O as agentCliFrontmatterSchema } from '../schema-_N8GL_uH.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 };