Files
heidi/package-plan.json
CatoandClaude Opus 5.5 df3796b9b6 Photos that follow the theme, better openers, R2-ready media (#365)
* Photos: theme-aware scenes, and served from R2 with no image work on the box

- Scenes follow the theme the way Solon's do: a day photograph for light,
  an evening one of the same kind of place for dark where one is worth it,
  shown by CSS (lazy, neither preloaded when paired). The words stand on a
  veil of the theme's own page colour, ink >= 4.5:1 over any picture.
- New station pair (hall at eye level / against the light), the tram at
  the blue hour, a bakery without a label, a rowing club for the Verein;
  the Stadthaus courtyard with its art installation removed.
- lib/media/: fixed-width AVIF and WebP variants keyed by content hash,
  a manifest, and a next/image loader that is on only with
  NEXT_PUBLIC_MEDIA_BASE. scripts/media/ensure.mjs makes the deploy's build
  upload what the bucket lacks and turn the base on only after a probe;
  it never fails the build. Shaped like Solon's for the sitekit move.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmvb6xi489TfZMg7n9T

* Photos: the deploy's build uploads to R2 itself; restaurant and city pairs

- scripts/media/ensure.mjs runs first in `pnpm run build` when SELF_HOST=1:
  with PHOTOS_S3_* and MEDIA_PUBLIC_BASE it uploads only the variants the
  bucket lacks (one image at a time, sharp on one thread), probes one through
  the public base, and only then writes NEXT_PUBLIC_MEDIA_BASE into
  .env.production.local. Anything missing or failing: one line, local
  serving, exit 0. An explicit NEXT_PUBLIC_MEDIA_BASE is the override.
- Same widths, key scheme (photos/<name>.<hash12>/<w>.<fmt>), manifest
  shape and env names as Solon's src/lib/media/, for the sitekit move.
- Restaurant and the situations index: the guild houses on the Limmatquai
  by day and lit at night. The tram is the blue-hour Bahnhofstrasse in both
  themes, wearing the dark theme (scene-night). The old-town lane with a
  restaurant's name is gone; the city default is the Schipfe and the Limmat
  on a winter evening. Apéro and small talk open on the lake.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmvb6xi489TfZMg7n9T

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-26 13:53:47 +01:00

175 lines
6.1 KiB
JSON

{
"blocks": {
"shell": {
"package": "@bitbaum/sitekit",
"status": "pending",
"bindings": [],
"gap": {
"owner": "fleet-remediation",
"reason": "Existing product header/footer still render locally. Migrate through shared slots in a separate UI wave; do not couple account recovery with a shell replacement.",
"replacementCondition": "Shared renderer/theme adopted and browser/domain fixtures pass in its own UI wave."
}
},
"media": {
"package": "@bitbaum/sitekit",
"status": "pending",
"bindings": [],
"gap": {
"owner": "fleet-remediation",
"reason": "Photographs served from object storage in sizes rendered at build time (lib/media/variants.mjs, lib/media/loader.mjs, scripts/media/build-photos.mjs, scripts/media/upload-photos.mjs) were built in this app. lib/media imports nothing from the app so it can move into @bitbaum/sitekit unchanged; the session that built it could not push to bitbaum/sitekit.",
"replacementCondition": "@bitbaum/sitekit exports the variant naming, the next/image loader factory and the build and upload scripts; Heidi imports them and lib/media is deleted."
}
},
"identity": {
"package": "@bitbaum/accountkit",
"bindings": [
{
"file": "lib/auth/index.ts",
"symbols": ["createAuthRuntime"]
},
{
"file": "lib/auth/mail.ts",
"symbols": ["createAuthMailer"]
},
{
"file": "app/[locale]/_components/auth/auth-screens.tsx",
"symbols": [
"SignInForm",
"SignUpForm",
"AccountPanel"
]
}
]
},
"publishing": {
"package": "@bitbaum/bip-kit",
"bindings": [
{
"file": "app/[locale]/roadmap/page.tsx",
"symbols": ["RoadmapDocument"]
},
{
"file": "app/[locale]/changelog/page.tsx",
"symbols": ["ChangelogDocument"]
}
]
},
"payments": {
"package": "@bitbaum/paykit",
"bindings": [
{
"file": "lib/pay/service.ts",
"symbols": ["orangeCatProvider", "applySettlement", "isActive"]
},
{
"file": "lib/pay/store.ts",
"symbols": ["EntitlementStore"]
},
{
"file": "lib/pay/codes.ts",
"symbols": ["extendEntitlement"]
}
],
"note": "Passes paid in Bitcoin to Heidi's OrangeCat project. The provider, the webhook signature, the entitlement arithmetic and once-only settlement are the package's; Heidi owns config (lib/config/payments.ts), storage and words. Pass codes (lib/pay/codes.ts) grant through the package's extendEntitlement; issuing and redeeming a code moves no money and asks no provider, so it is Heidi's until a second product needs it. Paying in francs is paykit's stripeProvider, added to the package in bitbaum/paykit#19 (0.4.0); lib/pay/stripe-provider.ts is a byte-for-byte copy of it until 0.4.0 is on the registry, and lib/pay/stripe-provider.test.ts fails the day the package has it, to say the copy must go."
},
"design": {
"package": "@bitbaum/design-tokens",
"bindings": [
{
"file": "app/[locale]/layout.tsx"
}
],
"note": "Self-hosted faces (Inter, IBM Plex Mono; app/fonts.ts is generated by design-tokens-next-fonts) and composition.css. The brand palette in tokens.css is OrangeCat/Loki/Solon's and, per the package README, is not imposed on a product with its own brand: Heidi's colours stay in app/globals.css."
},
"ai": {
"package": "@bitbaum/ai-kit",
"bindings": [
{
"file": "lib/domain/chat/respond.ts",
"symbols": ["complete", "completeStream"]
},
{
"file": "lib/domain/model/pass-model.ts",
"symbols": ["freeChain", "usableChain"]
}
]
},
"chat": {
"package": "@bitbaum/chatkit",
"bindings": [
{
"file": "app/[locale]/_components/chat/composer.tsx",
"symbols": ["ChatkitComposer"]
},
{
"file": "app/[locale]/_components/chat/workspace.tsx",
"symbols": ["ChatApp"]
},
{
"file": "app/[locale]/_components/chat/copy-button.tsx",
"symbols": ["useClipboard"]
},
{
"file": "app/[locale]/_components/groups/invite-panel.tsx",
"symbols": ["useClipboard"]
},
{
"file": "app/[locale]/_components/voice/use-speech.ts",
"symbols": ["useSpeech"]
}
]
},
"speech": {
"package": "@bitbaum/speechkit",
"bindings": [
{
"file": "app/[locale]/_components/speaking/speaking-practice.tsx",
"symbols": [
"hesitations",
"measureSpoken",
"usable"
]
},
{
"file": "app/api/speaking/transcribe/route.ts",
"symbols": [
"checkGrammar",
"isFaithfulRendering",
"markerVerdict",
"mayJudgeForm"
]
},
{
"file": "lib/domain/speaking/feedback.ts",
"symbols": ["interpretation", "usable"]
},
{
"file": "lib/speech/capability.ts",
"symbols": ["evidenceFrom"]
}
]
}
},
"migration": {
"scope": "This wave completes the account mail/recovery binding. Pending blocks are known missing adoption, not exceptions or successful composition. The strict composition audit must continue to report them until migrated.",
"mail": {
"package": "@bitbaum/mail-kit",
"via": "@bitbaum/accountkit/auth/mail",
"binding": "lib/auth/index.ts",
"verification": "Real adapter is intercepted only for synthetic local browser tests; production delivery remains unverified."
}
},
"productOwned": {
"domain": "Teaching, dialect/grammar gates, structured answers and group transcripts remain Heidi domain behavior."
},
"experience": {
"ceiling": {
"bareTextareas": 0,
"localChrome": 0,
"localComposers": 0,
"localComments": 0,
"localArticleEditors": 0
}
}
}