add urls to agent manifest
This commit is contained in:
@@ -12,6 +12,7 @@ export const ghPullfrogMcpName = "gh_pullfrog";
|
||||
export interface AgentManifest {
|
||||
displayName: string;
|
||||
apiKeyNames: string[];
|
||||
url: string;
|
||||
}
|
||||
|
||||
// agent manifest - static metadata about available agents
|
||||
@@ -19,18 +20,22 @@ export const agentsManifest = {
|
||||
claude: {
|
||||
displayName: "Claude Code",
|
||||
apiKeyNames: ["anthropic_api_key"],
|
||||
url: "https://claude.com/claude-code",
|
||||
},
|
||||
codex: {
|
||||
displayName: "Codex CLI",
|
||||
apiKeyNames: ["openai_api_key"],
|
||||
url: "https://platform.openai.com/docs/guides/codex",
|
||||
},
|
||||
cursor: {
|
||||
displayName: "Cursor CLI",
|
||||
apiKeyNames: ["cursor_api_key"],
|
||||
url: "https://cursor.com/",
|
||||
},
|
||||
gemini: {
|
||||
displayName: "Gemini CLI",
|
||||
apiKeyNames: ["google_api_key", "gemini_api_key"],
|
||||
url: "https://ai.google.dev/gemini-api/docs",
|
||||
},
|
||||
} as const satisfies Record<string, AgentManifest>;
|
||||
|
||||
|
||||
+1
-12
@@ -11,18 +11,7 @@ function buildCommentFooter(payload: Payload): string {
|
||||
const agentName = payload.agent;
|
||||
const agentInfo = agentName ? agentsManifest[agentName] : null;
|
||||
const agentDisplayName = agentInfo?.displayName || "Unknown Agent";
|
||||
|
||||
// agent URLs based on manifest
|
||||
const agentUrls: Record<string, string> = {
|
||||
claude: "https://claude.com/claude-code",
|
||||
codex: "https://platform.openai.com/docs/guides/codex",
|
||||
cursor: "https://cursor.com/",
|
||||
gemini: "https://ai.google.dev/gemini-api/docs",
|
||||
};
|
||||
|
||||
const agentUrl = agentName
|
||||
? agentUrls[agentName] || "https://pullfrog.ai"
|
||||
: "https://pullfrog.ai";
|
||||
const agentUrl = agentInfo?.url || "https://pullfrog.ai";
|
||||
|
||||
// build workflow run URL
|
||||
const workflowRunUrl = runId
|
||||
|
||||
Reference in New Issue
Block a user