Commit 3e29f56
committed
feat: add task_header_patterns config option with preset/regex support
adds task_header_patterns config option (comma-separated list of preset
names or raw Go regexes) that controls which headers the plan parser
recognizes as task sections. supports built-in presets (default,
openspec) and arbitrary raw regexes for custom plan formats.
- preset registry in pkg/plan/presets.go with DefaultHeaderPatterns(),
ResolveHeaderPattern(), ResolveHeaderPatterns(), PresetDescription()
- ParsePlan/ParsePlanFile accept []*regexp.Regexp; nil/empty falls back
to DefaultHeaderPatterns()
- {{TASK_HEADER_PATTERNS}} template variable expands to human-readable
descriptions of configured patterns in task.txt
- raw regexes validated at config load time via regexp.Compile so users
get a clear error instead of a silent fallback to defaults
- web dashboard plan panel updated to pass patterns from config
- docs and embedded config template updated1 parent fb35726 commit 3e29f56
31 files changed
Lines changed: 2296 additions & 198 deletions
File tree
- cmd/ralphex
- docs/plans/completed
- pkg
- config
- defaults
- prompts
- plan
- processor
- progress
- web
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
141 | 141 | | |
142 | 142 | | |
143 | 143 | | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
144 | 148 | | |
145 | 149 | | |
146 | 150 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
291 | 291 | | |
292 | 292 | | |
293 | 293 | | |
| 294 | + | |
294 | 295 | | |
295 | 296 | | |
296 | 297 | | |
| |||
372 | 373 | | |
373 | 374 | | |
374 | 375 | | |
| 376 | + | |
375 | 377 | | |
376 | 378 | | |
377 | 379 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
172 | 172 | | |
173 | 173 | | |
174 | 174 | | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
175 | 190 | | |
176 | 191 | | |
177 | 192 | | |
| |||
681 | 696 | | |
682 | 697 | | |
683 | 698 | | |
| 699 | + | |
684 | 700 | | |
685 | 701 | | |
686 | 702 | | |
| |||
831 | 847 | | |
832 | 848 | | |
833 | 849 | | |
| 850 | + | |
834 | 851 | | |
835 | 852 | | |
836 | 853 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
399 | 399 | | |
400 | 400 | | |
401 | 401 | | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
402 | 406 | | |
403 | | - | |
404 | | - | |
405 | | - | |
406 | | - | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
407 | 412 | | |
408 | 413 | | |
409 | 414 | | |
| |||
514 | 519 | | |
515 | 520 | | |
516 | 521 | | |
517 | | - | |
518 | | - | |
519 | | - | |
520 | | - | |
521 | | - | |
522 | | - | |
523 | | - | |
524 | | - | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
525 | 531 | | |
526 | 532 | | |
527 | 533 | | |
| |||
646 | 652 | | |
647 | 653 | | |
648 | 654 | | |
649 | | - | |
650 | | - | |
651 | | - | |
652 | | - | |
| 655 | + | |
| 656 | + | |
| 657 | + | |
| 658 | + | |
| 659 | + | |
653 | 660 | | |
654 | 661 | | |
655 | 662 | | |
| |||
767 | 774 | | |
768 | 775 | | |
769 | 776 | | |
770 | | - | |
771 | | - | |
772 | | - | |
| 777 | + | |
| 778 | + | |
| 779 | + | |
| 780 | + | |
773 | 781 | | |
774 | 782 | | |
775 | 783 | | |
| |||
934 | 942 | | |
935 | 943 | | |
936 | 944 | | |
937 | | - | |
938 | | - | |
939 | | - | |
940 | | - | |
| 945 | + | |
| 946 | + | |
| 947 | + | |
| 948 | + | |
| 949 | + | |
941 | 950 | | |
942 | 951 | | |
943 | 952 | | |
| |||
0 commit comments