|
2 | 2 |
|
3 | 3 | > **Stack:** raw-http | none | unknown | typescript |
4 | 4 |
|
5 | | -> 4 routes (8 inferred) + 1 graphql + 3 ws | 0 models | 0 components | 65 lib files | 10 env vars | 5 middleware | 13 events | 60% test coverage |
6 | | -> **Token savings:** this file is ~5,400 tokens. Without it, AI exploration would cost ~34,300 tokens. **Saves ~28,900 tokens per conversation.** |
7 | | -> **Last scanned:** 2026-06-27 21:21 — re-run after significant changes |
| 5 | +> 4 routes (8 inferred) + 1 graphql + 3 ws | 0 models | 0 components | 66 lib files | 10 env vars | 5 middleware | 13 events | 60% test coverage |
| 6 | +> **Token savings:** this file is ~5,500 tokens. Without it, AI exploration would cost ~34,500 tokens. **Saves ~29,100 tokens per conversation.** |
| 7 | +> **Last scanned:** 2026-06-27 23:35 — re-run after significant changes |
8 | 8 |
|
9 | 9 | --- |
10 | 10 |
|
|
32 | 32 |
|
33 | 33 | - `reference/ast-plugin/assembly/index.ts` |
34 | 34 | - function contractVersion: () => i32 |
| 35 | + - function describe: () => i64 |
35 | 36 | - function alloc: (len) => i32 |
36 | 37 | - function dealloc: (ptr, len) => void |
37 | 38 | - function parseRoutes: (srcPtr, srcLen) => i64 |
38 | 39 | - function parseSchemas: (srcPtr, srcLen) => i64 |
39 | | - - function parseImports: (srcPtr, srcLen) => i64 |
| 40 | + - _...1 more_ |
40 | 41 | - `src/ast/extract-android.ts` |
41 | 42 | - function extractRetrofitRoutes: (filePath, content, tags) => RouteInfo[] |
42 | 43 | - function extractRoomEntities: (_filePath, content) => SchemaModel[] |
|
101 | 102 | - function resolveNativeAst: (cfg, projectRoot) => NativeAstResolved |
102 | 103 | - function nativeEnabledFor: (r, lang) => boolean |
103 | 104 | - function isStrict: (r) => boolean |
| 105 | + - function buildNativeRegistry: (r) => NativeRegistry |
104 | 106 | - function nativePluginFor: (lang, kind, r) => NativePlugin | null |
105 | 107 | - function recordParseError: (r, lang, kind, file, err) => void |
106 | | - - function reportNativeDiagnostics: (diagnostics) => string |
107 | | - - _...2 more_ |
| 108 | + - _...5 more_ |
108 | 109 | - `src/config.ts` |
109 | 110 | - function loadConfig: (root) => Promise<CodesightConfig> |
110 | 111 | - function safeParseConfigText: (content) => CodesightConfig |
|
134 | 135 | - type Name |
135 | 136 | - _...2 more_ |
136 | 137 | - `src/detectors/middleware.ts` — function detectMiddleware: (files, project) => Promise<MiddlewareInfo[]> |
| 138 | +- `src/detectors/native.ts` |
| 139 | + - function detectNative: (files, project, resolved) => Promise<NativeExtraction> |
| 140 | + - function mergeNativeRoutes: (builtin, native, resolved, registry) => RouteInfo[] |
| 141 | + - function mergeNativeSchemas: (builtin, native) => SchemaModel[] |
| 142 | + - interface NativeExtraction |
137 | 143 | - `src/detectors/openapi.ts` — function detectOpenAPISpec: (root, project) => Promise<OpenAPIResult>, interface OpenAPIResult |
138 | | -- `src/detectors/routes.ts` — function detectRoutes: (files, project, config?) => Promise<RouteInfo[]>, const GET |
| 144 | +- `src/detectors/routes.ts` |
| 145 | + - function detectTags: (content) => string[] |
| 146 | + - function detectRoutes: (files, project, config?) => Promise<RouteInfo[]> |
| 147 | + - const GET |
139 | 148 | - `src/detectors/schema.ts` — function detectSchemas: (files, project, config?) => Promise<SchemaModel[]>, const users |
140 | 149 | - `src/detectors/tokens.ts` — function estimateTokens: (text) => number, function calculateTokenStats: (result, outputText, fileCount) => import("../types.js").TokenStats |
141 | 150 | - `src/eval.ts` — function runEval: () => Promise<void> |
|
202 | 211 | - interface TelemetryTask |
203 | 212 | - interface TelemetryReport |
204 | 213 | - `src/wasm/plugin-host.ts` |
| 214 | + - function listPluginFiles: (pluginDirs) => PluginFile[] |
205 | 215 | - function setNativePluginProvider: (fn) => void |
206 | 216 | - function resetNativePluginProvider: () => void |
207 | 217 | - function loadPlugin: (lang, pluginDirs) => LoadedPlugin | null |
208 | 218 | - function bindExports: (rawExports) => LoadedPlugin | null |
209 | 219 | - interface LoadedPlugin |
210 | | - - type PluginProvider |
| 220 | + - _...2 more_ |
211 | 221 |
|
212 | 222 | --- |
213 | 223 |
|
|
250 | 260 |
|
251 | 261 | ## Most Imported Files (change these carefully) |
252 | 262 |
|
253 | | -- `src/types.ts` — imported by **50** files |
254 | | -- `src/scanner.ts` — imported by **16** files |
| 263 | +- `src/types.ts` — imported by **51** files |
| 264 | +- `src/scanner.ts` — imported by **17** files |
255 | 265 | - `src/ast/loader.ts` — imported by **6** files |
256 | 266 | - `src/plugins/terraform/types.ts` — imported by **6** files |
257 | 267 | - `src/ast/extract-brightscript.ts` — imported by **5** files |
258 | 268 | - `src/plugins/cicd/types.ts` — imported by **5** files |
259 | 269 | - `src/plugins/githooks/types.ts` — imported by **5** files |
260 | | -- `src/ast/native-loader.ts` — imported by **4** files |
261 | | -- `src/detectors/routes.ts` — imported by **3** files |
| 270 | +- `src/detectors/routes.ts` — imported by **4** files |
262 | 271 | - `src/detectors/schema.ts` — imported by **3** files |
263 | 272 | - `src/detectors/components.ts` — imported by **3** files |
264 | 273 | - `src/detectors/config.ts` — imported by **3** files |
|
270 | 279 | - `src/ast/extract-scenegraph.ts` — imported by **3** files |
271 | 280 | - `src/ast/extract-csharp.ts` — imported by **3** files |
272 | 281 | - `src/ast/extract-php.ts` — imported by **3** files |
| 282 | +- `src/generators/ai-config.ts` — imported by **3** files |
273 | 283 |
|
274 | 284 | ## Import Map (who imports what) |
275 | 285 |
|
276 | | -- `src/types.ts` ← `src/ast/extract-android.ts`, `src/ast/extract-brighterscript.ts`, `src/ast/extract-brightscript.ts`, `src/ast/extract-components.ts`, `src/ast/extract-csharp.ts` +45 more |
277 | | -- `src/scanner.ts` ← `src/core.ts`, `src/detectors/components.ts`, `src/detectors/config.ts`, `src/detectors/contracts.ts`, `src/detectors/coverage.ts` +11 more |
| 286 | +- `src/types.ts` ← `src/ast/extract-android.ts`, `src/ast/extract-brighterscript.ts`, `src/ast/extract-brightscript.ts`, `src/ast/extract-components.ts`, `src/ast/extract-csharp.ts` +46 more |
| 287 | +- `src/scanner.ts` ← `src/core.ts`, `src/detectors/components.ts`, `src/detectors/config.ts`, `src/detectors/contracts.ts`, `src/detectors/coverage.ts` +12 more |
278 | 288 | - `src/ast/loader.ts` ← `src/ast/extract-components.ts`, `src/ast/extract-routes.ts`, `src/ast/extract-schema.ts`, `src/detectors/components.ts`, `src/detectors/routes.ts` +1 more |
279 | 289 | - `src/plugins/terraform/types.ts` ← `src/plugins/terraform/file-collector.ts`, `src/plugins/terraform/formatter.ts`, `src/plugins/terraform/hcl-parser.ts`, `src/plugins/terraform/index.ts`, `src/plugins/terraform/index.ts` +1 more |
280 | 290 | - `src/ast/extract-brightscript.ts` ← `src/ast/extract-brighterscript.ts`, `src/detectors/events.ts`, `src/detectors/libs.ts`, `src/detectors/middleware.ts`, `src/detectors/routes.ts` |
281 | 291 | - `src/plugins/cicd/types.ts` ← `src/plugins/cicd/circleci.ts`, `src/plugins/cicd/formatter.ts`, `src/plugins/cicd/github-actions.ts`, `src/plugins/cicd/index.ts`, `src/plugins/cicd/index.ts` |
282 | 292 | - `src/plugins/githooks/types.ts` ← `src/plugins/githooks/formatter.ts`, `src/plugins/githooks/husky.ts`, `src/plugins/githooks/index.ts`, `src/plugins/githooks/lefthook.ts`, `src/plugins/githooks/raw.ts` |
283 | | -- `src/ast/native-loader.ts` ← `src/core.ts`, `src/detectors/routes.ts`, `src/detectors/schema.ts`, `src/index.ts` |
284 | | -- `src/detectors/routes.ts` ← `src/core.ts`, `src/eval.ts`, `src/mcp-server.ts` |
| 293 | +- `src/detectors/routes.ts` ← `src/core.ts`, `src/detectors/native.ts`, `src/eval.ts`, `src/mcp-server.ts` |
285 | 294 | - `src/detectors/schema.ts` ← `src/core.ts`, `src/eval.ts`, `src/mcp-server.ts` |
| 295 | +- `src/detectors/components.ts` ← `src/core.ts`, `src/eval.ts`, `src/mcp-server.ts` |
286 | 296 |
|
287 | 297 | --- |
288 | 298 |
|
|
0 commit comments