MCPcopy Create free account
hub / github.com/codeaashu/claude-code / hook

Method hook

src/server/web/public/terminal.js:4771–4774  ·  view source on GitHub ↗
(e3, t3)

Source from the content-addressed store, hash-verified

4769 }
4770 reset() {
4771 if (this._active.length) for (let e3 = this._stack.paused ? this._stack.loopPosition - 1 : this._active.length - 1; e3 >= 0; --e3) this._active[e3].unhook(false);
4772 this._stack.paused = false, this._active = o, this._ident = 0;
4773 }
4774 hook(e3, t3) {
4775 if (this.reset(), this._ident = e3, this._active = this._handlers[e3] || o, this._active.length) for (let e4 = this._active.length - 1; e4 >= 0; e4--) this._active[e4].hook(t3);
4776 else this._handlerFb(this._ident, "HOOK", t3);
4777 }

Callers 2

runFunction · 0.80
parseMethod · 0.80

Calls 2

resetMethod · 0.65
cloneMethod · 0.45

Tested by

no test coverage detected