@webpieces/nx-webpieces-rules 0.4.1010 → 0.4.1012

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.
Files changed (32) hide show
  1. package/README.md +32 -0
  2. package/package.json +9 -7
  3. package/src/configs/dependency-policy-config.d.ts +20 -0
  4. package/src/configs/dependency-policy-config.js +36 -0
  5. package/src/configs/dependency-policy-config.js.map +1 -0
  6. package/src/executors/validate-versions-locked/executor.d.ts +2 -1
  7. package/src/executors/validate-versions-locked/executor.js +42 -253
  8. package/src/executors/validate-versions-locked/executor.js.map +1 -1
  9. package/src/lib/api-usage/api-doc-rules-scan.js +1 -1
  10. package/src/lib/api-usage/api-doc-rules-scan.js.map +1 -1
  11. package/src/lib/api-usage/api-doc-rules-verdicts.js +13 -10
  12. package/src/lib/api-usage/api-doc-rules-verdicts.js.map +1 -1
  13. package/src/lib/dependency-imports.d.ts +14 -0
  14. package/src/lib/dependency-imports.js +113 -0
  15. package/src/lib/dependency-imports.js.map +1 -0
  16. package/src/lib/dependency-policies.d.ts +35 -0
  17. package/src/lib/dependency-policies.js +271 -0
  18. package/src/lib/dependency-policies.js.map +1 -0
  19. package/src/lib/dependency-workspace.d.ts +33 -0
  20. package/src/lib/dependency-workspace.js +109 -0
  21. package/src/lib/dependency-workspace.js.map +1 -0
  22. package/src/native-actions.d.ts +1 -0
  23. package/src/native-actions.js +4 -0
  24. package/src/native-actions.js.map +1 -1
  25. package/src/nx-policy-registry.js +4 -0
  26. package/src/nx-policy-registry.js.map +1 -1
  27. package/src/rule-help.js +5 -2
  28. package/src/rule-help.js.map +1 -1
  29. package/src/rule-settings.js +161 -204
  30. package/src/rule-settings.js.map +1 -1
  31. package/src/validation-targets.js +11 -1
  32. package/src/validation-targets.js.map +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"nx-policy-registry.js","sourceRoot":"","sources":["../../../../../packages/tooling/nx-webpieces-rules/src/nx-policy-registry.ts"],"names":[],"mappings":";;;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mBAAmB,CAAC,CAChC,EACD,OAAO,CAAC,aAAa,CACxB;IACD,IAAI,QAAQ,CACR,IAAI,+BAAmB,CACnB,sBAAsB,EACtB,4CAAwB,CAAC,MAAM,EAC/B,mCAAuB,EACvB,8BAAc,CAAC,sBAAsB,CAAC,EACtC,gCAAgB,CAAC,sBAAsB,CAAC,EACxC,OAAO,EACP,oBAAQ,CAAC,sBAAsB,CAAC,CACnC,EACD,OAAO,CAAC,aAAa,CACxB;IACD,IAAI,QAAQ,CACR,IAAI,+BAAmB,CACnB,cAAc,EACd,oCAAgB,CAAC,MAAM,EACvB,mCAAuB,EACvB,8BAAc,CAAC,cAAc,CAAC,EAC9B,gCAAgB,CAAC,cAAc,CAAC,EAChC,OAAO,EACP,oBAAQ,CAAC,cAAc,CAAC,CAC3B,EACD,OAAO,CAAC,aAAa,CACxB;IACD,IAAI,QAAQ,CACR,IAAI,+BAAmB,CACnB,kBAAkB,EAClB,yCAAqB,CAAC,MAAM,EAC5B,mCAAuB,EACvB,8BAAc,CAAC,kBAAkB,CAAC,EAClC,gCAAgB,CAAC,kBAAkB,CAAC,EACpC,OAAO,EACP,oBAAQ,CAAC,kBAAkB,CAAC,CAC/B,EACD,OAAO,CAAC,aAAa,CACxB;IACD,IAAI,QAAQ,CACR,IAAI,+BAAmB,CACnB,cAAc,EACd,qCAAiB,CAAC,MAAM,EACxB,mCAAuB,EACvB,8BAAc,CAAC,cAAc,CAAC,EAC9B,gCAAgB,CAAC,cAAc,CAAC,EAChC,OAAO,EACP,oBAAQ,CAAC,cAAc,CAAC,CAC3B,EACD,OAAO,CAAC,aAAa,CACxB;CACJ,CAAC","sourcesContent":["import { ruleHelp } from './rule-help';\nimport { optionalTuning, recommendedSeeds } from './rule-settings';\nimport { OwnedRuleDefinition, RULE_SCHEMA_API_VERSION } from '@webpieces/rules-sdk';\nimport {\n NoFileImportCyclesConfig,\n RuntimeArchitectureConfig,\n NxWiringConfig,\n DiGraphConfig,\n MissingDesignAnnotationConfig,\n ValidateArchitectureUnchangedConfig,\n ValidateNoArchitectureCyclesConfig,\n ValidatePackageJsonConfig,\n ValidateVersionsLockedConfig,\n ValidateEslintSyncConfig,\n} from './configs/rule-configs';\nimport { NoRootUnionApiTypeConfig } from './configs/no-root-union-config';\nimport { ApiRulesForOpenApiConfig, ApiRulesForMcpConfig } from './configs/api-doc-rules-config';\nimport {\n ApiLibDependenciesConfig,\n ApiLibPathConfig,\n FrameworkFolderConfig,\n ProductTagsConfig,\n} from './configs/tag-truth-configs';\nimport { NativeActions, NativeAction } from './native-actions';\nimport { WiringFormatConfig } from './configs/wiring-format-config';\n\nexport class NxPolicy {\n constructor(\n readonly definition: OwnedRuleDefinition,\n readonly action: NativeAction,\n ) {}\n}\n\nconst actions = new NativeActions();\nexport const NX_POLICIES: readonly NxPolicy[] = [\n new NxPolicy(\n new OwnedRuleDefinition('wiring-format', WiringFormatConfig.SCHEMA, RULE_SCHEMA_API_VERSION,\n optionalTuning['wiring-format'], recommendedSeeds['wiring-format'], 'rules', ruleHelp['wiring-format']),\n actions.wiringFormat,\n ),\n new NxPolicy(\n new OwnedRuleDefinition(\n 'no-file-import-cycles',\n NoFileImportCyclesConfig.SCHEMA,\n RULE_SCHEMA_API_VERSION,\n optionalTuning['no-file-import-cycles'],\n recommendedSeeds['no-file-import-cycles'],\n 'rules',\n ruleHelp['no-file-import-cycles'],\n ),\n actions.fileCycles,\n ),\n new NxPolicy(\n new OwnedRuleDefinition(\n 'runtime-architecture',\n RuntimeArchitectureConfig.SCHEMA,\n RULE_SCHEMA_API_VERSION,\n optionalTuning['runtime-architecture'],\n recommendedSeeds['runtime-architecture'],\n 'rules',\n ruleHelp['runtime-architecture'],\n ),\n actions.runtime,\n ),\n new NxPolicy(\n new OwnedRuleDefinition(\n 'nx-wiring',\n NxWiringConfig.SCHEMA,\n RULE_SCHEMA_API_VERSION,\n optionalTuning['nx-wiring'],\n recommendedSeeds['nx-wiring'],\n 'rules',\n ruleHelp['nx-wiring'],\n ),\n actions.wiring,\n ),\n new NxPolicy(\n new OwnedRuleDefinition(\n 'di-graph',\n DiGraphConfig.SCHEMA,\n RULE_SCHEMA_API_VERSION,\n optionalTuning['di-graph'],\n recommendedSeeds['di-graph'],\n 'rules',\n ruleHelp['di-graph'],\n ),\n actions.design,\n ),\n new NxPolicy(\n new OwnedRuleDefinition(\n 'missing-design-annotation',\n MissingDesignAnnotationConfig.SCHEMA,\n RULE_SCHEMA_API_VERSION,\n optionalTuning['missing-design-annotation'],\n recommendedSeeds['missing-design-annotation'],\n 'rules',\n ruleHelp['missing-design-annotation'],\n ),\n actions.design,\n ),\n new NxPolicy(\n new OwnedRuleDefinition(\n 'validate-architecture-unchanged',\n ValidateArchitectureUnchangedConfig.SCHEMA,\n RULE_SCHEMA_API_VERSION,\n optionalTuning['validate-architecture-unchanged'],\n recommendedSeeds['validate-architecture-unchanged'],\n 'rules',\n ruleHelp['validate-architecture-unchanged'],\n ),\n actions.architecture,\n ),\n new NxPolicy(\n new OwnedRuleDefinition(\n 'validate-no-architecture-cycles',\n ValidateNoArchitectureCyclesConfig.SCHEMA,\n RULE_SCHEMA_API_VERSION,\n optionalTuning['validate-no-architecture-cycles'],\n recommendedSeeds['validate-no-architecture-cycles'],\n 'rules',\n ruleHelp['validate-no-architecture-cycles'],\n ),\n actions.cycles,\n ),\n new NxPolicy(\n new OwnedRuleDefinition(\n 'validate-packagejson',\n ValidatePackageJsonConfig.SCHEMA,\n RULE_SCHEMA_API_VERSION,\n optionalTuning['validate-packagejson'],\n recommendedSeeds['validate-packagejson'],\n 'rules',\n ruleHelp['validate-packagejson'],\n ),\n actions.packageJson,\n ),\n new NxPolicy(\n new OwnedRuleDefinition(\n 'validate-versions-locked',\n ValidateVersionsLockedConfig.SCHEMA,\n RULE_SCHEMA_API_VERSION,\n optionalTuning['validate-versions-locked'],\n recommendedSeeds['validate-versions-locked'],\n 'rules',\n ruleHelp['validate-versions-locked'],\n ),\n actions.versions,\n ),\n new NxPolicy(\n new OwnedRuleDefinition(\n 'validate-eslint-sync',\n ValidateEslintSyncConfig.SCHEMA,\n RULE_SCHEMA_API_VERSION,\n optionalTuning['validate-eslint-sync'],\n recommendedSeeds['validate-eslint-sync'],\n 'rules',\n ruleHelp['validate-eslint-sync'],\n ),\n actions.eslintSync,\n ),\n new NxPolicy(\n new OwnedRuleDefinition(\n 'no-root-union-api-type',\n NoRootUnionApiTypeConfig.SCHEMA,\n RULE_SCHEMA_API_VERSION,\n optionalTuning['no-root-union-api-type'],\n recommendedSeeds['no-root-union-api-type'],\n 'rules',\n ruleHelp['no-root-union-api-type'],\n ),\n actions.graphPolicies,\n ),\n new NxPolicy(\n new OwnedRuleDefinition(\n 'api-rules-for-openapi',\n ApiRulesForOpenApiConfig.SCHEMA,\n RULE_SCHEMA_API_VERSION,\n optionalTuning['api-rules-for-openapi'],\n recommendedSeeds['api-rules-for-openapi'],\n 'rules',\n ruleHelp['api-rules-for-openapi'],\n ),\n actions.graphPolicies,\n ),\n new NxPolicy(\n new OwnedRuleDefinition(\n 'api-rules-for-mcp',\n ApiRulesForMcpConfig.SCHEMA,\n RULE_SCHEMA_API_VERSION,\n optionalTuning['api-rules-for-mcp'],\n recommendedSeeds['api-rules-for-mcp'],\n 'rules',\n ruleHelp['api-rules-for-mcp'],\n ),\n actions.graphPolicies,\n ),\n new NxPolicy(\n new OwnedRuleDefinition(\n 'api-lib-dependencies',\n ApiLibDependenciesConfig.SCHEMA,\n RULE_SCHEMA_API_VERSION,\n optionalTuning['api-lib-dependencies'],\n recommendedSeeds['api-lib-dependencies'],\n 'rules',\n ruleHelp['api-lib-dependencies'],\n ),\n actions.graphPolicies,\n ),\n new NxPolicy(\n new OwnedRuleDefinition(\n 'api-lib-path',\n ApiLibPathConfig.SCHEMA,\n RULE_SCHEMA_API_VERSION,\n optionalTuning['api-lib-path'],\n recommendedSeeds['api-lib-path'],\n 'rules',\n ruleHelp['api-lib-path'],\n ),\n actions.graphPolicies,\n ),\n new NxPolicy(\n new OwnedRuleDefinition(\n 'framework-folder',\n FrameworkFolderConfig.SCHEMA,\n RULE_SCHEMA_API_VERSION,\n optionalTuning['framework-folder'],\n recommendedSeeds['framework-folder'],\n 'rules',\n ruleHelp['framework-folder'],\n ),\n actions.graphPolicies,\n ),\n new NxPolicy(\n new OwnedRuleDefinition(\n 'product-tags',\n ProductTagsConfig.SCHEMA,\n RULE_SCHEMA_API_VERSION,\n optionalTuning['product-tags'],\n recommendedSeeds['product-tags'],\n 'rules',\n ruleHelp['product-tags'],\n ),\n actions.graphPolicies,\n ),\n];\n"]}
