File tree Expand file tree Collapse file tree 2 files changed +12
-2
lines changed
Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -178,6 +178,10 @@ const FREEBUFF_REMOVED_COMMANDS = new Set([
178178 'connect:claude' ,
179179] )
180180
181+ const FREEBUFF_ONLY_COMMANDS = new Set ( [
182+ 'plan' ,
183+ ] )
184+
181185const ALL_COMMANDS : CommandDefinition [ ] = [
182186 defineCommand ( {
183187 name : 'ads:enable' ,
@@ -625,7 +629,7 @@ const ALL_COMMANDS: CommandDefinition[] = [
625629
626630export const COMMAND_REGISTRY : CommandDefinition [ ] = IS_FREEBUFF
627631 ? ALL_COMMANDS . filter ( ( cmd ) => ! FREEBUFF_REMOVED_COMMANDS . has ( cmd . name ) )
628- : ALL_COMMANDS
632+ : ALL_COMMANDS . filter ( ( cmd ) => ! FREEBUFF_ONLY_COMMANDS . has ( cmd . name ) )
629633
630634export function findCommand ( cmd : string ) : CommandDefinition | undefined {
631635 const lowerCmd = cmd . toLowerCase ( )
Original file line number Diff line number Diff line change @@ -46,6 +46,10 @@ const FREEBUFF_REMOVED_COMMAND_IDS = new Set([
4646 'init' ,
4747] )
4848
49+ const FREEBUFF_ONLY_COMMAND_IDS = new Set ( [
50+ 'plan' ,
51+ ] )
52+
4953const ALL_SLASH_COMMANDS : SlashCommand [ ] = [
5054 {
5155 id : 'help' ,
@@ -202,7 +206,9 @@ export const SLASH_COMMANDS = IS_FREEBUFF
202206 ? ALL_SLASH_COMMANDS . filter (
203207 ( cmd ) => ! FREEBUFF_REMOVED_COMMAND_IDS . has ( cmd . id ) ,
204208 )
205- : ALL_SLASH_COMMANDS
209+ : ALL_SLASH_COMMANDS . filter (
210+ ( cmd ) => ! FREEBUFF_ONLY_COMMAND_IDS . has ( cmd . id ) ,
211+ )
206212
207213export const SLASHLESS_COMMAND_IDS = new Set (
208214 SLASH_COMMANDS . filter ( ( cmd ) => cmd . implicitCommand ) . map ( ( cmd ) =>
You can’t perform that action at this time.
0 commit comments