inspector/test-servers/src
Repository files (latest commit first)
Filename Latest commit message Latest commit date
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
..
composable-test-server.ts All of the mid-session and step-up auth work 2026-07-02 16:35:31 -07:00
index.ts feat(web,core): enterprise-managed authorization (EMA) (#1509) (#1512) 2026-06-24 22:15:12 -04:00
load-config.ts All of the mid-session and step-up auth work 2026-07-02 16:35:31 -07:00
preset-registry.ts All of the mid-session and step-up auth work 2026-07-02 16:35:31 -07:00
resolve-config.ts refactor: remove unsafe non-null assertions / double-cast in auth paths 2026-07-03 13:16:05 -04:00
server-composable.ts feat(core): port v1.5 InspectorClient + transports + auth subsystem (#1302) (#1306) 2026-05-15 15:36:17 -04:00
test-helpers.ts fix(storage): await store-file writes instead of polling (#1412) (#1413) 2026-06-02 11:55:24 -04:00
test-server-control.ts feat(core): port v1.5 InspectorClient + transports + auth subsystem (#1302) (#1306) 2026-05-15 15:36:17 -04:00
test-server-fixtures.ts All of the mid-session and step-up auth work 2026-07-02 16:35:31 -07:00
test-server-http.ts All of the mid-session and step-up auth work 2026-07-02 16:35:31 -07:00
test-server-oauth-jwt.ts All of the mid-session and step-up auth work 2026-07-02 16:35:31 -07:00
test-server-oauth.ts Fixes for remaining issues 2026-07-02 18:36:44 -07:00
test-server-stdio.ts feat(core): port v1.5 InspectorClient + transports + auth subsystem (#1302) (#1306) 2026-05-15 15:36:17 -04:00