snow-flow 3.4.36 → 3.5.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.
Files changed (72) hide show
  1. package/README.md +414 -287
  2. package/dist/cli/deploy-artifact.js +2 -2
  3. package/dist/index.d.ts +4 -0
  4. package/dist/index.js +10 -2
  5. package/dist/mcp/enhancements/smart-query-enhancement.d.ts +49 -0
  6. package/dist/mcp/enhancements/smart-query-enhancement.js +233 -0
  7. package/dist/mcp/servicenow-deployment-mcp.js +1 -1
  8. package/dist/mcp/servicenow-local-development-mcp.d.ts +48 -0
  9. package/dist/mcp/servicenow-local-development-mcp.js +570 -0
  10. package/dist/mcp/servicenow-mcp-server.js +2 -2
  11. package/dist/queen/agent-factory.js +134 -52
  12. package/dist/queen/queen-knowledge-base.d.ts +151 -0
  13. package/dist/queen/queen-knowledge-base.js +283 -0
  14. package/dist/queen/servicenow-queen.d.ts +129 -2
  15. package/dist/queen/servicenow-queen.js +1069 -618
  16. package/dist/services/widget-deployment-service.d.ts +1 -1
  17. package/dist/services/widget-deployment-service.js +1 -1
  18. package/dist/templates/claude-md-template.d.ts +1 -1
  19. package/dist/templates/claude-md-template.js +2 -2
  20. package/dist/types/servicenow.types.d.ts +1 -1
  21. package/dist/utils/artifact-local-sync.d.ts +115 -0
  22. package/dist/utils/artifact-local-sync.js +705 -0
  23. package/dist/utils/artifact-sync/artifact-registry.d.ts +66 -0
  24. package/dist/utils/artifact-sync/artifact-registry.js +450 -0
  25. package/dist/utils/artifact-sync/index.d.ts +33 -0
  26. package/dist/utils/artifact-sync/index.js +52 -0
  27. package/dist/utils/dependency-detector.d.ts +1 -1
  28. package/dist/utils/dependency-detector.js +1 -1
  29. package/dist/utils/mcp-tool-registry.js +109 -0
  30. package/dist/utils/servicenow-client.d.ts +1 -1
  31. package/dist/utils/servicenow-client.js +4 -8
  32. package/dist/utils/smart-field-fetcher.d.ts +68 -0
  33. package/dist/utils/smart-field-fetcher.js +395 -0
  34. package/package.json +2 -2
  35. package/website/.dockerignore +64 -0
  36. package/website/Dockerfile +36 -0
  37. package/website/README.md +40 -1
  38. package/website/cloudbuild.yaml +69 -0
  39. package/website/components/README.md +419 -0
  40. package/website/components/code-display/CodeDisplay.css +583 -0
  41. package/website/components/code-display/CodeDisplay.html +200 -0
  42. package/website/components/code-display/CodeDisplay.js +375 -0
  43. package/website/components/code-display/CodeDisplay.jsx +268 -0
  44. package/website/components/demo/ComponentLibraryDemo.html +845 -0
  45. package/website/components/feature-cards/FeatureCards.css +573 -0
  46. package/website/components/feature-cards/FeatureCards.html +247 -0
  47. package/website/components/feature-cards/FeatureCards.js +382 -0
  48. package/website/components/feature-cards/FeatureCards.jsx +235 -0
  49. package/website/components/hero/Hero.css +558 -0
  50. package/website/components/hero/Hero.html +98 -0
  51. package/website/components/hero/Hero.js +415 -0
  52. package/website/components/hero/Hero.jsx +214 -0
  53. package/website/components/interactive/InteractiveElements.css +776 -0
  54. package/website/components/interactive/InteractiveElements.html +283 -0
  55. package/website/components/interactive/InteractiveElements.js +489 -0
  56. package/website/components/interactive/InteractiveElements.jsx +444 -0
  57. package/website/components/layout/LayoutComponents.css +697 -0
  58. package/website/components/layout/LayoutComponents.html +374 -0
  59. package/website/components/layout/LayoutComponents.js +447 -0
  60. package/website/components/layout/LayoutComponents.jsx +379 -0
  61. package/website/components/navigation/Navigation.css +383 -0
  62. package/website/components/navigation/Navigation.html +89 -0
  63. package/website/components/navigation/Navigation.js +248 -0
  64. package/website/components/navigation/Navigation.jsx +124 -0
  65. package/website/css/animations.css +854 -0
  66. package/website/css/style.css +1010 -924
  67. package/website/index.html +728 -412
  68. package/website/js/animations.js +707 -0
  69. package/website/js/main.js +333 -381
  70. package/website/mcp-servers.html +310 -0
  71. package/website/nginx.conf +116 -0
  72. package/website/service.yaml +61 -0
@@ -2,6 +2,7 @@
2
2
  * ServiceNow Queen Agent
3
3
  * Central coordination point for the ServiceNow hive-mind
4
4
  */
