claude-yes 1.24.2 → 1.26.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +136 -38
- package/dist/claude-yes.js +326 -175
- package/dist/cli.js +326 -175
- package/dist/cli.js.map +11 -5
- package/dist/codex-yes.js +326 -175
- package/dist/copilot-yes.js +326 -175
- package/dist/cursor-yes.js +326 -175
- package/dist/gemini-yes.js +326 -175
- package/dist/grok-yes.js +326 -175
- package/dist/index.js +226 -105
- package/dist/index.js.map +10 -5
- package/dist/qwen-yes.js +12102 -0
- package/package.json +39 -4
- package/ts/cli-idle.spec.ts +15 -12
- package/ts/cli.ts +15 -83
- package/ts/defineConfig.ts +12 -0
- package/ts/index.ts +166 -159
- package/ts/parseCliArgs.spec.ts +220 -0
- package/ts/parseCliArgs.ts +111 -0
- package/ts/postbuild.ts +6 -4
- package/ts/runningLock.spec.ts +45 -31
- package/ts/tryCatch.ts +25 -0
- package/ts/utils.ts +20 -0
- package/ts/yesLog.ts +27 -0
- package/ts/cli.test.ts +0 -63
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Yes! Claude
|
|
1
|
+
# Cli Yes! Claude/Gemini/Cursor/Copilot/Qwen
|
|
2
2
|
|
|
3
3
|
A wrapper tool that automates interactions with various AI CLI tools by automatically handling common prompts and responses. Originally designed for Claude CLI, now supports multiple AI coding assistants.
|
|
4
4
|
|
|
@@ -42,20 +42,21 @@ Learn more: https://www.anthropic.com/claude-code
|
|
|
42
42
|
```
|
|
43
43
|
|
|
44
44
|
### Cursor
|
|
45
|
+
```bash
|
|
46
|
+
# Install Cursor agent CLI
|
|
47
|
+
# Check Cursor's documentation for installation instructions
|
|
48
|
+
```
|
|
49
|
+
|
|
45
50
|
### Grok
|
|
46
51
|
```bash
|
|
47
52
|
npm install -g @vibe-kit/grok-cli
|
|
48
53
|
```
|
|
49
54
|
Learn more: https://github.com/vibe-kit/grok-cli
|
|
50
|
-
```bash
|
|
51
|
-
# Install Cursor agent CLI
|
|
52
|
-
# Check Cursor's documentation for installation instructions
|
|
53
|
-
```
|
|
54
55
|
|
|
55
56
|
Then install this project:
|
|
56
57
|
|
|
57
58
|
```bash
|
|
58
|
-
npm install
|
|
59
|
+
npm install cli-yes -g
|
|
59
60
|
```
|
|
60
61
|
|
|
61
62
|
## Usage
|
|
@@ -63,50 +64,36 @@ npm install claude-yes -g
|
|
|
63
64
|
### Command Line Interface
|
|
64
65
|
|
|
65
66
|
```bash
|
|
66
|
-
claude-yes [--
|
|
67
|
+
claude-yes [--exit-on-idle=60s] [tool-command] [prompts]
|
|
67
68
|
```
|
|
68
69
|
|
|
69
70
|
#### Examples
|
|
70
71
|
|
|
71
72
|
**Claude (default):**
|
|
72
73
|
```bash
|
|
73
|
-
claude-yes
|
|
74
|
+
claude-yes -- run all tests and commit current changes
|
|
74
75
|
bunx claude-yes "Solve TODO.md"
|
|
75
76
|
```
|
|
76
77
|
|
|
77
78
|
**Other AI tools:**
|
|
78
|
-
```bash
|
|
79
|
-
# Use Gemini
|
|
80
|
-
claude-yes --cli=gemini "help me debug this code"
|
|
81
|
-
|
|
82
|
-
# Use Codex
|
|
83
|
-
claude-yes --cli=codex "refactor this function"
|
|
84
|
-
|
|
85
|
-
# Use Copilot
|
|
86
|
-
claude-yes --cli=copilot "generate unit tests"
|
|
87
|
-
|
|
88
|
-
# Use Cursor
|
|
89
|
-
# Use Grok
|
|
90
|
-
**Direct Commands:**
|
|
91
|
-
|
|
92
79
|
```bash
|
|
93
80
|
# Use Codex directly
|
|
94
|
-
codex-yes
|
|
81
|
+
codex-yes -- refactor this function
|
|
95
82
|
|
|
96
83
|
# Use Grok directly
|
|
97
|
-
grok-yes
|
|
84
|
+
grok-yes -- help me with this code
|
|
98
85
|
|
|
99
86
|
# Use Copilot directly
|
|
100
|
-
copilot-yes
|
|
87
|
+
copilot-yes -- generate unit tests
|
|
101
88
|
|
|
102
89
|
# Use Cursor directly
|
|
103
|
-
cursor-yes
|
|
90
|
+
cursor-yes -- optimize performance
|
|
104
91
|
|
|
105
92
|
# Use Gemini directly
|
|
106
|
-
gemini-yes
|
|
107
|
-
|
|
108
|
-
claude-yes
|
|
109
|
-
claude-yes
|
|
93
|
+
gemini-yes -- debug this code
|
|
94
|
+
|
|
95
|
+
claude-yes "help me with this code"
|
|
96
|
+
claude-yes "optimize performance"
|
|
110
97
|
```
|
|
111
98
|
|
|
112
99
|
**Auto-exit when idle (useful for automation):**
|
|
@@ -121,14 +108,15 @@ claude-code-execute claude-yes "your task here"
|
|
|
121
108
|
|
|
122
109
|
### Supported CLI Tools
|
|
123
110
|
|
|
124
|
-
| Tool | CLI Name | Description |
|
|
125
|
-
|
|
126
|
-
| Claude | `claude` | Anthropic's Claude Code (default) |
|
|
127
|
-
| Gemini | `gemini` | Google's Gemini CLI |
|
|
128
|
-
| Codex | `codex` |
|
|
129
|
-
| Copilot | `copilot` | GitHub Copilot CLI |
|
|
130
|
-
| Cursor | `cursor` | Cursor agent CLI |
|
|
131
|
-
| Grok | `grok` | Vibe Kit
|
|
111
|
+
| Tool | CLI Name | Description | Installation/Update |
|
|
112
|
+
|------|----------|-------------|---------------------|
|
|
113
|
+
| Claude | `claude` | Anthropic's Claude Code (default) | `npm install -g @anthropic-ai/claude-code@latest` |
|
|
114
|
+
| Gemini | `gemini` | Google's Gemini CLI | `npm install -g @google/gemini-cli@latest` |
|
|
115
|
+
| Codex | `codex` | OpenAI's Codex CLI | `npm install -g @openai/codex-cli@latest` |
|
|
116
|
+
| Copilot | `copilot` | GitHub Copilot CLI | `npm install -g @github/copilot@latest` |
|
|
117
|
+
| Cursor | `cursor` | Cursor agent CLI | See https://cursor.com/ja/docs/cli/installation |
|
|
118
|
+
| Grok | `grok` | Vibe Kit's Grok CLI | `npm install -g @vibe-kit/grok-cli@latest` |
|
|
119
|
+
| Qwen | `qwen` | Alibaba's Qwen Code CLI | `npm install -g @qwen-code/qwen-code@latest` |
|
|
132
120
|
|
|
133
121
|
The tool will:
|
|
134
122
|
|
|
@@ -137,6 +125,116 @@ The tool will:
|
|
|
137
125
|
3. Handle tool-specific patterns and responses
|
|
138
126
|
4. When using `--exit-on-idle` flag, automatically exit when the tool becomes idle
|
|
139
127
|
|
|
128
|
+
## CLI Tools Comparison
|
|
129
|
+
|
|
130
|
+
### Pros & Cons Analysis
|
|
131
|
+
|
|
132
|
+
#### Claude Code CLI (Anthropic)
|
|
133
|
+
**Pros:**
|
|
134
|
+
- Industry-leading performance on SWE-bench (72.5%) and Terminal-bench (43.2%)
|
|
135
|
+
- Advanced checkpointing feature for code state management
|
|
136
|
+
- Deep terminal integration with Unix philosophy support
|
|
137
|
+
- Enterprise-ready with AWS/GCP deployment options
|
|
138
|
+
- Excellent at complex refactoring and debugging tasks
|
|
139
|
+
|
|
140
|
+
**Cons:**
|
|
141
|
+
- Higher cost compared to alternatives ($5+ per session)
|
|
142
|
+
- Terminal-based interface may not suit all developers
|
|
143
|
+
- Closed ecosystem with limited community plugins
|
|
144
|
+
- Requires API subscription for full features
|
|
145
|
+
|
|
146
|
+
#### Gemini CLI (Google)
|
|
147
|
+
**Pros:**
|
|
148
|
+
- Free tier with generous limits (60 requests/min, 1,000/day)
|
|
149
|
+
- Fully open source (Apache 2.0 license)
|
|
150
|
+
- 1 million token context window
|
|
151
|
+
- MCP integration for extensibility
|
|
152
|
+
- GitHub Actions integration at no cost
|
|
153
|
+
|
|
154
|
+
**Cons:**
|
|
155
|
+
- Currently in preview with potential stability issues
|
|
156
|
+
- Shared quotas between CLI and Code Assist
|
|
157
|
+
- May produce factually incorrect outputs
|
|
158
|
+
- Limited to English language support
|
|
159
|
+
|
|
160
|
+
#### Codex CLI (OpenAI/Microsoft)
|
|
161
|
+
**Pros:**
|
|
162
|
+
- Cloud-based scalability for team collaboration
|
|
163
|
+
- Powers GitHub Copilot ecosystem
|
|
164
|
+
- Supports multimodal input (images, diagrams)
|
|
165
|
+
- Strong GitHub integration
|
|
166
|
+
- Flexible API for custom implementations
|
|
167
|
+
|
|
168
|
+
**Cons:**
|
|
169
|
+
- Requires more setup and technical knowledge
|
|
170
|
+
- Internet dependency for all operations
|
|
171
|
+
- Less mature/polished than competitors
|
|
172
|
+
- Higher computational requirements
|
|
173
|
+
|
|
174
|
+
#### Copilot CLI (GitHub)
|
|
175
|
+
**Pros:**
|
|
176
|
+
- Seamless GitHub integration
|
|
177
|
+
- Terminal-native development experience
|
|
178
|
+
- Wide language and model support
|
|
179
|
+
- Command explanation and suggestion features
|
|
180
|
+
- Enterprise policy controls available
|
|
181
|
+
|
|
182
|
+
**Cons:**
|
|
183
|
+
- Requires active subscription
|
|
184
|
+
- English-only support
|
|
185
|
+
- May struggle with complex/uncommon commands
|
|
186
|
+
- Organization admin approval needed for business users
|
|
187
|
+
|
|
188
|
+
#### Cursor CLI
|
|
189
|
+
**Pros:**
|
|
190
|
+
- Superior performance in setup and deployment
|
|
191
|
+
- Multi-model support from various providers
|
|
192
|
+
- Excellent context awareness with RAG system
|
|
193
|
+
- Enterprise features for CI/CD integration
|
|
194
|
+
- Can run multiple agents in parallel
|
|
195
|
+
|
|
196
|
+
**Cons:**
|
|
197
|
+
- Steeper learning curve
|
|
198
|
+
- UI/UX can be clunky with cramped interface
|
|
199
|
+
- Manual context management required
|
|
200
|
+
- Screen real estate limitations
|
|
201
|
+
|
|
202
|
+
#### Grok CLI (xAI/Vibe Kit)
|
|
203
|
+
**Pros:**
|
|
204
|
+
- Open source and free for basic use
|
|
205
|
+
- Cost-effective premium tier ($30/month)
|
|
206
|
+
- Real-time data access via X integration
|
|
207
|
+
- Strong community support
|
|
208
|
+
- Cross-platform compatibility
|
|
209
|
+
|
|
210
|
+
**Cons:**
|
|
211
|
+
- Requires API key for advanced features
|
|
212
|
+
- Internet dependency for AI features
|
|
213
|
+
- Additional setup and authentication needed
|
|
214
|
+
- Newer with less mature ecosystem
|
|
215
|
+
|
|
216
|
+
#### Qwen Code CLI (Alibaba)
|
|
217
|
+
**Pros:**
|
|
218
|
+
- Fully open source (Apache 2.0)
|
|
219
|
+
- Exceptional benchmark performance (87.9 on MultiPL-E)
|
|
220
|
+
- 256K-1M token context support
|
|
221
|
+
- No subscription required
|
|
222
|
+
- Enterprise-ready with full infrastructure control
|
|
223
|
+
|
|
224
|
+
**Cons:**
|
|
225
|
+
- Newer entrant with developing ecosystem
|
|
226
|
+
- Geopolitical considerations for adoption
|
|
227
|
+
- Less established tooling and integrations
|
|
228
|
+
- Regional trust and security concerns
|
|
229
|
+
|
|
230
|
+
### Choosing the Right Tool
|
|
231
|
+
|
|
232
|
+
- **For Solo Developers:** Claude Code (complex tasks) or Grok CLI (cost-conscious)
|
|
233
|
+
- **For Teams:** Codex CLI (cloud collaboration) or Cursor CLI (parallel agents)
|
|
234
|
+
- **For Enterprises:** Claude Code (performance) or Qwen Code (self-hosted)
|
|
235
|
+
- **For Budget-Conscious:** Gemini CLI (free tier) or Qwen Code (open source)
|
|
236
|
+
- **For GitHub Users:** Copilot CLI (native integration)
|
|
237
|
+
|
|
140
238
|
<!-- TODO: add usage As lib: call await claudeYes() and it returns render result -->
|
|
141
239
|
|
|
142
240
|
## Options
|