File size: 409 Bytes
5cb63c1
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
import type { NodeDesktopService } from "./node-source.js";

export const NODE_DESKTOP_SERVICE_CONTEXT = Symbol("openclaw.nodeDesktopService");

type NodeDesktopServiceContext = {
  [NODE_DESKTOP_SERVICE_CONTEXT]?: NodeDesktopService;
};

export function getNodeDesktopService(context: object): NodeDesktopService | undefined {
  return (context as NodeDesktopServiceContext)[NODE_DESKTOP_SERVICE_CONTEXT];
}