dsh-gufa-code 1.3.194 → 1.3.197

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.194'
19
+ G.BUILD = '1.3.197'
20
20
  G.PANEL_ID = 'gufa-code'
21
21
  /** 从哪个工作区点进来的(工作区菜单/节点按钮写入,App 启动时消费)。 */
22
22
  G.pendingEntryWorkspace = null
@@ -12288,6 +12288,9 @@ G.installShortcutIntegration = function installShortcutIntegration(service) {
12288
12288
  'sidebar.left.toggle': 'toggleSidebar',
12289
12289
  'edrv.save': 'save',
12290
12290
  'edrv.closeTab': 'closeTab',
12291
+ /* pet-chat 插件占用了 Cmd/Ctrl+Shift+L(它用它切换宠物对话悬浮窗),
12292
+ IDE 编辑器里必须抢回来做「选中所有匹配项」。 */
12293
+ 'pet-chat.float': 'selectAllOccurrences',
12291
12294
  /* DSH 桌面端把 Ctrl+W/Cmd+W 默认绑给右侧页面关闭(page.close),
12292
12295
  它在 main 进程就被截走,浏览器里的 keydown 收不到;IDE 里要改派成关标签页。 */
12293
12296
  'page.close': 'closeTab',
@@ -2533,11 +2533,16 @@ void FloatApp::ToggleClickThrough() {
2533
2533
  void FloatApp::ApplyClickThrough() {
2534
2534
  if (hwnd_ == nullptr) return;
2535
2535
  LONG_PTR exStyle = GetWindowLongPtrW(hwnd_, GWL_EXSTYLE);
2536
- LONG_PTR next = clickThrough_ ? (exStyle | WS_EX_TRANSPARENT)
2537
- : (exStyle & ~static_cast<LONG_PTR>(WS_EX_TRANSPARENT));
2538
- /* windowed 模式需要 layered 才能让点击稳定穿透到下层窗口;composition 模式
2539
- 使用 WS_EX_NOREDIRECTIONBITMAP,不能叠加 layered。 */
2540
- if (hostingMode_ == HostingMode::Windowed) {
2536
+ LONG_PTR next = exStyle;
2537
+ if (hostingMode_ == HostingMode::Composition) {
2538
+ /* DComp 顶层窗口:WS_EX_NOREDIRECTIONBITMAP 本身不提供鼠标穿透,
2539
+ 也不能叠加 WS_EX_TRANSPARENT/WS_EX_LAYERED(会与 NORD 冲突/把点击丢给桌面)。
2540
+ 正确做法是只改 WM_NCHITTEST 返回 HTTRANSPARENT(见 HandleNcHitTest)。 */
2541
+ next = exStyle & ~static_cast<LONG_PTR>(WS_EX_TRANSPARENT | WS_EX_LAYERED);
2542
+ } else {
2543
+ /* windowed 模式:WebView2 是子 HWND,用 layered + transparent 兜底。 */
2544
+ next = clickThrough_ ? (exStyle | WS_EX_TRANSPARENT)
2545
+ : (exStyle & ~static_cast<LONG_PTR>(WS_EX_TRANSPARENT));
2541
2546
  if (clickThrough_) {
2542
2547
  if ((next & WS_EX_LAYERED) == 0) {
2543
2548
  next |= WS_EX_LAYERED;
@@ -2557,9 +2562,10 @@ void FloatApp::ApplyClickThrough() {
2557
2562
  int childCount = 0;
2558
2563
  EnumChildWindows(hwnd_, CountChildWindow, reinterpret_cast<LPARAM>(&childCount));
2559
2564
  EnumChildWindows(hwnd_, SetChildClickThrough, clickThrough_ ? 1 : 0);
2560
- LogFmt(L"click-through=%d mode=%s layered=%d children=%d", clickThrough_ ? 1 : 0,
2565
+ LogFmt(L"click-through=%d mode=%s layered=%d styleTransparent=%d children=%d", clickThrough_ ? 1 : 0,
2561
2566
  hostingMode_ == HostingMode::Composition ? L"composition" : L"windowed",
2562
- clickThroughLayered_ ? 1 : 0, childCount);
2567
+ clickThroughLayered_ ? 1 : 0,
2568
+ (GetWindowLongPtrW(hwnd_, GWL_EXSTYLE) & WS_EX_TRANSPARENT) != 0 ? 1 : 0, childCount);
2563
2569
  }
2564
2570
 
2565
2571
  void FloatApp::StopFollowing() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-gufa-code",
3
- "version": "1.3.194",
3
+ "version": "1.3.197",
4
4
  "description": "古法编程 · AI 辅助:一键把 DSH 主面板变成 VS Code 风格 IDE(Monaco 编辑器、文件树、Git、SSH、真实终端 + 右侧官方会话);主张亲手写、每个改动心中有数,AI 是助理、你是第一责任人",
5
5
  "icon": "icon.svg",
6
6
  "keywords": [
@@ -275,6 +275,9 @@ G.installShortcutIntegration = function installShortcutIntegration(service) {
275
275
  'sidebar.left.toggle': 'toggleSidebar',
276
276
  'edrv.save': 'save',
277
277
  'edrv.closeTab': 'closeTab',
278
+ /* pet-chat 插件占用了 Cmd/Ctrl+Shift+L(它用它切换宠物对话悬浮窗),
279
+ IDE 编辑器里必须抢回来做「选中所有匹配项」。 */
280
+ 'pet-chat.float': 'selectAllOccurrences',
278
281
  /* DSH 桌面端把 Ctrl+W/Cmd+W 默认绑给右侧页面关闭(page.close),
279
282
  它在 main 进程就被截走,浏览器里的 keydown 收不到;IDE 里要改派成关标签页。 */
280
283
  'page.close': 'closeTab',