@capxul/mcp 4.2.0-rc.7 → 4.2.0-rc.8
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/capxul-source.json +3 -3
- package/dist/main.mjs +14 -9
- package/package.json +3 -3
package/dist/capxul-source.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"source": {
|
|
3
|
-
"commit": "
|
|
4
|
-
"tree": "
|
|
3
|
+
"commit": "29f8bbef5a60b623572ba982e895a10b47aaba27",
|
|
4
|
+
"tree": "9d831c3273591ecc4767094f887088781e786531",
|
|
5
5
|
"branch": "codex/programme-rc",
|
|
6
6
|
"repository": "https://github.com/Xelmar-tech/infrastructure",
|
|
7
7
|
"lockfileSha256": "5870f53b72706d103220c1bcf733cb4fb71196aea32a9cfbdc277d73cc959264"
|
|
8
8
|
},
|
|
9
9
|
"name": "@capxul/mcp",
|
|
10
|
-
"version": "4.2.0-rc.
|
|
10
|
+
"version": "4.2.0-rc.8"
|
|
11
11
|
}
|
package/dist/main.mjs
CHANGED
|
@@ -8536,6 +8536,8 @@ const BootstrapEnvelope = Schema.Struct({
|
|
|
8536
8536
|
siteBaseUrl: Schema.String,
|
|
8537
8537
|
openfortPublishableKey: Schema.String,
|
|
8538
8538
|
shieldPublishableKey: Schema.String,
|
|
8539
|
+
/** Which Openfort third-party auth provider the signer presents; absent means better-auth. */
|
|
8540
|
+
openfortAuthProvider: Schema.optional(Schema.Literals(["better-auth", "oidc"])),
|
|
8539
8541
|
engineeringTelemetry: Schema.optional(EngineeringTelemetryBootstrapPolicy)
|
|
8540
8542
|
})
|
|
8541
8543
|
});
|
|
@@ -8658,8 +8660,7 @@ const CAPXUL_FUNCTIONS = {
|
|
|
8658
8660
|
listMine: "org/queries:listMine",
|
|
8659
8661
|
listRolesByOrgId: "org/queries:listRolesByOrgId",
|
|
8660
8662
|
loadByOrgId: "org/queries:loadByOrgId",
|
|
8661
|
-
me: "org/queries:me"
|
|
8662
|
-
pendingSetup: "org/queries:pendingSetup"
|
|
8663
|
+
me: "org/queries:me"
|
|
8663
8664
|
},
|
|
8664
8665
|
"smartAccount/actions": {
|
|
8665
8666
|
claim: "smartAccount/actions:claim",
|
|
@@ -12258,7 +12259,7 @@ const moneyExecutionContract = {
|
|
|
12258
12259
|
};
|
|
12259
12260
|
//#endregion
|
|
12260
12261
|
//#region ../../packages/sdk/package.json
|
|
12261
|
-
var version$1 = "4.2.0-rc.
|
|
12262
|
+
var version$1 = "4.2.0-rc.8";
|
|
12262
12263
|
//#endregion
|
|
12263
12264
|
//#region ../../packages/sdk/src/telemetry/exception-projection.ts
|
|
12264
12265
|
/** Fixed fallback for failures that have no safe message. */
|
|
@@ -15345,6 +15346,7 @@ var HttpBootstrapAdapter = class {
|
|
|
15345
15346
|
siteBaseUrl: normalizeRuntimeUrl("siteBaseUrl", decodedState.siteBaseUrl),
|
|
15346
15347
|
openfortPublishableKey: decodedState.openfortPublishableKey,
|
|
15347
15348
|
shieldPublishableKey: decodedState.shieldPublishableKey,
|
|
15349
|
+
...decodedState.openfortAuthProvider === void 0 ? {} : { openfortAuthProvider: decodedState.openfortAuthProvider },
|
|
15348
15350
|
...decodedEngineeringTelemetry !== void 0 && Result.isSuccess(decodedEngineeringTelemetry) ? { engineeringTelemetry: decodedEngineeringTelemetry.success } : {}
|
|
15349
15351
|
};
|
|
15350
15352
|
},
|
|
@@ -42764,8 +42766,9 @@ function createOpenfortBrowserSignerFromBootstrap(bootstrap, options = {}) {
|
|
|
42764
42766
|
});
|
|
42765
42767
|
throw failOpenfort("configure", "no-secure-context", /* @__PURE__ */ new Error("Web Crypto unavailable: browser is not a secure context"));
|
|
42766
42768
|
}
|
|
42767
|
-
|
|
42768
|
-
|
|
42769
|
+
const authProvider = bootstrap.openfortAuthProvider ?? "better-auth";
|
|
42770
|
+
function accessTokenUrl() {
|
|
42771
|
+
return authProvider === "oidc" ? `${authBaseUrl}/convex/token` : `${authBaseUrl}/get-session`;
|
|
42769
42772
|
}
|
|
42770
42773
|
function encryptionSessionUrl() {
|
|
42771
42774
|
return `${authBaseUrl}/encryption-session`;
|
|
@@ -42788,7 +42791,7 @@ function createOpenfortBrowserSignerFromBootstrap(bootstrap, options = {}) {
|
|
|
42788
42791
|
tokenCalls += 1;
|
|
42789
42792
|
const tokenStartedAt = Date.now();
|
|
42790
42793
|
try {
|
|
42791
|
-
const response = await fetch(
|
|
42794
|
+
const response = await fetch(accessTokenUrl(), {
|
|
42792
42795
|
credentials: "include",
|
|
42793
42796
|
cache: "no-store"
|
|
42794
42797
|
});
|
|
@@ -42801,7 +42804,8 @@ function createOpenfortBrowserSignerFromBootstrap(bootstrap, options = {}) {
|
|
|
42801
42804
|
});
|
|
42802
42805
|
return null;
|
|
42803
42806
|
}
|
|
42804
|
-
const
|
|
42807
|
+
const body = await response.json();
|
|
42808
|
+
const token = (authProvider === "oidc" ? body.token : body.session?.token)?.trim();
|
|
42805
42809
|
if (token === void 0 || token.length === 0) {
|
|
42806
42810
|
diagnostic?.trace("openfort.token", {
|
|
42807
42811
|
ok: false,
|
|
@@ -42813,6 +42817,7 @@ function createOpenfortBrowserSignerFromBootstrap(bootstrap, options = {}) {
|
|
|
42813
42817
|
diagnostic?.trace("openfort.token", {
|
|
42814
42818
|
ok: true,
|
|
42815
42819
|
tokenPresent: true,
|
|
42820
|
+
provider: authProvider,
|
|
42816
42821
|
call: tokenCalls,
|
|
42817
42822
|
duration_ms: Date.now() - tokenStartedAt,
|
|
42818
42823
|
elapsed_ms: sinceCycleStart()
|
|
@@ -42831,7 +42836,7 @@ function createOpenfortBrowserSignerFromBootstrap(bootstrap, options = {}) {
|
|
|
42831
42836
|
baseConfiguration: { publishableKey: bootstrap.openfortPublishableKey },
|
|
42832
42837
|
shieldConfiguration: { shieldPublishableKey: bootstrap.shieldPublishableKey },
|
|
42833
42838
|
thirdPartyAuth: {
|
|
42834
|
-
provider: o$13.BETTER_AUTH,
|
|
42839
|
+
provider: authProvider === "oidc" ? o$13.OIDC : o$13.BETTER_AUTH,
|
|
42835
42840
|
getAccessToken: fetchBetterAuthAccessToken
|
|
42836
42841
|
}
|
|
42837
42842
|
});
|
|
@@ -47750,7 +47755,7 @@ function stdioIdentity(env = process.env, options = {}) {
|
|
|
47750
47755
|
}
|
|
47751
47756
|
//#endregion
|
|
47752
47757
|
//#region package.json
|
|
47753
|
-
var version = "4.2.0-rc.
|
|
47758
|
+
var version = "4.2.0-rc.8";
|
|
47754
47759
|
//#endregion
|
|
47755
47760
|
//#region src/deps.ts
|
|
47756
47761
|
const NO_IDENTITY = async () => void 0;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@capxul/mcp",
|
|
3
|
-
"version": "4.2.0-rc.
|
|
3
|
+
"version": "4.2.0-rc.8",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Capxul MCP server for auth, Account readiness, identity, Organizations, relationships, requests, destinations, and testnet funding over Streamable HTTP.",
|
|
6
6
|
"keywords": [
|
|
@@ -51,8 +51,8 @@
|
|
|
51
51
|
"vite": "npm:@voidzero-dev/vite-plus-core@0.3.0",
|
|
52
52
|
"vite-plus": "0.3.0",
|
|
53
53
|
"@capxul/config": "0.3.0",
|
|
54
|
-
"@capxul/
|
|
55
|
-
"@capxul/
|
|
54
|
+
"@capxul/typescript-config": "0.0.0",
|
|
55
|
+
"@capxul/sdk": "4.2.0-rc.8"
|
|
56
56
|
},
|
|
57
57
|
"scripts": {
|
|
58
58
|
"dev": "vp exec tsx src/main.ts serve",
|