Add /link and /unlink commands for managing agent tools (#59)

Co-authored-by: Letta <noreply@letta.com>
This commit is contained in:
Cameron
2025-11-05 18:11:51 -08:00
committed by GitHub
parent 424fabaed4
commit 79bc3c2d98
10 changed files with 701 additions and 4 deletions

View File

@@ -34,9 +34,10 @@ export function CommandPreview({
paddingX={1}
>
{commandList.map((item) => (
<Box key={item.cmd} justifyContent="space-between" width={40}>
<Text>{item.cmd}</Text>
<Text dimColor>{item.desc}</Text>
<Box key={item.cmd}>
<Text>
{item.cmd.padEnd(15)} <Text dimColor>{item.desc}</Text>
</Text>
</Box>
))}
{showAgentUrl && (

View File

@@ -9,6 +9,8 @@ import { colors } from "./colors";
type LoadingState =
| "assembling"
| "upserting"
| "linking"
| "unlinking"
| "initializing"
| "checking"
| "ready";
@@ -82,6 +84,12 @@ export function WelcomeScreen({
if (loadingState === "upserting") {
return "Upserting tools...";
}
if (loadingState === "linking") {
return "Attaching Letta Code tools...";
}
if (loadingState === "unlinking") {
return "Removing Letta Code tools...";
}
if (loadingState === "checking") {
return "Checking for pending approvals...";
}