cliffhall
14404bc405
refactor: remove unsafe non-null assertions / double-cast in auth paths
...
Address the TypeScript-safety review items on the mid-session auth work:
- oauthManager: replace the unguarded `this.oauthConfig.storage!` assertions on
the EMA re-mint/persist paths with a `requireStorage()` helper that throws a
clear error; in `getOAuthState` reuse the already-narrowed local `storage`.
- cli: `parseRunnerOAuthCallbackUrl` always returns a config, so make
`callMethod`'s `callbackUrlConfig` (and the always-passed `cliAuthOverrides`)
required instead of asserting them non-null at three call sites.
- test-servers/resolve-config: drop the `as unknown as T` double cast; collect
into a base-shaped array and do a single honest downcast at the return.
No behavior change; validate + coverage green.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DZyeWManYTvcXxjcrhxSQc
2026-07-03 13:16:05 -04:00
..
__tests__
feat: apply auto-refresh setting live + diff-aware list-changed indicator ( #1444 ) ( #1445 )
2026-06-09 11:00:28 -04:00
import
feat(web,core): persist & edit STDIO cwd/env in Server Settings ( #1515 ) ( #1518 )
2026-06-24 19:15:43 -04:00
node
test: close ≥90% per-file coverage gaps for mid-session auth
2026-07-03 12:54:37 -04:00
remote
test: close ≥90% per-file coverage gaps for mid-session auth
2026-07-03 12:54:37 -04:00
state
fix(core): make "error" the canonical terminal status on a mid-session crash ( #1490 ) ( #1493 )
2026-06-15 10:15:29 -04:00
apps.ts
feat(apps): add isAppTool helper in core ( #1260 ) ( #1272 )
2026-05-01 17:03:11 -04:00
config.ts
Guided-auth removal, OAuth smoke testing, and TUI/CLI support ( #1531 )
2026-06-29 15:35:51 -04:00
elicitationCreateMessage.ts
feat(web): URL elicitation — explicit completion step + error-path (-32042) handling ( #1415 ) ( #1436 )
2026-06-06 18:25:01 -04:00
fetchTracking.ts
feat(network): add Network screen surfacing backend fetch log ( #1355 ) ( #1363 )
2026-05-27 08:35:25 -04:00
index.ts
Guided-auth removal, OAuth smoke testing, and TUI/CLI support ( #1531 )
2026-06-29 15:35:51 -04:00
inspectorClient.ts
test: close ≥90% per-file coverage gaps for mid-session auth
2026-07-03 12:54:37 -04:00
inspectorClientEventTarget.ts
All of the mid-session and step-up auth work
2026-07-02 16:35:31 -07:00
inspectorClientProtocol.ts
feat: apply auto-refresh setting live + diff-aware list-changed indicator ( #1444 ) ( #1445 )
2026-06-09 11:00:28 -04:00
messageTrackingTransport.ts
feat(web): display negotiated MCP protocol version on ServerCard ( #1324 ) ( #1442 )
2026-06-08 07:40:02 -04:00
oauthManager.ts
refactor: remove unsafe non-null assertions / double-cast in auth paths
2026-07-03 13:16:05 -04:00
samplingCreateMessage.ts
refactor(core): apply v1.5-port cleanups deferred from #1306 ( #1316 )
2026-05-17 19:15:48 -04:00
serverList.ts
feat(web,core): enterprise-managed authorization (EMA) ( #1509 ) ( #1512 )
2026-06-24 22:15:12 -04:00
sessionStorage.ts
feat(core): port v1.5 hook layer ( #1243 ) ( #1300 )
2026-05-13 17:43:07 -04:00
taskNotificationSchemas.ts
Phase 0 foundations for component interfaces refactor
2026-04-15 16:06:23 -04:00
toolCallCancelledError.ts
fix(web): send a cancellation notification when cancelling an ordinary tool call ( #1458 ) ( #1463 )
2026-06-13 22:23:02 -04:00
toolOutputValidation.ts
feat(apps): render running MCP Apps end-to-end ( #1370 ) ( #1403 )
2026-06-01 18:01:44 -04:00
typedEventTarget.ts
Test/1396 harden managed state connect tests ( #1508 )
2026-06-24 10:46:09 -04:00
types.ts
All of the mid-session and step-up auth work
2026-07-02 16:35:31 -07:00
urlElicitation.ts
feat(web): URL elicitation — explicit completion step + error-path (-32042) handling ( #1415 ) ( #1436 )
2026-06-06 18:25:01 -04:00