kailash 0.3.2__tar.gz → 0.4.1__tar.gz

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 (247) hide show
  1. {kailash-0.3.2/src/kailash.egg-info → kailash-0.4.1}/PKG-INFO +256 -20
  2. {kailash-0.3.2 → kailash-0.4.1}/README.md +251 -19
  3. {kailash-0.3.2 → kailash-0.4.1}/pyproject.toml +22 -1
  4. {kailash-0.3.2 → kailash-0.4.1}/setup.py +1 -1
  5. kailash-0.4.1/src/kailash/__init__.py +63 -0
  6. kailash-0.4.1/src/kailash/access_control/__init__.py +129 -0
  7. kailash-0.4.1/src/kailash/access_control/managers.py +461 -0
  8. kailash-0.4.1/src/kailash/access_control/rule_evaluators.py +467 -0
  9. kailash-0.4.1/src/kailash/access_control_abac.py +825 -0
  10. kailash-0.4.1/src/kailash/config/__init__.py +27 -0
  11. kailash-0.4.1/src/kailash/config/database_config.py +359 -0
  12. kailash-0.4.1/src/kailash/database/__init__.py +28 -0
  13. kailash-0.4.1/src/kailash/database/execution_pipeline.py +499 -0
  14. kailash-0.4.1/src/kailash/middleware/__init__.py +306 -0
  15. kailash-0.4.1/src/kailash/middleware/auth/__init__.py +33 -0
  16. kailash-0.4.1/src/kailash/middleware/auth/access_control.py +436 -0
  17. kailash-0.4.1/src/kailash/middleware/auth/auth_manager.py +422 -0
  18. kailash-0.4.1/src/kailash/middleware/auth/jwt_auth.py +477 -0
  19. kailash-0.4.1/src/kailash/middleware/auth/kailash_jwt_auth.py +616 -0
  20. kailash-0.4.1/src/kailash/middleware/communication/__init__.py +37 -0
  21. kailash-0.4.1/src/kailash/middleware/communication/ai_chat.py +989 -0
  22. kailash-0.4.1/src/kailash/middleware/communication/api_gateway.py +802 -0
  23. kailash-0.4.1/src/kailash/middleware/communication/events.py +470 -0
  24. kailash-0.4.1/src/kailash/middleware/communication/realtime.py +710 -0
  25. kailash-0.4.1/src/kailash/middleware/core/__init__.py +21 -0
  26. kailash-0.4.1/src/kailash/middleware/core/agent_ui.py +890 -0
  27. kailash-0.4.1/src/kailash/middleware/core/schema.py +643 -0
  28. kailash-0.4.1/src/kailash/middleware/core/workflows.py +396 -0
  29. kailash-0.4.1/src/kailash/middleware/database/__init__.py +63 -0
  30. kailash-0.4.1/src/kailash/middleware/database/base.py +113 -0
  31. kailash-0.4.1/src/kailash/middleware/database/base_models.py +525 -0
  32. kailash-0.4.1/src/kailash/middleware/database/enums.py +106 -0
  33. kailash-0.4.1/src/kailash/middleware/database/migrations.py +12 -0
  34. kailash-0.3.2/src/kailash/api/database.py → kailash-0.4.1/src/kailash/middleware/database/models.py +183 -291
  35. kailash-0.4.1/src/kailash/middleware/database/repositories.py +685 -0
  36. kailash-0.4.1/src/kailash/middleware/database/session_manager.py +19 -0
  37. kailash-0.4.1/src/kailash/middleware/mcp/__init__.py +38 -0
  38. kailash-0.4.1/src/kailash/middleware/mcp/client_integration.py +585 -0
  39. kailash-0.4.1/src/kailash/middleware/mcp/enhanced_server.py +576 -0
  40. {kailash-0.3.2 → kailash-0.4.1}/src/kailash/nodes/__init__.py +27 -3
  41. kailash-0.4.1/src/kailash/nodes/admin/__init__.py +42 -0
  42. kailash-0.4.1/src/kailash/nodes/admin/audit_log.py +794 -0
  43. kailash-0.4.1/src/kailash/nodes/admin/permission_check.py +864 -0
  44. kailash-0.4.1/src/kailash/nodes/admin/role_management.py +823 -0
  45. kailash-0.4.1/src/kailash/nodes/admin/security_event.py +1523 -0
  46. kailash-0.4.1/src/kailash/nodes/admin/user_management.py +944 -0
  47. {kailash-0.3.2 → kailash-0.4.1}/src/kailash/nodes/ai/a2a.py +24 -7
  48. {kailash-0.3.2 → kailash-0.4.1}/src/kailash/nodes/ai/ai_providers.py +248 -40
  49. {kailash-0.3.2 → kailash-0.4.1}/src/kailash/nodes/ai/embedding_generator.py +11 -11
  50. {kailash-0.3.2 → kailash-0.4.1}/src/kailash/nodes/ai/intelligent_agent_orchestrator.py +99 -11
  51. {kailash-0.3.2 → kailash-0.4.1}/src/kailash/nodes/ai/llm_agent.py +436 -5
  52. {kailash-0.3.2 → kailash-0.4.1}/src/kailash/nodes/ai/self_organizing.py +85 -10
  53. kailash-0.4.1/src/kailash/nodes/ai/vision_utils.py +148 -0
  54. kailash-0.4.1/src/kailash/nodes/alerts/__init__.py +26 -0
  55. kailash-0.4.1/src/kailash/nodes/alerts/base.py +234 -0
  56. kailash-0.4.1/src/kailash/nodes/alerts/discord.py +499 -0
  57. {kailash-0.3.2 → kailash-0.4.1}/src/kailash/nodes/api/auth.py +287 -6
  58. {kailash-0.3.2 → kailash-0.4.1}/src/kailash/nodes/api/rest.py +151 -0
  59. kailash-0.4.1/src/kailash/nodes/auth/__init__.py +17 -0
  60. kailash-0.4.1/src/kailash/nodes/auth/directory_integration.py +1228 -0
  61. kailash-0.4.1/src/kailash/nodes/auth/enterprise_auth_provider.py +1328 -0
  62. kailash-0.4.1/src/kailash/nodes/auth/mfa.py +2338 -0
  63. kailash-0.4.1/src/kailash/nodes/auth/risk_assessment.py +872 -0
  64. kailash-0.4.1/src/kailash/nodes/auth/session_management.py +1093 -0
  65. kailash-0.4.1/src/kailash/nodes/auth/sso.py +1040 -0
  66. {kailash-0.3.2 → kailash-0.4.1}/src/kailash/nodes/base.py +344 -13
  67. {kailash-0.3.2 → kailash-0.4.1}/src/kailash/nodes/base_cycle_aware.py +4 -2
  68. {kailash-0.3.2 → kailash-0.4.1}/src/kailash/nodes/base_with_acl.py +1 -1
  69. {kailash-0.3.2 → kailash-0.4.1}/src/kailash/nodes/code/python.py +283 -10
  70. kailash-0.4.1/src/kailash/nodes/compliance/__init__.py +9 -0
  71. kailash-0.4.1/src/kailash/nodes/compliance/data_retention.py +1888 -0
  72. kailash-0.4.1/src/kailash/nodes/compliance/gdpr.py +2004 -0
  73. {kailash-0.3.2 → kailash-0.4.1}/src/kailash/nodes/data/__init__.py +22 -2
  74. kailash-0.4.1/src/kailash/nodes/data/async_connection.py +469 -0
  75. kailash-0.4.1/src/kailash/nodes/data/async_sql.py +757 -0
  76. kailash-0.4.1/src/kailash/nodes/data/async_vector.py +598 -0
  77. kailash-0.4.1/src/kailash/nodes/data/readers.py +1326 -0
  78. kailash-0.4.1/src/kailash/nodes/data/retrieval.py +537 -0
  79. {kailash-0.3.2 → kailash-0.4.1}/src/kailash/nodes/data/sharepoint_graph.py +397 -21
  80. {kailash-0.3.2 → kailash-0.4.1}/src/kailash/nodes/data/sql.py +94 -5
  81. {kailash-0.3.2 → kailash-0.4.1}/src/kailash/nodes/data/streaming.py +68 -8
  82. {kailash-0.3.2 → kailash-0.4.1}/src/kailash/nodes/data/vector_db.py +54 -4
  83. kailash-0.4.1/src/kailash/nodes/enterprise/__init__.py +13 -0
  84. kailash-0.4.1/src/kailash/nodes/enterprise/batch_processor.py +741 -0
  85. kailash-0.4.1/src/kailash/nodes/enterprise/data_lineage.py +497 -0
  86. {kailash-0.3.2 → kailash-0.4.1}/src/kailash/nodes/logic/convergence.py +31 -9
  87. {kailash-0.3.2 → kailash-0.4.1}/src/kailash/nodes/logic/operations.py +14 -3
  88. kailash-0.4.1/src/kailash/nodes/mixins/__init__.py +19 -0
  89. kailash-0.4.1/src/kailash/nodes/mixins/event_emitter.py +201 -0
  90. {kailash-0.3.2 → kailash-0.4.1}/src/kailash/nodes/mixins/mcp.py +9 -4
  91. kailash-0.4.1/src/kailash/nodes/mixins/security.py +165 -0
  92. kailash-0.4.1/src/kailash/nodes/monitoring/__init__.py +7 -0
  93. kailash-0.4.1/src/kailash/nodes/monitoring/performance_benchmark.py +2497 -0
  94. kailash-0.4.1/src/kailash/nodes/rag/__init__.py +284 -0
  95. kailash-0.4.1/src/kailash/nodes/rag/advanced.py +1615 -0
  96. kailash-0.4.1/src/kailash/nodes/rag/agentic.py +773 -0
  97. kailash-0.4.1/src/kailash/nodes/rag/conversational.py +999 -0
  98. kailash-0.4.1/src/kailash/nodes/rag/evaluation.py +875 -0
  99. kailash-0.4.1/src/kailash/nodes/rag/federated.py +1188 -0
  100. kailash-0.4.1/src/kailash/nodes/rag/graph.py +721 -0
  101. kailash-0.4.1/src/kailash/nodes/rag/multimodal.py +671 -0
  102. kailash-0.4.1/src/kailash/nodes/rag/optimized.py +933 -0
  103. kailash-0.4.1/src/kailash/nodes/rag/privacy.py +1059 -0
  104. kailash-0.4.1/src/kailash/nodes/rag/query_processing.py +1335 -0
  105. kailash-0.4.1/src/kailash/nodes/rag/realtime.py +764 -0
  106. kailash-0.4.1/src/kailash/nodes/rag/registry.py +547 -0
  107. kailash-0.4.1/src/kailash/nodes/rag/router.py +837 -0
  108. kailash-0.4.1/src/kailash/nodes/rag/similarity.py +1854 -0
  109. kailash-0.4.1/src/kailash/nodes/rag/strategies.py +566 -0
  110. kailash-0.4.1/src/kailash/nodes/rag/workflows.py +575 -0
  111. kailash-0.4.1/src/kailash/nodes/security/__init__.py +19 -0
  112. kailash-0.4.1/src/kailash/nodes/security/abac_evaluator.py +1411 -0
  113. kailash-0.4.1/src/kailash/nodes/security/audit_log.py +103 -0
  114. kailash-0.4.1/src/kailash/nodes/security/behavior_analysis.py +1893 -0
  115. kailash-0.4.1/src/kailash/nodes/security/credential_manager.py +401 -0
  116. kailash-0.4.1/src/kailash/nodes/security/rotating_credentials.py +760 -0
  117. kailash-0.4.1/src/kailash/nodes/security/security_event.py +133 -0
  118. kailash-0.4.1/src/kailash/nodes/security/threat_detection.py +1103 -0
  119. kailash-0.4.1/src/kailash/nodes/testing/__init__.py +9 -0
  120. kailash-0.4.1/src/kailash/nodes/testing/credential_testing.py +499 -0
  121. {kailash-0.3.2 → kailash-0.4.1}/src/kailash/nodes/transform/__init__.py +10 -2
  122. kailash-0.4.1/src/kailash/nodes/transform/chunkers.py +669 -0
  123. {kailash-0.3.2 → kailash-0.4.1}/src/kailash/nodes/transform/processors.py +484 -14
  124. kailash-0.4.1/src/kailash/nodes/validation.py +321 -0
  125. {kailash-0.3.2 → kailash-0.4.1}/src/kailash/runtime/access_controlled.py +1 -1
  126. {kailash-0.3.2 → kailash-0.4.1}/src/kailash/runtime/async_local.py +41 -7
  127. {kailash-0.3.2 → kailash-0.4.1}/src/kailash/runtime/docker.py +1 -1
  128. kailash-0.4.1/src/kailash/runtime/local.py +963 -0
  129. {kailash-0.3.2 → kailash-0.4.1}/src/kailash/runtime/parallel.py +1 -1
  130. {kailash-0.3.2 → kailash-0.4.1}/src/kailash/runtime/parallel_cyclic.py +1 -1
  131. {kailash-0.3.2 → kailash-0.4.1}/src/kailash/runtime/testing.py +210 -2
  132. {kailash-0.3.2 → kailash-0.4.1}/src/kailash/security.py +1 -1
  133. kailash-0.4.1/src/kailash/utils/migrations/__init__.py +25 -0
  134. kailash-0.4.1/src/kailash/utils/migrations/generator.py +433 -0
  135. kailash-0.4.1/src/kailash/utils/migrations/models.py +231 -0
  136. kailash-0.4.1/src/kailash/utils/migrations/runner.py +489 -0
  137. kailash-0.4.1/src/kailash/utils/secure_logging.py +342 -0
  138. {kailash-0.3.2 → kailash-0.4.1}/src/kailash/workflow/__init__.py +16 -0
  139. {kailash-0.3.2 → kailash-0.4.1}/src/kailash/workflow/cyclic_runner.py +3 -4
  140. {kailash-0.3.2 → kailash-0.4.1}/src/kailash/workflow/graph.py +70 -2
  141. kailash-0.4.1/src/kailash/workflow/resilience.py +249 -0
  142. {kailash-0.3.2 → kailash-0.4.1}/src/kailash/workflow/templates.py +726 -0
  143. {kailash-0.3.2 → kailash-0.4.1/src/kailash.egg-info}/PKG-INFO +256 -20
  144. {kailash-0.3.2 → kailash-0.4.1}/src/kailash.egg-info/SOURCES.txt +98 -7
  145. {kailash-0.3.2 → kailash-0.4.1}/src/kailash.egg-info/requires.txt +4 -0
  146. kailash-0.3.2/src/kailash/__init__.py +0 -31
  147. kailash-0.3.2/src/kailash/api/__init__.py +0 -17
  148. kailash-0.3.2/src/kailash/api/__main__.py +0 -6
  149. kailash-0.3.2/src/kailash/api/studio_secure.py +0 -893
  150. kailash-0.3.2/src/kailash/mcp/__main__.py +0 -13
  151. kailash-0.3.2/src/kailash/mcp/server_new.py +0 -336
  152. kailash-0.3.2/src/kailash/mcp/servers/__init__.py +0 -12
  153. kailash-0.3.2/src/kailash/nodes/data/readers.py +0 -559
  154. kailash-0.3.2/src/kailash/nodes/data/retrieval.py +0 -178
  155. kailash-0.3.2/src/kailash/nodes/mixins/__init__.py +0 -11
  156. kailash-0.3.2/src/kailash/nodes/transform/chunkers.py +0 -78
  157. kailash-0.3.2/src/kailash/runtime/local.py +0 -544
  158. {kailash-0.3.2 → kailash-0.4.1}/LICENSE +0 -0
  159. {kailash-0.3.2 → kailash-0.4.1}/MANIFEST.in +0 -0
  160. {kailash-0.3.2 → kailash-0.4.1}/setup.cfg +0 -0
  161. {kailash-0.3.2 → kailash-0.4.1}/src/kailash/__main__.py +0 -0
  162. {kailash-0.3.2 → kailash-0.4.1}/src/kailash/access_control.py +0 -0
  163. {kailash-0.3.2 → kailash-0.4.1}/src/kailash/api/auth.py +0 -0
  164. {kailash-0.3.2 → kailash-0.4.1}/src/kailash/api/custom_nodes.py +0 -0
  165. {kailash-0.3.2 → kailash-0.4.1}/src/kailash/api/custom_nodes_secure.py +0 -0
  166. {kailash-0.3.2 → kailash-0.4.1}/src/kailash/api/gateway.py +0 -0
  167. {kailash-0.3.2 → kailash-0.4.1}/src/kailash/api/mcp_integration.py +0 -0
  168. {kailash-0.3.2 → kailash-0.4.1}/src/kailash/api/studio.py +0 -0
  169. {kailash-0.3.2 → kailash-0.4.1}/src/kailash/api/workflow_api.py +0 -0
  170. {kailash-0.3.2 → kailash-0.4.1}/src/kailash/cli/__init__.py +0 -0
  171. {kailash-0.3.2 → kailash-0.4.1}/src/kailash/cli/commands.py +0 -0
  172. {kailash-0.3.2 → kailash-0.4.1}/src/kailash/manifest.py +0 -0
  173. {kailash-0.3.2 → kailash-0.4.1}/src/kailash/mcp/__init__.py +0 -0
  174. {kailash-0.3.2 → kailash-0.4.1}/src/kailash/mcp/ai_registry_server.py +0 -0
  175. {kailash-0.3.2 → kailash-0.4.1}/src/kailash/mcp/client.py +0 -0
  176. {kailash-0.3.2 → kailash-0.4.1}/src/kailash/mcp/client_new.py +0 -0
  177. {kailash-0.3.2 → kailash-0.4.1}/src/kailash/mcp/server.py +0 -0
  178. {kailash-0.3.2 → kailash-0.4.1}/src/kailash/mcp/server_enhanced.py +0 -0
  179. {kailash-0.3.2 → kailash-0.4.1}/src/kailash/mcp/servers/ai_registry.py +0 -0
  180. {kailash-0.3.2 → kailash-0.4.1}/src/kailash/mcp/utils/__init__.py +0 -0
  181. {kailash-0.3.2 → kailash-0.4.1}/src/kailash/mcp/utils/cache.py +0 -0
  182. {kailash-0.3.2 → kailash-0.4.1}/src/kailash/mcp/utils/config.py +0 -0
  183. {kailash-0.3.2 → kailash-0.4.1}/src/kailash/mcp/utils/formatters.py +0 -0
  184. {kailash-0.3.2 → kailash-0.4.1}/src/kailash/mcp/utils/metrics.py +0 -0
  185. {kailash-0.3.2 → kailash-0.4.1}/src/kailash/nodes/ai/__init__.py +0 -0
  186. {kailash-0.3.2 → kailash-0.4.1}/src/kailash/nodes/ai/agents.py +0 -0
  187. {kailash-0.3.2 → kailash-0.4.1}/src/kailash/nodes/ai/iterative_llm_agent.py +0 -0
  188. {kailash-0.3.2 → kailash-0.4.1}/src/kailash/nodes/ai/models.py +0 -0
  189. {kailash-0.3.2 → kailash-0.4.1}/src/kailash/nodes/api/__init__.py +0 -0
  190. {kailash-0.3.2 → kailash-0.4.1}/src/kailash/nodes/api/graphql.py +0 -0
  191. {kailash-0.3.2 → kailash-0.4.1}/src/kailash/nodes/api/http.py +0 -0
  192. {kailash-0.3.2 → kailash-0.4.1}/src/kailash/nodes/api/monitoring.py +0 -0
  193. {kailash-0.3.2 → kailash-0.4.1}/src/kailash/nodes/api/rate_limiting.py +0 -0
  194. {kailash-0.3.2 → kailash-0.4.1}/src/kailash/nodes/api/security.py +0 -0
  195. {kailash-0.3.2 → kailash-0.4.1}/src/kailash/nodes/base_async.py +0 -0
  196. {kailash-0.3.2 → kailash-0.4.1}/src/kailash/nodes/code/__init__.py +0 -0
  197. {kailash-0.3.2 → kailash-0.4.1}/src/kailash/nodes/data/directory.py +0 -0
  198. {kailash-0.3.2 → kailash-0.4.1}/src/kailash/nodes/data/event_generation.py +0 -0
  199. {kailash-0.3.2 → kailash-0.4.1}/src/kailash/nodes/data/file_discovery.py +0 -0
  200. {kailash-0.3.2 → kailash-0.4.1}/src/kailash/nodes/data/sources.py +0 -0
  201. {kailash-0.3.2 → kailash-0.4.1}/src/kailash/nodes/data/writers.py +0 -0
  202. {kailash-0.3.2 → kailash-0.4.1}/src/kailash/nodes/logic/__init__.py +0 -0
  203. {kailash-0.3.2 → kailash-0.4.1}/src/kailash/nodes/logic/async_operations.py +0 -0
  204. {kailash-0.3.2 → kailash-0.4.1}/src/kailash/nodes/logic/loop.py +0 -0
  205. {kailash-0.3.2 → kailash-0.4.1}/src/kailash/nodes/logic/workflow.py +0 -0
  206. {kailash-0.3.2 → kailash-0.4.1}/src/kailash/nodes/mixins.py +0 -0
  207. {kailash-0.3.2 → kailash-0.4.1}/src/kailash/nodes/transform/formatters.py +0 -0
  208. {kailash-0.3.2 → kailash-0.4.1}/src/kailash/runtime/__init__.py +0 -0
  209. {kailash-0.3.2 → kailash-0.4.1}/src/kailash/runtime/runner.py +0 -0
  210. {kailash-0.3.2 → kailash-0.4.1}/src/kailash/sdk_exceptions.py +0 -0
  211. {kailash-0.3.2 → kailash-0.4.1}/src/kailash/tracking/__init__.py +0 -0
  212. {kailash-0.3.2 → kailash-0.4.1}/src/kailash/tracking/manager.py +0 -0
  213. {kailash-0.3.2 → kailash-0.4.1}/src/kailash/tracking/metrics_collector.py +0 -0
  214. {kailash-0.3.2 → kailash-0.4.1}/src/kailash/tracking/models.py +0 -0
  215. {kailash-0.3.2 → kailash-0.4.1}/src/kailash/tracking/storage/__init__.py +0 -0
  216. {kailash-0.3.2 → kailash-0.4.1}/src/kailash/tracking/storage/base.py +0 -0
  217. {kailash-0.3.2 → kailash-0.4.1}/src/kailash/tracking/storage/database.py +0 -0
  218. {kailash-0.3.2 → kailash-0.4.1}/src/kailash/tracking/storage/filesystem.py +0 -0
  219. {kailash-0.3.2 → kailash-0.4.1}/src/kailash/utils/__init__.py +0 -0
  220. {kailash-0.3.2 → kailash-0.4.1}/src/kailash/utils/export.py +0 -0
  221. {kailash-0.3.2 → kailash-0.4.1}/src/kailash/utils/templates.py +0 -0
  222. {kailash-0.3.2 → kailash-0.4.1}/src/kailash/visualization/__init__.py +0 -0
  223. {kailash-0.3.2 → kailash-0.4.1}/src/kailash/visualization/api.py +0 -0
  224. {kailash-0.3.2 → kailash-0.4.1}/src/kailash/visualization/dashboard.py +0 -0
  225. {kailash-0.3.2 → kailash-0.4.1}/src/kailash/visualization/performance.py +0 -0
  226. {kailash-0.3.2 → kailash-0.4.1}/src/kailash/visualization/reports.py +0 -0
  227. {kailash-0.3.2 → kailash-0.4.1}/src/kailash/workflow/builder.py +0 -0
  228. {kailash-0.3.2 → kailash-0.4.1}/src/kailash/workflow/convergence.py +0 -0
  229. {kailash-0.3.2 → kailash-0.4.1}/src/kailash/workflow/cycle_analyzer.py +0 -0
  230. {kailash-0.3.2 → kailash-0.4.1}/src/kailash/workflow/cycle_builder.py +0 -0
  231. {kailash-0.3.2 → kailash-0.4.1}/src/kailash/workflow/cycle_config.py +0 -0
  232. {kailash-0.3.2 → kailash-0.4.1}/src/kailash/workflow/cycle_debugger.py +0 -0
  233. {kailash-0.3.2 → kailash-0.4.1}/src/kailash/workflow/cycle_exceptions.py +0 -0
  234. {kailash-0.3.2 → kailash-0.4.1}/src/kailash/workflow/cycle_profiler.py +0 -0
  235. {kailash-0.3.2 → kailash-0.4.1}/src/kailash/workflow/cycle_state.py +0 -0
  236. {kailash-0.3.2 → kailash-0.4.1}/src/kailash/workflow/mermaid_visualizer.py +0 -0
  237. {kailash-0.3.2 → kailash-0.4.1}/src/kailash/workflow/migration.py +0 -0
  238. {kailash-0.3.2 → kailash-0.4.1}/src/kailash/workflow/mock_registry.py +0 -0
  239. {kailash-0.3.2 → kailash-0.4.1}/src/kailash/workflow/runner.py +0 -0
  240. {kailash-0.3.2 → kailash-0.4.1}/src/kailash/workflow/safety.py +0 -0
  241. {kailash-0.3.2 → kailash-0.4.1}/src/kailash/workflow/state.py +0 -0
  242. {kailash-0.3.2 → kailash-0.4.1}/src/kailash/workflow/validation.py +0 -0
  243. {kailash-0.3.2 → kailash-0.4.1}/src/kailash/workflow/visualization.py +0 -0
  244. {kailash-0.3.2 → kailash-0.4.1}/src/kailash.egg-info/dependency_links.txt +0 -0
  245. {kailash-0.3.2 → kailash-0.4.1}/src/kailash.egg-info/entry_points.txt +0 -0
  246. {kailash-0.3.2 → kailash-0.4.1}/src/kailash.egg-info/not-zip-safe +0 -0
  247. {kailash-0.3.2 → kailash-0.4.1}/src/kailash.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: kailash
