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.
- candura-0.2.4.dev1/LICENSE +202 -0
- candura-0.2.4.dev1/PKG-INFO +95 -0
- candura-0.2.4.dev1/README.md +334 -0
- candura-0.2.4.dev1/README_PYPI.md +35 -0
- candura-0.2.4.dev1/candura/core/__init__.py +16 -0
- candura-0.2.4.dev1/candura/core/agentic/__init__.py +43 -0
- candura-0.2.4.dev1/candura/core/agentic/agentic.md +1014 -0
- candura-0.2.4.dev1/candura/core/agentic/chassi/__init__.py +20 -0
- candura-0.2.4.dev1/candura/core/agentic/chassi/admission.py +156 -0
- candura-0.2.4.dev1/candura/core/agentic/chassi/agent.py +232 -0
- candura-0.2.4.dev1/candura/core/agentic/chassi/agent_runner.py +204 -0
- candura-0.2.4.dev1/candura/core/agentic/chassi/binder.py +93 -0
- candura-0.2.4.dev1/candura/core/agentic/chassi/budget.py +106 -0
- candura-0.2.4.dev1/candura/core/agentic/chassi/contract.py +101 -0
- candura-0.2.4.dev1/candura/core/agentic/chassi/execution.py +88 -0
- candura-0.2.4.dev1/candura/core/agentic/chassi/harness.py +207 -0
- candura-0.2.4.dev1/candura/core/agentic/chassi/report.py +180 -0
- candura-0.2.4.dev1/candura/core/agentic/conversations/__init__.py +58 -0
- candura-0.2.4.dev1/candura/core/agentic/conversations/closing.py +72 -0
- candura-0.2.4.dev1/candura/core/agentic/conversations/dedupe.py +230 -0
- candura-0.2.4.dev1/candura/core/agentic/conversations/locks.py +243 -0
- candura-0.2.4.dev1/candura/core/agentic/conversations/models.py +323 -0
- candura-0.2.4.dev1/candura/core/agentic/conversations/notify.py +369 -0
- candura-0.2.4.dev1/candura/core/agentic/conversations/notify_values.py +92 -0
- candura-0.2.4.dev1/candura/core/agentic/conversations/queries.py +73 -0
- candura-0.2.4.dev1/candura/core/agentic/conversations/repository.py +371 -0
- candura-0.2.4.dev1/candura/core/agentic/conversations/store.py +103 -0
- candura-0.2.4.dev1/candura/core/agentic/definition.py +322 -0
- candura-0.2.4.dev1/candura/core/agentic/loader.py +308 -0
- candura-0.2.4.dev1/candura/core/agentic/loop/__init__.py +175 -0
- candura-0.2.4.dev1/candura/core/agentic/loop/catalog/__init__.py +23 -0
- candura-0.2.4.dev1/candura/core/agentic/loop/catalog/commands.py +78 -0
- candura-0.2.4.dev1/candura/core/agentic/loop/catalog/intention.py +39 -0
- candura-0.2.4.dev1/candura/core/agentic/loop/catalog/intents.py +288 -0
- candura-0.2.4.dev1/candura/core/agentic/loop/catalog/slot_text.py +106 -0
- candura-0.2.4.dev1/candura/core/agentic/loop/conversation.py +296 -0
- candura-0.2.4.dev1/candura/core/agentic/loop/delivery/__init__.py +8 -0
- candura-0.2.4.dev1/candura/core/agentic/loop/delivery/builder.py +37 -0
- candura-0.2.4.dev1/candura/core/agentic/loop/delivery/context.py +41 -0
- candura-0.2.4.dev1/candura/core/agentic/loop/delivery/stage.py +26 -0
- candura-0.2.4.dev1/candura/core/agentic/loop/evaluation/__init__.py +8 -0
- candura-0.2.4.dev1/candura/core/agentic/loop/evaluation/builder.py +36 -0
- candura-0.2.4.dev1/candura/core/agentic/loop/evaluation/context.py +107 -0
- candura-0.2.4.dev1/candura/core/agentic/loop/evaluation/stage.py +35 -0
- candura-0.2.4.dev1/candura/core/agentic/loop/execution/__init__.py +44 -0
- candura-0.2.4.dev1/candura/core/agentic/loop/execution/agentic.py +62 -0
- candura-0.2.4.dev1/candura/core/agentic/loop/execution/builder.py +45 -0
- candura-0.2.4.dev1/candura/core/agentic/loop/execution/builtin.py +87 -0
- candura-0.2.4.dev1/candura/core/agentic/loop/execution/content.py +66 -0
- candura-0.2.4.dev1/candura/core/agentic/loop/execution/context.py +259 -0
- candura-0.2.4.dev1/candura/core/agentic/loop/execution/engine.py +179 -0
- candura-0.2.4.dev1/candura/core/agentic/loop/execution/plan.py +93 -0
- candura-0.2.4.dev1/candura/core/agentic/loop/execution/stage.py +150 -0
- candura-0.2.4.dev1/candura/core/agentic/loop/execution/trace.py +285 -0
- candura-0.2.4.dev1/candura/core/agentic/loop/interpretation/__init__.py +27 -0
- candura-0.2.4.dev1/candura/core/agentic/loop/interpretation/agent.py +193 -0
- candura-0.2.4.dev1/candura/core/agentic/loop/interpretation/builder.py +86 -0
- candura-0.2.4.dev1/candura/core/agentic/loop/interpretation/commands.py +31 -0
- candura-0.2.4.dev1/candura/core/agentic/loop/interpretation/context.py +40 -0
- candura-0.2.4.dev1/candura/core/agentic/loop/interpretation/interpreter.py +193 -0
- candura-0.2.4.dev1/candura/core/agentic/loop/interpretation/pipeline.py +96 -0
- candura-0.2.4.dev1/candura/core/agentic/loop/interpretation/query_context.py +95 -0
- candura-0.2.4.dev1/candura/core/agentic/loop/interpretation/stage.py +65 -0
- candura-0.2.4.dev1/candura/core/agentic/loop/panel.py +44 -0
- candura-0.2.4.dev1/candura/core/agentic/loop/planning/__init__.py +29 -0
- candura-0.2.4.dev1/candura/core/agentic/loop/planning/builder.py +74 -0
- candura-0.2.4.dev1/candura/core/agentic/loop/planning/context.py +135 -0
- candura-0.2.4.dev1/candura/core/agentic/loop/planning/decision.py +71 -0
- candura-0.2.4.dev1/candura/core/agentic/loop/planning/router.py +148 -0
- candura-0.2.4.dev1/candura/core/agentic/loop/planning/stage.py +120 -0
- candura-0.2.4.dev1/candura/core/agentic/loop/presentation/__init__.py +35 -0
- candura-0.2.4.dev1/candura/core/agentic/loop/presentation/builder.py +78 -0
- candura-0.2.4.dev1/candura/core/agentic/loop/presentation/content.py +123 -0
- candura-0.2.4.dev1/candura/core/agentic/loop/presentation/context.py +80 -0
- candura-0.2.4.dev1/candura/core/agentic/loop/presentation/formatter.py +81 -0
- candura-0.2.4.dev1/candura/core/agentic/loop/presentation/render.py +259 -0
- candura-0.2.4.dev1/candura/core/agentic/loop/presentation/stage.py +87 -0
- candura-0.2.4.dev1/candura/core/agentic/loop/reception/__init__.py +20 -0
- candura-0.2.4.dev1/candura/core/agentic/loop/reception/builder.py +88 -0
- candura-0.2.4.dev1/candura/core/agentic/loop/reception/context.py +111 -0
- candura-0.2.4.dev1/candura/core/agentic/loop/reception/stage.py +55 -0
- candura-0.2.4.dev1/candura/core/agentic/loop/reception/transcription.py +132 -0
- candura-0.2.4.dev1/candura/core/agentic/loop/setup.py +138 -0
- candura-0.2.4.dev1/candura/core/agentic/loop/stages.py +79 -0
- candura-0.2.4.dev1/candura/core/agentic/media.py +31 -0
- candura-0.2.4.dev1/candura/core/agentic/memory.py +31 -0
- candura-0.2.4.dev1/candura/core/agentic/prompt.py +397 -0
- candura-0.2.4.dev1/candura/core/agentic/prompt_capture.py +270 -0
- candura-0.2.4.dev1/candura/core/agentic/prompt_sources.py +164 -0
- candura-0.2.4.dev1/candura/core/agentic/runtime/__init__.py +5 -0
- candura-0.2.4.dev1/candura/core/agentic/runtime/admission.py +71 -0
- candura-0.2.4.dev1/candura/core/agentic/runtime/async_runtime.py +81 -0
- candura-0.2.4.dev1/candura/core/agentic/runtime/execution_rule.py +40 -0
- candura-0.2.4.dev1/candura/core/agentic/runtime/execution_scope.py +287 -0
- candura-0.2.4.dev1/candura/core/agentic/runtime/hydration.py +82 -0
- candura-0.2.4.dev1/candura/core/agentic/runtime/identity.py +130 -0
- candura-0.2.4.dev1/candura/core/agentic/runtime/output_hook.py +218 -0
- candura-0.2.4.dev1/candura/core/agentic/runtime/resolver.py +128 -0
- candura-0.2.4.dev1/candura/core/agentic/runtime/runtime.py +210 -0
- candura-0.2.4.dev1/candura/core/agentic/session.py +35 -0
- candura-0.2.4.dev1/candura/core/clock.py +176 -0
- candura-0.2.4.dev1/candura/core/config/__init__.py +24 -0
- candura-0.2.4.dev1/candura/core/config/config.md +216 -0
- candura-0.2.4.dev1/candura/core/config/config.py +187 -0
- candura-0.2.4.dev1/candura/core/config/dotenv_source.py +57 -0
- candura-0.2.4.dev1/candura/core/config/errors.py +13 -0
- candura-0.2.4.dev1/candura/core/config/keys.py +190 -0
- candura-0.2.4.dev1/candura/core/config/prefix.py +53 -0
- candura-0.2.4.dev1/candura/core/config/profile.py +44 -0
- candura-0.2.4.dev1/candura/core/config/timezone.py +49 -0
- candura-0.2.4.dev1/candura/core/context/__init__.py +41 -0
- candura-0.2.4.dev1/candura/core/context/activity.py +87 -0
- candura-0.2.4.dev1/candura/core/context/agentic_view.py +131 -0
- candura-0.2.4.dev1/candura/core/context/blackboard.py +303 -0
- candura-0.2.4.dev1/candura/core/context/candura_context.py +190 -0
- candura-0.2.4.dev1/candura/core/context/carrier.py +312 -0
- candura-0.2.4.dev1/candura/core/context/content.py +124 -0
- candura-0.2.4.dev1/candura/core/context/context.md +640 -0
- candura-0.2.4.dev1/candura/core/context/exclusions.py +57 -0
- candura-0.2.4.dev1/candura/core/context/execution_fields.py +167 -0
- candura-0.2.4.dev1/candura/core/context/executions.py +360 -0
- candura-0.2.4.dev1/candura/core/context/factory.py +34 -0
- candura-0.2.4.dev1/candura/core/context/frame.py +34 -0
- candura-0.2.4.dev1/candura/core/context/history.py +391 -0
- candura-0.2.4.dev1/candura/core/context/identity.py +172 -0
- candura-0.2.4.dev1/candura/core/context/labels.py +50 -0
- candura-0.2.4.dev1/candura/core/context/lake_executions.py +208 -0
- candura-0.2.4.dev1/candura/core/context/model.py +355 -0
- candura-0.2.4.dev1/candura/core/context/opened_tenants.py +87 -0
- candura-0.2.4.dev1/candura/core/context/otel.py +24 -0
- candura-0.2.4.dev1/candura/core/context/outcomes.py +115 -0
- candura-0.2.4.dev1/candura/core/context/retention.py +31 -0
- candura-0.2.4.dev1/candura/core/context/scope.py +119 -0
- candura-0.2.4.dev1/candura/core/context/snapshot.py +63 -0
- candura-0.2.4.dev1/candura/core/context/tenant_store.py +182 -0
- candura-0.2.4.dev1/candura/core/context/tenant_view.py +85 -0
- candura-0.2.4.dev1/candura/core/context/tenants.py +140 -0
- candura-0.2.4.dev1/candura/core/context/threads.py +24 -0
- candura-0.2.4.dev1/candura/core/context/transport.py +40 -0
- candura-0.2.4.dev1/candura/core/context/usage.py +154 -0
- candura-0.2.4.dev1/candura/core/context/zone.py +99 -0
- candura-0.2.4.dev1/candura/core/current.py +111 -0
- candura-0.2.4.dev1/candura/core/facade.py +103 -0
- candura-0.2.4.dev1/candura/core/internals/bridge/__init__.py +7 -0
- candura-0.2.4.dev1/candura/core/internals/bridge/cache.py +181 -0
- candura-0.2.4.dev1/candura/core/internals/bridge/clock.py +26 -0
- candura-0.2.4.dev1/candura/core/internals/bridge/errors.py +103 -0
- candura-0.2.4.dev1/candura/core/internals/bridge/evbus.py +171 -0
- candura-0.2.4.dev1/candura/core/internals/bridge/kernel.py +244 -0
- candura-0.2.4.dev1/candura/core/internals/bridge/lake.py +400 -0
- candura-0.2.4.dev1/candura/core/internals/bridge/lake_fake.py +400 -0
- candura-0.2.4.dev1/candura/core/internals/bridge/lake_ops_fake.py +80 -0
- candura-0.2.4.dev1/candura/core/internals/bridge/lake_pull_fake.py +179 -0
- candura-0.2.4.dev1/candura/core/internals/bridge/lake_records_fake.py +207 -0
- candura-0.2.4.dev1/candura/core/internals/bridge/module.md +252 -0
- candura-0.2.4.dev1/candura/core/internals/bridge/processes.py +296 -0
- candura-0.2.4.dev1/candura/core/internals/bridge/reflection.py +76 -0
- candura-0.2.4.dev1/candura/core/internals/bridge/registry.py +107 -0
- candura-0.2.4.dev1/candura/core/internals/bridge/telemetry.py +205 -0
- candura-0.2.4.dev1/candura/core/internals/extras.py +82 -0
- candura-0.2.4.dev1/candura/core/internals/keyed_locks.py +167 -0
- candura-0.2.4.dev1/candura/core/internals/lake/__init__.py +11 -0
- candura-0.2.4.dev1/candura/core/internals/lake/upcasting.py +58 -0
- candura-0.2.4.dev1/candura/core/internals/materialization.py +104 -0
- candura-0.2.4.dev1/candura/core/internals/model_schema.py +132 -0
- candura-0.2.4.dev1/candura/core/internals/namespaces/_guards.py +35 -0
- candura-0.2.4.dev1/candura/core/internals/namespaces/addons.py +147 -0
- candura-0.2.4.dev1/candura/core/internals/namespaces/agentic.py +225 -0
- candura-0.2.4.dev1/candura/core/internals/namespaces/agentic_factories.py +298 -0
- candura-0.2.4.dev1/candura/core/internals/namespaces/blobs.py +29 -0
- candura-0.2.4.dev1/candura/core/internals/namespaces/caches.py +56 -0
- candura-0.2.4.dev1/candura/core/internals/namespaces/candura.py +339 -0
- candura-0.2.4.dev1/candura/core/internals/namespaces/channels.py +60 -0
- candura-0.2.4.dev1/candura/core/internals/namespaces/config.py +147 -0
- candura-0.2.4.dev1/candura/core/internals/namespaces/contexts.py +90 -0
- candura-0.2.4.dev1/candura/core/internals/namespaces/conversations.py +229 -0
- candura-0.2.4.dev1/candura/core/internals/namespaces/credits.py +241 -0
- candura-0.2.4.dev1/candura/core/internals/namespaces/dispatchers.py +34 -0
- candura-0.2.4.dev1/candura/core/internals/namespaces/executions.py +152 -0
- candura-0.2.4.dev1/candura/core/internals/namespaces/identity.py +303 -0
- candura-0.2.4.dev1/candura/core/internals/namespaces/internals.py +314 -0
- candura-0.2.4.dev1/candura/core/internals/namespaces/kernel.py +252 -0
- candura-0.2.4.dev1/candura/core/internals/namespaces/lake.py +344 -0
- candura-0.2.4.dev1/candura/core/internals/namespaces/life.py +158 -0
- candura-0.2.4.dev1/candura/core/internals/namespaces/loop.py +273 -0
- candura-0.2.4.dev1/candura/core/internals/namespaces/modules.py +201 -0
- candura-0.2.4.dev1/candura/core/internals/namespaces/node.py +320 -0
- candura-0.2.4.dev1/candura/core/internals/namespaces/processes.py +253 -0
- candura-0.2.4.dev1/candura/core/internals/namespaces/projection.py +53 -0
- candura-0.2.4.dev1/candura/core/internals/namespaces/public.py +83 -0
- candura-0.2.4.dev1/candura/core/internals/namespaces/repository.py +147 -0
- candura-0.2.4.dev1/candura/core/internals/namespaces/root_factories.py +120 -0
- candura-0.2.4.dev1/candura/core/internals/namespaces/shutdown.py +102 -0
- candura-0.2.4.dev1/candura/core/internals/namespaces/task_rounds.py +389 -0
- candura-0.2.4.dev1/candura/core/internals/namespaces/task_runs.py +189 -0
- candura-0.2.4.dev1/candura/core/internals/namespaces/task_trace.py +73 -0
- candura-0.2.4.dev1/candura/core/internals/namespaces/tasks.py +332 -0
- candura-0.2.4.dev1/candura/core/internals/namespaces/telemetry.py +287 -0
- candura-0.2.4.dev1/candura/core/internals/pipeline/__init__.py +6 -0
- candura-0.2.4.dev1/candura/core/internals/pipeline/middleware.py +91 -0
- candura-0.2.4.dev1/candura/core/internals/reflection/__init__.py +126 -0
- candura-0.2.4.dev1/candura/core/internals/reflection/boot_catalog.py +180 -0
- candura-0.2.4.dev1/candura/core/internals/reflection/naming.py +27 -0
- candura-0.2.4.dev1/candura/core/internals/reflection/reflection.md +179 -0
- candura-0.2.4.dev1/candura/core/internals/reflection/rule_registry.py +172 -0
- candura-0.2.4.dev1/candura/core/internals/reflection/runtime.py +400 -0
- candura-0.2.4.dev1/candura/core/internals/reflection/static_reflection.py +379 -0
- candura-0.2.4.dev1/candura/core/internals/reflection/try_result.py +148 -0
- candura-0.2.4.dev1/candura/core/internals/resolution/__init__.py +7 -0
- candura-0.2.4.dev1/candura/core/internals/resolution/chain.py +89 -0
- candura-0.2.4.dev1/candura/core/internals/resolution/contract.py +45 -0
- candura-0.2.4.dev1/candura/core/internals/settling.py +86 -0
- candura-0.2.4.dev1/candura/core/internals/telemetry/__init__.py +52 -0
- candura-0.2.4.dev1/candura/core/internals/telemetry/_runtime_view.py +48 -0
- candura-0.2.4.dev1/candura/core/internals/telemetry/appenders.py +156 -0
- candura-0.2.4.dev1/candura/core/internals/telemetry/bridge_otel.py +87 -0
- candura-0.2.4.dev1/candura/core/internals/telemetry/categories.py +91 -0
- candura-0.2.4.dev1/candura/core/internals/telemetry/config.py +80 -0
- candura-0.2.4.dev1/candura/core/internals/telemetry/config_keys.py +53 -0
- candura-0.2.4.dev1/candura/core/internals/telemetry/contexts.py +66 -0
- candura-0.2.4.dev1/candura/core/internals/telemetry/exceptions.py +61 -0
- candura-0.2.4.dev1/candura/core/internals/telemetry/formatters/__init__.py +7 -0
- candura-0.2.4.dev1/candura/core/internals/telemetry/formatters/json.py +53 -0
- candura-0.2.4.dev1/candura/core/internals/telemetry/formatters/readable.py +95 -0
- candura-0.2.4.dev1/candura/core/internals/telemetry/hooks.py +129 -0
- candura-0.2.4.dev1/candura/core/internals/telemetry/identity.py +29 -0
- candura-0.2.4.dev1/candura/core/internals/telemetry/layouts.py +51 -0
- candura-0.2.4.dev1/candura/core/internals/telemetry/levels.py +62 -0
- candura-0.2.4.dev1/candura/core/internals/telemetry/logger.py +150 -0
- candura-0.2.4.dev1/candura/core/internals/telemetry/native_logs.py +96 -0
- candura-0.2.4.dev1/candura/core/internals/telemetry/otel_setup.py +83 -0
- candura-0.2.4.dev1/candura/core/internals/telemetry/port.py +111 -0
- candura-0.2.4.dev1/candura/core/internals/telemetry/queues.py +72 -0
- candura-0.2.4.dev1/candura/core/internals/telemetry/records.py +192 -0
- candura-0.2.4.dev1/candura/core/internals/telemetry/resolver.py +29 -0
- candura-0.2.4.dev1/candura/core/internals/telemetry/runtime.py +395 -0
- candura-0.2.4.dev1/candura/core/internals/telemetry/signals.py +173 -0
- candura-0.2.4.dev1/candura/core/internals/telemetry/stdlib_bridge.py +151 -0
- candura-0.2.4.dev1/candura/core/internals/telemetry/telemetry.md +153 -0
- candura-0.2.4.dev1/candura/core/internals/telemetry/tenant_policy.py +326 -0
- candura-0.2.4.dev1/candura/core/internals/testing.py +122 -0
- candura-0.2.4.dev1/candura/core/loggers.py +26 -0
- candura-0.2.4.dev1/candura/core/models/__init__.py +81 -0
- candura-0.2.4.dev1/candura/core/models/base.py +140 -0
- candura-0.2.4.dev1/candura/core/models/channel/__init__.py +28 -0
- candura-0.2.4.dev1/candura/core/models/channel/channel.md +52 -0
- candura-0.2.4.dev1/candura/core/models/channel/identity.py +54 -0
- candura-0.2.4.dev1/candura/core/models/channel/inbound.py +81 -0
- candura-0.2.4.dev1/candura/core/models/channel/notify.py +45 -0
- candura-0.2.4.dev1/candura/core/models/channel/outbound.py +86 -0
- candura-0.2.4.dev1/candura/core/models/cloudevents.py +83 -0
- candura-0.2.4.dev1/candura/core/models/credit/__init__.py +68 -0
- candura-0.2.4.dev1/candura/core/models/credit/candu.py +245 -0
- candura-0.2.4.dev1/candura/core/models/credit/credit.md +99 -0
- candura-0.2.4.dev1/candura/core/models/credit/entries.py +208 -0
- candura-0.2.4.dev1/candura/core/models/credit/prices.py +198 -0
- candura-0.2.4.dev1/candura/core/models/credit/reports.py +130 -0
- candura-0.2.4.dev1/candura/core/models/db/__init__.py +39 -0
- candura-0.2.4.dev1/candura/core/models/db/changes.py +85 -0
- candura-0.2.4.dev1/candura/core/models/db/codec.py +42 -0
- candura-0.2.4.dev1/candura/core/models/db/db_dsl.py +328 -0
- candura-0.2.4.dev1/candura/core/models/db/indexes.py +102 -0
- candura-0.2.4.dev1/candura/core/models/db/purge.py +25 -0
- candura-0.2.4.dev1/candura/core/models/db/versions.py +98 -0
- candura-0.2.4.dev1/candura/core/models/envelope.py +87 -0
- candura-0.2.4.dev1/candura/core/models/error/__init__.py +23 -0
- candura-0.2.4.dev1/candura/core/models/error/agentic.py +221 -0
- candura-0.2.4.dev1/candura/core/models/error/analytics.py +24 -0
- candura-0.2.4.dev1/candura/core/models/error/base.py +34 -0
- candura-0.2.4.dev1/candura/core/models/error/cache.py +23 -0
- candura-0.2.4.dev1/candura/core/models/error/composition.py +11 -0
- candura-0.2.4.dev1/candura/core/models/error/context.py +147 -0
- candura-0.2.4.dev1/candura/core/models/error/credit.py +126 -0
- candura-0.2.4.dev1/candura/core/models/error/eventbus.py +73 -0
- candura-0.2.4.dev1/candura/core/models/error/exports.py +369 -0
- candura-0.2.4.dev1/candura/core/models/error/identity.py +200 -0
- candura-0.2.4.dev1/candura/core/models/error/kernel.py +165 -0
- candura-0.2.4.dev1/candura/core/models/error/lake.py +127 -0
- candura-0.2.4.dev1/candura/core/models/error/loop.py +119 -0
- candura-0.2.4.dev1/candura/core/models/error/module.py +217 -0
- candura-0.2.4.dev1/candura/core/models/error/nodes.py +337 -0
- candura-0.2.4.dev1/candura/core/models/error/operation.py +117 -0
- candura-0.2.4.dev1/candura/core/models/error/packaging.py +35 -0
- candura-0.2.4.dev1/candura/core/models/error/reflection.py +326 -0
- candura-0.2.4.dev1/candura/core/models/error/registry.py +60 -0
- candura-0.2.4.dev1/candura/core/models/error/report.py +51 -0
- candura-0.2.4.dev1/candura/core/models/error/repository.py +359 -0
- candura-0.2.4.dev1/candura/core/models/error/safe.py +86 -0
- candura-0.2.4.dev1/candura/core/models/error/sandbox.py +23 -0
- candura-0.2.4.dev1/candura/core/models/error/storage.py +54 -0
- candura-0.2.4.dev1/candura/core/models/error/telegram.py +206 -0
- candura-0.2.4.dev1/candura/core/models/error/view.py +241 -0
- candura-0.2.4.dev1/candura/core/models/events/__init__.py +23 -0
- candura-0.2.4.dev1/candura/core/models/events/changes.py +60 -0
- candura-0.2.4.dev1/candura/core/models/events/registry.py +56 -0
- candura-0.2.4.dev1/candura/core/models/factory.py +106 -0
- candura-0.2.4.dev1/candura/core/models/identity/__init__.py +137 -0
- candura-0.2.4.dev1/candura/core/models/identity/audit.py +227 -0
- candura-0.2.4.dev1/candura/core/models/identity/authority.py +49 -0
- candura-0.2.4.dev1/candura/core/models/identity/destinations.py +101 -0
- candura-0.2.4.dev1/candura/core/models/identity/identity.md +157 -0
- candura-0.2.4.dev1/candura/core/models/identity/keys.py +74 -0
- candura-0.2.4.dev1/candura/core/models/identity/models.py +397 -0
- candura-0.2.4.dev1/candura/core/models/identity/policy.py +106 -0
- candura-0.2.4.dev1/candura/core/models/identity/principals.py +145 -0
- candura-0.2.4.dev1/candura/core/models/identity/schemes.py +142 -0
- candura-0.2.4.dev1/candura/core/models/identity/schemes_builtin.py +229 -0
- candura-0.2.4.dev1/candura/core/models/identity/sessions.py +362 -0
- candura-0.2.4.dev1/candura/core/models/identity/tenant_status.py +53 -0
- candura-0.2.4.dev1/candura/core/models/identity/tokens.py +226 -0
- candura-0.2.4.dev1/candura/core/models/identity/web.py +116 -0
- candura-0.2.4.dev1/candura/core/models/lake/__init__.py +28 -0
- candura-0.2.4.dev1/candura/core/models/lake/dedupe.py +20 -0
- candura-0.2.4.dev1/candura/core/models/lake/spec.py +61 -0
- candura-0.2.4.dev1/candura/core/models/lake/stream.py +56 -0
- candura-0.2.4.dev1/candura/core/models/lake/table.py +124 -0
- candura-0.2.4.dev1/candura/core/models/meta/__init__.py +158 -0
- candura-0.2.4.dev1/candura/core/models/meta/categories.py +28 -0
- candura-0.2.4.dev1/candura/core/models/meta/code/__init__.py +54 -0
- candura-0.2.4.dev1/candura/core/models/meta/code/boot_rules.py +59 -0
- candura-0.2.4.dev1/candura/core/models/meta/code/dispatch.py +301 -0
- candura-0.2.4.dev1/candura/core/models/meta/code/dispatch_execution.py +145 -0
- candura-0.2.4.dev1/candura/core/models/meta/code/files.py +86 -0
- candura-0.2.4.dev1/candura/core/models/meta/code/mclass.py +391 -0
- candura-0.2.4.dev1/candura/core/models/meta/code/mclass_runtime.py +44 -0
- candura-0.2.4.dev1/candura/core/models/meta/code/mclass_source.py +65 -0
- candura-0.2.4.dev1/candura/core/models/meta/code/resolver.py +54 -0
- candura-0.2.4.dev1/candura/core/models/meta/code/source.py +226 -0
- candura-0.2.4.dev1/candura/core/models/meta/code/type_cache.py +58 -0
- candura-0.2.4.dev1/candura/core/models/meta/content_policy.py +116 -0
- candura-0.2.4.dev1/candura/core/models/meta/db_field.py +258 -0
- candura-0.2.4.dev1/candura/core/models/meta/document_version.py +59 -0
- candura-0.2.4.dev1/candura/core/models/meta/knowledge_names.py +123 -0
- candura-0.2.4.dev1/candura/core/models/meta/meta.md +621 -0
- candura-0.2.4.dev1/candura/core/models/meta/meta_agent_run.py +100 -0
- candura-0.2.4.dev1/candura/core/models/meta/meta_agentic.py +82 -0
- candura-0.2.4.dev1/candura/core/models/meta/meta_base.py +253 -0
- candura-0.2.4.dev1/candura/core/models/meta/meta_cache.py +177 -0
- candura-0.2.4.dev1/candura/core/models/meta/meta_components.py +386 -0
- candura-0.2.4.dev1/candura/core/models/meta/meta_db.py +34 -0
- candura-0.2.4.dev1/candura/core/models/meta/meta_evbus.py +80 -0
- candura-0.2.4.dev1/candura/core/models/meta/meta_executions.py +373 -0
- candura-0.2.4.dev1/candura/core/models/meta/meta_harness.py +353 -0
- candura-0.2.4.dev1/candura/core/models/meta/meta_kernel.py +193 -0
- candura-0.2.4.dev1/candura/core/models/meta/meta_lake.py +385 -0
- candura-0.2.4.dev1/candura/core/models/meta/meta_model.py +64 -0
- candura-0.2.4.dev1/candura/core/models/meta/meta_node.py +101 -0
- candura-0.2.4.dev1/candura/core/models/meta/meta_outcome.py +144 -0
- candura-0.2.4.dev1/candura/core/models/meta/meta_usage.py +52 -0
- candura-0.2.4.dev1/candura/core/models/meta/query_nodes.py +134 -0
- candura-0.2.4.dev1/candura/core/models/meta/scope.py +35 -0
- candura-0.2.4.dev1/candura/core/models/sdk.py +17 -0
- candura-0.2.4.dev1/candura/core/models/tasks.py +196 -0
- candura-0.2.4.dev1/candura/core/models/telemetry.py +174 -0
- candura-0.2.4.dev1/candura/core/models/uri.py +326 -0
- candura-0.2.4.dev1/candura/core/modules/__init__.py +11 -0
- candura-0.2.4.dev1/candura/core/modules/addons/__init__.py +41 -0
- candura-0.2.4.dev1/candura/core/modules/addons/decorator.py +157 -0
- candura-0.2.4.dev1/candura/core/modules/addons/native/__init__.py +21 -0
- candura-0.2.4.dev1/candura/core/modules/addons/native/mclass/__init__.py +10 -0
- candura-0.2.4.dev1/candura/core/modules/addons/native/mclass/execution.py +256 -0
- candura-0.2.4.dev1/candura/core/modules/addons/native/mclass/factory.py +44 -0
- candura-0.2.4.dev1/candura/core/modules/addons/native/mclass/instance_proxy.py +146 -0
- candura-0.2.4.dev1/candura/core/modules/addons/native/mclass/invoker.py +124 -0
- candura-0.2.4.dev1/candura/core/modules/addons/native/mclass/meta_class.py +332 -0
- candura-0.2.4.dev1/candura/core/modules/addons/native/mclass/native_rules.py +29 -0
- candura-0.2.4.dev1/candura/core/modules/addons/native/mclass/rules/__init__.py +27 -0
- candura-0.2.4.dev1/candura/core/modules/addons/native/mclass/rules/dynamic.py +34 -0
- candura-0.2.4.dev1/candura/core/modules/addons/native/mclass/rules/predicate.py +31 -0
- candura-0.2.4.dev1/candura/core/modules/addons/native/mclass/rules/target.py +40 -0
- candura-0.2.4.dev1/candura/core/modules/addons/native/mclass/rules/try_dispatch.py +36 -0
- candura-0.2.4.dev1/candura/core/modules/addons/native/memoization.py +207 -0
- candura-0.2.4.dev1/candura/core/modules/addons/native/remote.py +188 -0
- candura-0.2.4.dev1/candura/core/modules/addons/native/tracing.py +156 -0
- candura-0.2.4.dev1/candura/core/modules/addons/proxy.py +334 -0
- candura-0.2.4.dev1/candura/core/modules/base/__init__.py +30 -0
- candura-0.2.4.dev1/candura/core/modules/base/accessor.py +79 -0
- candura-0.2.4.dev1/candura/core/modules/base/accessors/rules/__init__.py +18 -0
- candura-0.2.4.dev1/candura/core/modules/base/accessors/rules/dotted.py +29 -0
- candura-0.2.4.dev1/candura/core/modules/base/accessors/rules/scoped.py +24 -0
- candura-0.2.4.dev1/candura/core/modules/base/addon.py +11 -0
- candura-0.2.4.dev1/candura/core/modules/base/addon_base.py +237 -0
- candura-0.2.4.dev1/candura/core/modules/base/addon_dynamic.py +188 -0
- candura-0.2.4.dev1/candura/core/modules/base/container/__init__.py +8 -0
- candura-0.2.4.dev1/candura/core/modules/base/container/addons.py +192 -0
- candura-0.2.4.dev1/candura/core/modules/base/container/core.py +236 -0
- candura-0.2.4.dev1/candura/core/modules/base/container/lifecycle.py +379 -0
- candura-0.2.4.dev1/candura/core/modules/base/container/navigation.py +46 -0
- candura-0.2.4.dev1/candura/core/modules/base/container/resolution.py +162 -0
- candura-0.2.4.dev1/candura/core/modules/base/contract.py +315 -0
- candura-0.2.4.dev1/candura/core/modules/base/engine.py +78 -0
- candura-0.2.4.dev1/candura/core/modules/base/events.py +233 -0
- candura-0.2.4.dev1/candura/core/modules/base/from_markers.py +381 -0
- candura-0.2.4.dev1/candura/core/modules/base/from_resolution.py +167 -0
- candura-0.2.4.dev1/candura/core/modules/base/injection/__init__.py +20 -0
- candura-0.2.4.dev1/candura/core/modules/base/injection/decorator.py +62 -0
- candura-0.2.4.dev1/candura/core/modules/base/injection/strategies/__init__.py +20 -0
- candura-0.2.4.dev1/candura/core/modules/base/injection/strategies/agentic_strategy.py +58 -0
- candura-0.2.4.dev1/candura/core/modules/base/injection/strategies/application_strategy.py +33 -0
- candura-0.2.4.dev1/candura/core/modules/base/injection/strategies/base.py +25 -0
- candura-0.2.4.dev1/candura/core/modules/base/injection/strategies/module_strategy.py +34 -0
- candura-0.2.4.dev1/candura/core/modules/base/injection/strategies/orchestrator.py +34 -0
- candura-0.2.4.dev1/candura/core/modules/base/injection/strategies/resolver.py +58 -0
- candura-0.2.4.dev1/candura/core/modules/base/provider_changes.py +82 -0
- candura-0.2.4.dev1/candura/core/modules/modules.md +926 -0
- candura-0.2.4.dev1/candura/core/modules/native/agentics/__init__.py +27 -0
- candura-0.2.4.dev1/candura/core/modules/native/agentics/engines/__init__.py +10 -0
- candura-0.2.4.dev1/candura/core/modules/native/agentics/engines/cache.py +100 -0
- candura-0.2.4.dev1/candura/core/modules/native/agentics/engines/pydantic/__init__.py +11 -0
- candura-0.2.4.dev1/candura/core/modules/native/agentics/engines/pydantic/measure.py +60 -0
- candura-0.2.4.dev1/candura/core/modules/native/agentics/engines/pydantic/model_resolution.py +125 -0
- candura-0.2.4.dev1/candura/core/modules/native/agentics/engines/pydantic/module.md +62 -0
- candura-0.2.4.dev1/candura/core/modules/native/agentics/engines/pydantic/module.py +356 -0
- candura-0.2.4.dev1/candura/core/modules/native/agentics/engines/pydantic/runner.py +298 -0
- candura-0.2.4.dev1/candura/core/modules/native/agentics/module.md +35 -0
- candura-0.2.4.dev1/candura/core/modules/native/agentics/orch/__init__.py +7 -0
- candura-0.2.4.dev1/candura/core/modules/native/agentics/orch/module.md +69 -0
- candura-0.2.4.dev1/candura/core/modules/native/agentics/orch/module.py +169 -0
- candura-0.2.4.dev1/candura/core/modules/native/cache/__init__.py +29 -0
- candura-0.2.4.dev1/candura/core/modules/native/cache/contract.py +91 -0
- candura-0.2.4.dev1/candura/core/modules/native/cache/definition.py +320 -0
- candura-0.2.4.dev1/candura/core/modules/native/cache/module.md +105 -0
- candura-0.2.4.dev1/candura/core/modules/native/cache/schemas.py +47 -0
- candura-0.2.4.dev1/candura/core/modules/native/cache/zone.py +165 -0
- candura-0.2.4.dev1/candura/core/modules/native/credit/__init__.py +71 -0
- candura-0.2.4.dev1/candura/core/modules/native/credit/budget.py +200 -0
- candura-0.2.4.dev1/candura/core/modules/native/credit/config_keys.py +52 -0
- candura-0.2.4.dev1/candura/core/modules/native/credit/contract.py +113 -0
- candura-0.2.4.dev1/candura/core/modules/native/credit/definition.py +369 -0
- candura-0.2.4.dev1/candura/core/modules/native/credit/events.py +144 -0
- candura-0.2.4.dev1/candura/core/modules/native/credit/fold.py +256 -0
- candura-0.2.4.dev1/candura/core/modules/native/credit/ids.py +45 -0
- candura-0.2.4.dev1/candura/core/modules/native/credit/in_flight.py +90 -0
- candura-0.2.4.dev1/candura/core/modules/native/credit/ledger.py +256 -0
- candura-0.2.4.dev1/candura/core/modules/native/credit/module.md +195 -0
- candura-0.2.4.dev1/candura/core/modules/native/credit/operations.py +238 -0
- candura-0.2.4.dev1/candura/core/modules/native/credit/periods.py +36 -0
- candura-0.2.4.dev1/candura/core/modules/native/credit/price_book.py +129 -0
- candura-0.2.4.dev1/candura/core/modules/native/credit/pricing.py +360 -0
- candura-0.2.4.dev1/candura/core/modules/native/credit/projection.py +310 -0
- candura-0.2.4.dev1/candura/core/modules/native/credit/recount.py +177 -0
- candura-0.2.4.dev1/candura/core/modules/native/credit/turn_debit.py +75 -0
- candura-0.2.4.dev1/candura/core/modules/native/credit/usage.py +94 -0
- candura-0.2.4.dev1/candura/core/modules/native/db/__init__.py +10 -0
- candura-0.2.4.dev1/candura/core/modules/native/db/base.py +278 -0
- candura-0.2.4.dev1/candura/core/modules/native/db/codec.py +381 -0
- candura-0.2.4.dev1/candura/core/modules/native/db/module.md +131 -0
- candura-0.2.4.dev1/candura/core/modules/native/db/providers/contract.py +150 -0
- candura-0.2.4.dev1/candura/core/modules/native/db/providers/inmemory/__init__.py +6 -0
- candura-0.2.4.dev1/candura/core/modules/native/db/providers/inmemory/definition.py +296 -0
- candura-0.2.4.dev1/candura/core/modules/native/db/repository/__init__.py +29 -0
- candura-0.2.4.dev1/candura/core/modules/native/db/repository/changes.py +116 -0
- candura-0.2.4.dev1/candura/core/modules/native/db/repository/contract.py +348 -0
- candura-0.2.4.dev1/candura/core/modules/native/db/repository/definition.py +228 -0
- candura-0.2.4.dev1/candura/core/modules/native/db/repository/execution_rule.py +212 -0
- candura-0.2.4.dev1/candura/core/modules/native/db/repository/marker.py +86 -0
- candura-0.2.4.dev1/candura/core/modules/native/db/repository/module.md +152 -0
- candura-0.2.4.dev1/candura/core/modules/native/db/repository/purge.py +161 -0
- candura-0.2.4.dev1/candura/core/modules/native/db/repository/query.py +184 -0
- candura-0.2.4.dev1/candura/core/modules/native/db/repository/repository.py +388 -0
- candura-0.2.4.dev1/candura/core/modules/native/db/repository/scope.py +54 -0
- candura-0.2.4.dev1/candura/core/modules/native/db/repository/stamps.py +134 -0
- candura-0.2.4.dev1/candura/core/modules/native/db/repository/versioning.py +134 -0
- candura-0.2.4.dev1/candura/core/modules/native/eventbus/__init__.py +12 -0
- candura-0.2.4.dev1/candura/core/modules/native/eventbus/codec.py +307 -0
- candura-0.2.4.dev1/candura/core/modules/native/eventbus/config_keys.py +36 -0
- candura-0.2.4.dev1/candura/core/modules/native/eventbus/contract.py +107 -0
- candura-0.2.4.dev1/candura/core/modules/native/eventbus/definition.py +376 -0
- candura-0.2.4.dev1/candura/core/modules/native/eventbus/drainer.py +165 -0
- candura-0.2.4.dev1/candura/core/modules/native/eventbus/execution_rule.py +91 -0
- candura-0.2.4.dev1/candura/core/modules/native/eventbus/inspection.py +89 -0
- candura-0.2.4.dev1/candura/core/modules/native/eventbus/loops.py +183 -0
- candura-0.2.4.dev1/candura/core/modules/native/eventbus/module.md +92 -0
- candura-0.2.4.dev1/candura/core/modules/native/eventbus/packet.py +39 -0
- candura-0.2.4.dev1/candura/core/modules/native/eventbus/replies.py +133 -0
- candura-0.2.4.dev1/candura/core/modules/native/eventbus/subscription.py +65 -0
- candura-0.2.4.dev1/candura/core/modules/native/identity/__init__.py +60 -0
- candura-0.2.4.dev1/candura/core/modules/native/identity/attempts.py +80 -0
- candura-0.2.4.dev1/candura/core/modules/native/identity/audit.py +385 -0
- candura-0.2.4.dev1/candura/core/modules/native/identity/config_keys.py +61 -0
- candura-0.2.4.dev1/candura/core/modules/native/identity/contract.py +75 -0
- candura-0.2.4.dev1/candura/core/modules/native/identity/definition.py +306 -0
- candura-0.2.4.dev1/candura/core/modules/native/identity/enrollment.py +302 -0
- candura-0.2.4.dev1/candura/core/modules/native/identity/events.py +104 -0
- candura-0.2.4.dev1/candura/core/modules/native/identity/invite_entry.py +191 -0
- candura-0.2.4.dev1/candura/core/modules/native/identity/invite_uses.py +153 -0
- candura-0.2.4.dev1/candura/core/modules/native/identity/invites.py +351 -0
- candura-0.2.4.dev1/candura/core/modules/native/identity/module.md +208 -0
- candura-0.2.4.dev1/candura/core/modules/native/identity/policy.py +143 -0
- candura-0.2.4.dev1/candura/core/modules/native/identity/process_tenants.py +97 -0
- candura-0.2.4.dev1/candura/core/modules/native/identity/resolver.py +245 -0
- candura-0.2.4.dev1/candura/core/modules/native/identity/sessions.py +311 -0
- candura-0.2.4.dev1/candura/core/modules/native/identity/tenant_status.py +36 -0
- candura-0.2.4.dev1/candura/core/modules/native/identity/tenants.py +370 -0
- candura-0.2.4.dev1/candura/core/modules/native/lake/__init__.py +27 -0
- candura-0.2.4.dev1/candura/core/modules/native/lake/analytics/__init__.py +7 -0
- candura-0.2.4.dev1/candura/core/modules/native/lake/analytics/_polars.py +19 -0
- candura-0.2.4.dev1/candura/core/modules/native/lake/analytics/config_keys.py +23 -0
- candura-0.2.4.dev1/candura/core/modules/native/lake/analytics/contract.py +55 -0
- candura-0.2.4.dev1/candura/core/modules/native/lake/analytics/decoder.py +247 -0
- candura-0.2.4.dev1/candura/core/modules/native/lake/analytics/definition.py +174 -0
- candura-0.2.4.dev1/candura/core/modules/native/lake/analytics/frames.py +129 -0
- candura-0.2.4.dev1/candura/core/modules/native/lake/analytics/live.py +57 -0
- candura-0.2.4.dev1/candura/core/modules/native/lake/analytics/local.py +357 -0
- candura-0.2.4.dev1/candura/core/modules/native/lake/analytics/module.md +83 -0
- candura-0.2.4.dev1/candura/core/modules/native/lake/analytics/router.py +93 -0
- candura-0.2.4.dev1/candura/core/modules/native/lake/analytics/sources.py +99 -0
- candura-0.2.4.dev1/candura/core/modules/native/lake/boot.py +162 -0
- candura-0.2.4.dev1/candura/core/modules/native/lake/closing.py +77 -0
- candura-0.2.4.dev1/candura/core/modules/native/lake/config_keys.py +154 -0
- candura-0.2.4.dev1/candura/core/modules/native/lake/contract.py +249 -0
- candura-0.2.4.dev1/candura/core/modules/native/lake/counters.py +84 -0
- candura-0.2.4.dev1/candura/core/modules/native/lake/definition.py +400 -0
- candura-0.2.4.dev1/candura/core/modules/native/lake/discovery.py +158 -0
- candura-0.2.4.dev1/candura/core/modules/native/lake/events.py +114 -0
- candura-0.2.4.dev1/candura/core/modules/native/lake/lifecycle.py +136 -0
- candura-0.2.4.dev1/candura/core/modules/native/lake/module.md +237 -0
- candura-0.2.4.dev1/candura/core/modules/native/lake/processes.py +95 -0
- candura-0.2.4.dev1/candura/core/modules/native/lake/pull.py +151 -0
- candura-0.2.4.dev1/candura/core/modules/native/lake/purge.py +95 -0
- candura-0.2.4.dev1/candura/core/modules/native/lake/reading.py +75 -0
- candura-0.2.4.dev1/candura/core/modules/native/lake/reconcile.py +377 -0
- candura-0.2.4.dev1/candura/core/modules/native/lake/settings.py +58 -0
- candura-0.2.4.dev1/candura/core/modules/native/lake/tenants.py +134 -0
- candura-0.2.4.dev1/candura/core/modules/native/lake/tier.py +28 -0
- candura-0.2.4.dev1/candura/core/modules/native/lake/watermarks.py +196 -0
- candura-0.2.4.dev1/candura/core/modules/native/loop/__init__.py +27 -0
- candura-0.2.4.dev1/candura/core/modules/native/loop/_turn.py +302 -0
- candura-0.2.4.dev1/candura/core/modules/native/loop/assembly.py +122 -0
- candura-0.2.4.dev1/candura/core/modules/native/loop/contract.py +169 -0
- candura-0.2.4.dev1/candura/core/modules/native/loop/definition.py +109 -0
- candura-0.2.4.dev1/candura/core/modules/native/loop/extensions.md +325 -0
- candura-0.2.4.dev1/candura/core/modules/native/loop/module.md +200 -0
- candura-0.2.4.dev1/candura/core/modules/native/loop/module.py +192 -0
- candura-0.2.4.dev1/candura/core/modules/native/loop/ports.py +241 -0
- candura-0.2.4.dev1/candura/core/modules/native/loop/rules.py +90 -0
- candura-0.2.4.dev1/candura/core/modules/native/loop/testing.py +281 -0
- candura-0.2.4.dev1/candura/core/modules/native/loop/turn_delta.py +246 -0
- candura-0.2.4.dev1/candura/core/modules/native/registry/__init__.py +20 -0
- candura-0.2.4.dev1/candura/core/modules/native/registry/contract.py +142 -0
- candura-0.2.4.dev1/candura/core/modules/native/registry/definition.py +222 -0
- candura-0.2.4.dev1/candura/core/modules/native/registry/entry.py +23 -0
- candura-0.2.4.dev1/candura/core/modules/native/registry/module.md +401 -0
- candura-0.2.4.dev1/candura/core/modules/native/registry/resolver.py +135 -0
- candura-0.2.4.dev1/candura/core/modules/native/storage/__init__.py +20 -0
- candura-0.2.4.dev1/candura/core/modules/native/storage/base.py +65 -0
- candura-0.2.4.dev1/candura/core/modules/native/storage/contract.py +36 -0
- candura-0.2.4.dev1/candura/core/modules/native/storage/definition.py +90 -0
- candura-0.2.4.dev1/candura/core/modules/native/storage/module.md +63 -0
- candura-0.2.4.dev1/candura/core/modules/native/storage/selection.py +63 -0
- candura-0.2.4.dev1/candura/core/nodes/__init__.py +94 -0
- candura-0.2.4.dev1/candura/core/nodes/base/__init__.py +23 -0
- candura-0.2.4.dev1/candura/core/nodes/base/binding.py +306 -0
- candura-0.2.4.dev1/candura/core/nodes/base/channel.py +137 -0
- candura-0.2.4.dev1/candura/core/nodes/base/channel_identity.py +173 -0
- candura-0.2.4.dev1/candura/core/nodes/base/coercion.py +107 -0
- candura-0.2.4.dev1/candura/core/nodes/base/endpoint.py +381 -0
- candura-0.2.4.dev1/candura/core/nodes/base/endpoint_checks.py +59 -0
- candura-0.2.4.dev1/candura/core/nodes/base/host.py +86 -0
- candura-0.2.4.dev1/candura/core/nodes/base/identity.py +44 -0
- candura-0.2.4.dev1/candura/core/nodes/base/lifecycle.py +77 -0
- candura-0.2.4.dev1/candura/core/nodes/base/messaging.py +380 -0
- candura-0.2.4.dev1/candura/core/nodes/base/node.py +371 -0
- candura-0.2.4.dev1/candura/core/nodes/base/outbox.py +278 -0
- candura-0.2.4.dev1/candura/core/nodes/base/paths.py +213 -0
- candura-0.2.4.dev1/candura/core/nodes/base/pipeline.py +398 -0
- candura-0.2.4.dev1/candura/core/nodes/base/registration.py +81 -0
- candura-0.2.4.dev1/candura/core/nodes/base/response.py +160 -0
- candura-0.2.4.dev1/candura/core/nodes/base/server.py +376 -0
- candura-0.2.4.dev1/candura/core/nodes/base/subjects.py +75 -0
- candura-0.2.4.dev1/candura/core/nodes/base/websocket.py +117 -0
- candura-0.2.4.dev1/candura/core/nodes/definition.py +84 -0
- candura-0.2.4.dev1/candura/core/nodes/internals/__init__.py +5 -0
- candura-0.2.4.dev1/candura/core/nodes/internals/adapters/__init__.py +49 -0
- candura-0.2.4.dev1/candura/core/nodes/internals/adapters/asgi.py +325 -0
- candura-0.2.4.dev1/candura/core/nodes/internals/adapters/base.py +263 -0
- candura-0.2.4.dev1/candura/core/nodes/internals/adapters/engine.py +244 -0
- candura-0.2.4.dev1/candura/core/nodes/internals/adapters/infra.py +141 -0
- candura-0.2.4.dev1/candura/core/nodes/internals/adapters/lifespan.py +135 -0
- candura-0.2.4.dev1/candura/core/nodes/internals/adapters/litestar.py +230 -0
- candura-0.2.4.dev1/candura/core/nodes/internals/adapters/routing.py +337 -0
- candura-0.2.4.dev1/candura/core/nodes/internals/adapters/websocket.py +280 -0
- candura-0.2.4.dev1/candura/core/nodes/internals/delivery/__init__.py +26 -0
- candura-0.2.4.dev1/candura/core/nodes/internals/delivery/bus_binding.py +132 -0
- candura-0.2.4.dev1/candura/core/nodes/internals/delivery/channels.py +87 -0
- candura-0.2.4.dev1/candura/core/nodes/internals/delivery/envelope.py +43 -0
- candura-0.2.4.dev1/candura/core/nodes/internals/delivery/idempotency.py +347 -0
- candura-0.2.4.dev1/candura/core/nodes/internals/delivery/policy.py +229 -0
- candura-0.2.4.dev1/candura/core/nodes/internals/delivery/remote.py +251 -0
- candura-0.2.4.dev1/candura/core/nodes/internals/delivery/turn_completion.py +160 -0
- candura-0.2.4.dev1/candura/core/nodes/internals/http/__init__.py +5 -0
- candura-0.2.4.dev1/candura/core/nodes/internals/http/access_log.py +76 -0
- candura-0.2.4.dev1/candura/core/nodes/internals/http/cors.py +149 -0
- candura-0.2.4.dev1/candura/core/nodes/internals/http/guard.py +47 -0
- candura-0.2.4.dev1/candura/core/nodes/internals/http/identity_middleware.py +284 -0
- candura-0.2.4.dev1/candura/core/nodes/internals/http/identity_resolver.py +263 -0
- candura-0.2.4.dev1/candura/core/nodes/internals/http/problems.py +123 -0
- candura-0.2.4.dev1/candura/core/nodes/internals/http/routes.py +25 -0
- candura-0.2.4.dev1/candura/core/nodes/internals/http/security.py +170 -0
- candura-0.2.4.dev1/candura/core/nodes/internals/http/table.py +368 -0
- candura-0.2.4.dev1/candura/core/nodes/internals/mcp/__init__.py +20 -0
- candura-0.2.4.dev1/candura/core/nodes/internals/mcp/adapter.py +162 -0
- candura-0.2.4.dev1/candura/core/nodes/internals/mcp/catalog.py +209 -0
- candura-0.2.4.dev1/candura/core/nodes/internals/telemetry/__init__.py +2 -0
- candura-0.2.4.dev1/candura/core/nodes/internals/telemetry/debit.py +101 -0
- candura-0.2.4.dev1/candura/core/nodes/internals/telemetry/execution_rule.py +260 -0
- candura-0.2.4.dev1/candura/core/nodes/internals/telemetry/resources.py +66 -0
- candura-0.2.4.dev1/candura/core/nodes/internals/telemetry/scope.py +57 -0
- candura-0.2.4.dev1/candura/core/nodes/internals/telemetry/shutdown.py +127 -0
- candura-0.2.4.dev1/candura/core/nodes/internals/telemetry/startup.py +81 -0
- candura-0.2.4.dev1/candura/core/nodes/native/admin/__init__.py +145 -0
- candura-0.2.4.dev1/candura/core/nodes/native/admin/agents.py +145 -0
- candura-0.2.4.dev1/candura/core/nodes/native/admin/credit_handlers.py +171 -0
- candura-0.2.4.dev1/candura/core/nodes/native/admin/credit_models.py +130 -0
- candura-0.2.4.dev1/candura/core/nodes/native/admin/events.py +92 -0
- candura-0.2.4.dev1/candura/core/nodes/native/admin/execution_models.py +105 -0
- candura-0.2.4.dev1/candura/core/nodes/native/admin/execution_queries.py +350 -0
- candura-0.2.4.dev1/candura/core/nodes/native/admin/handler_rules.py +56 -0
- candura-0.2.4.dev1/candura/core/nodes/native/admin/handlers.py +139 -0
- candura-0.2.4.dev1/candura/core/nodes/native/admin/identity_panel.py +92 -0
- candura-0.2.4.dev1/candura/core/nodes/native/admin/identity_tenants.py +399 -0
- candura-0.2.4.dev1/candura/core/nodes/native/admin/loop_target.py +156 -0
- candura-0.2.4.dev1/candura/core/nodes/native/admin/metric_costs.py +76 -0
- candura-0.2.4.dev1/candura/core/nodes/native/admin/models.py +367 -0
- candura-0.2.4.dev1/candura/core/nodes/native/admin/module.md +98 -0
- candura-0.2.4.dev1/candura/core/nodes/native/admin/node.py +194 -0
- candura-0.2.4.dev1/candura/core/nodes/native/admin/observation_handlers.py +198 -0
- candura-0.2.4.dev1/candura/core/nodes/native/admin/operator_handlers.py +211 -0
- candura-0.2.4.dev1/candura/core/nodes/native/admin/operator_models.py +132 -0
- candura-0.2.4.dev1/candura/core/nodes/native/admin/panel_models.py +65 -0
- candura-0.2.4.dev1/candura/core/nodes/native/admin/queries.py +174 -0
- candura-0.2.4.dev1/candura/core/nodes/native/admin/server_info.py +75 -0
- candura-0.2.4.dev1/candura/core/nodes/native/admin/stream.py +143 -0
- candura-0.2.4.dev1/candura/core/nodes/native/admin/targets.py +289 -0
- candura-0.2.4.dev1/candura/core/nodes/native/admin/task_models.py +43 -0
- candura-0.2.4.dev1/candura/core/nodes/native/admin/task_queries.py +153 -0
- candura-0.2.4.dev1/candura/core/nodes/native/admin/tenant_creation.py +220 -0
- candura-0.2.4.dev1/candura/core/nodes/native/admin/tenant_handlers.py +114 -0
- candura-0.2.4.dev1/candura/core/nodes/native/admin/tenants.py +178 -0
- candura-0.2.4.dev1/candura/core/nodes/native/admin/tenants_view.py +61 -0
- candura-0.2.4.dev1/candura/core/nodes/native/admin/usage_accounts.py +203 -0
- candura-0.2.4.dev1/candura/core/nodes/native/admin/usage_models.py +83 -0
- candura-0.2.4.dev1/candura/core/nodes/native/admin/usage_report.py +216 -0
- candura-0.2.4.dev1/candura/core/nodes/native/admin/usage_report_models.py +95 -0
- candura-0.2.4.dev1/candura/core/nodes/native/dataadmin/__init__.py +56 -0
- candura-0.2.4.dev1/candura/core/nodes/native/dataadmin/db.py +323 -0
- candura-0.2.4.dev1/candura/core/nodes/native/dataadmin/events.py +54 -0
- candura-0.2.4.dev1/candura/core/nodes/native/dataadmin/filters.py +89 -0
- candura-0.2.4.dev1/candura/core/nodes/native/dataadmin/guard.py +87 -0
- candura-0.2.4.dev1/candura/core/nodes/native/dataadmin/handlers.py +287 -0
- candura-0.2.4.dev1/candura/core/nodes/native/dataadmin/inflight.py +60 -0
- candura-0.2.4.dev1/candura/core/nodes/native/dataadmin/lake.py +237 -0
- candura-0.2.4.dev1/candura/core/nodes/native/dataadmin/models.py +268 -0
- candura-0.2.4.dev1/candura/core/nodes/native/dataadmin/module.md +59 -0
- candura-0.2.4.dev1/candura/core/nodes/native/dataadmin/node.py +84 -0
- candura-0.2.4.dev1/candura/core/nodes/native/dataadmin/sandbox.py +260 -0
- candura-0.2.4.dev1/candura/core/nodes/native/identity/__init__.py +26 -0
- candura-0.2.4.dev1/candura/core/nodes/native/identity/module.md +130 -0
- candura-0.2.4.dev1/candura/core/nodes/native/identity/node.py +339 -0
- candura-0.2.4.dev1/candura/core/nodes/native/identity/pages.py +114 -0
- candura-0.2.4.dev1/candura/core/nodes/native/identity/request.py +97 -0
- candura-0.2.4.dev1/candura/core/nodes/native/operation/__init__.py +53 -0
- candura-0.2.4.dev1/candura/core/nodes/native/operation/audit.py +110 -0
- candura-0.2.4.dev1/candura/core/nodes/native/operation/catalog.py +105 -0
- candura-0.2.4.dev1/candura/core/nodes/native/operation/channels.py +15 -0
- candura-0.2.4.dev1/candura/core/nodes/native/operation/config_keys.py +30 -0
- candura-0.2.4.dev1/candura/core/nodes/native/operation/contract.py +30 -0
- candura-0.2.4.dev1/candura/core/nodes/native/operation/guards.py +59 -0
- candura-0.2.4.dev1/candura/core/nodes/native/operation/module.md +51 -0
- candura-0.2.4.dev1/candura/core/nodes/native/operation/moments.py +110 -0
- candura-0.2.4.dev1/candura/core/nodes/native/operation/tenants.py +66 -0
- candura-0.2.4.dev1/candura/core/nodes/native/operation/values.py +41 -0
- candura-0.2.4.dev1/candura/core/nodes/native/simul/__init__.py +38 -0
- candura-0.2.4.dev1/candura/core/nodes/native/simul/events.py +30 -0
- candura-0.2.4.dev1/candura/core/nodes/native/simul/guard.py +86 -0
- candura-0.2.4.dev1/candura/core/nodes/native/simul/module.md +41 -0
- candura-0.2.4.dev1/candura/core/nodes/native/simul/node.py +169 -0
- candura-0.2.4.dev1/candura/core/nodes/native/simul/port.py +151 -0
- candura-0.2.4.dev1/candura/core/nodes/native/tasks/__init__.py +22 -0
- candura-0.2.4.dev1/candura/core/nodes/native/tasks/keys.py +213 -0
- candura-0.2.4.dev1/candura/core/nodes/native/tasks/models.py +173 -0
- candura-0.2.4.dev1/candura/core/nodes/native/tasks/module.md +209 -0
- candura-0.2.4.dev1/candura/core/nodes/native/tasks/node.py +247 -0
- candura-0.2.4.dev1/candura/core/nodes/native/tasks/runner.py +169 -0
- candura-0.2.4.dev1/candura/core/nodes/native/telegram/__init__.py +83 -0
- candura-0.2.4.dev1/candura/core/nodes/native/telegram/aiogram_adapter.py +341 -0
- candura-0.2.4.dev1/candura/core/nodes/native/telegram/attachments.py +52 -0
- candura-0.2.4.dev1/candura/core/nodes/native/telegram/blobs.py +23 -0
- candura-0.2.4.dev1/candura/core/nodes/native/telegram/bot_identity.py +81 -0
- candura-0.2.4.dev1/candura/core/nodes/native/telegram/confirmation.py +133 -0
- candura-0.2.4.dev1/candura/core/nodes/native/telegram/definition.py +112 -0
- candura-0.2.4.dev1/candura/core/nodes/native/telegram/egress.py +279 -0
- candura-0.2.4.dev1/candura/core/nodes/native/telegram/fake.py +232 -0
- candura-0.2.4.dev1/candura/core/nodes/native/telegram/fake_webhook.py +205 -0
- candura-0.2.4.dev1/candura/core/nodes/native/telegram/gateway.py +91 -0
- candura-0.2.4.dev1/candura/core/nodes/native/telegram/guards.py +277 -0
- candura-0.2.4.dev1/candura/core/nodes/native/telegram/ingress.py +347 -0
- candura-0.2.4.dev1/candura/core/nodes/native/telegram/models.py +74 -0
- candura-0.2.4.dev1/candura/core/nodes/native/telegram/module.md +169 -0
- candura-0.2.4.dev1/candura/core/nodes/native/telegram/module.py +142 -0
- candura-0.2.4.dev1/candura/core/nodes/native/telegram/normalize.py +85 -0
- candura-0.2.4.dev1/candura/core/nodes/native/telegram/render.py +168 -0
- candura-0.2.4.dev1/candura/core/nodes/native/telegram/settings.py +325 -0
- candura-0.2.4.dev1/candura/core/nodes/native/telegram/source.py +204 -0
- candura-0.2.4.dev1/candura/core/nodes/native/telegram/testing/__init__.py +37 -0
- candura-0.2.4.dev1/candura/core/nodes/native/telegram/testing/chat.py +77 -0
- candura-0.2.4.dev1/candura/core/nodes/native/telegram/testing/config.py +102 -0
- candura-0.2.4.dev1/candura/core/nodes/native/telegram/testing/fake_chat.py +96 -0
- candura-0.2.4.dev1/candura/core/nodes/native/telegram/testing/markdown.py +69 -0
- candura-0.2.4.dev1/candura/core/nodes/native/telegram/testing/module.md +38 -0
- candura-0.2.4.dev1/candura/core/nodes/native/telegram/testing/user_driver.py +239 -0
- candura-0.2.4.dev1/candura/core/nodes/native/telegram/texts.py +70 -0
- candura-0.2.4.dev1/candura/core/nodes/native/telegram/typing.py +87 -0
- candura-0.2.4.dev1/candura/core/nodes/native/telegram/web_identity.py +204 -0
- candura-0.2.4.dev1/candura/core/nodes/native/telegram/webhook.py +238 -0
- candura-0.2.4.dev1/candura/core/nodes/nodes.md +873 -0
- candura-0.2.4.dev1/candura/extensions/__init__.py +7 -0
- candura-0.2.4.dev1/candura/extensions/a2ui/__init__.py +121 -0
- candura-0.2.4.dev1/candura/extensions/a2ui/asgi.py +82 -0
- candura-0.2.4.dev1/candura/extensions/a2ui/catalog/__init__.py +31 -0
- candura-0.2.4.dev1/candura/extensions/a2ui/catalog/candura/v1/catalog.json +410 -0
- candura-0.2.4.dev1/candura/extensions/a2ui/catalog/candura/v1/examples/Badge.json +16 -0
- candura-0.2.4.dev1/candura/extensions/a2ui/catalog/candura/v1/examples/Chart.json +46 -0
- candura-0.2.4.dev1/candura/extensions/a2ui/catalog/candura/v1/examples/Link.json +12 -0
- candura-0.2.4.dev1/candura/extensions/a2ui/catalog/candura/v1/examples/Markdown.json +12 -0
- candura-0.2.4.dev1/candura/extensions/a2ui/catalog/candura/v1/examples/ParamBar.json +16 -0
- candura-0.2.4.dev1/candura/extensions/a2ui/catalog/candura/v1/examples/Stat.json +14 -0
- candura-0.2.4.dev1/candura/extensions/a2ui/catalog/candura/v1/examples/Table.json +22 -0
- candura-0.2.4.dev1/candura/extensions/a2ui/catalog/candura/v1/examples/Timeline.json +17 -0
- candura-0.2.4.dev1/candura/extensions/a2ui/catalog/candura/v1/examples/WeekGrid.json +29 -0
- candura-0.2.4.dev1/candura/extensions/a2ui/catalog/candura/v1/rules.txt +29 -0
- candura-0.2.4.dev1/candura/extensions/a2ui/catalog/catalog.py +96 -0
- candura-0.2.4.dev1/candura/extensions/a2ui/codec.py +386 -0
- candura-0.2.4.dev1/candura/extensions/a2ui/config_keys.py +102 -0
- candura-0.2.4.dev1/candura/extensions/a2ui/contract.py +198 -0
- candura-0.2.4.dev1/candura/extensions/a2ui/definition.py +304 -0
- candura-0.2.4.dev1/candura/extensions/a2ui/delivery.py +346 -0
- candura-0.2.4.dev1/candura/extensions/a2ui/destination.py +97 -0
- candura-0.2.4.dev1/candura/extensions/a2ui/devtools/__init__.py +29 -0
- candura-0.2.4.dev1/candura/extensions/a2ui/devtools/guard.py +42 -0
- candura-0.2.4.dev1/candura/extensions/a2ui/devtools/node.py +159 -0
- candura-0.2.4.dev1/candura/extensions/a2ui/devtools/preview.py +292 -0
- candura-0.2.4.dev1/candura/extensions/a2ui/devtools/simulate.py +332 -0
- candura-0.2.4.dev1/candura/extensions/a2ui/enter.py +131 -0
- candura-0.2.4.dev1/candura/extensions/a2ui/events.py +169 -0
- candura-0.2.4.dev1/candura/extensions/a2ui/handlers.py +191 -0
- candura-0.2.4.dev1/candura/extensions/a2ui/internals/__init__.py +5 -0
- candura-0.2.4.dev1/candura/extensions/a2ui/internals/bundle.py +276 -0
- candura-0.2.4.dev1/candura/extensions/a2ui/internals/reader.py +184 -0
- candura-0.2.4.dev1/candura/extensions/a2ui/internals/schema.py +180 -0
- candura-0.2.4.dev1/candura/extensions/a2ui/internals/webapp.py +259 -0
- candura-0.2.4.dev1/candura/extensions/a2ui/links.py +252 -0
- candura-0.2.4.dev1/candura/extensions/a2ui/materializer.py +143 -0
- candura-0.2.4.dev1/candura/extensions/a2ui/models/__init__.py +60 -0
- candura-0.2.4.dev1/candura/extensions/a2ui/models/address.py +51 -0
- candura-0.2.4.dev1/candura/extensions/a2ui/models/document.py +99 -0
- candura-0.2.4.dev1/candura/extensions/a2ui/models/params.py +152 -0
- candura-0.2.4.dev1/candura/extensions/a2ui/models/records.py +161 -0
- candura-0.2.4.dev1/candura/extensions/a2ui/models/request.py +48 -0
- candura-0.2.4.dev1/candura/extensions/a2ui/models/values.py +103 -0
- candura-0.2.4.dev1/candura/extensions/a2ui/models/view.py +165 -0
- candura-0.2.4.dev1/candura/extensions/a2ui/models/web.py +63 -0
- candura-0.2.4.dev1/candura/extensions/a2ui/module.md +137 -0
- candura-0.2.4.dev1/candura/extensions/a2ui/node.py +339 -0
- candura-0.2.4.dev1/candura/extensions/a2ui/param_bar.py +138 -0
- candura-0.2.4.dev1/candura/extensions/a2ui/presentation.py +158 -0
- candura-0.2.4.dev1/candura/extensions/a2ui/profiles.py +150 -0
- candura-0.2.4.dev1/candura/extensions/a2ui/publications.py +296 -0
- candura-0.2.4.dev1/candura/extensions/a2ui/registry.py +35 -0
- candura-0.2.4.dev1/candura/extensions/a2ui/renderer.py +122 -0
- candura-0.2.4.dev1/candura/extensions/a2ui/runner.py +94 -0
- candura-0.2.4.dev1/candura/extensions/a2ui/runtime.py +281 -0
- candura-0.2.4.dev1/candura/extensions/a2ui/services.py +179 -0
- candura-0.2.4.dev1/candura/extensions/a2ui/settings.py +111 -0
- candura-0.2.4.dev1/candura/extensions/a2ui/support.py +72 -0
- candura-0.2.4.dev1/candura/extensions/a2ui/system/__init__.py +50 -0
- candura-0.2.4.dev1/candura/extensions/a2ui/system/providers.py +59 -0
- candura-0.2.4.dev1/candura/extensions/a2ui/system/publicacoes.a2ui.jsonl +5 -0
- candura-0.2.4.dev1/candura/extensions/a2ui/view_store.py +145 -0
- candura-0.2.4.dev1/candura/extensions/db/__init__.py +2 -0
- candura-0.2.4.dev1/candura/extensions/db/firestore/__init__.py +6 -0
- candura-0.2.4.dev1/candura/extensions/db/firestore/changes.py +74 -0
- candura-0.2.4.dev1/candura/extensions/db/firestore/config_keys.py +26 -0
- candura-0.2.4.dev1/candura/extensions/db/firestore/definition.py +346 -0
- candura-0.2.4.dev1/candura/extensions/db/firestore/filters.py +125 -0
- candura-0.2.4.dev1/candura/extensions/db/firestore/indexes.py +239 -0
- candura-0.2.4.dev1/candura/extensions/db/firestore/layout.py +90 -0
- candura-0.2.4.dev1/candura/extensions/db/firestore/limits.py +119 -0
- candura-0.2.4.dev1/candura/extensions/db/firestore/memory.py +182 -0
- candura-0.2.4.dev1/candura/extensions/db/firestore/module.md +38 -0
- candura-0.2.4.dev1/candura/extensions/db/firestore/purge.py +136 -0
- candura-0.2.4.dev1/candura/extensions/db/firestore/query_shape.py +127 -0
- candura-0.2.4.dev1/candura/extensions/db/firestore/transport.py +70 -0
- candura-0.2.4.dev1/candura/extensions/db/firestore/versioned.py +290 -0
- candura-0.2.4.dev1/candura/extensions/db/surrealdb/__init__.py +6 -0
- candura-0.2.4.dev1/candura/extensions/db/surrealdb/admin.py +86 -0
- candura-0.2.4.dev1/candura/extensions/db/surrealdb/connection.py +225 -0
- candura-0.2.4.dev1/candura/extensions/db/surrealdb/definition.py +399 -0
- candura-0.2.4.dev1/candura/extensions/db/surrealdb/layout.py +152 -0
- candura-0.2.4.dev1/candura/extensions/db/surrealdb/module.md +47 -0
- candura-0.2.4.dev1/candura/extensions/db/surrealdb/versioned.py +69 -0
- candura-0.2.4.dev1/candura/extensions/gcp/gcs/__init__.py +6 -0
- candura-0.2.4.dev1/candura/extensions/gcp/gcs/definition.py +152 -0
- candura-0.2.4.dev1/candura/extensions/gcp/gcs/module.md +35 -0
- candura-0.2.4.dev1/candura/extensions/nodes/__init__.py +2 -0
- candura-0.2.4.dev1/candura/extensions/nodes/adapters/__init__.py +6 -0
- candura-0.2.4.dev1/candura/extensions/nodes/adapters/fastapi/__init__.py +8 -0
- candura-0.2.4.dev1/candura/extensions/nodes/adapters/fastapi/context.py +80 -0
- candura-0.2.4.dev1/candura/extensions/nodes/adapters/fastapi/module.md +22 -0
- candura-0.2.4.dev1/candura/extensions/nodes/adapters/fastapi/server.py +355 -0
- candura-0.2.4.dev1/candura/extensions/report/__init__.py +21 -0
- candura-0.2.4.dev1/candura/extensions/report/contract.py +55 -0
- candura-0.2.4.dev1/candura/extensions/report/definition.py +130 -0
- candura-0.2.4.dev1/candura/extensions/report/engine.py +72 -0
- candura-0.2.4.dev1/candura/extensions/report/markdown.py +171 -0
- candura-0.2.4.dev1/candura/extensions/report/models.py +123 -0
- candura-0.2.4.dev1/candura/extensions/report/module.md +68 -0
- candura-0.2.4.dev1/candura/extensions/report/pdf_renderer.py +107 -0
- candura-0.2.4.dev1/candura/extensions/report/theme.py +52 -0
- candura-0.2.4.dev1/candura/extensions/report/themes/candura/fonts/Inter-Bold.ttf +0 -0
- candura-0.2.4.dev1/candura/extensions/report/themes/candura/fonts/Inter-ExtraBold.ttf +0 -0
- candura-0.2.4.dev1/candura/extensions/report/themes/candura/fonts/Inter-Italic.ttf +0 -0
- candura-0.2.4.dev1/candura/extensions/report/themes/candura/fonts/Inter-Medium.ttf +0 -0
- candura-0.2.4.dev1/candura/extensions/report/themes/candura/fonts/Inter-Regular.ttf +0 -0
- candura-0.2.4.dev1/candura/extensions/report/themes/candura/fonts/Inter-SemiBold.ttf +0 -0
- candura-0.2.4.dev1/candura/extensions/report/themes/candura/fonts/OFL.txt +92 -0
- candura-0.2.4.dev1/candura/extensions/report/themes/candura/template.html.j2 +49 -0
- candura-0.2.4.dev1/candura/extensions/report/themes/candura/theme.css +196 -0
- candura-0.2.4.dev1/candura/extensions/sandbox/lua/__init__.py +20 -0
- candura-0.2.4.dev1/candura/extensions/sandbox/lua/environment.py +172 -0
- candura-0.2.4.dev1/candura/extensions/sandbox/lua/extensions/collection.lua +35 -0
- candura-0.2.4.dev1/candura/extensions/sandbox/lua/extensions/context.lua +61 -0
- candura-0.2.4.dev1/candura/extensions/sandbox/lua/extensions/core.lua +108 -0
- candura-0.2.4.dev1/candura/extensions/sandbox/lua/extensions/env.lua +125 -0
- candura-0.2.4.dev1/candura/extensions/sandbox/lua/extensions/guard.lua +50 -0
- candura-0.2.4.dev1/candura/extensions/sandbox/lua/extensions/util.lua +60 -0
- candura-0.2.4.dev1/candura/extensions/sandbox/lua/loader.py +65 -0
- candura-0.2.4.dev1/candura/extensions/sandbox/lua/process.py +195 -0
- candura-0.2.4.dev1/candura/extensions/sandbox/lua/sandbox.py +119 -0
- candura-0.2.4.dev1/candura/extensions/sandbox/module.md +23 -0
- candura-0.2.4.dev1/candura.egg-info/PKG-INFO +95 -0
- candura-0.2.4.dev1/candura.egg-info/SOURCES.txt +845 -0
- candura-0.2.4.dev1/candura.egg-info/dependency_links.txt +1 -0
- candura-0.2.4.dev1/candura.egg-info/requires.txt +66 -0
- candura-0.2.4.dev1/candura.egg-info/top_level.txt +1 -0
- candura-0.2.4.dev1/pyproject.toml +202 -0
- 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 & 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"]
|