@muxoai/platform 1.3.1 → 1.3.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/README.md +10 -2
- package/dist/clerk.d.ts +33 -0
- package/dist/clerk.js +198 -0
- package/dist/cli.js +422 -26
- package/dist/engine.d.ts +21 -1
- package/dist/engine.js +245 -23
- package/dist/mcp.js +2 -1
- package/dist/policy.d.ts +9 -0
- package/dist/policy.js +73 -0
- package/dist/providers/composio-instant.d.ts +3 -0
- package/dist/providers/composio-instant.js +629 -530
- package/dist/providers/microsoft-governance.d.ts +61 -2
- package/dist/providers/microsoft-governance.js +458 -24
- package/dist/providers/stripe-projects.d.ts +4 -1
- package/dist/providers/stripe-projects.js +64 -10
- package/dist/providers/supermemory.d.ts +26 -5
- package/dist/providers/supermemory.js +136 -26
- package/dist/sdk.d.ts +167 -1
- package/dist/sdk.js +113 -2
- package/dist/server.js +176 -16
- package/dist/store.d.ts +25 -1
- package/dist/store.js +236 -3
- package/dist/types.d.ts +86 -0
- package/dist/ui/console-html.d.ts +16 -0
- package/dist/ui/console-html.js +2427 -2226
- package/dist/ui/design-tokens.d.ts +177 -0
- package/dist/ui/design-tokens.js +210 -0
- package/dist/version.d.ts +1 -0
- package/dist/version.js +1 -0
- package/package.json +2 -2
package/dist/types.d.ts
CHANGED
|
@@ -8,6 +8,10 @@ export interface GovernancePolicy {
|
|
|
8
8
|
allowProvisioning: boolean;
|
|
9
9
|
maxCreditsPerRun: number;
|
|
10
10
|
blockedToolSlugs?: string[];
|
|
11
|
+
executionRing?: 0 | 1 | 2 | 3;
|
|
12
|
+
killSwitchActive?: boolean;
|
|
13
|
+
killSwitchReason?: string | null;
|
|
14
|
+
blockDestructiveSql?: boolean;
|
|
11
15
|
}
|
|
12
16
|
export interface User {
|
|
13
17
|
id: string;
|
|
@@ -126,15 +130,82 @@ export interface GovernanceDecisionRecord {
|
|
|
126
130
|
previousHash: string;
|
|
127
131
|
chainVerified: boolean;
|
|
128
132
|
};
|
|
133
|
+
protocolFacets?: {
|
|
134
|
+
sql?: {
|
|
135
|
+
verb: string;
|
|
136
|
+
target: string;
|
|
137
|
+
tables: string;
|
|
138
|
+
functions: string;
|
|
139
|
+
destructive?: boolean;
|
|
140
|
+
};
|
|
141
|
+
k8s?: {
|
|
142
|
+
verb: string;
|
|
143
|
+
resource: string;
|
|
144
|
+
namespace: string;
|
|
145
|
+
name: string;
|
|
146
|
+
subresource: string;
|
|
147
|
+
};
|
|
148
|
+
infra?: {
|
|
149
|
+
provider: string;
|
|
150
|
+
service: string;
|
|
151
|
+
action: string;
|
|
152
|
+
destructive: boolean;
|
|
153
|
+
};
|
|
154
|
+
};
|
|
155
|
+
ringEnforcement?: {
|
|
156
|
+
agentRing: number;
|
|
157
|
+
requiredRing: number;
|
|
158
|
+
allowed: boolean;
|
|
159
|
+
ringLabel: string;
|
|
160
|
+
};
|
|
161
|
+
trustScore?: {
|
|
162
|
+
overall: number;
|
|
163
|
+
tier: "Untrusted" | "Provisional" | "Trusted" | "Verified";
|
|
164
|
+
reliability: number;
|
|
165
|
+
consistency: number;
|
|
166
|
+
};
|
|
167
|
+
contextPoisoning?: {
|
|
168
|
+
safe: boolean;
|
|
169
|
+
riskLevel: "none" | "low" | "medium" | "high" | "critical";
|
|
170
|
+
findingsCount: number;
|
|
171
|
+
findings: Array<{
|
|
172
|
+
patternId: string;
|
|
173
|
+
patternName: string;
|
|
174
|
+
severity: string;
|
|
175
|
+
description: string;
|
|
176
|
+
}>;
|
|
177
|
+
};
|
|
178
|
+
killSwitch?: {
|
|
179
|
+
active: boolean;
|
|
180
|
+
killedAt?: string | null;
|
|
181
|
+
reason?: string | null;
|
|
182
|
+
};
|
|
129
183
|
ed25519Signature: string;
|
|
130
184
|
signature: string;
|
|
131
185
|
bindingHash: string;
|
|
132
186
|
decidedAt: string;
|
|
133
187
|
}
|
|
134
188
|
export type MemoryRecordKind = "fact" | "preference" | "resource_note" | "operator_note" | "execution_outcome" | "resource_topology" | "policy_decision";
|
|
189
|
+
export interface TemporalGraphFact {
|
|
190
|
+
id: string;
|
|
191
|
+
workspaceId: string;
|
|
192
|
+
subject: string;
|
|
193
|
+
predicate: string;
|
|
194
|
+
object: string;
|
|
195
|
+
summary: string;
|
|
196
|
+
confidence: number;
|
|
197
|
+
validFrom: string;
|
|
198
|
+
validTo: string | null;
|
|
199
|
+
supersededById?: string | null;
|
|
200
|
+
sourceKind: MemoryRecordKind | "system";
|
|
201
|
+
sourceReferenceId?: string | null;
|
|
202
|
+
metadata: Record<string, unknown>;
|
|
203
|
+
createdAt: string;
|
|
204
|
+
}
|
|
135
205
|
export interface MemoryContextSummary {
|
|
136
206
|
enabled: boolean;
|
|
137
207
|
namespace: string;
|
|
208
|
+
fundingSource?: "muxo_funded" | "customer_byok_supermemory" | "local_fallback";
|
|
138
209
|
staticFacts: string[];
|
|
139
210
|
dynamicContext: string[];
|
|
140
211
|
recalledMemories: Array<{
|
|
@@ -145,6 +216,7 @@ export interface MemoryContextSummary {
|
|
|
145
216
|
createdAt?: string;
|
|
146
217
|
}>;
|
|
147
218
|
formattedPromptContext: string;
|
|
219
|
+
profileMarkdown?: string;
|
|
148
220
|
profile: {
|
|
149
221
|
static: string[];
|
|
150
222
|
dynamic: string[];
|
|
@@ -157,6 +229,12 @@ export interface MemoryContextSummary {
|
|
|
157
229
|
similarity: number;
|
|
158
230
|
createdAt?: string;
|
|
159
231
|
}>;
|
|
232
|
+
temporalFacts?: TemporalGraphFact[];
|
|
233
|
+
contextPoisoningScan?: {
|
|
234
|
+
safe: boolean;
|
|
235
|
+
riskLevel: "none" | "low" | "medium" | "high" | "critical";
|
|
236
|
+
findingsCount: number;
|
|
237
|
+
};
|
|
160
238
|
}
|
|
161
239
|
export interface WorkspaceMemoryRecord {
|
|
162
240
|
id: string;
|
|
@@ -209,6 +287,13 @@ export interface SupplierSettlementSummary {
|
|
|
209
287
|
supplierWholesalePaidCents: number;
|
|
210
288
|
muxoNetMarginCents: number;
|
|
211
289
|
}>;
|
|
290
|
+
masterWalletProtection?: {
|
|
291
|
+
status: "healthy" | "failover_active";
|
|
292
|
+
zeroChargeOnFailure: boolean;
|
|
293
|
+
instantFailoverMode: "zero_cost_native_edge";
|
|
294
|
+
paidProvisioningPolicy: "muxo_master_wallet_or_customer_stripe_byok";
|
|
295
|
+
retailToWholesaleCoverageRatio: number;
|
|
296
|
+
};
|
|
212
297
|
}
|
|
213
298
|
export interface ActionPlan {
|
|
214
299
|
id: string;
|
|
@@ -243,6 +328,7 @@ export interface ExecutionRun {
|
|
|
243
328
|
input: Record<string, unknown>;
|
|
244
329
|
output: Record<string, unknown> | null;
|
|
245
330
|
error: string | null;
|
|
331
|
+
errorMessage?: string | null;
|
|
246
332
|
actionsMetered: number;
|
|
247
333
|
creditsMetered: number;
|
|
248
334
|
durationMs: number | null;
|
|
@@ -1,2 +1,18 @@
|
|
|
1
|
+
export type ConsoleView = "overview" | "setup" | "catalog" | "connections" | "infrastructure" | "memory" | "governance" | "activity" | "billing" | "login" | "signup";
|
|
2
|
+
/** Every path that serves the console shell, mapped to the view it opens. */
|
|
3
|
+
export declare const CONSOLE_ROUTES: Readonly<Record<string, ConsoleView>>;
|
|
4
|
+
export declare function isConsolePath(pathname: string): boolean;
|
|
1
5
|
export declare function renderConsoleHtml(): string;
|
|
2
6
|
export declare function renderLandingHtml(): string;
|
|
7
|
+
export interface OAuthConsentOptions {
|
|
8
|
+
error?: string;
|
|
9
|
+
clientName?: string;
|
|
10
|
+
redirectOrigin?: string;
|
|
11
|
+
clerk?: {
|
|
12
|
+
publishableKey: string;
|
|
13
|
+
frontendApi: string;
|
|
14
|
+
} | null;
|
|
15
|
+
request?: Record<string, string>;
|
|
16
|
+
}
|
|
17
|
+
/** Consent screen for MCP clients (ChatGPT, Claude, CLIs) asking to use a Muxo workspace. */
|
|
18
|
+
export declare function renderOAuthConsentHtml(opts: OAuthConsentOptions): string;
|