Skip to content

feat: Task Dispatch Pipeline — ClickUp → portal → worker → commit - #13

Merged
davidminin merged 1 commit into
mainfrom
feat/task-dispatch-pipeline
Apr 19, 2026
Merged

feat: Task Dispatch Pipeline — ClickUp → portal → worker → commit#13
davidminin merged 1 commit into
mainfrom
feat/task-dispatch-pipeline

Conversation

@davidminin

Copy link
Copy Markdown
Owner

🎯 Task Dispatch Pipeline (piece 3/3 for self-sustaining)

The glue that wires everything together. When a ClickUp task moves to "in progress", the system automatically dispatches a code-gen task to a worker, which reads the repo, calls an LLM, and commits the changes.

The full loop

Phone → ClickUp task → webhook → portal → worker → LLM → commit → Vercel rebuild → phone preview

Files (5)

File Lines What it does
lib/tasks.ts 188 Task management — create, dispatch, track. Converts ClickUp events to code-gen tasks.
api/tasks/route.ts 95 REST API — GET (list tasks), POST (create + dispatch), PATCH (update result)
tasks/page.tsx 251 Dashboard — create tasks from phone, monitor status, view commit results
webhooks/clickup/route.ts 88 Upgraded — now auto-dispatches to workers alongside n8n forwarding
n8n/workflows/clickup-to-codegen.json Ready-to-import n8n workflow template

ClickUp → Task conversion

ClickUp Event Task Type Trigger
taskStatusUpdated → "in progress" code-gen Auto-creates branch, dispatches to worker
taskCommentPosted feedback Treats comment as feedback, applies changes

Depends on

🎉 All 3 pieces complete!

  1. ✅ LLM Provider Config (PR feat: LLM Provider Configuration #10)
  2. ✅ Code-Aware Worker (PR feat: code-aware worker — reads repo, calls LLM, commits changes #11)
  3. ✅ Task Dispatch Pipeline (this PR)

- lib/tasks.ts: task management (create, dispatch, track, ClickUp event conversion)
- api/tasks: REST endpoint for creating/listing/dispatching tasks
- tasks page: dashboard to create tasks and monitor progress
- webhooks/clickup: upgraded to auto-dispatch tasks to workers
- n8n workflow template: ClickUp status change → portal dispatch

This is the glue (piece 3/3): when a ClickUp task moves to 'in progress',
the webhook triggers a code-gen task dispatched to a worker, which reads
the repo, calls the LLM, and commits changes. Vercel auto-rebuilds.

The full loop: phone feedback → ClickUp → n8n → worker → commit → deploy.
@davidminin
davidminin merged commit 77fc7c7 into main Apr 19, 2026
1 check failed
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