1
+ {"version":3,"file":"nx-policy-registry.js","sourceRoot":"","sources":["../../../../../packages/tooling/nx-webpieces-rules/src/nx-policy-registry.ts"],"names":[],"mappings":";;;AAAA,2CAAuC;AACvC,mDAAmE;AACnE,oDAAoF;AACpF,yDAWgC;AAChC,yEAA0E;AAC1E,yEAAgG;AAChG,mEAKqC;AACrC,qDAA+D;AAC/D,yEAAoE;AACpE,iFAI4C;AAE5C,MAAa,QAAQ;IAEJ;IACA;IAFb,YACa,UAA+B,EAC/B,MAAoB;QADpB,eAAU,GAAV,UAAU,CAAqB;QAC/B,WAAM,GAAN,MAAM,CAAc;IAC9B,CAAC;CACP;AALD,4BAKC;AAED,MAAM,OAAO,GAAG,IAAI,8BAAa,EAAE,CAAC;AACvB,QAAA,WAAW,GAAwB;IAC5C,IAAI,QAAQ,CACR,IAAI,+BAAmB,CACnB,oBAAoB,EACpB,kDAAuB,CAAC,MAAM,EAC9B,mCAAuB,EACvB,8BAAc,CAAC,oBAAoB,CAAC,EACpC,gCAAgB,CAAC,oBAAoB,CAAC,EACtC,OAAO,EACP,oBAAQ,CAAC,oBAAoB,CAAC,CACjC,EACD,OAAO,CAAC,YAAY,CACvB;IACD,IAAI,QAAQ,CACR,IAAI,+BAAmB,CACnB,qBAAqB,EACrB,kDAAuB,CAAC,MAAM,EAC9B,mCAAuB,EACvB,8BAAc,CAAC,qBAAqB,CAAC,EACrC,gCAAgB,CAAC,qBAAqB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AAa,CACxB;IACD,IAAI,QAAQ,CACR,IAAI,+BAAmB,CACnB,sBAAsB,EACtB,4CAAwB,CAAC,MAAM,EAC/B,mCAAuB,EACvB,8BAAc,CAAC,sBAAsB,CAAC,EACtC,gCAAgB,CAAC,sBAAsB,CAAC,EACxC,OAAO,EACP,oBAAQ,CAAC,sBAAsB,CAAC,CACnC,EACD,OAAO,CAAC,aAAa,CACxB;IACD,IAAI,QAAQ,CACR,IAAI,+BAAmB,CACnB,cAAc,EACd,oCAAgB,CAAC,MAAM,EACvB,mCAAuB,EACvB,8BAAc,CAAC,cAAc,CAAC,EAC9B,gCAAgB,CAAC,cAAc,CAAC,EAChC,OAAO,EACP,oBAAQ,CAAC,cAAc,CAAC,CAC3B,EACD,OAAO,CAAC,aAAa,CACxB;IACD,IAAI,QAAQ,CACR,IAAI,+BAAmB,CACnB,kBAAkB,EAClB,yCAAqB,CAAC,MAAM,EAC5B,mCAAuB,EACvB,8BAAc,CAAC,kBAAkB,CAAC,EAClC,gCAAgB,CAAC,kBAAkB,CAAC,EACpC,OAAO,EACP,oBAAQ,CAAC,kBAAkB,CAAC,CAC/B,EACD,OAAO,CAAC,aAAa,CACxB;IACD,IAAI,QAAQ,CACR,IAAI,+BAAmB,CACnB,cAAc,EACd,qCAAiB,CAAC,MAAM,EACxB,mCAAuB,EACvB,8BAAc,CAAC,cAAc,CAAC,EAC9B,gCAAgB,CAAC,cAAc,CAAC,EAChC,OAAO,EACP,oBAAQ,CAAC,cAAc,CAAC,CAC3B,EACD,OAAO,CAAC,aAAa,CACxB;CACJ,CAAC","sourcesContent":["import { ruleHelp } from './rule-help';\nimport { optionalTuning, recommendedSeeds } from './rule-settings';\nimport { OwnedRuleDefinition, RULE_SCHEMA_API_VERSION } from '@webpieces/rules-sdk';\nimport {\n NoFileImportCyclesConfig,\n RuntimeArchitectureConfig,\n NxWiringConfig,\n DiGraphConfig,\n MissingDesignAnnotationConfig,\n ValidateArchitectureUnchangedConfig,\n ValidateNoArchitectureCyclesConfig,\n ValidatePackageJsonConfig,\n ValidateVersionsLockedConfig,\n ValidateEslintSyncConfig,\n} from './configs/rule-configs';\nimport { NoRootUnionApiTypeConfig } from './configs/no-root-union-config';\nimport { ApiRulesForOpenApiConfig, ApiRulesForMcpConfig } from './configs/api-doc-rules-config';\nimport {\n ApiLibDependenciesConfig,\n ApiLibPathConfig,\n FrameworkFolderConfig,\n ProductTagsConfig,\n} from './configs/tag-truth-configs';\nimport { NativeActions, NativeAction } from './native-actions';\nimport { WiringFormatConfig } from './configs/wiring-format-config';\nimport {\n DependencyCatalogConfig,\n RootRuntimeFreezeConfig,\n DependencyOwnershipConfig,\n} from './configs/dependency-policy-config';\n\nexport class NxPolicy {\n constructor(\n readonly definition: OwnedRuleDefinition,\n readonly action: NativeAction,\n ) {}\n}\n\nconst actions = new NativeActions();\nexport const NX_POLICIES: readonly NxPolicy[] = [\n new NxPolicy(\n new OwnedRuleDefinition(\n 'dependency-catalog',\n DependencyCatalogConfig.SCHEMA,\n RULE_SCHEMA_API_VERSION,\n optionalTuning['dependency-catalog'],\n recommendedSeeds['dependency-catalog'],\n 'rules',\n ruleHelp['dependency-catalog'],\n ),\n actions.dependencies,\n ),\n new NxPolicy(\n new OwnedRuleDefinition(\n 'root-runtime-freeze',\n RootRuntimeFreezeConfig.SCHEMA,\n RULE_SCHEMA_API_VERSION,\n optionalTuning['root-runtime-freeze'],\n recommendedSeeds['root-runtime-freeze'],\n 'rules',\n ruleHelp['root-runtime-freeze'],\n ),\n actions.dependencies,\n ),\n new NxPolicy(\n new OwnedRuleDefinition(\n 'dependency-ownership',\n DependencyOwnershipConfig.SCHEMA,\n RULE_SCHEMA_API_VERSION,\n optionalTuning['dependency-ownership'],\n recommendedSeeds['dependency-ownership'],\n 'rules',\n ruleHelp['dependency-ownership'],\n ),\n actions.dependencies,\n ),\n new NxPolicy(\n new OwnedRuleDefinition(\n 'wiring-format',\n WiringFormatConfig.SCHEMA,\n RULE_SCHEMA_API_VERSION,\n optionalTuning['wiring-format'],\n recommendedSeeds['wiring-format'],\n 'rules',\n ruleHelp['wiring-format'],\n ),\n actions.wiringFormat,\n ),\n new NxPolicy(\n new OwnedRuleDefinition(\n 'no-file-import-cycles',\n NoFileImportCyclesConfig.SCHEMA,\n RULE_SCHEMA_API_VERSION,\n optionalTuning['no-file-import-cycles'],\n recommendedSeeds['no-file-import-cycles'],\n 'rules',\n ruleHelp['no-file-import-cycles'],\n ),\n actions.fileCycles,\n ),\n new NxPolicy(\n new OwnedRuleDefinition(\n 'runtime-architecture',\n RuntimeArchitectureConfig.SCHEMA,\n RULE_SCHEMA_API_VERSION,\n optionalTuning['runtime-architecture'],\n recommendedSeeds['runtime-architecture'],\n 'rules',\n ruleHelp['runtime-architecture'],\n ),\n actions.runtime,\n ),\n new NxPolicy(\n new OwnedRuleDefinition(\n 'nx-wiring',\n NxWiringConfig.SCHEMA,\n RULE_SCHEMA_API_VERSION,\n optionalTuning['nx-wiring'],\n recommendedSeeds['nx-wiring'],\n 'rules',\n ruleHelp['nx-wiring'],\n ),\n actions.wiring,\n ),\n new NxPolicy(\n new OwnedRuleDefinition(\n 'di-graph',\n DiGraphConfig.SCHEMA,\n RULE_SCHEMA_API_VERSION,\n optionalTuning['di-graph'],\n recommendedSeeds['di-graph'],\n 'rules',\n ruleHelp['di-graph'],\n ),\n actions.design,\n ),\n new NxPolicy(\n new OwnedRuleDefinition(\n 'missing-design-annotation',\n MissingDesignAnnotationConfig.SCHEMA,\n RULE_SCHEMA_API_VERSION,\n optionalTuning['missing-design-annotation'],\n recommendedSeeds['missing-design-annotation'],\n 'rules',\n ruleHelp['missing-design-annotation'],\n ),\n actions.design,\n ),\n new NxPolicy(\n new OwnedRuleDefinition(\n 'validate-architecture-unchanged',\n ValidateArchitectureUnchangedConfig.SCHEMA,\n RULE_SCHEMA_API_VERSION,\n optionalTuning['validate-architecture-unchanged'],\n recommendedSeeds['validate-architecture-unchanged'],\n 'rules',\n ruleHelp['validate-architecture-unchanged'],\n ),\n actions.architecture,\n ),\n new NxPolicy(\n new OwnedRuleDefinition(\n 'validate-no-architecture-cycles',\n ValidateNoArchitectureCyclesConfig.SCHEMA,\n RULE_SCHEMA_API_VERSION,\n optionalTuning['validate-no-architecture-cycles'],\n recommendedSeeds['validate-no-architecture-cycles'],\n 'rules',\n ruleHelp['validate-no-architecture-cycles'],\n ),\n actions.cycles,\n ),\n new NxPolicy(\n new OwnedRuleDefinition(\n 'validate-packagejson',\n ValidatePackageJsonConfig.SCHEMA,\n RULE_SCHEMA_API_VERSION,\n optionalTuning['validate-packagejson'],\n recommendedSeeds['validate-packagejson'],\n 'rules',\n ruleHelp['validate-packagejson'],\n ),\n actions.packageJson,\n ),\n new NxPolicy(\n new OwnedRuleDefinition(\n 'validate-versions-locked',\n ValidateVersionsLockedConfig.SCHEMA,\n RULE_SCHEMA_API_VERSION,\n optionalTuning['validate-versions-locked'],\n recommendedSeeds['validate-versions-locked'],\n 'rules',\n ruleHelp['validate-versions-locked'],\n ),\n actions.versions,\n ),\n new NxPolicy(\n new OwnedRuleDefinition(\n 'validate-eslint-sync',\n ValidateEslintSyncConfig.SCHEMA,\n RULE_SCHEMA_API_VERSION,\n optionalTuning['validate-eslint-sync'],\n recommendedSeeds['validate-eslint-sync'],\n 'rules',\n ruleHelp['validate-eslint-sync'],\n ),\n actions.eslintSync,\n ),\n new NxPolicy(\n new OwnedRuleDefinition(\n 'no-root-union-api-type',\n NoRootUnionApiTypeConfig.SCHEMA,\n RULE_SCHEMA_API_VERSION,\n optionalTuning['no-root-union-api-type'],\n recommendedSeeds['no-root-union-api-type'],\n 'rules',\n ruleHelp['no-root-union-api-type'],\n ),\n actions.graphPolicies,\n ),\n new NxPolicy(\n new OwnedRuleDefinition(\n 'api-rules-for-openapi',\n ApiRulesForOpenApiConfig.SCHEMA,\n RULE_SCHEMA_API_VERSION,\n optionalTuning['api-rules-for-openapi'],\n recommendedSeeds['api-rules-for-openapi'],\n 'rules',\n ruleHelp['api-rules-for-openapi'],\n ),\n actions.graphPolicies,\n ),\n new NxPolicy(\n new OwnedRuleDefinition(\n 'api-rules-for-mcp',\n ApiRulesForMcpConfig.SCHEMA,\n RULE_SCHEMA_API_VERSION,\n optionalTuning['api-rules-for-mcp'],\n recommendedSeeds['api-rules-for-mcp'],\n 'rules',\n ruleHelp['api-rules-for-mcp'],\n ),\n actions.graphPolicies,\n ),\n new NxPolicy(\n new OwnedRuleDefinition(\n 'api-lib-dependencies',\n ApiLibDependenciesConfig.SCHEMA,\n RULE_SCHEMA_API_VERSION,\n optionalTuning['api-lib-dependencies'],\n recommendedSeeds['api-lib-dependencies'],\n 'rules',\n ruleHelp['api-lib-dependencies'],\n ),\n actions.graphPolicies,\n ),\n new NxPolicy(\n new OwnedRuleDefinition(\n 'api-lib-path',\n ApiLibPathConfig.SCHEMA,\n RULE_SCHEMA_API_VERSION,\n optionalTuning['api-lib-path'],\n recommendedSeeds['api-lib-path'],\n 'rules',\n ruleHelp['api-lib-path'],\n ),\n actions.graphPolicies,\n ),\n new NxPolicy(\n new OwnedRuleDefinition(\n 'framework-folder',\n FrameworkFolderConfig.SCHEMA,\n RULE_SCHEMA_API_VERSION,\n optionalTuning['framework-folder'],\n recommendedSeeds['framework-folder'],\n 'rules',\n ruleHelp['framework-folder'],\n ),\n actions.graphPolicies,\n ),\n new NxPolicy(\n new OwnedRuleDefinition(\n 'product-tags',\n ProductTagsConfig.SCHEMA,\n RULE_SCHEMA_API_VERSION,\n optionalTuning['product-tags'],\n recommendedSeeds['product-tags'],\n 'rules',\n ruleHelp['product-tags'],\n ),\n actions.graphPolicies,\n ),\n];\n"]}
package/src/rule-help.js CHANGED
@@ -4,13 +4,16 @@ exports.ruleHelp = void 0;
4
4
  const rules_sdk_1 = require("@webpieces/rules-sdk");
