Repository navigation
Commit 517a134
refactor: address remaining LOW review nits (any → unknown)
- critic.ts: `Verifier.verify(args: Record<string, any>)` and `gate(args)` now
use `Record<string, unknown>` — arbitrary tool args, but stricter than `any`
(callers must narrow; `String(args["command"])` still compiles).
- prompt.ts: the gate-block `args` cast updated to `Record<string, unknown>` to
match; the metadata `as any` kept (open tool-metadata record, consistent with
the surrounding tool-wrapper casts) with an explanatory comment per the
no-bare-`any` guideline.
104 critic tests pass; typecheck clean.
Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>1 parent 50a0f6e commit 517a134
2 files changed
Lines changed: 5 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1526 | 1526 | | |
1527 | 1527 | | |
1528 | 1528 | | |
1529 | | - | |
| 1529 | + | |
1530 | 1530 | | |
1531 | 1531 | | |
1532 | 1532 | | |
| 1533 | + | |
| 1534 | + | |
1533 | 1535 | | |
1534 | 1536 | | |
1535 | 1537 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
| 43 | + | |
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| |||
238 | 238 | | |
239 | 239 | | |
240 | 240 | | |
241 | | - | |
| 241 | + | |
242 | 242 | | |
243 | 243 | | |
244 | 244 | | |
| |||
0 commit comments