@economic/agents-react 1.1.0 → 1.1.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.
package/dist/index.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import { useAgent as useAgent$1 } from "agents/react";
2
2
  import { useAgentChat } from "@cloudflare/ai-chat/react";
3
- import React from "react";
3
+ import { useState } from "react";
4
4
  //#region src/util.ts
5
5
  function getTokenArgs(authToken) {
6
6
  if (!authToken) return {};
@@ -32,7 +32,7 @@ function useAssistant(options) {
32
32
  id: userId,
33
33
  authToken
34
34
  };
35
- const [chatId, setChatId] = React.useState(initialChatId);
35
+ const [chatId, setChatId] = useState(initialChatId);
36
36
  const assistant = useAgent(config);
37
37
  const getConversations = async () => {
38
38
  return await assistant.call("getConversations");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@economic/agents-react",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "license": "MIT",
5
5
  "files": [
6
6
  "dist"
@@ -18,8 +18,14 @@
18
18
  "typecheck": "tsc --noEmit",
19
19
  "prepublishOnly": "npm run build"
20
20
  },
21
+ "dependencies": {
22
+ "@ai-sdk/react": "^3.0.182",
23
+ "@cloudflare/ai-chat": ">=0.7.2 <1.0.0",
24
+ "agents": ">=0.13.3 <1.0.0",
25
+ "ai": "^6.0.180",
26
+ "zod": "^4.4.3"
27
+ },
21
28
  "devDependencies": {
22
- "@cloudflare/ai-chat": "^0.7.2",
23
29
  "@cloudflare/workers-types": "^4.20260527.1",
24
30
  "@types/node": "^25.6.0",
25
31
  "@typescript/native-preview": "7.0.0-dev.20260412.1",
@@ -28,17 +34,9 @@
28
34
  "vitest": "^4.1.4"
29
35
  },
30
36
  "peerDependencies": {
31
- "@cloudflare/ai-chat": ">=0.7.2 <1.0.0",
32
- "agents": ">=0.13.3 <1.0.0",
33
37
  "react": "^19"
34
38
  },
35
39
  "inlinedDependencies": {
36
- "@ai-sdk/provider": "3.0.10",
37
- "@ai-sdk/provider-utils": "4.0.27",
38
- "@ai-sdk/react": "3.0.182",
39
- "@standard-schema/spec": "1.1.0",
40
- "ai": "6.0.180",
41
- "partysocket": "1.1.19",
42
- "zod": "4.4.3"
40
+ "partysocket": "1.1.19"
43
41
  }
44
42
  }