@ecmaos/kernel 0.7.1 → 0.8.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (284) hide show
  1. package/README.md +10 -3
  2. package/dist/.vite/manifest.json +12 -12
  3. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/.nojekyll +1 -0
  4. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/CNAME +1 -0
  5. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/assets/custom.css +3 -0
  6. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/assets/dmt/dmt-component-data.js +1 -0
  7. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/assets/dmt/dmt-components.css +20 -0
  8. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/assets/dmt/dmt-components.js +67 -0
  9. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/assets/dmt/dmt-search.cmp +0 -0
  10. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/assets/dmt/dmt-theme.css +1 -0
  11. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/assets/dmt/icons/service/github.png +0 -0
  12. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/assets/dmt/icons/service/npm.png +0 -0
  13. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/assets/hierarchy.js +1 -0
  14. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/assets/highlight.css +92 -0
  15. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/assets/icons.js +18 -0
  16. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/assets/icons.svg +1 -0
  17. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/assets/main.js +60 -0
  18. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/assets/style.css +1610 -0
  19. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/classes/kernel_src_tree_auth.Auth.html +15 -0
  20. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/classes/kernel_src_tree_components.Component.html +21 -0
  21. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/classes/kernel_src_tree_components.Components.html +22 -0
  22. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/classes/kernel_src_tree_dom.Dom.html +6 -0
  23. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/classes/kernel_src_tree_events.Events.html +39 -0
  24. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/classes/kernel_src_tree_fdtable.FDTable.html +39 -0
  25. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/classes/kernel_src_tree_filesystem.Filesystem.html +38 -0
  26. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/classes/kernel_src_tree_i18n.I18n.html +6 -0
  27. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/classes/kernel_src_tree_intervals.Intervals.html +10 -0
  28. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/classes/kernel_src_tree_kernel.Kernel.html +185 -0
  29. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/classes/kernel_src_tree_lib_commands.TerminalCommand.html +33 -0
  30. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/classes/kernel_src_tree_log.Log.html +25 -0
  31. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/classes/kernel_src_tree_memory.Memory.html +18 -0
  32. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/classes/kernel_src_tree_processes.Process.html +80 -0
  33. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/classes/kernel_src_tree_processes.ProcessManager.html +10 -0
  34. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/classes/kernel_src_tree_protocol.Protocol.html +5 -0
  35. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/classes/kernel_src_tree_service.Service.html +34 -0
  36. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/classes/kernel_src_tree_shell.Shell.html +50 -0
  37. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/classes/kernel_src_tree_sockets.Sockets.html +24 -0
  38. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/classes/kernel_src_tree_storage.Storage.html +25 -0
  39. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/classes/kernel_src_tree_telemetry.Telemetry.html +6 -0
  40. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/classes/kernel_src_tree_terminal.Spinner.html +12 -0
  41. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/classes/kernel_src_tree_terminal.Terminal.html +108 -0
  42. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/classes/kernel_src_tree_users.Users.html +27 -0
  43. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/classes/kernel_src_tree_wasm.Wasm.html +18 -0
  44. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/classes/kernel_src_tree_windows.Windows.html +30 -0
  45. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/classes/kernel_src_tree_workers.Workers.html +19 -0
  46. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/enums/kernel_src_tree_terminal.CommandPath.html +3 -0
  47. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/enums/types_kernel.KernelEvents.html +9 -0
  48. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/enums/types_kernel.KernelState.html +7 -0
  49. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/enums/types_processes.ProcessEvents.html +8 -0
  50. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/enums/types_terminal.TerminalEvents.html +17 -0
  51. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/favicon.ico +0 -0
  52. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/functions/kernel_src_tree_lib_commands.TerminalCommands.html +4 -0
  53. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/functions/kernel_src_tree_lib_commands.chown.html +2 -0
  54. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/functions/kernel_src_tree_lib_commands.clear.html +2 -0
  55. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/functions/kernel_src_tree_lib_commands.df.html +2 -0
  56. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/functions/kernel_src_tree_lib_commands.download.html +2 -0
  57. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/functions/kernel_src_tree_lib_commands.env.html +2 -0
  58. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/functions/kernel_src_tree_lib_commands.fetch.html +2 -0
  59. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/functions/kernel_src_tree_lib_commands.load.html +2 -0
  60. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/functions/kernel_src_tree_lib_commands.mount.html +2 -0
  61. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/functions/kernel_src_tree_lib_commands.observe.html +2 -0
  62. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/functions/kernel_src_tree_lib_commands.open.html +2 -0
  63. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/functions/kernel_src_tree_lib_commands.passwd.html +2 -0
  64. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/functions/kernel_src_tree_lib_commands.play.html +2 -0
  65. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/functions/kernel_src_tree_lib_commands.ps.html +2 -0
  66. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/functions/kernel_src_tree_lib_commands.reboot.html +2 -0
  67. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/functions/kernel_src_tree_lib_commands.screensaver.html +2 -0
  68. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/functions/kernel_src_tree_lib_commands.snake.html +2 -0
  69. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/functions/kernel_src_tree_lib_commands.su.html +2 -0
  70. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/functions/kernel_src_tree_lib_commands.umount.html +2 -0
  71. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/functions/kernel_src_tree_lib_commands.unzip.html +2 -0
  72. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/functions/kernel_src_tree_lib_commands.upload.html +2 -0
  73. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/functions/kernel_src_tree_lib_commands.video.html +2 -0
  74. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/functions/kernel_src_tree_lib_commands.zip.html +2 -0
  75. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/functions/kernel_src_tree_lib_commands_install.default.html +2 -0
  76. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/functions/kernel_src_tree_lib_commands_uninstall.default.html +2 -0
  77. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/functions/kernel_src_tree_lib_crontab.parseCrontabFile.html +5 -0
  78. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/functions/kernel_src_tree_lib_crontab.parseCrontabLine.html +5 -0
  79. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/functions/kernel_src_tree_lib_screensavers_blank.default.html +2 -0
  80. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/functions/kernel_src_tree_lib_screensavers_blank.exit.html +2 -0
  81. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/functions/kernel_src_tree_lib_screensavers_matrix.default.html +2 -0
  82. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/functions/kernel_src_tree_lib_screensavers_matrix.exit.html +2 -0
  83. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/index.html +297 -0
  84. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/interfaces/kernel_src_tree_lib_commands.CommandArgs.html +11 -0
  85. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/interfaces/kernel_src_tree_lib_crontab.CrontabEntry.html +5 -0
  86. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/interfaces/types_auth.Auth.html +3 -0
  87. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/interfaces/types_components.Components.html +3 -0
  88. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/interfaces/types_device.KernelDevice.html +21 -0
  89. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/interfaces/types_device.KernelDeviceCLIOptions.html +13 -0
  90. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/interfaces/types_device.KernelDeviceData.html +4 -0
  91. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/interfaces/types_dom.Dom.html +10 -0
  92. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/interfaces/types_dom.DomOptions.html +5 -0
  93. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/interfaces/types_events.Events.html +29 -0
  94. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/interfaces/types_filesystem.FileHeader.html +9 -0
  95. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/interfaces/types_filesystem.Filesystem.html +24 -0
  96. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/interfaces/types_filesystem.FilesystemDescriptions.html +5 -0
  97. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/interfaces/types_i18n.I18n.html +9 -0
  98. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/interfaces/types_i18n.I18nOptions.html +25 -0
  99. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/interfaces/types_intervals.ITimerHandle.html +5 -0
  100. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/interfaces/types_intervals.Intervals.html +28 -0
  101. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/interfaces/types_kernel.BootOptions.html +7 -0
  102. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/interfaces/types_kernel.Kernel.html +95 -0
  103. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/interfaces/types_kernel.KernelExecuteEvent.html +6 -0
  104. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/interfaces/types_kernel.KernelExecuteOptions.html +14 -0
  105. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/interfaces/types_kernel.KernelOptions.html +13 -0
  106. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/interfaces/types_kernel.KernelPanicEvent.html +3 -0
  107. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/interfaces/types_kernel.KernelShutdownEvent.html +3 -0
  108. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/interfaces/types_kernel.KernelUploadEvent.html +4 -0
  109. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/interfaces/types_keyboard.Keyboard.html +15 -0
  110. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/interfaces/types_log.Log.html +32 -0
  111. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/interfaces/types_log.LogOptions.html +9 -0
  112. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/interfaces/types_memory.Memory.html +46 -0
  113. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/interfaces/types_modules.KernelModule.html +10 -0
  114. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/interfaces/types_processes.FDTable.html +28 -0
  115. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/interfaces/types_processes.FileHandle.html +18 -0
  116. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/interfaces/types_processes.Process.html +68 -0
  117. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/interfaces/types_processes.ProcessEntryParams.html +33 -0
  118. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/interfaces/types_processes.ProcessExitEvent.html +5 -0
  119. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/interfaces/types_processes.ProcessManager.html +23 -0
  120. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/interfaces/types_processes.ProcessOptions.html +37 -0
  121. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/interfaces/types_processes.ProcessPauseEvent.html +3 -0
  122. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/interfaces/types_processes.ProcessResumeEvent.html +3 -0
  123. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/interfaces/types_processes.ProcessStartEvent.html +3 -0
  124. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/interfaces/types_processes.ProcessStopEvent.html +3 -0
  125. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/interfaces/types_protocol.Protocol.html +8 -0
  126. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/interfaces/types_protocol.ProtocolOptions.html +7 -0
  127. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/interfaces/types_service.Service.html +23 -0
  128. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/interfaces/types_service.ServiceOptions.html +9 -0
  129. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/interfaces/types_shell.Shell.html +32 -0
  130. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/interfaces/types_shell.ShellOptions.html +15 -0
  131. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/interfaces/types_sockets.Sockets.html +25 -0
  132. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/interfaces/types_sockets.SocketsOptions.html +5 -0
  133. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/interfaces/types_sockets.WebSocketConnection.html +17 -0
  134. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/interfaces/types_sockets.WebTransportConnection.html +17 -0
  135. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/interfaces/types_storage.StorageOptions.html +9 -0
  136. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/interfaces/types_storage.StorageProvider.html +15 -0
  137. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/interfaces/types_telemetry.Telemetry.html +7 -0
  138. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/interfaces/types_telemetry.TelemetryOptions.html +5 -0
  139. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/interfaces/types_terminal.Terminal.html +86 -0
  140. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/interfaces/types_terminal.TerminalAttachEvent.html +5 -0
  141. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/interfaces/types_terminal.TerminalCommand.html +16 -0
  142. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/interfaces/types_terminal.TerminalCreatedEvent.html +3 -0
  143. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/interfaces/types_terminal.TerminalExecuteEvent.html +4 -0
  144. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/interfaces/types_terminal.TerminalInputEvent.html +4 -0
  145. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/interfaces/types_terminal.TerminalInterruptEvent.html +3 -0
  146. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/interfaces/types_terminal.TerminalKeyEvent.html +4 -0
  147. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/interfaces/types_terminal.TerminalListenEvent.html +3 -0
  148. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/interfaces/types_terminal.TerminalMessageEvent.html +4 -0
  149. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/interfaces/types_terminal.TerminalMountEvent.html +4 -0
  150. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/interfaces/types_terminal.TerminalOptions.html +23 -0
  151. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/interfaces/types_terminal.TerminalPasteEvent.html +3 -0
  152. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/interfaces/types_terminal.TerminalResizeEvent.html +4 -0
  153. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/interfaces/types_terminal.TerminalUnlistenEvent.html +3 -0
  154. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/interfaces/types_terminal.TerminalWriteEvent.html +3 -0
  155. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/interfaces/types_terminal.TerminalWritelnEvent.html +3 -0
  156. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/interfaces/types_users.AddUserOptions.html +9 -0
  157. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/interfaces/types_users.Passkey.html +15 -0
  158. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/interfaces/types_users.User.html +21 -0
  159. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/interfaces/types_users.Users.html +48 -0
  160. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/interfaces/types_users.UsersOptions.html +5 -0
  161. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/interfaces/types_wasm.Wasm.html +9 -0
  162. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/interfaces/types_wasm.WasmOptions.html +5 -0
  163. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/interfaces/types_windows.WindowOptions.html +15 -0
  164. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/interfaces/types_windows.Windows.html +20 -0
  165. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/interfaces/types_workers.Workers.html +9 -0
  166. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/media/package.json +72 -0
  167. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/media/turbo.json +38 -0
  168. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/modules/kernel_src_tree_auth.html +2 -0
  169. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/modules/kernel_src_tree_components.html +2 -0
  170. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/modules/kernel_src_tree_device.html +2 -0
  171. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/modules/kernel_src_tree_dom.html +2 -0
  172. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/modules/kernel_src_tree_events.html +2 -0
  173. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/modules/kernel_src_tree_fdtable.html +2 -0
  174. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/modules/kernel_src_tree_filesystem.html +2 -0
  175. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/modules/kernel_src_tree_i18n.html +2 -0
  176. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/modules/kernel_src_tree_intervals.html +2 -0
  177. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/modules/kernel_src_tree_kernel.html +2 -0
  178. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/modules/kernel_src_tree_lib_commands.html +2 -0
  179. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/modules/kernel_src_tree_lib_commands_install.html +2 -0
  180. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/modules/kernel_src_tree_lib_commands_uninstall.html +2 -0
  181. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/modules/kernel_src_tree_lib_crontab.html +2 -0
  182. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/modules/kernel_src_tree_lib_screensavers_blank.html +2 -0
  183. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/modules/kernel_src_tree_lib_screensavers_matrix.html +2 -0
  184. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/modules/kernel_src_tree_log.html +2 -0
  185. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/modules/kernel_src_tree_memory.html +2 -0
  186. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/modules/kernel_src_tree_processes.html +2 -0
  187. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/modules/kernel_src_tree_protocol.html +2 -0
  188. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/modules/kernel_src_tree_service.html +2 -0
  189. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/modules/kernel_src_tree_shell.html +2 -0
  190. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/modules/kernel_src_tree_sockets.html +2 -0
  191. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/modules/kernel_src_tree_storage.html +2 -0
  192. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/modules/kernel_src_tree_telemetry.html +2 -0
  193. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/modules/kernel_src_tree_terminal.html +2 -0
  194. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/modules/kernel_src_tree_users.html +2 -0
  195. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/modules/kernel_src_tree_wasm.html +2 -0
  196. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/modules/kernel_src_tree_windows.html +2 -0
  197. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/modules/kernel_src_tree_workers.html +2 -0
  198. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/modules/types_auth.html +2 -0
  199. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/modules/types_components.html +2 -0
  200. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/modules/types_device.html +2 -0
  201. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/modules/types_dom.html +2 -0
  202. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/modules/types_events.html +2 -0
  203. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/modules/types_filesystem.html +2 -0
  204. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/modules/types_i18n.html +2 -0
  205. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/modules/types_intervals.html +2 -0
  206. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/modules/types_kernel.html +2 -0
  207. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/modules/types_keyboard.html +2 -0
  208. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/modules/types_log.html +2 -0
  209. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/modules/types_memory.html +2 -0
  210. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/modules/types_modules.html +2 -0
  211. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/modules/types_processes.html +2 -0
  212. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/modules/types_protocol.html +2 -0
  213. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/modules/types_service.html +2 -0
  214. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/modules/types_shell.html +2 -0
  215. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/modules/types_sockets.html +2 -0
  216. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/modules/types_storage.html +2 -0
  217. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/modules/types_telemetry.html +2 -0
  218. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/modules/types_terminal.html +2 -0
  219. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/modules/types_users.html +2 -0
  220. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/modules/types_wasm.html +2 -0
  221. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/modules/types_windows.html +2 -0
  222. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/modules/types_workers.html +2 -0
  223. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/modules.html +2 -0
  224. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/types/kernel_src_tree_fdtable.ZenFSFileHandle.html +2 -0
  225. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/types/types_auth.PasswordCredentialInit.html +3 -0
  226. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/types/types_components.ComponentListener.html +3 -0
  227. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/types/types_events.EventCallback.html +3 -0
  228. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/types/types_filesystem.FilesystemConfigMounts.html +3 -0
  229. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/types/types_filesystem.FilesystemOptions.html +3 -0
  230. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/types/types_filesystem.Path.html +3 -0
  231. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/types/types_intervals.CronMap.html +3 -0
  232. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/types/types_intervals.IntervalMap.html +3 -0
  233. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/types/types_memory.Address.html +3 -0
  234. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/types/types_memory.Collection.html +3 -0
  235. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/types/types_memory.Config.html +3 -0
  236. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/types/types_memory.Heap.html +3 -0
  237. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/types/types_memory.Stack.html +3 -0
  238. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/types/types_memory.StackFrame.html +3 -0
  239. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/types/types_modules.KernelModules.html +2 -0
  240. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/types/types_processes.ProcessStatus.html +3 -0
  241. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/types/types_processes.ProcessesMap.html +3 -0
  242. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/types/types_sockets.SocketConnection.html +3 -0
  243. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/types/types_sockets.WebSocketState.html +3 -0
  244. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/types/types_sockets.WebTransportState.html +3 -0
  245. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/types/types_users.GID.html +3 -0
  246. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/types/types_users.UID.html +3 -0
  247. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/types/types_windows.WindowId.html +3 -0
  248. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/variables/kernel_src_tree_device.DefaultDevices.html +2 -0
  249. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/variables/kernel_src_tree_dom.DefaultDomOptions.html +2 -0
  250. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/variables/kernel_src_tree_filesystem.DefaultFilesystemOptions.html +2 -0
  251. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/variables/kernel_src_tree_i18n.DefaultI18nOptions.html +2 -0
  252. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/variables/kernel_src_tree_log.DefaultLogOptions.html +2 -0
  253. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/variables/kernel_src_tree_service.DefaultServiceOptions.html +2 -0
  254. package/dist/initfs/usr/share/docs/@ecmaos/kernel/docs/variables/kernel_src_tree_terminal.DefaultTerminalOptions.html +2 -0
  255. package/dist/initfs/usr/share/docs/@ecmaos/kernel/index.md +422 -0
  256. package/dist/initfs/usr/share/docs/@zenfs/core/architecture.md +30 -0
  257. package/dist/initfs/usr/share/docs/@zenfs/core/backends.md +61 -0
  258. package/dist/initfs/usr/share/docs/@zenfs/core/configuration.md +54 -0
  259. package/dist/initfs/usr/share/docs/@zenfs/core/devices.md +58 -0
  260. package/dist/initfs/usr/share/docs/@zenfs/core/index.md +192 -0
  261. package/dist/initfs/usr/share/docs/@zenfs/core/internal.md +31 -0
  262. package/dist/initfs/usr/share/docs/@zenfs/core/security.md +64 -0
  263. package/dist/initfs/usr/share/docs/@zenfs/core/vfs.md +35 -0
  264. package/dist/initfs/usr/share/licenses/@ecmaos/kernel/LICENSE +7 -0
  265. package/dist/initfs/usr/share/licenses/@ecmaos/kernel/LICENSE-APACHE +176 -0
  266. package/dist/initfs/usr/share/licenses/@ecmaos/kernel/LICENSE-MIT +21 -0
  267. package/dist/initfs.tar.gz +0 -0
  268. package/dist/{install-rrrSe9gU.js → install-DPcyci9f.js} +2 -2
  269. package/dist/{install-rrrSe9gU.js.map → install-DPcyci9f.js.map} +1 -1
  270. package/dist/{kernel-CQgA6xYK.js → kernel-BRRljz7g.js} +16598 -19530
  271. package/dist/kernel-BRRljz7g.js.map +1 -0
  272. package/dist/kernel.css +0 -1
  273. package/dist/kernel.d.ts +7 -0
  274. package/dist/kernel.js +1 -1
  275. package/dist/{topbar.min-Ck_9k_ZZ.js → topbar.min-B0DZo7_n.js} +2 -2
  276. package/dist/{topbar.min-Ck_9k_ZZ.js.map → topbar.min-B0DZo7_n.js.map} +1 -1
  277. package/dist/ui.js +4 -2
  278. package/dist/ui.js.map +1 -1
  279. package/dist/{uninstall-CWCMFOB2.js → uninstall-DMgPDmXl.js} +2 -2
  280. package/dist/{uninstall-CWCMFOB2.js.map → uninstall-DMgPDmXl.js.map} +1 -1
  281. package/package.json +10 -7
  282. package/dist/kernel-CQgA6xYK.js.map +0 -1
  283. /package/dist/initfs/usr/share/licenses/{zenfs → @zenfs/core}/COPYRIGHT.txt +0 -0
  284. /package/dist/initfs/usr/share/licenses/{zenfs → @zenfs/core}/LICENSE.md +0 -0
