@@ -595,6 +595,7 @@ export class ClineProvider extends EventEmitter<ClineProviderEvents> implements
595595 ] )
596596
597597 const imagesUri = getUri ( webview , this . contextProxy . extensionUri , [ "assets" , "images" ] )
598+ const audioUri = getUri ( webview , this . contextProxy . extensionUri , [ "webview-ui" , "audio" ] )
598599
599600 const file = "src/index.tsx"
600601 const scriptUri = `http://${ localServerUrl } /${ file } `
@@ -614,6 +615,7 @@ export class ClineProvider extends EventEmitter<ClineProviderEvents> implements
614615 `font-src ${ webview . cspSource } ` ,
615616 `style-src ${ webview . cspSource } 'unsafe-inline' https://* http://${ localServerUrl } http://0.0.0.0:${ localPort } ` ,
616617 `img-src ${ webview . cspSource } data:` ,
618+ `media-src ${ webview . cspSource } ` ,
617619 `script-src 'unsafe-eval' ${ webview . cspSource } https://* https://*.posthog.com http://${ localServerUrl } http://0.0.0.0:${ localPort } 'nonce-${ nonce } '` ,
618620 `connect-src https://* https://*.posthog.com ws://${ localServerUrl } ws://0.0.0.0:${ localPort } http://${ localServerUrl } http://0.0.0.0:${ localPort } ` ,
619621 ]
@@ -629,6 +631,7 @@ export class ClineProvider extends EventEmitter<ClineProviderEvents> implements
629631 <link href="${ codiconsUri } " rel="stylesheet" />
630632 <script nonce="${ nonce } ">
631633 window.IMAGES_BASE_URI = "${ imagesUri } "
634+ window.AUDIO_BASE_URI = "${ audioUri } "
632635 window.MATERIAL_ICONS_BASE_URI = "${ materialIconsUri } "
633636 </script>
634637 <title>Roo Code</title>
@@ -688,6 +691,7 @@ export class ClineProvider extends EventEmitter<ClineProviderEvents> implements
688691 ] )
689692
690693 const imagesUri = getUri ( webview , this . contextProxy . extensionUri , [ "assets" , "images" ] )
694+ const audioUri = getUri ( webview , this . contextProxy . extensionUri , [ "webview-ui" , "audio" ] )
691695
692696 // const scriptUri = webview.asWebviewUri(vscode.Uri.joinPath(this._extensionUri, "assets", "main.js"))
693697
@@ -718,11 +722,12 @@ export class ClineProvider extends EventEmitter<ClineProviderEvents> implements
718722 <meta charset="utf-8">
719723 <meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no">
720724 <meta name="theme-color" content="#000000">
721- <meta http-equiv="Content-Security-Policy" content="default-src 'none'; font-src ${ webview . cspSource } ; style-src ${ webview . cspSource } 'unsafe-inline'; img-src ${ webview . cspSource } data:; script-src ${ webview . cspSource } 'wasm-unsafe-eval' 'nonce-${ nonce } ' https://us-assets.i.posthog.com 'strict-dynamic'; connect-src https://openrouter.ai https://api.requesty.ai https://us.i.posthog.com https://us-assets.i.posthog.com;">
725+ <meta http-equiv="Content-Security-Policy" content="default-src 'none'; font-src ${ webview . cspSource } ; style-src ${ webview . cspSource } 'unsafe-inline'; img-src ${ webview . cspSource } data:; media-src ${ webview . cspSource } ; script-src ${ webview . cspSource } 'wasm-unsafe-eval' 'nonce-${ nonce } ' https://us-assets.i.posthog.com 'strict-dynamic'; connect-src https://openrouter.ai https://api.requesty.ai https://us.i.posthog.com https://us-assets.i.posthog.com https://file+.vscode-resource.vscode-cdn.net ;">
722726 <link rel="stylesheet" type="text/css" href="${ stylesUri } ">
723727 <link href="${ codiconsUri } " rel="stylesheet" />
724728 <script nonce="${ nonce } ">
725729 window.IMAGES_BASE_URI = "${ imagesUri } "
730+ window.AUDIO_BASE_URI = "${ audioUri } "
726731 window.MATERIAL_ICONS_BASE_URI = "${ materialIconsUri } "
727732 </script>
728733 <title>Roo Code</title>
0 commit comments