chore: generate

This commit is contained in:
opencode-agent[bot]
2026-05-16 00:44:10 +00:00
parent 5911bd532d
commit d6b23fd8f6
2 changed files with 7 additions and 6 deletions

View File

@@ -79,9 +79,12 @@ export class Unauthorized extends Schema.TaggedErrorClass<Unauthorized>()(
{ httpApiStatus: 401 },
) {}
export class Authorization extends HttpApiMiddleware.Service<Authorization, {
provides: CurrentUser
}>()("app/Authorization", {
export class Authorization extends HttpApiMiddleware.Service<
Authorization,
{
provides: CurrentUser
}
>()("app/Authorization", {
security: { bearer: HttpApiSecurity.bearer },
error: Unauthorized,
}) {}

View File

@@ -76,9 +76,7 @@ describe("aggregateFailures", () => {
])
expect(err!.message).toContain("4 of 5 requests failed: same config problem")
expect(err!.message).toContain(
"Affected startup requests: config.providers, provider.list, app.agents, config.get",
)
expect(err!.message).toContain("Affected startup requests: config.providers, provider.list, app.agents, config.get")
expect(err!.message.match(/same config problem/g)?.length).toBe(1)
})