Commit graph

611 commits

Author SHA1 Message Date
Dallin Romney
7b839a28fa also for permission denied 2025-07-31 12:23:02 -07:00
Dallin Romney
98e80c324a fix: tool error detection 2025-07-31 12:20:25 -07:00
Nate Sesti
1ffd154700
Merge pull request #130 from continuedev/free-trial-end
free trial end
2025-07-31 11:28:14 -07:00
Nate
71a75abf73 Add proper URL opening mocks to prevent security issues in tests
- Mock the 'open' module to prevent actual URLs from opening during test runs
- Add dedicated URL handling security tests to verify mocking behavior
- Prevent potential security issues where tests could open arbitrary URLs
- Verify URL construction logic without actual browser opening
- Document security considerations around URL opening in tests
- All tests pass with proper mocking in place

Security improvement: Tests now cannot accidentally open malicious URLs
during automated test runs, while still verifying the URL opening logic.

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-31 10:46:16 -07:00
Nate
126e2ff587 Add config selector option to free trial transition UI with comprehensive tests
- Add third option "Switch to a different configuration" to free trial UI
- Integrate with existing ConfigSelector component for seamless config switching
- Update navigation to support 3 options with arrow keys and number selection
- Add comprehensive UI tests covering all interaction branches:
  - Initial screen rendering and formatting
  - Navigation with arrow keys and number keys
  - Boundary checking for navigation
  - Proper callback handling for all three options
  - Visual styling and layout verification
  - Props interface testing
