170 Commits

Author SHA1 Message Date
Dani ac6a13b6cb docs: add comprehensive tracking system technical documentation
- Created TRACKING_SYSTEM.md with complete architecture overview
- Added detailed Mermaid diagrams for data flow and system components
- Documented privacy controls, security considerations, and troubleshooting
- Updated README.md with link to technical documentation
- Provides complete reference for tracking system implementation

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
v1.15.0
2025-07-31 17:45:46 -04:00
github-actions[bot] d9d75ff865 📊 Update tracking analytics data (#32)
- Updated download statistics from GitHub Pages tracking
    - Processed tracking logs for component downloads
    - Generated by GitHub Actions workflow

    🤖 Automated tracking update

Co-authored-by: GitHub Action <action@github.com>
2025-07-31 16:34:29 -05:00
Dani fa873d9075 fix: correct timestamp generation in tracking workflow
- Fix last_updated field to use actual timestamp instead of literal string
- Use CURRENT_TIMESTAMP variable with proper command substitution
- Update sample data to reflect recent testing (2 agent downloads)
- Remove single quotes around EOF to allow variable expansion
2025-07-31 17:29:34 -04:00
Dani b6dbc95b84 Merge remote-tracking branch 'origin/main' 2025-07-31 17:27:21 -04:00
Dani 9914e3606c feat: update version to 1.14.8 and add database optimization agent 2025-07-31 17:27:06 -04:00
github-actions[bot] 73b07c0430 📊 Update tracking analytics data (#31)
- Updated download statistics from GitHub Pages tracking
    - Processed tracking logs for component downloads
    - Generated by GitHub Actions workflow

    🤖 Automated tracking update

Co-authored-by: GitHub Action <action@github.com>
2025-07-31 17:25:41 -04:00
Dani cf3fe394c2 feat: update tracking service to use GitHub Pages endpoint
- Switch from Vercel to GitHub Pages tracking endpoint
- Use custom domain aitmpl.com for tracking requests
- Verified working with successful 200 responses
- Completely anonymous tracking through GitHub Pages infrastructure
2025-07-31 17:15:03 -04:00
Dani 4c76fe3aba feat: add GitHub Pages tracking endpoints
- Add track.html endpoint for visible tracking
- Add api/track.html for silent tracking with 1x1 pixel
- Create GitHub Action to process tracking logs
- Use GitHub Pages infrastructure for anonymous tracking
- No external dependencies or authentication required
2025-07-31 17:10:25 -04:00
Dani 67b75cbd57 feat: implement public telemetry tracking system
- Add public telemetry endpoint that returns 1x1 GIF (like Google Analytics)
- Enable anonymous tracking via GET requests with no-cors mode
- Endpoint creates GitHub issues for existing analytics workflow
- Maintains full compatibility with current download-stats.json system
- No authentication required - completely anonymous tracking
2025-07-31 13:35:02 -04:00
Dani 96921b702f temp: disable tracking until endpoint is properly configured
- Temporarily disable anonymous tracking to resolve authentication issues
- Vercel endpoint requires authentication configuration
- CLI functionality works perfectly without tracking
- TODO: Re-enable tracking once endpoint configuration is resolved
2025-07-31 13:23:29 -04:00
Dani d9832ff2d9 feat: implement Vercel serverless function for anonymous tracking
- Replace GitHub repository dispatch with Vercel function
- Add vercel-tracking/ project with /api/track endpoint
- Enable completely anonymous tracking without user credentials
- Maintain same analytics data structure and GitHub issues creation
2025-07-31 13:19:18 -04:00
Dani 936dd417d4 feat: implement anonymous tracking via GitHub repository dispatch
- Replace direct issue creation with repository dispatch events
- Add tracking-dispatch.yml workflow to handle tracking events
- Enable anonymous tracking without requiring user tokens
- Maintain same analytics data structure for compatibility
2025-07-31 13:11:17 -04:00
Dani ae7ab15d62 feat: enhance tracking service debug logging control 2025-07-31 12:44:38 -04:00
Dani 0a58102710 feat: update documentation for modern template and component installation syntax 2025-07-31 08:57:48 -04:00
Dani 201cd4c2bf feat: implement GitHub-based template downloads and new --template syntax
## Major Changes

### 🔄 GitHub Download System
- All templates now download directly from GitHub instead of local files
- Components (agents, commands, MCPs) download from `components/` directory
- Templates download from `templates/` directory
- Added download caching to avoid repeated requests
- Show clear GitHub URLs for transparency

### 🆕 New --template Parameter
- Added `--template` parameter as modern replacement for `--language`/`--framework`
- Maintains backward compatibility with deprecated `--language`/`--framework`
- Updated web interface to use new syntax: `npx claude-code-templates@latest --template=python --yes`

### 🎯 Component vs Template Separation
- `--agent=name`: Downloads individual component to `.claude/agents/`
- `--command=name`: Downloads individual component to `.claude/commands/`
- `--mcp=name`: Downloads individual component to `.mcp.json`
- `--template=name`: Downloads complete template with full configuration

### 📦 Web Interface Updates
- Updated installation commands to use `npx` with latest version
- Changed from `--language`/`--framework` to `--template` syntax
- Made global installation optional in step 1
- All template cards now show correct download commands

### ✅ Benefits
- Always up-to-date content from GitHub main branch
- No need to republish npm package for content updates
- Clear distinction between individual components and full templates
- Improved user experience with transparent download sources

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-31 08:41:57 -04:00
Dani 38143ccc4c fix: Move download statistics section above filter buttons
- Reorder HTML sections to show downloadStatsSection before unified-filter-section
- Community downloads statistics now appear above component filter buttons
- Maintains proper visual hierarchy as requested

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-30 20:36:06 -04:00
Dani 83b5602cf8 fix: Keep download statistics section always visible above filters
- Disable hideStatisticsSection function to prevent hiding stats
- Add CSS !important rule to ensure section stays visible
- Maintain download statistics display even when data is not available
- Keep section positioned above the component filters as requested

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-30 20:34:17 -04:00
Dani 62321e9212 fix: Temporarily hide Docs button while fixing Docusaurus deployment
- Comment out documentation button link to /docu/
- Prevents users from accessing broken documentation page
- Will restore once Docusaurus deployment is fixed

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-30 20:06:25 -04:00
Dani 0e674ca0ca fix: Change GitHub Actions to use npm install instead of npm ci
- Replace npm ci with npm install to avoid lock file sync issues
- This ensures dependencies install even with minor version conflicts
- Keep npm caching for better performance

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-30 19:50:16 -04:00
Dani 221862f40a fix: Restore proper Docusaurus TypeScript configuration
- Revert tsconfig.json to use @docusaurus/tsconfig properly
- Clean install dependencies to sync package-lock.json
- Fix npm ci compatibility for GitHub Actions deployment

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-30 19:45:27 -04:00
Dani dd001d3779 chore: Add initial analytics data file
🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-30 19:39:49 -04:00
Dani ae6d77a91d fix: Fix Docusaurus TypeScript configuration and complete download tracking system
- Fix tsconfig.json by removing invalid @docusaurus/tsconfig extends
- Add proper TypeScript configuration for Docusaurus
- Complete download count badges for template, agent, command, and MCP cards
- Add analytics data integration with card regeneration
- Include tracking service and GitHub Actions workflow for analytics processing
- Update web interface with download statistics display

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-30 19:39:02 -04:00
Dani 2fac0de3f8 🚀 Release v1.14.0
### ✨ New Features
- **Custom Domain**: Documentation now available at https://aitmpl.com/docu/
- **Expert Agents System**: New agent-expert, command-expert, and mcp-expert for community contributions
- **Unified Component Cards**: Fixed "Add New" cards design and behavior consistency

### 📚 Documentation
- **Complete Docusaurus Site**: Comprehensive documentation with searchable content
- **Simplified READMEs**: Streamlined both root and cli-tool READMEs, directing to full docs
- **Expert Agent Workflows**: Detailed guides for creating agents, commands, and MCPs

### 🎨 UI/UX Improvements
- **Component Cards**: Fixed design inconsistencies in "Add New" template/component cards
- **Navigation**: All documentation links now point to custom domain
- **Responsive Design**: Better mobile experience for documentation site

### 🔧 Infrastructure
- **GitHub Pages**: Custom domain configuration with proper routing
- **Community Workflow**: Streamlined process for community contributions using expert agents

### 🤝 Community
- **Contribution System**: New expert agents enable easy community contributions
- **Component Creation**: Standardized workflow for creating agents, commands, and MCPs
- **Documentation Hub**: Centralized documentation for better developer experience

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
v1.14.0
2025-07-30 15:13:43 -04:00
Dani 2587605ae1 Merge remote-tracking branch 'origin/main' 2025-07-30 15:10:55 -04:00
Dani 171310d22a Refactor README and CLI tool documentation for clarity and consistency; update URLs to new domain; enhance analytics dashboard and health check commands; streamline contribution process; improve styling and layout for better user experience. 2025-07-30 15:10:41 -04:00
Daniel Avila f442a2d547 Create CNAME 2025-07-30 12:16:14 -04:00
Dani 5422e19c74 Merge remote-tracking branch 'origin/main' 2025-07-30 11:04:24 -04:00
Dani 0ead21fdba feat: Add HeaderComponent for unified header across analytics pages and update version handling 2025-07-30 11:03:52 -04:00
Ali ARGÜN 9d45abca39 fix: correct Claude Code authentication detection in health check (#25)
- Remove non-existent 'claude auth status' command check
- Add proper detection for Claude Code OAuth authentication via ~/.claude.json
- Check for oauthAccount field to verify OAuth authentication
- Support API key authentication via config file or environment variable
- Display user email for OAuth authentication when available
- Provide more accurate status messages based on actual auth state

The health check was incorrectly reporting 'Claude CLI available but
authentication not verified' even when users were properly authenticated.
This fix ensures proper detection and reporting of authentication status
for Claude Code users using either OAuth or API key authentication methods.
2025-07-30 10:56:47 -04:00
Mohammed Al-Ogaili 855d485e0d Update GitHub link in DashboardPage (#27) 2025-07-30 09:56:18 -04:00
daniel b0209b1209 feat: Implement individual component installation system
- Add --agent, --command, --mcp options to CLI
- Implement installIndividualAgent, installIndividualCommand, installIndividualMCP functions
- Dynamic component detection from cli-tool/components directory
- Update web interface install commands to use new CLI options
- Fix infinite recursion in agent installation
- Proper error handling and component listing when not found

Installation examples:
- npx claude-code-templates@latest --agent=react-performance-optimization --yes
- npx claude-code-templates@latest --command=generate-tests --yes
- npx claude-code-templates@latest --mcp=postgresql-integration --yes

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-29 13:22:36 -05:00
daniel 8426d7c0f6 improve: Unify component cards design with templates
- Remove install-note sections from component cards to match template design
- Fix commands installation to include mkdir -p for .claude/commands
- Simplify card back to show only Installation Command title
- Remove unused CSS for install-note styling
- Clean up unused getInstallationTitle function

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-29 13:09:39 -05:00
daniel c09b8fc0a6 bump: Update version to 1.13.0 for release 2025-07-29 12:58:59 -05:00
daniel aad91824a9 feat: Add individual components system with unified web interface
Major Features Added:
🎯 Unified filter interface (Templates, Agents, Commands, MCPs)
🤖 Individual Agent components (react-performance, api-security, database-optimization)
⚡ Custom Command components (check-file, generate-tests)
🔌 MCP integration configs (DeepGraph, GitHub, databases, etc.)
📱 Card flip functionality with installation commands
🎨 Compact stats badges design
📚 Comprehensive Docusaurus documentation

Technical Improvements:
- Modular component architecture in cli-tool/components/
- Real-time GitHub API integration for component loading
- Smart installation command generation per component type
- Responsive design with terminal theme consistency
- Individual component contribution workflows

Web Interface Enhancements:
- Removed mode separation, unified single view
- Interactive filter bar with component counts
- Installation command copying functionality
- Component-specific "Add New" cards with contribution modals
- Enhanced loading states and error handling

Documentation Updates:
- New /docs/components/ section with detailed guides
- Updated navigation and cross-references
- Installation methods for each component type
- Best practices for templates vs individual components

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
v1.13.0
2025-07-29 12:55:04 -05:00
daniel 76810b3fe4 feat: Add AgentAnalyzer for tracking agent usage patterns and analytics
- Introduced AgentAnalyzer class to analyze agent invocation data, usage frequency, and workflow patterns.
- Implemented endpoint for agent usage analytics in ClaudeAnalytics.
- Enhanced session management to account for scheduled reset times instead of fixed durations.
- Updated SessionAnalyzer to reflect new session reset logic and improved warning messages.
- Added functionality to calculate agent efficiency and popular usage hours.
- Created a .nojekyll file for GitHub Pages deployment in Docusaurus configuration.
2025-07-29 08:54:47 -05:00
daniel 03f9be889b feat: Add logging for site structure creation in deployment workflow and remove deprecated Dashboard component 2025-07-28 18:29:06 -05:00
Daniel Avila 6a21447baf Feat/add agents to interactive setup (#23)
* feat: add agents selection to interactive setup

- Add agents step to interactive setup flow in prompts.js
- Include React performance optimization and state management agents
- Include Django API security and database optimization agents
- Integrate agent selection with existing setup workflow
- Show agent count in confirmation step

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>

* chore: bump version to 1.12.2 for agents feature

---------

Co-authored-by: Claude <noreply@anthropic.com>
2025-07-28 15:52:31 -05:00
Daniel Avila 441940264e Feat/improve startup and framework structure (#22)
* feat: Enhanced analytics dashboard with custom tool modals

- Implemented custom modals for all Claude Code tools (Read, Edit, Write, Bash, Glob, Grep, TodoWrite)
- Added intelligent diff viewer for Edit tool with dual modes (By Lines vs Smart Diff)
- Enhanced tool parameter visualization with project-specific insights
- Improved modal consistency with unified design patterns
- Added comprehensive CSS styling for all tool modals
- Fixed modal functionality and error handling across all tools

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>

* feat: improve startup screen and fix framework structure

- Redesign compact ASCII art for better terminal usage
- Add version info and documentation links to startup screen
- Fix frameworks → examples directory structure consistency
- Update all code references to use examples/ instead of frameworks/
- Fix Jest configuration typo (moduleNameMapping → moduleNameMapper)
- Add new agents.js module for agent management

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>

* chore: bump version to 1.12.1 for release

---------

Co-authored-by: Claude <noreply@anthropic.com>
2025-07-28 15:45:14 -05:00
Daniel Avila b27ae0dc5c Docs update (#21)
* feat: Enhanced analytics dashboard with custom tool modals

- Implemented custom modals for all Claude Code tools (Read, Edit, Write, Bash, Glob, Grep, TodoWrite)
- Added intelligent diff viewer for Edit tool with dual modes (By Lines vs Smart Diff)
- Enhanced tool parameter visualization with project-specific insights
- Improved modal consistency with unified design patterns
- Added comprehensive CSS styling for all tool modals
- Fixed modal functionality and error handling across all tools

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>

* docs: Update documentation structure and content

- Reorganize documentation into focused sections
- Add analytics dashboard documentation
- Add project setup guides with framework-specific instructions
- Add CLI options and usage examples
- Add contributing guidelines and safety features
- Update sidebar navigation and site configuration

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>

---------

Co-authored-by: Claude <noreply@anthropic.com>
2025-07-28 14:28:10 -05:00
daniel 0166c71f13 feat: Enhance tool modal functionality and global state management
- Exposed agentsPage globally for modal access in App.js, allowing for custom tool modals.
- Implemented cleanup of global references when navigating away from the agents page.
- Added detailed logging for token chart data in DashboardPage.js to aid in debugging.
- Improved tool display logic in ToolDisplay.js to store tool data for supported tools, enhancing modal interactions.
- Introduced extensive styling for various tool modals in index.html, ensuring a consistent and responsive design.
- Updated showResultsModal function to handle custom tool modals based on stored tool data, improving user experience.
2025-07-26 10:11:44 -05:00
daniel f2e6bb292b Remove unused SVG file: undraw_docusaurus_tree.svg 2025-07-25 21:25:20 -05:00
daniel c80f5b6da4 feat: Add SVG logo for terminal-themed interface 2025-07-25 21:16:01 -05:00
daniel dc1afd84c8 feat: Update header actions and styles for improved layout and accessibility 2025-07-25 21:09:50 -05:00
daniel d63cb3c19a feat: Enhance homepage and styles with terminal theme and new feature cards 2025-07-25 21:02:24 -05:00
daniel 350b11d74a Add SVG illustration and TypeScript configuration file
- Added a new SVG file `undraw_docusaurus_tree.svg` to the static images directory for enhanced visual representation.
- Introduced a new TypeScript configuration file `tsconfig.json` to improve editor experience and project structure.
2025-07-25 20:50:46 -05:00
Daniel Avila d3779f0928 Update README.md 2025-07-22 19:56:41 -04:00
Daniel Avila 4f3a010b42 Update README.md 2025-07-22 19:55:58 -04:00
Dani e2f79bcd39 chore: bump version to 1.11.0 for Console Bridge release
🚀 Released version 1.11.0 to npm with Claude Code Console Bridge integration

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-22 19:37:51 -04:00
Daniel Avila 4fa14a6a44 feat: Implement Claude Code Console Bridge and Enhanced State Detection (#14)
* feat: Enhance DataService with paginated conversations and improved error handling

- Added `getConversationsPaginated` method to fetch conversations with pagination support.
- Improved error handling in `cachedFetch` to provide clearer messages and fallback behavior.
- Updated WebSocket integration to handle connection failures with fallback polling.
- Reduced WebSocket auto-reconnect attempts and disabled auto-reconnect to minimize console noise.
- Added CORS middleware to the web server for better API accessibility.
- Implemented paginated conversations endpoint in the server.
- Added conversation messages endpoint to retrieve messages for a specific conversation.
- Enhanced conversation analysis to include detailed session data and compatibility with original dashboard.

* feat: Implement real-time conversation change handling and notifications

- Added handleConversationChange method to ClaudeAnalytics for processing updates to conversation files.
- Integrated WebSocket notifications for new messages in conversations.
- Enhanced setupFileWatchers to include conversation change callbacks.
- Updated conversation state API to calculate states for all conversations, improving performance and accuracy.
- Introduced pagination for conversation messages endpoint to support large message sets.
- Implemented cache management endpoint for clearing specific cache types.
- Enhanced DataCache and ConversationAnalyzer to support tool correlation in message parsing.
- Created ToolDisplay component for safe rendering of tool uses and results in the analytics dashboard.
- Added comprehensive documentation for Claude data structures and formats.

* feat: Enhance real-time messaging and dashboard features

- Improved logging for new messages in DataService to include message data.
- Increased WebSocket reconnection attempts for better reliability.
- Enabled auto-reconnect in WebSocketService for real-time updates.
- Updated conversation change handling in ClaudeAnalytics to include file path.
- Enhanced error handling and logging in ConversationAnalyzer and DataCache.
- Added new settings file for local permissions.
- Introduced a new Chats Dashboard option in the main menu.
- Created detailed architecture documentation for the analytics web application.
- Deprecated old main.js and Dashboard.js files in favor of a modular structure.

* feat: Implement real-time message handling and improve logging in DataService and AgentsPage

* feat: Implement comprehensive conversation state detection improvements

- Enhanced frontend message analysis for tool execution and content analysis.
- Introduced file activity detection to accurately identify user typing.
- Adopted a WebSocket-first approach for real-time state updates.
- Expanded state vocabulary with new contextual states and visual indicators.
- Improved state banner display with new CSS classes.
- Integrated system components for cohesive state management.
- Added health check feature to validate system requirements and configurations.
- Developed ConsoleBridge for web-based interaction with Claude Code processes.
- Created test script for ConsoleBridge to facilitate integration testing.
2025-07-22 19:31:11 -04:00
Daniel Avila 911963bf92 Update README.md (#11) 2025-07-19 08:46:30 -04:00