@haven_ai/cli 0.0.0-dev.202610151444.5ef2d94 → 0.0.0-dev.202610190810.dd27f95

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
@@ -174,9 +174,9 @@ function helpText() {
174
174
  "Budgets (construct-and-hand-off \u2014 the CLI never signs, #2539):",
175
175
  " budget grant <agentId> --amount <n> --token USDC --period <minutes>",
176
176
  " [--recipient <address>] [--expires <unix-s>] [--wait]",
177
- " Prints a signing link; the human signs in the dashboard.",
177
+ " Prints an approval link; the human approves in the dashboard.",
178
178
  " budget revoke <agentId> <delegationHash> [--wait]",
179
- " Prints a revocation link; the human signs in the dashboard.",
179
+ " Prints a revocation link; the human approves in the dashboard.",
180
180
  "",
181
181
  "Options:",
182
182
  " --json One JSON value on stdout, prose on stderr, on every",
@@ -3152,7 +3152,7 @@ async function checkTextForSecrets(text, deps) {
3152
3152
 
3153
3153
  // src/commands.ts
3154
3154
  var DEFAULT_API = "https://havenbackend-production-8a00.up.railway.app";
3155
- var CLI_VERSION = "0.0.0-dev.202610151444.5ef2d94";
3155
+ var CLI_VERSION = "0.0.0-dev.202610190810.dd27f95";
3156
3156
  var CLI_CLIENT_IDENTITY = `@haven_ai/cli/${CLI_VERSION}`;
3157
3157
  function accountAddressOf(s) {
3158
3158
  return s.account_address ?? "";
@@ -3681,10 +3681,10 @@ async function cmdBudgetGrant(args, d) {
3681
3681
  () => [
3682
3682
  `Budget of ${args.flags.amount} ${token.symbol} per ${args.flags.period} minutes built for agent ${id}.`,
3683
3683
  args.flags.recipient ? `Recipient pin: ${args.flags.recipient}` : null,
3684
- "Open this link and sign \u2014 the budget goes live the moment you do:",
3684
+ "Open this link and approve \u2014 the budget goes live the moment you do:",
3685
3685
  built.signing_url,
3686
3686
  `Delegation: ${built.delegation_hash} (version ${built.version})`,
3687
- status === "active" ? "Signed and active." : "Waiting for your signature. Run the same command with --wait to poll until it is active."
3687
+ status === "active" ? "Approved and active." : "Waiting for your approval. Run the same command with --wait to poll until it is active."
3688
3688
  ].filter((line) => line !== null).join("\n")
3689
3689
  );
3690
3690
  emitGrant();
@@ -3700,13 +3700,13 @@ async function cmdBudgetGrant(args, d) {
3700
3700
  }
3701
3701
  if (mine?.status === "revoked" || mine?.status === "replaced") {
3702
3702
  throw new HavenCliError(
3703
- `Delegation ${built.delegation_hash} is now ${mine.status} without being signed.`,
3703
+ `Delegation ${built.delegation_hash} is now ${mine.status} without being approved.`,
3704
3704
  EXIT.refused
3705
3705
  );
3706
3706
  }
3707
3707
  }
3708
3708
  throw new HavenCliError(
3709
- `Timed out waiting for delegation ${built.delegation_hash} to go active (${BUDGET_WAIT_TIMEOUT_S / 60} minutes). The signing link stays valid until it expires \u2014 sign it, or rerun with --wait.`,
3709
+ `Timed out waiting for delegation ${built.delegation_hash} to go active (${BUDGET_WAIT_TIMEOUT_S / 60} minutes). The approval link stays valid until it expires \u2014 approve it, or rerun with --wait.`,
3710
3710
  EXIT.failed
3711
3711
  );
3712
3712
  }
@@ -3738,11 +3738,11 @@ async function cmdBudgetRevoke(args, d) {
3738
3738
  args.flags.json,
3739
3739
  { agent_id: id, delegation_hash: hash, status, ...prepared },
3740
3740
  () => [
3741
- "Revocation prepared \u2014 one signature, sponsored (no gas).",
3742
- "Open this link and sign to stop this budget:",
3741
+ "Revocation prepared \u2014 one approval, sponsored (no gas).",
3742
+ "Open this link and approve to stop this budget:",
3743
3743
  revokeUrl,
3744
3744
  `Delegation: ${hash}`,
3745
- status === "revoked" ? "Revoked." : "The budget keeps working until you sign. Run the same command with --wait to poll until it is revoked."
3745
+ status === "revoked" ? "Revoked." : "The budget keeps working until you approve. Run the same command with --wait to poll until it is revoked."
3746
3746
  ].filter((line) => line !== null).join("\n")
3747
3747
  );
3748
3748
  emitRevoke("pending_revoke");
@@ -3758,7 +3758,7 @@ async function cmdBudgetRevoke(args, d) {
3758
3758
  }
3759
3759
  }
3760
3760
  throw new HavenCliError(
3761
- `Timed out waiting for delegation ${hash} to be revoked (${BUDGET_WAIT_TIMEOUT_S / 60} minutes). The link stays valid \u2014 sign it, or rerun with --wait.`,
3761
+ `Timed out waiting for delegation ${hash} to be revoked (${BUDGET_WAIT_TIMEOUT_S / 60} minutes). The link stays valid \u2014 approve it, or rerun with --wait.`,
3762
3762
  EXIT.failed
3763
3763
  );
3764
3764
  }