@haven_ai/connect 0.3.0-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/README.md +174 -15
- package/dist/cli.cjs +654 -84
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.js +655 -85
- package/dist/cli.js.map +1 -1
- package/dist/index.cjs +654 -84
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +44 -4
- package/dist/index.d.ts +44 -4
- package/dist/index.js +655 -85
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
package/dist/index.d.cts
CHANGED
|
@@ -736,7 +736,7 @@ type WiringCollisionResolution = {
|
|
|
736
736
|
action: 'abort';
|
|
737
737
|
};
|
|
738
738
|
|
|
739
|
-
declare const CONNECTOR_VERSION = "0.
|
|
739
|
+
declare const CONNECTOR_VERSION = "0.4.0-alpha.0";
|
|
740
740
|
interface ConnectOptions {
|
|
741
741
|
setupToken: string;
|
|
742
742
|
apiBaseUrl: string;
|
|
@@ -881,6 +881,36 @@ interface ConnectOutcome {
|
|
|
881
881
|
*/
|
|
882
882
|
superseded_agents_retired_locally?: boolean;
|
|
883
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
|
+
};
|
|
884
914
|
/**
|
|
885
915
|
* #2091, additive within schema_version 1: `message` is the redacted human
|
|
886
916
|
* refusal (automation used to get code + next_action and nothing to act
|
|
@@ -993,6 +1023,11 @@ declare function completionOutcome(input: {
|
|
|
993
1023
|
setupChallengeExpiresAt?: string;
|
|
994
1024
|
approvalRequired: boolean;
|
|
995
1025
|
approvalUrl?: string;
|
|
1026
|
+
existingAgentsBeforeWrite?: ReadonlyArray<{
|
|
1027
|
+
agent_id: string;
|
|
1028
|
+
account_address: string | null;
|
|
1029
|
+
}>;
|
|
1030
|
+
serverNameReboundFrom?: ConnectOutcome['server_name_rebound_from'];
|
|
996
1031
|
}): ConnectOutcome;
|
|
997
1032
|
/**
|
|
998
1033
|
* The failure record for the `--json` contract.
|
|
@@ -1053,9 +1088,14 @@ interface ParsedCli {
|
|
|
1053
1088
|
unwire?: {
|
|
1054
1089
|
reason?: string;
|
|
1055
1090
|
replacedBy?: string;
|
|
1091
|
+
destroyKeyMaterial?: boolean;
|
|
1056
1092
|
};
|
|
1057
1093
|
/** Optional positional value of --unwire <dir> (else --name / --credentials-dir resolve it). */
|
|
1058
1094
|
unwireDir?: string;
|
|
1095
|
+
/** #3123: reclaim signer-runtime directories no credential directory references. */
|
|
1096
|
+
pruneSignerRuntimes?: {
|
|
1097
|
+
dryRun: boolean;
|
|
1098
|
+
};
|
|
1059
1099
|
/**
|
|
1060
1100
|
* #1700: replace an agent's signing key on this machine. Two phases, because
|
|
1061
1101
|
* the dashboard sits between them — `start` generates the key and prints its
|
|
@@ -1136,11 +1176,11 @@ declare function isConnectError(err: unknown): err is ConnectError;
|
|
|
1136
1176
|
|
|
1137
1177
|
declare const MCP_RUNTIME_MANIFEST: {
|
|
1138
1178
|
readonly mcpPackage: "@haven_ai/mcp";
|
|
1139
|
-
readonly mcpVersion: "0.
|
|
1179
|
+
readonly mcpVersion: "0.4.0-alpha.0";
|
|
1140
1180
|
readonly sdkPackage: "@haven_ai/sdk";
|
|
1141
|
-
readonly sdkVersion: "0.
|
|
1181
|
+
readonly sdkVersion: "0.4.0-alpha.0";
|
|
1142
1182
|
readonly signerPackage: "@haven_ai/signer";
|
|
1143
|
-
readonly signerVersion: "0.
|
|
1183
|
+
readonly signerVersion: "0.4.0-alpha.0";
|
|
1144
1184
|
readonly minimumNodeVersion: "22.0.0";
|
|
1145
1185
|
readonly supportedClients: readonly ["codex-cli", "codex-desktop", "claude-code"];
|
|
1146
1186
|
readonly requiredTools: readonly string[];
|
package/dist/index.d.ts
CHANGED
|
@@ -736,7 +736,7 @@ type WiringCollisionResolution = {
|
|
|
736
736
|
action: 'abort';
|
|
737
737
|
};
|
|
738
738
|
|
|
739
|
-
declare const CONNECTOR_VERSION = "0.
|
|
739
|
+
declare const CONNECTOR_VERSION = "0.4.0-alpha.0";
|
|
740
740
|
interface ConnectOptions {
|
|
741
741
|
setupToken: string;
|
|
742
742
|
apiBaseUrl: string;
|
|
@@ -881,6 +881,36 @@ interface ConnectOutcome {
|
|
|
881
881
|
*/
|
|
882
882
|
superseded_agents_retired_locally?: boolean;
|
|
883
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
|
+
};
|
|
884
914
|
/**
|
|
885
915
|
* #2091, additive within schema_version 1: `message` is the redacted human
|
|
886
916
|
* refusal (automation used to get code + next_action and nothing to act
|
|
@@ -993,6 +1023,11 @@ declare function completionOutcome(input: {
|
|
|
993
1023
|
setupChallengeExpiresAt?: string;
|
|
994
1024
|
approvalRequired: boolean;
|
|
995
1025
|
approvalUrl?: string;
|
|
1026
|
+
existingAgentsBeforeWrite?: ReadonlyArray<{
|
|
1027
|
+
agent_id: string;
|
|
1028
|
+
account_address: string | null;
|
|
1029
|
+
}>;
|
|
1030
|
+
serverNameReboundFrom?: ConnectOutcome['server_name_rebound_from'];
|
|
996
1031
|
}): ConnectOutcome;
|
|
997
1032
|
/**
|
|
998
1033
|
* The failure record for the `--json` contract.
|
|
@@ -1053,9 +1088,14 @@ interface ParsedCli {
|
|
|
1053
1088
|
unwire?: {
|
|
1054
1089
|
reason?: string;
|
|
1055
1090
|
replacedBy?: string;
|
|
1091
|
+
destroyKeyMaterial?: boolean;
|
|
1056
1092
|
};
|
|
1057
1093
|
/** Optional positional value of --unwire <dir> (else --name / --credentials-dir resolve it). */
|
|
1058
1094
|
unwireDir?: string;
|
|
1095
|
+
/** #3123: reclaim signer-runtime directories no credential directory references. */
|
|
1096
|
+
pruneSignerRuntimes?: {
|
|
1097
|
+
dryRun: boolean;
|
|
1098
|
+
};
|
|
1059
1099
|
/**
|
|
1060
1100
|
* #1700: replace an agent's signing key on this machine. Two phases, because
|
|
1061
1101
|
* the dashboard sits between them — `start` generates the key and prints its
|
|
@@ -1136,11 +1176,11 @@ declare function isConnectError(err: unknown): err is ConnectError;
|
|
|
1136
1176
|
|
|
1137
1177
|
declare const MCP_RUNTIME_MANIFEST: {
|
|
1138
1178
|
readonly mcpPackage: "@haven_ai/mcp";
|
|
1139
|
-
readonly mcpVersion: "0.
|
|
1179
|
+
readonly mcpVersion: "0.4.0-alpha.0";
|
|
1140
1180
|
readonly sdkPackage: "@haven_ai/sdk";
|
|
1141
|
-
readonly sdkVersion: "0.
|
|
1181
|
+
readonly sdkVersion: "0.4.0-alpha.0";
|
|
1142
1182
|
readonly signerPackage: "@haven_ai/signer";
|
|
1143
|
-
readonly signerVersion: "0.
|
|
1183
|
+
readonly signerVersion: "0.4.0-alpha.0";
|
|
1144
1184
|
readonly minimumNodeVersion: "22.0.0";
|
|
1145
1185
|
readonly supportedClients: readonly ["codex-cli", "codex-desktop", "claude-code"];
|
|
1146
1186
|
readonly requiredTools: readonly string[];
|