@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 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,
@@ -5,7 +5,7 @@ const ZH_MESSAGES = {
5
5
  locale: 'zh-CN',
6
6
  appTitle: 'AutoVPN',
7
7
  sidebarTitle: 'AutoVPN',
8
- sidebarVersion: 'v.1.5.2',
8
+ sidebarVersion: 'v.1.5.3',
9
9
  brandSubtitle: '概览、运行、结果、订阅、日志、设置统一管理',
10
10
  languageLabel: '',
11
11
  saveButton: '保存配置',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@swimmingliu/autovpn",
3
- "version": "1.5.2",
3
+ "version": "1.5.3",
4
4
  "description": "npm wrapper for the AutoVPN headless CLI",
5
5
  "type": "module",
6
6
  "repository": {