feat: cloud adapters E2B/Modal and billing export (SAND-WP-0010)
Add credentialed E2B and Modal extensions, burst routing fallback, fin-hub meter export hook, BYOK docs, and 77 tests.
This commit is contained in:
parent
6d0a1a8b1e
commit
15f031fd65
26 changed files with 859 additions and 75 deletions
19
extensions/ext.e2b.yaml
Normal file
19
extensions/ext.e2b.yaml
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
id: ext.e2b
|
||||
title: E2B cloud sandboxes
|
||||
description: >
|
||||
Metered E2B Firecracker sandbox adapter. Requires E2B_API_KEY or OpenBao
|
||||
secret_ref mapping at provision boundary.
|
||||
handler: sandboxer.extensions.e2b:E2BExtension
|
||||
capabilities:
|
||||
isolation_levels: [microvm]
|
||||
regions: [us, eu]
|
||||
persistence: true
|
||||
pricing_model: metered
|
||||
config:
|
||||
provider: e2b
|
||||
api_base: https://api.e2b.dev
|
||||
api_key_env: E2B_API_KEY
|
||||
secret_ref: e2b-api-key
|
||||
template_id: base
|
||||
rate_usd_per_hour: 0.15
|
||||
session_fee_usd: 0.02
|
||||
19
extensions/ext.modal.yaml
Normal file
19
extensions/ext.modal.yaml
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
id: ext.modal
|
||||
title: Modal cloud sandboxes
|
||||
description: >
|
||||
Metered Modal serverless sandbox adapter. Requires MODAL_TOKEN_ID or
|
||||
secret_ref mapping at provision boundary.
|
||||
handler: sandboxer.extensions.modal:ModalExtension
|
||||
capabilities:
|
||||
isolation_levels: [policy]
|
||||
regions: [us]
|
||||
persistence: true
|
||||
pricing_model: metered
|
||||
config:
|
||||
provider: modal
|
||||
api_base: https://api.modal.com
|
||||
api_key_env: MODAL_TOKEN_ID
|
||||
secret_ref: modal-token-id
|
||||
image_ref: modal-default
|
||||
rate_usd_per_hour: 0.18
|
||||
session_fee_usd: 0.02
|
||||
Loading…
Add table
Add a link
Reference in a new issue