5
+ import { ServiceNowTask } from './types';
5
6
  export interface QueenConfig {
6
7
  memoryPath?: string;
7
8
  maxConcurrentAgents?: number;
@@ -19,9 +20,135 @@ export declare class ServiceNowQueen {
19
20
  private logger;
20
21
  constructor(config?: QueenConfig);
21
22
  /**
22
- * Main entry point: Execute ServiceNow objective with MCP-FIRST workflow
23
+ * Main entry point: Execute ServiceNow objective with STRATEGIC ORCHESTRATION
24
+ *
25
+ * This is where the Queen Agent demonstrates true helicopter-view thinking:
26
+ * - Deep problem analysis beyond surface requirements
27
+ * - Strategic risk assessment and mitigation planning
28
+ * - Holistic solution architecture considering all stakeholders
29
+ * - Proactive bottleneck identification and resolution
30
+ * - Comprehensive orchestration of specialized agents
23
31
  */
24
32
  executeObjective(objective: string): Promise<any>;
25
- catch(error: any): void;
33
+ private spawnOptimalSwarm;
34
+ private coordinateExecution;
35
+ private shouldExecuteInParallel;
36
+ private executeAgentsInParallel;
37
+ private executeAgentsSequentially;
38
+ private facilitateAgentCoordination;
39
+ private executeFinalDeployment;
40
+ private createDeploymentPlan;
41
+ private extractWidgetConfig;
42
+ private extractScriptConfig;
43
+ private generateArtifactName;
44
+ private generateArtifactTitle;
45
+ private generateWidgetTemplate;
46
+ private generateWidgetCss;
47
+ private generateClientScript;
48
+ private generateServerScript;
49
+ private generateDemoData;
50
+ private generateScriptCode;
51
+ private executeDeploymentPlan;
52
+ private getServerForTool;
53
+ private handleWidgetDependencies;
54
+ private attemptRecovery;
55
+ private learnFromExecution;
56
+ private handleExecutionFailure;
57
+ private cleanupTask;
58
+ private generateTaskId;
59
+ getActiveTaskCount(): number;
60
+ getTaskStatus(taskId: string): ServiceNowTask | null;
61
+ /**
62
+ * Get gap _analysis results for a task
63
+ */
64
+ getGapAnalysisResults(taskId: string): any | null;
65
+ /**
66
+ * Get all manual guides from gap _analysis for a task
67
+ */
68
+ getManualConfigurationGuides(taskId: string): any;
69
+ getHiveMindStatus(): any;
70
+ exportMemory(): string;
71
+ importMemory(memoryData: string): void;
72
+ clearMemory(): void;
73
+ getLearningInsights(): any;
74
+ shutdown(): Promise<void>;
75
+ /**
76
+ * STRATEGIC ORCHESTRATION METHODS
77
+ * These methods implement the Queen Agent's strategic thinking capabilities
78
+ */
79
+ /**
80
+ * Perform deep problem analysis to understand what user ACTUALLY needs
81
+ */
82
+ private performDeepProblemAnalysis;
83
+ /**
84
+ * Perform comprehensive risk assessment
85
+ */
86
+ private performRiskAssessment;
87
+ /**
88
+ * Extract the core business problem from user request
89
+ */
90
+ private getTableForType;
91
+ private extractSysIdFromObjective;
92
+ private extractCoreProblem;
93
+ /**
94
+ * Assess objective complexity
95
+ */
96
+ private assessObjectiveComplexity;
97
+ /**
98
+ * Assess business impact
99
+ */
100
+ private assessBusinessImpact;
101
+ /**
102
+ * Identify stakeholders affected by the change
103
+ */
104
+ private identifyStakeholders;
105
+ /**
106
+ * Identify hidden requirements not explicitly stated
107
+ */
108
+ private identifyHiddenRequirements;
109
+ /**
110
+ * Define clear success criteria
111
+ */
112
+ private defineSuccessCriteria;
113
+ /**
114
+ * Identify technical risks
115
+ */
116
+ private identifyTechnicalRisks;
117
+ /**
118
+ * Identify business risks
119
+ */
120
+ private identifyBusinessRisks;
121
+ /**
122
+ * Identify operational risks
123
+ */
124
+ private identifyOperationalRisks;
125
+ /**
126
+ * Identify compliance risks
127
+ */
128
+ private identifyComplianceRisks;
129
+ /**
130
+ * Calculate overall risk level
131
+ */
132
+ private calculateOverallRisk;
133
+ /**
134
+ * Develop mitigation strategies for critical risks
135
+ */
136
+ private developMitigationStrategies;
137
+ /**
138
+ * Design solution architecture based on strategic analysis
139
+ */
140
+ private designSolutionArchitecture;
141
+ /**
142
+ * Generate implementation steps based on approach
143
+ */
144
+ private generateImplementationSteps;
145
+ /**
146
+ * Define quality gates based on analysis
147
+ */
148
+ private defineQualityGates;
149
+ /**
150
+ * Define monitoring strategy
151
+ */
152
+ private defineMonitoringStrategy;
26
153
  }
27
154
  //# sourceMappingURL=servicenow-queen.d.ts.map