@agentnext/react 0.1.1 → 0.1.2
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/README.md +26 -0
- package/package.json +3 -3
package/README.md
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# AgentNext React
|
|
2
|
+
|
|
3
|
+
React helpers for registering AgentNext actions and consuming runtime state.
|
|
4
|
+
|
|
5
|
+
## Overview
|
|
6
|
+
Use AgentNext actions directly inside React apps with provider and hook patterns.
|
|
7
|
+
|
|
8
|
+
## Features
|
|
9
|
+
- AgentProvider
|
|
10
|
+
- useAgentAction
|
|
11
|
+
- useAgentRegistry
|
|
12
|
+
|
|
13
|
+
## Installation
|
|
14
|
+
```bash
|
|
15
|
+
npm install @agentnext/react @agentnext/core @agentnext/webmcp
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
## Usage
|
|
19
|
+
```ts
|
|
20
|
+
import { AgentProvider, useAgentAction } from "@agentnext/react";
|
|
21
|
+
|
|
22
|
+
function App() {
|
|
23
|
+
useAgentAction(someAction);
|
|
24
|
+
return <AgentProvider><YourUI /></AgentProvider>;
|
|
25
|
+
}
|
|
26
|
+
```
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agentnext/react",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "React integration for AgentNext — AgentProvider, useAgentAction, useAgentRegistry",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "AgentNext",
|
|
@@ -35,8 +35,8 @@
|
|
|
35
35
|
"prepublishOnly": "npm run build"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@agentnext/core": "^0.1.
|
|
39
|
-
"@agentnext/webmcp": "^0.1.
|
|
38
|
+
"@agentnext/core": "^0.1.2",
|
|
39
|
+
"@agentnext/webmcp": "^0.1.2"
|
|
40
40
|
},
|
|
41
41
|
"peerDependencies": {
|
|
42
42
|
"react": "^18.0.0 || ^19.0.0",
|