3
- Version: 0.3.2
3
+ Version: 0.4.1
4
4
  Summary: Python SDK for the Kailash container-node architecture
5
5
  Home-page: https://github.com/integrum/kailash-python-sdk
6
6
  Author: Integrum
@@ -57,6 +57,10 @@ Requires-Dist: python-jose>=3.5.0
57
57
  Requires-Dist: pytest-xdist>=3.6.0
58
58
  Requires-Dist: pytest-timeout>=2.3.0
59
59
  Requires-Dist: pytest-split>=0.9.0
60
+ Requires-Dist: asyncpg>=0.30.0
61
+ Requires-Dist: aiomysql>=0.2.0
62
+ Requires-Dist: twilio>=9.6.3
63
+ Requires-Dist: qrcode>=8.2
60
64
  Provides-Extra: dev
61
65
  Requires-Dist: pytest>=7.0; extra == "dev"
62
66
  Requires-Dist: pytest-cov>=3.0; extra == "dev"
@@ -76,8 +80,8 @@ Dynamic: requires-python
76
80
  <a href="https://pepy.tech/project/kailash"><img src="https://static.pepy.tech/badge/kailash" alt="Downloads"></a>
77
81
  <img src="https://img.shields.io/badge/license-MIT-green.svg" alt="MIT License">
