svamp-cli 0.2.39 → 0.2.40

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
@@ -299,7 +299,7 @@ async function main() {
299
299
  } else if (!subcommand || subcommand === "start") {
300
300
  await handleInteractiveCommand();
301
301
  } else if (subcommand === "--version" || subcommand === "-v") {
302
- const pkg = await import('./package-CPiu8-uW.mjs').catch(() => ({ default: { version: "unknown" } }));
302
+ const pkg = await import('./package-DwO5YX9e.mjs').catch(() => ({ default: { version: "unknown" } }));
303
303
  console.log(`svamp version: ${pkg.default.version}`);
304
304
  } else {
305
305
  console.error(`Unknown command: ${subcommand}`);
@@ -1392,6 +1392,27 @@ async function applyClaudeAuthFlags(argv) {
1392
1392
  async function handleDaemonAuthCommand(argv) {
1393
1393
  const sub = (argv[0] || "status").toLowerCase();
1394
1394
  const mod = await import('./run-CRwkPQDW.mjs').then(function (n) { return n.k; });
1395
+ if (sub === "--help" || sub === "-h" || sub === "help") {
1396
+ console.log(`
1397
+ svamp daemon auth \u2014 Configure how Claude subprocesses authenticate
1398
+
1399
+ Subcommands:
1400
+ svamp daemon auth Show current mode + base URL + redacted API key
1401
+ svamp daemon auth use-hypha-proxy Route Claude through the Hypha LLM proxy
1402
+ (https://proxy.hypha.aicell.io) using HYPHA_TOKEN.
1403
+ Token is resolved live at each spawn, so a
1404
+ \`svamp login\` refresh takes effect immediately.
1405
+ svamp daemon auth use-login Use ~/.claude credentials written by \`claude login\`.
1406
+ Removes managed ANTHROPIC_BASE_URL / ANTHROPIC_API_KEY.
1407
+ svamp daemon auth set <URL> <KEY> Use a custom Anthropic gateway. URL must NOT end
1408
+ in /v1 (the SDK appends it automatically).
1409
+
1410
+ All mutations are persisted to ~/.svamp/.env. Run \`svamp daemon restart\` afterwards
1411
+ (or use the equivalent flags on \`svamp daemon start/restart\` to configure + restart in
1412
+ one step: --use-hypha-proxy / --use-claude-login / --anthropic-base-url URL --anthropic-api-key KEY).
1413
+ `);
1414
+ return;
1415
+ }
1395
1416
  if (sub === "status" || sub === "show") {
1396
1417
  const s = mod.getClaudeAuthStatus();
1397
1418
  console.log(`Claude auth mode: ${s.mode}`);
@@ -1,5 +1,5 @@
1
1
  var name = "svamp-cli";
2
- var version = "0.2.39";
2
+ var version = "0.2.40";
3
3
  var description = "Svamp CLI — AI workspace daemon on Hypha Cloud";
4
4
  var author = "Amun AI AB";
5
5
  var license = "SEE LICENSE IN LICENSE";
@@ -29,7 +29,7 @@ var scripts = {
29
29
  var dependencies = {
30
30
  "@agentclientprotocol/sdk": "^0.14.1",
31
31
  "@modelcontextprotocol/sdk": "^1.25.3",
32
- "hypha-rpc": "0.21.36",
32
+ "hypha-rpc": "0.21.40",
33
33
  "node-pty": "1.2.0-beta.11",
34
34
  ws: "^8.18.0",
35
35
  yaml: "^2.8.2",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "svamp-cli",
3
- "version": "0.2.39",
3
+ "version": "0.2.40",
4
4
  "description": "Svamp CLI — AI workspace daemon on Hypha Cloud",
5
5
  "author": "Amun AI AB",
6
6
  "license": "SEE LICENSE IN LICENSE",
@@ -30,7 +30,7 @@
30
30
  "dependencies": {
31
31
  "@agentclientprotocol/sdk": "^0.14.1",
32
32
  "@modelcontextprotocol/sdk": "^1.25.3",
33
- "hypha-rpc": "0.21.36",
33
+ "hypha-rpc": "0.21.40",
34
34
  "node-pty": "1.2.0-beta.11",
35
35
  "ws": "^8.18.0",
36
36
  "yaml": "^2.8.2",