dsh-skin-galactic-opera 0.1.1 → 0.1.2
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 +7 -0
- package/lib/client.js +7 -3
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this package will be documented in this file.
|
|
4
4
|
|
|
5
|
+
## 0.1.2 - 2026-08-27
|
|
6
|
+
|
|
7
|
+
### Fixed
|
|
8
|
+
|
|
9
|
+
- Keeps model/context popovers above the skin overlay layer.
|
|
10
|
+
- Prevents the telemetry mirror from treating input-bar buttons, popovers, listboxes, and menus as telemetry sources.
|
|
11
|
+
|
|
5
12
|
## 0.1.1 - 2026-08-27
|
|
6
13
|
|
|
7
14
|
### Added
|
package/lib/client.js
CHANGED
|
@@ -148,6 +148,10 @@ body.dsh-skin-galactic-opera [class*="Frame"] {
|
|
|
148
148
|
background-color: transparent !important;
|
|
149
149
|
}
|
|
150
150
|
|
|
151
|
+
body.dsh-skin-galactic-opera :is([role="dialog"], [role="menu"], [role="listbox"], [role="tooltip"], [popover], [data-radix-popper-content-wrapper]) {
|
|
152
|
+
z-index: 2147483647 !important;
|
|
153
|
+
}
|
|
154
|
+
|
|
151
155
|
body.dsh-skin-galactic-opera [class*="sidebar"],
|
|
152
156
|
body.dsh-skin-galactic-opera [class*="Sidebar"] {
|
|
153
157
|
background:
|
|
@@ -1053,8 +1057,8 @@ body.dsh-skin-galactic-opera .dsh-skin-telemetry-value-full {
|
|
|
1053
1057
|
|
|
1054
1058
|
function installTelemetryPanel() {
|
|
1055
1059
|
if (typeof document === "undefined" || typeof window === "undefined") return () => {};
|
|
1056
|
-
const telemetryPattern = /token|tokens|tok|toks
|
|
1057
|
-
const skipSelector = `#${DECOR_ID}, style, script, textarea, input, select, [contenteditable=true], [role=dialog], [role=menu], [role=tooltip], [popover], .dsh-skin-pulse, .dsh-skin-telemetry-panel`;
|
|
1060
|
+
const telemetryPattern = /(?:\d[\d.,KkMm%/]*\s*轮\s*[·•]?\s*\d[\d.,KkMm%/]*\s*步)|(?:\d[\d.,KkMm%/]*\s*(?:rounds?|turns?)\s*[·•]?\s*\d[\d.,KkMm%/]*\s*steps?)|LLM\b|工具调用|(?:首\s*)?(?:token|tokens|tok|toks)\s*平均|(?:token|tokens|tok|toks)\/s|缓存命中|缓存|cache\b|cached\b|输入|输出|prompt\b|completion\b/i;
|
|
1061
|
+
const skipSelector = `#${DECOR_ID}, style, script, textarea, input, select, button, [role=button], [aria-haspopup], [contenteditable=true], [role=dialog], [role=menu], [role=listbox], [role=tooltip], [popover], .dsh-skin-pulse, .dsh-skin-telemetry-panel`;
|
|
1058
1062
|
const editableDescendantSelector = "textarea, input, select, [contenteditable=true]";
|
|
1059
1063
|
let currentSources = new Set();
|
|
1060
1064
|
let lastText = "";
|
|
@@ -1143,7 +1147,7 @@ body.dsh-skin-galactic-opera .dsh-skin-telemetry-value-full {
|
|
|
1143
1147
|
const isTelemetryRow = (value) => {
|
|
1144
1148
|
if (!/\d/.test(value)) return false;
|
|
1145
1149
|
if (/^\d{1,2}:\d{2}\b|\b\d{1,2}:\d{2}\b\s*[·•]|用时|发送|排队|Cmd\/Ctrl/i.test(value)) return false;
|
|
1146
|
-
return /(?:\d[\d.,KkMm%/]*\s*轮\s*[·•]?\s*\d[\d.,KkMm%/]*\s*步)|(?:\d[\d.,KkMm%/]*\s*(?:rounds?|turns?)\s*[·•]?\s*\d[\d.,KkMm%/]*\s*steps?)|^LLM\b|^工具调用|^(?:首\s*)?(?:token|tokens|tok|toks)\s*平均(?:\s|[::]|\d|$)|^(?:缓存命中|缓存|cache\b|cached\b)|^(?:输入|输出|prompt\b|completion\b)
|
|
1150
|
+
return /(?:\d[\d.,KkMm%/]*\s*轮\s*[·•]?\s*\d[\d.,KkMm%/]*\s*步)|(?:\d[\d.,KkMm%/]*\s*(?:rounds?|turns?)\s*[·•]?\s*\d[\d.,KkMm%/]*\s*steps?)|^LLM\b|^工具调用|^(?:首\s*)?(?:token|tokens|tok|toks)\s*平均(?:\s|[::]|\d|$)|^(?:缓存命中|缓存|cache\b|cached\b)|^(?:输入|输出|prompt\b|completion\b)/i.test(value);
|
|
1147
1151
|
};
|
|
1148
1152
|
for (let index = 0; index < parts.length; index += 1) {
|
|
1149
1153
|
const part = parts[index];
|