cli: add --mini (#33353)
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import fs from "fs"
|
||||
import * as tty from "node:tty"
|
||||
|
||||
export const INTERACTIVE_INPUT_ERROR = "--interactive requires a controlling terminal for input"
|
||||
export const INTERACTIVE_INPUT_ERROR = "--mini requires a controlling terminal for input"
|
||||
|
||||
type InteractiveStdin = {
|
||||
stdin: NodeJS.ReadStream
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Top-level orchestrator for `run --interactive`.
|
||||
// Top-level orchestrator for `opencode --mini`.
|
||||
//
|
||||
// Wires the boot sequence, lifecycle (renderer + footer), stream transport,
|
||||
// and prompt queue together into a single session loop. Two entry points:
|
||||
|
||||
@@ -234,7 +234,7 @@ function build(input: SplashWriterInput, kind: "entry" | "exit", ctx: Scrollback
|
||||
lines,
|
||||
body_left + label.length,
|
||||
top + 1,
|
||||
`opencode run -i -s ${meta.session_id}`,
|
||||
`opencode --mini -s ${meta.session_id}`,
|
||||
right,
|
||||
undefined,
|
||||
TextAttributes.BOLD,
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Shared type vocabulary for the direct interactive mode (`run --interactive`).
|
||||
// Shared type vocabulary for the direct interactive mode (`opencode --mini`).
|
||||
//
|
||||
// Direct mode uses a split-footer terminal layout: immutable scrollback for the
|
||||
// session transcript, and a mutable footer for prompt input, status, and
|
||||
|
||||
Reference in New Issue
Block a user