@@ -0,0 +1,422 @@
1
+ # The Web Kernel
2
+
3
+ [![Launch ecmaOS.sh](https://img.shields.io/badge/launch-ecmaos.sh-blue?style=for-the-badge)](https://ecmaos.sh)
4
+
5
+ > Made with ❤️ by [Jay Mathis](https://jaymath.is)
6
+ >
7
+ > [![Stars](https://img.shields.io/github/stars/mathiscode?style=flat&logo=github&label=⭐️)](https://github.com/mathiscode) [![Followers](https://img.shields.io/github/followers/mathiscode?style=flat&logo=github&label=follow)](https://github.com/mathiscode)
8
+
9
+ [ecmaOS](https://ecmaos.sh) is a browser-based operating system kernel and suite of applications written primarily in TypeScript, AssemblyScript, and C++. It's the successor of [web3os](https://github.com/web3os-org/kernel).
10
+
11
+ The goal is to create a kernel and supporting apps that tie together modern web technologies and utilities to form an "operating system" that can run on modern browsers, not just to create a "desktop experience". It offers the ability to run a wide variety of apps on top of an already (mostly) sandboxed foundation, offering some measure of security by default as well as rich developer tooling. Its main use case is to provide a consistent environment for running web apps, but it has features that allow for more powerful custom scenarios, such as a platform for custom applications, games, and more.
12
+
13
+ This is NOT intended to be a "Linux kernel in Javascript" - while it takes its heaviest inspiration from Linux, it is more experimental and follows different design principles and architecture, and also doesn't need to cover nearly the same scope.
14
+
15
+ ---
16
+
17
+ > *"The computer can be used as a tool to liberate and protect people, rather than to control them."*
18
+ > — Hal Finney
19
+
20
+ [![Version](https://img.shields.io/github/package-json/v/ecmaos/ecmaos?color=success)](https://www.npmjs.com/package/@ecmaos/kernel)
21
+ [![Site Status](https://img.shields.io/website?url=https%3A%2F%2Fecmaos.sh)](https://ecmaos.sh)
22
+ [![Created](https://img.shields.io/github/created-at/ecmaos/ecmaos?style=flat&label=created&color=success)](https://github.com/ecmaos/ecmaos/pulse)
23
+ [![Last Commit](https://img.shields.io/github/last-commit/ecmaos/ecmaos.svg)](https://github.com/ecmaos/ecmaos/commit/main)
24
+ [![API Reference](https://img.shields.io/badge/API-Reference-success)](https://docs.ecmaos.sh)
25
+ [![GitHub license](https://img.shields.io/badge/license-MIT+Apache2.0-success)](https://github.com/ecmaos/ecmaos/blob/main/LICENSE)
26
+
27
+ [![Open issues](https://img.shields.io/github/issues/ecmaos/ecmaos.svg?logo=github)](https://github.com/ecmaos/ecmaos/issues)
28
+ [![Closed issues](https://img.shields.io/github/issues-closed/ecmaos/ecmaos.svg?logo=github)](https://github.com/ecmaos/ecmaos/issues?q=is%3Aissue+is%3Aclosed)
29
+ [![Open PRs](https://img.shields.io/github/issues-pr-raw/ecmaos/ecmaos.svg?logo=github&label=PRs)](https://github.com/ecmaos/ecmaos/pulls)
30
+ [![Closed PRs](https://img.shields.io/github/issues-pr-closed/ecmaos/ecmaos.svg?logo=github&label=PRs)](https://github.com/ecmaos/ecmaos/pulls?q=is%3Apr+is%3Aclosed)
31
+
32
+ [![Star on GitHub](https://img.shields.io/github/stars/ecmaos/ecmaos?style=flat&logo=github&label=⭐️%20stars)](https://github.com/ecmaos/ecmaos/stargazers)
33
+ [![GitHub forks](https://img.shields.io/github/forks/ecmaos/ecmaos?style=flat&logo=github&label=🔀%20forks)](https://github.com/ecmaos/ecmaos/forks)
34
+ [![GitHub watchers](https://img.shields.io/github/watchers/ecmaos/ecmaos?style=flat&logo=github&label=👀%20watchers)](https://github.com/ecmaos/ecmaos/watchers)
35
+ [![Sponsors](https://img.shields.io/github/sponsors/mathiscode?color=red&logo=github&label=💖%20sponsors)](https://github.com/sponsors/mathiscode)
36
+ [![Contributors](https://img.shields.io/github/contributors/ecmaos/ecmaos?color=yellow&logo=github&label=👥%20contributors)](https://github.com/ecmaos/ecmaos/graphs/contributors)
37
+
38
+ [![Discord](https://img.shields.io/discord/1311804229127508081?label=discord&logo=discord&logoColor=white)](https://discord.gg/ZJYGkbVsCh)
39
+ [![Matrix](https://img.shields.io/matrix/ecmaos:matrix.org.svg?label=%23ecmaos%3Amatrix.org&logo=matrix&logoColor=white)](https://matrix.to/#/#ecmaos:matrix.org)
40
+ [![Bluesky](https://img.shields.io/badge/follow-on%20Bluesky-blue?logo=bluesky&logoColor=white)](https://ecmaos.bsky.social)
41
+ [![Reddit](https://img.shields.io/reddit/subreddit-subscribers/ecmaos?style=flat&logo=reddit&logoColor=white&label=r/ecmaos)](https://www.reddit.com/r/ecmaos)
42
+
43
+ ## Features
44
+
45
+ - TypeScript, WebAssembly, AssemblyScript, C++
46
+ - Filesystem supporting multiple backends powered by [zenfs](https://github.com/zen-fs/core)
47
+ - Terminal interface powered by [xterm.js](https://xtermjs.org)
48
+ - Pseudo-streams, allowing redirection and piping
49
+ - Device framework with a common interface for working with hardware: WebBluetooth, WebSerial, WebHID, WebUSB, etc.
50
+ - Some devices have a builtin CLI, so you can run them like normal commands: `# /dev/bluetooth`
51
+ - Install any client-side npm package (this doesn't mean it will work out of the box as expected)
52
+ - Event manager for dispatching and subscribing to events
53
+ - Process manager for running applications and daemons
54
+ - Interval manager for scheduling recurring operations with support for cron expressions via the `cron` command
55
+ - Memory manager for managing pseudo-memory: Collections, Config, Heap, and Stack
56
+ - Storage manager for managing Storage API capabilities: IndexedDB, localStorage, etc.
57
+ - Internationalization framework for translating text powered by [i18next](https://www.i18next.com)
58
+ - Window manager powered by [WinBox](https://github.com/nextapps-de/winbox)
59
+ <!-- - `BIOS`: A C++ module compiled to WebAssembly with [Emscripten](https://emscripten.org) providing performance-critical functionality -->
60
+ <!-- - `Jaffa`: A [Tauri](https://tauri.app) app for running ecmaOS in a desktop or mobile environment -->
61
+ - `Metal`: An API server for allowing connections to physical systems from ecmaOS using [Hono](https://hono.dev)
62
+ - `SWAPI`: An API server running completely inside a service worker using [Hono](https://hono.dev)
63
+
64
+ ## Basic Concepts
65
+
66
+ ### Apps
67
+
68
+ > [/apps](/apps)
69
+
70
+ - These are full applications that are developed specifically to work with ecmaOS
71
+ - Refer to the full list of [official published apps on npm](https://www.npmjs.com/org/ecmaos-apps)
72
+ - See the [APPS.md](/APPS.md) file for a list of community apps; submit a PR to add your app!
73
+ - An app is an npm package, in which the bin file has a shebang line of `#!ecmaos:bin:app:myappname`
74
+ - Its default export (or exported `main` function) will be called with the `ProcessEntryParams` object
75
+ - They can be installed from the terminal using the `install` command, e.g. `# install @ecmaos-apps/code`
76
+ - Run the installed app (bins are linked to `/usr/bin`): `# code /root/hello.js`
77
+ - During development, it can be useful to run a [Verdaccio](https://github.com/verdaccio/verdaccio) server to test local packages
78
+ - To publish to Verdaccio, run `# npm publish --registry http://localhost:4873` in your app's development environment
79
+ - Then to install from your local registry, run (inside ecmaOS) `# install @myscope/mypackage --registry http://localhost:4873`
80
+
81
+ <!-- Will revamp once more work is done on this -->
82
+ <!-- ### BIOS
83
+
84
+ > [/core/bios](/core/bios)
85
+
86
+ - The BIOS is a C++ module compiled to WebAssembly with [Emscripten](https://emscripten.org) providing performance-critical functionality
87
+ - The BIOS has its own filesystem, located at `/bios` — this allows data to be copied in and out of the BIOS for custom code and utilities
88
+ - The main idea is that data and custom code can be loaded into it from the OS for WASM-native performance, as well as providing various utilities
89
+ - Confusingly, the Kernel loads the BIOS — not the other way around -->
90
+
91
+ ### Commands
92
+
93
+ > [/core/kernel/src/tree/lib/commands](/core/kernel/src/tree/lib/commands)
94
+
95
+ - `Commands` are built-in shell commands that are provided by the kernel, e.g. `download`, `install`, `load`, etc.
96
+
97
+ ### Coreutils
98
+
99
+ > [/core/utils](/core/utils)
100
+
101
+ - `Coreutils` are similar to `Commands`, but are provided by the `@ecmaos/coreutils` package, e.g. `cat`, `cd`, `chmod`, `cp`, `echo`, `ls`, `mkdir`, `mv`, `pwd`, `rm`, `rmdir`, `stat`, `touch`, etc.
102
+
103
+ ### Devices
104
+
105
+ > [/devices](/devices)
106
+
107
+ - Refer to the full list of [official devices on npm](https://www.npmjs.com/org/ecmaos-devices)
108
+ - See the [DEVICES.md](/DEVICES.md) file for a list of community devices; submit a PR to add your device!
109
+ - Devices get loaded on boot, e.g. `/dev/bluetooth`, `/dev/random`, `/dev/battery`, etc.
110
+ - A device can support being "run" by a user, e.g. `# /dev/battery status`
111
+ - Devices may also be directly read/written using `fs` methods, and will behave accordingly (or have no effect if not supported)
112
+ - An individual device module can provide multiple device drivers, e.g. `/dev/usb` provides `/dev/usb-mydevice-0001-0002`
113
+
114
+ ### Generators
115
+
116
+ > [/turbo/generators](/turbo/generators)
117
+
118
+ - Generators are used to scaffold new apps, devices, modules, etc.
119
+ - They are located in the `turbo/generators` directory of the repository
120
+ - They are used by the `turbo gen` command, e.g. `turbo gen app`, `turbo gen device`, `turbo gen module`, etc.
121
+
122
+ <!-- Will revamp once more work is done on this -->
123
+ <!-- ### Jaffa
124
+
125
+ > [/core/jaffa](/core/jaffa)
126
+
127
+ - Jaffa is a [Tauri](https://tauri.app) wrapper for the ecmaOS kernel
128
+ - It's used to tie the kernel into a desktop or mobile environment, allowing for native functionality
129
+ - It needs more work -->
130
+
131
+ ### Kernel
132
+
133
+ > [/core/kernel](/core/kernel)
134
+
135
+ - The kernel ties together the various components of the system into a cohesive whole
136
+ - Authentication (Passwords, Passkeys, Credentials)
137
+ - Components (Web Components/Custom Elements)
138
+ - Coreutils (Built-in commands)
139
+ - Devices (Web Hardware APIs)
140
+ - DOM (DOM Utilities and Interfaces)
141
+ - Events (CustomEvents)
142
+ - Filesystem (ZenFS)
143
+ - Internationalization (i18next)
144
+ - Interval Manager (setInterval and cron scheduling)
145
+ - Log Manager (tslog)
146
+ - Memory Manager (Abstractions)
147
+ - Process Manager
148
+ - Protocol Handlers (web+ecmaos://...)
149
+ - Service Worker Manager
150
+ - Shell
151
+ - Sockets (WebSocket, WebTransport)
152
+ - Storage (IndexedDB, localStorage, sessionStorage, etc.)
153
+ - Telemetry (OpenTelemetry)
154
+ - Terminal (xterm.js)
155
+ - User Manager
156
+ - WASM Loader
157
+ <!-- - [WebContainer](https://github.com/stackblitz/webcontainer-core) for running Node.js apps -->
158
+ - Window Manager (WinBox)
159
+ - Web Workers
160
+
161
+ ### Metal
162
+
163
+ > [/core/metal](/core/metal)
164
+
165
+ - Metal is an API server for allowing connections to physical systems from ecmaOS using [Hono](https://hono.dev)
166
+ - Authenticated and encrypted connections with JWK/JWE/JOSE
167
+
168
+ ### Modules
169
+
170
+ > [/modules](/modules)
171
+
172
+ - Refer to the full list of [official modules on npm](https://www.npmjs.com/org/ecmaos-modules)
173
+ - See the [MODULES.md](/MODULES.md) file for a list of community modules; submit a PR to add your module!
174
+ - Modules are dynamically loaded into the kernel at boot and can be enabled or disabled
175
+ - They are specified during build via the `VITE_KERNEL_MODULES` environment variable
176
+ - e.g. `VITE_KERNEL_MODULES=@ecmaos-modules/boilerplate@0.1.0,@your/package@1.2.3`
177
+ - Versions must be pinned and are mandatory - you cannot use NPM version specifiers
178
+ - They can provide additional functionality, devices, commands, etc.
179
+ - They offer a [common interface](./core/types/modules.ts) for interacting with the kernel
180
+ - Generally they should be written in [AssemblyScript](https://www.assemblyscript.org), but this isn't required
181
+
182
+ ### Packages
183
+
184
+ - Packages are [NPM packages](https://www.npmjs.com) that are installed into the ecmaOS environment
185
+ - They can be installed from the terminal using the `install` command, e.g. `# install @ecmaos-apps/ai`
186
+ - Client-side packages should work well
187
+ - Some basic Node emulation is in place, but don't expect anything to work at this point
188
+ - NPM version specifiers are supported, e.g.:
189
+ - `# install jquery@3.7.1`
190
+ - `# install jquery@^3.7.1`
191
+ - `# install jquery@latest`
192
+ - [JSR](https://jsr.io) may be used with the [NPM compatibility layer](https://jsr.io/docs/npm-compatibility):
193
+ - `# install @jsr/defaude__hello-jsr --registry https://npm.jsr.io`
194
+
195
+ ### Sockets
196
+
197
+ - A socket manager is available for creating and managing WebSocket and WebTransport connections
198
+ - It can be accessed via the `kernel.sockets` property or the `sockets` command
199
+
200
+ ### SWAPI
201
+
202
+ > [/core/swapi](/core/swapi)
203
+
204
+ - The SWAPI is an API server running completely inside a service worker using [Hono](https://hono.dev)
205
+ - It allows for various operations including the `fs` route to fetch files via URL
206
+ - e.g., `# fetch /swapi/fs/home/user/hello.txt`
207
+ - e.g., `# fetch /swapi/fake/person/fullName`
208
+
209
+ ### Telemetry
210
+
211
+ - [OpenTelemetry](https://opentelemetry.io) is used for collecting and analyzing telemetry data from the kernel and applications
212
+ - It is only active if the VITE_OPENTELEMETRY_ENDPOINT environment variable is set when building the kernel
213
+ - There is a simple test server included in the `utils/opentelemetry` directory that can be used to test the telemetry system: `python3 utils/opentelemetry/otlp-server.py`
214
+
215
+ ### Utils
216
+
217
+ > [/utils](/utils)
218
+
219
+ - Utilities and configuration used during development
220
+
221
+ ## Important Files and Directories
222
+
223
+ - `/bin/`: Built-in commands
224
+ - `/bios/`: The BIOS filesystem
225
+ - `/boot/init`: A script that runs on boot
226
+ - `/dev/`: All devices are here
227
+ - `/etc/crontab`: System-wide crontab file (loaded on boot)
228
+ - `/etc/packages`: A list of installed packages to load on boot
229
+ - `/home/`: Contains user home directories
230
+ - `~/.config/crontab`: User-specific crontab file (loaded on login)
231
+ - `/proc/`: Contains various dynamic system information
232
+ - `/root/`: The home directory for the root user
233
+ - `/usr/bin/`: Executable packages get linked here
234
+ - `/usr/lib/`: All installed packages are here
235
+ - `/var/log/kernel.log`: The kernel log
236
+
237
+ ## Command Examples
238
+
239
+ ```sh
240
+ ai "Despite all my rage" # use `env OPENAI_API_KEY --set sk-`
241
+ cat /var/log/kernel.log
242
+ cd /tmp
243
+ echo "Hello, world!" > hello.txt
244
+ chmod 700 hello.txt
245
+ chown user hello.txt
246
+ clear
247
+ cp /tmp/hello.txt /tmp/hi.txt
248
+ cron add "* * * * *" "echo hello" # add a cron job
249
+ cron reload # reload crontabs from files
250
+ cron list # list all cron jobs
251
+ download hello.txt
252
+ edit hello.txt
253
+ env hello --set world ; env
254
+ fetch https://ipecho.net/plain > /tmp/myip.txt
255
+ fetch /xkcd-os.sixel # xterm.js includes sixel support
256
+ fetch /swapi/fs/home/user/hello.txt # fetch a file from the filesystem
257
+ fetch /swapi/fake/person/fullName # fetch a random person from the SWAPI
258
+ install jquery
259
+ install @ecmaos-apps/boilerplate
260
+ ls /dev
261
+ mkdir /tmp/zip ; cd /tmp/zip
262
+ upload
263
+ mount myuploadedzip.zip /mnt/zip -t zip
264
+ cd .. ; pwd
265
+ unzip zip/myuploaded.zip
266
+ mv zip/myuploaded.zip /tmp/backup.zip
267
+ passwd old new
268
+ play /root/test.mp3
269
+ ps
270
+ rm /tmp/backup.zip
271
+ screensaver
272
+ snake
273
+ stat /tmp/hello.txt
274
+ touch /tmp/test.bin
275
+ umount /mnt/zip
276
+ user add --username user
277
+ su user
278
+ video /root/video.mp4
279
+ zip /root/tmp.zip /tmp
280
+ ```
281
+
282
+ ## Device Examples
283
+
284
+ ```sh
285
+ /dev/audio test
286
+ /dev/battery status
287
+ /dev/bluetooth scan
288
+ echo "This will error" > /dev/full
289
+ /dev/gamepad list
290
+ /dev/geo position
291
+ /dev/gpu test
292
+ /dev/hid list
293
+ /dev/midi list
294
+ echo "Goodbye" > /dev/null
295
+ /dev/presentation start https://wikipedia.org
296
+ cat /dev/random --bytes 10
297
+ /dev/sensors list
298
+ /dev/serial devices
299
+ /dev/usb list
300
+ /dev/webgpu test
301
+ cat /dev/zero --bytes 10 > /dev/null
302
+ ```
303
+
304
+ Note: many device implementations are incomplete, but provide a solid starting point
305
+
306
+ ## Code Execution Example
307
+
308
+ ```sh
309
+ echo "window.alert('Hello, world!')" > /root/hello.js
310
+ load /root/hello.js
311
+ ```
312
+
313
+ ## Scripting
314
+
315
+ ```txt
316
+ #!ecmaos:bin:script
317
+ echo "Hello, world!"
318
+ install jquery
319
+ ```
320
+
321
+ ## Startup
322
+
323
+ - `/boot/init` is a script that runs on boot inside the init process (PID 0)
324
+ - `/etc/crontab` is loaded on boot and contains system-wide scheduled tasks
325
+ - `~/.config/crontab` is loaded on user login and contains user-specific scheduled tasks
326
+ - `/etc/packages` is a list of already installed packages to load on boot; one per line
327
+ - The env var `VITE_KERNEL_MODULES` is a list of modules to load on boot; CSV with pinned versions
328
+ - The env var `VITE_RECOMMENDED_APPS` is a list of apps to suggest to new users
329
+
330
+ ## App Development
331
+
332
+ The [apps](/apps) directory in the repository contains some examples of how to develop apps, but there are many approaches you could take.
333
+
334
+ - `@ecmaos-apps/boilerplate`: A minimal boilerplate app for reference
335
+ - `@ecmaos-apps/code`: A simple code editor app using [Monaco](https://microsoft.github.io/monaco-editor/); serves as a good reference for more complex apps
336
+
337
+ Basically, your app's [bin](https://docs.npmjs.com/cli/v10/configuring-npm/package-json#bin) file has a `main` (or default) function export that is passed the kernel reference and can use it to interact with the system as needed. A shebang line of `#!ecmaos:bin:app:myappname` is required at the top of the bin file to identify it as an app.
338
+
339
+ ## App/Kernel Interface Example
340
+
341
+ > See the [docs](https://docs.ecmaos.sh) for more information
342
+
343
+ ```ts
344
+ #!ecmaos:bin:app:example
345
+ // shebang format: ecmaos:exectype:execnamespace:execname
346
+ export default async function main(params: ProcessEntryParams) {
347
+ const { args, kernel, terminal } = params
348
+ kernel.log.info('Hello, world!')
349
+ kernel.log.debug(args)
350
+ terminal.writeln('Hello, world!')
351
+ await kernel.filesystem.fs.writeFile('/tmp/hello.txt', 'Hello, world!')
352
+ const win = kernel.windows.create({ title: 'Example', width: 800, height: 600 })
353
+ const container = document.createElement('div')
354
+ container.innerHTML = '<h1>Hello, world!</h1>'
355
+ win.mount(container)
356
+ }
357
+ ```
358
+
359
+ ## Early Days
360
+
361
+ ecmaOS is currently in active development. It is not considered stable and the structure and API are very likely to change in unexpected and possibly unannounced ways until version 1.0.0. Use cautiously and at your own risk.
362
+
363
+ Things to keep in mind:
364
+
365
+ - If things go wrong or break, clear your browser cache and site data for ecmaOS
366
+ - Things have changed a lot since the tests were written, so they need to be updated and fixed
367
+ - The kernel is designed to be run in an environment with a DOM (i.e. a browser)
368
+ - Many features are only available on Chromium-based browsers, and many more behind feature flags
369
+ - There will be a lot of technical challenges to overcome, and many things will first be implemented in a non-optimal way
370
+ - Command interfaces won't match what you might be used to from a traditional Linux environment; not all commands and options are supported. Over time, Linuxish commands will be fleshed out and made to behave in a more familiar way.
371
+ - Globbing doesn't work in the terminal yet, [but is supported at the filesystem level](https://zenfs.dev/core/functions/fs.promises.glob.html)
372
+
373
+ ## Development
374
+
375
+ [Turborepo](https://turbo.build/repo) is used to manage the monorepo, and [pnpm](https://pnpm.io) is used for package management.
376
+
377
+ PNPM Workspaces:
378
+
379
+ - [apps](/apps)
380
+ - [core](/core)
381
+ - [devices](/devices)
382
+ - [modules](/modules)
383
+ - [utils](/utils)
384
+
385
+ A good place to start is viewing the `scripts` property of [package.json](./package.json) in the root of the repository.
386
+
387
+ ```bash
388
+ # Clone
389
+ git clone https://github.com/ecmaos/ecmaos.git
390
+
391
+ # Install dependencies
392
+ cd ecmaos && pnpm install
393
+
394
+ # Run the dev server
395
+ pnpm run dev:kernel
396
+
397
+ # Run the docs server (optional)
398
+ pnpm run dev:docs
399
+
400
+ # Build
401
+ pnpm run build
402
+
403
+ # Run tests
404
+ pnpm run test
405
+ pnpm run test:watch
406
+ pnpm run test:coverage
407
+ pnpm run test:bench
408
+ pnpm run test:ui
409
+
410
+ # Generate modules
411
+ turbo gen app # generate a new app template
412
+ turbo gen device # generate a new device template
413
+ turbo gen module # generate a new module template
414
+ ```
415
+
416
+ Also see [turbo.json](./turbo.json) and [CONTRIBUTING.md](/CONTRIBUTING.md) for more information.
417
+
418
+ ## Security Vulnerabilities
419
+
420
+ See [SECURITY.md](/SECURITY.md) for more information.
421
+
422
+ If you find a serious security vulnerability, please submit a new [Draft Security Advisory](https://github.com/ecmaos/ecmaos/security) or contact the project maintainer directly at [code@mathis.network](mailto:code@mathis.network).
@@ -0,0 +1,30 @@
1
+ ---
2
+ title: Architecture
3
+ ---
4
+
5
+ ZenFS is modular, designed to provide a flexible abstraction over multiple storage backends. It allows applications to interact with files and directories without needing to be aware of the underlying storage mechanism. Separating the file system logic into distinct layers ensures maintainability and extensibility, without a major impact on performance.
6
+
7
+ ZenFS is built upon three main components:
8
+
9
+ ## 1. Virtual File System (VFS)
10
+
11
+ _Main article: [Virtual File System (VFS)](./vfs.md)_
12
+
13
+ The Virtual File System (VFS) is responsible for emulating the `node:fs` API, path resolution, and mounting different storage backends. It provides a unified interface that applications interact with, abstracting away differences between storage implementations. The VFS is responsible for:
14
+
15
+ - Path translation and resolution
16
+ - `node:fs` emulation
17
+ - Managing contexts and permissions
18
+ - Handling mounts for different backends
19
+
20
+ ## 2. Backends
21
+
22
+ _Main article: [Backends](./backends.md)_
23
+
24
+ Backends provide a modular way to configure and use various underlying storage implementations. They are the metaphorical glue between the VFS, configuration, and the internal API.
25
+
26
+ ## 3. Internal API
27
+
28
+ _Main article: [Internal API](./internal.md)_
29
+
30
+ The Internal API provides the core functionality of ZenFS. It serves as the foundation that both the VFS and backends rely on. The internal API is what backend implementations conform to, allowing the VFS to easily perform operations without knowledge of the underlying implementation.
@@ -0,0 +1,61 @@
1
+ ---
2
+ title: Backends
3
+ ---
4
+
5
+ ## Overview
6
+
7
+ Backends in ZenFS are configuration-driven objects that instantiate storage implementations conforming to the internal API. Rather than directly handling file operations, the VFS routes all interactions through a backend, which creates and configures a `FileSystem` instance.
8
+
9
+ ## Configuration
10
+
11
+ Backends in ZenFS are designed to be configuration-driven. Each backend provides:
12
+
13
+ A `name`, used to identify the backend type.
14
+
15
+ A set of configuration `options`, defined via `OptionsConfig<T>`.
16
+
17
+ A `create` method, which returns an instance of `FileSystem` or a promise resolving to an instance of `FileSystem`.
18
+
19
+ ## An example
20
+
21
+ An example implementation of a backend might look something like this:
22
+
23
+ ```ts
24
+ interface ExampleOptions {
25
+ raw: RawExampleData; // e.g. `Storage` for a backend that works with `localStorage`
26
+ }
27
+
28
+ const Example = {
29
+ name: 'ExampleStorage',
30
+ options: {
31
+ raw: { type: 'object', required: true },
32
+ },
33
+ async create({ raw }: ExampleOptions) {
34
+ await raw.doSomethingAsync();
35
+ return new ExampleFS(raw);
36
+ },
37
+ } as const satisfies Backend<ExampleFS, ExampleOptions>;
38
+ ```
39
+
40
+ **Why do backends use `as const`, `satisfies`, and other strange ways to export a simple object**
41
+
42
+ If you've taken a look at ZenFS' code, you may have noticed just how convoluted an actual backend definition is:
43
+
44
+ ```ts
45
+ const _InMemory = {
46
+ // ...
47
+ } as const satisfies Backend<StoreFS<InMemoryStore>, { name?: string }>;
48
+ type _InMemory = typeof _InMemory;
49
+ export interface InMemory extends _InMemory {}
50
+ export const InMemory: InMemory = _InMemory;
51
+ ```
52
+
53
+ There are quite a few things going on here, but they are all for a good reason:
54
+
55
+ 1. `as const` and `satisfies`: This is to make sure the backend has the strictest types Typescript will allow, which in turn allow for more detailed and precise information when you try to incorrectly configure a backend
56
+ 2. `type _...` and `interface`: The `type` alias is needed since [interfaces can't extend typeof types](https://github.com/Microsoft/TypeScript/issues/14757). Using an interface means when a backend is incorrectly `configure`d, you will see the interface name. If this isn't done, VS Code and Typescript will show the _entire_ expanded `as const` type definition in the error message.
57
+ 3. Exporting with a different name: This is done since a type can not be referenced in its own definition
58
+
59
+ ## Integration with VFS and Internal API
60
+
61
+ The VFS does not interact directly with storage media. Instead, it mounts a configured backend, which in turn instantiates a `FileSystem`. This design ensures modularity and simplifies adding new storage types.
@@ -0,0 +1,54 @@
1
+ ---
2
+ title: Configuration
3
+ ---
4
+
5
+ ## Overview
6
+
7
+ The `configure` function is the primary entry point for setting up ZenFS. It determines which backends to use and how they are mounted.
8
+
9
+ ## Setting Up ZenFS
10
+
11
+ The `configure` function initializes ZenFS with the provided configuration object. It makes sure file systems are set up and ready, then mounts them. Also, `configure` allows you to enable or disable features— like permissions. For more information on the options available, refer to the documentation for the `Configuration` interface.
12
+
13
+ Example Usage:
14
+
15
+ ```ts
16
+ import { configure, InMemory } from '@zenfs/core';
17
+
18
+ await configure({
19
+ mounts: {
20
+ '/tmp': { backend: InMemory, label: 'temp-storage' },
21
+ },
22
+ });
23
+ ```
24
+
25
+ ## Mounting File Systems and `resolveMountConfig`
26
+
27
+ Mounting file systems in ZenFS is handled dynamically. When a mount configuration is provided, it is processed using `resolveMountConfig`, which determines how the backend should be initialized and mounted.
28
+
29
+ `resolveMountConfig` parses the provided mount configuration, validates the backend and its options, and instantiates the appropriate `FileSystem` for the given backend. It then returns the instance after it is ready. For example:
30
+
31
+ ```ts
32
+ import { resolveMountConfig, InMemory, mount } from '@zenfs/core';
33
+
34
+ const tmpfs = await resolveMountConfig({
35
+ backend: InMemory,
36
+ label: 'temp-storage',
37
+ });
38
+
39
+ mount('/mnt/tmp', tmpfs);
40
+ ```
41
+
42
+ ### Dynamic Mounting
43
+
44
+ Mounts can be resolved dynamically at runtime, allowing flexibility when configuring storage. This is especially useful for:
45
+
46
+ - Swapping backends on the fly.
47
+ - Mounting remote storage systems dynamically.
48
+ - Creating temporary in-memory file systems.
49
+
50
+ ## Contexts
51
+
52
+ _Main article: [Security](./security.md)_
53
+
54
+ Contexts allow you to create an additional `node:fs` "module" which has a different set of credentials and root.
@@ -0,0 +1,58 @@
1
+ ---
2
+ title: Devices and Device Drivers
3
+ ---
4
+
5
+ > [!WARNING]
6
+ > The device and device driver API is being upgraded into a broader "kernel" module API.
7
+ > See [#262](https://github.com/zen-fs/core/issues/262) for more information.
8
+
9
+ ZenFS includes support for device files. These are designed to follow Linux's device file behavior, for consistency and ease of use. You can automatically add some normal devices with the `addDevices` configuration option:
10
+
11
+ ```ts
12
+ await configure({
13
+ mounts: {
14
+ /* ... */
15
+ },
16
+ addDevices: true,
17
+ });
18
+
19
+ fs.writeFileSync('/dev/null', 'Some data to be discarded');
20
+
21
+ const randomData = new Uint8Array(100);
22
+
23
+ const random = fs.openSync('/dev/random', 'r');
24
+ fs.readSync(random, randomData);
25
+ fs.closeSync(random);
26
+ ```
27
+
28
+ ## Device Drivers
29
+
30
+ You can create your own devices by implementing a `DeviceDriver`. For example, the null device looks similar to this:
31
+
32
+ ```ts
33
+ const customNullDevice = {
34
+ name: 'custom_null',
35
+ // only 1 can exist per DeviceFS
36
+ singleton: true,
37
+ // optional if false
38
+ isBuffered: false,
39
+ read() {
40
+ return 0;
41
+ },
42
+ write() {
43
+ return 0;
44
+ },
45
+ };
46
+ ```
47
+
48
+ Note the actual implementation's write is slightly more complicated since it adds to the file position. You can find more information on the docs.
49
+
50
+ Finally, if you'd like to use your custom device with the file system:
51
+
52
+ ```ts
53
+ import { addDevice, fs } from '@zenfs/core';
54
+
55
+ addDevice(customNullDevice);
56
+
57
+ fs.writeFileSync('/dev/custom', 'This gets discarded.');
58
+ ```