candura 0.2.4.dev1__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 (847) hide show
  1. candura-0.2.4.dev1/LICENSE +202 -0
  2. candura-0.2.4.dev1/PKG-INFO +95 -0
  3. candura-0.2.4.dev1/README.md +334 -0
  4. candura-0.2.4.dev1/README_PYPI.md +35 -0
  5. candura-0.2.4.dev1/candura/core/__init__.py +16 -0
  6. candura-0.2.4.dev1/candura/core/agentic/__init__.py +43 -0
  7. candura-0.2.4.dev1/candura/core/agentic/agentic.md +1014 -0
  8. candura-0.2.4.dev1/candura/core/agentic/chassi/__init__.py +20 -0
  9. candura-0.2.4.dev1/candura/core/agentic/chassi/admission.py +156 -0
  10. candura-0.2.4.dev1/candura/core/agentic/chassi/agent.py +232 -0
  11. candura-0.2.4.dev1/candura/core/agentic/chassi/agent_runner.py +204 -0
  12. candura-0.2.4.dev1/candura/core/agentic/chassi/binder.py +93 -0
  13. candura-0.2.4.dev1/candura/core/agentic/chassi/budget.py +106 -0
  14. candura-0.2.4.dev1/candura/core/agentic/chassi/contract.py +101 -0
  15. candura-0.2.4.dev1/candura/core/agentic/chassi/execution.py +88 -0
  16. candura-0.2.4.dev1/candura/core/agentic/chassi/harness.py +207 -0
  17. candura-0.2.4.dev1/candura/core/agentic/chassi/report.py +180 -0
  18. candura-0.2.4.dev1/candura/core/agentic/conversations/__init__.py +58 -0
  19. candura-0.2.4.dev1/candura/core/agentic/conversations/closing.py +72 -0
  20. candura-0.2.4.dev1/candura/core/agentic/conversations/dedupe.py +230 -0
  21. candura-0.2.4.dev1/candura/core/agentic/conversations/locks.py +243 -0
  22. candura-0.2.4.dev1/candura/core/agentic/conversations/models.py +323 -0
  23. candura-0.2.4.dev1/candura/core/agentic/conversations/notify.py +369 -0
  24. candura-0.2.4.dev1/candura/core/agentic/conversations/notify_values.py +92 -0
  25. candura-0.2.4.dev1/candura/core/agentic/conversations/queries.py +73 -0
  26. candura-0.2.4.dev1/candura/core/agentic/conversations/repository.py +371 -0
  27. candura-0.2.4.dev1/candura/core/agentic/conversations/store.py +103 -0
  28. candura-0.2.4.dev1/candura/core/agentic/definition.py +322 -0
  29. candura-0.2.4.dev1/candura/core/agentic/loader.py +308 -0
  30. candura-0.2.4.dev1/candura/core/agentic/loop/__init__.py +175 -0
  31. candura-0.2.4.dev1/candura/core/agentic/loop/catalog/__init__.py +23 -0
  32. candura-0.2.4.dev1/candura/core/agentic/loop/catalog/commands.py +78 -0
  33. candura-0.2.4.dev1/candura/core/agentic/loop/catalog/intention.py +39 -0
  34. candura-0.2.4.dev1/candura/core/agentic/loop/catalog/intents.py +288 -0
  35. candura-0.2.4.dev1/candura/core/agentic/loop/catalog/slot_text.py +106 -0
  36. candura-0.2.4.dev1/candura/core/agentic/loop/conversation.py +296 -0
  37. candura-0.2.4.dev1/candura/core/agentic/loop/delivery/__init__.py +8 -0
  38. candura-0.2.4.dev1/candura/core/agentic/loop/delivery/builder.py +37 -0
  39. candura-0.2.4.dev1/candura/core/agentic/loop/delivery/context.py +41 -0
  40. candura-0.2.4.dev1/candura/core/agentic/loop/delivery/stage.py +26 -0
  41. candura-0.2.4.dev1/candura/core/agentic/loop/evaluation/__init__.py +8 -0
  42. candura-0.2.4.dev1/candura/core/agentic/loop/evaluation/builder.py +36 -0
  43. candura-0.2.4.dev1/candura/core/agentic/loop/evaluation/context.py +107 -0
  44. candura-0.2.4.dev1/candura/core/agentic/loop/evaluation/stage.py +35 -0
  45. candura-0.2.4.dev1/candura/core/agentic/loop/execution/__init__.py +44 -0
  46. candura-0.2.4.dev1/candura/core/agentic/loop/execution/agentic.py +62 -0
  47. candura-0.2.4.dev1/candura/core/agentic/loop/execution/builder.py +45 -0
  48. candura-0.2.4.dev1/candura/core/agentic/loop/execution/builtin.py +87 -0
  49. candura-0.2.4.dev1/candura/core/agentic/loop/execution/content.py +66 -0
  50. candura-0.2.4.dev1/candura/core/agentic/loop/execution/context.py +259 -0
  51. candura-0.2.4.dev1/candura/core/agentic/loop/execution/engine.py +179 -0
  52. candura-0.2.4.dev1/candura/core/agentic/loop/execution/plan.py +93 -0
  53. candura-0.2.4.dev1/candura/core/agentic/loop/execution/stage.py +150 -0
  54. candura-0.2.4.dev1/candura/core/agentic/loop/execution/trace.py +285 -0
  55. candura-0.2.4.dev1/candura/core/agentic/loop/interpretation/__init__.py +27 -0
  56. candura-0.2.4.dev1/candura/core/agentic/loop/interpretation/agent.py +193 -0
  57. candura-0.2.4.dev1/candura/core/agentic/loop/interpretation/builder.py +86 -0
  58. candura-0.2.4.dev1/candura/core/agentic/loop/interpretation/commands.py +31 -0
  59. candura-0.2.4.dev1/candura/core/agentic/loop/interpretation/context.py +40 -0
  60. candura-0.2.4.dev1/candura/core/agentic/loop/interpretation/interpreter.py +193 -0
  61. candura-0.2.4.dev1/candura/core/agentic/loop/interpretation/pipeline.py +96 -0
  62. candura-0.2.4.dev1/candura/core/agentic/loop/interpretation/query_context.py +95 -0
  63. candura-0.2.4.dev1/candura/core/agentic/loop/interpretation/stage.py +65 -0
  64. candura-0.2.4.dev1/candura/core/agentic/loop/panel.py +44 -0
  65. candura-0.2.4.dev1/candura/core/agentic/loop/planning/__init__.py +29 -0
  66. candura-0.2.4.dev1/candura/core/agentic/loop/planning/builder.py +74 -0
  67. candura-0.2.4.dev1/candura/core/agentic/loop/planning/context.py +135 -0
  68. candura-0.2.4.dev1/candura/core/agentic/loop/planning/decision.py +71 -0
  69. candura-0.2.4.dev1/candura/core/agentic/loop/planning/router.py +148 -0
  70. candura-0.2.4.dev1/candura/core/agentic/loop/planning/stage.py +120 -0
  71. candura-0.2.4.dev1/candura/core/agentic/loop/presentation/__init__.py +35 -0
  72. candura-0.2.4.dev1/candura/core/agentic/loop/presentation/builder.py +78 -0
  73. candura-0.2.4.dev1/candura/core/agentic/loop/presentation/content.py +123 -0
  74. candura-0.2.4.dev1/candura/core/agentic/loop/presentation/context.py +80 -0
  75. candura-0.2.4.dev1/candura/core/agentic/loop/presentation/formatter.py +81 -0
  76. candura-0.2.4.dev1/candura/core/agentic/loop/presentation/render.py +259 -0
  77. candura-0.2.4.dev1/candura/core/agentic/loop/presentation/stage.py +87 -0
  78. candura-0.2.4.dev1/candura/core/agentic/loop/reception/__init__.py +20 -0
  79. candura-0.2.4.dev1/candura/core/agentic/loop/reception/builder.py +88 -0
  80. candura-0.2.4.dev1/candura/core/agentic/loop/reception/context.py +111 -0
  81. candura-0.2.4.dev1/candura/core/agentic/loop/reception/stage.py +55 -0
  82. candura-0.2.4.dev1/candura/core/agentic/loop/reception/transcription.py +132 -0
  83. candura-0.2.4.dev1/candura/core/agentic/loop/setup.py +138 -0
  84. candura-0.2.4.dev1/candura/core/agentic/loop/stages.py +79 -0
  85. candura-0.2.4.dev1/candura/core/agentic/media.py +31 -0
  86. candura-0.2.4.dev1/candura/core/agentic/memory.py +31 -0
  87. candura-0.2.4.dev1/candura/core/agentic/prompt.py +397 -0
  88. candura-0.2.4.dev1/candura/core/agentic/prompt_capture.py +270 -0
  89. candura-0.2.4.dev1/candura/core/agentic/prompt_sources.py +164 -0
  90. candura-0.2.4.dev1/candura/core/agentic/runtime/__init__.py +5 -0
  91. candura-0.2.4.dev1/candura/core/agentic/runtime/admission.py +71 -0
  92. candura-0.2.4.dev1/candura/core/agentic/runtime/async_runtime.py +81 -0
  93. candura-0.2.4.dev1/candura/core/agentic/runtime/execution_rule.py +40 -0
  94. candura-0.2.4.dev1/candura/core/agentic/runtime/execution_scope.py +287 -0
  95. candura-0.2.4.dev1/candura/core/agentic/runtime/hydration.py +82 -0
  96. candura-0.2.4.dev1/candura/core/agentic/runtime/identity.py +130 -0
  97. candura-0.2.4.dev1/candura/core/agentic/runtime/output_hook.py +218 -0
  98. candura-0.2.4.dev1/candura/core/agentic/runtime/resolver.py +128 -0
  99. candura-0.2.4.dev1/candura/core/agentic/runtime/runtime.py +210 -0
  100. candura-0.2.4.dev1/candura/core/agentic/session.py +35 -0
  101. candura-0.2.4.dev1/candura/core/clock.py +176 -0
  102. candura-0.2.4.dev1/candura/core/config/__init__.py +24 -0
  103. candura-0.2.4.dev1/candura/core/config/config.md +216 -0
  104. candura-0.2.4.dev1/candura/core/config/config.py +187 -0
  105. candura-0.2.4.dev1/candura/core/config/dotenv_source.py +57 -0
  106. candura-0.2.4.dev1/candura/core/config/errors.py +13 -0
  107. candura-0.2.4.dev1/candura/core/config/keys.py +190 -0
  108. candura-0.2.4.dev1/candura/core/config/prefix.py +53 -0
  109. candura-0.2.4.dev1/candura/core/config/profile.py +44 -0
  110. candura-0.2.4.dev1/candura/core/config/timezone.py +49 -0
  111. candura-0.2.4.dev1/candura/core/context/__init__.py +41 -0
  112. candura-0.2.4.dev1/candura/core/context/activity.py +87 -0
  113. candura-0.2.4.dev1/candura/core/context/agentic_view.py +131 -0
  114. candura-0.2.4.dev1/candura/core/context/blackboard.py +303 -0
  115. candura-0.2.4.dev1/candura/core/context/candura_context.py +190 -0
  116. candura-0.2.4.dev1/candura/core/context/carrier.py +312 -0
  117. candura-0.2.4.dev1/candura/core/context/content.py +124 -0
  118. candura-0.2.4.dev1/candura/core/context/context.md +640 -0
  119. candura-0.2.4.dev1/candura/core/context/exclusions.py +57 -0
  120. candura-0.2.4.dev1/candura/core/context/execution_fields.py +167 -0
  121. candura-0.2.4.dev1/candura/core/context/executions.py +360 -0
  122. candura-0.2.4.dev1/candura/core/context/factory.py +34 -0
  123. candura-0.2.4.dev1/candura/core/context/frame.py +34 -0
  124. candura-0.2.4.dev1/candura/core/context/history.py +391 -0
  125. candura-0.2.4.dev1/candura/core/context/identity.py +172 -0
  126. candura-0.2.4.dev1/candura/core/context/labels.py +50 -0
  127. candura-0.2.4.dev1/candura/core/context/lake_executions.py +208 -0
  128. candura-0.2.4.dev1/candura/core/context/model.py +355 -0
  129. candura-0.2.4.dev1/candura/core/context/opened_tenants.py +87 -0
  130. candura-0.2.4.dev1/candura/core/context/otel.py +24 -0
  131. candura-0.2.4.dev1/candura/core/context/outcomes.py +115 -0
  132. candura-0.2.4.dev1/candura/core/context/retention.py +31 -0
  133. candura-0.2.4.dev1/candura/core/context/scope.py +119 -0
  134. candura-0.2.4.dev1/candura/core/context/snapshot.py +63 -0
  135. candura-0.2.4.dev1/candura/core/context/tenant_store.py +182 -0
  136. candura-0.2.4.dev1/candura/core/context/tenant_view.py +85 -0
  137. candura-0.2.4.dev1/candura/core/context/tenants.py +140 -0
  138. candura-0.2.4.dev1/candura/core/context/threads.py +24 -0
  139. candura-0.2.4.dev1/candura/core/context/transport.py +40 -0
  140. candura-0.2.4.dev1/candura/core/context/usage.py +154 -0
  141. candura-0.2.4.dev1/candura/core/context/zone.py +99 -0
  142. candura-0.2.4.dev1/candura/core/current.py +111 -0
  143. candura-0.2.4.dev1/candura/core/facade.py +103 -0
  144. candura-0.2.4.dev1/candura/core/internals/bridge/__init__.py +7 -0
  145. candura-0.2.4.dev1/candura/core/internals/bridge/cache.py +181 -0
  146. candura-0.2.4.dev1/candura/core/internals/bridge/clock.py +26 -0
  147. candura-0.2.4.dev1/candura/core/internals/bridge/errors.py +103 -0
  148. candura-0.2.4.dev1/candura/core/internals/bridge/evbus.py +171 -0
  149. candura-0.2.4.dev1/candura/core/internals/bridge/kernel.py +244 -0
  150. candura-0.2.4.dev1/candura/core/internals/bridge/lake.py +400 -0
  151. candura-0.2.4.dev1/candura/core/internals/bridge/lake_fake.py +400 -0
  152. candura-0.2.4.dev1/candura/core/internals/bridge/lake_ops_fake.py +80 -0
  153. candura-0.2.4.dev1/candura/core/internals/bridge/lake_pull_fake.py +179 -0
  154. candura-0.2.4.dev1/candura/core/internals/bridge/lake_records_fake.py +207 -0
  155. candura-0.2.4.dev1/candura/core/internals/bridge/module.md +252 -0
  156. candura-0.2.4.dev1/candura/core/internals/bridge/processes.py +296 -0
  157. candura-0.2.4.dev1/candura/core/internals/bridge/reflection.py +76 -0
  158. candura-0.2.4.dev1/candura/core/internals/bridge/registry.py +107 -0
  159. candura-0.2.4.dev1/candura/core/internals/bridge/telemetry.py +205 -0
  160. candura-0.2.4.dev1/candura/core/internals/extras.py +82 -0
  161. candura-0.2.4.dev1/candura/core/internals/keyed_locks.py +167 -0
  162. candura-0.2.4.dev1/candura/core/internals/lake/__init__.py +11 -0
  163. candura-0.2.4.dev1/candura/core/internals/lake/upcasting.py +58 -0
  164. candura-0.2.4.dev1/candura/core/internals/materialization.py +104 -0
  165. candura-0.2.4.dev1/candura/core/internals/model_schema.py +132 -0
  166. candura-0.2.4.dev1/candura/core/internals/namespaces/_guards.py +35 -0
  167. candura-0.2.4.dev1/candura/core/internals/namespaces/addons.py +147 -0
  168. candura-0.2.4.dev1/candura/core/internals/namespaces/agentic.py +225 -0
  169. candura-0.2.4.dev1/candura/core/internals/namespaces/agentic_factories.py +298 -0
  170. candura-0.2.4.dev1/candura/core/internals/namespaces/blobs.py +29 -0
  171. candura-0.2.4.dev1/candura/core/internals/namespaces/caches.py +56 -0
  172. candura-0.2.4.dev1/candura/core/internals/namespaces/candura.py +339 -0
  173. candura-0.2.4.dev1/candura/core/internals/namespaces/channels.py +60 -0
  174. candura-0.2.4.dev1/candura/core/internals/namespaces/config.py +147 -0
  175. candura-0.2.4.dev1/candura/core/internals/namespaces/contexts.py +90 -0
  176. candura-0.2.4.dev1/candura/core/internals/namespaces/conversations.py +229 -0
  177. candura-0.2.4.dev1/candura/core/internals/namespaces/credits.py +241 -0
  178. candura-0.2.4.dev1/candura/core/internals/namespaces/dispatchers.py +34 -0
  179. candura-0.2.4.dev1/candura/core/internals/namespaces/executions.py +152 -0
  180. candura-0.2.4.dev1/candura/core/internals/namespaces/identity.py +303 -0
  181. candura-0.2.4.dev1/candura/core/internals/namespaces/internals.py +314 -0
  182. candura-0.2.4.dev1/candura/core/internals/namespaces/kernel.py +252 -0
  183. candura-0.2.4.dev1/candura/core/internals/namespaces/lake.py +344 -0
  184. candura-0.2.4.dev1/candura/core/internals/namespaces/life.py +158 -0
  185. candura-0.2.4.dev1/candura/core/internals/namespaces/loop.py +273 -0
  186. candura-0.2.4.dev1/candura/core/internals/namespaces/modules.py +201 -0
  187. candura-0.2.4.dev1/candura/core/internals/namespaces/node.py +320 -0
  188. candura-0.2.4.dev1/candura/core/internals/namespaces/processes.py +253 -0
  189. candura-0.2.4.dev1/candura/core/internals/namespaces/projection.py +53 -0
  190. candura-0.2.4.dev1/candura/core/internals/namespaces/public.py +83 -0
  191. candura-0.2.4.dev1/candura/core/internals/namespaces/repository.py +147 -0
  192. candura-0.2.4.dev1/candura/core/internals/namespaces/root_factories.py +120 -0
  193. candura-0.2.4.dev1/candura/core/internals/namespaces/shutdown.py +102 -0
  194. candura-0.2.4.dev1/candura/core/internals/namespaces/task_rounds.py +389 -0
  195. candura-0.2.4.dev1/candura/core/internals/namespaces/task_runs.py +189 -0
  196. candura-0.2.4.dev1/candura/core/internals/namespaces/task_trace.py +73 -0
  197. candura-0.2.4.dev1/candura/core/internals/namespaces/tasks.py +332 -0
  198. candura-0.2.4.dev1/candura/core/internals/namespaces/telemetry.py +287 -0
  199. candura-0.2.4.dev1/candura/core/internals/pipeline/__init__.py +6 -0
  200. candura-0.2.4.dev1/candura/core/internals/pipeline/middleware.py +91 -0
  201. candura-0.2.4.dev1/candura/core/internals/reflection/__init__.py +126 -0
  202. candura-0.2.4.dev1/candura/core/internals/reflection/boot_catalog.py +180 -0
  203. candura-0.2.4.dev1/candura/core/internals/reflection/naming.py +27 -0
  204. candura-0.2.4.dev1/candura/core/internals/reflection/reflection.md +179 -0
  205. candura-0.2.4.dev1/candura/core/internals/reflection/rule_registry.py +172 -0
  206. candura-0.2.4.dev1/candura/core/internals/reflection/runtime.py +400 -0
  207. candura-0.2.4.dev1/candura/core/internals/reflection/static_reflection.py +379 -0
  208. candura-0.2.4.dev1/candura/core/internals/reflection/try_result.py +148 -0
  209. candura-0.2.4.dev1/candura/core/internals/resolution/__init__.py +7 -0
  210. candura-0.2.4.dev1/candura/core/internals/resolution/chain.py +89 -0
  211. candura-0.2.4.dev1/candura/core/internals/resolution/contract.py +45 -0
  212. candura-0.2.4.dev1/candura/core/internals/settling.py +86 -0
  213. candura-0.2.4.dev1/candura/core/internals/telemetry/__init__.py +52 -0
  214. candura-0.2.4.dev1/candura/core/internals/telemetry/_runtime_view.py +48 -0
  215. candura-0.2.4.dev1/candura/core/internals/telemetry/appenders.py +156 -0
  216. candura-0.2.4.dev1/candura/core/internals/telemetry/bridge_otel.py +87 -0
  217. candura-0.2.4.dev1/candura/core/internals/telemetry/categories.py +91 -0
  218. candura-0.2.4.dev1/candura/core/internals/telemetry/config.py +80 -0
  219. candura-0.2.4.dev1/candura/core/internals/telemetry/config_keys.py +53 -0
  220. candura-0.2.4.dev1/candura/core/internals/telemetry/contexts.py +66 -0
  221. candura-0.2.4.dev1/candura/core/internals/telemetry/exceptions.py +61 -0
  222. candura-0.2.4.dev1/candura/core/internals/telemetry/formatters/__init__.py +7 -0
  223. candura-0.2.4.dev1/candura/core/internals/telemetry/formatters/json.py +53 -0
  224. candura-0.2.4.dev1/candura/core/internals/telemetry/formatters/readable.py +95 -0
  225. candura-0.2.4.dev1/candura/core/internals/telemetry/hooks.py +129 -0
  226. candura-0.2.4.dev1/candura/core/internals/telemetry/identity.py +29 -0
  227. candura-0.2.4.dev1/candura/core/internals/telemetry/layouts.py +51 -0
  228. candura-0.2.4.dev1/candura/core/internals/telemetry/levels.py +62 -0
  229. candura-0.2.4.dev1/candura/core/internals/telemetry/logger.py +150 -0
  230. candura-0.2.4.dev1/candura/core/internals/telemetry/native_logs.py +96 -0
  231. candura-0.2.4.dev1/candura/core/internals/telemetry/otel_setup.py +83 -0
  232. candura-0.2.4.dev1/candura/core/internals/telemetry/port.py +111 -0
  233. candura-0.2.4.dev1/candura/core/internals/telemetry/queues.py +72 -0
  234. candura-0.2.4.dev1/candura/core/internals/telemetry/records.py +192 -0
  235. candura-0.2.4.dev1/candura/core/internals/telemetry/resolver.py +29 -0
  236. candura-0.2.4.dev1/candura/core/internals/telemetry/runtime.py +395 -0
  237. candura-0.2.4.dev1/candura/core/internals/telemetry/signals.py +173 -0
  238. candura-0.2.4.dev1/candura/core/internals/telemetry/stdlib_bridge.py +151 -0
  239. candura-0.2.4.dev1/candura/core/internals/telemetry/telemetry.md +153 -0
  240. candura-0.2.4.dev1/candura/core/internals/telemetry/tenant_policy.py +326 -0
  241. candura-0.2.4.dev1/candura/core/internals/testing.py +122 -0
  242. candura-0.2.4.dev1/candura/core/loggers.py +26 -0
  243. candura-0.2.4.dev1/candura/core/models/__init__.py +81 -0
  244. candura-0.2.4.dev1/candura/core/models/base.py +140 -0
  245. candura-0.2.4.dev1/candura/core/models/channel/__init__.py +28 -0
  246. candura-0.2.4.dev1/candura/core/models/channel/channel.md +52 -0
  247. candura-0.2.4.dev1/candura/core/models/channel/identity.py +54 -0
  248. candura-0.2.4.dev1/candura/core/models/channel/inbound.py +81 -0
  249. candura-0.2.4.dev1/candura/core/models/channel/notify.py +45 -0
  250. candura-0.2.4.dev1/candura/core/models/channel/outbound.py +86 -0
  251. candura-0.2.4.dev1/candura/core/models/cloudevents.py +83 -0
  252. candura-0.2.4.dev1/candura/core/models/credit/__init__.py +68 -0
  253. candura-0.2.4.dev1/candura/core/models/credit/candu.py +245 -0
  254. candura-0.2.4.dev1/candura/core/models/credit/credit.md +99 -0
  255. candura-0.2.4.dev1/candura/core/models/credit/entries.py +208 -0
  256. candura-0.2.4.dev1/candura/core/models/credit/prices.py +198 -0
  257. candura-0.2.4.dev1/candura/core/models/credit/reports.py +130 -0
  258. candura-0.2.4.dev1/candura/core/models/db/__init__.py +39 -0
  259. candura-0.2.4.dev1/candura/core/models/db/changes.py +85 -0
  260. candura-0.2.4.dev1/candura/core/models/db/codec.py +42 -0
  261. candura-0.2.4.dev1/candura/core/models/db/db_dsl.py +328 -0
  262. candura-0.2.4.dev1/candura/core/models/db/indexes.py +102 -0
  263. candura-0.2.4.dev1/candura/core/models/db/purge.py +25 -0
  264. candura-0.2.4.dev1/candura/core/models/db/versions.py +98 -0
  265. candura-0.2.4.dev1/candura/core/models/envelope.py +87 -0
  266. candura-0.2.4.dev1/candura/core/models/error/__init__.py +23 -0
  267. candura-0.2.4.dev1/candura/core/models/error/agentic.py +221 -0
  268. candura-0.2.4.dev1/candura/core/models/error/analytics.py +24 -0
  269. candura-0.2.4.dev1/candura/core/models/error/base.py +34 -0
  270. candura-0.2.4.dev1/candura/core/models/error/cache.py +23 -0
  271. candura-0.2.4.dev1/candura/core/models/error/composition.py +11 -0
  272. candura-0.2.4.dev1/candura/core/models/error/context.py +147 -0
  273. candura-0.2.4.dev1/candura/core/models/error/credit.py +126 -0
  274. candura-0.2.4.dev1/candura/core/models/error/eventbus.py +73 -0
  275. candura-0.2.4.dev1/candura/core/models/error/exports.py +369 -0
  276. candura-0.2.4.dev1/candura/core/models/error/identity.py +200 -0
  277. candura-0.2.4.dev1/candura/core/models/error/kernel.py +165 -0
  278. candura-0.2.4.dev1/candura/core/models/error/lake.py +127 -0
  279. candura-0.2.4.dev1/candura/core/models/error/loop.py +119 -0
  280. candura-0.2.4.dev1/candura/core/models/error/module.py +217 -0
  281. candura-0.2.4.dev1/candura/core/models/error/nodes.py +337 -0
  282. candura-0.2.4.dev1/candura/core/models/error/operation.py +117 -0
  283. candura-0.2.4.dev1/candura/core/models/error/packaging.py +35 -0
  284. candura-0.2.4.dev1/candura/core/models/error/reflection.py +326 -0
  285. candura-0.2.4.dev1/candura/core/models/error/registry.py +60 -0
  286. candura-0.2.4.dev1/candura/core/models/error/report.py +51 -0
  287. candura-0.2.4.dev1/candura/core/models/error/repository.py +359 -0
  288. candura-0.2.4.dev1/candura/core/models/error/safe.py +86 -0
  289. candura-0.2.4.dev1/candura/core/models/error/sandbox.py +23 -0
  290. candura-0.2.4.dev1/candura/core/models/error/storage.py +54 -0
  291. candura-0.2.4.dev1/candura/core/models/error/telegram.py +206 -0
  292. candura-0.2.4.dev1/candura/core/models/error/view.py +241 -0
  293. candura-0.2.4.dev1/candura/core/models/events/__init__.py +23 -0
  294. candura-0.2.4.dev1/candura/core/models/events/changes.py +60 -0
  295. candura-0.2.4.dev1/candura/core/models/events/registry.py +56 -0
  296. candura-0.2.4.dev1/candura/core/models/factory.py +106 -0
  297. candura-0.2.4.dev1/candura/core/models/identity/__init__.py +137 -0
  298. candura-0.2.4.dev1/candura/core/models/identity/audit.py +227 -0
  299. candura-0.2.4.dev1/candura/core/models/identity/authority.py +49 -0
  300. candura-0.2.4.dev1/candura/core/models/identity/destinations.py +101 -0
  301. candura-0.2.4.dev1/candura/core/models/identity/identity.md +157 -0
  302. candura-0.2.4.dev1/candura/core/models/identity/keys.py +74 -0
  303. candura-0.2.4.dev1/candura/core/models/identity/models.py +397 -0
  304. candura-0.2.4.dev1/candura/core/models/identity/policy.py +106 -0
  305. candura-0.2.4.dev1/candura/core/models/identity/principals.py +145 -0
  306. candura-0.2.4.dev1/candura/core/models/identity/schemes.py +142 -0
  307. candura-0.2.4.dev1/candura/core/models/identity/schemes_builtin.py +229 -0
  308. candura-0.2.4.dev1/candura/core/models/identity/sessions.py +362 -0
  309. candura-0.2.4.dev1/candura/core/models/identity/tenant_status.py +53 -0
  310. candura-0.2.4.dev1/candura/core/models/identity/tokens.py +226 -0
  311. candura-0.2.4.dev1/candura/core/models/identity/web.py +116 -0
  312. candura-0.2.4.dev1/candura/core/models/lake/__init__.py +28 -0
  313. candura-0.2.4.dev1/candura/core/models/lake/dedupe.py +20 -0
  314. candura-0.2.4.dev1/candura/core/models/lake/spec.py +61 -0
  315. candura-0.2.4.dev1/candura/core/models/lake/stream.py +56 -0
  316. candura-0.2.4.dev1/candura/core/models/lake/table.py +124 -0
  317. candura-0.2.4.dev1/candura/core/models/meta/__init__.py +158 -0
  318. candura-0.2.4.dev1/candura/core/models/meta/categories.py +28 -0
  319. candura-0.2.4.dev1/candura/core/models/meta/code/__init__.py +54 -0
  320. candura-0.2.4.dev1/candura/core/models/meta/code/boot_rules.py +59 -0
  321. candura-0.2.4.dev1/candura/core/models/meta/code/dispatch.py +301 -0
  322. candura-0.2.4.dev1/candura/core/models/meta/code/dispatch_execution.py +145 -0
  323. candura-0.2.4.dev1/candura/core/models/meta/code/files.py +86 -0
  324. candura-0.2.4.dev1/candura/core/models/meta/code/mclass.py +391 -0
  325. candura-0.2.4.dev1/candura/core/models/meta/code/mclass_runtime.py +44 -0
  326. candura-0.2.4.dev1/candura/core/models/meta/code/mclass_source.py +65 -0
  327. candura-0.2.4.dev1/candura/core/models/meta/code/resolver.py +54 -0
  328. candura-0.2.4.dev1/candura/core/models/meta/code/source.py +226 -0
  329. candura-0.2.4.dev1/candura/core/models/meta/code/type_cache.py +58 -0
  330. candura-0.2.4.dev1/candura/core/models/meta/content_policy.py +116 -0
  331. candura-0.2.4.dev1/candura/core/models/meta/db_field.py +258 -0
  332. candura-0.2.4.dev1/candura/core/models/meta/document_version.py +59 -0
  333. candura-0.2.4.dev1/candura/core/models/meta/knowledge_names.py +123 -0
  334. candura-0.2.4.dev1/candura/core/models/meta/meta.md +621 -0
  335. candura-0.2.4.dev1/candura/core/models/meta/meta_agent_run.py +100 -0
  336. candura-0.2.4.dev1/candura/core/models/meta/meta_agentic.py +82 -0
  337. candura-0.2.4.dev1/candura/core/models/meta/meta_base.py +253 -0
  338. candura-0.2.4.dev1/candura/core/models/meta/meta_cache.py +177 -0
  339. candura-0.2.4.dev1/candura/core/models/meta/meta_components.py +386 -0
  340. candura-0.2.4.dev1/candura/core/models/meta/meta_db.py +34 -0
  341. candura-0.2.4.dev1/candura/core/models/meta/meta_evbus.py +80 -0
  342. candura-0.2.4.dev1/candura/core/models/meta/meta_executions.py +373 -0
  343. candura-0.2.4.dev1/candura/core/models/meta/meta_harness.py +353 -0
  344. candura-0.2.4.dev1/candura/core/models/meta/meta_kernel.py +193 -0
  345. candura-0.2.4.dev1/candura/core/models/meta/meta_lake.py +385 -0
  346. candura-0.2.4.dev1/candura/core/models/meta/meta_model.py +64 -0
  347. candura-0.2.4.dev1/candura/core/models/meta/meta_node.py +101 -0
  348. candura-0.2.4.dev1/candura/core/models/meta/meta_outcome.py +144 -0
  349. candura-0.2.4.dev1/candura/core/models/meta/meta_usage.py +52 -0
  350. candura-0.2.4.dev1/candura/core/models/meta/query_nodes.py +134 -0
  351. candura-0.2.4.dev1/candura/core/models/meta/scope.py +35 -0
  352. candura-0.2.4.dev1/candura/core/models/sdk.py +17 -0
  353. candura-0.2.4.dev1/candura/core/models/tasks.py +196 -0
  354. candura-0.2.4.dev1/candura/core/models/telemetry.py +174 -0
  355. candura-0.2.4.dev1/candura/core/models/uri.py +326 -0
  356. candura-0.2.4.dev1/candura/core/modules/__init__.py +11 -0
  357. candura-0.2.4.dev1/candura/core/modules/addons/__init__.py +41 -0
  358. candura-0.2.4.dev1/candura/core/modules/addons/decorator.py +157 -0
  359. candura-0.2.4.dev1/candura/core/modules/addons/native/__init__.py +21 -0
  360. candura-0.2.4.dev1/candura/core/modules/addons/native/mclass/__init__.py +10 -0
  361. candura-0.2.4.dev1/candura/core/modules/addons/native/mclass/execution.py +256 -0
  362. candura-0.2.4.dev1/candura/core/modules/addons/native/mclass/factory.py +44 -0
  363. candura-0.2.4.dev1/candura/core/modules/addons/native/mclass/instance_proxy.py +146 -0
  364. candura-0.2.4.dev1/candura/core/modules/addons/native/mclass/invoker.py +124 -0
  365. candura-0.2.4.dev1/candura/core/modules/addons/native/mclass/meta_class.py +332 -0
  366. candura-0.2.4.dev1/candura/core/modules/addons/native/mclass/native_rules.py +29 -0
  367. candura-0.2.4.dev1/candura/core/modules/addons/native/mclass/rules/__init__.py +27 -0
  368. candura-0.2.4.dev1/candura/core/modules/addons/native/mclass/rules/dynamic.py +34 -0
  369. candura-0.2.4.dev1/candura/core/modules/addons/native/mclass/rules/predicate.py +31 -0
  370. candura-0.2.4.dev1/candura/core/modules/addons/native/mclass/rules/target.py +40 -0
  371. candura-0.2.4.dev1/candura/core/modules/addons/native/mclass/rules/try_dispatch.py +36 -0
  372. candura-0.2.4.dev1/candura/core/modules/addons/native/memoization.py +207 -0
  373. candura-0.2.4.dev1/candura/core/modules/addons/native/remote.py +188 -0
  374. candura-0.2.4.dev1/candura/core/modules/addons/native/tracing.py +156 -0
  375. candura-0.2.4.dev1/candura/core/modules/addons/proxy.py +334 -0
  376. candura-0.2.4.dev1/candura/core/modules/base/__init__.py +30 -0
  377. candura-0.2.4.dev1/candura/core/modules/base/accessor.py +79 -0
  378. candura-0.2.4.dev1/candura/core/modules/base/accessors/rules/__init__.py +18 -0
  379. candura-0.2.4.dev1/candura/core/modules/base/accessors/rules/dotted.py +29 -0
  380. candura-0.2.4.dev1/candura/core/modules/base/accessors/rules/scoped.py +24 -0
  381. candura-0.2.4.dev1/candura/core/modules/base/addon.py +11 -0
  382. candura-0.2.4.dev1/candura/core/modules/base/addon_base.py +237 -0
  383. candura-0.2.4.dev1/candura/core/modules/base/addon_dynamic.py +188 -0
  384. candura-0.2.4.dev1/candura/core/modules/base/container/__init__.py +8 -0
  385. candura-0.2.4.dev1/candura/core/modules/base/container/addons.py +192 -0
  386. candura-0.2.4.dev1/candura/core/modules/base/container/core.py +236 -0
  387. candura-0.2.4.dev1/candura/core/modules/base/container/lifecycle.py +379 -0
  388. candura-0.2.4.dev1/candura/core/modules/base/container/navigation.py +46 -0
  389. candura-0.2.4.dev1/candura/core/modules/base/container/resolution.py +162 -0
  390. candura-0.2.4.dev1/candura/core/modules/base/contract.py +315 -0
  391. candura-0.2.4.dev1/candura/core/modules/base/engine.py +78 -0
  392. candura-0.2.4.dev1/candura/core/modules/base/events.py +233 -0
  393. candura-0.2.4.dev1/candura/core/modules/base/from_markers.py +381 -0
  394. candura-0.2.4.dev1/candura/core/modules/base/from_resolution.py +167 -0
  395. candura-0.2.4.dev1/candura/core/modules/base/injection/__init__.py +20 -0
  396. candura-0.2.4.dev1/candura/core/modules/base/injection/decorator.py +62 -0
  397. candura-0.2.4.dev1/candura/core/modules/base/injection/strategies/__init__.py +20 -0
  398. candura-0.2.4.dev1/candura/core/modules/base/injection/strategies/agentic_strategy.py +58 -0
  399. candura-0.2.4.dev1/candura/core/modules/base/injection/strategies/application_strategy.py +33 -0
  400. candura-0.2.4.dev1/candura/core/modules/base/injection/strategies/base.py +25 -0
  401. candura-0.2.4.dev1/candura/core/modules/base/injection/strategies/module_strategy.py +34 -0
  402. candura-0.2.4.dev1/candura/core/modules/base/injection/strategies/orchestrator.py +34 -0
  403. candura-0.2.4.dev1/candura/core/modules/base/injection/strategies/resolver.py +58 -0
  404. candura-0.2.4.dev1/candura/core/modules/base/provider_changes.py +82 -0
  405. candura-0.2.4.dev1/candura/core/modules/modules.md +926 -0
  406. candura-0.2.4.dev1/candura/core/modules/native/agentics/__init__.py +27 -0
  407. candura-0.2.4.dev1/candura/core/modules/native/agentics/engines/__init__.py +10 -0
  408. candura-0.2.4.dev1/candura/core/modules/native/agentics/engines/cache.py +100 -0
  409. candura-0.2.4.dev1/candura/core/modules/native/agentics/engines/pydantic/__init__.py +11 -0
  410. candura-0.2.4.dev1/candura/core/modules/native/agentics/engines/pydantic/measure.py +60 -0
  411. candura-0.2.4.dev1/candura/core/modules/native/agentics/engines/pydantic/model_resolution.py +125 -0
  412. candura-0.2.4.dev1/candura/core/modules/native/agentics/engines/pydantic/module.md +62 -0
  413. candura-0.2.4.dev1/candura/core/modules/native/agentics/engines/pydantic/module.py +356 -0
  414. candura-0.2.4.dev1/candura/core/modules/native/agentics/engines/pydantic/runner.py +298 -0
  415. candura-0.2.4.dev1/candura/core/modules/native/agentics/module.md +35 -0
  416. candura-0.2.4.dev1/candura/core/modules/native/agentics/orch/__init__.py +7 -0
  417. candura-0.2.4.dev1/candura/core/modules/native/agentics/orch/module.md +69 -0
  418. candura-0.2.4.dev1/candura/core/modules/native/agentics/orch/module.py +169 -0
  419. candura-0.2.4.dev1/candura/core/modules/native/cache/__init__.py +29 -0
  420. candura-0.2.4.dev1/candura/core/modules/native/cache/contract.py +91 -0
  421. candura-0.2.4.dev1/candura/core/modules/native/cache/definition.py +320 -0
  422. candura-0.2.4.dev1/candura/core/modules/native/cache/module.md +105 -0
  423. candura-0.2.4.dev1/candura/core/modules/native/cache/schemas.py +47 -0
  424. candura-0.2.4.dev1/candura/core/modules/native/cache/zone.py +165 -0
  425. candura-0.2.4.dev1/candura/core/modules/native/credit/__init__.py +71 -0
  426. candura-0.2.4.dev1/candura/core/modules/native/credit/budget.py +200 -0
  427. candura-0.2.4.dev1/candura/core/modules/native/credit/config_keys.py +52 -0
  428. candura-0.2.4.dev1/candura/core/modules/native/credit/contract.py +113 -0
  429. candura-0.2.4.dev1/candura/core/modules/native/credit/definition.py +369 -0
  430. candura-0.2.4.dev1/candura/core/modules/native/credit/events.py +144 -0
  431. candura-0.2.4.dev1/candura/core/modules/native/credit/fold.py +256 -0
  432. candura-0.2.4.dev1/candura/core/modules/native/credit/ids.py +45 -0
  433. candura-0.2.4.dev1/candura/core/modules/native/credit/in_flight.py +90 -0
  434. candura-0.2.4.dev1/candura/core/modules/native/credit/ledger.py +256 -0
  435. candura-0.2.4.dev1/candura/core/modules/native/credit/module.md +195 -0
  436. candura-0.2.4.dev1/candura/core/modules/native/credit/operations.py +238 -0
  437. candura-0.2.4.dev1/candura/core/modules/native/credit/periods.py +36 -0
  438. candura-0.2.4.dev1/candura/core/modules/native/credit/price_book.py +129 -0
  439. candura-0.2.4.dev1/candura/core/modules/native/credit/pricing.py +360 -0
  440. candura-0.2.4.dev1/candura/core/modules/native/credit/projection.py +310 -0
  441. candura-0.2.4.dev1/candura/core/modules/native/credit/recount.py +177 -0
  442. candura-0.2.4.dev1/candura/core/modules/native/credit/turn_debit.py +75 -0
  443. candura-0.2.4.dev1/candura/core/modules/native/credit/usage.py +94 -0
  444. candura-0.2.4.dev1/candura/core/modules/native/db/__init__.py +10 -0
  445. candura-0.2.4.dev1/candura/core/modules/native/db/base.py +278 -0
  446. candura-0.2.4.dev1/candura/core/modules/native/db/codec.py +381 -0
  447. candura-0.2.4.dev1/candura/core/modules/native/db/module.md +131 -0
  448. candura-0.2.4.dev1/candura/core/modules/native/db/providers/contract.py +150 -0
  449. candura-0.2.4.dev1/candura/core/modules/native/db/providers/inmemory/__init__.py +6 -0
  450. candura-0.2.4.dev1/candura/core/modules/native/db/providers/inmemory/definition.py +296 -0
  451. candura-0.2.4.dev1/candura/core/modules/native/db/repository/__init__.py +29 -0
  452. candura-0.2.4.dev1/candura/core/modules/native/db/repository/changes.py +116 -0
  453. candura-0.2.4.dev1/candura/core/modules/native/db/repository/contract.py +348 -0
  454. candura-0.2.4.dev1/candura/core/modules/native/db/repository/definition.py +228 -0
  455. candura-0.2.4.dev1/candura/core/modules/native/db/repository/execution_rule.py +212 -0
  456. candura-0.2.4.dev1/candura/core/modules/native/db/repository/marker.py +86 -0
  457. candura-0.2.4.dev1/candura/core/modules/native/db/repository/module.md +152 -0
  458. candura-0.2.4.dev1/candura/core/modules/native/db/repository/purge.py +161 -0
  459. candura-0.2.4.dev1/candura/core/modules/native/db/repository/query.py +184 -0
  460. candura-0.2.4.dev1/candura/core/modules/native/db/repository/repository.py +388 -0
  461. candura-0.2.4.dev1/candura/core/modules/native/db/repository/scope.py +54 -0
  462. candura-0.2.4.dev1/candura/core/modules/native/db/repository/stamps.py +134 -0
  463. candura-0.2.4.dev1/candura/core/modules/native/db/repository/versioning.py +134 -0
  464. candura-0.2.4.dev1/candura/core/modules/native/eventbus/__init__.py +12 -0
  465. candura-0.2.4.dev1/candura/core/modules/native/eventbus/codec.py +307 -0
  466. candura-0.2.4.dev1/candura/core/modules/native/eventbus/config_keys.py +36 -0
  467. candura-0.2.4.dev1/candura/core/modules/native/eventbus/contract.py +107 -0
  468. candura-0.2.4.dev1/candura/core/modules/native/eventbus/definition.py +376 -0
  469. candura-0.2.4.dev1/candura/core/modules/native/eventbus/drainer.py +165 -0
  470. candura-0.2.4.dev1/candura/core/modules/native/eventbus/execution_rule.py +91 -0
  471. candura-0.2.4.dev1/candura/core/modules/native/eventbus/inspection.py +89 -0
  472. candura-0.2.4.dev1/candura/core/modules/native/eventbus/loops.py +183 -0
  473. candura-0.2.4.dev1/candura/core/modules/native/eventbus/module.md +92 -0
  474. candura-0.2.4.dev1/candura/core/modules/native/eventbus/packet.py +39 -0
  475. candura-0.2.4.dev1/candura/core/modules/native/eventbus/replies.py +133 -0
  476. candura-0.2.4.dev1/candura/core/modules/native/eventbus/subscription.py +65 -0
  477. candura-0.2.4.dev1/candura/core/modules/native/identity/__init__.py +60 -0
  478. candura-0.2.4.dev1/candura/core/modules/native/identity/attempts.py +80 -0
  479. candura-0.2.4.dev1/candura/core/modules/native/identity/audit.py +385 -0
  480. candura-0.2.4.dev1/candura/core/modules/native/identity/config_keys.py +61 -0
  481. candura-0.2.4.dev1/candura/core/modules/native/identity/contract.py +75 -0
  482. candura-0.2.4.dev1/candura/core/modules/native/identity/definition.py +306 -0
  483. candura-0.2.4.dev1/candura/core/modules/native/identity/enrollment.py +302 -0
  484. candura-0.2.4.dev1/candura/core/modules/native/identity/events.py +104 -0
  485. candura-0.2.4.dev1/candura/core/modules/native/identity/invite_entry.py +191 -0
  486. candura-0.2.4.dev1/candura/core/modules/native/identity/invite_uses.py +153 -0
  487. candura-0.2.4.dev1/candura/core/modules/native/identity/invites.py +351 -0
  488. candura-0.2.4.dev1/candura/core/modules/native/identity/module.md +208 -0
  489. candura-0.2.4.dev1/candura/core/modules/native/identity/policy.py +143 -0
  490. candura-0.2.4.dev1/candura/core/modules/native/identity/process_tenants.py +97 -0
  491. candura-0.2.4.dev1/candura/core/modules/native/identity/resolver.py +245 -0
  492. candura-0.2.4.dev1/candura/core/modules/native/identity/sessions.py +311 -0
  493. candura-0.2.4.dev1/candura/core/modules/native/identity/tenant_status.py +36 -0
  494. candura-0.2.4.dev1/candura/core/modules/native/identity/tenants.py +370 -0
  495. candura-0.2.4.dev1/candura/core/modules/native/lake/__init__.py +27 -0
  496. candura-0.2.4.dev1/candura/core/modules/native/lake/analytics/__init__.py +7 -0
  497. candura-0.2.4.dev1/candura/core/modules/native/lake/analytics/_polars.py +19 -0
  498. candura-0.2.4.dev1/candura/core/modules/native/lake/analytics/config_keys.py +23 -0
  499. candura-0.2.4.dev1/candura/core/modules/native/lake/analytics/contract.py +55 -0
  500. candura-0.2.4.dev1/candura/core/modules/native/lake/analytics/decoder.py +247 -0
  501. candura-0.2.4.dev1/candura/core/modules/native/lake/analytics/definition.py +174 -0
  502. candura-0.2.4.dev1/candura/core/modules/native/lake/analytics/frames.py +129 -0
  503. candura-0.2.4.dev1/candura/core/modules/native/lake/analytics/live.py +57 -0
  504. candura-0.2.4.dev1/candura/core/modules/native/lake/analytics/local.py +357 -0
  505. candura-0.2.4.dev1/candura/core/modules/native/lake/analytics/module.md +83 -0
  506. candura-0.2.4.dev1/candura/core/modules/native/lake/analytics/router.py +93 -0
  507. candura-0.2.4.dev1/candura/core/modules/native/lake/analytics/sources.py +99 -0
  508. candura-0.2.4.dev1/candura/core/modules/native/lake/boot.py +162 -0
  509. candura-0.2.4.dev1/candura/core/modules/native/lake/closing.py +77 -0
  510. candura-0.2.4.dev1/candura/core/modules/native/lake/config_keys.py +154 -0
  511. candura-0.2.4.dev1/candura/core/modules/native/lake/contract.py +249 -0
  512. candura-0.2.4.dev1/candura/core/modules/native/lake/counters.py +84 -0
  513. candura-0.2.4.dev1/candura/core/modules/native/lake/definition.py +400 -0
  514. candura-0.2.4.dev1/candura/core/modules/native/lake/discovery.py +158 -0
  515. candura-0.2.4.dev1/candura/core/modules/native/lake/events.py +114 -0
  516. candura-0.2.4.dev1/candura/core/modules/native/lake/lifecycle.py +136 -0
  517. candura-0.2.4.dev1/candura/core/modules/native/lake/module.md +237 -0
  518. candura-0.2.4.dev1/candura/core/modules/native/lake/processes.py +95 -0
  519. candura-0.2.4.dev1/candura/core/modules/native/lake/pull.py +151 -0
  520. candura-0.2.4.dev1/candura/core/modules/native/lake/purge.py +95 -0
  521. candura-0.2.4.dev1/candura/core/modules/native/lake/reading.py +75 -0
  522. candura-0.2.4.dev1/candura/core/modules/native/lake/reconcile.py +377 -0
  523. candura-0.2.4.dev1/candura/core/modules/native/lake/settings.py +58 -0
  524. candura-0.2.4.dev1/candura/core/modules/native/lake/tenants.py +134 -0
  525. candura-0.2.4.dev1/candura/core/modules/native/lake/tier.py +28 -0
  526. candura-0.2.4.dev1/candura/core/modules/native/lake/watermarks.py +196 -0
  527. candura-0.2.4.dev1/candura/core/modules/native/loop/__init__.py +27 -0
  528. candura-0.2.4.dev1/candura/core/modules/native/loop/_turn.py +302 -0
  529. candura-0.2.4.dev1/candura/core/modules/native/loop/assembly.py +122 -0
  530. candura-0.2.4.dev1/candura/core/modules/native/loop/contract.py +169 -0
  531. candura-0.2.4.dev1/candura/core/modules/native/loop/definition.py +109 -0
  532. candura-0.2.4.dev1/candura/core/modules/native/loop/extensions.md +325 -0
  533. candura-0.2.4.dev1/candura/core/modules/native/loop/module.md +200 -0
  534. candura-0.2.4.dev1/candura/core/modules/native/loop/module.py +192 -0
  535. candura-0.2.4.dev1/candura/core/modules/native/loop/ports.py +241 -0
  536. candura-0.2.4.dev1/candura/core/modules/native/loop/rules.py +90 -0
  537. candura-0.2.4.dev1/candura/core/modules/native/loop/testing.py +281 -0
  538. candura-0.2.4.dev1/candura/core/modules/native/loop/turn_delta.py +246 -0
  539. candura-0.2.4.dev1/candura/core/modules/native/registry/__init__.py +20 -0
  540. candura-0.2.4.dev1/candura/core/modules/native/registry/contract.py +142 -0
  541. candura-0.2.4.dev1/candura/core/modules/native/registry/definition.py +222 -0
  542. candura-0.2.4.dev1/candura/core/modules/native/registry/entry.py +23 -0
  543. candura-0.2.4.dev1/candura/core/modules/native/registry/module.md +401 -0
  544. candura-0.2.4.dev1/candura/core/modules/native/registry/resolver.py +135 -0
  545. candura-0.2.4.dev1/candura/core/modules/native/storage/__init__.py +20 -0
  546. candura-0.2.4.dev1/candura/core/modules/native/storage/base.py +65 -0
  547. candura-0.2.4.dev1/candura/core/modules/native/storage/contract.py +36 -0
  548. candura-0.2.4.dev1/candura/core/modules/native/storage/definition.py +90 -0
  549. candura-0.2.4.dev1/candura/core/modules/native/storage/module.md +63 -0
  550. candura-0.2.4.dev1/candura/core/modules/native/storage/selection.py +63 -0
  551. candura-0.2.4.dev1/candura/core/nodes/__init__.py +94 -0
  552. candura-0.2.4.dev1/candura/core/nodes/base/__init__.py +23 -0
  553. candura-0.2.4.dev1/candura/core/nodes/base/binding.py +306 -0
  554. candura-0.2.4.dev1/candura/core/nodes/base/channel.py +137 -0
  555. candura-0.2.4.dev1/candura/core/nodes/base/channel_identity.py +173 -0
  556. candura-0.2.4.dev1/candura/core/nodes/base/coercion.py +107 -0
  557. candura-0.2.4.dev1/candura/core/nodes/base/endpoint.py +381 -0
  558. candura-0.2.4.dev1/candura/core/nodes/base/endpoint_checks.py +59 -0
  559. candura-0.2.4.dev1/candura/core/nodes/base/host.py +86 -0
  560. candura-0.2.4.dev1/candura/core/nodes/base/identity.py +44 -0
  561. candura-0.2.4.dev1/candura/core/nodes/base/lifecycle.py +77 -0
  562. candura-0.2.4.dev1/candura/core/nodes/base/messaging.py +380 -0
  563. candura-0.2.4.dev1/candura/core/nodes/base/node.py +371 -0
  564. candura-0.2.4.dev1/candura/core/nodes/base/outbox.py +278 -0
  565. candura-0.2.4.dev1/candura/core/nodes/base/paths.py +213 -0
  566. candura-0.2.4.dev1/candura/core/nodes/base/pipeline.py +398 -0
  567. candura-0.2.4.dev1/candura/core/nodes/base/registration.py +81 -0
  568. candura-0.2.4.dev1/candura/core/nodes/base/response.py +160 -0
  569. candura-0.2.4.dev1/candura/core/nodes/base/server.py +376 -0
  570. candura-0.2.4.dev1/candura/core/nodes/base/subjects.py +75 -0
  571. candura-0.2.4.dev1/candura/core/nodes/base/websocket.py +117 -0
  572. candura-0.2.4.dev1/candura/core/nodes/definition.py +84 -0
  573. candura-0.2.4.dev1/candura/core/nodes/internals/__init__.py +5 -0
  574. candura-0.2.4.dev1/candura/core/nodes/internals/adapters/__init__.py +49 -0
  575. candura-0.2.4.dev1/candura/core/nodes/internals/adapters/asgi.py +325 -0
  576. candura-0.2.4.dev1/candura/core/nodes/internals/adapters/base.py +263 -0
  577. candura-0.2.4.dev1/candura/core/nodes/internals/adapters/engine.py +244 -0
  578. candura-0.2.4.dev1/candura/core/nodes/internals/adapters/infra.py +141 -0
  579. candura-0.2.4.dev1/candura/core/nodes/internals/adapters/lifespan.py +135 -0
  580. candura-0.2.4.dev1/candura/core/nodes/internals/adapters/litestar.py +230 -0
  581. candura-0.2.4.dev1/candura/core/nodes/internals/adapters/routing.py +337 -0
  582. candura-0.2.4.dev1/candura/core/nodes/internals/adapters/websocket.py +280 -0
  583. candura-0.2.4.dev1/candura/core/nodes/internals/delivery/__init__.py +26 -0
  584. candura-0.2.4.dev1/candura/core/nodes/internals/delivery/bus_binding.py +132 -0
  585. candura-0.2.4.dev1/candura/core/nodes/internals/delivery/channels.py +87 -0
  586. candura-0.2.4.dev1/candura/core/nodes/internals/delivery/envelope.py +43 -0
  587. candura-0.2.4.dev1/candura/core/nodes/internals/delivery/idempotency.py +347 -0
  588. candura-0.2.4.dev1/candura/core/nodes/internals/delivery/policy.py +229 -0
  589. candura-0.2.4.dev1/candura/core/nodes/internals/delivery/remote.py +251 -0
  590. candura-0.2.4.dev1/candura/core/nodes/internals/delivery/turn_completion.py +160 -0
  591. candura-0.2.4.dev1/candura/core/nodes/internals/http/__init__.py +5 -0
  592. candura-0.2.4.dev1/candura/core/nodes/internals/http/access_log.py +76 -0
  593. candura-0.2.4.dev1/candura/core/nodes/internals/http/cors.py +149 -0
  594. candura-0.2.4.dev1/candura/core/nodes/internals/http/guard.py +47 -0
  595. candura-0.2.4.dev1/candura/core/nodes/internals/http/identity_middleware.py +284 -0
  596. candura-0.2.4.dev1/candura/core/nodes/internals/http/identity_resolver.py +263 -0
  597. candura-0.2.4.dev1/candura/core/nodes/internals/http/problems.py +123 -0
  598. candura-0.2.4.dev1/candura/core/nodes/internals/http/routes.py +25 -0
  599. candura-0.2.4.dev1/candura/core/nodes/internals/http/security.py +170 -0
  600. candura-0.2.4.dev1/candura/core/nodes/internals/http/table.py +368 -0
  601. candura-0.2.4.dev1/candura/core/nodes/internals/mcp/__init__.py +20 -0
  602. candura-0.2.4.dev1/candura/core/nodes/internals/mcp/adapter.py +162 -0
  603. candura-0.2.4.dev1/candura/core/nodes/internals/mcp/catalog.py +209 -0
  604. candura-0.2.4.dev1/candura/core/nodes/internals/telemetry/__init__.py +2 -0
  605. candura-0.2.4.dev1/candura/core/nodes/internals/telemetry/debit.py +101 -0
  606. candura-0.2.4.dev1/candura/core/nodes/internals/telemetry/execution_rule.py +260 -0
  607. candura-0.2.4.dev1/candura/core/nodes/internals/telemetry/resources.py +66 -0
  608. candura-0.2.4.dev1/candura/core/nodes/internals/telemetry/scope.py +57 -0
  609. candura-0.2.4.dev1/candura/core/nodes/internals/telemetry/shutdown.py +127 -0
  610. candura-0.2.4.dev1/candura/core/nodes/internals/telemetry/startup.py +81 -0
  611. candura-0.2.4.dev1/candura/core/nodes/native/admin/__init__.py +145 -0
  612. candura-0.2.4.dev1/candura/core/nodes/native/admin/agents.py +145 -0
  613. candura-0.2.4.dev1/candura/core/nodes/native/admin/credit_handlers.py +171 -0
  614. candura-0.2.4.dev1/candura/core/nodes/native/admin/credit_models.py +130 -0
  615. candura-0.2.4.dev1/candura/core/nodes/native/admin/events.py +92 -0
  616. candura-0.2.4.dev1/candura/core/nodes/native/admin/execution_models.py +105 -0
  617. candura-0.2.4.dev1/candura/core/nodes/native/admin/execution_queries.py +350 -0
  618. candura-0.2.4.dev1/candura/core/nodes/native/admin/handler_rules.py +56 -0
  619. candura-0.2.4.dev1/candura/core/nodes/native/admin/handlers.py +139 -0
  620. candura-0.2.4.dev1/candura/core/nodes/native/admin/identity_panel.py +92 -0
  621. candura-0.2.4.dev1/candura/core/nodes/native/admin/identity_tenants.py +399 -0
  622. candura-0.2.4.dev1/candura/core/nodes/native/admin/loop_target.py +156 -0
  623. candura-0.2.4.dev1/candura/core/nodes/native/admin/metric_costs.py +76 -0
  624. candura-0.2.4.dev1/candura/core/nodes/native/admin/models.py +367 -0
  625. candura-0.2.4.dev1/candura/core/nodes/native/admin/module.md +98 -0
  626. candura-0.2.4.dev1/candura/core/nodes/native/admin/node.py +194 -0
  627. candura-0.2.4.dev1/candura/core/nodes/native/admin/observation_handlers.py +198 -0
  628. candura-0.2.4.dev1/candura/core/nodes/native/admin/operator_handlers.py +211 -0
  629. candura-0.2.4.dev1/candura/core/nodes/native/admin/operator_models.py +132 -0
  630. candura-0.2.4.dev1/candura/core/nodes/native/admin/panel_models.py +65 -0
  631. candura-0.2.4.dev1/candura/core/nodes/native/admin/queries.py +174 -0
  632. candura-0.2.4.dev1/candura/core/nodes/native/admin/server_info.py +75 -0
  633. candura-0.2.4.dev1/candura/core/nodes/native/admin/stream.py +143 -0
  634. candura-0.2.4.dev1/candura/core/nodes/native/admin/targets.py +289 -0
  635. candura-0.2.4.dev1/candura/core/nodes/native/admin/task_models.py +43 -0
  636. candura-0.2.4.dev1/candura/core/nodes/native/admin/task_queries.py +153 -0
  637. candura-0.2.4.dev1/candura/core/nodes/native/admin/tenant_creation.py +220 -0
  638. candura-0.2.4.dev1/candura/core/nodes/native/admin/tenant_handlers.py +114 -0
  639. candura-0.2.4.dev1/candura/core/nodes/native/admin/tenants.py +178 -0
  640. candura-0.2.4.dev1/candura/core/nodes/native/admin/tenants_view.py +61 -0
  641. candura-0.2.4.dev1/candura/core/nodes/native/admin/usage_accounts.py +203 -0
  642. candura-0.2.4.dev1/candura/core/nodes/native/admin/usage_models.py +83 -0
  643. candura-0.2.4.dev1/candura/core/nodes/native/admin/usage_report.py +216 -0
  644. candura-0.2.4.dev1/candura/core/nodes/native/admin/usage_report_models.py +95 -0
  645. candura-0.2.4.dev1/candura/core/nodes/native/dataadmin/__init__.py +56 -0
  646. candura-0.2.4.dev1/candura/core/nodes/native/dataadmin/db.py +323 -0
  647. candura-0.2.4.dev1/candura/core/nodes/native/dataadmin/events.py +54 -0
  648. candura-0.2.4.dev1/candura/core/nodes/native/dataadmin/filters.py +89 -0
  649. candura-0.2.4.dev1/candura/core/nodes/native/dataadmin/guard.py +87 -0
  650. candura-0.2.4.dev1/candura/core/nodes/native/dataadmin/handlers.py +287 -0
  651. candura-0.2.4.dev1/candura/core/nodes/native/dataadmin/inflight.py +60 -0
  652. candura-0.2.4.dev1/candura/core/nodes/native/dataadmin/lake.py +237 -0
  653. candura-0.2.4.dev1/candura/core/nodes/native/dataadmin/models.py +268 -0
  654. candura-0.2.4.dev1/candura/core/nodes/native/dataadmin/module.md +59 -0
  655. candura-0.2.4.dev1/candura/core/nodes/native/dataadmin/node.py +84 -0
  656. candura-0.2.4.dev1/candura/core/nodes/native/dataadmin/sandbox.py +260 -0
  657. candura-0.2.4.dev1/candura/core/nodes/native/identity/__init__.py +26 -0
  658. candura-0.2.4.dev1/candura/core/nodes/native/identity/module.md +130 -0
  659. candura-0.2.4.dev1/candura/core/nodes/native/identity/node.py +339 -0
  660. candura-0.2.4.dev1/candura/core/nodes/native/identity/pages.py +114 -0
  661. candura-0.2.4.dev1/candura/core/nodes/native/identity/request.py +97 -0
  662. candura-0.2.4.dev1/candura/core/nodes/native/operation/__init__.py +53 -0
  663. candura-0.2.4.dev1/candura/core/nodes/native/operation/audit.py +110 -0
  664. candura-0.2.4.dev1/candura/core/nodes/native/operation/catalog.py +105 -0
  665. candura-0.2.4.dev1/candura/core/nodes/native/operation/channels.py +15 -0
  666. candura-0.2.4.dev1/candura/core/nodes/native/operation/config_keys.py +30 -0
  667. candura-0.2.4.dev1/candura/core/nodes/native/operation/contract.py +30 -0
  668. candura-0.2.4.dev1/candura/core/nodes/native/operation/guards.py +59 -0
  669. candura-0.2.4.dev1/candura/core/nodes/native/operation/module.md +51 -0
  670. candura-0.2.4.dev1/candura/core/nodes/native/operation/moments.py +110 -0
  671. candura-0.2.4.dev1/candura/core/nodes/native/operation/tenants.py +66 -0
  672. candura-0.2.4.dev1/candura/core/nodes/native/operation/values.py +41 -0
  673. candura-0.2.4.dev1/candura/core/nodes/native/simul/__init__.py +38 -0
  674. candura-0.2.4.dev1/candura/core/nodes/native/simul/events.py +30 -0
  675. candura-0.2.4.dev1/candura/core/nodes/native/simul/guard.py +86 -0
  676. candura-0.2.4.dev1/candura/core/nodes/native/simul/module.md +41 -0
  677. candura-0.2.4.dev1/candura/core/nodes/native/simul/node.py +169 -0
  678. candura-0.2.4.dev1/candura/core/nodes/native/simul/port.py +151 -0
  679. candura-0.2.4.dev1/candura/core/nodes/native/tasks/__init__.py +22 -0
  680. candura-0.2.4.dev1/candura/core/nodes/native/tasks/keys.py +213 -0
  681. candura-0.2.4.dev1/candura/core/nodes/native/tasks/models.py +173 -0
  682. candura-0.2.4.dev1/candura/core/nodes/native/tasks/module.md +209 -0
  683. candura-0.2.4.dev1/candura/core/nodes/native/tasks/node.py +247 -0
  684. candura-0.2.4.dev1/candura/core/nodes/native/tasks/runner.py +169 -0
  685. candura-0.2.4.dev1/candura/core/nodes/native/telegram/__init__.py +83 -0
  686. candura-0.2.4.dev1/candura/core/nodes/native/telegram/aiogram_adapter.py +341 -0
  687. candura-0.2.4.dev1/candura/core/nodes/native/telegram/attachments.py +52 -0
  688. candura-0.2.4.dev1/candura/core/nodes/native/telegram/blobs.py +23 -0
  689. candura-0.2.4.dev1/candura/core/nodes/native/telegram/bot_identity.py +81 -0
  690. candura-0.2.4.dev1/candura/core/nodes/native/telegram/confirmation.py +133 -0
  691. candura-0.2.4.dev1/candura/core/nodes/native/telegram/definition.py +112 -0
  692. candura-0.2.4.dev1/candura/core/nodes/native/telegram/egress.py +279 -0
  693. candura-0.2.4.dev1/candura/core/nodes/native/telegram/fake.py +232 -0
  694. candura-0.2.4.dev1/candura/core/nodes/native/telegram/fake_webhook.py +205 -0
  695. candura-0.2.4.dev1/candura/core/nodes/native/telegram/gateway.py +91 -0
  696. candura-0.2.4.dev1/candura/core/nodes/native/telegram/guards.py +277 -0
  697. candura-0.2.4.dev1/candura/core/nodes/native/telegram/ingress.py +347 -0
  698. candura-0.2.4.dev1/candura/core/nodes/native/telegram/models.py +74 -0
  699. candura-0.2.4.dev1/candura/core/nodes/native/telegram/module.md +169 -0
  700. candura-0.2.4.dev1/candura/core/nodes/native/telegram/module.py +142 -0
  701. candura-0.2.4.dev1/candura/core/nodes/native/telegram/normalize.py +85 -0
  702. candura-0.2.4.dev1/candura/core/nodes/native/telegram/render.py +168 -0
  703. candura-0.2.4.dev1/candura/core/nodes/native/telegram/settings.py +325 -0
  704. candura-0.2.4.dev1/candura/core/nodes/native/telegram/source.py +204 -0
  705. candura-0.2.4.dev1/candura/core/nodes/native/telegram/testing/__init__.py +37 -0
  706. candura-0.2.4.dev1/candura/core/nodes/native/telegram/testing/chat.py +77 -0
  707. candura-0.2.4.dev1/candura/core/nodes/native/telegram/testing/config.py +102 -0
  708. candura-0.2.4.dev1/candura/core/nodes/native/telegram/testing/fake_chat.py +96 -0
  709. candura-0.2.4.dev1/candura/core/nodes/native/telegram/testing/markdown.py +69 -0
  710. candura-0.2.4.dev1/candura/core/nodes/native/telegram/testing/module.md +38 -0
  711. candura-0.2.4.dev1/candura/core/nodes/native/telegram/testing/user_driver.py +239 -0
  712. candura-0.2.4.dev1/candura/core/nodes/native/telegram/texts.py +70 -0
  713. candura-0.2.4.dev1/candura/core/nodes/native/telegram/typing.py +87 -0
  714. candura-0.2.4.dev1/candura/core/nodes/native/telegram/web_identity.py +204 -0
  715. candura-0.2.4.dev1/candura/core/nodes/native/telegram/webhook.py +238 -0
  716. candura-0.2.4.dev1/candura/core/nodes/nodes.md +873 -0
  717. candura-0.2.4.dev1/candura/extensions/__init__.py +7 -0
  718. candura-0.2.4.dev1/candura/extensions/a2ui/__init__.py +121 -0
  719. candura-0.2.4.dev1/candura/extensions/a2ui/asgi.py +82 -0
  720. candura-0.2.4.dev1/candura/extensions/a2ui/catalog/__init__.py +31 -0
  721. candura-0.2.4.dev1/candura/extensions/a2ui/catalog/candura/v1/catalog.json +410 -0
  722. candura-0.2.4.dev1/candura/extensions/a2ui/catalog/candura/v1/examples/Badge.json +16 -0
  723. candura-0.2.4.dev1/candura/extensions/a2ui/catalog/candura/v1/examples/Chart.json +46 -0
  724. candura-0.2.4.dev1/candura/extensions/a2ui/catalog/candura/v1/examples/Link.json +12 -0
  725. candura-0.2.4.dev1/candura/extensions/a2ui/catalog/candura/v1/examples/Markdown.json +12 -0
  726. candura-0.2.4.dev1/candura/extensions/a2ui/catalog/candura/v1/examples/ParamBar.json +16 -0
  727. candura-0.2.4.dev1/candura/extensions/a2ui/catalog/candura/v1/examples/Stat.json +14 -0
  728. candura-0.2.4.dev1/candura/extensions/a2ui/catalog/candura/v1/examples/Table.json +22 -0
  729. candura-0.2.4.dev1/candura/extensions/a2ui/catalog/candura/v1/examples/Timeline.json +17 -0
  730. candura-0.2.4.dev1/candura/extensions/a2ui/catalog/candura/v1/examples/WeekGrid.json +29 -0
  731. candura-0.2.4.dev1/candura/extensions/a2ui/catalog/candura/v1/rules.txt +29 -0
  732. candura-0.2.4.dev1/candura/extensions/a2ui/catalog/catalog.py +96 -0
  733. candura-0.2.4.dev1/candura/extensions/a2ui/codec.py +386 -0
  734. candura-0.2.4.dev1/candura/extensions/a2ui/config_keys.py +102 -0
  735. candura-0.2.4.dev1/candura/extensions/a2ui/contract.py +198 -0
  736. candura-0.2.4.dev1/candura/extensions/a2ui/definition.py +304 -0
  737. candura-0.2.4.dev1/candura/extensions/a2ui/delivery.py +346 -0
  738. candura-0.2.4.dev1/candura/extensions/a2ui/destination.py +97 -0
  739. candura-0.2.4.dev1/candura/extensions/a2ui/devtools/__init__.py +29 -0
  740. candura-0.2.4.dev1/candura/extensions/a2ui/devtools/guard.py +42 -0
  741. candura-0.2.4.dev1/candura/extensions/a2ui/devtools/node.py +159 -0
  742. candura-0.2.4.dev1/candura/extensions/a2ui/devtools/preview.py +292 -0
  743. candura-0.2.4.dev1/candura/extensions/a2ui/devtools/simulate.py +332 -0
  744. candura-0.2.4.dev1/candura/extensions/a2ui/enter.py +131 -0
  745. candura-0.2.4.dev1/candura/extensions/a2ui/events.py +169 -0
  746. candura-0.2.4.dev1/candura/extensions/a2ui/handlers.py +191 -0
  747. candura-0.2.4.dev1/candura/extensions/a2ui/internals/__init__.py +5 -0
  748. candura-0.2.4.dev1/candura/extensions/a2ui/internals/bundle.py +276 -0
  749. candura-0.2.4.dev1/candura/extensions/a2ui/internals/reader.py +184 -0
  750. candura-0.2.4.dev1/candura/extensions/a2ui/internals/schema.py +180 -0
  751. candura-0.2.4.dev1/candura/extensions/a2ui/internals/webapp.py +259 -0
  752. candura-0.2.4.dev1/candura/extensions/a2ui/links.py +252 -0
  753. candura-0.2.4.dev1/candura/extensions/a2ui/materializer.py +143 -0
  754. candura-0.2.4.dev1/candura/extensions/a2ui/models/__init__.py +60 -0
  755. candura-0.2.4.dev1/candura/extensions/a2ui/models/address.py +51 -0
  756. candura-0.2.4.dev1/candura/extensions/a2ui/models/document.py +99 -0
  757. candura-0.2.4.dev1/candura/extensions/a2ui/models/params.py +152 -0
  758. candura-0.2.4.dev1/candura/extensions/a2ui/models/records.py +161 -0
  759. candura-0.2.4.dev1/candura/extensions/a2ui/models/request.py +48 -0
  760. candura-0.2.4.dev1/candura/extensions/a2ui/models/values.py +103 -0
  761. candura-0.2.4.dev1/candura/extensions/a2ui/models/view.py +165 -0
  762. candura-0.2.4.dev1/candura/extensions/a2ui/models/web.py +63 -0
  763. candura-0.2.4.dev1/candura/extensions/a2ui/module.md +137 -0
  764. candura-0.2.4.dev1/candura/extensions/a2ui/node.py +339 -0
  765. candura-0.2.4.dev1/candura/extensions/a2ui/param_bar.py +138 -0
  766. candura-0.2.4.dev1/candura/extensions/a2ui/presentation.py +158 -0
  767. candura-0.2.4.dev1/candura/extensions/a2ui/profiles.py +150 -0
  768. candura-0.2.4.dev1/candura/extensions/a2ui/publications.py +296 -0
  769. candura-0.2.4.dev1/candura/extensions/a2ui/registry.py +35 -0
  770. candura-0.2.4.dev1/candura/extensions/a2ui/renderer.py +122 -0
  771. candura-0.2.4.dev1/candura/extensions/a2ui/runner.py +94 -0
  772. candura-0.2.4.dev1/candura/extensions/a2ui/runtime.py +281 -0
  773. candura-0.2.4.dev1/candura/extensions/a2ui/services.py +179 -0
  774. candura-0.2.4.dev1/candura/extensions/a2ui/settings.py +111 -0
  775. candura-0.2.4.dev1/candura/extensions/a2ui/support.py +72 -0
  776. candura-0.2.4.dev1/candura/extensions/a2ui/system/__init__.py +50 -0
  777. candura-0.2.4.dev1/candura/extensions/a2ui/system/providers.py +59 -0
  778. candura-0.2.4.dev1/candura/extensions/a2ui/system/publicacoes.a2ui.jsonl +5 -0
  779. candura-0.2.4.dev1/candura/extensions/a2ui/view_store.py +145 -0
  780. candura-0.2.4.dev1/candura/extensions/db/__init__.py +2 -0
  781. candura-0.2.4.dev1/candura/extensions/db/firestore/__init__.py +6 -0
  782. candura-0.2.4.dev1/candura/extensions/db/firestore/changes.py +74 -0
  783. candura-0.2.4.dev1/candura/extensions/db/firestore/config_keys.py +26 -0
  784. candura-0.2.4.dev1/candura/extensions/db/firestore/definition.py +346 -0
  785. candura-0.2.4.dev1/candura/extensions/db/firestore/filters.py +125 -0
  786. candura-0.2.4.dev1/candura/extensions/db/firestore/indexes.py +239 -0
  787. candura-0.2.4.dev1/candura/extensions/db/firestore/layout.py +90 -0
  788. candura-0.2.4.dev1/candura/extensions/db/firestore/limits.py +119 -0
  789. candura-0.2.4.dev1/candura/extensions/db/firestore/memory.py +182 -0
  790. candura-0.2.4.dev1/candura/extensions/db/firestore/module.md +38 -0
  791. candura-0.2.4.dev1/candura/extensions/db/firestore/purge.py +136 -0
  792. candura-0.2.4.dev1/candura/extensions/db/firestore/query_shape.py +127 -0
  793. candura-0.2.4.dev1/candura/extensions/db/firestore/transport.py +70 -0
  794. candura-0.2.4.dev1/candura/extensions/db/firestore/versioned.py +290 -0
  795. candura-0.2.4.dev1/candura/extensions/db/surrealdb/__init__.py +6 -0
  796. candura-0.2.4.dev1/candura/extensions/db/surrealdb/admin.py +86 -0
  797. candura-0.2.4.dev1/candura/extensions/db/surrealdb/connection.py +225 -0
  798. candura-0.2.4.dev1/candura/extensions/db/surrealdb/definition.py +399 -0
  799. candura-0.2.4.dev1/candura/extensions/db/surrealdb/layout.py +152 -0
  800. candura-0.2.4.dev1/candura/extensions/db/surrealdb/module.md +47 -0
  801. candura-0.2.4.dev1/candura/extensions/db/surrealdb/versioned.py +69 -0
  802. candura-0.2.4.dev1/candura/extensions/gcp/gcs/__init__.py +6 -0
  803. candura-0.2.4.dev1/candura/extensions/gcp/gcs/definition.py +152 -0
  804. candura-0.2.4.dev1/candura/extensions/gcp/gcs/module.md +35 -0
  805. candura-0.2.4.dev1/candura/extensions/nodes/__init__.py +2 -0
  806. candura-0.2.4.dev1/candura/extensions/nodes/adapters/__init__.py +6 -0
  807. candura-0.2.4.dev1/candura/extensions/nodes/adapters/fastapi/__init__.py +8 -0
  808. candura-0.2.4.dev1/candura/extensions/nodes/adapters/fastapi/context.py +80 -0
  809. candura-0.2.4.dev1/candura/extensions/nodes/adapters/fastapi/module.md +22 -0
  810. candura-0.2.4.dev1/candura/extensions/nodes/adapters/fastapi/server.py +355 -0
  811. candura-0.2.4.dev1/candura/extensions/report/__init__.py +21 -0
  812. candura-0.2.4.dev1/candura/extensions/report/contract.py +55 -0
  813. candura-0.2.4.dev1/candura/extensions/report/definition.py +130 -0
  814. candura-0.2.4.dev1/candura/extensions/report/engine.py +72 -0
  815. candura-0.2.4.dev1/candura/extensions/report/markdown.py +171 -0
  816. candura-0.2.4.dev1/candura/extensions/report/models.py +123 -0
  817. candura-0.2.4.dev1/candura/extensions/report/module.md +68 -0
  818. candura-0.2.4.dev1/candura/extensions/report/pdf_renderer.py +107 -0
  819. candura-0.2.4.dev1/candura/extensions/report/theme.py +52 -0
  820. candura-0.2.4.dev1/candura/extensions/report/themes/candura/fonts/Inter-Bold.ttf +0 -0
  821. candura-0.2.4.dev1/candura/extensions/report/themes/candura/fonts/Inter-ExtraBold.ttf +0 -0
  822. candura-0.2.4.dev1/candura/extensions/report/themes/candura/fonts/Inter-Italic.ttf +0 -0
  823. candura-0.2.4.dev1/candura/extensions/report/themes/candura/fonts/Inter-Medium.ttf +0 -0
  824. candura-0.2.4.dev1/candura/extensions/report/themes/candura/fonts/Inter-Regular.ttf +0 -0
  825. candura-0.2.4.dev1/candura/extensions/report/themes/candura/fonts/Inter-SemiBold.ttf +0 -0
  826. candura-0.2.4.dev1/candura/extensions/report/themes/candura/fonts/OFL.txt +92 -0
  827. candura-0.2.4.dev1/candura/extensions/report/themes/candura/template.html.j2 +49 -0
  828. candura-0.2.4.dev1/candura/extensions/report/themes/candura/theme.css +196 -0
  829. candura-0.2.4.dev1/candura/extensions/sandbox/lua/__init__.py +20 -0
  830. candura-0.2.4.dev1/candura/extensions/sandbox/lua/environment.py +172 -0
  831. candura-0.2.4.dev1/candura/extensions/sandbox/lua/extensions/collection.lua +35 -0
  832. candura-0.2.4.dev1/candura/extensions/sandbox/lua/extensions/context.lua +61 -0
  833. candura-0.2.4.dev1/candura/extensions/sandbox/lua/extensions/core.lua +108 -0
  834. candura-0.2.4.dev1/candura/extensions/sandbox/lua/extensions/env.lua +125 -0
  835. candura-0.2.4.dev1/candura/extensions/sandbox/lua/extensions/guard.lua +50 -0
  836. candura-0.2.4.dev1/candura/extensions/sandbox/lua/extensions/util.lua +60 -0
  837. candura-0.2.4.dev1/candura/extensions/sandbox/lua/loader.py +65 -0
  838. candura-0.2.4.dev1/candura/extensions/sandbox/lua/process.py +195 -0
  839. candura-0.2.4.dev1/candura/extensions/sandbox/lua/sandbox.py +119 -0
  840. candura-0.2.4.dev1/candura/extensions/sandbox/module.md +23 -0
  841. candura-0.2.4.dev1/candura.egg-info/PKG-INFO +95 -0
  842. candura-0.2.4.dev1/candura.egg-info/SOURCES.txt +845 -0
  843. candura-0.2.4.dev1/candura.egg-info/dependency_links.txt +1 -0
  844. candura-0.2.4.dev1/candura.egg-info/requires.txt +66 -0
  845. candura-0.2.4.dev1/candura.egg-info/top_level.txt +1 -0
  846. candura-0.2.4.dev1/pyproject.toml +202 -0
  847. candura-0.2.4.dev1/setup.cfg +4 -0
