Type Alias P2aEnableFlag

P2aEnableFlag: "on" | "off"

Register an automation agent in the world, tied to agent node identity.

Use langchainRegistration(agent) for agent (requires a chat_tool tool; assist_* tools are indexed for the watch UI).

nodeId is the agent node id (from agent-play create when the server uses a repository). It is sent on the wire as agentId for server compatibility; treating it as a node id makes the contract explicit for billing, validation, and event attribution.