MCPcopy Create free account
hub / github.com/QodeXcli/QodeX / list

Method list

src/hooks/manager.ts:104–112  ·  view source on GitHub ↗

Used by /hooks slash command to enumerate registered hooks.

()

Source from the content-addressed store, hash-verified

102
103 /** Used by /hooks slash command to enumerate registered hooks. */
104 list(): Array<{ event: HookEvent; index: number; config: HookConfig }> {
105 const events: HookEvent[] = ['PreToolUse', 'PostToolUse', 'SessionStart', 'SessionEnd', 'PreCompact'];
106 const out: Array<{ event: HookEvent; index: number; config: HookConfig }> = [];
107 for (const ev of events) {
108 const hooks = this.cfg[ev] ?? [];
109 hooks.forEach((h, i) => out.push({ event: ev, index: i, config: h }));
110 }
111 return out;
112 }
113}
114
115// Singleton wiring — bootstrap creates it; loop & slash commands read it via getter.

Callers 14

hooks.test.tsFile · 0.45
snapshot.test.tsFile · 0.45
schedule.test.tsFile · 0.45
index.tsFile · 0.45
gatherMaintainRunsFunction · 0.45
gatherAuditableRunsFunction · 0.45
handleSlashCommandFunction · 0.45
gatherDashboardDataFunction · 0.45
dispatchActionFunction · 0.45
BootSplashFunction · 0.45
WelcomeFunction · 0.45

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected