From 8025ec4b20c380207656d2b129bc5db2e3ffe137 Mon Sep 17 00:00:00 2001 From: Dan Connolly Date: Tue, 13 Oct 2026 21:30:25 -0500 Subject: [PATCH] capsite/toybox: TODO: the counter vat as a durable Exo Co-Authored-By: Claude Opus 5.5 (1M context) --- toybox/vats/counter.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/toybox/vats/counter.js b/toybox/vats/counter.js index a37f686..ed6c6ca 100644 --- a/toybox/vats/counter.js +++ b/toybox/vats/counter.js @@ -1,4 +1,9 @@ -/** A counter whose count lives in the vat's storage. */ +/** + * A counter whose count lives in the vat's storage. + * + * TODO: a durable Exo once vatPowers offers a zone, e.g. + * `zone.exoClass("Counter", undefined, () => ({ count: 0 }), { incr() { this.state.count += 1; return this.state.count; } })` + */ export const buildRootObject = ({ Far, storage }) => Far("counterRoot", { increment: () => {