Skip to content

Commit 2e0d5d2

Browse files
chore: generate
1 parent 38e0dc9 commit 2e0d5d2

File tree

6 files changed

+581
-581
lines changed

6 files changed

+581
-581
lines changed

packages/opencode/src/provider/auth.ts

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -118,18 +118,19 @@ export namespace ProviderAuth {
118118
const state = yield* InstanceState.make<State>(
119119
Effect.fn("ProviderAuth.state")(() =>
120120
Effect.promise(async () => {
121-
const plugins = await Plugin.list()
122-
return {
123-
hooks: Record.fromEntries(
124-
Arr.filterMap(plugins, (x) =>
125-
x.auth?.provider !== undefined
126-
? Result.succeed([ProviderID.make(x.auth.provider), x.auth] as const)
127-
: Result.failVoid,
121+
const plugins = await Plugin.list()
122+
return {
123+
hooks: Record.fromEntries(
124+
Arr.filterMap(plugins, (x) =>
125+
x.auth?.provider !== undefined
126+
? Result.succeed([ProviderID.make(x.auth.provider), x.auth] as const)
127+
: Result.failVoid,
128+
),
128129
),
129-
),
130-
pending: new Map<ProviderID, AuthOuathResult>(),
131-
}
132-
})),
130+
pending: new Map<ProviderID, AuthOuathResult>(),
131+
}
132+
}),
133+
),
133134
)
134135

135136
const methods = Effect.fn("ProviderAuth.methods")(function* () {

packages/opencode/src/skill/index.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,9 @@ export namespace Skill {
184184
Service,
185185
Effect.gen(function* () {
186186
const discovery = yield* Discovery.Service
187-
const state = yield* InstanceState.make(Effect.fn("Skill.state")((ctx) => Effect.sync(() => create(discovery, ctx.directory, ctx.worktree))))
187+
const state = yield* InstanceState.make(
188+
Effect.fn("Skill.state")((ctx) => Effect.sync(() => create(discovery, ctx.directory, ctx.worktree))),
189+
)
188190

189191
const ensure = Effect.fn("Skill.ensure")(function* () {
190192
const cache = yield* InstanceState.get(state)

packages/opencode/test/format/format.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,11 +148,11 @@ describe("Format", () => {
148148
config: {
149149
formatter: {
150150
first: {
151-
command: ["sh", "-c", "sleep 0.05; v=$(cat \"$1\"); printf '%sA' \"$v\" > \"$1\"", "sh", "$FILE"],
151+
command: ["sh", "-c", 'sleep 0.05; v=$(cat "$1"); printf \'%sA\' "$v" > "$1"', "sh", "$FILE"],
152152
extensions: [".seq"],
153153
},
154154
second: {
155-
command: ["sh", "-c", "v=$(cat \"$1\"); printf '%sB' \"$v\" > \"$1\"", "sh", "$FILE"],
155+
command: ["sh", "-c", 'v=$(cat "$1"); printf \'%sB\' "$v" > "$1"', "sh", "$FILE"],
156156
extensions: [".seq"],
157157
},
158158
},

packages/sdk/js/src/v2/gen/sdk.gen.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ import { client } from "./client.gen.js"
44
import { buildClientParams, type Client, type Options as Options2, type TDataShape } from "./client/index.js"
55
import type {
66
AgentPartInput,
7+
ApiAuth,
78
AppAgentsResponses,
89
AppLogErrors,
910
AppLogResponses,
1011
AppSkillsResponses,
11-
Auth as Auth3,
1212
AuthRemoveErrors,
1313
AuthRemoveResponses,
1414
AuthSetErrors,
@@ -63,6 +63,7 @@ import type {
6363
McpLocalConfig,
6464
McpRemoteConfig,
6565
McpStatusResponses,
66+
OAuth,
6667
OutputFormat,
6768
Part as Part2,
6869
PartDeleteErrors,
@@ -173,6 +174,7 @@ import type {
173174
TuiShowToastResponses,
174175
TuiSubmitPromptResponses,
175176
VcsGetResponses,
177+
WellKnownAuth,
176178
WorktreeCreateErrors,
177179
WorktreeCreateInput,
178180
WorktreeCreateResponses,
@@ -337,7 +339,7 @@ export class Auth extends HeyApiClient {
337339
public set<ThrowOnError extends boolean = false>(
338340
parameters: {
339341
providerID: string
340-
auth?: Auth3
342+
body?: OAuth | ApiAuth | WellKnownAuth
341343
},
342344
options?: Options<never, ThrowOnError>,
343345
) {
@@ -347,7 +349,7 @@ export class Auth extends HeyApiClient {
347349
{
348350
args: [
349351
{ in: "path", key: "providerID" },
350-
{ key: "auth", map: "body" },
352+
{ key: "body", map: "body" },
351353
],
352354
},
353355
],

0 commit comments

Comments
 (0)