test(create-managers): align openclaw mock with refactored BackgroundManager config object
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
@@ -15,17 +15,10 @@ let backgroundManagerOptions: {
|
|||||||
const trackedPaneBySession = new Map<string, string>()
|
const trackedPaneBySession = new Map<string, string>()
|
||||||
|
|
||||||
class MockBackgroundManager {
|
class MockBackgroundManager {
|
||||||
constructor(
|
constructor(config: {
|
||||||
_ctx: PluginInput,
|
onSubagentSessionCreated?: (event: { sessionID: string; parentID: string; title: string }) => Promise<void>
|
||||||
_config?: unknown,
|
}) {
|
||||||
options?: {
|
backgroundManagerOptions = config
|
||||||
tmuxConfig?: unknown
|
|
||||||
onSubagentSessionCreated?: (event: { sessionID: string; parentID: string; title: string }) => Promise<void>
|
|
||||||
onShutdown?: () => void | Promise<void>
|
|
||||||
enableParentSessionNotifications?: boolean
|
|
||||||
},
|
|
||||||
) {
|
|
||||||
backgroundManagerOptions = options ?? null
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user