@mearl/client 3.3.0-beta.0 → 3.3.1

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.
Files changed (2) hide show
  1. package/dist/cli.js +4 -1
  2. package/package.json +6 -6
package/dist/cli.js CHANGED
@@ -11,7 +11,8 @@ import { COMMANDS, COMMAND_MAP } from './commands.js';
11
11
  import { formatCommandHelp } from './commandHelp.js';
12
12
  import { CLIENT_VERSION } from './socket.js';
13
13
  import { UnifiedClient } from './unified.js';
14
- import { findPluginEntry, findPluginRegistration, findOfficialPlugin, listPluginNames, listOfficialPluginNames, loadRegisteredPlugin, PluginError, } from './plugins/sdk/plugin.js';
14
+ import { findOfficialPlugin, listOfficialPluginNames } from './plugins/officialPluginCatalog.js';
15
+ import { findPluginEntry, findPluginRegistration, listPluginNames, PluginError, } from './plugins/pluginRegistry.js';
15
16
  import { resolveServer } from './unifiedConfig.js';
16
17
  const TOP_LEVEL_COMMAND_NAME_WIDTH = 22;
17
18
  const CATEGORIES = [
@@ -272,6 +273,7 @@ async function sameNamePluginHelp(commandName, name) {
272
273
  try {
273
274
  if (!findPluginEntry(name))
274
275
  return undefined;
276
+ const { loadRegisteredPlugin } = await import('./plugins/sdk/plugin.js');
275
277
  const plugin = await loadRegisteredPlugin(name, {
276
278
  async invoke() {
277
279
  throw new Error('生成插件帮助时不能调用宿主能力');
@@ -506,6 +508,7 @@ async function runPluginCli(args, commandName) {
506
508
  }
507
509
  let client;
508
510
  try {
511
+ const { loadRegisteredPlugin } = await import('./plugins/sdk/plugin.js');
509
512
  const invokeOptions = {
510
513
  ...(parsed.timeoutOption ? { timeoutSec: parsed.timeoutSec } : {}),
511
514
  ...(parsed.browser ? { browser: parsed.browser } : {}),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mearl/client",
3
- "version": "3.3.0-beta.0",
3
+ "version": "3.3.1",
4
4
  "description": "Unified Mearl SDK & CLI for local and remote browsers",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -69,11 +69,11 @@
69
69
  "commander": "^14.0.3",
70
70
  "fastest-levenshtein": "^1.0.16",
71
71
  "ws": "^8.18.0",
72
- "@mearl/daemon-core": "3.3.0-beta.0",
73
- "@mearl/cloud-types": "3.3.0-beta.0",
74
- "@mearl/provider": "3.3.0-beta.0",
75
- "@mearl/agent-runtime": "3.3.0-beta.0",
76
- "@mearl/browser-core": "3.3.0-beta.0"
72
+ "@mearl/daemon-core": "3.3.1",
73
+ "@mearl/cloud-types": "3.3.1",
74
+ "@mearl/provider": "3.3.1",
75
+ "@mearl/browser-core": "3.3.1",
76
+ "@mearl/agent-runtime": "3.3.1"
77
77
  },
78
78
  "devDependencies": {
79
79
  "@types/node": "^24.9.1",