(args: CliArgs, cycle: CycleStatus | null)
| 1178 | * `cycle` is only consulted on the --full auto path; pass null when forcing. |
| 1179 | */ |
| 1180 | export function shouldRunDream(args: CliArgs, cycle: CycleStatus | null): boolean { |
| 1181 | if (args.dream) return true; |
| 1182 | if (args.mode === "full" && !args.noDream && !args.noCode) { |
| 1183 | return cycle === "never"; |
| 1184 | } |
| 1185 | return false; |
| 1186 | } |
| 1187 | |
| 1188 | /** |
| 1189 | * Run `gbrain dream` — the brain-global maintenance cycle whose |
no outgoing calls
no test coverage detected