Improving PromptBuddy - fork
Mix.install([
{:kino_promptbuddy, path: Path.join(__DIR__, "..")},
{:kino, "~>0.17.0"},
{:mix_install_watcher, "~> 0.1.0"}
])
Plan
- Add JS-side tab UI (Prompt/Note/Code) plus events so the backend can track tab state.
- Extend
Kino.PromptBuddy assigns/storage to keep per-tab text and the active tab (init, handle_event, to_attrs).
- Update
handle_editor_change and editor config to switch language/source per tab.
- Adjust
to_source/1 so only Prompt text runs through the LLM while Note/Code remain local data.
- Insert optional Note/Code cells (markdown/elixir) when running a prompt so those tabs materialize in the notebook.
Section