@agentprojectcontext/apx 1.53.3 → 1.53.4
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
CHANGED
|
@@ -70,8 +70,6 @@ export function register(app, { projects, registries, project }) {
|
|
|
70
70
|
}
|
|
71
71
|
const { name, command, args, env, url, headers, enabled } = req.body || {};
|
|
72
72
|
if (!name) return res.status(400).json({ error: "name required" });
|
|
73
|
-
if (!command && !url)
|
|
74
|
-
return res.status(400).json({ error: "either command or url required" });
|
|
75
73
|
|
|
76
74
|
let json;
|
|
77
75
|
try {
|
|
@@ -81,6 +79,8 @@ export function register(app, { projects, registries, project }) {
|
|
|
81
79
|
}
|
|
82
80
|
json.mcpServers = json.mcpServers || {};
|
|
83
81
|
const existing = json.mcpServers[name] || {};
|
|
82
|
+
if (!existing.command && !existing.url && !command && !url)
|
|
83
|
+
return res.status(400).json({ error: "either command or url required" });
|
|
84
84
|
json.mcpServers[name] = {
|
|
85
85
|
...existing,
|
|
86
86
|
...(command !== undefined ? { command } : {}),
|
|
@@ -95,7 +95,7 @@ export function register(app, { projects, registries, project }) {
|
|
|
95
95
|
} catch (e) {
|
|
96
96
|
return res.status(400).json({ error: e.message });
|
|
97
97
|
}
|
|
98
|
-
registries.
|
|
98
|
+
registries.shutdown();
|
|
99
99
|
projects.rebuild(p.id);
|
|
100
100
|
const entry = registries.for(p).getByName(name);
|
|
101
101
|
res.status(201).json(entry);
|
|
@@ -149,7 +149,7 @@ export function register(app, { projects, registries, project }) {
|
|
|
149
149
|
} catch (e) {
|
|
150
150
|
return res.status(400).json({ error: e.message });
|
|
151
151
|
}
|
|
152
|
-
registries.
|
|
152
|
+
registries.shutdown();
|
|
153
153
|
projects.rebuild(p.id);
|
|
154
154
|
res.status(204).end();
|
|
155
155
|
});
|
|
@@ -37,7 +37,7 @@ function maskAll(obj) {
|
|
|
37
37
|
return out;
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
-
export function register(app, { project }) {
|
|
40
|
+
export function register(app, { project, registries }) {
|
|
41
41
|
app.get("/projects/:pid/vars", (req, res) => {
|
|
42
42
|
const p = project(req, res);
|
|
43
43
|
if (!p) return;
|
|
@@ -107,6 +107,7 @@ export function register(app, { project }) {
|
|
|
107
107
|
} catch (e) {
|
|
108
108
|
return res.status(400).json({ error: e.message });
|
|
109
109
|
}
|
|
110
|
+
if (registries) registries.shutdown();
|
|
110
111
|
res.status(201).json({ ok: true, name, scope });
|
|
111
112
|
});
|
|
112
113
|
|
|
@@ -132,6 +133,7 @@ export function register(app, { project }) {
|
|
|
132
133
|
return res.status(400).json({ error: e.message });
|
|
133
134
|
}
|
|
134
135
|
if (!removed) return res.status(404).end();
|
|
136
|
+
if (registries) registries.shutdown();
|
|
135
137
|
res.status(204).end();
|
|
136
138
|
});
|
|
137
139
|
}
|
|
@@ -957,21 +957,21 @@
|
|
|
957
957
|
}
|
|
958
958
|
},
|
|
959
959
|
"node_modules/@radix-ui/react-dialog": {
|
|
960
|
-
"version": "1.1.
|
|
961
|
-
"resolved": "https://registry.npmjs.org/@radix-ui/react-dialog/-/react-dialog-1.1.
|
|
962
|
-
"integrity": "sha512-
|
|
960
|
+
"version": "1.1.18",
|
|
961
|
+
"resolved": "https://registry.npmjs.org/@radix-ui/react-dialog/-/react-dialog-1.1.18.tgz",
|
|
962
|
+
"integrity": "sha512-apa28mldjMgORmE6g/w3sCcA0Y9UAVeeDVoozN4i7kOw12mLl9RBchfzK3Nn6qxOWjrZhK1Lfy7f07kyzxtnBw==",
|
|
963
963
|
"license": "MIT",
|
|
964
964
|
"dependencies": {
|
|
965
965
|
"@radix-ui/primitive": "1.1.4",
|
|
966
966
|
"@radix-ui/react-compose-refs": "1.1.3",
|
|
967
967
|
"@radix-ui/react-context": "1.1.4",
|
|
968
|
-
"@radix-ui/react-dismissable-layer": "1.1.
|
|
968
|
+
"@radix-ui/react-dismissable-layer": "1.1.14",
|
|
969
969
|
"@radix-ui/react-focus-guards": "1.1.4",
|
|
970
|
-
"@radix-ui/react-focus-scope": "1.1.
|
|
970
|
+
"@radix-ui/react-focus-scope": "1.1.11",
|
|
971
971
|
"@radix-ui/react-id": "1.1.2",
|
|
972
|
-
"@radix-ui/react-portal": "1.1.
|
|
972
|
+
"@radix-ui/react-portal": "1.1.13",
|
|
973
973
|
"@radix-ui/react-presence": "1.1.6",
|
|
974
|
-
"@radix-ui/react-primitive": "2.1.
|
|
974
|
+
"@radix-ui/react-primitive": "2.1.7",
|
|
975
975
|
"@radix-ui/react-slot": "1.3.0",
|
|
976
976
|
"@radix-ui/react-use-controllable-state": "1.2.3",
|
|
977
977
|
"aria-hidden": "^1.2.4",
|
|
@@ -993,16 +993,16 @@
|
|
|
993
993
|
}
|
|
994
994
|
},
|
|
995
995
|
"node_modules/@radix-ui/react-dismissable-layer": {
|
|
996
|
-
"version": "1.1.
|
|
997
|
-
"resolved": "https://registry.npmjs.org/@radix-ui/react-dismissable-layer/-/react-dismissable-layer-1.1.
|
|
998
|
-
"integrity": "sha512-
|
|
996
|
+
"version": "1.1.14",
|
|
997
|
+
"resolved": "https://registry.npmjs.org/@radix-ui/react-dismissable-layer/-/react-dismissable-layer-1.1.14.tgz",
|
|
998
|
+
"integrity": "sha512-4lUhWTWAjbDIqFrAPWJ3WqBOpO5YchVZ88X3nh6H9Lu5AFi5nCUeTPj3D8FSDmabmFeRe9ME0BDA4MwKTha5GQ==",
|
|
999
999
|
"license": "MIT",
|
|
1000
1000
|
"dependencies": {
|
|
1001
1001
|
"@radix-ui/primitive": "1.1.4",
|
|
1002
1002
|
"@radix-ui/react-compose-refs": "1.1.3",
|
|
1003
|
-
"@radix-ui/react-primitive": "2.1.
|
|
1003
|
+
"@radix-ui/react-primitive": "2.1.7",
|
|
1004
1004
|
"@radix-ui/react-use-callback-ref": "1.1.2",
|
|
1005
|
-
"@radix-ui/react-use-
|
|
1005
|
+
"@radix-ui/react-use-effect-event": "0.0.3"
|
|
1006
1006
|
},
|
|
1007
1007
|
"peerDependencies": {
|
|
1008
1008
|
"@types/react": "*",
|
|
@@ -1035,13 +1035,13 @@
|
|
|
1035
1035
|
}
|
|
1036
1036
|
},
|
|
1037
1037
|
"node_modules/@radix-ui/react-focus-scope": {
|
|
1038
|
-
"version": "1.1.
|
|
1039
|
-
"resolved": "https://registry.npmjs.org/@radix-ui/react-focus-scope/-/react-focus-scope-1.1.
|
|
1040
|
-
"integrity": "sha512-
|
|
1038
|
+
"version": "1.1.11",
|
|
1039
|
+
"resolved": "https://registry.npmjs.org/@radix-ui/react-focus-scope/-/react-focus-scope-1.1.11.tgz",
|
|
1040
|
+
"integrity": "sha512-Mn88Vg2whaRocGJNOH+DKFqYm6ySFPQaiwHNxZPyjn99B52KAEJWWY9NP83+nWdk2HM3rdov+STu9AG471Rt9w==",
|
|
1041
1041
|
"license": "MIT",
|
|
1042
1042
|
"dependencies": {
|
|
1043
1043
|
"@radix-ui/react-compose-refs": "1.1.3",
|
|
1044
|
-
"@radix-ui/react-primitive": "2.1.
|
|
1044
|
+
"@radix-ui/react-primitive": "2.1.7",
|
|
1045
1045
|
"@radix-ui/react-use-callback-ref": "1.1.2"
|
|
1046
1046
|
},
|
|
1047
1047
|
"peerDependencies": {
|
|
@@ -1078,12 +1078,12 @@
|
|
|
1078
1078
|
}
|
|
1079
1079
|
},
|
|
1080
1080
|
"node_modules/@radix-ui/react-portal": {
|
|
1081
|
-
"version": "1.1.
|
|
1082
|
-
"resolved": "https://registry.npmjs.org/@radix-ui/react-portal/-/react-portal-1.1.
|
|
1083
|
-
"integrity": "sha512-
|
|
1081
|
+
"version": "1.1.13",
|
|
1082
|
+
"resolved": "https://registry.npmjs.org/@radix-ui/react-portal/-/react-portal-1.1.13.tgz",
|
|
1083
|
+
"integrity": "sha512-z3oXfmaHLJTF1wktbjgD6cn9jiEbq3WSondB10LIuIt2m2Ym4iJlrW04/euMwENDdWDdE7z+OuY7Qyp1YpRSwA==",
|
|
1084
1084
|
"license": "MIT",
|
|
1085
1085
|
"dependencies": {
|
|
1086
|
-
"@radix-ui/react-primitive": "2.1.
|
|
1086
|
+
"@radix-ui/react-primitive": "2.1.7",
|
|
1087
1087
|
"@radix-ui/react-use-layout-effect": "1.1.2"
|
|
1088
1088
|
},
|
|
1089
1089
|
"peerDependencies": {
|
|
@@ -1125,9 +1125,9 @@
|
|
|
1125
1125
|
}
|
|
1126
1126
|
},
|
|
1127
1127
|
"node_modules/@radix-ui/react-primitive": {
|
|
1128
|
-
"version": "2.1.
|
|
1129
|
-
"resolved": "https://registry.npmjs.org/@radix-ui/react-primitive/-/react-primitive-2.1.
|
|
1130
|
-
"integrity": "sha512-
|
|
1128
|
+
"version": "2.1.7",
|
|
1129
|
+
"resolved": "https://registry.npmjs.org/@radix-ui/react-primitive/-/react-primitive-2.1.7.tgz",
|
|
1130
|
+
"integrity": "sha512-bC3NiwsprbxKjuon9l7X6BUTw7FPVzEYaL92MPEY5SCd/9hUTPXVFtVwRix7778wtRsVao+zE062gL79FZleeQ==",
|
|
1131
1131
|
"license": "MIT",
|
|
1132
1132
|
"dependencies": {
|
|
1133
1133
|
"@radix-ui/react-slot": "1.3.0"
|
|
@@ -1217,24 +1217,6 @@
|
|
|
1217
1217
|
}
|
|
1218
1218
|
}
|
|
1219
1219
|
},
|
|
1220
|
-
"node_modules/@radix-ui/react-use-escape-keydown": {
|
|
1221
|
-
"version": "1.1.2",
|
|
1222
|
-
"resolved": "https://registry.npmjs.org/@radix-ui/react-use-escape-keydown/-/react-use-escape-keydown-1.1.2.tgz",
|
|
1223
|
-
"integrity": "sha512-2uVLvLjgO7NZCWw01/FdqRwmA42J0BcjPMUCA+koFEOAb+zjqIP7SiFz/7zWPrKnVmSqr76Omq2ALyCuX4dhLw==",
|
|
1224
|
-
"license": "MIT",
|
|
1225
|
-
"dependencies": {
|
|
1226
|
-
"@radix-ui/react-use-callback-ref": "1.1.2"
|
|
1227
|
-
},
|
|
1228
|
-
"peerDependencies": {
|
|
1229
|
-
"@types/react": "*",
|
|
1230
|
-
"react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
|
|
1231
|
-
},
|
|
1232
|
-
"peerDependenciesMeta": {
|
|
1233
|
-
"@types/react": {
|
|
1234
|
-
"optional": true
|
|
1235
|
-
}
|
|
1236
|
-
}
|
|
1237
|
-
},
|
|
1238
1220
|
"node_modules/@radix-ui/react-use-layout-effect": {
|
|
1239
1221
|
"version": "1.1.2",
|
|
1240
1222
|
"resolved": "https://registry.npmjs.org/@radix-ui/react-use-layout-effect/-/react-use-layout-effect-1.1.2.tgz",
|
|
@@ -2598,9 +2580,9 @@
|
|
|
2598
2580
|
"license": "MIT"
|
|
2599
2581
|
},
|
|
2600
2582
|
"node_modules/electron-to-chromium": {
|
|
2601
|
-
"version": "1.5.
|
|
2602
|
-
"resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.
|
|
2603
|
-
"integrity": "sha512-
|
|
2583
|
+
"version": "1.5.383",
|
|
2584
|
+
"resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.383.tgz",
|
|
2585
|
+
"integrity": "sha512-I2484/KkAvl8lm9VyjH2JnbOIV0d/UCqT7gbzs6l+o6Vmn9wgB66uVcKX+Vk6HrXtY6fbWTOEXuv8waDTuFNCw==",
|
|
2604
2586
|
"dev": true,
|
|
2605
2587
|
"license": "ISC"
|
|
2606
2588
|
},
|