robot-resources 1.9.7 → 1.10.2
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/README.md +0 -1
- package/lib/detect.js +0 -53
- package/lib/tool-config.js +6 -5
- package/lib/wizard.js +90 -303
- package/package.json +2 -5
- package/lib/python-bridge.js +0 -38
- package/lib/service.js +0 -740
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "robot-resources",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.10.2",
|
|
4
4
|
"description": "Robot Resources — AI agent tools. One command to install everything.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -18,12 +18,9 @@
|
|
|
18
18
|
],
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"@robot-resources/cli-core": "*",
|
|
21
|
-
"@robot-resources/
|
|
21
|
+
"@robot-resources/router": "*",
|
|
22
22
|
"@robot-resources/scraper": "^0.3.1"
|
|
23
23
|
},
|
|
24
|
-
"optionalDependencies": {
|
|
25
|
-
"@robot-resources/router": "*"
|
|
26
|
-
},
|
|
27
24
|
"devDependencies": {
|
|
28
25
|
"vitest": "^1.2.0"
|
|
29
26
|
},
|
package/lib/python-bridge.js
DELETED
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
findPython,
|
|
3
|
-
findOrInstallPython,
|
|
4
|
-
ensureVenv,
|
|
5
|
-
installRouter,
|
|
6
|
-
isRouterInstalled,
|
|
7
|
-
getVenvPythonPath,
|
|
8
|
-
} from '@robot-resources/cli-core/python-bridge.mjs';
|
|
9
|
-
|
|
10
|
-
// Re-export shared primitives used by wizard.js and other CLI code.
|
|
11
|
-
export { findPython, ensureVenv, isRouterInstalled, getVenvPythonPath };
|
|
12
|
-
|
|
13
|
-
/**
|
|
14
|
-
* Full setup: find Python (or bootstrap one via uv), create venv, install router.
|
|
15
|
-
*
|
|
16
|
-
* The uv-fallback path is what unblocks users without system Python. It
|
|
17
|
-
* downloads the uv binary to ~/.robot-resources/bin/ and uses it to
|
|
18
|
-
* install a standalone Python — nothing touches the user's system.
|
|
19
|
-
*
|
|
20
|
-
* Returns { venvPython, pythonVersion, pythonSource } or throws.
|
|
21
|
-
*/
|
|
22
|
-
export async function setupRouter() {
|
|
23
|
-
const python = await findOrInstallPython();
|
|
24
|
-
if (!python) {
|
|
25
|
-
throw new Error(
|
|
26
|
-
'Python 3.10+ not found and uv bootstrap failed. ' +
|
|
27
|
-
'Install Python from https://python.org and try again.'
|
|
28
|
-
);
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
const venvPython = ensureVenv(python.bin);
|
|
32
|
-
await installRouter();
|
|
33
|
-
return {
|
|
34
|
-
venvPython,
|
|
35
|
-
pythonVersion: python.version,
|
|
36
|
-
pythonSource: python.source, // 'system' | 'uv'
|
|
37
|
-
};
|
|
38
|
-
}
|