@manojkmfsi/monodog 1.0.19 → 1.0.21

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 (288) hide show
  1. package/.turbo/turbo-build.log +4 -4
  2. package/CHANGELOG.md +12 -0
  3. package/dist/config-loader.js +5 -6
  4. package/dist/get-db-url.js +0 -1
  5. package/dist/index.js +219 -80
  6. package/dist/serve.js +7 -91
  7. package/dist/services/commitService.js +1 -1
  8. package/dist/{gitService.js → services/gitService.js} +0 -101
  9. package/dist/setup.js +0 -0
  10. package/dist/utils/utilities.js +92 -14
  11. package/{monodog-conf.json → monodog-config.json} +2 -4
  12. package/monodog-dashboard/README.md +58 -0
  13. package/monodog-dashboard/dist/assets/{index-dadb5f0d.js → index-1a6836e4.js} +2 -2
  14. package/monodog-dashboard/dist/index.html +1 -1
  15. package/package.json +19 -19
  16. package/src/config-loader.ts +5 -7
  17. package/src/get-db-url.ts +0 -2
  18. package/src/index.ts +227 -72
  19. package/src/serve.ts +6 -68
  20. package/src/services/commitService.ts +1 -1
  21. package/src/services/gitService.ts +165 -0
  22. package/src/utils/utilities.ts +105 -14
  23. package/.turbo/turbo-lint.log +0 -4
  24. package/.turbo/turbo-test.log +0 -828
  25. package/coverage/clover.xml +0 -2661
  26. package/coverage/coverage-final.json +0 -99
  27. package/coverage/lcov-report/base.css +0 -224
  28. package/coverage/lcov-report/block-navigation.js +0 -87
  29. package/coverage/lcov-report/ci-status.ts.html +0 -2002
  30. package/coverage/lcov-report/components/configuration/Configuration.tsx.html +0 -358
  31. package/coverage/lcov-report/components/configuration/components/BrandingSettings.tsx.html +0 -472
  32. package/coverage/lcov-report/components/configuration/components/ConfigurationHeader.tsx.html +0 -199
  33. package/coverage/lcov-report/components/configuration/components/ConfigurationModal.tsx.html +0 -157
  34. package/coverage/lcov-report/components/configuration/components/ConfigurationTabs.tsx.html +0 -175
  35. package/coverage/lcov-report/components/configuration/components/FeatureToggles.tsx.html +0 -283
  36. package/coverage/lcov-report/components/configuration/components/GeneralSettings.tsx.html +0 -316
  37. package/coverage/lcov-report/components/configuration/components/MonorepoSettings.tsx.html +0 -625
  38. package/coverage/lcov-report/components/configuration/components/index.html +0 -221
  39. package/coverage/lcov-report/components/configuration/components/index.ts.html +0 -109
  40. package/coverage/lcov-report/components/configuration/index.html +0 -116
  41. package/coverage/lcov-report/components/configuration/utils/config.utils.ts.html +0 -427
  42. package/coverage/lcov-report/components/configuration/utils/index.html +0 -116
  43. package/coverage/lcov-report/components/main-dashboard/Dashboard.tsx.html +0 -769
  44. package/coverage/lcov-report/components/main-dashboard/components/Header.tsx.html +0 -226
  45. package/coverage/lcov-report/components/main-dashboard/components/PackageDistribution.tsx.html +0 -187
  46. package/coverage/lcov-report/components/main-dashboard/components/PackageSearchFilter.tsx.html +0 -226
  47. package/coverage/lcov-report/components/main-dashboard/components/PackageTable.tsx.html +0 -343
  48. package/coverage/lcov-report/components/main-dashboard/components/QuickActions.tsx.html +0 -265
  49. package/coverage/lcov-report/components/main-dashboard/components/StatsCards.tsx.html +0 -289
  50. package/coverage/lcov-report/components/main-dashboard/components/index.html +0 -206
  51. package/coverage/lcov-report/components/main-dashboard/components/index.ts.html +0 -106
  52. package/coverage/lcov-report/components/main-dashboard/index.html +0 -116
  53. package/coverage/lcov-report/components/main-dashboard/utils/dashboard.utils.ts.html +0 -292
  54. package/coverage/lcov-report/components/main-dashboard/utils/index.html +0 -116
  55. package/coverage/lcov-report/components/modules/ci-integration/CIIntegration.tsx.html +0 -913
  56. package/coverage/lcov-report/components/modules/ci-integration/components/BuildDetails.tsx.html +0 -769
  57. package/coverage/lcov-report/components/modules/ci-integration/components/BuildList.tsx.html +0 -721
  58. package/coverage/lcov-report/components/modules/ci-integration/components/BuildOverview.tsx.html +0 -559
  59. package/coverage/lcov-report/components/modules/ci-integration/components/CIIntegrationHeader.tsx.html +0 -199
  60. package/coverage/lcov-report/components/modules/ci-integration/components/ErrorState.tsx.html +0 -160
  61. package/coverage/lcov-report/components/modules/ci-integration/components/LoadingState.tsx.html +0 -139
  62. package/coverage/lcov-report/components/modules/ci-integration/components/PipelineStatus.tsx.html +0 -754
  63. package/coverage/lcov-report/components/modules/ci-integration/components/index.html +0 -221
  64. package/coverage/lcov-report/components/modules/ci-integration/components/index.ts.html +0 -109
  65. package/coverage/lcov-report/components/modules/ci-integration/index.html +0 -116
  66. package/coverage/lcov-report/components/modules/ci-integration/utils/ci.utils.ts.html +0 -871
  67. package/coverage/lcov-report/components/modules/ci-integration/utils/index.html +0 -116
  68. package/coverage/lcov-report/components/modules/config-inspector/ConfigInspector.tsx.html +0 -1054
  69. package/coverage/lcov-report/components/modules/config-inspector/components/ConfigEditor.tsx.html +0 -361
  70. package/coverage/lcov-report/components/modules/config-inspector/components/ConfigInspectorHeader.tsx.html +0 -193
  71. package/coverage/lcov-report/components/modules/config-inspector/components/ConfigPreview.tsx.html +0 -352
  72. package/coverage/lcov-report/components/modules/config-inspector/components/ConfigSidebar.tsx.html +0 -505
  73. package/coverage/lcov-report/components/modules/config-inspector/components/ConfigToolbar.tsx.html +0 -637
  74. package/coverage/lcov-report/components/modules/config-inspector/components/ErrorState.tsx.html +0 -160
  75. package/coverage/lcov-report/components/modules/config-inspector/components/LoadingState.tsx.html +0 -139
  76. package/coverage/lcov-report/components/modules/config-inspector/components/ValidationPanel.tsx.html +0 -550
  77. package/coverage/lcov-report/components/modules/config-inspector/components/index.html +0 -236
  78. package/coverage/lcov-report/components/modules/config-inspector/components/index.ts.html +0 -112
  79. package/coverage/lcov-report/components/modules/config-inspector/index.html +0 -116
  80. package/coverage/lcov-report/components/modules/config-inspector/utils/config.utils.ts.html +0 -2242
  81. package/coverage/lcov-report/components/modules/config-inspector/utils/index.html +0 -116
  82. package/coverage/lcov-report/components/modules/dependency-graph/DependencyGraph.tsx.html +0 -754
  83. package/coverage/lcov-report/components/modules/dependency-graph/components/CircularDependencies.tsx.html +0 -613
  84. package/coverage/lcov-report/components/modules/dependency-graph/components/DependencyDetails.tsx.html +0 -661
  85. package/coverage/lcov-report/components/modules/dependency-graph/components/DependencyGraphHeader.tsx.html +0 -187
  86. package/coverage/lcov-report/components/modules/dependency-graph/components/DependencyList.tsx.html +0 -613
  87. package/coverage/lcov-report/components/modules/dependency-graph/components/ErrorState.tsx.html +0 -160
  88. package/coverage/lcov-report/components/modules/dependency-graph/components/GraphLegend.tsx.html +0 -430
  89. package/coverage/lcov-report/components/modules/dependency-graph/components/GraphStats.tsx.html +0 -493
  90. package/coverage/lcov-report/components/modules/dependency-graph/components/GraphToolbar.tsx.html +0 -406
  91. package/coverage/lcov-report/components/modules/dependency-graph/components/GraphVisualization.tsx.html +0 -619
  92. package/coverage/lcov-report/components/modules/dependency-graph/components/LoadingState.tsx.html +0 -139
  93. package/coverage/lcov-report/components/modules/dependency-graph/components/index.html +0 -266
  94. package/coverage/lcov-report/components/modules/dependency-graph/components/index.ts.html +0 -118
  95. package/coverage/lcov-report/components/modules/dependency-graph/index.html +0 -116
  96. package/coverage/lcov-report/components/modules/dependency-graph/utils/dependency.utils.ts.html +0 -1393
  97. package/coverage/lcov-report/components/modules/dependency-graph/utils/index.html +0 -116
  98. package/coverage/lcov-report/components/modules/health-status/HealthStatus.tsx.html +0 -2305
  99. package/coverage/lcov-report/components/modules/health-status/index.html +0 -116
  100. package/coverage/lcov-report/components/modules/packages/PackageDetail.tsx.html +0 -850
  101. package/coverage/lcov-report/components/modules/packages/PackagesOverview.tsx.html +0 -580
  102. package/coverage/lcov-report/components/modules/packages/components/ConfigurationTab.tsx.html +0 -1027
  103. package/coverage/lcov-report/components/modules/packages/components/DependenciesTab.tsx.html +0 -556
  104. package/coverage/lcov-report/components/modules/packages/components/ErrorState.tsx.html +0 -148
  105. package/coverage/lcov-report/components/modules/packages/components/HealthMetricsTab.tsx.html +0 -910
  106. package/coverage/lcov-report/components/modules/packages/components/LoadingState.tsx.html +0 -127
  107. package/coverage/lcov-report/components/modules/packages/components/PackageDetailHeader.tsx.html +0 -592
  108. package/coverage/lcov-report/components/modules/packages/components/PackageDetailTabs.tsx.html +0 -232
  109. package/coverage/lcov-report/components/modules/packages/components/PackageStats.tsx.html +0 -301
  110. package/coverage/lcov-report/components/modules/packages/components/PackagesTable.tsx.html +0 -589
  111. package/coverage/lcov-report/components/modules/packages/components/RecentCommitsTab.tsx.html +0 -364
  112. package/coverage/lcov-report/components/modules/packages/components/SearchAndFilter.tsx.html +0 -301
  113. package/coverage/lcov-report/components/modules/packages/components/index.html +0 -281
  114. package/coverage/lcov-report/components/modules/packages/components/index.ts.html +0 -121
  115. package/coverage/lcov-report/components/modules/packages/index.html +0 -131
  116. package/coverage/lcov-report/components/modules/packages/utils/index.html +0 -116
  117. package/coverage/lcov-report/components/modules/packages/utils/packages.utils.ts.html +0 -613
  118. package/coverage/lcov-report/components/publish-control/PublishControl.tsx.html +0 -769
  119. package/coverage/lcov-report/components/publish-control/components/ChangelogViewer.tsx.html +0 -394
  120. package/coverage/lcov-report/components/publish-control/components/ErrorState.tsx.html +0 -154
  121. package/coverage/lcov-report/components/publish-control/components/LoadingState.tsx.html +0 -121
  122. package/coverage/lcov-report/components/publish-control/components/PackageReleaseTable.tsx.html +0 -505
  123. package/coverage/lcov-report/components/publish-control/components/PublishHeader.tsx.html +0 -175
  124. package/coverage/lcov-report/components/publish-control/components/QuickActionCards.tsx.html +0 -253
  125. package/coverage/lcov-report/components/publish-control/components/ReleaseSchedule.tsx.html +0 -397
  126. package/coverage/lcov-report/components/publish-control/components/index.html +0 -221
  127. package/coverage/lcov-report/components/publish-control/components/index.ts.html +0 -109
  128. package/coverage/lcov-report/components/publish-control/index.html +0 -116
  129. package/coverage/lcov-report/components/publish-control/utils/index.html +0 -116
  130. package/coverage/lcov-report/components/publish-control/utils/publish.utils.ts.html +0 -262
  131. package/coverage/lcov-report/components/setup-guide/SetupGuide.tsx.html +0 -373
  132. package/coverage/lcov-report/components/setup-guide/components/SetupHeader.tsx.html +0 -157
  133. package/coverage/lcov-report/components/setup-guide/components/SetupModal.tsx.html +0 -163
  134. package/coverage/lcov-report/components/setup-guide/components/SetupProgress.tsx.html +0 -172
  135. package/coverage/lcov-report/components/setup-guide/components/StepContent.tsx.html +0 -901
  136. package/coverage/lcov-report/components/setup-guide/components/StepNavigation.tsx.html +0 -271
  137. package/coverage/lcov-report/components/setup-guide/components/index.html +0 -191
  138. package/coverage/lcov-report/components/setup-guide/components/index.ts.html +0 -103
  139. package/coverage/lcov-report/components/setup-guide/index.html +0 -116
  140. package/coverage/lcov-report/components/setup-guide/utils/index.html +0 -116
  141. package/coverage/lcov-report/components/setup-guide/utils/setup.utils.ts.html +0 -322
  142. package/coverage/lcov-report/favicon.png +0 -0
  143. package/coverage/lcov-report/index.html +0 -536
  144. package/coverage/lcov-report/monodog-dashboard/src/components/configuration/Configuration.tsx.html +0 -358
  145. package/coverage/lcov-report/monodog-dashboard/src/components/configuration/components/BrandingSettings.tsx.html +0 -472
  146. package/coverage/lcov-report/monodog-dashboard/src/components/configuration/components/ConfigurationHeader.tsx.html +0 -199
  147. package/coverage/lcov-report/monodog-dashboard/src/components/configuration/components/ConfigurationModal.tsx.html +0 -157
  148. package/coverage/lcov-report/monodog-dashboard/src/components/configuration/components/ConfigurationTabs.tsx.html +0 -175
  149. package/coverage/lcov-report/monodog-dashboard/src/components/configuration/components/FeatureToggles.tsx.html +0 -283
  150. package/coverage/lcov-report/monodog-dashboard/src/components/configuration/components/GeneralSettings.tsx.html +0 -316
  151. package/coverage/lcov-report/monodog-dashboard/src/components/configuration/components/MonorepoSettings.tsx.html +0 -625
  152. package/coverage/lcov-report/monodog-dashboard/src/components/configuration/components/index.html +0 -221
  153. package/coverage/lcov-report/monodog-dashboard/src/components/configuration/components/index.ts.html +0 -109
  154. package/coverage/lcov-report/monodog-dashboard/src/components/configuration/index.html +0 -116
  155. package/coverage/lcov-report/monodog-dashboard/src/components/configuration/utils/config.utils.ts.html +0 -427
  156. package/coverage/lcov-report/monodog-dashboard/src/components/configuration/utils/index.html +0 -116
  157. package/coverage/lcov-report/monodog-dashboard/src/components/main-dashboard/Dashboard.tsx.html +0 -769
  158. package/coverage/lcov-report/monodog-dashboard/src/components/main-dashboard/components/Header.tsx.html +0 -226
  159. package/coverage/lcov-report/monodog-dashboard/src/components/main-dashboard/components/PackageDistribution.tsx.html +0 -187
  160. package/coverage/lcov-report/monodog-dashboard/src/components/main-dashboard/components/PackageSearchFilter.tsx.html +0 -226
  161. package/coverage/lcov-report/monodog-dashboard/src/components/main-dashboard/components/PackageTable.tsx.html +0 -343
  162. package/coverage/lcov-report/monodog-dashboard/src/components/main-dashboard/components/QuickActions.tsx.html +0 -265
  163. package/coverage/lcov-report/monodog-dashboard/src/components/main-dashboard/components/StatsCards.tsx.html +0 -289
  164. package/coverage/lcov-report/monodog-dashboard/src/components/main-dashboard/components/index.html +0 -206
  165. package/coverage/lcov-report/monodog-dashboard/src/components/main-dashboard/components/index.ts.html +0 -106
  166. package/coverage/lcov-report/monodog-dashboard/src/components/main-dashboard/index.html +0 -116
  167. package/coverage/lcov-report/monodog-dashboard/src/components/main-dashboard/utils/dashboard.utils.ts.html +0 -292
  168. package/coverage/lcov-report/monodog-dashboard/src/components/main-dashboard/utils/index.html +0 -116
  169. package/coverage/lcov-report/monodog-dashboard/src/components/modules/ci-integration/CIIntegration.tsx.html +0 -913
  170. package/coverage/lcov-report/monodog-dashboard/src/components/modules/ci-integration/components/BuildDetails.tsx.html +0 -769
  171. package/coverage/lcov-report/monodog-dashboard/src/components/modules/ci-integration/components/BuildList.tsx.html +0 -721
  172. package/coverage/lcov-report/monodog-dashboard/src/components/modules/ci-integration/components/BuildOverview.tsx.html +0 -559
  173. package/coverage/lcov-report/monodog-dashboard/src/components/modules/ci-integration/components/CIIntegrationHeader.tsx.html +0 -199
  174. package/coverage/lcov-report/monodog-dashboard/src/components/modules/ci-integration/components/ErrorState.tsx.html +0 -160
  175. package/coverage/lcov-report/monodog-dashboard/src/components/modules/ci-integration/components/LoadingState.tsx.html +0 -139
  176. package/coverage/lcov-report/monodog-dashboard/src/components/modules/ci-integration/components/PipelineStatus.tsx.html +0 -754
  177. package/coverage/lcov-report/monodog-dashboard/src/components/modules/ci-integration/components/index.html +0 -221
  178. package/coverage/lcov-report/monodog-dashboard/src/components/modules/ci-integration/components/index.ts.html +0 -109
  179. package/coverage/lcov-report/monodog-dashboard/src/components/modules/ci-integration/index.html +0 -116
  180. package/coverage/lcov-report/monodog-dashboard/src/components/modules/ci-integration/utils/ci.utils.ts.html +0 -871
  181. package/coverage/lcov-report/monodog-dashboard/src/components/modules/ci-integration/utils/index.html +0 -116
  182. package/coverage/lcov-report/monodog-dashboard/src/components/modules/config-inspector/ConfigInspector.tsx.html +0 -1054
  183. package/coverage/lcov-report/monodog-dashboard/src/components/modules/config-inspector/components/ConfigEditor.tsx.html +0 -361
  184. package/coverage/lcov-report/monodog-dashboard/src/components/modules/config-inspector/components/ConfigInspectorHeader.tsx.html +0 -193
  185. package/coverage/lcov-report/monodog-dashboard/src/components/modules/config-inspector/components/ConfigPreview.tsx.html +0 -352
  186. package/coverage/lcov-report/monodog-dashboard/src/components/modules/config-inspector/components/ConfigSidebar.tsx.html +0 -505
  187. package/coverage/lcov-report/monodog-dashboard/src/components/modules/config-inspector/components/ConfigToolbar.tsx.html +0 -637
  188. package/coverage/lcov-report/monodog-dashboard/src/components/modules/config-inspector/components/ErrorState.tsx.html +0 -160
  189. package/coverage/lcov-report/monodog-dashboard/src/components/modules/config-inspector/components/LoadingState.tsx.html +0 -139
  190. package/coverage/lcov-report/monodog-dashboard/src/components/modules/config-inspector/components/ValidationPanel.tsx.html +0 -550
  191. package/coverage/lcov-report/monodog-dashboard/src/components/modules/config-inspector/components/index.html +0 -236
  192. package/coverage/lcov-report/monodog-dashboard/src/components/modules/config-inspector/components/index.ts.html +0 -112
  193. package/coverage/lcov-report/monodog-dashboard/src/components/modules/config-inspector/index.html +0 -116
  194. package/coverage/lcov-report/monodog-dashboard/src/components/modules/config-inspector/utils/config.utils.ts.html +0 -2242
  195. package/coverage/lcov-report/monodog-dashboard/src/components/modules/config-inspector/utils/index.html +0 -116
  196. package/coverage/lcov-report/monodog-dashboard/src/components/modules/dependency-graph/DependencyGraph.tsx.html +0 -754
  197. package/coverage/lcov-report/monodog-dashboard/src/components/modules/dependency-graph/components/CircularDependencies.tsx.html +0 -613
  198. package/coverage/lcov-report/monodog-dashboard/src/components/modules/dependency-graph/components/DependencyDetails.tsx.html +0 -661
  199. package/coverage/lcov-report/monodog-dashboard/src/components/modules/dependency-graph/components/DependencyGraphHeader.tsx.html +0 -187
  200. package/coverage/lcov-report/monodog-dashboard/src/components/modules/dependency-graph/components/DependencyList.tsx.html +0 -613
  201. package/coverage/lcov-report/monodog-dashboard/src/components/modules/dependency-graph/components/ErrorState.tsx.html +0 -160
  202. package/coverage/lcov-report/monodog-dashboard/src/components/modules/dependency-graph/components/GraphLegend.tsx.html +0 -430
  203. package/coverage/lcov-report/monodog-dashboard/src/components/modules/dependency-graph/components/GraphStats.tsx.html +0 -493
  204. package/coverage/lcov-report/monodog-dashboard/src/components/modules/dependency-graph/components/GraphToolbar.tsx.html +0 -406
  205. package/coverage/lcov-report/monodog-dashboard/src/components/modules/dependency-graph/components/GraphVisualization.tsx.html +0 -619
  206. package/coverage/lcov-report/monodog-dashboard/src/components/modules/dependency-graph/components/LoadingState.tsx.html +0 -139
  207. package/coverage/lcov-report/monodog-dashboard/src/components/modules/dependency-graph/components/index.html +0 -266
  208. package/coverage/lcov-report/monodog-dashboard/src/components/modules/dependency-graph/components/index.ts.html +0 -118
  209. package/coverage/lcov-report/monodog-dashboard/src/components/modules/dependency-graph/index.html +0 -116
  210. package/coverage/lcov-report/monodog-dashboard/src/components/modules/dependency-graph/utils/dependency.utils.ts.html +0 -1393
  211. package/coverage/lcov-report/monodog-dashboard/src/components/modules/dependency-graph/utils/index.html +0 -116
  212. package/coverage/lcov-report/monodog-dashboard/src/components/modules/health-status/HealthStatus.tsx.html +0 -2296
  213. package/coverage/lcov-report/monodog-dashboard/src/components/modules/health-status/index.html +0 -116
  214. package/coverage/lcov-report/monodog-dashboard/src/components/modules/packages/PackageDetail.tsx.html +0 -850
  215. package/coverage/lcov-report/monodog-dashboard/src/components/modules/packages/PackagesOverview.tsx.html +0 -580
  216. package/coverage/lcov-report/monodog-dashboard/src/components/modules/packages/components/ConfigurationTab.tsx.html +0 -1027
  217. package/coverage/lcov-report/monodog-dashboard/src/components/modules/packages/components/DependenciesTab.tsx.html +0 -556
  218. package/coverage/lcov-report/monodog-dashboard/src/components/modules/packages/components/ErrorState.tsx.html +0 -148
  219. package/coverage/lcov-report/monodog-dashboard/src/components/modules/packages/components/HealthMetricsTab.tsx.html +0 -910
  220. package/coverage/lcov-report/monodog-dashboard/src/components/modules/packages/components/LoadingState.tsx.html +0 -127
  221. package/coverage/lcov-report/monodog-dashboard/src/components/modules/packages/components/PackageDetailHeader.tsx.html +0 -592
  222. package/coverage/lcov-report/monodog-dashboard/src/components/modules/packages/components/PackageDetailTabs.tsx.html +0 -232
  223. package/coverage/lcov-report/monodog-dashboard/src/components/modules/packages/components/PackageStats.tsx.html +0 -301
  224. package/coverage/lcov-report/monodog-dashboard/src/components/modules/packages/components/PackagesTable.tsx.html +0 -589
  225. package/coverage/lcov-report/monodog-dashboard/src/components/modules/packages/components/RecentCommitsTab.tsx.html +0 -364
  226. package/coverage/lcov-report/monodog-dashboard/src/components/modules/packages/components/SearchAndFilter.tsx.html +0 -301
  227. package/coverage/lcov-report/monodog-dashboard/src/components/modules/packages/components/index.html +0 -281
  228. package/coverage/lcov-report/monodog-dashboard/src/components/modules/packages/components/index.ts.html +0 -121
  229. package/coverage/lcov-report/monodog-dashboard/src/components/modules/packages/index.html +0 -131
  230. package/coverage/lcov-report/monodog-dashboard/src/components/modules/packages/utils/index.html +0 -116
  231. package/coverage/lcov-report/monodog-dashboard/src/components/modules/packages/utils/packages.utils.ts.html +0 -613
  232. package/coverage/lcov-report/monodog-dashboard/src/components/publish-control/PublishControl.tsx.html +0 -769
  233. package/coverage/lcov-report/monodog-dashboard/src/components/publish-control/components/ChangelogViewer.tsx.html +0 -394
  234. package/coverage/lcov-report/monodog-dashboard/src/components/publish-control/components/ErrorState.tsx.html +0 -154
  235. package/coverage/lcov-report/monodog-dashboard/src/components/publish-control/components/LoadingState.tsx.html +0 -121
  236. package/coverage/lcov-report/monodog-dashboard/src/components/publish-control/components/PackageReleaseTable.tsx.html +0 -505
  237. package/coverage/lcov-report/monodog-dashboard/src/components/publish-control/components/PublishHeader.tsx.html +0 -175
  238. package/coverage/lcov-report/monodog-dashboard/src/components/publish-control/components/QuickActionCards.tsx.html +0 -253
  239. package/coverage/lcov-report/monodog-dashboard/src/components/publish-control/components/ReleaseSchedule.tsx.html +0 -397
  240. package/coverage/lcov-report/monodog-dashboard/src/components/publish-control/components/index.html +0 -221
  241. package/coverage/lcov-report/monodog-dashboard/src/components/publish-control/components/index.ts.html +0 -109
  242. package/coverage/lcov-report/monodog-dashboard/src/components/publish-control/index.html +0 -116
  243. package/coverage/lcov-report/monodog-dashboard/src/components/publish-control/utils/index.html +0 -116
  244. package/coverage/lcov-report/monodog-dashboard/src/components/publish-control/utils/publish.utils.ts.html +0 -262
  245. package/coverage/lcov-report/monodog-dashboard/src/components/setup-guide/SetupGuide.tsx.html +0 -373
  246. package/coverage/lcov-report/monodog-dashboard/src/components/setup-guide/components/SetupHeader.tsx.html +0 -157
  247. package/coverage/lcov-report/monodog-dashboard/src/components/setup-guide/components/SetupModal.tsx.html +0 -163
  248. package/coverage/lcov-report/monodog-dashboard/src/components/setup-guide/components/SetupProgress.tsx.html +0 -172
  249. package/coverage/lcov-report/monodog-dashboard/src/components/setup-guide/components/StepContent.tsx.html +0 -901
  250. package/coverage/lcov-report/monodog-dashboard/src/components/setup-guide/components/StepNavigation.tsx.html +0 -271
  251. package/coverage/lcov-report/monodog-dashboard/src/components/setup-guide/components/index.html +0 -191
  252. package/coverage/lcov-report/monodog-dashboard/src/components/setup-guide/components/index.ts.html +0 -103
  253. package/coverage/lcov-report/monodog-dashboard/src/components/setup-guide/index.html +0 -116
  254. package/coverage/lcov-report/monodog-dashboard/src/components/setup-guide/utils/index.html +0 -116
  255. package/coverage/lcov-report/monodog-dashboard/src/components/setup-guide/utils/setup.utils.ts.html +0 -322
  256. package/coverage/lcov-report/monodog-dashboard/src/pages/CIPage.tsx.html +0 -103
  257. package/coverage/lcov-report/monodog-dashboard/src/pages/ConfigPage.tsx.html +0 -103
  258. package/coverage/lcov-report/monodog-dashboard/src/pages/DashboardPage.tsx.html +0 -103
  259. package/coverage/lcov-report/monodog-dashboard/src/pages/HealthPage.tsx.html +0 -103
  260. package/coverage/lcov-report/monodog-dashboard/src/pages/PackageDetailPage.tsx.html +0 -103
  261. package/coverage/lcov-report/monodog-dashboard/src/pages/PackagesPage.tsx.html +0 -103
  262. package/coverage/lcov-report/monodog-dashboard/src/pages/PublishPage.tsx.html +0 -103
  263. package/coverage/lcov-report/monodog-dashboard/src/pages/index.html +0 -206
  264. package/coverage/lcov-report/monodog-dashboard/src/services/index.html +0 -116
  265. package/coverage/lcov-report/monodog-dashboard/src/services/monorepoService.ts.html +0 -3010
  266. package/coverage/lcov-report/pages/CIPage.tsx.html +0 -103
  267. package/coverage/lcov-report/pages/ConfigPage.tsx.html +0 -103
  268. package/coverage/lcov-report/pages/DashboardPage.tsx.html +0 -103
  269. package/coverage/lcov-report/pages/HealthPage.tsx.html +0 -103
  270. package/coverage/lcov-report/pages/PackageDetailPage.tsx.html +0 -103
  271. package/coverage/lcov-report/pages/PackagesPage.tsx.html +0 -103
  272. package/coverage/lcov-report/pages/PublishPage.tsx.html +0 -103
  273. package/coverage/lcov-report/pages/index.html +0 -206
  274. package/coverage/lcov-report/prettify.css +0 -1
  275. package/coverage/lcov-report/prettify.js +0 -2
  276. package/coverage/lcov-report/services/index.html +0 -116
  277. package/coverage/lcov-report/services/monorepoService.ts.html +0 -3010
  278. package/coverage/lcov-report/sort-arrow-sprite.png +0 -0
  279. package/coverage/lcov-report/sorter.js +0 -210
  280. package/coverage/lcov-report/src/config-loader.ts.html +0 -442
  281. package/coverage/lcov-report/src/index.html +0 -116
  282. package/coverage/lcov-report/src/utils/ci-status.ts.html +0 -2002
  283. package/coverage/lcov-report/src/utils/index.html +0 -131
  284. package/coverage/lcov-report/src/utils/utilities.ts.html +0 -1534
  285. package/coverage/lcov-report/utilities.ts.html +0 -1516
  286. package/coverage/lcov.info +0 -5870
  287. package/src/gitService.ts +0 -276
  288. /package/{monodog-conf.example.json → monodog-config.example.json} +0 -0
