@ai-lighthouse/cli 1.0.1 → 1.0.3

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 (103) hide show
  1. package/README.md +126 -53
  2. package/dist/index.js +2788 -12
  3. package/package.json +10 -4
  4. package/.ai-lighthouse/audit_example.com_2025-12-15T12-10-43.json +0 -183
  5. package/.ai-lighthouse/audit_fayeed.dev_2026-01-07T19-32-28.html +0 -743
  6. package/.ai-lighthouse/audit_fayeed.dev_2026-01-07T19-33-02.html +0 -757
  7. package/.ai-lighthouse/audit_github.com_2025-12-15T11-53-21.json +0 -168
  8. package/.ai-lighthouse/audit_github.com_2025-12-15T12-04-06.json +0 -168
  9. package/.ai-lighthouse/audit_github.com_2025-12-15T12-05-10.json +0 -168
  10. package/.ai-lighthouse/audit_github.com_2025-12-15T12-09-45.json +0 -168
  11. package/.ai-lighthouse/audit_github.com_2025-12-15T12-11-07.json +0 -168
  12. package/.ai-lighthouse/audit_github.com_2025-12-15T12-13-28.json +0 -168
  13. package/.ai-lighthouse/audit_github.com_2025-12-15T12-14-59.json +0 -205
  14. package/.ai-lighthouse/audit_github.com_2025-12-15T12-18-07.json +0 -205
  15. package/.ai-lighthouse/audit_github.com_2025-12-15T12-18-44.json +0 -205
  16. package/.ai-lighthouse/audit_github.com_2025-12-15T12-21-38.json +0 -205
  17. package/.ai-lighthouse/audit_github.com_2025-12-15T12-22-21.json +0 -205
  18. package/.ai-lighthouse/audit_github.com_2025-12-15T12-22-46.json +0 -205
  19. package/.ai-lighthouse/audit_github.com_2025-12-15T12-23-18.json +0 -205
  20. package/.ai-lighthouse/audit_github.com_2025-12-15T12-24-43.json +0 -205
  21. package/.ai-lighthouse/audit_github.com_2025-12-17T12-15-08.json +0 -168
  22. package/.ai-lighthouse/audit_github.com_2025-12-17T12-15-57.json +0 -168
  23. package/.ai-lighthouse/audit_github.com_2025-12-17T12-17-11.json +0 -168
  24. package/.ai-lighthouse/audit_github.com_2025-12-17T12-22-17.json +0 -168
  25. package/.ai-lighthouse/audit_github.com_2025-12-17T12-22-42.json +0 -168
  26. package/.ai-lighthouse/audit_github.com_2025-12-17T12-23-56.json +0 -168
  27. package/.ai-lighthouse/audit_github.com_2025-12-17T12-25-24.json +0 -168
  28. package/.ai-lighthouse/audit_github.com_2025-12-17T12-25-40.json +0 -168
  29. package/.ai-lighthouse/audit_github.com_2025-12-17T12-27-02.json +0 -168
  30. package/.ai-lighthouse/audit_github.com_2025-12-17T12-27-20.json +0 -168
  31. package/.ai-lighthouse/audit_github.com_2025-12-17T12-29-56.json +0 -168
  32. package/.ai-lighthouse/audit_github.com_2025-12-17T12-32-27.json +0 -168
  33. package/.ai-lighthouse/audit_github.com_2025-12-17T12-33-00.json +0 -168
  34. package/.ai-lighthouse/audit_github.com_2025-12-17T12-34-49.json +0 -168
  35. package/.ai-lighthouse/audit_stripe.com_2025-12-15T12-11-31.json +0 -168
  36. package/.ai-lighthouse/audit_stripe.com_2025-12-15T12-11-45.json +0 -168
  37. package/.ai-lighthouse/audit_tailwindcss.com_2025-12-15T12-12-01.json +0 -169
  38. package/.ai-lighthouse/crawl_example.com_2025-12-15T12-03-08.json +0 -24
  39. package/.ai-lighthouse/crawl_example.com_2025-12-15T12-03-23.json +0 -24
  40. package/.ai-lighthouse/crawl_github.com_2025-12-15T11-41-34.json +0 -21
  41. package/.ai-lighthouse/crawl_github.com_2025-12-15T11-42-09.json +0 -21
  42. package/.ai-lighthouse/crawl_github.com_2025-12-15T11-42-45.json +0 -21
  43. package/.ai-lighthouse/crawl_github.com_2025-12-15T11-43-02.json +0 -21
  44. package/.ai-lighthouse/crawl_github.com_2025-12-15T11-43-26.json +0 -21
  45. package/.ai-lighthouse/crawl_github.com_2025-12-15T11-47-46.json +0 -906
  46. package/.ai-lighthouse/crawl_github.com_2025-12-15T11-50-27.json +0 -906
  47. package/.ai-lighthouse/crawl_github.com_2025-12-15T11-52-59.json +0 -906
  48. package/.ai-lighthouse/crawl_github.com_2025-12-15T12-03-33.json +0 -28
  49. package/CLI_UI_README.md +0 -211
  50. package/EXAMPLES.md +0 -87
  51. package/IMPLEMENTATION.md +0 -215
  52. package/USAGE.md +0 -264
  53. package/WIZARD_GUIDE.md +0 -340
  54. package/bin/cli.js +0 -2
  55. package/dist/commands/audit-interactive.d.ts +0 -2
  56. package/dist/commands/audit-interactive.js +0 -106
  57. package/dist/commands/audit-wizard.d.ts +0 -2
  58. package/dist/commands/audit-wizard.js +0 -110
  59. package/dist/commands/audit.d.ts +0 -2
  60. package/dist/commands/audit.js +0 -940
  61. package/dist/commands/crawl.d.ts +0 -2
  62. package/dist/commands/crawl.js +0 -267
  63. package/dist/commands/report.d.ts +0 -2
  64. package/dist/commands/report.js +0 -304
  65. package/dist/index.d.ts +0 -1
  66. package/dist/ui/AuditReportUI.d.ts +0 -10
  67. package/dist/ui/AuditReportUI.js +0 -76
  68. package/dist/ui/SetupWizard.d.ts +0 -18
  69. package/dist/ui/SetupWizard.js +0 -179
  70. package/dist/ui/components/AIUnderstandingSection.d.ts +0 -6
  71. package/dist/ui/components/AIUnderstandingSection.js +0 -87
  72. package/dist/ui/components/HallucinationSection.d.ts +0 -6
  73. package/dist/ui/components/HallucinationSection.js +0 -84
  74. package/dist/ui/components/IssuesSection.d.ts +0 -6
  75. package/dist/ui/components/IssuesSection.js +0 -84
  76. package/dist/ui/components/MessageAlignmentSection.d.ts +0 -6
  77. package/dist/ui/components/MessageAlignmentSection.js +0 -108
  78. package/dist/ui/components/OverviewSection.d.ts +0 -6
  79. package/dist/ui/components/OverviewSection.js +0 -107
  80. package/dist/ui/components/ScoreDisplay.d.ts +0 -8
  81. package/dist/ui/components/ScoreDisplay.js +0 -41
  82. package/dist/ui/components/TechnicalSection.d.ts +0 -7
  83. package/dist/ui/components/TechnicalSection.js +0 -110
  84. package/dist/utils/comprehensive-formatter.d.ts +0 -5
  85. package/dist/utils/comprehensive-formatter.js +0 -370
  86. package/src/commands/audit-interactive.ts +0 -149
  87. package/src/commands/audit-wizard.ts +0 -137
  88. package/src/commands/audit.ts +0 -1012
  89. package/src/commands/crawl.ts +0 -307
  90. package/src/commands/report.ts +0 -321
  91. package/src/index.ts +0 -22
  92. package/src/ui/AuditReportUI.tsx +0 -151
  93. package/src/ui/SetupWizard.tsx +0 -294
  94. package/src/ui/components/AIUnderstandingSection.tsx +0 -183
  95. package/src/ui/components/HallucinationSection.tsx +0 -172
  96. package/src/ui/components/IssuesSection.tsx +0 -140
  97. package/src/ui/components/MessageAlignmentSection.tsx +0 -203
  98. package/src/ui/components/OverviewSection.tsx +0 -157
  99. package/src/ui/components/ScoreDisplay.tsx +0 -58
  100. package/src/ui/components/TechnicalSection.tsx +0 -200
  101. package/src/utils/comprehensive-formatter.ts +0 -455
  102. package/test.sh +0 -31
  103. package/tsconfig.json +0 -25
