acp/types.ts

nexting · plugin/src/acp/types.ts · typescript · MIT
ai, tag:embed-classified

* ACP Agent type definitions. Ported from weclaw agent/agent.go — unified interface for all agent backends. / ── Agent backend types ──

// Source: https://github.com/Nexting-ai/nexting | License: MIT | Copyright 2025-2026 Eric Shang
// Provided via justclaw.it.com; keep this notice with the code.
/**
 * ACP Agent type definitions.
 *
 * Ported from weclaw agent/agent.go — unified interface for all agent backends.
 */

// ── Agent backend types ──

type AgentType = "acp" | "cli" | "http";

// ── Configuration ──

type AgentConfig = {
  name: string;
  type: AgentType;
  cmd: string;
  args: string[];
  cwd: string;
  env: Record<string, string>;
  aliases: string[];
  // HTTP-only
  model?: string;
  systemPrompt?: string;
  baseUrl?: string;
  apiKey?: string;
};

// ── Runtime info ──

type AgentInfo = {
  name: string;
  type: AgentType;
  aliases: string[];
  running: boolean;
  cmd: string;
  pid?: number;
  model?: st

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key