feat: add /help command with interactive dialog (#303)

Co-authored-by: Letta <noreply@letta.com>
This commit is contained in:
cthomas
2025-12-18 13:37:49 -08:00
committed by GitHub
parent b195b2a70d
commit 1355c44dbc
3 changed files with 257 additions and 6 deletions

View File

@@ -54,14 +54,14 @@ export const commands: Record<string, Command> = {
},
},
"/rename": {
desc: "Rename the current agent",
desc: "Rename the current agent (/rename <name>)",
handler: () => {
// Handled specially in App.tsx to access agent ID and client
return "Renaming agent...";
},
},
"/description": {
desc: "Update the current agent's description",
desc: "Update the current agent's description (/description <text>)",
handler: () => {
// Handled specially in App.tsx to access agent ID and client
return "Updating description...";
@@ -119,14 +119,14 @@ export const commands: Record<string, Command> = {
},
},
"/skill": {
desc: "Enter skill creation mode (optionally: /skill <description>)",
desc: "Enter skill creation mode (/skill [description])",
handler: () => {
// Handled specially in App.tsx to trigger skill-creation workflow
return "Starting skill creation...";
},
},
"/remember": {
desc: "Remember something from the conversation",
desc: "Remember something from the conversation (/remember [instructions])",
handler: () => {
// Handled specially in App.tsx to trigger memory update
return "Processing memory request...";
@@ -147,14 +147,14 @@ export const commands: Record<string, Command> = {
},
},
"/pin": {
desc: "Pin current agent globally (use -l for local only)",
desc: "Pin current agent globally, or use -l for local only",
handler: () => {
// Handled specially in App.tsx
return "Pinning agent...";
},
},
"/unpin": {
desc: "Unpin current agent globally (use -l for local only)",
desc: "Unpin current agent globally, or use -l for local only",
handler: () => {
// Handled specially in App.tsx
return "Unpinning agent...";
@@ -195,6 +195,13 @@ export const commands: Record<string, Command> = {
return "Fetching usage statistics...";
},
},
"/help": {
desc: "Show available commands",
handler: () => {
// Handled specially in App.tsx to open help dialog
return "Opening help...";
},
},
};
/**