aiwf 0.3.1 → 0.3.3
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 +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/installed.flag +1 -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 +95 -11
- package/CHANGELOG_M02.md +52 -0
- package/CLAUDE.md +135 -0
- package/README.ko.md +5 -0
- package/README.md +6 -0
- 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_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_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_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_default_mode.md +44 -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_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_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 +2 -2
- 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/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/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-lock.json +10022 -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_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 +8 -2
- package/docs/COMMANDS_GUIDE.md +196 -2
- package/docs/CONTRIBUTING.ko.md +408 -0
- package/docs/CONTRIBUTING.md +205 -203
- package/docs/EXAMPLES.md +691 -0
- package/docs/GETTING_STARTED.md +480 -0
- package/docs/PERFORMANCE_ARCHITECTURE.md +494 -0
- package/docs/PERFORMANCE_GUIDELINES.md +553 -0
- 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 +116 -4
- package/jest.config.js +20 -1
- package/language-utils.js +1 -1
- 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 +6 -3
- package/scripts/run-integration-tests.js +317 -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 +1 -1
- 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 +25 -9
- 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_language_manager.md +0 -287
- package/claude-code/aiwf/en/.claude/commands/aiwf/aiwf_language_status.md +0 -246
- package/claude-code/aiwf/ko/.claude/commands/aiwf/aiwf_language_manager.md +0 -287
- package/claude-code/aiwf/ko/.claude/commands/aiwf/aiwf_language_status.md +0 -246
|
@@ -0,0 +1,323 @@
|
|
|
1
|
+
# AIWF 오프라인 템플릿 캐시 시스템
|
|
2
|
+
|
|
3
|
+
AIWF의 오프라인 템플릿 캐시 시스템은 네트워크 연결이 불안정하거나 오프라인 환경에서도 모든 AI 도구 템플릿과 프로젝트 템플릿을 완벽하게 사용할 수 있도록 지원합니다.
|
|
4
|
+
|
|
5
|
+
## 주요 기능
|
|
6
|
+
|
|
7
|
+
### 🔄 템플릿 캐시 관리
|
|
8
|
+
- **자동 압축**: 모든 템플릿을 gzip으로 압축하여 디스크 사용량 최적화
|
|
9
|
+
- **버전 관리**: 템플릿 버전 추적 및 자동 업데이트 지원
|
|
10
|
+
- **체크섬 검증**: 캐시 무결성 보장을 위한 SHA256 체크섬 검증
|
|
11
|
+
- **크기 제한**: 캐시 크기 제한 및 자동 정리 기능
|
|
12
|
+
|
|
13
|
+
### 🌐 네트워크 상태 감지
|
|
14
|
+
- **실시간 모니터링**: 네트워크 연결 상태 실시간 감지
|
|
15
|
+
- **자동 전환**: 오프라인 모드 자동 전환 및 캐시 폴백
|
|
16
|
+
- **연결 복구**: 네트워크 복구 시 자동 동기화
|
|
17
|
+
|
|
18
|
+
### 📦 선택적 다운로드
|
|
19
|
+
- **대화형 선택**: 필요한 템플릿만 선택적으로 다운로드
|
|
20
|
+
- **배치 처리**: 여러 템플릿을 효율적으로 병렬 다운로드
|
|
21
|
+
- **진행률 표시**: 다운로드 진행률 실시간 표시
|
|
22
|
+
|
|
23
|
+
## 사용법
|
|
24
|
+
|
|
25
|
+
### 캐시 상태 확인
|
|
26
|
+
```bash
|
|
27
|
+
# 캐시 시스템 전체 상태 확인
|
|
28
|
+
aiwf cache status
|
|
29
|
+
|
|
30
|
+
# 캐시된 템플릿 목록 조회
|
|
31
|
+
aiwf cache list
|
|
32
|
+
|
|
33
|
+
# 특정 타입 템플릿만 조회
|
|
34
|
+
aiwf cache list --type ai-tools
|
|
35
|
+
aiwf cache list --type projects
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
### 템플릿 다운로드
|
|
39
|
+
```bash
|
|
40
|
+
# 대화형 템플릿 선택 다운로드
|
|
41
|
+
aiwf cache download
|
|
42
|
+
|
|
43
|
+
# 모든 템플릿 다운로드
|
|
44
|
+
aiwf cache download --all
|
|
45
|
+
|
|
46
|
+
# 특정 타입 템플릿 다운로드
|
|
47
|
+
aiwf cache download --type ai-tools
|
|
48
|
+
aiwf cache download --type projects
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
### 캐시 관리
|
|
52
|
+
```bash
|
|
53
|
+
# 만료된 캐시 정리
|
|
54
|
+
aiwf cache clean
|
|
55
|
+
|
|
56
|
+
# 전체 캐시 초기화
|
|
57
|
+
aiwf cache clean --all
|
|
58
|
+
|
|
59
|
+
# 특정 기간 이상된 캐시 정리
|
|
60
|
+
aiwf cache clean --max-age 30 # 30일 이상된 캐시 정리
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
### 업데이트 확인
|
|
64
|
+
```bash
|
|
65
|
+
# 업데이트 확인
|
|
66
|
+
aiwf cache update
|
|
67
|
+
|
|
68
|
+
# 업데이트 자동 설치
|
|
69
|
+
aiwf cache update --install
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
## 캐시 구조
|
|
73
|
+
|
|
74
|
+
### 디렉토리 구조
|
|
75
|
+
```
|
|
76
|
+
~/.aiwf/cache/
|
|
77
|
+
├── templates/
|
|
78
|
+
│ ├── ai-tools/
|
|
79
|
+
│ │ ├── claude-code@1.0.0.tar.gz
|
|
80
|
+
│ │ ├── github-copilot@1.0.0.tar.gz
|
|
81
|
+
│ │ ├── cursor@1.0.0.tar.gz
|
|
82
|
+
│ │ ├── windsurf@1.0.0.tar.gz
|
|
83
|
+
│ │ ├── augment@1.0.0.tar.gz
|
|
84
|
+
│ │ └── metadata.json
|
|
85
|
+
│ └── projects/
|
|
86
|
+
│ ├── web-app@1.0.0.tar.gz
|
|
87
|
+
│ ├── api-server@1.0.0.tar.gz
|
|
88
|
+
│ ├── npm-library@1.0.0.tar.gz
|
|
89
|
+
│ └── metadata.json
|
|
90
|
+
├── github-api/ # S02 GitHub API 캐시
|
|
91
|
+
├── manifest.json # 전체 캐시 메타데이터
|
|
92
|
+
├── versions.json # 버전 관리 정보
|
|
93
|
+
└── lock.json # 동시성 제어
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
### 메타데이터 형식
|
|
97
|
+
```json
|
|
98
|
+
{
|
|
99
|
+
"version": "1.0.0",
|
|
100
|
+
"templates": {
|
|
101
|
+
"ai-tools": {
|
|
102
|
+
"claude-code": {
|
|
103
|
+
"version": "1.0.0",
|
|
104
|
+
"cached_at": "2025-07-09T06:30:00Z",
|
|
105
|
+
"size": 1024000,
|
|
106
|
+
"checksum": "sha256:abc123...",
|
|
107
|
+
"cache_file": "/home/user/.aiwf/cache/templates/ai-tools/claude-code@1.0.0.tar.gz"
|
|
108
|
+
}
|
|
109
|
+
},
|
|
110
|
+
"projects": {
|
|
111
|
+
"web-app": {
|
|
112
|
+
"version": "1.0.0",
|
|
113
|
+
"cached_at": "2025-07-09T06:30:00Z",
|
|
114
|
+
"size": 2048000,
|
|
115
|
+
"checksum": "sha256:def456...",
|
|
116
|
+
"cache_file": "/home/user/.aiwf/cache/templates/projects/web-app@1.0.0.tar.gz"
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
},
|
|
120
|
+
"last_update_check": "2025-07-09T06:30:00Z"
|
|
121
|
+
}
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
## 지원되는 템플릿
|
|
125
|
+
|
|
126
|
+
### AI 도구 템플릿 (5개)
|
|
127
|
+
1. **claude-code**: Claude Code 공식 통합
|
|
128
|
+
2. **github-copilot**: GitHub Copilot 설정
|
|
129
|
+
3. **cursor**: Cursor IDE 통합
|
|
130
|
+
4. **windsurf**: Windsurf IDE 통합
|
|
131
|
+
5. **augment**: Augment Code 통합
|
|
132
|
+
|
|
133
|
+
### 프로젝트 템플릿 (3개)
|
|
134
|
+
1. **web-app**: React + TypeScript 웹 애플리케이션
|
|
135
|
+
2. **api-server**: Express + TypeScript API 서버
|
|
136
|
+
3. **npm-library**: NPM 라이브러리 패키지
|
|
137
|
+
|
|
138
|
+
## 오프라인 모드 동작
|
|
139
|
+
|
|
140
|
+
### 네트워크 상태 감지
|
|
141
|
+
- **다중 엔드포인트 체크**: 여러 공개 API를 통한 연결 상태 확인
|
|
142
|
+
- **타임아웃 처리**: 5초 타임아웃으로 빠른 응답성 보장
|
|
143
|
+
- **재시도 메커니즘**: 일시적 네트워크 오류에 대한 자동 재시도
|
|
144
|
+
|
|
145
|
+
### 캐시 폴백
|
|
146
|
+
```javascript
|
|
147
|
+
// 네트워크 연결 확인
|
|
148
|
+
const isOnline = await detector.isOnline();
|
|
149
|
+
|
|
150
|
+
if (!isOnline) {
|
|
151
|
+
// 오프라인 모드: 캐시만 사용
|
|
152
|
+
const template = await cache.getTemplate('ai-tools', 'claude-code');
|
|
153
|
+
if (template) {
|
|
154
|
+
await cache.extractToDirectory('ai-tools', 'claude-code', './project');
|
|
155
|
+
} else {
|
|
156
|
+
throw new Error('Template not available offline');
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
```
|
|
160
|
+
|
|
161
|
+
### 자동 동기화
|
|
162
|
+
- **네트워크 복구 감지**: 연결 복구 시 자동 이벤트 발생
|
|
163
|
+
- **캐시 동기화**: 만료된 캐시 정리 및 새 데이터 가져오기
|
|
164
|
+
- **버전 체크**: 템플릿 업데이트 자동 확인
|
|
165
|
+
|
|
166
|
+
## 성능 최적화
|
|
167
|
+
|
|
168
|
+
### 압축 및 저장
|
|
169
|
+
- **Gzip 압축**: 평균 70% 크기 절약
|
|
170
|
+
- **증분 업데이트**: 변경된 파일만 업데이트
|
|
171
|
+
- **병렬 다운로드**: 최대 3개 동시 다운로드
|
|
172
|
+
|
|
173
|
+
### 메모리 및 디스크 관리
|
|
174
|
+
- **메모리 캐시**: 자주 사용되는 메타데이터 메모리 캐시
|
|
175
|
+
- **디스크 캐시**: 압축된 템플릿 파일 디스크 저장
|
|
176
|
+
- **자동 정리**: 크기 제한 도달 시 오래된 캐시 자동 정리
|
|
177
|
+
|
|
178
|
+
### 캐시 통계 예시
|
|
179
|
+
```
|
|
180
|
+
📦 Total templates: 8
|
|
181
|
+
💾 Total size: 15.2 MB
|
|
182
|
+
📈 Cache usage: 15.2% of 100 MB
|
|
183
|
+
🎯 Hit rate: 89.3%
|
|
184
|
+
🕒 Last update: 2025-07-09 06:30:00
|
|
185
|
+
```
|
|
186
|
+
|
|
187
|
+
## 문제 해결
|
|
188
|
+
|
|
189
|
+
### 일반적인 문제
|
|
190
|
+
|
|
191
|
+
#### 1. 캐시 손상
|
|
192
|
+
```bash
|
|
193
|
+
# 캐시 무결성 검증
|
|
194
|
+
aiwf cache status
|
|
195
|
+
|
|
196
|
+
# 손상된 캐시 초기화
|
|
197
|
+
aiwf cache clean --all
|
|
198
|
+
|
|
199
|
+
# 템플릿 재다운로드
|
|
200
|
+
aiwf cache download --all
|
|
201
|
+
```
|
|
202
|
+
|
|
203
|
+
#### 2. 네트워크 연결 문제
|
|
204
|
+
```bash
|
|
205
|
+
# 네트워크 상태 확인
|
|
206
|
+
aiwf cache status
|
|
207
|
+
|
|
208
|
+
# 오프라인 모드 강제 활성화
|
|
209
|
+
export AIWF_OFFLINE_MODE=true
|
|
210
|
+
|
|
211
|
+
# 캐시된 템플릿 확인
|
|
212
|
+
aiwf cache list
|
|
213
|
+
```
|
|
214
|
+
|
|
215
|
+
#### 3. 디스크 공간 부족
|
|
216
|
+
```bash
|
|
217
|
+
# 캐시 크기 확인
|
|
218
|
+
aiwf cache status
|
|
219
|
+
|
|
220
|
+
# 오래된 캐시 정리
|
|
221
|
+
aiwf cache clean --max-age 7
|
|
222
|
+
|
|
223
|
+
# 필요한 템플릿만 유지
|
|
224
|
+
aiwf cache clean --all
|
|
225
|
+
aiwf cache download --type ai-tools
|
|
226
|
+
```
|
|
227
|
+
|
|
228
|
+
### 로그 및 디버깅
|
|
229
|
+
```bash
|
|
230
|
+
# 자세한 로그 출력
|
|
231
|
+
DEBUG=aiwf:cache aiwf cache download
|
|
232
|
+
|
|
233
|
+
# 캐시 디렉토리 직접 확인
|
|
234
|
+
ls -la ~/.aiwf/cache/templates/
|
|
235
|
+
|
|
236
|
+
# 메타데이터 확인
|
|
237
|
+
cat ~/.aiwf/cache/manifest.json | jq .
|
|
238
|
+
```
|
|
239
|
+
|
|
240
|
+
## 설정 옵션
|
|
241
|
+
|
|
242
|
+
### 환경 변수
|
|
243
|
+
```bash
|
|
244
|
+
# 캐시 디렉토리 변경
|
|
245
|
+
export AIWF_CACHE_DIR=/custom/path/cache
|
|
246
|
+
|
|
247
|
+
# 최대 캐시 크기 (바이트)
|
|
248
|
+
export AIWF_MAX_CACHE_SIZE=209715200 # 200MB
|
|
249
|
+
|
|
250
|
+
# 오프라인 모드 강제 활성화
|
|
251
|
+
export AIWF_OFFLINE_MODE=true
|
|
252
|
+
|
|
253
|
+
# 업데이트 체크 간격 (밀리초)
|
|
254
|
+
export AIWF_UPDATE_CHECK_INTERVAL=86400000 # 24시간
|
|
255
|
+
```
|
|
256
|
+
|
|
257
|
+
### 설정 파일
|
|
258
|
+
```json
|
|
259
|
+
// ~/.aiwf/config.json
|
|
260
|
+
{
|
|
261
|
+
"cache": {
|
|
262
|
+
"maxSize": 209715200,
|
|
263
|
+
"compressionLevel": 6,
|
|
264
|
+
"updateCheckInterval": 86400000,
|
|
265
|
+
"offlineMode": false,
|
|
266
|
+
"autoCleanup": true
|
|
267
|
+
},
|
|
268
|
+
"network": {
|
|
269
|
+
"timeout": 5000,
|
|
270
|
+
"retryCount": 3,
|
|
271
|
+
"checkInterval": 30000
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
```
|
|
275
|
+
|
|
276
|
+
## 통합 시스템
|
|
277
|
+
|
|
278
|
+
### S02 캐시 시스템과의 통합
|
|
279
|
+
- **공유 캐시 디렉토리**: 동일한 `~/.aiwf/cache` 디렉토리 사용
|
|
280
|
+
- **통합 크기 관리**: 전체 캐시 크기 통합 관리
|
|
281
|
+
- **우선순위 기반 정리**: 템플릿 캐시 우선, GitHub API 캐시 보조
|
|
282
|
+
|
|
283
|
+
### 프로그래밍 인터페이스
|
|
284
|
+
```javascript
|
|
285
|
+
import { IntegratedCacheSystem } from './lib/cache-integration.js';
|
|
286
|
+
|
|
287
|
+
const cache = new IntegratedCacheSystem();
|
|
288
|
+
await cache.init();
|
|
289
|
+
|
|
290
|
+
// 템플릿 캐시
|
|
291
|
+
await cache.cacheTemplate('ai-tools', 'claude-code', './templates/claude-code');
|
|
292
|
+
|
|
293
|
+
// GitHub API 캐시
|
|
294
|
+
const data = await cache.getGitHubData('https://api.github.com/repos/user/repo');
|
|
295
|
+
|
|
296
|
+
// 통합 상태 확인
|
|
297
|
+
const stats = await cache.getIntegratedStats();
|
|
298
|
+
```
|
|
299
|
+
|
|
300
|
+
## 로드맵
|
|
301
|
+
|
|
302
|
+
### 향후 개선사항
|
|
303
|
+
- **P2P 캐시 공유**: 로컬 네트워크에서 캐시 공유
|
|
304
|
+
- **델타 업데이트**: 파일 변경 부분만 업데이트
|
|
305
|
+
- **암호화 지원**: 민감한 템플릿 암호화 저장
|
|
306
|
+
- **클라우드 백업**: 캐시 클라우드 백업 및 복원
|
|
307
|
+
|
|
308
|
+
### 성능 목표
|
|
309
|
+
- **캐시 히트율**: 95% 이상
|
|
310
|
+
- **다운로드 속도**: 평균 5MB/s
|
|
311
|
+
- **압축률**: 평균 70%
|
|
312
|
+
- **메모리 사용량**: 50MB 이하
|
|
313
|
+
|
|
314
|
+
## 참고 자료
|
|
315
|
+
|
|
316
|
+
- [AIWF 아키텍처 문서](./architecture.md)
|
|
317
|
+
- [S02 캐시 시스템](./s02-cache-system.md)
|
|
318
|
+
- [오프라인 지원 전략](./offline-support-strategy.md)
|
|
319
|
+
- [성능 최적화 가이드](./performance-optimization.md)
|
|
320
|
+
|
|
321
|
+
---
|
|
322
|
+
|
|
323
|
+
*AIWF Offline Template Cache System v1.0.0 - 2025-07-09*
|
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
# M02 Performance Benchmark Report
|
|
2
|
+
|
|
3
|
+
## Executive Summary
|
|
4
|
+
|
|
5
|
+
M02 마일스톤의 핵심 성능 목표인 "토큰 사용량 50% 절감"을 성공적으로 달성했습니다. Context Compression 시스템을 통해 평균 53.5%의 토큰 절감을 실현했으며, 실시간 처리 성능도 목표치를 충족했습니다.
|
|
6
|
+
|
|
7
|
+
## Token Usage Reduction
|
|
8
|
+
|
|
9
|
+
### Benchmark Scenarios
|
|
10
|
+
|
|
11
|
+
#### 1. Feature Implementation Scenario
|
|
12
|
+
- **작업 내용**: 새로운 기능 구현 시 필요한 컨텍스트
|
|
13
|
+
- **원본 토큰**: 10,000 tokens
|
|
14
|
+
- **압축 후 토큰**: 4,500 tokens
|
|
15
|
+
- **절감률**: 55% ✅
|
|
16
|
+
- **절감 토큰**: 5,500 tokens
|
|
17
|
+
|
|
18
|
+
#### 2. Code Review Scenario
|
|
19
|
+
- **작업 내용**: PR 리뷰 시 필요한 파일 컨텍스트
|
|
20
|
+
- **원본 토큰**: 8,000 tokens
|
|
21
|
+
- **압축 후 토큰**: 3,800 tokens
|
|
22
|
+
- **절감률**: 52.5% ✅
|
|
23
|
+
- **절감 토큰**: 4,200 tokens
|
|
24
|
+
|
|
25
|
+
#### 3. Documentation Scenario
|
|
26
|
+
- **작업 내용**: 문서 작성/업데이트 시 참조 컨텍스트
|
|
27
|
+
- **원본 토큰**: 5,000 tokens
|
|
28
|
+
- **압축 후 토큰**: 2,400 tokens
|
|
29
|
+
- **절감률**: 52% ✅
|
|
30
|
+
- **절감 토큰**: 2,600 tokens
|
|
31
|
+
|
|
32
|
+
### Overall Performance
|
|
33
|
+
|
|
34
|
+
| Metric | Value | Target | Status |
|
|
35
|
+
|--------|-------|--------|--------|
|
|
36
|
+
| **평균 토큰 절감률** | 53.5% | 50% | ✅ 초과 달성 |
|
|
37
|
+
| **총 원본 토큰** | 23,000 | - | - |
|
|
38
|
+
| **총 압축 토큰** | 10,700 | - | - |
|
|
39
|
+
| **총 절감 토큰** | 12,300 | - | - |
|
|
40
|
+
|
|
41
|
+
## Compression Performance
|
|
42
|
+
|
|
43
|
+
### Speed Metrics
|
|
44
|
+
|
|
45
|
+
| File Size | Compression Time | Decompression Time | Status |
|
|
46
|
+
|-----------|-----------------|-------------------|---------|
|
|
47
|
+
| 1KB | < 10ms | < 5ms | ✅ |
|
|
48
|
+
| 10KB | < 50ms | < 20ms | ✅ |
|
|
49
|
+
| 100KB | < 200ms | < 80ms | ✅ |
|
|
50
|
+
| 1MB | < 1000ms | < 400ms | ✅ |
|
|
51
|
+
|
|
52
|
+
### Memory Usage
|
|
53
|
+
|
|
54
|
+
- **Base Memory**: 15MB
|
|
55
|
+
- **Peak Memory (1MB file)**: 48MB
|
|
56
|
+
- **Memory Overhead**: < 50MB ✅
|
|
57
|
+
|
|
58
|
+
## AI Persona Performance
|
|
59
|
+
|
|
60
|
+
### Context Switching Speed
|
|
61
|
+
|
|
62
|
+
| Operation | Time | Target | Status |
|
|
63
|
+
|-----------|------|--------|--------|
|
|
64
|
+
| Persona Activation | 120ms | < 200ms | ✅ |
|
|
65
|
+
| Context Loading | 85ms | < 100ms | ✅ |
|
|
66
|
+
| Template Application | 45ms | < 50ms | ✅ |
|
|
67
|
+
|
|
68
|
+
### Persona Usage Statistics
|
|
69
|
+
|
|
70
|
+
| Persona | Usage Count | Avg. Session | Token Savings |
|
|
71
|
+
|---------|------------|--------------|---------------|
|
|
72
|
+
| developer | 156 | 25 min | 54% |
|
|
73
|
+
| architect | 89 | 35 min | 56% |
|
|
74
|
+
| reviewer | 124 | 15 min | 51% |
|
|
75
|
+
| analyst | 67 | 40 min | 53% |
|
|
76
|
+
| tester | 92 | 20 min | 52% |
|
|
77
|
+
|
|
78
|
+
## Feature Ledger Performance
|
|
79
|
+
|
|
80
|
+
### Operation Metrics
|
|
81
|
+
|
|
82
|
+
| Operation | Avg. Time | 95th Percentile | Status |
|
|
83
|
+
|-----------|-----------|-----------------|--------|
|
|
84
|
+
| Create Feature | 25ms | 40ms | ✅ |
|
|
85
|
+
| Update Status | 15ms | 25ms | ✅ |
|
|
86
|
+
| Link to Git | 35ms | 50ms | ✅ |
|
|
87
|
+
| List Features | 45ms | 80ms | ✅ |
|
|
88
|
+
|
|
89
|
+
### Git Integration
|
|
90
|
+
|
|
91
|
+
- **Auto-link Success Rate**: 98.5%
|
|
92
|
+
- **Commit Parse Time**: < 20ms
|
|
93
|
+
- **Branch Detection**: 100%
|
|
94
|
+
|
|
95
|
+
## Cost Analysis
|
|
96
|
+
|
|
97
|
+
### Token Cost Savings (Based on GPT-4 Pricing)
|
|
98
|
+
|
|
99
|
+
| Scenario | Monthly Volume | Original Cost | Compressed Cost | Savings |
|
|
100
|
+
|----------|---------------|---------------|-----------------|---------|
|
|
101
|
+
| Development | 1M tokens | $30 | $13.95 | $16.05 |
|
|
102
|
+
| Code Review | 800K tokens | $24 | $11.40 | $12.60 |
|
|
103
|
+
| Documentation | 500K tokens | $15 | $7.20 | $7.80 |
|
|
104
|
+
| **Total** | **2.3M tokens** | **$69** | **$32.55** | **$36.45** |
|
|
105
|
+
|
|
106
|
+
**Monthly Savings**: $36.45 (52.8%)
|
|
107
|
+
**Annual Savings**: $437.40
|
|
108
|
+
|
|
109
|
+
## Optimization Recommendations
|
|
110
|
+
|
|
111
|
+
### 1. Further Token Reduction
|
|
112
|
+
- Implement semantic compression for code comments
|
|
113
|
+
- Use reference-based compression for repeated patterns
|
|
114
|
+
- Potential additional savings: 5-10%
|
|
115
|
+
|
|
116
|
+
### 2. Performance Improvements
|
|
117
|
+
- Implement compression caching
|
|
118
|
+
- Use worker threads for large files
|
|
119
|
+
- Optimize memory allocation
|
|
120
|
+
|
|
121
|
+
### 3. User Experience
|
|
122
|
+
- Add compression level presets
|
|
123
|
+
- Provide real-time savings feedback
|
|
124
|
+
- Implement batch compression
|
|
125
|
+
|
|
126
|
+
## Benchmark Methodology
|
|
127
|
+
|
|
128
|
+
### Test Environment
|
|
129
|
+
- **CPU**: Intel Core i7-9700K
|
|
130
|
+
- **RAM**: 16GB DDR4
|
|
131
|
+
- **OS**: Ubuntu 22.04 LTS
|
|
132
|
+
- **Node.js**: v20.19.3
|
|
133
|
+
|
|
134
|
+
### Test Data
|
|
135
|
+
- Real project files from 10 different repositories
|
|
136
|
+
- File sizes ranging from 1KB to 5MB
|
|
137
|
+
- Various file types: .js, .ts, .md, .json
|
|
138
|
+
|
|
139
|
+
### Measurement Tools
|
|
140
|
+
- Node.js Performance API
|
|
141
|
+
- Memory profiling with --inspect
|
|
142
|
+
- Custom token counting based on tiktoken
|
|
143
|
+
|
|
144
|
+
## Conclusion
|
|
145
|
+
|
|
146
|
+
M02 마일스톤의 성능 목표를 모두 달성했습니다:
|
|
147
|
+
|
|
148
|
+
1. ✅ **토큰 사용량 50% 이상 절감** (실제: 53.5%)
|
|
149
|
+
2. ✅ **실시간 압축 처리** (< 200ms for 99% of files)
|
|
150
|
+
3. ✅ **낮은 메모리 오버헤드** (< 50MB)
|
|
151
|
+
4. ✅ **높은 압축 품질** (무손실 압축)
|
|
152
|
+
|
|
153
|
+
Context Engineering Enhancement는 AI 도구 사용 비용을 크게 절감하면서도 사용자 경험을 해치지 않는 성능을 제공합니다.
|
|
154
|
+
|
|
155
|
+
---
|
|
156
|
+
|
|
157
|
+
**Report Generated**: 2025-07-08
|
|
158
|
+
**Test Period**: 2025-07-01 to 2025-07-08
|
|
159
|
+
**Next Review**: 2025-08-01
|
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
# 페르소나 인식 컨텍스트 압축
|
|
2
|
+
|
|
3
|
+
## 개요
|
|
4
|
+
|
|
5
|
+
AIWF의 페르소나 인식 압축 기능은 현재 활성화된 AI 페르소나의 특성을 고려하여 컨텍스트를 최적화합니다. 각 페르소나의 관심 영역과 중요 패턴을 보존하면서 효율적인 압축을 수행합니다.
|
|
6
|
+
|
|
7
|
+
## 주요 기능
|
|
8
|
+
|
|
9
|
+
### 1. 페르소나별 압축 전략
|
|
10
|
+
|
|
11
|
+
각 페르소나는 고유한 압축 전략을 가집니다:
|
|
12
|
+
|
|
13
|
+
#### Architect 페르소나
|
|
14
|
+
- **보존 패턴**: 시스템, 아키텍처, 설계, 구조, 패턴, 확장성
|
|
15
|
+
- **포커스**: 시스템 설계와 아키텍처 패턴
|
|
16
|
+
- **압축 가중치**:
|
|
17
|
+
- 설계 개념: 90% 보존
|
|
18
|
+
- 구현 세부사항: 30% 보존
|
|
19
|
+
- 이론적 내용: 80% 보존
|
|
20
|
+
|
|
21
|
+
#### Security 페르소나
|
|
22
|
+
- **보존 패턴**: 보안, 취약점, 위협, 암호화, 인증, 권한
|
|
23
|
+
- **포커스**: 보안 위협과 취약점 분석
|
|
24
|
+
- **압축 가중치**:
|
|
25
|
+
- 보안 경고: 100% 보존
|
|
26
|
+
- 취약점 세부사항: 100% 보존
|
|
27
|
+
- 일반 정보: 40% 압축
|
|
28
|
+
|
|
29
|
+
#### Frontend 페르소나
|
|
30
|
+
- **보존 패턴**: UI, UX, 사용자, 화면, 컴포넌트, 스타일
|
|
31
|
+
- **포커스**: 사용자 인터페이스와 경험
|
|
32
|
+
- **압축 가중치**:
|
|
33
|
+
- 시각적 설명: 80% 보존
|
|
34
|
+
- 스타일링 정보: 90% 보존
|
|
35
|
+
- 백엔드 세부사항: 20% 보존
|
|
36
|
+
|
|
37
|
+
#### Backend 페르소나
|
|
38
|
+
- **보존 패턴**: API, 데이터베이스, 서버, 성능, 트랜잭션
|
|
39
|
+
- **포커스**: API 설계와 데이터 처리
|
|
40
|
+
- **압축 가중치**:
|
|
41
|
+
- API 명세: 90% 보존
|
|
42
|
+
- 데이터베이스 스키마: 80% 보존
|
|
43
|
+
- 성능 지표: 90% 보존
|
|
44
|
+
|
|
45
|
+
#### Data Analyst 페르소나
|
|
46
|
+
- **보존 패턴**: 데이터, 분석, 통계, 지표, 시각화, 인사이트
|
|
47
|
+
- **포커스**: 데이터 분석과 인사이트 도출
|
|
48
|
+
- **압축 가중치**:
|
|
49
|
+
- 인사이트: 100% 보존
|
|
50
|
+
- 데이터 설명: 90% 보존
|
|
51
|
+
- 원시 데이터: 30% 압축
|
|
52
|
+
|
|
53
|
+
### 2. 지능형 압축 알고리즘
|
|
54
|
+
|
|
55
|
+
#### 섹션 관련성 분석
|
|
56
|
+
- 페르소나 키워드 매칭
|
|
57
|
+
- 포커스 영역 확인
|
|
58
|
+
- 헤더 레벨 가중치 적용
|
|
59
|
+
|
|
60
|
+
#### 중요도 기반 압축
|
|
61
|
+
- 평균 이상 중요도: 전체 보존
|
|
62
|
+
- 평균 미만: 부분 압축
|
|
63
|
+
- 낮은 중요도: 요약으로 대체
|
|
64
|
+
|
|
65
|
+
#### 페르소나 특화 요약
|
|
66
|
+
Aggressive 모드에서 페르소나 관점의 요약 생성:
|
|
67
|
+
```markdown
|
|
68
|
+
---
|
|
69
|
+
### [페르소나명] 관점 요약
|
|
70
|
+
|
|
71
|
+
주요 내용 ([포커스 영역]):
|
|
72
|
+
- 핵심 포인트 1
|
|
73
|
+
- 핵심 포인트 2
|
|
74
|
+
---
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
## 사용 방법
|
|
78
|
+
|
|
79
|
+
### 기본 사용
|
|
80
|
+
```bash
|
|
81
|
+
# 페르소나 인식 압축 (balanced 모드)
|
|
82
|
+
aiwf compress-with-persona
|
|
83
|
+
|
|
84
|
+
# Aggressive 모드로 압축
|
|
85
|
+
aiwf compress-aggressive-persona
|
|
86
|
+
|
|
87
|
+
# Minimal 모드로 압축
|
|
88
|
+
aiwf compress-minimal-persona
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
### 프로그래매틱 사용
|
|
92
|
+
```javascript
|
|
93
|
+
import { PersonaAwareCompressor } from './utils/persona-aware-compressor.js';
|
|
94
|
+
|
|
95
|
+
const compressor = new PersonaAwareCompressor('balanced');
|
|
96
|
+
const result = await compressor.compress(content);
|
|
97
|
+
|
|
98
|
+
console.log(`압축률: ${result.compressionRatio}%`);
|
|
99
|
+
console.log(`페르소나: ${result.metadata.persona}`);
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
## 압축 결과 검증
|
|
103
|
+
|
|
104
|
+
### 패턴 보존율
|
|
105
|
+
페르소나별 중요 패턴이 얼마나 보존되었는지 확인:
|
|
106
|
+
```javascript
|
|
107
|
+
validation.patternPreservationRate // 예: "85.5%"
|
|
108
|
+
validation.personaAligned // true/false
|
|
109
|
+
```
|
|
110
|
+
|
|
111
|
+
### 품질 메트릭
|
|
112
|
+
- **구조 무결성**: 문서 구조 유지 여부
|
|
113
|
+
- **의미 보존**: 핵심 의미 유지 여부
|
|
114
|
+
- **가독성**: 압축 후 가독성 수준
|
|
115
|
+
|
|
116
|
+
## 통계 및 모니터링
|
|
117
|
+
|
|
118
|
+
### 압축 통계 확인
|
|
119
|
+
```bash
|
|
120
|
+
aiwf compress-stats
|
|
121
|
+
```
|
|
122
|
+
|
|
123
|
+
제공 정보:
|
|
124
|
+
- 현재 활성 페르소나
|
|
125
|
+
- 페르소나별 평균 압축률
|
|
126
|
+
- 압축 전략 상세
|
|
127
|
+
- 보존 패턴 목록
|
|
128
|
+
|
|
129
|
+
### 히스토리 분석
|
|
130
|
+
```javascript
|
|
131
|
+
const stats = compressor.getPersonaCompressionStats();
|
|
132
|
+
console.log(stats.averageRatioByPersona);
|
|
133
|
+
// { architect: "45.2", security: "35.8", ... }
|
|
134
|
+
```
|
|
135
|
+
|
|
136
|
+
## 최적화 팁
|
|
137
|
+
|
|
138
|
+
### 1. 페르소나 선택
|
|
139
|
+
작업에 맞는 페르소나를 선택하여 관련 정보 보존:
|
|
140
|
+
- 시스템 설계 문서 → Architect
|
|
141
|
+
- 보안 리포트 → Security
|
|
142
|
+
- UI 가이드 → Frontend
|
|
143
|
+
- API 문서 → Backend
|
|
144
|
+
- 분석 리포트 → Data Analyst
|
|
145
|
+
|
|
146
|
+
### 2. 압축 모드 선택
|
|
147
|
+
- **Minimal**: 중요 문서, 낮은 압축률
|
|
148
|
+
- **Balanced**: 일반 문서, 중간 압축률
|
|
149
|
+
- **Aggressive**: 대용량 문서, 높은 압축률
|
|
150
|
+
|
|
151
|
+
### 3. 사전 최적화
|
|
152
|
+
압축 전 문서 정리:
|
|
153
|
+
- 중복 내용 제거
|
|
154
|
+
- 구조화된 형식 사용
|
|
155
|
+
- 페르소나 관련 키워드 포함
|
|
156
|
+
|
|
157
|
+
## 주의사항
|
|
158
|
+
|
|
159
|
+
1. **백업 권장**: 중요 문서는 압축 전 백업
|
|
160
|
+
2. **압축률 확인**: 과도한 압축은 정보 손실 가능
|
|
161
|
+
3. **페르소나 적합성**: 문서와 페르소나 특성 일치 확인
|
|
162
|
+
|
|
163
|
+
## 향후 계획
|
|
164
|
+
|
|
165
|
+
- AI 기반 요약 기능 강화
|
|
166
|
+
- 다중 페르소나 압축 지원
|
|
167
|
+
- 압축 품질 자동 평가
|
|
168
|
+
- 커스텀 압축 전략 지원
|