MCPcopy Create free account
hub / github.com/Wirasm/kild / worktreesInUse

Function worktreesInUse

engine/src/server.ts:76–82  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

74//
75// Endpoints that need a project directory take an EXPLICIT reference: `project` is a
76// registered project name, `path` an absolute directory. Exactly one of the two — the
77// old polymorphic name-or-path guessing is gone.
78type ProjectRef = { ok: true; dir: string } | { ok: false; error: string; status: 400 | 404 };
79
80async function resolveProjectRef(
81 project: string | undefined,
82 dirPath: string | undefined,
83): Promise<ProjectRef> {
84 if (project !== undefined && dirPath !== undefined) {
85 return {

Callers 1

server.tsFile · 0.85

Calls 1

listMethod · 0.80

Tested by

no test coverage detected