aiwf 0.3.7 → 0.3.8
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/00_PROJECT_MANIFEST.md +226 -2
- package/.aiwf/03_SPRINTS/S03_M02_ecosystem_integration/S03_M02_sprint_meta.md +112 -0
- package/.aiwf/03_SPRINTS/S03_M02_ecosystem_integration/T01_S03_new_test_task.md +39 -0
- package/.aiwf/03_SPRINTS/S03_M02_ecosystem_integration/T02_S03_first_task.md +39 -0
- package/.aiwf/03_SPRINTS/S03_M02_ecosystem_integration/T03_S03_test_task.md +39 -0
- package/.aiwf/03_SPRINTS/S03_M02_ecosystem_integration/T04_S03_task_with_special_characters.md +39 -0
- package/.aiwf/03_SPRINTS/S03_M02_ecosystem_integration/T05_S03_test.md +39 -0
- package/.aiwf/03_SPRINTS/S03_M02_ecosystem_integration/T06_S03_test_task.md +39 -0
- package/.aiwf/03_SPRINTS/S03_M02_ecosystem_integration/T07_S03_next_task.md +39 -0
- package/.aiwf/03_SPRINTS/S03_M02_ecosystem_integration/T08_S03_next_task.md +39 -0
- package/.aiwf/03_SPRINTS/S03_M02_ecosystem_integration/T09_S03_new_test_task.md +39 -0
- package/.aiwf/03_SPRINTS/S03_M02_ecosystem_integration/T100_S03_task_with_special_characters.md +39 -0
- package/.aiwf/03_SPRINTS/S03_M02_ecosystem_integration/T101_S03_test.md +39 -0
- package/.aiwf/03_SPRINTS/S03_M02_ecosystem_integration/T102_S03_test_task.md +39 -0
- package/.aiwf/03_SPRINTS/S03_M02_ecosystem_integration/T103_S03_next_task.md +39 -0
- package/.aiwf/03_SPRINTS/S03_M02_ecosystem_integration/T104_S03_next_task.md +39 -0
- package/.aiwf/03_SPRINTS/S03_M02_ecosystem_integration/T105_S03_new_test_task.md +39 -0
- package/.aiwf/03_SPRINTS/S03_M02_ecosystem_integration/T106_S03_first_task.md +39 -0
- package/.aiwf/03_SPRINTS/S03_M02_ecosystem_integration/T107_S03_test_task.md +39 -0
- package/.aiwf/03_SPRINTS/S03_M02_ecosystem_integration/T108_S03_task_with_special_characters.md +39 -0
- package/.aiwf/03_SPRINTS/S03_M02_ecosystem_integration/T109_S03_test.md +39 -0
- package/.aiwf/03_SPRINTS/S03_M02_ecosystem_integration/T10_S03_first_task.md +39 -0
- package/.aiwf/03_SPRINTS/S03_M02_ecosystem_integration/T110_S03_test_task.md +39 -0
- package/.aiwf/03_SPRINTS/S03_M02_ecosystem_integration/T111_S03_next_task.md +39 -0
- package/.aiwf/03_SPRINTS/S03_M02_ecosystem_integration/T112_S03_next_task.md +39 -0
- package/.aiwf/03_SPRINTS/S03_M02_ecosystem_integration/T11_S03_test_task.md +39 -0
- package/.aiwf/03_SPRINTS/S03_M02_ecosystem_integration/T12_S03_task_with_special_characters.md +39 -0
- package/.aiwf/03_SPRINTS/S03_M02_ecosystem_integration/T13_S03_test.md +39 -0
- package/.aiwf/03_SPRINTS/S03_M02_ecosystem_integration/T14_S03_test_task.md +39 -0
- package/.aiwf/03_SPRINTS/S03_M02_ecosystem_integration/T15_S03_next_task.md +39 -0
- package/.aiwf/03_SPRINTS/S03_M02_ecosystem_integration/T16_S03_next_task.md +39 -0
- package/.aiwf/03_SPRINTS/S03_M02_ecosystem_integration/T17_S03_new_test_task.md +39 -0
- package/.aiwf/03_SPRINTS/S03_M02_ecosystem_integration/T18_S03_first_task.md +39 -0
- package/.aiwf/03_SPRINTS/S03_M02_ecosystem_integration/T19_S03_test_task.md +39 -0
- package/.aiwf/03_SPRINTS/S03_M02_ecosystem_integration/T20_S03_task_with_special_characters.md +39 -0
- package/.aiwf/03_SPRINTS/S03_M02_ecosystem_integration/T21_S03_test.md +39 -0
- package/.aiwf/03_SPRINTS/S03_M02_ecosystem_integration/T22_S03_test_task.md +39 -0
- package/.aiwf/03_SPRINTS/S03_M02_ecosystem_integration/T23_S03_next_task.md +39 -0
- package/.aiwf/03_SPRINTS/S03_M02_ecosystem_integration/T24_S03_next_task.md +39 -0
- package/.aiwf/03_SPRINTS/S03_M02_ecosystem_integration/T25_S03_new_test_task.md +39 -0
- package/.aiwf/03_SPRINTS/S03_M02_ecosystem_integration/T26_S03_first_task.md +39 -0
- package/.aiwf/03_SPRINTS/S03_M02_ecosystem_integration/T27_S03_test_task.md +39 -0
- package/.aiwf/03_SPRINTS/S03_M02_ecosystem_integration/T28_S03_task_with_special_characters.md +39 -0
- package/.aiwf/03_SPRINTS/S03_M02_ecosystem_integration/T29_S03_test.md +39 -0
- package/.aiwf/03_SPRINTS/S03_M02_ecosystem_integration/T30_S03_test_task.md +39 -0
- package/.aiwf/03_SPRINTS/S03_M02_ecosystem_integration/T31_S03_next_task.md +39 -0
- package/.aiwf/03_SPRINTS/S03_M02_ecosystem_integration/T32_S03_next_task.md +39 -0
- package/.aiwf/03_SPRINTS/S03_M02_ecosystem_integration/T33_S03_new_test_task.md +39 -0
- package/.aiwf/03_SPRINTS/S03_M02_ecosystem_integration/T34_S03_first_task.md +39 -0
- package/.aiwf/03_SPRINTS/S03_M02_ecosystem_integration/T35_S03_test_task.md +39 -0
- package/.aiwf/03_SPRINTS/S03_M02_ecosystem_integration/T36_S03_task_with_special_characters.md +39 -0
- package/.aiwf/03_SPRINTS/S03_M02_ecosystem_integration/T37_S03_test.md +39 -0
- package/.aiwf/03_SPRINTS/S03_M02_ecosystem_integration/T38_S03_test_task.md +39 -0
- package/.aiwf/03_SPRINTS/S03_M02_ecosystem_integration/T39_S03_next_task.md +39 -0
- package/.aiwf/03_SPRINTS/S03_M02_ecosystem_integration/T40_S03_next_task.md +39 -0
- package/.aiwf/03_SPRINTS/S03_M02_ecosystem_integration/T41_S03_new_test_task.md +39 -0
- package/.aiwf/03_SPRINTS/S03_M02_ecosystem_integration/T42_S03_first_task.md +39 -0
- package/.aiwf/03_SPRINTS/S03_M02_ecosystem_integration/T43_S03_test_task.md +39 -0
- package/.aiwf/03_SPRINTS/S03_M02_ecosystem_integration/T44_S03_task_with_special_characters.md +39 -0
- package/.aiwf/03_SPRINTS/S03_M02_ecosystem_integration/T45_S03_test.md +39 -0
- package/.aiwf/03_SPRINTS/S03_M02_ecosystem_integration/T46_S03_test_task.md +39 -0
- package/.aiwf/03_SPRINTS/S03_M02_ecosystem_integration/T47_S03_next_task.md +39 -0
- package/.aiwf/03_SPRINTS/S03_M02_ecosystem_integration/T48_S03_next_task.md +39 -0
- package/.aiwf/03_SPRINTS/S03_M02_ecosystem_integration/T49_S03_new_test_task.md +39 -0
- package/.aiwf/03_SPRINTS/S03_M02_ecosystem_integration/T50_S03_first_task.md +39 -0
- package/.aiwf/03_SPRINTS/S03_M02_ecosystem_integration/T51_S03_test_task.md +39 -0
- package/.aiwf/03_SPRINTS/S03_M02_ecosystem_integration/T52_S03_task_with_special_characters.md +39 -0
- package/.aiwf/03_SPRINTS/S03_M02_ecosystem_integration/T53_S03_test.md +39 -0
- package/.aiwf/03_SPRINTS/S03_M02_ecosystem_integration/T54_S03_test_task.md +39 -0
- package/.aiwf/03_SPRINTS/S03_M02_ecosystem_integration/T55_S03_next_task.md +39 -0
- package/.aiwf/03_SPRINTS/S03_M02_ecosystem_integration/T56_S03_next_task.md +39 -0
- package/.aiwf/03_SPRINTS/S03_M02_ecosystem_integration/T57_S03_new_test_task.md +39 -0
- package/.aiwf/03_SPRINTS/S03_M02_ecosystem_integration/T58_S03_first_task.md +39 -0
- package/.aiwf/03_SPRINTS/S03_M02_ecosystem_integration/T59_S03_test_task.md +39 -0
- package/.aiwf/03_SPRINTS/S03_M02_ecosystem_integration/T60_S03_task_with_special_characters.md +39 -0
- package/.aiwf/03_SPRINTS/S03_M02_ecosystem_integration/T61_S03_test.md +39 -0
- package/.aiwf/03_SPRINTS/S03_M02_ecosystem_integration/T62_S03_test_task.md +39 -0
- package/.aiwf/03_SPRINTS/S03_M02_ecosystem_integration/T63_S03_next_task.md +39 -0
- package/.aiwf/03_SPRINTS/S03_M02_ecosystem_integration/T64_S03_next_task.md +39 -0
- package/.aiwf/03_SPRINTS/S03_M02_ecosystem_integration/T65_S03_new_test_task.md +39 -0
- package/.aiwf/03_SPRINTS/S03_M02_ecosystem_integration/T66_S03_first_task.md +39 -0
- package/.aiwf/03_SPRINTS/S03_M02_ecosystem_integration/T67_S03_test_task.md +39 -0
- package/.aiwf/03_SPRINTS/S03_M02_ecosystem_integration/T68_S03_task_with_special_characters.md +39 -0
- package/.aiwf/03_SPRINTS/S03_M02_ecosystem_integration/T69_S03_test.md +39 -0
- package/.aiwf/03_SPRINTS/S03_M02_ecosystem_integration/T70_S03_test_task.md +39 -0
- package/.aiwf/03_SPRINTS/S03_M02_ecosystem_integration/T71_S03_next_task.md +39 -0
- package/.aiwf/03_SPRINTS/S03_M02_ecosystem_integration/T72_S03_next_task.md +39 -0
- package/.aiwf/03_SPRINTS/S03_M02_ecosystem_integration/T73_S03_new_test_task.md +39 -0
- package/.aiwf/03_SPRINTS/S03_M02_ecosystem_integration/T74_S03_first_task.md +39 -0
- package/.aiwf/03_SPRINTS/S03_M02_ecosystem_integration/T75_S03_test_task.md +39 -0
- package/.aiwf/03_SPRINTS/S03_M02_ecosystem_integration/T76_S03_task_with_special_characters.md +39 -0
- package/.aiwf/03_SPRINTS/S03_M02_ecosystem_integration/T77_S03_test.md +39 -0
- package/.aiwf/03_SPRINTS/S03_M02_ecosystem_integration/T78_S03_test_task.md +39 -0
- package/.aiwf/03_SPRINTS/S03_M02_ecosystem_integration/T79_S03_next_task.md +39 -0
- package/.aiwf/03_SPRINTS/S03_M02_ecosystem_integration/T80_S03_next_task.md +39 -0
- package/.aiwf/03_SPRINTS/S03_M02_ecosystem_integration/T81_S03_new_test_task.md +39 -0
- package/.aiwf/03_SPRINTS/S03_M02_ecosystem_integration/T82_S03_first_task.md +39 -0
- package/.aiwf/03_SPRINTS/S03_M02_ecosystem_integration/T83_S03_test_task.md +39 -0
- package/.aiwf/03_SPRINTS/S03_M02_ecosystem_integration/T84_S03_task_with_special_characters.md +39 -0
- package/.aiwf/03_SPRINTS/S03_M02_ecosystem_integration/T85_S03_test.md +39 -0
- package/.aiwf/03_SPRINTS/S03_M02_ecosystem_integration/T86_S03_test_task.md +39 -0
- package/.aiwf/03_SPRINTS/S03_M02_ecosystem_integration/T87_S03_next_task.md +39 -0
- package/.aiwf/03_SPRINTS/S03_M02_ecosystem_integration/T88_S03_next_task.md +39 -0
- package/.aiwf/03_SPRINTS/S03_M02_ecosystem_integration/T89_S03_new_test_task.md +39 -0
- package/.aiwf/03_SPRINTS/S03_M02_ecosystem_integration/T90_S03_first_task.md +39 -0
- package/.aiwf/03_SPRINTS/S03_M02_ecosystem_integration/T91_S03_test_task.md +39 -0
- package/.aiwf/03_SPRINTS/S03_M02_ecosystem_integration/T92_S03_task_with_special_characters.md +39 -0
- package/.aiwf/03_SPRINTS/S03_M02_ecosystem_integration/T93_S03_test.md +39 -0
- package/.aiwf/03_SPRINTS/S03_M02_ecosystem_integration/T94_S03_test_task.md +39 -0
- package/.aiwf/03_SPRINTS/S03_M02_ecosystem_integration/T95_S03_next_task.md +39 -0
- package/.aiwf/03_SPRINTS/S03_M02_ecosystem_integration/T96_S03_next_task.md +39 -0
- package/.aiwf/03_SPRINTS/S03_M02_ecosystem_integration/T97_S03_new_test_task.md +39 -0
- package/.aiwf/03_SPRINTS/S03_M02_ecosystem_integration/T98_S03_first_task.md +39 -0
- package/.aiwf/03_SPRINTS/S03_M02_ecosystem_integration/T99_S03_test_task.md +39 -0
- package/.aiwf/test-results-s02.json +5 -5
- package/.claude/commands/aiwf/aiwf_compress_aggressive_persona.md +3 -15
- package/.claude/commands/aiwf/aiwf_compress_minimal_persona.md +2 -15
- package/.claude/commands/aiwf/aiwf_compress_stats.md +2 -51
- package/.claude/commands/aiwf/aiwf_compress_with_persona.md +5 -18
- package/.claude/commands/aiwf/aiwf_create_feature_ledger.md +1 -1
- package/.claude/commands/aiwf/aiwf_default_mode.md +1 -1
- package/.claude/commands/aiwf/aiwf_evaluate.md +3 -16
- package/.claude/commands/aiwf/aiwf_get_feature_details.md +1 -1
- package/.claude/commands/aiwf/aiwf_link_feature_to_milestone.md +1 -1
- package/.claude/commands/aiwf/aiwf_list_features.md +1 -1
- package/.claude/commands/aiwf/aiwf_switch_language.md +48 -120
- package/.claude/commands/aiwf/aiwf_update_feature_status.md +1 -1
- package/claude-code/aiwf/ko/.claude/commands/aiwf/aiwf_compress_aggressive_persona.md +2 -2
- package/claude-code/aiwf/ko/.claude/commands/aiwf/aiwf_compress_minimal_persona.md +2 -2
- package/claude-code/aiwf/ko/.claude/commands/aiwf/aiwf_compress_stats.md +10 -47
- package/claude-code/aiwf/ko/.claude/commands/aiwf/aiwf_compress_with_persona.md +2 -2
- package/claude-code/aiwf/ko/.claude/commands/aiwf/aiwf_create_feature_ledger.md +1 -1
- package/claude-code/aiwf/ko/.claude/commands/aiwf/aiwf_default_mode.md +1 -1
- package/claude-code/aiwf/ko/.claude/commands/aiwf/aiwf_evaluate.md +2 -2
- package/claude-code/aiwf/ko/.claude/commands/aiwf/aiwf_get_feature_details.md +1 -1
- package/claude-code/aiwf/ko/.claude/commands/aiwf/aiwf_link_feature_to_milestone.md +1 -1
- package/claude-code/aiwf/ko/.claude/commands/aiwf/aiwf_list_features.md +1 -1
- package/claude-code/aiwf/ko/.claude/commands/aiwf/aiwf_persona_architect.md +1 -1
- package/claude-code/aiwf/ko/.claude/commands/aiwf/aiwf_persona_backend.md +1 -1
- package/claude-code/aiwf/ko/.claude/commands/aiwf/aiwf_persona_data_analyst.md +1 -1
- package/claude-code/aiwf/ko/.claude/commands/aiwf/aiwf_persona_frontend.md +1 -1
- package/claude-code/aiwf/ko/.claude/commands/aiwf/aiwf_persona_security.md +1 -1
- package/claude-code/aiwf/ko/.claude/commands/aiwf/aiwf_persona_status.md +1 -1
- package/claude-code/aiwf/ko/.claude/commands/aiwf/aiwf_update_feature_status.md +1 -1
- package/package.json +1 -1
- package/src/cli/index.js +174 -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/feature.js +365 -0
- package/src/commands/persona.js +37 -16
- package/src/commands/token.js +312 -0
- package/src/lib/resource-loader.js +250 -0
- package/src/lib/resources/commands/ai-persona.js +602 -0
- package/src/lib/resources/commands/compress-context.js +389 -0
- package/src/lib/resources/commands/evaluate.js +246 -0
- package/src/lib/resources/commands/feature-ledger.js +565 -0
- package/src/lib/resources/commands/feature_commit_report.js +370 -0
- package/src/lib/resources/commands/persona-context-apply.js +562 -0
- package/src/lib/resources/commands/scan_git_history.js +234 -0
- package/src/lib/resources/commands/sync_feature_commits.js +154 -0
- package/src/lib/resources/commands/token-tracking.js +443 -0
- package/src/lib/resources/config/commit-patterns.js +103 -0
- package/src/lib/resources/config/language.json +6 -0
- package/src/lib/resources/personas/PERSONA_INDEX.md +57 -0
- package/src/lib/resources/personas/analyst.json +44 -0
- package/src/lib/resources/personas/architect/best_practices.md +136 -0
- package/src/lib/resources/personas/architect/knowledge_base.md +377 -0
- package/src/lib/resources/personas/architect.json +44 -0
- package/src/lib/resources/personas/backend/best_practices.md +766 -0
- package/src/lib/resources/personas/backend/knowledge_base.md +1070 -0
- package/src/lib/resources/personas/data_analyst/best_practices.md +594 -0
- package/src/lib/resources/personas/data_analyst/knowledge_base.md +1057 -0
- package/src/lib/resources/personas/developer.json +44 -0
- package/src/lib/resources/personas/developer.md +37 -0
- package/src/lib/resources/personas/evaluation_criteria.json +137 -0
- package/src/lib/resources/personas/frontend/best_practices.md +445 -0
- package/src/lib/resources/personas/frontend/knowledge_base.md +729 -0
- package/src/lib/resources/personas/persona-index.json +31 -0
- package/src/lib/resources/personas/reviewer.json +44 -0
- package/src/lib/resources/personas/security/best_practices.md +307 -0
- package/src/lib/resources/personas/security/knowledge_base.md +498 -0
- package/src/lib/resources/personas/tester.json +44 -0
- package/src/lib/resources/templates/README.md +78 -0
- package/src/lib/resources/templates/api-server/config.json +64 -0
- package/src/lib/resources/templates/api-server/template/.aiwf/config.json +56 -0
- package/src/lib/resources/templates/api-server/template/.aiwf/feature-ledger.json +42 -0
- package/src/lib/resources/templates/api-server/template/.aiwf/personas/backend-engineer.json +40 -0
- package/src/lib/resources/templates/api-server/template/.aiwf/scripts/cli.js +111 -0
- package/src/lib/resources/templates/api-server/template/.env.example +29 -0
- package/src/lib/resources/templates/api-server/template/.eslintrc.json +23 -0
- package/src/lib/resources/templates/api-server/template/README.md +171 -0
- package/src/lib/resources/templates/api-server/template/jest.config.js +26 -0
- package/src/lib/resources/templates/api-server/template/nodemon.json +9 -0
- package/src/lib/resources/templates/api-server/template/package.json +61 -0
- package/src/lib/resources/templates/api-server/template/src/app.ts +60 -0
- package/src/lib/resources/templates/api-server/template/src/config/swagger.ts +38 -0
- package/src/lib/resources/templates/api-server/template/src/controllers/aiwfController.ts +68 -0
- package/src/lib/resources/templates/api-server/template/src/controllers/authController.ts +128 -0
- package/src/lib/resources/templates/api-server/template/src/controllers/statusController.ts +28 -0
- package/src/lib/resources/templates/api-server/template/src/index.ts +28 -0
- package/src/lib/resources/templates/api-server/template/src/middleware/aiwfMiddleware.ts +50 -0
- package/src/lib/resources/templates/api-server/template/src/middleware/authMiddleware.ts +41 -0
- package/src/lib/resources/templates/api-server/template/src/middleware/errorHandler.ts +42 -0
- package/src/lib/resources/templates/api-server/template/src/middleware/notFoundHandler.ts +14 -0
- package/src/lib/resources/templates/api-server/template/src/middleware/requestLogger.ts +20 -0
- package/src/lib/resources/templates/api-server/template/src/routes/aiwf.ts +42 -0
- package/src/lib/resources/templates/api-server/template/src/routes/index.ts +13 -0
- package/src/lib/resources/templates/api-server/template/src/routes/v1/index.ts +67 -0
- package/src/lib/resources/templates/api-server/template/src/utils/logger.ts +37 -0
- package/src/lib/resources/templates/api-server/template/tests/app.test.ts +40 -0
- package/src/lib/resources/templates/api-server/template/tsconfig.json +43 -0
- package/src/lib/resources/templates/npm-library/config.json +61 -0
- package/src/lib/resources/templates/npm-library/template/LICENSE +21 -0
- package/src/lib/resources/templates/npm-library/template/README.md +201 -0
- package/src/lib/resources/templates/npm-library/template/package.json +78 -0
- package/src/lib/resources/templates/web-app/config.json +53 -0
- package/src/lib/resources/templates/web-app/template/.aiwf/config.json +54 -0
- package/src/lib/resources/templates/web-app/template/.aiwf/feature-ledger.json +37 -0
- package/src/lib/resources/templates/web-app/template/.aiwf/personas/fullstack-developer.json +40 -0
- package/src/lib/resources/templates/web-app/template/.aiwf/scripts/cli.js +110 -0
- package/src/lib/resources/templates/web-app/template/.eslintrc.cjs +20 -0
- package/src/lib/resources/templates/web-app/template/README.md +151 -0
- package/src/lib/resources/templates/web-app/template/index.html +14 -0
- package/src/lib/resources/templates/web-app/template/package.json +44 -0
- package/src/lib/resources/templates/web-app/template/postcss.config.js +6 -0
- package/src/lib/resources/templates/web-app/template/public/vite.svg +1 -0
- package/src/lib/resources/templates/web-app/template/src/App.tsx +21 -0
- package/src/lib/resources/templates/web-app/template/src/components/Layout.tsx +57 -0
- package/src/lib/resources/templates/web-app/template/src/components/aiwf/ContextStatus.tsx +107 -0
- package/src/lib/resources/templates/web-app/template/src/components/aiwf/FeatureLedger.tsx +93 -0
- package/src/lib/resources/templates/web-app/template/src/components/aiwf/TokenUsage.tsx +71 -0
- package/src/lib/resources/templates/web-app/template/src/index.css +60 -0
- package/src/lib/resources/templates/web-app/template/src/main.tsx +10 -0
- package/src/lib/resources/templates/web-app/template/src/pages/AiwfDashboard.tsx +60 -0
- package/src/lib/resources/templates/web-app/template/src/pages/HomePage.tsx +89 -0
- package/src/lib/resources/templates/web-app/template/src/pages/NotFound.tsx +25 -0
- package/src/lib/resources/templates/web-app/template/src/stores/aiwfStore.ts +126 -0
- package/src/lib/resources/templates/web-app/template/src/types/global.d.ts +9 -0
- package/src/lib/resources/templates/web-app/template/src/vite-env.d.ts +1 -0
- package/src/lib/resources/templates/web-app/template/tailwind.config.js +30 -0
- package/src/lib/resources/templates/web-app/template/tsconfig.json +37 -0
- package/src/lib/resources/templates/web-app/template/tsconfig.node.json +10 -0
- package/src/lib/resources/templates/web-app/template/vite.config.ts +23 -0
- package/src/lib/resources/utils/background-monitor.js +223 -0
- package/src/lib/resources/utils/compression-metrics.js +1031 -0
- package/src/lib/resources/utils/compression-strategies.js +557 -0
- package/src/lib/resources/utils/content-normalizer.js +455 -0
- package/src/lib/resources/utils/context-compressor.js +583 -0
- package/src/lib/resources/utils/context-rule-parser.js +180 -0
- package/src/lib/resources/utils/context-token-monitor.js +463 -0
- package/src/lib/resources/utils/context-update-manager.js +502 -0
- package/src/lib/resources/utils/feature-updater.js +271 -0
- package/src/lib/resources/utils/git-utils.js +220 -0
- package/src/lib/resources/utils/importance-classifier.js +645 -0
- package/src/lib/resources/utils/information-filter.js +710 -0
- package/src/lib/resources/utils/persona-aware-compressor.js +598 -0
- package/src/lib/resources/utils/prompt-injector.js +242 -0
- package/src/lib/resources/utils/simplified-evaluator.js +119 -0
- package/src/lib/resources/utils/text-summarizer.js +492 -0
- package/src/lib/resources/utils/token-counter.js +177 -0
- package/src/lib/resources/utils/token-monitor.js +484 -0
- package/src/lib/resources/utils/token-reporter.js +453 -0
- package/src/lib/resources/utils/token-storage.js +433 -0
- package/src/lib/resources/utils/token-tracker.js +283 -0
- package/claude-code/aiwf/ko/.claude/commands/aiwf/aiwf_switch_language.md +0 -160
- /package/claude-code/aiwf/ko/.claude/commands/aiwf/{aiwf_update_docs_kr.md → aiwf_update_docs.md} +0 -0
|
@@ -0,0 +1,234 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
const { Command } = require('commander');
|
|
4
|
+
const chalk = require('chalk');
|
|
5
|
+
const ora = require('ora');
|
|
6
|
+
const fs = require('fs').promises;
|
|
7
|
+
const path = require('path');
|
|
8
|
+
const {
|
|
9
|
+
getFeatureRelatedCommits,
|
|
10
|
+
isGitRepository,
|
|
11
|
+
runGitCommand
|
|
12
|
+
} = require('../utils/git-utils');
|
|
13
|
+
const {
|
|
14
|
+
syncFeatureWithGit,
|
|
15
|
+
findFeatureFile
|
|
16
|
+
} = require('../utils/feature-updater');
|
|
17
|
+
|
|
18
|
+
const program = new Command();
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* scan_git_history 명령어
|
|
22
|
+
* 기존 Git 히스토리를 스캔하여 Feature와 연결
|
|
23
|
+
*/
|
|
24
|
+
|
|
25
|
+
program
|
|
26
|
+
.name('scan_git_history')
|
|
27
|
+
.description('기존 Git 히스토리를 스캔하여 Feature Ledger와 연결합니다')
|
|
28
|
+
.option('-s, --since <date>', '스캔 시작 날짜 (YYYY-MM-DD)', '2025-01-01')
|
|
29
|
+
.option('-u, --until <date>', '스캔 종료 날짜 (YYYY-MM-DD)', 'HEAD')
|
|
30
|
+
.option('-l, --limit <number>', '스캔할 최대 커밋 수', '1000')
|
|
31
|
+
.option('-d, --dry-run', '실제 업데이트 없이 결과만 표시')
|
|
32
|
+
.option('-f, --feature <id>', '특정 Feature ID만 스캔')
|
|
33
|
+
.option('-c, --create-missing', '누락된 Feature 파일 자동 생성')
|
|
34
|
+
.option('-v, --verbose', '상세 로그 출력')
|
|
35
|
+
.action(async (options) => {
|
|
36
|
+
const spinner = ora();
|
|
37
|
+
|
|
38
|
+
try {
|
|
39
|
+
// Git 저장소 확인
|
|
40
|
+
if (!await isGitRepository()) {
|
|
41
|
+
console.error(chalk.red('❌ 현재 디렉토리는 Git 저장소가 아닙니다.'));
|
|
42
|
+
process.exit(1);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
console.log(chalk.cyan('🔍 Git 히스토리 스캔 시작'));
|
|
46
|
+
console.log(chalk.gray(` 기간: ${options.since} ~ ${options.until}`));
|
|
47
|
+
console.log(chalk.gray(` 최대 커밋 수: ${options.limit}`));
|
|
48
|
+
if (options.dryRun) {
|
|
49
|
+
console.log(chalk.yellow(' 🏃 Dry-run 모드 (실제 업데이트 없음)'));
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
spinner.start('Git 히스토리 분석 중...');
|
|
53
|
+
|
|
54
|
+
// Git log 명령어로 커밋 목록 가져오기
|
|
55
|
+
let gitCommand = `log --since="${options.since}"`;
|
|
56
|
+
if (options.until !== 'HEAD') {
|
|
57
|
+
gitCommand += ` --until="${options.until}"`;
|
|
58
|
+
}
|
|
59
|
+
gitCommand += ` --max-count=${options.limit} --pretty=format:"%H"`;
|
|
60
|
+
|
|
61
|
+
if (options.feature) {
|
|
62
|
+
gitCommand += ` --grep="${options.feature}"`;
|
|
63
|
+
} else {
|
|
64
|
+
gitCommand += ` --grep="FL[0-9]\\{3\\}"`;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
const commitHashes = await runGitCommand(gitCommand);
|
|
68
|
+
|
|
69
|
+
if (!commitHashes) {
|
|
70
|
+
spinner.warn(chalk.yellow('Feature 관련 커밋을 찾을 수 없습니다.'));
|
|
71
|
+
return;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
const hashes = commitHashes.split('\n').filter(Boolean);
|
|
75
|
+
spinner.succeed(chalk.green(`${hashes.length}개의 관련 커밋 발견`));
|
|
76
|
+
|
|
77
|
+
// 커밋 분석 및 Feature별 그룹화
|
|
78
|
+
spinner.start('커밋 분석 중...');
|
|
79
|
+
const { getCommitInfo } = require('../utils/git-utils');
|
|
80
|
+
const featureCommitMap = {};
|
|
81
|
+
const missingFeatures = new Set();
|
|
82
|
+
|
|
83
|
+
for (const hash of hashes) {
|
|
84
|
+
const commitInfo = await getCommitInfo(hash);
|
|
85
|
+
|
|
86
|
+
for (const featureId of commitInfo.featureIds) {
|
|
87
|
+
if (options.feature && featureId !== options.feature) {
|
|
88
|
+
continue;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
if (!featureCommitMap[featureId]) {
|
|
92
|
+
featureCommitMap[featureId] = [];
|
|
93
|
+
}
|
|
94
|
+
featureCommitMap[featureId].push(commitInfo);
|
|
95
|
+
|
|
96
|
+
// Feature 파일 존재 확인
|
|
97
|
+
const featureFile = await findFeatureFile(featureId);
|
|
98
|
+
if (!featureFile) {
|
|
99
|
+
missingFeatures.add(featureId);
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
spinner.succeed(chalk.green('커밋 분석 완료'));
|
|
105
|
+
|
|
106
|
+
// 분석 결과 출력
|
|
107
|
+
console.log(chalk.cyan('\n📊 스캔 결과:'));
|
|
108
|
+
console.log(chalk.white(` 발견된 Feature: ${Object.keys(featureCommitMap).length}개`));
|
|
109
|
+
console.log(chalk.white(` 총 커밋 수: ${hashes.length}개`));
|
|
110
|
+
|
|
111
|
+
if (missingFeatures.size > 0) {
|
|
112
|
+
console.log(chalk.yellow(` 누락된 Feature: ${missingFeatures.size}개`));
|
|
113
|
+
if (options.verbose) {
|
|
114
|
+
console.log(chalk.gray(` ${[...missingFeatures].join(', ')}`));
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
// Feature별 상세 정보
|
|
119
|
+
console.log(chalk.cyan('\n📋 Feature별 커밋 수:'));
|
|
120
|
+
for (const [featureId, commits] of Object.entries(featureCommitMap)) {
|
|
121
|
+
const isMissing = missingFeatures.has(featureId);
|
|
122
|
+
const statusIcon = isMissing ? '❌' : '✅';
|
|
123
|
+
const statusText = isMissing ? ' (파일 없음)' : '';
|
|
124
|
+
console.log(chalk.white(` ${statusIcon} ${featureId}: ${commits.length}개 커밋${statusText}`));
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
// 누락된 Feature 파일 생성 (옵션)
|
|
128
|
+
if (options.createMissing && missingFeatures.size > 0 && !options.dryRun) {
|
|
129
|
+
console.log(chalk.cyan('\n📝 누락된 Feature 파일 생성 중...'));
|
|
130
|
+
|
|
131
|
+
for (const featureId of missingFeatures) {
|
|
132
|
+
spinner.start(`${featureId} 파일 생성 중...`);
|
|
133
|
+
|
|
134
|
+
try {
|
|
135
|
+
// Feature 파일 생성
|
|
136
|
+
const featureDir = path.join(process.cwd(), '.aiwf', '06_FEATURE_LEDGERS', 'active');
|
|
137
|
+
await fs.mkdir(featureDir, { recursive: true });
|
|
138
|
+
|
|
139
|
+
const fileName = `${featureId}_Auto_Generated.md`;
|
|
140
|
+
const filePath = path.join(featureDir, fileName);
|
|
141
|
+
|
|
142
|
+
const content = `---
|
|
143
|
+
feature_id: ${featureId}
|
|
144
|
+
title: Auto Generated Feature
|
|
145
|
+
status: active
|
|
146
|
+
created_date: ${new Date().toISOString().substring(0, 10)}
|
|
147
|
+
last_updated: ${new Date().toISOString().replace('T', ' ').substring(0, 16)}
|
|
148
|
+
milestone: TBD
|
|
149
|
+
sprint_ids: []
|
|
150
|
+
tasks: []
|
|
151
|
+
assignee: TBD
|
|
152
|
+
tags: [auto-generated]
|
|
153
|
+
---
|
|
154
|
+
|
|
155
|
+
# Feature: Auto Generated Feature
|
|
156
|
+
|
|
157
|
+
## Overview
|
|
158
|
+
이 Feature는 Git 히스토리 스캔 중 자동으로 생성되었습니다.
|
|
159
|
+
커밋 메시지에서 ${featureId} 참조가 발견되었지만 해당 Feature 파일이 없어 생성되었습니다.
|
|
160
|
+
|
|
161
|
+
## Requirements
|
|
162
|
+
- [ ] 실제 요구사항으로 업데이트 필요
|
|
163
|
+
|
|
164
|
+
## Git History
|
|
165
|
+
### Commits
|
|
166
|
+
`;
|
|
167
|
+
|
|
168
|
+
await fs.writeFile(filePath, content, 'utf8');
|
|
169
|
+
spinner.succeed(chalk.green(`✅ ${featureId} 파일 생성 완료`));
|
|
170
|
+
|
|
171
|
+
// missingFeatures에서 제거
|
|
172
|
+
missingFeatures.delete(featureId);
|
|
173
|
+
} catch (error) {
|
|
174
|
+
spinner.fail(chalk.red(`❌ ${featureId} 파일 생성 실패: ${error.message}`));
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
// Feature 업데이트
|
|
180
|
+
if (!options.dryRun) {
|
|
181
|
+
console.log(chalk.cyan('\n🔄 Feature 파일 업데이트 중...'));
|
|
182
|
+
|
|
183
|
+
let successCount = 0;
|
|
184
|
+
let failCount = 0;
|
|
185
|
+
|
|
186
|
+
for (const [featureId, commits] of Object.entries(featureCommitMap)) {
|
|
187
|
+
if (missingFeatures.has(featureId)) {
|
|
188
|
+
continue;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
spinner.start(`${featureId} 업데이트 중 (${commits.length}개 커밋)...`);
|
|
192
|
+
|
|
193
|
+
try {
|
|
194
|
+
const { updateFeatureWithCommits } = require('../utils/feature-updater');
|
|
195
|
+
const success = await updateFeatureWithCommits(featureId, commits);
|
|
196
|
+
|
|
197
|
+
if (success) {
|
|
198
|
+
spinner.succeed(chalk.green(`✅ ${featureId} 업데이트 완료`));
|
|
199
|
+
successCount++;
|
|
200
|
+
} else {
|
|
201
|
+
spinner.fail(chalk.red(`❌ ${featureId} 업데이트 실패`));
|
|
202
|
+
failCount++;
|
|
203
|
+
}
|
|
204
|
+
} catch (error) {
|
|
205
|
+
spinner.fail(chalk.red(`❌ ${featureId} 업데이트 중 오류: ${error.message}`));
|
|
206
|
+
failCount++;
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
console.log(chalk.cyan('\n✨ 업데이트 완료!'));
|
|
211
|
+
console.log(chalk.green(` 성공: ${successCount}개`));
|
|
212
|
+
if (failCount > 0) {
|
|
213
|
+
console.log(chalk.red(` 실패: ${failCount}개`));
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
// 추가 권장사항
|
|
218
|
+
if (missingFeatures.size > 0 && !options.createMissing) {
|
|
219
|
+
console.log(chalk.yellow('\n💡 팁:'));
|
|
220
|
+
console.log(chalk.gray(' --create-missing 옵션을 사용하면 누락된 Feature 파일을 자동으로 생성할 수 있습니다.'));
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
} catch (error) {
|
|
224
|
+
spinner.fail(chalk.red('스캔 중 오류 발생'));
|
|
225
|
+
console.error(chalk.red(error.message));
|
|
226
|
+
if (options.verbose) {
|
|
227
|
+
console.error(error.stack);
|
|
228
|
+
}
|
|
229
|
+
process.exit(1);
|
|
230
|
+
}
|
|
231
|
+
});
|
|
232
|
+
|
|
233
|
+
// 명령어 실행
|
|
234
|
+
program.parse(process.argv);
|
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
const { Command } = require('commander');
|
|
4
|
+
const chalk = require('chalk');
|
|
5
|
+
const ora = require('ora');
|
|
6
|
+
const {
|
|
7
|
+
syncFeatureWithGit,
|
|
8
|
+
syncAllActiveFeatures,
|
|
9
|
+
findFeatureFile
|
|
10
|
+
} = require('../utils/feature-updater');
|
|
11
|
+
const {
|
|
12
|
+
getFeatureRelatedCommits,
|
|
13
|
+
isGitRepository,
|
|
14
|
+
getRecentFeatureCommits
|
|
15
|
+
} = require('../utils/git-utils');
|
|
16
|
+
|
|
17
|
+
const program = new Command();
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* sync_feature_commits 명령어
|
|
21
|
+
* Feature Ledger와 Git 커밋을 동기화
|
|
22
|
+
*/
|
|
23
|
+
|
|
24
|
+
program
|
|
25
|
+
.name('sync_feature_commits')
|
|
26
|
+
.description('Feature Ledger와 Git 커밋 히스토리를 동기화합니다')
|
|
27
|
+
.argument('[featureId]', 'Feature ID (예: FL001). 생략 시 모든 활성 Feature 동기화')
|
|
28
|
+
.option('-s, --since <date>', '특정 날짜 이후의 커밋만 동기화 (YYYY-MM-DD)')
|
|
29
|
+
.option('-r, --recent <count>', '최근 N개의 커밋에서 Feature 관련 커밋 찾기', '50')
|
|
30
|
+
.option('-a, --all', '모든 활성 Feature를 동기화')
|
|
31
|
+
.option('-v, --verbose', '상세 로그 출력')
|
|
32
|
+
.action(async (featureId, options) => {
|
|
33
|
+
const spinner = ora();
|
|
34
|
+
|
|
35
|
+
try {
|
|
36
|
+
// Git 저장소 확인
|
|
37
|
+
if (!await isGitRepository()) {
|
|
38
|
+
console.error(chalk.red('❌ 현재 디렉토리는 Git 저장소가 아닙니다.'));
|
|
39
|
+
process.exit(1);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
// 특정 Feature ID가 제공된 경우
|
|
43
|
+
if (featureId && !options.all) {
|
|
44
|
+
spinner.start(`${featureId} Feature와 Git 커밋 동기화 중...`);
|
|
45
|
+
|
|
46
|
+
// Feature 파일 존재 확인
|
|
47
|
+
const featureFile = await findFeatureFile(featureId);
|
|
48
|
+
if (!featureFile) {
|
|
49
|
+
spinner.fail(chalk.red(`Feature 파일을 찾을 수 없습니다: ${featureId}`));
|
|
50
|
+
process.exit(1);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
const result = await syncFeatureWithGit(featureId);
|
|
54
|
+
|
|
55
|
+
if (result.success) {
|
|
56
|
+
spinner.succeed(chalk.green(
|
|
57
|
+
`✅ ${featureId} 동기화 완료! (${result.commitCount}개 커밋 연결됨)`
|
|
58
|
+
));
|
|
59
|
+
|
|
60
|
+
if (options.verbose && result.commitCount > 0) {
|
|
61
|
+
console.log(chalk.gray(`\n연결된 커밋 수: ${result.commitCount}`));
|
|
62
|
+
}
|
|
63
|
+
} else {
|
|
64
|
+
spinner.fail(chalk.red(`❌ ${featureId} 동기화 실패`));
|
|
65
|
+
process.exit(1);
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
// 모든 활성 Feature 동기화
|
|
69
|
+
else if (options.all || !featureId) {
|
|
70
|
+
spinner.start('모든 활성 Feature와 Git 커밋 동기화 중...');
|
|
71
|
+
|
|
72
|
+
const results = await syncAllActiveFeatures();
|
|
73
|
+
|
|
74
|
+
spinner.succeed(chalk.green('✅ 동기화 완료!'));
|
|
75
|
+
console.log(chalk.cyan(`\n📊 동기화 결과:`));
|
|
76
|
+
console.log(chalk.white(` 총 Feature: ${results.total}`));
|
|
77
|
+
console.log(chalk.green(` 성공: ${results.synced}`));
|
|
78
|
+
if (results.failed > 0) {
|
|
79
|
+
console.log(chalk.red(` 실패: ${results.failed}`));
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
// 최근 커밋에서 Feature 관련 커밋 찾기 (옵션)
|
|
84
|
+
if (options.recent) {
|
|
85
|
+
spinner.start(`최근 ${options.recent}개 커밋에서 Feature 관련 커밋 검색 중...`);
|
|
86
|
+
|
|
87
|
+
const recentCommits = await getRecentFeatureCommits(parseInt(options.recent));
|
|
88
|
+
|
|
89
|
+
if (recentCommits.length > 0) {
|
|
90
|
+
spinner.succeed(chalk.green(`${recentCommits.length}개의 Feature 관련 커밋 발견`));
|
|
91
|
+
|
|
92
|
+
if (options.verbose) {
|
|
93
|
+
console.log(chalk.cyan('\n📝 Feature 관련 커밋:'));
|
|
94
|
+
recentCommits.forEach(commit => {
|
|
95
|
+
const shortHash = commit.hash.substring(0, 7);
|
|
96
|
+
const features = commit.featureIds.join(', ');
|
|
97
|
+
console.log(chalk.gray(` ${shortHash} - ${features}: ${commit.message.split('\n')[0]}`));
|
|
98
|
+
});
|
|
99
|
+
}
|
|
100
|
+
} else {
|
|
101
|
+
spinner.info(chalk.yellow('최근 커밋에서 Feature 관련 커밋을 찾을 수 없습니다.'));
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
// 특정 날짜 이후 커밋 검색 (옵션)
|
|
106
|
+
if (options.since) {
|
|
107
|
+
spinner.start(`${options.since} 이후의 Feature 관련 커밋 검색 중...`);
|
|
108
|
+
|
|
109
|
+
const commits = await getFeatureRelatedCommits(options.since);
|
|
110
|
+
|
|
111
|
+
if (commits.length > 0) {
|
|
112
|
+
spinner.succeed(chalk.green(`${commits.length}개의 Feature 관련 커밋 발견`));
|
|
113
|
+
|
|
114
|
+
// Feature별로 그룹화
|
|
115
|
+
const featureGroups = {};
|
|
116
|
+
commits.forEach(commit => {
|
|
117
|
+
commit.featureIds.forEach(featureId => {
|
|
118
|
+
if (!featureGroups[featureId]) {
|
|
119
|
+
featureGroups[featureId] = [];
|
|
120
|
+
}
|
|
121
|
+
featureGroups[featureId].push(commit);
|
|
122
|
+
});
|
|
123
|
+
});
|
|
124
|
+
|
|
125
|
+
console.log(chalk.cyan('\n📊 Feature별 커밋 통계:'));
|
|
126
|
+
Object.entries(featureGroups).forEach(([featureId, commits]) => {
|
|
127
|
+
console.log(chalk.white(` ${featureId}: ${commits.length}개 커밋`));
|
|
128
|
+
});
|
|
129
|
+
} else {
|
|
130
|
+
spinner.info(chalk.yellow(`${options.since} 이후 Feature 관련 커밋이 없습니다.`));
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
// 도움말 메시지
|
|
135
|
+
if (!featureId && !options.all && !options.recent && !options.since) {
|
|
136
|
+
console.log(chalk.cyan('\n💡 사용 예시:'));
|
|
137
|
+
console.log(chalk.gray(' sync_feature_commits FL001 # 특정 Feature 동기화'));
|
|
138
|
+
console.log(chalk.gray(' sync_feature_commits --all # 모든 활성 Feature 동기화'));
|
|
139
|
+
console.log(chalk.gray(' sync_feature_commits --recent 100 # 최근 100개 커밋에서 Feature 찾기'));
|
|
140
|
+
console.log(chalk.gray(' sync_feature_commits --since 2025-01-01 # 특정 날짜 이후 커밋 검색'));
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
} catch (error) {
|
|
144
|
+
spinner.fail(chalk.red('동기화 중 오류 발생'));
|
|
145
|
+
console.error(chalk.red(error.message));
|
|
146
|
+
if (options.verbose) {
|
|
147
|
+
console.error(error.stack);
|
|
148
|
+
}
|
|
149
|
+
process.exit(1);
|
|
150
|
+
}
|
|
151
|
+
});
|
|
152
|
+
|
|
153
|
+
// 명령어 실행
|
|
154
|
+
program.parse(process.argv);
|