@haven_ai/connect 0.1.10-alpha.0 → 0.1.12-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/cli.cjs +12 -3
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.js +12 -3
- package/dist/cli.js.map +1 -1
- package/dist/index.cjs +12 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +6 -4
- package/dist/index.d.ts +6 -4
- package/dist/index.js +12 -3
- package/dist/index.js.map +1 -1
- package/package.json +5 -5
package/dist/index.d.cts
CHANGED
|
@@ -64,6 +64,7 @@ interface ResolvedSetup {
|
|
|
64
64
|
reset_period_min: number;
|
|
65
65
|
}>;
|
|
66
66
|
hosted_mcp_url: string;
|
|
67
|
+
x402_binding_signer?: string | null;
|
|
67
68
|
challenge: {
|
|
68
69
|
id: string;
|
|
69
70
|
message: string;
|
|
@@ -112,6 +113,7 @@ interface WriteCredentialInput {
|
|
|
112
113
|
}>;
|
|
113
114
|
apiUrl: string;
|
|
114
115
|
hostedMcpUrl: string;
|
|
116
|
+
x402BindingSigner?: string;
|
|
115
117
|
warn?: (message: string) => void;
|
|
116
118
|
}
|
|
117
119
|
interface PreflightCredentialStorageInput {
|
|
@@ -207,7 +209,7 @@ declare function runtimeInstallCapabilities(runtime: string | undefined, env?: N
|
|
|
207
209
|
restartRequired: boolean;
|
|
208
210
|
};
|
|
209
211
|
|
|
210
|
-
declare const CONNECTOR_VERSION = "0.1.
|
|
212
|
+
declare const CONNECTOR_VERSION = "0.1.12-alpha.0";
|
|
211
213
|
interface ConnectOptions {
|
|
212
214
|
setupToken: string;
|
|
213
215
|
apiBaseUrl: string;
|
|
@@ -248,11 +250,11 @@ declare function shortAddress(address: string): string;
|
|
|
248
250
|
|
|
249
251
|
declare const MCP_RUNTIME_MANIFEST: {
|
|
250
252
|
readonly mcpPackage: "@haven_ai/mcp";
|
|
251
|
-
readonly mcpVersion: "0.1.
|
|
253
|
+
readonly mcpVersion: "0.1.12-alpha.0";
|
|
252
254
|
readonly sdkPackage: "@haven_ai/sdk";
|
|
253
|
-
readonly sdkVersion: "0.1.
|
|
255
|
+
readonly sdkVersion: "0.1.12-alpha.0";
|
|
254
256
|
readonly signerPackage: "@haven_ai/signer";
|
|
255
|
-
readonly signerVersion: "0.1.
|
|
257
|
+
readonly signerVersion: "0.1.12-alpha.0";
|
|
256
258
|
readonly minimumNodeVersion: "20.0.0";
|
|
257
259
|
readonly supportedClients: readonly ["codex-cli", "codex-desktop", "claude-code"];
|
|
258
260
|
readonly requiredTools: readonly string[];
|
package/dist/index.d.ts
CHANGED
|
@@ -64,6 +64,7 @@ interface ResolvedSetup {
|
|
|
64
64
|
reset_period_min: number;
|
|
65
65
|
}>;
|
|
66
66
|
hosted_mcp_url: string;
|
|
67
|
+
x402_binding_signer?: string | null;
|
|
67
68
|
challenge: {
|
|
68
69
|
id: string;
|
|
69
70
|
message: string;
|
|
@@ -112,6 +113,7 @@ interface WriteCredentialInput {
|
|
|
112
113
|
}>;
|
|
113
114
|
apiUrl: string;
|
|
114
115
|
hostedMcpUrl: string;
|
|
116
|
+
x402BindingSigner?: string;
|
|
115
117
|
warn?: (message: string) => void;
|
|
116
118
|
}
|
|
117
119
|
interface PreflightCredentialStorageInput {
|
|
@@ -207,7 +209,7 @@ declare function runtimeInstallCapabilities(runtime: string | undefined, env?: N
|
|
|
207
209
|
restartRequired: boolean;
|
|
208
210
|
};
|
|
209
211
|
|
|
210
|
-
declare const CONNECTOR_VERSION = "0.1.
|
|
212
|
+
declare const CONNECTOR_VERSION = "0.1.12-alpha.0";
|
|
211
213
|
interface ConnectOptions {
|
|
212
214
|
setupToken: string;
|
|
213
215
|
apiBaseUrl: string;
|
|
@@ -248,11 +250,11 @@ declare function shortAddress(address: string): string;
|
|
|
248
250
|
|
|
249
251
|
declare const MCP_RUNTIME_MANIFEST: {
|
|
250
252
|
readonly mcpPackage: "@haven_ai/mcp";
|
|
251
|
-
readonly mcpVersion: "0.1.
|
|
253
|
+
readonly mcpVersion: "0.1.12-alpha.0";
|
|
252
254
|
readonly sdkPackage: "@haven_ai/sdk";
|
|
253
|
-
readonly sdkVersion: "0.1.
|
|
255
|
+
readonly sdkVersion: "0.1.12-alpha.0";
|
|
254
256
|
readonly signerPackage: "@haven_ai/signer";
|
|
255
|
-
readonly signerVersion: "0.1.
|
|
257
|
+
readonly signerVersion: "0.1.12-alpha.0";
|
|
256
258
|
readonly minimumNodeVersion: "20.0.0";
|
|
257
259
|
readonly supportedClients: readonly ["codex-cli", "codex-desktop", "claude-code"];
|
|
258
260
|
readonly requiredTools: readonly string[];
|
package/dist/index.js
CHANGED
|
@@ -141,6 +141,7 @@ async function writeCredentialFiles(input) {
|
|
|
141
141
|
safe_address: input.safeAddress,
|
|
142
142
|
chain_id: input.chainId,
|
|
143
143
|
network: input.network,
|
|
144
|
+
x402_binding_signer: input.x402BindingSigner,
|
|
144
145
|
note: "Local signer credential. Haven backend never receives this private key."
|
|
145
146
|
},
|
|
146
147
|
input.warn
|
|
@@ -207,9 +208,9 @@ var MCP_RUNTIME_MANIFEST = {
|
|
|
207
208
|
mcpPackage: "@haven_ai/mcp",
|
|
208
209
|
mcpVersion: MCP_VERSION,
|
|
209
210
|
sdkPackage: "@haven_ai/sdk",
|
|
210
|
-
sdkVersion: "0.1.
|
|
211
|
+
sdkVersion: "0.1.12-alpha.0",
|
|
211
212
|
signerPackage: "@haven_ai/signer",
|
|
212
|
-
signerVersion: "0.1.
|
|
213
|
+
signerVersion: "0.1.12-alpha.0",
|
|
213
214
|
minimumNodeVersion: "20.0.0",
|
|
214
215
|
supportedClients: ["codex-cli", "codex-desktop", "claude-code"],
|
|
215
216
|
requiredTools: registeredToolNames()
|
|
@@ -1527,7 +1528,7 @@ function localRuntimePrepareErrorCode(err) {
|
|
|
1527
1528
|
}
|
|
1528
1529
|
|
|
1529
1530
|
// src/runtime.ts
|
|
1530
|
-
var CONNECTOR_VERSION = "0.1.
|
|
1531
|
+
var CONNECTOR_VERSION = "0.1.12-alpha.0";
|
|
1531
1532
|
async function runConnect(options, deps = {}) {
|
|
1532
1533
|
const connectorVersion = options.connectorVersion ?? CONNECTOR_VERSION;
|
|
1533
1534
|
const api = deps.api ?? createConnectApiClient(options.apiBaseUrl);
|
|
@@ -1592,10 +1593,18 @@ async function runConnect(options, deps = {}) {
|
|
|
1592
1593
|
})),
|
|
1593
1594
|
apiUrl: options.apiBaseUrl,
|
|
1594
1595
|
hostedMcpUrl: registration.hosted_mcp_url,
|
|
1596
|
+
x402BindingSigner: setup.x402_binding_signer ?? void 0,
|
|
1595
1597
|
warn: log
|
|
1596
1598
|
});
|
|
1597
1599
|
log(`Stored Haven identity credential locally: ${credentialPaths.identityPath}`);
|
|
1598
1600
|
log(`Stored local signer credential locally: ${credentialPaths.signerPath}`);
|
|
1601
|
+
if (setup.x402_binding_signer) {
|
|
1602
|
+
log("Configured x402 binding signer for the local signer.");
|
|
1603
|
+
} else {
|
|
1604
|
+
log(
|
|
1605
|
+
"Warning: Haven did not provide an x402 binding signer, so x402 payments will not sign until HAVEN_X402_BINDING_SIGNER is set for the signer. Non-x402 payments are unaffected."
|
|
1606
|
+
);
|
|
1607
|
+
}
|
|
1599
1608
|
const runtimeInstall = await runRuntimeInstall({
|
|
1600
1609
|
runtime: options.runtime,
|
|
1601
1610
|
hostedMcpUrl: registration.hosted_mcp_url,
|