snow-flow 1.4.49 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude/helpers/github-setup.sh +28 -0
- package/.claude/helpers/quick-start.sh +19 -0
- package/.claude/helpers/setup-mcp.sh +18 -0
- package/.claude/settings.local.json +33 -0
- package/.claude-flow/metrics/system-metrics.json +1992 -0
- package/.env.example +21 -0
- package/.roo/README.md +402 -0
- package/.roo/mcp-list.txt +257 -0
- package/.roo/mcp.json +32 -0
- package/.roo/workflows/basic-tdd.json +32 -0
- package/.roomodes +201 -0
- package/README.md +114 -628
- package/activate-mcp.sh +15 -0
- package/dist/cli.js.bak +2052 -0
- package/manual-register-mcp.js +134 -0
- package/mcp-wrapper.sh +12 -0
- package/package.json +2 -2
- package/scripts/create-env.js +6 -1
- package/scripts/reset-mcp-servers.js +246 -0
- package/scripts/update-version.js +31 -0
- package/src/agents/README.md +192 -0
- package/src/agents/base-agent.ts +251 -0
- package/src/agents/coordinator.ts +971 -0
- package/src/agents/index.ts +18 -0
- package/src/agents/queen-403-handler.ts +230 -0
- package/src/agents/queen-agent.ts +1399 -0
- package/src/agents/script-writer-agent.ts +769 -0
- package/src/agents/security-agent.ts +726 -0
- package/src/agents/widget-creator-agent.ts +568 -0
- package/src/api/error-handling.ts +1758 -0
- package/src/api/natural-language-mapper.ts +630 -0
- package/src/api/performance-optimizer.ts +891 -0
- package/src/api/transaction-manager.ts +754 -0
- package/src/cli/deploy-artifact.ts +304 -0
- package/src/cli/snow-flow-cli-integration.ts +434 -0
- package/src/cli.ts +4455 -0
- package/src/cli.ts.bak +5616 -0
- package/src/compliance/advanced-compliance-system.ts +1268 -0
- package/src/compliance/index.ts +19 -0
- package/src/config/snow-flow-config.ts +1019 -0
- package/src/documentation/index.ts +16 -0
- package/src/documentation/self-documenting-system.ts +1421 -0
- package/src/dynamic-version.ts +44 -0
- package/src/healing/index.ts +20 -0
- package/src/healing/self-healing-system.ts +1435 -0
- package/src/health/README.md +161 -0
- package/src/health/system-health.ts +995 -0
- package/src/index.ts +60 -0
- package/src/intelligence/acl-analyzer.ts +377 -0
- package/src/intelligence/auto-resolution-engine.ts +643 -0
- package/src/intelligence/gap-analysis-engine.ts +488 -0
- package/src/intelligence/manual-instructions-generator.ts +744 -0
- package/src/intelligence/mcp-coverage-analyzer.ts +708 -0
- package/src/intelligence/multi-pass-requirements-analyzer.ts +603 -0
- package/src/intelligence/performance-recommendations-engine.ts +1223 -0
- package/src/intelligence/requirements-analyzer.ts +1148 -0
- package/src/intelligence/task-analyzer.ts +628 -0
- package/src/managers/scope-manager.ts +555 -0
- package/src/mcp/advanced/servicenow-advanced-features-mcp.ts +16110 -0
- package/src/mcp/base-mcp-server.ts +660 -0
- package/src/mcp/http-transport-wrapper.ts +426 -0
- package/src/mcp/service-discovery-client.ts +312 -0
- package/src/mcp/servicenow-automation-mcp-refactored.ts +678 -0
- package/src/mcp/servicenow-automation-mcp.ts +838 -0
- package/src/mcp/servicenow-deployment-mcp-refactored.ts +1292 -0
- package/src/mcp/servicenow-deployment-mcp.ts +7244 -0
- package/src/mcp/servicenow-graph-memory-mcp-refactored.ts +721 -0
- package/src/mcp/servicenow-graph-memory-mcp.ts +832 -0
- package/src/mcp/servicenow-integration-mcp-refactored.ts +655 -0
- package/src/mcp/servicenow-integration-mcp.ts +819 -0
- package/src/mcp/servicenow-intelligent-mcp-refactored.ts +977 -0
- package/src/mcp/servicenow-intelligent-mcp.ts +4638 -0
- package/src/mcp/servicenow-mcp-server.ts +728 -0
- package/src/mcp/servicenow-memory-mcp.ts +474 -0
- package/src/mcp/servicenow-operations-mcp-refactored.ts +1995 -0
- package/src/mcp/servicenow-operations-mcp.ts +3384 -0
- package/src/mcp/servicenow-platform-development-mcp-refactored.ts +611 -0
- package/src/mcp/servicenow-platform-development-mcp.ts +970 -0
- package/src/mcp/servicenow-progressive-indexer.ts +370 -0
- package/src/mcp/servicenow-reporting-analytics-mcp-refactored.ts +695 -0
- package/src/mcp/servicenow-reporting-analytics-mcp.ts +1123 -0
- package/src/mcp/servicenow-security-compliance-mcp-refactored.ts +642 -0
- package/src/mcp/servicenow-security-compliance-mcp.ts +1157 -0
- package/src/mcp/servicenow-update-set-mcp-refactored.ts +751 -0
- package/src/mcp/servicenow-update-set-mcp.ts +811 -0
- package/src/mcp/shared/agent-context-provider.ts +365 -0
- package/src/mcp/shared/base-mcp-server.ts +2463 -0
- package/src/mcp/shared/mcp-memory-manager.ts +540 -0
- package/src/mcp/shared/mcp-resource-manager.ts +367 -0
- package/src/mcp/snow-flow-mcp.ts +911 -0
- package/src/mcp/start-all-mcp-servers.ts +102 -0
- package/src/mcp/start-servicenow-mcp.ts +67 -0
- package/src/monitoring/enhanced-monitoring-system.ts +1345 -0
- package/src/monitoring/performance-tracker.ts +777 -0
- package/src/optimization/cost-optimization-engine.ts +1125 -0
- package/src/optimization/index.ts +10 -0
- package/src/queen/README.md +403 -0
- package/src/queen/agent-factory.ts +574 -0
- package/src/queen/index.ts +94 -0
- package/src/queen/mcp-execution-bridge.ts +681 -0
- package/src/queen/neural-learning.ts +319 -0
- package/src/queen/parallel-agent-engine.ts +848 -0
- package/src/queen/queen-memory-system.ts +490 -0
- package/src/queen/queen-memory.ts +456 -0
- package/src/queen/servicenow-queen.ts +1029 -0
- package/src/queen/types.ts +87 -0
- package/src/rollback/smart-rollback-system.ts +866 -0
- package/src/schemas/deployment.schema.json +58 -0
- package/src/schemas/flow.schema.json +79 -0
- package/src/schemas/widget.schema.json +72 -0
- package/src/snow-flow-system.ts +541 -0
- package/src/sparc/sparc-help.ts +49 -0
- package/src/sparc/team-sparc.ts +88 -0
- package/src/strategies/global-scope-strategy.ts +736 -0
- package/src/templates/base/application.template.json +45 -0
- package/src/templates/base/business_rule.template.json +33 -0
- package/src/templates/base/script_include.template.json +18 -0
- package/src/templates/base/table.template.json +64 -0
- package/src/templates/base/widget.template.json +25 -0
- package/src/templates/patterns/composite.incident-management.template.json +140 -0
- package/src/templates/patterns/widget.dashboard.template.json +238 -0
- package/src/templates/patterns/widget.datatable.template.json +292 -0
- package/src/testing/integration-test-suite.ts +1276 -0
- package/src/types/index.ts +183 -0
- package/src/types/neo4j-driver.d.ts +23 -0
- package/src/types/servicenow.types.ts +307 -0
- package/src/types/snow-flow.types.ts +186 -0
- package/src/types/todo.types.ts +70 -0
- package/src/utils/action-type-cache.ts +286 -0
- package/src/utils/agent-detector.ts +573 -0
- package/src/utils/artifact-tracker.ts +379 -0
- package/src/utils/dependency-detector.ts +233 -0
- package/src/utils/deployment-metadata-handler.ts +518 -0
- package/src/utils/error-recovery.ts +680 -0
- package/src/utils/logger.ts +60 -0
- package/src/utils/mcp-auth-middleware.ts +262 -0
- package/src/utils/mcp-config-manager.ts +270 -0
- package/src/utils/mcp-server-manager.ts +446 -0
- package/src/utils/mcp-tool-registry.ts +298 -0
- package/src/utils/migrate-snow-flow.ts +98 -0
- package/src/utils/oauth-html-templates.ts +188 -0
- package/src/utils/scope-utils.ts +443 -0
- package/src/utils/servicenow-client.ts +3321 -0
- package/src/utils/servicenow-id-generator.ts +181 -0
- package/src/utils/snow-memory-manager.ts +605 -0
- package/src/utils/snow-oauth.ts +797 -0
- package/src/utils/template-engine.ts +463 -0
- package/src/utils/theme-manager.ts +295 -0
- package/src/utils/unified-auth-store.ts +222 -0
- package/src/utils/update-set-importer.ts +422 -0
- package/src/utils/update-set-xml-packager.ts +371 -0
- package/src/utils/widget-template-generator.ts +1744 -0
- package/src/version.ts +1950 -0
- package/.claude/commands/memory/README.md +0 -9
- package/dist/agents/app-creator.agent.d.ts.map +0 -1
- package/dist/agents/app-creator.agent.js.map +0 -1
- package/dist/agents/base/base-snow-agent.d.ts.map +0 -1
- package/dist/agents/base/base-snow-agent.js.map +0 -1
- package/dist/agents/base-agent.d.ts.map +0 -1
- package/dist/agents/base-agent.js.map +0 -1
- package/dist/agents/base-snow-agent.d.ts.map +0 -1
- package/dist/agents/base-snow-agent.js.map +0 -1
- package/dist/agents/coordinator.d.ts.map +0 -1
- package/dist/agents/coordinator.js.map +0 -1
- package/dist/agents/flow-builder-agent.d.ts.map +0 -1
- package/dist/agents/flow-builder-agent.js.map +0 -1
- package/dist/agents/index.d.ts.map +0 -1
- package/dist/agents/index.js.map +0 -1
- package/dist/agents/queen-403-handler.d.ts.map +0 -1
- package/dist/agents/queen-403-handler.js.map +0 -1
- package/dist/agents/queen-agent-example.d.ts.map +0 -1
- package/dist/agents/queen-agent-example.js.map +0 -1
- package/dist/agents/queen-agent.d.ts.map +0 -1
- package/dist/agents/queen-agent.js.map +0 -1
- package/dist/agents/queen-agent.test.d.ts.map +0 -1
- package/dist/agents/queen-agent.test.js.map +0 -1
- package/dist/agents/script-generator.agent.d.ts.map +0 -1
- package/dist/agents/script-generator.agent.js.map +0 -1
- package/dist/agents/script-writer-agent.d.ts.map +0 -1
- package/dist/agents/script-writer-agent.js.map +0 -1
- package/dist/agents/security-agent.d.ts.map +0 -1
- package/dist/agents/security-agent.js.map +0 -1
- package/dist/agents/specialists/automation-specialist.agent.d.ts.map +0 -1
- package/dist/agents/specialists/automation-specialist.agent.js.map +0 -1
- package/dist/agents/specialists/data-specialist.agent.d.ts.map +0 -1
- package/dist/agents/specialists/data-specialist.agent.js.map +0 -1
- package/dist/agents/specialists/integration-specialist.agent.d.ts.map +0 -1
- package/dist/agents/specialists/integration-specialist.agent.js.map +0 -1
- package/dist/agents/specialists/reporting-specialist.agent.d.ts.map +0 -1
- package/dist/agents/specialists/reporting-specialist.agent.js.map +0 -1
- package/dist/agents/specialists/security-specialist.agent.d.ts.map +0 -1
- package/dist/agents/specialists/security-specialist.agent.js.map +0 -1
- package/dist/agents/teams/adaptive/adaptive-coordinator.agent.d.ts.map +0 -1
- package/dist/agents/teams/adaptive/adaptive-coordinator.agent.js.map +0 -1
- package/dist/agents/teams/base-team.d.ts.map +0 -1
- package/dist/agents/teams/base-team.js.map +0 -1
- package/dist/agents/teams/team-types.d.ts.map +0 -1
- package/dist/agents/teams/team-types.js.map +0 -1
- package/dist/agents/teams/widget/widget-architect.agent.d.ts.map +0 -1
- package/dist/agents/teams/widget/widget-architect.agent.js.map +0 -1
- package/dist/agents/teams/widget/widget-backend.agent.d.ts.map +0 -1
- package/dist/agents/teams/widget/widget-backend.agent.js.map +0 -1
- package/dist/agents/teams/widget/widget-frontend.agent.d.ts.map +0 -1
- package/dist/agents/teams/widget/widget-frontend.agent.js.map +0 -1
- package/dist/agents/teams/widget/widget-platform.agent.d.ts.map +0 -1
- package/dist/agents/teams/widget/widget-platform.agent.js.map +0 -1
- package/dist/agents/teams/widget/widget-uiux.agent.d.ts.map +0 -1
- package/dist/agents/teams/widget/widget-uiux.agent.js.map +0 -1
- package/dist/agents/test-agent.d.ts.map +0 -1
- package/dist/agents/test-agent.js.map +0 -1
- package/dist/agents/test-agents.d.ts.map +0 -1
- package/dist/agents/test-agents.js.map +0 -1
- package/dist/agents/ui-builder.agent.d.ts.map +0 -1
- package/dist/agents/ui-builder.agent.js.map +0 -1
- package/dist/agents/widget-builder.agent.d.ts.map +0 -1
- package/dist/agents/widget-builder.agent.js.map +0 -1
- package/dist/agents/widget-creator-agent.d.ts.map +0 -1
- package/dist/agents/widget-creator-agent.js.map +0 -1
- package/dist/agents/workflow-designer.agent.d.ts.map +0 -1
- package/dist/agents/workflow-designer.agent.js.map +0 -1
- package/dist/api/error-handling.d.ts.map +0 -1
- package/dist/api/error-handling.js.map +0 -1
- package/dist/api/flow-designer-api.d.ts.map +0 -1
- package/dist/api/flow-designer-api.js.map +0 -1
- package/dist/api/natural-language-mapper.d.ts.map +0 -1
- package/dist/api/natural-language-mapper.js.map +0 -1
- package/dist/api/performance-optimizer.d.ts.map +0 -1
- package/dist/api/performance-optimizer.js.map +0 -1
- package/dist/api/transaction-manager.d.ts.map +0 -1
- package/dist/api/transaction-manager.js.map +0 -1
- package/dist/assembly/team-assembler.d.ts.map +0 -1
- package/dist/assembly/team-assembler.js.map +0 -1
- package/dist/cli/deploy-artifact.d.ts.map +0 -1
- package/dist/cli/deploy-artifact.js.map +0 -1
- package/dist/cli/snow-flow-cli-integration.d.ts.map +0 -1
- package/dist/cli/snow-flow-cli-integration.js.map +0 -1
- package/dist/cli.d.ts.map +0 -1
- package/dist/cli.js.map +0 -1
- package/dist/compliance/advanced-compliance-system.d.ts.map +0 -1
- package/dist/compliance/advanced-compliance-system.js.map +0 -1
- package/dist/compliance/index.d.ts.map +0 -1
- package/dist/compliance/index.js.map +0 -1
- package/dist/config/snow-flow-config.d.ts.map +0 -1
- package/dist/config/snow-flow-config.js.map +0 -1
- package/dist/documentation/index.d.ts.map +0 -1
- package/dist/documentation/index.js.map +0 -1
- package/dist/documentation/self-documenting-system.d.ts.map +0 -1
- package/dist/documentation/self-documenting-system.js.map +0 -1
- package/dist/dynamic-version.d.ts.map +0 -1
- package/dist/dynamic-version.js.map +0 -1
- package/dist/healing/index.d.ts.map +0 -1
- package/dist/healing/index.js.map +0 -1
- package/dist/healing/self-healing-system.d.ts.map +0 -1
- package/dist/healing/self-healing-system.js.map +0 -1
- package/dist/health/system-health.d.ts.map +0 -1
- package/dist/health/system-health.js.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/intelligence/acl-analyzer.d.ts.map +0 -1
- package/dist/intelligence/acl-analyzer.js.map +0 -1
- package/dist/intelligence/auto-resolution-engine.d.ts.map +0 -1
- package/dist/intelligence/auto-resolution-engine.js.map +0 -1
- package/dist/intelligence/gap-analysis-engine.d.ts.map +0 -1
- package/dist/intelligence/gap-analysis-engine.js.map +0 -1
- package/dist/intelligence/manual-instructions-generator.d.ts.map +0 -1
- package/dist/intelligence/manual-instructions-generator.js.map +0 -1
- package/dist/intelligence/mcp-coverage-analyzer.d.ts.map +0 -1
- package/dist/intelligence/mcp-coverage-analyzer.js.map +0 -1
- package/dist/intelligence/multi-pass-requirements-analyzer.d.ts.map +0 -1
- package/dist/intelligence/multi-pass-requirements-analyzer.js.map +0 -1
- package/dist/intelligence/performance-recommendations-engine.d.ts.map +0 -1
- package/dist/intelligence/performance-recommendations-engine.js.map +0 -1
- package/dist/intelligence/requirements-analyzer.d.ts.map +0 -1
- package/dist/intelligence/requirements-analyzer.js.map +0 -1
- package/dist/intelligence/task-analyzer.d.ts.map +0 -1
- package/dist/intelligence/task-analyzer.js.map +0 -1
- package/dist/managers/scope-manager.d.ts.map +0 -1
- package/dist/managers/scope-manager.js.map +0 -1
- package/dist/mcp/advanced/servicenow-advanced-features-mcp.d.ts.map +0 -1
- package/dist/mcp/advanced/servicenow-advanced-features-mcp.js.map +0 -1
- package/dist/mcp/base-mcp-server.d.ts.map +0 -1
- package/dist/mcp/base-mcp-server.js.map +0 -1
- package/dist/mcp/example-refactored-server.d.ts.map +0 -1
- package/dist/mcp/example-refactored-server.js.map +0 -1
- package/dist/mcp/http-transport-wrapper.d.ts.map +0 -1
- package/dist/mcp/http-transport-wrapper.js.map +0 -1
- package/dist/mcp/mcp-wrapper.d.ts.map +0 -1
- package/dist/mcp/mcp-wrapper.js.map +0 -1
- package/dist/mcp/service-discovery-client.d.ts.map +0 -1
- package/dist/mcp/service-discovery-client.js.map +0 -1
- package/dist/mcp/servicenow-automation-mcp-refactored.d.ts.map +0 -1
- package/dist/mcp/servicenow-automation-mcp-refactored.js.map +0 -1
- package/dist/mcp/servicenow-automation-mcp.d.ts.map +0 -1
- package/dist/mcp/servicenow-automation-mcp.js.map +0 -1
- package/dist/mcp/servicenow-deployment-mcp-refactored.d.ts.map +0 -1
- package/dist/mcp/servicenow-deployment-mcp-refactored.js.map +0 -1
- package/dist/mcp/servicenow-deployment-mcp.d.ts.map +0 -1
- package/dist/mcp/servicenow-deployment-mcp.js.map +0 -1
- package/dist/mcp/servicenow-flow-composer-mcp-refactored.d.ts.map +0 -1
- package/dist/mcp/servicenow-flow-composer-mcp-refactored.js.map +0 -1
- package/dist/mcp/servicenow-flow-composer-mcp.d.ts.map +0 -1
- package/dist/mcp/servicenow-flow-composer-mcp.js.map +0 -1
- package/dist/mcp/servicenow-graph-memory-mcp-refactored.d.ts.map +0 -1
- package/dist/mcp/servicenow-graph-memory-mcp-refactored.js.map +0 -1
- package/dist/mcp/servicenow-graph-memory-mcp.d.ts.map +0 -1
- package/dist/mcp/servicenow-graph-memory-mcp.js.map +0 -1
- package/dist/mcp/servicenow-integration-mcp-refactored.d.ts.map +0 -1
- package/dist/mcp/servicenow-integration-mcp-refactored.js.map +0 -1
- package/dist/mcp/servicenow-integration-mcp.d.ts.map +0 -1
- package/dist/mcp/servicenow-integration-mcp.js.map +0 -1
- package/dist/mcp/servicenow-intelligent-mcp-refactored.d.ts.map +0 -1
- package/dist/mcp/servicenow-intelligent-mcp-refactored.js.map +0 -1
- package/dist/mcp/servicenow-intelligent-mcp.d.ts.map +0 -1
- package/dist/mcp/servicenow-intelligent-mcp.js.map +0 -1
- package/dist/mcp/servicenow-mcp-server.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-server.js.map +0 -1
- package/dist/mcp/servicenow-memory-mcp.d.ts.map +0 -1
- package/dist/mcp/servicenow-memory-mcp.js.map +0 -1
- package/dist/mcp/servicenow-operations-mcp-refactored.d.ts.map +0 -1
- package/dist/mcp/servicenow-operations-mcp-refactored.js.map +0 -1
- package/dist/mcp/servicenow-operations-mcp.d.ts.map +0 -1
- package/dist/mcp/servicenow-operations-mcp.js.map +0 -1
- package/dist/mcp/servicenow-platform-development-mcp-refactored.d.ts.map +0 -1
- package/dist/mcp/servicenow-platform-development-mcp-refactored.js.map +0 -1
- package/dist/mcp/servicenow-platform-development-mcp.d.ts.map +0 -1
- package/dist/mcp/servicenow-platform-development-mcp.js.map +0 -1
- package/dist/mcp/servicenow-progressive-indexer.d.ts.map +0 -1
- package/dist/mcp/servicenow-progressive-indexer.js.map +0 -1
- package/dist/mcp/servicenow-reporting-analytics-mcp-refactored.d.ts.map +0 -1
- package/dist/mcp/servicenow-reporting-analytics-mcp-refactored.js.map +0 -1
- package/dist/mcp/servicenow-reporting-analytics-mcp.d.ts.map +0 -1
- package/dist/mcp/servicenow-reporting-analytics-mcp.js.map +0 -1
- package/dist/mcp/servicenow-security-compliance-mcp-refactored.d.ts.map +0 -1
- package/dist/mcp/servicenow-security-compliance-mcp-refactored.js.map +0 -1
- package/dist/mcp/servicenow-security-compliance-mcp.d.ts.map +0 -1
- package/dist/mcp/servicenow-security-compliance-mcp.js.map +0 -1
- package/dist/mcp/servicenow-update-set-mcp-refactored.d.ts.map +0 -1
- package/dist/mcp/servicenow-update-set-mcp-refactored.js.map +0 -1
- package/dist/mcp/servicenow-update-set-mcp.d.ts.map +0 -1
- package/dist/mcp/servicenow-update-set-mcp.js.map +0 -1
- package/dist/mcp/servicenow-xml-flow-mcp.d.ts.map +0 -1
- package/dist/mcp/servicenow-xml-flow-mcp.js.map +0 -1
- package/dist/mcp/shared/agent-context-provider.d.ts.map +0 -1
- package/dist/mcp/shared/agent-context-provider.js.map +0 -1
- package/dist/mcp/shared/base-mcp-server.d.ts.map +0 -1
- package/dist/mcp/shared/base-mcp-server.js.map +0 -1
- package/dist/mcp/shared/mcp-memory-manager.d.ts.map +0 -1
- package/dist/mcp/shared/mcp-memory-manager.js.map +0 -1
- package/dist/mcp/shared/mcp-resource-manager.d.ts.map +0 -1
- package/dist/mcp/shared/mcp-resource-manager.js.map +0 -1
- package/dist/mcp/snow-flow-mcp.d.ts.map +0 -1
- package/dist/mcp/snow-flow-mcp.js.map +0 -1
- package/dist/mcp/start-all-mcp-servers.d.ts.map +0 -1
- package/dist/mcp/start-all-mcp-servers.js.map +0 -1
- package/dist/mcp/start-servicenow-mcp.d.ts.map +0 -1
- package/dist/mcp/start-servicenow-mcp.js.map +0 -1
- package/dist/mcp/test-simple-mcp.d.ts.map +0 -1
- package/dist/mcp/test-simple-mcp.js.map +0 -1
- package/dist/memory/hierarchical-memory-system.d.ts +0 -90
- package/dist/memory/hierarchical-memory-system.d.ts.map +0 -1
- package/dist/memory/hierarchical-memory-system.js +0 -400
- package/dist/memory/hierarchical-memory-system.js.map +0 -1
- package/dist/memory/index.d.ts +0 -9
- package/dist/memory/index.d.ts.map +0 -1
- package/dist/memory/index.js +0 -20
- package/dist/memory/index.js.map +0 -1
- package/dist/memory/mcp-integration-example.d.ts +0 -6
- package/dist/memory/mcp-integration-example.d.ts.map +0 -1
- package/dist/memory/mcp-integration-example.js +0 -281
- package/dist/memory/mcp-integration-example.js.map +0 -1
- package/dist/memory/memory-client.d.ts +0 -199
- package/dist/memory/memory-client.d.ts.map +0 -1
- package/dist/memory/memory-client.js +0 -364
- package/dist/memory/memory-client.js.map +0 -1
- package/dist/memory/memory-manager.d.ts +0 -29
- package/dist/memory/memory-manager.d.ts.map +0 -1
- package/dist/memory/memory-manager.js +0 -280
- package/dist/memory/memory-manager.js.map +0 -1
- package/dist/memory/memory-operations.d.ts +0 -179
- package/dist/memory/memory-operations.d.ts.map +0 -1
- package/dist/memory/memory-operations.js +0 -691
- package/dist/memory/memory-operations.js.map +0 -1
- package/dist/memory/memory-system.d.ts +0 -152
- package/dist/memory/memory-system.d.ts.map +0 -1
- package/dist/memory/memory-system.js +0 -632
- package/dist/memory/memory-system.js.map +0 -1
- package/dist/memory/memory-test.d.ts +0 -6
- package/dist/memory/memory-test.d.ts.map +0 -1
- package/dist/memory/memory-test.js +0 -161
- package/dist/memory/memory-test.js.map +0 -1
- package/dist/memory/servicenow-artifact-indexer.d.ts +0 -119
- package/dist/memory/servicenow-artifact-indexer.d.ts.map +0 -1
- package/dist/memory/servicenow-artifact-indexer.js +0 -560
- package/dist/memory/servicenow-artifact-indexer.js.map +0 -1
- package/dist/memory/snow-flow-memory-patterns.d.ts +0 -213
- package/dist/memory/snow-flow-memory-patterns.d.ts.map +0 -1
- package/dist/memory/snow-flow-memory-patterns.js +0 -200
- package/dist/memory/snow-flow-memory-patterns.js.map +0 -1
- package/dist/memory/snow-memory.d.ts +0 -54
- package/dist/memory/snow-memory.d.ts.map +0 -1
- package/dist/memory/snow-memory.js +0 -301
- package/dist/memory/snow-memory.js.map +0 -1
- package/dist/memory/swarm-memory.d.ts +0 -135
- package/dist/memory/swarm-memory.d.ts.map +0 -1
- package/dist/memory/swarm-memory.js +0 -378
- package/dist/memory/swarm-memory.js.map +0 -1
- package/dist/monitoring/enhanced-monitoring-system.d.ts.map +0 -1
- package/dist/monitoring/enhanced-monitoring-system.js.map +0 -1
- package/dist/monitoring/performance-tracker.d.ts.map +0 -1
- package/dist/monitoring/performance-tracker.js.map +0 -1
- package/dist/optimization/cost-optimization-engine.d.ts.map +0 -1
- package/dist/optimization/cost-optimization-engine.js.map +0 -1
- package/dist/optimization/index.d.ts.map +0 -1
- package/dist/optimization/index.js.map +0 -1
- package/dist/orchestration/discovery/service-discovery.d.ts.map +0 -1
- package/dist/orchestration/discovery/service-discovery.js.map +0 -1
- package/dist/orchestration/distributed-orchestrator.d.ts.map +0 -1
- package/dist/orchestration/distributed-orchestrator.js.map +0 -1
- package/dist/orchestration/distribution/task-distribution-engine.d.ts.map +0 -1
- package/dist/orchestration/distribution/task-distribution-engine.js.map +0 -1
- package/dist/orchestration/interfaces/distributed-orchestration.interface.d.ts.map +0 -1
- package/dist/orchestration/interfaces/distributed-orchestration.interface.js.map +0 -1
- package/dist/orchestration/protocols/mcpx-protocol.d.ts.map +0 -1
- package/dist/orchestration/protocols/mcpx-protocol.js.map +0 -1
- package/dist/orchestration/state/distributed-state-manager.d.ts.map +0 -1
- package/dist/orchestration/state/distributed-state-manager.js.map +0 -1
- package/dist/orchestrator/flow-composer.d.ts.map +0 -1
- package/dist/orchestrator/flow-composer.js.map +0 -1
- package/dist/orchestrator/flow-pattern-templates.d.ts.map +0 -1
- package/dist/orchestrator/flow-pattern-templates.js.map +0 -1
- package/dist/orchestrator/flow-subflow-decision-engine.d.ts.map +0 -1
- package/dist/orchestrator/flow-subflow-decision-engine.js.map +0 -1
- package/dist/orchestrator/flow-validation-engine.d.ts.map +0 -1
- package/dist/orchestrator/flow-validation-engine.js.map +0 -1
- package/dist/orchestrator/snow-orchestrator.d.ts.map +0 -1
- package/dist/orchestrator/snow-orchestrator.js.map +0 -1
- package/dist/orchestrator/subflow-creation-handler.d.ts.map +0 -1
- package/dist/orchestrator/subflow-creation-handler.js.map +0 -1
- package/dist/patterns/adaptive-patterns.d.ts.map +0 -1
- package/dist/patterns/adaptive-patterns.js.map +0 -1
- package/dist/queen/advanced-integration-test.d.ts.map +0 -1
- package/dist/queen/advanced-integration-test.js.map +0 -1
- package/dist/queen/agent-factory.d.ts.map +0 -1
- package/dist/queen/agent-factory.js.map +0 -1
- package/dist/queen/index.d.ts.map +0 -1
- package/dist/queen/index.js.map +0 -1
- package/dist/queen/integration-example.d.ts.map +0 -1
- package/dist/queen/integration-example.js.map +0 -1
- package/dist/queen/integration-test.d.ts.map +0 -1
- package/dist/queen/integration-test.js.map +0 -1
- package/dist/queen/mcp-execution-bridge.d.ts.map +0 -1
- package/dist/queen/mcp-execution-bridge.js.map +0 -1
- package/dist/queen/mock-mcp-client.d.ts.map +0 -1
- package/dist/queen/mock-mcp-client.js.map +0 -1
- package/dist/queen/neural-learning.d.ts.map +0 -1
- package/dist/queen/neural-learning.js.map +0 -1
- package/dist/queen/parallel-agent-engine.d.ts.map +0 -1
- package/dist/queen/parallel-agent-engine.js.map +0 -1
- package/dist/queen/queen-memory-system.d.ts.map +0 -1
- package/dist/queen/queen-memory-system.js.map +0 -1
- package/dist/queen/queen-memory.d.ts.map +0 -1
- package/dist/queen/queen-memory.js.map +0 -1
- package/dist/queen/run-integration-tests.d.ts.map +0 -1
- package/dist/queen/run-integration-tests.js.map +0 -1
- package/dist/queen/servicenow-queen.d.ts.map +0 -1
- package/dist/queen/servicenow-queen.js.map +0 -1
- package/dist/queen/types.d.ts.map +0 -1
- package/dist/queen/types.js.map +0 -1
- package/dist/rollback/smart-rollback-system.d.ts.map +0 -1
- package/dist/rollback/smart-rollback-system.js.map +0 -1
- package/dist/snow-flow-system.d.ts.map +0 -1
- package/dist/snow-flow-system.js.map +0 -1
- package/dist/sparc/coordinators/adaptive-coordinator.d.ts.map +0 -1
- package/dist/sparc/coordinators/adaptive-coordinator.js.map +0 -1
- package/dist/sparc/coordinators/team-coordinator.d.ts.map +0 -1
- package/dist/sparc/coordinators/team-coordinator.js.map +0 -1
- package/dist/sparc/modes/team-modes.d.ts.map +0 -1
- package/dist/sparc/modes/team-modes.js.map +0 -1
- package/dist/sparc/sparc-help.d.ts.map +0 -1
- package/dist/sparc/sparc-help.js.map +0 -1
- package/dist/sparc/team-sparc.d.ts.map +0 -1
- package/dist/sparc/team-sparc.js.map +0 -1
- package/dist/sparc/teams/application-team.d.ts.map +0 -1
- package/dist/sparc/teams/application-team.js.map +0 -1
- package/dist/sparc/teams/flow-team.d.ts.map +0 -1
- package/dist/sparc/teams/flow-team.js.map +0 -1
- package/dist/sparc/teams/widget-team.d.ts.map +0 -1
- package/dist/sparc/teams/widget-team.js.map +0 -1
- package/dist/specialists/app-specialists.d.ts.map +0 -1
- package/dist/specialists/app-specialists.js.map +0 -1
- package/dist/specialists/base-specialist.d.ts.map +0 -1
- package/dist/specialists/base-specialist.js.map +0 -1
- package/dist/specialists/flow-specialists.d.ts.map +0 -1
- package/dist/specialists/flow-specialists.js.map +0 -1
- package/dist/specialists/individual-specialists.d.ts.map +0 -1
- package/dist/specialists/individual-specialists.js.map +0 -1
- package/dist/specialists/widget-specialists.d.ts.map +0 -1
- package/dist/specialists/widget-specialists.js.map +0 -1
- package/dist/strategies/global-scope-strategy.d.ts.map +0 -1
- package/dist/strategies/global-scope-strategy.js.map +0 -1
- package/dist/teams/adaptive-team.d.ts.map +0 -1
- package/dist/teams/adaptive-team.js.map +0 -1
- package/dist/teams/application-team.d.ts.map +0 -1
- package/dist/teams/application-team.js.map +0 -1
- package/dist/teams/base-team.d.ts.map +0 -1
- package/dist/teams/base-team.js.map +0 -1
- package/dist/teams/flow-team.d.ts.map +0 -1
- package/dist/teams/flow-team.js.map +0 -1
- package/dist/teams/widget-team.d.ts.map +0 -1
- package/dist/teams/widget-team.js.map +0 -1
- package/dist/testing/integration-test-suite.d.ts.map +0 -1
- package/dist/testing/integration-test-suite.js.map +0 -1
- package/dist/types/index.d.ts.map +0 -1
- package/dist/types/index.js.map +0 -1
- package/dist/types/servicenow.types.d.ts.map +0 -1
- package/dist/types/servicenow.types.js.map +0 -1
- package/dist/types/snow-flow.types.d.ts.map +0 -1
- package/dist/types/snow-flow.types.js.map +0 -1
- package/dist/types/todo.types.d.ts.map +0 -1
- package/dist/types/todo.types.js.map +0 -1
- package/dist/utils/action-type-cache.d.ts.map +0 -1
- package/dist/utils/action-type-cache.js.map +0 -1
- package/dist/utils/agent-detector.d.ts.map +0 -1
- package/dist/utils/agent-detector.js.map +0 -1
- package/dist/utils/artifact-tracker.d.ts.map +0 -1
- package/dist/utils/artifact-tracker.js.map +0 -1
- package/dist/utils/dependency-detector.d.ts.map +0 -1
- package/dist/utils/dependency-detector.js.map +0 -1
- package/dist/utils/deployment-metadata-handler.d.ts.map +0 -1
- package/dist/utils/deployment-metadata-handler.js.map +0 -1
- package/dist/utils/error-recovery.d.ts.map +0 -1
- package/dist/utils/error-recovery.js.map +0 -1
- package/dist/utils/flow-api-discovery.d.ts.map +0 -1
- package/dist/utils/flow-api-discovery.js.map +0 -1
- package/dist/utils/flow-xml-generator.d.ts.map +0 -1
- package/dist/utils/flow-xml-generator.js.map +0 -1
- package/dist/utils/logger.d.ts.map +0 -1
- package/dist/utils/logger.js.map +0 -1
- package/dist/utils/mcp-auth-middleware.d.ts.map +0 -1
- package/dist/utils/mcp-auth-middleware.js.map +0 -1
- package/dist/utils/mcp-config-manager.d.ts.map +0 -1
- package/dist/utils/mcp-config-manager.js.map +0 -1
- package/dist/utils/mcp-server-manager.d.ts.map +0 -1
- package/dist/utils/mcp-server-manager.js.map +0 -1
- package/dist/utils/mcp-tool-registry.d.ts.map +0 -1
- package/dist/utils/mcp-tool-registry.js.map +0 -1
- package/dist/utils/migrate-claude-flow.d.ts.map +0 -1
- package/dist/utils/migrate-claude-flow.js.map +0 -1
- package/dist/utils/migrate-snow-flow.d.ts.map +0 -1
- package/dist/utils/migrate-snow-flow.js.map +0 -1
- package/dist/utils/oauth-html-templates.d.ts.map +0 -1
- package/dist/utils/oauth-html-templates.js.map +0 -1
- package/dist/utils/scope-utils.d.ts.map +0 -1
- package/dist/utils/scope-utils.js.map +0 -1
- package/dist/utils/servicenow-client.d.ts.map +0 -1
- package/dist/utils/servicenow-client.js.map +0 -1
- package/dist/utils/servicenow-id-generator.d.ts.map +0 -1
- package/dist/utils/servicenow-id-generator.js.map +0 -1
- package/dist/utils/snow-memory-manager.d.ts.map +0 -1
- package/dist/utils/snow-memory-manager.js.map +0 -1
- package/dist/utils/snow-oauth-old.d.ts.map +0 -1
- package/dist/utils/snow-oauth-old.js.map +0 -1
- package/dist/utils/snow-oauth.d.ts.map +0 -1
- package/dist/utils/snow-oauth.js.map +0 -1
- package/dist/utils/template-engine.d.ts.map +0 -1
- package/dist/utils/template-engine.js.map +0 -1
- package/dist/utils/theme-manager.d.ts.map +0 -1
- package/dist/utils/theme-manager.js.map +0 -1
- package/dist/utils/unified-auth-store.d.ts.map +0 -1
- package/dist/utils/unified-auth-store.js.map +0 -1
- package/dist/utils/update-set-importer.d.ts.map +0 -1
- package/dist/utils/update-set-importer.js.map +0 -1
- package/dist/utils/update-set-xml-packager.d.ts.map +0 -1
- package/dist/utils/update-set-xml-packager.js.map +0 -1
- package/dist/utils/widget-template-generator.d.ts.map +0 -1
- package/dist/utils/widget-template-generator.js.map +0 -1
- package/dist/version.d.ts.map +0 -1
- package/dist/version.js.map +0 -1
- package/memory/agents/README.md +0 -31
- package/memory/claude-flow-data.json +0 -5
- package/memory/servicenow_artifacts/000d9224c895221055906c7518aa2d3d.json +0 -30
- package/memory/servicenow_artifacts/0196b66173303010e46b4a2214f6a7a2.json +0 -36
- package/memory/servicenow_artifacts/125e5d1d837e2a102a7ea130ceaad397.json +0 -30
- package/memory/servicenow_artifacts/7637c1f2b7112210a5e5911cde11a972.json +0 -30
- package/memory/servicenow_artifacts/default_documentation_tables_1754056582292.json +0 -55
- package/memory/servicenow_artifacts/default_documentation_tables_1754057477189.json +0 -55
- package/memory/sessions/README.md +0 -32
- package/memory/update-set-sessions/01f82af583faea102a7ea130ceaad3d4.json +0 -9
- package/memory/update-set-sessions/27718fb983faea102a7ea130ceaad34b.json +0 -9
- package/memory/update-set-sessions/412e9bf6833e22502a7ea130ceaad30a.json +0 -8
- package/memory/update-set-sessions/66fc5a79837aea102a7ea130ceaad3ab.json +0 -9
- package/memory/update-set-sessions/71a30ff5837eea102a7ea130ceaad37f.json +0 -9
- package/memory/update-set-sessions/74fba27983faea102a7ea130ceaad3bd.json +0 -9
- package/memory/update-set-sessions/a0b147b5837eea102a7ea130ceaad344.json +0 -58
- package/memory/update-set-sessions/b13f5eb983baea102a7ea130ceaad33e.json +0 -9
|
@@ -0,0 +1,573 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Intelligent Agent Detection System
|
|
3
|
+
* Dynamically determines which agents to spawn based on task analysis
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
export interface AgentCapability {
|
|
7
|
+
type: string;
|
|
8
|
+
confidence: number;
|
|
9
|
+
requiredFor: string[];
|
|
10
|
+
description: string;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export interface TaskAnalysis {
|
|
14
|
+
primaryAgent: string;
|
|
15
|
+
supportingAgents: string[];
|
|
16
|
+
complexity: 'simple' | 'medium' | 'complex';
|
|
17
|
+
estimatedAgentCount: number;
|
|
18
|
+
requiresUpdateSet: boolean;
|
|
19
|
+
requiresApplication: boolean;
|
|
20
|
+
taskType: string;
|
|
21
|
+
serviceNowArtifacts: string[];
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export class AgentDetector {
|
|
25
|
+
private static readonly AGENT_PATTERNS = {
|
|
26
|
+
// Development agents
|
|
27
|
+
architect: {
|
|
28
|
+
keywords: ['design', 'architecture', 'structure', 'database', 'schema', 'model', 'entity', 'relationship', 'system'],
|
|
29
|
+
confidence: 0.9,
|
|
30
|
+
description: 'System architecture and design',
|
|
31
|
+
requiredFor: ['applications', 'complex_systems', 'integrations']
|
|
32
|
+
},
|
|
33
|
+
coder: {
|
|
34
|
+
keywords: ['implement', 'code', 'script', 'function', 'api', 'endpoint', 'logic', 'algorithm', 'business_rule', 'schrijf', 'write', 'develop', 'programmeer', 'implementeer', 'maak', 'bouw', 'build', 'create', 'codeer'],
|
|
35
|
+
confidence: 0.8,
|
|
36
|
+
description: 'Code implementation and development',
|
|
37
|
+
requiredFor: ['scripts', 'functions', 'business_rules', 'apis']
|
|
38
|
+
},
|
|
39
|
+
researcher: {
|
|
40
|
+
keywords: ['research', 'analyze', 'investigate', 'study', 'explore', 'understand', 'learn', 'discover', 'onderzoek', 'analyseer', 'bestudeer', 'ontdek', 'begrijp'],
|
|
41
|
+
confidence: 0.7,
|
|
42
|
+
description: 'Research and _analysis',
|
|
43
|
+
requiredFor: ['requirements', 'best_practices', 'patterns']
|
|
44
|
+
},
|
|
45
|
+
tester: {
|
|
46
|
+
keywords: ['test', 'verify', 'validate', 'check', 'ensure', 'quality', 'bug', 'debug', 'controleer', 'valideer', 'kwaliteit', 'testen'],
|
|
47
|
+
confidence: 0.8,
|
|
48
|
+
description: 'Testing and quality assurance',
|
|
49
|
+
requiredFor: ['validation', 'quality_control', 'debugging']
|
|
50
|
+
},
|
|
51
|
+
reviewer: {
|
|
52
|
+
keywords: ['review', 'audit', 'examine', 'evaluate', 'assess', 'approve', 'feedback'],
|
|
53
|
+
confidence: 0.7,
|
|
54
|
+
description: 'Code and process review',
|
|
55
|
+
requiredFor: ['code_review', 'approval_process', 'quality_gates']
|
|
56
|
+
},
|
|
57
|
+
documenter: {
|
|
58
|
+
keywords: ['document', 'documentation', 'guide', 'manual', 'readme', 'help', 'instructions'],
|
|
59
|
+
confidence: 0.6,
|
|
60
|
+
description: 'Documentation and guides',
|
|
61
|
+
requiredFor: ['documentation', 'user_guides', 'api_docs']
|
|
62
|
+
},
|
|
63
|
+
orchestrator: {
|
|
64
|
+
keywords: ['coordinate', 'manage', 'orchestrate', 'organize', 'plan', 'schedule', 'oversee'],
|
|
65
|
+
confidence: 0.9,
|
|
66
|
+
description: 'Task coordination and management',
|
|
67
|
+
requiredFor: ['complex_tasks', 'multi_agent_coordination', 'project_management']
|
|
68
|
+
},
|
|
69
|
+
// ServiceNow specific agents
|
|
70
|
+
flow_designer: {
|
|
71
|
+
keywords: ['flow', 'workflow', 'process', 'automation', 'approval', 'routing', 'trigger', 'proces', 'goedkeuring', 'automatisering', 'automatiseer', 'doorloop', 'stroom'],
|
|
72
|
+
confidence: 0.9,
|
|
73
|
+
description: 'ServiceNow Flow Designer specialist',
|
|
74
|
+
requiredFor: ['flows', 'workflows', 'approvals', 'automation']
|
|
75
|
+
},
|
|
76
|
+
widget_builder: {
|
|
77
|
+
keywords: ['widget', 'portal', 'dashboard', 'ui', 'interface', 'frontend', 'display', 'weergave', 'scherm', 'component', 'homepage'],
|
|
78
|
+
confidence: 0.9,
|
|
79
|
+
description: 'Service Portal widget development',
|
|
80
|
+
requiredFor: ['widgets', 'portals', 'dashboards', 'ui_components']
|
|
81
|
+
},
|
|
82
|
+
integration_specialist: {
|
|
83
|
+
keywords: ['integration', 'api', 'rest', 'soap', 'webhook', 'external', 'third_party'],
|
|
84
|
+
confidence: 0.8,
|
|
85
|
+
description: 'System integration and APIs',
|
|
86
|
+
requiredFor: ['integrations', 'apis', 'webhooks', 'external_systems']
|
|
87
|
+
},
|
|
88
|
+
database_expert: {
|
|
89
|
+
keywords: ['database', 'table', 'field', 'record', 'data', 'schema', 'query', 'report'],
|
|
90
|
+
confidence: 0.8,
|
|
91
|
+
description: 'Database and data management',
|
|
92
|
+
requiredFor: ['tables', 'databases', 'reports', 'data_management']
|
|
93
|
+
}
|
|
94
|
+
};
|
|
95
|
+
|
|
96
|
+
// 🚀 ENHANCED: Updated to use new specialized agents for parallel execution (v1.1.92)
|
|
97
|
+
private static readonly SERVICENOW_ARTIFACTS = {
|
|
98
|
+
'widget': [
|
|
99
|
+
'widget-creator', // HTML structure specialist
|
|
100
|
+
'css-specialist', // Styling and responsive design specialist
|
|
101
|
+
'backend-specialist', // Server script specialist
|
|
102
|
+
'frontend-specialist', // Client script specialist
|
|
103
|
+
'integration-specialist', // API integration specialist
|
|
104
|
+
'ui-ux-specialist', // User experience specialist
|
|
105
|
+
'performance-specialist', // Performance optimization
|
|
106
|
+
'tester' // Testing specialist
|
|
107
|
+
],
|
|
108
|
+
'flow': [
|
|
109
|
+
'flow-builder', // Flow structure specialist
|
|
110
|
+
'trigger-specialist', // Trigger configuration specialist
|
|
111
|
+
'action-specialist', // Action development specialist
|
|
112
|
+
'integration-specialist', // External system integration
|
|
113
|
+
'approval-specialist', // Approval process specialist
|
|
114
|
+
'notification-specialist', // Notification configuration
|
|
115
|
+
'error-handler', // Error handling specialist
|
|
116
|
+
'tester' // Flow testing specialist
|
|
117
|
+
],
|
|
118
|
+
'workflow': [
|
|
119
|
+
'flow-builder', 'trigger-specialist', 'action-specialist', 'approval-specialist', 'tester'
|
|
120
|
+
],
|
|
121
|
+
'application': [
|
|
122
|
+
'app-architect', // Application architecture
|
|
123
|
+
'widget-creator', // UI components
|
|
124
|
+
'css-specialist', // Styling specialist
|
|
125
|
+
'flow-builder', // Business logic flows
|
|
126
|
+
'script-writer', // Script includes and business rules
|
|
127
|
+
'security-specialist', // Security implementation
|
|
128
|
+
'integration-specialist', // System integration
|
|
129
|
+
'performance-specialist', // Performance optimization
|
|
130
|
+
'documentation-specialist' // Documentation
|
|
131
|
+
],
|
|
132
|
+
'script': ['script-writer', 'security-specialist', 'tester'],
|
|
133
|
+
'business_rule': ['script-writer', 'security-specialist', 'tester'],
|
|
134
|
+
'integration': [
|
|
135
|
+
'integration-specialist', // API integration specialist
|
|
136
|
+
'api-specialist', // API development specialist
|
|
137
|
+
'transform-specialist', // Data transformation specialist
|
|
138
|
+
'monitoring-specialist', // Integration monitoring
|
|
139
|
+
'security-specialist', // Security implementation
|
|
140
|
+
'tester' // Integration testing
|
|
141
|
+
],
|
|
142
|
+
'api': ['api-specialist', 'integration-specialist', 'security-specialist', 'tester'],
|
|
143
|
+
'table': ['database_expert', 'architect', 'script-writer'],
|
|
144
|
+
'report': ['database_expert', 'analyst', 'performance-specialist'],
|
|
145
|
+
'dashboard': ['widget-creator', 'css-specialist', 'database_expert', 'performance-specialist']
|
|
146
|
+
};
|
|
147
|
+
|
|
148
|
+
static analyzeTask(objective: string, userMaxAgents?: number): TaskAnalysis {
|
|
149
|
+
const lowerObjective = objective.toLowerCase();
|
|
150
|
+
const words = lowerObjective.split(/\s+/);
|
|
151
|
+
|
|
152
|
+
// Detect agent capabilities
|
|
153
|
+
const agentCapabilities = this.detectAgentCapabilities(lowerObjective);
|
|
154
|
+
|
|
155
|
+
// Determine primary agent
|
|
156
|
+
const primaryAgent = this.determinePrimaryAgent(agentCapabilities);
|
|
157
|
+
|
|
158
|
+
// Determine supporting agents
|
|
159
|
+
const supportingAgents = this.determineSupportingAgents(agentCapabilities, primaryAgent, userMaxAgents);
|
|
160
|
+
|
|
161
|
+
// Assess complexity
|
|
162
|
+
const complexity = this.assessComplexity(objective, agentCapabilities);
|
|
163
|
+
|
|
164
|
+
// Determine ServiceNow artifacts
|
|
165
|
+
const serviceNowArtifacts = this.detectServiceNowArtifacts(lowerObjective);
|
|
166
|
+
|
|
167
|
+
// Determine if Update Set is required
|
|
168
|
+
const requiresUpdateSet = this.requiresUpdateSet(lowerObjective, serviceNowArtifacts);
|
|
169
|
+
|
|
170
|
+
// Determine if new Application is required
|
|
171
|
+
const requiresApplication = this.requiresApplication(lowerObjective, serviceNowArtifacts);
|
|
172
|
+
|
|
173
|
+
// Determine task type
|
|
174
|
+
const taskType = this.determineTaskType(lowerObjective, serviceNowArtifacts);
|
|
175
|
+
|
|
176
|
+
// 🚀 NEW: Accurate agent count for parallel system
|
|
177
|
+
const isDevelopmentTask = ['widget-creator', 'flow-builder', 'script-writer', 'app-architect'].includes(primaryAgent) ||
|
|
178
|
+
supportingAgents.some(agent => ['css-specialist', 'backend-specialist', 'frontend-specialist'].includes(agent));
|
|
179
|
+
|
|
180
|
+
const estimatedAgentCount = isDevelopmentTask
|
|
181
|
+
? Math.max(supportingAgents.length + 1, 6) // 6+ agents for development (1 primary + 5+ specialists)
|
|
182
|
+
: Math.min(Math.max(supportingAgents.length + 1, 2), 8); // Original logic for non-development
|
|
183
|
+
|
|
184
|
+
return {
|
|
185
|
+
primaryAgent,
|
|
186
|
+
supportingAgents,
|
|
187
|
+
complexity,
|
|
188
|
+
estimatedAgentCount,
|
|
189
|
+
requiresUpdateSet,
|
|
190
|
+
requiresApplication,
|
|
191
|
+
taskType,
|
|
192
|
+
serviceNowArtifacts
|
|
193
|
+
};
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
private static detectAgentCapabilities(objective: string): AgentCapability[] {
|
|
197
|
+
const capabilities: AgentCapability[] = [];
|
|
198
|
+
|
|
199
|
+
for (const [agentType, config] of Object.entries(this.AGENT_PATTERNS)) {
|
|
200
|
+
let matchCount = 0;
|
|
201
|
+
const totalKeywords = config.keywords.length;
|
|
202
|
+
|
|
203
|
+
for (const keyword of config.keywords) {
|
|
204
|
+
if (objective.includes(keyword)) {
|
|
205
|
+
matchCount++;
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
if (matchCount > 0) {
|
|
210
|
+
const confidence = (matchCount / totalKeywords) * config.confidence;
|
|
211
|
+
capabilities.push({
|
|
212
|
+
type: agentType,
|
|
213
|
+
confidence,
|
|
214
|
+
requiredFor: config.requiredFor,
|
|
215
|
+
description: config.description
|
|
216
|
+
});
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
return capabilities.sort((a, b) => b.confidence - a.confidence);
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
private static determinePrimaryAgent(capabilities: AgentCapability[]): string {
|
|
224
|
+
if (capabilities.length === 0) return 'queen-coordinator';
|
|
225
|
+
|
|
226
|
+
// Map detected types to new parallel agent types
|
|
227
|
+
const convertToParallelType = (detectedType: string): string => {
|
|
228
|
+
const mapping = {
|
|
229
|
+
'widget_builder': 'widget-creator',
|
|
230
|
+
'flow_designer': 'flow-builder',
|
|
231
|
+
'integration_specialist': 'integration-specialist',
|
|
232
|
+
'database_expert': 'app-architect',
|
|
233
|
+
'coder': 'script-writer',
|
|
234
|
+
'architect': 'app-architect',
|
|
235
|
+
'tester': 'tester'
|
|
236
|
+
};
|
|
237
|
+
return mapping[detectedType] || detectedType;
|
|
238
|
+
};
|
|
239
|
+
|
|
240
|
+
// Convert all capability types to parallel agent types
|
|
241
|
+
const parallelCapabilities = capabilities.map(c => ({
|
|
242
|
+
...c,
|
|
243
|
+
type: convertToParallelType(c.type)
|
|
244
|
+
}));
|
|
245
|
+
|
|
246
|
+
// Special logic for ServiceNow-specific tasks - use new parallel agent types
|
|
247
|
+
const serviceNowAgents = parallelCapabilities.filter(c =>
|
|
248
|
+
['flow-builder', 'widget-creator', 'integration-specialist', 'app-architect'].includes(c.type)
|
|
249
|
+
);
|
|
250
|
+
|
|
251
|
+
if (serviceNowAgents.length > 0) {
|
|
252
|
+
return serviceNowAgents[0].type;
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
return parallelCapabilities[0].type;
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
private static determineSupportingAgents(capabilities: AgentCapability[], primaryAgent: string, userMaxAgents?: number): string[] {
|
|
259
|
+
// 🚀 NEW: Parallel Agent System - Show 6+ specialized agents for development tasks
|
|
260
|
+
const isWidgetDevelopment = primaryAgent === 'widget-creator' || capabilities.some(c => c.type === 'widget-creator');
|
|
261
|
+
const isFlowDevelopment = primaryAgent === 'flow-builder' || capabilities.some(c => c.type === 'flow-builder');
|
|
262
|
+
const isDevelopmentTask = isWidgetDevelopment || isFlowDevelopment ||
|
|
263
|
+
capabilities.some(c => ['widget-creator', 'flow-builder', 'script-writer', 'app-architect'].includes(c.type));
|
|
264
|
+
|
|
265
|
+
if (isDevelopmentTask) {
|
|
266
|
+
// 🚀 Widget development gets full specialized team (6+ agents)
|
|
267
|
+
if (isWidgetDevelopment) {
|
|
268
|
+
return ['css-specialist', 'backend-specialist', 'frontend-specialist', 'integration-specialist', 'performance-specialist', 'tester'];
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
// 🚀 Flow development gets flow-specific team
|
|
272
|
+
if (isFlowDevelopment) {
|
|
273
|
+
return ['trigger-specialist', 'action-specialist', 'approval-specialist', 'integration-specialist', 'error-handler', 'tester'];
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
// 🚀 General development gets adaptive specialized team
|
|
277
|
+
return ['script-writer', 'css-specialist', 'integration-specialist', 'security-specialist', 'performance-specialist', 'tester'];
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
// 🚀 For non-development tasks, use smart agent selection based on capabilities
|
|
281
|
+
const requestedSupportingCount = userMaxAgents ? Math.max(userMaxAgents - 1, 1) : 5;
|
|
282
|
+
|
|
283
|
+
// Start with high-confidence agents (confidence > 0.3)
|
|
284
|
+
let supportingAgents = capabilities
|
|
285
|
+
.filter(c => c.type !== primaryAgent && c.confidence > 0.3)
|
|
286
|
+
.slice(0, requestedSupportingCount)
|
|
287
|
+
.map(c => c.type);
|
|
288
|
+
|
|
289
|
+
// If we need more agents, add specialized agents based on task context
|
|
290
|
+
if (supportingAgents.length < requestedSupportingCount) {
|
|
291
|
+
const remainingSlots = requestedSupportingCount - supportingAgents.length;
|
|
292
|
+
const specializedAgents = ['integration-specialist', 'security-specialist', 'tester', 'performance-specialist']
|
|
293
|
+
.filter(agent => !supportingAgents.includes(agent))
|
|
294
|
+
.slice(0, remainingSlots);
|
|
295
|
+
|
|
296
|
+
supportingAgents = [...supportingAgents, ...specializedAgents];
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
// Ensure we don't exceed the requested count
|
|
300
|
+
if (userMaxAgents && supportingAgents.length > requestedSupportingCount) {
|
|
301
|
+
supportingAgents = supportingAgents.slice(0, requestedSupportingCount);
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
return supportingAgents;
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
private static assessComplexity(objective: string, capabilities: AgentCapability[]): 'simple' | 'medium' | 'complex' {
|
|
308
|
+
const wordCount = objective.split(/\s+/).length;
|
|
309
|
+
const agentCount = capabilities.length;
|
|
310
|
+
|
|
311
|
+
// Complex indicators
|
|
312
|
+
const complexKeywords = ['integrate', 'multiple', 'complex', 'advanced', 'system', 'architecture', 'enterprise'];
|
|
313
|
+
const hasComplexKeywords = complexKeywords.some(keyword => objective.toLowerCase().includes(keyword));
|
|
314
|
+
|
|
315
|
+
if (wordCount > 20 || agentCount > 4 || hasComplexKeywords) {
|
|
316
|
+
return 'complex';
|
|
317
|
+
} else if (wordCount > 10 || agentCount > 2) {
|
|
318
|
+
return 'medium';
|
|
319
|
+
} else {
|
|
320
|
+
return 'simple';
|
|
321
|
+
}
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
private static detectServiceNowArtifacts(objective: string): string[] {
|
|
325
|
+
const artifacts: string[] = [];
|
|
326
|
+
const lowerObjective = objective.toLowerCase();
|
|
327
|
+
|
|
328
|
+
// Enhanced artifact detection with Dutch support and context
|
|
329
|
+
const artifactPatterns = {
|
|
330
|
+
'widget': [
|
|
331
|
+
'widget', 'widgets',
|
|
332
|
+
'service portal', 'portal component', 'dashboard component',
|
|
333
|
+
'ui component', 'interface', 'display', 'homepage'
|
|
334
|
+
],
|
|
335
|
+
'flow': [
|
|
336
|
+
'flow', 'flows', 'workflow', 'workflows',
|
|
337
|
+
'process', 'processes', 'automation', 'automate',
|
|
338
|
+
'approval', 'approvals', 'routing', 'trigger'
|
|
339
|
+
],
|
|
340
|
+
'application': [
|
|
341
|
+
'application', 'applications', 'app', 'apps',
|
|
342
|
+
'applicatie', 'applicaties', 'system', 'systeem',
|
|
343
|
+
'complete', 'comprehensive', 'full solution'
|
|
344
|
+
],
|
|
345
|
+
'script': [
|
|
346
|
+
'script', 'scripts', 'code', 'function', 'functions',
|
|
347
|
+
'business rule', 'business rules', 'client script', 'server script',
|
|
348
|
+
'script include', 'javascript', 'logic', 'programmeer'
|
|
349
|
+
],
|
|
350
|
+
'business_rule': [
|
|
351
|
+
'business rule', 'business rules', 'business_rule',
|
|
352
|
+
'rule', 'rules', 'validation', 'trigger logic',
|
|
353
|
+
'bedrijfsregel', 'regel', 'regels'
|
|
354
|
+
],
|
|
355
|
+
'integration': [
|
|
356
|
+
'integration', 'integrations', 'api', 'apis',
|
|
357
|
+
'rest', 'soap', 'webhook', 'external', 'third party',
|
|
358
|
+
'integratie', 'koppeling', 'verbinding'
|
|
359
|
+
],
|
|
360
|
+
'table': [
|
|
361
|
+
'table', 'tables', 'database', 'data',
|
|
362
|
+
'record', 'records', 'field', 'fields',
|
|
363
|
+
'tabel', 'tabellen', 'gegevens'
|
|
364
|
+
],
|
|
365
|
+
'report': [
|
|
366
|
+
'report', 'reports', 'reporting', 'analytics',
|
|
367
|
+
'dashboard', 'chart', 'graph', 'metrics',
|
|
368
|
+
'rapport', 'rapporten', 'rapportage'
|
|
369
|
+
]
|
|
370
|
+
};
|
|
371
|
+
|
|
372
|
+
// Check each artifact type with enhanced patterns
|
|
373
|
+
for (const [artifactType, patterns] of Object.entries(artifactPatterns)) {
|
|
374
|
+
for (const pattern of patterns) {
|
|
375
|
+
if (lowerObjective.includes(pattern)) {
|
|
376
|
+
if (!artifacts.includes(artifactType)) {
|
|
377
|
+
artifacts.push(artifactType);
|
|
378
|
+
}
|
|
379
|
+
break; // Found one pattern for this type, move to next type
|
|
380
|
+
}
|
|
381
|
+
}
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
// Context-based detection for common development terms
|
|
385
|
+
const developmentContext = {
|
|
386
|
+
'widget': ['voor', 'voor een', 'show', 'display', 'interface', 'homepage', 'portal'],
|
|
387
|
+
'flow': ['goedkeuring', 'approval', 'proces', 'automatiseer', 'trigger', 'wanneer'],
|
|
388
|
+
'script': ['implementeer', 'implement', 'schrijf', 'write', 'code', 'function'],
|
|
389
|
+
'table': ['opslaan', 'save', 'store', 'data', 'informatie', 'gegevens'],
|
|
390
|
+
'report': ['analyse', 'analyze', 'overview', 'overzicht', 'statistieken', 'metrics']
|
|
391
|
+
};
|
|
392
|
+
|
|
393
|
+
// Add context-based detection
|
|
394
|
+
for (const [artifactType, contextWords] of Object.entries(developmentContext)) {
|
|
395
|
+
for (const contextWord of contextWords) {
|
|
396
|
+
if (lowerObjective.includes(contextWord) && !artifacts.includes(artifactType)) {
|
|
397
|
+
// Only add if we have creation/development intent
|
|
398
|
+
const creationWords = ['create', 'maak', 'bouw', 'build', 'develop', 'implementeer', 'schrijf', 'write'];
|
|
399
|
+
if (creationWords.some(word => lowerObjective.includes(word))) {
|
|
400
|
+
artifacts.push(artifactType);
|
|
401
|
+
break;
|
|
402
|
+
}
|
|
403
|
+
}
|
|
404
|
+
}
|
|
405
|
+
}
|
|
406
|
+
|
|
407
|
+
// Remove duplicates and return
|
|
408
|
+
return Array.from(new Set(artifacts));
|
|
409
|
+
}
|
|
410
|
+
|
|
411
|
+
private static requiresUpdateSet(objective: string, artifacts: string[]): boolean {
|
|
412
|
+
const lowerObjective = objective.toLowerCase();
|
|
413
|
+
|
|
414
|
+
// Always require Update Set for development tasks
|
|
415
|
+
const developmentKeywords = [
|
|
416
|
+
'create', 'build', 'implement', 'develop', 'make', 'generate', 'add',
|
|
417
|
+
'bouw', 'maak', 'schrijf', 'write', 'update', 'modify', 'change',
|
|
418
|
+
'implementeer', 'ontwikkel', 'codeer', 'programmeer', 'stel', 'wijzig',
|
|
419
|
+
'business rule', 'script', 'flow', 'widget', 'workflow', 'client script',
|
|
420
|
+
'ui action', 'scheduled job', 'transform', 'integration',
|
|
421
|
+
'bedrijfsregel', 'proces', 'goedkeuring', 'automatisering'
|
|
422
|
+
];
|
|
423
|
+
const hasDevelopmentKeywords = developmentKeywords.some(keyword => lowerObjective.includes(keyword));
|
|
424
|
+
|
|
425
|
+
// Or if ServiceNow artifacts are involved
|
|
426
|
+
const hasServiceNowArtifacts = artifacts.length > 0;
|
|
427
|
+
|
|
428
|
+
// Or if task type indicates development
|
|
429
|
+
const developmentTaskTypes = [
|
|
430
|
+
'widget_development', 'flow_development', 'script_development',
|
|
431
|
+
'application_development', 'integration_development', 'database_development',
|
|
432
|
+
'reporting_development', 'general_development'
|
|
433
|
+
];
|
|
434
|
+
const taskType = this.determineTaskType(objective, artifacts);
|
|
435
|
+
const isDevelopmentTask = developmentTaskTypes.includes(taskType);
|
|
436
|
+
|
|
437
|
+
return hasDevelopmentKeywords || hasServiceNowArtifacts || isDevelopmentTask;
|
|
438
|
+
}
|
|
439
|
+
|
|
440
|
+
private static requiresApplication(objective: string, artifacts: string[]): boolean {
|
|
441
|
+
// Require new application for comprehensive systems
|
|
442
|
+
const applicationKeywords = [
|
|
443
|
+
'application', 'app', 'system', 'complete', 'full', 'comprehensive',
|
|
444
|
+
'applicatie', 'applicaties', 'systeem', 'volledig', 'compleet',
|
|
445
|
+
'totaal', 'geheel', 'pakket', 'oplossing', 'solution'
|
|
446
|
+
];
|
|
447
|
+
const hasApplicationKeywords = applicationKeywords.some(keyword => objective.toLowerCase().includes(keyword));
|
|
448
|
+
|
|
449
|
+
// Or if multiple complex artifacts are involved
|
|
450
|
+
const hasMultipleArtifacts = artifacts.length >= 3;
|
|
451
|
+
|
|
452
|
+
return hasApplicationKeywords || hasMultipleArtifacts;
|
|
453
|
+
}
|
|
454
|
+
|
|
455
|
+
private static determineTaskType(objective: string, artifacts: string[]): string {
|
|
456
|
+
// Determine based on detected artifacts and keywords
|
|
457
|
+
// Check flow FIRST as it's often confused with widget when both are present
|
|
458
|
+
if (artifacts.includes('flow') || artifacts.includes('workflow')) return 'flow_development';
|
|
459
|
+
if (artifacts.includes('widget')) return 'widget_development';
|
|
460
|
+
if (artifacts.includes('application')) return 'application_development';
|
|
461
|
+
if (artifacts.includes('script') || artifacts.includes('business_rule')) return 'script_development';
|
|
462
|
+
if (artifacts.includes('integration') || artifacts.includes('api')) return 'integration_development';
|
|
463
|
+
if (artifacts.includes('table') || artifacts.includes('database')) return 'database_development';
|
|
464
|
+
if (artifacts.includes('report') || artifacts.includes('dashboard')) return 'reporting_development';
|
|
465
|
+
|
|
466
|
+
// Fallback to general development
|
|
467
|
+
const developmentKeywords = [
|
|
468
|
+
'create', 'build', 'implement', 'develop', 'make', 'generate',
|
|
469
|
+
'bouw', 'maak', 'schrijf', 'implementeer', 'ontwikkel', 'codeer'
|
|
470
|
+
];
|
|
471
|
+
const hasDevelopmentKeywords = developmentKeywords.some(keyword => objective.toLowerCase().includes(keyword));
|
|
472
|
+
|
|
473
|
+
if (hasDevelopmentKeywords) return 'general_development';
|
|
474
|
+
|
|
475
|
+
// Research or _analysis tasks
|
|
476
|
+
const researchKeywords = [
|
|
477
|
+
'research', 'analyze', 'investigate', 'study', 'explore',
|
|
478
|
+
'onderzoek', 'analyseer', 'bestudeer', 'ontdek'
|
|
479
|
+
];
|
|
480
|
+
const hasResearchKeywords = researchKeywords.some(keyword => objective.toLowerCase().includes(keyword));
|
|
481
|
+
|
|
482
|
+
if (hasResearchKeywords) return 'research_task';
|
|
483
|
+
|
|
484
|
+
return 'orchestration_task';
|
|
485
|
+
}
|
|
486
|
+
|
|
487
|
+
static generateAgentPrompt(agentType: string, objective: string, _analysis: TaskAnalysis): string {
|
|
488
|
+
const agentConfig = this.AGENT_PATTERNS[agentType as keyof typeof this.AGENT_PATTERNS];
|
|
489
|
+
const basePrompt = `You are a specialized ${agentType} agent in a ServiceNow multi-agent development swarm.
|
|
490
|
+
|
|
491
|
+
🎯 **Your Role**: ${agentConfig?.description || 'Specialized agent'}
|
|
492
|
+
|
|
493
|
+
🔍 **Task Context**: ${objective}
|
|
494
|
+
|
|
495
|
+
🏗️ **Project Setup**:
|
|
496
|
+
${_analysis.requiresUpdateSet ? '- ✅ Update Set will be automatically created' : '- ⚠️ No Update Set required'}
|
|
497
|
+
${_analysis.requiresApplication ? '- ✅ New Application will be automatically created' : '- ⚠️ Using existing application context'}
|
|
498
|
+
|
|
499
|
+
🤖 **Team Coordination**:
|
|
500
|
+
- Primary Agent: ${_analysis.primaryAgent}
|
|
501
|
+
- Supporting Agents: ${_analysis.supportingAgents.join(', ')}
|
|
502
|
+
- Task Complexity: ${_analysis.complexity}
|
|
503
|
+
- ServiceNow Artifacts: ${_analysis.serviceNowArtifacts.join(', ')}
|
|
504
|
+
|
|
505
|
+
📋 **Your Responsibilities**:`;
|
|
506
|
+
|
|
507
|
+
// Add agent-specific responsibilities
|
|
508
|
+
switch (agentType) {
|
|
509
|
+
case 'architect':
|
|
510
|
+
return basePrompt + `
|
|
511
|
+
- Design system architecture and data models
|
|
512
|
+
- Define relationships between ServiceNow components
|
|
513
|
+
- Create technical specifications
|
|
514
|
+
- Ensure scalability and best practices
|
|
515
|
+
- Coordinate with other agents on implementation approach`;
|
|
516
|
+
|
|
517
|
+
case 'coder':
|
|
518
|
+
return basePrompt + `
|
|
519
|
+
- Implement code based on architectural designs
|
|
520
|
+
- Write ServiceNow scripts, business rules, and functions
|
|
521
|
+
- Ensure code quality and maintainability
|
|
522
|
+
- Follow ServiceNow development best practices
|
|
523
|
+
- Collaborate with testers on code validation`;
|
|
524
|
+
|
|
525
|
+
case 'flow_designer':
|
|
526
|
+
return basePrompt + `
|
|
527
|
+
- Design and implement ServiceNow flows and workflows
|
|
528
|
+
- Configure approval processes and routing logic
|
|
529
|
+
- Set up triggers and conditions
|
|
530
|
+
- Ensure proper integration with other system components
|
|
531
|
+
- Test flow execution and error handling`;
|
|
532
|
+
|
|
533
|
+
case 'widget_builder':
|
|
534
|
+
return basePrompt + `
|
|
535
|
+
- Design and implement Service Portal widgets
|
|
536
|
+
- Create HTML templates and CSS styling
|
|
537
|
+
- Develop client-side and server-side scripts
|
|
538
|
+
- Ensure responsive design and accessibility
|
|
539
|
+
- Integrate with ServiceNow APIs and data sources`;
|
|
540
|
+
|
|
541
|
+
case 'tester':
|
|
542
|
+
return basePrompt + `
|
|
543
|
+
- Develop and execute test plans
|
|
544
|
+
- Validate functionality and performance
|
|
545
|
+
- Identify and report bugs and issues
|
|
546
|
+
- Ensure quality standards are met
|
|
547
|
+
- Coordinate with development agents on fixes`;
|
|
548
|
+
|
|
549
|
+
case 'researcher':
|
|
550
|
+
return basePrompt + `
|
|
551
|
+
- Research ServiceNow best practices and patterns
|
|
552
|
+
- Analyze requirements and gather information
|
|
553
|
+
- Provide insights and recommendations
|
|
554
|
+
- Study existing implementations and solutions
|
|
555
|
+
- Document findings and share knowledge`;
|
|
556
|
+
|
|
557
|
+
case 'orchestrator':
|
|
558
|
+
return basePrompt + `
|
|
559
|
+
- Coordinate activities between all agents
|
|
560
|
+
- Manage task priorities and dependencies
|
|
561
|
+
- Ensure project timeline and milestones
|
|
562
|
+
- Facilitate communication and collaboration
|
|
563
|
+
- Monitor progress and address blockers`;
|
|
564
|
+
|
|
565
|
+
default:
|
|
566
|
+
return basePrompt + `
|
|
567
|
+
- Provide specialized expertise in your domain
|
|
568
|
+
- Collaborate effectively with other agents
|
|
569
|
+
- Ensure quality and best practices
|
|
570
|
+
- Contribute to overall project success`;
|
|
571
|
+
}
|
|
572
|
+
}
|
|
573
|
+
}
|