pi-studio 0.8.4 → 0.9.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -4,6 +4,39 @@ All notable changes to `pi-studio` are documented here.
4
4
 
5
5
  ## [Unreleased]
6
6
 
7
+ ## [0.9.1] — 2026-05-15
8
+
9
+ ### Added
10
+ - Added `studio_repl_status` and `studio_repl_send` tools so the agent can inspect and send code to the active Studio REPL without improvising raw tmux commands.
11
+
12
+ ### Changed
13
+ - Studio REPL sends for Python/IPython, Julia, R, GHCi, and Clojure now use runtime-specific control files instead of pasting multiline code directly, reducing quoting and indentation failures.
14
+ - The REPL pane now treats **REPL Studio** as the clean primary interaction record, with the raw tmux mirror secondary and collapsed by default.
15
+ - Renamed Scratch send to Raw send, alongside Literate send, and clarified that **Add note** records prose through the Literate send workflow.
16
+ - REPL polling now skips UI re-renders when the captured transcript/session state has not changed, reducing hover flicker in the REPL controls.
17
+ - REPL Studio entries now use a compact terminal-style prompt/output layout instead of card-style Code/Output sections, include startup banner text when available, and `studio_repl_send` broadcasts the actual submitted code so Pi-driven REPL work appears in the clean record.
18
+ - Reduced REPL pane chrome by hiding duplicate session status lines, avoiding prominent implementation-detail send notices, and moving REPL Studio export/edit actions below the main REPL Studio box.
19
+ - REPL Studio entries are now persisted in browser local storage so the clean record survives page refreshes while the Studio server/session is still running.
20
+ - **Run editor text** active-REPL context now tells the agent to use `studio_repl_send` for code execution.
21
+
22
+ ## [0.9.0] — 2026-05-14
23
+
24
+ ### Added
25
+ - Added an optional tmux-backed **REPL** right-pane view for Shell, Python, IPython, Julia, R, GHCi, and Clojure sessions.
26
+ - Added **Send to REPL** with `Cmd/Ctrl+Shift+Enter`, sending the editor selection or full editor text in Scratch mode.
27
+ - Added Literate send mode for Markdown documents, including current/selected fenced-code chunk sending, explicit **Run all chunks**, prose journaling, and runtime-compatible chunk filtering.
28
+ - Added a compact REPL journal that records notes, sent code, runtime/session metadata, and captured output, with copy, Markdown export, load-into-editor, and PDF/HTML export support.
29
+ - Added Studio-owned REPL session controls for start/attach, creating additional sessions of the same runtime, stopping sessions, and interrupting stuck prompts.
30
+ - Added lightweight syntax highlighting for REPL transcript prompt input and journal code entries.
31
+
32
+ ### Changed
33
+ - **Run editor text** now includes active REPL identity when the REPL pane is active so prompts can refer to “the active REPL”.
34
+ - The REPL toolbar keeps common controls visible and tucks advanced/session/literate actions under **More**.
35
+
36
+ ### Fixed
37
+ - Python/IPython multiline sends now include a final blank line so pasted suites such as `for` blocks execute cleanly.
38
+ - The editor now handles `Tab` / `Shift+Tab` for indentation while focused.
39
+
7
40
  ## [0.8.4] — 2026-05-14
8
41
 
9
42
  ### Added
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # pi-studio
2
2
 
3
- Extension for [pi](https://pi.dev) that opens a local two-pane browser workspace for working with prompts, responses, live working details, Markdown and LaTeX documents, interactive HTML previews, code files, and other common text-based files side by side. Annotate responses and files, add local comments, write, edit, and run prompts, browse prompt and response history, request critiques, and use live preview for code, Markdown, LaTeX, and interactive HTML.
3
+ Extension for [pi](https://pi.dev) that opens a local two-pane browser workspace for working with prompts, responses, live working details, Markdown and LaTeX documents, interactive HTML previews, code files, REPL sessions, and other common text-based files side by side. Annotate responses and files, add local comments, write, edit, run prompts, send code to a REPL, browse prompt and response history, request critiques, and use live preview for code, Markdown, LaTeX, and interactive HTML.
4
4
 
5
5
  ## Quick demo
6
6
 
@@ -22,6 +22,7 @@ Extension for [pi](https://pi.dev) that opens a local two-pane browser workspace
22
22
  - Supports one canonical full Studio view per Pi session, plus additional editor-only companion views when you just want extra editing/preview surfaces; the editor toolbar can open a detached copy of the current editor text as a companion view
23
23
  - Runs editor text directly, or asks for structured critique (auto/writing/code focus)
24
24
  - Includes a live **Working** view for following current model/tool activity, with `All` / `Thinking` / `Tools` filters, image previews for image-producing tool outputs, plus **Load visible into editor** and **Copy visible** actions; when cycling response history, Working follows saved working details for the selected response when available
25
+ - Includes an optional tmux-backed **REPL** view for Shell, Python, IPython, Julia, R, GHCi, and Clojure sessions, with Raw/Literate send modes, `Cmd/Ctrl+Shift+Enter` **Send to REPL**, session start/new/stop/interrupt controls, a compact refresh-persistent **REPL Studio** record of user and Pi-sent code, a secondary raw tmux mirror, agent-facing `studio_repl_status` / `studio_repl_send` tools, and Markdown/PDF/HTML export
25
26
  - Includes a local persistent scratchpad for quick notes you want to keep out of the main editor until you're ready to copy or insert them
26
27
  - Includes a docked **Outline** rail for navigating document structure in the current editor text, with clickable entries that jump in the raw editor and reveal matching preview locations when available
27
28
  - Includes local comments anchored to selections/lines, shown in a docked **Comments** rail, with transient **Comment** / **Jump** actions from raw-editor selections plus editor-preview selections for Markdown, LaTeX, and code/text/diff previews, alongside optional inline `[an: ...]` toggles when you want comments reflected in the document text
@@ -105,6 +106,7 @@ caption: Optional caption
105
106
  - Studio is designed as a complement to terminal pi, not a replacement.
106
107
  - Installing pi-studio makes the optional `pi-studio-dark` and `pi-studio-light` themes available in pi's theme selector; it does not change your active theme.
107
108
  - Editor/code font uses a best-effort terminal-monospace match when the current terminal config exposes it; set `PI_STUDIO_FONT_MONO` to force a specific CSS `font-family` stack. Use `PI_STUDIO_FONT_UI` or `PI_STUDIO_FONT_PROSE` to override the Studio UI or rendered-preview font stacks.
109
+ - The optional REPL view requires `tmux`. Studio can start and stop Studio-owned `pi-studio-repl-*` sessions and can mirror detected `pi-repl-*` sessions, but it will not stop external `pi-repl-*` sessions.
108
110
  - Full preview/PDF quality depends on `pandoc` (and `xelatex` for PDF):
109
111
  - `brew install pandoc`
110
112
  - install TeX Live/MacTeX for PDF export