// cli/project-detector.ts — Detect projectId from path using the canonical storage hash.
import { resolve } from 'node:path';
import { hashProjectPath } from '../storage/base-store.js';
/**
 * Compute a deterministic projectId from a filesystem path.
 * Delegates to storage/base-store so CLI commands never drift from MCP/tools.
 */
export function detectProjectId(path) {
    const resolved = resolve(path ?? process.cwd());
    return hashProjectPath(resolved);
}
//# sourceMappingURL=project-detector.js.map