@intuned/runtime 1.3.19 → 1.3.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
{
|
|
2
|
+
"permissions": {
|
|
3
|
+
"allow": [
|
|
4
|
+
"Bash(git -C /Users/yousefhanbali/Desktop/webapp/WebApp2 submodule status -- apps/web/packagerWorkerAssets/cookbook)",
|
|
5
|
+
"Bash(git -C /Users/yousefhanbali/Desktop/webapp/WebApp2 config --list --local)",
|
|
6
|
+
"Bash(git -C /Users/yousefhanbali/Desktop/webapp/WebApp2 config --get core.hooksPath)"
|
|
7
|
+
]
|
|
8
|
+
}
|
|
9
|
+
}
|
|
@@ -114,7 +114,10 @@ async function launchChromium(options) {
|
|
|
114
114
|
if (appModeInitialUrl) {
|
|
115
115
|
extraArgs.push(`--app=${appModeInitialUrl}`);
|
|
116
116
|
}
|
|
117
|
-
if (
|
|
117
|
+
if (stealthConfig.enabled && stealthConfig.type === "intunedBrowser") {
|
|
118
|
+
const stealthExecutablePath = await getIntunedBrowserExecutablePath();
|
|
119
|
+
executablePath = stealthExecutablePath;
|
|
120
|
+
} else if (executablePath) {
|
|
118
121
|
executablePath = await fs.realpath(executablePath);
|
|
119
122
|
if (!(await fs.exists(executablePath))) {
|
|
120
123
|
console.log(`Warning: Executable path ${executablePath} does not exist. Falling back to default.`);
|
|
@@ -174,13 +177,6 @@ async function getIntunedBrowserExecutablePath() {
|
|
|
174
177
|
return undefined;
|
|
175
178
|
}
|
|
176
179
|
async function getBrowserExecutablePath() {
|
|
177
|
-
const stealthConfig = await (0, _intunedJson.getStealthModeConfig)();
|
|
178
|
-
if (stealthConfig.enabled && stealthConfig.type === "intunedBrowser") {
|
|
179
|
-
const intunedPath = await getIntunedBrowserExecutablePath();
|
|
180
|
-
if (intunedPath) {
|
|
181
|
-
return intunedPath;
|
|
182
|
-
}
|
|
183
|
-
}
|
|
184
180
|
const browserType = getBrowserType();
|
|
185
181
|
if (browserType === "brave") {
|
|
186
182
|
return await getBraveExecutablePath();
|