@systemfsoftware/effect-sim-kernel 0.1.1 → 0.2.0

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 CHANGED
@@ -1,5 +1,21 @@
1
1
  # @systemfsoftware/effect-sim-kernel
2
2
 
3
+ ## 0.2.0
4
+
5
+ ### Minor Changes
6
+
7
+ - The `nightly` profile is removed. `ProfileName` is now `'local' | 'per-change'`, and `CONFORMANCE_PROFILE=nightly` falls back to `per-change` (250 seeds) instead of deriving a seed count from a 1% miss rate. Callers passing `'nightly'` to `Kernel.seedsFor` no longer type-check.
8
+
9
+ - Kernel runs are serialized. A run started while another is live now waits behind it, in arrival order, instead of failing: two runs never interleave, so a scenario never sees another run's decisions, and a suite whose cases drive the kernel can run its tests concurrently.
10
+
11
+ `@systemfsoftware/vitest` adds `captureRunBinding`, the running test's run binding. `bind(effect)` re-provides it to an effect a library runs on a runtime of its own — its own scheduler, a worker, a simulation kernel — so the checks inside it count as that test's assertions, report softly, and see the same `owned` regions.
12
+
13
+ `@systemfsoftware/effect-spec-runtime` runs a case that declares no live reason through that runner, and a case's annotations now reach the test's report.
14
+
15
+ ### Patch Changes
16
+
17
+ - Kernel.search enumerates each run's branches in linear time. It used to re-count a schedule's spent preemptions from the start of the run for every branch position, which cost about a fifth of a bounded search's time; the schedules explored are unchanged.
18
+
3
19
  ## 0.1.1
4
20
 
5
21
  ### Minor Changes
package/README.md CHANGED
@@ -106,7 +106,7 @@ pnpm --filter @systemfsoftware/effect-sim-kernel typecheck
106
106
  pnpm --filter @systemfsoftware/effect-sim-kernel build
107
107
  ```
108
108
 
109
- The kernel's behaviour suite lives in the private `packages/effect-sim-kernel-tests` package, because the Gherkin runner it is written in runs on this kernel:
109
+ The kernel's behaviour suite lives in the private `packages/sim/effect-sim-kernel-tests` package, because the Gherkin runner it is written in runs on this kernel:
110
110
 
111
111
  ```bash
112
112
  pnpm --filter @systemfsoftware/effect-sim-kernel-tests test
package/package.json CHANGED
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "name": "@systemfsoftware/effect-sim-kernel",
3
- "version": "0.1.1",
3
+ "version": "0.2.0",
4
4
  "license": "Apache-2.0",
5
5
  "author": "Ryan Lee <drdgvhbh@gmail.com>",
6
6
  "repository": {
7
7
  "type": "git",
8
8
  "url": "git+https://github.com/systemfsoftware/systemfsoftware.git",
9
- "directory": "packages/effect-sim-kernel"
9
+ "directory": "packages/sim/effect-sim-kernel"
10
10
  },
11
- "homepage": "https://github.com/systemfsoftware/systemfsoftware/tree/main/packages/effect-sim-kernel#readme",
11
+ "homepage": "https://github.com/systemfsoftware/systemfsoftware/tree/main/packages/sim/effect-sim-kernel#readme",
12
12
  "bugs": "https://github.com/systemfsoftware/systemfsoftware/issues",
13
13
  "description": "Deterministic simulation kernel for Effect: a controlled scheduler, in-process wakeups, escape and deadlock detection, interruption at a chosen step, and replay from a decision path.",
14
14
  "keywords": [
@@ -33,10 +33,10 @@
33
33
  },
34
34
  "devDependencies": {
35
35
  "@microsoft/api-extractor": "^7.59.1",
36
- "@systemfsoftware/oxlint-config-recommended": "^3.1.0",
36
+ "@systemfsoftware/oxlint-config-recommended": "^3.2.0",
37
37
  "@systemfsoftware/tsconfig": "^2.0.1",
38
38
  "@systemfsoftware/tsdown-config": "^0.1.0",
39
- "@systemfsoftware/vitest": "^0.1.0",
39
+ "@systemfsoftware/vitest": "^0.2.0",
40
40
  "@systemfsoftware/vitest-config": "^0.1.0",
41
41
  "@types/node": "^26",
42
42
  "effect": "4.0.0-rc.117",
@@ -50,6 +50,7 @@
50
50
  "effect": "4.0.0-rc.117"
51
51
  },
52
52
  "publishConfig": {
53
+ "access": "public",
53
54
  "provenance": true
54
55
  },
55
56
  "scripts": {