agentguard-local 0.1.0 → 0.1.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.
@@ -1,6 +1,15 @@
1
1
  #!/bin/sh
2
2
  set -eu
3
- DIR=$(CDPATH= cd -- "$(dirname -- "$0")" && pwd)
3
+ PRG="$0"
4
+ while [ -h "$PRG" ]; do
5
+ DIR=$(CDPATH= cd -P -- "$(dirname -- "$PRG")" && pwd)
6
+ LINK=$(readlink "$PRG")
7
+ case "$LINK" in
8
+ /*) PRG="$LINK" ;;
9
+ *) PRG="$DIR/$LINK" ;;
10
+ esac
11
+ done
12
+ DIR=$(CDPATH= cd -P -- "$(dirname -- "$PRG")" && pwd)
4
13
  BIN="$DIR/darwin-arm64/agentguard"
5
14
  if [ ! -x "$BIN" ]; then
6
15
  echo "agentguard: bundled darwin-arm64 binary is missing. Build from source with cargo build --release." >&2
@@ -1,6 +1,15 @@
1
1
  #!/bin/sh
2
2
  set -eu
3
- DIR=$(CDPATH= cd -- "$(dirname -- "$0")" && pwd)
3
+ PRG="$0"
4
+ while [ -h "$PRG" ]; do
5
+ DIR=$(CDPATH= cd -P -- "$(dirname -- "$PRG")" && pwd)
6
+ LINK=$(readlink "$PRG")
7
+ case "$LINK" in
8
+ /*) PRG="$LINK" ;;
9
+ *) PRG="$DIR/$LINK" ;;
10
+ esac
11
+ done
12
+ DIR=$(CDPATH= cd -P -- "$(dirname -- "$PRG")" && pwd)
4
13
  BIN="$DIR/darwin-arm64/agentguardd"
5
14
  if [ ! -x "$BIN" ]; then
6
15
  echo "agentguardd: bundled darwin-arm64 binary is missing. Build from source with cargo build --release." >&2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agentguard-local",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "macOS-first RAM-aware admission controller for local AI coding CLI processes",
5
5
  "license": "MIT OR Apache-2.0",
6
6
  "homepage": "https://github.com/aiswarya797/agentguard#readme",