mirror of
https://github.com/eliasstepanik/core.git
synced 2026-01-11 18:48:27 +00:00
Feat: spaces are now fully beta and working
This commit is contained in:
parent
7634536a39
commit
7d00e62ba8
@ -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>
|
||||
)}
|
||||
</>
|
||||
);
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user