dsh-pighub 0.9.74 → 0.9.76

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
@@ -100,7 +100,11 @@ window.__ModuleLoader__.load({
100
100
  // 落地阴影是 HouseArt 里同一个 <ellipse>,跟小屋一起走,不会留在原处变成第二个影子。
101
101
  // z 序(用户口径 2026-11-14 低→高):草坪 < 远栏 1 < **小屋 2** < 猪 3..28 < 近栏 30 —— 小屋压住后面的栅栏,
102
102
  // 但猪走到它前面时猪在小屋之上。小屋整只都在分割线 50.68% 以上,所以永远不会盖到前景栅栏。
103
- '.pighub-house{position:absolute;left:9.7%;top:6.7%;width:18%;aspect-ratio:40/34;z-index:' + Z_HOUSE + ';cursor:pointer}',
103
+ // 仓库(谷仓)位置与尺寸:用户 2026-11-14「太小了,放大一点,下移一点点,右移一点点」
104
+ // 18% → 22% 宽;left 9.7% → 12%;top 6.7% → 9.5%(对齐按固定采样点核对,见 scripts/_house-sample.mjs)
105
+ // 仓库(谷仓):用户 2026-11-14「放大一点、下移一点点、右移一点点」,同时必须满足既有遮挡不变量
106
+ // (屋沿要压过上横梁上缘 8.29%、压梁高度 > 屋高一半)——所以 top 只能到 8.0%,width 21%。
107
+ '.pighub-house{position:absolute;left:12%;top:8%;width:21%;aspect-ratio:40/34;z-index:' + Z_HOUSE + ';cursor:pointer}',
104
108
  '.pighub-house svg{width:100%;height:100%;display:block;overflow:visible}',
105
109
  // 仓库改成位图(谷仓图):铺满盒子并强制拉伸;图本身已去背景(透明)
106
110
  '.pighub-house-img{width:100%;height:100%;display:block;object-fit:fill;user-select:none;pointer-events:none}',
package/lib/index.js CHANGED
@@ -44,7 +44,7 @@ export const inject = ['tools'];
44
44
  import { startDesktopPet, stopDesktopPet, syncDesktopPet, desktopPetState, sayOnDesktop, reclaimStaleSessions } from './desktop-pet.js';
45
45
 
46
46
  const here = dirname(fileURLToPath(import.meta.url));
47
- const VERSION = '0.9.74';
47
+ const VERSION = '0.9.76';
48
48
  /** 桌面桌宠的精灵边长(CSS px 基准,= manifest 里 sizeRatio 的中位数)。 */
49
49
  const DESKTOP_PET_SIZE = 96;
50
50
  /** 全局尺寸系数(用户口径 2026-11-13:「整体猪猪缩小到 75% 大小」)。三层一起乘。 */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-pighub",
3
- "version": "0.9.74",
3
+ "version": "0.9.76",
4
4
  "description": "猪猪库 PigHub 的 DeepSeek Harness 插件:侧边栏猪圈面板、每日一只猪猪、重复获得升星、可拖出的置顶桌宠,数据落在 ~/.PigHub。不内嵌任何上游图片。",
5
5
  "type": "module",
6
6
  "main": "./lib/index.js",