mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-18 02:22:32 +00:00
chore: generate
This commit is contained in:
@@ -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,
|
||||
}) {}
|
||||
|
||||
@@ -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)
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user