@@ -0,0 +1,165 @@
1
+ /**
2
+ * GitService.ts
3
+ *
4
+ * This service executes native 'git' commands using Node.js's child_process
5
+ * to retrieve the commit history of the local repository.
6
+ */
7
+
8
+ import { exec } from 'child_process';
9
+ import { promisify } from 'util';
10
+ import path from 'path';
11
+
12
+ // Promisify the standard 'exec' function for easy async/await usage
13
+ const execPromise = promisify(exec);
14
+
15
+ /**
16
+ * Interface representing a single commit object with key metadata.
17
+ */
18
+ interface GitCommit {
19
+ hash: string;
20
+ author: string;
21
+ packageName: string;
22
+ date: Date;
23
+ message: string;
24
+ type: string;
25
+ }
26
+ /**
27
+ * List of standard Conventional Commit types for validation.
28
+ * Any extracted type not in this list will be set to 'other'.
29
+ */
30
+ const VALID_COMMIT_TYPES: string[] = [
31
+ 'feat', // New feature
32
+ 'fix', // Bug fix
33
+ 'docs', // Documentation changes
34
+ 'style', // Code style changes (formatting, etc)
35
+ 'refactor', // Code refactoring
36
+ 'perf', // Performance improvements
37
+ 'test', // Adding or updating tests
38
+ 'chore', // Maintenance tasks (e.g., build scripts, dependency updates)
39
+ 'ci', // CI/CD changes
40
+ 'build', // Build system changes (e.g., pnpm/npm scripts)
41
+ 'revert', // Reverting changes
42
+ ];
43
+
44
+ export class GitService {
45
+ private repoPath: string;
46
+
47
+ constructor(repoPath: string = process.cwd()) {
48
+ this.repoPath = repoPath;
49
+ }
50
+
51
+ /**
52
+ * Retrieves commit history for the repository, optionally filtered by a package path.
53
+ */
54
+ public async getAllCommits(pathFilter?: string): Promise<GitCommit[]> {
55
+ try {
56
+
57
+ let pathArgument = '';
58
+ if (pathFilter) {
59
+ // Normalize the path and ensure it's relative to the repo root
60
+ const normalizedPath = this.normalizePath(pathFilter);
61
+ if (normalizedPath) {
62
+ pathArgument = ` -C ${normalizedPath}`;
63
+ }
64
+ }
65
+
66
+ // First, validate we're in a git repo
67
+ await this.validateGitRepository(pathArgument);
68
+
69
+ console.log(`🔧 Executing Git command in: ${this.repoPath}`);
70
+ // Use a simpler git log format
71
+ const command = `git log --pretty=format:"%H|%an|%ad|%s" --date=iso-strict ${pathArgument}`;
72
+ console.log(`📝 Git command: ${command}`);
73
+
74
+ const { stdout, stderr } = await execPromise(command, {
75
+ cwd: this.repoPath,
76
+ maxBuffer: 1024 * 5000,
77
+ });
78
+
79
+ if (stderr) {
80
+ console.warn('Git stderr:', stderr);
81
+ }
82
+
83
+ if (!stdout.trim()) {
84
+ console.log('📭 No commits found for path:', pathFilter);
85
+ return [];
86
+ }
87
+
88
+ // Parse the output
89
+ const commits: GitCommit[] = [];
90
+ const lines = stdout.trim().split('\n');
91
+
92
+ for (const line of lines) {
93
+ try {
94
+ const [hash, author, date, message] = line.split('|');
95
+
96
+ const commit: GitCommit = {
97
+ hash: hash.trim(),
98
+ author: author.trim(),
99
+ packageName: pathFilter || 'root',
100
+ date: new Date(date.trim()),
101
+ message: message.trim(),
102
+ type: this.extractCommitType(message.trim()),
103
+ };
104
+
105
+ commits.push(commit);
106
+ } catch (parseError) {
107
+ console.error('❌ Failed to parse commit line:', line, parseError);
108
+ }
109
+ }
110
+
111
+ console.log(`✅ Successfully parsed ${commits.length} commits`);
112
+ return commits;
113
+ } catch (error) {
114
+ console.error('💥 Error in getAllCommits:', error);
115
+ throw error;
116
+ }
117
+ }
118
+
119
+ /**
120
+ * Normalize path to be relative to git repo root
121
+ */
122
+ private normalizePath(inputPath: string): string {
123
+ // If it's an absolute path, make it relative to repo root
124
+ if (path.isAbsolute(inputPath)) {
125
+ return path.relative(this.repoPath, inputPath);
126
+ }
127
+
128
+ // If it's already relative, return as-is
129
+ return inputPath;
130
+ }
131
+
132
+ /**
133
+ * Extract commit type from message
134
+ */
135
+ private extractCommitType(message: string): string {
136
+ try {
137
+ const typeMatch = message.match(/^(\w+)(\([^)]+\))?!?:/);
138
+ if (typeMatch) {
139
+ const rawType = typeMatch[1].toLowerCase();
140
+ if (VALID_COMMIT_TYPES.includes(rawType)) {
141
+ return rawType;
142
+ }
143
+ }
144
+ return 'other';
145
+ } catch (error) {
146
+ return 'other';
147
+ }
148
+ }
149
+
150
+ /**
151
+ * Validate that we're in a git repository
152
+ */
153
+ private async validateGitRepository(pathArgument: string): Promise<void> {
154
+ try {
155
+ await execPromise('git '+pathArgument+' rev-parse --is-inside-work-tree', {
156
+ cwd: this.repoPath,
157
+ });
158
+ console.log('✅ Valid git repository');
159
+ } catch (error) {
160
+ throw new Error(
161
+ 'Not a git repository (or any of the parent directories)'
162
+ );
163
+ }
164
+ }
165
+ }
@@ -3,6 +3,7 @@ import * as fs from 'fs';
3
3
  import path from 'path';
