niahere 0.2.3 → 0.2.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.
Files changed (2) hide show
  1. package/bin/nia +11 -1
  2. package/package.json +1 -1
package/bin/nia CHANGED
@@ -19,4 +19,14 @@ if ! command -v bun >/dev/null 2>&1; then
19
19
  exit 1
20
20
  fi
21
21
  fi
22
- exec bun "$(dirname "$0")/../src/cli/index.ts" "$@"
22
+
23
+ # Resolve symlink to find the actual package directory
24
+ SCRIPT="$0"
25
+ while [ -L "$SCRIPT" ]; do
26
+ DIR="$(cd "$(dirname "$SCRIPT")" && pwd)"
27
+ SCRIPT="$(readlink "$SCRIPT")"
28
+ case "$SCRIPT" in /*) ;; *) SCRIPT="$DIR/$SCRIPT" ;; esac
29
+ done
30
+ PACKAGE_DIR="$(cd "$(dirname "$SCRIPT")/.." && pwd)"
31
+
32
+ exec bun "$PACKAGE_DIR/src/cli/index.ts" "$@"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "niahere",
3
- "version": "0.2.3",
3
+ "version": "0.2.4",
4
4
  "description": "A personal AI assistant daemon — scheduled jobs, chat across Telegram and Slack, persona system, and visual identity.",
5
5
  "type": "module",
6
6
  "scripts": {