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 • 829 B
JavaScript
import { createDriver } from './driver-cli.js';
import { ActionsDriver, CloudDriver } from './driver/index.js';
/** The one place an agent path turns `--run-on` into a real driver. */
export function createAgentDriver(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=agent-driver.js.map