@cassius0924/dsh-usage-dashboard 0.9.0 → 0.9.1

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.
@@ -15,11 +15,17 @@ export declare function slotBox(frame: HTMLElement, slot: string, side: 'child'
15
15
  * column and fixed composer — found by walking up from any node inside our
16
16
  * own plugin root via the stable `[data-shell-overlay]` anchor. */
17
17
  export declare function getShellFrame(node: HTMLElement | null): HTMLElement | null;
18
- /** The composer's laid-out element (the seat that reserves its space, not the
19
- * 0×0 slot wrapper), or null if the slot is not present in the current DOM
20
- * (host markup changed, or mid-navigation). Callers that only need the box
21
- * can call `.getBoundingClientRect()`; callers that want to observe size
22
- * changes (e.g. `ResizeObserver`) need the element itself.
18
+ /** The composer's laid-out box — the seat that reserves the composer's space,
19
+ * or null if the slot is not present in the current DOM (host markup changed,
20
+ * no session open, or mid-navigation). Callers that only need the box can
21
+ * call `.getBoundingClientRect()`; callers that want to observe size changes
22
+ * (e.g. `ResizeObserver`) need the element itself.
23
+ *
24
+ * Read `conversation.composer`, not the `.dock` sub-slot: the dock anchor
25
+ * renders *inside* the composer card, and its nearest laid-out ancestor is a
26
+ * 26px toolbar row (DSH 0.2.1), so measuring it reports a box that is both
27
+ * far too short and ~100px below the composer's real top — the floating
28
+ * widget then parks itself over the Send button instead of above it.
23
29
  *
24
30
  * `frame` may be null: the floating widget lives inside the shell overlay
25
31
  * subtree, but the dashboard's plugin root is mounted in the conversation
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cassius0924/dsh-usage-dashboard",
3
- "version": "0.9.0",
3
+ "version": "0.9.1",
4
4
  "description": "DeepSeek 额度与用量仪表盘 —— DSH (DeepSeek Harness) Web 插件:余额还能撑几天、今日/本月花了多少、哪个模型和哪个会话最贵、图片/多模态用量、缓存省了多少、高峰挪到闲时能省多少",
5
5
  "keywords": [
6
6
  "deepseek",