feat: Add support for running prompts on Netlify Agent Runners

This commit is contained in:
Sean Roberts
2026-03-24 10:51:22 -04:00
parent 0bd2b10706
commit ecee044716
3 changed files with 14 additions and 0 deletions

View File

@@ -31,6 +31,7 @@ export const codePlatforms: Platform[] = [
{ id: "goose", name: "Goose", baseUrl: "goose://recipe", isDeeplink: true },
{ id: "github-copilot", name: "GitHub Copilot Chat", baseUrl: "https://github.com/copilot" },
{ id: "github-copilot-agents", name: "GitHub Copilot Agents", baseUrl: "https://github.com/copilot/agents" },
{ id: "netlify", name: "Netlify", baseUrl: "https://app.netlify.com/run" },
{ id: "bolt", name: "Bolt", baseUrl: "https://bolt.new" },
{ id: "lovable", name: "Lovable", baseUrl: "https://lovable.dev" },
{ id: "v0", name: "v0", baseUrl: "https://v0.dev/chat" },
@@ -103,6 +104,8 @@ export function buildUrl(
return `${baseUrl}/?prompt=${encoded}`;
case "lovable":
return `${baseUrl}/?autosubmit=true#prompt=${encoded}`;
case "netlify":
return `${baseUrl}?prompt=${encoded}&ref=prompts-chat`;
case "mistral":
return `${baseUrl}?q=${encoded}`;
case "perplexity":

View File

@@ -192,6 +192,12 @@ export const codePlatforms: Platform[] = [
baseUrl: "https://github.com/copilot",
supportsQuerystring: true,
},
{
id: "netlify",
name: "Netlify",
baseUrl: "https://app.netlify.com/run",
supportsQuerystring: true,
},
{
id: "bolt",
name: "Bolt",
@@ -278,6 +284,8 @@ export function buildUrl(
return `${baseUrl}/?prompt=${encoded}`;
case "lovable":
return `${baseUrl}/?autosubmit=true#prompt=${encoded}`;
case "netlify":
return `${baseUrl}?prompt=${encoded}&ref=prompts-chat`;
case "mistral":
return `${baseUrl}?q=${encoded}`;
case "perplexity":

View File

@@ -91,6 +91,7 @@ const codePlatforms: Platform[] = [
{ name: "Copilot Agents", baseUrl: "https://github.com/copilot/agents" },
],
},
{ id: "netlify", name: "Netlify", baseUrl: "https://app.netlify.com/run" },
{ id: "bolt", name: "Bolt", baseUrl: "https://bolt.new" },
{ id: "lovable", name: "Lovable", baseUrl: "https://lovable.dev" },
{ id: "v0", name: "v0", baseUrl: "https://v0.dev/chat" },
@@ -173,6 +174,8 @@ function buildUrl(platformId: string, baseUrl: string, promptText: string, promp
return `${baseUrl}/?prompt=${encoded}`;
case "lovable":
return `${baseUrl}/?autosubmit=true#prompt=${encoded}`;
case "netlify":
return `${baseUrl}?prompt=${encoded}&ref=prompts-chat`;
case "mistral":
return `${baseUrl}?q=${encoded}`;
case "perplexity":