78
82
  <img src="https://img.shields.io/badge/code%20style-black-000000.svg" alt="Code style: black">
79
- <img src="https://img.shields.io/badge/tests-751%20passing-brightgreen.svg" alt="Tests: 751 passing">
80
- <img src="https://img.shields.io/badge/coverage-100%25-brightgreen.svg" alt="Coverage: 100%">
83
+ <img src="https://img.shields.io/badge/tests-127%20organized-brightgreen.svg" alt="Tests: 127 organized">
84
+ <img src="https://img.shields.io/badge/test%20structure-reorganized-blue.svg" alt="Test structure: reorganized">
81
85
  </p>
82
86
 
83
87
  <p align="center">
@@ -105,12 +109,73 @@ Dynamic: requires-python
105
109
  - 🤖 **Self-Organizing Agents**: Autonomous agent pools with intelligent team formation and convergence detection
106
110
  - 🧠 **Agent-to-Agent Communication**: Shared memory pools and intelligent caching for coordinated multi-agent systems
107
111
  - 🔒 **Production Security**: Comprehensive security framework with path traversal prevention, code sandboxing, and audit logging
112
+ - 🛡️ **Admin Tool Framework**: Complete enterprise admin infrastructure with React UI, RBAC, audit logging, and LLM-based QA testing
108
113
  - 🎨 **Visual Workflow Builder**: Kailash Workflow Studio - drag-and-drop interface for creating and managing workflows (coming soon)
