@yansirplus/image-resource-settlement
v0.5.16
Published
<!-- generated by scripts/generate-docs.mjs; edit docs/surface.json and docs/packages/image-resource-settlement.md -->
Readme
@agent-os/image-resource-settlement
Purpose
Effect helper for consuming or releasing image resource reservations around a provider-side image operation.
Public API Status
Provider helper package. It keeps Effect resource settlement outside the image carrier vocabulary package.
Invariant
The image carrier owns only image.* vocabulary, idempotency, and projections. This package owns the Effect implementation helper that wraps provider calls with resource settlement behavior.
Minimal Usage
Use withImageResourceSettlement(effect, settlement) in provider code that has
already acquired an image resource reservation and must consume it on success or
release it on failure.
Verification
cd packages/providers/image-resource-settlement
vp test run