@mandate-os/sdk
v0.1.3
Published
TypeScript SDK for MandateOS agent integrations.
Readme
@mandate-os/sdk
Tiny TypeScript SDK for MandateOS agent integrations.
It provides:
MandateOsAgentClientfor issuing mandates, evaluating actions, minting execution grants, and calling enforced execute routesMandateOsAgentMiddlewarefor the common evaluate -> require -> grant -> execute control loop- The minimal public types needed by agent-side integrations
Current enforced GitHub helpers cover issue labeling and keeping pull requests in draft through MandateOS-owned execute routes.
Example:
import { MandateOsAgentClient, MandateOsAgentMiddleware } from '@mandate-os/sdk';
const client = new MandateOsAgentClient({
baseUrl: 'http://localhost:4330',
bearerToken: process.env.MANDATE_OS_AGENT_TOKEN!,
defaultSource: 'codex.repo_steward',
});
const mandate = new MandateOsAgentMiddleware(client, {
mandateId: 'mdt_123',
source: 'codex.repo_steward',
});