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
+6 -3
View File
@@ -79,9 +79,12 @@ export class Unauthorized extends Schema.TaggedErrorClass<Unauthorized>()(
{ httpApiStatus: 401 }, { httpApiStatus: 401 },
) {} ) {}
export class Authorization extends HttpApiMiddleware.Service<Authorization, { export class Authorization extends HttpApiMiddleware.Service<
provides: CurrentUser Authorization,
}>()("app/Authorization", { {
provides: CurrentUser
}
>()("app/Authorization", {
security: { bearer: HttpApiSecurity.bearer }, security: { bearer: HttpApiSecurity.bearer },
error: Unauthorized, error: Unauthorized,
}) {} }) {}
@@ -76,9 +76,7 @@ describe("aggregateFailures", () => {
]) ])
expect(err!.message).toContain("4 of 5 requests failed: same config problem") expect(err!.message).toContain("4 of 5 requests failed: same config problem")
expect(err!.message).toContain( expect(err!.message).toContain("Affected startup requests: config.providers, provider.list, app.agents, config.get")
"Affected startup requests: config.providers, provider.list, app.agents, config.get",
)
expect(err!.message.match(/same config problem/g)?.length).toBe(1) expect(err!.message.match(/same config problem/g)?.length).toBe(1)
}) })