diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 5030055feac..0b94b47a1e6 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -1036,6 +1036,9 @@ importers: source-map: specifier: ^0.7.4 version: 0.7.4 + stacktrace-js: + specifier: ^2.0.2 + version: 2.0.2 styled-components: specifier: ^6.1.13 version: 6.1.18(react-dom@18.3.1(react@18.3.1))(react@18.3.1) @@ -1097,6 +1100,9 @@ importers: '@types/shell-quote': specifier: ^1.7.5 version: 1.7.5 + '@types/stacktrace-js': + specifier: ^2.0.3 + version: 2.0.3 '@types/vscode-webview': specifier: ^1.57.5 version: 1.57.5 @@ -3888,6 +3894,10 @@ packages: '@types/stack-utils@2.0.3': resolution: {integrity: sha512-9aEbYZ3TbYMznPdcdr3SmIrLXwC/AKZXQeCf9Pgao5CKb8CyHuEX5jzWPTkvregvhRJHcpRO6BFoGW9ycaOkYw==} + '@types/stacktrace-js@2.0.3': + resolution: {integrity: sha512-B6JnMic4NAZ4mLWmRi4RvayCN2HZQvpcVF0MkoqubtuZx1AQB0/kRlrngGiocEPyO7R+TFocTEoLKQ0HzmEOPw==} + deprecated: This is a stub types definition. stacktrace-js provides its own type definitions, so you do not need this installed. + '@types/stream-chain@2.1.0': resolution: {integrity: sha512-guDyAl6s/CAzXUOWpGK2bHvdiopLIwpGu8v10+lb9hnQOyo4oj/ZUQFOvqFjKGsE3wJP1fpIesCcMvbXuWsqOg==} @@ -13090,6 +13100,10 @@ snapshots: '@types/stack-utils@2.0.3': {} + '@types/stacktrace-js@2.0.3': + dependencies: + stacktrace-js: 2.0.2 + '@types/stream-chain@2.1.0': dependencies: '@types/node': 20.19.1 diff --git a/src/.vscodeignore b/src/.vscodeignore index 8eed90df07e..9695b185a62 100644 --- a/src/.vscodeignore +++ b/src/.vscodeignore @@ -14,7 +14,7 @@ !dist # Include the built webview -**/*.map +!**/*.map !webview-ui/audio !webview-ui/build/assets/*.js !webview-ui/build/assets/*.ttf diff --git a/src/core/webview/ClineProvider.ts b/src/core/webview/ClineProvider.ts index 107122dcb46..fe859d6b731 100644 --- a/src/core/webview/ClineProvider.ts +++ b/src/core/webview/ClineProvider.ts @@ -680,7 +680,7 @@ export class ClineProvider `img-src ${webview.cspSource} https://storage.googleapis.com https://img.clerk.com data:`, `media-src ${webview.cspSource}`, `script-src 'unsafe-eval' ${webview.cspSource} https://* https://*.posthog.com http://${localServerUrl} http://0.0.0.0:${localPort} 'nonce-${nonce}'`, - `connect-src https://* https://*.posthog.com ws://${localServerUrl} ws://0.0.0.0:${localPort} http://${localServerUrl} http://0.0.0.0:${localPort}`, + `connect-src ${webview.cspSource} https://* https://*.posthog.com ws://${localServerUrl} ws://0.0.0.0:${localPort} http://${localServerUrl} http://0.0.0.0:${localPort}`, ] return /*html*/ ` @@ -762,7 +762,7 @@ export class ClineProvider - +