@ai-sdk/harness 1.0.163 → 1.0.164

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/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @ai-sdk/harness
2
2
 
3
+ ## 1.0.164
4
+
5
+ ### Patch Changes
6
+
7
+ - a9837eb: feat(harness): provide shared utils for bridge-backed adapters to manage web socket connection and bridge handshake
8
+ - e729d58: chore(docs): update `README.md` for consistent format and to avoid duplication
9
+ - Updated dependencies [5475347]
10
+ - Updated dependencies [e729d58]
11
+ - @ai-sdk/provider@4.0.34
12
+ - ai@7.0.153
13
+ - @ai-sdk/provider-utils@5.0.68
14
+
3
15
  ## 1.0.163
4
16
 
5
17
  ### Patch Changes
package/README.md CHANGED
@@ -1,13 +1,13 @@
1
1
  # AI SDK - Harness Specification and Agent
2
2
 
3
- _This package is **experimental**._
4
-
5
3
  `HarnessAgent` implementation plus the underlying harness specification, including an expanded network session sandbox interface to support harness sandbox needs.
6
4
 
5
+ -> **Note**: This package is experimental.
6
+
7
7
  ## Setup
8
8
 
9
9
  ```bash
10
- npm i ai zod @ai-sdk/harness @ai-sdk/harness-claude-code @ai-sdk/sandbox-vercel
10
+ npm i ai @ai-sdk/harness @ai-sdk/harness-claude-code @ai-sdk/sandbox-vercel zod
11
11
  ```
12
12
 
13
13
  ## Usage
@@ -84,24 +84,4 @@ try {
84
84
  }
85
85
  ```
86
86
 
87
- Set `output` on `HarnessAgent` to require the same typed, schema-backed output
88
- on every turn. `generate()` exposes the validated value as `result.output`, and
89
- `stream()` additionally exposes `partialOutputStream`; the JSON also remains on
90
- the normal text and stream surfaces.
91
-
92
- ```ts
93
- import { Output } from 'ai';
94
-
95
- const agent = new HarnessAgent({
96
- harness: claudeCode,
97
- output: Output.object({
98
- schema: z.object({ answer: z.string() }),
99
- }),
100
- });
101
- ```
102
-
103
- ## Documentation
104
-
105
- - [Detailed usage documentation](https://ai-sdk.dev/docs/ai-sdk-harnesses)
106
- - [Harness abstraction architecture](https://github.com/vercel/ai/blob/main/architecture/harness-abstraction.md)
107
- - [Sandbox abstraction architecture](https://github.com/vercel/ai/blob/main/architecture/sandbox-abstraction.md)
87
+ See the [Harness Specification and Agent documentation](https://ai-sdk.dev/docs/ai-sdk-harnesses) for more information.