@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.
- package/LICENSE +21 -0
- package/README.en.md +308 -0
- package/README.md +308 -0
- package/THIRD_PARTY_NOTICES.md +18 -0
- package/bin/shirokuma-docs +2 -0
- package/dist/analyzers/details-test-analysis.d.ts +31 -0
- package/dist/analyzers/details-test-analysis.d.ts.map +1 -0
- package/dist/analyzers/details-test-analysis.js +172 -0
- package/dist/analyzers/details-test-analysis.js.map +1 -0
- package/dist/analyzers/feature-map-builder.d.ts +20 -0
- package/dist/analyzers/feature-map-builder.d.ts.map +1 -0
- package/dist/analyzers/feature-map-builder.js +154 -0
- package/dist/analyzers/feature-map-builder.js.map +1 -0
- package/dist/analyzers/feature-map-references.d.ts +34 -0
- package/dist/analyzers/feature-map-references.d.ts.map +1 -0
- package/dist/analyzers/feature-map-references.js +249 -0
- package/dist/analyzers/feature-map-references.js.map +1 -0
- package/dist/analyzers/reference-analyzer.d.ts +95 -0
- package/dist/analyzers/reference-analyzer.d.ts.map +1 -0
- package/dist/analyzers/reference-analyzer.js +372 -0
- package/dist/analyzers/reference-analyzer.js.map +1 -0
- package/dist/commands/adr.d.ts +26 -0
- package/dist/commands/adr.d.ts.map +1 -0
- package/dist/commands/adr.js +129 -0
- package/dist/commands/adr.js.map +1 -0
- package/dist/commands/api-tools.d.ts +83 -0
- package/dist/commands/api-tools.d.ts.map +1 -0
- package/dist/commands/api-tools.js +775 -0
- package/dist/commands/api-tools.js.map +1 -0
- package/dist/commands/coverage.d.ts +139 -0
- package/dist/commands/coverage.d.ts.map +1 -0
- package/dist/commands/coverage.js +481 -0
- package/dist/commands/coverage.js.map +1 -0
- package/dist/commands/deps.d.ts +24 -0
- package/dist/commands/deps.d.ts.map +1 -0
- package/dist/commands/deps.js +211 -0
- package/dist/commands/deps.js.map +1 -0
- package/dist/commands/details-context.d.ts +38 -0
- package/dist/commands/details-context.d.ts.map +1 -0
- package/dist/commands/details-context.js +193 -0
- package/dist/commands/details-context.js.map +1 -0
- package/dist/commands/details-types.d.ts +315 -0
- package/dist/commands/details-types.d.ts.map +1 -0
- package/dist/commands/details-types.js +7 -0
- package/dist/commands/details-types.js.map +1 -0
- package/dist/commands/details.d.ts +24 -0
- package/dist/commands/details.d.ts.map +1 -0
- package/dist/commands/details.js +299 -0
- package/dist/commands/details.js.map +1 -0
- package/dist/commands/discussion-templates.d.ts +26 -0
- package/dist/commands/discussion-templates.d.ts.map +1 -0
- package/dist/commands/discussion-templates.js +270 -0
- package/dist/commands/discussion-templates.js.map +1 -0
- package/dist/commands/discussions.d.ts +31 -0
- package/dist/commands/discussions.d.ts.map +1 -0
- package/dist/commands/discussions.js +743 -0
- package/dist/commands/discussions.js.map +1 -0
- package/dist/commands/feature-map-types.d.ts +294 -0
- package/dist/commands/feature-map-types.d.ts.map +1 -0
- package/dist/commands/feature-map-types.js +8 -0
- package/dist/commands/feature-map-types.js.map +1 -0
- package/dist/commands/feature-map.d.ts +30 -0
- package/dist/commands/feature-map.d.ts.map +1 -0
- package/dist/commands/feature-map.js +137 -0
- package/dist/commands/feature-map.js.map +1 -0
- package/dist/commands/generate.d.ts +16 -0
- package/dist/commands/generate.d.ts.map +1 -0
- package/dist/commands/generate.js +88 -0
- package/dist/commands/generate.js.map +1 -0
- package/dist/commands/gh-discussions.d.ts +31 -0
- package/dist/commands/gh-discussions.d.ts.map +1 -0
- package/dist/commands/gh-discussions.js +743 -0
- package/dist/commands/gh-discussions.js.map +1 -0
- package/dist/commands/gh-issues-pr.d.ts +74 -0
- package/dist/commands/gh-issues-pr.d.ts.map +1 -0
- package/dist/commands/gh-issues-pr.js +417 -0
- package/dist/commands/gh-issues-pr.js.map +1 -0
- package/dist/commands/gh-issues.d.ts +90 -0
- package/dist/commands/gh-issues.d.ts.map +1 -0
- package/dist/commands/gh-issues.js +1297 -0
- package/dist/commands/gh-issues.js.map +1 -0
- package/dist/commands/gh-projects.d.ts +54 -0
- package/dist/commands/gh-projects.d.ts.map +1 -0
- package/dist/commands/gh-projects.js +966 -0
- package/dist/commands/gh-projects.js.map +1 -0
- package/dist/commands/gh-repo.d.ts +18 -0
- package/dist/commands/gh-repo.d.ts.map +1 -0
- package/dist/commands/gh-repo.js +253 -0
- package/dist/commands/gh-repo.js.map +1 -0
- package/dist/commands/github-data.d.ts +67 -0
- package/dist/commands/github-data.d.ts.map +1 -0
- package/dist/commands/github-data.js +361 -0
- package/dist/commands/github-data.js.map +1 -0
- package/dist/commands/i18n.d.ts +102 -0
- package/dist/commands/i18n.d.ts.map +1 -0
- package/dist/commands/i18n.js +829 -0
- package/dist/commands/i18n.js.map +1 -0
- package/dist/commands/impact.d.ts +14 -0
- package/dist/commands/impact.d.ts.map +1 -0
- package/dist/commands/impact.js +263 -0
- package/dist/commands/impact.js.map +1 -0
- package/dist/commands/init.d.ts +53 -0
- package/dist/commands/init.d.ts.map +1 -0
- package/dist/commands/init.js +429 -0
- package/dist/commands/init.js.map +1 -0
- package/dist/commands/issues-pr.d.ts +74 -0
- package/dist/commands/issues-pr.d.ts.map +1 -0
- package/dist/commands/issues-pr.js +417 -0
- package/dist/commands/issues-pr.js.map +1 -0
- package/dist/commands/issues.d.ts +76 -0
- package/dist/commands/issues.d.ts.map +1 -0
- package/dist/commands/issues.js +1285 -0
- package/dist/commands/issues.js.map +1 -0
- package/dist/commands/link-docs.d.ts +21 -0
- package/dist/commands/link-docs.d.ts.map +1 -0
- package/dist/commands/link-docs.js +990 -0
- package/dist/commands/link-docs.js.map +1 -0
- package/dist/commands/lint-annotations.d.ts +28 -0
- package/dist/commands/lint-annotations.d.ts.map +1 -0
- package/dist/commands/lint-annotations.js +511 -0
- package/dist/commands/lint-annotations.js.map +1 -0
- package/dist/commands/lint-code.d.ts +26 -0
- package/dist/commands/lint-code.d.ts.map +1 -0
- package/dist/commands/lint-code.js +428 -0
- package/dist/commands/lint-code.js.map +1 -0
- package/dist/commands/lint-coverage.d.ts +33 -0
- package/dist/commands/lint-coverage.d.ts.map +1 -0
- package/dist/commands/lint-coverage.js +379 -0
- package/dist/commands/lint-coverage.js.map +1 -0
- package/dist/commands/lint-docs.d.ts +23 -0
- package/dist/commands/lint-docs.d.ts.map +1 -0
- package/dist/commands/lint-docs.js +338 -0
- package/dist/commands/lint-docs.js.map +1 -0
- package/dist/commands/lint-structure.d.ts +38 -0
- package/dist/commands/lint-structure.d.ts.map +1 -0
- package/dist/commands/lint-structure.js +350 -0
- package/dist/commands/lint-structure.js.map +1 -0
- package/dist/commands/lint-tests.d.ts +25 -0
- package/dist/commands/lint-tests.d.ts.map +1 -0
- package/dist/commands/lint-tests.js +105 -0
- package/dist/commands/lint-tests.js.map +1 -0
- package/dist/commands/lint-workflow.d.ts +36 -0
- package/dist/commands/lint-workflow.d.ts.map +1 -0
- package/dist/commands/lint-workflow.js +255 -0
- package/dist/commands/lint-workflow.js.map +1 -0
- package/dist/commands/overview.d.ts +21 -0
- package/dist/commands/overview.d.ts.map +1 -0
- package/dist/commands/overview.js +1300 -0
- package/dist/commands/overview.js.map +1 -0
- package/dist/commands/packages.d.ts +107 -0
- package/dist/commands/packages.d.ts.map +1 -0
- package/dist/commands/packages.js +308 -0
- package/dist/commands/packages.js.map +1 -0
- package/dist/commands/portal-nextjs.d.ts +23 -0
- package/dist/commands/portal-nextjs.d.ts.map +1 -0
- package/dist/commands/portal-nextjs.js +336 -0
- package/dist/commands/portal-nextjs.js.map +1 -0
- package/dist/commands/portal.d.ts +24 -0
- package/dist/commands/portal.d.ts.map +1 -0
- package/dist/commands/portal.js +16 -0
- package/dist/commands/portal.js.map +1 -0
- package/dist/commands/projects.d.ts +54 -0
- package/dist/commands/projects.d.ts.map +1 -0
- package/dist/commands/projects.js +969 -0
- package/dist/commands/projects.js.map +1 -0
- package/dist/commands/repo-pairs.d.ts +19 -0
- package/dist/commands/repo-pairs.d.ts.map +1 -0
- package/dist/commands/repo-pairs.js +529 -0
- package/dist/commands/repo-pairs.js.map +1 -0
- package/dist/commands/repo.d.ts +18 -0
- package/dist/commands/repo.d.ts.map +1 -0
- package/dist/commands/repo.js +253 -0
- package/dist/commands/repo.js.map +1 -0
- package/dist/commands/schema.d.ts +49 -0
- package/dist/commands/schema.d.ts.map +1 -0
- package/dist/commands/schema.js +830 -0
- package/dist/commands/schema.js.map +1 -0
- package/dist/commands/screenshots.d.ts +203 -0
- package/dist/commands/screenshots.d.ts.map +1 -0
- package/dist/commands/screenshots.js +1234 -0
- package/dist/commands/screenshots.js.map +1 -0
- package/dist/commands/search-index.d.ts +83 -0
- package/dist/commands/search-index.d.ts.map +1 -0
- package/dist/commands/search-index.js +389 -0
- package/dist/commands/search-index.js.map +1 -0
- package/dist/commands/session.d.ts +153 -0
- package/dist/commands/session.d.ts.map +1 -0
- package/dist/commands/session.js +1243 -0
- package/dist/commands/session.js.map +1 -0
- package/dist/commands/test-cases-types.d.ts +154 -0
- package/dist/commands/test-cases-types.d.ts.map +1 -0
- package/dist/commands/test-cases-types.js +7 -0
- package/dist/commands/test-cases-types.js.map +1 -0
- package/dist/commands/test-cases.d.ts +28 -0
- package/dist/commands/test-cases.d.ts.map +1 -0
- package/dist/commands/test-cases.js +192 -0
- package/dist/commands/test-cases.js.map +1 -0
- package/dist/commands/typedoc.d.ts +21 -0
- package/dist/commands/typedoc.d.ts.map +1 -0
- package/dist/commands/typedoc.js +192 -0
- package/dist/commands/typedoc.js.map +1 -0
- package/dist/commands/update-skills.d.ts +56 -0
- package/dist/commands/update-skills.d.ts.map +1 -0
- package/dist/commands/update-skills.js +620 -0
- package/dist/commands/update-skills.js.map +1 -0
- package/dist/generators/details-entity-pages.d.ts +40 -0
- package/dist/generators/details-entity-pages.d.ts.map +1 -0
- package/dist/generators/details-entity-pages.js +301 -0
- package/dist/generators/details-entity-pages.js.map +1 -0
- package/dist/generators/details-html.d.ts +23 -0
- package/dist/generators/details-html.d.ts.map +1 -0
- package/dist/generators/details-html.js +324 -0
- package/dist/generators/details-html.js.map +1 -0
- package/dist/generators/details-module-page.d.ts +33 -0
- package/dist/generators/details-module-page.d.ts.map +1 -0
- package/dist/generators/details-module-page.js +408 -0
- package/dist/generators/details-module-page.js.map +1 -0
- package/dist/generators/details-styles.d.ts +39 -0
- package/dist/generators/details-styles.d.ts.map +1 -0
- package/dist/generators/details-styles.js +409 -0
- package/dist/generators/details-styles.js.map +1 -0
- package/dist/generators/feature-map-html.d.ts +66 -0
- package/dist/generators/feature-map-html.d.ts.map +1 -0
- package/dist/generators/feature-map-html.js +569 -0
- package/dist/generators/feature-map-html.js.map +1 -0
- package/dist/generators/feature-map-styles.d.ts +39 -0
- package/dist/generators/feature-map-styles.d.ts.map +1 -0
- package/dist/generators/feature-map-styles.js +449 -0
- package/dist/generators/feature-map-styles.js.map +1 -0
- package/dist/generators/test-cases-hierarchy.d.ts +21 -0
- package/dist/generators/test-cases-hierarchy.d.ts.map +1 -0
- package/dist/generators/test-cases-hierarchy.js +336 -0
- package/dist/generators/test-cases-hierarchy.js.map +1 -0
- package/dist/generators/test-cases-main.d.ts +20 -0
- package/dist/generators/test-cases-main.d.ts.map +1 -0
- package/dist/generators/test-cases-main.js +439 -0
- package/dist/generators/test-cases-main.js.map +1 -0
- package/dist/generators/test-cases-styles.d.ts +64 -0
- package/dist/generators/test-cases-styles.d.ts.map +1 -0
- package/dist/generators/test-cases-styles.js +1277 -0
- package/dist/generators/test-cases-styles.js.map +1 -0
- package/dist/index.d.ts +13 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +517 -0
- package/dist/index.js.map +1 -0
- package/dist/lint/annotation-lint.d.ts +198 -0
- package/dist/lint/annotation-lint.d.ts.map +1 -0
- package/dist/lint/annotation-lint.js +510 -0
- package/dist/lint/annotation-lint.js.map +1 -0
- package/dist/lint/annotation-types.d.ts +161 -0
- package/dist/lint/annotation-types.d.ts.map +1 -0
- package/dist/lint/annotation-types.js +31 -0
- package/dist/lint/annotation-types.js.map +1 -0
- package/dist/lint/code-types.d.ts +135 -0
- package/dist/lint/code-types.d.ts.map +1 -0
- package/dist/lint/code-types.js +25 -0
- package/dist/lint/code-types.js.map +1 -0
- package/dist/lint/coverage-types.d.ts +128 -0
- package/dist/lint/coverage-types.d.ts.map +1 -0
- package/dist/lint/coverage-types.js +24 -0
- package/dist/lint/coverage-types.js.map +1 -0
- package/dist/lint/docs-types.d.ts +214 -0
- package/dist/lint/docs-types.d.ts.map +1 -0
- package/dist/lint/docs-types.js +18 -0
- package/dist/lint/docs-types.js.map +1 -0
- package/dist/lint/formatters/index.d.ts +14 -0
- package/dist/lint/formatters/index.d.ts.map +1 -0
- package/dist/lint/formatters/index.js +28 -0
- package/dist/lint/formatters/index.js.map +1 -0
- package/dist/lint/formatters/json.d.ts +11 -0
- package/dist/lint/formatters/json.d.ts.map +1 -0
- package/dist/lint/formatters/json.js +12 -0
- package/dist/lint/formatters/json.js.map +1 -0
- package/dist/lint/formatters/summary.d.ts +11 -0
- package/dist/lint/formatters/summary.d.ts.map +1 -0
- package/dist/lint/formatters/summary.js +37 -0
- package/dist/lint/formatters/summary.js.map +1 -0
- package/dist/lint/formatters/terminal.d.ts +11 -0
- package/dist/lint/formatters/terminal.d.ts.map +1 -0
- package/dist/lint/formatters/terminal.js +99 -0
- package/dist/lint/formatters/terminal.js.map +1 -0
- package/dist/lint/index.d.ts +18 -0
- package/dist/lint/index.d.ts.map +1 -0
- package/dist/lint/index.js +103 -0
- package/dist/lint/index.js.map +1 -0
- package/dist/lint/rules/annotation-required.d.ts +35 -0
- package/dist/lint/rules/annotation-required.d.ts.map +1 -0
- package/dist/lint/rules/annotation-required.js +127 -0
- package/dist/lint/rules/annotation-required.js.map +1 -0
- package/dist/lint/rules/code-rules.d.ts +12 -0
- package/dist/lint/rules/code-rules.d.ts.map +1 -0
- package/dist/lint/rules/code-rules.js +11 -0
- package/dist/lint/rules/code-rules.js.map +1 -0
- package/dist/lint/rules/describe-coverage.d.ts +8 -0
- package/dist/lint/rules/describe-coverage.d.ts.map +1 -0
- package/dist/lint/rules/describe-coverage.js +43 -0
- package/dist/lint/rules/describe-coverage.js.map +1 -0
- package/dist/lint/rules/duplicate-testdoc.d.ts +8 -0
- package/dist/lint/rules/duplicate-testdoc.d.ts.map +1 -0
- package/dist/lint/rules/duplicate-testdoc.js +38 -0
- package/dist/lint/rules/duplicate-testdoc.js.map +1 -0
- package/dist/lint/rules/index.d.ts +29 -0
- package/dist/lint/rules/index.d.ts.map +1 -0
- package/dist/lint/rules/index.js +55 -0
- package/dist/lint/rules/index.js.map +1 -0
- package/dist/lint/rules/server-action-structure.d.ts +37 -0
- package/dist/lint/rules/server-action-structure.d.ts.map +1 -0
- package/dist/lint/rules/server-action-structure.js +151 -0
- package/dist/lint/rules/server-action-structure.js.map +1 -0
- package/dist/lint/rules/skipped-test-report.d.ts +11 -0
- package/dist/lint/rules/skipped-test-report.d.ts.map +1 -0
- package/dist/lint/rules/skipped-test-report.js +31 -0
- package/dist/lint/rules/skipped-test-report.js.map +1 -0
- package/dist/lint/rules/structure-rules.d.ts +67 -0
- package/dist/lint/rules/structure-rules.d.ts.map +1 -0
- package/dist/lint/rules/structure-rules.js +615 -0
- package/dist/lint/rules/structure-rules.js.map +1 -0
- package/dist/lint/rules/testdoc-japanese.d.ts +8 -0
- package/dist/lint/rules/testdoc-japanese.d.ts.map +1 -0
- package/dist/lint/rules/testdoc-japanese.js +31 -0
- package/dist/lint/rules/testdoc-japanese.js.map +1 -0
- package/dist/lint/rules/testdoc-min-length.d.ts +8 -0
- package/dist/lint/rules/testdoc-min-length.d.ts.map +1 -0
- package/dist/lint/rules/testdoc-min-length.js +31 -0
- package/dist/lint/rules/testdoc-min-length.js.map +1 -0
- package/dist/lint/rules/testdoc-required.d.ts +8 -0
- package/dist/lint/rules/testdoc-required.d.ts.map +1 -0
- package/dist/lint/rules/testdoc-required.js +27 -0
- package/dist/lint/rules/testdoc-required.js.map +1 -0
- package/dist/lint/rules/workflow-branch-naming.d.ts +20 -0
- package/dist/lint/rules/workflow-branch-naming.d.ts.map +1 -0
- package/dist/lint/rules/workflow-branch-naming.js +85 -0
- package/dist/lint/rules/workflow-branch-naming.js.map +1 -0
- package/dist/lint/rules/workflow-commit-format.d.ts +27 -0
- package/dist/lint/rules/workflow-commit-format.d.ts.map +1 -0
- package/dist/lint/rules/workflow-commit-format.js +92 -0
- package/dist/lint/rules/workflow-commit-format.js.map +1 -0
- package/dist/lint/rules/workflow-issue-fields.d.ts +24 -0
- package/dist/lint/rules/workflow-issue-fields.d.ts.map +1 -0
- package/dist/lint/rules/workflow-issue-fields.js +89 -0
- package/dist/lint/rules/workflow-issue-fields.js.map +1 -0
- package/dist/lint/rules/workflow-main-protection.d.ts +32 -0
- package/dist/lint/rules/workflow-main-protection.d.ts.map +1 -0
- package/dist/lint/rules/workflow-main-protection.js +114 -0
- package/dist/lint/rules/workflow-main-protection.js.map +1 -0
- package/dist/lint/structure-types.d.ts +216 -0
- package/dist/lint/structure-types.d.ts.map +1 -0
- package/dist/lint/structure-types.js +96 -0
- package/dist/lint/structure-types.js.map +1 -0
- package/dist/lint/types.d.ts +154 -0
- package/dist/lint/types.d.ts.map +1 -0
- package/dist/lint/types.js +21 -0
- package/dist/lint/types.js.map +1 -0
- package/dist/lint/workflow-types.d.ts +90 -0
- package/dist/lint/workflow-types.d.ts.map +1 -0
- package/dist/lint/workflow-types.js +7 -0
- package/dist/lint/workflow-types.js.map +1 -0
- package/dist/md/analyzer/index.d.ts +46 -0
- package/dist/md/analyzer/index.d.ts.map +1 -0
- package/dist/md/analyzer/index.js +288 -0
- package/dist/md/analyzer/index.js.map +1 -0
- package/dist/md/builder/index.d.ts +91 -0
- package/dist/md/builder/index.d.ts.map +1 -0
- package/dist/md/builder/index.js +446 -0
- package/dist/md/builder/index.js.map +1 -0
- package/dist/md/cli/analyze.d.ts +11 -0
- package/dist/md/cli/analyze.d.ts.map +1 -0
- package/dist/md/cli/analyze.js +118 -0
- package/dist/md/cli/analyze.js.map +1 -0
- package/dist/md/cli/build.d.ts +11 -0
- package/dist/md/cli/build.d.ts.map +1 -0
- package/dist/md/cli/build.js +74 -0
- package/dist/md/cli/build.js.map +1 -0
- package/dist/md/cli/extract.d.ts +25 -0
- package/dist/md/cli/extract.d.ts.map +1 -0
- package/dist/md/cli/extract.js +230 -0
- package/dist/md/cli/extract.js.map +1 -0
- package/dist/md/cli/index.d.ts +3 -0
- package/dist/md/cli/index.d.ts.map +1 -0
- package/dist/md/cli/index.js +99 -0
- package/dist/md/cli/index.js.map +1 -0
- package/dist/md/cli/lint.d.ts +11 -0
- package/dist/md/cli/lint.d.ts.map +1 -0
- package/dist/md/cli/lint.js +165 -0
- package/dist/md/cli/lint.js.map +1 -0
- package/dist/md/cli/list.d.ts +16 -0
- package/dist/md/cli/list.d.ts.map +1 -0
- package/dist/md/cli/list.js +85 -0
- package/dist/md/cli/list.js.map +1 -0
- package/dist/md/cli/program.d.ts +11 -0
- package/dist/md/cli/program.d.ts.map +1 -0
- package/dist/md/cli/program.js +104 -0
- package/dist/md/cli/program.js.map +1 -0
- package/dist/md/cli/validate.d.ts +8 -0
- package/dist/md/cli/validate.d.ts.map +1 -0
- package/dist/md/cli/validate.js +82 -0
- package/dist/md/cli/validate.js.map +1 -0
- package/dist/md/constants.d.ts +69 -0
- package/dist/md/constants.d.ts.map +1 -0
- package/dist/md/constants.js +69 -0
- package/dist/md/constants.js.map +1 -0
- package/dist/md/extractor/index.d.ts +57 -0
- package/dist/md/extractor/index.d.ts.map +1 -0
- package/dist/md/extractor/index.js +359 -0
- package/dist/md/extractor/index.js.map +1 -0
- package/dist/md/index.d.ts +26 -0
- package/dist/md/index.d.ts.map +1 -0
- package/dist/md/index.js +30 -0
- package/dist/md/index.js.map +1 -0
- package/dist/md/linter/index.d.ts +20 -0
- package/dist/md/linter/index.d.ts.map +1 -0
- package/dist/md/linter/index.js +412 -0
- package/dist/md/linter/index.js.map +1 -0
- package/dist/md/linter/token-optimizer.d.ts +66 -0
- package/dist/md/linter/token-optimizer.d.ts.map +1 -0
- package/dist/md/linter/token-optimizer.js +292 -0
- package/dist/md/linter/token-optimizer.js.map +1 -0
- package/dist/md/lister/index.d.ts +42 -0
- package/dist/md/lister/index.d.ts.map +1 -0
- package/dist/md/lister/index.js +317 -0
- package/dist/md/lister/index.js.map +1 -0
- package/dist/md/parser/heading-numbers.d.ts +43 -0
- package/dist/md/parser/heading-numbers.d.ts.map +1 -0
- package/dist/md/parser/heading-numbers.js +97 -0
- package/dist/md/parser/heading-numbers.js.map +1 -0
- package/dist/md/parser/section-meta.d.ts +50 -0
- package/dist/md/parser/section-meta.d.ts.map +1 -0
- package/dist/md/parser/section-meta.js +212 -0
- package/dist/md/parser/section-meta.js.map +1 -0
- package/dist/md/parser/template.d.ts +56 -0
- package/dist/md/parser/template.d.ts.map +1 -0
- package/dist/md/parser/template.js +122 -0
- package/dist/md/parser/template.js.map +1 -0
- package/dist/md/plugins/loader.d.ts +15 -0
- package/dist/md/plugins/loader.d.ts.map +1 -0
- package/dist/md/plugins/loader.js +80 -0
- package/dist/md/plugins/loader.js.map +1 -0
- package/dist/md/plugins/normalize-headings.d.ts +43 -0
- package/dist/md/plugins/normalize-headings.d.ts.map +1 -0
- package/dist/md/plugins/normalize-headings.js +51 -0
- package/dist/md/plugins/normalize-headings.js.map +1 -0
- package/dist/md/plugins/normalize-whitespace.d.ts +46 -0
- package/dist/md/plugins/normalize-whitespace.d.ts.map +1 -0
- package/dist/md/plugins/normalize-whitespace.js +86 -0
- package/dist/md/plugins/normalize-whitespace.js.map +1 -0
- package/dist/md/plugins/remove-badges.d.ts +36 -0
- package/dist/md/plugins/remove-badges.d.ts.map +1 -0
- package/dist/md/plugins/remove-badges.js +59 -0
- package/dist/md/plugins/remove-badges.js.map +1 -0
- package/dist/md/plugins/remove-comments.d.ts +27 -0
- package/dist/md/plugins/remove-comments.d.ts.map +1 -0
- package/dist/md/plugins/remove-comments.js +40 -0
- package/dist/md/plugins/remove-comments.js.map +1 -0
- package/dist/md/plugins/remove-duplicates.d.ts +40 -0
- package/dist/md/plugins/remove-duplicates.d.ts.map +1 -0
- package/dist/md/plugins/remove-duplicates.js +72 -0
- package/dist/md/plugins/remove-duplicates.js.map +1 -0
- package/dist/md/plugins/remove-internal-links.d.ts +38 -0
- package/dist/md/plugins/remove-internal-links.d.ts.map +1 -0
- package/dist/md/plugins/remove-internal-links.js +66 -0
- package/dist/md/plugins/remove-internal-links.js.map +1 -0
- package/dist/md/plugins/strip-heading-numbers.d.ts +35 -0
- package/dist/md/plugins/strip-heading-numbers.d.ts.map +1 -0
- package/dist/md/plugins/strip-heading-numbers.js +59 -0
- package/dist/md/plugins/strip-heading-numbers.js.map +1 -0
- package/dist/md/plugins/strip-section-meta.d.ts +37 -0
- package/dist/md/plugins/strip-section-meta.d.ts.map +1 -0
- package/dist/md/plugins/strip-section-meta.js +62 -0
- package/dist/md/plugins/strip-section-meta.js.map +1 -0
- package/dist/md/types/config.d.ts +260 -0
- package/dist/md/types/config.d.ts.map +1 -0
- package/dist/md/types/config.js +156 -0
- package/dist/md/types/config.js.map +1 -0
- package/dist/md/types/document.d.ts +37 -0
- package/dist/md/types/document.d.ts.map +1 -0
- package/dist/md/types/document.js +2 -0
- package/dist/md/types/document.js.map +1 -0
- package/dist/md/types/validation.d.ts +107 -0
- package/dist/md/types/validation.d.ts.map +1 -0
- package/dist/md/types/validation.js +2 -0
- package/dist/md/types/validation.js.map +1 -0
- package/dist/md/utils/code-blocks.d.ts +136 -0
- package/dist/md/utils/code-blocks.d.ts.map +1 -0
- package/dist/md/utils/code-blocks.js +178 -0
- package/dist/md/utils/code-blocks.js.map +1 -0
- package/dist/md/utils/config.d.ts +10 -0
- package/dist/md/utils/config.d.ts.map +1 -0
- package/dist/md/utils/config.js +99 -0
- package/dist/md/utils/config.js.map +1 -0
- package/dist/md/utils/file-collector.d.ts +78 -0
- package/dist/md/utils/file-collector.d.ts.map +1 -0
- package/dist/md/utils/file-collector.js +100 -0
- package/dist/md/utils/file-collector.js.map +1 -0
- package/dist/md/utils/markdown.d.ts +18 -0
- package/dist/md/utils/markdown.d.ts.map +1 -0
- package/dist/md/utils/markdown.js +93 -0
- package/dist/md/utils/markdown.js.map +1 -0
- package/dist/md/utils/remark.d.ts +91 -0
- package/dist/md/utils/remark.d.ts.map +1 -0
- package/dist/md/utils/remark.js +125 -0
- package/dist/md/utils/remark.js.map +1 -0
- package/dist/md/utils/tokens.d.ts +9 -0
- package/dist/md/utils/tokens.d.ts.map +1 -0
- package/dist/md/utils/tokens.js +31 -0
- package/dist/md/utils/tokens.js.map +1 -0
- package/dist/md/validator/index.d.ts +40 -0
- package/dist/md/validator/index.d.ts.map +1 -0
- package/dist/md/validator/index.js +289 -0
- package/dist/md/validator/index.js.map +1 -0
- package/dist/parsers/details-jsdoc.d.ts +46 -0
- package/dist/parsers/details-jsdoc.d.ts.map +1 -0
- package/dist/parsers/details-jsdoc.js +262 -0
- package/dist/parsers/details-jsdoc.js.map +1 -0
- package/dist/parsers/details-zod.d.ts +22 -0
- package/dist/parsers/details-zod.d.ts.map +1 -0
- package/dist/parsers/details-zod.js +145 -0
- package/dist/parsers/details-zod.js.map +1 -0
- package/dist/parsers/drizzle-schema.d.ts +92 -0
- package/dist/parsers/drizzle-schema.d.ts.map +1 -0
- package/dist/parsers/drizzle-schema.js +376 -0
- package/dist/parsers/drizzle-schema.js.map +1 -0
- package/dist/parsers/feature-map-tags.d.ts +45 -0
- package/dist/parsers/feature-map-tags.d.ts.map +1 -0
- package/dist/parsers/feature-map-tags.js +292 -0
- package/dist/parsers/feature-map-tags.js.map +1 -0
- package/dist/parsers/feature-map-type-extraction.d.ts +62 -0
- package/dist/parsers/feature-map-type-extraction.d.ts.map +1 -0
- package/dist/parsers/feature-map-type-extraction.js +347 -0
- package/dist/parsers/feature-map-type-extraction.js.map +1 -0
- package/dist/parsers/feature-map-utils.d.ts +34 -0
- package/dist/parsers/feature-map-utils.d.ts.map +1 -0
- package/dist/parsers/feature-map-utils.js +101 -0
- package/dist/parsers/feature-map-utils.js.map +1 -0
- package/dist/parsers/jsdoc-common.d.ts +209 -0
- package/dist/parsers/jsdoc-common.d.ts.map +1 -0
- package/dist/parsers/jsdoc-common.js +655 -0
- package/dist/parsers/jsdoc-common.js.map +1 -0
- package/dist/parsers/jsdoc.d.ts +76 -0
- package/dist/parsers/jsdoc.d.ts.map +1 -0
- package/dist/parsers/jsdoc.js +238 -0
- package/dist/parsers/jsdoc.js.map +1 -0
- package/dist/parsers/screenshot-annotations.d.ts +96 -0
- package/dist/parsers/screenshot-annotations.d.ts.map +1 -0
- package/dist/parsers/screenshot-annotations.js +227 -0
- package/dist/parsers/screenshot-annotations.js.map +1 -0
- package/dist/parsers/test-annotations.d.ts +46 -0
- package/dist/parsers/test-annotations.d.ts.map +1 -0
- package/dist/parsers/test-annotations.js +393 -0
- package/dist/parsers/test-annotations.js.map +1 -0
- package/dist/parsers/test-categorization.d.ts +42 -0
- package/dist/parsers/test-categorization.d.ts.map +1 -0
- package/dist/parsers/test-categorization.js +182 -0
- package/dist/parsers/test-categorization.js.map +1 -0
- package/dist/parsers/zod-schema.d.ts +105 -0
- package/dist/parsers/zod-schema.d.ts.map +1 -0
- package/dist/parsers/zod-schema.js +270 -0
- package/dist/parsers/zod-schema.js.map +1 -0
- package/dist/utils/action-inference.d.ts +23 -0
- package/dist/utils/action-inference.d.ts.map +1 -0
- package/dist/utils/action-inference.js +36 -0
- package/dist/utils/action-inference.js.map +1 -0
- package/dist/utils/app-inference.d.ts +31 -0
- package/dist/utils/app-inference.d.ts.map +1 -0
- package/dist/utils/app-inference.js +41 -0
- package/dist/utils/app-inference.js.map +1 -0
- package/dist/utils/auto-infer.d.ts +93 -0
- package/dist/utils/auto-infer.d.ts.map +1 -0
- package/dist/utils/auto-infer.js +184 -0
- package/dist/utils/auto-infer.js.map +1 -0
- package/dist/utils/config.d.ts +709 -0
- package/dist/utils/config.d.ts.map +1 -0
- package/dist/utils/config.js +504 -0
- package/dist/utils/config.js.map +1 -0
- package/dist/utils/file.d.ts +46 -0
- package/dist/utils/file.d.ts.map +1 -0
- package/dist/utils/file.js +103 -0
- package/dist/utils/file.js.map +1 -0
- package/dist/utils/formatters.d.ts +111 -0
- package/dist/utils/formatters.d.ts.map +1 -0
- package/dist/utils/formatters.js +164 -0
- package/dist/utils/formatters.js.map +1 -0
- package/dist/utils/gh-config.d.ts +99 -0
- package/dist/utils/gh-config.d.ts.map +1 -0
- package/dist/utils/gh-config.js +247 -0
- package/dist/utils/gh-config.js.map +1 -0
- package/dist/utils/github.d.ts +98 -0
- package/dist/utils/github.d.ts.map +1 -0
- package/dist/utils/github.js +295 -0
- package/dist/utils/github.js.map +1 -0
- package/dist/utils/html.d.ts +107 -0
- package/dist/utils/html.d.ts.map +1 -0
- package/dist/utils/html.js +376 -0
- package/dist/utils/html.js.map +1 -0
- package/dist/utils/i18n.d.ts +40 -0
- package/dist/utils/i18n.d.ts.map +1 -0
- package/dist/utils/i18n.js +148 -0
- package/dist/utils/i18n.js.map +1 -0
- package/dist/utils/logger.d.ts +20 -0
- package/dist/utils/logger.d.ts.map +1 -0
- package/dist/utils/logger.js +49 -0
- package/dist/utils/logger.js.map +1 -0
- package/dist/utils/project-fields.d.ts +71 -0
- package/dist/utils/project-fields.d.ts.map +1 -0
- package/dist/utils/project-fields.js +318 -0
- package/dist/utils/project-fields.js.map +1 -0
- package/dist/utils/repo-pairs.d.ts +94 -0
- package/dist/utils/repo-pairs.d.ts.map +1 -0
- package/dist/utils/repo-pairs.js +196 -0
- package/dist/utils/repo-pairs.js.map +1 -0
- package/dist/utils/route-inference.d.ts +81 -0
- package/dist/utils/route-inference.d.ts.map +1 -0
- package/dist/utils/route-inference.js +137 -0
- package/dist/utils/route-inference.js.map +1 -0
- package/dist/utils/setup-check.d.ts +34 -0
- package/dist/utils/setup-check.d.ts.map +1 -0
- package/dist/utils/setup-check.js +136 -0
- package/dist/utils/setup-check.js.map +1 -0
- package/dist/utils/shirokumaignore.d.ts +55 -0
- package/dist/utils/shirokumaignore.d.ts.map +1 -0
- package/dist/utils/shirokumaignore.js +94 -0
- package/dist/utils/shirokumaignore.js.map +1 -0
- package/dist/utils/skills-repo.d.ts +353 -0
- package/dist/utils/skills-repo.d.ts.map +1 -0
- package/dist/utils/skills-repo.js +793 -0
- package/dist/utils/skills-repo.js.map +1 -0
- package/dist/utils/status-workflow.d.ts +54 -0
- package/dist/utils/status-workflow.d.ts.map +1 -0
- package/dist/utils/status-workflow.js +103 -0
- package/dist/utils/status-workflow.js.map +1 -0
- package/dist/validators/frontmatter.d.ts +41 -0
- package/dist/validators/frontmatter.d.ts.map +1 -0
- package/dist/validators/frontmatter.js +117 -0
- package/dist/validators/frontmatter.js.map +1 -0
- package/dist/validators/link-checker.d.ts +48 -0
- package/dist/validators/link-checker.d.ts.map +1 -0
- package/dist/validators/link-checker.js +108 -0
- package/dist/validators/link-checker.js.map +1 -0
- package/dist/validators/markdown-structure.d.ts +50 -0
- package/dist/validators/markdown-structure.d.ts.map +1 -0
- package/dist/validators/markdown-structure.js +253 -0
- package/dist/validators/markdown-structure.js.map +1 -0
- package/i18n/cli/en.json +155 -0
- package/i18n/cli/ja.json +155 -0
- package/i18n/discussion/en.json +191 -0
- package/i18n/discussion/ja.json +191 -0
- package/package.json +113 -0
- package/portal/app/api-tools/api-tools-client.tsx +411 -0
- package/portal/app/api-tools/api-tools-document.tsx +240 -0
- package/portal/app/api-tools/page.tsx +56 -0
- package/portal/app/api-tools/swagger-view.tsx +114 -0
- package/portal/app/apps/[appId]/[type]/[module]/[item]/item-tabs-client.tsx +71 -0
- package/portal/app/apps/[appId]/[type]/[module]/[item]/page.tsx +1422 -0
- package/portal/app/apps/[appId]/[type]/[module]/page.tsx +373 -0
- package/portal/app/apps/[appId]/feature-map/feature-map-app-document.tsx +298 -0
- package/portal/app/apps/[appId]/feature-map/page.tsx +224 -0
- package/portal/app/apps/[appId]/i18n/page.tsx +139 -0
- package/portal/app/apps/[appId]/test-cases/page.tsx +840 -0
- package/portal/app/apps/[appId]/tools/[tool]/page.tsx +351 -0
- package/portal/app/apps/[appId]/tools/api-tools-client.tsx +429 -0
- package/portal/app/apps/[appId]/tools/page.tsx +119 -0
- package/portal/app/db-schema/[db]/[table]/page.tsx +235 -0
- package/portal/app/db-schema/[db]/diagram/page.tsx +81 -0
- package/portal/app/db-schema/[db]/page.tsx +148 -0
- package/portal/app/db-schema/db-schema-document.tsx +100 -0
- package/portal/app/db-schema/diagram/client.tsx +211 -0
- package/portal/app/db-schema/diagram/page.tsx +20 -0
- package/portal/app/db-schema/page.tsx +145 -0
- package/portal/app/db-schema/table-detail-document.tsx +710 -0
- package/portal/app/db-schema/table-detail.tsx +747 -0
- package/portal/app/db-schema/table-list-document.tsx +224 -0
- package/portal/app/db-schema/table-list.tsx +247 -0
- package/portal/app/details/[type]/[module]/[item]/item-tabs-client.tsx +71 -0
- package/portal/app/details/[type]/[module]/[item]/page.tsx +1286 -0
- package/portal/app/details/[type]/[module]/page.tsx +884 -0
- package/portal/app/feature-map/feature-map-client.tsx +681 -0
- package/portal/app/feature-map/feature-map-document.tsx +313 -0
- package/portal/app/feature-map/page.tsx +438 -0
- package/portal/app/globals.css +205 -0
- package/portal/app/i18n/[...namespace]/page.tsx +190 -0
- package/portal/app/i18n/i18n-client.tsx +369 -0
- package/portal/app/i18n/page.tsx +339 -0
- package/portal/app/layout.tsx +37 -0
- package/portal/app/overview/page.tsx +65 -0
- package/portal/app/packages/[packageId]/page.tsx +201 -0
- package/portal/app/packages/page.tsx +148 -0
- package/portal/app/page.tsx +568 -0
- package/portal/app/test-cases/[file]/[line]/page.tsx +455 -0
- package/portal/app/test-cases/[file]/[line]/test-detail-document.tsx +335 -0
- package/portal/app/test-cases/[file]/page.tsx +323 -0
- package/portal/app/test-cases/[file]/test-file-document.tsx +335 -0
- package/portal/app/test-cases/page.tsx +546 -0
- package/portal/app/test-cases/test-cases-document.tsx +384 -0
- package/portal/components/code-block.tsx +57 -0
- package/portal/components/document/doc-params-table.tsx +71 -0
- package/portal/components/document/doc-section.tsx +133 -0
- package/portal/components/document/doc-table.tsx +119 -0
- package/portal/components/document/index.ts +9 -0
- package/portal/components/drawflow-er-diagram.tsx +607 -0
- package/portal/components/interactive-er-diagram.tsx +228 -0
- package/portal/components/layout/app-sidebar.tsx +490 -0
- package/portal/components/layout/er-sidebar.tsx +116 -0
- package/portal/components/layout/global-header.tsx +117 -0
- package/portal/components/layout/layout-content.tsx +48 -0
- package/portal/components/markdown-content.tsx +120 -0
- package/portal/components/mermaid-diagram.tsx +83 -0
- package/portal/components/reactflow-er-diagram.tsx +475 -0
- package/portal/components/search-dialog.tsx +268 -0
- package/portal/components/shared/coverage-score-bar.tsx +144 -0
- package/portal/components/swagger/endpoint-accordion.tsx +117 -0
- package/portal/components/swagger/index.ts +7 -0
- package/portal/components/swagger/method-badge.tsx +55 -0
- package/portal/components/swagger/params-table.tsx +78 -0
- package/portal/components/tabs-with-hash.tsx +43 -0
- package/portal/components/test/index.ts +2 -0
- package/portal/components/test/test-bdd-card.tsx +192 -0
- package/portal/components/test/test-matrix.tsx +242 -0
- package/portal/components/ui/accordion.tsx +66 -0
- package/portal/components/ui/badge.tsx +46 -0
- package/portal/components/ui/breadcrumb.tsx +109 -0
- package/portal/components/ui/button.tsx +62 -0
- package/portal/components/ui/card.tsx +92 -0
- package/portal/components/ui/collapsible.tsx +33 -0
- package/portal/components/ui/dialog.tsx +118 -0
- package/portal/components/ui/progress.tsx +28 -0
- package/portal/components/ui/scroll-area.tsx +58 -0
- package/portal/components/ui/sheet.tsx +139 -0
- package/portal/components/ui/table.tsx +116 -0
- package/portal/components/ui/tabs.tsx +66 -0
- package/portal/components.json +21 -0
- package/portal/lib/constants/test-categories.ts +186 -0
- package/portal/lib/data-loader.ts +1181 -0
- package/portal/lib/db-schema-utils.ts +182 -0
- package/portal/lib/format.ts +43 -0
- package/portal/lib/hooks/use-hash-tab.ts +144 -0
- package/portal/lib/path-utils.ts +25 -0
- package/portal/lib/search-index-generator.ts +214 -0
- package/portal/lib/search.ts +126 -0
- package/portal/lib/sidebar-context.tsx +111 -0
- package/portal/lib/types.ts +740 -0
- package/portal/lib/utils.ts +6 -0
- package/portal/next.config.ts +21 -0
- package/portal/package.json +45 -0
- package/portal/postcss.config.mjs +8 -0
- package/portal/tsconfig.json +41 -0
- package/portal/types/drawflow.d.ts +80 -0
- package/templates/README.md +73 -0
- package/templates/coverage.html +367 -0
- package/templates/dark-theme.css +443 -0
- package/templates/discussion/adr.yml.hbs +65 -0
- package/templates/discussion/handovers.yml.hbs +57 -0
- package/templates/discussion/knowledge.yml.hbs +60 -0
- package/templates/discussion/reports.yml.hbs +68 -0
- package/templates/discussion/research.yml.hbs +61 -0
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shared utilities for DB Schema pages
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
// Category configuration with styling
|
|
6
|
+
export const categoryConfig: Record<
|
|
7
|
+
string,
|
|
8
|
+
{ label: string; color: string; bgColor: string }
|
|
9
|
+
> = {
|
|
10
|
+
auth: {
|
|
11
|
+
label: "認証",
|
|
12
|
+
color: "text-blue-500",
|
|
13
|
+
bgColor: "bg-blue-100 dark:bg-blue-900/30",
|
|
14
|
+
},
|
|
15
|
+
authentication: {
|
|
16
|
+
label: "認証",
|
|
17
|
+
color: "text-blue-500",
|
|
18
|
+
bgColor: "bg-blue-100 dark:bg-blue-900/30",
|
|
19
|
+
},
|
|
20
|
+
content: {
|
|
21
|
+
label: "コンテンツ",
|
|
22
|
+
color: "text-green-500",
|
|
23
|
+
bgColor: "bg-green-100 dark:bg-green-900/30",
|
|
24
|
+
},
|
|
25
|
+
organization: {
|
|
26
|
+
label: "組織",
|
|
27
|
+
color: "text-purple-500",
|
|
28
|
+
bgColor: "bg-purple-100 dark:bg-purple-900/30",
|
|
29
|
+
},
|
|
30
|
+
organizations: {
|
|
31
|
+
label: "組織",
|
|
32
|
+
color: "text-purple-500",
|
|
33
|
+
bgColor: "bg-purple-100 dark:bg-purple-900/30",
|
|
34
|
+
},
|
|
35
|
+
project: {
|
|
36
|
+
label: "プロジェクト",
|
|
37
|
+
color: "text-amber-500",
|
|
38
|
+
bgColor: "bg-amber-100 dark:bg-amber-900/30",
|
|
39
|
+
},
|
|
40
|
+
projects: {
|
|
41
|
+
label: "プロジェクト",
|
|
42
|
+
color: "text-amber-500",
|
|
43
|
+
bgColor: "bg-amber-100 dark:bg-amber-900/30",
|
|
44
|
+
},
|
|
45
|
+
session: {
|
|
46
|
+
label: "セッション",
|
|
47
|
+
color: "text-cyan-500",
|
|
48
|
+
bgColor: "bg-cyan-100 dark:bg-cyan-900/30",
|
|
49
|
+
},
|
|
50
|
+
sessions: {
|
|
51
|
+
label: "セッション",
|
|
52
|
+
color: "text-cyan-500",
|
|
53
|
+
bgColor: "bg-cyan-100 dark:bg-cyan-900/30",
|
|
54
|
+
},
|
|
55
|
+
"work sessions": {
|
|
56
|
+
label: "セッション",
|
|
57
|
+
color: "text-cyan-500",
|
|
58
|
+
bgColor: "bg-cyan-100 dark:bg-cyan-900/30",
|
|
59
|
+
},
|
|
60
|
+
entity: {
|
|
61
|
+
label: "エンティティ",
|
|
62
|
+
color: "text-rose-500",
|
|
63
|
+
bgColor: "bg-rose-100 dark:bg-rose-900/30",
|
|
64
|
+
},
|
|
65
|
+
entities: {
|
|
66
|
+
label: "エンティティ",
|
|
67
|
+
color: "text-rose-500",
|
|
68
|
+
bgColor: "bg-rose-100 dark:bg-rose-900/30",
|
|
69
|
+
},
|
|
70
|
+
activity: {
|
|
71
|
+
label: "アクティビティ",
|
|
72
|
+
color: "text-indigo-500",
|
|
73
|
+
bgColor: "bg-indigo-100 dark:bg-indigo-900/30",
|
|
74
|
+
},
|
|
75
|
+
activities: {
|
|
76
|
+
label: "アクティビティ",
|
|
77
|
+
color: "text-indigo-500",
|
|
78
|
+
bgColor: "bg-indigo-100 dark:bg-indigo-900/30",
|
|
79
|
+
},
|
|
80
|
+
token: {
|
|
81
|
+
label: "トークン",
|
|
82
|
+
color: "text-orange-500",
|
|
83
|
+
bgColor: "bg-orange-100 dark:bg-orange-900/30",
|
|
84
|
+
},
|
|
85
|
+
tokens: {
|
|
86
|
+
label: "トークン",
|
|
87
|
+
color: "text-orange-500",
|
|
88
|
+
bgColor: "bg-orange-100 dark:bg-orange-900/30",
|
|
89
|
+
},
|
|
90
|
+
"mcp tokens": {
|
|
91
|
+
label: "トークン",
|
|
92
|
+
color: "text-orange-500",
|
|
93
|
+
bgColor: "bg-orange-100 dark:bg-orange-900/30",
|
|
94
|
+
},
|
|
95
|
+
context: {
|
|
96
|
+
label: "コンテキスト",
|
|
97
|
+
color: "text-teal-500",
|
|
98
|
+
bgColor: "bg-teal-100 dark:bg-teal-900/30",
|
|
99
|
+
},
|
|
100
|
+
"user context": {
|
|
101
|
+
label: "コンテキスト",
|
|
102
|
+
color: "text-teal-500",
|
|
103
|
+
bgColor: "bg-teal-100 dark:bg-teal-900/30",
|
|
104
|
+
},
|
|
105
|
+
other: {
|
|
106
|
+
label: "その他",
|
|
107
|
+
color: "text-gray-500",
|
|
108
|
+
bgColor: "bg-gray-100 dark:bg-gray-900/30",
|
|
109
|
+
},
|
|
110
|
+
};
|
|
111
|
+
|
|
112
|
+
// Normalize category name to standard format
|
|
113
|
+
export function normalizeCategory(category: string | undefined): string {
|
|
114
|
+
if (!category) return "other";
|
|
115
|
+
const lower = category.toLowerCase();
|
|
116
|
+
|
|
117
|
+
// Map aliases to canonical names
|
|
118
|
+
if (lower === "authentication" || lower === "auth") return "auth";
|
|
119
|
+
if (lower === "organizations" || lower === "organization") return "organization";
|
|
120
|
+
if (lower === "projects" || lower === "project") return "project";
|
|
121
|
+
if (lower === "sessions" || lower === "session" || lower === "work sessions")
|
|
122
|
+
return "session";
|
|
123
|
+
if (lower === "entities" || lower === "entity") return "entity";
|
|
124
|
+
if (lower === "activities" || lower === "activity") return "activity";
|
|
125
|
+
if (lower === "tokens" || lower === "token" || lower === "mcp tokens")
|
|
126
|
+
return "token";
|
|
127
|
+
if (lower === "content" || lower === "contents") return "content";
|
|
128
|
+
if (lower === "user context" || lower === "context") return "context";
|
|
129
|
+
|
|
130
|
+
return lower in categoryConfig ? lower : "other";
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
// Infer category from table name
|
|
134
|
+
export function inferCategory(tableName: string): string {
|
|
135
|
+
const name = tableName.toLowerCase();
|
|
136
|
+
|
|
137
|
+
if (
|
|
138
|
+
name.includes("user") ||
|
|
139
|
+
name.includes("session") ||
|
|
140
|
+
name.includes("account") ||
|
|
141
|
+
name.includes("verification")
|
|
142
|
+
) {
|
|
143
|
+
return "auth";
|
|
144
|
+
}
|
|
145
|
+
if (name.includes("organization") || name.includes("member")) {
|
|
146
|
+
return "organization";
|
|
147
|
+
}
|
|
148
|
+
if (name.includes("project")) {
|
|
149
|
+
return "project";
|
|
150
|
+
}
|
|
151
|
+
if (name.includes("work_session") || name.includes("session_")) {
|
|
152
|
+
return "session";
|
|
153
|
+
}
|
|
154
|
+
if (name.includes("entity") || name.includes("entities")) {
|
|
155
|
+
return "entity";
|
|
156
|
+
}
|
|
157
|
+
if (name.includes("activity") || name.includes("activities")) {
|
|
158
|
+
return "activity";
|
|
159
|
+
}
|
|
160
|
+
if (name.includes("token")) {
|
|
161
|
+
return "token";
|
|
162
|
+
}
|
|
163
|
+
if (
|
|
164
|
+
name.includes("post") ||
|
|
165
|
+
name.includes("category") ||
|
|
166
|
+
name.includes("tag") ||
|
|
167
|
+
name.includes("comment")
|
|
168
|
+
) {
|
|
169
|
+
return "content";
|
|
170
|
+
}
|
|
171
|
+
if (name.includes("context")) {
|
|
172
|
+
return "context";
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
return "other";
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
// Get category config with fallback
|
|
179
|
+
export function getCategoryConfig(category: string) {
|
|
180
|
+
const normalized = normalizeCategory(category);
|
|
181
|
+
return categoryConfig[normalized] || categoryConfig.other;
|
|
182
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ポータル出力形式ユーティリティ
|
|
3
|
+
*
|
|
4
|
+
* PORTAL_FORMAT 環境変数からポータルの出力形式を取得
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* ポータル出力形式
|
|
9
|
+
* - "card": カード形式(デフォルト・視覚的に分かりやすい)
|
|
10
|
+
* - "document": ドキュメント形式(テーブル・アコーディオン、情報密度が高い)
|
|
11
|
+
*/
|
|
12
|
+
export type PortalFormat = "card" | "document";
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* ポータルの出力形式を取得
|
|
16
|
+
*
|
|
17
|
+
* ビルド時に PORTAL_FORMAT 環境変数から読み取り、
|
|
18
|
+
* 静的生成時にページに埋め込まれる
|
|
19
|
+
*/
|
|
20
|
+
export function getPortalFormat(): PortalFormat {
|
|
21
|
+
const format = process.env.PORTAL_FORMAT;
|
|
22
|
+
|
|
23
|
+
if (format === "document") {
|
|
24
|
+
return "document";
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
// デフォルトは card
|
|
28
|
+
return "card";
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* ドキュメント形式かどうかを判定
|
|
33
|
+
*/
|
|
34
|
+
export function isDocumentFormat(): boolean {
|
|
35
|
+
return getPortalFormat() === "document";
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* カード形式かどうかを判定
|
|
40
|
+
*/
|
|
41
|
+
export function isCardFormat(): boolean {
|
|
42
|
+
return getPortalFormat() === "card";
|
|
43
|
+
}
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* useHashTab Hook
|
|
3
|
+
*
|
|
4
|
+
* Syncs tab state with URL hash for browser history support.
|
|
5
|
+
* Replaces duplicated logic in:
|
|
6
|
+
* - feature-map/feature-map-client.tsx
|
|
7
|
+
* - details/[type]/[module]/[item]/item-tabs-client.tsx
|
|
8
|
+
* - components/tabs-with-hash.tsx
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
"use client";
|
|
12
|
+
|
|
13
|
+
import { useState, useEffect, useCallback } from "react";
|
|
14
|
+
|
|
15
|
+
export interface UseHashTabOptions {
|
|
16
|
+
/** Prefix for hash (e.g., "tab-" results in #tab-overview) */
|
|
17
|
+
hashPrefix?: string;
|
|
18
|
+
/** Use replaceState instead of pushState */
|
|
19
|
+
replaceState?: boolean;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export interface UseHashTabResult<T extends string> {
|
|
23
|
+
/** Currently active tab */
|
|
24
|
+
activeTab: T;
|
|
25
|
+
/** Whether component is mounted (for SSR hydration) */
|
|
26
|
+
mounted: boolean;
|
|
27
|
+
/** Handler for tab change */
|
|
28
|
+
handleTabChange: (value: string) => void;
|
|
29
|
+
/** Set tab without updating URL */
|
|
30
|
+
setActiveTabSilent: (value: T) => void;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* Hook for syncing tab state with URL hash
|
|
35
|
+
*
|
|
36
|
+
* @param defaultTab - Default tab value when no hash is present
|
|
37
|
+
* @param validTabs - Array of valid tab values
|
|
38
|
+
* @param options - Optional configuration
|
|
39
|
+
* @returns Tab state and handlers
|
|
40
|
+
*
|
|
41
|
+
* @example
|
|
42
|
+
* const TABS = ["overview", "code", "tests"] as const;
|
|
43
|
+
* type TabType = typeof TABS[number];
|
|
44
|
+
*
|
|
45
|
+
* const { activeTab, mounted, handleTabChange } = useHashTab<TabType>(
|
|
46
|
+
* "overview",
|
|
47
|
+
* TABS
|
|
48
|
+
* );
|
|
49
|
+
*
|
|
50
|
+
* // Use with Tabs component
|
|
51
|
+
* <Tabs value={activeTab} onValueChange={handleTabChange}>
|
|
52
|
+
* ...
|
|
53
|
+
* </Tabs>
|
|
54
|
+
*/
|
|
55
|
+
export function useHashTab<T extends string>(
|
|
56
|
+
defaultTab: T,
|
|
57
|
+
validTabs: readonly T[],
|
|
58
|
+
options: UseHashTabOptions = {}
|
|
59
|
+
): UseHashTabResult<T> {
|
|
60
|
+
const { hashPrefix = "", replaceState = false } = options;
|
|
61
|
+
const [activeTab, setActiveTab] = useState<T>(defaultTab);
|
|
62
|
+
const [mounted, setMounted] = useState(false);
|
|
63
|
+
|
|
64
|
+
// Parse hash value to tab
|
|
65
|
+
const parseHash = useCallback(
|
|
66
|
+
(hash: string): T | null => {
|
|
67
|
+
// Remove # and prefix
|
|
68
|
+
let value = hash.slice(1);
|
|
69
|
+
if (hashPrefix && value.startsWith(hashPrefix)) {
|
|
70
|
+
value = value.slice(hashPrefix.length);
|
|
71
|
+
}
|
|
72
|
+
// Validate
|
|
73
|
+
if (validTabs.includes(value as T)) {
|
|
74
|
+
return value as T;
|
|
75
|
+
}
|
|
76
|
+
return null;
|
|
77
|
+
},
|
|
78
|
+
[hashPrefix, validTabs]
|
|
79
|
+
);
|
|
80
|
+
|
|
81
|
+
// Format tab to hash
|
|
82
|
+
const formatHash = useCallback(
|
|
83
|
+
(tab: T): string => {
|
|
84
|
+
return `#${hashPrefix}${tab}`;
|
|
85
|
+
},
|
|
86
|
+
[hashPrefix]
|
|
87
|
+
);
|
|
88
|
+
|
|
89
|
+
// Handle hash change event
|
|
90
|
+
useEffect(() => {
|
|
91
|
+
setMounted(true);
|
|
92
|
+
|
|
93
|
+
const handleHashChange = () => {
|
|
94
|
+
const hash = window.location.hash;
|
|
95
|
+
const tab = parseHash(hash);
|
|
96
|
+
if (tab) {
|
|
97
|
+
setActiveTab(tab);
|
|
98
|
+
}
|
|
99
|
+
};
|
|
100
|
+
|
|
101
|
+
// Set initial tab from hash
|
|
102
|
+
handleHashChange();
|
|
103
|
+
|
|
104
|
+
// Listen for hash changes (back/forward navigation)
|
|
105
|
+
window.addEventListener("hashchange", handleHashChange);
|
|
106
|
+
return () => window.removeEventListener("hashchange", handleHashChange);
|
|
107
|
+
}, [parseHash]);
|
|
108
|
+
|
|
109
|
+
// Handle tab change with URL update
|
|
110
|
+
const handleTabChange = useCallback(
|
|
111
|
+
(value: string) => {
|
|
112
|
+
if (!validTabs.includes(value as T)) return;
|
|
113
|
+
|
|
114
|
+
const tab = value as T;
|
|
115
|
+
setActiveTab(tab);
|
|
116
|
+
|
|
117
|
+
// Update URL hash
|
|
118
|
+
const hash = formatHash(tab);
|
|
119
|
+
if (replaceState) {
|
|
120
|
+
window.history.replaceState(null, "", hash);
|
|
121
|
+
} else {
|
|
122
|
+
window.history.pushState(null, "", hash);
|
|
123
|
+
}
|
|
124
|
+
},
|
|
125
|
+
[validTabs, formatHash, replaceState]
|
|
126
|
+
);
|
|
127
|
+
|
|
128
|
+
// Set tab without URL update (for programmatic control)
|
|
129
|
+
const setActiveTabSilent = useCallback(
|
|
130
|
+
(value: T) => {
|
|
131
|
+
if (validTabs.includes(value)) {
|
|
132
|
+
setActiveTab(value);
|
|
133
|
+
}
|
|
134
|
+
},
|
|
135
|
+
[validTabs]
|
|
136
|
+
);
|
|
137
|
+
|
|
138
|
+
return {
|
|
139
|
+
activeTab,
|
|
140
|
+
mounted,
|
|
141
|
+
handleTabChange,
|
|
142
|
+
setActiveTabSilent,
|
|
143
|
+
};
|
|
144
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Utility functions for encoding/decoding file paths in URLs
|
|
3
|
+
*
|
|
4
|
+
* Problem: Nginx decodes %2F to / before matching files, so we can't use
|
|
5
|
+
* URL-encoded slashes in static file paths.
|
|
6
|
+
*
|
|
7
|
+
* Solution: Replace / with _SLASH_ for URL-safe file paths
|
|
8
|
+
* Note: Using _SLASH_ instead of __ because __tests__ directories contain __
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Encode a file path for use in URLs
|
|
13
|
+
* Replaces / with _SLASH_ to avoid Nginx decoding issues
|
|
14
|
+
*/
|
|
15
|
+
export function encodeFilePath(filePath: string): string {
|
|
16
|
+
return filePath.replace(/\//g, "_SLASH_");
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Decode a URL-safe file path back to original
|
|
21
|
+
* Replaces _SLASH_ with /
|
|
22
|
+
*/
|
|
23
|
+
export function decodeFilePath(encodedPath: string): string {
|
|
24
|
+
return encodedPath.replace(/_SLASH_/g, "/");
|
|
25
|
+
}
|
|
@@ -0,0 +1,214 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generate search index from documentation data
|
|
3
|
+
* This is used at build time to create a searchable index
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import type { SearchIndex, SearchItem } from "./search";
|
|
7
|
+
import type {
|
|
8
|
+
FeatureMapData,
|
|
9
|
+
DbSchemaData,
|
|
10
|
+
TestCasesData,
|
|
11
|
+
DetailsData,
|
|
12
|
+
} from "./types";
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Generate search index from all available data
|
|
16
|
+
*/
|
|
17
|
+
export function generateSearchIndex(
|
|
18
|
+
featureMap: FeatureMapData | null,
|
|
19
|
+
dbSchema: DbSchemaData | null,
|
|
20
|
+
testCases: TestCasesData | null,
|
|
21
|
+
details: DetailsData | null
|
|
22
|
+
): SearchIndex {
|
|
23
|
+
const items: SearchItem[] = [];
|
|
24
|
+
|
|
25
|
+
// Index feature map items
|
|
26
|
+
if (featureMap) {
|
|
27
|
+
for (const [moduleName, group] of Object.entries(featureMap.features)) {
|
|
28
|
+
// Screens
|
|
29
|
+
for (const screen of group.screens || []) {
|
|
30
|
+
items.push({
|
|
31
|
+
id: `screen-${moduleName}-${screen.name}`,
|
|
32
|
+
title: screen.name,
|
|
33
|
+
description: screen.description || screen.descriptionEn || `${moduleName}モジュールの画面`,
|
|
34
|
+
category: "screen",
|
|
35
|
+
module: moduleName,
|
|
36
|
+
path: `/details/screens/${encodeURIComponent(moduleName)}/${encodeURIComponent(screen.name)}`,
|
|
37
|
+
keywords: [
|
|
38
|
+
screen.route || "",
|
|
39
|
+
...(screen.components || []),
|
|
40
|
+
...(screen.actions || []),
|
|
41
|
+
].filter(Boolean),
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
// Components
|
|
46
|
+
for (const component of group.components || []) {
|
|
47
|
+
items.push({
|
|
48
|
+
id: `component-${moduleName}-${component.name}`,
|
|
49
|
+
title: component.name,
|
|
50
|
+
description: component.description || component.descriptionEn || `${moduleName}モジュールのコンポーネント`,
|
|
51
|
+
category: "component",
|
|
52
|
+
module: moduleName,
|
|
53
|
+
path: `/details/components/${encodeURIComponent(moduleName)}/${encodeURIComponent(component.name)}`,
|
|
54
|
+
keywords: component.props?.map((p) => p.name) || [],
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
// Actions
|
|
59
|
+
for (const action of group.actions || []) {
|
|
60
|
+
items.push({
|
|
61
|
+
id: `action-${moduleName}-${action.name}`,
|
|
62
|
+
title: action.name,
|
|
63
|
+
description: action.description || action.descriptionEn || `${moduleName}モジュールのServer Action`,
|
|
64
|
+
category: "action",
|
|
65
|
+
module: moduleName,
|
|
66
|
+
path: `/details/actions/${encodeURIComponent(moduleName)}/${encodeURIComponent(action.name)}`,
|
|
67
|
+
keywords: [
|
|
68
|
+
...(action.params?.map((p) => p.name) || []),
|
|
69
|
+
...(action.dbTables || []),
|
|
70
|
+
],
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
// Tables (from feature map)
|
|
75
|
+
for (const table of group.tables || []) {
|
|
76
|
+
items.push({
|
|
77
|
+
id: `table-${moduleName}-${table.name}`,
|
|
78
|
+
title: table.name,
|
|
79
|
+
description: table.description || `${moduleName}モジュールのDBテーブル`,
|
|
80
|
+
category: "table",
|
|
81
|
+
module: moduleName,
|
|
82
|
+
path: `/details/tables/${encodeURIComponent(moduleName)}/${encodeURIComponent(table.name)}`,
|
|
83
|
+
keywords: table.columns?.map((c) => c.name) || [],
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
// Uncategorized items
|
|
89
|
+
const uncategorized = featureMap.uncategorized;
|
|
90
|
+
if (uncategorized) {
|
|
91
|
+
for (const screen of uncategorized.screens || []) {
|
|
92
|
+
items.push({
|
|
93
|
+
id: `screen-uncategorized-${screen.name}`,
|
|
94
|
+
title: screen.name,
|
|
95
|
+
description: screen.description || screen.descriptionEn || "未分類の画面",
|
|
96
|
+
category: "screen",
|
|
97
|
+
module: "Uncategorized",
|
|
98
|
+
path: `/details/screens/Uncategorized/${encodeURIComponent(screen.name)}`,
|
|
99
|
+
keywords: [screen.route || ""].filter(Boolean),
|
|
100
|
+
});
|
|
101
|
+
}
|
|
102
|
+
// ... similar for other uncategorized types
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
// Index DB schema tables
|
|
107
|
+
if (dbSchema) {
|
|
108
|
+
for (const table of dbSchema.tables) {
|
|
109
|
+
// Check if already indexed from feature map
|
|
110
|
+
const existingIndex = items.findIndex(
|
|
111
|
+
(item) => item.category === "table" && item.title === table.name
|
|
112
|
+
);
|
|
113
|
+
|
|
114
|
+
if (existingIndex === -1) {
|
|
115
|
+
items.push({
|
|
116
|
+
id: `db-${table.name}`,
|
|
117
|
+
title: table.name,
|
|
118
|
+
description: table.description || `${table.category || "データベース"}テーブル`,
|
|
119
|
+
category: "db",
|
|
120
|
+
module: table.category || undefined,
|
|
121
|
+
path: `/db-schema/${encodeURIComponent(table.name)}`,
|
|
122
|
+
keywords: [
|
|
123
|
+
...(table.columns?.map((c) => c.name) || []),
|
|
124
|
+
...(table.foreignKeys?.map((fk) => fk.references.table) || []),
|
|
125
|
+
],
|
|
126
|
+
});
|
|
127
|
+
} else {
|
|
128
|
+
// Enhance existing entry with more keywords
|
|
129
|
+
const existing = items[existingIndex];
|
|
130
|
+
existing.keywords = [
|
|
131
|
+
...existing.keywords,
|
|
132
|
+
...(table.columns?.map((c) => c.name) || []),
|
|
133
|
+
];
|
|
134
|
+
// Update path to db-schema page for richer info
|
|
135
|
+
existing.path = `/db-schema/${encodeURIComponent(table.name)}`;
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
// Index test cases (grouped by describe block)
|
|
141
|
+
if (testCases) {
|
|
142
|
+
const describeGroups = new Map<string, { tests: typeof testCases.testCases; firstTest: (typeof testCases.testCases)[0] }>();
|
|
143
|
+
|
|
144
|
+
for (const tc of testCases.testCases) {
|
|
145
|
+
const key = `${tc.file}:${tc.describe}`;
|
|
146
|
+
const existing = describeGroups.get(key);
|
|
147
|
+
if (existing) {
|
|
148
|
+
existing.tests.push(tc);
|
|
149
|
+
} else {
|
|
150
|
+
describeGroups.set(key, { tests: [tc], firstTest: tc });
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
for (const [key, { tests, firstTest }] of describeGroups) {
|
|
155
|
+
const fileName = firstTest.file.split("/").pop() || firstTest.file;
|
|
156
|
+
items.push({
|
|
157
|
+
id: `test-${key}`,
|
|
158
|
+
title: firstTest.describe,
|
|
159
|
+
description: `${fileName} (${tests.length}件のテスト)`,
|
|
160
|
+
category: "test",
|
|
161
|
+
path: `/test-cases#${encodeURIComponent(firstTest.file)}`,
|
|
162
|
+
keywords: [
|
|
163
|
+
firstTest.framework,
|
|
164
|
+
fileName,
|
|
165
|
+
...tests.map((t) => t.it),
|
|
166
|
+
],
|
|
167
|
+
});
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
// Add details data to enhance existing items
|
|
172
|
+
if (details) {
|
|
173
|
+
for (const [key, detail] of Object.entries(details.details)) {
|
|
174
|
+
const [type, moduleName, name] = key.split("/");
|
|
175
|
+
const existingIdx = items.findIndex(
|
|
176
|
+
(item) =>
|
|
177
|
+
item.title === name &&
|
|
178
|
+
item.module === moduleName &&
|
|
179
|
+
item.category === type
|
|
180
|
+
);
|
|
181
|
+
|
|
182
|
+
if (existingIdx !== -1) {
|
|
183
|
+
// Enhance with more keywords from details
|
|
184
|
+
const existing = items[existingIdx];
|
|
185
|
+
if (detail.jsDoc?.params) {
|
|
186
|
+
existing.keywords.push(...detail.jsDoc.params.map((p) => p.name));
|
|
187
|
+
}
|
|
188
|
+
if (detail.related?.usedInScreens) {
|
|
189
|
+
existing.keywords.push(...detail.related.usedInScreens);
|
|
190
|
+
}
|
|
191
|
+
if (detail.related?.usedInComponents) {
|
|
192
|
+
existing.keywords.push(...detail.related.usedInComponents);
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
// Remove duplicates and empty keywords
|
|
199
|
+
for (const item of items) {
|
|
200
|
+
item.keywords = [...new Set(item.keywords.filter(Boolean))];
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
return {
|
|
204
|
+
items,
|
|
205
|
+
generatedAt: new Date().toISOString(),
|
|
206
|
+
};
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
/**
|
|
210
|
+
* Serialize search index to JSON for client-side use
|
|
211
|
+
*/
|
|
212
|
+
export function serializeSearchIndex(index: SearchIndex): string {
|
|
213
|
+
return JSON.stringify(index);
|
|
214
|
+
}
|