bigass changes

- ls beginnings,
- added groups to shellstate
- made buffers optional in result factory functions,
- made an enum signal map,
- fixed a minor bug in path resolver that didnt output the '/' if     the inode was at root (inode 0) from the moment it was called

- added code that attaches the shell to the built-in IDE terminal

--

tests need fixing, new code needs testing
This commit is contained in:
2026-08-24 10:30:04 +02:00
parent 48aac3c883
commit dad18cd4cc
14 changed files with 380 additions and 82 deletions
+3 -2
View File
@@ -2,6 +2,7 @@ import type { CommandDescriptor, CommandOutput } from "@core/command";
import type { CommandIO } from "@core/command_io";
import type { ResultSuccess } from "@core/result";
import type { ShellState } from "@core/shell_state";
import { SIGNAL_MAP } from "@core/signal";
import type { ShellError } from "@core/util/errors";
import { createImmutableBuffer } from "@core/util/immutable_buffer";
@@ -16,11 +17,11 @@ async function main(
while (true) {
const out = await io.getSignal();
if (out.type === "INPUT") {
if (out.type === SIGNAL_MAP.INPUT) {
const encoded = new TextEncoder().encode(("user pressed: " + out.payload + "\n") as string);
io.writeStdout(encoded);
if (out.payload === "ctrl+c") {
if (out.payload === "x") {
const result: ResultSuccess = {
type: "success",
exitCode: 0,