claude-flow-novice 2.3.4 → 2.3.6
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/dist/src/booster/performance-benchmark.js +1 -1
- package/dist/src/booster/wasm-demo.js +1 -1
- package/dist/src/cli/command-registry.js +2 -2
- package/dist/src/cli/help-formatter.js +137 -109
- package/dist/src/cli/simple-cli.js +2528 -2121
- package/dist/src/cli/simple-commands/sparc/refinement.js +3 -3
- package/dist/src/cli/validation-helper.js +98 -49
- package/dist/src/commands/suggest-templates.js +4 -4
- package/dist/src/core/version.js +23 -15
- package/dist/src/memory/swarm-memory.js +603 -470
- package/dist/src/slash-commands/fullstack.js +2 -2
- package/dist/src/slash-commands/parse-epic.js +1 -1
- package/package.json +1 -1
- package/scripts/postinstall.js +41 -31
- package/dist/scripts/.claude-flow/metrics/agent-metrics.json +0 -1
- package/dist/scripts/.claude-flow/metrics/performance.json +0 -9
- package/dist/scripts/.claude-flow/metrics/task-metrics.json +0 -10
- package/dist/scripts/CLEANUP_OPTIMIZATION_REPORT.json +0 -312
- package/dist/scripts/CLEANUP_PERFORMANCE_OPTIMIZATION.md +0 -387
- package/dist/scripts/CLEANUP_QUICK_START.md +0 -268
- package/dist/scripts/CLEANUP_TEST_RESULTS.md +0 -205
- package/dist/scripts/README.md +0 -339
- package/dist/scripts/ace-query.sh +0 -384
- package/dist/scripts/agent-token-analysis.js +0 -430
- package/dist/scripts/auto-setup.js +0 -332
- package/dist/scripts/build/README.md +0 -167
- package/dist/scripts/build/build-config.js +0 -27
- package/dist/scripts/build/build-prompt-copier.sh +0 -30
- package/dist/scripts/build/performance-monitor.js +0 -869
- package/dist/scripts/build/prepare-publish.js +0 -150
- package/dist/scripts/build/typescript-fixer.js +0 -621
- package/dist/scripts/build/unified-builder.sh +0 -428
- package/dist/scripts/build/update-bin-version.js +0 -32
- package/dist/scripts/build/validate-agents.js +0 -238
- package/dist/scripts/build-index.js +0 -43
- package/dist/scripts/build-orchestrator.js +0 -320
- package/dist/scripts/check-routing-stats.cjs +0 -122
- package/dist/scripts/ci-validation.js +0 -375
- package/dist/scripts/cleanup-blocking-coordination.sh +0 -420
- package/dist/scripts/cleanup-idle-sessions.sh +0 -118
- package/dist/scripts/collect-build-metrics.js +0 -65
- package/dist/scripts/demo/README.md +0 -79
- package/dist/scripts/demo/autoscaling-demo-simplified.js +0 -963
- package/dist/scripts/demo/comprehensive-dashboard-test.js +0 -693
- package/dist/scripts/demo/confidence-log.js +0 -87
- package/dist/scripts/demo/confidence-report.js +0 -82
- package/dist/scripts/demo/demo-multi-swarm-coordination.js +0 -325
- package/dist/scripts/demo/demo-production-deployment.js +0 -399
- package/dist/scripts/demo/demo-visualization-system.js +0 -149
- package/dist/scripts/demo/performance-analysis.cjs +0 -71
- package/dist/scripts/demo/performance-analysis.js +0 -71
- package/dist/scripts/demo/test-autoscaling-demo.js +0 -314
- package/dist/scripts/dependency-optimizer.js +0 -349
- package/dist/scripts/dependency-security-assessment.js +0 -331
- package/dist/scripts/deploy-sdk.sh +0 -176
- package/dist/scripts/deployment-readiness-report.json +0 -179
- package/dist/scripts/dev/README.md +0 -264
- package/dist/scripts/dev/claude-flow-wrapper.sh +0 -35
- package/dist/scripts/dev/claude-monitor.py +0 -419
- package/dist/scripts/dev/claude-sparc.sh +0 -562
- package/dist/scripts/dev/claude-wrapper.sh +0 -17
- package/dist/scripts/dev/demo-phase3-compliance.js +0 -172
- package/dist/scripts/dev/demo-task-system.ts +0 -224
- package/dist/scripts/dev/deployment-validator.js +0 -315
- package/dist/scripts/dev/spawn-claude-terminal.sh +0 -32
- package/dist/scripts/dev/start-portal.sh +0 -506
- package/dist/scripts/dev/start-web-ui.js +0 -15
- package/dist/scripts/dev/stop-portal.sh +0 -311
- package/dist/scripts/dev/validate-examples.ts +0 -288
- package/dist/scripts/dev/validate-phase2.cjs +0 -451
- package/dist/scripts/dev/validate-phase2.js +0 -785
- package/dist/scripts/dev/validate-phase3.cjs +0 -208
- package/dist/scripts/dev/validate-security-remediation.js +0 -1
- package/dist/scripts/ecosystem.config.cjs +0 -90
- package/dist/scripts/enhanced-memory-spiral-killer.sh +0 -221
- package/dist/scripts/fix-js-extensions.js +0 -167
- package/dist/scripts/generate-basic-types.js +0 -73
- package/dist/scripts/generate-changelog.js +0 -318
- package/dist/scripts/git-hooks/pre-commit.sh +0 -143
- package/dist/scripts/health-checks.js +0 -634
- package/dist/scripts/hook-wrapper.sh +0 -54
- package/dist/scripts/install/README.md +0 -375
- package/dist/scripts/install/REDIS_SETUP_VALIDATION.json +0 -245
- package/dist/scripts/install/check-prerequisites.js +0 -303
- package/dist/scripts/install/config-wizard.js +0 -606
- package/dist/scripts/install/dependency-checker.js +0 -385
- package/dist/scripts/install/health-check.js +0 -765
- package/dist/scripts/install/install.js +0 -256
- package/dist/scripts/install/installation-benchmark.js +0 -461
- package/dist/scripts/install/quick-install.js +0 -720
- package/dist/scripts/install/quick-start-wizard.js +0 -295
- package/dist/scripts/install/redis-cli.js +0 -289
- package/dist/scripts/install/redis-install-guides.md +0 -407
- package/dist/scripts/install/redis-setup.js +0 -559
- package/dist/scripts/install/redis-test.js +0 -278
- package/dist/scripts/install/service-manager.js +0 -672
- package/dist/scripts/install/setup.js +0 -832
- package/dist/scripts/install/uninstall.js +0 -526
- package/dist/scripts/install/update.js +0 -461
- package/dist/scripts/install-pre-commit-hook.sh +0 -127
- package/dist/scripts/legacy/README.md +0 -272
- package/dist/scripts/legacy/batch-fix-ts.sh +0 -54
- package/dist/scripts/legacy/build-migration.sh +0 -105
- package/dist/scripts/legacy/build-monitor.js +0 -209
- package/dist/scripts/legacy/build-with-filter.sh +0 -84
- package/dist/scripts/legacy/build-workaround.sh +0 -71
- package/dist/scripts/legacy/fix-ts-advanced.js +0 -358
- package/dist/scripts/legacy/fix-ts-final.sh +0 -50
- package/dist/scripts/legacy/fix-ts-targeted.sh +0 -49
- package/dist/scripts/legacy/fix-typescript-errors.js +0 -305
- package/dist/scripts/legacy/force-build.sh +0 -63
- package/dist/scripts/legacy/optimize-performance.js +0 -400
- package/dist/scripts/legacy/performance-monitor.js +0 -263
- package/dist/scripts/legacy/performance-monitoring.js +0 -532
- package/dist/scripts/legacy/performance-test-runner.js +0 -645
- package/dist/scripts/legacy/quick-fix-ts.js +0 -281
- package/dist/scripts/legacy/safe-build.sh +0 -63
- package/dist/scripts/memory-monitor-coordinator.js +0 -451
- package/dist/scripts/migrate-to-sdk.sh +0 -520
- package/dist/scripts/migration/QUICK-START.md +0 -189
- package/dist/scripts/migration/QUICK-START.md.backup-1760135091363 +0 -189
- package/dist/scripts/migration/README.md +0 -464
- package/dist/scripts/migration/TASK-1.3.2-COMPLETION-REPORT.md +0 -500
- package/dist/scripts/migration/TASK-1.3.2-COMPLETION-REPORT.md.backup-1760135091348 +0 -500
- package/dist/scripts/migration/UPDATE-PATHS-README.md +0 -464
- package/dist/scripts/migration/UPDATE-PATHS-README.md.backup-1760135091337 +0 -464
- package/dist/scripts/migration/example-patterns.json +0 -19
- package/dist/scripts/migration/install-arm64.js +0 -78
- package/dist/scripts/migration/install.js +0 -83
- package/dist/scripts/migration/migrate-hooks.js +0 -173
- package/dist/scripts/migration/migration-examples.ts +0 -318
- package/dist/scripts/migration/reorganize-workspace.js +0 -504
- package/dist/scripts/migration/test-update-paths.js +0 -359
- package/dist/scripts/migration/update-paths.js +0 -664
- package/dist/scripts/migration/validate-migration.js +0 -647
- package/dist/scripts/monitor-loop.sh +0 -65
- package/dist/scripts/monitor-memory.sh +0 -47
- package/dist/scripts/monitor-migration.js +0 -339
- package/dist/scripts/monitor.py +0 -43
- package/dist/scripts/monitoring/README.md +0 -178
- package/dist/scripts/monitoring/alert-monitor.sh +0 -220
- package/dist/scripts/monitoring/analyze-resources.sh +0 -199
- package/dist/scripts/monitoring/dashboards/rate-limiting-dashboard.json +0 -211
- package/dist/scripts/monitoring/dynamic-monitor.sh +0 -85
- package/dist/scripts/monitoring/launch-stability-test.sh +0 -184
- package/dist/scripts/monitoring/monitor-test.sh +0 -93
- package/dist/scripts/monitoring/pre-test-validation.sh +0 -208
- package/dist/scripts/monitoring/quick-test-alerting.sh +0 -118
- package/dist/scripts/monitoring/quick-test-rate-limiting.sh +0 -206
- package/dist/scripts/monitoring/rate-limiting-monitor.sh +0 -380
- package/dist/scripts/monitoring/resource-monitor.sh +0 -126
- package/dist/scripts/monitoring/stability-monitor.js +0 -429
- package/dist/scripts/monitoring/test-monitor-quick.sh +0 -54
- package/dist/scripts/monitoring/view-alerts.sh +0 -307
- package/dist/scripts/npm-metrics-collector.js +0 -482
- package/dist/scripts/npm-package-validation.cjs +0 -299
- package/dist/scripts/optimization/build-optimizer.js +0 -438
- package/dist/scripts/optimization/config-validator.js +0 -761
- package/dist/scripts/optimization/test-optimization.js +0 -432
- package/dist/scripts/optimization/unified-activation.js +0 -839
- package/dist/scripts/optimize-package-swarm.js +0 -54
- package/dist/scripts/performance/ACTIVATION_COMMANDS.md +0 -292
- package/dist/scripts/performance/sqlite-enhanced-activation.sh +0 -583
- package/dist/scripts/performance/test-enhanced-backend.sh +0 -504
- package/dist/scripts/performance-monitor.js +0 -644
- package/dist/scripts/performance-test-runner.js +0 -698
- package/dist/scripts/post-deployment-monitoring.js +0 -350
- package/dist/scripts/post-edit-pipeline.js +0 -2091
- package/dist/scripts/post-install-claude-md.js +0 -78
- package/dist/scripts/postinstall.js +0 -84
- package/dist/scripts/pre-publish-validation.cjs +0 -212
- package/dist/scripts/pre-publish-validation.js +0 -429
- package/dist/scripts/redis-lua/cleanup-blocking-coordination.lua +0 -198
- package/dist/scripts/release-announcement.js +0 -425
- package/dist/scripts/release-notification.js +0 -248
- package/dist/scripts/release-rollback.js +0 -376
- package/dist/scripts/release-validation.js +0 -460
- package/dist/scripts/rollback-sdk.sh +0 -66
- package/dist/scripts/run-production-validation.ts +0 -590
- package/dist/scripts/run-stability-validation.sh +0 -687
- package/dist/scripts/security/README.md +0 -339
- package/dist/scripts/security/deployment-validation.cjs +0 -279
- package/dist/scripts/security/envelope-encryption-confidence-report.cjs +0 -422
- package/dist/scripts/security/install-git-hooks.sh +0 -132
- package/dist/scripts/security/install-git-secrets.sh +0 -295
- package/dist/scripts/security/rotate-api-keys.js +0 -469
- package/dist/scripts/security/ruv-swarm-safe.js +0 -74
- package/dist/scripts/security/security-audit.cjs +0 -538
- package/dist/scripts/security/setup-redis-auth.sh +0 -397
- package/dist/scripts/security/validate-envelope-encryption.cjs +0 -340
- package/dist/scripts/security-scan.js +0 -492
- package/dist/scripts/src/web/frontend/.claude-flow/metrics/agent-metrics.json +0 -1
- package/dist/scripts/src/web/frontend/.claude-flow/metrics/performance.json +0 -9
- package/dist/scripts/src/web/frontend/.claude-flow/metrics/task-metrics.json +0 -10
- package/dist/scripts/switch-api.sh +0 -159
- package/dist/scripts/sync-agents.js +0 -290
- package/dist/scripts/test/50-agent-test.js +0 -625
- package/dist/scripts/test/NEW_STABILITY_TEST_GUIDE.md +0 -407
- package/dist/scripts/test/README.md +0 -236
- package/dist/scripts/test/STABILITY_TEST_EXAMPLE.md +0 -347
- package/dist/scripts/test/STABILITY_TEST_README.md +0 -480
- package/dist/scripts/test/agent-worker.js +0 -309
- package/dist/scripts/test/ai-coordination-test.js +0 -650
- package/dist/scripts/test/ai-mesh-coordination-test.js +0 -416
- package/dist/scripts/test/check-links.ts +0 -274
- package/dist/scripts/test/check-performance-regression.ts +0 -168
- package/dist/scripts/test/cli-agent-coordination-test.js +0 -313
- package/dist/scripts/test/coordinator-multilingual-test.js +0 -396
- package/dist/scripts/test/coordinator-transparency-demo.js +0 -585
- package/dist/scripts/test/coverage-report.ts +0 -692
- package/dist/scripts/test/generate-swarm-tests.js +0 -633
- package/dist/scripts/test/integration-test-validation.cjs +0 -253
- package/dist/scripts/test/load-test-swarm.js +0 -576
- package/dist/scripts/test/mesh-coordination-zero-overlap-test.js +0 -740
- package/dist/scripts/test/multilingual-hello-world-test.js +0 -390
- package/dist/scripts/test/quick-multilingual-demo.js +0 -464
- package/dist/scripts/test/real-agent-test.js +0 -312
- package/dist/scripts/test/run-phase3-compliance-tests.js +0 -427
- package/dist/scripts/test/run-stability-test-examples.sh +0 -292
- package/dist/scripts/test/stability-results/stability-metrics.jsonl +0 -83
- package/dist/scripts/test/stability-results/stability-test-report.json +0 -128
- package/dist/scripts/test/stability-results/stability-test.log +0 -1827
- package/dist/scripts/test/stability-test-50-agents.js +0 -734
- package/dist/scripts/test/test-batch-tasks.ts +0 -29
- package/dist/scripts/test/test-byzantine-resolution.js +0 -246
- package/dist/scripts/test/test-claude-spawn-options.sh +0 -63
- package/dist/scripts/test/test-cli-wizard.js +0 -331
- package/dist/scripts/test/test-comprehensive.js +0 -401
- package/dist/scripts/test/test-coordination-features.ts +0 -238
- package/dist/scripts/test/test-fallback-systems.js +0 -276
- package/dist/scripts/test/test-init-command.ts +0 -302
- package/dist/scripts/test/test-mcp.ts +0 -251
- package/dist/scripts/test/test-runner.ts +0 -568
- package/dist/scripts/test/test-swarm-integration.sh +0 -92
- package/dist/scripts/test/test-swarm.ts +0 -142
- package/dist/scripts/test/validation-summary.ts +0 -408
- package/dist/scripts/test-cleanup-performance.sh +0 -416
- package/dist/scripts/test-dashboard-auth.cjs +0 -203
- package/dist/scripts/test-docker-deployment.sh +0 -207
- package/dist/scripts/test-npm-package.cjs +0 -167
- package/dist/scripts/test-provider-routing.cjs +0 -226
- package/dist/scripts/test-routing-telemetry.cjs +0 -147
- package/dist/scripts/test-runner.cjs +0 -154
- package/dist/scripts/test-zai-10k.cjs +0 -81
- package/dist/scripts/test-zai-api.cjs +0 -191
- package/dist/scripts/test-zai-diagnostic.cjs +0 -151
- package/dist/scripts/test-zai-final.cjs +0 -128
- package/dist/scripts/test-zai-with-env.cjs +0 -85
- package/dist/scripts/toggle-cost-savings.cjs +0 -302
- package/dist/scripts/unified-memory-monitor.js +0 -526
- package/dist/scripts/utils/README.md +0 -261
- package/dist/scripts/utils/clean-build-artifacts.sh +0 -94
- package/dist/scripts/utils/cleanup-root.sh +0 -69
- package/dist/scripts/utils/fix-cliffy-imports.js +0 -307
- package/dist/scripts/utils/fix-duplicate-imports.js +0 -114
- package/dist/scripts/utils/fix-error-handling.cjs +0 -70
- package/dist/scripts/utils/fix-import-paths.js +0 -104
- package/dist/scripts/utils/fix-imports.js +0 -116
- package/dist/scripts/utils/fix-shebang.js +0 -78
- package/dist/scripts/utils/fix-test-modules.js +0 -27
- package/dist/scripts/utils/fix-timezone-issue-246.js +0 -200
- package/dist/scripts/utils/fix-ts-comprehensive.py +0 -182
- package/dist/scripts/utils/fix-ts-targeted-batch.js +0 -250
- package/dist/scripts/utils/remove-benchmark-conflicts.sh +0 -140
- package/dist/scripts/utils/simple-test-fixer.js +0 -190
- package/dist/scripts/utils/validate-metrics-structure.cjs +0 -144
- package/dist/scripts/validate-agent-hooks.js +0 -506
- package/dist/scripts/validate-changelog.js +0 -241
- package/dist/scripts/validate-coordination-cli.js +0 -69
- package/dist/scripts/validate-coordination-toggle-integration.cjs +0 -501
- package/dist/scripts/validate-docker-infrastructure.sh +0 -502
- package/dist/scripts/validate-entry-points.js +0 -300
- package/dist/scripts/validate-memory-monitoring.sh +0 -225
- package/dist/scripts/validate-stage3-performance.ts +0 -377
- package/dist/scripts/validate-template-bundling.js +0 -180
- package/dist/scripts/validation/README.md +0 -33
- package/dist/scripts/validation/acl-security-validation.cjs +0 -214
- package/dist/scripts/validation/acl-security-validation.js +0 -402
- package/dist/scripts/validation/byzantine-verification.js +0 -407
- package/dist/scripts/validation/final-phase-2-consensus.cjs +0 -219
- package/dist/scripts/validation/final-security-validation.js +0 -791
- package/dist/scripts/validation/final-wasm-validation.cjs +0 -840
- package/dist/scripts/validation/integration-test-analysis.js +0 -105
- package/dist/scripts/validation/phase-0-comprehensive-validation.js +0 -474
- package/dist/scripts/validation/phase-0-consensus-report.js +0 -139
- package/dist/scripts/validation/phase-0-final-report.js +0 -112
- package/dist/scripts/validation/phase-0-redis-consensus-report.js +0 -129
- package/dist/scripts/validation/phase-0-validation-improved.js +0 -490
- package/dist/scripts/validation/phase-0-validation-test.js +0 -65
- package/dist/scripts/validation/phase-1-consensus-report.cjs +0 -342
- package/dist/scripts/validation/phase-1-consensus-validation.cjs +0 -551
- package/dist/scripts/validation/phase-1-consensus-validation.js +0 -551
- package/dist/scripts/validation/phase-2-consensus-report.cjs +0 -186
- package/dist/scripts/validation/phase-2-validation.cjs +0 -171
- package/dist/scripts/validation/phase-2-validation.js +0 -171
- package/dist/scripts/validation/phase-4-consensus-report.js +0 -181
- package/dist/scripts/validation/phase-4-final-validation.js +0 -351
- package/dist/scripts/validation/phase-5-consensus-report.cjs +0 -113
- package/dist/scripts/validation/phase-5-consensus-report.js +0 -113
- package/dist/scripts/validation/security-analysis.js +0 -49
- package/dist/scripts/validation/security-validation.js +0 -492
- package/dist/scripts/validation/simple-security-validation.js +0 -464
- package/dist/scripts/verify-installation.js +0 -112
- package/dist/scripts/verify-mcp-server.js +0 -86
- package/dist/scripts/verify-sdk-phase1.cjs +0 -293
- package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/platform/accessibility/browser/accessibilityService.js +0 -88
- package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/platform/accessibility/common/accessibility.js +0 -9
- package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/platform/action/common/action.js +0 -7
- package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/platform/action/common/actionCommonCategories.js +0 -13
- package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/platform/actionWidget/browser/actionList.js +0 -276
- package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/platform/actionWidget/browser/actionWidget.js +0 -248
- package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/platform/actionWidget/common/actionWidget.js +0 -5
- package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/platform/actions/common/actions.js +0 -409
- package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/platform/audioCues/browser/audioCueService.js +0 -176
- package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/platform/clipboard/browser/clipboardService.js +0 -141
- package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/platform/clipboard/common/clipboardService.js +0 -6
- package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/platform/commands/common/commands.js +0 -80
- package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/platform/configuration/common/configuration.js +0 -86
- package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/platform/configuration/common/configurationModels.js +0 -554
- package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/platform/configuration/common/configurationRegistry.js +0 -317
- package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/platform/configuration/common/configurations.js +0 -41
- package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/platform/contextkey/browser/contextKeyService.js +0 -432
- package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/platform/contextkey/common/contextkey.js +0 -1547
- package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/platform/contextkey/common/contextkeys.js +0 -18
- package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/platform/contextview/browser/contextMenuHandler.js +0 -124
- package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/platform/contextview/browser/contextMenuService.js +0 -101
- package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/platform/contextview/browser/contextView.js +0 -7
- package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/platform/contextview/browser/contextViewService.js +0 -72
- package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/platform/dialogs/common/dialogs.js +0 -2
- package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/platform/dnd/browser/dnd.js +0 -36
- package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/platform/editor/common/editor.js +0 -17
- package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/platform/environment/common/environment.js +0 -2
- package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/platform/extensions/common/extensions.js +0 -47
- package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/platform/files/common/files.js +0 -9
- package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/platform/history/browser/contextScopedHistoryWidget.js +0 -105
- package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/platform/instantiation/common/descriptors.js +0 -11
- package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/platform/instantiation/common/extensions.js +0 -15
- package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/platform/keybinding/common/abstractKeybindingService.js +0 -277
- package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/platform/keybinding/common/baseResolvedKeybinding.js +0 -53
- package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/platform/quickinput/browser/commandsQuickAccess.js +0 -354
- package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/platform/theme/browser/defaultStyles.js +0 -162
- package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/platform/theme/common/colorRegistry.js +0 -482
- package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/min/vs/basic-languages/abap/abap.js +0 -10
- package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/min/vs/basic-languages/apex/apex.js +0 -10
- package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/min/vs/basic-languages/azcli/azcli.js +0 -10
- package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/min/vs/basic-languages/bat/bat.js +0 -10
- package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/min/vs/basic-languages/bicep/bicep.js +0 -11
|
@@ -1,377 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env tsx
|
|
2
|
-
/**
|
|
3
|
-
* Stage 3 Performance Validation Script
|
|
4
|
-
* CLI tool to validate unified system performance targets
|
|
5
|
-
*/
|
|
6
|
-
|
|
7
|
-
import { performance } from 'perf_hooks';
|
|
8
|
-
import { stage3Validator } from '../src/agents/stage3-integration-validator.js';
|
|
9
|
-
|
|
10
|
-
interface CliOptions {
|
|
11
|
-
scenario?: string;
|
|
12
|
-
verbose?: boolean;
|
|
13
|
-
output?: 'console' | 'json' | 'csv';
|
|
14
|
-
timeout?: number;
|
|
15
|
-
help?: boolean;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
class Stage3PerformanceCLI {
|
|
19
|
-
private options: CliOptions = {};
|
|
20
|
-
|
|
21
|
-
constructor() {
|
|
22
|
-
this.parseArguments();
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
private parseArguments(): void {
|
|
26
|
-
const args = process.argv.slice(2);
|
|
27
|
-
|
|
28
|
-
for (let i = 0; i < args.length; i++) {
|
|
29
|
-
const arg = args[i];
|
|
30
|
-
|
|
31
|
-
switch (arg) {
|
|
32
|
-
case '--help':
|
|
33
|
-
case '-h':
|
|
34
|
-
this.options.help = true;
|
|
35
|
-
break;
|
|
36
|
-
|
|
37
|
-
case '--verbose':
|
|
38
|
-
case '-v':
|
|
39
|
-
this.options.verbose = true;
|
|
40
|
-
break;
|
|
41
|
-
|
|
42
|
-
case '--scenario':
|
|
43
|
-
case '-s':
|
|
44
|
-
this.options.scenario = args[++i];
|
|
45
|
-
break;
|
|
46
|
-
|
|
47
|
-
case '--output':
|
|
48
|
-
case '-o':
|
|
49
|
-
this.options.output = args[++i] as 'console' | 'json' | 'csv';
|
|
50
|
-
break;
|
|
51
|
-
|
|
52
|
-
case '--timeout':
|
|
53
|
-
case '-t':
|
|
54
|
-
this.options.timeout = parseInt(args[++i], 10);
|
|
55
|
-
break;
|
|
56
|
-
|
|
57
|
-
default:
|
|
58
|
-
console.warn(`Unknown option: ${arg}`);
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
private showHelp(): void {
|
|
64
|
-
console.log(`
|
|
65
|
-
🎯 Stage 3 Performance Validation Tool
|
|
66
|
-
|
|
67
|
-
Usage: tsx scripts/validate-stage3-performance.ts [options]
|
|
68
|
-
|
|
69
|
-
Options:
|
|
70
|
-
-h, --help Show this help message
|
|
71
|
-
-v, --verbose Enable verbose output
|
|
72
|
-
-s, --scenario NAME Run specific scenario only
|
|
73
|
-
-o, --output FORMAT Output format: console, json, csv (default: console)
|
|
74
|
-
-t, --timeout MS Set timeout in milliseconds (default: 300000)
|
|
75
|
-
|
|
76
|
-
Scenarios:
|
|
77
|
-
- Baseline Performance (100 agents, 500 messages, 200 tasks)
|
|
78
|
-
- High Concurrency (1000 agents, 5000 messages, 2000 tasks)
|
|
79
|
-
- Peak Load (5000 agents, 25000 messages, 10000 tasks)
|
|
80
|
-
- Ultra High Load (10000 agents, 50000 messages, 20000 tasks)
|
|
81
|
-
- Sustained Load (2000 agents + 60s duration)
|
|
82
|
-
- Communication Intensive (500 agents, 50000 messages)
|
|
83
|
-
- Task Execution Heavy (1000 agents, 25000 tasks)
|
|
84
|
-
|
|
85
|
-
Performance Targets:
|
|
86
|
-
✅ Agent spawn time: <100ms P95
|
|
87
|
-
✅ Communication latency: <5ms P95
|
|
88
|
-
✅ Concurrent agents: Up to 10,000
|
|
89
|
-
✅ Memory usage: <2GB peak
|
|
90
|
-
✅ Success rate: >80%
|
|
91
|
-
|
|
92
|
-
Examples:
|
|
93
|
-
tsx scripts/validate-stage3-performance.ts --verbose
|
|
94
|
-
tsx scripts/validate-stage3-performance.ts --scenario "High Concurrency"
|
|
95
|
-
tsx scripts/validate-stage3-performance.ts --output json > results.json
|
|
96
|
-
`);
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
async run(): Promise<void> {
|
|
100
|
-
if (this.options.help) {
|
|
101
|
-
this.showHelp();
|
|
102
|
-
return;
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
console.log('🚀 Starting Stage 3 Performance Validation');
|
|
106
|
-
console.log('==========================================');
|
|
107
|
-
|
|
108
|
-
if (this.options.verbose) {
|
|
109
|
-
console.log('Configuration:');
|
|
110
|
-
console.log(` Scenario filter: ${this.options.scenario || 'all'}`);
|
|
111
|
-
console.log(` Output format: ${this.options.output || 'console'}`);
|
|
112
|
-
console.log(` Timeout: ${this.options.timeout || 300000}ms`);
|
|
113
|
-
console.log('');
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
try {
|
|
117
|
-
const startTime = performance.now();
|
|
118
|
-
|
|
119
|
-
if (this.options.scenario) {
|
|
120
|
-
await this.runSpecificScenario(this.options.scenario);
|
|
121
|
-
} else {
|
|
122
|
-
await this.runFullValidation();
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
const totalTime = performance.now() - startTime;
|
|
126
|
-
|
|
127
|
-
if (this.options.verbose) {
|
|
128
|
-
console.log(`\n⏱️ Total validation time: ${(totalTime / 1000).toFixed(2)}s`);
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
} catch (error) {
|
|
132
|
-
console.error('❌ Validation failed:', error instanceof Error ? error.message : String(error));
|
|
133
|
-
process.exit(1);
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
private async runFullValidation(): Promise<void> {
|
|
138
|
-
const result = await stage3Validator.validateStage3();
|
|
139
|
-
|
|
140
|
-
this.outputResults(result.results);
|
|
141
|
-
|
|
142
|
-
if (result.passed) {
|
|
143
|
-
console.log('\n🎉 STAGE 3 VALIDATION: PASSED');
|
|
144
|
-
console.log('All performance targets met!');
|
|
145
|
-
process.exit(0);
|
|
146
|
-
} else {
|
|
147
|
-
console.log('\n❌ STAGE 3 VALIDATION: FAILED');
|
|
148
|
-
console.log('Some performance targets not met.');
|
|
149
|
-
process.exit(1);
|
|
150
|
-
}
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
private async runSpecificScenario(scenarioName: string): Promise<void> {
|
|
154
|
-
// Create a test scenario based on the name
|
|
155
|
-
const scenarios = {
|
|
156
|
-
'Baseline Performance': {
|
|
157
|
-
name: 'Baseline Performance',
|
|
158
|
-
description: 'Basic system functionality validation',
|
|
159
|
-
agentCount: 100,
|
|
160
|
-
messageCount: 500,
|
|
161
|
-
taskCount: 200,
|
|
162
|
-
targets: {
|
|
163
|
-
spawnTimeP95Ms: 80,
|
|
164
|
-
communicationP95Ms: 3,
|
|
165
|
-
concurrentAgents: 100,
|
|
166
|
-
memoryLimitMB: 200,
|
|
167
|
-
successRate: 0.95
|
|
168
|
-
}
|
|
169
|
-
},
|
|
170
|
-
'High Concurrency': {
|
|
171
|
-
name: 'High Concurrency',
|
|
172
|
-
description: 'Test system with 1000+ concurrent agents',
|
|
173
|
-
agentCount: 1000,
|
|
174
|
-
messageCount: 5000,
|
|
175
|
-
taskCount: 2000,
|
|
176
|
-
targets: {
|
|
177
|
-
spawnTimeP95Ms: 100,
|
|
178
|
-
communicationP95Ms: 5,
|
|
179
|
-
concurrentAgents: 1000,
|
|
180
|
-
memoryLimitMB: 500,
|
|
181
|
-
successRate: 0.90
|
|
182
|
-
}
|
|
183
|
-
},
|
|
184
|
-
'Peak Load': {
|
|
185
|
-
name: 'Peak Load',
|
|
186
|
-
description: 'Maximum system capacity test',
|
|
187
|
-
agentCount: 5000,
|
|
188
|
-
messageCount: 25000,
|
|
189
|
-
taskCount: 10000,
|
|
190
|
-
targets: {
|
|
191
|
-
spawnTimeP95Ms: 150,
|
|
192
|
-
communicationP95Ms: 8,
|
|
193
|
-
concurrentAgents: 5000,
|
|
194
|
-
memoryLimitMB: 1000,
|
|
195
|
-
successRate: 0.85
|
|
196
|
-
}
|
|
197
|
-
},
|
|
198
|
-
'Ultra High Load': {
|
|
199
|
-
name: 'Ultra High Load',
|
|
200
|
-
description: 'Stress test with 10k+ agents',
|
|
201
|
-
agentCount: 10000,
|
|
202
|
-
messageCount: 50000,
|
|
203
|
-
taskCount: 20000,
|
|
204
|
-
targets: {
|
|
205
|
-
spawnTimeP95Ms: 200,
|
|
206
|
-
communicationP95Ms: 10,
|
|
207
|
-
concurrentAgents: 10000,
|
|
208
|
-
memoryLimitMB: 2000,
|
|
209
|
-
successRate: 0.80
|
|
210
|
-
}
|
|
211
|
-
}
|
|
212
|
-
};
|
|
213
|
-
|
|
214
|
-
const scenario = scenarios[scenarioName as keyof typeof scenarios];
|
|
215
|
-
if (!scenario) {
|
|
216
|
-
console.error(`❌ Unknown scenario: ${scenarioName}`);
|
|
217
|
-
console.log('Available scenarios:', Object.keys(scenarios).join(', '));
|
|
218
|
-
process.exit(1);
|
|
219
|
-
}
|
|
220
|
-
|
|
221
|
-
console.log(`🎯 Running scenario: ${scenario.name}`);
|
|
222
|
-
console.log(`📝 ${scenario.description}`);
|
|
223
|
-
console.log(`📊 ${scenario.agentCount} agents, ${scenario.messageCount} messages, ${scenario.taskCount} tasks\n`);
|
|
224
|
-
|
|
225
|
-
// Initialize validator and run scenario
|
|
226
|
-
const validator = stage3Validator;
|
|
227
|
-
await (validator as any).agentManager.initialize();
|
|
228
|
-
|
|
229
|
-
try {
|
|
230
|
-
const result = await (validator as any).executeValidationScenario(scenario);
|
|
231
|
-
this.outputResults([result]);
|
|
232
|
-
|
|
233
|
-
if (result.passed) {
|
|
234
|
-
console.log(`\n✅ Scenario "${scenarioName}": PASSED`);
|
|
235
|
-
process.exit(0);
|
|
236
|
-
} else {
|
|
237
|
-
console.log(`\n❌ Scenario "${scenarioName}": FAILED`);
|
|
238
|
-
process.exit(1);
|
|
239
|
-
}
|
|
240
|
-
} finally {
|
|
241
|
-
await (validator as any).agentManager.shutdown();
|
|
242
|
-
}
|
|
243
|
-
}
|
|
244
|
-
|
|
245
|
-
private outputResults(results: any[]): void {
|
|
246
|
-
switch (this.options.output) {
|
|
247
|
-
case 'json':
|
|
248
|
-
this.outputJSON(results);
|
|
249
|
-
break;
|
|
250
|
-
case 'csv':
|
|
251
|
-
this.outputCSV(results);
|
|
252
|
-
break;
|
|
253
|
-
default:
|
|
254
|
-
this.outputConsole(results);
|
|
255
|
-
}
|
|
256
|
-
}
|
|
257
|
-
|
|
258
|
-
private outputConsole(results: any[]): void {
|
|
259
|
-
console.log('\n📊 Performance Validation Results');
|
|
260
|
-
console.log('================================');
|
|
261
|
-
|
|
262
|
-
results.forEach((result, index) => {
|
|
263
|
-
const status = result.passed ? '✅ PASS' : '❌ FAIL';
|
|
264
|
-
const statusIcon = result.passed ? '🟢' : '🔴';
|
|
265
|
-
|
|
266
|
-
console.log(`\n${statusIcon} ${index + 1}. ${result.scenario}: ${status}`);
|
|
267
|
-
|
|
268
|
-
if (this.options.verbose) {
|
|
269
|
-
console.log(` Description: ${result.scenario}`);
|
|
270
|
-
console.log(` Duration: ${(result.details.totalTime / 1000).toFixed(2)}s`);
|
|
271
|
-
}
|
|
272
|
-
|
|
273
|
-
// Performance metrics
|
|
274
|
-
console.log(` 📈 Performance Metrics:`);
|
|
275
|
-
console.log(` Spawn Time P95: ${result.metrics.spawnTimeP95.toFixed(2)}ms`);
|
|
276
|
-
console.log(` Communication P95: ${result.metrics.communicationP95.toFixed(2)}ms`);
|
|
277
|
-
console.log(` Concurrent Agents: ${result.metrics.concurrentAgents.toLocaleString()}`);
|
|
278
|
-
console.log(` Memory Usage: ${result.metrics.memoryUsage.toFixed(2)}MB`);
|
|
279
|
-
console.log(` Success Rate: ${(result.metrics.successRate * 100).toFixed(1)}%`);
|
|
280
|
-
console.log(` Throughput: ${result.metrics.throughput.toFixed(0)} ops/sec`);
|
|
281
|
-
|
|
282
|
-
// Operation details
|
|
283
|
-
if (this.options.verbose) {
|
|
284
|
-
console.log(` 🔧 Operation Details:`);
|
|
285
|
-
console.log(` Agents Spawned: ${result.details.agentsSpawned.toLocaleString()}`);
|
|
286
|
-
console.log(` Messages Sent: ${result.details.messagesSent.toLocaleString()}`);
|
|
287
|
-
console.log(` Tasks Executed: ${result.details.tasksExecuted.toLocaleString()}`);
|
|
288
|
-
console.log(` Errors: ${result.details.errors}`);
|
|
289
|
-
}
|
|
290
|
-
});
|
|
291
|
-
|
|
292
|
-
// Summary
|
|
293
|
-
const passedCount = results.filter(r => r.passed).length;
|
|
294
|
-
const totalCount = results.length;
|
|
295
|
-
const overallSuccessRate = (passedCount / totalCount) * 100;
|
|
296
|
-
|
|
297
|
-
console.log('\n📋 Summary');
|
|
298
|
-
console.log('==========');
|
|
299
|
-
console.log(`Overall Result: ${passedCount}/${totalCount} scenarios passed`);
|
|
300
|
-
console.log(`Success Rate: ${overallSuccessRate.toFixed(1)}%`);
|
|
301
|
-
|
|
302
|
-
if (passedCount === totalCount) {
|
|
303
|
-
console.log('🎉 All performance targets met!');
|
|
304
|
-
} else {
|
|
305
|
-
console.log('⚠️ Some performance targets not met.');
|
|
306
|
-
}
|
|
307
|
-
}
|
|
308
|
-
|
|
309
|
-
private outputJSON(results: any[]): void {
|
|
310
|
-
const output = {
|
|
311
|
-
timestamp: new Date().toISOString(),
|
|
312
|
-
validation: 'Stage 3 Performance',
|
|
313
|
-
summary: {
|
|
314
|
-
total: results.length,
|
|
315
|
-
passed: results.filter(r => r.passed).length,
|
|
316
|
-
failed: results.filter(r => !r.passed).length,
|
|
317
|
-
successRate: (results.filter(r => r.passed).length / results.length) * 100
|
|
318
|
-
},
|
|
319
|
-
results
|
|
320
|
-
};
|
|
321
|
-
|
|
322
|
-
console.log(JSON.stringify(output, null, 2));
|
|
323
|
-
}
|
|
324
|
-
|
|
325
|
-
private outputCSV(results: any[]): void {
|
|
326
|
-
// CSV header
|
|
327
|
-
const headers = [
|
|
328
|
-
'Scenario',
|
|
329
|
-
'Status',
|
|
330
|
-
'Spawn Time P95 (ms)',
|
|
331
|
-
'Communication P95 (ms)',
|
|
332
|
-
'Concurrent Agents',
|
|
333
|
-
'Memory Usage (MB)',
|
|
334
|
-
'Success Rate (%)',
|
|
335
|
-
'Throughput (ops/sec)',
|
|
336
|
-
'Total Time (s)',
|
|
337
|
-
'Agents Spawned',
|
|
338
|
-
'Messages Sent',
|
|
339
|
-
'Tasks Executed',
|
|
340
|
-
'Errors'
|
|
341
|
-
];
|
|
342
|
-
|
|
343
|
-
console.log(headers.join(','));
|
|
344
|
-
|
|
345
|
-
// CSV data
|
|
346
|
-
results.forEach(result => {
|
|
347
|
-
const row = [
|
|
348
|
-
`"${result.scenario}"`,
|
|
349
|
-
result.passed ? 'PASS' : 'FAIL',
|
|
350
|
-
result.metrics.spawnTimeP95.toFixed(2),
|
|
351
|
-
result.metrics.communicationP95.toFixed(2),
|
|
352
|
-
result.metrics.concurrentAgents,
|
|
353
|
-
result.metrics.memoryUsage.toFixed(2),
|
|
354
|
-
(result.metrics.successRate * 100).toFixed(1),
|
|
355
|
-
result.metrics.throughput.toFixed(0),
|
|
356
|
-
(result.details.totalTime / 1000).toFixed(2),
|
|
357
|
-
result.details.agentsSpawned,
|
|
358
|
-
result.details.messagesSent,
|
|
359
|
-
result.details.tasksExecuted,
|
|
360
|
-
result.details.errors
|
|
361
|
-
];
|
|
362
|
-
|
|
363
|
-
console.log(row.join(','));
|
|
364
|
-
});
|
|
365
|
-
}
|
|
366
|
-
}
|
|
367
|
-
|
|
368
|
-
// Run CLI if called directly
|
|
369
|
-
if (import.meta.url === `file://${process.argv[1]}`) {
|
|
370
|
-
const cli = new Stage3PerformanceCLI();
|
|
371
|
-
cli.run().catch(error => {
|
|
372
|
-
console.error('Fatal error:', error);
|
|
373
|
-
process.exit(1);
|
|
374
|
-
});
|
|
375
|
-
}
|
|
376
|
-
|
|
377
|
-
export { Stage3PerformanceCLI };
|
|
@@ -1,180 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
/**
|
|
3
|
-
* Validate Template Bundling
|
|
4
|
-
*
|
|
5
|
-
* Verifies that:
|
|
6
|
-
* 1. All template directories exist
|
|
7
|
-
* 2. Required files are present in each template
|
|
8
|
-
* 3. Templates can be read and parsed
|
|
9
|
-
* 4. Package.json includes templates/ directory
|
|
10
|
-
*/
|
|
11
|
-
|
|
12
|
-
import { promises as fs } from 'fs';
|
|
13
|
-
import { join } from 'path';
|
|
14
|
-
import { fileURLToPath } from 'url';
|
|
15
|
-
import { dirname } from 'path';
|
|
16
|
-
|
|
17
|
-
const __filename = fileURLToPath(import.meta.url);
|
|
18
|
-
const __dirname = dirname(__filename);
|
|
19
|
-
const projectRoot = join(__dirname, '..');
|
|
20
|
-
|
|
21
|
-
const REQUIRED_TEMPLATES = [
|
|
22
|
-
'basic-swarm',
|
|
23
|
-
'fleet-manager',
|
|
24
|
-
'event-bus',
|
|
25
|
-
'custom-agent'
|
|
26
|
-
];
|
|
27
|
-
|
|
28
|
-
const REQUIRED_FILES = {
|
|
29
|
-
'basic-swarm': ['CLAUDE.md', 'package.json', '.claude/settings.json', 'coordination.md', 'memory-bank.md'],
|
|
30
|
-
'fleet-manager': ['CLAUDE.md', 'package.json', '.claude/settings.json'],
|
|
31
|
-
'event-bus': ['CLAUDE.md', 'package.json', '.claude/settings.json'],
|
|
32
|
-
'custom-agent': ['CLAUDE.md', 'package.json', '.claude/settings.json']
|
|
33
|
-
};
|
|
34
|
-
|
|
35
|
-
async function validateTemplates() {
|
|
36
|
-
const results = {
|
|
37
|
-
success: true,
|
|
38
|
-
templatesChecked: 0,
|
|
39
|
-
filesChecked: 0,
|
|
40
|
-
errors: [],
|
|
41
|
-
warnings: []
|
|
42
|
-
};
|
|
43
|
-
|
|
44
|
-
console.log('🔍 Validating Template Bundling...\n');
|
|
45
|
-
|
|
46
|
-
// Check templates directory exists
|
|
47
|
-
const templatesDir = join(projectRoot, 'templates');
|
|
48
|
-
try {
|
|
49
|
-
await fs.access(templatesDir);
|
|
50
|
-
console.log('✅ Templates directory exists:', templatesDir);
|
|
51
|
-
} catch (err) {
|
|
52
|
-
results.success = false;
|
|
53
|
-
results.errors.push('Templates directory not found');
|
|
54
|
-
console.log('❌ Templates directory not found:', templatesDir);
|
|
55
|
-
return results;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
// Check each required template
|
|
59
|
-
for (const template of REQUIRED_TEMPLATES) {
|
|
60
|
-
const templateDir = join(templatesDir, template);
|
|
61
|
-
|
|
62
|
-
try {
|
|
63
|
-
await fs.access(templateDir);
|
|
64
|
-
console.log(`\n✅ Template directory exists: ${template}/`);
|
|
65
|
-
results.templatesChecked++;
|
|
66
|
-
|
|
67
|
-
// Check required files
|
|
68
|
-
const requiredFiles = REQUIRED_FILES[template] || [];
|
|
69
|
-
for (const file of requiredFiles) {
|
|
70
|
-
const filePath = join(templateDir, file);
|
|
71
|
-
|
|
72
|
-
try {
|
|
73
|
-
const stats = await fs.stat(filePath);
|
|
74
|
-
|
|
75
|
-
if (stats.size === 0) {
|
|
76
|
-
results.warnings.push(`${template}/${file} is empty`);
|
|
77
|
-
console.log(` ⚠️ ${file} (EMPTY)`);
|
|
78
|
-
} else {
|
|
79
|
-
console.log(` ✅ ${file} (${stats.size} bytes)`);
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
results.filesChecked++;
|
|
83
|
-
|
|
84
|
-
// Validate JSON files can be parsed
|
|
85
|
-
if (file.endsWith('.json')) {
|
|
86
|
-
try {
|
|
87
|
-
const content = await fs.readFile(filePath, 'utf8');
|
|
88
|
-
JSON.parse(content);
|
|
89
|
-
console.log(` ✓ Valid JSON`);
|
|
90
|
-
} catch (err) {
|
|
91
|
-
results.errors.push(`${template}/${file} contains invalid JSON`);
|
|
92
|
-
console.log(` ❌ Invalid JSON: ${err.message}`);
|
|
93
|
-
results.success = false;
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
// Validate Markdown files are not empty
|
|
98
|
-
if (file.endsWith('.md')) {
|
|
99
|
-
try {
|
|
100
|
-
const content = await fs.readFile(filePath, 'utf8');
|
|
101
|
-
if (content.trim().length < 10) {
|
|
102
|
-
results.warnings.push(`${template}/${file} appears to be empty or too short`);
|
|
103
|
-
console.log(` ⚠️ Content too short (${content.length} chars)`);
|
|
104
|
-
} else {
|
|
105
|
-
console.log(` ✓ ${content.length} characters`);
|
|
106
|
-
}
|
|
107
|
-
} catch (err) {
|
|
108
|
-
results.errors.push(`Failed to read ${template}/${file}`);
|
|
109
|
-
console.log(` ❌ Failed to read: ${err.message}`);
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
} catch (err) {
|
|
113
|
-
results.errors.push(`${template}/${file} not found`);
|
|
114
|
-
console.log(` ❌ ${file} not found`);
|
|
115
|
-
results.success = false;
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
} catch (err) {
|
|
119
|
-
results.success = false;
|
|
120
|
-
results.errors.push(`Template directory ${template} not found`);
|
|
121
|
-
console.log(`❌ Template directory not found: ${template}/`);
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
// Check package.json includes templates
|
|
126
|
-
console.log('\n🔍 Checking package.json...');
|
|
127
|
-
try {
|
|
128
|
-
const packagePath = join(projectRoot, 'package.json');
|
|
129
|
-
const packageContent = await fs.readFile(packagePath, 'utf8');
|
|
130
|
-
const packageJson = JSON.parse(packageContent);
|
|
131
|
-
|
|
132
|
-
if (packageJson.files && packageJson.files.includes('templates/')) {
|
|
133
|
-
console.log('✅ package.json includes "templates/" in files array');
|
|
134
|
-
} else {
|
|
135
|
-
results.success = false;
|
|
136
|
-
results.errors.push('package.json does not include "templates/" in files array');
|
|
137
|
-
console.log('❌ package.json does not include "templates/" in files array');
|
|
138
|
-
}
|
|
139
|
-
} catch (err) {
|
|
140
|
-
results.warnings.push(`Failed to validate package.json: ${err.message}`);
|
|
141
|
-
console.log(`⚠️ Failed to validate package.json: ${err.message}`);
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
// Summary
|
|
145
|
-
console.log('\n' + '='.repeat(60));
|
|
146
|
-
console.log('📊 VALIDATION SUMMARY');
|
|
147
|
-
console.log('='.repeat(60));
|
|
148
|
-
console.log(`Templates checked: ${results.templatesChecked}/${REQUIRED_TEMPLATES.length}`);
|
|
149
|
-
console.log(`Files validated: ${results.filesChecked}`);
|
|
150
|
-
console.log(`Errors: ${results.errors.length}`);
|
|
151
|
-
console.log(`Warnings: ${results.warnings.length}`);
|
|
152
|
-
|
|
153
|
-
if (results.errors.length > 0) {
|
|
154
|
-
console.log('\n❌ ERRORS:');
|
|
155
|
-
results.errors.forEach(err => console.log(` • ${err}`));
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
if (results.warnings.length > 0) {
|
|
159
|
-
console.log('\n⚠️ WARNINGS:');
|
|
160
|
-
results.warnings.forEach(warn => console.log(` • ${warn}`));
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
console.log('\n' + '='.repeat(60));
|
|
164
|
-
if (results.success) {
|
|
165
|
-
console.log('✅ VALIDATION PASSED');
|
|
166
|
-
console.log('\nTemplates are ready for bundling with npm package!');
|
|
167
|
-
} else {
|
|
168
|
-
console.log('❌ VALIDATION FAILED');
|
|
169
|
-
console.log('\nFix errors before publishing.');
|
|
170
|
-
process.exit(1);
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
return results;
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
// Run validation
|
|
177
|
-
validateTemplates().catch(err => {
|
|
178
|
-
console.error('❌ Validation failed:', err);
|
|
179
|
-
process.exit(1);
|
|
180
|
-
});
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
# Validation Scripts
|
|
2
|
-
|
|
3
|
-
## Purpose
|
|
4
|
-
|
|
5
|
-
This directory contains validation and consensus scripts for the Claude Flow Novice project. Scripts have been moved from the project root to improve organization and maintainability.
|
|
6
|
-
|
|
7
|
-
## Script Types
|
|
8
|
-
|
|
9
|
-
### Security Validation
|
|
10
|
-
- Security audit and vulnerability scanning scripts
|
|
11
|
-
- Code security analysis tools
|
|
12
|
-
- Dependency security validation
|
|
13
|
-
|
|
14
|
-
### Phase Validation
|
|
15
|
-
- CFN Loop phase validation scripts
|
|
16
|
-
- Sprint completion validation
|
|
17
|
-
- Epic milestone verification
|
|
18
|
-
|
|
19
|
-
### Consensus Reports
|
|
20
|
-
- Consensus score calculation and reporting
|
|
21
|
-
- Validator team coordination scripts
|
|
22
|
-
- Confidence metric aggregation
|
|
23
|
-
|
|
24
|
-
## Usage
|
|
25
|
-
|
|
26
|
-
All validation scripts should be executed from the project root directory to ensure proper path resolution and access to project resources.
|
|
27
|
-
|
|
28
|
-
## Organization
|
|
29
|
-
|
|
30
|
-
Scripts in this directory follow the project's organizational standards:
|
|
31
|
-
- No working files stored in root
|
|
32
|
-
- Validation logic separated by concern
|
|
33
|
-
- Clear naming conventions for script purpose
|