@baselineos/studio
v1.5.0
Published
Baseline Studio — Execution & Output Layer
Readme
@baselineos/studio
The execution engine and artifact manager for Baseline Protocol. Where work gets done. Every AI-generated artifact is tracked, attributed, and cryptographically verified. Orchestrates multi-step workflows, renders output templates, and produces verifiable artifact manifests.
Primary Exports
| Export | Kind | Description |
|---|---|---|
| BaselineStudioSystem | class | Top-level facade -- command execution, template registration/rendering |
| ExecutionEngine | class | Runs individual commands with format and option handling |
| WorkflowManager | class | Orchestrates multi-step workflow definitions |
| OutputGenerator | class | Produces formatted output from execution results |
| ResultProcessor | class | Post-processes and shapes layer results |
| PerformanceOptimizer | class | Caching and execution performance tracking |
Key Types
StudioSystemConfig, WorkflowDefinition, WorkflowResult, ExecutionStats, CacheEntry
Usage
import { BaselineStudioSystem } from '@baselineos/studio';
const studio = new BaselineStudioSystem();
// Execute a command
const result = await studio.executeCommand('generate', { format: 'json' }, {});
// { success: true, command: 'generate', manifest: { ... } }
// Register and render templates
studio.registerTemplate({
id: 'hello',
name: 'Hello',
format: 'text',
template: 'Hello {{user.name}}',
});
studio.renderTemplate('hello', { user: { name: 'Amani' } });
// "Hello Amani"Integration
- Depends on:
@baselineos/protocol-core - Consumed by:
@baselineos/cli,baselineos
pnpm --filter @baselineos/studio build
pnpm --filter @baselineos/studio test