From 45596e19cc74e7396c87f2f32df54e1d4ec2bc57 Mon Sep 17 00:00:00 2001 From: Yash Dewasthale Date: Fri, 3 Jul 2026 14:04:11 +0530 Subject: [PATCH] fix prod --- apps/supercode-cli/server/package.json | 2 +- apps/supercode-cli/server/src/lib/firecrawl.ts | 6 +++--- .../server/src/tools/definitions/web-search.ts | 5 ++--- 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/apps/supercode-cli/server/package.json b/apps/supercode-cli/server/package.json index 017fe8d..2cc97cc 100644 --- a/apps/supercode-cli/server/package.json +++ b/apps/supercode-cli/server/package.json @@ -1,6 +1,6 @@ { "name": "supercode-cli", - "version": "0.1.35", + "version": "0.1.36", "description": "AI-powered coding agent CLI", "main": "dist/main.js", "bin": { diff --git a/apps/supercode-cli/server/src/lib/firecrawl.ts b/apps/supercode-cli/server/src/lib/firecrawl.ts index 0adfc0b..710abe8 100644 --- a/apps/supercode-cli/server/src/lib/firecrawl.ts +++ b/apps/supercode-cli/server/src/lib/firecrawl.ts @@ -36,13 +36,13 @@ export async function firecrawlFetch({ loadEnvOnce() const apiKey = process.env.FIRECRAWL_API_KEY - if (!apiKey) { + if (!apiKey) { const proxy = await proxyToolCall(`/api/tools/${proxyAction}`, body) if (proxy.ok) return { ok: true, data: proxy.data } return { ok: false, - error: "Firecrawl is not configured. Set FIRECRAWL_API_KEY environment variable.", - hint: "Try web_search or url_fetch as a fallback.", + error: `Firecrawl proxy failed: ${proxy.error}. Set FIRECRAWL_API_KEY environment variable locally, or fix the proxy issue above.`, + hint: `Proxy error: ${proxy.error}. Try web_search or url_fetch as a fallback.`, } } diff --git a/apps/supercode-cli/server/src/tools/definitions/web-search.ts b/apps/supercode-cli/server/src/tools/definitions/web-search.ts index ae99e21..23d89d8 100644 --- a/apps/supercode-cli/server/src/tools/definitions/web-search.ts +++ b/apps/supercode-cli/server/src/tools/definitions/web-search.ts @@ -46,9 +46,8 @@ export const webSearchTool = { return JSON.stringify({ success: false, - error: - "Web search is not configured. Set GOOGLE_API_KEY and GOOGLE_CSE_ID environment variables.", - hint: + error: `Web search proxy failed: ${proxy.error}. Set GOOGLE_API_KEY and GOOGLE_CSE_ID environment variables locally, or fix the proxy issue above.`, + hint: `Proxy error details: ${proxy.error}. ` + "Tell the user web_search is unavailable and suggest alternatives: " + "(1) ask the user to provide a specific URL and call url_fetch on it, " + "(2) call url_fetch on a known URL (e.g. api.github.com/repos/{owner}/{name} for GitHub, " +