@openagents-org/agent-launcher 0.2.94 → 0.2.95
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 +1 -1
- package/registry.json +3 -0
- package/src/registry.js +9 -0
package/package.json
CHANGED
package/registry.json
CHANGED
|
@@ -46,6 +46,7 @@
|
|
|
46
46
|
],
|
|
47
47
|
"featured": true,
|
|
48
48
|
"order": 1,
|
|
49
|
+
"support": { "install": true, "workspace": true, "collaboration": true },
|
|
49
50
|
"builtin": true,
|
|
50
51
|
"install": {
|
|
51
52
|
"binary": "claude",
|
|
@@ -111,6 +112,7 @@
|
|
|
111
112
|
],
|
|
112
113
|
"featured": true,
|
|
113
114
|
"order": 3,
|
|
115
|
+
"support": { "install": true, "workspace": true, "collaboration": true },
|
|
114
116
|
"builtin": true,
|
|
115
117
|
"install": {
|
|
116
118
|
"binary": "codex",
|
|
@@ -358,6 +360,7 @@
|
|
|
358
360
|
],
|
|
359
361
|
"featured": true,
|
|
360
362
|
"order": 2,
|
|
363
|
+
"support": { "install": true, "workspace": true, "collaboration": true },
|
|
361
364
|
"builtin": true,
|
|
362
365
|
"install": {
|
|
363
366
|
"binary": "openclaw",
|
package/src/registry.js
CHANGED
|
@@ -7,10 +7,19 @@ const DEFAULT_REGISTRY_URL = 'https://endpoint.openagents.org/v1/agent-registry'
|
|
|
7
7
|
const CACHE_FILE = 'agent_catalog.json';
|
|
8
8
|
const CACHE_TTL_MS = 24 * 60 * 60 * 1000; // 24 hours
|
|
9
9
|
|
|
10
|
+
/**
|
|
11
|
+
* Default support status — install only.
|
|
12
|
+
*/
|
|
13
|
+
const DEFAULT_SUPPORT = { install: true, workspace: false, collaboration: false };
|
|
14
|
+
|
|
10
15
|
/**
|
|
11
16
|
* Sort catalog: featured entries first (by order), then the rest alphabetically.
|
|
17
|
+
* Also ensures every entry has a support field.
|
|
12
18
|
*/
|
|
13
19
|
function _sortCatalog(catalog) {
|
|
20
|
+
for (const entry of catalog) {
|
|
21
|
+
if (!entry.support) entry.support = { ...DEFAULT_SUPPORT };
|
|
22
|
+
}
|
|
14
23
|
return catalog.sort((a, b) => {
|
|
15
24
|
const af = a.featured ? 1 : 0;
|
|
16
25
|
const bf = b.featured ? 1 : 0;
|