36 Commits
Author SHA1 Message Date
CatoandClaude cf92d01fdc feat(share): ShareRow is a grid of equal icon tiles, every target in view (#69)
On a 390px phone the sideways strip of text pills showed two and a half
choices, cut off at both edges; X, Bluesky, Hacker News, WhatsApp, Telegram
and Email were found only by scrolling. ShareRow now lays out every target
as one tile shape (icon over a short name, 44px+, equal height per row,
four to a row on a phone), the cross-post first and still the one primary.

- `text` on ShareRow/shareLinks: the words beside the link on X, Bluesky,
  WhatsApp, Telegram and the device sheet (defaults to title)
- ShareLink.name + defaultShareLinkNames; `linkNames` / `names` to translate
- crossPost.icon overrides the cross-post glyph
- 0.10.0, changelog and README updated


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

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-15 02:04:42 +01:00
CatoandClaude 3a9ff46552 fix(react): components declare JSX.Element so React 18 apps build (0.9.1) (#67)
0.7.1 declared ReactNode / Promise<ReactNode>; with React 18 types the async
components (ArticleBody, Faq, CodeBlock, MathBlock) are then "not a valid JSX
element type" — kivvi's bip-kit update failed on it, which holds every other
app's update behind the rollout gate. JSX.Element resolves against the app's
React and keeps the TS2883 fix. Checked: kivvi type-check 0.9.0 fails, this
passes; Solon (React 19) passes.

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

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-13 14:08:35 +01:00
CatoandClaude 433a9be8d7 chore(release): 0.9.0 — main carries #65's share-row additions, which merged under 0.8.2 (#66)
#64 (0.8.2) and #65 (0.9.0) merged minutes apart; the squash kept 0.8.2, so
npm's 0.8.2 (built from 83e2e19) lacks crossPost.onClick and audience.
Releasing main as 0.9.0; changelog entries put in version order.

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

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-13 14:02:56 +01:00
CatoandClaude 83e2e19f58 fix(react): readable Mermaid labels and a screen-edge long-form gutter (0.8.2) (#64)
- Mermaid labels take --bp-diagram-text (0.875em of the body) and a wide
  diagram shrinks only to --bp-diagram-min-text (max(12px, 0.75em)), then
  scrolls; labels measured on orangecat.ch at 390px were 4.1-9.4px.
- Labels are measured in the face they are drawn in, so boxes stop cutting
  them short.
- .bp-article pads to --bp-gutter minus the host column's own distance from
  the screen edge: no double gutter on a padded phone column, no zero gutter
  between 720px and the measure.


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

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-13 13:05:17 +01:00
CatoandClaude 8052af0697 ## What (#63)
The share row's primary action ("Post on OrangeCat") rendered as a blank dark slab on Solon: its ink was `var(--bp-bg)`, and Solon sets `--bp-bg: transparent` so its own page shows through. Measured: text `rgba(0,0,0,0)` on `rgb(26,26,26)`.

- New `--bp-on-fg` (ink on a `--bp-fg` fill), set in the light defaults, the dark media query and `[data-theme="dark"]`. Hosts can override it.
- `.bp-share-primary` uses it.
- A style test fails if any `--bp-fg` fill takes its ink from `--bp-bg`, and checks `--bp-on-fg` is set in all three theme blocks.
- Version 0.8.1.

## Checks

- `pnpm run verify`: 229 tests pass. `docs-truth-audit`: clean.
- Built Solon with this stylesheet: the button reads `rgb(253,253,252)` on `rgb(26,26,26)`; checked at 390px in light and dark.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

https://claude.ai/code/session_019MDtmvPuHDQeZwXtasWfSx
B
gh api repos/bitbaum/bip-kit/pulls -f head=fix/share-primary-ink -f base=main -f title="fix(share): primary action ink no longer comes from a transparent --bp-bg (0.8.1)" -F body=@/tmp/claude-0/b3.md --jq .html_url
fix(share): primary action ink no longer comes from a transparent --bp-bg (0.8.1)

Solon sets --bp-bg: transparent, so the "Post on OrangeCat" button's text
vanished into its fill. A dedicated --bp-on-fg carries the ink, with light
and dark defaults; a style test keeps --bp-fg fills off --bp-bg ink.

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

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-13 12:07:04 +01:00
CatoandClaude e5b8480275 feat(share): shareLinks and ShareRow, cross-post first (0.8.0) (#62)
- shareLinks({ url, title, summary?, labels? }) builds the documented share
  or intent URL for X, LinkedIn, Bluesky, Hacker News, WhatsApp, Telegram and
  email; each source is cited beside it. Reddit is left out: no first-party
  documentation of a share URL could be cited.
- ShareRow (@bitbaum/bip-kit/react): the app's cross-post action first as the
  one primary action, the share sheet where the browser has one, Copy link,
  then the services, in one sideways-scrolling line with 44px targets.
- Tests for encoding round-trips, mailto, SSR without navigator, styles.

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

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-13 11:58:16 +01:00
CatoandClaude 6189477d5c fix(react): explicit return types on every exported component (0.7.1) (#61)
Installing bip-kit from its Git release runs `pnpm install` + `tsc` in a temp
store; with @types/react 19.3 the inferred component types could not be named
there (TS2883) and every consumer's install failed. ReactNode /
Promise<ReactNode> annotations make the declarations portable.

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

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-13 10:46:31 +01:00
CatoandClaude 705ab10c4c feat: cross-post a post to another fleet product (0.7.0) (#60)
sharedArticle() turns a post into the JSON OrangeCat's article composer
imports, with root-relative links made absolute; crossPostUrl() builds the
link that opens the composer filled in, optionally naming the project whose
wall it should also go on. No host is stored in the package.


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

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-10 14:29:37 +01:00
CatoandClaude e1dad354af feat: publish as @bitbaum/bip-kit (same code, same version) (#58)
Owner, 2026-11-06: the fleet's packages belong under the @bitbaum npm
organization; this one was published earlier, unscoped, and never moved
(fleet docs/package-scope-migration-plan.md). Name, imports in tests, examples
and docs change; no API changes. The old name stays installable and is
deprecated once no adopter uses it.


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

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-06 13:49:30 +01:00
Cato 16cc4fabce feat: render typed roadmap and changelog records (#49) 2026-10-26 09:52:24 +01:00
CatoandClaude Opus 5.5 01ffdbb4ef feat(development): link roadmap milestones and changelog lines both ways (0.6.0) (#45)
* feat(development): link roadmap milestones and changelog lines both ways (0.6.0)

The same {#id} on a roadmap milestone and on a changelog line links them.
DevelopmentPage shows under each milestone the dated changelog entries that
delivered it, and under each changelog line the milestone it advanced, as
anchored links; the roadmap is drawn as a trail per goal. linkDevelopment()
exposes the model for custom pages, with danglingRefs and unrecordedSteps as
honesty checks. The token rides inside strings the fleet map already carries,
so nothing upstream changes.

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

* fix(development): one link per changelog day under a milestone

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

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-07 07:02:41 -07:00
CatoandCursor c02ef51dc1 fix(normalize): join wrapped list item lines into the item (0.5.2) (#44)
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-30 11:36:24 -07:00
CatoandCursor 388e35e725 fix(frontmatter): read [lists] wrapped over several lines (0.5.1) (#43)
Prettier wraps long tag lists onto their own lines; parseFrontmatter
returned them empty, so readCollection silently dropped the tags.
Quoted items may now contain commas. README: a colon in a value was
never cut off; the warning said it was.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-30 08:31:05 -07:00
CatoandCursor 6ff4588ebd feat: collections, FAQ and markdown normalization (0.5.0) (#42)
bip-kit/node readCollection/readEntry replace five per-product readers;
normalizeMarkdown replaces four copies of the lenient pre-parse step;
parseFaq + <Faq> give questions and answers from one markdown file with
native details, linkable ids and FAQPage data.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-30 06:42:43 -07:00
CatoandClaude Opus 5.5 931b2244c8 feat(feedback): roadmaps and changelogs people can answer (0.4.0) (#39)
Votes (needed / not needed) on roadmap items, comments on changelog entries,
and suggestions with duplicate detection as you type — for every product that
renders its roadmap and changelog through bip-kit.

Headless: a FeedbackStore contract the product implements over its own
database (memoryStore is the reference), shared rules (screenText, honeypot,
one stance per voter, findSimilar without a model, Wilson ranking), a
Web-standard GET/POST handler, and client components whose every word is a
prop. RoadmapItem.id and ChangelogEntry.id (optional) keep one tally across
translations.

Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-25 03:18:18 -07:00
Cato 44fc4afad7 fix: render canonical roadmap milestone state (0.3.1) (#38) 2026-09-23 12:00:25 -07:00
Cato f124307d38 feat: render canonical public development records (v0.3.0) (#35) 2026-09-16 04:22:32 -07:00
CatoandClaude Fable 5.1 551fd4cce4 fix(react): announce the active TOC entry with aria-current (v0.2.8) (#34)
The scroll-spy in Toc painted the current heading with a class and told
assistive technology nothing — the fleet's nav-contract sweep flagged it on
2026-09-07 ("1 nav file(s) compute an active state, 0 aria-current in the
repo"). The active link now carries aria-current="location": these are
anchors within one page, so "location" is the token that describes it,
not "page".


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

Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-14 05:41:45 -07:00
CatoandClaude Fable 5.1 1553adc808 fix(styles): the copy button moves into a toolbar row above the code (v0.2.7) (#30)
#27 cleared the code out from under the copy button with a fixed padding-top
on the <pre> (--bp-copy-clearance, 2.75rem), sized to the button's measured
height of ~30px. That number was the bug waiting to happen: the button's
height is decided by the consumer's stylesheet, not this one. fleetcrown has a
global accessibility rule — `button, summary, select, textarea, [role="button"]
{ min-height: 2.75rem }` under `@media (pointer: coarse)`, the fleet's own 44px
touch-target guideline — so its copy button is 44px tall. top 8px + 44px puts
its bottom at 52px; the first code line starts at 46px. Measured live on
fleetcrown at 390x844 with hasTouch: the button covers the tail of the opening
line. kivvi and botsmann (30px buttons, no coarse-pointer rule) show 0 overlap,
which is exactly what made it fragile: correctness depended on a consumer rule
bip-kit cannot see.

So the fix is to the class of bug, not the number. The button is now in
normal flow: a toolbar row (.bp-codeblock-toolbar — flex, justify-end) above
the <pre>, holding the optional filename label (now a span in that row rather
than a figcaption above the body) and the copy button. Layout pays for the
button's height whatever a consumer sizes it to, so code can never sit under
it. --bp-copy-clearance and the padding-top it drove are deleted.

Kept: desktop hover-reveal under (hover: hover) and (pointer: fine) — fading
is opacity-only, so the toolbar keeps its height and nothing jumps on reveal;
always-visible on touch; data-copied state; focus-visible; clipboard copy.
Toolbar precedes the code in DOM order, so keyboard and screen-reader users
reach "copy" before the thing it copies. Print zeroes the toolbar's top padding
so an empty toolbar (button hidden, no filename) collapses to nothing.

Consumer CSS: grepped all eight sites (orangecat, fleetcrown, evig, botsmann,
datacat, aoz-housing, kivvi, petvity) for bp-copy, bp-codeblock-body,
copy-clearance, bp-codeblock-filename — no overrides anywhere. Only
theming vars and orangecat's shiki-span color scope touch bp-codeblock-*.

Guards: test/styles.test.js asserts no rule mentioning .bp-copy positions it
out of flow, that .bp-codeblock-toolbar is a flex row in flow, that
--bp-copy-clearance is gone and the scroller reserves no padding-top, and that
print collapses the toolbar. test/react-render.test.js asserts the toolbar
(containing the one copy button) closes before the <pre> opens, for the plain
and shiki paths, with and without a filename. Mutation-proved: restoring
position:absolute on .bp-copy → red (1 test); reintroducing the clearance var
+ padding-top → red (1); moving CopyButton below the code → red (2); restored
→ 150/150 green.

Rendered check with the built dist and fleetcrown's coarse-pointer rule
injected: at 390x844 hasTouch the button is 44px tall, bottom at 53px, first
code text at 64px, no intersection, scrollWidth == clientWidth; at 1440 the
button rests at opacity 0, reveals to 1 on hover of that block, block height
unchanged (jump 0).


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

Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-10 17:31:45 -07:00
CatoandClaude Opus 5 81af3063c1 fix(styles): the copy button was invisible on every touch device (v0.2.6) (#28)
#27 cleared the code out from under the copy button. This fixes the other
half of the same rule: the button was never visible on a phone at all.

`.bp-copy` rested at `opacity: 0` and was revealed only by
`.bp-codeblock-body:hover`. A touch device never enters a hover state, so on
phones and tablets the control stayed at opacity 0 permanently — in the DOM,
in the accessibility tree, and tappable, with nothing on screen to say it was
there. Measured at 390x844 with hasTouch against live pages on two consumers
(kivvi, aoz-housing): computed opacity 0 on every code block, and no gesture
that can change it.

So the base rule now rests at `opacity: 1`, and the fade-until-hover moves
inside `@media (hover: hover) and (pointer: fine)` — it is an enhancement for
pointers that can hover, not the definition of the control. Hover-capable
desktops are unchanged: same fade-in, same resting invisibility. Because
--bp-copy-clearance from #27 is unconditional, a permanently visible button
still covers no code.

Proven against live content by injecting the candidate stylesheet into pages
that still ship 0.2.3/0.2.4, so only the stylesheet varies:

  kivvi preisgestaltung-secondhand
    1440 hover : opacity 0 -> 0     overlap 0 -> 0      (unchanged)
     390 touch : opacity 0 -> 1     overlap 939px² -> 0 (fixed)
  aoz chore-fairness-is-a-balance
    1440 hover : opacity 0 -> 0                          (unchanged)
     390 touch : opacity 0 -> 1                          (fixed)

Guarded in test/styles.test.js next to the clearance guards, because this
class of bug is invisible to every render test — the HTML is byte-identical
whether the button can be seen or not. Mutation-proved: parking the resting
opacity back at 0, hoisting the hide out of the hover query, and deleting the
query outright each turn the suite red. The two guards #27 added were
re-proved in the same run (shrinking the clearance token, removing the print
reclaim) to confirm this change does not soften them; the unmutated tree is
green before and after.


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

Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-08 11:44:43 -07:00
CatoandClaude Opus 5 6b4d1fde07 fix(styles): clear the copy button off the code it covers (v0.2.5) (#27)
The copy button is absolutely positioned over the top-right of the code
block with an opaque background, and the code had symmetric 1rem padding —
so any opening line long enough to reach the button rendered underneath it.
Measured on live pages with a clipping-aware probe: 3 of 4 blocks on one
orangecat article at 1440px, and 4 of 4 at 390px, had ~1800px² of code
painted under the button. Invisible to all 145 existing tests, because the
button and the <pre> are siblings and the HTML is identical either way.

The clearance is vertical, not a right-hand gutter. Trailing padding on the
<pre> fixes nothing: a scroll container lays its padding out past the END of
the scrollable content, so a long line still passes beneath the button at
scrollLeft 0 — verified, it cleared 0 of 7 affected blocks. Narrowing the
non-scrolling wrapper does work, by clipping the <pre> short of the button,
but costs 5rem of code width on every line and hurts most at 390px where
code is already scrolling. Starting the text below the button costs 28px of
height once per block and leaves the reading width intact.

Print reclaims the clearance, since print already hides the button.

test/styles.test.js gains two guards, mutation-proven six ways: removing the
clearance, shrinking it below the button, moving the button past it, swapping
in the horizontal padding that does not work, and dropping the print reset
each turn the relevant test red, while the unmutated tree stays green.


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

Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-08 11:23:59 -07:00
CatoandClaude Opus 5 753da7aa6f feat(slug): a slug policy seam — two live sites need different anchors (v0.2.4) (#26)
kivvi publishes `Geschäftsmodell` as `#das-geschaeftsmodell` (ASCII, ä→ae);
evig publishes `Kanäle` as `#ein-eingang-vier-kanäle` (unicode preserved, 8
locales). Both are correct for their site, so neither can be "the" behavior.
evig had to write its own re-slugging pass to get the second, because the
ASCII slugger would have renamed every published non-Latin anchor.

So the default does not move — a regression pin asserts today's outputs
byte-for-byte, including the German ä→ae case — and a policy is now an
option instead:

  parseContentBlocks(body, { slugify: unicodeSlugify })
  extractToc(blocks,   { slugify: unicodeSlugify })

`unicodeSlugify` ships ready-made (lowercase, punctuation stripped, letters
/numbers/marks of any script kept), verified byte-identical to evig's local
pass over all 725 headings in its 101 published post files. Any
`(text: string) => string` works as a third policy; de-duplication and the
`section` fallback are applied on top, so consumers compose rather than
reimplement.

Both callers now derive ids through the one `createSlugger`, deleting
extractToc's duplicate dedup loop: a heading's id and the TOC entry linking
to it are the same anchor and can no longer drift — the exact bug evig's
migration had to work around.

README also corrects two things real adopters hit: the slug policy is
documented with a warning that changing it on a published site renames every
anchor, and `parseFrontmatter` is now plainly described as a `key: value`
scanner rather than a YAML parser — quoted titles containing colons,
booleans, numbers and nesting need gray-matter, which is what kivvi keeps it
for. No YAML parser is being rewritten here.


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

Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-08 10:28:00 +00:00
CatoandClaude Opus 5 972861f598 fix(styles): declare list-style-type — every bullet was invisible under Tailwind (#25)
The stylesheet colored ::marker on .bp-ul/.bp-ol list items but never
declared list-style-type. Tailwind preflight sets `ul, ol { list-style:
none }` on every consumer in this fleet, so there was no marker left to
color: bullets and numbers silently disappeared while the rendered HTML
stayed byte-identical. It shipped to five production sites today and was
caught by looking at a screenshot, not by a test.

Declares disc/decimal outright plus the nested levels (circle, square,
lower-alpha, lower-roman) that the same reset removes from the UA sheet,
and tightens nested-list spacing. test/styles.test.js is the guard for
the class, not just this instance: it fails if either declaration goes
missing, if any ::marker rule decorates a selector that never declares a
marker, and it keeps the TOC/footnote opt-outs explicit. Mutation-proven
— it fails against the pre-fix stylesheet.


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

Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-07 16:13:38 +00:00
CatoandClaude Opus 5 1adfef61f6 fix(inline): honor backslash escapes, intraword *, and ***bold italic*** (v0.2.2) (#22)
evig's adoption parity check (old react-markdown output vs bip-kit's typed
blocks) found three classes where the inline scanner silently under-parsed
against standard markdown. Fixed here rather than worked around in every
consumer.

The single-pass "find the next matching delimiter" scanner could not express
any of them, so emphasis now runs as CommonMark does it: tokenize the line
into nodes and unresolved delimiter runs, then resolve the runs in a second
pass (process_emphasis — nearest eligible opener, two delimiters for strong,
one for em, rule of three). Escapes, code spans, links and footnote refs are
settled during tokenization, so a `\*` is inert text that can never open
markup and a code span still takes no escapes at all.

- Backslash escapes: the full CommonMark ASCII punctuation set. `\*x\*` is
  literal, `\\` is one backslash, and a backslash before a non-escapable
  character stays a backslash (`C:\path\to`).
- Intraword emphasis: `*` may open and close intraword (`foo*bar*baz`), `_`
  may not — `snake_case_name` and friends stay literal, pinned by test.
- `***x***`, `___x___`, `**_x_**`, `_**x**_` produce nested strong+em instead
  of a literal run of asterisks.

Zero new dependencies; still a hand-rolled scanner over one line. Unmatched
and dangling delimiters stay literal exactly as before.

ONE existing test pinned the old, non-CommonMark behavior and is updated:
"intraword underscores and asterisks are not emphasis" asserted that
`2*3*4 = 24` stayed literal text. Under CommonMark's flanking rules that is
`2<em>3</em>4 = 24`, which is what react-markdown and every other reader
emits, and what the parity check flagged. The underscore half of that
assertion is untouched and now has more cases around it.

Tests 116 -> 126.


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

Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-07 12:48:28 +00:00
CatoandClaude Fable 5 7c06cbea7a fix: survive oklch tokens in MermaidBlock, make shiki loading traceable (v0.2.1) (#21)
Two fixes from fleetcrown's adoption of the v0.2 renderer:

- MermaidBlock: resolved CSS-var colors are normalized through a canvas
  round-trip before reaching mermaid, whose color parser rejects
  oklch()/lab() — it threw inside initialize(), BEFORE render()'s .catch(),
  blanking every diagram for consumers with modern-color tokens. An
  initialize() failure now costs the reader the theme, never the diagram.
  Theme detection is tolerant: data-theme attr wins, then a light/dark
  class (next-themes attribute="class", Tailwind .dark), then the OS —
  re-rendering live on all three signals.

- Optional-peer loading is now traceable: setHighlighterLoader(() =>
  import("shiki")) (or a `highlighter` prop on ArticleBody/CodeBlock) puts
  the literal specifier in consumer code, so bundlers resolve it and
  Next.js output tracing copies shiki into output:"standalone" deploys.
  The Function-hidden import stays as the zero-config fallback — a bare
  import("shiki") inside bip-kit breaks every no-shiki consumer build
  (verified empirically against turbopack, Next 16.3.4: "Module not found:
  Can't resolve 'shiki'"). Both paths verified with real consumer builds,
  with and without shiki, turbopack and webpack; the traced standalone
  output contains shiki and the prerendered page carries --shiki vars.


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

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
2026-09-07 04:30:42 +00:00
dependabot[bot] 9288155a64 chore(deps-dev): Bump shiki from 3.23.0 to 4.4.3 (#20)
Bumps [shiki](https://github.com/shikijs/shiki/tree/HEAD/packages/shiki) from 3.23.0 to 4.4.3.
- [Release notes](https://github.com/shikijs/shiki/releases)
- [Commits](https://github.com/shikijs/shiki/commits/v4.4.3/packages/shiki)

---
updated-dependencies:
- dependency-name: shiki
  dependency-version: 4.4.3
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-09-06 00:55:02 +00:00
dependabot[bot] 29f9370165 chore(deps-dev): Bump the minor-and-patch group with 4 updates (#19)
Bumps the minor-and-patch group with 4 updates: [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node), [globals](https://github.com/sindresorhus/globals), [katex](https://github.com/KaTeX/KaTeX) and [typescript-eslint](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/typescript-eslint).


Updates `@types/node` from 26.4.0 to 26.4.1
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

Updates `globals` from 17.11.0 to 17.12.0
- [Release notes](https://github.com/sindresorhus/globals/releases)
- [Commits](https://github.com/sindresorhus/globals/compare/v17.11.0...v17.12.0)

Updates `katex` from 0.16.47 to 0.18.5
- [Release notes](https://github.com/KaTeX/KaTeX/releases)
- [Changelog](https://github.com/KaTeX/KaTeX/blob/main/CHANGELOG.md)
- [Commits](https://github.com/KaTeX/KaTeX/compare/v0.16.47...v0.18.5)

Updates `typescript-eslint` from 8.68.0 to 8.69.0
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/typescript-eslint/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v8.69.0/packages/typescript-eslint)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-version: 26.4.1
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: minor-and-patch
- dependency-name: globals
  dependency-version: 17.12.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: minor-and-patch
- dependency-name: katex
  dependency-version: 0.18.5
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: minor-and-patch
- dependency-name: typescript-eslint
  dependency-version: 8.69.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: minor-and-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-09-05 23:34:34 +00:00
CatoandClaude Fable 5 a711d1834e feat: v0.2 — inline model, extended block vocabulary, react reference renderer (#18)
One vocabulary + one reference renderer so every fleet site reads long-form
at the same standard, while typography tokens stay per-site.

Parser (root export, still zero-dep; the v0.1 ten block types unchanged):
- Inline model: parseInline → text/strong/em/code/link/footnoteRef spans;
  every text-bearing block keeps `text` and gains additive `spans`.
- New blocks: h4, hr, figure (caption title), gallery (adjacent images
  merge), callout (GitHub > [!NOTE] syntax, nestable), pullquote (>> with
  — cite), mermaid, chart (tiny declarative spec; malformed specs THROW),
  math ($$), footnote defs, stats fence.
- Headings gain slugified, de-duplicated, umlaut-aware ids (kivvi's scheme).
- parseFrontmatter learns YAML arrays (inline + block lists), still dep-free.
- Helpers: extractToc, readingTime, slugify/createSlugger, parseChartSpec.

Renderer (new bip-kit/react subpath + bip-kit/styles.css):
- ArticleBody: async RSC that pre-awaits shiki/katex, then emits a fully
  synchronous tree (renderToString-safe). Server components for every block;
  client islands: Toc (scroll-spy, hidden under 3 headings), ReadingProgress,
  Lightbox, CopyButton. MermaidBlock on its own bip-kit/react/mermaid subpath
  so the mermaid peer never enters uninterested bundles (components override).
- shiki/katex are optional peers loaded via bundler-invisible dynamic import;
  honest degradation without them (mono <pre>, TeX source with data-math).
- styles.css: complete neutral theme — 70ch measure, real vertical rhythm,
  dark mode via vars only (data-theme wins over prefers-color-scheme),
  mobile-first, print-safe; every color/radius/font is a --bp-* custom
  property (theming contract documented in the README).

CI: ci.yml gains workflow_dispatch (re-arm strand — a GITHUB_TOKEN merge
cannot trigger workflows on its own; threadkit#28 pattern).

96 tests: v0.1 compat goldens (original shapes byte-identical after
stripping additive fields), goldens for every new syntax form and edge case,
renderToString smoke tests for every block type with and without the
optional peers (BIPKIT_DISABLE_PEERS seam), consumer-install pack test now
probing ./react, ./react/mermaid and ./styles.css.


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

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
2026-09-05 16:03:53 +00:00
dependabot[bot] d71a90c410 chore(deps-dev): Bump globals from 15.15.0 to 17.11.0 (#7)
Bumps [globals](https://github.com/sindresorhus/globals) from 15.15.0 to 17.11.0.
- [Release notes](https://github.com/sindresorhus/globals/releases)
- [Commits](https://github.com/sindresorhus/globals/compare/v15.15.0...v17.11.0)

---
updated-dependencies:
- dependency-name: globals
  dependency-version: 17.11.0
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-09-04 16:38:26 +00:00
69c03fca22 chore: pnpm — the fleet has one package manager (#15)
Convert from npm to pnpm (fleet standard, STACK.md):
- packageManager pin pnpm@11.25.0 (corepack SSOT)
- pnpm-lock.yaml via `pnpm import` from package-lock.json (resolutions
  preserved), then package-lock.json deleted
- CI + publish workflows: pnpm/action-setup@v6, cache: pnpm,
  `pnpm install --frozen-lockfile`, `pnpm run verify`
- package.json scripts and contributor docs use pnpm; consumer install
  lines stay npm — consumers choose their own package manager
- npm publish invocation unchanged (works from a pnpm-managed tree)

Clean-room proven: rm -rf node_modules && pnpm install --frozen-lockfile
&& tests green.


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

Co-authored-by: Mao Nakamoto <41178744+maonakamoto@users.noreply.github.com>
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
2026-09-03 08:01:33 -07:00
0e23bac6d0 chore(deps): typescript 6 (#14)
TS 7.0.2 exists but typescript-eslint rejects it — canaried and blocked;
revisit when support ships.


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

Co-authored-by: Mao Nakamoto <41178744+maonakamoto@users.noreply.github.com>
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
2026-08-31 15:35:48 +02:00
1d4314655f chore(deps): currency sweep — eslint 10, @types/node 26, CI actions v7 (#13)
Bumps (devDependencies):
- eslint ^9.39.5 -> ^10.9.1
- @eslint/js ^9.39.5 -> ^10.0.1
- @types/node ^22.10.2 -> ^26.4.0
- prettier ^3.3.3 -> ^3.9.6
- typescript-eslint ^8.67.0 -> ^8.68.0

CI workflows (ci.yml, publish.yml):
- actions/checkout v4 -> v7
- actions/setup-node v4 -> v7

Full verify (format, lint, typecheck, build, 32 tests) green.


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

Co-authored-by: Mao Nakamoto <41178744+maonakamoto@users.noreply.github.com>
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
2026-08-31 10:51:18 +02:00
GandClaude Opus 5 a5362991de chore: add a formatter (#12)
* chore: add a formatter, matching the style this repo already writes

singleQuote=false was chosen by counting this repo's own
imports, not by fleet decree. The fleet is genuinely split and the two repos
that already had a .prettierrc disagreed with each other, so there was no
standard to restore. Quote style does not cross repo boundaries; having a
gate does.

Markdown is ignored for now — prettier rewraps prose, which would bury the
real diff.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

* style: format with prettier (7 files)

Mechanical. No behaviour change. This SHA is listed in
.git-blame-ignore-revs so `git blame` skips it.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

* chore: teach git blame to skip the reformat

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
2026-08-31 09:41:59 +02:00
GandClaude Opus 5 6633758440 chore: declare node >=20, the version the box actually runs (#11)
Was: >=18.

Eighteen of thirty repos declared no Node version at all, and the twelve
that did used five spellings of the same intent - >=18, >=20, >=20.0.0,
>=22, >=22.19.0. The box runs 20.20.2, so >=22 was a claim nothing could
satisfy and nothing would have caught.

One spelling, matching the machine that runs it, turns an invisible
mismatch into a loud one.


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

Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
2026-08-29 09:04:33 +02:00
GandClaude Opus 5 8063d83ede chore: retire the maonakamoto handle (#2)
The account was renamed to `catomean` and the repos then moved to the
`bitbaum` org, so `maonakamoto` now names nothing: github.com/maonakamoto
and maonakamoto.github.io both return 404, and @maonakamoto no longer
resolves as a user.

Three different targets, because these are not the same reference:
  repo links  -> bitbaum/<repo>   (the repos live in the org)
  the person  -> catomean        (profile links, @mentions, CODEOWNERS)
  pages site  -> bitbaum.github.io

Deliberately NOT changed:
  .mailmap keeps the old noreply address as an ALIAS. It is what maps
  historical commits onto the current identity; deleting it would
  silently unmap them. Only the canonical side moved to catomean.
  Files that explain the outage by naming the old account keep it,
  since the name is the content.

Files: package.json


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

Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
2026-08-28 10:24:45 +02:00
GandClaude Fable 5 24a5506496 feat: make bip-kit an installable package (#1)
- Single unscoped package `bip-kit` (was @bip-kit/core in a workspace):
  tsc build to dist/, exports map with types, files allowlist, provenance.
- NodeNext module resolution with explicit .js specifiers.
- Real test suite (32 tests): parser block semantics incl. CRLF, unterminated
  fences, table/paragraph ambiguity, embed allowlisting; frontmatter quoting
  and colon-in-value; video allowlist rejections incl. lookalike hosts; and a
  tarball-consumer test that imports the packed package by bare specifier so
  the exports map and files list are what gets tested, not relative paths.
- CI (verify) + reconciler publish workflow: merging a version bump to main
  is the release; auth is npm trusted publishing (OIDC), no token anywhere.
- README rewritten around the content contract; templates now reference
  `bip-kit`. The cp-based "sync from studio" model is gone: FleetCrown and
  AOZ will consume this package from npm instead of vendored copies.

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
2026-08-21 01:57:25 +02:00