abtars 0.2.1-alpha.4 → 0.2.1-alpha.5

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.
@@ -15,7 +15,7 @@
15
15
  "path": "bin"
16
16
  },
17
17
  {
18
- "path": "releases"
18
+ "path": "app"
19
19
  },
20
20
  {
21
21
  "path": "skills/core"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "abtars",
3
- "version": "0.2.1-alpha.4",
3
+ "version": "0.2.1-alpha.5",
4
4
  "description": "Standalone agent bridging Telegram to Kiro CLI via tmux/ACP",
5
5
  "type": "module",
6
6
  "main": "bundle/abtars.js",
package/scripts/abtars.sh CHANGED
@@ -3,12 +3,10 @@
3
3
  set -euo pipefail
4
4
 
5
5
  ABTARS_HOME="${ABTARS_HOME:-$HOME/.abtars}"
6
- CURRENT="$ABTARS_HOME/current/bundle"
7
6
 
8
- # Make globally-installed abmind resolvable by the bundle
9
- GLOBAL_MODULES="$(npm root -g 2>/dev/null || true)"
7
+ # Make native addons (better-sqlite3) resolvable
10
8
  ABMIND_LIB="${ABMIND_HOME:-$HOME/.abmind}/lib/node_modules"
11
- NODE_PATH="${GLOBAL_MODULES:+$GLOBAL_MODULES:}${ABMIND_LIB:+$ABMIND_LIB:}${NODE_PATH:-}"
9
+ NODE_PATH="${ABMIND_LIB:+$ABMIND_LIB:}${NODE_PATH:-}"
12
10
  export NODE_PATH
13
11
 
14
- exec node "$CURRENT/abtars.js" "$@"
12
+ exec node "$ABTARS_HOME/app/bundle/abtars.js" "$@"
@@ -158,10 +158,9 @@ spawn_bridge() {
158
158
 
159
159
  # Source .env so platform ENABLED vars reach the node process
160
160
  if [ -f "$AB/config/.env" ]; then set -a; source "$AB/config/.env"; set +a; fi
161
- # Stable entry point: main.js symlink created by abtars update.
162
- log "Starting bridge: node current/main.js $*"
161
+ log "Starting bridge: node app/bundle/abtars.js $*"
163
162
  cd "$AB"
164
- NODE_PATH="current/node_modules:$(npm root -g 2>/dev/null || echo ''):${ABMIND_HOME:-$HOME/.abmind}/lib/node_modules:${NODE_PATH:-}" node current/main.js "$@" >> "$AB/logs/launchd.log" 2>&1 &
163
+ NODE_PATH="${ABMIND_HOME:-$HOME/.abmind}/lib/node_modules:${NODE_PATH:-}" node app/bundle/abtars.js "$@" >> "$AB/logs/launchd.log" 2>&1 &
165
164
  SPAWNED_AT=$(date +%s)
166
165
 
167
166
  # Wait for bridge.lock with PID