@mearl/setup 2.22.4 → 2.22.5

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
@@ -2,6 +2,10 @@
2
2
 
3
3
  Mearl 环境的一次性安装、更新、卸载与配置工具。无需先全局安装 setup:
4
4
 
5
+ 要求 Node.js >= 20.18.0。首次安装可执行 `npx @mearl/setup@latest` 显式选择最新版;
6
+ 若出现 `Unknown operation: plugin`,先检查 `node --version`,再用 `npx @mearl/setup@latest --version`
7
+ 确认安装器版本。未指定版本时,npm 可能优先选择兼容旧 Node 的历史版本。
8
+
5
9
  ```bash
6
10
  npx @mearl/setup [install] [--local] [--cloud|--qoder-cloud] [--mcp]
7
11
  npx @mearl/setup update [--local] [--cloud|--qoder-cloud] [--mcp]
package/dist/aliSkills.js CHANGED
@@ -2,7 +2,7 @@ import fs from 'node:fs';
2
2
  import os from 'node:os';
3
3
  import path from 'node:path';
4
4
  import { spawn } from 'node:child_process';
5
- import { executableNames, findExecutable, isExecutable, prependCommandPath, prependNodePath, resolveSpawnCommand, runCommand, versionManagerExecutableCandidates, } from '@mearl/daemon-core';
5
+ import { executableNames, findExecutable, isExecutable, npmExecEnvironment, prependCommandPath, prependNodePath, resolveSpawnCommand, runCommand, versionManagerExecutableCandidates, } from '@mearl/daemon-core';
6
6
  const COMMAND_TIMEOUT_MS = 120_000;
7
7
  const MAX_OUTPUT_LENGTH = 1_000_000;
8
8
  const ANSI_ESCAPE_PATTERN = new RegExp(String.raw `\u001B\[[0-?]*[ -/]*[@-~]`, 'g');
@@ -49,7 +49,7 @@ export const runAliSkillsCli = (executable, args, cwd) => new Promise((resolve,
49
49
  const launch = resolveSpawnCommand(executable, args);
50
50
  const child = spawn(launch.command, launch.args, {
51
51
  cwd,
52
- env: prependNodePath(prependCommandPath(executable)),
52
+ env: npmExecEnvironment(prependNodePath(prependCommandPath(executable))),
53
53
  stdio: ['ignore', 'pipe', 'pipe'],
54
54
  windowsHide: true,
55
55
  });
@@ -107,7 +107,7 @@ export function resolveAliSkillsInvocation(options = {}) {
107
107
  return {
108
108
  command: npx,
109
109
  argsPrefix: ['-y', 'ali-skills'],
110
- env: prependNodePath(prependCommandPath(npx, env), processExecPath),
110
+ env: npmExecEnvironment(prependNodePath(prependCommandPath(npx, env), processExecPath)),
111
111
  };
112
112
  }
113
113
  export function parseGlobalMearlSkillPaths(output) {
package/dist/plugin.js CHANGED
@@ -4,7 +4,7 @@ import { basename, dirname, isAbsolute, join, relative, resolve, sep } from 'nod
4
4
  import { assertPluginName, findPluginDirectoryEntry, findOfficialPlugin, findPluginEntry, findPluginRegistration, listPluginNames, loadPlugin, OFFICIAL_PLUGIN_MANAGER, registerPlugin, resolvePluginEntry, unregisterPlugin, } from '@mearl/client/plugin';
5
5
  import { ensurePluginRuntime } from './pluginRuntime.js';
6
6
  import { resolveAliSkillsInvocation, stripAnsi } from './aliSkills.js';
7
- import { findExecutable, prependNodePath, runCommand, } from '@mearl/daemon-core';
7
+ import { findExecutable, npmExecEnvironment, prependNodePath, runCommand, } from '@mearl/daemon-core';
8
8
  const registrationContext = {
9
9
  options: {},
10
10
  invoke: async () => {
@@ -241,7 +241,7 @@ export async function installPlugins(args, runner = runCommand, options = {}) {
241
241
  throw new Error('未找到 npx,请检查 Node.js 安装。');
242
242
  // 固定共享安装模式,确保成功结果指向 ~/.agents/skills 中的入口。
243
243
  const installed = await runner(npx, ['-y', 'ali-skills', 'add', ...args, '--global', '--install-mode', 'symlink'], {
244
- env: prependNodePath(),
244
+ env: npmExecEnvironment(prependNodePath()),
245
245
  tee: true,
246
246
  });
247
247
  if (installed.code !== 0)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mearl/setup",
3
- "version": "2.22.4",
3
+ "version": "2.22.5",
4
4
  "description": "One-shot environment setup and configuration for Mearl",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -56,18 +56,18 @@
56
56
  ],
57
57
  "license": "ISC",
58
58
  "engines": {
59
- "node": ">=22.12.0"
59
+ "node": ">=20.18.0"
60
60
  },
61
61
  "publishConfig": {
62
62
  "registry": "https://registry.npmjs.org"
63
63
  },
64
64
  "dependencies": {
65
- "commander": "^15.0.0",
65
+ "commander": "^14.0.3",
66
66
  "extract-zip": "^2.0.1",
67
67
  "ws": "^8.18.3",
68
- "@mearl/client": "2.22.4",
69
- "@mearl/provider": "2.22.4",
70
- "@mearl/daemon-core": "2.22.4"
68
+ "@mearl/client": "2.22.5",
69
+ "@mearl/provider": "2.22.5",
70
+ "@mearl/daemon-core": "2.22.5"
71
71
  },
72
72
  "devDependencies": {
73
73
  "@types/node": "^24.9.1",