forked from opendatahub-io/odh-dashboard
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.agentready-config.yaml
More file actions
235 lines (191 loc) · 5.48 KB
/
.agentready-config.yaml
File metadata and controls
235 lines (191 loc) · 5.48 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
# AgentReady Configuration for ODH Dashboard
# This file configures how AgentReady assesses the ODH Dashboard monorepo
# Repository metadata
repository:
type: monorepo
package_manager: npm
workspace_pattern: "packages/*"
# Source code locations (monorepo uses workspace-based structure)
structure:
source_directories:
- "frontend/src"
- "backend/src"
- "packages/*/src"
- "packages/*/frontend/src"
- "packages/*/bff/src"
test_directories:
- "frontend/__tests__"
- "frontend/src/__tests__"
- "backend/__tests__"
- "backend/src/__tests__"
- "packages/*/__tests__"
- "packages/*/src/__tests__"
- "packages/cypress"
- "packages/contract-tests"
documentation_directories:
- "docs"
- "packages/*/docs"
# TypeScript configuration (uses project references pattern)
typescript:
# Root tsconfig.json uses project references
# Actual strict mode is in workspace-level configs
config_locations:
- "tsconfig.json"
- "frontend/tsconfig.json"
- "backend/tsconfig.json"
- "packages/*/tsconfig.json"
# Shared config package
shared_config: "packages/tsconfig"
# Check strict mode in workspace configs, not root
strict_mode_location: "workspace"
# Pre-commit hooks configuration
hooks:
# This repository uses Husky for hooks
framework: "husky"
locations:
- ".husky/pre-commit"
# lint-staged configuration in package.json
lint_staged: true
# Testing configuration
testing:
frameworks:
- name: "jest"
config: "packages/jest-config"
coverage: true
- name: "cypress"
config: "packages/cypress"
types: ["e2e", "component"]
coverage_locations:
- "jest-coverage/"
- "packages/*/coverage/"
# Build configuration
build:
tool: "turbo"
config: "turbo.jsonc"
# One command setup/build
setup_command: "npm install"
build_command: "npm run build"
test_command: "npm run test"
# Linting configuration
linting:
tools:
- name: "eslint"
config: ".eslintrc.js"
shared_config: "packages/eslint-config"
- name: "prettier"
config: ".prettierrc"
# Lint runs on pre-commit via lint-staged
pre_commit: true
# Module Federation specific
module_federation:
enabled: true
host: "frontend"
remotes:
- "packages/gen-ai"
- "packages/model-registry"
- "packages/model-serving"
# ... other federated packages
# Remote configuration in package.json "module-federation" field
config_location: "package.json"
# Documentation assessment
documentation:
primary_docs:
- "AGENTS.md" # AI agent guidance (10% weight)
- "BOOKMARKS.md" # Quick reference
- "README.md" # Project overview
- "CONTRIBUTING.md" # Contribution guide
agent_specific:
- "AGENTS.md"
- "docs/agent-rules/*.md"
- "packages/*/AGENTS.md"
technical_docs:
- "docs/architecture.md"
- "docs/module-federation.md"
- "docs/testing.md"
- "docs/best-practices.md"
# Exclusions from analysis
exclude:
# Build outputs
- "dist/"
- "build/"
- "out/"
- "public/"
- "public-cypress/"
# Dependencies
- "node_modules/"
- "vendor/"
# Generated files
- "*.js.map"
- "*.css.map"
- "@mf-types/"
# Test artifacts
- "jest-coverage/"
- "cypress/videos/"
- "cypress/screenshots/"
- ".nyc_output/"
- "contract-test-results/"
# Caches
- ".cache/"
- ".turbo/"
- ".agentready/"
# Temporary
- "tmp/"
- "logs/"
# Custom assessment rules for monorepo
custom_rules:
# Standard layout: Check for workspace-based src/tests, not root
standard_layout:
check_workspaces: true
require_root_src: false
# Type annotations: Follow project references
type_annotations:
follow_references: true
check_workspace_configs: true
# One-command setup: npm install handles all workspaces
one_command_setup:
command: "npm install"
recognizes_workspaces: true
# Scoring weights (if customizable)
weights:
documentation: 0.15 # High weight on good docs
testing: 0.15 # High weight on comprehensive tests
code_quality: 0.10
structure: 0.10
# Integration
integrations:
github_actions: true
badge: true
# Reporting
reporting:
formats:
- "json"
- "markdown"
- "html"
output_directory: ".agentready"
# Include package-level scores
per_package_scores: true
---
# Notes for AgentReady Assessment Tool:
# This is an npm workspaces monorepo with ~25 packages. Key patterns:
# 1. Source Code Organization:
# - NOT at root /src or /tests
# - Distributed across workspaces: frontend/src/, backend/src/, packages/*/src/
# 2. TypeScript Configuration:
# - Root tsconfig.json has "references" array (TypeScript project references)
# - Strict mode configured in workspace-level configs
# - Shared config in packages/tsconfig
# 3. Pre-commit Hooks:
# - Uses Husky (.husky/pre-commit), not .pre-commit-config.yaml
# - lint-staged configured in root package.json
# 4. One-Command Setup:
# - `npm install` handles all workspace dependencies
# - No separate setup script needed (npm workspaces feature)
# 5. Testing:
# - Jest for unit tests (shared config in packages/jest-config)
# - Cypress for E2E and component tests (packages/cypress)
# - Tests co-located with source in __tests__ directories
# 6. Build Orchestration:
# - Turbo manages builds across workspaces
# - Single `npm run build` builds all packages in dependency order
# These patterns are STANDARD for modern monorepos but may appear as false
# negatives if assessment tool expects traditional single-package structure.