Skip to content

Commit 22f8c22

Browse files
committed
default to thread mode
1 parent abc4b21 commit 22f8c22

File tree

5 files changed

+25
-8
lines changed

5 files changed

+25
-8
lines changed

bun.lock

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,7 @@
187187
"jsonc-parser": "3.3.1",
188188
"minimatch": "10.0.3",
189189
"open": "10.1.2",
190+
"opencode-ai": "0.0.0-dev-202510110425",
190191
"partial-json": "0.1.7",
191192
"remeda": "catalog:",
192193
"solid-js": "catalog:",
@@ -2488,6 +2489,22 @@
24882489

24892490
"opencode": ["opencode@workspace:packages/opencode"],
24902491

2492+
"opencode-ai": ["[email protected]", "", { "optionalDependencies": { "opencode-darwin-arm64": "0.0.0-dev-202510110425", "opencode-darwin-x64": "0.0.0-dev-202510110425", "opencode-darwin-x64-baseline": "0.0.0-dev-202510110425", "opencode-linux-arm64": "0.0.0-dev-202510110425", "opencode-linux-x64": "0.0.0-dev-202510110425", "opencode-linux-x64-baseline": "0.0.0-dev-202510110425", "opencode-windows-x64": "0.0.0-dev-202510110425" }, "bin": { "opencode": "bin/opencode" } }, "sha512-ZNWg60s1gvDOFsOfweNP38HWytHDAzi/gI+sPohxsC8GJu7Uic5uF9JRAFb3NAIn+rhfg9ucbLGBMHMkPh+Vig=="],
2493+
2494+
"opencode-darwin-arm64": ["[email protected]", "", { "os": "darwin", "cpu": "arm64" }, "sha512-a8si7LIIlilm5GiGrmM6GlzAW/8XM1F1Ix3CcJ1IVtyXgng/NhuzEkQQ+q7HJcwekHWeOJKlTmfpUE7keOUMFw=="],
2495+
2496+
"opencode-darwin-x64": ["[email protected]", "", { "os": "darwin", "cpu": "x64" }, "sha512-MyQBg98naiOuY+VQBwrK2pjARP7v6P0BFXHui5U5tHmuJQrnz65THFwiQulbwSUnVFt2Wt0fyRR3niX0FvpO1w=="],
2497+
2498+
"opencode-darwin-x64-baseline": ["[email protected]", "", { "os": "darwin", "cpu": "none" }, "sha512-0gQ55dVM5c8nzvLlQEzpPPdoAvY4ejd+axb63V3PAyiQJgHGAAjAq1f+WKESL7TgJPsU8Dkw2UAvoaalxi2SFQ=="],
2499+
2500+
"opencode-linux-arm64": ["[email protected]", "", { "os": "linux", "cpu": "arm64" }, "sha512-5BRe/+qUeijrW/CWl0clsaobOIOI8N9S3/h3jLW3LZZqJ11DU65TuAa/rXy/xsROj6TnzHpdJqMFTHmoMljx/g=="],
2501+
2502+
"opencode-linux-x64": ["[email protected]", "", { "os": "linux", "cpu": "x64" }, "sha512-brpYeBj2dnRrBDX3v5ecgz9TTpKh4/7+DAkWgsyhWxJ6t0lvLklTW7WJS96gNbojB0YimLrTUL4ZJaDsDuegHA=="],
2503+
2504+
"opencode-linux-x64-baseline": ["[email protected]", "", { "os": "linux", "cpu": "none" }, "sha512-eU/YCAYyjbapi7RvnNOwzSpSqeWvnjWVf/7KzqnjepIR6KfTVWVu56+MNf2fT+O7Q5Yx5/JMk4Ilvj3T2Ukshw=="],
2505+
2506+
"opencode-windows-x64": ["[email protected]", "", { "os": "win32", "cpu": "x64" }, "sha512-bS0kDzwnjjuiNunlnKhDd2c9HvYKDnvm1pv4lv2SfwiZthVTG2ds7nCI9/D62CuNGXoKCBQCLFKHN1WBXLBRNg=="],
2507+
24912508
"opencontrol": ["[email protected]", "", { "dependencies": { "@modelcontextprotocol/sdk": "1.6.1", "@tsconfig/bun": "1.0.7", "hono": "4.7.4", "zod": "3.24.2", "zod-to-json-schema": "3.24.3" }, "bin": { "opencontrol": "bin/index.mjs" } }, "sha512-QeCrpOK5D15QV8kjnGVeD/BHFLwcVr+sn4T6KKmP0WAMs2pww56e4h+eOGHb5iPOufUQXbdbBKi6WV2kk7tefQ=="],
24922509

24932510
"openid-client": ["[email protected]", "", { "dependencies": { "jose": "^4.15.4", "lru-cache": "^6.0.0", "object-hash": "^2.2.0", "oidc-token-hash": "^5.0.3" } }, "sha512-T1h3B10BRPKfcObdBklX639tVz+xh34O7GjofqrqiAQdm7eHsQ00ih18x6wuJ/E6FxdtS2u3FmUGPDeEcMwzNA=="],

packages/opencode/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@
6060
"jsonc-parser": "3.3.1",
6161
"minimatch": "10.0.3",
6262
"open": "10.1.2",
63+
"opencode-ai": "0.0.0-dev-202510110425",
6364
"partial-json": "0.1.7",
6465
"remeda": "catalog:",
6566
"solid-js": "catalog:",

packages/opencode/src/cli/cmd/tui/tui.ts renamed to packages/opencode/src/cli/cmd/tui/spawn.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,8 @@ import { Instance } from "@/project/instance"
33
import path from "path"
44
import { Server } from "@/server/server"
55

6-
export const TuiCommand = cmd({
7-
command: "$0 [project]",
8-
describe: "start opencode tui",
6+
export const TuiSpawnCommand = cmd({
7+
command: "spawn [project]",
98
builder: (yargs) =>
109
yargs
1110
.positional("project", {

packages/opencode/src/cli/cmd/tui/tui-thread.ts renamed to packages/opencode/src/cli/cmd/tui/thread.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ import { cmd } from "@/cli/cmd/cmd"
22
import { tui } from "./app"
33

44
export const TuiThreadCommand = cmd({
5-
command: "thread [project]",
6-
describe: "start opencode tui threaded",
5+
command: "$0 [project]",
6+
describe: "start opencode tui",
77
builder: (yargs) =>
88
yargs
99
.positional("project", {

packages/opencode/src/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ import { StatsCommand } from "./cli/cmd/stats"
1717
import { McpCommand } from "./cli/cmd/mcp"
1818
import { GithubCommand } from "./cli/cmd/github"
1919
import { ExportCommand } from "./cli/cmd/export"
20-
import { TuiCommand } from "./cli/cmd/tui/tui"
2120
import { AttachCommand } from "./cli/cmd/tui/attach"
22-
import { TuiThreadCommand } from "./cli/cmd/tui/tui-thread"
21+
import { TuiThreadCommand } from "./cli/cmd/tui/thread"
22+
import { TuiSpawnCommand } from "./cli/cmd/tui/spawn"
2323

2424
const cancel = new AbortController()
2525

@@ -70,7 +70,7 @@ const cli = yargs(hideBin(process.argv))
7070
.usage("\n" + UI.logo())
7171
.command(McpCommand)
7272
.command(TuiThreadCommand)
73-
.command(TuiCommand)
73+
.command(TuiSpawnCommand)
7474
.command(AttachCommand)
7575
.command(RunCommand)
7676
.command(GenerateCommand)

0 commit comments

Comments
 (0)