@aiready/cli 0.7.19 → 0.7.21

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.
@@ -1,74 +0,0 @@
1
- // src/index.ts
2
- import { analyzePatterns } from "@aiready/pattern-detect";
3
- import { analyzeContext } from "@aiready/context-analyzer";
4
- import { analyzeConsistency } from "@aiready/consistency";
5
- async function analyzeUnified(options) {
6
- const startTime = Date.now();
7
- const tools = options.tools || ["patterns", "context", "consistency"];
8
- const result = {
9
- summary: {
10
- totalIssues: 0,
11
- toolsRun: tools,
12
- executionTime: 0
13
- }
14
- };
15
- if (tools.includes("patterns")) {
16
- const patternResult = await analyzePatterns(options);
17
- result.patterns = patternResult.results;
18
- result.summary.totalIssues += patternResult.results.reduce(
19
- (sum, file) => sum + file.issues.length,
20
- 0
21
- );
22
- }
23
- if (tools.includes("context")) {
24
- result.context = await analyzeContext(options);
25
- result.summary.totalIssues += result.context?.length || 0;
26
- }
27
- if (tools.includes("consistency")) {
28
- const report = await analyzeConsistency({
29
- rootDir: options.rootDir,
30
- include: options.include,
31
- exclude: options.exclude,
32
- checkNaming: true,
33
- checkPatterns: true,
34
- minSeverity: "info"
35
- });
36
- result.consistency = report;
37
- result.summary.totalIssues += report.summary.totalIssues;
38
- }
39
- result.summary.executionTime = Date.now() - startTime;
40
- return result;
41
- }
42
- function generateUnifiedSummary(result) {
43
- const { summary } = result;
44
- let output = `\u{1F680} AIReady Analysis Complete
45
-
46
- `;
47
- output += `\u{1F4CA} Summary:
48
- `;
49
- output += ` Tools run: ${summary.toolsRun.join(", ")}
50
- `;
51
- output += ` Total issues found: ${summary.totalIssues}
52
- `;
53
- output += ` Execution time: ${(summary.executionTime / 1e3).toFixed(2)}s
54
-
55
- `;
56
- if (result.patterns?.length) {
57
- output += `\u{1F50D} Pattern Analysis: ${result.patterns.length} issues
58
- `;
59
- }
60
- if (result.context?.length) {
61
- output += `\u{1F9E0} Context Analysis: ${result.context.length} issues
62
- `;
63
- }
64
- if (result.consistency) {
65
- output += `\u{1F3F7}\uFE0F Consistency Analysis: ${result.consistency.summary.totalIssues} issues
66
- `;
67
- }
68
- return output;
69
- }
70
-
71
- export {
72
- analyzeUnified,
73
- generateUnifiedSummary
74
- };
@@ -1,53 +0,0 @@
1
- // src/index.ts
2
- import { analyzePatterns } from "@aiready/pattern-detect";
3
- import { analyzeContext } from "@aiready/context-analyzer";
4
- async function analyzeUnified(options) {
5
- const startTime = Date.now();
6
- const tools = options.tools || ["patterns", "context"];
7
- const result = {
8
- summary: {
9
- totalIssues: 0,
10
- toolsRun: tools,
11
- executionTime: 0
12
- }
13
- };
14
- if (tools.includes("patterns")) {
15
- result.patterns = await analyzePatterns(options);
16
- result.summary.totalIssues += result.patterns.length;
17
- }
18
- if (tools.includes("context")) {
19
- result.context = await analyzeContext(options);
20
- result.summary.totalIssues += result.context?.length || 0;
21
- }
22
- result.summary.executionTime = Date.now() - startTime;
23
- return result;
24
- }
25
- function generateUnifiedSummary(result) {
26
- const { summary } = result;
27
- let output = `\u{1F680} AIReady Analysis Complete
28
-
29
- `;
30
- output += `\u{1F4CA} Summary:
31
- `;
32
- output += ` Tools run: ${summary.toolsRun.join(", ")}
33
- `;
34
- output += ` Total issues found: ${summary.totalIssues}
35
- `;
36
- output += ` Execution time: ${(summary.executionTime / 1e3).toFixed(2)}s
37
-
38
- `;
39
- if (result.patterns?.length) {
40
- output += `\u{1F50D} Pattern Analysis: ${result.patterns.length} issues
41
- `;
42
- }
43
- if (result.context?.length) {
44
- output += `\u{1F9E0} Context Analysis: ${result.context.length} issues
45
- `;
46
- }
47
- return output;
48
- }
49
-
50
- export {
51
- analyzeUnified,
52
- generateUnifiedSummary
53
- };
@@ -1,71 +0,0 @@
1
- // src/index.ts
2
- import { analyzePatterns } from "@aiready/pattern-detect";
3
- import { analyzeContext } from "@aiready/context-analyzer";
4
- import { analyzeConsistency } from "@aiready/consistency";
5
- async function analyzeUnified(options) {
6
- const startTime = Date.now();
7
- const tools = options.tools || ["patterns", "context", "consistency"];
8
- const result = {
9
- summary: {
10
- totalIssues: 0,
11
- toolsRun: tools,
12
- executionTime: 0
13
- }
14
- };
15
- if (tools.includes("patterns")) {
16
- const patternResult = await analyzePatterns(options);
17
- result.patterns = patternResult.results;
18
- result.summary.totalIssues += patternResult.results.length;
19
- }
20
- if (tools.includes("context")) {
21
- result.context = await analyzeContext(options);
22
- result.summary.totalIssues += result.context?.length || 0;
23
- }
24
- if (tools.includes("consistency")) {
25
- const report = await analyzeConsistency({
26
- rootDir: options.rootDir,
27
- include: options.include,
28
- exclude: options.exclude,
29
- checkNaming: true,
30
- checkPatterns: true,
31
- minSeverity: "info"
32
- });
33
- result.consistency = report;
34
- result.summary.totalIssues += report.summary.totalIssues;
35
- }
36
- result.summary.executionTime = Date.now() - startTime;
37
- return result;
38
- }
39
- function generateUnifiedSummary(result) {
40
- const { summary } = result;
41
- let output = `\u{1F680} AIReady Analysis Complete
42
-
43
- `;
44
- output += `\u{1F4CA} Summary:
45
- `;
46
- output += ` Tools run: ${summary.toolsRun.join(", ")}
47
- `;
48
- output += ` Total issues found: ${summary.totalIssues}
49
- `;
50
- output += ` Execution time: ${(summary.executionTime / 1e3).toFixed(2)}s
51
-
52
- `;
53
- if (result.patterns?.length) {
54
- output += `\u{1F50D} Pattern Analysis: ${result.patterns.length} issues
55
- `;
56
- }
57
- if (result.context?.length) {
58
- output += `\u{1F9E0} Context Analysis: ${result.context.length} issues
59
- `;
60
- }
61
- if (result.consistency) {
62
- output += `\u{1F3F7}\uFE0F Consistency Analysis: ${result.consistency.summary.totalIssues} issues
63
- `;
64
- }
65
- return output;
66
- }
67
-
68
- export {
69
- analyzeUnified,
70
- generateUnifiedSummary
71
- };