MCPcopy
hub / github.com/claude-code-best/claude-code / push

Function push

src/workflow/panel/selectors.ts:58–69  ·  view source on GitHub ↗
(title: string)

Source from the content-addressed store, hash-verified

56 const seen = new Set<string>()
57 const out: MergedPhase[] = []
58 const push = (title: string): void => {
59 if (seen.has(title)) return
60 seen.add(title)
61 const actual = actualByTitle.get(title)
62 const inPhase = run.agents.filter(a => a.phase === title)
63 out.push({
64 title,
65 status: derivePhaseStatus(actual, inPhase),
66 done: inPhase.filter(a => a.status === 'done').length,
67 total: inPhase.length,
68 })
69 }
70 for (const t of run.declaredPhases) push(t)
71 for (const p of run.phases) push(p.title)
72 // Scripts that pass opts.phase directly to agent() (the ultracode pipeline pattern)

Callers 1

mergePhasesFunction · 0.70

Calls 5

derivePhaseStatusFunction · 0.85
getMethod · 0.65
hasMethod · 0.45
addMethod · 0.45
pushMethod · 0.45

Tested by

no test coverage detected