@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/cli.cjs CHANGED
@@ -253,9 +253,9 @@ var MCP_RUNTIME_MANIFEST = {
253
253
  mcpPackage: "@haven_ai/mcp",
254
254
  mcpVersion: mcp.MCP_VERSION,
255
255
  sdkPackage: "@haven_ai/sdk",
256
- sdkVersion: "0.1.23-alpha.1",
256
+ sdkVersion: "0.1.23-alpha.2",
257
257
  signerPackage: "@haven_ai/signer",
258
- signerVersion: "0.1.23-alpha.1",
258
+ signerVersion: "0.1.23-alpha.2",
259
259
  // Sourced from the SDK, never a literal (#1161). This field read '20.0.0'
260
260
  // while every package's `engines` said `>=24` and the docs said `>=24.0.0`,
261
261
  // so the guard that was supposed to enforce the floor waved Node v23 through
@@ -1954,7 +1954,7 @@ function localRuntimePrepareErrorCode(err) {
1954
1954
  }
1955
1955
 
1956
1956
  // src/runtime.ts
1957
- var CONNECTOR_VERSION = "0.1.23-alpha.1";
1957
+ var CONNECTOR_VERSION = "0.1.23-alpha.2";
1958
1958
  var CONNECT_OUTCOME_SCHEMA_VERSION = 1;
1959
1959
  async function runConnect(options, deps = {}) {
1960
1960
  assertSupportedNodeVersion(deps.nodeVersion, MCP_RUNTIME_MANIFEST.minimumNodeVersion);
@@ -2068,10 +2068,6 @@ async function runConnect(options, deps = {}) {
2068
2068
  } else {
2069
2069
  log("Haven setup on this machine is complete.");
2070
2070
  }
2071
- if (options.waitForApproval !== false && !runtimeInstall.errorCode) {
2072
- await waitForBudgetApproval(api, registration.setup_id, localApiKey, log, options.approvalWait);
2073
- }
2074
- printNextSteps(runtimeInstall, log);
2075
2071
  try {
2076
2072
  await api.updateInstallStatus(registration.setup_id, localApiKey, {
2077
2073
  runtime: runtimeInstall.runtime,
@@ -2094,6 +2090,10 @@ async function runConnect(options, deps = {}) {
2094
2090
  } catch (err) {
2095
2091
  log(`Could not report install status to Haven: ${err instanceof Error ? err.message : String(err)}`);
2096
2092
  }
2093
+ if (options.waitForApproval !== false && !runtimeInstall.errorCode) {
2094
+ await waitForBudgetApproval(api, registration.setup_id, localApiKey, log, options.approvalWait);
2095
+ }
2096
+ printNextSteps(runtimeInstall, log);
2097
2097
  return {
2098
2098
  setupId: registration.setup_id,
2099
2099
  agentId: registration.agent_id,