diff --git a/.claude/settings.json b/.claude/settings.json new file mode 100644 index 0000000..f4e2720 --- /dev/null +++ b/.claude/settings.json @@ -0,0 +1,24 @@ +{ + "hooks": { + "PreToolUse": [ + { + "matcher": "Bash|Grep", + "hooks": [ + { + "type": "command", + "command": "C:/Users/rico/AppData/Local/Programs/Python/Python312/Scripts/graphify.EXE hook-guard search" + } + ] + }, + { + "matcher": "Read|Glob", + "hooks": [ + { + "type": "command", + "command": "C:/Users/rico/AppData/Local/Programs/Python/Python312/Scripts/graphify.EXE hook-guard read" + } + ] + } + ] + } +} \ No newline at end of file diff --git a/CLAUDE.md b/CLAUDE.md new file mode 100644 index 0000000..417efeb --- /dev/null +++ b/CLAUDE.md @@ -0,0 +1,9 @@ +## graphify + +This project has a knowledge graph at graphify-out/ with god nodes, community structure, and cross-file relationships. + +Rules: +- For codebase questions, first run `graphify query ""` when graphify-out/graph.json exists. Use `graphify path "" ""` for relationships and `graphify explain ""` for focused concepts. These return a scoped subgraph, usually much smaller than GRAPH_REPORT.md or raw grep output. +- If graphify-out/wiki/index.md exists, use it for broad navigation instead of raw source browsing. +- Read graphify-out/GRAPH_REPORT.md only for broad architecture review or when query/path/explain do not surface enough context. +- After modifying code, run `graphify update .` to keep the graph current (AST-only, no API cost). diff --git a/connector/src/main.rs b/connector/src/main.rs index 042f45c..10d046d 100644 --- a/connector/src/main.rs +++ b/connector/src/main.rs @@ -1809,6 +1809,9 @@ async fn run(args: Args) -> Result<()> { }, LoopOutcome::ConEvent(ev) => match ev { Some(Ok(StreamItem::BookEvents(events))) => { + if pending_channel_group_list || pending_server_group_list { + eprintln!("DEBUG BookEvents while pending group list: {events:?}"); + } for event in &events { if let BookEvent::Message { target, invoker, message } = event { match target { @@ -1918,6 +1921,9 @@ async fn run(args: Args) -> Result<()> { } } Some(Ok(StreamItem::MessageResult(handle, result))) => { + if pending_channel_group_list || pending_server_group_list { + eprintln!("DEBUG MessageResult while pending group list: handle={handle:?} result={result:?}"); + } if let Some(label) = pending_messages.remove(&handle) { if let Err(e) = result { if e.missing_permission.is_some() { @@ -1931,6 +1937,9 @@ async fn run(args: Args) -> Result<()> { } } Some(Ok(StreamItem::MessageEvent(msg))) => { + if pending_channel_group_list || pending_server_group_list { + eprintln!("DEBUG MessageEvent while pending group list: {msg:?}"); + } if pending_server_log { if let InMessage::ServerLog(log) = &msg { let lines: Vec = log.iter().map(|part| part.log.clone()).collect();