@dudousxd/nestjs-agent-core 0.44.1 → 0.45.1

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,6 +1,6 @@
1
- import { A as AgentStreamEvent, U as UiCapabilities } from '../stream-events-BfxJAckJ.cjs';
1
+ import { A as AgentStreamEvent, U as UiCapabilities } from '../stream-events-qB6NOOvn.cjs';
2
2
  import '@standard-schema/spec';
3
- import '../catalog-G8usJpx5.cjs';
3
+ import '../catalog-BUmTnAqU.cjs';
4
4
 
5
5
  /**
6
6
  * The slice of AG-UI 1.0 (https://docs.ag-ui.com/spec/1.0) this producer writes and reads. Typed by
@@ -1,6 +1,6 @@
1
- import { A as AgentStreamEvent, U as UiCapabilities } from '../stream-events-DFa2Do42.js';
1
+ import { A as AgentStreamEvent, U as UiCapabilities } from '../stream-events-CqCqYjJw.js';
2
2
  import '@standard-schema/spec';
3
- import '../catalog-G8usJpx5.js';
3
+ import '../catalog-BUmTnAqU.js';
4
4
 
5
5
  /**
6
6
  * The slice of AG-UI 1.0 (https://docs.ag-ui.com/spec/1.0) this producer writes and reads. Typed by
@@ -261,6 +261,10 @@ var AgUiEncoder = class {
261
261
  } : {},
262
262
  ...event.toolCallId !== void 0 ? {
263
263
  toolCallId: event.toolCallId
264
+ } : {},
265
+ // A preview of a call's streaming input: a repeat of this id replaces it in place.
266
+ ...event.partial === true ? {
267
+ partial: true
264
268
  } : {}
265
269
  })
266
270
  ];
@@ -279,7 +283,8 @@ var AgUiEncoder = class {
279
283
  } : {},
280
284
  interrupt: {
281
285
  reason: "tool_approval",
282
- message: event.reason ?? (toolName.length > 0 ? `Approve ${toolName}?` : "Approve?"),
286
+ // The tool's own wording ("Refund order #7?"), as the CUSTOM event's `confirmation`.
287
+ message: event.reason ?? event.confirmation?.title ?? (toolName.length > 0 ? `Approve ${toolName}?` : "Approve?"),
283
288
  toolCallId: event.id,
284
289
  responseSchema: APPROVAL_SCHEMA,
285
290
  ...event.expiresAt !== void 0 ? {