MCPcopy Index your code
hub / github.com/codeaashu/claude-code / getInstance

Function getInstance

src/ink/root.ts:172–184  ·  view source on GitHub ↗
(
  stdout: NodeJS.WriteStream,
  createInstance: () => Ink,
)

Source from the content-addressed store, hash-verified

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

Callers 1

renderSyncFunction · 0.85

Calls 3

createInstanceFunction · 0.85
getMethod · 0.65
setMethod · 0.45

Tested by

no test coverage detected