109
114
  - 🔁 **Cyclic Workflows (v0.2.0)**: Universal Hybrid Cyclic Graph Architecture with 30,000+ iterations/second performance
110
115
  - 🛠️ **Developer Tools**: CycleAnalyzer, CycleDebugger, CycleProfiler for production-ready cyclic workflows
111
116
  - 📈 **High Performance**: Optimized execution engine supporting 100,000+ iteration workflows
112
117
  - 📁 **Complete Finance Workflow Library (v0.3.1)**: Production-ready financial workflows with AI analysis
113
118
  - 💼 **Enterprise Workflow Patterns**: Credit risk, portfolio optimization, trading signals, fraud detection
119
+ - 🔔 **Production Alert System**: Rich Discord alerts with rate limiting, retry logic, and rich embed support
120
+ - 🏭 **Session 067 Enhancements**: Business workflow templates, data lineage tracking, automatic credential rotation
121
+ - 🔄 **Zero-Downtime Operations**: Automatic credential rotation with enterprise notifications and audit trails
122
+ - 🌉 **Enterprise Middleware (v0.4.0)**: Production-ready middleware architecture with real-time agent-frontend communication, dynamic workflows, and AI chat integration
123
+
124
+ ## 🏗️ Project Architecture
125
+
126
+ The Kailash project is organized into three distinct layers:
127
+
128
+ ### Core Architecture (v0.4.0)
129
+ ```
130
+ ┌─────────────────┐ ┌──────────────────┐ ┌─────────────────┐
131
+ │ Frontend │ │ Middleware │ │ Kailash Core │
132
+ │ │ │ │ │ │
133
+ │ • React/Vue │◄───│ • Agent-UI │◄───│ • Workflows │
134
+ │ • JavaScript │ │ • Real-time │ │ • Nodes │
135
+ │ • Mobile Apps │ │ • API Gateway │ │ • Runtime │
136
+ │ │ │ • AI Chat │ │ • Security │
137
+ │ │ │ • WebSocket/SSE │ │ • Database │
138
+ └─────────────────┘ └──────────────────┘ └─────────────────┘
139
+ ```
140
+
141
+ ```
142
+ kailash_python_sdk/
143
+ ├── src/kailash/ # Core SDK - Framework and building blocks
144
+ ├── apps/ # Applications - Production-ready solutions built with the SDK
145
+ └── studio/ # UI Layer - Frontend interfaces and visual tools
146
+ ```
147
+
148
+ ### Layer Overview
149
+
150
+ 1. **SDK Layer** (`src/kailash/`) - The core framework providing:
151
+ - Nodes: Reusable computational units (100+ built-in)
152
+ - Workflows: DAG-based orchestration with cyclic support
153
+ - Runtime: Unified execution engine (async + enterprise)
154
+ - Middleware: Enterprise communication layer (NEW in v0.4.0)
155
+ - Security: RBAC/ABAC access control with audit logging
156
+
157
+ 2. **Application Layer** (`apps/`) - Complete applications including:
158
+ - User Management System (Django++ capabilities)
159
+ - Future: Workflow Designer, Data Pipeline, API Gateway, etc.
160
+
161
+ 3. **UI Layer** (`studio/`) - Modern React interfaces for:
162
+ - Admin dashboards
163
+ - Workflow visualization
164
+ - Application UIs
165
+
166
+ ### Installation Options
167
+
168
+ ```bash
169
+ # Core SDK only
170
+ pip install kailash
171
+
172
+ # SDK with User Management
173
+ pip install kailash[user-management]
174
+
175
+ # Everything
176
+ pip install kailash[all]
177
+ ```
178
+ >>>>>>> origin/main
114
179
 
