Skip to content

Commit 347027c

Browse files
committed
chore: disable agents and memory features
1 parent f9e65a9 commit 347027c

4 files changed

Lines changed: 55 additions & 53 deletions

File tree

src/components/layout/Sidebar.tsx

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import {
22
Book,
3-
Bot,
3+
// Bot,
44
BoxIcon, // for Models
55
Heart,
66
HelpCircleIcon, // for Patreon
@@ -10,9 +10,9 @@ import {
1010
Settings, // for Settings
1111
Users,
1212
} from "lucide-react";
13-
// src/components/layout/Sidebar.tsx
13+
1414
import { useEffect, useRef, useState } from "react";
15-
import { useUIStore } from "@/hooks/UIStore"; // Import the store
15+
import { useUIStore } from "@/hooks/UIStore";
1616

1717
interface SidebarProps {
1818
// Remove props: setActiveSection and activeSection
@@ -118,12 +118,12 @@ const Sidebar: React.FC<SidebarProps> = () => {
118118
icon: <Users className="w-5 h-5" />,
119119
isMainNav: true,
120120
},
121-
{
122-
id: "agents",
123-
label: "Agents",
124-
icon: <Bot className="w-5 h-5" />,
125-
isMainNav: true,
126-
},
121+
// {
122+
// id: "agents",
123+
// label: "Agents",
124+
// icon: <Bot className="w-5 h-5" />,
125+
// isMainNav: true,
126+
// },
127127
{ id: "lorebooks", label: "Lorebooks", icon: <Book className="w-5 h-5" />, isMainNav: true },
128128
{
129129
id: "chat",

src/pages/chat/components/GridSidebar.tsx

Lines changed: 34 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -39,39 +39,41 @@ export const GridSidebar: React.FC<GridSidebarProps> = ({ hiddenWidgets, toggleC
3939
<div className="w-auto h-full">
4040
<div className="left-0 top-0 h-full justify-center flex flex-col items-start mt-1 gap-2">
4141
<Separator orientation="horizontal" className="w-full my-0" />
42-
{hiddenWidgets.map((widget) => (
43-
<Fragment key={widget.id}>
44-
<Popover>
45-
<PopoverTrigger asChild>
46-
<Button
47-
variant="outline"
48-
aria-label={`${widgetTitles[widget.id as WidgetId]} widget`}
49-
title={`${widgetTitles[widget.id as WidgetId]} widget`}
50-
className="m-1 h-auto bg-transparent whitespace-nowrap text-sm p-0.5 pt-1 pb-1 font-light"
51-
>
52-
<div className="flex items-center gap-1">
53-
{widgetConfigurations[widget.id as WidgetId].icon}
54-
{/* {widgetTitles[widget.id as WidgetId]} */}
42+
{hiddenWidgets
43+
.filter((widget) => widget.id !== "memory")
44+
.map((widget) => (
45+
<Fragment key={widget.id}>
46+
<Popover>
47+
<PopoverTrigger asChild>
48+
<Button
49+
variant="outline"
50+
aria-label={`${widgetTitles[widget.id as WidgetId]} widget`}
51+
title={`${widgetTitles[widget.id as WidgetId]} widget`}
52+
className="m-1 h-auto bg-transparent whitespace-nowrap text-sm p-0.5 pt-1 pb-1 font-light"
53+
>
54+
<div className="flex items-center gap-1">
55+
{widgetConfigurations[widget.id as WidgetId].icon}
56+
{/* {widgetTitles[widget.id as WidgetId]} */}
57+
</div>
58+
</Button>
59+
</PopoverTrigger>
60+
<PopoverContent side="right" className="max-w-[80vw] shadow-lg shadow-foreground/25 w-auto bg-card p-0">
61+
<PopoverArrow width={10} height={8} className="fill-muted-foreground" />
62+
<div className="flex items-top justify-between px-2 py-1">
63+
<span className="text-xs ml-2 font-semibold">{widgetTitles[widget.id as WidgetId]}</span>
64+
<button onClick={() => toggleCard(widget.id)} className="p-1 hover:bg-accent rounded">
65+
<Pin className="w-3 h-3" />
66+
</button>
5567
</div>
56-
</Button>
57-
</PopoverTrigger>
58-
<PopoverContent side="right" className="max-w-[80vw] shadow-lg shadow-foreground/25 w-auto bg-card p-0">
59-
<PopoverArrow width={10} height={8} className="fill-muted-foreground" />
60-
<div className="flex items-top justify-between px-2 py-1">
61-
<span className="text-xs ml-2 font-semibold">{widgetTitles[widget.id as WidgetId]}</span>
62-
<button onClick={() => toggleCard(widget.id)} className="p-1 hover:bg-accent rounded">
63-
<Pin className="w-3 h-3" />
64-
</button>
65-
</div>
66-
<hr className="mb-1 mt-0.2 border-t border-border" />
67-
<ResizablePopoverContent className="w-full" minWidth={450} maxHeight={maxPopoverHeight} minHeight={widget.id === "expressions" ? 400 : 200}>
68-
<div className="w-full h-full">{renderWidget(widget.id as WidgetId, tabId)}</div>
69-
</ResizablePopoverContent>
70-
</PopoverContent>
71-
</Popover>
72-
<Separator orientation="horizontal" className="my-0" />
73-
</Fragment>
74-
))}
68+
<hr className="mb-1 mt-0.2 border-t border-border" />
69+
<ResizablePopoverContent className="w-full" minWidth={450} maxHeight={maxPopoverHeight} minHeight={widget.id === "expressions" ? 400 : 200}>
70+
<div className="w-full h-full">{renderWidget(widget.id as WidgetId, tabId)}</div>
71+
</ResizablePopoverContent>
72+
</PopoverContent>
73+
</Popover>
74+
<Separator orientation="horizontal" className="my-0" />
75+
</Fragment>
76+
))}
7577

7678
<div className="w-full flex items-center justify-center">
7779
<Button

src/pages/chat/hooks/registry.tsx

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
import { BookOpen, Brain, Contact, Database, FileTextIcon, HelpCircle, MessageSquare, Settings, Smile, Sparkles, Users } from "lucide-react";
1+
import { BookOpen, Contact, Database, FileTextIcon, HelpCircle, MessageSquare, Settings, Smile, Sparkles, Users } from "lucide-react";
22
import React from "react";
33
import WidgetChapters from "@/pages/chat/components/WidgetChapters";
44
import WidgetCharacterSheet from "@/pages/chat/components/WidgetCharacterSheet";
55
import WidgetConfig from "@/pages/chat/components/WidgetConfig";
66
import WidgetDatabase from "@/pages/chat/components/WidgetDatabase";
77
import WidgetGenerate from "@/pages/chat/components/WidgetGenerate";
8-
import WidgetMemory from "@/pages/chat/components/WidgetMemory";
8+
// import WidgetMemory from "@/pages/chat/components/WidgetMemory";
99
import WidgetMessages from "@/pages/chat/components/WidgetMessages";
1010
import WidgetParticipants from "@/pages/chat/components/WidgetParticipants";
1111
import WidgetScript from "@/pages/chat/components/WidgetScript";
@@ -14,7 +14,7 @@ import { WidgetHelp } from "../components/WidgetHelp";
1414

1515
// Import types for props if available
1616

17-
export type WidgetId = "messages" | "config" | "generate" | "participants" | "scripts" | "character_sheet" | "memory" | "database" | "chapters" | "expressions" | "help";
17+
export type WidgetId = "messages" | "config" | "generate" | "participants" | "scripts" | "character_sheet" | "database" | "chapters" | "expressions" | "help";
1818

1919
export const widgetTitles: Record<WidgetId, string> = {
2020
messages: "Messages",
@@ -23,7 +23,7 @@ export const widgetTitles: Record<WidgetId, string> = {
2323
participants: "Participants",
2424
scripts: "Scripts",
2525
character_sheet: "Character Sheet",
26-
memory: "Short-Term Memory",
26+
// memory: "Short-Term Memory",
2727
database: "Database",
2828
chapters: "Chapters",
2929
expressions: "Expressions",
@@ -82,13 +82,13 @@ export const widgetConfigurations: Record<WidgetId, WidgetConfiguration<any>> =
8282
defaultProps: {},
8383
icon: <Contact className="w-4 h-4" />,
8484
},
85-
memory: {
86-
id: "memory",
87-
title: widgetTitles.memory,
88-
component: WidgetMemory,
89-
defaultProps: {},
90-
icon: <Brain className="w-4 h-4" />,
91-
},
85+
// memory: {
86+
// id: "memory",
87+
// title: widgetTitles.memory,
88+
// component: WidgetMemory,
89+
// defaultProps: {},
90+
// icon: <Brain className="w-4 h-4" />,
91+
// },
9292
database: {
9393
id: "database",
9494
title: widgetTitles.database,

src/schema/grid.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ export const defaultPositions: GridPosition[] = [
6060
},
6161
{ id: "scripts", hidden: true, decorated: true },
6262
{ id: "character_sheet", hidden: true, decorated: true },
63-
{ id: "memory", hidden: true, decorated: true },
63+
// { id: "memory", hidden: true, decorated: true },
6464
{ id: "database", hidden: true, decorated: true },
6565
{ id: "chapters", hidden: true, decorated: true },
6666
{ id: "expressions", hidden: true, decorated: true },

0 commit comments

Comments
 (0)