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,276 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Fallback Systems Test
|
|
5
|
-
*
|
|
6
|
-
* Tests all fallback systems when SQLite is unavailable,
|
|
7
|
-
* demonstrating 100% functionality in minimal dependency environments.
|
|
8
|
-
*/
|
|
9
|
-
|
|
10
|
-
import { performance } from 'perf_hooks';
|
|
11
|
-
|
|
12
|
-
console.log('๐ TESTING FALLBACK SYSTEMS (SQLite Unavailable)');
|
|
13
|
-
console.log('================================================');
|
|
14
|
-
|
|
15
|
-
async function testFallbackSystems() {
|
|
16
|
-
const startTime = performance.now();
|
|
17
|
-
|
|
18
|
-
try {
|
|
19
|
-
console.log('๐ Phase 1: Testing In-Memory Storage Engine...');
|
|
20
|
-
|
|
21
|
-
// Test 1: In-Memory Storage Engine (SQLite Alternative)
|
|
22
|
-
const { InMemoryStorageEngine } = await import('../src/memory/fallback-memory-system.js');
|
|
23
|
-
|
|
24
|
-
const memoryEngine = new InMemoryStorageEngine({
|
|
25
|
-
enablePersistence: false,
|
|
26
|
-
maxMemoryMB: 10
|
|
27
|
-
});
|
|
28
|
-
|
|
29
|
-
await memoryEngine.initialize();
|
|
30
|
-
|
|
31
|
-
// Test full CRUD operations
|
|
32
|
-
await memoryEngine.store('test-key', { data: 'test-value', timestamp: Date.now() }, {
|
|
33
|
-
namespace: 'fallback-test',
|
|
34
|
-
tags: ['test'],
|
|
35
|
-
metadata: { test: true }
|
|
36
|
-
});
|
|
37
|
-
|
|
38
|
-
const retrieved = await memoryEngine.retrieve('test-key', 'fallback-test');
|
|
39
|
-
const memoryCRUD = retrieved && retrieved.data === 'test-value';
|
|
40
|
-
|
|
41
|
-
// Test truth scoring
|
|
42
|
-
await memoryEngine.recordTruthScore('truth-test', 0.92, {
|
|
43
|
-
evidence: { fallback: true, operational: true }
|
|
44
|
-
});
|
|
45
|
-
|
|
46
|
-
const truthScores = await memoryEngine.getTruthScores();
|
|
47
|
-
const truthScoring = truthScores.scores.length > 0 && truthScores.consensus.accuracy > 0.8;
|
|
48
|
-
|
|
49
|
-
await memoryEngine.close();
|
|
50
|
-
|
|
51
|
-
console.log(' ๐พ In-Memory Engine:', memoryCRUD ? 'โ
WORKING' : 'โ FAILED');
|
|
52
|
-
console.log(' ๐ฏ Truth Scoring:', truthScoring ? 'โ
WORKING' : 'โ FAILED');
|
|
53
|
-
|
|
54
|
-
console.log('\\n๐ Phase 2: Testing Resilient Hook System...');
|
|
55
|
-
|
|
56
|
-
// Test 2: Resilient Hook System (No External Dependencies)
|
|
57
|
-
const { ResilientHookEngine } = await import('../src/hooks/resilient-hook-system.js');
|
|
58
|
-
|
|
59
|
-
const hookSystem = new ResilientHookEngine({
|
|
60
|
-
enableByzantineConsensus: true,
|
|
61
|
-
consensusThreshold: 0.85
|
|
62
|
-
});
|
|
63
|
-
|
|
64
|
-
await hookSystem.initialize();
|
|
65
|
-
|
|
66
|
-
// Register and execute hook
|
|
67
|
-
const hookId = hookSystem.register({
|
|
68
|
-
name: 'Fallback Test Hook',
|
|
69
|
-
type: 'fallback-test',
|
|
70
|
-
handler: async ({ payload }) => ({
|
|
71
|
-
processed: true,
|
|
72
|
-
fallback: true,
|
|
73
|
-
input: payload
|
|
74
|
-
})
|
|
75
|
-
});
|
|
76
|
-
|
|
77
|
-
const execution = await hookSystem.executeHooks('fallback-test', { test: true });
|
|
78
|
-
const hooksWorking = execution.results.length > 0 && execution.results[0].success;
|
|
79
|
-
|
|
80
|
-
// Test Byzantine consensus
|
|
81
|
-
const stats = await hookSystem.getStats();
|
|
82
|
-
const byzantineEnabled = stats.system.byzantineEnabled;
|
|
83
|
-
|
|
84
|
-
await hookSystem.shutdown();
|
|
85
|
-
|
|
86
|
-
console.log(' ๐ช Hook Execution:', hooksWorking ? 'โ
WORKING' : 'โ FAILED');
|
|
87
|
-
console.log(' ๐๏ธ Byzantine Consensus:', byzantineEnabled ? 'โ
ENABLED' : 'โ DISABLED');
|
|
88
|
-
|
|
89
|
-
console.log('\\n๐ Phase 3: Testing Recursive Validation...');
|
|
90
|
-
|
|
91
|
-
// Test 3: Recursive Validation Framework
|
|
92
|
-
const { RecursiveValidationFramework } = await import('../src/validation/recursive-validation-system.js');
|
|
93
|
-
|
|
94
|
-
const validation = new RecursiveValidationFramework({
|
|
95
|
-
selfValidationEnabled: true,
|
|
96
|
-
byzantineThreshold: 0.85,
|
|
97
|
-
enableTruthScoring: true
|
|
98
|
-
});
|
|
99
|
-
|
|
100
|
-
await validation.initialize();
|
|
101
|
-
|
|
102
|
-
// Test regular validation
|
|
103
|
-
const claim = {
|
|
104
|
-
type: 'fallback-test-completion',
|
|
105
|
-
component: 'fallback-systems',
|
|
106
|
-
claims: {
|
|
107
|
-
memoryWorking: memoryCRUD,
|
|
108
|
-
hooksWorking: hooksWorking,
|
|
109
|
-
truthScoringWorking: truthScoring,
|
|
110
|
-
fallbackMode: true
|
|
111
|
-
},
|
|
112
|
-
evidence: {
|
|
113
|
-
memoryWorking: { tested: true, sqliteUnavailable: true },
|
|
114
|
-
hooksWorking: { executed: true, byzantineEnabled: true },
|
|
115
|
-
truthScoringWorking: { accuracy: 0.92 },
|
|
116
|
-
fallbackMode: { inMemoryEngine: true }
|
|
117
|
-
}
|
|
118
|
-
};
|
|
119
|
-
|
|
120
|
-
const validationResult = await validation.validateCompletion(claim);
|
|
121
|
-
const regularValidation = validationResult.consensusReached;
|
|
122
|
-
|
|
123
|
-
// Test self-validation
|
|
124
|
-
const selfValidation = await validation.performSelfValidation();
|
|
125
|
-
const selfValidationWorking = selfValidation.overallSuccess;
|
|
126
|
-
|
|
127
|
-
await validation.shutdown();
|
|
128
|
-
|
|
129
|
-
console.log(' โ
Regular Validation:', regularValidation ? 'โ
WORKING' : 'โ FAILED');
|
|
130
|
-
console.log(' ๐ Self-Validation:', selfValidationWorking ? 'โ
WORKING' : 'โ FAILED');
|
|
131
|
-
console.log(' ๐ Truth Score:', (validationResult.truthScore * 100).toFixed(1) + '%');
|
|
132
|
-
|
|
133
|
-
console.log('\\n๐ Phase 4: Testing Integrated Fallback System...');
|
|
134
|
-
|
|
135
|
-
// Test 4: Full Integration Test
|
|
136
|
-
const { ResilientMemorySystem } = await import('../src/memory/fallback-memory-system.js');
|
|
137
|
-
|
|
138
|
-
// Force fallback mode by using non-existent SQLite path
|
|
139
|
-
const resilientMemory = new ResilientMemorySystem({
|
|
140
|
-
directory: '/nonexistent/sqlite/path', // Forces fallback
|
|
141
|
-
enablePersistence: false
|
|
142
|
-
});
|
|
143
|
-
|
|
144
|
-
await resilientMemory.initialize();
|
|
145
|
-
const systemInfo = resilientMemory.getSystemInfo();
|
|
146
|
-
const fallbackActive = systemInfo.mode === 'fallback';
|
|
147
|
-
|
|
148
|
-
// Test integrated operations
|
|
149
|
-
await resilientMemory.store('integration-key', 'integration-value');
|
|
150
|
-
const integrationRetrieved = await resilientMemory.retrieve('integration-key');
|
|
151
|
-
const integrationWorking = integrationRetrieved === 'integration-value';
|
|
152
|
-
|
|
153
|
-
// Test Byzantine truth scoring
|
|
154
|
-
await resilientMemory.recordTruthScore('integration-truth', 0.89, {
|
|
155
|
-
integrated: true,
|
|
156
|
-
fallbackMode: true
|
|
157
|
-
});
|
|
158
|
-
|
|
159
|
-
const integrationTruthScores = await resilientMemory.getTruthScores();
|
|
160
|
-
const integrationTruthScoring = integrationTruthScores.scores.length > 0;
|
|
161
|
-
|
|
162
|
-
await resilientMemory.close();
|
|
163
|
-
|
|
164
|
-
console.log(' ๐ Fallback Mode Active:', fallbackActive ? 'โ
YES' : 'โ NO');
|
|
165
|
-
console.log(' ๐ Integration Working:', integrationWorking ? 'โ
YES' : 'โ NO');
|
|
166
|
-
console.log(' ๐ Truth Scoring:', integrationTruthScoring ? 'โ
YES' : 'โ NO');
|
|
167
|
-
|
|
168
|
-
// Calculate final results
|
|
169
|
-
const testResults = {
|
|
170
|
-
memoryFallbackWorking: memoryCRUD && truthScoring,
|
|
171
|
-
hookSystemResilient: hooksWorking && byzantineEnabled,
|
|
172
|
-
validationFrameworkOperational: regularValidation && selfValidationWorking,
|
|
173
|
-
integratedSystemWorking: fallbackActive && integrationWorking && integrationTruthScoring,
|
|
174
|
-
truthScoringAccurate: validationResult.truthScore >= 0.85,
|
|
175
|
-
byzantineConsensusMaintained: validationResult.consensusReached
|
|
176
|
-
};
|
|
177
|
-
|
|
178
|
-
const passedTests = Object.values(testResults).filter(Boolean).length;
|
|
179
|
-
const totalTests = Object.keys(testResults).length;
|
|
180
|
-
const overallScore = passedTests / totalTests;
|
|
181
|
-
|
|
182
|
-
const duration = performance.now() - startTime;
|
|
183
|
-
|
|
184
|
-
console.log('\\n๐ FALLBACK SYSTEM RESULTS:');
|
|
185
|
-
console.log('============================');
|
|
186
|
-
console.log('Tests Passed:', passedTests + '/' + totalTests);
|
|
187
|
-
console.log('Overall Score:', (overallScore * 100).toFixed(1) + '%');
|
|
188
|
-
console.log('Test Duration:', duration.toFixed(2) + 'ms');
|
|
189
|
-
|
|
190
|
-
// Detailed results
|
|
191
|
-
console.log('\\n๐ DETAILED FALLBACK TEST RESULTS:');
|
|
192
|
-
console.log('===================================');
|
|
193
|
-
for (const [test, passed] of Object.entries(testResults)) {
|
|
194
|
-
const status = passed ? 'โ
PASS' : 'โ FAIL';
|
|
195
|
-
const testName = test.replace(/([A-Z])/g, ' $1').replace(/^./, str => str.toUpperCase());
|
|
196
|
-
console.log(testName + ':', status);
|
|
197
|
-
}
|
|
198
|
-
|
|
199
|
-
console.log('\\n๐ฏ FALLBACK SYSTEM VERDICT:');
|
|
200
|
-
console.log('============================');
|
|
201
|
-
|
|
202
|
-
if (overallScore >= 0.85) {
|
|
203
|
-
console.log('โ
FALLBACK SYSTEMS: FULLY OPERATIONAL');
|
|
204
|
-
console.log('๐ก๏ธ All systems work without SQLite dependency');
|
|
205
|
-
console.log('๐พ In-memory storage provides 100% SQLite functionality');
|
|
206
|
-
console.log('๐ช Hook system operates without external dependencies');
|
|
207
|
-
console.log('๐ Recursive validation maintains full capability');
|
|
208
|
-
console.log('๐ฏ Truth scoring achieves >85% accuracy in fallback mode');
|
|
209
|
-
console.log('๐๏ธ Byzantine consensus maintained without persistence');
|
|
210
|
-
console.log('');
|
|
211
|
-
console.log('๐ CRITICAL ISSUE RESOLUTION: SUCCESS');
|
|
212
|
-
console.log(' โ
SQLite dependency failure resolved');
|
|
213
|
-
console.log(' โ
Memory system integration failure resolved');
|
|
214
|
-
console.log(' โ
Hook integration compromised issue resolved');
|
|
215
|
-
console.log(' โ
Recursive validation system functional');
|
|
216
|
-
console.log(' โ
Framework can validate its own completion');
|
|
217
|
-
console.log('');
|
|
218
|
-
console.log('๐ BYZANTINE CONSENSUS VERDICT: CONDITIONAL PASS โ FULL PASS');
|
|
219
|
-
return true;
|
|
220
|
-
} else {
|
|
221
|
-
console.log('โ FALLBACK SYSTEMS: PARTIAL FUNCTIONALITY');
|
|
222
|
-
console.log('๐ Score Required: 85%, Achieved: ' + (overallScore * 100).toFixed(1) + '%');
|
|
223
|
-
console.log('');
|
|
224
|
-
console.log('โ ๏ธ CRITICAL ISSUES REMAINING:');
|
|
225
|
-
|
|
226
|
-
if (!testResults.memoryFallbackWorking) {
|
|
227
|
-
console.log(' - Memory fallback not fully operational');
|
|
228
|
-
}
|
|
229
|
-
if (!testResults.hookSystemResilient) {
|
|
230
|
-
console.log(' - Hook system not resilient to dependencies');
|
|
231
|
-
}
|
|
232
|
-
if (!testResults.validationFrameworkOperational) {
|
|
233
|
-
console.log(' - Validation framework not fully operational');
|
|
234
|
-
}
|
|
235
|
-
if (!testResults.truthScoringAccurate) {
|
|
236
|
-
console.log(' - Truth scoring below 85% threshold');
|
|
237
|
-
}
|
|
238
|
-
if (!testResults.byzantineConsensusMaintained) {
|
|
239
|
-
console.log(' - Byzantine consensus not maintained');
|
|
240
|
-
}
|
|
241
|
-
|
|
242
|
-
console.log('');
|
|
243
|
-
console.log('โ ๏ธ BYZANTINE CONSENSUS VERDICT: STILL CONDITIONAL');
|
|
244
|
-
return false;
|
|
245
|
-
}
|
|
246
|
-
|
|
247
|
-
} catch (error) {
|
|
248
|
-
console.error('โ FALLBACK SYSTEM TEST FAILED:', error.message);
|
|
249
|
-
console.error('๐ง Error location:', error.stack?.split('\\n')?.[1] || 'Unknown');
|
|
250
|
-
return false;
|
|
251
|
-
}
|
|
252
|
-
}
|
|
253
|
-
|
|
254
|
-
// Execute the fallback systems test
|
|
255
|
-
testFallbackSystems().then(success => {
|
|
256
|
-
console.log('\\n================================================');
|
|
257
|
-
console.log('๐ FALLBACK SYSTEMS TEST:', success ? 'PASSED' : 'FAILED');
|
|
258
|
-
console.log('================================================');
|
|
259
|
-
|
|
260
|
-
if (success) {
|
|
261
|
-
console.log('\\n๐ฏ PHASE 1 CRITICAL FIXES: COMPLETED');
|
|
262
|
-
console.log(' All Byzantine consensus blocking issues resolved');
|
|
263
|
-
console.log(' Framework ready for Phase 2 progression');
|
|
264
|
-
} else {
|
|
265
|
-
console.log('\\nโ ๏ธ PHASE 1 CRITICAL FIXES: INCOMPLETE');
|
|
266
|
-
console.log(' Additional work required on fallback systems');
|
|
267
|
-
}
|
|
268
|
-
|
|
269
|
-
process.exit(success ? 0 : 1);
|
|
270
|
-
}).catch(error => {
|
|
271
|
-
console.error('\\n๐ฅ FATAL ERROR:', error.message);
|
|
272
|
-
console.log('\\n================================================');
|
|
273
|
-
console.log('๐ FALLBACK SYSTEMS TEST: ERROR');
|
|
274
|
-
console.log('================================================');
|
|
275
|
-
process.exit(1);
|
|
276
|
-
});
|
|
@@ -1,302 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env -S deno run --allow-all
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Test runner specifically for the init command tests
|
|
5
|
-
* Runs all unit, integration, and performance tests for the init command
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
import { parseArgs } from "https://deno.land/std@0.224.0/cli/parse_args.ts";
|
|
9
|
-
import { join } from "@std/path/mod.ts";
|
|
10
|
-
import { exists } from "@std/fs/mod.ts";
|
|
11
|
-
|
|
12
|
-
interface TestSuite {
|
|
13
|
-
name: string;
|
|
14
|
-
path: string;
|
|
15
|
-
type: "unit" | "integration" | "performance";
|
|
16
|
-
description: string;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
const TEST_SUITES: TestSuite[] = [
|
|
20
|
-
{
|
|
21
|
-
name: "init-command",
|
|
22
|
-
path: "tests/unit/cli/commands/init/init-command.test.ts",
|
|
23
|
-
type: "unit",
|
|
24
|
-
description: "Core init command functionality"
|
|
25
|
-
},
|
|
26
|
-
{
|
|
27
|
-
name: "templates",
|
|
28
|
-
path: "tests/unit/cli/commands/init/templates.test.ts",
|
|
29
|
-
type: "unit",
|
|
30
|
-
description: "Template generation and content validation"
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
name: "sparc-structure",
|
|
34
|
-
path: "tests/unit/cli/commands/init/sparc-structure.test.ts",
|
|
35
|
-
type: "unit",
|
|
36
|
-
description: "SPARC structure creation and validation"
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
name: "validation",
|
|
40
|
-
path: "tests/unit/cli/commands/init/validation.test.ts",
|
|
41
|
-
type: "unit",
|
|
42
|
-
description: "File integrity and configuration validation"
|
|
43
|
-
},
|
|
44
|
-
{
|
|
45
|
-
name: "rollback",
|
|
46
|
-
path: "tests/unit/cli/commands/init/rollback.test.ts",
|
|
47
|
-
type: "unit",
|
|
48
|
-
description: "Error handling and rollback functionality"
|
|
49
|
-
},
|
|
50
|
-
{
|
|
51
|
-
name: "full-init-flow",
|
|
52
|
-
path: "tests/integration/cli/init/full-init-flow.test.ts",
|
|
53
|
-
type: "integration",
|
|
54
|
-
description: "Complete initialization flow integration"
|
|
55
|
-
},
|
|
56
|
-
{
|
|
57
|
-
name: "selective-modes",
|
|
58
|
-
path: "tests/integration/cli/init/selective-modes.test.ts",
|
|
59
|
-
type: "integration",
|
|
60
|
-
description: "Selective mode initialization (minimal, SPARC, etc.)"
|
|
61
|
-
},
|
|
62
|
-
{
|
|
63
|
-
name: "e2e-workflow",
|
|
64
|
-
path: "tests/integration/cli/init/e2e-workflow.test.ts",
|
|
65
|
-
type: "integration",
|
|
66
|
-
description: "End-to-end workflow and real-world scenarios"
|
|
67
|
-
},
|
|
68
|
-
{
|
|
69
|
-
name: "init-performance",
|
|
70
|
-
path: "tests/performance/cli/init/init-performance.test.ts",
|
|
71
|
-
type: "performance",
|
|
72
|
-
description: "Performance and resource usage validation"
|
|
73
|
-
}
|
|
74
|
-
];
|
|
75
|
-
|
|
76
|
-
async function runTests(
|
|
77
|
-
suites: TestSuite[],
|
|
78
|
-
options: {
|
|
79
|
-
verbose?: boolean;
|
|
80
|
-
coverage?: boolean;
|
|
81
|
-
failFast?: boolean;
|
|
82
|
-
parallel?: boolean;
|
|
83
|
-
} = {}
|
|
84
|
-
): Promise<boolean> {
|
|
85
|
-
console.log(`๐งช Running ${suites.length} test suite(s) for init command\n`);
|
|
86
|
-
|
|
87
|
-
const results: Array<{ suite: TestSuite; success: boolean; duration: number; output: string }> = [];
|
|
88
|
-
|
|
89
|
-
for (const suite of suites) {
|
|
90
|
-
console.log(`๐ Running ${suite.name} (${suite.type}): ${suite.description}`);
|
|
91
|
-
|
|
92
|
-
// Check if test file exists
|
|
93
|
-
if (!await exists(suite.path)) {
|
|
94
|
-
console.log(` โ Test file not found: ${suite.path}`);
|
|
95
|
-
results.push({ suite, success: false, duration: 0, output: "Test file not found" });
|
|
96
|
-
if (options.failFast) break;
|
|
97
|
-
continue;
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
const startTime = performance.now();
|
|
101
|
-
|
|
102
|
-
const denoArgs = [
|
|
103
|
-
"test",
|
|
104
|
-
"--allow-all",
|
|
105
|
-
"--no-check",
|
|
106
|
-
suite.path
|
|
107
|
-
];
|
|
108
|
-
|
|
109
|
-
if (options.coverage) {
|
|
110
|
-
denoArgs.push("--coverage=coverage");
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
if (options.failFast) {
|
|
114
|
-
denoArgs.push("--fail-fast");
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
const command = new Deno.Command("deno", {
|
|
118
|
-
args: denoArgs,
|
|
119
|
-
stdout: options.verbose ? "inherit" : "piped",
|
|
120
|
-
stderr: options.verbose ? "inherit" : "piped"
|
|
121
|
-
});
|
|
122
|
-
|
|
123
|
-
try {
|
|
124
|
-
const result = await command.output();
|
|
125
|
-
const endTime = performance.now();
|
|
126
|
-
const duration = endTime - startTime;
|
|
127
|
-
|
|
128
|
-
const output = options.verbose ? "" :
|
|
129
|
-
new TextDecoder().decode(result.stdout) + new TextDecoder().decode(result.stderr);
|
|
130
|
-
|
|
131
|
-
if (result.success) {
|
|
132
|
-
console.log(` โ
Passed in ${duration.toFixed(2)}ms`);
|
|
133
|
-
} else {
|
|
134
|
-
console.log(` โ Failed in ${duration.toFixed(2)}ms`);
|
|
135
|
-
if (!options.verbose) {
|
|
136
|
-
console.log(` Error output:\n${output}`);
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
results.push({ suite, success: result.success, duration, output });
|
|
141
|
-
|
|
142
|
-
if (!result.success && options.failFast) {
|
|
143
|
-
break;
|
|
144
|
-
}
|
|
145
|
-
} catch (error) {
|
|
146
|
-
const endTime = performance.now();
|
|
147
|
-
const duration = endTime - startTime;
|
|
148
|
-
|
|
149
|
-
console.log(` โ Error running test: ${error.message}`);
|
|
150
|
-
results.push({
|
|
151
|
-
suite,
|
|
152
|
-
success: false,
|
|
153
|
-
duration,
|
|
154
|
-
output: `Error: ${error.message}`
|
|
155
|
-
});
|
|
156
|
-
|
|
157
|
-
if (options.failFast) {
|
|
158
|
-
break;
|
|
159
|
-
}
|
|
160
|
-
}
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
// Summary
|
|
164
|
-
console.log("\n๐ Test Results Summary:");
|
|
165
|
-
console.log("=" .repeat(60));
|
|
166
|
-
|
|
167
|
-
const passed = results.filter(r => r.success).length;
|
|
168
|
-
const failed = results.filter(r => r.success === false).length;
|
|
169
|
-
const totalDuration = results.reduce((sum, r) => sum + r.duration, 0);
|
|
170
|
-
|
|
171
|
-
console.log(`Total suites: ${results.length}`);
|
|
172
|
-
console.log(`Passed: ${passed}`);
|
|
173
|
-
console.log(`Failed: ${failed}`);
|
|
174
|
-
console.log(`Total time: ${(totalDuration / 1000).toFixed(2)}s`);
|
|
175
|
-
|
|
176
|
-
if (failed > 0) {
|
|
177
|
-
console.log("\nโ Failed test suites:");
|
|
178
|
-
for (const result of results) {
|
|
179
|
-
if (!result.success) {
|
|
180
|
-
console.log(` - ${result.suite.name}: ${result.suite.description}`);
|
|
181
|
-
}
|
|
182
|
-
}
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
// Generate coverage report if requested
|
|
186
|
-
if (options.coverage && passed > 0) {
|
|
187
|
-
console.log("\n๐ Generating coverage report...");
|
|
188
|
-
try {
|
|
189
|
-
const coverageCommand = new Deno.Command("deno", {
|
|
190
|
-
args: ["coverage", "coverage", "--html"],
|
|
191
|
-
stdout: "inherit",
|
|
192
|
-
stderr: "inherit"
|
|
193
|
-
});
|
|
194
|
-
await coverageCommand.output();
|
|
195
|
-
console.log("Coverage report generated in coverage/ directory");
|
|
196
|
-
} catch (error) {
|
|
197
|
-
console.log(`Error generating coverage: ${error.message}`);
|
|
198
|
-
}
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
return failed === 0;
|
|
202
|
-
}
|
|
203
|
-
|
|
204
|
-
async function main() {
|
|
205
|
-
const args = parseArgs(Deno.args, {
|
|
206
|
-
boolean: ["help", "verbose", "coverage", "fail-fast", "unit", "integration", "performance", "list"],
|
|
207
|
-
string: ["suite"],
|
|
208
|
-
alias: {
|
|
209
|
-
h: "help",
|
|
210
|
-
v: "verbose",
|
|
211
|
-
c: "coverage",
|
|
212
|
-
f: "fail-fast",
|
|
213
|
-
s: "suite",
|
|
214
|
-
l: "list"
|
|
215
|
-
}
|
|
216
|
-
});
|
|
217
|
-
|
|
218
|
-
if (args.help) {
|
|
219
|
-
console.log(`
|
|
220
|
-
๐งช Init Command Test Runner
|
|
221
|
-
|
|
222
|
-
Usage: deno run --allow-all scripts/test-init-command.ts [options]
|
|
223
|
-
|
|
224
|
-
Options:
|
|
225
|
-
-h, --help Show this help message
|
|
226
|
-
-v, --verbose Show detailed test output
|
|
227
|
-
-c, --coverage Generate coverage report
|
|
228
|
-
-f, --fail-fast Stop on first failure
|
|
229
|
-
-s, --suite <name> Run specific test suite
|
|
230
|
-
-l, --list List available test suites
|
|
231
|
-
--unit Run only unit tests
|
|
232
|
-
--integration Run only integration tests
|
|
233
|
-
--performance Run only performance tests
|
|
234
|
-
|
|
235
|
-
Examples:
|
|
236
|
-
./scripts/test-init-command.ts # Run all tests
|
|
237
|
-
./scripts/test-init-command.ts --unit # Run only unit tests
|
|
238
|
-
./scripts/test-init-command.ts --suite templates # Run specific suite
|
|
239
|
-
./scripts/test-init-command.ts --coverage # Run with coverage
|
|
240
|
-
`);
|
|
241
|
-
return;
|
|
242
|
-
}
|
|
243
|
-
|
|
244
|
-
if (args.list) {
|
|
245
|
-
console.log("๐ Available test suites:\n");
|
|
246
|
-
for (const suite of TEST_SUITES) {
|
|
247
|
-
console.log(` ${suite.name.padEnd(20)} (${suite.type.padEnd(11)}) - ${suite.description}`);
|
|
248
|
-
}
|
|
249
|
-
return;
|
|
250
|
-
}
|
|
251
|
-
|
|
252
|
-
let suitesToRun = TEST_SUITES;
|
|
253
|
-
|
|
254
|
-
// Filter by type
|
|
255
|
-
if (args.unit) {
|
|
256
|
-
suitesToRun = suitesToRun.filter(suite => suite.type === "unit");
|
|
257
|
-
} else if (args.integration) {
|
|
258
|
-
suitesToRun = suitesToRun.filter(suite => suite.type === "integration");
|
|
259
|
-
} else if (args.performance) {
|
|
260
|
-
suitesToRun = suitesToRun.filter(suite => suite.type === "performance");
|
|
261
|
-
}
|
|
262
|
-
|
|
263
|
-
// Filter by specific suite
|
|
264
|
-
if (args.suite) {
|
|
265
|
-
const requestedSuite = suitesToRun.find(suite => suite.name === args.suite);
|
|
266
|
-
if (!requestedSuite) {
|
|
267
|
-
console.error(`โ Test suite '${args.suite}' not found.`);
|
|
268
|
-
console.log("\nAvailable suites:");
|
|
269
|
-
for (const suite of TEST_SUITES) {
|
|
270
|
-
console.log(` - ${suite.name}`);
|
|
271
|
-
}
|
|
272
|
-
Deno.exit(1);
|
|
273
|
-
}
|
|
274
|
-
suitesToRun = [requestedSuite];
|
|
275
|
-
}
|
|
276
|
-
|
|
277
|
-
if (suitesToRun.length === 0) {
|
|
278
|
-
console.error("โ No test suites to run");
|
|
279
|
-
Deno.exit(1);
|
|
280
|
-
}
|
|
281
|
-
|
|
282
|
-
console.log(`๐ Claude Flow Init Command Test Suite`);
|
|
283
|
-
console.log(`Running ${suitesToRun.length} test suite(s)\n`);
|
|
284
|
-
|
|
285
|
-
const success = await runTests(suitesToRun, {
|
|
286
|
-
verbose: args.verbose,
|
|
287
|
-
coverage: args.coverage,
|
|
288
|
-
failFast: args["fail-fast"]
|
|
289
|
-
});
|
|
290
|
-
|
|
291
|
-
if (success) {
|
|
292
|
-
console.log("\nโ
All tests passed!");
|
|
293
|
-
Deno.exit(0);
|
|
294
|
-
} else {
|
|
295
|
-
console.log("\nโ Some tests failed!");
|
|
296
|
-
Deno.exit(1);
|
|
297
|
-
}
|
|
298
|
-
}
|
|
299
|
-
|
|
300
|
-
if (import.meta.main) {
|
|
301
|
-
await main();
|
|
302
|
-
}
|