openxiangda-cli 2.0.0-alpha.146 → 2.0.0-alpha.148

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": "openxiangda-cli",
3
- "version": "2.0.0-alpha.146",
3
+ "version": "2.0.0-alpha.148",
4
4
  "description": "Thin application-level CLI for OpenXiangda 2.0.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -21,10 +21,10 @@
21
21
  ],
22
22
  "dependencies": {
23
23
  "@oclif/core": "4.13.3",
24
- "openxiangda-contracts": "2.0.0-alpha.73",
25
- "openxiangda-devkit-core": "2.0.0-alpha.93",
26
- "openxiangda-mcp": "2.0.0-alpha.93",
27
- "openxiangda-skill-kit": "2.0.0-alpha.115"
24
+ "openxiangda-contracts": "2.0.0-alpha.75",
25
+ "openxiangda-devkit-core": "2.0.0-alpha.95",
26
+ "openxiangda-mcp": "2.0.0-alpha.95",
27
+ "openxiangda-skill-kit": "2.0.0-alpha.117"
28
28
  },
29
29
  "devDependencies": {
30
30
  "tsx": "4.23.12",
@@ -15,7 +15,7 @@
15
15
  "@nestjs/common": "11.1.29",
16
16
  "@nestjs/core": "11.1.29",
17
17
  "@nestjs/platform-fastify": "11.1.29",
18
- "openxiangda": "2.0.0-alpha.65",
18
+ "openxiangda": "2.0.0-alpha.67",
19
19
  "reflect-metadata": "0.2.2",
20
20
  "rxjs": "7.8.2"
21
21
  },
@@ -14,7 +14,7 @@
14
14
  "@ant-design/icons": "6.2.3",
15
15
  "@refinedev/core": "5.0.12",
16
16
  "antd": "6.4.3",
17
- "openxiangda": "2.0.0-alpha.65",
17
+ "openxiangda": "2.0.0-alpha.67",
18
18
  "react": "19.2.8",
19
19
  "react-dom": "19.2.8",
20
20
  "react-router-dom": "7.8.2"
@@ -1,14 +1,20 @@
1
1
  import assert from 'node:assert/strict';
2
2
  import { spawn } from 'node:child_process';
3
+ import { createRequire } from 'node:module';
3
4
  import { createServer } from 'node:net';
4
5
  import { networkInterfaces } from 'node:os';
5
- import { resolve } from 'node:path';
6
+ import { dirname, join, resolve } from 'node:path';
6
7
  import test from 'node:test';
7
8
 
9
+ const require = createRequire(import.meta.url);
10
+
8
11
  test('Vite is reachable on loopback and not on a LAN interface', async t => {
9
12
  const port = await freePort();
10
13
  const root = resolve(import.meta.dirname, '..');
11
- const child = spawn('pnpm', ['exec', 'vite', '--port', String(port), '--strictPort'], {
14
+ const vitePackagePath = require.resolve('vite/package.json');
15
+ const vitePackage = require(vitePackagePath) as { bin: { vite: string } };
16
+ const viteBin = join(dirname(vitePackagePath), vitePackage.bin.vite);
17
+ const child = spawn(process.execPath, [viteBin, '--port', String(port), '--strictPort'], {
12
18
  cwd: root,
13
19
  stdio: 'ignore',
14
20
  env: {
@@ -23,7 +23,7 @@
23
23
  "build": "pnpm --recursive build"
24
24
  },
25
25
  "devDependencies": {
26
- "openxiangda": "2.0.0-alpha.65",
26
+ "openxiangda": "2.0.0-alpha.67",
27
27
  "typescript": "5.9.3"
28
28
  }
29
29
  }