Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion apps/supercode-cli/server/package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
6 changes: 3 additions & 3 deletions apps/supercode-cli/server/src/lib/firecrawl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.`,
}
}

Expand Down
5 changes: 2 additions & 3 deletions apps/supercode-cli/server/src/tools/definitions/web-search.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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, " +
Expand Down
Loading