182 Commits

Author SHA1 Message Date
5016c1d9d6 修改计算规则 2025-08-08 12:27:56 +08:00
f3324b1107 修改计算规则 2025-08-08 09:12:35 +08:00
e903e6a3d1 修改错误 2025-08-08 00:44:23 +08:00
ef2e30401e 美化页面 2025-08-08 00:21:10 +08:00
ca56cc83f0 增加配置转换 2025-08-07 23:46:55 +08:00
5910362683 美化 2025-08-07 12:28:47 +08:00
6798be3b42 汉化 2025-08-06 15:39:05 +08:00
351a79d54c 汉化 2025-08-06 11:32:29 +08:00
Vivek R
90afd6e520 fix(ci): improve macOS build workflow for permissions and CI compatibility
- Set CI=true for native build to ensure correct environment in CI runs
- Add chmod step to guarantee executable permissions on built binary
- Use ditto instead of zip to archive app bundle, preserving permissions and signatures
2025-08-02 00:36:53 +05:30
Kiran Johns
404db59f2c make tab ui more kawaii 2025-08-02 00:33:18 +05:30
Kiran Johns
92599b373d fix tab manager ux issues 2025-08-02 00:33:18 +05:30
Vivek R
74c2bb3746 ci: prepare for v0.1.0 release
- Add Claudia logo to release body
- Add first release announcement and feature highlights
- Clean up test branch references in build workflows
- Update release body formatting for better presentation
- Fix reusable workflow errors by adding workflow_call triggers to build workflows
2025-08-01 18:54:28 +05:30
Vivek R
6a6392670d chore: update dependencies and clean up Windows icons
- Update package.json dependencies
  - Bump package version for consistency

- Update Cargo dependencies
  - Add new dependencies required for enhanced functionality
  - Update Cargo.lock with resolved versions

- Update tauri.conf.json with new build configurations
  - Add platform-specific settings
  - Configure bundle options for different targets

- Update .gitignore patterns
  - Add new build artifacts to ignore list

- Minor fix in claude.rs command implementation
2025-08-01 17:55:15 +05:30
Vivek R
b4ddd360e5 build: add version management and build tooling
- Add scripts/bump-version.sh for coordinated version updates
  - Updates version in package.json, Cargo.toml, tauri.conf.json, and Info.plist
  - Ensures version consistency across all project files
  - Provides clear instructions for tagging and releasing
2025-08-01 17:55:10 +05:30
Vivek R
7b700331cb build: add macOS-specific configuration and cross-compilation support
- Add Info.plist for macOS app metadata
  - Configure bundle identifier as claudia.asterisk.so
  - Set minimum macOS version to 10.15
  - Register .claudia.json file type association
  - Add usage descriptions for camera and microphone access

- Add entitlements.plist for macOS app permissions
  - Disable app sandbox for Homebrew compatibility
  - Enable network access for API communications
  - Allow file system access and subprocess spawning
  - Configure hardened runtime exceptions for JIT and library validation
  - Enable automation for Apple Events

- Add .cargo/config.toml for cross-compilation
  - Configure aarch64-unknown-linux-gnu target
  - Enable PKG_CONFIG_ALLOW_CROSS for cross-platform builds
2025-08-01 17:36:06 +05:30
Vivek R
68d557d50a ci: add GitHub Actions workflows for multi-platform builds
- Add build-linux.yml for Ubuntu/Linux x86_64 builds
  - Installs required system dependencies (webkit2gtk, GTK3, etc.)
  - Builds Tauri application for Linux platform
  - Uploads build artifacts for distribution

- Add build-macos.yml for macOS Intel and Apple Silicon builds
  - Supports both x86_64 and aarch64 architectures
  - Handles Apple certificate import and code signing
  - Creates notarized DMG installers
  - Includes Homebrew cask generation
  - Allows skipping builds and using previous artifacts

