@ataraxy-labs/sem 0.4.0 → 0.5.3
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 +16 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -57,9 +57,7 @@ bun pm trust @ataraxy-labs/sem
|
|
|
57
57
|
Or build from source (requires Rust):
|
|
58
58
|
|
|
59
59
|
```bash
|
|
60
|
-
git
|
|
61
|
-
cd sem/crates
|
|
62
|
-
cargo install --path sem-cli
|
|
60
|
+
cargo install --git https://github.com/Ataraxy-Labs/sem sem-cli
|
|
63
61
|
```
|
|
64
62
|
|
|
65
63
|
Or grab a binary from [GitHub Releases](https://github.com/Ataraxy-Labs/sem/releases).
|
|
@@ -277,6 +275,20 @@ Plus structured data formats:
|
|
|
277
275
|
|
|
278
276
|
Everything else falls back to chunk-based diffing.
|
|
279
277
|
|
|
278
|
+
### Custom extensions and extensionless files
|
|
279
|
+
|
|
280
|
+
For files with non-standard extensions, create a `.semrc` in your project root:
|
|
281
|
+
|
|
282
|
+
```
|
|
283
|
+
.xyz = cpp
|
|
284
|
+
.j = json
|
|
285
|
+
.mypy = python
|
|
286
|
+
```
|
|
287
|
+
|
|
288
|
+
sem also reads `.gitattributes` patterns (`diff=` and `linguist-language=`) if you already have those set up. `.semrc` takes priority when both define the same extension.
|
|
289
|
+
|
|
290
|
+
For files with no extension at all, sem detects the language automatically from content (imports, declarations, shebang lines, vim modelines). This covers 19 languages with no config needed.
|
|
291
|
+
|
|
280
292
|
## How matching works
|
|
281
293
|
|
|
282
294
|
Three-phase entity matching:
|
|
@@ -341,7 +353,7 @@ sem-core can be used as a Rust library dependency:
|
|
|
341
353
|
|
|
342
354
|
```toml
|
|
343
355
|
[dependencies]
|
|
344
|
-
sem-core = { git = "https://github.com/Ataraxy-Labs/sem", version = "0.
|
|
356
|
+
sem-core = { git = "https://github.com/Ataraxy-Labs/sem", version = "0.5" }
|
|
345
357
|
```
|
|
346
358
|
|
|
347
359
|
Used by [weave](https://github.com/Ataraxy-Labs/weave) (semantic merge driver) and [inspect](https://github.com/Ataraxy-Labs/inspect) (entity-level code review).
|
package/package.json
CHANGED