Skip to content

🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.

📝 docs(bot): Auto sync agents & plugin to readme

lobehubbotfde900b6e174
diff --git a/changelog/v1.json b/changelog/v1.json
index 685f7670896..4ed5fb96ab9 100644
--- a/changelog/v1.json
+++ b/changelog/v1.json
@@ -1,4 +1,9 @@
[
+ {
+ "children": {},
+ "date": "2026-01-09",
+ "version": "2.0.0-next.250"
+ },
{
"children": {
"improvements": ["Force gpt-5.2 use response api."]
diff --git a/src/features/ResourceManager/components/Explorer/useCheckTaskStatus.ts b/src/features/ResourceManager/components/Explorer/useCheckTaskStatus.ts
index a559093d0db..8b332b98ee9 100644
--- a/src/features/ResourceManager/components/Explorer/useCheckTaskStatus.ts
+++ b/src/features/ResourceManager/components/Explorer/useCheckTaskStatus.ts
@@ -1,8 +1,7 @@
import { useEffect } from 'react';
-import { useFileStore } from '@/store/file';
-import { AsyncTaskStatus } from '@/types/asyncTask';
import { revalidateResources } from '@/store/file/slices/resource/hooks';
+import { AsyncTaskStatus } from '@/types/asyncTask';
import { type FileListItem } from '@/types/files';
export const useCheckTaskStatus = (data: FileListItem[] | undefined) => {
diff --git a/src/store/file/slices/resource/initialState.ts b/src/store/file/slices/resource/initialState.ts
index 3252b821948..d73e1de8204 100644
--- a/src/store/file/slices/resource/initialState.ts
+++ b/src/store/file/slices/resource/initialState.ts
@@ -5,50 +5,50 @@ import type { ResourceItem, ResourceQueryParams, SyncOperation } from '@/types/r
*/
export interface ResourceState {
/**
- * Primary store - Map for O(1) lookups
+ * Pagination state
*/
- resourceMap: Map<string, ResourceItem>;
+ hasMore: boolean;
/**
- * Derived sorted/filtered list (computed from map)
- * Used for rendering in UI
+ * Loading states
*/
- resourceList: ResourceItem[];
+ isLoadingMore: boolean;
+
+ isSyncing: boolean;
/**
- * Sync queue (FIFO)
- * Contains pending operations to be synced to server
+ * Sync status
*/
- syncQueue: SyncOperation[];
+ lastSyncTime?: Date;
+ offset: number;
/**
- * Track which resources are currently syncing
+ * Current query parameters
*/
- syncingIds: Set<string>;
-
+ queryParams?: ResourceQueryParams;
/**
- * Pagination state
+ * Derived sorted/filtered list (computed from map)
+ * Used for rendering in UI
*/
- hasMore: boolean;
- offset: number;
- total: number;
+ resourceList: ResourceItem[];
/**
- * Current query parameters
+ * Primary store - Map for O(1) lookups
*/
- queryParams?: ResourceQueryParams;
+ resourceMap: Map<string, ResourceItem>;
+ syncError?: Error;
/**
- * Loading states
+ * Sync queue (FIFO)
+ * Contains pending operations to be synced to server
*/
- isLoadingMore: boolean;
- isSyncing: boolean;
+ syncQueue: SyncOperation[];
/**
- * Sync status
+ * Track which resources are currently syncing
*/
- lastSyncTime?: Date;
- syncError?: Error;
+ syncingIds: Set<string>;
+ total: number;
}
/**
diff --git a/src/types/resource.ts b/src/types/resource.ts
index b97c2aef58b..b4657354a49 100644
--- a/src/types/resource.ts
+++ b/src/types/resource.ts
@@ -60,9 +60,9 @@ export interface ResourceItem {
export interface SyncOperation {
id: string;
payload: any;
+ reject?: (reason?: any) => void;
// Promise resolver for async operations
resolve?: (value?: any) => void;
- reject?: (reason?: any) => void;
// Operation ID (sync-{resourceId}-{timestamp})
resourceId: string;
retryCount: number;