opencastor 3.0.0__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.
- opencastor-3.0.0/LICENSE +189 -0
- opencastor-3.0.0/PKG-INFO +426 -0
- opencastor-3.0.0/README.md +270 -0
- opencastor-3.0.0/castor/__init__.py +43 -0
- opencastor-3.0.0/castor/__main__.py +6 -0
- opencastor-3.0.0/castor/action_validator.py +295 -0
- opencastor-3.0.0/castor/agent_tools.py +632 -0
- opencastor-3.0.0/castor/agents/__init__.py +61 -0
- opencastor-3.0.0/castor/agents/base.py +138 -0
- opencastor-3.0.0/castor/agents/communicator.py +197 -0
- opencastor-3.0.0/castor/agents/guardian.py +233 -0
- opencastor-3.0.0/castor/agents/manipulator_agent.py +97 -0
- opencastor-3.0.0/castor/agents/navigator.py +326 -0
- opencastor-3.0.0/castor/agents/observer.py +311 -0
- opencastor-3.0.0/castor/agents/orchestrator.py +309 -0
- opencastor-3.0.0/castor/agents/registry.py +147 -0
- opencastor-3.0.0/castor/agents/shared_state.py +349 -0
- opencastor-3.0.0/castor/api.py +10562 -0
- opencastor-3.0.0/castor/api_errors.py +76 -0
- opencastor-3.0.0/castor/apikeys.py +196 -0
- opencastor-3.0.0/castor/approvals.py +221 -0
- opencastor-3.0.0/castor/attestation_generator.py +334 -0
- opencastor-3.0.0/castor/audit.py +449 -0
- opencastor-3.0.0/castor/auth/__init__.py +226 -0
- opencastor-3.0.0/castor/auth/jwt_pqc.py +156 -0
- opencastor-3.0.0/castor/auth/m2m_trusted.py +230 -0
- opencastor-3.0.0/castor/auth/provider_auth.py +353 -0
- opencastor-3.0.0/castor/auth/robot_handshake.py +104 -0
- opencastor-3.0.0/castor/auth.py +218 -0
- opencastor-3.0.0/castor/auth_jwt.py +328 -0
- opencastor-3.0.0/castor/authority.py +364 -0
- opencastor-3.0.0/castor/avoidance.py +272 -0
- opencastor-3.0.0/castor/backup.py +193 -0
- opencastor-3.0.0/castor/battery.py +132 -0
- opencastor-3.0.0/castor/behaviors.py +2449 -0
- opencastor-3.0.0/castor/benchmark.py +164 -0
- opencastor-3.0.0/castor/benchmarker.py +254 -0
- opencastor-3.0.0/castor/brain/__init__.py +19 -0
- opencastor-3.0.0/castor/brain/autodream.py +272 -0
- opencastor-3.0.0/castor/brain/autodream_issues.py +113 -0
- opencastor-3.0.0/castor/brain/autodream_runner.py +338 -0
- opencastor-3.0.0/castor/brain/compaction.py +73 -0
- opencastor-3.0.0/castor/brain/memory_schema.py +292 -0
- opencastor-3.0.0/castor/brain/robot_context.py +152 -0
- opencastor-3.0.0/castor/calibrate.py +389 -0
- opencastor-3.0.0/castor/camera.py +462 -0
- opencastor-3.0.0/castor/channels/__init__.py +164 -0
- opencastor-3.0.0/castor/channels/base.py +382 -0
- opencastor-3.0.0/castor/channels/discord_channel.py +165 -0
- opencastor-3.0.0/castor/channels/homeassistant_channel.py +211 -0
- opencastor-3.0.0/castor/channels/matrix_channel.py +116 -0
- opencastor-3.0.0/castor/channels/mqtt_channel.py +480 -0
- opencastor-3.0.0/castor/channels/rcan_mqtt_transport.py +184 -0
- opencastor-3.0.0/castor/channels/scope_resolver.py +162 -0
- opencastor-3.0.0/castor/channels/session.py +240 -0
- opencastor-3.0.0/castor/channels/signal_channel.py +276 -0
- opencastor-3.0.0/castor/channels/slack_channel.py +201 -0
- opencastor-3.0.0/castor/channels/teams_channel.py +126 -0
- opencastor-3.0.0/castor/channels/telegram_channel.py +149 -0
- opencastor-3.0.0/castor/channels/whatsapp.py +9 -0
- opencastor-3.0.0/castor/channels/whatsapp_neonize.py +540 -0
- opencastor-3.0.0/castor/channels/whatsapp_twilio.py +105 -0
- opencastor-3.0.0/castor/claude_proxy.py +203 -0
- opencastor-3.0.0/castor/cli.py +9117 -0
- opencastor-3.0.0/castor/client.py +451 -0
- opencastor-3.0.0/castor/cloud/__init__.py +3 -0
- opencastor-3.0.0/castor/cloud/bridge.py +2410 -0
- opencastor-3.0.0/castor/cloud/consent_manager.py +258 -0
- opencastor-3.0.0/castor/cloud/firestore_models.py +151 -0
- opencastor-3.0.0/castor/command_interpreter.py +144 -0
- opencastor-3.0.0/castor/commands/__init__.py +1 -0
- opencastor-3.0.0/castor/commands/benchmark.py +385 -0
- opencastor-3.0.0/castor/commands/compete.py +173 -0
- opencastor-3.0.0/castor/commands/deploy.py +270 -0
- opencastor-3.0.0/castor/commands/hub.py +462 -0
- opencastor-3.0.0/castor/commands/leaderboard.py +167 -0
- opencastor-3.0.0/castor/commands/recommend.py +378 -0
- opencastor-3.0.0/castor/commands/research.py +225 -0
- opencastor-3.0.0/castor/commands/season.py +103 -0
- opencastor-3.0.0/castor/commands/swarm.py +589 -0
- opencastor-3.0.0/castor/commands/update.py +286 -0
- opencastor-3.0.0/castor/competitions/__init__.py +1 -0
- opencastor-3.0.0/castor/competitions/bracket_season.py +463 -0
- opencastor-3.0.0/castor/competitions/models.py +335 -0
- opencastor-3.0.0/castor/competitions/sprint.py +325 -0
- opencastor-3.0.0/castor/competitions/threshold_race.py +468 -0
- opencastor-3.0.0/castor/compliance.py +204 -0
- opencastor-3.0.0/castor/components.py +305 -0
- opencastor-3.0.0/castor/confidence_gate.py +114 -0
- opencastor-3.0.0/castor/config_history.py +186 -0
- opencastor-3.0.0/castor/configure.py +379 -0
- opencastor-3.0.0/castor/conformance.py +2176 -0
- opencastor-3.0.0/castor/connectivity.py +132 -0
- opencastor-3.0.0/castor/context.py +444 -0
- opencastor-3.0.0/castor/contribute/__init__.py +1 -0
- opencastor-3.0.0/castor/contribute/coordinator.py +550 -0
- opencastor-3.0.0/castor/contribute/credits.py +284 -0
- opencastor-3.0.0/castor/contribute/fleet.py +123 -0
- opencastor-3.0.0/castor/contribute/hardware_profile.py +25 -0
- opencastor-3.0.0/castor/contribute/harness_eval.py +374 -0
- opencastor-3.0.0/castor/contribute/runner.py +177 -0
- opencastor-3.0.0/castor/contribute/work_unit.py +43 -0
- opencastor-3.0.0/castor/crash.py +137 -0
- opencastor-3.0.0/castor/crypto/__init__.py +17 -0
- opencastor-3.0.0/castor/crypto/pqc.py +345 -0
- opencastor-3.0.0/castor/daemon.py +657 -0
- opencastor-3.0.0/castor/dashboard.py +1745 -0
- opencastor-3.0.0/castor/dashboard_memory_timeline.py +284 -0
- opencastor-3.0.0/castor/dashboard_tui.py +690 -0
- opencastor-3.0.0/castor/delegation.py +77 -0
- opencastor-3.0.0/castor/demo.py +706 -0
- opencastor-3.0.0/castor/deploy_ota.py +298 -0
- opencastor-3.0.0/castor/depth.py +222 -0
- opencastor-3.0.0/castor/detection.py +302 -0
- opencastor-3.0.0/castor/diff.py +123 -0
- opencastor-3.0.0/castor/doctor.py +1026 -0
- opencastor-3.0.0/castor/drivers/__init__.py +195 -0
- opencastor-3.0.0/castor/drivers/acb_driver.py +700 -0
- opencastor-3.0.0/castor/drivers/arduino_driver.py +223 -0
- opencastor-3.0.0/castor/drivers/base.py +166 -0
- opencastor-3.0.0/castor/drivers/battery_driver.py +550 -0
- opencastor-3.0.0/castor/drivers/can_transport.py +121 -0
- opencastor-3.0.0/castor/drivers/composite.py +272 -0
- opencastor-3.0.0/castor/drivers/dynamixel.py +172 -0
- opencastor-3.0.0/castor/drivers/esp32_ble_driver.py +261 -0
- opencastor-3.0.0/castor/drivers/esp32_websocket.py +232 -0
- opencastor-3.0.0/castor/drivers/ev3dev_driver.py +287 -0
- opencastor-3.0.0/castor/drivers/feetech_driver.py +358 -0
- opencastor-3.0.0/castor/drivers/gpio_driver.py +155 -0
- opencastor-3.0.0/castor/drivers/imu_driver.py +1607 -0
- opencastor-3.0.0/castor/drivers/ipc.py +246 -0
- opencastor-3.0.0/castor/drivers/lidar_driver.py +1564 -0
- opencastor-3.0.0/castor/drivers/odrive_driver.py +328 -0
- opencastor-3.0.0/castor/drivers/pca9685.py +335 -0
- opencastor-3.0.0/castor/drivers/picamera2_driver.py +233 -0
- opencastor-3.0.0/castor/drivers/reachy_driver.py +249 -0
- opencastor-3.0.0/castor/drivers/ros2_driver.py +188 -0
- opencastor-3.0.0/castor/drivers/simulation_driver.py +274 -0
- opencastor-3.0.0/castor/drivers/spike_driver.py +219 -0
- opencastor-3.0.0/castor/drivers/stepper_driver.py +170 -0
- opencastor-3.0.0/castor/drivers/thermal_driver.py +251 -0
- opencastor-3.0.0/castor/drivers/worker.py +29 -0
- opencastor-3.0.0/castor/dual_model.py +470 -0
- opencastor-3.0.0/castor/embedding_interpreter.py +577 -0
- opencastor-3.0.0/castor/episode_search.py +196 -0
- opencastor-3.0.0/castor/eu_register.py +89 -0
- opencastor-3.0.0/castor/eval_harness.py +354 -0
- opencastor-3.0.0/castor/export.py +295 -0
- opencastor-3.0.0/castor/finetune.py +287 -0
- opencastor-3.0.0/castor/firmware.py +441 -0
- opencastor-3.0.0/castor/fix.py +200 -0
- opencastor-3.0.0/castor/fleet/__init__.py +0 -0
- opencastor-3.0.0/castor/fleet/group_policy.py +183 -0
- opencastor-3.0.0/castor/fleet.py +163 -0
- opencastor-3.0.0/castor/fleet_telemetry.py +508 -0
- opencastor-3.0.0/castor/fria.py +368 -0
- opencastor-3.0.0/castor/fs/__init__.py +307 -0
- opencastor-3.0.0/castor/fs/context.py +331 -0
- opencastor-3.0.0/castor/fs/memory.py +326 -0
- opencastor-3.0.0/castor/fs/namespace.py +235 -0
- opencastor-3.0.0/castor/fs/permissions.py +374 -0
- opencastor-3.0.0/castor/fs/proc.py +205 -0
- opencastor-3.0.0/castor/fs/safety.py +822 -0
- opencastor-3.0.0/castor/generate_sdk.py +457 -0
- opencastor-3.0.0/castor/geofence.py +301 -0
- opencastor-3.0.0/castor/gestures.py +263 -0
- opencastor-3.0.0/castor/hailo_vision.py +417 -0
- opencastor-3.0.0/castor/hardware/__init__.py +0 -0
- opencastor-3.0.0/castor/hardware/so_arm101/__init__.py +11 -0
- opencastor-3.0.0/castor/hardware/so_arm101/assembly_guide.py +120 -0
- opencastor-3.0.0/castor/hardware/so_arm101/cli.py +387 -0
- opencastor-3.0.0/castor/hardware/so_arm101/config_generator.py +134 -0
- opencastor-3.0.0/castor/hardware/so_arm101/constants.py +176 -0
- opencastor-3.0.0/castor/hardware/so_arm101/lerobot_bridge.py +231 -0
- opencastor-3.0.0/castor/hardware/so_arm101/motor_setup.py +261 -0
- opencastor-3.0.0/castor/hardware/so_arm101/port_finder.py +200 -0
- opencastor-3.0.0/castor/hardware/so_arm101/rcan_bridge.py +91 -0
- opencastor-3.0.0/castor/hardware/so_arm101/safety_bridge.py +152 -0
- opencastor-3.0.0/castor/hardware/so_arm101/vision.py +49 -0
- opencastor-3.0.0/castor/hardware_detect.py +1356 -0
- opencastor-3.0.0/castor/harness/__init__.py +110 -0
- opencastor-3.0.0/castor/harness/circuit_breaker.py +120 -0
- opencastor-3.0.0/castor/harness/context_compressor.py +125 -0
- opencastor-3.0.0/castor/harness/core.py +975 -0
- opencastor-3.0.0/castor/harness/cost_meter.py +145 -0
- opencastor-3.0.0/castor/harness/default_harness.yaml +166 -0
- opencastor-3.0.0/castor/harness/dlq.py +146 -0
- opencastor-3.0.0/castor/harness/memory.py +151 -0
- opencastor-3.0.0/castor/harness/pattern.py +99 -0
- opencastor-3.0.0/castor/harness/prompt_guard.py +91 -0
- opencastor-3.0.0/castor/harness/rollback.py +140 -0
- opencastor-3.0.0/castor/harness/security.py +123 -0
- opencastor-3.0.0/castor/harness/span_tracer.py +196 -0
- opencastor-3.0.0/castor/harness/visual_planner.py +367 -0
- opencastor-3.0.0/castor/harness/working_memory.py +87 -0
- opencastor-3.0.0/castor/harness.py +986 -0
- opencastor-3.0.0/castor/healthcheck.py +588 -0
- opencastor-3.0.0/castor/hitl_gate.py +139 -0
- opencastor-3.0.0/castor/hooks/__init__.py +5 -0
- opencastor-3.0.0/castor/hooks/default_hooks.py +79 -0
- opencastor-3.0.0/castor/hooks/runner.py +99 -0
- opencastor-3.0.0/castor/hotword.py +325 -0
- opencastor-3.0.0/castor/hub.py +605 -0
- opencastor-3.0.0/castor/i18n.py +314 -0
- opencastor-3.0.0/castor/idle.py +385 -0
- opencastor-3.0.0/castor/ina219.py +154 -0
- opencastor-3.0.0/castor/incidents.py +111 -0
- opencastor-3.0.0/castor/inference/__init__.py +5 -0
- opencastor-3.0.0/castor/inference/streaming.py +287 -0
- opencastor-3.0.0/castor/init_config.py +211 -0
- opencastor-3.0.0/castor/init_wizard.py +142 -0
- opencastor-3.0.0/castor/instructions_for_use.py +135 -0
- opencastor-3.0.0/castor/learn.py +216 -0
- opencastor-3.0.0/castor/learner/__init__.py +58 -0
- opencastor-3.0.0/castor/learner/alma.py +227 -0
- opencastor-3.0.0/castor/learner/apply_stage.py +226 -0
- opencastor-3.0.0/castor/learner/dev_stage.py +167 -0
- opencastor-3.0.0/castor/learner/episode.py +52 -0
- opencastor-3.0.0/castor/learner/episode_store.py +151 -0
- opencastor-3.0.0/castor/learner/patches.py +150 -0
- opencastor-3.0.0/castor/learner/pm_stage.py +318 -0
- opencastor-3.0.0/castor/learner/qa_stage.py +197 -0
- opencastor-3.0.0/castor/learner/sisyphus.py +171 -0
- opencastor-3.0.0/castor/lint.py +328 -0
- opencastor-3.0.0/castor/llmfit.py +493 -0
- opencastor-3.0.0/castor/llmfit_helper.py +362 -0
- opencastor-3.0.0/castor/loa.py +132 -0
- opencastor-3.0.0/castor/logs.py +190 -0
- opencastor-3.0.0/castor/logs_viewer.py +126 -0
- opencastor-3.0.0/castor/main.py +1854 -0
- opencastor-3.0.0/castor/mcp_auth.py +104 -0
- opencastor-3.0.0/castor/mcp_fleet.py +262 -0
- opencastor-3.0.0/castor/mcp_server.py +780 -0
- opencastor-3.0.0/castor/memory/__init__.py +20 -0
- opencastor-3.0.0/castor/memory/compaction.py +129 -0
- opencastor-3.0.0/castor/memory/consolidator.py +501 -0
- opencastor-3.0.0/castor/memory/episode.py +1584 -0
- opencastor-3.0.0/castor/memory/episodic.py +169 -0
- opencastor-3.0.0/castor/memory/replay.py +324 -0
- opencastor-3.0.0/castor/memory_search.py +285 -0
- opencastor-3.0.0/castor/mesh.py +429 -0
- opencastor-3.0.0/castor/metrics.py +1087 -0
- opencastor-3.0.0/castor/migrate.py +527 -0
- opencastor-3.0.0/castor/mission.py +384 -0
- opencastor-3.0.0/castor/nav.py +97 -0
- opencastor-3.0.0/castor/network.py +228 -0
- opencastor-3.0.0/castor/offline_fallback.py +200 -0
- opencastor-3.0.0/castor/optimizer.py +635 -0
- opencastor-3.0.0/castor/orchestration/__init__.py +0 -0
- opencastor-3.0.0/castor/orchestration/thread_context.py +60 -0
- opencastor-3.0.0/castor/peripherals.py +1093 -0
- opencastor-3.0.0/castor/personalities.py +284 -0
- opencastor-3.0.0/castor/plugins.py +468 -0
- opencastor-3.0.0/castor/pointcloud.py +235 -0
- opencastor-3.0.0/castor/privacy.py +163 -0
- opencastor-3.0.0/castor/privacy_mode.py +129 -0
- opencastor-3.0.0/castor/profiles/__init__.py +215 -0
- opencastor-3.0.0/castor/profiles/arduino/__init__.py +0 -0
- opencastor-3.0.0/castor/profiles/arduino/uno.yaml +13 -0
- opencastor-3.0.0/castor/profiles/coral/__init__.py +0 -0
- opencastor-3.0.0/castor/profiles/coral/tpu-inference.yaml +16 -0
- opencastor-3.0.0/castor/profiles/hlabs/__init__.py +1 -0
- opencastor-3.0.0/castor/profiles/hlabs/acb-arm-3dof.yaml +35 -0
- opencastor-3.0.0/castor/profiles/hlabs/acb-biped-6dof.yaml +65 -0
- opencastor-3.0.0/castor/profiles/hlabs/acb-single.yaml +21 -0
- opencastor-3.0.0/castor/profiles/lerobot/__init__.py +0 -0
- opencastor-3.0.0/castor/profiles/lerobot/aloha.yaml +35 -0
- opencastor-3.0.0/castor/profiles/lerobot/koch-arm.yaml +20 -0
- opencastor-3.0.0/castor/profiles/lerobot/so-arm101-bimanual.yaml +36 -0
- opencastor-3.0.0/castor/profiles/lerobot/so-arm101-follower.yaml +22 -0
- opencastor-3.0.0/castor/profiles/lerobot/so-arm101-leader.yaml +22 -0
- opencastor-3.0.0/castor/profiles/odrive/__init__.py +0 -0
- opencastor-3.0.0/castor/profiles/odrive/differential.yaml +14 -0
- opencastor-3.0.0/castor/profiles/pollen/__init__.py +0 -0
- opencastor-3.0.0/castor/profiles/pollen/reachy-mini.yaml +13 -0
- opencastor-3.0.0/castor/profiles/pollen/reachy2.yaml +13 -0
- opencastor-3.0.0/castor/prompt_cache.py +192 -0
- opencastor-3.0.0/castor/provider_fallback.py +197 -0
- opencastor-3.0.0/castor/providers/__init__.py +111 -0
- opencastor-3.0.0/castor/providers/anthropic_provider.py +360 -0
- opencastor-3.0.0/castor/providers/apple_preflight.py +192 -0
- opencastor-3.0.0/castor/providers/apple_provider.py +226 -0
- opencastor-3.0.0/castor/providers/base.py +578 -0
- opencastor-3.0.0/castor/providers/clap_embedding_provider.py +208 -0
- opencastor-3.0.0/castor/providers/clip_embedding_provider.py +217 -0
- opencastor-3.0.0/castor/providers/consensus_provider.py +398 -0
- opencastor-3.0.0/castor/providers/deepseek_provider.py +166 -0
- opencastor-3.0.0/castor/providers/embedding_backend.py +41 -0
- opencastor-3.0.0/castor/providers/failover.py +290 -0
- opencastor-3.0.0/castor/providers/gated.py +328 -0
- opencastor-3.0.0/castor/providers/gemini_embedding_provider.py +241 -0
- opencastor-3.0.0/castor/providers/google_provider.py +259 -0
- opencastor-3.0.0/castor/providers/grok_provider.py +163 -0
- opencastor-3.0.0/castor/providers/groq_provider.py +134 -0
- opencastor-3.0.0/castor/providers/huggingface_provider.py +334 -0
- opencastor-3.0.0/castor/providers/imagebind_provider.py +157 -0
- opencastor-3.0.0/castor/providers/kv_compression.py +93 -0
- opencastor-3.0.0/castor/providers/llamacpp_provider.py +350 -0
- opencastor-3.0.0/castor/providers/mistral_provider.py +166 -0
- opencastor-3.0.0/castor/providers/mlx_provider.py +288 -0
- opencastor-3.0.0/castor/providers/ollama_provider.py +648 -0
- opencastor-3.0.0/castor/providers/onnx_provider.py +309 -0
- opencastor-3.0.0/castor/providers/openai_provider.py +184 -0
- opencastor-3.0.0/castor/providers/openrouter_provider.py +166 -0
- opencastor-3.0.0/castor/providers/pool_provider.py +1241 -0
- opencastor-3.0.0/castor/providers/sentence_transformers_provider.py +201 -0
- opencastor-3.0.0/castor/providers/taalas_provider.py +215 -0
- opencastor-3.0.0/castor/providers/task_router.py +78 -0
- opencastor-3.0.0/castor/providers/vertex_provider.py +211 -0
- opencastor-3.0.0/castor/providers/vla_provider.py +248 -0
- opencastor-3.0.0/castor/py.typed +0 -0
- opencastor-3.0.0/castor/quantum_commitment.py +189 -0
- opencastor-3.0.0/castor/rate_limiting.py +289 -0
- opencastor-3.0.0/castor/rcan/__init__.py +71 -0
- opencastor-3.0.0/castor/rcan/capabilities.py +120 -0
- opencastor-3.0.0/castor/rcan/commitment_chain.py +299 -0
- opencastor-3.0.0/castor/rcan/config_safety.py +278 -0
- opencastor-3.0.0/castor/rcan/http_transport.py +96 -0
- opencastor-3.0.0/castor/rcan/invoke.py +308 -0
- opencastor-3.0.0/castor/rcan/jwt_auth.py +216 -0
- opencastor-3.0.0/castor/rcan/key_rotation.py +226 -0
- opencastor-3.0.0/castor/rcan/mdns.py +255 -0
- opencastor-3.0.0/castor/rcan/message.py +443 -0
- opencastor-3.0.0/castor/rcan/message_signing.py +210 -0
- opencastor-3.0.0/castor/rcan/node_broadcaster.py +105 -0
- opencastor-3.0.0/castor/rcan/node_resolver.py +273 -0
- opencastor-3.0.0/castor/rcan/parallel_invoke.py +126 -0
- opencastor-3.0.0/castor/rcan/rbac.py +455 -0
- opencastor-3.0.0/castor/rcan/registry.py +467 -0
- opencastor-3.0.0/castor/rcan/router.py +271 -0
- opencastor-3.0.0/castor/rcan/ruri.py +154 -0
- opencastor-3.0.0/castor/rcan/sdk_bridge.py +342 -0
- opencastor-3.0.0/castor/rcan/sdk_compat.py +108 -0
- opencastor-3.0.0/castor/rcan/telemetry_fields.py +67 -0
- opencastor-3.0.0/castor/rcan/verification.py +79 -0
- opencastor-3.0.0/castor/rcan3/__init__.py +40 -0
- opencastor-3.0.0/castor/rcan3/castor_harness.py +35 -0
- opencastor-3.0.0/castor/rcan3/compliance.py +177 -0
- opencastor-3.0.0/castor/rcan3/harness_protocol.py +51 -0
- opencastor-3.0.0/castor/rcan3/identity.py +155 -0
- opencastor-3.0.0/castor/rcan3/reader.py +87 -0
- opencastor-3.0.0/castor/rcan3/rrf_client.py +94 -0
- opencastor-3.0.0/castor/rcan3/signer.py +69 -0
- opencastor-3.0.0/castor/rcan_generator.py +227 -0
- opencastor-3.0.0/castor/record.py +185 -0
- opencastor-3.0.0/castor/recorder.py +414 -0
- opencastor-3.0.0/castor/registry.py +364 -0
- opencastor-3.0.0/castor/repl.py +129 -0
- opencastor-3.0.0/castor/response_cache.py +321 -0
- opencastor-3.0.0/castor/rrf_cmd.py +185 -0
- opencastor-3.0.0/castor/runtime_stats.py +203 -0
- opencastor-3.0.0/castor/safety/__init__.py +32 -0
- opencastor-3.0.0/castor/safety/anti_subversion.py +312 -0
- opencastor-3.0.0/castor/safety/authorization.py +408 -0
- opencastor-3.0.0/castor/safety/bounds.py +643 -0
- opencastor-3.0.0/castor/safety/monitor.py +490 -0
- opencastor-3.0.0/castor/safety/p66_manifest.py +602 -0
- opencastor-3.0.0/castor/safety/protocol.py +846 -0
- opencastor-3.0.0/castor/safety/state.py +222 -0
- opencastor-3.0.0/castor/safety_benchmark.py +306 -0
- opencastor-3.0.0/castor/safety_telemetry.py +160 -0
- opencastor-3.0.0/castor/sbom.py +356 -0
- opencastor-3.0.0/castor/schedule.py +214 -0
- opencastor-3.0.0/castor/sdk/__init__.py +9 -0
- opencastor-3.0.0/castor/secret_provider.py +248 -0
- opencastor-3.0.0/castor/security_posture.py +149 -0
- opencastor-3.0.0/castor/services/__init__.py +1 -0
- opencastor-3.0.0/castor/services/rrf_poller.py +239 -0
- opencastor-3.0.0/castor/setup_catalog.py +785 -0
- opencastor-3.0.0/castor/setup_service.py +1248 -0
- opencastor-3.0.0/castor/shell.py +227 -0
- opencastor-3.0.0/castor/sim.py +275 -0
- opencastor-3.0.0/castor/sim_bridge.py +315 -0
- opencastor-3.0.0/castor/skills/__init__.py +5 -0
- opencastor-3.0.0/castor/skills/contribute.py +193 -0
- opencastor-3.0.0/castor/skills/loader.py +532 -0
- opencastor-3.0.0/castor/skills/rcan_skills.py +252 -0
- opencastor-3.0.0/castor/slam.py +300 -0
- opencastor-3.0.0/castor/snapshot.py +210 -0
- opencastor-3.0.0/castor/specialists/__init__.py +48 -0
- opencastor-3.0.0/castor/specialists/base_specialist.py +65 -0
- opencastor-3.0.0/castor/specialists/dock.py +246 -0
- opencastor-3.0.0/castor/specialists/manipulator.py +185 -0
- opencastor-3.0.0/castor/specialists/responder.py +171 -0
- opencastor-3.0.0/castor/specialists/scout.py +296 -0
- opencastor-3.0.0/castor/specialists/task_planner.py +247 -0
- opencastor-3.0.0/castor/stream.py +226 -0
- opencastor-3.0.0/castor/swarm/__init__.py +54 -0
- opencastor-3.0.0/castor/swarm/consensus.py +338 -0
- opencastor-3.0.0/castor/swarm/coordinator.py +276 -0
- opencastor-3.0.0/castor/swarm/events.py +33 -0
- opencastor-3.0.0/castor/swarm/oak_worker.py +141 -0
- opencastor-3.0.0/castor/swarm/patch_sync.py +160 -0
- opencastor-3.0.0/castor/swarm/peer.py +170 -0
- opencastor-3.0.0/castor/swarm/shared_memory.py +148 -0
- opencastor-3.0.0/castor/swarm/worker.py +209 -0
- opencastor-3.0.0/castor/swarm_memory.py +275 -0
- opencastor-3.0.0/castor/system_info.py +294 -0
- opencastor-3.0.0/castor/telemetry/__init__.py +414 -0
- opencastor-3.0.0/castor/telemetry/prometheus.py +212 -0
- opencastor-3.0.0/castor/templates/__init__.py +36 -0
- opencastor-3.0.0/castor/templates/fria.html.j2 +164 -0
- opencastor-3.0.0/castor/templates/geofence.html +364 -0
- opencastor-3.0.0/castor/templates/systemd/__init__.py +0 -0
- opencastor-3.0.0/castor/templates/systemd/castor-gateway.service.tmpl +29 -0
- opencastor-3.0.0/castor/templates/systemd/opencastor-attestation.service.tmpl +18 -0
- opencastor-3.0.0/castor/test_hardware.py +255 -0
- opencastor-3.0.0/castor/thought_log.py +93 -0
- opencastor-3.0.0/castor/tiered_brain.py +470 -0
- opencastor-3.0.0/castor/timelapse.py +251 -0
- opencastor-3.0.0/castor/tools.py +340 -0
- opencastor-3.0.0/castor/tools_ext/__init__.py +13 -0
- opencastor-3.0.0/castor/tools_ext/permissions.py +68 -0
- opencastor-3.0.0/castor/tools_ext/profiles.py +85 -0
- opencastor-3.0.0/castor/trajectory.py +390 -0
- opencastor-3.0.0/castor/tts/__init__.py +48 -0
- opencastor-3.0.0/castor/tts/elevenlabs_backend.py +188 -0
- opencastor-3.0.0/castor/tts_local.py +229 -0
- opencastor-3.0.0/castor/update_check.py +158 -0
- opencastor-3.0.0/castor/updater.py +97 -0
- opencastor-3.0.0/castor/usage.py +402 -0
- opencastor-3.0.0/castor/voice.py +1061 -0
- opencastor-3.0.0/castor/voice_loop.py +305 -0
- opencastor-3.0.0/castor/watch.py +388 -0
- opencastor-3.0.0/castor/watchdog.py +111 -0
- opencastor-3.0.0/castor/watermark.py +63 -0
- opencastor-3.0.0/castor/web_wizard/__init__.py +5 -0
- opencastor-3.0.0/castor/web_wizard/server.py +831 -0
- opencastor-3.0.0/castor/web_wizard.py +537 -0
- opencastor-3.0.0/castor/webhooks.py +269 -0
- opencastor-3.0.0/castor/webrtc_audio.py +336 -0
- opencastor-3.0.0/castor/wizard.py +3174 -0
- opencastor-3.0.0/castor/workspace.py +234 -0
- opencastor-3.0.0/castor/world/__init__.py +5 -0
- opencastor-3.0.0/castor/world/model.py +122 -0
- opencastor-3.0.0/opencastor.egg-info/PKG-INFO +426 -0
- opencastor-3.0.0/opencastor.egg-info/SOURCES.txt +855 -0
- opencastor-3.0.0/opencastor.egg-info/dependency_links.txt +1 -0
- opencastor-3.0.0/opencastor.egg-info/entry_points.txt +3 -0
- opencastor-3.0.0/opencastor.egg-info/requires.txt +162 -0
- opencastor-3.0.0/opencastor.egg-info/top_level.txt +1 -0
- opencastor-3.0.0/pyproject.toml +212 -0
- opencastor-3.0.0/setup.cfg +4 -0
- opencastor-3.0.0/tests/test_acb_driver.py +651 -0
- opencastor-3.0.0/tests/test_accountability.py +326 -0
- opencastor-3.0.0/tests/test_action_validator.py +135 -0
- opencastor-3.0.0/tests/test_action_validator_rcan.py +182 -0
- opencastor-3.0.0/tests/test_agent_scope_propagation.py +423 -0
- opencastor-3.0.0/tests/test_agent_tools.py +132 -0
- opencastor-3.0.0/tests/test_anti_subversion.py +356 -0
- opencastor-3.0.0/tests/test_api_endpoints.py +1810 -0
- opencastor-3.0.0/tests/test_apikeys.py +185 -0
- opencastor-3.0.0/tests/test_apple_preflight.py +75 -0
- opencastor-3.0.0/tests/test_apple_provider.py +89 -0
- opencastor-3.0.0/tests/test_approvals.py +201 -0
- opencastor-3.0.0/tests/test_arduino_driver.py +312 -0
- opencastor-3.0.0/tests/test_attestation.py +130 -0
- opencastor-3.0.0/tests/test_audit.py +267 -0
- opencastor-3.0.0/tests/test_audit_tamper.py +220 -0
- opencastor-3.0.0/tests/test_auth.py +211 -0
- opencastor-3.0.0/tests/test_auth_jwt.py +220 -0
- opencastor-3.0.0/tests/test_autodream.py +100 -0
- opencastor-3.0.0/tests/test_autodream_issues.py +98 -0
- opencastor-3.0.0/tests/test_avoidance.py +226 -0
- opencastor-3.0.0/tests/test_backup.py +105 -0
- opencastor-3.0.0/tests/test_battery_cycles.py +249 -0
- opencastor-3.0.0/tests/test_battery_driver.py +224 -0
- opencastor-3.0.0/tests/test_battery_history.py +190 -0
- opencastor-3.0.0/tests/test_behavior_assert.py +152 -0
- opencastor-3.0.0/tests/test_behavior_break_on.py +244 -0
- opencastor-3.0.0/tests/test_behavior_chain.py +238 -0
- opencastor-3.0.0/tests/test_behavior_conditional.py +653 -0
- opencastor-3.0.0/tests/test_behavior_countdown.py +148 -0
- opencastor-3.0.0/tests/test_behavior_emit_event.py +135 -0
- opencastor-3.0.0/tests/test_behavior_event_trigger.py +154 -0
- opencastor-3.0.0/tests/test_behavior_event_wait.py +229 -0
- opencastor-3.0.0/tests/test_behavior_for_each.py +272 -0
- opencastor-3.0.0/tests/test_behavior_foreach_file.py +286 -0
- opencastor-3.0.0/tests/test_behavior_log_step.py +165 -0
- opencastor-3.0.0/tests/test_behavior_parallel.py +284 -0
- opencastor-3.0.0/tests/test_behavior_parallel_race.py +209 -0
- opencastor-3.0.0/tests/test_behavior_retry.py +144 -0
- opencastor-3.0.0/tests/test_behavior_schedule.py +142 -0
- opencastor-3.0.0/tests/test_behavior_set_var_get_var.py +181 -0
- opencastor-3.0.0/tests/test_behavior_tag_filter.py +137 -0
- opencastor-3.0.0/tests/test_behavior_unless.py +202 -0
- opencastor-3.0.0/tests/test_behavior_wait_for_event.py +174 -0
- opencastor-3.0.0/tests/test_behavior_while_true.py +158 -0
- opencastor-3.0.0/tests/test_behaviors.py +542 -0
- opencastor-3.0.0/tests/test_benchmark.py +337 -0
- opencastor-3.0.0/tests/test_benchmarker.py +214 -0
- opencastor-3.0.0/tests/test_bracket_season.py +399 -0
- opencastor-3.0.0/tests/test_brain_compaction.py +87 -0
- opencastor-3.0.0/tests/test_bridge.py +335 -0
- opencastor-3.0.0/tests/test_camera_model.py +58 -0
- opencastor-3.0.0/tests/test_castor_credits.py +386 -0
- opencastor-3.0.0/tests/test_castor_sim.py +198 -0
- opencastor-3.0.0/tests/test_channel_interarrival.py +169 -0
- opencastor-3.0.0/tests/test_channel_retry.py +108 -0
- opencastor-3.0.0/tests/test_channel_scope.py +405 -0
- opencastor-3.0.0/tests/test_channels.py +760 -0
- opencastor-3.0.0/tests/test_circuit_breaker.py +89 -0
- opencastor-3.0.0/tests/test_cli.py +2826 -0
- opencastor-3.0.0/tests/test_cli_compete.py +250 -0
- opencastor-3.0.0/tests/test_cli_node.py +240 -0
- opencastor-3.0.0/tests/test_cli_register_dry_run.py +257 -0
- opencastor-3.0.0/tests/test_cli_research.py +271 -0
- opencastor-3.0.0/tests/test_cli_snapshot.py +144 -0
- opencastor-3.0.0/tests/test_cli_v3_dispatch.py +67 -0
- opencastor-3.0.0/tests/test_commitment_chain.py +187 -0
- opencastor-3.0.0/tests/test_commitment_chain_xdg.py +71 -0
- opencastor-3.0.0/tests/test_compaction.py +94 -0
- opencastor-3.0.0/tests/test_compliance.py +174 -0
- opencastor-3.0.0/tests/test_compliance_version_gate.py +45 -0
- opencastor-3.0.0/tests/test_composite_driver.py +116 -0
- opencastor-3.0.0/tests/test_condition_step.py +225 -0
- opencastor-3.0.0/tests/test_confidence_gate.py +116 -0
- opencastor-3.0.0/tests/test_config_diff.py +137 -0
- opencastor-3.0.0/tests/test_config_history.py +184 -0
- opencastor-3.0.0/tests/test_conformance.py +1455 -0
- opencastor-3.0.0/tests/test_connectivity.py +116 -0
- opencastor-3.0.0/tests/test_consensus_provider.py +357 -0
- opencastor-3.0.0/tests/test_consolidator.py +275 -0
- opencastor-3.0.0/tests/test_context.py +127 -0
- opencastor-3.0.0/tests/test_contribute.py +62 -0
- opencastor-3.0.0/tests/test_cost_meter.py +113 -0
- opencastor-3.0.0/tests/test_daemon.py +184 -0
- opencastor-3.0.0/tests/test_dashboard_memory_timeline.py +109 -0
- opencastor-3.0.0/tests/test_dashboard_mission_control.py +267 -0
- opencastor-3.0.0/tests/test_dashboard_security.py +320 -0
- opencastor-3.0.0/tests/test_dashboard_tui.py +346 -0
- opencastor-3.0.0/tests/test_dashboard_tui_security.py +237 -0
- opencastor-3.0.0/tests/test_deepseek_provider.py +158 -0
- opencastor-3.0.0/tests/test_demo.py +137 -0
- opencastor-3.0.0/tests/test_depth.py +275 -0
- opencastor-3.0.0/tests/test_detection.py +207 -0
- opencastor-3.0.0/tests/test_diff.py +174 -0
- opencastor-3.0.0/tests/test_discover_v16.py +201 -0
- opencastor-3.0.0/tests/test_dlq.py +91 -0
- opencastor-3.0.0/tests/test_doctor.py +175 -0
- opencastor-3.0.0/tests/test_doctor_auto_fix.py +188 -0
- opencastor-3.0.0/tests/test_doctor_checks.py +157 -0
- opencastor-3.0.0/tests/test_doctor_cpu_temperature.py +150 -0
- opencastor-3.0.0/tests/test_doctor_disk_space.py +130 -0
- opencastor-3.0.0/tests/test_doctor_gpu_memory.py +156 -0
- opencastor-3.0.0/tests/test_doctor_memory_usage.py +129 -0
- opencastor-3.0.0/tests/test_doctor_rcan_compliance.py +207 -0
- opencastor-3.0.0/tests/test_doctor_swap_usage.py +161 -0
- opencastor-3.0.0/tests/test_drivers.py +808 -0
- opencastor-3.0.0/tests/test_dual_model.py +224 -0
- opencastor-3.0.0/tests/test_elevenlabs_tts.py +222 -0
- opencastor-3.0.0/tests/test_embedding_interpreter.py +254 -0
- opencastor-3.0.0/tests/test_embedding_provider.py +163 -0
- opencastor-3.0.0/tests/test_episode_feedback.py +181 -0
- opencastor-3.0.0/tests/test_episode_replay.py +271 -0
- opencastor-3.0.0/tests/test_episode_search.py +210 -0
- opencastor-3.0.0/tests/test_episode_tags.py +138 -0
- opencastor-3.0.0/tests/test_episodic_memory.py +84 -0
- opencastor-3.0.0/tests/test_esp32_ble_driver.py +158 -0
- opencastor-3.0.0/tests/test_eu_register.py +91 -0
- opencastor-3.0.0/tests/test_export.py +124 -0
- opencastor-3.0.0/tests/test_export_bundle_tgz.py +273 -0
- opencastor-3.0.0/tests/test_finetune.py +357 -0
- opencastor-3.0.0/tests/test_firmware_ota.py +260 -0
- opencastor-3.0.0/tests/test_fleet_group_policy.py +243 -0
- opencastor-3.0.0/tests/test_fleet_telemetry.py +293 -0
- opencastor-3.0.0/tests/test_fria.py +722 -0
- opencastor-3.0.0/tests/test_fs.py +611 -0
- opencastor-3.0.0/tests/test_generate_sdk.py +258 -0
- opencastor-3.0.0/tests/test_geofence.py +211 -0
- opencastor-3.0.0/tests/test_geofence_editor.py +246 -0
- opencastor-3.0.0/tests/test_gpio_driver.py +101 -0
- opencastor-3.0.0/tests/test_grok_provider.py +149 -0
- opencastor-3.0.0/tests/test_groq_provider.py +130 -0
- opencastor-3.0.0/tests/test_hailo_vision.py +366 -0
- opencastor-3.0.0/tests/test_hardware_api.py +230 -0
- opencastor-3.0.0/tests/test_hardware_detect.py +1349 -0
- opencastor-3.0.0/tests/test_hardware_detect_extended.py +561 -0
- opencastor-3.0.0/tests/test_harness.py +332 -0
- opencastor-3.0.0/tests/test_harness_api.py +365 -0
- opencastor-3.0.0/tests/test_harness_eval_contribute.py +172 -0
- opencastor-3.0.0/tests/test_harness_language_consistency.py +249 -0
- opencastor-3.0.0/tests/test_harness_memory.py +59 -0
- opencastor-3.0.0/tests/test_harness_pattern.py +48 -0
- opencastor-3.0.0/tests/test_harness_security.py +59 -0
- opencastor-3.0.0/tests/test_harness_visual_planner.py +212 -0
- opencastor-3.0.0/tests/test_healthcheck.py +135 -0
- opencastor-3.0.0/tests/test_hitl_gate.py +156 -0
- opencastor-3.0.0/tests/test_hooks.py +107 -0
- opencastor-3.0.0/tests/test_hotword.py +147 -0
- opencastor-3.0.0/tests/test_hotword_autostart.py +105 -0
- opencastor-3.0.0/tests/test_hotword_robot_name.py +146 -0
- opencastor-3.0.0/tests/test_hub.py +530 -0
- opencastor-3.0.0/tests/test_hub_plugins.py +230 -0
- opencastor-3.0.0/tests/test_huggingface.py +112 -0
- opencastor-3.0.0/tests/test_i18n.py +184 -0
- opencastor-3.0.0/tests/test_idle.py +294 -0
- opencastor-3.0.0/tests/test_imu_activity_classifier.py +150 -0
- opencastor-3.0.0/tests/test_imu_calibrate_step.py +126 -0
- opencastor-3.0.0/tests/test_imu_driver.py +158 -0
- opencastor-3.0.0/tests/test_imu_fall_detection.py +112 -0
- opencastor-3.0.0/tests/test_imu_heading_history.py +133 -0
- opencastor-3.0.0/tests/test_imu_madgwick.py +153 -0
- opencastor-3.0.0/tests/test_imu_orientation.py +172 -0
- opencastor-3.0.0/tests/test_imu_pose.py +276 -0
- opencastor-3.0.0/tests/test_imu_shake_detection.py +180 -0
- opencastor-3.0.0/tests/test_imu_step_counter.py +128 -0
- opencastor-3.0.0/tests/test_imu_steps.py +261 -0
- opencastor-3.0.0/tests/test_imu_tap_detection.py +208 -0
- opencastor-3.0.0/tests/test_imu_tilt_alert.py +157 -0
- opencastor-3.0.0/tests/test_imu_vibration.py +189 -0
- opencastor-3.0.0/tests/test_ina219.py +108 -0
- opencastor-3.0.0/tests/test_incidents.py +89 -0
- opencastor-3.0.0/tests/test_init_config.py +62 -0
- opencastor-3.0.0/tests/test_init_wizard.py +130 -0
- opencastor-3.0.0/tests/test_instructions_for_use.py +71 -0
- opencastor-3.0.0/tests/test_integration_rrf_roundtrip.py +90 -0
- opencastor-3.0.0/tests/test_jwt_pqc.py +135 -0
- opencastor-3.0.0/tests/test_lidar_arc_scan.py +133 -0
- opencastor-3.0.0/tests/test_lidar_driver.py +186 -0
- opencastor-3.0.0/tests/test_lidar_history.py +168 -0
- opencastor-3.0.0/tests/test_lidar_map_persistence.py +212 -0
- opencastor-3.0.0/tests/test_lidar_moving_objects.py +194 -0
- opencastor-3.0.0/tests/test_lidar_nearest_obstacle_angle.py +116 -0
- opencastor-3.0.0/tests/test_lidar_obstacle_velocity.py +111 -0
- opencastor-3.0.0/tests/test_lidar_occupancy_grid.py +137 -0
- opencastor-3.0.0/tests/test_lidar_point_cloud_2d.py +136 -0
- opencastor-3.0.0/tests/test_lidar_radial_profile.py +138 -0
- opencastor-3.0.0/tests/test_lidar_scan_rate.py +120 -0
- opencastor-3.0.0/tests/test_lidar_sector_history.py +151 -0
- opencastor-3.0.0/tests/test_lidar_slam_hint.py +266 -0
- opencastor-3.0.0/tests/test_lidar_slam_update.py +140 -0
- opencastor-3.0.0/tests/test_lidar_velocity.py +300 -0
- opencastor-3.0.0/tests/test_lidar_zone_map.py +207 -0
- opencastor-3.0.0/tests/test_lidar_zone_velocity.py +147 -0
- opencastor-3.0.0/tests/test_llamacpp_provider.py +64 -0
- opencastor-3.0.0/tests/test_llmfit.py +151 -0
- opencastor-3.0.0/tests/test_llmfit_helper.py +204 -0
- opencastor-3.0.0/tests/test_loa_v3.py +67 -0
- opencastor-3.0.0/tests/test_m2m_trusted.py +194 -0
- opencastor-3.0.0/tests/test_manifest_roundtrip.py +53 -0
- opencastor-3.0.0/tests/test_matrix_channel.py +120 -0
- opencastor-3.0.0/tests/test_mcp_fleet.py +234 -0
- opencastor-3.0.0/tests/test_mcp_server.py +330 -0
- opencastor-3.0.0/tests/test_mcp_stream.py +141 -0
- opencastor-3.0.0/tests/test_memory.py +152 -0
- opencastor-3.0.0/tests/test_memory_cluster_episodes.py +150 -0
- opencastor-3.0.0/tests/test_memory_clustering.py +172 -0
- opencastor-3.0.0/tests/test_memory_delta.py +172 -0
- opencastor-3.0.0/tests/test_memory_export_csv.py +169 -0
- opencastor-3.0.0/tests/test_memory_export_tags_csv.py +109 -0
- opencastor-3.0.0/tests/test_memory_find_by_outcome.py +152 -0
- opencastor-3.0.0/tests/test_memory_outcome_timeline.py +171 -0
- opencastor-3.0.0/tests/test_memory_parquet.py +210 -0
- opencastor-3.0.0/tests/test_memory_replay.py +194 -0
- opencastor-3.0.0/tests/test_memory_replay_similar.py +183 -0
- opencastor-3.0.0/tests/test_memory_retention_policy.py +128 -0
- opencastor-3.0.0/tests/test_memory_schema.py +221 -0
- opencastor-3.0.0/tests/test_memory_search.py +126 -0
- opencastor-3.0.0/tests/test_memory_semantic_search.py +145 -0
- opencastor-3.0.0/tests/test_memory_summarize.py +177 -0
- opencastor-3.0.0/tests/test_memory_tag_frequency.py +111 -0
- opencastor-3.0.0/tests/test_memory_tag_search.py +162 -0
- opencastor-3.0.0/tests/test_memory_tag_timeline.py +152 -0
- opencastor-3.0.0/tests/test_memory_trajectory.py +157 -0
- opencastor-3.0.0/tests/test_mesh_networking.py +243 -0
- opencastor-3.0.0/tests/test_metrics.py +117 -0
- opencastor-3.0.0/tests/test_metrics_channel_message_histogram.py +121 -0
- opencastor-3.0.0/tests/test_metrics_channel_rate_histogram.py +132 -0
- opencastor-3.0.0/tests/test_metrics_error_rate_histogram.py +162 -0
- opencastor-3.0.0/tests/test_metrics_export_json.py +151 -0
- opencastor-3.0.0/tests/test_metrics_loop_latency_percentiles.py +144 -0
- opencastor-3.0.0/tests/test_metrics_percentiles.py +160 -0
- opencastor-3.0.0/tests/test_metrics_provider_error_histogram.py +162 -0
- opencastor-3.0.0/tests/test_metrics_provider_latency.py +116 -0
- opencastor-3.0.0/tests/test_metrics_pushgateway.py +188 -0
- opencastor-3.0.0/tests/test_metrics_request_rate.py +255 -0
- opencastor-3.0.0/tests/test_metrics_uptime_histogram.py +120 -0
- opencastor-3.0.0/tests/test_migrate_3_0.py +94 -0
- opencastor-3.0.0/tests/test_migrate_to_robot_md.py +30 -0
- opencastor-3.0.0/tests/test_mission.py +893 -0
- opencastor-3.0.0/tests/test_mission_bridge.py +320 -0
- opencastor-3.0.0/tests/test_mission_eta.py +153 -0
- opencastor-3.0.0/tests/test_mistral_provider.py +144 -0
- opencastor-3.0.0/tests/test_mlx_provider.py +245 -0
- opencastor-3.0.0/tests/test_monitoring_stack.py +207 -0
- opencastor-3.0.0/tests/test_motor_hz.py +135 -0
- opencastor-3.0.0/tests/test_mqtt_action_bridge.py +301 -0
- opencastor-3.0.0/tests/test_mqtt_channel.py +180 -0
- opencastor-3.0.0/tests/test_nav.py +360 -0
- opencastor-3.0.0/tests/test_node_broadcaster.py +122 -0
- opencastor-3.0.0/tests/test_node_resolver.py +206 -0
- opencastor-3.0.0/tests/test_odrive_driver.py +227 -0
- opencastor-3.0.0/tests/test_offline_fallback.py +274 -0
- opencastor-3.0.0/tests/test_ollama_provider.py +863 -0
- opencastor-3.0.0/tests/test_openrouter_provider.py +222 -0
- opencastor-3.0.0/tests/test_optimizer.py +324 -0
- opencastor-3.0.0/tests/test_otel_tracing.py +224 -0
- opencastor-3.0.0/tests/test_p66_harness.py +227 -0
- opencastor-3.0.0/tests/test_parallel_invoke.py +308 -0
- opencastor-3.0.0/tests/test_peripherals.py +561 -0
- opencastor-3.0.0/tests/test_personalities.py +227 -0
- opencastor-3.0.0/tests/test_physical_bounds.py +462 -0
- opencastor-3.0.0/tests/test_picamera2_driver.py +188 -0
- opencastor-3.0.0/tests/test_pick_place_ux.py +266 -0
- opencastor-3.0.0/tests/test_plugin_system.py +237 -0
- opencastor-3.0.0/tests/test_plugins.py +480 -0
- opencastor-3.0.0/tests/test_pointcloud.py +190 -0
- opencastor-3.0.0/tests/test_pool_ab_test.py +178 -0
- opencastor-3.0.0/tests/test_pool_adaptive.py +193 -0
- opencastor-3.0.0/tests/test_pool_burst.py +158 -0
- opencastor-3.0.0/tests/test_pool_cascade.py +154 -0
- opencastor-3.0.0/tests/test_pool_cascade_reset.py +126 -0
- opencastor-3.0.0/tests/test_pool_circuit_breaker.py +147 -0
- opencastor-3.0.0/tests/test_pool_cost_report.py +169 -0
- opencastor-3.0.0/tests/test_pool_cost_tracking.py +145 -0
- opencastor-3.0.0/tests/test_pool_fallback_empty.py +191 -0
- opencastor-3.0.0/tests/test_pool_latency_percentiles.py +116 -0
- opencastor-3.0.0/tests/test_pool_provider_stats.py +144 -0
- opencastor-3.0.0/tests/test_pool_replay.py +241 -0
- opencastor-3.0.0/tests/test_pool_reset_stats.py +133 -0
- opencastor-3.0.0/tests/test_pool_shadow_mode.py +190 -0
- opencastor-3.0.0/tests/test_pool_sticky_session.py +188 -0
- opencastor-3.0.0/tests/test_pool_warm_providers.py +121 -0
- opencastor-3.0.0/tests/test_pool_weighted_health.py +227 -0
- opencastor-3.0.0/tests/test_post_compaction_continuation.py +218 -0
- opencastor-3.0.0/tests/test_pqc.py +372 -0
- opencastor-3.0.0/tests/test_privacy.py +128 -0
- opencastor-3.0.0/tests/test_privacy_mode.py +136 -0
- opencastor-3.0.0/tests/test_profiles.py +165 -0
- opencastor-3.0.0/tests/test_profiles_permissions.py +81 -0
- opencastor-3.0.0/tests/test_prompt_cache.py +298 -0
- opencastor-3.0.0/tests/test_prompt_cache_anchoring.py +175 -0
- opencastor-3.0.0/tests/test_prompt_guard.py +114 -0
- opencastor-3.0.0/tests/test_provider_auth.py +297 -0
- opencastor-3.0.0/tests/test_provider_error_metrics.py +166 -0
- opencastor-3.0.0/tests/test_provider_failover.py +215 -0
- opencastor-3.0.0/tests/test_provider_fallback.py +215 -0
- opencastor-3.0.0/tests/test_provider_pool.py +277 -0
- opencastor-3.0.0/tests/test_providers.py +509 -0
- opencastor-3.0.0/tests/test_r2r_security.py +428 -0
- opencastor-3.0.0/tests/test_rate_limiting.py +157 -0
- opencastor-3.0.0/tests/test_rcan3_castor_harness.py +43 -0
- opencastor-3.0.0/tests/test_rcan3_compliance.py +141 -0
- opencastor-3.0.0/tests/test_rcan3_harness_protocol.py +57 -0
- opencastor-3.0.0/tests/test_rcan3_identity.py +64 -0
- opencastor-3.0.0/tests/test_rcan3_reader.py +112 -0
- opencastor-3.0.0/tests/test_rcan3_rrf_client.py +69 -0
- opencastor-3.0.0/tests/test_rcan3_signer.py +45 -0
- opencastor-3.0.0/tests/test_rcan_bridge_integration.py +229 -0
- opencastor-3.0.0/tests/test_rcan_capabilities.py +101 -0
- opencastor-3.0.0/tests/test_rcan_generator.py +151 -0
- opencastor-3.0.0/tests/test_rcan_http_transport.py +120 -0
- opencastor-3.0.0/tests/test_rcan_integration.py +60 -0
- opencastor-3.0.0/tests/test_rcan_integration_full.py +90 -0
- opencastor-3.0.0/tests/test_rcan_invoke.py +238 -0
- opencastor-3.0.0/tests/test_rcan_jwt.py +124 -0
- opencastor-3.0.0/tests/test_rcan_jwt_auth.py +32 -0
- opencastor-3.0.0/tests/test_rcan_key_rotation.py +268 -0
- opencastor-3.0.0/tests/test_rcan_mdns.py +237 -0
- opencastor-3.0.0/tests/test_rcan_message.py +407 -0
- opencastor-3.0.0/tests/test_rcan_mqtt_transport.py +61 -0
- opencastor-3.0.0/tests/test_rcan_rate_limiting.py +222 -0
- opencastor-3.0.0/tests/test_rcan_rbac.py +261 -0
- opencastor-3.0.0/tests/test_rcan_registration.py +191 -0
- opencastor-3.0.0/tests/test_rcan_registry.py +554 -0
- opencastor-3.0.0/tests/test_rcan_router.py +323 -0
- opencastor-3.0.0/tests/test_rcan_ruri.py +163 -0
- opencastor-3.0.0/tests/test_rcan_sdk_bridge.py +254 -0
- opencastor-3.0.0/tests/test_rcan_security.py +581 -0
- opencastor-3.0.0/tests/test_rcan_skills.py +226 -0
- opencastor-3.0.0/tests/test_rcan_telemetry_fields.py +24 -0
- opencastor-3.0.0/tests/test_rcan_version_alignment.py +31 -0
- opencastor-3.0.0/tests/test_recommend.py +180 -0
- opencastor-3.0.0/tests/test_registry.py +383 -0
- opencastor-3.0.0/tests/test_repeat_until.py +228 -0
- opencastor-3.0.0/tests/test_replay_cache.py +352 -0
- opencastor-3.0.0/tests/test_response_cache.py +317 -0
- opencastor-3.0.0/tests/test_robot_context.py +103 -0
- opencastor-3.0.0/tests/test_robot_handshake.py +89 -0
- opencastor-3.0.0/tests/test_rollback.py +73 -0
- opencastor-3.0.0/tests/test_rrf_cmd_v3.py +75 -0
- opencastor-3.0.0/tests/test_run_type.py +56 -0
- opencastor-3.0.0/tests/test_runtime_stats.py +265 -0
- opencastor-3.0.0/tests/test_runtime_wiring.py +114 -0
- opencastor-3.0.0/tests/test_safety_benchmark.py +322 -0
- opencastor-3.0.0/tests/test_safety_invariants.py +766 -0
- opencastor-3.0.0/tests/test_safety_protocol.py +617 -0
- opencastor-3.0.0/tests/test_safety_state.py +217 -0
- opencastor-3.0.0/tests/test_safety_telemetry.py +172 -0
- opencastor-3.0.0/tests/test_secret_provider.py +495 -0
- opencastor-3.0.0/tests/test_security_posture.py +62 -0
- opencastor-3.0.0/tests/test_sensor_monitor.py +295 -0
- opencastor-3.0.0/tests/test_servo_calibration.py +221 -0
- opencastor-3.0.0/tests/test_session_expiry_stop.py +90 -0
- opencastor-3.0.0/tests/test_setup_catalog.py +49 -0
- opencastor-3.0.0/tests/test_setup_docs_sync.py +43 -0
- opencastor-3.0.0/tests/test_setup_service_v3.py +116 -0
- opencastor-3.0.0/tests/test_signal_channel.py +209 -0
- opencastor-3.0.0/tests/test_sim_bridge.py +307 -0
- opencastor-3.0.0/tests/test_skills.py +230 -0
- opencastor-3.0.0/tests/test_skills_api.py +512 -0
- opencastor-3.0.0/tests/test_slam.py +195 -0
- opencastor-3.0.0/tests/test_snapshot.py +165 -0
- opencastor-3.0.0/tests/test_so_arm101.py +483 -0
- opencastor-3.0.0/tests/test_span_tracer.py +136 -0
- opencastor-3.0.0/tests/test_sprint.py +307 -0
- opencastor-3.0.0/tests/test_stem_hardware_support.py +163 -0
- opencastor-3.0.0/tests/test_stepper_driver.py +118 -0
- opencastor-3.0.0/tests/test_streaming_inference.py +215 -0
- opencastor-3.0.0/tests/test_swarm_memory.py +237 -0
- opencastor-3.0.0/tests/test_swarm_worker.py +224 -0
- opencastor-3.0.0/tests/test_system_info.py +133 -0
- opencastor-3.0.0/tests/test_taalas_provider.py +178 -0
- opencastor-3.0.0/tests/test_task_router.py +63 -0
- opencastor-3.0.0/tests/test_teams_channel.py +144 -0
- opencastor-3.0.0/tests/test_telemetry.py +485 -0
- opencastor-3.0.0/tests/test_thermal_driver.py +204 -0
- opencastor-3.0.0/tests/test_thought_log.py +194 -0
- opencastor-3.0.0/tests/test_thread_context.py +78 -0
- opencastor-3.0.0/tests/test_threshold_race.py +243 -0
- opencastor-3.0.0/tests/test_tiered_brain.py +280 -0
- opencastor-3.0.0/tests/test_tiered_brain_task_routing.py +166 -0
- opencastor-3.0.0/tests/test_timelapse.py +188 -0
- opencastor-3.0.0/tests/test_tools.py +169 -0
- opencastor-3.0.0/tests/test_trajectory.py +103 -0
- opencastor-3.0.0/tests/test_tts_local.py +222 -0
- opencastor-3.0.0/tests/test_turboquant.py +194 -0
- opencastor-3.0.0/tests/test_update.py +268 -0
- opencastor-3.0.0/tests/test_update_check.py +536 -0
- opencastor-3.0.0/tests/test_updater.py +81 -0
- opencastor-3.0.0/tests/test_usage.py +209 -0
- opencastor-3.0.0/tests/test_v15_bridge.py +491 -0
- opencastor-3.0.0/tests/test_v16_bridge.py +377 -0
- opencastor-3.0.0/tests/test_vertex_provider.py +412 -0
- opencastor-3.0.0/tests/test_vla_provider.py +309 -0
- opencastor-3.0.0/tests/test_voice.py +178 -0
- opencastor-3.0.0/tests/test_voice_confidence.py +277 -0
- opencastor-3.0.0/tests/test_voice_loop.py +112 -0
- opencastor-3.0.0/tests/test_voice_stt.py +293 -0
- opencastor-3.0.0/tests/test_voice_usb_mic.py +196 -0
- opencastor-3.0.0/tests/test_wake_word.py +208 -0
- opencastor-3.0.0/tests/test_wake_word_audio.py +230 -0
- opencastor-3.0.0/tests/test_wakeword_detection.py +136 -0
- opencastor-3.0.0/tests/test_watchdog.py +180 -0
- opencastor-3.0.0/tests/test_watermark.py +103 -0
- opencastor-3.0.0/tests/test_webhooks.py +206 -0
- opencastor-3.0.0/tests/test_webrtc_audio.py +220 -0
- opencastor-3.0.0/tests/test_websocket_telemetry.py +225 -0
- opencastor-3.0.0/tests/test_whatsapp_mission_trigger.py +165 -0
- opencastor-3.0.0/tests/test_whatsapp_neonize.py +468 -0
- opencastor-3.0.0/tests/test_whisper_cpp.py +226 -0
- opencastor-3.0.0/tests/test_wizard_models.py +516 -0
- opencastor-3.0.0/tests/test_work_authorization.py +418 -0
- opencastor-3.0.0/tests/test_working_memory.py +105 -0
- opencastor-3.0.0/tests/test_workspace.py +188 -0
- opencastor-3.0.0/tests/test_world_model.py +61 -0
opencastor-3.0.0/LICENSE
ADDED
|
@@ -0,0 +1,189 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work.
|
|
38
|
+
|
|
39
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
40
|
+
form, that is based on (or derived from) the Work and for which the
|
|
41
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
42
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
43
|
+
of this License, Derivative Works shall not include works that remain
|
|
44
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
45
|
+
the Work and Derivative Works thereof.
|
|
46
|
+
|
|
47
|
+
"Contribution" shall mean any work of authorship, including
|
|
48
|
+
the original version of the Work and any modifications or additions
|
|
49
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
50
|
+
submitted to the Licensor for inclusion in the Work by the copyright owner
|
|
51
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
52
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
53
|
+
means any form of electronic, verbal, or written communication sent
|
|
54
|
+
to the Licensor or its representatives, including but not limited to
|
|
55
|
+
communication on electronic mailing lists, source code control systems,
|
|
56
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
57
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
58
|
+
excluding communication that is conspicuously marked or otherwise
|
|
59
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
60
|
+
|
|
61
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
62
|
+
on behalf of whom a Contribution has been received by the Licensor and
|
|
63
|
+
subsequently incorporated within the Work.
|
|
64
|
+
|
|
65
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
66
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
67
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
68
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
69
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
70
|
+
Work and such Derivative Works in Source or Object form.
|
|
71
|
+
|
|
72
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
73
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
74
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
75
|
+
(except as stated in this section) patent license to make, have made,
|
|
76
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
77
|
+
where such license applies only to those patent claims licensable
|
|
78
|
+
by such Contributor that are necessarily infringed by their
|
|
79
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
80
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
81
|
+
institute patent litigation against any entity (including a
|
|
82
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
83
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
84
|
+
or contributory patent infringement, then any patent licenses
|
|
85
|
+
granted to You under this License for that Work shall terminate
|
|
86
|
+
as of the date such litigation is filed.
|
|
87
|
+
|
|
88
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
89
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
90
|
+
modifications, and in Source or Object form, provided that You
|
|
91
|
+
meet the following conditions:
|
|
92
|
+
|
|
93
|
+
(a) You must give any other recipients of the Work or
|
|
94
|
+
Derivative Works a copy of this License; and
|
|
95
|
+
|
|
96
|
+
(b) You must cause any modified files to carry prominent notices
|
|
97
|
+
stating that You changed the files; and
|
|
98
|
+
|
|
99
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
100
|
+
that You distribute, all copyright, patent, trademark, and
|
|
101
|
+
attribution notices from the Source form of the Work,
|
|
102
|
+
excluding those notices that do not pertain to any part of
|
|
103
|
+
the Derivative Works; and
|
|
104
|
+
|
|
105
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
106
|
+
distribution, then any Derivative Works that You distribute must
|
|
107
|
+
include a readable copy of the attribution notices contained
|
|
108
|
+
within such NOTICE file, excluding any notices that do not
|
|
109
|
+
pertain to any part of the Derivative Works, in at least one
|
|
110
|
+
of the following places: within a NOTICE text file distributed
|
|
111
|
+
as part of the Derivative Works; within the Source form or
|
|
112
|
+
documentation, if provided along with the Derivative Works; or,
|
|
113
|
+
within a display generated by the Derivative Works, if and
|
|
114
|
+
wherever such third-party notices normally appear. The contents
|
|
115
|
+
of the NOTICE file are for informational purposes only and
|
|
116
|
+
do not modify the License. You may add Your own attribution
|
|
117
|
+
notices within Derivative Works that You distribute, alongside
|
|
118
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
119
|
+
that such additional attribution notices cannot be construed
|
|
120
|
+
as modifying the License.
|
|
121
|
+
|
|
122
|
+
You may add Your own copyright statement to Your modifications and
|
|
123
|
+
may provide additional or different license terms and conditions
|
|
124
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
125
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
126
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
127
|
+
the conditions stated in this License.
|
|
128
|
+
|
|
129
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
130
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
131
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
132
|
+
this License, without any additional terms or conditions.
|
|
133
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
134
|
+
the terms of any separate license agreement you may have executed
|
|
135
|
+
with Licensor regarding such Contributions.
|
|
136
|
+
|
|
137
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
138
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
139
|
+
except as required for reasonable and customary use in describing the
|
|
140
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
141
|
+
|
|
142
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
143
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
144
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
145
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
146
|
+
implied, including, without limitation, any warranties or conditions
|
|
147
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
148
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
149
|
+
appropriateness of using or redistributing the Work and assume any
|
|
150
|
+
risks associated with Your exercise of permissions under this License.
|
|
151
|
+
|
|
152
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
153
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
154
|
+
unless required by applicable law (such as deliberate and grossly
|
|
155
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
156
|
+
liable to You for damages, including any direct, indirect, special,
|
|
157
|
+
incidental, or consequential damages of any character arising as a
|
|
158
|
+
result of this License or out of the use or inability to use the
|
|
159
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
160
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
161
|
+
other commercial damages or losses), even if such Contributor
|
|
162
|
+
has been advised of the possibility of such damages.
|
|
163
|
+
|
|
164
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
165
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
166
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
167
|
+
or other liability obligations and/or rights consistent with this
|
|
168
|
+
License. However, in accepting such obligations, You may act only
|
|
169
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
170
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
171
|
+
defend, and hold each Contributor harmless for any liability
|
|
172
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
173
|
+
of your accepting any such warranty or additional liability.
|
|
174
|
+
|
|
175
|
+
END OF TERMS AND CONDITIONS
|
|
176
|
+
|
|
177
|
+
Copyright 2025-2026 Craig Merry
|
|
178
|
+
|
|
179
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
180
|
+
you may not use this file except in compliance with the License.
|
|
181
|
+
You may obtain a copy of the License at
|
|
182
|
+
|
|
183
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
184
|
+
|
|
185
|
+
Unless required by applicable law or agreed to in writing, software
|
|
186
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
187
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
188
|
+
See the License for the specific language governing permissions and
|
|
189
|
+
limitations under the License.
|
|
@@ -0,0 +1,426 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: opencastor
|
|
3
|
+
Version: 3.0.0
|
|
4
|
+
Summary: The Universal Runtime for Embodied AI
|
|
5
|
+
Author-email: OpenCastor Contributors <hello@opencastor.com>
|
|
6
|
+
License-Expression: Apache-2.0
|
|
7
|
+
Project-URL: Homepage, https://opencastor.com
|
|
8
|
+
Project-URL: Repository, https://github.com/craigm26/OpenCastor
|
|
9
|
+
Project-URL: Documentation, https://docs.opencastor.com
|
|
10
|
+
Project-URL: Bug Tracker, https://github.com/craigm26/OpenCastor/issues
|
|
11
|
+
Project-URL: Changelog, https://github.com/craigm26/OpenCastor/blob/main/CHANGELOG.md
|
|
12
|
+
Project-URL: Discord, https://discord.gg/jMjA8B26Bq
|
|
13
|
+
Keywords: robotics,ai,llm,embodied-ai,rcan
|
|
14
|
+
Classifier: Development Status :: 3 - Alpha
|
|
15
|
+
Classifier: Intended Audience :: Developers
|
|
16
|
+
Classifier: Intended Audience :: Science/Research
|
|
17
|
+
Classifier: Operating System :: OS Independent
|
|
18
|
+
Classifier: Operating System :: POSIX :: Linux
|
|
19
|
+
Classifier: Operating System :: MacOS
|
|
20
|
+
Classifier: Operating System :: Microsoft :: Windows
|
|
21
|
+
Classifier: Environment :: Console
|
|
22
|
+
Classifier: Programming Language :: Python :: 3
|
|
23
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
24
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
25
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
26
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
27
|
+
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
|
|
28
|
+
Classifier: Topic :: System :: Hardware
|
|
29
|
+
Requires-Python: <3.14,>=3.10
|
|
30
|
+
Description-Content-Type: text/markdown
|
|
31
|
+
License-File: LICENSE
|
|
32
|
+
Requires-Dist: anthropic>=0.40.0
|
|
33
|
+
Requires-Dist: openai>=1.0.0
|
|
34
|
+
Requires-Dist: pyserial>=3.5
|
|
35
|
+
Requires-Dist: opencv-python-headless>=4.9.0
|
|
36
|
+
Requires-Dist: gTTS>=2.4.0
|
|
37
|
+
Requires-Dist: pygame>=2.5.0
|
|
38
|
+
Requires-Dist: pyyaml>=6.0
|
|
39
|
+
Requires-Dist: jsonschema>=4.20.0
|
|
40
|
+
Requires-Dist: requests>=2.31.0
|
|
41
|
+
Requires-Dist: fastapi>=0.109.0
|
|
42
|
+
Requires-Dist: uvicorn[standard]>=0.27.0
|
|
43
|
+
Requires-Dist: python-dotenv>=1.0.0
|
|
44
|
+
Requires-Dist: httpx>=0.26.0
|
|
45
|
+
Requires-Dist: python-multipart>=0.0.7
|
|
46
|
+
Requires-Dist: cryptography>=42.0.0
|
|
47
|
+
Requires-Dist: dilithium-py>=1.0.0
|
|
48
|
+
Requires-Dist: huggingface-hub>=0.25.0
|
|
49
|
+
Requires-Dist: streamlit>=1.30.0
|
|
50
|
+
Requires-Dist: SpeechRecognition>=3.10.0
|
|
51
|
+
Requires-Dist: PyJWT>=2.8.0
|
|
52
|
+
Requires-Dist: rich>=13.0.0
|
|
53
|
+
Requires-Dist: argcomplete>=3.0.0
|
|
54
|
+
Requires-Dist: rcan<4,>=3.3
|
|
55
|
+
Provides-Extra: core
|
|
56
|
+
Provides-Extra: rpi
|
|
57
|
+
Requires-Dist: adafruit-circuitpython-pca9685>=3.4.0; sys_platform == "linux" and extra == "rpi"
|
|
58
|
+
Requires-Dist: adafruit-circuitpython-motor>=3.4.0; sys_platform == "linux" and extra == "rpi"
|
|
59
|
+
Requires-Dist: neonize==0.3.16.post0; extra == "rpi"
|
|
60
|
+
Requires-Dist: picamera2>=0.3; sys_platform == "linux" and extra == "rpi"
|
|
61
|
+
Provides-Extra: elevenlabs
|
|
62
|
+
Requires-Dist: elevenlabs>=1.0; extra == "elevenlabs"
|
|
63
|
+
Provides-Extra: sdk
|
|
64
|
+
Requires-Dist: httpx>=0.27; extra == "sdk"
|
|
65
|
+
Provides-Extra: whatsapp
|
|
66
|
+
Requires-Dist: neonize==0.3.16.post0; extra == "whatsapp"
|
|
67
|
+
Provides-Extra: whatsapp-twilio
|
|
68
|
+
Requires-Dist: twilio>=9.0.0; extra == "whatsapp-twilio"
|
|
69
|
+
Provides-Extra: telegram
|
|
70
|
+
Requires-Dist: python-telegram-bot>=21.0; extra == "telegram"
|
|
71
|
+
Provides-Extra: discord
|
|
72
|
+
Requires-Dist: discord.py>=2.3.0; extra == "discord"
|
|
73
|
+
Provides-Extra: slack
|
|
74
|
+
Requires-Dist: slack-bolt>=1.18.0; extra == "slack"
|
|
75
|
+
Provides-Extra: mqtt
|
|
76
|
+
Requires-Dist: paho-mqtt>=2.0.0; extra == "mqtt"
|
|
77
|
+
Provides-Extra: channels
|
|
78
|
+
Requires-Dist: neonize==0.3.16.post0; extra == "channels"
|
|
79
|
+
Requires-Dist: python-telegram-bot>=21.0; extra == "channels"
|
|
80
|
+
Requires-Dist: discord.py>=2.3.0; extra == "channels"
|
|
81
|
+
Requires-Dist: slack-bolt>=1.18.0; extra == "channels"
|
|
82
|
+
Requires-Dist: paho-mqtt>=2.0.0; extra == "channels"
|
|
83
|
+
Provides-Extra: rcan
|
|
84
|
+
Requires-Dist: zeroconf>=0.131.0; extra == "rcan"
|
|
85
|
+
Requires-Dist: rcan<4,>=3.3; extra == "rcan"
|
|
86
|
+
Provides-Extra: dynamixel
|
|
87
|
+
Requires-Dist: dynamixel-sdk>=3.7.31; extra == "dynamixel"
|
|
88
|
+
Provides-Extra: hlabs
|
|
89
|
+
Requires-Dist: python-can>=4.0; extra == "hlabs"
|
|
90
|
+
Provides-Extra: lerobot
|
|
91
|
+
Requires-Dist: feetech-servo-sdk; extra == "lerobot"
|
|
92
|
+
Requires-Dist: dynamixel-sdk>=3.8; extra == "lerobot"
|
|
93
|
+
Requires-Dist: gym-pusht; extra == "lerobot"
|
|
94
|
+
Requires-Dist: gym-aloha; extra == "lerobot"
|
|
95
|
+
Provides-Extra: reachy
|
|
96
|
+
Requires-Dist: reachy2-sdk>=1.0; extra == "reachy"
|
|
97
|
+
Requires-Dist: zeroconf>=0.120; extra == "reachy"
|
|
98
|
+
Provides-Extra: cloud
|
|
99
|
+
Requires-Dist: firebase-admin>=6.0.0; extra == "cloud"
|
|
100
|
+
Requires-Dist: httpx>=0.27; extra == "cloud"
|
|
101
|
+
Provides-Extra: setup
|
|
102
|
+
Requires-Dist: qrcode[pil]>=7.0; extra == "setup"
|
|
103
|
+
Provides-Extra: esp32
|
|
104
|
+
Requires-Dist: websocket-client>=1.7.0; extra == "esp32"
|
|
105
|
+
Provides-Extra: ev3
|
|
106
|
+
Requires-Dist: python-ev3dev2>=2.1.0.post1; sys_platform == "linux" and extra == "ev3"
|
|
107
|
+
Provides-Extra: spike
|
|
108
|
+
Requires-Dist: bleak>=0.22.0; extra == "spike"
|
|
109
|
+
Provides-Extra: stem-hardware
|
|
110
|
+
Requires-Dist: websocket-client>=1.7.0; extra == "stem-hardware"
|
|
111
|
+
Requires-Dist: python-ev3dev2>=2.1.0.post1; sys_platform == "linux" and extra == "stem-hardware"
|
|
112
|
+
Requires-Dist: bleak>=0.22.0; extra == "stem-hardware"
|
|
113
|
+
Provides-Extra: vertex
|
|
114
|
+
Requires-Dist: google-genai>=1.0.0; extra == "vertex"
|
|
115
|
+
Provides-Extra: homeassistant
|
|
116
|
+
Requires-Dist: aiohttp>=3.9.0; extra == "homeassistant"
|
|
117
|
+
Provides-Extra: webrtc
|
|
118
|
+
Requires-Dist: aiortc>=1.6.0; extra == "webrtc"
|
|
119
|
+
Requires-Dist: av>=11.0.0; extra == "webrtc"
|
|
120
|
+
Provides-Extra: ros2
|
|
121
|
+
Provides-Extra: onnx
|
|
122
|
+
Requires-Dist: onnxruntime>=1.17.0; extra == "onnx"
|
|
123
|
+
Provides-Extra: onnx-gpu
|
|
124
|
+
Requires-Dist: onnxruntime-gpu>=1.17.0; extra == "onnx-gpu"
|
|
125
|
+
Provides-Extra: gestures
|
|
126
|
+
Requires-Dist: mediapipe>=0.10.0; extra == "gestures"
|
|
127
|
+
Provides-Extra: apple
|
|
128
|
+
Provides-Extra: simulation
|
|
129
|
+
Provides-Extra: all
|
|
130
|
+
Requires-Dist: python-telegram-bot>=21.0; extra == "all"
|
|
131
|
+
Requires-Dist: discord.py>=2.3.0; extra == "all"
|
|
132
|
+
Requires-Dist: slack-bolt>=1.18.0; extra == "all"
|
|
133
|
+
Requires-Dist: paho-mqtt>=2.0.0; extra == "all"
|
|
134
|
+
Requires-Dist: zeroconf>=0.131.0; extra == "all"
|
|
135
|
+
Requires-Dist: dynamixel-sdk>=3.7.31; extra == "all"
|
|
136
|
+
Requires-Dist: google-genai>=1.0.0; extra == "all"
|
|
137
|
+
Requires-Dist: aiohttp>=3.9.0; extra == "all"
|
|
138
|
+
Requires-Dist: aiortc>=1.6.0; extra == "all"
|
|
139
|
+
Requires-Dist: av>=11.0.0; extra == "all"
|
|
140
|
+
Requires-Dist: onnxruntime>=1.17.0; extra == "all"
|
|
141
|
+
Requires-Dist: mediapipe>=0.10.0; extra == "all"
|
|
142
|
+
Requires-Dist: pytest>=8.0.0; extra == "all"
|
|
143
|
+
Requires-Dist: pytest-asyncio>=0.23.0; extra == "all"
|
|
144
|
+
Requires-Dist: pytest-cov>=4.1.0; extra == "all"
|
|
145
|
+
Requires-Dist: ruff>=0.2.0; extra == "all"
|
|
146
|
+
Requires-Dist: qrcode>=7.4.0; extra == "all"
|
|
147
|
+
Provides-Extra: dev
|
|
148
|
+
Requires-Dist: pytest>=8.0.0; extra == "dev"
|
|
149
|
+
Requires-Dist: pytest-asyncio>=0.23.0; extra == "dev"
|
|
150
|
+
Requires-Dist: pytest-cov>=4.1.0; extra == "dev"
|
|
151
|
+
Requires-Dist: ruff>=0.2.0; extra == "dev"
|
|
152
|
+
Requires-Dist: qrcode>=7.4.0; extra == "dev"
|
|
153
|
+
Requires-Dist: cyclonedx-bom>=4.0; extra == "dev"
|
|
154
|
+
Requires-Dist: respx>=0.21; extra == "dev"
|
|
155
|
+
Dynamic: license-file
|
|
156
|
+
|
|
157
|
+
<p align="center">
|
|
158
|
+
<img src="brand/icon-192.png" alt="OpenCastor" width="200"/>
|
|
159
|
+
</p>
|
|
160
|
+
|
|
161
|
+
<h1 align="center">OpenCastor</h1>
|
|
162
|
+
|
|
163
|
+
<p align="center">
|
|
164
|
+
Open-source robot runtime — connect any AI model to any robot hardware through a single YAML config.
|
|
165
|
+
</p>
|
|
166
|
+
|
|
167
|
+
<p align="center">
|
|
168
|
+
<a href="https://pypi.org/project/opencastor/"><img src="https://img.shields.io/pypi/v/opencastor?color=blue&label=PyPI" alt="PyPI"></a>
|
|
169
|
+
<a href="https://rcan.dev/spec/"><img src="https://img.shields.io/badge/RCAN-v3.0-brightgreen" alt="RCAN v3.0"></a>
|
|
170
|
+
<a href="https://rcan.dev/docs/safety/"><img src="https://img.shields.io/badge/Protocol%2066-94%25-orange" alt="Protocol 66"></a>
|
|
171
|
+
<a href="https://github.com/craigm26/OpenCastor/blob/main/LICENSE"><img src="https://img.shields.io/badge/license-Apache%202.0-green" alt="License"></a>
|
|
172
|
+
<a href="https://github.com/craigm26/OpenCastor/actions"><img src="https://img.shields.io/github/actions/workflow/status/craigm26/OpenCastor/ci.yml?label=CI" alt="CI"></a>
|
|
173
|
+
<a href="https://app.opencastor.com"><img src="https://img.shields.io/badge/Fleet%20UI-app.opencastor.com-orange" alt="Fleet UI"></a>
|
|
174
|
+
<a href="https://docs.opencastor.com"><img src="https://img.shields.io/badge/Docs-docs.opencastor.com-00bcd4" alt="Docs"></a>
|
|
175
|
+
<a href="https://discord.gg/jMjA8B26Bq"><img src="https://img.shields.io/badge/Discord-join-5865F2?logo=discord&logoColor=white" alt="Discord"></a>
|
|
176
|
+
</p>
|
|
177
|
+
|
|
178
|
+
<p align="center">
|
|
179
|
+
<b>94,438 lines of Python · 7,334 tests · Python 3.10–3.13</b>
|
|
180
|
+
</p>
|
|
181
|
+
|
|
182
|
+
---
|
|
183
|
+
|
|
184
|
+
## What is OpenCastor
|
|
185
|
+
|
|
186
|
+
OpenCastor is an open-source runtime for embodied AI. It implements the [RCAN open protocol](https://rcan.dev/spec/) and handles the hard parts: safety gates, multi-provider AI routing, hardware drivers, messaging channels, and fleet management.
|
|
187
|
+
|
|
188
|
+
Point it at any LLM (Gemini, GPT-4.1, Claude, Ollama, and 13 more) and any robot body (Raspberry Pi, Jetson, Arduino, ESP32, LEGO) via a single YAML config. Your robot answers to WhatsApp, Telegram, Discord, Slack, and Home Assistant — and learns from its own experience through the Sisyphus self-improvement loop.
|
|
189
|
+
|
|
190
|
+
> **RCAN ≠ OpenCastor.** [RCAN](https://rcan.dev) is an independent open protocol — like DNS and ICANN, but for robotics. Any robot can implement RCAN without using OpenCastor. OpenCastor is one implementation that helped inform the spec.
|
|
191
|
+
|
|
192
|
+
## Quick Start
|
|
193
|
+
|
|
194
|
+
### 1. Install
|
|
195
|
+
|
|
196
|
+
```bash
|
|
197
|
+
pip install opencastor==2026.4.1.0
|
|
198
|
+
```
|
|
199
|
+
|
|
200
|
+
### 2. Run the setup wizard
|
|
201
|
+
|
|
202
|
+
```bash
|
|
203
|
+
castor setup
|
|
204
|
+
```
|
|
205
|
+
|
|
206
|
+
The wizard will:
|
|
207
|
+
- Name your robot and assign an RRN (Robot Registration Number)
|
|
208
|
+
- Generate a config file at `~/.config/opencastor/<name>.rcan.yaml`
|
|
209
|
+
- Show a QR code to connect to the Fleet UI at [app.opencastor.com](https://app.opencastor.com)
|
|
210
|
+
- Configure your AI brain provider (Gemini, Claude, OpenAI, or local Ollama)
|
|
211
|
+
|
|
212
|
+
### 3. Start your robot
|
|
213
|
+
|
|
214
|
+
```bash
|
|
215
|
+
# Start the AI brain + REST API (port 8000)
|
|
216
|
+
castor gateway --config ~/.config/opencastor/bob.rcan.yaml
|
|
217
|
+
|
|
218
|
+
# Start the cloud bridge (connects robot to Fleet UI — outbound-only)
|
|
219
|
+
castor bridge --config ~/.config/opencastor/bob.rcan.yaml
|
|
220
|
+
```
|
|
221
|
+
|
|
222
|
+
### 4. One-command systemd setup
|
|
223
|
+
|
|
224
|
+
```bash
|
|
225
|
+
castor bridge setup # generates and optionally installs systemd services
|
|
226
|
+
```
|
|
227
|
+
|
|
228
|
+
### Docker
|
|
229
|
+
|
|
230
|
+
```bash
|
|
231
|
+
docker run -it \
|
|
232
|
+
-v ~/.config/opencastor:/config \
|
|
233
|
+
-e OPENCASTOR_CONFIG=/config/bob.rcan.yaml \
|
|
234
|
+
ghcr.io/craigm26/opencastor:2026.4.1.0 \
|
|
235
|
+
castor gateway
|
|
236
|
+
```
|
|
237
|
+
|
|
238
|
+
|
|
239
|
+
<!-- SETUP_CATALOG:BEGIN -->
|
|
240
|
+
| Profile | Description | Requires |
|
|
241
|
+
|---|---|---|
|
|
242
|
+
| `apple_native` | Mac with Apple Silicon (M1–M4) — runs models on-device via Apple Foundation Models. No API key needed. | macOS, Apple Silicon |
|
|
243
|
+
| `mlx_local_vision` | Mac with Apple Silicon — open-source models via MLX (Llama, Mistral, Qwen). More model choice than apple_native. | macOS, Apple Silicon |
|
|
244
|
+
| `ollama_universal_local` | Any machine — runs local models via Ollama. Works on Mac, Linux, and Windows. | [Ollama](https://ollama.com) installed |
|
|
245
|
+
|
|
246
|
+
**On Apple Silicon, `apple_native` is the default.** The wizard will ask which Apple model profile fits your use case:
|
|
247
|
+
|
|
248
|
+
| Apple Profile | Use case | Guardrails |
|
|
249
|
+
|---|---|---|
|
|
250
|
+
| `apple-balanced` ⭐ | General chat and robot commands — best starting point | Default |
|
|
251
|
+
| `apple-creative` | Creative tasks, less restrictive output | Permissive Content Transformations |
|
|
252
|
+
| `apple-tagging` | Classifying or labeling objects/scenes | Default |
|
|
253
|
+
<!-- SETUP_CATALOG:END -->
|
|
254
|
+
|
|
255
|
+
## Features
|
|
256
|
+
|
|
257
|
+
- **Protocol 66 safety** — ESTOP never blocked, local safety always wins, confidence gates run on-device
|
|
258
|
+
- **RCAN 3.0** — hybrid signing (ML-DSA-65 + Ed25519), mandatory LoA, canonical JSON wire format, §22-26 compliance builders, BLE/LoRa/MQTT carriers
|
|
259
|
+
- **Multi-provider AI** — Gemini, Claude, OpenAI, Ollama, MLX (Apple Silicon), Groq, DeepSeek, and 7 more; hot-swap via YAML
|
|
260
|
+
- **Fleet UI** — real-time fleet dashboard at [app.opencastor.com](https://app.opencastor.com); no port forwarding needed
|
|
261
|
+
- **SO-ARM101 arm support** — auto-detected via USB, guided setup for follower/leader/bimanual configurations
|
|
262
|
+
- **18 hardware presets** — Raspberry Pi, Jetson, Arduino, ESP32, LEGO Mindstorms, OAK-D, LeRobot SO-ARM101, and more
|
|
263
|
+
- **Self-improving loop** — Sisyphus PM→Dev→QA→Apply pipeline learns from every episode
|
|
264
|
+
- **Messaging channels** — WhatsApp, Telegram, Discord, Slack, Home Assistant, MQTT
|
|
265
|
+
- **castor setup wizard** — guided onboarding with QR codes; works headless on Pi
|
|
266
|
+
|
|
267
|
+
## Architecture
|
|
268
|
+
|
|
269
|
+
```
|
|
270
|
+
[ app.opencastor.com / Fleet UI ]
|
|
271
|
+
│ Firebase / Firestore
|
|
272
|
+
│
|
|
273
|
+
[ Cloud Functions ] R2RAM enforcement + rate limiting
|
|
274
|
+
│
|
|
275
|
+
[ castor bridge ] outbound-only Firestore connection
|
|
276
|
+
│
|
|
277
|
+
[ castor gateway ] FastAPI REST + messaging channels
|
|
278
|
+
│
|
|
279
|
+
┌──────────────────────┐
|
|
280
|
+
│ Protocol 66 Safety │ ESTOP | confidence gates | bounds
|
|
281
|
+
└──────────────────────┘
|
|
282
|
+
│
|
|
283
|
+
[ Tiered Brain ] Gemini / Claude / GPT / Ollama / …
|
|
284
|
+
│
|
|
285
|
+
[ RCAN Config + Drivers ] .rcan.yaml → hardware abstraction
|
|
286
|
+
│
|
|
287
|
+
[ Robot Hardware ] Pi / Jetson / Arduino / SO-ARM101 / …
|
|
288
|
+
```
|
|
289
|
+
|
|
290
|
+
## RCAN 3.0 Features
|
|
291
|
+
|
|
292
|
+
- **Replay prevention** — hybrid signatures (ML-DSA-65 + Ed25519) over canonical JSON bodies
|
|
293
|
+
- **Level of Assurance (LoA)** — mandatory under 3.0+; gates control-plane operations behind HiTL authorization
|
|
294
|
+
- **Canonical JSON wire format** — `rcan.canonical_json(body)` produces byte-identical serialization across Python and TypeScript SDKs
|
|
295
|
+
- **§22-26 compliance artifacts** — emit §23 safety benchmarks, §24 IFU, §25 post-market incident reports, §26 EU register entries via `rcan.build_*` builders
|
|
296
|
+
- **Federation + constrained transport** — BLE / LoRa / MQTT carriers; RRN-based identity resolution via rcan.dev
|
|
297
|
+
- **Post-quantum ready** — NIST FIPS 204 ML-DSA-65 is the primary signing scheme (Q-Day 2029 is NOW)
|
|
298
|
+
|
|
299
|
+
## castor CLI Reference
|
|
300
|
+
|
|
301
|
+
| Command | Description |
|
|
302
|
+
|---|---|
|
|
303
|
+
| `castor setup` | Interactive onboarding wizard — config, RRN, Fleet UI QR code |
|
|
304
|
+
| `castor gateway` | Start AI brain + REST API + messaging channels |
|
|
305
|
+
| `castor bridge` | Start cloud bridge (Fleet UI connection) |
|
|
306
|
+
| `castor scan` | Auto-detect connected hardware (USB, I2C, V4L2) |
|
|
307
|
+
| `castor doctor` | System health check — providers, channels, hardware |
|
|
308
|
+
| `castor fix` | Auto-fix common configuration issues |
|
|
309
|
+
| `castor status` | Provider and channel readiness summary |
|
|
310
|
+
| `castor improve` | Run Sisyphus self-improvement on recent episodes |
|
|
311
|
+
| `castor audit --verify` | Verify audit chain integrity |
|
|
312
|
+
| `castor approvals` | Review and approve pending high-risk commands |
|
|
313
|
+
| `castor deploy` | Push config to a remote robot over SSH |
|
|
314
|
+
| `castor fleet` | Discover and monitor all robots on the local network |
|
|
315
|
+
| `castor upgrade` | Pull latest version + pip install + service restart |
|
|
316
|
+
|
|
317
|
+
Full reference: [docs.opencastor.com/runtime/cli](https://docs.opencastor.com/runtime/cli/)
|
|
318
|
+
|
|
319
|
+
## Configuration
|
|
320
|
+
|
|
321
|
+
Minimal `bob.rcan.yaml`:
|
|
322
|
+
|
|
323
|
+
```yaml
|
|
324
|
+
rcan_version: "3.0"
|
|
325
|
+
metadata:
|
|
326
|
+
robot_name: bob
|
|
327
|
+
agent:
|
|
328
|
+
provider: google
|
|
329
|
+
model: gemini-2.5-flash
|
|
330
|
+
drivers:
|
|
331
|
+
- id: wheels
|
|
332
|
+
protocol: pca9685
|
|
333
|
+
channels: {}
|
|
334
|
+
```
|
|
335
|
+
|
|
336
|
+
That's it. `castor gateway --config bob.rcan.yaml` starts the REST API, messaging channels, and the self-improving loop.
|
|
337
|
+
|
|
338
|
+
Swap the AI brain with one line:
|
|
339
|
+
|
|
340
|
+
```yaml
|
|
341
|
+
agent:
|
|
342
|
+
provider: anthropic
|
|
343
|
+
model: claude-sonnet-4-6
|
|
344
|
+
```
|
|
345
|
+
|
|
346
|
+
## Protocol 66
|
|
347
|
+
|
|
348
|
+
Protocol 66 is RCAN's mandatory safety layer. Current OpenCastor conformance: **94%**.
|
|
349
|
+
|
|
350
|
+
Key invariants:
|
|
351
|
+
- ESTOP delivered at QoS 2 (EXACTLY_ONCE) — never blocked by backpressure
|
|
352
|
+
- Local safety always wins — cloud commands pass through the same confidence gates as local commands
|
|
353
|
+
- Audit chain required for all flagged commands
|
|
354
|
+
- `GuardianAgent` has veto authority over unsafe actions
|
|
355
|
+
|
|
356
|
+
P66 manifest: [`sbom/`](sbom/) · Full spec: [rcan.dev/docs/safety/](https://rcan.dev/docs/safety/)
|
|
357
|
+
|
|
358
|
+
## Fleet UI
|
|
359
|
+
|
|
360
|
+
**[app.opencastor.com](https://app.opencastor.com)** — sign in with Google to see your fleet.
|
|
361
|
+
|
|
362
|
+
- Real-time status cards for all registered robots
|
|
363
|
+
- Robot detail: telemetry, command history, chat-scope instructions
|
|
364
|
+
- ESTOP button on every screen
|
|
365
|
+
- Consent management — approve/deny R2RAM access requests
|
|
366
|
+
- Revocation display — shows if a robot's identity has been revoked
|
|
367
|
+
- LoA display — shows operator Level of Assurance on control commands
|
|
368
|
+
|
|
369
|
+
Robots connect via `castor bridge` (outbound-only Firestore). No open ports on the robot side.
|
|
370
|
+
|
|
371
|
+
## SO-ARM101 Arm Support
|
|
372
|
+
|
|
373
|
+
The LeRobot SO-ARM101 6-DOF serial bus servo arm is auto-detected via USB VID/PID (CH340, `0x1A86/0x7523`).
|
|
374
|
+
|
|
375
|
+
```bash
|
|
376
|
+
pip install opencastor[lerobot]
|
|
377
|
+
castor scan # detects arm + suggests preset
|
|
378
|
+
castor wizard --preset so_arm101 # guided config: follower / leader / bimanual
|
|
379
|
+
castor gateway --config so_arm101.rcan.yaml
|
|
380
|
+
```
|
|
381
|
+
|
|
382
|
+
`castor scan` counts connected Feetech boards and automatically suggests the right preset: single arm (follower or leader), or bimanual pair (ALOHA-style). Koch arms use the same detection path.
|
|
383
|
+
|
|
384
|
+
## Where this fits in the stack
|
|
385
|
+
|
|
386
|
+
OpenCastor is the **reference runtime** — one implementation of the RCAN protocol. Everything else is independent; adopt one, or all seven.
|
|
387
|
+
|
|
388
|
+
| Layer | Piece | What it is |
|
|
389
|
+
|---|---|---|
|
|
390
|
+
| **Declaration** | [ROBOT.md](https://github.com/RobotRegistryFoundation/robot-md) | The file a robot ships at its root. YAML frontmatter + markdown prose. Declares identity, capabilities, safety gates. Spec + Python CLI. |
|
|
391
|
+
| **Agent bridge** | [robot-md-mcp](https://github.com/RobotRegistryFoundation/robot-md-mcp) | MCP server that exposes a `ROBOT.md` to Claude Code, Claude Desktop, Cursor, Zed, Gemini CLI — any MCP-aware agent. |
|
|
392
|
+
| **Wire protocol** | [RCAN](https://rcan.dev/spec/) | How robots, gateways, and planners talk. Signed envelopes, LoA enforcement, PQC crypto. Think HTTP for robots. |
|
|
393
|
+
| **Python SDK** | [rcan-py](https://github.com/continuonai/rcan-py) | `pip install rcan` — `RCANMessage`, `RobotURI`, `ConfidenceGate`, `HiTLGate`, `AuditChain`. |
|
|
394
|
+
| **TypeScript SDK** | [rcan-ts](https://github.com/continuonai/rcan-ts) | `npm install rcan-ts` — same API surface for Node + browser. |
|
|
395
|
+
| **Registry** | [Robot Registry Foundation](https://robotregistryfoundation.org) | Permanent RRN identities. Public resolver at `/r/<rrn>`. Like ICANN for robots. |
|
|
396
|
+
| **Reference runtime** ← *this* | [OpenCastor](https://github.com/craigm26/OpenCastor) | **This repo.** Open-source robot runtime — connects LLM brains to hardware bodies. Implements RCAN, adds safety gates, multi-provider AI routing, 18+ hardware drivers, messaging channels, fleet management. |
|
|
397
|
+
|
|
398
|
+
See also: the [`ROBOT.md` quickstart](docs/robot-md-claude-code.md) — one command puts a Bob-class robot in Claude Code via the MCP bridge.
|
|
399
|
+
|
|
400
|
+
## Ecosystem (versions)
|
|
401
|
+
|
|
402
|
+
| Project | Version |
|
|
403
|
+
|---|---|
|
|
404
|
+
| **OpenCastor** (this) | v2026.4.17.0 |
|
|
405
|
+
| [Fleet UI](https://app.opencastor.com) | live |
|
|
406
|
+
| [RCAN Protocol](https://rcan.dev/spec/) | v3.0 |
|
|
407
|
+
| [rcan-py](https://github.com/continuonai/rcan-py) | v2.0.0 |
|
|
408
|
+
| [rcan-ts](https://github.com/continuonai/rcan-ts) | v2.0.0 |
|
|
409
|
+
| [ROBOT.md](https://github.com/RobotRegistryFoundation/robot-md) | v0.2.0 (schema v1.1) |
|
|
410
|
+
| [robot-md-mcp](https://github.com/RobotRegistryFoundation/robot-md-mcp) | v0.1.3 |
|
|
411
|
+
| [Robot Registry Foundation](https://robotregistryfoundation.org) | v3.0 |
|
|
412
|
+
|
|
413
|
+
## Contributing
|
|
414
|
+
|
|
415
|
+
OpenCastor is Apache 2.0 and community-driven.
|
|
416
|
+
|
|
417
|
+
- **Discord**: [discord.gg/jMjA8B26Bq](https://discord.gg/jMjA8B26Bq)
|
|
418
|
+
- **Issues**: [github.com/craigm26/OpenCastor/issues](https://github.com/craigm26/OpenCastor/issues)
|
|
419
|
+
- **PRs**: See [CONTRIBUTING.md](CONTRIBUTING.md)
|
|
420
|
+
- **Docs**: [`docs/claude/`](docs/claude/) — structure, API reference, env vars
|
|
421
|
+
|
|
422
|
+
## License
|
|
423
|
+
|
|
424
|
+
Apache 2.0 · by [Craig Merry](https://github.com/craigm26)
|
|
425
|
+
|
|
426
|
+
Implements the [RCAN open protocol](https://rcan.dev/spec/). RCAN is an independent open standard — any robot or runtime can implement it.
|