@muxoai/platform 1.4.0 → 1.4.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/.agents/plugins/marketplace.json +2 -2
- package/.claude-plugin/marketplace.json +2 -2
- package/ARCHITECTURE.md +16 -6
- package/README.md +2 -2
- package/dist/cli.js +323 -13
- package/dist/composio-catalog.d.ts +234 -0
- package/dist/composio-catalog.js +1894 -0
- package/dist/config.d.ts +16 -0
- package/dist/config.js +27 -1
- package/dist/durable-workflow.d.ts +45 -0
- package/dist/durable-workflow.js +90 -0
- package/dist/engine.d.ts +293 -5
- package/dist/engine.js +1502 -88
- package/dist/mcp-schema.d.ts +286 -0
- package/dist/mcp-schema.js +2559 -0
- package/dist/mcp.d.ts +2 -30
- package/dist/mcp.js +913 -558
- package/dist/memory-graph.d.ts +21 -0
- package/dist/memory-graph.js +173 -0
- package/dist/nl.js +155 -0
- package/dist/oauth.d.ts +32 -0
- package/dist/oauth.js +134 -0
- package/dist/policy.d.ts +182 -1
- package/dist/policy.js +1524 -0
- package/dist/providers/composio-instant.js +262 -7
- package/dist/providers/composio-sdk.d.ts +125 -5
- package/dist/providers/composio-sdk.js +901 -82
- package/dist/providers/microsoft-governance.d.ts +28 -1
- package/dist/providers/microsoft-governance.js +224 -11
- package/dist/providers/stripe-billing.d.ts +42 -0
- package/dist/providers/stripe-billing.js +230 -1
- package/dist/providers/stripe-projects.d.ts +455 -3
- package/dist/providers/stripe-projects.js +2570 -129
- package/dist/providers/supermemory.d.ts +74 -1
- package/dist/providers/supermemory.js +426 -0
- package/dist/provisioning-managed.d.ts +50 -0
- package/dist/provisioning-managed.js +155 -0
- package/dist/sdk.d.ts +440 -3
- package/dist/sdk.js +305 -3
- package/dist/server.js +2343 -264
- package/dist/store.d.ts +113 -6
- package/dist/store.js +677 -52
- package/dist/types.d.ts +207 -3
- package/dist/ui/console-html.d.ts +40 -1
- package/dist/ui/console-html.js +1813 -629
- package/dist/ui/design-tokens.js +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +4 -3
- package/plugins/muxo/.claude-plugin/plugin.json +2 -2
- package/plugins/muxo/.codex-plugin/plugin.json +15 -8
- package/plugins/muxo/.cursor-plugin/plugin.json +30 -0
- package/plugins/muxo/hooks/session-start.sh +15 -3
- package/plugins/muxo/hooks/user-prompt-submit.sh +14 -1
- package/plugins/muxo/mcp.json +0 -10
- package/plugins/muxo/plugin.json +4 -4
- package/plugins/muxo/skills/muxo/SKILL.md +59 -9
- package/plugins/muxo/skills/muxo/references/cli.md +5 -1
- package/plugins/muxo/skills/muxo/references/mcp.md +13 -7
- package/plugins/muxo/skills/muxo-activity-summary/SKILL.md +81 -0
- package/plugins/muxo/skills/setup/SKILL.md +9 -1
- package/src/catalogues/stripe-projects-catalog.json +140 -0
package/dist/store.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DatabaseSync } from "node:sqlite";
|
|
2
|
-
import type { ActionPlan, ApiKeyRecord, ByokKeyRecord, ConnectionRecord, ExecutionReceipt, ExecutionRun, GovernanceDecisionRecord, GovernancePolicy, LedgerEntry, MemoryContextSummary, ProviderLane, ProvisionedResource, RiskLevel, SupplierSettlement, SupplierSettlementSummary, TemporalGraphFact, User, Workspace, WorkspaceMemoryRecord } from "./types.js";
|
|
2
|
+
import type { ActionPlan, ApiKeyRecord, ByokKeyRecord, ConnectionRecord, ExecutionReceipt, ExecutionRun, GovernanceDecisionRecord, GovernancePolicy, LedgerEntry, MemoryContextSummary, ProviderLane, ProvisionedResource, RiskLevel, SupplierSettlement, SupplierSettlementSummary, TeamOnboardingKit, TemporalGraphFact, User, Workspace, WorkspaceMembership, WorkspaceMemoryRecord, WorkspaceRole, WorkspaceSummary } from "./types.js";
|
|
3
3
|
export declare const BYOK_PROVIDER_CATALOG: Record<string, {
|
|
4
4
|
category: "llm" | "supplier";
|
|
5
5
|
envVarName: string;
|
|
@@ -10,6 +10,11 @@ export declare class MuxoStore {
|
|
|
10
10
|
private readonly vaultKey;
|
|
11
11
|
constructor(dbPath: string, vaultKey: Buffer);
|
|
12
12
|
private initSchema;
|
|
13
|
+
/**
|
|
14
|
+
* Older databases declared receipts.run_id UNIQUE, which blocks cancellation receipts from
|
|
15
|
+
* superseding a run's original receipt. SQLite cannot drop a constraint, so rebuild the table.
|
|
16
|
+
*/
|
|
17
|
+
private migrateReceiptsAllowMultiplePerRun;
|
|
13
18
|
encryptSecrets(workspaceId: string, secrets: Record<string, string>): string;
|
|
14
19
|
decryptSecrets(workspaceId: string, payloadHex: string | null): Record<string, string>;
|
|
15
20
|
ensureDefaultWorkspace(): {
|
|
@@ -36,7 +41,7 @@ export declare class MuxoStore {
|
|
|
36
41
|
sessionToken: string;
|
|
37
42
|
} | null;
|
|
38
43
|
createSession(userId: string, workspaceId: string): string;
|
|
39
|
-
resolveAuthToken(token: string): {
|
|
44
|
+
resolveAuthToken(token: string, workspaceOverrideId?: string | null): {
|
|
40
45
|
user: User;
|
|
41
46
|
workspace: Workspace;
|
|
42
47
|
authType: "session" | "api_key";
|
|
@@ -44,18 +49,101 @@ export declare class MuxoStore {
|
|
|
44
49
|
} | null;
|
|
45
50
|
getUser(userId: string): User | null;
|
|
46
51
|
getWorkspace(workspaceId: string): Workspace | null;
|
|
52
|
+
ensureWorkspaceMembership(params: {
|
|
53
|
+
workspaceId: string;
|
|
54
|
+
userId: string;
|
|
55
|
+
role?: WorkspaceRole;
|
|
56
|
+
teamName?: string | null;
|
|
57
|
+
joinedViaKeyId?: string | null;
|
|
58
|
+
}): WorkspaceMembership;
|
|
59
|
+
userCanAccessWorkspace(userId: string, workspaceId: string): boolean;
|
|
60
|
+
listUserWorkspaces(userId: string, activeWorkspaceId?: string): WorkspaceSummary[];
|
|
61
|
+
switchUserWorkspace(userId: string, workspaceId: string): {
|
|
62
|
+
user: User;
|
|
63
|
+
workspace: Workspace;
|
|
64
|
+
} | null;
|
|
65
|
+
createWorkspaceForUser(params: {
|
|
66
|
+
userId: string;
|
|
67
|
+
name: string;
|
|
68
|
+
teamName?: string | null;
|
|
69
|
+
role?: WorkspaceRole;
|
|
70
|
+
switchActive?: boolean;
|
|
71
|
+
}): {
|
|
72
|
+
workspace: Workspace;
|
|
73
|
+
apiKey: string;
|
|
74
|
+
keyRecord: ApiKeyRecord;
|
|
75
|
+
membership: WorkspaceMembership;
|
|
76
|
+
};
|
|
77
|
+
joinWorkspaceWithApiKey(params: {
|
|
78
|
+
apiKey: string;
|
|
79
|
+
userId?: string | null;
|
|
80
|
+
switchActive?: boolean;
|
|
81
|
+
}): {
|
|
82
|
+
workspace: Workspace;
|
|
83
|
+
keyRecord: ApiKeyRecord;
|
|
84
|
+
user: User | null;
|
|
85
|
+
membership: WorkspaceMembership | null;
|
|
86
|
+
} | null;
|
|
87
|
+
onboardTeam(params: {
|
|
88
|
+
currentWorkspaceId: string;
|
|
89
|
+
userId: string;
|
|
90
|
+
userEmail?: string | null;
|
|
91
|
+
teamName: string;
|
|
92
|
+
role?: WorkspaceRole;
|
|
93
|
+
mode?: "shared_workspace" | "dedicated_workspace";
|
|
94
|
+
environment?: "live" | "test";
|
|
95
|
+
scopes?: string[];
|
|
96
|
+
inviteEmail?: string | null;
|
|
97
|
+
baseUrl: string;
|
|
98
|
+
}): TeamOnboardingKit;
|
|
47
99
|
updateWorkspacePolicy(workspaceId: string, policy: Partial<GovernancePolicy>): Workspace;
|
|
48
100
|
createApiKey(params: {
|
|
49
101
|
workspaceId: string;
|
|
50
102
|
name: string;
|
|
51
103
|
environment?: "live" | "test";
|
|
52
104
|
scopes?: string[];
|
|
105
|
+
teamName?: string | null;
|
|
106
|
+
role?: WorkspaceRole;
|
|
107
|
+
createdByEmail?: string | null;
|
|
53
108
|
}): {
|
|
54
109
|
record: ApiKeyRecord;
|
|
55
110
|
secretKey: string;
|
|
56
111
|
};
|
|
57
112
|
listApiKeys(workspaceId: string): ApiKeyRecord[];
|
|
58
113
|
revokeApiKey(workspaceId: string, keyId: string): boolean;
|
|
114
|
+
/** Looks up an active workspace API key by its raw secret. */
|
|
115
|
+
findActiveApiKey(secret: string): {
|
|
116
|
+
id: string;
|
|
117
|
+
workspaceId: string;
|
|
118
|
+
} | null;
|
|
119
|
+
saveOAuthRefreshToken(params: {
|
|
120
|
+
refreshToken: string;
|
|
121
|
+
accessToken: string;
|
|
122
|
+
keyId: string;
|
|
123
|
+
workspaceId: string;
|
|
124
|
+
clientId: string;
|
|
125
|
+
scope: string;
|
|
126
|
+
}): void;
|
|
127
|
+
getOAuthRefreshToken(refreshToken: string): {
|
|
128
|
+
keyId: string;
|
|
129
|
+
workspaceId: string;
|
|
130
|
+
clientId: string;
|
|
131
|
+
scope: string;
|
|
132
|
+
accessToken: string;
|
|
133
|
+
} | null;
|
|
134
|
+
deleteOAuthRefreshToken(refreshToken: string): void;
|
|
135
|
+
/**
|
|
136
|
+
* Maps a verified Clerk session to a local user. Only a verified email can link to an
|
|
137
|
+
* existing account; otherwise a fresh user and workspace are created so an unverified
|
|
138
|
+
* address can never take over someone else's account.
|
|
139
|
+
*/
|
|
140
|
+
provisionClerkUser(clerkUserId: string, identity: {
|
|
141
|
+
email: string | null;
|
|
142
|
+
emailVerified: boolean;
|
|
143
|
+
name: string | null;
|
|
144
|
+
}, ownerWorkspaceId: string | null): User;
|
|
145
|
+
getClerkLinkedUser(clerkUserId: string): User | null;
|
|
146
|
+
getUserByEmail(email: string): User | null;
|
|
59
147
|
upsertConnection(params: {
|
|
60
148
|
workspaceId: string;
|
|
61
149
|
lane: ProviderLane;
|
|
@@ -81,6 +169,8 @@ export declare class MuxoStore {
|
|
|
81
169
|
metadata?: Record<string, unknown>;
|
|
82
170
|
}): ProvisionedResource;
|
|
83
171
|
getResource(workspaceId: string, resourceNameOrId: string): ProvisionedResource | null;
|
|
172
|
+
findResourceAnyWorkspace(resourceNameOrId: string): ProvisionedResource | null;
|
|
173
|
+
getDecryptedResourceSecrets(workspaceId: string, resourceNameOrId: string): Record<string, string>;
|
|
84
174
|
listResources(workspaceId: string): ProvisionedResource[];
|
|
85
175
|
getDecryptedWorkspaceEnv(workspaceId: string): Record<string, string>;
|
|
86
176
|
normalizeByokProvider(providerInput: string): {
|
|
@@ -108,6 +198,7 @@ export declare class MuxoStore {
|
|
|
108
198
|
memoryContext?: MemoryContextSummary | null;
|
|
109
199
|
}): ActionPlan;
|
|
110
200
|
getPlan(workspaceId: string, planId: string): ActionPlan | null;
|
|
201
|
+
getPlanById(planId: string): ActionPlan | null;
|
|
111
202
|
listPlans(workspaceId: string, limit?: number): ActionPlan[];
|
|
112
203
|
updatePlanApproval(params: {
|
|
113
204
|
workspaceId: string;
|
|
@@ -130,6 +221,15 @@ export declare class MuxoStore {
|
|
|
130
221
|
run: ExecutionRun;
|
|
131
222
|
receipt: ExecutionReceipt;
|
|
132
223
|
};
|
|
224
|
+
cancelRun(params: {
|
|
225
|
+
workspaceId: string;
|
|
226
|
+
runId: string;
|
|
227
|
+
cancelledBy: string;
|
|
228
|
+
reason?: string;
|
|
229
|
+
}): {
|
|
230
|
+
run: ExecutionRun;
|
|
231
|
+
receipt: ExecutionReceipt;
|
|
232
|
+
};
|
|
133
233
|
private issueReceipt;
|
|
134
234
|
verifyReceipt(receipt: ExecutionReceipt): boolean;
|
|
135
235
|
getRun(workspaceId: string, runId: string): ExecutionRun | null;
|
|
@@ -213,9 +313,13 @@ export declare class MuxoStore {
|
|
|
213
313
|
claimedAt: string | null;
|
|
214
314
|
expiresAt: string;
|
|
215
315
|
} | null;
|
|
316
|
+
/**
|
|
317
|
+
* Creates a claim link for a workspace. A claim minted without an email (at agent signup)
|
|
318
|
+
* stays unusable until the agent names the owner; naming one reuses that same link.
|
|
319
|
+
*/
|
|
216
320
|
createAgentClaim(params: {
|
|
217
321
|
workspaceId: string;
|
|
218
|
-
email: string;
|
|
322
|
+
email: string | null;
|
|
219
323
|
baseUrl: string;
|
|
220
324
|
}): {
|
|
221
325
|
claimSlug: string;
|
|
@@ -224,13 +328,16 @@ export declare class MuxoStore {
|
|
|
224
328
|
status: "invited" | "claimed";
|
|
225
329
|
expiresAt: string;
|
|
226
330
|
};
|
|
227
|
-
|
|
331
|
+
/** Returns a claim only while it can still be accepted (invited and not expired). */
|
|
332
|
+
getOpenAgentClaim(claimSlug: string): {
|
|
228
333
|
claimSlug: string;
|
|
229
334
|
workspace: Workspace;
|
|
230
335
|
targetEmail: string;
|
|
231
|
-
status: "
|
|
232
|
-
|
|
336
|
+
status: "invited";
|
|
337
|
+
expiresAt: string;
|
|
233
338
|
} | null;
|
|
339
|
+
/** Transfers workspace ownership to the verified claimer and closes the claim. */
|
|
340
|
+
acceptAgentClaim(claimSlug: string, userId: string): Workspace | null;
|
|
234
341
|
private mapUser;
|
|
235
342
|
private mapWorkspace;
|
|
236
343
|
private mapConnection;
|