@webpieces/nx-webpieces-rules 0.4.1009 → 0.4.1011

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.
@@ -3,228 +3,185 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.recommendedSeeds = exports.optionalTuning = void 0;
4
4
  /** Optional knobs only. Required behaviour is always supplied by the repository. */
5
5
  exports.optionalTuning = {
6
- "wiring-format": {},
7
- "no-file-import-cycles": {},
8
- "runtime-architecture": {},
9
- "nx-wiring": {},
10
- "di-graph": {},
11
- "missing-design-annotation": {},
12
- "validate-architecture-unchanged": {},
13
- "validate-no-architecture-cycles": {},
14
- "validate-packagejson": {},
15
- "validate-versions-locked": {},
16
- "validate-eslint-sync": {},
17
- "no-root-union-api-type": {},
18
- "api-rules-for-openapi": {},
19
- "api-rules-for-mcp": {},
20
- "api-lib-dependencies": {},
21
- "api-lib-path": {},
22
- "framework-folder": {},
23
- "product-tags": {}
6
+ 'dependency-catalog': {},
7
+ 'root-runtime-freeze': {},
8
+ 'dependency-ownership': {},
9
+ 'wiring-format': {},
10
+ 'no-file-import-cycles': {},
11
+ 'runtime-architecture': {},
12
+ 'nx-wiring': {},
13
+ 'di-graph': {},
14
+ 'missing-design-annotation': {},
15
+ 'validate-architecture-unchanged': {},
16
+ 'validate-no-architecture-cycles': {},
17
+ 'validate-packagejson': {},
18
+ 'validate-versions-locked': {},
19
+ 'validate-eslint-sync': {},
20
+ 'no-root-union-api-type': {},
21
+ 'api-rules-for-openapi': {},
22
+ 'api-rules-for-mcp': {},
23
+ 'api-lib-dependencies': {},
24
+ 'api-lib-path': {},
25
+ 'framework-folder': {},
26
+ 'product-tags': {},
24
27
  };
25
28
  /** Written for review by setup/sync; never used as a loader fallback. */
