snow-flow 8.31.32 → 8.31.34
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/api/health-api.d.ts +1 -1
- package/dist/api/health-api.d.ts.map +1 -1
- package/dist/api/simple-health-api.d.ts +1 -1
- package/dist/api/simple-health-api.d.ts.map +1 -1
- package/dist/cli/partners.d.ts +47 -0
- package/dist/cli/partners.d.ts.map +1 -0
- package/dist/cli/partners.js +283 -0
- package/dist/cli/partners.js.map +1 -0
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +146 -561
- package/dist/cli.js.map +1 -1
- package/dist/examples/queen/integration-example.d.ts +83 -0
- package/dist/examples/queen/integration-example.d.ts.map +1 -0
- package/dist/examples/queen/integration-example.js +219 -0
- package/dist/examples/queen/integration-example.js.map +1 -0
- package/dist/intelligence/acl-analyzer.d.ts +88 -0
- package/dist/intelligence/acl-analyzer.d.ts.map +1 -0
- package/dist/intelligence/acl-analyzer.js +276 -0
- package/dist/intelligence/acl-analyzer.js.map +1 -0
- package/dist/intelligence/auto-resolution-engine.d.ts +74 -0
- package/dist/intelligence/auto-resolution-engine.d.ts.map +1 -0
- package/dist/intelligence/auto-resolution-engine.js +518 -0
- package/dist/intelligence/auto-resolution-engine.js.map +1 -0
- package/dist/intelligence/gap-analysis-engine.d.ts +103 -0
- package/dist/intelligence/gap-analysis-engine.d.ts.map +1 -0
- package/dist/intelligence/gap-analysis-engine.js +333 -0
- package/dist/intelligence/gap-analysis-engine.js.map +1 -0
- package/dist/intelligence/manual-instructions-generator.d.ts +88 -0
- package/dist/intelligence/manual-instructions-generator.d.ts.map +1 -0
- package/dist/intelligence/manual-instructions-generator.js +641 -0
- package/dist/intelligence/manual-instructions-generator.js.map +1 -0
- package/dist/intelligence/mcp-coverage-analyzer.d.ts +89 -0
- package/dist/intelligence/mcp-coverage-analyzer.d.ts.map +1 -0
- package/dist/intelligence/mcp-coverage-analyzer.js +556 -0
- package/dist/intelligence/mcp-coverage-analyzer.js.map +1 -0
- package/dist/intelligence/multi-pass-requirements-analyzer.d.ts +79 -0
- package/dist/intelligence/multi-pass-requirements-analyzer.d.ts.map +1 -0
- package/dist/intelligence/multi-pass-requirements-analyzer.js +478 -0
- package/dist/intelligence/multi-pass-requirements-analyzer.js.map +1 -0
- package/dist/intelligence/performance-recommendations-engine.d.ts +236 -0
- package/dist/intelligence/performance-recommendations-engine.d.ts.map +1 -0
- package/dist/intelligence/performance-recommendations-engine.js +958 -0
- package/dist/intelligence/performance-recommendations-engine.js.map +1 -0
- package/dist/intelligence/requirements-analyzer.d.ts +59 -0
- package/dist/intelligence/requirements-analyzer.d.ts.map +1 -0
- package/dist/intelligence/requirements-analyzer.js +978 -0
- package/dist/intelligence/requirements-analyzer.js.map +1 -0
- package/dist/intelligence/task-analyzer.d.ts +119 -0
- package/dist/intelligence/task-analyzer.d.ts.map +1 -0
- package/dist/intelligence/task-analyzer.js +494 -0
- package/dist/intelligence/task-analyzer.js.map +1 -0
- package/dist/mcp/mcp-tool-manager.d.ts +80 -0
- package/dist/mcp/mcp-tool-manager.d.ts.map +1 -0
- package/dist/mcp/mcp-tool-manager.js +272 -0
- package/dist/mcp/mcp-tool-manager.js.map +1 -0
- package/dist/mcp/servicenow-mcp-unified/tools/adapters/snow_jira_integration.d.ts +9 -0
- package/dist/mcp/servicenow-mcp-unified/tools/adapters/snow_jira_integration.d.ts.map +1 -0
- package/dist/mcp/servicenow-mcp-unified/tools/adapters/snow_jira_integration.js +49 -0
- package/dist/mcp/servicenow-mcp-unified/tools/adapters/snow_jira_integration.js.map +1 -0
- package/dist/mcp/servicenow-mcp-unified/tools/adapters/snow_ldap_sync.d.ts +9 -0
- package/dist/mcp/servicenow-mcp-unified/tools/adapters/snow_ldap_sync.d.ts.map +1 -0
- package/dist/mcp/servicenow-mcp-unified/tools/adapters/snow_ldap_sync.js +48 -0
- package/dist/mcp/servicenow-mcp-unified/tools/adapters/snow_ldap_sync.js.map +1 -0
- package/dist/mcp/servicenow-mcp-unified/tools/adapters/snow_oauth_provider.d.ts +9 -0
- package/dist/mcp/servicenow-mcp-unified/tools/adapters/snow_oauth_provider.d.ts.map +1 -0
- package/dist/mcp/servicenow-mcp-unified/tools/adapters/snow_oauth_provider.js +50 -0
- package/dist/mcp/servicenow-mcp-unified/tools/adapters/snow_oauth_provider.js.map +1 -0
- package/dist/mcp/servicenow-mcp-unified/tools/adapters/snow_saml_config.d.ts +9 -0
- package/dist/mcp/servicenow-mcp-unified/tools/adapters/snow_saml_config.d.ts.map +1 -0
- package/dist/mcp/servicenow-mcp-unified/tools/adapters/snow_saml_config.js +49 -0
- package/dist/mcp/servicenow-mcp-unified/tools/adapters/snow_saml_config.js.map +1 -0
- package/dist/mcp/servicenow-mcp-unified/tools/adapters/snow_webhook_config.d.ts +9 -0
- package/dist/mcp/servicenow-mcp-unified/tools/adapters/snow_webhook_config.d.ts.map +1 -0
- package/dist/mcp/servicenow-mcp-unified/tools/adapters/snow_webhook_config.js +51 -0
- package/dist/mcp/servicenow-mcp-unified/tools/adapters/snow_webhook_config.js.map +1 -0
- package/dist/mcp/servicenow-mcp-unified/tools/ai-ml/index.d.ts +3 -0
- package/dist/mcp/servicenow-mcp-unified/tools/ai-ml/index.d.ts.map +1 -0
- package/dist/mcp/servicenow-mcp-unified/tools/ai-ml/index.js +10 -0
- package/dist/mcp/servicenow-mcp-unified/tools/ai-ml/index.js.map +1 -0
- package/dist/mcp/servicenow-mcp-unified/tools/ai-ml/snow_predict.d.ts +8 -0
- package/dist/mcp/servicenow-mcp-unified/tools/ai-ml/snow_predict.d.ts.map +1 -0
- package/dist/mcp/servicenow-mcp-unified/tools/ai-ml/snow_predict.js +40 -0
- package/dist/mcp/servicenow-mcp-unified/tools/ai-ml/snow_predict.js.map +1 -0
- package/dist/mcp/servicenow-mcp-unified/tools/ai-ml/snow_train_classifier.d.ts +8 -0
- package/dist/mcp/servicenow-mcp-unified/tools/ai-ml/snow_train_classifier.d.ts.map +1 -0
- package/dist/mcp/servicenow-mcp-unified/tools/ai-ml/snow_train_classifier.js +42 -0
- package/dist/mcp/servicenow-mcp-unified/tools/ai-ml/snow_train_classifier.js.map +1 -0
- package/dist/mcp/servicenow-mcp-unified/tools/change/snow_approve_change.d.ts +8 -0
- package/dist/mcp/servicenow-mcp-unified/tools/change/snow_approve_change.d.ts.map +1 -0
- package/dist/mcp/servicenow-mcp-unified/tools/change/snow_approve_change.js +43 -0
- package/dist/mcp/servicenow-mcp-unified/tools/change/snow_approve_change.js.map +1 -0
- package/dist/mcp/servicenow-mcp-unified/tools/change/snow_assess_change_risk.d.ts +8 -0
- package/dist/mcp/servicenow-mcp-unified/tools/change/snow_assess_change_risk.d.ts.map +1 -0
- package/dist/mcp/servicenow-mcp-unified/tools/change/snow_assess_change_risk.js +53 -0
- package/dist/mcp/servicenow-mcp-unified/tools/change/snow_assess_change_risk.js.map +1 -0
- package/dist/mcp/servicenow-mcp-unified/tools/change/snow_create_change.d.ts +8 -0
- package/dist/mcp/servicenow-mcp-unified/tools/change/snow_create_change.d.ts.map +1 -0
- package/dist/mcp/servicenow-mcp-unified/tools/change/snow_create_change.js +50 -0
- package/dist/mcp/servicenow-mcp-unified/tools/change/snow_create_change.js.map +1 -0
- package/dist/mcp/servicenow-mcp-unified/tools/change/snow_create_change_task.d.ts +8 -0
- package/dist/mcp/servicenow-mcp-unified/tools/change/snow_create_change_task.d.ts.map +1 -0
- package/dist/mcp/servicenow-mcp-unified/tools/change/snow_create_change_task.js +50 -0
- package/dist/mcp/servicenow-mcp-unified/tools/change/snow_create_change_task.js.map +1 -0
- package/dist/mcp/servicenow-mcp-unified/tools/change/snow_get_change_request.d.ts +8 -0
- package/dist/mcp/servicenow-mcp-unified/tools/change/snow_get_change_request.d.ts.map +1 -0
- package/dist/mcp/servicenow-mcp-unified/tools/change/snow_get_change_request.js +60 -0
- package/dist/mcp/servicenow-mcp-unified/tools/change/snow_get_change_request.js.map +1 -0
- package/dist/mcp/servicenow-mcp-unified/tools/change/snow_schedule_cab_meeting.d.ts +8 -0
- package/dist/mcp/servicenow-mcp-unified/tools/change/snow_schedule_cab_meeting.d.ts.map +1 -0
- package/dist/mcp/servicenow-mcp-unified/tools/change/snow_schedule_cab_meeting.js +55 -0
- package/dist/mcp/servicenow-mcp-unified/tools/change/snow_schedule_cab_meeting.js.map +1 -0
- package/dist/mcp/servicenow-mcp-unified/tools/change/snow_search_change_requests.d.ts +8 -0
- package/dist/mcp/servicenow-mcp-unified/tools/change/snow_search_change_requests.d.ts.map +1 -0
- package/dist/mcp/servicenow-mcp-unified/tools/change/snow_search_change_requests.js +54 -0
- package/dist/mcp/servicenow-mcp-unified/tools/change/snow_search_change_requests.js.map +1 -0
- package/dist/mcp/servicenow-mcp-unified/tools/change/snow_update_change_state.d.ts +8 -0
- package/dist/mcp/servicenow-mcp-unified/tools/change/snow_update_change_state.d.ts.map +1 -0
- package/dist/mcp/servicenow-mcp-unified/tools/change/snow_update_change_state.js +67 -0
- package/dist/mcp/servicenow-mcp-unified/tools/change/snow_update_change_state.js.map +1 -0
- package/dist/mcp/servicenow-mcp-unified/tools/converters/snow_csv_to_json.d.ts +9 -0
- package/dist/mcp/servicenow-mcp-unified/tools/converters/snow_csv_to_json.d.ts.map +1 -0
- package/dist/mcp/servicenow-mcp-unified/tools/converters/snow_csv_to_json.js +52 -0
- package/dist/mcp/servicenow-mcp-unified/tools/converters/snow_csv_to_json.js.map +1 -0
- package/dist/mcp/servicenow-mcp-unified/tools/converters/snow_json_to_csv.d.ts +9 -0
- package/dist/mcp/servicenow-mcp-unified/tools/converters/snow_json_to_csv.d.ts.map +1 -0
- package/dist/mcp/servicenow-mcp-unified/tools/converters/snow_json_to_csv.js +51 -0
- package/dist/mcp/servicenow-mcp-unified/tools/converters/snow_json_to_csv.js.map +1 -0
- package/dist/mcp/servicenow-mcp-unified/tools/converters/snow_json_to_xml.d.ts +9 -0
- package/dist/mcp/servicenow-mcp-unified/tools/converters/snow_json_to_xml.d.ts.map +1 -0
- package/dist/mcp/servicenow-mcp-unified/tools/converters/snow_json_to_xml.js +42 -0
- package/dist/mcp/servicenow-mcp-unified/tools/converters/snow_json_to_xml.js.map +1 -0
- package/dist/mcp/servicenow-mcp-unified/tools/converters/snow_xml_to_json.d.ts +9 -0
- package/dist/mcp/servicenow-mcp-unified/tools/converters/snow_xml_to_json.d.ts.map +1 -0
- package/dist/mcp/servicenow-mcp-unified/tools/converters/snow_xml_to_json.js +42 -0
- package/dist/mcp/servicenow-mcp-unified/tools/converters/snow_xml_to_json.js.map +1 -0
- package/dist/mcp/servicenow-mcp-unified/tools/flow-designer/snow_get_flow_details.d.ts +8 -0
- package/dist/mcp/servicenow-mcp-unified/tools/flow-designer/snow_get_flow_details.d.ts.map +1 -0
- package/dist/mcp/servicenow-mcp-unified/tools/flow-designer/snow_get_flow_details.js +68 -0
- package/dist/mcp/servicenow-mcp-unified/tools/flow-designer/snow_get_flow_details.js.map +1 -0
- package/dist/mcp/servicenow-mcp-unified/tools/flow-designer/snow_get_flow_execution_history.d.ts +8 -0
- package/dist/mcp/servicenow-mcp-unified/tools/flow-designer/snow_get_flow_execution_history.d.ts.map +1 -0
- package/dist/mcp/servicenow-mcp-unified/tools/flow-designer/snow_get_flow_execution_history.js +76 -0
- package/dist/mcp/servicenow-mcp-unified/tools/flow-designer/snow_get_flow_execution_history.js.map +1 -0
- package/dist/mcp/servicenow-mcp-unified/tools/flow-designer/snow_get_flow_execution_status.d.ts +8 -0
- package/dist/mcp/servicenow-mcp-unified/tools/flow-designer/snow_get_flow_execution_status.d.ts.map +1 -0
- package/dist/mcp/servicenow-mcp-unified/tools/flow-designer/snow_get_flow_execution_status.js +71 -0
- package/dist/mcp/servicenow-mcp-unified/tools/flow-designer/snow_get_flow_execution_status.js.map +1 -0
- package/dist/mcp/servicenow-mcp-unified/tools/flow-designer/snow_list_flows.d.ts +8 -0
- package/dist/mcp/servicenow-mcp-unified/tools/flow-designer/snow_list_flows.d.ts.map +1 -0
- package/dist/mcp/servicenow-mcp-unified/tools/flow-designer/snow_list_flows.js +42 -0
- package/dist/mcp/servicenow-mcp-unified/tools/flow-designer/snow_list_flows.js.map +1 -0
- package/dist/mcp/servicenow-mcp-unified/tools/knowledge/snow_create_knowledge_article.d.ts +12 -0
- package/dist/mcp/servicenow-mcp-unified/tools/knowledge/snow_create_knowledge_article.d.ts.map +1 -0
- package/dist/mcp/servicenow-mcp-unified/tools/knowledge/snow_create_knowledge_article.js +80 -0
- package/dist/mcp/servicenow-mcp-unified/tools/knowledge/snow_create_knowledge_article.js.map +1 -0
- package/dist/mcp/servicenow-mcp-unified/tools/knowledge/snow_get_knowledge_article_details.d.ts +11 -0
- package/dist/mcp/servicenow-mcp-unified/tools/knowledge/snow_get_knowledge_article_details.d.ts.map +1 -0
- package/dist/mcp/servicenow-mcp-unified/tools/knowledge/snow_get_knowledge_article_details.js +63 -0
- package/dist/mcp/servicenow-mcp-unified/tools/knowledge/snow_get_knowledge_article_details.js.map +1 -0
- package/dist/mcp/servicenow-mcp-unified/tools/knowledge/snow_publish_kb_article.d.ts +8 -0
- package/dist/mcp/servicenow-mcp-unified/tools/knowledge/snow_publish_kb_article.d.ts.map +1 -0
- package/dist/mcp/servicenow-mcp-unified/tools/knowledge/snow_publish_kb_article.js +41 -0
- package/dist/mcp/servicenow-mcp-unified/tools/knowledge/snow_publish_kb_article.js.map +1 -0
- package/dist/mcp/servicenow-mcp-unified/tools/knowledge/snow_retire_knowledge_article.d.ts +11 -0
- package/dist/mcp/servicenow-mcp-unified/tools/knowledge/snow_retire_knowledge_article.d.ts.map +1 -0
- package/dist/mcp/servicenow-mcp-unified/tools/knowledge/snow_retire_knowledge_article.js +59 -0
- package/dist/mcp/servicenow-mcp-unified/tools/knowledge/snow_retire_knowledge_article.js.map +1 -0
- package/dist/mcp/servicenow-mcp-unified/tools/knowledge/snow_search_knowledge.d.ts +11 -0
- package/dist/mcp/servicenow-mcp-unified/tools/knowledge/snow_search_knowledge.d.ts.map +1 -0
- package/dist/mcp/servicenow-mcp-unified/tools/knowledge/snow_search_knowledge.js +72 -0
- package/dist/mcp/servicenow-mcp-unified/tools/knowledge/snow_search_knowledge.js.map +1 -0
- package/dist/mcp/servicenow-mcp-unified/tools/knowledge/snow_update_knowledge_article.d.ts +11 -0
- package/dist/mcp/servicenow-mcp-unified/tools/knowledge/snow_update_knowledge_article.d.ts.map +1 -0
- package/dist/mcp/servicenow-mcp-unified/tools/knowledge/snow_update_knowledge_article.js +68 -0
- package/dist/mcp/servicenow-mcp-unified/tools/knowledge/snow_update_knowledge_article.js.map +1 -0
- package/dist/mcp/servicenow-mcp-unified/tools/operations/snow_assign_user_to_group.d.ts +11 -0
- package/dist/mcp/servicenow-mcp-unified/tools/operations/snow_assign_user_to_group.d.ts.map +1 -0
- package/dist/mcp/servicenow-mcp-unified/tools/operations/snow_assign_user_to_group.js +106 -0
- package/dist/mcp/servicenow-mcp-unified/tools/operations/snow_assign_user_to_group.js.map +1 -0
- package/dist/mcp/servicenow-mcp-unified/tools/operations/snow_create_record.d.ts +12 -0
- package/dist/mcp/servicenow-mcp-unified/tools/operations/snow_create_record.d.ts.map +1 -0
- package/dist/mcp/servicenow-mcp-unified/tools/operations/snow_create_record.js +107 -0
- package/dist/mcp/servicenow-mcp-unified/tools/operations/snow_create_record.js.map +1 -0
- package/dist/mcp/servicenow-mcp-unified/tools/operations/snow_delete_record.d.ts +12 -0
- package/dist/mcp/servicenow-mcp-unified/tools/operations/snow_delete_record.d.ts.map +1 -0
- package/dist/mcp/servicenow-mcp-unified/tools/operations/snow_delete_record.js +157 -0
- package/dist/mcp/servicenow-mcp-unified/tools/operations/snow_delete_record.js.map +1 -0
- package/dist/mcp/servicenow-mcp-unified/tools/operations/snow_list_group_members.d.ts +11 -0
- package/dist/mcp/servicenow-mcp-unified/tools/operations/snow_list_group_members.d.ts.map +1 -0
- package/dist/mcp/servicenow-mcp-unified/tools/operations/snow_list_group_members.js +117 -0
- package/dist/mcp/servicenow-mcp-unified/tools/operations/snow_list_group_members.js.map +1 -0
- package/dist/mcp/servicenow-mcp-unified/tools/operations/snow_remove_user_from_group.d.ts +11 -0
- package/dist/mcp/servicenow-mcp-unified/tools/operations/snow_remove_user_from_group.d.ts.map +1 -0
- package/dist/mcp/servicenow-mcp-unified/tools/operations/snow_remove_user_from_group.js +99 -0
- package/dist/mcp/servicenow-mcp-unified/tools/operations/snow_remove_user_from_group.js.map +1 -0
- package/dist/mcp/servicenow-mcp-unified/tools/operations/snow_update_record.d.ts +12 -0
- package/dist/mcp/servicenow-mcp-unified/tools/operations/snow_update_record.d.ts.map +1 -0
- package/dist/mcp/servicenow-mcp-unified/tools/operations/snow_update_record.js +105 -0
- package/dist/mcp/servicenow-mcp-unified/tools/operations/snow_update_record.js.map +1 -0
- package/dist/mcp/servicenow-mcp-unified/tools/performance-analytics/snow_collect_pa_data.d.ts +8 -0
- package/dist/mcp/servicenow-mcp-unified/tools/performance-analytics/snow_collect_pa_data.d.ts.map +1 -0
- package/dist/mcp/servicenow-mcp-unified/tools/performance-analytics/snow_collect_pa_data.js +55 -0
- package/dist/mcp/servicenow-mcp-unified/tools/performance-analytics/snow_collect_pa_data.js.map +1 -0
- package/dist/mcp/servicenow-mcp-unified/tools/performance-analytics/snow_create_data_visualization.d.ts +8 -0
- package/dist/mcp/servicenow-mcp-unified/tools/performance-analytics/snow_create_data_visualization.d.ts.map +1 -0
- package/dist/mcp/servicenow-mcp-unified/tools/performance-analytics/snow_create_data_visualization.js +70 -0
- package/dist/mcp/servicenow-mcp-unified/tools/performance-analytics/snow_create_data_visualization.js.map +1 -0
- package/dist/mcp/servicenow-mcp-unified/tools/performance-analytics/snow_create_kpi.d.ts +8 -0
- package/dist/mcp/servicenow-mcp-unified/tools/performance-analytics/snow_create_kpi.d.ts.map +1 -0
- package/dist/mcp/servicenow-mcp-unified/tools/performance-analytics/snow_create_kpi.js +69 -0
- package/dist/mcp/servicenow-mcp-unified/tools/performance-analytics/snow_create_kpi.js.map +1 -0
- package/dist/mcp/servicenow-mcp-unified/tools/performance-analytics/snow_create_pa_breakdown.d.ts +8 -0
- package/dist/mcp/servicenow-mcp-unified/tools/performance-analytics/snow_create_pa_breakdown.d.ts.map +1 -0
- package/dist/mcp/servicenow-mcp-unified/tools/performance-analytics/snow_create_pa_breakdown.js +55 -0
- package/dist/mcp/servicenow-mcp-unified/tools/performance-analytics/snow_create_pa_breakdown.js.map +1 -0
- package/dist/mcp/servicenow-mcp-unified/tools/performance-analytics/snow_create_pa_indicator.d.ts +8 -0
- package/dist/mcp/servicenow-mcp-unified/tools/performance-analytics/snow_create_pa_indicator.d.ts.map +1 -0
- package/dist/mcp/servicenow-mcp-unified/tools/performance-analytics/snow_create_pa_indicator.js +43 -0
- package/dist/mcp/servicenow-mcp-unified/tools/performance-analytics/snow_create_pa_indicator.js.map +1 -0
- package/dist/mcp/servicenow-mcp-unified/tools/performance-analytics/snow_create_pa_threshold.d.ts +8 -0
- package/dist/mcp/servicenow-mcp-unified/tools/performance-analytics/snow_create_pa_threshold.d.ts.map +1 -0
- package/dist/mcp/servicenow-mcp-unified/tools/performance-analytics/snow_create_pa_threshold.js +57 -0
- package/dist/mcp/servicenow-mcp-unified/tools/performance-analytics/snow_create_pa_threshold.js.map +1 -0
- package/dist/mcp/servicenow-mcp-unified/tools/performance-analytics/snow_create_pa_widget.d.ts +8 -0
- package/dist/mcp/servicenow-mcp-unified/tools/performance-analytics/snow_create_pa_widget.d.ts.map +1 -0
- package/dist/mcp/servicenow-mcp-unified/tools/performance-analytics/snow_create_pa_widget.js +62 -0
- package/dist/mcp/servicenow-mcp-unified/tools/performance-analytics/snow_create_pa_widget.js.map +1 -0
- package/dist/mcp/servicenow-mcp-unified/tools/performance-analytics/snow_create_scheduled_report.d.ts +8 -0
- package/dist/mcp/servicenow-mcp-unified/tools/performance-analytics/snow_create_scheduled_report.d.ts.map +1 -0
- package/dist/mcp/servicenow-mcp-unified/tools/performance-analytics/snow_create_scheduled_report.js +69 -0
- package/dist/mcp/servicenow-mcp-unified/tools/performance-analytics/snow_create_scheduled_report.js.map +1 -0
- package/dist/mcp/servicenow-mcp-unified/tools/performance-analytics/snow_discover_pa_indicators.d.ts +8 -0
- package/dist/mcp/servicenow-mcp-unified/tools/performance-analytics/snow_discover_pa_indicators.d.ts.map +1 -0
- package/dist/mcp/servicenow-mcp-unified/tools/performance-analytics/snow_discover_pa_indicators.js +55 -0
- package/dist/mcp/servicenow-mcp-unified/tools/performance-analytics/snow_discover_pa_indicators.js.map +1 -0
- package/dist/mcp/servicenow-mcp-unified/tools/performance-analytics/snow_discover_report_fields.d.ts +8 -0
- package/dist/mcp/servicenow-mcp-unified/tools/performance-analytics/snow_discover_report_fields.d.ts.map +1 -0
- package/dist/mcp/servicenow-mcp-unified/tools/performance-analytics/snow_discover_report_fields.js +53 -0
- package/dist/mcp/servicenow-mcp-unified/tools/performance-analytics/snow_discover_report_fields.js.map +1 -0
- package/dist/mcp/servicenow-mcp-unified/tools/performance-analytics/snow_discover_reporting_tables.d.ts +8 -0
- package/dist/mcp/servicenow-mcp-unified/tools/performance-analytics/snow_discover_reporting_tables.d.ts.map +1 -0
- package/dist/mcp/servicenow-mcp-unified/tools/performance-analytics/snow_discover_reporting_tables.js +51 -0
- package/dist/mcp/servicenow-mcp-unified/tools/performance-analytics/snow_discover_reporting_tables.js.map +1 -0
- package/dist/mcp/servicenow-mcp-unified/tools/performance-analytics/snow_export_report_data.d.ts +8 -0
- package/dist/mcp/servicenow-mcp-unified/tools/performance-analytics/snow_export_report_data.d.ts.map +1 -0
- package/dist/mcp/servicenow-mcp-unified/tools/performance-analytics/snow_export_report_data.js +62 -0
- package/dist/mcp/servicenow-mcp-unified/tools/performance-analytics/snow_export_report_data.js.map +1 -0
- package/dist/mcp/servicenow-mcp-unified/tools/performance-analytics/snow_generate_insights.d.ts +8 -0
- package/dist/mcp/servicenow-mcp-unified/tools/performance-analytics/snow_generate_insights.d.ts.map +1 -0
- package/dist/mcp/servicenow-mcp-unified/tools/performance-analytics/snow_generate_insights.js +69 -0
- package/dist/mcp/servicenow-mcp-unified/tools/performance-analytics/snow_generate_insights.js.map +1 -0
- package/dist/mcp/servicenow-mcp-unified/tools/performance-analytics/snow_get_pa_scores.d.ts +8 -0
- package/dist/mcp/servicenow-mcp-unified/tools/performance-analytics/snow_get_pa_scores.d.ts.map +1 -0
- package/dist/mcp/servicenow-mcp-unified/tools/performance-analytics/snow_get_pa_scores.js +42 -0
- package/dist/mcp/servicenow-mcp-unified/tools/performance-analytics/snow_get_pa_scores.js.map +1 -0
- package/dist/mcp/servicenow-mcp-unified/tools/predictive-intelligence/index.d.ts +10 -0
- package/dist/mcp/servicenow-mcp-unified/tools/predictive-intelligence/index.d.ts.map +1 -0
- package/dist/mcp/servicenow-mcp-unified/tools/predictive-intelligence/index.js +28 -0
- package/dist/mcp/servicenow-mcp-unified/tools/predictive-intelligence/index.js.map +1 -0
- package/dist/mcp/servicenow-mcp-unified/tools/predictive-intelligence/snow_activate_pi_solution.d.ts +11 -0
- package/dist/mcp/servicenow-mcp-unified/tools/predictive-intelligence/snow_activate_pi_solution.d.ts.map +1 -0
- package/dist/mcp/servicenow-mcp-unified/tools/predictive-intelligence/snow_activate_pi_solution.js +168 -0
- package/dist/mcp/servicenow-mcp-unified/tools/predictive-intelligence/snow_activate_pi_solution.js.map +1 -0
- package/dist/mcp/servicenow-mcp-unified/tools/predictive-intelligence/snow_create_pi_solution.d.ts +20 -0
- package/dist/mcp/servicenow-mcp-unified/tools/predictive-intelligence/snow_create_pi_solution.d.ts.map +1 -0
- package/dist/mcp/servicenow-mcp-unified/tools/predictive-intelligence/snow_create_pi_solution.js +235 -0
- package/dist/mcp/servicenow-mcp-unified/tools/predictive-intelligence/snow_create_pi_solution.js.map +1 -0
- package/dist/mcp/servicenow-mcp-unified/tools/predictive-intelligence/snow_list_pi_solutions.d.ts +10 -0
- package/dist/mcp/servicenow-mcp-unified/tools/predictive-intelligence/snow_list_pi_solutions.d.ts.map +1 -0
- package/dist/mcp/servicenow-mcp-unified/tools/predictive-intelligence/snow_list_pi_solutions.js +166 -0
- package/dist/mcp/servicenow-mcp-unified/tools/predictive-intelligence/snow_list_pi_solutions.js.map +1 -0
- package/dist/mcp/servicenow-mcp-unified/tools/predictive-intelligence/snow_monitor_pi_training.d.ts +11 -0
- package/dist/mcp/servicenow-mcp-unified/tools/predictive-intelligence/snow_monitor_pi_training.d.ts.map +1 -0
- package/dist/mcp/servicenow-mcp-unified/tools/predictive-intelligence/snow_monitor_pi_training.js +142 -0
- package/dist/mcp/servicenow-mcp-unified/tools/predictive-intelligence/snow_monitor_pi_training.js.map +1 -0
- package/dist/mcp/servicenow-mcp-unified/tools/predictive-intelligence/snow_train_pi_solution.d.ts +14 -0
- package/dist/mcp/servicenow-mcp-unified/tools/predictive-intelligence/snow_train_pi_solution.d.ts.map +1 -0
- package/dist/mcp/servicenow-mcp-unified/tools/predictive-intelligence/snow_train_pi_solution.js +149 -0
- package/dist/mcp/servicenow-mcp-unified/tools/predictive-intelligence/snow_train_pi_solution.js.map +1 -0
- package/dist/mcp/servicenow-mcp-unified/tools/ui-builder/snow_add_uib_page_element.d.ts +12 -0
- package/dist/mcp/servicenow-mcp-unified/tools/ui-builder/snow_add_uib_page_element.d.ts.map +1 -0
- package/dist/mcp/servicenow-mcp-unified/tools/ui-builder/snow_add_uib_page_element.js +111 -0
- package/dist/mcp/servicenow-mcp-unified/tools/ui-builder/snow_add_uib_page_element.js.map +1 -0
- package/dist/mcp/servicenow-mcp-unified/tools/ui-builder/snow_clone_uib_component.d.ts +12 -0
- package/dist/mcp/servicenow-mcp-unified/tools/ui-builder/snow_clone_uib_component.d.ts.map +1 -0
- package/dist/mcp/servicenow-mcp-unified/tools/ui-builder/snow_clone_uib_component.js +99 -0
- package/dist/mcp/servicenow-mcp-unified/tools/ui-builder/snow_clone_uib_component.js.map +1 -0
- package/dist/mcp/servicenow-mcp-unified/tools/ui-builder/snow_create_uib_component.d.ts +12 -0
- package/dist/mcp/servicenow-mcp-unified/tools/ui-builder/snow_create_uib_component.d.ts.map +1 -0
- package/dist/mcp/servicenow-mcp-unified/tools/ui-builder/snow_create_uib_component.js +102 -0
- package/dist/mcp/servicenow-mcp-unified/tools/ui-builder/snow_create_uib_component.js.map +1 -0
- package/dist/mcp/servicenow-mcp-unified/tools/ui-builder/snow_create_uib_page.d.ts +12 -0
- package/dist/mcp/servicenow-mcp-unified/tools/ui-builder/snow_create_uib_page.d.ts.map +1 -0
- package/dist/mcp/servicenow-mcp-unified/tools/ui-builder/snow_create_uib_page.js +99 -0
- package/dist/mcp/servicenow-mcp-unified/tools/ui-builder/snow_create_uib_page.js.map +1 -0
- package/dist/mcp/servicenow-mcp-unified/tools/ui-builder/snow_delete_uib_page.d.ts +12 -0
- package/dist/mcp/servicenow-mcp-unified/tools/ui-builder/snow_delete_uib_page.d.ts.map +1 -0
- package/dist/mcp/servicenow-mcp-unified/tools/ui-builder/snow_delete_uib_page.js +108 -0
- package/dist/mcp/servicenow-mcp-unified/tools/ui-builder/snow_delete_uib_page.js.map +1 -0
- package/dist/mcp/servicenow-mcp-unified/tools/ui-builder/snow_discover_uib_components.d.ts +12 -0
- package/dist/mcp/servicenow-mcp-unified/tools/ui-builder/snow_discover_uib_components.d.ts.map +1 -0
- package/dist/mcp/servicenow-mcp-unified/tools/ui-builder/snow_discover_uib_components.js +96 -0
- package/dist/mcp/servicenow-mcp-unified/tools/ui-builder/snow_discover_uib_components.js.map +1 -0
- package/dist/mcp/servicenow-mcp-unified/tools/ui-builder/snow_discover_uib_page_usage.d.ts +12 -0
- package/dist/mcp/servicenow-mcp-unified/tools/ui-builder/snow_discover_uib_page_usage.d.ts.map +1 -0
- package/dist/mcp/servicenow-mcp-unified/tools/ui-builder/snow_discover_uib_page_usage.js +106 -0
- package/dist/mcp/servicenow-mcp-unified/tools/ui-builder/snow_discover_uib_page_usage.js.map +1 -0
- package/dist/mcp/servicenow-mcp-unified/tools/ui-builder/snow_discover_uib_pages.d.ts +11 -0
- package/dist/mcp/servicenow-mcp-unified/tools/ui-builder/snow_discover_uib_pages.d.ts.map +1 -0
- package/dist/mcp/servicenow-mcp-unified/tools/ui-builder/snow_discover_uib_pages.js +102 -0
- package/dist/mcp/servicenow-mcp-unified/tools/ui-builder/snow_discover_uib_pages.js.map +1 -0
- package/dist/mcp/servicenow-mcp-unified/tools/ui-builder/snow_discover_uib_routes.d.ts +12 -0
- package/dist/mcp/servicenow-mcp-unified/tools/ui-builder/snow_discover_uib_routes.d.ts.map +1 -0
- package/dist/mcp/servicenow-mcp-unified/tools/ui-builder/snow_discover_uib_routes.js +99 -0
- package/dist/mcp/servicenow-mcp-unified/tools/ui-builder/snow_discover_uib_routes.js.map +1 -0
- package/dist/mcp/servicenow-mcp-unified/tools/ui-builder/snow_remove_uib_page_element.d.ts +11 -0
- package/dist/mcp/servicenow-mcp-unified/tools/ui-builder/snow_remove_uib_page_element.d.ts.map +1 -0
- package/dist/mcp/servicenow-mcp-unified/tools/ui-builder/snow_remove_uib_page_element.js +138 -0
- package/dist/mcp/servicenow-mcp-unified/tools/ui-builder/snow_remove_uib_page_element.js.map +1 -0
- package/dist/mcp/servicenow-mcp-unified/tools/user-admin/snow_add_user_to_group.d.ts +9 -0
- package/dist/mcp/servicenow-mcp-unified/tools/user-admin/snow_add_user_to_group.d.ts.map +1 -0
- package/dist/mcp/servicenow-mcp-unified/tools/user-admin/snow_add_user_to_group.js +42 -0
- package/dist/mcp/servicenow-mcp-unified/tools/user-admin/snow_add_user_to_group.js.map +1 -0
- package/dist/mcp/servicenow-mcp-unified/tools/user-admin/snow_assign_role.d.ts +9 -0
- package/dist/mcp/servicenow-mcp-unified/tools/user-admin/snow_assign_role.d.ts.map +1 -0
- package/dist/mcp/servicenow-mcp-unified/tools/user-admin/snow_assign_role.js +51 -0
- package/dist/mcp/servicenow-mcp-unified/tools/user-admin/snow_assign_role.js.map +1 -0
- package/dist/mcp/servicenow-mcp-unified/tools/user-admin/snow_create_group.d.ts +9 -0
- package/dist/mcp/servicenow-mcp-unified/tools/user-admin/snow_create_group.d.ts.map +1 -0
- package/dist/mcp/servicenow-mcp-unified/tools/user-admin/snow_create_group.js +51 -0
- package/dist/mcp/servicenow-mcp-unified/tools/user-admin/snow_create_group.js.map +1 -0
- package/dist/mcp/servicenow-mcp-unified/tools/user-admin/snow_create_role.d.ts +9 -0
- package/dist/mcp/servicenow-mcp-unified/tools/user-admin/snow_create_role.d.ts.map +1 -0
- package/dist/mcp/servicenow-mcp-unified/tools/user-admin/snow_create_role.js +47 -0
- package/dist/mcp/servicenow-mcp-unified/tools/user-admin/snow_create_role.js.map +1 -0
- package/dist/mcp/servicenow-mcp-unified/tools/user-admin/snow_create_user.d.ts +9 -0
- package/dist/mcp/servicenow-mcp-unified/tools/user-admin/snow_create_user.d.ts.map +1 -0
- package/dist/mcp/servicenow-mcp-unified/tools/user-admin/snow_create_user.js +51 -0
- package/dist/mcp/servicenow-mcp-unified/tools/user-admin/snow_create_user.js.map +1 -0
- package/dist/mcp/servicenow-mcp-unified/tools/user-admin/snow_deactivate_user.d.ts +9 -0
- package/dist/mcp/servicenow-mcp-unified/tools/user-admin/snow_deactivate_user.d.ts.map +1 -0
- package/dist/mcp/servicenow-mcp-unified/tools/user-admin/snow_deactivate_user.js +40 -0
- package/dist/mcp/servicenow-mcp-unified/tools/user-admin/snow_deactivate_user.js.map +1 -0
- package/dist/memory/session-memory.d.ts +70 -0
- package/dist/memory/session-memory.d.ts.map +1 -0
- package/dist/memory/session-memory.js +110 -0
- package/dist/memory/session-memory.js.map +1 -0
- package/dist/partners/license-parser.d.ts +52 -0
- package/dist/partners/license-parser.d.ts.map +1 -0
- package/dist/partners/license-parser.js +240 -0
- package/dist/partners/license-parser.js.map +1 -0
- package/dist/partners/types.d.ts +253 -0
- package/dist/partners/types.d.ts.map +1 -0
- package/dist/partners/types.js +111 -0
- package/dist/partners/types.js.map +1 -0
- package/dist/portal/partner-backend.d.ts +106 -0
- package/dist/portal/partner-backend.d.ts.map +1 -0
- package/dist/portal/partner-backend.js +254 -0
- package/dist/portal/partner-backend.js.map +1 -0
- package/dist/queen/agent-factory.d.ts +45 -0
- package/dist/queen/agent-factory.d.ts.map +1 -0
- package/dist/queen/agent-factory.js +659 -0
- package/dist/queen/agent-factory.js.map +1 -0
- package/dist/queen/index.d.ts +59 -0
- package/dist/queen/index.d.ts.map +1 -0
- package/dist/queen/index.js +80 -0
- package/dist/queen/index.js.map +1 -0
- package/dist/queen/mcp-execution-bridge.d.ts +115 -0
- package/dist/queen/mcp-execution-bridge.d.ts.map +1 -0
- package/dist/queen/mcp-execution-bridge.js +535 -0
- package/dist/queen/mcp-execution-bridge.js.map +1 -0
- package/dist/queen/neural-learning.d.ts +28 -0
- package/dist/queen/neural-learning.d.ts.map +1 -0
- package/dist/queen/neural-learning.js +252 -0
- package/dist/queen/neural-learning.js.map +1 -0
- package/dist/queen/parallel-agent-engine.d.ts +126 -0
- package/dist/queen/parallel-agent-engine.d.ts.map +1 -0
- package/dist/queen/parallel-agent-engine.js +704 -0
- package/dist/queen/parallel-agent-engine.js.map +1 -0
- package/dist/queen/queen-knowledge-base.d.ts +151 -0
- package/dist/queen/queen-knowledge-base.d.ts.map +1 -0
- package/dist/queen/queen-knowledge-base.js +283 -0
- package/dist/queen/queen-knowledge-base.js.map +1 -0
- package/dist/queen/queen-memory.d.ts +65 -0
- package/dist/queen/queen-memory.d.ts.map +1 -0
- package/dist/queen/queen-memory.js +467 -0
- package/dist/queen/queen-memory.js.map +1 -0
- package/dist/queen/servicenow-queen.d.ts +154 -0
- package/dist/queen/servicenow-queen.d.ts.map +1 -0
- package/dist/queen/servicenow-queen.js +1409 -0
- package/dist/queen/servicenow-queen.js.map +1 -0
- package/dist/queen/types.d.ts +65 -0
- package/dist/queen/types.d.ts.map +1 -0
- package/dist/queen/types.js +7 -0
- package/dist/queen/types.js.map +1 -0
- package/dist/sdk/queen-orchestrator.d.ts +94 -0
- package/dist/sdk/queen-orchestrator.d.ts.map +1 -0
- package/dist/sdk/queen-orchestrator.js +309 -0
- package/dist/sdk/queen-orchestrator.js.map +1 -0
- package/dist/sdk/universal-agent-spawner.d.ts +112 -0
- package/dist/sdk/universal-agent-spawner.d.ts.map +1 -0
- package/dist/sdk/universal-agent-spawner.js +353 -0
- package/dist/sdk/universal-agent-spawner.js.map +1 -0
- package/dist/sparc/sparc-help.d.ts +5 -0
- package/dist/sparc/sparc-help.d.ts.map +1 -0
- package/dist/sparc/sparc-help.js +52 -0
- package/dist/sparc/sparc-help.js.map +1 -0
- package/dist/sparc/team-sparc.d.ts +9 -0
- package/dist/sparc/team-sparc.d.ts.map +1 -0
- package/dist/sparc/team-sparc.js +83 -0
- package/dist/sparc/team-sparc.js.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,659 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* ServiceNow Agent Factory
|
|
4
|
+
* Dynamic agent spawning based on task analysis
|
|
5
|
+
*/
|
|
6
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
7
|
+
if (k2 === undefined) k2 = k;
|
|
8
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
9
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
10
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
11
|
+
}
|
|
12
|
+
Object.defineProperty(o, k2, desc);
|
|
13
|
+
}) : (function(o, m, k, k2) {
|
|
14
|
+
if (k2 === undefined) k2 = k;
|
|
15
|
+
o[k2] = m[k];
|
|
16
|
+
}));
|
|
17
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
18
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
19
|
+
}) : function(o, v) {
|
|
20
|
+
o["default"] = v;
|
|
21
|
+
});
|
|
22
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
23
|
+
var ownKeys = function(o) {
|
|
24
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
25
|
+
var ar = [];
|
|
26
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
27
|
+
return ar;
|
|
28
|
+
};
|
|
29
|
+
return ownKeys(o);
|
|
30
|
+
};
|
|
31
|
+
return function (mod) {
|
|
32
|
+
if (mod && mod.__esModule) return mod;
|
|
33
|
+
var result = {};
|
|
34
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
35
|
+
__setModuleDefault(result, mod);
|
|
36
|
+
return result;
|
|
37
|
+
};
|
|
38
|
+
})();
|
|
39
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
40
|
+
exports.AgentFactory = void 0;
|
|
41
|
+
const crypto = __importStar(require("crypto"));
|
|
42
|
+
class AgentFactory {
|
|
43
|
+
constructor(memory) {
|
|
44
|
+
this.memory = memory;
|
|
45
|
+
this.activeAgents = new Map();
|
|
46
|
+
this.messageQueue = [];
|
|
47
|
+
this.agentBlueprints = new Map();
|
|
48
|
+
this.initializeBlueprints();
|
|
49
|
+
}
|
|
50
|
+
initializeBlueprints() {
|
|
51
|
+
// Widget Creator Agent - Simple but effective
|
|
52
|
+
this.agentBlueprints.set('widget-creator', {
|
|
53
|
+
type: 'widget-creator',
|
|
54
|
+
capabilities: [
|
|
55
|
+
'HTML template creation',
|
|
56
|
+
'CSS styling and responsive design',
|
|
57
|
+
'Client-side JavaScript',
|
|
58
|
+
'Server-side data processing',
|
|
59
|
+
'Chart.js integration',
|
|
60
|
+
'ServiceNow widget deployment'
|
|
61
|
+
],
|
|
62
|
+
mcpTools: [
|
|
63
|
+
'snow_deploy',
|
|
64
|
+
'snow_preview_widget',
|
|
65
|
+
'snow_widget_test',
|
|
66
|
+
'snow_catalog_item_search'
|
|
67
|
+
],
|
|
68
|
+
personality: 'Focused, detail-oriented, user experience focused',
|
|
69
|
+
coordination: 'collaborative'
|
|
70
|
+
});
|
|
71
|
+
// Flow Builder Agent - Process automation specialist
|
|
72
|
+
this.agentBlueprints.set('flow-builder', {
|
|
73
|
+
type: 'flow-builder',
|
|
74
|
+
capabilities: [
|
|
75
|
+
'Business process design',
|
|
76
|
+
'Flow Designer expertise',
|
|
77
|
+
'Approval workflow creation',
|
|
78
|
+
'Integration flow building',
|
|
79
|
+
'Condition and trigger logic'
|
|
80
|
+
],
|
|
81
|
+
mcpTools: [
|
|
82
|
+
'snow_create_flow',
|
|
83
|
+
'snow_test_flow_with_mock',
|
|
84
|
+
'snow_link_catalog_to_flow',
|
|
85
|
+
'snow_comprehensive_flow_test'
|
|
86
|
+
],
|
|
87
|
+
personality: 'Process-oriented, logical, systematic',
|
|
88
|
+
coordination: 'dependent'
|
|
89
|
+
});
|
|
90
|
+
// Script Writer Agent - Backend logic specialist
|
|
91
|
+
this.agentBlueprints.set('script-writer', {
|
|
92
|
+
type: 'script-writer',
|
|
93
|
+
capabilities: [
|
|
94
|
+
'Business rule creation',
|
|
95
|
+
'Script include development',
|
|
96
|
+
'Client script implementation',
|
|
97
|
+
'Data transformation scripts',
|
|
98
|
+
'Performance optimization'
|
|
99
|
+
],
|
|
100
|
+
mcpTools: [
|
|
101
|
+
'snow_create_script_include',
|
|
102
|
+
'snow_create_business_rule',
|
|
103
|
+
'snow_create_client_script'
|
|
104
|
+
],
|
|
105
|
+
personality: 'Technical, efficient, security-conscious',
|
|
106
|
+
coordination: 'independent'
|
|
107
|
+
});
|
|
108
|
+
// Application Architect Agent - System design specialist
|
|
109
|
+
this.agentBlueprints.set('app-architect', {
|
|
110
|
+
type: 'app-architect',
|
|
111
|
+
capabilities: [
|
|
112
|
+
'System architecture design',
|
|
113
|
+
'Table structure planning',
|
|
114
|
+
'Module organization',
|
|
115
|
+
'Security model design',
|
|
116
|
+
'Performance architecture'
|
|
117
|
+
],
|
|
118
|
+
mcpTools: [
|
|
119
|
+
'snow_deploy',
|
|
120
|
+
'snow_discover_platform_tables',
|
|
121
|
+
'snow_table_schema_discovery',
|
|
122
|
+
'snow_create_ui_policy'
|
|
123
|
+
],
|
|
124
|
+
personality: 'Strategic, thorough, architecture-focused',
|
|
125
|
+
coordination: 'collaborative'
|
|
126
|
+
});
|
|
127
|
+
// Integration Specialist Agent - API and integration expert
|
|
128
|
+
this.agentBlueprints.set('integration-specialist', {
|
|
129
|
+
type: 'integration-specialist',
|
|
130
|
+
capabilities: [
|
|
131
|
+
'REST API integration',
|
|
132
|
+
'Data transformation',
|
|
133
|
+
'External system connectivity',
|
|
134
|
+
'Import/export processes',
|
|
135
|
+
'Authentication handling'
|
|
136
|
+
],
|
|
137
|
+
mcpTools: [
|
|
138
|
+
'snow_create_rest_message',
|
|
139
|
+
'snow_create_transform_map',
|
|
140
|
+
'snow_test_integration',
|
|
141
|
+
'snow_discover_data_sources'
|
|
142
|
+
],
|
|
143
|
+
personality: 'Integration-focused, problem-solving, connectivity expert',
|
|
144
|
+
coordination: 'independent'
|
|
145
|
+
});
|
|
146
|
+
// Catalog Manager Agent - Service catalog specialist
|
|
147
|
+
this.agentBlueprints.set('catalog-manager', {
|
|
148
|
+
type: 'catalog-manager',
|
|
149
|
+
capabilities: [
|
|
150
|
+
'Catalog item creation',
|
|
151
|
+
'Variable set design',
|
|
152
|
+
'Workflow integration',
|
|
153
|
+
'Fulfillment automation',
|
|
154
|
+
'User experience optimization'
|
|
155
|
+
],
|
|
156
|
+
mcpTools: [
|
|
157
|
+
'snow_catalog_item_manager',
|
|
158
|
+
'snow_catalog_item_search',
|
|
159
|
+
'snow_link_catalog_to_flow'
|
|
160
|
+
],
|
|
161
|
+
personality: 'User-focused, service-oriented, detail-oriented',
|
|
162
|
+
coordination: 'collaborative'
|
|
163
|
+
});
|
|
164
|
+
// Researcher Agent - Discovery and _analysis specialist
|
|
165
|
+
this.agentBlueprints.set('researcher', {
|
|
166
|
+
type: 'researcher',
|
|
167
|
+
capabilities: [
|
|
168
|
+
'Requirement _analysis',
|
|
169
|
+
'Best practice research',
|
|
170
|
+
'Existing artifact discovery',
|
|
171
|
+
'Dependency identification',
|
|
172
|
+
'Solution architecture'
|
|
173
|
+
],
|
|
174
|
+
mcpTools: [
|
|
175
|
+
'snow_find_artifact',
|
|
176
|
+
'snow_comprehensive_search',
|
|
177
|
+
'snow_analyze_requirements',
|
|
178
|
+
'snow_discover_existing_flows'
|
|
179
|
+
],
|
|
180
|
+
personality: 'Analytical, thorough, knowledge-gathering',
|
|
181
|
+
coordination: 'independent'
|
|
182
|
+
});
|
|
183
|
+
// Tester Agent - Quality assurance specialist
|
|
184
|
+
this.agentBlueprints.set('tester', {
|
|
185
|
+
type: 'tester',
|
|
186
|
+
capabilities: [
|
|
187
|
+
'Test scenario creation',
|
|
188
|
+
'Mock data generation',
|
|
189
|
+
'Integration testing',
|
|
190
|
+
'Performance validation',
|
|
191
|
+
'Quality assurance'
|
|
192
|
+
],
|
|
193
|
+
mcpTools: [
|
|
194
|
+
'snow_test_flow_with_mock',
|
|
195
|
+
'snow_widget_test',
|
|
196
|
+
'snow_comprehensive_flow_test',
|
|
197
|
+
'snow_cleanup_test_artifacts'
|
|
198
|
+
],
|
|
199
|
+
personality: 'Quality-focused, systematic, thorough',
|
|
200
|
+
coordination: 'dependent'
|
|
201
|
+
});
|
|
202
|
+
}
|
|
203
|
+
// Spawn agent based on type and task requirements
|
|
204
|
+
spawnAgent(type, taskId) {
|
|
205
|
+
const blueprint = this.agentBlueprints.get(type);
|
|
206
|
+
if (!blueprint) {
|
|
207
|
+
throw new Error(`Unknown agent type: ${type}`);
|
|
208
|
+
}
|
|
209
|
+
const agent = {
|
|
210
|
+
id: this.generateAgentId(type),
|
|
211
|
+
type,
|
|
212
|
+
status: 'idle',
|
|
213
|
+
task: taskId,
|
|
214
|
+
capabilities: [...blueprint.capabilities],
|
|
215
|
+
mcpTools: [...blueprint.mcpTools]
|
|
216
|
+
};
|
|
217
|
+
this.activeAgents.set(agent.id, agent);
|
|
218
|
+
// Store agent creation in memory for learning
|
|
219
|
+
this.memory.storeLearning(`agent_spawn_${type}`, `Spawned ${type} agent for task: ${taskId || 'general'}`, 0.8);
|
|
220
|
+
return agent;
|
|
221
|
+
}
|
|
222
|
+
// Spawn multiple agents for complex task
|
|
223
|
+
spawnAgentSwarm(agentTypes, taskId) {
|
|
224
|
+
const agents = [];
|
|
225
|
+
for (const type of agentTypes) {
|
|
226
|
+
const agent = this.spawnAgent(type, taskId);
|
|
227
|
+
agents.push(agent);
|
|
228
|
+
}
|
|
229
|
+
// Create coordination channels between collaborative agents
|
|
230
|
+
this.setupAgentCoordination(agents);
|
|
231
|
+
return agents;
|
|
232
|
+
}
|
|
233
|
+
setupAgentCoordination(agents) {
|
|
234
|
+
const collaborativeAgents = agents.filter(agent => {
|
|
235
|
+
const blueprint = this.agentBlueprints.get(agent.type);
|
|
236
|
+
return blueprint?.coordination === 'collaborative';
|
|
237
|
+
});
|
|
238
|
+
// Enable message passing between collaborative agents
|
|
239
|
+
for (let i = 0; i < collaborativeAgents.length; i++) {
|
|
240
|
+
for (let j = i + 1; j < collaborativeAgents.length; j++) {
|
|
241
|
+
this.memory.storeLearning(`coordination_${collaborativeAgents[i].type}_${collaborativeAgents[j].type}`, 'Enabled collaborative coordination channel', 0.9);
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
// Get optimal agent sequence for task
|
|
246
|
+
getOptimalAgentSequence(taskType, complexity) {
|
|
247
|
+
// Check memory for successful patterns first
|
|
248
|
+
const bestPattern = this.memory.getBestPattern(taskType);
|
|
249
|
+
if (bestPattern && bestPattern.successRate > 0.7) {
|
|
250
|
+
return bestPattern.agentSequence;
|
|
251
|
+
}
|
|
252
|
+
// Default sequences based on task type and complexity
|
|
253
|
+
const sequences = {
|
|
254
|
+
widget: complexity > 0.7
|
|
255
|
+
? ['researcher', 'widget-creator', 'tester']
|
|
256
|
+
: ['widget-creator', 'tester'],
|
|
257
|
+
flow: complexity > 0.6
|
|
258
|
+
? ['researcher', 'flow-builder', 'catalog-manager', 'tester']
|
|
259
|
+
: ['flow-builder', 'tester'],
|
|
260
|
+
script: complexity > 0.5
|
|
261
|
+
? ['researcher', 'script-writer', 'tester']
|
|
262
|
+
: ['script-writer'],
|
|
263
|
+
application: complexity > 0.8
|
|
264
|
+
? ['researcher', 'app-architect', 'script-writer', 'widget-creator', 'tester']
|
|
265
|
+
: ['app-architect', 'script-writer', 'tester'],
|
|
266
|
+
integration: ['researcher', 'integration-specialist', 'tester'],
|
|
267
|
+
portal_page: complexity > 0.7
|
|
268
|
+
? ['researcher', 'widget-creator', 'page-designer', 'tester']
|
|
269
|
+
: ['widget-creator', 'page-designer', 'tester'],
|
|
270
|
+
workspace: complexity > 0.7
|
|
271
|
+
? ['researcher', 'workspace-specialist', 'ui-builder-expert', 'tester']
|
|
272
|
+
: ['workspace-specialist', 'ui-builder-expert'],
|
|
273
|
+
unknown: ['researcher', 'widget-creator'] // Safe default
|
|
274
|
+
};
|
|
275
|
+
return sequences[taskType] || ['researcher'];
|
|
276
|
+
}
|
|
277
|
+
// Execute agent task with specific MCP tools
|
|
278
|
+
async executeAgentTask(agentId, instruction) {
|
|
279
|
+
const agent = this.activeAgents.get(agentId);
|
|
280
|
+
if (!agent) {
|
|
281
|
+
throw new Error(`Agent not found: ${agentId}`);
|
|
282
|
+
}
|
|
283
|
+
agent.status = 'working';
|
|
284
|
+
try {
|
|
285
|
+
// Get agent blueprint for MCP tool selection
|
|
286
|
+
const blueprint = this.agentBlueprints.get(agent.type);
|
|
287
|
+
if (!blueprint) {
|
|
288
|
+
throw new Error(`No blueprint for agent type: ${agent.type}`);
|
|
289
|
+
}
|
|
290
|
+
// Execute with appropriate MCP tools based on agent type
|
|
291
|
+
const result = await this.executeWithMcpTools(agent, instruction, blueprint.mcpTools);
|
|
292
|
+
agent.status = 'completed';
|
|
293
|
+
return result;
|
|
294
|
+
}
|
|
295
|
+
catch (error) {
|
|
296
|
+
agent.status = 'failed';
|
|
297
|
+
throw error;
|
|
298
|
+
}
|
|
299
|
+
}
|
|
300
|
+
async executeWithMcpTools(agent, instruction, mcpTools) {
|
|
301
|
+
// This is where the agent would use specific MCP tools
|
|
302
|
+
// The Queen will orchestrate the actual MCP calls based on agent recommendations
|
|
303
|
+
return {
|
|
304
|
+
agentId: agent.id,
|
|
305
|
+
agentType: agent.type,
|
|
306
|
+
instruction,
|
|
307
|
+
recommendedMcpTools: mcpTools,
|
|
308
|
+
executionPlan: this.generateExecutionPlan(agent.type, instruction)
|
|
309
|
+
};
|
|
310
|
+
}
|
|
311
|
+
generateExecutionPlan(agentType, instruction) {
|
|
312
|
+
const plans = {
|
|
313
|
+
'widget-creator': (instr) => [
|
|
314
|
+
'DEEP ANALYZE: What is the core business problem this widget solves? What user pain points?',
|
|
315
|
+
'HOLISTIC VIEW: How does this widget fit into the broader ServiceNow ecosystem and user journey?',
|
|
316
|
+
'STRATEGIC QUESTIONS: What are the potential edge cases, scalability concerns, and integration points?',
|
|
317
|
+
'RISK ASSESSMENT: What could go wrong? What are the dependency risks and failure modes?',
|
|
318
|
+
'SOLUTION ARCHITECTURE: Design widget with proper structure, considering performance and maintainability',
|
|
319
|
+
'IMPLEMENTATION: Create HTML template with accessibility, responsiveness, and user experience in mind',
|
|
320
|
+
'ROBUST DEVELOPMENT: Implement client/server scripts with error handling, validation, and edge case coverage',
|
|
321
|
+
'DEPLOYMENT STRATEGY: Deploy using snow_deploy with rollback plan and monitoring',
|
|
322
|
+
'COMPREHENSIVE TESTING: Test functionality, performance, cross-browser compatibility, and user scenarios',
|
|
323
|
+
'REFLECTION: What lessons learned? How can this approach be improved for future widgets?'
|
|
324
|
+
],
|
|
325
|
+
'flow-builder': (instr) => [
|
|
326
|
+
'PROCESS INTELLIGENCE: What is the complete end-to-end business process? Who are all stakeholders?',
|
|
327
|
+
'ROOT CAUSE ANALYSIS: Why does this process need automation? What inefficiencies exist?',
|
|
328
|
+
'ECOSYSTEM MAPPING: How does this flow integrate with existing workflows, approvals, and systems?',
|
|
329
|
+
'FAILURE MODE ANALYSIS: What can go wrong at each step? How do we handle exceptions and edge cases?',
|
|
330
|
+
'STRATEGIC DESIGN: Design flow structure considering scalability, maintainability, and user experience',
|
|
331
|
+
'IMPLEMENTATION: Create flow using best practices, proper error handling, and clear logic paths',
|
|
332
|
+
'INTEGRATION STRATEGY: Configure triggers, conditions, and integrate with catalog/notifications as needed',
|
|
333
|
+
'COMPREHENSIVE TESTING: Test with real data scenarios, edge cases, and failure conditions',
|
|
334
|
+
'PROCESS OPTIMIZATION: Identify improvement opportunities and performance optimizations'
|
|
335
|
+
],
|
|
336
|
+
'script-writer': (instr) => [
|
|
337
|
+
'REQUIREMENTS DEEP DIVE: What is the exact business requirement? Why is custom code needed?',
|
|
338
|
+
'ARCHITECTURE ASSESSMENT: Should this be a business rule, script include, or something else? What\'s the optimal approach?',
|
|
339
|
+
'DEPENDENCY ANALYSIS: What other systems, tables, or processes will this impact? What are the risks?',
|
|
340
|
+
'ERROR SCENARIO PLANNING: What can go wrong? How do we handle failures gracefully?',
|
|
341
|
+
'SOLUTION DESIGN: Design script with proper error handling, logging, and performance considerations',
|
|
342
|
+
'ROBUST IMPLEMENTATION: Implement with ES5 compatibility, proper validation, and edge case handling',
|
|
343
|
+
'DEPLOYMENT STRATEGY: Deploy using appropriate MCP tool with testing and rollback plan',
|
|
344
|
+
'VALIDATION & MONITORING: Validate functionality and establish monitoring for ongoing health'
|
|
345
|
+
],
|
|
346
|
+
'catalog-manager': (instr) => [
|
|
347
|
+
'BUSINESS CONTEXT ANALYSIS: What business need does this catalog item fulfill? Who are the end users?',
|
|
348
|
+
'EXISTING SOLUTION AUDIT: Search for existing catalog items - can we reuse or improve existing?',
|
|
349
|
+
'USER EXPERIENCE DESIGN: What is the optimal user journey from request to fulfillment?',
|
|
350
|
+
'INTEGRATION COMPLEXITY: What backend systems need integration? What are the failure points?',
|
|
351
|
+
'FULFILLMENT STRATEGY: Design efficient fulfillment process with proper approvals and notifications',
|
|
352
|
+
'SOLUTION ARCHITECTURE: Create catalog item with optimal variables, validations, and user guidance',
|
|
353
|
+
'PROCESS IMPLEMENTATION: Implement fulfillment workflow with error handling and monitoring',
|
|
354
|
+
'END-TO-END TESTING: Test complete request flow including approvals, fulfillment, and notifications',
|
|
355
|
+
'CONTINUOUS IMPROVEMENT: Establish feedback mechanisms and optimization opportunities'
|
|
356
|
+
],
|
|
357
|
+
'researcher': (instr) => [
|
|
358
|
+
'COMPREHENSIVE DISCOVERY: Search ALL existing artifacts and solutions - what already exists?',
|
|
359
|
+
'PATTERN RECOGNITION: What patterns exist in similar implementations? What can we learn?',
|
|
360
|
+
'GAP ANALYSIS: What gaps exist between current state and desired outcome?',
|
|
361
|
+
'RISK & CONSTRAINT MAPPING: What technical, business, and regulatory constraints must we consider?',
|
|
362
|
+
'STAKEHOLDER IMPACT: Who will be affected by this change? What are their concerns?',
|
|
363
|
+
'SOLUTION OPTIONS: Generate multiple solution approaches with pros/cons analysis',
|
|
364
|
+
'RECOMMENDATION SYNTHESIS: Provide strategic recommendations with rationale and risk assessment',
|
|
365
|
+
'IMPLEMENTATION ROADMAP: Suggest phased implementation approach with milestones and success criteria'
|
|
366
|
+
],
|
|
367
|
+
'tester': (instr) => [
|
|
368
|
+
'TESTING STRATEGY: What are ALL the ways this solution could fail? What are the critical user paths?',
|
|
369
|
+
'RISK-BASED APPROACH: What are the highest risk areas that need thorough testing?',
|
|
370
|
+
'REAL-WORLD SCENARIOS: Design test scenarios based on actual user behavior, not just happy paths',
|
|
371
|
+
'DATA STRATEGY: Generate realistic test data that covers edge cases and boundary conditions',
|
|
372
|
+
'COMPREHENSIVE EXECUTION: Execute tests covering functionality, performance, security, and integration points',
|
|
373
|
+
'FAILURE ANALYSIS: When tests fail, dig deep - is it the test, the requirement, or the implementation?',
|
|
374
|
+
'REGRESSION IMPACT: How do changes affect existing functionality? What regression tests are needed?',
|
|
375
|
+
'QUALITY METRICS: Establish clear quality gates and success criteria for release readiness',
|
|
376
|
+
'CLEANUP & DOCUMENTATION: Clean up test artifacts and document test results for future reference'
|
|
377
|
+
],
|
|
378
|
+
// Enhanced strategic plans for other agent types
|
|
379
|
+
'app-architect': (instr) => [
|
|
380
|
+
'BUSINESS ARCHITECTURE: What business capabilities does this app enable? How does it fit the enterprise strategy?',
|
|
381
|
+
'TECHNICAL ARCHITECTURE: Design scalable, maintainable system structure with proper separation of concerns',
|
|
382
|
+
'INTEGRATION LANDSCAPE: Map all integration points, data flows, and system dependencies',
|
|
383
|
+
'RISK MITIGATION: Identify architectural risks and design mitigation strategies',
|
|
384
|
+
'DEPLOYMENT STRATEGY: Create phased deployment plan with rollback capabilities and monitoring'
|
|
385
|
+
],
|
|
386
|
+
'integration-specialist': (instr) => [
|
|
387
|
+
'INTEGRATION ECOSYSTEM: Map ALL systems involved - what talks to what? What are the data flows?',
|
|
388
|
+
'FAILURE MODE ANALYSIS: What happens when integrations fail? How do we ensure data consistency?',
|
|
389
|
+
'PERFORMANCE IMPACT: How will this integration affect system performance? What are the bottlenecks?',
|
|
390
|
+
'SECURITY CONSIDERATIONS: What are the security implications? How do we secure data in transit?',
|
|
391
|
+
'MONITORING STRATEGY: How do we monitor integration health and detect issues proactively?'
|
|
392
|
+
],
|
|
393
|
+
'ui-ux-specialist': (instr) => [
|
|
394
|
+
'USER JOURNEY MAPPING: What is the complete user experience from start to finish?',
|
|
395
|
+
'ACCESSIBILITY FIRST: Design for ALL users including those with disabilities',
|
|
396
|
+
'PERFORMANCE UX: How do loading times and performance affect user experience?',
|
|
397
|
+
'MOBILE RESPONSIVENESS: Ensure optimal experience across all devices and screen sizes',
|
|
398
|
+
'USABILITY VALIDATION: Test with real users to validate design decisions and identify pain points'
|
|
399
|
+
],
|
|
400
|
+
'approval-specialist': (instr) => [
|
|
401
|
+
'APPROVAL ECOSYSTEM: Who needs to approve what? What are the business rules and exceptions?',
|
|
402
|
+
'DELEGATION PATTERNS: How do approvals work when people are unavailable? What are escalation paths?',
|
|
403
|
+
'COMPLIANCE REQUIREMENTS: What regulatory or policy requirements must the approval process meet?',
|
|
404
|
+
'AUDIT TRAIL: How do we maintain complete audit trail for compliance and troubleshooting?',
|
|
405
|
+
'EXCEPTION HANDLING: What happens when approval processes break down or need emergency overrides?'
|
|
406
|
+
],
|
|
407
|
+
'security-specialist': (instr) => [
|
|
408
|
+
'THREAT MODELING: What are ALL the ways this solution could be compromised or misused?',
|
|
409
|
+
'DATA PROTECTION: How do we protect sensitive data throughout its lifecycle?',
|
|
410
|
+
'ACCESS CONTROLS: Who should have access to what? How do we enforce least privilege?',
|
|
411
|
+
'COMPLIANCE ALIGNMENT: Does this solution meet all regulatory and policy requirements?',
|
|
412
|
+
'INCIDENT RESPONSE: How do we detect, respond to, and recover from security incidents?'
|
|
413
|
+
],
|
|
414
|
+
'css-specialist': (instr) => [
|
|
415
|
+
'DESIGN SYSTEM ALIGNMENT: How does this CSS fit into the broader design system and brand guidelines?',
|
|
416
|
+
'RESPONSIVE STRATEGY: Ensure optimal display across all devices, screen sizes, and orientations',
|
|
417
|
+
'PERFORMANCE OPTIMIZATION: Minimize CSS footprint while maintaining visual quality',
|
|
418
|
+
'ACCESSIBILITY COMPLIANCE: Ensure styles support screen readers and accessibility requirements',
|
|
419
|
+
'MAINTAINABILITY: Structure CSS for easy maintenance and future modifications'
|
|
420
|
+
],
|
|
421
|
+
'backend-specialist': (instr) => [
|
|
422
|
+
'DATA ARCHITECTURE: How should data be structured, stored, and accessed for optimal performance?',
|
|
423
|
+
'API DESIGN: Create robust APIs with proper error handling, validation, and documentation',
|
|
424
|
+
'SCALABILITY PLANNING: How will this backend handle increased load and data growth?',
|
|
425
|
+
'SECURITY HARDENING: Implement proper authentication, authorization, and data protection',
|
|
426
|
+
'MONITORING & LOGGING: Establish comprehensive logging and monitoring for operational health'
|
|
427
|
+
],
|
|
428
|
+
'frontend-specialist': (instr) => [
|
|
429
|
+
'USER EXPERIENCE OPTIMIZATION: Create intuitive, efficient interfaces that users love to use',
|
|
430
|
+
'PERFORMANCE FIRST: Optimize loading times, responsiveness, and smooth interactions',
|
|
431
|
+
'CROSS-BROWSER COMPATIBILITY: Ensure consistent experience across all browsers and versions',
|
|
432
|
+
'PROGRESSIVE ENHANCEMENT: Build robust solutions that work even when things go wrong',
|
|
433
|
+
'ACCESSIBILITY COMPLIANCE: Make interfaces usable by everyone, including assistive technologies'
|
|
434
|
+
],
|
|
435
|
+
'performance-specialist': (instr) => [
|
|
436
|
+
'PERFORMANCE BASELINE: Establish current performance metrics and identify bottlenecks',
|
|
437
|
+
'HOLISTIC OPTIMIZATION: Look at database, network, client-side, and server-side performance',
|
|
438
|
+
'SCALABILITY ANALYSIS: How will performance change as data and users grow?',
|
|
439
|
+
'MONITORING STRATEGY: Implement continuous performance monitoring and alerting',
|
|
440
|
+
'OPTIMIZATION VALIDATION: Measure and validate that optimizations actually improve performance'
|
|
441
|
+
],
|
|
442
|
+
'page-designer': (instr) => [
|
|
443
|
+
'USER JOURNEY ANALYSIS: What is the user trying to accomplish on this page? What is their context and mindset?',
|
|
444
|
+
'INFORMATION ARCHITECTURE: How should information be organized and prioritized for optimal user flow?',
|
|
445
|
+
'PORTAL ECOSYSTEM: How does this page fit into the broader portal navigation and user experience?',
|
|
446
|
+
'RESPONSIVE DESIGN STRATEGY: Ensure optimal experience across desktop, tablet, and mobile devices',
|
|
447
|
+
'ACCESSIBILITY COMPLIANCE: Design for all users including screen readers and keyboard navigation',
|
|
448
|
+
'PERFORMANCE OPTIMIZATION: Balance visual appeal with fast loading times and smooth interactions',
|
|
449
|
+
'CONTENT STRATEGY: Place widgets and content strategically based on user priorities and business goals',
|
|
450
|
+
'NAVIGATION INTEGRATION: Ensure clear navigation paths and consistent user experience',
|
|
451
|
+
'CROSS-BROWSER TESTING: Validate consistent experience across all browsers and device types',
|
|
452
|
+
'USABILITY VALIDATION: Test with real users to ensure the page meets their needs effectively'
|
|
453
|
+
],
|
|
454
|
+
'workspace-specialist': (instr) => [
|
|
455
|
+
'WORKSPACE REQUIREMENTS: Analyze workspace needs and user workflows',
|
|
456
|
+
'UX FRAMEWORK DESIGN: Plan Now Experience Framework architecture',
|
|
457
|
+
'COMPONENT DESIGN: Design workspace components and data integration',
|
|
458
|
+
'IMPLEMENTATION: Create workspace using appropriate MCP tools',
|
|
459
|
+
'VALIDATION: Test workspace functionality and user experience'
|
|
460
|
+
],
|
|
461
|
+
'ui-builder-expert': (instr) => [
|
|
462
|
+
'UI BUILDER ANALYSIS: Determine required UI Builder components',
|
|
463
|
+
'PAGE DESIGN: Design page layout and component structure',
|
|
464
|
+
'DATA INTEGRATION: Configure data brokers and connections',
|
|
465
|
+
'IMPLEMENTATION: Create UI Builder pages with proper configuration',
|
|
466
|
+
'TESTING: Validate functionality and user experience'
|
|
467
|
+
],
|
|
468
|
+
'deployment-specialist': (instr) => [
|
|
469
|
+
'DEPLOYMENT PLANNING: Analyze artifacts and plan deployment',
|
|
470
|
+
'DEPENDENCY CHECK: Verify all prerequisites and dependencies',
|
|
471
|
+
'DEPLOYMENT EXECUTION: Execute deployment using MCP tools',
|
|
472
|
+
'VALIDATION: Test deployed artifacts thoroughly',
|
|
473
|
+
'MONITORING: Ensure deployment success and establish monitoring'
|
|
474
|
+
]
|
|
475
|
+
};
|
|
476
|
+
return plans[agentType]?.(instruction) || [
|
|
477
|
+
'STRATEGIC ANALYSIS: What is the core objective and how does it fit the bigger picture?',
|
|
478
|
+
'STAKEHOLDER MAPPING: Who is affected and what are their needs and constraints?',
|
|
479
|
+
'SOLUTION ARCHITECTURE: Design approach considering scalability, maintainability, and risk',
|
|
480
|
+
'IMPLEMENTATION STRATEGY: Execute with proper error handling, validation, and monitoring',
|
|
481
|
+
'VALIDATION & OPTIMIZATION: Test thoroughly and optimize based on real-world performance'
|
|
482
|
+
];
|
|
483
|
+
}
|
|
484
|
+
// Send message between agents
|
|
485
|
+
sendAgentMessage(from, to, type, content) {
|
|
486
|
+
const message = {
|
|
487
|
+
from,
|
|
488
|
+
to,
|
|
489
|
+
type,
|
|
490
|
+
content,
|
|
491
|
+
timestamp: new Date()
|
|
492
|
+
};
|
|
493
|
+
this.messageQueue.push(message);
|
|
494
|
+
// Store coordination pattern for learning
|
|
495
|
+
this.memory.storeLearning(`agent_coordination_${from}_${to}`, `Message of type ${type}`, 0.7);
|
|
496
|
+
}
|
|
497
|
+
// Get pending messages for agent
|
|
498
|
+
getAgentMessages(agentId) {
|
|
499
|
+
return this.messageQueue.filter(msg => msg.to === agentId);
|
|
500
|
+
}
|
|
501
|
+
// Mark agent messages as processed
|
|
502
|
+
markMessagesProcessed(agentId) {
|
|
503
|
+
this.messageQueue = this.messageQueue.filter(msg => msg.to !== agentId);
|
|
504
|
+
}
|
|
505
|
+
// Get agent status
|
|
506
|
+
getAgentStatus(agentId) {
|
|
507
|
+
return this.activeAgents.get(agentId) || null;
|
|
508
|
+
}
|
|
509
|
+
// Terminate agent
|
|
510
|
+
terminateAgent(agentId) {
|
|
511
|
+
const agent = this.activeAgents.get(agentId);
|
|
512
|
+
if (agent) {
|
|
513
|
+
// Store agent performance data for learning
|
|
514
|
+
this.memory.storeLearning(`agent_performance_${agent.type}`, `Agent ${agentId} terminated with status: ${agent.status}`, agent.status === 'completed' ? 0.9 : 0.3);
|
|
515
|
+
this.activeAgents.delete(agentId);
|
|
516
|
+
}
|
|
517
|
+
}
|
|
518
|
+
// Get all active agents
|
|
519
|
+
getActiveAgents() {
|
|
520
|
+
return Array.from(this.activeAgents.values());
|
|
521
|
+
}
|
|
522
|
+
// Clean up completed agents
|
|
523
|
+
cleanupCompletedAgents() {
|
|
524
|
+
let cleaned = 0;
|
|
525
|
+
for (const [id, agent] of Array.from(this.activeAgents.entries())) {
|
|
526
|
+
if (agent.status === 'completed' || agent.status === 'failed') {
|
|
527
|
+
this.terminateAgent(id);
|
|
528
|
+
cleaned++;
|
|
529
|
+
}
|
|
530
|
+
}
|
|
531
|
+
return cleaned;
|
|
532
|
+
}
|
|
533
|
+
generateAgentId(type) {
|
|
534
|
+
const timestamp = Date.now().toString(36);
|
|
535
|
+
const random = crypto.randomBytes(4).toString('hex');
|
|
536
|
+
return `${type}_${timestamp}_${random}`;
|
|
537
|
+
}
|
|
538
|
+
// Get agent blueprint for inspection
|
|
539
|
+
getAgentBlueprint(type) {
|
|
540
|
+
return this.agentBlueprints.get(type) || null;
|
|
541
|
+
}
|
|
542
|
+
// Get factory statistics
|
|
543
|
+
getStatistics() {
|
|
544
|
+
const agentTypeCounts = {};
|
|
545
|
+
const agentStatusCounts = {};
|
|
546
|
+
for (const agent of Array.from(this.activeAgents.values())) {
|
|
547
|
+
agentTypeCounts[agent.type] = (agentTypeCounts[agent.type] || 0) + 1;
|
|
548
|
+
agentStatusCounts[agent.status] = (agentStatusCounts[agent.status] || 0) + 1;
|
|
549
|
+
}
|
|
550
|
+
return {
|
|
551
|
+
totalActiveAgents: this.activeAgents.size,
|
|
552
|
+
agentTypeCounts,
|
|
553
|
+
agentStatusCounts,
|
|
554
|
+
pendingMessages: this.messageQueue.length,
|
|
555
|
+
availableAgentTypes: Array.from(this.agentBlueprints.keys())
|
|
556
|
+
};
|
|
557
|
+
}
|
|
558
|
+
// Create dynamic agent instance (no concrete classes needed)
|
|
559
|
+
async createDynamicAgent(type, taskId) {
|
|
560
|
+
try {
|
|
561
|
+
// Get the agent blueprint
|
|
562
|
+
const blueprint = this.agentBlueprints.get(type);
|
|
563
|
+
if (!blueprint) {
|
|
564
|
+
console.log(`Creating new dynamic agent type: ${type}`);
|
|
565
|
+
// Create agent dynamically without a concrete class
|
|
566
|
+
const dynamicBlueprint = this.createDynamicBlueprint(type);
|
|
567
|
+
this.agentBlueprints.set(type, dynamicBlueprint);
|
|
568
|
+
}
|
|
569
|
+
// Create dynamic agent representation
|
|
570
|
+
const agentId = this.generateAgentId(type);
|
|
571
|
+
const dynamicAgent = {
|
|
572
|
+
id: agentId,
|
|
573
|
+
type: type,
|
|
574
|
+
status: 'idle',
|
|
575
|
+
capabilities: blueprint?.capabilities || [],
|
|
576
|
+
mcpTools: blueprint?.mcpTools || [],
|
|
577
|
+
task: taskId
|
|
578
|
+
};
|
|
579
|
+
// Track in active agents
|
|
580
|
+
this.activeAgents.set(agentId, dynamicAgent);
|
|
581
|
+
// Store creation in memory
|
|
582
|
+
this.memory.storeLearning(`dynamic_agent_spawn_${type}`, `Created dynamic ${type} agent for task: ${taskId || 'general'}`, 0.9);
|
|
583
|
+
return dynamicAgent;
|
|
584
|
+
}
|
|
585
|
+
catch (error) {
|
|
586
|
+
console.error(`Failed to create dynamic agent ${type}:`, error);
|
|
587
|
+
return null;
|
|
588
|
+
}
|
|
589
|
+
}
|
|
590
|
+
// Create dynamic blueprint for new agent types
|
|
591
|
+
createDynamicBlueprint(type) {
|
|
592
|
+
// Generate capabilities based on agent type name
|
|
593
|
+
const capabilities = this.inferCapabilitiesFromType(type);
|
|
594
|
+
const mcpTools = this.inferMCPToolsFromType(type);
|
|
595
|
+
return {
|
|
596
|
+
type,
|
|
597
|
+
capabilities,
|
|
598
|
+
mcpTools,
|
|
599
|
+
personality: `Dynamic ${type} specialist`,
|
|
600
|
+
coordination: 'collaborative'
|
|
601
|
+
};
|
|
602
|
+
}
|
|
603
|
+
// Infer capabilities from agent type name
|
|
604
|
+
inferCapabilitiesFromType(type) {
|
|
605
|
+
const capabilities = [];
|
|
606
|
+
// Common patterns
|
|
607
|
+
if (type.includes('architect'))
|
|
608
|
+
capabilities.push('design', 'architecture', 'planning');
|
|
609
|
+
if (type.includes('developer'))
|
|
610
|
+
capabilities.push('coding', 'implementation', 'debugging');
|
|
611
|
+
if (type.includes('specialist'))
|
|
612
|
+
capabilities.push('expertise', 'analysis', 'optimization');
|
|
613
|
+
if (type.includes('engineer'))
|
|
614
|
+
capabilities.push('engineering', 'building', 'testing');
|
|
615
|
+
if (type.includes('analyst'))
|
|
616
|
+
capabilities.push('analysis', 'reporting', 'insights');
|
|
617
|
+
return capabilities.length > 0 ? capabilities : ['general-purpose'];
|
|
618
|
+
}
|
|
619
|
+
// Infer MCP tools from agent type
|
|
620
|
+
inferMCPToolsFromType(type) {
|
|
621
|
+
const tools = [];
|
|
622
|
+
// Common tool patterns
|
|
623
|
+
if (type.includes('widget'))
|
|
624
|
+
tools.push('snow_deploy', 'snow_preview_widget');
|
|
625
|
+
if (type.includes('ml'))
|
|
626
|
+
tools.push('snow_ml_train', 'snow_ml_predict');
|
|
627
|
+
if (type.includes('security'))
|
|
628
|
+
tools.push('snow_security_scan', 'snow_create_access_control');
|
|
629
|
+
return tools.length > 0 ? tools : ['snow_deploy'];
|
|
630
|
+
}
|
|
631
|
+
// Execute task with specialized agent
|
|
632
|
+
async executeWithSpecializedAgent(type, instruction, context) {
|
|
633
|
+
const agent = await this.createDynamicAgent(type);
|
|
634
|
+
if (!agent) {
|
|
635
|
+
throw new Error(`Failed to create specialized agent of type ${type}`);
|
|
636
|
+
}
|
|
637
|
+
try {
|
|
638
|
+
// Dynamic execution via MCP tools or direct operation
|
|
639
|
+
const result = {
|
|
640
|
+
success: true,
|
|
641
|
+
message: `Dynamic ${type} agent executed: ${instruction}`,
|
|
642
|
+
data: context
|
|
643
|
+
};
|
|
644
|
+
// Store execution result in memory
|
|
645
|
+
this.memory.storeLearning(`specialized_execution_${type}`, JSON.stringify({
|
|
646
|
+
instruction,
|
|
647
|
+
success: result.success,
|
|
648
|
+
timestamp: new Date()
|
|
649
|
+
}), result.success ? 0.9 : 0.3);
|
|
650
|
+
return result;
|
|
651
|
+
}
|
|
652
|
+
finally {
|
|
653
|
+
// Clean up agent from tracking
|
|
654
|
+
this.terminateAgent(agent.id);
|
|
655
|
+
}
|
|
656
|
+
}
|
|
657
|
+
}
|
|
658
|
+
exports.AgentFactory = AgentFactory;
|
|
659
|
+
//# sourceMappingURL=agent-factory.js.map
|