promptwheel 0.8.5 → 0.8.6
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.mjs +16 -1
- package/package.json +1 -1
package/bin/promptwheel.mjs
CHANGED
|
@@ -356,6 +356,13 @@ const NON_SOURCE = [
|
|
|
356
356
|
/(^|\/)(tests?|__tests?__|spec|e2e|fixtures|snapshots|__snapshots__|__mocks__)\//i,
|
|
357
357
|
/\.(test|spec)\.[cm]?[jt]sx?$/i,
|
|
358
358
|
/(^|\/)tests?\.[cm]?[jt]sx?$/i, // a file literally named test.js / tests.ts
|
|
359
|
+
// hyphen names (ava's and node --test's test-*.js, *-test.js, *-spec.js) count outside src/, lib/ and scripts/ only: real
|
|
360
|
+
// production code is named test-patterns.ts or generate-test.ts (found across 18k files, 2026-11-10). A fixed
|
|
361
|
+
// test-release.js at the root read as a source win before this (sendback bench, p-map).
|
|
362
|
+
/^(?!(?:.*\/)?(?:src|lib|scripts)\/)(?:.*\/)?tests?-[^/]*\.[cm]?[jt]sx?$/i,
|
|
363
|
+
/^(?!(?:.*\/)?(?:src|lib|scripts)\/)(?:.*\/)?[^/]+-(test|spec)\.[cm]?[jt]sx?$/i,
|
|
364
|
+
/_test\.[cm]?[jt]sx?$/i, // node --test's, Deno's and Bun's *_test.js, anywhere (a strong signal)
|
|
365
|
+
/\.test-d\.[cm]?tsx?$/i, // tsd type tests (index.test-d.ts), run by a test script like xo && ava && tsd
|
|
359
366
|
/(^|\/)test_[^/]*\.py$/i, /_test\.py$/i, /(^|\/)conftest\.py$/i,
|
|
360
367
|
// cross-language test-filename conventions, strong-signal tokens only (a dedicated
|
|
361
368
|
// _test / _spec / Test(s) suffix, or a file literally named test.<lang>), so production
|
|
@@ -367,7 +374,15 @@ const NON_SOURCE = [
|
|
|
367
374
|
/(^|\/)test_[^/]*\.(c|cc|cpp|cxx|h|hpp|go|rs)$/i,
|
|
368
375
|
/_test\.(c|cc|cpp|cxx|h|hpp|go|rs|rb)$/i,
|
|
369
376
|
/_spec\.rb$/i,
|
|
370
|
-
/[a-z0-9](Test|Tests)\.(java|kt|kts|scala)$/,
|
|
377
|
+
/[a-z0-9](Test|Tests)\.(java|kt|kts|scala|cs|php|swift)$/, // JUnit, xUnit/NUnit (.NET), PHPUnit, XCTest
|
|
378
|
+
/(^|\/)[^/]+\.Tests?(\/|\.csproj$)/, // a .NET test project: MyApp.Tests/ and MyApp.Tests.csproj
|
|
379
|
+
/_spec\.[cm]?[jt]sx?$/i, // Bun's *_spec.ts
|
|
380
|
+
/\.cy\.[cm]?[jt]sx?$/i, // Cypress specs (login.cy.ts)
|
|
381
|
+
/_test\.(exs|dart)$/i, /(^|\/)integration_test\//i, // ExUnit, Dart and Flutter
|
|
382
|
+
/(^|\/)testdata\//i, /(^|\/)benches\//i, // Go test data at any depth, Rust benchmarks
|
|
383
|
+
// test runner and coverage-gate config: editing these skips tests or loosens a threshold
|
|
384
|
+
/(^|\/)\.(mocharc|nycrc|c8rc|coveragerc)[^/]*$/i, /(^|\/)\.rspec$/i, /(^|\/)codecov\.ya?ml$/i,
|
|
385
|
+
/(^|\/)phpunit\.xml(\.dist)?$/i, /(^|\/)vitest\.workspace\.[^/]+$/i, /(^|\/)setupTests\.[cm]?[jt]sx?$/i,
|
|
371
386
|
/\.snap$/i, /(^|\/)golden[^/]*$/i, /\.golden$/i,
|
|
372
387
|
// a grader/eval/score FILE by name in a scripting language (eval.py, grader-x.js, grade.sh, scoring.ts), never a
|
|
373
388
|
// prefix: evaluate.ts, evaluation.py, scoreboard.js stay source. Compiled names stay source too (eval.c, eval.go
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "promptwheel",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.6",
|
|
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": {
|