feat(sync): add typed acknowledgement effect

req: sync/006
This commit is contained in:
slhx agent
2026-07-13 23:15:57 +02:00
parent 88598f181f
commit 5a82956c08
6 changed files with 163 additions and 7 deletions
+5
View File
@@ -459,6 +459,11 @@
if (op.kind === "put") {
if (isAtom(op.target)) {
atomStore(scope).set(String(op.target.resource.id), op.payload.value);
forEachElement(scope, (element) => {
if (element.getAttribute("data-aid") === String(op.target.resource.id)) {
putPayload(element, op.payload);
}
});
return true;
}
const target = targetFor(scope, op.target);