@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.
@@ -1,9 +1,9 @@
1
1
  {
2
- "auth": "sha256:acd77f9b4b2764841207e6e749e0bd5044843458f789eb5548cb4363d02fb985",
3
- "devbox": "sha256:5b9a61ab9cc7762b84440e1281e2067c9983266fd033fd24721881111e5f513c",
4
- "host-cp": "sha256:efb76f147a33cc17f660c5518b3b95d8aa15a034ff3fd998c3b3196c0f471bb6",
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.92",
7
+ "$published_version": "0.1.94",
8
8
  "$registry": "ghcr.io/pleri"
9
9
  }
@@ -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');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pleri/olam-cli",
3
- "version": "0.1.92",
3
+ "version": "0.1.94",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "olam": "./bin/olam.cjs"