Skip to content

Adding full-text search to request and response bodies#20

Open
sirmalloc wants to merge 3 commits intosnipeship:mainfrom
sirmalloc:features/search
Open

Adding full-text search to request and response bodies#20
sirmalloc wants to merge 3 commits intosnipeship:mainfrom
sirmalloc:features/search

Conversation

@sirmalloc
Copy link
Copy Markdown

No description provided.

@hesreallyhim
Copy link
Copy Markdown

➕ would be really nice to have a (streaming) view of just the messages/content and not every log - if i want to view the conversation i think i think i have to click into each request and then expand it again

zenprocess pushed a commit to zenprocess/ccflare that referenced this pull request Apr 6, 2026
…nipeship#20)

* refactor: rename anthropic max to claude-oauth throughout codebase

- Update constants and type definitions to use claude-oauth instead of max
- Update database operations and migrations to handle claude-oauth
- Update core OAuth flow implementation with new mode name
- Update API endpoints to accept and return claude-oauth
- Update CLI commands to accept claude-oauth mode
- Update dashboard web components to display Claude CLI OAuth
- Update documentation files to use new terminology
- Update test files to reflect new mode naming
- Add automatic migration for existing max values in database
- Maintain backward compatibility for existing accounts

The internal technical identifier is now 'claude-oauth' while user-facing
UI displays 'Claude CLI OAuth' for clarity.

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

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

* feat: add comprehensive backward compatibility for 'max' → 'claude-oauth' migration

This commit addresses several important issues:

1. Fixes missing account modes bug: Added 'minimax' and 'anthropic-compatible'
   to all type definitions where they were missing (AddAccountOptions,
   AccountListItem, etc.)

2. Completes 'max' → 'claude-oauth' refactoring: Updated all references
   from deprecated 'max' mode to 'claude-oauth' across codebase

3. Adds runtime backward compatibility: Both HTTP API and CLI now accept
   deprecated 'max' mode and convert it to 'claude-oauth' with deprecation
   warnings

4. Adds comprehensive tests: New test files for OAuth handler and updated
   CLI tests to verify backward compatibility

5. Updates documentation: All docs now reference 'claude-oauth' instead of 'max'

Files updated:
- HTTP API handlers with backward compatibility logic
- CLI argument parsing with deprecation warnings
- Type definitions with missing account modes
- Documentation files with updated references
- Test files with comprehensive coverage

This ensures smooth migration path for existing users while maintaining
backward compatibility for legacy configurations.

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

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

* chore: update .gitignore to only allow .sh files in .github/scripts/

This change ensures that shell scripts are only allowed in the
.github/scripts/ directory and not anywhere else in the repository.

- Added pattern to ignore all .sh files by default
- Added exception to allow .sh files in .github/scripts/ directory

This provides better security and organizational control over
shell script placement in the codebase.

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

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

* test: add migration test for 'max' to 'claude-oauth' conversion

This commit adds a comprehensive test to verify that the database
migration properly converts legacy 'max' mode values to 'claude-oauth'
in the oauth_sessions table.

The test:
- Creates test data with 'max', 'console', and 'claude-oauth' modes
- Runs the migration
- Verifies 'max' was converted to 'claude-oauth'
- Verifies other modes remained unchanged

This addresses the test coverage gap and ensures the migration
functionality is properly validated.

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

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

* refactor: simplify mode determination logic and rename interface for clarity

This commit addresses two code quality improvements:

1. Simplified the complex ternary chain in getAccountsList() that determined
   account mode from provider. Replaced nested ternary with clear if-else
   logic using an IIFE for the same functional behavior but improved readability.

2. Renamed AddAccountOptions interface to AddAccountOptionsWithAdapter in
   the CLI commands package to clarify that it extends the base type with
   CLI-specific adapter functionality.

The changes improve code maintainability while preserving all existing
functionality and type safety.

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

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

---------

Co-authored-by: Claude <noreply@anthropic.com>
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.

2 participants