Skip to content

Commit 45596e1

Browse files
committed
fix prod
1 parent b4331ab commit 45596e1

3 files changed

Lines changed: 6 additions & 7 deletions

File tree

apps/supercode-cli/server/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "supercode-cli",
3-
"version": "0.1.35",
3+
"version": "0.1.36",
44
"description": "AI-powered coding agent CLI",
55
"main": "dist/main.js",
66
"bin": {

apps/supercode-cli/server/src/lib/firecrawl.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,13 @@ export async function firecrawlFetch({
3636
loadEnvOnce()
3737
const apiKey = process.env.FIRECRAWL_API_KEY
3838

39-
if (!apiKey) {
39+
if (!apiKey) {
4040
const proxy = await proxyToolCall(`/api/tools/${proxyAction}`, body)
4141
if (proxy.ok) return { ok: true, data: proxy.data }
4242
return {
4343
ok: false,
44-
error: "Firecrawl is not configured. Set FIRECRAWL_API_KEY environment variable.",
45-
hint: "Try web_search or url_fetch as a fallback.",
44+
error: `Firecrawl proxy failed: ${proxy.error}. Set FIRECRAWL_API_KEY environment variable locally, or fix the proxy issue above.`,
45+
hint: `Proxy error: ${proxy.error}. Try web_search or url_fetch as a fallback.`,
4646
}
4747
}
4848

apps/supercode-cli/server/src/tools/definitions/web-search.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,8 @@ export const webSearchTool = {
4646

4747
return JSON.stringify({
4848
success: false,
49-
error:
50-
"Web search is not configured. Set GOOGLE_API_KEY and GOOGLE_CSE_ID environment variables.",
51-
hint:
49+
error: `Web search proxy failed: ${proxy.error}. Set GOOGLE_API_KEY and GOOGLE_CSE_ID environment variables locally, or fix the proxy issue above.`,
50+
hint: `Proxy error details: ${proxy.error}. ` +
5251
"Tell the user web_search is unavailable and suggest alternatives: " +
5352
"(1) ask the user to provide a specific URL and call url_fetch on it, " +
5453
"(2) call url_fetch on a known URL (e.g. api.github.com/repos/{owner}/{name} for GitHub, " +

0 commit comments

Comments
 (0)