pi-studio 0.9.53 → 0.9.55
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 +23 -0
- package/README.md +8 -3
- package/ROADMAP.md +12 -4
- package/client/studio-client.js +890 -166
- package/client/studio.css +191 -5
- package/index.ts +517 -147
- package/package.json +1 -1
- package/shared/studio-disk-revisions.js +558 -0
- package/shared/studio-file-watcher.js +181 -0
- package/shared/studio-side-question.js +32 -3
- package/shared/studio-workspace-state.js +4 -0
package/client/studio.css
CHANGED
|
@@ -222,9 +222,30 @@
|
|
|
222
222
|
}
|
|
223
223
|
|
|
224
224
|
button {
|
|
225
|
+
-webkit-appearance: none;
|
|
226
|
+
appearance: none;
|
|
225
227
|
cursor: pointer;
|
|
226
228
|
}
|
|
227
229
|
|
|
230
|
+
.studio-flat-select {
|
|
231
|
+
-webkit-appearance: none;
|
|
232
|
+
appearance: none;
|
|
233
|
+
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23717a84' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
|
|
234
|
+
background-position: right 8px center !important;
|
|
235
|
+
background-repeat: no-repeat !important;
|
|
236
|
+
background-size: 10px 6px !important;
|
|
237
|
+
padding-right: 26px !important;
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
@media (forced-colors: active) {
|
|
241
|
+
.studio-flat-select {
|
|
242
|
+
-webkit-appearance: auto;
|
|
243
|
+
appearance: auto;
|
|
244
|
+
background-image: none !important;
|
|
245
|
+
padding-right: 10px !important;
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
|
|
228
249
|
button:not(:disabled):hover,
|
|
229
250
|
select:hover {
|
|
230
251
|
background: var(--panel-2);
|
|
@@ -442,20 +463,52 @@
|
|
|
442
463
|
color: var(--accent);
|
|
443
464
|
}
|
|
444
465
|
|
|
466
|
+
.studio-header-select-wrap {
|
|
467
|
+
position: relative;
|
|
468
|
+
display: inline-flex;
|
|
469
|
+
align-items: center;
|
|
470
|
+
min-width: 0;
|
|
471
|
+
}
|
|
472
|
+
|
|
473
|
+
.studio-header-select-wrap::after {
|
|
474
|
+
content: "⌄";
|
|
475
|
+
position: absolute;
|
|
476
|
+
top: 50%;
|
|
477
|
+
right: 4px;
|
|
478
|
+
color: var(--studio-info-text, var(--muted));
|
|
479
|
+
font-size: 14px;
|
|
480
|
+
font-weight: 600;
|
|
481
|
+
line-height: 1;
|
|
482
|
+
pointer-events: none;
|
|
483
|
+
transform: translateY(-58%);
|
|
484
|
+
}
|
|
485
|
+
|
|
486
|
+
.studio-header-select-wrap:hover::after,
|
|
487
|
+
.studio-header-select-wrap:focus-within::after {
|
|
488
|
+
color: var(--text);
|
|
489
|
+
}
|
|
490
|
+
|
|
445
491
|
.section-header select {
|
|
446
492
|
font-weight: 600;
|
|
447
493
|
font-size: 14px;
|
|
448
494
|
border: none;
|
|
449
495
|
border-radius: 4px;
|
|
450
496
|
background: inherit;
|
|
497
|
+
background-image: none;
|
|
451
498
|
color: inherit;
|
|
452
499
|
cursor: pointer;
|
|
453
|
-
padding: 2px 4px;
|
|
500
|
+
padding: 2px 18px 2px 4px;
|
|
454
501
|
margin: 0;
|
|
455
|
-
-webkit-appearance:
|
|
456
|
-
appearance:
|
|
502
|
+
-webkit-appearance: none;
|
|
503
|
+
appearance: none;
|
|
457
504
|
}
|
|
458
505
|
|
|
506
|
+
.section-header select:hover,
|
|
507
|
+
.section-header select:focus {
|
|
508
|
+
background-color: var(--studio-header-action-hover-bg, var(--panel-2));
|
|
509
|
+
}
|
|
510
|
+
|
|
511
|
+
body[data-studio-mode="editor-only"] #editorViewSelectWrap,
|
|
459
512
|
body[data-studio-mode="editor-only"] #editorViewSelect,
|
|
460
513
|
body[data-studio-mode="editor-only"] #sendRunBtn,
|
|
461
514
|
body[data-studio-mode="editor-only"] #queueSteerBtn,
|
|
@@ -464,7 +517,9 @@
|
|
|
464
517
|
body[data-studio-mode="editor-only"] #critiqueBtn,
|
|
465
518
|
body[data-studio-mode="editor-only"] #showMeBtn,
|
|
466
519
|
body[data-studio-mode="editor-only"] #showMeResponseBtn,
|
|
520
|
+
body[data-studio-mode="editor-only"] #followSelectWrap,
|
|
467
521
|
body[data-studio-mode="editor-only"] #followSelect,
|
|
522
|
+
body[data-studio-mode="editor-only"] #responseHighlightSelectWrap,
|
|
468
523
|
body[data-studio-mode="editor-only"] #responseHighlightSelect,
|
|
469
524
|
body[data-studio-mode="editor-only"] #pullLatestBtn,
|
|
470
525
|
body[data-studio-mode="editor-only"] #historyPrevBtn,
|
|
@@ -496,6 +551,49 @@
|
|
|
496
551
|
font-size: 14px;
|
|
497
552
|
}
|
|
498
553
|
|
|
554
|
+
body[data-watched-file-preview="1"] #leftSectionHeader .section-header-main::before {
|
|
555
|
+
content: "Source (read-only)";
|
|
556
|
+
}
|
|
557
|
+
|
|
558
|
+
body[data-watched-file-preview="1"] #rightSectionHeader .section-header-main::before {
|
|
559
|
+
content: "Watched preview";
|
|
560
|
+
}
|
|
561
|
+
|
|
562
|
+
body[data-watched-file-preview="1"] #saveAsBtn,
|
|
563
|
+
body[data-watched-file-preview="1"] #saveOverBtn,
|
|
564
|
+
body[data-watched-file-preview="1"] #refreshFromDiskBtn,
|
|
565
|
+
body[data-watched-file-preview="1"] #clearWorkspaceBtn,
|
|
566
|
+
body[data-watched-file-preview="1"] #importFileBtn,
|
|
567
|
+
body[data-watched-file-preview="1"] #suggestCompletionBtn,
|
|
568
|
+
body[data-watched-file-preview="1"] #suggestCompletionOptionsBtn,
|
|
569
|
+
body[data-watched-file-preview="1"] #insertHeaderBtn,
|
|
570
|
+
body[data-watched-file-preview="1"] #annotationModeSelect,
|
|
571
|
+
body[data-watched-file-preview="1"] #stripAnnotationsBtn,
|
|
572
|
+
body[data-watched-file-preview="1"] #saveAnnotatedBtn,
|
|
573
|
+
body[data-watched-file-preview="1"] #getEditorBtn {
|
|
574
|
+
display: none !important;
|
|
575
|
+
}
|
|
576
|
+
|
|
577
|
+
body[data-watched-file-preview="1"] #sourceText {
|
|
578
|
+
cursor: default;
|
|
579
|
+
}
|
|
580
|
+
|
|
581
|
+
.studio-watched-preview-error {
|
|
582
|
+
position: sticky;
|
|
583
|
+
top: 8px;
|
|
584
|
+
z-index: 2;
|
|
585
|
+
display: flex;
|
|
586
|
+
align-items: center;
|
|
587
|
+
justify-content: space-between;
|
|
588
|
+
gap: 10px;
|
|
589
|
+
margin: 8px 0;
|
|
590
|
+
box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
|
|
591
|
+
}
|
|
592
|
+
|
|
593
|
+
.studio-watched-preview-error button {
|
|
594
|
+
flex: 0 0 auto;
|
|
595
|
+
}
|
|
596
|
+
|
|
499
597
|
.reference-meta {
|
|
500
598
|
padding: 8px 10px;
|
|
501
599
|
border-bottom: 1px solid var(--panel-border);
|
|
@@ -3009,6 +3107,17 @@
|
|
|
3009
3107
|
font-style: italic;
|
|
3010
3108
|
}
|
|
3011
3109
|
|
|
3110
|
+
.studio-preview-staging {
|
|
3111
|
+
position: fixed !important;
|
|
3112
|
+
top: 0;
|
|
3113
|
+
left: -100000px;
|
|
3114
|
+
z-index: -1;
|
|
3115
|
+
max-height: none !important;
|
|
3116
|
+
overflow: visible !important;
|
|
3117
|
+
visibility: hidden;
|
|
3118
|
+
pointer-events: none;
|
|
3119
|
+
}
|
|
3120
|
+
|
|
3012
3121
|
.panel-scroll.preview-pending::after {
|
|
3013
3122
|
content: "Updating";
|
|
3014
3123
|
position: absolute;
|
|
@@ -3202,6 +3311,20 @@
|
|
|
3202
3311
|
flex: 0 0 auto;
|
|
3203
3312
|
}
|
|
3204
3313
|
|
|
3314
|
+
#responseActions .response-option-select-wrap {
|
|
3315
|
+
width: auto;
|
|
3316
|
+
flex: 0 0 auto;
|
|
3317
|
+
}
|
|
3318
|
+
|
|
3319
|
+
#responseActions .response-option-select-wrap select {
|
|
3320
|
+
width: 100%;
|
|
3321
|
+
min-width: 0;
|
|
3322
|
+
padding-right: 26px;
|
|
3323
|
+
-webkit-appearance: none;
|
|
3324
|
+
appearance: none;
|
|
3325
|
+
background-image: none;
|
|
3326
|
+
}
|
|
3327
|
+
|
|
3205
3328
|
#critiqueView.git-changes-host {
|
|
3206
3329
|
flex: 1 1 auto;
|
|
3207
3330
|
min-height: 0;
|
|
@@ -4861,15 +4984,43 @@
|
|
|
4861
4984
|
line-height: 1.35;
|
|
4862
4985
|
}
|
|
4863
4986
|
|
|
4987
|
+
.studio-menu-select-wrap {
|
|
4988
|
+
position: relative;
|
|
4989
|
+
display: flex;
|
|
4990
|
+
width: 100%;
|
|
4991
|
+
min-width: 0;
|
|
4992
|
+
}
|
|
4993
|
+
|
|
4994
|
+
.studio-menu-select-wrap::after {
|
|
4995
|
+
content: "⌄";
|
|
4996
|
+
position: absolute;
|
|
4997
|
+
top: 50%;
|
|
4998
|
+
right: 8px;
|
|
4999
|
+
color: var(--studio-info-text, var(--muted));
|
|
5000
|
+
font-size: 14px;
|
|
5001
|
+
font-weight: 600;
|
|
5002
|
+
line-height: 1;
|
|
5003
|
+
pointer-events: none;
|
|
5004
|
+
transform: translateY(-58%);
|
|
5005
|
+
}
|
|
5006
|
+
|
|
5007
|
+
.studio-menu-select-wrap:hover::after,
|
|
5008
|
+
.studio-menu-select-wrap:focus-within::after {
|
|
5009
|
+
color: var(--text);
|
|
5010
|
+
}
|
|
5011
|
+
|
|
4864
5012
|
.footer-model-menu-field select {
|
|
4865
5013
|
width: 100%;
|
|
4866
5014
|
min-width: 0;
|
|
4867
5015
|
background: var(--panel-2);
|
|
5016
|
+
background-image: none;
|
|
4868
5017
|
color: var(--text);
|
|
4869
5018
|
border: 1px solid var(--control-border);
|
|
4870
5019
|
border-radius: 8px;
|
|
4871
|
-
padding: 5px 7px;
|
|
5020
|
+
padding: 5px 24px 5px 7px;
|
|
4872
5021
|
font: inherit;
|
|
5022
|
+
-webkit-appearance: none;
|
|
5023
|
+
appearance: none;
|
|
4873
5024
|
}
|
|
4874
5025
|
|
|
4875
5026
|
.footer-model-menu-note {
|
|
@@ -5617,6 +5768,10 @@
|
|
|
5617
5768
|
font-size: 12px;
|
|
5618
5769
|
}
|
|
5619
5770
|
|
|
5771
|
+
body.studio-ui-refresh #responseActions .response-option-select-wrap select {
|
|
5772
|
+
padding-right: 24px;
|
|
5773
|
+
}
|
|
5774
|
+
|
|
5620
5775
|
|
|
5621
5776
|
body.studio-ui-refresh main {
|
|
5622
5777
|
gap: 0;
|
|
@@ -5782,8 +5937,11 @@
|
|
|
5782
5937
|
body.studio-ui-refresh #rightSectionHeader #rightViewSelect {
|
|
5783
5938
|
font-size: 14px;
|
|
5784
5939
|
font-weight: 700;
|
|
5785
|
-
padding: 3px 5px;
|
|
5940
|
+
padding: 3px 20px 3px 5px;
|
|
5786
5941
|
max-width: 230px;
|
|
5942
|
+
-webkit-appearance: none;
|
|
5943
|
+
appearance: none;
|
|
5944
|
+
background-image: none;
|
|
5787
5945
|
}
|
|
5788
5946
|
|
|
5789
5947
|
body.studio-ui-refresh .studio-refresh-static-title {
|
|
@@ -5795,6 +5953,34 @@
|
|
|
5795
5953
|
white-space: nowrap;
|
|
5796
5954
|
}
|
|
5797
5955
|
|
|
5956
|
+
body.studio-ui-refresh .studio-watched-source-title {
|
|
5957
|
+
padding-right: 1px;
|
|
5958
|
+
}
|
|
5959
|
+
|
|
5960
|
+
body.studio-ui-refresh .studio-watched-source-read-only-badge {
|
|
5961
|
+
display: inline-flex;
|
|
5962
|
+
align-items: center;
|
|
5963
|
+
gap: 5px;
|
|
5964
|
+
min-height: 20px;
|
|
5965
|
+
padding: 1px 4px;
|
|
5966
|
+
border: 0;
|
|
5967
|
+
background: transparent;
|
|
5968
|
+
color: var(--studio-info-text, var(--muted));
|
|
5969
|
+
font-size: 11px;
|
|
5970
|
+
font-weight: 500;
|
|
5971
|
+
line-height: 1.2;
|
|
5972
|
+
white-space: nowrap;
|
|
5973
|
+
}
|
|
5974
|
+
|
|
5975
|
+
body.studio-ui-refresh .studio-watched-source-read-only-badge::before {
|
|
5976
|
+
content: "";
|
|
5977
|
+
width: 5px;
|
|
5978
|
+
height: 5px;
|
|
5979
|
+
border-radius: 999px;
|
|
5980
|
+
background: currentColor;
|
|
5981
|
+
opacity: 0.72;
|
|
5982
|
+
}
|
|
5983
|
+
|
|
5798
5984
|
body.studio-ui-refresh #leftFocusBtn,
|
|
5799
5985
|
body.studio-ui-refresh #rightFocusBtn {
|
|
5800
5986
|
width: 29px;
|