Commit Graph

6 Commits

Author SHA1 Message Date
hyper 9bf0e5e049 feat(bt): Add wait and whilst, rename leaf to action 2026-06-28 15:07:34 +08:00
hyper 204b9100e6 feat(bt): Rename repeat to cycle and refactor runner
Rework task execution to be synchronous within a single tick.
Scheduling boundaries are now defined by `cycle` nodes, which
replace the previous `repeat` decorator.  All tasks are executed
immediately when scheduled, and parent/child propagation is
handled inline.
2026-06-28 14:51:52 +08:00
hyper 1253bf82d2 feat(bt)!: Remove legacy tree definition format
The `LegacyTreeDef` type and its normalization path have been removed.
All tree definitions must now use the factory functions (`leaf`,
`sequential`, `parallel`, `selector`, `random`, `repeat`). The
`TreeDef` type is now simply `TaskEntityDef`.
2026-06-28 10:19:40 +08:00
hypercross 968672da06 fix(blackjack): update payout function signature 2026-06-02 18:08:01 +08:00
hypercross a97488e8d6 refactor(examples): reorganized code
Move code to avoid big main.ts and changed the bt to match the pattern
2026-06-02 10:39:27 +08:00
hypercross 2469cdc7cb feat(examples): add blackjack game example 2026-06-02 00:57:22 +08:00