From da1b701b4ffef3413da400d2eb3d4881d79ce871 Mon Sep 17 00:00:00 2001 From: Svjatoslav Agejenko Date: Thu, 21 Aug 2025 23:41:19 +0300 Subject: [PATCH] Add important findings --- .../{ => commands/mail_correspondant}/AiTask.java | 7 +++++-- .../mail_correspondant/MailCorrespondentCommand.java | 2 ++ 2 files changed, 7 insertions(+), 2 deletions(-) rename src/main/java/eu/svjatoslav/alyverkko_cli/{ => commands/mail_correspondant}/AiTask.java (98%) diff --git a/src/main/java/eu/svjatoslav/alyverkko_cli/AiTask.java b/src/main/java/eu/svjatoslav/alyverkko_cli/commands/mail_correspondant/AiTask.java similarity index 98% rename from src/main/java/eu/svjatoslav/alyverkko_cli/AiTask.java rename to src/main/java/eu/svjatoslav/alyverkko_cli/commands/mail_correspondant/AiTask.java index 896f69b..29e5c0f 100644 --- a/src/main/java/eu/svjatoslav/alyverkko_cli/AiTask.java +++ b/src/main/java/eu/svjatoslav/alyverkko_cli/commands/mail_correspondant/AiTask.java @@ -1,6 +1,6 @@ -package eu.svjatoslav.alyverkko_cli; +package eu.svjatoslav.alyverkko_cli.commands.mail_correspondant; -import eu.svjatoslav.alyverkko_cli.commands.mail_correspondant.MailQuery; +import eu.svjatoslav.alyverkko_cli.Utils; import java.io.*; import java.nio.file.Files; @@ -9,6 +9,9 @@ import static eu.svjatoslav.alyverkko_cli.Main.configuration; import static java.lang.String.join; /** + * + * TODO: what if directory disappeared that contained original input file ? Response cannot be written back anymore. + * *

Executes AI inference tasks through llama.cpp CLI. This class handles the complete workflow * from prompt construction to response formatting, including temporary file management and process execution. *

Key processing steps: diff --git a/src/main/java/eu/svjatoslav/alyverkko_cli/commands/mail_correspondant/MailCorrespondentCommand.java b/src/main/java/eu/svjatoslav/alyverkko_cli/commands/mail_correspondant/MailCorrespondentCommand.java index d279166..8c37285 100644 --- a/src/main/java/eu/svjatoslav/alyverkko_cli/commands/mail_correspondant/MailCorrespondentCommand.java +++ b/src/main/java/eu/svjatoslav/alyverkko_cli/commands/mail_correspondant/MailCorrespondentCommand.java @@ -21,6 +21,8 @@ import static java.nio.file.StandardWatchEventKinds.*; /** + * TODO: What happens when directory gets renamed ? Will event listener reindex all files inside it for processing ? + * * The MailCorrespondentCommand continuously monitors a specified mail * directory for new or modified text files, checks if they have a * "TOCOMPUTE:" marker, and if so, adds them to a priority queue to be -- 2.20.1