agent-orchestrator/packages/core/src
Prateek 69391eaf47 feat: add automatic metadata updates via Claude Code hooks
CRITICAL: This makes the dashboard work by auto-updating metadata when
agents run git/gh commands. Without this, PRs created by agents never
appear on the dashboard.

Changes:
- packages/core/src/claude-hooks.ts: Setup Claude hooks (settings.json + metadata-updater.sh)
- ao start: Automatically configures Claude hooks in project directory
- ao spawn: Sets AO_SESSION and AO_DATA_DIR env vars for hook script
- metadata-updater.sh: Detects gh pr create, git checkout -b, gh pr merge

How it works:
1. PostToolUse hook fires after every Bash command
2. metadata-updater.sh receives JSON with command and output
3. Pattern matches git/gh commands and updates flat metadata files
4. Dashboard reads metadata files to show PR/branch/status

The .claude directory is symlinked from main repo to worktrees so all
sessions share the same hook config.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-02-15 11:29:04 +05:30
..
__tests__ feat: publish to npm under @composio scope (#32) 2026-02-15 04:28:57 +05:30
claude-hooks.ts feat: add automatic metadata updates via Claude Code hooks 2026-02-15 11:29:04 +05:30
config.ts feat: layered prompt system for agent sessions (#27) 2026-02-14 20:07:13 +05:30
index.ts feat: add automatic metadata updates via Claude Code hooks 2026-02-15 11:29:04 +05:30
lifecycle-manager.ts fix: detect agent exit for all agent types, not just idle-reporting ones (#22) 2026-02-14 16:52:46 +05:30
metadata.ts fix: remove sessions/ subdirectory from metadata paths (#24) 2026-02-14 17:28:58 +05:30
orchestrator-prompt.ts feat: implement ao start command for unified orchestrator startup 2026-02-15 11:14:27 +05:30
plugin-registry.ts feat: publish to npm under @composio scope (#32) 2026-02-15 04:28:57 +05:30
prompt-builder.ts feat: layered prompt system for agent sessions (#27) 2026-02-14 20:07:13 +05:30
session-manager.ts fix: recognize terminated/done session states and hide terminal for dead sessions (#40) 2026-02-15 05:15:41 +05:30
tmux.ts fix: restrict temp file permissions, validate session prefix format 2026-02-14 05:17:53 +05:30
types.ts fix: resolve dashboard GitHub API rate limiting and PR enrichment (#37) 2026-02-15 04:14:54 +05:30
utils.ts feat: notifier-composio plugin + integration tests for all plugins (#7) 2026-02-14 16:29:59 +05:30