diff --git a/public/llms.txt b/public/llms.txt index a0a1b2a..16e2a7c 100644 --- a/public/llms.txt +++ b/public/llms.txt @@ -42,8 +42,9 @@ reference environment. Stripe traffic; Phase 3 is gated on a second real provider. - [Sessions](https://github.com/pegma-dev/sessions): @pegma/sessions — server-side session records: hashed ids, absolute + idle expiry, - principal-wide revocation. In development and unpublished: Phase 1 is - merged, and Phase 2 first-consumer migration is merged into RetireGolden. + principal-wide revocation. Published as 0.1.0: Phase 1 is merged, Phase 2 + first-consumer migration is merged into RetireGolden, and the early 0.x API + remains unstable. - [Rate Limit](https://github.com/pegma-dev/rate-limit): @pegma/rate-limit — an honest in-memory tier and a durable fail-closed tier. Planned. - [Identity](https://github.com/pegma-dev/identity): @pegma/identity — diff --git a/src/data/components.ts b/src/data/components.ts index 0f77e71..2fe1f93 100644 --- a/src/data/components.ts +++ b/src/data/components.ts @@ -26,7 +26,7 @@ export interface PegmaComponent { readonly plan?: string; } -export const SNAPSHOT_DATE = '2026-07-27'; +export const SNAPSHOT_DATE = '2026-07-28'; export const components: readonly PegmaComponent[] = [ { @@ -155,7 +155,7 @@ export const components: readonly PegmaComponent[] = [ repo: 'sessions', title: 'Sessions', packages: ['@pegma/sessions'], - status: 'in development', + status: 'published', summary: 'Server-side session records: hashed ids, dual expiry, revoke-everywhere.', owns: [ 'SHA-256-hashed identifiers, non-optionally — a leaked table hands out no sessions', @@ -166,7 +166,7 @@ export const components: readonly PegmaComponent[] = [ 'Authentication — no OIDC, cookies, or CSRF; the host logs people in, this store remembers', 'Tokens at rest, ever', ], - now: 'Phase 1 record store is merged; Phase 2 first-consumer migration is merged into RetireGolden; unpublished.', + now: '0.1.0 on npm; Phase 2 first-consumer migration is merged into RetireGolden; early 0.x API remains unstable.', plan: 'docs/PROJECT_PLAN.md', }, { diff --git a/src/data/live-status.ts b/src/data/live-status.ts index a55a891..7ecc0df 100644 --- a/src/data/live-status.ts +++ b/src/data/live-status.ts @@ -6,6 +6,8 @@ * `now` line, so a GitHub hiccup can never break a deploy. */ +import type { ComponentStatus, PegmaComponent } from './components'; + const cache = new Map>(); async function fetchStage(repo: string, plan: string): Promise { @@ -56,3 +58,34 @@ export function planStage(repo: string, plan: string | undefined): Promise { + const stage = await planStage(component.repo, component.plan); + return { + ...component, + stage, + status: statusFromStage(stage, component.status), + }; +} diff --git a/src/pages/index.astro b/src/pages/index.astro index f05ff72..58eaf1e 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -1,6 +1,9 @@ --- import Base from '../layouts/Base.astro'; import { components, SNAPSHOT_DATE } from '../data/components'; +import { compileComponentStatus } from '../data/live-status'; + +const withCompiledStatus = await Promise.all(components.map(compileComponentStatus)); --- The stack today
    { - components.map((c) => ( + withCompiledStatus.map((c) => (
  • {c.title}{' '} diff --git a/src/pages/roadmap.astro b/src/pages/roadmap.astro index 646cee2..deaaf8c 100644 --- a/src/pages/roadmap.astro +++ b/src/pages/roadmap.astro @@ -1,13 +1,11 @@ --- import Base from '../layouts/Base.astro'; import { components, SNAPSHOT_DATE } from '../data/components'; -import { planStage } from '../data/live-status'; +import { compileComponentStatus } from '../data/live-status'; const order: Record = { published: 0, 'in development': 1, planned: 2 }; -const sorted = await Promise.all( - [...components] - .sort((a, b) => order[a.status] - order[b.status]) - .map(async (c) => ({ ...c, stage: await planStage(c.repo, c.plan) })), +const sorted = (await Promise.all(components.map(compileComponentStatus))).sort( + (a, b) => order[a.status] - order[b.status], ); const compiledCount = sorted.filter((c) => c.stage).length; const builtOn = new Date().toISOString().slice(0, 10); diff --git a/src/pages/stack.astro b/src/pages/stack.astro index 9722260..ebb9462 100644 --- a/src/pages/stack.astro +++ b/src/pages/stack.astro @@ -1,11 +1,9 @@ --- import Base from '../layouts/Base.astro'; import { components, SNAPSHOT_DATE } from '../data/components'; -import { planStage } from '../data/live-status'; +import { compileComponentStatus } from '../data/live-status'; -const withStage = await Promise.all( - components.map(async (c) => ({ ...c, stage: await planStage(c.repo, c.plan) })), -); +const withStage = await Promise.all(components.map(compileComponentStatus)); ---