Commit Graph
24 Commits
Author SHA1 Message Date
ChaosMaker 9c5bd71a5c - moved index code to dev.ts
- some work i dont know about or dont remember ¯\_(ツ)_/¯
2026-09-11 22:50:08 +02:00
ChaosMaker ec13299e95 some bs work, not finished (reference notes board on email for info) 2026-09-09 10:43:37 +02:00
ChaosMaker b75e691a0b Bugfixes and improvements
- ls fixed
- fixed a bug where ~ wouldnt resolve properly
- temporarily increased the process chunking treshold, because chunking breaks formatting
- added clear
- added pwd
2026-09-06 00:26:09 +02:00
ChaosMaker 8a349330b0 - initial changes to data shapes
- ls command needs fixing
2026-09-03 11:15:05 +02:00
ChaosMaker 2e9227f6d8 - cat added
- touch beginnings
- path resolver now returns a -1 on error
- added a command template file for easier copy-pasting
2026-09-01 05:47:23 +02:00
ChaosMaker 8e054a220d - implemented the rest of long-format compatible ls flags
- split path_resolver functions to 3 separate functions that prioritize different points of relativity
- added a `convertToUnit`function to convert from bytes to higher units of messurement
- revert change: excluded inode 0 from tree traversal results
2026-08-30 17:35:20 +02:00
ChaosMaker 4776232377 - refactored resolvePath to have parity with resolveInode and take in ShellState instead of FileSystem and cwd
- reverted change "removed inode 0 from tree traversal results"
2026-08-30 09:58:23 +02:00
ChaosMaker 310218663d - fixed a bug in *sort.ts* where passed number arrays wouldnt get properly parsed into TreeNode arrays
- excluded inode 0 from tree traversal results
2026-08-25 06:54:42 +02:00
ChaosMaker 20718604e4 - fixed a bug in dnTaverseTree where children would get pushed into the result in reverse order
- added an inode display to the `printTree` algorithm

- removed a redundant type in *`signal.ts`*
- improved `resolveInode` to now take `ShellState` instead of `FileSystem` and added an optional `abs` *`boolean`* argument to determine if the retuned path should be normalized or absolute

- implemented a builtin `TreeNode` quicksort function
- changed the `TreeNodeType` to a numeric enum
- added a standalone `Posix` class that holds a const with character weights compliant with posix
2026-08-25 06:34:23 +02:00
ChaosMaker dad18cd4cc 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
2026-08-24 10:30:04 +02:00
ChaosMaker 268729bb62 WRITE UNIT TESTS!!!
first async command working, no unit tests done AGAING
2026-08-23 06:39:37 +02:00
ChaosMaker 075c999435 Process class implemented, not tested, all green for now, need to reevaluate the test-suite and write tests for new code and changed one 2026-08-19 09:51:33 +02:00
ChaosMaker a7798436d2 some useless bs work on the indexed db and json fetching functions, shell done, can successfully call commands via the main Shell singleton 2026-08-12 16:02:49 +02:00
ChaosMaker 7348d3723e small tweaks to the file structure, and reorganization of the codebase.
preparations for session manager function implementations
2026-07-28 17:54:02 +02:00
ChaosMaker 994b93ae47 ShellState, SessionState implemented, all tested, and passing 2026-07-25 03:37:13 +02:00
ChaosMaker b63bae54aa Parser fully finished and functional, posix compliant and tested - all green 2026-07-24 15:11:44 +02:00
ChaosMaker 4cd70eda33 ... 2026-07-23 18:19:29 +02:00
ChaosMaker a67d060fc6 more work on the parser, still misbehaving, needs more testing and refactoring later 2026-07-23 16:29:59 +02:00
ChaosMaker 46f9e05d63 upTreeTraversal finished, fixed a bug in fixture parser where every node had parent set to 0
unfinished test that checks agains that error
2026-07-20 18:15:50 +02:00
ChaosMaker e89cec47d9 upTraverseTree algo implementation start, doesnt work currently. basic test of the function written 2026-07-20 15:21:50 +02:00
ChaosMaker 04b66fa62a Phase 1 Recursive DFS pre-order algorithm, tree print helper for visualizing tree structures, filesystem test fixture builder helper function.
deleteNode fully implemented,

test suite implemented
2026-07-19 09:30:08 +02:00
ChaosMaker b6365d6221 some small work on the filesystem class 2026-07-16 13:19:27 +02:00
ChaosMaker ea82327ee8 createNode method implemented, canRead,
canWrite,
canExecute methods implemented

common FileSystem error types implemented,

unit tests written and passing for filesystem initialization, createNode cases and permission methods
2026-07-15 16:28:41 +02:00
ChaosMaker 3d96ad3c6d Phase 0 - basic shell data shapes, simple test suite, workspace configuration 2026-07-07 04:47:13 +02:00