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