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

Function getCachedRuntimeForSessionPath

desktop/runtime/runtime-registry.ts:316–328  ·  view source on GitHub ↗
(sessionPath: string)

Source from the content-addressed store, hash-verified

314}
315
316export function getCachedRuntimeForSessionPath(sessionPath: string) {
317 const persistedSessionPath = getPersistedSessionPath(sessionPath)
318 if (!persistedSessionPath) {
319 return null
320 }
321
322 const record = getRuntimeRecord(persistedSessionPath)
323 if (!record) {
324 return null
325 }
326
327 return record.runtimePromise
328}
329
330export async function getOrCreateRuntimeForSessionPath(
331 sessionPath: string,

Callers 6

getComposerSlashCommandsFunction · 0.90
emitComposerUpdateFunction · 0.90
getComposerStateFunction · 0.90
sendComposerPromptFunction · 0.90
stopComposerRunFunction · 0.90
reloadIfSafeFunction · 0.70

Calls 2

getPersistedSessionPathFunction · 0.90
getRuntimeRecordFunction · 0.90

Tested by

no test coverage detected