shirokuma-docs 0.1.0-alpha.1
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.
- package/LICENSE +21 -0
- package/README.md +294 -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 +771 -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 +407 -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 +599 -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 +748 -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 +309 -0
- package/dist/utils/skills-repo.d.ts.map +1 -0
- package/dist/utils/skills-repo.js +704 -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 +111 -0
- package/plugin/.claude-plugin/marketplace.json +25 -0
- package/plugin/shirokuma-hooks/.claude-plugin/plugin.json +17 -0
- package/plugin/shirokuma-hooks/hooks/blocked-commands.json +41 -0
- package/plugin/shirokuma-hooks/hooks/hooks.json +24 -0
- package/plugin/shirokuma-hooks/hooks/scripts/backup-handover.sh +65 -0
- package/plugin/shirokuma-hooks/hooks/scripts/block-destructive-commands.sh +87 -0
- package/plugin/shirokuma-skills-en/.claude-plugin/plugin.json +21 -0
- package/plugin/shirokuma-skills-en/rules/best-practices-first.md +154 -0
- package/plugin/shirokuma-skills-en/rules/config-authoring-flow.md +39 -0
- package/plugin/shirokuma-skills-en/rules/git-commit-style.md +58 -0
- package/plugin/shirokuma-skills-en/rules/github/.gitkeep +0 -0
- package/plugin/shirokuma-skills-en/rules/github/branch-workflow.md +313 -0
- package/plugin/shirokuma-skills-en/rules/github/discussions-usage.md +129 -0
- package/plugin/shirokuma-skills-en/rules/github/output-language.md +14 -0
- package/plugin/shirokuma-skills-en/rules/github/pr-review-response.md +37 -0
- package/plugin/shirokuma-skills-en/rules/github/project-items.md +276 -0
- package/plugin/shirokuma-skills-en/rules/memory-operations.md +38 -0
- package/plugin/shirokuma-skills-en/rules/nextjs/known-issues.md +59 -0
- package/plugin/shirokuma-skills-en/rules/nextjs/lib-structure.md +48 -0
- package/plugin/shirokuma-skills-en/rules/nextjs/radix-ui-hydration.md +30 -0
- package/plugin/shirokuma-skills-en/rules/nextjs/server-actions.md +50 -0
- package/plugin/shirokuma-skills-en/rules/nextjs/tailwind-v4.md +43 -0
- package/plugin/shirokuma-skills-en/rules/nextjs/tech-stack.md +43 -0
- package/plugin/shirokuma-skills-en/rules/nextjs/testing.md +66 -0
- package/plugin/shirokuma-skills-en/rules/output-destinations.md +112 -0
- package/plugin/shirokuma-skills-en/rules/shirokuma-docs/cli-invocation.md +15 -0
- package/plugin/shirokuma-skills-en/rules/shirokuma-docs/plugin-cache.md +54 -0
- package/plugin/shirokuma-skills-en/rules/shirokuma-docs/shirokuma-annotations.md +78 -0
- package/plugin/shirokuma-skills-en/rules/skill-authoring.md +168 -0
- package/plugin/shirokuma-skills-en/skills/.gitkeep +0 -0
- package/plugin/shirokuma-skills-en/skills/best-practices-researching/SKILL.md +144 -0
- package/plugin/shirokuma-skills-en/skills/claude-config-reviewing/SKILL.md +210 -0
- package/plugin/shirokuma-skills-en/skills/codebase-rule-discovery/SKILL.md +208 -0
- package/plugin/shirokuma-skills-en/skills/codebase-rule-discovery/patterns/discovery-categories.md +191 -0
- package/plugin/shirokuma-skills-en/skills/codebase-rule-discovery/templates/convention-proposal.md +138 -0
- package/plugin/shirokuma-skills-en/skills/codebase-rule-discovery/templates/rule-proposal.md +148 -0
- package/plugin/shirokuma-skills-en/skills/codebase-rule-discovery/workflows/analyze-codebase.md +212 -0
- package/plugin/shirokuma-skills-en/skills/committing-on-issue/SKILL.md +227 -0
- package/plugin/shirokuma-skills-en/skills/creating-pr-on-issue/SKILL.md +225 -0
- package/plugin/shirokuma-skills-en/skills/ending-session/SKILL.md +232 -0
- package/plugin/shirokuma-skills-en/skills/ending-session/templates/handover-template.md +75 -0
- package/plugin/shirokuma-skills-en/skills/frontend-designing/SKILL.md +271 -0
- package/plugin/shirokuma-skills-en/skills/frontend-designing/reference/reference.md +544 -0
- package/plugin/shirokuma-skills-en/skills/github-project-setup/SKILL.md +206 -0
- package/plugin/shirokuma-skills-en/skills/github-project-setup/reference/custom-fields.md +42 -0
- package/plugin/shirokuma-skills-en/skills/github-project-setup/reference/issue-types.md +85 -0
- package/plugin/shirokuma-skills-en/skills/github-project-setup/reference/labels.md +86 -0
- package/plugin/shirokuma-skills-en/skills/github-project-setup/reference/status-options.md +69 -0
- package/plugin/shirokuma-skills-en/skills/github-project-setup/scripts/locales/en.json +35 -0
- package/plugin/shirokuma-skills-en/skills/github-project-setup/scripts/locales/ja.json +35 -0
- package/plugin/shirokuma-skills-en/skills/github-project-setup/scripts/setup-project.py +226 -0
- package/plugin/shirokuma-skills-en/skills/managing-agents/SKILL.md +290 -0
- package/plugin/shirokuma-skills-en/skills/managing-agents/best-practices-advanced.md +326 -0
- package/plugin/shirokuma-skills-en/skills/managing-agents/best-practices.md +276 -0
- package/plugin/shirokuma-skills-en/skills/managing-agents/design-patterns.md +574 -0
- package/plugin/shirokuma-skills-en/skills/managing-agents/documentation-structure.md +214 -0
- package/plugin/shirokuma-skills-en/skills/managing-agents/examples.md +558 -0
- package/plugin/shirokuma-skills-en/skills/managing-agents/reference.md +522 -0
- package/plugin/shirokuma-skills-en/skills/managing-agents/templates/complex-agent.md +69 -0
- package/plugin/shirokuma-skills-en/skills/managing-agents/templates/creator-checker-pair.md +149 -0
- package/plugin/shirokuma-skills-en/skills/managing-agents/templates/simple-agent.md +43 -0
- package/plugin/shirokuma-skills-en/skills/managing-github-items/SKILL.md +50 -0
- package/plugin/shirokuma-skills-en/skills/managing-github-items/reference/create-item.md +82 -0
- package/plugin/shirokuma-skills-en/skills/managing-github-items/reference/create-spec.md +68 -0
- package/plugin/shirokuma-skills-en/skills/managing-github-items/reference/github-operations.md +163 -0
- package/plugin/shirokuma-skills-en/skills/managing-output-styles/SKILL.md +237 -0
- package/plugin/shirokuma-skills-en/skills/managing-output-styles/examples.md +762 -0
- package/plugin/shirokuma-skills-en/skills/managing-output-styles/reference.md +417 -0
- package/plugin/shirokuma-skills-en/skills/managing-plugins/SKILL.md +397 -0
- package/plugin/shirokuma-skills-en/skills/managing-plugins/examples-advanced.md +562 -0
- package/plugin/shirokuma-skills-en/skills/managing-plugins/examples.md +552 -0
- package/plugin/shirokuma-skills-en/skills/managing-plugins/reference.md +786 -0
- package/plugin/shirokuma-skills-en/skills/managing-rules/SKILL.md +365 -0
- package/plugin/shirokuma-skills-en/skills/managing-rules/templates/path-rule.md.template +27 -0
- package/plugin/shirokuma-skills-en/skills/managing-rules/templates/rule.md.template +15 -0
- package/plugin/shirokuma-skills-en/skills/managing-rules/templates/tech-stack.md.template +32 -0
- package/plugin/shirokuma-skills-en/skills/managing-skills/README.md +377 -0
- package/plugin/shirokuma-skills-en/skills/managing-skills/SKILL.md +418 -0
- package/plugin/shirokuma-skills-en/skills/managing-skills/architecture.md +1009 -0
- package/plugin/shirokuma-skills-en/skills/managing-skills/best-practices-testing.md +354 -0
- package/plugin/shirokuma-skills-en/skills/managing-skills/best-practices-writing.md +325 -0
- package/plugin/shirokuma-skills-en/skills/managing-skills/best-practices.md +334 -0
- package/plugin/shirokuma-skills-en/skills/managing-skills/examples.md +1024 -0
- package/plugin/shirokuma-skills-en/skills/managing-skills/reference-output-patterns.md +89 -0
- package/plugin/shirokuma-skills-en/skills/managing-skills/reference-platform.md +482 -0
- package/plugin/shirokuma-skills-en/skills/managing-skills/reference-workflows.md +98 -0
- package/plugin/shirokuma-skills-en/skills/managing-skills/reference.md +747 -0
- package/plugin/shirokuma-skills-en/skills/managing-skills/scripts/LICENSE.txt +191 -0
- package/plugin/shirokuma-skills-en/skills/managing-skills/scripts/init_skill.py +184 -0
- package/plugin/shirokuma-skills-en/skills/managing-skills/scripts/package_skill.py +109 -0
- package/plugin/shirokuma-skills-en/skills/managing-skills/scripts/quick_validate.py +128 -0
- package/plugin/shirokuma-skills-en/skills/managing-skills/updating-skills.md +675 -0
- package/plugin/shirokuma-skills-en/skills/nextjs-vibe-coding/SKILL.md +316 -0
- package/plugin/shirokuma-skills-en/skills/nextjs-vibe-coding/patterns/better-auth.md +185 -0
- package/plugin/shirokuma-skills-en/skills/nextjs-vibe-coding/patterns/code-patterns.md +335 -0
- package/plugin/shirokuma-skills-en/skills/nextjs-vibe-coding/patterns/coding-conventions.md +324 -0
- package/plugin/shirokuma-skills-en/skills/nextjs-vibe-coding/patterns/csp.md +97 -0
- package/plugin/shirokuma-skills-en/skills/nextjs-vibe-coding/patterns/csrf-protection.md +153 -0
- package/plugin/shirokuma-skills-en/skills/nextjs-vibe-coding/patterns/documentation.md +220 -0
- package/plugin/shirokuma-skills-en/skills/nextjs-vibe-coding/patterns/drizzle-orm.md +314 -0
- package/plugin/shirokuma-skills-en/skills/nextjs-vibe-coding/patterns/e2e-testing.md +826 -0
- package/plugin/shirokuma-skills-en/skills/nextjs-vibe-coding/patterns/image-optimization.md +227 -0
- package/plugin/shirokuma-skills-en/skills/nextjs-vibe-coding/patterns/radix-ui-hydration.md +79 -0
- package/plugin/shirokuma-skills-en/skills/nextjs-vibe-coding/patterns/rate-limiting.md +188 -0
- package/plugin/shirokuma-skills-en/skills/nextjs-vibe-coding/patterns/tailwind-v4.md +43 -0
- package/plugin/shirokuma-skills-en/skills/nextjs-vibe-coding/patterns/testing.md +298 -0
- package/plugin/shirokuma-skills-en/skills/nextjs-vibe-coding/reference/checklists.md +76 -0
- package/plugin/shirokuma-skills-en/skills/nextjs-vibe-coding/reference/large-scale.md +141 -0
- package/plugin/shirokuma-skills-en/skills/nextjs-vibe-coding/reference/reference.md +171 -0
- package/plugin/shirokuma-skills-en/skills/nextjs-vibe-coding/reference/report-template.md +53 -0
- package/plugin/shirokuma-skills-en/skills/nextjs-vibe-coding/templates/README.md +108 -0
- package/plugin/shirokuma-skills-en/skills/nextjs-vibe-coding/templates/component.test.tsx.template +245 -0
- package/plugin/shirokuma-skills-en/skills/nextjs-vibe-coding/templates/delete-button.tsx.template +86 -0
- package/plugin/shirokuma-skills-en/skills/nextjs-vibe-coding/templates/form-component.tsx.template +142 -0
- package/plugin/shirokuma-skills-en/skills/nextjs-vibe-coding/templates/messages-split/common.json.template +46 -0
- package/plugin/shirokuma-skills-en/skills/nextjs-vibe-coding/templates/messages-split/errors.json.template +29 -0
- package/plugin/shirokuma-skills-en/skills/nextjs-vibe-coding/templates/messages-split/feature.json.template +46 -0
- package/plugin/shirokuma-skills-en/skills/nextjs-vibe-coding/templates/messages-split/index.ts.template +26 -0
- package/plugin/shirokuma-skills-en/skills/nextjs-vibe-coding/templates/page-edit.tsx.template +43 -0
- package/plugin/shirokuma-skills-en/skills/nextjs-vibe-coding/templates/page-list.tsx.template +133 -0
- package/plugin/shirokuma-skills-en/skills/nextjs-vibe-coding/templates/page-new.tsx.template +27 -0
- package/plugin/shirokuma-skills-en/skills/nextjs-vibe-coding/templates/server-action-split/index.ts.template +19 -0
- package/plugin/shirokuma-skills-en/skills/nextjs-vibe-coding/templates/server-action-split/mutations.ts.template +196 -0
- package/plugin/shirokuma-skills-en/skills/nextjs-vibe-coding/templates/server-action-split/queries.ts.template +134 -0
- package/plugin/shirokuma-skills-en/skills/nextjs-vibe-coding/templates/server-action-split/types.ts.template +60 -0
- package/plugin/shirokuma-skills-en/skills/nextjs-vibe-coding/templates/server-action.md +345 -0
- package/plugin/shirokuma-skills-en/skills/nextjs-vibe-coding/templates/server-action.test.ts.template +267 -0
- package/plugin/shirokuma-skills-en/skills/nextjs-vibe-coding/templates/server-action.ts.template +218 -0
- package/plugin/shirokuma-skills-en/skills/nextjs-vibe-coding/templates/translations.ja.json.template +35 -0
- package/plugin/shirokuma-skills-en/skills/nextjs-vibe-coding/templates/translations.json.template +35 -0
- package/plugin/shirokuma-skills-en/skills/planning-on-issue/SKILL.md +310 -0
- package/plugin/shirokuma-skills-en/skills/project-config-generator/SKILL.md +301 -0
- package/plugin/shirokuma-skills-en/skills/project-config-generator/templates/discussion-templates/en/adr.yml +75 -0
- package/plugin/shirokuma-skills-en/skills/project-config-generator/templates/discussion-templates/en/handovers.yml +62 -0
- package/plugin/shirokuma-skills-en/skills/project-config-generator/templates/discussion-templates/en/knowledge.yml +66 -0
- package/plugin/shirokuma-skills-en/skills/project-config-generator/templates/discussion-templates/en/research.yml +71 -0
- package/plugin/shirokuma-skills-en/skills/project-config-generator/templates/discussion-templates/ja/adr.yml +75 -0
- package/plugin/shirokuma-skills-en/skills/project-config-generator/templates/discussion-templates/ja/handovers.yml +62 -0
- package/plugin/shirokuma-skills-en/skills/project-config-generator/templates/discussion-templates/ja/knowledge.yml +66 -0
- package/plugin/shirokuma-skills-en/skills/project-config-generator/templates/discussion-templates/ja/research.yml +71 -0
- package/plugin/shirokuma-skills-en/skills/project-config-generator/templates/github-discussions.md.template +161 -0
- package/plugin/shirokuma-skills-en/skills/project-config-generator/templates/known-issues.md.template +54 -0
- package/plugin/shirokuma-skills-en/skills/project-config-generator/templates/lib-structure.md.template +73 -0
- package/plugin/shirokuma-skills-en/skills/project-config-generator/templates/tech-stack.md.template +51 -0
- package/plugin/shirokuma-skills-en/skills/publishing/SKILL.md +227 -0
- package/plugin/shirokuma-skills-en/skills/reviewing-on-issue/SKILL.md +506 -0
- package/plugin/shirokuma-skills-en/skills/reviewing-on-issue/criteria/code-quality.md +303 -0
- package/plugin/shirokuma-skills-en/skills/reviewing-on-issue/criteria/coding-conventions.md +419 -0
- package/plugin/shirokuma-skills-en/skills/reviewing-on-issue/criteria/security.md +266 -0
- package/plugin/shirokuma-skills-en/skills/reviewing-on-issue/criteria/testing.md +439 -0
- package/plugin/shirokuma-skills-en/skills/reviewing-on-issue/docs/setup/auth-setup.md +295 -0
- package/plugin/shirokuma-skills-en/skills/reviewing-on-issue/docs/setup/database-setup.md +284 -0
- package/plugin/shirokuma-skills-en/skills/reviewing-on-issue/docs/setup/infra-setup.md +222 -0
- package/plugin/shirokuma-skills-en/skills/reviewing-on-issue/docs/setup/project-init.md +176 -0
- package/plugin/shirokuma-skills-en/skills/reviewing-on-issue/docs/setup/styling-setup.md +324 -0
- package/plugin/shirokuma-skills-en/skills/reviewing-on-issue/docs/workflows/annotation-consistency.md +256 -0
- package/plugin/shirokuma-skills-en/skills/reviewing-on-issue/docs/workflows/shirokuma-docs-verification.md +219 -0
- package/plugin/shirokuma-skills-en/skills/reviewing-on-issue/patterns/account-lockout.md +177 -0
- package/plugin/shirokuma-skills-en/skills/reviewing-on-issue/patterns/audit-logging.md +374 -0
- package/plugin/shirokuma-skills-en/skills/reviewing-on-issue/patterns/better-auth.md +185 -0
- package/plugin/shirokuma-skills-en/skills/reviewing-on-issue/patterns/code-quality.md +281 -0
- package/plugin/shirokuma-skills-en/skills/reviewing-on-issue/patterns/docs-management.md +123 -0
- package/plugin/shirokuma-skills-en/skills/reviewing-on-issue/patterns/drizzle-orm.md +314 -0
- package/plugin/shirokuma-skills-en/skills/reviewing-on-issue/patterns/e2e-testing.md +922 -0
- package/plugin/shirokuma-skills-en/skills/reviewing-on-issue/patterns/i18n.md +245 -0
- package/plugin/shirokuma-skills-en/skills/reviewing-on-issue/patterns/jsdoc.md +250 -0
- package/plugin/shirokuma-skills-en/skills/reviewing-on-issue/patterns/nextjs-patterns.md +559 -0
- package/plugin/shirokuma-skills-en/skills/reviewing-on-issue/patterns/radix-ui-hydration.md +79 -0
- package/plugin/shirokuma-skills-en/skills/reviewing-on-issue/patterns/server-actions-structure.md +272 -0
- package/plugin/shirokuma-skills-en/skills/reviewing-on-issue/patterns/server-actions.md +445 -0
- package/plugin/shirokuma-skills-en/skills/reviewing-on-issue/patterns/tailwind-v4.md +43 -0
- package/plugin/shirokuma-skills-en/skills/reviewing-on-issue/roles/code.md +184 -0
- package/plugin/shirokuma-skills-en/skills/reviewing-on-issue/roles/docs.md +79 -0
- package/plugin/shirokuma-skills-en/skills/reviewing-on-issue/roles/nextjs.md +105 -0
- package/plugin/shirokuma-skills-en/skills/reviewing-on-issue/roles/plan.md +109 -0
- package/plugin/shirokuma-skills-en/skills/reviewing-on-issue/roles/security.md +124 -0
- package/plugin/shirokuma-skills-en/skills/reviewing-on-issue/roles/testing.md +180 -0
- package/plugin/shirokuma-skills-en/skills/reviewing-on-issue/templates/report.md +121 -0
- package/plugin/shirokuma-skills-en/skills/showing-github/SKILL.md +276 -0
- package/plugin/shirokuma-skills-en/skills/showing-github/reference/github-operations.md +163 -0
- package/plugin/shirokuma-skills-en/skills/starting-session/SKILL.md +114 -0
- package/plugin/shirokuma-skills-en/skills/working-on-issue/SKILL.md +261 -0
- package/plugin/shirokuma-skills-ja/.claude-plugin/plugin.json +21 -0
- package/plugin/shirokuma-skills-ja/rules/best-practices-first.md +43 -0
- package/plugin/shirokuma-skills-ja/rules/config-authoring-flow.md +39 -0
- package/plugin/shirokuma-skills-ja/rules/git-commit-style.md +21 -0
- package/plugin/shirokuma-skills-ja/rules/github/branch-workflow.md +64 -0
- package/plugin/shirokuma-skills-ja/rules/github/discussions-usage.md +129 -0
- package/plugin/shirokuma-skills-ja/rules/github/output-language.md +14 -0
- package/plugin/shirokuma-skills-ja/rules/github/pr-review-response.md +37 -0
- package/plugin/shirokuma-skills-ja/rules/github/project-items.md +164 -0
- package/plugin/shirokuma-skills-ja/rules/memory-operations.md +38 -0
- package/plugin/shirokuma-skills-ja/rules/nextjs/known-issues.md +59 -0
- package/plugin/shirokuma-skills-ja/rules/nextjs/lib-structure.md +48 -0
- package/plugin/shirokuma-skills-ja/rules/nextjs/radix-ui-hydration.md +30 -0
- package/plugin/shirokuma-skills-ja/rules/nextjs/server-actions.md +50 -0
- package/plugin/shirokuma-skills-ja/rules/nextjs/tailwind-v4.md +43 -0
- package/plugin/shirokuma-skills-ja/rules/nextjs/tech-stack.md +43 -0
- package/plugin/shirokuma-skills-ja/rules/nextjs/testing.md +66 -0
- package/plugin/shirokuma-skills-ja/rules/output-destinations.md +95 -0
- package/plugin/shirokuma-skills-ja/rules/shirokuma-docs/cli-invocation.md +15 -0
- package/plugin/shirokuma-skills-ja/rules/shirokuma-docs/plugin-cache.md +54 -0
- package/plugin/shirokuma-skills-ja/rules/shirokuma-docs/shirokuma-annotations.md +78 -0
- package/plugin/shirokuma-skills-ja/rules/skill-authoring.md +184 -0
- package/plugin/shirokuma-skills-ja/skills/best-practices-researching/SKILL.md +144 -0
- package/plugin/shirokuma-skills-ja/skills/claude-config-reviewing/SKILL.md +210 -0
- package/plugin/shirokuma-skills-ja/skills/codebase-rule-discovery/SKILL.md +217 -0
- package/plugin/shirokuma-skills-ja/skills/codebase-rule-discovery/patterns/discovery-categories.md +150 -0
- package/plugin/shirokuma-skills-ja/skills/codebase-rule-discovery/templates/convention-proposal.md +138 -0
- package/plugin/shirokuma-skills-ja/skills/codebase-rule-discovery/templates/rule-proposal.md +148 -0
- package/plugin/shirokuma-skills-ja/skills/codebase-rule-discovery/workflows/analyze-codebase.md +211 -0
- package/plugin/shirokuma-skills-ja/skills/committing-on-issue/SKILL.md +227 -0
- package/plugin/shirokuma-skills-ja/skills/creating-pr-on-issue/SKILL.md +187 -0
- package/plugin/shirokuma-skills-ja/skills/ending-session/SKILL.md +230 -0
- package/plugin/shirokuma-skills-ja/skills/ending-session/templates/handover-template.md +75 -0
- package/plugin/shirokuma-skills-ja/skills/frontend-designing/SKILL.md +270 -0
- package/plugin/shirokuma-skills-ja/skills/frontend-designing/reference/reference.md +533 -0
- package/plugin/shirokuma-skills-ja/skills/github-project-setup/SKILL.md +206 -0
- package/plugin/shirokuma-skills-ja/skills/github-project-setup/reference/custom-fields.md +42 -0
- package/plugin/shirokuma-skills-ja/skills/github-project-setup/reference/issue-types.md +84 -0
- package/plugin/shirokuma-skills-ja/skills/github-project-setup/reference/labels.md +85 -0
- package/plugin/shirokuma-skills-ja/skills/github-project-setup/reference/status-options.md +69 -0
- package/plugin/shirokuma-skills-ja/skills/github-project-setup/scripts/locales/en.json +35 -0
- package/plugin/shirokuma-skills-ja/skills/github-project-setup/scripts/locales/ja.json +35 -0
- package/plugin/shirokuma-skills-ja/skills/github-project-setup/scripts/setup-project.py +226 -0
- package/plugin/shirokuma-skills-ja/skills/managing-agents/SKILL.md +289 -0
- package/plugin/shirokuma-skills-ja/skills/managing-agents/best-practices-advanced.md +318 -0
- package/plugin/shirokuma-skills-ja/skills/managing-agents/best-practices.md +267 -0
- package/plugin/shirokuma-skills-ja/skills/managing-agents/design-patterns.md +473 -0
- package/plugin/shirokuma-skills-ja/skills/managing-agents/documentation-structure.md +170 -0
- package/plugin/shirokuma-skills-ja/skills/managing-agents/examples.md +324 -0
- package/plugin/shirokuma-skills-ja/skills/managing-agents/reference.md +464 -0
- package/plugin/shirokuma-skills-ja/skills/managing-agents/templates/complex-agent.md +69 -0
- package/plugin/shirokuma-skills-ja/skills/managing-agents/templates/creator-checker-pair.md +149 -0
- package/plugin/shirokuma-skills-ja/skills/managing-agents/templates/simple-agent.md +43 -0
- package/plugin/shirokuma-skills-ja/skills/managing-github-items/SKILL.md +50 -0
- package/plugin/shirokuma-skills-ja/skills/managing-github-items/reference/create-item.md +82 -0
- package/plugin/shirokuma-skills-ja/skills/managing-github-items/reference/create-spec.md +68 -0
- package/plugin/shirokuma-skills-ja/skills/managing-github-items/reference/github-operations.md +163 -0
- package/plugin/shirokuma-skills-ja/skills/managing-output-styles/SKILL.md +233 -0
- package/plugin/shirokuma-skills-ja/skills/managing-output-styles/examples.md +751 -0
- package/plugin/shirokuma-skills-ja/skills/managing-output-styles/reference.md +307 -0
- package/plugin/shirokuma-skills-ja/skills/managing-plugins/SKILL.md +327 -0
- package/plugin/shirokuma-skills-ja/skills/managing-plugins/examples-advanced.md +398 -0
- package/plugin/shirokuma-skills-ja/skills/managing-plugins/examples.md +383 -0
- package/plugin/shirokuma-skills-ja/skills/managing-plugins/reference.md +382 -0
- package/plugin/shirokuma-skills-ja/skills/managing-rules/SKILL.md +354 -0
- package/plugin/shirokuma-skills-ja/skills/managing-rules/templates/path-rule.md.template +27 -0
- package/plugin/shirokuma-skills-ja/skills/managing-rules/templates/rule.md.template +15 -0
- package/plugin/shirokuma-skills-ja/skills/managing-rules/templates/tech-stack.md.template +32 -0
- package/plugin/shirokuma-skills-ja/skills/managing-skills/README.md +377 -0
- package/plugin/shirokuma-skills-ja/skills/managing-skills/SKILL.md +413 -0
- package/plugin/shirokuma-skills-ja/skills/managing-skills/architecture.md +1009 -0
- package/plugin/shirokuma-skills-ja/skills/managing-skills/best-practices-testing.md +354 -0
- package/plugin/shirokuma-skills-ja/skills/managing-skills/best-practices-writing.md +325 -0
- package/plugin/shirokuma-skills-ja/skills/managing-skills/best-practices.md +334 -0
- package/plugin/shirokuma-skills-ja/skills/managing-skills/examples.md +1024 -0
- package/plugin/shirokuma-skills-ja/skills/managing-skills/reference-output-patterns.md +89 -0
- package/plugin/shirokuma-skills-ja/skills/managing-skills/reference-platform.md +482 -0
- package/plugin/shirokuma-skills-ja/skills/managing-skills/reference-workflows.md +98 -0
- package/plugin/shirokuma-skills-ja/skills/managing-skills/reference.md +747 -0
- package/plugin/shirokuma-skills-ja/skills/managing-skills/scripts/LICENSE.txt +191 -0
- package/plugin/shirokuma-skills-ja/skills/managing-skills/scripts/init_skill.py +184 -0
- package/plugin/shirokuma-skills-ja/skills/managing-skills/scripts/package_skill.py +109 -0
- package/plugin/shirokuma-skills-ja/skills/managing-skills/scripts/quick_validate.py +128 -0
- package/plugin/shirokuma-skills-ja/skills/managing-skills/updating-skills.md +675 -0
- package/plugin/shirokuma-skills-ja/skills/nextjs-vibe-coding/SKILL.md +315 -0
- package/plugin/shirokuma-skills-ja/skills/nextjs-vibe-coding/patterns/better-auth.md +185 -0
- package/plugin/shirokuma-skills-ja/skills/nextjs-vibe-coding/patterns/code-patterns.md +335 -0
- package/plugin/shirokuma-skills-ja/skills/nextjs-vibe-coding/patterns/coding-conventions.md +323 -0
- package/plugin/shirokuma-skills-ja/skills/nextjs-vibe-coding/patterns/csp.md +97 -0
- package/plugin/shirokuma-skills-ja/skills/nextjs-vibe-coding/patterns/csrf-protection.md +153 -0
- package/plugin/shirokuma-skills-ja/skills/nextjs-vibe-coding/patterns/documentation.md +220 -0
- package/plugin/shirokuma-skills-ja/skills/nextjs-vibe-coding/patterns/drizzle-orm.md +314 -0
- package/plugin/shirokuma-skills-ja/skills/nextjs-vibe-coding/patterns/e2e-testing.md +826 -0
- package/plugin/shirokuma-skills-ja/skills/nextjs-vibe-coding/patterns/image-optimization.md +227 -0
- package/plugin/shirokuma-skills-ja/skills/nextjs-vibe-coding/patterns/radix-ui-hydration.md +79 -0
- package/plugin/shirokuma-skills-ja/skills/nextjs-vibe-coding/patterns/rate-limiting.md +188 -0
- package/plugin/shirokuma-skills-ja/skills/nextjs-vibe-coding/patterns/tailwind-v4.md +43 -0
- package/plugin/shirokuma-skills-ja/skills/nextjs-vibe-coding/patterns/testing.md +298 -0
- package/plugin/shirokuma-skills-ja/skills/nextjs-vibe-coding/reference/checklists.md +76 -0
- package/plugin/shirokuma-skills-ja/skills/nextjs-vibe-coding/reference/large-scale.md +141 -0
- package/plugin/shirokuma-skills-ja/skills/nextjs-vibe-coding/reference/reference.md +171 -0
- package/plugin/shirokuma-skills-ja/skills/nextjs-vibe-coding/reference/report-template.md +53 -0
- package/plugin/shirokuma-skills-ja/skills/nextjs-vibe-coding/templates/README.md +108 -0
- package/plugin/shirokuma-skills-ja/skills/nextjs-vibe-coding/templates/component.test.tsx.template +245 -0
- package/plugin/shirokuma-skills-ja/skills/nextjs-vibe-coding/templates/delete-button.tsx.template +86 -0
- package/plugin/shirokuma-skills-ja/skills/nextjs-vibe-coding/templates/form-component.tsx.template +142 -0
- package/plugin/shirokuma-skills-ja/skills/nextjs-vibe-coding/templates/messages-split/common.json.template +46 -0
- package/plugin/shirokuma-skills-ja/skills/nextjs-vibe-coding/templates/messages-split/errors.json.template +29 -0
- package/plugin/shirokuma-skills-ja/skills/nextjs-vibe-coding/templates/messages-split/feature.json.template +46 -0
- package/plugin/shirokuma-skills-ja/skills/nextjs-vibe-coding/templates/messages-split/index.ts.template +26 -0
- package/plugin/shirokuma-skills-ja/skills/nextjs-vibe-coding/templates/page-edit.tsx.template +43 -0
- package/plugin/shirokuma-skills-ja/skills/nextjs-vibe-coding/templates/page-list.tsx.template +133 -0
- package/plugin/shirokuma-skills-ja/skills/nextjs-vibe-coding/templates/page-new.tsx.template +27 -0
- package/plugin/shirokuma-skills-ja/skills/nextjs-vibe-coding/templates/server-action-split/index.ts.template +19 -0
- package/plugin/shirokuma-skills-ja/skills/nextjs-vibe-coding/templates/server-action-split/mutations.ts.template +196 -0
- package/plugin/shirokuma-skills-ja/skills/nextjs-vibe-coding/templates/server-action-split/queries.ts.template +134 -0
- package/plugin/shirokuma-skills-ja/skills/nextjs-vibe-coding/templates/server-action-split/types.ts.template +60 -0
- package/plugin/shirokuma-skills-ja/skills/nextjs-vibe-coding/templates/server-action.md +345 -0
- package/plugin/shirokuma-skills-ja/skills/nextjs-vibe-coding/templates/server-action.test.ts.template +267 -0
- package/plugin/shirokuma-skills-ja/skills/nextjs-vibe-coding/templates/server-action.ts.template +218 -0
- package/plugin/shirokuma-skills-ja/skills/nextjs-vibe-coding/templates/translations.ja.json.template +35 -0
- package/plugin/shirokuma-skills-ja/skills/nextjs-vibe-coding/templates/translations.json.template +35 -0
- package/plugin/shirokuma-skills-ja/skills/planning-on-issue/SKILL.md +310 -0
- package/plugin/shirokuma-skills-ja/skills/project-config-generator/SKILL.md +289 -0
- package/plugin/shirokuma-skills-ja/skills/project-config-generator/templates/discussion-templates/en/adr.yml +75 -0
- package/plugin/shirokuma-skills-ja/skills/project-config-generator/templates/discussion-templates/en/handovers.yml +62 -0
- package/plugin/shirokuma-skills-ja/skills/project-config-generator/templates/discussion-templates/en/knowledge.yml +66 -0
- package/plugin/shirokuma-skills-ja/skills/project-config-generator/templates/discussion-templates/en/research.yml +71 -0
- package/plugin/shirokuma-skills-ja/skills/project-config-generator/templates/discussion-templates/ja/adr.yml +75 -0
- package/plugin/shirokuma-skills-ja/skills/project-config-generator/templates/discussion-templates/ja/handovers.yml +62 -0
- package/plugin/shirokuma-skills-ja/skills/project-config-generator/templates/discussion-templates/ja/knowledge.yml +66 -0
- package/plugin/shirokuma-skills-ja/skills/project-config-generator/templates/discussion-templates/ja/research.yml +71 -0
- package/plugin/shirokuma-skills-ja/skills/project-config-generator/templates/github-discussions.md.template +161 -0
- package/plugin/shirokuma-skills-ja/skills/project-config-generator/templates/known-issues.md.template +54 -0
- package/plugin/shirokuma-skills-ja/skills/project-config-generator/templates/lib-structure.md.template +73 -0
- package/plugin/shirokuma-skills-ja/skills/project-config-generator/templates/tech-stack.md.template +51 -0
- package/plugin/shirokuma-skills-ja/skills/publishing/SKILL.md +227 -0
- package/plugin/shirokuma-skills-ja/skills/reviewing-on-issue/SKILL.md +506 -0
- package/plugin/shirokuma-skills-ja/skills/reviewing-on-issue/criteria/code-quality.md +303 -0
- package/plugin/shirokuma-skills-ja/skills/reviewing-on-issue/criteria/coding-conventions.md +419 -0
- package/plugin/shirokuma-skills-ja/skills/reviewing-on-issue/criteria/security.md +266 -0
- package/plugin/shirokuma-skills-ja/skills/reviewing-on-issue/criteria/testing.md +431 -0
- package/plugin/shirokuma-skills-ja/skills/reviewing-on-issue/docs/setup/auth-setup.md +295 -0
- package/plugin/shirokuma-skills-ja/skills/reviewing-on-issue/docs/setup/database-setup.md +284 -0
- package/plugin/shirokuma-skills-ja/skills/reviewing-on-issue/docs/setup/infra-setup.md +222 -0
- package/plugin/shirokuma-skills-ja/skills/reviewing-on-issue/docs/setup/project-init.md +176 -0
- package/plugin/shirokuma-skills-ja/skills/reviewing-on-issue/docs/setup/styling-setup.md +324 -0
- package/plugin/shirokuma-skills-ja/skills/reviewing-on-issue/docs/workflows/annotation-consistency.md +256 -0
- package/plugin/shirokuma-skills-ja/skills/reviewing-on-issue/docs/workflows/shirokuma-docs-verification.md +219 -0
- package/plugin/shirokuma-skills-ja/skills/reviewing-on-issue/patterns/account-lockout.md +177 -0
- package/plugin/shirokuma-skills-ja/skills/reviewing-on-issue/patterns/audit-logging.md +364 -0
- package/plugin/shirokuma-skills-ja/skills/reviewing-on-issue/patterns/better-auth.md +185 -0
- package/plugin/shirokuma-skills-ja/skills/reviewing-on-issue/patterns/code-quality.md +244 -0
- package/plugin/shirokuma-skills-ja/skills/reviewing-on-issue/patterns/docs-management.md +95 -0
- package/plugin/shirokuma-skills-ja/skills/reviewing-on-issue/patterns/drizzle-orm.md +314 -0
- package/plugin/shirokuma-skills-ja/skills/reviewing-on-issue/patterns/e2e-testing.md +826 -0
- package/plugin/shirokuma-skills-ja/skills/reviewing-on-issue/patterns/i18n.md +242 -0
- package/plugin/shirokuma-skills-ja/skills/reviewing-on-issue/patterns/jsdoc.md +247 -0
- package/plugin/shirokuma-skills-ja/skills/reviewing-on-issue/patterns/nextjs-patterns.md +421 -0
- package/plugin/shirokuma-skills-ja/skills/reviewing-on-issue/patterns/radix-ui-hydration.md +79 -0
- package/plugin/shirokuma-skills-ja/skills/reviewing-on-issue/patterns/server-actions-structure.md +272 -0
- package/plugin/shirokuma-skills-ja/skills/reviewing-on-issue/patterns/server-actions.md +399 -0
- package/plugin/shirokuma-skills-ja/skills/reviewing-on-issue/patterns/tailwind-v4.md +43 -0
- package/plugin/shirokuma-skills-ja/skills/reviewing-on-issue/roles/code.md +181 -0
- package/plugin/shirokuma-skills-ja/skills/reviewing-on-issue/roles/docs.md +79 -0
- package/plugin/shirokuma-skills-ja/skills/reviewing-on-issue/roles/nextjs.md +105 -0
- package/plugin/shirokuma-skills-ja/skills/reviewing-on-issue/roles/plan.md +109 -0
- package/plugin/shirokuma-skills-ja/skills/reviewing-on-issue/roles/security.md +124 -0
- package/plugin/shirokuma-skills-ja/skills/reviewing-on-issue/roles/testing.md +180 -0
- package/plugin/shirokuma-skills-ja/skills/reviewing-on-issue/templates/report.md +121 -0
- package/plugin/shirokuma-skills-ja/skills/showing-github/SKILL.md +276 -0
- package/plugin/shirokuma-skills-ja/skills/showing-github/reference/github-operations.md +163 -0
- package/plugin/shirokuma-skills-ja/skills/starting-session/SKILL.md +93 -0
- package/plugin/shirokuma-skills-ja/skills/working-on-issue/SKILL.md +208 -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
|
+
* test-categorization - テストカテゴリ推定・統計
|
|
3
|
+
*
|
|
4
|
+
* テスト名やファイルパスからカテゴリやモジュール情報を推定し、
|
|
5
|
+
* 統計サマリーを生成する。
|
|
6
|
+
*/
|
|
7
|
+
import { basename } from "node:path";
|
|
8
|
+
/**
|
|
9
|
+
* テスト名からカテゴリを推定
|
|
10
|
+
*
|
|
11
|
+
* @testCategory アノテーションがない場合のフォールバック
|
|
12
|
+
*/
|
|
13
|
+
export function inferCategoryFromTestName(itName, description) {
|
|
14
|
+
const text = `${itName} ${description || ""}`.toLowerCase();
|
|
15
|
+
// 認証・認可関連
|
|
16
|
+
if (text.includes("auth") ||
|
|
17
|
+
text.includes("login") ||
|
|
18
|
+
text.includes("logout") ||
|
|
19
|
+
text.includes("認証") ||
|
|
20
|
+
text.includes("ログイン") ||
|
|
21
|
+
text.includes("未認証") ||
|
|
22
|
+
text.includes("unauthorized") ||
|
|
23
|
+
text.includes("forbidden") ||
|
|
24
|
+
text.includes("permission") ||
|
|
25
|
+
text.includes("権限")) {
|
|
26
|
+
return "auth";
|
|
27
|
+
}
|
|
28
|
+
// エラー関連
|
|
29
|
+
if (text.includes("error") ||
|
|
30
|
+
text.includes("throw") ||
|
|
31
|
+
text.includes("fail") ||
|
|
32
|
+
text.includes("reject") ||
|
|
33
|
+
text.includes("エラー") ||
|
|
34
|
+
text.includes("失敗")) {
|
|
35
|
+
return "error-handling";
|
|
36
|
+
}
|
|
37
|
+
// バリデーション関連
|
|
38
|
+
if (text.includes("valid") ||
|
|
39
|
+
text.includes("invalid") ||
|
|
40
|
+
text.includes("require") ||
|
|
41
|
+
text.includes("missing") ||
|
|
42
|
+
text.includes("empty") ||
|
|
43
|
+
text.includes("バリデーション") ||
|
|
44
|
+
text.includes("必須") ||
|
|
45
|
+
text.includes("入力")) {
|
|
46
|
+
return "validation";
|
|
47
|
+
}
|
|
48
|
+
// エッジケース関連
|
|
49
|
+
if (text.includes("edge") ||
|
|
50
|
+
text.includes("boundary") ||
|
|
51
|
+
text.includes("limit") ||
|
|
52
|
+
text.includes("max") ||
|
|
53
|
+
text.includes("min") ||
|
|
54
|
+
text.includes("overflow") ||
|
|
55
|
+
text.includes("エッジ") ||
|
|
56
|
+
text.includes("境界") ||
|
|
57
|
+
text.includes("上限") ||
|
|
58
|
+
text.includes("下限")) {
|
|
59
|
+
return "edge-case";
|
|
60
|
+
}
|
|
61
|
+
// 正常系
|
|
62
|
+
if (text.includes("should") ||
|
|
63
|
+
text.includes("success") ||
|
|
64
|
+
text.includes("create") ||
|
|
65
|
+
text.includes("update") ||
|
|
66
|
+
text.includes("delete") ||
|
|
67
|
+
text.includes("get") ||
|
|
68
|
+
text.includes("list") ||
|
|
69
|
+
text.includes("できる") ||
|
|
70
|
+
text.includes("正常") ||
|
|
71
|
+
text.includes("作成") ||
|
|
72
|
+
text.includes("更新") ||
|
|
73
|
+
text.includes("削除") ||
|
|
74
|
+
text.includes("取得") ||
|
|
75
|
+
text.includes("一覧") ||
|
|
76
|
+
text.includes("表示")) {
|
|
77
|
+
return "happy-path";
|
|
78
|
+
}
|
|
79
|
+
return "other";
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* テストケースからカテゴリ別統計を計算
|
|
83
|
+
*/
|
|
84
|
+
export function computeCategoryStats(cases) {
|
|
85
|
+
const stats = {
|
|
86
|
+
"happy-path": 0,
|
|
87
|
+
auth: 0,
|
|
88
|
+
"error-handling": 0,
|
|
89
|
+
validation: 0,
|
|
90
|
+
"edge-case": 0,
|
|
91
|
+
integration: 0,
|
|
92
|
+
other: 0,
|
|
93
|
+
};
|
|
94
|
+
for (const tc of cases) {
|
|
95
|
+
const category = tc.category || inferCategoryFromTestName(tc.it, tc.description);
|
|
96
|
+
stats[category]++;
|
|
97
|
+
}
|
|
98
|
+
return stats;
|
|
99
|
+
}
|
|
100
|
+
/**
|
|
101
|
+
* テストファイルパスから関連モジュールを推定
|
|
102
|
+
*
|
|
103
|
+
* 推定ルール:
|
|
104
|
+
* - __tests__/lib/actions/*.test.ts → action
|
|
105
|
+
* - __tests__/components/*.test.tsx → component
|
|
106
|
+
* - tests/e2e/*.spec.ts → screen (E2Eは画面テスト)
|
|
107
|
+
*
|
|
108
|
+
* @param file テストファイルの相対パス
|
|
109
|
+
* @param framework テストフレームワーク
|
|
110
|
+
* @returns モジュール情報
|
|
111
|
+
*/
|
|
112
|
+
export function inferModuleFromPath(file, framework) {
|
|
113
|
+
// ファイル名から .test.ts/.test.tsx/.spec.ts を除去
|
|
114
|
+
const fileName = basename(file)
|
|
115
|
+
.replace(/\.test\.(ts|tsx)$/, "")
|
|
116
|
+
.replace(/\.spec\.(ts|tsx|js)$/, "");
|
|
117
|
+
// E2E テスト (Playwright)
|
|
118
|
+
if (framework === "playwright" || file.includes("tests/e2e/") || file.includes("e2e/")) {
|
|
119
|
+
return {
|
|
120
|
+
type: "screen",
|
|
121
|
+
name: fileName,
|
|
122
|
+
detailPath: `details/screens/${fileName}.html`, // 相対パス(プレフィックスなし)
|
|
123
|
+
};
|
|
124
|
+
}
|
|
125
|
+
// Server Actions テスト
|
|
126
|
+
if (file.includes("__tests__/lib/actions/") || file.includes("/actions/")) {
|
|
127
|
+
return {
|
|
128
|
+
type: "action",
|
|
129
|
+
name: fileName,
|
|
130
|
+
detailPath: `details/actions/${fileName}.html`, // 相対パス(プレフィックスなし)
|
|
131
|
+
};
|
|
132
|
+
}
|
|
133
|
+
// Components テスト
|
|
134
|
+
if (file.includes("__tests__/components/") || file.includes("/components/")) {
|
|
135
|
+
return {
|
|
136
|
+
type: "component",
|
|
137
|
+
name: fileName,
|
|
138
|
+
detailPath: `details/components/${fileName}.html`, // 相対パス(プレフィックスなし)
|
|
139
|
+
};
|
|
140
|
+
}
|
|
141
|
+
// その他(不明)
|
|
142
|
+
return {
|
|
143
|
+
type: "unknown",
|
|
144
|
+
name: fileName,
|
|
145
|
+
detailPath: "",
|
|
146
|
+
};
|
|
147
|
+
}
|
|
148
|
+
/**
|
|
149
|
+
* テストカテゴリを取得
|
|
150
|
+
*
|
|
151
|
+
* @param module モジュール情報
|
|
152
|
+
* @returns カテゴリ名
|
|
153
|
+
*/
|
|
154
|
+
export function getTestCategory(module) {
|
|
155
|
+
switch (module.type) {
|
|
156
|
+
case "action":
|
|
157
|
+
return "Server Actions";
|
|
158
|
+
case "component":
|
|
159
|
+
return "Components";
|
|
160
|
+
case "screen":
|
|
161
|
+
return "E2E";
|
|
162
|
+
default:
|
|
163
|
+
return "Other";
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
/**
|
|
167
|
+
* 統計サマリーを作成
|
|
168
|
+
*/
|
|
169
|
+
export function createSummary(fileStats, testCases) {
|
|
170
|
+
const jestStats = fileStats.filter((f) => f.framework === "jest");
|
|
171
|
+
const playwrightStats = fileStats.filter((f) => f.framework === "playwright");
|
|
172
|
+
return {
|
|
173
|
+
totalFiles: fileStats.length,
|
|
174
|
+
totalTests: testCases.length,
|
|
175
|
+
jestFiles: jestStats.length,
|
|
176
|
+
jestTests: jestStats.reduce((sum, f) => sum + f.tests, 0),
|
|
177
|
+
playwrightFiles: playwrightStats.length,
|
|
178
|
+
playwrightTests: playwrightStats.reduce((sum, f) => sum + f.tests, 0),
|
|
179
|
+
fileStats,
|
|
180
|
+
};
|
|
181
|
+
}
|
|
182
|
+
//# sourceMappingURL=test-categorization.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"test-categorization.js","sourceRoot":"","sources":["../../src/parsers/test-categorization.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AASrC;;;;GAIG;AACH,MAAM,UAAU,yBAAyB,CAAC,MAAc,EAAE,WAAoB;IAC5E,MAAM,IAAI,GAAG,GAAG,MAAM,IAAI,WAAW,IAAI,EAAE,EAAE,CAAC,WAAW,EAAE,CAAC;IAE5D,UAAU;IACV,IACE,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC;Q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E,eAAe,CAAC,MAAM;QACvC,eAAe,EAAE,eAAe,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,CAAC,EAAE,EAAE,CAAC,GAAG,GAAG,CAAC,CAAC,KAAK,EAAE,CAAC,CAAC;QACrE,SAAS;KACV,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Zod Schema Parser
|
|
3
|
+
*
|
|
4
|
+
* Parses Zod schema definitions from TypeScript source code to extract
|
|
5
|
+
* parameter information for Server Actions documentation.
|
|
6
|
+
*
|
|
7
|
+
* Supported Zod methods:
|
|
8
|
+
* - z.string() + .uuid(), .email(), .url(), .min(), .max()
|
|
9
|
+
* - z.number() + .min(), .max(), .int()
|
|
10
|
+
* - z.boolean()
|
|
11
|
+
* - z.enum([...])
|
|
12
|
+
* - .optional(), .nullable(), .default(), .describe()
|
|
13
|
+
*
|
|
14
|
+
* @module parsers/zod-schema
|
|
15
|
+
*/
|
|
16
|
+
/**
|
|
17
|
+
* Zod parameter information extracted from schema
|
|
18
|
+
*/
|
|
19
|
+
export interface ZodParameter {
|
|
20
|
+
/** Parameter name */
|
|
21
|
+
name: string;
|
|
22
|
+
/** Parameter type */
|
|
23
|
+
type: "string" | "number" | "boolean" | "enum" | "array" | "object";
|
|
24
|
+
/** Format specification (uuid, email, url, etc.) */
|
|
25
|
+
format?: string;
|
|
26
|
+
/** Whether the parameter is required */
|
|
27
|
+
required: boolean;
|
|
28
|
+
/** Minimum length for strings */
|
|
29
|
+
minLength?: number;
|
|
30
|
+
/** Maximum length for strings */
|
|
31
|
+
maxLength?: number;
|
|
32
|
+
/** Minimum value for numbers */
|
|
33
|
+
min?: number;
|
|
34
|
+
/** Maximum value for numbers */
|
|
35
|
+
max?: number;
|
|
36
|
+
/** Default value */
|
|
37
|
+
default?: unknown;
|
|
38
|
+
/** Description from .describe() */
|
|
39
|
+
description?: string;
|
|
40
|
+
/** Enum values if type is "enum" */
|
|
41
|
+
enumValues?: string[];
|
|
42
|
+
/** Validation configuration */
|
|
43
|
+
validation?: {
|
|
44
|
+
/** Error message */
|
|
45
|
+
message?: string;
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Parsed Zod schema with all parameters
|
|
50
|
+
*/
|
|
51
|
+
export interface ParsedZodSchema {
|
|
52
|
+
/** Schema name */
|
|
53
|
+
name: string;
|
|
54
|
+
/** Array of parameters */
|
|
55
|
+
parameters: ZodParameter[];
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Parse Zod schema from TypeScript source code.
|
|
59
|
+
*
|
|
60
|
+
* Detects schema definitions in the format:
|
|
61
|
+
* `const SchemaName = z.object({ ... })`
|
|
62
|
+
*
|
|
63
|
+
* Uses regex-based parsing (no AST) for simplicity.
|
|
64
|
+
*
|
|
65
|
+
* @param content - TypeScript source code
|
|
66
|
+
* @param schemaName - Name of the schema to parse
|
|
67
|
+
* @returns Parsed schema with parameters, or null if not found
|
|
68
|
+
*
|
|
69
|
+
* @example
|
|
70
|
+
* ```typescript
|
|
71
|
+
* const code = `
|
|
72
|
+
* const CreateEntitySchema = z.object({
|
|
73
|
+
* projectId: z.string().uuid("Invalid project ID").describe("プロジェクトのUUID"),
|
|
74
|
+
* title: z.string().min(1).max(200).describe("エンティティのタイトル"),
|
|
75
|
+
* status: z.enum(["open", "closed"]).default("open")
|
|
76
|
+
* });
|
|
77
|
+
* `;
|
|
78
|
+
* const result = parseZodSchema(code, "CreateEntitySchema");
|
|
79
|
+
* // Returns: { name: "CreateEntitySchema", parameters: [...] }
|
|
80
|
+
* ```
|
|
81
|
+
*/
|
|
82
|
+
export declare function parseZodSchema(content: string, schemaName: string): ParsedZodSchema | null;
|
|
83
|
+
/**
|
|
84
|
+
* Scan multiple files for a specific schema.
|
|
85
|
+
*
|
|
86
|
+
* Searches through multiple files to find the specified schema definition.
|
|
87
|
+
*
|
|
88
|
+
* @param files - Array of file objects with content and path
|
|
89
|
+
* @param schemaName - Name of the schema to find
|
|
90
|
+
* @returns Parsed schema or null if not found in any file
|
|
91
|
+
*
|
|
92
|
+
* @example
|
|
93
|
+
* ```typescript
|
|
94
|
+
* const files = [
|
|
95
|
+
* { path: "lib/validations/entities.ts", content: "..." },
|
|
96
|
+
* { path: "lib/validations/projects.ts", content: "..." },
|
|
97
|
+
* ];
|
|
98
|
+
* const schema = findSchemaInFiles(files, "CreateEntitySchema");
|
|
99
|
+
* ```
|
|
100
|
+
*/
|
|
101
|
+
export declare function findSchemaInFiles(files: Array<{
|
|
102
|
+
content: string;
|
|
103
|
+
path: string;
|
|
104
|
+
}>, schemaName: string): ParsedZodSchema | null;
|
|
105
|
+
//# sourceMappingURL=zod-schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"zod-schema.d.ts","sourceRoot":"","sources":["../../src/parsers/zod-schema.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B,qBAAqB;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,qBAAqB;IACrB,IAAI,EAAE,QAAQ,GAAG,QAAQ,GAAG,SAAS,GAAG,MAAM,GAAG,OAAO,GAAG,QAAQ,CAAC;IACpE,oDAAoD;IACpD,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,wCAAwC;IACxC,QAAQ,EAAE,OAAO,CAAC;IAClB,iCAAiC;IACjC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,iCAAiC;IACjC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,gCAAgC;IAChC,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,gCAAgC;IAChC,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,oBAAoB;IACpB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,mCAAmC;IACnC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,oCAAoC;IACpC,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;IACtB,+BAA+B;IAC/B,UAAU,CAAC,EAAE;QACX,oBAAoB;QACpB,OAAO,CAAC,EAAE,MAAM,CAAC;KAClB,CAAC;CACH;AAED;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B,kBAAkB;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,0BAA0B;IAC1B,UAAU,EAAE,YAAY,EAAE,CAAC;CAC5B;AAED;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,wBAAgB,cAAc,CAC5B,OAAO,EAAE,MAAM,EACf,UAAU,EAAE,MAAM,GACjB,eAAe,GAAG,IAAI,CAmBxB;AA0ND;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,iBAAiB,CAC/B,KAAK,EAAE,KAAK,CAAC;IAAE,OAAO,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,CAAC,EAC/C,UAAU,EAAE,MAAM,GACjB,eAAe,GAAG,IAAI,CAQxB"}
|
|
@@ -0,0 +1,270 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Zod Schema Parser
|
|
3
|
+
*
|
|
4
|
+
* Parses Zod schema definitions from TypeScript source code to extract
|
|
5
|
+
* parameter information for Server Actions documentation.
|
|
6
|
+
*
|
|
7
|
+
* Supported Zod methods:
|
|
8
|
+
* - z.string() + .uuid(), .email(), .url(), .min(), .max()
|
|
9
|
+
* - z.number() + .min(), .max(), .int()
|
|
10
|
+
* - z.boolean()
|
|
11
|
+
* - z.enum([...])
|
|
12
|
+
* - .optional(), .nullable(), .default(), .describe()
|
|
13
|
+
*
|
|
14
|
+
* @module parsers/zod-schema
|
|
15
|
+
*/
|
|
16
|
+
/**
|
|
17
|
+
* Parse Zod schema from TypeScript source code.
|
|
18
|
+
*
|
|
19
|
+
* Detects schema definitions in the format:
|
|
20
|
+
* `const SchemaName = z.object({ ... })`
|
|
21
|
+
*
|
|
22
|
+
* Uses regex-based parsing (no AST) for simplicity.
|
|
23
|
+
*
|
|
24
|
+
* @param content - TypeScript source code
|
|
25
|
+
* @param schemaName - Name of the schema to parse
|
|
26
|
+
* @returns Parsed schema with parameters, or null if not found
|
|
27
|
+
*
|
|
28
|
+
* @example
|
|
29
|
+
* ```typescript
|
|
30
|
+
* const code = `
|
|
31
|
+
* const CreateEntitySchema = z.object({
|
|
32
|
+
* projectId: z.string().uuid("Invalid project ID").describe("プロジェクトのUUID"),
|
|
33
|
+
* title: z.string().min(1).max(200).describe("エンティティのタイトル"),
|
|
34
|
+
* status: z.enum(["open", "closed"]).default("open")
|
|
35
|
+
* });
|
|
36
|
+
* `;
|
|
37
|
+
* const result = parseZodSchema(code, "CreateEntitySchema");
|
|
38
|
+
* // Returns: { name: "CreateEntitySchema", parameters: [...] }
|
|
39
|
+
* ```
|
|
40
|
+
*/
|
|
41
|
+
export function parseZodSchema(content, schemaName) {
|
|
42
|
+
// Pattern to find schema definition: const SchemaName = z.object({
|
|
43
|
+
const schemaPattern = new RegExp(`const\\s+${schemaName}\\s*=\\s*z\\.object\\s*\\(\\s*\\{([\\s\\S]*?)\\}\\s*\\)`, "m");
|
|
44
|
+
const match = content.match(schemaPattern);
|
|
45
|
+
if (!match) {
|
|
46
|
+
return null;
|
|
47
|
+
}
|
|
48
|
+
const objectBody = match[1];
|
|
49
|
+
const parameters = parseObjectFields(objectBody);
|
|
50
|
+
return {
|
|
51
|
+
name: schemaName,
|
|
52
|
+
parameters,
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Parse all fields within a z.object({ ... }) body.
|
|
57
|
+
*
|
|
58
|
+
* @param objectBody - Content between braces of z.object({ ... })
|
|
59
|
+
* @returns Array of parsed parameters
|
|
60
|
+
*/
|
|
61
|
+
function parseObjectFields(objectBody) {
|
|
62
|
+
const parameters = [];
|
|
63
|
+
// Strategy: Find field names first, then extract the definition up to the next field or end
|
|
64
|
+
// This handles multiline field definitions properly
|
|
65
|
+
// Find all field starts: "fieldName: z."
|
|
66
|
+
const fieldStartPattern = /(\w+)\s*:\s*z\./g;
|
|
67
|
+
const fieldStarts = [];
|
|
68
|
+
let startMatch;
|
|
69
|
+
while ((startMatch = fieldStartPattern.exec(objectBody)) !== null) {
|
|
70
|
+
fieldStarts.push({
|
|
71
|
+
name: startMatch[1],
|
|
72
|
+
index: startMatch.index,
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
// Extract each field's definition
|
|
76
|
+
for (let i = 0; i < fieldStarts.length; i++) {
|
|
77
|
+
const current = fieldStarts[i];
|
|
78
|
+
const nextStart = fieldStarts[i + 1]?.index ?? objectBody.length;
|
|
79
|
+
// Extract from current field name to next field (or end)
|
|
80
|
+
const fieldContent = objectBody.slice(current.index, nextStart);
|
|
81
|
+
// Remove trailing comma and whitespace
|
|
82
|
+
const fieldDefMatch = fieldContent.match(/^\w+\s*:\s*(z\..+?)(?:,\s*)?$/s);
|
|
83
|
+
if (!fieldDefMatch) {
|
|
84
|
+
continue;
|
|
85
|
+
}
|
|
86
|
+
const fieldDef = fieldDefMatch[1].trim();
|
|
87
|
+
const parameter = parseField(current.name, fieldDef);
|
|
88
|
+
if (parameter) {
|
|
89
|
+
parameters.push(parameter);
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
return parameters;
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* Parse a single field definition.
|
|
96
|
+
*
|
|
97
|
+
* @param name - Field name
|
|
98
|
+
* @param definition - Field definition (e.g., "z.string().uuid().describe(...)")
|
|
99
|
+
* @returns Parsed parameter or null
|
|
100
|
+
*/
|
|
101
|
+
function parseField(name, definition) {
|
|
102
|
+
// Initialize parameter object
|
|
103
|
+
const param = {
|
|
104
|
+
name,
|
|
105
|
+
type: "string", // default
|
|
106
|
+
required: true, // default
|
|
107
|
+
};
|
|
108
|
+
// Detect base type
|
|
109
|
+
// IMPORTANT: Check container types (array, object) FIRST before primitives
|
|
110
|
+
// because z.array(z.string()) contains both "z.array(" and "z.string()"
|
|
111
|
+
if (definition.includes("z.array(")) {
|
|
112
|
+
param.type = "array";
|
|
113
|
+
}
|
|
114
|
+
else if (definition.includes("z.object(")) {
|
|
115
|
+
param.type = "object";
|
|
116
|
+
}
|
|
117
|
+
else if (definition.includes("z.enum(")) {
|
|
118
|
+
param.type = "enum";
|
|
119
|
+
param.enumValues = extractEnumValues(definition);
|
|
120
|
+
}
|
|
121
|
+
else if (definition.includes("z.string()")) {
|
|
122
|
+
param.type = "string";
|
|
123
|
+
}
|
|
124
|
+
else if (definition.includes("z.number()")) {
|
|
125
|
+
param.type = "number";
|
|
126
|
+
}
|
|
127
|
+
else if (definition.includes("z.boolean()")) {
|
|
128
|
+
param.type = "boolean";
|
|
129
|
+
}
|
|
130
|
+
else {
|
|
131
|
+
// Unknown type, skip
|
|
132
|
+
return null;
|
|
133
|
+
}
|
|
134
|
+
// Check if optional or nullable
|
|
135
|
+
if (definition.includes(".optional()") || definition.includes(".nullable()")) {
|
|
136
|
+
param.required = false;
|
|
137
|
+
}
|
|
138
|
+
// Extract format for strings
|
|
139
|
+
if (param.type === "string") {
|
|
140
|
+
if (definition.includes(".uuid(")) {
|
|
141
|
+
param.format = "uuid";
|
|
142
|
+
}
|
|
143
|
+
else if (definition.includes(".email(")) {
|
|
144
|
+
param.format = "email";
|
|
145
|
+
}
|
|
146
|
+
else if (definition.includes(".url(")) {
|
|
147
|
+
param.format = "url";
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
// Extract min/max for strings
|
|
151
|
+
if (param.type === "string") {
|
|
152
|
+
const minMatch = definition.match(/\.min\s*\(\s*(\d+)/);
|
|
153
|
+
if (minMatch) {
|
|
154
|
+
param.minLength = parseInt(minMatch[1], 10);
|
|
155
|
+
}
|
|
156
|
+
const maxMatch = definition.match(/\.max\s*\(\s*(\d+)/);
|
|
157
|
+
if (maxMatch) {
|
|
158
|
+
param.maxLength = parseInt(maxMatch[1], 10);
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
// Extract min/max for numbers
|
|
162
|
+
if (param.type === "number") {
|
|
163
|
+
const minMatch = definition.match(/\.min\s*\(\s*(-?\d+)/);
|
|
164
|
+
if (minMatch) {
|
|
165
|
+
param.min = parseInt(minMatch[1], 10);
|
|
166
|
+
}
|
|
167
|
+
const maxMatch = definition.match(/\.max\s*\(\s*(-?\d+)/);
|
|
168
|
+
if (maxMatch) {
|
|
169
|
+
param.max = parseInt(maxMatch[1], 10);
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
// Extract default value
|
|
173
|
+
const defaultMatch = definition.match(/\.default\s*\(\s*([^)]+)\s*\)/);
|
|
174
|
+
if (defaultMatch) {
|
|
175
|
+
param.default = parseDefaultValue(defaultMatch[1]);
|
|
176
|
+
}
|
|
177
|
+
// Extract description
|
|
178
|
+
const descMatch = definition.match(/\.describe\s*\(\s*["']([^"']+)["']\s*\)/);
|
|
179
|
+
if (descMatch) {
|
|
180
|
+
param.description = descMatch[1];
|
|
181
|
+
}
|
|
182
|
+
// Extract validation message from first validation method
|
|
183
|
+
const validationMatch = definition.match(/\.(uuid|email|url|min|max)\s*\(\s*(?:\d+\s*,\s*)?["']([^"']+)["']/);
|
|
184
|
+
if (validationMatch) {
|
|
185
|
+
param.validation = {
|
|
186
|
+
message: validationMatch[2],
|
|
187
|
+
};
|
|
188
|
+
}
|
|
189
|
+
return param;
|
|
190
|
+
}
|
|
191
|
+
/**
|
|
192
|
+
* Extract enum values from z.enum([...]) definition.
|
|
193
|
+
*
|
|
194
|
+
* @param definition - Field definition containing z.enum
|
|
195
|
+
* @returns Array of enum values
|
|
196
|
+
*/
|
|
197
|
+
function extractEnumValues(definition) {
|
|
198
|
+
const enumMatch = definition.match(/z\.enum\s*\(\s*\[([^\]]+)\]/);
|
|
199
|
+
if (!enumMatch) {
|
|
200
|
+
return [];
|
|
201
|
+
}
|
|
202
|
+
const enumContent = enumMatch[1];
|
|
203
|
+
const values = [];
|
|
204
|
+
// Match quoted strings in the array
|
|
205
|
+
const valuePattern = /["']([^"']+)["']/g;
|
|
206
|
+
const matches = enumContent.matchAll(valuePattern);
|
|
207
|
+
for (const match of matches) {
|
|
208
|
+
values.push(match[1]);
|
|
209
|
+
}
|
|
210
|
+
return values;
|
|
211
|
+
}
|
|
212
|
+
/**
|
|
213
|
+
* Parse default value from string representation.
|
|
214
|
+
*
|
|
215
|
+
* @param valueStr - String representation of the default value
|
|
216
|
+
* @returns Parsed value (string, number, boolean, etc.)
|
|
217
|
+
*/
|
|
218
|
+
function parseDefaultValue(valueStr) {
|
|
219
|
+
const trimmed = valueStr.trim();
|
|
220
|
+
// Remove quotes for strings
|
|
221
|
+
if ((trimmed.startsWith('"') && trimmed.endsWith('"')) ||
|
|
222
|
+
(trimmed.startsWith("'") && trimmed.endsWith("'"))) {
|
|
223
|
+
return trimmed.slice(1, -1);
|
|
224
|
+
}
|
|
225
|
+
// Parse numbers
|
|
226
|
+
if (/^-?\d+(\.\d+)?$/.test(trimmed)) {
|
|
227
|
+
return parseFloat(trimmed);
|
|
228
|
+
}
|
|
229
|
+
// Parse booleans
|
|
230
|
+
if (trimmed === "true") {
|
|
231
|
+
return true;
|
|
232
|
+
}
|
|
233
|
+
if (trimmed === "false") {
|
|
234
|
+
return false;
|
|
235
|
+
}
|
|
236
|
+
// Parse null
|
|
237
|
+
if (trimmed === "null") {
|
|
238
|
+
return null;
|
|
239
|
+
}
|
|
240
|
+
// Return as-is for other cases
|
|
241
|
+
return trimmed;
|
|
242
|
+
}
|
|
243
|
+
/**
|
|
244
|
+
* Scan multiple files for a specific schema.
|
|
245
|
+
*
|
|
246
|
+
* Searches through multiple files to find the specified schema definition.
|
|
247
|
+
*
|
|
248
|
+
* @param files - Array of file objects with content and path
|
|
249
|
+
* @param schemaName - Name of the schema to find
|
|
250
|
+
* @returns Parsed schema or null if not found in any file
|
|
251
|
+
*
|
|
252
|
+
* @example
|
|
253
|
+
* ```typescript
|
|
254
|
+
* const files = [
|
|
255
|
+
* { path: "lib/validations/entities.ts", content: "..." },
|
|
256
|
+
* { path: "lib/validations/projects.ts", content: "..." },
|
|
257
|
+
* ];
|
|
258
|
+
* const schema = findSchemaInFiles(files, "CreateEntitySchema");
|
|
259
|
+
* ```
|
|
260
|
+
*/
|
|
261
|
+
export function findSchemaInFiles(files, schemaName) {
|
|
262
|
+
for (const file of files) {
|
|
263
|
+
const schema = parseZodSchema(file.content, schemaName);
|
|
264
|
+
if (schema) {
|
|
265
|
+
return schema;
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
return null;
|
|
269
|
+
}
|
|
270
|
+
//# sourceMappingURL=zod-schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"zod-schema.js","sourceRoot":"","sources":["../../src/parsers/zod-schema.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AA6CH;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,MAAM,UAAU,cAAc,CAC5B,OAAe,EACf,UAAkB;IAElB,mEAAmE;IACnE,MAAM,aAAa,GAAG,IAAI,MAAM,CAC9B,YAAY,UAAU,yDAAyD,EAC/E,GAAG,CACJ,CAAC;IAEF,MAAM,KAAK,GAAG,OAAO,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC;IAC3C,IAAI,CAAC,KAAK,EAAE,CAAC;QACX,OAAO,IAAI,CAAC;IACd,CAAC;IAED,MAAM,UAAU,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC;IAC5B,MAAM,UAAU,GAAG,iBAAiB,CAAC,UAAU,CAAC,CAAC;IAEjD,OAAO;QACL,IAAI,EAAE,UAAU;QAChB,UAAU;KACX,CAAC;AACJ,CAAC;AAED;;;;;GAKG;AACH,SAAS,iBAAiB,CAAC,UAAkB;IAC3C,MAAM,UAAU,GAAmB,EAAE,CAAC;IAEtC,4FAA4F;IAC5F,oDAAoD;IAEpD,yCAAyC;IACzC,MAAM,iBAAiB,GAAG,kBAAkB,CAAC;IAC7C,MAAM,WAAW,GAA2C,EAAE,CAAC;IAE/D,IAA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|
3
|
+
*
|
|
4
|
+
* Infers whether a Server Action is CRUD or Domain based on its directory location:
|
|
5
|
+
* - lib/actions/crud/*.ts → CRUD (single table, standard CRUD operations)
|
|
6
|
+
* - lib/actions/domain/*.ts → Domain (multi-table, business workflows)
|
|
7
|
+
*/
|
|
8
|
+
export type ActionType = "CRUD" | "Domain";
|
|
9
|
+
/**
|
|
10
|
+
* Infer action type from file path
|
|
11
|
+
*
|
|
12
|
+
* @param filePath - Relative or absolute file path
|
|
13
|
+
* @returns Inferred action type, or undefined if not in recognized directory
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```ts
|
|
17
|
+
* inferActionTypeFromPath("lib/actions/crud/projects.ts") // => "CRUD"
|
|
18
|
+
* inferActionTypeFromPath("lib/actions/domain/dashboard.ts") // => "Domain"
|
|
19
|
+
* inferActionTypeFromPath("lib/actions/auth.ts") // => undefined (legacy)
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
export declare function inferActionTypeFromPath(filePath: string): ActionType | undefined;
|
|
23
|
+
//# sourceMappingURL=action-inference.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"action-inference.d.ts","sourceRoot":"","sources":["../../src/utils/action-inference.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,MAAM,MAAM,UAAU,GAAG,MAAM,GAAG,QAAQ,CAAC;AAE3C;;;;;;;;;;;;GAYG;AACH,wBAAgB,uBAAuB,CAAC,QAAQ,EAAE,MAAM,GAAG,UAAU,GAAG,SAAS,CAqBhF"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Action type inference from file paths
|
|
3
|
+
*
|
|
4
|
+
* Infers whether a Server Action is CRUD or Domain based on its directory location:
|
|
5
|
+
* - lib/actions/crud/*.ts → CRUD (single table, standard CRUD operations)
|
|
6
|
+
* - lib/actions/domain/*.ts → Domain (multi-table, business workflows)
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* Infer action type from file path
|
|
10
|
+
*
|
|
11
|
+
* @param filePath - Relative or absolute file path
|
|
12
|
+
* @returns Inferred action type, or undefined if not in recognized directory
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* ```ts
|
|
16
|
+
* inferActionTypeFromPath("lib/actions/crud/projects.ts") // => "CRUD"
|
|
17
|
+
* inferActionTypeFromPath("lib/actions/domain/dashboard.ts") // => "Domain"
|
|
18
|
+
* inferActionTypeFromPath("lib/actions/auth.ts") // => undefined (legacy)
|
|
19
|
+
* ```
|
|
20
|
+
*/
|
|
21
|
+
export function inferActionTypeFromPath(filePath) {
|
|
22
|
+
const normalizedPath = filePath.replace(/\\/g, "/").toLowerCase();
|
|
23
|
+
// Check for crud/ directory
|
|
24
|
+
if (normalizedPath.includes("/lib/actions/crud/") ||
|
|
25
|
+
normalizedPath.includes("/actions/crud/")) {
|
|
26
|
+
return "CRUD";
|
|
27
|
+
}
|
|
28
|
+
// Check for domain/ directory
|
|
29
|
+
if (normalizedPath.includes("/lib/actions/domain/") ||
|
|
30
|
+
normalizedPath.includes("/actions/domain/")) {
|
|
31
|
+
return "Domain";
|
|
32
|
+
}
|
|
33
|
+
// Actions not in crud/ or domain/ are legacy (no type inferred)
|
|
34
|
+
return undefined;
|
|
35
|
+
}
|
|
36
|
+
//# sourceMappingURL=action-inference.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"action-inference.js","sourceRoot":"","sources":["../../src/utils/action-inference.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH;;;;;;;;;;;;GAYG;AACH,MAAM,UAAU,uBAAuB,CAAC,QAAgB;IACtD,MAAM,cAAc,GAAG,QAAQ,CAAC,OAAO,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC,WAAW,EAAE,CAAC;IAElE,4BAA4B;IAC5B,IACE,cAAc,CAAC,QAAQ,CAAC,oBAAoB,CAAC;QAC7C,cAAc,CAAC,QAAQ,CAAC,gBAAgB,CAAC,EACzC,CAAC;QACD,OAAO,MAAM,CAAC;IAChB,CAAC;IAED,8BAA8B;IAC9B,IACE,cAAc,CAAC,QAAQ,CAAC,sBAAsB,CAAC;QAC/C,cAAc,CAAC,QAAQ,CAAC,kBAAkB,CAAC,EAC3C,CAAC;QACD,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,gEAAgE;IAChE,OAAO,SAAS,CAAC;AACnB,CAAC"}
|