@mmmnt/feature 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.
Files changed (55) hide show
  1. package/LICENSE +28 -0
  2. package/bin/run.js +4 -0
  3. package/dist/commands/audit.d.ts +9 -0
  4. package/dist/commands/audit.d.ts.map +1 -0
  5. package/dist/commands/audit.js +94 -0
  6. package/dist/commands/audit.js.map +1 -0
  7. package/dist/commands/diff.d.ts +13 -0
  8. package/dist/commands/diff.d.ts.map +1 -0
  9. package/dist/commands/diff.js +82 -0
  10. package/dist/commands/diff.js.map +1 -0
  11. package/dist/commands/fmt.d.ts +10 -0
  12. package/dist/commands/fmt.d.ts.map +1 -0
  13. package/dist/commands/fmt.js +65 -0
  14. package/dist/commands/fmt.js.map +1 -0
  15. package/dist/commands/generate.d.ts +9 -0
  16. package/dist/commands/generate.d.ts.map +1 -0
  17. package/dist/commands/generate.js +28 -0
  18. package/dist/commands/generate.js.map +1 -0
  19. package/dist/commands/init.d.ts +6 -0
  20. package/dist/commands/init.d.ts.map +1 -0
  21. package/dist/commands/init.js +113 -0
  22. package/dist/commands/init.js.map +1 -0
  23. package/dist/commands/lint.d.ts +9 -0
  24. package/dist/commands/lint.d.ts.map +1 -0
  25. package/dist/commands/lint.js +87 -0
  26. package/dist/commands/lint.js.map +1 -0
  27. package/dist/commands/parse.d.ts +13 -0
  28. package/dist/commands/parse.d.ts.map +1 -0
  29. package/dist/commands/parse.js +45 -0
  30. package/dist/commands/parse.js.map +1 -0
  31. package/dist/commands/report.d.ts +10 -0
  32. package/dist/commands/report.d.ts.map +1 -0
  33. package/dist/commands/report.js +40 -0
  34. package/dist/commands/report.js.map +1 -0
  35. package/dist/commands/run.d.ts +11 -0
  36. package/dist/commands/run.d.ts.map +1 -0
  37. package/dist/commands/run.js +55 -0
  38. package/dist/commands/run.js.map +1 -0
  39. package/dist/commands/verify.d.ts +9 -0
  40. package/dist/commands/verify.d.ts.map +1 -0
  41. package/dist/commands/verify.js +40 -0
  42. package/dist/commands/verify.js.map +1 -0
  43. package/dist/commands/watch.d.ts +9 -0
  44. package/dist/commands/watch.d.ts.map +1 -0
  45. package/dist/commands/watch.js +53 -0
  46. package/dist/commands/watch.js.map +1 -0
  47. package/dist/index.d.ts +2 -0
  48. package/dist/index.d.ts.map +1 -0
  49. package/dist/index.js +2 -0
  50. package/dist/index.js.map +1 -0
  51. package/dist/pipeline.d.ts +8 -0
  52. package/dist/pipeline.d.ts.map +1 -0
  53. package/dist/pipeline.js +122 -0
  54. package/dist/pipeline.js.map +1 -0
  55. package/package.json +50 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lint.js","sourceRoot":"","sources":["../../src/commands/lint.ts"],"names":[],"mappings":"AAAA,yEAAyE;AACzE,kFAAkF;AAClF,8EAA8E;AAC9E,6DAA6D;AAE7D,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACvC,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAE7C,OAAO,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AACzC,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAE/C,MAAM,CAAC,OAAO,OAAO,IAAK,SAAQ,OAAO;IACvC,MAAM,CAAU,WAAW,GAAG,iEAAiE,CAAC;IAEhG,MAAM,CAAU,KAAK,GAAG;QACtB,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,GAAG,EAAE,WAAW,EAAE,0BAA0B,EAAE,OAAO,EAAE,kBAAkB,EAAE,CAAC;KAC1G,CAAC;IAEK,KAAK,CAAC,GAAG;QACd,MAAM,EAAE,KAAK,EAAE,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;QACzC,MAAM,IAAI,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC;QAC3B,MAAM,MAAM,GAAG,IAAI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,IAAI,CAAC,yCAAyC,KAAK,CAAC,IAAI,IAAI,KAAK,CAAC,UAAU,GAAG,CAAC,CAAC;gBAC7G,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;YAChB,CAAC;YAED,IAAI,IAAI,CAAC,QAAQ,CAAC,MAAM,KAAK,OAAO;gBAAE,QAAQ,CAAC,IAAI,CAAC,iDAAiD,CAAC,CAAC;YAEvG,IAAI,QAAQ,CAAC,MAAM,KAAK,CAAC;gBAAE,IAAI,CAAC,GAAG,CAAC,KAAK,GAAG,EAAE,CAAC,CAAC;iBAC3C,CAAC;gBACJ,IAAI,CAAC,GAAG,CAAC,KAAK,GAAG,EAAE,CAAC,CAAC;gBACrB,KAAK,MAAM,CAAC,IAAI,QAAQ,EAAE,CAAC;oBACzB,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;oBACrB,IAAI,CAAC,CAAC,UAAU,CAAC,MAAM,CAAC;wBAAE,QAAQ,EAAE,CAAC;gBACvC,CAAC;YACH,CAAC;QACH,CAAC;QACD,IAAI,CAAC,GAAG,CAAC,WAAW,KAAK,CAAC,MAAM,aAAa,MAAM,cAAc,QAAQ,cAAc,CAAC,CAAC;QACzF,IAAI,MAAM,GAAG,CAAC;YAAE,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAC/B,CAAC"}
