robot-resources 1.2.1 → 1.2.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.
@@ -1,4 +1,5 @@
1
1
  import { readFileSync, writeFileSync, copyFileSync, existsSync, mkdirSync } from 'node:fs';
2
+ import { execSync } from 'node:child_process';
2
3
  import { join } from 'node:path';
3
4
  import { homedir } from 'node:os';
4
5
  import { isOpenClawInstalled } from './detect.js';
@@ -81,6 +82,14 @@ function configureOpenClaw() {
81
82
  };
82
83
 
83
84
  writeJsonSafe(configPath, config);
85
+
86
+ // Restart gateway so the new provider takes effect immediately
87
+ try {
88
+ execSync('openclaw gateway restart', { stdio: 'ignore', timeout: 10_000 });
89
+ } catch {
90
+ // OpenClaw CLI may not be in PATH or gateway not running — not fatal
91
+ }
92
+
84
93
  return { name: 'OpenClaw', action: 'configured' };
85
94
  }
86
95
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "robot-resources",
3
- "version": "1.2.1",
3
+ "version": "1.2.2",
4
4
  "description": "Robot Resources — AI agent runtime tools. One command to install everything.",
5
5
  "type": "module",
6
6
  "bin": {