MingaKnowledgeGraph.Briefing (minga_knowledge_graph v0.1.0)

Copy Markdown View Source

Builds the briefing prompt and renders the briefing float panel.

The Tracker drives the lifecycle (kick off Minga.Extension.AI.stream/2, feed chunks back here); this module owns the prompt and the panel presentation only.

ponytail: the prompt includes the file's on-disk contents only, no

caller-graph traversal. Add neighbors/callers if briefings feel shallow.

Summary

Functions

Hides the briefing panel.

Builds the chat messages for a briefing on path with on-disk content.

Renders the briefing panel for the given lifecycle status.

Functions

dismiss()

@spec dismiss() :: :ok

Hides the briefing panel.

messages(path, content)

@spec messages(String.t(), String.t()) :: [%{role: String.t(), content: String.t()}]

Builds the chat messages for a briefing on path with on-disk content.

render(path, status)

@spec render(String.t(), {:generating} | {:text, String.t()} | {:error, term()}) ::
  :ok

Renders the briefing panel for the given lifecycle status.