MCPcopy Create free account
hub / github.com/Noumena-Network/code / runTransition

Function runTransition

src/ink/logUpdateFlickerRegression.test.ts:208–223  ·  view source on GitHub ↗
(
  prev: Frame,
  next: Frame,
  skipSyncMarkers = true,
)

Source from the content-addressed store, hash-verified

206}
207
208function runTransition(
209 prev: Frame,
210 next: Frame,
211 skipSyncMarkers = true,
212): {
213 diff: Diff
214 written: string
215 clearPatch: Extract<Diff[number], { type: 'clearTerminal' }> | undefined
216} {
217 const { diff } = new LogUpdate({ isTTY: true, stylePool }).render(prev, next)
218 return {
219 diff,
220 written: serializeDiff(diff, skipSyncMarkers),
221 clearPatch: findClearTerminalPatch(diff),
222 }
223}
224
225function runTransitionWithLog(
226 log: LogUpdate,

Calls 3

findClearTerminalPatchFunction · 0.85
serializeDiffFunction · 0.70
renderMethod · 0.45

Tested by

no test coverage detected