@muxoai/platform 1.3.1 → 1.3.3
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 +35 -0
- package/dist/clerk.js +201 -0
- package/dist/cli.js +456 -39
- 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 +170 -2
- package/dist/sdk.js +115 -4
- package/dist/server.js +178 -17
- 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 +23 -0
- package/dist/ui/console-html.js +2440 -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
|
@@ -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;
|