Packages

Extreme minimal AI assistant with persistent PTY, recursive sub-agents, and CLI-based MCP/browser integration (mcporter, agent-browser)

Retired package: Release invalid - Deprecated due to missing config files

Current section

Files

Jump to
eai lib eai application.ex
Raw

lib/eai/application.ex

defmodule Eai.Application do
use Application
def start(_type, _args) do
attach_telemetry()
children = [
{Phoenix.PubSub, name: Eai.PubSub},
Eai.Cache.Cache,
Eai.Sandbox.PTYPool,
{Eai.Chat, []},
]
opts = [strategy: :one_for_one, name: Eai.Supervisor]
Supervisor.start_link(children, opts)
end
defp attach_telemetry do
events = Enum.map(Application.get_env(:eai, :telemetry_events, []), fn {e, _} -> e end)
:telemetry.attach_many(
"eai-unified-handler",
events,
&Eai.TelemetryHandler.handle_event/4,
nil
)
end
end