// server/modules/orchestration/a2a/adapters/abstract-a2a.adapter.ts
// Base class every CLI adapter extends. Adapters wrap the
// existing per-CLI runtime files (claude-sdk.js, openai-codex.js, ...)
// and translate between A2A messages and the CLI's native I/O.
import { a2aBus } from '../../../../modules/orchestration/a2a/bus.js';
export class AbstractA2AAdapter {
    emitState(taskId, state, error) {
        a2aBus.publish({ kind: 'task-state', taskId, state, error });
    }
    emitMessage(taskId, message) {
        a2aBus.publish({ kind: 'message', taskId, message });
    }
    emitArtifact(taskId, artifact) {
        a2aBus.publish({ kind: 'artifact', taskId, artifact });
    }
}
//# sourceMappingURL=abstract-a2a.adapter.js.map