moai-adk 0.32.8__py3-none-any.whl → 0.41.0__py3-none-any.whl
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.
Potentially problematic release.
This version of moai-adk might be problematic. Click here for more details.
- moai_adk/cli/commands/init.py +4 -1
- moai_adk/cli/commands/update.py +31 -26
- moai_adk/cli/worktree/cli.py +54 -43
- moai_adk/cli/worktree/manager.py +17 -14
- moai_adk/cli/worktree/registry.py +313 -19
- moai_adk/core/config/unified.py +237 -63
- moai_adk/core/error_recovery_system.py +22 -4
- moai_adk/core/git/conflict_detector.py +10 -1
- moai_adk/core/git/event_detector.py +16 -5
- moai_adk/core/language_config_resolver.py +96 -3
- moai_adk/core/merge/analyzer.py +509 -324
- moai_adk/core/migration/alfred_to_moai_migrator.py +7 -1
- moai_adk/core/migration/backup_manager.py +54 -4
- moai_adk/core/migration/file_migrator.py +174 -2
- moai_adk/core/migration/interactive_checkbox_ui.py +42 -31
- moai_adk/core/migration/version_detector.py +123 -19
- moai_adk/core/migration/version_migrator.py +44 -9
- moai_adk/core/project/backup_utils.py +9 -1
- moai_adk/core/project/initializer.py +33 -96
- moai_adk/core/project/phase_executor.py +79 -33
- moai_adk/core/quality/trust_checker.py +30 -10
- moai_adk/core/realtime_monitoring_dashboard.py +3 -3
- moai_adk/core/rollback_manager.py +46 -19
- moai_adk/core/template/backup.py +4 -3
- moai_adk/core/template/config.py +33 -9
- moai_adk/core/template/merger.py +34 -8
- moai_adk/core/template/processor.py +144 -9
- moai_adk/core/template_engine.py +10 -1
- moai_adk/core/template_variable_synchronizer.py +16 -2
- moai_adk/core/version_sync.py +54 -6
- moai_adk/project/configuration.py +1 -1
- moai_adk/statusline/config.py +5 -2
- moai_adk/statusline/main.py +58 -0
- moai_adk/statusline/renderer.py +38 -78
- moai_adk/templates/.claude/agents/moai/ai-nano-banana.md +218 -51
- moai_adk/templates/.claude/agents/moai/builder-agent.md +46 -11
- moai_adk/templates/.claude/agents/moai/builder-command.md +88 -26
- moai_adk/templates/.claude/agents/moai/builder-plugin.md +753 -0
- moai_adk/templates/.claude/agents/moai/builder-skill.md +79 -8
- moai_adk/templates/.claude/agents/moai/expert-backend.md +100 -28
- moai_adk/templates/.claude/agents/moai/expert-database.md +20 -12
- moai_adk/templates/.claude/agents/moai/expert-debug.md +19 -8
- moai_adk/templates/.claude/agents/moai/expert-devops.md +36 -25
- moai_adk/templates/.claude/agents/moai/expert-frontend.md +99 -38
- moai_adk/templates/.claude/agents/moai/expert-performance.md +661 -0
- moai_adk/templates/.claude/agents/moai/expert-refactoring.md +218 -0
- moai_adk/templates/.claude/agents/moai/expert-security.md +55 -4
- moai_adk/templates/.claude/agents/moai/expert-testing.md +737 -0
- moai_adk/templates/.claude/agents/moai/expert-uiux.md +20 -11
- moai_adk/templates/.claude/agents/moai/manager-claude-code.md +13 -4
- moai_adk/templates/.claude/agents/moai/manager-docs.md +15 -7
- moai_adk/templates/.claude/agents/moai/manager-git.md +192 -37
- moai_adk/templates/.claude/agents/moai/manager-project.md +13 -7
- moai_adk/templates/.claude/agents/moai/manager-quality.md +48 -6
- moai_adk/templates/.claude/agents/moai/manager-spec.md +110 -8
- moai_adk/templates/.claude/agents/moai/manager-strategy.md +203 -17
- moai_adk/templates/.claude/agents/moai/manager-tdd.md +217 -23
- moai_adk/templates/.claude/agents/moai/mcp-context7.md +102 -7
- moai_adk/templates/.claude/agents/moai/mcp-figma.md +107 -86
- moai_adk/templates/.claude/agents/moai/mcp-notion.md +50 -4
- moai_adk/templates/.claude/agents/moai/mcp-playwright.md +52 -4
- moai_adk/templates/.claude/agents/moai/mcp-sequential-thinking.md +49 -5
- moai_adk/templates/.claude/commands/moai/0-project.md +503 -307
- moai_adk/templates/.claude/commands/moai/1-plan.md +255 -323
- moai_adk/templates/.claude/commands/moai/2-run.md +257 -315
- moai_adk/templates/.claude/commands/moai/3-sync.md +421 -56
- moai_adk/templates/.claude/commands/moai/9-feedback.md +40 -34
- moai_adk/templates/.claude/hooks/moai/__init__.py +0 -0
- moai_adk/templates/.claude/hooks/moai/lib/README.md +143 -0
- moai_adk/templates/.claude/hooks/moai/lib/__init__.py +19 -0
- moai_adk/templates/.claude/hooks/moai/lib/checkpoint.py +4 -1
- moai_adk/templates/.claude/hooks/moai/lib/common.py +35 -5
- moai_adk/templates/.claude/hooks/moai/lib/config_manager.py +12 -14
- moai_adk/templates/.claude/hooks/moai/lib/exceptions.py +171 -0
- moai_adk/templates/.claude/hooks/moai/lib/git_operations_manager.py +1 -1
- moai_adk/templates/.claude/hooks/moai/lib/language_validator.py +104 -14
- moai_adk/templates/.claude/hooks/moai/lib/models.py +9 -7
- moai_adk/templates/.claude/hooks/moai/lib/path_utils.py +204 -13
- moai_adk/templates/.claude/hooks/moai/lib/project.py +23 -14
- moai_adk/templates/.claude/hooks/moai/lib/tool_registry.py +804 -0
- moai_adk/templates/.claude/hooks/moai/lib/unified_timeout_manager.py +14 -2
- moai_adk/templates/.claude/hooks/moai/post_tool__ast_grep_scan.py +256 -0
- moai_adk/templates/.claude/hooks/moai/post_tool__code_formatter.py +253 -0
- moai_adk/templates/.claude/hooks/moai/post_tool__linter.py +307 -0
- moai_adk/templates/.claude/hooks/moai/pre_tool__security_guard.py +231 -0
- moai_adk/templates/.claude/hooks/moai/session_end__auto_cleanup.py +28 -24
- moai_adk/templates/.claude/hooks/moai/session_start__show_project_info.py +236 -32
- moai_adk/templates/.claude/output-styles/moai/r2d2.md +265 -2
- moai_adk/templates/.claude/output-styles/moai/yoda.md +23 -2
- moai_adk/templates/.claude/settings.json +43 -6
- moai_adk/templates/.claude/skills/moai-ai-nano-banana/SKILL.md +302 -0
- moai_adk/templates/.claude/skills/moai-ai-nano-banana/examples.md +431 -0
- moai_adk/templates/.claude/skills/moai-ai-nano-banana/reference.md +139 -0
- moai_adk/templates/.claude/skills/moai-ai-nano-banana/scripts/batch_generate.py +560 -0
- moai_adk/templates/.claude/skills/moai-ai-nano-banana/scripts/generate_image.py +362 -0
- moai_adk/templates/.claude/skills/moai-docs-generation/SKILL.md +251 -196
- moai_adk/templates/.claude/skills/moai-docs-generation/examples.md +252 -0
- moai_adk/templates/.claude/skills/moai-docs-generation/modules/README.md +39 -27
- moai_adk/templates/.claude/skills/moai-docs-generation/modules/api-documentation.md +115 -125
- moai_adk/templates/.claude/skills/moai-docs-generation/modules/code-documentation.md +150 -150
- moai_adk/templates/.claude/skills/moai-docs-generation/modules/multi-format-output.md +182 -175
- moai_adk/templates/.claude/skills/moai-docs-generation/modules/user-guides.md +198 -138
- moai_adk/templates/.claude/skills/moai-docs-generation/reference.md +234 -0
- moai_adk/templates/.claude/skills/moai-domain-backend/SKILL.md +18 -13
- moai_adk/templates/.claude/skills/moai-domain-backend/examples.md +718 -0
- moai_adk/templates/.claude/skills/moai-domain-backend/reference.md +464 -0
- moai_adk/templates/.claude/skills/moai-domain-database/SKILL.md +20 -14
- moai_adk/templates/.claude/skills/moai-domain-database/examples.md +830 -0
- moai_adk/templates/.claude/skills/moai-domain-database/reference.md +545 -0
- moai_adk/templates/.claude/skills/moai-domain-frontend/SKILL.md +123 -425
- moai_adk/templates/.claude/skills/moai-domain-frontend/examples.md +968 -0
- moai_adk/templates/.claude/skills/moai-domain-frontend/modules/component-architecture.md +723 -0
- moai_adk/templates/.claude/skills/moai-domain-frontend/modules/nextjs16-patterns.md +713 -0
- moai_adk/templates/.claude/skills/moai-domain-frontend/modules/performance-optimization.md +694 -0
- moai_adk/templates/.claude/skills/moai-domain-frontend/modules/react19-patterns.md +591 -0
- moai_adk/templates/.claude/skills/moai-domain-frontend/modules/state-management.md +680 -0
- moai_adk/templates/.claude/skills/moai-domain-frontend/modules/vue35-patterns.md +802 -0
- moai_adk/templates/.claude/skills/moai-domain-frontend/reference.md +664 -0
- moai_adk/templates/.claude/skills/moai-domain-uiux/SKILL.md +16 -15
- moai_adk/templates/.claude/skills/moai-formats-data/SKILL.md +104 -315
- moai_adk/templates/.claude/skills/moai-formats-data/examples.md +804 -0
- moai_adk/templates/.claude/skills/moai-formats-data/modules/README.md +299 -70
- moai_adk/templates/.claude/skills/moai-formats-data/modules/toon-encoding.md +6 -6
- moai_adk/templates/.claude/skills/moai-formats-data/reference.md +585 -0
- moai_adk/templates/.claude/skills/moai-foundation-claude/SKILL.md +196 -154
- moai_adk/templates/.claude/skills/moai-foundation-claude/examples.md +732 -0
- moai_adk/templates/.claude/skills/moai-foundation-claude/reference/advanced-agent-patterns.md +370 -0
- moai_adk/templates/.claude/skills/moai-foundation-claude/reference/claude-code-cli-reference-official.md +420 -0
- moai_adk/templates/.claude/skills/moai-foundation-claude/reference/claude-code-devcontainers-official.md +381 -0
- moai_adk/templates/.claude/skills/moai-foundation-claude/reference/claude-code-discover-plugins-official.md +379 -0
- moai_adk/templates/.claude/skills/moai-foundation-claude/reference/claude-code-headless-official.md +378 -0
- moai_adk/templates/.claude/skills/moai-foundation-claude/reference/claude-code-hooks-official.md +110 -0
- moai_adk/templates/.claude/skills/moai-foundation-claude/reference/claude-code-memory-official.md +2 -2
- moai_adk/templates/.claude/skills/moai-foundation-claude/reference/claude-code-plugin-marketplaces-official.md +308 -0
- moai_adk/templates/.claude/skills/moai-foundation-claude/reference/claude-code-plugins-official.md +432 -0
- moai_adk/templates/.claude/skills/moai-foundation-claude/reference/claude-code-sandboxing-official.md +282 -0
- moai_adk/templates/.claude/skills/moai-foundation-claude/reference/claude-code-skills-official.md +425 -71
- moai_adk/templates/.claude/skills/moai-foundation-claude/reference/claude-code-statusline-official.md +293 -0
- moai_adk/templates/.claude/skills/moai-foundation-claude/reference/claude-code-sub-agents-official.md +325 -143
- moai_adk/templates/.claude/skills/moai-foundation-claude/reference.md +209 -0
- moai_adk/templates/.claude/skills/moai-foundation-context/SKILL.md +12 -1
- moai_adk/templates/.claude/skills/moai-foundation-context/examples.md +1048 -0
- moai_adk/templates/.claude/skills/moai-foundation-context/reference.md +246 -0
- moai_adk/templates/.claude/skills/moai-foundation-core/SKILL.md +33 -134
- moai_adk/templates/.claude/skills/moai-foundation-core/examples.md +358 -0
- moai_adk/templates/.claude/skills/moai-foundation-core/modules/agents-reference.md +31 -18
- moai_adk/templates/.claude/skills/moai-foundation-core/modules/commands-reference.md +30 -30
- moai_adk/templates/.claude/skills/moai-foundation-core/modules/delegation-advanced.md +279 -0
- moai_adk/templates/.claude/skills/moai-foundation-core/modules/delegation-implementation.md +267 -0
- moai_adk/templates/.claude/skills/moai-foundation-core/modules/delegation-patterns.md +121 -650
- moai_adk/templates/.claude/skills/moai-foundation-core/modules/patterns.md +22 -0
- moai_adk/templates/.claude/skills/moai-foundation-core/modules/spec-ears-format.md +200 -0
- moai_adk/templates/.claude/skills/moai-foundation-core/modules/spec-first-tdd.md +37 -730
- moai_adk/templates/.claude/skills/moai-foundation-core/modules/spec-tdd-implementation.md +275 -0
- moai_adk/templates/.claude/skills/moai-foundation-core/modules/trust-5-framework.md +77 -819
- moai_adk/templates/.claude/skills/moai-foundation-core/modules/trust-5-implementation.md +244 -0
- moai_adk/templates/.claude/skills/moai-foundation-core/modules/trust-5-validation.md +219 -0
- moai_adk/templates/.claude/skills/moai-foundation-core/reference.md +478 -0
- moai_adk/templates/.claude/skills/moai-foundation-philosopher/SKILL.md +311 -0
- moai_adk/templates/.claude/skills/moai-foundation-philosopher/examples.md +228 -0
- moai_adk/templates/.claude/skills/moai-foundation-philosopher/modules/assumption-matrix.md +80 -0
- moai_adk/templates/.claude/skills/moai-foundation-philosopher/modules/cognitive-bias.md +199 -0
- moai_adk/templates/.claude/skills/moai-foundation-philosopher/modules/first-principles.md +140 -0
- moai_adk/templates/.claude/skills/moai-foundation-philosopher/modules/trade-off-analysis.md +154 -0
- moai_adk/templates/.claude/skills/moai-foundation-philosopher/reference.md +157 -0
- moai_adk/templates/.claude/skills/moai-foundation-quality/SKILL.md +17 -16
- moai_adk/templates/.claude/skills/moai-lang-cpp/SKILL.md +430 -0
- moai_adk/templates/.claude/skills/moai-lang-cpp/examples.md +17 -0
- moai_adk/templates/.claude/skills/moai-lang-cpp/modules/advanced-patterns.md +401 -0
- moai_adk/templates/.claude/skills/moai-lang-cpp/reference.md +17 -0
- moai_adk/templates/.claude/skills/moai-lang-csharp/SKILL.md +193 -0
- moai_adk/templates/.claude/skills/moai-lang-csharp/examples.md +585 -0
- moai_adk/templates/.claude/skills/moai-lang-csharp/modules/aspnet-core.md +627 -0
- moai_adk/templates/.claude/skills/moai-lang-csharp/modules/blazor-components.md +767 -0
- moai_adk/templates/.claude/skills/moai-lang-csharp/modules/cqrs-validation.md +626 -0
- moai_adk/templates/.claude/skills/moai-lang-csharp/modules/csharp12-features.md +580 -0
- moai_adk/templates/.claude/skills/moai-lang-csharp/modules/efcore-patterns.md +622 -0
- moai_adk/templates/.claude/skills/moai-lang-csharp/reference.md +403 -0
- moai_adk/templates/.claude/skills/moai-lang-elixir/SKILL.md +394 -0
- moai_adk/templates/.claude/skills/moai-lang-elixir/examples.md +17 -0
- moai_adk/templates/.claude/skills/moai-lang-elixir/modules/advanced-patterns.md +531 -0
- moai_adk/templates/.claude/skills/moai-lang-elixir/reference.md +17 -0
- moai_adk/templates/.claude/skills/moai-lang-flutter/SKILL.md +472 -0
- moai_adk/templates/.claude/skills/moai-lang-flutter/examples.md +1090 -0
- moai_adk/templates/.claude/skills/moai-lang-flutter/reference.md +686 -0
- moai_adk/templates/.claude/skills/moai-lang-go/SKILL.md +377 -0
- moai_adk/templates/.claude/skills/moai-lang-go/examples.md +919 -0
- moai_adk/templates/.claude/skills/moai-lang-go/reference.md +737 -0
- moai_adk/templates/.claude/skills/moai-lang-java/SKILL.md +386 -0
- moai_adk/templates/.claude/skills/moai-lang-java/examples.md +864 -0
- moai_adk/templates/.claude/skills/moai-lang-java/reference.md +291 -0
- moai_adk/templates/.claude/skills/moai-lang-javascript/SKILL.md +418 -0
- moai_adk/templates/.claude/skills/moai-lang-javascript/examples.md +973 -0
- moai_adk/templates/.claude/skills/moai-lang-javascript/reference.md +1543 -0
- moai_adk/templates/.claude/skills/moai-lang-kotlin/SKILL.md +383 -0
- moai_adk/templates/.claude/skills/moai-lang-kotlin/examples.md +1006 -0
- moai_adk/templates/.claude/skills/moai-lang-kotlin/reference.md +562 -0
- moai_adk/templates/.claude/skills/moai-lang-php/SKILL.md +504 -0
- moai_adk/templates/.claude/skills/moai-lang-php/examples.md +17 -0
- moai_adk/templates/.claude/skills/moai-lang-php/modules/advanced-patterns.md +538 -0
- moai_adk/templates/.claude/skills/moai-lang-php/reference.md +17 -0
- moai_adk/templates/.claude/skills/moai-lang-python/SKILL.md +489 -0
- moai_adk/templates/.claude/skills/moai-lang-python/examples.md +977 -0
- moai_adk/templates/.claude/skills/moai-lang-python/reference.md +804 -0
- moai_adk/templates/.claude/skills/moai-lang-r/SKILL.md +389 -0
- moai_adk/templates/.claude/skills/moai-lang-r/examples.md +17 -0
- moai_adk/templates/.claude/skills/moai-lang-r/modules/advanced-patterns.md +489 -0
- moai_adk/templates/.claude/skills/moai-lang-r/reference.md +17 -0
- moai_adk/templates/.claude/skills/moai-lang-ruby/SKILL.md +432 -0
- moai_adk/templates/.claude/skills/moai-lang-ruby/examples.md +17 -0
- moai_adk/templates/.claude/skills/moai-lang-ruby/modules/advanced-patterns.md +309 -0
- moai_adk/templates/.claude/skills/moai-lang-ruby/modules/testing-patterns.md +306 -0
- moai_adk/templates/.claude/skills/moai-lang-ruby/reference.md +17 -0
- moai_adk/templates/.claude/skills/moai-lang-rust/SKILL.md +377 -0
- moai_adk/templates/.claude/skills/moai-lang-rust/examples.md +659 -0
- moai_adk/templates/.claude/skills/moai-lang-rust/reference.md +504 -0
- moai_adk/templates/.claude/skills/moai-lang-scala/SKILL.md +211 -0
- moai_adk/templates/.claude/skills/moai-lang-scala/examples.md +633 -0
- moai_adk/templates/.claude/skills/moai-lang-scala/modules/akka-actors.md +479 -0
- moai_adk/templates/.claude/skills/moai-lang-scala/modules/cats-effect.md +489 -0
- moai_adk/templates/.claude/skills/moai-lang-scala/modules/functional-programming.md +460 -0
- moai_adk/templates/.claude/skills/moai-lang-scala/modules/spark-data.md +498 -0
- moai_adk/templates/.claude/skills/moai-lang-scala/modules/zio-patterns.md +541 -0
- moai_adk/templates/.claude/skills/moai-lang-scala/reference.md +423 -0
- moai_adk/templates/.claude/skills/moai-lang-swift/SKILL.md +191 -0
- moai_adk/templates/.claude/skills/moai-lang-swift/examples.md +918 -0
- moai_adk/templates/.claude/skills/moai-lang-swift/modules/combine-reactive.md +256 -0
- moai_adk/templates/.claude/skills/moai-lang-swift/modules/concurrency.md +270 -0
- moai_adk/templates/.claude/skills/moai-lang-swift/modules/swift6-features.md +265 -0
- moai_adk/templates/.claude/skills/moai-lang-swift/modules/swiftui-patterns.md +314 -0
- moai_adk/templates/.claude/skills/moai-lang-swift/reference.md +672 -0
- moai_adk/templates/.claude/skills/moai-lang-typescript/SKILL.md +364 -0
- moai_adk/templates/.claude/skills/moai-lang-typescript/examples.md +1089 -0
- moai_adk/templates/.claude/skills/moai-lang-typescript/reference.md +731 -0
- moai_adk/templates/.claude/skills/moai-library-mermaid/SKILL.md +93 -227
- moai_adk/templates/.claude/skills/moai-library-nextra/SKILL.md +25 -6
- moai_adk/templates/.claude/skills/moai-library-nextra/examples.md +592 -0
- moai_adk/templates/.claude/skills/moai-library-nextra/modules/advanced-patterns.md +331 -12
- moai_adk/templates/.claude/skills/moai-library-nextra/modules/configuration.md +330 -37
- moai_adk/templates/.claude/skills/moai-library-nextra/reference.md +379 -0
- moai_adk/templates/.claude/skills/moai-library-shadcn/SKILL.md +16 -13
- moai_adk/templates/.claude/skills/moai-library-shadcn/modules/shadcn-theming.md +1 -1
- moai_adk/templates/.claude/skills/moai-platform-auth0/SKILL.md +283 -0
- moai_adk/templates/.claude/skills/moai-platform-auth0/examples.md +2446 -0
- moai_adk/templates/.claude/skills/moai-platform-auth0/modules/adaptive-mfa.md +233 -0
- moai_adk/templates/.claude/skills/moai-platform-auth0/modules/akamai-integration.md +214 -0
- moai_adk/templates/.claude/skills/moai-platform-auth0/modules/application-credentials.md +280 -0
- moai_adk/templates/.claude/skills/moai-platform-auth0/modules/attack-protection-log-events.md +224 -0
- moai_adk/templates/.claude/skills/moai-platform-auth0/modules/attack-protection-overview.md +140 -0
- moai_adk/templates/.claude/skills/moai-platform-auth0/modules/bot-detection.md +144 -0
- moai_adk/templates/.claude/skills/moai-platform-auth0/modules/breached-password-detection.md +187 -0
- moai_adk/templates/.claude/skills/moai-platform-auth0/modules/brute-force-protection.md +189 -0
- moai_adk/templates/.claude/skills/moai-platform-auth0/modules/certifications.md +282 -0
- moai_adk/templates/.claude/skills/moai-platform-auth0/modules/compliance-overview.md +263 -0
- moai_adk/templates/.claude/skills/moai-platform-auth0/modules/continuous-session-protection.md +307 -0
- moai_adk/templates/.claude/skills/moai-platform-auth0/modules/customize-mfa.md +177 -0
- moai_adk/templates/.claude/skills/moai-platform-auth0/modules/dpop-implementation.md +283 -0
- moai_adk/templates/.claude/skills/moai-platform-auth0/modules/fapi-implementation.md +259 -0
- moai_adk/templates/.claude/skills/moai-platform-auth0/modules/gdpr-compliance.md +313 -0
- moai_adk/templates/.claude/skills/moai-platform-auth0/modules/guardian-configuration.md +269 -0
- moai_adk/templates/.claude/skills/moai-platform-auth0/modules/highly-regulated-identity.md +272 -0
- moai_adk/templates/.claude/skills/moai-platform-auth0/modules/jwt-fundamentals.md +248 -0
- moai_adk/templates/.claude/skills/moai-platform-auth0/modules/mdl-verification.md +210 -0
- moai_adk/templates/.claude/skills/moai-platform-auth0/modules/mfa-api-management.md +278 -0
- moai_adk/templates/.claude/skills/moai-platform-auth0/modules/mfa-factors.md +226 -0
- moai_adk/templates/.claude/skills/moai-platform-auth0/modules/mfa-overview.md +174 -0
- moai_adk/templates/.claude/skills/moai-platform-auth0/modules/mtls-sender-constraining.md +316 -0
- moai_adk/templates/.claude/skills/moai-platform-auth0/modules/ropg-flow-mfa.md +216 -0
- moai_adk/templates/.claude/skills/moai-platform-auth0/modules/security-center.md +325 -0
- moai_adk/templates/.claude/skills/moai-platform-auth0/modules/security-guidance.md +277 -0
- moai_adk/templates/.claude/skills/moai-platform-auth0/modules/state-parameters.md +177 -0
- moai_adk/templates/.claude/skills/moai-platform-auth0/modules/step-up-authentication.md +251 -0
- moai_adk/templates/.claude/skills/moai-platform-auth0/modules/suspicious-ip-throttling.md +240 -0
- moai_adk/templates/.claude/skills/moai-platform-auth0/modules/tenant-access-control.md +179 -0
- moai_adk/templates/.claude/skills/moai-platform-auth0/modules/webauthn-fido.md +235 -0
- moai_adk/templates/.claude/skills/moai-platform-auth0/reference.md +224 -0
- moai_adk/templates/.claude/skills/moai-platform-clerk/SKILL.md +425 -0
- moai_adk/templates/.claude/skills/moai-platform-clerk/modules/advanced-patterns.md +417 -0
- moai_adk/templates/.claude/skills/moai-platform-clerk/reference.md +273 -0
- moai_adk/templates/.claude/skills/moai-platform-convex/SKILL.md +228 -0
- moai_adk/templates/.claude/skills/moai-platform-convex/examples.md +506 -0
- moai_adk/templates/.claude/skills/moai-platform-convex/modules/auth-integration.md +421 -0
- moai_adk/templates/.claude/skills/moai-platform-convex/modules/file-storage.md +474 -0
- moai_adk/templates/.claude/skills/moai-platform-convex/modules/reactive-queries.md +302 -0
- moai_adk/templates/.claude/skills/moai-platform-convex/modules/server-functions.md +452 -0
- moai_adk/templates/.claude/skills/moai-platform-convex/reference.md +385 -0
- moai_adk/templates/.claude/skills/moai-platform-firebase-auth/SKILL.md +249 -0
- moai_adk/templates/.claude/skills/moai-platform-firebase-auth/examples.md +514 -0
- moai_adk/templates/.claude/skills/moai-platform-firebase-auth/modules/custom-claims.md +374 -0
- moai_adk/templates/.claude/skills/moai-platform-firebase-auth/modules/phone-auth.md +372 -0
- moai_adk/templates/.claude/skills/moai-platform-firebase-auth/modules/social-auth.md +339 -0
- moai_adk/templates/.claude/skills/moai-platform-firebase-auth/reference.md +382 -0
- moai_adk/templates/.claude/skills/moai-platform-firestore/SKILL.md +230 -0
- moai_adk/templates/.claude/skills/moai-platform-firestore/examples.md +445 -0
- moai_adk/templates/.claude/skills/moai-platform-firestore/modules/offline-cache.md +392 -0
- moai_adk/templates/.claude/skills/moai-platform-firestore/modules/realtime-listeners.md +441 -0
- moai_adk/templates/.claude/skills/moai-platform-firestore/modules/security-rules.md +352 -0
- moai_adk/templates/.claude/skills/moai-platform-firestore/modules/transactions.md +452 -0
- moai_adk/templates/.claude/skills/moai-platform-firestore/reference.md +322 -0
- moai_adk/templates/.claude/skills/moai-platform-neon/SKILL.md +205 -0
- moai_adk/templates/.claude/skills/moai-platform-neon/examples.md +470 -0
- moai_adk/templates/.claude/skills/moai-platform-neon/modules/auto-scaling.md +349 -0
- moai_adk/templates/.claude/skills/moai-platform-neon/modules/branching-workflows.md +354 -0
- moai_adk/templates/.claude/skills/moai-platform-neon/modules/connection-pooling.md +412 -0
- moai_adk/templates/.claude/skills/moai-platform-neon/modules/pitr-backups.md +458 -0
- moai_adk/templates/.claude/skills/moai-platform-neon/reference.md +272 -0
- moai_adk/templates/.claude/skills/moai-platform-railway/SKILL.md +223 -0
- moai_adk/templates/.claude/skills/moai-platform-railway/examples.md +539 -0
- moai_adk/templates/.claude/skills/moai-platform-railway/modules/docker-deployment.md +261 -0
- moai_adk/templates/.claude/skills/moai-platform-railway/modules/multi-service.md +291 -0
- moai_adk/templates/.claude/skills/moai-platform-railway/modules/networking-domains.md +338 -0
- moai_adk/templates/.claude/skills/moai-platform-railway/modules/volumes-storage.md +353 -0
- moai_adk/templates/.claude/skills/moai-platform-railway/reference.md +374 -0
- moai_adk/templates/.claude/skills/moai-platform-supabase/SKILL.md +206 -0
- moai_adk/templates/.claude/skills/moai-platform-supabase/examples.md +502 -0
- moai_adk/templates/.claude/skills/moai-platform-supabase/modules/auth-integration.md +384 -0
- moai_adk/templates/.claude/skills/moai-platform-supabase/modules/edge-functions.md +371 -0
- moai_adk/templates/.claude/skills/moai-platform-supabase/modules/postgresql-pgvector.md +231 -0
- moai_adk/templates/.claude/skills/moai-platform-supabase/modules/realtime-presence.md +354 -0
- moai_adk/templates/.claude/skills/moai-platform-supabase/modules/row-level-security.md +286 -0
- moai_adk/templates/.claude/skills/moai-platform-supabase/modules/storage-cdn.md +319 -0
- moai_adk/templates/.claude/skills/moai-platform-supabase/modules/typescript-patterns.md +453 -0
- moai_adk/templates/.claude/skills/moai-platform-supabase/reference.md +284 -0
- moai_adk/templates/.claude/skills/moai-platform-vercel/SKILL.md +209 -0
- moai_adk/templates/.claude/skills/moai-platform-vercel/examples.md +502 -0
- moai_adk/templates/.claude/skills/moai-platform-vercel/modules/analytics-speed.md +348 -0
- moai_adk/templates/.claude/skills/moai-platform-vercel/modules/deployment-config.md +344 -0
- moai_adk/templates/.claude/skills/moai-platform-vercel/modules/edge-functions.md +222 -0
- moai_adk/templates/.claude/skills/moai-platform-vercel/modules/isr-caching.md +306 -0
- moai_adk/templates/.claude/skills/moai-platform-vercel/modules/kv-storage.md +399 -0
- moai_adk/templates/.claude/skills/moai-platform-vercel/reference.md +360 -0
- moai_adk/templates/.claude/skills/moai-plugin-builder/SKILL.md +473 -0
- moai_adk/templates/.claude/skills/moai-plugin-builder/examples.md +621 -0
- moai_adk/templates/.claude/skills/moai-plugin-builder/modules/migration.md +341 -0
- moai_adk/templates/.claude/skills/moai-plugin-builder/modules/validation.md +373 -0
- moai_adk/templates/.claude/skills/moai-plugin-builder/reference.md +464 -0
- moai_adk/templates/.claude/skills/moai-tool-ast-grep/SKILL.md +306 -0
- moai_adk/templates/.claude/skills/moai-tool-ast-grep/examples.md +1099 -0
- moai_adk/templates/.claude/skills/moai-tool-ast-grep/modules/language-specific.md +307 -0
- moai_adk/templates/.claude/skills/moai-tool-ast-grep/modules/pattern-syntax.md +237 -0
- moai_adk/templates/.claude/skills/moai-tool-ast-grep/modules/refactoring-patterns.md +260 -0
- moai_adk/templates/.claude/skills/moai-tool-ast-grep/modules/security-rules.md +239 -0
- moai_adk/templates/.claude/skills/moai-tool-ast-grep/reference.md +288 -0
- moai_adk/templates/.claude/skills/moai-tool-ast-grep/rules/languages/go.yml +90 -0
- moai_adk/templates/.claude/skills/moai-tool-ast-grep/rules/languages/python.yml +101 -0
- moai_adk/templates/.claude/skills/moai-tool-ast-grep/rules/languages/typescript.yml +83 -0
- moai_adk/templates/.claude/skills/moai-tool-ast-grep/rules/quality/complexity-check.yml +94 -0
- moai_adk/templates/.claude/skills/moai-tool-ast-grep/rules/quality/deprecated-apis.yml +84 -0
- moai_adk/templates/.claude/skills/moai-tool-ast-grep/rules/security/secrets-detection.yml +89 -0
- moai_adk/templates/.claude/skills/moai-tool-ast-grep/rules/security/sql-injection.yml +45 -0
- moai_adk/templates/.claude/skills/moai-tool-ast-grep/rules/security/xss-prevention.yml +50 -0
- moai_adk/templates/.claude/skills/moai-tool-ast-grep/rules/sgconfig.yml +54 -0
- moai_adk/templates/.claude/skills/moai-tool-opencode/SKILL.md +214 -0
- moai_adk/templates/.claude/skills/moai-tool-opencode/examples.md +697 -0
- moai_adk/templates/.claude/skills/moai-tool-opencode/index.md +96 -0
- moai_adk/templates/.claude/skills/moai-tool-opencode/modules/configure/acp.md +115 -0
- moai_adk/templates/.claude/skills/moai-tool-opencode/modules/configure/agents.md +241 -0
- moai_adk/templates/.claude/skills/moai-tool-opencode/modules/configure/commands.md +197 -0
- moai_adk/templates/.claude/skills/moai-tool-opencode/modules/configure/custom-tools.md +197 -0
- moai_adk/templates/.claude/skills/moai-tool-opencode/modules/configure/formatters.md +164 -0
- moai_adk/templates/.claude/skills/moai-tool-opencode/modules/configure/keybinds.md +150 -0
- moai_adk/templates/.claude/skills/moai-tool-opencode/modules/configure/lsp-servers.md +156 -0
- moai_adk/templates/.claude/skills/moai-tool-opencode/modules/configure/mcp-servers.md +214 -0
- moai_adk/templates/.claude/skills/moai-tool-opencode/modules/configure/models.md +197 -0
- moai_adk/templates/.claude/skills/moai-tool-opencode/modules/configure/permissions.md +162 -0
- moai_adk/templates/.claude/skills/moai-tool-opencode/modules/configure/rules.md +129 -0
- moai_adk/templates/.claude/skills/moai-tool-opencode/modules/configure/skills.md +192 -0
- moai_adk/templates/.claude/skills/moai-tool-opencode/modules/configure/themes.md +200 -0
- moai_adk/templates/.claude/skills/moai-tool-opencode/modules/configure/tools.md +169 -0
- moai_adk/templates/.claude/skills/moai-tool-opencode/modules/core/config.md +211 -0
- moai_adk/templates/.claude/skills/moai-tool-opencode/modules/core/enterprise.md +68 -0
- moai_adk/templates/.claude/skills/moai-tool-opencode/modules/core/intro.md +127 -0
- moai_adk/templates/.claude/skills/moai-tool-opencode/modules/core/migration-1.0.md +82 -0
- moai_adk/templates/.claude/skills/moai-tool-opencode/modules/core/network.md +72 -0
- moai_adk/templates/.claude/skills/moai-tool-opencode/modules/core/providers.md +310 -0
- moai_adk/templates/.claude/skills/moai-tool-opencode/modules/core/troubleshooting.md +124 -0
- moai_adk/templates/.claude/skills/moai-tool-opencode/modules/develop/ecosystem.md +75 -0
- moai_adk/templates/.claude/skills/moai-tool-opencode/modules/develop/plugins.md +218 -0
- moai_adk/templates/.claude/skills/moai-tool-opencode/modules/develop/sdk.md +266 -0
- moai_adk/templates/.claude/skills/moai-tool-opencode/modules/develop/server.md +207 -0
- moai_adk/templates/.claude/skills/moai-tool-opencode/modules/usage/cli.md +159 -0
- moai_adk/templates/.claude/skills/moai-tool-opencode/modules/usage/github.md +181 -0
- moai_adk/templates/.claude/skills/moai-tool-opencode/modules/usage/gitlab.md +122 -0
- moai_adk/templates/.claude/skills/moai-tool-opencode/modules/usage/ide.md +74 -0
- moai_adk/templates/.claude/skills/moai-tool-opencode/modules/usage/share.md +106 -0
- moai_adk/templates/.claude/skills/moai-tool-opencode/modules/usage/tui.md +129 -0
- moai_adk/templates/.claude/skills/moai-tool-opencode/modules/usage/zen.md +118 -0
- moai_adk/templates/.claude/skills/moai-tool-opencode/reference.md +790 -0
- moai_adk/templates/.claude/skills/moai-workflow-jit-docs/SKILL.md +189 -424
- moai_adk/templates/.claude/skills/moai-workflow-jit-docs/examples.md +544 -0
- moai_adk/templates/.claude/skills/moai-workflow-jit-docs/reference.md +307 -0
- moai_adk/templates/.claude/skills/moai-workflow-project/SKILL.md +187 -314
- moai_adk/templates/.claude/skills/moai-workflow-project/examples.md +547 -0
- moai_adk/templates/.claude/skills/moai-workflow-project/reference.md +275 -0
- moai_adk/templates/.claude/skills/moai-workflow-project/schemas/tab_schema.json +284 -212
- moai_adk/templates/.claude/skills/moai-workflow-project/templates/doc-templates/product-template.md +2 -2
- moai_adk/templates/.claude/skills/moai-workflow-project/templates/doc-templates/structure-template.md +1 -1
- moai_adk/templates/.claude/skills/moai-workflow-project/templates/doc-templates/tech-template.md +22 -1
- moai_adk/templates/.claude/skills/moai-workflow-spec/SKILL.md +336 -0
- moai_adk/templates/.claude/skills/moai-workflow-spec/examples.md +900 -0
- moai_adk/templates/.claude/skills/moai-workflow-spec/modules/advanced-patterns.md +237 -0
- moai_adk/templates/.claude/skills/moai-workflow-spec/reference.md +704 -0
- moai_adk/templates/.claude/skills/moai-workflow-templates/SKILL.md +12 -0
- moai_adk/templates/.claude/skills/moai-workflow-templates/examples.md +552 -0
- moai_adk/templates/.claude/skills/moai-workflow-templates/reference.md +346 -0
- moai_adk/templates/.claude/skills/moai-workflow-testing/SKILL.md +221 -367
- moai_adk/templates/.claude/skills/moai-workflow-testing/examples.md +672 -0
- moai_adk/templates/.claude/skills/moai-workflow-testing/modules/README.md +52 -3
- moai_adk/templates/.claude/skills/moai-workflow-testing/modules/ai-debugging.md +263 -806
- moai_adk/templates/.claude/skills/moai-workflow-testing/modules/automated-code-review/context7-integration.md +286 -0
- moai_adk/templates/.claude/skills/moai-workflow-testing/modules/automated-code-review/review-workflows.md +500 -0
- moai_adk/templates/.claude/skills/moai-workflow-testing/modules/automated-code-review/trust5-framework/relevance-analysis.md +154 -0
- moai_adk/templates/.claude/skills/moai-workflow-testing/modules/automated-code-review/trust5-framework/safety-analysis.md +148 -0
- moai_adk/templates/.claude/skills/moai-workflow-testing/modules/automated-code-review/trust5-framework/scoring-algorithms.md +196 -0
- moai_adk/templates/.claude/skills/moai-workflow-testing/modules/automated-code-review/trust5-framework/timeliness-analysis.md +168 -0
- moai_adk/templates/.claude/skills/moai-workflow-testing/modules/automated-code-review/trust5-framework/truthfulness-analysis.md +136 -0
- moai_adk/templates/.claude/skills/moai-workflow-testing/modules/automated-code-review/trust5-framework/usability-analysis.md +153 -0
- moai_adk/templates/.claude/skills/moai-workflow-testing/modules/automated-code-review/trust5-framework.md +257 -0
- moai_adk/templates/.claude/skills/moai-workflow-testing/modules/automated-code-review.md +191 -1344
- moai_adk/templates/.claude/skills/moai-workflow-testing/modules/code-review/analysis-patterns.md +340 -0
- moai_adk/templates/.claude/skills/moai-workflow-testing/modules/code-review/core-classes.md +299 -0
- moai_adk/templates/.claude/skills/moai-workflow-testing/modules/code-review/tool-integration.md +380 -0
- moai_adk/templates/.claude/skills/moai-workflow-testing/modules/debugging/debugging-workflows.md +451 -0
- moai_adk/templates/.claude/skills/moai-workflow-testing/modules/debugging/error-analysis.md +442 -0
- moai_adk/templates/.claude/skills/moai-workflow-testing/modules/performance/optimization-patterns.md +473 -0
- moai_adk/templates/.claude/skills/moai-workflow-testing/modules/performance/profiling-techniques.md +481 -0
- moai_adk/templates/.claude/skills/moai-workflow-testing/modules/performance-optimization/ai-optimization.md +241 -0
- moai_adk/templates/.claude/skills/moai-workflow-testing/modules/performance-optimization/bottleneck-detection.md +397 -0
- moai_adk/templates/.claude/skills/moai-workflow-testing/modules/performance-optimization/optimization-plan.md +315 -0
- moai_adk/templates/.claude/skills/moai-workflow-testing/modules/performance-optimization/profiler-core.md +277 -0
- moai_adk/templates/.claude/skills/moai-workflow-testing/modules/performance-optimization/real-time-monitoring.md +187 -0
- moai_adk/templates/.claude/skills/moai-workflow-testing/modules/performance-optimization.md +287 -1194
- moai_adk/templates/.claude/skills/moai-workflow-testing/modules/quality-metrics.md +415 -0
- moai_adk/templates/.claude/skills/moai-workflow-testing/modules/refactoring/ai-workflows.md +620 -0
- moai_adk/templates/.claude/skills/moai-workflow-testing/modules/refactoring/patterns.md +692 -0
- moai_adk/templates/.claude/skills/moai-workflow-testing/modules/security-analysis.md +429 -0
- moai_adk/templates/.claude/skills/moai-workflow-testing/modules/smart-refactoring.md +262 -1192
- moai_adk/templates/.claude/skills/moai-workflow-testing/modules/static-analysis.md +438 -0
- moai_adk/templates/.claude/skills/moai-workflow-testing/modules/tdd/core-classes.md +397 -0
- moai_adk/templates/.claude/skills/moai-workflow-testing/modules/tdd-context7/advanced-features.md +494 -0
- moai_adk/templates/.claude/skills/moai-workflow-testing/modules/tdd-context7/red-green-refactor.md +316 -0
- moai_adk/templates/.claude/skills/moai-workflow-testing/modules/tdd-context7/test-generation.md +471 -0
- moai_adk/templates/.claude/skills/moai-workflow-testing/modules/tdd-context7/test-patterns.md +371 -0
- moai_adk/templates/.claude/skills/moai-workflow-testing/modules/tdd-context7.md +227 -1222
- moai_adk/templates/.claude/skills/moai-workflow-testing/modules/trust5-validation.md +428 -0
- moai_adk/templates/.claude/skills/moai-workflow-testing/reference.md +440 -0
- moai_adk/templates/.claude/skills/moai-workflow-worktree/SKILL.md +227 -0
- moai_adk/templates/.claude/skills/moai-workflow-worktree/modules/integration-patterns.md +149 -0
- moai_adk/templates/.claude/skills/moai-workflow-worktree/modules/moai-adk-integration.md +245 -0
- moai_adk/templates/.claude/skills/moai-workflow-worktree/modules/parallel-advanced.md +310 -0
- moai_adk/templates/.claude/skills/moai-workflow-worktree/modules/parallel-development.md +202 -0
- moai_adk/templates/.claude/skills/moai-workflow-worktree/modules/parallel-workflows.md +302 -0
- moai_adk/templates/.claude/skills/moai-workflow-worktree/modules/registry-architecture.md +271 -0
- moai_adk/templates/.claude/skills/moai-workflow-worktree/modules/resource-optimization.md +300 -0
- moai_adk/templates/.claude/skills/moai-workflow-worktree/modules/tools-integration.md +280 -0
- moai_adk/templates/.claude/skills/moai-workflow-worktree/modules/troubleshooting.md +397 -0
- moai_adk/templates/.claude/skills/moai-workflow-worktree/modules/worktree-commands.md +296 -0
- moai_adk/templates/.claude/skills/moai-workflow-worktree/modules/worktree-management.md +217 -0
- moai_adk/templates/.git-hooks/pre-push +168 -50
- moai_adk/templates/.gitignore +0 -3
- moai_adk/templates/.lsp.json +152 -0
- moai_adk/templates/.mcp.json +5 -12
- moai_adk/templates/.moai/config/config.yaml +20 -306
- moai_adk/templates/.moai/config/multilingual-triggers.yaml +213 -0
- moai_adk/templates/.moai/config/questions/_schema.yaml +105 -10
- moai_adk/templates/.moai/config/questions/tab0-init.yaml +259 -0
- moai_adk/templates/.moai/config/questions/tab1-user.yaml +4 -5
- moai_adk/templates/.moai/config/questions/tab2-project.yaml +12 -55
- moai_adk/templates/.moai/config/questions/tab3-git.yaml +111 -21
- moai_adk/templates/.moai/config/questions/tab4-quality.yaml +34 -18
- moai_adk/templates/.moai/config/questions/tab5-system.yaml +19 -75
- moai_adk/templates/.moai/config/sections/git-strategy.yaml +83 -7
- moai_adk/templates/.moai/config/sections/language.yaml +7 -7
- moai_adk/templates/.moai/config/sections/project.yaml +1 -1
- moai_adk/templates/.moai/config/sections/quality.yaml +7 -4
- moai_adk/templates/.moai/config/sections/system.yaml +11 -1
- moai_adk/templates/.moai/config/statusline-config.yaml +19 -13
- moai_adk/templates/.moai/scripts/setup-glm.py +4 -4
- moai_adk/templates/CLAUDE.md +578 -154
- moai_adk/utils/common.py +33 -0
- moai_adk/version.py +1 -1
- {moai_adk-0.32.8.dist-info → moai_adk-0.41.0.dist-info}/METADATA +905 -109
- moai_adk-0.41.0.dist-info/RECORD +683 -0
- moai_adk/core/config/auto_spec_config.py +0 -340
- moai_adk/core/hooks/post_tool_auto_spec_completion.py +0 -901
- moai_adk/core/spec/confidence_scoring.py +0 -680
- moai_adk/core/spec/ears_template_engine.py +0 -1247
- moai_adk/core/spec/quality_validator.py +0 -687
- moai_adk/templates/.claude/skills/moai-domain-uiux/modules/design-system-tokens.md +0 -405
- moai_adk/templates/.claude/skills/moai-integration-mcp/SKILL.md +0 -352
- moai_adk/templates/.claude/skills/moai-integration-mcp/modules/README.md +0 -52
- moai_adk/templates/.claude/skills/moai-integration-mcp/modules/error-handling.md +0 -334
- moai_adk/templates/.claude/skills/moai-integration-mcp/modules/integration-patterns.md +0 -310
- moai_adk/templates/.claude/skills/moai-integration-mcp/modules/security-authentication.md +0 -256
- moai_adk/templates/.claude/skills/moai-integration-mcp/modules/server-architecture.md +0 -253
- moai_adk/templates/.claude/skills/moai-lang-unified/README.md +0 -133
- moai_adk/templates/.claude/skills/moai-lang-unified/SKILL.md +0 -296
- moai_adk/templates/.claude/skills/moai-lang-unified/examples.md +0 -1269
- moai_adk/templates/.claude/skills/moai-lang-unified/reference.md +0 -331
- moai_adk/templates/.claude/skills/moai-library-nextra/advanced-patterns.md +0 -336
- moai_adk/templates/.claude/skills/moai-platform-baas/README.md +0 -186
- moai_adk/templates/.claude/skills/moai-platform-baas/SKILL.md +0 -290
- moai_adk/templates/.claude/skills/moai-platform-baas/examples.md +0 -1225
- moai_adk/templates/.claude/skills/moai-platform-baas/reference.md +0 -567
- moai_adk/templates/.claude/skills/moai-platform-baas/scripts/provider-selector.py +0 -323
- moai_adk/templates/.claude/skills/moai-platform-baas/templates/stack-config.yaml +0 -204
- moai_adk/templates/.claude/skills/moai-workflow-project/__init__.py +0 -520
- moai_adk/templates/.claude/skills/moai-workflow-project/complete_workflow_demo_fixed.py +0 -574
- moai_adk/templates/.claude/skills/moai-workflow-project/examples/complete_project_setup.py +0 -317
- moai_adk/templates/.claude/skills/moai-workflow-project/examples/complete_workflow_demo.py +0 -663
- moai_adk/templates/.claude/skills/moai-workflow-project/examples/config-migration-example.json +0 -190
- moai_adk/templates/.claude/skills/moai-workflow-project/examples/question-examples.json +0 -135
- moai_adk/templates/.claude/skills/moai-workflow-project/examples/quick_start.py +0 -196
- moai_adk/templates/.claude/skills/moai-workflow-project/modules/__init__.py +0 -17
- moai_adk/templates/.claude/skills/moai-workflow-project/modules/advanced-patterns.md +0 -158
- moai_adk/templates/.claude/skills/moai-workflow-project/modules/ask_user_integration.py +0 -340
- moai_adk/templates/.claude/skills/moai-workflow-project/modules/batch_questions.py +0 -713
- moai_adk/templates/.claude/skills/moai-workflow-project/modules/config_manager.py +0 -538
- moai_adk/templates/.claude/skills/moai-workflow-project/modules/documentation_manager.py +0 -1336
- moai_adk/templates/.claude/skills/moai-workflow-project/modules/language_initializer.py +0 -730
- moai_adk/templates/.claude/skills/moai-workflow-project/modules/migration_manager.py +0 -608
- moai_adk/templates/.claude/skills/moai-workflow-project/modules/template_optimizer.py +0 -1005
- moai_adk/templates/.claude/skills/moai-workflow-project/test_integration_simple.py +0 -436
- moai_adk/templates/.claude/skills/moai-worktree/SKILL.md +0 -410
- moai_adk/templates/.claude/skills/moai-worktree/modules/integration-patterns.md +0 -982
- moai_adk/templates/.claude/skills/moai-worktree/modules/parallel-development.md +0 -778
- moai_adk/templates/.claude/skills/moai-worktree/modules/worktree-commands.md +0 -646
- moai_adk/templates/.claude/skills/moai-worktree/modules/worktree-management.md +0 -782
- moai_adk/templates/.moai/cache/personalization.json +0 -10
- moai_adk/templates/.moai/config/presets/manual.yaml +0 -28
- moai_adk/templates/.moai/config/presets/personal.yaml +0 -30
- moai_adk/templates/.moai/config/presets/team.yaml +0 -33
- moai_adk-0.32.8.dist-info/RECORD +0 -396
- /moai_adk/templates/.claude/skills/moai-library-mermaid/{advanced-patterns.md → modules/advanced-patterns.md} +0 -0
- /moai_adk/templates/.claude/skills/moai-library-mermaid/{optimization.md → modules/optimization.md} +0 -0
- /moai_adk/templates/.claude/skills/moai-library-nextra/{optimization.md → modules/optimization.md} +0 -0
- /moai_adk/templates/.claude/skills/moai-workflow-jit-docs/{advanced-patterns.md → modules/advanced-patterns.md} +0 -0
- /moai_adk/templates/.claude/skills/moai-workflow-jit-docs/{optimization.md → modules/optimization.md} +0 -0
- /moai_adk/templates/.claude/skills/moai-workflow-testing/{advanced-patterns.md → modules/advanced-patterns.md} +0 -0
- /moai_adk/templates/.claude/skills/moai-workflow-testing/{optimization.md → modules/optimization.md} +0 -0
- /moai_adk/templates/.claude/skills/{moai-worktree → moai-workflow-worktree}/examples.md +0 -0
- /moai_adk/templates/.claude/skills/{moai-worktree → moai-workflow-worktree}/reference.md +0 -0
- {moai_adk-0.32.8.dist-info → moai_adk-0.41.0.dist-info}/WHEEL +0 -0
- {moai_adk-0.32.8.dist-info → moai_adk-0.41.0.dist-info}/entry_points.txt +0 -0
- {moai_adk-0.32.8.dist-info → moai_adk-0.41.0.dist-info}/licenses/LICENSE +0 -0
|
@@ -1,538 +0,0 @@
|
|
|
1
|
-
"""
|
|
2
|
-
MoAI Menu Project - Unified Configuration Manager
|
|
3
|
-
|
|
4
|
-
This module provides centralized configuration management for all menu project
|
|
5
|
-
components, replacing individual configuration managers from 5 separate skills.
|
|
6
|
-
"""
|
|
7
|
-
|
|
8
|
-
import json
|
|
9
|
-
import logging
|
|
10
|
-
import shutil
|
|
11
|
-
from dataclasses import dataclass
|
|
12
|
-
from datetime import UTC, datetime
|
|
13
|
-
from functools import lru_cache
|
|
14
|
-
from pathlib import Path
|
|
15
|
-
from typing import Any, Dict, List, Optional, Union
|
|
16
|
-
|
|
17
|
-
try:
|
|
18
|
-
import yaml
|
|
19
|
-
|
|
20
|
-
HAS_YAML = True
|
|
21
|
-
except ImportError:
|
|
22
|
-
HAS_YAML = False
|
|
23
|
-
|
|
24
|
-
try:
|
|
25
|
-
import jsonschema
|
|
26
|
-
|
|
27
|
-
HAS_JSONSCHEMA = True
|
|
28
|
-
except ImportError:
|
|
29
|
-
HAS_JSONSCHEMA = False
|
|
30
|
-
|
|
31
|
-
# Setup logging
|
|
32
|
-
logging.basicConfig(level=logging.INFO)
|
|
33
|
-
logger = logging.getLogger(__name__)
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
@dataclass
|
|
37
|
-
class ConfigMetadata:
|
|
38
|
-
"""Configuration metadata tracking."""
|
|
39
|
-
|
|
40
|
-
created_at: str
|
|
41
|
-
updated_at: str
|
|
42
|
-
migration_history: List[Dict[str, Any]]
|
|
43
|
-
|
|
44
|
-
@classmethod
|
|
45
|
-
def create_new(cls) -> "ConfigMetadata":
|
|
46
|
-
"""Create new metadata with current timestamp."""
|
|
47
|
-
now = datetime.now(UTC).isoformat() + "Z"
|
|
48
|
-
return cls(created_at=now, updated_at=now, migration_history=[])
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
class ValidationError(Exception):
|
|
52
|
-
"""Configuration validation error."""
|
|
53
|
-
|
|
54
|
-
pass
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
class MigrationError(Exception):
|
|
58
|
-
"""Configuration migration error."""
|
|
59
|
-
|
|
60
|
-
pass
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
class UnifiedConfigManager:
|
|
64
|
-
"""
|
|
65
|
-
Centralized configuration manager for menu project system.
|
|
66
|
-
|
|
67
|
-
Features:
|
|
68
|
-
- Single source of truth for all configuration
|
|
69
|
-
- JSON Schema validation
|
|
70
|
-
- Automatic migration support
|
|
71
|
-
- Caching for performance
|
|
72
|
-
- Backup and recovery
|
|
73
|
-
- Environment-specific overrides
|
|
74
|
-
"""
|
|
75
|
-
|
|
76
|
-
def __init__(
|
|
77
|
-
self,
|
|
78
|
-
config_path: Union[str, Path],
|
|
79
|
-
schema_path: Optional[Union[str, Path]] = None,
|
|
80
|
-
):
|
|
81
|
-
"""
|
|
82
|
-
Initialize configuration manager.
|
|
83
|
-
|
|
84
|
-
Args:
|
|
85
|
-
config_path: Path to configuration file
|
|
86
|
-
schema_path: Path to JSON schema file (optional)
|
|
87
|
-
"""
|
|
88
|
-
self.config_path = Path(config_path)
|
|
89
|
-
self.schema_path = Path(schema_path) if schema_path else None
|
|
90
|
-
self.config_dir = self.config_path.parent
|
|
91
|
-
self.backup_dir = self.config_dir / "backups"
|
|
92
|
-
|
|
93
|
-
# Ensure directories exist
|
|
94
|
-
self.config_dir.mkdir(parents=True, exist_ok=True)
|
|
95
|
-
self.backup_dir.mkdir(parents=True, exist_ok=True)
|
|
96
|
-
|
|
97
|
-
# Initialize cache
|
|
98
|
-
self._config_cache: Optional[Dict[str, Any]] = None
|
|
99
|
-
self._schema_cache: Optional[Dict[str, Any]] = None
|
|
100
|
-
self._last_modified: Optional[float] = None
|
|
101
|
-
|
|
102
|
-
# Load schema if available
|
|
103
|
-
if self.schema_path and self.schema_path.exists():
|
|
104
|
-
self._load_schema()
|
|
105
|
-
|
|
106
|
-
def _load_schema(self) -> None:
|
|
107
|
-
"""Load JSON schema for validation."""
|
|
108
|
-
if not HAS_JSONSCHEMA:
|
|
109
|
-
logger.warning("jsonschema not available, skipping validation")
|
|
110
|
-
return
|
|
111
|
-
|
|
112
|
-
try:
|
|
113
|
-
with open(self.schema_path, "r", encoding="utf-8") as f:
|
|
114
|
-
self._schema_cache = json.load(f)
|
|
115
|
-
logger.info(f"Schema loaded from {self.schema_path}")
|
|
116
|
-
except Exception as e:
|
|
117
|
-
logger.error(f"Failed to load schema: {e}")
|
|
118
|
-
raise
|
|
119
|
-
|
|
120
|
-
def _get_file_mtime(self) -> float:
|
|
121
|
-
"""Get file modification time."""
|
|
122
|
-
return self.config_path.stat().st_mtime if self.config_path.exists() else 0
|
|
123
|
-
|
|
124
|
-
def _is_cache_valid(self) -> bool:
|
|
125
|
-
"""Check if cache is still valid."""
|
|
126
|
-
if self._config_cache is None:
|
|
127
|
-
return False
|
|
128
|
-
return self._last_modified == self._get_file_mtime()
|
|
129
|
-
|
|
130
|
-
def _invalidate_cache(self) -> None:
|
|
131
|
-
"""Invalidate configuration cache."""
|
|
132
|
-
self._config_cache = None
|
|
133
|
-
self._last_modified = None
|
|
134
|
-
|
|
135
|
-
def load_config(self, force_reload: bool = False) -> Dict[str, Any]:
|
|
136
|
-
"""
|
|
137
|
-
Load configuration from file with caching.
|
|
138
|
-
|
|
139
|
-
Args:
|
|
140
|
-
force_reload: Force reload even if cache is valid
|
|
141
|
-
|
|
142
|
-
Returns:
|
|
143
|
-
Configuration dictionary
|
|
144
|
-
"""
|
|
145
|
-
if not force_reload and self._is_cache_valid():
|
|
146
|
-
return self._config_cache
|
|
147
|
-
|
|
148
|
-
if not self.config_path.exists():
|
|
149
|
-
# Create default configuration
|
|
150
|
-
config = self._create_default_config()
|
|
151
|
-
self.save_config(config)
|
|
152
|
-
return config
|
|
153
|
-
|
|
154
|
-
try:
|
|
155
|
-
with open(self.config_path, "r", encoding="utf-8") as f:
|
|
156
|
-
if self.config_path.suffix.lower() in [".yml", ".yaml"]:
|
|
157
|
-
if not HAS_YAML:
|
|
158
|
-
raise ImportError("PyYAML is required for YAML configuration files")
|
|
159
|
-
config = yaml.safe_load(f)
|
|
160
|
-
else:
|
|
161
|
-
config = json.load(f)
|
|
162
|
-
|
|
163
|
-
# Validate against schema if available
|
|
164
|
-
if self._schema_cache:
|
|
165
|
-
self._validate_config(config)
|
|
166
|
-
|
|
167
|
-
# Update cache
|
|
168
|
-
self._config_cache = config
|
|
169
|
-
self._last_modified = self._get_file_mtime()
|
|
170
|
-
|
|
171
|
-
logger.info(f"Configuration loaded from {self.config_path}")
|
|
172
|
-
return config
|
|
173
|
-
|
|
174
|
-
except Exception as e:
|
|
175
|
-
logger.error(f"Failed to load configuration: {e}")
|
|
176
|
-
raise
|
|
177
|
-
|
|
178
|
-
def save_config(self, config: Dict[str, Any], create_backup: bool = True) -> None:
|
|
179
|
-
"""
|
|
180
|
-
Save configuration to file.
|
|
181
|
-
|
|
182
|
-
Args:
|
|
183
|
-
config: Configuration dictionary to save
|
|
184
|
-
create_backup: Whether to create backup before saving
|
|
185
|
-
"""
|
|
186
|
-
# Validate before saving
|
|
187
|
-
if self._schema_cache:
|
|
188
|
-
self._validate_config(config)
|
|
189
|
-
|
|
190
|
-
# Update metadata
|
|
191
|
-
self._update_metadata(config)
|
|
192
|
-
|
|
193
|
-
# Create backup if requested
|
|
194
|
-
if create_backup and self.config_path.exists():
|
|
195
|
-
self._create_backup()
|
|
196
|
-
|
|
197
|
-
# Ensure config has version
|
|
198
|
-
if "version" not in config:
|
|
199
|
-
config["version"] = "1.0.0"
|
|
200
|
-
|
|
201
|
-
try:
|
|
202
|
-
# Save with atomic write
|
|
203
|
-
temp_path = self.config_path.with_suffix(".tmp")
|
|
204
|
-
with open(temp_path, "w", encoding="utf-8") as f:
|
|
205
|
-
json.dump(config, f, indent=2, ensure_ascii=False)
|
|
206
|
-
|
|
207
|
-
# Atomic replace
|
|
208
|
-
temp_path.replace(self.config_path)
|
|
209
|
-
|
|
210
|
-
# Update cache
|
|
211
|
-
self._config_cache = config
|
|
212
|
-
self._last_modified = self._get_file_mtime()
|
|
213
|
-
|
|
214
|
-
logger.info(f"Configuration saved to {self.config_path}")
|
|
215
|
-
|
|
216
|
-
except Exception as e:
|
|
217
|
-
logger.error(f"Failed to save configuration: {e}")
|
|
218
|
-
raise
|
|
219
|
-
|
|
220
|
-
def _validate_config(self, config: Dict[str, Any]) -> None:
|
|
221
|
-
"""Validate configuration against schema."""
|
|
222
|
-
if not HAS_JSONSCHEMA or not self._schema_cache:
|
|
223
|
-
return
|
|
224
|
-
|
|
225
|
-
try:
|
|
226
|
-
jsonschema.validate(config, self._schema_cache)
|
|
227
|
-
except jsonschema.ValidationError as e:
|
|
228
|
-
raise ValidationError(f"Configuration validation failed: {e.message}")
|
|
229
|
-
|
|
230
|
-
def _create_default_config(self) -> Dict[str, Any]:
|
|
231
|
-
"""Create default configuration."""
|
|
232
|
-
now = datetime.now(UTC).isoformat() + "Z"
|
|
233
|
-
|
|
234
|
-
return {
|
|
235
|
-
"version": "1.0.0",
|
|
236
|
-
"metadata": {"created_at": now, "updated_at": now, "migration_history": []},
|
|
237
|
-
"project_settings": {
|
|
238
|
-
"name": "MoAI Menu Project",
|
|
239
|
-
"type": "web",
|
|
240
|
-
"description": "Menu project management system",
|
|
241
|
-
"author": "MoAI Team",
|
|
242
|
-
"license": "MIT",
|
|
243
|
-
},
|
|
244
|
-
"batch_questions": {
|
|
245
|
-
"enabled": True,
|
|
246
|
-
"max_questions": 50,
|
|
247
|
-
"timeout_seconds": 300,
|
|
248
|
-
"retry_attempts": 3,
|
|
249
|
-
"output_format": "json",
|
|
250
|
-
"caching": {"enabled": True, "ttl_hours": 24, "max_cache_size_mb": 100},
|
|
251
|
-
},
|
|
252
|
-
"documentation": {
|
|
253
|
-
"auto_generate": True,
|
|
254
|
-
"format": "markdown",
|
|
255
|
-
"include_api_docs": True,
|
|
256
|
-
"include_examples": True,
|
|
257
|
-
"template_engine": "jinja2",
|
|
258
|
-
"output_directory": "docs",
|
|
259
|
-
},
|
|
260
|
-
"language_config": {
|
|
261
|
-
"default_language": "en",
|
|
262
|
-
"supported_languages": ["en", "ko", "ja", "zh"],
|
|
263
|
-
"auto_detect": True,
|
|
264
|
-
"fallback_language": "en",
|
|
265
|
-
"translation_service": {"provider": "local", "cache_enabled": True},
|
|
266
|
-
},
|
|
267
|
-
"template_optimizer": {
|
|
268
|
-
"enabled": True,
|
|
269
|
-
"optimization_level": "basic",
|
|
270
|
-
"minification": False,
|
|
271
|
-
"caching": {"enabled": True, "strategy": "memory", "ttl_minutes": 60},
|
|
272
|
-
"validation": {
|
|
273
|
-
"strict_mode": False,
|
|
274
|
-
"check_syntax": True,
|
|
275
|
-
"check_security": True,
|
|
276
|
-
},
|
|
277
|
-
},
|
|
278
|
-
"project_initializer": {
|
|
279
|
-
"auto_dependencies": True,
|
|
280
|
-
"git_init": True,
|
|
281
|
-
"create_virtual_env": True,
|
|
282
|
-
"package_managers": {"python": {"enabled": True, "tool": "pip"}},
|
|
283
|
-
},
|
|
284
|
-
}
|
|
285
|
-
|
|
286
|
-
def _update_metadata(self, config: Dict[str, Any]) -> None:
|
|
287
|
-
"""Update configuration metadata."""
|
|
288
|
-
if "metadata" not in config:
|
|
289
|
-
config["metadata"] = ConfigMetadata.create_new().__dict__
|
|
290
|
-
|
|
291
|
-
config["metadata"]["updated_at"] = datetime.now(UTC).isoformat() + "Z"
|
|
292
|
-
|
|
293
|
-
def _create_backup(self) -> None:
|
|
294
|
-
"""Create backup of current configuration."""
|
|
295
|
-
timestamp = datetime.now().strftime("%Y%m%d_%H%M%S")
|
|
296
|
-
backup_name = f"config_backup_{timestamp}.json"
|
|
297
|
-
backup_path = self.backup_dir / backup_name
|
|
298
|
-
|
|
299
|
-
try:
|
|
300
|
-
shutil.copy2(self.config_path, backup_path)
|
|
301
|
-
logger.info(f"Configuration backed up to {backup_path}")
|
|
302
|
-
except Exception as e:
|
|
303
|
-
logger.warning(f"Failed to create backup: {e}")
|
|
304
|
-
|
|
305
|
-
def get_module_config(self, module_name: str) -> Dict[str, Any]:
|
|
306
|
-
"""
|
|
307
|
-
Get configuration for specific module.
|
|
308
|
-
|
|
309
|
-
Args:
|
|
310
|
-
module_name: Name of module (e.g., 'batch_questions', 'documentation')
|
|
311
|
-
|
|
312
|
-
Returns:
|
|
313
|
-
Module configuration dictionary
|
|
314
|
-
"""
|
|
315
|
-
config = self.load_config()
|
|
316
|
-
|
|
317
|
-
# Handle nested modules
|
|
318
|
-
if module_name in config:
|
|
319
|
-
return config[module_name]
|
|
320
|
-
|
|
321
|
-
# Check for nested module names
|
|
322
|
-
for key, value in config.items():
|
|
323
|
-
if isinstance(value, dict) and module_name in value:
|
|
324
|
-
return value[module_name]
|
|
325
|
-
|
|
326
|
-
raise KeyError(f"Module '{module_name}' not found in configuration")
|
|
327
|
-
|
|
328
|
-
def update_module_config(self, module_name: str, updates: Dict[str, Any]) -> None:
|
|
329
|
-
"""
|
|
330
|
-
Update configuration for specific module.
|
|
331
|
-
|
|
332
|
-
Args:
|
|
333
|
-
module_name: Name of module to update
|
|
334
|
-
updates: Configuration updates to apply
|
|
335
|
-
"""
|
|
336
|
-
config = self.load_config()
|
|
337
|
-
|
|
338
|
-
# Deep merge updates
|
|
339
|
-
if module_name not in config:
|
|
340
|
-
config[module_name] = {}
|
|
341
|
-
|
|
342
|
-
config[module_name].update(updates)
|
|
343
|
-
|
|
344
|
-
self.save_config(config)
|
|
345
|
-
|
|
346
|
-
def migrate_config(self, target_version: str) -> None:
|
|
347
|
-
"""
|
|
348
|
-
Migrate configuration to target version.
|
|
349
|
-
|
|
350
|
-
Args:
|
|
351
|
-
target_version: Target version to migrate to
|
|
352
|
-
"""
|
|
353
|
-
config = self.load_config()
|
|
354
|
-
current_version = config.get("version", "1.0.0")
|
|
355
|
-
|
|
356
|
-
if current_version == target_version:
|
|
357
|
-
logger.info("Configuration already at target version")
|
|
358
|
-
return
|
|
359
|
-
|
|
360
|
-
# Record migration in history
|
|
361
|
-
migration_record = {
|
|
362
|
-
"from_version": current_version,
|
|
363
|
-
"to_version": target_version,
|
|
364
|
-
"timestamp": datetime.now(UTC).isoformat() + "Z",
|
|
365
|
-
"description": f"Migrated from {current_version} to {target_version}",
|
|
366
|
-
}
|
|
367
|
-
|
|
368
|
-
if "metadata" not in config:
|
|
369
|
-
config["metadata"] = ConfigMetadata.create_new().__dict__
|
|
370
|
-
|
|
371
|
-
config["metadata"]["migration_history"].append(migration_record)
|
|
372
|
-
config["version"] = target_version
|
|
373
|
-
|
|
374
|
-
# Perform actual migration logic here
|
|
375
|
-
# This would be version-specific
|
|
376
|
-
|
|
377
|
-
self.save_config(config)
|
|
378
|
-
logger.info(f"Configuration migrated to version {target_version}")
|
|
379
|
-
|
|
380
|
-
def restore_backup(self, backup_name: str) -> None:
|
|
381
|
-
"""
|
|
382
|
-
Restore configuration from backup.
|
|
383
|
-
|
|
384
|
-
Args:
|
|
385
|
-
backup_name: Name of backup file to restore
|
|
386
|
-
"""
|
|
387
|
-
backup_path = self.backup_dir / backup_name
|
|
388
|
-
|
|
389
|
-
if not backup_path.exists():
|
|
390
|
-
raise FileNotFoundError(f"Backup file '{backup_name}' not found")
|
|
391
|
-
|
|
392
|
-
try:
|
|
393
|
-
shutil.copy2(backup_path, self.config_path)
|
|
394
|
-
self._invalidate_cache()
|
|
395
|
-
logger.info(f"Configuration restored from {backup_name}")
|
|
396
|
-
except Exception as e:
|
|
397
|
-
logger.error(f"Failed to restore backup: {e}")
|
|
398
|
-
raise
|
|
399
|
-
|
|
400
|
-
def list_backups(self) -> List[str]:
|
|
401
|
-
"""List available backup files."""
|
|
402
|
-
if not self.backup_dir.exists():
|
|
403
|
-
return []
|
|
404
|
-
|
|
405
|
-
backups = []
|
|
406
|
-
for file_path in self.backup_dir.glob("config_backup_*.json"):
|
|
407
|
-
backups.append(file_path.name)
|
|
408
|
-
|
|
409
|
-
return sorted(backups, reverse=True)
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
# Specialized Module Managers
|
|
413
|
-
class BatchQuestionsConfigManager:
|
|
414
|
-
"""Specialized manager for batch questions configuration."""
|
|
415
|
-
|
|
416
|
-
def __init__(self, config_manager: UnifiedConfigManager):
|
|
417
|
-
self.config_manager = config_manager
|
|
418
|
-
|
|
419
|
-
def get_config(self) -> Dict[str, Any]:
|
|
420
|
-
"""Get batch questions configuration."""
|
|
421
|
-
return self.config_manager.get_module_config("batch_questions")
|
|
422
|
-
|
|
423
|
-
def update_config(self, updates: Dict[str, Any]) -> None:
|
|
424
|
-
"""Update batch questions configuration."""
|
|
425
|
-
self.config_manager.update_module_config("batch_questions", updates)
|
|
426
|
-
|
|
427
|
-
def is_enabled(self) -> bool:
|
|
428
|
-
"""Check if batch questions is enabled."""
|
|
429
|
-
return self.get_config().get("enabled", True)
|
|
430
|
-
|
|
431
|
-
def get_max_questions(self) -> int:
|
|
432
|
-
"""Get maximum questions limit."""
|
|
433
|
-
return self.get_config().get("max_questions", 50)
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
class DocumentationConfigManager:
|
|
437
|
-
"""Specialized manager for documentation configuration."""
|
|
438
|
-
|
|
439
|
-
def __init__(self, config_manager: UnifiedConfigManager):
|
|
440
|
-
self.config_manager = config_manager
|
|
441
|
-
|
|
442
|
-
def get_config(self) -> Dict[str, Any]:
|
|
443
|
-
"""Get documentation configuration."""
|
|
444
|
-
return self.config_manager.get_module_config("documentation")
|
|
445
|
-
|
|
446
|
-
def update_config(self, updates: Dict[str, Any]) -> None:
|
|
447
|
-
"""Update documentation configuration."""
|
|
448
|
-
self.config_manager.update_module_config("documentation", updates)
|
|
449
|
-
|
|
450
|
-
def should_auto_generate(self) -> bool:
|
|
451
|
-
"""Check if auto-generation is enabled."""
|
|
452
|
-
return self.get_config().get("auto_generate", True)
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
class LanguageConfigManager:
|
|
456
|
-
"""Specialized manager for language configuration."""
|
|
457
|
-
|
|
458
|
-
def __init__(self, config_manager: UnifiedConfigManager):
|
|
459
|
-
self.config_manager = config_manager
|
|
460
|
-
|
|
461
|
-
def get_config(self) -> Dict[str, Any]:
|
|
462
|
-
"""Get language configuration."""
|
|
463
|
-
return self.config_manager.get_module_config("language_config")
|
|
464
|
-
|
|
465
|
-
def update_config(self, updates: Dict[str, Any]) -> None:
|
|
466
|
-
"""Update language configuration."""
|
|
467
|
-
self.config_manager.update_module_config("language_config", updates)
|
|
468
|
-
|
|
469
|
-
def get_default_language(self) -> str:
|
|
470
|
-
"""Get default language."""
|
|
471
|
-
return self.get_config().get("default_language", "en")
|
|
472
|
-
|
|
473
|
-
def get_supported_languages(self) -> List[str]:
|
|
474
|
-
"""Get list of supported languages."""
|
|
475
|
-
return self.get_config().get("supported_languages", ["en"])
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
class TemplateOptimizerConfigManager:
|
|
479
|
-
"""Specialized manager for template optimizer configuration."""
|
|
480
|
-
|
|
481
|
-
def __init__(self, config_manager: UnifiedConfigManager):
|
|
482
|
-
self.config_manager = config_manager
|
|
483
|
-
|
|
484
|
-
def get_config(self) -> Dict[str, Any]:
|
|
485
|
-
"""Get template optimizer configuration."""
|
|
486
|
-
return self.config_manager.get_module_config("template_optimizer")
|
|
487
|
-
|
|
488
|
-
def update_config(self, updates: Dict[str, Any]) -> None:
|
|
489
|
-
"""Update template optimizer configuration."""
|
|
490
|
-
self.config_manager.update_module_config("template_optimizer", updates)
|
|
491
|
-
|
|
492
|
-
def get_optimization_level(self) -> str:
|
|
493
|
-
"""Get optimization level."""
|
|
494
|
-
return self.get_config().get("optimization_level", "basic")
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
class ProjectInitializerConfigManager:
|
|
498
|
-
"""Specialized manager for project initializer configuration."""
|
|
499
|
-
|
|
500
|
-
def __init__(self, config_manager: UnifiedConfigManager):
|
|
501
|
-
self.config_manager = config_manager
|
|
502
|
-
|
|
503
|
-
def get_config(self) -> Dict[str, Any]:
|
|
504
|
-
"""Get project initializer configuration."""
|
|
505
|
-
return self.config_manager.get_module_config("project_initializer")
|
|
506
|
-
|
|
507
|
-
def update_config(self, updates: Dict[str, Any]) -> None:
|
|
508
|
-
"""Update project initializer configuration."""
|
|
509
|
-
self.config_manager.update_module_config("project_initializer", updates)
|
|
510
|
-
|
|
511
|
-
def should_auto_dependencies(self) -> bool:
|
|
512
|
-
"""Check if auto-dependency installation is enabled."""
|
|
513
|
-
return self.get_config().get("auto_dependencies", True)
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
# Factory function
|
|
517
|
-
def create_config_manager(config_dir: Union[str, Path]) -> UnifiedConfigManager:
|
|
518
|
-
"""
|
|
519
|
-
Create unified configuration manager with default schema.
|
|
520
|
-
|
|
521
|
-
Args:
|
|
522
|
-
config_dir: Directory containing configuration files
|
|
523
|
-
|
|
524
|
-
Returns:
|
|
525
|
-
Configured UnifiedConfigManager instance
|
|
526
|
-
"""
|
|
527
|
-
config_dir = Path(config_dir)
|
|
528
|
-
config_path = config_dir / "config.json"
|
|
529
|
-
schema_path = config_dir / "schemas" / "config-schema.json"
|
|
530
|
-
|
|
531
|
-
return UnifiedConfigManager(config_path, schema_path)
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
# Convenience access functions
|
|
535
|
-
@lru_cache(maxsize=32)
|
|
536
|
-
def get_config_manager(config_path: str) -> UnifiedConfigManager:
|
|
537
|
-
"""Get cached configuration manager instance."""
|
|
538
|
-
return UnifiedConfigManager(config_path)
|