@sk8metal/michi-cli 0.14.1 → 0.20.0
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/CHANGELOG.md +268 -2
- package/README.md +27 -2
- package/dist/scripts/config/config-schema.d.ts +5 -333
- package/dist/scripts/config/config-schema.d.ts.map +1 -1
- package/dist/scripts/config/config-schema.js +6 -233
- package/dist/scripts/config/config-schema.js.map +1 -1
- package/dist/scripts/config-global.d.ts.map +1 -1
- package/dist/scripts/config-global.js +3 -2
- package/dist/scripts/config-global.js.map +1 -1
- package/dist/scripts/confluence-sync.d.ts +5 -73
- package/dist/scripts/confluence-sync.d.ts.map +1 -1
- package/dist/scripts/confluence-sync.js +14 -392
- package/dist/scripts/confluence-sync.js.map +1 -1
- package/dist/scripts/constants/environments.d.ts +3 -30
- package/dist/scripts/constants/environments.d.ts.map +1 -1
- package/dist/scripts/constants/environments.js +3 -41
- package/dist/scripts/constants/environments.js.map +1 -1
- package/dist/scripts/constants/languages.d.ts +3 -20
- package/dist/scripts/constants/languages.d.ts.map +1 -1
- package/dist/scripts/constants/languages.js +3 -50
- package/dist/scripts/constants/languages.js.map +1 -1
- package/dist/scripts/constants/test-commands.d.ts +3 -33
- package/dist/scripts/constants/test-commands.d.ts.map +1 -1
- package/dist/scripts/constants/test-commands.js +3 -67
- package/dist/scripts/constants/test-commands.js.map +1 -1
- package/dist/scripts/dev-tools/mermaid-converter.d.ts.map +1 -0
- package/dist/scripts/dev-tools/mermaid-converter.js.map +1 -0
- package/dist/scripts/dev-tools/test-interactive.d.ts.map +1 -0
- package/dist/scripts/{test-interactive.js → dev-tools/test-interactive.js} +4 -3
- package/dist/scripts/dev-tools/test-interactive.js.map +1 -0
- package/dist/scripts/github-actions-client.d.ts +5 -75
- package/dist/scripts/github-actions-client.d.ts.map +1 -1
- package/dist/scripts/github-actions-client.js +4 -178
- package/dist/scripts/github-actions-client.js.map +1 -1
- package/dist/scripts/jira-sync.d.ts +3 -121
- package/dist/scripts/jira-sync.d.ts.map +1 -1
- package/dist/scripts/jira-sync.js +5 -879
- package/dist/scripts/jira-sync.js.map +1 -1
- package/dist/scripts/markdown-to-confluence.d.ts.map +1 -1
- package/dist/scripts/markdown-to-confluence.js +2 -2
- package/dist/scripts/markdown-to-confluence.js.map +1 -1
- package/dist/scripts/multi-project-estimate.d.ts.map +1 -1
- package/dist/scripts/multi-project-estimate.js +3 -2
- package/dist/scripts/multi-project-estimate.js.map +1 -1
- package/dist/scripts/phase-runner.d.ts.map +1 -1
- package/dist/scripts/phase-runner.js +34 -18
- package/dist/scripts/phase-runner.js.map +1 -1
- package/dist/scripts/pre-flight-check.d.ts.map +1 -1
- package/dist/scripts/pre-flight-check.js +27 -11
- package/dist/scripts/pre-flight-check.js.map +1 -1
- package/dist/scripts/template/multi-repo-renderer.js +2 -2
- package/dist/scripts/template/multi-repo-renderer.js.map +1 -1
- package/dist/scripts/test-execution-generator.d.ts.map +1 -1
- package/dist/scripts/test-execution-generator.js +5 -4
- package/dist/scripts/test-execution-generator.js.map +1 -1
- package/dist/scripts/utils/aidlc-parser.d.ts +5 -82
- package/dist/scripts/utils/aidlc-parser.d.ts.map +1 -1
- package/dist/scripts/utils/aidlc-parser.js +4 -204
- package/dist/scripts/utils/aidlc-parser.js.map +1 -1
- package/dist/scripts/utils/ci-generator.d.ts.map +1 -1
- package/dist/scripts/utils/ci-generator.js +4 -3
- package/dist/scripts/utils/ci-generator.js.map +1 -1
- package/dist/scripts/utils/config-loader.d.ts.map +1 -1
- package/dist/scripts/utils/config-loader.js +46 -49
- package/dist/scripts/utils/config-loader.js.map +1 -1
- package/dist/scripts/utils/config-validator.d.ts +9 -10
- package/dist/scripts/utils/config-validator.d.ts.map +1 -1
- package/dist/scripts/utils/config-validator.js +68 -70
- package/dist/scripts/utils/config-validator.js.map +1 -1
- package/dist/scripts/utils/docker-requirement-detector.d.ts.map +1 -1
- package/dist/scripts/utils/docker-requirement-detector.js +5 -4
- package/dist/scripts/utils/docker-requirement-detector.js.map +1 -1
- package/dist/scripts/utils/env-config.d.ts.map +1 -1
- package/dist/scripts/utils/env-config.js +55 -38
- package/dist/scripts/utils/env-config.js.map +1 -1
- package/dist/scripts/utils/feature-name-validator.d.ts +4 -9
- package/dist/scripts/utils/feature-name-validator.d.ts.map +1 -1
- package/dist/scripts/utils/feature-name-validator.js +12 -21
- package/dist/scripts/utils/feature-name-validator.js.map +1 -1
- package/dist/scripts/utils/interactive-helpers.d.ts +5 -29
- package/dist/scripts/utils/interactive-helpers.d.ts.map +1 -1
- package/dist/scripts/utils/interactive-helpers.js +5 -89
- package/dist/scripts/utils/interactive-helpers.js.map +1 -1
- package/dist/scripts/utils/language-detector.d.ts.map +1 -1
- package/dist/scripts/utils/language-detector.js +4 -3
- package/dist/scripts/utils/language-detector.js.map +1 -1
- package/dist/scripts/utils/markdown-parser.d.ts +6 -52
- package/dist/scripts/utils/markdown-parser.d.ts.map +1 -1
- package/dist/scripts/utils/markdown-parser.js +5 -286
- package/dist/scripts/utils/markdown-parser.js.map +1 -1
- package/dist/scripts/utils/multi-repo-validator.d.ts +9 -10
- package/dist/scripts/utils/multi-repo-validator.d.ts.map +1 -1
- package/dist/scripts/utils/multi-repo-validator.js +15 -17
- package/dist/scripts/utils/multi-repo-validator.js.map +1 -1
- package/dist/scripts/utils/project-analyzer.d.ts +120 -0
- package/dist/scripts/utils/project-analyzer.d.ts.map +1 -0
- package/dist/scripts/utils/project-analyzer.js +358 -0
- package/dist/scripts/utils/project-analyzer.js.map +1 -0
- package/dist/scripts/utils/project-detector.d.ts.map +1 -1
- package/dist/scripts/utils/project-detector.js +6 -5
- package/dist/scripts/utils/project-detector.js.map +1 -1
- package/dist/scripts/utils/project-finder.d.ts +1 -21
- package/dist/scripts/utils/project-finder.d.ts.map +1 -1
- package/dist/scripts/utils/project-finder.js +2 -121
- package/dist/scripts/utils/project-finder.js.map +1 -1
- package/dist/scripts/utils/project-meta.d.ts +4 -27
- package/dist/scripts/utils/project-meta.d.ts.map +1 -1
- package/dist/scripts/utils/project-meta.js +3 -67
- package/dist/scripts/utils/project-meta.js.map +1 -1
- package/dist/scripts/utils/safe-file-reader.d.ts +84 -0
- package/dist/scripts/utils/safe-file-reader.d.ts.map +1 -0
- package/dist/scripts/utils/safe-file-reader.js +122 -0
- package/dist/scripts/utils/safe-file-reader.js.map +1 -0
- package/dist/scripts/utils/security-validator.d.ts +8 -19
- package/dist/scripts/utils/security-validator.d.ts.map +1 -1
- package/dist/scripts/utils/security-validator.js +28 -58
- package/dist/scripts/utils/security-validator.js.map +1 -1
- package/dist/scripts/utils/spec-archiver.d.ts.map +1 -1
- package/dist/scripts/utils/spec-archiver.js +7 -6
- package/dist/scripts/utils/spec-archiver.js.map +1 -1
- package/dist/scripts/utils/spec-updater.d.ts.map +1 -1
- package/dist/scripts/utils/spec-updater.js +10 -7
- package/dist/scripts/utils/spec-updater.js.map +1 -1
- package/dist/scripts/utils/tasks-converter.js +2 -2
- package/dist/scripts/utils/tasks-converter.js.map +1 -1
- package/dist/scripts/utils/tasks-format-validator.js +4 -4
- package/dist/scripts/utils/tasks-format-validator.js.map +1 -1
- package/dist/scripts/utils/template-applier.d.ts.map +1 -1
- package/dist/scripts/utils/template-applier.js +4 -3
- package/dist/scripts/utils/template-applier.js.map +1 -1
- package/dist/scripts/utils/types/validation.d.ts +57 -0
- package/dist/scripts/utils/types/validation.d.ts.map +1 -0
- package/dist/scripts/utils/types/validation.js +50 -0
- package/dist/scripts/utils/types/validation.js.map +1 -0
- package/dist/scripts/validate-phase.d.ts +6 -1
- package/dist/scripts/validate-phase.d.ts.map +1 -1
- package/dist/scripts/validate-phase.js +42 -20
- package/dist/scripts/validate-phase.js.map +1 -1
- package/dist/scripts/workflow-orchestrator.d.ts +4 -40
- package/dist/scripts/workflow-orchestrator.d.ts.map +1 -1
- package/dist/scripts/workflow-orchestrator.js +7 -194
- package/dist/scripts/workflow-orchestrator.js.map +1 -1
- package/dist/src/application/interfaces/config-provider.d.ts +89 -0
- package/dist/src/application/interfaces/config-provider.d.ts.map +1 -0
- package/dist/src/application/interfaces/config-provider.js +8 -0
- package/dist/src/application/interfaces/config-provider.js.map +1 -0
- package/dist/src/application/interfaces/external-api.d.ts +80 -0
- package/dist/src/application/interfaces/external-api.d.ts.map +1 -0
- package/dist/src/application/interfaces/external-api.js +8 -0
- package/dist/src/application/interfaces/external-api.js.map +1 -0
- package/dist/src/application/interfaces/spec-repository.d.ts +52 -0
- package/dist/src/application/interfaces/spec-repository.d.ts.map +1 -0
- package/dist/src/application/interfaces/spec-repository.js +8 -0
- package/dist/src/application/interfaces/spec-repository.js.map +1 -0
- package/dist/src/application/services/spec-service.d.ts +49 -0
- package/dist/src/application/services/spec-service.d.ts.map +1 -0
- package/dist/src/application/services/spec-service.js +94 -0
- package/dist/src/application/services/spec-service.js.map +1 -0
- package/dist/src/application/services/workflow-service.d.ts +58 -0
- package/dist/src/application/services/workflow-service.d.ts.map +1 -0
- package/dist/src/application/services/workflow-service.js +125 -0
- package/dist/src/application/services/workflow-service.js.map +1 -0
- package/dist/src/application/templates/processor.d.ts +31 -0
- package/dist/src/application/templates/processor.d.ts.map +1 -0
- package/dist/src/application/templates/processor.js +58 -0
- package/dist/src/application/templates/processor.js.map +1 -0
- package/dist/src/application/use-cases/spec/archive-spec.d.ts +34 -0
- package/dist/src/application/use-cases/spec/archive-spec.d.ts.map +1 -0
- package/dist/src/application/use-cases/spec/archive-spec.js +56 -0
- package/dist/src/application/use-cases/spec/archive-spec.js.map +1 -0
- package/dist/src/application/use-cases/spec/generate-design.d.ts +34 -0
- package/dist/src/application/use-cases/spec/generate-design.d.ts.map +1 -0
- package/dist/src/application/use-cases/spec/generate-design.js +58 -0
- package/dist/src/application/use-cases/spec/generate-design.js.map +1 -0
- package/dist/src/application/use-cases/spec/generate-requirements.d.ts +34 -0
- package/dist/src/application/use-cases/spec/generate-requirements.d.ts.map +1 -0
- package/dist/src/application/use-cases/spec/generate-requirements.js +58 -0
- package/dist/src/application/use-cases/spec/generate-requirements.js.map +1 -0
- package/dist/src/application/use-cases/spec/generate-tasks.d.ts +34 -0
- package/dist/src/application/use-cases/spec/generate-tasks.d.ts.map +1 -0
- package/dist/src/application/use-cases/spec/generate-tasks.js +58 -0
- package/dist/src/application/use-cases/spec/generate-tasks.js.map +1 -0
- package/dist/src/application/use-cases/spec/init-spec.d.ts +48 -0
- package/dist/src/application/use-cases/spec/init-spec.d.ts.map +1 -0
- package/dist/src/application/use-cases/spec/init-spec.js +121 -0
- package/dist/src/application/use-cases/spec/init-spec.js.map +1 -0
- package/dist/src/cli.d.ts +6 -7
- package/dist/src/cli.d.ts.map +1 -1
- package/dist/src/cli.js +6 -745
- package/dist/src/cli.js.map +1 -1
- package/dist/src/commands/config-validate.js +2 -2
- package/dist/src/commands/init.d.ts +6 -21
- package/dist/src/commands/init.d.ts.map +1 -1
- package/dist/src/commands/init.js +5 -508
- package/dist/src/commands/init.js.map +1 -1
- package/dist/src/commands/migrate.js +4 -3
- package/dist/src/commands/migrate.js.map +1 -1
- package/dist/src/commands/spec-archive.d.ts +6 -13
- package/dist/src/commands/spec-archive.d.ts.map +1 -1
- package/dist/src/commands/spec-archive.js +5 -36
- package/dist/src/commands/spec-archive.js.map +1 -1
- package/dist/src/commands/spec-list.d.ts +6 -11
- package/dist/src/commands/spec-list.d.ts.map +1 -1
- package/dist/src/commands/spec-list.js +5 -51
- package/dist/src/commands/spec-list.js.map +1 -1
- package/dist/src/domain/constants/approval.d.ts +18 -0
- package/dist/src/domain/constants/approval.d.ts.map +1 -0
- package/dist/src/domain/constants/approval.js +23 -0
- package/dist/src/domain/constants/approval.js.map +1 -0
- package/dist/src/domain/constants/environments.d.ts +33 -0
- package/dist/src/domain/constants/environments.d.ts.map +1 -0
- package/dist/src/domain/constants/environments.js +44 -0
- package/dist/src/domain/constants/environments.js.map +1 -0
- package/dist/src/domain/constants/index.d.ts +12 -0
- package/dist/src/domain/constants/index.d.ts.map +1 -0
- package/dist/src/domain/constants/index.js +18 -0
- package/dist/src/domain/constants/index.js.map +1 -0
- package/dist/src/domain/constants/languages.d.ts +23 -0
- package/dist/src/domain/constants/languages.d.ts.map +1 -0
- package/dist/src/domain/constants/languages.js +53 -0
- package/dist/src/domain/constants/languages.js.map +1 -0
- package/dist/src/domain/constants/phases.d.ts +32 -0
- package/dist/src/domain/constants/phases.d.ts.map +1 -0
- package/dist/src/domain/constants/phases.js +52 -0
- package/dist/src/domain/constants/phases.js.map +1 -0
- package/dist/src/domain/constants/test-commands.d.ts +36 -0
- package/dist/src/domain/constants/test-commands.d.ts.map +1 -0
- package/dist/src/domain/constants/test-commands.js +70 -0
- package/dist/src/domain/constants/test-commands.js.map +1 -0
- package/dist/src/domain/constants/validation-rules.d.ts +32 -0
- package/dist/src/domain/constants/validation-rules.d.ts.map +1 -0
- package/dist/src/domain/constants/validation-rules.js +51 -0
- package/dist/src/domain/constants/validation-rules.js.map +1 -0
- package/dist/src/domain/entities/spec.d.ts +66 -0
- package/dist/src/domain/entities/spec.d.ts.map +1 -0
- package/dist/src/domain/entities/spec.js +112 -0
- package/dist/src/domain/entities/spec.js.map +1 -0
- package/dist/src/domain/entities/task.d.ts +43 -0
- package/dist/src/domain/entities/task.d.ts.map +1 -0
- package/dist/src/domain/entities/task.js +65 -0
- package/dist/src/domain/entities/task.js.map +1 -0
- package/dist/src/domain/services/spec-validator.d.ts +46 -0
- package/dist/src/domain/services/spec-validator.d.ts.map +1 -0
- package/dist/src/domain/services/spec-validator.js +99 -0
- package/dist/src/domain/services/spec-validator.js.map +1 -0
- package/dist/src/domain/value-objects/feature-name.d.ts +24 -0
- package/dist/src/domain/value-objects/feature-name.d.ts.map +1 -0
- package/dist/src/domain/value-objects/feature-name.js +36 -0
- package/dist/src/domain/value-objects/feature-name.js.map +1 -0
- package/dist/src/domain/value-objects/index.d.ts +7 -0
- package/dist/src/domain/value-objects/index.d.ts.map +1 -0
- package/dist/src/domain/value-objects/index.js +7 -0
- package/dist/src/domain/value-objects/index.js.map +1 -0
- package/dist/src/infrastructure/config/index.d.ts +5 -0
- package/dist/src/infrastructure/config/index.d.ts.map +1 -0
- package/dist/src/infrastructure/config/index.js +6 -0
- package/dist/src/infrastructure/config/index.js.map +1 -0
- package/dist/src/infrastructure/config/schema.d.ts +337 -0
- package/dist/src/infrastructure/config/schema.d.ts.map +1 -0
- package/dist/src/infrastructure/config/schema.js +237 -0
- package/dist/src/infrastructure/config/schema.js.map +1 -0
- package/dist/src/infrastructure/external-apis/atlassian/confluence/approval.d.ts +14 -0
- package/dist/src/infrastructure/external-apis/atlassian/confluence/approval.d.ts.map +1 -0
- package/dist/src/infrastructure/external-apis/atlassian/confluence/approval.js +102 -0
- package/dist/src/infrastructure/external-apis/atlassian/confluence/approval.js.map +1 -0
- package/dist/src/infrastructure/external-apis/atlassian/confluence/client.d.ts +23 -0
- package/dist/src/infrastructure/external-apis/atlassian/confluence/client.d.ts.map +1 -0
- package/dist/src/infrastructure/external-apis/atlassian/confluence/client.js +192 -0
- package/dist/src/infrastructure/external-apis/atlassian/confluence/client.js.map +1 -0
- package/dist/src/infrastructure/external-apis/atlassian/confluence/hierarchy.d.ts +48 -0
- package/dist/src/infrastructure/external-apis/atlassian/confluence/hierarchy.d.ts.map +1 -0
- package/dist/src/infrastructure/external-apis/atlassian/confluence/hierarchy.js +531 -0
- package/dist/src/infrastructure/external-apis/atlassian/confluence/hierarchy.js.map +1 -0
- package/dist/src/infrastructure/external-apis/atlassian/confluence/index.d.ts +10 -0
- package/dist/src/infrastructure/external-apis/atlassian/confluence/index.d.ts.map +1 -0
- package/dist/src/infrastructure/external-apis/atlassian/confluence/index.js +12 -0
- package/dist/src/infrastructure/external-apis/atlassian/confluence/index.js.map +1 -0
- package/dist/src/infrastructure/external-apis/atlassian/confluence/sync-service.d.ts +13 -0
- package/dist/src/infrastructure/external-apis/atlassian/confluence/sync-service.d.ts.map +1 -0
- package/dist/src/infrastructure/external-apis/atlassian/confluence/sync-service.js +129 -0
- package/dist/src/infrastructure/external-apis/atlassian/confluence/sync-service.js.map +1 -0
- package/dist/src/infrastructure/external-apis/atlassian/confluence/types.d.ts +113 -0
- package/dist/src/infrastructure/external-apis/atlassian/confluence/types.d.ts.map +1 -0
- package/dist/src/infrastructure/external-apis/atlassian/confluence/types.js +5 -0
- package/dist/src/infrastructure/external-apis/atlassian/confluence/types.js.map +1 -0
- package/dist/src/infrastructure/external-apis/atlassian/jira/adf-converter.d.ts +15 -0
- package/dist/src/infrastructure/external-apis/atlassian/jira/adf-converter.d.ts.map +1 -0
- package/dist/src/infrastructure/external-apis/atlassian/jira/adf-converter.js +141 -0
- package/dist/src/infrastructure/external-apis/atlassian/jira/adf-converter.js.map +1 -0
- package/dist/src/infrastructure/external-apis/atlassian/jira/client.d.ts +50 -0
- package/dist/src/infrastructure/external-apis/atlassian/jira/client.d.ts.map +1 -0
- package/dist/src/infrastructure/external-apis/atlassian/jira/client.js +226 -0
- package/dist/src/infrastructure/external-apis/atlassian/jira/client.js.map +1 -0
- package/dist/src/infrastructure/external-apis/atlassian/jira/index.d.ts +12 -0
- package/dist/src/infrastructure/external-apis/atlassian/jira/index.d.ts.map +1 -0
- package/dist/src/infrastructure/external-apis/atlassian/jira/index.js +16 -0
- package/dist/src/infrastructure/external-apis/atlassian/jira/index.js.map +1 -0
- package/dist/src/infrastructure/external-apis/atlassian/jira/issue-builder.d.ts +49 -0
- package/dist/src/infrastructure/external-apis/atlassian/jira/issue-builder.d.ts.map +1 -0
- package/dist/src/infrastructure/external-apis/atlassian/jira/issue-builder.js +165 -0
- package/dist/src/infrastructure/external-apis/atlassian/jira/issue-builder.js.map +1 -0
- package/dist/src/infrastructure/external-apis/atlassian/jira/status-mapper.d.ts +14 -0
- package/dist/src/infrastructure/external-apis/atlassian/jira/status-mapper.d.ts.map +1 -0
- package/dist/src/infrastructure/external-apis/atlassian/jira/status-mapper.js +110 -0
- package/dist/src/infrastructure/external-apis/atlassian/jira/status-mapper.js.map +1 -0
- package/dist/src/infrastructure/external-apis/atlassian/jira/sync-service.d.ts +32 -0
- package/dist/src/infrastructure/external-apis/atlassian/jira/sync-service.d.ts.map +1 -0
- package/dist/src/infrastructure/external-apis/atlassian/jira/sync-service.js +284 -0
- package/dist/src/infrastructure/external-apis/atlassian/jira/sync-service.js.map +1 -0
- package/dist/src/infrastructure/external-apis/atlassian/jira/types.d.ts +114 -0
- package/dist/src/infrastructure/external-apis/atlassian/jira/types.d.ts.map +1 -0
- package/dist/src/infrastructure/external-apis/atlassian/jira/types.js +7 -0
- package/dist/src/infrastructure/external-apis/atlassian/jira/types.js.map +1 -0
- package/dist/src/infrastructure/external-apis/github/client.d.ts +25 -0
- package/dist/src/infrastructure/external-apis/github/client.d.ts.map +1 -0
- package/dist/src/infrastructure/external-apis/github/client.js +109 -0
- package/dist/src/infrastructure/external-apis/github/client.js.map +1 -0
- package/dist/src/infrastructure/external-apis/github/index.d.ts +7 -0
- package/dist/src/infrastructure/external-apis/github/index.d.ts.map +1 -0
- package/dist/src/infrastructure/external-apis/github/index.js +8 -0
- package/dist/src/infrastructure/external-apis/github/index.js.map +1 -0
- package/dist/src/infrastructure/external-apis/github/types.d.ts +69 -0
- package/dist/src/infrastructure/external-apis/github/types.d.ts.map +1 -0
- package/dist/src/infrastructure/external-apis/github/types.js +5 -0
- package/dist/src/infrastructure/external-apis/github/types.js.map +1 -0
- package/dist/src/infrastructure/external-apis/github/utils.d.ts +18 -0
- package/dist/src/infrastructure/external-apis/github/utils.d.ts.map +1 -0
- package/dist/src/infrastructure/external-apis/github/utils.js +84 -0
- package/dist/src/infrastructure/external-apis/github/utils.js.map +1 -0
- package/dist/src/infrastructure/filesystem/index.d.ts +6 -0
- package/dist/src/infrastructure/filesystem/index.d.ts.map +1 -0
- package/dist/src/infrastructure/filesystem/index.js +5 -0
- package/dist/src/infrastructure/filesystem/index.js.map +1 -0
- package/dist/src/infrastructure/filesystem/project-meta.d.ts +32 -0
- package/dist/src/infrastructure/filesystem/project-meta.d.ts.map +1 -0
- package/dist/src/infrastructure/filesystem/project-meta.js +75 -0
- package/dist/src/infrastructure/filesystem/project-meta.js.map +1 -0
- package/dist/src/infrastructure/parsers/aidlc-parser.d.ts +86 -0
- package/dist/src/infrastructure/parsers/aidlc-parser.d.ts.map +1 -0
- package/dist/src/infrastructure/parsers/aidlc-parser.js +208 -0
- package/dist/src/infrastructure/parsers/aidlc-parser.js.map +1 -0
- package/dist/src/infrastructure/parsers/index.d.ts +8 -0
- package/dist/src/infrastructure/parsers/index.d.ts.map +1 -0
- package/dist/src/infrastructure/parsers/index.js +6 -0
- package/dist/src/infrastructure/parsers/index.js.map +1 -0
- package/dist/src/infrastructure/parsers/markdown-parser.d.ts +51 -0
- package/dist/src/infrastructure/parsers/markdown-parser.d.ts.map +1 -0
- package/dist/src/infrastructure/parsers/markdown-parser.js +253 -0
- package/dist/src/infrastructure/parsers/markdown-parser.js.map +1 -0
- package/dist/src/presentation/cli/config.d.ts +12 -0
- package/dist/src/presentation/cli/config.d.ts.map +1 -0
- package/dist/src/presentation/cli/config.js +22 -0
- package/dist/src/presentation/cli/config.js.map +1 -0
- package/dist/src/presentation/cli/version.d.ts +10 -0
- package/dist/src/presentation/cli/version.d.ts.map +1 -0
- package/dist/src/presentation/cli/version.js +41 -0
- package/dist/src/presentation/cli/version.js.map +1 -0
- package/dist/src/presentation/cli.d.ts +22 -0
- package/dist/src/presentation/cli.d.ts.map +1 -0
- package/dist/src/presentation/cli.js +85 -0
- package/dist/src/presentation/cli.js.map +1 -0
- package/dist/src/presentation/commands/config/register.d.ts +11 -0
- package/dist/src/presentation/commands/config/register.d.ts.map +1 -0
- package/dist/src/presentation/commands/config/register.js +98 -0
- package/dist/src/presentation/commands/config/register.js.map +1 -0
- package/dist/src/presentation/commands/confluence/register.d.ts +11 -0
- package/dist/src/presentation/commands/confluence/register.d.ts.map +1 -0
- package/dist/src/presentation/commands/confluence/register.js +32 -0
- package/dist/src/presentation/commands/confluence/register.js.map +1 -0
- package/dist/src/presentation/commands/confluence/sync.d.ts +17 -0
- package/dist/src/presentation/commands/confluence/sync.d.ts.map +1 -0
- package/dist/src/presentation/commands/confluence/sync.js +25 -0
- package/dist/src/presentation/commands/confluence/sync.js.map +1 -0
- package/dist/src/presentation/commands/init/handler.d.ts +10 -0
- package/dist/src/presentation/commands/init/handler.d.ts.map +1 -0
- package/dist/src/presentation/commands/init/handler.js +64 -0
- package/dist/src/presentation/commands/init/handler.js.map +1 -0
- package/dist/src/presentation/commands/init/prompts.d.ts +41 -0
- package/dist/src/presentation/commands/init/prompts.d.ts.map +1 -0
- package/dist/src/presentation/commands/init/prompts.js +119 -0
- package/dist/src/presentation/commands/init/prompts.js.map +1 -0
- package/dist/src/presentation/commands/init/register.d.ts +11 -0
- package/dist/src/presentation/commands/init/register.d.ts.map +1 -0
- package/dist/src/presentation/commands/init/register.js +141 -0
- package/dist/src/presentation/commands/init/register.js.map +1 -0
- package/dist/src/presentation/commands/init/setup.d.ts +26 -0
- package/dist/src/presentation/commands/init/setup.d.ts.map +1 -0
- package/dist/src/presentation/commands/init/setup.js +196 -0
- package/dist/src/presentation/commands/init/setup.js.map +1 -0
- package/dist/src/presentation/commands/init/templates.d.ts +19 -0
- package/dist/src/presentation/commands/init/templates.d.ts.map +1 -0
- package/dist/src/presentation/commands/init/templates.js +140 -0
- package/dist/src/presentation/commands/init/templates.js.map +1 -0
- package/dist/src/presentation/commands/init/validation.d.ts +21 -0
- package/dist/src/presentation/commands/init/validation.d.ts.map +1 -0
- package/dist/src/presentation/commands/init/validation.js +65 -0
- package/dist/src/presentation/commands/init/validation.js.map +1 -0
- package/dist/src/presentation/commands/jira/register.d.ts +11 -0
- package/dist/src/presentation/commands/jira/register.d.ts.map +1 -0
- package/dist/src/presentation/commands/jira/register.js +75 -0
- package/dist/src/presentation/commands/jira/register.js.map +1 -0
- package/dist/src/presentation/commands/jira/sync.d.ts +29 -0
- package/dist/src/presentation/commands/jira/sync.d.ts.map +1 -0
- package/dist/src/presentation/commands/jira/sync.js +37 -0
- package/dist/src/presentation/commands/jira/sync.js.map +1 -0
- package/dist/src/{commands/multi-repo-add-repo.d.ts → presentation/commands/multi-repo/add-repo.d.ts} +1 -1
- package/dist/src/presentation/commands/multi-repo/add-repo.d.ts.map +1 -0
- package/dist/src/{commands/multi-repo-add-repo.js → presentation/commands/multi-repo/add-repo.js} +4 -4
- package/dist/src/presentation/commands/multi-repo/add-repo.js.map +1 -0
- package/dist/src/{commands/multi-repo-ci-status.d.ts → presentation/commands/multi-repo/ci-status.d.ts} +2 -2
- package/dist/src/presentation/commands/multi-repo/ci-status.d.ts.map +1 -0
- package/dist/src/{commands/multi-repo-ci-status.js → presentation/commands/multi-repo/ci-status.js} +95 -81
- package/dist/src/presentation/commands/multi-repo/ci-status.js.map +1 -0
- package/dist/src/{commands/multi-repo-confluence-sync.d.ts → presentation/commands/multi-repo/confluence-sync.d.ts} +1 -1
- package/dist/src/presentation/commands/multi-repo/confluence-sync.d.ts.map +1 -0
- package/dist/src/{commands/multi-repo-confluence-sync.js → presentation/commands/multi-repo/confluence-sync.js} +7 -6
- package/dist/src/presentation/commands/multi-repo/confluence-sync.js.map +1 -0
- package/dist/src/{commands/multi-repo-init.d.ts → presentation/commands/multi-repo/init.d.ts} +1 -1
- package/dist/src/presentation/commands/multi-repo/init.d.ts.map +1 -0
- package/dist/src/{commands/multi-repo-init.js → presentation/commands/multi-repo/init.js} +6 -6
- package/dist/src/presentation/commands/multi-repo/init.js.map +1 -0
- package/dist/src/{commands/multi-repo-list.d.ts → presentation/commands/multi-repo/list.d.ts} +1 -1
- package/dist/src/presentation/commands/multi-repo/list.d.ts.map +1 -0
- package/dist/src/{commands/multi-repo-list.js → presentation/commands/multi-repo/list.js} +2 -2
- package/dist/src/presentation/commands/multi-repo/list.js.map +1 -0
- package/dist/src/presentation/commands/multi-repo/register.d.ts +12 -0
- package/dist/src/presentation/commands/multi-repo/register.d.ts.map +1 -0
- package/dist/src/presentation/commands/multi-repo/register.js +249 -0
- package/dist/src/presentation/commands/multi-repo/register.js.map +1 -0
- package/dist/src/{commands/multi-repo-test.d.ts → presentation/commands/multi-repo/test.d.ts} +1 -1
- package/dist/src/presentation/commands/multi-repo/test.d.ts.map +1 -0
- package/dist/src/{commands/multi-repo-test.js → presentation/commands/multi-repo/test.js} +4 -4
- package/dist/src/presentation/commands/multi-repo/test.js.map +1 -0
- package/dist/src/presentation/commands/phase/register.d.ts +11 -0
- package/dist/src/presentation/commands/phase/register.d.ts.map +1 -0
- package/dist/src/presentation/commands/phase/register.js +97 -0
- package/dist/src/presentation/commands/phase/register.js.map +1 -0
- package/dist/src/presentation/commands/spec/archive.d.ts +17 -0
- package/dist/src/presentation/commands/spec/archive.d.ts.map +1 -0
- package/dist/src/presentation/commands/spec/archive.js +40 -0
- package/dist/src/presentation/commands/spec/archive.js.map +1 -0
- package/dist/src/presentation/commands/spec/list.d.ts +15 -0
- package/dist/src/presentation/commands/spec/list.d.ts.map +1 -0
- package/dist/src/presentation/commands/spec/list.js +55 -0
- package/dist/src/presentation/commands/spec/list.js.map +1 -0
- package/dist/src/presentation/commands/spec/register.d.ts +11 -0
- package/dist/src/presentation/commands/spec/register.d.ts.map +1 -0
- package/dist/src/presentation/commands/spec/register.js +45 -0
- package/dist/src/presentation/commands/spec/register.js.map +1 -0
- package/dist/src/presentation/commands/workflow/orchestrator.d.ts +50 -0
- package/dist/src/presentation/commands/workflow/orchestrator.d.ts.map +1 -0
- package/dist/src/presentation/commands/workflow/orchestrator.js +174 -0
- package/dist/src/presentation/commands/workflow/orchestrator.js.map +1 -0
- package/dist/src/presentation/commands/workflow/register.d.ts +11 -0
- package/dist/src/presentation/commands/workflow/register.d.ts.map +1 -0
- package/dist/src/presentation/commands/workflow/register.js +58 -0
- package/dist/src/presentation/commands/workflow/register.js.map +1 -0
- package/dist/src/presentation/formatters/error-formatter.d.ts +79 -0
- package/dist/src/presentation/formatters/error-formatter.d.ts.map +1 -0
- package/dist/src/presentation/formatters/error-formatter.js +150 -0
- package/dist/src/presentation/formatters/error-formatter.js.map +1 -0
- package/dist/src/presentation/formatters/index.d.ts +8 -0
- package/dist/src/presentation/formatters/index.d.ts.map +1 -0
- package/dist/src/presentation/formatters/index.js +11 -0
- package/dist/src/presentation/formatters/index.js.map +1 -0
- package/dist/src/presentation/formatters/output-formatter.d.ts +98 -0
- package/dist/src/presentation/formatters/output-formatter.d.ts.map +1 -0
- package/dist/src/presentation/formatters/output-formatter.js +165 -0
- package/dist/src/presentation/formatters/output-formatter.js.map +1 -0
- package/dist/src/presentation/formatters/progress-formatter.d.ts +121 -0
- package/dist/src/presentation/formatters/progress-formatter.d.ts.map +1 -0
- package/dist/src/presentation/formatters/progress-formatter.js +235 -0
- package/dist/src/presentation/formatters/progress-formatter.js.map +1 -0
- package/dist/src/presentation/interactive/config/env-wizard.d.ts +9 -0
- package/dist/src/presentation/interactive/config/env-wizard.d.ts.map +1 -0
- package/dist/src/presentation/interactive/config/env-wizard.js +193 -0
- package/dist/src/presentation/interactive/config/env-wizard.js.map +1 -0
- package/dist/src/presentation/interactive/config/index.d.ts +5 -0
- package/dist/src/presentation/interactive/config/index.d.ts.map +1 -0
- package/dist/src/presentation/interactive/config/index.js +5 -0
- package/dist/src/presentation/interactive/config/index.js.map +1 -0
- package/dist/src/presentation/interactive/confirmation.d.ts +24 -0
- package/dist/src/presentation/interactive/confirmation.d.ts.map +1 -0
- package/dist/src/presentation/interactive/confirmation.js +54 -0
- package/dist/src/presentation/interactive/confirmation.js.map +1 -0
- package/dist/src/presentation/interactive/index.d.ts +8 -0
- package/dist/src/presentation/interactive/index.d.ts.map +1 -0
- package/dist/src/presentation/interactive/index.js +11 -0
- package/dist/src/presentation/interactive/index.js.map +1 -0
- package/dist/src/presentation/interactive/prompts.d.ts +30 -0
- package/dist/src/presentation/interactive/prompts.d.ts.map +1 -0
- package/dist/src/presentation/interactive/prompts.js +69 -0
- package/dist/src/presentation/interactive/prompts.js.map +1 -0
- package/dist/src/presentation/interactive/selection.d.ts +31 -0
- package/dist/src/presentation/interactive/selection.d.ts.map +1 -0
- package/dist/src/presentation/interactive/selection.js +138 -0
- package/dist/src/presentation/interactive/selection.js.map +1 -0
- package/dist/src/shared/types/errors.d.ts +132 -0
- package/dist/src/shared/types/errors.d.ts.map +1 -0
- package/dist/src/shared/types/errors.js +61 -0
- package/dist/src/shared/types/errors.js.map +1 -0
- package/dist/src/shared/types/result.d.ts +53 -0
- package/dist/src/shared/types/result.d.ts.map +1 -0
- package/dist/src/shared/types/result.js +42 -0
- package/dist/src/shared/types/result.js.map +1 -0
- package/dist/test-confluence-auth.d.ts +6 -0
- package/dist/test-confluence-auth.d.ts.map +1 -0
- package/dist/test-confluence-auth.js +128 -0
- package/dist/test-confluence-auth.js.map +1 -0
- package/docs/MIGRATION.md +513 -0
- package/docs/architecture.md +774 -0
- package/docs/guides/comprehensive-verification-guide.md +1926 -0
- package/docs/guides/interactive-config.md +285 -0
- package/docs/onion-architecture-phase0-complete.md +91 -0
- package/package.json +6 -6
- package/scripts/README.md +148 -0
- package/scripts/__tests__/jira-transitions.test.ts +44 -30
- package/scripts/__tests__/mermaid-converter.test.ts +2 -2
- package/scripts/__tests__/multi-repo-validator.test.ts +62 -62
- package/scripts/__tests__/spec-archiver.test.ts +12 -0
- package/scripts/__tests__/validate-phase.test.ts +6 -6
- package/scripts/build/README.md +24 -0
- package/scripts/{copy-static-assets.js → build/copy-static-assets.js} +1 -1
- package/scripts/{set-permissions.js → build/set-permissions.js} +1 -1
- package/scripts/config/config-schema.ts +43 -302
- package/scripts/config-global.ts +3 -2
- package/scripts/confluence-sync.ts +17 -538
- package/scripts/constants/environments.ts +3 -53
- package/scripts/constants/languages.ts +3 -68
- package/scripts/constants/test-commands.ts +3 -94
- package/scripts/dev-tools/README.md +22 -0
- package/scripts/{test-interactive.ts → dev-tools/test-interactive.ts} +4 -3
- package/scripts/github-actions-client.ts +18 -256
- package/scripts/jira-sync.ts +5 -1270
- package/scripts/markdown-to-confluence.ts +5 -5
- package/scripts/multi-project-estimate.ts +3 -2
- package/scripts/phase-runner.ts +41 -19
- package/scripts/pre-flight-check.ts +27 -11
- package/scripts/template/__tests__/multi-repo-renderer.test.ts +12 -0
- package/scripts/template/multi-repo-renderer.ts +2 -2
- package/scripts/test-execution-generator.ts +5 -4
- package/scripts/utils/__tests__/config-validator.test.ts +19 -19
- package/scripts/utils/__tests__/feature-name-validator.test.ts +13 -13
- package/scripts/utils/__tests__/multi-repo-validator.test.ts +34 -34
- package/scripts/utils/__tests__/project-analyzer.test.ts +542 -0
- package/scripts/utils/__tests__/safe-file-reader.test.ts +208 -0
- package/scripts/utils/__tests__/security-validator.test.ts +33 -33
- package/scripts/utils/__tests__/validation-result.test.ts +112 -0
- package/scripts/utils/aidlc-parser.ts +18 -287
- package/scripts/utils/ci-generator.ts +4 -3
- package/scripts/utils/config-loader.ts +54 -50
- package/scripts/utils/config-validator.ts +89 -80
- package/scripts/utils/docker-requirement-detector.ts +5 -4
- package/scripts/utils/env-config.ts +59 -40
- package/scripts/utils/feature-name-validator.ts +25 -40
- package/scripts/utils/interactive-helpers.ts +24 -132
- package/scripts/utils/language-detector.ts +4 -3
- package/scripts/utils/markdown-parser.ts +18 -373
- package/scripts/utils/multi-repo-validator.ts +27 -28
- package/scripts/utils/project-analyzer.ts +429 -0
- package/scripts/utils/project-detector.ts +6 -5
- package/scripts/utils/project-finder.ts +2 -154
- package/scripts/utils/project-meta.ts +8 -91
- package/scripts/utils/safe-file-reader.ts +158 -0
- package/scripts/utils/security-validator.ts +42 -78
- package/scripts/utils/spec-archiver.ts +7 -6
- package/scripts/utils/spec-updater.ts +12 -6
- package/scripts/utils/tasks-converter.ts +2 -2
- package/scripts/utils/tasks-format-validator.ts +4 -4
- package/scripts/utils/template-applier.ts +4 -3
- package/scripts/utils/types/validation.ts +92 -0
- package/scripts/validate-phase.ts +51 -23
- package/scripts/workflow-orchestrator.ts +16 -251
- package/dist/scripts/mermaid-converter.d.ts.map +0 -1
- package/dist/scripts/mermaid-converter.js.map +0 -1
- package/dist/scripts/resource-dashboard.d.ts +0 -7
- package/dist/scripts/resource-dashboard.d.ts.map +0 -1
- package/dist/scripts/resource-dashboard.js +0 -157
- package/dist/scripts/resource-dashboard.js.map +0 -1
- package/dist/scripts/test-interactive.d.ts.map +0 -1
- package/dist/scripts/test-interactive.js.map +0 -1
- package/dist/scripts/test-new-features.d.ts +0 -5
- package/dist/scripts/test-new-features.d.ts.map +0 -1
- package/dist/scripts/test-new-features.js +0 -148
- package/dist/scripts/test-new-features.js.map +0 -1
- package/dist/scripts/test-spec-generator.d.ts +0 -29
- package/dist/scripts/test-spec-generator.d.ts.map +0 -1
- package/dist/scripts/test-spec-generator.js +0 -493
- package/dist/scripts/test-spec-generator.js.map +0 -1
- package/dist/scripts/utils/confluence-approval.d.ts +0 -46
- package/dist/scripts/utils/confluence-approval.d.ts.map +0 -1
- package/dist/scripts/utils/confluence-approval.js +0 -120
- package/dist/scripts/utils/confluence-approval.js.map +0 -1
- package/dist/scripts/utils/template-finder.d.ts +0 -37
- package/dist/scripts/utils/template-finder.d.ts.map +0 -1
- package/dist/scripts/utils/template-finder.js +0 -58
- package/dist/scripts/utils/template-finder.js.map +0 -1
- package/dist/src/commands/multi-repo-add-repo.d.ts.map +0 -1
- package/dist/src/commands/multi-repo-add-repo.js.map +0 -1
- package/dist/src/commands/multi-repo-ci-status.d.ts.map +0 -1
- package/dist/src/commands/multi-repo-ci-status.js.map +0 -1
- package/dist/src/commands/multi-repo-confluence-sync.d.ts.map +0 -1
- package/dist/src/commands/multi-repo-confluence-sync.js.map +0 -1
- package/dist/src/commands/multi-repo-init.d.ts.map +0 -1
- package/dist/src/commands/multi-repo-init.js.map +0 -1
- package/dist/src/commands/multi-repo-list.d.ts.map +0 -1
- package/dist/src/commands/multi-repo-list.js.map +0 -1
- package/dist/src/commands/multi-repo-test.d.ts.map +0 -1
- package/dist/src/commands/multi-repo-test.js.map +0 -1
- package/dist/src/commands/setup-existing.d.ts +0 -22
- package/dist/src/commands/setup-existing.d.ts.map +0 -1
- package/dist/src/commands/setup-existing.js +0 -606
- package/dist/src/commands/setup-existing.js.map +0 -1
- package/scripts/__tests__/setup-existing-project.test.ts +0 -244
- package/scripts/resource-dashboard.ts +0 -189
- package/scripts/test-new-features.ts +0 -171
- package/scripts/test-spec-generator.ts +0 -570
- package/scripts/utils/confluence-approval.ts +0 -169
- package/scripts/utils/template-finder.ts +0 -69
- /package/dist/scripts/{mermaid-converter.d.ts → dev-tools/mermaid-converter.d.ts} +0 -0
- /package/dist/scripts/{mermaid-converter.js → dev-tools/mermaid-converter.js} +0 -0
- /package/dist/scripts/{test-interactive.d.ts → dev-tools/test-interactive.d.ts} +0 -0
- /package/scripts/{mermaid-converter.ts → dev-tools/mermaid-converter.ts} +0 -0
|
@@ -0,0 +1,285 @@
|
|
|
1
|
+
# 対話的設定ガイド
|
|
2
|
+
|
|
3
|
+
このガイドでは、Michiの対話的設定機能を使って、各種設定ファイルを作成する方法を説明します。
|
|
4
|
+
|
|
5
|
+
## 目次
|
|
6
|
+
|
|
7
|
+
1. [コマンド一覧](#コマンド一覧)
|
|
8
|
+
2. [設定ファイルの種類](#設定ファイルの種類)
|
|
9
|
+
3. [使い方](#使い方)
|
|
10
|
+
4. [3層設定アーキテクチャ](#3層設定アーキテクチャ)
|
|
11
|
+
5. [セキュリティ](#セキュリティ)
|
|
12
|
+
|
|
13
|
+
---
|
|
14
|
+
|
|
15
|
+
## コマンド一覧
|
|
16
|
+
|
|
17
|
+
| コマンド | 作成ファイル | 説明 |
|
|
18
|
+
|---------|-------------|------|
|
|
19
|
+
| `michi init` | `.kiro/`, `.env`(テンプレート), `.michi/config.json` | プロジェクト全体の初期化 |
|
|
20
|
+
| `michi config:init` | すべての設定ファイル(`--all`オプション時) | 対話的に設定ファイルを作成 |
|
|
21
|
+
| `michi config:init --global` | `~/.michi/config.json` | グローバル設定を対話的に作成 |
|
|
22
|
+
| `michi config:init --global-env` | `~/.michi/.env` | グローバル.envを対話的に作成 |
|
|
23
|
+
| `michi config:init --project` | `.michi/config.json` | プロジェクト設定を対話的に作成 |
|
|
24
|
+
| `michi config:init --env` | `.env` | プロジェクト.envを対話的に作成 |
|
|
25
|
+
| `michi config:init --all` | 上記すべて | 全設定ファイルを作成 |
|
|
26
|
+
|
|
27
|
+
### michi init と michi config:init の違い
|
|
28
|
+
|
|
29
|
+
- **`michi init`**: プロジェクトの初期化(.kiroディレクトリ構造、プロジェクトメタデータ作成)
|
|
30
|
+
- `.env`はテンプレートのみ(値の入力なし)
|
|
31
|
+
- `.michi/config.json`はグローバル設定をコピー、またはデフォルト値を使用
|
|
32
|
+
|
|
33
|
+
- **`michi config:init`**: 設定ファイルの対話的作成(値を入力)
|
|
34
|
+
- `.env`の各項目を対話的に入力(APIトークンはパスワード非表示)
|
|
35
|
+
- `.michi/config.json`も対話的に作成可能
|
|
36
|
+
|
|
37
|
+
---
|
|
38
|
+
|
|
39
|
+
## 設定ファイルの種類
|
|
40
|
+
|
|
41
|
+
### 1. グローバル設定 (`~/.michi/config.json`)
|
|
42
|
+
|
|
43
|
+
すべてのプロジェクトに適用される共通設定です。
|
|
44
|
+
|
|
45
|
+
**含まれる内容:**
|
|
46
|
+
- Confluence設定(ページ作成粒度)
|
|
47
|
+
- JIRA設定(Epic作成、ストーリー作成粒度、ストーリーポイント)
|
|
48
|
+
- ワークフロー設定(有効なフェーズ)
|
|
49
|
+
|
|
50
|
+
**作成方法:**
|
|
51
|
+
```bash
|
|
52
|
+
michi config:init --global
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
### 2. グローバル環境変数 (`~/.michi/.env`)
|
|
56
|
+
|
|
57
|
+
すべてのプロジェクトで使用する環境変数です(機密情報)。
|
|
58
|
+
|
|
59
|
+
**含まれる内容:**
|
|
60
|
+
- Atlassian連携(URL、Email、APIトークン)
|
|
61
|
+
- GitHub連携(Organization、Personalトークン)
|
|
62
|
+
- Confluence Space設定
|
|
63
|
+
- JIRAプロジェクトキー
|
|
64
|
+
|
|
65
|
+
**作成方法:**
|
|
66
|
+
```bash
|
|
67
|
+
michi config:init --global-env
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
### 3. プロジェクト設定 (`.michi/config.json`)
|
|
71
|
+
|
|
72
|
+
プロジェクト固有の設定です。グローバル設定を上書きできます。
|
|
73
|
+
|
|
74
|
+
**作成方法:**
|
|
75
|
+
```bash
|
|
76
|
+
michi config:init --project
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
### 4. プロジェクト環境変数 (`.env`)
|
|
80
|
+
|
|
81
|
+
プロジェクト固有の環境変数です。グローバル環境変数を上書きできます。
|
|
82
|
+
|
|
83
|
+
**作成方法:**
|
|
84
|
+
```bash
|
|
85
|
+
michi config:init --env
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
---
|
|
89
|
+
|
|
90
|
+
## 使い方
|
|
91
|
+
|
|
92
|
+
### 基本的な使い方
|
|
93
|
+
|
|
94
|
+
#### 1. プロジェクト初期化時
|
|
95
|
+
|
|
96
|
+
プロジェクト新規作成時は、まず `michi init` でプロジェクト構造を作成します。
|
|
97
|
+
|
|
98
|
+
```bash
|
|
99
|
+
cd your-project
|
|
100
|
+
michi init
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
`.env` と `.michi/config.json` はテンプレートまたはデフォルト値で作成されます。
|
|
104
|
+
|
|
105
|
+
#### 2. 機密情報を含む .env の作成
|
|
106
|
+
|
|
107
|
+
APIトークンなどの機密情報を対話的に入力して、`.env` を作成します。
|
|
108
|
+
|
|
109
|
+
```bash
|
|
110
|
+
michi config:init --env
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
**入力例:**
|
|
114
|
+
```
|
|
115
|
+
========================================
|
|
116
|
+
.env Interactive Setup
|
|
117
|
+
========================================
|
|
118
|
+
|
|
119
|
+
設定ファイル: /path/to/your-project/.env
|
|
120
|
+
|
|
121
|
+
=== Atlassian連携設定 ===
|
|
122
|
+
|
|
123
|
+
Atlassian URL (空白でスキップ): https://your-domain.atlassian.net
|
|
124
|
+
Atlassian Email: your-email@company.com
|
|
125
|
+
Atlassian API Token: ********** (入力は非表示)
|
|
126
|
+
|
|
127
|
+
=== Confluence Space設定 ===
|
|
128
|
+
|
|
129
|
+
PRD Space Key (空白でスキップ): PRD
|
|
130
|
+
QA Space Key (空白でスキップ): QA
|
|
131
|
+
Release Space Key (空白でスキップ): RELEASE
|
|
132
|
+
|
|
133
|
+
=== JIRA設定 ===
|
|
134
|
+
|
|
135
|
+
JIRA Project Keys (カンマ区切り、空白でスキップ): PROJ1,PROJ2
|
|
136
|
+
|
|
137
|
+
=== GitHub連携設定 ===
|
|
138
|
+
|
|
139
|
+
GitHub Organization (空白でスキップ): your-org
|
|
140
|
+
GitHub Personal Access Token: ********** (入力は非表示)
|
|
141
|
+
|
|
142
|
+
✅ .envファイルを作成しました:
|
|
143
|
+
/path/to/your-project/.env
|
|
144
|
+
```
|
|
145
|
+
|
|
146
|
+
#### 3. グローバル設定の作成
|
|
147
|
+
|
|
148
|
+
複数のプロジェクトで共通の設定を使う場合、グローバル設定を作成します。
|
|
149
|
+
|
|
150
|
+
```bash
|
|
151
|
+
michi config:init --global
|
|
152
|
+
```
|
|
153
|
+
|
|
154
|
+
#### 4. すべての設定ファイルを一度に作成
|
|
155
|
+
|
|
156
|
+
```bash
|
|
157
|
+
michi config:init --all
|
|
158
|
+
```
|
|
159
|
+
|
|
160
|
+
上記コマンドは、以下の順序で実行されます:
|
|
161
|
+
1. `~/.michi/.env` 作成
|
|
162
|
+
2. `.env` 作成
|
|
163
|
+
3. `~/.michi/config.json` 作成
|
|
164
|
+
4. `.michi/config.json` 作成
|
|
165
|
+
|
|
166
|
+
---
|
|
167
|
+
|
|
168
|
+
## 3層設定アーキテクチャ
|
|
169
|
+
|
|
170
|
+
Michiは、3層の設定アーキテクチャを採用しています。
|
|
171
|
+
|
|
172
|
+
### 読み込み優先順位(低 → 高)
|
|
173
|
+
|
|
174
|
+
1. **デフォルト設定**(内蔵)
|
|
175
|
+
2. **グローバル設定** (`~/.michi/config.json`)
|
|
176
|
+
3. **グローバル環境変数** (`~/.michi/.env`)
|
|
177
|
+
4. **プロジェクト設定** (`.michi/config.json`)
|
|
178
|
+
5. **プロジェクト環境変数** (`.env`)
|
|
179
|
+
|
|
180
|
+
**例:**
|
|
181
|
+
- グローバル設定で `ATLASSIAN_URL=https://global.atlassian.net` を設定
|
|
182
|
+
- プロジェクト環境変数で `ATLASSIAN_URL=https://project.atlassian.net` を設定
|
|
183
|
+
- → プロジェクト環境変数の値 (`https://project.atlassian.net`) が使用される
|
|
184
|
+
|
|
185
|
+
### 設定の上書きルール
|
|
186
|
+
|
|
187
|
+
- 上位の設定(番号が大きい)が下位の設定を上書きします
|
|
188
|
+
- プロジェクト固有の設定が必要な場合は、プロジェクト設定/環境変数で上書き
|
|
189
|
+
- 共通設定はグローバル設定/環境変数で管理
|
|
190
|
+
|
|
191
|
+
---
|
|
192
|
+
|
|
193
|
+
## セキュリティ
|
|
194
|
+
|
|
195
|
+
### .envファイルの機密情報入力
|
|
196
|
+
|
|
197
|
+
APIトークンなどの機密情報は、入力時に非表示になります(`@inquirer/prompts`使用)。
|
|
198
|
+
|
|
199
|
+
```bash
|
|
200
|
+
Atlassian API Token: ********** (入力は見えません)
|
|
201
|
+
GitHub Personal Access Token: ********** (入力は見えません)
|
|
202
|
+
```
|
|
203
|
+
|
|
204
|
+
### ファイルパーミッション
|
|
205
|
+
|
|
206
|
+
`.env` ファイルは、セキュリティのため、所有者のみ読み書き可能な権限(`0o600`)で作成されます。
|
|
207
|
+
|
|
208
|
+
```bash
|
|
209
|
+
ls -la .env
|
|
210
|
+
-rw------- 1 user user 512 Jan 1 12:00 .env
|
|
211
|
+
```
|
|
212
|
+
|
|
213
|
+
### .gitignore
|
|
214
|
+
|
|
215
|
+
`.env` ファイルは機密情報を含むため、必ず `.gitignore` に追加してください。
|
|
216
|
+
|
|
217
|
+
```
|
|
218
|
+
# .gitignore
|
|
219
|
+
.env
|
|
220
|
+
```
|
|
221
|
+
|
|
222
|
+
**注意:** `.env.example` はGitで管理しても問題ありませんが、実際の値は含めないでください。
|
|
223
|
+
|
|
224
|
+
---
|
|
225
|
+
|
|
226
|
+
## 既存機能との関係
|
|
227
|
+
|
|
228
|
+
### `michi init` との使い分け
|
|
229
|
+
|
|
230
|
+
| タイミング | コマンド | 目的 |
|
|
231
|
+
|-----------|---------|------|
|
|
232
|
+
| プロジェクト新規作成時 | `michi init` | プロジェクト構造の初期化 |
|
|
233
|
+
| .envに値を入力したい | `michi config:init --env` | 機密情報を対話的に入力 |
|
|
234
|
+
| グローバル設定を作成 | `michi config:init --global` | 複数プロジェクトで共通設定 |
|
|
235
|
+
|
|
236
|
+
### 過去の `npm run config:global` との関係
|
|
237
|
+
|
|
238
|
+
以前は `npm run config:global` を使用していましたが、`michi config:init --global` に統合されました。
|
|
239
|
+
|
|
240
|
+
**移行方法:**
|
|
241
|
+
```bash
|
|
242
|
+
# 旧コマンド
|
|
243
|
+
npm run config:global
|
|
244
|
+
|
|
245
|
+
# 新コマンド
|
|
246
|
+
michi config:init --global
|
|
247
|
+
```
|
|
248
|
+
|
|
249
|
+
---
|
|
250
|
+
|
|
251
|
+
## トラブルシューティング
|
|
252
|
+
|
|
253
|
+
### Q1. `.env` ファイルが既に存在する場合は?
|
|
254
|
+
|
|
255
|
+
上書き確認が表示されます。
|
|
256
|
+
|
|
257
|
+
```
|
|
258
|
+
⚠️ 既存の.envファイルが見つかりました。上書きしますか? (y/N):
|
|
259
|
+
```
|
|
260
|
+
|
|
261
|
+
- `y` を入力すると上書き
|
|
262
|
+
- `N` または Enter で中止
|
|
263
|
+
|
|
264
|
+
### Q2. グローバル設定とプロジェクト設定の違いは?
|
|
265
|
+
|
|
266
|
+
- **グローバル設定** (`~/.michi/config.json`): すべてのプロジェクトに適用
|
|
267
|
+
- **プロジェクト設定** (`.michi/config.json`): プロジェクト固有の設定(グローバル設定を上書き)
|
|
268
|
+
|
|
269
|
+
### Q3. パスワード入力時、入力が見えない
|
|
270
|
+
|
|
271
|
+
セキュリティのため、APIトークンやパスワードは入力時に非表示になります。
|
|
272
|
+
|
|
273
|
+
入力後、Enterを押してください。
|
|
274
|
+
|
|
275
|
+
---
|
|
276
|
+
|
|
277
|
+
## 関連ドキュメント
|
|
278
|
+
|
|
279
|
+
- [Atlassian連携ガイド](./atlassian-integration.md)
|
|
280
|
+
- [アーキテクチャガイド](../architecture.md)
|
|
281
|
+
- [設定ファイルリファレンス](../reference/config.md)
|
|
282
|
+
|
|
283
|
+
---
|
|
284
|
+
|
|
285
|
+
**更新日:** 2026-01-04
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
# オニオンアーキテクチャ Phase 0 完了レポート
|
|
2
|
+
|
|
3
|
+
**日付**: 2025-12-28
|
|
4
|
+
**タスク**: Task 1.6 - コード削減効果の検証
|
|
5
|
+
**ステータス**: ✅ 完了
|
|
6
|
+
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
## 📊 Phase 0 成果サマリー
|
|
10
|
+
|
|
11
|
+
### コード削減
|
|
12
|
+
- **純削減行数**: 1,132行
|
|
13
|
+
- **目標**: 約1,600行
|
|
14
|
+
- **達成率**: 71%
|
|
15
|
+
|
|
16
|
+
### 変更統計
|
|
17
|
+
- 変更ファイル数: 67
|
|
18
|
+
- 追加行数: 2,410
|
|
19
|
+
- 削除行数: 3,542
|
|
20
|
+
|
|
21
|
+
---
|
|
22
|
+
|
|
23
|
+
## ✅ 完了タスク一覧
|
|
24
|
+
|
|
25
|
+
### Task 1.1: 非推奨コマンドと完全未使用ファイルの削除
|
|
26
|
+
- setup-existing.ts (794行) 削除
|
|
27
|
+
- 未使用ファイル5件削除 (~400行)
|
|
28
|
+
- コミット: 419347b
|
|
29
|
+
|
|
30
|
+
### Task 1.2: 未使用エクスポートの削除
|
|
31
|
+
- 5つの未使用関数を削除
|
|
32
|
+
- コミット: 419347b
|
|
33
|
+
|
|
34
|
+
### Task 1.3: ValidationResult インターフェースの統合
|
|
35
|
+
- Result<T, E>型に統一
|
|
36
|
+
- PR #148 マージ完了
|
|
37
|
+
|
|
38
|
+
### Task 1.4: project検出系ユーティリティの統合
|
|
39
|
+
- ProjectAnalyzer クラスに統合
|
|
40
|
+
- PR #149 マージ完了
|
|
41
|
+
|
|
42
|
+
### Task 1.5: ファイル読み込み処理の統合
|
|
43
|
+
- 31ファイルをsafeReadFileOrThrowに移行
|
|
44
|
+
- PR #150 マージ完了
|
|
45
|
+
|
|
46
|
+
### Task 1.6: コード削減効果の検証
|
|
47
|
+
- ✅ 削減行数測定: 1,132行
|
|
48
|
+
- ✅ 全テスト合格: 816 passed, 5 skipped
|
|
49
|
+
- ✅ Multi-Repo機能確認: 正常動作
|
|
50
|
+
- ✅ Phase 0 検証完了
|
|
51
|
+
|
|
52
|
+
---
|
|
53
|
+
|
|
54
|
+
## 🎯 品質指標
|
|
55
|
+
|
|
56
|
+
### テスト結果
|
|
57
|
+
```
|
|
58
|
+
Test Files: 48 passed | 1 skipped (49)
|
|
59
|
+
Tests: 816 passed | 5 skipped (821)
|
|
60
|
+
Duration: 4.63s
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
### ビルド結果
|
|
64
|
+
- TypeScript compilation: ✅ Success
|
|
65
|
+
- Static assets copy: ✅ Success
|
|
66
|
+
- Permissions: ✅ Success
|
|
67
|
+
|
|
68
|
+
### Multi-Repo機能
|
|
69
|
+
- Multi-Repo テスト: ✅ 全合格
|
|
70
|
+
- Multi-Repo コマンド: ✅ ビルド成功
|
|
71
|
+
- セキュリティテスト: ✅ 全合格
|
|
72
|
+
|
|
73
|
+
---
|
|
74
|
+
|
|
75
|
+
## 📋 次のステップ
|
|
76
|
+
|
|
77
|
+
**Phase 1: 基盤整備 + scripts/分類(Week 2-3)**
|
|
78
|
+
|
|
79
|
+
準備完了。以下のタスクに進めます:
|
|
80
|
+
- Task 2.1: 新ディレクトリ構造の作成
|
|
81
|
+
- Task 2.2: パスエイリアスの追加
|
|
82
|
+
- Task 2.3: ts-archのインストールと基本設定
|
|
83
|
+
|
|
84
|
+
---
|
|
85
|
+
|
|
86
|
+
## 📝 備考
|
|
87
|
+
|
|
88
|
+
Phase 0の全タスクが完了し、コードベース簡素化の基盤が整いました。
|
|
89
|
+
次のフェーズでオニオンアーキテクチャの層構造を構築します。
|
|
90
|
+
|
|
91
|
+
詳細な検証レポートは `.kiro/specs/onion-architecture/phase0-verification.md` を参照してください。
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sk8metal/michi-cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.20.0",
|
|
4
4
|
"description": "Managed Intelligent Comprehensive Hub for Integration - AI-driven development workflow automation",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -42,11 +42,9 @@
|
|
|
42
42
|
"mcp.json.example"
|
|
43
43
|
],
|
|
44
44
|
"scripts": {
|
|
45
|
-
"build": "tsc && node scripts/copy-static-assets.js",
|
|
46
|
-
"postbuild": "node scripts/set-permissions.js",
|
|
45
|
+
"build": "tsc && node scripts/build/copy-static-assets.js",
|
|
46
|
+
"postbuild": "node scripts/build/set-permissions.js",
|
|
47
47
|
"prepare": "husky",
|
|
48
|
-
"michi:setup:claude": "tsx src/cli.ts setup-existing --claude",
|
|
49
|
-
"michi:setup:claude-agent": "tsx src/cli.ts setup-existing --claude-agent",
|
|
50
48
|
"confluence:sync": "tsx scripts/confluence-sync.ts",
|
|
51
49
|
"jira:sync": "tsx scripts/jira-sync.ts",
|
|
52
50
|
"github:create-pr": "tsx scripts/pr-automation.ts",
|
|
@@ -61,11 +59,12 @@
|
|
|
61
59
|
"test:package": "bash scripts/test-npm-package.sh",
|
|
62
60
|
"config:global": "tsx scripts/config-global.ts",
|
|
63
61
|
"config:validate": "tsx scripts/utils/config-validator.ts",
|
|
64
|
-
"test:interactive": "tsx scripts/test-interactive.ts",
|
|
62
|
+
"test:interactive": "tsx scripts/dev-tools/test-interactive.ts",
|
|
65
63
|
"test": "vitest",
|
|
66
64
|
"test:run": "vitest --run",
|
|
67
65
|
"test:ui": "vitest --ui",
|
|
68
66
|
"test:coverage": "vitest --run --coverage",
|
|
67
|
+
"test:arch": "vitest --run src/__tests__/arch/",
|
|
69
68
|
"test:integration:setup": "vitest --run src/__tests__/integration/setup",
|
|
70
69
|
"test:coverage:setup": "vitest --run --coverage --coverage.thresholds.lines=0 --coverage.thresholds.functions=0 --coverage.thresholds.branches=0 --coverage.thresholds.statements=0 src/__tests__/integration/setup",
|
|
71
70
|
"lint": "eslint .",
|
|
@@ -97,6 +96,7 @@
|
|
|
97
96
|
"husky": "^9.1.7",
|
|
98
97
|
"lint-staged": "^16.2.6",
|
|
99
98
|
"prettier": "^3.1.1",
|
|
99
|
+
"ts-arch-kit": "^2.4.0",
|
|
100
100
|
"tsx": "^4.7.0",
|
|
101
101
|
"typescript": "^5.3.3",
|
|
102
102
|
"typescript-eslint": "^8.46.4",
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
# scripts/ - Build and Development Tools
|
|
2
|
+
|
|
3
|
+
このディレクトリはビルドツールおよび開発ツール専用です。プロダクションコードは含めないでください。
|
|
4
|
+
|
|
5
|
+
## ディレクトリ構造
|
|
6
|
+
|
|
7
|
+
```
|
|
8
|
+
scripts/
|
|
9
|
+
├── build/ # ビルド関連スクリプト
|
|
10
|
+
│ ├── copy-static-assets.js # 静的ファイルコピー
|
|
11
|
+
│ └── set-permissions.js # 実行権限設定
|
|
12
|
+
├── dev-tools/ # 開発支援ツール
|
|
13
|
+
│ ├── test-interactive.ts # 対話型テスト
|
|
14
|
+
│ └── mermaid-converter.ts # Mermaid図変換ユーティリティ
|
|
15
|
+
├── utils/ # 共通ユーティリティ
|
|
16
|
+
│ ├── env-loader.js # 環境変数読み込み
|
|
17
|
+
│ ├── config-loader.ts # 設定ファイル読み込み
|
|
18
|
+
│ ├── safe-file-reader.ts # 安全なファイル読み込み
|
|
19
|
+
│ └── ...
|
|
20
|
+
├── config/ # 設定ファイル・スキーマ
|
|
21
|
+
└── constants/ # 定数定義
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
## スクリプト分類
|
|
25
|
+
|
|
26
|
+
### Entry Points(エントリーポイント)
|
|
27
|
+
|
|
28
|
+
プロダクションコード(`src/`)へのCLIエントリーポイント。実装本体は`src/`に配置されています。
|
|
29
|
+
|
|
30
|
+
- `confluence-sync.ts` → `src/presentation/commands/confluence/`
|
|
31
|
+
- `jira-sync.ts` → `src/presentation/commands/jira/`
|
|
32
|
+
- `workflow-orchestrator.ts` → `src/presentation/commands/workflow/`
|
|
33
|
+
- `github-actions-client.ts` → `src/infrastructure/external-apis/github/`
|
|
34
|
+
|
|
35
|
+
**使用例:**
|
|
36
|
+
```bash
|
|
37
|
+
npm run confluence:sync <feature-name> [docType]
|
|
38
|
+
npm run jira:sync <feature-name>
|
|
39
|
+
npm run workflow:run -- --feature <feature-name>
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
### Development Tools(開発ツール)
|
|
43
|
+
|
|
44
|
+
開発・テスト支援のためのスタンドアロンツール。
|
|
45
|
+
|
|
46
|
+
- `config-global.ts` - グローバル設定ファイル作成・更新
|
|
47
|
+
- `pre-flight-check.ts` - 実行前環境チェック
|
|
48
|
+
- `validate-phase.ts` - フェーズ完了バリデーション
|
|
49
|
+
- `test-workflow-stages.ts` - ワークフロー新規ステージテスト
|
|
50
|
+
- `health-check-service.ts` - 依存サービス状態確認
|
|
51
|
+
- `test-execution-generator.ts` - テスト実行ファイル生成
|
|
52
|
+
- `test-script-runner.ts` - Multi-Repoテストスクリプト実行
|
|
53
|
+
|
|
54
|
+
**使用例:**
|
|
55
|
+
```bash
|
|
56
|
+
npm run config:global
|
|
57
|
+
npm run preflight
|
|
58
|
+
npm run validate:phase <feature-name> <phase>
|
|
59
|
+
npm run test:interactive
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
### Workflow Automation(ワークフロー自動化)
|
|
63
|
+
|
|
64
|
+
開発ワークフロー自動化のためのツール。
|
|
65
|
+
|
|
66
|
+
- `phase-runner.ts` - フェーズ実行オーケストレーション
|
|
67
|
+
- `spec-impl-workflow.ts` - spec-impl統合ワークフロー管理
|
|
68
|
+
- `pr-automation.ts` - GitHub PR自動作成
|
|
69
|
+
- `multi-project-estimate.ts` - マルチプロジェクト見積もり集計
|
|
70
|
+
|
|
71
|
+
**使用例:**
|
|
72
|
+
```bash
|
|
73
|
+
npm run phase:run -- --feature <feature-name> --phase <phase>
|
|
74
|
+
npm run github:create-pr
|
|
75
|
+
npm run multi-estimate
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
### Utilities(ユーティリティ)
|
|
79
|
+
|
|
80
|
+
変換・フォーマット処理。
|
|
81
|
+
|
|
82
|
+
- `markdown-to-confluence.ts` - Markdown → Confluence Storage Format変換
|
|
83
|
+
|
|
84
|
+
**使用例:**
|
|
85
|
+
```bash
|
|
86
|
+
npm run markdown:convert <input.md> <output.html>
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
## 重要な原則
|
|
90
|
+
|
|
91
|
+
### ❌ scripts/に配置してはいけないもの
|
|
92
|
+
|
|
93
|
+
- **プロダクションコード**: ビジネスロジック、ドメインモデル、アプリケーションサービス
|
|
94
|
+
- → `src/domain/`、`src/application/`、`src/infrastructure/`、`src/presentation/` に配置
|
|
95
|
+
- **再利用可能なライブラリコード**: 複数の機能で使われる共通コード
|
|
96
|
+
- → `src/` の適切な層に配置
|
|
97
|
+
|
|
98
|
+
### ✅ scripts/に配置すべきもの
|
|
99
|
+
|
|
100
|
+
- **ビルドツール**: コンパイル、アセットコピー、パーミッション設定など
|
|
101
|
+
- **開発ツール**: テストヘルパー、対話型ツール、デバッグユーティリティ
|
|
102
|
+
- **自動化スクリプト**: CI/CD、ワークフロー、デプロイメント
|
|
103
|
+
- **Entry Points**: 本体が`src/`にある機能へのCLIラッパー
|
|
104
|
+
|
|
105
|
+
## 実装ガイドライン
|
|
106
|
+
|
|
107
|
+
### 新しいスクリプトを追加する場合
|
|
108
|
+
|
|
109
|
+
1. **配置場所を決定**:
|
|
110
|
+
- ビルドツール → `scripts/build/`
|
|
111
|
+
- 開発ツール → `scripts/dev-tools/`
|
|
112
|
+
- 共通ユーティリティ → `scripts/utils/`
|
|
113
|
+
|
|
114
|
+
2. **ファイルヘッダーを記載**:
|
|
115
|
+
```typescript
|
|
116
|
+
/**
|
|
117
|
+
* スクリプト名
|
|
118
|
+
* 簡潔な説明(1-2行)
|
|
119
|
+
*/
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
3. **Entry Pointの場合**:
|
|
123
|
+
```typescript
|
|
124
|
+
/**
|
|
125
|
+
* 機能名 - Entry Point
|
|
126
|
+
* The actual logic has been moved to src/path/to/implementation/
|
|
127
|
+
*/
|
|
128
|
+
```
|
|
129
|
+
|
|
130
|
+
4. **package.jsonにスクリプトを追加**:
|
|
131
|
+
```json
|
|
132
|
+
"scripts": {
|
|
133
|
+
"your-script": "tsx scripts/path/to/script.ts"
|
|
134
|
+
}
|
|
135
|
+
```
|
|
136
|
+
|
|
137
|
+
### コーディング規約
|
|
138
|
+
|
|
139
|
+
- **環境変数**: `loadEnv()`を使用
|
|
140
|
+
- **ファイル読み込み**: `safeReadFileOrThrow()`を使用
|
|
141
|
+
- **設定読み込み**: `loadConfig()`を使用
|
|
142
|
+
- **エラーハンドリング**: 適切なエラーメッセージとexit code
|
|
143
|
+
|
|
144
|
+
## 関連ドキュメント
|
|
145
|
+
|
|
146
|
+
- [Onion Architecture設計書](../.kiro/specs/onion-architecture/design.md)
|
|
147
|
+
- [プロジェクト構成](../.kiro/steering/structure.md)
|
|
148
|
+
- [開発ワークフロー](../.kiro/steering/workflow.md)
|