electron-main
Electron main process patterns for Aegis. CJS modules, platform abstraction, IPC, file watchers. Use when editing src/main/ files.
Installation
Follow the repository instructions for this skill and your agent. Review the files and dependencies before adding it to your workflow.
View source ↗GuidesSkill instructions
Electron Main Process
Architecture
- 23 CJS modules loaded directly by Node.js (NO build step)
- Platform dispatcher: src/main/platform/index.js → win32|darwin|linux
- IPC: 43 invoke + 6 push channels, scan-batch consolidation
- File watcher: chokidar 3.6, function-form ignored (NOT glob)
Rules
- require() / module.exports only
- JSDoc annotations with types from src/shared/types/
- Stay .js until P5-C (tsc build step)
- Staggered startup: 3/8/12s intervals
- Stats-update batcher: 1000ms debounce
Examples
Read the usage examples in the source repository.
View source ↗Source history
- Indexed on
- 2026-03-11
- Index updated
- 2026-03-11
- Branch
- main
Index and sync dates describe this directory. View the source repository for code history.
GitHub ↗chat Comments (0)
Sign in to join the discussion and leave a comment.
No comments yet. Be the first to share your thoughts!