claudish 4.0.2 → 4.0.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/dist/index.js +17 -11
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -30760,7 +30760,9 @@ async function findClaudeBinary() {
|
|
|
30760
30760
|
"/opt/homebrew/bin/claude",
|
|
30761
30761
|
join4(home, ".npm-global/bin/claude"),
|
|
30762
30762
|
join4(home, ".local/bin/claude"),
|
|
30763
|
-
join4(home, "node_modules/.bin/claude")
|
|
30763
|
+
join4(home, "node_modules/.bin/claude"),
|
|
30764
|
+
"/data/data/com.termux/files/usr/bin/claude",
|
|
30765
|
+
join4(home, "../usr/bin/claude")
|
|
30764
30766
|
];
|
|
30765
30767
|
for (const path of commonPaths) {
|
|
30766
30768
|
if (existsSync4(path)) {
|
|
@@ -30769,8 +30771,8 @@ async function findClaudeBinary() {
|
|
|
30769
30771
|
}
|
|
30770
30772
|
}
|
|
30771
30773
|
try {
|
|
30772
|
-
const
|
|
30773
|
-
const proc = spawn(
|
|
30774
|
+
const shellCommand = isWindows2 ? "where claude" : "command -v claude";
|
|
30775
|
+
const proc = spawn(shellCommand, [], {
|
|
30774
30776
|
stdio: "pipe",
|
|
30775
30777
|
shell: true
|
|
30776
30778
|
});
|
|
@@ -31867,7 +31869,7 @@ function getVersion() {
|
|
|
31867
31869
|
async function parseArgs(args) {
|
|
31868
31870
|
const config3 = {
|
|
31869
31871
|
model: undefined,
|
|
31870
|
-
autoApprove:
|
|
31872
|
+
autoApprove: false,
|
|
31871
31873
|
dangerous: false,
|
|
31872
31874
|
interactive: false,
|
|
31873
31875
|
debug: false,
|
|
@@ -31940,6 +31942,8 @@ async function parseArgs(args) {
|
|
|
31940
31942
|
process.exit(1);
|
|
31941
31943
|
}
|
|
31942
31944
|
config3.port = port;
|
|
31945
|
+
} else if (arg === "--auto-approve" || arg === "-y") {
|
|
31946
|
+
config3.autoApprove = true;
|
|
31943
31947
|
} else if (arg === "--no-auto-approve") {
|
|
31944
31948
|
config3.autoApprove = false;
|
|
31945
31949
|
} else if (arg === "--dangerous") {
|
|
@@ -32609,7 +32613,8 @@ OPTIONS:
|
|
|
32609
32613
|
--stdin Read prompt from stdin (useful for large prompts or piping)
|
|
32610
32614
|
--free Show only FREE models in the interactive selector
|
|
32611
32615
|
--monitor Monitor mode - proxy to REAL Anthropic API and log all traffic
|
|
32612
|
-
--
|
|
32616
|
+
-y, --auto-approve Skip permission prompts (--dangerously-skip-permissions)
|
|
32617
|
+
--no-auto-approve Explicitly enable permission prompts (default)
|
|
32613
32618
|
--dangerous Pass --dangerouslyDisableSandbox to Claude Code
|
|
32614
32619
|
--cost-tracker Enable cost tracking for API usage (NB!)
|
|
32615
32620
|
--audit-costs Show cost analysis report
|
|
@@ -32651,8 +32656,8 @@ MODES:
|
|
|
32651
32656
|
• Single-shot mode: Runs one task in headless mode and exits (requires --model)
|
|
32652
32657
|
|
|
32653
32658
|
NOTES:
|
|
32654
|
-
• Permission prompts are
|
|
32655
|
-
• Use --
|
|
32659
|
+
• Permission prompts are ENABLED by default (normal Claude Code behavior)
|
|
32660
|
+
• Use -y or --auto-approve to skip permission prompts
|
|
32656
32661
|
• Model selector appears ONLY in interactive mode when --model not specified
|
|
32657
32662
|
• Use --dangerous to disable sandbox (use with extreme caution!)
|
|
32658
32663
|
|
|
@@ -32772,14 +32777,15 @@ EXAMPLES:
|
|
|
32772
32777
|
# Monitor mode - understand how Claude Code works
|
|
32773
32778
|
claudish --monitor --debug "analyze code structure"
|
|
32774
32779
|
|
|
32775
|
-
#
|
|
32776
|
-
claudish
|
|
32780
|
+
# Skip permission prompts (auto-approve)
|
|
32781
|
+
claudish -y "make changes to config"
|
|
32782
|
+
claudish --auto-approve "refactor the function"
|
|
32777
32783
|
|
|
32778
32784
|
# Dangerous mode (disable sandbox - use with extreme caution)
|
|
32779
32785
|
claudish --dangerous "refactor entire codebase"
|
|
32780
32786
|
|
|
32781
|
-
# Both flags (fully autonomous)
|
|
32782
|
-
claudish --dangerous "refactor entire codebase"
|
|
32787
|
+
# Both flags (fully autonomous - no prompts, no sandbox)
|
|
32788
|
+
claudish -y --dangerous "refactor entire codebase"
|
|
32783
32789
|
|
|
32784
32790
|
# With custom port
|
|
32785
32791
|
claudish --port 3000 "analyze code structure"
|