refactor: move inbound config

This commit is contained in:
Peter Steinberger
2025-12-24 00:22:52 +00:00
parent 5e07400cd1
commit 93af424ce5
34 changed files with 283 additions and 243 deletions

View File

@@ -46,7 +46,7 @@ async function withTempHome<T>(fn: (home: string) => Promise<T>): Promise<T> {
function mockConfig(
home: string,
storePath: string,
inboundOverrides?: Partial<NonNullable<ClawdisConfig["inbound"]>>,
routingOverrides?: Partial<NonNullable<ClawdisConfig["routing"]>>,
) {
configSpy.mockReturnValue({
agent: {
@@ -54,10 +54,8 @@ function mockConfig(
model: "claude-opus-4-5",
workspace: path.join(home, "clawd"),
},
inbound: {
session: { store: storePath, mainKey: "main" },
...inboundOverrides,
},
session: { store: storePath, mainKey: "main" },
routing: routingOverrides ? { ...routingOverrides } : undefined,
});
}