Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/current-opencode-dev.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"opencode-drive": patch
---

Restore `--dev` compatibility with current OpenCode checkouts by generating the current provider shape and supplying Drive's UI and simulated-model bridges through the TUI plugin host.
2 changes: 1 addition & 1 deletion apps/catalog/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"@types/bun": "^1.3.14",
"@types/react": "^19.2.17",
"@types/react-dom": "^19.2.3",
"effect": "4.0.0-beta.98",
"effect": "4.0.0-beta.101",
"opencode-drive": "workspace:*",
"oxlint": "1.60.0",
"typescript": "^7.0.2"
Expand Down
71 changes: 55 additions & 16 deletions bun.lock

Large diffs are not rendered by default.

11 changes: 6 additions & 5 deletions packages/drive/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,16 +58,17 @@
"release:validate": "bun run check && bun run test && bun pm pack --dry-run"
},
"dependencies": {
"@effect/platform-node": "4.0.0-beta.98",
"@effect/platform-node-shared": "4.0.0-beta.98",
"@effect/platform-node": "4.0.0-beta.101",
"@effect/platform-node-shared": "4.0.0-beta.101",
"@napi-rs/canvas": "1.0.2",
"@opencode-ai/client": "0.0.0-next-15747",
"@opencode-ai/client": "0.0.0-next-16486",
"@opentui/core": "0.4.5",
"@wterm/core": "0.3.0",
"@wterm/ghostty": "0.3.0",
"effect": "4.0.0-beta.98"
"effect": "4.0.0-beta.101"
},
"devDependencies": {
"@effect/vitest": "4.0.0-beta.98",
"@effect/vitest": "4.0.0-beta.101",
"@tsconfig/bun": "1.0.9",
"@types/bun": "1.3.13",
"@typescript/native-preview": "7.0.0-dev.20251207.1",
Expand Down
16 changes: 9 additions & 7 deletions packages/drive/src/cli/run.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,17 @@ export const runProgram = Effect.fn("Cli.runProgram")((file: string) =>
}),
({ file }) =>
Effect.gen(function* () {
const module = yield* Effect.tryPromise({
try: () => import(pathToFileURL(file).href),
const program = yield* Effect.tryPromise({
// prepareProgram type-checks this boundary as a fully provided Effect.
try: async (): Promise<Effect.Effect<unknown, unknown>> => {
const module = await import(pathToFileURL(file).href)
if (!Effect.isEffect(module.default))
throw new Error("program must default-export a fully provided Effect")
return module.default
},
catch: (cause) => cause,
})
if (!Effect.isEffect(module.default))
return yield* Effect.fail(
new Error("program must default-export a fully provided Effect"),
)
return yield* module.default
return yield* program
}),
({ remove }) => Effect.promise(remove),
),
Expand Down
8 changes: 5 additions & 3 deletions packages/drive/src/instance/default-config.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,11 @@
"providers": {
"simulation": {
"name": "Simulation",
"package": "aisdk:@ai-sdk/openai-compatible",
"settings": {
"baseURL": "https://api.openai.com/v1"
"api": {
"type": "aisdk",
"package": "@ai-sdk/openai-compatible",
"url": "https://api.openai.com/v1",
"settings": {}
},
"request": {
"body": {
Expand Down
Loading