|
|
@@ -6,7 +6,6 @@ import { cmd } from "./cmd"
|
|
|
import { Flag } from "../../flag/flag"
|
|
|
import { bootstrap } from "../bootstrap"
|
|
|
import { EOL } from "os"
|
|
|
-import { text as streamText } from "node:stream/consumers"
|
|
|
import { Filesystem } from "../../util/filesystem"
|
|
|
import { createOpencodeClient, type Message, type OpencodeClient, type ToolPart } from "@opencode-ai/sdk/v2"
|
|
|
import { Server } from "../../server/server"
|
|
|
@@ -338,7 +337,7 @@ export const RunCommand = cmd({
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- if (!process.stdin.isTTY) message += "\n" + (await streamText(process.stdin))
|
|
|
+ if (!process.stdin.isTTY) message += "\n" + (await Bun.stdin.text())
|
|
|
|
|
|
if (message.trim().length === 0 && !args.command) {
|
|
|
UI.error("You must provide a message or a command")
|