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.
- package/.claude-plugin/marketplace.json +2 -2
- package/.claude-plugin/plugin.json +1 -1
- package/.well-known/mcp/server-card.json +1 -1
- package/CHANGELOG.md +198 -0
- package/README.md +7 -6
- package/adapters/README.md +1 -1
- package/adapters/chatgpt/openapi.yaml +25 -0
- package/adapters/claude/.mcp.json +2 -2
- package/adapters/codex/config.toml +4 -4
- package/adapters/mcp/server-stdio.js +41 -2
- package/adapters/opencode/opencode.json +1 -1
- package/bin/cli.js +100 -10
- package/openapi/openapi.yaml +25 -0
- package/package.json +13 -3
- package/public/codex-plugin.html +277 -0
- package/public/dashboard.html +141 -13
- package/public/index.html +92 -34
- package/public/learn.html +13 -2
- package/public/lessons.html +5 -2
- package/public/pro.html +8 -1
- package/scripts/auto-wire-hooks.js +10 -5
- package/scripts/billing.js +503 -8
- package/scripts/contextfs.js +1 -1
- package/scripts/dashboard.js +236 -0
- package/scripts/feedback-loop.js +22 -0
- package/scripts/gates-engine.js +461 -7
- package/scripts/hook-runtime.js +42 -0
- package/scripts/llm-client.js +25 -10
- package/scripts/mailer/index.js +13 -0
- package/scripts/mailer/resend-mailer.js +350 -0
- package/scripts/mcp-config.js +13 -0
- package/scripts/published-cli.js +8 -0
- package/scripts/seo-gsd.js +118 -4
- package/scripts/statusline.sh +8 -0
- package/scripts/vector-store.js +21 -7
- package/src/api/server.js +112 -7
|
@@ -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:
|
|
56
|
+
hooks: [{ type: 'command', command: codexPreToolHookCommand() }],
|
|
52
57
|
},
|
|
53
58
|
UserPromptSubmit: {
|
|
54
|
-
hooks: [{ type: 'command', command:
|
|
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:
|
|
63
|
+
hooks: [{ type: 'command', command: codexCacheUpdateHookCommand() }],
|
|
59
64
|
},
|
|
60
65
|
SessionStart: {
|
|
61
|
-
hooks: [{ type: 'command', command:
|
|
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 =
|
|
467
|
+
const desiredStatusLine = codexStatuslineCommand();
|
|
463
468
|
|
|
464
469
|
let config = loadJsonFile(configPath) || {};
|
|
465
470
|
config.hooks = config.hooks || {};
|