localvault 1.9.0 → 1.9.1
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.
- checksums.yaml +4 -4
- data/README.md +17 -0
- data/lib/localvault/cli/guard.rb +3 -2
- data/lib/localvault/cli.rb +2 -0
- data/lib/localvault/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 20aa094af163dfa0173fae2eabfc274da78badf84ebc37366bf85163f7b7f77d
|
|
4
|
+
data.tar.gz: f113382f8edb4a630732b56de9abe163470c0c377bbcbf64951fde108f6d5e0b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e65ac37ab002da71e42ed5d1e31369dd492982683e2817165060962777e197b8873b6c73c11761d2f7aa829c1c6729f7334691d83d16f0de858c59de2a8abbec
|
|
7
|
+
data.tar.gz: 2efaf71acba0f24beaa48313a88d0a9f58058d42f7c80a5ef439af76f29deac6df30435dd74868d04d1bbedf224e1d87499a647e32509cecf0895d696f453934
|
data/README.md
CHANGED
|
@@ -16,12 +16,29 @@ Part of [InventList Tools](https://inventlist.com/tools/localvault) — free, op
|
|
|
16
16
|
brew install inventlist/tap/localvault
|
|
17
17
|
```
|
|
18
18
|
|
|
19
|
+
### Install script (no Homebrew)
|
|
20
|
+
|
|
21
|
+
```bash
|
|
22
|
+
curl -sSL https://raw.githubusercontent.com/inventlist/localvault/main/install.sh | sh
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
Installs into an isolated prefix (`~/.localvault/runtime`) and writes a wrapper
|
|
26
|
+
to your PATH that pins its own Ruby. It never adds a version-manager shim and
|
|
27
|
+
never touches your project gems, so `localvault` keeps working when you switch
|
|
28
|
+
Ruby versions. Override with `LOCALVAULT_BIN_DIR`, `LOCALVAULT_PREFIX`,
|
|
29
|
+
`LOCALVAULT_VERSION`, or `LOCALVAULT_RUBY`.
|
|
30
|
+
|
|
19
31
|
### RubyGems
|
|
20
32
|
|
|
21
33
|
```bash
|
|
22
34
|
gem install localvault
|
|
23
35
|
```
|
|
24
36
|
|
|
37
|
+
A plain `gem install` under asdf/rbenv creates a shim that can shadow your
|
|
38
|
+
Homebrew build and silently pin you to an old version. If `localvault version`
|
|
39
|
+
disagrees with what you installed, run `localvault doctor` — it lists every
|
|
40
|
+
copy on your PATH.
|
|
41
|
+
|
|
25
42
|
**Requires libsodium:**
|
|
26
43
|
|
|
27
44
|
```bash
|
data/lib/localvault/cli/guard.rb
CHANGED
|
@@ -64,8 +64,9 @@ module LocalVault
|
|
|
64
64
|
# missing PATH binary never breaks the user's sessions — but it also
|
|
65
65
|
# silently guards nothing, which deserves a loud note at install time.
|
|
66
66
|
def warn_if_path_binary_lacks_guard
|
|
67
|
-
|
|
68
|
-
|
|
67
|
+
# Probe the PATH binary itself: `guard status` exits 0 only where the
|
|
68
|
+
# command exists. Parsing curated help text is not a version check.
|
|
69
|
+
return if system("localvault guard status", out: File::NULL, err: File::NULL)
|
|
69
70
|
|
|
70
71
|
$stderr.puts "Note: the `localvault` on your PATH does not support `guard hook` " \
|
|
71
72
|
"(old version or different install). The hook fails open and guards " \
|
data/lib/localvault/cli.rb
CHANGED
|
@@ -174,6 +174,8 @@ module LocalVault
|
|
|
174
174
|
shell.say " localvault mcp Start MCP server (stdio)"
|
|
175
175
|
shell.say " localvault mcp --check Check setup and active-vault readiness"
|
|
176
176
|
shell.say " Agents: list names, then use localvault_build_exec for safe injection"
|
|
177
|
+
shell.say " localvault guard install Block secrets in agent commands (Claude Code hooks)"
|
|
178
|
+
shell.say " localvault guard status Show guard hook installation state"
|
|
177
179
|
shell.say ""
|
|
178
180
|
shell.say "LEGACY SHARING (pre-v1.2 direct share, still works as fallback)"
|
|
179
181
|
shell.say " localvault keygen Generate X25519 keypair (same as `keys generate`)"
|
data/lib/localvault/version.rb
CHANGED