first commit for refactored project

This commit is contained in:
KS Jannette
2026-05-23 17:08:47 -04:00
commit 6545f8f549
166 changed files with 48911 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
import * as fs from "fs";
import * as sleep from "system-sleep";
import createFormattedContent from "./responseHeaderGenerator.mjs";
const directory = "/Users/kjannette/workspace/agentxa2new/Backend/Doctemp";
async function watchOnce() {
const watcher = fs.watch(directory, (event, file) => {
const path = `/Users/kjannette/workspace/agentxa2new/Backend/Doctemp/${file}`;
createFormattedContent(path);
watcher.close();
// Relaunch watcher after 1 second
sleep(1000);
watchOnce();
});
}
watchOnce();