MCPcopy
hub / github.com/garrytan/gstack / shouldRunDream

Function shouldRunDream

bin/gstack-gbrain-sync.ts:1180–1186  ·  view source on GitHub ↗
(args: CliArgs, cycle: CycleStatus | null)

Source from the content-addressed store, hash-verified

1178 * `cycle` is only consulted on the --full auto path; pass null when forcing.
1179 */
1180export 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

Callers 2

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected