feat: letta code

This commit is contained in:
cpacker
2025-10-24 21:19:24 -07:00
commit 70ac76040d
139 changed files with 15340 additions and 0 deletions

View File

@@ -0,0 +1,34 @@
import chalk from "chalk";
import { Text } from "ink";
import type React from "react";
import { colors } from "./colors.js";
interface ShimmerTextProps {
color?: string;
message: string;
shimmerOffset: number;
}
export const ShimmerText: React.FC<ShimmerTextProps> = ({
color = colors.status.processing,
message,
shimmerOffset,
}) => {
const fullText = `${message}`;
// Create the shimmer effect - simple 3-char highlight
const shimmerText = fullText
.split("")
.map((char, i) => {
// Check if this character is within the 3-char shimmer window
const isInShimmer = i >= shimmerOffset && i < shimmerOffset + 3;
if (isInShimmer) {
return chalk.hex(colors.status.processingShimmer)(char);
}
return chalk.hex(color)(char);
})
.join("");
return <Text>{shimmerText}</Text>;
};