MCPcopy Create free account
hub / github.com/IgorWarzocha/howcode / getLiveToolProgress

Function getLiveToolProgress

desktop/runtime/thread-publisher.ts:42–50  ·  view source on GitHub ↗
(runtime: PiRuntime)

Source from the content-addressed store, hash-verified

40const liveToolProgressByRuntime = new WeakMap<PiRuntime, Map<string, RuntimeToolProgress>>()
41
42function getLiveToolProgress(runtime: PiRuntime) {
43 let progress = liveToolProgressByRuntime.get(runtime)
44 if (!progress) {
45 progress = new Map()
46 liveToolProgressByRuntime.set(runtime, progress)
47 }
48
49 return progress
50}
51
52function getLiveToolProgressMessages(runtime: PiRuntime) {
53 const progress = liveToolProgressByRuntime.get(runtime)

Callers 1

Calls 1

getMethod · 0.80

Tested by

no test coverage detected