feat: rename --from-af to --import and /download to /export (#902)

Co-authored-by: Letta <noreply@letta.com>
This commit is contained in:
Sarah Wooders
2026-02-11 15:39:48 -08:00
committed by GitHub
parent 77b4746dc2
commit 0c317652fd
5 changed files with 32 additions and 21 deletions

View File

@@ -330,6 +330,7 @@ const NON_STATE_COMMANDS = new Set([
"/search",
"/memory",
"/feedback",
"/export",
"/download",
]);
@@ -6752,11 +6753,11 @@ export default function App({
return { submitted: true };
}
// Special handling for /download command - download agent file
if (msg.trim() === "/download") {
// Special handling for /export command (also accepts legacy /download)
if (msg.trim() === "/export" || msg.trim() === "/download") {
const cmd = commandRunner.start(
msg.trim(),
"Downloading agent file...",
"Exporting agent file...",
);
setCommandRunning(true);
@@ -6824,7 +6825,7 @@ export default function App({
writeFileSync(fileName, JSON.stringify(fileContent, null, 2));
// Build success message
let summary = `AgentFile downloaded to ${fileName}`;
let summary = `AgentFile exported to ${fileName}`;
if (skills.length > 0) {
summary += `\n📦 Included ${skills.length} skill(s): ${skills.map((s) => s.name).join(", ")}`;
}

View File

@@ -135,12 +135,12 @@ export const commands: Record<string, Command> = {
return "Updating description...";
},
},
"/download": {
desc: "Download AgentFile (.af)",
"/export": {
desc: "Export AgentFile (.af)",
order: 26,
handler: () => {
// Handled specially in App.tsx to access agent ID and client
return "Downloading agent file...";
return "Exporting agent file...";
},
},
"/toolset": {
@@ -394,6 +394,13 @@ export const commands: Record<string, Command> = {
return "Opening agent browser...";
},
},
"/download": {
desc: "Export AgentFile (.af)",
hidden: true, // Legacy alias for /export
handler: () => {
return "Exporting agent file...";
},
},
};
/**