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