Skip to content

Latest commit

 

History

History
71 lines (56 loc) · 3.27 KB

File metadata and controls

71 lines (56 loc) · 3.27 KB

Refactoring Status

This file documents the TypeScript refactoring effort to enforce RPN naming conventions and fix codebase consistency.

Completed Refactoring Tasks

The following files and modules were refactored to adhere to TYPESCRIPT-STYLE-GUIDE.md and fix API integration issues:

File System Commands (chili/src/commands/fs/)

  1. ls.ts (files_ls -> files_list, relative path fix)
  2. mkdir.ts (files_doMkdir -> files_mkdir)
  3. touch.ts (files_doTouch -> files_touch)
  4. create.ts (files_doCreate -> files_create)

File Resource Commands (chili/src/commands/files/)

  1. list.ts (files_doList -> files_fetchList)
  2. delete.ts (files_doDelete -> files_deleteById, files_search -> files_searchByTerm)
  3. fields.ts (fileFields_get -> fileFields_fetch)

Single File Commands (chili/src/commands/file/)

  1. view.ts (files_doView -> files_viewContent)

Plugin Commands (chili/src/commands/plugins/)

  1. list.ts (plugins_doList -> plugins_fetchList)
  2. delete.ts (plugins_doDelete -> plugin_deleteById, plugins_search -> plugins_searchByTerm)
  3. fields.ts (plugins_fieldsGet -> pluginFields_fetch)
  4. add.ts (plugins_add -> plugin_add)
  5. overview.ts (plugins_doOverview -> pluginsOverview_display)

Single Plugin Commands (chili/src/commands/plugin/)

  1. readme.ts (plugin_doReadme -> pluginReadme_fetch)
  2. run.ts (plugin_doRun -> plugin_execute)
  3. search.ts (plugin_search -> pluginIds_resolve)

Feed Commands (chili/src/commands/feeds/)

  1. list.ts (feeds_doList -> feeds_fetchList)
  2. delete.ts (feeds_doDelete -> feed_deleteById, feeds_search -> feeds_searchByTerm)
  3. fields.ts (feeds_fieldsGet -> feedFields_fetch)
  4. share.ts (feeds_doShare -> feed_shareById)

Single Feed Commands (chili/src/commands/feed/)

  1. create.ts (feed_doCreate -> feed_create)

Connection Commands (chili/src/commands/connect/)

  1. login.ts (login_do -> connect_login)
  2. logout.ts (logout_do -> connect_logout)

Manual Pages (chili/src/commands/man/)

  1. doc.ts (manpage_handle -> manPage_display)
  2. topics.ts (Verified RPN)

Handlers & Utils

  • chili/src/filesystem/fileGroupHandler.ts (Updated imports/methods)
  • chili/src/plugins/pluginHandler.ts (Updated imports/methods)
  • chili/src/feeds/feedHandler.ts (Updated imports/methods)
  • chili/src/utils/cli.ts (path_resolve_chrisfs -> path_resolveChrisFs)
  • chili/src/utils/docker.ts (Renamed methods)

Chell (New Module)

  • chell/src/index.ts (Refactored to RPN, Added JSDoc/Types)
  • chell/src/core/repl.ts (Created, RPN/JSDoc/Types)
  • chell/src/session/index.ts (Created, RPN/JSDoc/Types)
  • chell/src/builtins/index.ts (Created, RPN/JSDoc/Types)
  • chell/src/lib/vfs/vfs.ts (Created, RPN/JSDoc/Types)
  • chell/src/config/settings.ts (Created, RPN/JSDoc/Types)

Other Fixes

  • Makefile: Fixed bootstrapping for scrub.
  • cumin: Fixed errorStack missing export and syntax.
  • salsa: Fixed aliasing style violations (salsa_ -> salsaModule_).
  • chell: Implemented MVP with direct connection, relative path support, and fallback to chili.