@kenz1117/dsh-ui-usage-billing 1.6.4 → 1.6.5

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.
@@ -1,8 +1,8 @@
1
1
  /**
2
- * 会话明细展示归组(issue #42 + 子智能体归并):同标题合并顶层行,再把子智能体
3
- * 行(parentId 指向父会话)挂到最近存活的顶层组下(多级委派沿父链拍平到根
4
- * 对话),挂靠目标命中合并组的任一段即可。父行不在切片内(服务端封顶或日志
5
- * 已删)的子行回退为独立行,仍带子智能体徽标,不丢数据。
2
+ * 会话明细展示归组(issue #42 + 子智能体归并 + #99 树形委派):同标题合并顶层
3
+ * 行,再把子智能体行按父链挂树——一阶子行挂最近存活的顶层组下,二阶起嵌套在
4
+ * 直接委派方的子行之下(多级委派不再拍平),组内按链合计倒序。父行不在切片内
5
+ * (服务端封顶或日志已删)的子行回退为独立行,仍带子智能体徽标,不丢数据。
6
6
  *
7
7
  * `mergeSessionRows` 是 issue #42 的核心:fork/resume 派生的多段会话共用同一
8
8
  * 标题但各自成行——同标题归并为一行作为一级(calls/cost 求和、lastActive 取 max、
@@ -18,9 +18,11 @@ import type { SessionBillingRow } from './types.ts';
18
18
  */
19
19
  export declare function mergeSessionRows(rows: readonly SessionBillingRow[]): SessionBillingRow[];
20
20
  /**
21
- * 会话明细的展示归组:先同标题合并顶层行(issue #42),再把子智能体行
22
- * (parentId 指向父会话)挂到最近存活的顶层组下(多级委派沿父链拍平到根
23
- * 对话),挂靠目标命中合并组的任一段即可。
21
+ * 会话明细的展示归组:先同标题合并顶层行(issue #42),再把子智能体行按父链
22
+ * 挂树——一阶子行挂最近顶层组,二阶起挂到**直接委派方**的子行之下(issue #99
23
+ * 方案 A:多级委派不再拍平,「哪次委派最贵」按链合计倒序一眼可读)。挂靠目标
24
+ * 命中合并组的任一段即可;直接父不在本批(封顶/日志已删)时沿父链回退找最近
25
+ * 顶层组,两处都落空则作为独立行并回顶层。
24
26
  */
25
27
  export declare function buildSessionDisplay(rows: readonly SessionBillingRow[]): SessionBillingRow[];
26
28
  //# sourceMappingURL=provider-merge.d.ts.map
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@kenz1117/dsh-ui-usage-billing",
3
3
  "description": "Usage billing dashboard for DeepSeek Harness: sidebar cost metrics plus a full dashboard modal, priced from a current multi-provider catalog with real usage aggregated from session logs.",
4
- "version": "1.6.4",
4
+ "version": "1.6.5",
5
5
  "keywords": [
6
6
  "deepseek-harness",
7
7
  "deepseek",