@mindexec/cli 0.2.95 → 0.2.97

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mindexec/cli",
3
- "version": "0.2.95",
3
+ "version": "0.2.97",
4
4
  "description": "MindExec local runtime and bridge CLI",
5
5
  "main": "server.js",
6
6
  "type": "module",
@@ -47,7 +47,7 @@
47
47
  "node": ">=20"
48
48
  },
49
49
  "dependencies": {
50
- "@mindexec/remote": "^0.1.15",
50
+ "@mindexec/remote": "^0.1.15",
51
51
  "@openai/codex-sdk": "^0.137.0",
52
52
  "chokidar": "^3.6.0",
53
53
  "cors": "^2.8.5",
package/server.js CHANGED
@@ -2993,15 +2993,72 @@ function resolveRemoteAgentLauncher() {
2993
2993
  // Fall back to npx for source checkouts or older package installs.
2994
2994
  }
2995
2995
 
2996
- const npxCommand = process.platform === 'win32' ? 'npx.cmd' : 'npx';
2996
+ const npxCli = resolveNpxCliLauncher();
2997
+ if (npxCli) {
2998
+ return {
2999
+ command: process.execPath,
3000
+ argsPrefix: [npxCli, '-y', '@mindexec/remote@latest'],
3001
+ launcher: npxCli,
3002
+ usingNpx: true
3003
+ };
3004
+ }
3005
+
3006
+ if (process.platform === 'win32') {
3007
+ return {
3008
+ command: process.env.ComSpec || 'cmd.exe',
3009
+ argsPrefix: ['/d', '/s', '/c', 'npx.cmd', '-y', '@mindexec/remote@latest'],
3010
+ launcher: 'cmd.exe /c npx.cmd',
3011
+ usingNpx: true
3012
+ };
3013
+ }
3014
+
2997
3015
  return {
2998
- command: npxCommand,
3016
+ command: 'npx',
2999
3017
  argsPrefix: ['-y', '@mindexec/remote@latest'],
3000
- launcher: npxCommand,
3018
+ launcher: 'npx',
3001
3019
  usingNpx: true
3002
3020
  };
3003
3021
  }
3004
3022
 
