@ai-sdk/harness-claude-code 1.0.202 → 1.0.204

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-sdk/harness-claude-code",
3
- "version": "1.0.202",
3
+ "version": "1.0.204",
4
4
  "type": "module",
5
5
  "license": "Apache-2.0",
6
6
  "sideEffects": false,
@@ -26,9 +26,9 @@
26
26
  }
27
27
  },
28
28
  "dependencies": {
29
- "@ai-sdk/harness": "1.0.198",
30
- "@ai-sdk/provider": "4.0.39",
31
- "@ai-sdk/provider-utils": "5.0.86",
29
+ "@ai-sdk/harness": "1.0.200",
30
+ "@ai-sdk/provider": "4.0.40",
31
+ "@ai-sdk/provider-utils": "5.0.87",
32
32
  "ws": "^8.21.0"
33
33
  },
34
34
  "peerDependencies": {
@@ -39,10 +39,11 @@
39
39
  "@modelcontextprotocol/sdk": "1.32.2",
40
40
  "@types/node": "22.19.19",
41
41
  "@types/ws": "^8.5.13",
42
+ "@typescript/native": "npm:typescript@7.0.2",
42
43
  "@vercel/ai-tsconfig": "0.0.0",
43
44
  "@vercel/ai-tsdown-config": "0.0.0",
44
45
  "tsdown": "^0.23.0",
45
- "typescript": "6.0.3",
46
+ "typescript": "npm:@typescript/typescript6@6.0.2",
46
47
  "zod": "4.6.7"
47
48
  },
48
49
  "engines": {
@@ -72,6 +73,9 @@
72
73
  "copy-bridge-assets": "node -e \"import('node:fs/promises').then(async fs => { await fs.copyFile('src/bridge/package.json', 'dist/bridge/package.json'); await fs.copyFile('src/bridge/pnpm-lock.yaml', 'dist/bridge/pnpm-lockfile.yaml'); await fs.copyFile('src/bridge/pnpm-workspace.yaml', 'dist/bridge/pnpm-workspace.yaml'); })\"",
73
74
  "type-check": "tsc --noEmit",
74
75
  "test": "pnpm test:node",
76
+ "test:node22": "node ../../tools/with-node.mjs 22 pnpm test",
77
+ "test:node24": "node ../../tools/with-node.mjs 24 pnpm test",
78
+ "test:node26": "node ../../tools/with-node.mjs 26 pnpm test",
75
79
  "test:watch": "vitest --config vitest.node.config.js",
76
80
  "test:node": "vitest --config vitest.node.config.js --run"
77
81
  }
@@ -1453,7 +1453,7 @@ function createQueryInput({
1453
1453
  let pulling: Promise<void> | undefined;
1454
1454
  const takeMessage = async (inputId: number) => {
1455
1455
  for (;;) {
1456
- if (inputId !== liveInputId) return undefined;
1456
+ if (inputId !== liveInputId) return;
1457
1457
  if (bufferedMessage != null) {
1458
1458
  const message = bufferedMessage;
1459
1459
  bufferedMessage = undefined;
@@ -19,8 +19,6 @@ import {
19
19
  type HarnessV1Session,
20
20
  type HarnessV1Skill,
21
21
  type HarnessV1StreamPart,
22
- harnessStateDirectoryPath,
23
- harnessSessionDataDirectoryPath,
24
22
  } from '@ai-sdk/harness';
25
23
  import {
26
24
  applyCredentialForwarding,
@@ -36,6 +34,8 @@ import {
36
34
  extractHarnessPromptContent,
37
35
  forwardBridgeProcessStream,
38
36
  getRestrictedSandboxSession,
37
+ harnessSessionDataDirectoryPath,
38
+ harnessStateDirectoryPath,
39
39
  markBridgeStarting,
40
40
  resolveBridgeEndpoint,
41
41
  resolveBridgePort,