From 1d363fa19fe9c1445f635498da48211bf09cbc97 Mon Sep 17 00:00:00 2001 From: "opencode-agent[bot]" Date: Thu, 26 Mar 2026 14:16:07 +0000 Subject: [PATCH] chore: generate --- packages/opencode/test/project/vcs.test.ts | 14 ++++-- packages/sdk/js/src/v2/gen/types.gen.ts | 2 +- packages/sdk/openapi.json | 56 ---------------------- 3 files changed, 11 insertions(+), 61 deletions(-) diff --git a/packages/opencode/test/project/vcs.test.ts b/packages/opencode/test/project/vcs.test.ts index a7287e7a53..346f55039c 100644 --- a/packages/opencode/test/project/vcs.test.ts +++ b/packages/opencode/test/project/vcs.test.ts @@ -82,8 +82,11 @@ describeVcs("Vcs", () => { const pending = nextBranchUpdate(tmp.path) const head = path.join(tmp.path, ".git", "HEAD") - await fs.writeFile(head, `ref: refs/heads/${branch} -`) + await fs.writeFile( + head, + `ref: refs/heads/${branch} +`, + ) const updated = await pending expect(updated).toBe(branch) @@ -99,8 +102,11 @@ describeVcs("Vcs", () => { const pending = nextBranchUpdate(tmp.path) const head = path.join(tmp.path, ".git", "HEAD") - await fs.writeFile(head, `ref: refs/heads/${branch} -`) + await fs.writeFile( + head, + `ref: refs/heads/${branch} +`, + ) await pending const current = await Vcs.branch() diff --git a/packages/sdk/js/src/v2/gen/types.gen.ts b/packages/sdk/js/src/v2/gen/types.gen.ts index 7faa77c268..4a2ae95918 100644 --- a/packages/sdk/js/src/v2/gen/types.gen.ts +++ b/packages/sdk/js/src/v2/gen/types.gen.ts @@ -1994,7 +1994,7 @@ export type Path = { } export type VcsInfo = { - branch: string + branch?: string } export type Command = { diff --git a/packages/sdk/openapi.json b/packages/sdk/openapi.json index bbe1093bd5..245df2ce19 100644 --- a/packages/sdk/openapi.json +++ b/packages/sdk/openapi.json @@ -6718,59 +6718,6 @@ ] } }, - "/vcs/diff": { - "get": { - "operationId": "vcs.diff", - "parameters": [ - { - "in": "query", - "name": "directory", - "schema": { - "type": "string" - } - }, - { - "in": "query", - "name": "workspace", - "schema": { - "type": "string" - } - }, - { - "in": "query", - "name": "mode", - "schema": { - "type": "string", - "enum": ["git", "branch"] - }, - "required": true - } - ], - "summary": "Get VCS diff", - "description": "Retrieve the current git diff for the working tree or against the default branch.", - "responses": { - "200": { - "description": "VCS diff", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/FileDiff" - } - } - } - } - } - }, - "x-codeSamples": [ - { - "lang": "js", - "source": "import { createOpencodeClient } from \"@opencode-ai/sdk\n\nconst client = createOpencodeClient()\nawait client.vcs.diff({\n ...\n})" - } - ] - } - }, "/command": { "get": { "operationId": "command.list", @@ -12534,9 +12481,6 @@ "properties": { "branch": { "type": "string" - }, - "default_branch": { - "type": "string" } } },