Open
Conversation
- Resolved conflict in src/database/mod.rs - Added both flowchart_repo and tool_operation_repo methods - Integrated latest changes from main branch
- Add missing query cache files for flowchart_repo - Update .sqlx cache to include all flowchart-related queries - This fixes GitHub Actions CI failures due to missing query metadata
- Replace {} with {variable} in format! macros
- Fix uninlined_format_args clippy warnings
- Update flowchart CLI and service code
- Improve code style compliance
e747c74 to
391bcf4
Compare
391bcf4 to
594c9cd
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add Context Flowchart Feature
Overview
Added a context flowchart feature that visualizes conversation flow by analyzing chat sessions and generating directed acyclic graphs (DAGs) using Google AI (Gemini 2.5 Flash Lite).
Key Features
1. Flowchart Generation
2. CLI Commands
3. TUI Integration
4. Data Model
5. Database Schema
Technical Implementation
Architecture
FlowchartServicehandles Google AI integration and business logicFlowchartRepositorymanages database operationsFlowchartRendererhandles TUI visualizationKey Components
src/models/flowchart.rs- Data structures and DAG validationsrc/services/flowchart_service.rs- Google AI integration and prompt engineeringsrc/tui/flowchart_renderer.rs- Unicode-based flowchart renderingsrc/cli/flowchart.rs- CLI command implementationmigrations/008_add_flowcharts.sql- Database schemaPrompt Engineering
Configuration
GOOGLE_AI_API_KEYto be setgemini-2.5-flash-litefor cost-effective analysisUsage Examples
CLI Usage
TUI Usage
Benefits