infinicode 2.8.6 → 2.8.7

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.
@@ -14,8 +14,8 @@ import { dirname, join } from 'node:path';
14
14
  import { fileURLToPath } from 'node:url';
15
15
  function pkgDir() {
16
16
  try {
17
- // dist/robopark/serve.js -> project root
18
- return dirname(dirname(fileURLToPath(import.meta.url)));
17
+ // dist/robopark/serve.js -> dist/robopark -> dist -> project root
18
+ return dirname(dirname(dirname(fileURLToPath(import.meta.url))));
19
19
  }
20
20
  catch {
21
21
  return process.cwd();
@@ -36,6 +36,16 @@ function findScheduler() {
36
36
  if (existsSync(p))
37
37
  return p;
38
38
  }
39
+ // Last resort: resolve the installed infinicode package and look next to it.
40
+ try {
41
+ // eslint-disable-next-line @typescript-eslint/no-require-imports
42
+ const req = require('module').createRequire(fileURLToPath(import.meta.url));
43
+ const pkgMain = req.resolve('infinicode/package.json');
44
+ const p = join(dirname(pkgMain), 'packages', 'robopark', 'scheduler', 'main.py');
45
+ if (existsSync(p))
46
+ return p;
47
+ }
48
+ catch { /* ignore */ }
39
49
  return null;
40
50
  }
41
51
  function findPython() {
@@ -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.6');
20
+ .version('2.8.7');
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "infinicode",
3
- "version": "2.8.6",
3
+ "version": "2.8.7",
4
4
  "description": "OpenKernel — provider-agnostic AI execution kernel. Native coding agent + mission-driven execution runtime.",
5
5
  "type": "module",
6
6
  "main": "./dist/kernel/index.js",