dsh-any-background 0.4.2 → 0.4.3

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/lib/client.js CHANGED
@@ -1113,6 +1113,18 @@ window.__ModuleLoader__.load({
1113
1113
  {
1114
1114
  channel: "0.2.1",
1115
1115
  release: "0.2.1-rc.3"
1116
+ },
1117
+ {
1118
+ channel: "0.2.1",
1119
+ release: "0.2.1-rc.4"
1120
+ },
1121
+ {
1122
+ channel: "0.2.1",
1123
+ release: "0.2.1-rc.5"
1124
+ },
1125
+ {
1126
+ channel: "0.2.2",
1127
+ release: "0.2.2-alpha.2"
1116
1128
  }
1117
1129
  ];
1118
1130
  const UNKNOWN_HOST_INFO = {
@@ -1498,18 +1510,18 @@ window.__ModuleLoader__.load({
1498
1510
  *
1499
1511
  * @module
1500
1512
  */
1501
- function panelFragments$3() {
1513
+ function panelFragments$4() {
1502
1514
  return {
1503
1515
  promotion: "",
1504
1516
  blur: panelBlurRule(DOCKKIT_SLIDERS)
1505
1517
  };
1506
1518
  }
1507
- function createAdapter$3(host) {
1519
+ function createAdapter$4(host) {
1508
1520
  return {
1509
1521
  id: "0.2.0-rc.1",
1510
1522
  channel: "0.2.0-rc",
1511
1523
  host,
1512
- panelFragments: panelFragments$3,
1524
+ panelFragments: panelFragments$4,
1513
1525
  pluginPageRule: PLUGIN_PAGE_FROST_RULE,
1514
1526
  menus: LAYERED_MENU_SURFACE,
1515
1527
  surface: {
@@ -1565,18 +1577,18 @@ window.__ModuleLoader__.load({
1565
1577
  *
1566
1578
  * @module
1567
1579
  */
1568
- function panelFragments$2() {
1580
+ function panelFragments$3() {
1569
1581
  return {
1570
1582
  promotion: "",
1571
1583
  blur: panelBlurRule(DOCKKIT_SLIDERS)
1572
1584
  };
1573
1585
  }
1574
- function createAdapter$2(host) {
1586
+ function createAdapter$3(host) {
1575
1587
  return {
1576
1588
  id: "0.2.0-rc.2",
1577
1589
  channel: "0.2.0-rc.2",
1578
1590
  host,
1579
- panelFragments: panelFragments$2,
1591
+ panelFragments: panelFragments$3,
1580
1592
  pluginPageRule: PLUGIN_PAGE_FROST_RULE,
1581
1593
  menus: LAYERED_MENU_SURFACE_WITH_GROUP_HEADER,
1582
1594
  surface: {
@@ -1589,7 +1601,8 @@ window.__ModuleLoader__.load({
1589
1601
  //#region src/client/host-compat/versions/v0-2-1/adapter.ts
1590
1602
  /**
1591
1603
  * Adapter for the DSH `0.2.1` patch line, verified at `0.2.1-alpha.1`,
1592
- * `alpha.2`, `alpha.3`, `alpha.4`, `alpha.5`, `rc.1`, `rc.2` and `rc.3`.
1604
+ * `alpha.2`, `alpha.3`, `alpha.4`, `alpha.5`, `rc.1`, `rc.2`, `rc.3`, `rc.4`
1605
+ * and `rc.5`.
1593
1606
  *
1594
1607
  * A new MINOR line opened with a prerelease, and the answer is the `0.2.0-rc.2`
1595
1608
  * folder's — which is a statement this file has to earn, because "same as the
@@ -1641,6 +1654,25 @@ window.__ModuleLoader__.load({
1641
1654
  * More launcher's classes). Layout inside the header, not a surface the
1642
1655
  * plugin styles by these class names.
1643
1656
  *
1657
+ * Re-checked at `0.2.1-rc.4` and `rc.5`, and the answer is blunter than for `rc.3`:
1658
+ * those two builds ship artifacts BYTE-IDENTICAL to `rc.3`. The whole install was
1659
+ * hashed — 296 `@deepseek-ai/dsh-*` packages, 5604 shipped files — and 30 files
1660
+ * moved across `rc.3 → rc.5`, none of them a stylesheet this folder speaks for:
1661
+ * · `ui-sidebar`, `ui-settings-general`, `ui-settings-account` changed only an
1662
+ * inlined version-string literal; `ui-llm-deepseek-account`, `dsh-mcp-client`
1663
+ * and `dsh-mcp-resources` are not surfaces at all.
1664
+ * · `ui-conversation` (`rc.4`) made the header View tab label's tooltip
1665
+ * CONDITIONAL — `ViewTabLabel` now passes `disabled: !labelNeedsTooltip(label)`
1666
+ * and keeps `portal: true`. It stays a body-level portal (z-1100, §2-T), so the
1667
+ * `dab-part-blur-side` lift of `rc.3`'s issue #32 is unaffected: the arm that
1668
+ * needed the lift was the in-place `span[role=tooltip]`, and this one never was.
1669
+ * · `ui-chat` + `cordis-client-runner` (`rc.5`) moved the reasoning-body slot
1670
+ * contract: `ReasoningBodyOwnerProps` gains `rawText`, and a new
1671
+ * `reasoningText()` helper strips a leading `<signature>` block. This plugin
1672
+ * registers no chat slot, so it reads none of that contract.
1673
+ * No token, no `[class*="…"]` shape, no `z-index` and no `data-slot` key moved on
1674
+ * either build, so `rc.4`/`rc.5` join this folder's name instead of opening one.
1675
+ *
1644
1676
  * Re-checked again across the rest of the line (`alpha.3` … `rc.2`, `git diff
1645
1677
  * <tag> rc.2` on every file above): the menu token contract, both menu stylesheets
1646
1678
  * (`MenuSurface`, `MenuGroup`), `gradient-shadow-text.css` / `base.css`,
@@ -1724,6 +1756,105 @@ window.__ModuleLoader__.load({
1724
1756
  *
1725
1757
  * @module
1726
1758
  */
1759
+ function panelFragments$2() {
1760
+ return {
1761
+ promotion: "",
1762
+ blur: panelBlurRule(DOCKKIT_SLIDERS)
1763
+ };
1764
+ }
1765
+ function createAdapter$2(host) {
1766
+ return {
1767
+ id: "0.2.1-alpha.1…rc.5",
1768
+ channel: "0.2.1",
1769
+ host,
1770
+ panelFragments: panelFragments$2,
1771
+ pluginPageRule: PLUGIN_PAGE_FROST_RULE,
1772
+ menus: LAYERED_MENU_SURFACE_WITH_GROUP_HEADER,
1773
+ surface: {
1774
+ ownsSidebarGuideSurface: true,
1775
+ headerSlotKeys: BASE_HEADER_SLOT_KEYS
1776
+ }
1777
+ };
1778
+ }
1779
+ //#endregion
1780
+ //#region src/client/host-compat/versions/v0-2-2/adapter.ts
1781
+ /**
1782
+ * Adapter for the DSH `0.2.2` patch line, verified at `0.2.2-alpha.2`.
1783
+ *
1784
+ * A second MINOR line opened (`0.2.2-alpha.2` is the `alpha` dist-tag; no `alpha.1`
1785
+ * was ever published), and the answer it gives is the `0.2.1` folder's. That is a
1786
+ * claim this file has to earn rather than inherit — `0.2.2-alpha.2` is a large
1787
+ * release: across the 296 `@deepseek-ai/dsh-*` packages of a `0.2.1-rc.5` install,
1788
+ * 1151 shipped files changed, 1709 were added and 57 removed. What matters is that
1789
+ * none of them is a fact this plugin speaks for. Every claim below was read out of
1790
+ * the published artifacts of `0.2.2-alpha.2` and compared against `0.2.1-rc.5`.
1791
+ *
1792
+ * Earned (identical, so the same constants are returned):
1793
+ * · The z-index ladder of §2-T is byte-for-byte the load-bearing one:
1794
+ * `ui-layout` still emits `_handle{z-index:11…`, `_leadingSeat{z-index:15…` and
1795
+ * `_overlayLayer{z-index:20…`. So `dab-part-blur-side`'s ceiling of 1 and
1796
+ * `HEADER_BAR_RULE`'s 10 are argued exactly as before. The only `z-index` deltas
1797
+ * on the whole line are local values in `ui-chat` (6), `client-ui-plugin-manager`
1798
+ * (2) and `ui-settings-models` (1), plus one removed in
1799
+ * `ui-sidebar-documentpreview` (2) — none of them a layer the ladder names.
1800
+ * · The menu frost contract is unchanged: `--dsw-menu-surface-fill` still
1801
+ * `#f8f9fa94` / `#43454a73`, `--dsw-specific-menu` still
1802
+ * `var(--dsw-menu-surface-fill)` with the darwin scheme override intact,
1803
+ * `--dsw-alias-menu-group-header-fill` still `#f8f9faf0` / `#303136f0`, and the
1804
+ * same 8 packages still consume `--dsw-menu-backdrop-filter`. That is
1805
+ * `LAYERED_MENU_SURFACE_WITH_GROUP_HEADER`, unchanged.
1806
+ * · `ui-theme` still composes the font token itself on `body`
1807
+ * (`--dsw-font-family: var(--dsh-font-family-text, var(--dsh-font-family-text-default)),
1808
+ * var(--dsh-font-family-text-default)`), which is precisely the competitor
1809
+ * `applyFontFace`'s `!important` assertion was added to beat (§E, same specificity,
1810
+ * order decides). It still has to win, so the rule stays.
1811
+ * · `data-shimmer` still occurs the same number of times → the rc.1 stroke
1812
+ * exemption stands; `data-shell-bottom` / `data-rightbar-col` likewise, so
1813
+ * `discoverParts()` still anchors on the same two children.
1814
+ * · All five `conversation.session.header*` slot keys are unchanged, and
1815
+ * `conversation.session.header.views.actions` is still the one addition — the
1816
+ * tagger's portaled arm already covers it.
1817
+ * · Selector resolution: of the 75 host attribute/class selectors this plugin's
1818
+ * rules name, all 75 still match host output; 13 changed occurrence COUNT
1819
+ * (`_panel` 88→96, `_portal` 4→6, `data-dockkit-host` 8→10,
1820
+ * `data-windows-titlebar` 35→51 …), none reached zero. All nine
1821
+ * `[class*="_…"]` shapes are unchanged.
1822
+ * · `dsh-app-boot`'s peer gate is byte-identical: same
1823
+ * `name !== "@deepseek-ai/dsh" && !name.startsWith("@deepseek-ai/dsh-")` prefix
1824
+ * test, same `satisfies(…, { includePrerelease: true })`. §C's four-place
1825
+ * enumeration means the same thing on this line as on the last.
1826
+ *
1827
+ * Two host-side deltas did reach this plugin. Neither is a rule change, and both are
1828
+ * recorded here because they are the two places a 0.2.2 bug report will land:
1829
+ * 1. `--dsw-specific-sidebar-nav-item-hover` is DELETED. Its only consumer was
1830
+ * `ui-settings-general`'s sidebar nav hover, and that rule is gone with it — the
1831
+ * host stopped painting the hover at all. `paletteTokens()` still emits the token
1832
+ * (`utils/color.ts`, both scheme blocks), which on this line writes a custom
1833
+ * property nobody reads. Harmless, still correct on 0.2.0/0.2.1, and NOT a reason
1834
+ * to branch: nothing regressed relative to the host's own default.
1835
+ * 2. `ui-plugin-manager` gained a NEW consumer of `--dsw-alias-bg-base` — the token
1836
+ * the 「主界面」 slider takes over:
1837
+ * `.…_pageBar[data-natural]:before{background:var(--dsw-alias-bg-base);pointer-events:none;
1838
+ * inset:0 0 auto}`. This is §2-V's "who reads this token" question, and the
1839
+ * answer now has one more host-side row. At the default (`opacities.bg = 0`) it
1840
+ * paints nothing, which is what the slider intends, and the plugin already frames
1841
+ * that page (`PLUGIN_PAGE_FROST_RULE`), so nothing is pinned. If a 0.2.2 report
1842
+ * says the plugin-manager page header shows a seam or a doubled band, start here.
1843
+ *
1844
+ * New host tokens on this line that this plugin does NOT claim: the
1845
+ * `--dsw-alias-illustration-*` family (6), `--dsw-alias-state-done-primary`,
1846
+ * `--dsh-dockkit-float-{x,y,width,height}`, `--dsh-sidebar-{paint-inset,row-padding,
1847
+ * label-gap}`, `--dsh-hairline-width`, `--dsh-button-outline-color`,
1848
+ * `--dsh-tab-hit-inline`. `--dsh-dockkit-float-top`, which the panel rule does read,
1849
+ * is still there. If a future surface stops following the theme colour, check whether
1850
+ * it paints from one of these instead.
1851
+ *
1852
+ * NOT done for this line: no real-host smoke. Only `0.2.1-rc.3` is installed on the
1853
+ * machine this folder was written from, so §4.3 is still open for 0.2.2 — the claims
1854
+ * above are artifact reads, not screenshots.
1855
+ *
1856
+ * @module
1857
+ */
1727
1858
  function panelFragments$1() {
1728
1859
  return {
1729
1860
  promotion: "",
@@ -1732,8 +1863,8 @@ window.__ModuleLoader__.load({
1732
1863
  }
1733
1864
  function createAdapter$1(host) {
1734
1865
  return {
1735
- id: "0.2.1-alpha.1…rc.3",
1736
- channel: "0.2.1",
1866
+ id: "0.2.2-alpha.2",
1867
+ channel: "0.2.2",
1737
1868
  host,
1738
1869
  panelFragments: panelFragments$1,
1739
1870
  pluginPageRule: PLUGIN_PAGE_FROST_RULE,
@@ -1789,9 +1920,10 @@ window.__ModuleLoader__.load({
1789
1920
  //#endregion
1790
1921
  //#region src/client/host-compat/versions/registry.ts
1791
1922
  const ADAPTERS = {
1792
- "0.2.0-rc": createAdapter$3,
1793
- "0.2.0-rc.2": createAdapter$2,
1794
- "0.2.1": createAdapter$1,
1923
+ "0.2.0-rc": createAdapter$4,
1924
+ "0.2.0-rc.2": createAdapter$3,
1925
+ "0.2.1": createAdapter$2,
1926
+ "0.2.2": createAdapter$1,
1795
1927
  unknown: createAdapter
1796
1928
  };
1797
1929
  /** Pick the adapter for a resolved host. `host.channel` is already narrowed to
@@ -4452,7 +4584,8 @@ window.__ModuleLoader__.load({
4452
4584
  const dialog = "[role=\"dialog\"][aria-modal=\"true\"]:not([aria-labelledby])";
4453
4585
  const registry = "[data-install-registry]";
4454
4586
  const body = decls.join(";");
4455
- const css = `${dialog},${dialog} *{${body}}[role="menu"]:has([class*="_danger"]){${body}}${registry},${registry} *{${body}}`;
4587
+ const ground = source?.["--dsw-alias-bg-base"];
4588
+ const css = `${dialog},${dialog} *{${ground === void 0 || ground === "" ? body : `${body};--dsw-alias-bg-base:${toRgba(ground, 1)}`}}[role="menu"]:has([class*="_danger"]){${body}}${registry},${registry} *{${body}}`;
4456
4589
  if (el.textContent !== css) el.textContent = css;
4457
4590
  }
4458
4591
  let exemptStyleEl = null;