package/package.json CHANGED
@@ -1,14 +1,19 @@
1
1
  {
2
2
  "name": "@ai-lighthouse/cli",
3
- "version": "1.0.1",
3
+ "version": "1.0.3",
4
4
  "description": "AI Lighthouse CLI - Audit websites for AI readiness",
5
5
  "type": "module",
6
6
  "bin": {
7
- "ai-lighthouse": "./bin/cli.js"
7
+ "ai-lighthouse": "./dist/index.js"
8
8
  },
9
+ "files": [
10
+ "dist",
11
+ "README.md"
12
+ ],
9
13
  "scripts": {
10
14
  "dev": "tsx src/index.ts",
11
- "build": "echo 'Build skipped - using tsx runtime'",
15
+ "build": "rm -rf dist && node build.js",
16
+ "prepublishOnly": "pnpm build",
12
17
  "check-types": "tsc --noEmit",
13
18
  "cli": "node --loader tsx src/index.ts"
14
19
  },
@@ -23,7 +28,7 @@
23
28
  "author": "",
24
29
  "license": "MIT",
25
30
  "dependencies": {
26
- "@ai-lighthouse/scanner": "^1.0.1",
31
+ "@ai-lighthouse/scanner": "^1.0.3",
27
32
  "chalk": "^5.3.0",
28
33
  "commander": "^12.1.0",
29
34
  "html-pdf-node": "^1.0.8",
@@ -43,6 +48,7 @@
43
48
  },
44
49
  "devDependencies": {
45
50
  "@types/node": "^22.10.1",
51
+ "esbuild": "^0.27.2",
46
52
  "tsx": "^4.21.0",
47
53
  "typescript": "5.9.2"
48
54
  }
@@ -1,183 +0,0 @@
1
- {
2
- "version": "1.0.0",
3
- "audit_id": "fca20a83-6c90-49e0-8eab-f959768c2ec0",
4
- "scanned_at": "2025-12-15T12:10:43.738Z",
5
- "input": {
6
- "requested_url": "https://example.com",
7
- "final_url": "https://example.com",
8
- "status_code": 200,
9
- "redirect_chain": []
10
- },
11
- "scores": {
12
- "crawlability": 0,
13
- "structure": 50,
14
- "schema_coverage": 0,
15
- "content_clarity": 50,
16
- "ai_readiness": 40,
17
- "overall": 40.2
18
- },
19
- "entities": [],
20
- "issues": [
21
- {
22
- "id": "EXTRACT-001",
23
- "severity": "critical",
24
- "message": "Potential Content Extraction Issue",
25
- "evidence": "Main text length: 0, Article text length: 0, Body text length: 125, Script tag count: 0, Contains __NEXT_DATA__: false, Uses React without data-reactroot: true",
26
- "suggested_fix": "Review the HTML structure and ensure that meaningful content is present within <main> or <article> tags. Consider improving the content delivery method if necessary.",
27
- "impact": "critical",
28
- "category": "schema"
29
- },
30
- {
31
- "id": "KG-001",
32
- "severity": "high",
33
- "message": "No Schema.org structured data",
34
- "evidence": "No JSON-LD structured data found",
35
- "suggested_fix": "Add Schema.org structured data using JSON-LD. Consider Organization, Person, Article, Product, or other relevant schemas.",
36
- "impact": "high",
37
- "category": "schema"
38
- },
39
- {
40
- "id": "AIREAD-018",
41
- "severity": "high",
42
- "message": "Thin content detected",
43
- "evidence": "Word count: 17",
44
- "suggested_fix": "Add substantial, valuable content to the page. Aim for at least 300 words of meaningful content.",
45
- "impact": "high",
46
- "category": "structure"
47
- },
48
- {
49
- "id": "AIREAD-014",
50
- "severity": "high",
51
- "message": "Missing main semantic container",
52
- "evidence": "No <main> or <article> element found",
53
- "suggested_fix": "Wrap your main content in a <main> element, or use <article> for article-type content. This helps AI understand what content is most important.",
54
- "impact": "high",
55
- "category": "structure"
56
- },
57
- {
58
- "id": "A11Y-001",
59
- "severity": "high",
60
- "message": "No ARIA landmarks or semantic elements",
61
- "evidence": "No landmarks found",
62
- "suggested_fix": "Add ARIA landmark roles (role=\"main\", role=\"navigation\", etc.) or use semantic HTML5 elements (<main>, <nav>, <header>, <footer>).",
63
- "impact": "high",
64
- "category": "accessibility"
65
- },
66
- {
67
- "id": "CRAWL-003",
68
- "severity": "high",
69
- "message": "Missing canonical tag",
70
- "evidence": "No canonical tag found",
71
- "suggested_fix": "Add <link rel=\"canonical\" href=\"...\"> to specify the preferred URL version.",
72
- "impact": "high",
73
- "category": "crawl"
74
- },
75
- {
76
- "id": "AIREAD-010",
77
- "severity": "medium",
78
- "message": "Missing or short meta description",
79
- "evidence": "Description length: 0 chars",
80
- "suggested_fix": "Add a meta description tag with 150-160 characters that summarizes the page content.",
81
- "impact": "medium",
82
- "category": "structure"
83
- },
84
- {
85
- "id": "AIREAD-013",
86
- "severity": "medium",
87
- "message": "Missing OpenGraph meta tags",
88
- "evidence": "Missing tags: og:title, og:description, og:image",
89
- "suggested_fix": "Add missing OpenGraph meta tags (og:title, og:description, og:image) to improve how AI agents and social platforms understand your content.",
90
- "impact": "medium",
91
- "category": "structure"
92
- },
93
- {
94
- "id": "AIREAD-098",
95
- "severity": "low",
96
- "message": "No contact information",
97
- "evidence": "No email, phone, or contact links found",
98
- "suggested_fix": "Add contact information to improve trust and AI understanding of your organization.",
99
- "impact": "low",
100
- "category": "structure"
101
- }
102
- ],
103
- "recommendations": [
104
- {
105
- "issue_id": "EXTRACT-001",
106
- "fix": "Review the HTML structure and ensure that meaningful content is present within <main> or <article> tags. Consider improving the content delivery method if necessary.",
107
- "impact": "critical"
108
- },
109
- {
110
- "issue_id": "KG-001",
111
- "fix": "Add Schema.org structured data using JSON-LD. Consider Organization, Person, Article, Product, or other relevant schemas.",
112
- "impact": "high"
113
- },
114
- {
115
- "issue_id": "AIREAD-018",
116
- "fix": "Add substantial, valuable content to the page. Aim for at least 300 words of meaningful content.",
117
- "impact": "high"
118
- },
119
- {
120
- "issue_id": "AIREAD-014",
121
- "fix": "Wrap your main content in a <main> element, or use <article> for article-type content. This helps AI understand what content is most important.",
122
- "impact": "high"
123
- },
124
- {
125
- "issue_id": "A11Y-001",
126
- "fix": "Add ARIA landmark roles (role=\"main\", role=\"navigation\", etc.) or use semantic HTML5 elements (<main>, <nav>, <header>, <footer>).",
127
- "impact": "high"
128
- },
129
- {
130
- "issue_id": "CRAWL-003",
131
- "fix": "Add <link rel=\"canonical\" href=\"...\"> to specify the preferred URL version.",
132
- "impact": "high"
133
- }
134
- ],
135
- "detailed_scoring": {
136
- "overall_score": 40.2,
137
- "grade": "F",
138
- "category_scores": [
139
- {
140
- "category": "AIREAD",
141
- "score": 0,
142
- "grade": "F",
143
- "issues": 5,
144
- "weight": 1.5
145
- },
146
- {
147
- "category": "EXTRACT",
148
- "score": 0,
149
- "grade": "F",
150
- "issues": 1,
151
- "weight": 1.4
152
- },
153
- {
154
- "category": "CRAWL",
155
- "score": 0,
156
- "grade": "F",
157
- "issues": 1,
158
- "weight": 1.2
159
- },
160
- {
161
- "category": "A11Y",
162
- "score": 0,
163
- "grade": "F",
164
- "issues": 1,
165
- "weight": 1.2
166
- },
167
- {
168
- "category": "KG",
169
- "score": 0,
170
- "grade": "F",
171
- "issues": 1,
172
- "weight": 1.1
173
- }
174
- ],
175
- "severity_breakdown": {
176
- "info": 0,
177
- "low": 1,
178
- "medium": 2,
179
- "high": 5,
180
- "critical": 1
181
- }
182
- }
183
- }