Skip to content

Commit d01cb7f

Browse files
chore: generate
1 parent 28b0359 commit d01cb7f

7 files changed

Lines changed: 8 additions & 20 deletions

File tree

packages/opencode/src/control-plane/types.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,9 @@ export const WorkspaceInfo = Schema.Struct({
1414
}).annotate({ identifier: "Workspace" })
1515
export type WorkspaceInfo = DeepMutable<Schema.Schema.Type<typeof WorkspaceInfo>>
1616

17-
export const WorkspaceListedInfo = Schema.Struct(Struct.omit(WorkspaceInfo.fields, ["id"]))
18-
.annotate({ identifier: "WorkspaceListedInfo" })
17+
export const WorkspaceListedInfo = Schema.Struct(Struct.omit(WorkspaceInfo.fields, ["id"])).annotate({
18+
identifier: "WorkspaceListedInfo",
19+
})
1920
export type WorkspaceListedInfo = DeepMutable<Schema.Schema.Type<typeof WorkspaceListedInfo>>
2021

2122
export const WorkspaceAdapterEntry = Schema.Struct({

packages/opencode/test/server/httpapi-config.test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import { waitGlobalBusEventPromise } from "./global-bus"
88

99
void Log.init({ print: false })
1010

11-
1211
function app() {
1312
return Server.Default().app
1413
}

packages/opencode/test/server/httpapi-exercise/routing.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,7 @@ export function coverageResult(scenario: Scenario): Result {
4141

4242
export function parseOptions(args: string[]): Options {
4343
const mode = option(args, "--mode") ?? "effect"
44-
if (mode !== "effect" && mode !== "coverage" && mode !== "auth")
45-
throw new Error(`invalid --mode ${mode}`)
44+
if (mode !== "effect" && mode !== "coverage" && mode !== "auth") throw new Error(`invalid --mode ${mode}`)
4645
return {
4746
mode,
4847
include: option(args, "--include"),

packages/opencode/test/server/httpapi-exercise/runner.ts

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,7 @@ import { MessageID, PartID } from "../../../src/session/schema"
88
import { call, callAuthProbe } from "./backend"
99
import { original } from "./environment"
1010
import { runtime } from "./runtime"
11-
import type {
12-
ActiveScenario,
13-
Options,
14-
ProjectOptions,
15-
Result,
16-
Scenario,
17-
ScenarioContext,
18-
SeededContext,
19-
} from "./types"
11+
import type { ActiveScenario, Options, ProjectOptions, Result, Scenario, ScenarioContext, SeededContext } from "./types"
2012

2113
export function runScenario(options: Options) {
2214
return (scenario: Scenario) => {

packages/opencode/test/server/httpapi-raw-route-auth.test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ import * as Log from "@opencode-ai/core/util/log"
1212

1313
void Log.init({ print: false })
1414

15-
1615
function app(input: { password?: string; username?: string }) {
1716
const handler = HttpRouter.toWebHandler(
1817
ExperimentalHttpApiServer.routes.pipe(

packages/opencode/test/server/httpapi-session.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -421,9 +421,9 @@ describe("session HttpApi", () => {
421421
directory: currentDir,
422422
})
423423
const headers = { "x-opencode-directory": tmp.path }
424-
const sessions = (yield* json<Session.Info[]>(yield* request(`${SessionPaths.list}?${query}`, { headers }))).map(
425-
(item) => item.id,
426-
)
424+
const sessions = (yield* json<Session.Info[]>(
425+
yield* request(`${SessionPaths.list}?${query}`, { headers }),
426+
)).map((item) => item.id)
427427

428428
expect(sessions).toContain(pathSession.id)
429429
expect(sessions).not.toContain(pathlessSession.id)

packages/opencode/test/server/httpapi-ui.test.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,6 @@ describe("HttpApi UI fallback", () => {
287287
})
288288

289289
test("keeps matched API routes ahead of the UI fallback", async () => {
290-
291290
const response = await Server.Default().app.request("/session/nope")
292291

293292
expect(response.status).toBe(404)
@@ -344,7 +343,6 @@ describe("HttpApi UI fallback", () => {
344343
})
345344

346345
test("allows web UI preflight without auth", async () => {
347-
348346
const response = await app({ password: "secret", username: "opencode" }).request("/", {
349347
method: "OPTIONS",
350348
headers: {

0 commit comments

Comments
 (0)