MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / usePluginsCtx

Function usePluginsCtx

packages/core/sdk/src/client.ts:403–410  ·  view source on GitHub ↗
(hookName: string)

Source from the content-addressed store, hash-verified

401}
402
403const usePluginsCtx = (hookName: string): ExecutorPluginsContextValue => {
404 const ctx = useContext(ExecutorPluginsContext);
405 if (!ctx) {
406 // oxlint-disable-next-line executor/no-try-catch-or-throw, executor/no-error-constructor -- boundary: React hook invariant
407 throw new Error(`${hookName} must be called inside an <ExecutorPluginsProvider>.`);
408 }
409 return ctx;
410};
411
412/** Full list of loaded `ClientPluginSpec` values. */
413export const useClientPlugins = (): readonly ClientPluginSpec[] =>

Callers 3

useClientPluginsFunction · 0.85
useIntegrationPluginsFunction · 0.85
useSecretProviderPluginsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected