@haven_ai/connect 0.7.0-alpha.0 → 0.8.1-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.cjs CHANGED
@@ -619,9 +619,9 @@ var init_runtime_manifest = __esm({
619
619
  mcpPackage: "@haven_ai/mcp",
620
620
  mcpVersion: mcp.MCP_VERSION,
621
621
  sdkPackage: "@haven_ai/sdk",
622
- sdkVersion: "0.7.0-alpha.0",
622
+ sdkVersion: "0.8.1-alpha.0",
623
623
  signerPackage: "@haven_ai/signer",
624
- signerVersion: "0.7.0-alpha.0",
624
+ signerVersion: "0.8.1-alpha.0",
625
625
  // Sourced from the SDK, never a literal (#1161). This field read '20.0.0'
626
626
  // while every package's `engines` said `>=24` and the docs said `>=24.0.0`,
627
627
  // so the guard that was supposed to enforce the floor waved Node v23 through
@@ -4450,7 +4450,7 @@ var init_runtime = __esm({
4450
4450
  init_tombstone();
4451
4451
  init_local_mcp_runtime();
4452
4452
  init_runtime_manifest();
4453
- exports.CONNECTOR_VERSION = "0.7.0-alpha.0";
4453
+ exports.CONNECTOR_VERSION = "0.8.1-alpha.0";
4454
4454
  CONNECTOR_CLIENT_IDENTITY = `@haven_ai/connect/${exports.CONNECTOR_VERSION}`;
4455
4455
  exports.CONNECT_OUTCOME_SCHEMA_VERSION = 1;
4456
4456
  failureOutcomesByError = /* @__PURE__ */ new WeakMap();
@@ -4975,19 +4975,18 @@ async function discoverCredentialDirectory(homeDir, explicit) {
4975
4975
  const parkedOnly = [];
4976
4976
  for (const entry of entries) {
4977
4977
  const directory = path.join(root, entry);
4978
+ if (await pathExists3(path.join(directory, TOMBSTONE_FILENAME))) {
4979
+ tombstonedOnly.push(directory);
4980
+ continue;
4981
+ }
4978
4982
  try {
4979
4983
  const s = await promises.stat(path.join(directory, "identity.json"));
4980
4984
  candidates.push({ directory, mtimeMs: s.mtimeMs });
4981
4985
  } catch {
4982
4986
  try {
4983
- await promises.stat(path.join(directory, TOMBSTONE_FILENAME));
4984
- tombstonedOnly.push(directory);
4987
+ await promises.stat(path.join(directory, REKEY_PENDING_FILENAME));
4988
+ parkedOnly.push(directory);
4985
4989
  } catch {
4986
- try {
4987
- await promises.stat(path.join(directory, REKEY_PENDING_FILENAME));
4988
- parkedOnly.push(directory);
4989
- } catch {
4990
- }
4991
4990
  }
4992
4991
  }
4993
4992
  }