From: Svjatoslav Agejenko Date: Wed, 7 Jan 2026 00:04:13 +0000 (+0200) Subject: Improve code comments. X-Git-Url: http://www2.svjatoslav.eu/gitweb/?a=commitdiff_plain;h=e08335d5dc86dc2b84c3b900b11c9bcc3b2fd690;p=alyverkko-cli.git Improve code comments. --- diff --git a/src/main/java/eu/svjatoslav/alyverkko_cli/commands/task_processor/TaskProcessorCommand.java b/src/main/java/eu/svjatoslav/alyverkko_cli/commands/task_processor/TaskProcessorCommand.java index 596cb98..c7ac0d5 100644 --- a/src/main/java/eu/svjatoslav/alyverkko_cli/commands/task_processor/TaskProcessorCommand.java +++ b/src/main/java/eu/svjatoslav/alyverkko_cli/commands/task_processor/TaskProcessorCommand.java @@ -208,6 +208,9 @@ public class TaskProcessorCommand implements Command { } } + /** + * Persists AI response to the file; deletes the original file + */ private static void saveAiResponseToFile(File file, Task task, String aiResponse) throws IOException { StringBuilder resultFileContent = new StringBuilder(); @@ -274,6 +277,9 @@ public class TaskProcessorCommand implements Command { } + /** + * Returns duration string based on elapsed time. + */ private static String getDuration(long startTimeMillis, long endTimeMillis) { long durationSeconds = (endTimeMillis - startTimeMillis) / 1000; @@ -289,7 +295,7 @@ public class TaskProcessorCommand implements Command { /** * Builds a Task object from the contents of a file. - * + *

* This method now implements a three-level hierarchy for model selection: * 1. Explicit model specified in TOCOMPUTE line (the highest priority) * 2. Model alias defined in the skill configuration (if present)