cnagent 2.1.1 → 2.1.2

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/cn +9 -1
  2. package/package.json +1 -1
package/bin/cn CHANGED
@@ -3,7 +3,15 @@
3
3
  # OCaml source: tools/src/cn/
4
4
  # Bundled JS: tools/dist/cn.js
5
5
 
6
- SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
6
+ # Resolve symlinks to find actual script location
7
+ SCRIPT="$0"
8
+ while [ -L "$SCRIPT" ]; do
9
+ SCRIPT_DIR="$(cd "$(dirname "$SCRIPT")" && pwd)"
10
+ SCRIPT="$(readlink "$SCRIPT")"
11
+ [ "${SCRIPT%${SCRIPT#?}}" != "/" ] && SCRIPT="$SCRIPT_DIR/$SCRIPT"
12
+ done
13
+ SCRIPT_DIR="$(cd "$(dirname "$SCRIPT")" && pwd)"
14
+
7
15
  DIST="$SCRIPT_DIR/../tools/dist/cn.js"
8
16
 
9
17
  if [ ! -f "$DIST" ]; then
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cnagent",
3
- "version": "2.1.1",
3
+ "version": "2.1.2",
4
4
  "description": "Coherent Network agent CLI — everything runs through cn",
5
5
  "keywords": [
6
6
  "cn-agent",