PersistentAI API Documentation / @persistentai/fireflow-trpc / server / handleLakeFSWebhook
Function: handleLakeFSWebhook()
handleLakeFSWebhook(
req,res,secret):Promise<void>
Defined in: packages/fireflow-trpc/server/webhook/lakefs-handler.ts:59
Handle incoming lakeFS webhook
This handler is triggered by lakeFS after commits, merges, and branch operations. It generates VFS events and publishes them to Redis for real-time client updates.
Flow:
- Validate webhook secret (constant-time comparison)
- Parse and validate payload
- Skip system commits (action file deployment)
- Resolve workspace from repository_id
- Resolve user from commit metadata
- Fetch diff and generate events for each changed file
- Publish to Redis, insert to DB, queue for flow routing
Parameters
req
IncomingMessage
res
ServerResponse
secret
string
Returns
Promise<void>