svamp-cli 0.1.66 → 0.1.67
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/cli.mjs
CHANGED
|
@@ -127,7 +127,7 @@ async function main() {
|
|
|
127
127
|
} else if (!subcommand || subcommand === "start") {
|
|
128
128
|
await handleInteractiveCommand();
|
|
129
129
|
} else if (subcommand === "--version" || subcommand === "-v") {
|
|
130
|
-
const pkg = await import('./package-
|
|
130
|
+
const pkg = await import('./package-BeHXZuag.mjs').catch(() => ({ default: { version: "unknown" } }));
|
|
131
131
|
console.log(`svamp version: ${pkg.default.version}`);
|
|
132
132
|
} else {
|
|
133
133
|
console.error(`Unknown command: ${subcommand}`);
|
|
@@ -1081,9 +1081,13 @@ function printHelp() {
|
|
|
1081
1081
|
console.log(`
|
|
1082
1082
|
svamp \u2014 AI workspace on Hypha Cloud
|
|
1083
1083
|
|
|
1084
|
-
Quick start \u2014 spawn an agent to do a task:
|
|
1084
|
+
Quick start \u2014 spawn an agent to do a task (use -p bypassPermissions to run autonomously):
|
|
1085
1085
|
svamp session spawn claude -d ./project -p bypassPermissions --message "fix tests" --wait
|
|
1086
1086
|
|
|
1087
|
+
Note: without -p bypassPermissions the agent PAUSES waiting for human approval of each
|
|
1088
|
+
tool use. This will cause it to hang in automated/agent contexts. Use bypassPermissions
|
|
1089
|
+
for autonomous work, or "default" only when a human is actively watching.
|
|
1090
|
+
|
|
1087
1091
|
Commands:
|
|
1088
1092
|
svamp Start interactive Claude session (synced to cloud)
|
|
1089
1093
|
svamp login [url] Login to Hypha (opens browser, stores token)
|
|
@@ -1210,14 +1214,15 @@ SPAWN OPTIONS:
|
|
|
1210
1214
|
--parent <sessionId> Set parent session (auto-set from SVAMP_SESSION_ID env)
|
|
1211
1215
|
|
|
1212
1216
|
PERMISSION MODES:
|
|
1213
|
-
default Agent
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1217
|
+
default \u26A0 Agent PAUSES and waits for human approval before each tool use.
|
|
1218
|
+
The agent will be stuck (exit code 2) until you run approve/deny.
|
|
1219
|
+
DO NOT use default mode in automated pipelines \u2014 the agent will hang.
|
|
1220
|
+
acceptEdits Auto-approve file edits. Still pauses for bash & dangerous tools.
|
|
1221
|
+
bypassPermissions Auto-approve everything. No prompts, no pauses. Fully autonomous.
|
|
1222
|
+
Use this for automation, CI, or when spawning from another agent.
|
|
1218
1223
|
|
|
1219
|
-
|
|
1220
|
-
|
|
1224
|
+
\u26A1 For agents/scripts: ALWAYS pass -p bypassPermissions unless you have a human
|
|
1225
|
+
monitoring the session who can approve/deny tool requests in real time.
|
|
1221
1226
|
|
|
1222
1227
|
PERMISSION WORKFLOW (only relevant for "default" and "acceptEdits" modes):
|
|
1223
1228
|
1. svamp session wait <id> --json \u2192 exit code 2 means permission pending
|