Commit Graph
160 Commits
Author SHA1 Message Date
AncTe d815ec7736 docs(06-07): complete top-level integration plan 2026-09-14 21:11:44 +08:00
AncTe 9f9dd11223 test(06-07): add small-map replay playback and second-recording comparison
- play a recorded small-map route with bounded waiting and recording disabled
- assert a second recording equals the first step-by-step (code and param type/value)
- trigger warn 176 and errors 2001-2008 through the real replay commands
- append 06-07 code coverage map rows and record finding #06-07-1
2026-09-14 21:06:39 +08:00
AncTe 7c415df9e9 docs(06): refresh 06-07 for post-refactor replay API 2026-09-14 20:28:14 +08:00
AncTe f74646ab0c docs(06-09): complete save/load independent system plan 2026-09-14 19:01:01 +08:00
AncTe 502d87ba26 test(06-09): cover CoreState top-level saveables round trips
- add data-state/test/saveablesRoundTrip.test.ts: public CoreState.saveState/loadState over 5 saveables x 3 compressions, codes 112/113/177/178
- append 06-09 section to 06-COVERAGE-MAP.md (11 codes, create-or-append)
- register #06-09-1..5 suspected defects and the pre-existing test:ci blocker in 06-TEST-FINDINGS.md
2026-09-14 18:58:01 +08:00
AncTe 3e29548bfa test(06-09): cover enemy and hero save/load round trips
- add enemy/saveLoad.test.ts: Enemy/special/EnemyManager same-instance round trips across 3 compressions, codes 119/120
- add hero/saveLoad.test.ts: modifier/location/rendering/equipment/equipStore/items/follower/state round trips, codes 58/59
- add 06-SAVE-EXCLUSIONS.md: per-class excluded fields and rationale (D-42)
2026-09-14 18:57:42 +08:00
AncTe ccc5fc4f1f docs(06): cover ReplaySystem in 06-09 replay save/load round trips (D-42) 2026-09-14 18:22:57 +08:00
AncTe 0c1b1555cb docs(06): update 06-09 for CoreState save/load entry (D-45) 2026-09-14 18:19:28 +08:00
AncTe 5470f7a90e docs(06-08): complete flag + common unit test plan 2026-09-14 17:04:06 +08:00
AncTe 2b6de6df5f docs(06-06): complete map unit test plan 2026-09-14 16:33:08 +08:00
AncTe 6a6f717b04 docs(06-05): complete hero unit test plan 2026-09-14 16:00:26 +08:00
AncTe 730bdd12a8 docs(06-04): complete replay unit test plan 2026-09-14 15:25:42 +08:00
AncTe cb9c90abc1 test(06-04): cover ReplaySystem and ReplaySandbox pipeline (stage 3)
- system.test.ts:registerCommand/getCommand、重复注册 163、record + onRecordCommand、沙箱创建/reset、释放与实例独立性
- sandbox.test.ts:step/onStep、失败即停 158、157、notExecuted 175、156、startIndex、play/pause/resume/stop、setSpeed
- 06-COVERAGE-MAP.md 追加 06-04 小节(148–163、175)
- 06-TEST-FINDINGS.md 登记 #06-04-1..4
2026-09-14 15:21:49 +08:00
AncTe df210980b6 docs(06-03): complete enemy data model unit test plan 2026-09-14 14:44:42 +08:00
AncTe e03fd3cb69 docs(06): add D-44 lint/type quality gate 2026-09-14 14:14:37 +08:00
AncTe d9ac8a6007 fix(06): add D-44 lint+type quality gate to all plans 2026-09-14 14:13:58 +08:00
AncTe 693b337e24 docs(06-02): complete enemy top-level implementation unit test plan
- record the D-43 staged execution (component -> pipeline -> integration) of data-state/src/enemy
- add the 06-02 coverage-map section (warn code 137 -> enemy/calculator.ts)
- update STATE/ROADMAP to 2/9 phase-06 plans summarized
2026-09-14 13:38:25 +08:00
AncTe 06bf4996ee docs(06-01): complete combat unit test plan 2026-09-14 13:02:13 +08:00
AncTe a9b6e7290c test(06-01): stage 3 integration coverage for combat, damage and map damage
- add D-26 attribute-to-damage linkage and getCalculator coverage in damage.test.ts
- cover markEnemyDirty refresh and unregistered delete in mapDamage.test.ts
- cover off-map handler and standalone computed enemy in combat.test.ts
- register suspected buildup compounding bug as #06-01-4 it.skip with a findings entry
- complete the 06-COVERAGE-MAP.md code rows for 106/107/102/103/104/138/139/140/141
2026-09-14 12:58:46 +08:00
AncTe f536901733 test(06-01): stage 2 pipeline coverage for EnemyContext
- cover full buildup aura conversion and one/two-layer nested auras
- assert four-stage order specials -> base -> query -> final with forward-only visibility
- cover local requestRefresh, needTotallyRefresh full fallback, and warn codes 97/98/99/100/101/110
- fill the 06-COVERAGE-MAP.md rows for the stage 2 warning codes
2026-09-14 12:52:29 +08:00
AncTe 2e4e6d739d test(06-01): stage 1 component-level EnemyContext coverage
- cover every public EnemyContext method (registry, converters, effect registrations, attachments, dirty, lifecycle)
- apply single fake auras over Full/Rect/Manhattan ranges and assert out-of-range enemies stay unchanged
- add shared 06-COVERAGE-MAP.md skeleton with the code -> module -> case header protocol
2026-09-14 12:49:29 +08:00
AncTe ef5e4e9180 chore(06): mark superseded 06-01/06-02 summaries per D-29 2026-09-14 12:42:13 +08:00
AncTe 85f7b1053b fix(06): restage all plans per D-43 (component -> combination -> integration), drop tracer-first 2026-09-14 12:34:49 +08:00
AncTe feb2f8181d docs(06): create phase plan 2026-09-14 11:16:56 +08:00
AncTe fe4e410cf4 fix(06): revise plans based on checker feedback 2026-09-14 11:04:33 +08:00
AncTe 384e5673ad docs(06): capture phase context 2026-09-14 10:33:56 +08:00
AncTe 8b1297ad95 docs(state): record phase 6 context session 2026-09-14 10:02:15 +08:00
AncTe b59f8783d5 docs(06): capture phase context 2026-09-14 10:01:55 +08:00
AncTe bcac8a97e4 docs(06-02): complete enemy top-level implementation unit test plan 2026-09-14 09:10:05 +08:00
AncTe 50d868760a docs(06-01): record plan self-check 2026-09-14 08:55:21 +08:00
AncTe 6cf828c9cc docs(06-01): complete combat layer-2 unit test plan
- record 06-01-SUMMARY.md with coverage block and three suspected-bug findings
- advance STATE.md to plan 2, log decisions and execution metric
- mark ROADMAP phase 6 at 1/9 In Progress and TEST-01 complete
- open WINDOWS.md entries for the three documented skipped tests
2026-09-14 08:54:37 +08:00
AncTe 6c8f85a2be test(06-01): cover CombatFlow binding, script ordering and guards
- add combat.test.ts for same-state binding, foreign-state warn 138, script priority sort and duplicate warn 140, guard warns 139/141, awaited script/hook ordering with real timers, and battleComputed delegation
- extend the 06-TEST-FINDINGS.md sink with the #06-01-3 before-return semantics row
2026-09-14 08:51:13 +08:00
AncTe 484da2db19 test(06-01): cover MapDamage and EnemyContext behavior
- add mapDamage.test.ts for sourceless add/delete, sourced conversion, reduction caching, warns 102/103/104 and the #06-01-2 deleteEnemy finding
- add context.test.ts for the enemy registry (register/lookup/unknown-null/delete/resize/scan) and effect-registry add/remove behavior
- extend the 06-TEST-FINDINGS.md sink with the #06-01-2 row
2026-09-14 08:50:05 +08:00
AncTe 59b709e43e test(06-01): prove combat damage context/system via tracer
- add damage.test.ts covering DamageContext/DamageSystem results, handler identity, warns 106/107, cache invalidation, with(hero) and calculateCritical
- declare api-coverage in COVERAGE.md for the test-only phase
- open the shared 06-TEST-FINDINGS.md sink with schema and #06-01-1 finding
2026-09-14 08:45:34 +08:00
AncTe 3bcf2fc407 chore(state): sync planning state after phase 6 plan 2026-09-14 08:31:01 +08:00
AncTe 22726773ad docs(06): create phase plan 2026-09-14 08:30:40 +08:00
AncTe e1a16eae8b docs(state): record phase 6 context session 2026-09-14 07:36:06 +08:00
AncTe 6a3179b76f docs(06): capture phase context 2026-09-14 07:35:46 +08:00
AncTe c80516deb7 fix(event): 采纳七个内建并修正 touched-jsdoc 门禁
- event.test.ts 与 03-EVENT-CONTRACT.md 同步为七个内建(移除 touchFront/EventTouchFront)

