@muxoai/platform 1.3.0 → 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/.agents/plugins/marketplace.json +1 -1
- package/.claude-plugin/marketplace.json +19 -4
- package/.codex/config.toml +9 -2
- package/README.md +63 -20
- package/dist/clerk.d.ts +33 -0
- package/dist/clerk.js +198 -0
- package/dist/cli.js +1181 -99
- package/dist/engine.d.ts +22 -1
- package/dist/engine.js +284 -14
- package/dist/mcp.d.ts +6 -1
- package/dist/mcp.js +109 -22
- package/dist/nl.js +60 -36
- package/dist/policy.d.ts +9 -0
- package/dist/policy.js +73 -0
- package/dist/providers/composio-instant.d.ts +4 -0
- package/dist/providers/composio-instant.js +634 -534
- package/dist/providers/composio-sdk.d.ts +1 -0
- package/dist/providers/composio-sdk.js +6 -2
- package/dist/providers/microsoft-governance.d.ts +61 -2
- package/dist/providers/microsoft-governance.js +458 -24
- package/dist/providers/stripe-billing.js +14 -4
- package/dist/providers/stripe-projects.d.ts +4 -1
- package/dist/providers/stripe-projects.js +123 -12
- package/dist/providers/supermemory.d.ts +28 -5
- package/dist/providers/supermemory.js +183 -55
- package/dist/sdk.d.ts +167 -1
- package/dist/sdk.js +113 -2
- package/dist/server.js +258 -40
- package/dist/store.d.ts +26 -1
- package/dist/store.js +255 -6
- package/dist/types.d.ts +86 -0
- package/dist/ui/console-html.d.ts +16 -0
- package/dist/ui/console-html.js +2427 -2206
- 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/plugins/muxo/.app.json +1 -1
- package/plugins/muxo/.claude-plugin/plugin.json +2 -2
- package/plugins/muxo/.codex-plugin/plugin.json +7 -5
- package/plugins/muxo/.mcp.json +1 -33
- package/plugins/muxo/assets/logo.png +0 -0
- package/plugins/muxo/hooks/session-start.sh +1 -1
- package/plugins/muxo/plugin.json +63 -6
- package/plugins/muxo/skills/muxo/SKILL.md +92 -14
- package/plugins/muxo/skills/muxo/agents/openai.yaml +12 -0
- package/plugins/muxo/skills/muxo/references/cli.md +4 -2
- package/plugins/muxo/skills/muxo/references/mcp.md +15 -9
- package/plugins/muxo/skills/setup/SKILL.md +8 -2
- package/plugins/muxo/skills/setup/agents/openai.yaml +12 -0
|
@@ -536,7 +536,8 @@ export class ComposioSdkAdapter {
|
|
|
536
536
|
},
|
|
537
537
|
};
|
|
538
538
|
};
|
|
539
|
-
|
|
539
|
+
const effectiveApiKey = params.composioApiKey || this.config.composioApiKey;
|
|
540
|
+
if (!effectiveApiKey) {
|
|
540
541
|
return buildConnectedAccountFallback();
|
|
541
542
|
}
|
|
542
543
|
const body = {
|
|
@@ -549,7 +550,10 @@ export class ComposioSdkAdapter {
|
|
|
549
550
|
try {
|
|
550
551
|
const res = await fetch(`${this.config.composioBaseUrl}/tools/execute/${encodeURIComponent(params.tool.upstreamSlug)}`, {
|
|
551
552
|
method: "POST",
|
|
552
|
-
headers:
|
|
553
|
+
headers: {
|
|
554
|
+
...this.headers,
|
|
555
|
+
"x-api-key": effectiveApiKey,
|
|
556
|
+
},
|
|
553
557
|
body: JSON.stringify(body),
|
|
554
558
|
signal: AbortSignal.timeout(25000),
|
|
555
559
|
});
|
|
@@ -1,7 +1,13 @@
|
|
|
1
|
-
import { AgentIdentity, AuditLogger } from "../../vendor/microsoft-governance/dist/index.js";
|
|
1
|
+
import { AgentIdentity, AuditLogger, type ContextPoisoningScanResult, type KillSwitchResult, type TrustScore } from "../../vendor/microsoft-governance/dist/index.js";
|
|
2
2
|
import type { ActionPlan, GovernanceDecisionRecord, MuxoTool, Workspace } from "../types.js";
|
|
3
|
+
export declare const RING_LABELS: Record<number, string>;
|
|
3
4
|
export declare class MicrosoftGovernanceAdapter {
|
|
4
5
|
private readonly scanner;
|
|
6
|
+
private readonly contextPoisoningDetector;
|
|
7
|
+
private readonly facetRegistry;
|
|
8
|
+
private readonly trustManager;
|
|
9
|
+
private readonly killSwitch;
|
|
10
|
+
private readonly activeKillSwitches;
|
|
5
11
|
private readonly seedMaterial;
|
|
6
12
|
private readonly auditLoggers;
|
|
7
13
|
private readonly identities;
|
|
@@ -15,13 +21,66 @@ export declare class MicrosoftGovernanceAdapter {
|
|
|
15
21
|
* Returns (or lazily initializes) the SHA-256 hash-chained AuditLogger for a workspace.
|
|
16
22
|
*/
|
|
17
23
|
getWorkspaceAuditLogger(workspaceId: string): AuditLogger;
|
|
24
|
+
/**
|
|
25
|
+
* Scans memory or prompt context for OWASP ASI-06 Context Poisoning (prompt injection,
|
|
26
|
+
* roleplay overrides, delimiter injection, high-entropy exfiltration payloads, and session isolation).
|
|
27
|
+
*/
|
|
28
|
+
scanMemoryContent(params: {
|
|
29
|
+
workspaceId: string;
|
|
30
|
+
sessionId?: string;
|
|
31
|
+
entryId?: string;
|
|
32
|
+
role?: "user" | "assistant" | "tool" | "system";
|
|
33
|
+
content: string;
|
|
34
|
+
recordInDetector?: boolean;
|
|
35
|
+
}): {
|
|
36
|
+
safe: boolean;
|
|
37
|
+
riskLevel: "none" | "low" | "medium" | "high" | "critical";
|
|
38
|
+
findingsCount: number;
|
|
39
|
+
findings: Array<{
|
|
40
|
+
patternId: string;
|
|
41
|
+
patternName: string;
|
|
42
|
+
severity: string;
|
|
43
|
+
description: string;
|
|
44
|
+
}>;
|
|
45
|
+
integrityValid: boolean;
|
|
46
|
+
};
|
|
47
|
+
getContextPoisoningReport(workspaceId: string, sessionId?: string): ContextPoisoningScanResult;
|
|
48
|
+
/**
|
|
49
|
+
* Extracts structured SQL, Kubernetes, and Infrastructure protocol facets from tool input.
|
|
50
|
+
*/
|
|
51
|
+
extractActionFacets(tool: MuxoTool, input: Record<string, unknown>): NonNullable<GovernanceDecisionRecord["protocolFacets"]>;
|
|
52
|
+
/**
|
|
53
|
+
* Evaluates hardware-style privilege rings (Ring 0..Ring 3) via Microsoft RingEnforcer.
|
|
54
|
+
*/
|
|
55
|
+
evaluateRingEnforcement(workspace: Workspace, tool: MuxoTool, ownerApproved: boolean): NonNullable<GovernanceDecisionRecord["ringEnforcement"]>;
|
|
56
|
+
/**
|
|
57
|
+
* Records an agent execution outcome in the Bayesian TrustManager and returns the updated TrustScore.
|
|
58
|
+
*/
|
|
59
|
+
recordAgentOutcome(workspaceId: string, succeeded: boolean, weight?: number): TrustScore;
|
|
60
|
+
/**
|
|
61
|
+
* Returns the current Bayesian TrustScore for a workspace agent boundary.
|
|
62
|
+
*/
|
|
63
|
+
getWorkspaceTrustScore(workspaceId: string): NonNullable<GovernanceDecisionRecord["trustScore"]>;
|
|
64
|
+
/**
|
|
65
|
+
* Activates the emergency KillSwitch for a workspace agent boundary.
|
|
66
|
+
*/
|
|
67
|
+
activateKillSwitch(workspaceId: string, reason: string, action?: "terminate" | "quarantine" | "suspend"): Promise<KillSwitchResult>;
|
|
68
|
+
/**
|
|
69
|
+
* Resumes a workspace agent boundary after a KillSwitch quarantine/suspension.
|
|
70
|
+
*/
|
|
71
|
+
resumeKillSwitch(workspaceId: string): {
|
|
72
|
+
resumed: boolean;
|
|
73
|
+
workspaceId: string;
|
|
74
|
+
resumedAt: string;
|
|
75
|
+
};
|
|
76
|
+
isKillSwitchActive(workspaceId: string): KillSwitchResult | null;
|
|
18
77
|
/**
|
|
19
78
|
* Compiles the workspace's GovernancePolicy into a declarative Microsoft PolicyEngine instance.
|
|
20
79
|
*/
|
|
21
80
|
private createPolicyEngine;
|
|
22
81
|
/**
|
|
23
82
|
* Runs the full Microsoft Agent Governance pipeline:
|
|
24
|
-
* Agent ──► McpSecurityScanner ──► PolicyEngine ──► AgentIdentity (Ed25519 DID) ──► AuditLogger ──► DecisionRecord
|
|
83
|
+
* Agent ──► KillSwitch ──► McpSecurityScanner & ContextPoisoningDetector (ASI-06) ──► ProtocolFacets (SQL/K8s/Infra) ──► RingEnforcer ──► PolicyEngine ──► TrustManager ──► AgentIdentity (Ed25519 DID) ──► AuditLogger ──► DecisionRecord
|
|
25
84
|
*/
|
|
26
85
|
evaluateAction(params: {
|
|
27
86
|
workspace: Workspace;
|