@haven_ai/connect 0.2.1-alpha.0 → 0.3.0-alpha.0

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.d.cts CHANGED
@@ -170,10 +170,8 @@ interface AgentIdentity {
170
170
  id: string;
171
171
  name: string;
172
172
  status: string;
173
- /** @deprecated #2908 — same value as `account_address`; the server drops it at #2914. */
174
- safe_address: string | null;
175
- /** #2908 — the account-vocabulary twin (not emitted by every server yet; read first, never required). */
176
- account_address?: string | null;
173
+ /** The Haven account (smart account) address. The server emits this ONLY as of #2914 — `safe_address` is retired. */
174
+ account_address: string | null;
177
175
  delegate_address: string | null;
178
176
  chain_id: number | null;
179
177
  execution_rail: 'legacy' | 'delegation' | string;
@@ -738,7 +736,7 @@ type WiringCollisionResolution = {
738
736
  action: 'abort';
739
737
  };
740
738
 
741
- declare const CONNECTOR_VERSION = "0.2.1-alpha.0";
739
+ declare const CONNECTOR_VERSION = "0.3.0-alpha.0";
742
740
  interface ConnectOptions {
743
741
  setupToken: string;
744
742
  apiBaseUrl: string;
@@ -1138,11 +1136,11 @@ declare function isConnectError(err: unknown): err is ConnectError;
1138
1136
 
1139
1137
  declare const MCP_RUNTIME_MANIFEST: {
1140
1138
  readonly mcpPackage: "@haven_ai/mcp";
1141
- readonly mcpVersion: "0.2.1-alpha.0";
1139
+ readonly mcpVersion: "0.3.0-alpha.0";
1142
1140
  readonly sdkPackage: "@haven_ai/sdk";
1143
- readonly sdkVersion: "0.2.1-alpha.0";
1141
+ readonly sdkVersion: "0.3.0-alpha.0";
1144
1142
  readonly signerPackage: "@haven_ai/signer";
1145
- readonly signerVersion: "0.2.1-alpha.0";
1143
+ readonly signerVersion: "0.3.0-alpha.0";
1146
1144
  readonly minimumNodeVersion: "22.0.0";
1147
1145
  readonly supportedClients: readonly ["codex-cli", "codex-desktop", "claude-code"];
1148
1146
  readonly requiredTools: readonly string[];
package/dist/index.d.ts CHANGED
@@ -170,10 +170,8 @@ interface AgentIdentity {
170
170
  id: string;
171
171
  name: string;
172
172
  status: string;
173
- /** @deprecated #2908 — same value as `account_address`; the server drops it at #2914. */
174
- safe_address: string | null;
175
- /** #2908 — the account-vocabulary twin (not emitted by every server yet; read first, never required). */
176
- account_address?: string | null;
173
+ /** The Haven account (smart account) address. The server emits this ONLY as of #2914 — `safe_address` is retired. */
174
+ account_address: string | null;
177
175
  delegate_address: string | null;
178
176
  chain_id: number | null;
179
177
  execution_rail: 'legacy' | 'delegation' | string;
@@ -738,7 +736,7 @@ type WiringCollisionResolution = {
738
736
  action: 'abort';
739
737
  };
740
738
 
741
- declare const CONNECTOR_VERSION = "0.2.1-alpha.0";
739
+ declare const CONNECTOR_VERSION = "0.3.0-alpha.0";
742
740
  interface ConnectOptions {
743
741
  setupToken: string;
744
742
  apiBaseUrl: string;
@@ -1138,11 +1136,11 @@ declare function isConnectError(err: unknown): err is ConnectError;
1138
1136
 
1139
1137
  declare const MCP_RUNTIME_MANIFEST: {
1140
1138
  readonly mcpPackage: "@haven_ai/mcp";
1141
- readonly mcpVersion: "0.2.1-alpha.0";
1139
+ readonly mcpVersion: "0.3.0-alpha.0";
1142
1140
  readonly sdkPackage: "@haven_ai/sdk";
1143
- readonly sdkVersion: "0.2.1-alpha.0";
1141
+ readonly sdkVersion: "0.3.0-alpha.0";
1144
1142
  readonly signerPackage: "@haven_ai/signer";
1145
- readonly signerVersion: "0.2.1-alpha.0";
1143
+ readonly signerVersion: "0.3.0-alpha.0";
1146
1144
  readonly minimumNodeVersion: "22.0.0";
1147
1145
  readonly supportedClients: readonly ["codex-cli", "codex-desktop", "claude-code"];
1148
1146
  readonly requiredTools: readonly string[];
package/dist/index.js CHANGED
@@ -549,9 +549,9 @@ var init_runtime_manifest = __esm({
549
549
  mcpPackage: "@haven_ai/mcp",
550
550
  mcpVersion: MCP_VERSION,
551
551
  sdkPackage: "@haven_ai/sdk",
552
- sdkVersion: "0.2.1-alpha.0",
552
+ sdkVersion: "0.3.0-alpha.0",
553
553
  signerPackage: "@haven_ai/signer",
554
- signerVersion: "0.2.1-alpha.0",
554
+ signerVersion: "0.3.0-alpha.0",
555
555
  // Sourced from the SDK, never a literal (#1161). This field read '20.0.0'
556
556
  // while every package's `engines` said `>=24` and the docs said `>=24.0.0`,
557
557
  // so the guard that was supposed to enforce the floor waved Node v23 through
@@ -1439,7 +1439,7 @@ async function buildLocalMcpConsentInput(identityPath, signerPath) {
1439
1439
  apiKey: credentials.apiKey,
1440
1440
  apiUrl: credentials.apiUrl,
1441
1441
  agentId: credentials.agentId,
1442
- safeAddress: credentials.accountAddress ?? credentials.safeAddress,
1442
+ accountAddress: credentials.accountAddress,
1443
1443
  delegateAddress: credentials.delegateAddress,
1444
1444
  chainId: credentials.chainId,
1445
1445
  allowanceSummary: credentials.allowanceSummary
@@ -2481,7 +2481,7 @@ async function buildSignerConsentInput(signerPath) {
2481
2481
  });
2482
2482
  return {
2483
2483
  delegateAddress: signer.delegateAddress,
2484
- safeAddress: credentials.accountAddress ?? credentials.safeAddress,
2484
+ accountAddress: credentials.accountAddress,
2485
2485
  agentId: credentials.agentId,
2486
2486
  chainId: credentials.chainId,
2487
2487
  network: credentials.network,
@@ -3319,9 +3319,10 @@ async function finishRekey(options, deps = {}) {
3319
3319
  apiKey: options.newApiKey,
3320
3320
  delegateKey: pending.new_delegate_key,
3321
3321
  delegateAddress: pending.new_delegate_address,
3322
- // #2908: the stored value (already new-name-first) wins; the hosted
3323
- // identity's `account_address` twin before its deprecated `safe_address`.
3324
- accountAddress: stored.accountAddress ?? identity.account_address ?? identity.safe_address ?? void 0,
3322
+ // The stored value (already new-name-first, from the credential-FILE
3323
+ // permanent fallback) wins; the hosted identity's `account_address` is a
3324
+ // LIVE server read, which as of #2914 emits only that name.
3325
+ accountAddress: stored.accountAddress ?? identity.account_address ?? void 0,
3325
3326
  chainId: stored.chainId ?? identity.chain_id ?? void 0,
3326
3327
  network: stored.network,
3327
3328
  agentBudget: stored.agentBudget,
@@ -4420,7 +4421,7 @@ async function pathExists2(path) {
4420
4421
  init_unwire();
4421
4422
  init_local_mcp_runtime();
4422
4423
  init_runtime_manifest();
4423
- var CONNECTOR_VERSION = "0.2.1-alpha.0";
4424
+ var CONNECTOR_VERSION = "0.3.0-alpha.0";
4424
4425
  var CONNECT_OUTCOME_SCHEMA_VERSION = 1;
4425
4426
  var failureOutcomesByError = /* @__PURE__ */ new WeakMap();
4426
4427
  function failureOutcomeFor(runtimeHint, error) {