Skip to content

v0.14.2

Choose a tag to compare

@github-actions github-actions released this 22 Oct 19:27
· 122 commits to master since this release
v0.14.2
0e2adf4

SDK 0.14.2 fixes long-running and conversational jobs.

Fixes

  • Working jobs outlive idleTimeout; the caller answer or payment window starts when the request is emitted. Prompts and payment requests expose their deadline as expires_at_ms.
  • The stale-job sweep preserves a handler that is still running in its own process.
  • Completed steps get immediate persistence with bounded retries, reducing repeated side effects after a restart.

Breaking API changes

No public exports are removed or renamed. idleTimeout now applies only while waiting for caller input or payment; it must be an integer from 1 to 604800 seconds. Each prompt and payment request carries optional expires_at_ms in Unix milliseconds. JobStore.saveStep is additive and optional.

Migrations

No database migration is required for this patch. Replace invalid idleTimeout values before upgrading. Postgres persists completed steps before returning their result; custom stores without saveStep keep yield-time persistence. After three failed step writes the result still returns with a step_persist_failed diagnostic. A crash during an external action or exhausted writes can repeat it, so irreversible actions need a stable external idempotency key such as ${ctx.jobId}:${stepId}. The local stale-job sweep now preserves a handler that is still running in that process.

Compatibility requirements

Node 22 or newer; dependency floors are unchanged from 0.14.1. Older callers may ignore the additive deadline field.

dvmctl and platform prerequisites

None for direct SDK use. Existing dvmctl releases run their own pinned SDK; upgrading this package alone does not upgrade dvmctl dev or serve. Consumer upgrades and deployment qualification remain separate work.