Skip to content

Commit 956eb21

Browse files
docs: defer the provider typing note to #409, which made fixtures required where providers do not run
1 parent 47eeacb commit 956eb21

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

‎docs/framework-mode.md‎

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -105,12 +105,7 @@ and augments `@agent-bundle/runtime`'s `AgentProviderValues`, so
105105
`(await agent()).providers.library` is a `LibraryContext` with no cast once
106106
the file is part of the project's TypeScript program (add
107107
`".agent-bundle/routes.d.ts"` to `tsconfig.json` `include`). Undeclared keys
108-
stay `unknown`. The augmentation describes the generated request scopes, which
109-
always mount every conventional provider before user code runs; it is not a
110-
runtime guarantee for hand-rolled `runAgentRequest` invocations or for route
111-
tests that omit a fixture — those contexts install exactly the providers they
112-
pass, and a declared key they leave out is `undefined` at runtime. Route-unit
113-
and CLI-dispatch tests inject fixture values through
108+
stay `unknown`. Route-unit and CLI-dispatch tests inject fixture values through
114109
`renderRoute(id, { context: { providers: { library } } })`; the harness never
115110
executes provider modules on a test's behalf. Because the augmentation makes
116111
declared keys required, the same program also requires `context.providers`

0 commit comments

Comments
 (0)