Feat: spaces are now fully beta and working

This commit is contained in:
Harshith Mullapudi 2025-08-26 13:37:35 +05:30
parent 7634536a39
commit a54213f646
2 changed files with 27 additions and 6 deletions

View File

@ -8,7 +8,8 @@ import { requireUserId } from "~/services/session.server";
import { useState } from "react";
import { SpaceService } from "~/services/space.server";
import { Plus } from "lucide-react";
import { LoaderCircle, Plus } from "lucide-react";
import { ClientOnly } from "remix-utils/client-only";
export async function loader({ request }: LoaderFunctionArgs) {
const userId = await requireUserId(request);
@ -47,11 +48,17 @@ export default function Spaces() {
</div>
{setShowNewSpaceDialog && (
<NewSpaceDialog
open={showNewSpaceDialog}
onOpenChange={setShowNewSpaceDialog}
onSuccess={handleNewSpaceSuccess}
/>
<ClientOnly
fallback={<LoaderCircle className="mr-2 h-4 w-4 animate-spin" />}
>
{() => (
<NewSpaceDialog
open={showNewSpaceDialog}
onOpenChange={setShowNewSpaceDialog}
onSuccess={handleNewSpaceSuccess}
/>
)}
</ClientOnly>
)}
</>
);

View File

@ -59,6 +59,20 @@ export const memoryTools = [
description: "Search through ingested memory data",
inputSchema: SearchParamsSchema,
},
{
name: "memory_get_spaces",
description: "Search spaces in my memory",
inputSchema: {
type: "object",
properties: {
all: {
type: "boolean",
description: "Get all spaces",
default: true,
},
},
},
},
];
// Function to call memory tools based on toolName