MCPcopy Create free account
hub / github.com/Noumena-Network/code / hasCapability

Function hasCapability

src/capabilities/index.ts:47–49  ·  view source on GitHub ↗
(cap: Capability)

Source from the content-addressed store, hash-verified

45 * directly or `isInternalBuild()` from `./static.js`.
46 */
47export function hasCapability(cap: Capability): boolean {
48 return getResolvedCapabilities().has(cap)
49}
50
51/**
52 * Reset the cached capability set. Used in tests that mutate runtime auth state.

Callers

nothing calls this directly

Calls 2

getResolvedCapabilitiesFunction · 0.85
hasMethod · 0.45

Tested by

no test coverage detected