@shirokuma-library/shirokuma-docs 0.1.0-alpha.5

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.

Potentially problematic release.


This version of @shirokuma-library/shirokuma-docs might be problematic. Click here for more details.

Files changed (753) hide show
  1. package/LICENSE +21 -0
  2. package/README.en.md +308 -0
  3. package/README.md +308 -0
  4. package/THIRD_PARTY_NOTICES.md +18 -0
  5. package/bin/shirokuma-docs +2 -0
  6. package/dist/analyzers/details-test-analysis.d.ts +31 -0
  7. package/dist/analyzers/details-test-analysis.d.ts.map +1 -0
  8. package/dist/analyzers/details-test-analysis.js +172 -0
  9. package/dist/analyzers/details-test-analysis.js.map +1 -0
  10. package/dist/analyzers/feature-map-builder.d.ts +20 -0
  11. package/dist/analyzers/feature-map-builder.d.ts.map +1 -0
  12. package/dist/analyzers/feature-map-builder.js +154 -0
  13. package/dist/analyzers/feature-map-builder.js.map +1 -0
  14. package/dist/analyzers/feature-map-references.d.ts +34 -0
  15. package/dist/analyzers/feature-map-references.d.ts.map +1 -0
  16. package/dist/analyzers/feature-map-references.js +249 -0
  17. package/dist/analyzers/feature-map-references.js.map +1 -0
  18. package/dist/analyzers/reference-analyzer.d.ts +95 -0
  19. package/dist/analyzers/reference-analyzer.d.ts.map +1 -0
  20. package/dist/analyzers/reference-analyzer.js +372 -0
  21. package/dist/analyzers/reference-analyzer.js.map +1 -0
  22. package/dist/commands/adr.d.ts +26 -0
  23. package/dist/commands/adr.d.ts.map +1 -0
  24. package/dist/commands/adr.js +129 -0
  25. package/dist/commands/adr.js.map +1 -0
  26. package/dist/commands/api-tools.d.ts +83 -0
  27. package/dist/commands/api-tools.d.ts.map +1 -0
  28. package/dist/commands/api-tools.js +775 -0
  29. package/dist/commands/api-tools.js.map +1 -0
  30. package/dist/commands/coverage.d.ts +139 -0
  31. package/dist/commands/coverage.d.ts.map +1 -0
  32. package/dist/commands/coverage.js +481 -0
  33. package/dist/commands/coverage.js.map +1 -0
  34. package/dist/commands/deps.d.ts +24 -0
  35. package/dist/commands/deps.d.ts.map +1 -0
  36. package/dist/commands/deps.js +211 -0
  37. package/dist/commands/deps.js.map +1 -0
  38. package/dist/commands/details-context.d.ts +38 -0
  39. package/dist/commands/details-context.d.ts.map +1 -0
  40. package/dist/commands/details-context.js +193 -0
  41. package/dist/commands/details-context.js.map +1 -0
  42. package/dist/commands/details-types.d.ts +315 -0
  43. package/dist/commands/details-types.d.ts.map +1 -0
  44. package/dist/commands/details-types.js +7 -0
  45. package/dist/commands/details-types.js.map +1 -0
  46. package/dist/commands/details.d.ts +24 -0
  47. package/dist/commands/details.d.ts.map +1 -0
  48. package/dist/commands/details.js +299 -0
  49. package/dist/commands/details.js.map +1 -0
  50. package/dist/commands/discussion-templates.d.ts +26 -0
  51. package/dist/commands/discussion-templates.d.ts.map +1 -0
  52. package/dist/commands/discussion-templates.js +270 -0
  53. package/dist/commands/discussion-templates.js.map +1 -0
  54. package/dist/commands/discussions.d.ts +31 -0
  55. package/dist/commands/discussions.d.ts.map +1 -0
  56. package/dist/commands/discussions.js +743 -0
  57. package/dist/commands/discussions.js.map +1 -0
  58. package/dist/commands/feature-map-types.d.ts +294 -0
  59. package/dist/commands/feature-map-types.d.ts.map +1 -0
  60. package/dist/commands/feature-map-types.js +8 -0
  61. package/dist/commands/feature-map-types.js.map +1 -0
  62. package/dist/commands/feature-map.d.ts +30 -0
  63. package/dist/commands/feature-map.d.ts.map +1 -0
  64. package/dist/commands/feature-map.js +137 -0
  65. package/dist/commands/feature-map.js.map +1 -0
  66. package/dist/commands/generate.d.ts +16 -0
  67. package/dist/commands/generate.d.ts.map +1 -0
  68. package/dist/commands/generate.js +88 -0
  69. package/dist/commands/generate.js.map +1 -0
  70. package/dist/commands/gh-discussions.d.ts +31 -0
  71. package/dist/commands/gh-discussions.d.ts.map +1 -0
  72. package/dist/commands/gh-discussions.js +743 -0
  73. package/dist/commands/gh-discussions.js.map +1 -0
  74. package/dist/commands/gh-issues-pr.d.ts +74 -0
  75. package/dist/commands/gh-issues-pr.d.ts.map +1 -0
  76. package/dist/commands/gh-issues-pr.js +417 -0
  77. package/dist/commands/gh-issues-pr.js.map +1 -0
  78. package/dist/commands/gh-issues.d.ts +90 -0
  79. package/dist/commands/gh-issues.d.ts.map +1 -0
  80. package/dist/commands/gh-issues.js +1297 -0
  81. package/dist/commands/gh-issues.js.map +1 -0
  82. package/dist/commands/gh-projects.d.ts +54 -0
  83. package/dist/commands/gh-projects.d.ts.map +1 -0
  84. package/dist/commands/gh-projects.js +966 -0
  85. package/dist/commands/gh-projects.js.map +1 -0
  86. package/dist/commands/gh-repo.d.ts +18 -0
  87. package/dist/commands/gh-repo.d.ts.map +1 -0
  88. package/dist/commands/gh-repo.js +253 -0
  89. package/dist/commands/gh-repo.js.map +1 -0
  90. package/dist/commands/github-data.d.ts +67 -0
  91. package/dist/commands/github-data.d.ts.map +1 -0
  92. package/dist/commands/github-data.js +361 -0
  93. package/dist/commands/github-data.js.map +1 -0
  94. package/dist/commands/i18n.d.ts +102 -0
  95. package/dist/commands/i18n.d.ts.map +1 -0
  96. package/dist/commands/i18n.js +829 -0
  97. package/dist/commands/i18n.js.map +1 -0
  98. package/dist/commands/impact.d.ts +14 -0
  99. package/dist/commands/impact.d.ts.map +1 -0
  100. package/dist/commands/impact.js +263 -0
  101. package/dist/commands/impact.js.map +1 -0
  102. package/dist/commands/init.d.ts +53 -0
  103. package/dist/commands/init.d.ts.map +1 -0
  104. package/dist/commands/init.js +429 -0
  105. package/dist/commands/init.js.map +1 -0
  106. package/dist/commands/issues-pr.d.ts +74 -0
  107. package/dist/commands/issues-pr.d.ts.map +1 -0
  108. package/dist/commands/issues-pr.js +417 -0
  109. package/dist/commands/issues-pr.js.map +1 -0
  110. package/dist/commands/issues.d.ts +76 -0
  111. package/dist/commands/issues.d.ts.map +1 -0
  112. package/dist/commands/issues.js +1285 -0
  113. package/dist/commands/issues.js.map +1 -0
  114. package/dist/commands/link-docs.d.ts +21 -0
  115. package/dist/commands/link-docs.d.ts.map +1 -0
  116. package/dist/commands/link-docs.js +990 -0
  117. package/dist/commands/link-docs.js.map +1 -0
  118. package/dist/commands/lint-annotations.d.ts +28 -0
  119. package/dist/commands/lint-annotations.d.ts.map +1 -0
  120. package/dist/commands/lint-annotations.js +511 -0
  121. package/dist/commands/lint-annotations.js.map +1 -0
  122. package/dist/commands/lint-code.d.ts +26 -0
  123. package/dist/commands/lint-code.d.ts.map +1 -0
  124. package/dist/commands/lint-code.js +428 -0
  125. package/dist/commands/lint-code.js.map +1 -0
  126. package/dist/commands/lint-coverage.d.ts +33 -0
  127. package/dist/commands/lint-coverage.d.ts.map +1 -0
  128. package/dist/commands/lint-coverage.js +379 -0
  129. package/dist/commands/lint-coverage.js.map +1 -0
  130. package/dist/commands/lint-docs.d.ts +23 -0
  131. package/dist/commands/lint-docs.d.ts.map +1 -0
  132. package/dist/commands/lint-docs.js +338 -0
  133. package/dist/commands/lint-docs.js.map +1 -0
  134. package/dist/commands/lint-structure.d.ts +38 -0
  135. package/dist/commands/lint-structure.d.ts.map +1 -0
  136. package/dist/commands/lint-structure.js +350 -0
  137. package/dist/commands/lint-structure.js.map +1 -0
  138. package/dist/commands/lint-tests.d.ts +25 -0
  139. package/dist/commands/lint-tests.d.ts.map +1 -0
  140. package/dist/commands/lint-tests.js +105 -0
  141. package/dist/commands/lint-tests.js.map +1 -0
  142. package/dist/commands/lint-workflow.d.ts +36 -0
  143. package/dist/commands/lint-workflow.d.ts.map +1 -0
  144. package/dist/commands/lint-workflow.js +255 -0
  145. package/dist/commands/lint-workflow.js.map +1 -0
  146. package/dist/commands/overview.d.ts +21 -0
  147. package/dist/commands/overview.d.ts.map +1 -0
  148. package/dist/commands/overview.js +1300 -0
  149. package/dist/commands/overview.js.map +1 -0
  150. package/dist/commands/packages.d.ts +107 -0
  151. package/dist/commands/packages.d.ts.map +1 -0
  152. package/dist/commands/packages.js +308 -0
  153. package/dist/commands/packages.js.map +1 -0
  154. package/dist/commands/portal-nextjs.d.ts +23 -0
  155. package/dist/commands/portal-nextjs.d.ts.map +1 -0
  156. package/dist/commands/portal-nextjs.js +336 -0
  157. package/dist/commands/portal-nextjs.js.map +1 -0
  158. package/dist/commands/portal.d.ts +24 -0
  159. package/dist/commands/portal.d.ts.map +1 -0
  160. package/dist/commands/portal.js +16 -0
  161. package/dist/commands/portal.js.map +1 -0
  162. package/dist/commands/projects.d.ts +54 -0
  163. package/dist/commands/projects.d.ts.map +1 -0
  164. package/dist/commands/projects.js +969 -0
  165. package/dist/commands/projects.js.map +1 -0
  166. package/dist/commands/repo-pairs.d.ts +19 -0
  167. package/dist/commands/repo-pairs.d.ts.map +1 -0
  168. package/dist/commands/repo-pairs.js +529 -0
  169. package/dist/commands/repo-pairs.js.map +1 -0
  170. package/dist/commands/repo.d.ts +18 -0
  171. package/dist/commands/repo.d.ts.map +1 -0
  172. package/dist/commands/repo.js +253 -0
  173. package/dist/commands/repo.js.map +1 -0
  174. package/dist/commands/schema.d.ts +49 -0
  175. package/dist/commands/schema.d.ts.map +1 -0
  176. package/dist/commands/schema.js +830 -0
  177. package/dist/commands/schema.js.map +1 -0
  178. package/dist/commands/screenshots.d.ts +203 -0
  179. package/dist/commands/screenshots.d.ts.map +1 -0
  180. package/dist/commands/screenshots.js +1234 -0
  181. package/dist/commands/screenshots.js.map +1 -0
  182. package/dist/commands/search-index.d.ts +83 -0
  183. package/dist/commands/search-index.d.ts.map +1 -0
  184. package/dist/commands/search-index.js +389 -0
  185. package/dist/commands/search-index.js.map +1 -0
  186. package/dist/commands/session.d.ts +153 -0
  187. package/dist/commands/session.d.ts.map +1 -0
  188. package/dist/commands/session.js +1243 -0
  189. package/dist/commands/session.js.map +1 -0
  190. package/dist/commands/test-cases-types.d.ts +154 -0
  191. package/dist/commands/test-cases-types.d.ts.map +1 -0
  192. package/dist/commands/test-cases-types.js +7 -0
  193. package/dist/commands/test-cases-types.js.map +1 -0
  194. package/dist/commands/test-cases.d.ts +28 -0
  195. package/dist/commands/test-cases.d.ts.map +1 -0
  196. package/dist/commands/test-cases.js +192 -0
  197. package/dist/commands/test-cases.js.map +1 -0
  198. package/dist/commands/typedoc.d.ts +21 -0
  199. package/dist/commands/typedoc.d.ts.map +1 -0
  200. package/dist/commands/typedoc.js +192 -0
  201. package/dist/commands/typedoc.js.map +1 -0
  202. package/dist/commands/update-skills.d.ts +56 -0
  203. package/dist/commands/update-skills.d.ts.map +1 -0
  204. package/dist/commands/update-skills.js +620 -0
  205. package/dist/commands/update-skills.js.map +1 -0
  206. package/dist/generators/details-entity-pages.d.ts +40 -0
  207. package/dist/generators/details-entity-pages.d.ts.map +1 -0
  208. package/dist/generators/details-entity-pages.js +301 -0
  209. package/dist/generators/details-entity-pages.js.map +1 -0
  210. package/dist/generators/details-html.d.ts +23 -0
  211. package/dist/generators/details-html.d.ts.map +1 -0
  212. package/dist/generators/details-html.js +324 -0
  213. package/dist/generators/details-html.js.map +1 -0
  214. package/dist/generators/details-module-page.d.ts +33 -0
  215. package/dist/generators/details-module-page.d.ts.map +1 -0
  216. package/dist/generators/details-module-page.js +408 -0
  217. package/dist/generators/details-module-page.js.map +1 -0
  218. package/dist/generators/details-styles.d.ts +39 -0
  219. package/dist/generators/details-styles.d.ts.map +1 -0
  220. package/dist/generators/details-styles.js +409 -0
  221. package/dist/generators/details-styles.js.map +1 -0
  222. package/dist/generators/feature-map-html.d.ts +66 -0
  223. package/dist/generators/feature-map-html.d.ts.map +1 -0
  224. package/dist/generators/feature-map-html.js +569 -0
  225. package/dist/generators/feature-map-html.js.map +1 -0
  226. package/dist/generators/feature-map-styles.d.ts +39 -0
  227. package/dist/generators/feature-map-styles.d.ts.map +1 -0
  228. package/dist/generators/feature-map-styles.js +449 -0
  229. package/dist/generators/feature-map-styles.js.map +1 -0
  230. package/dist/generators/test-cases-hierarchy.d.ts +21 -0
  231. package/dist/generators/test-cases-hierarchy.d.ts.map +1 -0
  232. package/dist/generators/test-cases-hierarchy.js +336 -0
  233. package/dist/generators/test-cases-hierarchy.js.map +1 -0
  234. package/dist/generators/test-cases-main.d.ts +20 -0
  235. package/dist/generators/test-cases-main.d.ts.map +1 -0
  236. package/dist/generators/test-cases-main.js +439 -0
  237. package/dist/generators/test-cases-main.js.map +1 -0
  238. package/dist/generators/test-cases-styles.d.ts +64 -0
  239. package/dist/generators/test-cases-styles.d.ts.map +1 -0
  240. package/dist/generators/test-cases-styles.js +1277 -0
  241. package/dist/generators/test-cases-styles.js.map +1 -0
  242. package/dist/index.d.ts +13 -0
  243. package/dist/index.d.ts.map +1 -0
  244. package/dist/index.js +517 -0
  245. package/dist/index.js.map +1 -0
  246. package/dist/lint/annotation-lint.d.ts +198 -0
  247. package/dist/lint/annotation-lint.d.ts.map +1 -0
  248. package/dist/lint/annotation-lint.js +510 -0
  249. package/dist/lint/annotation-lint.js.map +1 -0
  250. package/dist/lint/annotation-types.d.ts +161 -0
  251. package/dist/lint/annotation-types.d.ts.map +1 -0
  252. package/dist/lint/annotation-types.js +31 -0
  253. package/dist/lint/annotation-types.js.map +1 -0
  254. package/dist/lint/code-types.d.ts +135 -0
  255. package/dist/lint/code-types.d.ts.map +1 -0
  256. package/dist/lint/code-types.js +25 -0
  257. package/dist/lint/code-types.js.map +1 -0
  258. package/dist/lint/coverage-types.d.ts +128 -0
  259. package/dist/lint/coverage-types.d.ts.map +1 -0
  260. package/dist/lint/coverage-types.js +24 -0
  261. package/dist/lint/coverage-types.js.map +1 -0
  262. package/dist/lint/docs-types.d.ts +214 -0
  263. package/dist/lint/docs-types.d.ts.map +1 -0
  264. package/dist/lint/docs-types.js +18 -0
  265. package/dist/lint/docs-types.js.map +1 -0
  266. package/dist/lint/formatters/index.d.ts +14 -0
  267. package/dist/lint/formatters/index.d.ts.map +1 -0
  268. package/dist/lint/formatters/index.js +28 -0
  269. package/dist/lint/formatters/index.js.map +1 -0
  270. package/dist/lint/formatters/json.d.ts +11 -0
  271. package/dist/lint/formatters/json.d.ts.map +1 -0
  272. package/dist/lint/formatters/json.js +12 -0
  273. package/dist/lint/formatters/json.js.map +1 -0
  274. package/dist/lint/formatters/summary.d.ts +11 -0
  275. package/dist/lint/formatters/summary.d.ts.map +1 -0
  276. package/dist/lint/formatters/summary.js +37 -0
  277. package/dist/lint/formatters/summary.js.map +1 -0
  278. package/dist/lint/formatters/terminal.d.ts +11 -0
  279. package/dist/lint/formatters/terminal.d.ts.map +1 -0
  280. package/dist/lint/formatters/terminal.js +99 -0
  281. package/dist/lint/formatters/terminal.js.map +1 -0
  282. package/dist/lint/index.d.ts +18 -0
  283. package/dist/lint/index.d.ts.map +1 -0
  284. package/dist/lint/index.js +103 -0
  285. package/dist/lint/index.js.map +1 -0
  286. package/dist/lint/rules/annotation-required.d.ts +35 -0
  287. package/dist/lint/rules/annotation-required.d.ts.map +1 -0
  288. package/dist/lint/rules/annotation-required.js +127 -0
  289. package/dist/lint/rules/annotation-required.js.map +1 -0
  290. package/dist/lint/rules/code-rules.d.ts +12 -0
  291. package/dist/lint/rules/code-rules.d.ts.map +1 -0
  292. package/dist/lint/rules/code-rules.js +11 -0
  293. package/dist/lint/rules/code-rules.js.map +1 -0
  294. package/dist/lint/rules/describe-coverage.d.ts +8 -0
  295. package/dist/lint/rules/describe-coverage.d.ts.map +1 -0
  296. package/dist/lint/rules/describe-coverage.js +43 -0
  297. package/dist/lint/rules/describe-coverage.js.map +1 -0
  298. package/dist/lint/rules/duplicate-testdoc.d.ts +8 -0
  299. package/dist/lint/rules/duplicate-testdoc.d.ts.map +1 -0
  300. package/dist/lint/rules/duplicate-testdoc.js +38 -0
  301. package/dist/lint/rules/duplicate-testdoc.js.map +1 -0
  302. package/dist/lint/rules/index.d.ts +29 -0
  303. package/dist/lint/rules/index.d.ts.map +1 -0
  304. package/dist/lint/rules/index.js +55 -0
  305. package/dist/lint/rules/index.js.map +1 -0
  306. package/dist/lint/rules/server-action-structure.d.ts +37 -0
  307. package/dist/lint/rules/server-action-structure.d.ts.map +1 -0
  308. package/dist/lint/rules/server-action-structure.js +151 -0
  309. package/dist/lint/rules/server-action-structure.js.map +1 -0
  310. package/dist/lint/rules/skipped-test-report.d.ts +11 -0
  311. package/dist/lint/rules/skipped-test-report.d.ts.map +1 -0
  312. package/dist/lint/rules/skipped-test-report.js +31 -0
  313. package/dist/lint/rules/skipped-test-report.js.map +1 -0
  314. package/dist/lint/rules/structure-rules.d.ts +67 -0
  315. package/dist/lint/rules/structure-rules.d.ts.map +1 -0
  316. package/dist/lint/rules/structure-rules.js +615 -0
  317. package/dist/lint/rules/structure-rules.js.map +1 -0
  318. package/dist/lint/rules/testdoc-japanese.d.ts +8 -0
  319. package/dist/lint/rules/testdoc-japanese.d.ts.map +1 -0
  320. package/dist/lint/rules/testdoc-japanese.js +31 -0
  321. package/dist/lint/rules/testdoc-japanese.js.map +1 -0
  322. package/dist/lint/rules/testdoc-min-length.d.ts +8 -0
  323. package/dist/lint/rules/testdoc-min-length.d.ts.map +1 -0
  324. package/dist/lint/rules/testdoc-min-length.js +31 -0
  325. package/dist/lint/rules/testdoc-min-length.js.map +1 -0
  326. package/dist/lint/rules/testdoc-required.d.ts +8 -0
  327. package/dist/lint/rules/testdoc-required.d.ts.map +1 -0
  328. package/dist/lint/rules/testdoc-required.js +27 -0
  329. package/dist/lint/rules/testdoc-required.js.map +1 -0
  330. package/dist/lint/rules/workflow-branch-naming.d.ts +20 -0
  331. package/dist/lint/rules/workflow-branch-naming.d.ts.map +1 -0
  332. package/dist/lint/rules/workflow-branch-naming.js +85 -0
  333. package/dist/lint/rules/workflow-branch-naming.js.map +1 -0
  334. package/dist/lint/rules/workflow-commit-format.d.ts +27 -0
  335. package/dist/lint/rules/workflow-commit-format.d.ts.map +1 -0
  336. package/dist/lint/rules/workflow-commit-format.js +92 -0
  337. package/dist/lint/rules/workflow-commit-format.js.map +1 -0
  338. package/dist/lint/rules/workflow-issue-fields.d.ts +24 -0
  339. package/dist/lint/rules/workflow-issue-fields.d.ts.map +1 -0
  340. package/dist/lint/rules/workflow-issue-fields.js +89 -0
  341. package/dist/lint/rules/workflow-issue-fields.js.map +1 -0
  342. package/dist/lint/rules/workflow-main-protection.d.ts +32 -0
  343. package/dist/lint/rules/workflow-main-protection.d.ts.map +1 -0
  344. package/dist/lint/rules/workflow-main-protection.js +114 -0
  345. package/dist/lint/rules/workflow-main-protection.js.map +1 -0
  346. package/dist/lint/structure-types.d.ts +216 -0
  347. package/dist/lint/structure-types.d.ts.map +1 -0
  348. package/dist/lint/structure-types.js +96 -0
  349. package/dist/lint/structure-types.js.map +1 -0
  350. package/dist/lint/types.d.ts +154 -0
  351. package/dist/lint/types.d.ts.map +1 -0
  352. package/dist/lint/types.js +21 -0
  353. package/dist/lint/types.js.map +1 -0
  354. package/dist/lint/workflow-types.d.ts +90 -0
  355. package/dist/lint/workflow-types.d.ts.map +1 -0
  356. package/dist/lint/workflow-types.js +7 -0
  357. package/dist/lint/workflow-types.js.map +1 -0
  358. package/dist/md/analyzer/index.d.ts +46 -0
  359. package/dist/md/analyzer/index.d.ts.map +1 -0
  360. package/dist/md/analyzer/index.js +288 -0
  361. package/dist/md/analyzer/index.js.map +1 -0
  362. package/dist/md/builder/index.d.ts +91 -0
  363. package/dist/md/builder/index.d.ts.map +1 -0
  364. package/dist/md/builder/index.js +446 -0
  365. package/dist/md/builder/index.js.map +1 -0
  366. package/dist/md/cli/analyze.d.ts +11 -0
  367. package/dist/md/cli/analyze.d.ts.map +1 -0
  368. package/dist/md/cli/analyze.js +118 -0
  369. package/dist/md/cli/analyze.js.map +1 -0
  370. package/dist/md/cli/build.d.ts +11 -0
  371. package/dist/md/cli/build.d.ts.map +1 -0
  372. package/dist/md/cli/build.js +74 -0
  373. package/dist/md/cli/build.js.map +1 -0
  374. package/dist/md/cli/extract.d.ts +25 -0
  375. package/dist/md/cli/extract.d.ts.map +1 -0
  376. package/dist/md/cli/extract.js +230 -0
  377. package/dist/md/cli/extract.js.map +1 -0
  378. package/dist/md/cli/index.d.ts +3 -0
  379. package/dist/md/cli/index.d.ts.map +1 -0
  380. package/dist/md/cli/index.js +99 -0
  381. package/dist/md/cli/index.js.map +1 -0
  382. package/dist/md/cli/lint.d.ts +11 -0
  383. package/dist/md/cli/lint.d.ts.map +1 -0
  384. package/dist/md/cli/lint.js +165 -0
  385. package/dist/md/cli/lint.js.map +1 -0
  386. package/dist/md/cli/list.d.ts +16 -0
  387. package/dist/md/cli/list.d.ts.map +1 -0
  388. package/dist/md/cli/list.js +85 -0
  389. package/dist/md/cli/list.js.map +1 -0
  390. package/dist/md/cli/program.d.ts +11 -0
  391. package/dist/md/cli/program.d.ts.map +1 -0
  392. package/dist/md/cli/program.js +104 -0
  393. package/dist/md/cli/program.js.map +1 -0
  394. package/dist/md/cli/validate.d.ts +8 -0
  395. package/dist/md/cli/validate.d.ts.map +1 -0
  396. package/dist/md/cli/validate.js +82 -0
  397. package/dist/md/cli/validate.js.map +1 -0
  398. package/dist/md/constants.d.ts +69 -0
  399. package/dist/md/constants.d.ts.map +1 -0
  400. package/dist/md/constants.js +69 -0
  401. package/dist/md/constants.js.map +1 -0
  402. package/dist/md/extractor/index.d.ts +57 -0
  403. package/dist/md/extractor/index.d.ts.map +1 -0
  404. package/dist/md/extractor/index.js +359 -0
  405. package/dist/md/extractor/index.js.map +1 -0
  406. package/dist/md/index.d.ts +26 -0
  407. package/dist/md/index.d.ts.map +1 -0
  408. package/dist/md/index.js +30 -0
  409. package/dist/md/index.js.map +1 -0
  410. package/dist/md/linter/index.d.ts +20 -0
  411. package/dist/md/linter/index.d.ts.map +1 -0
  412. package/dist/md/linter/index.js +412 -0
  413. package/dist/md/linter/index.js.map +1 -0
  414. package/dist/md/linter/token-optimizer.d.ts +66 -0
  415. package/dist/md/linter/token-optimizer.d.ts.map +1 -0
  416. package/dist/md/linter/token-optimizer.js +292 -0
  417. package/dist/md/linter/token-optimizer.js.map +1 -0
  418. package/dist/md/lister/index.d.ts +42 -0
  419. package/dist/md/lister/index.d.ts.map +1 -0
  420. package/dist/md/lister/index.js +317 -0
  421. package/dist/md/lister/index.js.map +1 -0
  422. package/dist/md/parser/heading-numbers.d.ts +43 -0
  423. package/dist/md/parser/heading-numbers.d.ts.map +1 -0
  424. package/dist/md/parser/heading-numbers.js +97 -0
  425. package/dist/md/parser/heading-numbers.js.map +1 -0
  426. package/dist/md/parser/section-meta.d.ts +50 -0
  427. package/dist/md/parser/section-meta.d.ts.map +1 -0
  428. package/dist/md/parser/section-meta.js +212 -0
  429. package/dist/md/parser/section-meta.js.map +1 -0
  430. package/dist/md/parser/template.d.ts +56 -0
  431. package/dist/md/parser/template.d.ts.map +1 -0
  432. package/dist/md/parser/template.js +122 -0
  433. package/dist/md/parser/template.js.map +1 -0
  434. package/dist/md/plugins/loader.d.ts +15 -0
  435. package/dist/md/plugins/loader.d.ts.map +1 -0
  436. package/dist/md/plugins/loader.js +80 -0
  437. package/dist/md/plugins/loader.js.map +1 -0
  438. package/dist/md/plugins/normalize-headings.d.ts +43 -0
  439. package/dist/md/plugins/normalize-headings.d.ts.map +1 -0
  440. package/dist/md/plugins/normalize-headings.js +51 -0
  441. package/dist/md/plugins/normalize-headings.js.map +1 -0
  442. package/dist/md/plugins/normalize-whitespace.d.ts +46 -0
  443. package/dist/md/plugins/normalize-whitespace.d.ts.map +1 -0
  444. package/dist/md/plugins/normalize-whitespace.js +86 -0
  445. package/dist/md/plugins/normalize-whitespace.js.map +1 -0
  446. package/dist/md/plugins/remove-badges.d.ts +36 -0
  447. package/dist/md/plugins/remove-badges.d.ts.map +1 -0
  448. package/dist/md/plugins/remove-badges.js +59 -0
  449. package/dist/md/plugins/remove-badges.js.map +1 -0
  450. package/dist/md/plugins/remove-comments.d.ts +27 -0
  451. package/dist/md/plugins/remove-comments.d.ts.map +1 -0
  452. package/dist/md/plugins/remove-comments.js +40 -0
  453. package/dist/md/plugins/remove-comments.js.map +1 -0
  454. package/dist/md/plugins/remove-duplicates.d.ts +40 -0
  455. package/dist/md/plugins/remove-duplicates.d.ts.map +1 -0
  456. package/dist/md/plugins/remove-duplicates.js +72 -0
  457. package/dist/md/plugins/remove-duplicates.js.map +1 -0
  458. package/dist/md/plugins/remove-internal-links.d.ts +38 -0
  459. package/dist/md/plugins/remove-internal-links.d.ts.map +1 -0
  460. package/dist/md/plugins/remove-internal-links.js +66 -0
  461. package/dist/md/plugins/remove-internal-links.js.map +1 -0
  462. package/dist/md/plugins/strip-heading-numbers.d.ts +35 -0
  463. package/dist/md/plugins/strip-heading-numbers.d.ts.map +1 -0
  464. package/dist/md/plugins/strip-heading-numbers.js +59 -0
  465. package/dist/md/plugins/strip-heading-numbers.js.map +1 -0
  466. package/dist/md/plugins/strip-section-meta.d.ts +37 -0
  467. package/dist/md/plugins/strip-section-meta.d.ts.map +1 -0
  468. package/dist/md/plugins/strip-section-meta.js +62 -0
  469. package/dist/md/plugins/strip-section-meta.js.map +1 -0
  470. package/dist/md/types/config.d.ts +260 -0
  471. package/dist/md/types/config.d.ts.map +1 -0
  472. package/dist/md/types/config.js +156 -0
  473. package/dist/md/types/config.js.map +1 -0
  474. package/dist/md/types/document.d.ts +37 -0
  475. package/dist/md/types/document.d.ts.map +1 -0
  476. package/dist/md/types/document.js +2 -0
  477. package/dist/md/types/document.js.map +1 -0
  478. package/dist/md/types/validation.d.ts +107 -0
  479. package/dist/md/types/validation.d.ts.map +1 -0
  480. package/dist/md/types/validation.js +2 -0
  481. package/dist/md/types/validation.js.map +1 -0
  482. package/dist/md/utils/code-blocks.d.ts +136 -0
  483. package/dist/md/utils/code-blocks.d.ts.map +1 -0
  484. package/dist/md/utils/code-blocks.js +178 -0
  485. package/dist/md/utils/code-blocks.js.map +1 -0
  486. package/dist/md/utils/config.d.ts +10 -0
  487. package/dist/md/utils/config.d.ts.map +1 -0
  488. package/dist/md/utils/config.js +99 -0
  489. package/dist/md/utils/config.js.map +1 -0
  490. package/dist/md/utils/file-collector.d.ts +78 -0
  491. package/dist/md/utils/file-collector.d.ts.map +1 -0
  492. package/dist/md/utils/file-collector.js +100 -0
  493. package/dist/md/utils/file-collector.js.map +1 -0
  494. package/dist/md/utils/markdown.d.ts +18 -0
  495. package/dist/md/utils/markdown.d.ts.map +1 -0
  496. package/dist/md/utils/markdown.js +93 -0
  497. package/dist/md/utils/markdown.js.map +1 -0
  498. package/dist/md/utils/remark.d.ts +91 -0
  499. package/dist/md/utils/remark.d.ts.map +1 -0
  500. package/dist/md/utils/remark.js +125 -0
  501. package/dist/md/utils/remark.js.map +1 -0
  502. package/dist/md/utils/tokens.d.ts +9 -0
  503. package/dist/md/utils/tokens.d.ts.map +1 -0
  504. package/dist/md/utils/tokens.js +31 -0
  505. package/dist/md/utils/tokens.js.map +1 -0
  506. package/dist/md/validator/index.d.ts +40 -0
  507. package/dist/md/validator/index.d.ts.map +1 -0
  508. package/dist/md/validator/index.js +289 -0
  509. package/dist/md/validator/index.js.map +1 -0
  510. package/dist/parsers/details-jsdoc.d.ts +46 -0
  511. package/dist/parsers/details-jsdoc.d.ts.map +1 -0
  512. package/dist/parsers/details-jsdoc.js +262 -0
  513. package/dist/parsers/details-jsdoc.js.map +1 -0
  514. package/dist/parsers/details-zod.d.ts +22 -0
  515. package/dist/parsers/details-zod.d.ts.map +1 -0
  516. package/dist/parsers/details-zod.js +145 -0
  517. package/dist/parsers/details-zod.js.map +1 -0
  518. package/dist/parsers/drizzle-schema.d.ts +92 -0
  519. package/dist/parsers/drizzle-schema.d.ts.map +1 -0
  520. package/dist/parsers/drizzle-schema.js +376 -0
  521. package/dist/parsers/drizzle-schema.js.map +1 -0
  522. package/dist/parsers/feature-map-tags.d.ts +45 -0
  523. package/dist/parsers/feature-map-tags.d.ts.map +1 -0
  524. package/dist/parsers/feature-map-tags.js +292 -0
  525. package/dist/parsers/feature-map-tags.js.map +1 -0
  526. package/dist/parsers/feature-map-type-extraction.d.ts +62 -0
  527. package/dist/parsers/feature-map-type-extraction.d.ts.map +1 -0
  528. package/dist/parsers/feature-map-type-extraction.js +347 -0
  529. package/dist/parsers/feature-map-type-extraction.js.map +1 -0
  530. package/dist/parsers/feature-map-utils.d.ts +34 -0
  531. package/dist/parsers/feature-map-utils.d.ts.map +1 -0
  532. package/dist/parsers/feature-map-utils.js +101 -0
  533. package/dist/parsers/feature-map-utils.js.map +1 -0
  534. package/dist/parsers/jsdoc-common.d.ts +209 -0
  535. package/dist/parsers/jsdoc-common.d.ts.map +1 -0
  536. package/dist/parsers/jsdoc-common.js +655 -0
  537. package/dist/parsers/jsdoc-common.js.map +1 -0
  538. package/dist/parsers/jsdoc.d.ts +76 -0
  539. package/dist/parsers/jsdoc.d.ts.map +1 -0
  540. package/dist/parsers/jsdoc.js +238 -0
  541. package/dist/parsers/jsdoc.js.map +1 -0
  542. package/dist/parsers/screenshot-annotations.d.ts +96 -0
  543. package/dist/parsers/screenshot-annotations.d.ts.map +1 -0
  544. package/dist/parsers/screenshot-annotations.js +227 -0
  545. package/dist/parsers/screenshot-annotations.js.map +1 -0
  546. package/dist/parsers/test-annotations.d.ts +46 -0
  547. package/dist/parsers/test-annotations.d.ts.map +1 -0
  548. package/dist/parsers/test-annotations.js +393 -0
  549. package/dist/parsers/test-annotations.js.map +1 -0
  550. package/dist/parsers/test-categorization.d.ts +42 -0
  551. package/dist/parsers/test-categorization.d.ts.map +1 -0
  552. package/dist/parsers/test-categorization.js +182 -0
  553. package/dist/parsers/test-categorization.js.map +1 -0
  554. package/dist/parsers/zod-schema.d.ts +105 -0
  555. package/dist/parsers/zod-schema.d.ts.map +1 -0
  556. package/dist/parsers/zod-schema.js +270 -0
  557. package/dist/parsers/zod-schema.js.map +1 -0
  558. package/dist/utils/action-inference.d.ts +23 -0
  559. package/dist/utils/action-inference.d.ts.map +1 -0
  560. package/dist/utils/action-inference.js +36 -0
  561. package/dist/utils/action-inference.js.map +1 -0
  562. package/dist/utils/app-inference.d.ts +31 -0
  563. package/dist/utils/app-inference.d.ts.map +1 -0
  564. package/dist/utils/app-inference.js +41 -0
  565. package/dist/utils/app-inference.js.map +1 -0
  566. package/dist/utils/auto-infer.d.ts +93 -0
  567. package/dist/utils/auto-infer.d.ts.map +1 -0
  568. package/dist/utils/auto-infer.js +184 -0
  569. package/dist/utils/auto-infer.js.map +1 -0
  570. package/dist/utils/config.d.ts +709 -0
  571. package/dist/utils/config.d.ts.map +1 -0
  572. package/dist/utils/config.js +504 -0
  573. package/dist/utils/config.js.map +1 -0
  574. package/dist/utils/file.d.ts +46 -0
  575. package/dist/utils/file.d.ts.map +1 -0
  576. package/dist/utils/file.js +103 -0
  577. package/dist/utils/file.js.map +1 -0
  578. package/dist/utils/formatters.d.ts +111 -0
  579. package/dist/utils/formatters.d.ts.map +1 -0
  580. package/dist/utils/formatters.js +164 -0
  581. package/dist/utils/formatters.js.map +1 -0
  582. package/dist/utils/gh-config.d.ts +99 -0
  583. package/dist/utils/gh-config.d.ts.map +1 -0
  584. package/dist/utils/gh-config.js +247 -0
  585. package/dist/utils/gh-config.js.map +1 -0
  586. package/dist/utils/github.d.ts +98 -0
  587. package/dist/utils/github.d.ts.map +1 -0
  588. package/dist/utils/github.js +295 -0
  589. package/dist/utils/github.js.map +1 -0
  590. package/dist/utils/html.d.ts +107 -0
  591. package/dist/utils/html.d.ts.map +1 -0
  592. package/dist/utils/html.js +376 -0
  593. package/dist/utils/html.js.map +1 -0
  594. package/dist/utils/i18n.d.ts +40 -0
  595. package/dist/utils/i18n.d.ts.map +1 -0
  596. package/dist/utils/i18n.js +148 -0
  597. package/dist/utils/i18n.js.map +1 -0
  598. package/dist/utils/logger.d.ts +20 -0
  599. package/dist/utils/logger.d.ts.map +1 -0
  600. package/dist/utils/logger.js +49 -0
  601. package/dist/utils/logger.js.map +1 -0
  602. package/dist/utils/project-fields.d.ts +71 -0
  603. package/dist/utils/project-fields.d.ts.map +1 -0
  604. package/dist/utils/project-fields.js +318 -0
  605. package/dist/utils/project-fields.js.map +1 -0
  606. package/dist/utils/repo-pairs.d.ts +94 -0
  607. package/dist/utils/repo-pairs.d.ts.map +1 -0
  608. package/dist/utils/repo-pairs.js +196 -0
  609. package/dist/utils/repo-pairs.js.map +1 -0
  610. package/dist/utils/route-inference.d.ts +81 -0
  611. package/dist/utils/route-inference.d.ts.map +1 -0
  612. package/dist/utils/route-inference.js +137 -0
  613. package/dist/utils/route-inference.js.map +1 -0
  614. package/dist/utils/setup-check.d.ts +34 -0
  615. package/dist/utils/setup-check.d.ts.map +1 -0
  616. package/dist/utils/setup-check.js +136 -0
  617. package/dist/utils/setup-check.js.map +1 -0
  618. package/dist/utils/shirokumaignore.d.ts +55 -0
  619. package/dist/utils/shirokumaignore.d.ts.map +1 -0
  620. package/dist/utils/shirokumaignore.js +94 -0
  621. package/dist/utils/shirokumaignore.js.map +1 -0
  622. package/dist/utils/skills-repo.d.ts +353 -0
  623. package/dist/utils/skills-repo.d.ts.map +1 -0
  624. package/dist/utils/skills-repo.js +793 -0
  625. package/dist/utils/skills-repo.js.map +1 -0
  626. package/dist/utils/status-workflow.d.ts +54 -0
  627. package/dist/utils/status-workflow.d.ts.map +1 -0
  628. package/dist/utils/status-workflow.js +103 -0
  629. package/dist/utils/status-workflow.js.map +1 -0
  630. package/dist/validators/frontmatter.d.ts +41 -0
  631. package/dist/validators/frontmatter.d.ts.map +1 -0
  632. package/dist/validators/frontmatter.js +117 -0
  633. package/dist/validators/frontmatter.js.map +1 -0
  634. package/dist/validators/link-checker.d.ts +48 -0
  635. package/dist/validators/link-checker.d.ts.map +1 -0
  636. package/dist/validators/link-checker.js +108 -0
  637. package/dist/validators/link-checker.js.map +1 -0
  638. package/dist/validators/markdown-structure.d.ts +50 -0
  639. package/dist/validators/markdown-structure.d.ts.map +1 -0
  640. package/dist/validators/markdown-structure.js +253 -0
  641. package/dist/validators/markdown-structure.js.map +1 -0
  642. package/i18n/cli/en.json +155 -0
  643. package/i18n/cli/ja.json +155 -0
  644. package/i18n/discussion/en.json +191 -0
  645. package/i18n/discussion/ja.json +191 -0
  646. package/package.json +113 -0
  647. package/portal/app/api-tools/api-tools-client.tsx +411 -0
  648. package/portal/app/api-tools/api-tools-document.tsx +240 -0
  649. package/portal/app/api-tools/page.tsx +56 -0
  650. package/portal/app/api-tools/swagger-view.tsx +114 -0
  651. package/portal/app/apps/[appId]/[type]/[module]/[item]/item-tabs-client.tsx +71 -0
  652. package/portal/app/apps/[appId]/[type]/[module]/[item]/page.tsx +1422 -0
  653. package/portal/app/apps/[appId]/[type]/[module]/page.tsx +373 -0
  654. package/portal/app/apps/[appId]/feature-map/feature-map-app-document.tsx +298 -0
  655. package/portal/app/apps/[appId]/feature-map/page.tsx +224 -0
  656. package/portal/app/apps/[appId]/i18n/page.tsx +139 -0
  657. package/portal/app/apps/[appId]/test-cases/page.tsx +840 -0
  658. package/portal/app/apps/[appId]/tools/[tool]/page.tsx +351 -0
  659. package/portal/app/apps/[appId]/tools/api-tools-client.tsx +429 -0
  660. package/portal/app/apps/[appId]/tools/page.tsx +119 -0
  661. package/portal/app/db-schema/[db]/[table]/page.tsx +235 -0
  662. package/portal/app/db-schema/[db]/diagram/page.tsx +81 -0
  663. package/portal/app/db-schema/[db]/page.tsx +148 -0
  664. package/portal/app/db-schema/db-schema-document.tsx +100 -0
  665. package/portal/app/db-schema/diagram/client.tsx +211 -0
  666. package/portal/app/db-schema/diagram/page.tsx +20 -0
  667. package/portal/app/db-schema/page.tsx +145 -0
  668. package/portal/app/db-schema/table-detail-document.tsx +710 -0
  669. package/portal/app/db-schema/table-detail.tsx +747 -0
  670. package/portal/app/db-schema/table-list-document.tsx +224 -0
  671. package/portal/app/db-schema/table-list.tsx +247 -0
  672. package/portal/app/details/[type]/[module]/[item]/item-tabs-client.tsx +71 -0
  673. package/portal/app/details/[type]/[module]/[item]/page.tsx +1286 -0
  674. package/portal/app/details/[type]/[module]/page.tsx +884 -0
  675. package/portal/app/feature-map/feature-map-client.tsx +681 -0
  676. package/portal/app/feature-map/feature-map-document.tsx +313 -0
  677. package/portal/app/feature-map/page.tsx +438 -0
  678. package/portal/app/globals.css +205 -0
  679. package/portal/app/i18n/[...namespace]/page.tsx +190 -0
  680. package/portal/app/i18n/i18n-client.tsx +369 -0
  681. package/portal/app/i18n/page.tsx +339 -0
  682. package/portal/app/layout.tsx +37 -0
  683. package/portal/app/overview/page.tsx +65 -0
  684. package/portal/app/packages/[packageId]/page.tsx +201 -0
  685. package/portal/app/packages/page.tsx +148 -0
  686. package/portal/app/page.tsx +568 -0
  687. package/portal/app/test-cases/[file]/[line]/page.tsx +455 -0
  688. package/portal/app/test-cases/[file]/[line]/test-detail-document.tsx +335 -0
  689. package/portal/app/test-cases/[file]/page.tsx +323 -0
  690. package/portal/app/test-cases/[file]/test-file-document.tsx +335 -0
  691. package/portal/app/test-cases/page.tsx +546 -0
  692. package/portal/app/test-cases/test-cases-document.tsx +384 -0
  693. package/portal/components/code-block.tsx +57 -0
  694. package/portal/components/document/doc-params-table.tsx +71 -0
  695. package/portal/components/document/doc-section.tsx +133 -0
  696. package/portal/components/document/doc-table.tsx +119 -0
  697. package/portal/components/document/index.ts +9 -0
  698. package/portal/components/drawflow-er-diagram.tsx +607 -0
  699. package/portal/components/interactive-er-diagram.tsx +228 -0
  700. package/portal/components/layout/app-sidebar.tsx +490 -0
  701. package/portal/components/layout/er-sidebar.tsx +116 -0
  702. package/portal/components/layout/global-header.tsx +117 -0
  703. package/portal/components/layout/layout-content.tsx +48 -0
  704. package/portal/components/markdown-content.tsx +120 -0
  705. package/portal/components/mermaid-diagram.tsx +83 -0
  706. package/portal/components/reactflow-er-diagram.tsx +475 -0
  707. package/portal/components/search-dialog.tsx +268 -0
  708. package/portal/components/shared/coverage-score-bar.tsx +144 -0
  709. package/portal/components/swagger/endpoint-accordion.tsx +117 -0
  710. package/portal/components/swagger/index.ts +7 -0
  711. package/portal/components/swagger/method-badge.tsx +55 -0
  712. package/portal/components/swagger/params-table.tsx +78 -0
  713. package/portal/components/tabs-with-hash.tsx +43 -0
  714. package/portal/components/test/index.ts +2 -0
  715. package/portal/components/test/test-bdd-card.tsx +192 -0
  716. package/portal/components/test/test-matrix.tsx +242 -0
  717. package/portal/components/ui/accordion.tsx +66 -0
  718. package/portal/components/ui/badge.tsx +46 -0
  719. package/portal/components/ui/breadcrumb.tsx +109 -0
  720. package/portal/components/ui/button.tsx +62 -0
  721. package/portal/components/ui/card.tsx +92 -0
  722. package/portal/components/ui/collapsible.tsx +33 -0
  723. package/portal/components/ui/dialog.tsx +118 -0
  724. package/portal/components/ui/progress.tsx +28 -0
  725. package/portal/components/ui/scroll-area.tsx +58 -0
  726. package/portal/components/ui/sheet.tsx +139 -0
  727. package/portal/components/ui/table.tsx +116 -0
  728. package/portal/components/ui/tabs.tsx +66 -0
  729. package/portal/components.json +21 -0
  730. package/portal/lib/constants/test-categories.ts +186 -0
  731. package/portal/lib/data-loader.ts +1181 -0
  732. package/portal/lib/db-schema-utils.ts +182 -0
  733. package/portal/lib/format.ts +43 -0
  734. package/portal/lib/hooks/use-hash-tab.ts +144 -0
  735. package/portal/lib/path-utils.ts +25 -0
  736. package/portal/lib/search-index-generator.ts +214 -0
  737. package/portal/lib/search.ts +126 -0
  738. package/portal/lib/sidebar-context.tsx +111 -0
  739. package/portal/lib/types.ts +740 -0
  740. package/portal/lib/utils.ts +6 -0
  741. package/portal/next.config.ts +21 -0
  742. package/portal/package.json +45 -0
  743. package/portal/postcss.config.mjs +8 -0
  744. package/portal/tsconfig.json +41 -0
  745. package/portal/types/drawflow.d.ts +80 -0
  746. package/templates/README.md +73 -0
  747. package/templates/coverage.html +367 -0
  748. package/templates/dark-theme.css +443 -0
  749. package/templates/discussion/adr.yml.hbs +65 -0
  750. package/templates/discussion/handovers.yml.hbs +57 -0
  751. package/templates/discussion/knowledge.yml.hbs +60 -0
  752. package/templates/discussion/reports.yml.hbs +68 -0
  753. package/templates/discussion/research.yml.hbs +61 -0
