dsh-background-by-model 0.12.3 → 0.12.4

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 CHANGED
@@ -1,6 +1,11 @@
1
1
  # Changelog
2
2
 
3
- > The full release history lives here; the **Recent optimizations** section of [README.md](./README.md#recent-optimizations) lists only the two most recent releases (v0.12.3 / v0.12.2).
3
+ > The full release history lives here; the **Recent optimizations** section of [README.md](./README.md#recent-optimizations) lists only the two most recent releases (v0.12.4 / v0.12.3).
4
+
5
+ ## v0.12.4
6
+
7
+ - **The nav mark is redrawn with a gentler slope, and the sun hangs left of the first peak** — at 16px the steep hills read as a person, and a sun over the summit made the glyph a symmetric emblem rather than the landscape `icon.svg` shows.
8
+ - **The brand tile draws it at 20px, not 17** — inside a 30px tile the old size left the ink covering 35% of the height, a ring of empty colour the eye reads as a mistake; 20 brings it to ~55%.
4
9
 
5
10
  ## v0.12.3
6
11
 
package/CHANGELOG.zh.md CHANGED
@@ -1,6 +1,11 @@
1
1
  # 更新日志
2
2
 
3
- > 这里保留完整的历史记录;[README.zh.md](./README.zh.md#近期优化) 的「近期优化」一节只列最近两个版本(v0.12.3 / v0.12.2)。
3
+ > 这里保留完整的历史记录;[README.zh.md](./README.zh.md#近期优化) 的「近期优化」一节只列最近两个版本(v0.12.4 / v0.12.3)。
4
+
5
+ ## v0.12.4
6
+
7
+ - **导航标记重画:坡更缓,太阳挪到第一个峰的左边** —— 16px 下原来的陡坡看着像个人,太阳压在峰顶又让整个字形成了对称徽标,而不是 `icon.svg` 里那座山。
8
+ - **品牌方块里的尺寸从 17 改成 20** —— 在 30px 方块里,原来墨迹只占高度的 35%,四周留一圈空,看着像出了错;20 让它占到约 55%。
4
9
 
5
10
  ## v0.12.3
6
11
 
package/README.md CHANGED
@@ -311,16 +311,17 @@ The effect is **Instant**, or the duration is `0` — an effect and a duration a
311
311
 
312
312
  > Only the two most recent releases are listed here; older ones live in [CHANGELOG.md](./CHANGELOG.md).
313
313
 
314
+ ### v0.12.4
315
+
316
+ - **The nav mark redrawn** — a gentler slope, and the sun moved to hang just left of the first peak, because at 16px the steep hills read as a person and a sun over the summit made a symmetric emblem instead of the landscape the store icon shows.
317
+ - **Drawn at 20px in the brand tile, not 17** — inside a 30px tile the old size left the ink at 35% of the height, a ring of empty colour that reads as a mistake.
318
+
314
319
  ### v0.12.3
315
320
 
316
321
  - **The settings nav draws this plugin's own mark** — it was a DOM patch looking for the nav button whose first `<span>` read as the section label, and the host puts the icon span first, so the text was empty and the patch silently found nothing; what showed was the harness's default gear. It is a `settings.section.icon` registration now, sharing one id constant with the section so the two cannot drift.
317
322
  - **A new mark, drawn for 16px** — a sun over hills, the small counterpart of the store icon, on the 16-unit grid rather than scaled down from 36 (at nav size the larger drawing collapses). `currentColor`, so the sidebar tints it like any other row. The plain sun stays for the "follow the system theme" button.
318
323
  - **The published icon is 20% larger** — its ink sat at 70%×78% of the 36 viewBox and read 37% of the sidebar container's width against 51% for a neighbouring plugin; 1.20 puts it at the same weight and still inside the viewBox. `check:mark` pins the registration, the shared id, the absent patch and that scale.
319
324
 
320
- ### v0.12.2
321
-
322
- - **The plugin manager and the settings pages describe this plugin properly** — `locale/en.json` and `locale/zh.json` carry its title and description in each language, and `icon.svg` (36×36, the same viewBox the built-in artwork uses) replaces the generic package glyph. Both are listed in `exports` and in `files`: the reader resolves them through Node's ESM resolver, so a locale file on disk that `exports` does not name resolves to nothing, and a file outside `files` is missing from the published tarball — both look exactly like "no locale at all" in the UI, with no error anywhere. `check:meta` pins the lot and ends by asking `readPluginMeta` itself what the card would show. The publish gate now accepts globs in `files`, so a `locale/*.json` entry no longer reads as a missing literal filename.
323
-
324
325
  ## Star History
325
326
  [![Star History Chart](https://api.star-history.com/chart?repos=HarmlessFunny/dsh-background-by-model&type=timeline&legend=bottom-right)](https://www.star-history.com/?repos=HarmlessFunny%2Fdsh-background-by-model&type=timeline&legend=bottom-right)
326
327
 
package/README.zh.md CHANGED
@@ -311,16 +311,17 @@ pnpm test # 构建 lib/、类型检查、跑十三道检查
311
311
 
312
312
  > 这里只列最近两个版本;更早的版本见 [CHANGELOG.zh.md](./CHANGELOG.zh.md)。
313
313
 
314
+ ### v0.12.4
315
+
316
+ - **导航标记重画** —— 坡更缓,太阳挪到第一个峰的左边:16px 下原来的陡坡看着像个人,太阳压在峰顶又让字形成了对称徽标,而不是商店图标里那座山。
317
+ - **品牌方块里按 20px 画,不再是 17** —— 在 30px 方块里,原来墨迹只占高度 35%,四周那一圈空看着像出了错。
318
+
314
319
  ### v0.12.3
315
320
 
316
321
  - **侧栏现在画的是插件自己的标记** —— 原来是一个 DOM 补丁,去找"第一个 `<span>` 文字等于分组名"的导航按钮,而宿主把图标那个 span 放在最前面,文字为空,补丁什么也没找到就静默返回,显示出来的其实是宿主的默认齿轮。现在改成注册 `settings.section.icon`,并与分组共用同一个 id 常量,两边不会漂移。
317
322
  - **新标记,按 16px 画的** —— 太阳与山,商店图标的小尺寸对应画法,直接画在 16 单位网格上而不是把 36 的缩小(导航那个尺寸下大图会糊成一团)。整体 `currentColor`,侧栏按文字色着色。原来的纯太阳留给「跟随系统主题」按钮。
318
323
  - **发布的图标放大了 20%** —— 墨迹原来只占 36 视框的 70%×78%,在侧栏里只占容器宽度 37%,而旁边的插件是 51%;1.20 让它回到同样分量,且仍在视框内。`check:mark` 钉住注册、共用 id、补丁不得回归,以及缩放上限。
319
324
 
320
- ### v0.12.2
321
-
322
- - **插件管理器和设置页里能正确描述这个插件了** —— `locale/en.json` 与 `locale/zh.json` 分语言给出标题与描述,`icon.svg`(36×36,和内置图标同一个 viewBox)顶掉那个通用方块。两样都写进了 `exports` 和 `files`:读取方走 Node 的 ESM 解析器,磁盘上有但 `exports` 没声明的 locale 文件解析不到,没写进 `files` 的文件发布的包里根本没有——这两种情况在界面上都长得像"根本没有 locale",且不报任何错。`check:meta` 把这些全钉住,最后直接问 `readPluginMeta` 卡片上会显示什么。发布闸门也改成支持 `files` 里的通配符了,`locale/*.json` 不会再被当成一个不存在的字面文件名。
323
-
324
325
  ## Star History
325
326
 
326
327
  [![Star History Chart](https://api.star-history.com/chart?repos=HarmlessFunny/dsh-background-by-model&type=timeline&legend=bottom-right)](https://www.star-history.com/?repos=HarmlessFunny%2Fdsh-background-by-model&type=timeline&legend=bottom-right)
package/lib/client.js CHANGED
@@ -4576,10 +4576,26 @@ window.__ModuleLoader__.load({
4576
4576
  *
4577
4577
  * Drawn on the 16px grid rather than scaled down from the 36px icon — at this
4578
4578
  * size a 36px drawing's rounding and its two echo cards collapse into mush.
4579
+ *
4580
+ * FILLS THE GRID, which is a sizing decision rather than an aesthetic one. The
4581
+ * nav row hands this glyph 16px, and the host's own nav icons are drawn edge to
4582
+ * edge; an earlier version kept a couple of units of air around a smaller
4583
+ * drawing and read as a speck beside its neighbours. The ink now spans ~15.5 x
4584
+ * 13.1 of the 16 units.
4585
+ *
4586
+ * The slope is deliberately GENTLE and the sun sits clear of the summit: steep
4587
+ * hills plus a sun resting on the ridge line read as a person (or an M), not as
4588
+ * a landscape, at 16px.
4589
+ *
4590
+ * The sun's centre is at x 4.4, just LEFT of the first apex (x 5.7) — the
4591
+ * composition `icon.svg` has, where the sun hangs over the near slope rather
4592
+ * than over the peak. Centring it above the range (x 7.6) made the glyph read as
4593
+ * a symmetric emblem and lost that.
4594
+ *
4579
4595
  * `currentColor` throughout: the sidebar tints it with the text colour, the
4580
4596
  * brand tile behind the section header tints it with its own foreground.
4581
4597
  */
4582
- const MARK_PATHS = "<circle cx=\"5.15\" cy=\"4.55\" r=\"1.5\" fill=\"currentColor\"/><path d=\"M1.75 12.1l4.35-4.8 2.15 2.45 1.6-1.75 4.4 4.1\" stroke=\"currentColor\" stroke-width=\"1.75\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>";
4598
+ const MARK_PATHS = "<circle cx=\"4.4\" cy=\"3.5\" r=\"1.95\" fill=\"currentColor\"/><path d=\"M1.2 13.7l4.5-5.3 2.85 3.4 2.15-2.5 4.1 4.4\" stroke=\"currentColor\" stroke-width=\"1.95\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>";
4583
4599
  function MarkIcon({ size = 16, className }) {
4584
4600
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("svg", {
4585
4601
  width: size,
@@ -8708,7 +8724,7 @@ window.__ModuleLoader__.load({
8708
8724
  title: t("repoLink"),
8709
8725
  children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
8710
8726
  className: "dab-brand-tile",
8711
- children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(MarkIcon, { size: 17 })
8727
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(MarkIcon, { size: 20 })
8712
8728
  }), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
8713
8729
  className: "dab-brand-name",
8714
8730
  children: t("nav")
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-background-by-model",
3
- "version": "0.12.3",
3
+ "version": "0.12.4",
4
4
  "description": "Appearance plugin for DeepSeek Harness: an ordered list of model rules, each carrying its own wallpapers — every image with its own framing and theme color — plus layout mode, opacity, brightness and blur; the background follows the model you switch to, a rule can rotate through several images on its own rhythm, and an off-by-default switch lets the agent change any of it through two tools.",
5
5
  "keywords": [
6
6
  "deepseek-harness",