26
29
  exports.recommendedSeeds = {
27
- "wiring-format": {
28
- "mode": "RUN_EVERY_TIME",
29
- "maxLines": 400,
30
- "turnOffRuleUntilEpoch": 0,
31
- "turnOffRuleWhileOnBranch": null
32
- },
33
- "no-file-import-cycles": {
34
- "mode": "RUN_EVERY_TIME",
35
- "turnOffRuleUntilEpoch": 0,
36
- "turnOffRuleWhileOnBranch": null
37
- },
38
- "runtime-architecture": {
39
- "mode": "RUN_EVERY_TIME",
40
- "turnOffRuleUntilEpoch": 0,
41
- "turnOffRuleWhileOnBranch": null
42
- },
43
- "nx-wiring": {
44
- "mode": "RUN_EVERY_TIME",
45
- "turnOffRuleUntilEpoch": 0,
46
- "turnOffRuleWhileOnBranch": null
47
- },
48
- "di-graph": {
49
- "mode": "RUN_EVERY_TIME",
50
- "turnOffRuleUntilEpoch": 0,
51
- "turnOffRuleWhileOnBranch": null
52
- },
53
- "missing-design-annotation": {
54
- "mode": "RUN_EVERY_TIME",
55
- "turnOffRuleUntilEpoch": 0,
56
- "turnOffRuleWhileOnBranch": null
57
- },
58
- "validate-architecture-unchanged": {
59
- "mode": "RUN_EVERY_TIME",
60
- "turnOffRuleUntilEpoch": 0,
61
- "turnOffRuleWhileOnBranch": null
62
- },
63
- "validate-no-architecture-cycles": {
64
- "mode": "RUN_EVERY_TIME",
65
- "turnOffRuleUntilEpoch": 0,
66
- "turnOffRuleWhileOnBranch": null
67
- },
68
- "validate-packagejson": {
69
- "mode": "RUN_EVERY_TIME",
70
- "turnOffRuleUntilEpoch": 0,
71
- "turnOffRuleWhileOnBranch": null
72
- },
73
- "validate-versions-locked": {
74
- "mode": "RUN_EVERY_TIME",
75
- "turnOffRuleUntilEpoch": 0,
76
- "turnOffRuleWhileOnBranch": null
77
- },
78
- "validate-eslint-sync": {
79
- "mode": "RUN_EVERY_TIME",
80
- "turnOffRuleUntilEpoch": 0,
81
- "turnOffRuleWhileOnBranch": null
82
- },
83
- "no-root-union-api-type": {
84
- "mode": "RUN_EVERY_TIME",
85
- "turnOffRuleUntilEpoch": 0,
86
- "turnOffRuleWhileOnBranch": null
87
- },
88
- "api-rules-for-openapi": {
89
- "mode": "AFFECTED_PROJECT",
90
- "turnOffRuleUntilEpoch": 0,
91
- "turnOffRuleWhileOnBranch": null
92
- },
93
- "api-rules-for-mcp": {
94
- "mode": "AFFECTED_PROJECT",
95
- "turnOffRuleUntilEpoch": 0,
96
- "turnOffRuleWhileOnBranch": null
97
- },
98
- "api-lib-dependencies": {
99
- "mode": "RUN_EVERY_TIME",
100
- "turnOffRuleUntilEpoch": 0,
101
- "turnOffRuleWhileOnBranch": null,
102
- "apiLibPackages": [
103
- "@webpieces/core-util",
104
- "tslib"
105
- ],
106
- "apiClients": [],
107
- "allowedWorkspaceProjects": []
108
- },
109
- "api-lib-path": {
110
- "mode": "RUN_EVERY_TIME",
111
- "turnOffRuleUntilEpoch": 0,
112
- "turnOffRuleWhileOnBranch": null,
113
- "paths": [
114
- "libraries/apis/**"
115
- ]
116
- },
117
- "framework-folder": {
118
- "mode": "RUN_EVERY_TIME",
119
- "turnOffRuleUntilEpoch": 0,
120
- "turnOffRuleWhileOnBranch": null,
121
- "entries": [
30
+ 'dependency-catalog': { mode: 'OFF', turnOffRuleUntilEpoch: 0, turnOffRuleWhileOnBranch: null },
31
+ 'root-runtime-freeze': {
32
+ mode: 'OFF',
33
+ allowedNames: [],
34
+ turnOffRuleUntilEpoch: 0,
35
+ turnOffRuleWhileOnBranch: null,
36
+ },
37
+ 'dependency-ownership': {
38
+ mode: 'OFF',
39
+ rootToolPaths: [],
40
+ testPaths: [],
41
+ artifactProbePaths: [],
42
+ toolProviders: [],
43
+ dynamicImports: [],
44
+ turnOffRuleUntilEpoch: 0,
45
+ turnOffRuleWhileOnBranch: null,
46
+ },
47
+ 'wiring-format': {
48
+ mode: 'RUN_EVERY_TIME',
49
+ maxLines: 400,
50
+ turnOffRuleUntilEpoch: 0,
51
+ turnOffRuleWhileOnBranch: null,
52
+ },
53
+ 'no-file-import-cycles': {
54
+ mode: 'RUN_EVERY_TIME',
55
+ turnOffRuleUntilEpoch: 0,
56
+ turnOffRuleWhileOnBranch: null,
57
+ },
58
+ 'runtime-architecture': {
59
+ mode: 'RUN_EVERY_TIME',
60
+ turnOffRuleUntilEpoch: 0,
61
+ turnOffRuleWhileOnBranch: null,
62
+ },
63
+ 'nx-wiring': {
64
+ mode: 'RUN_EVERY_TIME',
65
+ turnOffRuleUntilEpoch: 0,
66
+ turnOffRuleWhileOnBranch: null,
67
+ },
68
+ 'di-graph': {
69
+ mode: 'RUN_EVERY_TIME',
70
+ turnOffRuleUntilEpoch: 0,
71
+ turnOffRuleWhileOnBranch: null,
72
+ },
73
+ 'missing-design-annotation': {
74
+ mode: 'RUN_EVERY_TIME',
75
+ turnOffRuleUntilEpoch: 0,
76
+ turnOffRuleWhileOnBranch: null,
77
+ },
78
+ 'validate-architecture-unchanged': {
79
+ mode: 'RUN_EVERY_TIME',
80
+ turnOffRuleUntilEpoch: 0,
81
+ turnOffRuleWhileOnBranch: null,
82
+ },
83
+ 'validate-no-architecture-cycles': {
84
+ mode: 'RUN_EVERY_TIME',
85
+ turnOffRuleUntilEpoch: 0,
86
+ turnOffRuleWhileOnBranch: null,
87
+ },
88
+ 'validate-packagejson': {
89
+ mode: 'RUN_EVERY_TIME',
90
+ turnOffRuleUntilEpoch: 0,
91
+ turnOffRuleWhileOnBranch: null,
92
+ },
93
+ 'validate-versions-locked': {
94
+ mode: 'RUN_EVERY_TIME',
95
+ turnOffRuleUntilEpoch: 0,
96
+ turnOffRuleWhileOnBranch: null,
97
+ },
98
+ 'validate-eslint-sync': {
99
+ mode: 'RUN_EVERY_TIME',
100
+ turnOffRuleUntilEpoch: 0,
101
+ turnOffRuleWhileOnBranch: null,
102
+ },
103
+ 'no-root-union-api-type': {
104
+ mode: 'RUN_EVERY_TIME',
105
+ turnOffRuleUntilEpoch: 0,
106
+ turnOffRuleWhileOnBranch: null,
107
+ },
108
+ 'api-rules-for-openapi': {
109
+ mode: 'AFFECTED_PROJECT',
110
+ turnOffRuleUntilEpoch: 0,
111
+ turnOffRuleWhileOnBranch: null,
112
+ },
113
+ 'api-rules-for-mcp': {
114
+ mode: 'AFFECTED_PROJECT',
115
+ turnOffRuleUntilEpoch: 0,
116
+ turnOffRuleWhileOnBranch: null,
117
+ },
118
+ 'api-lib-dependencies': {
119
+ mode: 'RUN_EVERY_TIME',
120
+ turnOffRuleUntilEpoch: 0,
121
+ turnOffRuleWhileOnBranch: null,
122
+ apiLibPackages: ['@webpieces/core-util', 'tslib'],
123
+ apiClients: [],
124
+ allowedWorkspaceProjects: [],
125
+ },
126
+ 'api-lib-path': {
127
+ mode: 'RUN_EVERY_TIME',
128
+ turnOffRuleUntilEpoch: 0,
129
+ turnOffRuleWhileOnBranch: null,
130
+ paths: ['libraries/apis/**'],
131
+ },
132
+ 'framework-folder': {
133
+ mode: 'RUN_EVERY_TIME',
134
+ turnOffRuleUntilEpoch: 0,
135
+ turnOffRuleWhileOnBranch: null,
136
+ entries: [
122
137
  {
123
- "paths": [
124
- "libraries/angular/**"
125
- ],
126
- "frameworkSets": [
127
- "angular"
128
- ],
129
- "roles": [
130
- "lib",
131
- "designed-lib"
132
- ]
138
+ paths: ['libraries/angular/**'],
139
+ frameworkSets: ['angular'],
140
+ roles: ['lib', 'designed-lib'],
133
141
  },
134
142
  {
135
- "paths": [
136
- "libraries/node/**"
137
- ],
138
- "frameworkSets": [
139
- "node",
140
- "express"
141
- ],
142
- "roles": [
143
- "lib",
144
- "designed-lib"
145
- ]
143
+ paths: ['libraries/node/**'],
144
+ frameworkSets: ['node', 'express'],
145
+ roles: ['lib', 'designed-lib'],
146
146
  },
147
147
  {
148
- "paths": [
149
- "libraries/universal/**"
150
- ],
151
- "frameworkSets": [
152
- "browser+node+react-native"
153
- ],
154
- "roles": [
155
- "lib",
156
- "designed-lib"
157
- ]
148
+ paths: ['libraries/universal/**'],
149
+ frameworkSets: ['browser+node+react-native'],
150
+ roles: ['lib', 'designed-lib'],
158
151
  },
159
152
  {
160
- "paths": [
161
- "libraries/rn-browser/**"
162
- ],
163
- "frameworkSets": [
164
- "browser+react-native"
165
- ],
166
- "roles": [
167
- "lib",
168
- "designed-lib"
169
- ]
153
+ paths: ['libraries/rn-browser/**'],
154
+ frameworkSets: ['browser+react-native'],
155
+ roles: ['lib', 'designed-lib'],
170
156
  },
171
157
  {
172
- "paths": [
173
- "libraries/react-native/**"
174
- ],
175
- "frameworkSets": [
176
- "react-native"
177
- ],
178
- "roles": [
179
- "lib",
180
- "designed-lib"
181
- ]
158
+ paths: ['libraries/react-native/**'],
159
+ frameworkSets: ['react-native'],
160
+ roles: ['lib', 'designed-lib'],
182
161
  },
183
162
  {
184
- "paths": [
185
- "libraries/apis/internal/**"
186
- ],
187
- "frameworkSets": [
188
- "browser+node+react-native"
189
- ],
190
- "roles": [
191
- "api-lib"
192
- ]
163
+ paths: ['libraries/apis/internal/**'],
164
+ frameworkSets: ['browser+node+react-native'],
165
+ roles: ['api-lib'],
193
166
  },
194
167
  {
195
- "paths": [
196
- "libraries/apis/external-node/**"
197
- ],
198
- "frameworkSets": [
199
- "node"
200
- ],
201
- "roles": [
202
- "api-client"
203
- ]
168
+ paths: ['libraries/apis/external-node/**'],
169
+ frameworkSets: ['node'],
170
+ roles: ['api-client'],
204
171
  },
205
172
  {
206
- "paths": [
207
- "libraries/apis/external-rn-browser/**"
208
- ],
209
- "frameworkSets": [
210
- "browser+react-native"
211
- ],
212
- "roles": [
213
- "api-lib"
214
- ]
215
- }
216
- ]
217
- },
218
- "product-tags": {
219
- "mode": "RUN_EVERY_TIME",
220
- "roles": [
221
- "server",
222
- "client",
223
- "app"
173
+ paths: ['libraries/apis/external-rn-browser/**'],
174
+ frameworkSets: ['browser+react-native'],
175
+ roles: ['api-lib'],
176
+ },
224
177
  ],
225
- "productDependencies": [],
226
- "turnOffRuleUntilEpoch": 0,
227
- "turnOffRuleWhileOnBranch": null
228
- }
178
+ },
179
+ 'product-tags': {
180
+ mode: 'RUN_EVERY_TIME',
181
+ roles: ['server', 'client', 'app'],
182
+ productDependencies: [],
183
+ turnOffRuleUntilEpoch: 0,
184
+ turnOffRuleWhileOnBranch: null,
185
+ },
229
186
  };
