Workflow SDK adds idempotent starts
The Workflow SDK's start() function now allows initiating a workflow run and claiming a hook atomically, eliminating the race condition present in the previous getHookByToken()-then-start() pattern. This change ensures idempotency using a token derived from domain-specific identifiers like order or invoice IDs. Duplicate starts fail safely with a HookConflictError, which includes the conflicting run's ID. The claimed hook is available immediately, enabling early payload buffering and ordered delivery even before execution begins. Inside workflows, createHook with the same token binds to the existing hook without conflict or additional steps. Experimental settings like minRetention prevent late duplicates by keeping tokens reserved after run completion.