Add memory plugin with semantic search and session planning (#145)

* Add memory plugin with semantic search and session planning

* Clarify Memory Plugin is optional in docs
This commit is contained in:
Chris Scott authored and GitHub committed 2026-02-23 15:08:56 -05:00
1 parent da283a82cf
commit 3461f86556
132 files changed
+11448 -2834

No files matched your search

@@ -1,5 +1,5 @@
import { Button } from '@/components/ui/button'
import { Plus, Minus, FileText, FilePlus, FileX, FileSearch, CircleDot, RotateCcw } from 'lucide-react'
import { Plus, Minus, FileText, FilePlus, FileX, FileSearch, CircleDot } from 'lucide-react'
import { cn } from '@/lib/utils'
import type { GitFileStatus } from '@/types/git'
import { GIT_STATUS_COLORS, GIT_UI_COLORS } from '@/lib/git-status-styles'
@@ -10,7 +10,6 @@ interface GitFlatFileItemProps {
onSelect: (path: string, staged: boolean) => void
onStage?: (path: string) => void
onUnstage?: (path: string) => void
onDiscard?: (path: string, staged: boolean) => void
}
const statusIcons = {
@@ -22,7 +21,7 @@ const statusIcons = {
copied: FilePlus,
}
export function GitFlatFileItem({ file, isSelected, onSelect, onStage, onUnstage, onDiscard }: GitFlatFileItemProps) {
export function GitFlatFileItem({ file, isSelected, onSelect, onStage, onUnstage }: GitFlatFileItemProps) {
const StatusIcon = statusIcons[file.status] || FileText
const statusColor = GIT_STATUS_COLORS[file.status] || 'text-muted-foreground'
@@ -38,13 +37,6 @@ export function GitFlatFileItem({ file, isSelected, onSelect, onStage, onUnstage
}
}
const handleDiscard = (e: React.MouseEvent) => {
e.stopPropagation()
if (onDiscard) {
onDiscard(file.path, file.staged)
}
}
return (
<div
className={cn(
@@ -67,41 +59,18 @@ export function GitFlatFileItem({ file, isSelected, onSelect, onStage, onUnstage
staged
</span>
)}
{(file.additions !== undefined || file.deletions !== undefined) && (
<div className="flex items-center gap-1 text-xs flex-shrink-0">
{file.additions !== undefined && file.additions > 0 && (
<span className="text-green-500">+{file.additions}</span>
)}
{file.deletions !== undefined && file.deletions > 0 && (
<span className="text-red-500">-{file.deletions}</span>
)}
</div>
)}
{(onStage || onUnstage) && (
<Button
variant="ghost"
size="sm"
className="h-6 w-6 p-0 opacity-0 group-hover:opacity-100 transition-opacity flex-shrink-0"
onClick={handleAction}
>
{file.staged ? (
<Minus className={cn('w-3 h-3', GIT_UI_COLORS.unstage)} />
) : (
<Plus className={cn('w-3 h-3', GIT_UI_COLORS.stage)} />
)}
</Button>
)}
{onDiscard && (
<Button
variant="ghost"
size="sm"
className="h-6 w-6 p-0 opacity-0 group-hover:opacity-100 transition-opacity flex-shrink-0"
onClick={handleDiscard}
title="Discard changes"
>
<RotateCcw className="w-3 h-3 text-rose-500" />
</Button>
)}
<Button
variant="ghost"
size="sm"
className="h-6 w-6 p-0 opacity-0 group-hover:opacity-100 transition-opacity flex-shrink-0"
onClick={handleAction}
>
{file.staged ? (
<Minus className={cn('w-3 h-3', GIT_UI_COLORS.unstage)} />
) : (
<Plus className={cn('w-3 h-3', GIT_UI_COLORS.stage)} />
)}
</Button>
</div>
)
}