@syntrologie/adapt-chatbot 2.8.0-canary.357 → 2.8.0-canary.358

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  ChatAssistantLitMountable,
3
3
  renderFallbackHtml
4
- } from "./chunk-SONKUCGI.js";
4
+ } from "./chunk-JMP4WEJR.js";
5
5
  import "./chunk-ONGGPQER.js";
6
6
  import "./chunk-VLJ3WOEX.js";
7
7
  import "./chunk-UVKRO5ER.js";
@@ -7601,15 +7601,23 @@ var AgUiTransport = class {
7601
7601
  const { event } = params;
7602
7602
  this._emit({ type: "message-complete", messageId: event.messageId });
7603
7603
  },
7604
- // pydantic-ai's AG-UI adapter emits THINKING_TEXT_MESSAGE_CONTENT for
7604
+ // pydantic-ai's AG-UI adapter emits REASONING_MESSAGE_CONTENT for
7605
7605
  // every reasoning delta the model produces between turns. We forward
7606
7606
  // the deltas verbatim — the model already narrates its intent ("Let
7607
7607
  // me check what we have for student athletes…") in its own words, so
7608
7608
  // surfacing them gives the visitor real progress instead of silent
7609
7609
  // loading dots during the tool-call gap between two assistant
7610
- // messages. THINKING_START/END just bracket the deltas; only the
7610
+ // messages. REASONING_START/END just bracket the deltas; only the
7611
7611
  // content carries the narration we care about.
7612
- onThinkingTextMessageContentEvent: (params) => {
7612
+ //
7613
+ // Naming history: AG-UI 0.0.45+ renamed THINKING_* to REASONING_*
7614
+ // and dropped the THINKING callback names from `AgentSubscriber`.
7615
+ // Registering `onThinkingTextMessageContentEvent` here used to be
7616
+ // a silent no-op — the AG-UI client never invoked it — so reasoning
7617
+ // deltas never reached the trail despite the backend emitting them.
7618
+ // The matching test in agui-transport.test.ts faked the same
7619
+ // callback name, hiding the drift. Both fixed together.
7620
+ onReasoningMessageContentEvent: (params) => {
7613
7621
  const { event } = params;
7614
7622
  this._emit({
7615
7623
  type: "thinking-delta",
@@ -8830,4 +8838,4 @@ fast-json-patch/module/duplex.mjs:
8830
8838
  * MIT license
8831
8839
  *)
8832
8840
  */
8833
- //# sourceMappingURL=chunk-SONKUCGI.js.map
8841
+ //# sourceMappingURL=chunk-JMP4WEJR.js.map