claude-yolo 1.5.0 → 1.6.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 +24 -2
- package/package.json +26 -3
- package/postinstall.js +52 -0
package/README.md
CHANGED
|
@@ -2,12 +2,18 @@
|
|
|
2
2
|
|
|
3
3
|
A wrapper for the Claude CLI that always enables danger mode by bypassing Docker and internet permission checks.
|
|
4
4
|
|
|
5
|
+
⚠️ **SECURITY WARNING**: This wrapper bypasses important safety checks by forcibly adding the `--dangerously-skip-permissions` flag to all commands. This bypasses file access permissions that protect your system and privacy.
|
|
6
|
+
|
|
5
7
|
## Installation
|
|
6
8
|
|
|
7
9
|
```bash
|
|
8
10
|
npm install -g claude-yolo
|
|
9
11
|
```
|
|
10
12
|
|
|
13
|
+
During installation, you will be presented with a consent prompt explaining the security implications. You must explicitly agree to continue with the installation.
|
|
14
|
+
|
|
15
|
+

|
|
16
|
+
|
|
11
17
|
GitHub: [https://github.com/eastlondoner/claude-yolo](https://github.com/eastlondoner/claude-yolo)
|
|
12
18
|
|
|
13
19
|
## Usage
|
|
@@ -29,6 +35,12 @@ This wrapper:
|
|
|
29
35
|
5. Adds the `--dangerously-skip-permissions` flag to command line arguments
|
|
30
36
|
6. Imports the modified copy of the CLI
|
|
31
37
|
|
|
38
|
+
## New in Version 1.6.0
|
|
39
|
+
|
|
40
|
+
- **Installation Consent Prompt**: Now requires explicit user consent during installation
|
|
41
|
+
- **Enhanced Security Warnings**: Clear explanations of the security implications
|
|
42
|
+
- **Installation Abort Option**: Users can cancel installation if they don't agree with the security implications
|
|
43
|
+
|
|
32
44
|
## New in Version 1.5.0
|
|
33
45
|
|
|
34
46
|
- **YOLO Mode Warning**: Displays a "🔥 YOLO MODE ACTIVATED 🔥" warning in yellow text
|
|
@@ -74,6 +86,16 @@ Claude YOLO automatically checks for updates to the Claude package each time it
|
|
|
74
86
|
- Notify you that an update was applied
|
|
75
87
|
3. This ensures you're always using the latest Claude CLI features
|
|
76
88
|
|
|
77
|
-
## Disclaimer
|
|
89
|
+
## Important Security Disclaimer
|
|
90
|
+
|
|
91
|
+
This is an unofficial tool and not supported by Anthropic. Use at your own risk.
|
|
78
92
|
|
|
79
|
-
|
|
93
|
+
**SECURITY WARNING**:
|
|
94
|
+
- This tool bypasses safety mechanisms intentionally built into the Claude CLI
|
|
95
|
+
- The `--dangerously-skip-permissions` flag was designed for use in container environments
|
|
96
|
+
- By using this tool, you acknowledge that:
|
|
97
|
+
- Important safety checks are being bypassed
|
|
98
|
+
- Claude may access files it normally would not have permission to access
|
|
99
|
+
- You accept full responsibility for any security implications
|
|
100
|
+
|
|
101
|
+
Anthropic designed these safety checks for good reason. Only use claude-yolo if you fully understand and accept these risks.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "claude-yolo",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.6.0",
|
|
4
4
|
"description": "YOLO wrapper for Claude CLI with danger mode always enabled, auto-updates, and colorful loading messages",
|
|
5
5
|
"bin": {
|
|
6
6
|
"claude-yolo": "./bin/claude-yolo.js"
|
|
@@ -8,5 +8,28 @@
|
|
|
8
8
|
"dependencies": {
|
|
9
9
|
"@anthropic-ai/claude-code": "0.2.14"
|
|
10
10
|
},
|
|
11
|
-
"type": "module"
|
|
12
|
-
|
|
11
|
+
"type": "module",
|
|
12
|
+
"scripts": {
|
|
13
|
+
"postinstall": "node postinstall.js"
|
|
14
|
+
},
|
|
15
|
+
"repository": {
|
|
16
|
+
"type": "git",
|
|
17
|
+
"url": "git+https://github.com/eastlondoner/claude-yolo.git"
|
|
18
|
+
},
|
|
19
|
+
"keywords": [
|
|
20
|
+
"claude",
|
|
21
|
+
"cli",
|
|
22
|
+
"anthropic",
|
|
23
|
+
"wrapper",
|
|
24
|
+
"yolo"
|
|
25
|
+
],
|
|
26
|
+
"author": "eastlondoner",
|
|
27
|
+
"license": "MIT",
|
|
28
|
+
"bugs": {
|
|
29
|
+
"url": "https://github.com/eastlondoner/claude-yolo/issues"
|
|
30
|
+
},
|
|
31
|
+
"homepage": "https://github.com/eastlondoner/claude-yolo#readme",
|
|
32
|
+
"engines": {
|
|
33
|
+
"node": ">=14.16"
|
|
34
|
+
}
|
|
35
|
+
}
|
package/postinstall.js
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
import readline from 'readline';
|
|
4
|
+
|
|
5
|
+
// ANSI color codes
|
|
6
|
+
const RED = '\x1b[31m';
|
|
7
|
+
const YELLOW = '\x1b[33m';
|
|
8
|
+
const CYAN = '\x1b[36m';
|
|
9
|
+
const RESET = '\x1b[0m';
|
|
10
|
+
const BOLD = '\x1b[1m';
|
|
11
|
+
|
|
12
|
+
// Create readline interface for user input
|
|
13
|
+
const rl = readline.createInterface({
|
|
14
|
+
input: process.stdin,
|
|
15
|
+
output: process.stdout
|
|
16
|
+
});
|
|
17
|
+
|
|
18
|
+
console.log(`\n${BOLD}${YELLOW}🔥 CLAUDE-YOLO INSTALLATION CONSENT REQUIRED 🔥${RESET}\n`);
|
|
19
|
+
console.log(`${CYAN}----------------------------------------${RESET}`);
|
|
20
|
+
console.log(`${BOLD}What is claude-yolo?${RESET}`);
|
|
21
|
+
console.log(`This package creates a wrapper around the official Claude CLI tool that:`);
|
|
22
|
+
console.log(` 1. ${RED}BYPASSES safety checks${RESET} by automatically adding the --dangerously-skip-permissions flag`);
|
|
23
|
+
console.log(` 2. Automatically updates to the latest Claude CLI version`);
|
|
24
|
+
console.log(` 3. Adds colorful YOLO-themed loading messages\n`);
|
|
25
|
+
|
|
26
|
+
console.log(`${BOLD}${RED}⚠️ IMPORTANT SECURITY WARNING ⚠️${RESET}`);
|
|
27
|
+
console.log(`The ${BOLD}--dangerously-skip-permissions${RESET} flag was designed for use in containers`);
|
|
28
|
+
console.log(`and bypasses important safety checks. This includes ignoring file access`);
|
|
29
|
+
console.log(`permissions that protect your system and privacy.\n`);
|
|
30
|
+
|
|
31
|
+
console.log(`${BOLD}By using claude-yolo:${RESET}`);
|
|
32
|
+
console.log(` • You acknowledge these safety checks are being bypassed`);
|
|
33
|
+
console.log(` • You understand this may allow Claude CLI to access sensitive files`);
|
|
34
|
+
console.log(` • You accept full responsibility for any security implications\n`);
|
|
35
|
+
|
|
36
|
+
console.log(`${CYAN}----------------------------------------${RESET}\n`);
|
|
37
|
+
|
|
38
|
+
// Ask for explicit consent
|
|
39
|
+
rl.question(`${YELLOW}Do you consent to installing claude-yolo with these modifications? (yes/no): ${RESET}`, (answer) => {
|
|
40
|
+
const lowerAnswer = answer.toLowerCase().trim();
|
|
41
|
+
|
|
42
|
+
if (lowerAnswer === 'yes' || lowerAnswer === 'y') {
|
|
43
|
+
console.log(`\n${YELLOW}🔥 YOLO MODE INSTALLATION APPROVED 🔥${RESET}`);
|
|
44
|
+
console.log(`Installation will continue. Use 'claude-yolo' instead of 'claude' to run in YOLO mode.`);
|
|
45
|
+
process.exit(0); // Success exit code
|
|
46
|
+
} else {
|
|
47
|
+
console.log(`\n${CYAN}Installation cancelled by user.${RESET}`);
|
|
48
|
+
console.log(`If you want the official Claude CLI with normal safety features, run:`);
|
|
49
|
+
console.log(`npm install -g @anthropic-ai/claude-code`);
|
|
50
|
+
process.exit(1); // Error exit code to abort installation
|
|
51
|
+
}
|
|
52
|
+
});
|