@xcanwin/manyoyo 5.1.8 → 5.1.9

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.
@@ -236,7 +236,7 @@ class PlaywrightPlugin {
236
236
  hostListen: '127.0.0.1',
237
237
  mcpDefaultHost: 'host.docker.internal',
238
238
  dockerTag: process.env.PLAYWRIGHT_MCP_DOCKER_TAG || 'latest',
239
- containerRuntime: 'podman',
239
+ containerRuntime: '',
240
240
  vncPasswordEnvKey: 'VNC_PASSWORD',
241
241
  headedImage: 'localhost/xcanwin/manyoyo-playwright-headed',
242
242
  configDir: path.join(pluginRootDir, 'config'),
@@ -272,6 +272,7 @@ class PlaywrightPlugin {
272
272
  this.runConfig.enabledScenes,
273
273
  asStringArray(this.globalConfig.enabledScenes, [...defaultConfig.enabledScenes])
274
274
  );
275
+ merged.containerRuntime = this.resolveContainerRuntime(merged.containerRuntime);
275
276
 
276
277
  if (merged.enabledScenes.length === 0) {
277
278
  throw new Error('playwright.enabledScenes 不能为空');
@@ -285,6 +286,22 @@ class PlaywrightPlugin {
285
286
  return merged;
286
287
  }
287
288
 
289
+ resolveContainerRuntime(configuredRuntime) {
290
+ const configured = String(configuredRuntime || '').trim().toLowerCase();
291
+ if (configured) {
292
+ return configured;
293
+ }
294
+
295
+ const candidates = ['docker', 'podman'];
296
+ for (const cmd of candidates) {
297
+ if (this.ensureCommandAvailable(cmd)) {
298
+ return cmd;
299
+ }
300
+ }
301
+
302
+ return 'docker';
303
+ }
304
+
288
305
  writeStdout(line = '') {
289
306
  this.stdout.write(`${line}\n`);
290
307
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xcanwin/manyoyo",
3
- "version": "5.1.8",
3
+ "version": "5.1.9",
4
4
  "imageVersion": "1.8.1-common",
5
5
  "description": "AI Agent CLI Security Sandbox for Docker and Podman",
6
6
  "keywords": [