mirror of
https://github.com/stablyai/orca.git
synced 2026-09-29 08:03:20 +00:00
27 lines
963 B
TypeScript
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: () => {}
|
|
}
|
|
}
|
|
}
|