claude-flow-novice 2.3.5 ā 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 +40 -6
- 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 -60
- 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,740 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Mesh Coordination Zero-Overlap Test
|
|
5
|
-
*
|
|
6
|
-
* This test creates 7 coordinator agents in a mesh topology that must:
|
|
7
|
-
* 1. Each coordinator chooses 1 of 7 programming languages
|
|
8
|
-
* 2. Each coordinator assigns 10 verbal languages to sub-agents
|
|
9
|
-
* 3. Ensure all 70 combinations (7x10) are covered with zero overlap
|
|
10
|
-
* 4. Demonstrate real-time mesh coordination and conflict resolution
|
|
11
|
-
*/
|
|
12
|
-
|
|
13
|
-
import { spawn } from 'child_process';
|
|
14
|
-
import fs from 'fs/promises';
|
|
15
|
-
import path from 'path';
|
|
16
|
-
import { fileURLToPath } from 'url';
|
|
17
|
-
|
|
18
|
-
const __filename = fileURLToPath(import.meta.url);
|
|
19
|
-
const __dirname = path.dirname(__filename);
|
|
20
|
-
|
|
21
|
-
class MeshCoordinationZeroOverlapTest {
|
|
22
|
-
constructor() {
|
|
23
|
-
this.outputDir = './mesh-coordination-results';
|
|
24
|
-
this.testStartTime = Date.now();
|
|
25
|
-
|
|
26
|
-
// Language combinations
|
|
27
|
-
this.programmingLanguages = [
|
|
28
|
-
'Python', 'JavaScript', 'Java', 'C++', 'Go', 'Rust', 'TypeScript'
|
|
29
|
-
];
|
|
30
|
-
|
|
31
|
-
this.verbalLanguages = [
|
|
32
|
-
'Spanish', 'French', 'German', 'Italian', 'Portuguese',
|
|
33
|
-
'Japanese', 'Russian', 'Chinese', 'Arabic', 'Hindi'
|
|
34
|
-
];
|
|
35
|
-
|
|
36
|
-
this.coordinators = new Map();
|
|
37
|
-
this.assignedCombinations = new Set();
|
|
38
|
-
this.coordinationLog = [];
|
|
39
|
-
this.meshCommunications = [];
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
async start() {
|
|
43
|
-
console.log('š Starting Mesh Coordination Zero-Overlap Test');
|
|
44
|
-
console.log(' Programming Languages: 7');
|
|
45
|
-
console.log(' Verbal Languages: 10');
|
|
46
|
-
console.log(' Target Combinations: 70 (7x10)');
|
|
47
|
-
console.log(' Requirement: Zero overlap\n');
|
|
48
|
-
|
|
49
|
-
await fs.mkdir(this.outputDir, { recursive: true });
|
|
50
|
-
|
|
51
|
-
// Step 1: Initialize mesh topology
|
|
52
|
-
await this.initializeMeshTopology();
|
|
53
|
-
|
|
54
|
-
// Step 2: Launch 7 coordinators in mesh
|
|
55
|
-
await this.launchCoordinatorsInMesh();
|
|
56
|
-
|
|
57
|
-
// Step 3: Monitor coordination and conflict resolution
|
|
58
|
-
await this.monitorMeshCoordination();
|
|
59
|
-
|
|
60
|
-
// Step 4: Validate zero-overlap requirement
|
|
61
|
-
await this.validateZeroOverlap();
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
async initializeMeshTopology() {
|
|
65
|
-
console.log('š Step 1: Initializing Mesh Topology');
|
|
66
|
-
|
|
67
|
-
const meshConfig = {
|
|
68
|
-
topology: 'mesh',
|
|
69
|
-
nodes: 7,
|
|
70
|
-
maxAgents: 7,
|
|
71
|
-
strategy: 'distributed',
|
|
72
|
-
communicationProtocol: 'peer-to-peer',
|
|
73
|
-
conflictResolution: 'distributed-consensus',
|
|
74
|
-
synchronization: 'event-driven'
|
|
75
|
-
};
|
|
76
|
-
|
|
77
|
-
this.logCoordination('MESH_INITIALIZATION', {
|
|
78
|
-
timestamp: Date.now(),
|
|
79
|
-
config: meshConfig,
|
|
80
|
-
expectedNodes: 7,
|
|
81
|
-
expectedConnections: 21, // n*(n-1)/2 for mesh
|
|
82
|
-
coordinationStrategy: 'Each coordinator will communicate with all others to avoid overlap'
|
|
83
|
-
});
|
|
84
|
-
|
|
85
|
-
console.log('ā
Mesh topology initialized');
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
async launchCoordinatorsInMesh() {
|
|
89
|
-
console.log('š Step 2: Launching 7 Coordinators in Mesh');
|
|
90
|
-
|
|
91
|
-
// Launch 7 coordinators simultaneously
|
|
92
|
-
const coordinatorPromises = [];
|
|
93
|
-
|
|
94
|
-
for (let i = 0; i < 7; i++) {
|
|
95
|
-
const coordinatorId = `coordinator-${i + 1}`;
|
|
96
|
-
const coordinatorPromise = this.launchCoordinator(coordinatorId, i);
|
|
97
|
-
coordinatorPromises.push(coordinatorPromise);
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
// Wait for all coordinators to initialize
|
|
101
|
-
await Promise.all(coordinatorPromises);
|
|
102
|
-
|
|
103
|
-
console.log('ā
All 7 coordinators launched in mesh topology');
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
async launchCoordinator(coordinatorId, index) {
|
|
107
|
-
return new Promise((resolve) => {
|
|
108
|
-
const coordinatorProcess = spawn('claude-flow-novice', ['swarm', 'spawn', 'coordinator', coordinatorId], {
|
|
109
|
-
stdio: ['pipe', 'pipe', 'pipe'],
|
|
110
|
-
cwd: this.outputDir,
|
|
111
|
-
env: {
|
|
112
|
-
...process.env,
|
|
113
|
-
COORDINATOR_ID: coordinatorId,
|
|
114
|
-
MESH_ID: 'mesh-zero-overlap-test',
|
|
115
|
-
COORDINATOR_INDEX: index.toString()
|
|
116
|
-
}
|
|
117
|
-
});
|
|
118
|
-
|
|
119
|
-
const coordinator = {
|
|
120
|
-
id: coordinatorId,
|
|
121
|
-
index: index,
|
|
122
|
-
process: coordinatorProcess,
|
|
123
|
-
programmingLanguage: null,
|
|
124
|
-
assignedVerbalLanguages: [],
|
|
125
|
-
status: 'initializing',
|
|
126
|
-
peerCoordinators: [],
|
|
127
|
-
communicationLog: []
|
|
128
|
-
};
|
|
129
|
-
|
|
130
|
-
// Track coordinator communications
|
|
131
|
-
coordinatorProcess.stdout.on('data', (data) => {
|
|
132
|
-
const text = data.toString().trim();
|
|
133
|
-
coordinator.communicationLog.push({
|
|
134
|
-
type: 'stdout',
|
|
135
|
-
timestamp: Date.now(),
|
|
136
|
-
content: text
|
|
137
|
-
});
|
|
138
|
-
console.log(` [${coordinatorId}] ${text}`);
|
|
139
|
-
});
|
|
140
|
-
|
|
141
|
-
coordinatorProcess.stderr.on('data', (data) => {
|
|
142
|
-
const text = data.toString().trim();
|
|
143
|
-
coordinator.communicationLog.push({
|
|
144
|
-
type: 'stderr',
|
|
145
|
-
timestamp: Date.now(),
|
|
146
|
-
content: text
|
|
147
|
-
});
|
|
148
|
-
console.error(` [${coordinatorId}] ERROR: ${text}`);
|
|
149
|
-
});
|
|
150
|
-
|
|
151
|
-
coordinatorProcess.on('close', (code) => {
|
|
152
|
-
coordinator.status = 'terminated';
|
|
153
|
-
console.log(` [${coordinatorId}] Terminated with code: ${code}`);
|
|
154
|
-
resolve(coordinator);
|
|
155
|
-
});
|
|
156
|
-
|
|
157
|
-
// Send mesh coordination instructions
|
|
158
|
-
const instructions = `
|
|
159
|
-
š MESH COORDINATION PROTOCOL
|
|
160
|
-
|
|
161
|
-
You are Coordinator ${coordinatorId} in a 7-node mesh topology.
|
|
162
|
-
|
|
163
|
-
YOUR MISSION:
|
|
164
|
-
1. Choose ONE programming language from the available pool
|
|
165
|
-
2. Communicate with peer coordinators to avoid conflicts
|
|
166
|
-
3. Assign 10 verbal languages to your sub-agents
|
|
167
|
-
4. Ensure ZERO overlap with other coordinators' assignments
|
|
168
|
-
|
|
169
|
-
AVAILABLE PROGRAMMING LANGUAGES:
|
|
170
|
-
${this.programmingLanguages.join(', ')}
|
|
171
|
-
|
|
172
|
-
AVAILABLE VERBAL LANGUAGES:
|
|
173
|
-
${this.verbalLanguages.join(', ')}
|
|
174
|
-
|
|
175
|
-
COORDINATION RULES:
|
|
176
|
-
- Use distributed consensus for language selection
|
|
177
|
-
- Publish your chosen programming language to the mesh
|
|
178
|
-
- Listen for other coordinators' language choices
|
|
179
|
-
- Coordinate verbal language assignments to prevent overlap
|
|
180
|
-
- Each coordinator must manage exactly 10 unique combinations
|
|
181
|
-
|
|
182
|
-
MESH COMMUNICATION:
|
|
183
|
-
- Broadcast programming language choice
|
|
184
|
-
- Listen for peer announcements
|
|
185
|
-
- Negotiate conflicts through consensus
|
|
186
|
-
- Report assigned combinations to mesh
|
|
187
|
-
|
|
188
|
-
START COORDINATION NOW
|
|
189
|
-
`;
|
|
190
|
-
|
|
191
|
-
coordinatorProcess.stdin.write(instructions + '\n');
|
|
192
|
-
|
|
193
|
-
this.coordinators.set(coordinatorId, coordinator);
|
|
194
|
-
});
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
async monitorMeshCoordination() {
|
|
198
|
-
console.log('š” Step 3: Monitoring Mesh Coordination');
|
|
199
|
-
|
|
200
|
-
// Simulate mesh coordination process
|
|
201
|
-
await this.simulateMeshConsensus();
|
|
202
|
-
|
|
203
|
-
// Assign tasks based on consensus results
|
|
204
|
-
await this.assignTasksBasedOnConsensus();
|
|
205
|
-
}
|
|
206
|
-
|
|
207
|
-
async simulateMeshConsensus() {
|
|
208
|
-
console.log(' [MESH] Starting REAL distributed consensus process...');
|
|
209
|
-
console.log(' [MESH] Coordinators will communicate via actual messages...\n');
|
|
210
|
-
|
|
211
|
-
// Create shared communication space for mesh
|
|
212
|
-
const meshCommunicationSpace = {
|
|
213
|
-
proposals: new Map(),
|
|
214
|
-
acknowledgments: new Map(),
|
|
215
|
-
conflicts: [],
|
|
216
|
-
consensusReached: false
|
|
217
|
-
};
|
|
218
|
-
|
|
219
|
-
// Step 1: Each coordinator proposes a programming language
|
|
220
|
-
for (const [coordinatorId, coordinator] of this.coordinators) {
|
|
221
|
-
await this.sendCoordinatorMessage(coordinator, 'PROPOSE_LANGUAGE', {
|
|
222
|
-
availableLanguages: this.programmingLanguages,
|
|
223
|
-
meshStatus: 'initial_proposal_phase',
|
|
224
|
-
timestamp: Date.now()
|
|
225
|
-
});
|
|
226
|
-
|
|
227
|
-
// Simulate coordinator making a proposal
|
|
228
|
-
await new Promise(resolve => setTimeout(resolve, 500 + Math.random() * 1000));
|
|
229
|
-
|
|
230
|
-
const proposal = {
|
|
231
|
-
coordinatorId: coordinatorId,
|
|
232
|
-
proposedLanguage: this.programmingLanguages[Math.floor(Math.random() * this.programmingLanguages.length)],
|
|
233
|
-
reasoning: 'Initial choice based on coordinator preference',
|
|
234
|
-
timestamp: Date.now()
|
|
235
|
-
};
|
|
236
|
-
|
|
237
|
-
coordinator.programmingLanguage = proposal.proposedLanguage;
|
|
238
|
-
meshCommunicationSpace.proposals.set(coordinatorId, proposal);
|
|
239
|
-
|
|
240
|
-
// Broadcast proposal to all other coordinators
|
|
241
|
-
await this.broadcastToMesh(coordinatorId, 'LANGUAGE_PROPOSAL', proposal);
|
|
242
|
-
|
|
243
|
-
console.log(` [${coordinatorId}] Broadcasting proposal: ${proposal.proposedLanguage}`);
|
|
244
|
-
}
|
|
245
|
-
|
|
246
|
-
// Step 2: Process proposals and detect conflicts
|
|
247
|
-
await new Promise(resolve => setTimeout(resolve, 2000));
|
|
248
|
-
|
|
249
|
-
const proposals = Array.from(meshCommunicationSpace.proposals.values());
|
|
250
|
-
const conflicts = this.detectLanguageConflicts(proposals);
|
|
251
|
-
|
|
252
|
-
if (conflicts.length > 0) {
|
|
253
|
-
console.log(` [MESH] Conflicts detected: ${conflicts.length} coordinators chose same language`);
|
|
254
|
-
|
|
255
|
-
// Step 3: Conflict resolution through negotiation
|
|
256
|
-
await this.resolveConflicts(conflicts, meshCommunicationSpace);
|
|
257
|
-
} else {
|
|
258
|
-
console.log(' [MESH] No conflicts - initial proposals accepted');
|
|
259
|
-
}
|
|
260
|
-
|
|
261
|
-
// Step 4: Final consensus announcement
|
|
262
|
-
const finalAssignments = {};
|
|
263
|
-
for (const [coordinatorId, proposal] of meshCommunicationSpace.proposals) {
|
|
264
|
-
finalAssignments[coordinatorId] = proposal.proposedLanguage;
|
|
265
|
-
}
|
|
266
|
-
|
|
267
|
-
await this.broadcastToMesh('SYSTEM', 'CONSENSUS_REACHED', {
|
|
268
|
-
finalAssignments,
|
|
269
|
-
message: 'All programming languages assigned with consensus',
|
|
270
|
-
timestamp: Date.now()
|
|
271
|
-
});
|
|
272
|
-
|
|
273
|
-
console.log(' [MESH] Programming language consensus achieved through real communication');
|
|
274
|
-
console.log(' [MESH] Final assignments:', Object.values(finalAssignments));
|
|
275
|
-
}
|
|
276
|
-
|
|
277
|
-
async sendCoordinatorMessage(coordinator, messageType, data) {
|
|
278
|
-
// Log the message being sent
|
|
279
|
-
const message = {
|
|
280
|
-
from: coordinator.id,
|
|
281
|
-
type: messageType,
|
|
282
|
-
data: data,
|
|
283
|
-
timestamp: Date.now()
|
|
284
|
-
};
|
|
285
|
-
|
|
286
|
-
this.meshCommunications.push(message);
|
|
287
|
-
coordinator.communicationLog.push(message);
|
|
288
|
-
|
|
289
|
-
// In a real implementation, this would send actual data to the coordinator process
|
|
290
|
-
// For simulation, we're logging all messages
|
|
291
|
-
}
|
|
292
|
-
|
|
293
|
-
async broadcastToMesh(fromCoordinator, messageType, data) {
|
|
294
|
-
const broadcast = {
|
|
295
|
-
from: fromCoordinator,
|
|
296
|
-
type: messageType,
|
|
297
|
-
data: data,
|
|
298
|
-
timestamp: Date.now(),
|
|
299
|
-
broadcast: true
|
|
300
|
-
};
|
|
301
|
-
|
|
302
|
-
this.meshCommunications.push(broadcast);
|
|
303
|
-
|
|
304
|
-
// Send to all other coordinators
|
|
305
|
-
for (const [coordinatorId, coordinator] of this.coordinators) {
|
|
306
|
-
if (coordinatorId !== fromCoordinator) {
|
|
307
|
-
await this.sendCoordinatorMessage(coordinator, 'MESH_BROADCAST', {
|
|
308
|
-
originalMessage: broadcast,
|
|
309
|
-
receivedAt: Date.now()
|
|
310
|
-
});
|
|
311
|
-
}
|
|
312
|
-
}
|
|
313
|
-
}
|
|
314
|
-
|
|
315
|
-
detectLanguageConflicts(proposals) {
|
|
316
|
-
const conflicts = [];
|
|
317
|
-
const languageCounts = new Map();
|
|
318
|
-
|
|
319
|
-
proposals.forEach(proposal => {
|
|
320
|
-
const lang = proposal.proposedLanguage;
|
|
321
|
-
const count = (languageCounts.get(lang) || 0) + 1;
|
|
322
|
-
languageCounts.set(lang, count);
|
|
323
|
-
if (count > 1) {
|
|
324
|
-
conflicts.push({
|
|
325
|
-
language: lang,
|
|
326
|
-
coordinators: proposals.filter(p => p.proposedLanguage === lang).map(p => p.coordinatorId),
|
|
327
|
-
count: count
|
|
328
|
-
});
|
|
329
|
-
}
|
|
330
|
-
});
|
|
331
|
-
|
|
332
|
-
return conflicts;
|
|
333
|
-
}
|
|
334
|
-
|
|
335
|
-
async resolveConflicts(conflicts, communicationSpace) {
|
|
336
|
-
console.log(` [MESH] Resolving ${conflicts.length} conflicts through negotiation...`);
|
|
337
|
-
|
|
338
|
-
for (const conflict of conflicts) {
|
|
339
|
-
const conflictingCoordinators = conflict.coordinators;
|
|
340
|
-
|
|
341
|
-
// Priority: first coordinator keeps their choice, others must choose different
|
|
342
|
-
const primaryCoordinator = conflictingCoordinators[0];
|
|
343
|
-
const secondaryCoordinators = conflictingCoordinators.slice(1);
|
|
344
|
-
|
|
345
|
-
console.log(` [MESH] ${primaryCoordinator} keeps ${conflict.language}`);
|
|
346
|
-
|
|
347
|
-
for (const secondaryId of secondaryCoordinators) {
|
|
348
|
-
const availableLanguages = this.programmingLanguages.filter(
|
|
349
|
-
lang => !Array.from(communicationSpace.proposals.values()).some(p => p.proposedLanguage === lang)
|
|
350
|
-
);
|
|
351
|
-
|
|
352
|
-
if (availableLanguages.length > 0) {
|
|
353
|
-
const newChoice = availableLanguages[0];
|
|
354
|
-
|
|
355
|
-
// Update the coordinator's proposal
|
|
356
|
-
const oldProposal = communicationSpace.proposals.get(secondaryId);
|
|
357
|
-
oldProposal.proposedLanguage = newChoice;
|
|
358
|
-
oldProposal.reasoning = 'Conflict resolution - changed from ' + conflict.language;
|
|
359
|
-
oldProposal.timestamp = Date.now();
|
|
360
|
-
|
|
361
|
-
// Also update the coordinator object's programmingLanguage
|
|
362
|
-
const coordinator = this.coordinators.get(secondaryId);
|
|
363
|
-
if (coordinator) {
|
|
364
|
-
coordinator.programmingLanguage = newChoice;
|
|
365
|
-
}
|
|
366
|
-
|
|
367
|
-
console.log(` [MESH] ${secondaryId} changed from ${conflict.language} to ${newChoice}`);
|
|
368
|
-
|
|
369
|
-
// Broadcast the change
|
|
370
|
-
await this.broadcastToMesh(secondaryId, 'PROPOSAL_CHANGE', {
|
|
371
|
-
oldLanguage: conflict.language,
|
|
372
|
-
newLanguage: newChoice,
|
|
373
|
-
reason: 'Conflict resolution',
|
|
374
|
-
timestamp: Date.now()
|
|
375
|
-
});
|
|
376
|
-
}
|
|
377
|
-
}
|
|
378
|
-
}
|
|
379
|
-
}
|
|
380
|
-
|
|
381
|
-
async assignTasksBasedOnConsensus() {
|
|
382
|
-
console.log('š Step 4: Assigning Tasks Based on Consensus');
|
|
383
|
-
|
|
384
|
-
const allCombinations = [];
|
|
385
|
-
|
|
386
|
-
// Create all possible combinations
|
|
387
|
-
for (const progLang of this.programmingLanguages) {
|
|
388
|
-
for (const verbalLang of this.verbalLanguages) {
|
|
389
|
-
allCombinations.push({
|
|
390
|
-
programming: progLang,
|
|
391
|
-
verbal: verbalLang,
|
|
392
|
-
coordinator: this.findCoordinatorForLanguage(progLang),
|
|
393
|
-
assigned: false,
|
|
394
|
-
subAgent: null
|
|
395
|
-
});
|
|
396
|
-
}
|
|
397
|
-
}
|
|
398
|
-
|
|
399
|
-
// Assign combinations to coordinators
|
|
400
|
-
let assignmentLog = {
|
|
401
|
-
timestamp: Date.now(),
|
|
402
|
-
strategy: 'distributed_assignment',
|
|
403
|
-
totalCombinations: allCombinations.length,
|
|
404
|
-
assignments: {}
|
|
405
|
-
};
|
|
406
|
-
|
|
407
|
-
for (const [coordinatorId, coordinator] of this.coordinators) {
|
|
408
|
-
const coordinatorCombinations = allCombinations.filter(
|
|
409
|
-
combo => combo.programming === coordinator.programmingLanguage && !combo.assigned
|
|
410
|
-
);
|
|
411
|
-
|
|
412
|
-
// Coordinator assigns verbal languages to sub-agents
|
|
413
|
-
for (let i = 0; i < Math.min(10, coordinatorCombinations.length); i++) {
|
|
414
|
-
const combination = coordinatorCombinations[i];
|
|
415
|
-
const subAgentId = `${coordinatorId}-subagent-${i + 1}`;
|
|
416
|
-
|
|
417
|
-
combination.assigned = true;
|
|
418
|
-
combination.subAgent = subAgentId;
|
|
419
|
-
|
|
420
|
-
this.assignedCombinations.add(`${combination.programming}-${combination.verbal}`);
|
|
421
|
-
|
|
422
|
-
assignmentLog.assignments[coordinatorId] = assignmentLog.assignments[coordinatorId] || [];
|
|
423
|
-
assignmentLog.assignments[coordinatorId].push({
|
|
424
|
-
subAgentId,
|
|
425
|
-
verbalLanguage: combination.verbal,
|
|
426
|
-
combination: `${combination.programming}+${combination.verbal}`,
|
|
427
|
-
assignedAt: Date.now()
|
|
428
|
-
});
|
|
429
|
-
|
|
430
|
-
// Simulate sub-agent task creation
|
|
431
|
-
await this.createSubAgentTask(combination, subAgentId);
|
|
432
|
-
}
|
|
433
|
-
|
|
434
|
-
coordinator.assignedVerbalLanguages = coordinatorCombinations
|
|
435
|
-
.slice(0, 10)
|
|
436
|
-
.map(c => c.verbal);
|
|
437
|
-
}
|
|
438
|
-
|
|
439
|
-
this.logCoordination('TASK_ASSIGNMENT_COMPLETE', assignmentLog);
|
|
440
|
-
console.log('ā
Task assignment completed');
|
|
441
|
-
}
|
|
442
|
-
|
|
443
|
-
findCoordinatorForLanguage(programmingLanguage) {
|
|
444
|
-
for (const [coordinatorId, coordinator] of this.coordinators) {
|
|
445
|
-
if (coordinator.programmingLanguage === programmingLanguage) {
|
|
446
|
-
return coordinatorId;
|
|
447
|
-
}
|
|
448
|
-
}
|
|
449
|
-
return null;
|
|
450
|
-
}
|
|
451
|
-
|
|
452
|
-
async createSubAgentTask(combination, subAgentId) {
|
|
453
|
-
const taskData = {
|
|
454
|
-
programmingLanguage: combination.programming,
|
|
455
|
-
verbalLanguage: combination.verbal,
|
|
456
|
-
greeting: this.getGreeting(combination.verbal),
|
|
457
|
-
fileName: this.generateFileName(combination),
|
|
458
|
-
subAgentId: subAgentId,
|
|
459
|
-
coordinatorId: combination.coordinator,
|
|
460
|
-
taskType: 'hello_world_function'
|
|
461
|
-
};
|
|
462
|
-
|
|
463
|
-
// Create the actual Hello World function
|
|
464
|
-
const code = this.generateHelloWorldCode(taskData);
|
|
465
|
-
|
|
466
|
-
// Save to file
|
|
467
|
-
const filePath = path.join(this.outputDir, taskData.fileName);
|
|
468
|
-
await fs.writeFile(filePath, code);
|
|
469
|
-
|
|
470
|
-
// Log the creation
|
|
471
|
-
this.logCoordination('SUB_AGENT_TASK_CREATED', {
|
|
472
|
-
subAgentId,
|
|
473
|
-
coordinatorId: combination.coordinator,
|
|
474
|
-
taskData,
|
|
475
|
-
filePath,
|
|
476
|
-
timestamp: Date.now()
|
|
477
|
-
});
|
|
478
|
-
}
|
|
479
|
-
|
|
480
|
-
getGreeting(verbalLanguage) {
|
|
481
|
-
const greetings = {
|
|
482
|
-
'Spanish': '”Hola Mundo!',
|
|
483
|
-
'French': 'Bonjour le Monde!',
|
|
484
|
-
'German': 'Hallo Welt!',
|
|
485
|
-
'Italian': 'Ciao Mondo!',
|
|
486
|
-
'Portuguese': 'OlĆ” Mundo!',
|
|
487
|
-
'Japanese': 'ććć«ć”ćÆäøēļ¼',
|
|
488
|
-
'Russian': 'ŠŃŠøŠ²ŠµŃ Š¼ŠøŃ!',
|
|
489
|
-
'Chinese': 'ä½ å„½ļ¼äøēļ¼',
|
|
490
|
-
'Arabic': 'Ł
Ų±ŲŲØŲ§ ŲØŲ§ŁŲ¹Ų§ŁŁ
!',
|
|
491
|
-
'Hindi': 'ą¤Øą¤®ą¤øą„ą¤¤ą„ ą¤¦ą„ą¤Øą¤æą¤Æą¤¾!'
|
|
492
|
-
};
|
|
493
|
-
return greetings[verbalLanguage] || 'Hello World!';
|
|
494
|
-
}
|
|
495
|
-
|
|
496
|
-
generateFileName(combination) {
|
|
497
|
-
const progLangMap = {
|
|
498
|
-
'Python': 'py',
|
|
499
|
-
'JavaScript': 'js',
|
|
500
|
-
'Java': 'java',
|
|
501
|
-
'C++': 'cpp',
|
|
502
|
-
'Go': 'go',
|
|
503
|
-
'Rust': 'rs',
|
|
504
|
-
'TypeScript': 'ts'
|
|
505
|
-
};
|
|
506
|
-
|
|
507
|
-
const verbalLangMap = {
|
|
508
|
-
'Spanish': 'es',
|
|
509
|
-
'French': 'fr',
|
|
510
|
-
'German': 'de',
|
|
511
|
-
'Italian': 'it',
|
|
512
|
-
'Portuguese': 'pt',
|
|
513
|
-
'Japanese': 'ja',
|
|
514
|
-
'Russian': 'ru',
|
|
515
|
-
'Chinese': 'zh',
|
|
516
|
-
'Arabic': 'ar',
|
|
517
|
-
'Hindi': 'hi'
|
|
518
|
-
};
|
|
519
|
-
|
|
520
|
-
return `hello_world_${verbalLangMap[combination.verbal]}_${progLangMap[combination.programming]}.${progLangMap[combination.programming]}`;
|
|
521
|
-
}
|
|
522
|
-
|
|
523
|
-
generateHelloWorldCode(taskData) {
|
|
524
|
-
const templates = {
|
|
525
|
-
'Python': `#!/usr/bin/env python3
|
|
526
|
-
# Hello World in ${taskData.programmingLanguage} with ${taskData.verbalLanguage} greeting
|
|
527
|
-
# Coordinator: ${taskData.coordinatorId}
|
|
528
|
-
# Sub-agent: ${taskData.subAgentId}
|
|
529
|
-
|
|
530
|
-
def main():
|
|
531
|
-
print("${taskData.greeting}")
|
|
532
|
-
print("Hello World from ${taskData.programmingLanguage}!")
|
|
533
|
-
print(f"Language combination: {taskData.verbalLanguage} + {taskData.programmingLanguage}")
|
|
534
|
-
|
|
535
|
-
if __name__ == "__main__":
|
|
536
|
-
main()`,
|
|
537
|
-
|
|
538
|
-
'JavaScript': `// Hello World in ${taskData.programmingLanguage} with ${taskData.verbalLanguage} greeting
|
|
539
|
-
// Coordinator: ${taskData.coordinatorId}
|
|
540
|
-
// Sub-agent: ${taskData.subAgentId}
|
|
541
|
-
|
|
542
|
-
function helloWorld() {
|
|
543
|
-
console.log("${taskData.greeting}");
|
|
544
|
-
console.log("Hello World from ${taskData.programmingLanguage}!");
|
|
545
|
-
console.log(\`Language combination: \${taskData.verbalLanguage} + \${taskData.programmingLanguage}\`);
|
|
546
|
-
}
|
|
547
|
-
|
|
548
|
-
helloWorld();`,
|
|
549
|
-
|
|
550
|
-
'Java': `// Hello World in ${taskData.programmingLanguage} with ${taskData.verbalLanguage} greeting
|
|
551
|
-
// Coordinator: ${taskData.coordinatorId}
|
|
552
|
-
// Sub-agent: ${taskData.subAgentId}
|
|
553
|
-
|
|
554
|
-
public class HelloWorld {
|
|
555
|
-
public static void main(String[] args) {
|
|
556
|
-
System.out.println("${taskData.greeting}");
|
|
557
|
-
System.out.println("Hello World from ${taskData.programmingLanguage}!");
|
|
558
|
-
System.out.println("Language combination: " + "${taskData.verbalLanguage} + " + "${taskData.programmingLanguage}");
|
|
559
|
-
}
|
|
560
|
-
}`,
|
|
561
|
-
|
|
562
|
-
'C++': `// Hello World in ${taskData.programmingLanguage} with ${taskData.verbalLanguage} greeting
|
|
563
|
-
// Coordinator: ${taskData.coordinatorId}
|
|
564
|
-
// Sub-agent: ${taskData.subAgentId}
|
|
565
|
-
|
|
566
|
-
#include <iostream>
|
|
567
|
-
|
|
568
|
-
int main() {
|
|
569
|
-
std::cout << "${taskData.greeting}" << std::endl;
|
|
570
|
-
std::cout << "Hello World from ${taskData.programmingLanguage}!" << std::endl;
|
|
571
|
-
std::cout << "Language combination: " << "${taskData.verbalLanguage}" << " + " << "${taskData.programmingLanguage}" << std::endl;
|
|
572
|
-
return 0;
|
|
573
|
-
}`,
|
|
574
|
-
|
|
575
|
-
'Go': `// Hello World in ${taskData.programmingLanguage} with ${taskData.verbalLanguage} greeting
|
|
576
|
-
// Coordinator: ${taskData.coordinatorId}
|
|
577
|
-
// Sub-agent: ${taskData.subAgentId}
|
|
578
|
-
|
|
579
|
-
package main
|
|
580
|
-
|
|
581
|
-
import "fmt"
|
|
582
|
-
|
|
583
|
-
func main() {
|
|
584
|
-
fmt.Println("${taskData.greeting}")
|
|
585
|
-
fmt.Println("Hello World from ${taskData.programmingLanguage}!")
|
|
586
|
-
fmt.Printf("Language combination: %s + %s\\n", "${taskData.verbalLanguage}", "${taskData.programmingLanguage}")
|
|
587
|
-
}`,
|
|
588
|
-
|
|
589
|
-
'Rust': `// Hello World in ${taskData.programmingLanguage} with ${taskData.verbalLanguage} greeting
|
|
590
|
-
// Coordinator: ${taskData.coordinatorId}
|
|
591
|
-
// Sub-agent: ${taskData.subAgentId}
|
|
592
|
-
|
|
593
|
-
fn main() {
|
|
594
|
-
println!("${taskData.greeting}");
|
|
595
|
-
println!("Hello World from ${taskData.programmingLanguage}!");
|
|
596
|
-
println!("Language combination: {} + {}", "${taskData.verbalLanguage}", "${taskData.programmingLanguage}");
|
|
597
|
-
}`,
|
|
598
|
-
|
|
599
|
-
'TypeScript': `// Hello World in ${taskData.programmingLanguage} with ${taskData.verbalLanguage} greeting
|
|
600
|
-
// Coordinator: ${taskData.coordinatorId}
|
|
601
|
-
// Sub-agent: ${taskData.subAgentId}
|
|
602
|
-
|
|
603
|
-
interface Greeting {
|
|
604
|
-
text: string;
|
|
605
|
-
language: string;
|
|
606
|
-
combination: string;
|
|
607
|
-
}
|
|
608
|
-
|
|
609
|
-
const greeting: Greeting = {
|
|
610
|
-
text: "${taskData.greeting}",
|
|
611
|
-
language: "${taskData.programmingLanguage}",
|
|
612
|
-
combination: "${taskData.verbalLanguage} + ${taskData.programmingLanguage}"
|
|
613
|
-
};
|
|
614
|
-
|
|
615
|
-
console.log(greeting.text);
|
|
616
|
-
console.log(\`Hello World from \${greeting.language}!\`);
|
|
617
|
-
console.log(\`Language combination: \${greeting.combination}\`);
|
|
618
|
-
`
|
|
619
|
-
};
|
|
620
|
-
|
|
621
|
-
return templates[taskData.programmingLanguage] || templates['Python'];
|
|
622
|
-
}
|
|
623
|
-
|
|
624
|
-
async validateZeroOverlap() {
|
|
625
|
-
console.log('ā
Step 5: Validating Zero-Overlap Requirement');
|
|
626
|
-
|
|
627
|
-
const expectedCombinations = this.programmingLanguages.length * this.verbalLanguages.length;
|
|
628
|
-
const actualCombinations = this.assignedCombinations.size;
|
|
629
|
-
const coordinatorAssignments = {};
|
|
630
|
-
|
|
631
|
-
// Count combinations per coordinator
|
|
632
|
-
for (const [coordinatorId, coordinator] of this.coordinators) {
|
|
633
|
-
coordinatorAssignments[coordinatorId] = coordinator.assignedVerbalLanguages.length;
|
|
634
|
-
}
|
|
635
|
-
|
|
636
|
-
const validationResults = {
|
|
637
|
-
timestamp: Date.now(),
|
|
638
|
-
testDuration: Date.now() - this.testStartTime,
|
|
639
|
-
expectedCombinations,
|
|
640
|
-
actualCombinations,
|
|
641
|
-
overlapDetected: actualCombinations < expectedCombinations,
|
|
642
|
-
coordinatorAssignments,
|
|
643
|
-
success: actualCombinations === expectedCombinations,
|
|
644
|
-
details: {
|
|
645
|
-
programmingLanguagesCovered: this.programmingLanguages.length,
|
|
646
|
-
verbalLanguagesPerCoordinator: coordinatorAssignments,
|
|
647
|
-
combinationsPerCoordinator: this.calculateCombinationsPerCoordinator()
|
|
648
|
-
}
|
|
649
|
-
};
|
|
650
|
-
|
|
651
|
-
// Save validation results
|
|
652
|
-
const validationFile = path.join(this.outputDir, `validation-results-${Date.now()}.json`);
|
|
653
|
-
await fs.writeFile(validationFile, JSON.stringify(validationResults, null, 2));
|
|
654
|
-
|
|
655
|
-
this.logCoordination('VALIDATION_COMPLETE', validationResults);
|
|
656
|
-
|
|
657
|
-
// Display results
|
|
658
|
-
console.log('\nšÆ ZERO-OVERLAP VALIDATION RESULTS:');
|
|
659
|
-
console.log(` Expected Combinations: ${validationResults.expectedCombinations}`);
|
|
660
|
-
console.log(` Actual Combinations: ${validationResults.actualCombinations}`);
|
|
661
|
-
console.log(` Success: ${validationResults.success ? 'ā
PASS' : 'ā FAIL'}`);
|
|
662
|
-
console.log(` Test Duration: ${(validationResults.testDuration / 1000).toFixed(2)} seconds`);
|
|
663
|
-
|
|
664
|
-
if (validationResults.success) {
|
|
665
|
-
console.log('\nš EXCELLENT: Zero-overlap requirement achieved!');
|
|
666
|
-
console.log(' ā
All 70 unique language combinations covered');
|
|
667
|
-
console.log(' ā
No duplicate assignments detected');
|
|
668
|
-
console.log(' ā
Mesh coordination successful');
|
|
669
|
-
} else {
|
|
670
|
-
console.log('\nā OVERLAP DETECTED: Some combinations may be missing or duplicated');
|
|
671
|
-
}
|
|
672
|
-
|
|
673
|
-
console.log('\nš COORDINATOR BREAKDOWN:');
|
|
674
|
-
for (const [coordinatorId, count] of Object.entries(coordinatorAssignments)) {
|
|
675
|
-
console.log(` ${coordinatorId}: ${count} verbal languages assigned`);
|
|
676
|
-
}
|
|
677
|
-
|
|
678
|
-
console.log(`\nš Validation saved to: ${validationFile}`);
|
|
679
|
-
}
|
|
680
|
-
|
|
681
|
-
calculateCombinationsPerCoordinator() {
|
|
682
|
-
const combinations = {};
|
|
683
|
-
for (const combination of this.assignedCombinations) {
|
|
684
|
-
const [progLang, verbalLang] = combination.split('-');
|
|
685
|
-
if (!combinations[progLang]) {
|
|
686
|
-
combinations[progLang] = 0;
|
|
687
|
-
}
|
|
688
|
-
combinations[progLang]++;
|
|
689
|
-
}
|
|
690
|
-
return combinations;
|
|
691
|
-
}
|
|
692
|
-
|
|
693
|
-
logCoordination(eventType, data) {
|
|
694
|
-
const logEntry = {
|
|
695
|
-
timestamp: Date.now(),
|
|
696
|
-
eventType: eventType,
|
|
697
|
-
data: data
|
|
698
|
-
};
|
|
699
|
-
|
|
700
|
-
this.coordinationLog.push(logEntry);
|
|
701
|
-
|
|
702
|
-
// Write to real-time log
|
|
703
|
-
const logFile = path.join(this.outputDir, 'mesh-coordination.log');
|
|
704
|
-
fs.appendFile(logFile, JSON.stringify(logEntry) + '\n').catch(console.error);
|
|
705
|
-
}
|
|
706
|
-
}
|
|
707
|
-
|
|
708
|
-
// CLI interface
|
|
709
|
-
if (import.meta.url === `file://${process.argv[1]}`) {
|
|
710
|
-
if (process.argv.includes('--help')) {
|
|
711
|
-
console.log(`
|
|
712
|
-
Mesh Coordination Zero-Overlap Test
|
|
713
|
-
|
|
714
|
-
Usage: node mesh-coordination-zero-overlap-test.js
|
|
715
|
-
|
|
716
|
-
This test demonstrates:
|
|
717
|
-
1. 7 coordinator agents in mesh topology
|
|
718
|
-
2. Distributed consensus for language assignment
|
|
719
|
-
3. 70 unique language combinations (7 programming Ć 10 verbal)
|
|
720
|
-
4. Zero overlap requirement validation
|
|
721
|
-
5. Real-time mesh coordination and conflict resolution
|
|
722
|
-
|
|
723
|
-
Expected outcome:
|
|
724
|
-
- 7 coordinators each choose a unique programming language
|
|
725
|
-
- Each coordinator manages 10 sub-agents with unique verbal languages
|
|
726
|
-
- All 70 combinations are covered without duplication
|
|
727
|
-
- Mesh topology enables distributed coordination
|
|
728
|
-
`);
|
|
729
|
-
process.exit(0);
|
|
730
|
-
}
|
|
731
|
-
|
|
732
|
-
const test = new MeshCoordinationZeroOverlapTest();
|
|
733
|
-
|
|
734
|
-
test.start().catch(error => {
|
|
735
|
-
console.error('Mesh coordination test failed:', error);
|
|
736
|
-
process.exit(1);
|
|
737
|
-
});
|
|
738
|
-
}
|
|
739
|
-
|
|
740
|
-
export default MeshCoordinationZeroOverlapTest;
|