Files
Profa fd2f37eaa0 fix(v3): update README claims and init hooks to use correct package name
Changes:
- Fix README.md agent counts (48 QE agents = 41 main + 7 subagents)
- Fix README.md skill counts (15 QE-specific skills)
- Fix v3/README.md agent counts (47 → 48)
- Fix init-wizard.ts hooks from 'npx @agentic-qe/v3' to 'npx agentic-qe'
- Complete v2 → v2/ folder reorganization (54 items moved)
- Update root package.json to point to v3 as main version

Verified claims:
- 48 QE agents (41 main + 7 TDD subagents)
- 15 QE-specific skills
- 12 DDD bounded contexts
- ~5,600+ tests
- HNSW, ReasoningBank, Queen Coordinator features exist

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-17 18:03:40 +00:00

28 lines
1.0 KiB
Bash
Executable File

#!/bin/bash
# Hook: Pre-Task - Emit agent spawn event to visualization
# Receives JSON via stdin from Claude Code hook system
# Read input from stdin
INPUT=$(cat)
# Extract task description and agent type from hook input
DESC=$(echo "$INPUT" | jq -r '.tool_input.description // .tool_input.prompt // "task-agent"' 2>/dev/null | head -c 50)
AGENT_TYPE=$(echo "$INPUT" | jq -r '.tool_input.subagent_type // .tool_input.agent // "coder"' 2>/dev/null)
# Generate agent ID from description
AGENT_ID=$(echo "$DESC" | tr ' ' '-' | tr '[:upper:]' '[:lower:]' | sed 's/[^a-z0-9-]//g' | head -c 30)
AGENT_ID="${AGENT_ID:-task-agent}-$(date +%s)"
# Store agent ID in temp file for completion hook
mkdir -p /tmp/aqe-viz
echo "$AGENT_ID" > "/tmp/aqe-viz/current-agent-$$"
echo "$AGENT_ID" >> "/tmp/aqe-viz/agent-registry"
# Emit spawn and start events (non-blocking, background)
(
npx tsx scripts/emit-agent-event.ts spawn "$AGENT_ID" "$AGENT_TYPE" 2>/dev/null
npx tsx scripts/emit-agent-event.ts start "$AGENT_ID" 2>/dev/null
) &
exit 0