snow-flow 1.4.49 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (595) hide show
  1. package/.claude/helpers/github-setup.sh +28 -0
  2. package/.claude/helpers/quick-start.sh +19 -0
  3. package/.claude/helpers/setup-mcp.sh +18 -0
  4. package/.claude/settings.local.json +33 -0
  5. package/.claude-flow/metrics/system-metrics.json +1992 -0
  6. package/.env.example +21 -0
  7. package/.roo/README.md +402 -0
  8. package/.roo/mcp-list.txt +257 -0
  9. package/.roo/mcp.json +32 -0
  10. package/.roo/workflows/basic-tdd.json +32 -0
  11. package/.roomodes +201 -0
  12. package/README.md +114 -628
  13. package/activate-mcp.sh +15 -0
  14. package/dist/cli.js.bak +2052 -0
  15. package/manual-register-mcp.js +134 -0
  16. package/mcp-wrapper.sh +12 -0
  17. package/package.json +2 -2
  18. package/scripts/create-env.js +6 -1
  19. package/scripts/reset-mcp-servers.js +246 -0
  20. package/scripts/update-version.js +31 -0
  21. package/src/agents/README.md +192 -0
  22. package/src/agents/base-agent.ts +251 -0
  23. package/src/agents/coordinator.ts +971 -0
  24. package/src/agents/index.ts +18 -0
  25. package/src/agents/queen-403-handler.ts +230 -0
  26. package/src/agents/queen-agent.ts +1399 -0
  27. package/src/agents/script-writer-agent.ts +769 -0
  28. package/src/agents/security-agent.ts +726 -0
  29. package/src/agents/widget-creator-agent.ts +568 -0
  30. package/src/api/error-handling.ts +1758 -0
  31. package/src/api/natural-language-mapper.ts +630 -0
  32. package/src/api/performance-optimizer.ts +891 -0
  33. package/src/api/transaction-manager.ts +754 -0
  34. package/src/cli/deploy-artifact.ts +304 -0
  35. package/src/cli/snow-flow-cli-integration.ts +434 -0
  36. package/src/cli.ts +4455 -0
  37. package/src/cli.ts.bak +5616 -0
  38. package/src/compliance/advanced-compliance-system.ts +1268 -0
  39. package/src/compliance/index.ts +19 -0
  40. package/src/config/snow-flow-config.ts +1019 -0
  41. package/src/documentation/index.ts +16 -0
  42. package/src/documentation/self-documenting-system.ts +1421 -0
  43. package/src/dynamic-version.ts +44 -0
  44. package/src/healing/index.ts +20 -0
  45. package/src/healing/self-healing-system.ts +1435 -0
  46. package/src/health/README.md +161 -0
  47. package/src/health/system-health.ts +995 -0
  48. package/src/index.ts +60 -0
  49. package/src/intelligence/acl-analyzer.ts +377 -0
  50. package/src/intelligence/auto-resolution-engine.ts +643 -0
  51. package/src/intelligence/gap-analysis-engine.ts +488 -0
  52. package/src/intelligence/manual-instructions-generator.ts +744 -0
  53. package/src/intelligence/mcp-coverage-analyzer.ts +708 -0
  54. package/src/intelligence/multi-pass-requirements-analyzer.ts +603 -0
  55. package/src/intelligence/performance-recommendations-engine.ts +1223 -0
  56. package/src/intelligence/requirements-analyzer.ts +1148 -0
  57. package/src/intelligence/task-analyzer.ts +628 -0
  58. package/src/managers/scope-manager.ts +555 -0
  59. package/src/mcp/advanced/servicenow-advanced-features-mcp.ts +16110 -0
  60. package/src/mcp/base-mcp-server.ts +660 -0
  61. package/src/mcp/http-transport-wrapper.ts +426 -0
  62. package/src/mcp/service-discovery-client.ts +312 -0
  63. package/src/mcp/servicenow-automation-mcp-refactored.ts +678 -0
  64. package/src/mcp/servicenow-automation-mcp.ts +838 -0
  65. package/src/mcp/servicenow-deployment-mcp-refactored.ts +1292 -0
  66. package/src/mcp/servicenow-deployment-mcp.ts +7244 -0
  67. package/src/mcp/servicenow-graph-memory-mcp-refactored.ts +721 -0
  68. package/src/mcp/servicenow-graph-memory-mcp.ts +832 -0
  69. package/src/mcp/servicenow-integration-mcp-refactored.ts +655 -0
  70. package/src/mcp/servicenow-integration-mcp.ts +819 -0
  71. package/src/mcp/servicenow-intelligent-mcp-refactored.ts +977 -0
  72. package/src/mcp/servicenow-intelligent-mcp.ts +4638 -0
  73. package/src/mcp/servicenow-mcp-server.ts +728 -0
  74. package/src/mcp/servicenow-memory-mcp.ts +474 -0
  75. package/src/mcp/servicenow-operations-mcp-refactored.ts +1995 -0
  76. package/src/mcp/servicenow-operations-mcp.ts +3384 -0
  77. package/src/mcp/servicenow-platform-development-mcp-refactored.ts +611 -0
  78. package/src/mcp/servicenow-platform-development-mcp.ts +970 -0
  79. package/src/mcp/servicenow-progressive-indexer.ts +370 -0
  80. package/src/mcp/servicenow-reporting-analytics-mcp-refactored.ts +695 -0
  81. package/src/mcp/servicenow-reporting-analytics-mcp.ts +1123 -0
  82. package/src/mcp/servicenow-security-compliance-mcp-refactored.ts +642 -0
  83. package/src/mcp/servicenow-security-compliance-mcp.ts +1157 -0
  84. package/src/mcp/servicenow-update-set-mcp-refactored.ts +751 -0
  85. package/src/mcp/servicenow-update-set-mcp.ts +811 -0
  86. package/src/mcp/shared/agent-context-provider.ts +365 -0
  87. package/src/mcp/shared/base-mcp-server.ts +2463 -0
  88. package/src/mcp/shared/mcp-memory-manager.ts +540 -0
  89. package/src/mcp/shared/mcp-resource-manager.ts +367 -0
  90. package/src/mcp/snow-flow-mcp.ts +911 -0
  91. package/src/mcp/start-all-mcp-servers.ts +102 -0
  92. package/src/mcp/start-servicenow-mcp.ts +67 -0
  93. package/src/monitoring/enhanced-monitoring-system.ts +1345 -0
  94. package/src/monitoring/performance-tracker.ts +777 -0
  95. package/src/optimization/cost-optimization-engine.ts +1125 -0
  96. package/src/optimization/index.ts +10 -0
  97. package/src/queen/README.md +403 -0
  98. package/src/queen/agent-factory.ts +574 -0
  99. package/src/queen/index.ts +94 -0
  100. package/src/queen/mcp-execution-bridge.ts +681 -0
  101. package/src/queen/neural-learning.ts +319 -0
  102. package/src/queen/parallel-agent-engine.ts +848 -0
  103. package/src/queen/queen-memory-system.ts +490 -0
  104. package/src/queen/queen-memory.ts +456 -0
  105. package/src/queen/servicenow-queen.ts +1029 -0
  106. package/src/queen/types.ts +87 -0
  107. package/src/rollback/smart-rollback-system.ts +866 -0
  108. package/src/schemas/deployment.schema.json +58 -0
  109. package/src/schemas/flow.schema.json +79 -0
  110. package/src/schemas/widget.schema.json +72 -0
  111. package/src/snow-flow-system.ts +541 -0
  112. package/src/sparc/sparc-help.ts +49 -0
  113. package/src/sparc/team-sparc.ts +88 -0
  114. package/src/strategies/global-scope-strategy.ts +736 -0
  115. package/src/templates/base/application.template.json +45 -0
  116. package/src/templates/base/business_rule.template.json +33 -0
  117. package/src/templates/base/script_include.template.json +18 -0
  118. package/src/templates/base/table.template.json +64 -0
  119. package/src/templates/base/widget.template.json +25 -0
  120. package/src/templates/patterns/composite.incident-management.template.json +140 -0
  121. package/src/templates/patterns/widget.dashboard.template.json +238 -0
  122. package/src/templates/patterns/widget.datatable.template.json +292 -0
  123. package/src/testing/integration-test-suite.ts +1276 -0
  124. package/src/types/index.ts +183 -0
  125. package/src/types/neo4j-driver.d.ts +23 -0
  126. package/src/types/servicenow.types.ts +307 -0
  127. package/src/types/snow-flow.types.ts +186 -0
  128. package/src/types/todo.types.ts +70 -0
  129. package/src/utils/action-type-cache.ts +286 -0
  130. package/src/utils/agent-detector.ts +573 -0
  131. package/src/utils/artifact-tracker.ts +379 -0
  132. package/src/utils/dependency-detector.ts +233 -0
  133. package/src/utils/deployment-metadata-handler.ts +518 -0
  134. package/src/utils/error-recovery.ts +680 -0
  135. package/src/utils/logger.ts +60 -0
  136. package/src/utils/mcp-auth-middleware.ts +262 -0
  137. package/src/utils/mcp-config-manager.ts +270 -0
  138. package/src/utils/mcp-server-manager.ts +446 -0
  139. package/src/utils/mcp-tool-registry.ts +298 -0
  140. package/src/utils/migrate-snow-flow.ts +98 -0
  141. package/src/utils/oauth-html-templates.ts +188 -0
  142. package/src/utils/scope-utils.ts +443 -0
  143. package/src/utils/servicenow-client.ts +3321 -0
  144. package/src/utils/servicenow-id-generator.ts +181 -0
  145. package/src/utils/snow-memory-manager.ts +605 -0
  146. package/src/utils/snow-oauth.ts +797 -0
  147. package/src/utils/template-engine.ts +463 -0
  148. package/src/utils/theme-manager.ts +295 -0
  149. package/src/utils/unified-auth-store.ts +222 -0
  150. package/src/utils/update-set-importer.ts +422 -0
  151. package/src/utils/update-set-xml-packager.ts +371 -0
  152. package/src/utils/widget-template-generator.ts +1744 -0
  153. package/src/version.ts +1950 -0
  154. package/.claude/commands/memory/README.md +0 -9
  155. package/dist/agents/app-creator.agent.d.ts.map +0 -1
  156. package/dist/agents/app-creator.agent.js.map +0 -1
  157. package/dist/agents/base/base-snow-agent.d.ts.map +0 -1
  158. package/dist/agents/base/base-snow-agent.js.map +0 -1
  159. package/dist/agents/base-agent.d.ts.map +0 -1
  160. package/dist/agents/base-agent.js.map +0 -1
  161. package/dist/agents/base-snow-agent.d.ts.map +0 -1
  162. package/dist/agents/base-snow-agent.js.map +0 -1
  163. package/dist/agents/coordinator.d.ts.map +0 -1
  164. package/dist/agents/coordinator.js.map +0 -1
  165. package/dist/agents/flow-builder-agent.d.ts.map +0 -1
  166. package/dist/agents/flow-builder-agent.js.map +0 -1
  167. package/dist/agents/index.d.ts.map +0 -1
  168. package/dist/agents/index.js.map +0 -1
  169. package/dist/agents/queen-403-handler.d.ts.map +0 -1
  170. package/dist/agents/queen-403-handler.js.map +0 -1
  171. package/dist/agents/queen-agent-example.d.ts.map +0 -1
  172. package/dist/agents/queen-agent-example.js.map +0 -1
  173. package/dist/agents/queen-agent.d.ts.map +0 -1
  174. package/dist/agents/queen-agent.js.map +0 -1
  175. package/dist/agents/queen-agent.test.d.ts.map +0 -1
  176. package/dist/agents/queen-agent.test.js.map +0 -1
  177. package/dist/agents/script-generator.agent.d.ts.map +0 -1
  178. package/dist/agents/script-generator.agent.js.map +0 -1
  179. package/dist/agents/script-writer-agent.d.ts.map +0 -1
  180. package/dist/agents/script-writer-agent.js.map +0 -1
  181. package/dist/agents/security-agent.d.ts.map +0 -1
  182. package/dist/agents/security-agent.js.map +0 -1
  183. package/dist/agents/specialists/automation-specialist.agent.d.ts.map +0 -1
  184. package/dist/agents/specialists/automation-specialist.agent.js.map +0 -1
  185. package/dist/agents/specialists/data-specialist.agent.d.ts.map +0 -1
  186. package/dist/agents/specialists/data-specialist.agent.js.map +0 -1
  187. package/dist/agents/specialists/integration-specialist.agent.d.ts.map +0 -1
  188. package/dist/agents/specialists/integration-specialist.agent.js.map +0 -1
  189. package/dist/agents/specialists/reporting-specialist.agent.d.ts.map +0 -1
  190. package/dist/agents/specialists/reporting-specialist.agent.js.map +0 -1
  191. package/dist/agents/specialists/security-specialist.agent.d.ts.map +0 -1
  192. package/dist/agents/specialists/security-specialist.agent.js.map +0 -1
  193. package/dist/agents/teams/adaptive/adaptive-coordinator.agent.d.ts.map +0 -1
  194. package/dist/agents/teams/adaptive/adaptive-coordinator.agent.js.map +0 -1
  195. package/dist/agents/teams/base-team.d.ts.map +0 -1
  196. package/dist/agents/teams/base-team.js.map +0 -1
  197. package/dist/agents/teams/team-types.d.ts.map +0 -1
  198. package/dist/agents/teams/team-types.js.map +0 -1
  199. package/dist/agents/teams/widget/widget-architect.agent.d.ts.map +0 -1
  200. package/dist/agents/teams/widget/widget-architect.agent.js.map +0 -1
  201. package/dist/agents/teams/widget/widget-backend.agent.d.ts.map +0 -1
  202. package/dist/agents/teams/widget/widget-backend.agent.js.map +0 -1
  203. package/dist/agents/teams/widget/widget-frontend.agent.d.ts.map +0 -1
  204. package/dist/agents/teams/widget/widget-frontend.agent.js.map +0 -1
  205. package/dist/agents/teams/widget/widget-platform.agent.d.ts.map +0 -1
  206. package/dist/agents/teams/widget/widget-platform.agent.js.map +0 -1
  207. package/dist/agents/teams/widget/widget-uiux.agent.d.ts.map +0 -1
  208. package/dist/agents/teams/widget/widget-uiux.agent.js.map +0 -1
  209. package/dist/agents/test-agent.d.ts.map +0 -1
  210. package/dist/agents/test-agent.js.map +0 -1
  211. package/dist/agents/test-agents.d.ts.map +0 -1
  212. package/dist/agents/test-agents.js.map +0 -1
  213. package/dist/agents/ui-builder.agent.d.ts.map +0 -1
  214. package/dist/agents/ui-builder.agent.js.map +0 -1
  215. package/dist/agents/widget-builder.agent.d.ts.map +0 -1
  216. package/dist/agents/widget-builder.agent.js.map +0 -1
  217. package/dist/agents/widget-creator-agent.d.ts.map +0 -1
  218. package/dist/agents/widget-creator-agent.js.map +0 -1
  219. package/dist/agents/workflow-designer.agent.d.ts.map +0 -1
  220. package/dist/agents/workflow-designer.agent.js.map +0 -1
  221. package/dist/api/error-handling.d.ts.map +0 -1
  222. package/dist/api/error-handling.js.map +0 -1
  223. package/dist/api/flow-designer-api.d.ts.map +0 -1
  224. package/dist/api/flow-designer-api.js.map +0 -1
  225. package/dist/api/natural-language-mapper.d.ts.map +0 -1
  226. package/dist/api/natural-language-mapper.js.map +0 -1
  227. package/dist/api/performance-optimizer.d.ts.map +0 -1
  228. package/dist/api/performance-optimizer.js.map +0 -1
  229. package/dist/api/transaction-manager.d.ts.map +0 -1
  230. package/dist/api/transaction-manager.js.map +0 -1
  231. package/dist/assembly/team-assembler.d.ts.map +0 -1
  232. package/dist/assembly/team-assembler.js.map +0 -1
  233. package/dist/cli/deploy-artifact.d.ts.map +0 -1
  234. package/dist/cli/deploy-artifact.js.map +0 -1
  235. package/dist/cli/snow-flow-cli-integration.d.ts.map +0 -1
  236. package/dist/cli/snow-flow-cli-integration.js.map +0 -1
  237. package/dist/cli.d.ts.map +0 -1
  238. package/dist/cli.js.map +0 -1
  239. package/dist/compliance/advanced-compliance-system.d.ts.map +0 -1
  240. package/dist/compliance/advanced-compliance-system.js.map +0 -1
  241. package/dist/compliance/index.d.ts.map +0 -1
  242. package/dist/compliance/index.js.map +0 -1
  243. package/dist/config/snow-flow-config.d.ts.map +0 -1
  244. package/dist/config/snow-flow-config.js.map +0 -1
  245. package/dist/documentation/index.d.ts.map +0 -1
  246. package/dist/documentation/index.js.map +0 -1
  247. package/dist/documentation/self-documenting-system.d.ts.map +0 -1
  248. package/dist/documentation/self-documenting-system.js.map +0 -1
  249. package/dist/dynamic-version.d.ts.map +0 -1
  250. package/dist/dynamic-version.js.map +0 -1
  251. package/dist/healing/index.d.ts.map +0 -1
  252. package/dist/healing/index.js.map +0 -1
  253. package/dist/healing/self-healing-system.d.ts.map +0 -1
  254. package/dist/healing/self-healing-system.js.map +0 -1
  255. package/dist/health/system-health.d.ts.map +0 -1
  256. package/dist/health/system-health.js.map +0 -1
  257. package/dist/index.d.ts.map +0 -1
  258. package/dist/index.js.map +0 -1
  259. package/dist/intelligence/acl-analyzer.d.ts.map +0 -1
  260. package/dist/intelligence/acl-analyzer.js.map +0 -1
  261. package/dist/intelligence/auto-resolution-engine.d.ts.map +0 -1
  262. package/dist/intelligence/auto-resolution-engine.js.map +0 -1
  263. package/dist/intelligence/gap-analysis-engine.d.ts.map +0 -1
  264. package/dist/intelligence/gap-analysis-engine.js.map +0 -1
  265. package/dist/intelligence/manual-instructions-generator.d.ts.map +0 -1
  266. package/dist/intelligence/manual-instructions-generator.js.map +0 -1
  267. package/dist/intelligence/mcp-coverage-analyzer.d.ts.map +0 -1
  268. package/dist/intelligence/mcp-coverage-analyzer.js.map +0 -1
  269. package/dist/intelligence/multi-pass-requirements-analyzer.d.ts.map +0 -1
  270. package/dist/intelligence/multi-pass-requirements-analyzer.js.map +0 -1
  271. package/dist/intelligence/performance-recommendations-engine.d.ts.map +0 -1
  272. package/dist/intelligence/performance-recommendations-engine.js.map +0 -1
  273. package/dist/intelligence/requirements-analyzer.d.ts.map +0 -1
  274. package/dist/intelligence/requirements-analyzer.js.map +0 -1
  275. package/dist/intelligence/task-analyzer.d.ts.map +0 -1
  276. package/dist/intelligence/task-analyzer.js.map +0 -1
  277. package/dist/managers/scope-manager.d.ts.map +0 -1
  278. package/dist/managers/scope-manager.js.map +0 -1
  279. package/dist/mcp/advanced/servicenow-advanced-features-mcp.d.ts.map +0 -1
  280. package/dist/mcp/advanced/servicenow-advanced-features-mcp.js.map +0 -1
  281. package/dist/mcp/base-mcp-server.d.ts.map +0 -1
  282. package/dist/mcp/base-mcp-server.js.map +0 -1
  283. package/dist/mcp/example-refactored-server.d.ts.map +0 -1
  284. package/dist/mcp/example-refactored-server.js.map +0 -1
  285. package/dist/mcp/http-transport-wrapper.d.ts.map +0 -1
  286. package/dist/mcp/http-transport-wrapper.js.map +0 -1
  287. package/dist/mcp/mcp-wrapper.d.ts.map +0 -1
  288. package/dist/mcp/mcp-wrapper.js.map +0 -1
  289. package/dist/mcp/service-discovery-client.d.ts.map +0 -1
  290. package/dist/mcp/service-discovery-client.js.map +0 -1
  291. package/dist/mcp/servicenow-automation-mcp-refactored.d.ts.map +0 -1
  292. package/dist/mcp/servicenow-automation-mcp-refactored.js.map +0 -1
  293. package/dist/mcp/servicenow-automation-mcp.d.ts.map +0 -1
  294. package/dist/mcp/servicenow-automation-mcp.js.map +0 -1
  295. package/dist/mcp/servicenow-deployment-mcp-refactored.d.ts.map +0 -1
  296. package/dist/mcp/servicenow-deployment-mcp-refactored.js.map +0 -1
  297. package/dist/mcp/servicenow-deployment-mcp.d.ts.map +0 -1
  298. package/dist/mcp/servicenow-deployment-mcp.js.map +0 -1
  299. package/dist/mcp/servicenow-flow-composer-mcp-refactored.d.ts.map +0 -1
  300. package/dist/mcp/servicenow-flow-composer-mcp-refactored.js.map +0 -1
  301. package/dist/mcp/servicenow-flow-composer-mcp.d.ts.map +0 -1
  302. package/dist/mcp/servicenow-flow-composer-mcp.js.map +0 -1
  303. package/dist/mcp/servicenow-graph-memory-mcp-refactored.d.ts.map +0 -1
  304. package/dist/mcp/servicenow-graph-memory-mcp-refactored.js.map +0 -1
  305. package/dist/mcp/servicenow-graph-memory-mcp.d.ts.map +0 -1
  306. package/dist/mcp/servicenow-graph-memory-mcp.js.map +0 -1
  307. package/dist/mcp/servicenow-integration-mcp-refactored.d.ts.map +0 -1
  308. package/dist/mcp/servicenow-integration-mcp-refactored.js.map +0 -1
  309. package/dist/mcp/servicenow-integration-mcp.d.ts.map +0 -1
  310. package/dist/mcp/servicenow-integration-mcp.js.map +0 -1
  311. package/dist/mcp/servicenow-intelligent-mcp-refactored.d.ts.map +0 -1
  312. package/dist/mcp/servicenow-intelligent-mcp-refactored.js.map +0 -1
  313. package/dist/mcp/servicenow-intelligent-mcp.d.ts.map +0 -1
  314. package/dist/mcp/servicenow-intelligent-mcp.js.map +0 -1
  315. package/dist/mcp/servicenow-mcp-server.d.ts.map +0 -1
  316. package/dist/mcp/servicenow-mcp-server.js.map +0 -1
  317. package/dist/mcp/servicenow-memory-mcp.d.ts.map +0 -1
  318. package/dist/mcp/servicenow-memory-mcp.js.map +0 -1
  319. package/dist/mcp/servicenow-operations-mcp-refactored.d.ts.map +0 -1
  320. package/dist/mcp/servicenow-operations-mcp-refactored.js.map +0 -1
  321. package/dist/mcp/servicenow-operations-mcp.d.ts.map +0 -1
  322. package/dist/mcp/servicenow-operations-mcp.js.map +0 -1
  323. package/dist/mcp/servicenow-platform-development-mcp-refactored.d.ts.map +0 -1
  324. package/dist/mcp/servicenow-platform-development-mcp-refactored.js.map +0 -1
  325. package/dist/mcp/servicenow-platform-development-mcp.d.ts.map +0 -1
  326. package/dist/mcp/servicenow-platform-development-mcp.js.map +0 -1
  327. package/dist/mcp/servicenow-progressive-indexer.d.ts.map +0 -1
  328. package/dist/mcp/servicenow-progressive-indexer.js.map +0 -1
  329. package/dist/mcp/servicenow-reporting-analytics-mcp-refactored.d.ts.map +0 -1
  330. package/dist/mcp/servicenow-reporting-analytics-mcp-refactored.js.map +0 -1
  331. package/dist/mcp/servicenow-reporting-analytics-mcp.d.ts.map +0 -1
  332. package/dist/mcp/servicenow-reporting-analytics-mcp.js.map +0 -1
  333. package/dist/mcp/servicenow-security-compliance-mcp-refactored.d.ts.map +0 -1
  334. package/dist/mcp/servicenow-security-compliance-mcp-refactored.js.map +0 -1
  335. package/dist/mcp/servicenow-security-compliance-mcp.d.ts.map +0 -1
  336. package/dist/mcp/servicenow-security-compliance-mcp.js.map +0 -1
  337. package/dist/mcp/servicenow-update-set-mcp-refactored.d.ts.map +0 -1
  338. package/dist/mcp/servicenow-update-set-mcp-refactored.js.map +0 -1
  339. package/dist/mcp/servicenow-update-set-mcp.d.ts.map +0 -1
  340. package/dist/mcp/servicenow-update-set-mcp.js.map +0 -1
  341. package/dist/mcp/servicenow-xml-flow-mcp.d.ts.map +0 -1
  342. package/dist/mcp/servicenow-xml-flow-mcp.js.map +0 -1
  343. package/dist/mcp/shared/agent-context-provider.d.ts.map +0 -1
  344. package/dist/mcp/shared/agent-context-provider.js.map +0 -1
  345. package/dist/mcp/shared/base-mcp-server.d.ts.map +0 -1
  346. package/dist/mcp/shared/base-mcp-server.js.map +0 -1
  347. package/dist/mcp/shared/mcp-memory-manager.d.ts.map +0 -1
  348. package/dist/mcp/shared/mcp-memory-manager.js.map +0 -1
  349. package/dist/mcp/shared/mcp-resource-manager.d.ts.map +0 -1
  350. package/dist/mcp/shared/mcp-resource-manager.js.map +0 -1
  351. package/dist/mcp/snow-flow-mcp.d.ts.map +0 -1
  352. package/dist/mcp/snow-flow-mcp.js.map +0 -1
  353. package/dist/mcp/start-all-mcp-servers.d.ts.map +0 -1
  354. package/dist/mcp/start-all-mcp-servers.js.map +0 -1
  355. package/dist/mcp/start-servicenow-mcp.d.ts.map +0 -1
  356. package/dist/mcp/start-servicenow-mcp.js.map +0 -1
  357. package/dist/mcp/test-simple-mcp.d.ts.map +0 -1
  358. package/dist/mcp/test-simple-mcp.js.map +0 -1
  359. package/dist/memory/hierarchical-memory-system.d.ts +0 -90
  360. package/dist/memory/hierarchical-memory-system.d.ts.map +0 -1
  361. package/dist/memory/hierarchical-memory-system.js +0 -400
  362. package/dist/memory/hierarchical-memory-system.js.map +0 -1
  363. package/dist/memory/index.d.ts +0 -9
  364. package/dist/memory/index.d.ts.map +0 -1
  365. package/dist/memory/index.js +0 -20
  366. package/dist/memory/index.js.map +0 -1
  367. package/dist/memory/mcp-integration-example.d.ts +0 -6
  368. package/dist/memory/mcp-integration-example.d.ts.map +0 -1
  369. package/dist/memory/mcp-integration-example.js +0 -281
  370. package/dist/memory/mcp-integration-example.js.map +0 -1
  371. package/dist/memory/memory-client.d.ts +0 -199
  372. package/dist/memory/memory-client.d.ts.map +0 -1
  373. package/dist/memory/memory-client.js +0 -364
  374. package/dist/memory/memory-client.js.map +0 -1
  375. package/dist/memory/memory-manager.d.ts +0 -29
  376. package/dist/memory/memory-manager.d.ts.map +0 -1
  377. package/dist/memory/memory-manager.js +0 -280
  378. package/dist/memory/memory-manager.js.map +0 -1
  379. package/dist/memory/memory-operations.d.ts +0 -179
  380. package/dist/memory/memory-operations.d.ts.map +0 -1
  381. package/dist/memory/memory-operations.js +0 -691
  382. package/dist/memory/memory-operations.js.map +0 -1
  383. package/dist/memory/memory-system.d.ts +0 -152
  384. package/dist/memory/memory-system.d.ts.map +0 -1
  385. package/dist/memory/memory-system.js +0 -632
  386. package/dist/memory/memory-system.js.map +0 -1
  387. package/dist/memory/memory-test.d.ts +0 -6
  388. package/dist/memory/memory-test.d.ts.map +0 -1
  389. package/dist/memory/memory-test.js +0 -161
  390. package/dist/memory/memory-test.js.map +0 -1
  391. package/dist/memory/servicenow-artifact-indexer.d.ts +0 -119
  392. package/dist/memory/servicenow-artifact-indexer.d.ts.map +0 -1
  393. package/dist/memory/servicenow-artifact-indexer.js +0 -560
  394. package/dist/memory/servicenow-artifact-indexer.js.map +0 -1
  395. package/dist/memory/snow-flow-memory-patterns.d.ts +0 -213
  396. package/dist/memory/snow-flow-memory-patterns.d.ts.map +0 -1
  397. package/dist/memory/snow-flow-memory-patterns.js +0 -200
  398. package/dist/memory/snow-flow-memory-patterns.js.map +0 -1
  399. package/dist/memory/snow-memory.d.ts +0 -54
  400. package/dist/memory/snow-memory.d.ts.map +0 -1
  401. package/dist/memory/snow-memory.js +0 -301
  402. package/dist/memory/snow-memory.js.map +0 -1
  403. package/dist/memory/swarm-memory.d.ts +0 -135
  404. package/dist/memory/swarm-memory.d.ts.map +0 -1
  405. package/dist/memory/swarm-memory.js +0 -378
  406. package/dist/memory/swarm-memory.js.map +0 -1
  407. package/dist/monitoring/enhanced-monitoring-system.d.ts.map +0 -1
  408. package/dist/monitoring/enhanced-monitoring-system.js.map +0 -1
  409. package/dist/monitoring/performance-tracker.d.ts.map +0 -1
  410. package/dist/monitoring/performance-tracker.js.map +0 -1
  411. package/dist/optimization/cost-optimization-engine.d.ts.map +0 -1
  412. package/dist/optimization/cost-optimization-engine.js.map +0 -1
  413. package/dist/optimization/index.d.ts.map +0 -1
  414. package/dist/optimization/index.js.map +0 -1
  415. package/dist/orchestration/discovery/service-discovery.d.ts.map +0 -1
  416. package/dist/orchestration/discovery/service-discovery.js.map +0 -1
  417. package/dist/orchestration/distributed-orchestrator.d.ts.map +0 -1
  418. package/dist/orchestration/distributed-orchestrator.js.map +0 -1
  419. package/dist/orchestration/distribution/task-distribution-engine.d.ts.map +0 -1
  420. package/dist/orchestration/distribution/task-distribution-engine.js.map +0 -1
  421. package/dist/orchestration/interfaces/distributed-orchestration.interface.d.ts.map +0 -1
  422. package/dist/orchestration/interfaces/distributed-orchestration.interface.js.map +0 -1
  423. package/dist/orchestration/protocols/mcpx-protocol.d.ts.map +0 -1
  424. package/dist/orchestration/protocols/mcpx-protocol.js.map +0 -1
  425. package/dist/orchestration/state/distributed-state-manager.d.ts.map +0 -1
  426. package/dist/orchestration/state/distributed-state-manager.js.map +0 -1
  427. package/dist/orchestrator/flow-composer.d.ts.map +0 -1
  428. package/dist/orchestrator/flow-composer.js.map +0 -1
  429. package/dist/orchestrator/flow-pattern-templates.d.ts.map +0 -1
  430. package/dist/orchestrator/flow-pattern-templates.js.map +0 -1
  431. package/dist/orchestrator/flow-subflow-decision-engine.d.ts.map +0 -1
  432. package/dist/orchestrator/flow-subflow-decision-engine.js.map +0 -1
  433. package/dist/orchestrator/flow-validation-engine.d.ts.map +0 -1
  434. package/dist/orchestrator/flow-validation-engine.js.map +0 -1
  435. package/dist/orchestrator/snow-orchestrator.d.ts.map +0 -1
  436. package/dist/orchestrator/snow-orchestrator.js.map +0 -1
  437. package/dist/orchestrator/subflow-creation-handler.d.ts.map +0 -1
  438. package/dist/orchestrator/subflow-creation-handler.js.map +0 -1
  439. package/dist/patterns/adaptive-patterns.d.ts.map +0 -1
  440. package/dist/patterns/adaptive-patterns.js.map +0 -1
  441. package/dist/queen/advanced-integration-test.d.ts.map +0 -1
  442. package/dist/queen/advanced-integration-test.js.map +0 -1
  443. package/dist/queen/agent-factory.d.ts.map +0 -1
  444. package/dist/queen/agent-factory.js.map +0 -1
  445. package/dist/queen/index.d.ts.map +0 -1
  446. package/dist/queen/index.js.map +0 -1
  447. package/dist/queen/integration-example.d.ts.map +0 -1
  448. package/dist/queen/integration-example.js.map +0 -1
  449. package/dist/queen/integration-test.d.ts.map +0 -1
  450. package/dist/queen/integration-test.js.map +0 -1
  451. package/dist/queen/mcp-execution-bridge.d.ts.map +0 -1
  452. package/dist/queen/mcp-execution-bridge.js.map +0 -1
  453. package/dist/queen/mock-mcp-client.d.ts.map +0 -1
  454. package/dist/queen/mock-mcp-client.js.map +0 -1
  455. package/dist/queen/neural-learning.d.ts.map +0 -1
  456. package/dist/queen/neural-learning.js.map +0 -1
  457. package/dist/queen/parallel-agent-engine.d.ts.map +0 -1
  458. package/dist/queen/parallel-agent-engine.js.map +0 -1
  459. package/dist/queen/queen-memory-system.d.ts.map +0 -1
  460. package/dist/queen/queen-memory-system.js.map +0 -1
  461. package/dist/queen/queen-memory.d.ts.map +0 -1
  462. package/dist/queen/queen-memory.js.map +0 -1
  463. package/dist/queen/run-integration-tests.d.ts.map +0 -1
  464. package/dist/queen/run-integration-tests.js.map +0 -1
  465. package/dist/queen/servicenow-queen.d.ts.map +0 -1
  466. package/dist/queen/servicenow-queen.js.map +0 -1
  467. package/dist/queen/types.d.ts.map +0 -1
  468. package/dist/queen/types.js.map +0 -1
  469. package/dist/rollback/smart-rollback-system.d.ts.map +0 -1
  470. package/dist/rollback/smart-rollback-system.js.map +0 -1
  471. package/dist/snow-flow-system.d.ts.map +0 -1
  472. package/dist/snow-flow-system.js.map +0 -1
  473. package/dist/sparc/coordinators/adaptive-coordinator.d.ts.map +0 -1
  474. package/dist/sparc/coordinators/adaptive-coordinator.js.map +0 -1
  475. package/dist/sparc/coordinators/team-coordinator.d.ts.map +0 -1
  476. package/dist/sparc/coordinators/team-coordinator.js.map +0 -1
  477. package/dist/sparc/modes/team-modes.d.ts.map +0 -1
  478. package/dist/sparc/modes/team-modes.js.map +0 -1
  479. package/dist/sparc/sparc-help.d.ts.map +0 -1
  480. package/dist/sparc/sparc-help.js.map +0 -1
  481. package/dist/sparc/team-sparc.d.ts.map +0 -1
  482. package/dist/sparc/team-sparc.js.map +0 -1
  483. package/dist/sparc/teams/application-team.d.ts.map +0 -1
  484. package/dist/sparc/teams/application-team.js.map +0 -1
  485. package/dist/sparc/teams/flow-team.d.ts.map +0 -1
  486. package/dist/sparc/teams/flow-team.js.map +0 -1
  487. package/dist/sparc/teams/widget-team.d.ts.map +0 -1
  488. package/dist/sparc/teams/widget-team.js.map +0 -1
  489. package/dist/specialists/app-specialists.d.ts.map +0 -1
  490. package/dist/specialists/app-specialists.js.map +0 -1
  491. package/dist/specialists/base-specialist.d.ts.map +0 -1
  492. package/dist/specialists/base-specialist.js.map +0 -1
  493. package/dist/specialists/flow-specialists.d.ts.map +0 -1
  494. package/dist/specialists/flow-specialists.js.map +0 -1
  495. package/dist/specialists/individual-specialists.d.ts.map +0 -1
  496. package/dist/specialists/individual-specialists.js.map +0 -1
  497. package/dist/specialists/widget-specialists.d.ts.map +0 -1
  498. package/dist/specialists/widget-specialists.js.map +0 -1
  499. package/dist/strategies/global-scope-strategy.d.ts.map +0 -1
  500. package/dist/strategies/global-scope-strategy.js.map +0 -1
  501. package/dist/teams/adaptive-team.d.ts.map +0 -1
  502. package/dist/teams/adaptive-team.js.map +0 -1
  503. package/dist/teams/application-team.d.ts.map +0 -1
  504. package/dist/teams/application-team.js.map +0 -1
  505. package/dist/teams/base-team.d.ts.map +0 -1
  506. package/dist/teams/base-team.js.map +0 -1
  507. package/dist/teams/flow-team.d.ts.map +0 -1
  508. package/dist/teams/flow-team.js.map +0 -1
  509. package/dist/teams/widget-team.d.ts.map +0 -1
  510. package/dist/teams/widget-team.js.map +0 -1
  511. package/dist/testing/integration-test-suite.d.ts.map +0 -1
  512. package/dist/testing/integration-test-suite.js.map +0 -1
  513. package/dist/types/index.d.ts.map +0 -1
  514. package/dist/types/index.js.map +0 -1
  515. package/dist/types/servicenow.types.d.ts.map +0 -1
  516. package/dist/types/servicenow.types.js.map +0 -1
  517. package/dist/types/snow-flow.types.d.ts.map +0 -1
  518. package/dist/types/snow-flow.types.js.map +0 -1
  519. package/dist/types/todo.types.d.ts.map +0 -1
  520. package/dist/types/todo.types.js.map +0 -1
  521. package/dist/utils/action-type-cache.d.ts.map +0 -1
  522. package/dist/utils/action-type-cache.js.map +0 -1
  523. package/dist/utils/agent-detector.d.ts.map +0 -1
  524. package/dist/utils/agent-detector.js.map +0 -1
  525. package/dist/utils/artifact-tracker.d.ts.map +0 -1
  526. package/dist/utils/artifact-tracker.js.map +0 -1
  527. package/dist/utils/dependency-detector.d.ts.map +0 -1
  528. package/dist/utils/dependency-detector.js.map +0 -1
  529. package/dist/utils/deployment-metadata-handler.d.ts.map +0 -1
  530. package/dist/utils/deployment-metadata-handler.js.map +0 -1
  531. package/dist/utils/error-recovery.d.ts.map +0 -1
  532. package/dist/utils/error-recovery.js.map +0 -1
  533. package/dist/utils/flow-api-discovery.d.ts.map +0 -1
  534. package/dist/utils/flow-api-discovery.js.map +0 -1
  535. package/dist/utils/flow-xml-generator.d.ts.map +0 -1
  536. package/dist/utils/flow-xml-generator.js.map +0 -1
  537. package/dist/utils/logger.d.ts.map +0 -1
  538. package/dist/utils/logger.js.map +0 -1
  539. package/dist/utils/mcp-auth-middleware.d.ts.map +0 -1
  540. package/dist/utils/mcp-auth-middleware.js.map +0 -1
  541. package/dist/utils/mcp-config-manager.d.ts.map +0 -1
  542. package/dist/utils/mcp-config-manager.js.map +0 -1
  543. package/dist/utils/mcp-server-manager.d.ts.map +0 -1
  544. package/dist/utils/mcp-server-manager.js.map +0 -1
  545. package/dist/utils/mcp-tool-registry.d.ts.map +0 -1
  546. package/dist/utils/mcp-tool-registry.js.map +0 -1
  547. package/dist/utils/migrate-claude-flow.d.ts.map +0 -1
  548. package/dist/utils/migrate-claude-flow.js.map +0 -1
  549. package/dist/utils/migrate-snow-flow.d.ts.map +0 -1
  550. package/dist/utils/migrate-snow-flow.js.map +0 -1
  551. package/dist/utils/oauth-html-templates.d.ts.map +0 -1
  552. package/dist/utils/oauth-html-templates.js.map +0 -1
  553. package/dist/utils/scope-utils.d.ts.map +0 -1
  554. package/dist/utils/scope-utils.js.map +0 -1
  555. package/dist/utils/servicenow-client.d.ts.map +0 -1
  556. package/dist/utils/servicenow-client.js.map +0 -1
  557. package/dist/utils/servicenow-id-generator.d.ts.map +0 -1
  558. package/dist/utils/servicenow-id-generator.js.map +0 -1
  559. package/dist/utils/snow-memory-manager.d.ts.map +0 -1
  560. package/dist/utils/snow-memory-manager.js.map +0 -1
  561. package/dist/utils/snow-oauth-old.d.ts.map +0 -1
  562. package/dist/utils/snow-oauth-old.js.map +0 -1
  563. package/dist/utils/snow-oauth.d.ts.map +0 -1
  564. package/dist/utils/snow-oauth.js.map +0 -1
  565. package/dist/utils/template-engine.d.ts.map +0 -1
  566. package/dist/utils/template-engine.js.map +0 -1
  567. package/dist/utils/theme-manager.d.ts.map +0 -1
  568. package/dist/utils/theme-manager.js.map +0 -1
  569. package/dist/utils/unified-auth-store.d.ts.map +0 -1
  570. package/dist/utils/unified-auth-store.js.map +0 -1
  571. package/dist/utils/update-set-importer.d.ts.map +0 -1
  572. package/dist/utils/update-set-importer.js.map +0 -1
  573. package/dist/utils/update-set-xml-packager.d.ts.map +0 -1
  574. package/dist/utils/update-set-xml-packager.js.map +0 -1
  575. package/dist/utils/widget-template-generator.d.ts.map +0 -1
  576. package/dist/utils/widget-template-generator.js.map +0 -1
  577. package/dist/version.d.ts.map +0 -1
  578. package/dist/version.js.map +0 -1
  579. package/memory/agents/README.md +0 -31
  580. package/memory/claude-flow-data.json +0 -5
  581. package/memory/servicenow_artifacts/000d9224c895221055906c7518aa2d3d.json +0 -30
  582. package/memory/servicenow_artifacts/0196b66173303010e46b4a2214f6a7a2.json +0 -36
  583. package/memory/servicenow_artifacts/125e5d1d837e2a102a7ea130ceaad397.json +0 -30
  584. package/memory/servicenow_artifacts/7637c1f2b7112210a5e5911cde11a972.json +0 -30
  585. package/memory/servicenow_artifacts/default_documentation_tables_1754056582292.json +0 -55
  586. package/memory/servicenow_artifacts/default_documentation_tables_1754057477189.json +0 -55
  587. package/memory/sessions/README.md +0 -32
  588. package/memory/update-set-sessions/01f82af583faea102a7ea130ceaad3d4.json +0 -9
  589. package/memory/update-set-sessions/27718fb983faea102a7ea130ceaad34b.json +0 -9
  590. package/memory/update-set-sessions/412e9bf6833e22502a7ea130ceaad30a.json +0 -8
  591. package/memory/update-set-sessions/66fc5a79837aea102a7ea130ceaad3ab.json +0 -9
  592. package/memory/update-set-sessions/71a30ff5837eea102a7ea130ceaad37f.json +0 -9
  593. package/memory/update-set-sessions/74fba27983faea102a7ea130ceaad3bd.json +0 -9
  594. package/memory/update-set-sessions/a0b147b5837eea102a7ea130ceaad344.json +0 -58
  595. package/memory/update-set-sessions/b13f5eb983baea102a7ea130ceaad33e.json +0 -9
