dsh-links-panel 0.78.0 → 0.78.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.
package/lib/client.js CHANGED
@@ -1032,6 +1032,18 @@ window.__ModuleLoader__.load({
1032
1032
  }
1033
1033
  }
1034
1034
 
1035
+ /**
1036
+ * Some search result titles carry a trailing status glyph (`npm-trusted-publisher - ⚠️`);
1037
+ * it is not part of the page name, so drop that decoration from displayed titles.
1038
+ * @param {string} text - title text.
1039
+ * @returns {string} title without a trailing status glyph.
1040
+ */
1041
+ function stripStatusGlyph(text) {
1042
+ return String(text)
1043
+ .replace(/\s*[-–—::·|]?\s*[\u26A0\u2757\u2755\u26D4\u274C\u274E\u2049\u203C\u{1F6A8}\u{1F6AB}\u{1F534}\u{1F7E0}]\uFE0F?$/gu, '')
1044
+ .trim()
1045
+ }
1046
+
1035
1047
  function titleOf(reference, probes) {
1036
1048
  // Strip bidi/zero-width marks before judging: some pages and labels contain only
1037
1049
  // invisible characters, which rendered as a blank row.
@@ -1039,7 +1051,8 @@ window.__ModuleLoader__.load({
1039
1051
  const usable = (value) => typeof value === 'string' && visible(value) !== ''
1040
1052
  // The conversation's own title (Markdown link text / tool result titles) wins.
1041
1053
  if (reference && usable(reference.title) && reference.titleFromPath === false && isUsableTitle(reference.title)) {
1042
- return visible(reference.title)
1054
+ const cleaned = stripStatusGlyph(visible(reference.title))
1055
+ return cleaned !== '' ? cleaned : reference.url
1043
1056
  }
1044
1057
  // Never render an empty row: fall back to the URL.
1045
1058
  return reference.url
@@ -4102,7 +4115,7 @@ window.__ModuleLoader__.load({
4102
4115
  const inject = ['slots', 'sidebarRightTabs', 'sessions', 'locale']
4103
4116
 
4104
4117
  /** Build stamp shown in the footer, so a stale bundle is visible at a glance. */
4105
- const BUILD = 'v0.78.0'
4118
+ const BUILD = 'v0.78.1'
4106
4119
  /**
4107
4120
  * Translate one key and fill `{name}` placeholders.
4108
4121
  * @param {string} key - dictionary key.
package/lib/index.js CHANGED
@@ -37,7 +37,7 @@ function withOutboundLock(task) {
37
37
  }
38
38
 
39
39
  /** Host build stamp, echoed to the panel so a stale bundle is detectable. */
40
- export const BUILD = 'v0.78.0'
40
+ export const BUILD = 'v0.78.1'
41
41
  /**
42
42
  * The desktop browser reaches the network through the system proxy; the Host's own
43
43
  * Node requests bypass it. Detect that proxy so probes can use the same route.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-links-panel",
3
- "version": "0.78.0",
3
+ "version": "0.78.1",
4
4
  "description": "Reference links panel for DeepSeek Harness: collects every URL of a conversation into the right sidebar with pins, turn counts, metadata and favicon caching. DSH 右栏「应用链接」面板。",
5
5
  "license": "MIT",
6
6
  "type": "module",