@smthrs/engine-store 1.0.0-rc.3 → 1.0.0-rc.5

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@smthrs/engine-store",
3
3
  "type": "module",
4
- "version": "1.0.0-rc.3",
4
+ "version": "1.0.0-rc.5",
5
5
  "license": "MIT",
6
6
  "smthrs": {
7
7
  "group": "engine"
@@ -386,29 +386,29 @@
386
386
  "tag": "next"
387
387
  },
388
388
  "dependencies": {
389
- "@smthrs/artifacts": "1.0.0-rc.3",
390
- "@smthrs/canonical": "1.0.0-rc.3",
391
- "@smthrs/crypto": "1.0.0-rc.3",
392
- "@smthrs/database": "1.0.0-rc.3",
393
- "@smthrs/engine": "1.0.0-rc.3",
394
- "@smthrs/flow": "1.0.0-rc.3",
395
- "@smthrs/journal": "1.0.0-rc.3",
396
- "@smthrs/kernel": "1.0.0-rc.3",
397
- "@smthrs/keys": "1.0.0-rc.3",
398
- "@smthrs/plan": "1.0.0-rc.3",
399
- "@smthrs/plan-store": "1.0.0-rc.3",
400
- "@smthrs/run-store": "1.0.0-rc.3",
401
- "@smthrs/step-cache": "1.0.0-rc.3",
402
- "@smthrs/capability": "1.0.0-rc.3"
389
+ "@smthrs/artifacts": "1.0.0-rc.5",
390
+ "@smthrs/canonical": "1.0.0-rc.5",
391
+ "@smthrs/crypto": "1.0.0-rc.5",
392
+ "@smthrs/database": "1.0.0-rc.5",
393
+ "@smthrs/engine": "1.0.0-rc.5",
394
+ "@smthrs/flow": "1.0.0-rc.5",
395
+ "@smthrs/journal": "1.0.0-rc.5",
396
+ "@smthrs/kernel": "1.0.0-rc.5",
397
+ "@smthrs/keys": "1.0.0-rc.5",
398
+ "@smthrs/plan": "1.0.0-rc.5",
399
+ "@smthrs/plan-store": "1.0.0-rc.5",
400
+ "@smthrs/run-store": "1.0.0-rc.5",
401
+ "@smthrs/step-cache": "1.0.0-rc.5",
402
+ "@smthrs/capability": "1.0.0-rc.5"
403
403
  },
404
404
  "devDependencies": {
405
405
  "@effect/language-service": "0.87.2",
406
406
  "@effect/platform-node": "4.0.0-rc.115",
407
407
  "@effect/vitest": "4.0.0-rc.115",
408
408
  "@eslint/js": "9.39.5",
409
- "@smthrs/core": "1.0.0-rc.3",
410
- "@smthrs/patterns": "1.0.0-rc.3",
411
- "@smthrs/platform-node": "1.0.0-rc.3",
409
+ "@smthrs/core": "1.0.0-rc.5",
410
+ "@smthrs/patterns": "1.0.0-rc.5",
411
+ "@smthrs/platform-node": "1.0.0-rc.5",
412
412
  "@types/node": "26.4.1",
413
413
  "@vitest/coverage-v8": "5.0.0",
414
414
  "dprint": "0.57.1",
@@ -3,7 +3,7 @@
3
3
  *
4
4
  * Governing designs: `docs/concepts/ownership-and-fencing.md`,
5
5
  * `docs/concepts/attempts-and-replay.md`, and
6
- * `apps/site/src/content/docs/docs/concepts/flows-actions-plans.mdx`.
6
+ * `packages/smithers/flows/flow/docs/concepts/flows-and-actions.md`.
7
7
  *
8
8
  * @since 0.1.0
9
9
  */
@@ -14,7 +14,7 @@
14
14
  * The core default is strict so an invariant violation cannot pass silently.
15
15
  *
16
16
  * Governing designs: `docs/concepts/attempts-and-replay.md` and
17
- * `apps/site/src/content/docs/docs/concepts/flows-actions-plans.mdx`.
17
+ * `docs/concepts/cache-admission.md`.
18
18
  *
19
19
  * @since 0.1.0
20
20
  */
@@ -495,7 +495,7 @@ export const make = (options: Options): Service => {
495
495
  )
496
496
 
497
497
  // Every scheduler record addresses the run's root lineage, so a frame can
498
- // reach it (`apps/site/src/content/docs/docs/concepts/time-travel.mdx`).
498
+ // reach it (`packages/smithers/flows/time-travel/docs/concepts/frames-and-lineage.md`).
499
499
  const lineageId = FlowEngine.Lineage.root(options.runId)
500
500
  const source = (suffix: string) => ({ runId: options.runId, sourceId: `${options.sourceId}/${suffix}`, lineageId })
501
501
 
@@ -287,12 +287,14 @@ export const coherentBatch = (runIds: ReadonlyArray<string>, batch: Batch): Effe
287
287
  row.revision > batch.revision
288
288
  )
289
289
  ) {
290
- return Effect.fail(new RunStoreError({
291
- method: "ExecutionSnapshot.read",
292
- code: "persistence_failed",
293
- message: "stored execution batch is incoherent: source, identity, order or revision mismatch",
294
- cause: undefined
295
- }))
290
+ return Effect.fail(
291
+ new RunStoreError({
292
+ method: "ExecutionSnapshot.read",
293
+ code: "persistence_failed",
294
+ message: "stored execution batch is incoherent: source, identity, order or revision mismatch",
295
+ cause: undefined
296
+ })
297
+ )
296
298
  }
297
299
  return Effect.succeed(batch)
298
300
  }
@@ -2800,10 +2800,12 @@ export const make = (
2800
2800
  // codec here, even when another worker executed that flow.
2801
2801
  // This is the typed Trampoline's fail-fast wiring contract:
2802
2802
  // terminal work has no future wake to justify Suspended.
2803
- return Effect.die(new FlowEngine.FlowNotRegistered({
2804
- flowName: state.flowName,
2805
- message: `Flow ${state.flowName} is not registered`
2806
- }))
2803
+ return Effect.die(
2804
+ new FlowEngine.FlowNotRegistered({
2805
+ flowName: state.flowName,
2806
+ message: `Flow ${state.flowName} is not registered`
2807
+ })
2808
+ )
2807
2809
  }
2808
2810
  return (Schema.decodeUnknownEffect(
2809
2811
  Schema.toCodecJson(Flow.Result({