@haven_ai/connect 0.4.0-alpha.0 → 0.6.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 +22 -3
- package/dist/cli.cjs +2266 -2167
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.js +2270 -2171
- package/dist/cli.js.map +1 -1
- package/dist/index.cjs +2235 -2136
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +23 -5
- package/dist/index.d.ts +23 -5
- package/dist/index.js +2232 -2131
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
package/dist/index.d.cts
CHANGED
|
@@ -176,7 +176,14 @@ interface AgentIdentity {
|
|
|
176
176
|
chain_id: number | null;
|
|
177
177
|
execution_rail: 'legacy' | 'delegation' | string;
|
|
178
178
|
}
|
|
179
|
-
|
|
179
|
+
/**
|
|
180
|
+
* @param clientIdentity #3303: `@haven_ai/connect/<version>`, sent as
|
|
181
|
+
* `X-Haven-Client` on every request so the backend can tell an outdated
|
|
182
|
+
* connector what to run. Passed in by the callers that own
|
|
183
|
+
* `CONNECTOR_VERSION` (`runtime.ts` imports this file, so it cannot be
|
|
184
|
+
* imported here).
|
|
185
|
+
*/
|
|
186
|
+
declare function createConnectApiClient(baseUrl: string, fetchImpl?: typeof fetch, clientIdentity?: string): ConnectApiClient;
|
|
180
187
|
|
|
181
188
|
interface LocalDelegateKey {
|
|
182
189
|
privateKey: string;
|
|
@@ -736,7 +743,7 @@ type WiringCollisionResolution = {
|
|
|
736
743
|
action: 'abort';
|
|
737
744
|
};
|
|
738
745
|
|
|
739
|
-
declare const CONNECTOR_VERSION = "0.
|
|
746
|
+
declare const CONNECTOR_VERSION = "0.6.0-alpha.0";
|
|
740
747
|
interface ConnectOptions {
|
|
741
748
|
setupToken: string;
|
|
742
749
|
apiBaseUrl: string;
|
|
@@ -881,6 +888,15 @@ interface ConnectOutcome {
|
|
|
881
888
|
*/
|
|
882
889
|
superseded_agents_retired_locally?: boolean;
|
|
883
890
|
retired_agent_ids?: readonly string[];
|
|
891
|
+
/**
|
|
892
|
+
* #3259, additive within schema_version 1: present only on a replace run
|
|
893
|
+
* where a retired directory's surviving ledger record could NOT be written —
|
|
894
|
+
* agent id → errno code (or `mirror_write_failed`). The directory is still
|
|
895
|
+
* retired (tombstoned in place, key files removed) and counts in
|
|
896
|
+
* `retired_agent_ids`; only `--doctor`'s view after the directory is deleted
|
|
897
|
+
* is lost.
|
|
898
|
+
*/
|
|
899
|
+
retirement_mirror_errors?: Readonly<Record<string, string>>;
|
|
884
900
|
/**
|
|
885
901
|
* #3122, additive within schema_version 1. Every OTHER credential directory
|
|
886
902
|
* on this machine that still held key material when this run began — named
|
|
@@ -1020,6 +1036,8 @@ declare function completionOutcome(input: {
|
|
|
1020
1036
|
/** #2551: only a replace run sets these; see the outcome fields' doc comments. */
|
|
1021
1037
|
supersededAgentsRetiredLocally?: boolean;
|
|
1022
1038
|
retiredAgentIds?: readonly string[];
|
|
1039
|
+
/** #3259: only set when a retirement's ledger mirror failed. */
|
|
1040
|
+
retirementMirrorErrors?: Readonly<Record<string, string>>;
|
|
1023
1041
|
setupChallengeExpiresAt?: string;
|
|
1024
1042
|
approvalRequired: boolean;
|
|
1025
1043
|
approvalUrl?: string;
|
|
@@ -1176,11 +1194,11 @@ declare function isConnectError(err: unknown): err is ConnectError;
|
|
|
1176
1194
|
|
|
1177
1195
|
declare const MCP_RUNTIME_MANIFEST: {
|
|
1178
1196
|
readonly mcpPackage: "@haven_ai/mcp";
|
|
1179
|
-
readonly mcpVersion: "0.
|
|
1197
|
+
readonly mcpVersion: "0.6.0-alpha.0";
|
|
1180
1198
|
readonly sdkPackage: "@haven_ai/sdk";
|
|
1181
|
-
readonly sdkVersion: "0.
|
|
1199
|
+
readonly sdkVersion: "0.6.0-alpha.0";
|
|
1182
1200
|
readonly signerPackage: "@haven_ai/signer";
|
|
1183
|
-
readonly signerVersion: "0.
|
|
1201
|
+
readonly signerVersion: "0.6.0-alpha.0";
|
|
1184
1202
|
readonly minimumNodeVersion: "22.0.0";
|
|
1185
1203
|
readonly supportedClients: readonly ["codex-cli", "codex-desktop", "claude-code"];
|
|
1186
1204
|
readonly requiredTools: readonly string[];
|
package/dist/index.d.ts
CHANGED
|
@@ -176,7 +176,14 @@ interface AgentIdentity {
|
|
|
176
176
|
chain_id: number | null;
|
|
177
177
|
execution_rail: 'legacy' | 'delegation' | string;
|
|
178
178
|
}
|
|
179
|
-
|
|
179
|
+
/**
|
|
180
|
+
* @param clientIdentity #3303: `@haven_ai/connect/<version>`, sent as
|
|
181
|
+
* `X-Haven-Client` on every request so the backend can tell an outdated
|
|
182
|
+
* connector what to run. Passed in by the callers that own
|
|
183
|
+
* `CONNECTOR_VERSION` (`runtime.ts` imports this file, so it cannot be
|
|
184
|
+
* imported here).
|
|
185
|
+
*/
|
|
186
|
+
declare function createConnectApiClient(baseUrl: string, fetchImpl?: typeof fetch, clientIdentity?: string): ConnectApiClient;
|
|
180
187
|
|
|
181
188
|
interface LocalDelegateKey {
|
|
182
189
|
privateKey: string;
|
|
@@ -736,7 +743,7 @@ type WiringCollisionResolution = {
|
|
|
736
743
|
action: 'abort';
|
|
737
744
|
};
|
|
738
745
|
|
|
739
|
-
declare const CONNECTOR_VERSION = "0.
|
|
746
|
+
declare const CONNECTOR_VERSION = "0.6.0-alpha.0";
|
|
740
747
|
interface ConnectOptions {
|
|
741
748
|
setupToken: string;
|
|
742
749
|
apiBaseUrl: string;
|
|
@@ -881,6 +888,15 @@ interface ConnectOutcome {
|
|
|
881
888
|
*/
|
|
882
889
|
superseded_agents_retired_locally?: boolean;
|
|
883
890
|
retired_agent_ids?: readonly string[];
|
|
891
|
+
/**
|
|
892
|
+
* #3259, additive within schema_version 1: present only on a replace run
|
|
893
|
+
* where a retired directory's surviving ledger record could NOT be written —
|
|
894
|
+
* agent id → errno code (or `mirror_write_failed`). The directory is still
|
|
895
|
+
* retired (tombstoned in place, key files removed) and counts in
|
|
896
|
+
* `retired_agent_ids`; only `--doctor`'s view after the directory is deleted
|
|
897
|
+
* is lost.
|
|
898
|
+
*/
|
|
899
|
+
retirement_mirror_errors?: Readonly<Record<string, string>>;
|
|
884
900
|
/**
|
|
885
901
|
* #3122, additive within schema_version 1. Every OTHER credential directory
|
|
886
902
|
* on this machine that still held key material when this run began — named
|
|
@@ -1020,6 +1036,8 @@ declare function completionOutcome(input: {
|
|
|
1020
1036
|
/** #2551: only a replace run sets these; see the outcome fields' doc comments. */
|
|
1021
1037
|
supersededAgentsRetiredLocally?: boolean;
|
|
1022
1038
|
retiredAgentIds?: readonly string[];
|
|
1039
|
+
/** #3259: only set when a retirement's ledger mirror failed. */
|
|
1040
|
+
retirementMirrorErrors?: Readonly<Record<string, string>>;
|
|
1023
1041
|
setupChallengeExpiresAt?: string;
|
|
1024
1042
|
approvalRequired: boolean;
|
|
1025
1043
|
approvalUrl?: string;
|
|
@@ -1176,11 +1194,11 @@ declare function isConnectError(err: unknown): err is ConnectError;
|
|
|
1176
1194
|
|
|
1177
1195
|
declare const MCP_RUNTIME_MANIFEST: {
|
|
1178
1196
|
readonly mcpPackage: "@haven_ai/mcp";
|
|
1179
|
-
readonly mcpVersion: "0.
|
|
1197
|
+
readonly mcpVersion: "0.6.0-alpha.0";
|
|
1180
1198
|
readonly sdkPackage: "@haven_ai/sdk";
|
|
1181
|
-
readonly sdkVersion: "0.
|
|
1199
|
+
readonly sdkVersion: "0.6.0-alpha.0";
|
|
1182
1200
|
readonly signerPackage: "@haven_ai/signer";
|
|
1183
|
-
readonly signerVersion: "0.
|
|
1201
|
+
readonly signerVersion: "0.6.0-alpha.0";
|
|
1184
1202
|
readonly minimumNodeVersion: "22.0.0";
|
|
1185
1203
|
readonly supportedClients: readonly ["codex-cli", "codex-desktop", "claude-code"];
|
|
1186
1204
|
readonly requiredTools: readonly string[];
|