- Add release.yml for automated releases
  - Triggers on version tags (v*)
  - Orchestrates builds across all platforms
  - Creates GitHub releases with all artifacts
  - Supports manual workflow dispatch with version input
2025-08-01 17:35:58 +05:30
Vivek R
9c253baec8 feat(analytics): configure analytics initialization and app integration
- Initialize analytics service on app startup in main.tsx
- Integrate analytics consent management in App.tsx
- Track app lifecycle events (start, screen changes)
- Update Tauri configuration for production build
- Set up proper analytics shutdown on app close
- Ensure analytics is initialized before other services

This completes the analytics integration setup with proper
initialization and lifecycle management.
2025-07-31 14:22:58 +05:30
Vivek R
db1efc2831 feat(analytics): integrate analytics across remaining UI components
- Add slash command tracking:
  - Track command selection with method (click/keyboard/autocomplete)
  - Monitor command execution with parameters and timing
  - Record custom command creation events
- Enhance agent execution tracking:
  - Track agent lifecycle (start, progress, completion)
  - Monitor agent errors with retry context
  - Record execution duration and success metrics
- Add tab management analytics:
  - Track tab creation and closure events
  - Monitor active tab switches
- Implement timeline navigation tracking:
  - Track checkpoint navigation events
  - Monitor timeline interactions
- Update useAnalytics hook with comprehensive event helpers
- Export performance monitoring hooks from central index

This completes analytics integration across all major UI components
for full user interaction visibility.
2025-07-31 14:22:47 +05:30
Vivek R
f08764c6ea feat(analytics): add analytics tracking to MCP server components
- Track MCP server additions with configuration method (manual/preset/import)
- Monitor server connections and disconnections with success metrics
- Record server removal events with connection state
- Track MCP tool invocations with source attribution
- Monitor connection errors with retry attempts
- Add performance tracking for server operations

These metrics help understand MCP server usage patterns and
identify connection reliability issues.
2025-07-31 14:22:33 +05:30
Vivek R
5e4cbd415e feat(analytics): integrate comprehensive analytics tracking in ClaudeCodeSession
- Track prompt submissions with detailed metrics (length, complexity, attachments)
- Monitor session lifecycle (start, stop, duration, engagement)
- Record tool executions with performance and success metrics
- Track checkpoint creation and restoration events
- Implement enhanced session metrics including:
  - Time to first message
  - Average response time
  - Files created/modified/deleted count
  - Error frequency and recovery attempts
  - Token usage and code generation metrics
- Add session engagement scoring
- Monitor conversation abandonment patterns
- Track agent execution context when applicable

This provides deep insights into user interactions and session
quality for improving the AI coding experience.
2025-07-31 14:22:22 +05:30
Vivek R
79e228ce88 feat(analytics): add error boundary component for UI error tracking
- Create AnalyticsErrorBoundary component to catch and track UI errors
- Implement automatic error reporting to analytics on component failures
- Provide customizable fallback UI for error states
- Add withAnalyticsErrorBoundary HOC for easy component wrapping
- Include error recovery functionality with reset capability
- Track component stack information for debugging

This ensures all UI errors are captured and reported for better
application stability monitoring and debugging.
2025-07-31 14:22:06 +05:30
Vivek R
d06e1f3cc7 feat(analytics): add comprehensive performance monitoring utilities
- Add ResourceMonitor for tracking system resource usage (memory, CPU, network)
- Implement API request tracking with performance metrics and error monitoring
- Create usePerformanceMonitor hook for component-level performance tracking
- Add useAsyncPerformanceTracker for async operation monitoring
- Track memory warnings, performance bottlenecks, and network failures
- Support configurable thresholds for resource usage alerts
- Implement periodic sampling with intelligent reporting

