houserules/packages/rete/src
Joey Yakimowich-Payne 2643222373
refactor(rete): use asEntityId for AGG_FACT sentinel id
Drop the `-1 as unknown as EntityId` double-cast in favour of the
asEntityId() helper exported alongside the type. Single-site, documented
cast instead of an inline double-cast.

Completes the cleanup of `as unknown as` in non-test source across both
packages/chess and packages/rete.
2026-04-19 16:49:50 -06:00
..
aggregate.test.ts feat(rete): add FilterNode (P1.9), ExistentialNode (P2.2), AggregationNode (P2.4) — commit missing files 2026-04-16 14:26:26 -06:00
aggregate.ts refactor(rete): use asEntityId for AGG_FACT sentinel id 2026-04-19 16:49:50 -06:00
alpha.test.ts feat(rete): add AlphaNetwork with inverted-index dispatch (P1.3) 2026-04-16 13:38:24 -06:00
alpha.ts feat(rete): add AlphaNetwork with inverted-index dispatch (P1.3) 2026-04-16 13:38:24 -06:00
beta.test.ts feat(rete): add BetaMemory + Token propagation (P1.7) 2026-04-16 13:47:50 -06:00
beta.ts feat(rete): add BetaMemory + Token propagation (P1.7) 2026-04-16 13:47:50 -06:00
builder.test.ts feat(rete): add typed rule builder + handler registry (P1.5) 2026-04-16 13:42:21 -06:00
builder.ts feat(rete): add typed rule builder + handler registry (P1.5) 2026-04-16 13:42:21 -06:00
condition.test.ts feat(rete): add FilterNode (P1.9), ExistentialNode (P2.2), AggregationNode (P2.4) — commit missing files 2026-04-16 14:26:26 -06:00
condition.ts feat(rete): add FilterNode (P1.9), ExistentialNode (P2.2), AggregationNode (P2.4) — commit missing files 2026-04-16 14:26:26 -06:00
conflict.test.ts feat(rete): add deterministic conflict resolution (P1.13) 2026-04-16 14:01:32 -06:00
conflict.ts feat(rete): add deterministic conflict resolution (P1.13) 2026-04-16 14:01:32 -06:00
cycle.test.ts fix(rete): inject clock into EventLog; use tsc for DTS; fix cycle.test.ts private access; add Playwright worker limit 2026-04-16 18:25:49 -06:00
cycle.ts feat(rete): add cycle detection with recursionLimit (P1.12) 2026-04-16 13:58:12 -06:00
derived.test.ts feat(rete): add derived facts with thenFinally + truth maintenance (P1.11) 2026-04-16 13:59:24 -06:00
derived.ts feat(rete): add derived facts with thenFinally + truth maintenance (P1.11) 2026-04-16 13:59:24 -06:00
eventlog.test.ts feat(rete): add append-only event log with monotonic sequence (P3.1) 2026-04-16 15:24:11 -06:00
eventlog.ts fix(rete): inject clock into EventLog; use tsc for DTS; fix cycle.test.ts private access; add Playwright worker limit 2026-04-16 18:25:49 -06:00
existential.test.ts feat(rete): add FilterNode (P1.9), ExistentialNode (P2.2), AggregationNode (P2.4) — commit missing files 2026-04-16 14:26:26 -06:00
existential.ts feat(rete): add FilterNode (P1.9), ExistentialNode (P2.2), AggregationNode (P2.4) — commit missing files 2026-04-16 14:26:26 -06:00
index.ts refactor(ui): use asEntityId helper at piece-id boundaries 2026-04-19 13:53:45 -06:00
join.test.ts feat(rete): add JoinNode with variable-binding equality tests (P1.8) 2026-04-16 13:50:54 -06:00
join.ts feat(rete): add JoinNode with variable-binding equality tests (P1.8) 2026-04-16 13:50:54 -06:00
ncc.test.ts feat(rete): add NCC nodes (P2.3) 2026-04-16 14:22:21 -06:00
ncc.ts feat(rete): add NCC nodes (P2.3) 2026-04-16 14:22:21 -06:00
negation.test.ts feat(rete): add negation nodes (NOT) (P2.1) 2026-04-16 14:21:39 -06:00
negation.ts feat(rete): add negation nodes (NOT) (P2.1) 2026-04-16 14:21:39 -06:00
query.test.ts feat(rete): add query/queryAll API (P1.10) 2026-04-16 13:54:11 -06:00
query.ts feat(rete): add query/queryAll API (P1.10) 2026-04-16 13:54:11 -06:00
registry.test.ts feat(rete): add typed rule builder + handler registry (P1.5) 2026-04-16 13:42:21 -06:00
registry.ts feat(rete): add FilterNode (P1.9), ExistentialNode (P2.2), AggregationNode (P2.4) — commit missing files 2026-04-16 14:26:26 -06:00
replay.test.ts feat(rete): add replay engine + state-hash determinism verifier (P3.3) 2026-04-16 15:25:13 -06:00
replay.ts feat(rete): add replay engine + state-hash determinism verifier (P3.3) 2026-04-16 15:25:13 -06:00
schema.test.ts feat(rete): add schema and typed Fact primitives (P1.1) 2026-04-16 13:36:57 -06:00
schema.ts refactor(ui): use asEntityId helper at piece-id boundaries 2026-04-19 13:53:45 -06:00
serialize.test.ts feat(rete): add JSON serialize/deserialize round-trip (P1.6) 2026-04-16 13:44:14 -06:00
serialize.ts feat(rete): add JSON serialize/deserialize round-trip (P1.6) 2026-04-16 13:44:14 -06:00
session.test.ts feat(rete): add Session lifecycle (P1.4) 2026-04-16 13:39:54 -06:00
session.ts feat(rete): add append-only event log with monotonic sequence (P3.1) 2026-04-16 15:24:11 -06:00
snapshot.test.ts feat(rete): add Immer snapshots at tick boundaries (P3.2) 2026-04-16 15:25:35 -06:00
snapshot.ts feat(rete): add Immer snapshots at tick boundaries (P3.2) 2026-04-16 15:25:35 -06:00
wm.test.ts feat(rete): add WorkingMemory with deterministic iteration (P1.2) 2026-04-16 13:37:47 -06:00
wm.ts feat(rete): add WorkingMemory with deterministic iteration (P1.2) 2026-04-16 13:37:47 -06:00