@@ -0,0 +1,13 @@
1
+ import { Command } from "@oclif/core";
2
+ export default class Parse extends Command {
3
+ static description: string;
4
+ static examples: string[];
5
+ static args: {
6
+ file: import("@oclif/core/interfaces").Arg<string, Record<string, unknown>>;
7
+ };
8
+ static flags: {
9
+ config: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
10
+ };
11
+ run(): Promise<void>;
12
+ }
13
+ //# sourceMappingURL=parse.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"parse.d.ts","sourceRoot":"","sources":["../../src/commands/parse.ts"],"names":[],"mappings":"AAIA,OAAO,EAAQ,OAAO,EAAS,MAAM,aAAa,CAAC;AAInD,MAAM,CAAC,OAAO,OAAO,KAAM,SAAQ,OAAO;IACxC,OAAgB,WAAW,SACgD;IAE3E,OAAgB,QAAQ,WAEtB;IAEF,OAAgB,IAAI;;MAElB;IAEF,OAAgB,KAAK;;MAMnB;IAEW,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC;CAgClC"}
@@ -0,0 +1,45 @@
1
+ // `feat parse <file>` — validate a .feat file's syntax and closed reference spaces
2
+ // against the project config. Exit codes: 0 success · 1 validation failure · 2 config error.
3
+ // Thin orchestration only (CLI delegates; the logic lives in @mmmnt/feat-core).
4
+ import { Args, Command, Flags } from "@oclif/core";
5
+ import { parse } from "@mmmnt/feat-core";
6
+ import { loadConfig } from "@mmmnt/feat-runtime";
7
+ export default class Parse extends Command {
8
+ static description = "Parse and validate a .feat file against the project's feat.config.json";
9
+ static examples = [
10
+ "feat parse corpus/create-flow/create-flow.feat --config corpus/create-flow/feat.config.json",
11
+ ];
12
+ static args = {
13
+ file: Args.string({ description: "Path to the .feat file", required: true }),
14
+ };
15
+ static flags = {
16
+ config: Flags.string({
17
+ char: "c",
18
+ description: "Path to feat.config.json",
19
+ default: "feat.config.json",
20
+ }),
21
+ };
22
+ async run() {
23
+ const { args, flags } = await this.parse(Parse);
24
+ const config = await loadConfig({ path: flags.config });
25
+ if (config.status === "ERR") {
26
+ const { code, message, detail } = config.body;
27
+ this.logToStderr(`ERROR [${code}] ${message}`);
28
+ if (detail)
29
+ this.logToStderr(` ${detail}`);
30
+ this.exit(2);
31
+ }
32
+ const result = await parse({ spec: args.file, config: flags.config });
33
+ if (result.status === "OK") {
34
+ this.log(JSON.stringify(result.body, null, 2));
35
+ return;
36
+ }
37
+ const { code, message, line, hint } = result.body;
38
+ this.logToStderr(`ERROR [${code}] ${args.file}${line !== undefined ? `:${line}` : ""}`);
39
+ this.logToStderr(` ${message}`);
40
+ if (hint)
41
+ this.logToStderr(` Hint: ${hint}`);
42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,KAAK,OAAO,EAAE,CAAC,CAAC;YAC/C,IAAI,MAAM;gBAAE,IAAI,CAAC,WAAW,CAAC,KAAK,MAAM,EAAE,CAAC,CAAC;YAC5C,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;QACf,CAAC;QAED,MAAM,MAAM,GAAG,MAAM,KAAK,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,CAAC,MAAM,EAAE,CAAC,CAAC;QACtE,IAAI,MAAM,CAAC,MAAM,KAAK,IAAI,EAAE,CAAC;YAC3B,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC;YAC/C,OAAO;QACT,CAAC;QAED,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,GAAG,MAAM,CAAC,IAK5C,CAAC;QACF,IAAI,CAAC,WAAW,CAAC,UAAU,IAAI,KAAK,IAAI,CAAC,IAAI,GAAG,IAAI,KAAK,SAAS,CAAC,CAAC,CAAC,IAAI,IAAI,EAAE,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;QACxF,IAAI,CAAC,WAAW,CAAC,KAAK,OAAO,EAAE,CAAC,CAAC;QACjC,IAAI,IAAI;YAAE,IAAI,CAAC,WAAW,CAAC,WAAW,IAAI,EAAE,CAAC,CAAC;QAC9C,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IACf,CAAC"}
@@ -0,0 +1,10 @@
1
+ import { Command } from "@oclif/core";
2
+ export default class Report extends Command {
3
+ static description: string;
4
+ static flags: {
5
+ config: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
6
+ junit: import("@oclif/core/interfaces").BooleanFlag<boolean>;
7
+ };
8
+ run(): Promise<void>;
9
+ }
10
+ //# sourceMappingURL=report.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"report.d.ts","sourceRoot":"","sources":["../../src/commands/report.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,OAAO,EAAS,MAAM,aAAa,CAAC;AAG7C,MAAM,CAAC,OAAO,OAAO,MAAO,SAAQ,OAAO;IACzC,OAAgB,WAAW,SAAuD;IAElF,OAAgB,KAAK;;;MAGnB;IAEW,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC;CA0BlC"}
@@ -0,0 +1,40 @@
1
+ // `feat report` — summarize the last run from the JUnit output (per-scenario,
2
+ // anchors included in test names). --junit prints the raw XML path.
3
+ import { existsSync, readFileSync } from "node:fs";
4
+ import path from "node:path";
5
+ import { Command, Flags } from "@oclif/core";
6
+ export default class Report extends Command {
7
+ static description = "Summarize the last feat run from its JUnit output";
8
+ static flags = {
9
+ config: Flags.string({ char: "c", description: "Path to feat.config.json", default: "feat.config.json" }),
10
+ junit: Flags.boolean({ description: "Print the JUnit XML path for CI/Xray import" }),
11
+ };
12
+ async run() {
13
+ const { flags } = await this.parse(Report);
14
+ const root = process.cwd();
15
+ const config = JSON.parse(readFileSync(path.resolve(root, flags.config), "utf8"));
16
+ const junitPath = config.report?.junitOutput;
17
+ if (!junitPath || !existsSync(path.resolve(root, junitPath))) {
18
+ this.logToStderr('ERROR [NO_REPORT] No JUnit output found — run "feat run" first (report.format must include "junit").');
19
+ this.exit(2);
20
+ }
21
+ const abs = path.resolve(root, junitPath);
22
+ if (flags.junit) {
23
+ this.log(abs);
24
+ return;
25
+ }
26
+ const xml = readFileSync(abs, "utf8");
27
+ const suites = [...xml.matchAll(/<testsuite\b[^>]*name="([^"]*)"[^>]*tests="(\d+)"[^>]*failures="(\d+)"[^>]*errors="(\d+)"/g)];
28
+ let total = 0, failures = 0, errors = 0;
29
+ for (const s of suites) {
30
+ total += Number(s[2]);
31
+ failures += Number(s[3]);
32
+ errors += Number(s[4]);
33
+ this.log(`${Number(s[3]) + Number(s[4]) > 0 ? "✗" : "✓"} ${s[1]} — ${s[2]} test(s), ${s[3]} failure(s), ${s[4]} error(s)`);
34
+ }
35
+ this.log(`\n${total} test(s): ${total - failures - errors} passed, ${failures} failed, ${errors} errored.`);
36
+ if (failures + errors > 0)
37
+ this.exit(1);
38
+ }
39
+ }
40
+ //# sourceMappingURL=report.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"report.js","sourceRoot":"","sources":["../../src/commands/report.ts"],"names":[],"mappings":"AAAA,8EAA8E;AAC9E,oEAAoE;AAEpE,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACnD,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAG7C,MAAM,CAAC,OAAO,OAAO,MAAO,SAAQ,OAAO;IACzC,MAAM,CAAU,WAAW,GAAG,mDAAmD,CAAC;IAElF,MAAM,CAAU,KAAK,GAAG;QACtB,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,GAAG,EAAE,WAAW,EAAE,0BAA0B,EAAE,OAAO,EAAE,kBAAkB,EAAE,CAAC;QACzG,KAAK,EAAE,KAAK,CAAC,OAAO,CAAC,EAAE,WAAW,EAAE,6CAA6C,EAAE,CAAC;KACrF,CAAC;IAEK,KAAK,CAAC,GAAG;QACd,MAAM,EAAE,KAAK,EAAE,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;QAC3C,MAAM,IAAI,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC;QAC3B,MAAM,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,YAAY,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC,CAAe,CAAC;QAChG,MAAM,SAAS,GAAG,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC;QAC7C,IAAI,CAAC,SAAS,IAAI,CAAC,UAAU,CAAC,IAAI,CA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,KAAK,GAAG,QAAQ,GAAG,MAAM,YAAY,QAAQ,YAAY,MAAM,WAAW,CAAC,CAAC;QAC5G,IAAI,QAAQ,GAAG,MAAM,GAAG,CAAC;YAAE,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAC1C,CAAC"}
@@ -0,0 +1,11 @@
1
+ import { Command } from "@oclif/core";
2
+ export default class Run extends Command {
3
+ static description: string;
4
+ static flags: {
5
+ config: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
6
+ spec: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
7
+ coverage: import("@oclif/core/interfaces").BooleanFlag<boolean>;
8
+ };
9
+ run(): Promise<void>;
10
+ }
11
+ //# sourceMappingURL=run.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"run.d.ts","sourceRoot":"","sources":["../../src/commands/run.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,OAAO,EAAS,MAAM,aAAa,CAAC;AAK7C,MAAM,CAAC,OAAO,OAAO,GAAI,SAAQ,OAAO;IACtC,OAAgB,WAAW,SAA4D;IAEvF,OAAgB,KAAK;;;;MAInB;IAEW,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC;CAqClC"}
@@ -0,0 +1,55 @@
1
+ // `feat run` — execute the generated test suites (runner subprocess, GAP-D09).
2
+ // --spec filters to a single spec ID. JUnit output per the config report block.
3
+ import { existsSync, readFileSync } from "node:fs";
4
+ import path from "node:path";
5
+ import { Command, Flags } from "@oclif/core";
6
+ import { runTests } from "@mmmnt/feat-runner";
7
+ import { generateAll } from "../pipeline.js";
8
+ export default class Run extends Command {
9
+ static description = "Execute the generated tests with the adapter lifecycle";
10
+ static flags = {
11
+ config: Flags.string({ char: "c", description: "Path to feat.config.json", default: "feat.config.json" }),
12
+ spec: Flags.string({ description: "Run only the spec with this ID (e.g. SPEC-RT-001)" }),
13
+ coverage: Flags.boolean({ description: "Collect coverage via the runner's coverage provider" }),
14
+ };
15
+ async run() {
16
+ const { flags } = await this.parse(Run);
17
+ const root = process.cwd();
18
+ const config = JSON.parse(readFileSync(path.resolve(root, flags.config), "utf8"));
19
+ let files = (await generateAll(root, flags.config)).map((f) => ({
20
+ specId: f.specPath,
21
+ out: f.outputPath,
22
+ content: f.content,
23
+ }));
24
+ if (flags.spec) {
25
+ files = files.filter((f) => f.content.includes(`(${flags.spec})`));
26
+ if (files.length === 0) {
27
+ this.logToStderr(`ERROR no generated test found for spec '${flags.spec}'`);
28
+ this.exit(1);
29
+ }
30
+ }
31
+ const missing = files.filter((f) => !existsSync(f.out));
32
+ if (missing.length > 0) {
33
+ this.logToStderr("ERROR [NOT_GENERATED] Missing generated test files:");
34
+ for (const m of missing)
35
+ this.logToStderr(` ${path.relative(root, m.out)}`);
36
+ this.logToStderr(' Run "feat generate" first.');
37
+ this.exit(1);
38
+ }
39
+ const junit = config.report?.format?.includes("junit") ? config.report.junitOutput : undefined;
40
+ const runOpts = {
41
+ files: files.map((f) => path.relative(root, f.out)),
42
+ root,
43
+ };
44
+ if (junit !== undefined)
45
+ runOpts.junitOutput = junit;
46
+ if (flags.coverage)
47
+ runOpts.coverage = true;
48
+ const result = runTests(runOpts);
49
+ if (result.junitPath)
50
+ this.log(`junit: ${path.relative(root, result.junitPath)}`);
51
+ if (result.exitCode !== 0)
52
+ this.exit(1);
53
+ }
54
+ }
55
+ //# sourceMappingURL=run.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"run.js","sourceRoot":"","sources":["../../src/commands/run.ts"],"names":[],"mappings":"AAAA,+EAA+E;AAC/E,gFAAgF;AAEhF,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACnD,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAE7C,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAC9C,OA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;QAC5C,MAAM,MAAM,GAAG,QAAQ,CAAC,OAAO,CAAC,CAAC;QACjC,IAAI,MAAM,CAAC,SAAS;YAAE,IAAI,CAAC,GAAG,CAAC,UAAU,IAAI,CAAC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC,SAAS,CAAC,EAAE,CAAC,CAAC;QAClF,IAAI,MAAM,CAAC,QAAQ,KAAK,CAAC;YAAE,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAC1C,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { Command } from "@oclif/core";
2
+ export default class Verify extends Command {
3
+ static description: string;
4
+ static flags: {
5
+ config: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
6
+ };
7
+ run(): Promise<void>;
8
+ }
9
+ //# sourceMappingURL=verify.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"verify.d.ts","sourceRoot":"","sources":["../../src/commands/verify.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,OAAO,EAAS,MAAM,aAAa,CAAC;AAG7C,MAAM,CAAC,OAAO,OAAO,MAAO,SAAQ,OAAO;IACzC,OAAgB,WAAW,SAAwE;IAEnG,OAAgB,KAAK;;MAEnB;IAEW,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC;CAuBlC"}
@@ -0,0 +1,40 @@
1
+ // `feat verify` — the CI integrity gate (ADR-0006): regenerate and byte-compare
2
+ // against the committed test files. Any drift fails the build.
3
+ import { existsSync, readFileSync } from "node:fs";
4
+ import path from "node:path";
5
+ import { Command, Flags } from "@oclif/core";
6
+ import { generateAll } from "../pipeline.js";
7
+ export default class Verify extends Command {
8
+ static description = "Verify committed test files match what feat generate would produce";
9
+ static flags = {
10
+ config: Flags.string({ char: "c", description: "Path to feat.config.json", default: "feat.config.json" }),
11
+ };
12
+ async run() {
13
+ const { flags } = await this.parse(Verify);
14
+ const root = process.cwd();
15
+ try {
16
+ const files = await generateAll(root, flags.config);
17
+ const stale = [];
18
+ for (const f of files) {
19
+ const rel = path.relative(root, f.outputPath);
20
+ if (!existsSync(f.outputPath))
21
+ stale.push(`${rel} (missing)`);
22
+ else if (readFileSync(f.outputPath, "utf8") !== f.content)
23
+ stale.push(`${rel} (differs)`);
24
+ }
25
+ if (stale.length > 0) {
26
+ this.logToStderr("ERROR [VERIFY_FAILED] Committed tests do not match current specs:");
27
+ for (const s of stale)
28
+ this.logToStderr(` ${s}`);
29
+ this.logToStderr(' Run "feat generate" and commit the updated files.');
30
+ this.exit(1);
31
+ }
32
+ this.log(`verify: ${files.length} generated file(s) match their specs.`);
33
+ }
34
+ catch (e) {
35
+ this.logToStderr(`ERROR ${String(e.message)}`);
36
+ this.exit(1);
37
+ }
38
+ }
39
+ }
40
+ //# sourceMappingURL=verify.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"verify.js","sourceRoot":"","sources":["../../src/commands/verify.ts"],"names":[],"mappings":"AAAA,gFAAgF;AAChF,+DAA+D;AAE/D,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACnD,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,MAAM,CAAC,OAAO,OAAO,MAAO,SAAQ,OAAO;IACzC,MAAM,CAAU,WAAW,GAAG,oEAAoE,CAAC;IAEnG,MAAM,CAAU,KAAK,GAAG;QACtB,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,GAAG,EAAE,WAAW,EAAE,0BAA0B,EAAE,OAAO,EAAE,kBAAkB,EAAE,CAAC;KAC1G,CAAC;IAEK,KAAK,CAAC,GAAG;QACd,MAAM,EAAE,KAAK,EAAE,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;QAC3C,MAAM,IAAI,GAAG,OAAO,CAAC,GAA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 static description: string;
4
+ static flags: {
5
+ config: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
6
+ };
7
+ run(): Promise<void>;
8
+ }
9
+ //# sourceMappingURL=watch.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"watch.d.ts","sourceRoot":"","sources":["../../src/commands/watch.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,OAAO,EAAS,MAAM,aAAa,CAAC;AAI7C,MAAM,CAAC,OAAO,OAAO,KAAM,SAAQ,OAAO;IACxC,OAAgB,WAAW,SAAqD;IAEhF,OAAgB,KAAK;;MAEnB;IAEW,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC;CAuClC"}
@@ -0,0 +1,53 @@
1
+ // `feat watch` — dev mode: regenerate on .feat/.contract.json/config changes.
2
+ import { watch as fsWatch, readFileSync, writeFileSync } from "node:fs";
3
+ import path from "node:path";
4
+ import { Command, Flags } from "@oclif/core";
5
+ import { generateAll } from "../pipeline.js";
6
+ export default class Watch extends Command {
7
+ static description = "Watch specs and regenerate test files on change";
8
+ static flags = {
9
+ config: Flags.string({ char: "c", description: "Path to feat.config.json", default: "feat.config.json" }),
10
+ };
11
+ async run() {
12
+ const { flags } = await this.parse(Watch);
13
+ const root = process.cwd();
14
+ const config = JSON.parse(readFileSync(path.resolve(root, flags.config), "utf8"));
15
+ let running = false;
16
+ let queued = false;
17
+ const regenerate = async (reason) => {
18
+ if (running) {
19
+ queued = true;
20
+ return;
21
+ }
22
+ running = true;
23
+ try {
24
+ const files = await generateAll(root, flags.config);
25
+ for (const f of files)
26
+ writeFileSync(f.outputPath, f.content);
27
+ this.log(`[watch] ${reason} — regenerated ${files.length} file(s)`);
28
+ }
29
+ catch (e) {
30
+ this.logToStderr(`[watch] ${reason} — ERROR ${e.message}`);
31
+ }
32
+ finally {
33
+ running = false;
34
+ if (queued) {
35
+ queued = false;
36
+ void regenerate("queued change");
37
+ }
38
+ }
39
+ };
40
+ await regenerate("startup");
41
+ const specsRoot = path.resolve(root, config.specs.dir);
42
+ this.log(`[watch] watching ${path.relative(root, specsRoot)}/ (Ctrl-C to stop)`);
43
+ fsWatch(specsRoot, { recursive: true }, (_event, filename) => {
44
+ if (!filename)
45
+ return;
46
+ if (filename.endsWith(".feat") || filename.endsWith(".contract.json"))
47
+ void regenerate(filename);
48
+ });
49
+ // Keep the process alive.
50
+ await new Promise(() => { });
51
+ }
52
+ }
53
+ //# sourceMappingURL=watch.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"watch.js","sourceRoot":"","sources":["../../src/commands/watch.ts"],"names":[],"mappings":"AAAA,8EAA8E;AAE9E,OAAO,EAAE,KAAK,IAAI,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AACxE,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAE7C,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,MAAM,CAAC,OAAO,OAAO,KAAM,SAAQ,OAAO;IACxC,MAAM,CAAU,WAAW,GAAG,iDAAiD,CAAC;IAEhF,MAAM,CAAU,KAAK,GAAG;QACtB,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,GAAG,EAAE,WAAW,EAAE,0BAA0B,EAAE,OAAO,EAAE,kBAAkB,EAAE,CAAC;KAC1G,CAAC;IAEK,KAAK,CAAC,GAAG;QACd,MAAM,EAAE,KAAK,EAAE,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;QAC1C,MAAM,IAAI,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC;QAC3B,MAAM,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,YAAY,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC,CAAe,CAAC;QAEhG,IAAI,OAAO,G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gBAAE,OAAO;YACtB,IAAI,QAAQ,CAAC,QAAQ,CAAC,OAAO,CAAC,IAAI,QAAQ,CAAC,QAAQ,CAAC,gBAAgB,CAAC;gBACnE,KAAK,UAAU,CAAC,QAAQ,CAAC,CAAC;QAC9B,CAAC,CAAC,CAAC;QACH,0BAA0B;QAC1B,MAAM,IAAI,OAAO,CAAC,GAAG,EAAE,GAAE,CAAC,CAAC,CAAC;IAC9B,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { default as Parse } from "./commands/parse.js";
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,qBAAqB,CAAC"}
package/dist/index.js ADDED
@@ -0,0 +1,2 @@
1
+ export { default as Parse } from "./commands/parse.js";
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,qBAAqB,CAAC"}
@@ -0,0 +1,8 @@
1
+ export interface GeneratedFile {
2
+ specPath: string;
3
+ outputPath: string;
4
+ content: string;
5
+ }
6
+ export declare function discoverSpecs(root: string, specsDir: string): string[];
7
+ export declare function generateAll(root: string, configPath: string): Promise<GeneratedFile[]>;
8
+ //# sourceMappingURL=pipeline.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pipeline.d.ts","sourceRoot":"","sources":["../src/pipeline.ts"],"names":[],"mappings":"AAgBA,MAAM,WAAW,aAAa;IAC5B,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,wBAAgB,aAAa,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,MAAM,EAAE,CActE;AAmCD,wBAAsB,WAAW,CAAC,IAAI,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,EAAE,CAAC,CA+D5F"}
@@ -0,0 +1,122 @@
1
+ // The generate pipeline (CLI orchestrates, delegates — Pass 1 dependency rule):
2
+ // discover specs → parse (feat-core) → derive (feat-derive) → resolve schemas/goldens
3
+ // upfront (GAP-S10, CLI-mediated) → emit (feat-emit-ts). Used by `feat generate` (write)
4
+ // and `feat verify` (compare, byte-equality per ADR-0006).
5
+ import { readFileSync, readdirSync, statSync, existsSync } from "node:fs";
6
+ import path from "node:path";
7
+ import { parse } from "@mmmnt/feat-core";
8
+ import { derive } from "@mmmnt/feat-derive";
9
+ import { emit, EMITTER_VERSION } from "@mmmnt/feat-emit-ts";
10
+ // "fixtures" is excluded by convention: fixture .feat files are test vectors
11
+ // (e.g. the parser's bad-input corpus), not project specs.
12
+ const EXCLUDED_DIRS = new Set(["node_modules", "dist", ".turbo", ".git", "coverage", "reports", "fixtures"]);
13
+ export function discoverSpecs(root, specsDir) {
14
+ const out = [];
15
+ const walk = (d) => {
16
+ for (const entry of readdirSync(d)) {
17
+ if (EXCLUDED_DIRS.has(entry))
18
+ continue;
19
+ const p = path.join(d, entry);
20
+ const s = statSync(p);
21
+ if (s.isDirectory())
22
+ walk(p);
23
+ else if (entry.endsWith(".feat"))
24
+ out.push(p);
25
+ }
26
+ };
27
+ const base = path.resolve(root, specsDir);
28
+ if (existsSync(base))
29
+ walk(base);
30
+ return out.sort();
31
+ }
32
+ function resolveContract(contractPath) {
33
+ if (!existsSync(contractPath))
34
+ return { registry: {}, text: "" };
35
+ const text = readFileSync(contractPath, "utf8");
36
+ const doc = JSON.parse(text);
37
+ const registry = {};
38
+ for (const [name, schema] of Object.entries(doc.schemas)) {
39
+ const ref = schema.$ref;
40
+ if (ref && Object.keys(schema).length === 1) {
41
+ const refPath = path.resolve(path.dirname(contractPath), ref);
42
+ registry[name] = JSON.parse(readFileSync(refPath, "utf8"));
43
+ }
44
+ else {
45
+ registry[name] = schema;
46
+ }
47
+ }
48
+ return { registry, text };
49
+ }
50
+ function collectGoldens(topology, specDir) {
51
+ const goldens = {};
52
+ const add = (p) => {
53
+ if (p && goldens[p] === undefined)
54
+ goldens[p] = JSON.parse(readFileSync(path.resolve(specDir, p), "utf8"));
55
+ };
56
+ for (const c of topology.cases) {
57
+ add(c.prediction.response?.golden);
58
+ for (const svc of Object.values(c.prediction.services)) {
59
+ for (const r of svc.records ?? [])
60
+ add(r.golden);
61
+ for (const r of svc.contains ?? [])
62
+ add(r.golden);
63
+ }
64
+ }
65
+ return goldens;
66
+ }
67
+ export async function generateAll(root, configPath) {
68
+ const configAbs = path.resolve(root, configPath);
69
+ const config = JSON.parse(readFileSync(configAbs, "utf8"));
70
+ const specs = discoverSpecs(root, config.specs.dir);
71
+ const results = [];
72
+ for (const specAbs of specs) {
73
+ const specRel = path.relative(root, specAbs);
74
+ const parsed = await parse({ spec: specRel, config: configPath });
75
+ if (parsed.status === "ERR")
76
+ throw new Error(`Parse failed for ${specRel}: ${JSON.stringify(parsed.body)}`);
77
+ const spec = parsed.body;
78
+ const topology = derive(spec, config);
79
+ const specDir = path.dirname(specAbs);
80
+ // Seed fixtures inline at generate time (ADR-0003 fixture form; keeps derive pure
81
+ // and generated tests self-contained per ADR-0001).
82
+ for (const c of topology.cases) {
83
+ if (!c.given?.seeds)
84
+ continue;
85
+ c.given.seeds = c.given.seeds.map((seed) => {
86
+ if ("fixture" in seed) {
87
+ const records = JSON.parse(readFileSync(path.resolve(specDir, seed.fixture), "utf8"));
88
+ return { service: seed.service, records };
89
+ }
90
+ return seed;
91
+ });
92
+ }
93
+ const baseName = path.basename(specAbs, ".feat");
94
+ const contractPath = path.join(specDir, `${baseName}.contract.json`);
95
+ const { registry, text: contractText } = resolveContract(contractPath);
96
+ const goldens = collectGoldens(topology, specDir);
97
+ const content = emit({
98
+ topology,
99
+ schemas: registry,
100
+ goldens,
101
+ hashInputs: {
102
+ specText: readFileSync(specAbs, "utf8"),
103
+ contractText,
104
+ configSlice: {
105
+ featVersion: config.featVersion,
106
+ response: config.response
107
+ ? { adapter: config.response.adapter, commands: config.response.commands, actors: config.response.actors }
108
+ : undefined,
109
+ services: config.services,
110
+ },
111
+ },
112
+ specPath: specRel,
113
+ configPath: path.relative(specDir, configAbs),
114
+ emitterVersion: EMITTER_VERSION,
115
+ featVersion: spec.featVersion,
116
+ });
117
+ const outputPath = path.join(specDir, config.specs.outputPattern.replace("{name}", baseName));
118
+ results.push({ specPath: specRel, outputPath, content });
119
+ }
120
+ return results;
121
+ }
122
+ //# sourceMappingURL=pipeline.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pipeline.js","sourceRoot":"","sources":["../src/pipeline.ts"],"names":[],"mappings":"AAAA,gFAAgF;AAChF,sFAAsF;AACtF,yFAAyF;AACzF,2DAA2D;AAE3D,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAC1E,OAAO,IAAI,MAAM,WAAW,CAAC;AAE7B,OAAO,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AACzC,OAAO,EAAE,MAAM,EAAqB,MAAM,oBAAoB,CAAC;AAC/D,OAAO,EAAE,IAAI,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAE5D,6EAA6E;AAC7E,2DAA2D;AAC3D,MAAM,aAAa,GAAG,IAAI,GAAG,CAAC,CAAC,cAAc,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,UAAU,EAAE,SAAS,EAAE,UAAU,CAAC,CAAC,CAAC;AAQ7G,MAAM,UAAU,aAAa,CAAC,IAAY,EAAE,QAAgB;IAC1D,MAAM,GAAG,GAAa,EAAE,CAAC;IACzB,MAAM,IAAI,GAAG,CAAC,CAAS,EAAE,EAAE;QACzB,KAAK,MAAM,KAAK,IAAI,WAAW,CAAC,CAAC,CAAC,EAAE,CAAC;YAC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AS,CAAC;YAC7C,cAAc,EAAE,eAAe;YAC/B,WAAW,EAAE,IAAI,CAAC,WAAW;SAC9B,CAAC,CAAC;QAEH,MAAM,UAAU,GAAG,IAAI,CAAC,IAAI,CAC1B,OAAO,EACP,MAAM,CAAC,KAAK,CAAC,aAAa,CAAC,OAAO,CAAC,QAAQ,EAAE,QAAQ,CAAC,CACvD,CAAC;QACF,OAAO,CAAC,IAAI,CAAC,EAAE,QAAQ,EAAE,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,CAAC,CAAC;IAC3D,CAAC;IACD,OAAO,OAAO,CAAC;AACjB,CAAC"}
package/package.json ADDED
@@ -0,0 +1,50 @@
1
+ {
2
+ "name": "@mmmnt/feature",
3
+ "version": "0.1.0",
4
+ "description": "The feat CLI — Feature, the quality spine of AI-native delivery.",
5
+ "license": "MIT",
6
+ "type": "module",
7
+ "bin": {
8
+ "feat": "./bin/run.js"
9
+ },
10
+ "main": "./dist/index.js",
11
+ "files": [
12
+ "bin",
13
+ "dist"
14
+ ],
15
+ "oclif": {
16
+ "bin": "feat",
17
+ "dirname": "feat",
18
+ "commands": "./dist/commands",
19
+ "topicSeparator": " "
20
+ },
21
+ "dependencies": {
22
+ "@oclif/core": "^4.3.0",
23
+ "@mmmnt/feat-core": "0.1.0",
24
+ "@mmmnt/feat-derive": "0.1.0",
25
+ "@mmmnt/feat-emit-ts": "0.1.0",
26
+ "@mmmnt/feat-runtime": "0.1.0",
27
+ "@mmmnt/feat-types": "0.1.0",
28
+ "@mmmnt/feat-runner": "0.1.0"
29
+ },
30
+ "devDependencies": {
31
+ "vitest": "^3.2.0"
32
+ },
33
+ "repository": {
34
+ "type": "git",
35
+ "url": "git+https://github.com/mmmnt/feature.git",
36
+ "directory": "packages/feature"
37
+ },
38
+ "homepage": "https://github.com/mmmnt/feature#readme",
39
+ "bugs": {
40
+ "url": "https://github.com/mmmnt/feature/issues"
41
+ },
42
+ "publishConfig": {
43
+ "access": "public"
44
+ },
45
+ "scripts": {
46
+ "build": "tsc -p tsconfig.json",
47
+ "typecheck": "tsc -p tsconfig.json --noEmit",
48
+ "test": "vitest run"
49
+ }
50
+ }