mirror of
https://github.com/ruvnet/ruflo.git
synced 2026-11-23 21:59:14 +09:00
🔖 Checkpoint: Edit /workspaces/claude-code-flow/src/cli/simple-commands/pair.js
This commit is contained in:
1 parent
8af6f45eb8
commit
647c8ff248
3 files changed
+6
-4
No files matched your search
@@ -0,0 +1 @@
|
||||
{"branch": "checkpoint/pre-edit-20250813-150432", "file": "/workspaces/claude-code-flow/src/cli/simple-commands/pair.js", "timestamp": "2025-08-13T15:04:32Z", "type": "pre-edit", "original_branch": "alpha-89"}
|
||||
@@ -0,0 +1 @@
|
||||
{"tag": "checkpoint-20250813-150434", "file": "/workspaces/claude-code-flow/src/cli/simple-commands/pair.js", "timestamp": "2025-08-13T15:04:34Z", "type": "post-edit", "branch": "alpha-89", "diff_summary": " .claude-flow/metrics/performance.json | 2 +- .claude-flow/metrics/system-metrics.json | 180 ++++ .claude-flow/metrics/task-metrics.json | 6 +- .claude-flow/sessions/pair/pair_1755097338012.json | 11 + .claude/checkpoints/1755097287.json | 1 + .claude/checkpoints/1755097289.json | 1 + claude-flow-wiki | 0 src/cli/simple-commands/pair-enhanced.backup.js | 1066 ++++++++++++++++++ src/cli/simple-commands/pair.js | 1139 ++++++++------------ 9 files changed, 1719 insertions(+), 687 deletions(-) "}
|
||||
@@ -147,10 +147,10 @@ class WorkingPairSession {
|
||||
console.log(' 🔧 Fixing linting issues...');
|
||||
try {
|
||||
// First try auto-fix
|
||||
const { stdout, stderr } = await execAsync('npm run lint -- --fix 2>&1 || true');
|
||||
const { stdout, stderr } = await execAsync('(npm run lint -- --fix) 2>&1 || true');
|
||||
|
||||
// Check if fixes were applied
|
||||
const afterLint = await execAsync('npm run lint 2>&1 || true');
|
||||
const afterLint = await execAsync('(npm run lint) 2>&1 || true');
|
||||
const stillHasErrors = afterLint.stdout.toLowerCase().includes('error');
|
||||
|
||||
if (!stillHasErrors || afterLint.stdout.match(/error/gi)?.length <
|
||||
@@ -176,7 +176,7 @@ class WorkingPairSession {
|
||||
if (verificationResult.typeScore < 0.8) {
|
||||
console.log(' 🔧 Analyzing TypeScript errors...');
|
||||
try {
|
||||
const { stdout: tsErrors } = await execAsync('npm run typecheck 2>&1 || true');
|
||||
const { stdout: tsErrors } = await execAsync('(npm run typecheck) 2>&1 || true');
|
||||
|
||||
// Common auto-fixable TypeScript issues
|
||||
if (tsErrors.includes('Could not find a declaration file')) {
|
||||
@@ -212,7 +212,7 @@ class WorkingPairSession {
|
||||
try {
|
||||
// Clear cache and rebuild
|
||||
await execAsync('rm -rf dist 2>&1 || true');
|
||||
await execAsync('npm run build 2>&1 || true');
|
||||
await execAsync('(npm run build) 2>&1 || true');
|
||||
console.log(' ✅ Cleared cache and rebuilt');
|
||||
fixResults.applied++;
|
||||
fixResults.fixes.push('Cache clear and rebuild');
|
||||
|
||||
Reference in new issue
Block a user