sync: 2026-03-15 23:30 — 23 files from Alexandria
Some checks failed
Lint & Format / detect (push) Failing after 39s
Monorepo Lint / lint-shell (push) Failing after 41s
Monorepo Lint / lint-js (push) Failing after 38s
Lint & Format / js-lint (push) Has been skipped
Lint & Format / py-lint (push) Has been skipped
Lint & Format / sh-lint (push) Has been skipped
Lint & Format / go-lint (push) Has been skipped
Some checks failed
Lint & Format / detect (push) Failing after 39s
Monorepo Lint / lint-shell (push) Failing after 41s
Monorepo Lint / lint-js (push) Failing after 38s
Lint & Format / js-lint (push) Has been skipped
Lint & Format / py-lint (push) Has been skipped
Lint & Format / sh-lint (push) Has been skipped
Lint & Format / go-lint (push) Has been skipped
RoadChain-SHA2048: af46e6a9314c50fd RoadChain-Identity: alexa@sovereign RoadChain-Full: af46e6a9314c50fddd4a6fa4df62988ead75ad66dc383f6fb38c1824a5d184b6d98a78f10dacb6cdbf2ac198396fe3ab2e07c187ab6e41b1dbc44f60de268c283ce6519708dba7899d2faa19e687ce9b6f590a9c89cd995ce5636bdb24a6b0406eb730e9ed1033171839e7d82b903fd60f3c2c2e3c9ef6fbbc3ef52f7ca87ede13bedc69fee77c465a1fe292e4580cf9e9661b2321ee66483dc6368ee913231aa830a83b267901a304701129a337a81f15e67c8e808f7d519ffd1303cf652ce9ef8c98a42df19a7ca69236ee0be44a0569cef18eaeaf14b16fb284e99ae357375380a3c76dd0588e7993aea0c8a0326a3b751bd44f0943251f86ee164fb1786c
This commit is contained in:
@@ -126,14 +126,30 @@ export default {
|
||||
env.STATS.get('cache:analytics:24h').then(c => c || env.STATS.get('stats:analytics')).then(c => c || fetchAnalytics(env)),
|
||||
]);
|
||||
|
||||
const ecosystem = await env.STATS.get('stats:ecosystem');
|
||||
|
||||
return json({
|
||||
fleet: fleet ? JSON.parse(fleet) : null,
|
||||
infra: infra ? JSON.parse(infra) : null,
|
||||
github: github ? (typeof github === 'string' ? JSON.parse(github) : github) : null,
|
||||
analytics: analytics ? (typeof analytics === 'string' ? JSON.parse(analytics) : analytics) : null,
|
||||
ecosystem: ecosystem ? JSON.parse(ecosystem) : null,
|
||||
});
|
||||
}
|
||||
|
||||
// ── Ecosystem stats ──
|
||||
if (path === '/ecosystem') {
|
||||
const eco = await env.STATS.get('stats:ecosystem');
|
||||
return json(eco ? JSON.parse(eco) : { data: {} });
|
||||
}
|
||||
|
||||
// ── Any pushed category by name ──
|
||||
if (path.startsWith('/stats/')) {
|
||||
const category = path.slice(7);
|
||||
const data = await env.STATS.get(`stats:${category}`);
|
||||
return json(data ? JSON.parse(data) : { error: 'not found' });
|
||||
}
|
||||
|
||||
// ── Health ──
|
||||
if (path === '/health') {
|
||||
const fleet = await env.STATS.get('stats:fleet');
|
||||
|
||||
Reference in New Issue
Block a user