claudish 4.0.3 → 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 +12 -8
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -31869,7 +31869,7 @@ function getVersion() {
|
|
|
31869
31869
|
async function parseArgs(args) {
|
|
31870
31870
|
const config3 = {
|
|
31871
31871
|
model: undefined,
|
|
31872
|
-
autoApprove:
|
|
31872
|
+
autoApprove: false,
|
|
31873
31873
|
dangerous: false,
|
|
31874
31874
|
interactive: false,
|
|
31875
31875
|
debug: false,
|
|
@@ -31942,6 +31942,8 @@ async function parseArgs(args) {
|
|
|
31942
31942
|
process.exit(1);
|
|
31943
31943
|
}
|
|
31944
31944
|
config3.port = port;
|
|
31945
|
+
} else if (arg === "--auto-approve" || arg === "-y") {
|
|
31946
|
+
config3.autoApprove = true;
|
|
31945
31947
|
} else if (arg === "--no-auto-approve") {
|
|
31946
31948
|
config3.autoApprove = false;
|
|
31947
31949
|
} else if (arg === "--dangerous") {
|
|
@@ -32611,7 +32613,8 @@ OPTIONS:
|
|
|
32611
32613
|
--stdin Read prompt from stdin (useful for large prompts or piping)
|
|
32612
32614
|
--free Show only FREE models in the interactive selector
|
|
32613
32615
|
--monitor Monitor mode - proxy to REAL Anthropic API and log all traffic
|
|
32614
|
-
--
|
|
32616
|
+
-y, --auto-approve Skip permission prompts (--dangerously-skip-permissions)
|
|
32617
|
+
--no-auto-approve Explicitly enable permission prompts (default)
|
|
32615
32618
|
--dangerous Pass --dangerouslyDisableSandbox to Claude Code
|
|
32616
32619
|
--cost-tracker Enable cost tracking for API usage (NB!)
|
|
32617
32620
|
--audit-costs Show cost analysis report
|
|
@@ -32653,8 +32656,8 @@ MODES:
|
|
|
32653
32656
|
• Single-shot mode: Runs one task in headless mode and exits (requires --model)
|
|
32654
32657
|
|
|
32655
32658
|
NOTES:
|
|
32656
|
-
• Permission prompts are
|
|
32657
|
-
• Use --
|
|
32659
|
+
• Permission prompts are ENABLED by default (normal Claude Code behavior)
|
|
32660
|
+
• Use -y or --auto-approve to skip permission prompts
|
|
32658
32661
|
• Model selector appears ONLY in interactive mode when --model not specified
|
|
32659
32662
|
• Use --dangerous to disable sandbox (use with extreme caution!)
|
|
32660
32663
|
|
|
@@ -32774,14 +32777,15 @@ EXAMPLES:
|
|
|
32774
32777
|
# Monitor mode - understand how Claude Code works
|
|
32775
32778
|
claudish --monitor --debug "analyze code structure"
|
|
32776
32779
|
|
|
32777
|
-
#
|
|
32778
|
-
claudish
|
|
32780
|
+
# Skip permission prompts (auto-approve)
|
|
32781
|
+
claudish -y "make changes to config"
|
|
32782
|
+
claudish --auto-approve "refactor the function"
|
|
32779
32783
|
|
|
32780
32784
|
# Dangerous mode (disable sandbox - use with extreme caution)
|
|
32781
32785
|
claudish --dangerous "refactor entire codebase"
|
|
32782
32786
|
|
|
32783
|
-
# Both flags (fully autonomous)
|
|
32784
|
-
claudish --dangerous "refactor entire codebase"
|
|
32787
|
+
# Both flags (fully autonomous - no prompts, no sandbox)
|
|
32788
|
+
claudish -y --dangerous "refactor entire codebase"
|
|
32785
32789
|
|
|
32786
32790
|
# With custom port
|
|
32787
32791
|
claudish --port 3000 "analyze code structure"
|