Claude
e759e1a028
fix(hook-runtime): name the thrown cause when a hook fails to load
...
`main` is red: `catch (err)` at src/hook-runtime.ts:498 never used `err`, so
`@typescript-eslint/no-unused-vars` fails `lint` and the whole `check` job with
it. Arrived in the merge 236615e (fix inject hook resilience); reproduced on a
clean checkout of origin/main before touching anything, so it is the base, not
any one PR.
CONSIDERED AND REJECTED: `catch {`. It silences the rule and keeps the defect.
The comment three lines above promises the failure will "name the real cause",
and today it names one only when the merge-conflict heuristic fires — every
other load failure reads a bare "cannot be loaded", which is a diagnosis that
sends the reader looking in the wrong place. That is a defect this runtime has
already shipped twice (the spec loader that advised `npm run build` when the
answer was `npm install`). `catch (err)` plus a comment about naming the cause
reads as an author who meant to use it, so it is now used.
The thrown message is APPENDED, not substituted: the existing assertion
`/guard\.mjs cannot be loaded/` in src/hook.test.ts still matches, and it should
— "cannot be loaded" is the claim, the thrown text is the evidence for it.
Gates: npm run check 18/18 (lint 0 errors, was 1) · coverage 3972 passed, 0
failed. The 99.94% statement gate fails locally on src/mock-model.ts (untouched;
25 tests skip locally), green on CI.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com >
2026-09-10 00:06:24 +00:00
..
2026-09-09 21:37:34 +05:00
2026-09-10 04:40:39 +05:00
2026-07-15 05:38:20 +05:00
2026-06-11 22:50:45 +05:00
2026-06-24 19:47:06 +07:00
2026-09-09 02:42:28 +05:00
2026-06-15 03:30:43 +05:00
2026-08-21 07:54:51 +05:00
2026-07-01 01:55:49 +05:00
2026-07-21 07:05:41 +05:00
2026-07-21 07:05:41 +05:00
2026-06-14 18:14:44 +05:00
2026-06-28 02:34:50 +05:00
2026-06-28 02:34:50 +05:00
2026-08-07 10:31:06 +05:00
2026-06-18 12:17:34 +07:00
2026-08-08 14:30:39 +05:00
2026-06-29 14:48:10 +05:00
2026-06-28 02:34:50 +05:00
2026-06-28 02:34:50 +05:00
2026-08-08 14:30:39 +05:00
2026-08-08 14:30:39 +05:00
2026-09-01 18:02:28 +05:00
2026-09-09 02:42:28 +05:00
2026-06-29 14:48:10 +05:00
2026-06-29 14:48:10 +05:00
2026-08-31 04:10:05 +05:00
2026-07-22 18:25:57 +05:00
2026-09-09 02:42:28 +05:00
2026-08-16 22:46:26 +05:00
2026-09-08 02:05:26 +05:00
2026-08-13 00:19:30 +05:00
2026-09-10 04:40:39 +05:00
2026-08-21 07:54:51 +05:00
2026-09-09 02:42:28 +05:00
2026-09-09 02:42:28 +05:00
2026-09-01 18:02:28 +05:00
2026-09-09 02:42:28 +05:00
2026-09-02 02:02:24 +05:00
2026-09-09 02:42:28 +05:00
2026-08-08 14:30:39 +05:00
2026-09-01 19:51:21 +05:00
2026-06-15 09:13:07 +05:00
2026-06-15 03:30:43 +05:00
2026-09-09 02:42:28 +05:00
2026-08-19 14:02:16 +05:00
2026-08-16 22:46:26 +05:00
2026-09-09 19:31:45 +05:00
2026-09-09 02:42:28 +05:00
2026-09-09 02:42:28 +05:00
2026-09-08 00:52:20 +05:00
2026-09-09 02:42:28 +05:00
2026-08-16 22:46:26 +05:00
2026-08-18 20:10:09 +05:00
2026-06-14 18:14:44 +05:00
2026-06-14 18:14:44 +05:00
2026-09-10 04:40:39 +05:00
2026-08-13 00:19:30 +05:00
2026-08-18 20:10:09 +05:00
2026-09-09 02:42:28 +05:00
2026-09-09 02:42:28 +05:00
2026-08-18 20:10:09 +05:00
2026-08-18 20:21:51 +05:00
2026-07-20 21:43:05 +05:00
2026-07-01 15:49:43 +05:00
2026-07-01 15:49:43 +05:00
2026-08-13 00:19:30 +05:00
2026-08-13 00:19:30 +05:00
2026-08-21 00:25:43 +05:00
2026-09-08 00:52:20 +05:00
2026-09-08 00:52:20 +05:00
2026-09-09 02:42:28 +05:00
2026-06-15 19:34:08 +05:00
2026-06-15 19:34:08 +05:00
2026-09-09 02:42:28 +05:00
2026-07-21 04:33:23 +00:00
2026-09-09 02:42:28 +05:00
2026-06-15 19:34:08 +05:00
2026-06-18 12:17:34 +07:00
2026-09-02 14:37:27 +05:00
2026-07-01 15:49:43 +05:00
2026-07-09 02:31:19 +05:00
2026-08-18 20:34:40 +05:00
2026-08-18 20:34:40 +05:00
2026-09-02 14:37:27 +05:00
2026-08-18 20:34:40 +05:00
2026-08-18 20:34:40 +05:00
2026-08-18 20:34:40 +05:00
2026-08-13 00:19:30 +05:00
2026-07-01 01:55:49 +05:00
2026-09-09 02:42:28 +05:00
2026-09-02 14:37:27 +05:00
2026-08-13 00:19:30 +05:00
2026-08-21 07:54:51 +05:00
2026-08-14 15:37:54 +05:00
2026-09-02 14:37:27 +05:00
2026-08-21 07:54:51 +05:00
2026-07-08 05:03:57 +05:00
2026-09-09 02:42:28 +05:00
2026-09-03 15:56:41 +05:00
2026-09-09 02:42:28 +05:00
2026-08-23 18:08:17 +05:00
2026-08-19 15:44:40 +05:00
2026-08-13 00:19:30 +05:00
2026-08-13 00:19:30 +05:00
2026-06-23 05:43:10 +07:00
2026-09-09 02:21:38 +05:00
2026-09-09 02:42:28 +05:00
2026-09-08 00:52:20 +05:00
2026-09-08 00:52:20 +05:00
2026-09-01 19:51:21 +05:00
2026-08-13 09:06:18 +05:00
2026-08-13 09:06:18 +05:00
2026-09-08 02:05:26 +05:00
2026-09-03 15:56:41 +05:00
2026-09-09 02:42:28 +05:00
2026-09-09 02:42:28 +05:00
2026-09-09 02:42:28 +05:00
2026-09-09 02:21:38 +05:00
2026-06-24 19:47:06 +07:00
2026-09-09 02:42:28 +05:00
2026-09-10 00:06:24 +00:00
2026-08-21 07:54:51 +05:00
2026-09-09 02:42:28 +05:00
2026-09-08 02:05:26 +05:00
2026-09-09 02:42:28 +05:00
2026-09-09 02:42:28 +05:00
2026-07-16 01:57:55 +05:00
2026-07-16 01:57:55 +05:00
2026-06-16 21:29:30 +07:00
2026-06-15 19:34:08 +05:00
2026-08-18 20:34:40 +05:00
2026-09-09 02:42:28 +05:00
2026-08-13 00:19:30 +05:00
2026-09-01 19:51:21 +05:00
2026-08-23 18:08:17 +05:00
2026-09-09 02:42:28 +05:00
2026-08-21 07:54:51 +05:00
2026-09-09 02:42:28 +05:00
2026-06-15 19:34:08 +05:00
2026-08-13 09:06:18 +05:00
2026-08-13 09:06:18 +05:00
2026-08-13 00:19:30 +05:00
2026-08-13 00:19:30 +05:00
2026-08-13 00:19:30 +05:00
2026-08-18 20:21:51 +05:00
2026-07-22 04:07:14 +05:00
2026-08-08 14:30:39 +05:00
2026-08-08 14:30:39 +05:00
2026-09-01 18:02:28 +05:00
2026-07-22 04:07:14 +05:00
2026-07-01 15:49:43 +05:00
2026-07-15 18:24:30 +05:00
2026-07-14 05:10:06 +05:00
2026-07-16 01:57:55 +05:00
2026-07-16 01:57:55 +05:00
2026-07-16 01:57:55 +05:00
2026-07-15 18:24:30 +05:00
2026-07-16 01:57:55 +05:00
2026-07-16 01:57:55 +05:00
2026-09-01 18:02:28 +05:00
2026-08-16 22:46:26 +05:00
2026-09-09 02:42:28 +05:00
2026-09-08 02:05:26 +05:00
2026-09-09 02:21:38 +05:00
2026-09-09 02:21:38 +05:00
2026-08-13 09:06:18 +05:00
2026-07-21 04:33:23 +00:00
2026-09-09 02:42:28 +05:00
2026-08-23 18:08:17 +05:00
2026-07-20 23:20:24 +05:00
2026-09-02 14:37:27 +05:00
2026-08-23 18:08:17 +05:00
2026-09-08 00:52:20 +05:00
2026-08-19 22:48:28 +05:00
2026-08-19 22:48:28 +05:00
2026-08-16 22:46:26 +05:00
2026-08-16 22:46:26 +05:00
2026-08-19 22:48:28 +05:00
2026-09-09 21:37:34 +05:00
2026-08-19 22:48:28 +05:00
2026-09-08 00:52:20 +05:00
2026-08-18 20:21:51 +05:00
2026-08-19 22:48:28 +05:00
2026-07-16 01:57:55 +05:00
2026-07-23 07:43:31 +05:00
2026-06-26 05:58:23 +07:00
2026-06-24 19:47:06 +07:00
2026-09-08 00:52:20 +05:00
2026-08-21 07:54:51 +05:00
2026-07-08 05:03:57 +05:00
2026-08-16 22:36:58 +05:00
2026-08-21 07:54:51 +05:00
2026-06-25 14:27:10 +07:00
2026-06-21 03:09:32 +07:00
2026-07-23 07:43:31 +05:00
2026-08-21 00:25:43 +05:00
2026-07-23 07:43:31 +05:00
2026-07-23 07:43:31 +05:00
2026-08-13 00:19:30 +05:00
2026-08-13 00:19:30 +05:00
2026-08-21 07:54:51 +05:00
2026-06-17 02:03:39 +07:00
2026-08-08 14:30:39 +05:00
2026-08-08 14:30:39 +05:00
2026-08-13 00:19:30 +05:00
2026-08-13 00:19:30 +05:00
2026-06-14 18:14:44 +05:00
2026-08-16 22:36:58 +05:00
2026-09-08 00:52:20 +05:00
2026-08-31 13:52:56 +05:00
2026-08-31 13:52:56 +05:00
2026-09-04 02:44:22 +05:00
2026-09-01 18:02:28 +05:00
2026-06-18 12:17:34 +07:00
2026-06-15 19:34:08 +05:00
2026-08-25 03:36:12 +05:00
2026-09-01 18:02:28 +05:00
2026-09-09 02:42:28 +05:00
2026-09-09 02:42:28 +05:00
2026-09-09 02:42:28 +05:00
2026-09-09 02:21:38 +05:00
2026-08-13 00:19:30 +05:00
2026-09-09 02:42:28 +05:00
2026-06-24 19:47:06 +07:00
2026-06-18 12:17:34 +07:00
2026-06-18 12:17:34 +07:00
2026-08-13 00:19:30 +05:00
2026-08-13 00:19:30 +05:00
2026-08-13 00:19:30 +05:00
2026-09-09 02:21:38 +05:00
2026-09-09 02:21:38 +05:00
2026-06-16 21:29:30 +07:00