MCPcopy Index your code
hub / github.com/wavetermdev/waveterm / GetObject

Function GetObject

frontend/app/store/wos.ts:67–72  ·  view source on GitHub ↗
(oref: string)

Source from the content-addressed store, hash-verified

65}
66
67function GetObject<T>(oref: string): Promise<T> {
68 if (isPreviewWindow()) {
69 return Promise.resolve((previewMockObjects.get(oref) as T) ?? null);
70 }
71 return callBackendService("object", "GetObject", [oref], true);
72}
73
74function debugLogBackendCall(methodName: string, durationStr: string, args: any[]) {
75 durationStr = "| " + durationStr;

Callers 2

reloadWaveObjectFunction · 0.85
createWaveValueObjectFunction · 0.85

Calls 3

isPreviewWindowFunction · 0.90
getMethod · 0.80
callBackendServiceFunction · 0.70

Tested by

no test coverage detected