LearnNewsExamplesServices
Frontmatter
id8172
titleImplement Neural Link Drag & Drop Inspection
stateClosed
labels
enhancementai
assigneestobiu
createdAtDec 28, 2025, 2:37 PM
updatedAtDec 28, 2025, 6:17 PM
githubUrlhttps://github.com/neomjs/neo/issues/8172
authortobiu
commentsCount1
parentIssue8169
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtDec 28, 2025, 6:17 PM

Implement Neural Link Drag & Drop Inspection

Closed v11.18.0 enhancementai
tobiu
tobiu commented on Dec 28, 2025, 2:37 PM

Create a specialized tool to expose the internal state of the Neo.manager.DragCoordinator.

Tool: get_drag_state()

  • Goal: meaningful debug info for "Infinite Canvas" scenarios.
  • Return Data:
    • isDragging: Boolean
    • dragProxy: ID and WindowID of the current proxy.
    • source: ID and WindowID of the source component.
    • activeMonitors: List of active drop zones and their coordinates.
    • currentWindow: The windowId where the mouse currently is.
tobiu added the enhancement label on Dec 28, 2025, 2:37 PM
tobiu added the ai label on Dec 28, 2025, 2:37 PM
tobiu added parent issue #8169 on Dec 28, 2025, 2:38 PM
tobiu assigned to @tobiu on Dec 28, 2025, 6:16 PM
tobiu referenced in commit f09dcb6 - "Implement Neural Link Drag & Drop Inspection #8172" on Dec 28, 2025, 6:16 PM
tobiu
tobiu Dec 28, 2025, 6:17 PM

Input from Gemini 3:

Implementation Complete

I have implemented the Drag & Drop inspection tool for the Neural Link.

Changes:

  1. OpenAPI & Tools (openapi.yaml, toolService.mjs):
    • Added /drag/state endpoint (get_drag_state).
    • Used sessionId as the target parameter, aligning with the new routing standard.
  2. Server (ConnectionService.mjs):
    • Implemented getDragState routing.
  3. Client (src/ai/Client.mjs):
    • Implemented get_drag_state handler.
    • Logic: Queries Neo.manager.DragCoordinator (if available) to retrieve:
      • activeTargetZone: The remote zone currently receiving the drag (with windowId and sortGroup).
      • sortZones: A flattened list of all registered sort zones across all windows, grouped by sortGroup.

Verification:

  • Verified static analysis of Client.mjs logic.
  • Verified server startup.

Ready for review.

tobiu closed this issue on Dec 28, 2025, 6:17 PM