chore: generate

This commit is contained in:
opencode-agent[bot]
2026-06-11 06:32:44 +00:00
parent dac0dd5309
commit 710e408709
16 changed files with 1523 additions and 414 deletions
+1 -4
View File
@@ -425,10 +425,7 @@ export const { use: useData, provider: DataProvider } = createSimpleContext({
break
case "credential.switched": {
const location = { directory: metadata.directory, workspaceID: metadata.workspace }
void Promise.allSettled([
result.location.model.refresh(location),
result.location.provider.refresh(location),
])
void Promise.allSettled([result.location.model.refresh(location), result.location.provider.refresh(location)])
break
}
case "connector.updated":
+5 -1
View File
@@ -60,7 +60,11 @@ export function createFetch(override?: FetchHandler) {
if (url.pathname === "/experimental/console") return json({ consoleManagedProviders: [], switchableOrgCount: 0 })
if (url.pathname === "/path") return json({ home: "", state: "", config: "", worktree, directory })
if (url.pathname === "/api/location") return json({ directory, project: { id: "proj_test", directory: worktree } })
if (["/api/agent", "/api/model", "/api/provider", "/api/connector", "/api/command", "/api/skill"].includes(url.pathname))
if (
["/api/agent", "/api/model", "/api/provider", "/api/connector", "/api/command", "/api/skill"].includes(
url.pathname,
)
)
return json({
location: { directory, project: { id: "proj_test", directory: worktree } },
data: [],