Commit graph

643 commits

Author SHA1 Message Date
Dallin Romney
4fa0492037 fix: install rg if not found, show error messages if tool errored 2025-08-01 18:36:32 -07:00
Dallin Romney
48fd27d6bb
Merge pull request #137 from continuedev/add-no-think-flag
feat: add --silent flag to strip thinking tags from headless output
2025-08-01 17:00:13 -07:00
Tomasz Stefaniak
1e25f1fd43
Merge pull request #144 from continuedev/tomasz/fix-auth
improv: surface errors
2025-08-01 16:47:04 -07:00
Tomasz Stefaniak
e653516fb1 chore: clean up 2025-08-01 16:38:33 -07:00
Tomasz Stefaniak
662891f5d9 improv: error handling 2025-08-01 16:16:58 -07:00
Tomasz Stefaniak
41774ee373 improv: surface errors 2025-08-01 16:00:36 -07:00
Dallin Romney
431db20611
Merge pull request #138 from continuedev/nate/add-spec-documentation
Add spec documentation for cn CLI development guidelines
2025-08-01 13:37:09 -07:00
Nate
58e74ddb84 more notes 2025-08-01 12:47:46 -07:00
Nate Sesti
c48a37ff32
Merge pull request #135 from continuedev/nate/disable-scheduled-releases
Disable scheduled releases in GitHub workflow
2025-08-01 12:43:05 -07:00
Nate
a0fd27c826 more notes 2025-08-01 12:38:16 -07:00
Nate
b7b7bf3581 Add spec documentation for cn CLI development guidelines 2025-08-01 12:29:23 -07:00
Chad Metcalf
8fa31ed082
feat: add --silent flag to strip thinking tags from headless output
Add --silent flag to headless mode (-p/--print) that removes <think></think>
tags and excess whitespace from LLM responses. This enables clean output
suitable for shell piping and automation.

## Why --silent instead of --no-think

The flag was renamed from --no-think to --silent because:
- Commander.js treats --no- prefix as negation flags, expecting a base --think option
- --silent provides clearer semantic meaning for "quiet, clean output"
- Follows Unix convention where --silent typically means suppress extra output

## Problem Solved

Many models (like Nemotron - Llama 3.3 Nemotron Super 49B v1.5) emit <think></think>
tags that interfere with shell piping:

Without --silent:
```
$ cn -p "Echo a shell script that prints 'Hello World' Output only the script and NOTHING ELSE. No code fences. No markdown."

<think>
I need to write a shell script. Let me think about this.
The user wants a simple Hello World script.
</think>

#\!/bin/bash
echo "Hello World"
```

With --silent:
```
$ cn -p --silent "Echo a shell script that prints 'Hello World' Output only the script and NOTHING ELSE. No code fences. No markdown."

#\!/bin/bash
echo "Hello World"
```

This makes piping work correctly:
```
$ eval $(cn -p --silent "Write a shell script that prints 'Hello World'")
Hello World
```

## Features

- Strips all <think></think> blocks and their content
- Reduces excessive whitespace (3+ consecutive newlines become 2)
- Works with --format json flag
- Includes comprehensive unit and e2e tests
- Only available with -p/--print flag (headless mode)
2025-08-01 10:36:01 -07:00
Nate
8d35ad1a5e Disable scheduled releases in GitHub workflow 2025-07-31 19:59:01 -07:00
Nate Sesti
a0a053a740
Merge pull request #133 from continuedev/nate/cli-readme-permissions-ui-updates
Update README and normalize write_checklist tool naming
2025-07-31 13:25:15 -07:00
Nate
e8d1303dd3 fix: address feedback 2025-07-31 13:19:11 -07:00
Nate
99c6660981 fix: address feedback 2025-07-31 13:15:52 -07:00
Nate
e17180a319 revert README.md 2025-07-31 13:09:25 -07:00
Nate
527b8e1747 Update README and normalize write_checklist tool naming 2025-07-31 13:08:50 -07:00
Nate Sesti
7a46e8f46c
Merge pull request #132 from continuedev/dallin/red-dot-fix
fix: tool error detection
2025-07-31 12:37:19 -07:00
Nate Sesti
c2657c6ba4
Merge pull request #129 from continuedev/plan-mode
feat: plan mode and auto mode
2025-07-31 12:37:06 -07:00
Dallin Romney
7b839a28fa also for permission denied 2025-07-31 12:23:02 -07:00
Nate
90c2aee2d9 fix more tests 2025-07-31 12:21:40 -07:00
Nate Sesti
9eaa642ffb
Merge pull request #131 from continuedev/dallin/checklist-tool
feat: checklist tool
2025-07-31 12:20:47 -07:00
Dallin Romney
98e80c324a fix: tool error detection 2025-07-31 12:20:25 -07:00
Dallin Romney
420e84650b checklist tool permissions 2025-07-31 11:49:27 -07:00
Dallin Romney
dd53644ce5 fix: tests 2025-07-31 11:42:52 -07:00
Dallin Romney
8137de4170 fix: checklist tool updates 2025-07-31 11:34:59 -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
1fcaa0ed20 fixes 2025-07-31 11:24:16 -07:00
Dallin Romney
20bd304507 feat: write checklist tool 2025-07-31 11:09:54 -07:00
Dallin Romney
f572f60f22 feat: write checklist tool 2025-07-31 11:09:26 -07:00
Nate
62370d46e0 Merge branch 'main' into plan-mode 2025-07-31 11:08:21 -07:00
Nate
f1f6219d48 remove empty test file 2025-07-31 11:01:37 -07:00
Nate
ce6a5f2f5a fix lint errors 2025-07-31 11:00:46 -07:00
Nate
0654863dc5 feat: plan mode and auto mode 2025-07-31 10:52:33 -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