Commit ba4ec8b
authored
fix: normalize string entries in loadComponents to prevent padEnd crash (#273)
`agentsys list` commands crash with "Cannot read properties of undefined
(reading 'padEnd')" because components.json stores entries as plain
strings while the display code expects objects with a .name property.
Normalize string entries to {name} objects when loading from JSON.1 parent c39600f commit ba4ec8b
1 file changed
+6
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
786 | 786 | | |
787 | 787 | | |
788 | 788 | | |
| 789 | + | |
| 790 | + | |
| 791 | + | |
789 | 792 | | |
790 | | - | |
791 | | - | |
792 | | - | |
| 793 | + | |
| 794 | + | |
| 795 | + | |
793 | 796 | | |
794 | 797 | | |
795 | 798 | | |
| |||
0 commit comments