dsh-remote 0.8.20 → 0.8.21

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.
Files changed (2) hide show
  1. package/lib/client.js +15 -3
  2. package/package.json +1 -1
package/lib/client.js CHANGED
@@ -601,7 +601,14 @@ window.__ModuleLoader__.load({
601
601
  muted: v('--dsw-alias-label-tertiary', 'rgba(128,128,128,0.7)'),
602
602
  label: v('--dsw-alias-label-primary', '#e4e4e7'),
603
603
  primary: v('--dsw-alias-button-primary-fill', '#2563eb'),
604
- onPrimary: v('--dsw-alias-button-contrast-fill', '#fff'),
604
+ // Text ON a --dsw-alias-button-primary-fill surface must use the *label*
605
+ // token, which is the pairing the harness's own primary button uses
606
+ // (._primary{background:button-primary-fill;color:label-primary-foreground}).
607
+ // --dsw-alias-button-contrast-fill is a FILL token (the harness uses it as a
608
+ // `background`), so it is NOT the light-on-dark colour: in the light theme it
609
+ // is #61666b (gray on #0f1115 = 3.3:1, and 1.6:1 once :disabled fades it),
610
+ // and in the dark theme it collapses to #f9fafb on a #f9fafb fill (invisible).
611
+ onPrimary: v('--dsw-alias-label-primary-foreground', '#fff'),
605
612
  // Hover tints are a neutral translucent gray rather than a theme token:
606
613
  // the harness's own interactive-bg-hover is a 6% tint that disappears on
607
614
  // the settings surface, while a gray overlay darkens light themes and
@@ -625,7 +632,12 @@ window.__ModuleLoader__.load({
625
632
  '.dsh-rw-btn{transition:background .12s ease,opacity .12s ease,border-color .12s ease}',
626
633
  '.dsh-rw-btn:hover:not(:disabled){background:rgba(128,128,128,.18)}',
627
634
  '.dsh-rw-btn:focus-visible{outline:2px solid var(--dsw-alias-button-primary-fill,#2563eb);outline-offset:1px}',
628
- '.dsh-rw-btn:disabled{opacity:.45;cursor:not-allowed}',
635
+ // A disabled FILLED primary keeps its solid fill. Fading the whole
636
+ // button (opacity) turned the near-black primary fill into a muddy
637
+ // gray and dragged the white label down to ~1.5:1 — the fill is the
638
+ // affordance here, so keep it pure; the cursor carries "disabled".
639
+ '.dsh-rw-btn:disabled{cursor:not-allowed}',
640
+ '.dsh-rw-btn:disabled:not(.dsh-rw-primary){opacity:.45}',
629
641
  // A filled primary keeps its own fill on hover; opacity is the only
630
642
  // cue that stays visible whether that fill is near-black or near-white.
631
643
  '.dsh-rw-primary:hover:not(:disabled){background:var(--dsw-alias-button-primary-fill,#2563eb);opacity:.85}',
@@ -637,7 +649,7 @@ window.__ModuleLoader__.load({
637
649
  '.dsh-rw-list-item:hover{background:rgba(128,128,128,.18)}',
638
650
  '.dsh-rw-tabs{display:inline-flex;padding:3px;gap:2px;border-radius:10px;background:rgba(128,128,128,.14);border:1px solid var(--dsw-alias-border-l2,rgba(128,128,128,.35))}',
639
651
  '.dsh-rw-tab{border:none!important;background:transparent!important}',
640
- '.dsh-rw-tab.is-active{background:var(--dsw-alias-button-primary-fill,#2563eb)!important;color:var(--dsw-alias-button-contrast-fill,#fff)!important;font-weight:600}',
652
+ '.dsh-rw-tab.is-active{background:var(--dsw-alias-button-primary-fill,#2563eb)!important;color:var(--dsw-alias-label-primary-foreground,#fff)!important;font-weight:600}',
641
653
  '.dsh-rw-pill{display:inline-flex;align-items:center;font-size:11px;line-height:1.3;padding:1px 7px;border-radius:999px;border:1px solid var(--dsw-alias-border-l2,rgba(128,128,128,.35));opacity:.9;white-space:nowrap}',
642
654
  '.dsh-rw-pill.is-ok{color:var(--dsw-static-green-500,#4caf7d);border-color:currentColor}',
643
655
  '.dsh-rw-section-btn{width:100%;text-align:left;display:flex;align-items:center;gap:8px;background:transparent;border:none;cursor:pointer;padding:0;color:inherit}',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-remote",
3
- "version": "0.8.20",
3
+ "version": "0.8.21",
4
4
  "description": "Remote-work assistant for DeepSeek Harness: connect SSH (password/key/agent/keyboard-interactive/proxy jump), pick a remote workspace, operate on it with 20 rw_* tools (incl. rw_edit/rw_stat/rw_mkdir/rw_remove/rw_move/rw_forward), conflict-aware mirror sync, port forwarding, optional side-bar remote file editing, audit log, keychain passwords.",
5
5
  "license": "MIT",
6
6
  "author": "flymysql <flyphp@outlook.com>",