chore: generate
This commit is contained in:
parent
fe0c4f8c74
commit
155e1f20d6
25 changed files with 492 additions and 329 deletions
|
|
@ -43,8 +43,19 @@ export function createFetch(override?: FetchHandler) {
|
|||
const overridden = await override?.(url)
|
||||
if (overridden) return overridden
|
||||
|
||||
if (["/agent", "/command", "/experimental/workspace", "/experimental/workspace/status", "/formatter", "/lsp"].includes(url.pathname)) return json([])
|
||||
if (["/config", "/experimental/resource", "/mcp", "/provider/auth", "/session/status"].includes(url.pathname)) return json({})
|
||||
if (
|
||||
[
|
||||
"/agent",
|
||||
"/command",
|
||||
"/experimental/workspace",
|
||||
"/experimental/workspace/status",
|
||||
"/formatter",
|
||||
"/lsp",
|
||||
].includes(url.pathname)
|
||||
)
|
||||
return json([])
|
||||
if (["/config", "/experimental/resource", "/mcp", "/provider/auth", "/session/status"].includes(url.pathname))
|
||||
return json({})
|
||||
if (url.pathname === "/config/providers") return json({ providers: {}, default: {} })
|
||||
if (url.pathname === "/experimental/console") return json({ consoleManagedProviders: [], switchableOrgCount: 0 })
|
||||
if (url.pathname === "/path") return json({ home: "", state: "", config: "", worktree, directory })
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue