@multiplayer-app/ai-agent-react 0.1.0-beta.89 → 0.1.0-beta.90
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/ai-agent-react.cjs.js +2 -2
- package/dist/ai-agent-react.cjs.js.map +1 -1
- package/dist/ai-agent-react.es.js +6 -4
- package/dist/ai-agent-react.es.js.map +1 -1
- package/dist/config/types.d.ts.map +1 -1
- package/dist/runtime/AgentRuntime.d.ts.map +1 -1
- package/package.json +2 -2
- package/dist/components/ChatWindow/MessageList/Message/MessageAttachments.d.ts +0 -7
- package/dist/components/ChatWindow/MessageList/Message/MessageAttachments.d.ts.map +0 -1
|
@@ -247,7 +247,7 @@ var sd;
|
|
|
247
247
|
})(sd || (sd = {}));
|
|
248
248
|
var Kr;
|
|
249
249
|
(function(e) {
|
|
250
|
-
e.Processing = "processing", e.Streaming = "streaming", e.Finished = "finished", e.Aborted = "aborted", e.WaitingForUserAction = "waitingForUserAction", e.Error = "error";
|
|
250
|
+
e.Processing = "processing", e.Streaming = "streaming", e.Finished = "finished", e.Aborted = "aborted", e.WaitingForUserAction = "waitingForUserAction", e.Error = "error", e.Timedout = "timedout";
|
|
251
251
|
})(Kr || (Kr = {}));
|
|
252
252
|
var Kh;
|
|
253
253
|
(function(e) {
|
|
@@ -31775,8 +31775,6 @@ class S7e {
|
|
|
31775
31775
|
const n = Gh.parse(t);
|
|
31776
31776
|
this.config = {
|
|
31777
31777
|
...n,
|
|
31778
|
-
toolRenderers: t.toolRenderers,
|
|
31779
|
-
composerAttachmentActions: t.composerAttachmentActions,
|
|
31780
31778
|
// Preserve tool handlers which are functions and can't be validated by Zod
|
|
31781
31779
|
tools: t.tools,
|
|
31782
31780
|
// Preserve optional pageContext hooks which are functions and can't be validated by Zod
|
|
@@ -31784,7 +31782,11 @@ class S7e {
|
|
|
31784
31782
|
// Merge user translations with defaults
|
|
31785
31783
|
translations: t.translations ? { ...od, ...t.translations } : od,
|
|
31786
31784
|
// Preserve onError callback from transport config (stripped by Zod since it's a function)
|
|
31787
|
-
transport: t.transport.onError ? { ...n.transport, onError: t.transport.onError } : n.transport
|
|
31785
|
+
transport: t.transport.onError ? { ...n.transport, onError: t.transport.onError } : n.transport,
|
|
31786
|
+
// Preserve ReactNode values which are stripped by Zod
|
|
31787
|
+
toolRenderers: t.toolRenderers,
|
|
31788
|
+
contextAttachmentIcons: t.contextAttachmentIcons,
|
|
31789
|
+
composerAttachmentActions: t.composerAttachmentActions
|
|
31788
31790
|
}, this.transport = this.createTransport(this.config.transport), this.tools = new e_(this.config.tools), this.tools.bindInvoke(this.invokeTool.bind(this)), this.configureTransportAfterCreate(this.transport), Object.entries(t.toolRenderers ?? {}).forEach(([r, a]) => {
|
|
31789
31791
|
a && this.toolRendererMap.set(r, a);
|
|
31790
31792
|
}), this.toolRendererMap.has("propose_form_values") || this.toolRendererMap.set("propose_form_values", _7e), this.queryClient = new T7({
|