infinicode 2.8.3 → 2.8.4
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.d.ts +8 -1
- package/dist/robopark/serve.js +10 -2
- package/dist/robopark/setup.js +3 -3
- package/dist/robopark-cli.js +1 -1
- package/package.json +3 -2
package/dist/robopark/serve.d.ts
CHANGED
|
@@ -9,7 +9,14 @@ export interface ServeOptions {
|
|
|
9
9
|
foreground?: boolean;
|
|
10
10
|
}
|
|
11
11
|
/** Resolve the actual infinicode CLI entry point so `robopark setup --start`
|
|
12
|
-
* works even when global bins are not on PATH.
|
|
12
|
+
* works even when global bins are not on PATH.
|
|
13
|
+
*
|
|
14
|
+
* Returns the node executable path and the path to `bin/infinicode.js` inside
|
|
15
|
+
* the installed `infinicode` package. We avoid spawning the bare `infinicode`
|
|
16
|
+
* command because npm's `.cmd` shim is not reliably resolvable by Node's
|
|
17
|
+
* `spawn` without `shell: true` on Windows, and shell concatenation triggers
|
|
18
|
+
* a deprecation warning when args are passed.
|
|
19
|
+
*/
|
|
13
20
|
export declare function resolveInfinicodeBin(): Promise<{
|
|
14
21
|
node: string;
|
|
15
22
|
script: string;
|
package/dist/robopark/serve.js
CHANGED
|
@@ -51,7 +51,14 @@ function findPython() {
|
|
|
51
51
|
return 'python3';
|
|
52
52
|
}
|
|
53
53
|
/** Resolve the actual infinicode CLI entry point so `robopark setup --start`
|
|
54
|
-
* works even when global bins are not on PATH.
|
|
54
|
+
* works even when global bins are not on PATH.
|
|
55
|
+
*
|
|
56
|
+
* Returns the node executable path and the path to `bin/infinicode.js` inside
|
|
57
|
+
* the installed `infinicode` package. We avoid spawning the bare `infinicode`
|
|
58
|
+
* command because npm's `.cmd` shim is not reliably resolvable by Node's
|
|
59
|
+
* `spawn` without `shell: true` on Windows, and shell concatenation triggers
|
|
60
|
+
* a deprecation warning when args are passed.
|
|
61
|
+
*/
|
|
55
62
|
export async function resolveInfinicodeBin() {
|
|
56
63
|
try {
|
|
57
64
|
// When running from the infinicode package itself, the CLI entry is nearby.
|
|
@@ -63,7 +70,8 @@ export async function resolveInfinicodeBin() {
|
|
|
63
70
|
try {
|
|
64
71
|
// When running from the robopark wrapper, resolve infinicode from npm.
|
|
65
72
|
const { createRequire } = await import('node:module');
|
|
66
|
-
|
|
73
|
+
// createRequire expects a file path, not a file:// URL.
|
|
74
|
+
const require = createRequire(fileURLToPath(import.meta.url));
|
|
67
75
|
const pkgMain = require.resolve('infinicode/package.json');
|
|
68
76
|
const candidate = join(dirname(pkgMain), 'bin', 'infinicode.js');
|
|
69
77
|
if (existsSync(candidate))
|
package/dist/robopark/setup.js
CHANGED
|
@@ -29,7 +29,6 @@ function runDetached(cmd, args, env) {
|
|
|
29
29
|
stdio: 'ignore',
|
|
30
30
|
detached: true,
|
|
31
31
|
env: { ...process.env, ...env },
|
|
32
|
-
shell: process.platform === 'win32' && cmd === 'infinicode',
|
|
33
32
|
});
|
|
34
33
|
proc.on('error', (err) => {
|
|
35
34
|
console.log(chalk.red(` ✗ failed to start ${cmd}: ${err.message}`));
|
|
@@ -41,8 +40,9 @@ async function infinicodeArgv(args) {
|
|
|
41
40
|
const bin = await resolveInfinicodeBin();
|
|
42
41
|
if (bin)
|
|
43
42
|
return [bin.node, bin.script, ...args];
|
|
44
|
-
// Fallback: assume `infinicode` is on PATH.
|
|
45
|
-
//
|
|
43
|
+
// Fallback: assume `infinicode` is on PATH. This will fail on Windows if the
|
|
44
|
+
// .cmd shim is not resolvable, but the resolved-bin path above is the
|
|
45
|
+
// intended path for all npm installs.
|
|
46
46
|
return ['infinicode', ...args];
|
|
47
47
|
}
|
|
48
48
|
/** Build a Windows-task-friendly command string from an argv array. */
|
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.4');
|
|
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.
|
|
3
|
+
"version": "2.8.4",
|
|
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",
|
|
@@ -19,7 +19,8 @@
|
|
|
19
19
|
"types": "./dist/kernel/index.d.ts",
|
|
20
20
|
"import": "./dist/kernel/index.js"
|
|
21
21
|
},
|
|
22
|
-
"./robopark": "./dist/robopark-cli.js"
|
|
22
|
+
"./robopark": "./dist/robopark-cli.js",
|
|
23
|
+
"./package.json": "./package.json"
|
|
23
24
|
},
|
|
24
25
|
"files": [
|
|
25
26
|
"bin/infinicode.js",
|