@swimmingliu/autovpn 1.5.2 → 1.5.3
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.
- package/dist/cli/main.js +12 -0
- package/dist/web/renderer/i18n.js +1 -1
- package/package.json +1 -1
package/dist/cli/main.js
CHANGED
|
@@ -47,6 +47,15 @@ async function resolvePackageVersion(options) {
|
|
|
47
47
|
function hasFlag(argv, flag) {
|
|
48
48
|
return argv.includes(flag);
|
|
49
49
|
}
|
|
50
|
+
function hasProxyFlag(argv) {
|
|
51
|
+
return argv.some((value) => value === '--proxy' || value.startsWith('--proxy='));
|
|
52
|
+
}
|
|
53
|
+
function isPipelineProxyCommand(argv) {
|
|
54
|
+
if (!hasProxyFlag(argv)) {
|
|
55
|
+
return false;
|
|
56
|
+
}
|
|
57
|
+
return argv[0] === 'run' || (argv[0] === 'resume' && argv[1] === 'pipeline');
|
|
58
|
+
}
|
|
50
59
|
function eventOutputFormat(argv) {
|
|
51
60
|
return readOptionValue(argv, '--output') === 'human' ? 'human' : 'jsonl';
|
|
52
61
|
}
|
|
@@ -229,6 +238,9 @@ export async function runCliShell(argv, options = {}) {
|
|
|
229
238
|
});
|
|
230
239
|
return pythonFallbackBackend.executeCli(fallbackArgv);
|
|
231
240
|
};
|
|
241
|
+
if (isPipelineProxyCommand(normalizedArgv)) {
|
|
242
|
+
return runExplicitPythonFallback(normalizedArgv);
|
|
243
|
+
}
|
|
232
244
|
const nativeResult = await runNativeCommand(normalizedArgv, {
|
|
233
245
|
cwd,
|
|
234
246
|
env,
|