pi-studio 0.6.5 → 0.6.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 +10 -0
- package/client/studio-client.js +7 -2
- package/client/studio.css +15 -6
- package/index.ts +8 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,16 @@ All notable changes to `pi-studio` are documented here.
|
|
|
4
4
|
|
|
5
5
|
## [Unreleased]
|
|
6
6
|
|
|
7
|
+
## [0.6.7] — 2026-04-30
|
|
8
|
+
|
|
9
|
+
### Changed
|
|
10
|
+
- Sharpened Markdown quote markers, fenced-code fence lines, rendered blockquote borders/text, and Studio badge text so they remain legible across darker custom themes.
|
|
11
|
+
|
|
12
|
+
## [0.6.6] — 2026-04-30
|
|
13
|
+
|
|
14
|
+
### Changed
|
|
15
|
+
- Studio now opens the right pane on **Editor (Preview)** by default for file-backed and blank launches, while last-response launches still open on the response preview.
|
|
16
|
+
|
|
7
17
|
## [0.6.5] — 2026-04-30
|
|
8
18
|
|
|
9
19
|
### Changed
|
package/client/studio-client.js
CHANGED
|
@@ -174,8 +174,13 @@
|
|
|
174
174
|
let pendingKind = null;
|
|
175
175
|
let stickyStudioKind = null;
|
|
176
176
|
let initialDocumentApplied = false;
|
|
177
|
-
|
|
178
|
-
|
|
177
|
+
function getInitialRightView(source) {
|
|
178
|
+
if (isEditorOnlyMode) return "editor-preview";
|
|
179
|
+
return String(source || "").trim() === "last-response" ? "preview" : "editor-preview";
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
let editorView = "markdown";
|
|
183
|
+
let rightView = getInitialRightView(initialSourceState.source);
|
|
179
184
|
let followLatest = !isEditorOnlyMode;
|
|
180
185
|
let queuedLatestResponse = null;
|
|
181
186
|
let latestResponseMarkdown = "";
|
package/client/studio.css
CHANGED
|
@@ -396,7 +396,7 @@
|
|
|
396
396
|
border-radius: 999px;
|
|
397
397
|
padding: 4px 10px;
|
|
398
398
|
font-size: 12px;
|
|
399
|
-
color: var(--muted);
|
|
399
|
+
color: var(--studio-info-text, var(--muted));
|
|
400
400
|
white-space: nowrap;
|
|
401
401
|
}
|
|
402
402
|
|
|
@@ -406,7 +406,14 @@
|
|
|
406
406
|
|
|
407
407
|
body.studio-ui-refresh #rightPane .reference-meta .source-badge {
|
|
408
408
|
border-color: var(--border-subtle);
|
|
409
|
-
color:
|
|
409
|
+
color: var(--studio-info-text, var(--muted));
|
|
410
|
+
}
|
|
411
|
+
|
|
412
|
+
#historyIndexBadge {
|
|
413
|
+
color: var(--studio-info-text, var(--muted));
|
|
414
|
+
background: var(--reference-badge-bg, var(--panel));
|
|
415
|
+
border-color: var(--control-border);
|
|
416
|
+
font-weight: 500;
|
|
410
417
|
}
|
|
411
418
|
|
|
412
419
|
.source-badge-button {
|
|
@@ -727,7 +734,8 @@
|
|
|
727
734
|
}
|
|
728
735
|
|
|
729
736
|
.hl-fence {
|
|
730
|
-
color: var(--muted);
|
|
737
|
+
color: var(--studio-markdown-marker-text, var(--studio-info-text, var(--muted)));
|
|
738
|
+
font-weight: 600;
|
|
731
739
|
}
|
|
732
740
|
|
|
733
741
|
.hl-code {
|
|
@@ -793,8 +801,9 @@
|
|
|
793
801
|
}
|
|
794
802
|
|
|
795
803
|
.hl-quote {
|
|
796
|
-
color: var(--md-quote);
|
|
804
|
+
color: var(--studio-markdown-marker-text, var(--md-quote));
|
|
797
805
|
font-style: normal;
|
|
806
|
+
font-weight: 600;
|
|
798
807
|
}
|
|
799
808
|
|
|
800
809
|
.hl-link {
|
|
@@ -1031,10 +1040,10 @@
|
|
|
1031
1040
|
.rendered-markdown blockquote {
|
|
1032
1041
|
margin-left: 0;
|
|
1033
1042
|
padding: 0.2em 1em;
|
|
1034
|
-
border-left: 0.25em solid var(--md-quote-border);
|
|
1043
|
+
border-left: 0.25em solid var(--studio-quote-border, var(--md-quote-border));
|
|
1035
1044
|
border-radius: 0 8px 8px 0;
|
|
1036
1045
|
background: var(--blockquote-bg);
|
|
1037
|
-
color: var(--md-quote);
|
|
1046
|
+
color: var(--studio-quote-text, var(--md-quote));
|
|
1038
1047
|
}
|
|
1039
1048
|
|
|
1040
1049
|
.rendered-markdown .callout-note,
|
package/index.ts
CHANGED
|
@@ -6210,9 +6210,12 @@ function buildThemeCssVars(style: StudioThemeStyle): Record<string, string> {
|
|
|
6210
6210
|
const paneActiveBorder = capBorderContrast(rawPaneActiveBorder, style.palette.panel, style.mode === "light" ? 1.38 : 1.45);
|
|
6211
6211
|
const accentContrast = style.accentContrast ?? (style.mode === "light" ? "#ffffff" : "#0e1616");
|
|
6212
6212
|
const errorContrast = style.errorContrast ?? readableTextOn(style.palette.error);
|
|
6213
|
+
const quoteText = blendColors(style.palette.text, style.palette.mdQuote, style.mode === "light" ? 0.34 : 0.28);
|
|
6214
|
+
const quoteBorder = blendColors(style.palette.mdQuoteBorder, style.palette.text, style.mode === "light" ? 0.18 : 0.24);
|
|
6215
|
+
const markdownMarkerText = blendColors(style.palette.text, style.palette.muted, style.mode === "light" ? 0.28 : 0.24);
|
|
6213
6216
|
const blockquoteBg = withAlpha(
|
|
6214
|
-
|
|
6215
|
-
style.mode === "light" ? 0.10 : 0.
|
|
6217
|
+
quoteBorder,
|
|
6218
|
+
style.mode === "light" ? 0.10 : 0.15,
|
|
6216
6219
|
style.mode === "light" ? "rgba(15, 23, 42, 0.04)" : "rgba(255, 255, 255, 0.05)",
|
|
6217
6220
|
);
|
|
6218
6221
|
const tableAltBg = withAlpha(
|
|
@@ -6285,6 +6288,9 @@ function buildThemeCssVars(style: StudioThemeStyle): Record<string, string> {
|
|
|
6285
6288
|
"--md-codeblock-border": codeBlockBorder,
|
|
6286
6289
|
"--md-quote": style.palette.mdQuote,
|
|
6287
6290
|
"--md-quote-border": style.palette.mdQuoteBorder,
|
|
6291
|
+
"--studio-quote-text": quoteText,
|
|
6292
|
+
"--studio-quote-border": quoteBorder,
|
|
6293
|
+
"--studio-markdown-marker-text": markdownMarkerText,
|
|
6288
6294
|
"--md-hr": style.palette.mdHr,
|
|
6289
6295
|
"--md-list-bullet": style.palette.mdListBullet,
|
|
6290
6296
|
"--syntax-comment": style.palette.syntaxComment,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pi-studio",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.7",
|
|
4
4
|
"description": "Two-pane browser workspace for pi with prompt/response editing, annotations, critiques, prompt/response history, and live Markdown/LaTeX/code preview",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|