Autonomous development for real products. Governed agents build from specs you approve, follow the rules you set, and nothing merges until another agent proves it. Your decisions, judgement and taste are the bar that work must clear. Declare your vision and let agents build it.
JavaScript agentic-codingai-agentsai-governanceautonomous-agentsclaude-codeclicode-reviewcodexcoding-agentsdeveloper-toolsgit-hooksllmlocal-firstmulti-agentsoftware-factoryspec-driven-developmentverificationvibe-coding
fix(hooks): preserve stdin across version probes [C3,I2]
Corey Olsonad16c412e520
diff --git a/src/hooks.js b/src/hooks.jsindex 61730aa0..0bf3f505 100644--- a/src/hooks.js+++ b/src/hooks.js@@ -688,7 +688,8 @@ export function hookScript(hook, version = INSTALLER_VERSION) {'run() {',' bin="$1"; scope="$2"',// Shell builtins only, so a hook works on a PATH that has no tail or sed: keep the last line of --version.- ' nl=$(printf \'\\n_\'); nl=${nl%_}; have=$("$bin" --version 2>/dev/null); have=${have##*"$nl"}',+ // The probe gets EOF; the delegated pre-push hook must receive Git's original ref records.+ ' nl=$(printf \'\\n_\'); nl=${nl%_}; have=$("$bin" --version </dev/null 2>/dev/null); have=${have##*"$nl"}',' if [ "$have" != "$want" ]; then',' newer=$(node -e \'const [a,b]=process.argv.slice(1).map(v=>String(v).split(".").map(n=>parseInt(n,10)||0));for(let i=0;i<3;i++)if(a[i]!==b[i]){process.stdout.write(a[i]>b[i]?"yes":"no");process.exit(0)}process.stdout.write("no")\' "$have" "$want" 2>/dev/null)',' if [ "$newer" = yes ]; then fix="pullboard init"; else fix="npm i $scope pullboard@$want"; fi',