MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / runFor

Function runFor

src/ui-server/api/program.ts:338–343  ·  view source on GitHub ↗

The run a site belongs to — registered to run later, started together — or null for plain sequence.

(site: ProgramSite)

Source from the content-addressed store, hash-verified

336
337/** The run a site belongs to — registered to run later, started together — or null for plain sequence. */
338function runFor(site: ProgramSite): { block: 'later' | 'together'; by?: string } | null {
339 const fires = site.trigger;
340 if (fires && fires.kind === 'callback' && LATER_OF.test(fires.name)) return { block: 'later', by: fires.name };
341 if (site.within && TOGETHER.test(site.within)) return { block: 'together', by: site.within };
342 return null;
343}
344
345/** An arm of a fork by its condition, reusing the one already open for it. */
346function armFor(fork: Extract<WireItem, { kind: 'fork' }>, g: BranchGuard): WireArm {

Callers 1

placeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected