@ouranos/core
v0.1.2
Published
Core engine: daemon lifecycle, engines, event bus, server, analytics
Readme
@ouranos/core
Core engine for the Ouranos Intelligent Development Platform: daemon lifecycle, EventBus, file watcher, auto-commit, session engine, checkpoint engine, validation runner, sync engine, smart push, daily reports, analytics, release notes, WebSocket bridge, and Express server.
Install
npm install @ouranos/coreUsage
import {
OuranosDaemon,
EventBus,
loadConfig,
logger,
FileWatcher,
AutoCommitEngine,
SessionEngine,
CheckpointEngine,
createApp,
} from '@ouranos/core';
// Load configuration
const config = loadConfig();
// Start the daemon
const daemon = new OuranosDaemon(process.cwd());
await daemon.start();
// Create an Express app with WebSocket bridge
const { app, attachWebSocketBridge } = createApp(config);
attachWebSocketBridge(app);Key Exports
| Export | Description |
| ----------------------- | ------------------------------------------- |
| OuranosDaemon | Main daemon managing the full lifecycle |
| EventBus | Event system for inter-engine communication |
| loadConfig | Load & validate configuration |
| logger | Pino-based logger instance |
| FileWatcher | File change watcher |
| AutoCommitEngine | Automatic commit engine |
| SessionEngine | Development session tracking |
| CheckpointEngine | Verified checkpoint creation |
| ValidationRunner | Run build/test/lint validations |
| SyncEngine | Cloud sync engine |
| SmartPushEngine | Push with conflict resolution |
| DailyReportEngine | Generate daily development reports |
| AnalyticsEngine | Development analytics |
| ReleaseNotesGenerator | Generate release notes |
| WebSocketBridge | WebSocket server for real-time updates |
| SecretScanner | Detect secrets in code |
| createApp | Express app factory |
License
See LICENSE
