@thecms/cli 0.0.0-stage → 0.20.1-dev.122

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.
@@ -0,0 +1,160 @@
1
+ # Standard · The brand (`brand/tokens.json`) {#standard-brand}
2
+
3
+ A site's graphic values are written **once**, in `brand/tokens.json`: colours, typefaces and roles, space scale, layout, logo, motion, the tone of voice. Everything else (the site's variables, the roles' classes, the motion's CSS, the icons, the data of the design board's Manual, Motion and Voice pages) is generated from there, never by hand.
4
+ The person reads and approves the brand on the **board** (the project's one artifact of the Design type, [method](../method.md) §5 Design): its Manual, Motion and Voice pages. The project keeps the sources for the machines only — never a manual or a tone written as an md or html file.
5
+ **Where** a value is used is the site's component's choice ([`components.md`](components.md)); **which** value, the brand's.
6
+
7
+ > Generation and checking are the CLI's `thecms brand` command (dossier CLI); `thecms create` starts from neutral values. The values in the examples below are made up: every site has its own.
8
+
9
+ ---
10
+
11
+ ## 1. The schema {#brand-schema}
12
+
13
+ ```json
14
+ {
15
+ "$about": "The site's graphic values, the only place where they are written.",
16
+ "name": "…",
17
+ "color": { "<name>": { "hex": "#…", "cmyk": null, "pantone": null, "use": "…" } },
18
+ "font": { "family": "…", "fallback": "system-ui, sans-serif", "from": "google", "source": "…", "weights": [], "widths": [] },
19
+ "fonts": { "<name>": { "family": "…", "fallback": "…", "from": "system", "use": "…" } },
20
+ "type": { "<role>": { "font": "<a name of fonts>", "size": "…", "leading": "…", "weight": 0, "width": "…", "tracking": "…", "case": "…", "use": "…", "example": "…" } },
21
+ "space": { "scale": [0, 0, 0, 0, 0, 0, 0, 0, 0], "use": "…" },
22
+ "layout": { "max": 0, "phone": 0, "widths": { "480": "its use" }, "line": 0, "columns": {}, "gutter": {}, "block": {}, "first": {} },
23
+ "logo": { "units": [0, 0], "clearSpace": {}, "minWidth": {}, "iconBackground": "<a colour's name>", "files": { "light": "logo/…", "dark": "logo/…" }, "accent": "<a colour's name>" },
24
+ "manual": { "locale": "en" },
25
+ "motion": { "enter": "rise", "distance": "s5", "length": 50, "stagger": 10, "duration": 200, "use": "…" },
26
+ "voice": { "use": "…", "rules": [{ "rule": "…", "example": "…", "avoid": "…" }] }
27
+ }
28
+ ```
29
+
30
+ Every entry carries its **`use`**: what it is for, in one sentence. The Manual page reports it. `$about` is a note for whoever reads the JSON: the Manual page does not show it. `name` is the brand's name: the Manual page's title. `manual.locale` is the Manual page's language, `"it"` or `"en"` (absent: `"en"`): the CLI holds its labels in both, none are written in the token.
31
+
32
+ ### Colours (`color`) {#brand-colours}
33
+
34
+ One colour per name, with its use:
35
+
36
+ | Key | What |
37
+ |---|---|
38
+ | `hex` | the colour on screen |
39
+ | `cmyk`, `pantone` | for print; `null` until the printer gives them |
40
+ | `use` | where it is used (texts, backgrounds, lines, links, active item…) |
41
+
42
+ A colour meant for dark backgrounds is declared as a colour of its own (for example `highlight-on-dark`), not as a computed variant.
43
+
44
+ ### Typeface (`font`) {#brand-typeface}
45
+
46
+ | Key | What |
47
+ |---|---|
48
+ | `family` | the typeface, free and served by the site (`next/font`) |
49
+ | `fallback` | the system fallback |
50
+ | `from` | **where it comes from**, never guessed from the name: `google` (Google Fonts, `next/font/google` with `family` as it is there), `local` (the files in `brand/`, `next/font/local`), `system` (the system's typeface: nothing to serve) |
51
+ | `files` | only with `from: "local"`: the typeface's files, from `brand/` — `[{ "path": "fonts/Face-Regular.woff2", "weight": 400, "style": "normal" }]` (`.woff2`, `.woff`, `.ttf`, `.otf`); `thecms brand` copies them into `app/fonts/` |
52
+ | `source` | where it comes from and under which licence, in words (the Manual page reports it) |
53
+ | `weights`, `widths` | the weights and widths loaded: only those the roles use. From Google, a typeface **with** `widths` is variable: it is loaded whole with the width axis (`axes: ["wdth"]`, no `weight`: Next refuses the two together); **without** `widths` its `weights` are loaded (required) |
54
+
55
+ ### Further typefaces (`fonts`) {#brand-fonts}
56
+
57
+ Optional. `font` stays **the site's typeface**; `fonts` declares another one for a text role (for example a monospace for code), by name: lowercase letters, digits and hyphens, not ending in `-face`. Each entry has the shape and the checks of `font` (`family`, `fallback`, `from`, `files`, `source`, `weights`, `widths`) and a `use`, optional: what it is for, in one sentence; the Manual page reports it with its origin. A role names it with `font`. `thecms brand` generates `--font-<name>` in `tokens.css` and `font-family: var(--font-<name>)` in the role's class; a `google` or `local` entry is served like the site's (in `app/font.ts`, its files in `app/fonts/<name>/`), a `system` one serves nothing. The layout still uses `font.variable`, which then holds the classes of every served typeface: a site already created needs no change.
58
+
59
+ ### Type roles (`type`) {#brand-type-roles}
60
+
61
+ Each text style is a complete **role**; the site uses it with the class `t-<role>`.
62
+
63
+ | Key | What |
64
+ |---|---|
65
+ | `size` | the size; when it changes with the phone, a `clamp()` (for example `"clamp(28px, 3vw, 44px)"`) |
66
+ | `leading` | the leading |
67
+ | `weight` | the weight |
68
+ | `width` | the typeface's width (`font-stretch`) |
69
+ | `tracking` | the tracking (`normal` or in `em`) |
70
+ | `case` | `none` or `uppercase` |
71
+ | `font` | the name of an entry of `fonts`: the role's own typeface (optional: without, the site's `font`); a name that `fonts` does not declare stops `thecms brand` |
72
+ | `use` | where it is used (a block's title, the running text, the notes…) |
73
+ | `example` | the words with which the Manual page shows the role (optional: without, the brand's `name`) |
74
+
75
+ The roles' names are the brand's choice (for example `display`, `h1`, `h2`, `h3`, `intro`, `body`, `caption`); components choose the role, never a style.
76
+
77
+ ### Space (`space`) {#brand-space}
78
+
79
+ `scale`: **9 steps** in px, from the smallest to the largest (for example `[4, 8, 12, 16, 24, 32, 48, 64, 96]`), called `s1` … `s9`. Every margin, padding and distance between elements is a step of the scale; below the first step it is not space but optical correction.
80
+
81
+ ### Layout (`layout`) {#brand-layout}
82
+
83
+ | Key | What |
84
+ |---|---|
85
+ | `max` | the content's maximum width, in px |
86
+ | `phone` | the phone's breakpoint, in px: the one `tokens.css` changes its values at |
87
+ | `widths` | optional: further widths `site.css` may use in a media query, `{ "480": "its use" }` — whole px, each with its `use`, a required text (what changes at that width); the Manual page lists them. Without `widths` the phone's is the only one |
88
+ | `line` | the line's thickness, in px |
89
+ | `columns` | the grid: `count`, `gap` (a step, `"s5"`), `use` |
90
+ | `gutter` | the margin at the page's sides: `wide`, `phone` (steps), `use` |
91
+ | `block` | the space above and below inside every block: `wide`, `phone` (steps), `use` |
92
+ | `first` | the space above the page's first block, under the menu: `wide`, `phone` (steps), `use` |
93
+
94
+ The layout's spaces are **steps of the scale** (`"s6"`), not numbers: changing the scale moves them all together. `widths` changes nothing in `tokens.css`, which changes its values at the phone's width only: they are for the component's own rules in `site.css`.
95
+
96
+ ### Logo (`logo`) {#brand-logo}
97
+
98
+ | Key | What |
99
+ |---|---|
100
+ | `units` | the drawing's width and height, in the vector's units |
101
+ | `clearSpace` | the clear space: `units`, `approved`, `use` |
102
+ | `minWidth` | the minimum width: `screenPx`, `printMm`, `approved`, `use` |
103
+
104
+ `approved: false` marks a value proposed and not yet approved: the Manual page shows it "to approve". The logo's files (faithful, refined, negative) sit in `brand/logo/` — SVG sources, nothing else beside them; **`files`** tells the Manual page which to show: `light` (for light backgrounds) and `dark` (for dark backgrounds), paths from `brand/` (`.svg`, `.png`, `.jpg`, `.webp`). Without `files` the Manual page shows only the symbol and `thecms brand` says so. **`accent`** is the colour on which the Manual page shows the logo (optional: without, the most saturated). **`brand/logo/symbol.svg`** is the icons' symbol: a square SVG (`viewBox="0 0 N N"`), required. `iconBackground` is the name of the colour under the icon that cannot be transparent (`apple-icon.png`); without, white.
105
+
106
+ ### Motion (`motion`) {#brand-motion}
107
+
108
+ How the blocks enter, **once for the whole site**: every block the same way, tied to the scroll (the effect progresses as the page scrolls, one block after another), in CSS only — no script.
109
+
110
+ | Key | What |
111
+ |---|---|
112
+ | `enter` | `rise` (each text and picture rises a little and turns on), `fade` (it turns on), `none` (nothing moves) |
113
+ | `distance` | with `rise`, how far below its place a text or a picture starts: a step of the scale (`"s5"`) |
114
+ | `length` | the share of its block's entry a text or a picture takes to come in, in % (10–100) |
115
+ | `stagger` | the share each following element of the block waits, in % (0–30, three steps at most) |
116
+ | `duration` | the brand's default length for a transition that answers a gesture, in ms (50–600, default 200): `--motion-duration`, the value to start from |
117
+ | `use` | what it is for, in one sentence |
118
+
119
+ `length + 3 × stagger` stays within 100: every text and picture is in place once its block is **wholly on screen** — a page taken at a tall window (a search engine's snapshot) shows them all, below the fold too. What moves are a block's **texts** (the elements with a role's class, `t-<role>`) and **pictures** (`img`, `picture`, `video`, `svg`); inside a carousel they only turn on, without rising. **Nothing moves**: with reduced motion in the system, in a browser without scroll-driven animations (the page still and complete), in the page's first block; a **ground** never moves, never fades — a block's background, a card's, a frame's, anything that carries a background colour (while the site uses this motion — `enter` is `rise` or `fade` — a text or a picture never carries one: the background goes on the element around it; with `enter: none` or no motion it is not checked). This is the **default** for a site without its own: a site may animate as its template wants, as long as reduced motion turns it off, the page is complete without it and it never changes the layout ([components](components.md) §14). The carousel (`.rail`) scrolls only sideways, with snap, as tall as its content: no motion makes it scroll up and down. **`duration`** (ms, 50–600; 200 when absent) is the brand's **default** length for a short transition that **answers a gesture** — a panel or menu opening, a dropdown, a hover or focus state: `tokens.css` carries it as `--motion-duration`, the value to start from (`transition: opacity var(--motion-duration)`); it is documented, not enforced — a transition with its own number is not refused. It is not an entry and it never starts by itself. A new brand starts with a short rise (`rise`, `s5`, 50, 10), shown on the board's **Motion** page to approve; without `motion` the site is still.
120
+
121
+ ### Tone of voice (`voice`) {#brand-voice}
122
+
123
+ How the brand writes, as **rules**: the board's Voice page shows them, the texts follow them.
124
+
125
+ | Key | What |
126
+ |---|---|
127
+ | `use` | what the tone is for, in one sentence (optional) |
128
+ | `rules` | the rules, each `{ "rule": "…", "example": "…", "avoid": "…" }`: the rule in one sentence, a sentence that follows it, a sentence it refuses (`example` and `avoid` optional) |
129
+
130
+ **Variants per site** (`sites`, by the application's slug): a site may replace declared colours (its accent), the values of declared type roles (`sites.<slug>.type`: the same role names, only the keys that change — `size`, `leading`, `weight`, `width`, `tracking`, `case`, `font`; a component never branches on the site) and its logo files (`sites.<slug>.logo`: `light` and `dark`, like `logo.files`), and choose its mode, light or dark; everything else is the brand's, written once.
131
+
132
+ ---
133
+
134
+ ## 2. What `thecms brand` generates from it {#brand-generated}
135
+
136
+ | Generates | What it holds |
137
+ |---|---|
138
+ | `app/tokens.css` | one variable for every colour (`--<name>`), the scale's steps (`--s1` … `--s9`), the typeface (`--font`, on the `body`; `--font-<name>` for each entry of `fonts`), a block `[data-site="<slug>"]` for each variant (its colours and its mode), and, when a site declares its own logo, `--logo` (the logo for the site's ground, inlined) with the class `.brand-logo` — one element, `<span class="brand-logo" role="img" aria-label="…">`, draws the logo of the site on the request, with no read of the site — the layout's variables (`--max`, `--gutter`, `--block`, `--first`, `--line`, `--columns`, `--column-gap`) and, below the phone's breakpoint, **only the values that change**, one class `.t-<role>` for every role (and, for a site that changes a role's values, `[data-site="<slug>"] .t-<role>` with only those values), the carousel (`.rail`: a row that scrolls sideways with snap, as tall as its content) and the motion of `motion` (each block's view timeline, its texts' and pictures' entry, inside `@media (prefers-reduced-motion: no-preference)` and `@supports (animation-timeline: view())`). Generated: you change `tokens.json`, never this file |
139
+ | `app/font.ts` | the typeface from `font.from`: `next/font/google`, `next/font/local` (with the files copied into `app/fonts/`), or nothing for the system's, for the site's typeface and for each served entry of `fonts`; the layout uses `font.variable` |
140
+ | `app/brand.ts` | the name and the colours, for the files that do not read the CSS (`manifest.ts`) |
141
+ | `ios/Theme.swift`, Android's `ui/theme/Theme.kt` | only when the project has its native app ([`mobile.md`](mobile.md)), where its code is: the colours, the scale's steps, the type roles at the phone's size, the typeface and the phone's layout, for SwiftUI and Jetpack Compose. Generated, like `tokens.css` |
142
+ | `frontend/lib/app-links.json` | only with an app: its identities from `app.thecms.json`, for the site's `/.well-known` files (`/app/*` only) |
143
+ | the icons in `public/` | from `brand/logo/symbol.svg`, without external tools: `favicon.ico` (16, 32 and 48 px in one file), `icon.svg`, `apple-icon.png` (180, on `iconBackground`), `icon-192.png`, `icon-512.png` |
144
+
145
+ Every generated file carries on its first line "Generated by `thecms brand`" and is written only if it changes: the same tokens give the same files, byte for byte.
146
+
147
+ **The Manual, Motion and Voice pages are data, not files**: `thecms brand` (and the MCP's `design_content`) gives them from `tokens.json` for the board — the Manual: logo (the files of `logo.files` on light, on dark and on the accent colour; the symbol at 16, 32 and 64 px; clear space, minimum size), colours (HEX, RGB, CMYK, Pantone, contrast on white and on black, their use), typeface (its origin in words — "Google Fonts", "files in brand/", "system" —, every weight and every width) and every further typeface with its origin and its use, roles each with its `example`, its `use` and its typeface, scale, layout (with its declared widths and their use), the icons; the Motion: the rule in words, its values, what never moves, and the exact CSS of `tokens.css` for a live example (blocks that enter as the person scrolls) — without `motion` the default, proposed; the Voice: each rule with its example. The values not approved are marked "da approvare" / "to approve", the labels in the language of `manual.locale`; name, typeface and texts from `tokens.json`, never in the code. Nobody writes them by hand: they cannot drift from the tokens.
148
+
149
+ First it **validates** `tokens.json` (this schema: colours `#rrggbb`, 9 increasing steps, `"sN"` steps in the layout, `from` and the files that exist) and then it **checks** `site.css` ([`components.md`](components.md) section 15): every space is a step of the scale, no text style written by hand (only the roles; a component may change the weight of a state; `inherit` — `font: inherit` on a button — and `currentColor` are resets, not styles), no colour outside the tokens, no breakpoint other than the phone's (or a width of `layout.widths`). Outside the brand, the command stops (`file:line what`) and the build does not start.
150
+
151
+ ---
152
+
153
+ ## 3. From a hand-made generator {#brand-migration}
154
+
155
+ A site that already had its own script for the variables moves to `thecms brand` like this:
156
+
157
+ 1. **The values in `tokens.json`**: every number, colour and typeface of the script becomes an entry of the schema (section 1); the layout's spaces as steps of the scale (`"s6"`), not as pixels.
158
+ 2. **The variables' names are the product's**, always: `--<colour>`, `--s1` … `--s9`, `--font`, `--max`, `--gutter`, `--block`, `--first`, `--line`, `--columns`, `--column-gap`, and the classes `.t-<role>`. In `site.css` the old names are replaced with these — for example `--space-4` → `--s4`, `--page-margin` → `--gutter`, `--section-padding` → `--block`, `--border-width` → `--line`, `--content-width` → `--max`, `--font-body` → `--font` — and a text style written in the sheet with the class of its role.
159
+ 3. **The phone**: below the breakpoint `tokens.css` writes only the values that change; a value equal on a wide screen and on the phone is not repeated.
160
+ 4. **The script is removed**, with the files it generated (`tokens.css`, the typeface written in the layout): from here on `thecms brand` generates them, with the first line "Generated by `thecms brand`". Then `thecms brand` and `thecms check` must pass.
@@ -0,0 +1,183 @@
1
+ # Standard · How a component is written {#standard-components}
2
+
3
+ Every block the CMS delivers is a `set · shape` (for example `product · grid`: the products' set in the grid shape): the site has one component for every shape.
4
+ These rules are the way the component is written, so that the result is the same on every site. The application around it is in [`app.md`](app.md), the graphic values in [`brand.md`](brand.md).
5
+
6
+ > The checks of section 15 are `thecms check`, `thecms brand` and `thecms verify` (the `thecms` CLI). The generic functions named here (`blk`, `orderOf`, `loadingOf`, `image`, `hrefOf`, `urlOf`, `homeOf`, `markdown`, `firstParagraph`, `dateParts`, `filterLabel`, `optionLabel`) are already in `@thecms/next/kit`; `CmsBlocks`, `cmsContext`, `CmsBlockProps`, `CmsComponents` in `@thecms/next`.
7
+
8
+ ---
9
+
10
+ ## 1. The contract {#components-contract}
11
+
12
+ - **It receives only `{ block }`** (`CmsBlockProps`). It reads everything else from `cmsContext()`: `page`, `locale`, `path`, `alternates`, `site`, `t()` for the messages, `g()` for the globals, `isFirst(block)`.
13
+ - **It is a server component.** The interactive parts (the phone's menu, a gallery, "read more", a map) are client components in `client.tsx` and receive **plain data** as props, never the context nor the block.
14
+ - **It draws what it receives**, it does not look for it: no request to the CMS from a component. What the block needs (linked records, fields, filters) is asked for in the set's settings on the workspace.
15
+ - **An empty field draws nothing**: neither a label nor an empty container.
16
+ - **It does not ask which site it is on**: a site's own look comes from its brand's values (tokens), a really different drawing is another shape of the set — never a branch on `site.app`.
17
+ - **Names**: one file per set (`product.tsx`), one function per shape `<Set><Shape>` (`ProductGrid`, `EventCard`); a container has one component for the whole set.
18
+
19
+ ## 2. The map {#components-map}
20
+
21
+ `components/blocks/index.ts` nests like the CMS: set → shape → component, given to `createNextCms({ publicKey, components })`.
22
+
23
+ ```ts
24
+ export const components = {
25
+ product: { grid: ProductGrid },
26
+ article: { list: ArticleList, card: ArticleCard },
27
+ event: { card: EventCard },
28
+ sidebar: SidebarContainer,
29
+ } satisfies CmsComponents;
30
+
31
+ /** The shapes without the block space: set → shapes ("*" = every shape of the set). */
32
+ export const grounds: Record<string, string[]> = { sidebar: ["*"] };
33
+ ```
34
+
35
+ A component on its own (`sidebar: SidebarContainer`) draws every shape of its set: that is the case of a container.
36
+ A shape without a component draws nothing: every shape of the workspace must have one, and every component must have its shape (`thecms verify` checks it). Beside the map, `grounds` lists the shapes that have no block space.
37
+
38
+ ## 3. Anatomy of a block {#components-anatomy}
39
+
40
+ ```tsx
41
+ /** product·grid: the products in squares with a title and the first paragraph. */
42
+ export function ProductGrid({ block }: CmsBlockProps) {
43
+ const ctx = cmsContext();
44
+ const items = block.items ?? [];
45
+ return (
46
+ <section className={blk(block)}> {/* 1. root: the block's space */}
47
+ <div className="wrap"> {/* 2. width and side margins */}
48
+ <BlockHead block={block} /> {/* 3. the block's header */}
49
+ <div className="prod-grid"> {/* 4. the body, with the block's prefix */}
50
+ {items.map((p) => (
51
+ <Link key={String(p._id)} className="card" href={…}>
52
+ <h3 className="t-h3">{String(p.title ?? "")}</h3>
53
+ {!!p.description && <p className="t-caption">{firstParagraph(p.description as string)}</p>}
54
+ </Link>
55
+ ))}
56
+ </div>
57
+ </div>
58
+ </section>
59
+ );
60
+ }
61
+ ```
62
+
63
+ 1. **Root** `<section className={blk(block)}>` (or `<article>` for a content of its own): it carries the block's space and the first-block state.
64
+ 2. **`.wrap`**: the brand's maximum width and side margin. A full-width block (an opening with a photo) does not use it.
65
+ 3. **`BlockHead`**: the block's header — the placement's title (`block.title`) and the placement's values that go with it (a "see all" link with its label, an introduction). **One component alone draws the header**: no block rewrites its own. The names of those values are the shape's fields, declared on the set: what holds only in that place of the page (the title, an introduction, "see all"), never the contents — those are records.
66
+ 4. **Body**: a container with the block's class prefix (`.prod-grid` for product·grid); inside, short classes referred to that prefix (`.prod-grid .card`).
67
+
68
+ ## 4. Headings {#components-headings}
69
+
70
+ - The title of the page's **first block** is the H1 (`ctx.isFirst(block)`), those of the other blocks H2; inside a block you go down one level (H3, H4).
71
+ - The **level** depends on the position, the **look** on the role: an H2 can have the role `t-h1`. Never choose the tag for its look.
72
+ - A content of its own (an article on its page) has its H1 from the record, with the brand's role for long titles.
73
+
74
+ ## 5. Space {#components-space}
75
+
76
+ - **A block's space sits inside the block**: the same above and below (`.blk`), never an outer margin. Two blocks touch: in the editor their outlines coincide.
77
+ - **The first block** under the menu has less of it (`.blk.first`). Blocks with a background of their own (a full-width opening, menu, footer) have none: the space belongs to the next block.
78
+ - **Inside the block** every margin, padding, distance is a step of the scale: `var(--s1)` … `var(--s9)`. Below the first step it is optical correction.
79
+ - **Choices by position are made by the component**, not by the CMS: `orderOf(block)` gives the place among the blocks of the same shape (e.g. a shape with an image beside the text alternates the image's side from one block to the next, the first on the left).
80
+ - **The words that introduce a list** are in the list's block (its header), not in a block of their own: otherwise two block spaces add up.
81
+
82
+ ## 6. Text and colour {#components-text-and-colour}
83
+
84
+ - **Every text has a role**, with its class `t-<role>`: the roles are those of `tokens.json` (for example `t-h1`, `t-h2`, `t-body`, `t-caption`). The role gives size (on the phone too), leading, weight, width, tracking, uppercase.
85
+ - **The component's CSS writes no text styles**; it may change only the weight of a state (the active item).
86
+ - A long text that arrives as markup (a body, a biography) takes the role on its container (`<div className="prose t-body">`): the paragraphs inherit it.
87
+ - **Colours only from the tokens** (`var(--<colour>)`, with the names of `tokens.json`); transparencies of white on dark backgrounds allowed.
88
+ - **No `style={{…}}`**: every look sits in `site.css`.
89
+
90
+ ## 7. Interface texts {#components-interface-texts}
91
+
92
+ - **No text in the code**: labels, buttons, empty states, `aria-label` come from `ctx.t("area.key")` (the workspace's messages, in every language).
93
+ - Keys by area (for example `nav.*`, `common.*`, `error.*`, `notFound.*`, one per area of the site).
94
+ - **Filter labels**: `filters.<field>.label` and `filters.<field>.<value>` (the kit's `filterLabel`, `optionLabel`), with the CMS's text as fallback.
95
+ - Graphic symbols (`→`, `↓`, `·`) are allowed, with `aria-hidden` if decorative.
96
+ - **The site's name** from the application's *Site name* (`cms.site().name`, `ctx.site.name`); the **organisation's other data** (VAT number, copyright, links) from the globals with `ctx.g()`.
97
+
98
+ ## 8. Data {#components-data}
99
+
100
+ - **Records**: `block.items`; a field is read by its name and converted explicitly (`String(s.title ?? "")`, `!!s.description`).
101
+ - **Long texts**: the kit's `markdown()` (paragraphs, headings, lists, bold, italic, links; everything escaped first).
102
+ - **Dates**: the kit's `dateParts(iso, format, timeZone)`: the parts of a date a design shows (day, short month, month, month and year, year, whole date) in a language's format and in a time zone; format and zone are the site's to say (`lib/site.ts`), usually the format of the page's language.
103
+ - **Order** decided by the editor (`position`) and asked for in the placement: the component does not reorder.
104
+ - **What holds only for this site** (a behaviour that depends on that site's schemas) sits in `lib/site.ts`, not in the kit.
105
+
106
+ ## 9. Media {#components-media}
107
+
108
+ - An image goes through the kit's `image()`: absolute URL, `srcSet`, `alt` in the page's language, sizes.
109
+ - `<img src srcSet sizes alt loading={loadingOf(block, i)}>`: `sizes` describes the real width in the layout. Only the **first image of the first block** loads at once (the first on screen: the page preloads it); all the others are `lazy`, so the page does not preload photos further down.
110
+ - **The alt comes from the asset** and says what the photo shows; in blocks with a caption, the caption is the alt (`aria-hidden`, so it is not read twice).
111
+ - An image's frame has the brand's colour for frames as background and a fixed ratio (`aspect-ratio`): no jumps while it loads.
112
+
113
+ ## 10. Links and lists {#components-links-and-lists}
114
+
115
+ - A link field opens with `hrefOf()`; a record's address with `urlOf()`; a language's home with `homeOf()`.
116
+ - **Filters and pages**: the links the CMS gives the list (`?f=<token>` in the site's address), with `scroll={false}`; the active item with `aria-current`. The state sits in the address.
117
+ - **Empty list**: a message (`ctx.t(…)`) and the link to clear the filters.
118
+ - **"See all"** only from the block's header.
119
+
120
+ ## 11. Containers {#components-containers}
121
+
122
+ A container is one component for the set: it draws its slots with `<CmsBlocks blocks={block.slots?.[name] ?? []} />` and adds only what is its own (for example the logo, a legal line from the globals). A container has no shapes and no fields: what a page shows is a record, in a set's block, in a slot.
123
+
124
+ ## 12. Accessibility {#components-accessibility}
125
+
126
+ - One `<nav>` for menu, breadcrumb and filters, with `aria-label` from the messages.
127
+ - `aria-current` on the active item (page, language, filter); `aria-expanded` / `aria-pressed` on the controls.
128
+ - Visible focus on links and buttons (`:focus-visible`, accent colour).
129
+ - `lang` on a text in another language.
130
+
131
+ ## 13. SEO, structured data, privacy {#components-seo}
132
+
133
+ - Metadata from the library (`cms.metadata`); the site adds only what it knows of the domain.
134
+ - **Structured data** built from the data in `lib/jsonld.ts` (organisation, website, people, products or services, articles with their real dates, breadcrumb: the schema.org types the site's domain asks for), rendered by `<StructuredData />`.
135
+ - **No third parties without consent**: a map loads on click; the typeface is served by the site.
136
+
137
+ ## 14. The style sheet (`site.css`) {#components-style-sheet}
138
+
139
+ - At the top `@import "./tokens.css"`; then the bases (document, `.wrap`, `.blk`, links and buttons, the block's header, pagination); then **one section per set · shape**, in the map's order, titled `/* ---------- set · shape ---------- */`.
140
+ - **One short prefix per block**, one per shape (`.prod-grid` for product·grid, `.art-list` for article·list); no selectors that leave the block.
141
+ - **One breakpoint only**, the phone's from `tokens.json` (`@media (max-width: <breakpoint>px)`), inside the block's section. When the brand declares `layout.widths`, those widths too: `max-width` or `min-width` of a declared width or of the phone's, and `min-width` one above (`min-width: 481px` beside `max-width: 480px`); any other width is flagged.
142
+ - Only the tokens' values: spaces `var(--sN)`, colours, the brand's line; shape measurements (the bar's height, an icon's side) allowed.
143
+ - **Motion.** A site may animate as its template wants, with three obligations. Keyframes, loops, transitions with their own durations, animation libraries, `requestAnimationFrame`, `element.animate()`, scroll listeners, a script writing CSS variables on scroll: all allowed. `thecms check` asks only what has a real reason:
144
+ - *Reduced motion turns everything off* (accessibility). In `site.css` every `animation` / `animation-name`, every scroll or view timeline and every `transition` of anything that moves or hides (anything but colours, shadows, outlines) is either inside `@media (prefers-reduced-motion: no-preference)`, or switched off for that same selector inside `@media (prefers-reduced-motion: reduce)` (`animation: none`, `transition: none` or `display: none`). In the code a file that calls `requestAnimationFrame`, `.animate(…)`, `addEventListener("scroll" | "wheel", …)` or imports an animation library says what reduced motion does: it mentions `prefers-reduced-motion` (or calls `useReducedMotion`) itself or in a module it imports. Example, allowed: `.badge { animation: pulse 2s infinite; }` with `@media (prefers-reduced-motion: reduce) { .badge { animation: none; } }`; refused: the same rule alone.
145
+ - *The page is complete without motion* (no JavaScript, a search engine's snapshot at a tall window: every text and picture visible and in place). In `site.css` a text (`t-<role>`) or a picture (`img`, `picture`, `video`, `svg`) is never `opacity: 0` or `visibility: hidden` by default: it is hidden only behind a condition a script sets (`html[data-mv] .t-title { opacity: 0 }`, `.is-in`) or a state. Example, refused: `.t-title { opacity: 0; }`. The site's pipeline proves it on the built site, with a real browser (`thecms check` reads code, it never draws a page): after `npm run build`, start the site and run `thecms verify --render --site-url <address>` before the deploy step. It opens each address verify reads in headless Chromium at 1440×10000 — JavaScript off, then reduced motion with JavaScript on — and fails on any text or picture of a block that is transparent (its own opacity or an ancestor's), `visibility: hidden`, off the viewport horizontally (a carousel's slides excepted) or of no size with its content; an element that is not drawn at all (a closed menu) is no problem. The CLI carries no browser: the pipeline installs it.
146
+ ```yaml
147
+ - run: npm i --no-save playwright-core && npx playwright-core install --with-deps chromium
148
+ - run: npm start & npx wait-on http://localhost:3000
149
+ - run: npx thecms verify --render --site-url http://localhost:3000 # with THECMS_KEY, an API key of the workspace
150
+ ```
151
+ - *No jumps*: motion never changes the layout — what moves never pushes another element and the page's height never changes while scrolling. In `site.css` no `@keyframes` of a layout property (`width`, `height`, `min-` / `max-` of both, `block-size`, `inline-size`, `margin*`, `padding*`, `top`, `right`, `bottom`, `left`, `inset*`, `border-width*`, `font-size`, `line-height`, `letter-spacing`, `grid-template-*`, `flex-basis`, `gap`) and no `transition` of one — except a height (`height`, `max-height`, `block-size`, `max-block-size`, `grid-template-rows`: a panel that opens by sliding). In the code a scroll or wheel listener, or a `requestAnimationFrame` callback, writes no layout property on `.style` (`el.style.marginTop = …`, `style.setProperty("margin-top", …)`, `Object.assign(el.style, { height })`); custom properties (`--q`), `transform`, `opacity`, `translate`, `scale`, `filter` are free.
152
+ - The brand's own motion (`motion` in `tokens.json`, generated in `tokens.css`: texts and pictures rise, grounds and the first block stay still) is the default for a site without its own. `motion.duration` (200 ms when absent, `--motion-duration` in `tokens.css`) is the brand's default length for a gesture's transition: the value to start from, not enforced. While the site uses the brand's motion (`motion.enter` is `rise` or `fade`) a text or a picture never carries a background of its own — a ground never moves, it goes on the element around them; with `enter: none` or no motion this is not checked. A carousel is a `.rail` (from `tokens.css`): it scrolls only sideways, with snap, as tall as its content; any other container may scroll up and down.
153
+
154
+ ## 15. Checks {#components-checks}
155
+
156
+ Before every build (`prebuild`) `thecms brand` and `thecms check` run; `thecms verify` checks the workspace. They stop if:
157
+
158
+ | Check | Where | Who |
159
+ |---|---|---|
160
+ | a space is not a step of the scale | `site.css` | `thecms brand` |
161
+ | a text style is written by hand | `site.css` | `thecms brand` |
162
+ | a breakpoint other than the phone's or a width of `layout.widths` | `site.css` | `thecms brand` |
163
+ | a hexadecimal colour outside the tokens | `site.css` | `thecms brand` |
164
+ | a hexadecimal colour in a string | components, `app/`, `lib/` | `thecms check` |
165
+ | motion that stays on with reduced motion: an `animation`, a scroll or view timeline, or a transition of anything but colours, shadows, outlines (a filter) neither inside `prefers-reduced-motion: no-preference` nor switched off for the same selector in `prefers-reduced-motion: reduce`; a text or a picture invisible by default (`opacity: 0`, `visibility: hidden` with no condition a script sets); a `@keyframes` or a transition of a layout property (a height may be transitioned); a carousel snapping up and down | `site.css` | `thecms check` |
166
+ | a carousel that scrolls up and down (`scroll-snap-type` on y), or anything that scrolls sideways without hiding its vertical axis (`overflow-y: hidden`), or a carousel with a fixed height that cuts its content; `.rail` redrawn | `site.css` | `thecms check` |
167
+ | a text or a picture with a background (only while the brand's motion is on, `motion.enter` rise or fade): in `site.css`, or an element of the code with a class that has one | `site.css`, components, `app/` | `thecms check` |
168
+ | a text or a picture of a page that is not visible and in place with JavaScript off or with reduced motion, on the built site | each address `thecms verify` reads | `thecms verify --render --site-url …` in the site's pipeline, before the deploy |
169
+ | a file that calls `requestAnimationFrame`, `.animate(…)`, a scroll or wheel listener or imports an animation library without saying what reduced motion does (`prefers-reduced-motion` or `useReducedMotion`, in it or in a module it imports); a layout property written on `.style` from a scroll or wheel listener or a `requestAnimationFrame` callback | components, `app/` | `thecms check` |
170
+ | a container (a component the map gives to a whole set) that reads `block.values`, `block.items` or `block.shape`, directly, destructured, through an alias or in a function of its file it passes the block to | components | `thecms check` |
171
+ | an `<img>` without `srcSet` and `sizes` (the picture goes through `image()`) | components, `app/` | `thecms check` |
172
+ | a block that advances by itself: `setInterval`, or a `setTimeout` of a second or more scheduled in a `useEffect` | components, `app/` | `thecms check` |
173
+ | a selector of a block's section that names a class with another block's prefix | `site.css` | `thecms check` |
174
+ | a read of `site.app` (from `cmsContext()`, `cms.site()` or `ctx.site`, destructured or through an alias), in a component or a function of the site: the branch on which site it is on (`data-site={site.app}`, the brand's attribute, is not) | components, `app/`, `lib/` | `thecms check` |
175
+ | a `style={{…}}` | components, `app/` | `thecms check` |
176
+ | a text written in the JSX or in `aria-label`, `alt`, `title`, `placeholder` (except `global-error.tsx`) | components, `app/` | `thecms check` |
177
+ | a block header outside `BlockHead` | components | `thecms check` |
178
+ | the root of a component of the map does not use `blk()`, if the shape is not in `grounds` | components | `thecms check` |
179
+ | a shape of the workspace without a component, a component without a shape, a block delivered by a page without a component | workspace, map, public pages | `thecms verify` |
180
+
181
+ `thecms check` reads the code with TypeScript's parser: no regular expressions on the code. It follows the root through a `const` too and inside a fragment (the first element), in both branches of a condition; a `return null` draws nothing. `grounds` (in `components/blocks/index.ts`: `{ set: [shapes] }`, `"*"` for the whole set, or else a list of `"set.shape"` and of set names — a name on its own holds for the whole set, like a container) lists the shapes without block space; written in another form it is an error on `components/blocks/index.ts`, never ignored: with a background of their own (menu, a full-width opening, a container) or inside a container's slot. The header outside `BlockHead` is `block.title` or the class `blk-head` in another file of `components/`. A colour in a string: hexadecimal with 3, 4, 6, 8 digits, `rgb()`, `hsl()`. A motion, a carousel, a ground: each problem names the block — in `site.css` the section it is in (`/* ---------- set · shape ---------- */`), in the code the set · shape the file draws. Generated files (first line "Generated by `thecms brand`") are not checked.
182
+
183
+ `thecms brand` on `site.css`: a space (`margin`, `padding`, `gap`) in `px`, `rem`, `em` (1rem = 16px) is a step of the scale; `0`, `auto` and the tokens' variables always; below the first step it is optical correction. None of `font`, `font-size`, `line-height`, `letter-spacing`, `text-transform`, `font-family`, `font-stretch`, `font-variant`, `word-spacing`: only `font-weight` may change. Colours: no hexadecimal, `rgb()` / `hsl()` only for white with transparency. One breakpoint only: `@media (max-width: <phone>px)` — with `layout.widths`, also `max-width` / `min-width` of a declared width, and `min-width` one above one (the phone's too).
@@ -0,0 +1,144 @@
1
+ # Standard · The native app of the site's users {#standard-mobile}
2
+
3
+ How the app of a site's users is made, beside the site ([method](../method.md) §4, a site and its app): one way only.
4
+ The site is the showcase ([`app.md`](app.md)); the app is where the users act — they sign in, keep their own data, interact with others' contents. The graphic values are the same `brand/tokens.json` ([`brand.md`](brand.md)).
5
+
6
+ > **Already there:** the platform's HTTP API (its OpenAPI at `/v1/_openapi.json`); `thecms brand` generates the app's themes and the site's `lib/app-links.json`; the standard's site serves the `/.well-known` files; `thecms verify` (rule `app`) checks the app against the workspace. The app itself is the client's code, written by the agent following this text: there is no starter and no native SDK of theCMS.
7
+
8
+ ---
9
+
10
+ ## 1. Principle {#mobile-principle}
11
+
12
+ **Native, no server, no secret.** iOS in Swift / SwiftUI, Android in Kotlin / Jetpack Compose — never a cross-platform framework (React Native, Expo, Flutter). The app holds only its application's public key. A user writes as themselves, through the role the workspace gives to the users of this application: their own records and files, others' read only under a condition, never a publish. What the role does not allow, the platform refuses — the app never decides what a user may do.
13
+
14
+ It follows:
15
+ - no API key, no personal token in the app: it is extracted from the package;
16
+ - the session in the phone's keychain (Keychain, Android Keystore), never in plain storage;
17
+ - interacting with others' contents is a record of the user's own linked to theirs (a like, a comment, a follow);
18
+ - no graphic value written by hand: the themes are generated from `brand/tokens.json`;
19
+ - no interface text in the code: the messages of the site's answer.
20
+
21
+ ---
22
+
23
+ ## 2. The files {#mobile-files}
24
+
25
+ Key: **generated** = by a command, never by hand · **app** = the app's code, written for it.
26
+
27
+ ```
28
+ app.thecms.json app what the app declares (below): read by thecms brand and thecms verify
29
+ ios/ app the Xcode project (Swift / SwiftUI)
30
+ Theme.swift generated colours, text roles, spaces, the typeface (thecms brand)
31
+ android/ app the Gradle project (Kotlin / Jetpack Compose)
32
+ app/src/main/java/<package>/ui/theme/
33
+ Theme.kt generated the same values for Compose (thecms brand)
34
+ frontend/ the site
35
+ app/.well-known/apple-app-site-association/route.ts the iOS app's links: /app/* only
36
+ app/.well-known/assetlinks.json/route.ts the Android app's links
37
+ lib/app-links.json generated from app.thecms.json (thecms brand)
38
+ ```
39
+
40
+ `app.thecms.json` — what the tools cannot read in Swift or Kotlin, the app declares:
41
+
42
+ ```json
43
+ {
44
+ "publicKey": "pk_…",
45
+ "ios": { "bundleId": "app.example", "teamId": "" },
46
+ "android": { "package": "app.example", "sha256": [] },
47
+ "schemas": { "writes": ["profile", "like"], "reads": ["post"] },
48
+ "files": true
49
+ }
50
+ ```
51
+
52
+ | Key | What |
53
+ |---|---|
54
+ | `publicKey` | the app's application public key (not a secret) |
55
+ | `ios` | the bundle identifier and the Apple team id (from the Apple developer account) |
56
+ | `android` | the package and the SHA-256 fingerprints of the signing certificate |
57
+ | `schemas` | the schemas the app writes (its users' own records) and reads |
58
+ | `files` | the app uploads files (for a file field of a schema it writes) |
59
+
60
+ ---
61
+
62
+ ## 3. Two applications {#mobile-applications}
63
+
64
+ The workspace holds two applications, each with its public key:
65
+
66
+ | | The site | The app |
67
+ |---|---|---|
68
+ | Pages | yes: every address of the site | none |
69
+ | Sitemap, SEO | yes | no |
70
+ | The users' role | none: its readers do not write | yes: what the users read and write |
71
+ | Site URL | the site's address (`https://example.com`) | the site's address followed by `/app` (`https://example.com/app`) |
72
+
73
+ The app's Site URL is where the platform sends the user back after the sign-in (`…/app/api/cms/signed-in?code=…`): the site declares `/app/*` as the app's links (`.well-known`), so that address reopens the app and never a page of the site.
74
+
75
+ ---
76
+
77
+ ## 4. Talking to theCMS. {#mobile-api}
78
+
79
+ The app calls the HTTP API (`https://<the platform>/v1/…`), JSON in and out:
80
+
81
+ | What | Call |
82
+ |---|---|
83
+ | Whose key | `GET /_sites/{publicKey}` → `{ workspace, app }` (kept a minute) |
84
+ | The site's answer | `GET /{workspace}/views/{app}/site` → the sign-in methods (`signIn`), the Site URL (`url`), languages, globals, messages |
85
+ | Records | `/{workspace}/records/{schema}` (list, one, create, change, delete) with `Authorization: Bearer <access token>` |
86
+ | Files | `POST /{workspace}/assets` (a form: `file`, `for` = `{ "schema", "field" }`), or in pieces with tus at `/{workspace}/assets/uploads` |
87
+
88
+ Every refusal is JSON with a code and words (`error.code`, `error.message`); the app shows the words. A record that would repeat what never repeats is a 409 (`details.reason: "unique"`).
89
+
90
+ ---
91
+
92
+ ## 5. Sign-in and session {#mobile-sign-in}
93
+
94
+ 1. The buttons are the workspace's sign-in methods that are on: `signIn` of the site's answer (`{ key, label, icon }`).
95
+ 2. On a tap the app makes a PKCE pair — 32 random bytes as the verifier (base64url), its SHA-256 as the challenge (base64url) — and opens `GET /{workspace}/readers/sign-in/{key}?app={publicKey}&return=/&challenge={challenge}` in the **system's sign-in window**: `ASWebAuthenticationSession` on iOS, Custom Tabs on Android — never a web view of the app.
96
+ 3. The provider sends the user back to the app's Site URL with a code (60 s, once): `…/app/api/cms/signed-in?code=…` — the operating system hands the address to the app (the `.well-known` links); a refusal comes back as `…/app/?signin=<reason>`.
97
+ 4. The app exchanges it with the verifier: `POST /{workspace}/readers/sessions { code, app: publicKey, verifier }` → `{ accessToken, expiresIn, refreshToken, user }` — an hour of access, a refresh token valid 60 days from its last use.
98
+ 5. Both go in the keychain; every call carries the access token, renewed before it expires with `POST /{workspace}/readers/sessions/refresh { refreshToken, app: publicKey }`. A renewal refused (401: the user revoked or forgotten, the app's users without a role) signs the user out.
99
+ 6. The sign-out deletes both from the keychain.
100
+
101
+ ---
102
+
103
+ ## 6. Writing as the user {#mobile-writes}
104
+
105
+ - **Their own**: what a user creates carries them as its author (`_createdBy`); they change and delete only that.
106
+ - **Others' contents**: read only where the role says (published, a field such as `visibility = public`, their own); interacting is a record of their own that links to the other's — a like (`post`), a comment (`post`, `text`), a follow (a relation to `_reader`).
107
+ - **Once only**: the schema says what never repeats (`unique`: one like per user and post, one profile per user); a second one is refused (409) and the app says it in words.
108
+ - **People** are a relation to `_reader` with the schema of their profile (`readerProfile`): the app shows the profile, never an email.
109
+ - **Files**: only for a file field the role writes (`for`), within the field's rule and the user's own limits.
110
+ - Every schema the app writes or reads is in `app.thecms.json`: `thecms verify` checks them against the role.
111
+
112
+ ---
113
+
114
+ ## 7. The themes {#mobile-theme}
115
+
116
+ `thecms brand` writes the app's themes from `brand/tokens.json`, beside the site's `tokens.css`, where the app's code is (`ios/`, `android/`):
117
+
118
+ | | `ios/Theme.swift` | Android `Theme.kt` |
119
+ |---|---|---|
120
+ | Colours | `Theme.Colors.<name>` (`Color`) | `ThemeColors.<name>` (`Color`) |
121
+ | Spaces | `Theme.Space.s1` … `s9` (points) | `ThemeSpace.s1` … `s9` (`dp`) |
122
+ | Text roles | `Theme.Text.<role>` (size, weight, leading, tracking, case) at the phone's size | `ThemeText.<role>` (`TextStyle`) |
123
+ | Typeface | `Theme.font` (its family) | `ThemeFont.family` |
124
+ | Layout | `Theme.Layout.gutter`, `block`, `first`, `line` | `ThemeLayout.…` |
125
+
126
+ The phone's size of a role is the smallest of a `clamp()` (1 rem = 16). The brand's typeface goes into the app's bundle (from `brand/` or its source). A screen uses the theme's names, never a value. Generated: you change `tokens.json`, never these files.
127
+
128
+ ---
129
+
130
+ ## 8. Checks {#mobile-checks}
131
+
132
+ `thecms verify` (rule `app`) compares the workspace with the project: the app's application (by the key of `app.thecms.json`) at the site's address + `/app`, with the users' role and no pages, the site's without a role; a sign-in method on; the site answers its `/.well-known` files with the app's identities and `/app/*` only; every schema of `app.thecms.json` is in the role; the themes are what the tokens give. The app builds in Xcode and in Gradle; a sign-in on a phone or a simulator comes back to the app.
133
+
134
+ ---
135
+
136
+ ## 9. What not to do {#mobile-never}
137
+
138
+ - A cross-platform framework (React Native, Expo, Flutter): the app is native.
139
+ - A secret key or a personal token in the app: it is extracted from the package.
140
+ - A server for the app, or the site's server writing for it: the users write as themselves.
141
+ - A sign-in in a web view of the app: the system's window only.
142
+ - A write on another user's record to interact with it: a record of one's own, linked.
143
+ - An email shown to identify a person: their profile.
144
+ - A colour, a size or a text written in a screen.
package/package.json CHANGED
@@ -1,6 +1,52 @@
1
1
  {
2
2
  "name": "@thecms/cli",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "0.20.1-dev.122",
4
+ "license": "UNLICENSED",
5
+ "description": "theCMS. command line: the standard's starter, checks, brand, the method's docs, sign-in with a personal token",
6
+ "type": "module",
7
+ "main": "./dist/index.js",
8
+ "types": "./dist/index.d.ts",
9
+ "exports": {
10
+ ".": {
11
+ "types": "./dist/index.d.ts",
12
+ "import": "./dist/index.js"
13
+ }
14
+ },
15
+ "bin": {
16
+ "thecms": "./dist/cli.js"
17
+ },
18
+ "files": [
19
+ "dist"
20
+ ],
21
+ "engines": {
22
+ "node": ">=20"
23
+ },
24
+ "repository": {
25
+ "type": "git",
26
+ "url": "git+https://github.com/toninospiderman123/thecms.git",
27
+ "directory": "packages/cli"
28
+ },
29
+ "publishConfig": {
30
+ "access": "public"
31
+ },
32
+ "scripts": {
33
+ "build": "rm -rf dist && tsup && bun scripts/copy-method.ts",
34
+ "typecheck": "tsc --noEmit -p ."
35
+ },
36
+ "dependencies": {
37
+ "@modelcontextprotocol/sdk": "1.32.1",
38
+ "@resvg/resvg-wasm": "2.6.2",
39
+ "@thecms/sdk": "0.20.1-dev.122",
40
+ "libpg-query": "18.2.0",
41
+ "zod": "4.6.5"
42
+ },
43
+ "peerDependencies": {
44
+ "typescript": ">=5"
45
+ },
46
+ "devDependencies": {
47
+ "@types/node": "^22.0.0",
48
+ "tsup": "8.5.0",
49
+ "@types/bun": "1.3.11",
50
+ "typescript": "~5.9.3"
51
+ }
52
+ }
package/README.md DELETED
@@ -1,3 +0,0 @@
1
- # Temporary Holding Version
2
-
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.