@dudousxd/nestjs-agent-core 0.44.1 → 0.45.0
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.
- package/dist/ag-ui/index.cjs +6 -1
- package/dist/ag-ui/index.cjs.map +1 -1
- package/dist/ag-ui/index.d.cts +2 -2
- package/dist/ag-ui/index.d.ts +2 -2
- package/dist/ag-ui/index.js +6 -1
- package/dist/ag-ui/index.js.map +1 -1
- package/dist/{catalog-G8usJpx5.d.cts → catalog-BUmTnAqU.d.cts} +14 -1
- package/dist/{catalog-G8usJpx5.d.ts → catalog-BUmTnAqU.d.ts} +14 -1
- package/dist/genui/builtins.cjs +1 -0
- package/dist/genui/builtins.cjs.map +1 -1
- package/dist/genui/builtins.d.cts +1 -1
- package/dist/genui/builtins.d.ts +1 -1
- package/dist/genui/builtins.js +1 -0
- package/dist/genui/builtins.js.map +1 -1
- package/dist/genui/index.cjs +232 -14
- package/dist/genui/index.cjs.map +1 -1
- package/dist/genui/index.d.cts +99 -14
- package/dist/genui/index.d.ts +99 -14
- package/dist/genui/index.js +230 -14
- package/dist/genui/index.js.map +1 -1
- package/dist/guardrails/index.d.cts +3 -3
- package/dist/guardrails/index.d.ts +3 -3
- package/dist/index.cjs +519 -9
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +103 -6
- package/dist/index.d.ts +103 -6
- package/dist/index.js +513 -9
- package/dist/index.js.map +1 -1
- package/dist/{processors-BANqZT3O.d.cts → processors-BhOGaMPY.d.cts} +1 -1
- package/dist/{processors-C9mor-73.d.ts → processors-DDKKky_6.d.ts} +1 -1
- package/dist/{stream-events-BfxJAckJ.d.cts → stream-events-CqCqYjJw.d.ts} +63 -4
- package/dist/{stream-events-DFa2Do42.d.ts → stream-events-qB6NOOvn.d.cts} +63 -4
- package/package.json +1 -1
package/dist/ag-ui/index.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { A as AgentStreamEvent, U as UiCapabilities } from '../stream-events-
|
|
1
|
+
import { A as AgentStreamEvent, U as UiCapabilities } from '../stream-events-qB6NOOvn.cjs';
|
|
2
2
|
import '@standard-schema/spec';
|
|
3
|
-
import '../catalog-
|
|
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
|
package/dist/ag-ui/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { A as AgentStreamEvent, U as UiCapabilities } from '../stream-events-
|
|
1
|
+
import { A as AgentStreamEvent, U as UiCapabilities } from '../stream-events-CqCqYjJw.js';
|
|
2
2
|
import '@standard-schema/spec';
|
|
3
|
-
import '../catalog-
|
|
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
|
package/dist/ag-ui/index.js
CHANGED
|
@@ -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
|
-
|
|
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 ? {
|