feat(jobs): wire mcp_tokens_purge runner into jobs.Module

- Config.MCPTokensPurge + scheduleEntry branch
- app.go constructs runner with mcpTokensPurgeAdapter
- Registered as 'mcp_tokens_purge' in RunnerFns map

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-05-08 13:05:12 +08:00
parent 18f6c8bd2e
commit 6917acb778
3 changed files with 26 additions and 0 deletions
+8
View File
@@ -127,6 +127,13 @@ type AcpEventsPurgeConfig struct {
Retention time.Duration
}
// MCPTokensPurgeConfig extends RunnerConfig with mcp_tokens retention.
type MCPTokensPurgeConfig struct {
Enabled bool
Interval time.Duration
Retention time.Duration
}
// Config is the full jobs.Module configuration.
type Config struct {
Enabled bool
@@ -138,4 +145,5 @@ type Config struct {
JobReaper JobReaperConfig
JobPurge JobPurgeConfig
AcpEventsPurge AcpEventsPurgeConfig
MCPTokensPurge MCPTokensPurgeConfig
}