115
180
  ## 🎯 Who Is This For?
116
181
 
@@ -257,7 +322,7 @@ workflow.add_node("optimizer", PythonCodeNode.from_function(func=optimize_portfo
257
322
  - Industry-specific solutions by vertical
258
323
  - Enterprise integration patterns
259
324
  - `essentials/` - Quick reference and cheatsheets
260
- - `nodes/` - Comprehensive node catalog (66+ nodes)
325
+ - `nodes/` - Comprehensive node catalog (93+ nodes including Session 067 enhancements)
261
326
  - `patterns/` - Architectural patterns
262
327
 
263
328
  ### For SDK Contributors
@@ -282,8 +347,112 @@ workflow.add_node("optimizer", PythonCodeNode.from_function(func=optimize_portfo
282
347
  - [Examples](examples/)
283
348
  - [Release Notes](CHANGELOG.md)
284
349
 
350
+ ## 🌉 Enterprise Middleware (v0.4.0)
351
+
352
+ ### Production-Ready Communication Layer
353
+
354
+ The new middleware architecture provides enterprise-grade components for building production applications:
355
+
356
+ ```python
357
+ from kailash.middleware import (
358
+ AgentUIMiddleware,
359
+ APIGateway,
360
+ create_gateway,
361
+ RealtimeMiddleware,
362
+ AIChatMiddleware
363
+ )
364
+
365
+ # Create enterprise middleware stack
366
+ agent_ui = AgentUIMiddleware(
367
+ max_sessions=1000,
368
+ session_timeout_minutes=60,
369
+ enable_persistence=True
370
+ )
371
+
372
+ # API Gateway with authentication
373
+ gateway = create_gateway(
374
+ title="My Production API",
375
+ cors_origins=["https://myapp.com"],
376
+ enable_docs=True
377
+ )
378
+
379
+ # Real-time communication
380
+ realtime = RealtimeMiddleware(agent_ui)
381
+
382
+ # AI chat integration
383
+ ai_chat = AIChatMiddleware(
384
+ agent_ui,
385
+ enable_vector_search=True,
386
+ llm_provider="ollama"
387
+ )
388
+ ```
389
+
390
+ ### Key Middleware Features
391
+
392
+ - **Dynamic Workflow Creation**: Create workflows from frontend configurations using `WorkflowBuilder.from_dict()`
393
+ - **Real-time Communication**: WebSocket and SSE support for live updates
394
+ - **Session Management**: Multi-tenant isolation with automatic cleanup
395
+ - **AI Chat Integration**: Natural language workflow generation with context awareness
396
+ - **Database Persistence**: Repository pattern with audit logging
397
+ - **JWT Authentication**: Enterprise security with RBAC/ABAC access control
398
+ - **Health Monitoring**: Built-in health checks and performance metrics
399
+
400
+ ### Frontend Integration
401
+
402
+ ```python
403
+ # Create session for frontend client
404
+ session_id = await agent_ui.create_session("user123")
405
+
406
+ # Dynamic workflow from frontend
407
+ workflow_config = {
408
+ "name": "data_pipeline",
409
+ "nodes": [...],
410
+ "connections": [...]
411
+ }
412
+
413
+ workflow_id = await agent_ui.create_dynamic_workflow(
414
+ session_id, workflow_config
415
+ )
416
+
417
+ # Execute with real-time updates
418
+ execution_id = await agent_ui.execute_workflow(
419
+ session_id, workflow_id, inputs={}
420
+ )
421
+ ```
422
+
423
+ **Test Excellence**: 17/17 integration tests passing with 100% reliability for production deployment.
424
+
425
+ See [Middleware Integration Guide](sdk-users/developer/16-middleware-integration-guide.md) for complete documentation.
426
+
285
427
  ## 🔥 Advanced Features
286
428
 
429
+ ### Unified Access Control (v0.3.3)
430
+
431
+ Single interface for all access control strategies:
432
+
433
+ ```python
434
+ from kailash.access_control import AccessControlManager
435
+
436
+ # Choose your strategy
437
+ manager = AccessControlManager(strategy="abac") # or "rbac" or "hybrid"
438
+
439
+ # ABAC example with helper functions
440
+ from kailash.access_control import create_attribute_condition
441
+
442
+ condition = create_attribute_condition(
443
+ path="user.attributes.department",
444
+ operator="hierarchical_match",
445
+ value="finance"
446
+ )
447
+
448
+ # Database integration
449
+ db_node = AsyncSQLDatabaseNode(
450
+ name="financial_query",
451
+ query="SELECT * FROM sensitive_data",
452
+ access_control_manager=manager
453
+ )
454
+ ```
455
+
287
456
  ### Cyclic Workflows (Enhanced in v0.2.2)
288
457
 
289
458
  Build iterative workflows with the new CycleBuilder API:
@@ -346,14 +515,17 @@ api.run()
346
515
 
347
516
  ## 🏗️ Key Components
348
517
 
349
- ### Nodes (60+ built-in)
518
+ ### Nodes (85+ built-in)
350
519
 
351
- - **Data**: CSVReaderNode, JSONReaderNode, SQLDatabaseNode, DirectoryReaderNode
520
+ - **Data**: CSVReaderNode, JSONReaderNode, SQLDatabaseNode, AsyncSQLDatabaseNode, DirectoryReaderNode
521
+ - **Admin**: UserManagementNode, RoleManagementNode, PermissionCheckNode, AuditLogNode, SecurityEventNode
352
522
  - **Transform**: DataTransformer, DataFrameFilter, DataFrameJoiner
353
- - **AI/ML**: LLMAgentNode, EmbeddingGeneratorNode, A2ACoordinatorNode
354
- - **API**: RESTClientNode, GraphQLNode, AuthNode
523
+ - **AI/ML**: LLMAgentNode, EmbeddingGeneratorNode, A2ACoordinatorNode, MCPAgentNode
524
+ - **API**: RESTClientNode, GraphQLNode, AuthNode, HTTPRequestNode
355
525
  - **Logic**: SwitchNode, MergeNode, ConvergenceCheckerNode
356
526
  - **Code**: PythonCodeNode, WorkflowNode
527
+ - **Alerts**: DiscordAlertNode with rich embeds and rate limiting
528
+ - **Security**: EnhancedAccessControlManager (ABAC with 16 operators)
357
529
 
358
530
  ### Runtimes
359
531
 
@@ -443,23 +615,87 @@ ruff check .
443
615
  python scripts/test-all-examples.py
444
616
  ```
445
617
 
618
+ ## 🧪 Tests & Examples
619
+
620
+ ### Comprehensive Test Suite
621
+ The SDK features a fully reorganized test suite with 127 tests organized by purpose:
622
+
623
+ ```bash
624
+ # Run all tests
625
+ pytest
626
+
627
+ # Fast unit tests (92 tests)
628
+ pytest tests/unit/
629
+
630
+ # Integration tests (31 tests)
631
+ pytest tests/integration/
632
+
633
+ # End-to-end tests (4 tests)
634
+ pytest tests/e2e/
635
+
636
+ # Specific component tests
637
+ pytest tests/unit/nodes/ai/
638
+ ```
639
+
640
+ **Test Structure:**
641
+ - **Unit Tests**: Fast, isolated component validation
642
+ - **Integration Tests**: Component interaction testing
643
+ - **E2E Tests**: Complete scenario validation
644
+ - **Unified Configuration**: Single `conftest.py` with 76+ fixtures
645
+
646
+ ### Production Workflows & Examples
647
+ Clear separation of purpose for maximum value:
648
+
649
+ **Business Workflows** (`sdk-users/workflows/`):
650
+ ```
651
+ sdk-users/workflows/
652
+ ├── quickstart/ # 5-minute success stories
653
+ ├── by-industry/ # Finance, healthcare, manufacturing
654
+ ├── by-pattern/ # Data processing, AI/ML, API integration
655
+ ├── integrations/ # Third-party platform connections
656
+ └── production-ready/ # Enterprise deployment patterns
657
+ ```
658
+
659
+ **SDK Development** (`examples/`):
660
+ ```
661
+ examples/
662
+ ├── feature-validation/ # SDK component testing
663
+ ├── test-harness/ # Development utilities
664
+ └── utils/ # Shared development tools
665
+ ```
666
+
667
+ **Key Principles:**
668
+ - **Workflows**: Production business value, real-world solutions
669
+ - **Examples**: SDK development, feature validation
670
+ - **Tests**: Quality assurance, regression prevention
671
+
446
672
  ## 📈 Project Status
447
673
 
448
- -Core workflow engine
449
- - 60+ production-ready nodes
450
- - Local and parallel runtimes
674
+ ###v0.4.0 - Enterprise Middleware Architecture
675
+ - **Middleware Layer**: Complete refactor from monolithic to composable middleware
676
+ - **Real-time Communication**: WebSocket/SSE with comprehensive event streaming
677
+ - **AI Integration**: Built-in chat middleware with workflow generation
678
+ - **Test Excellence**: 799 tests passing (100% pass rate), organized structure
679
+ - **Gateway Integration**: Updated for middleware-based architecture
680
+ - **Performance**: Excluded slow tests from CI, builds complete in <2 minutes
681
+
682
+ ### ✅ Previous Releases
683
+ - ✅ Core workflow engine with 100+ production-ready nodes
684
+ - ✅ Unified LocalRuntime (async + enterprise features)
451
685
  - ✅ Export to container format
452
- - ✅ Real-time monitoring
453
- - ✅ Comprehensive test suite (751 tests)
454
- - ✅ Self-organizing agent systems
455
- - ✅ Hierarchical RAG architecture
456
- - ✅ REST API wrapper
686
+ - ✅ Reorganized test suite (unit/integration/e2e structure)
687
+ - ✅ Self-organizing agent systems and hierarchical RAG
457
688
  - ✅ Cyclic workflow support with CycleBuilder API
458
- - ✅ Production security framework
459
- - ✅ Comprehensive workflow library (v0.2.2)
460
- - 🚧 Visual workflow builder (in progress)
461
- - 🚧 Docker runtime
689
+ - ✅ Production security framework with RBAC/ABAC/Hybrid
690
+ - ✅ Async database infrastructure with pgvector support
691
+ - Admin tool framework with React UI and QA testing
692
+ - Comprehensive workflow library (finance, enterprise patterns)
693
+
694
+ ### 🚧 In Progress
695
+ - 🚧 Visual workflow builder (Studio UI)
696
+ - 🚧 Docker runtime integration
462
697
  - 🚧 Cloud deployment tools
698
+ - 🚧 Advanced RAG toolkit validation
463
699
 
464
700
  ## 📄 License
465
701
 
@@ -6,8 +6,8 @@
6
6
  <a href="https://pepy.tech/project/kailash"><img src="https://static.pepy.tech/badge/kailash" alt="Downloads"></a>
7
7
  <img src="https://img.shields.io/badge/license-MIT-green.svg" alt="MIT License">
8
8
  <img src="https://img.shields.io/badge/code%20style-black-000000.svg" alt="Code style: black">
9
- <img src="https://img.shields.io/badge/tests-751%20passing-brightgreen.svg" alt="Tests: 751 passing">
10
- <img src="https://img.shields.io/badge/coverage-100%25-brightgreen.svg" alt="Coverage: 100%">
9
+ <img src="https://img.shields.io/badge/tests-127%20organized-brightgreen.svg" alt="Tests: 127 organized">
10
+ <img src="https://img.shields.io/badge/test%20structure-reorganized-blue.svg" alt="Test structure: reorganized">
11
11
  </p>
12
12
 
13
13
  <p align="center">
@@ -35,12 +35,73 @@
35
35
  - 🤖 **Self-Organizing Agents**: Autonomous agent pools with intelligent team formation and convergence detection
36
36
  - 🧠 **Agent-to-Agent Communication**: Shared memory pools and intelligent caching for coordinated multi-agent systems
37
37
  - 🔒 **Production Security**: Comprehensive security framework with path traversal prevention, code sandboxing, and audit logging
38
+ - 🛡️ **Admin Tool Framework**: Complete enterprise admin infrastructure with React UI, RBAC, audit logging, and LLM-based QA testing
38
39
  - 🎨 **Visual Workflow Builder**: Kailash Workflow Studio - drag-and-drop interface for creating and managing workflows (coming soon)
39
40
  - 🔁 **Cyclic Workflows (v0.2.0)**: Universal Hybrid Cyclic Graph Architecture with 30,000+ iterations/second performance
40
41
  - 🛠️ **Developer Tools**: CycleAnalyzer, CycleDebugger, CycleProfiler for production-ready cyclic workflows
41
42
  - 📈 **High Performance**: Optimized execution engine supporting 100,000+ iteration workflows
42
43
  - 📁 **Complete Finance Workflow Library (v0.3.1)**: Production-ready financial workflows with AI analysis
43
44
  - 💼 **Enterprise Workflow Patterns**: Credit risk, portfolio optimization, trading signals, fraud detection
45
+ - 🔔 **Production Alert System**: Rich Discord alerts with rate limiting, retry logic, and rich embed support
46
+ - 🏭 **Session 067 Enhancements**: Business workflow templates, data lineage tracking, automatic credential rotation
47
+ - 🔄 **Zero-Downtime Operations**: Automatic credential rotation with enterprise notifications and audit trails
48
+ - 🌉 **Enterprise Middleware (v0.4.0)**: Production-ready middleware architecture with real-time agent-frontend communication, dynamic workflows, and AI chat integration
49
+
50
+ ## 🏗️ Project Architecture
51
+
52
+ The Kailash project is organized into three distinct layers:
53
+
54
+ ### Core Architecture (v0.4.0)
55
+ ```
56
+ ┌─────────────────┐ ┌──────────────────┐ ┌─────────────────┐
57
+ │ Frontend │ │ Middleware │ │ Kailash Core │
58
+ │ │ │ │ │ │
59
+ │ • React/Vue │◄───│ • Agent-UI │◄───│ • Workflows │
60
+ │ • JavaScript │ │ • Real-time │ │ • Nodes │
61
+ │ • Mobile Apps │ │ • API Gateway │ │ • Runtime │
62
+ │ │ │ • AI Chat │ │ • Security │
63
+ │ │ │ • WebSocket/SSE │ │ • Database │
64
+ └─────────────────┘ └──────────────────┘ └─────────────────┘
65
+ ```
66
+
67
+ ```
68
+ kailash_python_sdk/
69
+ ├── src/kailash/ # Core SDK - Framework and building blocks
70
+ ├── apps/ # Applications - Production-ready solutions built with the SDK
71
+ └── studio/ # UI Layer - Frontend interfaces and visual tools
72
+ ```
73
+
74
+ ### Layer Overview
75
+
76
+ 1. **SDK Layer** (`src/kailash/`) - The core framework providing:
77
+ - Nodes: Reusable computational units (100+ built-in)
78
+ - Workflows: DAG-based orchestration with cyclic support
79
+ - Runtime: Unified execution engine (async + enterprise)
80
+ - Middleware: Enterprise communication layer (NEW in v0.4.0)
81
+ - Security: RBAC/ABAC access control with audit logging
82
+
83
+ 2. **Application Layer** (`apps/`) - Complete applications including:
84
+ - User Management System (Django++ capabilities)
85
+ - Future: Workflow Designer, Data Pipeline, API Gateway, etc.
86
+
87
+ 3. **UI Layer** (`studio/`) - Modern React interfaces for:
88
+ - Admin dashboards
89
+ - Workflow visualization
90
+ - Application UIs
91
+
92
+ ### Installation Options
93
+
94
+ ```bash
95
+ # Core SDK only
96
+ pip install kailash
97
+
98
+ # SDK with User Management
99
+ pip install kailash[user-management]
100
+
101
+ # Everything
102
+ pip install kailash[all]
103
+ ```
104
+ >>>>>>> origin/main
44
105
 
45
106
  ## 🎯 Who Is This For?
46
107
 
@@ -187,7 +248,7 @@ workflow.add_node("optimizer", PythonCodeNode.from_function(func=optimize_portfo
187
248
  - Industry-specific solutions by vertical
188
249
  - Enterprise integration patterns
189
250
  - `essentials/` - Quick reference and cheatsheets
190
- - `nodes/` - Comprehensive node catalog (66+ nodes)
251
+ - `nodes/` - Comprehensive node catalog (93+ nodes including Session 067 enhancements)
191
252
  - `patterns/` - Architectural patterns
192
253
 
193
254
  ### For SDK Contributors
@@ -212,8 +273,112 @@ workflow.add_node("optimizer", PythonCodeNode.from_function(func=optimize_portfo
212
273
  - [Examples](examples/)
213
274
  - [Release Notes](CHANGELOG.md)
214
275
 
276
+ ## 🌉 Enterprise Middleware (v0.4.0)
277
+
278
+ ### Production-Ready Communication Layer
279
+
280
+ The new middleware architecture provides enterprise-grade components for building production applications:
281
+
282
+ ```python
283
+ from kailash.middleware import (
284
+ AgentUIMiddleware,
285
+ APIGateway,
286
+ create_gateway,
287
+ RealtimeMiddleware,
288
+ AIChatMiddleware
289
+ )
290
+
291
+ # Create enterprise middleware stack
292
+ agent_ui = AgentUIMiddleware(
293
+ max_sessions=1000,
294
+ session_timeout_minutes=60,
295
+ enable_persistence=True
296
+ )
297
+
298
+ # API Gateway with authentication
299
+ gateway = create_gateway(
300
+ title="My Production API",
301
+ cors_origins=["https://myapp.com"],
302
+ enable_docs=True
303
+ )
304
+
305
+ # Real-time communication
306
+ realtime = RealtimeMiddleware(agent_ui)
307
+
308
+ # AI chat integration
309
+ ai_chat = AIChatMiddleware(
310
+ agent_ui,
311
+ enable_vector_search=True,
312
+ llm_provider="ollama"
313
+ )
314
+ ```
315
+
316
+ ### Key Middleware Features
317
+
318
+ - **Dynamic Workflow Creation**: Create workflows from frontend configurations using `WorkflowBuilder.from_dict()`
319
+ - **Real-time Communication**: WebSocket and SSE support for live updates
320
+ - **Session Management**: Multi-tenant isolation with automatic cleanup
321
+ - **AI Chat Integration**: Natural language workflow generation with context awareness
322
+ - **Database Persistence**: Repository pattern with audit logging
323
+ - **JWT Authentication**: Enterprise security with RBAC/ABAC access control
324
+ - **Health Monitoring**: Built-in health checks and performance metrics
325
+
326
+ ### Frontend Integration
327
+
328
+ ```python
329
+ # Create session for frontend client
330
+ session_id = await agent_ui.create_session("user123")
331
+
332
+ # Dynamic workflow from frontend
333
+ workflow_config = {
334
+ "name": "data_pipeline",
335
+ "nodes": [...],
336
+ "connections": [...]
337
+ }
338
+
339
+ workflow_id = await agent_ui.create_dynamic_workflow(
340
+ session_id, workflow_config
341
+ )
342
+
343
+ # Execute with real-time updates
344
+ execution_id = await agent_ui.execute_workflow(
345
+ session_id, workflow_id, inputs={}
346
+ )
347
+ ```
348
+
349
+ **Test Excellence**: 17/17 integration tests passing with 100% reliability for production deployment.
350
+
351
+ See [Middleware Integration Guide](sdk-users/developer/16-middleware-integration-guide.md) for complete documentation.
352
+
215
353
  ## 🔥 Advanced Features
216
354
 
355
+ ### Unified Access Control (v0.3.3)
356
+
357
+ Single interface for all access control strategies:
358
+
359
+ ```python
360
+ from kailash.access_control import AccessControlManager
361
+
362
+ # Choose your strategy
363
+ manager = AccessControlManager(strategy="abac") # or "rbac" or "hybrid"
364
+
365
+ # ABAC example with helper functions
366
+ from kailash.access_control import create_attribute_condition
367
+
368
+ condition = create_attribute_condition(
369
+ path="user.attributes.department",
370
+ operator="hierarchical_match",
371
+ value="finance"
372
+ )
373
+
374
+ # Database integration
375
+ db_node = AsyncSQLDatabaseNode(
376
+ name="financial_query",
377
+ query="SELECT * FROM sensitive_data",
378
+ access_control_manager=manager
379
+ )
380
+ ```
381
+
217
382
  ### Cyclic Workflows (Enhanced in v0.2.2)
218
383
 
219
384
  Build iterative workflows with the new CycleBuilder API:
@@ -276,14 +441,17 @@ api.run()
276
441
 
277
442
  ## 🏗️ Key Components
278
443
 
279
- ### Nodes (60+ built-in)
444
+ ### Nodes (85+ built-in)
280
445
 
281
- - **Data**: CSVReaderNode, JSONReaderNode, SQLDatabaseNode, DirectoryReaderNode
446
+ - **Data**: CSVReaderNode, JSONReaderNode, SQLDatabaseNode, AsyncSQLDatabaseNode, DirectoryReaderNode
447
+ - **Admin**: UserManagementNode, RoleManagementNode, PermissionCheckNode, AuditLogNode, SecurityEventNode
282
448
  - **Transform**: DataTransformer, DataFrameFilter, DataFrameJoiner
283
- - **AI/ML**: LLMAgentNode, EmbeddingGeneratorNode, A2ACoordinatorNode
284
- - **API**: RESTClientNode, GraphQLNode, AuthNode
449
+ - **AI/ML**: LLMAgentNode, EmbeddingGeneratorNode, A2ACoordinatorNode, MCPAgentNode
450
+ - **API**: RESTClientNode, GraphQLNode, AuthNode, HTTPRequestNode
285
451
  - **Logic**: SwitchNode, MergeNode, ConvergenceCheckerNode
286
452
  - **Code**: PythonCodeNode, WorkflowNode
453
+ - **Alerts**: DiscordAlertNode with rich embeds and rate limiting
454
+ - **Security**: EnhancedAccessControlManager (ABAC with 16 operators)
287
455
 
288
456
  ### Runtimes
289
457
 
@@ -373,23 +541,87 @@ ruff check .
373
541
  python scripts/test-all-examples.py
374
542
  ```
375
543
 
544
+ ## 🧪 Tests & Examples
545
+
546
+ ### Comprehensive Test Suite
547
+ The SDK features a fully reorganized test suite with 127 tests organized by purpose:
548
+
549
+ ```bash
550
+ # Run all tests
551
+ pytest
552
+
553
+ # Fast unit tests (92 tests)
554
+ pytest tests/unit/
555
+
556
+ # Integration tests (31 tests)
557
+ pytest tests/integration/
558
+
559
+ # End-to-end tests (4 tests)
560
+ pytest tests/e2e/
561
+
562
+ # Specific component tests
563
+ pytest tests/unit/nodes/ai/
564
+ ```
565
+
566
+ **Test Structure:**
567
+ - **Unit Tests**: Fast, isolated component validation
568
+ - **Integration Tests**: Component interaction testing
569
+ - **E2E Tests**: Complete scenario validation
570
+ - **Unified Configuration**: Single `conftest.py` with 76+ fixtures
571
+
572
+ ### Production Workflows & Examples
573
+ Clear separation of purpose for maximum value:
574
+
575
+ **Business Workflows** (`sdk-users/workflows/`):
576
+ ```
577
+ sdk-users/workflows/
578
+ ├── quickstart/ # 5-minute success stories
579
+ ├── by-industry/ # Finance, healthcare, manufacturing
580
+ ├── by-pattern/ # Data processing, AI/ML, API integration
581
+ ├── integrations/ # Third-party platform connections
582
+ └── production-ready/ # Enterprise deployment patterns
583
+ ```
584
+
585
+ **SDK Development** (`examples/`):
586
+ ```
587
+ examples/
588
+ ├── feature-validation/ # SDK component testing
589
+ ├── test-harness/ # Development utilities
590
+ └── utils/ # Shared development tools
591
+ ```
592
+
593
+ **Key Principles:**
594
+ - **Workflows**: Production business value, real-world solutions
595
+ - **Examples**: SDK development, feature validation
596
+ - **Tests**: Quality assurance, regression prevention
597
+
376
598
  ## 📈 Project Status
377
599
 
378
- -Core workflow engine
379
- - 60+ production-ready nodes
380
- - Local and parallel runtimes
600
+ ###v0.4.0 - Enterprise Middleware Architecture
601
+ - **Middleware Layer**: Complete refactor from monolithic to composable middleware
602
+ - **Real-time Communication**: WebSocket/SSE with comprehensive event streaming
603
+ - **AI Integration**: Built-in chat middleware with workflow generation
604
+ - **Test Excellence**: 799 tests passing (100% pass rate), organized structure
605
+ - **Gateway Integration**: Updated for middleware-based architecture
606
+ - **Performance**: Excluded slow tests from CI, builds complete in <2 minutes
607
+
608
+ ### ✅ Previous Releases
609
+ - ✅ Core workflow engine with 100+ production-ready nodes
610
+ - ✅ Unified LocalRuntime (async + enterprise features)
381
611
  - ✅ Export to container format
382
- - ✅ Real-time monitoring
383
- - ✅ Comprehensive test suite (751 tests)
384
- - ✅ Self-organizing agent systems
385
- - ✅ Hierarchical RAG architecture
386
- - ✅ REST API wrapper
612
+ - ✅ Reorganized test suite (unit/integration/e2e structure)
613
+ - ✅ Self-organizing agent systems and hierarchical RAG
387
614
  - ✅ Cyclic workflow support with CycleBuilder API
388
- - ✅ Production security framework
389
- - ✅ Comprehensive workflow library (v0.2.2)
390
- - 🚧 Visual workflow builder (in progress)
391
- - 🚧 Docker runtime
615
+ - ✅ Production security framework with RBAC/ABAC/Hybrid
616
+ - ✅ Async database infrastructure with pgvector support
617
+ - Admin tool framework with React UI and QA testing
618
+ - Comprehensive workflow library (finance, enterprise patterns)
619
+
620
+ ### 🚧 In Progress
621
+ - 🚧 Visual workflow builder (Studio UI)
622
+ - 🚧 Docker runtime integration
392
623
  - 🚧 Cloud deployment tools
624
+ - 🚧 Advanced RAG toolkit validation
393
625
 
394
626
  ## 📄 License
395
627