Tom Boucher
f65866f17d
fix( #1831 ): resolve ESLint errors and unused-var warnings from #1829/#1830
...
Two hard errors in src/state-transition.cts:
- reconcileCurrentPosition: `!== null` guards on `Record<string,unknown>`
values don't narrow the type to a primitive, causing
@typescript-eslint/no-base-to-string to fire on String(fm.current_phase)
and String(fm.current_phase_name). Extract to typed locals + use typeof
narrowing so the rule sees string | number — which is the actual invariant.
Four unused-var warnings (warnings are still defects per RULESET):
- stripTemplatePlaceholders: `placeholder` was assigned value.trim() but
never read — the value came from the loop variable itself, so removed.
- deduplicateSessionArchive: `sectionContent` was sliced but the filter
below uses the raw hs offsets directly — variable was dead code; removed.
- state-rebuild.test.cjs: first transitionCore call in the orphan-row test
is covered by the dedicated Leaky-Abstractions guard test below it;
remove the no-op call rather than silently ignoring its result.
- state-rebuild.test.cjs: `before = state` in the sync regression guard
test was never read — remove the dead assignment.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com >
2026-06-29 20:08:17 -04:00
..
2026-06-09 12:51:15 -04:00
2026-06-02 11:45:01 -04:00
2026-06-14 20:52:56 -04:00
2026-06-28 02:12:06 -04:00
2026-06-28 11:10:59 -04:00
2026-06-21 22:55:22 -04:00
2026-06-15 16:18:54 -04:00
2026-06-15 18:50:46 -04:00
2026-06-02 11:45:01 -04:00
2026-06-27 08:43:47 -04:00
2026-06-23 23:21:06 -04:00
2026-06-17 20:14:12 -04:00
2026-06-16 02:38:47 -04:00
2026-06-20 01:59:03 -04:00
2026-06-20 01:59:03 -04:00
2026-06-25 23:55:58 -04:00
2026-06-28 12:25:02 -04:00
2026-06-25 23:55:58 -04:00
2026-06-25 23:55:58 -04:00
2026-06-20 01:59:03 -04:00
2026-06-20 01:59:03 -04:00
2026-06-19 12:02:36 -04:00
2026-06-17 14:32:43 -04:00
2026-06-23 23:21:06 -04:00
2026-06-10 10:40:12 -04:00
2026-06-26 12:19:39 -04:00
2026-06-02 11:45:01 -04:00
2026-06-14 02:09:10 -04:00
2026-06-02 11:45:01 -04:00
2026-06-29 16:15:55 -04:00
2026-06-02 11:45:01 -04:00
2026-06-13 10:27:12 -04:00
2026-06-23 22:47:57 -04:00
2026-06-22 00:59:41 -04:00
2026-06-21 22:46:34 -04:00
2026-06-23 16:10:34 -04:00
2026-06-15 18:50:46 -04:00
2026-06-26 23:35:04 -04:00
2026-06-08 22:51:43 -04:00
2026-06-02 11:45:01 -04:00
2026-06-08 13:29:13 -04:00
2026-06-22 23:43:22 -04:00
2026-06-24 13:26:25 -04:00
2026-06-15 16:40:48 -04:00
2026-06-02 11:45:01 -04:00
2026-06-14 21:44:21 -04:00
2026-06-28 02:12:06 -04:00
2026-06-24 17:16:13 -04:00
2026-06-24 17:16:13 -04:00
2026-06-28 12:00:43 -04:00
2026-06-11 11:36:50 -04:00
2026-06-08 23:37:41 -04:00
2026-06-24 13:39:17 -04:00
2026-06-18 21:59:10 -04:00
2026-06-15 18:50:46 -04:00
2026-06-23 23:21:06 -04:00
2026-06-15 23:19:21 -04:00
2026-06-15 16:18:54 -04:00
2026-06-28 11:44:36 -04:00
2026-06-25 15:37:33 -04:00
2026-06-06 23:56:53 -04:00
2026-06-25 21:49:22 -04:00
2026-06-25 21:16:47 -04:00
2026-06-26 15:38:51 -04:00
2026-06-04 13:44:05 -04:00
2026-06-14 09:37:41 -04:00
2026-06-25 23:55:58 -04:00
2026-06-23 23:21:06 -04:00
2026-06-16 00:12:54 -04:00
2026-06-24 13:19:10 -04:00
2026-06-15 16:18:54 -04:00
2026-06-20 01:59:03 -04:00
2026-06-17 11:14:17 -04:00
2026-06-28 12:45:25 -04:00
2026-06-27 15:46:54 -04:00
2026-06-28 11:27:44 -04:00
2026-06-02 18:35:29 -04:00
2026-06-02 11:45:01 -04:00
2026-06-15 18:50:46 -04:00
2026-06-02 11:45:01 -04:00
2026-06-05 17:58:48 -04:00
2026-06-20 13:37:22 -04:00
2026-06-20 18:45:41 -04:00
2026-06-20 13:37:32 -04:00
2026-06-15 18:50:46 -04:00
2026-06-28 22:41:57 -04:00
2026-06-02 11:45:01 -04:00
2026-06-14 20:52:36 -04:00
2026-06-24 13:19:10 -04:00
2026-06-25 23:55:58 -04:00
2026-06-29 00:14:32 -04:00
2026-06-22 09:56:15 -04:00
2026-06-08 14:04:26 -04:00
2026-06-21 10:44:48 -04:00
2026-06-20 13:37:16 -04:00
2026-06-02 11:45:01 -04:00
2026-06-06 11:24:48 -04:00
2026-06-05 17:58:48 -04:00
2026-06-18 07:44:52 -04:00
2026-06-26 23:35:04 -04:00
2026-06-21 23:04:34 -04:00
2026-06-20 18:45:41 -04:00
2026-06-25 23:55:58 -04:00
2026-06-29 00:14:32 -04:00
2026-06-26 15:38:51 -04:00
2026-06-26 15:38:51 -04:00
2026-06-26 15:38:51 -04:00
2026-06-13 01:49:25 -04:00
2026-06-18 21:47:18 -04:00
2026-06-25 23:55:58 -04:00
2026-06-28 15:22:13 -04:00
2026-06-11 12:37:25 -04:00
2026-06-02 11:45:01 -04:00
2026-06-02 11:45:01 -04:00
2026-06-07 01:06:41 -04:00
2026-06-18 14:41:20 -04:00
2026-06-26 15:19:57 -04:00
2026-06-29 16:15:55 -04:00
2026-06-20 13:37:32 -04:00
2026-06-28 11:44:36 -04:00
2026-06-29 20:08:17 -04:00
2026-06-29 16:15:55 -04:00
2026-06-25 13:20:25 -04:00
2026-06-15 16:18:54 -04:00
2026-06-17 08:52:23 -04:00
2026-06-15 17:03:22 -04:00
2026-06-24 13:19:10 -04:00
2026-06-17 15:44:11 -04:00
2026-06-02 18:35:29 -04:00
2026-06-23 12:10:21 -04:00
2026-06-02 11:45:01 -04:00
2026-06-20 18:45:41 -04:00
2026-06-07 01:26:56 -04:00
2026-06-24 13:19:10 -04:00
2026-06-02 11:45:01 -04:00
2026-06-24 17:03:01 -04:00
2026-06-02 11:45:01 -04:00
2026-06-15 16:18:54 -04:00
2026-06-02 11:45:01 -04:00
2026-06-25 23:55:58 -04:00
2026-06-11 11:36:30 -04:00
2026-06-21 15:38:44 -04:00