TypeScript SDK¶
Repository:
Install¶
After package publishing is configured:
Evaluate an Action¶
import { evaluateAction, parseDate } from "@agentic-user-mandate-protocol/aump";
const result = evaluateAction(mandate, action, {
now: parseDate("2026-04-25T18:00:00Z"),
context: { confidence: 0.92 },
});
if (result.decision === "requires_escalation") {
// Pause autonomous commitment and ask through a trusted UI.
}
Validate Bridge Metadata¶
import { validateBridge } from "@agentic-user-mandate-protocol/aump";
const result = validateBridge(a2aMessage, "a2a_message");
if (!result.valid) {
throw new Error(result.errors.join("; "));
}
CLI¶
npx @agentic-user-mandate-protocol/aump validate mandate mandate.json
npx @agentic-user-mandate-protocol/aump validate-evidence \
--mandate mandate.json \
--event evidence-event.json
npx @agentic-user-mandate-protocol/aump validate-bridge a2a_message a2a-message.json
Test¶
The tests consume the conformance fixture manifest and assert that TypeScript behavior matches the protocol contract.