The classifier prompt only told the AI that appointmentDate applies to schedule_appointment/claim_only/check_and_claim, so a trailing date like "all on 6/23/26" was dropped for multi-patient claims even though the workflow already reads c.appointmentDate for those intents and silently defaulted to today. Also add Prisma config/seed scripts and shopping-vendor types/schema updates. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
20 lines
854 B
JavaScript
20 lines
854 B
JavaScript
"use strict";
|
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
};
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
const fs_1 = __importDefault(require("fs"));
|
|
const path_1 = __importDefault(require("path"));
|
|
const dir = path_1.default.resolve(__dirname, '../shared/schemas/objects');
|
|
fs_1.default.readdirSync(dir).forEach(file => {
|
|
if (!file.endsWith('.schema.ts'))
|
|
return;
|
|
const full = path_1.default.join(dir, file);
|
|
let content = fs_1.default.readFileSync(full, 'utf8');
|
|
if (content.includes('z.instanceof(Buffer)') && !content.includes("import { Buffer")) {
|
|
content = `import { Buffer } from 'buffer';\n` + content;
|
|
fs_1.default.writeFileSync(full, content);
|
|
console.log('Patched:', file);
|
|
}
|
|
});
|