230
187
  //# sourceMappingURL=rule-settings.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"rule-settings.js","sourceRoot":"","sources":["../../../../../packages/tooling/nx-webpieces-rules/src/rule-settings.ts"],"names":[],"mappings":";;;AAEA,oFAAoF;AACvE,QAAA,cAAc,GAA2C;IAClE,eAAe,EAAE,EAAE;IACnB,uBAAuB,EAAE,EAAE;IAC3B,sBAAsB,EAAE,EAAE;IAC1B,WAAW,EAAE,EAAE;IACf,UAAU,EAAE,EAAE;IACd,2BAA2B,EAAE,EAAE;IAC/B,iCAAiC,EAAE,EAAE;IACrC,iCAAiC,EAAE,EAAE;IACrC,sBAAsB,EAAE,EAAE;IAC1B,0BAA0B,EAAE,EAAE;IAC9B,sBAAsB,EAAE,EAAE;IAC1B,wBAAwB,EAAE,EAAE;IAC5B,uBAAuB,EAAE,EAAE;IAC3B,mBAAmB,EAAE,EAAE;IACvB,sBAAsB,EAAE,EAAE;IAC1B,cAAc,EAAE,EAAE;IAClB,kBAAkB,EAAE,EAAE;IACtB,cAAc,EAAE,EAAE;CACrB,CAAC;AAEF,yEAAyE;AAC5D,QAAA,gBAAgB,GAA2C;IACpE,eAAe,EAAE;QACb,MAAM,EAAE,gBAAgB;QACxB,UAAU,EAAE,GAAG;QACf,uBAAuB,EAAE,CAAC;QAC1B,0BAA0B,EAAE,IAAI;KACnC;IACD,uBAAuB,EAAE;QACrB,MAAM,EAAE,gBAAgB;QACxB,uBAAuB,EAAE,CAAC;QAC1B,0BAA0B,EAAE,IAAI;KACnC;IACD,sBAAsB,EAAE;QACpB,MAAM,EAAE,gBAAgB;QACxB,uBAAuB,EAAE,CAAC;QAC1B,0BAA0B,EAAE,IAAI;KACnC;IACD,WAAW,EAAE;QACT,MAAM,EAAE,gBAAgB;QACxB,uBAAuB,EAAE,CAAC;QAC1B,0BAA0B,EAAE,IAAI;KACnC;IACD,UAAU,EAAE;QACR,MAAM,EAAE,gBAAgB;QACxB,uBAAuB,EAAE,CAAC;QAC1B,0BA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AAE;oBACb,sBAAsB;iBACzB;gBACD,OAAO,EAAE;oBACL,SAAS;iBACZ;aACJ;SACJ;KACJ;IACD,cAAc,EAAE;QACZ,MAAM,EAAE,gBAAgB;QACxB,OAAO,EAAE;YACL,QAAQ;YACR,QAAQ;YACR,KAAK;SACR;QACD,qBAAqB,EAAE,EAAE;QACzB,uBAAuB,EAAE,CAAC;QAC1B,0BAA0B,EAAE,IAAI;KACnC;CACJ,CAAC","sourcesContent":["import { ConfigObject } from '@webpieces/rules-sdk';\n\n/** Optional knobs only. Required behaviour is always supplied by the repository. */\nexport const optionalTuning: Readonly<Record<string, ConfigObject>> = {\n \"wiring-format\": {},\n \"no-file-import-cycles\": {},\n \"runtime-architecture\": {},\n \"nx-wiring\": {},\n \"di-graph\": {},\n \"missing-design-annotation\": {},\n \"validate-architecture-unchanged\": {},\n \"validate-no-architecture-cycles\": {},\n \"validate-packagejson\": {},\n \"validate-versions-locked\": {},\n \"validate-eslint-sync\": {},\n \"no-root-union-api-type\": {},\n \"api-rules-for-openapi\": {},\n \"api-rules-for-mcp\": {},\n \"api-lib-dependencies\": {},\n \"api-lib-path\": {},\n \"framework-folder\": {},\n \"product-tags\": {}\n};\n\n/** Written for review by setup/sync; never used as a loader fallback. */\nexport const recommendedSeeds: Readonly<Record<string, ConfigObject>> = {\n \"wiring-format\": {\n \"mode\": \"RUN_EVERY_TIME\",\n \"maxLines\": 400,\n \"turnOffRuleUntilEpoch\": 0,\n \"turnOffRuleWhileOnBranch\": null\n },\n \"no-file-import-cycles\": {\n \"mode\": \"RUN_EVERY_TIME\",\n \"turnOffRuleUntilEpoch\": 0,\n \"turnOffRuleWhileOnBranch\": null\n },\n \"runtime-architecture\": {\n \"mode\": \"RUN_EVERY_TIME\",\n \"turnOffRuleUntilEpoch\": 0,\n \"turnOffRuleWhileOnBranch\": null\n },\n \"nx-wiring\": {\n \"mode\": \"RUN_EVERY_TIME\",\n \"turnOffRuleUntilEpoch\": 0,\n \"turnOffRuleWhileOnBranch\": null\n },\n \"di-graph\": {\n \"mode\": \"RUN_EVERY_TIME\",\n \"turnOffRuleUntilEpoch\": 0,\n \"turnOffRuleWhileOnBranch\": null\n },\n \"missing-design-annotation\": {\n \"mode\": \"RUN_EVERY_TIME\",\n \"turnOffRuleUntilEpoch\": 0,\n \"turnOffRuleWhileOnBranch\": null\n },\n \"validate-architecture-unchanged\": {\n \"mode\": \"RUN_EVERY_TIME\",\n \"turnOffRuleUntilEpoch\": 0,\n \"turnOffRuleWhileOnBranch\": null\n },\n \"validate-no-architecture-cycles\": {\n \"mode\": \"RUN_EVERY_TIME\",\n \"turnOffRuleUntilEpoch\": 0,\n \"turnOffRuleWhileOnBranch\": null\n },\n \"validate-packagejson\": {\n \"mode\": \"RUN_EVERY_TIME\",\n \"turnOffRuleUntilEpoch\": 0,\n \"turnOffRuleWhileOnBranch\": null\n },\n \"validate-versions-locked\": {\n \"mode\": \"RUN_EVERY_TIME\",\n \"turnOffRuleUntilEpoch\": 0,\n \"turnOffRuleWhileOnBranch\": null\n },\n \"validate-eslint-sync\": {\n \"mode\": \"RUN_EVERY_TIME\",\n \"turnOffRuleUntilEpoch\": 0,\n \"turnOffRuleWhileOnBranch\": null\n },\n \"no-root-union-api-type\": {\n \"mode\": \"RUN_EVERY_TIME\",\n \"turnOffRuleUntilEpoch\": 0,\n \"turnOffRuleWhileOnBranch\": null\n },\n \"api-rules-for-openapi\": {\n \"mode\": \"AFFECTED_PROJECT\",\n \"turnOffRuleUntilEpoch\": 0,\n \"turnOffRuleWhileOnBranch\": null\n },\n \"api-rules-for-mcp\": {\n \"mode\": \"AFFECTED_PROJECT\",\n \"turnOffRuleUntilEpoch\": 0,\n \"turnOffRuleWhileOnBranch\": null\n },\n \"api-lib-dependencies\": {\n \"mode\": \"RUN_EVERY_TIME\",\n \"turnOffRuleUntilEpoch\": 0,\n \"turnOffRuleWhileOnBranch\": null,\n \"apiLibPackages\": [\n \"@webpieces/core-util\",\n \"tslib\"\n ],\n \"apiClients\": [],\n \"allowedWorkspaceProjects\": []\n },\n \"api-lib-path\": {\n \"mode\": \"RUN_EVERY_TIME\",\n \"turnOffRuleUntilEpoch\": 0,\n \"turnOffRuleWhileOnBranch\": null,\n \"paths\": [\n \"libraries/apis/**\"\n ]\n },\n \"framework-folder\": {\n \"mode\": \"RUN_EVERY_TIME\",\n \"turnOffRuleUntilEpoch\": 0,\n \"turnOffRuleWhileOnBranch\": null,\n \"entries\": [\n {\n \"paths\": [\n \"libraries/angular/**\"\n ],\n \"frameworkSets\": [\n \"angular\"\n ],\n \"roles\": [\n \"lib\",\n \"designed-lib\"\n ]\n },\n {\n \"paths\": [\n \"libraries/node/**\"\n ],\n \"frameworkSets\": [\n \"node\",\n \"express\"\n ],\n \"roles\": [\n \"lib\",\n \"designed-lib\"\n ]\n },\n {\n \"paths\": [\n \"libraries/universal/**\"\n ],\n \"frameworkSets\": [\n \"browser+node+react-native\"\n ],\n \"roles\": [\n \"lib\",\n \"designed-lib\"\n ]\n },\n {\n \"paths\": [\n \"libraries/rn-browser/**\"\n ],\n \"frameworkSets\": [\n \"browser+react-native\"\n ],\n \"roles\": [\n \"lib\",\n \"designed-lib\"\n ]\n },\n {\n \"paths\": [\n \"libraries/react-native/**\"\n ],\n \"frameworkSets\": [\n \"react-native\"\n ],\n \"roles\": [\n \"lib\",\n \"designed-lib\"\n ]\n },\n {\n \"paths\": [\n \"libraries/apis/internal/**\"\n ],\n \"frameworkSets\": [\n \"browser+node+react-native\"\n ],\n \"roles\": [\n \"api-lib\"\n ]\n },\n {\n \"paths\": [\n \"libraries/apis/external-node/**\"\n ],\n \"frameworkSets\": [\n \"node\"\n ],\n \"roles\": [\n \"api-client\"\n ]\n },\n {\n \"paths\": [\n \"libraries/apis/external-rn-browser/**\"\n ],\n \"frameworkSets\": [\n \"browser+react-native\"\n ],\n \"roles\": [\n \"api-lib\"\n ]\n }\n ]\n },\n \"product-tags\": {\n \"mode\": \"RUN_EVERY_TIME\",\n \"roles\": [\n \"server\",\n \"client\",\n \"app\"\n ],\n \"productDependencies\": [],\n \"turnOffRuleUntilEpoch\": 0,\n \"turnOffRuleWhileOnBranch\": null\n }\n};\n"]}
