(memorySection string)
| 695 | budget, |
| 696 | ), nil |
| 697 | } |
| 698 | |
| 699 | func BuildBudgetProjectInstructionsSection(cwd, role string) (PromptSection, error) { |
| 700 | cfg := config.NewConfigForCWD(cwd) |
| 701 | return BuildBudgetProjectInstructionsSectionWithConfig(cwd, role, cfg) |
| 702 | } |
| 703 | |
| 704 | func BuildBudgetProjectInstructionsSectionWithConfig(cwd, role string, cfg config.Config) (PromptSection, error) { |
| 705 | projectInstructions, err := LoadProjectInstructionsWithConfig(cwd, cfg) |
| 706 | if err != nil { |
| 707 | return PromptSection{}, err |
| 708 | } |
| 709 | if strings.TrimSpace(projectInstructions) == "" || role == "subagent" { |
no outgoing calls
no test coverage detected