@ataraxy-labs/sem 0.3.24 → 0.5.0
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 +21 -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).
|
|
@@ -71,6 +69,25 @@ docker build -t sem .
|
|
|
71
69
|
docker run --rm -it -u "$(id -u):$(id -g)" -v "$(pwd):/repo" sem diff
|
|
72
70
|
```
|
|
73
71
|
|
|
72
|
+
## Name conflict with GNU Parallel
|
|
73
|
+
|
|
74
|
+
GNU Parallel ships a `sem` binary (`/usr/bin/sem`) as a symlink to `parallel`. If you have both installed, they'll collide. Run `sem --version` to check which one you're using. ([#77](https://github.com/Ataraxy-Labs/sem/issues/77))
|
|
75
|
+
|
|
76
|
+
**Quick fixes:**
|
|
77
|
+
|
|
78
|
+
```bash
|
|
79
|
+
# Option 1: alias in your shell profile (~/.bashrc, ~/.zshrc)
|
|
80
|
+
alias sem="$HOME/.cargo/bin/sem"
|
|
81
|
+
|
|
82
|
+
# Option 2: make sure cargo bin comes first in PATH
|
|
83
|
+
export PATH="$HOME/.cargo/bin:$PATH"
|
|
84
|
+
|
|
85
|
+
# Option 3: if installed via Homebrew
|
|
86
|
+
export PATH="$(brew --prefix)/bin:$PATH"
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
If you installed via npm/bun, the binary lives in `node_modules/.bin/sem` and is invoked through `npx sem` or `bunx sem`, which avoids the conflict entirely.
|
|
90
|
+
|
|
74
91
|
## Commands
|
|
75
92
|
|
|
76
93
|
Works in any Git repo. No setup required. Also works outside Git for arbitrary file comparison.
|
|
@@ -322,7 +339,7 @@ sem-core can be used as a Rust library dependency:
|
|
|
322
339
|
|
|
323
340
|
```toml
|
|
324
341
|
[dependencies]
|
|
325
|
-
sem-core = { git = "https://github.com/Ataraxy-Labs/sem", version = "0.
|
|
342
|
+
sem-core = { git = "https://github.com/Ataraxy-Labs/sem", version = "0.4" }
|
|
326
343
|
```
|
|
327
344
|
|
|
328
345
|
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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ataraxy-labs/sem",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"description": "npm wrapper for the sem CLI. Downloads the matching release binary and exposes the sem command in node_modules/.bin.",
|
|
5
5
|
"license": "MIT OR Apache-2.0",
|
|
6
6
|
"type": "module",
|