mirror of
https://github.com/sst/opencode.git
synced 2025-08-04 13:30:52 +00:00
ignore: revert
This commit is contained in:
parent
6ed661c140
commit
9cfb6ff964
2 changed files with 5 additions and 5 deletions
|
@ -3,7 +3,7 @@ import { lazy } from "../util/lazy"
|
|||
import path from "path"
|
||||
|
||||
export const AuthCopilot = lazy(async () => {
|
||||
const file = Bun.file(path.join(Global.Path.cache, "copilot.ts"))
|
||||
const file = Bun.file(path.join(Global.Path.state, "plugin", "copilot.ts"))
|
||||
const response = fetch(
|
||||
"https://raw.githubusercontent.com/sst/opencode-github-copilot/refs/heads/main/auth.ts",
|
||||
)
|
||||
|
|
|
@ -15,7 +15,7 @@ export namespace BunProc {
|
|||
cmd: [which(), ...cmd],
|
||||
...options,
|
||||
})
|
||||
const result = Bun.spawnSync([which(), ...cmd], {
|
||||
const result = Bun.spawn([which(), ...cmd], {
|
||||
...options,
|
||||
stdout: "pipe",
|
||||
stderr: "pipe",
|
||||
|
@ -25,9 +25,9 @@ export namespace BunProc {
|
|||
BUN_BE_BUN: "1",
|
||||
},
|
||||
})
|
||||
const stdout = result.stdout!.toString()
|
||||
const stderr = result.stderr!.toString()
|
||||
const code = result.exitCode
|
||||
const code = await result.exited
|
||||
const stdout = await result.stdout.text()
|
||||
const stderr = await result.stderr.text()
|
||||
log.info("done", {
|
||||
code,
|
||||
stdout,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue