hyper
59b99d2042
Fix command prompt to properly return promise results
...
Add comprehensive tests for createPromptContext covering prompt,
tryCommit, cancel, and handleCall middleware.
2026-04-23 14:44:24 +08:00
hypercross
8ec95cbf81
refactor: rename 'user' target to 'source' in slay-the-spire-like
...
Updates the card effect and intent target types from 'user' to 'source'
within the desert data files and combat effect system to maintain
consistency. Also reformat command tests to use 2-space indentation.
2026-04-23 00:35:28 +08:00
hypercross
34cb828f60
test: refactor and format test files
...
- Update `game.test.ts` to use `_ctx` when `this` is not required
- Fix type assertion in `boop.test.ts`
- Update `command-runner.test.ts` to use `parseCommandSchema` in prompt
tests
- Reformat `middleware.test.ts` to use double quotes and consistent
indentation
2026-04-20 15:50:32 +08:00
hypercross
974c1a828c
test: reformat and expand test coverage
2026-04-20 15:37:15 +08:00
hypercross
8155747cac
chore: tests for effects and middleware
2026-04-17 13:48:18 +08:00
hypercross
6352977791
chore: add more tests
2026-04-06 16:11:26 +08:00
hypercross
1e7dbea129
fix: api tests
2026-04-06 11:12:20 +08:00
hypercross
8c2c6dc94c
fix: fix tests
2026-04-05 10:42:38 +08:00
hypercross
b9105efd03
fix: fix tests
2026-04-04 22:23:15 +08:00
hypercross
a0dd5c94f5
feat: produceAsync
2026-04-04 15:08:34 +08:00
hypercross
86714e7837
refactor: entity -> MutableSignal
2026-04-03 14:19:44 +08:00
hyper
c886e904a8
refactor: change PromptEvent reject/resolve to cancel/tryCommit
2026-04-02 19:08:14 +08:00
hypercross
2581a8e0e6
refactor: add src alias to @/
2026-04-02 16:03:44 +08:00
hypercross
0948e5a742
fix: fix game/region tests.
2026-04-02 15:16:30 +08:00
hypercross
9c7baa29ef
refactor: add a new async queue
2026-04-02 10:04:22 +08:00
hypercross
bcb31da773
refactor: move runner context to handler's this
2026-04-02 09:05:47 +08:00
hypercross
3bc35df63c
feat: add command runner and registry
2026-04-02 08:58:11 +08:00
hypercross
281cbf845d
refactor: change CommandSchema's options/flags to be Records
2026-04-02 08:29:40 +08:00
hypercross
033fb6c894
refactor: command syntax improvement
2026-04-01 21:18:58 +08:00
hyper
c315e0643b
feat: add inline-schema for command schema
2026-04-01 19:04:09 +08:00
hyper
95015b090c
feat: add command schema
2026-04-01 18:54:02 +08:00
hyper
284251ddf2
fix: command parsing quotes
2026-04-01 17:40:28 +08:00
hyper
8d778f9867
fix: rng impl
2026-04-01 17:37:24 +08:00
hyper
df9698b67b
feat: rng & commands impl & tests
2026-04-01 17:34:21 +08:00