Bind imports to library names with bare path calls (and use), forward optional host args through mq wrappers, stabilize writeback replacement newlines, and document the M1/M2 decisions. Co-authored-by: Cursor <cursoragent@cursor.com>
710 B
710 B
title: async writeback via subtask description: Fire-and-forget persist_slot with explicit line=; join on exit.
lib/writeback.mq.md lib/subtask.mq.md lib/json.mq.md
persist_slot
+ `key`
+ `value`
+ `line`
writeback.ensure key=ok placeholder=pending line=
linewriteback.ensure key=error placeholder=pending line=linewriteback.record value=valuekey=keyline=line
main
*anchor = > host_outer_call_line *
*wb = > json.parse text={"key":"ok","value":"async-ok"} *
*wb = > json.set map=wb key=line value=anchor *
subtask.spawn fn=persist_slot args=
wb
print text=spawned