1
+ {"version":3,"file":"rule-settings.js","sourceRoot":"","sources":["../../../../../packages/tooling/nx-webpieces-rules/src/rule-settings.ts"],"names":[],"mappings":";;;AAEA,oFAAoF;AACvE,QAAA,cAAc,GAA2C;IAClE,oBAAoB,EAAE,EAAE;IACxB,qBAAqB,EAAE,EAAE;IACzB,sBAAsB,EAAE,EAAE;IAC1B,eAAe,EAAE,EAAE;IACnB,uBAAuB,EAAE,EAAE;IAC3B,sBAAsB,EAAE,EAAE;IAC1B,WAAW,EAAE,EAAE;IACf,UAAU,EAAE,EAAE;IACd,2BAA2B,EAAE,EAAE;IAC/B,iCAAiC,EAAE,EAAE;IACrC,iCAAiC,EAAE,EAAE;IACrC,sBAAsB,EAAE,EAAE;IAC1B,0BAA0B,EAAE,EAAE;IAC9B,sBAAsB,EAAE,EAAE;IAC1B,wBAAwB,EAAE,EAAE;IAC5B,uBAAuB,EAAE,EAAE;IAC3B,mBAAmB,EAAE,EAAE;IACvB,sBAAsB,EAAE,EAAE;IAC1B,cAAc,EAAE,EAAE;IAClB,kBAAkB,EAAE,EAAE;IACtB,cAAc,EAAE,EAAE;CACrB,CAAC;AAEF,yEAAyE;AAC5D,QAAA,gBAAgB,GAA2C;IACpE,oBAAoB,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,qBAAqB,EAAE,CAAC,EAAE,wBAAwB,EAAE,IAAI,EAAE;IAC/F,qBAAqB,EAAE;QACnB,IAAI,EAAE,KAAK;QACX,YAAY,EAAE,EAAE;QAChB,qBAAqB,EAAE,CAAC;QACxB,wBAAwB,EAAE,IAAI;KACjC;IACD,sBAAsB,EAAE;QACpB,IAAI,EAAE,KAAK;QACX,aAAa,EAAE,EAAE;QACjB,SAAS,EAAE,EAAE;QACb,kBAAkB,EAAE,EAAE;QACtB,aAAa,EAAE,EAAE;QACjB,cAA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K,EAAE,CAAC,yBAAyB,CAAC;gBAClC,aAAa,EAAE,CAAC,sBAAsB,CAAC;gBACvC,KAAK,EAAE,CAAC,KAAK,EAAE,cAAc,CAAC;aACjC;YACD;gBACI,KAAK,EAAE,CAAC,2BAA2B,CAAC;gBACpC,aAAa,EAAE,CAAC,cAAc,CAAC;gBAC/B,KAAK,EAAE,CAAC,KAAK,EAAE,cAAc,CAAC;aACjC;YACD;gBACI,KAAK,EAAE,CAAC,4BAA4B,CAAC;gBACrC,aAAa,EAAE,CAAC,2BAA2B,CAAC;gBAC5C,KAAK,EAAE,CAAC,SAAS,CAAC;aACrB;YACD;gBACI,KAAK,EAAE,CAAC,iCAAiC,CAAC;gBAC1C,aAAa,EAAE,CAAC,MAAM,CAAC;gBACvB,KAAK,EAAE,CAAC,YAAY,CAAC;aACxB;YACD;gBACI,KAAK,EAAE,CAAC,uCAAuC,CAAC;gBAChD,aAAa,EAAE,CAAC,sBAAsB,CAAC;gBACvC,KAAK,EAAE,CAAC,SAAS,CAAC;aACrB;SACJ;KACJ;IACD,cAAc,EAAE;QACZ,IAAI,EAAE,gBAAgB;QACtB,KAAK,EAAE,CAAC,QAAQ,EAAE,QAAQ,EAAE,KAAK,CAAC;QAClC,mBAAmB,EAAE,EAAE;QACvB,qBAAqB,EAAE,CAAC;QACxB,wBAAwB,EAAE,IAAI;KACjC;CACJ,CAAC","sourcesContent":["import { ConfigObject } from '@webpieces/rules-sdk';\n\n/** Optional knobs only. Required behaviour is always supplied by the repository. */\nexport const optionalTuning: Readonly<Record<string, ConfigObject>> = {\n 'dependency-catalog': {},\n 'root-runtime-freeze': {},\n 'dependency-ownership': {},\n 'wiring-format': {},\n 'no-file-import-cycles': {},\n 'runtime-architecture': {},\n 'nx-wiring': {},\n 'di-graph': {},\n 'missing-design-annotation': {},\n 'validate-architecture-unchanged': {},\n 'validate-no-architecture-cycles': {},\n 'validate-packagejson': {},\n 'validate-versions-locked': {},\n 'validate-eslint-sync': {},\n 'no-root-union-api-type': {},\n 'api-rules-for-openapi': {},\n 'api-rules-for-mcp': {},\n 'api-lib-dependencies': {},\n 'api-lib-path': {},\n 'framework-folder': {},\n 'product-tags': {},\n};\n\n/** Written for review by setup/sync; never used as a loader fallback. */\nexport const recommendedSeeds: Readonly<Record<string, ConfigObject>> = {\n 'dependency-catalog': { mode: 'OFF', turnOffRuleUntilEpoch: 0, turnOffRuleWhileOnBranch: null },\n 'root-runtime-freeze': {\n mode: 'OFF',\n allowedNames: [],\n turnOffRuleUntilEpoch: 0,\n turnOffRuleWhileOnBranch: null,\n },\n 'dependency-ownership': {\n mode: 'OFF',\n rootToolPaths: [],\n testPaths: [],\n artifactProbePaths: [],\n toolProviders: [],\n dynamicImports: [],\n turnOffRuleUntilEpoch: 0,\n turnOffRuleWhileOnBranch: null,\n },\n 'wiring-format': {\n mode: 'RUN_EVERY_TIME',\n maxLines: 400,\n turnOffRuleUntilEpoch: 0,\n turnOffRuleWhileOnBranch: null,\n },\n 'no-file-import-cycles': {\n mode: 'RUN_EVERY_TIME',\n turnOffRuleUntilEpoch: 0,\n turnOffRuleWhileOnBranch: null,\n },\n 'runtime-architecture': {\n mode: 'RUN_EVERY_TIME',\n turnOffRuleUntilEpoch: 0,\n turnOffRuleWhileOnBranch: null,\n },\n 'nx-wiring': {\n mode: 'RUN_EVERY_TIME',\n turnOffRuleUntilEpoch: 0,\n turnOffRuleWhileOnBranch: null,\n },\n 'di-graph': {\n mode: 'RUN_EVERY_TIME',\n turnOffRuleUntilEpoch: 0,\n turnOffRuleWhileOnBranch: null,\n },\n 'missing-design-annotation': {\n mode: 'RUN_EVERY_TIME',\n turnOffRuleUntilEpoch: 0,\n turnOffRuleWhileOnBranch: null,\n },\n 'validate-architecture-unchanged': {\n mode: 'RUN_EVERY_TIME',\n turnOffRuleUntilEpoch: 0,\n turnOffRuleWhileOnBranch: null,\n },\n 'validate-no-architecture-cycles': {\n mode: 'RUN_EVERY_TIME',\n turnOffRuleUntilEpoch: 0,\n turnOffRuleWhileOnBranch: null,\n },\n 'validate-packagejson': {\n mode: 'RUN_EVERY_TIME',\n turnOffRuleUntilEpoch: 0,\n turnOffRuleWhileOnBranch: null,\n },\n 'validate-versions-locked': {\n mode: 'RUN_EVERY_TIME',\n turnOffRuleUntilEpoch: 0,\n turnOffRuleWhileOnBranch: null,\n },\n 'validate-eslint-sync': {\n mode: 'RUN_EVERY_TIME',\n turnOffRuleUntilEpoch: 0,\n turnOffRuleWhileOnBranch: null,\n },\n 'no-root-union-api-type': {\n mode: 'RUN_EVERY_TIME',\n turnOffRuleUntilEpoch: 0,\n turnOffRuleWhileOnBranch: null,\n },\n 'api-rules-for-openapi': {\n mode: 'AFFECTED_PROJECT',\n turnOffRuleUntilEpoch: 0,\n turnOffRuleWhileOnBranch: null,\n },\n 'api-rules-for-mcp': {\n mode: 'AFFECTED_PROJECT',\n turnOffRuleUntilEpoch: 0,\n turnOffRuleWhileOnBranch: null,\n },\n 'api-lib-dependencies': {\n mode: 'RUN_EVERY_TIME',\n turnOffRuleUntilEpoch: 0,\n turnOffRuleWhileOnBranch: null,\n apiLibPackages: ['@webpieces/core-util', 'tslib'],\n apiClients: [],\n allowedWorkspaceProjects: [],\n },\n 'api-lib-path': {\n mode: 'RUN_EVERY_TIME',\n turnOffRuleUntilEpoch: 0,\n turnOffRuleWhileOnBranch: null,\n paths: ['libraries/apis/**'],\n },\n 'framework-folder': {\n mode: 'RUN_EVERY_TIME',\n turnOffRuleUntilEpoch: 0,\n turnOffRuleWhileOnBranch: null,\n entries: [\n {\n paths: ['libraries/angular/**'],\n frameworkSets: ['angular'],\n roles: ['lib', 'designed-lib'],\n },\n {\n paths: ['libraries/node/**'],\n frameworkSets: ['node', 'express'],\n roles: ['lib', 'designed-lib'],\n },\n {\n paths: ['libraries/universal/**'],\n frameworkSets: ['browser+node+react-native'],\n roles: ['lib', 'designed-lib'],\n },\n {\n paths: ['libraries/rn-browser/**'],\n frameworkSets: ['browser+react-native'],\n roles: ['lib', 'designed-lib'],\n },\n {\n paths: ['libraries/react-native/**'],\n frameworkSets: ['react-native'],\n roles: ['lib', 'designed-lib'],\n },\n {\n paths: ['libraries/apis/internal/**'],\n frameworkSets: ['browser+node+react-native'],\n roles: ['api-lib'],\n },\n {\n paths: ['libraries/apis/external-node/**'],\n frameworkSets: ['node'],\n roles: ['api-client'],\n },\n {\n paths: ['libraries/apis/external-rn-browser/**'],\n frameworkSets: ['browser+react-native'],\n roles: ['api-lib'],\n },\n ],\n },\n 'product-tags': {\n mode: 'RUN_EVERY_TIME',\n roles: ['server', 'client', 'app'],\n productDependencies: [],\n turnOffRuleUntilEpoch: 0,\n turnOffRuleWhileOnBranch: null,\n },\n};\n"]}
@@ -34,6 +34,10 @@ class ValidationTargets {
34
34
  inputs: [
35
35
  '{workspaceRoot}/**/project.json',
36
36
  '{workspaceRoot}/**/package.json',
37
+ '{workspaceRoot}/pnpm-workspace.yaml',
38
+ '{workspaceRoot}/.webpieces-config/**/*.json',
39
+ '{workspaceRoot}/**/*.{ts,tsx,mts,cts,js,jsx,mjs,cjs}',
40
+ '{workspaceRoot}/**/tsconfig*.json',
37
41
  ...branch_identity_inputs_1.BRANCH_IDENTITY_INPUTS,
38
42
  ],
39
43
  metadata: {
@@ -80,7 +84,13 @@ class ValidationTargets {
80
84
  return {
81
85
  executor: '@webpieces/nx-webpieces-rules:validate-versions-locked',
82
86
  cache: true,
83
- inputs: ['{workspaceRoot}/**/package.json', ...branch_identity_inputs_1.BRANCH_IDENTITY_INPUTS],
87
+ inputs: [
88
+ '{workspaceRoot}/**/package.json',
89
+ '{workspaceRoot}/pnpm-workspace.yaml',
90
+ '{workspaceRoot}/.webpieces-config/**/*.json',
91
+ '{workspaceRoot}/webpieces.config.json',
92
+ ...branch_identity_inputs_1.BRANCH_IDENTITY_INPUTS,
93
+ ],
84
94
  metadata: {
85
95
  technologies: ['nx'],
86
96
  description: 'Validate package.json versions are locked (no semver ranges) and consistent across projects',
@@ -1 +1 @@
1
- {"version":3,"file":"validation-targets.js","sourceRoot":"","sources":["../../../../../packages/tooling/nx-webpieces-rules/src/validation-targets.ts"],"names":[],"mappings":";AAAA;;;;;;;;GAQG;;;AAIH,qEAAkE;AAElE,MAAa,iBAAiB;IAC1B,QAAQ;QACJ,OAAO;YACH,QAAQ,EAAE,+DAA+D;YACzE,KAAK,EAAE,IAAI;YACX,MAAM,EAAE;gBACJ,iCAAiC;gBACjC,gDAAgD;gBAChD,GAAG,+CAAsB;aAC5B;YACD,QAAQ,EAAE;gBACN,YAAY,EAAE,CAAC,IAAI,CAAC;gBACpB,WAAW,EAAE,gEAAgE;aAChF;SACJ,CAAC;IACN,CAAC;IAED,WAAW;QACP,OAAO;YACH,QAAQ,EAAE,oDAAoD;YAC9D,KAAK,EAAE,IAAI;YACX,MAAM,EAAE;gBACJ,iCAAiC;gBACjC,iCAAiC;gBACjC,GAAG,+CAAsB;aAC5B;YACD,QAAQ,EAAE;gBACN,YAAY,EAAE,CAAC,IAAI,CAAC;gBACpB,WAAW,EACP,0EAA0E;aACjF;SACJ,CAAC;IACN,CAAC;IAED,qGAAqG;IACrG,4FAA4F;IAC5F,gGAAgG;IAChG,aAAa;QACT,OAAO;YACH,QAAQ,EAAE,uDAAuD;YACjE,KAAK,EAAE,KAAK,EAAE,+EAA+E;YAC7F,MAAM,EAAE,CAAC,uCAAuC,CAAC;YACjD,QAAQ,EAAE;gBACN,YAAY,EAAE,CAAC,IAAI,CAAC;gBACpB,WAAW,EACP,oFAAoF;aAC3F;SACJ,CAAC;IACN,CAAC;IAED;;;;OAIG;IACH,IAAI;QACA,OAAO;YACH,QAAQ,EAAE,6CAA6C;YACvD,KAAK,EAAE,KAAK,EAAE,qCAAqC;YACnD,MAAM,EAAE;gBACJ,SAAS;gBACT,uCAAuC;gBACvC,EAAE,OAAO,EAAE,uDAAuD,EAAE;aACvE;YACD,QAAQ,EAAE;gBACN,YAAY,EAAE,CAAC,IAAI,CAAC;gBACpB,WAAW,EAAE,wDAAwD;aACxE;SACJ,CAA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AAE,oBAAoB,EAAE,CAAC,+BAA+B,CAAC,EAAE;aAC9D;YACD,QAAQ,EAAE;gBACN,YAAY,EAAE,CAAC,IAAI,CAAC;gBACpB,WAAW,EAAE,kEAAkE;aAClF;SACJ,CAAC;IACN,CAAC;CACJ;AAvJD,8CAuJC","sourcesContent":["/**\n * Workspace validation target factories\n *\n * The no-argument `architecture:*` validation target configurations, extracted\n * from plugin.ts (which is at its file-size limit). Each instance method returns\n * the nx TargetConfiguration that runs one @webpieces/nx-webpieces-rules validator.\n * Instantiate once and inject the instance where the targets are assembled (no\n * static methods — a static method can't be injected).\n */\n\nimport { TargetConfiguration } from '@nx/devkit';\n\nimport { BRANCH_IDENTITY_INPUTS } from './branch-identity-inputs';\n\nexport class ValidationTargets {\n noCycles(): TargetConfiguration {\n return {\n executor: '@webpieces/nx-webpieces-rules:validate-no-architecture-cycles',\n cache: true,\n inputs: [\n '{workspaceRoot}/**/project.json',\n '{workspaceRoot}/architecture/dependencies.json',\n ...BRANCH_IDENTITY_INPUTS,\n ],\n metadata: {\n technologies: ['nx'],\n description: 'Validate the architecture has no circular project dependencies',\n },\n };\n }\n\n packageJson(): TargetConfiguration {\n return {\n executor: '@webpieces/nx-webpieces-rules:validate-packagejson',\n cache: true,\n inputs: [\n '{workspaceRoot}/**/project.json',\n '{workspaceRoot}/**/package.json',\n ...BRANCH_IDENTITY_INPUTS,\n ],\n metadata: {\n technologies: ['nx'],\n description:\n 'Validate package.json dependencies match project.json build dependencies',\n },\n };\n }\n\n // Validate the pr-gate checklists[] array in isolation (docs exist, reviewer agents exist, subagents\n // blockMessage on BLOCK) so a bad checklist config fails as ITS OWN check rather than as an\n // unrelated validator's banner. Depends only on webpieces.config.json + the docs it references.\n checklistDocs(): TargetConfiguration {\n return {\n executor: '@webpieces/nx-webpieces-rules:validate-checklist-docs',\n cache: false, // depends on files on disk (docs paths) that project.json inputs can't express\n inputs: ['{workspaceRoot}/webpieces.config.json'],\n metadata: {\n technologies: ['nx'],\n description:\n 'Validate the pr-gate checklists[] block (docs exist, patterns compile, ids unique)',\n },\n };\n }\n\n /**\n * Combined validate-code target. Options come from webpieces.config.json at the\n * workspace root (loaded by the executor via @webpieces/rules-config — the same\n * source of truth as @webpieces/ai-hook-rules).\n */\n code(): TargetConfiguration {\n return {\n executor: '@webpieces/nx-webpieces-rules:validate-code',\n cache: false, // Don't cache - depends on git state\n inputs: [\n 'default',\n '{workspaceRoot}/webpieces.config.json',\n { runtime: 'node -e \"process.stdout.write(String(Math.random()))\"' },\n ],\n metadata: {\n technologies: ['nx'],\n description: 'Execute the client-declared build policy contributions',\n },\n };\n }\n\n versionsLocked(): TargetConfiguration {\n return {\n executor: '@webpieces/nx-webpieces-rules:validate-versions-locked',\n cache: true,\n inputs: ['{workspaceRoot}/**/package.json', ...BRANCH_IDENTITY_INPUTS],\n metadata: {\n technologies: ['nx'],\n description:\n 'Validate package.json versions are locked (no semver ranges) and consistent across projects',\n },\n };\n }\n\n tsInSrc(): TargetConfiguration {\n return {\n executor: '@webpieces/nx-webpieces-rules:validate-ts-in-src',\n cache: false,\n inputs: [\n 'default',\n '{workspaceRoot}/webpieces.config.json',\n { runtime: 'node -e \"process.stdout.write(String(Math.random()))\"' },\n ],\n metadata: {\n technologies: ['nx'],\n description: 'Validate all .ts files in projects are inside the src/ directory',\n },\n };\n }\n\n nxWiring(): TargetConfiguration {\n return {\n executor: '@webpieces/nx-webpieces-rules:validate-nx-wiring',\n cache: false, // Cheap; depends on nx.json + project graph, not worth caching\n inputs: ['{workspaceRoot}/nx.json'],\n metadata: {\n technologies: ['nx'],\n description:\n 'Validate the webpieces validators are wired into the build via nx.json dependsOn',\n },\n };\n }\n\n /**\n * Validate every server/client api-lib dependency is implemented or used. Scans\n * source (addRoutes = implements, createRpcClient/createPubSubClient = uses), so\n * it depends on all source + project.json, not just the committed graph.\n */\n apiRelations(): TargetConfiguration {\n return {\n executor: '@webpieces/nx-webpieces-rules:validate-api-relations',\n cache: false,\n inputs: ['default', '{workspaceRoot}/**/project.json'],\n metadata: {\n technologies: ['nx'],\n description:\n 'Validate every server/client api-lib dependency is implemented or used',\n },\n };\n }\n\n /** Validate role:api-lib ⇔ the project exports an @ApiPath/@Rpc/@PubSub contract, both directions. */\n apiLibTag(): TargetConfiguration {\n return {\n executor: '@webpieces/nx-webpieces-rules:validate-api-lib-tag',\n cache: true,\n inputs: [\n '{workspaceRoot}/**/*.ts',\n '{workspaceRoot}/**/project.json',\n '{workspaceRoot}/**/tsconfig*.json',\n '{workspaceRoot}/webpieces.config.json',\n '{workspaceRoot}/architecture/**/*.json',\n ...BRANCH_IDENTITY_INPUTS,\n { externalDependencies: ['@webpieces/nx-webpieces-rules'] },\n ],\n metadata: {\n technologies: ['nx'],\n description: 'Validate role:api-lib matches the code (exports an API contract)',\n },\n };\n }\n}\n"]}
1
+ {"version":3,"file":"validation-targets.js","sourceRoot":"","sources":["../../../../../packages/tooling/nx-webpieces-rules/src/validation-targets.ts"],"names":[],"mappings":";AAAA;;;;;;;;GAQG;;;AAIH,qEAAkE;AAElE,MAAa,iBAAiB;IAC1B,QAAQ;QACJ,OAAO;YACH,QAAQ,EAAE,+DAA+D;YACzE,KAAK,EAAE,IAAI;YACX,MAAM,EAAE;gBACJ,iCAAiC;gBACjC,gDAAgD;gBAChD,GAAG,+CAAsB;aAC5B;YACD,QAAQ,EAAE;gBACN,YAAY,EAAE,CAAC,IAAI,CAAC;gBACpB,WAAW,EAAE,gEAAgE;aAChF;SACJ,CAAC;IACN,CAAC;IAED,WAAW;QACP,OAAO;YACH,QAAQ,EAAE,oDAAoD;YAC9D,KAAK,EAAE,IAAI;YACX,MAAM,EAAE;gBACJ,iCAAiC;gBACjC,iCAAiC;gBACjC,qCAAqC;gBACrC,6CAA6C;gBAC7C,sDAAsD;gBACtD,mCAAmC;gBACnC,GAAG,+CAAsB;aAC5B;YACD,QAAQ,EAAE;gBACN,YAAY,EAAE,CAAC,IAAI,CAAC;gBACpB,WAAW,EACP,0EAA0E;aACjF;S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KAAK,EAAE,KAAK,EAAE,+DAA+D;YAC7E,MAAM,EAAE,CAAC,yBAAyB,CAAC;YACnC,QAAQ,EAAE;gBACN,YAAY,EAAE,CAAC,IAAI,CAAC;gBACpB,WAAW,EACP,kFAAkF;aACzF;SACJ,CAAC;IACN,CAAC;IAED;;;;OAIG;IACH,YAAY;QACR,OAAO;YACH,QAAQ,EAAE,sDAAsD;YAChE,KAAK,EAAE,KAAK;YACZ,MAAM,EAAE,CAAC,SAAS,EAAE,iCAAiC,CAAC;YACtD,QAAQ,EAAE;gBACN,YAAY,EAAE,CAAC,IAAI,CAAC;gBACpB,WAAW,EACP,wEAAwE;aAC/E;SACJ,CAAC;IACN,CAAC;IAED,sGAAsG;IACtG,SAAS;QACL,OAAO;YACH,QAAQ,EAAE,oDAAoD;YAC9D,KAAK,EAAE,IAAI;YACX,MAAM,EAAE;gBACJ,yBAAyB;gBACzB,iCAAiC;gBACjC,mCAAmC;gBACnC,uCAAuC;gBACvC,wCAAwC;gBACxC,GAAG,+CAAsB;gBACzB,EAAE,oBAAoB,EAAE,CAAC,+BAA+B,CAAC,EAAE;aAC9D;YACD,QAAQ,EAAE;gBACN,YAAY,EAAE,CAAC,IAAI,CAAC;gBACpB,WAAW,EAAE,kEAAkE;aAClF;SACJ,CAAC;IACN,CAAC;CACJ;AAjKD,8CAiKC","sourcesContent":["/**\n * Workspace validation target factories\n *\n * The no-argument `architecture:*` validation target configurations, extracted\n * from plugin.ts (which is at its file-size limit). Each instance method returns\n * the nx TargetConfiguration that runs one @webpieces/nx-webpieces-rules validator.\n * Instantiate once and inject the instance where the targets are assembled (no\n * static methods — a static method can't be injected).\n */\n\nimport { TargetConfiguration } from '@nx/devkit';\n\nimport { BRANCH_IDENTITY_INPUTS } from './branch-identity-inputs';\n\nexport class ValidationTargets {\n noCycles(): TargetConfiguration {\n return {\n executor: '@webpieces/nx-webpieces-rules:validate-no-architecture-cycles',\n cache: true,\n inputs: [\n '{workspaceRoot}/**/project.json',\n '{workspaceRoot}/architecture/dependencies.json',\n ...BRANCH_IDENTITY_INPUTS,\n ],\n metadata: {\n technologies: ['nx'],\n description: 'Validate the architecture has no circular project dependencies',\n },\n };\n }\n\n packageJson(): TargetConfiguration {\n return {\n executor: '@webpieces/nx-webpieces-rules:validate-packagejson',\n cache: true,\n inputs: [\n '{workspaceRoot}/**/project.json',\n '{workspaceRoot}/**/package.json',\n '{workspaceRoot}/pnpm-workspace.yaml',\n '{workspaceRoot}/.webpieces-config/**/*.json',\n '{workspaceRoot}/**/*.{ts,tsx,mts,cts,js,jsx,mjs,cjs}',\n '{workspaceRoot}/**/tsconfig*.json',\n ...BRANCH_IDENTITY_INPUTS,\n ],\n metadata: {\n technologies: ['nx'],\n description:\n 'Validate package.json dependencies match project.json build dependencies',\n },\n };\n }\n\n // Validate the pr-gate checklists[] array in isolation (docs exist, reviewer agents exist, subagents\n // blockMessage on BLOCK) so a bad checklist config fails as ITS OWN check rather than as an\n // unrelated validator's banner. Depends only on webpieces.config.json + the docs it references.\n checklistDocs(): TargetConfiguration {\n return {\n executor: '@webpieces/nx-webpieces-rules:validate-checklist-docs',\n cache: false, // depends on files on disk (docs paths) that project.json inputs can't express\n inputs: ['{workspaceRoot}/webpieces.config.json'],\n metadata: {\n technologies: ['nx'],\n description:\n 'Validate the pr-gate checklists[] block (docs exist, patterns compile, ids unique)',\n },\n };\n }\n\n /**\n * Combined validate-code target. Options come from webpieces.config.json at the\n * workspace root (loaded by the executor via @webpieces/rules-config — the same\n * source of truth as @webpieces/ai-hook-rules).\n */\n code(): TargetConfiguration {\n return {\n executor: '@webpieces/nx-webpieces-rules:validate-code',\n cache: false, // Don't cache - depends on git state\n inputs: [\n 'default',\n '{workspaceRoot}/webpieces.config.json',\n { runtime: 'node -e \"process.stdout.write(String(Math.random()))\"' },\n ],\n metadata: {\n technologies: ['nx'],\n description: 'Execute the client-declared build policy contributions',\n },\n };\n }\n\n versionsLocked(): TargetConfiguration {\n return {\n executor: '@webpieces/nx-webpieces-rules:validate-versions-locked',\n cache: true,\n inputs: [\n '{workspaceRoot}/**/package.json',\n '{workspaceRoot}/pnpm-workspace.yaml',\n '{workspaceRoot}/.webpieces-config/**/*.json',\n '{workspaceRoot}/webpieces.config.json',\n ...BRANCH_IDENTITY_INPUTS,\n ],\n metadata: {\n technologies: ['nx'],\n description:\n 'Validate package.json versions are locked (no semver ranges) and consistent across projects',\n },\n };\n }\n\n tsInSrc(): TargetConfiguration {\n return {\n executor: '@webpieces/nx-webpieces-rules:validate-ts-in-src',\n cache: false,\n inputs: [\n 'default',\n '{workspaceRoot}/webpieces.config.json',\n { runtime: 'node -e \"process.stdout.write(String(Math.random()))\"' },\n ],\n metadata: {\n technologies: ['nx'],\n description: 'Validate all .ts files in projects are inside the src/ directory',\n },\n };\n }\n\n nxWiring(): TargetConfiguration {\n return {\n executor: '@webpieces/nx-webpieces-rules:validate-nx-wiring',\n cache: false, // Cheap; depends on nx.json + project graph, not worth caching\n inputs: ['{workspaceRoot}/nx.json'],\n metadata: {\n technologies: ['nx'],\n description:\n 'Validate the webpieces validators are wired into the build via nx.json dependsOn',\n },\n };\n }\n\n /**\n * Validate every server/client api-lib dependency is implemented or used. Scans\n * source (addRoutes = implements, createRpcClient/createPubSubClient = uses), so\n * it depends on all source + project.json, not just the committed graph.\n */\n apiRelations(): TargetConfiguration {\n return {\n executor: '@webpieces/nx-webpieces-rules:validate-api-relations',\n cache: false,\n inputs: ['default', '{workspaceRoot}/**/project.json'],\n metadata: {\n technologies: ['nx'],\n description:\n 'Validate every server/client api-lib dependency is implemented or used',\n },\n };\n }\n\n /** Validate role:api-lib ⇔ the project exports an @ApiPath/@Rpc/@PubSub contract, both directions. */\n apiLibTag(): TargetConfiguration {\n return {\n executor: '@webpieces/nx-webpieces-rules:validate-api-lib-tag',\n cache: true,\n inputs: [\n '{workspaceRoot}/**/*.ts',\n '{workspaceRoot}/**/project.json',\n '{workspaceRoot}/**/tsconfig*.json',\n '{workspaceRoot}/webpieces.config.json',\n '{workspaceRoot}/architecture/**/*.json',\n ...BRANCH_IDENTITY_INPUTS,\n { externalDependencies: ['@webpieces/nx-webpieces-rules'] },\n ],\n metadata: {\n technologies: ['nx'],\n description: 'Validate role:api-lib matches the code (exports an API contract)',\n },\n };\n }\n}\n"]}