Feat/webhook system pushed#266
Open
GreatShinro wants to merge 5 commits into
Open
Conversation
- Add WebhookSubscription and WebhookDelivery Prisma models - CRUD endpoints under /api/webhooks (Bearer JWT auth) - HMAC-SHA256 payload signing via X-Neurowealth-Signature header - Dispatch with 3-attempt exponential back-off, persisted delivery log - Wire dispatch into stellar events, agent loop, and tx controller - Unit tests for signature generation and retry logic (13 tests) - OpenAPI spec updated with webhooks tag and schemas
- lint-staged runs eslint --fix + prettier --write on staged src/tests *.ts - pre-push runs full test suite with --passWithNoTests - prepare script wires husky on npm install
|
@GreatShinro Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
chore: Git Hooks — Pre-commit Linting & Pre-push Tests
Summary
Adds
husky+lint-stagedso formatting and lint errors are caught locally before they reach CI, and the test suite runs automatically before every push.What Changed
Hook Behaviour
npm installhusky(viaprepare)git commitnpx lint-stagedsrc/**/*.tsandtests/**/*.ts; fixed files are re-stagedgit pushnpm test -- --passWithNoTestslint-staged Config
Acceptance Criteria
npm installsets up hooks automatically viapreparescriptNotes
.envvars, logic bugs inclient.test.ts) are unrelated to this change — they fail identically onmain. They will pass once a valid.envis in place.git commit --no-verifyorgit push --no-verifyonly when intentionally bypassing hooks (e.g. WIP commits, CI-only env setups).closes #221