Skip to content

Add Hono webhook mount to ingress - #4

Merged
TheGreatAxios merged 1 commit into
mainfrom
cl-5131-webhook-mount
Aug 3, 2026
Merged

Add Hono webhook mount to ingress#4
TheGreatAxios merged 1 commit into
mainfrom
cl-5131-webhook-mount

Conversation

@TheGreatAxios

Copy link
Copy Markdown
Contributor

Summary

  • Moves the Hono route wiring for the Granola webhook (mountGranolaWebhook) into src/ingress/mount.ts, alongside the verify/parse primitives it wraps.
  • Previously this lived in Scout's hub (hub/src/mounts/granola.ts) even though it imports nothing hub-specific — app: Hono is a plain constructor parameter, so the package can own it directly.
  • Exported from the ./ingress subpath alongside the existing exports.
  • hono added as a peerDependency (host supplies the instance) and devDependency (typecheck/tests).
  • Test file moved verbatim (import paths updated to relative).

Test plan

  • CI: check-deps, typecheck, test:tools, test:ingress, build all green

mountGranolaWebhook wires the existing verify/parse primitives into an
actual Hono route. It lived in Scout's hub as hub/src/mounts/granola.ts;
the host concretion (app) is a parameter, so it belongs with the rest of
the ingress logic it wraps, not in a consumer's hub.
@TheGreatAxios
TheGreatAxios merged commit dade10e into main Aug 3, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant