MCPcopy Index your code
hub / github.com/github/copilot-sdk / registerHooks

Method registerHooks

nodejs/src/session.ts:1132–1134  ·  view source on GitHub ↗

* Registers hook handlers for session lifecycle events. * * Hooks allow custom logic to be executed at various points during * the session lifecycle (before/after tool use, session start/end, etc.). * * @param hooks - The hook handlers object, or undefined to remove all hook

(hooks?: SessionHooks)

Source from the content-addressed store, hash-verified

1130 * @internal This method is typically called internally when creating a session.
1131 */
1132 registerHooks(hooks?: SessionHooks): void {
1133 this.hooks = hooks;
1134 }
1135
1136 /**
1137 * Registers transform callbacks for system message sections.

Callers 2

initializeSessionMethod · 0.95
resumeSessionMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected