mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2026-07-11 13:35:13 +10:00
[autofix.ci] apply automated fixes
This commit is contained in:
@@ -2,7 +2,7 @@ import type { ReactNode } from "react";
|
||||
import type { DialogSchema, DialogType } from "./schemas";
|
||||
|
||||
// ponytail: defineDialogRenderer/defineDialogRendererRegistry were identity fns; inlined
|
||||
export type DialogRendererEntry<T extends DialogType = DialogType> = {
|
||||
type DialogRendererEntry<T extends DialogType = DialogType> = {
|
||||
type: T;
|
||||
render: (dialog: Extract<DialogSchema, { type: T }>) => ReactNode;
|
||||
};
|
||||
|
||||
@@ -28,7 +28,7 @@ export type Resume = {
|
||||
type ResumeUpdateMutation = "sync" | "create" | "update" | "patch" | "lock" | "password" | "delete";
|
||||
type ResumeUpdateEvent = { mutation: ResumeUpdateMutation };
|
||||
|
||||
export type SaveStatus = "idle" | "saving" | "saved" | "error";
|
||||
type SaveStatus = "idle" | "saving" | "saved" | "error";
|
||||
|
||||
type ResumeStoreState = {
|
||||
resume: Resume | null;
|
||||
|
||||
@@ -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