aiwg
Version:
Deployment tool and support utility for AI context. Copies agents, skills, commands, rules, and behaviors into the paths each AI platform reads (Claude Code, Codex, Copilot, Cursor, Warp, OpenClaw, and 6 more) so one source of truth works across 10 platfo
24 lines • 1.08 kB
JavaScript
// A2A protocol types — the subset AIWG needs to talk to an agentic-sandbox v2
// executor. Modelled from the executor's wire surface
// (`agentic-sandbox/management/agentic-sandbox-executor`):
//
// - send_message.rs — POST /agents/{id}/v1/messages:send
// - get_task.rs — GET /agents/{id}/v1/tasks/{tid}
// - cancel_task.rs — POST /agents/{id}/v1/tasks/{tid}/cancel
// - subscribe_task — GET /agents/{id}/v1/tasks/{tid}/subscribe (SSE)
// - push_delivery.rs — * /agents/{id}/v1/tasks/{tid}/pushNotificationConfigs/*
// - agent_card.rs — GET /agents/{id}/.well-known/agent-card.json
// GET /agents/{id}/v1/extendedAgentCard
//
// Types are intentionally permissive (extra fields allowed). We track only
// what the AIWG orchestrator inspects; the rest is forwarded opaquely.
export const TERMINAL_TASK_STATES = [
'completed',
'failed',
'canceled',
'rejected',
];
export function isTerminalTaskState(s) {
return TERMINAL_TASK_STATES.includes(s);
}
//# sourceMappingURL=types.js.map