Understand any codebase instantly. System intelligence for codebases, built for humans and AI.
TypeScript aiai-memoryclaude-codeclicode-analysiscode-mappingcode-memorycodebase-understandingcodexdeveloper-toolsllmopenclawpersistent-memoryprogram-analysissoftware-architecturesystem-intelligencesystem-mapping
Merge pull request #772 from ix-infrastructure/fix/sec-06-cli-hardening
Ian Hockf4b93598d67c
diff --cc ix-cli/src/cli/explain/bm25-cache.tsindex ea6d3862,cf190823..6fadd77e--- a/ix-cli/src/cli/explain/bm25-cache.ts+++ b/ix-cli/src/cli/explain/bm25-cache.ts@@@ -95,9 -89,10 +97,11 @@@ export function bm25IndexPath(root: str*/export function readGitState(root: string): GitState | undefined {try {- const run = (args: string[]) => execFileSync("git", ["--no-optional-locks", ...args], {+ const run = (args: string[]) => execFileSync("git", [+ "--no-optional-locks", "-c", "core.fsmonitor=false", "-c", "core.hooksPath=/dev/null", ...args,+ ], {cwd: root, encoding: "utf-8", stdio: ["ignore", "pipe", "ignore"], maxBuffer: 64 * 1024 * 1024,+ timeout: GIT_TIMEOUT_MS,});const head = run(["rev-parse", "--verify", "-q", "HEAD"]).trim();if (!head) return undefined;