@edgescaleai/cube-mcp 0.3.28-dev.20260527152356 → 0.3.28-dev.20260527184452
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/bin/cube-mcp.js +13 -13
- package/package.json +1 -1
package/bin/cube-mcp.js
CHANGED
|
@@ -3,20 +3,20 @@
|
|
|
3
3
|
const { spawnSync } = require('child_process');
|
|
4
4
|
const { version } = require('../package.json');
|
|
5
5
|
|
|
6
|
-
// Dev builds
|
|
7
|
-
//
|
|
8
|
-
|
|
6
|
+
// Dev builds: npm version 0.3.28-dev.20260520151603
|
|
7
|
+
// maps to PyPI version 0.3.28.dev20260520151603 (PEP 440).
|
|
8
|
+
// We pin the exact PyPI version so --prerelease allow isn't needed
|
|
9
|
+
// (which would also allow pre-release versions of dependencies like httpx).
|
|
9
10
|
const pkg = 'edgescaleai-cube-mcp';
|
|
10
|
-
|
|
11
|
-
const
|
|
12
|
-
? [
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
: [
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
];
|
|
11
|
+
const devMatch = version.match(/^(.+)-dev\.(\d+)$/);
|
|
12
|
+
const pypiSpec = devMatch
|
|
13
|
+
? `${pkg}==${devMatch[1]}.dev${devMatch[2]}`
|
|
14
|
+
: pkg;
|
|
15
|
+
|
|
16
|
+
const runners = [
|
|
17
|
+
{ cmd: 'uvx', args: ['--from', pypiSpec, 'cube-mcp'] },
|
|
18
|
+
{ cmd: 'pipx', args: ['run', '--spec', pypiSpec, 'cube-mcp'] },
|
|
19
|
+
];
|
|
20
20
|
|
|
21
21
|
for (const { cmd, args } of runners) {
|
|
22
22
|
const result = spawnSync(cmd, args, {
|
package/package.json
CHANGED