docs.rs failed to build alien-commands-3.3.48
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build:
alien-commands-3.3.75
alien-commands
Remote commands protocol — lets you invoke code on deployments without requiring inbound network connections. This is the primary way a control plane communicates with customer deployments.
Use cases: AI agents sending tool calls to workers in a customer's VPC, data connectors running queries against private databases, dashboards pulling real-time metrics — all without open ports, VPNs, or firewall changes.
How It Works
- Create — Client invokes a command via CLI or SDK. Server stores params in KV (auto-promotes to blob storage if oversized).
- Dispatch — Push: direct invocation via Lambda, Pub/Sub, or Service Bus. Pull: deployment polls via lease.
- Lease — Deployment acquires a lease, receives an
Envelopewith params and response instructions. - Response — Deployment submits response (inline or storage-uploaded). Registry transitions to terminal state.
Payloads are transparently handled — clients never worry about size limits. Small payloads go inline, large ones auto-promote to presigned storage URLs.
Architecture
Three feature-gated modules:
- Core types (always available) —
Envelope,CommandResponse,BodySpec, protocol constants serverfeature —CommandServer,CommandRegistry, Axum handlers, dispatchers. Used by alien-manager.runtimefeature — Envelope decoding, response submission. Used by alien-worker-runtime.
Key Types
CommandServer— Orchestrates the full command lifecycleCommandRegistrytrait — Source of truth for command metadata (state, timestamps, attempts)CommandDispatchertrait — Push-model transports (Lambda invoke, Pub/Sub message, Service Bus message)Envelope— Wire format sent to deploymentsBodySpec— Inline (base64) or storage-backed (presigned URL) payload