spacepilot 2.8.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.
- spacepilot-2.8.0/LICENSE +202 -0
- spacepilot-2.8.0/PKG-INFO +297 -0
- spacepilot-2.8.0/README.md +243 -0
- spacepilot-2.8.0/pyproject.toml +113 -0
- spacepilot-2.8.0/setup.cfg +4 -0
- spacepilot-2.8.0/spacepilot/__init__.py +3 -0
- spacepilot-2.8.0/spacepilot/api/__init__.py +1 -0
- spacepilot-2.8.0/spacepilot/api/deps.py +50 -0
- spacepilot-2.8.0/spacepilot/api/routes/__init__.py +37 -0
- spacepilot-2.8.0/spacepilot/api/routes/assets.py +255 -0
- spacepilot-2.8.0/spacepilot/api/routes/audio.py +368 -0
- spacepilot-2.8.0/spacepilot/api/routes/billing.py +117 -0
- spacepilot-2.8.0/spacepilot/api/routes/checkpoints.py +52 -0
- spacepilot-2.8.0/spacepilot/api/routes/compute.py +79 -0
- spacepilot-2.8.0/spacepilot/api/routes/engines.py +70 -0
- spacepilot-2.8.0/spacepilot/api/routes/generate.py +622 -0
- spacepilot-2.8.0/spacepilot/api/routes/gpu.py +468 -0
- spacepilot-2.8.0/spacepilot/api/routes/health.py +53 -0
- spacepilot-2.8.0/spacepilot/api/routes/inference.py +597 -0
- spacepilot-2.8.0/spacepilot/api/routes/lora.py +67 -0
- spacepilot-2.8.0/spacepilot/api/routes/measurements.py +46 -0
- spacepilot-2.8.0/spacepilot/api/routes/recipes.py +45 -0
- spacepilot-2.8.0/spacepilot/api/routes/runtimes.py +152 -0
- spacepilot-2.8.0/spacepilot/api/routes/storyboard.py +69 -0
- spacepilot-2.8.0/spacepilot/api/routes/views.py +73 -0
- spacepilot-2.8.0/spacepilot/api/security.py +121 -0
- spacepilot-2.8.0/spacepilot/app.py +144 -0
- spacepilot-2.8.0/spacepilot/cli.py +2276 -0
- spacepilot-2.8.0/spacepilot/core/__init__.py +5 -0
- spacepilot-2.8.0/spacepilot/core/config.py +121 -0
- spacepilot-2.8.0/spacepilot/core/http.py +33 -0
- spacepilot-2.8.0/spacepilot/core/utils.py +76 -0
- spacepilot-2.8.0/spacepilot/daemon/__init__.py +6 -0
- spacepilot-2.8.0/spacepilot/daemon/__main__.py +26 -0
- spacepilot-2.8.0/spacepilot/daemon/api.py +291 -0
- spacepilot-2.8.0/spacepilot/daemon/fleet.py +506 -0
- spacepilot-2.8.0/spacepilot/daemon/identity.py +475 -0
- spacepilot-2.8.0/spacepilot/daemon/index.py +344 -0
- spacepilot-2.8.0/spacepilot/daemon/log.py +697 -0
- spacepilot-2.8.0/spacepilot/daemon/orders.py +761 -0
- spacepilot-2.8.0/spacepilot/daemon/peer_auth.py +338 -0
- spacepilot-2.8.0/spacepilot/daemon/picture.py +91 -0
- spacepilot-2.8.0/spacepilot/daemon/runtime.py +404 -0
- spacepilot-2.8.0/spacepilot/daemon/server.py +479 -0
- spacepilot-2.8.0/spacepilot/daemon/service.py +302 -0
- spacepilot-2.8.0/spacepilot/daemon/tailscale.py +164 -0
- spacepilot-2.8.0/spacepilot/device_probe.py +806 -0
- spacepilot-2.8.0/spacepilot/drivers/__init__.py +12 -0
- spacepilot-2.8.0/spacepilot/drivers/base.py +111 -0
- spacepilot-2.8.0/spacepilot/drivers/gguf_driver.py +235 -0
- spacepilot-2.8.0/spacepilot/drivers/kokoro_driver.py +340 -0
- spacepilot-2.8.0/spacepilot/drivers/kokoro_runner.py +105 -0
- spacepilot-2.8.0/spacepilot/drivers/local_voice_engine.py +115 -0
- spacepilot-2.8.0/spacepilot/drivers/mflux_driver.py +287 -0
- spacepilot-2.8.0/spacepilot/drivers/mlx_embed_driver.py +137 -0
- spacepilot-2.8.0/spacepilot/drivers/mlx_embed_runner.py +91 -0
- spacepilot-2.8.0/spacepilot/drivers/mlx_lm_driver.py +255 -0
- spacepilot-2.8.0/spacepilot/drivers/mlx_lm_runner.py +96 -0
- spacepilot-2.8.0/spacepilot/drivers/whisper_cpp_driver.py +195 -0
- spacepilot-2.8.0/spacepilot/engines/__init__.py +29 -0
- spacepilot-2.8.0/spacepilot/engines/base.py +156 -0
- spacepilot-2.8.0/spacepilot/engines/hunyuan_engine.py +162 -0
- spacepilot-2.8.0/spacepilot/engines/ltx_engine.py +160 -0
- spacepilot-2.8.0/spacepilot/engines/registry.py +102 -0
- spacepilot-2.8.0/spacepilot/engines/wan_engine.py +180 -0
- spacepilot-2.8.0/spacepilot/generate_music_templates.py +123 -0
- spacepilot-2.8.0/spacepilot/local_workers.py +287 -0
- spacepilot-2.8.0/spacepilot/ltx_worker.py +392 -0
- spacepilot-2.8.0/spacepilot/mcp_server.py +397 -0
- spacepilot-2.8.0/spacepilot/measurements.py +615 -0
- spacepilot-2.8.0/spacepilot/model_recommender.py +239 -0
- spacepilot-2.8.0/spacepilot/model_registry.py +562 -0
- spacepilot-2.8.0/spacepilot/paths.py +509 -0
- spacepilot-2.8.0/spacepilot/registry/README.md +105 -0
- spacepilot-2.8.0/spacepilot/registry/measurements/apple-m1-max-32gb/flux2-klein-4b-4bit/20260823T081009Z-mflux-int4-27ab38d3.yaml +22 -0
- spacepilot-2.8.0/spacepilot/registry/measurements/apple-m1-max-32gb/flux2-klein-4b-4bit/20260823T081009Z-mflux-int4-ec4e3c4c.yaml +23 -0
- spacepilot-2.8.0/spacepilot/registry/measurements/apple-m1-max-32gb/flux2-klein-4b-4bit/20260823T094901Z-mflux-int4-0650465f.yaml +20 -0
- spacepilot-2.8.0/spacepilot/registry/measurements/apple-m1-max-32gb/flux2-klein-4b-4bit/20260823T094901Z-mflux-int4-d37072c3.yaml +19 -0
- spacepilot-2.8.0/spacepilot/registry/measurements/apple-m1-max-32gb/kokoro-82m/20260823T141545Z-kokoro-onnx-fp32-c83a0b85.yaml +24 -0
- spacepilot-2.8.0/spacepilot/registry/measurements/apple-m1-max-32gb/kokoro-82m-onnx/20260825T192113Z-kokoro-onnx-fp32-06cca368.yaml +19 -0
- spacepilot-2.8.0/spacepilot/registry/measurements/apple-m1-max-32gb/kokoro-82m-onnx/20260825T194015Z-kokoro-onnx-fp32-03add528.yaml +19 -0
- spacepilot-2.8.0/spacepilot/registry/measurements/apple-m1-max-32gb/kokoro-82m-onnx/20260825T194021Z-kokoro-onnx-fp32-42a5b069.yaml +19 -0
- spacepilot-2.8.0/spacepilot/registry/measurements/apple-m1-max-32gb/minicpm5-2b-bf16/20260908T024913Z-mlx-bf16.yaml +14 -0
- spacepilot-2.8.0/spacepilot/registry/measurements/apple-m1-max-32gb/minicpm5-2b-mlx-4bit/20260908T024832Z-mlx-int4.yaml +14 -0
- spacepilot-2.8.0/spacepilot/registry/measurements/apple-m1-max-32gb/whisper-small-en/20260825T192238Z-whisper-cpp-f16-0c5ef2c1.yaml +17 -0
- spacepilot-2.8.0/spacepilot/registry/measurements/intel-r-core-tm-i5-6200u-cpu-2-30ghz-15gb/kokoro-82m/20260823T141135Z-kokoro-onnx-fp32-a97d23e8.yaml +24 -0
- spacepilot-2.8.0/spacepilot/registry/measurements/intel-r-core-tm-i5-8210y-cpu-1-60ghz-8gb/kokoro-82m/20260823T141410Z-kokoro-onnx-fp32-0f98f04b.yaml +24 -0
- spacepilot-2.8.0/spacepilot/registry/measurements/intel-r-core-tm-i5-8210y-cpu-1-60ghz-8gb/kokoro-82m/20260823T141519Z-kokoro-onnx-int8-a4e696b4.yaml +24 -0
- spacepilot-2.8.0/spacepilot/registry/models/auk.yaml +53 -0
- spacepilot-2.8.0/spacepilot/registry/models/aurasr.yaml +32 -0
- spacepilot-2.8.0/spacepilot/registry/models/bitnet-b1-58-2b4t.yaml +114 -0
- spacepilot-2.8.0/spacepilot/registry/models/boogu.yaml +38 -0
- spacepilot-2.8.0/spacepilot/registry/models/deepseek-r1-distill-qwen.yaml +30 -0
- spacepilot-2.8.0/spacepilot/registry/models/deepseek-v4-flash.yaml +58 -0
- spacepilot-2.8.0/spacepilot/registry/models/desert-ant-align.yaml +56 -0
- spacepilot-2.8.0/spacepilot/registry/models/desert-ant-clear.yaml +56 -0
- spacepilot-2.8.0/spacepilot/registry/models/desert-ant-clips.yaml +56 -0
- spacepilot-2.8.0/spacepilot/registry/models/desert-ant-ear.yaml +56 -0
- spacepilot-2.8.0/spacepilot/registry/models/desert-ant-emo.yaml +56 -0
- spacepilot-2.8.0/spacepilot/registry/models/desert-ant-gist.yaml +56 -0
- spacepilot-2.8.0/spacepilot/registry/models/desert-ant-redact.yaml +56 -0
- spacepilot-2.8.0/spacepilot/registry/models/desert-ant-shapes.yaml +56 -0
- spacepilot-2.8.0/spacepilot/registry/models/desert-ant-title.yaml +56 -0
- spacepilot-2.8.0/spacepilot/registry/models/desert-ant-tongue.yaml +56 -0
- spacepilot-2.8.0/spacepilot/registry/models/desert-ant-uhm.yaml +56 -0
- spacepilot-2.8.0/spacepilot/registry/models/desert-ant-voz.yaml +56 -0
- spacepilot-2.8.0/spacepilot/registry/models/distil-whisper.yaml +50 -0
- spacepilot-2.8.0/spacepilot/registry/models/edge0-35b-a3b.yaml +66 -0
- spacepilot-2.8.0/spacepilot/registry/models/edge0-8b-a1b.yaml +67 -0
- spacepilot-2.8.0/spacepilot/registry/models/ernie-image.yaml +56 -0
- spacepilot-2.8.0/spacepilot/registry/models/f5-tts.yaml +30 -0
- spacepilot-2.8.0/spacepilot/registry/models/fibo.yaml +103 -0
- spacepilot-2.8.0/spacepilot/registry/models/flashvsr.yaml +32 -0
- spacepilot-2.8.0/spacepilot/registry/models/flux.yaml +157 -0
- spacepilot-2.8.0/spacepilot/registry/models/flux2-klein.yaml +230 -0
- spacepilot-2.8.0/spacepilot/registry/models/gemma4-31b.yaml +46 -0
- spacepilot-2.8.0/spacepilot/registry/models/hunyuan-video.yaml +36 -0
- spacepilot-2.8.0/spacepilot/registry/models/ideogram.yaml +41 -0
- spacepilot-2.8.0/spacepilot/registry/models/kokoro.yaml +58 -0
- spacepilot-2.8.0/spacepilot/registry/models/lens.yaml +45 -0
- spacepilot-2.8.0/spacepilot/registry/models/ltx-video.yaml +83 -0
- spacepilot-2.8.0/spacepilot/registry/models/minicpm5-2b.yaml +64 -0
- spacepilot-2.8.0/spacepilot/registry/models/minimax-music.yaml +30 -0
- spacepilot-2.8.0/spacepilot/registry/models/moonshine.yaml +53 -0
- spacepilot-2.8.0/spacepilot/registry/models/muse-glimmer-coreai.yaml +57 -0
- spacepilot-2.8.0/spacepilot/registry/models/nemotron-3.yaml +54 -0
- spacepilot-2.8.0/spacepilot/registry/models/qwen-image.yaml +57 -0
- spacepilot-2.8.0/spacepilot/registry/models/qwen1-5-moe.yaml +46 -0
- spacepilot-2.8.0/spacepilot/registry/models/qwen2-5-vl.yaml +30 -0
- spacepilot-2.8.0/spacepilot/registry/models/qwen3-5-35b-a3b-base.yaml +56 -0
- spacepilot-2.8.0/spacepilot/registry/models/qwen3-6-27b.yaml +47 -0
- spacepilot-2.8.0/spacepilot/registry/models/qwen3-8-splash.yaml +37 -0
- spacepilot-2.8.0/spacepilot/registry/models/qwen3-8.yaml +43 -0
- spacepilot-2.8.0/spacepilot/registry/models/qwen3-embedding.yaml +51 -0
- spacepilot-2.8.0/spacepilot/registry/models/real-esrgan.yaml +32 -0
- spacepilot-2.8.0/spacepilot/registry/models/sana.yaml +30 -0
- spacepilot-2.8.0/spacepilot/registry/models/seedvr2.yaml +69 -0
- spacepilot-2.8.0/spacepilot/registry/models/sensevoice.yaml +43 -0
- spacepilot-2.8.0/spacepilot/registry/models/stable-audio.yaml +30 -0
- spacepilot-2.8.0/spacepilot/registry/models/stable-diffusion-3-5.yaml +46 -0
- spacepilot-2.8.0/spacepilot/registry/models/supir.yaml +32 -0
- spacepilot-2.8.0/spacepilot/registry/models/ternary-bonsai-8b.yaml +149 -0
- spacepilot-2.8.0/spacepilot/registry/models/wan-2-1.yaml +62 -0
- spacepilot-2.8.0/spacepilot/registry/models/wan-2-2.yaml +44 -0
- spacepilot-2.8.0/spacepilot/registry/models/whisper.yaml +168 -0
- spacepilot-2.8.0/spacepilot/registry/models/z-image.yaml +79 -0
- spacepilot-2.8.0/spacepilot/registry/runtimes/bitnet-cpp.yaml +78 -0
- spacepilot-2.8.0/spacepilot/registry/runtimes/desert-ant.yaml +79 -0
- spacepilot-2.8.0/spacepilot/registry/runtimes/diffusers.yaml +31 -0
- spacepilot-2.8.0/spacepilot/registry/runtimes/edge0.yaml +72 -0
- spacepilot-2.8.0/spacepilot/registry/runtimes/kokoro-onnx.yaml +27 -0
- spacepilot-2.8.0/spacepilot/registry/runtimes/llama-cpp-prism.yaml +54 -0
- spacepilot-2.8.0/spacepilot/registry/runtimes/llama-cpp.yaml +26 -0
- spacepilot-2.8.0/spacepilot/registry/runtimes/mflux.yaml +42 -0
- spacepilot-2.8.0/spacepilot/registry/runtimes/mlx-audio.yaml +25 -0
- spacepilot-2.8.0/spacepilot/registry/runtimes/mlx-lm.yaml +33 -0
- spacepilot-2.8.0/spacepilot/registry/runtimes/mlx-video.yaml +29 -0
- spacepilot-2.8.0/spacepilot/registry/runtimes/silero-vad.yaml +32 -0
- spacepilot-2.8.0/spacepilot/registry/runtimes/splash.yaml +28 -0
- spacepilot-2.8.0/spacepilot/registry/runtimes/stable-audio-tools.yaml +26 -0
- spacepilot-2.8.0/spacepilot/registry/runtimes/whisper-cpp.yaml +39 -0
- spacepilot-2.8.0/spacepilot/registry/silicon/ascend-950pr.yaml +31 -0
- spacepilot-2.8.0/spacepilot/registry/silicon/crescent-island.yaml +25 -0
- spacepilot-2.8.0/spacepilot/registry/silicon/dgx-spark.yaml +44 -0
- spacepilot-2.8.0/spacepilot/registry/silicon/hbf.yaml +33 -0
- spacepilot-2.8.0/spacepilot/registry/silicon/hbm4.yaml +26 -0
- spacepilot-2.8.0/spacepilot/registry/silicon/instinct-mi450.yaml +30 -0
- spacepilot-2.8.0/spacepilot/registry/silicon/mac-mini-m4-pro.yaml +31 -0
- spacepilot-2.8.0/spacepilot/registry/silicon/mac-mini-m5-pro.yaml +31 -0
- spacepilot-2.8.0/spacepilot/registry/silicon/mac-mini-m6.yaml +34 -0
- spacepilot-2.8.0/spacepilot/registry/silicon/mac-studio-m3-ultra.yaml +31 -0
- spacepilot-2.8.0/spacepilot/registry/silicon/ryzen-ai-max-395.yaml +38 -0
- spacepilot-2.8.0/spacepilot/registry/silicon/vera-rubin-nvl72.yaml +19 -0
- spacepilot-2.8.0/spacepilot/registry/silicon/vera.yaml +35 -0
- spacepilot-2.8.0/spacepilot/registry/silicon/xiaomi-ai-cube.yaml +44 -0
- spacepilot-2.8.0/spacepilot/registry/sweeps/flux-schnell-4bit.yaml +54 -0
- spacepilot-2.8.0/spacepilot/registry/sweeps/flux2-klein-4b-4bit.yaml +59 -0
- spacepilot-2.8.0/spacepilot/registry/systems/apple-m1-max-32gb.yaml +17 -0
- spacepilot-2.8.0/spacepilot/registry/systems/intel-r-core-tm-i5-6200u-cpu-2-30ghz-15gb.yaml +17 -0
- spacepilot-2.8.0/spacepilot/registry/systems/intel-r-core-tm-i5-8210y-cpu-1-60ghz-8gb.yaml +18 -0
- spacepilot-2.8.0/spacepilot/routes.py +97 -0
- spacepilot-2.8.0/spacepilot/runtimes.py +739 -0
- spacepilot-2.8.0/spacepilot/services/__init__.py +1 -0
- spacepilot-2.8.0/spacepilot/services/anthropic_provider.py +192 -0
- spacepilot-2.8.0/spacepilot/services/audio.py +145 -0
- spacepilot-2.8.0/spacepilot/services/audio_execution.py +429 -0
- spacepilot-2.8.0/spacepilot/services/checkpoint_sync.py +173 -0
- spacepilot-2.8.0/spacepilot/services/compatibility.py +189 -0
- spacepilot-2.8.0/spacepilot/services/corpus.py +150 -0
- spacepilot-2.8.0/spacepilot/services/embedding_execution.py +200 -0
- spacepilot-2.8.0/spacepilot/services/execution.py +309 -0
- spacepilot-2.8.0/spacepilot/services/generation.py +105 -0
- spacepilot-2.8.0/spacepilot/services/gpu_lifecycle.py +105 -0
- spacepilot-2.8.0/spacepilot/services/image_utils.py +202 -0
- spacepilot-2.8.0/spacepilot/services/lora.py +183 -0
- spacepilot-2.8.0/spacepilot/services/model_catalog.py +348 -0
- spacepilot-2.8.0/spacepilot/services/polar_billing.py +128 -0
- spacepilot-2.8.0/spacepilot/services/provenance.py +126 -0
- spacepilot-2.8.0/spacepilot/services/text_execution.py +269 -0
- spacepilot-2.8.0/spacepilot/services/watchdog.py +61 -0
- spacepilot-2.8.0/spacepilot/silicon.py +284 -0
- spacepilot-2.8.0/spacepilot/storyboard_decomposer.py +274 -0
- spacepilot-2.8.0/spacepilot/substrate.py +169 -0
- spacepilot-2.8.0/spacepilot/sweep.py +521 -0
- spacepilot-2.8.0/spacepilot/verdict.py +83 -0
- spacepilot-2.8.0/spacepilot/web_api.py +311 -0
- spacepilot-2.8.0/spacepilot.egg-info/PKG-INFO +297 -0
- spacepilot-2.8.0/spacepilot.egg-info/SOURCES.txt +294 -0
- spacepilot-2.8.0/spacepilot.egg-info/dependency_links.txt +1 -0
- spacepilot-2.8.0/spacepilot.egg-info/entry_points.txt +3 -0
- spacepilot-2.8.0/spacepilot.egg-info/requires.txt +40 -0
- spacepilot-2.8.0/spacepilot.egg-info/top_level.txt +1 -0
- spacepilot-2.8.0/tests/test_anthropic_provider.py +350 -0
- spacepilot-2.8.0/tests/test_audio_api.py +250 -0
- spacepilot-2.8.0/tests/test_bitnet_runtime.py +187 -0
- spacepilot-2.8.0/tests/test_canonical_headers.py +16 -0
- spacepilot-2.8.0/tests/test_checkpoint_sync.py +133 -0
- spacepilot-2.8.0/tests/test_cli_config.py +134 -0
- spacepilot-2.8.0/tests/test_cli_daemon.py +53 -0
- spacepilot-2.8.0/tests/test_cli_doctor.py +201 -0
- spacepilot-2.8.0/tests/test_cli_exit_codes.py +35 -0
- spacepilot-2.8.0/tests/test_cli_fleet.py +94 -0
- spacepilot-2.8.0/tests/test_cli_invocation.py +124 -0
- spacepilot-2.8.0/tests/test_cli_json_output.py +32 -0
- spacepilot-2.8.0/tests/test_cli_lora.py +38 -0
- spacepilot-2.8.0/tests/test_cli_models_provenance.py +99 -0
- spacepilot-2.8.0/tests/test_cli_models_providers.py +79 -0
- spacepilot-2.8.0/tests/test_cli_output.py +62 -0
- spacepilot-2.8.0/tests/test_cli_probe.py +63 -0
- spacepilot-2.8.0/tests/test_cli_recipes.py +39 -0
- spacepilot-2.8.0/tests/test_cli_silicon.py +259 -0
- spacepilot-2.8.0/tests/test_corpus_serving.py +108 -0
- spacepilot-2.8.0/tests/test_daemon_fleet_api.py +170 -0
- spacepilot-2.8.0/tests/test_daemon_identity.py +129 -0
- spacepilot-2.8.0/tests/test_daemon_phase4.py +436 -0
- spacepilot-2.8.0/tests/test_daemon_runtime.py +279 -0
- spacepilot-2.8.0/tests/test_daemon_service.py +179 -0
- spacepilot-2.8.0/tests/test_dependency_declarations.py +207 -0
- spacepilot-2.8.0/tests/test_device_probe_linux.py +434 -0
- spacepilot-2.8.0/tests/test_docs.py +57 -0
- spacepilot-2.8.0/tests/test_engines.py +327 -0
- spacepilot-2.8.0/tests/test_export_registry.py +240 -0
- spacepilot-2.8.0/tests/test_fleet_index.py +66 -0
- spacepilot-2.8.0/tests/test_fleet_liveness.py +110 -0
- spacepilot-2.8.0/tests/test_fleet_watch.py +172 -0
- spacepilot-2.8.0/tests/test_flux_registry.py +112 -0
- spacepilot-2.8.0/tests/test_fly.py +996 -0
- spacepilot-2.8.0/tests/test_fly_gate3.py +220 -0
- spacepilot-2.8.0/tests/test_inference_surface.py +651 -0
- spacepilot-2.8.0/tests/test_install_bitnet_cpp.py +102 -0
- spacepilot-2.8.0/tests/test_local_execution.py +319 -0
- spacepilot-2.8.0/tests/test_local_inference.py +168 -0
- spacepilot-2.8.0/tests/test_local_only.py +124 -0
- spacepilot-2.8.0/tests/test_local_workers.py +392 -0
- spacepilot-2.8.0/tests/test_log_gossip.py +233 -0
- spacepilot-2.8.0/tests/test_lora.py +98 -0
- spacepilot-2.8.0/tests/test_ltx_worker.py +126 -0
- spacepilot-2.8.0/tests/test_mcp_http.py +81 -0
- spacepilot-2.8.0/tests/test_mcp_server.py +69 -0
- spacepilot-2.8.0/tests/test_measurements.py +284 -0
- spacepilot-2.8.0/tests/test_mflux_driver.py +220 -0
- spacepilot-2.8.0/tests/test_mflux_model_catalogue.py +152 -0
- spacepilot-2.8.0/tests/test_model_recipes.py +118 -0
- spacepilot-2.8.0/tests/test_model_resolver.py +120 -0
- spacepilot-2.8.0/tests/test_model_revisions.py +266 -0
- spacepilot-2.8.0/tests/test_muse_glimmer_recipe.py +100 -0
- spacepilot-2.8.0/tests/test_orders.py +262 -0
- spacepilot-2.8.0/tests/test_output_containment.py +75 -0
- spacepilot-2.8.0/tests/test_paths.py +217 -0
- spacepilot-2.8.0/tests/test_patients_registry.py +128 -0
- spacepilot-2.8.0/tests/test_peer_auth.py +237 -0
- spacepilot-2.8.0/tests/test_polar_billing.py +115 -0
- spacepilot-2.8.0/tests/test_power_metrics_schema.py +96 -0
- spacepilot-2.8.0/tests/test_provenance.py +78 -0
- spacepilot-2.8.0/tests/test_provider_rates.py +131 -0
- spacepilot-2.8.0/tests/test_registry.py +149 -0
- spacepilot-2.8.0/tests/test_routes.py +57 -0
- spacepilot-2.8.0/tests/test_run_speech_transcribe.py +542 -0
- spacepilot-2.8.0/tests/test_run_text.py +305 -0
- spacepilot-2.8.0/tests/test_runtimes.py +247 -0
- spacepilot-2.8.0/tests/test_runtimes_isolated_install.py +205 -0
- spacepilot-2.8.0/tests/test_runtimes_registry.py +18 -0
- spacepilot-2.8.0/tests/test_runtimes_script_install.py +152 -0
- spacepilot-2.8.0/tests/test_silicon.py +196 -0
- spacepilot-2.8.0/tests/test_speed_corpus_sync.py +103 -0
- spacepilot-2.8.0/tests/test_storyboard_decomposer.py +66 -0
- spacepilot-2.8.0/tests/test_sweep.py +427 -0
- spacepilot-2.8.0/tests/test_tailscale_discovery.py +107 -0
- spacepilot-2.8.0/tests/test_ternary_patients_registry.py +127 -0
- spacepilot-2.8.0/tests/test_transcription_registry.py +162 -0
- spacepilot-2.8.0/tests/test_unknown_capacity.py +208 -0
- spacepilot-2.8.0/tests/test_url_scheme.py +53 -0
- spacepilot-2.8.0/tests/test_verify_claims.py +507 -0
- spacepilot-2.8.0/tests/test_web_api.py +1342 -0
- spacepilot-2.8.0/tests/test_web_js.py +118 -0
- spacepilot-2.8.0/tests/test_wheel_install.py +287 -0
spacepilot-2.8.0/LICENSE
ADDED
|
@@ -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 2026 MotionVector
|
|
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,297 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: spacepilot
|
|
3
|
+
Version: 2.8.0
|
|
4
|
+
Summary: SpacePilot: High-performance generative cinema workstation and compute platform
|
|
5
|
+
Author-email: MotionVector <dev@motionvector.io>
|
|
6
|
+
License-Expression: Apache-2.0
|
|
7
|
+
Project-URL: Homepage, https://spacepilot.dev
|
|
8
|
+
Project-URL: Source, https://github.com/motionvector-dev/spacepilot
|
|
9
|
+
Keywords: inference,orchestration,gpu,scheduling,local-first,mlx
|
|
10
|
+
Classifier: Development Status :: 3 - Alpha
|
|
11
|
+
Classifier: Intended Audience :: Developers
|
|
12
|
+
Classifier: Programming Language :: Python :: 3
|
|
13
|
+
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
|
|
14
|
+
Requires-Python: >=3.11
|
|
15
|
+
Description-Content-Type: text/markdown
|
|
16
|
+
License-File: LICENSE
|
|
17
|
+
Requires-Dist: fastapi<1.0,>=0.100.0
|
|
18
|
+
Requires-Dist: starlette>=0.37
|
|
19
|
+
Requires-Dist: uvicorn>=0.22.0
|
|
20
|
+
Requires-Dist: python-multipart>=0.0.9
|
|
21
|
+
Requires-Dist: pydantic>=2.0
|
|
22
|
+
Requires-Dist: httpx>=0.24.0
|
|
23
|
+
Requires-Dist: mcp<3,>=2.0
|
|
24
|
+
Requires-Dist: soundfile>=0.12.0
|
|
25
|
+
Requires-Dist: numpy>=1.24.0
|
|
26
|
+
Requires-Dist: Pillow>=10.0
|
|
27
|
+
Requires-Dist: PyYAML>=6.0
|
|
28
|
+
Requires-Dist: packaging>=23.0
|
|
29
|
+
Requires-Dist: huggingface_hub>=0.20
|
|
30
|
+
Requires-Dist: litellm>=1.98.0
|
|
31
|
+
Requires-Dist: psutil>=5.9.0
|
|
32
|
+
Requires-Dist: rich>=13.0
|
|
33
|
+
Requires-Dist: cryptography>=42.0
|
|
34
|
+
Provides-Extra: local-ml
|
|
35
|
+
Requires-Dist: onnxruntime>=1.16.0; extra == "local-ml"
|
|
36
|
+
Requires-Dist: kokoro-onnx>=0.3.0; extra == "local-ml"
|
|
37
|
+
Requires-Dist: faster-whisper>=1.0.0; extra == "local-ml"
|
|
38
|
+
Requires-Dist: torch>=2.1.0; extra == "local-ml"
|
|
39
|
+
Requires-Dist: scipy>=1.11.0; extra == "local-ml"
|
|
40
|
+
Provides-Extra: gpu-worker
|
|
41
|
+
Requires-Dist: flask>=3.0; extra == "gpu-worker"
|
|
42
|
+
Requires-Dist: torch>=2.1.0; extra == "gpu-worker"
|
|
43
|
+
Requires-Dist: torchao>=0.1; extra == "gpu-worker"
|
|
44
|
+
Requires-Dist: transformers>=4.36.0; extra == "gpu-worker"
|
|
45
|
+
Requires-Dist: diffusers>=0.25.0; extra == "gpu-worker"
|
|
46
|
+
Requires-Dist: accelerate>=0.25.0; extra == "gpu-worker"
|
|
47
|
+
Provides-Extra: dev
|
|
48
|
+
Requires-Dist: pytest>=7.4.0; extra == "dev"
|
|
49
|
+
Requires-Dist: pytest-asyncio>=0.21.0; extra == "dev"
|
|
50
|
+
Requires-Dist: flask>=3.0; extra == "dev"
|
|
51
|
+
Provides-Extra: cloud
|
|
52
|
+
Requires-Dist: anthropic>=0.40.0; extra == "cloud"
|
|
53
|
+
Dynamic: license-file
|
|
54
|
+
|
|
55
|
+
# SpacePilot 🚀
|
|
56
|
+
|
|
57
|
+
**Status**: Current
|
|
58
|
+
**Verified**: 2026-09-02 via the `tests` CI run on main (771 passed, 4 skipped,
|
|
59
|
+
run `33631068854`) and reading the tree directly.
|
|
60
|
+
**Supersedes / Superseded by**: none
|
|
61
|
+
|
|
62
|
+
> **"You decide what to run. SpacePilot decides how and where."**
|
|
63
|
+
|
|
64
|
+
**SpacePilot** runs AI models on the machine in front of you and says honestly
|
|
65
|
+
what fits before you download it. One surface, every modality: text and chat,
|
|
66
|
+
embeddings, speech and transcription, image, and video. Text and embeddings
|
|
67
|
+
are the newest routes — a pinned MLX route on Apple Silicon, an
|
|
68
|
+
OpenAI-compatible `/v1` surface — added 2026-09-02 because AgentWorth and
|
|
69
|
+
SpaceBar need them; every route gets a fit verdict from the model registry and
|
|
70
|
+
a measurement written for every run. Work the machine cannot hold goes to a
|
|
71
|
+
rented box. A CLI, a FastMCP tool server and a zero-build web UI (`/create`,
|
|
72
|
+
`/cockpit`, `/studio`, `/oven.html`) are three windows onto one state.
|
|
73
|
+
|
|
74
|
+
---
|
|
75
|
+
|
|
76
|
+
## First run
|
|
77
|
+
|
|
78
|
+
The canonical install, upgrade, runtime, Qwen text, and MCP instructions live
|
|
79
|
+
in [`docs/LOCAL-SETUP.md`](docs/LOCAL-SETUP.md). Keep one pipx control-plane
|
|
80
|
+
installation; inference runtimes use separately configured interpreters.
|
|
81
|
+
|
|
82
|
+
```bash
|
|
83
|
+
uv tool install --force . # or: uv pip install . / pipx install --force .
|
|
84
|
+
spacepilot probe # what this machine can run
|
|
85
|
+
spacepilot models # which models run here, with the fit verdict
|
|
86
|
+
spacepilot run text --prompt "explain unified memory" --yes
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
What works today:
|
|
90
|
+
|
|
91
|
+
- **Text** on Apple Silicon, via a pinned MLX-LM route (`spacepilot run text`, and `POST /v1/chat/completions`).
|
|
92
|
+
- **Embeddings** on the same MLX route, 1024-dim, `POST /v1/embeddings` — in this PR.
|
|
93
|
+
- **Speech and transcription** via the API (`spacepilot serve`).
|
|
94
|
+
- **Image** on Apple Silicon, via mflux in its own conda env (`spacepilot runtimes check mflux` shows the route).
|
|
95
|
+
|
|
96
|
+
The `/v1` surface, the shared fit verdict and the per-call measurement record
|
|
97
|
+
are specified in [`docs/design/INFERENCE-SURFACE.md`](docs/design/INFERENCE-SURFACE.md).
|
|
98
|
+
|
|
99
|
+
### Video
|
|
100
|
+
|
|
101
|
+
What does not: **video**. The engines and routes exist, but every render is a
|
|
102
|
+
mock — an ffmpeg test pattern, not a real model run.
|
|
103
|
+
|
|
104
|
+
Video is a dock workload: it counts as real when it runs on a rented GPU end to
|
|
105
|
+
end. The generative cinema workstation is the longer-term aim, not a
|
|
106
|
+
description of what this repo does today.
|
|
107
|
+
|
|
108
|
+
---
|
|
109
|
+
|
|
110
|
+
## Architecture & Modular Components
|
|
111
|
+
|
|
112
|
+
```
|
|
113
|
+
┌─────────────────────────────────────────────────────────────────────────────┐
|
|
114
|
+
│ SpacePilot Modular Platform Topology │
|
|
115
|
+
├─────────────────────────────────────────────────────────────────────────────┤
|
|
116
|
+
│ │
|
|
117
|
+
│ 1. Compute Provider Modules (Pluggable Execution Runtimes) │
|
|
118
|
+
│ ├── Local Host Driver: Apple Metal MPS / CUDA / CPU ($0.00 / Zero Cloud)│
|
|
119
|
+
│ ├── Local Execution: Apple Metal MPS / CUDA / CPU │
|
|
120
|
+
│ └── Hardware Probe: Auto-detects VRAM headroom & recommends models │
|
|
121
|
+
│ │
|
|
122
|
+
│ 2. Generative Model Modules (Polymorphic BaseVideoEngine Adapters) │
|
|
123
|
+
│ ├── LTX-Video 2.5: spec only — no inference runs, route refuses 501 │
|
|
124
|
+
│ ├── Wan2.1 (1.3B & 14B): spec only — no inference runs, route refuses │
|
|
125
|
+
│ ├── HunyuanVideo: spec only — no inference runs, route refuses │
|
|
126
|
+
│ ├── Speech & VO: In-process Kokoro-82M ONNX with -16 LUFS sidechaining │
|
|
127
|
+
│ └── Narrative: In-process GGUF screenplay deconstruction & 3D vectors │
|
|
128
|
+
│ │
|
|
129
|
+
│ 3. Agentic Protocol & Tool Modules │
|
|
130
|
+
│ ├── FastMCP Tool Server (spacepilot/mcp_server.py): 17 tools for AI │
|
|
131
|
+
│ ├── DocIR 2.0 Edit Protocol: Byte-exact, reversible patch operations │
|
|
132
|
+
│ └── WebSocket PTY Bridge: Live interactive shell & worker streaming │
|
|
133
|
+
│ │
|
|
134
|
+
│ 4. UI Component Modules (Zero-Build Obsidian UI) │
|
|
135
|
+
│ ├── Create Studio (/create): Camera Compass, Dual Keyframe, VO Ducking │
|
|
136
|
+
│ ├── Cockpit (/cockpit): Live Host Telemetry, Model Hub │
|
|
137
|
+
│ ├── Oven (/oven.html): Real-time 5-Lane ADLC Swarm Kanban Board │
|
|
138
|
+
│ └── Director (/studio): Multi-track NLE timeline & asset inspector │
|
|
139
|
+
│ │
|
|
140
|
+
└─────────────────────────────────────────────────────────────────────────────┘
|
|
141
|
+
```
|
|
142
|
+
|
|
143
|
+
---
|
|
144
|
+
|
|
145
|
+
## Setup & Secrets
|
|
146
|
+
|
|
147
|
+
```bash
|
|
148
|
+
# Environment setup (venv or conda)
|
|
149
|
+
python -m venv .venv && source .venv/bin/activate
|
|
150
|
+
pip install -r requirements.txt
|
|
151
|
+
```
|
|
152
|
+
|
|
153
|
+
Configuration variables and provider API keys can be passed as standard environment variables or through any secrets manager (e.g., `.env` or Doppler):
|
|
154
|
+
|
|
155
|
+
```bash
|
|
156
|
+
export LOCAL_WORKER_TOKEN="your-token" # Required for gated worker endpoints
|
|
157
|
+
spacepilot studio
|
|
158
|
+
```
|
|
159
|
+
|
|
160
|
+
---
|
|
161
|
+
|
|
162
|
+
## Running the Studio
|
|
163
|
+
|
|
164
|
+
```bash
|
|
165
|
+
spacepilot studio # or: python spacepilot/web_api.py
|
|
166
|
+
```
|
|
167
|
+
|
|
168
|
+
Serves the Web UI and API on:
|
|
169
|
+
* **Primary URL**: **`http://spacepilot.localhost:8088`**
|
|
170
|
+
* **Local Loopback**: **`http://localhost:8088`** (or `http://127.0.0.1:8088`)
|
|
171
|
+
|
|
172
|
+
### Studio Pages:
|
|
173
|
+
* **Create Studio**: `http://spacepilot.localhost:8088/create`
|
|
174
|
+
* **Cockpit & Model Registry (legacy, vanilla JS)**: `http://spacepilot.localhost:8088/cockpit`
|
|
175
|
+
— this is what `spacepilot/app.py` actually mounts and serves today.
|
|
176
|
+
* **Oven Swarm Kanban**: `http://spacepilot.localhost:8088/oven.html`
|
|
177
|
+
* **Director NLE**: `http://spacepilot.localhost:8088/studio`
|
|
178
|
+
* **Human documentation**: `http://spacepilot.localhost:8088/docs`
|
|
179
|
+
* **MCP Streamable HTTP v1**: `http://spacepilot.localhost:8088/mcp/v1/`
|
|
180
|
+
* **Cockpit v1 (React, `ui/`)**: not yet wired into `spacepilot/app.py`'s
|
|
181
|
+
static mount. Run separately as a Vite dev server —
|
|
182
|
+
`http://127.0.0.1:5173/cockpit` under `mvec-local` (`docs/LOCAL-TEST.md`).
|
|
183
|
+
Whether it replaces the legacy cockpit above, and when, is still an open
|
|
184
|
+
product call.
|
|
185
|
+
|
|
186
|
+
---
|
|
187
|
+
|
|
188
|
+
## API Routes & Security Gate
|
|
189
|
+
|
|
190
|
+
Every endpoint that spends compute or creates assets is gated by `X-SpacePilot-Token` (`require_token`). Read-only and telemetry routes stay open.
|
|
191
|
+
|
|
192
|
+
| Route | Method | Auth | Purpose |
|
|
193
|
+
| :--- | :--- | :--- | :--- |
|
|
194
|
+
| `/api/generate` | `POST` | Yes | Video generation. No local execution path exists; refuses with a failed job status unless a remote GPU worker is running. |
|
|
195
|
+
| `/api/generate/multi-engine` | `POST` | Yes | Video generation across the three DiT engines. Refuses with 501 — none of them run inference; the mock test-pattern render this route used to serve was removed. |
|
|
196
|
+
| `/api/audio/synthesize-local` | `POST` | Yes | In-process Kokoro TTS audio synthesis (-16 LUFS normalized). |
|
|
197
|
+
| `/api/audio/mix-ducked` | `POST` | Yes | Voiceover & background music dynamic sidechain ducking. |
|
|
198
|
+
| `/api/narrative/decompose-local` | `POST` | Yes | In-process GGUF screenplay deconstruction into 3D camera shots. |
|
|
199
|
+
| `/api/compute/models/download` | `POST` | Yes | Download model weights to `~/.cache/spacepilot/models/`. |
|
|
200
|
+
| `/api/gpu/launch` · `/terminate` | `POST` | Yes | Spot GPU infrastructure lifecycle management. |
|
|
201
|
+
| `/api/compute/local-profile` | `GET` | No | Hardware capability telemetry (backend, usable VRAM headroom). |
|
|
202
|
+
| `/api/compute/models/recommended` | `GET` | No | Curated model recommendations scored for host hardware. |
|
|
203
|
+
| `/api/engines` | `GET` | No | Complete catalogue of available video DiT engines. |
|
|
204
|
+
| `/healthz` | `GET` | No | Dependency-free process liveness check. |
|
|
205
|
+
| `/api/status` | `GET` | No | Live GPU worker and fleet status telemetry. |
|
|
206
|
+
|
|
207
|
+
---
|
|
208
|
+
|
|
209
|
+
## FastMCP Server Tools (`spacepilot/mcp_server.py`)
|
|
210
|
+
|
|
211
|
+
Native FastMCP tools exposed to Cursor, Claude Code, and Antigravity:
|
|
212
|
+
|
|
213
|
+
* `spacepilot_probe_hardware`: Probes host GPU VRAM and compute headroom.
|
|
214
|
+
* `spacepilot_recommend_models`: Returns task-matched model catalog for current device.
|
|
215
|
+
* `spacepilot_decompose_storyboard`: Deconstructs screenplay into 3D camera vector scene beats.
|
|
216
|
+
|
|
217
|
+
The Studio process hosts the canonical loopback-only Streamable HTTP transport
|
|
218
|
+
at `/mcp/v1/`. The `spacepilot-mcp` command remains the stdio fallback for
|
|
219
|
+
clients that cannot use HTTP.
|
|
220
|
+
|
|
221
|
+
---
|
|
222
|
+
|
|
223
|
+
## Test Suite
|
|
224
|
+
|
|
225
|
+
Local pytest needs the project interpreter (see `AGENTS.md`, Interpreter) —
|
|
226
|
+
`python3` on the primary dev machine resolves to base conda, which lacks
|
|
227
|
+
fastapi. CI on the self-hosted lenovo runner is the gate; the run on the
|
|
228
|
+
commit this README was last checked against passed
|
|
229
|
+
**771 tests, 4 skipped** (`gh run view <run-id>` on main for the current
|
|
230
|
+
number — do not trust a hardcoded count here, it goes stale fast):
|
|
231
|
+
|
|
232
|
+
```bash
|
|
233
|
+
<project-python> -m pytest tests/ -v
|
|
234
|
+
```
|
|
235
|
+
|
|
236
|
+
Covers:
|
|
237
|
+
- Polymorphic DiT engine adapters (LTX, Wan 1.3B/14B, HunyuanVideo). Mock renders only —
|
|
238
|
+
every BaseVideoEngine path used to write an ffmpeg test pattern; the route that served
|
|
239
|
+
it now refuses with 501 instead, and no real video generation runs here yet.
|
|
240
|
+
- In-process Kokoro TTS and GGUF narrative drivers.
|
|
241
|
+
- Device capability probing and safety headroom calculations.
|
|
242
|
+
- FastMCP tool wrappers.
|
|
243
|
+
- REST API security token enforcement on all mutating routes.
|
|
244
|
+
- Frontend JavaScript syntax validation and HTML escaping.
|
|
245
|
+
|
|
246
|
+
---
|
|
247
|
+
|
|
248
|
+
## Directory Layout
|
|
249
|
+
|
|
250
|
+
```
|
|
251
|
+
spacepilot/ The package (flattened from spacepilot/pluto/, #101)
|
|
252
|
+
├── cli.py CLI command router
|
|
253
|
+
├── app.py FastAPI app factory — mounts web/ as the served frontend
|
|
254
|
+
├── web_api.py Studio entry point (python -m spacepilot.web_api)
|
|
255
|
+
├── mcp_server.py Native FastMCP tool server, 17 tools
|
|
256
|
+
├── device_probe.py Cross-platform hardware profiler
|
|
257
|
+
├── model_recommender.py Model catalog & dynamic fit scoring
|
|
258
|
+
├── model_registry.py Registry loader — variants, caveats, provenance
|
|
259
|
+
├── measurements.py Measurement corpus (LOG) reader/writer
|
|
260
|
+
├── substrate.py DirectLocal / DaemonClient wire-shaped dispatch
|
|
261
|
+
├── local_workers.py Local in-process worker memory manager (LRU)
|
|
262
|
+
├── engines/ Video DiT engine specs — none run inference yet
|
|
263
|
+
│ ├── base.py BaseVideoEngine ABC & EngineSpec
|
|
264
|
+
│ ├── ltx_engine.py LTX-Video 2.5 (spec only)
|
|
265
|
+
│ ├── wan_engine.py Wan2.1 1.3B/14B (spec only)
|
|
266
|
+
│ ├── hunyuan_engine.py HunyuanVideo (spec only)
|
|
267
|
+
│ └── registry.py Engine lookup & fallback registry
|
|
268
|
+
├── drivers/ In-process local execution drivers
|
|
269
|
+
│ ├── mflux_driver.py Image — mflux, own conda env, subprocess-only
|
|
270
|
+
│ ├── mlx_lm_driver.py Text — MLX-LM, the working `run text` route
|
|
271
|
+
│ ├── whisper_cpp_driver.py Transcribe — measured, working
|
|
272
|
+
│ ├── kokoro_driver.py Speech (TTS) — ONNX, working
|
|
273
|
+
│ ├── mlx_embed_driver.py Embeddings — MLX, `/v1/embeddings`
|
|
274
|
+
│ └── gguf_driver.py GGUF screenplay deconstruction
|
|
275
|
+
├── daemon/ Fleet daemon — UDS + Tailscale peers, Ed25519,
|
|
276
|
+
│ signed LOG gossip (identity.py, fleet.py, log.py)
|
|
277
|
+
├── storyboard_decomposer.py Screenplay-to-shot decomposition
|
|
278
|
+
├── ltx_worker.py Remote PyTorch resident worker (EC2/Cloud)
|
|
279
|
+
└── api/routes/ 16 route modules: assets, audio, billing,
|
|
280
|
+
checkpoints, compute, engines, generate, gpu,
|
|
281
|
+
health, inference, lora, measurements, recipes,
|
|
282
|
+
runtimes, storyboard, views
|
|
283
|
+
ui/ React 19 cockpit v1 / SpaceBar-web (landed #106/#107).
|
|
284
|
+
Not wired into spacepilot/app.py's static mount —
|
|
285
|
+
run separately via Vite, see docs/LOCAL-TEST.md.
|
|
286
|
+
web/ Zero-build UI actually served by spacepilot/app.py
|
|
287
|
+
├── index.html / app.js Director NLE & Asset matrix
|
|
288
|
+
├── create.html / create.js Create Studio
|
|
289
|
+
├── cockpit.html / cockpit.js Cockpit (legacy, vanilla JS — currently what's live)
|
|
290
|
+
├── oven.html Kanban board
|
|
291
|
+
└── app.css Design system
|
|
292
|
+
native/SpaceBar/ macOS menu-bar app (Swift), see docs/LOCAL-TEST.md
|
|
293
|
+
infra/ GPU startup scripts, IAM
|
|
294
|
+
tests/ Pytest suite — 771 passed, 4 skipped on main as of
|
|
295
|
+
CI run 33631068854 (2026-09-02); re-check before citing
|
|
296
|
+
docs/ Architecture blueprints, plans, and research
|
|
297
|
+
```
|