MCPcopy Create free account
hub / github.com/arktypeio/arktype / update

Method update

ark/attest/cli/trace.ts:212–221  ·  view source on GitHub ↗
(processedCount: number)

Source from the content-addressed store, hash-verified

210 }
211
212 update(processedCount: number): void {
213 if (this.totalItems === 0 || this.stopped) return
214
215 this.processedItems = Math.min(processedCount, this.totalItems)
216 if (this.processedItems >= this.totalItems) {
217 this.stop() // Automatically stop if all items are processed
218 return
219 }
220 if (canRewriteStdoutLine()) this.render() // Re-render on each item processed for immediate feedback
221 }
222
223 private render(final = false): void {
224 if (this.totalItems === 0 && this.processedItems === 0 && !this.startTime)

Callers 14

cli.test.tsFile · 0.45
grammarSourceHashFunction · 0.45
hashFunction · 0.45
sha1Function · 0.45
testHistory.tsFile · 0.45
validate.tsFile · 0.45
hashOfFunction · 0.45
settingsStampOfFunction · 0.45
hashOfFunction · 0.45
versionedByContentFunction · 0.45
twoslashFingerprintFunction · 0.45

Calls 3

stopMethod · 0.95
renderMethod · 0.95
canRewriteStdoutLineFunction · 0.85

Tested by 1

versionedByContentFunction · 0.36