@atelic-action/artifact 6.3.0 → 6.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -21,10 +21,10 @@ Every export of the package, all from the one entry, `@atelic-action/artifact`.
21
21
 
22
22
  | Export | What it is | Route |
23
23
  |---|---|---|
24
- | `TheRead`, `TheReadProps` | The graded document a business gets, built from one snapshot: the dated lede; the scorecard, a `ReportCard` with each row a link to its card and the earlier letter beside a row that moved, with an optional `note` callout over it for what the read leaves out; the plan's numbered steps between the scorecard and the cards when `plan` has any (superseded by the plan tab, and removed at the next major); then the tiers, each section on the card (the trade name linked to its definition, the one liner, the grade, the why line as the summary, the blocks, and the sources at the foot) plus the read's own today and after (a two column table) and what we recommend (a checklist), a tier opening on a `markets` table of letters and closing on the `rented` line when it has them; the closing line and the sign off. `access` says which depth it is (`"public"`, from public readings alone, or `"private"`, from the owner's consoles too), and a public read with no note gets the `publicNote` label over its scorecard. `print` adds the lockup and the twin's QR to the printed copy. A beat with no data is left out. The head is the same for every business: `title` left out is the `overviewTitle` label and `preparedFor` ("Overview of Summit Movement Studio"), `lede` left out is the `overviewLede` label with the business in it, `sources` draws a Sources line under the dateline, the public sources then the private ones, each a link in a new tab, and `period` ("2026-08-01 to 2026-10-31", the window every reading on the page is read over) draws on the dateline after the date under the `periodLabel` word. The page is up to four tabs under that head, in a fixed order, each document tab present only when its document is: given a `stateDocument`, The Situation (the problems, by tier, each linked to its card); given a `planDocument`, The Plan; given a `proposalDocument`, The Proposal; and The Full Read, which holds everything that sat between the head and the sign off, always last. The first tab present opens. The sign off stays under all of them, and the tab row's screen reader name, unless `labels` sets one, names the tabs present. The tabs are ui's `Tabs`, so a link or a hash naming a card in the read opens the read tab and lands on it, and on paper every panel prints in order, each after the first on a new page under its tab's name. `selectedTab` and `onSelectTab` let a route hold the open tab, for instance to swap the header's stops with it. With no document the page is the one it always was | `/the-read` |
24
+ | `TheRead`, `TheReadProps` | The graded document a business gets, built from one snapshot: the dated lede; the scorecard, a `ReportCard` with each row a link to its card and the earlier letter beside a row that moved, with an optional `note` callout over it for what the read leaves out; the plan's numbered steps between the scorecard and the cards when `plan` has any (superseded by the plan tab, and removed at the next major); then the tiers, each section on the card (the trade name linked to its definition, the one liner, the grade, the why line as the summary, the blocks, and the sources at the foot) plus the read's own today and after (a two column table) and what we recommend (a checklist), a tier opening on a `markets` table of letters and closing on the `rented` line when it has them; the closing line and the sign off. `access` says which depth it is (`"public"`, from public readings alone, or `"private"`, from the owner's consoles too), and a public read with no note gets the `publicNote` label over its scorecard. `print` adds the lockup and the twin's QR to the printed copy. A beat with no data is left out. The head is the same for every business: `title` left out is the `overviewTitle` label and `preparedFor` ("Overview of Summit Movement Studio"), `lede` left out is the `overviewLede` label with the business in it, and under the lede the fine print, a row each with its word on the left: `period` ("2026-08-01 to 2026-10-31", the window every reading on the page is read over, under the `periodLabel` word) and `sources` (the public sources on one line, the private ones on the next, each a link in a new tab, under the `sourcesLabel` word); a read that sets neither has no fine print. The page is up to four tabs under that head, in a fixed order, each document tab present only when its document is: given a `stateDocument`, The Situation (the problems, by tier, each linked to its card); given a `planDocument`, The Plan; given a `proposalDocument`, The Proposal; and The Full Read, which holds everything that sat between the head and the sign off, always last. The first tab present opens. The sign off stays under all of them, and the tab row's screen reader name, unless `labels` sets one, names the tabs present. The tabs are ui's `Tabs`, so a link or a hash naming a card in the read opens the read tab and lands on it, and on paper every panel prints in order, each after the first on a new page under its tab's name. `selectedTab` and `onSelectTab` let a route hold the open tab, for instance to swap the header's stops with it. With no document the page is the one it always was | `/the-read` |
25
25
  | `readLabels`, `ReadLabels` | The fixed words the read sets (Prepared for, the scorecard's screen reader words, Before, Rented, Today, After, Recommendations, the plan's heading, the public note, the standard head's words (`overviewTitle`, `overviewLede` with `{business}` in it, `periodLabel`, `sourcesLabel`, `publicSources`, `privateSources`), the four tabs' names (`stateTab`, `planTab`, `proposalTab`, `readTab`: The Situation, The Plan, The Proposal, The Full Read), and the tab row's name for a screen reader, which names the tabs present when left out), each overridable through `labels` | `/the-read` |
26
26
  | `StateDocument` | The situation tab's document, the same shape as `PlanDocument`: the problems the read found, one section per tier (Health, Visibility, Conversion), each line linked to the card that shows it, so the plan answers them in the same order. Its panel wears `rd-state-doc` beside `rd-plan-doc`. Its `id` defaults to `theStateTabId` and its `title` to the `stateTab` label | `/the-read` |
27
- | `ReadSources` | The sources the read was built from, for the Sources line: `public` links (the site, Google, PageSpeed, the AI answers) and the owner's `private` consoles | `/the-read` |
27
+ | `ReadSources` | The sources the read was built from, for the fine print's sources row: `public` links (the site, Google, PageSpeed, the AI answers) and the owner's `private` consoles | `/the-read` |
28
28
  | `PlanDocument`, `PlanSection`, `PlanPart`, `PlanBlock` | The shapes the plan tab is written in, all plain data, so a routine can write a plan as JSON. A plan is an optional lede and its sections; a section is an `id` (the anchor a header stop points at), a `heading`, an optional `timeline` line set small under the heading (when the work happens and whose it is), its blocks in order, and any parts, each a smaller heading with the same body. A block is a paragraph, a bulleted or numbered list, or a table with an optional head row, and every piece of text in one is a paragraph, so a link into the read is a run whose `href` is a card's anchor. A block with nothing in it is left out. On a phone a table's rows stack, each cell wearing its column's name | `/the-read` |
29
29
  | `ProposalDocument` | The proposal tab's document, the same shape as `PlanDocument`: what the owner gets, what it costs, the owner's own questions, and the next steps, with a line that rests on a finding linking to its card (What You Get, What It Costs, Your Questions, and Next Steps in the example). Its panel wears `rd-proposal-doc` beside `rd-plan-doc`, so the plan's styles dress it unchanged. Its `id` defaults to `theProposalTabId` and its `title` to the `proposalTab` label | `/the-read` |
30
30
  | `theStateTabId`, `thePlanTabId`, `theProposalTabId`, `theReadTabId` | The four tabs' ids (`"state"`, `"plan"`, and `"proposal"`, unless the document names its own, and `"read"`), so a route compares the open tab without a string of its own. No anchor on the page may share any of them | none |
@@ -100,7 +100,7 @@ No environment variables required. Visit [http://localhost:5173](http://localhos
100
100
 
101
101
  A business's artifacts live in one folder of `atelic-action/artifacts`, named by the business's short name and served at `<short>.atelic.me` as its own Vercel project with the folder as its root directory, one path per artifact. That host is the business's one address with the practice: the website build, when one is previewed, sits on it at `/proto`, proxied from its own project ([DEPLOY.md](DEPLOY.md), The Website Build Under /proto). Cut it from this one with `git subtree add --prefix=<short> https://github.com/atelic-action/artifact.git main`, run in `artifacts`. A cut is a site, not the package, so it then takes the package from npm instead of carrying its source: delete `src/documents/` and `tst/documents/`, give `package.json` the folder's own name and drop the package's fields (`version`, `files`, `exports`, `sideEffects`, `peerDependencies`), and run `bun add @atelic-action/artifact`. The routes and content already import the documents by the package's name, so nothing else changes. Nothing is pulled forward from here afterward: a document reaches the folder with `bun update @atelic-action/artifact`, and everything else with logic in it is `@atelic-action/ui`'s and arrives with `bun update @atelic-action/ui` ([CLAUDE.md](CLAUDE.md), What a Cut Takes From Here). Delete the artifacts the engagement does not need (the route, the content module, and the prerender entry), then touch four surfaces:
102
102
 
103
- 1. **Content**, in `src/content/`. One module per artifact: the real read, every number dated and defensible in the room, graded and shaped by the practice's `FOOTPRINT.md` and written to its pitch surface rules (`Brand/voice.md`, Pitch Surfaces 15 to 21). In `the-read.tsx`, `access` says whether anything came from the owner's own consoles and the content test holds it to the host's; print flows the page across as many letter pages as it needs, and `theReadStops` names the header's stops.
103
+ 1. **Content**, in `src/content/`. One module per artifact: the real read, every number dated and defensible in the room, graded and shaped by the practice's `FOOTPRINT.md` and written to its pitch surface rules (`Brand/VOICE.md`, Pitch Surfaces 15 to 21). In `the-read.tsx`, `access` says whether anything came from the owner's own consoles and the content test holds it to the host's; print flows the page across as many letter pages as it needs, and `theReadStops` names the header's stops.
104
104
  2. **Images**, split by what they are. Logos are brand marks and go in `public/brand/` (the recipient's logo, e.g. `public/brand/<name>.svg`), which the access wall leaves open so the header and the login page can draw them. The owner's own screens (the full screenshot for the click through and a tight crop for the column) and the QR for the twin, pointing at the bare host (`qr "https://<short>.atelic.me" > public/images/qr.png` with the `qrcode` package), go in `public/images/`, which the wall holds on a private artifact. A cut made before this split moves its recipient logo from `public/images/` to `public/brand/` and repoints `recipient.logo.src`.
105
105
  3. **Config**, in `src/site.config.ts`. `url` is the host, `access` is `"public"` or `"private"` (private when anything came from the owner's own consoles), `recipient` is the business it was prepared for (with its `logo` under `/brand/`), `sender` is the practice, and `analytics` is the HubSpot loader so an open reports to the CRM, with `identify` naming who each link identifies so the open lands on that person's contact (`bun run reader <email>` mints a reader, sealed so no address ships in the page's script, and prints their link; a private artifact needs nobody listed, because the wall identifies whoever signs in; [DEPLOY.md](DEPLOY.md), Who Opened It).
106
106
  4. **The printed copy**: `bun build`, then `bun run print dist/client public/the-read.pdf`, which prints with every collapsible open and reports the sheet count, or `bun run print dist/client <out.pdf> 1 /report` for the monthly page, which fails if it misses its one sheet. Commit the read's PDF beside the page, and file a dated copy in the client's folder of the practice repo.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atelic-action/artifact",
3
- "version": "6.3.0",
3
+ "version": "6.3.1",
4
4
  "description": "The composed documents the Atelic practice hands or sends a business (the read, the monthly page, the note, the discovery sheet, and the sealed document), built from the pieces in @atelic-action/ui",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -43,10 +43,12 @@ import { isRuns, type ReadTopic, Topic } from "./Topic";
43
43
  * sender and recipient lockup where the header was, and the pointer to the
44
44
  * hosted twin with its QR under the sign off.
45
45
  *
46
- * The head is the same for every business: the dateline, the Sources line
47
- * under it (the public sources, then the private ones, each a link), the
48
- * title (Overview of the business, unless the content sets its own), and
49
- * the lede (the standard sentence, unless the content sets its own).
46
+ * The head is the same for every business: the dateline, the title
47
+ * (Overview of the business, unless the content sets its own), the lede
48
+ * (the standard sentence, unless the content sets its own), and under it
49
+ * the fine print, one row each with its word on the left: the period every
50
+ * reading was read over, and the sources (the public ones, then the
51
+ * private ones, each a link).
50
52
  *
51
53
  * A read may carry up to three documents beside it, each a tab: the state
52
54
  * (the problems, by tier), the plan (the fixes, by tier), and the proposal.
@@ -296,9 +298,9 @@ export interface ReadLabels {
296
298
  overviewTitle?: string;
297
299
  /** The lede the read sets when the content gives none, with `{business}` standing for the business. */
298
300
  overviewLede?: string;
299
- /** The word before the period on the dateline, e.g. "Period". */
301
+ /** The word on the period's row of the fine print, e.g. "Period". */
300
302
  periodLabel?: string;
301
- /** The word that opens the Sources line under the dateline. */
303
+ /** The word on the sources' row of the fine print. */
302
304
  sourcesLabel?: string;
303
305
  /** The word before the public sources on that line. */
304
306
  publicSources?: string;
@@ -372,11 +374,11 @@ export interface TheReadProps {
372
374
  preparedFor: string;
373
375
  /** The ISO date, e.g. "2026-10-16". */
374
376
  date: string;
375
- /** The period every reading on the page is read over, e.g. "2026-08-01 to 2026-10-31"; drawn on the dateline after the date. */
377
+ /** The period every reading on the page is read over, e.g. "2026-08-01 to 2026-10-31"; the first row of the fine print under the lede. */
376
378
  period?: string;
377
379
  /** Two or three sentences under the title; left out, the `overviewLede` label with the business in it. */
378
380
  lede?: ReadParagraph;
379
- /** The sources the read was built from, drawn as a line under the dateline: the public ones, then the private ones. */
381
+ /** The sources the read was built from, a row of the fine print under the lede: the public ones, then the private ones. */
380
382
  sources?: ReadSources;
381
383
  /** The heading over the scorecard, e.g. "The Scorecard". */
382
384
  gistTitle?: string;
@@ -766,38 +768,64 @@ function PlanBody({ part }: { part: PlanPart }) {
766
768
  );
767
769
  }
768
770
 
769
- /** The Sources line under the dateline: the label, the public sources as links, then the private ones when there are any. */
770
- function Sources({ sources, labels }: { sources: ReadSources; labels: ReadLabels }) {
771
+ /**
772
+ * The fine print under the lede: the period and the sources, each a row with
773
+ * its word on the left, and nothing at all when the read sets neither.
774
+ */
775
+ function Meta({
776
+ period,
777
+ sources,
778
+ labels,
779
+ }: {
780
+ period?: string;
781
+ sources?: ReadSources;
782
+ labels: ReadLabels;
783
+ }) {
771
784
  const groups = [
772
785
  {
773
786
  name: "public",
774
787
  label: labels.publicSources ?? readLabels.publicSources,
775
- links: sources.public ?? [],
788
+ links: sources?.public ?? [],
776
789
  },
777
790
  {
778
791
  name: "private",
779
792
  label: labels.privateSources ?? readLabels.privateSources,
780
- links: sources.private ?? [],
793
+ links: sources?.private ?? [],
781
794
  },
782
795
  ].filter((group) => group.links.length > 0);
783
- if (groups.length === 0) return null;
796
+ const shownPeriod = period?.trim();
797
+ if (!shownPeriod && groups.length === 0) return null;
784
798
  return (
785
- <p className="op-meta rd-sources">
786
- <span className="rd-sources-label">{labels.sourcesLabel ?? readLabels.sourcesLabel}</span>
787
- {groups.map((group) => (
788
- <span className="rd-sources-group" key={group.name}>
789
- <b>{group.label}</b>{" "}
790
- {group.links.map((link, index) => (
791
- <span key={`${group.name} ${link.href} ${link.text}`}>
792
- {index > 0 && ", "}
793
- <a href={link.href} {...newTabProps(link.href, true)}>
794
- {link.text}
795
- </a>
796
- </span>
797
- ))}
798
- </span>
799
- ))}
800
- </p>
799
+ <dl className="rd-meta">
800
+ {shownPeriod && (
801
+ <div className="rd-meta-row rd-meta-period">
802
+ <dt>{labels.periodLabel ?? readLabels.periodLabel}</dt>
803
+ <dd>
804
+ <b>{shownPeriod}</b>
805
+ </dd>
806
+ </div>
807
+ )}
808
+ {groups.length > 0 && (
809
+ <div className="rd-meta-row rd-sources">
810
+ <dt>{labels.sourcesLabel ?? readLabels.sourcesLabel}</dt>
811
+ <dd>
812
+ {groups.map((group) => (
813
+ <span className="rd-sources-group" key={group.name}>
814
+ <b>{group.label}</b>{" "}
815
+ {group.links.map((link, index) => (
816
+ <span key={`${group.name} ${link.href} ${link.text}`}>
817
+ {index > 0 && ", "}
818
+ <a href={link.href} {...newTabProps(link.href, true)}>
819
+ {link.text}
820
+ </a>
821
+ </span>
822
+ ))}
823
+ </span>
824
+ ))}
825
+ </dd>
826
+ </div>
827
+ )}
828
+ </dl>
801
829
  );
802
830
  }
803
831
 
@@ -961,20 +989,10 @@ export function TheRead({
961
989
  {" · "}
962
990
  </span>
963
991
  <span className="op-meta-date">{date}</span>
964
- {period?.trim() && (
965
- <>
966
- <span className="op-meta-sep" aria-hidden="true">
967
- {" · "}
968
- </span>
969
- <span className="op-meta-period">
970
- {labels.periodLabel ?? readLabels.periodLabel} <b>{period.trim()}</b>
971
- </span>
972
- </>
973
- )}
974
992
  </p>
975
- {sources && <Sources sources={sources} labels={labels} />}
976
993
  <h1>{shownTitle}</h1>
977
994
  {filled(shownLede) && <Paragraph paragraph={shownLede} className="op-intro rd-lede" />}
995
+ <Meta period={period} sources={sources} labels={labels} />
978
996
  </header>
979
997
  {documents.length > 0 ? (
980
998
  <Tabs
@@ -39,7 +39,7 @@ import type { ReactNode } from "react";
39
39
  * sortable table, the charts, the stat row, the callout, the disclosure);
40
40
  * this file owns only the card around them and the shapes a block's content
41
41
  * is written in. What it says follows the pitch surface rules
42
- * (Brand/voice.md): the trade's term linked to its definition, or plain
42
+ * (Brand/VOICE.md): the trade's term linked to its definition, or plain
43
43
  * words, and no term an owner would have to look up.
44
44
  */
45
45
 
@@ -456,7 +456,7 @@
456
456
  /* ---- the close: sign off, then the person lockup ---- */
457
457
  .atelic-ui .gate-sign {
458
458
  margin: 44px 0 18px;
459
- /* The pitch surface sign off is the script face (voice.md rule 9),
459
+ /* The pitch surface sign off is the script face (VOICE.md rule 9),
460
460
  the same face the read and the monthly page close on, centered
461
461
  on the dark stage. */
462
462
  font-family: var(--font-script);
@@ -886,14 +886,43 @@
886
886
  .atelic-ui .op-meta-date {
887
887
  display: block;
888
888
  }
889
- /* The read's Sources line, under the dateline in its dress: the label,
890
- then the public sources and the private ones, wrapping onto new lines
891
- as the width runs out. */
892
- .atelic-ui .rd-sources {
893
- display: flex;
894
- flex-wrap: wrap;
895
- gap: 2px 14px;
896
- margin: -4px 0 14px;
889
+ /* The read's fine print under the lede, between two rules: the period and
890
+ the sources, each a row with its word on the left in the dateline's
891
+ dress, the public sources and the private ones each on a line of their
892
+ own. */
893
+ .atelic-ui .rd-meta {
894
+ display: grid;
895
+ grid-template-columns: max-content minmax(0, 1fr);
896
+ gap: 8px 18px;
897
+ margin: 20px 0 0;
898
+ padding: 14px 0;
899
+ border-top: 1px solid var(--op-rule);
900
+ border-bottom: 1px solid var(--op-rule);
901
+ font-size: 14.5px;
902
+ line-height: 1.5;
903
+ color: var(--op-ink-soft);
904
+ }
905
+ .atelic-ui .rd-meta-row {
906
+ display: contents;
907
+ }
908
+ .atelic-ui .rd-meta dt {
909
+ margin: 0;
910
+ padding-top: 2px;
911
+ font-family: var(--font-mono);
912
+ font-size: 12.5px;
913
+ letter-spacing: 0.04em;
914
+ color: var(--op-ink-faint);
915
+ }
916
+ .atelic-ui .rd-meta dd {
917
+ margin: 0;
918
+ min-width: 0;
919
+ }
920
+ .atelic-ui .rd-meta b {
921
+ font-weight: 500;
922
+ color: var(--op-ink);
923
+ }
924
+ .atelic-ui .rd-sources-group {
925
+ display: block;
897
926
  }
898
927
  .atelic-ui .rd-sources a {
899
928
  color: inherit;
@@ -2378,9 +2407,12 @@
2378
2407
  .atelic-ui .rd-tabs {
2379
2408
  margin-top: 28px;
2380
2409
  }
2410
+ /* The tab documents run the full width of the column, as the head's lede
2411
+ does; a 68ch measure read as a premature wrap beside it (Forni,
2412
+ 2026-11-03). */
2381
2413
  .atelic-ui .rd-plan-doc-lede {
2382
2414
  margin: 0;
2383
- max-width: 68ch;
2415
+ max-width: none;
2384
2416
  font-size: 16.5px;
2385
2417
  line-height: 1.5;
2386
2418
  color: var(--op-ink-soft);
@@ -2415,14 +2447,14 @@
2415
2447
  .atelic-ui .rd-plan-section > p:not(.rd-plan-timeline),
2416
2448
  .atelic-ui .rd-plan-part > p:not(.rd-plan-timeline) {
2417
2449
  margin: 12px 0 0;
2418
- max-width: 68ch;
2450
+ max-width: none;
2419
2451
  color: var(--op-ink);
2420
2452
  text-wrap: pretty;
2421
2453
  }
2422
2454
  .atelic-ui .rd-plan-list {
2423
2455
  margin: 12px 0 0;
2424
2456
  padding-left: 1.4em;
2425
- max-width: 68ch;
2457
+ max-width: none;
2426
2458
  color: var(--op-ink);
2427
2459
  }
2428
2460
  .atelic-ui ul.rd-plan-list {