snow-flow 3.0.9 → 3.0.10

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 (294) hide show
  1. package/claude-flow.bat +0 -0
  2. package/claude-flow.ps1 +0 -0
  3. package/dist/mcp/servicenow-automation-mcp.js +0 -0
  4. package/dist/mcp/servicenow-deployment-mcp.js +0 -0
  5. package/dist/mcp/servicenow-integration-mcp.js +0 -0
  6. package/dist/mcp/servicenow-mcp-server.js +0 -0
  7. package/dist/mcp/servicenow-operations-mcp.js +0 -0
  8. package/dist/mcp/servicenow-platform-development-mcp.js +0 -0
  9. package/dist/mcp/servicenow-progressive-indexer.js +0 -0
  10. package/dist/mcp/servicenow-reporting-analytics-mcp.js +133 -19
  11. package/dist/mcp/servicenow-security-compliance-mcp.js +0 -0
  12. package/dist/mcp/servicenow-update-set-mcp.js +0 -0
  13. package/dist/mcp/start-all-mcp-servers.js +0 -0
  14. package/dist/mcp/start-servicenow-mcp.js +0 -0
  15. package/memory/agents/README.md +1 -1
  16. package/memory/claude-flow-data.json +1 -1
  17. package/memory/sessions/README.md +1 -1
  18. package/package.json +2 -2
  19. package/.mcp.json +0 -22
  20. package/claude-flow.config.json +0 -20
  21. package/dist/agents/app-creator.agent.d.ts +0 -55
  22. package/dist/agents/app-creator.agent.js +0 -1292
  23. package/dist/agents/base/base-snow-agent.d.ts +0 -75
  24. package/dist/agents/base/base-snow-agent.js +0 -169
  25. package/dist/agents/base-snow-agent.d.ts +0 -63
  26. package/dist/agents/base-snow-agent.js +0 -296
  27. package/dist/agents/coordinator.d.ts +0 -200
  28. package/dist/agents/coordinator.js +0 -777
  29. package/dist/agents/flow-builder-agent.d.ts +0 -18
  30. package/dist/agents/flow-builder-agent.js +0 -197
  31. package/dist/agents/queen-403-handler.d.ts +0 -47
  32. package/dist/agents/queen-403-handler.js +0 -175
  33. package/dist/agents/queen-agent-example.d.ts +0 -23
  34. package/dist/agents/queen-agent-example.js +0 -240
  35. package/dist/agents/queen-agent.test.d.ts +0 -6
  36. package/dist/agents/script-generator.agent.d.ts +0 -32
  37. package/dist/agents/script-generator.agent.js +0 -772
  38. package/dist/agents/script-writer-agent.d.ts +0 -22
  39. package/dist/agents/script-writer-agent.js +0 -695
  40. package/dist/agents/security-agent.d.ts +0 -23
  41. package/dist/agents/security-agent.js +0 -619
  42. package/dist/agents/specialists/automation-specialist.agent.d.ts +0 -44
  43. package/dist/agents/specialists/automation-specialist.agent.js +0 -204
  44. package/dist/agents/specialists/data-specialist.agent.d.ts +0 -165
  45. package/dist/agents/specialists/data-specialist.agent.js +0 -484
  46. package/dist/agents/specialists/integration-specialist.agent.d.ts +0 -227
  47. package/dist/agents/specialists/integration-specialist.agent.js +0 -725
  48. package/dist/agents/specialists/reporting-specialist.agent.d.ts +0 -54
  49. package/dist/agents/specialists/reporting-specialist.agent.js +0 -193
  50. package/dist/agents/specialists/security-specialist.agent.d.ts +0 -85
  51. package/dist/agents/specialists/security-specialist.agent.js +0 -309
  52. package/dist/agents/teams/adaptive/adaptive-coordinator.agent.d.ts +0 -111
  53. package/dist/agents/teams/adaptive/adaptive-coordinator.agent.js +0 -383
  54. package/dist/agents/teams/base-team.d.ts +0 -72
  55. package/dist/agents/teams/base-team.js +0 -253
  56. package/dist/agents/teams/team-types.d.ts +0 -265
  57. package/dist/agents/teams/team-types.js +0 -3
  58. package/dist/agents/teams/widget/widget-architect.agent.d.ts +0 -61
  59. package/dist/agents/teams/widget/widget-architect.agent.js +0 -436
  60. package/dist/agents/teams/widget/widget-backend.agent.d.ts +0 -74
  61. package/dist/agents/teams/widget/widget-backend.agent.js +0 -1531
  62. package/dist/agents/teams/widget/widget-frontend.agent.d.ts +0 -67
  63. package/dist/agents/teams/widget/widget-frontend.agent.js +0 -1014
  64. package/dist/agents/teams/widget/widget-platform.agent.d.ts +0 -90
  65. package/dist/agents/teams/widget/widget-platform.agent.js +0 -1190
  66. package/dist/agents/teams/widget/widget-uiux.agent.d.ts +0 -107
  67. package/dist/agents/teams/widget/widget-uiux.agent.js +0 -1033
  68. package/dist/agents/test-agent.d.ts +0 -26
  69. package/dist/agents/test-agent.js +0 -734
  70. package/dist/agents/test-agents.d.ts +0 -7
  71. package/dist/agents/test-agents.js +0 -64
  72. package/dist/agents/ui-builder.agent.d.ts +0 -50
  73. package/dist/agents/ui-builder.agent.js +0 -1539
  74. package/dist/agents/widget-builder.agent.d.ts +0 -32
  75. package/dist/agents/widget-builder.agent.js +0 -439
  76. package/dist/agents/widget-creator-agent.d.ts +0 -18
  77. package/dist/agents/widget-creator-agent.js +0 -498
  78. package/dist/agents/workflow-designer.agent.d.ts +0 -31
  79. package/dist/agents/workflow-designer.agent.js +0 -583
  80. package/dist/api/error-handling.d.ts +0 -325
  81. package/dist/api/error-handling.js +0 -1488
  82. package/dist/api/flow-designer-api.d.ts +0 -167
  83. package/dist/api/flow-designer-api.js +0 -554
  84. package/dist/api/natural-language-mapper.d.ts +0 -124
  85. package/dist/api/natural-language-mapper.js +0 -501
  86. package/dist/api/performance-optimizer.d.ts +0 -240
  87. package/dist/api/performance-optimizer.js +0 -706
  88. package/dist/api/transaction-manager.d.ts +0 -189
  89. package/dist/api/transaction-manager.js +0 -576
  90. package/dist/assembly/team-assembler.d.ts +0 -140
  91. package/dist/assembly/team-assembler.js +0 -502
  92. package/dist/benchmark-performance.d.ts +0 -41
  93. package/dist/benchmark-performance.js +0 -230
  94. package/dist/cli/snow-flow-cli-integration.d.ts +0 -30
  95. package/dist/cli/snow-flow-cli-integration.js +0 -396
  96. package/dist/coordination/coordination-engine.d.ts +0 -41
  97. package/dist/coordination/coordination-engine.js +0 -324
  98. package/dist/coordination/coordination.test.d.ts +0 -6
  99. package/dist/coordination/example.d.ts +0 -31
  100. package/dist/coordination/example.js +0 -394
  101. package/dist/coordination/execution-patterns.d.ts +0 -43
  102. package/dist/coordination/execution-patterns.js +0 -507
  103. package/dist/coordination/factory.d.ts +0 -94
  104. package/dist/coordination/factory.js +0 -433
  105. package/dist/coordination/index.d.ts +0 -71
  106. package/dist/coordination/index.js +0 -135
  107. package/dist/coordination/progress-monitor.d.ts +0 -71
  108. package/dist/coordination/progress-monitor.js +0 -505
  109. package/dist/coordination/quality-gates.d.ts +0 -124
  110. package/dist/coordination/quality-gates.js +0 -577
  111. package/dist/coordination/shared-memory.d.ts +0 -39
  112. package/dist/coordination/shared-memory.js +0 -289
  113. package/dist/coordination/task-dependencies.d.ts +0 -50
  114. package/dist/coordination/task-dependencies.js +0 -407
  115. package/dist/coordination/team-coordinator.d.ts +0 -59
  116. package/dist/coordination/team-coordinator.js +0 -550
  117. package/dist/coordination/types.d.ts +0 -152
  118. package/dist/coordination/types.js +0 -3
  119. package/dist/mcp/mcp-wrapper.d.ts +0 -8
  120. package/dist/mcp/mcp-wrapper.js +0 -77
  121. package/dist/mcp/servicenow-flow-composer-enhanced.js +0 -396
  122. package/dist/mcp/servicenow-flow-composer-mcp.d.ts +0 -7
  123. package/dist/mcp/servicenow-flow-composer-mcp.js +0 -3103
  124. package/dist/mcp/servicenow-graph-memory-mcp.d.ts +0 -7
  125. package/dist/mcp/servicenow-intelligent-mcp.d.ts +0 -143
  126. package/dist/mcp/servicenow-intelligent-mcp.js +0 -4156
  127. package/dist/mcp/servicenow-xml-flow-mcp.d.ts +0 -53
  128. package/dist/mcp/servicenow-xml-flow-mcp.js +0 -1704
  129. package/dist/mcp/singleton-check.js +0 -31
  130. package/dist/mcp/test-simple-mcp.d.ts +0 -6
  131. package/dist/mcp/test-simple-mcp.js +0 -63
  132. package/dist/memory/hierarchical-memory-system.d.ts +0 -90
  133. package/dist/memory/hierarchical-memory-system.js +0 -400
  134. package/dist/memory/index.d.ts +0 -9
  135. package/dist/memory/index.js +0 -20
  136. package/dist/memory/mcp-integration-example.d.ts +0 -6
  137. package/dist/memory/mcp-integration-example.js +0 -281
  138. package/dist/memory/memory-client.d.ts +0 -199
  139. package/dist/memory/memory-client.js +0 -364
  140. package/dist/memory/memory-manager.d.ts +0 -29
  141. package/dist/memory/memory-manager.js +0 -280
  142. package/dist/memory/memory-operations.d.ts +0 -179
  143. package/dist/memory/memory-operations.js +0 -691
  144. package/dist/memory/memory-system.d.ts +0 -153
  145. package/dist/memory/memory-system.js +0 -651
  146. package/dist/memory/memory-test.d.ts +0 -6
  147. package/dist/memory/memory-test.js +0 -161
  148. package/dist/memory/snow-flow-memory-patterns.d.ts +0 -213
  149. package/dist/memory/snow-flow-memory-patterns.js +0 -200
  150. package/dist/memory/snow-memory.d.ts +0 -54
  151. package/dist/memory/snow-memory.js +0 -301
  152. package/dist/memory/swarm-memory.d.ts +0 -135
  153. package/dist/memory/swarm-memory.js +0 -378
  154. package/dist/optimization/flow-performance-optimizer.js +0 -723
  155. package/dist/orchestration/discovery/service-discovery.d.ts +0 -81
  156. package/dist/orchestration/discovery/service-discovery.js +0 -808
  157. package/dist/orchestration/distributed-orchestrator.d.ts +0 -131
  158. package/dist/orchestration/distributed-orchestrator.js +0 -712
  159. package/dist/orchestration/distribution/task-distribution-engine.d.ts +0 -53
  160. package/dist/orchestration/distribution/task-distribution-engine.js +0 -586
  161. package/dist/orchestration/flow-update-orchestrator.js +0 -648
  162. package/dist/orchestration/interfaces/distributed-orchestration.interface.d.ts +0 -606
  163. package/dist/orchestration/interfaces/distributed-orchestration.interface.js +0 -65
  164. package/dist/orchestration/protocols/mcpx-protocol.d.ts +0 -71
  165. package/dist/orchestration/protocols/mcpx-protocol.js +0 -668
  166. package/dist/orchestration/state/distributed-state-manager.d.ts +0 -89
  167. package/dist/orchestration/state/distributed-state-manager.js +0 -716
  168. package/dist/orchestrator/flow-composer.d.ts +0 -105
  169. package/dist/orchestrator/flow-composer.js +0 -404
  170. package/dist/orchestrator/flow-pattern-templates.d.ts +0 -260
  171. package/dist/orchestrator/flow-pattern-templates.js +0 -908
  172. package/dist/orchestrator/flow-subflow-decision-engine.d.ts +0 -202
  173. package/dist/orchestrator/flow-subflow-decision-engine.js +0 -769
  174. package/dist/orchestrator/flow-validation-engine.d.ts +0 -169
  175. package/dist/orchestrator/flow-validation-engine.js +0 -913
  176. package/dist/orchestrator/snow-orchestrator.d.ts +0 -49
  177. package/dist/orchestrator/snow-orchestrator.js +0 -235
  178. package/dist/orchestrator/subflow-creation-handler.d.ts +0 -230
  179. package/dist/orchestrator/subflow-creation-handler.js +0 -791
  180. package/dist/patterns/adaptive-patterns.d.ts +0 -140
  181. package/dist/patterns/adaptive-patterns.js +0 -549
  182. package/dist/queen/advanced-integration-test.d.ts +0 -48
  183. package/dist/queen/advanced-integration-test.js +0 -473
  184. package/dist/queen/integration-example.d.ts +0 -82
  185. package/dist/queen/integration-example.js +0 -219
  186. package/dist/queen/integration-test.d.ts +0 -72
  187. package/dist/queen/integration-test.js +0 -563
  188. package/dist/queen/mock-mcp-client.d.ts +0 -71
  189. package/dist/queen/mock-mcp-client.js +0 -317
  190. package/dist/queen/run-integration-tests.d.ts +0 -9
  191. package/dist/queen/run-integration-tests.js +0 -27
  192. package/dist/sparc/coordinators/adaptive-coordinator.d.ts +0 -54
  193. package/dist/sparc/coordinators/adaptive-coordinator.js +0 -367
  194. package/dist/sparc/coordinators/team-coordinator.d.ts +0 -66
  195. package/dist/sparc/coordinators/team-coordinator.js +0 -402
  196. package/dist/sparc/modes/team-modes.d.ts +0 -33
  197. package/dist/sparc/modes/team-modes.js +0 -399
  198. package/dist/sparc/teams/application-team.d.ts +0 -73
  199. package/dist/sparc/teams/application-team.js +0 -463
  200. package/dist/sparc/teams/flow-team.d.ts +0 -67
  201. package/dist/sparc/teams/flow-team.js +0 -373
  202. package/dist/sparc/teams/widget-team.d.ts +0 -61
  203. package/dist/sparc/teams/widget-team.js +0 -280
  204. package/dist/specialists/app-specialists.d.ts +0 -93
  205. package/dist/specialists/app-specialists.js +0 -1639
  206. package/dist/specialists/base-specialist.d.ts +0 -19
  207. package/dist/specialists/base-specialist.js +0 -54
  208. package/dist/specialists/flow-specialists.d.ts +0 -113
  209. package/dist/specialists/flow-specialists.js +0 -1787
  210. package/dist/specialists/individual-specialists.d.ts +0 -67
  211. package/dist/specialists/individual-specialists.js +0 -632
  212. package/dist/specialists/widget-specialists.d.ts +0 -70
  213. package/dist/specialists/widget-specialists.js +0 -1264
  214. package/dist/src/utils/agent-detector.js +0 -655
  215. package/dist/teams/adaptive-team.d.ts +0 -81
  216. package/dist/teams/adaptive-team.js +0 -1153
  217. package/dist/teams/application-team.d.ts +0 -30
  218. package/dist/teams/application-team.js +0 -547
  219. package/dist/teams/base-team.d.ts +0 -55
  220. package/dist/teams/base-team.js +0 -243
  221. package/dist/teams/flow-team.d.ts +0 -28
  222. package/dist/teams/flow-team.js +0 -525
  223. package/dist/teams/widget-team.d.ts +0 -26
  224. package/dist/teams/widget-team.js +0 -459
  225. package/dist/templates/flow-template-system.js +0 -625
  226. package/dist/test-fetch-incidents.d.ts +0 -2
  227. package/dist/test-fetch-incidents.js +0 -84
  228. package/dist/test-incident-access.d.ts +0 -2
  229. package/dist/test-incident-access.js +0 -72
  230. package/dist/test-iphone-flow.js +0 -189
  231. package/dist/test-limit-problem.d.ts +0 -2
  232. package/dist/test-limit-problem.js +0 -60
  233. package/dist/test-ml-batch-fix.d.ts +0 -2
  234. package/dist/test-ml-batch-fix.js +0 -104
  235. package/dist/test-ml-batch.d.ts +0 -2
  236. package/dist/test-ml-batch.js +0 -87
  237. package/dist/test-ml-query.d.ts +0 -2
  238. package/dist/test-ml-query.js +0 -100
  239. package/dist/test-ml-training-fix.d.ts +0 -12
  240. package/dist/test-ml-training-fix.js +0 -113
  241. package/dist/test-ml-training.d.ts +0 -2
  242. package/dist/test-ml-training.js +0 -32
  243. package/dist/test-operations-query.d.ts +0 -2
  244. package/dist/test-operations-query.js +0 -84
  245. package/dist/test-performance-query.d.ts +0 -2
  246. package/dist/test-performance-query.js +0 -52
  247. package/dist/test-singleton-protection.d.ts +0 -8
  248. package/dist/test-singleton-protection.js +0 -110
  249. package/dist/test-smart-limits.d.ts +0 -13
  250. package/dist/test-smart-limits.js +0 -100
  251. package/dist/test-snow-query-incidents.d.ts +0 -2
  252. package/dist/test-snow-query-incidents.js +0 -66
  253. package/dist/test-universal-query.d.ts +0 -2
  254. package/dist/test-universal-query.js +0 -106
  255. package/dist/testing/flow-testing-automation.js +0 -641
  256. package/dist/utils/complete-flow-xml-generator.js +0 -1285
  257. package/dist/utils/file-storage-fallback.d.ts +0 -62
  258. package/dist/utils/file-storage-fallback.js +0 -289
  259. package/dist/utils/flow-api-discovery.d.ts +0 -151
  260. package/dist/utils/flow-api-discovery.js +0 -439
  261. package/dist/utils/flow-examples.js +0 -720
  262. package/dist/utils/flow-structure-builder.js +0 -677
  263. package/dist/utils/flow-xml-generator.d.ts +0 -41
  264. package/dist/utils/flow-xml-generator.js +0 -258
  265. package/dist/utils/improved-flow-xml-generator.js +0 -820
  266. package/dist/utils/mcp-process-manager.backup.d.ts +0 -58
  267. package/dist/utils/mcp-process-manager.backup.js +0 -220
  268. package/dist/utils/mcp-singleton-enforcer.d.ts +0 -36
  269. package/dist/utils/mcp-singleton-enforcer.js +0 -201
  270. package/dist/utils/mcp-timeout-fix.d.ts +0 -53
  271. package/dist/utils/mcp-timeout-fix.js +0 -221
  272. package/dist/utils/migrate-claude-flow.d.ts +0 -22
  273. package/dist/utils/migrate-claude-flow.js +0 -120
  274. package/dist/utils/scope-utils.d.ts +0 -72
  275. package/dist/utils/scope-utils.js +0 -386
  276. package/dist/utils/snow-oauth-old.d.ts +0 -65
  277. package/dist/utils/snow-oauth-old.js +0 -345
  278. package/dist/utils/xml-first-flow-generator.js +0 -513
  279. package/memory/servicenow_artifacts/000d9224c895221055906c7518aa2d3d.json +0 -30
  280. package/memory/servicenow_artifacts/0196b66173303010e46b4a2214f6a7a2.json +0 -36
  281. package/memory/servicenow_artifacts/125e5d1d837e2a102a7ea130ceaad397.json +0 -30
  282. package/memory/servicenow_artifacts/7637c1f2b7112210a5e5911cde11a972.json +0 -30
  283. package/memory/servicenow_artifacts/default_documentation_tables_1754056582292.json +0 -55
  284. package/memory/servicenow_artifacts/default_documentation_tables_1754057477189.json +0 -55
  285. package/memory/update-set-sessions/01f82af583faea102a7ea130ceaad3d4.json +0 -9
  286. package/memory/update-set-sessions/27718fb983faea102a7ea130ceaad34b.json +0 -9
  287. package/memory/update-set-sessions/412e9bf6833e22502a7ea130ceaad30a.json +0 -8
  288. package/memory/update-set-sessions/66fc5a79837aea102a7ea130ceaad3ab.json +0 -9
  289. package/memory/update-set-sessions/71a30ff5837eea102a7ea130ceaad37f.json +0 -9
  290. package/memory/update-set-sessions/74fba27983faea102a7ea130ceaad3bd.json +0 -9
  291. package/memory/update-set-sessions/a0b147b5837eea102a7ea130ceaad344.json +0 -58
  292. package/memory/update-set-sessions/b13f5eb983baea102a7ea130ceaad33e.json +0 -9
  293. package/reports/swarm-auto-centralized-1752649029776.json +0 -13
  294. package/src/memory/README.md +0 -240
