diff --git a/apps/shinkai-desktop/src/components/chat/set-conversation-context.tsx b/apps/shinkai-desktop/src/components/chat/set-conversation-context.tsx index 17ba3c48f..e5a18546f 100644 --- a/apps/shinkai-desktop/src/components/chat/set-conversation-context.tsx +++ b/apps/shinkai-desktop/src/components/chat/set-conversation-context.tsx @@ -66,6 +66,7 @@ export const SetJobScopeDrawer = () => { nodeAddress: auth?.node_address ?? '', token: auth?.api_v2_key ?? '', path: '/', + depth: 6, }); const { mutateAsync: updateJobScope, isPending: isUpdatingJobScope } = diff --git a/apps/shinkai-desktop/src/globals.css b/apps/shinkai-desktop/src/globals.css index 448d5ab6b..022b1cd24 100644 --- a/apps/shinkai-desktop/src/globals.css +++ b/apps/shinkai-desktop/src/globals.css @@ -31,9 +31,12 @@ html { -ms-overflow-style: none; } -.p-node-disabled{ +.p-node-disabled { pointer-events: none; - & .p-checkbox-box{ + & .p-checkbox-box { @apply !bg-gray-100; } + & .p-icon.p-checkbox-icon { + @apply !pointer-events-none ; + } } diff --git a/libs/shinkai-message-ts/src/api/vector-fs/types.ts b/libs/shinkai-message-ts/src/api/vector-fs/types.ts index 178ceaa49..5ded43ee7 100644 --- a/libs/shinkai-message-ts/src/api/vector-fs/types.ts +++ b/libs/shinkai-message-ts/src/api/vector-fs/types.ts @@ -1,5 +1,6 @@ export type GetListDirectoryContentsRequest = { path: string; + depth?: number; }; export type DirectoryContent = { diff --git a/libs/shinkai-node-state/src/lib/utils/files.ts b/libs/shinkai-node-state/src/lib/utils/files.ts index f7829da7e..de453e051 100644 --- a/libs/shinkai-node-state/src/lib/utils/files.ts +++ b/libs/shinkai-node-state/src/lib/utils/files.ts @@ -21,7 +21,6 @@ export function transformDataToTreeNodes( selectedPaths, ) : undefined, - expanded: true, className: selectedPaths?.includes(item.path) ? 'p-node-disabled' : '', }; result.push(itemNode); diff --git a/libs/shinkai-node-state/src/v2/queries/getDirectoryContents/index.ts b/libs/shinkai-node-state/src/v2/queries/getDirectoryContents/index.ts index 116b51e12..1c9b3b722 100644 --- a/libs/shinkai-node-state/src/v2/queries/getDirectoryContents/index.ts +++ b/libs/shinkai-node-state/src/v2/queries/getDirectoryContents/index.ts @@ -6,9 +6,11 @@ export const getListDirectoryContents = async ({ nodeAddress, path, token, + depth, }: GetVRPathSimplifiedInput) => { const response = await getListDirectoryContentsApi(nodeAddress, token, { path: path, + depth, }); return response; diff --git a/libs/shinkai-node-state/src/v2/queries/getDirectoryContents/types.ts b/libs/shinkai-node-state/src/v2/queries/getDirectoryContents/types.ts index 8d1c027d3..64e66e847 100644 --- a/libs/shinkai-node-state/src/v2/queries/getDirectoryContents/types.ts +++ b/libs/shinkai-node-state/src/v2/queries/getDirectoryContents/types.ts @@ -7,6 +7,7 @@ import { FunctionKeyV2 } from '../../constants'; export type GetVRPathSimplifiedInput = Token & { nodeAddress: string; path: string; + depth?: number; }; export type UseGetDirectoryContents = [