wip
This commit is contained in:
parent
e89e3b7a70
commit
8e8484f875
3 changed files with 281 additions and 145 deletions
|
|
@ -29,7 +29,13 @@ async function main() {
|
|||
|
||||
// step 3: check to verify the local AI engine is ready before touching anything
|
||||
console.log("\n step 3: verifying local AI engine status...");
|
||||
await checkLlmServer();
|
||||
try {
|
||||
await checkLlmServer();
|
||||
} catch (error: unknown) {
|
||||
const message = error instanceof Error ? error.message : String(error);
|
||||
console.error(`\n ❌ ${message}`);
|
||||
process.exit(1);
|
||||
}
|
||||
|
||||
// Step 4: Loop through the wordlists array
|
||||
console.log("\n step 4: looping through the wordlists...");
|
||||
|
|
@ -134,7 +140,7 @@ async function main() {
|
|||
` Failed to enrich batch [${batch.join(", ")}]: ${errorMessage}`,
|
||||
);
|
||||
|
||||
// Cleanup: delete skeleton files for failed batch
|
||||
// Cleanup: delete any partially-written files for the failed batch
|
||||
for (const word of batch) {
|
||||
const targetFilePath = getWordFilePath(word, wordlist.outputDir);
|
||||
deleteFileIfExists(targetFilePath);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue