dsh-vscode-mode 0.5.0 → 0.5.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/index.js CHANGED
@@ -824,10 +824,17 @@ function inDshRange(version, range) {
824
824
  }
825
825
  return true;
826
826
  }
827
- /** 版本线标签:报告与文档展示版本归属;不可解析返回 '未知'。 */
827
+ /**
828
+ * 版本线标签:报告与文档展示版本归属;不可解析返回 '未知'。
829
+ * 逐线自新到旧匹配,先命中先返回(区间无上界,故顺序即优先级)。
830
+ * @author ddj 2026年09月02号 / 2026年09月18号
831
+ * @param input 版本串(如 '0.1.6-alpha.2')
832
+ * @returns 版本线标签
833
+ */
828
834
  function familyLabel(input) {
829
835
  const version = parseDshVersion(input);
830
836
  if (!version) return "未知";
837
+ if (inDshRange(version, { from: "0.1.6-alpha.2" })) return "0.1.6-alpha.2 及更新(会话多实例共存 + 回合改动卡片 + Office 侧栏预览 + 侧栏浏览器)";
831
838
  if (inDshRange(version, { from: "0.1.6-alpha.1" })) return "0.1.6-alpha 及更新(MCP SDK v2 + Web 侧边栏终端 + 文件链接默认侧栏预览)";
832
839
  if (inDshRange(version, { from: "0.1.5-alpha.1" })) return "0.1.5-alpha 及更新(官方右侧 Sidebar 编辑区 + sidebar.panellist)";
833
840
  if (inDshRange(version, { from: "0.1.3-alpha.1" })) return "0.1.3-alpha 及更新(对话文件链接=remote.session.openWorkspacePath)";
@@ -1765,7 +1772,7 @@ function detectGuards(ctx) {
1765
1772
  }];
1766
1773
  }
1767
1774
  /** 已实测覆盖的最高 DSH 版本(适配矩阵上界,超过则提示,见 buildReport)。 */
1768
- const TESTED_DSH_MAX = "0.1.6-alpha.1";
1775
+ const TESTED_DSH_MAX = "0.1.6-alpha.2";
1769
1776
  /** 版本适配机制状态行:DSH 版本探测 + 设置 section 安装策略。 */
1770
1777
  function versionAdapters(dshVersion) {
1771
1778
  const adapters = [];
@@ -1811,7 +1818,7 @@ async function buildReport(ctx, options) {
1811
1818
  if (settingsInstallStrategy() === "none") warnings.push("设置 section 安装不可用:" + settingsInstallNote());
1812
1819
  const parsed = parseDshVersion(dshVersion);
1813
1820
  const testedMax = parseDshVersion(TESTED_DSH_MAX);
1814
- if (parsed && testedMax && compareDshVersions(parsed, testedMax) > 0) warnings.push("DSH " + dshVersion + " 高于已实测版本(0.1.6-alpha.1):设置 API 按能力探测运行,异常时请回报适配矩阵");
1821
+ if (parsed && testedMax && compareDshVersions(parsed, testedMax) > 0) warnings.push("DSH " + dshVersion + " 高于已实测版本(0.1.6-alpha.2):设置 API 按能力探测运行,异常时请回报适配矩阵");
1815
1822
  for (const guard of guards) if (!guard.active && guard.note) warnings.push(guard.note);
1816
1823
  return {
1817
1824
  pluginVersion: options?.version ?? pluginVersionOf(),