These utilities enable proactive performance monitoring to identify
and address bottlenecks before they impact user experience.
2025-07-31 14:21:53 +05:30
Vivek R
ed695e50e6 feat(analytics): add core analytics infrastructure with PostHog integration
- Implement comprehensive analytics type system with 100+ event types
- Create event builders for consistent event tracking
- Add main analytics service with PostHog integration
- Include performance tracking utilities with percentile monitoring
- Support anonymous user tracking with session management
- Implement sanitization helpers to remove PII from events
- Add event queueing with automatic flush intervals
- Support for screen tracking and app context

BREAKING CHANGE: Analytics tracking is now integrated throughout the app
and requires PostHog API key configuration via environment variables.
2025-07-31 14:21:14 +05:30
Vivek R
f7e932ed79 feat: add analytics tracking to key components
- Track tab creation and closure events in TabManager
- Add session tracking (created, resumed, completed) in ClaudeCodeSession
- Track model selection changes in ClaudeCodeSession
- Monitor agent execution events (success/failure) in AgentExecution
- Include execution duration metrics for agents
- Use useTrackEvent hook for consistent event tracking
2025-07-30 19:45:00 +05:30
Vivek R
77e0ef0e73 feat: add analytics settings tab
- Add new Analytics tab to Settings component
- Implement analytics enable/disable toggle
- Show consent dialog when enabling analytics without prior consent
- Add delete all analytics data functionality
- Display privacy information and data collection details
- Track analytics settings changes with event tracking
2025-07-30 19:44:48 +05:30
Vivek R
fcb83fc6d0 feat: integrate analytics into main app
- Initialize analytics service on app startup
- Add PostHogProvider wrapper for React integration
- Include AnalyticsConsentBanner in App component
- Set up app lifecycle tracking with useAppLifecycle hook
- Configure PostHog with environment variables
2025-07-30 19:44:29 +05:30
Vivek R
ac7ac0e39e feat: add analytics consent UI components
- Create AnalyticsConsent modal dialog for initial consent
- Add AnalyticsConsentBanner for non-intrusive consent request
- Implement privacy-focused consent flow with clear data collection info
- Show what data is collected and privacy protections
- Support both controlled and uncontrolled component usage
- Add smooth animations with Framer Motion
- Include accept/decline handlers with analytics service integration
2025-07-30 19:44:17 +05:30
Vivek R
f6f877593d feat: add analytics React hooks
- Create useAnalytics hook for accessing analytics service
- Add useTrackEvent hook with pre-built event tracking methods
- Implement usePageView hook for automatic page tracking
- Add useAppLifecycle hook for app start/close events
- Create useComponentMetrics hook for component performance tracking
- Add useInteractionTracking hook for user interaction events
- Export all analytics hooks from hooks index
2025-07-30 19:44:01 +05:30
Vivek R
464d318f34 feat: implement analytics service with PostHog integration
- Create AnalyticsService singleton for centralized analytics tracking
- Implement ConsentManager for privacy-first analytics consent
- Add comprehensive event builders and sanitizers
- Define analytics event types and interfaces
- Support opt-in analytics with local storage persistence
- Include event queue and batch processing
- Add privacy-focused configuration (no session recording, no autocapture)
2025-07-30 19:43:28 +05:30
Vivek R
091feaceeb feat: add PostHog analytics dependency 2025-07-30 19:43:04 +05:30
Vivek R
5d83541262 chore: add .env to gitignore for environment variables 2025-07-30 19:42:42 +05:30
Vivek R
16acda5644 refactor(registry): simplify process registration
- Remove unused child parameter from register_agent_process()
- Simplify ProcessInfo structure by removing unnecessary process handle
2025-07-28 21:31:58 +05:30
Vivek R
7d34da3783 chore(claude): remove unused sidecar execution code
- Remove unused imports (tauri_plugin_shell modules)
- Delete should_use_sidecar() function
- Delete create_sidecar_command() function
- Clean up dead code related to sidecar process execution
2025-07-28 21:31:58 +05:30
Vivek R
fd49a9e2ab refactor(agents): clean up agent command implementation
- Remove unused imports (regex, Arc)
- Fix receiver/child tuple order from spawn() call
- Convert CommandEvent bytes to strings properly
- Remove unused variables (_start_time, mut from installations)
- Update function signatures to match new API
- Simplify child process registration by removing child parameter
2025-07-28 21:31:58 +05:30
Catherine
32a197100a feat: add proxy configuration support
- Add proxy settings UI component with enable/disable toggle
  - Support HTTP, HTTPS, NO_PROXY, and ALL_PROXY environment variables
  - Store proxy settings in app database for persistence
  - Apply proxy settings on app startup and when saved
  - Pass proxy environment variables to Claude command execution
  - Integrate proxy settings into main Settings page with unified save
  - Add proxy support for both system binary and sidecar execution

  This allows users to configure proxy settings for Claude API requests,
  which is essential for users behind corporate firewalls or in regions
  requiring proxy access.

  Fixes network connectivity issues in restricted environments.
