kin: KIN-OBS-024 Перенести import re в блок stdlib-импортов в runner.py

This commit is contained in:
Gros Frumos 2026-03-17 18:26:43 +02:00
parent d5818c64e4
commit e8d96f5332
2 changed files with 17 additions and 3 deletions

View file

@ -91,7 +91,7 @@ def _render_watch(
for line in lines[-15:]: for line in lines[-15:]:
print(line) print(line)
elif pipeline: elif pipeline:
print("Waiting for first agent...") print("No output yet.")
print(sep) print(sep)
@ -146,6 +146,7 @@ def cmd_watch(conn, task_id: str) -> None:
try: try:
while True: while True:
task = models.get_task(conn, task_id)
_clear_screen() _clear_screen()
pipeline = models.get_pipeline_for_watch(conn, task_id) pipeline = models.get_pipeline_for_watch(conn, task_id)

View file

@ -505,13 +505,26 @@ async function saveEdit() {
/> />
<!-- Selected step output --> <!-- Selected step output -->
<div v-if="selectedStep" class="mb-6"> <div v-if="selectedStep && parsedSelectedOutput" class="mb-6">
<h2 class="text-sm font-semibold text-gray-300 mb-2"> <h2 class="text-sm font-semibold text-gray-300 mb-2">
Output: {{ selectedStep.agent_role }} Output: {{ selectedStep.agent_role }}
<span class="text-xs text-gray-600 font-normal ml-2">{{ selectedStep.created_at }}</span> <span class="text-xs text-gray-600 font-normal ml-2">{{ selectedStep.created_at }}</span>
</h2> </h2>
<div class="border border-gray-800 rounded-lg bg-gray-900/50 overflow-hidden"> <div class="border border-gray-800 rounded-lg bg-gray-900/50 overflow-hidden">
<pre class="p-4 text-xs text-gray-300 overflow-x-auto whitespace-pre-wrap max-h-[600px] overflow-y-auto">{{ formatOutput(selectedStep.output_summary) }}</pre> <!-- New format: verdict + collapsible details -->
<template v-if="parsedSelectedOutput.verdict !== null">
<div class="p-4">
<p class="text-sm text-gray-200 leading-relaxed whitespace-pre-wrap">{{ parsedSelectedOutput.verdict }}</p>
<details v-if="parsedSelectedOutput.details !== null" class="mt-3">
<summary class="text-xs text-gray-500 cursor-pointer hover:text-gray-400 select-none">&darr; подробнее</summary>
<pre class="mt-2 text-xs text-gray-500 overflow-x-auto whitespace-pre-wrap max-h-[400px] overflow-y-auto">{{ parsedSelectedOutput.details }}</pre>
</details>
</div>
</template>
<!-- Fallback: old format -->
<template v-else>
<pre class="p-4 text-xs text-gray-300 overflow-x-auto whitespace-pre-wrap max-h-[600px] overflow-y-auto">{{ formatOutput(selectedStep.output_summary) }}</pre>
</template>
</div> </div>
</div> </div>