capsite/toybox: TODO: the counter vat as a durable Exo

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
dckcandClaude Opus 5.5 committed 2026-10-13 21:44:29 -05:00
1 parent f64dac4434
commit 8025ec4b20
1 file changed
+6 -1
+6 -1
View File
@@ -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 }) => export const buildRootObject = ({ Far, storage }) =>
Far("counterRoot", { Far("counterRoot", {
increment: () => { increment: () => {