mirror of
https://github.com/anomalyco/opencode.git
synced 2026-09-10 11:34:42 +00:00
mini v2 v2 (#46410)
This commit is contained in:
parent
566ca864a0
commit
fac875dba0
58 changed files with 6979 additions and 1916 deletions
|
|
@ -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: {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue