mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2026-07-23 16:33:43 +10:00
[autofix.ci] apply automated fixes
This commit is contained in:
@@ -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.",
|
||||
});
|
||||
|
||||
@@ -8,7 +8,7 @@ import { MCP_TOOL_NAME as T } from "./mcp-tool-names";
|
||||
import { TOOL_ANNOTATIONS } from "./tool-annotations";
|
||||
|
||||
// ponytail: shared schema fragment; exported so server-card can re-use without re-importing
|
||||
export const resumeIdSchema = z.string().min(1).describe(`Resume ID. Use \`${T.listResumes}\` to find valid IDs.`);
|
||||
const resumeIdSchema = z.string().min(1).describe(`Resume ID. Use \`${T.listResumes}\` to find valid IDs.`);
|
||||
|
||||
export const TOOL_META = {
|
||||
[T.listResumes]: {
|
||||
|
||||
Reference in New Issue
Block a user