src/kapso/deployment/strategies/. Add one and the registry discovers it; no core code changes.
Strategy structure
Each strategy is a directory with these files:Step 1: Create directory
Step 2: Implement runner
Createrunner.py with a Runner class:
Step 3: Create configuration
Createconfig.yaml:
run_interface values may use {deployment_name} and {port}, which Kapso fills per solution (a slug of the solution directory plus a hash, and a host port in 8000–8999).
Step 4: Selector instruction
Createselector_instruction.txt for auto-selection:
Step 5: Adapter instruction
Createadapter_instruction.txt for code adaptation:
Step 6: Register strategy
Create__init__.py:
Runner base class
Strategy registry
Strategies are auto-registered when discovered:Using your strategy
Testing your strategy
Example: HTTP strategy
A strategy that deploys as an HTTP server:Related
Deployment architecture
Deployment strategies
pip install leeroo-kapso · Every page as plain text: llms.txt.