@capxul/mcp 4.1.3 → 4.1.4
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 +14 -4
- package/package.json +2 -2
package/dist/main.mjs
CHANGED
|
@@ -5177,6 +5177,7 @@ const ActivityFilterProps = {
|
|
|
5177
5177
|
filter_status: Schema.optional(Schema.Array(Schema.Literals([
|
|
5178
5178
|
"pending",
|
|
5179
5179
|
"settling",
|
|
5180
|
+
"unresolved",
|
|
5180
5181
|
"pending_claim",
|
|
5181
5182
|
"scheduled",
|
|
5182
5183
|
"streaming",
|
|
@@ -10353,6 +10354,7 @@ function verifiedOperationFields(attributes) {
|
|
|
10353
10354
|
/** Observe a public Effect that already uses the canonical CapxulError channel. */
|
|
10354
10355
|
async function runCapxulEffect(effect, controls, operation = CAPXUL_OPERATIONS.runtime.port, runPromise = Effect.runPromise) {
|
|
10355
10356
|
const invocation = readInvocationObservation(controls);
|
|
10357
|
+
let owningSpan;
|
|
10356
10358
|
const correlationId = safeEngineeringIdentifier(invocation?.context?.correlationId ?? controls?.correlation_id);
|
|
10357
10359
|
const context = invocation?.active === false ? void 0 : sanitizeObservationContext(invocation?.context);
|
|
10358
10360
|
const fields = {
|
|
@@ -10379,6 +10381,10 @@ async function runCapxulEffect(effect, controls, operation = CAPXUL_OPERATIONS.r
|
|
|
10379
10381
|
const failure = error instanceof CapxulError ? error : void 0;
|
|
10380
10382
|
const outcome = Exit.isSuccess(exit) ? "succeeded" : failure?.code === "CANCELLED" ? "cancelled" : failure !== void 0 && EXPECTED_OPERATION_OUTCOMES.has(failure.code) ? "refused" : "failed";
|
|
10381
10383
|
const span = yield* Effect.currentSpan.pipe(Effect.orDie);
|
|
10384
|
+
if (Exit.isFailure(exit) && invocation?.active === true) owningSpan = Object.freeze({
|
|
10385
|
+
traceId: span.traceId,
|
|
10386
|
+
spanId: span.spanId
|
|
10387
|
+
});
|
|
10382
10388
|
const completion = {
|
|
10383
10389
|
...fields,
|
|
10384
10390
|
...verifiedOperationFields(span.attributes),
|
|
@@ -10392,7 +10398,10 @@ async function runCapxulEffect(effect, controls, operation = CAPXUL_OPERATIONS.r
|
|
|
10392
10398
|
yield* (outcome === "failed" ? Effect.logError("capxul_sdk_operation") : Effect.logInfo("capxul_sdk_operation")).pipe(Effect.annotateLogs(completion), Effect.catchCause(() => Effect.void));
|
|
10393
10399
|
return yield* Exit.isSuccess(exit) ? Effect.succeed(exit.value) : Effect.failCause(exit.cause);
|
|
10394
10400
|
}).pipe(Effect.withSpan(operation)), controls));
|
|
10395
|
-
return !result.ok && invocation !== void 0 ? markFailureInvocationSnapshot(result,
|
|
10401
|
+
return !result.ok && invocation !== void 0 ? markFailureInvocationSnapshot(result, {
|
|
10402
|
+
...invocation,
|
|
10403
|
+
...owningSpan === void 0 ? {} : { owningSpan }
|
|
10404
|
+
}) : result;
|
|
10396
10405
|
}
|
|
10397
10406
|
/** Map machine-internal failure state onto the public SDK error vocabulary. */
|
|
10398
10407
|
function publicIdentityFailure(failure) {
|
|
@@ -11559,7 +11568,7 @@ const moneyExecutionContract = {
|
|
|
11559
11568
|
};
|
|
11560
11569
|
//#endregion
|
|
11561
11570
|
//#region ../../packages/sdk/package.json
|
|
11562
|
-
var version$1 = "4.1.
|
|
11571
|
+
var version$1 = "4.1.4";
|
|
11563
11572
|
//#endregion
|
|
11564
11573
|
//#region ../../packages/sdk/src/telemetry/exception-projection.ts
|
|
11565
11574
|
/** Fixed fallback for failures that have no safe message. */
|
|
@@ -11698,7 +11707,8 @@ function report(adapter, kind, operation, cause, invocation, origin, authoritati
|
|
|
11698
11707
|
}, {
|
|
11699
11708
|
active: invocation.active,
|
|
11700
11709
|
...invocation.actorId === void 0 ? {} : { actorId: invocation.actorId },
|
|
11701
|
-
...context === void 0 ? {} : { context }
|
|
11710
|
+
...context === void 0 ? {} : { context },
|
|
11711
|
+
...invocation.owningSpan === void 0 ? {} : { owningSpan: invocation.owningSpan }
|
|
11702
11712
|
});
|
|
11703
11713
|
try {
|
|
11704
11714
|
ignoreDeliveryFailure(kind === "operation" ? adapter.captureOperationFailure(failure) : adapter.captureException(failure));
|
|
@@ -46705,7 +46715,7 @@ function stdioIdentity(env = process.env, options = {}) {
|
|
|
46705
46715
|
}
|
|
46706
46716
|
//#endregion
|
|
46707
46717
|
//#region package.json
|
|
46708
|
-
var version = "4.1.
|
|
46718
|
+
var version = "4.1.4";
|
|
46709
46719
|
//#endregion
|
|
46710
46720
|
//#region src/deps.ts
|
|
46711
46721
|
const NO_IDENTITY = async () => void 0;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@capxul/mcp",
|
|
3
|
-
"version": "4.1.
|
|
3
|
+
"version": "4.1.4",
|
|
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,7 +51,7 @@
|
|
|
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/sdk": "4.1.
|
|
54
|
+
"@capxul/sdk": "4.1.4",
|
|
55
55
|
"@capxul/typescript-config": "0.0.0"
|
|
56
56
|
},
|
|
57
57
|
"scripts": {
|