Commit Graph

1112 Commits

Author SHA1 Message Date
Dani 482772b2bf feat: add command examples to download modal
Added two simple command options for loading context:

Option 1: Direct reference with @
claude "read @context-file.md and continue"

Option 2: Using cat (pipe)
cat context-file.md | claude

Changes:
- Replaced generic instructions with specific commands
- Added syntax-highlighted code blocks
- Clear visual separation between options
- Added tip about saving file in project directory

UI improvements:
- Dark code blocks for better readability
- Green headers for each option
- Concise, actionable instructions

🤖 Generated with Claude Code (https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-30 14:32:10 -04:00
Dani a7385cddf5 improve: update context file format to be Claude Code-friendly
Changes:
- Header now directly addresses Claude Code instead of the user
- Clear note: "This file contains the complete conversation history"
- Removed user-facing instructions
- Simplified metadata format
- Updated modal text to reflect that file is FOR Claude Code to read

New header format:
```markdown
# Previous Conversation Context

> **Note to Claude Code**: This file contains the complete
> conversation history from a previous session. Read and
> understand this context to continue helping the user with
> their task.

**Project:** project-name
**Date:** 2025-10-29
**Messages in this export:** 100
```

Modal improvements:
- "Markdown context file that Claude Code can read"
- "Claude will read and understand the previous conversation"
- Clearer example of @ usage

🤖 Generated with Claude Code (https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-29 11:17:20 -04:00
Dani cb890faecf feat: replace session sharing with context download
Complete overhaul of session sharing feature:

REMOVED:
- x0.at upload functionality
- Share command and QR code generation
- External file hosting dependencies
- Clone session command (--clone-session)

ADDED:
- Download conversation as Markdown file
- Context file optimized for Claude Code @ references
- Simple download modal with usage instructions
- Instructions for using @filename in Claude Code

Changes:
Backend:
- New exportSessionAsMarkdown() method in SessionSharing
- Convert conversations to readable Markdown format
- Include usage instructions in exported files
- Changed endpoint from /api/conversations/:id/share to /download

Frontend:
- Replaced "Share" button with "Download" button
- New download modal with clear instructions
- Removed QR code and upload functionality
- Direct browser download of .md files

User Experience:
- Download context file to local machine
- Add file to project repository
- Reference in Claude Code with @filename
- Continue conversation with full context

Example workflow:
1. Click Download button
2. Save claude-context-project-2025-10-27.md
3. Add to git repo
4. In Claude Code: "Read @claude-context-project-2025-10-27.md and continue"

🤖 Generated with Claude Code (https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-29 11:00:28 -04:00
Dani 789bb2d81d fix: correct resume command and project name in session sharing
Fixes:
- Resume command now shows only conversation ID (claude --resume <id>)
  instead of including user path
- Changed default project name from 'Unknown' to 'shared-session'
  for consistency between export and import
- Updated default model fallback to 'claude-sonnet-4-5-20250929'

Issue: When cloning a session on another computer, the resume command
was showing the wrong format and the project was being saved as
'unknown' instead of using the correct project name.

🤖 Generated with Claude Code (https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-28 20:05:04 -04:00
Dani 8b25e94998 fix: include category in component URLs 2025-10-28 12:22:34 -04:00
Dani 69079cb037 fix: improve code block formatting and add URLs to all commands 2025-10-28 12:20:08 -04:00
Dani 69d26b9cc7 fix: improve link format in search results 2025-10-28 12:05:59 -04:00
Dani 60dfab2260 feat: add clickable links to all Discord bot responses 2025-10-28 11:50:26 -04:00
Dani 8234194ce3 fix: use pure ES modules for Discord bot 2025-10-28 08:01:47 -04:00
Dani f8812b6331 fix: add Discord bot dependencies to api/package.json 2025-10-28 07:57:05 -04:00
Dani 65fa873c2e fix: consolidate Discord bot into single ES module file 2025-10-28 07:54:12 -04:00
Dani db095849e9 fix: add ES module wrapper for interactions endpoint 2025-10-28 07:50:08 -04:00
Dani c95a9e214a fix: convert Discord bot files to CommonJS (.cjs) 2025-10-28 07:48:07 -04:00
Dani b572cb14db feat: add Discord bot with Vercel Functions
- Add 5 slash commands: /search, /info, /install, /popular, /random
- Serverless implementation using Vercel Functions
- Component search and discovery functionality
- Smart caching for components.json
- Setup documentation
2025-10-28 07:39:10 -04:00
Dani eef6c5dfb6 upgrade npm version 2025-10-28 05:17:25 -04:00
Dani 4087d5505c fix: use env variable for release body to prevent execution
- Move RELEASE_BODY to environment variable
- Prevents GitHub Actions from interpreting release body content as bash commands
- Safer handling of user-provided content
2025-10-27 16:45:10 -04:00
Dani b9c515105e fix: prevent command execution in Discord webhook release body
- Replace echo with printf to safely handle release body content
- Prevents bash command interpretation in release notes
- Fixes TRUNCATED_BODY escaping to avoid command injection
2025-10-27 16:42:43 -04:00
Dani ee32f94540 refactor: optimize GitHub Actions workflows
- Remove Docusaurus deployment workflow (unused)
- Remove Vercel deployment workflow (handled separately)
- Update publish-package workflow to avoid conflicts with manual releases
  - No longer bumps version (uses existing version)
  - No longer creates commits, tags, or releases
  - Only publishes to GitHub Packages registry
  - Prevents duplicate releases when publishing manually to npm
2025-10-27 16:36:42 -04:00
Daniel Avila 65156dda84 Session Sharing & Chats UI Improvements (#122)
* feat: add session sharing and cloning functionality

Implement complete session sharing system for Claude Code conversations:

Features:
- Share button in chats interface with QR code generation
- Upload sessions to x0.at (temporary file hosting)
- Clone sessions with --clone-session command
- Limit shared sessions to last 100 messages
- Security confirmation modal with service information
- Resume command display after cloning

Backend:
- New SessionSharing class for export/upload/download/install
- Integration with ConversationAnalyzer
- x0.at upload service (tested and working)
- JSONL format conversion for Claude Code compatibility

Frontend:
- Confirmation modal with x0.at security info
- Centered QR code display
- Improved button styling (Resume, Share, Search)
- Real-time upload progress indication

CLI:
- Added --clone-session <url> parameter
- Automatic session installation to ~/.claude/projects/
- Display resume command with conversation ID

Dependencies:
- Added qrcode package for QR generation

🤖 Generated with Claude Code (https://claude.com/claude-code)

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

* feat: improve chats UI with project grouping and unified action buttons

Major improvements to chats interface:

Project Organization:
- Group conversations by project with collapsible sections
- Projects collapsed by default for cleaner interface
- Auto-expand projects during search with matching results
- Sticky project headers for better navigation
- Project avatars with gradients and conversation counts

Terminology Update:
- Changed "conversations" to "sessions" throughout UI
- Updated empty state messages
- Consistent terminology in headers and labels

Action Buttons Enhancement:
- Unified Resume, Share, and Search buttons in center header
- Replaced emojis with professional SVG icons
- Grouped design with orange accent border
- Individual hover states (green/blue/orange)
- Responsive button group with smooth transitions

Search Improvements:
- Fixed search to work with grouped project structure
- Search in both project names and session IDs
- Auto-collapse all projects when clearing search
- Proper filter clearing in advanced search
- Maintained state management across search operations

Visual Design:
- Orange accent border highlighting action buttons (2px)
- Subtle orange background for button group
- Consistent hover effects with color coding
- Enhanced visual hierarchy
- Better spacing and alignment

🤖 Generated with Claude Code (https://claude.com/claude-code)

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

---------

Co-authored-by: Claude <noreply@anthropic.com>
v1.25.0
2025-10-27 15:42:15 -04:00
Dani 072197cbde discord release notification 2025-10-27 09:19:58 -04:00
Dani 0dad0cf0b3 sitemap and blogs 2025-10-26 12:14:07 -04:00
Dani 936101a70c readme center 2025-10-26 11:48:33 -04:00
Dani 7e85dffd11 README.md: add repository of the day 2025-10-25 13:30:30 -04:00
Dani 8b788dfc9a fix skill modal and add analytics 2025-10-24 17:05:21 -04:00
Dani 576bcc1c00 update nia server 2025-10-24 11:42:44 -04:00
Dani 5af0b5b957 update download data 2025-10-23 17:57:14 -04:00
Dani 22a3f99e4d add testsprite mcp and update download data 2025-10-23 17:50:35 -04:00
Dani a467d114e1 chore: Bump version to 1.24.17 for npm release 2025-10-23 15:19:19 -04:00
Dani 449f68acc1 feat: Add advanced search functionality to chats interface
- Add advanced search panel with filters for directory, date range, and content
- Implement in-conversation search with navigation (↑↓ arrows)
- Add folder browser with conversation counts per directory
- Add search result highlighting with current match emphasis
- Implement 3-character minimum for search to prevent performance issues
- Add ID-based message navigation for reliable infinite scroll support
- Add visual feedback with flash animations and match counters

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-23 15:18:20 -04:00
Dani 404bbfe538 feat: Add 'skill' as valid component type in tracking API
- Add 'skill' to validTypes array in track-download-supabase.js
- Allows tracking of skill component downloads in Supabase

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-22 18:58:16 -04:00
Dani f3242ea11c docs: Clean up /docs/api and update documentation
- Remove redundant serverless function files from /docs/api
- Update README to clarify two-directory architecture
- /api/ for serverless functions (Vercel requirement)
- /docs/api/ for static JSON files only

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-22 18:55:52 -04:00
Dani eef88f88a4 Revert: Restore /api directory - Vercel requires it for serverless functions
This reverts commit b082254. Vercel requires serverless functions in /api/
regardless of outputDirectory. Both directories are needed:
- /api/ for serverless functions (Vercel auto-detects here)
- /docs/api/ can be removed as it's redundant

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-22 18:55:12 -04:00
Dani b0822549a1 refactor: Remove redundant /api directory and consolidate to /docs/api
- Eliminated duplicate /api directory (not used by Vercel)
- Updated /docs/api/README.md to reflect single source of truth
- /docs/api/track-download-supabase.js already includes 'skill' type support
- Simplified maintenance workflow (no more file syncing needed)

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-22 18:48:25 -04:00
Dani 9fda1f8a98 fix(api): Add @supabase/supabase-js dependency to root package.json for Vercel functions 2025-10-21 14:42:40 -04:00
Dani 054c0e56e9 fix(commands): Remove deprecated 'model: sonnet' field from 142 command files
Removed the deprecated 'model: sonnet' field from command frontmatter to fix
compatibility issues with Claude Code. Commands will now inherit the model from
the active conversation instead of using a hardcoded deprecated model identifier.

Changes:
- Removed 'model: sonnet' from 142 command files across all categories
- Commands now use default model inheritance behavior
- Preserved 'model: claude-sonnet-4-5-20250929' in gemini-review.md (valid model)
- 67 commands without model field remain unchanged

This resolves the "model: sonnet not found" error reported in GitHub issues
and aligns with Claude Code's recommended practice of letting commands inherit
the conversation model.

Affected categories:
- Database/Supabase commands (8 files)
- Documentation commands (8 files)
- Deployment commands (11 files)
- Setup commands (14 files)
- Performance commands (8 files)
- Team commands (14 files)
- Security commands (6 files)
- NextJS/Vercel commands (10 files)
- Sync commands (14 files)
- And more across other categories

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-21 10:08:58 -04:00
Dani 43c9d86a85 refactor(cloudflare): Clean up unnecessary logs and code output
- Removed full code output from console (code is saved to files anyway)
- Simplified file download logs to show only filenames
- Removed redundant separators and verbose output
- Keep only essential progress indicators:
  - Agent installation
  - Code generation progress
  - File extraction and save location

Users now see only the essential progress without code dumps.

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-20 19:46:26 -04:00
Dani 0d73e0b498 feat(cloudflare): Upgrade to claude-agent-sdk v0.1.23 with settingSources support
- Updated @anthropic-ai/claude-agent-sdk from ^0.1.0 to ^0.1.23
- Replaced manual agent loading with automatic settingSources: ['project']
- Removed temporary workaround for agent loading (SDK now properly supports it)
- Added gitignore entries for local test directories
- Verified settingSources functionality works with SDK v0.1.23

The latest SDK version properly supports automatic agent loading from .claude/ directory,
eliminating the need for manual file reading and systemPrompt manipulation.

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-20 19:44:32 -04:00
Dani dbdea302a5 fix(cloudflare): Listen for 'result' type messages from Agent SDK
The Agent SDK returns the final response in a message with type='result'
and the content in message.result, not in type='text' messages.

This was discovered through direct testing of the SDK.
2025-10-20 19:36:24 -04:00
Dani 95779b9f24 docs(cloudflare): Add comments explaining temporary agent loading solution
- Current SDK version (^0.1.0) does not properly support settingSources
- Manually loading agent content as workaround
- TODO: Revisit when SDK properly supports automatic agent loading
2025-10-20 19:28:57 -04:00
Dani ffd866a6cf fix(cloudflare): Load agent manually instead of using settingSources 2025-10-20 19:26:13 -04:00
Dani 4c0056f0e8 debug: Add CWD logging to troubleshoot Agent SDK 2025-10-20 19:23:24 -04:00
Dani 9d6c10fce0 fix(cloudflare): Add missing component variables to function scope 2025-10-20 18:38:57 -04:00
Dani 9b2df6772b fix(cloudflare): Pass componentsToInstall correctly to launcher 2025-10-20 18:36:17 -04:00
Dani 228f7b2b7a feat(cloudflare): Add better error handling for Agent SDK query 2025-10-20 18:31:07 -04:00
Dani 3fa7ed13d4 fix(cloudflare): Remove problematic file filter in fs.copy v1.24.16 2025-10-20 17:55:22 -04:00
Dani d24a9902ff fix(cloudflare): Add debug logging for component file copy
Added detailed logging to help debug why Cloudflare component files
are not being copied to the sandbox directory.

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-20 17:53:12 -04:00
Dani 82ba6e2d04 chore: Bump version to 1.24.4 with Cloudflare fixes 2025-10-20 17:45:08 -04:00
Dani 7880073473 chore: Bump version to 1.24.3 2025-10-20 17:44:57 -04:00
Dani 28d6229802 docs(cloudflare): Update IMPLEMENTATION_SUMMARY with file download structure details
Added comprehensive documentation about file download structure
matching E2B pattern (cloudflare-{timestamp}/).

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-20 17:40:14 -04:00
Dani 669cd6ed44 update skills category in trending data and components json 2025-10-20 13:21:17 -04:00