@haven_ai/connect 0.2.1-alpha.0 → 0.4.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.4.0-alpha.0";
742
740
  interface ConnectOptions {
743
741
  setupToken: string;
744
742
  apiBaseUrl: string;
@@ -883,6 +881,36 @@ interface ConnectOutcome {
883
881
  */
884
882
  superseded_agents_retired_locally?: boolean;
885
883
  retired_agent_ids?: readonly string[];
884
+ /**
885
+ * #3122, additive within schema_version 1. Every OTHER credential directory
886
+ * on this machine that still held key material when this run began — named
887
+ * BEFORE the first credential write (the same list the pre-write heads-up
888
+ * prints), with the account each can spend from, so a `--json` caller
889
+ * learns of the condition without parsing prose. "Live" here means "holds
890
+ * a stored API key locally" — no network call is made to ask the backend
891
+ * whether the key still authenticates (that is the doctor's probe). Always
892
+ * present on a completed run, `[]` on a clean machine; like
893
+ * `superseded_agent_ids`, an empty list from a root that could not be read
894
+ * is not proof of a clean machine.
895
+ */
896
+ existing_agents_before_write?: ReadonlyArray<{
897
+ agent_id: string;
898
+ account_address: string | null;
899
+ }>;
900
+ /**
901
+ * #3122, additive. Present only when this run took an MCP server name over
902
+ * from another agent's local binding record (`mcp-server-binding.json` in
903
+ * that directory): the previous holder, the backend it pointed at, when it
904
+ * was bound, and whether the backend changed — the case the backend cannot
905
+ * answer and the one that silently repoints a saved session.
906
+ */
907
+ server_name_rebound_from?: {
908
+ server_name: string;
909
+ agent_id: string;
910
+ api_url: string;
911
+ bound_at: string;
912
+ backend_changed: boolean;
913
+ };
886
914
  /**
887
915
  * #2091, additive within schema_version 1: `message` is the redacted human
888
916
  * refusal (automation used to get code + next_action and nothing to act
@@ -995,6 +1023,11 @@ declare function completionOutcome(input: {
995
1023
  setupChallengeExpiresAt?: string;
996
1024
  approvalRequired: boolean;
997
1025
  approvalUrl?: string;
1026
+ existingAgentsBeforeWrite?: ReadonlyArray<{
1027
+ agent_id: string;
1028
+ account_address: string | null;
1029
+ }>;
1030
+ serverNameReboundFrom?: ConnectOutcome['server_name_rebound_from'];
998
1031
  }): ConnectOutcome;
999
1032
  /**
1000
1033
  * The failure record for the `--json` contract.
@@ -1055,9 +1088,14 @@ interface ParsedCli {
1055
1088
  unwire?: {
1056
1089
  reason?: string;
1057
1090
  replacedBy?: string;
1091
+ destroyKeyMaterial?: boolean;
1058
1092
  };
1059
1093
  /** Optional positional value of --unwire <dir> (else --name / --credentials-dir resolve it). */
1060
1094
  unwireDir?: string;
1095
+ /** #3123: reclaim signer-runtime directories no credential directory references. */
1096
+ pruneSignerRuntimes?: {
1097
+ dryRun: boolean;
1098
+ };
1061
1099
  /**
1062
1100
  * #1700: replace an agent's signing key on this machine. Two phases, because
1063
1101
  * the dashboard sits between them — `start` generates the key and prints its
@@ -1138,11 +1176,11 @@ declare function isConnectError(err: unknown): err is ConnectError;
1138
1176
 
1139
1177
  declare const MCP_RUNTIME_MANIFEST: {
1140
1178
  readonly mcpPackage: "@haven_ai/mcp";
1141
- readonly mcpVersion: "0.2.1-alpha.0";
1179
+ readonly mcpVersion: "0.4.0-alpha.0";
1142
1180
  readonly sdkPackage: "@haven_ai/sdk";
1143
- readonly sdkVersion: "0.2.1-alpha.0";
1181
+ readonly sdkVersion: "0.4.0-alpha.0";
1144
1182
  readonly signerPackage: "@haven_ai/signer";
1145
- readonly signerVersion: "0.2.1-alpha.0";
1183
+ readonly signerVersion: "0.4.0-alpha.0";
1146
1184
  readonly minimumNodeVersion: "22.0.0";
1147
1185
  readonly supportedClients: readonly ["codex-cli", "codex-desktop", "claude-code"];
1148
1186
  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.4.0-alpha.0";
742
740
  interface ConnectOptions {
743
741
  setupToken: string;
744
742
  apiBaseUrl: string;
@@ -883,6 +881,36 @@ interface ConnectOutcome {
883
881
  */
884
882
  superseded_agents_retired_locally?: boolean;
885
883
  retired_agent_ids?: readonly string[];
884
+ /**
885
+ * #3122, additive within schema_version 1. Every OTHER credential directory
886
+ * on this machine that still held key material when this run began — named
887
+ * BEFORE the first credential write (the same list the pre-write heads-up
888
+ * prints), with the account each can spend from, so a `--json` caller
889
+ * learns of the condition without parsing prose. "Live" here means "holds
890
+ * a stored API key locally" — no network call is made to ask the backend
891
+ * whether the key still authenticates (that is the doctor's probe). Always
892
+ * present on a completed run, `[]` on a clean machine; like
893
+ * `superseded_agent_ids`, an empty list from a root that could not be read
894
+ * is not proof of a clean machine.
895
+ */
896
+ existing_agents_before_write?: ReadonlyArray<{
897
+ agent_id: string;
898
+ account_address: string | null;
899
+ }>;
900
+ /**
901
+ * #3122, additive. Present only when this run took an MCP server name over
902
+ * from another agent's local binding record (`mcp-server-binding.json` in
903
+ * that directory): the previous holder, the backend it pointed at, when it
904
+ * was bound, and whether the backend changed — the case the backend cannot
905
+ * answer and the one that silently repoints a saved session.
906
+ */
907
+ server_name_rebound_from?: {
908
+ server_name: string;
909
+ agent_id: string;
910
+ api_url: string;
911
+ bound_at: string;
912
+ backend_changed: boolean;
913
+ };
886
914
  /**
887
915
  * #2091, additive within schema_version 1: `message` is the redacted human
888
916
  * refusal (automation used to get code + next_action and nothing to act
@@ -995,6 +1023,11 @@ declare function completionOutcome(input: {
995
1023
  setupChallengeExpiresAt?: string;
996
1024
  approvalRequired: boolean;
997
1025
  approvalUrl?: string;
1026
+ existingAgentsBeforeWrite?: ReadonlyArray<{
1027
+ agent_id: string;
1028
+ account_address: string | null;
1029
+ }>;
1030
+ serverNameReboundFrom?: ConnectOutcome['server_name_rebound_from'];
998
1031
  }): ConnectOutcome;
999
1032
  /**
1000
1033
  * The failure record for the `--json` contract.
@@ -1055,9 +1088,14 @@ interface ParsedCli {
1055
1088
  unwire?: {
1056
1089
  reason?: string;
1057
1090
  replacedBy?: string;
1091
+ destroyKeyMaterial?: boolean;
1058
1092
  };
1059
1093
  /** Optional positional value of --unwire <dir> (else --name / --credentials-dir resolve it). */
1060
1094
  unwireDir?: string;
1095
+ /** #3123: reclaim signer-runtime directories no credential directory references. */
1096
+ pruneSignerRuntimes?: {
1097
+ dryRun: boolean;
1098
+ };
1061
1099
  /**
1062
1100
  * #1700: replace an agent's signing key on this machine. Two phases, because
1063
1101
  * the dashboard sits between them — `start` generates the key and prints its
@@ -1138,11 +1176,11 @@ declare function isConnectError(err: unknown): err is ConnectError;
1138
1176
 
1139
1177
  declare const MCP_RUNTIME_MANIFEST: {
1140
1178
  readonly mcpPackage: "@haven_ai/mcp";
1141
- readonly mcpVersion: "0.2.1-alpha.0";
1179
+ readonly mcpVersion: "0.4.0-alpha.0";
1142
1180
  readonly sdkPackage: "@haven_ai/sdk";
1143
- readonly sdkVersion: "0.2.1-alpha.0";
1181
+ readonly sdkVersion: "0.4.0-alpha.0";
1144
1182
  readonly signerPackage: "@haven_ai/signer";
1145
- readonly signerVersion: "0.2.1-alpha.0";
1183
+ readonly signerVersion: "0.4.0-alpha.0";
1146
1184
  readonly minimumNodeVersion: "22.0.0";
1147
1185
  readonly supportedClients: readonly ["codex-cli", "codex-desktop", "claude-code"];
1148
1186
  readonly requiredTools: readonly string[];