Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/DamienBench/a2a-mcp-webhook-workshop
/ functions
Functions
181 in github.com/DamienBench/a2a-mcp-webhook-workshop
⨍
Functions
181
◇
Types & classes
59
↓ 35 callers
Function
addTerminalLine
(text, shouldScroll = true)
src/webhooks/public/js/app.js:1831
↓ 25 callers
Function
colorize
(color: keyof typeof colors, text: string)
src/cli.ts:34
↓ 9 callers
Function
debug
(...args: any[])
src/agents/host/index.ts:55
↓ 8 callers
Method
applyUpdateToTaskAndHistory
( current: TaskAndHistory, update: Omit<schema.TaskStatus, "timestamp"> | schema.Artifact )
src/a2a/server/server.ts:50
↓ 7 callers
Function
createDashboardUI
()
src/webhooks/public/js/app.js:230
↓ 7 callers
Method
save
* Saves a task and its associated message history. * Overwrites existing data if the task ID exists. * @param data An object containing the task
src/a2a/server/store.ts:28
↓ 6 callers
Function
convertUrlsToLinks
(text)
src/webhooks/public/js/app.js:1078
↓ 6 callers
Method
internalError
(message: string, data?: unknown)
src/a2a/server/error.ts:59
↓ 6 callers
Method
invalidParams
(message: string, data?: unknown)
src/a2a/server/error.ts:55
↓ 5 callers
Method
_handleJsonResponse
* Handles standard JSON-RPC responses (non-streaming). * Parses the response, checks for JSON-RPC errors, and returns ONLY the 'result' payload.
src/a2a/client/client.ts:138
↓ 5 callers
Method
normalizeError
Normalizes various error types into a JSONRPCResponse containing an error
src/a2a/server/server.ts:716
↓ 4 callers
Method
createSuccessResponse
( id: number | string | null, result: T )
src/a2a/server/server.ts:686
↓ 4 callers
Function
fetchWebhooks
()
src/webhooks/public/js/app.js:1953
↓ 4 callers
Function
gracefulShutdown
(signal: string)
src/webhooks/index.ts:35
↓ 4 callers
Method
recordWebhookInvocation
* Record a webhook invocation and update statistics
src/webhooks/server.ts:642
↓ 4 callers
Function
scrollToBottom
()
src/webhooks/public/js/app.js:1716
↓ 4 callers
Method
sendJsonResponse
Sends a standard JSON success response
src/a2a/server/server.ts:837
↓ 4 callers
Function
setupWebhookTableRowListeners
()
src/webhooks/public/js/app.js:553
↓ 4 callers
Method
start
* Starts the Express server listening on the specified port. * @param port Port number to listen on. Defaults to 41240. * @returns The running E
src/a2a/server/server.ts:142
↓ 3 callers
Method
agentCard
()
src/a2a/client/client.ts:355
↓ 3 callers
Function
createMcpClient
(name: string = "a2a-mcp-client")
src/mcp/client.ts:16
↓ 3 callers
Method
createTaskStatusEvent
Creates a TaskStatusUpdateEvent object
src/a2a/server/server.ts:748
↓ 3 callers
Function
fetchWebhookStats
()
src/webhooks/public/js/app.js:166
↓ 3 callers
Method
load
* Loads a task and its history by task ID. * @param taskId The ID of the task to load. * @returns A promise resolving to an object containing th
src/a2a/server/store.ts:35
↓ 3 callers
Function
registerAgent
(agentType: string, agentUrl: string)
src/agents/host/genkit.ts:205
↓ 3 callers
Method
saveStats
* Save statistics to file
src/webhooks/server.ts:856
↓ 3 callers
Method
sendTask
* Sends a task request to the agent (non-streaming). * @param params The parameters for the tasks/send method. * @returns A promise resolving to
src/a2a/client/client.ts:398
↓ 3 callers
Method
updateAgentInvocationStats
(agentType: string)
src/webhooks/server.ts:1220
↓ 3 callers
Function
updateAgentTerminal
(agentType)
src/webhooks/public/js/app.js:1583
↓ 3 callers
Function
updateTestPayload
()
src/webhooks/public/js/app.js:1871
↓ 2 callers
Method
_handleStreamingResponse
* Handles streaming Server-Sent Events (SSE) responses. * Returns an AsyncIterable that yields ONLY the 'result' payloads (events). * Throws Rpc
src/a2a/client/client.ts:229
↓ 2 callers
Method
createTaskContext
( task: schema.Task, userMessage: schema.Message, history: schema.Message[] // Add history paramet
src/a2a/server/server.ts:634
↓ 2 callers
Method
determineWebhookSuccess
* A helper method to determine if a webhook execution was successful
src/webhooks/server.ts:1062
↓ 2 callers
Method
ensureDirectoryExists
()
src/a2a/server/store.ts:75
↓ 2 callers
Function
fetchAgentLogs
(agentType, pollingId)
src/webhooks/public/js/app.js:1727
↓ 2 callers
Function
fetchRemoteAgentActivity
(agentType, pollingId)
src/webhooks/public/js/app.js:2269
↓ 2 callers
Function
generateTaskId
()
src/cli.ts:38
↓ 2 callers
Function
generateWebhookTableRows
(webhooks)
src/webhooks/public/js/app.js:415
↓ 2 callers
Function
getAgentIconClass
(agentType)
src/webhooks/public/js/app.js:1066
↓ 2 callers
Function
getCurrentTimestamp
()
src/a2a/server/utils.ts:5
↓ 2 callers
Method
getHistoryFilePath
(taskId: string)
src/a2a/server/store.ts:92
↓ 2 callers
Function
getHostTools
()
src/agents/host/genkit.ts:220
↓ 2 callers
Method
getTaskFilePath
(taskId: string)
src/a2a/server/store.ts:86
↓ 2 callers
Function
handleNavigation
(hash)
src/webhooks/public/js/app.js:1162
↓ 2 callers
Function
isArtifactUpdate
( update: any // eslint-disable-line @typescript-eslint/no-explicit-any )
src/a2a/server/utils.ts:33
↓ 2 callers
Function
isObject
(value: unknown)
src/a2a/server/utils.ts:14
↓ 2 callers
Function
isTaskStatusUpdate
( update: any // eslint-disable-line @typescript-eslint/no-explicit-any )
src/a2a/server/utils.ts:22
↓ 2 callers
Function
loadAgentConfig
()
src/agents/host/index.ts:135
↓ 2 callers
Method
loadOrCreateTaskAndHistory
( taskId: string, initialMessage: schema.Message, sessionId?: string | null, // Allow null met
src/a2a/server/server.ts:551
↓ 2 callers
Function
printMessageContent
(message: Message)
src/cli.ts:120
↓ 2 callers
Method
processWebhookAsync
* Process webhook data asynchronously
src/webhooks/server.ts:265
↓ 2 callers
Method
saveConfiguration
* Save a webhook configuration to disk
src/webhooks/server.ts:145
↓ 2 callers
Function
sendAgentTask
* Send a task to an agent and get the result
src/agents/host/index.ts:927
↓ 2 callers
Function
showWebhookModal
(webhook = null)
src/webhooks/public/js/app.js:1896
↓ 2 callers
Method
taskNotFound
(taskId: string)
src/a2a/server/error.ts:63
↓ 2 callers
Function
updateDashboard
()
src/webhooks/public/js/app.js:203
↓ 2 callers
Function
updateWebhookStats
(webhookId, status)
src/webhooks/public/js/app.js:1577
↓ 2 callers
Method
validateTaskSendParams
( params: any )
src/a2a/server/server.ts:663
↓ 2 callers
Method
writeJsonFile
(filePath: string, data: any)
src/a2a/server/store.ts:131
↓ 1 callers
Method
_generateRequestId
* Helper to generate unique request IDs. * Uses crypto.randomUUID if available, otherwise a simple timestamp-based fallback.
src/a2a/client/client.ts:75
↓ 1 callers
Function
addSingleLine
(text, shouldScroll = true)
src/webhooks/public/js/app.js:1837
↓ 1 callers
Function
analyzeContentWithLLM
* Analyze content with LLM and identify tasks for specific agents
src/agents/host/index.ts:969
↓ 1 callers
Function
benchAgent
* Bench agent that can interact with the Bench API
src/agents/bench/index.ts:27
↓ 1 callers
Method
createErrorResponse
( id: number | string | null, error: schema.JSONRPCError<unknown> )
src/a2a/server/server.ts:703
↓ 1 callers
Function
createGithubIssue
(args: any)
src/mcp/github.ts:21
↓ 1 callers
Method
createTaskArtifactEvent
Creates a TaskArtifactUpdateEvent object
src/a2a/server/server.ts:761
↓ 1 callers
Function
determineActualWebhookStatus
(webhook)
src/webhooks/public/js/app.js:449
↓ 1 callers
Method
endpoint
* Returns an Express RequestHandler function to handle A2A requests.
src/a2a/server/server.ts:182
↓ 1 callers
Function
fetchAgentCapabilities
* Fetch agent capabilities from its agent card
src/agents/host/index.ts:71
↓ 1 callers
Function
fetchAgentInfo
* Fetch agent information from its agent card
src/agents/host/genkit.ts:47
↓ 1 callers
Function
fetchAndDisplayAgentCard
()
src/cli.ts:149
↓ 1 callers
Function
formatJson
()
src/webhooks/public/js/app.js:1152
↓ 1 callers
Function
getBenchTools
()
src/agents/bench/genkit.ts:121
↓ 1 callers
Function
getGithubTools
()
src/agents/github/genkit.ts:119
↓ 1 callers
Function
getMcpClient
()
src/mcp/slack.ts:8
↓ 1 callers
Function
getMcpClient
()
src/mcp/github.ts:8
↓ 1 callers
Function
getSlackTools
()
src/agents/slack/genkit.ts:159
↓ 1 callers
Function
githubAgent
* GitHub agent that can create issues
src/agents/github/index.ts:28
↓ 1 callers
Method
handleTaskCancel
( req: schema.CancelTaskRequest, res: Response )
src/a2a/server/server.ts:502
↓ 1 callers
Method
handleTaskGet
( req: schema.GetTaskRequest, res: Response )
src/a2a/server/server.ts:486
↓ 1 callers
Method
handleTaskSend
( req: schema.SendTaskRequest, res: Response )
src/a2a/server/server.ts:235
↓ 1 callers
Method
handleTaskSendSubscribe
( req: schema.SendTaskStreamingRequest, res: Response )
src/a2a/server/server.ts:305
↓ 1 callers
Function
hashLogEntries
(entries)
src/webhooks/public/js/app.js:1799
↓ 1 callers
Function
init
()
src/webhooks/public/js/app.js:106
↓ 1 callers
Function
initDashboard
()
src/webhooks/public/js/app.js:140
↓ 1 callers
Function
initServer
* Start the A2A server for Host agent
src/agents/host/index.ts:1195
↓ 1 callers
Function
initServer
* Start the A2A server for GitHub agent
src/agents/github/index.ts:196
↓ 1 callers
Function
initServer
* Start the A2A server for Slack agent
src/agents/slack/index.ts:183
↓ 1 callers
Function
initServer
* Start the A2A server for Bench agent
src/agents/bench/index.ts:202
↓ 1 callers
Function
initializeAgentDetection
()
src/webhooks/public/js/app.js:2217
↓ 1 callers
Function
initializeAgentMaps
()
src/agents/host/index.ts:220
↓ 1 callers
Function
initializeTerminal
()
src/webhooks/public/js/app.js:1856
↓ 1 callers
Method
invalidRequest
(message: string, data?: unknown)
src/a2a/server/error.ts:44
↓ 1 callers
Method
isHistoryFileContent
( content: any )
src/a2a/server/store.ts:102
↓ 1 callers
Method
isValidJsonRpcRequest
(body: any)
src/a2a/server/server.ts:648
↓ 1 callers
Method
loadStats
* Load statistics from file
src/webhooks/server.ts:881
↓ 1 callers
Method
loadWebhookConfigurations
* Load all webhook configurations from the host agent config directory
src/webhooks/server.ts:110
↓ 1 callers
Function
main
()
src/cli.ts:183
↓ 1 callers
Function
main
* Main function to start the server
src/agents/host/index.ts:1291
↓ 1 callers
Function
main
* Main function to either run a test or start the server
src/agents/github/index.ts:244
next →
1–100 of 181, ranked by callers