promptwheel 0.8.4 → 0.8.5
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/bin/promptwheel.d.ts +2 -0
- package/bin/promptwheel.mjs +2 -2
- package/package.json +1 -1
package/bin/promptwheel.d.ts
CHANGED
|
@@ -254,6 +254,8 @@ export interface SetupFailure {
|
|
|
254
254
|
// ---------------------------------------------------------------------------
|
|
255
255
|
|
|
256
256
|
/** The Contract revision this build implements; bumps only when the verdict schema or the exit codes change. */
|
|
257
|
+
/** The output lines read as a missing dependency in the clean copy (module not found, a shell's "command not found"). */
|
|
258
|
+
export declare const MISSING_DEP: RegExp;
|
|
257
259
|
export declare const CONTRACT_VERSION: '1';
|
|
258
260
|
export declare const VERDICTS: readonly ['pass', 'fail', 'gamed', 'inconclusive'];
|
|
259
261
|
export declare const METRIC_STATUSES: readonly ['improved', 'regressed', 'unchanged', 'inconclusive', 'unmeasurable'];
|
package/bin/promptwheel.mjs
CHANGED
|
@@ -165,7 +165,7 @@ const exitCodes = new WeakMap();
|
|
|
165
165
|
const neverRan = (samples) => { const c = exitCodes.get(samples) || []; return c.length > 0 && c.every((x) => x == null || x === 126 || x === 127); };
|
|
166
166
|
// Why a metric's command failed, read from its output: a dependency the clean copy does not have reads differently
|
|
167
167
|
// from tests that simply fail. A hint for the person, never part of a verdict.
|
|
168
|
-
const MISSING_DEP = /Cannot find (?:module|package) ['"][^'"\n]+['"]|ERR_MODULE_NOT_FOUND[^\n]*|ModuleNotFoundError: [^\n]+|No module named [^\n]+|error TS2307: [^\n]+|[^\n:]
|
|
168
|
+
const MISSING_DEP = /Cannot find (?:module|package) ['"][^'"\n]+['"]|ERR_MODULE_NOT_FOUND[^\n]*|ModuleNotFoundError: [^\n]+|No module named [^\n]+|error TS2307: [^\n]+|(?:^|\n)[^\n:]*(?:sh|bash|zsh|dash)(?::\s*\d+)?:[^\n]*?: (?:command )?not found[^\n]*|(?:^|\n)\S+: command not found[^\n]*|can't find crate[^\n]*|cannot find package [^\n]+/i;
|
|
169
169
|
function whyFailed(text) {
|
|
170
170
|
const m = String(text || '').replace(/\x1b\[[0-9;]*m/g, '').match(MISSING_DEP);
|
|
171
171
|
return m ? { cause: 'missing-dependency', detail: m[0].trim().slice(0, 200) } : { cause: 'failing' };
|
|
@@ -1368,7 +1368,7 @@ function parseArgs(argv) {
|
|
|
1368
1368
|
|
|
1369
1369
|
// pure, side-effect-free helpers are exported for unit testing; the CLI below only
|
|
1370
1370
|
// runs when this file is executed directly (not when imported by the test suite).
|
|
1371
|
-
export { extract, evaluate, median, spread, renderMarkdown, isNonSource, evaluatorMatcher, gain, judgeGaming, verdictFingerprint };
|
|
1371
|
+
export { MISSING_DEP, extract, evaluate, median, spread, renderMarkdown, isNonSource, evaluatorMatcher, gain, judgeGaming, verdictFingerprint };
|
|
1372
1372
|
|
|
1373
1373
|
// ─────────────────────────────────────────────────────────────────────────────
|
|
1374
1374
|
// Public library API: the Verified-Outcome Contract, in process.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "promptwheel",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.5",
|
|
4
4
|
"description": "A deterministic, zero-LLM check for your coding loop. A win must survive a re-run from the agent's source edits alone, so a test that went green by editing the test reads GAMED. Runs in CI or a Claude Code plugin.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|