MCPcopy Create free account
hub / github.com/apache/maka / togglesInert

Function togglesInert

packages/cli/src/pi-transcript.ts:419–421  ·  view source on GitHub ↗

* True while entry positions are unknown but the viewport has scrolled (a * wholesale replacement not yet re-rendered): a toggle could rewrite lines * above pi-tui's real viewport, so it must do nothing until the next render. * * Unknown positions with viewportTop === 0 are deliberately NOT iner

(state: MakaPiTranscriptState)

Source from the content-addressed store, hash-verified

417 * is physically safe.
418 */
419function togglesInert(state: MakaPiTranscriptState): boolean {
420 return state.renderGeometry.entryFirstLine === undefined && state.renderGeometry.viewportTop > 0;
421}
422
423/**
424 * Toggle every tool card in the live viewport at once and flip the default for

Callers 2

toggleAllToolExpansionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected