Add slash commands plugin capability to Duo Chat plugins engine
What does this MR do and why?
It adds a slash command plugin capability to Duo Agentic Chat. It builds on top of the initial plugin engine implemented in !251749 (merged). For certain use cases, slash commands will need access to VueApollo and contextual data to obtain the slash commands, for example, start_flow. This MR injects both dependencies to the plugin resolvers so plugins can make API requests.
This merge request also moves the /new and /compact to their own respective plugins to test that the new plugin capability works as expected.
Screenshots or screen recordings
This MR doesn't introduce user-facing changes. Nevertheless, follow the testing instructions below to ensure that existing slash commands work as expected.
How to set up and validate locally
- Open duo agentic chat.
- Use the
/newand/compactcommands. - They should work as expected.
MR acceptance checklist
Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.