aiwf 0.3.0 → 0.3.2
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/.aiwf/.claude/commands/aiwf/aiwf_compress_aggressive_persona.md +53 -0
- package/.aiwf/.claude/commands/aiwf/aiwf_compress_minimal_persona.md +48 -0
- package/.aiwf/.claude/commands/aiwf/aiwf_compress_stats.md +79 -0
- package/.aiwf/.claude/commands/aiwf/aiwf_compress_with_persona.md +51 -0
- package/.aiwf/.claude/commands/aiwf/aiwf_evaluate.md +92 -0
- package/.aiwf/00_PROJECT_MANIFEST.md +183 -0
- package/.aiwf/01_PROJECT_DOCS/ARCHITECTURE.md +121 -0
- package/.aiwf/01_PROJECT_DOCS/FEATURE_LEDGER_ADVANCED_USE_CASES.md +412 -0
- package/.aiwf/01_PROJECT_DOCS/FEATURE_LEDGER_API_REFERENCE.md +361 -0
- package/.aiwf/01_PROJECT_DOCS/FEATURE_LEDGER_COMMANDS_GUIDE.md +254 -0
- package/.aiwf/01_PROJECT_DOCS/FEATURE_LEDGER_FAQ.md +365 -0
- package/.aiwf/01_PROJECT_DOCS/FEATURE_LEDGER_SYSTEM_OVERVIEW.md +305 -0
- package/.aiwf/01_PROJECT_DOCS/FEATURE_LEDGER_USER_GUIDE.md +416 -0
- package/.aiwf/01_PROJECT_DOCS/FEATURE_LEDGER_/354/213/234/354/236/221_/352/260/200/354/235/264/353/223/234.md +247 -0
- package/.aiwf/02_REQUIREMENTS/CLAUDE.md +78 -0
- package/.aiwf/02_REQUIREMENTS/M02_Context_Engineering_Enhancement/M02_milestone_meta.md +34 -0
- package/.aiwf/02_REQUIREMENTS/M02_Context_Engineering_Enhancement/PRD_Context_Engineering_Enhancement.md +108 -0
- package/.aiwf/02_REQUIREMENTS/M02_Context_Engineering_Enhancement/SPECS_AI_Persona_System.md +299 -0
- package/.aiwf/02_REQUIREMENTS/M02_Context_Engineering_Enhancement/SPECS_Feature_Ledger_System.md +330 -0
- package/.aiwf/02_REQUIREMENTS/M02_Context_Engineering_Enhancement/SPECS_Token_Optimization.md +833 -0
- package/.aiwf/03_SPRINTS/CLAUDE.md +83 -0
- package/.aiwf/03_SPRINTS/S01_M02_context_foundation/S01_M02_sprint_meta.md +95 -0
- 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 +111 -0
- 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 +115 -0
- 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 +141 -0
- package/.aiwf/03_SPRINTS/S01_M02_context_foundation/TX04_S01_Feature_Ledger_/353/254/270/354/204/234/355/231/224.md +114 -0
- 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 +123 -0
- 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 +114 -0
- 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 +114 -0
- 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 +112 -0
- 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 +118 -0
- 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 +118 -0
- 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 +128 -0
- 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 +122 -0
- package/.aiwf/03_SPRINTS/S02_M02_ai_enhancement/S02_M02_sprint_meta.md +107 -0
- 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 +129 -0
- 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 +152 -0
- 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 +186 -0
- 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 +192 -0
- 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 +162 -0
- package/.aiwf/03_SPRINTS/S03_M02_ecosystem_integration/S03_FINAL_SPRINT_SUMMARY.md +137 -0
- package/.aiwf/03_SPRINTS/S03_M02_ecosystem_integration/S03_M02_sprint_meta.md +106 -0
- 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 +214 -0
- 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 +177 -0
- 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 +206 -0
- 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 +151 -0
- package/.aiwf/04_GENERAL_TASKS/CLAUDE.md +96 -0
- package/.aiwf/04_GENERAL_TASKS/TX001_complete_english_translation.md +127 -0
- package/.aiwf/05_DOCUMENTATION/performance-report.md +33 -0
- package/.aiwf/06_FEATURE_LEDGERS/FEATURE_GIT_INTEGRATION.md +314 -0
- package/.aiwf/06_FEATURE_LEDGERS/FEATURE_INTEGRATION_GUIDE.md +227 -0
- package/.aiwf/06_FEATURE_LEDGERS/FEATURE_LEDGER_INDEX.md +23 -0
- package/.aiwf/06_FEATURE_LEDGERS/FEATURE_SCHEMA.md +205 -0
- package/.aiwf/06_FEATURE_LEDGERS/FEATURE_STATE_DIAGRAM.md +190 -0
- package/.aiwf/06_FEATURE_LEDGERS/active/FL001_user_authentication_system.md +47 -0
- package/.aiwf/06_FEATURE_LEDGERS/active/FL002_user_authentication_system.md +47 -0
- package/.aiwf/07_AI_PERSONAS/PERSONA_INDEX.md +57 -0
- package/.aiwf/07_AI_PERSONAS/architect/best_practices.md +104 -0
- package/.aiwf/07_AI_PERSONAS/architect/context_rules.md +46 -0
- package/.aiwf/07_AI_PERSONAS/architect/knowledge_base.md +235 -0
- package/.aiwf/07_AI_PERSONAS/backend/best_practices.md +363 -0
- package/.aiwf/07_AI_PERSONAS/backend/context_rules.md +61 -0
- package/.aiwf/07_AI_PERSONAS/backend/knowledge_base.md +623 -0
- package/.aiwf/07_AI_PERSONAS/data_analyst/best_practices.md +32 -0
- package/.aiwf/07_AI_PERSONAS/data_analyst/context_rules.md +43 -0
- package/.aiwf/07_AI_PERSONAS/data_analyst/knowledge_base.md +36 -0
- package/.aiwf/07_AI_PERSONAS/frontend/best_practices.md +31 -0
- package/.aiwf/07_AI_PERSONAS/frontend/context_rules.md +43 -0
- package/.aiwf/07_AI_PERSONAS/frontend/knowledge_base.md +32 -0
- package/.aiwf/07_AI_PERSONAS/security/best_practices.md +63 -0
- package/.aiwf/07_AI_PERSONAS/security/context_rules.md +53 -0
- package/.aiwf/07_AI_PERSONAS/security/knowledge_base.md +93 -0
- package/.aiwf/10_PERSONAS/active.json +1 -0
- package/.aiwf/10_PERSONAS/developer.md +37 -0
- package/.aiwf/10_STATE_OF_PROJECT/2025-07-09-07-20-solid-progress.md +144 -0
- package/.aiwf/98_PROMPTS/SAAS_DEVELOPMENT_GUIDE.md +302 -0
- package/.aiwf/98_PROMPTS/github_integration.md +130 -0
- package/.aiwf/98_PROMPTS/useful-prompts.md +31 -0
- package/.aiwf/98_PROMPTS/vibe-front-prompts.md +89 -0
- package/.aiwf/99_TEMPLATES/adr_template.md +49 -0
- package/.aiwf/99_TEMPLATES/feature_template.md +263 -0
- package/.aiwf/99_TEMPLATES/milestone_meta_template.md +25 -0
- package/.aiwf/99_TEMPLATES/project_manifest_template.md +39 -0
- package/.aiwf/99_TEMPLATES/sprint_meta_template.md +23 -0
- package/.aiwf/99_TEMPLATES/task_template.md +36 -0
- package/.aiwf/CLAUDE.md +76 -0
- package/.aiwf/ai-tools/README.md +105 -0
- package/.aiwf/ai-tools/augment/README.md +371 -0
- package/.aiwf/ai-tools/augment/config.json +30 -0
- package/.aiwf/ai-tools/augment/template/.augment/aiwf-integration.md +387 -0
- package/.aiwf/ai-tools/augment/template/.augment/augment.yaml +347 -0
- package/.aiwf/ai-tools/augment/template/augment.config.json +64 -0
- package/.aiwf/ai-tools/claude-code/README.md +151 -0
- package/.aiwf/ai-tools/claude-code/config.json +28 -0
- package/.aiwf/ai-tools/claude-code/template/CLAUDE.md +91 -0
- package/.aiwf/ai-tools/cursor/README.md +314 -0
- package/.aiwf/ai-tools/cursor/config.json +29 -0
- package/.aiwf/ai-tools/cursor/template/.cursorrules +362 -0
- package/.aiwf/ai-tools/github-copilot/README.md +195 -0
- package/.aiwf/ai-tools/github-copilot/config.json +24 -0
- package/.aiwf/ai-tools/github-copilot/template/.github/copilot-instructions.md +202 -0
- package/.aiwf/ai-tools/windsurf/README.md +355 -0
- package/.aiwf/ai-tools/windsurf/config.json +29 -0
- package/.aiwf/ai-tools/windsurf/template/.windsurf/aiwf-rules.md +260 -0
- package/.aiwf/ai-tools/windsurf/template/.windsurf/windsurf.config.js +312 -0
- package/.aiwf/ai-tools/windsurf/template/windsurf.config.json +63 -0
- package/.aiwf/config/language.json +6 -0
- package/.aiwf/feature-ledger/FL-001-authentication.json +52 -0
- package/.aiwf/feature-ledger/feature-index.json +20 -0
- package/.aiwf/personas/analyst.json +44 -0
- package/.aiwf/personas/architect/best_practices.md +136 -0
- package/.aiwf/personas/architect/knowledge_base.md +377 -0
- package/.aiwf/personas/architect.json +44 -0
- package/.aiwf/personas/backend/best_practices.md +766 -0
- package/.aiwf/personas/backend/knowledge_base.md +1070 -0
- package/.aiwf/personas/data_analyst/best_practices.md +594 -0
- package/.aiwf/personas/data_analyst/knowledge_base.md +1057 -0
- package/.aiwf/personas/developer.json +44 -0
- package/.aiwf/personas/evaluation_criteria.json +137 -0
- package/.aiwf/personas/frontend/best_practices.md +445 -0
- package/.aiwf/personas/frontend/knowledge_base.md +729 -0
- package/.aiwf/personas/persona-index.json +31 -0
- package/.aiwf/personas/reviewer.json +44 -0
- package/.aiwf/personas/security/best_practices.md +307 -0
- package/.aiwf/personas/security/knowledge_base.md +498 -0
- package/.aiwf/personas/tester.json +44 -0
- package/.aiwf/scripts/cache-templates.js +209 -0
- package/.aiwf/scripts/create-offline.js +86 -0
- package/.aiwf/scripts/create-project.js +151 -0
- package/.aiwf/scripts/feature-progress-calculator.cjs +236 -0
- package/.aiwf/scripts/git-integration.cjs +391 -0
- package/.aiwf/scripts/install-git-hooks.cjs +226 -0
- package/.aiwf/scripts/test-commit-parsing.cjs +125 -0
- package/.aiwf/scripts/update-feature-status.cjs +198 -0
- package/.aiwf/templates/README.md +78 -0
- package/.aiwf/templates/api-server/config.json +64 -0
- package/.aiwf/templates/api-server/template/.aiwf/config.json +56 -0
- package/.aiwf/templates/api-server/template/.aiwf/feature-ledger.json +42 -0
- package/.aiwf/templates/api-server/template/.aiwf/personas/backend-engineer.json +40 -0
- package/.aiwf/templates/api-server/template/.aiwf/scripts/cli.js +111 -0
- package/.aiwf/templates/api-server/template/.env.example +29 -0
- package/.aiwf/templates/api-server/template/.eslintrc.json +23 -0
- package/.aiwf/templates/api-server/template/README.md +171 -0
- package/.aiwf/templates/api-server/template/jest.config.js +26 -0
- package/.aiwf/templates/api-server/template/nodemon.json +9 -0
- package/.aiwf/templates/api-server/template/package.json +61 -0
- package/.aiwf/templates/api-server/template/src/app.ts +60 -0
- package/.aiwf/templates/api-server/template/src/config/swagger.ts +38 -0
- package/.aiwf/templates/api-server/template/src/controllers/aiwfController.ts +68 -0
- package/.aiwf/templates/api-server/template/src/controllers/authController.ts +128 -0
- package/.aiwf/templates/api-server/template/src/controllers/statusController.ts +28 -0
- package/.aiwf/templates/api-server/template/src/index.ts +28 -0
- package/.aiwf/templates/api-server/template/src/middleware/aiwfMiddleware.ts +50 -0
- package/.aiwf/templates/api-server/template/src/middleware/authMiddleware.ts +41 -0
- package/.aiwf/templates/api-server/template/src/middleware/errorHandler.ts +42 -0
- package/.aiwf/templates/api-server/template/src/middleware/notFoundHandler.ts +14 -0
- package/.aiwf/templates/api-server/template/src/middleware/requestLogger.ts +20 -0
- package/.aiwf/templates/api-server/template/src/routes/aiwf.ts +42 -0
- package/.aiwf/templates/api-server/template/src/routes/index.ts +13 -0
- package/.aiwf/templates/api-server/template/src/routes/v1/index.ts +67 -0
- package/.aiwf/templates/api-server/template/src/utils/logger.ts +37 -0
- package/.aiwf/templates/api-server/template/tests/app.test.ts +40 -0
- package/.aiwf/templates/api-server/template/tsconfig.json +43 -0
- package/.aiwf/templates/npm-library/config.json +61 -0
- package/.aiwf/templates/npm-library/template/LICENSE +21 -0
- package/.aiwf/templates/npm-library/template/README.md +201 -0
- package/.aiwf/templates/npm-library/template/package.json +78 -0
- package/.aiwf/templates/web-app/config.json +53 -0
- package/.aiwf/templates/web-app/template/.aiwf/config.json +54 -0
- package/.aiwf/templates/web-app/template/.aiwf/feature-ledger.json +37 -0
- package/.aiwf/templates/web-app/template/.aiwf/personas/fullstack-developer.json +40 -0
- package/.aiwf/templates/web-app/template/.aiwf/scripts/cli.js +110 -0
- package/.aiwf/templates/web-app/template/.eslintrc.cjs +20 -0
- package/.aiwf/templates/web-app/template/README.md +151 -0
- package/.aiwf/templates/web-app/template/index.html +14 -0
- package/.aiwf/templates/web-app/template/package.json +44 -0
- package/.aiwf/templates/web-app/template/postcss.config.js +6 -0
- package/.aiwf/templates/web-app/template/public/vite.svg +1 -0
- package/.aiwf/templates/web-app/template/src/App.tsx +21 -0
- package/.aiwf/templates/web-app/template/src/components/Layout.tsx +57 -0
- package/.aiwf/templates/web-app/template/src/components/aiwf/ContextStatus.tsx +107 -0
- package/.aiwf/templates/web-app/template/src/components/aiwf/FeatureLedger.tsx +93 -0
- package/.aiwf/templates/web-app/template/src/components/aiwf/TokenUsage.tsx +71 -0
- package/.aiwf/templates/web-app/template/src/index.css +60 -0
- package/.aiwf/templates/web-app/template/src/main.tsx +10 -0
- package/.aiwf/templates/web-app/template/src/pages/AiwfDashboard.tsx +60 -0
- package/.aiwf/templates/web-app/template/src/pages/HomePage.tsx +89 -0
- package/.aiwf/templates/web-app/template/src/pages/NotFound.tsx +25 -0
- package/.aiwf/templates/web-app/template/src/stores/aiwfStore.ts +126 -0
- package/.aiwf/templates/web-app/template/src/types/global.d.ts +9 -0
- package/.aiwf/templates/web-app/template/src/vite-env.d.ts +1 -0
- package/.aiwf/templates/web-app/template/tailwind.config.js +30 -0
- package/.aiwf/templates/web-app/template/tsconfig.json +37 -0
- package/.aiwf/templates/web-app/template/tsconfig.node.json +10 -0
- package/.aiwf/templates/web-app/template/vite.config.ts +23 -0
- package/.aiwf/test-cache/86c7f9e80251abb8bedd58953ab0d1779e46b4f43ea33b63bffdb778106373b0.json +6 -0
- package/.aiwf/test-cache/9e252a90b80fce0585d7ed0646e7a9b4343e109f661f42a3ae678ba1ec5e22c7.json +7 -0
- package/.aiwf/test-results-s02.json +36 -0
- package/.aiwf/token-data/alerts.json +293 -0
- package/.aiwf/token-data/monitor-config.json +12 -0
- package/CHANGELOG.md +119 -33
- package/CHANGELOG_M02.md +52 -0
- package/CLAUDE.md +133 -199
- package/README.ko.md +5 -0
- package/README.md +31 -5
- package/RELEASE_NOTES_M02.md +177 -0
- package/claude-code/aiwf/en/.claude/commands/aiwf/aiwf_create_feature_ledger.md +54 -0
- package/claude-code/aiwf/en/.claude/commands/aiwf/aiwf_default_mode.md +66 -0
- package/claude-code/aiwf/en/.claude/commands/aiwf/aiwf_docs.md +225 -0
- package/claude-code/aiwf/en/.claude/commands/aiwf/aiwf_get_feature_details.md +78 -0
- package/claude-code/aiwf/en/.claude/commands/aiwf/aiwf_link_feature_to_milestone.md +57 -0
- package/claude-code/aiwf/en/.claude/commands/aiwf/aiwf_list_features.md +54 -0
- package/claude-code/aiwf/en/.claude/commands/aiwf/aiwf_persona_architect.md +60 -0
- package/claude-code/aiwf/en/.claude/commands/aiwf/aiwf_persona_backend.md +60 -0
- package/claude-code/aiwf/en/.claude/commands/aiwf/aiwf_persona_data_analyst.md +60 -0
- package/claude-code/aiwf/en/.claude/commands/aiwf/aiwf_persona_frontend.md +60 -0
- package/claude-code/aiwf/en/.claude/commands/aiwf/aiwf_persona_security.md +60 -0
- package/claude-code/aiwf/en/.claude/commands/aiwf/aiwf_persona_status.md +72 -0
- package/claude-code/aiwf/en/.claude/commands/aiwf/aiwf_switch_language.md +160 -0
- package/claude-code/aiwf/en/.claude/commands/aiwf/aiwf_update_feature_status.md +53 -0
- package/claude-code/aiwf/en/commands/ai-persona.js +667 -0
- package/claude-code/aiwf/en/commands/compress-context.js +355 -0
- package/claude-code/aiwf/en/commands/feature-ledger.js +565 -0
- package/claude-code/aiwf/en/commands/feature_commit_report.js +370 -0
- package/claude-code/aiwf/en/commands/scan_git_history.js +234 -0
- package/claude-code/aiwf/en/commands/sync_feature_commits.js +154 -0
- package/claude-code/aiwf/en/commands/token-tracking.js +443 -0
- package/claude-code/aiwf/en/config/commit-patterns.js +103 -0
- package/claude-code/aiwf/en/hooks/install-hooks.sh +100 -0
- package/claude-code/aiwf/en/hooks/post-commit +84 -0
- package/claude-code/aiwf/en/tests/compression-test-suite.js +1252 -0
- package/claude-code/aiwf/en/tests/test-git-integration.js +164 -0
- package/claude-code/aiwf/en/tests/token-tracking.test.js +537 -0
- package/claude-code/aiwf/en/utils/compression-metrics.js +1031 -0
- package/claude-code/aiwf/en/utils/compression-strategies.js +557 -0
- package/claude-code/aiwf/en/utils/content-normalizer.js +455 -0
- package/claude-code/aiwf/en/utils/context-compressor.js +583 -0
- package/claude-code/aiwf/en/utils/feature-updater.js +271 -0
- package/claude-code/aiwf/en/utils/git-utils.js +220 -0
- package/claude-code/aiwf/en/utils/importance-classifier.js +645 -0
- package/claude-code/aiwf/en/utils/information-filter.js +710 -0
- package/claude-code/aiwf/en/utils/text-summarizer.js +487 -0
- package/claude-code/aiwf/en/utils/token-counter.js +177 -0
- package/claude-code/aiwf/en/utils/token-monitor.js +484 -0
- package/claude-code/aiwf/en/utils/token-reporter.js +453 -0
- package/claude-code/aiwf/en/utils/token-storage.js +433 -0
- package/claude-code/aiwf/en/utils/token-tracker.js +283 -0
- package/claude-code/aiwf/ko/.aiwf/06_FEATURE_LEDGERS/FEATURE_ID_GENERATOR.md +138 -0
- package/claude-code/aiwf/ko/.aiwf/06_FEATURE_LEDGERS/FEATURE_INDEX.md +186 -0
- package/claude-code/aiwf/ko/.aiwf/06_FEATURE_LEDGERS/FEATURE_METADATA.md +240 -0
- package/claude-code/aiwf/ko/.aiwf/06_FEATURE_LEDGERS/FEATURE_WORKFLOW.md +183 -0
- package/claude-code/aiwf/ko/.aiwf/06_FEATURE_LEDGERS/README.md +94 -0
- 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 +154 -0
- 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 +272 -0
- 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 +266 -0
- package/claude-code/aiwf/ko/.aiwf/06_FEATURE_LEDGERS/schemas/feature_schema.json +122 -0
- package/claude-code/aiwf/ko/.aiwf/06_FEATURE_LEDGERS/schemas/feature_validator.cjs +406 -0
- package/claude-code/aiwf/ko/.claude/commands/aiwf/aiwf_code_review.md +62 -62
- package/claude-code/aiwf/ko/.claude/commands/aiwf/aiwf_commit.md +111 -111
- package/claude-code/aiwf/ko/.claude/commands/aiwf/aiwf_compress_aggressive_persona.md +53 -0
- package/claude-code/aiwf/ko/.claude/commands/aiwf/aiwf_compress_context.md +116 -0
- package/claude-code/aiwf/ko/.claude/commands/aiwf/aiwf_compress_minimal_persona.md +48 -0
- package/claude-code/aiwf/ko/.claude/commands/aiwf/aiwf_compress_stats.md +79 -0
- package/claude-code/aiwf/ko/.claude/commands/aiwf/aiwf_compress_with_persona.md +51 -0
- package/claude-code/aiwf/ko/.claude/commands/aiwf/aiwf_create_feature_ledger.md +54 -0
- package/claude-code/aiwf/ko/.claude/commands/aiwf/aiwf_create_general_task.md +106 -106
- package/claude-code/aiwf/ko/.claude/commands/aiwf/aiwf_create_milestone_plan.md +127 -127
- package/claude-code/aiwf/ko/.claude/commands/aiwf/aiwf_create_sprint_tasks.md +130 -130
- package/claude-code/aiwf/ko/.claude/commands/aiwf/aiwf_create_sprints_from_milestone.md +87 -87
- package/claude-code/aiwf/ko/.claude/commands/aiwf/aiwf_default_mode.md +44 -0
- package/claude-code/aiwf/ko/.claude/commands/aiwf/aiwf_do_task.md +72 -72
- package/claude-code/aiwf/ko/.claude/commands/aiwf/aiwf_docs.md +225 -0
- package/claude-code/aiwf/ko/.claude/commands/aiwf/aiwf_evaluate.md +92 -0
- package/claude-code/aiwf/ko/.claude/commands/aiwf/aiwf_get_feature_details.md +78 -0
- package/claude-code/aiwf/ko/.claude/commands/aiwf/aiwf_initialize.md +86 -86
- package/claude-code/aiwf/ko/.claude/commands/aiwf/aiwf_issue_create.md +3 -3
- package/claude-code/aiwf/ko/.claude/commands/aiwf/aiwf_link_feature_to_milestone.md +57 -0
- package/claude-code/aiwf/ko/.claude/commands/aiwf/aiwf_list_features.md +54 -0
- package/claude-code/aiwf/ko/.claude/commands/aiwf/aiwf_persona_architect.md +48 -0
- package/claude-code/aiwf/ko/.claude/commands/aiwf/aiwf_persona_backend.md +37 -0
- package/claude-code/aiwf/ko/.claude/commands/aiwf/aiwf_persona_data_analyst.md +37 -0
- package/claude-code/aiwf/ko/.claude/commands/aiwf/aiwf_persona_frontend.md +37 -0
- package/claude-code/aiwf/ko/.claude/commands/aiwf/aiwf_persona_security.md +48 -0
- package/claude-code/aiwf/ko/.claude/commands/aiwf/aiwf_persona_status.md +50 -0
- package/claude-code/aiwf/ko/.claude/commands/aiwf/aiwf_pr_create.md +14 -14
- package/claude-code/aiwf/ko/.claude/commands/aiwf/aiwf_prime.md +5 -5
- package/claude-code/aiwf/ko/.claude/commands/aiwf/aiwf_project_review.md +39 -39
- package/claude-code/aiwf/ko/.claude/commands/aiwf/aiwf_switch_language.md +160 -0
- package/claude-code/aiwf/ko/.claude/commands/aiwf/aiwf_test.md +76 -77
- package/claude-code/aiwf/ko/.claude/commands/aiwf/aiwf_testing_review.md +120 -120
- package/claude-code/aiwf/ko/.claude/commands/aiwf/aiwf_ultrathink_general.md +209 -266
- package/claude-code/aiwf/ko/.claude/commands/aiwf/aiwf_update_docs_kr.md +25 -0
- package/claude-code/aiwf/ko/.claude/commands/aiwf/aiwf_update_feature_status.md +53 -0
- package/claude-code/aiwf/ko/.claude/commands/aiwf/aiwf_yolo.md +226 -226
- package/claude-code/aiwf/ko/CLAUDE.md +76 -0
- package/claude-code/aiwf/ko/ai-tools/README.md +105 -0
- package/claude-code/aiwf/ko/ai-tools/augment/README.md +371 -0
- package/claude-code/aiwf/ko/ai-tools/augment/config.json +30 -0
- package/claude-code/aiwf/ko/ai-tools/augment/template/.augment/aiwf-integration.md +387 -0
- package/claude-code/aiwf/ko/ai-tools/augment/template/.augment/augment.yaml +347 -0
- package/claude-code/aiwf/ko/ai-tools/augment/template/augment.config.json +64 -0
- package/claude-code/aiwf/ko/ai-tools/claude-code/README.md +151 -0
- package/claude-code/aiwf/ko/ai-tools/claude-code/config.json +28 -0
- package/claude-code/aiwf/ko/ai-tools/claude-code/template/CLAUDE.md +91 -0
- package/claude-code/aiwf/ko/ai-tools/cursor/README.md +314 -0
- package/claude-code/aiwf/ko/ai-tools/cursor/config.json +29 -0
- package/claude-code/aiwf/ko/ai-tools/cursor/template/.cursorrules +362 -0
- package/claude-code/aiwf/ko/ai-tools/github-copilot/README.md +195 -0
- package/claude-code/aiwf/ko/ai-tools/github-copilot/config.json +24 -0
- package/claude-code/aiwf/ko/ai-tools/github-copilot/template/.github/copilot-instructions.md +202 -0
- package/claude-code/aiwf/ko/ai-tools/windsurf/README.md +355 -0
- package/claude-code/aiwf/ko/ai-tools/windsurf/config.json +29 -0
- package/claude-code/aiwf/ko/ai-tools/windsurf/template/.windsurf/aiwf-rules.md +260 -0
- package/claude-code/aiwf/ko/ai-tools/windsurf/template/.windsurf/windsurf.config.js +312 -0
- package/claude-code/aiwf/ko/ai-tools/windsurf/template/windsurf.config.json +63 -0
- package/claude-code/aiwf/ko/bin/aiwf-create.js +56 -0
- package/claude-code/aiwf/ko/bin/aiwf.js +21 -0
- package/claude-code/aiwf/ko/commands/ai-persona.js +602 -0
- package/claude-code/aiwf/ko/commands/compress-context.js +389 -0
- package/claude-code/aiwf/ko/commands/evaluate.js +246 -0
- package/claude-code/aiwf/ko/commands/feature-ledger.js +565 -0
- package/claude-code/aiwf/ko/commands/feature_commit_report.js +370 -0
- package/claude-code/aiwf/ko/commands/persona-context-apply.js +562 -0
- package/claude-code/aiwf/ko/commands/scan_git_history.js +234 -0
- package/claude-code/aiwf/ko/commands/sync_feature_commits.js +154 -0
- package/claude-code/aiwf/ko/commands/token-tracking.js +443 -0
- package/claude-code/aiwf/ko/config/commit-patterns.js +103 -0
- package/claude-code/aiwf/ko/config/language.json +6 -0
- package/claude-code/aiwf/ko/docs/00_PROJECT_MANIFEST.md +183 -0
- package/claude-code/aiwf/ko/docs/ARCHITECTURE.md +121 -0
- package/claude-code/aiwf/ko/docs/FEATURE_LEDGER_ADVANCED_USE_CASES.md +412 -0
- package/claude-code/aiwf/ko/docs/FEATURE_LEDGER_API_REFERENCE.md +361 -0
- package/claude-code/aiwf/ko/docs/FEATURE_LEDGER_COMMANDS_GUIDE.md +254 -0
- package/claude-code/aiwf/ko/docs/FEATURE_LEDGER_FAQ.md +365 -0
- package/claude-code/aiwf/ko/docs/FEATURE_LEDGER_SYSTEM_OVERVIEW.md +305 -0
- package/claude-code/aiwf/ko/docs/FEATURE_LEDGER_USER_GUIDE.md +416 -0
- package/claude-code/aiwf/ko/docs/FEATURE_LEDGER_/354/213/234/354/236/221_/352/260/200/354/235/264/353/223/234.md +247 -0
- package/claude-code/aiwf/ko/feature-ledger/FL-001-authentication.json +52 -0
- package/claude-code/aiwf/ko/feature-ledger/feature-index.json +20 -0
- package/claude-code/aiwf/ko/hooks/install-hooks.sh +100 -0
- package/claude-code/aiwf/ko/hooks/post-commit +84 -0
- package/claude-code/aiwf/ko/personas/PERSONA_INDEX.md +57 -0
- package/claude-code/aiwf/ko/personas/analyst.json +44 -0
- package/claude-code/aiwf/ko/personas/architect/best_practices.md +136 -0
- package/claude-code/aiwf/ko/personas/architect/knowledge_base.md +377 -0
- package/claude-code/aiwf/ko/personas/architect.json +44 -0
- package/claude-code/aiwf/ko/personas/backend/best_practices.md +766 -0
- package/claude-code/aiwf/ko/personas/backend/knowledge_base.md +1070 -0
- package/claude-code/aiwf/ko/personas/data_analyst/best_practices.md +594 -0
- package/claude-code/aiwf/ko/personas/data_analyst/knowledge_base.md +1057 -0
- package/claude-code/aiwf/ko/personas/developer.json +44 -0
- package/claude-code/aiwf/ko/personas/developer.md +37 -0
- package/claude-code/aiwf/ko/personas/evaluation_criteria.json +137 -0
- package/claude-code/aiwf/ko/personas/frontend/best_practices.md +445 -0
- package/claude-code/aiwf/ko/personas/frontend/knowledge_base.md +729 -0
- package/claude-code/aiwf/ko/personas/persona-index.json +31 -0
- package/claude-code/aiwf/ko/personas/reviewer.json +44 -0
- package/claude-code/aiwf/ko/personas/security/best_practices.md +307 -0
- package/claude-code/aiwf/ko/personas/security/knowledge_base.md +498 -0
- package/claude-code/aiwf/ko/personas/tester.json +44 -0
- package/claude-code/aiwf/ko/scripts/cache-templates.js +209 -0
- package/claude-code/aiwf/ko/scripts/create-offline.js +86 -0
- package/claude-code/aiwf/ko/scripts/create-project.js +151 -0
- package/claude-code/aiwf/ko/scripts/feature-progress-calculator.cjs +236 -0
- package/claude-code/aiwf/ko/scripts/git-integration.cjs +391 -0
- package/claude-code/aiwf/ko/scripts/install-git-hooks.cjs +226 -0
- package/claude-code/aiwf/ko/scripts/test-commit-parsing.cjs +125 -0
- package/claude-code/aiwf/ko/scripts/update-feature-status.cjs +198 -0
- package/claude-code/aiwf/ko/templates/README.md +78 -0
- package/claude-code/aiwf/ko/templates/api-server/config.json +64 -0
- package/claude-code/aiwf/ko/templates/api-server/template/.aiwf/config.json +56 -0
- package/claude-code/aiwf/ko/templates/api-server/template/.aiwf/feature-ledger.json +42 -0
- package/claude-code/aiwf/ko/templates/api-server/template/.aiwf/personas/backend-engineer.json +40 -0
- package/claude-code/aiwf/ko/templates/api-server/template/.aiwf/scripts/cli.js +111 -0
- package/claude-code/aiwf/ko/templates/api-server/template/.env.example +29 -0
- package/claude-code/aiwf/ko/templates/api-server/template/.eslintrc.json +23 -0
- package/claude-code/aiwf/ko/templates/api-server/template/README.md +171 -0
- package/claude-code/aiwf/ko/templates/api-server/template/jest.config.js +26 -0
- package/claude-code/aiwf/ko/templates/api-server/template/nodemon.json +9 -0
- package/claude-code/aiwf/ko/templates/api-server/template/package.json +61 -0
- package/claude-code/aiwf/ko/templates/api-server/template/src/app.ts +60 -0
- package/claude-code/aiwf/ko/templates/api-server/template/src/config/swagger.ts +38 -0
- package/claude-code/aiwf/ko/templates/api-server/template/src/controllers/aiwfController.ts +68 -0
- package/claude-code/aiwf/ko/templates/api-server/template/src/controllers/authController.ts +128 -0
- package/claude-code/aiwf/ko/templates/api-server/template/src/controllers/statusController.ts +28 -0
- package/claude-code/aiwf/ko/templates/api-server/template/src/index.ts +28 -0
- package/claude-code/aiwf/ko/templates/api-server/template/src/middleware/aiwfMiddleware.ts +50 -0
- package/claude-code/aiwf/ko/templates/api-server/template/src/middleware/authMiddleware.ts +41 -0
- package/claude-code/aiwf/ko/templates/api-server/template/src/middleware/errorHandler.ts +42 -0
- package/claude-code/aiwf/ko/templates/api-server/template/src/middleware/notFoundHandler.ts +14 -0
- package/claude-code/aiwf/ko/templates/api-server/template/src/middleware/requestLogger.ts +20 -0
- package/claude-code/aiwf/ko/templates/api-server/template/src/routes/aiwf.ts +42 -0
- package/claude-code/aiwf/ko/templates/api-server/template/src/routes/index.ts +13 -0
- package/claude-code/aiwf/ko/templates/api-server/template/src/routes/v1/index.ts +67 -0
- package/claude-code/aiwf/ko/templates/api-server/template/src/utils/logger.ts +37 -0
- package/claude-code/aiwf/ko/templates/api-server/template/tests/app.test.ts +40 -0
- package/claude-code/aiwf/ko/templates/api-server/template/tsconfig.json +43 -0
- package/claude-code/aiwf/ko/templates/npm-library/config.json +61 -0
- package/claude-code/aiwf/ko/templates/npm-library/template/LICENSE +21 -0
- package/claude-code/aiwf/ko/templates/npm-library/template/README.md +201 -0
- package/claude-code/aiwf/ko/templates/npm-library/template/package.json +78 -0
- package/claude-code/aiwf/ko/templates/web-app/config.json +53 -0
- package/claude-code/aiwf/ko/templates/web-app/template/.aiwf/config.json +54 -0
- package/claude-code/aiwf/ko/templates/web-app/template/.aiwf/feature-ledger.json +37 -0
- package/claude-code/aiwf/ko/templates/web-app/template/.aiwf/personas/fullstack-developer.json +40 -0
- package/claude-code/aiwf/ko/templates/web-app/template/.aiwf/scripts/cli.js +110 -0
- package/claude-code/aiwf/ko/templates/web-app/template/.eslintrc.cjs +20 -0
- package/claude-code/aiwf/ko/templates/web-app/template/README.md +151 -0
- package/claude-code/aiwf/ko/templates/web-app/template/index.html +14 -0
- package/claude-code/aiwf/ko/templates/web-app/template/package.json +44 -0
- package/claude-code/aiwf/ko/templates/web-app/template/postcss.config.js +6 -0
- package/claude-code/aiwf/ko/templates/web-app/template/public/vite.svg +1 -0
- package/claude-code/aiwf/ko/templates/web-app/template/src/App.tsx +21 -0
- package/claude-code/aiwf/ko/templates/web-app/template/src/components/Layout.tsx +57 -0
- package/claude-code/aiwf/ko/templates/web-app/template/src/components/aiwf/ContextStatus.tsx +107 -0
- package/claude-code/aiwf/ko/templates/web-app/template/src/components/aiwf/FeatureLedger.tsx +93 -0
- package/claude-code/aiwf/ko/templates/web-app/template/src/components/aiwf/TokenUsage.tsx +71 -0
- package/claude-code/aiwf/ko/templates/web-app/template/src/index.css +60 -0
- package/claude-code/aiwf/ko/templates/web-app/template/src/main.tsx +10 -0
- package/claude-code/aiwf/ko/templates/web-app/template/src/pages/AiwfDashboard.tsx +60 -0
- package/claude-code/aiwf/ko/templates/web-app/template/src/pages/HomePage.tsx +89 -0
- package/claude-code/aiwf/ko/templates/web-app/template/src/pages/NotFound.tsx +25 -0
- package/claude-code/aiwf/ko/templates/web-app/template/src/stores/aiwfStore.ts +126 -0
- package/claude-code/aiwf/ko/templates/web-app/template/src/types/global.d.ts +9 -0
- package/claude-code/aiwf/ko/templates/web-app/template/src/vite-env.d.ts +1 -0
- package/claude-code/aiwf/ko/templates/web-app/template/tailwind.config.js +30 -0
- package/claude-code/aiwf/ko/templates/web-app/template/tsconfig.json +37 -0
- package/claude-code/aiwf/ko/templates/web-app/template/tsconfig.node.json +10 -0
- package/claude-code/aiwf/ko/templates/web-app/template/vite.config.ts +23 -0
- package/claude-code/aiwf/ko/tests/compression-test-suite.js +1252 -0
- package/claude-code/aiwf/ko/tests/test-git-integration.js +164 -0
- package/claude-code/aiwf/ko/tests/token-tracking.test.js +537 -0
- package/claude-code/aiwf/ko/token-data/alerts.json +293 -0
- package/claude-code/aiwf/ko/token-data/monitor-config.json +12 -0
- package/claude-code/aiwf/ko/utils/background-monitor.js +223 -0
- package/claude-code/aiwf/ko/utils/compression-metrics.js +1031 -0
- package/claude-code/aiwf/ko/utils/compression-strategies.js +557 -0
- package/claude-code/aiwf/ko/utils/content-normalizer.js +455 -0
- package/claude-code/aiwf/ko/utils/context-compressor.js +583 -0
- package/claude-code/aiwf/ko/utils/context-rule-parser.js +180 -0
- package/claude-code/aiwf/ko/utils/context-token-monitor.js +463 -0
- package/claude-code/aiwf/ko/utils/context-update-manager.js +502 -0
- package/claude-code/aiwf/ko/utils/feature-updater.js +271 -0
- package/claude-code/aiwf/ko/utils/git-utils.js +220 -0
- package/claude-code/aiwf/ko/utils/importance-classifier.js +645 -0
- package/claude-code/aiwf/ko/utils/information-filter.js +710 -0
- package/claude-code/aiwf/ko/utils/persona-aware-compressor.js +598 -0
- package/claude-code/aiwf/ko/utils/prompt-injector.js +242 -0
- package/claude-code/aiwf/ko/utils/simplified-evaluator.js +119 -0
- package/claude-code/aiwf/ko/utils/text-summarizer.js +492 -0
- package/claude-code/aiwf/ko/utils/token-counter.js +177 -0
- package/claude-code/aiwf/ko/utils/token-monitor.js +484 -0
- package/claude-code/aiwf/ko/utils/token-reporter.js +453 -0
- package/claude-code/aiwf/ko/utils/token-storage.js +433 -0
- package/claude-code/aiwf/ko/utils/token-tracker.js +283 -0
- package/docs/AI-WORKFLOW.ko.md +9 -2
- package/docs/AI-WORKFLOW.md +9 -2
- package/docs/AI_PERSONA_SYSTEM_DESIGN.md +516 -0
- package/docs/API_DOCUMENTATION.md +932 -0
- package/docs/API_REFERENCE.md +979 -0
- package/docs/COMMANDS_GUIDE.ko.md +101 -5
- package/docs/COMMANDS_GUIDE.md +289 -5
- package/docs/CONTRIBUTING.ko.md +408 -0
- package/docs/CONTRIBUTING.md +205 -203
- package/docs/EXAMPLES.md +691 -0
- package/docs/Enhanced_Installation_Flow_Design.md +498 -0
- package/docs/GETTING_STARTED.md +480 -0
- package/docs/PERFORMANCE_ARCHITECTURE.md +494 -0
- package/docs/PERFORMANCE_GUIDELINES.md +553 -0
- package/docs/PRD.ko.md +110 -58
- package/docs/PRD.md +110 -58
- package/docs/TROUBLESHOOTING.md +721 -0
- package/docs/git-feature-integration-guide.md +253 -0
- package/docs/guides/ai-personas-guide-ko.md +239 -0
- package/docs/guides/ai-personas-guide.md +239 -0
- package/docs/guides/context-compression-guide-ko.md +313 -0
- package/docs/guides/context-compression-guide.md +313 -0
- package/docs/guides/feature-git-integration-guide-ko.md +481 -0
- package/docs/guides/feature-git-integration-guide.md +481 -0
- package/docs/lightweight-evaluation.md +198 -0
- package/docs/m02-dod-checklist.md +125 -0
- package/docs/m02-gap-analysis.md +214 -0
- package/docs/m02-milestone-completion-report.md +186 -0
- package/docs/m02-milestone-executive-summary.md +68 -0
- package/docs/offline-template-cache.md +323 -0
- package/docs/performance-benchmark-report.md +159 -0
- package/docs/persona-aware-compression.md +168 -0
- package/docs/reports/S02-sprint-report.md +190 -0
- package/docs/usability-test-report.md +170 -0
- package/index.js +1349 -21
- package/jest.config.js +23 -0
- package/language-cli.js +279 -0
- package/language-utils.js +330 -0
- package/lib/ai-persona-manager.js +711 -0
- package/lib/cache-cli.js +459 -0
- package/lib/cache-integration.js +401 -0
- package/lib/cache-system.js +332 -0
- package/lib/context-engine.js +568 -0
- package/lib/file-batch-processor.js +401 -0
- package/lib/memory-profiler.js +471 -0
- package/lib/metrics-collector.js +885 -0
- package/lib/offline-detector.js +386 -0
- package/lib/performance-benchmark.js +621 -0
- package/lib/task-analyzer.js +599 -0
- package/lib/template-cache-system.js +559 -0
- package/lib/template-downloader.js +467 -0
- package/lib/template-manager.js +310 -0
- package/lib/template-version-manager.js +491 -0
- package/lib/token-optimizer.js +517 -0
- package/package.json +17 -6
- package/scripts/run-integration-tests.js +317 -0
- package/scripts/validate-commands.cjs +338 -0
- package/scripts/validate-commands.js +254 -0
- package/src/commands/ai-tool.js +383 -0
- package/test-token-system.js +88 -0
- package/tests/application.test.js +260 -0
- package/tests/basic.test.js +62 -0
- package/tests/commands.test.js +127 -0
- package/tests/installer.test.js +129 -0
- package/tests/integration/ai-persona-system.test.js +396 -0
- package/tests/integration/ai-persona.test.js +390 -0
- package/tests/integration/command-integration.test.js +600 -0
- package/tests/integration/context-compression.test.js +361 -0
- package/tests/integration/feature-ledger.test.js +226 -0
- package/tests/integration/git-integration.test.js +307 -0
- package/tests/integration/m02-milestone.test.js +420 -0
- package/tests/integration/persona-context-application.test.js +508 -0
- package/tests/integration/setup.js +174 -0
- package/tests/integration/test-persona-aware-compression.js +93 -0
- package/tests/language-utils.test.js +287 -0
- package/tests/s02-integration.test.js +422 -0
- package/tests/unit/ai-persona-manager.test.js +514 -0
- package/claude-code/aiwf/en/.claude/commands/aiwf/aiwf_prime_context.md +0 -5
- package/claude-code/aiwf/ko/.claude/commands/aiwf/aiwf_prime_context.md +0 -8
|
@@ -0,0 +1,600 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AIWF 명령어 통합 테스트
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { testUtils, testFixtures } from './setup.js';
|
|
6
|
+
import fs from 'fs/promises';
|
|
7
|
+
import path from 'path';
|
|
8
|
+
import { fileURLToPath } from 'url';
|
|
9
|
+
|
|
10
|
+
const __filename = fileURLToPath(import.meta.url);
|
|
11
|
+
const __dirname = path.dirname(__filename);
|
|
12
|
+
|
|
13
|
+
describe('AIWF 명령어 통합 테스트', () => {
|
|
14
|
+
let testProjectDir;
|
|
15
|
+
let aiwfDir;
|
|
16
|
+
|
|
17
|
+
beforeEach(async () => {
|
|
18
|
+
testProjectDir = await testUtils.createTempDir('command-integration-');
|
|
19
|
+
aiwfDir = await testUtils.createTestProjectStructure(testProjectDir);
|
|
20
|
+
});
|
|
21
|
+
|
|
22
|
+
afterEach(async () => {
|
|
23
|
+
await testUtils.cleanupTempDir(testProjectDir);
|
|
24
|
+
});
|
|
25
|
+
|
|
26
|
+
describe('핵심 명령어 통합 테스트', () => {
|
|
27
|
+
test('프로젝트 초기화 명령어 시뮬레이션', async () => {
|
|
28
|
+
// aiwf_initialize 명령어 시뮬레이션
|
|
29
|
+
const initializeProject = async (projectDir) => {
|
|
30
|
+
const aiwfDir = path.join(projectDir, '.aiwf');
|
|
31
|
+
|
|
32
|
+
// 필수 디렉토리 생성
|
|
33
|
+
const requiredDirs = [
|
|
34
|
+
'00_PROJECT_MANIFEST.md',
|
|
35
|
+
'01_PROJECT_DOCS',
|
|
36
|
+
'02_REQUIREMENTS',
|
|
37
|
+
'03_SPRINTS',
|
|
38
|
+
'04_GENERAL_TASKS',
|
|
39
|
+
'05_TEMPLATES',
|
|
40
|
+
'06_FEATURE_LEDGERS',
|
|
41
|
+
'07_AI_PERSONAS'
|
|
42
|
+
];
|
|
43
|
+
|
|
44
|
+
for (const dir of requiredDirs) {
|
|
45
|
+
if (!dir.endsWith('.md')) {
|
|
46
|
+
await fs.mkdir(path.join(aiwfDir, dir), { recursive: true });
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
// 프로젝트 매니페스트 생성
|
|
51
|
+
const manifest = `# AIWF 프로젝트 매니페스트
|
|
52
|
+
|
|
53
|
+
**프로젝트명**: Test Project
|
|
54
|
+
**생성일**: ${new Date().toISOString().split('T')[0]}
|
|
55
|
+
**현재 버전**: 0.1.0
|
|
56
|
+
**프로젝트 유형**: 테스트 프로젝트
|
|
57
|
+
|
|
58
|
+
## 프로젝트 개요
|
|
59
|
+
AIWF 테스트 프로젝트입니다.
|
|
60
|
+
|
|
61
|
+
## 현재 마일스톤
|
|
62
|
+
- **활성 마일스톤**: 없음
|
|
63
|
+
- **마일스톤 상태**: 대기
|
|
64
|
+
|
|
65
|
+
## 현재 스프린트
|
|
66
|
+
- **활성 스프린트**: 없음
|
|
67
|
+
- **스프린트 상태**: 대기
|
|
68
|
+
|
|
69
|
+
## 태스크 통계
|
|
70
|
+
- **총 태스크**: 0
|
|
71
|
+
- **완료**: 0
|
|
72
|
+
- **진행 중**: 0
|
|
73
|
+
- **대기 중**: 0
|
|
74
|
+
`;
|
|
75
|
+
|
|
76
|
+
await fs.writeFile(path.join(aiwfDir, '00_PROJECT_MANIFEST.md'), manifest);
|
|
77
|
+
|
|
78
|
+
return {
|
|
79
|
+
success: true,
|
|
80
|
+
message: '프로젝트 초기화 완료',
|
|
81
|
+
aiwfDir: aiwfDir
|
|
82
|
+
};
|
|
83
|
+
};
|
|
84
|
+
|
|
85
|
+
const result = await initializeProject(testProjectDir);
|
|
86
|
+
|
|
87
|
+
expect(result.success).toBe(true);
|
|
88
|
+
expect(await testUtils.dirExists(result.aiwfDir)).toBe(true);
|
|
89
|
+
expect(await testUtils.fileExists(path.join(result.aiwfDir, '00_PROJECT_MANIFEST.md'))).toBe(true);
|
|
90
|
+
expect(await testUtils.dirExists(path.join(result.aiwfDir, '06_FEATURE_LEDGERS'))).toBe(true);
|
|
91
|
+
expect(await testUtils.dirExists(path.join(result.aiwfDir, '07_AI_PERSONAS'))).toBe(true);
|
|
92
|
+
});
|
|
93
|
+
|
|
94
|
+
test('태스크 생성 명령어 시뮬레이션', async () => {
|
|
95
|
+
// aiwf_create_task 명령어 시뮬레이션
|
|
96
|
+
const createTask = async (taskData) => {
|
|
97
|
+
const tasksDir = path.join(aiwfDir, '04_GENERAL_TASKS');
|
|
98
|
+
const taskFilePath = path.join(tasksDir, `${taskData.id}.md`);
|
|
99
|
+
|
|
100
|
+
const taskContent = `---
|
|
101
|
+
task_id: ${taskData.id}
|
|
102
|
+
title: ${taskData.title}
|
|
103
|
+
status: ${taskData.status}
|
|
104
|
+
priority: ${taskData.priority}
|
|
105
|
+
created_at: ${new Date().toISOString()}
|
|
106
|
+
---
|
|
107
|
+
|
|
108
|
+
# Task: ${taskData.title}
|
|
109
|
+
|
|
110
|
+
## Description
|
|
111
|
+
${taskData.description}
|
|
112
|
+
|
|
113
|
+
## Acceptance Criteria
|
|
114
|
+
${taskData.acceptanceCriteria.map(criterion => `- [ ] ${criterion}`).join('\n')}
|
|
115
|
+
|
|
116
|
+
## Subtasks
|
|
117
|
+
${taskData.subtasks.map(subtask => `- [ ] ${subtask}`).join('\n')}
|
|
118
|
+
`;
|
|
119
|
+
|
|
120
|
+
await fs.writeFile(taskFilePath, taskContent);
|
|
121
|
+
|
|
122
|
+
return {
|
|
123
|
+
success: true,
|
|
124
|
+
taskId: taskData.id,
|
|
125
|
+
filePath: taskFilePath
|
|
126
|
+
};
|
|
127
|
+
};
|
|
128
|
+
|
|
129
|
+
const taskData = {
|
|
130
|
+
id: 'TEST_TASK_001',
|
|
131
|
+
title: 'Test Task Creation',
|
|
132
|
+
description: 'Test task for command integration',
|
|
133
|
+
status: 'open',
|
|
134
|
+
priority: 'medium',
|
|
135
|
+
acceptanceCriteria: [
|
|
136
|
+
'Task file is created',
|
|
137
|
+
'Task has proper frontmatter',
|
|
138
|
+
'Task is added to project manifest'
|
|
139
|
+
],
|
|
140
|
+
subtasks: [
|
|
141
|
+
'Create task file',
|
|
142
|
+
'Add to manifest',
|
|
143
|
+
'Verify structure'
|
|
144
|
+
]
|
|
145
|
+
};
|
|
146
|
+
|
|
147
|
+
const result = await createTask(taskData);
|
|
148
|
+
|
|
149
|
+
expect(result.success).toBe(true);
|
|
150
|
+
expect(await testUtils.fileExists(result.filePath)).toBe(true);
|
|
151
|
+
|
|
152
|
+
const parsedTask = await testUtils.parseMarkdownFile(result.filePath);
|
|
153
|
+
expect(parsedTask.metadata.task_id).toBe(taskData.id);
|
|
154
|
+
expect(parsedTask.metadata.title).toBe(taskData.title);
|
|
155
|
+
expect(parsedTask.metadata.status).toBe(taskData.status);
|
|
156
|
+
});
|
|
157
|
+
|
|
158
|
+
test('Feature Ledger 생성 명령어 시뮬레이션', async () => {
|
|
159
|
+
// aiwf_create_feature_ledger 명령어 시뮬레이션
|
|
160
|
+
const createFeatureLedger = async (featureData) => {
|
|
161
|
+
const featureLedgerDir = path.join(aiwfDir, '06_FEATURE_LEDGERS');
|
|
162
|
+
const featureFilePath = path.join(featureLedgerDir, `${featureData.id}.md`);
|
|
163
|
+
|
|
164
|
+
const featureContent = `---
|
|
165
|
+
id: ${featureData.id}
|
|
166
|
+
title: ${featureData.title}
|
|
167
|
+
description: ${featureData.description}
|
|
168
|
+
status: ${featureData.status}
|
|
169
|
+
priority: ${featureData.priority}
|
|
170
|
+
milestone: ${featureData.milestone}
|
|
171
|
+
created_at: ${new Date().toISOString()}
|
|
172
|
+
updated_at: ${new Date().toISOString()}
|
|
173
|
+
---
|
|
174
|
+
|
|
175
|
+
# Feature: ${featureData.title}
|
|
176
|
+
|
|
177
|
+
## Description
|
|
178
|
+
${featureData.description}
|
|
179
|
+
|
|
180
|
+
## Status
|
|
181
|
+
${featureData.status}
|
|
182
|
+
|
|
183
|
+
## Priority
|
|
184
|
+
${featureData.priority}
|
|
185
|
+
|
|
186
|
+
## Milestone
|
|
187
|
+
${featureData.milestone}
|
|
188
|
+
`;
|
|
189
|
+
|
|
190
|
+
await fs.writeFile(featureFilePath, featureContent);
|
|
191
|
+
|
|
192
|
+
return {
|
|
193
|
+
success: true,
|
|
194
|
+
featureId: featureData.id,
|
|
195
|
+
filePath: featureFilePath
|
|
196
|
+
};
|
|
197
|
+
};
|
|
198
|
+
|
|
199
|
+
const featureData = {
|
|
200
|
+
id: 'FEATURE_TEST_001',
|
|
201
|
+
title: 'Test Feature Creation',
|
|
202
|
+
description: 'Test feature for command integration',
|
|
203
|
+
status: 'planned',
|
|
204
|
+
priority: 'high',
|
|
205
|
+
milestone: 'M01'
|
|
206
|
+
};
|
|
207
|
+
|
|
208
|
+
const result = await createFeatureLedger(featureData);
|
|
209
|
+
|
|
210
|
+
expect(result.success).toBe(true);
|
|
211
|
+
expect(await testUtils.fileExists(result.filePath)).toBe(true);
|
|
212
|
+
|
|
213
|
+
const parsedFeature = await testUtils.parseMarkdownFile(result.filePath);
|
|
214
|
+
expect(parsedFeature.metadata.id).toBe(featureData.id);
|
|
215
|
+
expect(parsedFeature.metadata.title).toBe(featureData.title);
|
|
216
|
+
expect(parsedFeature.metadata.status).toBe(featureData.status);
|
|
217
|
+
});
|
|
218
|
+
});
|
|
219
|
+
|
|
220
|
+
describe('AI 페르소나 명령어 통합 테스트', () => {
|
|
221
|
+
test('페르소나 생성 명령어 시뮬레이션', async () => {
|
|
222
|
+
// aiwf_create_persona 명령어 시뮬레이션
|
|
223
|
+
const createPersona = async (personaData) => {
|
|
224
|
+
const personaDir = path.join(aiwfDir, '07_AI_PERSONAS');
|
|
225
|
+
const personaFilePath = path.join(personaDir, `${personaData.id}.md`);
|
|
226
|
+
|
|
227
|
+
const personaContent = `---
|
|
228
|
+
id: ${personaData.id}
|
|
229
|
+
name: ${personaData.name}
|
|
230
|
+
description: ${personaData.description}
|
|
231
|
+
active: ${personaData.active}
|
|
232
|
+
commands: ${personaData.commands.join(', ')}
|
|
233
|
+
created_at: ${new Date().toISOString()}
|
|
234
|
+
---
|
|
235
|
+
|
|
236
|
+
# AI 페르소나: ${personaData.name}
|
|
237
|
+
|
|
238
|
+
## Description
|
|
239
|
+
${personaData.description}
|
|
240
|
+
|
|
241
|
+
## Context
|
|
242
|
+
${personaData.context}
|
|
243
|
+
|
|
244
|
+
## Available Commands
|
|
245
|
+
${personaData.commands.map(cmd => `- ${cmd}`).join('\n')}
|
|
246
|
+
`;
|
|
247
|
+
|
|
248
|
+
await fs.writeFile(personaFilePath, personaContent);
|
|
249
|
+
|
|
250
|
+
return {
|
|
251
|
+
success: true,
|
|
252
|
+
personaId: personaData.id,
|
|
253
|
+
filePath: personaFilePath
|
|
254
|
+
};
|
|
255
|
+
};
|
|
256
|
+
|
|
257
|
+
const personaData = {
|
|
258
|
+
id: 'test_architect',
|
|
259
|
+
name: 'Test Architect',
|
|
260
|
+
description: 'Test AI persona for architecture',
|
|
261
|
+
active: true,
|
|
262
|
+
commands: ['design', 'review', 'optimize'],
|
|
263
|
+
context: 'You are a test software architect.'
|
|
264
|
+
};
|
|
265
|
+
|
|
266
|
+
const result = await createPersona(personaData);
|
|
267
|
+
|
|
268
|
+
expect(result.success).toBe(true);
|
|
269
|
+
expect(await testUtils.fileExists(result.filePath)).toBe(true);
|
|
270
|
+
|
|
271
|
+
const parsedPersona = await testUtils.parseMarkdownFile(result.filePath);
|
|
272
|
+
expect(parsedPersona.metadata.id).toBe(personaData.id);
|
|
273
|
+
expect(parsedPersona.metadata.name).toBe(personaData.name);
|
|
274
|
+
expect(parsedPersona.metadata.active).toBe('true');
|
|
275
|
+
});
|
|
276
|
+
|
|
277
|
+
test('페르소나 전환 명령어 시뮬레이션', async () => {
|
|
278
|
+
// aiwf_switch_persona 명령어 시뮬레이션
|
|
279
|
+
const switchPersona = async (fromPersonaId, toPersonaId) => {
|
|
280
|
+
const personaDir = path.join(aiwfDir, '07_AI_PERSONAS');
|
|
281
|
+
|
|
282
|
+
// 기존 페르소나 비활성화
|
|
283
|
+
if (fromPersonaId) {
|
|
284
|
+
const fromPath = path.join(personaDir, `${fromPersonaId}.md`);
|
|
285
|
+
if (await testUtils.fileExists(fromPath)) {
|
|
286
|
+
const fromContent = await fs.readFile(fromPath, 'utf8');
|
|
287
|
+
const updatedFromContent = fromContent.replace('active: true', 'active: false');
|
|
288
|
+
await fs.writeFile(fromPath, updatedFromContent);
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
// 새 페르소나 활성화
|
|
293
|
+
const toPath = path.join(personaDir, `${toPersonaId}.md`);
|
|
294
|
+
if (await testUtils.fileExists(toPath)) {
|
|
295
|
+
const toContent = await fs.readFile(toPath, 'utf8');
|
|
296
|
+
const updatedToContent = toContent.replace('active: false', 'active: true');
|
|
297
|
+
await fs.writeFile(toPath, updatedToContent);
|
|
298
|
+
|
|
299
|
+
return {
|
|
300
|
+
success: true,
|
|
301
|
+
fromPersona: fromPersonaId,
|
|
302
|
+
toPersona: toPersonaId
|
|
303
|
+
};
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
return {
|
|
307
|
+
success: false,
|
|
308
|
+
error: 'Target persona not found'
|
|
309
|
+
};
|
|
310
|
+
};
|
|
311
|
+
|
|
312
|
+
// 테스트 페르소나들 생성
|
|
313
|
+
const personas = [
|
|
314
|
+
{ id: 'architect', name: 'Architect', active: true },
|
|
315
|
+
{ id: 'security', name: 'Security', active: false }
|
|
316
|
+
];
|
|
317
|
+
|
|
318
|
+
for (const persona of personas) {
|
|
319
|
+
const personaPath = path.join(aiwfDir, '07_AI_PERSONAS', `${persona.id}.md`);
|
|
320
|
+
await fs.writeFile(personaPath, `---
|
|
321
|
+
id: ${persona.id}
|
|
322
|
+
name: ${persona.name}
|
|
323
|
+
active: ${persona.active}
|
|
324
|
+
---
|
|
325
|
+
|
|
326
|
+
# AI 페르소나: ${persona.name}
|
|
327
|
+
`);
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
const result = await switchPersona('architect', 'security');
|
|
331
|
+
|
|
332
|
+
expect(result.success).toBe(true);
|
|
333
|
+
expect(result.fromPersona).toBe('architect');
|
|
334
|
+
expect(result.toPersona).toBe('security');
|
|
335
|
+
|
|
336
|
+
// 전환 결과 검증
|
|
337
|
+
const architectContent = await testUtils.parseMarkdownFile(
|
|
338
|
+
path.join(aiwfDir, '07_AI_PERSONAS', 'architect.md')
|
|
339
|
+
);
|
|
340
|
+
const securityContent = await testUtils.parseMarkdownFile(
|
|
341
|
+
path.join(aiwfDir, '07_AI_PERSONAS', 'security.md')
|
|
342
|
+
);
|
|
343
|
+
|
|
344
|
+
expect(architectContent.metadata.active).toBe('false');
|
|
345
|
+
expect(securityContent.metadata.active).toBe('true');
|
|
346
|
+
});
|
|
347
|
+
});
|
|
348
|
+
|
|
349
|
+
describe('상태 관리 명령어 통합 테스트', () => {
|
|
350
|
+
test('프로젝트 상태 조회 명령어 시뮬레이션', async () => {
|
|
351
|
+
// aiwf_status 명령어 시뮬레이션
|
|
352
|
+
const getProjectStatus = async () => {
|
|
353
|
+
const manifestPath = path.join(aiwfDir, '00_PROJECT_MANIFEST.md');
|
|
354
|
+
const manifestContent = await testUtils.parseMarkdownFile(manifestPath);
|
|
355
|
+
|
|
356
|
+
// 태스크 통계 계산
|
|
357
|
+
const tasksDir = path.join(aiwfDir, '04_GENERAL_TASKS');
|
|
358
|
+
const sprintsDir = path.join(aiwfDir, '03_SPRINTS');
|
|
359
|
+
|
|
360
|
+
let totalTasks = 0;
|
|
361
|
+
let completedTasks = 0;
|
|
362
|
+
let inProgressTasks = 0;
|
|
363
|
+
|
|
364
|
+
try {
|
|
365
|
+
const taskFiles = await fs.readdir(tasksDir);
|
|
366
|
+
const mdFiles = taskFiles.filter(file => file.endsWith('.md'));
|
|
367
|
+
totalTasks = mdFiles.length;
|
|
368
|
+
|
|
369
|
+
for (const file of mdFiles) {
|
|
370
|
+
const taskPath = path.join(tasksDir, file);
|
|
371
|
+
const taskContent = await testUtils.parseMarkdownFile(taskPath);
|
|
372
|
+
|
|
373
|
+
if (taskContent.metadata.status === 'completed') {
|
|
374
|
+
completedTasks++;
|
|
375
|
+
} else if (taskContent.metadata.status === 'in_progress') {
|
|
376
|
+
inProgressTasks++;
|
|
377
|
+
}
|
|
378
|
+
}
|
|
379
|
+
} catch (error) {
|
|
380
|
+
// 디렉토리가 없거나 비어있는 경우
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
return {
|
|
384
|
+
projectName: 'Test Project',
|
|
385
|
+
totalTasks,
|
|
386
|
+
completedTasks,
|
|
387
|
+
inProgressTasks,
|
|
388
|
+
pendingTasks: totalTasks - completedTasks - inProgressTasks,
|
|
389
|
+
completionRate: totalTasks > 0 ? Math.round((completedTasks / totalTasks) * 100) : 0
|
|
390
|
+
};
|
|
391
|
+
};
|
|
392
|
+
|
|
393
|
+
// 테스트 태스크 생성
|
|
394
|
+
const tasksDir = path.join(aiwfDir, '04_GENERAL_TASKS');
|
|
395
|
+
const testTasks = [
|
|
396
|
+
{ id: 'TASK_001', status: 'completed' },
|
|
397
|
+
{ id: 'TASK_002', status: 'in_progress' },
|
|
398
|
+
{ id: 'TASK_003', status: 'open' }
|
|
399
|
+
];
|
|
400
|
+
|
|
401
|
+
for (const task of testTasks) {
|
|
402
|
+
const taskPath = path.join(tasksDir, `${task.id}.md`);
|
|
403
|
+
await fs.writeFile(taskPath, `---
|
|
404
|
+
task_id: ${task.id}
|
|
405
|
+
status: ${task.status}
|
|
406
|
+
---
|
|
407
|
+
|
|
408
|
+
# Task: ${task.id}
|
|
409
|
+
`);
|
|
410
|
+
}
|
|
411
|
+
|
|
412
|
+
const status = await getProjectStatus();
|
|
413
|
+
|
|
414
|
+
expect(status.totalTasks).toBe(3);
|
|
415
|
+
expect(status.completedTasks).toBe(1);
|
|
416
|
+
expect(status.inProgressTasks).toBe(1);
|
|
417
|
+
expect(status.pendingTasks).toBe(1);
|
|
418
|
+
expect(status.completionRate).toBe(33);
|
|
419
|
+
});
|
|
420
|
+
|
|
421
|
+
test('마일스톤 진행률 조회 명령어 시뮬레이션', async () => {
|
|
422
|
+
// aiwf_milestone_progress 명령어 시뮬레이션
|
|
423
|
+
const getMilestoneProgress = async (milestoneId) => {
|
|
424
|
+
const requirementsDir = path.join(aiwfDir, '02_REQUIREMENTS');
|
|
425
|
+
const milestoneDir = path.join(requirementsDir, milestoneId);
|
|
426
|
+
|
|
427
|
+
if (!await testUtils.dirExists(milestoneDir)) {
|
|
428
|
+
return {
|
|
429
|
+
success: false,
|
|
430
|
+
error: 'Milestone not found'
|
|
431
|
+
};
|
|
432
|
+
}
|
|
433
|
+
|
|
434
|
+
const metaPath = path.join(milestoneDir, `${milestoneId}_milestone_meta.md`);
|
|
435
|
+
if (!await testUtils.fileExists(metaPath)) {
|
|
436
|
+
return {
|
|
437
|
+
success: false,
|
|
438
|
+
error: 'Milestone metadata not found'
|
|
439
|
+
};
|
|
440
|
+
}
|
|
441
|
+
|
|
442
|
+
const metaContent = await testUtils.parseMarkdownFile(metaPath);
|
|
443
|
+
|
|
444
|
+
return {
|
|
445
|
+
success: true,
|
|
446
|
+
milestoneId: milestoneId,
|
|
447
|
+
title: metaContent.metadata.title,
|
|
448
|
+
status: metaContent.metadata.status,
|
|
449
|
+
progress: 0 // 실제로는 관련 태스크들을 분석해서 계산
|
|
450
|
+
};
|
|
451
|
+
};
|
|
452
|
+
|
|
453
|
+
// 테스트 마일스톤 생성
|
|
454
|
+
const milestoneId = 'M01_Test_Milestone';
|
|
455
|
+
const milestoneDir = path.join(aiwfDir, '02_REQUIREMENTS', milestoneId);
|
|
456
|
+
await fs.mkdir(milestoneDir, { recursive: true });
|
|
457
|
+
|
|
458
|
+
const metaPath = path.join(milestoneDir, `${milestoneId}_milestone_meta.md`);
|
|
459
|
+
await fs.writeFile(metaPath, `---
|
|
460
|
+
milestone_id: ${milestoneId}
|
|
461
|
+
title: Test Milestone
|
|
462
|
+
status: active
|
|
463
|
+
---
|
|
464
|
+
|
|
465
|
+
# Milestone: Test Milestone
|
|
466
|
+
`);
|
|
467
|
+
|
|
468
|
+
const progress = await getMilestoneProgress(milestoneId);
|
|
469
|
+
|
|
470
|
+
expect(progress.success).toBe(true);
|
|
471
|
+
expect(progress.milestoneId).toBe(milestoneId);
|
|
472
|
+
expect(progress.title).toBe('Test Milestone');
|
|
473
|
+
expect(progress.status).toBe('active');
|
|
474
|
+
});
|
|
475
|
+
});
|
|
476
|
+
|
|
477
|
+
describe('명령어 체이닝 테스트', () => {
|
|
478
|
+
test('연속 명령어 실행 시뮬레이션', async () => {
|
|
479
|
+
// 여러 명령어를 연속으로 실행하는 시뮬레이션
|
|
480
|
+
const executeCommandChain = async (commands) => {
|
|
481
|
+
const results = [];
|
|
482
|
+
|
|
483
|
+
for (const command of commands) {
|
|
484
|
+
switch (command.type) {
|
|
485
|
+
case 'create_task':
|
|
486
|
+
const taskResult = await createTestTask(command.data);
|
|
487
|
+
results.push(taskResult);
|
|
488
|
+
break;
|
|
489
|
+
case 'create_feature':
|
|
490
|
+
const featureResult = await createTestFeature(command.data);
|
|
491
|
+
results.push(featureResult);
|
|
492
|
+
break;
|
|
493
|
+
case 'switch_persona':
|
|
494
|
+
const personaResult = await switchTestPersona(command.data);
|
|
495
|
+
results.push(personaResult);
|
|
496
|
+
break;
|
|
497
|
+
default:
|
|
498
|
+
results.push({ success: false, error: 'Unknown command' });
|
|
499
|
+
}
|
|
500
|
+
}
|
|
501
|
+
|
|
502
|
+
return results;
|
|
503
|
+
};
|
|
504
|
+
|
|
505
|
+
// 헬퍼 함수들
|
|
506
|
+
const createTestTask = async (data) => {
|
|
507
|
+
const taskPath = path.join(aiwfDir, '04_GENERAL_TASKS', `${data.id}.md`);
|
|
508
|
+
await fs.writeFile(taskPath, `---
|
|
509
|
+
task_id: ${data.id}
|
|
510
|
+
title: ${data.title}
|
|
511
|
+
status: open
|
|
512
|
+
---
|
|
513
|
+
|
|
514
|
+
# Task: ${data.title}
|
|
515
|
+
`);
|
|
516
|
+
return { success: true, type: 'task', id: data.id };
|
|
517
|
+
};
|
|
518
|
+
|
|
519
|
+
const createTestFeature = async (data) => {
|
|
520
|
+
const featurePath = path.join(aiwfDir, '06_FEATURE_LEDGERS', `${data.id}.md`);
|
|
521
|
+
await fs.writeFile(featurePath, `---
|
|
522
|
+
id: ${data.id}
|
|
523
|
+
title: ${data.title}
|
|
524
|
+
status: planned
|
|
525
|
+
---
|
|
526
|
+
|
|
527
|
+
# Feature: ${data.title}
|
|
528
|
+
`);
|
|
529
|
+
return { success: true, type: 'feature', id: data.id };
|
|
530
|
+
};
|
|
531
|
+
|
|
532
|
+
const switchTestPersona = async (data) => {
|
|
533
|
+
return { success: true, type: 'persona_switch', from: data.from, to: data.to };
|
|
534
|
+
};
|
|
535
|
+
|
|
536
|
+
// 명령어 체인 실행
|
|
537
|
+
const commands = [
|
|
538
|
+
{ type: 'create_task', data: { id: 'TASK_CHAIN_001', title: 'Chain Task 1' } },
|
|
539
|
+
{ type: 'create_feature', data: { id: 'FEATURE_CHAIN_001', title: 'Chain Feature 1' } },
|
|
540
|
+
{ type: 'switch_persona', data: { from: 'architect', to: 'security' } }
|
|
541
|
+
];
|
|
542
|
+
|
|
543
|
+
const results = await executeCommandChain(commands);
|
|
544
|
+
|
|
545
|
+
expect(results).toHaveLength(3);
|
|
546
|
+
expect(results[0].success).toBe(true);
|
|
547
|
+
expect(results[0].type).toBe('task');
|
|
548
|
+
expect(results[1].success).toBe(true);
|
|
549
|
+
expect(results[1].type).toBe('feature');
|
|
550
|
+
expect(results[2].success).toBe(true);
|
|
551
|
+
expect(results[2].type).toBe('persona_switch');
|
|
552
|
+
});
|
|
553
|
+
});
|
|
554
|
+
|
|
555
|
+
describe('명령어 에러 처리 테스트', () => {
|
|
556
|
+
test('잘못된 명령어 파라미터 처리', async () => {
|
|
557
|
+
const validateTaskData = (data) => {
|
|
558
|
+
const errors = [];
|
|
559
|
+
|
|
560
|
+
if (!data.id) errors.push('Task ID is required');
|
|
561
|
+
if (!data.title) errors.push('Task title is required');
|
|
562
|
+
if (data.priority && !['low', 'medium', 'high'].includes(data.priority)) {
|
|
563
|
+
errors.push('Invalid priority level');
|
|
564
|
+
}
|
|
565
|
+
|
|
566
|
+
return errors;
|
|
567
|
+
};
|
|
568
|
+
|
|
569
|
+
const validData = { id: 'TASK_001', title: 'Valid Task', priority: 'medium' };
|
|
570
|
+
const invalidData = { title: 'Invalid Task', priority: 'invalid' };
|
|
571
|
+
|
|
572
|
+
expect(validateTaskData(validData)).toHaveLength(0);
|
|
573
|
+
expect(validateTaskData(invalidData)).toHaveLength(2);
|
|
574
|
+
expect(validateTaskData(invalidData)).toContain('Task ID is required');
|
|
575
|
+
expect(validateTaskData(invalidData)).toContain('Invalid priority level');
|
|
576
|
+
});
|
|
577
|
+
|
|
578
|
+
test('파일 시스템 오류 처리', async () => {
|
|
579
|
+
const safeFileWrite = async (filePath, content) => {
|
|
580
|
+
try {
|
|
581
|
+
await fs.writeFile(filePath, content);
|
|
582
|
+
return { success: true };
|
|
583
|
+
} catch (error) {
|
|
584
|
+
return { success: false, error: error.message };
|
|
585
|
+
}
|
|
586
|
+
};
|
|
587
|
+
|
|
588
|
+
// 유효한 경로
|
|
589
|
+
const validPath = path.join(aiwfDir, 'test_file.md');
|
|
590
|
+
const validResult = await safeFileWrite(validPath, 'test content');
|
|
591
|
+
expect(validResult.success).toBe(true);
|
|
592
|
+
|
|
593
|
+
// 유효하지 않은 경로
|
|
594
|
+
const invalidPath = '/invalid/path/file.md';
|
|
595
|
+
const invalidResult = await safeFileWrite(invalidPath, 'test content');
|
|
596
|
+
expect(invalidResult.success).toBe(false);
|
|
597
|
+
expect(invalidResult.error).toBeTruthy();
|
|
598
|
+
});
|
|
599
|
+
});
|
|
600
|
+
});
|