Expand description
The Kernel (核) — the heart of kaish.
The Kernel owns and coordinates all core components:
- Interpreter state (scope, $?)
- Tool registry (builtins, user tools)
- VFS router (mount points)
- Job manager (background jobs)
§Architecture
┌────────────────────────────────────────────────────────────┐
│ Kernel (核) │
│ ┌──────────────┐ ┌──────────────┐ ┌──────────────────┐ │
│ │ Scope │ │ ToolRegistry │ │ VfsRouter │ │
│ │ (variables) │ │ (builtins, │ │ (mount points) │ │
│ │ │ │ user tools)│ │ │ │
│ └──────────────┘ └──────────────┘ └──────────────────┘ │
│ ┌──────────────────────────────┐ ┌──────────────────┐ │
│ │ JobManager (background) │ │ ExecResult ($?) │ │
│ └──────────────────────────────┘ └──────────────────┘ │
└────────────────────────────────────────────────────────────┘Structs§
- Execute
Options - Per-call options for
Kernel::execute_with_options. - Kernel
- The Kernel (核) — executes kaish code.
- Kernel
Config - Configuration for kernel initialization.
- Overlay
Handle - Handle to an active overlay session, kept on the kernel and shared to
ExecContextso thekaish-vfsbuiltin can reach theOverlayFs.
Enums§
- VfsMount
Mode - VFS mount mode determines how the local filesystem is exposed.