thumbgate 1.5.8 → 1.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -17,6 +17,11 @@ const fs = require('fs');
17
17
  const path = require('path');
18
18
  const {
19
19
  cacheUpdateHookCommand,
20
+ codexCacheUpdateHookCommand,
21
+ codexPreToolHookCommand,
22
+ codexSessionStartHookCommand,
23
+ codexStatuslineCommand,
24
+ codexUserPromptHookCommand,
20
25
  preToolHookCommand,
21
26
  sessionStartHookCommand,
22
27
  statuslineCommand,
@@ -48,17 +53,17 @@ const CLAUDE_HOOKS = {
48
53
  const CODEX_HOOKS = {
49
54
  PreToolUse: {
50
55
  matcher: 'Bash',
51
- hooks: [{ type: 'command', command: preToolHookCommand() }],
56
+ hooks: [{ type: 'command', command: codexPreToolHookCommand() }],
52
57
  },
53
58
  UserPromptSubmit: {
54
- hooks: [{ type: 'command', command: userPromptHookCommand() }],
59
+ hooks: [{ type: 'command', command: codexUserPromptHookCommand() }],
55
60
  },
56
61
  PostToolUse: {
57
62
  matcher: 'mcp__thumbgate__feedback_stats|mcp__thumbgate__dashboard',
58
- hooks: [{ type: 'command', command: cacheUpdateHookCommand() }],
63
+ hooks: [{ type: 'command', command: codexCacheUpdateHookCommand() }],
59
64
  },
60
65
  SessionStart: {
61
- hooks: [{ type: 'command', command: sessionStartHookCommand() }],
66
+ hooks: [{ type: 'command', command: codexSessionStartHookCommand() }],
62
67
  },
63
68
  };
64
69
 
@@ -459,7 +464,7 @@ function syncCodexStatusLine(config, desiredStatusLine) {
459
464
  function wireCodexHooks(options) {
460
465
  const configPath = options.settingsPath || codexConfigPath();
461
466
  const dryRun = options.dryRun || false;
462
- const desiredStatusLine = statuslineCommand();
467
+ const desiredStatusLine = codexStatuslineCommand();
463
468
 
464
469
  let config = loadJsonFile(configPath) || {};
465
470
  config.hooks = config.hooks || {};