@capxul/mcp 2.0.1 → 2.0.2
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/main.mjs +22 -7
- package/package.json +3 -3
package/dist/main.mjs
CHANGED
|
@@ -240,7 +240,7 @@ function normalizeEmail(email) {
|
|
|
240
240
|
}
|
|
241
241
|
//#endregion
|
|
242
242
|
//#region package.json
|
|
243
|
-
var version$2 = "2.0.
|
|
243
|
+
var version$2 = "2.0.2";
|
|
244
244
|
//#endregion
|
|
245
245
|
//#region ../../packages/errors/src/errors.ts
|
|
246
246
|
const CAPXUL_ERROR_CODES = [
|
|
@@ -6850,6 +6850,7 @@ async function runPortEffect(effect, controls, operation = "port", runPromise =
|
|
|
6850
6850
|
}
|
|
6851
6851
|
/** Map machine-internal failure state onto the public SDK error vocabulary. */
|
|
6852
6852
|
function publicIdentityFailure(failure) {
|
|
6853
|
+
if (failure.error !== void 0) return failure.error;
|
|
6853
6854
|
return new CapxulError(failure.code === "WORK_DIED" ? "UNKNOWN" : failure.code, failure.message, {
|
|
6854
6855
|
...failure.mode === void 0 ? {} : { details: { failure_mode: failure.mode } },
|
|
6855
6856
|
layer: "identity"
|
|
@@ -7799,7 +7800,7 @@ function makeAccountMethods(deps) {
|
|
|
7799
7800
|
const state = result._tag === "Failure" ? deps.actor.snapshot() : result.success;
|
|
7800
7801
|
if (result._tag === "Failure" && state.phase === "authenticated" && state.account.at === "failed" && state.account.failure.code === result.failure.reason) return {
|
|
7801
7802
|
ok: false,
|
|
7802
|
-
error:
|
|
7803
|
+
error: publicIdentityFailure(state.account.failure)
|
|
7803
7804
|
};
|
|
7804
7805
|
if (result._tag === "Failure") return {
|
|
7805
7806
|
ok: false,
|
|
@@ -7811,7 +7812,7 @@ function makeAccountMethods(deps) {
|
|
|
7811
7812
|
};
|
|
7812
7813
|
if (state.phase === "authenticated" && state.account.at === "failed") return {
|
|
7813
7814
|
ok: false,
|
|
7814
|
-
error:
|
|
7815
|
+
error: publicIdentityFailure(state.account.failure)
|
|
7815
7816
|
};
|
|
7816
7817
|
return {
|
|
7817
7818
|
ok: true,
|
|
@@ -8165,7 +8166,7 @@ async function recoverRawDigestSigner(input) {
|
|
|
8165
8166
|
}
|
|
8166
8167
|
//#endregion
|
|
8167
8168
|
//#region ../../packages/sdk/package.json
|
|
8168
|
-
var version = "2.0.
|
|
8169
|
+
var version = "2.0.2";
|
|
8169
8170
|
//#endregion
|
|
8170
8171
|
//#region ../../packages/observability/src/engineering.ts
|
|
8171
8172
|
const SAFE_TRACED_HEADER_NAMES = [
|
|
@@ -13186,7 +13187,20 @@ const OrganizationCreationFailedProps = Schema.Struct({
|
|
|
13186
13187
|
attempt_number: AttemptNumberSchema,
|
|
13187
13188
|
stage: OnboardingStageSchema,
|
|
13188
13189
|
error_code: Schema.String,
|
|
13189
|
-
retryable: Schema.Boolean
|
|
13190
|
+
retryable: Schema.Boolean,
|
|
13191
|
+
failure_reason: Schema.optional(Schema.Literals([
|
|
13192
|
+
"deterministic_address_mismatch",
|
|
13193
|
+
"receipt_provider_unavailable",
|
|
13194
|
+
"receipt_mismatch",
|
|
13195
|
+
"block_provider_unavailable",
|
|
13196
|
+
"authority_event_mismatch",
|
|
13197
|
+
"allowance_timestamp_mismatch",
|
|
13198
|
+
"receipt_identity_unavailable",
|
|
13199
|
+
"receipt_identity_mismatch",
|
|
13200
|
+
"contract_code_unavailable",
|
|
13201
|
+
"contract_state_mismatch",
|
|
13202
|
+
"permission_projection_mismatch"
|
|
13203
|
+
]))
|
|
13190
13204
|
});
|
|
13191
13205
|
const OnboardingIntentSchema = Schema.Literals(["personal", "organization"]);
|
|
13192
13206
|
const OnboardingIntentSelectedProps = Schema.Struct({
|
|
@@ -36618,7 +36632,8 @@ const failureOf = (error) => {
|
|
|
36618
36632
|
return {
|
|
36619
36633
|
code: error.code,
|
|
36620
36634
|
message: error.message,
|
|
36621
|
-
...typeof mode === "string" ? { mode } : {}
|
|
36635
|
+
...typeof mode === "string" ? { mode } : {},
|
|
36636
|
+
error
|
|
36622
36637
|
};
|
|
36623
36638
|
}
|
|
36624
36639
|
if (typeof error === "object" && error !== null && "publicError" in error) return failureOf(error.publicError);
|
|
@@ -36646,7 +36661,7 @@ const modelSession = (session) => ({
|
|
|
36646
36661
|
});
|
|
36647
36662
|
const claimAccount = (input, authUserId, signer) => call("smart-account.claim", Effect.tryPromise({
|
|
36648
36663
|
try: () => signer.getAddress(),
|
|
36649
|
-
catch: () =>
|
|
36664
|
+
catch: (cause) => cause instanceof CapxulError ? cause : Errors.providerError("openfort", "getAddress", cause, { failure_mode: "unknown" })
|
|
36650
36665
|
}).pipe(Effect.flatMap((signerAddress) => input.ports.smartAccount.claim({
|
|
36651
36666
|
authUserId: toAuthUserId(authUserId),
|
|
36652
36667
|
chainId: toChainId(input.chainId),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@capxul/mcp",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.2",
|
|
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": [
|
|
@@ -47,9 +47,9 @@
|
|
|
47
47
|
"typescript": "npm:@typescript/typescript6@6.0.2",
|
|
48
48
|
"vite": "npm:@voidzero-dev/vite-plus-core@0.1.23",
|
|
49
49
|
"vite-plus": "0.1.23",
|
|
50
|
-
"@capxul/backend": "0.1.
|
|
50
|
+
"@capxul/backend": "0.1.8",
|
|
51
51
|
"@capxul/config": "0.1.1",
|
|
52
|
-
"@capxul/sdk": "2.0.
|
|
52
|
+
"@capxul/sdk": "2.0.2",
|
|
53
53
|
"@capxul/types": "0.1.0",
|
|
54
54
|
"@capxul/typescript-config": "0.0.0",
|
|
55
55
|
"@capxul/wire": "0.1.0"
|