mirror of
https://github.com/multica-ai/multica.git
synced 2026-07-31 00:40:46 +02:00
Sync with latest main and resolve the migration prefix collision that kept backend CI red: main added 167-183 (resource labels, webhook delivery, chat drafts) while this branch owned 167-173 (attribution + admission). Renumber this branch's seven migrations to 184-190 so every prefix is unique. Conflicts resolved: - server/internal/service/autopilot.go: union of main's webhook-delivery durability (AdmitAutopilotWebhookDelivery / DispatchAutopilotForWebhookDelivery, webhookDeliveryID threading, dispatchAutopilot→dispatchAutopilotRun split) with this branch's admission surface (actorUserID + typed dispatch.ReasonCode through dispatchAutopilot / dispatchAutopilotRun / shouldSkipDispatch / handleDispatchSkip, DispatchAutopilotManual). recordSkippedRun now takes both webhookDeliveryID and reason. - packages/core/api/client.test.ts: kept both sides' new cancelTaskById test cases. sqlc regenerated. Migrations apply cleanly on a fresh DB through 190 and are idempotent; migration lint + full internal/handler, internal/service, internal/attribution, cmd/server suites green; core+views typecheck and affected vitest green. Co-authored-by: multica-agent <github@multica.ai>