feat(telegram): allow plugins to invoke built-in commands#151
Open
l3wi wants to merge 3 commits intobanteg:masterfrom
Open
feat(telegram): allow plugins to invoke built-in commands#151l3wi wants to merge 3 commits intobanteg:masterfrom
l3wi wants to merge 3 commits intobanteg:masterfrom
Conversation
cadd04a to
8333d39
Compare
Add invoke_command method to CommandExecutor protocol enabling plugins to call built-in commands like /topic, /trigger, /model, /reasoning. - Add CommandDispatcher type alias for command invocation callback - Add invoke_command to CommandExecutor protocol with optional context override - Implement make_command_dispatcher factory that captures loop state - Add _invoke_builtin_command to handle built-in command routing - Context override takes precedence over ambient context when specified 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Fix function name references in _invoke_builtin_command to use public handlers - Fix test helper references to use FakeTransport and make_cfg Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
8333d39 to
8ab7b80
Compare
Add reference documentation for ctx.executor.invoke_command() method and practical usage guide for invoking built-in commands from plugins. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Contributor
Author
|
Added info to the docs ✨ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
invoke_commandmethod toCommandExecutorprotocol enabling plugins to call built-in commands like/topic,/trigger,/model,/reasoningCommandDispatchertype alias andmake_command_dispatcherfactory that captures loop stateTest plan
🤖 Generated with Claude Code