refactor(commands/agents): replace bash/jq with ccw session commands

Replace legacy bash/jq operations with ccw session commands for better
consistency and maintainability across workflow commands and agents.

Changes:
- commands/memory/docs.md: Use ccw session update/read for session ops
- commands/workflow/review.md: Replace cat/jq with ccw session read
- commands/workflow/tdd-verify.md: Replace find/jq with ccw session read
- agents/conceptual-planning-agent.md: Use ccw session read for metadata
- agents/test-fix-agent.md: Use ccw session read for context package
- skills/command-guide/reference/*: Mirror changes to skill docs
- ccw/src/commands/session.js: Fix EPIPE error when piping to jq/head

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
catlog22
2025-12-11 14:48:02 +08:00
parent e815c3c10e
commit 0a4c205105
12 changed files with 67 additions and 53 deletions

View File

@@ -7,6 +7,14 @@ import chalk from 'chalk';
import http from 'http';
import { executeTool } from '../tools/index.js';
// Handle EPIPE errors gracefully (occurs when piping to head/jq that closes early)
process.stdout.on('error', (err) => {
if (err.code === 'EPIPE') {
process.exit(0);
}
throw err;
});
/**
* Notify dashboard of granular events (fire and forget)
* @param {Object} data - Event data