How omenien/omena-css works
omena-css is a CSS-family semantic engine exposed through CLI, LSP, SDK, editor, and build integrations. The main workflow takes source and style documents, produces semantic facts and typed query outcomes, then serves diagnostics, navigation, transformations, and build operations. The graph preserves major README capabilities and sampled TypeScript contract/query paths; implementation details for several Rust and integration subsystems were not sampled, so their documented connections are cited to the README rather than inferred from names.
Main entry points: engine-query-v2.ts Semantic query execution · engine-input-v2.ts Input assembly · commands.rs CLI workflows · engine-v2.ts Snapshot contracts
Components 21
Analysis and semantics
- Parsing and facts
rust/crates/omena-parser/src - Style document model
server/engine-core-ts/src/core/hir/style-types.ts - Source binding and types
server/engine-core-ts/src/core/binder/source-binding-graph.ts - Analysis cache
server/engine-core-ts/src/core/indexing/document-analysis-cache.ts - Workspace semantic indexes
server/engine-core-ts/src/core/semantic/workspace-reference-index.ts - Type facts backend
server/engine-host-node/src/type-backend.ts
Engine interfaces
- Snapshot contracts
server/engine-core-ts/src/contracts/engine-v2.ts - Input assembly
server/engine-host-node/src/engine-input-v2.ts - Semantic query execution
server/engine-host-node/src/engine-query-v2.ts - Diagnostics and lint rules
rust/crates/omena-checker/src/lib.rs - Cascade and value reasoning
rust/crates/omena-cascade/src/lib.rs - Transform and emission
rust/crates/omena-bundler/src/lib.rs
User-facing workflows
- CLI workflows
rust/crates/omena-cli/src/commands.rs - Language server
rust/crates/omena-lsp-server/src/message_loop.rs - NAPI and WASM SDK
rust/crates/omena-napi/src/lib.rs
Editor and build integrations
- VS Code extension
client/src/extension.ts - Build plugins
packages/vite-plugin/index.cjs - Lint plugins
packages/eslint-plugin/index.cjs
Other components
- Developer
- CSS-family sources
- Workspace files
Connections 20
- Developer → CLI workflows: runs commands
README.md - Developer → VS Code extension: uses editor
README.md - Developer → Build plugins: uses build tools
README.md - CSS-family sources → Parsing and facts: produces facts
README.md - Parsing and facts → Style document model: projects styles
- Workspace files → Input assembly: supplies documents
- Input assembly → Analysis cache: reads analysis
server/engine-host-node/src/engine-input-v2.ts - Input assembly → Type facts backend: collects type facts
server/engine-host-node/src/engine-input-v2.ts - Input assembly → Snapshot contracts: builds snapshot
server/engine-host-node/src/engine-input-v2.ts - Snapshot contracts → Semantic query execution: defines query outcomes
README.md - Semantic query execution → Workspace semantic indexes: reads references
server/engine-host-node/src/engine-query-v2.ts - Semantic query execution → Cascade and value reasoning: uses semantic engine
- CLI workflows → Semantic query execution: queries engine
README.md - CLI workflows → Diagnostics and lint rules: runs lint
README.md - CLI workflows → Transform and emission: runs transforms
README.md - Language server → Semantic query execution: serves queries
README.md - NAPI and WASM SDK → Snapshot contracts: uses contracts
README.md - VS Code extension → Language server: starts server
README.md - Build plugins → Transform and emission: integrates builds
README.md - Lint plugins → Diagnostics and lint rules: provides lint rules