@mindexec/cli 0.2.126 → 0.2.127

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.126",
3
+ "version": "0.2.127",
4
4
  "description": "MindExec local runtime and bridge CLI",
5
5
  "main": "server.js",
6
6
  "type": "module",
@@ -12,6 +12,7 @@
12
12
  "remote-hub.js",
13
13
  "codex-runtime.js",
14
14
  "port-guard.cjs",
15
+ "remote-fast/",
15
16
  "wwwroot/",
16
17
  "scripts/",
17
18
  "tree-sitter-grammars/",
@@ -20,13 +21,14 @@
20
21
  "scripts": {
21
22
  "start": "node launch-bridge.cjs",
22
23
  "dev": "node launch-bridge.cjs --watch",
23
- "test:syntax": "node --check server.js && node --check remote-hub.js && node --check codex-runtime.js && node --check launch-bridge.cjs && node --check port-guard.cjs && node --check scripts/setup-tree-sitter-grammars.mjs && node --check scripts/auth-session-smoke.mjs && node --check scripts/remote-hub-smoke.mjs && node --check scripts/remote-hub-scale-smoke.mjs && node --check scripts/remote-fleet-render-smoke.mjs && node --check scripts/remote-http-smoke.mjs && node --check scripts/remote-frame-ws-smoke.mjs && node --check scripts/remote-agent-ws-smoke.mjs && node --check scripts/remote-agent-managed-smoke.mjs",
24
+ "test:syntax": "node --check server.js && node --check remote-hub.js && node --check codex-runtime.js && node --check launch-bridge.cjs && node --check port-guard.cjs && node --check scripts/setup-tree-sitter-grammars.mjs && node --check scripts/auth-session-smoke.mjs && node --check scripts/remote-hub-smoke.mjs && node --check scripts/remote-hub-scale-smoke.mjs && node --check scripts/remote-fleet-render-smoke.mjs && node --check scripts/remote-http-smoke.mjs && node --check scripts/remote-frame-ws-smoke.mjs && node --check scripts/remote-agent-ws-smoke.mjs && node --check scripts/remote-agent-managed-smoke.mjs && node --check scripts/remote-agent-package-smoke.mjs",
24
25
  "test:auth": "node scripts/auth-session-smoke.mjs",
25
26
  "test:remote": "node scripts/remote-hub-smoke.mjs",
26
27
  "test:remote:scale": "node scripts/remote-hub-scale-smoke.mjs",
27
28
  "test:remote:render": "node scripts/remote-fleet-render-smoke.mjs",
28
29
  "test:remote:http": "node scripts/remote-http-smoke.mjs",
29
30
  "test:remote:managed": "node scripts/remote-agent-managed-smoke.mjs",
31
+ "test:remote:package": "node scripts/remote-agent-package-smoke.mjs",
30
32
  "pack:dry": "npm pack --dry-run",
31
33
  "setup:grammars": "node scripts/setup-tree-sitter-grammars.mjs",
32
34
  "postinstall": "npm run setup:grammars"
@@ -0,0 +1,24 @@
1
+ {
2
+ "runtimeTarget": {
3
+ "name": ".NETCoreApp,Version=v9.0/osx-arm64",
4
+ "signature": ""
5
+ },
6
+ "compilationOptions": {},
7
+ "targets": {
8
+ ".NETCoreApp,Version=v9.0": {},
9
+ ".NETCoreApp,Version=v9.0/osx-arm64": {
10
+ "mindexec-remote-fast/1.0.0": {
11
+ "runtime": {
12
+ "mindexec-remote-fast.dll": {}
13
+ }
14
+ }
15
+ }
16
+ },
17
+ "libraries": {
18
+ "mindexec-remote-fast/1.0.0": {
19
+ "type": "project",
20
+ "serviceable": false,
21
+ "sha512": ""
22
+ }
23
+ }
24
+ }
@@ -0,0 +1,13 @@
1
+ {
2
+ "runtimeOptions": {
3
+ "tfm": "net9.0",
4
+ "framework": {
5
+ "name": "Microsoft.NETCore.App",
6
+ "version": "9.0.0"
7
+ },
8
+ "configProperties": {
9
+ "System.Reflection.Metadata.MetadataUpdater.IsSupported": false,
10
+ "System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization": false
11
+ }
12
+ }
13
+ }
@@ -0,0 +1,24 @@
1
+ {
2
+ "runtimeTarget": {
3
+ "name": ".NETCoreApp,Version=v9.0/osx-x64",
4
+ "signature": ""
5
+ },
6
+ "compilationOptions": {},
7
+ "targets": {
8
+ ".NETCoreApp,Version=v9.0": {},
9
+ ".NETCoreApp,Version=v9.0/osx-x64": {
10
+ "mindexec-remote-fast/1.0.0": {
11
+ "runtime": {
12
+ "mindexec-remote-fast.dll": {}
13
+ }
14
+ }
15
+ }
16
+ },
17
+ "libraries": {
18
+ "mindexec-remote-fast/1.0.0": {
19
+ "type": "project",
20
+ "serviceable": false,
21
+ "sha512": ""
22
+ }
23
+ }
24
+ }
@@ -0,0 +1,13 @@
1
+ {
2
+ "runtimeOptions": {
3
+ "tfm": "net9.0",
4
+ "framework": {
5
+ "name": "Microsoft.NETCore.App",
6
+ "version": "9.0.0"
7
+ },
8
+ "configProperties": {
9
+ "System.Reflection.Metadata.MetadataUpdater.IsSupported": false,
10
+ "System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization": false
11
+ }
12
+ }
13
+ }
@@ -0,0 +1,24 @@
1
+ {
2
+ "runtimeTarget": {
3
+ "name": ".NETCoreApp,Version=v9.0/win-x64",
4
+ "signature": ""
5
+ },
6
+ "compilationOptions": {},
7
+ "targets": {
8
+ ".NETCoreApp,Version=v9.0": {},
9
+ ".NETCoreApp,Version=v9.0/win-x64": {
10
+ "mindexec-remote-fast/1.0.0": {
11
+ "runtime": {
12
+ "mindexec-remote-fast.dll": {}
13
+ }
14
+ }
15
+ }
16
+ },
17
+ "libraries": {
18
+ "mindexec-remote-fast/1.0.0": {
19
+ "type": "project",
20
+ "serviceable": false,
21
+ "sha512": ""
22
+ }
23
+ }
24
+ }
@@ -0,0 +1,20 @@
1
+ {
2
+ "runtimeOptions": {
3
+ "tfm": "net9.0",
4
+ "frameworks": [
5
+ {
6
+ "name": "Microsoft.NETCore.App",
7
+ "version": "9.0.0"
8
+ },
9
+ {
10
+ "name": "Microsoft.WindowsDesktop.App",
11
+ "version": "9.0.0"
12
+ }
13
+ ],
14
+ "configProperties": {
15
+ "System.Reflection.Metadata.MetadataUpdater.IsSupported": false,
16
+ "System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization": false,
17
+ "CSWINRT_USE_WINDOWS_UI_XAML_PROJECTIONS": false
18
+ }
19
+ }
20
+ }
@@ -0,0 +1,64 @@
1
+ #!/usr/bin/env node
2
+
3
+ import assert from 'node:assert/strict';
4
+ import { execFile } from 'node:child_process';
5
+ import { promisify } from 'node:util';
6
+
7
+ const execFileAsync = promisify(execFile);
8
+
9
+ const REQUIRED_REMOTE_FAST_FILES = [
10
+ 'remote-fast/win-x64/mindexec-remote-fast.exe',
11
+ 'remote-fast/win-x64/mindexec-remote-fast.dll',
12
+ 'remote-fast/win-x64/mindexec-remote-fast.runtimeconfig.json',
13
+ 'remote-fast/osx-arm64/mindexec-remote-fast',
14
+ 'remote-fast/osx-arm64/mindexec-remote-fast.dll',
15
+ 'remote-fast/osx-arm64/mindexec-remote-fast.runtimeconfig.json',
16
+ 'remote-fast/osx-x64/mindexec-remote-fast',
17
+ 'remote-fast/osx-x64/mindexec-remote-fast.dll',
18
+ 'remote-fast/osx-x64/mindexec-remote-fast.runtimeconfig.json'
19
+ ];
20
+
21
+ function parsePackJson(stdout) {
22
+ const text = String(stdout || '').trim();
23
+ assert.ok(text, 'npm pack --dry-run should produce JSON output');
24
+ const payload = JSON.parse(text);
25
+ assert.ok(Array.isArray(payload) && payload.length > 0, 'npm pack dry-run JSON should contain one package entry');
26
+ return payload[0];
27
+ }
28
+
29
+ function resolveNpmPackCommand() {
30
+ const npmExecPath = String(process.env.npm_execpath || '').trim();
31
+ if (npmExecPath && /\.js$/i.test(npmExecPath)) {
32
+ return {
33
+ command: process.execPath,
34
+ argsPrefix: [npmExecPath]
35
+ };
36
+ }
37
+
38
+ return {
39
+ command: process.platform === 'win32' ? 'npm.cmd' : 'npm',
40
+ argsPrefix: []
41
+ };
42
+ }
43
+
44
+ async function main() {
45
+ const npm = resolveNpmPackCommand();
46
+ const { stdout } = await execFileAsync(npm.command, [...npm.argsPrefix, 'pack', '--dry-run', '--json'], {
47
+ windowsHide: true,
48
+ maxBuffer: 16 * 1024 * 1024
49
+ });
50
+ const pack = parsePackJson(stdout);
51
+ const files = new Set((pack.files || []).map(file => String(file.path || '').replace(/\\/g, '/')));
52
+
53
+ for (const required of REQUIRED_REMOTE_FAST_FILES) {
54
+ assert.ok(files.has(required), `packaged @mindexec/cli is missing ${required}`);
55
+ }
56
+
57
+ const npxFallbackOnly = [...files].some(file => file.endsWith('server.js'))
58
+ && ![...files].some(file => file.startsWith('remote-fast/'));
59
+ assert.equal(npxFallbackOnly, false, 'packaged CLI must include bundled RemoteFast, not only npx fallback code');
60
+
61
+ console.log('RemoteAgent package smoke OK');
62
+ }
63
+
64
+ await main();