Files
orca/src/renderer/src/web/preload-api/web-agent-status-api.ts
T

27 lines
963 B
TypeScript

import type { PreloadApi } from '../../../../preload/api-types'
import { noopUnsubscribe } from './web-storage'
export function createWebAgentStatusApi(): Partial<PreloadApi> {
return {
agentStatus: {
onSet: () => noopUnsubscribe,
onClear: () => noopUnsubscribe,
getSnapshot: () => Promise.resolve([]),
inferInterrupt: () => Promise.resolve(false),
inferQuestionAnswered: () => Promise.resolve(false),
onMigrationUnsupported: () => noopUnsubscribe,
onMigrationUnsupportedClear: () => noopUnsubscribe,
onLegacyWorkerTerminalRecovery: () => noopUnsubscribe,
getMigrationUnsupportedSnapshot: () => Promise.resolve([]),
drop: () => {},
dropPersisted: () => {},
dropPersistedBatch: () => {},
reconcileEndedProcess: () => {},
dropByTabPrefix: () => {},
retirePaneAuthority: () => {},
restorePaneAuthority: () => {},
transferPaneAuthority: () => {}
}
}
}