diff --git a/agent-events/.gitignore b/agent-events/.gitignore new file mode 100644 index 0000000..aced64b --- /dev/null +++ b/agent-events/.gitignore @@ -0,0 +1 @@ +.next/ \ No newline at end of file diff --git a/agent-events/README.md b/agent-events/README.md new file mode 100644 index 0000000..6a72ab8 --- /dev/null +++ b/agent-events/README.md @@ -0,0 +1,165 @@ +# Agent Events Dashboard + +Real-time monitoring dashboard for Modus agents. Create themed agents and watch their events in +real-time. + +
+
+
+ Real-time monitoring of agent activities and events +
++ Make sure your Modus backend is running at http://localhost:8686 +
+Error: {agentsResult.error.message}
+Loading agents...
+No agents created yet
+Create your first themed agent above
+{agent.lastEvent}
+Waiting for agent events...
+ {isConnected && ( +Create an agent and start generating events
+ )} ++ {JSON.stringify(event.data, null, 2)} ++
+ {isConnected + ? "Real-time connection to Modus agents via GraphQL subscriptions." + : "Start your Modus backend to create and manage agents."} +
++ {isConnected + ? `# Connected via URQL with SSE +subscription AgentEvents($agentId: String!) { + agentEvent(agentId: $agentId) { + name + data + timestamp + } +}` + : `# Start your Modus backend: +cd modus && modus dev + +# Backend should expose: +query { agents { id name status } } +mutation { createThemedAgent(theme: $theme) }`} ++