prelude-context 1.3.0 → 1.4.1
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/bin/prelude.js +2 -0
- package/dist/bin/prelude.js.map +1 -1
- package/dist/src/commands/compact.d.ts +3 -0
- package/dist/src/commands/compact.d.ts.map +1 -0
- package/dist/src/commands/compact.js +37 -0
- package/dist/src/commands/compact.js.map +1 -0
- package/dist/src/core/compact.d.ts +6 -0
- package/dist/src/core/compact.d.ts.map +1 -0
- package/dist/src/core/compact.js +6 -0
- package/dist/src/core/compact.js.map +1 -0
- package/dist/src/core/exporter.d.ts.map +1 -1
- package/dist/src/core/exporter.js +60 -0
- package/dist/src/core/exporter.js.map +1 -1
- package/dist/src/core/infer.d.ts.map +1 -1
- package/dist/src/core/infer.js +68 -0
- package/dist/src/core/infer.js.map +1 -1
- package/dist/src/core/query-engine.d.ts +8 -0
- package/dist/src/core/query-engine.d.ts.map +1 -1
- package/dist/src/core/query-engine.js +260 -0
- package/dist/src/core/query-engine.js.map +1 -1
- package/dist/src/core/source-scanner.d.ts +49 -0
- package/dist/src/core/source-scanner.d.ts.map +1 -0
- package/dist/src/core/source-scanner.js +322 -0
- package/dist/src/core/source-scanner.js.map +1 -0
- package/dist/src/schema/architecture.d.ts +197 -0
- package/dist/src/schema/architecture.d.ts.map +1 -1
- package/dist/src/schema/architecture.js +41 -1
- package/dist/src/schema/architecture.js.map +1 -1
- package/package.json +10 -11
- package/schemas/architecture.schema.json +119 -0
|
@@ -92,6 +92,125 @@
|
|
|
92
92
|
"dataFlow": {
|
|
93
93
|
"type": "string",
|
|
94
94
|
"description": "Data flow description"
|
|
95
|
+
},
|
|
96
|
+
"reactPatterns": {
|
|
97
|
+
"type": "object",
|
|
98
|
+
"description": "React-specific patterns detected from source code",
|
|
99
|
+
"properties": {
|
|
100
|
+
"serverComponents": {
|
|
101
|
+
"type": "array",
|
|
102
|
+
"items": { "type": "string" },
|
|
103
|
+
"description": "Files using 'use server' directive"
|
|
104
|
+
},
|
|
105
|
+
"clientComponents": {
|
|
106
|
+
"type": "array",
|
|
107
|
+
"items": { "type": "string" },
|
|
108
|
+
"description": "Files using 'use client' directive"
|
|
109
|
+
},
|
|
110
|
+
"serverActions": {
|
|
111
|
+
"type": "array",
|
|
112
|
+
"items": { "type": "string" },
|
|
113
|
+
"description": "Files containing server action functions"
|
|
114
|
+
},
|
|
115
|
+
"hooks": {
|
|
116
|
+
"type": "array",
|
|
117
|
+
"items": {
|
|
118
|
+
"type": "object",
|
|
119
|
+
"required": ["file", "hooks"],
|
|
120
|
+
"properties": {
|
|
121
|
+
"file": { "type": "string" },
|
|
122
|
+
"hooks": { "type": "array", "items": { "type": "string" } }
|
|
123
|
+
}
|
|
124
|
+
},
|
|
125
|
+
"description": "Custom React hooks detected"
|
|
126
|
+
},
|
|
127
|
+
"providers": {
|
|
128
|
+
"type": "array",
|
|
129
|
+
"items": {
|
|
130
|
+
"type": "object",
|
|
131
|
+
"required": ["file", "name"],
|
|
132
|
+
"properties": {
|
|
133
|
+
"file": { "type": "string" },
|
|
134
|
+
"name": { "type": "string" },
|
|
135
|
+
"contextName": { "type": "string" }
|
|
136
|
+
}
|
|
137
|
+
},
|
|
138
|
+
"description": "React context providers detected"
|
|
139
|
+
},
|
|
140
|
+
"layouts": {
|
|
141
|
+
"type": "array",
|
|
142
|
+
"items": { "type": "string" },
|
|
143
|
+
"description": "Layout files (Next.js App Router)"
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
},
|
|
147
|
+
"routes": {
|
|
148
|
+
"type": "array",
|
|
149
|
+
"description": "Detected route files with URL paths",
|
|
150
|
+
"items": {
|
|
151
|
+
"type": "object",
|
|
152
|
+
"required": ["file", "path", "isDynamic"],
|
|
153
|
+
"properties": {
|
|
154
|
+
"file": { "type": "string" },
|
|
155
|
+
"path": { "type": "string" },
|
|
156
|
+
"methods": { "type": "array", "items": { "type": "string" } },
|
|
157
|
+
"isDynamic": { "type": "boolean" }
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
},
|
|
161
|
+
"middleware": {
|
|
162
|
+
"type": "array",
|
|
163
|
+
"description": "Middleware files detected",
|
|
164
|
+
"items": {
|
|
165
|
+
"type": "object",
|
|
166
|
+
"required": ["file", "type"],
|
|
167
|
+
"properties": {
|
|
168
|
+
"file": { "type": "string" },
|
|
169
|
+
"type": { "type": "string" },
|
|
170
|
+
"guards": { "type": "array", "items": { "type": "string" } }
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
},
|
|
174
|
+
"apiEndpoints": {
|
|
175
|
+
"type": "array",
|
|
176
|
+
"description": "API route handlers with HTTP methods",
|
|
177
|
+
"items": {
|
|
178
|
+
"type": "object",
|
|
179
|
+
"required": ["file", "path", "methods"],
|
|
180
|
+
"properties": {
|
|
181
|
+
"file": { "type": "string" },
|
|
182
|
+
"path": { "type": "string" },
|
|
183
|
+
"methods": { "type": "array", "items": { "type": "string" } }
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
},
|
|
187
|
+
"keyFiles": {
|
|
188
|
+
"type": "array",
|
|
189
|
+
"description": "Important files with detected roles (db connection, auth config, etc.)",
|
|
190
|
+
"items": {
|
|
191
|
+
"type": "object",
|
|
192
|
+
"required": ["file", "role"],
|
|
193
|
+
"properties": {
|
|
194
|
+
"file": { "type": "string" },
|
|
195
|
+
"role": { "type": "string" }
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
},
|
|
199
|
+
"importPatterns": {
|
|
200
|
+
"type": "object",
|
|
201
|
+
"description": "Import graph summary",
|
|
202
|
+
"properties": {
|
|
203
|
+
"internalAliases": {
|
|
204
|
+
"type": "array",
|
|
205
|
+
"items": { "type": "string" },
|
|
206
|
+
"description": "Path aliases used (e.g., @/, ~/)"
|
|
207
|
+
},
|
|
208
|
+
"heavyImporters": {
|
|
209
|
+
"type": "array",
|
|
210
|
+
"items": { "type": "string" },
|
|
211
|
+
"description": "Files with 10+ imports (complexity signals)"
|
|
212
|
+
}
|
|
213
|
+
}
|
|
95
214
|
}
|
|
96
215
|
},
|
|
97
216
|
"additionalProperties": true
|