import { createRuntimeLifecycleDiagnostic, } from "../runtimeLifecycleDiagnostics.js";
export class NotConfiguredOpenCodeBinaryManager {
    async status() {
        return {
            state: "not_configured",
            ...createRuntimeLifecycleDiagnostic({
                reasonCode: "not_configured",
                phase: "configuration",
            }),
        };
    }
    async resolveVerifiedBinary() {
        throw new Error("OpenCode runtime launch refused: verified binary metadata is not configured.");
    }
}
export function statusFromVerifiedTarget(target) {
    const verifiedAt = new Date().toISOString();
    return {
        state: "verified",
        opencodeVersion: target.version,
        platform: target.platform,
        targetPath: target.targetPath,
        metadataVersions: target.metadataVersions,
        verifiedAt,
        timestamp: verifiedAt,
    };
}
