@webpieces/nx-webpieces-rules 0.4.912 → 0.4.914

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 (72) hide show
  1. package/README.md +11 -0
  2. package/executors.json +5 -0
  3. package/package.json +7 -7
  4. package/src/executors/help/executor.js +2 -0
  5. package/src/executors/help/executor.js.map +1 -1
  6. package/src/executors/visualize-runtime/executor.d.ts +3 -1
  7. package/src/executors/visualize-runtime/executor.js +9 -3
  8. package/src/executors/visualize-runtime/executor.js.map +1 -1
  9. package/src/executors/visualize-runtime-goal/executor.d.ts +27 -0
  10. package/src/executors/visualize-runtime-goal/executor.js +98 -0
  11. package/src/executors/visualize-runtime-goal/executor.js.map +1 -0
  12. package/src/executors/visualize-runtime-goal/schema.json +13 -0
  13. package/src/lib/graph-color-modes.d.ts +8 -1
  14. package/src/lib/graph-color-modes.js +11 -1
  15. package/src/lib/graph-color-modes.js.map +1 -1
  16. package/src/lib/graph-filter.client.d.ts +9 -2
  17. package/src/lib/graph-filter.client.js +15 -0
  18. package/src/lib/graph-filter.client.js.map +1 -1
  19. package/src/lib/graph-mode-state.client.d.ts +9 -2
  20. package/src/lib/graph-mode-state.client.js +17 -4
  21. package/src/lib/graph-mode-state.client.js.map +1 -1
  22. package/src/lib/graph-page-shell.js +6 -5
  23. package/src/lib/graph-page-shell.js.map +1 -1
  24. package/src/lib/graph-render-model.d.ts +41 -0
  25. package/src/lib/graph-render-model.js +45 -1
  26. package/src/lib/graph-render-model.js.map +1 -1
  27. package/src/lib/graph-visualizer.client.d.ts +7 -1
  28. package/src/lib/graph-visualizer.client.js +37 -4
  29. package/src/lib/graph-visualizer.client.js.map +1 -1
  30. package/src/lib/runtime-goal-comparison.d.ts +55 -0
  31. package/src/lib/runtime-goal-comparison.js +209 -0
  32. package/src/lib/runtime-goal-comparison.js.map +1 -0
  33. package/src/lib/runtime-goal-details.d.ts +17 -0
  34. package/src/lib/runtime-goal-details.js +118 -0
  35. package/src/lib/runtime-goal-details.js.map +1 -0
  36. package/src/lib/runtime-goal-file.d.ts +72 -0
  37. package/src/lib/runtime-goal-file.js +201 -0
  38. package/src/lib/runtime-goal-file.js.map +1 -0
  39. package/src/lib/runtime-goal-styles.d.ts +10 -0
  40. package/src/lib/runtime-goal-styles.js +25 -0
  41. package/src/lib/runtime-goal-styles.js.map +1 -0
  42. package/src/lib/runtime-goal-validator.d.ts +39 -0
  43. package/src/lib/runtime-goal-validator.js +236 -0
  44. package/src/lib/runtime-goal-validator.js.map +1 -0
  45. package/src/lib/runtime-goal-view.d.ts +22 -0
  46. package/src/lib/runtime-goal-view.js +64 -0
  47. package/src/lib/runtime-goal-view.js.map +1 -0
  48. package/src/lib/runtime-graph-diff.d.ts +107 -0
  49. package/src/lib/runtime-graph-diff.js +346 -0
  50. package/src/lib/runtime-graph-diff.js.map +1 -0
  51. package/src/lib/runtime-html-page.d.ts +2 -0
  52. package/src/lib/runtime-html-page.js +28 -3
  53. package/src/lib/runtime-html-page.js.map +1 -1
  54. package/src/lib/runtime-layout.d.ts +2 -0
  55. package/src/lib/runtime-layout.js +4 -0
  56. package/src/lib/runtime-layout.js.map +1 -1
  57. package/src/lib/runtime-union-graph.d.ts +20 -0
  58. package/src/lib/runtime-union-graph.js +94 -0
  59. package/src/lib/runtime-union-graph.js.map +1 -0
  60. package/src/lib/runtime-visualizer.client.js +7 -3
  61. package/src/lib/runtime-visualizer.client.js.map +1 -1
  62. package/src/lib/runtime-visualizer.d.ts +8 -3
  63. package/src/lib/runtime-visualizer.js +18 -10
  64. package/src/lib/runtime-visualizer.js.map +1 -1
  65. package/src/lib/runtime-viz-options.d.ts +28 -1
  66. package/src/lib/runtime-viz-options.js +36 -2
  67. package/src/lib/runtime-viz-options.js.map +1 -1
  68. package/src/plugin.js +2 -2
  69. package/src/plugin.js.map +1 -1
  70. package/src/runtime-targets.d.ts +6 -0
  71. package/src/runtime-targets.js +17 -0
  72. package/src/runtime-targets.js.map +1 -1
