infinicode 2.8.7 → 2.8.8
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/dist/robopark/serve.js +10 -3
- package/dist/robopark-cli.js +1 -1
- package/package.json +1 -1
package/dist/robopark/serve.js
CHANGED
|
@@ -49,7 +49,13 @@ function findScheduler() {
|
|
|
49
49
|
return null;
|
|
50
50
|
}
|
|
51
51
|
function findPython() {
|
|
52
|
-
|
|
52
|
+
// On Windows the canonical interpreter is usually `python` (from the Microsoft
|
|
53
|
+
// Store / python.org installer); `python3` is common on Linux/macOS. Prefer the
|
|
54
|
+
// platform-specific name first, then fall back to the other conventions.
|
|
55
|
+
const names = process.platform === 'win32'
|
|
56
|
+
? ['python', 'python3', 'python3.12', 'python3.11', 'python3.10', 'py']
|
|
57
|
+
: ['python3.12', 'python3.11', 'python3.10', 'python3', 'python'];
|
|
58
|
+
for (const name of names) {
|
|
53
59
|
try {
|
|
54
60
|
execSync(`${name} --version`, { stdio: 'ignore' });
|
|
55
61
|
return name;
|
|
@@ -58,7 +64,9 @@ function findPython() {
|
|
|
58
64
|
continue;
|
|
59
65
|
}
|
|
60
66
|
}
|
|
61
|
-
return
|
|
67
|
+
// Nothing verified; return the most likely name so the user sees the actual
|
|
68
|
+
// ENOENT/"not found" error from the OS rather than a silent fallback.
|
|
69
|
+
return process.platform === 'win32' ? 'python' : 'python3';
|
|
62
70
|
}
|
|
63
71
|
/** Resolve the actual infinicode CLI entry point so `robopark setup --start`
|
|
64
72
|
* works even when global bins are not on PATH.
|
|
@@ -125,7 +133,6 @@ export async function roboparkServe(opts) {
|
|
|
125
133
|
env,
|
|
126
134
|
stdio: 'pipe',
|
|
127
135
|
detached: !opts.foreground,
|
|
128
|
-
shell: process.platform === 'win32',
|
|
129
136
|
});
|
|
130
137
|
let ready = false;
|
|
131
138
|
proc.stdout?.on('data', (d) => {
|
package/dist/robopark-cli.js
CHANGED
|
@@ -17,7 +17,7 @@ const config = new Conf({
|
|
|
17
17
|
});
|
|
18
18
|
const program = new Command('robopark')
|
|
19
19
|
.description('RoboPark fleet control CLI — set up, watch, and drive talking robots')
|
|
20
|
-
.version('2.8.
|
|
20
|
+
.version('2.8.8');
|
|
21
21
|
program
|
|
22
22
|
.command('scan')
|
|
23
23
|
.description('Auto-discover the fleet and print ready-to-run setup commands')
|
package/package.json
CHANGED