@mmmnt/feat-analyze 0.1.8 → 0.2.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/LICENSE CHANGED
@@ -1,28 +1,21 @@
1
- BSD 3-Clause License
1
+ MIT License
2
2
 
3
3
  Copyright (c) 2026, Moment
4
4
 
5
- Redistribution and use in source and binary forms, with or without
6
- modification, are permitted provided that the following conditions are met:
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
7
11
 
8
- 1. Redistributions of source code must retain the above copyright notice, this
9
- list of conditions and the following disclaimer.
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
10
14
 
11
- 2. Redistributions in binary form must reproduce the above copyright notice,
12
- this list of conditions and the following disclaimer in the documentation
13
- and/or other materials provided with the distribution.
14
-
15
- 3. Neither the name of the copyright holder nor the names of its
16
- contributors may be used to endorse or promote products derived from
17
- this software without specific prior written permission.
18
-
19
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
20
- AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
21
- IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
22
- DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
23
- FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
24
- DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
25
- SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
26
- CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
27
- OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28
- OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,233 @@
1
+ # @mmmnt/feat-analyze
2
+
3
+ **Pure analysis for `.feat` specs: lint, audit and format.** Three functions,
4
+ no filesystem, no process, no CLI. Each takes a parsed spec (or the source text)
5
+ and returns findings you can print, gate on or show in an editor.
6
+
7
+ If you only write `.feat` specs, you do not need this package. The `feat lint`,
8
+ `feat audit` and `feat fmt` commands in
9
+ [`@mmmnt/feature`](https://www.npmjs.com/package/@mmmnt/feature) are thin
10
+ callers over these functions and print the exact strings they return. Use this
11
+ package when you embed the same checks in a service, an editor or a bot.
12
+
13
+ ## Where it sits
14
+
15
+ ```
16
+ .feat source ──► feat-core (parse) ──► BuiltSpec ──► lintSpec(spec) ──► Finding[]
17
+ │ └───────► auditSpec(spec) ──► { errors, warnings }
18
+ └─────────────────────────────────────────────► formatSource(src) ──► { formatted, changed, hasLeadingTab }
19
+ ```
20
+
21
+ The package depends only on
22
+ [`@mmmnt/feat-types`](https://www.npmjs.com/package/@mmmnt/feat-types), for the
23
+ `BuiltSpec` type. It does not parse. To get a `BuiltSpec`, use
24
+ [`@mmmnt/feat-core`](https://www.npmjs.com/package/@mmmnt/feat-core).
25
+
26
+ What the library leaves to a caller, because it needs the filesystem: whether a
27
+ spec has a paired `<name>.contract.json`, and whether its generated test file
28
+ exists. `feat audit` adds both as warnings.
29
+
30
+ ## Install
31
+
32
+ ```sh
33
+ npm install @mmmnt/feat-analyze @mmmnt/feat-core
34
+ ```
35
+
36
+ Requirements:
37
+
38
+ - Node 20 or later (`engines`).
39
+ - ESM only (`"type": "module"`).
40
+ - `@mmmnt/feat-types` installs with it. `@mmmnt/feat-core` is only needed if you
41
+ parse specs yourself, as below.
42
+
43
+ ## Usage
44
+
45
+ ```ts
46
+ import { parseSource } from "@mmmnt/feat-core";
47
+ import { auditSpec, formatSource, lintSpec } from "@mmmnt/feat-analyze";
48
+ import type { BuiltSpec } from "@mmmnt/feat-types";
49
+
50
+ const source = `feat 1.0
51
+
52
+ spec SPEC-USR-001 "CreateUser"
53
+ context Users
54
+ aggregate User
55
+ type command
56
+ status draft
57
+
58
+ construct:
59
+ handler at handlers/create-user.ts
60
+
61
+ enforce:
62
+ rejects DUPLICATE_EMAIL when a user with this email already exists
63
+ rejects INVALID_EMAIL when the address is malformed
64
+
65
+ contract:
66
+ input CreateUserInput
67
+ response UserResponse
68
+ record UserRow
69
+ error ErrorResponse
70
+
71
+ scenario "rejects duplicate email":
72
+ when: CreateUser { email: "alice@example.com" }
73
+ predict rejection DUPLICATE_EMAIL:
74
+ response 409 ErrorResponse { code: "DUPLICATE_EMAIL" }
75
+ database has []
76
+ `;
77
+
78
+ const parsed = parseSource(source, { serviceKeys: ["database"], commands: ["CreateUser"], actors: [] });
79
+ if (parsed.status !== "OK") throw new Error(JSON.stringify(parsed.body));
80
+ const spec = parsed.body as unknown as BuiltSpec;
81
+
82
+ console.log(lintSpec(spec));
83
+ console.log(auditSpec(spec));
84
+ console.log(formatSource(source).changed);
85
+ ```
86
+
87
+ That prints:
88
+
89
+ ```
90
+ [
91
+ { level: 'warn', message: "warn: schema 'UserResponse' is declared but never referenced by a scenario" },
92
+ { level: 'warn', message: "warn: schema 'UserRow' is declared but never referenced by a scenario" },
93
+ { level: 'info', message: 'info: status draft — not buildable until agreed' }
94
+ ]
95
+ {
96
+ errors: [
97
+ 'B3: no `touches` change boundary declared',
98
+ 'B2: `rejects INVALID_EMAIL` is never predicted by any scenario'
99
+ ],
100
+ warnings: [ 'status draft — not buildable until agreed' ]
101
+ }
102
+ false
103
+ ```
104
+
105
+ ## API
106
+
107
+ ### `lintSpec(spec: BuiltSpec): Finding[]`
108
+
109
+ Language-quality rules beyond the buildability gate (ADR-0007, ADR-0017).
110
+
111
+ ```ts
112
+ interface Finding {
113
+ level: "error" | "warn" | "info";
114
+ message: string; // already prefixed with its level, e.g. "warn: ..."
115
+ }
116
+ ```
117
+
118
+ | Rule | Level | Message |
119
+ | --- | --- | --- |
120
+ | A contract schema that no scenario references | `warn` | `warn: schema 'X' is declared but never referenced by a scenario` |
121
+ | A variable that nothing references | `warn` | `warn: variable 'x' is declared but never referenced` |
122
+ | The same `kind schema` declared twice in `contract:` | `warn` | `warn: duplicate contract declaration 'kind X'` |
123
+ | The spec is still a draft | `info` | `info: status draft — not buildable until agreed` |
124
+
125
+ What counts as a reference to a schema: the response schema of a prediction,
126
+ every record schema in a `has` or `contains` list, and every `with <Schema>` on
127
+ an inline seed record. `input` entries are used by definition (they are the
128
+ `when:` payload's contract), and `stream` entries are never checked. A variable
129
+ is referenced when a `${name}` appears anywhere in a scenario, or in the template
130
+ of another variable.
131
+
132
+ ### `lintOptionalFields(spec: BuiltSpec, registry: Record<string, object>): Finding[]`
133
+
134
+ ADR-0038: a predicted response or record value block that leaves out an optional property of its schema is an
135
+ error, unless the block is marked `partial`. `registry` is the spec's contract, resolved by the schema adapter;
136
+ optional means declared and not required, following `allOf` and the bundle's local `$ref`s.
137
+
138
+ | Rule | Level | Message |
139
+ | --- | --- | --- |
140
+ | A block leaves out an optional property | `error` | `error [OPTIONAL_UNSTATED]: scenario "<name>" › <where>: <Schema> leaves out optional '<p>' — state each (absent, any, or a value), or mark the block '<Schema> partial { … }' (ADR-0038)` |
141
+
142
+ `feat lint` runs both and exits 1 on any error-level finding.
143
+
144
+ Findings come in rule order: schemas, variables, duplicates, status. No rule in
145
+ this release returns `level: "error"`; the type allows it so a future rule can.
146
+ A parse failure is the caller's to report, since there is no spec to lint.
147
+
148
+ ### `auditSpec(spec: BuiltSpec): AuditResult`
149
+
150
+ The buildability gate of an `agreed` spec (ADR-0008).
151
+
152
+ ```ts
153
+ interface AuditResult {
154
+ errors: string[]; // B1 to B3: block the gate
155
+ warnings: string[]; // lifecycle surfacing: advisory
156
+ }
157
+ ```
158
+
159
+ | Rule | Fails when | Message |
160
+ | --- | --- | --- |
161
+ | **B1** | the spec type is `command`, `query`, `policy`, `projection` or `saga` and there is no `handler at` | ``B1: no `handler at` for a code-producing spec type`` |
162
+ | **B3** | there is no `touches` | ``B3: no `touches` change boundary declared`` |
163
+ | **B2**, predicted | a scenario predicts `rejection X` and no `rejects X when ...` line exists | ``B2: predicted rejection 'X' has no `rejects X when …` line`` |
164
+ | **B2**, declared | a `rejects X` line exists and no scenario predicts it | ``B2: `rejects X` is never predicted by any scenario`` |
165
+
166
+ Errors come in the order B1, B3, B2 (predicted first, then declared). Types
167
+ `infrastructure`, `integration` and `scaffold` are exempt from B1 but not from
168
+ B3. B2 is two-way: every rejection a spec promises is predicted, and every
169
+ predicted rejection is promised. Rejection ids are compared exactly and
170
+ case-sensitively (ADR-0022), so `NotOperator` and `NOT_OPERATOR` are different
171
+ ids.
172
+
173
+ In a scenario outline, a rejection id written as a placeholder (`<code>`) is
174
+ resolved through the `examples:` rows: every string value in that column counts
175
+ as a predicted id.
176
+
177
+ The one warning is `status draft — not buildable until agreed`, for a spec whose
178
+ status is `draft`. An `agreed`, `built` or `verified` spec has none.
179
+
180
+ ### `formatSource(source: string): FormatResult`
181
+
182
+ Conservative, content-preserving, idempotent formatting.
183
+
184
+ ```ts
185
+ interface FormatResult {
186
+ formatted: string;
187
+ changed: boolean; // formatted !== source
188
+ hasLeadingTab: boolean; // a line that begins with a tab character
189
+ }
190
+ ```
191
+
192
+ It does exactly four things: it strips trailing spaces and tabs from every
193
+ line, collapses any run of blank lines to one, removes blank lines at the end of
194
+ the file, and ends the file with one newline. CRLF line endings become LF. It
195
+ never re-indents, reorders or rewrites a token, and formatting its own output
196
+ changes nothing.
197
+
198
+ `hasLeadingTab` reports a tab as the first character of a line. `feat fmt`
199
+ treats it as an error and leaves that file alone. A space followed by a tab is
200
+ not detected. The parser itself does not reject tab indentation (see
201
+ [`@mmmnt/feat-core`](https://www.npmjs.com/package/@mmmnt/feat-core)).
202
+
203
+ ## In the CLI
204
+
205
+ | Command | Calls | Exit codes |
206
+ | --- | --- | --- |
207
+ | `feat lint` | `lintSpec` on every spec | `0`, or `1` if any spec fails to parse. Warnings and notes never fail the run. |
208
+ | `feat audit` | `auditSpec`, plus the paired-file warnings | `0`, or `1` if any spec has an error (a parse failure or a B1, B2 or B3 error). Warnings never fail the run. |
209
+ | `feat fmt` | `formatSource`; `--check` reports without writing | `0`, or `1` with `--check` when any file would change, or when any file has a leading tab. |
210
+
211
+ A configuration error is exit `2`, as everywhere in the toolchain. The library
212
+ itself returns values and never exits.
213
+
214
+ ## What changed in 0.1.9
215
+
216
+ No source change in release v0.1.48. The package is republished as 0.1.9 against
217
+ `@mmmnt/feat-types` 0.2.0, with this README; until now it had none.
218
+
219
+ ## Specs and decisions
220
+
221
+ - [Grammar reference](https://github.com/mmmnt/feature/blob/main/docs/grammar-reference.md):
222
+ the language the rules apply to
223
+ - [ADR-0022: UpperCamel rejection ids](https://github.com/mmmnt/feature/blob/main/docs/adr/ADR-0022-uppercamel-rejection-ids.md):
224
+ why B2 compares ids exactly
225
+ - ADR-0007 (declared-but-unused lint), ADR-0008 (the buildability rules B1 to
226
+ B3 and the `draft`, `agreed`, `built`, `verified` lifecycle) and ADR-0017 (the
227
+ variable lint) record the rules. ADR-0001 to ADR-0021 are not in the
228
+ repository yet.
229
+
230
+ Part of [Feature](https://github.com/mmmnt/feature), the `.feat` execution
231
+ specification language. Docs: https://github.com/mmmnt/feature/wiki
232
+
233
+ MIT
package/dist/index.d.ts CHANGED
@@ -32,4 +32,5 @@ export interface FormatResult {
32
32
  * blank line, ensure single trailing newline. Content-preserving, idempotent.
33
33
  */
34
34
  export declare function formatSource(source: string): FormatResult;
35
+ export declare function lintOptionalFields(spec: BuiltSpec, registry: Record<string, object>): Finding[];
35
36
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAEnD,MAAM,WAAW,OAAO;IACtB,KAAK,EAAE,OAAO,GAAG,MAAM,GAAG,MAAM,CAAC;IACjC,OAAO,EAAE,MAAM,CAAC;CACjB;AAED;;;GAGG;AACH,wBAAgB,QAAQ,CAAC,IAAI,EAAE,SAAS,GAAG,OAAO,EAAE,CAuDnD;AAID,MAAM,WAAW,WAAW;IAC1B,sEAAsE;IACtE,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,sCAAsC;IACtC,QAAQ,EAAE,MAAM,EAAE,CAAC;CACpB;AAED;;;;;GAKG;AACH,wBAAgB,SAAS,CAAC,IAAI,EAAE,SAAS,GAAG,WAAW,CAmCtD;AAED,MAAM,WAAW,YAAY;IAC3B,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,OAAO,CAAC;IACjB,iFAAiF;IACjF,aAAa,EAAE,OAAO,CAAC;CACxB;AAED;;;GAGG;AACH,wBAAgB,YAAY,CAAC,MAAM,EAAE,MAAM,GAAG,YAAY,CAezD"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAEnD,MAAM,WAAW,OAAO;IACtB,KAAK,EAAE,OAAO,GAAG,MAAM,GAAG,MAAM,CAAC;IACjC,OAAO,EAAE,MAAM,CAAC;CACjB;AAED;;;GAGG;AACH,wBAAgB,QAAQ,CAAC,IAAI,EAAE,SAAS,GAAG,OAAO,EAAE,CAuDnD;AAID,MAAM,WAAW,WAAW;IAC1B,sEAAsE;IACtE,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,sCAAsC;IACtC,QAAQ,EAAE,MAAM,EAAE,CAAC;CACpB;AAED;;;;;GAKG;AACH,wBAAgB,SAAS,CAAC,IAAI,EAAE,SAAS,GAAG,WAAW,CAmCtD;AAED,MAAM,WAAW,YAAY;IAC3B,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,OAAO,CAAC;IACjB,iFAAiF;IACjF,aAAa,EAAE,OAAO,CAAC;CACxB;AAED;;;GAGG;AACH,wBAAgB,YAAY,CAAC,MAAM,EAAE,MAAM,GAAG,YAAY,CAezD;AAwCD,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,OAAO,EAAE,CAoB/F"}
package/dist/index.js CHANGED
@@ -143,4 +143,56 @@ export function formatSource(source) {
143
143
  const formatted = out.join("\n") + "\n";
144
144
  return { formatted, changed: formatted !== source, hasLeadingTab };
145
145
  }
146
+ /** Follow a local ref ("#/$defs/x") inside the bundled schema the schema adapter returned. */
147
+ function local(root, node) {
148
+ let cur = node;
149
+ for (let i = 0; cur?.$ref && cur.$ref.startsWith("#/") && i < 10; i++) {
150
+ let target = root;
151
+ for (const t of cur.$ref.slice(2).split("/"))
152
+ target = target?.[t];
153
+ cur = target;
154
+ }
155
+ return cur;
156
+ }
157
+ function optionalProperties(schema) {
158
+ if (!schema || typeof schema !== "object")
159
+ return [];
160
+ const props = {};
161
+ const required = new Set();
162
+ const add = (node) => {
163
+ const n = local(schema, node);
164
+ if (!n)
165
+ return;
166
+ Object.assign(props, n.properties ?? {});
167
+ for (const r of n.required ?? [])
168
+ required.add(r);
169
+ for (const part of n.allOf ?? [])
170
+ add(part);
171
+ };
172
+ add(schema);
173
+ return Object.keys(props).filter((p) => !required.has(p)).sort();
174
+ }
175
+ export function lintOptionalFields(spec, registry) {
176
+ const findings = [];
177
+ const check = (where, schemaName, block, partial) => {
178
+ if (!block || partial)
179
+ return;
180
+ const omitted = optionalProperties(registry[schemaName]).filter((p) => !(p in block));
181
+ if (omitted.length > 0)
182
+ findings.push({
183
+ level: "error",
184
+ message: `error [OPTIONAL_UNSTATED]: ${where}: ${schemaName} leaves out optional ${omitted.map((p) => `'${p}'`).join(", ")} — state each (absent, any, or a value), or mark the block '${schemaName} partial { … }' (ADR-0038)`,
185
+ });
186
+ };
187
+ for (const sc of spec.scenarios) {
188
+ const r = sc.prediction.response;
189
+ if (r?.valueBlock)
190
+ check(`scenario "${sc.name}" › response`, r.schemaName, r.valueBlock, r.partial === true);
191
+ for (const [svc, p] of Object.entries(sc.prediction.services ?? {}))
192
+ for (const rec of [...(p.records ?? []), ...(p.contains ?? [])])
193
+ if (rec.valueBlock)
194
+ check(`scenario "${sc.name}" › ${svc} ${rec.type}`, rec.schemaName, rec.valueBlock, rec.partial === true);
195
+ }
196
+ return findings;
197
+ }
146
198
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,yEAAyE;AACzE,oFAAoF;AACpF,4EAA4E;AAC5E,+EAA+E;AAC/E,kDAAkD;AASlD;;;GAGG;AACH,MAAM,UAAU,QAAQ,CAAC,IAAe;IACtC,MAAM,QAAQ,GAAc,EAAE,CAAC;IAE/B,sDAAsD;IACtD,MAAM,IAAI,GAAG,IAAI,GAAG,EAAU,CAAC;IAC/B,KAAK,MAAM,EAAE,IAAI,IAAI,CAAC,SAAS,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I,CAAC,SAAS,EAAE,CAAC;QAChC,MAAM,CAAC,GAAG,EAAE,CAAC,UAAU,CAAC,QAAQ,CAAC;QACjC,IAAI,CAAC,EAAE,UAAU;YAAE,KAAK,CAAC,aAAa,EAAE,CAAC,IAAI,cAAc,EAAE,CAAC,CAAC,UAAU,EAAE,CAAC,CAAC,UAAU,EAAE,CAAC,CAAC,OAAO,KAAK,IAAI,CAAC,CAAC;QAC7G,KAAK,MAAM,CAAC,GAAG,EAAE,CAAC,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,EAAE,CAAC,UAAU,CAAC,QAAQ,IAAI,EAAE,CAAC;YACjE,KAAK,MAAM,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,OAAO,IAAI,EAAE,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC,QAAQ,IAAI,EAAE,CAAC,CAAC;gBAC7D,IAAI,GAAG,CAAC,UAAU;oBAChB,KAAK,CAAC,aAAa,EAAE,CAAC,IAAI,OAAO,GAAG,IAAI,GAAG,CAAC,IAAI,EAAE,EAAE,GAAG,CAAC,UAAU,EAAE,GAAG,CAAC,UAAU,EAAE,GAAG,CAAC,OAAO,KAAK,IAAI,CAAC,CAAC;IAClH,CAAC;IACD,OAAO,QAAQ,CAAC;AAClB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mmmnt/feat-analyze",
3
- "version": "0.1.8",
3
+ "version": "0.2.0",
4
4
  "description": "Pure analysis for .feat specs: lint, audit (B1–B3 buildability), and conservative formatting — no filesystem, no CLI",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -9,7 +9,7 @@
9
9
  "dist"
10
10
  ],
11
11
  "dependencies": {
12
- "@mmmnt/feat-types": "^0.1.9"
12
+ "@mmmnt/feat-types": "^0.11.0"
13
13
  },
14
14
  "devDependencies": {
15
15
  "typescript": "^5.8.0",