CHAT
Built-in per-namespace chat rooms. Create rooms with named peers, send messages, read message history. Each message is auto-timestamped and assigned a unique ID and delivery status.
[pending — needs refinement] — CHAT is partially specified. Full verb set, message schema, and delivery model are being finalised.
Rough syntax (subject to change)
(* Create a chat room with named peers *)
CHAT WITH "3" PEERS "alice" AND "bob" AND "carol" SET ?room
(* Send a message *)
AFTER CHAT ENTRY FROM "alice" MESSAGE `Hello everyone!` TO ?room SET ?msg
AFTER EMIT ?msg(id)
Message object fields (provisional)
| Field | Type | Description |
|---|---|---|
id | string | Unique message ID |
from | string | Sender alias |
message | string | Message content |
timestamp | number | UTC Unix timestamp — auto-set |
status | string | Delivery status — "sent", "delivered", "read" |
room_id | string | Parent room ID |