sawbuck 0.1.33 → 0.1.34

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/sawbuck.mjs +2 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sawbuck",
3
- "version": "0.1.33",
3
+ "version": "0.1.34",
4
4
  "description": "Sign your agent to a contract: a deterministic, zero-LLM check re-proves every win from the agent's source edits alone, so a green that came from editing the test, grader, or config is caught and sent back. Works in Claude Code, Codex, git hooks, and CI.",
5
5
  "type": "module",
6
6
  "license": "Apache-2.0",
package/sawbuck.mjs CHANGED
@@ -634,7 +634,8 @@ function onPath() {
634
634
  if (process.env.SAWBUCK_NO_PATH_CHECK) return false;
635
635
  try { execFileSync('sh', ['-c', 'command -v sawbuck'], { stdio: 'ignore' }); return true; } catch { return false; }
636
636
  }
637
- function extractBaked(text) { const m = text.match(/node "([^"]+)"/); return m ? m[1] : null; }
637
+ // the path a hook bakes in: the quoted one ending in sawbuck.mjs, in a shell hook or in JSON, where the quotes are escaped
638
+ function extractBaked(text) { const m = text.match(/"([^"]*sawbuck\.mjs)\\?"/); return m ? m[1] : null; }
638
639
  function doctorRepo(repo) {
639
640
  const checks = [];
640
641
  const pc = gitPath(repo, 'hooks/post-commit');