3023
+ function resolveNpxCliLauncher() {
3024
+ const candidates = [];
3025
+ const npmExecPath = String(process.env.npm_execpath || '').trim();
3026
+ if (npmExecPath) {
3027
+ const normalized = npmExecPath.replace(/\\/g, '/');
3028
+ if (/\/npx-cli\.js$/i.test(normalized)) {
3029
+ candidates.push(npmExecPath);
3030
+ } else if (/\/npm-cli\.js$/i.test(normalized)) {
3031
+ candidates.push(path.join(path.dirname(npmExecPath), 'npx-cli.js'));
3032
+ }
3033
+ }
3034
+
3035
+ const nodeRoot = path.dirname(process.execPath);
3036
+ candidates.push(
3037
+ path.join(nodeRoot, 'node_modules', 'npm', 'bin', 'npx-cli.js'),
3038
+ path.join(BRIDGE_ROOT, 'node_modules', 'npm', 'bin', 'npx-cli.js')
3039
+ );
3040
+
3041
+ const seen = new Set();
3042
+ for (const candidate of candidates) {
3043
+ const resolved = path.resolve(candidate);
3044
+ const key = resolved.toLowerCase();
3045
+ if (seen.has(key)) {
3046
+ continue;
3047
+ }
3048
+
3049
+ seen.add(key);
3050
+ try {
3051
+ if (statSync(resolved).isFile()) {
3052
+ return resolved;
3053
+ }
3054
+ } catch {
3055
+ // Try the next possible npm installation.
3056
+ }
3057
+ }
3058
+
3059
+ return '';
3060
+ }
3061
+
3005
3062
  async function stopRemoteAgentConnection(reason = 'stopped') {
3006
3063
  const previous = remoteAgentState;
3007
3064
  if (previous.proc) {
@@ -3156,6 +3213,10 @@ async function startRemoteAgentConnectionAttempt(options = {}) {
3156
3213
 
3157
3214
  let child;
3158
3215
  try {
3216
+ logEvent(
3217
+ 'remote',
3218
+ `managed RemoteAgent launch ${formatKeyValue('launcher', launcher.launcher)} ${formatKeyValue('manager', manager)}`,
3219
+ 'remote');
3159
3220
  child = spawn(launcher.command, args, {
3160
3221
  cwd: BRIDGE_ROOT,
3161
3222
  stdio: ['ignore', 'pipe', 'pipe'],
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "mainAssemblyName": "MindExecution.Web",
3
3
  "resources": {
4
- "hash": "sha256-5gnfR4WvV/8ivk6zDF09/vNhA5Ptgr7fb/UhdwOAmHM=",
4
+ "hash": "sha256-S5i7mkxpxBzpYozfgxXvhV6AnfLnexeTJfewiJ8jOtA=",
5
5
  "fingerprinting": {
6
6
  "Google.Protobuf.9h59ukbel7.dll": "Google.Protobuf.dll",
7
7
  "Markdig.d1j7v41cl1.dll": "Markdig.dll",
@@ -132,7 +132,7 @@
132
132
  "MindExecution.Plugins.PlanMaster.hn5sfx4z2l.dll": "MindExecution.Plugins.PlanMaster.dll",
133
133
  "MindExecution.Plugins.YouTube.c8sc0tlc6o.dll": "MindExecution.Plugins.YouTube.dll",
134
134
  "MindExecution.Shared.osv9nbh3ym.dll": "MindExecution.Shared.dll",
135
- "MindExecution.Web.cdu22y82zq.dll": "MindExecution.Web.dll",
135
+ "MindExecution.Web.q1jwri2r1p.dll": "MindExecution.Web.dll",
136
136
  "dotnet.js": "dotnet.js",
137
137
  "dotnet.native.qc8g39g30v.js": "dotnet.native.js",
138
138
  "dotnet.native.boem75ye5i.wasm": "dotnet.native.wasm",
@@ -283,7 +283,7 @@
283
283
  "MindExecution.Plugins.Concept.oqhv1116kb.dll": "sha256-kEAfhSpocd0AdwocZnMU2+v0W2y6HJV7TRiOB6FbmDY=",
284
284
  "MindExecution.Plugins.PlanMaster.hn5sfx4z2l.dll": "sha256-Y2F3UYa2JgW9pCxL/YlCHo6gUohqHjQ4Z59cL/fdDBU=",
285
285
  "MindExecution.Shared.osv9nbh3ym.dll": "sha256-yKMhEPXMN1XCDYyFMEbhio9mvn7j2JkPK/upMkWEfOE=",
286
- "MindExecution.Web.cdu22y82zq.dll": "sha256-wO+wguSU+8uumbvn/I2fjxrD0N3+xXvJZZWTmE2EjKg="
286
+ "MindExecution.Web.q1jwri2r1p.dll": "sha256-bovOzmI58+BvUxaKQrGot/z4TEAg+VMmAkhiLkkfg1k="
287
287
  },
288
288
  "lazyAssembly": {
289
289
  "MindExecution.Plugins.Admin.7kemovesa7.dll": "sha256-N8cYgaOErldVhLpnvnh4R9kf7f7fmt+16KhBWlnfG1I=",
@@ -1,5 +1,5 @@
1
1
  self.assetsManifest = {
2
- "version": "Gwzavwgq",
2
+ "version": "CHEnV4yd",
3
3
  "assets": [
4
4
  {
5
5
  "hash": "sha256-+CSYMcqLNTsq3VnH11jgYyOCCdxvHzL74CBmo4sCmMU=",
@@ -446,8 +446,8 @@
446
446
  "url": "_framework/MindExecution.Shared.osv9nbh3ym.dll"
447
447
  },
448
448
  {
449
- "hash": "sha256-wO+wguSU+8uumbvn/I2fjxrD0N3+xXvJZZWTmE2EjKg=",
450
- "url": "_framework/MindExecution.Web.cdu22y82zq.dll"
449
+ "hash": "sha256-bovOzmI58+BvUxaKQrGot/z4TEAg+VMmAkhiLkkfg1k=",
450
+ "url": "_framework/MindExecution.Web.q1jwri2r1p.dll"
451
451
  },
452
452
  {
453
453
  "hash": "sha256-IsZJ91/OW+fHzNqIgEc7Y072ns8z9dGritiSyvR9Wgc=",
@@ -770,7 +770,7 @@
770
770
  "url": "_framework/Websocket.Client.vapounvmnl.dll"
771
771
  },
772
772
  {
773
- "hash": "sha256-IDuQS33M39C51AcKlK3xYrMwyKOYKfuVq1o1JIS4wkw=",
773
+ "hash": "sha256-Ep+Ov81XThtcE2HBQd0whA+KI3/0iJDNLBCtGNYC4TI=",
774
774
  "url": "_framework/blazor.boot.json"
775
775
  },
776
776
  {
@@ -1,4 +1,4 @@
1
- /* Manifest version: Gwzavwgq */
1
+ /* Manifest version: CHEnV4yd */
2
2
  // Hosted deployments should prefer the network over stale offline caches.
3
3
  // This service worker immediately clears old Blazor offline caches and unregisters itself.
4
4