Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use matching middleware as context in ai req generation (#214)
* Add some helpers for finding potential matching middleware for current path * Introduce concept of registrationOrder in app routes table * Use an actual primary key on app routes table and implement less than ideal updating logic to accomodate having lots of middleware in the table * Sort active routes by registration order * Refactor to use findAllSmartRouterMatches * Propagate middleware to ai when present * Do all probed route updating in a transaction and sort routes in the routes panel in their registration order * Remove tab * Add some safeguards so we do not add middleware context to non-service routes * Fix type error in match.test.ts * Use validated payload for inference route * Format * Fix type error * Fix error from WebhoncBadge in the browser console * Update studio/src/pages/RequestorPage/reducer/reducer.ts
- Loading branch information