@baselineos/protocol-core
v1.5.0
Published
Baseline Protocol™ — Open-source AI operations specification
Downloads
1,099
Readme
@baselineos/protocol-core
Foundational contracts for the Baseline Protocol specification. Provides the shared type system, parser infrastructure, lexicon engine, grammar rules, knowledge graph, and vector store that all layer packages depend on. This is the zero-dependency core of the stack.
Primary Exports
| Export | Kind | Description |
|---|---|---|
| BaselineLangCore | class | Orchestrator that wires together lexicon, parser, and lang subsystems |
| BaselineLang | class | Language processing engine |
| BaselineParser | class | Tokenizer and block parser for Baseline syntax |
| BaselineLexicon | class | Domain vocabulary, term lookup, templates, and pattern matching |
| GrammarValidator | class | Validates input against Baseline grammar rules |
| KnowledgeGraphEngine | class | Graph-based knowledge store with agents, reasoning chains, and tools |
| ChromaVectorStore | class | Vector embedding store for semantic search |
Key Types
Token, TokenType, ParsedBlock, LexiconTerm, LexiconDomain, SearchResult, KnowledgeNode, KnowledgeRelationship, VectorStoreConfig, DocumentInput
Usage
import { BaselineLangCore } from '@baselineos/protocol-core';
const core = new BaselineLangCore();
await core.initialize();
const parser = core.getParser();
const lexicon = core.getLexicon();
const lang = core.getLang();Integration
- No internal dependencies -- this is the foundation package
- Required by: every
@baselineos/*layer package
pnpm --filter @baselineos/protocol-core build
pnpm --filter @baselineos/protocol-core test