Skip to content

Open-source platform for 3D AI agents. Turn text or a photo into a rigged, animated GLB avatar, give it an LLM brain, memory and a wallet, and embed it anywhere with one web component. Remote MCP server, x402 payments, Three.js, browser-native.

fix(setup-dev): survive an unset core.hooksPath instead of aborting setup

nirholas69bece956f17
diff --git a/scripts/setup-dev.mjs b/scripts/setup-dev.mjs
index 56d1b7540..07efc11a3 100644
--- a/scripts/setup-dev.mjs
+++ b/scripts/setup-dev.mjs
@@ -62,7 +62,13 @@ if (!existsSync(resolve(ROOT, 'agent-payments-sdk/dist/index.js'))) {
// typecheck-only one on every machine that ran setup, so the mandated checks
// never fired for anyone who followed the contributor docs. Undo that
// redirect where it is still set, then (re)install the real hook.
-const hooksPath = run('git config --get core.hooksPath', { allowFail: true }).trim();
+// `git config --get` exits 1 when the key is unset, which is the normal case.
+let hooksPath = '';
+try {
+ hooksPath = execSync('git config --get core.hooksPath', { cwd: ROOT, stdio: ['ignore', 'pipe', 'ignore'] }).toString().trim();
+} catch {
+ hooksPath = '';
+}
if (hooksPath === '.githooks') run('git config --unset core.hooksPath');
run('node scripts/setup-git-hooks.mjs');