@haven_ai/cli 0.0.0-dev.202609060850.63aab73 → 0.0.0-dev.202609060949.092c4e4

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.cjs CHANGED
@@ -96,12 +96,18 @@ function helpText() {
96
96
  "Usage: haven <command> [subcommand] [options]",
97
97
  "",
98
98
  "Auth:",
99
- " login [--email <e>] Sign in (password via prompt or HAVEN_PASSWORD)",
99
+ " login Sign in. Opens a browser device-code approval by default \u2014",
100
+ " it prints a code and a link, and never asks for a password",
101
+ " login --email <e> Password path instead (prompt, or HAVEN_PASSWORD)",
100
102
  " logout Clear the saved session",
101
103
  " whoami Show the signed-in user, session expiry and API URL",
102
104
  "",
103
105
  "For agents:",
104
106
  " guide Print the agent onboarding runbook (same text as /for-agents.md)",
107
+ " agents connect --name <n> --budget <amount> --token USDC --period <minutes>",
108
+ " Create a connection setup; prints the connector command and",
109
+ " the approval link for your human. --run executes it here.",
110
+ " agents connect --status <setupId> [--wait] Read one setup's status",
105
111
  "",
106
112
  "Read:",
107
113
  " wallets list List your Haven wallets",
@@ -120,18 +126,22 @@ function helpText() {
120
126
  " contacts list List your address book",
121
127
  "",
122
128
  "Manage (backend-only \u2014 no on-chain signing):",
123
- " agents pause|resume <id>",
129
+ " agents pause <id> Stop the agent spending; keeps its budget",
130
+ " agents resume <id> Let it spend again",
124
131
  " agents revoke <id> --yes Permanently revoke an agent",
125
132
  " agents rotate-key <id> Issue a new API key (shown once)",
126
133
  " agents rename <id> <name>",
127
134
  " wallets rename <id> <name>",
128
- " contacts add <name> <address> | contacts remove <id>",
135
+ " contacts add <name> <address> Save an address under a name",
136
+ " contacts remove <id> Forget one",
129
137
  "",
130
138
  "Options:",
131
139
  " --json One JSON value on stdout, prose on stderr, on every",
132
140
  " command including refusals: { ok: false, error: { code, message, hint? } }",
133
141
  " --yes, -y Skip the confirmation prompt for destructive actions",
134
- " --api <url> Backend URL (default: HAVEN_API_URL or http://localhost:3001)",
142
+ " --api <url> Backend URL. Default: HAVEN_API_URL, else Haven's hosted",
143
+ " production backend \u2014 NOT localhost. On any other",
144
+ " deployment an omitted flag connects to production.",
135
145
  " --help, --version",
136
146
  "",
137
147
  "Exit codes: 0 ok \xB7 1 failed \xB7 2 usage \xB7 3 not authenticated \xB7 4 refused \xB7 5 network",
@@ -559,7 +569,7 @@ async function runConnector(connectorCommand, spawner, onStderr) {
559
569
 
560
570
  // src/commands.ts
561
571
  var DEFAULT_API = "https://havenbackend-production-8a00.up.railway.app";
562
- var CLI_VERSION = "0.0.0-dev.202609060850.63aab73";
572
+ var CLI_VERSION = "0.0.0-dev.202609060949.092c4e4";
563
573
  async function run(argv, deps = {}) {
564
574
  const out = deps.out ?? ((l) => process.stdout.write(`${l}
565
575
  `));