@webpieces/nx-webpieces-rules 0.4.726 → 0.4.728
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webpieces/nx-webpieces-rules",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.728",
|
|
4
4
|
"description": "Nx-specific webpieces validation rules and graph tooling. Bundles all @webpieces rule packages with Nx graph validators and an inference plugin.",
|
|
5
5
|
"type": "commonjs",
|
|
6
6
|
"main": "./src/index.js",
|
|
@@ -18,11 +18,11 @@
|
|
|
18
18
|
"README.md"
|
|
19
19
|
],
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@webpieces/ai-hook-rules": "0.4.
|
|
22
|
-
"@webpieces/code-rules": "0.4.
|
|
23
|
-
"@webpieces/eslint-rules": "0.4.
|
|
24
|
-
"@webpieces/pr-gate": "0.4.
|
|
25
|
-
"@webpieces/rules-config": "0.4.
|
|
21
|
+
"@webpieces/ai-hook-rules": "0.4.728",
|
|
22
|
+
"@webpieces/code-rules": "0.4.728",
|
|
23
|
+
"@webpieces/eslint-rules": "0.4.728",
|
|
24
|
+
"@webpieces/pr-gate": "0.4.728",
|
|
25
|
+
"@webpieces/rules-config": "0.4.728",
|
|
26
26
|
"madge": "8.0.0"
|
|
27
27
|
},
|
|
28
28
|
"peerDependencies": {
|
|
@@ -14,7 +14,8 @@ import { TargetConfiguration } from '@nx/devkit';
|
|
|
14
14
|
* unedited config file still hash identically — which is exactly the leak above.
|
|
15
15
|
*
|
|
16
16
|
* DELIBERATELY NOT IN `sharedGlobals`. Putting a branch-varying value there would make EVERY task hash
|
|
17
|
-
* branch-unique and destroy cross-branch cache reuse fleet-wide (
|
|
17
|
+
* branch-unique and destroy cross-branch cache reuse fleet-wide (`.claude/rules/build-verification.md`'s
|
|
18
|
+
* measured ~3.2x contention cost
|
|
18
19
|
* is what that buys you). Scoped to the rule-running targets, `build`/`test`/`lint` keep sharing.
|
|
19
20
|
*
|
|
20
21
|
* The two vars are the same pair `getCurrentBranch()` reads, in the same order, so the hash keys off
|
|
@@ -16,7 +16,8 @@ exports.BRANCH_IDENTITY_INPUTS = void 0;
|
|
|
16
16
|
* unedited config file still hash identically — which is exactly the leak above.
|
|
17
17
|
*
|
|
18
18
|
* DELIBERATELY NOT IN `sharedGlobals`. Putting a branch-varying value there would make EVERY task hash
|
|
19
|
-
* branch-unique and destroy cross-branch cache reuse fleet-wide (
|
|
19
|
+
* branch-unique and destroy cross-branch cache reuse fleet-wide (`.claude/rules/build-verification.md`'s
|
|
20
|
+
* measured ~3.2x contention cost
|
|
20
21
|
* is what that buys you). Scoped to the rule-running targets, `build`/`test`/`lint` keep sharing.
|
|
21
22
|
*
|
|
22
23
|
* The two vars are the same pair `getCurrentBranch()` reads, in the same order, so the hash keys off
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"branch-identity-inputs.js","sourceRoot":"","sources":["../../../../../packages/tooling/nx-webpieces-rules/src/branch-identity-inputs.ts"],"names":[],"mappings":";;;AAEA
|
|
1
|
+
{"version":3,"file":"branch-identity-inputs.js","sourceRoot":"","sources":["../../../../../packages/tooling/nx-webpieces-rules/src/branch-identity-inputs.ts"],"names":[],"mappings":";;;AAEA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACU,QAAA,sBAAsB,GAA+C;IAC9E,EAAE,GAAG,EAAE,iBAAiB,EAAE;IAC1B,EAAE,GAAG,EAAE,kBAAkB,EAAE;CAC9B,CAAC","sourcesContent":["import { TargetConfiguration } from '@nx/devkit';\n\n/**\n * The BRANCH IDENTITY, as nx task-hash inputs. Append these to any CACHED target that can be turned off by\n * `turnOffRuleWhileOnBranch`.\n *\n * WHY A CACHED RULE TARGET NEEDS THEM: the branch hatch makes a rule's verdict depend on which branch you\n * are on, and nothing about the branch is otherwise in the hash. So a hatched branch runs `<project>:ci`\n * green and caches it under hash H; a later, UNRELATED PR that did not touch that project's files hashes to\n * the same H and REPLAYS the hatched green — the relaxation escapes the one branch that opted into it,\n * which is the single property the hatch is supposed to guarantee.\n *\n * `{workspaceRoot}/webpieces.config.json` in `sharedGlobals` (nx.json) is the other half and neither half\n * is sufficient alone: the config file makes EDITING a hatch bust the cache, but two branches sharing one\n * unedited config file still hash identically — which is exactly the leak above.\n *\n * DELIBERATELY NOT IN `sharedGlobals`. Putting a branch-varying value there would make EVERY task hash\n * branch-unique and destroy cross-branch cache reuse fleet-wide (`.claude/rules/build-verification.md`'s\n * measured ~3.2x contention cost\n * is what that buys you). Scoped to the rule-running targets, `build`/`test`/`lint` keep sharing.\n *\n * The two vars are the same pair `getCurrentBranch()` reads, in the same order, so the hash keys off\n * exactly the values the skip decision keys off. A plain `git rev-parse` is deliberately NOT used: nx\n * inputs must be cheap and pure, and on the CI checkout the vars are the authoritative answer anyway.\n *\n * These are object literals because that is the nx INPUT DSL, not a webpieces data structure — the same\n * form the `{'runtime': ...}` inputs in validation-targets.ts already use.\n */\nexport const BRANCH_IDENTITY_INPUTS: NonNullable<TargetConfiguration['inputs']> = [\n { env: 'GITHUB_HEAD_REF' },\n { env: 'WEBPIECES_BRANCH' },\n];\n"]}
|