@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/cli.js
CHANGED
|
@@ -142,6 +142,7 @@ async function writeCredentialFiles(input) {
|
|
|
142
142
|
safe_address: input.safeAddress,
|
|
143
143
|
chain_id: input.chainId,
|
|
144
144
|
network: input.network,
|
|
145
|
+
x402_binding_signer: input.x402BindingSigner,
|
|
145
146
|
note: "Local signer credential. Haven backend never receives this private key."
|
|
146
147
|
},
|
|
147
148
|
input.warn
|
|
@@ -208,9 +209,9 @@ var MCP_RUNTIME_MANIFEST = {
|
|
|
208
209
|
mcpPackage: "@haven_ai/mcp",
|
|
209
210
|
mcpVersion: MCP_VERSION,
|
|
210
211
|
sdkPackage: "@haven_ai/sdk",
|
|
211
|
-
sdkVersion: "0.1.
|
|
212
|
+
sdkVersion: "0.1.12-alpha.0",
|
|
212
213
|
signerPackage: "@haven_ai/signer",
|
|
213
|
-
signerVersion: "0.1.
|
|
214
|
+
signerVersion: "0.1.12-alpha.0",
|
|
214
215
|
minimumNodeVersion: "20.0.0",
|
|
215
216
|
supportedClients: ["codex-cli", "codex-desktop", "claude-code"],
|
|
216
217
|
requiredTools: registeredToolNames()
|
|
@@ -1528,7 +1529,7 @@ function localRuntimePrepareErrorCode(err) {
|
|
|
1528
1529
|
}
|
|
1529
1530
|
|
|
1530
1531
|
// src/runtime.ts
|
|
1531
|
-
var CONNECTOR_VERSION = "0.1.
|
|
1532
|
+
var CONNECTOR_VERSION = "0.1.12-alpha.0";
|
|
1532
1533
|
async function runConnect(options, deps = {}) {
|
|
1533
1534
|
const connectorVersion = options.connectorVersion ?? CONNECTOR_VERSION;
|
|
1534
1535
|
const api = deps.api ?? createConnectApiClient(options.apiBaseUrl);
|
|
@@ -1593,10 +1594,18 @@ async function runConnect(options, deps = {}) {
|
|
|
1593
1594
|
})),
|
|
1594
1595
|
apiUrl: options.apiBaseUrl,
|
|
1595
1596
|
hostedMcpUrl: registration.hosted_mcp_url,
|
|
1597
|
+
x402BindingSigner: setup.x402_binding_signer ?? void 0,
|
|
1596
1598
|
warn: log
|
|
1597
1599
|
});
|
|
1598
1600
|
log(`Stored Haven identity credential locally: ${credentialPaths.identityPath}`);
|
|
1599
1601
|
log(`Stored local signer credential locally: ${credentialPaths.signerPath}`);
|
|
1602
|
+
if (setup.x402_binding_signer) {
|
|
1603
|
+
log("Configured x402 binding signer for the local signer.");
|
|
1604
|
+
} else {
|
|
1605
|
+
log(
|
|
1606
|
+
"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."
|
|
1607
|
+
);
|
|
1608
|
+
}
|
|
1600
1609
|
const runtimeInstall = await runRuntimeInstall({
|
|
1601
1610
|
runtime: options.runtime,
|
|
1602
1611
|
hostedMcpUrl: registration.hosted_mcp_url,
|