LearnNewsExamplesServices
Frontmatter
id8006
titleImplement Neo.ai.NeuralLink (App Worker)
stateClosed
labels
enhancementaiarchitecture
assigneestobiu
createdAtDec 3, 2025, 10:56 AM
updatedAtDec 3, 2025, 11:53 PM
githubUrlhttps://github.com/neomjs/neo/issues/8006
authortobiu
commentsCount1
parentIssue7960
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtDec 3, 2025, 10:53 PM

Implement Neo.ai.NeuralLink (App Worker)

Closed v11.16.0 enhancementaiarchitecture
tobiu
tobiu commented on Dec 3, 2025, 10:56 AM

Goal: Create the client-side singleton for the Neural Link.

Requirements:

  1. Create src/ai/Client.mjs (renamed from NeuralLink.mjs).
  2. Composition Pattern: Use Neo.data.connection.WebSocket via composition (not inheritance) to manage the connection.
  3. Configuration: Use ClassSystemUtil.beforeSetInstance to allow flexible socketConfig injection.
  4. Event Handling: Listen to observable events (open, close, error, message) from the socket instance.
  5. Implement JSON-RPC 2.0 Handler to parse incoming messages.
  6. Implement Action Dispatcher to invoke methods on Neo.worker.App.

Parent Issue: #7960

tobiu added the enhancement label on Dec 3, 2025, 10:56 AM
tobiu added the ai label on Dec 3, 2025, 10:56 AM
tobiu added the architecture label on Dec 3, 2025, 10:56 AM
tobiu
tobiu Dec 3, 2025, 11:16 AM

Input from Antigravity:

CORRECTION: Naming & Scope Refinement

  1. Rename: The class will be named Neo.ai.Client (PascalCase) to clearly indicate its role as a "Thin Client" for the AI service.
  2. Location: src/ai/Client.mjs.
  3. Scope: This is a dumb terminal. It will NOT contain any Agent Runtime logic. It strictly handles JSON-RPC 2.0 command execution.
tobiu assigned to @tobiu on Dec 3, 2025, 10:49 PM
tobiu added parent issue #7960 on Dec 3, 2025, 10:50 PM
tobiu changed title from Implement Neo.ai.NeuralLink (App Worker) to Implement Neo.ai.Client (App Worker) on Dec 3, 2025, 10:52 PM
tobiu referenced in commit e7d66e9 - "Implement Neo.ai.Client (App Worker) #8006" on Dec 3, 2025, 10:53 PM
tobiu closed this issue on Dec 3, 2025, 10:53 PM
tobiu changed title from Implement Neo.ai.Client (App Worker) to Implement Neo.ai.NeuralLink (App Worker) on Dec 3, 2025, 11:53 PM