@capxul/mcp 4.2.0-rc.5 → 4.2.0-rc.7
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 +3 -46
- 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": "8686db25e55ef5d7e7b3b6a4314e077c5e00d54a",
|
|
4
|
+
"tree": "dbde050fc2c894e1eba477c371d19d6999690ee8",
|
|
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.7"
|
|
11
11
|
}
|
package/dist/main.mjs
CHANGED
|
@@ -12258,7 +12258,7 @@ const moneyExecutionContract = {
|
|
|
12258
12258
|
};
|
|
12259
12259
|
//#endregion
|
|
12260
12260
|
//#region ../../packages/sdk/package.json
|
|
12261
|
-
var version$1 = "4.2.0-rc.
|
|
12261
|
+
var version$1 = "4.2.0-rc.7";
|
|
12262
12262
|
//#endregion
|
|
12263
12263
|
//#region ../../packages/sdk/src/telemetry/exception-projection.ts
|
|
12264
12264
|
/** Fixed fallback for failures that have no safe message. */
|
|
@@ -19208,7 +19208,6 @@ function orgIdBody(orgId) {
|
|
|
19208
19208
|
//#region ../../packages/sdk/src/adapters/org/ConvexOrganizationAdapter.ts
|
|
19209
19209
|
const DEFAULT_FUNCTIONS$1 = {
|
|
19210
19210
|
listAll: makeFunctionReference(CAPXUL_FUNCTIONS["org/queries"].listAll),
|
|
19211
|
-
pendingSetup: makeFunctionReference(CAPXUL_FUNCTIONS["org/queries"].pendingSetup),
|
|
19212
19211
|
listRoles: makeFunctionReference(CAPXUL_FUNCTIONS["org/queries"].listRolesByOrgId),
|
|
19213
19212
|
listMembers: makeFunctionReference(CAPXUL_FUNCTIONS["org/queries"].listMembersByOrgId),
|
|
19214
19213
|
readTreasury: makeFunctionReference(CAPXUL_FUNCTIONS["org/actions"].readTreasury),
|
|
@@ -19244,9 +19243,6 @@ var ConvexOrganizationAdapter = class {
|
|
|
19244
19243
|
return brandOrgView(wire, treasury, viewerRole);
|
|
19245
19244
|
})))), Effect.catchDefect((cause) => Effect.fail(toOrgError("listOrgs", cause))));
|
|
19246
19245
|
}
|
|
19247
|
-
pendingSetup(input) {
|
|
19248
|
-
return this.#convex.query(this.#fns.pendingSetup, copyInvocationObservation(input, {})).pipe(Effect.mapError((error) => orgErrorFromCapxul("pendingSetup", error.publicError, error)), Effect.map((wire) => wire === null ? null : { orgId: toOrgId(wire.orgId) }), Effect.catchDefect((cause) => Effect.fail(toOrgError("pendingSetup", cause))));
|
|
19249
|
-
}
|
|
19250
19246
|
readTreasury(input) {
|
|
19251
19247
|
return this.#readTreasuryWire(input).pipe(Effect.catchDefect((cause) => Effect.fail(toOrgError("readTreasury", cause))));
|
|
19252
19248
|
}
|
|
@@ -46027,43 +46023,6 @@ function startSignerReadinessOnClaim(actor, signer) {
|
|
|
46027
46023
|
browserSigner.ensureWalletReady?.().catch(() => {});
|
|
46028
46024
|
});
|
|
46029
46025
|
}
|
|
46030
|
-
/**
|
|
46031
|
-
* Attach a pending Organization when the identity becomes claimed.
|
|
46032
|
-
*
|
|
46033
|
-
* A reload during Organization setup used to leave the app re-submitting the
|
|
46034
|
-
* stored draft, and that second submission raced the controller's resume on
|
|
46035
|
-
* `ReadSession` — the loser was refused with `SUPERSEDED`. The backend already
|
|
46036
|
-
* knows the truth: `pendingSetup()` reports the owner's Organization whose
|
|
46037
|
-
* setup has not finished. The SDK asks once per authenticated user and sends
|
|
46038
|
-
* `AttachOrganization`, which the identity flow runs as `orgLane(…, attach)`.
|
|
46039
|
-
* The app then re-submits nothing.
|
|
46040
|
-
*
|
|
46041
|
-
* The read is fire-and-forget, as the signer readiness cycle is: a failure is
|
|
46042
|
-
* swallowed and the ask is released, so the next state change retries. The ask
|
|
46043
|
-
* is held to ONE per authUserId, so the claimed transitions that follow (the
|
|
46044
|
-
* org lane's own) start no second read, and a new session asks again.
|
|
46045
|
-
*/
|
|
46046
|
-
function attachPendingOrganizationOnClaim(actor, organizationPort) {
|
|
46047
|
-
const pendingSetup = organizationPort?.pendingSetup?.bind(organizationPort);
|
|
46048
|
-
if (pendingSetup === void 0) return () => {};
|
|
46049
|
-
let askedFor = null;
|
|
46050
|
-
return actor.subscribe((state) => {
|
|
46051
|
-
if (state.phase !== "authenticated" || state.account.at !== "claimed") return;
|
|
46052
|
-
if (state.account.org !== null) return;
|
|
46053
|
-
const authUserId = state.session.authUserId;
|
|
46054
|
-
if (askedFor === authUserId) return;
|
|
46055
|
-
askedFor = authUserId;
|
|
46056
|
-
Effect.runPromise(pendingSetup({})).then((pending) => {
|
|
46057
|
-
if (pending === null) return;
|
|
46058
|
-
return Effect.runPromise(actor.ask({
|
|
46059
|
-
_tag: "AttachOrganization",
|
|
46060
|
-
orgId: String(pending.orgId)
|
|
46061
|
-
}));
|
|
46062
|
-
}).catch(() => {
|
|
46063
|
-
askedFor = null;
|
|
46064
|
-
});
|
|
46065
|
-
});
|
|
46066
|
-
}
|
|
46067
46026
|
function assembleCapxulClient(input) {
|
|
46068
46027
|
const observation = input;
|
|
46069
46028
|
const authCache = input.authCache ?? detectAuthCacheAdapter();
|
|
@@ -46093,20 +46052,18 @@ function assembleCapxulClient(input) {
|
|
|
46093
46052
|
}, failureObservation, normalizeCapxulOperation(`identity.${record.event}`), "machine");
|
|
46094
46053
|
});
|
|
46095
46054
|
const unsubscribeSignerReadiness = startSignerReadinessOnClaim(actor, input.signer);
|
|
46096
|
-
const selectedOrgPort = input.orgPort ?? input.orgDeploymentPort;
|
|
46097
|
-
const unsubscribePendingOrganization = attachPendingOrganizationOnClaim(actor, selectedOrgPort);
|
|
46098
46055
|
let stopPromise = null;
|
|
46099
46056
|
const stopActor = () => {
|
|
46100
46057
|
if (stopPromise === null) {
|
|
46101
46058
|
unsubscribeProductTelemetry();
|
|
46102
46059
|
unsubscribeFailureObservation();
|
|
46103
46060
|
unsubscribeSignerReadiness();
|
|
46104
|
-
unsubscribePendingOrganization();
|
|
46105
46061
|
stopPromise = effectRunner.runPromise(Scope.close(scope, Exit.void));
|
|
46106
46062
|
}
|
|
46107
46063
|
return stopPromise;
|
|
46108
46064
|
};
|
|
46109
46065
|
if (input.signal !== void 0) input.signal.addEventListener("abort", () => void stopActor(), { once: true });
|
|
46066
|
+
const selectedOrgPort = input.orgPort ?? input.orgDeploymentPort;
|
|
46110
46067
|
let detectPendingOrgInvitations;
|
|
46111
46068
|
let kickProvisioning;
|
|
46112
46069
|
const financialOps = makeFinancialOpsMethods({
|
|
@@ -47793,7 +47750,7 @@ function stdioIdentity(env = process.env, options = {}) {
|
|
|
47793
47750
|
}
|
|
47794
47751
|
//#endregion
|
|
47795
47752
|
//#region package.json
|
|
47796
|
-
var version = "4.2.0-rc.
|
|
47753
|
+
var version = "4.2.0-rc.7";
|
|
47797
47754
|
//#endregion
|
|
47798
47755
|
//#region src/deps.ts
|
|
47799
47756
|
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.7",
|
|
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/sdk": "4.2.0-rc.7",
|
|
55
|
+
"@capxul/typescript-config": "0.0.0"
|
|
56
56
|
},
|
|
57
57
|
"scripts": {
|
|
58
58
|
"dev": "vp exec tsx src/main.ts serve",
|