micro-models-agent 0.9.0 → 0.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5,6 +5,7 @@ import { OrchestratorClient } from "../llm/orchestrator";
5
5
  import { validatePlan, applyAutoFixes, } from "../modules/execution/plan-validator";
6
6
  import { MoEExecutor } from "../modules/execution/moe-executor";
7
7
  import { StepVerifier } from "../modules/execution/verifier";
8
+ import { processRegistry } from "../modules/processes";
8
9
  const TOOL_RESULT_MAX_TOKENS_RATIO = 0.3;
9
10
  const TOOL_RESULT_ABSOLUTE_MAX_CHARS = 15000;
10
11
  export class Agent {
@@ -618,6 +619,10 @@ export class Agent {
618
619
  shutdown() {
619
620
  const { pluginManager, logger, sessionManager, contextManager } = this.deps;
620
621
  contextManager.onCompact = null;
622
+ const killed = processRegistry.killAll();
623
+ if (killed > 0) {
624
+ logger.info(`Killed ${killed} background process(es) on shutdown`);
625
+ }
621
626
  pluginManager.runOnSessionEnd({
622
627
  logger,
623
628
  sessionManager: sessionManager?.getActiveMeta(),
package/dist/i18n/en.json CHANGED
@@ -123,6 +123,24 @@
123
123
  "tool.screenshot_unavailable": "[Screenshot captured \u2014 image not available for text-only model]",
124
124
  "tool.timeout": "Tool {name} timed out after {seconds} seconds",
125
125
  "tool.interactive_disabled": "Interactive tool is disabled in exit-on-complete mode. Proceed without asking the user.",
126
+ "proc.started": "Started background process {id} (PID {pid}).\nCommand: {command}",
127
+ "proc.detected_hint": "[Long-running command detected — started in background]",
128
+ "proc.manage_hint": "Check output: process_log id={id}. Stop it: process_kill id={id}. List all: process_list.",
129
+ "proc.none": "No background processes running.",
130
+ "proc.not_found": "Process not found: {id}",
131
+ "proc.killed": "Process {id} (PID {pid}) killed.",
132
+ "proc.kill_failed": "Failed to kill process {id}",
133
+ "proc.list_header": "Background processes",
134
+ "proc.log_header": "Process {id} ({status}) output:",
135
+ "proc.log_empty": "(no output yet)",
136
+ "proc.timed_out": "Command timed out after {ms} ms and was killed.",
137
+ "proc.hint": "Manage them with {list}, {log}, {kill}.",
138
+ "proc.status_running": "running",
139
+ "proc.status_exited": "exited",
140
+ "proc.status_killed": "killed",
141
+ "tool.friendly.process_list": "Listing background processes",
142
+ "tool.friendly.process_log": "Process output",
143
+ "tool.friendly.process_kill": "Stopping process",
126
144
  "plan.created": "Plan created: {title} ({steps} steps)",
127
145
  "plan.step_done": "Step {n}/{total}: {description} \u2713",
128
146
  "plan.complete": "Task complete: {summary}",
@@ -36,7 +36,7 @@ export function t(key, params) {
36
36
  return key;
37
37
  if (params) {
38
38
  for (const [k, v] of Object.entries(params)) {
39
- template = template.replace(`{${k}}`, String(v));
39
+ template = template.replaceAll(`{${k}}`, String(v));
40
40
  }
41
41
  }
42
42
  return template;
package/dist/i18n/ru.json CHANGED
@@ -123,6 +123,24 @@
123
123
  "tool.screenshot_unavailable": "[Скриншот сделан — изображение недоступно для текстовой модели]",
124
124
  "tool.timeout": "Инструмент {name} превысил таймаут ({seconds} сек)",
125
125
  "tool.interactive_disabled": "Интерактивный инструмент отключён в режиме exit-on-complete. Продолжай без вопроса пользователю.",
126
+ "proc.started": "Фоновый процесс запущен: {id} (PID {pid}).\nКоманда: {command}",
127
+ "proc.detected_hint": "[Обнаружена длительная команда — запущена в фоне]",
128
+ "proc.manage_hint": "Проверить вывод: process_log id={id}. Остановить: process_kill id={id}. Список всех: process_list.",
129
+ "proc.none": "Фоновых процессов нет.",
130
+ "proc.not_found": "Процесс не найден: {id}",
131
+ "proc.killed": "Процесс {id} (PID {pid}) остановлен.",
132
+ "proc.kill_failed": "Не удалось остановить процесс {id}",
133
+ "proc.list_header": "Фоновые процессы",
134
+ "proc.log_header": "Вывод процесса {id} ({status}):",
135
+ "proc.log_empty": "(вывода пока нет)",
136
+ "proc.timed_out": "Команда превысила таймаут {ms} мс и была остановлена.",
137
+ "proc.hint": "Управление: {list}, {log}, {kill}.",
138
+ "proc.status_running": "работает",
139
+ "proc.status_exited": "завершён",
140
+ "proc.status_killed": "остановлен",
141
+ "tool.friendly.process_list": "Список фоновых процессов",
142
+ "tool.friendly.process_log": "Вывод процесса",
143
+ "tool.friendly.process_kill": "Остановка процесса",
126
144
  "plan.created": "План создан: {title} ({steps} шагов)",
127
145
  "plan.step_done": "Шаг {n}/{total}: {description} ✓",
128
146
  "plan.complete": "Задача выполнена: {summary}",