sawbuck 0.1.2 → 0.1.4
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.
- package/init.mjs +5 -1
- package/package.json +2 -2
- package/rank.mjs +5 -1
- package/reflect.mjs +5 -1
- package/run.mjs +1 -1
package/init.mjs
CHANGED
|
@@ -26,7 +26,11 @@ const HERE = dirname(fileURLToPath(import.meta.url));
|
|
|
26
26
|
const require = createRequire(import.meta.url);
|
|
27
27
|
const engineBin = (envVar, pkgSubpath, devPath) => {
|
|
28
28
|
if (process.env[envVar]) return process.env[envVar];
|
|
29
|
-
|
|
29
|
+
// deep bin subpath (no-exports pkgs, e.g. promptwheel), then the bare package name
|
|
30
|
+
// (pkgs whose exports map "." to the bin, e.g. @promptwheel/logbook), then the dev sibling.
|
|
31
|
+
const bare = pkgSubpath.replace(/\/bin\/[^/]*$/, '');
|
|
32
|
+
for (const spec of [pkgSubpath, bare]) { try { return require.resolve(spec); } catch {} }
|
|
33
|
+
return devPath;
|
|
30
34
|
};
|
|
31
35
|
const PW = engineBin('PW_BIN', 'promptwheel/bin/promptwheel.mjs', join(HERE, '..', 'referee', 'bin', 'promptwheel.mjs'));
|
|
32
36
|
const LB = engineBin('LB_BIN', '@promptwheel/logbook/bin/logbook.mjs', join(HERE, '..', 'logbook', 'bin', 'logbook.mjs'));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sawbuck",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.4",
|
|
4
4
|
"description": "Sign your agent to a contract so it does what you want: a deterministic, zero-LLM check that re-proves every win from the agent's source edits alone, so a green that came from editing the test is caught and reverted. A saddle for your coding harness.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
18
|
"promptwheel": "^0.4.5",
|
|
19
|
-
"@promptwheel/logbook": "^0.
|
|
19
|
+
"@promptwheel/logbook": "^0.9.0"
|
|
20
20
|
},
|
|
21
21
|
"files": [
|
|
22
22
|
"sawbuck.mjs",
|
package/rank.mjs
CHANGED
|
@@ -20,7 +20,11 @@ const HERE = dirname(fileURLToPath(import.meta.url));
|
|
|
20
20
|
const require = createRequire(import.meta.url);
|
|
21
21
|
const engineBin = (envVar, pkgSubpath, devPath) => {
|
|
22
22
|
if (process.env[envVar]) return process.env[envVar];
|
|
23
|
-
|
|
23
|
+
// deep bin subpath (no-exports pkgs, e.g. promptwheel), then the bare package name
|
|
24
|
+
// (pkgs whose exports map "." to the bin, e.g. @promptwheel/logbook), then the dev sibling.
|
|
25
|
+
const bare = pkgSubpath.replace(/\/bin\/[^/]*$/, '');
|
|
26
|
+
for (const spec of [pkgSubpath, bare]) { try { return require.resolve(spec); } catch {} }
|
|
27
|
+
return devPath;
|
|
24
28
|
};
|
|
25
29
|
const LB = engineBin('LB_BIN', '@promptwheel/logbook/bin/logbook.mjs', join(HERE, '..', 'logbook', 'bin', 'logbook.mjs'));
|
|
26
30
|
|
package/reflect.mjs
CHANGED
|
@@ -26,7 +26,11 @@ const require = createRequire(import.meta.url);
|
|
|
26
26
|
// install), then the monorepo sibling (dev checkout).
|
|
27
27
|
const engineBin = (envVar, pkgSubpath, devPath) => {
|
|
28
28
|
if (process.env[envVar]) return process.env[envVar];
|
|
29
|
-
|
|
29
|
+
// deep bin subpath (no-exports pkgs, e.g. promptwheel), then the bare package name
|
|
30
|
+
// (pkgs whose exports map "." to the bin, e.g. @promptwheel/logbook), then the dev sibling.
|
|
31
|
+
const bare = pkgSubpath.replace(/\/bin\/[^/]*$/, '');
|
|
32
|
+
for (const spec of [pkgSubpath, bare]) { try { return require.resolve(spec); } catch {} }
|
|
33
|
+
return devPath;
|
|
30
34
|
};
|
|
31
35
|
const PW = engineBin('PW_BIN', 'promptwheel/bin/promptwheel.mjs', join(HERE, '..', 'referee', 'bin', 'promptwheel.mjs'));
|
|
32
36
|
const LB = engineBin('LB_BIN', '@promptwheel/logbook/bin/logbook.mjs', join(HERE, '..', 'logbook', 'bin', 'logbook.mjs'));
|
package/run.mjs
CHANGED
|
@@ -15,7 +15,7 @@ import { fileURLToPath } from 'node:url';
|
|
|
15
15
|
|
|
16
16
|
const HERE = dirname(fileURLToPath(import.meta.url));
|
|
17
17
|
const require = createRequire(import.meta.url);
|
|
18
|
-
const bin = (envVar, pkg, dev) => { if (process.env[envVar]) return process.env[envVar]; try { return require.resolve(
|
|
18
|
+
const bin = (envVar, pkg, dev) => { if (process.env[envVar]) return process.env[envVar]; const bare = pkg.replace(/\/bin\/[^/]*$/, ''); for (const s of [pkg, bare]) { try { return require.resolve(s); } catch {} } return dev; };
|
|
19
19
|
const PW = bin('PW_BIN', 'promptwheel/bin/promptwheel.mjs', join(HERE, '..', 'referee', 'bin', 'promptwheel.mjs'));
|
|
20
20
|
|
|
21
21
|
const arg = (n, d) => { const i = process.argv.indexOf(n); return i > -1 ? process.argv[i + 1] : d; };
|