@invariant.guru/cli 0.3.15 → 0.4.2

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/README.md CHANGED
@@ -161,3 +161,24 @@ invariant plan "implement user authentication"
161
161
  invariant plan "implement user authentication" --full
162
162
  invariant plan "implement user authentication" --context everything-claude-code/dev
163
163
  ```
164
+
165
+ ### `invariant scan [options]`
166
+
167
+ Scan the current codebase with embedded tree-sitter grammars. Produces `.invariant/scan/scan-report.json` and `.invariant/scan/scan-report.md` — a structured inventory of files, languages, and top-level symbols.
168
+
169
+ ```bash
170
+ invariant scan
171
+ invariant scan --language typescript --language python
172
+ invariant scan --format json --max-files 2000
173
+ ```
174
+
175
+ | Flag | Description |
176
+ |------|-------------|
177
+ | `-i, --include <globs...>` | Include globs (default: `**/*`) |
178
+ | `-e, --exclude <globs...>` | Extra exclude globs (in addition to sensible defaults) |
179
+ | `-l, --language <langs...>` | Restrict to specific languages |
180
+ | `-f, --format <format>` | `json`, `markdown`, or `both` (default: `both`) |
181
+ | `--max-files <n>` | Cap total scanned files (default: 5000) |
182
+ | `--max-size <bytes>` | Skip files larger than this (default: 1 MB) |
183
+
184
+ Supported languages: TypeScript, JavaScript, Python, Go, Rust, JSON, Markdown, HTML, CSS.
Binary file