From 8d4244cbcd38b80eb85006486727043c0adfa91f Mon Sep 17 00:00:00 2001 From: rUv Date: Tue, 12 Aug 2025 15:43:24 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=96=20Checkpoint:=20Edit=20/workspaces?= =?UTF-8?q?/claude-code-flow/src/cli/simple-commands/verification.js?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .claude/checkpoints/1755013298.json | 1 + .claude/checkpoints/1755013300.json | 1 + src/cli/simple-commands/verification.js | 26 +++++++++++++++++++++++++ 3 files changed, 28 insertions(+) create mode 100644 .claude/checkpoints/1755013298.json create mode 100644 .claude/checkpoints/1755013300.json diff --git a/.claude/checkpoints/1755013298.json b/.claude/checkpoints/1755013298.json new file mode 100644 index 0000000000..f799a88497 --- /dev/null +++ b/.claude/checkpoints/1755013298.json @@ -0,0 +1 @@ +{"branch": "checkpoint/pre-edit-20250812-154138", "file": "/workspaces/claude-code-flow/src/cli/simple-commands/verification.js", "timestamp": "2025-08-12T15:41:38Z", "type": "pre-edit", "original_branch": "alpha-89"} diff --git a/.claude/checkpoints/1755013300.json b/.claude/checkpoints/1755013300.json new file mode 100644 index 0000000000..3cb65407bb --- /dev/null +++ b/.claude/checkpoints/1755013300.json @@ -0,0 +1 @@ +{"tag": "checkpoint-20250812-154140", "file": "/workspaces/claude-code-flow/src/cli/simple-commands/verification.js", "timestamp": "2025-08-12T15:41:40Z", "type": "post-edit", "branch": "alpha-89", "diff_summary": " .claude-flow/metrics/performance.json | 2 +- .claude-flow/metrics/system-metrics.json | 24 ++++++++++++++++++++++++ .claude-flow/metrics/task-metrics.json | 6 +++--- .claude/checkpoints/task-1755013256.json | 1 + src/cli/simple-commands/verification.js | 19 +++++++++++++++++++ 5 files changed, 48 insertions(+), 4 deletions(-) "} diff --git a/src/cli/simple-commands/verification.js b/src/cli/simple-commands/verification.js index 102aa7348e..924f5c3b44 100644 --- a/src/cli/simple-commands/verification.js +++ b/src/cli/simple-commands/verification.js @@ -410,6 +410,32 @@ export async function verificationCommand(args, flags) { } } + // Export to file with --export flag + if (flags.export) { + const exportPath = typeof flags.export === 'string' ? flags.export : `truth-report-${Date.now()}.json`; + const exportData = { + report, + filteredHistory, + metadata: { + exported: new Date().toISOString(), + filters: { + agent: flags.agent || null, + taskId: flags.taskId || null, + threshold: flags.threshold || null + }, + command: 'truth', + version: '2.0.0-alpha.89' + } + }; + + try { + await fs.writeFile(exportPath, JSON.stringify(exportData, null, 2)); + console.log(`\nšŸ“ Report exported to: ${exportPath}`); + } catch (error) { + console.error(`\nāŒ Failed to export report: ${error.message}`); + } + } + // JSON output if (flags.json) { console.log('\nšŸ“„ JSON Output:');