@levr-one/cli 0.12.16 → 0.12.18
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.
|
@@ -380,9 +380,15 @@ const AutomationRetentionSettingSchema = z.object({
|
|
|
380
380
|
]),
|
|
381
381
|
maxRunsPerSource: z.number().int().min(AUTOMATION_RETENTION_MAX_RUNS_MIN).max(AUTOMATION_RETENTION_MAX_RUNS_MAX)
|
|
382
382
|
}).strict();
|
|
383
|
+
/**
|
|
384
|
+
* 350 runs per source keeps about 30 days of the busiest staging CI source
|
|
385
|
+
* (bitmodern5, 2026-11-05 dry run); 100 kept only about 9. Chosen by David
|
|
386
|
+
* on ENG-4833: a cap can be lowered later, but raising it never brings back
|
|
387
|
+
* runs that were already archived.
|
|
388
|
+
*/
|
|
383
389
|
const AUTOMATION_RETENTION_DEFAULTS = Object.freeze({
|
|
384
390
|
days: 90,
|
|
385
|
-
maxRunsPerSource:
|
|
391
|
+
maxRunsPerSource: 350
|
|
386
392
|
});
|
|
387
393
|
|
|
388
394
|
//#endregion
|
|
@@ -1704,7 +1710,7 @@ const WRAPPER_PREFIX_RE = /* @__PURE__ */ new RegExp("^(?:" + [
|
|
|
1704
1710
|
*/
|
|
1705
1711
|
const TEST_RUNNER_RE = new RegExp([
|
|
1706
1712
|
String.raw`^yarn(?:\s+(?:-s|--silent|--verbose|--offline|--frozen-lockfile|--immutable|workspace\s+\S+|--cwd\s+\S+))*\s+(?:run\s+)?(?:test(?::[\w-]+)?\b|vitest\b|jest\b)`,
|
|
1707
|
-
String.raw`^yarn\s+workspaces\s+foreach(?:\s+(?:--(?:include|exclude|from|jobs)(
|
|
1713
|
+
String.raw`^yarn\s+workspaces\s+foreach(?:\s+(?:--(?:include|exclude|from|jobs)(?:=\S+|\s+[^-\s]\S*)|-j\s+[^-\s]\S*|-[A-Za-z]+|--[\w-]+(?:=\S+)?))*\s+(?:run\s+)?test(?::[\w-]+)?\b`,
|
|
1708
1714
|
String.raw`^npm\s+(?:run\s+)?test(?::[\w-]+)?\b`,
|
|
1709
1715
|
String.raw`^pnpm\s+(?:(?:--filter|-F|--dir|-C)\s+\S+\s+|(?:-r|--recursive)\s+)*(?:run\s+)?test(?::[\w-]+)?\b`,
|
|
1710
1716
|
String.raw`^pnpm\s+(?:exec\s+|dlx\s+)?(?:vitest|jest|playwright)\b`,
|
|
@@ -1722,6 +1728,9 @@ const TEST_RUNNER_RE = new RegExp([
|
|
|
1722
1728
|
String.raw`^dotnet\s+test(?:\s|$)`,
|
|
1723
1729
|
String.raw`^(?:bundle\s+exec\s+)?(?:bin\/)?rspec(?:\s|$)`,
|
|
1724
1730
|
String.raw`^(?:npx\s+(?:(?:--yes|-y|--no-install|--no|-p\s+\S+|--package(?:=|\s+)\S+)\s+)*|yarn\s+(?:run\s+)?|pnpm\s+(?:exec\s+)?|(?:\.\/)?node_modules\/\.bin\/)?mocha(?:\s|$)`,
|
|
1731
|
+
String.raw`^(?:(?:\S*\/)?node|(?:(?:npx(?:\s+(?:--yes|-y))*|pnpm(?:\s+exec)?|yarn)\s+)?(?:\S*\/)?tsx)\s+(?:(?:--(?:import|require|loader|experimental-loader|test-reporter|test-reporter-destination|test-name-pattern|test-skip-pattern|test-concurrency|test-timeout|test-shard|test-isolation|test-global-setup|test-coverage-exclude|test-coverage-include|test-coverage-branches|test-coverage-functions|test-coverage-lines|env-file|env-file-if-exists|watch-path|disable-warning|experimental-config-file|tsconfig|conditions|input-type|title)|-r|-C)\s+[^-\s]\S*\s+|-\S+\s+)*?--test(?:\s|$)`,
|
|
1732
|
+
String.raw`^(?:(?:uv|poetry|pipenv|hatch)\s+run\s+)?(?:\S*\/)?python[\d.]*\s+(?:-[WX]\s+[^-\s]\S*\s+|-[A-Za-z]+\s+)*-m\s+unittest(?:\s|$)`,
|
|
1733
|
+
String.raw`^(?:(?:uv|poetry|pipenv|hatch)\s+run\s+)?(?:(?:\S*\/)?python[\d.]*\s+-m\s+)?coverage\s+run\s+(?:--(?:source|rcfile|include|omit|data-file|context|concurrency)\s+[^-\s]\S*\s+|-\S+\s+)*?-m\s+unittest(?:\s|$)`,
|
|
1725
1734
|
String.raw`^yarn\s+playwright\s+test(?:\s|$)`
|
|
1726
1735
|
].join("|"));
|
|
1727
1736
|
/**
|
|
@@ -1756,6 +1765,24 @@ const SEMANTIC_RUNNER_RE = /* @__PURE__ */ new RegExp(`(?:^|[\\s|;&(])(?:${JUDGE
|
|
|
1756
1765
|
* any wrapper) is a candidate; a judge is one whose FIRST word is the binary.
|
|
1757
1766
|
*/
|
|
1758
1767
|
const JUDGE_COMMAND_RE = /* @__PURE__ */ new RegExp(`^(?:${JUDGE_BINARIES})(?:\\s|$)`);
|
|
1768
|
+
/**
|
|
1769
|
+
* Commands that build, install or tear down around a run, by shape — review
|
|
1770
|
+
* round 3 (CRA F-007). Taken for the run, a `yarn build` that printed `Done
|
|
1771
|
+
* in 2.1s` stood in for a silent `make test` beside it. Maven and Gradle
|
|
1772
|
+
* lifecycles (`mvn install`, `gradle build`) run the tests, so they are not
|
|
1773
|
+
* listed; and a segment a runner rule recognises is never one of these.
|
|
1774
|
+
*/
|
|
1775
|
+
const BUILD_OR_TEARDOWN_RE = new RegExp([
|
|
1776
|
+
String.raw`^(?:yarn|npm|pnpm|bun)(?:\s+run)?\s+(?:build|install|ci|i|add|lint|format|typecheck|tsc|prepare|compile|codegen|generate)(?::[\w-]+)?(?:\s|$)`,
|
|
1777
|
+
String.raw`^(?:yarn|pnpm|bun)$`,
|
|
1778
|
+
String.raw`^(?:(?:\S*\/)?python[\d.]*\s+-m\s+)?pip[\d.]*\s+install(?:\s|$)`,
|
|
1779
|
+
String.raw`^(?:\S*\/)?tsc(?:\s|$)`,
|
|
1780
|
+
String.raw`^cargo\s+(?:\+\S+\s+)?(?:build|check|fetch)(?:\s|$)`,
|
|
1781
|
+
String.raw`^go\s+(?:build|mod|generate|vet|install)(?:\s|$)`,
|
|
1782
|
+
String.raw`^docker(?:-compose|\s+compose)?(?:\s+-\S+(?:\s+[^-\s]\S*)?)*\s+(?:build|up|down|stop|pull|start|rm|kill|restart)(?:\s|$)`,
|
|
1783
|
+
String.raw`^(?:bundle|composer)\s+install(?:\s|$)`,
|
|
1784
|
+
String.raw`^dotnet\s+(?:build|restore)(?:\s|$)`
|
|
1785
|
+
].join("|"));
|
|
1759
1786
|
|
|
1760
1787
|
//#endregion
|
|
1761
1788
|
//#region ../shared/dist/runs/gate-binding-config.js
|
package/dist/cli.js
CHANGED
|
@@ -688,7 +688,7 @@ Examples:
|
|
|
688
688
|
}
|
|
689
689
|
},
|
|
690
690
|
loader: async () => {
|
|
691
|
-
const { gatesBindingsExportHandler } = await import("./bindingsHandler-
|
|
691
|
+
const { gatesBindingsExportHandler } = await import("./bindingsHandler-BuChtKck.js");
|
|
692
692
|
return gatesBindingsExportHandler;
|
|
693
693
|
}
|
|
694
694
|
});
|
|
@@ -761,7 +761,7 @@ Examples:
|
|
|
761
761
|
aliases: { w: "workspace-id" }
|
|
762
762
|
},
|
|
763
763
|
loader: async () => {
|
|
764
|
-
const { gatesBindingsImportHandler } = await import("./bindingsHandler-
|
|
764
|
+
const { gatesBindingsImportHandler } = await import("./bindingsHandler-BuChtKck.js");
|
|
765
765
|
return gatesBindingsImportHandler;
|
|
766
766
|
}
|
|
767
767
|
});
|
|
@@ -1248,7 +1248,7 @@ Examples:
|
|
|
1248
1248
|
|
|
1249
1249
|
//#endregion
|
|
1250
1250
|
//#region package.json
|
|
1251
|
-
var version = "0.12.
|
|
1251
|
+
var version = "0.12.18";
|
|
1252
1252
|
|
|
1253
1253
|
//#endregion
|
|
1254
1254
|
//#region src/app.ts
|