* Get configured webhook URLs from environment variables. * * Supports: * - AGENTATION_WEBHOOK_URL: Single webhook URL * - AGENTATION_WEBHOOKS: Comma-separated list of webhook URLs
()
| 108 | * - AGENTATION_WEBHOOKS: Comma-separated list of webhook URLs |
| 109 | */ |
| 110 | function getWebhookUrls(): string[] { |
| 111 | const urls: string[] = []; |
| 112 | |
| 113 | // Single webhook URL |
| 114 | const singleUrl = process.env.AGENTATION_WEBHOOK_URL; |
| 115 | if (singleUrl) { |
| 116 | urls.push(singleUrl.trim()); |
| 117 | } |
| 118 | |
| 119 | // Multiple webhook URLs (comma-separated) |
| 120 | const multipleUrls = process.env.AGENTATION_WEBHOOKS; |
| 121 | if (multipleUrls) { |
| 122 | const parsed = multipleUrls |
| 123 | .split(",") |
| 124 | .map((url) => url.trim()) |
| 125 | .filter((url) => url.length > 0); |
| 126 | urls.push(...parsed); |
| 127 | } |
| 128 | |
| 129 | return urls; |
| 130 | } |
| 131 | |
| 132 | /** |
| 133 | * Send webhook notification for an action request. |
no outgoing calls
no test coverage detected
searching dependent graphs…