- check-touched-jsdoc 按 dev.md 豁免继承/implements 成员,补充防误删说明

- 刷新 Phase 01-03 验证指纹,三个阶段恢复 passed
2026-09-13 23:38:46 +08:00
AncTe a55c2e32a2 test(01): complete UAT - 28 passed, 0 issues 2026-09-13 21:40:01 +08:00
AncTe 0ba70e1a63 docs(event-contract): sync with current built-in names and collection design
- built-in names: setBlock/moveBlock/removeBlock/moveHero/stepHero/touchFront/
  insertEvents/insertEvent (class names Event*)
- removeBlock: static by default, dynamic:true also removes dynamic tiles
- touchFront: steps the hero forward; the mover produces the OnTouch on bump
- GameEventSystem.collectEvent owns source collection; mover enter/leave/hit reuse it
- IBlockEventEnv gains required system and nullable heroFloor; utils.ts keeps only
  getPossibleMap/getPossibleLayer
2026-09-13 20:40:15 +08:00
AncTe d7837fcc24 docs: sync event/replay contracts with current design
- 03-EVENT-CONTRACT.md: short built-in names, class-based BuiltInFunction,
  single createEventRegistrations(), event/utils.ts (not barrel-exported)
- 03-REPLAY-CONTRACT.md: BaseReplayCommand shape, Teleport code, numeric fixed
  params, move notExecuted batching, CoreState registerReplayCommands, 2001-2008
