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

Function getPersistedSessionPath

shared/session-paths.ts:12–18  ·  view source on GitHub ↗
(sessionPath: string | null | undefined)

Source from the content-addressed store, hash-verified

10}
11
12export function getPersistedSessionPath(sessionPath: string | null | undefined) {
13 return typeof sessionPath === 'string' &&
14 sessionPath.length > 0 &&
15 !isLocalSessionPath(sessionPath)
16 ? sessionPath
17 : null
18}
19
20function getLocalDraftParts(sessionPath: string | null | undefined) {
21 if (typeof sessionPath !== 'string' || !isLocalSessionPath(sessionPath)) {

Callers 15

statSessionFileFunction · 0.90
getPiSessionCommandArgsFunction · 0.90
getComposerSlashCommandsFunction · 0.90
reloadIfSafeFunction · 0.90
markStaleFunction · 0.90
isStaleFunction · 0.90
markRuntimeSettingsStaleFunction · 0.90

Calls 1

isLocalSessionPathFunction · 0.85

Tested by

no test coverage detected