export function createKimiProvider(options) {
    const { runner, priority = 100 } = options;
    return {
        id: "kimi",
        kind: "kimi-native",
        priority,
        supports(_task) {
            return true;
        },
        async run(input) {
            const result = await runner.run(input.node, input.env);
            return {
                success: result.success,
                exitCode: result.exitCode,
                stdout: result.stdout,
                stderr: result.stderr,
                metadata: result.metadata,
            };
        },
        async health() {
            return {
                available: true,
                lastCheckedAt: Date.now(),
            };
        },
    };
}
