feat(ai): implement an AI chat window for agentic resume building (#3022)

This commit is contained in:
Amruth Pillai
2026-05-10 13:23:32 +02:00
committed by GitHub
parent 42e83cc676
commit 6787175a8a
91 changed files with 11894 additions and 135 deletions
+6
View File
@@ -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.