Skip to content

Commit 704eb00

Browse files
authored
chore: bump effect beta (#24705)
1 parent bad4599 commit 704eb00

6 files changed

Lines changed: 27 additions & 23 deletions

File tree

bun.lock

Lines changed: 16 additions & 20 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@
2727
"packages/slack"
2828
],
2929
"catalog": {
30-
"@effect/opentelemetry": "4.0.0-beta.48",
31-
"@effect/platform-node": "4.0.0-beta.48",
30+
"@effect/opentelemetry": "4.0.0-beta.57",
31+
"@effect/platform-node": "4.0.0-beta.57",
3232
"@npmcli/arborist": "9.4.0",
3333
"@types/bun": "1.3.12",
3434
"@types/cross-spawn": "6.0.6",
@@ -53,7 +53,7 @@
5353
"dompurify": "3.3.1",
5454
"drizzle-kit": "1.0.0-beta.19-d95b7a4",
5555
"drizzle-orm": "1.0.0-beta.19-d95b7a4",
56-
"effect": "4.0.0-beta.48",
56+
"effect": "4.0.0-beta.57",
5757
"ai": "6.0.168",
5858
"cross-spawn": "7.0.6",
5959
"hono": "4.10.7",

packages/opencode/src/server/routes/instance/httpapi/experimental.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ export const ExperimentalApi = HttpApi.make("experimental")
105105
HttpApiEndpoint.post("consoleSwitch", ExperimentalPaths.consoleSwitch, {
106106
payload: ConsoleSwitchPayload,
107107
success: Schema.Boolean,
108+
error: HttpApiError.BadRequest,
108109
}).annotateMerge(
109110
OpenApi.annotations({
110111
identifier: "experimental.console.switchOrg",

packages/opencode/src/server/routes/instance/httpapi/mcp.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ export const McpApi = HttpApi.make("mcp")
4646
HttpApiEndpoint.post("add", McpPaths.status, {
4747
payload: AddPayload,
4848
success: StatusMap,
49+
error: HttpApiError.BadRequest,
4950
}).annotateMerge(
5051
OpenApi.annotations({
5152
identifier: "mcp.add",
@@ -56,6 +57,7 @@ export const McpApi = HttpApi.make("mcp")
5657
HttpApiEndpoint.post("authStart", McpPaths.auth, {
5758
params: { name: Schema.String },
5859
success: AuthStartResponse,
60+
error: HttpApiError.BadRequest,
5961
}).annotateMerge(
6062
OpenApi.annotations({
6163
identifier: "mcp.auth.start",
@@ -78,6 +80,7 @@ export const McpApi = HttpApi.make("mcp")
7880
HttpApiEndpoint.post("authAuthenticate", McpPaths.authAuthenticate, {
7981
params: { name: Schema.String },
8082
success: MCP.Status,
83+
error: HttpApiError.BadRequest,
8184
}).annotateMerge(
8285
OpenApi.annotations({
8386
identifier: "mcp.auth.authenticate",

packages/opencode/src/server/routes/instance/httpapi/provider.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ export const ProviderApi = HttpApi.make("provider")
3737
params: { providerID: ProviderID },
3838
payload: ProviderAuth.AuthorizeInput,
3939
success: Schema.UndefinedOr(ProviderAuth.Authorization),
40+
error: HttpApiError.BadRequest,
4041
}).annotateMerge(
4142
OpenApi.annotations({
4243
identifier: "provider.oauth.authorize",
@@ -48,6 +49,7 @@ export const ProviderApi = HttpApi.make("provider")
4849
params: { providerID: ProviderID },
4950
payload: ProviderAuth.CallbackInput,
5051
success: Schema.Boolean,
52+
error: HttpApiError.BadRequest,
5153
}).annotateMerge(
5254
OpenApi.annotations({
5355
identifier: "provider.oauth.callback",

packages/opencode/src/server/routes/instance/httpapi/session.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,7 @@ export const SessionApi = HttpApi.make("session")
191191
params: { sessionID: SessionID },
192192
query: MessagesQuery,
193193
success: Schema.Array(MessageV2.WithParts),
194+
error: HttpApiError.BadRequest,
194195
}).annotateMerge(
195196
OpenApi.annotations({
196197
identifier: "session.messages",
@@ -211,6 +212,7 @@ export const SessionApi = HttpApi.make("session")
211212
HttpApiEndpoint.post("create", SessionPaths.create, {
212213
payload: [HttpApiSchema.NoContent, Session.CreateInput],
213214
success: Session.Info,
215+
error: HttpApiError.BadRequest,
214216
}).annotateMerge(
215217
OpenApi.annotations({
216218
identifier: "session.create",

0 commit comments

Comments
 (0)