Commit Graph

  • 41739d7cf9 - Reworked internal signals - Separated input passing from signal calling - Exposed command registry to the broader codebase - Moved command execution call to internal shell logic - TTY is now expected to watch for stdout escape sequences to perform tasks master ChaosMaker 2026-11-23 13:31:22 +01:00
  • dbffe5375e - Fixed default inode sorting order from being highest to lowes to lowest to highest (bug) ChaosMaker 2026-11-22 12:55:41 +01:00
  • 57773fc2ef - Fixed a bug where the current session stored in the shell instance wasnt getting updated after each state change ChaosMaker 2026-11-20 15:14:47 +01:00
  • 9a31a5985b - Updated package.json to contain the new version tag ChaosMaker 2026-11-20 12:28:04 +01:00
  • d825299e26 - Cleaned up old tests - Changed node:buffer and node:streams imports to native WebWorkers imports; - Fixed tests that used old toPtr and fromPtr functions to use the new NodePointer class methods - Exposed pointer resolution helper functions to the consumer 0.1.1 ChaosMaker 2026-11-20 12:22:23 +01:00
  • 2cf84ccd2f Exported Shell as a type in the index ChaosMaker 2026-11-20 11:00:14 +01:00
  • 204d713f91 - Fixed a bug in serializer that didnt account for parsed inodes to the inode index on the vdisk - Fixed the touch command (for now only creates files) - Fixed a minor bug in ls where it wouldnt return the correct result when a path provided in the args wouldnt resolve ChaosMaker 2026-11-20 10:35:44 +01:00
  • 8f93f3e43f - Fixed a bug in serializer that didnt account for parsed inodes to the inode index on the vdisk - Fixed the touch command (for now only creates files) - Fixed a minor bug in ls where it wouldnt return the correct result when a path provided in the args wouldnt resolve fs-V2 ChaosMaker 2026-11-20 10:31:00 +01:00
  • af6a9c8bda Update README.md ChaosMaker 2026-11-17 22:59:04 +01:00
  • 7310ae9671 Update README.md ChaosMaker 2026-11-17 22:56:31 +01:00
  • 031f8f7726 Merge branch 'master' of ssh://git.gornodox.dev:2222/ChaosMaker/termos Merge new filesystem to master 0.1.0 ChaosMaker 2026-11-17 20:49:09 +01:00
  • ed8c27677c - package.json tweaks - README.md edits ChaosMaker 2026-11-17 20:40:58 +01:00
  • f4a74f67cf - Prepare for build and release ChaosMaker 2026-11-17 20:03:19 +01:00
  • 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 ChaosMaker 2026-11-16 12:16:49 +01:00
  • 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) ChaosMaker 2026-11-14 10:49:51 +01:00
  • de1ce64226 - Fixed cat command - Moved device config initialization to serializer.ts - Minor bugfixes - Added read() to filesystem.ts ChaosMaker 2026-11-13 04:15:28 +01:00
  • 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 ChaosMaker 2026-11-11 05:21:03 +01:00
  • cb9cd7a67a new tree json pasted ChaosMaker 2026-11-10 17:15:18 +01:00
  • b161e42b3f - Fixed ls (mostly) - Fixed sorting - Many minor changes ChaosMaker 2026-11-10 16:19:10 +01:00
  • 492f1ba372 - Fixed sort.ts - Fixed cd ChaosMaker 2026-11-10 13:13:38 +01:00
  • 00200b4c75 - Fixed all of path_resolver.ts functions - resolveInode functions now resolvePointer - Fixed all resolve pointer -> path functions ChaosMaker 2026-11-10 12:02:21 +01:00
  • 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 ChaosMaker 2026-11-10 09:08:15 +01:00
  • 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 resolvePathtest suite ChaosMaker 2026-11-10 08:04:57 +01:00
  • dd804f6f14 Virtual FileSystem fixed - (Needs unit testing)! ChaosMaker 2026-11-09 05:10:44 +01:00
  • 832fc6c759 - filesystem move node method fixed - upTraversalTree fixed ChaosMaker 2026-10-30 06:13:34 +01:00
  • 2a6e6c57c3 - filesystem fixes - tree traversal up fixes ChaosMaker 2026-09-21 04:44:10 +02:00
  • 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 ChaosMaker 2026-09-20 12:40:38 +02:00
  • 933b1fc5e8 - vdisk done? - vdiskman done? ChaosMaker 2026-09-19 06:27:12 +02:00
  • 849e0e61f5 a lot of mess, keep working on VDisk for now. ChaosMaker 2026-09-17 10:32:31 +02:00
  • d642ee6258 Update README.md ChaosMaker 2026-09-12 02:02:30 +02:00
  • 9c5bd71a5c - moved index code to dev.ts - some work i dont know about or dont remember ¯\_(ツ)_/¯ ChaosMaker 2026-09-11 22:50:08 +02:00
  • ec13299e95 some bs work, not finished (reference notes board on email for info) ChaosMaker 2026-09-09 10:43:37 +02:00
  • e2ade5de29 Bugfixes - chunking fixed - bug with recursive ls looping fixed - bug with empty directories on ls -a failing fixed serializable-command ChaosMaker 2026-09-06 02:48:11 +02:00
  • 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 ChaosMaker 2026-09-06 00:26:09 +02:00
  • 776a93e21b Revert "more things broken for now" ChaosMaker 2026-09-03 23:22:17 +02:00
  • 6cc9727091 more things broken for now - shell now uses the path env variable - commands run based on permission of the bin file ChaosMaker 2026-09-03 12:27:32 +02:00
  • 2715e5e28e Shell update - changed shell init code to synchronous with guaranteed returns - Shell.Instance now a normal method not a getter ChaosMaker 2026-09-03 11:45:19 +02:00
  • 8a349330b0 - initial changes to data shapes - ls command needs fixing ChaosMaker 2026-09-03 11:15:05 +02:00
  • 2e9227f6d8 - cat added - touch beginnings - path resolver now returns a -1 on error - added a command template file for easier copy-pasting unstable-async ChaosMaker 2026-09-01 05:47:23 +02:00
  • 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 convertToUnitfunction to convert from bytes to higher units of messurement - revert change: excluded inode 0 from tree traversal results ChaosMaker 2026-08-30 17:35:20 +02:00
  • 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" ChaosMaker 2026-08-30 09:58:23 +02:00
  • 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 ChaosMaker 2026-08-30 08:35:23 +02:00
  • f1b69bb282 Update README.md ChaosMaker 2026-08-29 21:35:23 +02:00
  • 1b3314ab87 readme edit ChaosMaker 2026-08-29 21:20:11 +02:00
  • 96e15a87f2 - readme update - rid of AI generated task list (ts is so ass) - added an npm script for running the project ChaosMaker 2026-08-29 21:14:46 +02:00
  • 55b5d3a873 - cleaned up old console logs that trashed the terminal - adjusted the eslint config to include the __ pattern for function arguments aswell ChaosMaker 2026-08-28 17:03:12 +02:00
  • 1ee2a2fe7a - Old tests fixed - Added a static Fixuture class for test mockups ChaosMaker 2026-08-28 16:52:59 +02:00
  • 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 ChaosMaker 2026-08-25 06:54:42 +02:00
  • 20718604e4 - fixed a bug in dnTaverseTree where children would get pushed into the result in reverse order ChaosMaker 2026-08-25 06:34:23 +02:00
  • 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 ChaosMaker 2026-08-24 10:30:04 +02:00
  • 48aac3c883 testing headless-mode user input ChaosMaker 2026-08-23 10:19:54 +02:00
  • 268729bb62 WRITE UNIT TESTS!!! ChaosMaker 2026-08-23 06:39:37 +02:00
  • e313aa5b9d . ChaosMaker 2026-08-20 09:44:19 +02:00
  • 16a1805f25 fixed naming convention and text casing to use CamelCase on class fields. Process manager implemented, not tested, needs integration with current shell implementation ChaosMaker 2026-08-20 09:44:03 +02:00
  • 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 ChaosMaker 2026-08-19 09:51:33 +02:00
  • dfa393b4d9 some dog-tier work i dont remember (too sleepy) ChaosMaker 2026-08-19 03:15:51 +02:00
  • c39bbae091 initial async processes implementation - not finished ChaosMaker 2026-08-16 15:30:04 +02:00
  • a7798436d2 some useless bs work on the indexed db and json fetching functions, shell done, can successfully call commands via the main Shell singleton ChaosMaker 2026-08-12 16:02:49 +02:00
  • 3ec3de71f4 shell work, json deserializer working, not fully tested but should produce a correct base map ChaosMaker 2026-08-12 11:01:07 +02:00
  • 0149937526 cd fixed and cleaned up. Shell started, needs data fetching code to initialize properly, added the approperiate db_manager file to implement that. ChaosMaker 2026-08-08 08:11:19 +02:00
  • 394e0b9e7c logout test written, green ChaosMaker 2026-08-03 22:34:09 +02:00
  • d26d7d35ac moar work, login tested and green ChaosMaker 2026-08-02 09:05:05 +02:00
  • 3e6d607e18 minor fixes, 1 test for session manager ChaosMaker 2026-07-30 18:00:01 +02:00
  • 5d197b4513 session manager login and logout implemented - untested, may contain bugs ChaosMaker 2026-07-29 14:42:07 +02:00
  • 6bbaaf60e6 minor import fixes - all tests pass ChaosMaker 2026-07-28 17:58:13 +02:00
  • 7348d3723e small tweaks to the file structure, and reorganization of the codebase. ChaosMaker 2026-07-28 17:54:02 +02:00
  • 8c0a7e7a6c cd tested - all green ChaosMaker 2026-07-28 16:23:51 +02:00
  • f87aa4eb85 implemented the cd command - not tested properly ChaosMaker 2026-07-28 05:44:17 +02:00
  • 3b50214041 finished up the shell error formats and result objects along with their corresponding helper factories ChaosMaker 2026-07-28 05:43:19 +02:00
  • b9a27cea2a added an inode resolver to convert inodes to absolute path strings ChaosMaker 2026-07-28 05:32:27 +02:00
  • cd08a4bf32 resolvePath function implemented and tested, all green. ChaosMaker 2026-07-26 16:43:39 +02:00
  • 994b93ae47 ShellState, SessionState implemented, all tested, and passing ChaosMaker 2026-07-25 03:37:13 +02:00
  • 0fce10895f implementing the shellState sessionState, historyState implemented with helpers - no tests ChaosMaker 2026-07-24 17:46:09 +02:00
  • b63bae54aa Parser fully finished and functional, posix compliant and tested - all green ChaosMaker 2026-07-24 15:11:44 +02:00
  • 355a8a4707 parser test suite done, all green ChaosMaker 2026-07-24 04:45:19 +02:00
  • 4cd70eda33 ... ChaosMaker 2026-07-23 18:19:29 +02:00
  • a67d060fc6 more work on the parser, still misbehaving, needs more testing and refactoring later ChaosMaker 2026-07-23 16:29:59 +02:00
  • cab18b74cf phase 3 ChaosMaker 2026-07-22 21:31:55 +02:00
  • 0a477855c7 - Added a FileSystemInitializationError. ChaosMaker 2026-07-22 14:28:50 +02:00
  • 2affb3ceb2 fixed bug in moveNode where when renaming, the old record about the renamed node would still be present in the children record of the parent ChaosMaker 2026-07-21 17:06:02 +02:00
  • f2d2186086 added a helper to tests for one-liner error matching in unit tests. fixed bugs in tests after the tree fixture changed ChaosMaker 2026-07-21 15:48:07 +02:00
  • 7cf60208e0 moveNode tests written, 1 fails, need to check for bugs ChaosMaker 2026-07-21 04:26:19 +02:00
  • 46f9e05d63 upTreeTraversal finished, fixed a bug in fixture parser where every node had parent set to 0 ChaosMaker 2026-07-20 18:15:50 +02:00
  • e89cec47d9 upTraverseTree algo implementation start, doesnt work currently. basic test of the function written ChaosMaker 2026-07-20 15:21:50 +02:00
  • c7dc8f6c37 timestamps accounted for in modifyNode tests. All green ChaosMaker 2026-07-20 12:58:46 +02:00
  • 9bf481cc33 modifyNode tests wiritten, all passing ChaosMaker 2026-07-20 00:31:41 +02:00
  • 9f23e5a86a small fixes to filesystem and modifyNode method implemented (untested) ChaosMaker 2026-07-19 12:30:57 +02:00
  • 15bd160254 no trash in this codebase ChaosMaker 2026-07-19 09:30:56 +02:00
  • 04b66fa62a Phase 1 Recursive DFS pre-order algorithm, tree print helper for visualizing tree structures, filesystem test fixture builder helper function. ChaosMaker 2026-07-19 09:30:08 +02:00
  • b6365d6221 some small work on the filesystem class ChaosMaker 2026-07-16 13:19:27 +02:00
  • ea82327ee8 createNode method implemented, canRead, canWrite, canExecute methods implemented ChaosMaker 2026-07-15 16:28:41 +02:00
  • 134d989f6e minor changes, launch.json for IDE with Test and Debug ChaosMaker 2026-07-14 14:17:47 +02:00
  • 3d96ad3c6d Phase 0 - basic shell data shapes, simple test suite, workspace configuration ChaosMaker 2026-07-07 04:47:13 +02:00
  • bae24e53ca Initial commit ChaosMaker 2026-07-06 23:51:50 +02:00