Skip to content

Latest commit

 

History

History

sdk-typescript

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

README.md

@axoflow/adapter-sdk

TypeScript SDK for building AxoFlow coding agent adapters.

Install

npm install @axoflow/adapter-sdk

Usage

import { 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);

Schema

The SDK exports Zod schemas for runtime validation:

  • AdapterSchema — full adapter contract
  • StepRequestSchema — incoming step execution request
  • StepResponseSchema — step execution response