@ai-sdk/harness-grok-build 0.0.0 → 1.0.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/CHANGELOG.md ADDED
@@ -0,0 +1,30 @@
1
+ # @ai-sdk/harness-grok-build
2
+
3
+ ## 1.0.1
4
+
5
+ ### Patch Changes
6
+
7
+ - a03ff6c: feat(harness): add support for per-harness MCP servers
8
+ - fc3baaf: feat(harness): add optional `mintBridgeToken(sandboxId)` to harness settings to control the bridge token value
9
+ - Updated dependencies [401a4ba]
10
+ - Updated dependencies [a03ff6c]
11
+ - Updated dependencies [fc3baaf]
12
+ - @ai-sdk/provider-utils@5.0.26
13
+ - @ai-sdk/harness-acp@1.0.2
14
+ - @ai-sdk/harness@1.0.65
15
+
16
+ ## 1.0.0
17
+
18
+ ### Major Changes
19
+
20
+ - bb54c38: feat(harness-grok-build): add Grok Build harness built on top of ACP adapter
21
+
22
+ ### Patch Changes
23
+
24
+ - Updated dependencies [6f54e1d]
25
+ - Updated dependencies [15d0475]
26
+ - Updated dependencies [faaabb0]
27
+ - Updated dependencies [81cd026]
28
+ - @ai-sdk/harness-acp@1.0.1
29
+ - @ai-sdk/provider-utils@5.0.25
30
+ - @ai-sdk/harness@1.0.64
package/LICENSE ADDED
@@ -0,0 +1,13 @@
1
+ Copyright 2023 Vercel, Inc.
2
+
3
+ Licensed under the Apache License, Version 2.0 (the "License");
4
+ you may not use this file except in compliance with the License.
5
+ You may obtain a copy of the License at
6
+
7
+ http://www.apache.org/licenses/LICENSE-2.0
8
+
9
+ Unless required by applicable law or agreed to in writing, software
10
+ distributed under the License is distributed on an "AS IS" BASIS,
11
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ See the License for the specific language governing permissions and
13
+ limitations under the License.
package/README.md CHANGED
@@ -1,5 +1,43 @@
1
- # @ai-sdk/harness-grok-build
1
+ # AI SDK - Grok Build Harness
2
2
 
3
- AI SDK harness adapter for Grok Build.
3
+ The **[@ai-sdk/harness-grok-build](https://www.npmjs.com/package/@ai-sdk/harness-grok-build)** package adapts [Grok Build](https://x.ai/cli) to the AI SDK harness abstraction through the Agent Client Protocol (ACP).
4
4
 
5
- The implementation is maintained in the `vercel/ai` repository.
5
+ ## Setup
6
+
7
+ ```bash
8
+ npm install @ai-sdk/harness @ai-sdk/harness-grok-build @ai-sdk/sandbox-vercel
9
+ ```
10
+
11
+ ## Usage
12
+
13
+ ```ts
14
+ import { HarnessAgent } from '@ai-sdk/harness/agent';
15
+ import { grokBuild } from '@ai-sdk/harness-grok-build';
16
+ import { createVercelSandbox } from '@ai-sdk/sandbox-vercel';
17
+
18
+ const agent = new HarnessAgent({
19
+ harness: grokBuild,
20
+ sandbox: createVercelSandbox({
21
+ runtime: 'node24',
22
+ ports: [4000],
23
+ }),
24
+ });
25
+
26
+ const session = await agent.createSession();
27
+
28
+ try {
29
+ const result = await agent.generate({
30
+ session,
31
+ prompt: 'Inspect this project and summarize its purpose.',
32
+ });
33
+ console.log(result.text);
34
+ } finally {
35
+ await session.destroy();
36
+ }
37
+ ```
38
+
39
+ The adapter uses `@ai-sdk/harness-acp`, which installs the pinned Grok Build CLI inside the sandbox. The sandbox must provide network access and at least one exposed TCP port.
40
+
41
+ Set `XAI_API_KEY` for direct authentication. Set `AI_GATEWAY_API_KEY` or `VERCEL_OIDC_TOKEN` to use AI Gateway instead.
42
+
43
+ See the [Grok Build harness documentation](https://ai-sdk.dev/providers/ai-sdk-harnesses/grok-build) for settings, tools, and limitations.
@@ -0,0 +1,13 @@
1
+ {
2
+ "name": "harness-grok-build-bridge",
3
+ "version": "0.0.0",
4
+ "private": true,
5
+ "type": "module",
6
+ "dependencies": {
7
+ "@agentclientprotocol/sdk": "1.2.1",
8
+ "@modelcontextprotocol/sdk": "1.29.0",
9
+ "@xai-official/grok": "0.2.111",
10
+ "ws": "8.21.0",
11
+ "zod": "4.4.3"
12
+ }
13
+ }