Modernize monster node to three-layer architecture #29

Open
opened 2026-03-12 08:36:59 +00:00 by vps1_gitea_admin · 0 comments

Monster node uses old-style structure (dependencies/monster/ instead of src/). Should be refactored to match all other nodes.

Tasks:

  • Move dependencies/monster/monster_class.jssrc/specificClass.js
  • Create src/nodeClass.js adapter (extract from monster.js)
  • Slim down monster.js to standard wrapper pattern
  • Move monsterConfig.jsongeneralFunctions/src/configs/monster.json
  • Remove modelLoader.js (TF dependency removed)
  • Add unit tests

Note: monster_class.js is ~500 lines of domain logic. Keep sampling_program(), aggregation, AQUON integration intact.

Monster node uses old-style structure (`dependencies/monster/` instead of `src/`). Should be refactored to match all other nodes. ### Tasks: - Move `dependencies/monster/monster_class.js` → `src/specificClass.js` - Create `src/nodeClass.js` adapter (extract from `monster.js`) - Slim down `monster.js` to standard wrapper pattern - Move `monsterConfig.json` → `generalFunctions/src/configs/monster.json` - Remove `modelLoader.js` (TF dependency removed) - Add unit tests **Note:** monster_class.js is ~500 lines of domain logic. Keep sampling_program(), aggregation, AQUON integration intact.
Sign in to join this conversation.