Interface KernelExperimental
addEventListener: (event: KernelEvents, listener: EventCallback) => void;
auth: Auth;
bios?: BIOSModule;
channel: BroadcastChannel;
components: Components;
devices: Map<
string,
{ device: KernelDevice; drivers?: DeviceDriver<any>[] },
>;
dom: Dom;
events: Events;
filesystem: Filesystem;
i18n: I18n;
id: string;
intervals: Intervals;
keyboard: Keyboard;
log: Log;
memory: Memory;
modules: KernelModules;
name: string;
options: KernelOptions;
packages: Map<string, Module>;
processes: ProcessManager;
protocol: Protocol;
removeEventListener: (event: KernelEvents, listener: EventCallback) => void;
screensavers: Map<
string,
{
default: (options: { terminal: Terminal }) => Promise<void>;
exit: () => Promise<void>;
},
>;
service: Service;
shell: Shell;
state: KernelState;
storage: StorageProvider;
terminal: Terminal;
toast: Notyf;
users: Users;
version: string;
wasm: Wasm;
windows: Windows;
workers: Workers;
boot(options?: BootOptions): Promise<void>;
configure(options: KernelOptions): Promise<void>;
execute(options: KernelExecuteOptions): Promise<number>;
getPackageMainExport(
pkgData: JSONSchemaForNPMPackageJsonFiles,
): null | string;
notify(title: string, options?: object): Promise<void | Notification>;
off(event: KernelEvents, listener: EventCallback): void;
on(event: KernelEvents, listener: EventCallback): void;
reboot(): Promise<void>;
shutdown(): Promise<void>;
}
Index
Properties
Methods
Properties
addEventListener
Add an event listener
Readonly Experimentalauth
Authentication and authorization service
Optional Experimentalbios
BIOS module providing low-level functionality
Readonly Experimentalchannel
Broadcast channel for inter-kernel communication
Readonly Experimentalcomponents
Web Components manager
Readonly Experimentaldevices
Map of registered devices and their drivers
Readonly Experimentaldom
DOM manipulation service
Readonly Experimentalevents
Event management system
Readonly Experimentalfilesystem
Virtual filesystem
Readonly Experimentali18n
Internationalization service
Readonly Experimentalid
Unique identifier for this kernel instance
Readonly Experimentalintervals
Interval management service
Readonly Experimentalkeyboard
Keyboard interface
Readonly Experimentallog
Logging system
Readonly Experimentalmemory
Memory management service
Readonly Experimentalmodules
Module management service
Readonly Experimentalname
Name of the kernel
Readonly Experimentaloptions
Configuration options passed to the kernel
Readonly Experimentalpackages
Map of loaded packages
Readonly Experimentalprocesses
Process management service
Readonly Experimentalprotocol
Protocol handler service
removeEventListener
Remove an event listener
Readonly Experimentalscreensavers
string,
{
default: (options: { terminal: Terminal }) => Promise<void>;
exit: () => Promise<void>;
},
>
Map of available screensavers
Readonly Experimentalservice
Service management system
Readonly Experimentalshell
Shell for command interpretation and execution
Readonly Experimentalstate
Current state of the kernel
Readonly Experimentalstorage
Storage provider interface
Readonly Experimentalterminal
Terminal interface for user interaction
Readonly Experimentaltoast
Toast notification service
Readonly Experimentalusers
User management service
Readonly Experimentalversion
Version string of the kernel
Readonly Experimentalwasm
WebAssembly service
Readonly Experimentalwindows
Window management service
Readonly Experimentalworkers
Web Worker management service
Methods
boot
- boot(options?: BootOptions): Promise<void>
ExperimentalBoot the kernel with optional configuration
Parameters
Optionaloptions: BootOptions
Returns Promise<void>
configure
- configure(options: KernelOptions): Promise<void>
ExperimentalConfigure kernel options
Parameters
- options: KernelOptions
Returns Promise<void>
execute
- execute(options: KernelExecuteOptions): Promise<number>
ExperimentalExecute a command or program
Parameters
- options: KernelExecuteOptions
Returns Promise<number>
getPackageMainExport
notify
- notify(title: string, options?: object): Promise<void | Notification>
ExperimentalShow a system notification
Parameters
- title: string
Optionaloptions: object
Returns Promise<void | Notification>
off
- off(event: KernelEvents, listener: EventCallback): void
ExperimentalRemove an event listener
Parameters
- event: KernelEvents
- listener: EventCallback
Returns void
on
- on(event: KernelEvents, listener: EventCallback): void
ExperimentalAdd an event listener
Parameters
- event: KernelEvents
- listener: EventCallback
Returns void
Author
Jay Mathis code@mathis.network (https://github.com/mathiscode)
Remarks
The Kernel class is the core of the ecmaOS system. It manages the system's resources and provides a framework for system services.