[autofix.ci] apply automated fixes

This commit is contained in:
autofix-ci[bot]
2026-07-04 20:29:16 +00:00
committed by GitHub
parent d32227ff43
commit d5b177aa89
4 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -2,11 +2,11 @@ import type { AnyMiddleware } from "@orpc/server";
import type { UIMessage } from "ai";
import { ORPCError } from "@orpc/client";
export function isAgentEnvironmentUnavailable(error: unknown) {
function isAgentEnvironmentUnavailable(error: unknown) {
return error instanceof Error && error.message === "AGENT_ENVIRONMENT_UNAVAILABLE";
}
export function throwUnavailable(): never {
function throwUnavailable(): never {
throw new ORPCError("PRECONDITION_FAILED", {
message: "AI agent workspace is unavailable because REDIS_URL or ENCRYPTION_SECRET is not configured.",
});