@economic/agents-react 1.1.5 → 1.1.6

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/index.d.mts CHANGED
@@ -288,9 +288,8 @@ declare function useChat<ToolContext extends Record<string, unknown>>(options: U
288
288
  };
289
289
  //#endregion
290
290
  //#region src/useAssistant.d.ts
291
- /** Chat summary returned by the assistant's `getChats` RPC. */
292
291
  type ChatSummary = {
293
- chatId: string;
292
+ name: string;
294
293
  title?: string;
295
294
  summary?: string;
296
295
  created_at: number;
package/dist/index.mjs CHANGED
@@ -85,7 +85,7 @@ function useAssistant(options) {
85
85
  return (await assistant.call("getChats")).map((chat) => {
86
86
  const c = {
87
87
  ...chat,
88
- chatId: chat.durable_object_name
88
+ name: chat.durable_object_name
89
89
  };
90
90
  delete c.durable_object_name;
91
91
  return c;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@economic/agents-react",
3
- "version": "1.1.5",
3
+ "version": "1.1.6",
4
4
  "license": "MIT",
5
5
  "files": [
6
6
  "dist"