Skip to content

v0.1.0

Choose a tag to compare

@mavdol mavdol released this 16 Dec 10:15
· 608 commits to main since this release
915cf47

Core Runtime & Architecture

  • Rust-Based Host: A robust host capable of loading and executing Wasm Components.
  • Structured Logging (WAL): Integrated SQLite-backed Write-Ahead Logging for reliable persistence, debugging, and replayable execution logs.
  • Type-Safe State Management: Direct state management via capsule-wit and bindgen, ensuring strict type safety between the host and guest.
  • Fine-Grained Policies: Enables per-task configuration and isolation rules for execution and resources.

Python SDK & Developer Experience

  • @task Decorator: Introduces a simple decorator for function declaration with automatic JSON serialization for inputs and outputs.
  • Local Execution Mode: Allows running decorated functions natively (without Wasm instantiation) to speed up the development and debugging loop.
  • Componentization Pipeline: Automated tooling to compile Python modules into Wasm components using the core's WIT definitions.

CLI & JIT Compilation

  • capsule run: New CLI command to execute Python entry points (capsule run main.py) with on-the-fly JIT compilation.
  • Embedded Core: The CLI now embeds capsule-core, ensuring a standalone binary with all necessary runtime capabilities.

Resilience & Security

  • Fuel Metering: Implemented custom fuel limits for Wasm instances to provide precise CPU protection against abusive workloads.
  • Timeout Management: Real wall-clock timeout handling to ensure tasks cannot exceed their allocated runtime.
  • Retry Logic: Configurable retry policies (defaulting to 0) to handle instance crashes or transient failures gracefully.

Getting Started

To run an example using the new JIT capabilities:

# Run a python file directly (compiles to Wasm on the fly)
capsule run main.py