Skip to content

Consolidate routes into disabledCommands - #74

Merged
Skeyelab merged 1 commit into
masterfrom
Skeyelab/gh-issues-priority-review-v1
Jun 17, 2026
Merged

Skeyelab merged 1 commit into
masterfrom
Skeyelab/gh-issues-priority-review-v1

Conversation

@Skeyelab

Copy link
Copy Markdown
Member

Closes #58

Summary

  • Renames routes: [String: RouteConfiguration] → disabledCommands: [String: Bool] in ConfigurationFile
  • Adds a custom Decodable init that reads disabledCommands first, then falls back to the legacy routes key (backward compatible)
  • Updates PluginManager.enabled(routeName:) to use the flattened map
  • Deletes Documentation/routes.md; "Disabling built-in commands" section moved into webhooks.md
  • Updates AGENTS.md, config-sample.json, and readme.md accordingly
  • Adds two new tests for new and legacy key decoding

Test plan

  • bash ./.github/scripts/test-macos.sh — 106 tests, all pass
  • Existing testCallbackFiredOnFileWrite and testApplierCalledWithParsedConfig tests updated for new key
  • testDisabledCommandsNewKey — verifies disabledCommands JSON decoded correctly
  • testDisabledCommandsLegacyRoutesKey — verifies old routes: { name: { disabled: bool } } JSON still works

🤖 Generated with Claude Code

Flatten RouteConfiguration into [String: Bool] for simpler config; legacy
"routes" key decoded automatically for backward compatibility.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@Skeyelab
Skeyelab merged commit 020812e into master Jun 17, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Consolidate routes into webhooks model

2 participants