How yasmindiess/bi-ble works
bi-ble is presented as a compositional causal-system editor. The main workflow is to assemble a typed formula graph, edit node properties and connections, then compile it for domain checks; sessions can be saved, undone, and audited. The editor also exposes history, audit, and GitHub repository/revision evidence features. The README gives little architectural detail, and the OCaml runtime files were not sampled, so this map focuses on the evidenced editor and avoids guessing how the runtime connects.
Main entry points: App.tsx Editor workflow · document.ts Formula document · compiler.ts Formula compiler · history.ts Undo history
Components 24
Editor workspace
- Editor workflow
apps/editor/src/App.tsx - Formula canvas
apps/editor/src/components/FormulaCanvas.tsx - Node properties
apps/editor/src/components/NodePropertyEditor.tsx - History panel
apps/editor/src/components/HistoryPanel.tsx - Audit panel
apps/editor/src/components/AuditPanel.tsx - Compiler results
apps/editor/src/components/CompilerPanel.tsx
Graph domain
- Node palette
apps/editor/src/domain/palette.ts - Port definitions
apps/editor/src/domain/definitions.ts - Property schemas
apps/editor/src/domain/properties.ts - Formula document
apps/editor/src/model/document.ts - Connection rules
apps/editor/src/model/connections.ts
Compilation checks
- Formula compiler
apps/editor/src/model/compiler.ts - Domain tribunals
apps/editor/src/model/tribunals.ts - AEL policy
apps/editor/src/model/aelPolicy.ts
Session records
- Document operations
apps/editor/src/model/operations.ts - Undo history
apps/editor/src/model/history.ts - Audit receipts
apps/editor/src/model/audit.ts - Session storage
apps/editor/src/model/storage.ts
Repository evidence
- Repository selector
apps/editor/src/components/RepositorySelector.tsx - Revision selector
apps/editor/src/components/RevisionSelector.tsx - Commit evidence
apps/editor/src/components/CommitEvidencePanel.tsx - GitHub adapter
apps/editor/src/integrations/github.ts
Other components
- Editor user
- GitHub API routes
Connections 34
- Editor user → Editor workflow: edits graph
apps/editor/src/App.tsx - Editor workflow → Formula canvas: renders
apps/editor/src/App.tsx - Editor workflow → Node properties: renders
apps/editor/src/App.tsx - Editor workflow → Connection rules: validates links
apps/editor/src/App.tsx - Editor workflow → Formula document: creates graph
apps/editor/src/App.tsx - Editor workflow → Session storage: loads and saves
apps/editor/src/App.tsx - Editor workflow → Undo history: commits and undoes
apps/editor/src/App.tsx - Editor workflow → Formula compiler: compiles graph
apps/editor/src/App.tsx - Editor workflow → History panel: renders
apps/editor/src/App.tsx - Editor workflow → Audit panel: renders
apps/editor/src/App.tsx - Editor workflow → Compiler results: renders
apps/editor/src/App.tsx - Formula canvas → Formula document: uses graph model
apps/editor/src/components/FormulaCanvas.tsx - Node properties → Formula document: edits node data
apps/editor/src/components/NodePropertyEditor.tsx - Formula document → Port definitions: gets port templates
apps/editor/src/model/document.ts - Formula document → Property schemas: gets defaults
apps/editor/src/model/document.ts - Port definitions → Node palette: uses domains
apps/editor/src/domain/definitions.ts - Property schemas → Node palette: uses domains
apps/editor/src/domain/properties.ts - Undo history → Document operations: applies operations
apps/editor/src/model/history.ts - Undo history → Audit receipts: creates receipts
apps/editor/src/model/history.ts - Session storage → Formula document: builds ports
apps/editor/src/model/storage.ts - Session storage → Undo history: restores session
apps/editor/src/model/storage.ts - Session storage → Audit receipts: restores audit
apps/editor/src/model/storage.ts - History panel → Undo history: displays
apps/editor/src/components/HistoryPanel.tsx - Audit panel → Audit receipts: displays
apps/editor/src/components/AuditPanel.tsx - Formula compiler → Formula document: reads graph
apps/editor/src/model/compiler.ts - Formula compiler → Property schemas: canonicalizes properties
apps/editor/src/model/compiler.ts - Formula compiler → Domain tribunals: evaluates
apps/editor/src/model/compiler.ts - Domain tribunals → AEL policy: evaluates policy
apps/editor/src/model/tribunals.ts - Compiler results → Formula compiler: shows results
apps/editor/src/components/CompilerPanel.tsx - Repository selector → GitHub adapter: loads repositories
apps/editor/src/components/RepositorySelector.tsx - Revision selector → GitHub adapter: loads revisions
apps/editor/src/components/RevisionSelector.tsx - Commit evidence → GitHub adapter: loads evidence
apps/editor/src/components/CommitEvidencePanel.tsx - Commit evidence → Formula document: records evidence
apps/editor/src/components/CommitEvidencePanel.tsx - GitHub adapter → GitHub API routes: requests data
apps/editor/src/integrations/github.ts