2025-07-28 21:31:58 +05:30
Mufeed VH
67800087e9 Merge pull request #234 from brennercruvinel/improve/performance-improvements
Fix white scrollbar issue in Tauri dark theme

- Added color-scheme: dark meta tag for native dark scrollbar support
- Implemented ultra-thin (3px) elegant scrollbars globally
- Removed overflow-hidden container that was cutting scrollbar
- Cleaned up redundant CSS scrollbar styling
- Optimized scrollbar appearance for both web and Tauri environments
2025-07-28 15:42:30 +05:30
Mufeed VH
efdeff7a31 fix(build): resolve TypeScript errors and add missing dependencies
- Add missing zustand dependency to package.json
- Fix unused variable errors in ToolWidgets.tsx
- Remove invalid 'white' theme comparison in claudeSyntaxTheme.ts
- Add proper TypeScript types to stores using StateCreator pattern
- Add null checks and type casting in Settings.tsx filter operations
- Add onChange handler to Switch component to suppress React warning
- Add 'check' script for TypeScript validation

These changes ensure the TypeScript build passes without errors.
2025-07-28 15:28:07 +05:30
Mufeed VH
c87d36e118 feat: implement comprehensive theming system
- Add ThemeContext with support for dark, gray, light, and custom themes
- Create theme switching UI in Settings with theme selector
- Add custom color editor for custom theme mode
- Update styles.css with theme-specific CSS variables
- Add theme storage API methods for persistence
- Update syntax highlighting to match selected theme
- Wrap App with ThemeProvider for global theme access

The theming system allows users to switch between predefined themes
or create their own custom theme with live color editing.
2025-07-28 15:05:46 +05:30
brenner cruvinel
1a888b8c6a Improve: fix white scrollbar issue in Tauri dark theme
- Add color-scheme: dark meta tag and CSS for proper dark scrollbars
- Implement ultra-thin (3px) elegant scrollbars globally
- Remove overflow-hidden that was cutting scrollbar at top
- Clean up redundant scrollbar CSS and component styling
- Optimize scrollbar appearance for both web and Tauri desktop

