
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="3f0b0d1d-67a5-56c6-adc0-eb8d72827f2b")}catch(e){}}();
import { SKYFIRE_TOOL_INSTRUCTIONS } from '../const.js';
import { buildMCPResponse } from './mcp.js';
/**
 * Checks if Skyfire mode is enabled and skyfire-pay-id is missing.
 * Returns error response if validation fails, otherwise returns null.
 *
 * @param apifyMcpServer - The MCP server instance with configuration options
 * @param args - Tool arguments that may contain skyfire-pay-id
 * @returns MCP error response if validation fails, null if validation passes
 */
export function validateSkyfirePayId(apifyMcpServer, args) {
    if (apifyMcpServer.options.skyfireMode && args['skyfire-pay-id'] === undefined) {
        return buildMCPResponse({
            texts: [SKYFIRE_TOOL_INSTRUCTIONS],
        });
    }
    return null;
}
//# sourceMappingURL=skyfire.js.map
//# debugId=3f0b0d1d-67a5-56c6-adc0-eb8d72827f2b
