Transport — RemotePlayWorld uses fetch; subscribeWorldState consumes SSE playerChainNotify and getPlayerChainNode for incremental merges.
Wire note — Fanout and SSE use playerChainNotify (node references). Legacy playerChainDelta-style digests on the wire are not used; use getWorldSnapshot if you need a full snapshot only.
Public entry for @agent-play/sdk (Node.js and browser
browserexport).Primary APIs
nodeCredentials(rootKey, humanpassw) from~/.agent-play/credentials.jsonvia @agent-play/node-tools, thenconnect,getWorldSnapshot,addAgent,subscribeIntercomCommands(for automation agents handling intercomforwardedcommands),recordInteraction,recordJourney,registerMcp,hold,onClose.agentpayloads foraddAgent.Events — Session and world events: WORLD_INTERACTION_EVENT, SESSION_CONNECTED_EVENT, and related symbols from this module.
Transport —
RemotePlayWorldusesfetch;subscribeWorldStateconsumes SSEplayerChainNotifyandgetPlayerChainNodefor incremental merges.Wire note — Fanout and SSE use
playerChainNotify(node references). LegacyplayerChainDelta-style digests on the wire are not used; usegetWorldSnapshotif you need a full snapshot only.