@@ -5,6 +5,7 @@
5
5
  */
6
6
  Object.defineProperty(exports, "__esModule", { value: true });
7
7
  exports.createVisualizeRuntimeTarget = createVisualizeRuntimeTarget;
8
+ exports.createVisualizeRuntimeGoalTarget = createVisualizeRuntimeGoalTarget;
8
9
  exports.createValidateRuntimeArchitectureTarget = createValidateRuntimeArchitectureTarget;
9
10
  /** `architecture:visualize-runtime` — render the runtime microservice graph. */
10
11
  function createVisualizeRuntimeTarget() {
@@ -17,6 +18,22 @@ function createVisualizeRuntimeTarget() {
17
18
  },
18
19
  };
19
20
  }
21
+ /**
22
+ * `architecture:visualize-runtime-goal` (#1239) — render the hand-authored runtime goal. Inferred with
23
+ * visualize-runtime, so every repo with the runtime viewer gets it without hand-wiring a target. No
24
+ * dependsOn: it reads saved files only and never generates first.
25
+ */
26
+ // webpieces-disable no-function-outside-class -- inferred-target factory, matching its siblings in this file
27
+ function createVisualizeRuntimeGoalTarget() {
28
+ return {
29
+ executor: '@webpieces/nx-webpieces-rules:visualize-runtime-goal',
30
+ cache: false,
31
+ metadata: {
32
+ technologies: ['nx'],
33
+ description: 'View the runtime goal (architecture/runtime-dependencies-goal.json) with Goal vs Current; never generates. --prepare recomputes its levels',
34
+ },
35
+ };
36
+ }
20
37
  /** Workspace: validate no disallowed runtime cycles + graph unchanged. */
