@executioncontrolprotocol/extension-storage
v0.14.0
Published
Key-value blob storage extension for ECP
Readme
@executioncontrolprotocol/extension-storage
Disk-backed key-value blob and workflow storage for ECP under ~/.ecp.
Layout
~/.ecp/
temp/ # default media writes; wiped when ecp up starts
artifacts/ # opt-in durable (`tier: "durable"` / writeMediaArtifact store: "durable")
workflows/ # Fluent `.workflow.ts` library (survives ecp up)Override home with ECP_HOME or extension config { home: "…" }.
Binding
import "@executioncontrolprotocol/extension-storage"
import { environment, extension } from "@executioncontrolprotocol/node"
export default environment("demo").withExtensions([
extension("@executioncontrolprotocol/storage").with({}),
])ecp up binds storage automatically and wipes ~/.ecp/temp on start.
Capabilities
| Id | Execution | Purpose |
| -- | --------- | ------- |
| @executioncontrolprotocol/storage.write | host | Write bytes/JSON under temp or durable |
| @executioncontrolprotocol/storage.read | host | Read by key / ecp://storage/… URI |
| @executioncontrolprotocol/storage.workflow-save | host | Save Fluent .workflow.ts under workflows/ |
| @executioncontrolprotocol/storage.workflow-list | host | List saved workflows |
| @executioncontrolprotocol/storage.workflow-load | host | Load Fluent (or legacy dual-bundle JSON) by id |
| @executioncontrolprotocol/storage.workflow-delete | host | Delete one workflow by id |
Browser imports use the exports["."].browser catalog; handlers hop to the host daemon.
