@openharness/react 0.2.2 → 0.2.3
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 +4 -0
- package/package.json +7 -5
package/README.md
CHANGED
|
@@ -61,6 +61,10 @@ Context provider that holds subagent, session, and sandbox state. Wrap your app
|
|
|
61
61
|
|
|
62
62
|
Creates a chat session connected to your API endpoint. Returns the same interface as AI SDK 5's `useChat` (`messages`, `sendMessage`, `status`, `stop`, etc.), typed with `OHUIMessage`.
|
|
63
63
|
|
|
64
|
+
If you pass `messages`, the hook will also hydrate them when they arrive after the first render, which is useful for async persistence loads.
|
|
65
|
+
|
|
66
|
+
`onFinish` receives the full finish event, including `isAbort`, so persistence code can skip saving aborted assistant messages when desired.
|
|
67
|
+
|
|
64
68
|
### `useSubagentStatus()`
|
|
65
69
|
|
|
66
70
|
Derives reactive state from `data-oh:subagent.*` stream events:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openharness/react",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "React hooks and provider for OpenHarness AI SDK 5 integration",
|
|
6
6
|
"exports": {
|
|
@@ -15,8 +15,11 @@
|
|
|
15
15
|
],
|
|
16
16
|
"peerDependencies": {
|
|
17
17
|
"@ai-sdk/react": "^3.0.0",
|
|
18
|
-
"
|
|
19
|
-
"
|
|
18
|
+
"@openharness/core": "^0.4.4",
|
|
19
|
+
"react": "^18 || ~19.0.1 || ~19.1.2 || ^19.2.1"
|
|
20
|
+
},
|
|
21
|
+
"dependencies": {
|
|
22
|
+
"ai": "^6.0.97"
|
|
20
23
|
},
|
|
21
24
|
"homepage": "https://github.com/MaxGfeller/open-harness/tree/main/packages/react#readme",
|
|
22
25
|
"repository": {
|
|
@@ -39,11 +42,10 @@
|
|
|
39
42
|
"@ai-sdk/react": "^3.0.0",
|
|
40
43
|
"@testing-library/react": "^16.3.0",
|
|
41
44
|
"@types/react": "^19.0.0",
|
|
42
|
-
"ai": "^6.0.97",
|
|
43
45
|
"react": "^19.1.0",
|
|
44
46
|
"react-dom": "^19.1.0",
|
|
45
47
|
"typescript": "^5.9.3",
|
|
46
|
-
"@openharness/core": "0.4.
|
|
48
|
+
"@openharness/core": "0.4.4"
|
|
47
49
|
},
|
|
48
50
|
"license": "ISC",
|
|
49
51
|
"scripts": {
|