aiwf 0.3.23 → 0.4.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/.claude-plugin/marketplace.json +146 -0
- package/CHANGELOG.md +49 -1
- package/README.ko.md +118 -309
- package/README.md +68 -254
- package/docs/modernization/BROWNFIELD-GREENFIELD.ko.md +105 -0
- package/docs/modernization/CLAUDE-PLAN-REVIEW-2026-10-03.ko.md +77 -0
- package/docs/modernization/CLI-PRODUCTIVITY-REVIEWED-2026-10-03.ko.md +177 -0
- package/docs/modernization/CLI-PRODUCTIVITY.ko.md +193 -0
- package/docs/modernization/CORE-PACKAGE-PLAN.md +7 -0
- package/docs/modernization/DEEP-REVERSE-ENGINEERING.ko.md +88 -0
- package/docs/modernization/DELEGATION-OPTIONAL.ko.md +57 -0
- package/docs/modernization/DIRECTION.ko.md +56 -0
- package/docs/modernization/FULL-TEST-2026-10-03.md +49 -0
- package/docs/modernization/LEGACY-REMOVAL-PLAN.md +9 -0
- package/docs/modernization/PILOT-RESULT-2026-10-03.ko.md +85 -0
- package/docs/modernization/PILOT-UC-001.ko.md +79 -0
- package/docs/modernization/PLAN.md +28 -0
- package/docs/modernization/SKILLS.ko.md +105 -0
- package/docs/modernization/SPRINTABLE.ko.md +47 -0
- package/docs/modernization/SYNC-DOCS-VALIDATION-2026-10-04.ko.md +38 -0
- package/docs/modernization/VALIDATION.md +79 -0
- package/docs/modernization/evidence/example-review-packet.json +115 -0
- package/docs/modernization/evidence/example-spec-pin.json +48 -0
- package/docs/modernization/evidence/full-test-20261003/claude-lint.md +22 -0
- package/docs/modernization/evidence/full-test-20261003/claude-review-retry.md +56 -0
- package/docs/modernization/evidence/full-test-20261003/codex-review-packet.json +159 -0
- package/docs/modernization/evidence/full-test-20261003/src/expense.mjs +40 -0
- package/docs/modernization/evidence/full-test-20261003/summary.json +106 -0
- package/docs/modernization/evidence/full-test-20261003/tests/expense.test.mjs +61 -0
- package/docs/modernization/evidence/local-pilot-20261003/README.ko.md +40 -0
- package/docs/modernization/evidence/local-pilot-20261003/execution.json +1055 -0
- package/docs/modernization/evidence/local-pilot-20261003/maintenance/dependencies.json +24 -0
- package/docs/modernization/evidence/local-pilot-20261003/maintenance/dependencies.stderr.txt +0 -0
- package/docs/modernization/evidence/local-pilot-20261003/maintenance/dependencies.stdout.txt +5 -0
- package/docs/modernization/evidence/local-pilot-20261003/maintenance/docs.json +24 -0
- package/docs/modernization/evidence/local-pilot-20261003/maintenance/docs.stderr.txt +0 -0
- package/docs/modernization/evidence/local-pilot-20261003/maintenance/docs.stdout.txt +6 -0
- package/docs/modernization/evidence/local-pilot-20261003/maintenance/example.json +24 -0
- package/docs/modernization/evidence/local-pilot-20261003/maintenance/example.stderr.txt +0 -0
- package/docs/modernization/evidence/local-pilot-20261003/maintenance/example.stdout.txt +5 -0
- package/docs/modernization/evidence/local-pilot-20261003/maintenance/local-docs.json +24 -0
- package/docs/modernization/evidence/local-pilot-20261003/maintenance/local-docs.stderr.txt +0 -0
- package/docs/modernization/evidence/local-pilot-20261003/maintenance/local-docs.stdout.txt +6 -0
- package/docs/modernization/evidence/local-pilot-20261003/maintenance/node.json +23 -0
- package/docs/modernization/evidence/local-pilot-20261003/maintenance/node.stderr.txt +0 -0
- package/docs/modernization/evidence/local-pilot-20261003/maintenance/node.stdout.txt +535 -0
- package/docs/modernization/evidence/local-pilot-20261003/maintenance/provenance.json +24 -0
- package/docs/modernization/evidence/local-pilot-20261003/maintenance/provenance.stderr.txt +0 -0
- package/docs/modernization/evidence/local-pilot-20261003/maintenance/provenance.stdout.txt +5 -0
- package/docs/modernization/evidence/local-pilot-20261003/maintenance/readme-replay.json +24 -0
- package/docs/modernization/evidence/local-pilot-20261003/maintenance/readme-replay.stderr.txt +0 -0
- package/docs/modernization/evidence/local-pilot-20261003/maintenance/readme-replay.stdout.txt +273 -0
- package/docs/modernization/evidence/local-pilot-20261003/maintenance/upstream.json +24 -0
- package/docs/modernization/evidence/local-pilot-20261003/maintenance/upstream.stderr.txt +0 -0
- package/docs/modernization/evidence/local-pilot-20261003/maintenance/upstream.stdout.txt +7 -0
- package/docs/modernization/evidence/local-pilot-20261003/project/artifacts/archive-service.stderr.txt +0 -0
- package/docs/modernization/evidence/local-pilot-20261003/project/artifacts/archive-service.stdout.txt +148 -0
- package/docs/modernization/evidence/local-pilot-20261003/project/artifacts/archive-structure.stderr.txt +0 -0
- package/docs/modernization/evidence/local-pilot-20261003/project/artifacts/archive-structure.stdout.txt +9 -0
- package/docs/modernization/evidence/local-pilot-20261003/project/artifacts/baseline-check.stderr.txt +0 -0
- package/docs/modernization/evidence/local-pilot-20261003/project/artifacts/baseline-check.stdout.txt +67 -0
- package/docs/modernization/evidence/local-pilot-20261003/project/artifacts/baseline-evidence.json +34 -0
- package/docs/modernization/evidence/local-pilot-20261003/project/artifacts/baseline-packet.json +128 -0
- package/docs/modernization/evidence/local-pilot-20261003/project/artifacts/baseline-packet.stderr.txt +0 -0
- package/docs/modernization/evidence/local-pilot-20261003/project/artifacts/baseline-packet.stdout.txt +128 -0
- package/docs/modernization/evidence/local-pilot-20261003/project/artifacts/baseline-pin.json +54 -0
- package/docs/modernization/evidence/local-pilot-20261003/project/artifacts/baseline-pin.stderr.txt +0 -0
- package/docs/modernization/evidence/local-pilot-20261003/project/artifacts/baseline-pin.stdout.txt +60 -0
- package/docs/modernization/evidence/local-pilot-20261003/project/artifacts/baseline-readback.json +15 -0
- package/docs/modernization/evidence/local-pilot-20261003/project/artifacts/baseline-service.stderr.txt +0 -0
- package/docs/modernization/evidence/local-pilot-20261003/project/artifacts/baseline-service.stdout.txt +82 -0
- package/docs/modernization/evidence/local-pilot-20261003/project/artifacts/baseline-structure.stderr.txt +0 -0
- package/docs/modernization/evidence/local-pilot-20261003/project/artifacts/baseline-structure.stdout.txt +9 -0
- package/docs/modernization/evidence/local-pilot-20261003/project/artifacts/changed-check.stderr.txt +0 -0
- package/docs/modernization/evidence/local-pilot-20261003/project/artifacts/changed-check.stdout.txt +79 -0
- package/docs/modernization/evidence/local-pilot-20261003/project/artifacts/changed-packet-refused.stderr.txt +0 -0
- package/docs/modernization/evidence/local-pilot-20261003/project/artifacts/changed-packet-refused.stdout.txt +7 -0
- package/docs/modernization/evidence/local-pilot-20261003/project/artifacts/changed-pin-refresh.stderr.txt +0 -0
- package/docs/modernization/evidence/local-pilot-20261003/project/artifacts/changed-pin-refresh.stdout.txt +66 -0
- package/docs/modernization/evidence/local-pilot-20261003/project/artifacts/changed-pin.json +60 -0
- package/docs/modernization/evidence/local-pilot-20261003/project/artifacts/changed-structure.stderr.txt +0 -0
- package/docs/modernization/evidence/local-pilot-20261003/project/artifacts/changed-structure.stdout.txt +9 -0
- package/docs/modernization/evidence/local-pilot-20261003/project/artifacts/final-check.stderr.txt +0 -0
- package/docs/modernization/evidence/local-pilot-20261003/project/artifacts/final-check.stdout.txt +73 -0
- package/docs/modernization/evidence/local-pilot-20261003/project/artifacts/final-evidence.json +34 -0
- package/docs/modernization/evidence/local-pilot-20261003/project/artifacts/final-packet.json +134 -0
- package/docs/modernization/evidence/local-pilot-20261003/project/artifacts/final-packet.stderr.txt +0 -0
- package/docs/modernization/evidence/local-pilot-20261003/project/artifacts/final-packet.stdout.txt +134 -0
- package/docs/modernization/evidence/local-pilot-20261003/project/artifacts/final-readback.json +15 -0
- package/docs/modernization/evidence/local-pilot-20261003/project/artifacts/final-service.stderr.txt +0 -0
- package/docs/modernization/evidence/local-pilot-20261003/project/artifacts/final-service.stdout.txt +148 -0
- package/docs/modernization/evidence/local-pilot-20261003/project/artifacts/final-structure.stderr.txt +0 -0
- package/docs/modernization/evidence/local-pilot-20261003/project/artifacts/final-structure.stdout.txt +9 -0
- package/docs/modernization/evidence/local-pilot-20261003/project/artifacts/node-version.stderr.txt +0 -0
- package/docs/modernization/evidence/local-pilot-20261003/project/artifacts/node-version.stdout.txt +1 -0
- package/docs/modernization/evidence/local-pilot-20261003/project/artifacts/python-version.stderr.txt +0 -0
- package/docs/modernization/evidence/local-pilot-20261003/project/artifacts/python-version.stdout.txt +1 -0
- package/docs/modernization/evidence/local-pilot-20261003/project/artifacts/red-evidence.json +34 -0
- package/docs/modernization/evidence/local-pilot-20261003/project/artifacts/red-packet.json +134 -0
- package/docs/modernization/evidence/local-pilot-20261003/project/artifacts/red-packet.stderr.txt +0 -0
- package/docs/modernization/evidence/local-pilot-20261003/project/artifacts/red-packet.stdout.txt +134 -0
- package/docs/modernization/evidence/local-pilot-20261003/project/artifacts/red-readback.json +15 -0
- package/docs/modernization/evidence/local-pilot-20261003/project/artifacts/red-service.stderr.txt +0 -0
- package/docs/modernization/evidence/local-pilot-20261003/project/artifacts/red-service.stdout.txt +266 -0
- package/docs/modernization/evidence/local-pilot-20261003/project/artifacts/red-structure.stderr.txt +0 -0
- package/docs/modernization/evidence/local-pilot-20261003/project/artifacts/red-structure.stdout.txt +9 -0
- package/docs/modernization/evidence/local-pilot-20261003/project/docs/entity_model.md +33 -0
- package/docs/modernization/evidence/local-pilot-20261003/project/docs/glossary.md +9 -0
- package/docs/modernization/evidence/local-pilot-20261003/project/docs/plans/UC-001.md +20 -0
- package/docs/modernization/evidence/local-pilot-20261003/project/docs/requirements.md +10 -0
- package/docs/modernization/evidence/local-pilot-20261003/project/docs/test_cases/TC-001-submit-expense.md +37 -0
- package/docs/modernization/evidence/local-pilot-20261003/project/docs/test_cases/TC-002-description-limit.md +42 -0
- package/docs/modernization/evidence/local-pilot-20261003/project/docs/use_cases/UC-001-submit-expense.md +76 -0
- package/docs/modernization/evidence/local-pilot-20261003/project/docs/use_cases.puml +12 -0
- package/docs/modernization/evidence/local-pilot-20261003/project/docs/vision.md +21 -0
- package/docs/modernization/evidence/local-pilot-20261003/project/src/expense.mjs +48 -0
- package/docs/modernization/evidence/local-pilot-20261003/project/tests/expense.test.mjs +116 -0
- package/docs/modernization/evidence/local-pilot-20261003/scope.json +31 -0
- package/docs/modernization/reviews/2026-10-03-claude-cli/CONTRACTS.ko.md +122 -0
- package/docs/modernization/reviews/2026-10-03-claude-cli/DIRECTION.ko.md +84 -0
- package/examples/spec-workflow/README.md +54 -0
- package/examples/spec-workflow/docs/entity_model.md +33 -0
- package/examples/spec-workflow/docs/glossary.md +9 -0
- package/examples/spec-workflow/docs/requirements.md +10 -0
- package/examples/spec-workflow/docs/test_cases/TC-001-submit-expense.md +37 -0
- package/examples/spec-workflow/docs/use_cases/UC-001-submit-expense.md +63 -0
- package/examples/spec-workflow/docs/use_cases.puml +12 -0
- package/examples/spec-workflow/docs/vision.md +21 -0
- package/package.json +37 -105
- package/plugins/aiwf-angular-jpa/.claude-plugin/plugin.json +11 -0
- package/plugins/aiwf-angular-jpa/LICENSE +201 -0
- package/plugins/aiwf-angular-jpa/NOTICE +16 -0
- package/plugins/aiwf-angular-jpa/README.md +54 -0
- package/plugins/aiwf-angular-jpa/UPSTREAM.json +35 -0
- package/plugins/aiwf-angular-jpa/agents/uc-coverage.md +263 -0
- package/plugins/aiwf-angular-jpa/rules/mcp-servers.md +64 -0
- package/plugins/aiwf-angular-jpa/skills/coverage-check/SKILL.md +190 -0
- package/plugins/aiwf-angular-jpa/skills/flyway-migration/SKILL.md +119 -0
- package/plugins/aiwf-angular-jpa/skills/implement/SKILL.md +528 -0
- package/plugins/aiwf-angular-jpa/skills/implement/references/module-layout.md +95 -0
- package/plugins/aiwf-angular-jpa/skills/playwright-test/SKILL.md +360 -0
- package/plugins/aiwf-angular-jpa/skills/spring-boot-test/SKILL.md +504 -0
- package/plugins/aiwf-angular-jpa/skills/vitest-test/SKILL.md +309 -0
- package/plugins/aiwf-blazor-dotnet/.claude-plugin/plugin.json +11 -0
- package/plugins/aiwf-blazor-dotnet/LICENSE +201 -0
- package/plugins/aiwf-blazor-dotnet/NOTICE +16 -0
- package/plugins/aiwf-blazor-dotnet/README.md +53 -0
- package/plugins/aiwf-blazor-dotnet/UPSTREAM.json +31 -0
- package/plugins/aiwf-blazor-dotnet/rules/mcp-servers.md +25 -0
- package/plugins/aiwf-blazor-dotnet/skills/bunit-test/SKILL.md +110 -0
- package/plugins/aiwf-blazor-dotnet/skills/dotnet-test/SKILL.md +108 -0
- package/plugins/aiwf-blazor-dotnet/skills/ef-migration/SKILL.md +43 -0
- package/plugins/aiwf-blazor-dotnet/skills/implement/SKILL.md +149 -0
- package/plugins/aiwf-blazor-dotnet/skills/playwright-test/SKILL.md +130 -0
- package/plugins/aiwf-core/.claude-plugin/plugin.json +11 -0
- package/plugins/aiwf-core/LICENSE +201 -0
- package/plugins/aiwf-core/NOTICE +20 -0
- package/plugins/aiwf-core/README.md +38 -0
- package/plugins/aiwf-core/UPSTREAM.json +50 -0
- package/plugins/aiwf-core/skills/entity-model/SKILL.md +160 -0
- package/plugins/aiwf-core/skills/entity-model/references/REFERENCE.md +36 -0
- package/plugins/aiwf-core/skills/requirements/SKILL.md +157 -0
- package/plugins/aiwf-core/skills/requirements/references/REFERENCE.md +70 -0
- package/plugins/aiwf-core/skills/requirements/references/glossary.md +7 -0
- package/plugins/aiwf-core/skills/reverse-engineer/SKILL.md +509 -0
- package/plugins/aiwf-core/skills/reverse-engineer/references/stack-signals.md +210 -0
- package/plugins/aiwf-core/skills/spec-review/SKILL.md +197 -0
- package/plugins/aiwf-core/skills/spec-review/references/lint-codes.md +63 -0
- package/plugins/aiwf-core/skills/spec-review/references/review-checklist.md +189 -0
- package/plugins/aiwf-core/skills/spec-review/scripts/spec_lint.py +1216 -0
- package/plugins/aiwf-core/skills/test-case/SKILL.md +138 -0
- package/plugins/aiwf-core/skills/test-case/references/example-process.bpmn +118 -0
- package/plugins/aiwf-core/skills/test-case/references/example.md +38 -0
- package/plugins/aiwf-core/skills/test-case/references/test-case.md +35 -0
- package/plugins/aiwf-core/skills/test-case/scripts/bpmn_paths.py +542 -0
- package/plugins/aiwf-core/skills/use-case-diagram/SKILL.md +99 -0
- package/plugins/aiwf-core/skills/use-case-spec/SKILL.md +257 -0
- package/plugins/aiwf-core/skills/use-case-spec/references/clarify-checklist.md +70 -0
- package/plugins/aiwf-core/skills/use-case-spec/references/example.md +88 -0
- package/plugins/aiwf-core/skills/use-case-spec/references/format-spec.md +246 -0
- package/plugins/aiwf-core/skills/use-case-spec/references/use-case.md +50 -0
- package/plugins/aiwf-core/skills/use-case-spec/scripts/validate_use_case.py +941 -0
- package/plugins/aiwf-delegate-claude/.claude-plugin/plugin.json +9 -0
- package/plugins/aiwf-delegate-claude/LICENSE +21 -0
- package/plugins/aiwf-delegate-claude/NOTICE +4 -0
- package/plugins/aiwf-delegate-claude/README.md +10 -0
- package/plugins/aiwf-delegate-claude/plugin.json +13 -0
- package/plugins/aiwf-delegate-claude/skills/delegate-claude/LICENSE +21 -0
- package/plugins/aiwf-delegate-claude/skills/delegate-claude/NOTICE +4 -0
- package/plugins/aiwf-delegate-claude/skills/delegate-claude/SKILL.md +49 -0
- package/plugins/aiwf-delegate-claude/skills/delegate-claude/agents/openai.yaml +2 -0
- package/plugins/aiwf-delegate-codex/.claude-plugin/plugin.json +9 -0
- package/plugins/aiwf-delegate-codex/LICENSE +21 -0
- package/plugins/aiwf-delegate-codex/NOTICE +4 -0
- package/plugins/aiwf-delegate-codex/README.md +10 -0
- package/plugins/aiwf-delegate-codex/plugin.json +13 -0
- package/plugins/aiwf-delegate-codex/skills/delegate-codex/LICENSE +21 -0
- package/plugins/aiwf-delegate-codex/skills/delegate-codex/NOTICE +4 -0
- package/plugins/aiwf-delegate-codex/skills/delegate-codex/SKILL.md +47 -0
- package/plugins/aiwf-delegate-codex/skills/delegate-codex/agents/openai.yaml +2 -0
- package/plugins/aiwf-nestjs-nextjs/.claude-plugin/plugin.json +11 -0
- package/plugins/aiwf-nestjs-nextjs/LICENSE +201 -0
- package/plugins/aiwf-nestjs-nextjs/NOTICE +16 -0
- package/plugins/aiwf-nestjs-nextjs/README.md +53 -0
- package/plugins/aiwf-nestjs-nextjs/UPSTREAM.json +32 -0
- package/plugins/aiwf-nestjs-nextjs/rules/mcp-servers.md +59 -0
- package/plugins/aiwf-nestjs-nextjs/skills/drizzle-migration/SKILL.md +222 -0
- package/plugins/aiwf-nestjs-nextjs/skills/implement/SKILL.md +393 -0
- package/plugins/aiwf-nestjs-nextjs/skills/implement/references/project-layout.md +158 -0
- package/plugins/aiwf-nestjs-nextjs/skills/nest-test/SKILL.md +300 -0
- package/plugins/aiwf-nestjs-nextjs/skills/playwright-test/SKILL.md +245 -0
- package/plugins/aiwf-nestjs-nextjs/skills/react-test/SKILL.md +217 -0
- package/plugins/aiwf-spec/.claude-plugin/plugin.json +9 -0
- package/plugins/aiwf-spec/LICENSE +201 -0
- package/plugins/aiwf-spec/NOTICE +20 -0
- package/plugins/aiwf-spec/README.md +36 -0
- package/plugins/aiwf-spec/skills/sync-docs/SKILL.md +47 -0
- package/plugins/aiwf-spec/skills/workflow/SKILL.md +42 -0
- package/plugins/aiwf-vaadin-jooq/.claude-plugin/plugin.json +11 -0
- package/plugins/aiwf-vaadin-jooq/LICENSE +201 -0
- package/plugins/aiwf-vaadin-jooq/NOTICE +16 -0
- package/plugins/aiwf-vaadin-jooq/README.md +56 -0
- package/plugins/aiwf-vaadin-jooq/UPSTREAM.json +43 -0
- package/plugins/aiwf-vaadin-jooq/agents/uc-coverage.md +260 -0
- package/plugins/aiwf-vaadin-jooq/rules/mcp-servers.md +44 -0
- package/plugins/aiwf-vaadin-jooq/skills/browserless-test/SKILL.md +407 -0
- package/plugins/aiwf-vaadin-jooq/skills/browserless-test/references/UC001ManagePersonsTest.java +111 -0
- package/plugins/aiwf-vaadin-jooq/skills/coverage-check/SKILL.md +190 -0
- package/plugins/aiwf-vaadin-jooq/skills/flyway-migration/SKILL.md +70 -0
- package/plugins/aiwf-vaadin-jooq/skills/hilla-test/SKILL.md +350 -0
- package/plugins/aiwf-vaadin-jooq/skills/hilla-test/references/UC001ManagePersonsServiceTest.java +81 -0
- package/plugins/aiwf-vaadin-jooq/skills/hilla-test/references/UC001ManagePersonsViewTest.tsx +87 -0
- package/plugins/aiwf-vaadin-jooq/skills/implement/SKILL.md +196 -0
- package/plugins/aiwf-vaadin-jooq/skills/implement-hilla/SKILL.md +216 -0
- package/plugins/aiwf-vaadin-jooq/skills/karibu-test/SKILL.md +298 -0
- package/plugins/aiwf-vaadin-jooq/skills/karibu-test/references/UC001ManagePersonsTest.java +93 -0
- package/plugins/aiwf-vaadin-jooq/skills/playwright-test/SKILL.md +237 -0
- package/plugins/aiwf-vaadin-jooq/skills/playwright-test/references/ExampleViewIT.java +143 -0
- package/plugins/aiwf-vaadin-jooq/skills/playwright-test/references/TC001CustomerOnboardingIT.java +144 -0
- package/plugins/aiwf-vaadin-jooq/skills/playwright-test/references/dramafinder-api.md +190 -0
- package/scripts/check-dependencies.js +26 -96
- package/scripts/install-spec-skills.mjs +126 -0
- package/scripts/validate-spec-plugin.mjs +145 -0
- package/src/cli/spec-cli.js +292 -0
- package/src/lib/spec-workflow.js +982 -0
- package/docs/ADR_MANAGEMENT_GUIDE.ko.md +0 -602
- package/docs/ADR_MANAGEMENT_GUIDE.md +0 -602
- package/docs/AI-WORKFLOW.ko.md +0 -299
- package/docs/AI-WORKFLOW.md +0 -401
- package/docs/API_REFERENCE_FULL.ko.md +0 -1135
- package/docs/API_REFERENCE_FULL.md +0 -1135
- package/docs/ARCHITECTURE.ko.md +0 -314
- package/docs/ARCHITECTURE.md +0 -314
- package/docs/CLI_USAGE_GUIDE.ko.md +0 -634
- package/docs/CLI_USAGE_GUIDE.md +0 -640
- package/docs/CODE_CLEANUP_GUIDE.ko.md +0 -415
- package/docs/CODE_CLEANUP_GUIDE.md +0 -415
- package/docs/COMMANDS_GUIDE.ko.md +0 -1037
- package/docs/COMMANDS_GUIDE.md +0 -1037
- package/docs/CONTRIBUTING.ko.md +0 -408
- package/docs/CONTRIBUTING.md +0 -408
- package/docs/DEVELOPMENT_GUIDE.ko.md +0 -440
- package/docs/DEVELOPMENT_GUIDE.md +0 -727
- package/docs/EXAMPLES.ko.md +0 -695
- package/docs/EXAMPLES.md +0 -693
- package/docs/GETTING_STARTED.ko.md +0 -219
- package/docs/GETTING_STARTED.md +0 -476
- package/docs/MODULE_MANAGEMENT_GUIDE.ko.md +0 -289
- package/docs/MODULE_MANAGEMENT_GUIDE.md +0 -289
- package/docs/PERFORMANCE_ARCHITECTURE.md +0 -494
- package/docs/PERFORMANCE_GUIDELINES.ko.md +0 -388
- package/docs/PERFORMANCE_GUIDELINES.md +0 -553
- package/docs/PRD.ko.md +0 -148
- package/docs/PRD.md +0 -150
- package/docs/ROADMAP_v0.4.0.md +0 -286
- package/docs/STATE_MANAGEMENT_GUIDE.ko.md +0 -278
- package/docs/STATE_MANAGEMENT_GUIDE.md +0 -278
- package/docs/TROUBLESHOOTING.ko.md +0 -366
- package/docs/TROUBLESHOOTING.md +0 -722
- package/docs/VALIDATOR_API.ko.md +0 -324
- package/docs/VALIDATOR_API.md +0 -324
- package/docs/YOLO_SYSTEM_GUIDE.ko.md +0 -542
- package/docs/YOLO_SYSTEM_GUIDE.md +0 -542
- package/docs/designs/AI_PERSONA_SYSTEM_DESIGN.md +0 -516
- package/docs/designs/API_DOCUMENTATION.md +0 -932
- package/docs/designs/API_REFERENCE.md +0 -979
- package/docs/designs/Enhanced_Installation_Flow_Design.md +0 -498
- package/docs/designs/aiwf-metadata-system-prd.md +0 -127
- package/docs/designs/offline-template-cache.md +0 -323
- package/docs/designs/persona-aware-compression.md +0 -168
- package/docs/guides/ai-personas-guide-ko.md +0 -239
- package/docs/guides/ai-personas-guide.md +0 -239
- package/docs/guides/checkpoint-system-guide-ko.md +0 -356
- package/docs/guides/checkpoint-system-guide.md +0 -356
- package/docs/guides/context-compression-guide-ko.md +0 -313
- package/docs/guides/context-compression-guide.md +0 -313
- package/docs/guides/independent-sprint-guide-ko.md +0 -321
- package/docs/guides/independent-sprint-guide.md +0 -321
- package/rules/global/aiwf-code-style-guide.md +0 -30
- package/rules/global/aiwf-coding-principles.md +0 -33
- package/rules/global/aiwf-development-process.md +0 -41
- package/rules/global/aiwf-global-rules.md +0 -84
- package/rules/manual/aiwf-generate-plan-docs.md +0 -280
- package/scripts/run-integration-tests.js +0 -317
- package/scripts/update-file-lists.js +0 -267
- package/scripts/validate-commands.js +0 -254
- package/src/cli/index.js +0 -184
- package/src/commands/sprint-independent.js +0 -393
- package/src/commands/state.js +0 -1164
- package/src/commands/yolo-config.js +0 -502
- package/src/config/file-lists.js +0 -147
- package/src/config/yolo-config-template.yaml +0 -168
- package/src/lib/backup-manager.js +0 -271
- package/src/lib/file-downloader.js +0 -304
- package/src/lib/installer.js +0 -1270
- package/src/lib/rollback-manager.js +0 -418
- package/src/lib/validator.js +0 -376
- package/src/utils/checkpoint-manager.js +0 -435
- package/src/utils/language-utils.js +0 -331
- package/src/utils/messages.js +0 -190
- package/src/utils/paths.js +0 -112
|
@@ -1,289 +0,0 @@
|
|
|
1
|
-
# AIWF 모듈 관리 가이드
|
|
2
|
-
|
|
3
|
-
> AIWF의 모듈러 아키텍처와 의존성을 이해하고 관리하기 위한 종합 가이드
|
|
4
|
-
|
|
5
|
-
[한국어](MODULE_MANAGEMENT_GUIDE.ko.md) | [English](MODULE_MANAGEMENT_GUIDE.md)
|
|
6
|
-
|
|
7
|
-
## 목차
|
|
8
|
-
|
|
9
|
-
1. [개요](#개요)
|
|
10
|
-
2. [모듈 분류](#모듈-분류)
|
|
11
|
-
3. [의존성 매트릭스](#의존성-매트릭스)
|
|
12
|
-
4. [중요 모듈](#중요-모듈)
|
|
13
|
-
5. [안전한 모듈 관리](#안전한-모듈-관리)
|
|
14
|
-
6. [문제 해결](#문제-해결)
|
|
15
|
-
7. [모범 사례](#모범-사례)
|
|
16
|
-
|
|
17
|
-
## 개요
|
|
18
|
-
|
|
19
|
-
AIWF는 기능이 전문화된 모듈들에 분산되어 있는 모듈러 아키텍처를 따릅니다. 이러한 모듈들 간의 의존성 관계를 이해하는 것은 다음과 같은 작업에 중요합니다:
|
|
20
|
-
|
|
21
|
-
- **안전한 리팩토링**: 다른 모듈을 깨뜨리지 않고 수정할 수 있는 모듈 파악
|
|
22
|
-
- **기능 개발**: 새로운 기능을 어디에 배치할지 이해
|
|
23
|
-
- **디버깅**: 의존성 체인을 통한 문제 추적
|
|
24
|
-
- **성능 최적화**: 모듈 로딩의 병목 지점 식별
|
|
25
|
-
|
|
26
|
-
## 모듈 분류
|
|
27
|
-
|
|
28
|
-
### 🔧 핵심 유틸리티 (중요 - 절대 삭제 금지)
|
|
29
|
-
|
|
30
|
-
시스템 전체에서 사용되는 기반 모듈들:
|
|
31
|
-
|
|
32
|
-
#### `utils/paths.js`
|
|
33
|
-
- **사용처**: CLI 및 명령어 전반 8개 이상 위치
|
|
34
|
-
- **목적**: 크로스 플랫폼 호환을 위한 중앙화된 경로 관리
|
|
35
|
-
- **의존성**: 없음
|
|
36
|
-
- **중요한 이유**: 모든 파일 작업, 템플릿 해결, 리소스 로딩
|
|
37
|
-
|
|
38
|
-
#### `utils/messages.js`
|
|
39
|
-
- **사용처**: CLI 및 사용자 대면 명령어 5개 이상 위치
|
|
40
|
-
- **목적**: 다국어 메시지 시스템
|
|
41
|
-
- **의존성**: `language-utils.js`
|
|
42
|
-
- **중요한 이유**: 사용자 인터페이스, 오류 메시지, 국제화
|
|
43
|
-
|
|
44
|
-
#### `utils/language-utils.js`
|
|
45
|
-
- **사용처**: 언어 관리 3개 이상 위치
|
|
46
|
-
- **목적**: 언어 감지 및 설정
|
|
47
|
-
- **의존성**: `paths.js`
|
|
48
|
-
- **중요한 이유**: 언어 전환, 로케일 감지
|
|
49
|
-
|
|
50
|
-
### 🚀 YOLO 시스템 (중요 - 절대 삭제 금지)
|
|
51
|
-
|
|
52
|
-
자율 실행을 위한 전문 모듈들:
|
|
53
|
-
|
|
54
|
-
#### `utils/engineering-guard.js`
|
|
55
|
-
- **사용처**: YOLO 템플릿에서 동적 import
|
|
56
|
-
- **목적**: 자율 실행 중 오버엔지니어링 방지
|
|
57
|
-
- **의존성**: 없음 (자체 포함)
|
|
58
|
-
- **중요한 이유**: YOLO 모드 품질 제어
|
|
59
|
-
- **⚠️ 경고**: 동적 로딩 - 정적 분석에서 보이지 않음
|
|
60
|
-
|
|
61
|
-
#### `utils/checkpoint-manager.js`
|
|
62
|
-
- **사용처**: YOLO 명령어 및 복구 시스템
|
|
63
|
-
- **목적**: 자율 실행을 위한 진행률 추적 및 복구
|
|
64
|
-
- **의존성**: 없음
|
|
65
|
-
- **중요한 이유**: YOLO 세션 관리, 진행률 복구
|
|
66
|
-
|
|
67
|
-
### 🎯 명령어별 전용 모듈
|
|
68
|
-
|
|
69
|
-
#### AI 페르소나 시스템
|
|
70
|
-
```
|
|
71
|
-
ai-persona-manager.js (메인)
|
|
72
|
-
├── context-engine.js
|
|
73
|
-
├── metrics-collector.js
|
|
74
|
-
├── task-analyzer.js
|
|
75
|
-
└── token-optimizer.js (context-engine에서 사용)
|
|
76
|
-
```
|
|
77
|
-
|
|
78
|
-
#### 설치 및 백업 시스템
|
|
79
|
-
```
|
|
80
|
-
installer.js (메인)
|
|
81
|
-
├── backup-manager.js
|
|
82
|
-
├── file-downloader.js
|
|
83
|
-
├── rollback-manager.js
|
|
84
|
-
└── validator.js
|
|
85
|
-
```
|
|
86
|
-
|
|
87
|
-
#### 캐시 시스템
|
|
88
|
-
```
|
|
89
|
-
template-cache-system.js (메인)
|
|
90
|
-
├── offline-detector.js
|
|
91
|
-
├── template-downloader.js
|
|
92
|
-
└── template-version-manager.js
|
|
93
|
-
```
|
|
94
|
-
|
|
95
|
-
#### GitHub 통합
|
|
96
|
-
```
|
|
97
|
-
github-integration.js (메인)
|
|
98
|
-
├── state/state-index.js
|
|
99
|
-
├── state/priority-calculator.js
|
|
100
|
-
└── state/task-scanner.js
|
|
101
|
-
```
|
|
102
|
-
|
|
103
|
-
### 🌐 공유 리소스
|
|
104
|
-
|
|
105
|
-
#### `lib/resource-loader.js`
|
|
106
|
-
- **사용처**: 5개 이상 명령어 (compress, token, evaluate 등)
|
|
107
|
-
- **목적**: 번들 및 사용자 리소스를 위한 통합 리소스 관리
|
|
108
|
-
- **의존성**: `paths.js`
|
|
109
|
-
- **중요한 이유**: 템플릿 로딩, 페르소나 관리, 리소스 해결
|
|
110
|
-
|
|
111
|
-
## 의존성 매트릭스
|
|
112
|
-
|
|
113
|
-
### CLI 명령어 의존성
|
|
114
|
-
|
|
115
|
-
| 명령어 | 직접 의존성 | 간접 의존성 | 특수 사항 |
|
|
116
|
-
|--------|-------------|-------------|-----------|
|
|
117
|
-
| `aiwf install` | installer.js | backup-manager.js, file-downloader.js, rollback-manager.js, validator.js | - |
|
|
118
|
-
| `aiwf persona` | persona.js, ai-persona-manager.js | context-engine.js, metrics-collector.js, task-analyzer.js, token-optimizer.js | - |
|
|
119
|
-
| `aiwf compress` | compress.js, resource-loader.js | - | - |
|
|
120
|
-
| `aiwf token` | token.js, resource-loader.js | - | - |
|
|
121
|
-
| `aiwf evaluate` | evaluate.js, resource-loader.js | - | - |
|
|
122
|
-
| `aiwf checkpoint` | checkpoint-manager.js | - | ⚠️ YOLO 전용 |
|
|
123
|
-
| `aiwf-checkpoint` | checkpoint-manager.js | - | ⚠️ YOLO 전용 |
|
|
124
|
-
| `aiwf cache` | cache-cli.js | template-cache-system.js, offline-detector.js, template-downloader.js, template-version-manager.js | - |
|
|
125
|
-
| `YOLO 모드` | engineering-guard.js | - | ⚠️ 동적 import |
|
|
126
|
-
|
|
127
|
-
## 중요 모듈
|
|
128
|
-
|
|
129
|
-
### ⚠️ 동적 로딩 모듈
|
|
130
|
-
|
|
131
|
-
런타임에 로드되며 정적 의존성 분석에서 나타나지 않는 모듈들:
|
|
132
|
-
|
|
133
|
-
1. **`engineering-guard.js`**: YOLO 템플릿에서 `import()` 사용
|
|
134
|
-
2. **상태 시스템 모듈들**: GitHub 통합에서 사용
|
|
135
|
-
3. **페르소나 하위 모듈들**: 활성 페르소나에 따라 로드
|
|
136
|
-
|
|
137
|
-
### 삭제 위험도 평가
|
|
138
|
-
|
|
139
|
-
#### ❌ 절대 삭제 금지
|
|
140
|
-
- `paths.js`, `messages.js`, `language-utils.js` (핵심 유틸리티)
|
|
141
|
-
- `engineering-guard.js`, `checkpoint-manager.js` (YOLO 시스템)
|
|
142
|
-
- `resource-loader.js` (여러 명령어에서 공유)
|
|
143
|
-
|
|
144
|
-
#### ⚠️ 주의해서 삭제
|
|
145
|
-
- AI 페르소나 시스템 모듈들 (페르소나 명령어 사용 여부 확인)
|
|
146
|
-
- 캐시 시스템 모듈들 (오프라인 기능에 영향)
|
|
147
|
-
- GitHub 통합 모듈들 (GitHub 명령어에 영향)
|
|
148
|
-
|
|
149
|
-
#### ✅ 조건부 삭제 가능
|
|
150
|
-
- 명령어별 전용 모듈들 (해당 명령어가 사용되지 않는 경우)
|
|
151
|
-
- 템플릿별 리소스들 (템플릿이 필요하지 않은 경우)
|
|
152
|
-
|
|
153
|
-
## 안전한 모듈 관리
|
|
154
|
-
|
|
155
|
-
### 모듈 수정 전 확인 사항
|
|
156
|
-
|
|
157
|
-
1. **의존성 맵 확인**: `src/DEPENDENCY_MAP.md` 검토
|
|
158
|
-
2. **사용처 검색**: `grep -r "모듈명" src/`로 모든 참조 확인
|
|
159
|
-
3. **동적 import 확인**: `import()` 구문 검색
|
|
160
|
-
4. **CLI 통합 확인**: CLI 명령어에서의 모듈 사용 여부 확인
|
|
161
|
-
5. **YOLO 기능 검증**: YOLO 모듈 수정 시 YOLO 모드 작동 확인
|
|
162
|
-
|
|
163
|
-
### 안전한 수정 단계
|
|
164
|
-
|
|
165
|
-
```bash
|
|
166
|
-
# 1. 정적 의존성 확인
|
|
167
|
-
grep -r "your-module.js" src/
|
|
168
|
-
|
|
169
|
-
# 2. 동적 import 확인
|
|
170
|
-
grep -r "import.*your-module" src/
|
|
171
|
-
|
|
172
|
-
# 3. YOLO 통합 확인
|
|
173
|
-
grep -r "your-module" claude-code/
|
|
174
|
-
|
|
175
|
-
# 4. CLI 명령어 매핑 확인
|
|
176
|
-
grep -r "your-module" src/cli/
|
|
177
|
-
|
|
178
|
-
# 5. 중요 기능 테스트
|
|
179
|
-
npm test
|
|
180
|
-
aiwf install --force
|
|
181
|
-
aiwf-checkpoint list
|
|
182
|
-
```
|
|
183
|
-
|
|
184
|
-
### 모듈 추가 가이드라인
|
|
185
|
-
|
|
186
|
-
새 모듈 추가 시:
|
|
187
|
-
|
|
188
|
-
1. **의존성 맵 업데이트**: `src/DEPENDENCY_MAP.md`에 항목 추가
|
|
189
|
-
2. **경고 주석 추가**: 중요 모듈에 `@warning` 주석 포함
|
|
190
|
-
3. **사용처 문서화**: 어떤 명령어나 시스템에서 사용하는지 명시
|
|
191
|
-
4. **동적 로딩 고려**: `import()` 지연 로딩 사용 시 표시
|
|
192
|
-
5. **통합 테스트**: 개발 및 프로덕션 환경에서 모듈 작동 확인
|
|
193
|
-
|
|
194
|
-
## 문제 해결
|
|
195
|
-
|
|
196
|
-
### 일반적인 문제들
|
|
197
|
-
|
|
198
|
-
#### "Module not found" 오류
|
|
199
|
-
```bash
|
|
200
|
-
# 모듈 존재 확인
|
|
201
|
-
ls -la src/utils/your-module.js
|
|
202
|
-
|
|
203
|
-
# import 경로 정확성 확인
|
|
204
|
-
grep -r "your-module" src/
|
|
205
|
-
|
|
206
|
-
# 모듈 export 확인
|
|
207
|
-
node -e "console.log(require('./src/utils/your-module.js'))"
|
|
208
|
-
```
|
|
209
|
-
|
|
210
|
-
#### YOLO 모드 실패
|
|
211
|
-
```bash
|
|
212
|
-
# engineering-guard 가용성 확인
|
|
213
|
-
ls -la src/utils/engineering-guard.js
|
|
214
|
-
|
|
215
|
-
# 동적 import 테스트
|
|
216
|
-
node -e "import('./src/utils/engineering-guard.js').then(m => console.log('OK'))"
|
|
217
|
-
|
|
218
|
-
# 체크포인트 시스템 확인
|
|
219
|
-
aiwf checkpoint status
|
|
220
|
-
```
|
|
221
|
-
|
|
222
|
-
#### 순환 의존성
|
|
223
|
-
```bash
|
|
224
|
-
# 순환 의존성 감지
|
|
225
|
-
npm install -g madge
|
|
226
|
-
madge --circular src/
|
|
227
|
-
```
|
|
228
|
-
|
|
229
|
-
### 복구 절차
|
|
230
|
-
|
|
231
|
-
#### 핵심 유틸리티 실수로 삭제한 경우
|
|
232
|
-
1. git에서 복원: `git checkout HEAD -- src/utils/paths.js`
|
|
233
|
-
2. AIWF 재설치: `aiwf install --force`
|
|
234
|
-
3. 기능 확인: `aiwf --version`
|
|
235
|
-
|
|
236
|
-
#### YOLO 시스템이 손상된 경우
|
|
237
|
-
1. YOLO 설정 확인: `cat .aiwf/yolo-config.yaml`
|
|
238
|
-
2. 체크포인트 매니저 복원: `git checkout HEAD -- src/utils/checkpoint-manager.js`
|
|
239
|
-
3. YOLO 모드 테스트: `aiwf-checkpoint status`
|
|
240
|
-
|
|
241
|
-
## 모범 사례
|
|
242
|
-
|
|
243
|
-
### 모듈 개발
|
|
244
|
-
|
|
245
|
-
1. **단일 책임**: 각 모듈은 하나의 명확한 목적을 가져야 함
|
|
246
|
-
2. **최소 의존성**: 결합도를 줄이기 위해 불필요한 의존성 피하기
|
|
247
|
-
3. **명확한 인터페이스**: 필요한 함수/클래스만 export
|
|
248
|
-
4. **문서화**: 사용법 주석 및 의존성 정보 포함
|
|
249
|
-
5. **오류 처리**: 누락된 의존성을 우아하게 처리
|
|
250
|
-
|
|
251
|
-
### 의존성 관리
|
|
252
|
-
|
|
253
|
-
1. **정기 감사**: 의존성 맵을 주기적으로 검토하고 업데이트
|
|
254
|
-
2. **영향 분석**: 변경 전 종속 모듈에 대한 잠재적 영향 분석
|
|
255
|
-
3. **테스트 전략**: 직접 및 간접 의존성 모두 테스트
|
|
256
|
-
4. **버전 제어**: git을 사용하여 모듈 변경 및 의존성 추적
|
|
257
|
-
5. **문서화**: 의존성 문서를 최신 상태로 유지
|
|
258
|
-
|
|
259
|
-
### 성능 고려사항
|
|
260
|
-
|
|
261
|
-
1. **지연 로딩**: 중요하지 않은 모듈에 동적 import 사용
|
|
262
|
-
2. **캐싱**: 자주 액세스하는 모듈 캐시
|
|
263
|
-
3. **번들 최적화**: 의존성 추가 시 모듈 크기 고려
|
|
264
|
-
4. **트리 셰이킹**: 모듈이 데드 코드 제거를 지원하는지 확인
|
|
265
|
-
|
|
266
|
-
## 모듈 통합 체크리스트
|
|
267
|
-
|
|
268
|
-
새 모듈 통합 또는 기존 모듈 수정 시:
|
|
269
|
-
|
|
270
|
-
- [ ] `src/DEPENDENCY_MAP.md` 업데이트
|
|
271
|
-
- [ ] 적절한 경고 주석 추가
|
|
272
|
-
- [ ] 사용 패턴 문서화
|
|
273
|
-
- [ ] CLI 및 YOLO 모드에서 테스트
|
|
274
|
-
- [ ] 리소스 로딩 작동 확인
|
|
275
|
-
- [ ] 순환 의존성 확인
|
|
276
|
-
- [ ] 관련 문서 업데이트
|
|
277
|
-
- [ ] 필요 시 통합 테스트 추가
|
|
278
|
-
|
|
279
|
-
## 관련 문서
|
|
280
|
-
|
|
281
|
-
- [DEPENDENCY_MAP.md](../src/DEPENDENCY_MAP.md) - 상세 의존성 매트릭스
|
|
282
|
-
- [ARCHITECTURE.md](ARCHITECTURE.ko.md) - 전체 시스템 아키텍처
|
|
283
|
-
- [DEVELOPMENT_GUIDE.md](DEVELOPMENT_GUIDE.ko.md) - 개발 가이드라인
|
|
284
|
-
- [YOLO_SYSTEM_GUIDE.md](YOLO_SYSTEM_GUIDE.ko.md) - YOLO 시스템 세부사항
|
|
285
|
-
|
|
286
|
-
---
|
|
287
|
-
|
|
288
|
-
**마지막 업데이트**: 2025-01-27
|
|
289
|
-
**검증 방법**: `grep -r "모듈명" src/`를 사용하여 사용 패턴 확인
|
|
@@ -1,289 +0,0 @@
|
|
|
1
|
-
# AIWF Module Management Guide
|
|
2
|
-
|
|
3
|
-
> A comprehensive guide to understanding and managing AIWF's modular architecture and dependencies
|
|
4
|
-
|
|
5
|
-
[한국어](MODULE_MANAGEMENT_GUIDE.ko.md) | [English](MODULE_MANAGEMENT_GUIDE.md)
|
|
6
|
-
|
|
7
|
-
## Table of Contents
|
|
8
|
-
|
|
9
|
-
1. [Overview](#overview)
|
|
10
|
-
2. [Module Classification](#module-classification)
|
|
11
|
-
3. [Dependency Matrix](#dependency-matrix)
|
|
12
|
-
4. [Critical Modules](#critical-modules)
|
|
13
|
-
5. [Safe Module Management](#safe-module-management)
|
|
14
|
-
6. [Troubleshooting](#troubleshooting)
|
|
15
|
-
7. [Best Practices](#best-practices)
|
|
16
|
-
|
|
17
|
-
## Overview
|
|
18
|
-
|
|
19
|
-
AIWF follows a modular architecture where functionality is distributed across specialized modules. Understanding the dependency relationships between these modules is crucial for:
|
|
20
|
-
|
|
21
|
-
- **Safe refactoring**: Knowing which modules can be modified without breaking others
|
|
22
|
-
- **Feature development**: Understanding where to place new functionality
|
|
23
|
-
- **Debugging**: Tracing issues through the dependency chain
|
|
24
|
-
- **Performance optimization**: Identifying bottlenecks in module loading
|
|
25
|
-
|
|
26
|
-
## Module Classification
|
|
27
|
-
|
|
28
|
-
### 🔧 Core Utilities (Critical - Never Delete)
|
|
29
|
-
|
|
30
|
-
These modules are foundational and used throughout the system:
|
|
31
|
-
|
|
32
|
-
#### `utils/paths.js`
|
|
33
|
-
- **Usage**: 8+ locations across CLI and commands
|
|
34
|
-
- **Purpose**: Centralized path management for cross-platform compatibility
|
|
35
|
-
- **Dependencies**: None
|
|
36
|
-
- **Critical for**: All file operations, template resolution, resource loading
|
|
37
|
-
|
|
38
|
-
#### `utils/messages.js`
|
|
39
|
-
- **Usage**: 5+ locations in CLI and user-facing commands
|
|
40
|
-
- **Purpose**: Multi-language message system
|
|
41
|
-
- **Dependencies**: `language-utils.js`
|
|
42
|
-
- **Critical for**: User interface, error messages, internationalization
|
|
43
|
-
|
|
44
|
-
#### `utils/language-utils.js`
|
|
45
|
-
- **Usage**: 3+ locations in language management
|
|
46
|
-
- **Purpose**: Language detection and configuration
|
|
47
|
-
- **Dependencies**: `paths.js`
|
|
48
|
-
- **Critical for**: Language switching, locale detection
|
|
49
|
-
|
|
50
|
-
### 🚀 YOLO System (Critical - Never Delete)
|
|
51
|
-
|
|
52
|
-
Specialized modules for autonomous execution:
|
|
53
|
-
|
|
54
|
-
#### `utils/engineering-guard.js`
|
|
55
|
-
- **Usage**: Dynamic import in YOLO templates
|
|
56
|
-
- **Purpose**: Prevents over-engineering during autonomous execution
|
|
57
|
-
- **Dependencies**: None (self-contained)
|
|
58
|
-
- **Critical for**: YOLO mode quality control
|
|
59
|
-
- **⚠️ Warning**: Loaded dynamically - won't show in static analysis
|
|
60
|
-
|
|
61
|
-
#### `utils/checkpoint-manager.js`
|
|
62
|
-
- **Usage**: YOLO commands and recovery systems
|
|
63
|
-
- **Purpose**: Progress tracking and recovery for autonomous execution
|
|
64
|
-
- **Dependencies**: None
|
|
65
|
-
- **Critical for**: YOLO session management, progress recovery
|
|
66
|
-
|
|
67
|
-
### 🎯 Command-Specific Modules
|
|
68
|
-
|
|
69
|
-
#### AI Persona System
|
|
70
|
-
```
|
|
71
|
-
ai-persona-manager.js (main)
|
|
72
|
-
├── context-engine.js
|
|
73
|
-
├── metrics-collector.js
|
|
74
|
-
├── task-analyzer.js
|
|
75
|
-
└── token-optimizer.js (used by context-engine)
|
|
76
|
-
```
|
|
77
|
-
|
|
78
|
-
#### Installation & Backup System
|
|
79
|
-
```
|
|
80
|
-
installer.js (main)
|
|
81
|
-
├── backup-manager.js
|
|
82
|
-
├── file-downloader.js
|
|
83
|
-
├── rollback-manager.js
|
|
84
|
-
└── validator.js
|
|
85
|
-
```
|
|
86
|
-
|
|
87
|
-
#### Cache System
|
|
88
|
-
```
|
|
89
|
-
template-cache-system.js (main)
|
|
90
|
-
├── offline-detector.js
|
|
91
|
-
├── template-downloader.js
|
|
92
|
-
└── template-version-manager.js
|
|
93
|
-
```
|
|
94
|
-
|
|
95
|
-
#### GitHub Integration
|
|
96
|
-
```
|
|
97
|
-
github-integration.js (main)
|
|
98
|
-
├── state/state-index.js
|
|
99
|
-
├── state/priority-calculator.js
|
|
100
|
-
└── state/task-scanner.js
|
|
101
|
-
```
|
|
102
|
-
|
|
103
|
-
### 🌐 Shared Resources
|
|
104
|
-
|
|
105
|
-
#### `lib/resource-loader.js`
|
|
106
|
-
- **Usage**: 5+ commands (compress, token, evaluate, etc.)
|
|
107
|
-
- **Purpose**: Unified resource management for bundled and user resources
|
|
108
|
-
- **Dependencies**: `paths.js`
|
|
109
|
-
- **Critical for**: Template loading, persona management, resource resolution
|
|
110
|
-
|
|
111
|
-
## Dependency Matrix
|
|
112
|
-
|
|
113
|
-
### CLI Command Dependencies
|
|
114
|
-
|
|
115
|
-
| Command | Direct Dependencies | Indirect Dependencies | Special Notes |
|
|
116
|
-
|---------|-------------------|---------------------|---------------|
|
|
117
|
-
| `aiwf install` | installer.js | backup-manager.js, file-downloader.js, rollback-manager.js, validator.js | - |
|
|
118
|
-
| `aiwf persona` | persona.js, ai-persona-manager.js | context-engine.js, metrics-collector.js, task-analyzer.js, token-optimizer.js | - |
|
|
119
|
-
| `aiwf compress` | compress.js, resource-loader.js | - | - |
|
|
120
|
-
| `aiwf token` | token.js, resource-loader.js | - | - |
|
|
121
|
-
| `aiwf evaluate` | evaluate.js, resource-loader.js | - | - |
|
|
122
|
-
| `aiwf checkpoint` | checkpoint-manager.js | - | ⚠️ YOLO only |
|
|
123
|
-
| `aiwf-checkpoint` | checkpoint-manager.js | - | ⚠️ YOLO only |
|
|
124
|
-
| `aiwf cache` | cache-cli.js | template-cache-system.js, offline-detector.js, template-downloader.js, template-version-manager.js | - |
|
|
125
|
-
| `YOLO Mode` | engineering-guard.js | - | ⚠️ Dynamic import |
|
|
126
|
-
|
|
127
|
-
## Critical Modules
|
|
128
|
-
|
|
129
|
-
### Modules with ⚠️ Dynamic Loading
|
|
130
|
-
|
|
131
|
-
These modules are loaded at runtime and won't appear in static dependency analysis:
|
|
132
|
-
|
|
133
|
-
1. **`engineering-guard.js`**: Loaded by YOLO templates using `import()`
|
|
134
|
-
2. **State system modules**: Used by GitHub integration
|
|
135
|
-
3. **Persona sub-modules**: Loaded based on active persona
|
|
136
|
-
|
|
137
|
-
### Deletion Risk Assessment
|
|
138
|
-
|
|
139
|
-
#### ❌ Never Delete
|
|
140
|
-
- `paths.js`, `messages.js`, `language-utils.js` (core utilities)
|
|
141
|
-
- `engineering-guard.js`, `checkpoint-manager.js` (YOLO system)
|
|
142
|
-
- `resource-loader.js` (shared by multiple commands)
|
|
143
|
-
|
|
144
|
-
#### ⚠️ Delete with Caution
|
|
145
|
-
- AI Persona system modules (check if persona commands are used)
|
|
146
|
-
- Cache system modules (affects offline functionality)
|
|
147
|
-
- GitHub integration modules (affects GitHub commands)
|
|
148
|
-
|
|
149
|
-
#### ✅ Conditional Deletion
|
|
150
|
-
- Command-specific modules can be deleted if the corresponding command is unused
|
|
151
|
-
- Template-specific resources can be removed if templates are not needed
|
|
152
|
-
|
|
153
|
-
## Safe Module Management
|
|
154
|
-
|
|
155
|
-
### Before Modifying Any Module
|
|
156
|
-
|
|
157
|
-
1. **Check the Dependency Map**: Review `src/DEPENDENCY_MAP.md`
|
|
158
|
-
2. **Search for Usage**: Use `grep -r "module-name" src/` to find all references
|
|
159
|
-
3. **Check for Dynamic Imports**: Search for `import()` statements
|
|
160
|
-
4. **Verify CLI Integration**: Check if module is used in CLI commands
|
|
161
|
-
5. **Test YOLO Functionality**: Ensure YOLO mode still works if modifying YOLO modules
|
|
162
|
-
|
|
163
|
-
### Safe Modification Steps
|
|
164
|
-
|
|
165
|
-
```bash
|
|
166
|
-
# 1. Check static dependencies
|
|
167
|
-
grep -r "your-module.js" src/
|
|
168
|
-
|
|
169
|
-
# 2. Check dynamic imports
|
|
170
|
-
grep -r "import.*your-module" src/
|
|
171
|
-
|
|
172
|
-
# 3. Check YOLO integration
|
|
173
|
-
grep -r "your-module" claude-code/
|
|
174
|
-
|
|
175
|
-
# 4. Verify CLI command mapping
|
|
176
|
-
grep -r "your-module" src/cli/
|
|
177
|
-
|
|
178
|
-
# 5. Test critical functionality
|
|
179
|
-
npm test
|
|
180
|
-
aiwf install --force
|
|
181
|
-
aiwf-checkpoint list
|
|
182
|
-
```
|
|
183
|
-
|
|
184
|
-
### Module Addition Guidelines
|
|
185
|
-
|
|
186
|
-
When adding new modules:
|
|
187
|
-
|
|
188
|
-
1. **Update Dependency Map**: Add entry to `src/DEPENDENCY_MAP.md`
|
|
189
|
-
2. **Add Warning Comments**: Include `@warning` comments for critical modules
|
|
190
|
-
3. **Document Usage**: Specify which commands or systems use the module
|
|
191
|
-
4. **Consider Dynamic Loading**: Mark if module uses `import()` for lazy loading
|
|
192
|
-
5. **Test Integration**: Verify module works in both development and production
|
|
193
|
-
|
|
194
|
-
## Troubleshooting
|
|
195
|
-
|
|
196
|
-
### Common Issues
|
|
197
|
-
|
|
198
|
-
#### "Module not found" Errors
|
|
199
|
-
```bash
|
|
200
|
-
# Check if module exists
|
|
201
|
-
ls -la src/utils/your-module.js
|
|
202
|
-
|
|
203
|
-
# Check if path is correct in imports
|
|
204
|
-
grep -r "your-module" src/
|
|
205
|
-
|
|
206
|
-
# Verify module exports
|
|
207
|
-
node -e "console.log(require('./src/utils/your-module.js'))"
|
|
208
|
-
```
|
|
209
|
-
|
|
210
|
-
#### YOLO Mode Failures
|
|
211
|
-
```bash
|
|
212
|
-
# Check engineering-guard availability
|
|
213
|
-
ls -la src/utils/engineering-guard.js
|
|
214
|
-
|
|
215
|
-
# Test dynamic import
|
|
216
|
-
node -e "import('./src/utils/engineering-guard.js').then(m => console.log('OK'))"
|
|
217
|
-
|
|
218
|
-
# Verify checkpoint system
|
|
219
|
-
aiwf checkpoint status
|
|
220
|
-
```
|
|
221
|
-
|
|
222
|
-
#### Circular Dependencies
|
|
223
|
-
```bash
|
|
224
|
-
# Detect circular dependencies
|
|
225
|
-
npm install -g madge
|
|
226
|
-
madge --circular src/
|
|
227
|
-
```
|
|
228
|
-
|
|
229
|
-
### Recovery Procedures
|
|
230
|
-
|
|
231
|
-
#### If Core Utility is Accidentally Deleted
|
|
232
|
-
1. Restore from git: `git checkout HEAD -- src/utils/paths.js`
|
|
233
|
-
2. Reinstall AIWF: `aiwf install --force`
|
|
234
|
-
3. Verify functionality: `aiwf --version`
|
|
235
|
-
|
|
236
|
-
#### If YOLO System is Broken
|
|
237
|
-
1. Check YOLO config: `cat .aiwf/yolo-config.yaml`
|
|
238
|
-
2. Restore checkpoint manager: `git checkout HEAD -- src/utils/checkpoint-manager.js`
|
|
239
|
-
3. Test YOLO mode: `aiwf-checkpoint status`
|
|
240
|
-
|
|
241
|
-
## Best Practices
|
|
242
|
-
|
|
243
|
-
### Module Development
|
|
244
|
-
|
|
245
|
-
1. **Single Responsibility**: Each module should have one clear purpose
|
|
246
|
-
2. **Minimal Dependencies**: Avoid unnecessary dependencies to reduce coupling
|
|
247
|
-
3. **Clear Interfaces**: Export only necessary functions/classes
|
|
248
|
-
4. **Documentation**: Include usage comments and dependency information
|
|
249
|
-
5. **Error Handling**: Gracefully handle missing dependencies
|
|
250
|
-
|
|
251
|
-
### Dependency Management
|
|
252
|
-
|
|
253
|
-
1. **Regular Audits**: Periodically review and update dependency map
|
|
254
|
-
2. **Impact Analysis**: Before changes, analyze potential impact on dependent modules
|
|
255
|
-
3. **Testing Strategy**: Test both direct and indirect dependencies
|
|
256
|
-
4. **Version Control**: Use git to track module changes and dependencies
|
|
257
|
-
5. **Documentation**: Keep dependency documentation up-to-date
|
|
258
|
-
|
|
259
|
-
### Performance Considerations
|
|
260
|
-
|
|
261
|
-
1. **Lazy Loading**: Use dynamic imports for non-critical modules
|
|
262
|
-
2. **Caching**: Cache frequently accessed modules
|
|
263
|
-
3. **Bundle Optimization**: Consider module size when adding dependencies
|
|
264
|
-
4. **Tree Shaking**: Ensure modules support dead code elimination
|
|
265
|
-
|
|
266
|
-
## Module Integration Checklist
|
|
267
|
-
|
|
268
|
-
When integrating new modules or modifying existing ones:
|
|
269
|
-
|
|
270
|
-
- [ ] Updated `src/DEPENDENCY_MAP.md`
|
|
271
|
-
- [ ] Added appropriate warning comments
|
|
272
|
-
- [ ] Documented usage patterns
|
|
273
|
-
- [ ] Tested in both CLI and YOLO modes
|
|
274
|
-
- [ ] Verified resource loading works
|
|
275
|
-
- [ ] Checked for circular dependencies
|
|
276
|
-
- [ ] Updated relevant documentation
|
|
277
|
-
- [ ] Added integration tests if needed
|
|
278
|
-
|
|
279
|
-
## Related Documents
|
|
280
|
-
|
|
281
|
-
- [DEPENDENCY_MAP.md](../src/DEPENDENCY_MAP.md) - Detailed dependency matrix
|
|
282
|
-
- [ARCHITECTURE.md](ARCHITECTURE.md) - Overall system architecture
|
|
283
|
-
- [DEVELOPMENT_GUIDE.md](DEVELOPMENT_GUIDE.md) - Development guidelines
|
|
284
|
-
- [YOLO_SYSTEM_GUIDE.md](YOLO_SYSTEM_GUIDE.md) - YOLO system specifics
|
|
285
|
-
|
|
286
|
-
---
|
|
287
|
-
|
|
288
|
-
**Last Updated**: 2025-01-27
|
|
289
|
-
**Verification Method**: Use `grep -r "module-name" src/` to verify usage patterns
|