@ai-sdk/harness-claude-code 1.0.99 → 1.0.100

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/dist/index.js CHANGED
@@ -34,8 +34,10 @@ import { WebSocket } from "ws";
34
34
  import { z as z2 } from "zod/v4";
35
35
 
36
36
  // src/claude-code-bootstrap.ts
37
- import { readFile } from "fs/promises";
38
- import { fileURLToPath } from "url";
37
+ import { createReadBridgeAsset } from "@ai-sdk/harness/utils";
38
+ var readBridgeAsset = createReadBridgeAsset({
39
+ resolveAssetUrl: (name) => new URL(`./bridge/${name}`, import.meta.url)
40
+ });
39
41
  var CLAUDE_CODE_BOOTSTRAP_DIR = ".harness-bootstrap/claude-code";
40
42
  var cachedBootstrap;
41
43
  async function getClaudeCodeBootstrap() {
@@ -69,23 +71,6 @@ async function getClaudeCodeBootstrap() {
69
71
  };
70
72
  return cachedBootstrap;
71
73
  }
72
- async function readBridgeAsset(name) {
73
- return readFile(
74
- fileURLToPath(
75
- resolveBridgeAssetUrl({
76
- name,
77
- moduleUrl: import.meta.url
78
- })
79
- ),
80
- "utf8"
81
- );
82
- }
83
- function resolveBridgeAssetUrl({
84
- name,
85
- moduleUrl
86
- }) {
87
- return new URL(`./bridge/${name}`, moduleUrl);
88
- }
89
74
 
90
75
  // src/claude-code-auth.ts
91
76
  import { execFileSync } from "child_process";
@@ -275,7 +260,7 @@ var inboundMessageSchema = z.discriminatedUnion("type", [
275
260
  ]);
276
261
 
277
262
  // src/version.ts
278
- var VERSION = true ? "1.0.99" : "0.0.0-test";
263
+ var VERSION = true ? "1.0.100" : "0.0.0-test";
279
264
 
280
265
  // src/claude-code-harness.ts
281
266
  var CLAUDE_CODE_CLIENT_APP = `ai-sdk/harness-claude-code/${VERSION}`;