yatfa 1.0.69 → 1.0.70

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 (2) hide show
  1. package/bin/yatfa-runner +8 -1
  2. package/package.json +1 -1
package/bin/yatfa-runner CHANGED
@@ -1,5 +1,12 @@
1
1
  #!/usr/bin/env bash
2
2
  # yatfa - Agent runner wrapper
3
3
  # Sets process name to yatfa-<agent-type> so ps/top/Activity Monitor shows it clearly.
4
- DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
4
+ # Resolve through npm symlinks (node_modules/.bin/yatfa -> ../yatfa/bin/yatfa-runner)
5
+ SELF="${BASH_SOURCE[0]}"
6
+ while [ -L "$SELF" ]; do
7
+ DIR="$(cd -P "$(dirname "$SELF")" && pwd)"
8
+ SELF="$(readlink "$SELF")"
9
+ [[ "$SELF" != /* ]] && SELF="$DIR/$SELF"
10
+ done
11
+ DIR="$(cd -P "$(dirname "$SELF")" && pwd)"
5
12
  exec -a "yatfa-${1:-yatfa}" ruby "$DIR/run-yatfa-agent.rb" "$@"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yatfa",
3
- "version": "1.0.69",
3
+ "version": "1.0.70",
4
4
  "description": "YATFA - Yet Another Tool For Agents",
5
5
  "bin": "./bin/yatfa-runner",
6
6
  "files": [