Skip to content

SDK

PackagePurpose
baselineosFull runtime — orchestrator, agents, MCP server, REST API
@baselineos/governGovernance engine — policies, compliance, audit trails
@baselineos/protocol-coreProtocol types — parser, lexicon, knowledge graph
@baselineos/enterpriseCommercial extensions — managed storage, SSO, regional templates
Terminal window
npm install baselineos @baselineos/govern @baselineos/protocol-core
import { Baseline } from 'baselineos';
const baseline = new Baseline({
projectRoot: process.cwd(),
knowledge: ['./docs', './specs'],
});
await baseline.init();
const task = await baseline.run({
title: 'Analyze codebase',
description: 'Review code quality and produce recommendations',
priority: 'medium',
requiredCapabilities: ['analysis'],
acceptanceCriteria: [
{ description: 'Report generated', type: 'automated' },
],
});
const result = await task.wait();
import { BaselineGovernSystem } from '@baselineos/govern';
const govern = new BaselineGovernSystem();
const check = await govern.compliance.check('AFCFTA-ROO', {
originCountry: 'GH',
destinationCountry: 'NG',
localValuePercentage: 55,
hasCertificateOfOrigin: true,
});
const trail = govern.getAuditTrail();
const bundle = govern.getEvidenceBundle(check.compliance!.id);

Every task execution produces an evidence bundle containing:

  • Task definition and execution plan
  • Checkpoint history
  • Review decisions
  • Complete audit trail
  • All produced artifacts

Bundles are JSON-formatted and SHA-256 hashable for external audit verification.