@@ -1,30 +0,0 @@
1
- import { BaseTeam, TeamOptions, TaskBreakdown } from './base-team.js';
2
- export declare class ApplicationTeam extends BaseTeam {
3
- constructor(options?: TeamOptions);
4
- initializeTeam(): void;
5
- execute(task: string): Promise<any>;
6
- protected analyzeRequirements(task: string): Promise<any>;
7
- protected createTaskBreakdown(requirements: any): Promise<TaskBreakdown[]>;
8
- protected integrateResults(results: any[]): Promise<any>;
9
- private identifyApplicationType;
10
- private identifyRequiredFeatures;
11
- private identifyScalabilityNeeds;
12
- private identifyComplianceRequirements;
13
- private determineCoordinationPattern;
14
- private estimateProjectTime;
15
- private identifyRisks;
16
- private estimateBusinessLogicTime;
17
- private estimateInterfaceTime;
18
- private estimatePerformanceTime;
19
- private getMemberByRole;
20
- private createApplicationDeliverable;
21
- private calculateQualityMetrics;
22
- private generateQualityRecommendations;
23
- private prepareDeploymentPackage;
24
- private generateApplicationName;
25
- private generateApplicationScope;
26
- private countWorkflows;
27
- private countIntegrations;
28
- private initializeApplicationQualityGates;
29
- }
30
- //# sourceMappingURL=application-team.d.ts.map
@@ -1,547 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ApplicationTeam = void 0;
4
- const base_team_js_1 = require("./base-team.js");
5
- const app_specialists_js_1 = require("../specialists/app-specialists.js");
6
- const flow_specialists_js_1 = require("../specialists/flow-specialists.js"); // Reuse security specialist
7
- class ApplicationTeam extends base_team_js_1.BaseTeam {
8
- constructor(options = { sharedMemory: true, validation: true, parallel: false, monitor: false }) {
9
- super(options);
10
- }
11
- initializeTeam() {
12
- this.members = [
13
- {
14
- name: 'Dana Database',
15
- role: 'Database Designer',
16
- expertise: ['Table Design', 'Relationships', 'Indexing', 'Performance', 'Data Modeling'],
17
- execute: async (task, context) => {
18
- const specialist = new app_specialists_js_1.DatabaseSpecialist(this.options);
19
- return await specialist.execute(task.description, context);
20
- }
21
- },
22
- {
23
- name: 'Logan Logic',
24
- role: 'Business Logic Developer',
25
- expertise: ['Business Rules', 'Script Includes', 'Workflows', 'Calculations', 'Validations'],
26
- execute: async (task, context) => {
27
- const specialist = new app_specialists_js_1.BusinessLogicSpecialist(this.options);
28
- return await specialist.execute(task.description, context);
29
- }
30
- },
31
- {
32
- name: 'Sage Interface',
33
- role: 'Interface Designer',
34
- expertise: ['Forms', 'Lists', 'UI Policies', 'Client Scripts', 'User Experience'],
35
- execute: async (task, context) => {
36
- const specialist = new app_specialists_js_1.InterfaceSpecialist(this.options);
37
- return await specialist.execute(task.description, context);
38
- }
39
- },
40
- {
41
- name: 'Quinn Security',
42
- role: 'Security Specialist',
43
- expertise: ['Security Analysis', 'Access Control', 'Compliance', 'Vulnerability Assessment'],
44
- execute: async (task, context) => {
45
- const specialist = new flow_specialists_js_1.SecuritySpecialist(this.options);
46
- return await specialist.execute(task.description, context);
47
- }
48
- },
49
- {
50
- name: 'Phoenix Performance',
51
- role: 'Performance Specialist',
52
- expertise: ['Query Optimization', 'Caching', 'Indexing', 'Load Testing', 'Monitoring'],
53
- execute: async (task, context) => {
54
- const specialist = new app_specialists_js_1.PerformanceSpecialist(this.options);
55
- return await specialist.execute(task.description, context);
56
- }
57
- }
58
- ];
59
- // Initialize application-specific quality gates
60
- this.initializeApplicationQualityGates();
61
- }
62
- async execute(task) {
63
- console.log(`\n🏗️ Application Development Team Activated`);
64
- console.log(`📋 Mission: ${task}`);
65
- return await this.executeWithCoordination(task);
66
- }
67
- async analyzeRequirements(task) {
68
- console.log(`\n🔍 Application Team: Analyzing requirements...`);
69
- const complexity = this.assessComplexity(task);
70
- const components = this.identifyComponents(task);
71
- const applicationType = this.identifyApplicationType(task);
72
- const features = this.identifyRequiredFeatures(task);
73
- const scalability = this.identifyScalabilityNeeds(task);
74
- const compliance = this.identifyComplianceRequirements(task);
75
- const requirements = {
76
- task,
77
- complexity,
78
- components,
79
- applicationType,
80
- features,
81
- scalability,
82
- compliance,
83
- coordination: this.determineCoordinationPattern(complexity, components, scalability),
84
- estimatedTime: this.estimateProjectTime(complexity, features, scalability),
85
- risks: this.identifyRisks(task),
86
- dependencies: this.findDependencies(task)
87
- };
88
- console.log(` Application Type: ${applicationType}`);
89
- console.log(` Complexity: ${complexity}`);
90
- console.log(` Components: ${components.join(', ')}`);
91
- console.log(` Scalability: ${scalability}`);
92
- console.log(` Coordination: ${requirements.coordination}`);
93
- return requirements;
94
- }
95
- async createTaskBreakdown(requirements) {
96
- console.log(`\n📋 Application Team: Creating task breakdown...`);
97
- const tasks = [];
98
- // Always start with database design for applications
99
- tasks.push({
100
- id: 'database_design',
101
- description: `Design database schema and relationships for ${requirements.applicationType}`,
102
- assignedTo: this.getMemberByRole('Database Designer'),
103
- dependencies: [],
104
- priority: 'high',
105
- estimatedTime: '60 min'
106
- });
107
- // Security analysis in parallel with database design
108
- tasks.push({
109
- id: 'security_analysis',
110
- description: `Analyze security requirements and compliance needs for ${requirements.applicationType}`,
111
- assignedTo: this.getMemberByRole('Security Specialist'),
112
- dependencies: requirements.coordination === 'sequential' ? ['database_design'] : [],
113
- priority: 'high',
114
- estimatedTime: '45 min'
115
- });
116
- // Business logic development after database design
117
- tasks.push({
118
- id: 'business_logic_development',
119
- description: `Develop business rules, validations, and workflows for the application`,
120
- assignedTo: this.getMemberByRole('Business Logic Developer'),
121
- dependencies: ['database_design'],
122
- priority: 'high',
123
- estimatedTime: this.estimateBusinessLogicTime(requirements)
124
- });
125
- // Interface design after business logic (or in parallel for simple apps)
126
- const interfaceDependencies = requirements.complexity === 'simple' ? ['database_design'] : ['business_logic_development'];
127
- tasks.push({
128
- id: 'interface_design',
129
- description: `Design user interfaces, forms, and navigation for ${requirements.applicationType}`,
130
- assignedTo: this.getMemberByRole('Interface Designer'),
131
- dependencies: interfaceDependencies,
132
- priority: 'high',
133
- estimatedTime: this.estimateInterfaceTime(requirements)
134
- });
135
- // Performance optimization after core components
136
- if (requirements.scalability === 'high' || requirements.complexity === 'complex') {
137
- tasks.push({
138
- id: 'performance_optimization',
139
- description: `Optimize performance, implement caching, and design scalability solutions`,
140
- assignedTo: this.getMemberByRole('Performance Specialist'),
141
- dependencies: ['business_logic_development', 'interface_design'],
142
- priority: 'medium',
143
- estimatedTime: this.estimatePerformanceTime(requirements)
144
- });
145
- }
146
- // Final integration and validation
147
- const finalDependencies = ['interface_design', 'security_analysis'];
148
- if (requirements.scalability === 'high' || requirements.complexity === 'complex') {
149
- finalDependencies.push('performance_optimization');
150
- }
151
- tasks.push({
152
- id: 'application_integration',
153
- description: `Integrate all components and validate complete application functionality`,
154
- assignedTo: this.getMemberByRole('Database Designer'), // Lead integration
155
- dependencies: finalDependencies,
156
- priority: 'medium',
157
- estimatedTime: '45 min'
158
- });
159
- console.log(` Created ${tasks.length} specialized tasks`);
160
- tasks.forEach(task => {
161
- console.log(` ${task.assignedTo.role}: ${task.description} (${task.estimatedTime})`);
162
- });
163
- return tasks;
164
- }
165
- async integrateResults(results) {
166
- console.log(`\n🔗 Application Team: Integrating all specialist deliverables...`);
167
- const integration = {
168
- teamType: 'Application Development Team',
169
- task: this.sharedContext.get('task'),
170
- timestamp: new Date(),
171
- specialists: {},
172
- finalDeliverable: {},
173
- qualityMetrics: {},
174
- deploymentPackage: {}
175
- };
176
- // Organize results by specialist role
177
- for (const result of results) {
178
- if (result.status === 'success' && result.result) {
179
- const specialist = result.result.specialist;
180
- integration.specialists[specialist] = result.result;
181
- }
182
- }
183
- // Create integrated application deliverable
184
- integration.finalDeliverable = await this.createApplicationDeliverable(integration.specialists);
185
- // Calculate quality metrics
186
- integration.qualityMetrics = await this.calculateQualityMetrics(results);
187
- // Prepare deployment package
188
- integration.deploymentPackage = await this.prepareDeploymentPackage(integration.finalDeliverable);
189
- console.log(`✅ Application integration completed successfully`);
190
- console.log(` Components: ${Object.keys(integration.specialists).length} specialists contributed`);
191
- console.log(` Quality Score: ${integration.qualityMetrics.overallScore}/100`);
192
- return integration;
193
- }
194
- identifyApplicationType(task) {
195
- const lowerTask = task.toLowerCase();
196
- if (lowerTask.includes('itsm') || lowerTask.includes('service management')) {
197
- return 'itsm_application';
198
- }
199
- else if (lowerTask.includes('asset') || lowerTask.includes('inventory')) {
200
- return 'asset_management';
201
- }
202
- else if (lowerTask.includes('hr') || lowerTask.includes('employee')) {
203
- return 'hr_application';
204
- }
205
- else if (lowerTask.includes('project') || lowerTask.includes('portfolio')) {
206
- return 'project_management';
207
- }
208
- else if (lowerTask.includes('financial') || lowerTask.includes('budget')) {
209
- return 'financial_application';
210
- }
211
- else if (lowerTask.includes('crm') || lowerTask.includes('customer')) {
212
- return 'crm_application';
213
- }
214
- return 'custom_application';
215
- }
216
- identifyRequiredFeatures(task) {
217
- const features = [];
218
- const lowerTask = task.toLowerCase();
219
- if (lowerTask.includes('approval')) {
220
- features.push('approval_workflow');
221
- }
222
- if (lowerTask.includes('notification') || lowerTask.includes('email')) {
223
- features.push('notification_system');
224
- }
225
- if (lowerTask.includes('dashboard') || lowerTask.includes('analytics')) {
226
- features.push('dashboards_analytics');
227
- }
228
- if (lowerTask.includes('integration') || lowerTask.includes('api')) {
229
- features.push('external_integration');
230
- }
231
- if (lowerTask.includes('mobile') || lowerTask.includes('responsive')) {
232
- features.push('mobile_support');
233
- }
234
- if (lowerTask.includes('audit') || lowerTask.includes('compliance')) {
235
- features.push('audit_trail');
236
- }
237
- if (lowerTask.includes('report') || lowerTask.includes('export')) {
238
- features.push('reporting_export');
239
- }
240
- if (lowerTask.includes('search') || lowerTask.includes('filter')) {
241
- features.push('advanced_search');
242
- }
243
- return features;
244
- }
245
- identifyScalabilityNeeds(task) {
246
- const lowerTask = task.toLowerCase();
247
- if (lowerTask.includes('enterprise') || lowerTask.includes('large scale')) {
248
- return 'high';
249
- }
250
- else if (lowerTask.includes('department') || lowerTask.includes('medium')) {
251
- return 'medium';
252
- }
253
- else if (lowerTask.includes('team') || lowerTask.includes('small')) {
254
- return 'low';
255
- }
256
- return 'medium';
257
- }
258
- identifyComplianceRequirements(task) {
259
- const compliance = [];
260
- const lowerTask = task.toLowerCase();
261
- if (lowerTask.includes('gdpr') || lowerTask.includes('privacy')) {
262
- compliance.push('gdpr');
263
- }
264
- if (lowerTask.includes('sox') || lowerTask.includes('financial')) {
265
- compliance.push('sox');
266
- }
267
- if (lowerTask.includes('hipaa') || lowerTask.includes('medical')) {
268
- compliance.push('hipaa');
269
- }
270
- if (lowerTask.includes('iso') || lowerTask.includes('iso27001')) {
271
- compliance.push('iso27001');
272
- }
273
- return compliance;
274
- }
275
- determineCoordinationPattern(complexity, components, scalability) {
276
- if (complexity === 'complex' || scalability === 'high') {
277
- return 'hybrid'; // Mix of sequential and parallel
278
- }
279
- else if (components.length > 4) {
280
- return 'parallel_with_sync'; // Parallel with synchronization points
281
- }
282
- else if (complexity === 'moderate') {
283
- return 'parallel'; // Most tasks can run in parallel
284
- }
285
- return 'sequential'; // Simple linear workflow
286
- }
287
- estimateProjectTime(complexity, features, scalability) {
288
- const baseTime = {
289
- 'simple': 180, // 3 hours
290
- 'moderate': 360, // 6 hours
291
- 'complex': 600 // 10 hours
292
- };
293
- const featureTime = features.length * 30; // 30 min per feature
294
- const scalabilityMultiplier = scalability === 'high' ? 1.5 : scalability === 'medium' ? 1.2 : 1.0;
295
- const totalMinutes = (baseTime[complexity] + featureTime) * scalabilityMultiplier;
296
- if (totalMinutes < 60) {
297
- return `${Math.round(totalMinutes)} minutes`;
298
- }
299
- else {
300
- const hours = Math.floor(totalMinutes / 60);
301
- const minutes = Math.round(totalMinutes % 60);
302
- return minutes > 0 ? `${hours}h ${minutes}m` : `${hours}h`;
303
- }
304
- }
305
- identifyRisks(task) {
306
- const risks = [];
307
- const lowerTask = task.toLowerCase();
308
- if (lowerTask.includes('complex') || lowerTask.includes('enterprise')) {
309
- risks.push('architectural_complexity');
310
- }
311
- if (lowerTask.includes('integration') || lowerTask.includes('api')) {
312
- risks.push('integration_dependencies');
313
- }
314
- if (lowerTask.includes('performance') || lowerTask.includes('high volume')) {
315
- risks.push('performance_requirements');
316
- }
317
- if (lowerTask.includes('compliance') || lowerTask.includes('regulatory')) {
318
- risks.push('compliance_complexity');
319
- }
320
- if (lowerTask.includes('migration') || lowerTask.includes('existing')) {
321
- risks.push('data_migration_challenges');
322
- }
323
- return risks;
324
- }
325
- estimateBusinessLogicTime(requirements) {
326
- const baseTime = requirements.complexity === 'complex' ? 90 : 60;
327
- const featureTime = requirements.features.length * 10;
328
- return `${baseTime + featureTime} min`;
329
- }
330
- estimateInterfaceTime(requirements) {
331
- const baseTime = requirements.complexity === 'complex' ? 75 : 50;
332
- const featureTime = requirements.features.length * 8;
333
- const mobileBonus = requirements.features.includes('mobile_support') ? 15 : 0;
334
- return `${baseTime + featureTime + mobileBonus} min`;
335
- }
336
- estimatePerformanceTime(requirements) {
337
- const baseTime = 45;
338
- const scalabilityTime = requirements.scalability === 'high' ? 30 : 15;
339
- return `${baseTime + scalabilityTime} min`;
340
- }
341
- getMemberByRole(role) {
342
- const member = this.members.find(m => m.role === role);
343
- if (!member) {
344
- throw new Error(`No team member found with role: ${role}`);
345
- }
346
- return member;
347
- }
348
- async createApplicationDeliverable(specialists) {
349
- const deliverable = {
350
- type: 'ServiceNow Application',
351
- timestamp: new Date(),
352
- components: {}
353
- };
354
- // Database components
355
- if (specialists['Database Designer']) {
356
- deliverable.components.database = {
357
- schema: specialists['Database Designer'].deliverables?.schema || {},
358
- tableDefinitions: specialists['Database Designer'].deliverables?.tableDefinitions || []
359
- };
360
- }
361
- // Business logic components
362
- if (specialists['Business Logic Developer']) {
363
- deliverable.components.businessLogic = {
364
- logicArchitecture: specialists['Business Logic Developer'].deliverables?.logicArchitecture || {},
365
- implementations: specialists['Business Logic Developer'].deliverables?.implementations || {}
366
- };
367
- }
368
- // Interface components
369
- if (specialists['Interface Designer']) {
370
- deliverable.components.interface = {
371
- interfaceArchitecture: specialists['Interface Designer'].deliverables?.interfaceArchitecture || {},
372
- implementations: specialists['Interface Designer'].deliverables?.implementations || {}
373
- };
374
- }
375
- // Security components
376
- if (specialists['Security Specialist']) {
377
- deliverable.components.security = {
378
- securityControls: specialists['Security Specialist'].deliverables?.securityControls || {},
379
- securityPlan: specialists['Security Specialist'].deliverables?.securityPlan || {}
380
- };
381
- }
382
- // Performance components
383
- if (specialists['Performance Specialist']) {
384
- deliverable.components.performance = {
385
- optimizationStrategy: specialists['Performance Specialist'].deliverables?.optimizationStrategy || {},
386
- implementationPlan: specialists['Performance Specialist'].deliverables?.implementationPlan || {}
387
- };
388
- }
389
- return deliverable;
390
- }
391
- async calculateQualityMetrics(results) {
392
- const successfulTasks = results.filter(r => r.status === 'success').length;
393
- const totalTasks = results.length;
394
- const completionRate = (successfulTasks / totalTasks) * 100;
395
- // Calculate component quality scores
396
- const qualityFactors = {
397
- completeness: completionRate,
398
- databaseDesign: 90, // Would be calculated from schema analysis
399
- businessLogic: 88, // Would be calculated from code quality metrics
400
- interfaceDesign: 92, // Would be assessed through UX evaluation
401
- securityCompliance: 89, // Would be assessed through security review
402
- performance: 86 // Would be evaluated through performance testing
403
- };
404
- const overallScore = Object.values(qualityFactors).reduce((sum, score) => sum + score, 0) / Object.keys(qualityFactors).length;
405
- return {
406
- overallScore: Math.round(overallScore),
407
- factors: qualityFactors,
408
- completionRate,
409
- recommendations: this.generateQualityRecommendations(qualityFactors)
410
- };
411
- }
412
- generateQualityRecommendations(factors) {
413
- const recommendations = [];
414
- if (factors.completeness < 90) {
415
- recommendations.push('Complete remaining development tasks');
416
- }
417
- if (factors.databaseDesign < 85) {
418
- recommendations.push('Optimize database schema and relationships');
419
- }
420
- if (factors.businessLogic < 85) {
421
- recommendations.push('Refactor business logic for better maintainability');
422
- }
423
- if (factors.interfaceDesign < 90) {
424
- recommendations.push('Improve user interface design and usability');
425
- }
426
- if (factors.securityCompliance < 90) {
427
- recommendations.push('Address security compliance gaps');
428
- }
429
- if (factors.performance < 85) {
430
- recommendations.push('Optimize application performance and scalability');
431
- }
432
- return recommendations;
433
- }
434
- async prepareDeploymentPackage(deliverable) {
435
- const tableDefinitions = deliverable.components?.database?.tableDefinitions || [];
436
- const businessRules = deliverable.components?.businessLogic?.implementations?.businessRules || [];
437
- const forms = deliverable.components?.interface?.implementations?.forms || [];
438
- return {
439
- applicationDefinition: {
440
- name: this.generateApplicationName(),
441
- description: 'Generated by Application Development Team',
442
- version: '1.0.0',
443
- scope: this.generateApplicationScope(),
444
- vendor: 'Internal Development',
445
- vendor_prefix: 'x_app'
446
- },
447
- components: {
448
- tables: tableDefinitions.length,
449
- businessRules: businessRules.length,
450
- forms: forms.length,
451
- workflows: this.countWorkflows(deliverable),
452
- integrations: this.countIntegrations(deliverable)
453
- },
454
- deploymentInstructions: {
455
- updateSet: 'Create new update set for application deployment',
456
- testing: 'Execute comprehensive application testing before production',
457
- security: 'Validate security controls and access permissions',
458
- performance: 'Conduct performance testing under expected load',
459
- rollback: 'Prepare rollback plan and backup procedures'
460
- },
461
- qualityAssurance: {
462
- checklist: [
463
- 'All database tables created and validated',
464
- 'Business logic implemented and tested',
465
- 'User interfaces designed and responsive',
466
- 'Security controls implemented and verified',
467
- 'Performance benchmarks met',
468
- 'Integration points tested and functional',
469
- 'Documentation complete and accurate'
470
- ]
471
- },
472
- postDeployment: {
473
- monitoring: 'Enable application performance monitoring',
474
- training: 'Conduct user training sessions',
475
- support: 'Establish support procedures and documentation',
476
- maintenance: 'Schedule regular maintenance and updates'
477
- }
478
- };
479
- }
480
- generateApplicationName() {
481
- const task = this.sharedContext.get('task') || 'custom_application';
482
- return task.toLowerCase().replace(/[^a-z0-9]/g, '_').substring(0, 40);
483
- }
484
- generateApplicationScope() {
485
- const task = this.sharedContext.get('task') || '';
486
- if (task.toLowerCase().includes('global') || task.toLowerCase().includes('enterprise')) {
487
- return 'global';
488
- }
489
- return 'x_app_' + this.generateApplicationName();
490
- }
491
- countWorkflows(deliverable) {
492
- const workflows = deliverable.components?.businessLogic?.implementations?.workflows || [];
493
- return workflows.length;
494
- }
495
- countIntegrations(deliverable) {
496
- // Count integrations from various components
497
- let count = 0;
498
- const businessLogic = deliverable.components?.businessLogic?.implementations || {};
499
- if (businessLogic.integrations) {
500
- count += businessLogic.integrations.length;
501
- }
502
- return count;
503
- }
504
- initializeApplicationQualityGates() {
505
- // Add application-specific quality gates
506
- this.qualityGates.push({
507
- name: 'Database schema validation',
508
- check: async (results) => {
509
- const dbResult = results.find(r => r.result?.specialist === 'Database Designer');
510
- return dbResult?.status === 'success' && dbResult.result?.deliverables?.schema;
511
- },
512
- onFailure: async (results) => {
513
- console.log('❌ Database schema validation failed - missing or invalid schema design');
514
- }
515
- }, {
516
- name: 'Business logic implementation validation',
517
- check: async (results) => {
518
- const logicResult = results.find(r => r.result?.specialist === 'Business Logic Developer');
519
- return logicResult?.status === 'success' && logicResult.result?.deliverables?.implementations;
520
- },
521
- onFailure: async (results) => {
522
- console.log('❌ Business logic validation failed - missing or invalid implementations');
523
- }
524
- }, {
525
- name: 'User interface design validation',
526
- check: async (results) => {
527
- const uiResult = results.find(r => r.result?.specialist === 'Interface Designer');
528
- return uiResult?.status === 'success' && uiResult.result?.deliverables?.implementations;
529
- }
530
- }, {
531
- name: 'Security compliance validation',
532
- check: async (results) => {
533
- const securityResult = results.find(r => r.result?.specialist === 'Security Specialist');
534
- return securityResult?.status === 'success' && securityResult.result?.deliverables?.securityControls;
535
- }
536
- }, {
537
- name: 'Performance optimization validation',
538
- check: async (results) => {
539
- const perfResult = results.find(r => r.result?.specialist === 'Performance Specialist');
540
- // Performance optimization is optional for simple applications
541
- return !perfResult || (perfResult?.status === 'success' && perfResult.result?.deliverables?.optimizationStrategy);
542
- }
543
- });
544
- }
545
- }
546
- exports.ApplicationTeam = ApplicationTeam;
547
- //# sourceMappingURL=application-team.js.map
@@ -1,55 +0,0 @@
1
- export interface TeamOptions {
2
- sharedMemory: boolean;
3
- validation: boolean;
4
- parallel: boolean;
5
- monitor: boolean;
6
- dryRun?: boolean;
7
- }
8
- export interface TeamMember {
9
- name: string;
10
- role: string;
11
- expertise: string[];
12
- execute(task: any, context: any): Promise<any>;
13
- }
14
- export interface TaskBreakdown {
15
- id: string;
16
- description: string;
17
- assignedTo: TeamMember;
18
- dependencies: string[];
19
- priority: 'high' | 'medium' | 'low';
20
- estimatedTime?: string;
21
- }
22
- export interface QualityGate {
23
- name: string;
24
- check: (results: any) => Promise<boolean>;
25
- onFailure?: (results: any) => Promise<void>;
26
- }
27
- export declare abstract class BaseTeam {
28
- protected options: TeamOptions;
29
- protected members: TeamMember[];
30
- protected sharedContext: Map<string, any>;
31
- protected qualityGates: QualityGate[];
32
- constructor(options: TeamOptions);
33
- abstract initializeTeam(): void;
34
- abstract execute(task: string): Promise<any>;
35
- protected executeWithCoordination(task: string): Promise<any>;
36
- protected abstract analyzeRequirements(task: string): Promise<any>;
37
- protected abstract createTaskBreakdown(requirements: any): Promise<TaskBreakdown[]>;
38
- protected abstract integrateResults(results: any): Promise<any>;
39
- protected executeParallel(tasks: TaskBreakdown[]): Promise<any[]>;
40
- protected executeSequential(tasks: TaskBreakdown[]): Promise<any[]>;
41
- protected executeTask(task: TaskBreakdown): Promise<any>;
42
- protected runQualityGates(results: any): Promise<void>;
43
- protected initializeQualityGates(): void;
44
- protected initializeSharedMemory(task: string): Promise<void>;
45
- protected updateSharedContext(key: string, value: any): void;
46
- protected groupTasksByDependencies(tasks: TaskBreakdown[]): TaskBreakdown[][];
47
- protected assessComplexity(task: string): 'simple' | 'moderate' | 'complex';
48
- protected identifyComponents(task: string): string[];
49
- protected findDependencies(task: string): string[];
50
- protected handleExecutionError(error: any): Promise<void>;
51
- protected startMonitoring(): void;
52
- protected stopMonitoring(): void;
53
- private previewExecution;
54
- }
55
- //# sourceMappingURL=base-team.d.ts.map