pi-studio 0.11.5 → 0.11.7
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 +29 -0
- package/README.md +3 -1
- package/client/studio-client.js +325 -45
- package/client/studio.css +65 -3
- package/index.ts +664 -179
- 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 +500 -0
- package/shared/studio-repl-tmux.js +25 -4
package/client/studio.css
CHANGED
|
@@ -4828,6 +4828,57 @@
|
|
|
4828
4828
|
line-height: 1.35;
|
|
4829
4829
|
}
|
|
4830
4830
|
|
|
4831
|
+
.repl-quick-sender {
|
|
4832
|
+
display: inline-flex;
|
|
4833
|
+
align-items: center;
|
|
4834
|
+
gap: 2px;
|
|
4835
|
+
min-width: 0;
|
|
4836
|
+
white-space: nowrap;
|
|
4837
|
+
}
|
|
4838
|
+
|
|
4839
|
+
.repl-quick-sender strong {
|
|
4840
|
+
min-width: 0;
|
|
4841
|
+
max-width: 28ch;
|
|
4842
|
+
margin-left: 4px;
|
|
4843
|
+
overflow: hidden;
|
|
4844
|
+
color: var(--text);
|
|
4845
|
+
font-weight: 600;
|
|
4846
|
+
text-overflow: ellipsis;
|
|
4847
|
+
}
|
|
4848
|
+
|
|
4849
|
+
.repl-quick-sender-edit {
|
|
4850
|
+
min-height: 0;
|
|
4851
|
+
padding: 0 4px;
|
|
4852
|
+
border-color: transparent;
|
|
4853
|
+
border-radius: 5px;
|
|
4854
|
+
background: transparent;
|
|
4855
|
+
color: var(--muted);
|
|
4856
|
+
font-size: 12px;
|
|
4857
|
+
line-height: 1.35;
|
|
4858
|
+
}
|
|
4859
|
+
|
|
4860
|
+
.repl-quick-sender-edit:not(:disabled):hover,
|
|
4861
|
+
.repl-quick-sender-edit:focus-visible {
|
|
4862
|
+
border-color: transparent;
|
|
4863
|
+
background: var(--studio-header-action-hover-bg, var(--panel-2));
|
|
4864
|
+
color: var(--text);
|
|
4865
|
+
}
|
|
4866
|
+
|
|
4867
|
+
/* As the new layout's other text fields (Quick send's box, Files' path): a border, no ring. */
|
|
4868
|
+
.repl-quick-sender input {
|
|
4869
|
+
width: 18ch;
|
|
4870
|
+
min-height: 0;
|
|
4871
|
+
margin-left: 4px;
|
|
4872
|
+
padding: 2px 6px;
|
|
4873
|
+
border: 1px solid var(--control-border);
|
|
4874
|
+
border-radius: 6px;
|
|
4875
|
+
background: var(--panel);
|
|
4876
|
+
color: var(--text);
|
|
4877
|
+
font: inherit;
|
|
4878
|
+
font-weight: 600;
|
|
4879
|
+
outline: none;
|
|
4880
|
+
}
|
|
4881
|
+
|
|
4831
4882
|
.repl-quick-send-btn {
|
|
4832
4883
|
border-color: color-mix(in srgb, var(--accent) 58%, var(--control-border));
|
|
4833
4884
|
background: color-mix(in srgb, var(--accent) 14%, var(--panel));
|
|
@@ -4952,7 +5003,8 @@
|
|
|
4952
5003
|
|
|
4953
5004
|
.repl-studio-entry {
|
|
4954
5005
|
position: relative;
|
|
4955
|
-
|
|
5006
|
+
/* Room for who sent it, such as "Oliver · via Pi Studio" (the meta's 12em at 11px). */
|
|
5007
|
+
padding: 2px calc(12 * 11px + 10px) 6px 0;
|
|
4956
5008
|
background: transparent;
|
|
4957
5009
|
}
|
|
4958
5010
|
|
|
@@ -4968,7 +5020,7 @@
|
|
|
4968
5020
|
position: absolute;
|
|
4969
5021
|
top: 3px;
|
|
4970
5022
|
right: 0;
|
|
4971
|
-
max-width:
|
|
5023
|
+
max-width: 12em;
|
|
4972
5024
|
overflow: hidden;
|
|
4973
5025
|
text-overflow: ellipsis;
|
|
4974
5026
|
white-space: nowrap;
|
|
@@ -7687,7 +7739,9 @@
|
|
|
7687
7739
|
body.studio-workspace-layout details.trace-step > summary > .trace-step-preview {
|
|
7688
7740
|
flex: 1 1 6em; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 12px;
|
|
7689
7741
|
}
|
|
7690
|
-
|
|
7742
|
+
/* An Assistant step's line always has its first line, open or folded, whatever is folded inside it (Oliver, 29 Oct). The
|
|
7743
|
+
prompt's and a steer's text sits right under their line when open, so they hide it then. */
|
|
7744
|
+
body.studio-workspace-layout details.trace-step[open]:not(.trace-card-assistant) > summary > .trace-step-preview { display: none; }
|
|
7691
7745
|
body.studio-workspace-layout .trace-step-body { display: flex; flex-direction: column; gap: 6px; padding: 0 11px 10px; }
|
|
7692
7746
|
body.studio-workspace-layout .trace-step .trace-tool-details { border: 0; border-radius: 0; background: transparent; overflow: visible; }
|
|
7693
7747
|
body.studio-workspace-layout .trace-step .trace-tool-details > summary { padding: 3px 0; }
|
|
@@ -7783,6 +7837,14 @@
|
|
|
7783
7837
|
box-shadow: none;
|
|
7784
7838
|
border-color: var(--control-border);
|
|
7785
7839
|
}
|
|
7840
|
+
/* Start cmd stays plain like the selects beside it, and in use looks like the other text fields: a border, no ring. */
|
|
7841
|
+
body.studio-workspace-layout .repl-command-label input { border: 1px solid transparent; border-radius: 6px; font-family: inherit; font-weight: 400; }
|
|
7842
|
+
body.studio-workspace-layout .repl-command-label input:focus {
|
|
7843
|
+
outline: none;
|
|
7844
|
+
box-shadow: none;
|
|
7845
|
+
border-color: var(--control-border);
|
|
7846
|
+
background: var(--panel);
|
|
7847
|
+
}
|
|
7786
7848
|
|
|
7787
7849
|
/* Oliver, 10 Oct: the side thread's model and Thinking sit beside its Ask button. */
|
|
7788
7850
|
body.studio-workspace-layout .side-question-actions { align-items: center; }
|