@haven_ai/connect 0.1.23-alpha.1 → 0.1.23-alpha.2

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
@@ -285,7 +285,7 @@ declare function runtimeInstallCapabilities(runtime: string | undefined, env?: N
285
285
  restartRequired: boolean;
286
286
  };
287
287
 
288
- declare const CONNECTOR_VERSION = "0.1.23-alpha.1";
288
+ declare const CONNECTOR_VERSION = "0.1.23-alpha.2";
289
289
  interface ConnectOptions {
290
290
  setupToken: string;
291
291
  apiBaseUrl: string;
@@ -402,11 +402,11 @@ declare function shortAddress(address: string): string;
402
402
 
403
403
  declare const MCP_RUNTIME_MANIFEST: {
404
404
  readonly mcpPackage: "@haven_ai/mcp";
405
- readonly mcpVersion: "0.1.23-alpha.1";
405
+ readonly mcpVersion: "0.1.23-alpha.2";
406
406
  readonly sdkPackage: "@haven_ai/sdk";
407
- readonly sdkVersion: "0.1.23-alpha.1";
407
+ readonly sdkVersion: "0.1.23-alpha.2";
408
408
  readonly signerPackage: "@haven_ai/signer";
409
- readonly signerVersion: "0.1.23-alpha.1";
409
+ readonly signerVersion: "0.1.23-alpha.2";
410
410
  readonly minimumNodeVersion: "22.0.0";
411
411
  readonly supportedClients: readonly ["codex-cli", "codex-desktop", "claude-code"];
412
412
  readonly requiredTools: readonly string[];
package/dist/index.d.ts CHANGED
@@ -285,7 +285,7 @@ declare function runtimeInstallCapabilities(runtime: string | undefined, env?: N
285
285
  restartRequired: boolean;
286
286
  };
287
287
 
288
- declare const CONNECTOR_VERSION = "0.1.23-alpha.1";
288
+ declare const CONNECTOR_VERSION = "0.1.23-alpha.2";
289
289
  interface ConnectOptions {
290
290
  setupToken: string;
291
291
  apiBaseUrl: string;
@@ -402,11 +402,11 @@ declare function shortAddress(address: string): string;
402
402
 
403
403
  declare const MCP_RUNTIME_MANIFEST: {
404
404
  readonly mcpPackage: "@haven_ai/mcp";
405
- readonly mcpVersion: "0.1.23-alpha.1";
405
+ readonly mcpVersion: "0.1.23-alpha.2";
406
406
  readonly sdkPackage: "@haven_ai/sdk";
407
- readonly sdkVersion: "0.1.23-alpha.1";
407
+ readonly sdkVersion: "0.1.23-alpha.2";
408
408
  readonly signerPackage: "@haven_ai/signer";
409
- readonly signerVersion: "0.1.23-alpha.1";
409
+ readonly signerVersion: "0.1.23-alpha.2";
410
410
  readonly minimumNodeVersion: "22.0.0";
411
411
  readonly supportedClients: readonly ["codex-cli", "codex-desktop", "claude-code"];
412
412
  readonly requiredTools: readonly string[];
package/dist/index.js CHANGED
@@ -245,9 +245,9 @@ var MCP_RUNTIME_MANIFEST = {
245
245
  mcpPackage: "@haven_ai/mcp",
246
246
  mcpVersion: MCP_VERSION,
247
247
  sdkPackage: "@haven_ai/sdk",
248
- sdkVersion: "0.1.23-alpha.1",
248
+ sdkVersion: "0.1.23-alpha.2",
249
249
  signerPackage: "@haven_ai/signer",
250
- signerVersion: "0.1.23-alpha.1",
250
+ signerVersion: "0.1.23-alpha.2",
251
251
  // Sourced from the SDK, never a literal (#1161). This field read '20.0.0'
252
252
  // while every package's `engines` said `>=24` and the docs said `>=24.0.0`,
253
253
  // so the guard that was supposed to enforce the floor waved Node v23 through
@@ -1946,7 +1946,7 @@ function localRuntimePrepareErrorCode(err) {
1946
1946
  }
1947
1947
 
1948
1948
  // src/runtime.ts
1949
- var CONNECTOR_VERSION = "0.1.23-alpha.1";
1949
+ var CONNECTOR_VERSION = "0.1.23-alpha.2";
1950
1950
  var CONNECT_OUTCOME_SCHEMA_VERSION = 1;
1951
1951
  async function runConnect(options, deps = {}) {
1952
1952
  assertSupportedNodeVersion(deps.nodeVersion, MCP_RUNTIME_MANIFEST.minimumNodeVersion);
@@ -2060,10 +2060,6 @@ async function runConnect(options, deps = {}) {
2060
2060
  } else {
2061
2061
  log("Haven setup on this machine is complete.");
2062
2062
  }
2063
- if (options.waitForApproval !== false && !runtimeInstall.errorCode) {
2064
- await waitForBudgetApproval(api, registration.setup_id, localApiKey, log, options.approvalWait);
2065
- }
2066
- printNextSteps(runtimeInstall, log);
2067
2063
  try {
2068
2064
  await api.updateInstallStatus(registration.setup_id, localApiKey, {
2069
2065
  runtime: runtimeInstall.runtime,
@@ -2086,6 +2082,10 @@ async function runConnect(options, deps = {}) {
2086
2082
  } catch (err) {
2087
2083
  log(`Could not report install status to Haven: ${err instanceof Error ? err.message : String(err)}`);
2088
2084
  }
2085
+ if (options.waitForApproval !== false && !runtimeInstall.errorCode) {
2086
+ await waitForBudgetApproval(api, registration.setup_id, localApiKey, log, options.approvalWait);
2087
+ }
2088
+ printNextSteps(runtimeInstall, log);
2089
2089
  return {
2090
2090
  setupId: registration.setup_id,
2091
2091
  agentId: registration.agent_id,