release: prepare Desktop 0.13.10

This commit is contained in:
mesalogo
2026-09-21 22:53:44 +08:00
parent 6c4c054180
commit a0b35d1192
24 changed files with 677 additions and 30 deletions
+17
View File
@@ -0,0 +1,17 @@
import { parentPort, workerData } from 'node:worker_threads'
import type { ExecutionStatsInput } from '../shared/assistant-contracts'
import { AssistantDatabase } from './assistant/assistant-database'
const database = new AssistantDatabase((workerData as { databasePath: string }).databasePath)
database.openReadOnly()
parentPort!.on('message', (message: {
id: number; scope: ExecutionStatsInput; activeRequestIds: string[]
}) => {
try {
const result = database.getExecutionStats(message.scope, new Set(message.activeRequestIds))
parentPort!.postMessage({ id: message.id, result })
} catch (error) {
parentPort!.postMessage({ id: message.id, error: error instanceof Error ? error.message : String(error) })
}
})
parentPort!.on('close', () => database.close())