5
5
  /** Owner-authored guidance consumed by the registry catalog. */
6
6
  exports.ruleHelp = {
7
- 'wiring-format': new rules_sdk_1.RuleHelp('Check every canonical wiring.ts: its Wiring/AppWiring class plus the BindModule/RouteModule classes it selects, with their actual registrations.', 'Declare each owner\'s Wiring/AppWiring class beside its named BindModule/RouteModule classes and their registrations (binder.createRpcClientAndBind, binder.createPubSubClientAndBind, binder.bindExternal, binder.bind chains, browser binder.provide recipes, addRoutes, addFilter) in its src/wiring.ts; select them with literal getBindModules/getRouteModules/getWirings return arrays. An AppWiring may also select a BindModule declared in a library owner\'s canonical src/wiring.ts, and only an AppWiring selects library Wirings. Keep constructors as prepared-input storage, keep configuration building, environment discovery and initializer/factory bodies in imported implementations, use direct service strings and explicit WiringPolicy declarations. Set maxLines explicitly (agreed upstream limit: 400).'),
7
+ 'dependency-catalog': new rules_sdk_1.RuleHelp('Centralize directly authored external versions in the pnpm catalogue.', 'Declare each external dependency with catalog: and an exact version in pnpm-workspace.yaml. Internal owners use workspace:*. This policy never overrides third-party transitive dependencies.'),
8
+ 'root-runtime-freeze': new rules_sdk_1.RuleHelp('Prevent growth of root runtime dependency names.', 'Keep the reviewed allowedNames baseline for root dependencies, optionalDependencies and peerDependencies. New build/admin tools belong in root devDependencies; runtime imports belong to their module.'),
9
+ 'dependency-ownership': new rules_sdk_1.RuleHelp('Require declarations at the importing source owner.', 'Declare emitted production imports in owner dependencies, optionalDependencies or peers. Test/build/erased-type imports may use owner devDependencies. Explicitly classify root tool files and artifact probes; toolProviders records exact umbrella-provided imports. Review dynamicImports as file::normalized expression::package-list mappings; an empty list means a verified local/artifact expression. Root hoisting never excuses a runtime owner.'),
10
+ 'wiring-format': new rules_sdk_1.RuleHelp('Check every canonical wiring.ts: its Wiring/AppWiring class plus the BindModule/RouteModule classes it selects, with their actual registrations.', "Declare each owner's Wiring/AppWiring class beside its named BindModule/RouteModule classes and their registrations (binder.createRpcClientAndBind, binder.createPubSubClientAndBind, binder.bindExternal, binder.bind chains, browser binder.provide recipes, addRoutes, addFilter) in its src/wiring.ts; select them with literal getBindModules/getRouteModules/getWirings return arrays. An AppWiring may also select a BindModule declared in a library owner's canonical src/wiring.ts, and only an AppWiring selects library Wirings. Keep constructors as prepared-input storage, keep configuration building, environment discovery and initializer/factory bodies in imported implementations, use direct service strings and explicit WiringPolicy declarations. Set maxLines explicitly (agreed upstream limit: 400)."),
8
11
  'no-file-import-cycles': new rules_sdk_1.RuleHelp('Keep each project free of circular file imports.', 'Apply this policy in source, or review its explicit settings in {configFile}. An intentional opt-out requires complete OFF settings.'),
9
12
  'runtime-architecture': new rules_sdk_1.RuleHelp('Validate runtime service and API dependency declarations.', 'Apply this policy in source, or review its explicit settings in {configFile}. An intentional opt-out requires complete OFF settings.'),
10
13
  'nx-wiring': new rules_sdk_1.RuleHelp('Wire the required validation targets into the Nx execution graph.', 'Apply this policy in source, or review its explicit settings in {configFile}. An intentional opt-out requires complete OFF settings.'),
11
14
  'di-graph': new rules_sdk_1.RuleHelp('Generate and validate dependency-injection design graphs.', 'Apply this policy in source, or review its explicit settings in {configFile}. An intentional opt-out requires complete OFF settings.'),
12
15
  'missing-design-annotation': new rules_sdk_1.RuleHelp('Declare the application design roots required for DI analysis.', 'Apply this policy in source, or review its explicit settings in {configFile}. An intentional opt-out requires complete OFF settings.'),
13
- 'validate-architecture-unchanged': new rules_sdk_1.RuleHelp('Keep the committed architecture graph aligned with current dependencies.', 'In src/wiring.ts register clients through the BindModule\'s Binder: binder.createRpcClientAndBind(Api, deployment, new ClientBindOptions(token?, filters?)) and binder.createPubSubClientAndBind(Api, deployment, new PubSubBindOptions(token?)) from @webpieces/http-routing, binder.bindExternal(Api, VendorImpl) for vendor contracts, and the browser binder.createRpcClientAndBind(Api, deployment) and binder.bindExternal(Api, new UseClass(Vendor) | new UseExisting(Token)) from @webpieces/http-client-browser. wiring-format checks canonical wiring.ts in all participating owners; preserve tokens and filters. Review graph changes and runtime-deps.json candidates explicitly.'),
16
+ 'validate-architecture-unchanged': new rules_sdk_1.RuleHelp('Keep the committed architecture graph aligned with current dependencies.', "In src/wiring.ts register clients through the BindModule's Binder: binder.createRpcClientAndBind(Api, deployment, new ClientBindOptions(token?, filters?)) and binder.createPubSubClientAndBind(Api, deployment, new PubSubBindOptions(token?)) from @webpieces/http-routing, binder.bindExternal(Api, VendorImpl) for vendor contracts, and the browser binder.createRpcClientAndBind(Api, deployment) and binder.bindExternal(Api, new UseClass(Vendor) | new UseExisting(Token)) from @webpieces/http-client-browser. wiring-format checks canonical wiring.ts in all participating owners; preserve tokens and filters. Review graph changes and runtime-deps.json candidates explicitly."),
14
17
  'validate-no-architecture-cycles': new rules_sdk_1.RuleHelp('Keep the project dependency architecture free of cycles.', 'Apply this policy in source, or review its explicit settings in {configFile}. An intentional opt-out requires complete OFF settings.'),
15
18
  'validate-packagejson': new rules_sdk_1.RuleHelp('Align package dependencies with declared project dependencies.', 'Apply this policy in source, or review its explicit settings in {configFile}. An intentional opt-out requires complete OFF settings.'),
16
19
  'validate-versions-locked': new rules_sdk_1.RuleHelp('Pin dependency versions consistently across governed projects.', 'Apply this policy in source, or review its explicit settings in {configFile}. An intentional opt-out requires complete OFF settings.'),
@@ -1 +1 @@
1
- {"version":3,"file":"rule-help.js","sourceRoot":"","sources":["../../../../../packages/tooling/nx-webpieces-rules/src/rule-help.ts"],"names":[],"mappings":";;;AAAA,oDAAgD;AAEhD,gEAAgE;AACnD,QAAA,QAAQ,GAAuC;IACxD,eAAe,EAAE,IAAI,oBAAQ,CAAC,kJAAkJ,EAAE,qyBAAqyB,CAAC;IACx9B,uBAAuB,EAAE,IAAI,oBAAQ,CACjC,kDAAkD,EAClD,sIAAsI,CACzI;IACD,sBAAsB,EAAE,IAAI,oBAAQ,CAChC,2DAA2D,EAC3D,sIAAsI,CACzI;IACD,WAAW,EAAE,IAAI,oBAAQ,CACrB,mEAAmE,EACnE,sIAAsI,CACzI;IACD,UAAU,EAAE,IAAI,oBAAQ,CACpB,2DAA2D,EAC3D,sIAAsI,CACzI;IACD,2BAA2B,EAAE,IAAI,oBAAQ,CACrC,gEAAgE,EAChE,sIAAsI,CACzI;IACD,iCAAiC,EAAE,IAAI,oBAAQ,CAC3C,0EAA0E,EAC1E,gqBAAgqB,CACnqB;IACD,iCAAiC,EAAE,IAAI,oBAAQ,CAC3C,0DAA0D,EAC1D,sIAAsI,CACzI;IACD,sBAAsB,EAAE,IAAI,oBAAQ,CAChC,gEAAgE,EAChE,sIAAsI,CACzI;IACD,0BAA0B,EAAE,IAAI,oBAAQ,CACpC,gEAAgE,EAChE,sIAAsI,CACzI;IACD,sBAAsB,EAAE,IAAI,oBAAQ,CAChC,8EAA8E,EAC9E,sIAAsI,CACzI;IACD,wBAAwB,EAAE,IAAI,oBAAQ,CAClC,qEAAqE,EACrE,sIAAsI,CACzI;IACD,uBAAuB,EAAE,IAAI,oBAAQ,CACjC,uEAAuE,EACvE,sIAAsI,CACzI;IACD,mBAAmB,EAAE,IAAI,oBAAQ,CAC7B,mEAAmE,EACnE,sIAAsI,CACzI;IACD,sBAAsB,EAAE,IAAI,oBAAQ,CAChC,+DAA+D,EAC/D,sIAAsI,CACzI;IACD,cAAc,EAAE,IAAI,oBAAQ,CACxB,sDAAsD,EACtD,sIAAsI,CACzI;IACD,kBAAkB,EAAE,IAAI,oBAAQ,CAC5B,gEAAgE,EAChE,sIAAsI,CACzI;IACD,cAAc,EAAE,IAAI,oBAAQ,CACxB,sNAAsN,EACtN,uSAAuS,CAC1S;CACJ,CAAC","sourcesContent":["import { RuleHelp } from '@webpieces/rules-sdk';\n\n/** Owner-authored guidance consumed by the registry catalog. */\nexport const ruleHelp: Readonly<Record<string, RuleHelp>> = {\n 'wiring-format': new RuleHelp('Check every canonical wiring.ts: its Wiring/AppWiring class plus the BindModule/RouteModule classes it selects, with their actual registrations.', 'Declare each owner\\'s Wiring/AppWiring class beside its named BindModule/RouteModule classes and their registrations (binder.createRpcClientAndBind, binder.createPubSubClientAndBind, binder.bindExternal, binder.bind chains, browser binder.provide recipes, addRoutes, addFilter) in its src/wiring.ts; select them with literal getBindModules/getRouteModules/getWirings return arrays. An AppWiring may also select a BindModule declared in a library owner\\'s canonical src/wiring.ts, and only an AppWiring selects library Wirings. Keep constructors as prepared-input storage, keep configuration building, environment discovery and initializer/factory bodies in imported implementations, use direct service strings and explicit WiringPolicy declarations. Set maxLines explicitly (agreed upstream limit: 400).'),\n 'no-file-import-cycles': new RuleHelp(\n 'Keep each project free of circular file imports.',\n 'Apply this policy in source, or review its explicit settings in {configFile}. An intentional opt-out requires complete OFF settings.',\n ),\n 'runtime-architecture': new RuleHelp(\n 'Validate runtime service and API dependency declarations.',\n 'Apply this policy in source, or review its explicit settings in {configFile}. An intentional opt-out requires complete OFF settings.',\n ),\n 'nx-wiring': new RuleHelp(\n 'Wire the required validation targets into the Nx execution graph.',\n 'Apply this policy in source, or review its explicit settings in {configFile}. An intentional opt-out requires complete OFF settings.',\n ),\n 'di-graph': new RuleHelp(\n 'Generate and validate dependency-injection design graphs.',\n 'Apply this policy in source, or review its explicit settings in {configFile}. An intentional opt-out requires complete OFF settings.',\n ),\n 'missing-design-annotation': new RuleHelp(\n 'Declare the application design roots required for DI analysis.',\n 'Apply this policy in source, or review its explicit settings in {configFile}. An intentional opt-out requires complete OFF settings.',\n ),\n 'validate-architecture-unchanged': new RuleHelp(\n 'Keep the committed architecture graph aligned with current dependencies.',\n 'In src/wiring.ts register clients through the BindModule\\'s Binder: binder.createRpcClientAndBind(Api, deployment, new ClientBindOptions(token?, filters?)) and binder.createPubSubClientAndBind(Api, deployment, new PubSubBindOptions(token?)) from @webpieces/http-routing, binder.bindExternal(Api, VendorImpl) for vendor contracts, and the browser binder.createRpcClientAndBind(Api, deployment) and binder.bindExternal(Api, new UseClass(Vendor) | new UseExisting(Token)) from @webpieces/http-client-browser. wiring-format checks canonical wiring.ts in all participating owners; preserve tokens and filters. Review graph changes and runtime-deps.json candidates explicitly.',\n ),\n 'validate-no-architecture-cycles': new RuleHelp(\n 'Keep the project dependency architecture free of cycles.',\n 'Apply this policy in source, or review its explicit settings in {configFile}. An intentional opt-out requires complete OFF settings.',\n ),\n 'validate-packagejson': new RuleHelp(\n 'Align package dependencies with declared project dependencies.',\n 'Apply this policy in source, or review its explicit settings in {configFile}. An intentional opt-out requires complete OFF settings.',\n ),\n 'validate-versions-locked': new RuleHelp(\n 'Pin dependency versions consistently across governed projects.',\n 'Apply this policy in source, or review its explicit settings in {configFile}. An intentional opt-out requires complete OFF settings.',\n ),\n 'validate-eslint-sync': new RuleHelp(\n 'Keep managed ESLint configuration synchronized with its installed templates.',\n 'Apply this policy in source, or review its explicit settings in {configFile}. An intentional opt-out requires complete OFF settings.',\n ),\n 'no-root-union-api-type': new RuleHelp(\n 'Use a stable named root API contract rather than a root union type.',\n 'Apply this policy in source, or review its explicit settings in {configFile}. An intentional opt-out requires complete OFF settings.',\n ),\n 'api-rules-for-openapi': new RuleHelp(\n 'Validate API contracts against their configured OpenAPI requirements.',\n 'Apply this policy in source, or review its explicit settings in {configFile}. An intentional opt-out requires complete OFF settings.',\n ),\n 'api-rules-for-mcp': new RuleHelp(\n 'Validate API contracts against their configured MCP requirements.',\n 'Apply this policy in source, or review its explicit settings in {configFile}. An intentional opt-out requires complete OFF settings.',\n ),\n 'api-lib-dependencies': new RuleHelp(\n 'Validate the configured API library dependency relationships.',\n 'Apply this policy in source, or review its explicit settings in {configFile}. An intentional opt-out requires complete OFF settings.',\n ),\n 'api-lib-path': new RuleHelp(\n 'Use the configured paths for API contract libraries.',\n 'Apply this policy in source, or review its explicit settings in {configFile}. An intentional opt-out requires complete OFF settings.',\n ),\n 'framework-folder': new RuleHelp(\n 'Align framework declarations with their project folder layout.',\n 'Apply this policy in source, or review its explicit settings in {configFile}. An intentional opt-out requires complete OFF settings.',\n ),\n 'product-tags': new RuleHelp(\n 'Require a product:<name> nx tag on every project whose role is listed, so the architecture graphs can show one product, and refuse a dependency edge that crosses into a product productDependencies does not allow.',\n 'Add \"product:<name>\" to the tags in the named project.json; for a refused edge, move the code so the dependency stays inside an allowed product, or add the product to that entry\\'s allowedToDependOn in productDependencies in {configFile}. An intentional opt-out requires complete OFF settings.',\n ),\n};\n"]}
1
+ {"version":3,"file":"rule-help.js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AsI,CACzI;IACD,mBAAmB,EAAE,IAAI,oBAAQ,CAC7B,mEAAmE,EACnE,sIAAsI,CACzI;IACD,sBAAsB,EAAE,IAAI,oBAAQ,CAChC,+DAA+D,EAC/D,sIAAsI,CACzI;IACD,cAAc,EAAE,IAAI,oBAAQ,CACxB,sDAAsD,EACtD,sIAAsI,CACzI;IACD,kBAAkB,EAAE,IAAI,oBAAQ,CAC5B,gEAAgE,EAChE,sIAAsI,CACzI;IACD,cAAc,EAAE,IAAI,oBAAQ,CACxB,sNAAsN,EACtN,uSAAuS,CAC1S;CACJ,CAAC","sourcesContent":["import { RuleHelp } from '@webpieces/rules-sdk';\n\n/** Owner-authored guidance consumed by the registry catalog. */\nexport const ruleHelp: Readonly<Record<string, RuleHelp>> = {\n 'dependency-catalog': new RuleHelp(\n 'Centralize directly authored external versions in the pnpm catalogue.',\n 'Declare each external dependency with catalog: and an exact version in pnpm-workspace.yaml. Internal owners use workspace:*. This policy never overrides third-party transitive dependencies.',\n ),\n 'root-runtime-freeze': new RuleHelp(\n 'Prevent growth of root runtime dependency names.',\n 'Keep the reviewed allowedNames baseline for root dependencies, optionalDependencies and peerDependencies. New build/admin tools belong in root devDependencies; runtime imports belong to their module.',\n ),\n 'dependency-ownership': new RuleHelp(\n 'Require declarations at the importing source owner.',\n 'Declare emitted production imports in owner dependencies, optionalDependencies or peers. Test/build/erased-type imports may use owner devDependencies. Explicitly classify root tool files and artifact probes; toolProviders records exact umbrella-provided imports. Review dynamicImports as file::normalized expression::package-list mappings; an empty list means a verified local/artifact expression. Root hoisting never excuses a runtime owner.',\n ),\n 'wiring-format': new RuleHelp(\n 'Check every canonical wiring.ts: its Wiring/AppWiring class plus the BindModule/RouteModule classes it selects, with their actual registrations.',\n \"Declare each owner's Wiring/AppWiring class beside its named BindModule/RouteModule classes and their registrations (binder.createRpcClientAndBind, binder.createPubSubClientAndBind, binder.bindExternal, binder.bind chains, browser binder.provide recipes, addRoutes, addFilter) in its src/wiring.ts; select them with literal getBindModules/getRouteModules/getWirings return arrays. An AppWiring may also select a BindModule declared in a library owner's canonical src/wiring.ts, and only an AppWiring selects library Wirings. Keep constructors as prepared-input storage, keep configuration building, environment discovery and initializer/factory bodies in imported implementations, use direct service strings and explicit WiringPolicy declarations. Set maxLines explicitly (agreed upstream limit: 400).\",\n ),\n 'no-file-import-cycles': new RuleHelp(\n 'Keep each project free of circular file imports.',\n 'Apply this policy in source, or review its explicit settings in {configFile}. An intentional opt-out requires complete OFF settings.',\n ),\n 'runtime-architecture': new RuleHelp(\n 'Validate runtime service and API dependency declarations.',\n 'Apply this policy in source, or review its explicit settings in {configFile}. An intentional opt-out requires complete OFF settings.',\n ),\n 'nx-wiring': new RuleHelp(\n 'Wire the required validation targets into the Nx execution graph.',\n 'Apply this policy in source, or review its explicit settings in {configFile}. An intentional opt-out requires complete OFF settings.',\n ),\n 'di-graph': new RuleHelp(\n 'Generate and validate dependency-injection design graphs.',\n 'Apply this policy in source, or review its explicit settings in {configFile}. An intentional opt-out requires complete OFF settings.',\n ),\n 'missing-design-annotation': new RuleHelp(\n 'Declare the application design roots required for DI analysis.',\n 'Apply this policy in source, or review its explicit settings in {configFile}. An intentional opt-out requires complete OFF settings.',\n ),\n 'validate-architecture-unchanged': new RuleHelp(\n 'Keep the committed architecture graph aligned with current dependencies.',\n \"In src/wiring.ts register clients through the BindModule's Binder: binder.createRpcClientAndBind(Api, deployment, new ClientBindOptions(token?, filters?)) and binder.createPubSubClientAndBind(Api, deployment, new PubSubBindOptions(token?)) from @webpieces/http-routing, binder.bindExternal(Api, VendorImpl) for vendor contracts, and the browser binder.createRpcClientAndBind(Api, deployment) and binder.bindExternal(Api, new UseClass(Vendor) | new UseExisting(Token)) from @webpieces/http-client-browser. wiring-format checks canonical wiring.ts in all participating owners; preserve tokens and filters. Review graph changes and runtime-deps.json candidates explicitly.\",\n ),\n 'validate-no-architecture-cycles': new RuleHelp(\n 'Keep the project dependency architecture free of cycles.',\n 'Apply this policy in source, or review its explicit settings in {configFile}. An intentional opt-out requires complete OFF settings.',\n ),\n 'validate-packagejson': new RuleHelp(\n 'Align package dependencies with declared project dependencies.',\n 'Apply this policy in source, or review its explicit settings in {configFile}. An intentional opt-out requires complete OFF settings.',\n ),\n 'validate-versions-locked': new RuleHelp(\n 'Pin dependency versions consistently across governed projects.',\n 'Apply this policy in source, or review its explicit settings in {configFile}. An intentional opt-out requires complete OFF settings.',\n ),\n 'validate-eslint-sync': new RuleHelp(\n 'Keep managed ESLint configuration synchronized with its installed templates.',\n 'Apply this policy in source, or review its explicit settings in {configFile}. An intentional opt-out requires complete OFF settings.',\n ),\n 'no-root-union-api-type': new RuleHelp(\n 'Use a stable named root API contract rather than a root union type.',\n 'Apply this policy in source, or review its explicit settings in {configFile}. An intentional opt-out requires complete OFF settings.',\n ),\n 'api-rules-for-openapi': new RuleHelp(\n 'Validate API contracts against their configured OpenAPI requirements.',\n 'Apply this policy in source, or review its explicit settings in {configFile}. An intentional opt-out requires complete OFF settings.',\n ),\n 'api-rules-for-mcp': new RuleHelp(\n 'Validate API contracts against their configured MCP requirements.',\n 'Apply this policy in source, or review its explicit settings in {configFile}. An intentional opt-out requires complete OFF settings.',\n ),\n 'api-lib-dependencies': new RuleHelp(\n 'Validate the configured API library dependency relationships.',\n 'Apply this policy in source, or review its explicit settings in {configFile}. An intentional opt-out requires complete OFF settings.',\n ),\n 'api-lib-path': new RuleHelp(\n 'Use the configured paths for API contract libraries.',\n 'Apply this policy in source, or review its explicit settings in {configFile}. An intentional opt-out requires complete OFF settings.',\n ),\n 'framework-folder': new RuleHelp(\n 'Align framework declarations with their project folder layout.',\n 'Apply this policy in source, or review its explicit settings in {configFile}. An intentional opt-out requires complete OFF settings.',\n ),\n 'product-tags': new RuleHelp(\n 'Require a product:<name> nx tag on every project whose role is listed, so the architecture graphs can show one product, and refuse a dependency edge that crosses into a product productDependencies does not allow.',\n 'Add \"product:<name>\" to the tags in the named project.json; for a refused edge, move the code so the dependency stays inside an allowed product, or add the product to that entry\\'s allowedToDependOn in productDependencies in {configFile}. An intentional opt-out requires complete OFF settings.',\n ),\n};\n"]}
@@ -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,0BAA0B,EAAE,IAAI;KACnC;IACD,2BAA2B,EAAE;QACzB,MAAM,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S;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,cAAc,EAAE,EAAE;QAClB,qBAAqB,EAAE,CAAC;QACxB,wBAAwB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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',