@atelic-action/artifact 5.2.0 → 6.0.0

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
@@ -2,12 +2,12 @@
2
2
 
3
3
  The documents the practice hands or sends a business, as a published package and as the site a business's folder is cut from. This repo is two things at once:
4
4
 
5
- - **The package**, `@atelic-action/artifact` on npm: the composed documents (the read, the monthly page, the note, the first call sheet, and the sealed document), each with its prop types and its default labels, and the stylesheet they wear. It ships `src/documents/` and nothing else, as source, the way `@atelic-action/ui` does, and depends on that package for every piece a document is built from.
5
+ - **The package**, `@atelic-action/artifact` on npm: the composed documents (the read, the monthly page, the note, the discovery sheet, and the sealed document), each with its prop types and its default labels, and the stylesheet they wear. It ships `src/documents/` and nothing else, as source, the way `@atelic-action/ui` does, and depends on that package for every piece a document is built from.
6
6
  - **The seed**: the routes, the content stubs, the config, the stub files the host finds by path, and the tests a new folder of `atelic-action/artifacts` is cut from, and the template site that shows every document on fictional content.
7
7
 
8
8
  Three layers, each a version the next depends on (ATE-671): `@atelic-action/ui` holds the pieces, this package holds the documents built from them, and each business's folder holds only its content, routes, and config. A document fix reaches a folder by bumping this package; a piece fix by bumping ui here, then this package in the folder.
9
9
 
10
- Five artifacts live in the template site: the **read** at `/the-read`, the graded document a business gets from the practice, built from one snapshot at one of two depths (a prospect's, from public readings alone; a customer's, from their own consoles as well), a web page first with its printed copy derived from it, the grades explained by cause, and the plan for the work set in a tab of its own ahead of the read; the **proposal** at `/proposal`, sealed into the page and opened by the reader's own email address; the **monthly page** at `/report`, what an Operate client gets each month on one letter sheet; the **note** at `/notes`, the first touch for a business whose site publishes no email address, set as a short page; and the **first call sheet** at `/first-call`, the desk's page for the first call with a business that booked off a cold first touch, used to guide the call and not sent for now, written so it could be shared with them later. The bare host sends a reader to the read. Every artifact prerenders to static HTML, stays out of every index, and carries the practice's brand by default.
10
+ Five artifacts live in the template site: the **read** at `/the-read`, the graded document a business gets from the practice, built from one snapshot at one of two depths (a prospect's, from public readings alone; a customer's, from their own consoles as well), a web page first with its printed copy derived from it, the grades explained by cause, and the plan for the work set in a tab of its own ahead of the read; the **proposal** at `/proposal`, sealed into the page and opened by the reader's own email address; the **monthly page** at `/report`, what an Operate client gets each month on one letter sheet; the **note** at `/notes`, the first touch for a business whose site publishes no email address, set as a short page; and the **discovery sheet** at `/discovery`, the desk's page for the first conversation with a business, used to guide the call and not sent for now, written so it could be shared with them later. The bare host sends a reader to the read. Every artifact prerenders to static HTML, stays out of every index, and carries the practice's brand by default.
11
11
 
12
12
  The method behind them (the seven sections, the four grades from A to D, the rented line, what moved, and when an artifact is private) is the practice repo's `FOOTPRINT.md`. This repo builds to it and never restates it.
13
13
 
@@ -34,10 +34,10 @@ Every export of the package, all from the one entry, `@atelic-action/artifact`.
34
34
  | `ReportLead`, `ReportLeads`, `ReportGradeRow` | The shapes a monthly page's content is written in | none |
35
35
  | `Note`, `NoteProps` | The first touch set as a page: the opener, two lanes of findings, where the work would start, the close | `/notes` |
36
36
  | `NoteLane`, `NoteFinding`, `NoteStart`, `NoteStep`, `NoteClose`, `NoteLink`, `NoteParagraph` | The shapes a note's content is written in | none |
