Repository navigation
Closed
Description
Summary
The TypeScript ADK (@inference-gateway/adk) now ships HTTPPushNotificationSender, the delivery primitive that POSTs TaskUpdateNotification JSON payloads to webhooks configured via MessageSendConfiguration.pushNotificationConfig (inference-gateway/typescript-adk#38, merged in inference-gateway/typescript-adk#93). Documentation should cover the wire payload, the sender's retry/auth/concurrency contract, and how it mirrors the Go ADK's push sender.
Behavior shipped:
- New
HTTPPushNotificationSenderclass in@inference-gateway/adk(re-exported from the server barrel). sendTaskUpdate(config, task)posts one delivery with exponential-backoff retry. Defaults: 3 attempts, 500 ms base, 30 s max. Retries 5xx, 429, network errors, and per-attempt timeouts. 4xx and caller aborts are non-retryable.deliverTaskUpdate(configs, task, { concurrency })is the fan-out helper. Never throws, logs failures via the structured logger, caps in-flight POSTs (default 8), and returns a per-configDeliveryResultarray.- Wire payload:
{ type: 'task_update', taskId, state, timestamp, task }. - Auth header derived from
config.token(bearer) orconfig.authentication.schemes(bearer or basic). - Per-attempt timeout via
AbortSignal.timeout, composed with the caller-suppliedAbortSignalusingAbortSignal.any. - Uses
globalThis.fetch(undici on Node 22+); aPushNotificationFetchLikealias is exported for test injection. - Exported tunables:
DEFAULT_PUSH_NOTIFICATION_TIMEOUT_MS,DEFAULT_PUSH_NOTIFICATION_CONCURRENCY,DEFAULT_PUSH_NOTIFICATION_RETRY_CONFIG.
Reference implementations:
- Go ADK:
inference-gateway/adkserver/push_notification_sender.go - TypeScript ADK source:
inference-gateway/typescript-adksrc/server/push-notification-sender.ts - Originating issue: [FEATURE] feat: implement HTTP push notification delivery typescript-adk#38
- Originating PR: feat: implement HTTP push notification delivery typescript-adk#93
Acceptance Criteria
- Document the
TaskUpdateNotificationwire payload (type,taskId,state,timestamp,task) and that POSTs are emitted on every task state transition. - Document
HTTPPushNotificationSenderusage:sendTaskUpdatefor one-shot delivery anddeliverTaskUpdatefor fan-out, including the default concurrency cap and the "never throws, logs and returns results" contract for the fan-out helper. - Document the retry policy (default 3 attempts, exponential backoff with 500 ms base and 30 s cap, retryable vs non-retryable status classes) and how to override it via
PushNotificationRetryConfig. - Document the auth header resolution order (
config.tokenfirst, thenconfig.authentication.schemesbearer or basic) and what happens when neither is provided. - Document how a client configures push notifications per task via
MessageSendConfiguration.pushNotificationConfigon the initialmessage/send, with a minimal request/response example. - Note that the sender is the delivery primitive only; wiring it into the task-state-transition pipeline (subscribing to
TaskEventBusTASK_STATUS_CHANGEDand callingdeliverTaskUpdate) is a follow-up integration step and not done automatically yet. - Cross-link from the TypeScript ADK docs section back to the Go ADK equivalent (
server/push_notification_sender.go).
Metadata
Metadata
Assignees
Labels
No labels
Activity
edenreich commentedon May 28, 2026
@claude Can you document it? use /maintainer
claude commentedon May 28, 2026
Claude finished @edenreich's task in 7m 15s —— View job •
claude/issue-83-20260528-1707• Create PR ➔Documenting HTTP Push Notification Delivery in the TypeScript ADK
Done. Pushed
c568e6ftoclaude/issue-83-20260528-1707.Todo
/maintainerskill and gather repo contextinference-gateway/typescript-adk(HTTPPushNotificationSender,sendTaskUpdate/deliverTaskUpdate, exported tunables,PushNotificationFetchLikealias re-exported from server barrel, auth resolution order, retry classes, wire payload,PushNotificationSendError)typescript-adk.md(### Wire payload,### Outbound request shape,### Constructor,### sendTaskUpdate,### deliverTaskUpdate,### Retry policy,### Auth header resolution,### PushNotificationSendError,### Configuring push notifications per task,### Bridging into the state-transition pipeline (follow-up),### Cross-reference)HTTPPushNotificationSenderand added a parity bullet under "Parity with the Go ADK"descriptionso the new surface is discoverable in searchnpm run format(prettier wrote the new section in-place)npm run lint:md(no warnings)npm run build(VitePress SSR built clean, sitemap generated)Acceptance-criteria coverage
TaskUpdateNotificationwire payload + per-transition emissionsendTaskUpdate(one-shot) anddeliverTaskUpdate(fan-out, default concurrency cap, never-throws contract)sendTaskUpdate+deliverTaskUpdatePushNotificationRetryConfig)config.token->config.authentication.schemes; fallback to no header)MessageSendConfiguration.pushNotificationConfig+ minimal req/respserver/push_notification_sender.goPR
| Branch:
claude/issue-83-20260528-1707docs(typescript-adk): document HTTP push notification delivery
docs(typescript-adk): document HTTP push notification delivery (#84)