From e08335d5dc86dc2b84c3b900b11c9bcc3b2fd690 Mon Sep 17 00:00:00 2001 From: Svjatoslav Agejenko Date: Wed, 7 Jan 2026 02:04:13 +0200 Subject: [PATCH] Improve code comments. --- .../commands/task_processor/TaskProcessorCommand.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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) -- 2.20.1