Commit Graph
84 Commits
Author SHA1 Message Date
ChaosMaker 031f8f7726 Merge branch 'master' of ssh://git.gornodox.dev:2222/ChaosMaker/termos
Merge new filesystem to master
0.1.0
2026-11-17 20:49:09 +01:00
ChaosMaker ed8c27677c - package.json tweaks
- `README.md` edits
2026-11-17 20:40:58 +01:00
ChaosMaker f4a74f67cf - Prepare for build and release 2026-11-17 20:03:19 +01:00
ChaosMaker 2f25e44681 - Fixed output formatting error in ls.ts
- Added an exported `Termos` object entry point
- Defined a basic config for the entry point
- Wrote a self contained initialization function for parsin the config into a returned `Shell` instance
- Adjusted `dev.ts` to use the said entry point
2026-11-16 12:16:49 +01:00
ChaosMaker d4ec6b0c49 - Added a safety check in serializer.ts to look for fields containing undefined
- Updated the fs json to contain the new result from the fixed serializer that parses the link counts
- Updated ls to use proper link counts and sizes in the long format (apart from dir sizes which remain at arbitrary 4096)
2026-11-14 10:49:51 +01:00
ChaosMaker de1ce64226 - Fixed cat command
- Moved device config initialization to `serializer.ts`
- Minor bugfixes
- Added `read()` to `filesystem.ts`
2026-11-13 04:15:28 +01:00
ChaosMaker d5566aa494 - Fixed a buged while condition inside path_resolver.ts
- Fixed `NodePointer` class to work with by reference comparison (maps use that) so the reverse index can look up entries properly`. `NodePointer` now caches every pointer created so logic can use reference comparison
2026-11-11 05:21:03 +01:00
ChaosMaker cb9cd7a67a new tree json pasted 2026-11-10 17:15:18 +01:00
ChaosMaker b161e42b3f - Fixed ls (mostly)
- Fixed sorting
- Many minor changes

(need to fix the json serializer to include size in its results *the C++ one*)
2026-11-10 16:19:10 +01:00
ChaosMaker 492f1ba372 - Fixed sort.ts
- Fixed `cd`
2026-11-10 13:13:38 +01:00
ChaosMaker 00200b4c75 - Fixed all of path_resolver.ts functions
- `resolveInode` functions now `resolvePointer`
- Fixed all resolve pointer -> path functions
2026-11-10 12:02:21 +01:00
ChaosMaker 584e594726 - Downward tree traversal fixed (untested - might have bugs)
- Moved filesystem mockups to a separate file
- Tree visualizer now has support for symlinks and mountpoints
2026-11-10 09:08:15 +01:00
ChaosMaker 4fa284de13 - Fixed resolvePath
- Added symlink resolution
- Added mount resolution
- Fixed filesystem not awaiting for disks to be mounted
(now `FileSystem.init()` needs to be called with `await`)
- Removed old test fixture files
- Added a feature-full `resolvePath`test suite

*all tests passing green*
2026-11-10 08:04:57 +01:00
ChaosMaker dd804f6f14 Virtual FileSystem fixed - (Needs unit testing)! 2026-11-09 05:10:44 +01:00
ChaosMaker 832fc6c759 - filesystem move node method fixed
- upTraversalTree fixed

- who tf knows what else
2026-10-30 06:13:34 +01:00
ChaosMaker 2a6e6c57c3 - filesystem fixes
- tree traversal up fixes
2026-09-21 04:44:10 +02:00
ChaosMaker f2b5f86a6c Try initializing FileSystem now
- vdisk finished
- vdiskmanager finished
- devices can properly initialize and hold aswell as retireve data
- added mock synchronous store classes for testing
2026-09-20 12:40:38 +02:00
ChaosMaker 933b1fc5e8 - vdisk done?
- vdiskman done?
2026-09-19 06:27:12 +02:00
ChaosMaker 849e0e61f5 a lot of mess, keep working on VDisk for now. 2026-09-17 10:32:31 +02:00
ChaosMaker d642ee6258 Update README.md 2026-09-12 02:02:30 +02:00
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 e2ade5de29 Bugfixes
- chunking fixed
- bug with recursive ls looping fixed
- bug with empty directories on ls -a failing fixed
2026-09-06 02:48:11 +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 776a93e21b Revert "more things broken for now"
This reverts commit 6cc9727091.
2026-09-03 23:22:17 +02:00
ChaosMaker 6cc9727091 more things broken for now
- shell now uses the path env variable
- commands run based on permission of the bin file
2026-09-03 12:27:32 +02:00
ChaosMaker 2715e5e28e Shell update
- changed shell init code to synchronous with guaranteed returns
- Shell.Instance now a normal method not a getter
2026-09-03 11:45:19 +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 d0f8376244 - moved uint8array concat and split functions to their own files
- fixed an error in the cd command as a result of a previous improvement
2026-08-30 08:38:05 +02:00
ChaosMaker f1b69bb282 Update README.md 2026-08-29 21:35:23 +02:00
ChaosMaker 1b3314ab87 readme edit 2026-08-29 21:20:11 +02:00
ChaosMaker 96e15a87f2 - readme update
- rid of AI generated task list (ts is so ass)
- added an npm script for running the project
2026-08-29 21:14:46 +02:00
ChaosMaker 55b5d3a873 - cleaned up old console logs that trashed the terminal
- adjusted the eslint config to include the `__` pattern for function arguments aswell
2026-08-28 17:03:12 +02:00
ChaosMaker 1ee2a2fe7a - Old tests fixed
- Added a static Fixuture class for test mockups
2026-08-28 16:52:59 +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 48aac3c883 testing headless-mode user input 2026-08-23 10:19:54 +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 e313aa5b9d . 2026-08-20 09:44:19 +02:00
ChaosMaker 16a1805f25 fixed naming convention and text casing to use CamelCase on class fields. Process manager implemented, not tested, needs integration with current shell implementation 2026-08-20 09:44:03 +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 dfa393b4d9 some dog-tier work i dont remember (too sleepy) 2026-08-19 03:15:51 +02:00
ChaosMaker c39bbae091 initial async processes implementation - not finished 2026-08-16 15:30:04 +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 3ec3de71f4 shell work, json deserializer working, not fully tested but should produce a correct base map 2026-08-12 11:01:07 +02:00
ChaosMaker 0149937526 cd fixed and cleaned up. Shell started, needs data fetching code to initialize properly, added the approperiate db_manager file to implement that. 2026-08-08 08:11:19 +02:00