- Tests verify proper integration between FreeTrialTransitionUI and TUIChat
- All existing functionality preserved and tested

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-31 10:33:47 -07:00
Nate
1b8b3e30bd Refactor API key validation and add automatic local config switching
- Create testable pure functions for Anthropic API key validation
- Ensure consistent validation across all entry points (must start with "sk-ant-")
- Add automatic switching to local config after API key entry in CLI
- Update all free trial transition flows to use centralized validation
- Add comprehensive test coverage for validation logic

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-31 10:25:10 -07:00
Nate Sesti
ac01d56f43
Merge pull request #127 from continuedev/dallin/prevent-many-file-crashes
feat: throttled glob and limit glob depth
2025-07-31 10:24:34 -07:00
Nate Sesti
d390eb7ca3
Merge pull request #123 from continuedev/dallin/find-replace-2-diverge
Dallin/find and replace tool updates
2025-07-31 10:24:13 -07:00
Dallin Romney
51b01c6205 merge main 2025-07-31 09:21:45 -07:00
Dallin Romney
d52c447b7d remove new jest script 2025-07-31 09:12:25 -07:00
Nate Sesti
edbe02e3b0
Merge pull request #119 from continuedev/full-access-in-headless-mode
Add headless mode permissions with full tool access by default
2025-07-31 08:03:16 -07:00
Dallin Romney
1af35a7775 don't continue glob once emittedEnd 2025-07-31 07:43:42 -07:00
Dallin Romney
f96a4069e7 feat: throttled glob and limit glob depth 2025-07-31 07:39:38 -07:00
Nate
e614792d31 fix feedback 2025-07-30 23:02:51 -07:00
Nate Sesti
48adb23ab0
Merge pull request #121 from continuedev/word-level-diff
word level diff
2025-07-30 22:41:11 -07:00
Nate
447f4d7e9e fix errors 2025-07-30 22:36:11 -07:00
Dallin Romney
3f760cab21 revert vitest change, fix tool permissions 2025-07-30 22:35:32 -07:00
Nate
328ff12e65 headless tool call permissions error msg 2025-07-30 22:34:20 -07:00
Nate
8a15233bc9 address feedback about memo 2025-07-30 22:29:42 -07:00
Dallin Romney
e991e7923b fix: command arg handling 2025-07-30 22:29:01 -07:00
Dallin Romney
7ede3d62f1 split npm test into separate scripts 2025-07-30 22:25:13 -07:00
Nate Sesti
74bc1a96b3
Merge pull request #116 from continuedev/nate/terminal-command-timeout-handling
Add timeout handling and comprehensive tests for terminal command execution
2025-07-30 22:23:45 -07:00
Nate Sesti
27c66d4178
Merge pull request #117 from continuedev/yaml-comments
Refactor YAML config updates to use centralized yamlConfigUpdater utility
2025-07-30 22:23:28 -07:00
Dallin Romney
b3f43a9ad0 remove vitest 2025-07-30 22:16:46 -07:00
Dallin Romney
31b649e9ac test: fix test attmpt 2025-07-30 22:10:29 -07:00
Dallin Romney
613dd0f751 merge: main and fix conflicts/tests 2025-07-30 14:39:40 -07:00
Dallin Romney
658d012ed6 fix: streaming tests, built in tool flag 2025-07-30 13:58:40 -07:00
Nate Sesti
6ac975925a
Merge pull request #110 from continuedev/model-warning
Update model capability check to support both name and model properties
2025-07-30 13:53:20 -07:00
Nate
500e640843 fix: address feedback 2025-07-30 13:52:54 -07:00
Nate
c498b67fd6 fix tests 2025-07-30 13:51:50 -07:00
Nate
276afde4ab fix: lint errs 2025-07-30 13:49:58 -07:00
Nate
7392ba61bf Merge branch 'yaml-comments' of https://github.com/continuedev/cli into yaml-comments 2025-07-30 13:47:18 -07:00
Nate Sesti
459dcf5686
Merge pull request #120 from continuedev/claude
Fix stream continuation after tool rejection and add comprehensive tests
2025-07-30 13:46:37 -07:00
Nate
ed7bb0a8e5 fix: address feedback 2025-07-30 13:45:22 -07:00
Nate Sesti
e3bb327b5a
Merge pull request #115 from continuedev/dont-be-chatty
Add headless mode support to system message construction
2025-07-30 13:44:42 -07:00
Nate Sesti
d21bd215fa
Update src/tools/runTerminalCommand.ts
Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
2025-07-30 13:44:21 -07:00
Nate Sesti
706eb6e234
Update src/util/yamlConfigUpdater.ts
Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
2025-07-30 13:42:17 -07:00
Nate Sesti
622f6f9049
Merge pull request #118 from continuedev/p-and-pipe
Improve piped input handling in headless mode - combine stdin with prompt args
2025-07-30 13:40:11 -07:00
Nate
4db1cd9fcd update diff colors 2025-07-30 13:36:20 -07:00
Nate
983e9fb2fe fix: address feedback 2025-07-30 13:30:43 -07:00
Nate
186b5b62a2 fix: coloring of word level diff 2025-07-30 11:16:02 -07:00
Dallin Romney
07ccd92a78 add vitest tests to npm run test 2025-07-30 11:13:14 -07:00
Dallin Romney
ea3de40def test: preprocess tests 2025-07-30 11:12:00 -07:00
Nate
fee4850039 Fix stream continuation after tool rejection and add comprehensive tests 2025-07-30 10:56:52 -07:00
Nate
191b5ea63b feat: word-level diff 2025-07-30 10:54:51 -07:00
Nate
bac423c117 Add headless mode permissions with full tool access by default 2025-07-30 09:28:24 -07:00
Nate
4e12633a41 Improve piped input handling in headless mode - combine stdin with prompt args 2025-07-30 09:25:34 -07:00
Nate
fe16776d51 Refactor YAML config updates to use centralized yamlConfigUpdater utility 2025-07-30 09:15:58 -07:00
Nate
a2b3206c4a Add timeout handling and comprehensive tests for terminal command execution 2025-07-30 08:16:21 -07:00
Nate
686f562f3b Add headless mode support to system message construction 2025-07-29 22:39:57 -07:00