@pleri/olam-cli 0.1.92 → 0.1.94
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/dist/image-digests.json +4 -4
- package/host-cp/src/server.mjs +11 -0
- package/package.json +1 -1
package/dist/image-digests.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
|
-
"auth": "sha256:
|
|
3
|
-
"devbox": "sha256:
|
|
4
|
-
"host-cp": "sha256:
|
|
2
|
+
"auth": "sha256:a985e5fb7cce881316e5bb005195255008c884aede2344151485937e7f7304a2",
|
|
3
|
+
"devbox": "sha256:876240f29bf7a131518a49645ee2455091bf8c03236b247dfa773c05a3f4c960",
|
|
4
|
+
"host-cp": "sha256:b609c001dc90de70996d115ed326841a58bd476b824ec112e5281e63192e31d5",
|
|
5
5
|
"mcp-auth": "sha256:e47169ad3fbc9cab216248fecbc56874343a5daab84b1f18d67529b7d415cf95",
|
|
6
6
|
"$schema_version": 1,
|
|
7
|
-
"$published_version": "0.1.
|
|
7
|
+
"$published_version": "0.1.94",
|
|
8
8
|
"$registry": "ghcr.io/pleri"
|
|
9
9
|
}
|
package/host-cp/src/server.mjs
CHANGED
|
@@ -1026,6 +1026,17 @@ const server = http.createServer(async (req, res) => {
|
|
|
1026
1026
|
// DELETE /api/auth/credentials/<id>
|
|
1027
1027
|
// GET /api/auth/events → SSE hotswap stream
|
|
1028
1028
|
|
|
1029
|
+
// GET /api/auth/credentials/usage → auth-service /credentials/usage
|
|
1030
|
+
if (url.pathname === '/api/auth/credentials/usage' && req.method === 'GET') {
|
|
1031
|
+
try {
|
|
1032
|
+
const upstream = await authServiceFetch('GET', '/credentials/usage');
|
|
1033
|
+
const data = await upstream.json().catch(() => ({}));
|
|
1034
|
+
return jsonReply(res, upstream.ok ? 200 : upstream.status, data);
|
|
1035
|
+
} catch (err) {
|
|
1036
|
+
return jsonReply(res, 502, { error: 'auth_service_unavailable', message: err.message });
|
|
1037
|
+
}
|
|
1038
|
+
}
|
|
1039
|
+
|
|
1029
1040
|
if (url.pathname === '/api/auth/credentials' && req.method === 'GET') {
|
|
1030
1041
|
try {
|
|
1031
1042
|
const upstream = await authServiceFetch('GET', '/credentials/status');
|