MCPcopy Create free account
hub / github.com/tiann/hapi / emitHookEvent

Method emitHookEvent

cli/src/opencode/session.ts:69–73  ·  view source on GitHub ↗
(event: OpencodeHookEvent)

Source from the content-addressed store, hash-verified

67 }
68
69 emitHookEvent(event: OpencodeHookEvent): void {
70 for (const handler of this.hookEventHandlers) {
71 handler(event);
72 }
73 }
74
75 setPermissionMode = (mode: PermissionMode): void => {
76 this.permissionMode = mode;

Callers 2

runOpencodeFunction · 0.80
opencodeLocalLauncherFunction · 0.80

Calls 1

handlerFunction · 0.85

Tested by

no test coverage detected