@openagents-org/agent-launcher 0.2.5 → 0.2.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.
- package/package.json +3 -2
- package/src/installer.js +11 -8
- package/src/registry.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openagents-org/agent-launcher",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.7",
|
|
4
4
|
"description": "OpenAgents Launcher — install, configure, and run AI coding agents from your terminal",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"bin": {
|
|
@@ -37,6 +37,7 @@
|
|
|
37
37
|
"README.md"
|
|
38
38
|
],
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"blessed": "^0.1.81"
|
|
40
|
+
"blessed": "^0.1.81",
|
|
41
|
+
"ws": "^8.18.0"
|
|
41
42
|
}
|
|
42
43
|
}
|
package/src/installer.js
CHANGED
|
@@ -35,7 +35,16 @@ class Installer {
|
|
|
35
35
|
* Checks binary on PATH first, then marker files.
|
|
36
36
|
*/
|
|
37
37
|
isInstalled(agentType) {
|
|
38
|
-
//
|
|
38
|
+
// Fast check: marker file or binary on PATH (no execSync to avoid blocking)
|
|
39
|
+
if (this._hasMarker(agentType)) return true;
|
|
40
|
+
if (this._whichBinary(agentType)) return true;
|
|
41
|
+
return false;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Deep verification — runs the agent's verify command (slow, use sparingly).
|
|
46
|
+
*/
|
|
47
|
+
verifyInstalled(agentType) {
|
|
39
48
|
const entry = this.registry.getEntry(agentType);
|
|
40
49
|
const IS_WINDOWS = process.platform === 'win32';
|
|
41
50
|
const verifyCmd = entry && entry.install
|
|
@@ -47,13 +56,7 @@ class Installer {
|
|
|
47
56
|
return true;
|
|
48
57
|
} catch { return false; }
|
|
49
58
|
}
|
|
50
|
-
|
|
51
|
-
if (this._hasMarker(agentType)) {
|
|
52
|
-
// Marker exists but binary not found — stale marker, clean it up
|
|
53
|
-
this._markUninstalled(agentType);
|
|
54
|
-
return false;
|
|
55
|
-
}
|
|
56
|
-
return false;
|
|
59
|
+
return this.isInstalled(agentType);
|
|
57
60
|
}
|
|
58
61
|
|
|
59
62
|
/**
|
package/src/registry.js
CHANGED
|
@@ -70,7 +70,7 @@ class Registry {
|
|
|
70
70
|
for (const entry of catalog) {
|
|
71
71
|
const b = bundled.find(x => x.name === entry.name);
|
|
72
72
|
if (b) {
|
|
73
|
-
if (!entry.env_config && b.env_config) entry.env_config = b.env_config;
|
|
73
|
+
if ((!entry.env_config || entry.env_config.length === 0) && b.env_config && b.env_config.length > 0) entry.env_config = b.env_config;
|
|
74
74
|
if (!entry.resolve_env && b.resolve_env) entry.resolve_env = b.resolve_env;
|
|
75
75
|
if (!entry.install && b.install) entry.install = b.install;
|
|
76
76
|
}
|