// engine/agent-ready-exporter/formatters/devin.ts — Devin sandbox formatter — SPEC-318
/**
 * Augment an AgentReadySpec with Devin sandbox instructions.
 * Devin requires explicit environment setup and command sequences.
 */
export function formatDevin(spec) {
    const devinSpec = {
        ...spec,
        _format: 'devin',
        sandbox_instructions: {
            setup: [
                'Install project dependencies with the project package manager',
                'Run typecheck to verify environment is clean before starting',
                'Read existing tests to understand project conventions',
            ],
            run_tests: spec.agent_context.test_command,
            validate: spec.agent_context.validation_command,
            environment: 'Use the existing project environment — do not install new global tools',
        },
    };
    return JSON.stringify(devinSpec, null, 2);
}
//# sourceMappingURL=devin.js.map