Commit 02c3f5a
committed
fix: resolve global mode export not including rules files (#5834)
- Modified exportModeWithRules to check correct directory based on mode source
- For global modes, now uses getGlobalRooDirectory() to access ~/.roo
- For project modes, continues to use workspace directory
- Adjusted rules directory path construction for global vs project modes
- Updated relative path calculation to handle different directory structures
This ensures global mode rules files from ~/.roo/rules-{slug}/ are correctly
included when exporting global modes.1 parent d2b51c1 commit 02c3f5a
1 file changed
+22
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
687 | 687 | | |
688 | 688 | | |
689 | 689 | | |
690 | | - | |
691 | | - | |
692 | | - | |
693 | | - | |
| 690 | + | |
| 691 | + | |
| 692 | + | |
| 693 | + | |
| 694 | + | |
| 695 | + | |
| 696 | + | |
| 697 | + | |
| 698 | + | |
| 699 | + | |
| 700 | + | |
| 701 | + | |
694 | 702 | | |
695 | 703 | | |
696 | | - | |
697 | | - | |
| 704 | + | |
| 705 | + | |
| 706 | + | |
| 707 | + | |
| 708 | + | |
698 | 709 | | |
699 | 710 | | |
700 | 711 | | |
| |||
709 | 720 | | |
710 | 721 | | |
711 | 722 | | |
712 | | - | |
713 | | - | |
| 723 | + | |
| 724 | + | |
| 725 | + | |
| 726 | + | |
| 727 | + | |
714 | 728 | | |
715 | 729 | | |
716 | 730 | | |
| |||
0 commit comments