@mpfrontend/ftg-cli 0.0.0-stage → 0.1.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/DESIGN-SYNC.md ADDED
@@ -0,0 +1,159 @@
1
+ # Reviewed export synchronization
2
+
3
+ CLI 0.1.0 implements explicit source onboarding plus a **finite normalized local export** profile. It does not call Figma, infer
4
+ missing behavior, run an LLM, execute test commands, publish or monitor for updates. The caller must
5
+ have implementation authority for the named consumer and separate human review for promotion.
6
+ The baseline covers only the declared export, never an assertion that the entire Figma DLS is implemented.
7
+
8
+ ## Select and attach the source
9
+
10
+ Initialize a new workspace with exactly one mode:
11
+
12
+ ```sh
13
+ mpfrontend init --name product --directory ./product --design-source none --json
14
+ mpfrontend init --name product --directory ./product --design-source existing --json
15
+ ```
16
+
17
+ `none` is code-first and reports `disabled`; it can attach later. `existing` means the product/team owns
18
+ its own private or public DLS, its binding, exports and distribution rights. The design-backed mode
19
+ starts `pending`; initialization does not inspect, copy, publish or change any Figma file. The MVP does
20
+ not ship or depend on a Figma Community design system.
21
+
22
+ After creating the binding described below, attach and verify it:
23
+
24
+ ```sh
25
+ mpfrontend design attach --directory . --source existing --binding design.binding.json --dry-run --json
26
+ mpfrontend design attach --directory . --source existing --binding design.binding.json --json
27
+ mpfrontend design status --directory . --json
28
+ ```
29
+
30
+ Attachment verifies the full canonical binding hash. The attached contract is immutable: selecting
31
+ another source or binding requires an explicitly reviewed new workspace/migration, not a force flag.
32
+ Paths and symlinks fail closed, writers use an exclusive lock, and dry-run writes nothing. `status`
33
+ revalidates current files but never imports or accepts a baseline.
34
+
35
+ The attachment records the binding path/hash but does not duplicate the private source
36
+ identity into `.mpfrontend/design-source.json`; the consumer binding remains authoritative. This reduces
37
+ metadata duplication but is not publication sanitization: a private binding/export still stays private.
38
+
39
+ ## Inputs
40
+
41
+ Place `design.binding.json` at the consumer root. All paths are relative to that root. Snapshot input
42
+ can be an explicitly supplied local file; source identity must match. Unknown revision/capture time stay null.
43
+ Preserve the original export and its provenance outside core; record any deliberate normalization,
44
+ collection/mode projection or omitted scope. Do not invent a capture/revision or distribution rights.
45
+
46
+ ```json
47
+ {
48
+ "schemaVersion": 1,
49
+ "id": "product-theme",
50
+ "source": {"fileKey": "supplied-file-key", "nodeId": "1:2"},
51
+ "brandId": "product-brand",
52
+ "modeAttribute": "data-mode",
53
+ "stateDirectory": ".mpfrontend/design/product-theme",
54
+ "outputDirectory": "themes/product-theme/generated",
55
+ "tokens": [{"sourceId": "color:surface", "cssName": "--mp-surface-canvas"}],
56
+ "components": [{"sourceId": "button:1", "adapter": "src/button.tsx", "tests": ["tests/button.test.ts"]}],
57
+ "ignoredTokens": [],
58
+ "ignoredComponents": []
59
+ }
60
+ ```
61
+
62
+ `modeAttribute` is data-mode or data-theme. State directory must be `.mpfrontend/design/<id>` and
63
+ output a themes/packages subdirectory ending in `/generated`. Stable source IDs may contain letters,
64
+ digits, dots, colons, underscores and hyphens; prototype keys are refused. CSS names and brand IDs
65
+ have constrained syntax. Ignore entries are `{sourceId, reason}` and cannot overlap mapped entries.
66
+ Ignored scope is an explicit reviewed exclusion, not full-DLS acceptance.
67
+
68
+ ```json
69
+ {
70
+ "schemaVersion": 1,
71
+ "source": {
72
+ "fileKey": "supplied-file-key", "nodeId": "1:2", "revision": null,
73
+ "capturedAt": "2026-10-07T07:00:00.000Z", "extractorVersion": "reviewed-export-v1"
74
+ },
75
+ "modes": ["light", "dark"],
76
+ "tokens": [{
77
+ "id": "color:surface", "name": "Canvas", "type": "color",
78
+ "values": {"light": "#ffffff", "dark": "#101010"}
79
+ }],
80
+ "components": [{
81
+ "id": "button:1", "name": "Button", "variants": {"tone": ["primary", "ghost"]},
82
+ "properties": {"disabled": "boolean"},
83
+ "behavior": {"status": "known", "description": "Disabled prevents pointer and keyboard activation"},
84
+ "assets": []
85
+ }],
86
+ "assets": []
87
+ }
88
+ ```
89
+
90
+ Token types: color (3/4/6/8-digit hex), dimension (`{value, unit}` with px/rem/em/%), finite number,
91
+ or a constrained plain string. A value can instead be `{alias: "stable-token-id"}` in either mode;
92
+ cycles, absent targets and incompatible types fail. This is not arbitrary CSS/gradient/expression,
93
+ font-asset or multi-collection compilation. The profile explicitly requires light/dark normalized modes;
94
+ additional modes/unknown schema fields are rejected rather than discarded. Component variants are
95
+ named string lists; properties describe an authored API, not a TypeScript code generator. Behavior
96
+ can be unknown for import/diff, but an unknown mapped behavior blocks application/promotion.
97
+
98
+ Assets are `{id, sha256, mimeType, license}`; component asset IDs must resolve. Unknown license blocks
99
+ application. Only metadata is generated: binary assets/fonts and their rights remain consumer-owned.
100
+ Do not interpret a declared license string as independent legal clearance.
101
+
102
+ ## Commands and ownership
103
+
104
+ ```sh
105
+ mpfrontend design import --binding design.binding.json --snapshot reviewed-export.json --dry-run --json
106
+ mpfrontend design import --binding design.binding.json --snapshot reviewed-export.json --json
107
+ mpfrontend design validate --binding design.binding.json --candidate <hash> --json
108
+ mpfrontend design diff --binding design.binding.json --candidate <hash> --json
109
+ mpfrontend design plan --binding design.binding.json --candidate <hash> --dry-run --json
110
+ mpfrontend design plan --binding design.binding.json --candidate <hash> --json
111
+ mpfrontend design apply --plan <returned-plan-path> --dry-run --json
112
+ mpfrontend design apply --plan <reviewed-plan-path> --json
113
+ mpfrontend design accept --plan <reviewed-plan-path> --evidence evidence/acceptance.json --dry-run --json
114
+ mpfrontend design check --binding design.binding.json --json
115
+ ```
116
+
117
+ Import creates a hash-addressed immutable candidate, never a baseline. Plan is bound to the candidate,
118
+ CLI version, canonical binding, prior baseline/ownership and current output hashes. Review it before
119
+ apply. Apply writes only two owned outputs (`tokens.gen.css`, `components.gen.json`) and an ownership
120
+ receipt. CSS is brand-scoped with light/dark and system-dark selectors. Component metadata is not
121
+ React implementation. Initial/changed/removed components, asset changes and token rename/removal
122
+ produce authored tasks; unchanged mapped components still require adapter/test evidence.
123
+
124
+ Unknown mappings, unresolved behavior/rights, stale plans and an unowned output collision fail closed.
125
+ Paths cannot traverse or enter protected/private configuration; every consumer symlink is refused.
126
+ Writers acquire an exclusive `.design-write.lock`, stage files and compare before replacement. Rollback
127
+ preserves a concurrent edit and reports conflicts. This is not a crash-atomic filesystem transaction:
128
+ after interruption inspect the marker, staged/owned files, hashes and exact plan before operator recovery.
129
+ No age-based marker removal, force overwrite or authored-source deletion is implemented. Cooperative
130
+ writer locks do not turn an adversarial local filesystem into a sandbox/security boundary.
131
+
132
+ Exit codes: 0 success, 2 invalid/unsupported inputs or unresolved mapping, 3 stale/drift/failed acceptance,
133
+ 4 path/ownership/concurrency violation. Dry-run performs no writes. Check before a baseline is accepted
134
+ fails with code 3; applying tokens alone is not an accepted synchronization.
135
+
136
+ ## Evidence and acceptance
137
+
138
+ `accept` consumes a reviewed attestation, **not a test execution engine**. The responsible developer/CI
139
+ must actually run each named check and supply its artifact. A digest validates artifact identity and
140
+ current files; it cannot prove that a human's claimed result is truthful or that a screenshot is good.
141
+ Never use the synthetic unit attestations as real reference/production acceptance.
142
+
143
+ Evidence JSON has exact schemaVersion, planId, candidateHash, bindingHash and cliVersion; review is
144
+ `{approved: true, reviewer: "review identity"}`. Required checks are unit, typecheck, visual-light,
145
+ visual-dark, rtl, keyboard and contrast; asset-rights is additionally required when assets exist.
146
+ Each check is `{name, passed: true, command, artifact: {path, sha256}}`. Artifacts and the report are
147
+ consumer-local under evidence/; hashes use raw bytes. Do not put credentials or private data in reports.
148
+
149
+ Each task is `{id, status: "implemented", files: [{path, sha256}]}` and must include all required
150
+ authored adapter/test paths. Migration/asset tasks require at least one reviewed authored file.
151
+ Unknown/duplicate check/task IDs, failed checks, missing tasks/files and changed artifacts refuse
152
+ promotion. Re-running checks/code review is the caller's responsibility after any relevant change.
153
+ Successful acceptance records the exact candidate/plan/binding/evidence identity. Later check verifies
154
+ the accepted outputs, report and referenced current artifacts/authored files; altered evidence fails.
155
+ Publication and owner visual approval remain separate gates.
156
+
157
+ The source regression suite executes all seven commands, semantic behavior/removal/alias scenarios,
158
+ safety refusals and isolated acceptance-guard removals. Independent packed-command verification and
159
+ real consumer DLS adoption are tracked in the workspace implementation status, not inferred here.
package/LICENSE ADDED
@@ -0,0 +1,202 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright [yyyy] [name of copyright owner]
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
package/README.md CHANGED
@@ -1,3 +1,104 @@
1
- # Temporary Holding Version
1
+ # @mpfrontend/ftg-cli
2
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.
3
+ Local development package. Runtime: tooling. Public API is exported from src/index.ts and compiled
4
+ into dist. Nx owns build, typecheck, lint and test targets. Consumer applications install packed artifacts.
5
+ See ../../docs/IMPLEMENTATION-STATUS.md for observed evidence and remaining work.
6
+
7
+ ## Repository commands
8
+
9
+ ```sh
10
+ mpfrontend init --name my-product --directory ./my-product --design-source none --dry-run --json
11
+ mpfrontend init --name my-product --directory ./my-product --design-source existing --json
12
+ mpfrontend design attach --directory ./my-product --source existing --binding design.binding.json --json
13
+ mpfrontend design status --directory ./my-product --json
14
+ mpfrontend create app --name customer --directory ./my-product/apps/customer --dry-run
15
+ mpfrontend create feature --app apps/customer --name order-review --dry-run --json
16
+ mpfrontend create route --app apps/customer --path order-review --feature order-review --json
17
+ mpfrontend create package --name formatting --runtime universal --json
18
+ mpfrontend skills list --json
19
+ mpfrontend skills install --directory ./my-product --for both --profile base --dry-run --json
20
+ mpfrontend skills check --directory ./my-product --json
21
+ ftg generate --config ./my-product/apps/customer/ftg.config.json --dry-run --json
22
+ ftg check --config ./my-product/apps/customer/ftg.config.json --json
23
+ ```
24
+
25
+ The [CLI guide](../../docs/CLI-GUIDE.md) describes every command: what it does, when to run it, what it
26
+ writes and what it refuses.
27
+
28
+ `init` creates a neutral pinned Nx/pnpm shell in a **new** directory; an existing directory or symlink
29
+ is refused. It does not install dependencies, run Git, access/modify Figma, deploy, publish or configure
30
+ protected runtime authority. The catalog template requires an explicitly supplied approved OpenAPI
31
+ contract. The generated README describes the sequence; a scaffold/build is not production acceptance.
32
+ Development packages are not published: local validation supplies verified tarball overrides.
33
+
34
+ Design-source selection is an explicit workspace contract:
35
+
36
+ - `none` is a fully usable code-first workspace and may attach a source later.
37
+ - `existing` is a consumer-owned private or product DLS. Attachment validates only the local binding;
38
+ the source, normalized exports, mappings, assets and distribution rights remain in the consumer.
39
+
40
+ The MVP does not publish, require or offer a Figma Community DLS. A product without a DLS can remain
41
+ code-first with `none`; a product with any approved existing Figma/DLS uses `existing`.
42
+
43
+ Initialization records `disabled` or `pending` state in `.mpfrontend/design-source.json`; it never
44
+ captures or writes Figma. `design attach` changes only that root contract, is dry-run capable,
45
+ exclusive and idempotent for the exact same attachment, and refuses source changes once attached.
46
+ `design status` revalidates an attached consumer binding. It does not import or accept a design
47
+ baseline. See [the design contract](./DESIGN-SYNC.md).
48
+
49
+ All eighteen approved finite source procedures are available. Actual agent behavioral acceptance remains
50
+ separate. Skill ownership
51
+ and repository concurrency rules are described in @mpfrontend/ai-skills, not hidden by placeholders.
52
+
53
+ FTG refuses generation/check/dry-run while an output `.ftg-write.lock` marker exists. Writers acquire
54
+ it exclusively and compare planned files before replacement; rollback preserves a concurrent change
55
+ instead of silently overwriting it. A crashed writer can leave its marker/partial output: inspect the
56
+ files and reconcile their manifest before an operator removes the stale marker. There is no force
57
+ option or automatic age-based deletion. Multi-file output is not a crash-atomic filesystem transaction.
58
+
59
+ FTG generator dev.6 emits selected full 200/201/202 JSON-response or explicit empty-204
60
+ `ReadModels`/`parseRead`, standalone CJS validators and
61
+ declarations in the same owned output/manifest as resource field metadata. `responsePath` selects
62
+ table fields only; it does not truncate the response reader. Validators are compiled during generation
63
+ using Ajv 8.20.0 and ajv-formats 3.0.1; consumers need those exact runtime-helper dependencies.
64
+ Runtime does not compile schemas or require unsafe-eval. Invalid data throws a generic error without
65
+ logging payloads; values are never coerced, defaulted or stripped. Required write-only properties are
66
+ omitted from read types/requirements and explicitly rejected in a response, even in an open object.
67
+
68
+ Read generation currently requires OpenAPI 3.1 finite object/array shapes. Unsupported recursive,
69
+ composed or mixed fixed/dictionary models and meaningful reference siblings are rejected rather than
70
+ guessed. This is not complete form/write/permission generation. See the
71
+ [OpenAPI schema specification](https://spec.openapis.org/oas/v3.1.0.html#schema-object) and
72
+ [Ajv standalone design](https://ajv.js.org/standalone.html) for the underlying contracts.
73
+
74
+ Explicit `requests` selections independently generate `RequestModels`, `requests` field metadata and
75
+ `parseRequest` standalone validators. The JSON profile requires a required JSON object mutation body,
76
+ closed objects at every level and supported non-recursive schemas. It preserves validation constraints,
77
+ includes write-only inputs and forbids read-only/unknown fields. An explicit request selection with
78
+ `body: "none"` requires an absent OpenAPI requestBody and emits an undefined-only type/validator and
79
+ empty field metadata. Any supplied payload is refused, including null and an empty object. This is a
80
+ consumer restriction, not an inference that every server with absent metadata forbids all bodies.
81
+ An explicit request selection with `body: "optional-json"` instead requires a present OpenAPI
82
+ requestBody whose `required` flag is not true. It emits `undefined` plus the declared finite closed
83
+ object shape; an exact null/object union also includes null. Its validator accepts absence and valid
84
+ declared values while still rejecting malformed, unknown or incomplete objects.
85
+ An explicit response selection with `responseStatus: "204"` and `body: "none"` requires a declared
86
+ 204 response with no `content`, forbids `responsePath`, and emits an undefined-only read type/validator.
87
+ JSON profiles never silently become empty. Other empty statuses, multipart, guarded PATCH, business
88
+ rules and inferred widgets remain unsupported. See
89
+ [request integration](../../docs/R4-GENERATED-REQUESTS.md) for its tested scope.
90
+
91
+ The executable reports its own packaged version, not the generator's version. Fresh packed-consumer
92
+ validation checks this equality, thirty-six installed Codex/Claude procedure files, required-boolean false,
93
+ real client bundling, frozen installation and preservation controls. Advisory upload is separate:
94
+ `tools/distribution/consumer.mjs` does not run online audit unless explicitly given `--online-audit`.
95
+ Without it the report says `dependencyAudit: not-run`, never passed. Get authorization for metadata
96
+ upload to the registry's advisory service before selecting that option.
97
+
98
+ CLI dev.18 provides source `attach`/`status` plus the seven lifecycle `design` commands against a
99
+ finite normalized local export:
100
+ [reviewed export lifecycle and evidence contract](./DESIGN-SYNC.md). Base skills install twenty-eight
101
+ files; the combined design profile installs thirty-six. An import never changes baseline, a generated
102
+ component registry is not React implementation, and acceptance verifies reviewed artifact identities
103
+ rather than executing or judging the reported tests. Actual reference design/visual acceptance remains
104
+ separate. No Figma write, automatic watcher, deployment or registry action is performed.
@@ -0,0 +1,20 @@
1
+ /**
2
+ * Checks every catalog set of an app against its locale registry: each registry locale has a catalog, each
3
+ * catalog has exactly the base keys, every message parses and takes the base parameters, and code uses
4
+ * every key. The registry is `localeRegistry` of `src/config/app.ts`; catalogs are the default exports of
5
+ * `messages/<locale>.ts` files, read with Node's TypeScript type stripping.
6
+ */
7
+ export declare function catalogCheck(appDirectory: string): Promise<{
8
+ ok: boolean;
9
+ locales: any[];
10
+ defaultLocale: string;
11
+ catalogs: string[];
12
+ keys: number;
13
+ problems: (Readonly<{
14
+ code: "MISSING_LOCALE" | "UNKNOWN_LOCALE" | "MISSING_KEY" | "EXTRA_KEY" | "UNUSED_KEY" | "UNDEFINED_KEY" | "PARAMETER_MISMATCH" | "INVALID_MESSAGE";
15
+ locale?: string;
16
+ key?: string;
17
+ }> & {
18
+ catalog: string;
19
+ })[];
20
+ }>;
@@ -0,0 +1,134 @@
1
+ import { readdir, readFile } from 'node:fs/promises';
2
+ import { dirname, join, resolve, relative, sep } from 'node:path';
3
+ import { pathToFileURL } from 'node:url';
4
+ import { checkCatalogs } from '@mpfrontend/i18n';
5
+ import { InputError } from './index.js';
6
+ const sourceFile = /\.(?:ts|tsx|mts|cts|js|jsx|mjs)$/;
7
+ const testFile = /\.test\.[a-z]+$/;
8
+ const literal = /(['"`])((?:\\.|(?!\1)[^\\\n])*)\1/g;
9
+ const translatorVariable = /\b(?:const|let|var)\s+([A-Za-z_$][\w$]*)\s*=\s*([A-Za-z_$][\w$]*)\.translator\(/g;
10
+ const namedImports = /import\s*(?:type\s+)?\{([^}]*)\}\s*from\s*(['"])(\.{1,2}\/[^'"]*)\2/g;
11
+ const escape = (value) => value.replace(/[$]/g, '\\$&');
12
+ /**
13
+ * The keys a source file asks each catalog set for: the literal first argument of a call of a translator
14
+ * variable (`const t = messages.translator(...)`) whose messages object is imported from a set's module
15
+ * (`<dir>/messages`, or a folder whose `messages/` holds the set).
16
+ */
17
+ function translatorKeys(file, source, sets) {
18
+ const imported = new Map();
19
+ for (const match of source.matchAll(namedImports))
20
+ for (const part of match[1].split(',')) {
21
+ const [name, alias] = part.trim().split(/\s+as\s+/);
22
+ if (name)
23
+ imported.set((alias ?? name).trim(), resolve(dirname(file), match[3]));
24
+ }
25
+ const keys = new Map();
26
+ for (const match of source.matchAll(translatorVariable)) {
27
+ const module = imported.get(match[2]);
28
+ if (!module)
29
+ continue;
30
+ const set = sets.has(module) ? module : sets.has(join(module, 'messages')) ? join(module, 'messages') : undefined;
31
+ if (!set)
32
+ continue;
33
+ const calls = new RegExp('(?<![\\w$.])' + escape(match[1]) + '\\(\\s*([\'"`])((?:\\\\.|(?!\\1)[^\\\\\\n$])*)\\1', 'g');
34
+ for (const call of source.matchAll(calls)) {
35
+ const found = keys.get(set) ?? new Set();
36
+ found.add(call[2]);
37
+ keys.set(set, found);
38
+ }
39
+ }
40
+ return keys;
41
+ }
42
+ /** Every directory named `messages` under `src`, and every source file outside them; links are not followed. */
43
+ async function walk(root, directory, sets, sources) {
44
+ for (const entry of await readdir(directory, { withFileTypes: true })) {
45
+ const path = join(directory, entry.name);
46
+ if (entry.isSymbolicLink())
47
+ continue;
48
+ if (entry.isDirectory()) {
49
+ if (entry.name === 'generated' || entry.name === 'node_modules')
50
+ continue;
51
+ if (entry.name === 'messages') {
52
+ const locales = {};
53
+ for (const file of await readdir(path, { withFileTypes: true }))
54
+ if (file.isFile() && /^[a-z]{2,3}(?:-[A-Za-z0-9]{2,8})*\.ts$/.test(file.name))
55
+ locales[file.name.slice(0, -3)] = join(path, file.name);
56
+ // A feature's or an entity's catalog is used within that unit; the app catalog anywhere in src.
57
+ const parts = relative(root, path).split(sep);
58
+ const unit = parts[0] === 'features' || parts[0] === 'entities' ? join(root, parts[0], parts[1]) : root;
59
+ sets.push({ path, scope: unit, locales });
60
+ }
61
+ else
62
+ await walk(root, path, sets, sources);
63
+ }
64
+ else if (entry.isFile() && sourceFile.test(entry.name) && !testFile.test(entry.name))
65
+ sources.push(path);
66
+ }
67
+ }
68
+ /**
69
+ * Checks every catalog set of an app against its locale registry: each registry locale has a catalog, each
70
+ * catalog has exactly the base keys, every message parses and takes the base parameters, and code uses
71
+ * every key. The registry is `localeRegistry` of `src/config/app.ts`; catalogs are the default exports of
72
+ * `messages/<locale>.ts` files, read with Node's TypeScript type stripping.
73
+ */
74
+ export async function catalogCheck(appDirectory) {
75
+ const app = resolve(appDirectory), src = join(app, 'src');
76
+ let registry;
77
+ try {
78
+ registry = (await import(pathToFileURL(join(src, 'config/app.ts')).href)).localeRegistry;
79
+ }
80
+ catch {
81
+ registry = undefined;
82
+ }
83
+ if (!registry || !Array.isArray(registry.locales) || typeof registry.defaultLocale !== 'string')
84
+ throw new InputError('LOCALE_REGISTRY_UNREADABLE');
85
+ const sets = [], sources = [];
86
+ await walk(src, src, sets, sources);
87
+ const literals = new Map(), requested = new Map();
88
+ const setPaths = new Set(sets.map(set => set.path));
89
+ for (const file of sources) {
90
+ const values = new Set(), source = await readFile(file, 'utf8');
91
+ for (const match of source.matchAll(literal))
92
+ if (!match[2].includes('${'))
93
+ values.add(match[2]);
94
+ literals.set(file, values);
95
+ for (const [set, keys] of translatorKeys(file, source, setPaths)) {
96
+ const all = requested.get(set) ?? new Set();
97
+ for (const key of keys)
98
+ all.add(key);
99
+ requested.set(set, all);
100
+ }
101
+ }
102
+ const problems = [];
103
+ let keys = 0;
104
+ for (const set of sets) {
105
+ const catalogs = {};
106
+ for (const [code, file] of Object.entries(set.locales)) {
107
+ if (!registry.locales.includes(code)) {
108
+ problems.push({ catalog: relative(app, set.path), code: 'UNKNOWN_LOCALE', locale: code });
109
+ continue;
110
+ }
111
+ try {
112
+ const value = (await import(pathToFileURL(file).href)).default;
113
+ if (!value || typeof value !== 'object' || Object.values(value).some(message => typeof message !== 'string'))
114
+ throw new Error();
115
+ catalogs[code] = value;
116
+ }
117
+ catch {
118
+ problems.push({ catalog: relative(app, set.path), code: 'INVALID_MESSAGE', locale: code });
119
+ }
120
+ }
121
+ const used = new Set();
122
+ for (const [file, values] of literals)
123
+ if (file.startsWith(set.scope + sep))
124
+ for (const value of values)
125
+ used.add(value);
126
+ keys += Object.keys(catalogs[registry.defaultLocale] ?? {}).length;
127
+ // A key that code asks for and the base lacks is reported only once the base itself is readable.
128
+ const usedKeys = catalogs[registry.defaultLocale] ? requested.get(set.path) ?? [] : [];
129
+ for (const problem of checkCatalogs({ defaultLocale: registry.defaultLocale, locales: registry.locales, catalogs, isUsed: key => used.has(key), usedKeys }))
130
+ problems.push({ catalog: relative(app, set.path), ...problem });
131
+ }
132
+ return { ok: problems.length === 0, locales: registry.locales, defaultLocale: registry.defaultLocale, catalogs: sets.map(set => relative(app, set.path)).sort(), keys, problems };
133
+ }
134
+ //# sourceMappingURL=catalog.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"catalog.js","sourceRoot":"","sources":["../src/catalog.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,OAAO,EAAC,QAAQ,EAAC,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAC,OAAO,EAAC,IAAI,EAAC,OAAO,EAAC,QAAQ,EAAC,GAAG,EAAC,MAAM,WAAW,CAAC;AAC5D,OAAO,EAAC,aAAa,EAAC,MAAM,UAAU,CAAC;AACvC,OAAO,EAAC,aAAa,EAAkC,MAAM,kBAAkB,CAAC;AAChF,OAAO,EAAC,UAAU,EAAC,MAAM,YAAY,CAAC;AAItC,MAAM,UAAU,GAAC,kCAAkC,CAAC;AACpD,MAAM,QAAQ,GAAC,iBAAiB,CAAC;AACjC,MAAM,OAAO,GAAC,oCAAoC,CAAC;AACnD,MAAM,kBAAkB,GAAC,kFAAkF,CAAC;AAC5G,MAAM,YA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