mirror of
https://github.com/eliasstepanik/core.git
synced 2026-01-11 18:18: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 { useState } from "react";
|
||||||
|
|
||||||
import { SpaceService } from "~/services/space.server";
|
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) {
|
export async function loader({ request }: LoaderFunctionArgs) {
|
||||||
const userId = await requireUserId(request);
|
const userId = await requireUserId(request);
|
||||||
@ -47,11 +48,17 @@ export default function Spaces() {
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
{setShowNewSpaceDialog && (
|
{setShowNewSpaceDialog && (
|
||||||
<NewSpaceDialog
|
<ClientOnly
|
||||||
open={showNewSpaceDialog}
|
fallback={<LoaderCircle className="mr-2 h-4 w-4 animate-spin" />}
|
||||||
onOpenChange={setShowNewSpaceDialog}
|
>
|
||||||
onSuccess={handleNewSpaceSuccess}
|
{() => (
|
||||||
/>
|
<NewSpaceDialog
|
||||||
|
open={showNewSpaceDialog}
|
||||||
|
onOpenChange={setShowNewSpaceDialog}
|
||||||
|
onSuccess={handleNewSpaceSuccess}
|
||||||
|
/>
|
||||||
|
)}
|
||||||
|
</ClientOnly>
|
||||||
)}
|
)}
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
|
|||||||
@ -59,6 +59,20 @@ export const memoryTools = [
|
|||||||
description: "Search through ingested memory data",
|
description: "Search through ingested memory data",
|
||||||
inputSchema: SearchParamsSchema,
|
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
|
// Function to call memory tools based on toolName
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user