dsh-gufa-code 1.3.199 → 1.3.200

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.199'
19
+ G.BUILD = '1.3.200'
20
20
  G.PANEL_ID = 'gufa-code'
21
21
  /** 从哪个工作区点进来的(工作区菜单/节点按钮写入,App 启动时消费)。 */
22
22
  G.pendingEntryWorkspace = null
@@ -75,6 +75,7 @@ constexpr UINT_PTR kTimerSelftest = 6;
75
75
  constexpr UINT_PTR kTimerPageProbe = 7;
76
76
  constexpr UINT_PTR kTimerRetry = 8;
77
77
  constexpr UINT_PTR kTimerControllerWatchdog = 9;
78
+ constexpr UINT_PTR kTimerForwardShow = 10;
78
79
 
79
80
  constexpr int kMenuExit = 1;
80
81
  constexpr int kMenuResetFrame = 2;
@@ -1823,6 +1824,12 @@ void FloatApp::OnTimer(UINT_PTR timerId) {
1823
1824
  hideDshDone_ = true;
1824
1825
  OnHideDshTimer();
1825
1826
  break;
1827
+ case kTimerForwardShow:
1828
+ KillTimer(hwnd_, kTimerForwardShow);
1829
+ if (!exiting_ && !payload_.ciProbe && hwnd_ != nullptr && IsWindowVisible(hwnd_) == FALSE) {
1830
+ ShowWindow(hwnd_, SW_SHOWNOACTIVATE);
1831
+ }
1832
+ break;
1826
1833
  case kTimerControllerWatchdog:
1827
1834
  KillTimer(hwnd_, kTimerControllerWatchdog);
1828
1835
  if (!exiting_ && !controllerReady_) {
@@ -2637,22 +2644,27 @@ LRESULT CALLBACK FloatApp::LowLevelMouseProc(int code, WPARAM wparam, LPARAM lpa
2637
2644
  if (app == nullptr || app->hwnd_ == nullptr || !app->clickThrough_) return CallNextHookEx(nullptr, code, wparam, lparam);
2638
2645
  const MSLLHOOKSTRUCT* info = reinterpret_cast<const MSLLHOOKSTRUCT*>(lparam);
2639
2646
  if (info == nullptr) return CallNextHookEx(nullptr, code, wparam, lparam);
2640
- /* 只拦截落在悬浮层范围内的鼠标 */
2641
2647
  RECT rect = {};
2642
2648
  if (!GetWindowRect(app->hwnd_, &rect)) return CallNextHookEx(nullptr, code, wparam, lparam);
2643
- if (info->pt.x < rect.left || info->pt.x >= rect.right || info->pt.y < rect.top || info->pt.y >= rect.bottom) {
2644
- return CallNextHookEx(nullptr, code, wparam, lparam);
2645
- }
2649
+ const bool inside = info->pt.x >= rect.left && info->pt.x < rect.right && info->pt.y >= rect.top && info->pt.y < rect.bottom;
2650
+ if (!inside) return CallNextHookEx(nullptr, code, wparam, lparam);
2651
+ /* 关键:WM_MOUSEMOVE 绝对不能返回 1(吞掉移动事件会让系统鼠标“卡死”)。
2652
+ 穿透实现为把按钮/滚轮消息转发给下层窗口;移动事件只在左键按住拖动时转发,但仍放行。 */
2646
2653
  switch (wparam) {
2654
+ case WM_MOUSEMOVE:
2655
+ if (app->forwardedLeftDown_) app->ForwardMouseToUnderlying(WM_MOUSEMOVE, info);
2656
+ return CallNextHookEx(nullptr, code, wparam, lparam);
2647
2657
  case WM_LBUTTONDOWN:
2658
+ app->ForwardMouseToUnderlying(WM_LBUTTONDOWN, info);
2659
+ return 1;
2648
2660
  case WM_LBUTTONUP:
2649
- case WM_MOUSEMOVE:
2661
+ app->ForwardMouseToUnderlying(WM_LBUTTONUP, info);
2662
+ return 1;
2650
2663
  case WM_RBUTTONDOWN:
2651
2664
  case WM_RBUTTONUP:
2652
2665
  case WM_MBUTTONDOWN:
2653
2666
  case WM_MBUTTONUP:
2654
2667
  case WM_MOUSEWHEEL:
2655
- case WM_MOUSEHWHEEL:
2656
2668
  app->ForwardMouseToUnderlying(static_cast<UINT>(wparam), info);
2657
2669
  return 1;
2658
2670
  default:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-gufa-code",
3
- "version": "1.3.199",
3
+ "version": "1.3.200",
4
4
  "description": "古法编程 · AI 辅助:一键把 DSH 主面板变成 VS Code 风格 IDE(Monaco 编辑器、文件树、Git、SSH、真实终端 + 右侧官方会话);主张亲手写、每个改动心中有数,AI 是助理、你是第一责任人",
5
5
  "icon": "icon.svg",
6
6
  "keywords": [