mirror of
https://github.com/anomalyco/opencode.git
synced 2026-07-29 16:43:33 +00:00
chore: generate
This commit is contained in:
parent
3819848cf2
commit
bce2992729
1 changed files with 4 additions and 1 deletions
|
|
@ -80,7 +80,10 @@ export async function mockOpenCodeServer(page: Page, config: MockServerConfig) {
|
|||
if (path === "/question")
|
||||
return json(route, typeof config.questions === "function" ? config.questions() : (config.questions ?? []))
|
||||
if (path === "/session/status")
|
||||
return json(route, typeof config.sessionStatus === "function" ? config.sessionStatus() : (config.sessionStatus ?? {}))
|
||||
return json(
|
||||
route,
|
||||
typeof config.sessionStatus === "function" ? config.sessionStatus() : (config.sessionStatus ?? {}),
|
||||
)
|
||||
if (path === "/vcs/diff" && config.vcsDiff) return json(route, config.vcsDiff)
|
||||
if (path === "/file" && config.fileList)
|
||||
return json(route, await config.fileList(url.searchParams.get("path") ?? ""))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue