@auto-engineer/server-checks 1.77.0 → 1.79.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/CHANGELOG.md +74 -0
- package/dist/src/commands/check-lint.d.ts +4 -0
- package/dist/src/commands/check-lint.d.ts.map +1 -1
- package/dist/src/commands/check-lint.js +29 -185
- package/dist/src/commands/check-lint.js.map +1 -1
- package/dist/src/commands/check-tests.d.ts.map +1 -1
- package/dist/src/commands/check-tests.js +1 -15
- package/dist/src/commands/check-tests.js.map +1 -1
- package/dist/src/commands/check-types.d.ts +4 -0
- package/dist/src/commands/check-types.d.ts.map +1 -1
- package/dist/src/commands/check-types.js +23 -135
- package/dist/src/commands/check-types.js.map +1 -1
- package/dist/src/find-project-root.d.ts +2 -0
- package/dist/src/find-project-root.d.ts.map +1 -0
- package/dist/src/find-project-root.js +16 -0
- package/dist/src/find-project-root.js.map +1 -0
- package/dist/src/index.d.ts +3 -0
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +3 -0
- package/dist/src/index.js.map +1 -1
- package/dist/src/run-lint-check.d.ts +18 -0
- package/dist/src/run-lint-check.d.ts.map +1 -0
- package/dist/src/run-lint-check.js +200 -0
- package/dist/src/run-lint-check.js.map +1 -0
- package/dist/src/run-type-check.d.ts +14 -0
- package/dist/src/run-type-check.d.ts.map +1 -0
- package/dist/src/run-type-check.js +70 -0
- package/dist/src/run-type-check.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,79 @@
|
|
|
1
1
|
# @auto-engineer/server-checks
|
|
2
2
|
|
|
3
|
+
## 1.79.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`ec198e5`](https://github.com/BeOnAuto/auto-engineer/commit/ec198e559e662df16611ba433c56938304a869b6) Thanks [@rami-hatoum](https://github.com/rami-hatoum)! - - **server-checks**: extract findProjectRoot into shared module
|
|
8
|
+
|
|
9
|
+
- [`f460341`](https://github.com/BeOnAuto/auto-engineer/commit/f46034125e102b216d35a59f7260170480dc7fa4) Thanks [@rami-hatoum](https://github.com/rami-hatoum)! - - **server-checks**: extract runTypeCheck core logic
|
|
10
|
+
|
|
11
|
+
- [`ec1480d`](https://github.com/BeOnAuto/auto-engineer/commit/ec1480d6431df13948ae26dc2ad691c28ddafdf8) Thanks [@github-actions[bot]](https://github.com/github-actions%5Bbot%5D)! - - **react-component-implementer**: add aesthetic quality checks to visual evaluator
|
|
12
|
+
- **app-implementer**: add comprehensive recipe-based visual design system
|
|
13
|
+
- **react-component-implementer**: replace design principles with Tailwind recipes
|
|
14
|
+
- **global**: version packages
|
|
15
|
+
- **react-component-implementer**: finalize ketchup plan for design system upgrade
|
|
16
|
+
|
|
17
|
+
- [`8eb0244`](https://github.com/BeOnAuto/auto-engineer/commit/8eb02443763228e8182cfb3c30606e94cc9f0c30) Thanks [@rami-hatoum](https://github.com/rami-hatoum)! - - **server-checks**: extract runLintCheck core logic
|
|
18
|
+
|
|
19
|
+
### Patch Changes
|
|
20
|
+
|
|
21
|
+
- [`506b0b4`](https://github.com/BeOnAuto/auto-engineer/commit/506b0b4810247e10c0896d45a37f4f0610d53455) Thanks [@rami-hatoum](https://github.com/rami-hatoum)! - - **react-component-implementer**: replace Message[] with ChatTurn in RefinementHistory
|
|
22
|
+
|
|
23
|
+
- [`087f977`](https://github.com/BeOnAuto/auto-engineer/commit/087f9776128b0610b945f23d0f4c3bc1a3d816dd) Thanks [@rami-hatoum](https://github.com/rami-hatoum)! - - **app-implementer**: replace Message[] with ChatTurn in RefinementHistory
|
|
24
|
+
|
|
25
|
+
- [`9bc98b4`](https://github.com/BeOnAuto/auto-engineer/commit/9bc98b4f384fa3417447e65286b015e1e10e63e9) Thanks [@rami-hatoum](https://github.com/rami-hatoum)! - - **server-checks**: slim CheckLint handler to delegate to runLintCheck
|
|
26
|
+
|
|
27
|
+
- [`b3ed5c1`](https://github.com/BeOnAuto/auto-engineer/commit/b3ed5c10575d00ca106237137bafc3524e8e9d82) Thanks [@rami-hatoum](https://github.com/rami-hatoum)! - - **server-generator-apollo-emmett**: ketchup plan for slim ReadModel API
|
|
28
|
+
|
|
29
|
+
- [`9c7ad8f`](https://github.com/BeOnAuto/auto-engineer/commit/9c7ad8fb3dd5d8321a80c4035baa9fe20701b651) Thanks [@rami-hatoum](https://github.com/rami-hatoum)! - - **global**: ketchup plan for LLM context growth optimization
|
|
30
|
+
|
|
31
|
+
- [`cedc3c0`](https://github.com/BeOnAuto/auto-engineer/commit/cedc3c0995af6025ab3d38a5a65d5bec9b4ecc7d) Thanks [@rami-hatoum](https://github.com/rami-hatoum)! - - **model-factory**: add ChatMessage and ChatTurn types for refinement history
|
|
32
|
+
|
|
33
|
+
- [`9757597`](https://github.com/BeOnAuto/auto-engineer/commit/9757597a1e562dfe81efa2de128aa10e8d091c79) Thanks [@rami-hatoum](https://github.com/rami-hatoum)! - - **server-checks**: add ketchup plan for unify check commands
|
|
34
|
+
|
|
35
|
+
- [`8104cc8`](https://github.com/BeOnAuto/auto-engineer/commit/8104cc82e7193c6a1a52a60da844a3e3fdb20b3b) Thanks [@rami-hatoum](https://github.com/rami-hatoum)! - - **server-checks**: export findProjectRoot, runTypeCheck, runLintCheck from index
|
|
36
|
+
|
|
37
|
+
- [`0bdb8d9`](https://github.com/BeOnAuto/auto-engineer/commit/0bdb8d9e606ce702cb7bbe81cbdc1f55fff58881) Thanks [@rami-hatoum](https://github.com/rami-hatoum)! - - **server-checks**: finalize ketchup plan for unify check commands
|
|
38
|
+
|
|
39
|
+
- [`31f65ac`](https://github.com/BeOnAuto/auto-engineer/commit/31f65acb9dfb656edfd482afc454bb4373b1d29d) Thanks [@rami-hatoum](https://github.com/rami-hatoum)! - - **server-generator-apollo-emmett**: slim ReadModel API to find + findOne
|
|
40
|
+
|
|
41
|
+
- [`25f8375`](https://github.com/BeOnAuto/auto-engineer/commit/25f8375ac181f09ff50aca3bccc3132b97814637) Thanks [@rami-hatoum](https://github.com/rami-hatoum)! - - **react-component-implementer**: replace lint-tier with runLintCheck, delete type-checker
|
|
42
|
+
|
|
43
|
+
- [`ab92096`](https://github.com/BeOnAuto/auto-engineer/commit/ab920961c9fd7515be9c09b4dbb1054bf03c94b9) Thanks [@rami-hatoum](https://github.com/rami-hatoum)! - - **react-component-implementer**: replace type-check-tier with runTypeCheck
|
|
44
|
+
|
|
45
|
+
- [`bcd8c4a`](https://github.com/BeOnAuto/auto-engineer/commit/bcd8c4a1e5e3d867c248d6bd55f66d7ef4863f46) Thanks [@rami-hatoum](https://github.com/rami-hatoum)! - - **server-checks**: use shared findProjectRoot in check-tests
|
|
46
|
+
|
|
47
|
+
- [`41ed452`](https://github.com/BeOnAuto/auto-engineer/commit/41ed4525bc796b1bdc1825fed20dd9f336108ca8) Thanks [@rami-hatoum](https://github.com/rami-hatoum)! - - **server-checks**: slim CheckTypes handler to delegate to runTypeCheck
|
|
48
|
+
|
|
49
|
+
- Updated dependencies [[`506b0b4`](https://github.com/BeOnAuto/auto-engineer/commit/506b0b4810247e10c0896d45a37f4f0610d53455), [`087f977`](https://github.com/BeOnAuto/auto-engineer/commit/087f9776128b0610b945f23d0f4c3bc1a3d816dd), [`9bc98b4`](https://github.com/BeOnAuto/auto-engineer/commit/9bc98b4f384fa3417447e65286b015e1e10e63e9), [`b3ed5c1`](https://github.com/BeOnAuto/auto-engineer/commit/b3ed5c10575d00ca106237137bafc3524e8e9d82), [`ec198e5`](https://github.com/BeOnAuto/auto-engineer/commit/ec198e559e662df16611ba433c56938304a869b6), [`9c7ad8f`](https://github.com/BeOnAuto/auto-engineer/commit/9c7ad8fb3dd5d8321a80c4035baa9fe20701b651), [`cedc3c0`](https://github.com/BeOnAuto/auto-engineer/commit/cedc3c0995af6025ab3d38a5a65d5bec9b4ecc7d), [`f460341`](https://github.com/BeOnAuto/auto-engineer/commit/f46034125e102b216d35a59f7260170480dc7fa4), [`9757597`](https://github.com/BeOnAuto/auto-engineer/commit/9757597a1e562dfe81efa2de128aa10e8d091c79), [`8104cc8`](https://github.com/BeOnAuto/auto-engineer/commit/8104cc82e7193c6a1a52a60da844a3e3fdb20b3b), [`ec1480d`](https://github.com/BeOnAuto/auto-engineer/commit/ec1480d6431df13948ae26dc2ad691c28ddafdf8), [`0bdb8d9`](https://github.com/BeOnAuto/auto-engineer/commit/0bdb8d9e606ce702cb7bbe81cbdc1f55fff58881), [`31f65ac`](https://github.com/BeOnAuto/auto-engineer/commit/31f65acb9dfb656edfd482afc454bb4373b1d29d), [`25f8375`](https://github.com/BeOnAuto/auto-engineer/commit/25f8375ac181f09ff50aca3bccc3132b97814637), [`ab92096`](https://github.com/BeOnAuto/auto-engineer/commit/ab920961c9fd7515be9c09b4dbb1054bf03c94b9), [`bcd8c4a`](https://github.com/BeOnAuto/auto-engineer/commit/bcd8c4a1e5e3d867c248d6bd55f66d7ef4863f46), [`41ed452`](https://github.com/BeOnAuto/auto-engineer/commit/41ed4525bc796b1bdc1825fed20dd9f336108ca8), [`8eb0244`](https://github.com/BeOnAuto/auto-engineer/commit/8eb02443763228e8182cfb3c30606e94cc9f0c30)]:
|
|
50
|
+
- @auto-engineer/cli@1.79.0
|
|
51
|
+
- @auto-engineer/message-bus@1.79.0
|
|
52
|
+
|
|
53
|
+
## 1.78.0
|
|
54
|
+
|
|
55
|
+
### Minor Changes
|
|
56
|
+
|
|
57
|
+
- [`4b29a2e`](https://github.com/BeOnAuto/auto-engineer/commit/4b29a2e95bec496ea403593a200664b10645c0cb) Thanks [@osamanar](https://github.com/osamanar)! - - **react-component-implementer**: add aesthetic quality checks to visual evaluator
|
|
58
|
+
|
|
59
|
+
- [`56de1d6`](https://github.com/BeOnAuto/auto-engineer/commit/56de1d6bd0b63c988847cbaa1027f0e934f2f5d7) Thanks [@osamanar](https://github.com/osamanar)! - - **app-implementer**: add comprehensive recipe-based visual design system
|
|
60
|
+
|
|
61
|
+
- [`73ffce3`](https://github.com/BeOnAuto/auto-engineer/commit/73ffce321cbc5e0a6c91506ccfe6c7ee7635a1ee) Thanks [@github-actions[bot]](https://github.com/github-actions%5Bbot%5D)! - - **packages/react-component-implementer**: fixes component generation
|
|
62
|
+
- **react-component-implementer**: add comprehensive visual design system to prompt
|
|
63
|
+
- **global**: version packages
|
|
64
|
+
|
|
65
|
+
- [`e9a92e0`](https://github.com/BeOnAuto/auto-engineer/commit/e9a92e0244299674e0071bc8afa5b0f38eb10e85) Thanks [@osamanar](https://github.com/osamanar)! - - **react-component-implementer**: replace design principles with Tailwind recipes
|
|
66
|
+
|
|
67
|
+
### Patch Changes
|
|
68
|
+
|
|
69
|
+
- [`3045eb6`](https://github.com/BeOnAuto/auto-engineer/commit/3045eb6a8e26213660562eaa480b5b50478bde0c) Thanks [@osamanar](https://github.com/osamanar)! - - **react-component-implementer**: finalize ketchup plan for design system upgrade
|
|
70
|
+
|
|
71
|
+
- [`953ade0`](https://github.com/BeOnAuto/auto-engineer/commit/953ade01f373b9259f853310a3dd43a0f06d56bf) Thanks [@osamanar](https://github.com/osamanar)! - - **react-component-implementer**: add ketchup plan for visual design system upgrade
|
|
72
|
+
|
|
73
|
+
- Updated dependencies [[`4b29a2e`](https://github.com/BeOnAuto/auto-engineer/commit/4b29a2e95bec496ea403593a200664b10645c0cb), [`56de1d6`](https://github.com/BeOnAuto/auto-engineer/commit/56de1d6bd0b63c988847cbaa1027f0e934f2f5d7), [`3045eb6`](https://github.com/BeOnAuto/auto-engineer/commit/3045eb6a8e26213660562eaa480b5b50478bde0c), [`953ade0`](https://github.com/BeOnAuto/auto-engineer/commit/953ade01f373b9259f853310a3dd43a0f06d56bf), [`73ffce3`](https://github.com/BeOnAuto/auto-engineer/commit/73ffce321cbc5e0a6c91506ccfe6c7ee7635a1ee), [`e9a92e0`](https://github.com/BeOnAuto/auto-engineer/commit/e9a92e0244299674e0071bc8afa5b0f38eb10e85)]:
|
|
74
|
+
- @auto-engineer/cli@1.78.0
|
|
75
|
+
- @auto-engineer/message-bus@1.78.0
|
|
76
|
+
|
|
3
77
|
## 1.77.0
|
|
4
78
|
|
|
5
79
|
### Minor Changes
|
|
@@ -3,6 +3,8 @@ export type CheckLintCommand = Command<'CheckLint', {
|
|
|
3
3
|
targetDirectory: string;
|
|
4
4
|
scope?: 'slice' | 'project';
|
|
5
5
|
fix?: boolean;
|
|
6
|
+
linter?: 'eslint' | 'biome';
|
|
7
|
+
files?: string[];
|
|
6
8
|
}>;
|
|
7
9
|
export type LintCheckPassedEvent = Event<'LintCheckPassed', {
|
|
8
10
|
targetDirectory: string;
|
|
@@ -23,6 +25,8 @@ export declare const commandHandler: import("@auto-engineer/message-bus").Unifie
|
|
|
23
25
|
targetDirectory: string;
|
|
24
26
|
scope?: "slice" | "project";
|
|
25
27
|
fix?: boolean;
|
|
28
|
+
linter?: "eslint" | "biome";
|
|
29
|
+
files?: string[];
|
|
26
30
|
}>;
|
|
27
31
|
timestamp?: Date;
|
|
28
32
|
requestId?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"check-lint.d.ts","sourceRoot":"","sources":["../../../src/commands/check-lint.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"check-lint.d.ts","sourceRoot":"","sources":["../../../src/commands/check-lint.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,OAAO,EAAwB,KAAK,KAAK,EAAE,MAAM,4BAA4B,CAAC;AAM5F,MAAM,MAAM,gBAAgB,GAAG,OAAO,CACpC,WAAW,EACX;IACE,eAAe,EAAE,MAAM,CAAC;IACxB,KAAK,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC5B,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,MAAM,CAAC,EAAE,QAAQ,GAAG,OAAO,CAAC;IAC5B,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;CAClB,CACF,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG,KAAK,CACtC,iBAAiB,EACjB;IACE,eAAe,EAAE,MAAM,CAAC;IACxB,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,CACF,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG,KAAK,CACtC,iBAAiB,EACjB;IACE,eAAe,EAAE,MAAM,CAAC;IACxB,MAAM,EAAE,MAAM,CAAC;IACf,eAAe,EAAE,MAAM,EAAE,CAAC;IAC1B,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,MAAM,CAAC;CACtB,CACF,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG,oBAAoB,GAAG,oBAAoB,CAAC;AAE1E,eAAO,MAAM,cAAc;;;yBA9BN,MAAM;gBACf,OAAO,GAAG,SAAS;cACrB,OAAO;iBACJ,QAAQ,GAAG,OAAO;gBACnB,MAAM,EAAE;;;;;GAoHlB,CAAC;AAEH,eAAe,cAAc,CAAC"}
|
|
@@ -1,18 +1,12 @@
|
|
|
1
|
-
import { access } from 'node:fs/promises';
|
|
2
|
-
import path from 'node:path';
|
|
3
1
|
import { defineCommandHandler } from '@auto-engineer/message-bus';
|
|
4
2
|
import createDebug from 'debug';
|
|
5
|
-
import {
|
|
6
|
-
import fg from 'fast-glob';
|
|
3
|
+
import { runLintCheck } from '../run-lint-check.js';
|
|
7
4
|
const debug = createDebug('auto:server-checks:lint');
|
|
8
|
-
const debugHandler = createDebug('auto:server-checks:lint:handler');
|
|
9
|
-
const debugProcess = createDebug('auto:server-checks:lint:process');
|
|
10
|
-
const debugResult = createDebug('auto:server-checks:lint:result');
|
|
11
5
|
export const commandHandler = defineCommandHandler({
|
|
12
6
|
name: 'CheckLint',
|
|
13
7
|
displayName: 'Check Lint',
|
|
14
8
|
alias: 'check:lint',
|
|
15
|
-
description: 'ESLint with optional auto-fix',
|
|
9
|
+
description: 'Lint with ESLint or Biome, with optional auto-fix',
|
|
16
10
|
category: 'check',
|
|
17
11
|
icon: 'sparkles',
|
|
18
12
|
fields: {
|
|
@@ -22,147 +16,66 @@ export const commandHandler = defineCommandHandler({
|
|
|
22
16
|
},
|
|
23
17
|
scope: {
|
|
24
18
|
description: 'Lint scope: slice (default) or project',
|
|
25
|
-
required: false,
|
|
26
19
|
},
|
|
27
20
|
fix: {
|
|
28
21
|
description: 'Automatically fix linting issues',
|
|
29
|
-
required: false,
|
|
30
22
|
flag: true,
|
|
31
23
|
},
|
|
24
|
+
linter: {
|
|
25
|
+
description: 'Linter to use: eslint (default) or biome',
|
|
26
|
+
},
|
|
27
|
+
files: {
|
|
28
|
+
description: 'Specific file paths to lint',
|
|
29
|
+
},
|
|
32
30
|
},
|
|
33
31
|
examples: ['$ auto check:lint --target-directory=./server', '$ auto check:lint --target-directory=./server --fix'],
|
|
34
32
|
events: [
|
|
35
33
|
{ name: 'LintCheckPassed', displayName: 'Lint Check Passed' },
|
|
36
34
|
{ name: 'LintCheckFailed', displayName: 'Lint Check Failed' },
|
|
37
35
|
],
|
|
38
|
-
// eslint-disable-next-line complexity
|
|
39
36
|
handle: async (command) => {
|
|
40
37
|
const typedCommand = command;
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
debug('Handling CheckLintCommand');
|
|
44
|
-
debug(' Target directory: %s', targetDirectory);
|
|
45
|
-
debug(' Scope: %s', scope);
|
|
46
|
-
debug(' Auto-fix: %s', fix);
|
|
47
|
-
debug(' Request ID: %s', typedCommand.requestId);
|
|
48
|
-
debug(' Correlation ID: %s', typedCommand.correlationId ?? 'none');
|
|
38
|
+
const { targetDirectory, scope, fix, linter, files } = typedCommand.data;
|
|
39
|
+
debug('Handling CheckLintCommand: targetDirectory=%s, linter=%s', targetDirectory, linter);
|
|
49
40
|
try {
|
|
50
|
-
const
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
// Find TypeScript files to lint
|
|
56
|
-
const pattern = scope === 'slice' ? path.join(targetDir, '**/*.ts') : 'src/**/*.ts';
|
|
57
|
-
const files = await fg([pattern], {
|
|
58
|
-
cwd: projectRoot,
|
|
59
|
-
absolute: false,
|
|
60
|
-
});
|
|
61
|
-
if (files.length === 0) {
|
|
62
|
-
debugResult('No TypeScript files found to lint');
|
|
63
|
-
return {
|
|
64
|
-
type: 'LintCheckPassed',
|
|
65
|
-
data: {
|
|
66
|
-
targetDirectory,
|
|
67
|
-
filesChecked: 0,
|
|
68
|
-
},
|
|
69
|
-
timestamp: new Date(),
|
|
70
|
-
requestId: typedCommand.requestId,
|
|
71
|
-
correlationId: typedCommand.correlationId,
|
|
41
|
+
const result = await runLintCheck({ targetDirectory, scope, fix, linter, files });
|
|
42
|
+
if (result.passed) {
|
|
43
|
+
const data = {
|
|
44
|
+
targetDirectory,
|
|
45
|
+
filesChecked: result.filesChecked,
|
|
72
46
|
};
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
debugProcess('Files to check: %d', files.length);
|
|
76
|
-
// Build ESLint command
|
|
77
|
-
const args = ['eslint'];
|
|
78
|
-
if (scope === 'slice') {
|
|
79
|
-
// Lint only files in target directory
|
|
80
|
-
const relativePath = path.relative(projectRoot, targetDir);
|
|
81
|
-
args.push(`${relativePath}/**/*.ts`);
|
|
82
|
-
}
|
|
83
|
-
else {
|
|
84
|
-
args.push('src/**/*.ts');
|
|
85
|
-
}
|
|
86
|
-
args.push('--max-warnings', '0');
|
|
87
|
-
// Look for ESLint config
|
|
88
|
-
const configPath = path.join(projectRoot, 'eslint.config.ts');
|
|
89
|
-
if (await access(configPath)
|
|
90
|
-
.then(() => true)
|
|
91
|
-
.catch(() => false)) {
|
|
92
|
-
args.push('--config', configPath);
|
|
93
|
-
}
|
|
94
|
-
else {
|
|
95
|
-
// Try parent directory config
|
|
96
|
-
const parentConfig = path.join(projectRoot, '..', '..', 'eslint.config.ts');
|
|
97
|
-
if (await access(parentConfig)
|
|
98
|
-
.then(() => true)
|
|
99
|
-
.catch(() => false)) {
|
|
100
|
-
args.push('--config', parentConfig);
|
|
47
|
+
if (result.filesFixed !== undefined) {
|
|
48
|
+
data.filesFixed = result.filesFixed;
|
|
101
49
|
}
|
|
102
|
-
}
|
|
103
|
-
if (fix) {
|
|
104
|
-
args.push('--fix');
|
|
105
|
-
}
|
|
106
|
-
const result = await execa('npx', args, {
|
|
107
|
-
cwd: projectRoot,
|
|
108
|
-
stdio: 'pipe',
|
|
109
|
-
reject: false,
|
|
110
|
-
});
|
|
111
|
-
const output = (result.stdout ?? '') + (result.stderr ?? '');
|
|
112
|
-
if (result.exitCode !== 0 && output.includes('error')) {
|
|
113
|
-
const { filesWithIssues, errorCount, warningCount, formattedErrors } = parseEslintOutput(output);
|
|
114
|
-
debugResult('Lint check failed');
|
|
115
|
-
debugResult('Files with issues: %d', filesWithIssues.length);
|
|
116
|
-
debugResult('Errors: %d, Warnings: %d', errorCount, warningCount);
|
|
117
50
|
return {
|
|
118
|
-
type: '
|
|
119
|
-
data
|
|
120
|
-
targetDirectory,
|
|
121
|
-
errors: formattedErrors || output.substring(0, 1000),
|
|
122
|
-
filesWithIssues: filesWithIssues.map((f) => {
|
|
123
|
-
// Make paths relative to target directory
|
|
124
|
-
if (path.isAbsolute(f)) {
|
|
125
|
-
return path.relative(targetDir, f);
|
|
126
|
-
}
|
|
127
|
-
return f;
|
|
128
|
-
}),
|
|
129
|
-
errorCount,
|
|
130
|
-
warningCount,
|
|
131
|
-
},
|
|
51
|
+
type: 'LintCheckPassed',
|
|
52
|
+
data,
|
|
132
53
|
timestamp: new Date(),
|
|
133
54
|
requestId: typedCommand.requestId,
|
|
134
55
|
correlationId: typedCommand.correlationId,
|
|
135
56
|
};
|
|
136
57
|
}
|
|
137
|
-
debugResult('Lint check passed');
|
|
138
|
-
debugResult('Files checked: %d', files.length);
|
|
139
|
-
const successData = {
|
|
140
|
-
targetDirectory,
|
|
141
|
-
filesChecked: files.length,
|
|
142
|
-
};
|
|
143
|
-
if (fix) {
|
|
144
|
-
// Count fixed files by checking the output for "fixed" messages
|
|
145
|
-
const fixedMatch = output.match(/(\d+)\s+error[s]?\s+.*potentially fixable/);
|
|
146
|
-
if (fixedMatch) {
|
|
147
|
-
successData.filesFixed = parseInt(fixedMatch[1], 10);
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
58
|
return {
|
|
151
|
-
type: '
|
|
152
|
-
data:
|
|
59
|
+
type: 'LintCheckFailed',
|
|
60
|
+
data: {
|
|
61
|
+
targetDirectory,
|
|
62
|
+
errors: result.errors,
|
|
63
|
+
filesWithIssues: result.filesWithIssues,
|
|
64
|
+
errorCount: result.errorCount,
|
|
65
|
+
warningCount: result.warningCount,
|
|
66
|
+
},
|
|
153
67
|
timestamp: new Date(),
|
|
154
68
|
requestId: typedCommand.requestId,
|
|
155
69
|
correlationId: typedCommand.correlationId,
|
|
156
70
|
};
|
|
157
71
|
}
|
|
158
72
|
catch (error) {
|
|
159
|
-
debug('ERROR:
|
|
160
|
-
const errorMessage = error instanceof Error ? error.message : 'Unknown error occurred';
|
|
73
|
+
debug('ERROR: %O', error);
|
|
161
74
|
return {
|
|
162
75
|
type: 'LintCheckFailed',
|
|
163
76
|
data: {
|
|
164
77
|
targetDirectory,
|
|
165
|
-
errors:
|
|
78
|
+
errors: error instanceof Error ? error.message : 'Unknown error occurred',
|
|
166
79
|
filesWithIssues: [],
|
|
167
80
|
errorCount: 0,
|
|
168
81
|
warningCount: 0,
|
|
@@ -174,74 +87,5 @@ export const commandHandler = defineCommandHandler({
|
|
|
174
87
|
}
|
|
175
88
|
},
|
|
176
89
|
});
|
|
177
|
-
async function findProjectRoot(startDir) {
|
|
178
|
-
let dir = startDir;
|
|
179
|
-
while (dir !== path.dirname(dir)) {
|
|
180
|
-
try {
|
|
181
|
-
await access(path.join(dir, 'package.json'));
|
|
182
|
-
return dir;
|
|
183
|
-
}
|
|
184
|
-
catch {
|
|
185
|
-
dir = path.dirname(dir);
|
|
186
|
-
}
|
|
187
|
-
}
|
|
188
|
-
throw new Error('Could not find project root (no package.json found)');
|
|
189
|
-
}
|
|
190
|
-
function parseFilesWithIssues(output) {
|
|
191
|
-
const filesWithIssues = [];
|
|
192
|
-
const filePattern = /^([^\s].+\.ts)$/gm;
|
|
193
|
-
for (const match of output.matchAll(filePattern)) {
|
|
194
|
-
const filePath = match[1];
|
|
195
|
-
if (!filePath.includes('node_modules')) {
|
|
196
|
-
filesWithIssues.push(filePath);
|
|
197
|
-
}
|
|
198
|
-
}
|
|
199
|
-
return [...new Set(filesWithIssues)]; // Remove duplicates
|
|
200
|
-
}
|
|
201
|
-
function parseErrorCounts(output) {
|
|
202
|
-
const summaryMatch = output.match(/✖\s+(\d+)\s+problem[s]?\s+\((\d+)\s+error[s]?,?\s*(\d+)?\s*warning[s]?\)/);
|
|
203
|
-
if (summaryMatch) {
|
|
204
|
-
return {
|
|
205
|
-
errorCount: parseInt(summaryMatch[2], 10),
|
|
206
|
-
warningCount: summaryMatch[3] ? parseInt(summaryMatch[3], 10) : 0,
|
|
207
|
-
};
|
|
208
|
-
}
|
|
209
|
-
// Fallback: count individual errors and warnings
|
|
210
|
-
const errorMatches = output.match(/\berror\b/gi);
|
|
211
|
-
const warningMatches = output.match(/\bwarning\b/gi);
|
|
212
|
-
return {
|
|
213
|
-
errorCount: errorMatches ? errorMatches.length : 0,
|
|
214
|
-
warningCount: warningMatches ? warningMatches.length : 0,
|
|
215
|
-
};
|
|
216
|
-
}
|
|
217
|
-
function extractFormattedErrors(output) {
|
|
218
|
-
const errorLines = [];
|
|
219
|
-
const lines = output.split('\n');
|
|
220
|
-
let inFileSection = false;
|
|
221
|
-
for (const line of lines) {
|
|
222
|
-
if (line.match(/^[^\s].+\.ts$/)) {
|
|
223
|
-
inFileSection = true;
|
|
224
|
-
errorLines.push(line);
|
|
225
|
-
}
|
|
226
|
-
else if (inFileSection && line.match(/^\s+\d+:\d+/)) {
|
|
227
|
-
errorLines.push(line);
|
|
228
|
-
}
|
|
229
|
-
else if (line.trim() === '') {
|
|
230
|
-
inFileSection = false;
|
|
231
|
-
}
|
|
232
|
-
}
|
|
233
|
-
return errorLines.join('\n');
|
|
234
|
-
}
|
|
235
|
-
function parseEslintOutput(output) {
|
|
236
|
-
const filesWithIssues = parseFilesWithIssues(output);
|
|
237
|
-
const { errorCount, warningCount } = parseErrorCounts(output);
|
|
238
|
-
const formattedErrors = extractFormattedErrors(output);
|
|
239
|
-
return {
|
|
240
|
-
filesWithIssues,
|
|
241
|
-
errorCount,
|
|
242
|
-
warningCount,
|
|
243
|
-
formattedErrors,
|
|
244
|
-
};
|
|
245
|
-
}
|
|
246
90
|
export default commandHandler;
|
|
247
91
|
//# sourceMappingURL=check-lint.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"check-lint.js","sourceRoot":"","sources":["../../../src/commands/check-lint.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"check-lint.js","sourceRoot":"","sources":["../../../src/commands/check-lint.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,oBAAoB,EAAc,MAAM,4BAA4B,CAAC;AAC5F,OAAO,WAAW,MAAM,OAAO,CAAC;AAChC,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAEpD,MAAM,KAAK,GAAG,WAAW,CAAC,yBAAyB,CAAC,CAAC;AAmCrD,MAAM,CAAC,MAAM,cAAc,GAAG,oBAAoB,CAGhD;IACA,IAAI,EAAE,WAAW;IACjB,WAAW,EAAE,YAAY;IACzB,KAAK,EAAE,YAAY;IACnB,WAAW,EAAE,mDAAmD;IAChE,QAAQ,EAAE,OAAO;IACjB,IAAI,EAAE,UAAU;IAChB,MAAM,EAAE;QACN,eAAe,EAAE;YACf,WAAW,EAAE,mBAAmB;YAChC,QAAQ,EAAE,IAAI;SACf;QACD,KAAK,EAAE;YACL,WAAW,EAAE,wCAAwC;SACtD;QACD,GAAG,EAAE;YACH,WAAW,EAAE,kCAAkC;YAC/C,IAAI,EAAE,IAAI;SACX;QACD,MAAM,EAAE;YACN,WAAW,EAAE,0CAA0C;SACxD;QACD,KAAK,EAAE;YACL,WAAW,EAAE,6BAA6B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AC,UAAU;oBAC7B,YAAY,EAAE,MAAM,CAAC,YAAY;iBAClC;gBACD,SAAS,EAAE,IAAI,IAAI,EAAE;gBACrB,SAAS,EAAE,YAAY,CAAC,SAAS;gBACjC,aAAa,EAAE,YAAY,CAAC,aAAa;aAC1C,CAAC;QACJ,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,KAAK,CAAC,WAAW,EAAE,KAAK,CAAC,CAAC;YAC1B,OAAO;gBACL,IAAI,EAAE,iBAA0B;gBAChC,IAAI,EAAE;oBACJ,eAAe;oBACf,MAAM,EAAE,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,wBAAwB;oBACzE,eAAe,EAAE,EAAE;oBACnB,UAAU,EAAE,CAAC;oBACb,YAAY,EAAE,CAAC;iBAChB;gBACD,SAAS,EAAE,IAAI,IAAI,EAAE;gBACrB,SAAS,EAAE,YAAY,CAAC,SAAS;gBACjC,aAAa,EAAE,YAAY,CAAC,aAAa;aAC1C,CAAC;QACJ,CAAC;IACH,CAAC;CACF,CAAC,CAAC;AAEH,eAAe,cAAc,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"check-tests.d.ts","sourceRoot":"","sources":["../../../src/commands/check-tests.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"check-tests.d.ts","sourceRoot":"","sources":["../../../src/commands/check-tests.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,OAAO,EAAwB,KAAK,KAAK,EAAE,MAAM,4BAA4B,CAAC;AAW5F,MAAM,MAAM,iBAAiB,GAAG,OAAO,CACrC,YAAY,EACZ;IACE,eAAe,EAAE,MAAM,CAAC;IACxB,KAAK,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;CAC7B,CACF,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG,KAAK,CACvC,kBAAkB,EAClB;IACE,eAAe,EAAE,MAAM,CAAC;IACxB,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;CACrB,CACF,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG,KAAK,CACvC,kBAAkB,EAClB;IACE,eAAe,EAAE,MAAM,CAAC;IACxB,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,MAAM,EAAE,CAAC;IACtB,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;CACrB,CACF,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG,qBAAqB,GAAG,qBAAqB,CAAC;AAE7E,eAAO,MAAM,cAAc;;;yBA3BN,MAAM;gBACf,OAAO,GAAG,SAAS;;;;;GAgL7B,CAAC;AA+EH,eAAe,cAAc,CAAC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { access } from 'node:fs/promises';
|
|
2
1
|
import path from 'node:path';
|
|
3
2
|
import { defineCommandHandler } from '@auto-engineer/message-bus';
|
|
4
3
|
import createDebug from 'debug';
|
|
5
4
|
import { execa } from 'execa';
|
|
6
5
|
import fg from 'fast-glob';
|
|
6
|
+
import { findProjectRoot } from '../find-project-root.js';
|
|
7
7
|
const debug = createDebug('auto:server-checks:tests');
|
|
8
8
|
const debugHandler = createDebug('auto:server-checks:tests:handler');
|
|
9
9
|
const debugProcess = createDebug('auto:server-checks:tests:process');
|
|
@@ -22,7 +22,6 @@ export const commandHandler = defineCommandHandler({
|
|
|
22
22
|
},
|
|
23
23
|
scope: {
|
|
24
24
|
description: 'Test scope: slice (default) or project',
|
|
25
|
-
required: false,
|
|
26
25
|
},
|
|
27
26
|
},
|
|
28
27
|
examples: [
|
|
@@ -141,19 +140,6 @@ export const commandHandler = defineCommandHandler({
|
|
|
141
140
|
}
|
|
142
141
|
},
|
|
143
142
|
});
|
|
144
|
-
async function findProjectRoot(startDir) {
|
|
145
|
-
let dir = startDir;
|
|
146
|
-
while (dir !== path.dirname(dir)) {
|
|
147
|
-
try {
|
|
148
|
-
await access(path.join(dir, 'package.json'));
|
|
149
|
-
return dir;
|
|
150
|
-
}
|
|
151
|
-
catch {
|
|
152
|
-
dir = path.dirname(dir);
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
|
-
throw new Error('Could not find project root (no package.json found)');
|
|
156
|
-
}
|
|
157
143
|
function stripAnsiCodes(text) {
|
|
158
144
|
const ansiEscape = String.fromCharCode(27);
|
|
159
145
|
const ansiPattern = new RegExp(`${ansiEscape}\\[[0-9;]*m`, 'g');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"check-tests.js","sourceRoot":"","sources":["../../../src/commands/check-tests.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"check-tests.js","sourceRoot":"","sources":["../../../src/commands/check-tests.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAgB,oBAAoB,EAAc,MAAM,4BAA4B,CAAC;AAC5F,OAAO,WAAW,MAAM,OAAO,CAAC;AAChC,OAAO,EAAE,KAAK,EAAE,MAAM,OAAO,CAAC;AAC9B,OAAO,EAAE,MAAM,WAAW,CAAC;AAC3B,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAE1D,MAAM,KAAK,GAAG,WAAW,CAAC,0BAA0B,CAAC,CAAC;AACtD,MAAM,YAAY,GAAG,WAAW,CAAC,kCAAkC,CAAC,CAAC;AACrE,MAAM,YAAY,GAAG,WAAW,CAAC,kCAAkC,CAAC,CAAC;AACrE,MAAM,WAAW,GAAG,WAAW,CAAC,iCAAiC,CAAC,CAAC;AAgCnE,MAAM,CAAC,MAAM,cAAc,GAAG,oBAAoB,CAGhD;IACA,IAAI,EAAE,YAAY;IAClB,WAAW,EAAE,aAAa;IAC1B,KAAK,EAAE,aAAa;IACpB,WAAW,EAAE,wBAAwB;IACrC,QAAQ,EAAE,OAAO;IACjB,IAAI,EAAE,eAAe;IACrB,MAAM,EAAE;QACN,eAAe,EAAE;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AC;IAE/C,KAAK,MAAM,KAAK,IAAI,MAAM,CAAC,QAAQ,CAAC,WAAW,CAAC,EAAE,CAAC;QACjD,WAAW,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;IAC7B,CAAC;IAED,0CAA0C;IAC1C,MAAM,YAAY,GAAG,MAAM,CAAC,KAAK,CAAC,mDAAmD,CAAC,CAAC;IACvF,IAAI,YAAY,EAAE,CAAC;QACjB,WAAW,GAAG,QAAQ,CAAC,YAAY,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;QAC5C,WAAW,GAAG,YAAY,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,YAAY,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAClE,QAAQ,GAAG,WAAW,GAAG,WAAW,CAAC;IACvC,CAAC;SAAM,CAAC;QACN,sCAAsC;QACtC,MAAM,WAAW,GAAG,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;QAC1C,MAAM,WAAW,GAAG,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;QAC1C,WAAW,GAAG,WAAW,CAAC,CAAC,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC;QACnD,WAAW,GAAG,WAAW,CAAC,CAAC,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC;QACnD,QAAQ,GAAG,WAAW,GAAG,WAAW,CAAC;IACvC,CAAC;IAED,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,WAAW,EAAE,WAAW,EAAE,CAAC;AAC7D,CAAC;AAED,yDAAyD;AACzD,eAAe,cAAc,CAAC"}
|
|
@@ -2,6 +2,8 @@ import { type Command, type Event } from '@auto-engineer/message-bus';
|
|
|
2
2
|
export type CheckTypesCommand = Command<'CheckTypes', {
|
|
3
3
|
targetDirectory: string;
|
|
4
4
|
scope?: 'slice' | 'project';
|
|
5
|
+
project?: string;
|
|
6
|
+
files?: string[];
|
|
5
7
|
}>;
|
|
6
8
|
export type TypeCheckPassedEvent = Event<'TypeCheckPassed', {
|
|
7
9
|
targetDirectory: string;
|
|
@@ -18,6 +20,8 @@ export declare const commandHandler: import("@auto-engineer/message-bus").Unifie
|
|
|
18
20
|
data: Readonly<{
|
|
19
21
|
targetDirectory: string;
|
|
20
22
|
scope?: "slice" | "project";
|
|
23
|
+
project?: string;
|
|
24
|
+
files?: string[];
|
|
21
25
|
}>;
|
|
22
26
|
timestamp?: Date;
|
|
23
27
|
requestId?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"check-types.d.ts","sourceRoot":"","sources":["../../../src/commands/check-types.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"check-types.d.ts","sourceRoot":"","sources":["../../../src/commands/check-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,OAAO,EAAwB,KAAK,KAAK,EAAE,MAAM,4BAA4B,CAAC;AAM5F,MAAM,MAAM,iBAAiB,GAAG,OAAO,CACrC,YAAY,EACZ;IACE,eAAe,EAAE,MAAM,CAAC;IACxB,KAAK,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC5B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;CAClB,CACF,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG,KAAK,CACtC,iBAAiB,EACjB;IACE,eAAe,EAAE,MAAM,CAAC;IACxB,YAAY,EAAE,MAAM,CAAC;CACtB,CACF,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG,KAAK,CACtC,iBAAiB,EACjB;IACE,eAAe,EAAE,MAAM,CAAC;IACxB,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,MAAM,EAAE,CAAC;CACvB,CACF,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG,oBAAoB,GAAG,oBAAoB,CAAC;AAE3E,eAAO,MAAM,cAAc;;;yBA1BN,MAAM;gBACf,OAAO,GAAG,SAAS;kBACjB,MAAM;gBACR,MAAM,EAAE;;;;;GAqGlB,CAAC;AAEH,eAAe,cAAc,CAAC"}
|