MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / getInstance

Function getInstance

source code/ink/root.ts:174–186  ·  view source on GitHub ↗
(
  stdout: NodeJS.WriteStream,
  createInstance: () => Ink,
)

Source from the content-addressed store, hash-verified

172}
173
174const getInstance = (
175 stdout: NodeJS.WriteStream,
176 createInstance: () => Ink,
177): Ink => {
178 let instance = instances.get(stdout)
179
180 if (!instance) {
181 instance = createInstance()
182 instances.set(stdout, instance)
183 }
184
185 return instance
186}

Callers 1

renderSyncFunction · 0.85

Calls 3

createInstanceFunction · 0.85
setMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected