SDK
Packages
Section titled “Packages”| Package | Purpose |
|---|---|
baselineos | Full runtime — orchestrator, agents, MCP server, REST API |
@baselineos/govern | Governance engine — policies, compliance, audit trails |
@baselineos/protocol-core | Protocol types — parser, lexicon, knowledge graph |
@baselineos/enterprise | Commercial extensions — managed storage, SSO, regional templates |
Install
Section titled “Install”npm install baselineos @baselineos/govern @baselineos/protocol-coreCore runtime
Section titled “Core runtime”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();Governance engine
Section titled “Governance engine”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);Evidence bundles
Section titled “Evidence bundles”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.