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
|
@@ -1,1252 +0,0 @@
|
|
|
1
|
-
import { ContextCompressor } from '../utils/context-compressor.js';
|
|
2
|
-
import { CompressionMetrics } from '../utils/compression-metrics.js';
|
|
3
|
-
import { TokenCounter } from '../utils/token-counter.js';
|
|
4
|
-
import fs from 'fs';
|
|
5
|
-
import path from 'path';
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* 압축 알고리즘 테스트 스위트
|
|
9
|
-
*/
|
|
10
|
-
export class CompressionTestSuite {
|
|
11
|
-
constructor() {
|
|
12
|
-
this.compressor = new ContextCompressor();
|
|
13
|
-
this.metrics = new CompressionMetrics();
|
|
14
|
-
this.tokenCounter = new TokenCounter();
|
|
15
|
-
this.testResults = [];
|
|
16
|
-
this.initializeTestSuite();
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
* 테스트 스위트를 초기화합니다
|
|
21
|
-
*/
|
|
22
|
-
initializeTestSuite() {
|
|
23
|
-
// 테스트 카테고리 정의
|
|
24
|
-
this.testCategories = {
|
|
25
|
-
task_documents: {
|
|
26
|
-
name: '태스크 문서',
|
|
27
|
-
description: '태스크 파일 및 프로젝트 문서',
|
|
28
|
-
files: [
|
|
29
|
-
'task_files',
|
|
30
|
-
'sprint_metadata',
|
|
31
|
-
'project_manifest',
|
|
32
|
-
'requirement_docs'
|
|
33
|
-
]
|
|
34
|
-
},
|
|
35
|
-
code_documentation: {
|
|
36
|
-
name: '코드 문서',
|
|
37
|
-
description: '코드 주석 및 API 문서',
|
|
38
|
-
files: [
|
|
39
|
-
'api_docs',
|
|
40
|
-
'code_comments',
|
|
41
|
-
'readme_files',
|
|
42
|
-
'technical_specs'
|
|
43
|
-
]
|
|
44
|
-
},
|
|
45
|
-
meeting_notes: {
|
|
46
|
-
name: '회의록',
|
|
47
|
-
description: '회의 기록 및 논의 사항',
|
|
48
|
-
files: [
|
|
49
|
-
'meeting_minutes',
|
|
50
|
-
'decision_records',
|
|
51
|
-
'brainstorming_notes'
|
|
52
|
-
]
|
|
53
|
-
},
|
|
54
|
-
mixed_content: {
|
|
55
|
-
name: '혼합 콘텐츠',
|
|
56
|
-
description: '다양한 형태가 혼합된 콘텐츠',
|
|
57
|
-
files: [
|
|
58
|
-
'mixed_markdown',
|
|
59
|
-
'structured_data',
|
|
60
|
-
'multi_language'
|
|
61
|
-
]
|
|
62
|
-
}
|
|
63
|
-
};
|
|
64
|
-
|
|
65
|
-
// 테스트 시나리오 정의
|
|
66
|
-
this.testScenarios = {
|
|
67
|
-
basic_compression: {
|
|
68
|
-
name: '기본 압축',
|
|
69
|
-
description: '기본 압축 기능 테스트',
|
|
70
|
-
strategies: ['minimal', 'balanced', 'aggressive']
|
|
71
|
-
},
|
|
72
|
-
target_ratio: {
|
|
73
|
-
name: '목표 압축률',
|
|
74
|
-
description: '특정 압축률 달성 테스트',
|
|
75
|
-
targets: [0.3, 0.5, 0.7]
|
|
76
|
-
},
|
|
77
|
-
token_limit: {
|
|
78
|
-
name: '토큰 제한',
|
|
79
|
-
description: '토큰 수 제한 테스트',
|
|
80
|
-
limits: [1000, 2000, 5000]
|
|
81
|
-
},
|
|
82
|
-
quality_preservation: {
|
|
83
|
-
name: '품질 보존',
|
|
84
|
-
description: '정보 품질 보존 테스트',
|
|
85
|
-
quality_thresholds: [0.7, 0.8, 0.9]
|
|
86
|
-
},
|
|
87
|
-
performance_benchmark: {
|
|
88
|
-
name: '성능 벤치마크',
|
|
89
|
-
description: '처리 성능 측정 테스트',
|
|
90
|
-
content_sizes: ['small', 'medium', 'large']
|
|
91
|
-
}
|
|
92
|
-
};
|
|
93
|
-
|
|
94
|
-
// 테스트 데이터 생성
|
|
95
|
-
this.generateTestData();
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
/**
|
|
99
|
-
* 테스트 데이터를 생성합니다
|
|
100
|
-
*/
|
|
101
|
-
generateTestData() {
|
|
102
|
-
this.testData = {
|
|
103
|
-
task_files: {
|
|
104
|
-
simple_task: this.generateSimpleTaskContent(),
|
|
105
|
-
complex_task: this.generateComplexTaskContent(),
|
|
106
|
-
korean_task: this.generateKoreanTaskContent()
|
|
107
|
-
},
|
|
108
|
-
sprint_metadata: {
|
|
109
|
-
sprint_meta: this.generateSprintMetadata(),
|
|
110
|
-
milestone_data: this.generateMilestoneData()
|
|
111
|
-
},
|
|
112
|
-
project_manifest: {
|
|
113
|
-
project_manifest: this.generateProjectManifest()
|
|
114
|
-
},
|
|
115
|
-
requirement_docs: {
|
|
116
|
-
prd_document: this.generatePRDDocument(),
|
|
117
|
-
technical_specs: this.generateTechnicalSpecs()
|
|
118
|
-
},
|
|
119
|
-
api_docs: {
|
|
120
|
-
api_reference: this.generateAPIReference(),
|
|
121
|
-
code_examples: this.generateCodeExamples()
|
|
122
|
-
},
|
|
123
|
-
readme_files: {
|
|
124
|
-
project_readme: this.generateProjectReadme(),
|
|
125
|
-
installation_guide: this.generateInstallationGuide()
|
|
126
|
-
},
|
|
127
|
-
meeting_minutes: {
|
|
128
|
-
team_meeting: this.generateTeamMeetingNotes(),
|
|
129
|
-
design_review: this.generateDesignReviewNotes()
|
|
130
|
-
},
|
|
131
|
-
mixed_content: {
|
|
132
|
-
mixed_markdown: this.generateMixedMarkdown(),
|
|
133
|
-
structured_data: this.generateStructuredData()
|
|
134
|
-
}
|
|
135
|
-
};
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
/**
|
|
139
|
-
* 전체 테스트 스위트를 실행합니다
|
|
140
|
-
* @param {Object} options - 테스트 옵션
|
|
141
|
-
* @returns {Object} 테스트 결과
|
|
142
|
-
*/
|
|
143
|
-
async runFullTestSuite(options = {}) {
|
|
144
|
-
const {
|
|
145
|
-
categories = Object.keys(this.testCategories),
|
|
146
|
-
scenarios = Object.keys(this.testScenarios),
|
|
147
|
-
generateReport = true
|
|
148
|
-
} = options;
|
|
149
|
-
|
|
150
|
-
console.log('압축 알고리즘 테스트 스위트 시작...');
|
|
151
|
-
const startTime = Date.now();
|
|
152
|
-
|
|
153
|
-
this.testResults = [];
|
|
154
|
-
|
|
155
|
-
// 카테고리별 테스트 실행
|
|
156
|
-
for (const category of categories) {
|
|
157
|
-
console.log(`\n=== ${this.testCategories[category].name} 테스트 시작 ===`);
|
|
158
|
-
|
|
159
|
-
for (const scenario of scenarios) {
|
|
160
|
-
await this.runCategoryScenarioTest(category, scenario);
|
|
161
|
-
}
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
// 성능 벤치마크 테스트
|
|
165
|
-
await this.runPerformanceBenchmark();
|
|
166
|
-
|
|
167
|
-
// 스트레스 테스트
|
|
168
|
-
await this.runStressTest();
|
|
169
|
-
|
|
170
|
-
const totalTime = Date.now() - startTime;
|
|
171
|
-
console.log(`\n테스트 완료. 총 소요시간: ${totalTime}ms`);
|
|
172
|
-
|
|
173
|
-
// 결과 분석
|
|
174
|
-
const analysis = this.analyzeTestResults();
|
|
175
|
-
|
|
176
|
-
const results = {
|
|
177
|
-
summary: {
|
|
178
|
-
total_tests: this.testResults.length,
|
|
179
|
-
passed: this.testResults.filter(r => r.success).length,
|
|
180
|
-
failed: this.testResults.filter(r => !r.success).length,
|
|
181
|
-
total_time: totalTime,
|
|
182
|
-
average_time: totalTime / this.testResults.length
|
|
183
|
-
},
|
|
184
|
-
results: this.testResults,
|
|
185
|
-
analysis,
|
|
186
|
-
timestamp: new Date().toISOString()
|
|
187
|
-
};
|
|
188
|
-
|
|
189
|
-
// 보고서 생성
|
|
190
|
-
if (generateReport) {
|
|
191
|
-
const report = this.generateTestReport(results);
|
|
192
|
-
await this.saveTestReport(report);
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
return results;
|
|
196
|
-
}
|
|
197
|
-
|
|
198
|
-
/**
|
|
199
|
-
* 카테고리별 시나리오 테스트를 실행합니다
|
|
200
|
-
* @param {string} category - 테스트 카테고리
|
|
201
|
-
* @param {string} scenario - 테스트 시나리오
|
|
202
|
-
*/
|
|
203
|
-
async runCategoryScenarioTest(category, scenario) {
|
|
204
|
-
const categoryData = this.testCategories[category];
|
|
205
|
-
const scenarioData = this.testScenarios[scenario];
|
|
206
|
-
|
|
207
|
-
console.log(` ${scenarioData.name} 테스트 실행 중...`);
|
|
208
|
-
|
|
209
|
-
// 카테고리의 각 파일 타입에 대해 테스트
|
|
210
|
-
for (const fileType of categoryData.files) {
|
|
211
|
-
const testFiles = this.testData[fileType];
|
|
212
|
-
|
|
213
|
-
if (!testFiles) continue;
|
|
214
|
-
|
|
215
|
-
for (const [fileName, content] of Object.entries(testFiles)) {
|
|
216
|
-
await this.runSingleTest({
|
|
217
|
-
category,
|
|
218
|
-
scenario,
|
|
219
|
-
fileType,
|
|
220
|
-
fileName,
|
|
221
|
-
content,
|
|
222
|
-
categoryData,
|
|
223
|
-
scenarioData
|
|
224
|
-
});
|
|
225
|
-
}
|
|
226
|
-
}
|
|
227
|
-
}
|
|
228
|
-
|
|
229
|
-
/**
|
|
230
|
-
* 단일 테스트를 실행합니다
|
|
231
|
-
* @param {Object} testConfig - 테스트 구성
|
|
232
|
-
*/
|
|
233
|
-
async runSingleTest(testConfig) {
|
|
234
|
-
const { category, scenario, fileType, fileName, content, scenarioData } = testConfig;
|
|
235
|
-
|
|
236
|
-
const testId = `${category}_${scenario}_${fileType}_${fileName}`;
|
|
237
|
-
const startTime = Date.now();
|
|
238
|
-
|
|
239
|
-
try {
|
|
240
|
-
let testResult = null;
|
|
241
|
-
|
|
242
|
-
// 시나리오별 테스트 실행
|
|
243
|
-
switch (scenario) {
|
|
244
|
-
case 'basic_compression':
|
|
245
|
-
testResult = await this.runBasicCompressionTest(content, scenarioData);
|
|
246
|
-
break;
|
|
247
|
-
case 'target_ratio':
|
|
248
|
-
testResult = await this.runTargetRatioTest(content, scenarioData);
|
|
249
|
-
break;
|
|
250
|
-
case 'token_limit':
|
|
251
|
-
testResult = await this.runTokenLimitTest(content, scenarioData);
|
|
252
|
-
break;
|
|
253
|
-
case 'quality_preservation':
|
|
254
|
-
testResult = await this.runQualityPreservationTest(content, scenarioData);
|
|
255
|
-
break;
|
|
256
|
-
case 'performance_benchmark':
|
|
257
|
-
testResult = await this.runPerformanceTest(content, scenarioData);
|
|
258
|
-
break;
|
|
259
|
-
default:
|
|
260
|
-
throw new Error(`알 수 없는 시나리오: ${scenario}`);
|
|
261
|
-
}
|
|
262
|
-
|
|
263
|
-
const endTime = Date.now();
|
|
264
|
-
const duration = endTime - startTime;
|
|
265
|
-
|
|
266
|
-
// 메트릭 측정
|
|
267
|
-
const metrics = this.metrics.measureCompression(
|
|
268
|
-
content,
|
|
269
|
-
testResult.compressed,
|
|
270
|
-
{ ...testResult.metadata, processingTime: duration }
|
|
271
|
-
);
|
|
272
|
-
|
|
273
|
-
this.testResults.push({
|
|
274
|
-
id: testId,
|
|
275
|
-
category,
|
|
276
|
-
scenario,
|
|
277
|
-
fileType,
|
|
278
|
-
fileName,
|
|
279
|
-
success: true,
|
|
280
|
-
duration,
|
|
281
|
-
compression: testResult,
|
|
282
|
-
metrics: metrics.metrics,
|
|
283
|
-
benchmark: metrics.benchmark,
|
|
284
|
-
timestamp: new Date().toISOString()
|
|
285
|
-
});
|
|
286
|
-
|
|
287
|
-
console.log(` ✓ ${testId} (${duration}ms)`);
|
|
288
|
-
|
|
289
|
-
} catch (error) {
|
|
290
|
-
console.error(` ✗ ${testId} - 오류: ${error.message}`);
|
|
291
|
-
|
|
292
|
-
this.testResults.push({
|
|
293
|
-
id: testId,
|
|
294
|
-
category,
|
|
295
|
-
scenario,
|
|
296
|
-
fileType,
|
|
297
|
-
fileName,
|
|
298
|
-
success: false,
|
|
299
|
-
duration: Date.now() - startTime,
|
|
300
|
-
error: error.message,
|
|
301
|
-
timestamp: new Date().toISOString()
|
|
302
|
-
});
|
|
303
|
-
}
|
|
304
|
-
}
|
|
305
|
-
|
|
306
|
-
/**
|
|
307
|
-
* 기본 압축 테스트를 실행합니다
|
|
308
|
-
* @param {string} content - 테스트 콘텐츠
|
|
309
|
-
* @param {Object} scenarioData - 시나리오 데이터
|
|
310
|
-
* @returns {Object} 테스트 결과
|
|
311
|
-
*/
|
|
312
|
-
async runBasicCompressionTest(content, scenarioData) {
|
|
313
|
-
const results = [];
|
|
314
|
-
|
|
315
|
-
for (const strategy of scenarioData.strategies) {
|
|
316
|
-
this.compressor.setMode(strategy);
|
|
317
|
-
const result = await this.compressor.compress(content);
|
|
318
|
-
results.push({
|
|
319
|
-
strategy,
|
|
320
|
-
...result
|
|
321
|
-
});
|
|
322
|
-
}
|
|
323
|
-
|
|
324
|
-
return {
|
|
325
|
-
test_type: 'basic_compression',
|
|
326
|
-
results,
|
|
327
|
-
compressed: results[0].compressed, // 첫 번째 결과를 대표로 사용
|
|
328
|
-
metadata: { strategies_tested: scenarioData.strategies }
|
|
329
|
-
};
|
|
330
|
-
}
|
|
331
|
-
|
|
332
|
-
/**
|
|
333
|
-
* 목표 압축률 테스트를 실행합니다
|
|
334
|
-
* @param {string} content - 테스트 콘텐츠
|
|
335
|
-
* @param {Object} scenarioData - 시나리오 데이터
|
|
336
|
-
* @returns {Object} 테스트 결과
|
|
337
|
-
*/
|
|
338
|
-
async runTargetRatioTest(content, scenarioData) {
|
|
339
|
-
const results = [];
|
|
340
|
-
|
|
341
|
-
for (const targetRatio of scenarioData.targets) {
|
|
342
|
-
const result = await this.compressor.compress(content, {
|
|
343
|
-
targetRatio,
|
|
344
|
-
enableSummarization: true
|
|
345
|
-
});
|
|
346
|
-
|
|
347
|
-
results.push({
|
|
348
|
-
target_ratio: targetRatio,
|
|
349
|
-
actual_ratio: result.compressionRatio,
|
|
350
|
-
difference: Math.abs(targetRatio * 100 - result.compressionRatio),
|
|
351
|
-
...result
|
|
352
|
-
});
|
|
353
|
-
}
|
|
354
|
-
|
|
355
|
-
return {
|
|
356
|
-
test_type: 'target_ratio',
|
|
357
|
-
results,
|
|
358
|
-
compressed: results[0].compressed,
|
|
359
|
-
metadata: { targets_tested: scenarioData.targets }
|
|
360
|
-
};
|
|
361
|
-
}
|
|
362
|
-
|
|
363
|
-
/**
|
|
364
|
-
* 토큰 제한 테스트를 실행합니다
|
|
365
|
-
* @param {string} content - 테스트 콘텐츠
|
|
366
|
-
* @param {Object} scenarioData - 시나리오 데이터
|
|
367
|
-
* @returns {Object} 테스트 결과
|
|
368
|
-
*/
|
|
369
|
-
async runTokenLimitTest(content, scenarioData) {
|
|
370
|
-
const results = [];
|
|
371
|
-
|
|
372
|
-
for (const limit of scenarioData.limits) {
|
|
373
|
-
const result = await this.compressor.compress(content, {
|
|
374
|
-
maxTokens: limit,
|
|
375
|
-
enableFiltering: true
|
|
376
|
-
});
|
|
377
|
-
|
|
378
|
-
results.push({
|
|
379
|
-
token_limit: limit,
|
|
380
|
-
actual_tokens: result.compressedTokens,
|
|
381
|
-
within_limit: result.compressedTokens <= limit,
|
|
382
|
-
...result
|
|
383
|
-
});
|
|
384
|
-
}
|
|
385
|
-
|
|
386
|
-
return {
|
|
387
|
-
test_type: 'token_limit',
|
|
388
|
-
results,
|
|
389
|
-
compressed: results[0].compressed,
|
|
390
|
-
metadata: { limits_tested: scenarioData.limits }
|
|
391
|
-
};
|
|
392
|
-
}
|
|
393
|
-
|
|
394
|
-
/**
|
|
395
|
-
* 품질 보존 테스트를 실행합니다
|
|
396
|
-
* @param {string} content - 테스트 콘텐츠
|
|
397
|
-
* @param {Object} scenarioData - 시나리오 데이터
|
|
398
|
-
* @returns {Object} 테스트 결과
|
|
399
|
-
*/
|
|
400
|
-
async runQualityPreservationTest(content, scenarioData) {
|
|
401
|
-
const results = [];
|
|
402
|
-
|
|
403
|
-
for (const threshold of scenarioData.quality_thresholds) {
|
|
404
|
-
const result = await this.compressor.compress(content, {
|
|
405
|
-
preserveStructure: true,
|
|
406
|
-
enableFiltering: true,
|
|
407
|
-
customFilters: {
|
|
408
|
-
preserve: {
|
|
409
|
-
importance: threshold >= 0.9 ? ['critical', 'high'] : ['critical']
|
|
410
|
-
}
|
|
411
|
-
}
|
|
412
|
-
});
|
|
413
|
-
|
|
414
|
-
// 품질 점수 계산
|
|
415
|
-
const qualityScore = this.calculateQualityScore(content, result.compressed);
|
|
416
|
-
|
|
417
|
-
results.push({
|
|
418
|
-
quality_threshold: threshold,
|
|
419
|
-
actual_quality: qualityScore,
|
|
420
|
-
meets_threshold: qualityScore >= threshold,
|
|
421
|
-
...result
|
|
422
|
-
});
|
|
423
|
-
}
|
|
424
|
-
|
|
425
|
-
return {
|
|
426
|
-
test_type: 'quality_preservation',
|
|
427
|
-
results,
|
|
428
|
-
compressed: results[0].compressed,
|
|
429
|
-
metadata: { thresholds_tested: scenarioData.quality_thresholds }
|
|
430
|
-
};
|
|
431
|
-
}
|
|
432
|
-
|
|
433
|
-
/**
|
|
434
|
-
* 성능 테스트를 실행합니다
|
|
435
|
-
* @param {string} content - 테스트 콘텐츠
|
|
436
|
-
* @param {Object} scenarioData - 시나리오 데이터
|
|
437
|
-
* @returns {Object} 테스트 결과
|
|
438
|
-
*/
|
|
439
|
-
async runPerformanceTest(content, scenarioData) {
|
|
440
|
-
const results = [];
|
|
441
|
-
|
|
442
|
-
// 다양한 크기의 콘텐츠로 테스트
|
|
443
|
-
for (const size of scenarioData.content_sizes) {
|
|
444
|
-
const testContent = this.generateContentBySize(content, size);
|
|
445
|
-
const iterations = size === 'large' ? 1 : size === 'medium' ? 3 : 5;
|
|
446
|
-
|
|
447
|
-
const iterationResults = [];
|
|
448
|
-
|
|
449
|
-
for (let i = 0; i < iterations; i++) {
|
|
450
|
-
const startTime = Date.now();
|
|
451
|
-
const result = await this.compressor.compress(testContent);
|
|
452
|
-
const endTime = Date.now();
|
|
453
|
-
|
|
454
|
-
iterationResults.push({
|
|
455
|
-
iteration: i + 1,
|
|
456
|
-
processing_time: endTime - startTime,
|
|
457
|
-
tokens_per_second: result.originalTokens / ((endTime - startTime) / 1000),
|
|
458
|
-
...result
|
|
459
|
-
});
|
|
460
|
-
}
|
|
461
|
-
|
|
462
|
-
results.push({
|
|
463
|
-
content_size: size,
|
|
464
|
-
iterations,
|
|
465
|
-
results: iterationResults,
|
|
466
|
-
average_time: iterationResults.reduce((sum, r) => sum + r.processing_time, 0) / iterations,
|
|
467
|
-
average_tokens_per_second: iterationResults.reduce((sum, r) => sum + r.tokens_per_second, 0) / iterations
|
|
468
|
-
});
|
|
469
|
-
}
|
|
470
|
-
|
|
471
|
-
return {
|
|
472
|
-
test_type: 'performance_benchmark',
|
|
473
|
-
results,
|
|
474
|
-
compressed: results[0].results[0].compressed,
|
|
475
|
-
metadata: { sizes_tested: scenarioData.content_sizes }
|
|
476
|
-
};
|
|
477
|
-
}
|
|
478
|
-
|
|
479
|
-
/**
|
|
480
|
-
* 성능 벤치마크를 실행합니다
|
|
481
|
-
*/
|
|
482
|
-
async runPerformanceBenchmark() {
|
|
483
|
-
console.log('\n=== 성능 벤치마크 테스트 시작 ===');
|
|
484
|
-
|
|
485
|
-
const benchmarkData = {
|
|
486
|
-
small: this.generateContentBySize('', 'small'),
|
|
487
|
-
medium: this.generateContentBySize('', 'medium'),
|
|
488
|
-
large: this.generateContentBySize('', 'large')
|
|
489
|
-
};
|
|
490
|
-
|
|
491
|
-
for (const [size, content] of Object.entries(benchmarkData)) {
|
|
492
|
-
const startTime = Date.now();
|
|
493
|
-
|
|
494
|
-
try {
|
|
495
|
-
const result = await this.compressor.compress(content);
|
|
496
|
-
const endTime = Date.now();
|
|
497
|
-
|
|
498
|
-
console.log(` ${size} 콘텐츠 처리 완료 (${endTime - startTime}ms)`);
|
|
499
|
-
|
|
500
|
-
this.testResults.push({
|
|
501
|
-
id: `performance_benchmark_${size}`,
|
|
502
|
-
category: 'performance',
|
|
503
|
-
scenario: 'benchmark',
|
|
504
|
-
fileType: 'generated',
|
|
505
|
-
fileName: size,
|
|
506
|
-
success: true,
|
|
507
|
-
duration: endTime - startTime,
|
|
508
|
-
compression: result,
|
|
509
|
-
timestamp: new Date().toISOString()
|
|
510
|
-
});
|
|
511
|
-
} catch (error) {
|
|
512
|
-
console.error(` ${size} 콘텐츠 처리 실패: ${error.message}`);
|
|
513
|
-
}
|
|
514
|
-
}
|
|
515
|
-
}
|
|
516
|
-
|
|
517
|
-
/**
|
|
518
|
-
* 스트레스 테스트를 실행합니다
|
|
519
|
-
*/
|
|
520
|
-
async runStressTest() {
|
|
521
|
-
console.log('\n=== 스트레스 테스트 시작 ===');
|
|
522
|
-
|
|
523
|
-
const stressContent = this.generateContentBySize('', 'xlarge');
|
|
524
|
-
const strategies = ['minimal', 'balanced', 'aggressive'];
|
|
525
|
-
|
|
526
|
-
for (const strategy of strategies) {
|
|
527
|
-
console.log(` ${strategy} 전략 스트레스 테스트 중...`);
|
|
528
|
-
|
|
529
|
-
const startTime = Date.now();
|
|
530
|
-
|
|
531
|
-
try {
|
|
532
|
-
this.compressor.setMode(strategy);
|
|
533
|
-
const result = await this.compressor.compress(stressContent);
|
|
534
|
-
const endTime = Date.now();
|
|
535
|
-
|
|
536
|
-
console.log(` 완료 (${endTime - startTime}ms)`);
|
|
537
|
-
|
|
538
|
-
this.testResults.push({
|
|
539
|
-
id: `stress_test_${strategy}`,
|
|
540
|
-
category: 'stress',
|
|
541
|
-
scenario: 'stress',
|
|
542
|
-
fileType: 'generated',
|
|
543
|
-
fileName: 'xlarge',
|
|
544
|
-
success: true,
|
|
545
|
-
duration: endTime - startTime,
|
|
546
|
-
compression: result,
|
|
547
|
-
timestamp: new Date().toISOString()
|
|
548
|
-
});
|
|
549
|
-
} catch (error) {
|
|
550
|
-
console.error(` 실패: ${error.message}`);
|
|
551
|
-
|
|
552
|
-
this.testResults.push({
|
|
553
|
-
id: `stress_test_${strategy}`,
|
|
554
|
-
category: 'stress',
|
|
555
|
-
scenario: 'stress',
|
|
556
|
-
fileType: 'generated',
|
|
557
|
-
fileName: 'xlarge',
|
|
558
|
-
success: false,
|
|
559
|
-
duration: Date.now() - startTime,
|
|
560
|
-
error: error.message,
|
|
561
|
-
timestamp: new Date().toISOString()
|
|
562
|
-
});
|
|
563
|
-
}
|
|
564
|
-
}
|
|
565
|
-
}
|
|
566
|
-
|
|
567
|
-
/**
|
|
568
|
-
* 테스트 결과를 분석합니다
|
|
569
|
-
* @returns {Object} 분석 결과
|
|
570
|
-
*/
|
|
571
|
-
analyzeTestResults() {
|
|
572
|
-
const analysis = {
|
|
573
|
-
overall_success_rate: 0,
|
|
574
|
-
average_compression_ratio: 0,
|
|
575
|
-
average_processing_time: 0,
|
|
576
|
-
performance_by_category: {},
|
|
577
|
-
performance_by_scenario: {},
|
|
578
|
-
best_performing_strategy: null,
|
|
579
|
-
recommendations: []
|
|
580
|
-
};
|
|
581
|
-
|
|
582
|
-
const successfulTests = this.testResults.filter(r => r.success);
|
|
583
|
-
|
|
584
|
-
// 전체 성공률
|
|
585
|
-
analysis.overall_success_rate = (successfulTests.length / this.testResults.length) * 100;
|
|
586
|
-
|
|
587
|
-
// 평균 압축률
|
|
588
|
-
const compressionRatios = successfulTests
|
|
589
|
-
.filter(r => r.compression && r.compression.compressionRatio)
|
|
590
|
-
.map(r => r.compression.compressionRatio);
|
|
591
|
-
|
|
592
|
-
analysis.average_compression_ratio = compressionRatios.length > 0
|
|
593
|
-
? compressionRatios.reduce((sum, ratio) => sum + ratio, 0) / compressionRatios.length
|
|
594
|
-
: 0;
|
|
595
|
-
|
|
596
|
-
// 평균 처리 시간
|
|
597
|
-
const processingTimes = successfulTests.map(r => r.duration);
|
|
598
|
-
analysis.average_processing_time = processingTimes.reduce((sum, time) => sum + time, 0) / processingTimes.length;
|
|
599
|
-
|
|
600
|
-
// 카테고리별 성능 분석
|
|
601
|
-
const categories = [...new Set(successfulTests.map(r => r.category))];
|
|
602
|
-
for (const category of categories) {
|
|
603
|
-
const categoryTests = successfulTests.filter(r => r.category === category);
|
|
604
|
-
analysis.performance_by_category[category] = this.analyzeTestGroup(categoryTests);
|
|
605
|
-
}
|
|
606
|
-
|
|
607
|
-
// 시나리오별 성능 분석
|
|
608
|
-
const scenarios = [...new Set(successfulTests.map(r => r.scenario))];
|
|
609
|
-
for (const scenario of scenarios) {
|
|
610
|
-
const scenarioTests = successfulTests.filter(r => r.scenario === scenario);
|
|
611
|
-
analysis.performance_by_scenario[scenario] = this.analyzeTestGroup(scenarioTests);
|
|
612
|
-
}
|
|
613
|
-
|
|
614
|
-
// 최고 성능 전략 식별
|
|
615
|
-
analysis.best_performing_strategy = this.identifyBestStrategy(successfulTests);
|
|
616
|
-
|
|
617
|
-
// 권장사항 생성
|
|
618
|
-
analysis.recommendations = this.generateTestRecommendations(analysis);
|
|
619
|
-
|
|
620
|
-
return analysis;
|
|
621
|
-
}
|
|
622
|
-
|
|
623
|
-
/**
|
|
624
|
-
* 테스트 그룹을 분석합니다
|
|
625
|
-
* @param {Array} tests - 테스트 배열
|
|
626
|
-
* @returns {Object} 그룹 분석 결과
|
|
627
|
-
*/
|
|
628
|
-
analyzeTestGroup(tests) {
|
|
629
|
-
const compressionRatios = tests
|
|
630
|
-
.filter(t => t.compression && t.compression.compressionRatio)
|
|
631
|
-
.map(t => t.compression.compressionRatio);
|
|
632
|
-
|
|
633
|
-
const processingTimes = tests.map(t => t.duration);
|
|
634
|
-
|
|
635
|
-
return {
|
|
636
|
-
test_count: tests.length,
|
|
637
|
-
success_rate: (tests.filter(t => t.success).length / tests.length) * 100,
|
|
638
|
-
average_compression_ratio: compressionRatios.length > 0
|
|
639
|
-
? compressionRatios.reduce((sum, ratio) => sum + ratio, 0) / compressionRatios.length
|
|
640
|
-
: 0,
|
|
641
|
-
average_processing_time: processingTimes.reduce((sum, time) => sum + time, 0) / processingTimes.length,
|
|
642
|
-
min_processing_time: Math.min(...processingTimes),
|
|
643
|
-
max_processing_time: Math.max(...processingTimes)
|
|
644
|
-
};
|
|
645
|
-
}
|
|
646
|
-
|
|
647
|
-
/**
|
|
648
|
-
* 최고 성능 전략을 식별합니다
|
|
649
|
-
* @param {Array} tests - 성공한 테스트 배열
|
|
650
|
-
* @returns {Object} 최고 성능 전략
|
|
651
|
-
*/
|
|
652
|
-
identifyBestStrategy(tests) {
|
|
653
|
-
const strategies = ['minimal', 'balanced', 'aggressive'];
|
|
654
|
-
const strategyPerformance = {};
|
|
655
|
-
|
|
656
|
-
for (const strategy of strategies) {
|
|
657
|
-
const strategyTests = tests.filter(t =>
|
|
658
|
-
t.compression && t.compression.strategy === strategy
|
|
659
|
-
);
|
|
660
|
-
|
|
661
|
-
if (strategyTests.length > 0) {
|
|
662
|
-
strategyPerformance[strategy] = this.analyzeTestGroup(strategyTests);
|
|
663
|
-
}
|
|
664
|
-
}
|
|
665
|
-
|
|
666
|
-
// 압축률과 처리 시간을 고려한 종합 점수 계산
|
|
667
|
-
let bestStrategy = null;
|
|
668
|
-
let bestScore = -1;
|
|
669
|
-
|
|
670
|
-
for (const [strategy, performance] of Object.entries(strategyPerformance)) {
|
|
671
|
-
const score = (performance.average_compression_ratio * 0.7) +
|
|
672
|
-
((10000 - performance.average_processing_time) / 10000 * 100 * 0.3);
|
|
673
|
-
|
|
674
|
-
if (score > bestScore) {
|
|
675
|
-
bestScore = score;
|
|
676
|
-
bestStrategy = strategy;
|
|
677
|
-
}
|
|
678
|
-
}
|
|
679
|
-
|
|
680
|
-
return {
|
|
681
|
-
strategy: bestStrategy,
|
|
682
|
-
score: bestScore,
|
|
683
|
-
performance: strategyPerformance[bestStrategy]
|
|
684
|
-
};
|
|
685
|
-
}
|
|
686
|
-
|
|
687
|
-
/**
|
|
688
|
-
* 테스트 권장사항을 생성합니다
|
|
689
|
-
* @param {Object} analysis - 분석 결과
|
|
690
|
-
* @returns {Array} 권장사항 배열
|
|
691
|
-
*/
|
|
692
|
-
generateTestRecommendations(analysis) {
|
|
693
|
-
const recommendations = [];
|
|
694
|
-
|
|
695
|
-
// 성공률 기반 권장사항
|
|
696
|
-
if (analysis.overall_success_rate < 90) {
|
|
697
|
-
recommendations.push('전체 테스트 성공률이 낮습니다. 오류 처리를 개선하세요.');
|
|
698
|
-
}
|
|
699
|
-
|
|
700
|
-
// 압축률 기반 권장사항
|
|
701
|
-
if (analysis.average_compression_ratio < 30) {
|
|
702
|
-
recommendations.push('평균 압축률이 낮습니다. 더 적극적인 압축 전략을 고려하세요.');
|
|
703
|
-
} else if (analysis.average_compression_ratio > 80) {
|
|
704
|
-
recommendations.push('평균 압축률이 너무 높습니다. 정보 손실을 방지하기 위해 압축률을 낮추세요.');
|
|
705
|
-
}
|
|
706
|
-
|
|
707
|
-
// 성능 기반 권장사항
|
|
708
|
-
if (analysis.average_processing_time > 5000) {
|
|
709
|
-
recommendations.push('평균 처리 시간이 오래 걸립니다. 성능 최적화를 고려하세요.');
|
|
710
|
-
}
|
|
711
|
-
|
|
712
|
-
// 최고 성능 전략 권장사항
|
|
713
|
-
if (analysis.best_performing_strategy) {
|
|
714
|
-
recommendations.push(`${analysis.best_performing_strategy.strategy} 전략이 가장 좋은 성능을 보였습니다.`);
|
|
715
|
-
}
|
|
716
|
-
|
|
717
|
-
return recommendations;
|
|
718
|
-
}
|
|
719
|
-
|
|
720
|
-
/**
|
|
721
|
-
* 품질 점수를 계산합니다
|
|
722
|
-
* @param {string} original - 원본 콘텐츠
|
|
723
|
-
* @param {string} compressed - 압축된 콘텐츠
|
|
724
|
-
* @returns {number} 품질 점수 (0-1)
|
|
725
|
-
*/
|
|
726
|
-
calculateQualityScore(original, compressed) {
|
|
727
|
-
// 단순한 품질 점수 계산 (실제로는 더 복잡한 로직 필요)
|
|
728
|
-
const originalWords = new Set(original.toLowerCase().split(/\s+/));
|
|
729
|
-
const compressedWords = new Set(compressed.toLowerCase().split(/\s+/));
|
|
730
|
-
|
|
731
|
-
const intersection = new Set([...originalWords].filter(word => compressedWords.has(word)));
|
|
732
|
-
return intersection.size / originalWords.size;
|
|
733
|
-
}
|
|
734
|
-
|
|
735
|
-
/**
|
|
736
|
-
* 크기별 콘텐츠를 생성합니다
|
|
737
|
-
* @param {string} baseContent - 기본 콘텐츠
|
|
738
|
-
* @param {string} size - 크기 ('small', 'medium', 'large', 'xlarge')
|
|
739
|
-
* @returns {string} 생성된 콘텐츠
|
|
740
|
-
*/
|
|
741
|
-
generateContentBySize(baseContent, size) {
|
|
742
|
-
const multipliers = {
|
|
743
|
-
small: 1,
|
|
744
|
-
medium: 5,
|
|
745
|
-
large: 20,
|
|
746
|
-
xlarge: 50
|
|
747
|
-
};
|
|
748
|
-
|
|
749
|
-
const multiplier = multipliers[size] || 1;
|
|
750
|
-
const content = baseContent || this.generateComplexTaskContent();
|
|
751
|
-
|
|
752
|
-
return Array(multiplier).fill(content).join('\n\n');
|
|
753
|
-
}
|
|
754
|
-
|
|
755
|
-
// 테스트 데이터 생성 메서드들
|
|
756
|
-
generateSimpleTaskContent() {
|
|
757
|
-
return `# Simple Task
|
|
758
|
-
|
|
759
|
-
## Description
|
|
760
|
-
This is a simple task for testing compression.
|
|
761
|
-
|
|
762
|
-
## Goal
|
|
763
|
-
Test basic compression functionality.
|
|
764
|
-
|
|
765
|
-
## Subtasks
|
|
766
|
-
- [ ] Task 1
|
|
767
|
-
- [ ] Task 2
|
|
768
|
-
- [x] Task 3
|
|
769
|
-
|
|
770
|
-
## Notes
|
|
771
|
-
Basic notes for testing.`;
|
|
772
|
-
}
|
|
773
|
-
|
|
774
|
-
generateComplexTaskContent() {
|
|
775
|
-
return `---
|
|
776
|
-
task_id: T01_S01
|
|
777
|
-
sprint_sequence_id: S01
|
|
778
|
-
status: in_progress
|
|
779
|
-
complexity: High
|
|
780
|
-
last_updated: 2025-07-09T02:00:00Z
|
|
781
|
-
github_issue:
|
|
782
|
-
---
|
|
783
|
-
|
|
784
|
-
# Task: 복잡한 압축 알고리즘 구현
|
|
785
|
-
|
|
786
|
-
## Description
|
|
787
|
-
이 태스크는 복잡한 압축 알고리즘을 구현하고 테스트하는 것을 목표로 합니다. 다양한 압축 전략을 구현하고, 성능을 측정하며, 품질을 검증해야 합니다.
|
|
788
|
-
|
|
789
|
-
## Goal / Objectives
|
|
790
|
-
- 3가지 압축 전략 구현 (Aggressive, Balanced, Minimal)
|
|
791
|
-
- 50% 이상의 압축률 달성
|
|
792
|
-
- 정보 손실 최소화
|
|
793
|
-
- 성능 최적화
|
|
794
|
-
|
|
795
|
-
## Acceptance Criteria
|
|
796
|
-
- [ ] 기본 압축 기능이 정상 작동함
|
|
797
|
-
- [ ] 압축률이 50% 이상 달성됨
|
|
798
|
-
- [ ] 중요 정보가 보존됨
|
|
799
|
-
- [ ] 성능 테스트 통과
|
|
800
|
-
- [ ] 품질 검증 완료
|
|
801
|
-
|
|
802
|
-
## Subtasks
|
|
803
|
-
- [ ] 압축 전략 설계
|
|
804
|
-
- [ ] 기본 압축 알고리즘 구현
|
|
805
|
-
- [ ] 성능 최적화
|
|
806
|
-
- [ ] 테스트 케이스 작성
|
|
807
|
-
- [ ] 품질 검증
|
|
808
|
-
- [ ] 문서화
|
|
809
|
-
|
|
810
|
-
## Technical Details
|
|
811
|
-
### 구현 방법
|
|
812
|
-
1. 텍스트 분석 및 분류
|
|
813
|
-
2. 중요도 기반 필터링
|
|
814
|
-
3. 압축 알고리즘 적용
|
|
815
|
-
4. 검증 및 최적화
|
|
816
|
-
|
|
817
|
-
### 성능 목표
|
|
818
|
-
- 처리 시간: 3초 이내
|
|
819
|
-
- 메모리 사용량: 100MB 이하
|
|
820
|
-
- 압축률: 50% 이상
|
|
821
|
-
|
|
822
|
-
## Output Log
|
|
823
|
-
[2025-07-09 02:00]: 태스크 시작
|
|
824
|
-
[2025-07-09 02:15]: 압축 전략 설계 완료
|
|
825
|
-
[2025-07-09 02:30]: 기본 알고리즘 구현 완료`;
|
|
826
|
-
}
|
|
827
|
-
|
|
828
|
-
generateKoreanTaskContent() {
|
|
829
|
-
return `# 한국어 태스크 테스트
|
|
830
|
-
|
|
831
|
-
## 설명
|
|
832
|
-
한국어 콘텐츠 압축 기능을 테스트합니다.
|
|
833
|
-
|
|
834
|
-
## 목표
|
|
835
|
-
- 한국어 텍스트 압축 성능 검증
|
|
836
|
-
- 한국어 키워드 보존 확인
|
|
837
|
-
- 언어별 특성 고려
|
|
838
|
-
|
|
839
|
-
## 하위 태스크
|
|
840
|
-
- [ ] 한국어 토큰화 구현
|
|
841
|
-
- [ ] 한국어 키워드 추출
|
|
842
|
-
- [ ] 언어별 압축 최적화
|
|
843
|
-
|
|
844
|
-
## 참고 사항
|
|
845
|
-
한국어는 교착어의 특성상 영어와 다른 압축 전략이 필요합니다.`;
|
|
846
|
-
}
|
|
847
|
-
|
|
848
|
-
generateSprintMetadata() {
|
|
849
|
-
return `---
|
|
850
|
-
sprint_folder_name: S01_M02_test_sprint
|
|
851
|
-
sprint_sequence_id: S01
|
|
852
|
-
milestone_id: M02
|
|
853
|
-
title: 테스트 스프린트
|
|
854
|
-
status: in_progress
|
|
855
|
-
goal: 압축 알고리즘 테스트를 위한 스프린트
|
|
856
|
-
last_updated: 2025-07-09T02:00:00Z
|
|
857
|
-
---
|
|
858
|
-
|
|
859
|
-
# Sprint: 테스트 스프린트 (S01)
|
|
860
|
-
|
|
861
|
-
## Sprint Goal
|
|
862
|
-
압축 알고리즘의 다양한 기능을 테스트하고 검증합니다.
|
|
863
|
-
|
|
864
|
-
## Tasks
|
|
865
|
-
- T01: 기본 압축 테스트
|
|
866
|
-
- T02: 성능 테스트
|
|
867
|
-
- T03: 품질 테스트`;
|
|
868
|
-
}
|
|
869
|
-
|
|
870
|
-
generateMilestoneData() {
|
|
871
|
-
return `# Milestone: M02 테스트 마일스톤
|
|
872
|
-
|
|
873
|
-
## 목표
|
|
874
|
-
압축 시스템의 모든 기능을 검증하고 품질을 보장합니다.
|
|
875
|
-
|
|
876
|
-
## 주요 기능
|
|
877
|
-
- 다양한 압축 전략
|
|
878
|
-
- 성능 측정 도구
|
|
879
|
-
- 품질 검증 시스템`;
|
|
880
|
-
}
|
|
881
|
-
|
|
882
|
-
generateProjectManifest() {
|
|
883
|
-
return `# 프로젝트 매니페스트
|
|
884
|
-
|
|
885
|
-
**프로젝트명**: 압축 테스트 프로젝트
|
|
886
|
-
**생성일**: 2025-07-09
|
|
887
|
-
**현재 버전**: 1.0.0
|
|
888
|
-
|
|
889
|
-
## 현재 상태
|
|
890
|
-
- 활성 스프린트: S01
|
|
891
|
-
- 진행 중인 태스크: 3개
|
|
892
|
-
- 완료된 태스크: 0개
|
|
893
|
-
|
|
894
|
-
## 기술 스택
|
|
895
|
-
- JavaScript (ES6+)
|
|
896
|
-
- Node.js
|
|
897
|
-
- Jest (테스트)`;
|
|
898
|
-
}
|
|
899
|
-
|
|
900
|
-
generatePRDDocument() {
|
|
901
|
-
return `# PRD: 압축 시스템
|
|
902
|
-
|
|
903
|
-
## 제품 개요
|
|
904
|
-
Context 압축 시스템은 다양한 텍스트 콘텐츠를 효율적으로 압축하는 도구입니다.
|
|
905
|
-
|
|
906
|
-
## 주요 기능
|
|
907
|
-
1. 다중 압축 전략 지원
|
|
908
|
-
2. 실시간 성능 측정
|
|
909
|
-
3. 품질 보존 메커니즘
|
|
910
|
-
4. 사용자 정의 필터
|
|
911
|
-
|
|
912
|
-
## 기술 요구사항
|
|
913
|
-
- 50% 이상 압축률
|
|
914
|
-
- 3초 이내 처리 시간
|
|
915
|
-
- 90% 이상 정보 보존율`;
|
|
916
|
-
}
|
|
917
|
-
|
|
918
|
-
generateTechnicalSpecs() {
|
|
919
|
-
return `# 기술 명세서
|
|
920
|
-
|
|
921
|
-
## 아키텍처
|
|
922
|
-
- 파이프라인 기반 처리
|
|
923
|
-
- 플러그인 가능한 압축 전략
|
|
924
|
-
- 메트릭 수집 시스템
|
|
925
|
-
|
|
926
|
-
## API 설계
|
|
927
|
-
- compress(content, options)
|
|
928
|
-
- decompress(compressed, metadata)
|
|
929
|
-
- measurePerformance(content)
|
|
930
|
-
|
|
931
|
-
## 성능 지표
|
|
932
|
-
- 압축률: 토큰 기준 50% 이상
|
|
933
|
-
- 처리 속도: 1000토큰/초 이상
|
|
934
|
-
- 메모리 사용량: 100MB 이하`;
|
|
935
|
-
}
|
|
936
|
-
|
|
937
|
-
generateAPIReference() {
|
|
938
|
-
return `# API 참조
|
|
939
|
-
|
|
940
|
-
## ContextCompressor
|
|
941
|
-
|
|
942
|
-
### compress(content, options)
|
|
943
|
-
콘텐츠를 압축합니다.
|
|
944
|
-
|
|
945
|
-
**Parameters:**
|
|
946
|
-
- content: string - 압축할 콘텐츠
|
|
947
|
-
- options: object - 압축 옵션
|
|
948
|
-
|
|
949
|
-
**Returns:**
|
|
950
|
-
- Promise<CompressionResult>
|
|
951
|
-
|
|
952
|
-
### decompress(compressed, metadata)
|
|
953
|
-
압축된 콘텐츠를 복원합니다.
|
|
954
|
-
|
|
955
|
-
**Parameters:**
|
|
956
|
-
- compressed: string - 압축된 콘텐츠
|
|
957
|
-
- metadata: object - 복원 메타데이터
|
|
958
|
-
|
|
959
|
-
**Returns:**
|
|
960
|
-
- Promise<DecompressionResult>`;
|
|
961
|
-
}
|
|
962
|
-
|
|
963
|
-
generateCodeExamples() {
|
|
964
|
-
return `# 코드 예시
|
|
965
|
-
|
|
966
|
-
## 기본 사용법
|
|
967
|
-
|
|
968
|
-
\`\`\`javascript
|
|
969
|
-
const compressor = new ContextCompressor();
|
|
970
|
-
const result = await compressor.compress(content);
|
|
971
|
-
console.log('압축률:', result.compressionRatio);
|
|
972
|
-
\`\`\`
|
|
973
|
-
|
|
974
|
-
## 고급 사용법
|
|
975
|
-
|
|
976
|
-
\`\`\`javascript
|
|
977
|
-
const options = {
|
|
978
|
-
strategy: 'aggressive',
|
|
979
|
-
maxTokens: 2000,
|
|
980
|
-
preserveStructure: true
|
|
981
|
-
};
|
|
982
|
-
const result = await compressor.compress(content, options);
|
|
983
|
-
\`\`\`
|
|
984
|
-
|
|
985
|
-
## 성능 측정
|
|
986
|
-
|
|
987
|
-
\`\`\`javascript
|
|
988
|
-
const metrics = new CompressionMetrics();
|
|
989
|
-
const measurement = metrics.measureCompression(original, compressed);
|
|
990
|
-
console.log('품질 점수:', measurement.metrics.quality.overall_quality);
|
|
991
|
-
\`\`\``;
|
|
992
|
-
}
|
|
993
|
-
|
|
994
|
-
generateProjectReadme() {
|
|
995
|
-
return `# 압축 시스템 프로젝트
|
|
996
|
-
|
|
997
|
-
## 개요
|
|
998
|
-
이 프로젝트는 다양한 텍스트 콘텐츠를 효율적으로 압축하는 시스템을 구현합니다.
|
|
999
|
-
|
|
1000
|
-
## 주요 기능
|
|
1001
|
-
- 다중 압축 전략
|
|
1002
|
-
- 실시간 성능 측정
|
|
1003
|
-
- 품질 보존 메커니즘
|
|
1004
|
-
|
|
1005
|
-
## 설치 방법
|
|
1006
|
-
\`\`\`bash
|
|
1007
|
-
npm install compression-system
|
|
1008
|
-
\`\`\`
|
|
1009
|
-
|
|
1010
|
-
## 사용 방법
|
|
1011
|
-
\`\`\`javascript
|
|
1012
|
-
const compressor = new ContextCompressor();
|
|
1013
|
-
const result = await compressor.compress(content);
|
|
1014
|
-
\`\`\`
|
|
1015
|
-
|
|
1016
|
-
## 라이선스
|
|
1017
|
-
MIT`;
|
|
1018
|
-
}
|
|
1019
|
-
|
|
1020
|
-
generateInstallationGuide() {
|
|
1021
|
-
return `# 설치 가이드
|
|
1022
|
-
|
|
1023
|
-
## 시스템 요구사항
|
|
1024
|
-
- Node.js 14.0.0 이상
|
|
1025
|
-
- npm 6.0.0 이상
|
|
1026
|
-
- 메모리 1GB 이상
|
|
1027
|
-
|
|
1028
|
-
## 설치 단계
|
|
1029
|
-
1. 저장소 클론
|
|
1030
|
-
2. 의존성 설치
|
|
1031
|
-
3. 환경 설정
|
|
1032
|
-
4. 테스트 실행
|
|
1033
|
-
|
|
1034
|
-
## 설정 방법
|
|
1035
|
-
환경 변수 설정:
|
|
1036
|
-
- MAX_TOKENS=10000
|
|
1037
|
-
- COMPRESSION_LEVEL=balanced
|
|
1038
|
-
- ENABLE_METRICS=true
|
|
1039
|
-
|
|
1040
|
-
## 문제 해결
|
|
1041
|
-
- 메모리 부족 오류: 힙 크기 늘리기
|
|
1042
|
-
- 성능 저하: 압축 레벨 조정
|
|
1043
|
-
- 품질 저하: 보존 임계값 조정`;
|
|
1044
|
-
}
|
|
1045
|
-
|
|
1046
|
-
generateTeamMeetingNotes() {
|
|
1047
|
-
return `# 팀 미팅 노트
|
|
1048
|
-
|
|
1049
|
-
**날짜**: 2025-07-09
|
|
1050
|
-
**참석자**: 개발팀 전체
|
|
1051
|
-
**주제**: 압축 시스템 개발 현황
|
|
1052
|
-
|
|
1053
|
-
## 논의 사항
|
|
1054
|
-
1. 현재 개발 진행 상황
|
|
1055
|
-
2. 성능 최적화 방안
|
|
1056
|
-
3. 품질 검증 프로세스
|
|
1057
|
-
4. 다음 스프린트 계획
|
|
1058
|
-
|
|
1059
|
-
## 결정 사항
|
|
1060
|
-
- 압축률 목표: 50% 이상
|
|
1061
|
-
- 성능 목표: 3초 이내
|
|
1062
|
-
- 품질 목표: 90% 이상 보존
|
|
1063
|
-
|
|
1064
|
-
## 액션 아이템
|
|
1065
|
-
- [ ] 성능 벤치마크 구현
|
|
1066
|
-
- [ ] 품질 메트릭 개선
|
|
1067
|
-
- [ ] 문서화 완료`;
|
|
1068
|
-
}
|
|
1069
|
-
|
|
1070
|
-
generateDesignReviewNotes() {
|
|
1071
|
-
return `# 설계 검토 노트
|
|
1072
|
-
|
|
1073
|
-
**날짜**: 2025-07-09
|
|
1074
|
-
**리뷰어**: 시니어 개발자
|
|
1075
|
-
**대상**: 압축 시스템 아키텍처
|
|
1076
|
-
|
|
1077
|
-
## 검토 항목
|
|
1078
|
-
1. 시스템 아키텍처
|
|
1079
|
-
2. 압축 알고리즘 설계
|
|
1080
|
-
3. 성능 최적화 방안
|
|
1081
|
-
4. 확장성 고려사항
|
|
1082
|
-
|
|
1083
|
-
## 피드백
|
|
1084
|
-
- 파이프라인 구조 적절함
|
|
1085
|
-
- 메트릭 수집 시스템 우수
|
|
1086
|
-
- 플러그인 아키텍처 확장성 좋음
|
|
1087
|
-
|
|
1088
|
-
## 개선 사항
|
|
1089
|
-
- 메모리 사용량 최적화 필요
|
|
1090
|
-
- 오류 처리 강화 필요
|
|
1091
|
-
- 더 많은 테스트 케이스 필요`;
|
|
1092
|
-
}
|
|
1093
|
-
|
|
1094
|
-
generateMixedMarkdown() {
|
|
1095
|
-
return `# 혼합 마크다운 문서
|
|
1096
|
-
|
|
1097
|
-
## 텍스트 섹션
|
|
1098
|
-
이 문서는 다양한 마크다운 요소를 포함합니다.
|
|
1099
|
-
|
|
1100
|
-
## 목록
|
|
1101
|
-
- 항목 1
|
|
1102
|
-
- 항목 2
|
|
1103
|
-
- 하위 항목 A
|
|
1104
|
-
- 하위 항목 B
|
|
1105
|
-
- 항목 3
|
|
1106
|
-
|
|
1107
|
-
## 코드 블록
|
|
1108
|
-
\`\`\`javascript
|
|
1109
|
-
function compress(content) {
|
|
1110
|
-
return compressor.compress(content);
|
|
1111
|
-
}
|
|
1112
|
-
\`\`\`
|
|
1113
|
-
|
|
1114
|
-
## 테이블
|
|
1115
|
-
| 항목 | 값 | 설명 |
|
|
1116
|
-
|------|-----|------|
|
|
1117
|
-
| 압축률 | 50% | 토큰 기준 |
|
|
1118
|
-
| 처리시간 | 3초 | 평균 |
|
|
1119
|
-
| 품질 | 90% | 정보 보존 |
|
|
1120
|
-
|
|
1121
|
-
## 링크
|
|
1122
|
-
[압축 시스템 문서](https://example.com/docs)
|
|
1123
|
-
|
|
1124
|
-
## 이미지
|
|
1125
|
-
`;
|
|
1126
|
-
}
|
|
1127
|
-
|
|
1128
|
-
generateStructuredData() {
|
|
1129
|
-
return `# 구조화된 데이터
|
|
1130
|
-
|
|
1131
|
-
## 메타데이터
|
|
1132
|
-
- 생성일: 2025-07-09
|
|
1133
|
-
- 버전: 1.0.0
|
|
1134
|
-
- 작성자: 개발팀
|
|
1135
|
-
|
|
1136
|
-
## 설정 데이터
|
|
1137
|
-
\`\`\`json
|
|
1138
|
-
{
|
|
1139
|
-
"compression": {
|
|
1140
|
-
"strategy": "balanced",
|
|
1141
|
-
"targetRatio": 0.5,
|
|
1142
|
-
"maxTokens": 5000
|
|
1143
|
-
},
|
|
1144
|
-
"performance": {
|
|
1145
|
-
"timeout": 10000,
|
|
1146
|
-
"memoryLimit": 104857600
|
|
1147
|
-
}
|
|
1148
|
-
}
|
|
1149
|
-
\`\`\`
|
|
1150
|
-
|
|
1151
|
-
## 통계 데이터
|
|
1152
|
-
- 총 테스트: 100개
|
|
1153
|
-
- 성공률: 95%
|
|
1154
|
-
- 평균 압축률: 52%
|
|
1155
|
-
- 평균 처리시간: 1.2초`;
|
|
1156
|
-
}
|
|
1157
|
-
|
|
1158
|
-
/**
|
|
1159
|
-
* 테스트 보고서를 생성합니다
|
|
1160
|
-
* @param {Object} results - 테스트 결과
|
|
1161
|
-
* @returns {string} 보고서
|
|
1162
|
-
*/
|
|
1163
|
-
generateTestReport(results) {
|
|
1164
|
-
const report = [];
|
|
1165
|
-
|
|
1166
|
-
report.push('# 압축 알고리즘 테스트 보고서');
|
|
1167
|
-
report.push(`생성일: ${new Date().toLocaleString()}`);
|
|
1168
|
-
report.push('');
|
|
1169
|
-
|
|
1170
|
-
// 요약
|
|
1171
|
-
report.push('## 테스트 요약');
|
|
1172
|
-
report.push(`- 총 테스트: ${results.summary.total_tests}개`);
|
|
1173
|
-
report.push(`- 성공: ${results.summary.passed}개`);
|
|
1174
|
-
report.push(`- 실패: ${results.summary.failed}개`);
|
|
1175
|
-
report.push(`- 성공률: ${((results.summary.passed / results.summary.total_tests) * 100).toFixed(1)}%`);
|
|
1176
|
-
report.push(`- 총 소요시간: ${results.summary.total_time}ms`);
|
|
1177
|
-
report.push(`- 평균 처리시간: ${results.summary.average_time.toFixed(1)}ms`);
|
|
1178
|
-
report.push('');
|
|
1179
|
-
|
|
1180
|
-
// 성능 분석
|
|
1181
|
-
report.push('## 성능 분석');
|
|
1182
|
-
report.push(`- 평균 압축률: ${results.analysis.average_compression_ratio.toFixed(1)}%`);
|
|
1183
|
-
report.push(`- 평균 처리시간: ${results.analysis.average_processing_time.toFixed(1)}ms`);
|
|
1184
|
-
report.push('');
|
|
1185
|
-
|
|
1186
|
-
// 카테고리별 성능
|
|
1187
|
-
report.push('## 카테고리별 성능');
|
|
1188
|
-
Object.entries(results.analysis.performance_by_category).forEach(([category, performance]) => {
|
|
1189
|
-
report.push(`### ${category}`);
|
|
1190
|
-
report.push(`- 테스트 수: ${performance.test_count}개`);
|
|
1191
|
-
report.push(`- 성공률: ${performance.success_rate.toFixed(1)}%`);
|
|
1192
|
-
report.push(`- 평균 압축률: ${performance.average_compression_ratio.toFixed(1)}%`);
|
|
1193
|
-
report.push(`- 평균 처리시간: ${performance.average_processing_time.toFixed(1)}ms`);
|
|
1194
|
-
report.push('');
|
|
1195
|
-
});
|
|
1196
|
-
|
|
1197
|
-
// 최고 성능 전략
|
|
1198
|
-
if (results.analysis.best_performing_strategy) {
|
|
1199
|
-
report.push('## 최고 성능 전략');
|
|
1200
|
-
report.push(`**${results.analysis.best_performing_strategy.strategy}** 전략이 최고 성능을 보였습니다.`);
|
|
1201
|
-
report.push(`- 종합 점수: ${results.analysis.best_performing_strategy.score.toFixed(1)}`);
|
|
1202
|
-
report.push('');
|
|
1203
|
-
}
|
|
1204
|
-
|
|
1205
|
-
// 권장사항
|
|
1206
|
-
if (results.analysis.recommendations.length > 0) {
|
|
1207
|
-
report.push('## 권장사항');
|
|
1208
|
-
results.analysis.recommendations.forEach(rec => {
|
|
1209
|
-
report.push(`- ${rec}`);
|
|
1210
|
-
});
|
|
1211
|
-
report.push('');
|
|
1212
|
-
}
|
|
1213
|
-
|
|
1214
|
-
return report.join('\n');
|
|
1215
|
-
}
|
|
1216
|
-
|
|
1217
|
-
/**
|
|
1218
|
-
* 테스트 보고서를 저장합니다
|
|
1219
|
-
* @param {string} report - 보고서 내용
|
|
1220
|
-
*/
|
|
1221
|
-
async saveTestReport(report) {
|
|
1222
|
-
const timestamp = new Date().toISOString().replace(/[:.]/g, '-');
|
|
1223
|
-
const filename = `compression_test_report_${timestamp}.md`;
|
|
1224
|
-
const filepath = path.join(process.cwd(), 'test-reports', filename);
|
|
1225
|
-
|
|
1226
|
-
try {
|
|
1227
|
-
// 디렉토리 생성
|
|
1228
|
-
const dir = path.dirname(filepath);
|
|
1229
|
-
if (!fs.existsSync(dir)) {
|
|
1230
|
-
fs.mkdirSync(dir, { recursive: true });
|
|
1231
|
-
}
|
|
1232
|
-
|
|
1233
|
-
// 보고서 저장
|
|
1234
|
-
fs.writeFileSync(filepath, report);
|
|
1235
|
-
console.log(`\n테스트 보고서가 저장되었습니다: ${filepath}`);
|
|
1236
|
-
} catch (error) {
|
|
1237
|
-
console.error('보고서 저장 중 오류 발생:', error);
|
|
1238
|
-
}
|
|
1239
|
-
}
|
|
1240
|
-
|
|
1241
|
-
/**
|
|
1242
|
-
* 리소스를 정리합니다
|
|
1243
|
-
*/
|
|
1244
|
-
cleanup() {
|
|
1245
|
-
if (this.compressor) this.compressor.cleanup();
|
|
1246
|
-
if (this.metrics) this.metrics.cleanup();
|
|
1247
|
-
if (this.tokenCounter) this.tokenCounter.cleanup();
|
|
1248
|
-
this.testResults.length = 0;
|
|
1249
|
-
}
|
|
1250
|
-
}
|
|
1251
|
-
|
|
1252
|
-
export default CompressionTestSuite;
|