Files
heidi/package-plan.json
CatoandClaude d388a61030 Back-office access rules come from @bitbaum/accountkit (#411)
Heidi's own copy of the rules (lib/domain/admin/people.ts, access.ts) is
replaced by the package (accountkit 0.34.0). people.ts builds
createManagers once on the app's database and keeps only Heidi's rule for
who the first admin is; the admin_invites and admin_events tables are the
package's createManagerTables(), with no migration. The People actions
catch ManagerRefusal so a refused action stays a silent no-op.

With it: the last admin stays when two admins remove each other at the
same moment (the package locks the rows before counting).


Claude-Session: https://claude.ai/code/session_019MDtmtfseicWGK2CMC2U5r

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-30 22:03:41 +01:00

183 lines
6.4 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": "lib/domain/admin/people.ts",
"symbols": ["createManagers"]
},
{
"file": "lib/db/schema.ts",
"symbols": ["createManagerTables"]
},
{
"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
}
}
}