domniguard 0.1.5 → 0.1.6

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.
Files changed (3) hide show
  1. package/README.md +17 -7
  2. package/install.sh +9 -1
  3. package/package.json +3 -3
package/README.md CHANGED
@@ -4,18 +4,28 @@ DOmniGuard is a lightweight, single-binary Linux security daemon combining perio
4
4
 
5
5
  ## Installation
6
6
 
7
- ### Via npm (requires Node.js >= 18 during installation)
7
+ ### Fresh install (one command, no Node.js required)
8
8
  ```bash
9
- sudo npm install -g domniguard
10
- sudo domniguard setup
9
+ curl -sSL https://unpkg.com/domniguard-linux-x64/install.sh | sudo bash -s -- --non-interactive
10
+ # arm64: https://unpkg.com/domniguard-linux-arm64/install.sh
11
11
  ```
12
- Once `domniguard setup` completes, the Go binary is installed at `/usr/local/bin/domniguard` and runs independently of Node.js via systemd or OpenRC.
12
+ Install script downloads the platform binary from npm, then runs `setup` (or `upgrade` if already installed).
13
13
 
14
- ### Via curl (no Node.js required)
14
+ ### Via npm (Node.js >= 18)
15
15
  ```bash
16
- curl -sSL https://unpkg.com/domniguard/install.sh | sudo bash
16
+ sudo npm install -g domniguard && sudo domniguard setup
17
17
  ```
18
18
 
19
+ ### Upgrade existing install (one command)
20
+ ```bash
21
+ curl -sSL https://unpkg.com/domniguard-linux-x64/install.sh | sudo bash
22
+ ```
23
+ Or with npm:
24
+ ```bash
25
+ sudo npm install -g domniguard@latest && sudo domniguard upgrade
26
+ ```
27
+ `upgrade` replaces `/usr/local/bin/domniguard`, refreshes the systemd/OpenRC unit, and restarts — it never overwrites config or secrets.
28
+
19
29
  ## Quick Commands
20
30
  - `domniguard run --config /etc/domniguard/config.yaml` — Run the daemon
21
31
  - `domniguard mcp --stdio` — Bridge stdio MCP client to running daemon Unix socket
@@ -24,7 +34,7 @@ curl -sSL https://unpkg.com/domniguard/install.sh | sudo bash
24
34
  - `domniguard doctor --config /etc/domniguard/config.yaml` — Inspect OS, backends, and connectivity
25
35
  - `domniguard actions list|approve|reject|rollback` — Manage approval actions via CLI
26
36
  - `domniguard audit show <event_id>` — View incident timeline
27
- - `domniguard setup` / `domniguard uninstall [--purge]` — Install/remove daemon service
37
+ - `domniguard setup` / `domniguard upgrade` / `domniguard uninstall [--purge]` — Install / upgrade / remove
28
38
  - `domniguard vira connect|status|test|disconnect|set-webhook` — Connect first-party Vira AI agent
29
39
 
30
40
  ## Connect Vira AI agent
package/install.sh CHANGED
@@ -17,7 +17,9 @@ case "$ARCH_RAW" in
17
17
  esac
18
18
 
19
19
  PKG="domniguard-linux-${ARCH}"
20
- META_URL="https://registry.npmjs.org/${PKG}/latest"
20
+ # Optional pin: DOMNIGUARD_VERSION=0.1.6 curl ... | sudo bash
21
+ VERSION="${DOMNIGUARD_VERSION:-latest}"
22
+ META_URL="https://registry.npmjs.org/${PKG}/${VERSION}"
21
23
 
22
24
  TMP_DIR="$(mktemp -d)"
23
25
  trap 'rm -rf "$TMP_DIR"' EXIT
@@ -61,4 +63,10 @@ tar -xzf "$TMP_DIR/pkg.tgz" -C "$TMP_DIR"
61
63
  BIN_PATH="$TMP_DIR/package/bin/domniguard"
62
64
  chmod +x "$BIN_PATH"
63
65
 
66
+ # Existing installs: upgrade binary + unit only (never touch config/secrets).
67
+ if [ -x /usr/local/bin/domniguard ] && [ -f /etc/domniguard/config.yaml ]; then
68
+ echo "Existing install detected — running upgrade..."
69
+ exec "$BIN_PATH" upgrade
70
+ fi
71
+
64
72
  exec "$BIN_PATH" setup "$@"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "domniguard",
3
- "version": "0.1.5",
3
+ "version": "0.1.6",
4
4
  "description": "DOmniGuard AI-Driven Linux Server Security Daemon (MCP + Webhook)",
5
5
  "license": "UNLICENSED",
6
6
  "bin": {
@@ -15,7 +15,7 @@
15
15
  "node": ">=18"
16
16
  },
17
17
  "optionalDependencies": {
18
- "domniguard-linux-x64": "0.1.5",
19
- "domniguard-linux-arm64": "0.1.5"
18
+ "domniguard-linux-x64": "0.1.6",
19
+ "domniguard-linux-arm64": "0.1.6"
20
20
  }
21
21
  }