- scope quick 260913-qtq record to AI changes only
2026-09-13 19:24:54 +08:00
AncTe e5f6d492b2 docs(quick-260913-qtq): event built-ins refactor and anon-tokyo import rename 2026-09-13 19:20:24 +08:00
AncTe 8f1e973886 docs: phase 3 completion tracking and handoff cleanup
- record phase 3 completion state and session continuity
- consume one-shot HANDOFF.json
- fix duplicate blocked count in 01-UAT.md
2026-09-13 15:16:51 +08:00
AncTe 909e8b3f63 docs(phase-3): complete phase execution 2026-09-12 13:39:27 +08:00
AncTe 42f65a739c docs(03-19): complete replay/event JSDoc normalization plan 2026-09-12 13:28:26 +08:00
AncTe b1b9603ff6 wip: phase 03 paused after plan 03-18 (03-19 remaining) 2026-09-11 23:15:29 +08:00
AncTe d82e19347b docs(03-18): complete event registration ownership plan 2026-09-11 23:14:09 +08:00
AncTe 0dc30aace8 refactor(03-18): move event registration assembly out of the barrel
- Add event/registrations.ts as the sole direct-construction assembler for
  the eight class-based registrations in stable map/hero/control order
- Reduce event/index.ts and data-state/src/index.ts to export-only barrels
  that re-export the four public registration creators
- Point CoreState at event/registrations and record the ownership and
  public-export boundaries in the event contract
2026-09-11 23:02:15 +08:00
AncTe 81c3653b90 wip: pause Phase 3 latest correction batch 2026-09-11 22:34:10 +08:00