37
- | `FirstCall`, `FirstCallProps` | The desk's sheet for the first call with a business that booked off a cold first touch: the brief with a picture beside it, the open as numbered steps, one unit per topic (a TL;DR, then show, ask, and move, each show line linked live with its picture opening the full capture), and the close, which always ends on who else decides. Not sent for now, but open like the host and shareable later, so it carries no desk instruction; it lives beside the read | `/first-call` |
38
- | `firstCallLabels`, `FirstCallLabels` | The fixed words the sheet sets (Show, Ask, Move, the close's who else decides beat, and the rest), each overridable through `labels` | `/first-call` |
39
- | `firstCallSectionIds` | The ids the page takes for itself (the shell's `main`, the brief, the open, the close), which a unit's `id` must not repeat; the content test checks it | none |
40
- | `FirstCallFact`, `FirstCallStep`, `FirstCallShow`, `FirstCallUnit`, `FirstCallParagraph` | The shapes a first call sheet's content is written in, all plain data, so a skill writes the sheet as JSON | none |
37
+ | `Discovery`, `DiscoveryProps` | The desk's sheet for the first conversation with a business: the brief with a picture beside it, the open as numbered steps, one unit per topic (a TL;DR, then show, ask, and move, each show line linked live with its picture opening the full capture), and the close, which always ends on who else decides. Not sent for now, but open like the host and shareable later, so it carries no desk instruction; it lives beside the read | `/discovery` |
38
+ | `discoveryLabels`, `DiscoveryLabels` | The fixed words the sheet sets (Show, Ask, Move, the close's who else decides beat, and the rest), each overridable through `labels` | `/discovery` |
39
+ | `discoverySectionIds` | The ids the page takes for itself (the shell's `main`, the brief, the open, the close), which a unit's `id` must not repeat; the content test checks it | none |
40
+ | `DiscoveryFact`, `DiscoveryStep`, `DiscoveryShow`, `DiscoveryUnit`, `DiscoveryParagraph` | The shapes a discovery sheet's content is written in, all plain data, so a skill writes the sheet as JSON | none |
41
41
  | `Gate`, `GateProps`, `GatePayload`, `GatePerson` | The sealed document, opened in the browser by the reader's own address, and the payload it opens | `/proposal` |
42
42
  | `normalizeEmail` | How a typed address becomes the key a payload opens with; the sealing command mirrors it | none |
43
43
  | `documents.css` | The documents' styles, at `@atelic-action/artifact/styles/documents.css` | every route |
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@atelic-action/artifact",
3
- "version": "5.2.0",
4
- "description": "The composed documents the Atelic practice hands or sends a business (the read, the monthly page, the note, the first call sheet, and the sealed document), built from the pieces in @atelic-action/ui",
3
+ "version": "6.0.0",
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",
7
7
  "repository": {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  type ArtifactParagraph,
3
- ArtifactAnchor as FirstCallAnchor,
3
+ ArtifactAnchor as DiscoveryAnchor,
4
4
  Runs,
5
5
  Shot,
6
6
  type WriteupShot,
@@ -11,10 +11,10 @@ import { ArrowRight, MessageCircleQuestion } from "lucide-react";
11
11
  import type { ReactNode } from "react";
12
12
 
13
13
  /**
14
- * The first call sheet: what the practice scans during the first call with a
15
- * business that booked off a cold first touch. The brief, the open, then one
16
- * unit per topic, each a show, an ask, and a move, then the close. It lives
17
- * at `<short>.atelic.me/first-call` beside the read it walks.
14
+ * The discovery sheet: what the practice scans during the first conversation
15
+ * with a business. The brief, the open, then one unit per topic, each a show,
16
+ * an ask, and a move, then the close. It lives at
17
+ * `<short>.atelic.me/discovery` beside the read it walks.
18
18
  *
19
19
  * The practice uses it to guide the call and does not send it for now, but
20
20
  * it is open like the rest of the host and may be shared with the business
@@ -29,24 +29,24 @@ import type { ReactNode } from "react";
29
29
  * It is the read's sibling and wears its classes: the
30
30
  * read's topic and findings blocks for the brief and each unit's show,
31
31
  * the read's numbered steps for the open and the close. Its own few rules
32
- * sit under fc- in documents.css. Every prop is plain data, so a skill can
32
+ * sit under ds- in documents.css. Every prop is plain data, so a skill can
33
33
  * write a sheet as JSON. The close always ends on who else decides, the one
34
34
  * beat every first call carries, set from the labels so no sheet can drop it.
35
35
  */
36
36
 
37
37
  /** A paragraph: a plain string, or runs of text and links in order. */
38
- export type FirstCallParagraph = ArtifactParagraph;
38
+ export type DiscoveryParagraph = ArtifactParagraph;
39
39
 
40
40
  /** One line of the brief: who, how they booked, the listing, the read. */
41
- export interface FirstCallFact {
41
+ export interface DiscoveryFact {
42
42
  label: string;
43
- body: FirstCallParagraph;
43
+ body: DiscoveryParagraph;
44
44
  /** Sets the fact apart on a tinted ground, for the one that matters most. */
45
45
  box?: boolean;
46
46
  }
47
47
 
48
48
  /** One numbered step of the open or the close. */
49
- export interface FirstCallStep {
49
+ export interface DiscoveryStep {
50
50
  /** The step, set in bold. */
51
51
  label: string;
52
52
  /** The words under it, e.g. the question as it would be asked. */
@@ -54,7 +54,7 @@ export interface FirstCallStep {
54
54
  }
55
55
 
56
56
  /** One thing to show: the line, where it opens live, and the picture of it. */
57
- export interface FirstCallShow {
57
+ export interface DiscoveryShow {
58
58
  text: string;
59
59
  /** Where to open it on the call: in a new tab for an http(s) link, in place otherwise. */
60
60
  href?: string;
@@ -68,22 +68,22 @@ export interface FirstCallShow {
68
68
  }
69
69
 
70
70
  /** The ids the page takes for itself (the shell's main, the sheet's sections), which no unit's id may repeat. */
71
- export const firstCallSectionIds = ["main", "brief", "open", "close"] as const;
71
+ export const discoverySectionIds = ["main", "brief", "open", "close"] as const;
72
72
 
73
73
  /** One topic: what we show, the questions it raises, the moves it leads to. */
74
- export interface FirstCallUnit {
75
- /** The anchor the unit chips jump to: lowercase, unique, and none of firstCallSectionIds. */
74
+ export interface DiscoveryUnit {
75
+ /** The anchor the unit chips jump to: lowercase, unique, and none of discoverySectionIds. */
76
76
  id: string;
77
77
  title: string;
78
78
  /** The unit in one breath, under its heading. */
79
79
  tldr: string;
80
- show: FirstCallShow[];
80
+ show: DiscoveryShow[];
81
81
  ask: string[];
82
82
  move: string[];
83
83
  }
84
84
 
85
85
  /** The fixed words the sheet sets, each overridable through `labels`. */
86
- export interface FirstCallLabels {
86
+ export interface DiscoveryLabels {
87
87
  preparedFor: string;
88
88
  brief: string;
89
89
  open: string;
@@ -97,7 +97,7 @@ export interface FirstCallLabels {
97
97
  whoElse: string;
98
98
  }
99
99
 
100
- export const firstCallLabels: FirstCallLabels = {
100
+ export const discoveryLabels: DiscoveryLabels = {
101
101
  preparedFor: "Prepared for",
102
102
  brief: "The Brief",
103
103
  open: "Open",
@@ -110,21 +110,21 @@ export const firstCallLabels: FirstCallLabels = {
110
110
  whoElse: "Who else decides, and should they join the next call?",
111
111
  };
112
112
 
113
- export interface FirstCallProps {
113
+ export interface DiscoveryProps {
114
114
  title: string;
115
115
  /** Who the call is with, set in the dateline: "Prepared for <person, business>". */
116
116
  preparedFor: string;
117
117
  /** The when line: the date, the 24 hour time, the place, the minutes booked. */
118
118
  when: string;
119
- brief: FirstCallFact[];
119
+ brief: DiscoveryFact[];
120
120
  /** A picture beside the brief, e.g. the business's map card. */
121
121
  briefShot?: WriteupShot;
122
- open: FirstCallStep[];
122
+ open: DiscoveryStep[];
123
123
  /** One per topic, as many as the call has. */
124
- units: FirstCallUnit[];
124
+ units: DiscoveryUnit[];
125
125
  /** The close's steps; who else decides follows them. */
126
- close: FirstCallStep[];
127
- labels?: Partial<FirstCallLabels>;
126
+ close: DiscoveryStep[];
127
+ labels?: Partial<DiscoveryLabels>;
128
128
  }
129
129
 
130
130
  /** The unit's number as the sheet sets it: 01, 02, and on. */
@@ -133,7 +133,7 @@ function unitNumber(index: number): string {
133
133
  }
134
134
 
135
135
  /** The read's numbered steps: the open and the close. */
136
- function Steps({ steps }: { steps: FirstCallStep[] }) {
136
+ function Steps({ steps }: { steps: DiscoveryStep[] }) {
137
137
  return (
138
138
  <ol className="rd-steps">
139
139
  {steps.map((step, i) => (
@@ -183,16 +183,16 @@ function Unit({
183
183
  index,
184
184
  labels,
185
185
  }: {
186
- unit: FirstCallUnit;
186
+ unit: DiscoveryUnit;
187
187
  index: number;
188
- labels: FirstCallLabels;
188
+ labels: DiscoveryLabels;
189
189
  }) {
190
190
  const shows = unit.show.map((line, i) => (
191
191
  <Callout
192
192
  tone={line.broken ? "bad" : "warn"}
193
193
  toneLabel={line.broken ? undefined : labels.show}
194
194
  title={
195
- line.href ? <FirstCallAnchor href={line.href}>{line.text}</FirstCallAnchor> : line.text
195
+ line.href ? <DiscoveryAnchor href={line.href}>{line.text}</DiscoveryAnchor> : line.text
196
196
  }
197
197
  // biome-ignore lint/suspicious/noArrayIndexKey: show lines are static content in a fixed order
198
198
  key={i}
@@ -203,7 +203,7 @@ function Unit({
203
203
  <>
204
204
  <div className="op-part" id={unit.id}>
205
205
  <h2>
206
- <span className="fc-unit-no">{unitNumber(index)}</span> {unit.title}
206
+ <span className="ds-unit-no">{unitNumber(index)}</span> {unit.title}
207
207
  </h2>
208
208
  </div>
209
209
  <section className="op-topic">
@@ -215,13 +215,13 @@ function Unit({
215
215
  </header>
216
216
  <div className="op-blocks">
217
217
  {shows.length > 0 && (
218
- <div className="op-block rd-beat fc-show">
218
+ <div className="op-block rd-beat ds-show">
219
219
  <h4>{labels.show}</h4>
220
220
  <Findings items={shows} shots={shots} />
221
221
  </div>
222
222
  )}
223
223
  {unit.ask.length > 0 && (
224
- <div className="op-block rd-beat fc-ask">
224
+ <div className="op-block rd-beat ds-ask">
225
225
  <h4>{labels.ask}</h4>
226
226
  <IconList
227
227
  icon={<MessageCircleQuestion size={16} />}
@@ -230,7 +230,7 @@ function Unit({
230
230
  </div>
231
231
  )}
232
232
  {unit.move.length > 0 && (
233
- <div className="op-block rd-beat fc-move">
233
+ <div className="op-block rd-beat ds-move">
234
234
  <h4>{labels.move}</h4>
235
235
  <IconList
236
236
  icon={<ArrowRight size={16} strokeWidth={2.5} />}
@@ -244,7 +244,7 @@ function Unit({
244
244
  );
245
245
  }
246
246
 
247
- export function FirstCall({
247
+ export function Discovery({
248
248
  title,
249
249
  preparedFor,
250
250
  when,
@@ -254,8 +254,8 @@ export function FirstCall({
254
254
  units,
255
255
  close,
256
256
  labels: overrides,
257
- }: FirstCallProps) {
258
- const labels = { ...firstCallLabels, ...overrides };
257
+ }: DiscoveryProps) {
258
+ const labels = { ...discoveryLabels, ...overrides };
259
259
  const facts = brief.map((fact, i) => (
260
260
  <Callout
261
261
  tone="info"
@@ -268,7 +268,7 @@ export function FirstCall({
268
268
  </Callout>
269
269
  ));
270
270
  return (
271
- <div className="op rd fc">
271
+ <div className="op rd ds">
272
272
  <article className="op-doc rd-doc">
273
273
  <header className="op-head">
274
274
  <p className="op-meta">
@@ -302,7 +302,7 @@ export function FirstCall({
302
302
  )}
303
303
  {/* Outside the read's plan section, whose link rule would restyle every chip as a prose link. */}
304
304
  {units.length > 1 && (
305
- <nav className="fc-units" aria-label={labels.unitsNav}>
305
+ <nav className="ds-units" aria-label={labels.unitsNav}>
306
306
  {units.map((unit, i) => (
307
307
  <Chip dot href={`#${unit.id}`} key={unit.id}>
308
308
  {i + 1}. {unit.title}
@@ -1,10 +1,10 @@
1
1
  /* The composed documents in this package: the sealed document stage (Gate),
2
2
  the monthly page (Report), the read (TheRead, with its section card in
3
- Topic), the note (Note), and the first call sheet (FirstCall). Moved from
3
+ Topic), the note (Note), and the discovery sheet (Discovery). Moved from
4
4
  @atelic-action/ui's styles/artifact.css with the documents (ATE-671), in
5
5
  the order that sheet bundled them, which the two @page rules depend on:
6
6
  the later one wins, and the read's is the later one. The note and the
7
- first call sheet follow the read and set no @page, so the read's stays
7
+ discovery sheet follow the read and set no @page, so the read's stays
8
8
  the one that wins.
9
9
 
10
10
  The pieces the documents share stay in @atelic-action/ui: the grade chip
@@ -2564,39 +2564,39 @@
2564
2564
  }
2565
2565
  }
2566
2566
 
2567
- /* ---- the first call sheet (FirstCall): the read's topic and findings
2567
+ /* ---- the discovery sheet (Discovery): the read's topic and findings
2568
2568
  blocks and the read's steps carry it; these are the few rules it adds
2569
2569
  (the Claude Design cut of 2026-10-23) ---- */
2570
- .atelic-ui .fc-units {
2570
+ .atelic-ui .ds-units {
2571
2571
  display: flex;
2572
2572
  flex-wrap: wrap;
2573
2573
  gap: 8px;
2574
2574
  margin-top: 18px;
2575
2575
  }
2576
2576
  /* A long unit title wraps rather than pushing the phone page sideways. */
2577
- .atelic-ui .fc-units .chip {
2577
+ .atelic-ui .ds-units .chip {
2578
2578
  white-space: normal;
2579
2579
  }
2580
- .atelic-ui .fc-unit-no {
2580
+ .atelic-ui .ds-unit-no {
2581
2581
  font-family: var(--font-mono);
2582
2582
  font-weight: 500;
2583
2583
  color: var(--primary);
2584
2584
  margin-right: 6px;
2585
2585
  }
2586
- .atelic-ui .fc .fc-ask .icon-list {
2586
+ .atelic-ui .ds .ds-ask .icon-list {
2587
2587
  --tone: var(--ink);
2588
2588
  }
2589
- .atelic-ui .fc .fc-move .icon-list {
2589
+ .atelic-ui .ds .ds-move .icon-list {
2590
2590
  --tone: var(--primary);
2591
2591
  }
2592
2592
  /* A show line links to where it opens live, but reads as a plain callout:
2593
2593
  the link takes the ink and shows itself on hover. */
2594
- .atelic-ui .fc-show .callout-title a {
2594
+ .atelic-ui .ds-show .callout-title a {
2595
2595
  color: inherit;
2596
2596
  text-decoration: none;
2597
2597
  }
2598
- .atelic-ui .fc-show .callout-title a:hover,
2599
- .atelic-ui .fc-show .callout-title a:focus-visible {
2598
+ .atelic-ui .ds-show .callout-title a:hover,
2599
+ .atelic-ui .ds-show .callout-title a:focus-visible {
2600
2600
  color: var(--primary);
2601
2601
  text-decoration: underline;
2602
2602
  }
@@ -5,7 +5,7 @@
5
5
  * depends on and never copies, and wears the styles in ./documents.css.
6
6
  */
7
7
  export type { WriteupGrade, WriteupPerson, WriteupShot } from "@atelic-action/ui/artifact";
8
- export * from "./FirstCall";
8
+ export * from "./Discovery";
9
9
  export { Gate, type GatePayload, type GatePerson, type GateProps, normalizeEmail } from "./Gate";
10
10
  export * from "./Note";
11
11
  export * from "./Report";