4
4
  import { appConfig } from '../config-loader';
5
5
  import {calculatePackageHealth} from './health-utils';
6
+ import * as yaml from 'js-yaml';
6
7
 
7
8
  export {PackageHealth} from './health-utils';
8
9
 
@@ -73,30 +74,72 @@ export function resolveWorkspaceGlobs(rootDir: string, globs: string[]): string[
73
74
  }
74
75
 
75
76
  /**
76
- * Reads the root package.json and extracts the 'workspaces' field (array of globs).
77
+ * Parses pnpm-workspace.yaml and extracts workspace globs
77
78
  */
78
- export function getWorkspacesFromRoot(rootDir: string): string[] | undefined {
79
- const packageJsonPath = path.join(rootDir, 'package.json');
80
- if (!fs.existsSync(packageJsonPath)) {
81
- console.warn(`\n⚠️ Warning: No package.json found at root directory: ${rootDir}`);
79
+ function getWorkspacesFromPnpmYaml(rootDir: string): string[] | undefined {
80
+ const workspaceYamlPath = path.join(rootDir, 'pnpm-workspace.yaml');
81
+ if (!fs.existsSync(workspaceYamlPath)) {
82
82
  return undefined;
83
83
  }
84
84
 
85
85
  try {
86
- const packageJson = JSON.parse(fs.readFileSync(packageJsonPath, 'utf-8'));
86
+ const yamlContent = fs.readFileSync(workspaceYamlPath, 'utf-8');
87
+ const yamlData = yaml.load(yamlContent) as { packages?: (string | string[]) };
87
88
 
88
- // Handle both standard array and object format (used by yarn/pnpm)
89
- if (Array.isArray(packageJson.workspaces)) {
90
- return packageJson.workspaces;
91
- } else if (packageJson.workspaces && Array.isArray(packageJson.workspaces.packages)) {
92
- return packageJson.workspaces.packages;
89
+ if (yamlData && yamlData.packages) {
90
+ // Filter out exclusion patterns (lines starting with '!')
91
+ const packages = Array.isArray(yamlData.packages)
92
+ ? yamlData.packages.filter((pkg) => typeof pkg === 'string' && !pkg.startsWith('!'))
93
+ : [];
94
+
95
+ if (packages.length > 0) {
96
+ return packages;
97
+ }
93
98
  }
94
99
  } catch (e) {
95
- console.error(`\n❌ Error parsing package.json at ${packageJsonPath}. Skipping workspace detection.`);
100
+ console.error(`\n❌ Error parsing pnpm-workspace.yaml at ${workspaceYamlPath}:`, e);
96
101
  }
97
102
  return undefined;
98
103
  }
99
104
 
105
+ /**
106
+ * Reads workspace configuration from package.json or pnpm-workspace.yaml
107
+ * Priority: package.json (if exists) -> pnpm-workspace.yaml
108
+ */
109
+ export function getWorkspacesFromRoot(rootDir: string): string[] | undefined {
110
+ const packageJsonPath = path.join(rootDir, 'package.json');
111
+
112
+ // Try package.json first
113
+ if (fs.existsSync(packageJsonPath)) {
114
+ try {
115
+ const packageJson = JSON.parse(fs.readFileSync(packageJsonPath, 'utf-8'));
116
+
117
+ // Handle both standard array and object format (used by yarn/pnpm)
118
+ if (Array.isArray(packageJson.workspaces)) {
119
+ console.log('✅ Workspace configuration found in package.json');
120
+ return packageJson.workspaces;
121
+ } else if (packageJson.workspaces && Array.isArray(packageJson.workspaces.packages)) {
122
+ console.log('✅ Workspace configuration found in package.json');
123
+ return packageJson.workspaces.packages;
124
+ }
125
+ } catch (e) {
126
+ console.error(`\n❌ Error parsing package.json at ${packageJsonPath}. Attempting to read pnpm-workspace.yaml...`);
127
+ }
128
+ } else {
129
+ console.warn(`\n⚠️ Warning: No package.json found at root directory: ${rootDir}`);
130
+ }
131
+
132
+ // Fallback to pnpm-workspace.yaml
133
+ const pnpmWorkspaces = getWorkspacesFromPnpmYaml(rootDir);
134
+ if (pnpmWorkspaces && pnpmWorkspaces.length > 0) {
135
+ console.log('✅ Workspace configuration found in pnpm-workspace.yaml');
136
+ return pnpmWorkspaces;
137
+ }
138
+
139
+ console.warn('\n⚠️ No workspace configuration found in package.json or pnpm-workspace.yaml');
140
+ return undefined;
141
+ }
142
+
100
143
  /**
101
144
  * Scans the monorepo and returns information about all packages
102
145
  */
@@ -104,7 +147,7 @@ function scanMonorepo(rootDir: string): PackageInfo[] {
104
147
  const packages: PackageInfo[] = [];
105
148
  console.log('rootDir:', rootDir);
106
149
  const workspacesGlobs = appConfig.workspaces;
107
- // Use provided workspaces globs if given, otherwise attempt to detect from root package.json
150
+ // Use provided workspaces globs if given, otherwise attempt to detect from root package.json or pnpm-workspace.yaml
108
151
  const detectedWorkspacesGlobs = workspacesGlobs.length > 0 ? workspacesGlobs : getWorkspacesFromRoot(rootDir);
109
152
  if (detectedWorkspacesGlobs && detectedWorkspacesGlobs.length > 0) {
110
153
  if (workspacesGlobs.length) {
@@ -356,6 +399,53 @@ function getPackageSize(packagePath: string): {
356
399
  }
357
400
  }
358
401
 
402
+ /**
403
+ * Find the monorepo root by looking for package.json with workspaces or pnpm-workspace.yaml
404
+ */
405
+ function findMonorepoRoot(): string {
406
+ let currentDir = __dirname;
407
+
408
+ while (currentDir !== path.parse(currentDir).root) {
409
+ const packageJsonPath = path.join(currentDir, 'package.json');
410
+ const pnpmWorkspacePath = path.join(currentDir, 'pnpm-workspace.yaml');
411
+
412
+ // Check if this directory has package.json with workspaces or pnpm-workspace.yaml
413
+ if (fs.existsSync(packageJsonPath)) {
414
+ try {
415
+ const packageJson = JSON.parse(
416
+ fs.readFileSync(packageJsonPath, 'utf8')
417
+ );
418
+ // If it has workspaces or is the root monorepo package
419
+ if (packageJson.workspaces || fs.existsSync(pnpmWorkspacePath)) {
420
+ console.log('✅ Found monorepo root:', currentDir);
421
+ return currentDir;
422
+ }
423
+ } catch (error) {
424
+ // Continue searching if package.json is invalid
425
+ }
426
+ }
427
+
428
+ // Check if we're at the git root
429
+ const gitPath = path.join(currentDir, '.git');
430
+ if (fs.existsSync(gitPath)) {
431
+ console.log('✅ Found git root (likely monorepo root):', currentDir);
432
+ return currentDir;
433
+ }
434
+
435
+ // Go up one directory
436
+ const parentDir = path.dirname(currentDir);
437
+ if (parentDir === currentDir) break; // Prevent infinite loop
438
+ currentDir = parentDir;
439
+ }
440
+
441
+ // Fallback to process.cwd() if we can't find the root
442
+ console.log(
443
+ '⚠️ Could not find monorepo root, using process.cwd():',
444
+ process.cwd()
445
+ );
446
+ return process.cwd();
447
+ }
448
+
359
449
  export {
360
450
  scanMonorepo,
361
451
  generateMonorepoStats,
@@ -363,5 +453,6 @@ export {
363
453
  generateDependencyGraph,
364
454
  checkOutdatedDependencies,
365
455
  getPackageSize,
366
- calculatePackageHealth
456
+ calculatePackageHealth,
457
+ findMonorepoRoot,
367
458
  };
@@ -1,4 +0,0 @@
1
-
2
- > @manojkmfsi/monoapp@2.0.1 lint /home/manoj/Documents/mjdog/packages/monoapp
3
- > eslint .
4
-