@astrale-os/kernel-dsl 0.2.0-beta.22 → 0.2.0-beta.23
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,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.2.0-beta.23](https://github.com/astrale-os/kernel/compare/kernel-dsl-v0.2.0-beta.22...kernel-dsl-v0.2.0-beta.23) (2026-08-31)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* **dsl:** preserve state codec input types ([#603](https://github.com/astrale-os/kernel/issues/603)) ([2fcfad2](https://github.com/astrale-os/kernel/commit/2fcfad21899136aa45a74cccfc414897fd935ca4))
|
|
9
|
+
|
|
3
10
|
## [0.2.0-beta.22](https://github.com/astrale-os/kernel/compare/kernel-dsl-v0.2.0-beta.21...kernel-dsl-v0.2.0-beta.22) (2026-08-31)
|
|
4
11
|
|
|
5
12
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { type ZodType } from 'zod';
|
|
2
2
|
import type { EventName, StateName, StateTopology, TransitionRelation, ValidTransitionRelation } from './topology.js';
|
|
3
3
|
export interface StateMachine<Transitions extends TransitionRelation = any, Initial extends StateName<Transitions> = StateName<Transitions>> extends StateTopology<Transitions, Initial> {
|
|
4
|
-
readonly stateSchema: ZodType<StateName<Transitions>>;
|
|
5
|
-
readonly eventSchema: ZodType<EventName<Transitions>>;
|
|
4
|
+
readonly stateSchema: ZodType<StateName<Transitions>, StateName<Transitions>>;
|
|
5
|
+
readonly eventSchema: ZodType<EventName<Transitions>, EventName<Transitions>>;
|
|
6
6
|
eventsFrom<State extends StateName<Transitions>>(state: State): readonly EventName<Transitions, State>[];
|
|
7
7
|
decide<State extends StateName<Transitions>, Event extends EventName<Transitions>>(state: State, event: Event): TransitionDecision<Transitions, State, Event>;
|
|
8
8
|
}
|