refactor(panel): extract overlay anchors and consumption row builders

- Extract host anchor discovery, 4-stage capsule layout hysteresis, and ShadowRoot stylesheet mounting from WindowOverlayShell into overlayHostAnchors
- Extract reusable model, client-source, workspace, and top-conversation breakdown row builders from ConsumptionView into ConsumptionBreakdownRows
- Add root CHANGELOG.md and regression coverage for extracted P3 modules and export header documentation
This commit is contained in:
fish
2026-11-25 03:42:34 +09:00
parent e8616ab0c3
commit de35e54589
10 changed files with 2977 additions and 2782 deletions
+3 -3
View File
@@ -1,7 +1,7 @@
/**
* @fileoverview 本机安全文本文件导出及系统文件管理器定位模块 (`file-exporter.mjs`)。
* 仅允许导出受控白名单文本扩展名(.json / .csv / .md / .txt),严格清洗文件名防止路径穿越,
* 并仅对本次进程实际导出的文件路径开放系统文件管理器定位能力。
* @fileoverview 本机安全文件导出及系统文件管理器定位模块 (`file-exporter.mjs`)。
* 仅允许导出受控白名单扩展名(.json / .csv / .md / .txt / .xlsx,含 UTF-8 文本和 Base64 二进制工作簿),
* 严格清洗文件名防止路径穿越,并仅对本次进程实际导出的文件路径开放系统文件管理器定位能力。
*/
import { spawn } from 'node:child_process';