UNPKG

framework

Version:

The (AI) Framework: turnkey, zero-config AI orchestration that wraps a coding-agent CLI (Claude Code) as a black box and takes you from an idea to a running app. Vite for AI.

17 lines 817 B
import { createDriver } from './agent.js'; import { ActionsDriver, CloudDriver } from './driver/index.js'; /** The one place a run path turns `--run-on` into a real driver. */ export function createRunDriver(opts) { if (opts.target === 'actions') { if (!opts.actionsConfig) { throw new Error('run target "actions" needs the repo owner/repo and a GitHub token; set a GitHub origin remote and GH_TOKEN'); } return new ActionsDriver(opts.actionsConfig); } // `web` needs no configuration of ours: the CLI already holds the account it signs the // cloud session in with, the same auth the local driver runs on. if (opts.target === 'web') return new CloudDriver(opts.cloudConfig ?? {}); return createDriver(opts); } //# sourceMappingURL=run-driver.js.map