Commit b28801c
committed
fix(plugin-auth): let ImportProtocolLike type the import protocol members
The `const protocol: ImportProtocolLike` literal in `admin-import-users.ts`
annotated all three required members `args: any`. An explicit parameter
annotation wins over the contextual type, so the one hand-written in-repo
implementor of the protocol was the one implementor NOT checked against the
request dialect the runner sends — the same file whose frozen `$filter` read
once degraded the duplicate probe into match-everything.
Deleting the three annotations lets `ImportProtocolLike` type the parameters.
`FindDataRequest` declares `query` optional, so `findData` now states its
refusal explicitly (already-ledgered `INVALID_REQUEST`) instead of relying on
an incidental TypeError from a property read on `undefined`. No `??` fallback,
no optional chaining: both spell match-everything.
Claude-Session: https://claude.ai/code/session_01ToDPcx9AESFubJkDiFMtKW
Co-authored-by: Claude <noreply@anthropic.com>1 parent 65ad77d commit b28801c
1 file changed
Lines changed: 23 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
362 | 362 | | |
363 | 363 | | |
364 | 364 | | |
365 | | - | |
366 | | - | |
367 | | - | |
368 | | - | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
369 | 386 | | |
370 | 387 | | |
371 | 388 | | |
372 | 389 | | |
373 | 390 | | |
374 | 391 | | |
375 | | - | |
| 392 | + | |
376 | 393 | | |
377 | 394 | | |
378 | 395 | | |
| |||
431 | 448 | | |
432 | 449 | | |
433 | 450 | | |
434 | | - | |
| 451 | + | |
435 | 452 | | |
436 | 453 | | |
437 | 454 | | |
| |||
0 commit comments