dsh-gufa-code 1.3.186 → 1.3.187

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/client.js CHANGED
@@ -16,7 +16,7 @@ const GUFA_NS = 'gufa-code'
16
16
  const G = {}
17
17
  G.NS = GUFA_NS
18
18
  /** 客户端构建标记(排查页面是否加载了新代码时看标题栏) */
19
- G.BUILD = '1.3.186'
19
+ G.BUILD = '1.3.187'
20
20
  G.PANEL_ID = 'gufa-code'
21
21
  /** 从哪个工作区点进来的(工作区菜单/节点按钮写入,App 启动时消费)。 */
22
22
  G.pendingEntryWorkspace = null
@@ -11357,7 +11357,10 @@ function gufaParseMentionButton(button) {
11357
11357
 
11358
11358
  async function gufaOpenMention(mention) {
11359
11359
  if (mention === null || mention === undefined || typeof mention.path !== 'string' || mention.path === '') return
11360
- const root = typeof G.projectRoot === 'string' ? G.projectRoot.replace(/\\/g, '/').replace(/\/+$/, '') : ''
11360
+ /* 必须原样传 Host 登记的 project.root:Windows 上 Host 用反斜杠规范化过,
11361
+ ProjectRegistry.ensure 是精确字符串匹配;改成 / 会被拒绝(project-not-open),
11362
+ 表现就是 Windows 上引用点不开。 */
11363
+ const root = typeof G.projectRoot === 'string' ? G.projectRoot.replace(/[\\/]+$/, '') : ''
11361
11364
  if (root === '') return
11362
11365
  /* Windows 的会话引用可能带 file:///C:/ 前缀、%20 编码或反斜杠;先归一化再让 Host 解析 */
11363
11366
  let rawPath = String(mention.path ?? '').trim()
@@ -1682,6 +1682,9 @@ bool FloatApp::OnCompositionMouseMessage(UINT message, WPARAM wparam, LPARAM lpa
1682
1682
  }
1683
1683
 
1684
1684
  LRESULT FloatApp::HandleNcHitTest(HWND hwnd, LPARAM lparam) {
1685
+ /* 鼠标穿透:双击/拖动都不要再命中本窗口,让点击落到下层 App。
1686
+ WS_EX_TRANSPARENT 在部分 WebView2/Composition 窗口上不生效,这里加 HTTRANSPARENT 兜底。 */
1687
+ if (clickThrough_) return HTTRANSPARENT;
1685
1688
  POINT point;
1686
1689
  point.x = GET_X_LPARAM(lparam);
1687
1690
  point.y = GET_Y_LPARAM(lparam);
@@ -2631,6 +2634,9 @@ LRESULT FloatApp::OnMainMessage(HWND hwnd, UINT message, WPARAM wparam, LPARAM l
2631
2634
  return TRUE;
2632
2635
  }
2633
2636
  return DefWindowProcW(hwnd, message, wparam, lparam);
2637
+ case WM_MOUSEACTIVATE:
2638
+ if (clickThrough_) return MA_NOACTIVATE;
2639
+ return DefWindowProcW(hwnd, message, wparam, lparam);
2634
2640
  case WM_ACTIVATE:
2635
2641
  if (hostingMode_ == HostingMode::Composition && LOWORD(wparam) != WA_INACTIVE &&
2636
2642
  controller_.Get() != nullptr) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-gufa-code",
3
- "version": "1.3.186",
3
+ "version": "1.3.187",
4
4
  "description": "古法编程 · AI 辅助:一键把 DSH 主面板变成 VS Code 风格 IDE(Monaco 编辑器、文件树、Git、SSH、真实终端 + 右侧官方会话);主张亲手写、每个改动心中有数,AI 是助理、你是第一责任人",
5
5
  "icon": "icon.svg",
6
6
  "keywords": [
@@ -475,7 +475,10 @@ function gufaParseMentionButton(button) {
475
475
 
476
476
  async function gufaOpenMention(mention) {
477
477
  if (mention === null || mention === undefined || typeof mention.path !== 'string' || mention.path === '') return
478
- const root = typeof G.projectRoot === 'string' ? G.projectRoot.replace(/\\/g, '/').replace(/\/+$/, '') : ''
478
+ /* 必须原样传 Host 登记的 project.root:Windows 上 Host 用反斜杠规范化过,
479
+ ProjectRegistry.ensure 是精确字符串匹配;改成 / 会被拒绝(project-not-open),
480
+ 表现就是 Windows 上引用点不开。 */
481
+ const root = typeof G.projectRoot === 'string' ? G.projectRoot.replace(/[\\/]+$/, '') : ''
479
482
  if (root === '') return
480
483
  /* Windows 的会话引用可能带 file:///C:/ 前缀、%20 编码或反斜杠;先归一化再让 Host 解析 */
481
484
  let rawPath = String(mention.path ?? '').trim()