opensyn 0.1.3 → 0.1.4

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.
@@ -2,7 +2,7 @@
2
2
  "id": "opensyn",
3
3
  "name": "OpenSyn",
4
4
  "description": "Expose local OpenSyn context to OpenClaw through native plugin tools.",
5
- "version": "0.1.0",
5
+ "version": "0.1.4",
6
6
  "configSchema": {
7
7
  "type": "object",
8
8
  "additionalProperties": false,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opensyn",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "description": "OpenClaw plugin for OpenSyn autonomous local collection, distillation, and host overlay projection.",
5
5
  "type": "module",
6
6
  "private": false,
@@ -2,6 +2,7 @@
2
2
  set -euo pipefail
3
3
 
4
4
  script_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
5
+ script_path="$(cd "$script_dir" && pwd)/$(basename "${BASH_SOURCE[0]}")"
5
6
 
6
7
  platform="$(uname -s | tr '[:upper:]' '[:lower:]')"
7
8
  arch_raw="$(uname -m)"
@@ -30,6 +31,12 @@ candidates+=(
30
31
  )
31
32
 
32
33
  for candidate in "${candidates[@]}"; do
34
+ if [[ -n "$candidate" ]]; then
35
+ candidate_real="$(realpath -m "$candidate" 2>/dev/null || printf '%s' "$candidate")"
36
+ if [[ "$candidate_real" == "$script_path" ]]; then
37
+ continue
38
+ fi
39
+ fi
33
40
  if [[ -n "$candidate" && -x "$candidate" ]]; then
34
41
  exec "$candidate" "$@"
35
42
  fi
@@ -2,6 +2,7 @@
2
2
  set -euo pipefail
3
3
 
4
4
  script_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
5
+ script_path="$(cd "$script_dir" && pwd)/$(basename "${BASH_SOURCE[0]}")"
5
6
 
6
7
  platform="$(uname -s | tr '[:upper:]' '[:lower:]')"
7
8
  arch_raw="$(uname -m)"
@@ -30,6 +31,12 @@ candidates+=(
30
31
  )
31
32
 
32
33
  for candidate in "${candidates[@]}"; do
34
+ if [[ -n "$candidate" ]]; then
35
+ candidate_real="$(realpath -m "$candidate" 2>/dev/null || printf '%s' "$candidate")"
36
+ if [[ "$candidate_real" == "$script_path" ]]; then
37
+ continue
38
+ fi
39
+ fi
33
40
  if [[ -n "$candidate" && -x "$candidate" ]]; then
34
41
  exec "$candidate" "$@"
35
42
  fi