robot-resources 1.4.1 → 1.5.0
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/lib/tool-config.js +1 -1
- package/lib/wizard.js +5 -16
- package/package.json +2 -2
package/lib/tool-config.js
CHANGED
|
@@ -69,7 +69,7 @@ function registerScraperMcp() {
|
|
|
69
69
|
|
|
70
70
|
config.mcp.servers['robot-resources-scraper'] = {
|
|
71
71
|
command: 'npx',
|
|
72
|
-
args: ['-y', '@robot-resources/scraper-mcp'],
|
|
72
|
+
args: ['-y', '-p', '@robot-resources/scraper', 'scraper-mcp'],
|
|
73
73
|
};
|
|
74
74
|
|
|
75
75
|
writeFileSync(configPath, JSON.stringify(config, null, 2) + '\n', 'utf-8');
|
package/lib/wizard.js
CHANGED
|
@@ -204,9 +204,9 @@ export async function runWizard({ nonInteractive = false } = {}) {
|
|
|
204
204
|
// ── Step 4: Scraper Installation ───────────────────────────────────────
|
|
205
205
|
//
|
|
206
206
|
// Independent of router. Scraper works even if router failed to install.
|
|
207
|
-
// 1. Register scraper
|
|
208
|
-
// 2.
|
|
209
|
-
//
|
|
207
|
+
// 1. Register scraper MCP in openclaw.json (if OC is present)
|
|
208
|
+
// 2. Restart gateway so OC picks up the new MCP server
|
|
209
|
+
// No pre-cache needed — scraper is bundled as a CLI dependency
|
|
210
210
|
|
|
211
211
|
blank();
|
|
212
212
|
step('Installing Scraper...');
|
|
@@ -232,18 +232,7 @@ export async function runWizard({ nonInteractive = false } = {}) {
|
|
|
232
232
|
}
|
|
233
233
|
}
|
|
234
234
|
|
|
235
|
-
|
|
236
|
-
try {
|
|
237
|
-
const { execFileSync: execFs } = await import('node:child_process');
|
|
238
|
-
execFs('npx', ['-y', '@robot-resources/scraper-mcp', '--help'], {
|
|
239
|
-
stdio: 'ignore',
|
|
240
|
-
timeout: 60_000,
|
|
241
|
-
});
|
|
242
|
-
success('Scraper MCP package cached');
|
|
243
|
-
results.scraper = true;
|
|
244
|
-
} catch {
|
|
245
|
-
warn('Scraper MCP pre-cache failed — will download on first use');
|
|
246
|
-
}
|
|
235
|
+
results.scraper = true;
|
|
247
236
|
|
|
248
237
|
// Restart gateway so OC picks up the scraper MCP server
|
|
249
238
|
if (scraperRegistered) {
|
|
@@ -267,7 +256,7 @@ export async function runWizard({ nonInteractive = false } = {}) {
|
|
|
267
256
|
step('Verifying Scraper MCP starts...');
|
|
268
257
|
try {
|
|
269
258
|
const { spawn } = await import('node:child_process');
|
|
270
|
-
const proc = spawn('npx', ['-y', '@robot-resources/scraper-mcp'], {
|
|
259
|
+
const proc = spawn('npx', ['-y', '-p', '@robot-resources/scraper', 'scraper-mcp'], {
|
|
271
260
|
stdio: ['pipe', 'pipe', 'pipe'],
|
|
272
261
|
timeout: 10_000,
|
|
273
262
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "robot-resources",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.5.0",
|
|
4
4
|
"description": "Robot Resources — AI agent runtime tools. One command to install everything.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
],
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"@robot-resources/cli-core": "*",
|
|
21
|
-
"@robot-resources/scraper": "^0.
|
|
21
|
+
"@robot-resources/scraper": "^0.2.0"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
24
|
"vitest": "^1.2.0"
|