@mmmnt/feature 0.1.2 → 0.1.5
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/dist/commands/watch.d.ts
CHANGED
|
@@ -3,6 +3,9 @@ export default class Watch extends Command {
|
|
|
3
3
|
static description: string;
|
|
4
4
|
static flags: {
|
|
5
5
|
config: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
6
|
+
run: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
7
|
+
json: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
8
|
+
src: import("@oclif/core/interfaces").OptionFlag<string[], import("@oclif/core/interfaces").CustomOptions>;
|
|
6
9
|
};
|
|
7
10
|
run(): Promise<void>;
|
|
8
11
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"watch.d.ts","sourceRoot":"","sources":["../../src/commands/watch.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"watch.d.ts","sourceRoot":"","sources":["../../src/commands/watch.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,OAAO,EAAS,MAAM,aAAa,CAAC;AAY7C,MAAM,CAAC,OAAO,OAAO,KAAM,SAAQ,OAAO;IACxC,OAAgB,WAAW,SAAwF;IAEnH,OAAgB,KAAK;;;;;MASnB;IAEW,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC;CAoIlC"}
|
package/dist/commands/watch.js
CHANGED
|
@@ -1,51 +1,158 @@
|
|
|
1
|
-
// `feat watch` — dev mode: regenerate on .feat/.contract.json/config changes
|
|
2
|
-
|
|
1
|
+
// `feat watch` — dev mode: regenerate on .feat/.contract.json/config changes,
|
|
2
|
+
// optionally run affected suites (--run), optionally emit NDJSON events for
|
|
3
|
+
// machine consumption (--json, implies --run) — the IDE-integration surface.
|
|
4
|
+
import { watch as fsWatch, existsSync, readFileSync, writeFileSync, rmSync } from "node:fs";
|
|
5
|
+
import { createHash, randomUUID } from "node:crypto";
|
|
3
6
|
import path from "node:path";
|
|
4
7
|
import { Command, Flags } from "@oclif/core";
|
|
8
|
+
import { runTests } from "@mmmnt/feat-runner";
|
|
5
9
|
import { generateAll } from "../pipeline.js";
|
|
6
10
|
export default class Watch extends Command {
|
|
7
|
-
static description = "Watch specs
|
|
11
|
+
static description = "Watch specs, regenerate test files, and (optionally) run affected suites on change";
|
|
8
12
|
static flags = {
|
|
9
13
|
config: Flags.string({ char: "c", description: "Path to feat.config.json", default: "feat.config.json" }),
|
|
14
|
+
run: Flags.boolean({ description: "Run affected generated suites after each regeneration", default: false }),
|
|
15
|
+
json: Flags.boolean({ description: "Emit NDJSON events to stdout (implies --run)", default: false }),
|
|
16
|
+
src: Flags.string({
|
|
17
|
+
multiple: true,
|
|
18
|
+
description: "Additional directory to watch; changes rerun all suites without regeneration (repeatable)",
|
|
19
|
+
default: [],
|
|
20
|
+
}),
|
|
10
21
|
};
|
|
11
22
|
async run() {
|
|
12
23
|
const { flags } = await this.parse(Watch);
|
|
24
|
+
const doRun = flags.run || flags.json;
|
|
13
25
|
const root = process.cwd();
|
|
14
26
|
const config = JSON.parse(readFileSync(path.resolve(root, flags.config), "utf8"));
|
|
27
|
+
const lastHash = new Map();
|
|
28
|
+
const emit = (event) => {
|
|
29
|
+
if (flags.json)
|
|
30
|
+
this.log(JSON.stringify({ ts: new Date().toISOString(), ...event }));
|
|
31
|
+
};
|
|
32
|
+
const say = (msg) => {
|
|
33
|
+
if (!flags.json)
|
|
34
|
+
this.log(`[watch] ${msg}`);
|
|
35
|
+
};
|
|
36
|
+
const runSuites = (targets) => {
|
|
37
|
+
if (targets.length === 0)
|
|
38
|
+
return;
|
|
39
|
+
const jsonOutput = flags.json ? path.join(".feat-watch", `run-${randomUUID()}.json`) : undefined;
|
|
40
|
+
const opts = {
|
|
41
|
+
files: targets.map((t) => path.relative(root, t.outputPath)),
|
|
42
|
+
root,
|
|
43
|
+
quiet: flags.json,
|
|
44
|
+
};
|
|
45
|
+
if (jsonOutput)
|
|
46
|
+
opts.jsonOutput = jsonOutput;
|
|
47
|
+
const result = runTests(opts);
|
|
48
|
+
if (!flags.json) {
|
|
49
|
+
say(result.exitCode === 0 ? "suites green" : "PREDICTION VIOLATIONS (see above)");
|
|
50
|
+
return;
|
|
51
|
+
}
|
|
52
|
+
let cases = [];
|
|
53
|
+
if (result.jsonPath && existsSync(result.jsonPath)) {
|
|
54
|
+
try {
|
|
55
|
+
const report = JSON.parse(readFileSync(result.jsonPath, "utf8"));
|
|
56
|
+
cases = (report.testResults ?? []).flatMap((f) => (f.assertionResults ?? []).map((a) => {
|
|
57
|
+
const c = {
|
|
58
|
+
suite: (a.ancestorTitles ?? []).join(" › "),
|
|
59
|
+
name: a.title ?? "",
|
|
60
|
+
state: a.status === "passed" ? "passed" : a.status === "failed" ? "failed" : "skipped",
|
|
61
|
+
};
|
|
62
|
+
const msg = (a.failureMessages ?? [])[0];
|
|
63
|
+
if (msg !== undefined)
|
|
64
|
+
c.message = msg;
|
|
65
|
+
return c;
|
|
66
|
+
}));
|
|
67
|
+
}
|
|
68
|
+
catch {
|
|
69
|
+
// Malformed report: fall through with empty cases; exitCode still signals.
|
|
70
|
+
}
|
|
71
|
+
rmSync(result.jsonPath, { force: true });
|
|
72
|
+
}
|
|
73
|
+
emit({
|
|
74
|
+
event: "run",
|
|
75
|
+
exitCode: result.exitCode,
|
|
76
|
+
suites: targets.map((t) => ({ spec: path.relative(root, t.specPath), output: path.relative(root, t.outputPath) })),
|
|
77
|
+
cases,
|
|
78
|
+
});
|
|
79
|
+
};
|
|
15
80
|
let running = false;
|
|
16
|
-
let queued =
|
|
17
|
-
const
|
|
81
|
+
let queued = null;
|
|
82
|
+
const cycle = async (reason, regen) => {
|
|
18
83
|
if (running) {
|
|
19
|
-
queued =
|
|
84
|
+
queued = reason;
|
|
20
85
|
return;
|
|
21
86
|
}
|
|
22
87
|
running = true;
|
|
23
88
|
try {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
89
|
+
let targets = [];
|
|
90
|
+
if (regen) {
|
|
91
|
+
const files = await generateAll(root, flags.config);
|
|
92
|
+
const changed = [];
|
|
93
|
+
for (const f of files) {
|
|
94
|
+
const hash = createHash("sha256").update(f.content).digest("hex");
|
|
95
|
+
if (lastHash.get(f.outputPath) !== hash) {
|
|
96
|
+
writeFileSync(f.outputPath, f.content);
|
|
97
|
+
lastHash.set(f.outputPath, hash);
|
|
98
|
+
changed.push({ specPath: f.specPath, outputPath: f.outputPath });
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
say(`${reason} — ${files.length} spec(s), ${changed.length} regenerated`);
|
|
102
|
+
emit({
|
|
103
|
+
event: "generate",
|
|
104
|
+
reason,
|
|
105
|
+
files: files.map((f) => ({ spec: path.relative(root, f.specPath), output: path.relative(root, f.outputPath) })),
|
|
106
|
+
changed: changed.map((f) => path.relative(root, f.outputPath)),
|
|
107
|
+
});
|
|
108
|
+
// Startup runs everything; later cycles run only suites whose bytes changed.
|
|
109
|
+
targets = reason === "startup" ? files.map((f) => ({ specPath: f.specPath, outputPath: f.outputPath })) : changed;
|
|
110
|
+
}
|
|
111
|
+
else {
|
|
112
|
+
// Source change: implementation moved under the specs — rerun everything.
|
|
113
|
+
const files = await generateAll(root, flags.config);
|
|
114
|
+
targets = files.map((f) => ({ specPath: f.specPath, outputPath: f.outputPath }));
|
|
115
|
+
say(`${reason} — source change, rerunning ${targets.length} suite(s)`);
|
|
116
|
+
emit({ event: "source-change", reason });
|
|
117
|
+
}
|
|
118
|
+
if (doRun)
|
|
119
|
+
runSuites(targets);
|
|
28
120
|
}
|
|
29
121
|
catch (e) {
|
|
30
|
-
|
|
122
|
+
say(`${reason} — ERROR ${e.message}`);
|
|
123
|
+
emit({ event: "error", reason, message: e.message });
|
|
31
124
|
}
|
|
32
125
|
finally {
|
|
33
126
|
running = false;
|
|
34
|
-
if (queued) {
|
|
35
|
-
|
|
36
|
-
|
|
127
|
+
if (queued !== null) {
|
|
128
|
+
const next = queued;
|
|
129
|
+
queued = null;
|
|
130
|
+
void cycle(next, true);
|
|
37
131
|
}
|
|
38
132
|
}
|
|
39
133
|
};
|
|
40
|
-
await
|
|
134
|
+
await cycle("startup", true);
|
|
41
135
|
const specsRoot = path.resolve(root, config.specs.dir);
|
|
42
|
-
|
|
136
|
+
say(`watching ${path.relative(root, specsRoot) || "."}/ (Ctrl-C to stop)`);
|
|
43
137
|
fsWatch(specsRoot, { recursive: true }, (_event, filename) => {
|
|
44
138
|
if (!filename)
|
|
45
139
|
return;
|
|
46
140
|
if (filename.endsWith(".feat") || filename.endsWith(".contract.json"))
|
|
47
|
-
void
|
|
141
|
+
void cycle(filename, true);
|
|
48
142
|
});
|
|
143
|
+
for (const dir of flags.src) {
|
|
144
|
+
const abs = path.resolve(root, dir);
|
|
145
|
+
if (!existsSync(abs)) {
|
|
146
|
+
say(`--src ${dir}: directory not found, skipping`);
|
|
147
|
+
continue;
|
|
148
|
+
}
|
|
149
|
+
say(`watching ${dir}/ (source)`);
|
|
150
|
+
fsWatch(abs, { recursive: true }, (_event, filename) => {
|
|
151
|
+
if (!filename || filename.endsWith(".test.ts"))
|
|
152
|
+
return;
|
|
153
|
+
void cycle(`${dir}/${filename}`, false);
|
|
154
|
+
});
|
|
155
|
+
}
|
|
49
156
|
// Keep the process alive.
|
|
50
157
|
await new Promise(() => { });
|
|
51
158
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"watch.js","sourceRoot":"","sources":["../../src/commands/watch.ts"],"names":[],"mappings":"AAAA,8EAA8E;
|
|
1
|
+
{"version":3,"file":"watch.js","sourceRoot":"","sources":["../../src/commands/watch.ts"],"names":[],"mappings":"AAAA,8EAA8E;AAC9E,4EAA4E;AAC5E,6EAA6E;AAE7E,OAAO,EAAE,KAAK,IAAI,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AAC5F,OAAO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AAC,IAAI,QAAQ,CAAC,QAAQ,CAAC,gBAAgB,CAAC;gBAAE,KAAK,KAAK,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC;QACpG,CAAC,CAAC,CAAC;QACH,KAAK,MAAM,GAAG,IAAI,KAAK,CAAC,GAAG,EAAE,CAAC;YAC5B,MAAM,GAAG,GAAG,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;YACpC,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,EAAE,CAAC;gBACrB,GAAG,CAAC,SAAS,GAAG,iCAAiC,CAAC,CAAC;gBACnD,SAAS;YACX,CAAC;YACD,GAAG,CAAC,YAAY,GAAG,YAAY,CAAC,CAAC;YACjC,OAAO,CAAC,GAAG,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,EAAE,CAAC,MAAM,EAAE,QAAQ,EAAE,EAAE;gBACrD,IAAI,CAAC,QAAQ,IAAI,QAAQ,CAAC,QAAQ,CAAC,UAAU,CAAC;oBAAE,OAAO;gBACvD,KAAK,KAAK,CAAC,GAAG,GAAG,IAAI,QAAQ,EAAE,EAAE,KAAK,CAAC,CAAC;YAC1C,CAAC,CAAC,CAAC;QACL,CAAC;QACD,0BAA0B;QAC1B,MAAM,IAAI,OAAO,CAAC,GAAG,EAAE,GAAE,CAAC,CAAC,CAAC;IAC9B,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mmmnt/feature",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.5",
|
|
4
4
|
"description": "The feat CLI — Feature, the quality spine of AI-native delivery.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -20,12 +20,12 @@
|
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@oclif/core": "^4.3.0",
|
|
23
|
-
"@mmmnt/feat-
|
|
24
|
-
"@mmmnt/feat-
|
|
25
|
-
"@mmmnt/feat-
|
|
26
|
-
"@mmmnt/feat-runtime": "0.1.
|
|
27
|
-
"@mmmnt/feat-types": "0.1.2",
|
|
28
|
-
"@mmmnt/feat-runner": "0.1.
|
|
23
|
+
"@mmmnt/feat-derive": "^0.1.4",
|
|
24
|
+
"@mmmnt/feat-emit-ts": "^0.1.4",
|
|
25
|
+
"@mmmnt/feat-core": "^0.1.4",
|
|
26
|
+
"@mmmnt/feat-runtime": "^0.1.4",
|
|
27
|
+
"@mmmnt/feat-types": "^0.1.2",
|
|
28
|
+
"@mmmnt/feat-runner": "^0.1.5"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"vitest": "^3.2.0"
|