Subscribe to a scoped values stream — the most recent state
payload for a namespace. At the root returns stream.values.
Typing:
injectValues(stream)): returns the StateType
declared on injectStream<State>() — non-nullable (the root
snapshot always has values, falling back to initialValues ?? {}).injectValues(stream, target)): scoped payloads can
differ from the root state; callers should annotate the expected
shape explicitly (injectValues<SubagentState>(stream, sub)).
Defaults to unknown when not annotated.| Name | Type | Description |
|---|---|---|
stream* | StreamHandle<StateType> |