Skip to content

Commit 962df86

Browse files
authored
Fix webview in dev mode (#7044)
1 parent 9ffc2b0 commit 962df86

23 files changed

+33
-47
lines changed

knip.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
},
1717
"webview-ui": {
1818
"entry": ["src/index.tsx"],
19-
"project": ["src/**/*.{ts,tsx}"]
19+
"project": ["src/**/*.{ts,tsx}", "../src/shared/*.ts"]
2020
},
2121
"packages/{build,cloud,evals,ipc,telemetry,types}": {
2222
"project": ["src/**/*.ts"]

pnpm-lock.yaml

Lines changed: 0 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

scripts/link-packages.js

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,6 @@ const config = {
1414
npmPath: "npm",
1515
watchCommand: "pnpm build:development:watch",
1616
},
17-
{
18-
name: "@roo-code/cloud",
19-
sourcePath: "../Roo-Code-Cloud/packages/sdk",
20-
targetPath: "webview-ui/node_modules/@roo-code/cloud",
21-
npmPath: "npm",
22-
watchCommand: "pnpm build:development:watch",
23-
},
2417
],
2518
}
2619

src/shared/cloud.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import { CloudUserInfo, OrganizationAllowList, ShareVisibility } from "@roo-code/cloud"
2+
3+
export type { CloudUserInfo, OrganizationAllowList, ShareVisibility }
4+
5+
export const ORGANIZATION_ALLOW_ALL: OrganizationAllowList = {
6+
allowAll: true,
7+
providers: {},
8+
} as const

webview-ui/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
"@radix-ui/react-slider": "^1.2.3",
3030
"@radix-ui/react-slot": "^1.1.2",
3131
"@radix-ui/react-tooltip": "^1.1.8",
32-
"@roo-code/cloud": "^0.13.0",
3332
"@roo-code/types": "workspace:^",
3433
"@tailwindcss/vite": "^4.0.0",
3534
"@tanstack/react-query": "^5.68.0",

webview-ui/src/__mocks__/vscode.ts

Lines changed: 0 additions & 18 deletions
This file was deleted.

webview-ui/src/components/account/AccountView.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ import { useEffect, useRef } from "react"
22
import { VSCodeButton } from "@vscode/webview-ui-toolkit/react"
33

44
import { TelemetryEventName } from "@roo-code/types"
5-
import type { CloudUserInfo } from "@roo-code/cloud"
5+
6+
import type { CloudUserInfo } from "@roo/cloud"
67

78
import { useAppTranslation } from "@src/i18n/TranslationContext"
89
import { useExtensionState } from "@src/context/ExtensionStateContext"

webview-ui/src/components/chat/ShareButton.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ import { useTranslation } from "react-i18next"
33
import { SquareArrowOutUpRightIcon } from "lucide-react"
44

55
import { type HistoryItem, TelemetryEventName } from "@roo-code/types"
6-
import type { ShareVisibility } from "@roo-code/cloud"
6+
7+
import type { ShareVisibility } from "@roo/cloud"
78

89
import { vscode } from "@/utils/vscode"
910
import { telemetryClient } from "@/utils/TelemetryClient"

webview-ui/src/components/settings/ApiConfigManager.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ import { VSCodeTextField } from "@vscode/webview-ui-toolkit/react"
33
import { AlertTriangle } from "lucide-react"
44

55
import type { ProviderSettingsEntry } from "@roo-code/types"
6-
import type { OrganizationAllowList } from "@roo-code/cloud"
6+
7+
import type { OrganizationAllowList } from "@roo/cloud"
78

89
import { useAppTranslation } from "@/i18n/TranslationContext"
910
import {

webview-ui/src/components/settings/ModelPicker.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ import { Trans } from "react-i18next"
44
import { ChevronsUpDown, Check, X } from "lucide-react"
55

66
import type { ProviderSettings, ModelInfo } from "@roo-code/types"
7-
import type { OrganizationAllowList } from "@roo-code/cloud"
7+
8+
import type { OrganizationAllowList } from "@roo/cloud"
89

910
import { useAppTranslation } from "@src/i18n/TranslationContext"
1011
import { useSelectedModel } from "@/components/ui/hooks/useSelectedModel"

0 commit comments

Comments
 (0)