@haven_ai/connect 0.0.0-dev.202609050932.747d815 → 0.0.0-dev.202609051106.201fc90

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
@@ -536,9 +536,9 @@ var init_runtime_manifest = __esm({
536
536
  mcpPackage: "@haven_ai/mcp",
537
537
  mcpVersion: mcp.MCP_VERSION,
538
538
  sdkPackage: "@haven_ai/sdk",
539
- sdkVersion: "0.0.0-dev.202609050932.747d815",
539
+ sdkVersion: "0.0.0-dev.202609051106.201fc90",
540
540
  signerPackage: "@haven_ai/signer",
541
- signerVersion: "0.0.0-dev.202609050932.747d815",
541
+ signerVersion: "0.0.0-dev.202609051106.201fc90",
542
542
  // Sourced from the SDK, never a literal (#1161). This field read '20.0.0'
543
543
  // while every package's `engines` said `>=24` and the docs said `>=24.0.0`,
544
544
  // so the guard that was supposed to enforce the floor waved Node v23 through
@@ -904,7 +904,7 @@ async function writeJsonRuntimeConfig(input, target, serverRoot) {
904
904
  restartRequired: true,
905
905
  messages: unreadable ? [
906
906
  `Could not update ${configTargetLabel(input.runtime)}: ${err.message}.`,
907
- `Nothing was written to ${err.configPath}. Fix the JSON there (or move the file aside), then run \`${REPAIR_COMMAND_PREFIX} ${input.runtime}\` to write the Haven entries from the credentials already stored on this machine. Do not re-run the setup command: its token is already used.`
907
+ `Nothing was written to ${err.configPath}. Fix the JSON there (or move the file aside), then run \`${REPAIR_COMMAND_PREFIX} ${input.runtime}\` to write the Haven entries from the credentials already stored on this machine. Do not re-run the connector command: its setup token is already used.`
908
908
  ] : [`Could not update ${configTargetLabel(input.runtime)}: ${err instanceof Error ? err.message : String(err)}`],
909
909
  errorCode: unreadable ? "runtime_config_unreadable" : "runtime_config_write_failed"
910
910
  };
@@ -969,7 +969,7 @@ async function writeHermesConfig(input, deps) {
969
969
  restartRequired: true,
970
970
  messages: unreadable ? [
971
971
  `Could not update Hermes Agent config: ${err.message}.`,
972
- `Nothing was written to ${err.configPath}. Fix the YAML there (or move the file aside), then run \`${REPAIR_COMMAND_PREFIX} hermes\` to write the Haven entries from the credentials already stored on this machine. Do not re-run the setup command: its token is already used.`
972
+ `Nothing was written to ${err.configPath}. Fix the YAML there (or move the file aside), then run \`${REPAIR_COMMAND_PREFIX} hermes\` to write the Haven entries from the credentials already stored on this machine. Do not re-run the connector command: its setup token is already used.`
973
973
  ] : [recoveryIncomplete ? "Could not update Hermes Agent config. Recovery did not complete; inspect the Hermes configuration before retrying." : "Could not update Hermes Agent config. Existing configuration was left unchanged."],
974
974
  errorCode: unreadable ? "runtime_config_unreadable" : "runtime_config_write_failed"
975
975
  };
@@ -2718,7 +2718,7 @@ async function configureClaudeCode(deps, localMcpCommand, serverName) {
2718
2718
  restartRequired: true,
2719
2719
  messages: [
2720
2720
  `Could not update Claude Code MCP config: ${err instanceof Error ? err.message : String(err)}`,
2721
- "Install Claude Code or rerun the Haven setup command inside a Claude Code terminal."
2721
+ "Install Claude Code or rerun the Haven connector command inside a Claude Code terminal."
2722
2722
  ],
2723
2723
  errorCode: "claude_code_config_failed"
2724
2724
  };
@@ -2785,7 +2785,7 @@ async function configureClaudeCodeHosted(deps, input, signerCommand) {
2785
2785
  restartRequired: true,
2786
2786
  messages: [
2787
2787
  `Could not update Claude Code MCP config: ${err instanceof Error ? err.message : String(err)}`,
2788
- "Install Claude Code or rerun the Haven setup command inside a Claude Code terminal."
2788
+ "Install Claude Code or rerun the Haven connector command inside a Claude Code terminal."
2789
2789
  ],
2790
2790
  errorCode: "claude_code_config_failed"
2791
2791
  };
@@ -3766,7 +3766,7 @@ async function checksForAgent(entry, input, deps) {
3766
3766
  label: "Signer stdio handshake",
3767
3767
  ok: false,
3768
3768
  detail: "The local-tools consent is not acknowledged, so the signer refuses to start (by design).",
3769
- repair: `Run: ${RERUN} --ack-local-tools --setup <token> (or re-run your original setup command with --ack-local-tools).`
3769
+ repair: `Run: ${RERUN} --ack-local-tools --setup <token> (or re-run your original connector command with --ack-local-tools).`
3770
3770
  });
3771
3771
  } else {
3772
3772
  const probe = await (deps.probeSignerTools ?? probeLocalMcpTools)(
@@ -4040,7 +4040,7 @@ async function runRepair(input, deps = {}) {
4040
4040
  ok: false,
4041
4041
  messages: [
4042
4042
  `The config at ${configPath} is the LOCAL-stdio topology (--local). Repair currently rewrites only the hosted+signer shape and will not touch it.`,
4043
- "Re-run your original setup command (with --local) to repair a local-stdio install."
4043
+ "Re-run your original connector command (with --local) to repair a local-stdio install."
4044
4044
  ]
4045
4045
  };
4046
4046
  }
@@ -4246,7 +4246,7 @@ function noInstalledClientsError() {
4246
4246
  function promptAbortedError(reason) {
4247
4247
  return new ConnectError(
4248
4248
  "runtime_prompt_aborted",
4249
- `Runtime not chosen (${reason}). Nothing was written: no agent was created, no credentials were stored, and the Haven setup token is still unused. Run the setup command again, or pass --runtime <name> to skip the prompt.`,
4249
+ `Runtime not chosen (${reason}). Nothing was written: no agent was created, no credentials were stored, and the Haven setup token is still unused. Run the connector command again, or pass --runtime <name> to skip the prompt.`,
4250
4250
  "rerun_connect_and_choose_a_runtime"
4251
4251
  );
4252
4252
  }
@@ -4389,7 +4389,7 @@ async function pathExists2(path) {
4389
4389
  init_unwire();
4390
4390
  init_local_mcp_runtime();
4391
4391
  init_runtime_manifest();
4392
- var CONNECTOR_VERSION = "0.0.0-dev.202609050932.747d815";
4392
+ var CONNECTOR_VERSION = "0.0.0-dev.202609051106.201fc90";
4393
4393
  var CONNECT_OUTCOME_SCHEMA_VERSION = 1;
4394
4394
  var failureOutcomesByError = /* @__PURE__ */ new WeakMap();
4395
4395
  function failureOutcomeFor(runtimeHint, error) {
@@ -4551,7 +4551,7 @@ async function executeConnect(options, deps, trace) {
4551
4551
  if (dead) throw dead;
4552
4552
  if (isExpiredSetupChallenge(err)) {
4553
4553
  throw new Error(
4554
- "The Haven setup challenge expired while connecting. Return to Haven, start a fresh connection, and run its new Connect command. Do not reuse or paste credentials."
4554
+ "The Haven setup challenge expired while connecting. Return to Haven, start a fresh connection, and run its new connector command. Do not reuse or paste credentials."
4555
4555
  );
4556
4556
  }
4557
4557
  throw err;
@@ -4824,7 +4824,7 @@ async function resolveWiringCollision(collision, agentName, options, deps) {
4824
4824
  if (resolution.action === "abort") {
4825
4825
  throw new ConnectError(
4826
4826
  "wiring_collision_declined",
4827
- `Setup stopped at your request: this machine is already wired to ${supersededIds(collision)} and you chose neither to replace that wiring nor to install alongside it. Nothing was written: no agent was created, no credentials were stored, and the Haven setup token is still unused. Run the setup command again with --replace to re-point haven / haven-signer at the new agent, or with --name <slug> (e.g. --name ${collision.suggestedServerName}) to install alongside.`,
4827
+ `Setup stopped at your request: this machine is already wired to ${supersededIds(collision)} and you chose neither to replace that wiring nor to install alongside it. Nothing was written: no agent was created, no credentials were stored, and the Haven setup token is still unused. Run the connector command again with --replace to re-point haven / haven-signer at the new agent, or with --name <slug> (e.g. --name ${collision.suggestedServerName}) to install alongside.`,
4828
4828
  "rerun_connect_with_replace_or_name",
4829
4829
  { supersededAgentIds: collision.superseded.map((e) => e.agentId), suggestedServerName: collision.suggestedServerName }
4830
4830
  );
@@ -4913,7 +4913,7 @@ function deadSetupTokenError(err) {
4913
4913
  if (!(err instanceof ConnectRequestError) || err.status !== 410 && err.status !== 401) return null;
4914
4914
  return new ConnectError(
4915
4915
  "setup_challenge_expired_or_invalid",
4916
- "This Haven setup token is expired or invalid \u2014 tokens are single-use and expire 30 minutes after the dashboard issues them, and a mistyped token reads the same way. Return to Haven, start a fresh connection, and run its new Connect command. No local credentials were written.",
4916
+ "This Haven setup token is expired or invalid \u2014 tokens are single-use and expire 30 minutes after the dashboard issues them, and a mistyped token reads the same way. Return to Haven, start a fresh connection, and run its new connector command. No local credentials were written.",
4917
4917
  "return_to_haven_for_fresh_setup"
4918
4918
  );
4919
4919
  }
@@ -5026,7 +5026,7 @@ function completionHandoffLines(result, approval, approvalUrl) {
5026
5026
  }
5027
5027
  if (result.errorCode) {
5028
5028
  return [
5029
- "Recovery: runtime setup is not complete. Resolve the reported problem, then return to Haven for a fresh connection and run its new Connect command. Do not manually edit runtime config or paste credentials into prompts, logs, or config."
5029
+ "Recovery: runtime setup is not complete. Resolve the reported problem, then return to Haven for a fresh connection and run its new connector command. Do not manually edit runtime config or paste credentials into prompts, logs, or config."
5030
5030
  ];
5031
5031
  }
5032
5032
  if (approval === "ended") {