import { isCommandAvailable } from "../../../utils/executable.js";
import { ACPAgentClient } from "./acp-agent.js";
export class GenericACPAgentClient extends ACPAgentClient {
    constructor(options) {
        super({
            provider: "acp",
            logger: options.logger,
            runtimeSettings: {
                env: options.env,
            },
            defaultCommand: options.command,
        });
        this.command = options.command;
    }
    async resolveLaunchCommand() {
        return {
            command: this.command[0],
            args: this.command.slice(1),
        };
    }
    async isAvailable() {
        return isCommandAvailable(this.command[0]);
    }
}
//# sourceMappingURL=generic-acp-agent.js.map