@firstpick/pi-package-webui 0.6.4 → 0.6.5
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/bin/pi-webui.mjs +1076 -43
- package/lib/git-worktrees.mjs +42 -0
- package/lib/trust-boundaries.mjs +2 -0
- package/package.json +2 -2
- package/public/app.js +2140 -164
- package/public/index.html +25 -1
- package/public/styles.css +520 -2
- package/tests/http-endpoints-harness.test.mjs +390 -0
- package/tests/mobile-static.test.mjs +3 -0
package/public/index.html
CHANGED
|
@@ -214,7 +214,7 @@
|
|
|
214
214
|
aria-haspopup="menu"
|
|
215
215
|
aria-expanded="false"
|
|
216
216
|
aria-controls="optionsMenu"
|
|
217
|
-
data-tooltip="Options: command palette, natural conversation, resume, reload, remote, name, clone, settings, export, fork, or tree."
|
|
217
|
+
data-tooltip="Options: command palette, Git-footer Visibility, natural conversation, resume, reload, remote, name, clone, settings, export, fork, or tree."
|
|
218
218
|
><svg class="composer-icon" viewBox="0 0 24 24" aria-hidden="true" focusable="false"><path d="M4 7h16M4 12h16M4 17h16" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"/><circle cx="8" cy="7" r="1.6" fill="currentColor"/><circle cx="16" cy="12" r="1.6" fill="currentColor"/><circle cx="11" cy="17" r="1.6" fill="currentColor"/></svg></button>
|
|
219
219
|
<div id="optionsMenu" class="composer-publish-menu-panel composer-options-menu-panel" role="menu" aria-label="Common Pi options">
|
|
220
220
|
<button id="optionsCommandPaletteButton" class="composer-publish-menu-item composer-options-menu-item" type="button" role="menuitem">
|
|
@@ -229,6 +229,9 @@
|
|
|
229
229
|
<button id="optionsStatsButton" class="composer-publish-menu-item composer-options-menu-item" type="button" role="menuitem" data-command="/stats-webui" hidden>
|
|
230
230
|
<span>Stats Dashboard</span>
|
|
231
231
|
</button>
|
|
232
|
+
<button id="optionsFooterVisibilityButton" class="composer-publish-menu-item composer-options-menu-item" type="button" role="menuitem" hidden>
|
|
233
|
+
<span>Git-footer Visibility</span>
|
|
234
|
+
</button>
|
|
232
235
|
<button id="optionsForkButton" class="composer-publish-menu-item composer-options-menu-item" type="button" role="menuitem" data-command="/fork">
|
|
233
236
|
<span>Fork</span>
|
|
234
237
|
</button>
|
|
@@ -624,6 +627,8 @@
|
|
|
624
627
|
<div id="fileContextMenu" class="file-context-menu" role="menu" hidden>
|
|
625
628
|
<button type="button" role="menuitem" data-file-menu-action="open-default">Open in Default Editor</button>
|
|
626
629
|
<button type="button" role="menuitem" data-file-menu-action="open-webui">Open in WebUI</button>
|
|
630
|
+
<button type="button" role="menuitem" data-file-menu-action="move">Move/Rename…</button>
|
|
631
|
+
<button type="button" role="menuitem" class="danger" data-file-menu-action="delete">Delete…</button>
|
|
627
632
|
</div>
|
|
628
633
|
|
|
629
634
|
<dialog id="extensionDialog" class="extension-dialog">
|
|
@@ -665,6 +670,7 @@
|
|
|
665
670
|
</div>
|
|
666
671
|
<div class="git-changes-actions">
|
|
667
672
|
<button id="gitChangesRefreshButton" type="button">Refresh</button>
|
|
673
|
+
<button id="gitChangesFetchButton" type="button">Fetch</button>
|
|
668
674
|
<button id="gitChangesPullButton" class="primary" type="button" disabled>Pull</button>
|
|
669
675
|
</div>
|
|
670
676
|
</div>
|
|
@@ -804,6 +810,24 @@
|
|
|
804
810
|
</form>
|
|
805
811
|
</dialog>
|
|
806
812
|
|
|
813
|
+
<dialog id="gitFooterVisibilityDialog" class="extension-dialog git-footer-visibility-dialog">
|
|
814
|
+
<form method="dialog">
|
|
815
|
+
<h2>Git-footer Visibility</h2>
|
|
816
|
+
<p class="muted">Select which Git footer cards, buttons, popovers, and modal affordances are visible in the Web UI. Changes use <code>/git-footer-visibility</code> runtime overrides.</p>
|
|
817
|
+
<div class="git-footer-visibility-toolbar" aria-label="Git-footer Visibility quick actions">
|
|
818
|
+
<button id="gitFooterVisibilitySelectAllButton" type="button">Select all</button>
|
|
819
|
+
<button id="gitFooterVisibilitySelectNoneButton" type="button">Select none</button>
|
|
820
|
+
</div>
|
|
821
|
+
<div id="gitFooterVisibilityBody" class="git-footer-visibility-body"></div>
|
|
822
|
+
<p id="gitFooterVisibilityStatus" class="git-footer-visibility-status muted" role="status" aria-live="polite"></p>
|
|
823
|
+
<menu>
|
|
824
|
+
<button id="gitFooterVisibilityCloseButton" type="button">Cancel</button>
|
|
825
|
+
<button id="gitFooterVisibilityResetButton" type="button">Reset WebUI</button>
|
|
826
|
+
<button id="gitFooterVisibilityApplyButton" class="primary" type="button">Apply</button>
|
|
827
|
+
</menu>
|
|
828
|
+
</form>
|
|
829
|
+
</dialog>
|
|
830
|
+
|
|
807
831
|
<dialog id="skillEditorDialog" class="extension-dialog skill-editor-dialog">
|
|
808
832
|
<form method="dialog">
|
|
809
833
|
<h2 id="skillEditorTitle">Edit skill</h2>
|
package/public/styles.css
CHANGED
|
@@ -1235,7 +1235,7 @@ body.embedded-split .side-panel-backdrop {
|
|
|
1235
1235
|
}
|
|
1236
1236
|
.file-tree-item {
|
|
1237
1237
|
display: grid;
|
|
1238
|
-
grid-template-columns: auto minmax(0, 1fr) auto;
|
|
1238
|
+
grid-template-columns: auto minmax(0, 1fr) auto auto;
|
|
1239
1239
|
gap: 0.36rem;
|
|
1240
1240
|
align-items: center;
|
|
1241
1241
|
width: 100%;
|
|
@@ -1256,6 +1256,87 @@ body.embedded-split .side-panel-backdrop {
|
|
|
1256
1256
|
background: rgba(var(--ctp-surface-rgb), 0.34);
|
|
1257
1257
|
box-shadow: inset 2px 0 0 var(--ctp-blue);
|
|
1258
1258
|
}
|
|
1259
|
+
.file-tree-item.file-tree-draggable {
|
|
1260
|
+
cursor: grab;
|
|
1261
|
+
}
|
|
1262
|
+
.file-tree-node.dragging > .file-tree-item {
|
|
1263
|
+
cursor: grabbing;
|
|
1264
|
+
opacity: 0.58;
|
|
1265
|
+
border-color: rgba(137, 180, 250, 0.46);
|
|
1266
|
+
background: rgba(137, 180, 250, 0.12);
|
|
1267
|
+
}
|
|
1268
|
+
.file-tree-node.drop-target > .file-tree-item,
|
|
1269
|
+
.file-tree.drag-root-drop {
|
|
1270
|
+
border-color: rgba(166, 227, 161, 0.62);
|
|
1271
|
+
background: rgba(166, 227, 161, 0.12);
|
|
1272
|
+
box-shadow: inset 2px 0 0 var(--ctp-green), 0 0 0 1px rgba(166, 227, 161, 0.12);
|
|
1273
|
+
}
|
|
1274
|
+
.file-tree-node.drop-blocked > .file-tree-item,
|
|
1275
|
+
.file-tree.drop-blocked {
|
|
1276
|
+
border-color: rgba(243, 139, 168, 0.56);
|
|
1277
|
+
background: rgba(243, 139, 168, 0.10);
|
|
1278
|
+
box-shadow: inset 2px 0 0 var(--ctp-red);
|
|
1279
|
+
}
|
|
1280
|
+
.file-tree-node.git-changed {
|
|
1281
|
+
--file-tree-git-color: var(--ctp-yellow);
|
|
1282
|
+
--file-tree-git-bg: rgba(249, 226, 175, 0.10);
|
|
1283
|
+
--file-tree-git-border: rgba(249, 226, 175, 0.36);
|
|
1284
|
+
}
|
|
1285
|
+
.file-tree-node.git-staged {
|
|
1286
|
+
--file-tree-git-color: var(--ctp-green);
|
|
1287
|
+
--file-tree-git-bg: rgba(166, 227, 161, 0.10);
|
|
1288
|
+
--file-tree-git-border: rgba(166, 227, 161, 0.34);
|
|
1289
|
+
}
|
|
1290
|
+
.file-tree-node.git-untracked {
|
|
1291
|
+
--file-tree-git-color: var(--ctp-blue);
|
|
1292
|
+
--file-tree-git-bg: rgba(137, 180, 250, 0.10);
|
|
1293
|
+
--file-tree-git-border: rgba(137, 180, 250, 0.34);
|
|
1294
|
+
}
|
|
1295
|
+
.file-tree-node.git-conflicted {
|
|
1296
|
+
--file-tree-git-color: var(--ctp-red);
|
|
1297
|
+
--file-tree-git-bg: rgba(243, 139, 168, 0.12);
|
|
1298
|
+
--file-tree-git-border: rgba(243, 139, 168, 0.42);
|
|
1299
|
+
}
|
|
1300
|
+
.file-tree-node.git-modified {
|
|
1301
|
+
--file-tree-git-color: var(--ctp-yellow);
|
|
1302
|
+
--file-tree-git-bg: rgba(249, 226, 175, 0.10);
|
|
1303
|
+
--file-tree-git-border: rgba(249, 226, 175, 0.36);
|
|
1304
|
+
}
|
|
1305
|
+
.file-tree-node.git-changed > .file-tree-item {
|
|
1306
|
+
border-color: var(--file-tree-git-border);
|
|
1307
|
+
background: linear-gradient(90deg, var(--file-tree-git-bg), transparent 72%);
|
|
1308
|
+
box-shadow: inset 2px 0 0 var(--file-tree-git-color);
|
|
1309
|
+
}
|
|
1310
|
+
.file-tree-node.git-descendants > .file-tree-item {
|
|
1311
|
+
border-color: color-mix(in srgb, var(--file-tree-git-border) 72%, transparent);
|
|
1312
|
+
background: linear-gradient(90deg, color-mix(in srgb, var(--file-tree-git-bg) 70%, transparent), transparent 78%);
|
|
1313
|
+
box-shadow: inset 2px 0 0 color-mix(in srgb, var(--file-tree-git-color) 72%, transparent);
|
|
1314
|
+
}
|
|
1315
|
+
.file-tree-node.selected.git-changed > .file-tree-item {
|
|
1316
|
+
box-shadow: inset 2px 0 0 var(--ctp-blue), inset 5px 0 0 var(--file-tree-git-color);
|
|
1317
|
+
}
|
|
1318
|
+
.file-tree-node.git-direct > .file-tree-item .file-tree-name {
|
|
1319
|
+
color: var(--ctp-text);
|
|
1320
|
+
font-weight: 900;
|
|
1321
|
+
}
|
|
1322
|
+
.file-tree-git-badge {
|
|
1323
|
+
justify-self: end;
|
|
1324
|
+
min-width: 1.35rem;
|
|
1325
|
+
padding: 0.08rem 0.28rem;
|
|
1326
|
+
color: var(--file-tree-git-color, var(--ctp-yellow));
|
|
1327
|
+
border: 1px solid var(--file-tree-git-border, rgba(249, 226, 175, 0.36));
|
|
1328
|
+
border-radius: 999px;
|
|
1329
|
+
background: rgba(var(--ctp-crust-rgb), 0.42);
|
|
1330
|
+
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
|
|
1331
|
+
font-size: 0.58rem;
|
|
1332
|
+
font-weight: 950;
|
|
1333
|
+
letter-spacing: 0.02em;
|
|
1334
|
+
line-height: 1.15;
|
|
1335
|
+
text-align: center;
|
|
1336
|
+
}
|
|
1337
|
+
.file-tree-git-badge.descendants {
|
|
1338
|
+
opacity: 0.82;
|
|
1339
|
+
}
|
|
1259
1340
|
.file-tree-icon {
|
|
1260
1341
|
display: inline-grid;
|
|
1261
1342
|
place-items: center;
|
|
@@ -1289,7 +1370,7 @@ body.embedded-split .side-panel-backdrop {
|
|
|
1289
1370
|
white-space: nowrap;
|
|
1290
1371
|
}
|
|
1291
1372
|
.file-tree-search-item {
|
|
1292
|
-
grid-template-columns: auto minmax(0, 1fr) auto;
|
|
1373
|
+
grid-template-columns: auto minmax(0, 1fr) auto auto;
|
|
1293
1374
|
}
|
|
1294
1375
|
.file-tree-kind {
|
|
1295
1376
|
color: rgba(var(--ctp-subtext-rgb), 0.64);
|
|
@@ -1705,6 +1786,52 @@ body.embedded-split .side-panel-backdrop {
|
|
|
1705
1786
|
background: rgba(var(--ctp-crust-rgb), 0.46);
|
|
1706
1787
|
box-shadow: inset 0 1px 0 rgba(255,255,255,0.035), 0 0 1rem rgba(148, 226, 213, 0.05);
|
|
1707
1788
|
}
|
|
1789
|
+
.optional-feature-section {
|
|
1790
|
+
display: grid;
|
|
1791
|
+
gap: 0.48rem;
|
|
1792
|
+
min-width: 0;
|
|
1793
|
+
padding: 0.58rem;
|
|
1794
|
+
border: 1px solid rgba(180, 190, 254, 0.12);
|
|
1795
|
+
border-radius: 0.82rem;
|
|
1796
|
+
background: rgba(var(--ctp-base-rgb), 0.20);
|
|
1797
|
+
}
|
|
1798
|
+
.optional-feature-section-header {
|
|
1799
|
+
display: flex;
|
|
1800
|
+
justify-content: space-between;
|
|
1801
|
+
gap: 0.55rem;
|
|
1802
|
+
align-items: center;
|
|
1803
|
+
}
|
|
1804
|
+
.optional-feature-section-title {
|
|
1805
|
+
min-width: 0;
|
|
1806
|
+
color: rgba(var(--ctp-text-rgb), 0.92);
|
|
1807
|
+
font-size: 0.74rem;
|
|
1808
|
+
font-weight: 900;
|
|
1809
|
+
letter-spacing: 0.04em;
|
|
1810
|
+
text-transform: uppercase;
|
|
1811
|
+
}
|
|
1812
|
+
.optional-feature-section-count {
|
|
1813
|
+
display: inline-flex;
|
|
1814
|
+
align-items: center;
|
|
1815
|
+
justify-content: center;
|
|
1816
|
+
min-width: 1.45rem;
|
|
1817
|
+
min-height: 1.2rem;
|
|
1818
|
+
padding: 0 0.34rem;
|
|
1819
|
+
border: 1px solid rgba(148, 226, 213, 0.24);
|
|
1820
|
+
border-radius: 999px;
|
|
1821
|
+
color: var(--ctp-teal);
|
|
1822
|
+
background: rgba(148, 226, 213, 0.08);
|
|
1823
|
+
font-size: 0.66rem;
|
|
1824
|
+
font-weight: 900;
|
|
1825
|
+
}
|
|
1826
|
+
.optional-feature-section-description {
|
|
1827
|
+
color: rgba(var(--ctp-subtext-rgb), 0.68);
|
|
1828
|
+
font-size: 0.7rem;
|
|
1829
|
+
line-height: 1.35;
|
|
1830
|
+
}
|
|
1831
|
+
.optional-feature-section-list {
|
|
1832
|
+
display: grid;
|
|
1833
|
+
gap: 0.48rem;
|
|
1834
|
+
}
|
|
1708
1835
|
.codex-usage-actions,
|
|
1709
1836
|
.claude-usage-actions {
|
|
1710
1837
|
display: flex;
|
|
@@ -7250,6 +7377,111 @@ button.composer-skill-tag:focus-visible {
|
|
|
7250
7377
|
padding: 0;
|
|
7251
7378
|
margin: 1rem 0 0;
|
|
7252
7379
|
}
|
|
7380
|
+
.extension-dialog.git-footer-visibility-dialog {
|
|
7381
|
+
width: min(72rem, calc(100vw - 1.5rem));
|
|
7382
|
+
max-height: min(86vh, calc(var(--visual-viewport-height, 100dvh) - 1.5rem));
|
|
7383
|
+
overflow: hidden;
|
|
7384
|
+
border-color: rgba(137, 220, 235, 0.44);
|
|
7385
|
+
box-shadow: 0 2rem 5rem var(--shadow), 0 0 2rem rgba(137, 220, 235, 0.18);
|
|
7386
|
+
}
|
|
7387
|
+
.git-footer-visibility-dialog form {
|
|
7388
|
+
display: grid;
|
|
7389
|
+
grid-template-rows: auto auto auto minmax(0, 1fr) auto auto;
|
|
7390
|
+
max-height: calc(min(86vh, var(--visual-viewport-height, 100dvh)) - 2rem);
|
|
7391
|
+
min-height: 0;
|
|
7392
|
+
}
|
|
7393
|
+
.git-footer-visibility-dialog h2 {
|
|
7394
|
+
color: var(--ctp-sky);
|
|
7395
|
+
text-shadow: 0 0 1rem rgba(137, 220, 235, 0.22);
|
|
7396
|
+
}
|
|
7397
|
+
.git-footer-visibility-dialog code {
|
|
7398
|
+
color: var(--ctp-teal);
|
|
7399
|
+
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
|
|
7400
|
+
font-weight: 800;
|
|
7401
|
+
}
|
|
7402
|
+
.git-footer-visibility-toolbar {
|
|
7403
|
+
display: flex;
|
|
7404
|
+
flex-wrap: wrap;
|
|
7405
|
+
gap: 0.5rem;
|
|
7406
|
+
margin: 0.75rem 0;
|
|
7407
|
+
}
|
|
7408
|
+
.git-footer-visibility-toolbar button {
|
|
7409
|
+
min-width: 8rem;
|
|
7410
|
+
}
|
|
7411
|
+
.git-footer-visibility-body {
|
|
7412
|
+
display: grid;
|
|
7413
|
+
gap: 0.85rem;
|
|
7414
|
+
min-height: 0;
|
|
7415
|
+
max-height: min(58vh, 42rem);
|
|
7416
|
+
overflow: auto;
|
|
7417
|
+
padding: 0.15rem 0.18rem 0.25rem 0;
|
|
7418
|
+
overscroll-behavior: contain;
|
|
7419
|
+
scrollbar-width: thin;
|
|
7420
|
+
}
|
|
7421
|
+
.git-footer-visibility-group {
|
|
7422
|
+
display: grid;
|
|
7423
|
+
gap: 0.65rem;
|
|
7424
|
+
padding: 0.75rem;
|
|
7425
|
+
border: 1px solid rgba(137, 220, 235, 0.18);
|
|
7426
|
+
border-radius: 0.95rem;
|
|
7427
|
+
background:
|
|
7428
|
+
linear-gradient(120deg, rgba(137, 220, 235, 0.08), rgba(166, 227, 161, 0.05)),
|
|
7429
|
+
rgba(var(--ctp-crust-rgb), 0.46);
|
|
7430
|
+
}
|
|
7431
|
+
.git-footer-visibility-group-header {
|
|
7432
|
+
display: grid;
|
|
7433
|
+
gap: 0.18rem;
|
|
7434
|
+
}
|
|
7435
|
+
.git-footer-visibility-group-header h3,
|
|
7436
|
+
.git-footer-visibility-group-header p {
|
|
7437
|
+
margin: 0;
|
|
7438
|
+
}
|
|
7439
|
+
.git-footer-visibility-group-header h3 {
|
|
7440
|
+
color: var(--ctp-teal);
|
|
7441
|
+
font-size: 0.92rem;
|
|
7442
|
+
font-weight: 900;
|
|
7443
|
+
letter-spacing: 0.04em;
|
|
7444
|
+
}
|
|
7445
|
+
.git-footer-visibility-grid {
|
|
7446
|
+
display: grid;
|
|
7447
|
+
grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
|
|
7448
|
+
gap: 0.56rem;
|
|
7449
|
+
}
|
|
7450
|
+
.git-footer-visibility-toggle {
|
|
7451
|
+
align-items: flex-start;
|
|
7452
|
+
min-height: 5.4rem;
|
|
7453
|
+
background:
|
|
7454
|
+
linear-gradient(135deg, rgba(var(--ctp-surface-rgb), 0.42), rgba(var(--ctp-crust-rgb), 0.78));
|
|
7455
|
+
}
|
|
7456
|
+
.git-footer-visibility-toggle input {
|
|
7457
|
+
margin-top: 0.16rem;
|
|
7458
|
+
}
|
|
7459
|
+
.git-footer-visibility-toggle-text {
|
|
7460
|
+
display: grid;
|
|
7461
|
+
gap: 0.08rem;
|
|
7462
|
+
min-width: 0;
|
|
7463
|
+
}
|
|
7464
|
+
.git-footer-visibility-key {
|
|
7465
|
+
justify-self: start;
|
|
7466
|
+
margin-top: 0.18rem;
|
|
7467
|
+
padding: 0.08rem 0.36rem;
|
|
7468
|
+
border: 1px solid rgba(148, 226, 213, 0.20);
|
|
7469
|
+
border-radius: 999px;
|
|
7470
|
+
background: rgba(148, 226, 213, 0.08);
|
|
7471
|
+
font-size: 0.68rem;
|
|
7472
|
+
line-height: 1.25;
|
|
7473
|
+
overflow-wrap: anywhere;
|
|
7474
|
+
}
|
|
7475
|
+
.git-footer-visibility-status {
|
|
7476
|
+
min-height: 1.2rem;
|
|
7477
|
+
margin: 0.72rem 0 0;
|
|
7478
|
+
font-size: 0.82rem;
|
|
7479
|
+
font-weight: 760;
|
|
7480
|
+
line-height: 1.4;
|
|
7481
|
+
}
|
|
7482
|
+
.git-footer-visibility-status.success { color: var(--ctp-green); }
|
|
7483
|
+
.git-footer-visibility-status.warn { color: var(--ctp-yellow); }
|
|
7484
|
+
.git-footer-visibility-status.error { color: var(--ctp-red); }
|
|
7253
7485
|
.extension-dialog.remote-qr-dialog {
|
|
7254
7486
|
width: min(34rem, calc(100vw - 2rem));
|
|
7255
7487
|
border-color: rgba(148, 226, 213, 0.44);
|
|
@@ -10213,3 +10445,289 @@ button.workspace-dashboard-chip {
|
|
|
10213
10445
|
opacity: 0.55;
|
|
10214
10446
|
cursor: not-allowed;
|
|
10215
10447
|
}
|
|
10448
|
+
|
|
10449
|
+
/* Git operation (merge/rebase/cherry-pick/revert/bisect) panel */
|
|
10450
|
+
.git-operation-panel,
|
|
10451
|
+
.git-diverged-bar {
|
|
10452
|
+
display: grid;
|
|
10453
|
+
gap: 0.6rem;
|
|
10454
|
+
padding: 0.78rem;
|
|
10455
|
+
border: 1px solid rgba(250, 179, 135, 0.34);
|
|
10456
|
+
border-radius: 0.95rem;
|
|
10457
|
+
background:
|
|
10458
|
+
radial-gradient(circle at 0% 0%, rgba(250, 179, 135, 0.12), transparent 18rem),
|
|
10459
|
+
linear-gradient(135deg, rgba(var(--ctp-crust-rgb), 0.68), rgba(250, 179, 135, 0.06));
|
|
10460
|
+
}
|
|
10461
|
+
.git-diverged-bar {
|
|
10462
|
+
border-color: rgba(249, 226, 175, 0.34);
|
|
10463
|
+
}
|
|
10464
|
+
.git-operation-header {
|
|
10465
|
+
display: flex;
|
|
10466
|
+
flex-wrap: wrap;
|
|
10467
|
+
align-items: baseline;
|
|
10468
|
+
justify-content: space-between;
|
|
10469
|
+
gap: 0.5rem;
|
|
10470
|
+
min-width: 0;
|
|
10471
|
+
}
|
|
10472
|
+
.git-operation-title,
|
|
10473
|
+
.git-diverged-title {
|
|
10474
|
+
color: var(--ctp-peach, #fab387);
|
|
10475
|
+
font-size: 0.95rem;
|
|
10476
|
+
font-weight: 950;
|
|
10477
|
+
}
|
|
10478
|
+
.git-diverged-title { color: var(--ctp-yellow); }
|
|
10479
|
+
.git-operation-meta {
|
|
10480
|
+
min-width: 0;
|
|
10481
|
+
overflow: hidden;
|
|
10482
|
+
color: rgba(var(--ctp-subtext-rgb), 0.74);
|
|
10483
|
+
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
|
|
10484
|
+
font-size: 0.74rem;
|
|
10485
|
+
text-overflow: ellipsis;
|
|
10486
|
+
white-space: nowrap;
|
|
10487
|
+
}
|
|
10488
|
+
.git-operation-actions {
|
|
10489
|
+
display: flex;
|
|
10490
|
+
flex-wrap: wrap;
|
|
10491
|
+
gap: 0.42rem;
|
|
10492
|
+
}
|
|
10493
|
+
.git-operation-button {
|
|
10494
|
+
padding: 0.36rem 0.66rem;
|
|
10495
|
+
border: 1px solid rgba(180, 190, 254, 0.24);
|
|
10496
|
+
border-radius: 0.58rem;
|
|
10497
|
+
background: rgba(var(--ctp-crust-rgb), 0.5);
|
|
10498
|
+
color: var(--ctp-text);
|
|
10499
|
+
font-size: 0.78rem;
|
|
10500
|
+
font-weight: 850;
|
|
10501
|
+
cursor: pointer;
|
|
10502
|
+
}
|
|
10503
|
+
.git-operation-button:hover:not(:disabled) {
|
|
10504
|
+
border-color: rgba(180, 190, 254, 0.5);
|
|
10505
|
+
background: rgba(var(--ctp-mantle-rgb), 0.72);
|
|
10506
|
+
}
|
|
10507
|
+
.git-operation-button:disabled {
|
|
10508
|
+
opacity: 0.5;
|
|
10509
|
+
cursor: not-allowed;
|
|
10510
|
+
}
|
|
10511
|
+
.git-operation-button.primary {
|
|
10512
|
+
border-color: rgba(166, 227, 161, 0.4);
|
|
10513
|
+
color: var(--ctp-green);
|
|
10514
|
+
}
|
|
10515
|
+
.git-operation-button.danger {
|
|
10516
|
+
border-color: rgba(243, 139, 168, 0.4);
|
|
10517
|
+
color: var(--ctp-red);
|
|
10518
|
+
}
|
|
10519
|
+
.git-conflict-list {
|
|
10520
|
+
display: grid;
|
|
10521
|
+
gap: 0.42rem;
|
|
10522
|
+
}
|
|
10523
|
+
.git-conflict-file {
|
|
10524
|
+
overflow: hidden;
|
|
10525
|
+
border: 1px solid rgba(243, 139, 168, 0.26);
|
|
10526
|
+
border-radius: 0.68rem;
|
|
10527
|
+
background: rgba(var(--ctp-mantle-rgb), 0.42);
|
|
10528
|
+
}
|
|
10529
|
+
.git-conflict-summary {
|
|
10530
|
+
display: flex;
|
|
10531
|
+
align-items: center;
|
|
10532
|
+
gap: 0.55rem;
|
|
10533
|
+
min-width: 0;
|
|
10534
|
+
padding: 0.42rem 0.6rem;
|
|
10535
|
+
cursor: pointer;
|
|
10536
|
+
}
|
|
10537
|
+
.git-conflict-status {
|
|
10538
|
+
flex: 0 0 auto;
|
|
10539
|
+
padding: 0.08rem 0.4rem;
|
|
10540
|
+
border-radius: 0.42rem;
|
|
10541
|
+
background: rgba(243, 139, 168, 0.18);
|
|
10542
|
+
color: var(--ctp-red);
|
|
10543
|
+
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
|
|
10544
|
+
font-size: 0.72rem;
|
|
10545
|
+
font-weight: 950;
|
|
10546
|
+
}
|
|
10547
|
+
.git-conflict-path {
|
|
10548
|
+
flex: 1 1 auto;
|
|
10549
|
+
min-width: 0;
|
|
10550
|
+
overflow: hidden;
|
|
10551
|
+
color: var(--ctp-text);
|
|
10552
|
+
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
|
|
10553
|
+
font-size: 0.8rem;
|
|
10554
|
+
font-weight: 850;
|
|
10555
|
+
text-overflow: ellipsis;
|
|
10556
|
+
white-space: nowrap;
|
|
10557
|
+
}
|
|
10558
|
+
.git-conflict-preview {
|
|
10559
|
+
max-height: 16rem;
|
|
10560
|
+
margin: 0;
|
|
10561
|
+
overflow: auto;
|
|
10562
|
+
padding: 0.6rem;
|
|
10563
|
+
border-top: 1px solid rgba(180, 190, 254, 0.12);
|
|
10564
|
+
color: rgba(var(--ctp-subtext-rgb), 0.88);
|
|
10565
|
+
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
|
|
10566
|
+
font-size: 0.76rem;
|
|
10567
|
+
white-space: pre-wrap;
|
|
10568
|
+
}
|
|
10569
|
+
.git-conflict-preview.muted {
|
|
10570
|
+
color: rgba(var(--ctp-subtext-rgb), 0.6);
|
|
10571
|
+
}
|
|
10572
|
+
|
|
10573
|
+
/* Per-file staging actions in diff summaries */
|
|
10574
|
+
.git-file-actions {
|
|
10575
|
+
display: inline-flex;
|
|
10576
|
+
flex: 0 0 auto;
|
|
10577
|
+
gap: 0.32rem;
|
|
10578
|
+
margin-left: auto;
|
|
10579
|
+
}
|
|
10580
|
+
.git-diff-file-summary .git-file-actions { margin-left: 0.5rem; }
|
|
10581
|
+
.git-file-action {
|
|
10582
|
+
padding: 0.14rem 0.5rem;
|
|
10583
|
+
border: 1px solid rgba(180, 190, 254, 0.26);
|
|
10584
|
+
border-radius: 0.46rem;
|
|
10585
|
+
background: rgba(var(--ctp-crust-rgb), 0.55);
|
|
10586
|
+
color: var(--ctp-text);
|
|
10587
|
+
font-size: 0.7rem;
|
|
10588
|
+
font-weight: 850;
|
|
10589
|
+
cursor: pointer;
|
|
10590
|
+
}
|
|
10591
|
+
.git-file-action:hover {
|
|
10592
|
+
border-color: rgba(180, 190, 254, 0.55);
|
|
10593
|
+
background: rgba(var(--ctp-mantle-rgb), 0.75);
|
|
10594
|
+
}
|
|
10595
|
+
.git-file-action.danger {
|
|
10596
|
+
border-color: rgba(243, 139, 168, 0.38);
|
|
10597
|
+
color: var(--ctp-red);
|
|
10598
|
+
}
|
|
10599
|
+
|
|
10600
|
+
/* Git tools (stash, undo, worktrees, submodules, tags, signing) */
|
|
10601
|
+
.git-tools {
|
|
10602
|
+
display: grid;
|
|
10603
|
+
gap: 0.45rem;
|
|
10604
|
+
margin-top: 0.4rem;
|
|
10605
|
+
}
|
|
10606
|
+
.git-tools-heading {
|
|
10607
|
+
color: rgba(var(--ctp-subtext-rgb), 0.8);
|
|
10608
|
+
font-size: 0.72rem;
|
|
10609
|
+
font-weight: 950;
|
|
10610
|
+
letter-spacing: 0.12em;
|
|
10611
|
+
text-transform: uppercase;
|
|
10612
|
+
}
|
|
10613
|
+
.git-tools-section {
|
|
10614
|
+
overflow: hidden;
|
|
10615
|
+
border: 1px solid rgba(180, 190, 254, 0.16);
|
|
10616
|
+
border-radius: 0.72rem;
|
|
10617
|
+
background: rgba(var(--ctp-mantle-rgb), 0.36);
|
|
10618
|
+
}
|
|
10619
|
+
.git-tools-summary {
|
|
10620
|
+
display: flex;
|
|
10621
|
+
flex-wrap: wrap;
|
|
10622
|
+
align-items: baseline;
|
|
10623
|
+
gap: 0.5rem;
|
|
10624
|
+
padding: 0.5rem 0.66rem;
|
|
10625
|
+
cursor: pointer;
|
|
10626
|
+
}
|
|
10627
|
+
.git-tools-title {
|
|
10628
|
+
color: var(--ctp-text);
|
|
10629
|
+
font-weight: 900;
|
|
10630
|
+
}
|
|
10631
|
+
.git-tools-detail {
|
|
10632
|
+
min-width: 0;
|
|
10633
|
+
color: rgba(var(--ctp-subtext-rgb), 0.66);
|
|
10634
|
+
font-size: 0.76rem;
|
|
10635
|
+
}
|
|
10636
|
+
.git-tools-body {
|
|
10637
|
+
display: grid;
|
|
10638
|
+
gap: 0.45rem;
|
|
10639
|
+
padding: 0.6rem 0.66rem 0.7rem;
|
|
10640
|
+
border-top: 1px solid rgba(180, 190, 254, 0.12);
|
|
10641
|
+
}
|
|
10642
|
+
.git-tools-body .git-changes-empty { min-height: 3.4rem; padding: 0.4rem; }
|
|
10643
|
+
.git-tools-item {
|
|
10644
|
+
overflow: hidden;
|
|
10645
|
+
border: 1px solid rgba(180, 190, 254, 0.14);
|
|
10646
|
+
border-radius: 0.6rem;
|
|
10647
|
+
background: rgba(var(--ctp-crust-rgb), 0.4);
|
|
10648
|
+
}
|
|
10649
|
+
.git-tools-item-summary {
|
|
10650
|
+
display: flex;
|
|
10651
|
+
align-items: center;
|
|
10652
|
+
gap: 0.55rem;
|
|
10653
|
+
min-width: 0;
|
|
10654
|
+
padding: 0.4rem 0.58rem;
|
|
10655
|
+
cursor: pointer;
|
|
10656
|
+
}
|
|
10657
|
+
.git-tools-row {
|
|
10658
|
+
display: flex;
|
|
10659
|
+
align-items: center;
|
|
10660
|
+
gap: 0.55rem;
|
|
10661
|
+
min-width: 0;
|
|
10662
|
+
padding: 0.4rem 0.58rem;
|
|
10663
|
+
border: 1px solid rgba(180, 190, 254, 0.14);
|
|
10664
|
+
border-radius: 0.6rem;
|
|
10665
|
+
background: rgba(var(--ctp-crust-rgb), 0.4);
|
|
10666
|
+
}
|
|
10667
|
+
.git-tools-item-ref {
|
|
10668
|
+
flex: 0 0 auto;
|
|
10669
|
+
padding: 0.08rem 0.4rem;
|
|
10670
|
+
border-radius: 0.42rem;
|
|
10671
|
+
background: rgba(180, 190, 254, 0.16);
|
|
10672
|
+
color: var(--ctp-lavender, #b4befe);
|
|
10673
|
+
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
|
|
10674
|
+
font-size: 0.72rem;
|
|
10675
|
+
font-weight: 900;
|
|
10676
|
+
}
|
|
10677
|
+
.git-tools-item-subject {
|
|
10678
|
+
flex: 1 1 auto;
|
|
10679
|
+
min-width: 0;
|
|
10680
|
+
overflow: hidden;
|
|
10681
|
+
color: rgba(var(--ctp-subtext-rgb), 0.86);
|
|
10682
|
+
font-size: 0.78rem;
|
|
10683
|
+
text-overflow: ellipsis;
|
|
10684
|
+
white-space: nowrap;
|
|
10685
|
+
}
|
|
10686
|
+
.git-tools-note {
|
|
10687
|
+
color: rgba(var(--ctp-subtext-rgb), 0.74);
|
|
10688
|
+
font-size: 0.78rem;
|
|
10689
|
+
}
|
|
10690
|
+
.git-tools-note.error { color: var(--ctp-red); }
|
|
10691
|
+
.git-tools-command {
|
|
10692
|
+
overflow: auto;
|
|
10693
|
+
padding: 0.1rem 0.4rem;
|
|
10694
|
+
border-radius: 0.4rem;
|
|
10695
|
+
background: rgba(var(--ctp-crust-rgb), 0.7);
|
|
10696
|
+
color: var(--ctp-text);
|
|
10697
|
+
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
|
|
10698
|
+
font-size: 0.74rem;
|
|
10699
|
+
white-space: nowrap;
|
|
10700
|
+
}
|
|
10701
|
+
.footer-changed-files-truncated {
|
|
10702
|
+
display: block;
|
|
10703
|
+
padding-top: 0.3rem;
|
|
10704
|
+
color: rgba(var(--ctp-subtext-rgb), 0.7);
|
|
10705
|
+
font-size: 0.72rem;
|
|
10706
|
+
font-style: italic;
|
|
10707
|
+
}
|
|
10708
|
+
.footer-worktree-remove,
|
|
10709
|
+
.footer-worktree-prune {
|
|
10710
|
+
color: var(--ctp-red);
|
|
10711
|
+
}
|
|
10712
|
+
.footer-worktree-prune {
|
|
10713
|
+
color: var(--ctp-yellow);
|
|
10714
|
+
}
|
|
10715
|
+
|
|
10716
|
+
/* Truncated diff + fetch-state notices */
|
|
10717
|
+
.git-diff-truncated-notice {
|
|
10718
|
+
display: flex;
|
|
10719
|
+
flex-wrap: wrap;
|
|
10720
|
+
align-items: center;
|
|
10721
|
+
gap: 0.45rem;
|
|
10722
|
+
padding: 0.45rem 0.6rem;
|
|
10723
|
+
border: 1px solid rgba(249, 226, 175, 0.32);
|
|
10724
|
+
border-radius: 0.6rem;
|
|
10725
|
+
background: rgba(249, 226, 175, 0.08);
|
|
10726
|
+
color: rgba(var(--ctp-subtext-rgb), 0.86);
|
|
10727
|
+
font-size: 0.76rem;
|
|
10728
|
+
}
|
|
10729
|
+
.git-fetch-state-note {
|
|
10730
|
+
display: grid;
|
|
10731
|
+
gap: 0.15rem;
|
|
10732
|
+
padding: 0.3rem 0.1rem;
|
|
10733
|
+
}
|