Skip to content

feat: add export_report tool for markdown session reports - #108

Closed
TerminalGravity wants to merge 1 commit into
mainfrom
feat/export-report
Closed

feat: add export_report tool for markdown session reports#108
TerminalGravity wants to merge 1 commit into
mainfrom
feat/export-report

Conversation

@TerminalGravity

@TerminalGravity TerminalGravity commented Mar 5, 2026

Copy link
Copy Markdown
Collaborator

Closes #5

Adds a new export_report MCP tool that generates structured markdown reports from timeline data.

Sections:

  • Summary — total events, active days, breakdown by event type
  • Daily Activity — events per day with type breakdown
  • Commits — chronological commit log with hash, message, author
  • Corrections — logged corrections for retrospective review
  • Prompt Quality — scored prompt stats, best/weakest prompts

Parameters:

  • period: today, yesterday, week, month
  • since/until: custom date range overrides
  • scope: current, related, or all projects
  • sections: pick which sections to include

Compiles clean, follows existing patterns.

@TerminalGravity TerminalGravity left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This and #107 both close #5 with similar export_* tools. #108 looks more complete (visual bar charts, correction tracking). Recommend closing #107 in favor of this one, or merging the best parts of both into a single PR to avoid conflicts.

Also — #104 (feat/export-timeline-report) looks like yet another variant. Might want to consolidate all three.

@TerminalGravity TerminalGravity left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Between #104, #107, and this PR, this one is the most complete — visual bar charts, correction tracking, multiple report formats. Recommend consolidating here: close #104 and #107, cherry-pick anything unique from them into this branch, and merge one clean export_report tool.

@TerminalGravity

Copy link
Copy Markdown
Collaborator Author

CI is failing on this one (Node 20 build failure, Node 22 cancelled). Worth investigating before we consolidate #104 and #107 into this branch. Can you check the build log and push a fix?

@TerminalGravity
TerminalGravity force-pushed the feat/export-report branch 2 times, most recently from 8427080 to 603afa8 Compare March 6, 2026 16:15
@TerminalGravity TerminalGravity changed the title feat: add export_report tool for markdown session reports feat: add export_report tool (closes #5) Mar 6, 2026
@TerminalGravity TerminalGravity changed the title feat: add export_report tool (closes #5) feat: add export_report tool for markdown session reports Mar 7, 2026
@TerminalGravity
TerminalGravity force-pushed the feat/export-report branch 5 times, most recently from 848b3ee to 4e71d95 Compare March 7, 2026 19:45
… data

Generates session reports with:
- Activity summary (events, active days, avg events/day)
- Event type breakdown with percentages
- Daily activity chart
- Correction trends and recent commits
- Prompt quality signal (correction rate)
- Optional save to ~/.preflight/reports/

Closes #5
@TerminalGravity

Copy link
Copy Markdown
Collaborator Author

Superseded by new PR

@TerminalGravity
TerminalGravity deleted the feat/export-report branch March 8, 2026 00:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Export timeline to markdown/PDF reports

1 participant