blockmine 1.20.0 → 1.22.0
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/.claude/agents/README.md +469 -0
- package/.claude/agents/auth-route-debugger.md +118 -0
- package/.claude/agents/auth-route-tester.md +93 -0
- package/.claude/agents/auto-error-resolver.md +97 -0
- package/.claude/agents/build-optimizer.md +236 -0
- package/.claude/agents/code-architecture-reviewer.md +83 -0
- package/.claude/agents/code-refactor-master.md +94 -0
- package/.claude/agents/cost-optimizer.md +134 -0
- package/.claude/agents/deployment-orchestrator.md +113 -0
- package/.claude/agents/documentation-architect.md +82 -0
- package/.claude/agents/frontend-error-fixer.md +77 -0
- package/.claude/agents/iac-code-generator.md +71 -0
- package/.claude/agents/incident-responder.md +346 -0
- package/.claude/agents/infrastructure-architect.md +31 -0
- package/.claude/agents/kubernetes-specialist.md +56 -0
- package/.claude/agents/migration-planner.md +181 -0
- package/.claude/agents/network-architect.md +196 -0
- package/.claude/agents/plan-reviewer.md +52 -0
- package/.claude/agents/refactor-planner.md +63 -0
- package/.claude/agents/security-scanner.md +102 -0
- package/.claude/agents/web-research-specialist.md +78 -0
- package/.claude/commands/cost-analysis.md +315 -0
- package/.claude/commands/dev-docs-update.md +55 -0
- package/.claude/commands/dev-docs.md +51 -0
- package/.claude/commands/incident-debug.md +247 -0
- package/.claude/commands/infra-plan.md +81 -0
- package/.claude/commands/migration-plan.md +478 -0
- package/.claude/commands/route-research-for-testing.md +37 -0
- package/.claude/commands/security-review.md +66 -0
- package/.claude/hooks/CONFIG.md +448 -0
- package/.claude/hooks/README.md +163 -0
- package/.claude/hooks/SKILL_ACTIVATION_COMPLETE.md +226 -0
- package/.claude/hooks/WINDOWS_HOOKS_README.md +151 -0
- package/.claude/hooks/add-skill-activation-banners.ts +132 -0
- package/.claude/hooks/comprehensive-skill-test.ts +1315 -0
- package/.claude/hooks/error-handling-reminder.sh +12 -0
- package/.claude/hooks/error-handling-reminder.ts +222 -0
- package/.claude/hooks/k8s-manifest-validator.sh +56 -0
- package/.claude/hooks/package-lock.json +556 -0
- package/.claude/hooks/package.json +16 -0
- package/.claude/hooks/post-tool-use-tracker.ps1 +174 -0
- package/.claude/hooks/post-tool-use-tracker.sh +183 -0
- package/.claude/hooks/security-policy-check.sh +247 -0
- package/.claude/hooks/skill-activation-prompt.ps1 +10 -0
- package/.claude/hooks/skill-activation-prompt.sh +10 -0
- package/.claude/hooks/skill-activation-prompt.ts +141 -0
- package/.claude/hooks/stop-build-check-enhanced.sh +130 -0
- package/.claude/hooks/terraform-validator.sh +53 -0
- package/.claude/hooks/test-input.json +7 -0
- package/.claude/hooks/test-skill-activation.ts +427 -0
- package/.claude/hooks/trigger-build-resolver.sh +79 -0
- package/.claude/hooks/tsc-check.sh +173 -0
- package/.claude/hooks/tsconfig.json +19 -0
- package/.claude/settings.json +55 -0
- package/.claude/settings.local.json +28 -3
- package/.claude/skills/README.md +507 -0
- package/.claude/skills/api-engineering/SKILL.md +63 -0
- package/.claude/skills/api-engineering/resources/api-versioning.md +88 -0
- package/.claude/skills/api-engineering/resources/graphql-patterns.md +106 -0
- package/.claude/skills/api-engineering/resources/rate-limiting.md +118 -0
- package/.claude/skills/api-engineering/resources/rest-api-design.md +105 -0
- package/.claude/skills/backend-dev-guidelines/SKILL.md +306 -0
- package/.claude/skills/backend-dev-guidelines/resources/architecture-overview.md +451 -0
- package/.claude/skills/backend-dev-guidelines/resources/async-and-errors.md +307 -0
- package/.claude/skills/backend-dev-guidelines/resources/complete-examples.md +638 -0
- package/.claude/skills/backend-dev-guidelines/resources/configuration.md +275 -0
- package/.claude/skills/backend-dev-guidelines/resources/database-patterns.md +224 -0
- package/.claude/skills/backend-dev-guidelines/resources/middleware-guide.md +213 -0
- package/.claude/skills/backend-dev-guidelines/resources/routing-and-controllers.md +756 -0
- package/.claude/skills/backend-dev-guidelines/resources/sentry-and-monitoring.md +336 -0
- package/.claude/skills/backend-dev-guidelines/resources/services-and-repositories.md +789 -0
- package/.claude/skills/backend-dev-guidelines/resources/testing-guide.md +235 -0
- package/.claude/skills/backend-dev-guidelines/resources/validation-patterns.md +754 -0
- package/.claude/skills/budget-and-cost-management/SKILL.md +850 -0
- package/.claude/skills/build-engineering/SKILL.md +431 -0
- package/.claude/skills/build-engineering/resources/artifact-repositories.md +72 -0
- package/.claude/skills/build-engineering/resources/build-caching.md +96 -0
- package/.claude/skills/build-engineering/resources/build-pipelines.md +105 -0
- package/.claude/skills/build-engineering/resources/build-security.md +95 -0
- package/.claude/skills/build-engineering/resources/build-systems.md +389 -0
- package/.claude/skills/build-engineering/resources/compilation-optimization.md +201 -0
- package/.claude/skills/build-engineering/resources/dependency-management.md +73 -0
- package/.claude/skills/build-engineering/resources/monorepo-builds.md +110 -0
- package/.claude/skills/build-engineering/resources/performance-optimization.md +113 -0
- package/.claude/skills/build-engineering/resources/reproducible-builds.md +82 -0
- package/.claude/skills/cloud-engineering/SKILL.md +675 -0
- package/.claude/skills/cloud-engineering/resources/aws-patterns.md +742 -0
- package/.claude/skills/cloud-engineering/resources/azure-patterns.md +714 -0
- package/.claude/skills/cloud-engineering/resources/cleared-cloud-environments.md +987 -0
- package/.claude/skills/cloud-engineering/resources/cloud-cost-optimization.md +757 -0
- package/.claude/skills/cloud-engineering/resources/cloud-networking.md +1058 -0
- package/.claude/skills/cloud-engineering/resources/cloud-security-tools.md +1530 -0
- package/.claude/skills/cloud-engineering/resources/cloud-security.md +990 -0
- package/.claude/skills/cloud-engineering/resources/gcp-patterns.md +758 -0
- package/.claude/skills/cloud-engineering/resources/migration-strategies.md +820 -0
- package/.claude/skills/cloud-engineering/resources/multi-cloud-strategies.md +670 -0
- package/.claude/skills/cloud-engineering/resources/oci-patterns.md +1198 -0
- package/.claude/skills/cloud-engineering/resources/serverless-patterns.md +795 -0
- package/.claude/skills/cloud-engineering/resources/well-architected-frameworks.md +966 -0
- package/.claude/skills/cybersecurity/SKILL.md +409 -0
- package/.claude/skills/cybersecurity/resources/security-architecture.md +266 -0
- package/.claude/skills/database-engineering/SKILL.md +61 -0
- package/.claude/skills/database-engineering/resources/backup-and-recovery.md +72 -0
- package/.claude/skills/database-engineering/resources/database-replication.md +63 -0
- package/.claude/skills/database-engineering/resources/postgresql-fundamentals.md +70 -0
- package/.claude/skills/database-engineering/resources/query-optimization.md +68 -0
- package/.claude/skills/devsecops/SKILL.md +374 -0
- package/.claude/skills/devsecops/resources/ci-cd-security.md +204 -0
- package/.claude/skills/devsecops/resources/compliance-automation.md +530 -0
- package/.claude/skills/devsecops/resources/compliance-frameworks.md +2322 -0
- package/.claude/skills/devsecops/resources/container-security.md +915 -0
- package/.claude/skills/devsecops/resources/cspm-integration.md +1440 -0
- package/.claude/skills/devsecops/resources/policy-enforcement.md +619 -0
- package/.claude/skills/devsecops/resources/secrets-management.md +755 -0
- package/.claude/skills/devsecops/resources/security-monitoring.md +146 -0
- package/.claude/skills/devsecops/resources/security-scanning.md +887 -0
- package/.claude/skills/devsecops/resources/security-testing.md +203 -0
- package/.claude/skills/devsecops/resources/supply-chain-security.md +518 -0
- package/.claude/skills/devsecops/resources/vulnerability-management.md +481 -0
- package/.claude/skills/devsecops/resources/zero-trust-architecture.md +177 -0
- package/.claude/skills/documentation-as-code/SKILL.md +323 -0
- package/.claude/skills/documentation-as-code/resources/api-documentation.md +90 -0
- package/.claude/skills/documentation-as-code/resources/changelog-management.md +79 -0
- package/.claude/skills/documentation-as-code/resources/diagram-generation.md +44 -0
- package/.claude/skills/documentation-as-code/resources/docs-as-code-workflow.md +99 -0
- package/.claude/skills/documentation-as-code/resources/documentation-automation.md +68 -0
- package/.claude/skills/documentation-as-code/resources/documentation-sites.md +79 -0
- package/.claude/skills/documentation-as-code/resources/markdown-best-practices.md +162 -0
- package/.claude/skills/documentation-as-code/resources/openapi-specification.md +77 -0
- package/.claude/skills/documentation-as-code/resources/readme-engineering.md +60 -0
- package/.claude/skills/documentation-as-code/resources/technical-writing-guide.md +202 -0
- package/.claude/skills/engineering-management/SKILL.md +356 -0
- package/.claude/skills/engineering-management/resources/career-ladders.md +609 -0
- package/.claude/skills/engineering-management/resources/hiring-and-assessment.md +555 -0
- package/.claude/skills/engineering-management/resources/one-on-one-guides.md +609 -0
- package/.claude/skills/engineering-management/resources/resource-planning.md +557 -0
- package/.claude/skills/engineering-management/resources/team-organization-patterns.md +491 -0
- package/.claude/skills/engineering-management/resources/technical-interviews.md +474 -0
- package/.claude/skills/engineering-operations-management/SKILL.md +817 -0
- package/.claude/skills/error-tracking/SKILL.md +379 -0
- package/.claude/skills/frontend-dev-guidelines/SKILL.md +403 -0
- package/.claude/skills/frontend-dev-guidelines/resources/common-patterns.md +331 -0
- package/.claude/skills/frontend-dev-guidelines/resources/complete-examples.md +872 -0
- package/.claude/skills/frontend-dev-guidelines/resources/component-patterns.md +502 -0
- package/.claude/skills/frontend-dev-guidelines/resources/data-fetching.md +767 -0
- package/.claude/skills/frontend-dev-guidelines/resources/file-organization.md +502 -0
- package/.claude/skills/frontend-dev-guidelines/resources/loading-and-error-states.md +501 -0
- package/.claude/skills/frontend-dev-guidelines/resources/performance.md +406 -0
- package/.claude/skills/frontend-dev-guidelines/resources/routing-guide.md +364 -0
- package/.claude/skills/frontend-dev-guidelines/resources/styling-guide.md +428 -0
- package/.claude/skills/frontend-dev-guidelines/resources/typescript-standards.md +418 -0
- package/.claude/skills/general-it-engineering/SKILL.md +393 -0
- package/.claude/skills/general-it-engineering/resources/asset-management.md +712 -0
- package/.claude/skills/general-it-engineering/resources/automation-orchestration.md +817 -0
- package/.claude/skills/general-it-engineering/resources/business-continuity.md +786 -0
- package/.claude/skills/general-it-engineering/resources/change-management.md +715 -0
- package/.claude/skills/general-it-engineering/resources/enterprise-monitoring.md +729 -0
- package/.claude/skills/general-it-engineering/resources/help-desk-operations.md +738 -0
- package/.claude/skills/general-it-engineering/resources/incident-service-management.md +834 -0
- package/.claude/skills/general-it-engineering/resources/it-governance.md +753 -0
- package/.claude/skills/general-it-engineering/resources/itil-framework.md +503 -0
- package/.claude/skills/general-it-engineering/resources/service-management.md +669 -0
- package/.claude/skills/infrastructure-architecture/SKILL.md +328 -0
- package/.claude/skills/infrastructure-architecture/resources/architecture-decision-records.md +505 -0
- package/.claude/skills/infrastructure-architecture/resources/architecture-patterns.md +528 -0
- package/.claude/skills/infrastructure-architecture/resources/capacity-planning.md +453 -0
- package/.claude/skills/infrastructure-architecture/resources/cleared-environment-architecture.md +773 -0
- package/.claude/skills/infrastructure-architecture/resources/cost-architecture.md +499 -0
- package/.claude/skills/infrastructure-architecture/resources/data-architecture.md +501 -0
- package/.claude/skills/infrastructure-architecture/resources/disaster-recovery.md +535 -0
- package/.claude/skills/infrastructure-architecture/resources/migration-architecture.md +512 -0
- package/.claude/skills/infrastructure-architecture/resources/multi-region-design.md +608 -0
- package/.claude/skills/infrastructure-architecture/resources/reference-architectures.md +562 -0
- package/.claude/skills/infrastructure-architecture/resources/security-architecture.md +538 -0
- package/.claude/skills/infrastructure-architecture/resources/system-design-principles.md +489 -0
- package/.claude/skills/infrastructure-architecture/resources/workload-classification.md +1000 -0
- package/.claude/skills/infrastructure-strategy/SKILL.md +924 -0
- package/.claude/skills/network-engineering/SKILL.md +385 -0
- package/.claude/skills/network-engineering/resources/dns-management.md +738 -0
- package/.claude/skills/network-engineering/resources/load-balancing.md +820 -0
- package/.claude/skills/network-engineering/resources/network-architecture.md +546 -0
- package/.claude/skills/network-engineering/resources/network-security.md +921 -0
- package/.claude/skills/network-engineering/resources/network-troubleshooting.md +749 -0
- package/.claude/skills/network-engineering/resources/routing-switching.md +373 -0
- package/.claude/skills/network-engineering/resources/sdn-networking.md +695 -0
- package/.claude/skills/network-engineering/resources/service-mesh-networking.md +777 -0
- package/.claude/skills/network-engineering/resources/tcp-ip-protocols.md +444 -0
- package/.claude/skills/network-engineering/resources/vpn-connectivity.md +672 -0
- package/.claude/skills/observability-engineering/SKILL.md +101 -0
- package/.claude/skills/observability-engineering/resources/apm-tools.md +97 -0
- package/.claude/skills/observability-engineering/resources/correlation-strategies.md +87 -0
- package/.claude/skills/observability-engineering/resources/distributed-tracing.md +98 -0
- package/.claude/skills/observability-engineering/resources/logs-aggregation.md +118 -0
- package/.claude/skills/observability-engineering/resources/observability-cost-optimization.md +141 -0
- package/.claude/skills/observability-engineering/resources/opentelemetry.md +110 -0
- package/.claude/skills/platform-engineering/SKILL.md +555 -0
- package/.claude/skills/platform-engineering/resources/architecture-overview.md +600 -0
- package/.claude/skills/platform-engineering/resources/container-orchestration.md +916 -0
- package/.claude/skills/platform-engineering/resources/cost-optimization.md +634 -0
- package/.claude/skills/platform-engineering/resources/developer-platforms.md +670 -0
- package/.claude/skills/platform-engineering/resources/gitops-automation.md +650 -0
- package/.claude/skills/platform-engineering/resources/infrastructure-as-code.md +778 -0
- package/.claude/skills/platform-engineering/resources/infrastructure-standards.md +708 -0
- package/.claude/skills/platform-engineering/resources/multi-tenancy.md +602 -0
- package/.claude/skills/platform-engineering/resources/platform-security.md +711 -0
- package/.claude/skills/platform-engineering/resources/resource-management.md +592 -0
- package/.claude/skills/platform-engineering/resources/service-mesh.md +628 -0
- package/.claude/skills/release-engineering/SKILL.md +393 -0
- package/.claude/skills/release-engineering/resources/artifact-management.md +108 -0
- package/.claude/skills/release-engineering/resources/build-optimization.md +84 -0
- package/.claude/skills/release-engineering/resources/ci-cd-pipelines.md +411 -0
- package/.claude/skills/release-engineering/resources/deployment-strategies.md +197 -0
- package/.claude/skills/release-engineering/resources/pipeline-security.md +62 -0
- package/.claude/skills/release-engineering/resources/progressive-delivery.md +83 -0
- package/.claude/skills/release-engineering/resources/release-automation.md +68 -0
- package/.claude/skills/release-engineering/resources/release-orchestration.md +77 -0
- package/.claude/skills/release-engineering/resources/rollback-strategies.md +66 -0
- package/.claude/skills/release-engineering/resources/versioning-strategies.md +59 -0
- package/.claude/skills/route-tester/SKILL.md +392 -0
- package/.claude/skills/skill-developer/ADVANCED.md +197 -0
- package/.claude/skills/skill-developer/HOOK_MECHANISMS.md +306 -0
- package/.claude/skills/skill-developer/PATTERNS_LIBRARY.md +152 -0
- package/.claude/skills/skill-developer/SKILL.md +430 -0
- package/.claude/skills/skill-developer/SKILL_RULES_REFERENCE.md +315 -0
- package/.claude/skills/skill-developer/TRIGGER_TYPES.md +305 -0
- package/.claude/skills/skill-developer/TROUBLESHOOTING.md +514 -0
- package/.claude/skills/skill-rules.json +2940 -0
- package/.claude/skills/sre/SKILL.md +464 -0
- package/.claude/skills/sre/resources/alerting-best-practices.md +282 -0
- package/.claude/skills/sre/resources/capacity-planning.md +226 -0
- package/.claude/skills/sre/resources/chaos-engineering.md +193 -0
- package/.claude/skills/sre/resources/disaster-recovery.md +232 -0
- package/.claude/skills/sre/resources/incident-management.md +436 -0
- package/.claude/skills/sre/resources/observability-stack.md +240 -0
- package/.claude/skills/sre/resources/on-call-runbooks.md +167 -0
- package/.claude/skills/sre/resources/performance-optimization.md +108 -0
- package/.claude/skills/sre/resources/reliability-patterns.md +183 -0
- package/.claude/skills/sre/resources/slo-sli-sla.md +464 -0
- package/.claude/skills/sre/resources/toil-reduction.md +145 -0
- package/.claude/skills/systems-engineering/SKILL.md +648 -0
- package/.claude/skills/systems-engineering/resources/automation-patterns.md +771 -0
- package/.claude/skills/systems-engineering/resources/configuration-management.md +998 -0
- package/.claude/skills/systems-engineering/resources/linux-administration.md +672 -0
- package/.claude/skills/systems-engineering/resources/networking-fundamentals.md +982 -0
- package/.claude/skills/systems-engineering/resources/performance-tuning.md +871 -0
- package/.claude/skills/systems-engineering/resources/powershell-scripting.md +482 -0
- package/.claude/skills/systems-engineering/resources/security-hardening.md +739 -0
- package/.claude/skills/systems-engineering/resources/shell-scripting.md +915 -0
- package/.claude/skills/systems-engineering/resources/storage-management.md +628 -0
- package/.claude/skills/systems-engineering/resources/system-monitoring.md +787 -0
- package/.claude/skills/systems-engineering/resources/troubleshooting-guide.md +753 -0
- package/.claude/skills/systems-engineering/resources/windows-administration.md +738 -0
- package/.claude/skills/technical-leadership/SKILL.md +728 -0
- package/CHANGELOG.md +90 -39
- package/README.md +94 -0
- package/backend/docs/SECRETS_DOCUMENTATION.md +327 -0
- package/backend/jest.config.js +59 -0
- package/backend/package-lock.json +6129 -0
- package/backend/package.json +16 -4
- package/backend/prisma/migrations/20251026104609_add_websocket_api/migration.sql +33 -0
- package/backend/prisma/schema.prisma +33 -0
- package/backend/src/__tests__/core/DependencyService.test.js +336 -0
- package/backend/src/__tests__/core/UserService.test.js +875 -0
- package/backend/src/__tests__/repositories/BaseRepository.test.js +146 -0
- package/backend/src/__tests__/repositories/BotRepository.test.js +118 -0
- package/backend/src/__tests__/repositories/CommandRepository.test.js +132 -0
- package/backend/src/__tests__/repositories/EventGraphRepository.test.js +93 -0
- package/backend/src/__tests__/repositories/GroupRepository.test.js +155 -0
- package/backend/src/__tests__/repositories/PermissionRepository.test.js +130 -0
- package/backend/src/__tests__/repositories/PluginRepository.test.js +107 -0
- package/backend/src/__tests__/repositories/ServerRepository.test.js +80 -0
- package/backend/src/__tests__/repositories/UserRepository.test.js +128 -0
- package/backend/src/__tests__/secretsFilter.test.js +425 -0
- package/backend/src/__tests__/services/BotLifecycleService.test.js +411 -0
- package/backend/src/__tests__/services/BotProcessManager.test.js +285 -0
- package/backend/src/__tests__/services/CacheManager.test.js +125 -0
- package/backend/src/__tests__/services/CommandExecutionService.test.js +460 -0
- package/backend/src/__tests__/services/ResourceMonitorService.test.js +207 -0
- package/backend/src/__tests__/services/TelemetryService.test.js +291 -0
- package/backend/src/__tests__/setup.js +25 -0
- package/backend/src/api/routes/apiKeys.js +181 -0
- package/backend/src/api/routes/bots.js +49 -7
- package/backend/src/api/routes/plugins.js +2 -1
- package/backend/src/api/routes/system.js +174 -0
- package/backend/src/container.js +82 -0
- package/backend/src/core/BotManager.js +142 -871
- package/backend/src/core/BotManager.old.js +1093 -0
- package/backend/src/core/BotProcess.js +1092 -850
- package/backend/src/core/BreakLoopSignal.js +8 -0
- package/backend/src/core/EventGraphManager.js +280 -193
- package/backend/src/core/GraphExecutionEngine.js +321 -928
- package/backend/src/core/MessageQueue.js +27 -6
- package/backend/src/core/NodeRegistry.js +37 -991
- package/backend/src/core/PluginManager.js +62 -12
- package/backend/src/core/PrismaService.js +32 -0
- package/backend/src/core/UserService.js +3 -3
- package/backend/src/core/__tests__/PrismaService.test.js +24 -0
- package/backend/src/core/commands/README.md +305 -0
- package/backend/src/core/commands/dev.js +13 -7
- package/backend/src/core/commands/ping.js +10 -4
- package/backend/src/core/commands/whois.js +63 -0
- package/backend/src/core/config/validation.js +27 -0
- package/backend/src/core/constants/graphTypes.js +21 -0
- package/backend/src/core/node-registries/actions.js +132 -0
- package/backend/src/core/node-registries/arrays.js +137 -0
- package/backend/src/core/node-registries/bot.js +23 -0
- package/backend/src/core/node-registries/data.js +290 -0
- package/backend/src/core/node-registries/debug.js +26 -0
- package/backend/src/core/node-registries/events.js +187 -0
- package/backend/src/core/node-registries/flow.js +139 -0
- package/backend/src/core/node-registries/logic.js +45 -0
- package/backend/src/core/node-registries/math.js +42 -0
- package/backend/src/core/node-registries/objects.js +98 -0
- package/backend/src/core/node-registries/strings.js +153 -0
- package/backend/src/core/node-registries/time.js +113 -0
- package/backend/src/core/node-registries/users.js +79 -0
- package/backend/src/core/nodes/actions/bot_look_at.js +36 -0
- package/backend/src/core/nodes/actions/bot_set_variable.js +32 -0
- package/backend/src/core/nodes/actions/http_request.js +98 -0
- package/backend/src/core/nodes/actions/send_log.js +28 -0
- package/backend/src/core/nodes/actions/send_message.js +32 -0
- package/backend/src/core/nodes/actions/send_websocket_response.js +33 -0
- package/backend/src/core/nodes/arrays/add_element.js +23 -0
- package/backend/src/core/nodes/arrays/contains.js +40 -0
- package/backend/src/core/nodes/arrays/find_index.js +23 -0
- package/backend/src/core/nodes/arrays/get_by_index.js +23 -0
- package/backend/src/core/nodes/arrays/get_next.js +35 -0
- package/backend/src/core/nodes/arrays/get_random_element.js +32 -0
- package/backend/src/core/nodes/arrays/remove_by_index.js +30 -0
- package/backend/src/core/nodes/bot/get_position.js +20 -0
- package/backend/src/core/nodes/data/array_literal.js +31 -0
- package/backend/src/core/nodes/data/boolean_literal.js +21 -0
- package/backend/src/core/nodes/data/cast.js +42 -0
- package/backend/src/core/nodes/data/datetime_literal.js +27 -0
- package/backend/src/core/nodes/data/entity_info.js +69 -0
- package/backend/src/core/nodes/data/get_argument.js +23 -0
- package/backend/src/core/nodes/data/get_bot_look.js +14 -0
- package/backend/src/core/nodes/data/get_entity_field.js +18 -0
- package/backend/src/core/nodes/data/get_nearby_entities.js +32 -0
- package/backend/src/core/nodes/data/get_nearby_players.js +64 -0
- package/backend/src/core/nodes/data/get_server_players.js +18 -0
- package/backend/src/core/nodes/data/get_user_field.js +40 -0
- package/backend/src/core/nodes/data/get_variable.js +23 -0
- package/backend/src/core/nodes/data/length.js +25 -0
- package/backend/src/core/nodes/data/make_object.js +31 -0
- package/backend/src/core/nodes/data/number_literal.js +21 -0
- package/backend/src/core/nodes/data/string_literal.js +34 -0
- package/backend/src/core/nodes/data/type_check.js +53 -0
- package/backend/src/core/nodes/debug/log.js +16 -0
- package/backend/src/core/nodes/flow/branch.js +15 -0
- package/backend/src/core/nodes/flow/break.js +14 -0
- package/backend/src/core/nodes/flow/delay.js +43 -0
- package/backend/src/core/nodes/flow/for_each.js +39 -0
- package/backend/src/core/nodes/flow/sequence.js +16 -0
- package/backend/src/core/nodes/flow/switch.js +47 -0
- package/backend/src/core/nodes/flow/while.js +64 -0
- package/backend/src/core/nodes/logic/__tests__/compare.test.js +83 -0
- package/backend/src/core/nodes/logic/compare.js +33 -0
- package/backend/src/core/nodes/logic/operation.js +35 -0
- package/backend/src/core/nodes/math/__tests__/operation.test.js +65 -0
- package/backend/src/core/nodes/math/operation.js +31 -0
- package/backend/src/core/nodes/math/random_number.js +43 -0
- package/backend/src/core/nodes/objects/create.js +40 -0
- package/backend/src/core/nodes/objects/delete.js +26 -0
- package/backend/src/core/nodes/objects/get.js +23 -0
- package/backend/src/core/nodes/objects/has_key.js +30 -0
- package/backend/src/core/nodes/objects/set.js +27 -0
- package/backend/src/core/nodes/strings/__tests__/concat.test.js +89 -0
- package/backend/src/core/nodes/strings/concat.js +27 -0
- package/backend/src/core/nodes/strings/contains.js +41 -0
- package/backend/src/core/nodes/strings/ends_with.js +43 -0
- package/backend/src/core/nodes/strings/equals.js +36 -0
- package/backend/src/core/nodes/strings/length.js +36 -0
- package/backend/src/core/nodes/strings/matches.js +39 -0
- package/backend/src/core/nodes/strings/split.js +37 -0
- package/backend/src/core/nodes/strings/starts_with.js +43 -0
- package/backend/src/core/nodes/time/__tests__/now.test.js +24 -0
- package/backend/src/core/nodes/time/add.js +33 -0
- package/backend/src/core/nodes/time/compare.js +35 -0
- package/backend/src/core/nodes/time/diff.js +29 -0
- package/backend/src/core/nodes/time/format.js +32 -0
- package/backend/src/core/nodes/time/now.js +18 -0
- package/backend/src/core/nodes/users/check_blacklist.js +37 -0
- package/backend/src/core/nodes/users/get_groups.js +36 -0
- package/backend/src/core/nodes/users/get_permissions.js +36 -0
- package/backend/src/core/nodes/users/set_blacklist.js +37 -0
- package/backend/src/core/services/BotLifecycleService.js +596 -0
- package/backend/src/core/services/BotProcessManager.js +163 -0
- package/backend/src/core/services/CacheManager.js +111 -0
- package/backend/src/core/services/CommandExecutionService.js +351 -0
- package/backend/src/core/services/ResourceMonitorService.js +90 -0
- package/backend/src/core/services/TelemetryService.js +124 -0
- package/backend/src/core/services/ValidationService.js +132 -0
- package/backend/src/core/services/__tests__/ValidationService.test.js +148 -0
- package/backend/src/core/services.js +20 -5
- package/backend/src/core/system/CommandContext.js +84 -0
- package/backend/src/core/system/Transport.js +78 -0
- package/backend/src/core/utils/__tests__/jsonParser.test.js +44 -0
- package/backend/src/core/utils/jsonParser.js +18 -0
- package/backend/src/core/utils/secretsFilter.js +262 -0
- package/backend/src/core/utils/variableParser.js +89 -0
- package/backend/src/core/validation/__tests__/nodeSchemas.test.js +175 -0
- package/backend/src/core/validation/nodeSchemas.js +112 -0
- package/backend/src/lib/prisma.js +2 -4
- package/backend/src/real-time/botApi/handlers/commandHandlers.js +28 -0
- package/backend/src/real-time/botApi/handlers/graphHandlers.js +99 -0
- package/backend/src/real-time/botApi/handlers/graphWebSocketHandlers.js +147 -0
- package/backend/src/real-time/botApi/handlers/index.js +43 -0
- package/backend/src/real-time/botApi/handlers/messageHandlers.js +66 -0
- package/backend/src/real-time/botApi/handlers/statusHandlers.js +17 -0
- package/backend/src/real-time/botApi/handlers/userHandlers.js +141 -0
- package/backend/src/real-time/botApi/index.js +40 -0
- package/backend/src/real-time/botApi/middleware.js +79 -0
- package/backend/src/real-time/botApi/utils.js +54 -0
- package/backend/src/real-time/socketHandler.js +6 -2
- package/backend/src/repositories/BaseRepository.js +43 -0
- package/backend/src/repositories/BotRepository.js +42 -0
- package/backend/src/repositories/CommandRepository.js +53 -0
- package/backend/src/repositories/EventGraphRepository.js +40 -0
- package/backend/src/repositories/GroupRepository.js +69 -0
- package/backend/src/repositories/PermissionRepository.js +48 -0
- package/backend/src/repositories/PluginRepository.js +42 -0
- package/backend/src/repositories/ServerRepository.js +27 -0
- package/backend/src/repositories/UserRepository.js +48 -0
- package/backend/src/server.js +3 -0
- package/backend/src/test-refactor.js +85 -0
- package/frontend/dist/assets/index-CfTo92bP.css +1 -0
- package/frontend/dist/assets/index-CiFD5X9Z.js +8344 -0
- package/frontend/dist/index.html +2 -2
- package/frontend/package.json +1 -5
- package/package.json +2 -1
- package/frontend/dist/assets/index-BFd7YoAj.css +0 -1
- package/frontend/dist/assets/index-CMMutadc.js +0 -8352
- package/nul +0 -0
|
@@ -0,0 +1,478 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Cloud migration or modernization plan with phases, risks, timeline
|
|
3
|
+
argument-hint: Describe what to migrate (e.g., "on-prem apps to AWS", "monolith to microservices", "VMs to Kubernetes")
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
Create a comprehensive migration plan for: $ARGUMENTS
|
|
7
|
+
|
|
8
|
+
## Instructions
|
|
9
|
+
|
|
10
|
+
Design a detailed migration strategy with phases, timeline, risks, and actionable steps.
|
|
11
|
+
|
|
12
|
+
### 1. Discovery & Assessment
|
|
13
|
+
|
|
14
|
+
**Gather Information:**
|
|
15
|
+
|
|
16
|
+
Ask user to provide:
|
|
17
|
+
- [ ] Current environment details (on-prem, cloud, hybrid)
|
|
18
|
+
- [ ] Applications to migrate (list, criticality)
|
|
19
|
+
- [ ] Infrastructure (servers, databases, storage)
|
|
20
|
+
- [ ] Dependencies and integrations
|
|
21
|
+
- [ ] Performance requirements
|
|
22
|
+
- [ ] Compliance/security requirements
|
|
23
|
+
- [ ] Timeline constraints
|
|
24
|
+
- [ ] Budget constraints
|
|
25
|
+
|
|
26
|
+
**Assessment Questions:**
|
|
27
|
+
- What is the business driver for migration?
|
|
28
|
+
- What are success criteria?
|
|
29
|
+
- What is risk tolerance?
|
|
30
|
+
- What are non-functional requirements (performance, availability)?
|
|
31
|
+
- Are there regulatory constraints?
|
|
32
|
+
|
|
33
|
+
### 2. Current State Analysis
|
|
34
|
+
|
|
35
|
+
**Document Current Architecture:**
|
|
36
|
+
|
|
37
|
+
Application Inventory:
|
|
38
|
+
```
|
|
39
|
+
For each application:
|
|
40
|
+
- Name and purpose
|
|
41
|
+
- Business criticality (critical, important, standard)
|
|
42
|
+
- Technology stack
|
|
43
|
+
- Dependencies (other apps, databases, services)
|
|
44
|
+
- Data volume
|
|
45
|
+
- Users/transactions
|
|
46
|
+
- Current performance baseline
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
Infrastructure Inventory:
|
|
50
|
+
```
|
|
51
|
+
- Servers (physical, virtual)
|
|
52
|
+
- Databases
|
|
53
|
+
- Storage (capacity, type)
|
|
54
|
+
- Network (bandwidth, connectivity)
|
|
55
|
+
- Monitoring and logging
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
**Pain Points:**
|
|
59
|
+
- Performance issues
|
|
60
|
+
- Scalability limitations
|
|
61
|
+
- Maintenance burden
|
|
62
|
+
- Cost inefficiencies
|
|
63
|
+
- Technical debt
|
|
64
|
+
|
|
65
|
+
### 3. Migration Strategy Selection
|
|
66
|
+
|
|
67
|
+
**The 6 R's Framework:**
|
|
68
|
+
|
|
69
|
+
For each application, recommend strategy:
|
|
70
|
+
|
|
71
|
+
**1. Rehost (Lift-and-Shift):**
|
|
72
|
+
```
|
|
73
|
+
When to use:
|
|
74
|
+
- Quick migration needed
|
|
75
|
+
- Minimal changes desired
|
|
76
|
+
- Optimize later approach
|
|
77
|
+
|
|
78
|
+
Pros: Fast, low risk, minimal testing
|
|
79
|
+
Cons: No cloud optimization, limited benefits
|
|
80
|
+
Timeline: 2-4 weeks per application
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
**2. Replatform (Lift-Tinker-Shift):**
|
|
84
|
+
```
|
|
85
|
+
When to use:
|
|
86
|
+
- Some cloud optimization desired
|
|
87
|
+
- Managed services available
|
|
88
|
+
- Balance speed vs optimization
|
|
89
|
+
|
|
90
|
+
Example: Move to RDS instead of EC2 with MySQL
|
|
91
|
+
|
|
92
|
+
Pros: Some cloud benefits, moderate effort
|
|
93
|
+
Cons: Still not fully cloud-native
|
|
94
|
+
Timeline: 4-8 weeks per application
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
**3. Repurchase (Replace):**
|
|
98
|
+
```
|
|
99
|
+
When to use:
|
|
100
|
+
- SaaS alternative available
|
|
101
|
+
- Legacy application
|
|
102
|
+
- Maintenance burden high
|
|
103
|
+
|
|
104
|
+
Example: Replace custom CRM with Salesforce
|
|
105
|
+
|
|
106
|
+
Pros: No maintenance, modern features
|
|
107
|
+
Cons: Data migration, user training, subscription cost
|
|
108
|
+
Timeline: 8-16 weeks
|
|
109
|
+
```
|
|
110
|
+
|
|
111
|
+
**4. Refactor/Re-architect:**
|
|
112
|
+
```
|
|
113
|
+
When to use:
|
|
114
|
+
- Maximum cloud benefits needed
|
|
115
|
+
- Scalability critical
|
|
116
|
+
- Willing to invest
|
|
117
|
+
|
|
118
|
+
Example: Monolith → Microservices, Containers, Serverless
|
|
119
|
+
|
|
120
|
+
Pros: Cloud-native, scalable, modern
|
|
121
|
+
Cons: High effort, significant testing
|
|
122
|
+
Timeline: 3-6 months per application
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
**5. Retire:**
|
|
126
|
+
```
|
|
127
|
+
When to use:
|
|
128
|
+
- Application no longer needed
|
|
129
|
+
- Redundant functionality
|
|
130
|
+
- Better alternatives exist
|
|
131
|
+
|
|
132
|
+
Pros: Cost savings, reduced complexity
|
|
133
|
+
Cons: Ensure no dependencies
|
|
134
|
+
Timeline: 2-4 weeks (data archival)
|
|
135
|
+
```
|
|
136
|
+
|
|
137
|
+
**6. Retain:**
|
|
138
|
+
```
|
|
139
|
+
When to use:
|
|
140
|
+
- Not ready for migration
|
|
141
|
+
- Compliance reasons
|
|
142
|
+
- End-of-life soon
|
|
143
|
+
|
|
144
|
+
Pros: No immediate effort
|
|
145
|
+
Cons: No cloud benefits
|
|
146
|
+
Timeline: N/A (revisit in 6-12 months)
|
|
147
|
+
```
|
|
148
|
+
|
|
149
|
+
### 4. Target Architecture Design
|
|
150
|
+
|
|
151
|
+
**Design Cloud Architecture:**
|
|
152
|
+
|
|
153
|
+
Compute:
|
|
154
|
+
- EC2, Containers (ECS/EKS), Serverless
|
|
155
|
+
- Auto-scaling strategies
|
|
156
|
+
- Instance types and sizing
|
|
157
|
+
|
|
158
|
+
Network:
|
|
159
|
+
- VPC design (subnets, routing)
|
|
160
|
+
- Connectivity (VPN, Direct Connect)
|
|
161
|
+
- Security groups and NACLs
|
|
162
|
+
- Load balancers
|
|
163
|
+
|
|
164
|
+
Storage:
|
|
165
|
+
- S3 for objects
|
|
166
|
+
- EBS for block storage
|
|
167
|
+
- EFS for shared file systems
|
|
168
|
+
- Database services (RDS, DynamoDB)
|
|
169
|
+
|
|
170
|
+
Security:
|
|
171
|
+
- IAM roles and policies
|
|
172
|
+
- Encryption (at rest, in transit)
|
|
173
|
+
- Secrets management
|
|
174
|
+
- Monitoring and logging
|
|
175
|
+
|
|
176
|
+
**Architecture Principles:**
|
|
177
|
+
- High availability (multi-AZ)
|
|
178
|
+
- Scalability (auto-scaling)
|
|
179
|
+
- Security (defense in depth)
|
|
180
|
+
- Cost optimization
|
|
181
|
+
- Operational excellence
|
|
182
|
+
|
|
183
|
+
### 5. Wave Planning
|
|
184
|
+
|
|
185
|
+
**Organize Migration into Waves:**
|
|
186
|
+
|
|
187
|
+
**Wave 1: Pilot (Weeks 1-4)**
|
|
188
|
+
```
|
|
189
|
+
Applications:
|
|
190
|
+
- Non-critical applications
|
|
191
|
+
- Simple architecture
|
|
192
|
+
- Few dependencies
|
|
193
|
+
|
|
194
|
+
Goals:
|
|
195
|
+
- Validate migration approach
|
|
196
|
+
- Train team
|
|
197
|
+
- Establish processes
|
|
198
|
+
- Build confidence
|
|
199
|
+
|
|
200
|
+
Success Criteria:
|
|
201
|
+
- Application functional in cloud
|
|
202
|
+
- Performance acceptable
|
|
203
|
+
- Team comfortable with process
|
|
204
|
+
```
|
|
205
|
+
|
|
206
|
+
**Wave 2: Low Risk (Weeks 5-10)**
|
|
207
|
+
```
|
|
208
|
+
Applications:
|
|
209
|
+
- Important but not critical
|
|
210
|
+
- Moderate complexity
|
|
211
|
+
- Some dependencies managed
|
|
212
|
+
|
|
213
|
+
Goals:
|
|
214
|
+
- Refine processes
|
|
215
|
+
- Expand team skills
|
|
216
|
+
- Increase migration velocity
|
|
217
|
+
```
|
|
218
|
+
|
|
219
|
+
**Wave 3: Medium Risk (Weeks 11-18)**
|
|
220
|
+
```
|
|
221
|
+
Applications:
|
|
222
|
+
- Business-critical
|
|
223
|
+
- Complex architecture
|
|
224
|
+
- Multiple dependencies
|
|
225
|
+
|
|
226
|
+
Goals:
|
|
227
|
+
- Leverage proven processes
|
|
228
|
+
- Minimize business impact
|
|
229
|
+
- High confidence in execution
|
|
230
|
+
```
|
|
231
|
+
|
|
232
|
+
**Wave 4: High Risk (Weeks 19-26)**
|
|
233
|
+
```
|
|
234
|
+
Applications:
|
|
235
|
+
- Mission-critical
|
|
236
|
+
- Most complex
|
|
237
|
+
- Highest business impact
|
|
238
|
+
|
|
239
|
+
Goals:
|
|
240
|
+
- Zero-downtime migration
|
|
241
|
+
- Comprehensive testing
|
|
242
|
+
- Rollback plan ready
|
|
243
|
+
```
|
|
244
|
+
|
|
245
|
+
### 6. Detailed Migration Steps
|
|
246
|
+
|
|
247
|
+
**Per Application Migration:**
|
|
248
|
+
|
|
249
|
+
**Week 1-2: Preparation**
|
|
250
|
+
- [ ] Architecture design
|
|
251
|
+
- [ ] Security review
|
|
252
|
+
- [ ] Performance baseline
|
|
253
|
+
- [ ] Create cloud resources (IaC)
|
|
254
|
+
- [ ] Setup monitoring
|
|
255
|
+
- [ ] Prepare data migration
|
|
256
|
+
|
|
257
|
+
**Week 3: Data Migration**
|
|
258
|
+
- [ ] Initial data sync
|
|
259
|
+
- [ ] Verify data integrity
|
|
260
|
+
- [ ] Test data access
|
|
261
|
+
- [ ] Plan incremental syncs
|
|
262
|
+
|
|
263
|
+
**Week 4: Application Migration**
|
|
264
|
+
- [ ] Deploy application
|
|
265
|
+
- [ ] Configure integrations
|
|
266
|
+
- [ ] Run smoke tests
|
|
267
|
+
- [ ] Performance testing
|
|
268
|
+
- [ ] Security testing
|
|
269
|
+
|
|
270
|
+
**Week 5: Cutover**
|
|
271
|
+
- [ ] Final data sync
|
|
272
|
+
- [ ] DNS/traffic cutover
|
|
273
|
+
- [ ] Monitor closely
|
|
274
|
+
- [ ] Verify functionality
|
|
275
|
+
- [ ] Decommission old (after validation period)
|
|
276
|
+
|
|
277
|
+
### 7. Risk Management
|
|
278
|
+
|
|
279
|
+
**Identify Risks and Mitigations:**
|
|
280
|
+
|
|
281
|
+
**Data Loss:**
|
|
282
|
+
```
|
|
283
|
+
Risk: Data corruption or loss during migration
|
|
284
|
+
Likelihood: Medium
|
|
285
|
+
Impact: High
|
|
286
|
+
|
|
287
|
+
Mitigation:
|
|
288
|
+
- Multiple backups before migration
|
|
289
|
+
- Data validation checksums
|
|
290
|
+
- Test restore procedures
|
|
291
|
+
- Incremental sync with validation
|
|
292
|
+
- Rollback plan
|
|
293
|
+
```
|
|
294
|
+
|
|
295
|
+
**Downtime:**
|
|
296
|
+
```
|
|
297
|
+
Risk: Extended downtime during cutover
|
|
298
|
+
Likelihood: Medium
|
|
299
|
+
Impact: High
|
|
300
|
+
|
|
301
|
+
Mitigation:
|
|
302
|
+
- Blue-green deployment
|
|
303
|
+
- DNS cutover (quick rollback)
|
|
304
|
+
- Maintenance window during low traffic
|
|
305
|
+
- Comprehensive testing
|
|
306
|
+
```
|
|
307
|
+
|
|
308
|
+
**Performance Degradation:**
|
|
309
|
+
```
|
|
310
|
+
Risk: Application slower in cloud
|
|
311
|
+
Likelihood: Medium
|
|
312
|
+
Impact: Medium
|
|
313
|
+
|
|
314
|
+
Mitigation:
|
|
315
|
+
- Performance testing before cutover
|
|
316
|
+
- Right-sized instances
|
|
317
|
+
- Monitoring and alerting
|
|
318
|
+
- Optimization plan ready
|
|
319
|
+
```
|
|
320
|
+
|
|
321
|
+
**Budget Overrun:**
|
|
322
|
+
```
|
|
323
|
+
Risk: Migration costs exceed budget
|
|
324
|
+
Likelihood: Medium
|
|
325
|
+
Impact: Medium
|
|
326
|
+
|
|
327
|
+
Mitigation:
|
|
328
|
+
- Detailed cost estimates
|
|
329
|
+
- Track costs throughout
|
|
330
|
+
- Cost alerts configured
|
|
331
|
+
- Contingency budget (20%)
|
|
332
|
+
```
|
|
333
|
+
|
|
334
|
+
**Skills Gap:**
|
|
335
|
+
```
|
|
336
|
+
Risk: Team lacks cloud expertise
|
|
337
|
+
Likelihood: High
|
|
338
|
+
Impact: Medium
|
|
339
|
+
|
|
340
|
+
Mitigation:
|
|
341
|
+
- Training program
|
|
342
|
+
- Hire cloud experts
|
|
343
|
+
- Partner with cloud consultants
|
|
344
|
+
- Knowledge transfer
|
|
345
|
+
```
|
|
346
|
+
|
|
347
|
+
### 8. Testing Strategy
|
|
348
|
+
|
|
349
|
+
**Testing Phases:**
|
|
350
|
+
|
|
351
|
+
Functional Testing:
|
|
352
|
+
- [ ] All features working
|
|
353
|
+
- [ ] Integrations functional
|
|
354
|
+
- [ ] User acceptance testing
|
|
355
|
+
|
|
356
|
+
Performance Testing:
|
|
357
|
+
- [ ] Load testing
|
|
358
|
+
- [ ] Stress testing
|
|
359
|
+
- [ ] Compare to baseline
|
|
360
|
+
- [ ] Latency acceptable
|
|
361
|
+
|
|
362
|
+
Security Testing:
|
|
363
|
+
- [ ] Penetration testing
|
|
364
|
+
- [ ] Vulnerability scanning
|
|
365
|
+
- [ ] Access control verification
|
|
366
|
+
- [ ] Compliance validation
|
|
367
|
+
|
|
368
|
+
Disaster Recovery Testing:
|
|
369
|
+
- [ ] Backup and restore
|
|
370
|
+
- [ ] Failover testing
|
|
371
|
+
- [ ] Data recovery
|
|
372
|
+
- [ ] RTO/RPO validation
|
|
373
|
+
|
|
374
|
+
### 9. Rollback Plan
|
|
375
|
+
|
|
376
|
+
**For Each Migration:**
|
|
377
|
+
|
|
378
|
+
Rollback Triggers:
|
|
379
|
+
- Critical functionality broken
|
|
380
|
+
- Performance >50% degradation
|
|
381
|
+
- Data integrity issues
|
|
382
|
+
- Security vulnerabilities
|
|
383
|
+
|
|
384
|
+
Rollback Procedure:
|
|
385
|
+
1. Stop new traffic to cloud
|
|
386
|
+
2. Route traffic back to on-prem
|
|
387
|
+
3. Sync any new data back
|
|
388
|
+
4. Investigate and fix issues
|
|
389
|
+
5. Re-plan cutover
|
|
390
|
+
|
|
391
|
+
Maximum Rollback Time: X hours
|
|
392
|
+
|
|
393
|
+
### 10. Communication Plan
|
|
394
|
+
|
|
395
|
+
**Stakeholder Updates:**
|
|
396
|
+
|
|
397
|
+
Pre-Migration:
|
|
398
|
+
- T-30 days: Migration announcement
|
|
399
|
+
- T-14 days: Detailed timeline
|
|
400
|
+
- T-7 days: Final preparation notice
|
|
401
|
+
- T-1 day: Maintenance window reminder
|
|
402
|
+
|
|
403
|
+
During Migration:
|
|
404
|
+
- Hourly updates during cutover
|
|
405
|
+
- Status page updates
|
|
406
|
+
- Issue escalation procedures
|
|
407
|
+
|
|
408
|
+
Post-Migration:
|
|
409
|
+
- Completion notification
|
|
410
|
+
- Performance summary
|
|
411
|
+
- Next wave preview
|
|
412
|
+
|
|
413
|
+
### 11. Success Criteria
|
|
414
|
+
|
|
415
|
+
**Migration Success Metrics:**
|
|
416
|
+
|
|
417
|
+
Functional:
|
|
418
|
+
- [ ] All features working
|
|
419
|
+
- [ ] All integrations functional
|
|
420
|
+
- [ ] User acceptance passed
|
|
421
|
+
|
|
422
|
+
Performance:
|
|
423
|
+
- [ ] Response time within 10% of baseline
|
|
424
|
+
- [ ] Error rate <1%
|
|
425
|
+
- [ ] Availability >99.9%
|
|
426
|
+
|
|
427
|
+
Business:
|
|
428
|
+
- [ ] Zero data loss
|
|
429
|
+
- [ ] Downtime within SLA
|
|
430
|
+
- [ ] Budget within 10%
|
|
431
|
+
- [ ] Timeline met
|
|
432
|
+
|
|
433
|
+
### 12. Output Format
|
|
434
|
+
|
|
435
|
+
Provide comprehensive migration plan:
|
|
436
|
+
|
|
437
|
+
**Executive Summary:**
|
|
438
|
+
- Migration scope
|
|
439
|
+
- Timeline (X weeks)
|
|
440
|
+
- Budget estimate
|
|
441
|
+
- Business benefits
|
|
442
|
+
- Success criteria
|
|
443
|
+
|
|
444
|
+
**Current State:**
|
|
445
|
+
- Application inventory
|
|
446
|
+
- Infrastructure summary
|
|
447
|
+
- Dependencies
|
|
448
|
+
- Pain points
|
|
449
|
+
|
|
450
|
+
**Migration Strategy:**
|
|
451
|
+
- Strategy per application (6 R's)
|
|
452
|
+
- Wave planning
|
|
453
|
+
- Timeline
|
|
454
|
+
|
|
455
|
+
**Target Architecture:**
|
|
456
|
+
- Cloud design
|
|
457
|
+
- Network diagram
|
|
458
|
+
- Security architecture
|
|
459
|
+
- Cost estimate
|
|
460
|
+
|
|
461
|
+
**Detailed Roadmap:**
|
|
462
|
+
- Wave 1: Pilot (Weeks 1-4)
|
|
463
|
+
- Wave 2: Low Risk (Weeks 5-10)
|
|
464
|
+
- Wave 3: Medium Risk (Weeks 11-18)
|
|
465
|
+
- Wave 4: High Risk (Weeks 19-26)
|
|
466
|
+
|
|
467
|
+
**Risk Management:**
|
|
468
|
+
- Risk register
|
|
469
|
+
- Mitigation strategies
|
|
470
|
+
- Rollback procedures
|
|
471
|
+
|
|
472
|
+
**Resource Plan:**
|
|
473
|
+
- Team structure
|
|
474
|
+
- Skills required
|
|
475
|
+
- Training needs
|
|
476
|
+
- External support
|
|
477
|
+
|
|
478
|
+
Provide realistic timelines and be comprehensive in risk assessment.
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Map edited routes & launch tests
|
|
3
|
+
argument-hint: "[/extra/path …]"
|
|
4
|
+
allowed-tools: Bash(cat:*), Bash(awk:*), Bash(grep:*), Bash(sort:*), Bash(xargs:*), Bash(sed:*)
|
|
5
|
+
model: sonnet
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
## Context
|
|
9
|
+
|
|
10
|
+
Changed route files this session (auto-generated):
|
|
11
|
+
|
|
12
|
+
!cat "$CLAUDE_PROJECT_DIR/.claude/tsc-cache"/\*/edited-files.log \
|
|
13
|
+
| awk -F: '{print $2}' \
|
|
14
|
+
| grep '/routes/' \
|
|
15
|
+
| sort -u
|
|
16
|
+
|
|
17
|
+
User-specified additional routes: `$ARGUMENTS`
|
|
18
|
+
|
|
19
|
+
## Your task
|
|
20
|
+
|
|
21
|
+
Follow the numbered steps **exactly**:
|
|
22
|
+
|
|
23
|
+
1. Combine the auto list with `$ARGUMENTS`, dedupe, and resolve any prefixes
|
|
24
|
+
defined in `src/app.ts`.
|
|
25
|
+
2. For each final route, output a JSON record with the path, method, expected
|
|
26
|
+
request/response shapes, and valid + invalid payload examples.
|
|
27
|
+
3. **Now call the `Task` tool** using:
|
|
28
|
+
|
|
29
|
+
```json
|
|
30
|
+
{
|
|
31
|
+
"tool": "Task",
|
|
32
|
+
"parameters": {
|
|
33
|
+
"description": "route smoke tests",
|
|
34
|
+
"prompt": "Run the auth-route-tester sub-agent on the JSON above."
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
```
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Security review of infrastructure code
|
|
3
|
+
argument-hint: Path to infrastructure code or description of what to review
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
Perform a comprehensive security review of infrastructure code: $ARGUMENTS
|
|
7
|
+
|
|
8
|
+
## Review Checklist
|
|
9
|
+
|
|
10
|
+
### 1. Authentication & Authorization
|
|
11
|
+
- [ ] IAM policies follow least privilege
|
|
12
|
+
- [ ] Service accounts properly scoped
|
|
13
|
+
- [ ] No hardcoded credentials
|
|
14
|
+
- [ ] RBAC configured correctly
|
|
15
|
+
- [ ] MFA enabled for sensitive operations
|
|
16
|
+
|
|
17
|
+
### 2. Network Security
|
|
18
|
+
- [ ] Private subnets for sensitive resources
|
|
19
|
+
- [ ] Security groups/network policies restrictive
|
|
20
|
+
- [ ] No unnecessary public exposure
|
|
21
|
+
- [ ] Network segmentation implemented
|
|
22
|
+
- [ ] TLS/encryption in transit
|
|
23
|
+
|
|
24
|
+
### 3. Data Security
|
|
25
|
+
- [ ] Encryption at rest enabled
|
|
26
|
+
- [ ] Encryption keys properly managed
|
|
27
|
+
- [ ] Backup encryption configured
|
|
28
|
+
- [ ] Secrets management implemented
|
|
29
|
+
- [ ] No sensitive data in logs
|
|
30
|
+
|
|
31
|
+
### 4. Container Security
|
|
32
|
+
- [ ] Images from trusted registries
|
|
33
|
+
- [ ] Image scanning enabled
|
|
34
|
+
- [ ] No root containers
|
|
35
|
+
- [ ] Resource limits set
|
|
36
|
+
- [ ] Security contexts configured
|
|
37
|
+
- [ ] Read-only root filesystem
|
|
38
|
+
|
|
39
|
+
### 5. Compliance
|
|
40
|
+
- [ ] CIS benchmarks followed
|
|
41
|
+
- [ ] Regulatory requirements met (GDPR, HIPAA, etc.)
|
|
42
|
+
- [ ] Audit logging enabled
|
|
43
|
+
- [ ] Compliance policies as code
|
|
44
|
+
|
|
45
|
+
### 6. Supply Chain
|
|
46
|
+
- [ ] Dependencies scanned
|
|
47
|
+
- [ ] Artifacts signed
|
|
48
|
+
- [ ] SBOM generated
|
|
49
|
+
- [ ] Provenance tracking
|
|
50
|
+
|
|
51
|
+
## Output Format
|
|
52
|
+
|
|
53
|
+
Provide:
|
|
54
|
+
1. **Critical Issues** (must fix before deployment)
|
|
55
|
+
2. **High Priority** (fix within 1 week)
|
|
56
|
+
3. **Medium Priority** (fix within 1 month)
|
|
57
|
+
4. **Recommendations** (best practices)
|
|
58
|
+
5. **Code Examples** showing fixes
|
|
59
|
+
6. **Compliance Status** (which standards met/not met)
|
|
60
|
+
|
|
61
|
+
For each issue, include:
|
|
62
|
+
- Severity
|
|
63
|
+
- Description
|
|
64
|
+
- Impact
|
|
65
|
+
- Remediation steps
|
|
66
|
+
- Code example of fix
|