Download src/gateway/desktop/node-source-context.ts from SaylorTwift/openclaw: direct link, hf CLI and curl.
- Browser
- Download file 409 Bytes
-
https://huggingface.co/SaylorTwift/openclaw/resolve/main/src/gateway/desktop/node-source-context.ts
- Command line
-
hf download hf://SaylorTwift/openclaw/src/gateway/desktop/node-source-context.ts
-
curl -L -o node-source-context.ts https://huggingface.co/SaylorTwift/openclaw/resolve/main/src/gateway/desktop/node-source-context.ts
409 Bytes
| 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]; | |
| } | |