/**
 * Handler for agent_prompt_response messages.
 *
 * DEPRECATED: This handler is no longer supported with OpenCode.
 * Use permission_reply instead for handling permission prompts.
 *
 * The old Claude Code CLI used AskUserQuestion tool which required
 * a --resume with the user's answer. OpenCode uses a permission system
 * with permission_reply messages instead.
 */
import { ErrorCode } from "@pocketcoder/shared/constants";
import { logger } from "../utils/logger.js";
export async function handleAgentPromptResponse(message, send) {
    const msg = message;
    const { requestId } = msg;
    logger.warn("agent_prompt_response is deprecated - use permission_reply instead");
    send({
        type: "error",
        requestId,
        error: {
            code: ErrorCode.INVALID_REQUEST,
            message: "agent_prompt_response is deprecated. Use permission_reply for handling OpenCode permissions.",
        },
    });
}
//# sourceMappingURL=agent-prompt-response.js.map