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

Function getPiSessionStorage

desktop/runtime-host/settings-service.ts:17–28  ·  view source on GitHub ↗
(projectPath?: string | undefined | null | undefined)

Source from the content-addressed store, hash-verified

15}
16
17export async function getPiSessionStorage(projectPath?: string | undefined | null | undefined) {
18 const { SettingsManager, SessionManager, getAgentDir } = await getPiModule()
19 const cwd = projectPath ?? getDesktopWorkingDirectory()
20 const agentDir = getAgentDir()
21 const settingsManager = SettingsManager.create(cwd, agentDir)
22 const configuredSessionDir = settingsManager.getSessionDir()
23
24 return {
25 agentDir,
26 sessionDir: configuredSessionDir ?? SessionManager.create(cwd).getSessionDir(),
27 }
28}
29
30export async function loadPiSettingsInHost(
31 projectPath?: string | undefined | null | undefined,

Callers 1

handleRequestFunction · 0.90

Calls 2

getPiModuleFunction · 0.90

Tested by

no test coverage detected