MCPcopy
hub / github.com/BuilderIO/agent-native / getSchedulingContext

Function getSchedulingContext

packages/scheduling/src/server/context.ts:42–49  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

40}
41
42export function getSchedulingContext(): SchedulingContext {
43 const ctx = (globalThis as unknown as GlobalWithCtx)[CTX_KEY];
44 if (!ctx)
45 throw new Error(
46 "@agent-native/scheduling: context not initialized. Call setSchedulingContext(...) at startup.",
47 );
48 return ctx;
49}

Calls

no outgoing calls

Tested by

no test coverage detected