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

Function subscribeToProactiveChanges

src/proactive/index.ts:51–58  ·  view source on GitHub ↗
(
  listener: ProactiveListener,
)

Source from the content-addressed store, hash-verified

49}
50
51export function subscribeToProactiveChanges(
52 listener: ProactiveListener,
53): () => void {
54 listeners.add(listener)
55 return () => {
56 listeners.delete(listener)
57 }
58}
59
60export function setContextBlocked(blocked: boolean): void {
61 contextBlocked = blocked

Callers

nothing calls this directly

Calls 2

deleteMethod · 0.80
addMethod · 0.45

Tested by

no test coverage detected