mirror of
https://github.com/ruvnet/ruflo.git
synced 2026-11-24 06:06:02 +09:00
🔖 Checkpoint: Edit /workspaces/claude-code-flow/src/cli/simple-commands/verification.js
This commit is contained in:
1 parent
c19647cf09
commit
8d4244cbcd
3 files changed
+28
No files matched your search
@@ -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"}
|
||||
@@ -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(-) "}
|
||||
@@ -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:');
|
||||
|
||||
Reference in new issue
Block a user