()
| 340 | |
| 341 | // --- REPL helpers ----------------------------------------------------------- |
| 342 | function detachAll() { |
| 343 | hooks.forEach((h) => { try { h.detach(); } catch (e) {} }); |
| 344 | hooks.length = 0; |
| 345 | for (const tid of [...stateByTid.keys()]) { try { Stalker.unfollow(tid); } catch (e) {} } |
| 346 | try { Stalker.flush(); } catch (e) {} |
| 347 | depthByTid.clear(); stateByTid.clear(); |
| 348 | console.log(`${C.dim}[*] detached all hooks & unfollowed${C.reset}`); |
| 349 | } |
| 350 | function clear() { console.log("\x1b[3J\x1b[H\x1b[2J"); } |
| 351 | function help() { |
| 352 | const b = (s) => `${C.green}${s}${C.reset}`, d = (s) => `${C.dim}${s}${C.reset}`; |
nothing calls this directly
no outgoing calls
no test coverage detected