mini v2 v2 (#46410)

This commit is contained in:
Simon Klee 2026-08-31 22:03:27 +02:00 committed by GitHub
parent 566ca864a0
commit fac875dba0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
58 changed files with 6979 additions and 1916 deletions

View file

@ -4,6 +4,7 @@ import fs from "node:fs"
import { readFile } from "node:fs/promises"
import path from "node:path"
import { ReadStream } from "node:tty"
import { OPENCODE_VERSION } from "./version"
export const INTERACTIVE_INPUT_ERROR = "opencode mini requires a controlling terminal for input"
@ -137,6 +138,7 @@ export function createMiniHost(input: {
argv: process.argv.slice(2),
}
return {
version: OPENCODE_VERSION,
terminal: { stdin: input.terminal.stdin },
platform: process.platform,
stdout: {