21
38
  function createValidateRuntimeArchitectureTarget() {
22
39
  return {
@@ -1 +1 @@
1
- {"version":3,"file":"runtime-targets.js","sourceRoot":"","sources":["../../../../../packages/tooling/nx-webpieces-rules/src/runtime-targets.ts"],"names":[],"mappings":";AAAA;;;GAGG;;AAKH,oEASC;AAGD,0FAgBC;AA7BD,gFAAgF;AAChF,SAAgB,4BAA4B;IACxC,OAAO;QACH,QAAQ,EAAE,iDAAiD;QAC3D,KAAK,EAAE,KAAK;QACZ,QAAQ,EAAE;YACN,YAAY,EAAE,CAAC,IAAI,CAAC;YACpB,WAAW,EAAE,gGAAgG;SAChH;KACJ,CAAC;AACN,CAAC;AAED,0EAA0E;AAC1E,SAAgB,uCAAuC;IACnD,OAAO;QACH,QAAQ,EAAE,6DAA6D;QACvE,KAAK,EAAE,KAAK;QACZ,MAAM,EAAE;YACJ,SAAS;YACT,gDAAgD;YAChD,wCAAwC;YACxC,wDAAwD;YACxD,uCAAuC;SAC1C;QACD,QAAQ,EAAE;YACN,YAAY,EAAE,CAAC,IAAI,CAAC;YACpB,WAAW,EAAE,2EAA2E;SAC3F;KACJ,CAAC;AACN,CAAC","sourcesContent":["/**\n * Runtime-graph target factories for the inference plugin (kept out of plugin.ts\n * to keep that file under the file-size limit).\n */\n\nimport type { TargetConfiguration } from '@nx/devkit';\n\n/** `architecture:visualize-runtime` — render the runtime microservice graph. */\nexport function createVisualizeRuntimeTarget(): TargetConfiguration {\n return {\n executor: '@webpieces/nx-webpieces-rules:visualize-runtime',\n cache: false,\n metadata: {\n technologies: ['nx'],\n description: 'View saved runtime architecture without refreshing; refresh: pnpm nx run architecture:generate',\n },\n };\n}\n\n/** Workspace: validate no disallowed runtime cycles + graph unchanged. */\nexport function createValidateRuntimeArchitectureTarget(): TargetConfiguration {\n return {\n executor: '@webpieces/nx-webpieces-rules:validate-runtime-architecture',\n cache: false,\n inputs: [\n 'default',\n '{workspaceRoot}/architecture/dependencies.json',\n '{workspaceRoot}/architecture/apis/**/*',\n '{workspaceRoot}/architecture/runtime-dependencies.json',\n '{workspaceRoot}/webpieces.config.json',\n ],\n metadata: {\n technologies: ['nx'],\n description: 'Validate the runtime microservice graph (no disallowed cycles, unchanged)',\n },\n };\n}\n"]}
1
+ {"version":3,"file":"runtime-targets.js","sourceRoot":"","sources":["../../../../../packages/tooling/nx-webpieces-rules/src/runtime-targets.ts"],"names":[],"mappings":";AAAA;;;GAGG;;AAKH,oEASC;AAQD,4EAUC;AAGD,0FAgBC;AA/CD,gFAAgF;AAChF,SAAgB,4BAA4B;IACxC,OAAO;QACH,QAAQ,EAAE,iDAAiD;QAC3D,KAAK,EAAE,KAAK;QACZ,QAAQ,EAAE;YACN,YAAY,EAAE,CAAC,IAAI,CAAC;YACpB,WAAW,EAAE,gGAAgG;SAChH;KACJ,CAAC;AACN,CAAC;AAED;;;;GAIG;AACH,6GAA6G;AAC7G,SAAgB,gCAAgC;IAC5C,OAAO;QACH,QAAQ,EAAE,sDAAsD;QAChE,KAAK,EAAE,KAAK;QACZ,QAAQ,EAAE;YACN,YAAY,EAAE,CAAC,IAAI,CAAC;YACpB,WAAW,EACP,4IAA4I;SACnJ;KACJ,CAAC;AACN,CAAC;AAED,0EAA0E;AAC1E,SAAgB,uCAAuC;IACnD,OAAO;QACH,QAAQ,EAAE,6DAA6D;QACvE,KAAK,EAAE,KAAK;QACZ,MAAM,EAAE;YACJ,SAAS;YACT,gDAAgD;YAChD,wCAAwC;YACxC,wDAAwD;YACxD,uCAAuC;SAC1C;QACD,QAAQ,EAAE;YACN,YAAY,EAAE,CAAC,IAAI,CAAC;YACpB,WAAW,EAAE,2EAA2E;SAC3F;KACJ,CAAC;AACN,CAAC","sourcesContent":["/**\n * Runtime-graph target factories for the inference plugin (kept out of plugin.ts\n * to keep that file under the file-size limit).\n */\n\nimport type { TargetConfiguration } from '@nx/devkit';\n\n/** `architecture:visualize-runtime` — render the runtime microservice graph. */\nexport function createVisualizeRuntimeTarget(): TargetConfiguration {\n return {\n executor: '@webpieces/nx-webpieces-rules:visualize-runtime',\n cache: false,\n metadata: {\n technologies: ['nx'],\n description: 'View saved runtime architecture without refreshing; refresh: pnpm nx run architecture:generate',\n },\n };\n}\n\n/**\n * `architecture:visualize-runtime-goal` (#1239) — render the hand-authored runtime goal. Inferred with\n * visualize-runtime, so every repo with the runtime viewer gets it without hand-wiring a target. No\n * dependsOn: it reads saved files only and never generates first.\n */\n// webpieces-disable no-function-outside-class -- inferred-target factory, matching its siblings in this file\nexport function createVisualizeRuntimeGoalTarget(): TargetConfiguration {\n return {\n executor: '@webpieces/nx-webpieces-rules:visualize-runtime-goal',\n cache: false,\n metadata: {\n technologies: ['nx'],\n description:\n 'View the runtime goal (architecture/runtime-dependencies-goal.json) with Goal vs Current; never generates. --prepare recomputes its levels',\n },\n };\n}\n\n/** Workspace: validate no disallowed runtime cycles + graph unchanged. */\nexport function createValidateRuntimeArchitectureTarget(): TargetConfiguration {\n return {\n executor: '@webpieces/nx-webpieces-rules:validate-runtime-architecture',\n cache: false,\n inputs: [\n 'default',\n '{workspaceRoot}/architecture/dependencies.json',\n '{workspaceRoot}/architecture/apis/**/*',\n '{workspaceRoot}/architecture/runtime-dependencies.json',\n '{workspaceRoot}/webpieces.config.json',\n ],\n metadata: {\n technologies: ['nx'],\n description: 'Validate the runtime microservice graph (no disallowed cycles, unchanged)',\n },\n };\n}\n"]}