From dcbac16663ed56001eca19e8c0be93983a6b282c Mon Sep 17 00:00:00 2001 From: Colin McDonnell Date: Wed, 10 Dec 2025 15:02:15 -0800 Subject: [PATCH] Tweak --- agents/opencode.ts | 9 +++++++++ entry | 1 + fixtures/basic.txt | 2 +- package.json | 1 + pnpm-lock.yaml | 8 ++++++++ 5 files changed, 20 insertions(+), 1 deletion(-) diff --git a/agents/opencode.ts b/agents/opencode.ts index bcf75c9..4358f18 100644 --- a/agents/opencode.ts +++ b/agents/opencode.ts @@ -1,4 +1,5 @@ import { existsSync, mkdirSync, readFileSync, writeFileSync } from "node:fs"; + import { join } from "node:path"; import { log } from "../utils/cli.ts"; import { spawn } from "../utils/subprocess.ts"; @@ -10,6 +11,14 @@ import { setupProcessAgentEnv, } from "./shared.ts"; +// import { createOpencode } from "@opencode-ai/sdk" + +// const { client } = await createOpencode({ +// config: { +// '' +// } +// }) + // opencode cli event types inferred from json output format interface OpenCodeInitEvent { type: "init"; diff --git a/entry b/entry index 8ae77df..ecbb7b8 100755 --- a/entry +++ b/entry @@ -83358,6 +83358,7 @@ var package_default = { "@octokit/rest": "^22.0.0", "@octokit/webhooks-types": "^7.6.1", "@openai/codex-sdk": "0.58.0", + "@opencode-ai/sdk": "^1.0.143", "@standard-schema/spec": "1.0.0", arktype: "2.1.28", dotenv: "^17.2.3", diff --git a/fixtures/basic.txt b/fixtures/basic.txt index 4e5df9b..874c2a1 100644 --- a/fixtures/basic.txt +++ b/fixtures/basic.txt @@ -1 +1 @@ -Use the debug_shell_command MCP tool to run `git status` and tell me what agent is running \ No newline at end of file +Tell me a joke \ No newline at end of file diff --git a/package.json b/package.json index 7d09b5c..c4250e0 100644 --- a/package.json +++ b/package.json @@ -31,6 +31,7 @@ "@octokit/rest": "^22.0.0", "@octokit/webhooks-types": "^7.6.1", "@openai/codex-sdk": "0.58.0", + "@opencode-ai/sdk": "^1.0.143", "@standard-schema/spec": "1.0.0", "arktype": "2.1.28", "dotenv": "^17.2.3", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index d127941..57f1c2d 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -32,6 +32,9 @@ importers: '@openai/codex-sdk': specifier: 0.58.0 version: 0.58.0 + '@opencode-ai/sdk': + specifier: ^1.0.143 + version: 1.0.143 '@standard-schema/spec': specifier: 1.0.0 version: 1.0.0 @@ -440,6 +443,9 @@ packages: resolution: {integrity: sha512-Z5vK294gUS9cn7bpU/lJtgzqJy1UqIGee7WMP+1Z4a6AxDcTxFCLZI4YkH9praJfrgoj5bFeu+3V9HIoBBTzcw==} engines: {node: '>=18'} + '@opencode-ai/sdk@1.0.143': + resolution: {integrity: sha512-dtmkBfJ7IIAHzL6KCzAlwc9GybfJONVeCsF6ePYySpkuhslDbRkZBJYb5vqGd1H5zdsgjc6JjuvmOf0rPWUL6A==} + '@sec-ant/readable-stream@0.4.1': resolution: {integrity: sha512-831qok9r2t8AlxLko40y2ebgSDhenenCatLVeW/uBtnHPyhHOvG0C7TvfgecV+wHzIm5KUICgzmVpWS+IMEAeg==} @@ -1410,6 +1416,8 @@ snapshots: '@openai/codex-sdk@0.58.0': {} + '@opencode-ai/sdk@1.0.143': {} + '@sec-ant/readable-stream@0.4.1': {} '@sindresorhus/merge-streams@4.0.0': {}