Skip to content

Commit c6344c5

Browse files
committed
wip: bash
1 parent 7505fa6 commit c6344c5

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

packages/opencode/src/server/server.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -593,10 +593,10 @@ export namespace Server {
593593
},
594594
)
595595
.post(
596-
"/session/:id/command",
596+
"/session/:id/bash",
597597
describeRoute({
598598
description: "Run a bash command",
599-
operationId: "session.chat",
599+
operationId: "session.bash",
600600
responses: {
601601
200: {
602602
description: "Created message",
@@ -618,7 +618,7 @@ export namespace Server {
618618
async (c) => {
619619
const sessionID = c.req.valid("param").id
620620
const body = c.req.valid("json")
621-
const msg = await Session.command({ ...body, sessionID })
621+
const msg = await Session.bash({ ...body, sessionID })
622622
return c.json(msg)
623623
},
624624
)

packages/opencode/src/session/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1005,7 +1005,7 @@ export namespace Session {
10051005
command: z.string(),
10061006
})
10071007
export type CommandInput = z.infer<typeof CommandInput>
1008-
export async function command(input: CommandInput) {
1008+
export async function bash(input: CommandInput) {
10091009
using abort = lock(input.sessionID)
10101010
const msg: MessageV2.Assistant = {
10111011
id: Identifier.ascending("message"),

0 commit comments

Comments
 (0)