mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2026-07-25 09:24:54 +10:00
feat(ai): implement an AI chat window for agentic resume building (#3022)
This commit is contained in:
@@ -17,6 +17,12 @@ export const jsonPatchOperationSchema = z.discriminatedUnion("op", [
|
||||
z.object({ op: z.literal("test"), path: z.string(), value: z.unknown() }),
|
||||
]);
|
||||
|
||||
export type JsonPatchOperation = z.infer<typeof jsonPatchOperationSchema>;
|
||||
|
||||
export function createResumePatches(previous: ResumeData, next: ResumeData): JsonPatchOperation[] {
|
||||
return z.array(jsonPatchOperationSchema).parse(jsonpatch.compare(previous, next));
|
||||
}
|
||||
|
||||
/**
|
||||
* A structured error thrown when a JSON Patch operation fails.
|
||||
* Contains only the relevant details -- never the full document tree.
|
||||
|
||||
Reference in New Issue
Block a user