@@ -0,0 +1,183 @@
1
+ // Core types for snow-flow CLI
2
+
3
+ export interface CLIConfig {
4
+ version: string;
5
+ instanceUrl?: string;
6
+ authType?: 'oauth' | 'basic';
7
+ credentials?: AuthCredentials;
8
+ memory?: MemoryConfig;
9
+ claude?: ClaudeConfig;
10
+ }
11
+
12
+ export interface AuthCredentials {
13
+ oauth?: {
14
+ clientId: string;
15
+ clientSecret: string;
16
+ refreshToken?: string;
17
+ accessToken?: string;
18
+ tokenExpiry?: number;
19
+ };
20
+ basic?: {
21
+ username: string;
22
+ password: string;
23
+ };
24
+ }
25
+
26
+ export interface MemoryConfig {
27
+ storageDir: string;
28
+ maxSize: number;
29
+ ttl: number;
30
+ }
31
+
32
+ export interface ClaudeConfig {
33
+ apiKey?: string;
34
+ model?: string;
35
+ maxTokens?: number;
36
+ }
37
+
38
+ export interface SwarmOptions {
39
+ strategy?: 'research' | 'development' | '_analysis' | 'testing' | 'optimization' | 'maintenance';
40
+ mode?: 'centralized' | 'distributed' | 'hierarchical' | 'mesh' | 'hybrid';
41
+ maxAgents?: number;
42
+ parallel?: boolean;
43
+ monitor?: boolean;
44
+ output?: 'json' | 'sqlite' | 'csv' | 'html';
45
+ }
46
+
47
+ export interface Agent {
48
+ id: string;
49
+ name: string;
50
+ type: AgentType;
51
+ status: 'idle' | 'busy' | 'error';
52
+ capabilities: string[];
53
+ memory?: Record<string, any>;
54
+ createdAt: Date;
55
+ }
56
+
57
+ export type AgentType =
58
+ | 'coordinator'
59
+ | 'researcher'
60
+ | 'coder'
61
+ | 'analyst'
62
+ | 'architect'
63
+ | 'tester'
64
+ | 'reviewer'
65
+ | 'optimizer'
66
+ | 'documenter'
67
+ | 'monitor'
68
+ | 'specialist'
69
+ | 'schema-designer'
70
+ | 'widget-builder'
71
+ | 'workflow-designer'
72
+ | 'script-generator'
73
+ | 'security-agent'
74
+ | 'update-set-manager'
75
+ | 'ui-ux-specialist'
76
+ | 'approval-specialist'
77
+ | 'security-specialist'
78
+ | 'css-specialist'
79
+ | 'backend-specialist'
80
+ | 'frontend-specialist'
81
+ | 'performance-specialist';
82
+
83
+ export interface Task {
84
+ id: string;
85
+ description: string;
86
+ status: 'pending' | 'in_progress' | 'completed' | 'failed';
87
+ priority: 'low' | 'medium' | 'high' | 'critical';
88
+ assignedAgent?: string;
89
+ dependencies?: string[];
90
+ result?: any;
91
+ error?: string;
92
+ createdAt: Date;
93
+ updatedAt: Date;
94
+ }
95
+
96
+ export interface MemoryEntry {
97
+ key: string;
98
+ value: any;
99
+ namespace: string;
100
+ ttl?: number;
101
+ createdAt: Date;
102
+ expiresAt?: Date;
103
+ }
104
+
105
+ export interface ServiceNowWidget {
106
+ name: string;
107
+ id?: string;
108
+ template: string;
109
+ controller: string;
110
+ css?: string;
111
+ serverScript?: string;
112
+ clientScript?: string;
113
+ dependencies?: string[];
114
+ options?: Record<string, any>;
115
+ }
116
+
117
+ export interface ServiceNowApp {
118
+ name: string;
119
+ scope: string;
120
+ version: string;
121
+ description?: string;
122
+ tables?: ServiceNowTable[];
123
+ widgets?: ServiceNowWidget[];
124
+ scripts?: ServiceNowScript[];
125
+ workflows?: ServiceNowWorkflow[];
126
+ updateSets?: ServiceNowUpdateSet[];
127
+ }
128
+
129
+ export interface ServiceNowTable {
130
+ name: string;
131
+ label: string;
132
+ extends?: string;
133
+ fields: ServiceNowField[];
134
+ }
135
+
136
+ export interface ServiceNowField {
137
+ name: string;
138
+ label: string;
139
+ type: string;
140
+ reference?: string;
141
+ mandatory?: boolean;
142
+ defaultValue?: any;
143
+ }
144
+
145
+ export interface ServiceNowScript {
146
+ name: string;
147
+ type: 'business_rule' | 'script_include' | 'client_script' | 'ui_action';
148
+ script: string;
149
+ active: boolean;
150
+ table?: string;
151
+ when?: string;
152
+ }
153
+
154
+ export interface ServiceNowWorkflow {
155
+ name: string;
156
+ description?: string;
157
+ table: string;
158
+ active: boolean;
159
+ activities: WorkflowActivity[];
160
+ }
161
+
162
+ export interface WorkflowActivity {
163
+ name: string;
164
+ type: string;
165
+ config: Record<string, any>;
166
+ transitions: WorkflowTransition[];
167
+ }
168
+
169
+ export interface WorkflowTransition {
170
+ to: string;
171
+ condition?: string;
172
+ }
173
+
174
+ export interface ServiceNowUpdateSet {
175
+ name: string;
176
+ description?: string;
177
+ state: 'in_progress' | 'complete' | 'ignore';
178
+ release_date?: Date;
179
+ sys_id?: string;
180
+ }
181
+
182
+ // Re-export coordination framework types
183
+ export * from './snow-flow.types';
@@ -0,0 +1,23 @@
1
+ declare module 'neo4j-driver' {
2
+ export interface Driver {
3
+ session(): Session;
4
+ close(): Promise<void>;
5
+ verifyConnectivity(): Promise<void>;
6
+ }
7
+
8
+ export interface Session {
9
+ run(query: string, params?: any): Promise<any>;
10
+ close(): Promise<void>;
11
+ }
12
+
13
+ export const auth: {
14
+ basic(username: string, password: string): any;
15
+ };
16
+
17
+ export function driver(url: string, auth: any): Driver;
18
+
19
+ export default {
20
+ driver,
21
+ auth
22
+ };
23
+ }
@@ -0,0 +1,307 @@
1
+ export interface ServicePortalWidget {
2
+ sys_id?: string;
3
+ name: string;
4
+ id: string;
5
+ template: string;
6
+ css?: string;
7
+ client_script?: string;
8
+ server_script?: string;
9
+ option_schema?: string;
10
+ public?: boolean;
11
+ roles?: string;
12
+ data?: any;
13
+ }
14
+
15
+ export interface FlowDesignerFlow {
16
+ sys_id?: string;
17
+ name: string;
18
+ description?: string;
19
+ active: boolean;
20
+ trigger: FlowTrigger;
21
+ actions: FlowAction[];
22
+ created_by?: string;
23
+ updated_on?: string;
24
+ }
25
+
26
+ export interface FlowTrigger {
27
+ type: 'record' | 'schedule' | 'application';
28
+ table?: string;
29
+ condition?: string;
30
+ schedule?: string;
31
+ }
32
+
33
+ export interface FlowAction {
34
+ name: string;
35
+ type: string;
36
+ configuration: Record<string, any>;
37
+ order: number;
38
+ }
39
+
40
+ export interface BusinessRule {
41
+ sys_id?: string;
42
+ name: string;
43
+ table: string;
44
+ when: 'before' | 'after' | 'async' | 'display';
45
+ insert: boolean;
46
+ update: boolean;
47
+ delete: boolean;
48
+ query: boolean;
49
+ active: boolean;
50
+ order: number;
51
+ condition?: string;
52
+ script: string;
53
+ description?: string;
54
+ }
55
+
56
+ export interface ScriptInclude {
57
+ sys_id?: string;
58
+ name: string;
59
+ api_name: string;
60
+ script: string;
61
+ active: boolean;
62
+ access?: 'package_private' | 'public';
63
+ client_callable?: boolean;
64
+ description?: string;
65
+ }
66
+
67
+ export interface UIBuilderPage {
68
+ sys_id?: string;
69
+ name: string;
70
+ title: string;
71
+ route: string;
72
+ layout: UIBuilderLayout;
73
+ data_resources: DataResource[];
74
+ client_scripts: ClientStateScript[];
75
+ parameters?: PageParameter[];
76
+ }
77
+
78
+ export interface UIBuilderLayout {
79
+ type: 'container' | 'grid' | 'flex';
80
+ components: UIComponent[];
81
+ styles?: Record<string, any>;
82
+ }
83
+
84
+ export interface UIComponent {
85
+ id: string;
86
+ type: string;
87
+ properties: Record<string, any>;
88
+ children?: UIComponent[];
89
+ events?: ComponentEvent[];
90
+ }
91
+
92
+ export interface DataResource {
93
+ name: string;
94
+ type: 'table' | 'script' | 'rest';
95
+ configuration: Record<string, any>;
96
+ }
97
+
98
+ export interface ClientStateScript {
99
+ name: string;
100
+ script: string;
101
+ parameters?: string[];
102
+ }
103
+
104
+ export interface PageParameter {
105
+ name: string;
106
+ type: string;
107
+ required: boolean;
108
+ default_value?: any;
109
+ }
110
+
111
+ export interface ComponentEvent {
112
+ name: string;
113
+ action_type: string;
114
+ action_configuration: Record<string, any>;
115
+ }
116
+
117
+ export interface ServiceNowApplication {
118
+ sys_id?: string;
119
+ name: string;
120
+ scope: string;
121
+ version: string;
122
+ short_description?: string;
123
+ description?: string;
124
+ vendor?: string;
125
+ vendor_prefix?: string;
126
+ active: boolean;
127
+ tables?: ApplicationTable[];
128
+ modules?: ApplicationModule[];
129
+ roles?: ApplicationRole[];
130
+ }
131
+
132
+ export interface ApplicationTable {
133
+ name: string;
134
+ label: string;
135
+ plural_label: string;
136
+ extends_table?: string;
137
+ fields: TableField[];
138
+ }
139
+
140
+ export interface TableField {
141
+ name: string;
142
+ label: string;
143
+ type: string;
144
+ max_length?: number;
145
+ mandatory?: boolean;
146
+ default_value?: any;
147
+ reference?: string;
148
+ choice_list?: Choice[];
149
+ }
150
+
151
+ export interface Choice {
152
+ value: string;
153
+ label: string;
154
+ order?: number;
155
+ }
156
+
157
+ export interface ApplicationModule {
158
+ name: string;
159
+ title: string;
160
+ table: string;
161
+ view?: string;
162
+ order: number;
163
+ active: boolean;
164
+ roles?: string[];
165
+ }
166
+
167
+ export interface ApplicationRole {
168
+ name: string;
169
+ suffix: string;
170
+ description?: string;
171
+ contains_roles?: string[];
172
+ }
173
+
174
+ export interface UpdateSet {
175
+ sys_id?: string;
176
+ name: string;
177
+ description?: string;
178
+ state: 'in_progress' | 'complete' | 'testing';
179
+ application?: string;
180
+ release_date?: string;
181
+ }
182
+
183
+ export interface ServiceNowAgentConfig {
184
+ instance: string;
185
+ auth: {
186
+ type: 'basic' | 'oauth2';
187
+ credentials: any;
188
+ };
189
+ updateSet?: string;
190
+ application?: string;
191
+ }
192
+
193
+ export type ServiceNowOperation =
194
+ | 'widget.create'
195
+ | 'widget.update'
196
+ | 'widget.delete'
197
+ | 'flow.create'
198
+ | 'flow.update'
199
+ | 'flow.execute'
200
+ | 'script.create'
201
+ | 'script.update'
202
+ | 'ui.create'
203
+ | 'ui.update'
204
+ | 'app.create'
205
+ | 'app.update'
206
+ | 'table.create'
207
+ | 'table.update';
208
+
209
+ export interface ServiceNowAPIResponse<T = any> {
210
+ result: T;
211
+ error?: {
212
+ message: string;
213
+ detail: string;
214
+ };
215
+ }
216
+
217
+ // Core agent types
218
+ export type AgentType = 'widget-builder' | 'workflow-designer' | 'script-generator' | 'ui-builder' | 'app-creator' | 'generic';
219
+
220
+ export interface ServiceNowConfig {
221
+ instance: string;
222
+ username: string;
223
+ password: string;
224
+ clientId?: string;
225
+ clientSecret?: string;
226
+ }
227
+
228
+ export interface AgentTask {
229
+ id: string;
230
+ type: string;
231
+ description: string;
232
+ payload: any;
233
+ priority: 'low' | 'medium' | 'high' | 'critical';
234
+ dependencies?: string[];
235
+ assignedAgent?: string;
236
+ status?: 'pending' | 'in_progress' | 'completed' | 'failed';
237
+ }
238
+
239
+ export interface AgentResult {
240
+ success: boolean;
241
+ data?: any;
242
+ error?: string;
243
+ artifacts?: ServiceNowArtifact[];
244
+ commands?: OrchestrationCommand[];
245
+ }
246
+
247
+ export interface ServiceNowAgent {
248
+ id: string;
249
+ name: string;
250
+ type: AgentType;
251
+ capabilities: string[];
252
+ active: boolean;
253
+ currentTask?: AgentTask;
254
+ }
255
+
256
+ export interface OrchestrationCommand {
257
+ tool: string;
258
+ parameters: any;
259
+ }
260
+
261
+ export interface ServiceNowArtifact {
262
+ type: string;
263
+ name: string;
264
+ content: any;
265
+ path?: string;
266
+ }
267
+
268
+ export interface ScopedApplication {
269
+ sys_id?: string;
270
+ name: string;
271
+ scope: string;
272
+ vendor: string;
273
+ vendor_prefix: string;
274
+ version: string;
275
+ description?: string;
276
+ active: boolean;
277
+ private?: boolean;
278
+ tables?: ApplicationTable[];
279
+ menus?: ApplicationMenu[];
280
+ roles?: ApplicationRole[];
281
+ }
282
+
283
+ export interface ApplicationMenu {
284
+ name: string;
285
+ label: string;
286
+ application: string;
287
+ modules: MenuModule[];
288
+ order?: number;
289
+ }
290
+
291
+ export interface MenuModule {
292
+ name: string;
293
+ label: string;
294
+ type: 'list' | 'form' | 'page' | 'separator';
295
+ table?: string;
296
+ view?: string;
297
+ order: number;
298
+ roles?: string[];
299
+ }
300
+
301
+ export interface UpdateSet {
302
+ sys_id?: string;
303
+ name: string;
304
+ description?: string;
305
+ state: 'in_progress' | 'complete' | 'testing';
306
+ application?: string;
307
+ }
@@ -0,0 +1,186 @@
1
+ import { EventEmitter } from 'eventemitter3';
2
+
3
+ export interface SnowAgent {
4
+ id: string;
5
+ name: string;
6
+ type: AgentType;
7
+ status: AgentStatus;
8
+ capabilities: string[];
9
+ metadata: Record<string, any>;
10
+ createdAt: Date;
11
+ lastActivity: Date;
12
+ }
13
+
14
+ export type AgentType =
15
+ | 'coordinator'
16
+ | 'researcher'
17
+ | 'coder'
18
+ | 'analyst'
19
+ | 'architect'
20
+ | 'tester'
21
+ | 'reviewer'
22
+ | 'optimizer'
23
+ | 'documenter'
24
+ | 'monitor'
25
+ | 'servicenow-specialist'
26
+ | 'workflow-designer'
27
+ | 'ui-builder'
28
+ | 'security-auditor'
29
+ | 'integration-specialist'
30
+ // 🚀 NEW: Specialized agents for parallel execution (v1.1.91)
31
+ | 'widget-creator' // Widget development specialist
32
+ | 'widget-builder' // Widget builder (alias)
33
+ | 'flow-builder' // Flow development specialist
34
+ | 'script-writer' // Script development specialist
35
+ | 'security-agent' // Security _analysis specialist (alias)
36
+ | 'app-architect' // Application architecture specialist
37
+ | 'css-specialist' // Styling and responsive design specialist
38
+ | 'backend-specialist' // Server script specialist
39
+ | 'frontend-specialist' // Client script specialist
40
+ | 'ui-ux-specialist' // User experience specialist
41
+ | 'performance-specialist' // Performance optimization
42
+ | 'accessibility-specialist'// Accessibility compliance
43
+ | 'trigger-specialist' // Flow trigger configuration
44
+ | 'action-specialist' // Flow action development
45
+ | 'approval-specialist' // Approval process specialist
46
+ | 'notification-specialist' // Notification configuration
47
+ | 'error-handler' // Error handling specialist
48
+ | 'security-specialist' // Security implementation
49
+ | 'api-specialist' // API integration specialist
50
+ | 'transform-specialist' // Data transformation specialist
51
+ | 'monitoring-specialist' // Integration monitoring
52
+ | 'documentation-specialist';// Documentation specialist
53
+
54
+ export type AgentStatus = 'idle' | 'busy' | 'error' | 'terminated';
55
+
56
+ export interface Task {
57
+ id: string;
58
+ type: TaskType;
59
+ description: string;
60
+ priority: TaskPriority;
61
+ status: TaskStatus;
62
+ assignedAgent?: string;
63
+ dependencies: string[];
64
+ result?: any;
65
+ error?: Error;
66
+ createdAt: Date;
67
+ startedAt?: Date;
68
+ completedAt?: Date;
69
+ metadata: Record<string, any>;
70
+ }
71
+
72
+ export type TaskType =
73
+ | 'research'
74
+ | 'development'
75
+ | '_analysis'
76
+ | 'testing'
77
+ | 'optimization'
78
+ | 'documentation'
79
+ | 'servicenow-config'
80
+ | 'servicenow-script'
81
+ | 'servicenow-workflow'
82
+ | 'servicenow-ui';
83
+
84
+ export type TaskPriority = 'low' | 'medium' | 'high' | 'critical';
85
+ export type TaskStatus = 'pending' | 'in_progress' | 'completed' | 'failed' | 'cancelled';
86
+
87
+ export interface SwarmConfig {
88
+ maxAgents: number;
89
+ topology: SwarmTopology;
90
+ strategy: SwarmStrategy;
91
+ enableParallel: boolean;
92
+ enableMonitoring: boolean;
93
+ memoryNamespace: string;
94
+ }
95
+
96
+ export type SwarmTopology = 'hierarchical' | 'mesh' | 'ring' | 'star';
97
+ export type SwarmStrategy = 'balanced' | 'specialized' | 'adaptive' | 'auto';
98
+
99
+ export interface MemoryEntry {
100
+ key: string;
101
+ value: any;
102
+ namespace: string;
103
+ ttl?: number;
104
+ createdAt: Date;
105
+ updatedAt: Date;
106
+ accessCount: number;
107
+ metadata: Record<string, any>;
108
+ }
109
+
110
+ export interface OrchestratorEvents {
111
+ 'agent:spawned': (agent: SnowAgent) => void;
112
+ 'agent:terminated': (agentId: string) => void;
113
+ 'agent:status': (agentId: string, status: AgentStatus) => void;
114
+ 'task:created': (task: Task) => void;
115
+ 'task:assigned': (taskId: string, agentId: string) => void;
116
+ 'task:completed': (taskId: string, result: any) => void;
117
+ 'task:failed': (taskId: string, error: Error) => void;
118
+ 'swarm:initialized': (config: SwarmConfig) => void;
119
+ 'error': (error: Error) => void;
120
+ }
121
+
122
+ export interface BaseOrchestratorOptions {
123
+ maxConcurrentTasks?: number;
124
+ taskTimeout?: number;
125
+ memoryNamespace?: string;
126
+ enableLogging?: boolean;
127
+ logLevel?: 'debug' | 'info' | 'warn' | 'error';
128
+ }
129
+
130
+ export interface ServiceNowConfig {
131
+ instance: string;
132
+ username?: string;
133
+ password?: string;
134
+ clientId?: string;
135
+ clientSecret?: string;
136
+ authMethod: 'basic' | 'oauth';
137
+ apiVersion?: string;
138
+ }
139
+
140
+ export interface ServiceNowContext {
141
+ config: ServiceNowConfig;
142
+ currentApp?: string;
143
+ updateSet?: string;
144
+ scope?: string;
145
+ tables?: string[];
146
+ }
147
+
148
+ export interface AgentMessage {
149
+ from: string;
150
+ to: string;
151
+ type: MessageType;
152
+ payload: any;
153
+ timestamp: Date;
154
+ correlationId?: string;
155
+ }
156
+
157
+ export type MessageType =
158
+ | 'task_assignment'
159
+ | 'task_result'
160
+ | 'coordination'
161
+ | 'knowledge_share'
162
+ | 'status_update'
163
+ | 'error';
164
+
165
+ export interface WorkflowDefinition {
166
+ id: string;
167
+ name: string;
168
+ description: string;
169
+ steps: WorkflowStep[];
170
+ triggers?: WorkflowTrigger[];
171
+ variables?: Record<string, any>;
172
+ }
173
+
174
+ export interface WorkflowStep {
175
+ id: string;
176
+ name: string;
177
+ type: string;
178
+ config: Record<string, any>;
179
+ dependencies: string[];
180
+ outputs?: string[];
181
+ }
182
+
183
+ export interface WorkflowTrigger {
184
+ type: 'manual' | 'schedule' | 'event' | 'webhook';
185
+ config: Record<string, any>;
186
+ }