TypeScript SDK for building AxoFlow coding agent adapters.
npm install @axoflow/adapter-sdkimport { AdapterSchema, type Adapter } from '@axoflow/adapter-sdk';
const myAdapter: Adapter = {
name: 'my-agent',
displayName: 'My Agent',
capabilities: ['generate', 'edit'],
detect: () => true,
healthcheck: async () => ({ status: 'ok', version: '1.0.0' }),
buildPrompt: (goal, context, step) => `${goal}\n${context}\n${step}`,
runPlanStep: async (prompt) => ({
success: true,
output: 'Done',
}),
};
// Validate at runtime
AdapterSchema.parse(myAdapter);The SDK exports Zod schemas for runtime validation:
AdapterSchema— full adapter contractStepRequestSchema— incoming step execution requestStepResponseSchema— step execution response