mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-06 12:54:20 +01:00
chore(lint): replace ESLint with Oxlint and clear anti-slop findings
This commit is contained in:
1 parent
c6c13335e5
commit
b625acfc0c
1083 files changed
+67089
-80136
No files matched your search
@@ -11,16 +11,10 @@ export interface UseSessionSearchOptions {
|
||||
limit?: number
|
||||
allDirectories?: boolean
|
||||
project?: { id: string; subpath: string }
|
||||
/** Searches a linked server instead of the route's server. */
|
||||
serverId?: string
|
||||
/** Seeds the search box, for callers that mount the hook after a query is already entered. */
|
||||
initialQuery?: string
|
||||
}
|
||||
|
||||
/**
|
||||
* Owns the sessions-dialog search state: the raw query, its debounced server
|
||||
* value, the root-session selection, and the immediate local title filter.
|
||||
*/
|
||||
export function useSessionSearch(directories: string[], options: UseSessionSearchOptions = {}) {
|
||||
const limit = options.limit ?? DEFAULT_LIMIT
|
||||
const allDirectories = options.allDirectories ?? false
|
||||
|
||||
Reference in new issue
Block a user