Commit Graph
8 Commits
Author SHA1 Message Date
hyper b038388deb refactor(three-monks): Replace commands with phase wrappers 2026-07-01 16:25:41 +08:00
hyper 6fa1f511bd feat(three-monks): Add tool effect statistics tracking 2026-07-01 16:12:40 +08:00
hyper 572b473089 feat(examples): Add Three Monks game example 2026-07-01 15:44:43 +08:00
hyper 0eb3defc62 feat(three-monks): Add design document 2026-07-01 14:48:22 +08:00
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
hyper ddde3f7597 feat(bt): Add entity-based task factories
Add `leaf`, `sequential`, `parallel`, `selector`, `random`, and `repeat`
functions that return `EntityDef` trees. Legacy object definitions are
still
accepted for backward compatibility. Non-task child entities are ignored
by
the runner, and `buildTree` now stores the root entity on
`TaskRunner.root`.
2026-06-28 10:15:38 +08:00