@ucm-kit/cli 0.1.17 → 0.1.18

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.
Files changed (2) hide show
  1. package/README.md +9 -9
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -10,8 +10,8 @@ Figma plugin and committed next to the component's code. This command reads
10
10
  those files and says whether they still hold together.
11
11
 
12
12
  ```sh
13
- npx --yes @ucm-kit/cli@0.1.17 init
14
- npx --yes @ucm-kit/cli@0.1.17 check --report ci-report.md
13
+ npx --yes @ucm-kit/cli@0.1.18 init
14
+ npx --yes @ucm-kit/cli@0.1.18 check --report ci-report.md
15
15
  ```
16
16
 
17
17
  Pin an exact version, without `^`. A range would let npx pick a build nobody
@@ -56,7 +56,7 @@ not write React states its own extension here, rather than carrying a `.tsx`
56
56
  that was wrong the day it was installed:
57
57
 
58
58
  ```sh
59
- npx --yes @ucm-kit/cli@0.1.17 init --components Sources/DesignSystem --implementation '{dir}/{id}.swift'
59
+ npx --yes @ucm-kit/cli@0.1.18 init --components Sources/DesignSystem --implementation '{dir}/{id}.swift'
60
60
  ```
61
61
 
62
62
  All three act only on a first install: `ucm init` never overwrites an existing
@@ -115,8 +115,8 @@ file that exists but is malformed is refused on both sides.
115
115
  ```
116
116
 
117
117
  `implementation` is a pattern with two tokens, `{dir}` for the contract's folder
118
- and `{id}` for its identifier. The default shown here is a default, not an
119
- assumption: replace it with your own.
118
+ and `{id}` for its identifier. Replace it with the pattern your repository
119
+ uses.
120
120
 
121
121
  No version number goes in this file. Which contract versions can be read belongs
122
122
  to the installed package, and repeating it here would create a second authority
@@ -139,7 +139,7 @@ fix it.**
139
139
  | Composition: every nested component has its own contract, the lists agree, no cycles | Blocks |
140
140
  | Typography tokens have the expected type | Blocks |
141
141
  | Every `{token.path}` cited exists in the token file | Warns |
142
- | The code exposes the props the contract declares | Warns |
142
+ | The code exposes the props the contract declares, with a stack adapter installed | Warns |
143
143
 
144
144
  A gap with the code needs a developer, so it warns and lets the merge through. A
145
145
  token removed from the design system does too: tokens are the source of truth,
@@ -150,7 +150,7 @@ is an allowed state, not an error.
150
150
 
151
151
  **So is a repository with no contract at all.** Right after `ucm init` nothing
152
152
  has been exported: there is no token file, and usually no contract folder. From
153
- `0.1.9` on, `ucm check` returns 0 there and reports what to do next. The number
153
+ `0.1.10` on, `ucm check` returns 0 there and reports what to do next. The number
154
154
  of contracts decides: with one or more, a missing token file blocks the merge
155
155
  again, because those contracts cite tokens nobody can resolve.
156
156
 
@@ -160,8 +160,8 @@ when an orchestrator passes it in through `UCM_ECHECS_DE_TESTS`.
160
160
 
161
161
  ## Optional stack adapters
162
162
 
163
- The six checks above read contracts and tokens only, so they work whatever the
164
- repository is written in. Comparing a contract to real code needs to read that
163
+ The first five checks above read contracts and tokens only, so they work
164
+ whatever the repository is written in. Comparing a contract to real code needs to read that
165
165
  code, which is a stack adapter's job.
166
166
 
167
167
  `ucm check` discovers an adapter installed **by the repository**, resolving from
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ucm-kit/cli",
3
- "version": "0.1.17",
3
+ "version": "0.1.18",
4
4
  "description": "La ligne de commande UCM : initialiser un repository, lister ce qu'il doit couvrir.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -27,6 +27,6 @@
27
27
  "test": "node scripts/run-tests.cjs"
28
28
  },
29
29
  "dependencies": {
30
- "@ucm-kit/core": "0.1.18"
30
+ "@ucm-kit/core": "0.1.19"
31
31
  }
32
32
  }