@ai-sdk/harness-opencode 1.0.150 → 1.0.152
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 +24 -0
- package/dist/bridge/host-tool-mcp.mjs +9 -2
- package/dist/bridge/host-tool-mcp.mjs.map +1 -1
- package/dist/bridge/index.mjs +18 -14
- package/dist/bridge/index.mjs.map +1 -1
- package/dist/index.js +1 -1
- package/package.json +4 -4
- package/src/bridge/create-emit-stream-event.ts +0 -2
- package/src/bridge/host-tool-mcp.ts +3 -8
- package/src/bridge/host-tool-schemas.ts +17 -0
- package/src/bridge/index.ts +31 -9
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,29 @@
|
|
|
1
1
|
# @ai-sdk/harness-opencode
|
|
2
2
|
|
|
3
|
+
## 1.0.152
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [6617f11]
|
|
8
|
+
- Updated dependencies [aae69cb]
|
|
9
|
+
- Updated dependencies [a7a66f5]
|
|
10
|
+
- Updated dependencies [52e3f53]
|
|
11
|
+
- Updated dependencies [6c0295c]
|
|
12
|
+
- @ai-sdk/harness@1.0.150
|
|
13
|
+
|
|
14
|
+
## 1.0.151
|
|
15
|
+
|
|
16
|
+
### Patch Changes
|
|
17
|
+
|
|
18
|
+
- 4affc19: fix(harness-opencode): pass host tool schemas by file to avoid OpenCode spawn failures
|
|
19
|
+
- 409da36: fix(harness-opencode): keep observation metadata out of native tool arguments
|
|
20
|
+
- Updated dependencies [9667bf2]
|
|
21
|
+
- Updated dependencies [e57803c]
|
|
22
|
+
- Updated dependencies [81663cc]
|
|
23
|
+
- @ai-sdk/provider-utils@5.0.59
|
|
24
|
+
- @ai-sdk/provider@4.0.27
|
|
25
|
+
- @ai-sdk/harness@1.0.149
|
|
26
|
+
|
|
3
27
|
## 1.0.150
|
|
4
28
|
|
|
5
29
|
### Patch Changes
|
|
@@ -1,7 +1,14 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
+
import { readFileSync } from "node:fs";
|
|
2
3
|
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
3
4
|
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
|
|
4
5
|
import { z } from "zod/v4";
|
|
6
|
+
//#region src/bridge/host-tool-schemas.ts
|
|
7
|
+
function readHostToolSchemasFromEnvironment(environment) {
|
|
8
|
+
const serializedSchemas = environment.TOOL_SCHEMAS_PATH ? readFileSync(environment.TOOL_SCHEMAS_PATH, "utf8") : environment.TOOL_SCHEMAS ?? "[]";
|
|
9
|
+
return JSON.parse(serializedSchemas);
|
|
10
|
+
}
|
|
11
|
+
//#endregion
|
|
5
12
|
//#region src/bridge/json-schema-to-zod.ts
|
|
6
13
|
function jsonSchemaToZodShape(input) {
|
|
7
14
|
return toZodShape(isJsonSchemaObject(input) ? input : {});
|
|
@@ -48,10 +55,10 @@ function isJsonLiteral(value) {
|
|
|
48
55
|
}
|
|
49
56
|
//#endregion
|
|
50
57
|
//#region src/bridge/host-tool-mcp.ts
|
|
51
|
-
const schemas =
|
|
58
|
+
const schemas = readHostToolSchemasFromEnvironment(process.env);
|
|
52
59
|
const relayUrl = process.env.TOOL_RELAY_URL || "";
|
|
53
60
|
if (!schemas.length || !relayUrl) {
|
|
54
|
-
process.stderr.write("[host-tool-mcp] Missing TOOL_SCHEMAS or TOOL_RELAY_URL; exiting\n");
|
|
61
|
+
process.stderr.write("[host-tool-mcp] Missing TOOL_SCHEMAS_PATH/TOOL_SCHEMAS or TOOL_RELAY_URL; exiting\n");
|
|
55
62
|
process.exit(0);
|
|
56
63
|
}
|
|
57
64
|
const server = new McpServer({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"host-tool-mcp.mjs","names":[],"sources":["../../src/bridge/json-schema-to-zod.ts","../../src/bridge/host-tool-mcp.ts"],"sourcesContent":["import { z } from 'zod/v4';\n\ntype JsonLiteral = string | number | boolean | null;\n\ntype JsonSchemaObject = {\n type?: string | string[];\n description?: string;\n properties?: Record<string, JsonSchemaObject>;\n required?: string[];\n items?: JsonSchemaObject;\n enum?: unknown[];\n default?: unknown;\n nullable?: boolean;\n};\n\ntype ZodShape = Record<string, z.ZodTypeAny>;\n\nexport function jsonSchemaToZodShape(input: unknown): ZodShape {\n const schema = isJsonSchemaObject(input) ? input : {};\n return toZodShape(schema);\n}\n\nfunction toZodShape(schema: JsonSchemaObject | undefined): ZodShape {\n if (!schema?.properties) return {};\n const required = new Set(schema.required);\n const shape: ZodShape = {};\n for (const [key, propSchema] of Object.entries(schema.properties)) {\n const propType = toZodType(propSchema);\n shape[key] = required.has(key) ? propType : propType.optional();\n }\n return shape;\n}\n\nfunction toZodType(schema: JsonSchemaObject | undefined): z.ZodTypeAny {\n if (!schema) return z.any();\n\n let zType = zodForEnum(schema) ?? zodForType(schema);\n if (schema.description) zType = zType.describe(schema.description);\n if (schema.nullable) zType = zType.nullable();\n if ('default' in schema) zType = zType.meta({ default: schema.default });\n return zType;\n}\n\nfunction zodForEnum(schema: JsonSchemaObject): z.ZodTypeAny | undefined {\n if (\n !Array.isArray(schema.enum) ||\n schema.enum.length === 0 ||\n !schema.enum.every(isJsonLiteral)\n ) {\n return undefined;\n }\n return z.literal(schema.enum);\n}\n\nfunction zodForType(schema: JsonSchemaObject): z.ZodTypeAny {\n const types = Array.isArray(schema.type)\n ? schema.type.filter((t): t is string => t !== 'null')\n : ([schema.type].filter(Boolean) as string[]);\n\n switch (types[0]) {\n case 'string':\n return z.string();\n case 'number':\n return z.number();\n case 'integer':\n return z.number().int();\n case 'boolean':\n return z.boolean();\n case 'array':\n return z.array(toZodType(schema.items));\n case 'object':\n return z.object(toZodShape(schema));\n case 'null':\n return z.null();\n default:\n return z.any();\n }\n}\n\nfunction isJsonSchemaObject(input: unknown): input is JsonSchemaObject {\n return input != null && typeof input === 'object' && !Array.isArray(input);\n}\n\nfunction isJsonLiteral(value: unknown): value is JsonLiteral {\n return (\n value === null ||\n typeof value === 'string' ||\n typeof value === 'boolean' ||\n (typeof value === 'number' && Number.isFinite(value))\n );\n}\n","#!/usr/bin/env node\n/*\n * These bridge imports are externalized by tsdown and resolved inside the\n * sandbox from src/bridge/package.json and its lockfile. Keep this file,\n * tsdown.config.ts, and the bridge package dependency list in sync.\n */\nimport { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';\nimport { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js';\nimport { jsonSchemaToZodShape } from './json-schema-to-zod';\n\
|
|
1
|
+
{"version":3,"file":"host-tool-mcp.mjs","names":[],"sources":["../../src/bridge/host-tool-schemas.ts","../../src/bridge/json-schema-to-zod.ts","../../src/bridge/host-tool-mcp.ts"],"sourcesContent":["import { readFileSync } from 'node:fs';\n\nexport type HostToolSchema = {\n name: string;\n description?: string;\n inputSchema?: unknown;\n};\n\nexport function readHostToolSchemasFromEnvironment(\n environment: NodeJS.ProcessEnv,\n): HostToolSchema[] {\n const serializedSchemas = environment.TOOL_SCHEMAS_PATH\n ? readFileSync(environment.TOOL_SCHEMAS_PATH, 'utf8')\n : (environment.TOOL_SCHEMAS ?? '[]');\n\n return JSON.parse(serializedSchemas) as HostToolSchema[];\n}\n","import { z } from 'zod/v4';\n\ntype JsonLiteral = string | number | boolean | null;\n\ntype JsonSchemaObject = {\n type?: string | string[];\n description?: string;\n properties?: Record<string, JsonSchemaObject>;\n required?: string[];\n items?: JsonSchemaObject;\n enum?: unknown[];\n default?: unknown;\n nullable?: boolean;\n};\n\ntype ZodShape = Record<string, z.ZodTypeAny>;\n\nexport function jsonSchemaToZodShape(input: unknown): ZodShape {\n const schema = isJsonSchemaObject(input) ? input : {};\n return toZodShape(schema);\n}\n\nfunction toZodShape(schema: JsonSchemaObject | undefined): ZodShape {\n if (!schema?.properties) return {};\n const required = new Set(schema.required);\n const shape: ZodShape = {};\n for (const [key, propSchema] of Object.entries(schema.properties)) {\n const propType = toZodType(propSchema);\n shape[key] = required.has(key) ? propType : propType.optional();\n }\n return shape;\n}\n\nfunction toZodType(schema: JsonSchemaObject | undefined): z.ZodTypeAny {\n if (!schema) return z.any();\n\n let zType = zodForEnum(schema) ?? zodForType(schema);\n if (schema.description) zType = zType.describe(schema.description);\n if (schema.nullable) zType = zType.nullable();\n if ('default' in schema) zType = zType.meta({ default: schema.default });\n return zType;\n}\n\nfunction zodForEnum(schema: JsonSchemaObject): z.ZodTypeAny | undefined {\n if (\n !Array.isArray(schema.enum) ||\n schema.enum.length === 0 ||\n !schema.enum.every(isJsonLiteral)\n ) {\n return undefined;\n }\n return z.literal(schema.enum);\n}\n\nfunction zodForType(schema: JsonSchemaObject): z.ZodTypeAny {\n const types = Array.isArray(schema.type)\n ? schema.type.filter((t): t is string => t !== 'null')\n : ([schema.type].filter(Boolean) as string[]);\n\n switch (types[0]) {\n case 'string':\n return z.string();\n case 'number':\n return z.number();\n case 'integer':\n return z.number().int();\n case 'boolean':\n return z.boolean();\n case 'array':\n return z.array(toZodType(schema.items));\n case 'object':\n return z.object(toZodShape(schema));\n case 'null':\n return z.null();\n default:\n return z.any();\n }\n}\n\nfunction isJsonSchemaObject(input: unknown): input is JsonSchemaObject {\n return input != null && typeof input === 'object' && !Array.isArray(input);\n}\n\nfunction isJsonLiteral(value: unknown): value is JsonLiteral {\n return (\n value === null ||\n typeof value === 'string' ||\n typeof value === 'boolean' ||\n (typeof value === 'number' && Number.isFinite(value))\n );\n}\n","#!/usr/bin/env node\n/*\n * These bridge imports are externalized by tsdown and resolved inside the\n * sandbox from src/bridge/package.json and its lockfile. Keep this file,\n * tsdown.config.ts, and the bridge package dependency list in sync.\n */\nimport { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';\nimport { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js';\nimport { readHostToolSchemasFromEnvironment } from './host-tool-schemas';\nimport { jsonSchemaToZodShape } from './json-schema-to-zod';\n\nconst schemas = readHostToolSchemasFromEnvironment(process.env);\nconst relayUrl = process.env.TOOL_RELAY_URL || '';\n\nif (!schemas.length || !relayUrl) {\n process.stderr.write(\n '[host-tool-mcp] Missing TOOL_SCHEMAS_PATH/TOOL_SCHEMAS or TOOL_RELAY_URL; exiting\\n',\n );\n process.exit(0);\n}\n\nconst server = new McpServer({ name: 'harness-tools', version: '1.0.0' });\n\nfor (const schema of schemas) {\n const shape = jsonSchemaToZodShape(schema.inputSchema);\n server.tool(\n schema.name,\n schema.description ?? '',\n shape,\n async (input: Record<string, unknown>) => {\n const requestId = crypto.randomUUID();\n try {\n const res = await fetch(relayUrl, {\n method: 'POST',\n headers: {\n 'Content-Type': 'application/json',\n },\n body: JSON.stringify({ requestId, toolName: schema.name, input }),\n });\n if (!res.ok) {\n const body = await res.text();\n throw new Error(\n `Tool relay ${schema.name} failed with ${res.status}: ${body.slice(0, 500)}`,\n );\n }\n const data = (await res.json()) as { result?: unknown };\n return {\n content: [\n {\n type: 'text' as const,\n text: JSON.stringify(data.result ?? null),\n },\n ],\n };\n } catch (err) {\n return {\n content: [{ type: 'text' as const, text: `Error: ${String(err)}` }],\n isError: true,\n };\n }\n },\n );\n}\n\nconst transport = new StdioServerTransport();\nawait server.connect(transport);\n"],"mappings":";;;;;;AAQA,SAAgB,mCACd,aACkB;CAClB,MAAM,oBAAoB,YAAY,oBAClC,aAAa,YAAY,mBAAmB,MAAM,IACjD,YAAY,gBAAgB;CAEjC,OAAO,KAAK,MAAM,iBAAiB;AACrC;;;ACCA,SAAgB,qBAAqB,OAA0B;CAE7D,OAAO,WADQ,mBAAmB,KAAK,IAAI,QAAQ,CAAC,CAC5B;AAC1B;AAEA,SAAS,WAAW,QAAgD;CAClE,IAAI,CAAC,QAAQ,YAAY,OAAO,CAAC;CACjC,MAAM,WAAW,IAAI,IAAI,OAAO,QAAQ;CACxC,MAAM,QAAkB,CAAC;CACzB,KAAK,MAAM,CAAC,KAAK,eAAe,OAAO,QAAQ,OAAO,UAAU,GAAG;EACjE,MAAM,WAAW,UAAU,UA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1,5 @@
|
|
|
1
1
|
import { appendFile, mkdir, writeFile } from "node:fs/promises";
|
|
2
|
-
import { existsSync, readFileSync, realpathSync } from "node:fs";
|
|
2
|
+
import { existsSync, mkdirSync, readFileSync, realpathSync, writeFileSync } from "node:fs";
|
|
3
3
|
import { randomBytes, randomUUID } from "node:crypto";
|
|
4
4
|
import { argv, env, pid, stdout } from "node:process";
|
|
5
5
|
import { WebSocketServer } from "ws";
|
|
@@ -1388,11 +1388,7 @@ function emitLegacyToolPart({ part, state, emit, toWireToolName, nativeNameField
|
|
|
1388
1388
|
}
|
|
1389
1389
|
}
|
|
1390
1390
|
function legacyToolPartInput(part) {
|
|
1391
|
-
return {
|
|
1392
|
-
...part.metadata,
|
|
1393
|
-
...part.state?.metadata,
|
|
1394
|
-
...part.state?.input
|
|
1395
|
-
};
|
|
1391
|
+
return { ...part.state?.input };
|
|
1396
1392
|
}
|
|
1397
1393
|
function legacyToolPartOutput(part) {
|
|
1398
1394
|
const state = part.state;
|
|
@@ -1810,6 +1806,7 @@ async function ensureRuntime({ start, turn, emit }) {
|
|
|
1810
1806
|
requestToolResult: turn.requestToolResult
|
|
1811
1807
|
});
|
|
1812
1808
|
}
|
|
1809
|
+
const toolSchemasPath = runtime.relay && start.tools ? writeHostToolSchemas(start.tools) : void 0;
|
|
1813
1810
|
const serverAuthHeaders = configureOpenCodeServerAuth({ env });
|
|
1814
1811
|
const server = await createOpencodeServer({
|
|
1815
1812
|
hostname: "127.0.0.1",
|
|
@@ -1817,7 +1814,8 @@ async function ensureRuntime({ start, turn, emit }) {
|
|
|
1817
1814
|
timeout: 3e4,
|
|
1818
1815
|
config: buildOpenCodeConfig({
|
|
1819
1816
|
start,
|
|
1820
|
-
relayPort: runtime.relay?.port
|
|
1817
|
+
relayPort: runtime.relay?.port,
|
|
1818
|
+
toolSchemasPath
|
|
1821
1819
|
})
|
|
1822
1820
|
});
|
|
1823
1821
|
runtime.server = server;
|
|
@@ -1844,7 +1842,7 @@ function closeRuntime() {
|
|
|
1844
1842
|
runtime.toolNames = /* @__PURE__ */ new Set();
|
|
1845
1843
|
runtime.mcpToolPrefixes = /* @__PURE__ */ new Set();
|
|
1846
1844
|
}
|
|
1847
|
-
function buildOpenCodeConfig({ start, relayPort }) {
|
|
1845
|
+
function buildOpenCodeConfig({ start, relayPort, toolSchemasPath }) {
|
|
1848
1846
|
const config = {
|
|
1849
1847
|
...withoutAgentPolicyOverrides(start.openCodeConfig),
|
|
1850
1848
|
share: "disabled",
|
|
@@ -1875,22 +1873,28 @@ function buildOpenCodeConfig({ start, relayPort }) {
|
|
|
1875
1873
|
const provider = buildProviderConfig(start);
|
|
1876
1874
|
if (provider) config.provider = provider;
|
|
1877
1875
|
const mcp = { ...start.mcpServers };
|
|
1878
|
-
if (relayPort &&
|
|
1876
|
+
if (relayPort && toolSchemasPath) mcp["harness-tools"] = {
|
|
1879
1877
|
type: "local",
|
|
1880
1878
|
enabled: true,
|
|
1881
1879
|
command: ["node", `${bootstrapDir}/host-tool-mcp.mjs`],
|
|
1882
1880
|
environment: {
|
|
1883
|
-
|
|
1884
|
-
name: t.name,
|
|
1885
|
-
description: t.description,
|
|
1886
|
-
inputSchema: t.inputSchema
|
|
1887
|
-
}))),
|
|
1881
|
+
TOOL_SCHEMAS_PATH: toolSchemasPath,
|
|
1888
1882
|
TOOL_RELAY_URL: `http://127.0.0.1:${relayPort}`
|
|
1889
1883
|
}
|
|
1890
1884
|
};
|
|
1891
1885
|
if (Object.keys(mcp).length > 0) config.mcp = mcp;
|
|
1892
1886
|
return config;
|
|
1893
1887
|
}
|
|
1888
|
+
function writeHostToolSchemas(tools) {
|
|
1889
|
+
mkdirSync(bridgeStateDir, { recursive: true });
|
|
1890
|
+
const toolSchemasPath = path.resolve(bridgeStateDir, "host-tool-schemas.json");
|
|
1891
|
+
writeFileSync(toolSchemasPath, JSON.stringify(tools.map((tool) => ({
|
|
1892
|
+
name: tool.name,
|
|
1893
|
+
description: tool.description,
|
|
1894
|
+
inputSchema: tool.inputSchema
|
|
1895
|
+
}))));
|
|
1896
|
+
return toolSchemasPath;
|
|
1897
|
+
}
|
|
1894
1898
|
function withoutAgentPolicyOverrides(input) {
|
|
1895
1899
|
const config = { ...input };
|
|
1896
1900
|
for (const key of ["agent", "mode"]) {
|