mirror of
https://github.com/stablyai/orca.git
synced 2026-10-08 08:02:32 +00:00
chore(native-chat): drop unrelated formatting
This commit is contained in:
@@ -199,32 +199,30 @@ export class SessionSearchStore {
|
||||
files(): SessionSearchFileRow[] {
|
||||
return (
|
||||
// oxlint-disable-next-line typescript/consistent-type-assertions -- SAFETY: The files schema and SELECT aliases define this row; REAL casts return numeric IDs or null.
|
||||
(
|
||||
this.db
|
||||
.prepare(
|
||||
// Numeric stat IDs may exceed SQLite's safe INTEGER-to-number read range.
|
||||
`SELECT path, CAST(dev AS REAL) AS dev, CAST(ino AS REAL) AS ino,
|
||||
this.db
|
||||
.prepare(
|
||||
// Numeric stat IDs may exceed SQLite's safe INTEGER-to-number read range.
|
||||
`SELECT path, CAST(dev AS REAL) AS dev, CAST(ino AS REAL) AS ino,
|
||||
mtime_ms AS mtimeMs, size_bytes AS sizeBytes,
|
||||
state, fail_count AS failCount, failed_mtime_ms AS failedMtimeMs
|
||||
FROM files`
|
||||
)
|
||||
.all() as (Omit<SessionSearchFileRow, 'identity'> & {
|
||||
dev: number | null
|
||||
ino: number | null
|
||||
})[]
|
||||
).map((row) => ({
|
||||
path: row.path,
|
||||
identity:
|
||||
typeof row.dev === 'number' && typeof row.ino === 'number'
|
||||
? { dev: row.dev, ino: row.ino }
|
||||
: null,
|
||||
mtimeMs: row.mtimeMs,
|
||||
sizeBytes: row.sizeBytes,
|
||||
state: row.state,
|
||||
failCount: row.failCount,
|
||||
failedMtimeMs: row.failedMtimeMs
|
||||
}))
|
||||
)
|
||||
)
|
||||
.all() as (Omit<SessionSearchFileRow, 'identity'> & {
|
||||
dev: number | null
|
||||
ino: number | null
|
||||
})[]
|
||||
).map((row) => ({
|
||||
path: row.path,
|
||||
identity:
|
||||
typeof row.dev === 'number' && typeof row.ino === 'number'
|
||||
? { dev: row.dev, ino: row.ino }
|
||||
: null,
|
||||
mtimeMs: row.mtimeMs,
|
||||
sizeBytes: row.sizeBytes,
|
||||
state: row.state,
|
||||
failCount: row.failCount,
|
||||
failedMtimeMs: row.failedMtimeMs
|
||||
}))
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user