aiwf 0.3.7 β 0.3.12
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 +97 -0
- package/README.ko.md +114 -28
- package/README.md +152 -40
- package/docs/AI-WORKFLOW.md +121 -19
- package/docs/API_DOCUMENTATION.md +1 -1
- package/docs/API_REFERENCE.md +1 -1
- package/docs/CLI_USAGE_GUIDE.ko.md +634 -0
- package/docs/CLI_USAGE_GUIDE.md +339 -178
- package/docs/COMMANDS_GUIDE.ko.md +308 -4
- package/docs/COMMANDS_GUIDE.md +117 -0
- package/docs/CONTRIBUTING.ko.md +6 -6
- package/docs/CONTRIBUTING.md +6 -6
- package/docs/DEVELOPMENT_GUIDE.ko.md +440 -0
- package/docs/DEVELOPMENT_GUIDE.md +1 -1
- package/docs/EXAMPLES.md +8 -6
- package/docs/GETTING_STARTED.md +6 -3
- package/docs/STATE_MANAGEMENT_GUIDE.ko.md +278 -0
- package/docs/STATE_MANAGEMENT_GUIDE.md +278 -0
- package/docs/TROUBLESHOOTING.md +14 -13
- package/docs/guides/checkpoint-system-guide-ko.md +356 -0
- package/docs/guides/checkpoint-system-guide.md +356 -0
- package/docs/guides/independent-sprint-guide-ko.md +321 -0
- package/docs/guides/independent-sprint-guide.md +321 -0
- package/package.json +30 -3
- package/scripts/update-file-lists.js +267 -0
- package/src/cli/checkpoint-cli.js +417 -0
- package/src/cli/index.js +461 -0
- package/src/cli/sprint-cli.js +287 -0
- package/src/commands/compress.js +60 -0
- package/src/commands/create-project.js +23 -17
- package/src/commands/evaluate.js +459 -0
- package/src/commands/persona.js +37 -16
- package/src/commands/sprint-independent.js +393 -0
- package/src/commands/state-refactored.js +419 -0
- package/src/commands/state.js +1164 -0
- package/src/commands/token.js +312 -0
- package/src/commands/yolo-config.js +502 -0
- package/src/config/file-lists.js +147 -0
- package/src/config/yolo-config-template.yaml +168 -0
- package/src/lib/file-downloader.js +7 -72
- package/src/lib/github-integration.js +402 -0
- package/src/lib/resource-loader-enhanced.js +399 -0
- package/src/lib/resource-loader.js +250 -0
- package/{claude-code/aiwf/ko β src/lib/resources}/commands/ai-persona.js +1 -1
- package/src/lib/state/priority-calculator.js +217 -0
- package/src/lib/state/state-index.js +155 -0
- package/src/lib/state/task-scanner.js +328 -0
- package/src/utils/checkpoint-manager.js +425 -0
- package/src/utils/engineering-guard.js +389 -0
- package/.aiwf/00_PROJECT_MANIFEST.md +0 -196
- package/.aiwf/01_PROJECT_DOCS/ARCHITECTURE.md +0 -121
- package/.aiwf/01_PROJECT_DOCS/FEATURE_LEDGER_ADVANCED_USE_CASES.md +0 -412
- package/.aiwf/01_PROJECT_DOCS/FEATURE_LEDGER_API_REFERENCE.md +0 -361
- package/.aiwf/01_PROJECT_DOCS/FEATURE_LEDGER_COMMANDS_GUIDE.md +0 -254
- package/.aiwf/01_PROJECT_DOCS/FEATURE_LEDGER_FAQ.md +0 -365
- package/.aiwf/01_PROJECT_DOCS/FEATURE_LEDGER_SYSTEM_OVERVIEW.md +0 -305
- package/.aiwf/01_PROJECT_DOCS/FEATURE_LEDGER_USER_GUIDE.md +0 -416
- package/.aiwf/01_PROJECT_DOCS/FEATURE_LEDGER_/354/213/234/354/236/221_/352/260/200/354/235/264/353/223/234.md +0 -247
- package/.aiwf/02_REQUIREMENTS/CLAUDE.md +0 -78
- package/.aiwf/02_REQUIREMENTS/M02_Context_Engineering_Enhancement/M02_milestone_meta.md +0 -34
- package/.aiwf/02_REQUIREMENTS/M02_Context_Engineering_Enhancement/PRD_Context_Engineering_Enhancement.md +0 -108
- package/.aiwf/02_REQUIREMENTS/M02_Context_Engineering_Enhancement/SPECS_AI_Persona_System.md +0 -299
- package/.aiwf/02_REQUIREMENTS/M02_Context_Engineering_Enhancement/SPECS_Feature_Ledger_System.md +0 -330
- package/.aiwf/02_REQUIREMENTS/M02_Context_Engineering_Enhancement/SPECS_Token_Optimization.md +0 -833
- package/.aiwf/02_REQUIREMENTS/M03_Simone_Integration_Enhancement/M03_milestone_meta.md +0 -55
- package/.aiwf/02_REQUIREMENTS/M03_Simone_Integration_Enhancement/SPECS_AIWF_Simplified_Plan.md +0 -221
- package/.aiwf/03_SPRINTS/CLAUDE.md +0 -83
- package/.aiwf/03_SPRINTS/S01_M02_context_foundation/S01_M02_sprint_meta.md +0 -95
- package/.aiwf/03_SPRINTS/S01_M02_context_foundation/TX01_S01_Feature_Ledger_/353/215/260/354/235/264/355/204/260_/352/265/254/354/241/260_/354/204/244/352/263/204.md +0 -111
- package/.aiwf/03_SPRINTS/S01_M02_context_foundation/TX02_S01_Feature_Ledger_CLI_/353/252/205/353/240/271/354/226/264_/352/260/234/353/260/234.md +0 -115
- package/.aiwf/03_SPRINTS/S01_M02_context_foundation/TX03_S01_Git_/354/227/260/353/217/231_Feature_/354/266/224/354/240/201.md +0 -141
- package/.aiwf/03_SPRINTS/S01_M02_context_foundation/TX04_S01_Feature_Ledger_/353/254/270/354/204/234/355/231/224.md +0 -114
- package/.aiwf/03_SPRINTS/S01_M02_context_foundation/TX05_S01_AI_/355/216/230/353/245/264/354/206/214/353/202/230_/353/215/260/354/235/264/355/204/260_/352/265/254/354/241/260_/354/204/244/352/263/204.md +0 -123
- package/.aiwf/03_SPRINTS/S01_M02_context_foundation/TX06_S01_/355/216/230/353/245/264/354/206/214/353/202/230_/352/264/200/353/246/254_/353/252/205/353/240/271/354/226/264_/352/265/254/355/230/204.md +0 -114
- package/.aiwf/03_SPRINTS/S01_M02_context_foundation/TX07_S01_Context_/354/225/225/354/266/225_/354/225/204/355/202/244/355/205/215/354/262/230_/354/204/244/352/263/204.md +0 -114
- package/.aiwf/03_SPRINTS/S01_M02_context_foundation/TX08_S01_/355/206/240/355/201/260_/354/266/224/354/240/201_/354/213/234/354/212/244/355/205/234_/355/224/204/353/241/234/355/206/240/355/203/200/354/236/205.md +0 -112
- package/.aiwf/03_SPRINTS/S01_M02_context_foundation/TX09_S01_/354/225/225/354/266/225_/354/225/214/352/263/240/353/246/254/354/246/230_/355/224/204/353/241/234/355/206/240/355/203/200/354/236/205.md +0 -118
- package/.aiwf/03_SPRINTS/S01_M02_context_foundation/TX10_S01_update_docs_/353/252/205/353/240/271/354/226/264_/353/263/265/352/265/254.md +0 -118
- package/.aiwf/03_SPRINTS/S01_M02_context_foundation/TX11_S01_/355/206/265/355/225/251_/355/205/214/354/212/244/355/212/270_Suite_/352/265/254/354/266/225.md +0 -128
- package/.aiwf/03_SPRINTS/S01_M02_context_foundation/TX12_S01_/354/204/261/353/212/245_/354/265/234/354/240/201/355/231/224_/353/260/217_/353/254/270/354/204/234/355/231/224.md +0 -122
- package/.aiwf/03_SPRINTS/S02_M02_ai_enhancement/S02_M02_sprint_meta.md +0 -107
- package/.aiwf/03_SPRINTS/S02_M02_ai_enhancement/TX01_S02_AI_/355/216/230/353/245/264/354/206/214/353/202/230_/353/252/205/353/240/271/354/226/264_/352/265/254/355/230/204.md +0 -129
- package/.aiwf/03_SPRINTS/S02_M02_ai_enhancement/TX02_S02_/355/216/230/353/245/264/354/206/214/353/202/230_/354/273/250/355/205/215/354/212/244/355/212/270_/354/240/201/354/232/251_/354/213/234/354/212/244/355/205/234.md +0 -152
- package/.aiwf/03_SPRINTS/S02_M02_ai_enhancement/TX03_S02_Context_/354/225/225/354/266/225_/354/225/214/352/263/240/353/246/254/354/246/230_/352/265/254/355/230/204.md +0 -186
- package/.aiwf/03_SPRINTS/S02_M02_ai_enhancement/TX05_S02_S02_/355/206/265/355/225/251_/355/205/214/354/212/244/355/212/270_/353/260/217_/353/254/270/354/204/234/355/231/224.md +0 -192
- package/.aiwf/03_SPRINTS/S02_M02_ai_enhancement/TX4_S02_Feature_Git_/354/227/260/353/217/231_/353/260/217_/354/236/220/353/217/231/355/231/224.md +0 -162
- package/.aiwf/03_SPRINTS/S03_M02_ecosystem_integration/S03_FINAL_SPRINT_SUMMARY.md +0 -137
- package/.aiwf/03_SPRINTS/S03_M02_ecosystem_integration/S03_M02_sprint_meta.md +0 -105
- package/.aiwf/03_SPRINTS/S03_M02_ecosystem_integration/TX14_S03_M02_/353/247/210/354/235/274/354/212/244/355/206/244_/354/265/234/354/242/205_/352/262/200/354/246/235_/353/260/217_/353/254/270/354/204/234/355/231/224.md +0 -214
- package/.aiwf/03_SPRINTS/S03_M02_ecosystem_integration/TX15_S03_/352/270/260/353/263/270_/355/224/204/353/241/234/354/240/235/355/212/270_/355/205/234/355/224/214/353/246/277_/352/260/234/353/260/234.md +0 -177
- package/.aiwf/03_SPRINTS/S03_M02_ecosystem_integration/TX16_S03_/354/230/244/355/224/204/353/235/274/354/235/270_/355/205/234/355/224/214/353/246/277_/354/272/220/354/213/234_/354/213/234/354/212/244/355/205/234.md +0 -206
- package/.aiwf/03_SPRINTS/S03_M02_ecosystem_integration/TX_T13_S03_AI_/353/217/204/352/265/254_/355/206/265/355/225/251_/355/205/234/355/224/214/353/246/277_/352/260/234/353/260/234.md +0 -151
- package/.aiwf/04_GENERAL_TASKS/CLAUDE.md +0 -96
- package/.aiwf/04_GENERAL_TASKS/TX001_complete_english_translation.md +0 -127
- package/.aiwf/06_FEATURE_LEDGERS/FEATURE_GIT_INTEGRATION.md +0 -314
- package/.aiwf/06_FEATURE_LEDGERS/FEATURE_INTEGRATION_GUIDE.md +0 -227
- package/.aiwf/06_FEATURE_LEDGERS/FEATURE_LEDGER_INDEX.md +0 -23
- package/.aiwf/06_FEATURE_LEDGERS/FEATURE_SCHEMA.md +0 -205
- package/.aiwf/06_FEATURE_LEDGERS/FEATURE_STATE_DIAGRAM.md +0 -190
- package/.aiwf/06_FEATURE_LEDGERS/active/FL001_user_authentication_system.md +0 -47
- package/.aiwf/06_FEATURE_LEDGERS/active/FL002_user_authentication_system.md +0 -47
- package/.aiwf/07_AI_PERSONAS/architect/best_practices.md +0 -104
- package/.aiwf/07_AI_PERSONAS/architect/context_rules.md +0 -46
- package/.aiwf/07_AI_PERSONAS/architect/knowledge_base.md +0 -235
- package/.aiwf/07_AI_PERSONAS/backend/best_practices.md +0 -363
- package/.aiwf/07_AI_PERSONAS/backend/context_rules.md +0 -61
- package/.aiwf/07_AI_PERSONAS/backend/knowledge_base.md +0 -623
- package/.aiwf/07_AI_PERSONAS/data_analyst/best_practices.md +0 -32
- package/.aiwf/07_AI_PERSONAS/data_analyst/context_rules.md +0 -43
- package/.aiwf/07_AI_PERSONAS/data_analyst/knowledge_base.md +0 -36
- package/.aiwf/07_AI_PERSONAS/frontend/best_practices.md +0 -31
- package/.aiwf/07_AI_PERSONAS/frontend/context_rules.md +0 -43
- package/.aiwf/07_AI_PERSONAS/frontend/knowledge_base.md +0 -32
- package/.aiwf/07_AI_PERSONAS/security/best_practices.md +0 -63
- package/.aiwf/07_AI_PERSONAS/security/context_rules.md +0 -53
- package/.aiwf/07_AI_PERSONAS/security/knowledge_base.md +0 -93
- package/.aiwf/10_PERSONAS/active.json +0 -1
- package/.aiwf/10_STATE_OF_PROJECT/2025-07-09-07-20-solid-progress.md +0 -144
- package/.aiwf/98_PROMPTS/SAAS_DEVELOPMENT_GUIDE.md +0 -302
- package/.aiwf/98_PROMPTS/github_integration.md +0 -130
- package/.aiwf/98_PROMPTS/useful-prompts.md +0 -31
- package/.aiwf/98_PROMPTS/vibe-front-prompts.md +0 -89
- package/.aiwf/99_TEMPLATES/adr_template.md +0 -49
- package/.aiwf/99_TEMPLATES/feature_template.md +0 -263
- package/.aiwf/99_TEMPLATES/milestone_meta_template.md +0 -25
- package/.aiwf/99_TEMPLATES/project_manifest_template.md +0 -39
- package/.aiwf/99_TEMPLATES/sprint_meta_template.md +0 -23
- package/.aiwf/99_TEMPLATES/task_template.md +0 -36
- package/.aiwf/CLAUDE.md +0 -76
- package/.aiwf/ai-tools/README.md +0 -105
- package/.aiwf/ai-tools/augment/README.md +0 -371
- package/.aiwf/ai-tools/augment/config.json +0 -30
- package/.aiwf/ai-tools/augment/template/.augment/aiwf-integration.md +0 -387
- package/.aiwf/ai-tools/augment/template/.augment/augment.yaml +0 -347
- package/.aiwf/ai-tools/augment/template/augment.config.json +0 -64
- package/.aiwf/ai-tools/claude-code/README.md +0 -151
- package/.aiwf/ai-tools/claude-code/config.json +0 -28
- package/.aiwf/ai-tools/claude-code/template/CLAUDE.md +0 -91
- package/.aiwf/ai-tools/cursor/README.md +0 -314
- package/.aiwf/ai-tools/cursor/config.json +0 -29
- package/.aiwf/ai-tools/cursor/template/.cursorrules +0 -362
- package/.aiwf/ai-tools/github-copilot/README.md +0 -195
- package/.aiwf/ai-tools/github-copilot/config.json +0 -24
- package/.aiwf/ai-tools/github-copilot/template/.github/copilot-instructions.md +0 -202
- package/.aiwf/ai-tools/windsurf/README.md +0 -355
- package/.aiwf/ai-tools/windsurf/config.json +0 -29
- package/.aiwf/ai-tools/windsurf/template/.windsurf/aiwf-rules.md +0 -260
- package/.aiwf/ai-tools/windsurf/template/.windsurf/windsurf.config.js +0 -312
- package/.aiwf/ai-tools/windsurf/template/windsurf.config.json +0 -63
- package/.aiwf/config/language.json +0 -6
- package/.aiwf/feature-ledger/FL-001-authentication.json +0 -52
- package/.aiwf/feature-ledger/feature-index.json +0 -20
- package/.aiwf/installed.flag +0 -1
- package/.aiwf/metrics/metrics.json +0 -18
- package/.aiwf/personas/current.json +0 -5
- package/.aiwf/scripts/cache-templates.js +0 -209
- package/.aiwf/scripts/create-offline.js +0 -86
- package/.aiwf/scripts/create-project.js +0 -151
- package/.aiwf/scripts/feature-progress-calculator.cjs +0 -236
- package/.aiwf/scripts/git-integration.cjs +0 -391
- package/.aiwf/scripts/install-git-hooks.cjs +0 -226
- package/.aiwf/scripts/test-commit-parsing.cjs +0 -125
- package/.aiwf/scripts/update-feature-status.cjs +0 -198
- package/.aiwf/test-results-s02.json +0 -36
- package/.claude/commands/aiwf/aiwf_add_task_to_sprint.md +0 -283
- package/.claude/commands/aiwf/aiwf_changelog.md +0 -82
- package/.claude/commands/aiwf/aiwf_code_review.md +0 -88
- package/.claude/commands/aiwf/aiwf_commit.md +0 -160
- package/.claude/commands/aiwf/aiwf_compress_aggressive_persona.md +0 -53
- package/.claude/commands/aiwf/aiwf_compress_context.md +0 -116
- package/.claude/commands/aiwf/aiwf_compress_minimal_persona.md +0 -48
- package/.claude/commands/aiwf/aiwf_compress_stats.md +0 -79
- package/.claude/commands/aiwf/aiwf_compress_with_persona.md +0 -51
- package/.claude/commands/aiwf/aiwf_create_feature_ledger.md +0 -54
- package/.claude/commands/aiwf/aiwf_create_general_task.md +0 -147
- package/.claude/commands/aiwf/aiwf_create_milestone_plan.md +0 -194
- package/.claude/commands/aiwf/aiwf_create_prd.md +0 -280
- package/.claude/commands/aiwf/aiwf_create_sprint_tasks.md +0 -189
- package/.claude/commands/aiwf/aiwf_create_sprints_from_milestone.md +0 -121
- package/.claude/commands/aiwf/aiwf_default_mode.md +0 -44
- package/.claude/commands/aiwf/aiwf_discuss_review.md +0 -29
- package/.claude/commands/aiwf/aiwf_do_task.md +0 -109
- package/.claude/commands/aiwf/aiwf_docs.md +0 -225
- package/.claude/commands/aiwf/aiwf_evaluate.md +0 -92
- package/.claude/commands/aiwf/aiwf_get_feature_details.md +0 -78
- package/.claude/commands/aiwf/aiwf_infinite.md +0 -202
- package/.claude/commands/aiwf/aiwf_initialize.md +0 -134
- package/.claude/commands/aiwf/aiwf_install_git_hooks.md +0 -63
- package/.claude/commands/aiwf/aiwf_issue_create.md +0 -65
- package/.claude/commands/aiwf/aiwf_link_feature_branch.md +0 -43
- package/.claude/commands/aiwf/aiwf_link_feature_commit.md +0 -46
- package/.claude/commands/aiwf/aiwf_link_feature_to_milestone.md +0 -57
- package/.claude/commands/aiwf/aiwf_list_features.md +0 -54
- package/.claude/commands/aiwf/aiwf_mermaid.md +0 -272
- package/.claude/commands/aiwf/aiwf_persona_architect.md +0 -48
- package/.claude/commands/aiwf/aiwf_persona_backend.md +0 -37
- package/.claude/commands/aiwf/aiwf_persona_data_analyst.md +0 -37
- package/.claude/commands/aiwf/aiwf_persona_frontend.md +0 -37
- package/.claude/commands/aiwf/aiwf_persona_security.md +0 -48
- package/.claude/commands/aiwf/aiwf_persona_status.md +0 -50
- package/.claude/commands/aiwf/aiwf_pr_create.md +0 -76
- package/.claude/commands/aiwf/aiwf_prime.md +0 -9
- package/.claude/commands/aiwf/aiwf_project_review.md +0 -261
- package/.claude/commands/aiwf/aiwf_switch_language.md +0 -160
- package/.claude/commands/aiwf/aiwf_test.md +0 -124
- package/.claude/commands/aiwf/aiwf_testing_review.md +0 -198
- package/.claude/commands/aiwf/aiwf_tm-run-all-subtask.md +0 -210
- package/.claude/commands/aiwf/aiwf_ultrathink_code_advanced.md +0 -460
- package/.claude/commands/aiwf/aiwf_ultrathink_code_basic.md +0 -165
- package/.claude/commands/aiwf/aiwf_ultrathink_general.md +0 -305
- package/.claude/commands/aiwf/aiwf_update_docs_kr.md +0 -25
- package/.claude/commands/aiwf/aiwf_update_feature_status.md +0 -53
- package/.claude/commands/aiwf/aiwf_yolo.md +0 -300
- package/.eslintrc.json +0 -26
- package/.prettierrc +0 -10
- package/CLAUDE.md +0 -254
- package/RELEASE_NOTES_M02.md +0 -177
- package/TEST_RECOVERY_PLAN.md +0 -68
- package/claude-code/aiwf/en/.aiwf/00_PROJECT_MANIFEST.md +0 -49
- package/claude-code/aiwf/en/.aiwf/01_PROJECT_DOCS/ARCHITECTURE.md +0 -55
- package/claude-code/aiwf/en/.aiwf/02_REQUIREMENTS/CLAUDE.md +0 -78
- package/claude-code/aiwf/en/.aiwf/02_REQUIREMENTS/M01_Backend_Setup/M01_milestone_meta.md +0 -42
- package/claude-code/aiwf/en/.aiwf/02_REQUIREMENTS/M01_Backend_Setup/PRD_AMEND_01_Auth_Flow_Update.md +0 -73
- package/claude-code/aiwf/en/.aiwf/02_REQUIREMENTS/M01_Backend_Setup/PRD_Backend_Setup.md +0 -98
- package/claude-code/aiwf/en/.aiwf/02_REQUIREMENTS/M01_Backend_Setup/SPECS_API_V1.md +0 -232
- package/claude-code/aiwf/en/.aiwf/03_SPRINTS/CLAUDE.md +0 -83
- package/claude-code/aiwf/en/.aiwf/03_SPRINTS/S01_M01_Initial_API/S01_sprint_meta.md +0 -49
- package/claude-code/aiwf/en/.aiwf/03_SPRINTS/S01_M01_Initial_API/T01_S01_Setup_Project_Structure.md +0 -60
- package/claude-code/aiwf/en/.aiwf/04_GENERAL_TASKS/CLAUDE.md +0 -96
- package/claude-code/aiwf/en/.aiwf/04_GENERAL_TASKS/T002_API_Rate_Limiting.md +0 -54
- package/claude-code/aiwf/en/.aiwf/04_GENERAL_TASKS/TX001_Refactor_Logging_Module.md +0 -58
- package/claude-code/aiwf/en/.aiwf/05_ARCHITECTURAL_DECISIONS/ADR001_Chosen_Database_System.md +0 -119
- package/claude-code/aiwf/en/.aiwf/05_ARCHITECTURAL_DECISIONS/ADR002_API_Authentication_Method.md +0 -124
- package/claude-code/aiwf/en/.aiwf/10_STATE_OF_PROJECT/2025-06-12-12-00-needs-focus.md +0 -139
- package/claude-code/aiwf/en/.aiwf/10_STATE_OF_PROJECT/2025-06-12-12-00-test-alignment.md +0 -155
- package/claude-code/aiwf/en/.aiwf/10_STATE_OF_PROJECT/2025-06-13-00-50-solid-progress.md +0 -122
- package/claude-code/aiwf/en/.aiwf/10_STATE_OF_PROJECT/2025-06-14-08-30-infrastructure-challenges.md +0 -141
- package/claude-code/aiwf/en/.aiwf/10_STATE_OF_PROJECT/2025-06-16-21-48-critical-foundation-issues.md +0 -177
- package/claude-code/aiwf/en/.aiwf/10_STATE_OF_PROJECT/2025-06-17-15-08-solid-progress.md +0 -149
- package/claude-code/aiwf/en/.aiwf/10_STATE_OF_PROJECT/index.json +0 -5
- package/claude-code/aiwf/en/.aiwf/10_STATE_OF_PROJECT/sync-index.js +0 -78
- package/claude-code/aiwf/en/.aiwf/98_PROMPTS/github_integration.md +0 -130
- package/claude-code/aiwf/en/.aiwf/98_PROMPTS/useful-prompts.md +0 -31
- package/claude-code/aiwf/en/.aiwf/98_PROMPTS/vibe-front-prompts.md +0 -89
- package/claude-code/aiwf/en/.aiwf/99_TEMPLATES/adr_template.md +0 -49
- package/claude-code/aiwf/en/.aiwf/99_TEMPLATES/milestone_meta_template.md +0 -25
- package/claude-code/aiwf/en/.aiwf/99_TEMPLATES/project_manifest_template.md +0 -39
- package/claude-code/aiwf/en/.aiwf/99_TEMPLATES/sprint_meta_template.md +0 -23
- package/claude-code/aiwf/en/.aiwf/99_TEMPLATES/task_template.md +0 -36
- package/claude-code/aiwf/en/.aiwf/CLAUDE.md +0 -74
- package/claude-code/aiwf/en/.aiwf/README.md +0 -97
- package/claude-code/aiwf/en/.claude/CLAUDE_BE.md +0 -276
- package/claude-code/aiwf/en/.claude/commands/aiwf/aiwf_changelog.md +0 -82
- package/claude-code/aiwf/en/.claude/commands/aiwf/aiwf_code_review.md +0 -88
- package/claude-code/aiwf/en/.claude/commands/aiwf/aiwf_commit.md +0 -160
- package/claude-code/aiwf/en/.claude/commands/aiwf/aiwf_create_feature_ledger.md +0 -54
- package/claude-code/aiwf/en/.claude/commands/aiwf/aiwf_create_general_task.md +0 -147
- package/claude-code/aiwf/en/.claude/commands/aiwf/aiwf_create_milestone_plan.md +0 -194
- package/claude-code/aiwf/en/.claude/commands/aiwf/aiwf_create_prd.md +0 -272
- package/claude-code/aiwf/en/.claude/commands/aiwf/aiwf_create_sprint_tasks.md +0 -189
- package/claude-code/aiwf/en/.claude/commands/aiwf/aiwf_create_sprints_from_milestone.md +0 -121
- package/claude-code/aiwf/en/.claude/commands/aiwf/aiwf_create_testcase.md +0 -561
- package/claude-code/aiwf/en/.claude/commands/aiwf/aiwf_default_mode.md +0 -66
- package/claude-code/aiwf/en/.claude/commands/aiwf/aiwf_discuss_review.md +0 -29
- package/claude-code/aiwf/en/.claude/commands/aiwf/aiwf_do_task.md +0 -109
- package/claude-code/aiwf/en/.claude/commands/aiwf/aiwf_docs.md +0 -225
- package/claude-code/aiwf/en/.claude/commands/aiwf/aiwf_get_feature_details.md +0 -78
- package/claude-code/aiwf/en/.claude/commands/aiwf/aiwf_infinite.md +0 -202
- package/claude-code/aiwf/en/.claude/commands/aiwf/aiwf_initialize.md +0 -134
- package/claude-code/aiwf/en/.claude/commands/aiwf/aiwf_issue_create.md +0 -65
- package/claude-code/aiwf/en/.claude/commands/aiwf/aiwf_link_feature_to_milestone.md +0 -57
- package/claude-code/aiwf/en/.claude/commands/aiwf/aiwf_list_features.md +0 -54
- package/claude-code/aiwf/en/.claude/commands/aiwf/aiwf_mermaid.md +0 -272
- package/claude-code/aiwf/en/.claude/commands/aiwf/aiwf_persona_architect.md +0 -60
- package/claude-code/aiwf/en/.claude/commands/aiwf/aiwf_persona_backend.md +0 -60
- package/claude-code/aiwf/en/.claude/commands/aiwf/aiwf_persona_data_analyst.md +0 -60
- package/claude-code/aiwf/en/.claude/commands/aiwf/aiwf_persona_frontend.md +0 -60
- package/claude-code/aiwf/en/.claude/commands/aiwf/aiwf_persona_security.md +0 -60
- package/claude-code/aiwf/en/.claude/commands/aiwf/aiwf_persona_status.md +0 -72
- package/claude-code/aiwf/en/.claude/commands/aiwf/aiwf_pr_create.md +0 -76
- package/claude-code/aiwf/en/.claude/commands/aiwf/aiwf_prime.md +0 -9
- package/claude-code/aiwf/en/.claude/commands/aiwf/aiwf_project_review.md +0 -261
- package/claude-code/aiwf/en/.claude/commands/aiwf/aiwf_switch_language.md +0 -160
- package/claude-code/aiwf/en/.claude/commands/aiwf/aiwf_test.md +0 -125
- package/claude-code/aiwf/en/.claude/commands/aiwf/aiwf_testing_review.md +0 -198
- package/claude-code/aiwf/en/.claude/commands/aiwf/aiwf_tm-run-all-subtask.md +0 -206
- package/claude-code/aiwf/en/.claude/commands/aiwf/aiwf_ultrathink_code_advanced.md +0 -460
- package/claude-code/aiwf/en/.claude/commands/aiwf/aiwf_ultrathink_code_basic.md +0 -165
- package/claude-code/aiwf/en/.claude/commands/aiwf/aiwf_ultrathink_general.md +0 -362
- package/claude-code/aiwf/en/.claude/commands/aiwf/aiwf_update_feature_status.md +0 -53
- package/claude-code/aiwf/en/.claude/commands/aiwf/aiwf_yolo.md +0 -300
- package/claude-code/aiwf/en/.claude/mcp.json +0 -31
- package/claude-code/aiwf/en/.claude/settings.json +0 -102
- package/claude-code/aiwf/en/commands/ai-persona.js +0 -667
- package/claude-code/aiwf/en/commands/compress-context.js +0 -355
- package/claude-code/aiwf/en/commands/feature-ledger.js +0 -565
- package/claude-code/aiwf/en/config/commit-patterns.js +0 -103
- package/claude-code/aiwf/en/hooks/install-hooks.sh +0 -100
- package/claude-code/aiwf/en/hooks/post-commit +0 -84
- package/claude-code/aiwf/en/tests/compression-test-suite.js +0 -1252
- package/claude-code/aiwf/en/tests/test-git-integration.js +0 -164
- package/claude-code/aiwf/en/tests/token-tracking.test.js +0 -537
- package/claude-code/aiwf/en/utils/context-compressor.js +0 -583
- package/claude-code/aiwf/en/utils/git-utils.js +0 -220
- package/claude-code/aiwf/en/utils/text-summarizer.js +0 -487
- package/claude-code/aiwf/ko/.aiwf/00_PROJECT_MANIFEST.md +0 -49
- package/claude-code/aiwf/ko/.aiwf/01_PROJECT_DOCS/ARCHITECTURE.md +0 -55
- package/claude-code/aiwf/ko/.aiwf/02_REQUIREMENTS/CLAUDE.md +0 -78
- package/claude-code/aiwf/ko/.aiwf/02_REQUIREMENTS/M01_Backend_Setup/M01_milestone_meta.md +0 -42
- package/claude-code/aiwf/ko/.aiwf/02_REQUIREMENTS/M01_Backend_Setup/PRD_AMEND_01_Auth_Flow_Update.md +0 -73
- package/claude-code/aiwf/ko/.aiwf/02_REQUIREMENTS/M01_Backend_Setup/PRD_Backend_Setup.md +0 -98
- package/claude-code/aiwf/ko/.aiwf/02_REQUIREMENTS/M01_Backend_Setup/SPECS_API_V1.md +0 -232
- package/claude-code/aiwf/ko/.aiwf/03_SPRINTS/CLAUDE.md +0 -83
- package/claude-code/aiwf/ko/.aiwf/03_SPRINTS/S01_M01_Initial_API/S01_sprint_meta.md +0 -49
- package/claude-code/aiwf/ko/.aiwf/03_SPRINTS/S01_M01_Initial_API/T01_S01_Setup_Project_Structure.md +0 -60
- package/claude-code/aiwf/ko/.aiwf/04_GENERAL_TASKS/CLAUDE.md +0 -96
- package/claude-code/aiwf/ko/.aiwf/04_GENERAL_TASKS/T002_API_Rate_Limiting.md +0 -54
- package/claude-code/aiwf/ko/.aiwf/04_GENERAL_TASKS/TX001_Refactor_Logging_Module.md +0 -58
- package/claude-code/aiwf/ko/.aiwf/05_ARCHITECTURAL_DECISIONS/ADR001_Chosen_Database_System.md +0 -119
- package/claude-code/aiwf/ko/.aiwf/05_ARCHITECTURAL_DECISIONS/ADR002_API_Authentication_Method.md +0 -124
- package/claude-code/aiwf/ko/.aiwf/06_FEATURE_LEDGERS/FEATURE_ID_GENERATOR.md +0 -138
- package/claude-code/aiwf/ko/.aiwf/06_FEATURE_LEDGERS/FEATURE_INDEX.md +0 -186
- package/claude-code/aiwf/ko/.aiwf/06_FEATURE_LEDGERS/FEATURE_METADATA.md +0 -240
- package/claude-code/aiwf/ko/.aiwf/06_FEATURE_LEDGERS/FEATURE_WORKFLOW.md +0 -183
- package/claude-code/aiwf/ko/.aiwf/06_FEATURE_LEDGERS/README.md +0 -94
- package/claude-code/aiwf/ko/.aiwf/06_FEATURE_LEDGERS/active/FL001_/354/202/254/354/232/251/354/236/220_/354/235/270/354/246/235_/354/213/234/354/212/244/355/205/234.md +0 -154
- package/claude-code/aiwf/ko/.aiwf/06_FEATURE_LEDGERS/active/FL002_ai_/355/216/230/353/245/264/354/206/214/353/202/230_/354/213/234/354/212/244/355/205/234.md +0 -272
- package/claude-code/aiwf/ko/.aiwf/06_FEATURE_LEDGERS/completed/FL003_/353/213/244/352/265/255/354/226/264_/353/252/205/353/240/271/354/226/264_/355/221/234/354/244/200/355/231/224.md +0 -266
- package/claude-code/aiwf/ko/.aiwf/06_FEATURE_LEDGERS/schemas/feature_schema.json +0 -122
- package/claude-code/aiwf/ko/.aiwf/06_FEATURE_LEDGERS/schemas/feature_validator.cjs +0 -406
- package/claude-code/aiwf/ko/.aiwf/10_STATE_OF_PROJECT/2025-06-12-12-00-needs-focus.md +0 -139
- package/claude-code/aiwf/ko/.aiwf/10_STATE_OF_PROJECT/2025-06-12-12-00-test-alignment.md +0 -155
- package/claude-code/aiwf/ko/.aiwf/10_STATE_OF_PROJECT/2025-06-13-00-50-solid-progress.md +0 -122
- package/claude-code/aiwf/ko/.aiwf/10_STATE_OF_PROJECT/2025-06-14-08-30-infrastructure-challenges.md +0 -141
- package/claude-code/aiwf/ko/.aiwf/10_STATE_OF_PROJECT/2025-06-16-21-48-critical-foundation-issues.md +0 -177
- package/claude-code/aiwf/ko/.aiwf/10_STATE_OF_PROJECT/2025-06-17-15-08-solid-progress.md +0 -149
- package/claude-code/aiwf/ko/.aiwf/10_STATE_OF_PROJECT/index.json +0 -5
- package/claude-code/aiwf/ko/.aiwf/10_STATE_OF_PROJECT/sync-index.js +0 -78
- package/claude-code/aiwf/ko/.aiwf/98_PROMPTS/github_integration.md +0 -130
- package/claude-code/aiwf/ko/.aiwf/98_PROMPTS/useful-prompts.md +0 -31
- package/claude-code/aiwf/ko/.aiwf/98_PROMPTS/vibe-front-prompts.md +0 -89
- package/claude-code/aiwf/ko/.aiwf/99_TEMPLATES/adr_template.md +0 -49
- package/claude-code/aiwf/ko/.aiwf/99_TEMPLATES/milestone_meta_template.md +0 -25
- package/claude-code/aiwf/ko/.aiwf/99_TEMPLATES/project_manifest_template.md +0 -39
- package/claude-code/aiwf/ko/.aiwf/99_TEMPLATES/sprint_meta_template.md +0 -23
- package/claude-code/aiwf/ko/.aiwf/99_TEMPLATES/task_template.md +0 -36
- package/claude-code/aiwf/ko/.aiwf/CLAUDE.md +0 -76
- package/claude-code/aiwf/ko/.aiwf/README.md +0 -97
- package/claude-code/aiwf/ko/.claude/CLAUDE_BE.md +0 -276
- package/claude-code/aiwf/ko/.claude/commands/aiwf/aiwf_changelog.md +0 -82
- package/claude-code/aiwf/ko/.claude/commands/aiwf/aiwf_code_review.md +0 -88
- package/claude-code/aiwf/ko/.claude/commands/aiwf/aiwf_commit.md +0 -160
- package/claude-code/aiwf/ko/.claude/commands/aiwf/aiwf_compress_aggressive_persona.md +0 -53
- package/claude-code/aiwf/ko/.claude/commands/aiwf/aiwf_compress_context.md +0 -116
- package/claude-code/aiwf/ko/.claude/commands/aiwf/aiwf_compress_minimal_persona.md +0 -48
- package/claude-code/aiwf/ko/.claude/commands/aiwf/aiwf_compress_stats.md +0 -79
- package/claude-code/aiwf/ko/.claude/commands/aiwf/aiwf_compress_with_persona.md +0 -51
- package/claude-code/aiwf/ko/.claude/commands/aiwf/aiwf_create_feature_ledger.md +0 -54
- package/claude-code/aiwf/ko/.claude/commands/aiwf/aiwf_create_general_task.md +0 -147
- package/claude-code/aiwf/ko/.claude/commands/aiwf/aiwf_create_milestone_plan.md +0 -194
- package/claude-code/aiwf/ko/.claude/commands/aiwf/aiwf_create_prd.md +0 -280
- package/claude-code/aiwf/ko/.claude/commands/aiwf/aiwf_create_sprint_tasks.md +0 -189
- package/claude-code/aiwf/ko/.claude/commands/aiwf/aiwf_create_sprints_from_milestone.md +0 -121
- package/claude-code/aiwf/ko/.claude/commands/aiwf/aiwf_create_testcase.md +0 -561
- package/claude-code/aiwf/ko/.claude/commands/aiwf/aiwf_default_mode.md +0 -44
- package/claude-code/aiwf/ko/.claude/commands/aiwf/aiwf_discuss_review.md +0 -29
- package/claude-code/aiwf/ko/.claude/commands/aiwf/aiwf_do_task.md +0 -109
- package/claude-code/aiwf/ko/.claude/commands/aiwf/aiwf_docs.md +0 -225
- package/claude-code/aiwf/ko/.claude/commands/aiwf/aiwf_evaluate.md +0 -92
- package/claude-code/aiwf/ko/.claude/commands/aiwf/aiwf_get_feature_details.md +0 -78
- package/claude-code/aiwf/ko/.claude/commands/aiwf/aiwf_infinite.md +0 -202
- package/claude-code/aiwf/ko/.claude/commands/aiwf/aiwf_initialize.md +0 -134
- package/claude-code/aiwf/ko/.claude/commands/aiwf/aiwf_issue_create.md +0 -65
- package/claude-code/aiwf/ko/.claude/commands/aiwf/aiwf_link_feature_to_milestone.md +0 -57
- package/claude-code/aiwf/ko/.claude/commands/aiwf/aiwf_list_features.md +0 -54
- package/claude-code/aiwf/ko/.claude/commands/aiwf/aiwf_mermaid.md +0 -272
- package/claude-code/aiwf/ko/.claude/commands/aiwf/aiwf_persona_architect.md +0 -48
- package/claude-code/aiwf/ko/.claude/commands/aiwf/aiwf_persona_backend.md +0 -37
- package/claude-code/aiwf/ko/.claude/commands/aiwf/aiwf_persona_data_analyst.md +0 -37
- package/claude-code/aiwf/ko/.claude/commands/aiwf/aiwf_persona_frontend.md +0 -37
- package/claude-code/aiwf/ko/.claude/commands/aiwf/aiwf_persona_security.md +0 -48
- package/claude-code/aiwf/ko/.claude/commands/aiwf/aiwf_persona_status.md +0 -50
- package/claude-code/aiwf/ko/.claude/commands/aiwf/aiwf_pr_create.md +0 -76
- package/claude-code/aiwf/ko/.claude/commands/aiwf/aiwf_prime.md +0 -9
- package/claude-code/aiwf/ko/.claude/commands/aiwf/aiwf_project_review.md +0 -261
- package/claude-code/aiwf/ko/.claude/commands/aiwf/aiwf_switch_language.md +0 -160
- package/claude-code/aiwf/ko/.claude/commands/aiwf/aiwf_test.md +0 -124
- package/claude-code/aiwf/ko/.claude/commands/aiwf/aiwf_testing_review.md +0 -198
- package/claude-code/aiwf/ko/.claude/commands/aiwf/aiwf_tm-run-all-subtask.md +0 -210
- package/claude-code/aiwf/ko/.claude/commands/aiwf/aiwf_ultrathink_code_advanced.md +0 -460
- package/claude-code/aiwf/ko/.claude/commands/aiwf/aiwf_ultrathink_code_basic.md +0 -165
- package/claude-code/aiwf/ko/.claude/commands/aiwf/aiwf_ultrathink_general.md +0 -305
- package/claude-code/aiwf/ko/.claude/commands/aiwf/aiwf_update_docs_kr.md +0 -25
- package/claude-code/aiwf/ko/.claude/commands/aiwf/aiwf_update_feature_status.md +0 -53
- package/claude-code/aiwf/ko/.claude/commands/aiwf/aiwf_yolo.md +0 -300
- package/claude-code/aiwf/ko/.claude/mcp.json +0 -31
- package/claude-code/aiwf/ko/.claude/settings.json +0 -102
- package/claude-code/aiwf/ko/CLAUDE.md +0 -76
- package/claude-code/aiwf/ko/ai-tools/README.md +0 -105
- package/claude-code/aiwf/ko/ai-tools/augment/README.md +0 -371
- package/claude-code/aiwf/ko/ai-tools/augment/config.json +0 -30
- package/claude-code/aiwf/ko/ai-tools/augment/template/.augment/aiwf-integration.md +0 -387
- package/claude-code/aiwf/ko/ai-tools/augment/template/.augment/augment.yaml +0 -347
- package/claude-code/aiwf/ko/ai-tools/augment/template/augment.config.json +0 -64
- package/claude-code/aiwf/ko/ai-tools/claude-code/README.md +0 -151
- package/claude-code/aiwf/ko/ai-tools/claude-code/config.json +0 -28
- package/claude-code/aiwf/ko/ai-tools/claude-code/template/CLAUDE.md +0 -91
- package/claude-code/aiwf/ko/ai-tools/cursor/README.md +0 -314
- package/claude-code/aiwf/ko/ai-tools/cursor/config.json +0 -29
- package/claude-code/aiwf/ko/ai-tools/cursor/template/.cursorrules +0 -362
- package/claude-code/aiwf/ko/ai-tools/github-copilot/README.md +0 -195
- package/claude-code/aiwf/ko/ai-tools/github-copilot/config.json +0 -24
- package/claude-code/aiwf/ko/ai-tools/github-copilot/template/.github/copilot-instructions.md +0 -202
- package/claude-code/aiwf/ko/ai-tools/windsurf/README.md +0 -355
- package/claude-code/aiwf/ko/ai-tools/windsurf/config.json +0 -29
- package/claude-code/aiwf/ko/ai-tools/windsurf/template/.windsurf/aiwf-rules.md +0 -260
- package/claude-code/aiwf/ko/ai-tools/windsurf/template/.windsurf/windsurf.config.js +0 -312
- package/claude-code/aiwf/ko/ai-tools/windsurf/template/windsurf.config.json +0 -63
- package/claude-code/aiwf/ko/commands/feature_commit_report.js +0 -370
- package/claude-code/aiwf/ko/commands/scan_git_history.js +0 -234
- package/claude-code/aiwf/ko/commands/sync_feature_commits.js +0 -154
- package/claude-code/aiwf/ko/commands/token-tracking.js +0 -443
- package/claude-code/aiwf/ko/feature-ledger/FL-001-authentication.json +0 -52
- package/claude-code/aiwf/ko/feature-ledger/feature-index.json +0 -20
- package/claude-code/aiwf/ko/hooks/install-hooks.sh +0 -100
- package/claude-code/aiwf/ko/hooks/post-commit +0 -84
- package/claude-code/aiwf/ko/personas/PERSONA_INDEX.md +0 -57
- package/claude-code/aiwf/ko/personas/analyst.json +0 -44
- package/claude-code/aiwf/ko/personas/architect/best_practices.md +0 -136
- package/claude-code/aiwf/ko/personas/architect/knowledge_base.md +0 -377
- package/claude-code/aiwf/ko/personas/architect.json +0 -44
- package/claude-code/aiwf/ko/personas/backend/best_practices.md +0 -766
- package/claude-code/aiwf/ko/personas/backend/knowledge_base.md +0 -1070
- package/claude-code/aiwf/ko/personas/data_analyst/best_practices.md +0 -594
- package/claude-code/aiwf/ko/personas/data_analyst/knowledge_base.md +0 -1057
- package/claude-code/aiwf/ko/personas/developer.json +0 -44
- package/claude-code/aiwf/ko/personas/developer.md +0 -37
- package/claude-code/aiwf/ko/personas/evaluation_criteria.json +0 -137
- package/claude-code/aiwf/ko/personas/frontend/best_practices.md +0 -445
- package/claude-code/aiwf/ko/personas/frontend/knowledge_base.md +0 -729
- package/claude-code/aiwf/ko/personas/persona-index.json +0 -31
- package/claude-code/aiwf/ko/personas/reviewer.json +0 -44
- package/claude-code/aiwf/ko/personas/security/best_practices.md +0 -307
- package/claude-code/aiwf/ko/personas/security/knowledge_base.md +0 -498
- package/claude-code/aiwf/ko/personas/tester.json +0 -44
- package/claude-code/aiwf/ko/scripts/cache-templates.js +0 -209
- package/claude-code/aiwf/ko/scripts/create-offline.js +0 -86
- package/claude-code/aiwf/ko/scripts/create-project.js +0 -151
- package/claude-code/aiwf/ko/scripts/feature-progress-calculator.cjs +0 -236
- package/claude-code/aiwf/ko/scripts/git-integration.cjs +0 -391
- package/claude-code/aiwf/ko/scripts/install-git-hooks.cjs +0 -226
- package/claude-code/aiwf/ko/scripts/test-commit-parsing.cjs +0 -125
- package/claude-code/aiwf/ko/scripts/update-feature-status.cjs +0 -198
- package/claude-code/aiwf/ko/tests/compression-test-suite.js +0 -1252
- package/claude-code/aiwf/ko/tests/test-git-integration.js +0 -164
- package/claude-code/aiwf/ko/tests/token-tracking.test.js +0 -537
- package/claude-code/aiwf/ko/utils/compression-metrics.js +0 -1031
- package/claude-code/aiwf/ko/utils/compression-strategies.js +0 -557
- package/claude-code/aiwf/ko/utils/content-normalizer.js +0 -455
- package/claude-code/aiwf/ko/utils/feature-updater.js +0 -271
- package/claude-code/aiwf/ko/utils/importance-classifier.js +0 -645
- package/claude-code/aiwf/ko/utils/information-filter.js +0 -710
- package/claude-code/aiwf/ko/utils/token-counter.js +0 -177
- package/claude-code/aiwf/ko/utils/token-monitor.js +0 -484
- package/claude-code/aiwf/ko/utils/token-reporter.js +0 -453
- package/claude-code/aiwf/ko/utils/token-storage.js +0 -433
- package/claude-code/aiwf/ko/utils/token-tracker.js +0 -283
- package/claude-code/docker/Dockerfile +0 -117
- package/jest.config.js +0 -23
- package/scripts/update-feature-status.js +0 -70
- package/tests/application.test.js +0 -260
- package/tests/basic.test.js +0 -62
- package/tests/commands.test.js +0 -127
- package/tests/installer.test.js +0 -129
- package/tests/integration/ai-persona-system.test.js +0 -396
- package/tests/integration/ai-persona.test.js +0 -390
- package/tests/integration/command-integration.test.js +0 -600
- package/tests/integration/context-compression.test.js +0 -361
- package/tests/integration/feature-ledger.test.js +0 -226
- package/tests/integration/git-integration.test.js +0 -307
- package/tests/integration/m02-milestone.test.js +0 -420
- package/tests/integration/persona-context-application.test.js +0 -508
- package/tests/integration/setup.js +0 -174
- package/tests/integration/test-persona-aware-compression.js +0 -93
- package/tests/integration/test-persona-system/.aiwf/metrics/metrics.json +0 -833
- package/tests/integration/test-persona-system/docs/README.md +0 -1
- package/tests/integration/test-persona-system/package.json +0 -1
- package/tests/integration/test-persona-system/src/auth.js +0 -1
- package/tests/integration/test-persona-system/src/index.js +0 -1
- package/tests/integration/test-persona-system/test/test.js +0 -1
- package/tests/language-utils.test.js +0 -287
- package/tests/s02-integration.test.js +0 -422
- package/tests/unit/ai-persona-manager.test.js +0 -514
- package/tests/unit/sprint-task.test.js +0 -172
- /package/{claude-code/aiwf/ko β src/lib/resources}/commands/compress-context.js +0 -0
- /package/{claude-code/aiwf/ko β src/lib/resources}/commands/evaluate.js +0 -0
- /package/{claude-code/aiwf/ko β src/lib/resources}/commands/feature-ledger.js +0 -0
- /package/{claude-code/aiwf/en β src/lib/resources}/commands/feature_commit_report.js +0 -0
- /package/{claude-code/aiwf/ko β src/lib/resources}/commands/persona-context-apply.js +0 -0
- /package/{claude-code/aiwf/en β src/lib/resources}/commands/scan_git_history.js +0 -0
- /package/{claude-code/aiwf/en β src/lib/resources}/commands/sync_feature_commits.js +0 -0
- /package/{claude-code/aiwf/en β src/lib/resources}/commands/token-tracking.js +0 -0
- /package/{claude-code/aiwf/ko β src/lib/resources}/config/commit-patterns.js +0 -0
- /package/{claude-code/aiwf/ko β src/lib/resources}/config/language.json +0 -0
- /package/{.aiwf/07_AI_PERSONAS β src/lib/resources/personas}/PERSONA_INDEX.md +0 -0
- /package/{.aiwf β src/lib/resources}/personas/analyst.json +0 -0
- /package/{.aiwf β src/lib/resources}/personas/architect/best_practices.md +0 -0
- /package/{.aiwf β src/lib/resources}/personas/architect/knowledge_base.md +0 -0
- /package/{.aiwf β src/lib/resources}/personas/architect.json +0 -0
- /package/{.aiwf β src/lib/resources}/personas/backend/best_practices.md +0 -0
- /package/{.aiwf β src/lib/resources}/personas/backend/knowledge_base.md +0 -0
- /package/{.aiwf β src/lib/resources}/personas/data_analyst/best_practices.md +0 -0
- /package/{.aiwf β src/lib/resources}/personas/data_analyst/knowledge_base.md +0 -0
- /package/{.aiwf β src/lib/resources}/personas/developer.json +0 -0
- /package/{.aiwf/10_PERSONAS β src/lib/resources/personas}/developer.md +0 -0
- /package/{.aiwf β src/lib/resources}/personas/evaluation_criteria.json +0 -0
- /package/{.aiwf β src/lib/resources}/personas/frontend/best_practices.md +0 -0
- /package/{.aiwf β src/lib/resources}/personas/frontend/knowledge_base.md +0 -0
- /package/{.aiwf β src/lib/resources}/personas/persona-index.json +0 -0
- /package/{.aiwf β src/lib/resources}/personas/reviewer.json +0 -0
- /package/{.aiwf β src/lib/resources}/personas/security/best_practices.md +0 -0
- /package/{.aiwf β src/lib/resources}/personas/security/knowledge_base.md +0 -0
- /package/{.aiwf β src/lib/resources}/personas/tester.json +0 -0
- /package/{claude-code/aiwf/ko β src/lib/resources}/templates/README.md +0 -0
- /package/{claude-code/aiwf/ko β src/lib/resources}/templates/api-server/config.json +0 -0
- /package/{claude-code/aiwf/ko β src/lib/resources}/templates/api-server/template/.aiwf/config.json +0 -0
- /package/{claude-code/aiwf/ko β src/lib/resources}/templates/api-server/template/.aiwf/feature-ledger.json +0 -0
- /package/{claude-code/aiwf/ko β src/lib/resources}/templates/api-server/template/.aiwf/personas/backend-engineer.json +0 -0
- /package/{claude-code/aiwf/ko β src/lib/resources}/templates/api-server/template/.aiwf/scripts/cli.js +0 -0
- /package/{claude-code/aiwf/ko β src/lib/resources}/templates/api-server/template/.env.example +0 -0
- /package/{claude-code/aiwf/ko β src/lib/resources}/templates/api-server/template/.eslintrc.json +0 -0
- /package/{claude-code/aiwf/ko β src/lib/resources}/templates/api-server/template/README.md +0 -0
- /package/{claude-code/aiwf/ko β src/lib/resources}/templates/api-server/template/jest.config.js +0 -0
- /package/{claude-code/aiwf/ko β src/lib/resources}/templates/api-server/template/nodemon.json +0 -0
- /package/{claude-code/aiwf/ko β src/lib/resources}/templates/api-server/template/package.json +0 -0
- /package/{claude-code/aiwf/ko β src/lib/resources}/templates/api-server/template/src/app.ts +0 -0
- /package/{claude-code/aiwf/ko β src/lib/resources}/templates/api-server/template/src/config/swagger.ts +0 -0
- /package/{claude-code/aiwf/ko β src/lib/resources}/templates/api-server/template/src/controllers/aiwfController.ts +0 -0
- /package/{claude-code/aiwf/ko β src/lib/resources}/templates/api-server/template/src/controllers/authController.ts +0 -0
- /package/{claude-code/aiwf/ko β src/lib/resources}/templates/api-server/template/src/controllers/statusController.ts +0 -0
- /package/{claude-code/aiwf/ko β src/lib/resources}/templates/api-server/template/src/index.ts +0 -0
- /package/{claude-code/aiwf/ko β src/lib/resources}/templates/api-server/template/src/middleware/aiwfMiddleware.ts +0 -0
- /package/{claude-code/aiwf/ko β src/lib/resources}/templates/api-server/template/src/middleware/authMiddleware.ts +0 -0
- /package/{claude-code/aiwf/ko β src/lib/resources}/templates/api-server/template/src/middleware/errorHandler.ts +0 -0
- /package/{claude-code/aiwf/ko β src/lib/resources}/templates/api-server/template/src/middleware/notFoundHandler.ts +0 -0
- /package/{claude-code/aiwf/ko β src/lib/resources}/templates/api-server/template/src/middleware/requestLogger.ts +0 -0
- /package/{claude-code/aiwf/ko β src/lib/resources}/templates/api-server/template/src/routes/aiwf.ts +0 -0
- /package/{claude-code/aiwf/ko β src/lib/resources}/templates/api-server/template/src/routes/index.ts +0 -0
- /package/{claude-code/aiwf/ko β src/lib/resources}/templates/api-server/template/src/routes/v1/index.ts +0 -0
- /package/{claude-code/aiwf/ko β src/lib/resources}/templates/api-server/template/src/utils/logger.ts +0 -0
- /package/{claude-code/aiwf/ko β src/lib/resources}/templates/api-server/template/tests/app.test.ts +0 -0
- /package/{claude-code/aiwf/ko β src/lib/resources}/templates/api-server/template/tsconfig.json +0 -0
- /package/{claude-code/aiwf/ko β src/lib/resources}/templates/npm-library/config.json +0 -0
- /package/{claude-code/aiwf/ko β src/lib/resources}/templates/npm-library/template/LICENSE +0 -0
- /package/{claude-code/aiwf/ko β src/lib/resources}/templates/npm-library/template/README.md +0 -0
- /package/{claude-code/aiwf/ko β src/lib/resources}/templates/npm-library/template/package.json +0 -0
- /package/{claude-code/aiwf/ko β src/lib/resources}/templates/web-app/config.json +0 -0
- /package/{claude-code/aiwf/ko β src/lib/resources}/templates/web-app/template/.aiwf/config.json +0 -0
- /package/{claude-code/aiwf/ko β src/lib/resources}/templates/web-app/template/.aiwf/feature-ledger.json +0 -0
- /package/{claude-code/aiwf/ko β src/lib/resources}/templates/web-app/template/.aiwf/personas/fullstack-developer.json +0 -0
- /package/{claude-code/aiwf/ko β src/lib/resources}/templates/web-app/template/.aiwf/scripts/cli.js +0 -0
- /package/{claude-code/aiwf/ko β src/lib/resources}/templates/web-app/template/.eslintrc.cjs +0 -0
- /package/{claude-code/aiwf/ko β src/lib/resources}/templates/web-app/template/README.md +0 -0
- /package/{claude-code/aiwf/ko β src/lib/resources}/templates/web-app/template/index.html +0 -0
- /package/{claude-code/aiwf/ko β src/lib/resources}/templates/web-app/template/package.json +0 -0
- /package/{claude-code/aiwf/ko β src/lib/resources}/templates/web-app/template/postcss.config.js +0 -0
- /package/{claude-code/aiwf/ko β src/lib/resources}/templates/web-app/template/public/vite.svg +0 -0
- /package/{claude-code/aiwf/ko β src/lib/resources}/templates/web-app/template/src/App.tsx +0 -0
- /package/{claude-code/aiwf/ko β src/lib/resources}/templates/web-app/template/src/components/Layout.tsx +0 -0
- /package/{claude-code/aiwf/ko β src/lib/resources}/templates/web-app/template/src/components/aiwf/ContextStatus.tsx +0 -0
- /package/{claude-code/aiwf/ko β src/lib/resources}/templates/web-app/template/src/components/aiwf/FeatureLedger.tsx +0 -0
- /package/{claude-code/aiwf/ko β src/lib/resources}/templates/web-app/template/src/components/aiwf/TokenUsage.tsx +0 -0
- /package/{claude-code/aiwf/ko β src/lib/resources}/templates/web-app/template/src/index.css +0 -0
- /package/{claude-code/aiwf/ko β src/lib/resources}/templates/web-app/template/src/main.tsx +0 -0
- /package/{claude-code/aiwf/ko β src/lib/resources}/templates/web-app/template/src/pages/AiwfDashboard.tsx +0 -0
- /package/{claude-code/aiwf/ko β src/lib/resources}/templates/web-app/template/src/pages/HomePage.tsx +0 -0
- /package/{claude-code/aiwf/ko β src/lib/resources}/templates/web-app/template/src/pages/NotFound.tsx +0 -0
- /package/{claude-code/aiwf/ko β src/lib/resources}/templates/web-app/template/src/stores/aiwfStore.ts +0 -0
- /package/{claude-code/aiwf/ko β src/lib/resources}/templates/web-app/template/src/types/global.d.ts +0 -0
- /package/{claude-code/aiwf/ko β src/lib/resources}/templates/web-app/template/src/vite-env.d.ts +0 -0
- /package/{claude-code/aiwf/ko β src/lib/resources}/templates/web-app/template/tailwind.config.js +0 -0
- /package/{claude-code/aiwf/ko β src/lib/resources}/templates/web-app/template/tsconfig.json +0 -0
- /package/{claude-code/aiwf/ko β src/lib/resources}/templates/web-app/template/tsconfig.node.json +0 -0
- /package/{claude-code/aiwf/ko β src/lib/resources}/templates/web-app/template/vite.config.ts +0 -0
- /package/{claude-code/aiwf/ko β src/lib/resources}/utils/background-monitor.js +0 -0
- /package/{claude-code/aiwf/en β src/lib/resources}/utils/compression-metrics.js +0 -0
- /package/{claude-code/aiwf/en β src/lib/resources}/utils/compression-strategies.js +0 -0
- /package/{claude-code/aiwf/en β src/lib/resources}/utils/content-normalizer.js +0 -0
- /package/{claude-code/aiwf/ko β src/lib/resources}/utils/context-compressor.js +0 -0
- /package/{claude-code/aiwf/ko β src/lib/resources}/utils/context-rule-parser.js +0 -0
- /package/{claude-code/aiwf/ko β src/lib/resources}/utils/context-token-monitor.js +0 -0
- /package/{claude-code/aiwf/ko β src/lib/resources}/utils/context-update-manager.js +0 -0
- /package/{claude-code/aiwf/en β src/lib/resources}/utils/feature-updater.js +0 -0
- /package/{claude-code/aiwf/ko β src/lib/resources}/utils/git-utils.js +0 -0
- /package/{claude-code/aiwf/en β src/lib/resources}/utils/importance-classifier.js +0 -0
- /package/{claude-code/aiwf/en β src/lib/resources}/utils/information-filter.js +0 -0
- /package/{claude-code/aiwf/ko β src/lib/resources}/utils/persona-aware-compressor.js +0 -0
- /package/{claude-code/aiwf/ko β src/lib/resources}/utils/prompt-injector.js +0 -0
- /package/{claude-code/aiwf/ko β src/lib/resources}/utils/simplified-evaluator.js +0 -0
- /package/{claude-code/aiwf/ko β src/lib/resources}/utils/text-summarizer.js +0 -0
- /package/{claude-code/aiwf/en β src/lib/resources}/utils/token-counter.js +0 -0
- /package/{claude-code/aiwf/en β src/lib/resources}/utils/token-monitor.js +0 -0
- /package/{claude-code/aiwf/en β src/lib/resources}/utils/token-reporter.js +0 -0
- /package/{claude-code/aiwf/en β src/lib/resources}/utils/token-storage.js +0 -0
- /package/{claude-code/aiwf/en β src/lib/resources}/utils/token-tracker.js +0 -0
|
@@ -0,0 +1,267 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* AIWF νμΌ λͺ©λ‘ μλ μ
λ°μ΄νΈ μ€ν¬λ¦½νΈ
|
|
5
|
+
*
|
|
6
|
+
* μ΄ μ€ν¬λ¦½νΈλ claude-code λλ ν 리λ₯Ό μ€μΊνμ¬
|
|
7
|
+
* src/config/file-lists.js νμΌμ μλμΌλ‘ μ
λ°μ΄νΈν©λλ€.
|
|
8
|
+
*
|
|
9
|
+
* μ¬μ©λ²:
|
|
10
|
+
* npm run update:file-lists
|
|
11
|
+
* npm run update:file-lists -- --dry-run # 미리보기λ§
|
|
12
|
+
*/
|
|
13
|
+
|
|
14
|
+
import fs from 'fs/promises';
|
|
15
|
+
import path from 'path';
|
|
16
|
+
import { fileURLToPath } from 'url';
|
|
17
|
+
import chalk from 'chalk';
|
|
18
|
+
|
|
19
|
+
const __filename = fileURLToPath(import.meta.url);
|
|
20
|
+
const __dirname = path.dirname(__filename);
|
|
21
|
+
const ROOT_DIR = path.resolve(__dirname, '..');
|
|
22
|
+
|
|
23
|
+
// μ€μΊν λλ ν 리 κ²½λ‘λ€
|
|
24
|
+
const SCAN_PATHS = {
|
|
25
|
+
commands: {
|
|
26
|
+
en: path.join(ROOT_DIR, 'claude-code/aiwf/en/.claude/commands/aiwf'),
|
|
27
|
+
ko: path.join(ROOT_DIR, 'claude-code/aiwf/ko/.claude/commands/aiwf')
|
|
28
|
+
},
|
|
29
|
+
globalRules: path.join(ROOT_DIR, 'rules/global'),
|
|
30
|
+
manualRules: path.join(ROOT_DIR, 'rules/manual')
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
const OUTPUT_FILE = path.join(ROOT_DIR, 'src/config/file-lists.js');
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* λλ ν 리μμ .md νμΌλ€μ μ€μΊ
|
|
37
|
+
*/
|
|
38
|
+
async function scanDirectory(dirPath) {
|
|
39
|
+
try {
|
|
40
|
+
const files = await fs.readdir(dirPath);
|
|
41
|
+
return files
|
|
42
|
+
.filter(file => file.endsWith('.md'))
|
|
43
|
+
.sort();
|
|
44
|
+
} catch (error) {
|
|
45
|
+
console.warn(chalk.yellow(`Warning: Could not scan directory ${dirPath}: ${error.message}`));
|
|
46
|
+
return [];
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* λ μΈμ΄ λ²μ μμ 곡ν΅μΌλ‘ μ‘΄μ¬νλ νμΌλ€λ§ μΆμΆ
|
|
52
|
+
*/
|
|
53
|
+
async function getCommonCommandFiles() {
|
|
54
|
+
const [enFiles, koFiles] = await Promise.all([
|
|
55
|
+
scanDirectory(SCAN_PATHS.commands.en),
|
|
56
|
+
scanDirectory(SCAN_PATHS.commands.ko)
|
|
57
|
+
]);
|
|
58
|
+
|
|
59
|
+
// λ μΈμ΄μ λͺ¨λ μ‘΄μ¬νλ νμΌλ€λ§ ν¬ν¨
|
|
60
|
+
const commonFiles = enFiles.filter(file => koFiles.includes(file));
|
|
61
|
+
|
|
62
|
+
// μΈμ΄λ³ νΉμ νμΌλ€λ ν¬ν¨ (μ νμ )
|
|
63
|
+
const enOnlyFiles = enFiles.filter(file => !koFiles.includes(file));
|
|
64
|
+
const koOnlyFiles = koFiles.filter(file => !enFiles.includes(file));
|
|
65
|
+
|
|
66
|
+
console.log(chalk.blue('π Command Files Analysis:'));
|
|
67
|
+
console.log(` Common files: ${chalk.green(commonFiles.length)}`);
|
|
68
|
+
console.log(` English only: ${chalk.yellow(enOnlyFiles.length)} ${enOnlyFiles.length > 0 ? `(${enOnlyFiles.join(', ')})` : ''}`);
|
|
69
|
+
console.log(` Korean only: ${chalk.yellow(koOnlyFiles.length)} ${koOnlyFiles.length > 0 ? `(${koOnlyFiles.join(', ')})` : ''}`);
|
|
70
|
+
|
|
71
|
+
// κ³΅ν΅ νμΌλ€ + μΈμ΄λ³ νΉμ νμΌλ€μ λͺ¨λ ν¬ν¨
|
|
72
|
+
return [...commonFiles, ...enOnlyFiles, ...koOnlyFiles].sort();
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* file-lists.js νμΌ μμ±
|
|
77
|
+
*/
|
|
78
|
+
async function generateFileListsContent(commandFiles, globalRulesFiles, manualRulesFiles) {
|
|
79
|
+
const template = `/**
|
|
80
|
+
* AIWF μ€μΉ μ λ€μ΄λ‘λν νμΌ λͺ©λ‘λ€
|
|
81
|
+
* μ΄ νμΌμ GitHubμμ λ€μ΄λ‘λν νμΌλ€μ μ¬μ μ μλ λͺ©λ‘μ ν¬ν¨ν©λλ€.
|
|
82
|
+
*
|
|
83
|
+
* β οΈ μ΄ νμΌμ μλ μμ±λ©λλ€. μλμΌλ‘ νΈμ§νμ§ λ§μΈμ!
|
|
84
|
+
* μ
λ°μ΄νΈνλ €λ©΄: npm run update:file-lists
|
|
85
|
+
*
|
|
86
|
+
* Generated at: ${new Date().toISOString()}
|
|
87
|
+
*/
|
|
88
|
+
|
|
89
|
+
// Claude Code λͺ
λ Ήμ΄ νμΌ λͺ©λ‘ (νκ΅μ΄μ μμ΄ κ³΅ν΅)
|
|
90
|
+
export const COMMAND_FILES = [
|
|
91
|
+
${commandFiles.map(file => ` '${file}'`).join(',\n')}
|
|
92
|
+
];
|
|
93
|
+
|
|
94
|
+
// κΈλ‘λ² λ£° νμΌ λͺ©λ‘
|
|
95
|
+
export const GLOBAL_RULES_FILES = [
|
|
96
|
+
${globalRulesFiles.map(file => ` '${file}'`).join(',\n')}
|
|
97
|
+
];
|
|
98
|
+
|
|
99
|
+
// μλ λ£° νμΌ λͺ©λ‘
|
|
100
|
+
export const MANUAL_RULES_FILES = [
|
|
101
|
+
${manualRulesFiles.map(file => ` '${file}'`).join(',\n')}
|
|
102
|
+
];
|
|
103
|
+
|
|
104
|
+
// ν
νλ¦Ώ νμΌ λͺ©λ‘ (ν₯ν μΆκ° μμ )
|
|
105
|
+
export const TEMPLATE_FILES = [
|
|
106
|
+
// ν
νλ¦Ώ νμΌλ€μ΄ μΆκ°λλ©΄ μ¬κΈ°μ λμ΄
|
|
107
|
+
];
|
|
108
|
+
|
|
109
|
+
// ν둬ννΈ νμΌ λͺ©λ‘ (ν₯ν μΆκ° μμ )
|
|
110
|
+
export const PROMPT_FILES = [
|
|
111
|
+
// ν둬ννΈ νμΌλ€μ΄ μΆκ°λλ©΄ μ¬κΈ°μ λμ΄
|
|
112
|
+
];
|
|
113
|
+
|
|
114
|
+
// λͺ¨λ νμΌ λͺ©λ‘μ νλμ κ°μ²΄λ‘ export
|
|
115
|
+
export const FILE_LISTS = {
|
|
116
|
+
COMMAND_FILES,
|
|
117
|
+
GLOBAL_RULES_FILES,
|
|
118
|
+
MANUAL_RULES_FILES,
|
|
119
|
+
TEMPLATE_FILES,
|
|
120
|
+
PROMPT_FILES
|
|
121
|
+
};
|
|
122
|
+
|
|
123
|
+
// κ°λ³ μΉ΄ν
κ³ λ¦¬λ³ νμΌ μ μ 보
|
|
124
|
+
export const FILE_COUNTS = {
|
|
125
|
+
commands: COMMAND_FILES.length,
|
|
126
|
+
globalRules: GLOBAL_RULES_FILES.length,
|
|
127
|
+
manualRules: MANUAL_RULES_FILES.length,
|
|
128
|
+
templates: TEMPLATE_FILES.length,
|
|
129
|
+
prompts: PROMPT_FILES.length,
|
|
130
|
+
total: COMMAND_FILES.length + GLOBAL_RULES_FILES.length + MANUAL_RULES_FILES.length + TEMPLATE_FILES.length + PROMPT_FILES.length
|
|
131
|
+
};
|
|
132
|
+
|
|
133
|
+
/**
|
|
134
|
+
* νΉμ μΈμ΄μ νμΌ μ‘΄μ¬ μ¬λΆ νμΈμ μν ν¬νΌ ν¨μλ€
|
|
135
|
+
*/
|
|
136
|
+
|
|
137
|
+
/**
|
|
138
|
+
* μΈμ΄λ³λ‘ μ‘΄μ¬νμ§ μμ μ μλ νμΌλ€μ νν°λ§
|
|
139
|
+
* @param {Array<string>} fileList - μλ³Έ νμΌ λͺ©λ‘
|
|
140
|
+
* @param {string} language - μΈμ΄ μ½λ (ko, en)
|
|
141
|
+
* @returns {Array<string>} νν°λ§λ νμΌ λͺ©λ‘
|
|
142
|
+
*/
|
|
143
|
+
export function filterFilesByLanguage(fileList, language) {
|
|
144
|
+
// μΌλΆ νμΌλ€μ νΉμ μΈμ΄μλ§ μ‘΄μ¬ν μ μμ
|
|
145
|
+
const languageSpecificFiles = {
|
|
146
|
+
ko: [
|
|
147
|
+
// νκ΅μ΄μλ§ μλ νμΌλ€ (νμ¬λ μμ)
|
|
148
|
+
],
|
|
149
|
+
en: [
|
|
150
|
+
// μμ΄μλ§ μλ νμΌλ€ (νμ¬λ μμ)
|
|
151
|
+
]
|
|
152
|
+
};
|
|
153
|
+
|
|
154
|
+
// νμ¬λ λͺ¨λ νμΌμ΄ λ μΈμ΄ λͺ¨λ μ‘΄μ¬νλ€κ³ κ°μ
|
|
155
|
+
return fileList;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
/**
|
|
159
|
+
* νμΌ λͺ©λ‘ μ
λ°μ΄νΈλ₯Ό μν ν¬νΌ ν¨μ
|
|
160
|
+
* μ€μ λλ ν 리λ₯Ό μ€μΊνμ¬ νμΌ λͺ©λ‘μ μ
λ°μ΄νΈν μ μλ ν¨μ
|
|
161
|
+
*/
|
|
162
|
+
export function getLatestFileList() {
|
|
163
|
+
// μ΄ ν¨μλ ν₯ν μλ μ
λ°μ΄νΈ κΈ°λ₯ ꡬν μ μ¬μ©
|
|
164
|
+
return {
|
|
165
|
+
commands: COMMAND_FILES,
|
|
166
|
+
globalRules: GLOBAL_RULES_FILES,
|
|
167
|
+
manualRules: MANUAL_RULES_FILES,
|
|
168
|
+
templates: TEMPLATE_FILES,
|
|
169
|
+
prompts: PROMPT_FILES
|
|
170
|
+
};
|
|
171
|
+
}`;
|
|
172
|
+
|
|
173
|
+
return template;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
/**
|
|
177
|
+
* κΈ°μ‘΄ νμΌκ³Ό λΉκ΅νμ¬ λ³κ²½μ¬ν νμΈ
|
|
178
|
+
*/
|
|
179
|
+
async function compareWithExisting(newContent) {
|
|
180
|
+
try {
|
|
181
|
+
const existingContent = await fs.readFile(OUTPUT_FILE, 'utf-8');
|
|
182
|
+
|
|
183
|
+
// μμ± μκ° λΌμΈ μ μΈνκ³ λΉκ΅ (Generated at: λΆλΆ)
|
|
184
|
+
const normalizeContent = (content) => {
|
|
185
|
+
return content.replace(/Generated at: .*$/m, 'Generated at: <timestamp>');
|
|
186
|
+
};
|
|
187
|
+
|
|
188
|
+
return normalizeContent(existingContent) === normalizeContent(newContent);
|
|
189
|
+
} catch {
|
|
190
|
+
return false; // νμΌμ΄ μμΌλ©΄ λ³κ²½μ¬νμ΄ μλ€κ³ κ°μ£Ό
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
/**
|
|
195
|
+
* λ©μΈ μ€ν ν¨μ
|
|
196
|
+
*/
|
|
197
|
+
async function main() {
|
|
198
|
+
const isDryRun = process.argv.includes('--dry-run');
|
|
199
|
+
const isVerbose = process.argv.includes('--verbose');
|
|
200
|
+
|
|
201
|
+
console.log(chalk.blue.bold('π AIWF File Lists Update Script'));
|
|
202
|
+
console.log(chalk.gray(`Scanning directories and updating file lists...\n`));
|
|
203
|
+
|
|
204
|
+
try {
|
|
205
|
+
// κ° λλ ν 리 μ€μΊ
|
|
206
|
+
const [commandFiles, globalRulesFiles, manualRulesFiles] = await Promise.all([
|
|
207
|
+
getCommonCommandFiles(),
|
|
208
|
+
scanDirectory(SCAN_PATHS.globalRules),
|
|
209
|
+
scanDirectory(SCAN_PATHS.manualRules)
|
|
210
|
+
]);
|
|
211
|
+
|
|
212
|
+
// ν΅κ³ μΆλ ₯
|
|
213
|
+
console.log(chalk.blue('π Scan Results:'));
|
|
214
|
+
console.log(` Command files: ${chalk.green(commandFiles.length)}`);
|
|
215
|
+
console.log(` Global rules: ${chalk.green(globalRulesFiles.length)}`);
|
|
216
|
+
console.log(` Manual rules: ${chalk.green(manualRulesFiles.length)}`);
|
|
217
|
+
console.log(` Total files: ${chalk.green(commandFiles.length + globalRulesFiles.length + manualRulesFiles.length)}`);
|
|
218
|
+
|
|
219
|
+
if (isVerbose) {
|
|
220
|
+
console.log(chalk.gray('\nπ Detailed file lists:'));
|
|
221
|
+
console.log(chalk.gray('Commands:'), commandFiles.join(', '));
|
|
222
|
+
console.log(chalk.gray('Global rules:'), globalRulesFiles.join(', '));
|
|
223
|
+
console.log(chalk.gray('Manual rules:'), manualRulesFiles.join(', '));
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
// μ λ΄μ© μμ±
|
|
227
|
+
const newContent = await generateFileListsContent(commandFiles, globalRulesFiles, manualRulesFiles);
|
|
228
|
+
|
|
229
|
+
// λ³κ²½μ¬ν νμΈ
|
|
230
|
+
const hasChanges = !(await compareWithExisting(newContent));
|
|
231
|
+
|
|
232
|
+
if (!hasChanges) {
|
|
233
|
+
console.log(chalk.green('\nβ
File lists are already up to date!'));
|
|
234
|
+
return;
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
if (isDryRun) {
|
|
238
|
+
console.log(chalk.yellow('\nπ Dry run mode - Changes detected but not saved:'));
|
|
239
|
+
console.log(chalk.gray(`Would update: ${OUTPUT_FILE}`));
|
|
240
|
+
console.log(chalk.gray(`Content length: ${newContent.length} characters`));
|
|
241
|
+
return;
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
// νμΌ μ
λ°μ΄νΈ
|
|
245
|
+
await fs.writeFile(OUTPUT_FILE, newContent, 'utf-8');
|
|
246
|
+
|
|
247
|
+
console.log(chalk.green('\nβ
Successfully updated file lists!'));
|
|
248
|
+
console.log(chalk.gray(`Updated: ${OUTPUT_FILE}`));
|
|
249
|
+
console.log(chalk.blue('\nπ‘ Next steps:'));
|
|
250
|
+
console.log(chalk.gray(' 1. Review the changes: git diff src/config/file-lists.js'));
|
|
251
|
+
console.log(chalk.gray(' 2. Test the changes: npm test'));
|
|
252
|
+
console.log(chalk.gray(' 3. Commit the changes: git add . && git commit -m "update: refresh file lists"'));
|
|
253
|
+
|
|
254
|
+
} catch (error) {
|
|
255
|
+
console.error(chalk.red('\nβ Error updating file lists:'));
|
|
256
|
+
console.error(chalk.red(error.message));
|
|
257
|
+
console.error(chalk.gray(error.stack));
|
|
258
|
+
process.exit(1);
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
// μ€ν¬λ¦½νΈκ° μ§μ μ€νλ λλ§ main ν¨μ νΈμΆ
|
|
263
|
+
if (import.meta.url === `file://${process.argv[1]}`) {
|
|
264
|
+
main();
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
export { main as updateFileLists };
|
|
@@ -0,0 +1,417 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* AIWF 체ν¬ν¬μΈνΈ CLI
|
|
5
|
+
* YOLO λͺ¨λ 체ν¬ν¬μΈνΈ κ΄λ¦¬λ₯Ό μν λͺ
λ Ήμ΄ μΈν°νμ΄μ€
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
import { Command } from 'commander';
|
|
9
|
+
import chalk from 'chalk';
|
|
10
|
+
import { CheckpointManager } from '../utils/checkpoint-manager.js';
|
|
11
|
+
import fs from 'fs/promises';
|
|
12
|
+
import path from 'path';
|
|
13
|
+
|
|
14
|
+
const program = new Command();
|
|
15
|
+
|
|
16
|
+
program
|
|
17
|
+
.name('aiwf-checkpoint')
|
|
18
|
+
.description('AIWF 체ν¬ν¬μΈνΈ κ΄λ¦¬ λꡬ')
|
|
19
|
+
.version('0.3.12');
|
|
20
|
+
|
|
21
|
+
// νλ‘μ νΈ λ£¨νΈ μ°ΎκΈ° ν¬νΌ
|
|
22
|
+
async function findProjectRoot(startDir = process.cwd()) {
|
|
23
|
+
let currentDir = startDir;
|
|
24
|
+
|
|
25
|
+
while (currentDir !== path.parse(currentDir).root) {
|
|
26
|
+
try {
|
|
27
|
+
await fs.access(path.join(currentDir, '.aiwf'));
|
|
28
|
+
return currentDir;
|
|
29
|
+
} catch {
|
|
30
|
+
currentDir = path.dirname(currentDir);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
throw new Error('.aiwf λλ ν 리λ₯Ό μ°Ύμ μ μμ΅λλ€. AIWF νλ‘μ νΈ λ΄μμ μ€νν΄μ£ΌμΈμ.');
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
// 체ν¬ν¬μΈνΈ λͺ©λ‘ 보기
|
|
38
|
+
program
|
|
39
|
+
.command('list')
|
|
40
|
+
.alias('ls')
|
|
41
|
+
.description('μ¬μ© κ°λ₯ν 체ν¬ν¬μΈνΈ λͺ©λ‘')
|
|
42
|
+
.option('--limit <n>', 'νμν 체ν¬ν¬μΈνΈ μ μ ν', '10')
|
|
43
|
+
.action(async (options) => {
|
|
44
|
+
try {
|
|
45
|
+
const projectRoot = await findProjectRoot();
|
|
46
|
+
const manager = new CheckpointManager(projectRoot);
|
|
47
|
+
|
|
48
|
+
console.log(chalk.bold('π 체ν¬ν¬μΈνΈ λͺ©λ‘:'));
|
|
49
|
+
console.log('');
|
|
50
|
+
|
|
51
|
+
const checkpoints = await manager.listCheckpoints();
|
|
52
|
+
|
|
53
|
+
if (checkpoints.length === 0) {
|
|
54
|
+
console.log(chalk.yellow('π 체ν¬ν¬μΈνΈκ° μμ΅λλ€.'));
|
|
55
|
+
console.log('');
|
|
56
|
+
console.log(chalk.gray('YOLO λͺ¨λλ₯Ό μ€ννλ©΄ μλμΌλ‘ 체ν¬ν¬μΈνΈκ° μμ±λ©λλ€.'));
|
|
57
|
+
return;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
const limit = parseInt(options.limit);
|
|
61
|
+
const limitedCheckpoints = checkpoints.slice(0, limit);
|
|
62
|
+
|
|
63
|
+
for (const cp of limitedCheckpoints) {
|
|
64
|
+
const typeIcon = cp.type === 'session_start' ? 'π' :
|
|
65
|
+
cp.type === 'task_complete' ? 'β
' :
|
|
66
|
+
cp.type === 'sprint_complete' ? 'π―' :
|
|
67
|
+
cp.type === 'session_end' ? 'π' :
|
|
68
|
+
cp.type === 'manual' ? 'π' : 'π';
|
|
69
|
+
|
|
70
|
+
const timeAgo = getTimeAgo(new Date(cp.created));
|
|
71
|
+
|
|
72
|
+
console.log(`${typeIcon} ${chalk.cyan(cp.id)} - ${chalk.yellow(cp.type)}`);
|
|
73
|
+
console.log(` μμ±: ${chalk.gray(timeAgo)}`);
|
|
74
|
+
console.log(` νμ€ν¬: ${chalk.blue(cp.tasks_completed)}κ° μλ£`);
|
|
75
|
+
|
|
76
|
+
if (cp.metadata && Object.keys(cp.metadata).length > 0) {
|
|
77
|
+
console.log(` λ©ν: ${chalk.gray(JSON.stringify(cp.metadata))}`);
|
|
78
|
+
}
|
|
79
|
+
console.log('');
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
if (checkpoints.length > limit) {
|
|
83
|
+
console.log(chalk.gray(`... λ λ§μ 체ν¬ν¬μΈνΈκ° μμ΅λλ€ (μ΄ ${checkpoints.length}κ°)`));
|
|
84
|
+
console.log(chalk.blue(`λͺ¨λ 체ν¬ν¬μΈνΈλ₯Ό λ³΄λ €λ©΄: aiwf-checkpoint list --limit ${checkpoints.length}`));
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
} catch (error) {
|
|
88
|
+
console.error(chalk.red('β 체ν¬ν¬μΈνΈ λͺ©λ‘ μ‘°ν μ€ν¨:'), error.message);
|
|
89
|
+
process.exit(1);
|
|
90
|
+
}
|
|
91
|
+
});
|
|
92
|
+
|
|
93
|
+
// 체ν¬ν¬μΈνΈμμ 볡ꡬ
|
|
94
|
+
program
|
|
95
|
+
.command('restore <checkpointId>')
|
|
96
|
+
.description('체ν¬ν¬μΈνΈμμ 볡ꡬ')
|
|
97
|
+
.option('--dry-run', 'μ€μ 볡ꡬ μμ΄ λ―Έλ¦¬λ³΄κΈ°λ§')
|
|
98
|
+
.action(async (checkpointId, options) => {
|
|
99
|
+
try {
|
|
100
|
+
const projectRoot = await findProjectRoot();
|
|
101
|
+
const manager = new CheckpointManager(projectRoot);
|
|
102
|
+
await manager.initialize();
|
|
103
|
+
|
|
104
|
+
console.log(chalk.blue(`π 체ν¬ν¬μΈνΈ ${checkpointId}μμ 볡ꡬ μ€...`));
|
|
105
|
+
console.log('');
|
|
106
|
+
|
|
107
|
+
if (options.dryRun) {
|
|
108
|
+
console.log(chalk.yellow('π λλΌμ΄λ° λͺ¨λ: μ€μ 볡ꡬλ μννμ§ μμ΅λλ€.'));
|
|
109
|
+
console.log('');
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
const result = await manager.restoreFromCheckpoint(checkpointId);
|
|
113
|
+
|
|
114
|
+
if (result.success) {
|
|
115
|
+
console.log(chalk.green('β
체ν¬ν¬μΈνΈ 볡ꡬ μ±κ³΅!'));
|
|
116
|
+
console.log('');
|
|
117
|
+
console.log(chalk.bold('π 볡ꡬλ μΈμ
μ 보:'));
|
|
118
|
+
console.log(` μΈμ
ID: ${chalk.cyan(result.checkpoint.state_snapshot.session_id)}`);
|
|
119
|
+
console.log(` μ€νλ¦°νΈ: ${chalk.blue(result.checkpoint.state_snapshot.sprint_id || 'N/A')}`);
|
|
120
|
+
console.log(` λͺ¨λ: ${chalk.yellow(result.checkpoint.state_snapshot.mode || 'N/A')}`);
|
|
121
|
+
console.log('');
|
|
122
|
+
|
|
123
|
+
console.log(chalk.bold('π μ¬κ° κ°λ₯ν μμ
:'));
|
|
124
|
+
if (result.tasks_to_resume.current) {
|
|
125
|
+
console.log(` νμ¬ νμ€ν¬: ${chalk.cyan(result.tasks_to_resume.current)}`);
|
|
126
|
+
}
|
|
127
|
+
console.log(` μλ£λ νμ€ν¬: ${chalk.blue(result.tasks_to_resume.completed.length)}κ°`);
|
|
128
|
+
console.log(` λ€μ μμ
: ${chalk.gray(result.tasks_to_resume.next_task_hint)}`);
|
|
129
|
+
console.log('');
|
|
130
|
+
|
|
131
|
+
if (result.checkpoint.git_info) {
|
|
132
|
+
console.log(chalk.bold('π Git μ 보:'));
|
|
133
|
+
console.log(` λΈλμΉ: ${chalk.cyan(result.checkpoint.git_info.branch)}`);
|
|
134
|
+
console.log(` 컀λ°: ${chalk.gray(result.checkpoint.git_info.commit.substring(0, 8))}`);
|
|
135
|
+
console.log('');
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
console.log(chalk.green('π 볡ꡬ μλ£! YOLO λͺ¨λλ₯Ό λ€μ μ€νν μ μμ΅λλ€.'));
|
|
139
|
+
|
|
140
|
+
} else {
|
|
141
|
+
console.error(chalk.red('β 체ν¬ν¬μΈνΈ 볡ꡬ μ€ν¨'));
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
} catch (error) {
|
|
145
|
+
console.error(chalk.red('β 체ν¬ν¬μΈνΈ 볡ꡬ μ€ν¨:'), error.message);
|
|
146
|
+
process.exit(1);
|
|
147
|
+
}
|
|
148
|
+
});
|
|
149
|
+
|
|
150
|
+
// 체ν¬ν¬μΈνΈ μμ±
|
|
151
|
+
program
|
|
152
|
+
.command('create [message]')
|
|
153
|
+
.description('μλ 체ν¬ν¬μΈνΈ μμ±')
|
|
154
|
+
.action(async (message) => {
|
|
155
|
+
try {
|
|
156
|
+
const projectRoot = await findProjectRoot();
|
|
157
|
+
const manager = new CheckpointManager(projectRoot);
|
|
158
|
+
await manager.initialize();
|
|
159
|
+
|
|
160
|
+
const checkpointMessage = message || 'μλ 체ν¬ν¬μΈνΈ';
|
|
161
|
+
|
|
162
|
+
console.log(chalk.blue('π μλ 체ν¬ν¬μΈνΈ μμ± μ€...'));
|
|
163
|
+
|
|
164
|
+
const checkpointId = await manager.createCheckpoint('manual', {
|
|
165
|
+
message: checkpointMessage,
|
|
166
|
+
created_by: 'user'
|
|
167
|
+
});
|
|
168
|
+
|
|
169
|
+
console.log(chalk.green('β
체ν¬ν¬μΈνΈ μμ± μλ£!'));
|
|
170
|
+
console.log('');
|
|
171
|
+
console.log(`체ν¬ν¬μΈνΈ ID: ${chalk.cyan(checkpointId)}`);
|
|
172
|
+
console.log(`λ©μμ§: ${chalk.yellow(checkpointMessage)}`);
|
|
173
|
+
console.log('');
|
|
174
|
+
console.log(chalk.gray('μ΄ μ²΄ν¬ν¬μΈνΈμμ 볡ꡬνλ €λ©΄:'));
|
|
175
|
+
console.log(chalk.blue(`aiwf-checkpoint restore ${checkpointId}`));
|
|
176
|
+
|
|
177
|
+
} catch (error) {
|
|
178
|
+
console.error(chalk.red('β 체ν¬ν¬μΈνΈ μμ± μ€ν¨:'), error.message);
|
|
179
|
+
process.exit(1);
|
|
180
|
+
}
|
|
181
|
+
});
|
|
182
|
+
|
|
183
|
+
// νμ¬ μν 보기
|
|
184
|
+
program
|
|
185
|
+
.command('status')
|
|
186
|
+
.description('νμ¬ YOLO μΈμ
μν')
|
|
187
|
+
.action(async () => {
|
|
188
|
+
try {
|
|
189
|
+
const projectRoot = await findProjectRoot();
|
|
190
|
+
const manager = new CheckpointManager(projectRoot);
|
|
191
|
+
await manager.loadState();
|
|
192
|
+
|
|
193
|
+
console.log(chalk.bold('π YOLO μΈμ
μν:'));
|
|
194
|
+
console.log('');
|
|
195
|
+
|
|
196
|
+
if (!manager.currentState.session_id) {
|
|
197
|
+
console.log(chalk.yellow('π νμ± YOLO μΈμ
μ΄ μμ΅λλ€.'));
|
|
198
|
+
console.log('');
|
|
199
|
+
console.log(chalk.gray('YOLO λͺ¨λλ₯Ό μμνλ €λ©΄:'));
|
|
200
|
+
console.log(chalk.blue('/project:aiwf:yolo'));
|
|
201
|
+
return;
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
console.log(`μΈμ
ID: ${chalk.cyan(manager.currentState.session_id)}`);
|
|
205
|
+
console.log(`μμ μκ°: ${chalk.gray(new Date(manager.currentState.started_at).toLocaleString())}`);
|
|
206
|
+
console.log(`μ€νλ¦°νΈ: ${chalk.blue(manager.currentState.sprint_id || 'N/A')}`);
|
|
207
|
+
console.log(`λͺ¨λ: ${chalk.yellow(manager.currentState.mode || 'N/A')}`);
|
|
208
|
+
console.log('');
|
|
209
|
+
|
|
210
|
+
console.log(chalk.bold('π μ§ν μν©:'));
|
|
211
|
+
console.log(` μλ£λ νμ€ν¬: ${chalk.green(manager.currentState.completed_tasks.length)}κ°`);
|
|
212
|
+
console.log(` μ€ν¨ν νμ€ν¬: ${chalk.red(manager.currentState.metrics.failed_tasks)}κ°`);
|
|
213
|
+
console.log(` 건λλ΄ νμ€ν¬: ${chalk.yellow(manager.currentState.metrics.skipped_tasks)}κ°`);
|
|
214
|
+
|
|
215
|
+
if (manager.currentState.current_task) {
|
|
216
|
+
console.log(` νμ¬ νμ€ν¬: ${chalk.cyan(manager.currentState.current_task.id)}`);
|
|
217
|
+
console.log(` μλ νμ: ${chalk.blue(manager.currentState.current_task.attempts)}ν`);
|
|
218
|
+
}
|
|
219
|
+
console.log('');
|
|
220
|
+
|
|
221
|
+
if (manager.currentState.metrics.total_time > 0) {
|
|
222
|
+
console.log(chalk.bold('β±οΈ μ±λ₯ μ§ν:'));
|
|
223
|
+
console.log(` μ΄ μ€ν μκ°: ${chalk.blue(manager.formatDuration(manager.currentState.metrics.total_time))}`);
|
|
224
|
+
console.log(` νκ· νμ€ν¬ μκ°: ${chalk.blue(manager.formatDuration(manager.currentState.metrics.avg_task_time))}`);
|
|
225
|
+
console.log('');
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
console.log(chalk.bold('π 체ν¬ν¬μΈνΈ:'));
|
|
229
|
+
console.log(` μμ±λ 체ν¬ν¬μΈνΈ: ${chalk.blue(manager.currentState.checkpoints.length)}κ°`);
|
|
230
|
+
|
|
231
|
+
if (manager.currentState.checkpoints.length > 0) {
|
|
232
|
+
const latest = manager.currentState.checkpoints[manager.currentState.checkpoints.length - 1];
|
|
233
|
+
console.log(` μ΅κ·Ό 체ν¬ν¬μΈνΈ: ${chalk.cyan(latest.id)} (${chalk.gray(latest.type)})`);
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
} catch (error) {
|
|
237
|
+
console.error(chalk.red('β μν νμΈ μ€ν¨:'), error.message);
|
|
238
|
+
process.exit(1);
|
|
239
|
+
}
|
|
240
|
+
});
|
|
241
|
+
|
|
242
|
+
// 체ν¬ν¬μΈνΈ μ 리
|
|
243
|
+
program
|
|
244
|
+
.command('clean')
|
|
245
|
+
.description('μ€λλ 체ν¬ν¬μΈνΈ μ 리')
|
|
246
|
+
.option('--keep <n>', 'μ μ§ν 체ν¬ν¬μΈνΈ μ', '10')
|
|
247
|
+
.option('--dry-run', 'μ€μ μμ μμ΄ λ―Έλ¦¬λ³΄κΈ°λ§')
|
|
248
|
+
.action(async (options) => {
|
|
249
|
+
try {
|
|
250
|
+
const projectRoot = await findProjectRoot();
|
|
251
|
+
const manager = new CheckpointManager(projectRoot);
|
|
252
|
+
|
|
253
|
+
const keepLast = parseInt(options.keep);
|
|
254
|
+
|
|
255
|
+
console.log(chalk.blue(`𧹠체ν¬ν¬μΈνΈ μ 리 μ€... (μ΅κ·Ό ${keepLast}κ° μ μ§)`));
|
|
256
|
+
console.log('');
|
|
257
|
+
|
|
258
|
+
if (options.dryRun) {
|
|
259
|
+
console.log(chalk.yellow('π λλΌμ΄λ° λͺ¨λ: μ€μ μμ λ μννμ§ μμ΅λλ€.'));
|
|
260
|
+
console.log('');
|
|
261
|
+
|
|
262
|
+
const checkpoints = await manager.listCheckpoints();
|
|
263
|
+
if (checkpoints.length <= keepLast) {
|
|
264
|
+
console.log(chalk.green('β
μ 리ν 체ν¬ν¬μΈνΈκ° μμ΅λλ€.'));
|
|
265
|
+
} else {
|
|
266
|
+
const toDelete = checkpoints.slice(keepLast);
|
|
267
|
+
console.log(chalk.yellow(`μμ μμ 체ν¬ν¬μΈνΈ (${toDelete.length}κ°):`));
|
|
268
|
+
for (const cp of toDelete) {
|
|
269
|
+
console.log(` ${chalk.red('ποΈ')} ${chalk.cyan(cp.id)} - ${chalk.gray(cp.type)}`);
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
} else {
|
|
273
|
+
await manager.cleanup(keepLast);
|
|
274
|
+
console.log(chalk.green('β
체ν¬ν¬μΈνΈ μ 리 μλ£!'));
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
} catch (error) {
|
|
278
|
+
console.error(chalk.red('β 체ν¬ν¬μΈνΈ μ 리 μ€ν¨:'), error.message);
|
|
279
|
+
process.exit(1);
|
|
280
|
+
}
|
|
281
|
+
});
|
|
282
|
+
|
|
283
|
+
// 체ν¬ν¬μΈνΈ 리ν¬νΈ μμ±
|
|
284
|
+
program
|
|
285
|
+
.command('report')
|
|
286
|
+
.description('νμ¬ μΈμ
μ μ§ν μν© λ¦¬ν¬νΈ μμ±')
|
|
287
|
+
.action(async () => {
|
|
288
|
+
try {
|
|
289
|
+
const projectRoot = await findProjectRoot();
|
|
290
|
+
const manager = new CheckpointManager(projectRoot);
|
|
291
|
+
await manager.loadState();
|
|
292
|
+
|
|
293
|
+
console.log(chalk.blue('π μ§ν μν© λ¦¬ν¬νΈ μμ± μ€...'));
|
|
294
|
+
console.log('');
|
|
295
|
+
|
|
296
|
+
const report = await manager.generateProgressReport();
|
|
297
|
+
|
|
298
|
+
console.log(chalk.bold('π― YOLO μΈμ
리ν¬νΈ'));
|
|
299
|
+
console.log(''.padEnd(50, '='));
|
|
300
|
+
console.log('');
|
|
301
|
+
|
|
302
|
+
// μΈμ
μ 보
|
|
303
|
+
console.log(chalk.bold('π μΈμ
μ 보:'));
|
|
304
|
+
console.log(` ID: ${chalk.cyan(report.session.id)}`);
|
|
305
|
+
console.log(` μμ: ${chalk.gray(new Date(report.session.started).toLocaleString())}`);
|
|
306
|
+
console.log(` μ€νλ¦°νΈ: ${chalk.blue(report.session.sprint || 'N/A')}`);
|
|
307
|
+
console.log(` λͺ¨λ: ${chalk.yellow(report.session.mode || 'N/A')}`);
|
|
308
|
+
console.log('');
|
|
309
|
+
|
|
310
|
+
// μ§ν μν©
|
|
311
|
+
console.log(chalk.bold('π μ§ν μν©:'));
|
|
312
|
+
console.log(` μλ£: ${chalk.green(report.progress.completed)}κ°`);
|
|
313
|
+
console.log(` μ€ν¨: ${chalk.red(report.progress.failed)}κ°`);
|
|
314
|
+
console.log(` 건λλ: ${chalk.yellow(report.progress.skipped)}κ°`);
|
|
315
|
+
console.log(` νμ¬: ${chalk.cyan(report.progress.current)}`);
|
|
316
|
+
console.log('');
|
|
317
|
+
|
|
318
|
+
// μ±λ₯ μ§ν
|
|
319
|
+
console.log(chalk.bold('β±οΈ μ±λ₯ μ§ν:'));
|
|
320
|
+
console.log(` μ΄ μκ°: ${chalk.blue(report.performance.total_time)}`);
|
|
321
|
+
console.log(` νκ· νμ€ν¬ μκ°: ${chalk.blue(report.performance.avg_task_time)}`);
|
|
322
|
+
console.log(` μ±κ³΅λ₯ : ${chalk.green(report.performance.success_rate)}`);
|
|
323
|
+
console.log('');
|
|
324
|
+
|
|
325
|
+
// 체ν¬ν¬μΈνΈ
|
|
326
|
+
if (report.checkpoints.length > 0) {
|
|
327
|
+
console.log(chalk.bold('π 체ν¬ν¬μΈνΈ:'));
|
|
328
|
+
for (const cp of report.checkpoints.slice(-5)) { // μ΅κ·Ό 5κ°λ§
|
|
329
|
+
const typeIcon = cp.type === 'session_start' ? 'π' :
|
|
330
|
+
cp.type === 'task_complete' ? 'β
' :
|
|
331
|
+
cp.type === 'auto' ? 'π' : 'π';
|
|
332
|
+
console.log(` ${typeIcon} ${chalk.cyan(cp.id)} - ${chalk.gray(cp.type)}`);
|
|
333
|
+
}
|
|
334
|
+
console.log('');
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
// κΆμ₯μ¬ν
|
|
338
|
+
if (report.recommendations.length > 0) {
|
|
339
|
+
console.log(chalk.bold('π‘ κΆμ₯μ¬ν:'));
|
|
340
|
+
for (const rec of report.recommendations) {
|
|
341
|
+
console.log(` β’ ${chalk.yellow(rec)}`);
|
|
342
|
+
}
|
|
343
|
+
console.log('');
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
} catch (error) {
|
|
347
|
+
console.error(chalk.red('β 리ν¬νΈ μμ± μ€ν¨:'), error.message);
|
|
348
|
+
process.exit(1);
|
|
349
|
+
}
|
|
350
|
+
});
|
|
351
|
+
|
|
352
|
+
// λμλ§ λͺ
λ Ήμ΄
|
|
353
|
+
program
|
|
354
|
+
.command('help')
|
|
355
|
+
.description('AIWF 체ν¬ν¬μΈνΈ λͺ
λ Ήμ΄ λμλ§')
|
|
356
|
+
.action(() => {
|
|
357
|
+
console.log(chalk.bold('π AIWF 체ν¬ν¬μΈνΈ CLI λμλ§'));
|
|
358
|
+
console.log('');
|
|
359
|
+
console.log(chalk.yellow('π μ£Όμ λͺ
λ Ήμ΄:'));
|
|
360
|
+
console.log('');
|
|
361
|
+
console.log(` ${chalk.cyan('aiwf-checkpoint list')} - 체ν¬ν¬μΈνΈ λͺ©λ‘ 보기`);
|
|
362
|
+
console.log(` ${chalk.cyan('aiwf-checkpoint status')} - νμ¬ μΈμ
μν`);
|
|
363
|
+
console.log(` ${chalk.cyan('aiwf-checkpoint restore <id>')} - 체ν¬ν¬μΈνΈμμ 볡ꡬ`);
|
|
364
|
+
console.log(` ${chalk.cyan('aiwf-checkpoint create [message]')} - μλ 체ν¬ν¬μΈνΈ μμ±`);
|
|
365
|
+
console.log(` ${chalk.cyan('aiwf-checkpoint clean')} - μ€λλ 체ν¬ν¬μΈνΈ μ 리`);
|
|
366
|
+
console.log(` ${chalk.cyan('aiwf-checkpoint report')} - μ§ν μν© λ¦¬ν¬νΈ`);
|
|
367
|
+
console.log('');
|
|
368
|
+
console.log(chalk.yellow('π§ μ μ©ν μ΅μ
:'));
|
|
369
|
+
console.log('');
|
|
370
|
+
console.log(` ${chalk.blue('--dry-run')} - μ€μ μ€ν μμ΄ λ―Έλ¦¬λ³΄κΈ°`);
|
|
371
|
+
console.log(` ${chalk.blue('--limit <n>')} - λͺ©λ‘ νμ μ ν`);
|
|
372
|
+
console.log(` ${chalk.blue('--keep <n>')} - μ 리 μ μ μ§ν κ°μ`);
|
|
373
|
+
console.log('');
|
|
374
|
+
console.log(chalk.yellow('π‘ μ¬μ© μμ:'));
|
|
375
|
+
console.log('');
|
|
376
|
+
console.log(` ${chalk.gray('# μ΅κ·Ό 체ν¬ν¬μΈνΈμμ 볡ꡬ')}`);
|
|
377
|
+
console.log(` ${chalk.blue('aiwf-checkpoint list')}`);
|
|
378
|
+
console.log(` ${chalk.blue('aiwf-checkpoint restore cp_1234567890')}`);
|
|
379
|
+
console.log('');
|
|
380
|
+
console.log(` ${chalk.gray('# μ€μν μμ
μ μλ 체ν¬ν¬μΈνΈ μμ±')}`);
|
|
381
|
+
console.log(` ${chalk.blue('aiwf-checkpoint create "μ£Όμ 리ν©ν λ§ μ "')}`);
|
|
382
|
+
console.log('');
|
|
383
|
+
console.log(` ${chalk.gray('# μ€λλ 체ν¬ν¬μΈνΈ μ 리')}`);
|
|
384
|
+
console.log(` ${chalk.blue('aiwf-checkpoint clean --keep 5')}`);
|
|
385
|
+
console.log('');
|
|
386
|
+
console.log(chalk.green('π‘οΈ μ²΄ν¬ν¬μΈνΈλ YOLO λͺ¨λ μ€ν μ€ μλμΌλ‘ μμ±λ©λλ€!'));
|
|
387
|
+
});
|
|
388
|
+
|
|
389
|
+
// μκ° κ²½κ³Ό κ³μ° ν¬νΌ
|
|
390
|
+
function getTimeAgo(date) {
|
|
391
|
+
const now = new Date();
|
|
392
|
+
const diffMs = now - date;
|
|
393
|
+
const diffMins = Math.floor(diffMs / 60000);
|
|
394
|
+
const diffHours = Math.floor(diffMins / 60);
|
|
395
|
+
const diffDays = Math.floor(diffHours / 24);
|
|
396
|
+
|
|
397
|
+
if (diffDays > 0) return `${diffDays}μΌ μ `;
|
|
398
|
+
if (diffHours > 0) return `${diffHours}μκ° μ `;
|
|
399
|
+
if (diffMins > 0) return `${diffMins}λΆ μ `;
|
|
400
|
+
return 'λ°©κΈ μ ';
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
// μλ¬ νΈλ€λ§
|
|
404
|
+
program.on('command:*', () => {
|
|
405
|
+
console.error(chalk.red('β μ μ μλ λͺ
λ Ήμ΄μ
λλ€.'));
|
|
406
|
+
console.log('');
|
|
407
|
+
console.log(chalk.blue('λμλ§μ λ³΄λ €λ©΄: aiwf-checkpoint help'));
|
|
408
|
+
process.exit(1);
|
|
409
|
+
});
|
|
410
|
+
|
|
411
|
+
// CLI μ€ν
|
|
412
|
+
program.parse(process.argv);
|
|
413
|
+
|
|
414
|
+
// μΈμκ° μμΌλ©΄ λμλ§ νμ
|
|
415
|
+
if (!process.argv.slice(2).length) {
|
|
416
|
+
program.outputHelp();
|
|
417
|
+
}
|