MCPcopy Create free account
hub / github.com/cortexkit/magic-context / resolveCurrentProject

Function resolveCurrentProject

packages/pi-plugin/src/index.ts:147–154  ·  view source on GitHub ↗
(ctx: { cwd: string })

Source from the content-addressed store, hash-verified

145const PREFIX = "[magic-context][pi]";
146
147function resolveCurrentProject(ctx: { cwd: string }): {
148 projectDir: string;
149 projectIdentity: string;
150} {
151 const projectDir = ctx.cwd;
152 const projectIdentity = resolveProjectIdentity(projectDir);
153 return { projectDir, projectIdentity };
154}
155
156export function persistPiMessageEndModelMeta(args: {
157 db: ContextDatabase;

Callers 2

index.tsFile · 0.85

Calls 1

resolveProjectIdentityFunction · 0.90

Tested by

no test coverage detected