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

Function resolvePiPackageProjectPath

desktop/pi-packages/services.ts:7–12  ·  view source on GitHub ↗
(request: {
  projectPath?: string | undefined | null | undefined
  chat?: boolean | undefined
})

Source from the content-addressed store, hash-verified

5import type { PiPackageManager, PiSettingsManager } from './types.ts'
6
7export function resolvePiPackageProjectPath(request: {
8 projectPath?: string | undefined | null | undefined
9 chat?: boolean | undefined
10}) {
11 return request.chat ? getChatSessionDir() : request.projectPath
12}
13
14export async function getPiPackageServices(
15 request: { projectPath?: string | undefined | null | undefined; chat?: boolean | undefined } = {},

Callers 1

getPiPackageServicesFunction · 0.85

Calls 1

getChatSessionDirFunction · 0.90

Tested by

no test coverage detected