ik_project_analyze
Analyze ik project structure to get import graph, target, @main entry, exported symbols, and unresolved import errors before editing.
Instructions
Understand a multi-file ik project structurally (exact, parser-based — not fuzzy search). Returns the import graph, the effective target and where it is declared, the @main entry file, the symbols each file exports (functions/isrs/consts), and cross-file problems (no/conflicting target, missing/duplicate @main, unresolved imports). Use this BEFORE editing an existing project so you write in the right context (e.g. don't re-declare target in imported files — they inherit it). Give a directory path, a single-file path, or inline files. Set include_diagnostics to also compile the entry point for authoritative errors.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Project directory or a single .ik file. | |
| files | No | Inline files instead of a path. | |
| include_diagnostics | No | Also run the real compiler on the entry file. |