@@ -0,0 +1,315 @@
1
+ /**
2
+ * details 型定義
3
+ *
4
+ * 詳細ページ生成に使用する全てのインターフェースと型
5
+ */
6
+ import { type ActionType } from "../utils/action-inference.js";
7
+ import { type AppName } from "../utils/app-inference.js";
8
+ export interface DetailsOptions {
9
+ project: string;
10
+ config: string;
11
+ output?: string;
12
+ verbose?: boolean;
13
+ }
14
+ export interface Screen {
15
+ name: string;
16
+ path: string;
17
+ route: string;
18
+ description: string;
19
+ usedComponents?: string[];
20
+ usedActions?: string[];
21
+ testCoverage?: TestCoverageInfo;
22
+ }
23
+ export interface Component {
24
+ name: string;
25
+ path: string;
26
+ description: string;
27
+ usedInScreens?: string[];
28
+ usedInComponents?: string[];
29
+ usedActions?: string[];
30
+ testCoverage?: TestCoverageInfo;
31
+ }
32
+ export interface Action {
33
+ name: string;
34
+ path: string;
35
+ description: string;
36
+ usedInScreens?: string[];
37
+ usedInComponents?: string[];
38
+ dbTables?: string[];
39
+ testCoverage?: TestCoverageInfo;
40
+ actionType?: ActionType;
41
+ }
42
+ export interface Table {
43
+ name: string;
44
+ path: string;
45
+ description: string;
46
+ usedInActions?: string[];
47
+ }
48
+ export interface Module {
49
+ name: string;
50
+ path: string;
51
+ description?: string;
52
+ usedInScreens?: string[];
53
+ usedInComponents?: string[];
54
+ usedInActions?: string[];
55
+ usedInMiddleware?: string[];
56
+ usedInLayouts?: string[];
57
+ usedModules?: string[];
58
+ usedInModules?: string[];
59
+ category?: string;
60
+ }
61
+ export interface TestCoverageInfo {
62
+ hasTest: boolean;
63
+ testCount: number;
64
+ status: "covered" | "partial" | "none";
65
+ }
66
+ export interface Feature {
67
+ screens: Screen[];
68
+ components: Component[];
69
+ actions: Action[];
70
+ modules: Module[];
71
+ tables: Table[];
72
+ }
73
+ /**
74
+ * 型定義アイテム(feature-map.ts と同期)
75
+ */
76
+ export interface TypeItem {
77
+ name: string;
78
+ kind: "interface" | "type" | "enum";
79
+ description?: string;
80
+ fields?: {
81
+ name: string;
82
+ type: string;
83
+ description?: string;
84
+ }[];
85
+ values?: string[];
86
+ sourceCode?: string;
87
+ }
88
+ /**
89
+ * ユーティリティアイテム(feature-map.ts と同期)
90
+ */
91
+ export interface UtilityItem {
92
+ name: string;
93
+ kind: "constant" | "function";
94
+ description?: string;
95
+ type?: string;
96
+ value?: string;
97
+ params?: {
98
+ name: string;
99
+ type: string;
100
+ }[];
101
+ }
102
+ export interface FeatureMap {
103
+ features: Record<string, Feature>;
104
+ uncategorized?: Feature;
105
+ moduleDescriptions?: Record<string, string>;
106
+ moduleTypes?: Record<string, TypeItem[]>;
107
+ moduleUtilities?: Record<string, UtilityItem[]>;
108
+ generatedAt: string;
109
+ }
110
+ export interface BddAnnotation {
111
+ given?: string;
112
+ when?: string;
113
+ then?: string;
114
+ and?: string[];
115
+ }
116
+ export interface DescribeDoc {
117
+ name: string;
118
+ testdoc?: string;
119
+ purpose?: string;
120
+ }
121
+ export interface ShirokumaTestCase {
122
+ file: string;
123
+ describe: string;
124
+ it: string;
125
+ line: number;
126
+ framework: "jest" | "playwright";
127
+ description?: string;
128
+ purpose?: string;
129
+ precondition?: string;
130
+ expected?: string;
131
+ bdd?: BddAnnotation;
132
+ describeDocs?: DescribeDoc[];
133
+ }
134
+ export interface TestCasesJson {
135
+ testCases: ShirokumaTestCase[];
136
+ summary: {
137
+ totalFiles: number;
138
+ totalTests: number;
139
+ };
140
+ generatedAt: string;
141
+ }
142
+ export type TestCategory = "happy-path" | "error-handling" | "auth" | "validation" | "edge-case" | "integration" | "other";
143
+ export interface CategorizedTestCase extends ShirokumaTestCase {
144
+ category: TestCategory;
145
+ summary: string;
146
+ }
147
+ export interface TestCoverageAnalysis {
148
+ totalTests: number;
149
+ byCategory: Record<TestCategory, CategorizedTestCase[]>;
150
+ missingPatterns: string[];
151
+ coverageScore: number;
152
+ recommendations: string[];
153
+ }
154
+ /**
155
+ * Zodスキーマパラメータ情報
156
+ */
157
+ export interface ZodParameter {
158
+ name: string;
159
+ type: string;
160
+ required: boolean;
161
+ description?: string;
162
+ format?: string;
163
+ minLength?: number;
164
+ maxLength?: number;
165
+ minimum?: number;
166
+ maximum?: number;
167
+ pattern?: string;
168
+ default?: string | number | boolean;
169
+ enum?: string[];
170
+ validation?: {
171
+ message: string;
172
+ };
173
+ }
174
+ /**
175
+ * 詳細ページJSON出力用の型
176
+ * Next.jsポータルで使用
177
+ */
178
+ export interface DetailJsonItem {
179
+ name: string;
180
+ type: "screen" | "component" | "action" | "module" | "table";
181
+ moduleName: string;
182
+ description: string;
183
+ filePath: string;
184
+ sourceCode: string;
185
+ app?: AppName;
186
+ jsDoc: {
187
+ description: string;
188
+ params: {
189
+ name: string;
190
+ type?: string;
191
+ description: string;
192
+ }[];
193
+ returns?: string;
194
+ throws?: string[];
195
+ examples: string[];
196
+ tags: {
197
+ name: string;
198
+ value: string;
199
+ }[];
200
+ };
201
+ related: {
202
+ usedInScreens?: string[];
203
+ usedInComponents?: string[];
204
+ usedInActions?: string[];
205
+ usedInMiddleware?: string[];
206
+ usedInLayouts?: string[];
207
+ usedModules?: string[];
208
+ usedInModules?: string[];
209
+ dbTables?: string[];
210
+ };
211
+ testCoverage: {
212
+ hasTest: boolean;
213
+ totalTests: number;
214
+ coverageScore: number;
215
+ byCategory: Record<string, DetailTestCase[]>;
216
+ recommendations: string[];
217
+ };
218
+ inputSchema?: {
219
+ name: string;
220
+ parameters: ZodParameter[];
221
+ };
222
+ outputSchema?: {
223
+ type: string;
224
+ successType?: string;
225
+ errorType?: string;
226
+ };
227
+ errorCodes?: {
228
+ code: string;
229
+ description: string;
230
+ status?: number;
231
+ }[];
232
+ authLevel?: "none" | "authenticated" | "member" | "admin";
233
+ rateLimit?: string;
234
+ csrfProtection?: boolean;
235
+ }
236
+ export interface DetailTestCase {
237
+ name: string;
238
+ file: string;
239
+ line: number;
240
+ summary: string;
241
+ purpose?: string;
242
+ expected?: string;
243
+ bdd?: BddAnnotation;
244
+ }
245
+ export interface DetailsJson {
246
+ details: Record<string, DetailJsonItem>;
247
+ generatedAt: string;
248
+ }
249
+ export interface ParsedJSDoc {
250
+ description: string;
251
+ params: {
252
+ name: string;
253
+ type?: string;
254
+ description: string;
255
+ }[];
256
+ returns?: string;
257
+ throws?: string[];
258
+ examples: string[];
259
+ tags: {
260
+ name: string;
261
+ value: string;
262
+ }[];
263
+ }
264
+ export interface DetailHTMLData {
265
+ type: "screen" | "component" | "action" | "module" | "table";
266
+ name: string;
267
+ moduleName: string;
268
+ description: string;
269
+ filePath: string;
270
+ route?: string;
271
+ code: string;
272
+ jsDoc: string;
273
+ testCases: CategorizedTestCase[];
274
+ testAnalysis: TestCoverageAnalysis;
275
+ related: {
276
+ type: string;
277
+ items: string[];
278
+ linkType: string;
279
+ sourcePath?: string;
280
+ }[];
281
+ projectName: string;
282
+ /** アクション種別 (action用) */
283
+ actionType?: ActionType;
284
+ }
285
+ export interface ModulePageData {
286
+ type: "screen" | "component" | "action" | "module" | "table";
287
+ moduleName: string;
288
+ moduleDescription?: string;
289
+ items: (Screen | Component | Action | Table)[];
290
+ types?: TypeItem[];
291
+ utilities?: UtilityItem[];
292
+ testCases?: CategorizedTestCase[];
293
+ projectName: string;
294
+ }
295
+ /**
296
+ * 詳細ページ生成の共有コンテキスト
297
+ *
298
+ * 以前のグローバル変数(allTestCases, detailsJsonItems, existingElements)を
299
+ * パラメータとして渡すためのオブジェクト
300
+ */
301
+ export interface DetailsContext {
302
+ /** テストケース一覧 (test-cases.json から読み込み) */
303
+ allTestCases: ShirokumaTestCase[];
304
+ /** JSON出力用の詳細データ */
305
+ detailsJsonItems: Record<string, DetailJsonItem>;
306
+ /** 存在する要素のマップ(リンク生成時に使用) */
307
+ existingElements: {
308
+ screens: Map<string, string>;
309
+ components: Map<string, string>;
310
+ actions: Map<string, string>;
311
+ modules: Map<string, string>;
312
+ tables: Map<string, string>;
313
+ };
314
+ }
315
+ //# sourceMappingURL=details-types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"details-types.d.ts","sourceRoot":"","sources":["../../src/commands/details-types.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAC/D,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,2BAA2B,CAAC;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1B,SAAS,CAAC,EAAE,mBAAmB,EAAE,CAAC;IAClC,WAAW,EAAE,MAAM,CAAC;CACrB;AAID;;;;;GAKG;AACH,MAAM,WAAW,cAAc;IAC7B,wCAAwC;IACxC,YAAY,EAAE,iBAAiB,EAAE,CAAC;IAClC,oBAAoB;IACpB,gBAAgB,EAAE,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,CAAC;IACjD,4BAA4B;IAC5B,gBAAgB,EAAE;QAChB,OAAO,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;QAC7B,UAAU,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;QAChC,OAAO,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;QAC7B,OAAO,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;QAC7B,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;KAC7B,CAAC;CACH"}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * details 型定義
3
+ *
4
+ * 詳細ページ生成に使用する全てのインターフェースと型
5
+ */
6
+ export {};
7
+ //# sourceMappingURL=details-types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"details-types.js","sourceRoot":"","sources":["../../src/commands/details-types.ts"],"names":[],"mappings":"AAAA;;;;GAIG"}
@@ -0,0 +1,24 @@
1
+ /**
2
+ * details コマンド - 詳細ページ生成
3
+ *
4
+ * feature-map.json, test-cases.json, linked-docs.json を読み込み、
5
+ * 各要素(Screen, Component, Action, Table)の詳細ページを生成する。
6
+ *
7
+ * ロジックは以下のモジュールに分割:
8
+ * - details-types.ts: 型定義
9
+ * - details-context.ts: コンテキスト管理・リンク解決
10
+ * - details-jsdoc.ts: JSDoc解析
11
+ * - details-zod.ts: Zodスキーマ解析
12
+ * - details-test-analysis.ts: テスト分析
13
+ * - details-styles.ts: CSS・スクリプト
14
+ * - details-html.ts: コアHTML生成
15
+ * - details-entity-pages.ts: エンティティ詳細ページ
16
+ * - details-module-page.ts: モジュール概要ページ
17
+ */
18
+ import type { DetailsOptions } from "./details-types.js";
19
+ export type { DetailsOptions } from "./details-types.js";
20
+ /**
21
+ * details コマンドのメインハンドラ
22
+ */
23
+ export declare function detailsCommand(options: DetailsOptions): Promise<void>;
24
+ //# sourceMappingURL=details.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"details.d.ts","sourceRoot":"","sources":["../../src/commands/details.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAOH,OAAO,KAAK,EACV,cAAc,EAWf,MAAM,oBAAoB,CAAC;AAa5B,YAAY,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEzD;;GAEG;AACH,wBAAsB,cAAc,CAAC,OAAO,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC,CAoJ3E"}
@@ -0,0 +1,299 @@
1
+ /**
2
+ * details コマンド - 詳細ページ生成
3
+ *
4
+ * feature-map.json, test-cases.json, linked-docs.json を読み込み、
5
+ * 各要素(Screen, Component, Action, Table)の詳細ページを生成する。
6
+ *
7
+ * ロジックは以下のモジュールに分割:
8
+ * - details-types.ts: 型定義
9
+ * - details-context.ts: コンテキスト管理・リンク解決
10
+ * - details-jsdoc.ts: JSDoc解析
11
+ * - details-zod.ts: Zodスキーマ解析
12
+ * - details-test-analysis.ts: テスト分析
13
+ * - details-styles.ts: CSS・スクリプト
14
+ * - details-html.ts: コアHTML生成
15
+ * - details-entity-pages.ts: エンティティ詳細ページ
16
+ * - details-module-page.ts: モジュール概要ページ
17
+ */
18
+ import { resolve } from "node:path";
19
+ import { existsSync, readFileSync } from "node:fs";
20
+ import { loadConfig, getOutputPath } from "../utils/config.js";
21
+ import { ensureDir, writeFile } from "../utils/file.js";
22
+ import { createLogger } from "../utils/logger.js";
23
+ import { createDetailsContext, extractModuleName, getElementFullKey } from "./details-context.js";
24
+ import { findTestCasesForModule } from "../analyzers/details-test-analysis.js";
25
+ import { generateScreenDetailPage, generateComponentDetailPage, generateActionDetailPage, generateTableDetailPage, generateModuleItemDetailPage, } from "../generators/details-entity-pages.js";
26
+ import { generateModuleDetailPage } from "../generators/details-module-page.js";
27
+ /**
28
+ * details コマンドのメインハンドラ
29
+ */
30
+ export async function detailsCommand(options) {
31
+ const logger = createLogger(options.verbose);
32
+ const projectPath = resolve(options.project);
33
+ // コンテキスト作成
34
+ const ctx = createDetailsContext();
35
+ logger.info("詳細ページを生成");
36
+ // 設定読み込み
37
+ const config = loadConfig(projectPath, options.config);
38
+ const portalDir = getOutputPath(config, projectPath, "portal");
39
+ const detailsDir = resolve(portalDir, "details");
40
+ // 入力ファイルのパス
41
+ const featureMapPath = resolve(portalDir, "feature-map.json");
42
+ const testCasesPath = resolve(portalDir, "test-cases.json");
43
+ // 必須ファイルの存在チェック
44
+ if (!existsSync(featureMapPath)) {
45
+ logger.error(`feature-map.json が見つかりません: ${featureMapPath}`);
46
+ logger.info("先に 'shirokuma-docs feature-map' を実行してください");
47
+ return;
48
+ }
49
+ // feature-map.json 読み込み
50
+ const featureMap = JSON.parse(readFileSync(featureMapPath, "utf-8"));
51
+ logger.info(`feature-map.json を読み込みました`);
52
+ // test-cases.json 読み込み(オプション)
53
+ if (existsSync(testCasesPath)) {
54
+ const testCasesJson = JSON.parse(readFileSync(testCasesPath, "utf-8"));
55
+ ctx.allTestCases = testCasesJson.testCases;
56
+ logger.info(`test-cases.json を読み込みました (${ctx.allTestCases.length} テストケース)`);
57
+ }
58
+ else {
59
+ logger.warn("test-cases.json が見つかりません。テストケース情報はスキップします。");
60
+ }
61
+ // ディレクトリ作成
62
+ ensureDir(resolve(detailsDir, "screen"));
63
+ ensureDir(resolve(detailsDir, "component"));
64
+ ensureDir(resolve(detailsDir, "action"));
65
+ ensureDir(resolve(detailsDir, "module"));
66
+ ensureDir(resolve(detailsDir, "table"));
67
+ // 存在する要素を収集(リンク生成に使用)
68
+ collectExistingElements(ctx, featureMap);
69
+ // 統計
70
+ let screenCount = 0;
71
+ let componentCount = 0;
72
+ let actionCount = 0;
73
+ let moduleItemCount = 0;
74
+ let tableCount = 0;
75
+ // モジュールの事前マージ(異なるアプリから同名モジュールがある場合)
76
+ const mergedModulesMap = buildMergedModulesMap(featureMap);
77
+ // 処理済みモジュールを追跡(重複生成を防ぐ)
78
+ const generatedModules = new Set();
79
+ // 各機能の詳細ページを生成
80
+ for (const [featureName, feature] of Object.entries(featureMap.features)) {
81
+ for (const screen of feature.screens) {
82
+ generateScreenDetailPage(screen, detailsDir, projectPath, config.project.name, ctx);
83
+ screenCount++;
84
+ }
85
+ for (const component of feature.components) {
86
+ generateComponentDetailPage(component, detailsDir, projectPath, config.project.name, ctx);
87
+ componentCount++;
88
+ }
89
+ for (const action of feature.actions) {
90
+ generateActionDetailPage(action, detailsDir, projectPath, config.project.name, ctx);
91
+ actionCount++;
92
+ }
93
+ // Modules (lib/ ディレクトリのモジュール) - マージされたモジュールを使用
94
+ for (const mod of feature.modules || []) {
95
+ const key = `${featureName}/${mod.name}`;
96
+ if (generatedModules.has(key))
97
+ continue;
98
+ generatedModules.add(key);
99
+ const merged = mergedModulesMap.get(key);
100
+ if (merged) {
101
+ generateModuleItemDetailPage(merged.mod, featureName, detailsDir, projectPath, config.project.name, ctx);
102
+ moduleItemCount++;
103
+ }
104
+ }
105
+ for (const table of feature.tables) {
106
+ generateTableDetailPage(table, detailsDir, projectPath, config.project.name, ctx);
107
+ tableCount++;
108
+ }
109
+ }
110
+ // uncategorized も処理
111
+ if (featureMap.uncategorized) {
112
+ for (const screen of featureMap.uncategorized.screens || []) {
113
+ generateScreenDetailPage(screen, detailsDir, projectPath, config.project.name, ctx);
114
+ screenCount++;
115
+ }
116
+ for (const component of featureMap.uncategorized.components || []) {
117
+ generateComponentDetailPage(component, detailsDir, projectPath, config.project.name, ctx);
118
+ componentCount++;
119
+ }
120
+ for (const action of featureMap.uncategorized.actions || []) {
121
+ generateActionDetailPage(action, detailsDir, projectPath, config.project.name, ctx);
122
+ actionCount++;
123
+ }
124
+ for (const mod of featureMap.uncategorized.modules || []) {
125
+ const key = `Uncategorized/${mod.name}`;
126
+ if (generatedModules.has(key))
127
+ continue;
128
+ generatedModules.add(key);
129
+ const merged = mergedModulesMap.get(key);
130
+ if (merged) {
131
+ generateModuleItemDetailPage(merged.mod, "Uncategorized", detailsDir, projectPath, config.project.name, ctx);
132
+ moduleItemCount++;
133
+ }
134
+ }
135
+ for (const table of featureMap.uncategorized.tables || []) {
136
+ generateTableDetailPage(table, detailsDir, projectPath, config.project.name, ctx);
137
+ tableCount++;
138
+ }
139
+ }
140
+ // モジュール詳細ページの生成
141
+ const modulePageCount = generateModulePages(ctx, featureMap, detailsDir, config.project.name);
142
+ // details.json 出力
143
+ const detailsJson = {
144
+ details: ctx.detailsJsonItems,
145
+ generatedAt: new Date().toISOString(),
146
+ };
147
+ const detailsJsonPath = resolve(portalDir, "details.json");
148
+ writeFile(detailsJsonPath, JSON.stringify(detailsJson, null, 2));
149
+ logger.info(` details.json: ${Object.keys(ctx.detailsJsonItems).length} items`);
150
+ logger.success(`詳細ページ生成完了:`);
151
+ logger.info(` Screens: ${screenCount}`);
152
+ logger.info(` Components: ${componentCount}`);
153
+ logger.info(` Actions: ${actionCount}`);
154
+ logger.info(` Modules: ${moduleItemCount}`);
155
+ logger.info(` Tables: ${tableCount}`);
156
+ logger.info(` Module Pages: ${modulePageCount}`);
157
+ logger.success(`出力先: ${detailsDir}`);
158
+ }
159
+ // ===== Internal helpers =====
160
+ /**
161
+ * 存在する要素を収集してコンテキストに登録
162
+ */
163
+ function collectExistingElements(ctx, featureMap) {
164
+ const collect = (feature) => {
165
+ feature.screens.forEach((s) => {
166
+ const module = extractModuleName(s.path);
167
+ const fullKey = getElementFullKey(module, s.name);
168
+ ctx.existingElements.screens.set(fullKey, module);
169
+ });
170
+ feature.components.forEach((c) => {
171
+ const module = extractModuleName(c.path);
172
+ const fullKey = getElementFullKey(module, c.name);
173
+ ctx.existingElements.components.set(fullKey, module);
174
+ });
175
+ feature.actions.forEach((a) => {
176
+ const module = extractModuleName(a.path);
177
+ const fullKey = getElementFullKey(module, a.name);
178
+ ctx.existingElements.actions.set(fullKey, module);
179
+ });
180
+ (feature.modules || []).forEach((m) => {
181
+ const module = extractModuleName(m.path);
182
+ const fullKey = getElementFullKey(module, m.name);
183
+ ctx.existingElements.modules.set(fullKey, module);
184
+ });
185
+ feature.tables.forEach((t) => {
186
+ const module = extractModuleName(t.path);
187
+ const fullKey = getElementFullKey(module, t.name);
188
+ ctx.existingElements.tables.set(fullKey, module);
189
+ });
190
+ };
191
+ for (const feature of Object.values(featureMap.features)) {
192
+ collect(feature);
193
+ }
194
+ if (featureMap.uncategorized) {
195
+ collect(featureMap.uncategorized);
196
+ }
197
+ }
198
+ /**
199
+ * モジュールの事前マージマップを構築
200
+ */
201
+ function buildMergedModulesMap(featureMap) {
202
+ const mergedMap = new Map();
203
+ const mergeModuleRelated = (existing, newMod) => ({
204
+ ...existing,
205
+ usedInScreens: [...new Set([...(existing.usedInScreens || []), ...(newMod.usedInScreens || [])])],
206
+ usedInComponents: [...new Set([...(existing.usedInComponents || []), ...(newMod.usedInComponents || [])])],
207
+ usedInActions: [...new Set([...(existing.usedInActions || []), ...(newMod.usedInActions || [])])],
208
+ usedInMiddleware: [...new Set([...(existing.usedInMiddleware || []), ...(newMod.usedInMiddleware || [])])],
209
+ usedInLayouts: [...new Set([...(existing.usedInLayouts || []), ...(newMod.usedInLayouts || [])])],
210
+ usedModules: [...new Set([...(existing.usedModules || []), ...(newMod.usedModules || [])])],
211
+ usedInModules: [...new Set([...(existing.usedInModules || []), ...(newMod.usedInModules || [])])],
212
+ });
213
+ for (const [featureName, feature] of Object.entries(featureMap.features)) {
214
+ for (const mod of feature.modules || []) {
215
+ const key = `${featureName}/${mod.name}`;
216
+ const existing = mergedMap.get(key);
217
+ if (existing) {
218
+ mergedMap.set(key, { mod: mergeModuleRelated(existing.mod, mod), featureName });
219
+ }
220
+ else {
221
+ mergedMap.set(key, { mod, featureName });
222
+ }
223
+ }
224
+ }
225
+ if (featureMap.uncategorized) {
226
+ for (const mod of featureMap.uncategorized.modules || []) {
227
+ const key = `Uncategorized/${mod.name}`;
228
+ const existing = mergedMap.get(key);
229
+ if (existing) {
230
+ mergedMap.set(key, { mod: mergeModuleRelated(existing.mod, mod), featureName: "Uncategorized" });
231
+ }
232
+ else {
233
+ mergedMap.set(key, { mod, featureName: "Uncategorized" });
234
+ }
235
+ }
236
+ }
237
+ return mergedMap;
238
+ }
239
+ /**
240
+ * モジュール概要ページを生成
241
+ */
242
+ function generateModulePages(ctx, featureMap, detailsDir, projectName) {
243
+ // アイテムをモジュール別にグループ化
244
+ const moduleGroups = {
245
+ screens: new Map(),
246
+ components: new Map(),
247
+ actions: new Map(),
248
+ tables: new Map(),
249
+ };
250
+ const groupByModule = (items, map) => {
251
+ for (const item of items) {
252
+ const moduleName = extractModuleName(item.path);
253
+ const existing = map.get(moduleName) || [];
254
+ existing.push(item);
255
+ map.set(moduleName, existing);
256
+ }
257
+ };
258
+ // 全機能からアイテムを収集
259
+ for (const feature of Object.values(featureMap.features)) {
260
+ groupByModule(feature.screens, moduleGroups.screens);
261
+ groupByModule(feature.components, moduleGroups.components);
262
+ groupByModule(feature.actions, moduleGroups.actions);
263
+ groupByModule(feature.tables, moduleGroups.tables);
264
+ }
265
+ if (featureMap.uncategorized) {
266
+ groupByModule(featureMap.uncategorized.screens || [], moduleGroups.screens);
267
+ groupByModule(featureMap.uncategorized.components || [], moduleGroups.components);
268
+ groupByModule(featureMap.uncategorized.actions || [], moduleGroups.actions);
269
+ groupByModule(featureMap.uncategorized.tables || [], moduleGroups.tables);
270
+ }
271
+ // モジュール説明、型定義、ユーティリティを取得
272
+ const moduleDescriptions = featureMap.moduleDescriptions || {};
273
+ const moduleTypes = featureMap.moduleTypes || {};
274
+ const moduleUtilities = featureMap.moduleUtilities || {};
275
+ let modulePageCount = 0;
276
+ const typeModuleMap = [
277
+ ["screen", moduleGroups.screens],
278
+ ["component", moduleGroups.components],
279
+ ["action", moduleGroups.actions],
280
+ ["table", moduleGroups.tables],
281
+ ];
282
+ for (const [type, moduleMap] of typeModuleMap) {
283
+ for (const [moduleName, items] of moduleMap) {
284
+ generateModuleDetailPage({
285
+ type: type,
286
+ moduleName,
287
+ moduleDescription: moduleDescriptions[moduleName],
288
+ items,
289
+ types: moduleTypes[moduleName],
290
+ utilities: moduleUtilities[moduleName],
291
+ testCases: findTestCasesForModule(moduleName, type, ctx),
292
+ projectName,
293
+ }, detailsDir);
294
+ modulePageCount++;
295
+ }
296
+ }
297
+ return modulePageCount;
298
+ }
299
+ //# sourceMappingURL=details.js.map