pi-studio 0.11.6 → 0.11.8
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 +31 -0
- package/README.md +3 -1
- package/client/studio-client.js +337 -29
- package/client/studio.css +62 -2
- package/index.ts +686 -182
- package/package.json +1 -1
- package/shared/REPL_SESSION_RECORD_PROTOCOL.md +54 -0
- package/shared/repl-person.js +140 -0
- package/shared/repl-session-record.js +295 -1
- package/shared/studio-repl-activity.js +503 -0
- package/shared/studio-repl-tmux.js +25 -4
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,37 @@ All notable changes to `pi-studio` are documented here.
|
|
|
4
4
|
|
|
5
5
|
## [Unreleased]
|
|
6
6
|
|
|
7
|
+
## [0.11.8] — 2026-11-03
|
|
8
|
+
|
|
9
|
+
### Changed
|
|
10
|
+
- The REPL pane's record says when a session's record directory isn't verified, because the session has no record-directory key yet, so the record shown may not be the one other clients use. When the agent is told of entries from such a session, it's told this too.
|
|
11
|
+
|
|
12
|
+
### Fixed
|
|
13
|
+
- In a Shell session under zsh, Ctrl+C while your code runs no longer leaves Studio waiting for that send. Before, the session took no further sends until it was closed. bash was already unaffected.
|
|
14
|
+
- When the REPL pane's controls wrap and **More** starts a row, its menu opens inside the pane, not off its left edge.
|
|
15
|
+
- For a session whose shared record Studio won't use from here, **Copy Markdown**, **Export .md** and **Load record into editor** say why, instead of using the page's earlier copy of its entries. With no session selected, the page leaves that session's entries out.
|
|
16
|
+
- **Clear** empties the page's copy of a session's record once Studio has cleared it. If Studio refuses, the page keeps its copy and says why. Before, the page emptied its copy and reported success first.
|
|
17
|
+
- A note's name is checked before Studio shortens a long label, so a name that isn't usable can't be cut into one that is.
|
|
18
|
+
|
|
19
|
+
## [0.11.7] — 2026-11-02
|
|
20
|
+
|
|
21
|
+
This release brings the REPL pane up to pi-repl 0.11.7.
|
|
22
|
+
|
|
23
|
+
### Added
|
|
24
|
+
- The agent is told what's new in the REPL record: your sends and notes, other clients' sends, and output that arrived late. Studio adds the entries it hasn't been shown when a run starts and to `studio_repl_send` and `studio_repl_status` results, for the session in the REPL pane and the sessions the agent used. `studio_repl_status` also lists recent entries (`recent`) or one (`entryId`). `PI_REPL_RECORD_ACTIVITY=send` keeps this to results, and `off` stops it; unset, it follows `PI_REPL_PANE_ACTIVITY`. Under **Shared REPL Record** the page says when new entries go to the agent and its model provider, and in Pi's terminal each report is one line until expanded.
|
|
25
|
+
- Your REPL sends and notes are recorded under your name. Quick send shows **Sending as** with ✎ to change the name for this page. The default is `PI_REPL_USER_NAME`, then the name saved with pi-repl's `/repl name` or `agent-repl name`, then "User". The record, the page and the agent show who sent each entry and how, such as "Ana · via Pi Studio" or "Sam · via terminal", as pi-repl and agent-markdown-preview do.
|
|
26
|
+
|
|
27
|
+
### Changed
|
|
28
|
+
- A send that outlasts its wait keeps the session until its code finishes, then records its output. Before, its entry stayed "timeout" with the output so far. The page's card shows "Running…", and the agent is told not to send it again.
|
|
29
|
+
- A send from the page is recorded or not sent. If the session's shared record can't be used, another client holds the session or the first entry can't be written, Studio says why and sends nothing. The agent's sends still run when the record's details can't be used, as in pi-repl.
|
|
30
|
+
- A session's shared record is used only from the record directory its key names, as in pi-repl 0.11.7. Studio sets the key when it starts a session or first writes to one, and refuses a record in another or replaced temporary directory, such as one an ssh login with a different `TMPDIR` made; the record panel says why. Studio no longer sets record details on every session it lists.
|
|
31
|
+
- Studio doesn't paste into, or send Ctrl+C to, a session where pi-repl takes code through its own helper, such as pi-repl's LFortran session. It says "This session takes code only through pi-repl."
|
|
32
|
+
- A record entry shows who sent it in place of its kind, origin and time, which are in its tooltip.
|
|
33
|
+
- In the new layout, the REPL pane's **Start cmd** field has a plain border while you type in it, like the other text fields, in place of the browser's blue ring.
|
|
34
|
+
|
|
35
|
+
### Fixed
|
|
36
|
+
- **File → Open file…** is no longer sometimes refused with "Checkpoint the current editor before opening a file." just after a reload, while a background save of an unchanged checkpoint was still finishing.
|
|
37
|
+
|
|
7
38
|
## [0.11.6] — 2026-10-30
|
|
8
39
|
|
|
9
40
|
### Added
|
package/README.md
CHANGED
|
@@ -136,7 +136,7 @@ Icons in exported PDFs need Mermaid CLI 11.12+ (`npm install -g @mermaid-js/merm
|
|
|
136
136
|
|
|
137
137
|
### REPL
|
|
138
138
|
|
|
139
|
-
The REPL pane runs code in tmux sessions. It can start its own, and it shares a record of submissions and output with [pi-repl](https://github.com/omaclaren/pi-repl) when both use the same session. Pane echo sets how much submitted code goes into the raw tmux history, as in pi-repl: up to 20 lines with Summary, the default, up to 40 with Full, and none with Off. The record format is in [`shared/REPL_SESSION_RECORD_PROTOCOL.md`](./shared/REPL_SESSION_RECORD_PROTOCOL.md).
|
|
139
|
+
The REPL pane runs code in tmux sessions. It can start its own, and it shares a record of submissions and output with [pi-repl](https://github.com/omaclaren/pi-repl) when both use the same session. Pane echo sets how much submitted code goes into the raw tmux history, as in pi-repl: up to 20 lines with Summary, the default, up to 40 with Full, and none with Off. Your sends and notes are recorded under your name (**Sending as**, under Quick send). The agent is told of record entries it hasn't seen, such as your sends, other clients' sends and late output, when a run starts and with its REPL tools' results. The record format is in [`shared/REPL_SESSION_RECORD_PROTOCOL.md`](./shared/REPL_SESSION_RECORD_PROTOCOL.md).
|
|
140
140
|
|
|
141
141
|
### Side questions
|
|
142
142
|
|
|
@@ -157,6 +157,8 @@ For a container, `/studio --no-browser --listen-all --port 4321` listens on all
|
|
|
157
157
|
| `BRAVE_API_KEY` | Enables web search in side questions |
|
|
158
158
|
| `PI_STUDIO_FONT_MONO`, `PI_STUDIO_FONT_UI`, `PI_STUDIO_FONT_PROSE` | CSS font stacks for code, interface and previews |
|
|
159
159
|
| `PI_STUDIO_REPL_ECHO_MODE` | Default pane echo for `studio_repl_send`: `summary` (the default), `off` or `full` |
|
|
160
|
+
| `PI_REPL_USER_NAME` | The name your REPL sends and notes are recorded under, ahead of the name saved with pi-repl |
|
|
161
|
+
| `PI_REPL_RECORD_ACTIVITY` | Whether the agent is told of new REPL record entries: `on` (the default: at a run's start and in REPL tool results), `send` (in results only) or `off`; unset, it follows `PI_REPL_PANE_ACTIVITY` |
|
|
160
162
|
| `PI_STUDIO_PANDOC_TIMEOUT_MS`, `PI_STUDIO_LATEX_TIMEOUT_MS`, `PI_STUDIO_MERMAID_TIMEOUT_MS` | Export time limits |
|
|
161
163
|
|
|
162
164
|
Installing pi-studio also adds `pi-studio-dark` and `pi-studio-light` to Pi's themes, without changing your current theme.
|