feat(blueprints): running modules by themselves#1342
Conversation
Greptile SummaryAdded a
Confidence Score: 5/5
Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[User runs: dimos run arg1 arg2 ...] --> B[For each argument]
B --> C{get_by_name}
C -->|Found in all_blueprints| D[get_blueprint_by_name]
C -->|Found in all_modules| E[get_module_by_name]
C -->|Not found| F[_fail_unknown with suggestions]
D --> G[Return Blueprint]
E --> H[Return Blueprint from module]
F --> I[Exit with error]
G --> J[autoconnect all blueprints]
H --> J
J --> K[blueprint.build]
K --> L[dimos.loop]
Last reviewed commit: 82770bd |
|
should we name it idk in general if we should just have dimos run support module names as well, or a list of blueprints AND modules, always good to collapse the abstraction layers |
I named it But yeah, actually unifying the blueprints and modules sounds better. I'll do that. |
fbbe279 to
82770bd
Compare
82770bd to
5c2915c
Compare
29e0f9a to
1fadbf0
Compare
9614d97 to
3f3995a
Compare
Problem
Can't run modules by themselves.
Closes DIM-570
Solution
Make
dimos runaccept multiple arguments which can be either blueprints or modules.Breaking Changes
--extra-module.How to Test
Start the echo:
uv run dimos topic echo /cmd_velStart the keyboard_teleop module:
Press WASD in the keyboard_teleop window and see how /cmd_vel updates.
Or run it as part of a different blueprint:
Contributor License Agreement