kin/core
johnfrum1234 ab693d3c4d Add permission-aware follow-up flow with interactive resolution
When follow-up agent detects permission-blocked items ("ручное
применение", "permission denied", etc.), they become pending_actions
instead of auto-created tasks. User chooses per item:
  1. Rerun with --dangerously-skip-permissions
  2. Create manual task
  3. Skip

core/followup.py:
  _is_permission_blocked() — regex detection of 9 permission patterns
  generate_followups() returns {created, pending_actions}
  resolve_pending_action() — handles rerun/manual_task/skip

agents/runner.py:
  _run_claude(allow_write=True) adds --dangerously-skip-permissions
  run_agent/run_pipeline pass allow_write through

CLI: kin approve --followup — interactive 1/2/3 prompt per blocked item
API: POST /approve returns {needs_decision, pending_actions}
     POST /resolve resolves individual actions
Frontend: pending actions shown as cards with 3 buttons in approve modal

136 tests, all passing. Frontend builds clean.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-15 15:16:48 +02:00
..
__init__.py Add core/db.py — SQLite schema with all 9 tables from DESIGN.md 3.5 2026-03-15 13:12:54 +02:00
context_builder.py Fix output truncation bug, add language support for agent responses 2026-03-15 14:39:33 +02:00
db.py Fix output truncation bug, add language support for agent responses 2026-03-15 14:39:33 +02:00
followup.py Add permission-aware follow-up flow with interactive resolution 2026-03-15 15:16:48 +02:00
models.py Fix output truncation bug, add language support for agent responses 2026-03-15 14:39:33 +02:00