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