Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
e3e06c7
Diagram interop: @srasyndicate/basalt/diagram-interop subpath and CLI
bmjcoding Nov 24, 2026
f92f416
HTML skill: export diagrams via basalt-diagram-export instead of hand…
bmjcoding Nov 24, 2026
394707e
Diagram interop: tests, official mxfile-1.0.xsd fixture and packed-pa…
bmjcoding Nov 24, 2026
2b55ca1
Diagram export: dark Visio page, Visio containers, Lucid table rows, …
bmjcoding Nov 24, 2026
7cb998c
basalt-diagram-export: works through npm's .bin link; packaged --brow…
bmjcoding Nov 24, 2026
6ea8ac5
Diagram interop tests: the RunTask proof as a failing fixture, dark p…
bmjcoding Nov 24, 2026
3df5e7c
Merge origin/main (#130 diagram batch B, #131 tail edge) into claude/…
bmjcoding Nov 24, 2026
bcbca1f
Add diagram Batch B scene model, corridors, frames, bars, nested grou…
bmjcoding Nov 24, 2026
145b9f9
Emit Batch B crow's-foot, frames, bars, nested groups, and metadata i…
bmjcoding Nov 24, 2026
66880bd
Default CLI to exact browser measurement via optional playwright peer…
bmjcoding Nov 24, 2026
7be7d09
Split Node and browser interop tests, cover Batch B and B2 exact geom…
bmjcoding Nov 24, 2026
19d3fbc
Size sequence frame labels to their words, drop par, align auto direc…
bmjcoding Nov 24, 2026
131cd22
Load and verify Geist fonts before measuring figures, harden --browse…
bmjcoding Nov 24, 2026
69fbb71
Cite DECISIONS 348 and bound Playwright peer range, and track diagram…
bmjcoding Nov 24, 2026
253788c
Extend Node, packed-consumer, and browser interop tests for B1 single…
bmjcoding Nov 24, 2026
b905abc
Document that .lucid is Lucid REST API only and to use .vsdx in Lucid…
bmjcoding Nov 24, 2026
44f5e8e
Fix Lucidchart VSDX import: connector routing, line hops, opaque top-…
bmjcoding Nov 24, 2026
1a572a5
Assert VSDX no-jump flags, unique ports, compact crow's-foot size, an…
bmjcoding Nov 24, 2026
65b0dd7
Free the off-centre top and bottom ends Lucid moves, and size label b…
bmjcoding Nov 24, 2026
fca5f34
Test which .vsdx ends are free, and label backdrops' colour and size
bmjcoding Nov 24, 2026
838f713
Merge origin/main (#137 reserved room) into claude/diagram-interop
bmjcoding Nov 24, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 12 additions & 11 deletions .agent/skills/basalt-html/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ Standalone HTML that looks and behaves like Basalt: one file, no network, dark a

## Use it

1. Pick modules from the index below and print their usage in one call, always with core: `node .agent/skills/basalt-html/compose.mjs --usage core table status callout`. Each usage names the modules it needs and the markup that adds it. `--usage` alone prints the index.
2. Write the **body** to a file: the HTML inside `<body>`, with the classes the usage names. It may carry `<title>` (else the first `<h1>`), your own `<style>`, and head tags: `<meta name="description">`, `og:`/`twitter:` meta, `<link rel="icon" href="data:…">` or `canonical` (no other meta or link); the script adds `Basalt.init()` unless your `<script>` calls it.
3. Run `node .agent/skills/basalt-html/compose.mjs report.body.html` (writes `report.html`; `--out <page.html>` names it). It adds the doctype, meta and theme bootstrap, Geist inlined, the core, only the modules your markup uses, and the icons you name in quotes. It prints what it added, and one warning line for each module added. `--no-fonts` skips Geist (for a file only a tool reads), `--lang fr` sets the language, `--all` adds every module.
4. Open the page in both themes at 1440 and 390 wide before you hand it over. It follows the system theme; the toggle or `Basalt.toggleTheme()` switches it.
1. Pick modules below and print their usage in one call, always with core: `node .agent/skills/basalt-html/compose.mjs --usage core table status callout`. Each usage names the modules it needs and the markup that adds it. `--usage` alone prints the index.
2. Write the **body** to a file: HTML inside `<body>`, using those classes. It may carry `<title>` (else first `<h1>`), `<style>`, and head tags: `<meta name="description">`, `og:`/`twitter:` meta, `<link rel="icon" href="data:…">` or `canonical` (others refused); the script adds `Basalt.init()` unless your `<script>` calls it.
3. Run `node .agent/skills/basalt-html/compose.mjs report.body.html` (writes `report.html`; `--out <page.html>` names it). Adds doctype, meta, theme bootstrap, Geist inlined, core, used modules and quoted icons; prints what it added, one warning line for each module added. `--no-fonts` skips Geist (for a file only a tool reads), `--lang fr` sets language, `--all` adds all modules.
4. Open the page in both themes at 1440 and 390 wide before handing it over. It follows the system theme; the toggle or `Basalt.toggleTheme()` switches it.

**Data you did not write** (a file, an API, a user) goes in as `textContent`; a link from it passes `Basalt.safeHref` (relative, http, https, mailto, tel); an option comes from a fixed list. Never into markup, a `<script>`, `style` or an `on…` attribute.

Expand Down Expand Up @@ -96,20 +96,21 @@ Markup your script builds (a `.row`) isn't seen: add `<!-- basalt:use rows -->`
- **release** `.release`: only from `tools/changelog/skill-body.mjs`; never `hidden` on a fold.
- **tab-bar** `.tab-bar`: three to five links, glyph over label; with more, four and a More sheet.

Your CSS goes in a body `<style>` (moved after Basalt's), with `--basalt-*` tokens only. Element selectors (`a`, `button`, `h1`) go in `@layer reset { }`, so they never beat a Basalt class; class rules can sit unlayered. Basalt's classes are in `@layer basalt`, so any unlayered rule of yours wins without `!important`. Never restyle a Basalt class from an element rule.
Your CSS goes in a body `<style>` (moved after Basalt's), with `--basalt-*` tokens only. Element selectors (`a`, `button`, `h1`) go in `@layer reset { }`, under any Basalt class; class rules can sit unlayered. Basalt's classes are in `@layer basalt`: any unlayered rule of yours wins without `!important`. Never restyle a Basalt class from an element rule.

## Rules

- **Monochrome.** Colour only in named roles: status (a dot or icon beside its word), a product's accent, syntax in code. Never decorative, never the only carrier of meaning.
- **Monochrome.** Colour only in named roles: status (a dot or icon beside its word), a product's accent, syntax in code. Never decorative or the only carrier of meaning.
- **Type:** Geist and Geist Mono, weights 400, 500 and 600 only. Mono for identifiers, code, numbers in logs.
- **Levels, rim, nesting.** A panel (`.panel`, `.card`, `.callout`, `.code`, `.table-wrap`) is one level above what holds it, capped at 3, with a 1px rim and no shadow. Level is position, not importance: a hero is level 1. Group with space and dividers first; a panel is for a distinct object; at most one panel deep. Only things that leave the flow (menu, popover, dialog) take `.float` and a shadow.
- **Levels, rim, nesting.** A panel (`.panel`, `.card`, `.callout`, `.code`, `.table-wrap`) is its holder's level plus one (cap 3), with a 1px rim and no shadow. Level is position, not importance: a hero is level 1. Group by space and dividers first; a panel is for a distinct object; at most one panel deep. Only what leaves the flow (menu, popover, dialog) takes `.float` and a shadow.
- **Keys.** No single-character shortcuts on the page (WCAG 2.1.4): a shortcut needs ⌘, ⌃ or ⌥.
- **Edges.** A ghost `.btn` that starts or ends a head takes `data-edge="start"` or `"end"`, never a hand margin.
- **Edges.** A ghost `.btn` starting or ending a head takes `data-edge="start"` or `"end"`, never a hand margin.
- **Selected** is a shape or weight, never a wash alone: a segment or tab label at 600 (400 at rest) on its pill or underline, a row's filled background, a checked box. No vertical bar; an outline never marks a state.
- **Both themes, always.** WCAG 2.2 AA: 4.5:1 text, 3:1 boundaries, focus and icons (the tokens pass; add no colours).
- **Both themes, always.** WCAG 2.2 AA: 4.5:1 text, 3:1 boundaries, focus, icons (the tokens pass; add no colours).
- **Motion** from the tokens only; entries ease out, nothing overshoots; under reduced motion, opacity only. A press is a colour step; only `.btn` scales (`--usage core`).
- **390px wide** must work: no sideways scroll, touch targets at least 44px (standalone links too: `--usage core`), inputs 16px on touch (the CSS does it). Never hide a column to make a table fit.
- **390px wide** must work: no sideways scroll, touch targets 44px or more (standalone links too: `--usage core`), inputs 16px on touch (the CSS does it). Never hide a column to make a table fit.
- **No** CDN, framework, web font request, glow, gradient, dot grid, page frame, bounce, press scale beyond `.btn`'s .98, red fill, or decorative colour. Danger is red text with a red hairline.
- **Brand SVG file** (from `brand/`): paste it with `data-brand` on its `<svg>`; compose hides it and drops its title; its link needs `aria-label`.
- **A dot between words** is `.dot-sep`, never an `aria-hidden` dot with a hidden comma; a value and its unit need a space (`--usage core`).
- Icons: Phosphor Bold via `<i data-icon="Name"></i>`, 16px (`data-size="20"` beside 18 to 24px text). Available: Command, Option, Control, Sun, Moon, Info, Warning, ArrowRight, ArrowLeft, ArrowUp, ArrowDown, CaretUpDown, Trash, Download, ArrowClockwise, CheckCircle, XCircle, MinusCircle, Prohibit, GithubLogo, XLogo, LinkedinLogo, InstagramLogo, YoutubeLogo, EnvelopeSimple, TerminalWindow. Check, close, chevrons, copy, plus, minus, search: core glyphs (`data-glyph`), not icons. A script that names one writes it as a quoted string (`icon: 'Trash'`). Need another icon? Add its name to tools/html-skill/src/icons.json and rebuild. Never draw one, never use an emoji.
- **Diagram files** (`.drawio`, `.vsdx`, `.lucid`): never by hand; run diagram JSON through `basalt-diagram-export` (here `node packages/react/bin/basalt-diagram-export.mjs`).
- Icons: Phosphor Bold via `<i data-icon="Name"></i>`, 16px (`data-size="20"` beside 18 to 24px text). Available: Command, Option, Control, Sun, Moon, Info, Warning, ArrowRight, ArrowLeft, ArrowUp, ArrowDown, CaretUpDown, Trash, Download, ArrowClockwise, CheckCircle, XCircle, MinusCircle, Prohibit, GithubLogo, XLogo, LinkedinLogo, InstagramLogo, YoutubeLogo, EnvelopeSimple, TerminalWindow. Check, close, chevrons, copy, plus, minus, search are core glyphs (`data-glyph`), not icons. A script naming one writes it quoted (`icon: 'Trash'`). Need another icon? Add its name to tools/html-skill/src/icons.json and rebuild. Never draw one, never use an emoji.
4 changes: 2 additions & 2 deletions .agent/skills/basalt-html/parts/manifest.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions .agent/skills/basalt-html/parts/usage/diagram.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,4 @@ Boxes and the lines between them. `compose.mjs` writes the figure's words into t
- **Parts:** a group's `parent` (two levels); `href` (and `"target": "_blank"`) makes a card a link; a label's `"\n"` is its one break; a sequence's message `activate`/`deactivate` (a bar) and steps `{ "frame": "opt" | "loop", "label", "steps" }` or `{ "frame": "alt", "branches": [...] }`; `"variant": "text"` draws it as text art; `"layout": "auto"` places the cards for you (compose.mjs, at build time); `"entrance": "first-visit"` with an `id` plays the entrance once.
- **Mark:** `"mark": "aws-ecs-service"` on an architecture node, a data flow's step or a sequence's participant, 16px in the card's top end corner, the owner's file and colours; the card's words still name the service. Your own: `{ "onLight": "logo.svg", "onDark": "logo-dark.svg" }`, read into the page. A page drawing from script names its marks: `<!-- basalt:marks aws-s3-bucket temporal -->`.
- **Marks:** `aws-*`, `azure-*`, `gcp-*`, `kubernetes`, `temporal`, `sonarqube`, `github`, `coderabbit`, `greptile`, `blacksmith`, `jenkins`, `servicenow`, `blazemeter`. `node .agent/skills/basalt-html/compose.mjs --marks [aws azure gcp ...]` prints each id with the words its card must say and which are unofficial; a database card (Aurora, RDS) takes `aws-database`.
- **Export:** never hand-write `.drawio`, `.vsdx` or `.lucid`; author this diagram JSON and run `basalt-diagram-export <input.json|page.html> --to drawio,vsdx,lucid` (in-repo: `node packages/react/bin/basalt-diagram-export.mjs` after `npm run build`). `.lucid` is for Lucid's REST API only (`POST https://api.lucid.co/v1/documents` with a token, type `x-application/vnd.lucid.standardImport`); to import through Lucid's own screen, use `.vsdx`.
4 changes: 3 additions & 1 deletion dependencies.allowed.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
{
"$comment": "Runtime dependencies the owner has approved, per package, with the reason. Adding one needs the owner's approval in the PR that adds it (AGENTS.md). Dev dependencies are not listed: they are not installed with the package. One of them, geist, is copied into dist as the font files, under its own licence (dist/fonts/OFL.txt). Every version is exact (scripts/check-deps.mjs fails on a range, a tag, an alias or a URL) except those listed in $ranges, the host app's own React, which a package cannot pin.",
"$comment": "Runtime dependencies the owner has approved, per package, with the reason. Adding one needs the owner's approval in the PR that adds it (AGENTS.md). Dev dependencies are not listed: they are not installed with the package. One of them, geist, is copied into dist as the font files, under its own licence (dist/fonts/OFL.txt). Every version is exact (scripts/check-deps.mjs fails on a range, a tag, an alias or a URL) except those listed in $ranges, the host app's own React and optional peer dependencies, which a package cannot pin.",
"packages/react": {
"@base-ui/react": "Accessible unstyled primitives under every component (foundations: Primitives).",
"cmdk": "Command menu filtering and keyboard selection (MIT, pacocoursey/cmdk). Bailey approved it for the Benji primitives.",
"@phosphor-icons/react": "The web icon set (foundations: Icons).",
"@srasyndicate/basalt-tokens": "Basalt's own tokens.",
"shiki": "CodeBlock syntax highlighting; loaded on demand, one grammar at a time.",
"elkjs": "Automatic diagram layout (`layout=\"auto\"`), loaded on demand through `diagram-layout` and never from the index. EPL-2.0 OR GPL-3.0-or-later; used under EPL-2.0, unmodified. The owner approved it (DECISIONS 301). A build input, not a dependency: its file is copied, unchanged, into dist/diagram-elk.js with its licence (dist/elkjs/LICENSE.md), the one copy the package ships (the decider's ruling 2 on the batch B re-check); it is listed in $copied, pinned.",
"playwright": "Optional peer: headless Chromium for basalt-diagram-export's default exact geometry measurement (DECISIONS 348). Not installed unless the host installs it; the CLI falls back to approximate headless layout with a warning when absent.",
"react": "Peer: the host app's React.",
"react-dom": "Peer: the host app's React DOM."
},
"$ranges": {
"packages/react": {
"playwright": ">=1.40.0 <2",
"react": ">=19",
"react-dom": ">=19"
}
Expand Down
9 changes: 9 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading