prelude-context 1.4.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.
@@ -1 +1 @@
1
- {"version":3,"file":"architecture.js","sourceRoot":"","sources":["../../../src/schema/architecture.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,eAAe,GAAG,OAAO,CAAC;AAChC,MAAM,UAAU,GAAG,yCAAyC,CAAC;AAE7D,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,CAAC,MAAM,CAAC;IACzC,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,OAAO,CAAC,GAAG,UAAU,oBAAoB,CAAC;IACpE,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,OAAO,CAAC,eAAe,CAAC;IAC5C,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,UAAU,EAAE,UAAU,EAAE,eAAe,EAAE,SAAS,EAAE,KAAK,EAAE,WAAW,EAAE,SAAS,EAAE,UAAU,CAAC,CAAC,CAAC,QAAQ,EAAE;IACxH,WAAW,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC;QAC5B,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;QAChB,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAC9B,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;KACjC,CAAC,CAAC;IACH,QAAQ,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IACxC,WAAW,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IAC3C,WAAW,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC;QAC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AC,CAAC,CAAC,MAAM,CAAC;QAC7B,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;QAChB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;QAChB,OAAO,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;KAC7B,CAAC,CAAC,CAAC,QAAQ,EAAE;IAEd,QAAQ,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC;QACzB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;QAChB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;KACjB,CAAC,CAAC,CAAC,QAAQ,EAAE;IAEd,cAAc,EAAE,CAAC,CAAC,MAAM,CAAC;QACvB,eAAe,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;QAC/C,cAAc,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;KAC/C,CAAC,CAAC,QAAQ,EAAE;CACd,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "prelude-context",
3
- "version": "1.4.0",
3
+ "version": "1.4.1",
4
4
  "description": "The open standard for expressing and maintaining machine-readable context about a codebase",
5
5
  "type": "module",
6
6
  "bin": {
@@ -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