@xcanwin/manyoyo 5.7.8 → 5.7.11

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/README.md CHANGED
@@ -52,10 +52,11 @@ AI Agent CLI 往往需要:
52
52
 
53
53
  ```bash
54
54
  npm install -g @xcanwin/manyoyo
55
- podman pull ubuntu:24.04 # 仅 Podman 需要
55
+ podman pull ubuntu:24.04 # 仅 Podman 需要
56
56
  manyoyo build --iv 1.9.0-common
57
57
  manyoyo init all
58
58
  manyoyo run -r claude
59
+ manyoyo serve 127.0.0.1:3000 -U admin -P 123456 # Web UI 模式
59
60
  ```
60
61
 
61
62
  系统要求:
@@ -122,7 +123,7 @@ manyoyo images
122
123
  manyoyo run -n my-dev -x /bin/bash
123
124
  manyoyo rm my-dev
124
125
 
125
- # Web 模式
126
+ # Web UI 模式
126
127
  manyoyo serve 127.0.0.1:3000
127
128
  manyoyo serve 127.0.0.1:3000 -U admin -P 123456
128
129
  manyoyo serve 127.0.0.1:3000 -U admin -P 123456 -d
package/bin/manyoyo.js CHANGED
@@ -857,7 +857,7 @@ function updateManyoyo() {
857
857
 
858
858
  console.log(`${CYAN}🔄 当前版本: ${currentVersion}${NC}`);
859
859
  console.log(`${CYAN}🔄 正在更新 ${MANYOYO_NAME} 到最新版本...${NC}`);
860
- runCmd('npm', ['update', '-g', '@xcanwin/manyoyo'], { stdio: 'inherit' });
860
+ runCmd('npm', ['update', '-g', '@xcanwin/manyoyo', '--prefer-online'], { stdio: 'inherit' });
861
861
 
862
862
  // 升级后获取新版本
863
863
  let newVersion = 'unknown';
@@ -801,6 +801,25 @@ class PlaywrightPlugin {
801
801
  launchOptions.args.push(...DISABLE_WEBRTC_LAUNCH_ARGS);
802
802
  }
803
803
 
804
+ const contextOptions = {
805
+ userAgent: DEFAULT_FINGERPRINT_PROFILE.userAgent,
806
+ locale: DEFAULT_FINGERPRINT_PROFILE.locale,
807
+ timezoneId: DEFAULT_FINGERPRINT_PROFILE.timezoneId,
808
+ extraHTTPHeaders: {
809
+ 'Accept-Language': DEFAULT_FINGERPRINT_PROFILE.acceptLanguage
810
+ }
811
+ };
812
+ if (sceneName !== 'mcp-host-headed') {
813
+ contextOptions.viewport = {
814
+ width: DEFAULT_FINGERPRINT_PROFILE.width,
815
+ height: DEFAULT_FINGERPRINT_PROFILE.height
816
+ };
817
+ contextOptions.screen = {
818
+ width: DEFAULT_FINGERPRINT_PROFILE.width,
819
+ height: DEFAULT_FINGERPRINT_PROFILE.height
820
+ };
821
+ }
822
+
804
823
  return {
805
824
  outputDir: '/tmp/.playwright-mcp',
806
825
  server: {
@@ -818,22 +837,7 @@ class PlaywrightPlugin {
818
837
  browserName: 'chromium',
819
838
  initScript,
820
839
  launchOptions,
821
- contextOptions: {
822
- userAgent: DEFAULT_FINGERPRINT_PROFILE.userAgent,
823
- locale: DEFAULT_FINGERPRINT_PROFILE.locale,
824
- timezoneId: DEFAULT_FINGERPRINT_PROFILE.timezoneId,
825
- viewport: {
826
- width: DEFAULT_FINGERPRINT_PROFILE.width,
827
- height: DEFAULT_FINGERPRINT_PROFILE.height
828
- },
829
- screen: {
830
- width: DEFAULT_FINGERPRINT_PROFILE.width,
831
- height: DEFAULT_FINGERPRINT_PROFILE.height
832
- },
833
- extraHTTPHeaders: {
834
- 'Accept-Language': DEFAULT_FINGERPRINT_PROFILE.acceptLanguage
835
- }
836
- }
840
+ contextOptions
837
841
  }
838
842
  };
839
843
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xcanwin/manyoyo",
3
- "version": "5.7.8",
3
+ "version": "5.7.11",
4
4
  "imageVersion": "1.9.0-common",
5
5
  "playwrightCliVersion": "0.1.1",
6
6
  "description": "AI Agent CLI Security Sandbox for Docker and Podman",