This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from langchain.agents import create_agent | |
from langchain.agents.middleware import HumanInTheLoopMiddleware | |
from langchain_core.messages import HumanMessage | |
from langgraph.checkpoint.memory import InMemorySaver | |
from langgraph.types import Command | |
# Настройка middleware с указанием инструментов, требующих одобрения | |
hitl_middleware = HumanInTheLoopMiddleware( | |
tool_configs=[ | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Новая функция для получения детального ToDo статуса Claude Code | |
get_todo_status() { | |
# Извлекаем данные из JSON | |
local session_id=$(echo "$input" | jq -r '.session_id // ""' 2>/dev/null || echo "") | |
local transcript=$(echo "$input" | jq -r '.transcript_path // ""' 2>/dev/null || echo "") | |
local todo_found=0 | |
local todo_lines=() | |
# 1. Поиск в ~/.claude/todos/ |