@economic/agents-react 1.4.2 → 1.4.4

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
@@ -1,5 +1,5 @@
1
1
  import { useAgent as useAgent$1 } from "agents/react";
2
- import { useAgentChat } from "@cloudflare/ai-chat/react";
2
+ import { getToolApproval, getToolCallId, getToolPartState, useAgentChat } from "@cloudflare/ai-chat/react";
3
3
 
4
4
  //#region src/types.d.ts
5
5
  type _CfAgent = ReturnType<typeof useAgent$1>;
@@ -89,4 +89,4 @@ interface UseAssistantOptions<ToolContext extends Record<string, unknown> = Reco
89
89
  }
90
90
  declare function useAssistant<ToolContext extends Record<string, unknown>>(options: UseAssistantOptions<ToolContext>): UseAssistantReturn;
91
91
  //#endregion
92
- export { type Agent, type AgentConnectionStatus, type AgentConnectionType, type Assistant, type Chat, type ChatSummary, type CreateChatHandler, type DeleteChatHandler, type GetChatsHandler, type GetMessageFeedbackHandler, type MessageFeedback, type MessageFeedbackHandler, type OpenChatHandler, type UseAgentReturn, type UseAssistantReturn, type UseChatReturn, useAgent, useAssistant, useChat };
92
+ export { type Agent, type AgentConnectionStatus, type AgentConnectionType, type Assistant, type Chat, type ChatSummary, type CreateChatHandler, type DeleteChatHandler, type GetChatsHandler, type GetMessageFeedbackHandler, type MessageFeedback, type MessageFeedbackHandler, type OpenChatHandler, type UseAgentReturn, type UseAssistantReturn, type UseChatReturn, getToolApproval, getToolCallId, getToolPartState, useAgent, useAssistant, useChat };
package/dist/index.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import { useCallback, useEffect, useRef, useState } from "react";
2
2
  import { useAgent as useAgent$1 } from "agents/react";
3
- import { useAgentChat } from "@cloudflare/ai-chat/react";
3
+ import { getToolApproval, getToolCallId, getToolPartState, useAgentChat } from "@cloudflare/ai-chat/react";
4
4
  //#region src/util.ts
5
5
  function getTokenArgs(authToken) {
6
6
  if (!authToken) return {};
@@ -198,4 +198,4 @@ function useAssistant(options) {
198
198
  };
199
199
  }
200
200
  //#endregion
201
- export { useAgent, useAssistant, useChat };
201
+ export { getToolApproval, getToolCallId, getToolPartState, useAgent, useAssistant, useChat };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@economic/agents-react",
3
- "version": "1.4.2",
3
+ "version": "1.4.4",
4
4
  "license": "MIT",
5
5
  "files": [
6
6
  "dist"
@@ -21,13 +21,13 @@
21
21
  },
22
22
  "dependencies": {
23
23
  "@ai-sdk/react": "^3.0.182",
24
- "@cloudflare/ai-chat": "^0.8.5",
25
- "agents": "^0.16.0",
24
+ "@cloudflare/ai-chat": "^0.9.3",
25
+ "agents": "^0.17.3",
26
26
  "ai": "^6.0.180",
27
27
  "zod": "^4.4.3"
28
28
  },
29
29
  "devDependencies": {
30
- "@cloudflare/workers-types": "^4.20260616.1",
30
+ "@cloudflare/workers-types": "^4.20260701.1",
31
31
  "@types/node": "^25.6.0",
32
32
  "@typescript/native-preview": "7.0.0-dev.20260412.1",
33
33
  "tsdown": "^0.22.0",