MCPcopy Create free account
hub / github.com/ChrisFeldmeier/OpenCodeRust / get

Function get

crates/opencode-plugin/host/plugin-host.ts:245–255  ·  view source on GitHub ↗
(_target, prop: string | symbol)

Source from the content-addressed store, hash-verified

243 const fn = async () => ({});
244 return new Proxy(fn, {
245 get(_target, prop: string | symbol) {
246 if (typeof prop === "symbol") {
247 if (prop === Symbol.toStringTag) return "PluginNoopClient";
248 return undefined;
249 }
250 if (prop === "then") return undefined;
251 if (prop === "toString") {
252 return () => `[PluginNoopClient ${path.join(".")}]`;
253 }
254 return createNoopClientProxy([...path, prop]);
255 },
256 apply() {
257 return Promise.resolve({});
258 },

Callers

nothing calls this directly

Calls 1

createNoopClientProxyFunction · 0.85

Tested by

no test coverage detected