Fixes scrollbar visibility issues in dark theme across all components.
2025-07-24 20:34:53 -03:00
Vivek R
4ddb6a1995 refactor: remove bundled Claude Code binary support
- Remove all bundled/sidecar binary functionality
- Delete build scripts for fetching and building Claude executables
- Simplify binary detection to only support system installations
- Update UI to remove bundled installation options
- Update build configuration and documentation
2025-07-22 21:16:54 +05:30
Vivek R
abc7323194 chore: clean up code and remove TODO comments
- Remove TODO comments from WebviewPreview.tsx
- Clean up unused import comments for Tauri webview
- Add App.cleaned.tsx as refactored version
- Improve code readability and maintainability
2025-07-16 20:02:07 +05:30
Vivek R
cb7599e7ef refactor: extract ClaudeCodeSession into modular components
- Extract useClaudeMessages hook for message handling logic
- Extract useCheckpoints hook for checkpoint management
- Create MessageList component for message rendering
- Create PromptQueue component for queue management
- Create SessionHeader component for header UI
- Improve separation of concerns and testability
- Prepare ClaudeCodeSession.refactored.tsx as new structure
2025-07-16 20:01:55 +05:30
Vivek R
e2e83e7aea perf: add virtual scrolling and optimized components
- Add FilePicker.optimized.tsx with @tanstack/react-virtual for virtual scrolling
- Add SessionList.optimized.tsx with performance enhancements
- Enable smooth 60fps scrolling for 10,000+ items
- Implement proper memoization and render optimizations
- Reduce unnecessary re-renders and improve responsiveness
2025-07-16 20:01:43 +05:30
Vivek R
295571f81a feat: add custom hooks for common patterns
- Add useLoadingState hook for managing loading states
- Add useDebounce hook for debouncing values/callbacks
- Add useApiCall hook for API call management with error handling
- Add usePagination hook for pagination logic
- Create centralized hooks/index.ts for exports
- Reduce code duplication across components
2025-07-16 20:01:32 +05:30
Vivek R
82fdd06873 refactor: extract widget components from ToolWidgets
- Extract TodoWidget component for todo functionality
- Extract LSWidget component for LS/list functionality
- Extract BashWidget component for bash terminal display
- Create widgets/index.ts for centralized exports
- Prepare ToolWidgets.new.tsx as refactored structure
- Improve code maintainability and enable lazy loading
2025-07-16 20:01:21 +05:30
Vivek R
b812d9ff05 feat: add Zustand state management
- Add Zustand (v5.0.6) for lightweight state management
- Create sessionStore for managing session-related state
- Create agentStore for managing agent runs with intelligent polling
- Eliminate prop drilling across component tree
- Add comprehensive documentation for store usage
2025-07-16 20:01:10 +05:30
Vivek R
9887b9d14a feat: implement comprehensive tabbed interface system
- Add TabContext and useTabState for centralized tab management
- Create TabManager component with drag-and-drop reordering
- Implement TabContent component for dynamic content rendering
- Add AgentsModal for enhanced agent management interface
- Integrate tab system into main App component
- Update existing components to work with new tab architecture
- Support multiple tab types: chat, agent, projects, usage, mcp, settings
- Add tab status tracking and unsaved changes detection
- Implement smooth animations and modern UI interactions
2025-07-15 14:18:34 +05:30
Vivek R
cee71343f5 feat: enhance project-specific slash commands management
- Add scopeFilter prop to SlashCommandsManager for filtering by scope
- Replace browser confirm() with proper delete confirmation dialog
- Fix slash_command_delete to handle project commands with project_path param
- Add Slash Commands tab to ProjectSettings as the default tab
- Add Commands button to ClaudeCodeSession for quick access
- Improve error handling and user feedback for delete operations
- Better UI text when showing project-specific commands only
2025-07-07 23:56:09 +05:30
Vivek R
e6662bf0c9 feat: add default slash commands and update UI to display them
- Add built-in slash commands: /add-dir, /init, /review
- Update slash_commands_list to include default commands
- Enhance SlashCommandPicker UI to show default commands in dedicated tab
- Improve empty state handling with search-aware messaging
- Add proper command display with icons, descriptions, and scope badges
2025-07-07 23:29:49 +05:30
Vivek R
a3d7011c43 feat: add tabs to SlashCommandPicker for better command organization
- Add Default and Custom tabs to separate built-in vs user/project commands
- Enhance command grouping with User/Project scope indicators and icons
- Improve filtering logic to work with tab selection
- Add visual distinction between user and project commands with icons
- Maintain backward compatibility with existing command display logic
2025-07-07 23:10:16 +05:30