Commit f17f456
feat(chat)!: remove provideChat(), fix app-level markdown registry overrides, and three API cleanups (#1055)
* feat(chat)!: remove provideChat(), ChatConfig, and CHAT_CONFIG
No component in @threadplane/chat ever injected CHAT_CONFIG, so
provideChat({}) configured nothing: renderRegistry, avatarLabel, and
assistantName were values only a consumer's own wrappers could read back.
The provider, the token, the interface, and the dead ChatConfig duplicate
in chat.types.ts are deleted outright.
Every call site follows: 35 cockpit example app.config.ts files, both
standalone example apps, the chat and langgraph READMEs, the @threadplane
/render JSDoc that referenced it, the docs pages that described it, and the
blog tutorials whose bootstrap snippets would otherwise no longer compile.
The three pages that documented the API — chat/api/provide-chat,
chat/api/chat-config, and chat/guides/configuration — are deleted, dropped
from the docs nav, added to the retired-route pattern the public-copy
contract enforces, and permanently redirected (with their /api/markdown
mirrors) to chat installation so delivered links do not 404.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
* fix(chat): let an ancestor MARKDOWN_VIEW_REGISTRY override markdown views
<chat-streaming-md> provided MARKDOWN_VIEW_REGISTRY on its own component
injector from its own default, so a provider at the application root or on a
route was always shadowed and never reached the markdown node components.
The [viewRegistry] input was the only override that worked.
Resolution is now most-specific-first: the [viewRegistry] input, then a
registry found through skipSelf on an ancestor injector, then
cacheplaneMarkdownViews. The resolved value is still provided on the component
injector, so <chat-md-children> and the table-row view are unchanged, and
<chat> needs to forward nothing for an app-wide override to reach the markdown
it renders for assistant messages.
The new spec fails on the old resolution in two of its four cases (ancestor
provider, and the same through <chat>) and passes on the other two, which pin
the default and the input precedence.
Restores an accurate "App-wide override" section in the markdown guide, which
previously carried a Callout asserting the opposite, and corrects the
CHANGELOG entry that made the same claim.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
* refactor(chat): drop the unreachable 'mixed' content type, widen messageContent, tokenize the popup launcher
Three small cleanups:
- ContentType no longer carries 'mixed'. createContentClassifier never emitted
it, so the `|| currentType === 'mixed'` branch in the delta path was dead and
any consumer switch on it had a case no input reaches. The docs said as much
and told readers not to branch on it; the member is simply gone instead.
- messageContent() takes { content: unknown } rather than LangChain's
BaseMessage. Every caller in this library holds the runtime-neutral Message
from agent.messages(), so ChatComponent.humanContent carried a cast and the
docs told consumers to pass something other than the message they actually
have. The function reads nothing but .content, so the structural parameter is
the honest signature; the cast is gone.
- --tplane-chat-launcher-offset-x / -y (both 1rem) position the <chat-popup>
launcher, which was pinned with hard-coded corner offsets. The popup window
reads the horizontal one too, so it stays aligned when the launcher moves
clear of a bottom bar or a consent banner.
The new message-utils spec fails to type-check against the old BaseMessage
signature (four errors under tsconfig.spec.json) and passes after. The new
chat-popup styles spec fails four of its five cases before the change, and its
window-alignment guard was mutation-checked by reverting that one declaration.
Regenerates the chat and render api-docs.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
* fix(chat): drop the now-unused @langchain/core peer dependency
Widening messageContent() to { content: unknown } removed the last
LangChain import from the published package, so @nx/dependency-checks
fails the declared peer. It stays a peer of @threadplane/langgraph,
which is why the install command still lists it.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>1 parent 8ae6a86 commit f17f456
121 files changed
Lines changed: 554 additions & 840 deletions
File tree
- apps/website
- content
- blog
- docs
- a2ui/getting-started
- ag-ui
- guides
- reference
- chat
- a2ui
- api
- components
- concepts
- getting-started
- guides
- deep-agents
- capabilities
- getting-started
- langgraph/guides
- render/api
- runtimes
- aws-strands
- getting-started
- mastra
- microsoft-agent-framework
- src
- app/chat
- components/docs/mdx
- lib
- cockpit
- ag-ui
- a2ui/angular/src/app
- client-tools/angular/src/app
- interrupts/angular/src/app
- json-render/angular/src/app
- streaming/angular/src/app
- subagents/angular/src/app
- tool-views/angular/src/app
- chat
- a2ui/angular/src/app
- debug/angular/src/app
- generative-ui/angular/src/app
- input/angular/src/app
- interrupts/angular/src/app
- messages/angular/src/app
- subagents/angular/src/app
- theming/angular/src/app
- threads/angular/src/app
- timeline/angular/src/app
- tool-calls/angular/src/app
- deep-agents
- filesystem/angular/src/app
- memory/angular/src/app
- planning/angular/src/app
- skills/angular/src/app
- subagents/angular/src/app
- langgraph
- client-tools/angular/src/app
- deployment-runtime/angular/src/app
- durable-execution/angular/src/app
- interrupts/angular/src/app
- memory/angular/src/app
- persistence/angular/src/app
- streaming/angular/src/app
- subgraphs/angular/src/app
- time-travel/angular/src/app
- runtimes
- aws-strands/angular/src/app
- mastra/angular/src/app
- microsoft-agent-framework/angular/src/app
- examples
- ag-ui/angular/src/app
- chat/angular/src/app
- libs
- chat
- src
- lib
- client-tools
- compositions
- chat-popup
- chat
- markdown
- streaming
- styles
- langgraph
- render/src/lib
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 1 addition & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
98 | | - | |
99 | 98 | | |
100 | 99 | | |
101 | 100 | | |
102 | 101 | | |
103 | | - | |
104 | 102 | | |
105 | 103 | | |
106 | 104 | | |
107 | 105 | | |
108 | | - | |
| 106 | + | |
109 | 107 | | |
110 | 108 | | |
111 | 109 | | |
| |||
Lines changed: 2 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
115 | 115 | | |
116 | 116 | | |
117 | 117 | | |
118 | | - | |
119 | 118 | | |
120 | 119 | | |
121 | 120 | | |
122 | 121 | | |
123 | | - | |
124 | 122 | | |
125 | 123 | | |
126 | 124 | | |
127 | 125 | | |
128 | 126 | | |
129 | 127 | | |
130 | | - | |
| 128 | + | |
131 | 129 | | |
132 | | - | |
| 130 | + | |
133 | 131 | | |
134 | 132 | | |
135 | 133 | | |
| |||
Lines changed: 0 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
120 | | - | |
121 | 120 | | |
122 | 121 | | |
123 | 122 | | |
124 | 123 | | |
125 | | - | |
126 | 124 | | |
127 | 125 | | |
128 | 126 | | |
| |||
Lines changed: 0 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
205 | 205 | | |
206 | 206 | | |
207 | 207 | | |
208 | | - | |
209 | 208 | | |
210 | 209 | | |
211 | 210 | | |
212 | 211 | | |
213 | | - | |
214 | 212 | | |
215 | 213 | | |
216 | 214 | | |
| |||
Lines changed: 0 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
230 | 230 | | |
231 | 231 | | |
232 | 232 | | |
233 | | - | |
234 | 233 | | |
235 | 234 | | |
236 | 235 | | |
237 | 236 | | |
238 | 237 | | |
239 | 238 | | |
240 | | - | |
241 | 239 | | |
242 | 240 | | |
243 | 241 | | |
| |||
Lines changed: 0 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
167 | 167 | | |
168 | 168 | | |
169 | 169 | | |
170 | | - | |
171 | 170 | | |
172 | 171 | | |
173 | 172 | | |
174 | 173 | | |
175 | 174 | | |
176 | 175 | | |
177 | | - | |
178 | 176 | | |
179 | 177 | | |
180 | 178 | | |
| |||
Lines changed: 0 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
173 | 173 | | |
174 | 174 | | |
175 | 175 | | |
176 | | - | |
177 | 176 | | |
178 | 177 | | |
179 | 178 | | |
| |||
195 | 194 | | |
196 | 195 | | |
197 | 196 | | |
198 | | - | |
199 | 197 | | |
200 | 198 | | |
201 | 199 | | |
| |||
Lines changed: 0 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
97 | | - | |
98 | 97 | | |
99 | 98 | | |
100 | 99 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
| 39 | + | |
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
75 | | - | |
| 75 | + | |
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
| |||
0 commit comments