@adonis-agora/durable 0.43.0 → 0.43.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +11 -0
- package/dist/assets/spa/assets/index-r4U_iU3o.js +16 -0
- package/dist/assets/spa/assets/index-r4U_iU3o.js.map +1 -0
- package/dist/assets/spa/index.html +1 -1
- package/dist/src/dashboard/index.d.ts +1 -1
- package/dist/src/dashboard/index.js +1 -1
- package/dist/src/engine.d.ts +17 -0
- package/dist/src/engine.d.ts.map +1 -1
- package/dist/src/engine.js +43 -15
- package/dist/src/engine.js.map +1 -1
- package/dist/src/errors.d.ts +20 -0
- package/dist/src/errors.d.ts.map +1 -1
- package/dist/src/errors.js +26 -0
- package/dist/src/errors.js.map +1 -1
- package/dist/src/index.d.ts +1 -1
- package/dist/src/index.js +1 -1
- package/dist/src/protocol.d.ts.map +1 -1
- package/dist/src/protocol.js +4 -1
- package/dist/src/protocol.js.map +1 -1
- package/dist/src/workflow-als.d.ts +25 -0
- package/dist/src/workflow-als.d.ts.map +1 -1
- package/dist/src/workflow-als.js +19 -0
- package/dist/src/workflow-als.js.map +1 -1
- package/dist/src/workflow-ctx.d.ts.map +1 -1
- package/dist/src/workflow-ctx.js +65 -24
- package/dist/src/workflow-ctx.js.map +1 -1
- package/package.json +3 -3
- package/skills/durable-determinism/SKILL.md +26 -0
- package/dist/assets/spa/assets/index-BkHCh-H3.js +0 -16
- package/dist/assets/spa/assets/index-BkHCh-H3.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# @adonis-agora/durable
|
|
2
2
|
|
|
3
|
+
## 0.43.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#240](https://github.com/DavideCarvalho/adonis-agora-durable/pull/240) [`66600ed`](https://github.com/DavideCarvalho/adonis-agora-durable/commit/66600ed753bf647f282bf08481c493bcce3b8287) Thanks [@DavideCarvalho](https://github.com/DavideCarvalho)! - Terminal runs are immutable, and workflow primitives fail fast inside step bodies.
|
|
8
|
+
|
|
9
|
+
- `cancel()` on a `failed` run is now a no-op, like on `completed`/`cancelled`/`dead`: it returns the current state, never rewrites the run to `cancelled`, and never cascades to the run's children. Previously cancelling a failed run relabelled it and cancelled its live children — e.g. the next queued chat turn an agent queue had already started as a child of the turn that failed. `cancelWhere` inherits the fix.
|
|
10
|
+
- `recheckWaitSeqs` and every other implicit wake-up (a delivered signal or child completion, a late step result, a due timer, a redelivered dispatch, a queue-slot wake) no longer re-drive a `failed` run. Only an explicit retry does: `requeue` (dashboard retry) or a direct `resume(runId)` call.
|
|
11
|
+
- New `NestedWorkflowCallError` (a `FatalError`, code `nested_workflow_call`): calling a ctx primitive (`ctx.startChild`, `ctx.child`, `ctx.step`, `ctx.sleep`, `ctx.sideEffect`, …, or a `BaseWorkflow.start()`/`.dispatch()` static through the ambient ctx) from inside a `ctx.localStep`/`ctx.transaction`/`ctx.sideEffect`/`ctx.now` body now throws at the call site. Before, the nested call wrote a journal entry that replay never reproduces, and the run failed later with a `NonDeterminismError`. Journals recorded before this change (where the nested entry is already at that position) still replay unchanged.
|
|
12
|
+
- Dispatched step handlers run outside the ambient workflow ctx, so in-process transports behave like remote workers: `BaseWorkflow.dispatch()` in a handler starts a top-level run and does not write into the suspended parent's journal.
|
|
13
|
+
|
|
3
14
|
## 0.43.0
|
|
4
15
|
|
|
5
16
|
### Minor Changes
|