Skip to content

Commit 70a56e6

Browse files
committed
Update order of slash commands
1 parent 2b1857b commit 70a56e6

File tree

2 files changed

+38
-43
lines changed

2 files changed

+38
-43
lines changed

cli/src/components/help-banner.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export const HelpBanner = () => {
2020
return (
2121
<BottomBanner
2222
borderColorKey="info"
23-
text="Shortcuts: Ctrl+C stop • Tab @files • ↑↓ history • /commands • !bash mode"
23+
text="Shortcuts: /commands • Ctrl+C stop • @files • ↑↓ history • !bash mode"
2424
onClose={() => setInputMode('default')}
2525
/>
2626
)

cli/src/data/slash-commands.ts

Lines changed: 37 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -16,38 +16,16 @@ const MODE_COMMANDS: SlashCommand[] = AGENT_MODES.map((mode) => ({
1616

1717
export const SLASH_COMMANDS: SlashCommand[] = [
1818
{
19-
id: 'ads:enable',
20-
label: 'ads:enable (beta)',
21-
description: 'Enable contextual ads and earn credits',
22-
},
23-
{
24-
id: 'ads:disable',
25-
label: 'ads:disable (beta)',
26-
description: 'Disable contextual ads',
27-
},
28-
{
29-
id: 'help',
30-
label: 'help',
31-
description: 'Display keyboard shortcuts and tips',
32-
aliases: ['h', '?'],
19+
id: 'connect:claude',
20+
label: 'connect:claude',
21+
description: 'Connect your Claude Pro/Max subscription',
22+
aliases: ['claude'],
3323
},
3424
{
3525
id: 'init',
3626
label: 'init',
3727
description: 'Create a starter knowledge.md file',
3828
},
39-
{
40-
id: 'logout',
41-
label: 'logout',
42-
description: 'Sign out of your session',
43-
aliases: ['signout'],
44-
},
45-
{
46-
id: 'exit',
47-
label: 'exit',
48-
description: 'Quit the CLI',
49-
aliases: ['quit', 'q'],
50-
},
5129
// {
5230
// id: 'undo',
5331
// label: 'undo',
@@ -58,11 +36,6 @@ export const SLASH_COMMANDS: SlashCommand[] = [
5836
// label: 'redo',
5937
// description: 'Redo the most recent undone change',
6038
// },
61-
// {
62-
// id: 'checkpoint',
63-
// label: 'checkpoint',
64-
// description: 'Restore the workspace to a specific checkpoint',
65-
// },
6639
{
6740
id: 'usage',
6841
label: 'usage',
@@ -91,28 +64,50 @@ export const SLASH_COMMANDS: SlashCommand[] = [
9164
description: 'Enter bash mode ("!" at beginning enters bash mode)',
9265
aliases: ['!'],
9366
},
94-
{
95-
id: 'referral',
96-
label: 'referral',
97-
description: 'Redeem a referral code for bonus credits',
98-
aliases: ['redeem'],
99-
},
10067
{
10168
id: 'image',
10269
label: 'image',
10370
description: 'Attach an image file (or Ctrl+V to paste from clipboard)',
10471
aliases: ['img', 'attach'],
10572
},
73+
{
74+
id: 'help',
75+
label: 'help',
76+
description: 'Display keyboard shortcuts and tips',
77+
aliases: ['h', '?'],
78+
},
79+
...MODE_COMMANDS,
80+
{
81+
id: 'ads:enable',
82+
label: 'ads:enable (beta)',
83+
description: 'Enable contextual ads and earn credits',
84+
},
85+
{
86+
id: 'ads:disable',
87+
label: 'ads:disable (beta)',
88+
description: 'Disable contextual ads',
89+
},
90+
{
91+
id: 'referral',
92+
label: 'referral',
93+
description: 'Redeem a referral code for bonus credits',
94+
aliases: ['redeem'],
95+
},
10696
{
10797
id: 'publish',
10898
label: 'publish',
10999
description: 'Publish agents to the agent store',
110100
},
111101
{
112-
id: 'connect:claude',
113-
label: 'connect:claude',
114-
description: 'Connect your Claude Pro/Max subscription',
115-
aliases: ['claude'],
102+
id: 'logout',
103+
label: 'logout',
104+
description: 'Sign out of your session',
105+
aliases: ['signout'],
106+
},
107+
{
108+
id: 'exit',
109+
label: 'exit',
110+
description: 'Quit the CLI',
111+
aliases: ['quit', 'q'],
116112
},
117-
...MODE_COMMANDS,
118113
]

0 commit comments

Comments
 (0)