@@ -0,0 +1,202 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright [yyyy] [name of copyright owner]
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
@@ -0,0 +1,95 @@
1
+ Metadata-Version: 2.4
2
+ Name: candura
3
+ Version: 0.2.4.dev1
4
+ Summary: Candura SDK: agentes, harness, observabilidade e FinOps, com o kernel nativo em Rust.
5
+ License-Expression: Apache-2.0
6
+ Requires-Python: >=3.12
7
+ Description-Content-Type: text/markdown
8
+ License-File: LICENSE
9
+ Requires-Dist: candura-rust==0.2.4.dev1
10
+ Requires-Dist: pydantic>=2.12
11
+ Requires-Dist: pydantic-ai-slim[google]>=2.79
12
+ Requires-Dist: python-dotenv>=1.0
13
+ Requires-Dist: httpx>=0.28
14
+ Requires-Dist: psutil>=6.0
15
+ Provides-Extra: server
16
+ Requires-Dist: litestar>=2.25; extra == "server"
17
+ Requires-Dist: uvicorn>=0.30; extra == "server"
18
+ Requires-Dist: httpx>=0.28; extra == "server"
19
+ Provides-Extra: fastapi
20
+ Requires-Dist: fastapi>=0.115; extra == "fastapi"
21
+ Requires-Dist: uvicorn>=0.30; extra == "fastapi"
22
+ Requires-Dist: httpx>=0.28; extra == "fastapi"
23
+ Requires-Dist: python-multipart>=0.0.18; extra == "fastapi"
24
+ Provides-Extra: graphql
25
+ Requires-Dist: strawberry-graphql>=0.250; extra == "graphql"
26
+ Provides-Extra: mcp
27
+ Requires-Dist: mcp>=2.1; extra == "mcp"
28
+ Requires-Dist: mcp-types>=2.1; extra == "mcp"
29
+ Provides-Extra: otel
30
+ Requires-Dist: opentelemetry-sdk>=1.28; extra == "otel"
31
+ Requires-Dist: opentelemetry-exporter-otlp-proto-http>=1.28; extra == "otel"
32
+ Provides-Extra: parquet
33
+ Requires-Dist: polars>=1.44.0; extra == "parquet"
34
+ Provides-Extra: analytics
35
+ Requires-Dist: polars>=1.44.0; extra == "analytics"
36
+ Provides-Extra: firestore
37
+ Requires-Dist: google-cloud-firestore>=2.16; extra == "firestore"
38
+ Provides-Extra: telegram
39
+ Requires-Dist: aiogram<4,>=3.34; extra == "telegram"
40
+ Provides-Extra: telegram-e2e
41
+ Requires-Dist: telethon<2,>=1.36; extra == "telegram-e2e"
42
+ Provides-Extra: report
43
+ Requires-Dist: weasyprint>=68; extra == "report"
44
+ Requires-Dist: markdown-it-py>=3.0; extra == "report"
45
+ Requires-Dist: mdit-py-plugins>=0.4; extra == "report"
46
+ Requires-Dist: jinja2>=3.1; extra == "report"
47
+ Requires-Dist: pyyaml>=6.0; extra == "report"
48
+ Provides-Extra: credit
49
+ Requires-Dist: pyyaml>=6.0; extra == "credit"
50
+ Provides-Extra: a2ui
51
+ Requires-Dist: a2ui-core<0.9,>=0.8; extra == "a2ui"
52
+ Requires-Dist: jsonschema>=4.26; extra == "a2ui"
53
+ Provides-Extra: gcs
54
+ Requires-Dist: google-cloud-storage>=2.10; extra == "gcs"
55
+ Provides-Extra: surrealdb
56
+ Requires-Dist: surrealdb[embedded]<4,>=3; extra == "surrealdb"
57
+ Provides-Extra: all
58
+ Requires-Dist: candura[a2ui,analytics,credit,fastapi,firestore,gcs,graphql,mcp,otel,parquet,report,server,surrealdb,telegram,telegram-e2e]; extra == "all"
59
+ Dynamic: license-file
60
+
61
+ # candura
62
+
63
+ SDK Candura: agentes, harness, observabilidade e FinOps em Python, sobre um kernel nativo em Rust (barramento de
64
+ eventos, cache, registro, telemetria e lake analítico).
65
+
66
+ > **Versão de teste (pré-lançamento).** A `0.2.4.dev1` existe para validar a publicação. A API pode mudar sem aviso,
67
+ > e esta versão não é indicada para produção.
68
+
69
+ ## Instalação
70
+
71
+ ```bash
72
+ pip install --pre candura
73
+ # com extensões:
74
+ pip install --pre "candura[server,firestore,telegram]"
75
+ ```
76
+
77
+ - Python 3.12 ou mais novo.
78
+ - O kernel nativo vem no pacote `candura-rust`, instalado como dependência. Nesta versão de teste, ele só tem binário
79
+ para Linux x86_64 (manylinux).
80
+
81
+ ## Extensões (extras)
82
+
83
+ `server`, `fastapi`, `graphql`, `mcp`, `otel`, `parquet`, `analytics`, `firestore`, `telegram`, `telegram-e2e`,
84
+ `report`, `credit`, `a2ui`, `gcs`, `surrealdb` e `all`. Sem o extra, o recurso levanta `MissingExtraError` com a
85
+ instrução de instalação.
86
+
87
+ ## Uso
88
+
89
+ ```python
90
+ from candura.core import CanduraSdk as sdk
91
+ ```
92
+
93
+ ## Licença
94
+
95
+ Apache-2.0.
@@ -0,0 +1,334 @@
1
+ # candura.core
2
+ Platform Core - Agent, Harness, Observability &amp; FinOps
3
+
4
+ ---
5
+
6
+ ## 🏛️ Visão Geral e Módulos do Sistema
7
+
8
+ O **`candura-core`** é o chassi estrutural da plataforma Candura, combinando uma arquitetura Python orientada a eventos e agentes com um núcleo nativo de ultra-alta performance compilado em Rust (**`candura_rust`** / **`_candura_rust`**).
9
+
10
+ ### Módulos Nativos em Rust (`_candura_rust` e crates do kernel):
11
+ - **`registry`**: Registro universal de nós e subsistemas em conformidade com **RFC 3986** (esquemas `ag:///`, `mod:///`, `srv:///`). Possui indexação via `RegistryTrie` com suporte a curingas de segmento único (`*`), curingas gananciosos (`>`) e TTL (`RegistryHandle`). Inclui o `RegistryGraphHandle` para ordenação topológica de ciclo de vida $O(V+E)$ (Algoritmo de Kahn) e detecção de ciclos por BFS.
12
+ - **`reflection`**: Parser e introspecção de AST Python de altíssima velocidade baseado em `ruff_python_parser` e paralelismo com `rayon`.
13
+ - **`telemetry`**: Pipeline de observabilidade com canal MPMC atômico (`flume`), anéis de telemetria em memória (`TelemetryRings`), política *Drop Oldest* e sink colunar Apache Arrow/Parquet com compressão ZSTD.
14
+ - **`evbus`**: Barramento de eventos publish/subscribe nativo de baixa latência baseado em Trie de tópicos.
15
+ - **`cache`**: Sistema de cache concorrente em memória com isolamento multi-tenant (`DashMap`), expiração TTL e política de expulsão nativa.
16
+ - **`lake` (`candura_lake`)**: Motor de lago analítico e formato colunar (`LakeTableFormat`), changelog do repositório, streaming Arrow para Python sem leitura de Parquet no cliente, e reconciliação por marca-d'água.
17
+
18
+ ---
19
+
20
+ ## 📁 Estrutura de Pastas do Ecossistema
21
+
22
+ Para permitir o desenvolvimento simultâneo de múltiplos repositórios compartilhando o mesmo ambiente virtual e tipagem estática, adota-se a seguinte estrutura:
23
+
24
+ ```text
25
+ workspace/
26
+ ├── .venv/ # Ambiente virtual Python único
27
+ ├── projetos.code-workspace # Configuração de Workspace do VS Code / Antigravity
28
+ ├── candura-core/ # Chassi da plataforma, kernel Rust e exemplo BodyStrength
29
+ │ ├── candura/ # Código fonte Python (core, módulos, extensões, exemplos)
30
+ │ ├── candura_rust/ # Crate nativa Rust (_candura_rust) e crates/ (candura_kernel, candura_lake)
31
+ │ ├── pyproject.toml
32
+ │ └── requirements.txt
33
+ ├── candura-cli/ # Ferramenta de administração de aplicações (comandos e console)
34
+ └── candura-render/ # Renderizador React/Vite para A2UI (Viewer e catálogo)
35
+ ```
36
+
37
+ ---
38
+
39
+ ## 🛠️ Configuração do Ambiente em Nova Máquina
40
+
41
+ Siga o passo a passo a seguir para preparar um novo ambiente de desenvolvimento (Linux x86_64/ARM64, macOS ou Windows via WSL2).
42
+
43
+ ### 1. Pré-requisitos de Sistema
44
+
45
+ 1. **Ferramentas de Compilação C/C++**:
46
+ - Ubuntu/Debian: `sudo apt update && sudo apt install -y build-essential curl pkg-config libssl-dev python3-dev`
47
+ - Fedora/RHEL: `sudo dnf groupinstall "Development Tools" && sudo dnf install pkg-config openssl-devel python3-devel`
48
+ - macOS: `xcode-select --install`
49
+ 2. **Rust Toolchain (≥ 1.80)**:
50
+ - Instale via [rustup](https://rustup.rs/):
51
+ ```bash
52
+ curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
53
+ source "$HOME/.cargo/env"
54
+ ```
55
+ 3. **Python (≥ 3.12)**:
56
+ - Suporte verificado em Python 3.12, 3.13 e 3.14 (extensão configurada com PEP 384 `abi3-py312`).
57
+
58
+ ---
59
+
60
+ ### 2. Passo a Passo de Instalação
61
+
62
+ > [!TIP]
63
+ > **Versões fixadas (desde a 0.2.4):** o `constraints.txt` fixa as versões das bibliotecas (o fecho dos `requirements*.txt`,
64
+ > gerado do venv da máquina principal em Python 3.14 por `_scripts/constraints.py`). Para recriar o venv por
65
+ > elas, em vez dos passos 1 a 4 à mão, a partir da raiz do core: `PYTHON=python3.14 _scripts/venv.sh ../.venv`
66
+ > (os requirements com `-c constraints.txt`, a extensão Rust, o core, e a conferência no fim). O script aceita, como
67
+ > argumentos, pastas editáveis de quem depende do core (`'<pasta>[extras]'`, relativas ao diretório atual): cada uma entra
68
+ > com o `constraints.txt` dela, se tiver, e é conferida também. O core não depende de nenhuma delas. O script **recusa**
69
+ > uma pasta de venv que já existe e tem conteúdo: para recriá-la, `_scripts/venv.sh --clear ...`.
70
+ > Para conferir um venv:
71
+ > `python _scripts/constraints.py --check constraints.txt`; o gate o confere com `CANDURA_CONSTRAINTS=constraints.txt`.
72
+
73
+ #### Passo 1: Criar e Ativar o Ambiente Virtual Unificado
74
+ Na raiz do seu workspace (ou dentro de `candura-core`):
75
+
76
+ ```bash
77
+ python3 -m venv .venv
78
+ source .venv/bin/activate
79
+ ```
80
+
81
+ #### Passo 2: Instalar Dependências Base
82
+ ```bash
83
+ pip install --upgrade pip
84
+ pip install -r candura-core/requirements.txt
85
+ ```
86
+
87
+ Para desenvolvimento (testes, gate de qualidade e E2E do Telegram), instale também as dependências de teste, das
88
+ extensões (GCP, SurrealDB, relatórios, A2UI, analytics) e da aplicação de exemplo:
89
+
90
+ ```bash
91
+ pip install -r candura-core/requirements-test.txt -r candura-core/requirements-ext.txt -r candura-core/requirements-example.txt
92
+ ```
93
+
94
+ #### Passo 3: Compilar e Instalar o Módulo Nativo Rust (`_candura_rust`)
95
+ O `candura_rust` utiliza `build.rs` com detecção dinâmica do ambiente Python ativo para configuração automática do linker.
96
+ A extensão é instalada como a distribuição **`candura-core-rust`** (`candura_rust/pyproject.toml`), separada do pacote
97
+ `candura-core` (que a declara como dependência): por isso os passos 3 e 4 não se desfazem, em qualquer ordem.
98
+
99
+ ```bash
100
+ # A partir da raiz do repositório candura-core:
101
+ maturin develop -m candura_rust/Cargo.toml
102
+
103
+ # Ou, para compilação otimizada de produção/benchmark:
104
+ maturin develop --release -m candura_rust/Cargo.toml
105
+ ```
106
+
107
+ > [!TIP]
108
+ > Caso tenha múltiplos ambientes virtuais no sistema, informe explicitamente o virtualenv de destino:
109
+ > ```bash
110
+ > VIRTUAL_ENV=$(dirname $(dirname $(which python))) maturin develop -m candura_rust/Cargo.toml
111
+ > ```
112
+
113
+ #### Passo 4: Instalar `candura-core` em Modo Editável (`-e`)
114
+ ```bash
115
+ cd candura-core
116
+ pip install -e . # ou com extras: pip install -e '.[server,telegram,report,a2ui]'
117
+ python -c "import _candura_rust; print(_candura_rust.__file__)" # deve imprimir um caminho, não None
118
+ ```
119
+
120
+ > [!WARNING]
121
+ > Se o import do SDK falhar com "A extensão nativa '_candura_rust' não está instalada" (ou, em versões anteriores, com um
122
+ > import circular de `CdRuntime`), o `.so` não está no venv: repita o Passo 3. Ambientes criados antes do
123
+ > `candura_rust/pyproject.toml` podem ter a extensão registrada com o nome `candura-core`; um `maturin develop` novo
124
+ > corrige o registro.
125
+
126
+ Se estiver desenvolvendo em conjunto com `candura-business`:
127
+ ```bash
128
+ pip install -e ../candura-business
129
+ ```
130
+
131
+ ---
132
+
133
+ ## 🧪 Executando Testes
134
+
135
+ ### 1. Testes Nativos em Rust (`cargo test`)
136
+ Valida os componentes nativos de baixo nível isolados do Python (Trie de rotas RFC 3986, ordenação topológica $O(V+E)$, detecção de ciclos BFS, canal MPMC, anéis de telemetria, buffers e cache):
137
+
138
+ ```bash
139
+ cd candura-core/candura_rust
140
+ cargo test
141
+ ```
142
+
143
+ Para rodar uma suíte de integração específica de `candura_rust/tests`:
144
+ ```bash
145
+ cargo test --test bus_handle_tests
146
+ cargo test --test lake_handle_tests
147
+ cargo test --test stats_views_tests
148
+ ```
149
+
150
+ ### 2. Smoke Test Rápido no Python
151
+ Valida se a extensão nativa e os módulos do kernel estão acessíveis no runtime Python:
152
+
153
+ ```bash
154
+ python -c "
155
+ import _candura_rust
156
+ from _candura_rust.registry import RegistryHandle, RegistryGraphHandle
157
+
158
+ core = RegistryHandle()
159
+ core.insert('ag:///dev:candura/agent_a', 'Payload', ttl=60.0)
160
+ print('✅ Nó recuperado:', core.get('ag:///dev:candura/agent_a'))
161
+
162
+ graph = RegistryGraphHandle()
163
+ graph.add_dependency('mod_b', 'mod_a')
164
+ print('✅ Ordenação topológica:', graph.topological_sort())
165
+ "
166
+ ```
167
+
168
+ ### 3. Testes do Ecossistema com Pytest
169
+ ```bash
170
+ # Testes específicos que utilizam os módulos Rust:
171
+ pytest candura/core/tests/unit/test_rust_*
172
+
173
+ # Desenvolvimento local (padrão): níveis unit + integration
174
+ pytest
175
+
176
+ # Nível de serviço (infraestrutura embedded, apenas localhost)
177
+ pytest -m service
178
+
179
+ # Desempenho (sob demanda) e serviços reais (manual, com credenciais; fora do aceite)
180
+ pytest -m benchmark
181
+ pytest -m live
182
+
183
+ # Benchmarks em fumaça (passo do gate): todos executam, com poucas repetições e sem as metas de tempo
184
+ CANDURA_BENCH_SMOKE=1 pytest -m benchmark candura/core/tests/benchmarks
185
+
186
+ # Gate de qualidade (Ruff, Pyright, cobertura) sobre os arquivos alterados em relação ao ramo base
187
+ BASE_REF=origin/main PYTHON=python _scripts/quality_gate.sh
188
+ ```
189
+
190
+ O nível de cada teste é definido pelo diretório (`unit/`, `integration/`, `service/`, `benchmarks/`, `live/`) e imposto por
191
+ `_scripts/candura_test_levels.py`; `unit` e `integration` executam sem rede. Detalhes em
192
+ [`req-0.2.2-qualidade.md`](_docs/specs/0.2/req-0.2.2-qualidade.md).
193
+
194
+ ---
195
+
196
+ ## 💻 Integração com o VS Code / Antigravity IDE
197
+
198
+ Para que o editor resolva os tipos do namespace `candura` e os stubs nativos (`candura_rust/stubs/_candura_rust/__init__.pyi`, apontados por `stubPath` no `pyproject.toml`) com autocompletar completo:
199
+
200
+ 1. Crie o arquivo `projetos.code-workspace` na raiz do workspace com:
201
+
202
+ ```json
203
+ {
204
+ "folders": [
205
+ {
206
+ "name": "Core (Biblioteca)",
207
+ "path": "candura-core"
208
+ },
209
+ {
210
+ "name": "Business (Microserviço)",
211
+ "path": "candura-business"
212
+ }
213
+ ],
214
+ "settings": {
215
+ "python.defaultInterpreterPath": "${workspaceRoot}/.venv/bin/python",
216
+ "python.analysis.indexing": true,
217
+ "python.analysis.packageIndexDepths": [
218
+ {
219
+ "name": "candura",
220
+ "depth": 5
221
+ }
222
+ ]
223
+ }
224
+ }
225
+ ```
226
+
227
+ 2. Abra o arquivo pelo menu **File > Open Workspace from File...**.
228
+
229
+ ---
230
+
231
+ ## 🔧 Configuração do Git e Prevenção de Conflitos no Índice (WSL2 / Windows)
232
+
233
+ Em ambientes híbridos (**Windows + WSL2 + VS Code / Antigravity**), monitores de arquivos (*File Watchers*) podem concorrer com o Git durante edições rápidas de agentes ou compilações, causando:
234
+ ```text
235
+ fatal: .git/index: index file smaller than expected
236
+ ```
237
+
238
+ ### 1. Configuração no `.vscode/settings.json`
239
+ Mantenha `.vscode/settings.json` na raiz do workspace ou dentro de `candura-core`:
240
+
241
+ ```json
242
+ {
243
+ "files.exclude": {
244
+ "**/.pytest_cache": true,
245
+ "**/__pycache__": true,
246
+ "**/.venv": true,
247
+ "**/candura_core.egg*": true,
248
+ "**/.mypy_cache": true
249
+ },
250
+ "files.watcherExclude": {
251
+ "**/.git/**": true,
252
+ "**/.git/objects/**": true,
253
+ "**/.git/subtree-cache/**": true,
254
+ "**/.git/index.lock": true,
255
+ "**/.git/index": true,
256
+ "**/.venv/**": true,
257
+ "**/__pycache__/**": true,
258
+ "**/.pytest_cache/**": true,
259
+ "**/candura_rust/target/**": true
260
+ },
261
+ "git.autorefresh": false,
262
+ "git.refreshOnWindowFocus": false,
263
+ "git.autofetch": false,
264
+ "git.autoRepositoryDetection": false,
265
+ "git.decorations.enabled": false,
266
+ "git.detectSubmodules": false,
267
+ "git.untrackedChanges": "hidden"
268
+ }
269
+ ```
270
+
271
+ ### 2. Otimizações de Concorrência do Git
272
+ Execute na pasta do repositório:
273
+ ```bash
274
+ git config core.preloadindex false
275
+ git config index.threads 1
276
+ git config core.trustctime false
277
+ ```
278
+
279
+ ### 3. Alias de Recuperação Rápida (`git fix-index`)
280
+ Para reconstruir o índice instantaneamente caso ocorra truncamento acidental:
281
+ ```bash
282
+ git config alias.fix-index '!rm -f .git/index && git reset'
283
+ ```
284
+ Ao encontrar o erro de índice truncado, execute:
285
+ ```bash
286
+ git fix-index
287
+ ```
288
+ *(Seus arquivos e alterações em disco permanecerão intactos; apenas o índice de staging será reconstruído).*
289
+
290
+ ---
291
+
292
+ ## 🐳 Desenvolvimento com Docker Compose
293
+
294
+ O ecossistema local do BodyStrength e serviços é executado através de um `docker-compose.yaml` único com perfis por grupo (`infra`, `backend`, `frontend`), operado diretamente pelos comandos de compose da CLI (`candura app`):
295
+
296
+ - **Documentação completa e regras de volume/perfis**: [`_scripts/docker/README.md`](_scripts/docker/README.md).
297
+ - **Arquivo compose local**: [`_scripts/docker/local/docker-compose.yaml`](_scripts/docker/local/docker-compose.yaml).
298
+ - **Operação pela CLI**:
299
+ ```bash
300
+ cd candura-core
301
+ candura app up --group all # cria pastas em $CANDURA_DATA_DIR, sobe na ordem e valida saúde
302
+ candura app status --watch # acompanha status dos serviços
303
+ candura app logs --service backend # visualiza logs
304
+ candura app down # encerra os containers
305
+ ```
306
+
307
+ ---
308
+
309
+ ## 🚀 Distribuição e CI/CD
310
+
311
+ O pacote nativo `candura_rust` utiliza a **PEP 384 (Python Limited API / abi3)**:
312
+ - Um wheel compilado com `abi3-py312` funciona diretamente em **Python 3.12, 3.13, 3.14+** sem necessidade de compilação por versão do Python na máquina destino.
313
+ - Para gerar o wheel de produção:
314
+ ```bash
315
+ cd candura-core/candura_rust
316
+ maturin build --release
317
+ ```
318
+ - O arquivo `.whl` gerado em `target/wheels/` pode ser instalado via `pip install` em qualquer ambiente Linux compatível (glibc/manylinux).
319
+
320
+ ## Branches e tags
321
+
322
+ Padrão combinado em 2026-12-01 (o mesmo nos repositórios `candura-core`, `candura-cli`, `candura-render` e
323
+ `candura-neurodiv`; a política completa está na §9 do `_docs/specs/roadmap-geral.md` do `candura-core`):
324
+
325
+ - **Branch:** `v<VERSION>.<RELEASE>.<SUBRELEASE>.<DEV>`, uma por rodada de desenvolvimento (`DEV`), com as ondas e as
326
+ fases dentro dela. Fechada a rodada, a branch não recebe commits novos e é mantida até o fim do piloto.
327
+ - **Tag final:** `<VERSION>.<RELEASE>.<SUBRELEASE>`, sem o `v`, anotada, só no `main`, quando a subrelease fecha; o
328
+ `main` só avança por fast-forward. O `version` do pacote é o mesmo `X.Y.Z`, sem a rodada.
329
+ - **Tag de ponto de onda:** `<VERSION>.<RELEASE>.<SUBRELEASE>-d<DEV>.a<N>` (por exemplo `0.2.4-d1.a2`), na branch da
330
+ rodada, sem ir ao `main`.
331
+ - Branch e tag nunca têm o mesmo nome. Scripts e documentos citam o hash ou a tag, nunca a branch como commit.
332
+
333
+ Neste repositório: a rodada em curso é a `v0.2.4` (rodada 1 da 0.2.4, nome anterior ao padrão); as rodadas
334
+ `v0.2.3.1` a `v0.2.3.14` fecharam a 0.2.3 (tag `0.2.3` no `main`).
@@ -0,0 +1,35 @@
1
+ # candura
2
+
3
+ SDK Candura: agentes, harness, observabilidade e FinOps em Python, sobre um kernel nativo em Rust (barramento de
4
+ eventos, cache, registro, telemetria e lake analítico).
5
+
6
+ > **Versão de teste (pré-lançamento).** A `0.2.4.dev1` existe para validar a publicação. A API pode mudar sem aviso,
7
+ > e esta versão não é indicada para produção.
8
+
9
+ ## Instalação
10
+
11
+ ```bash
12
+ pip install --pre candura
13
+ # com extensões:
14
+ pip install --pre "candura[server,firestore,telegram]"
15
+ ```
16
+
17
+ - Python 3.12 ou mais novo.
18
+ - O kernel nativo vem no pacote `candura-rust`, instalado como dependência. Nesta versão de teste, ele só tem binário
19
+ para Linux x86_64 (manylinux).
20
+
21
+ ## Extensões (extras)
22
+
23
+ `server`, `fastapi`, `graphql`, `mcp`, `otel`, `parquet`, `analytics`, `firestore`, `telegram`, `telegram-e2e`,
24
+ `report`, `credit`, `a2ui`, `gcs`, `surrealdb` e `all`. Sem o extra, o recurso levanta `MissingExtraError` com a
25
+ instrução de instalação.
26
+
27
+ ## Uso
28
+
29
+ ```python
30
+ from candura.core import CanduraSdk as sdk
31
+ ```
32
+
33
+ ## Licença
34
+
35
+ Apache-2.0.
@@ -0,0 +1,16 @@
1
+ # candura/core/__init__.py
2
+ """Pacote raiz do Candura SDK: `CanduraSdk` é a fachada única do cliente (REQ-SDK-03).
3
+
4
+ A fachada delega cada acesso ao SDK corrente do processo (`candura.core.current`): o `CanduraTestSdk` mais recente
5
+ ainda vivo ou, sem ele, o SDK padrão criado aqui.
6
+ """
7
+
8
+ from .facade import CanduraSdkFacade
9
+ from .internals.namespaces.candura import CanduraNamespace
10
+ from .models.meta import CdRuntime
11
+
12
+ # Fachada única exposta ao cliente, sobre o SDK padrão do processo
13
+ CanduraSdk = CanduraSdkFacade(CanduraNamespace())
14
+
15
+ # Expõe para o "from candura.core import CanduraSdk as sdk, CdRuntime"
16
+ __all__ = ["CanduraSdk", "CdRuntime"]