replicas-engine 0.1.919 → 0.1.922

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.
@@ -3,13 +3,13 @@ import { createRequire as __createRequire } from 'node:module';
3
3
  const require = __createRequire(import.meta.url);
4
4
  import {
5
5
  publishedPullRequestUrls
6
- } from "./chunk-UJJOLFGD.js";
6
+ } from "./chunk-2J5TLHIA.js";
7
7
  import {
8
8
  isRecord
9
9
  } from "./chunk-UZSNFLDQ.js";
10
10
  import {
11
11
  shouldRefreshPullRequests
12
- } from "./chunk-LITJGHSD.js";
12
+ } from "./chunk-VT557AFP.js";
13
13
  import "./chunk-VEQXQN22.js";
14
14
 
15
15
  // src/services/post-tool-pr-notifier.ts
@@ -11,7 +11,7 @@ import {
11
11
  relaySubagentResponseSchema,
12
12
  spawnRelaySubagentRequestSchema,
13
13
  waitRelaySubagentRequestSchema
14
- } from "./chunk-LITJGHSD.js";
14
+ } from "./chunk-VT557AFP.js";
15
15
  import "./chunk-VEQXQN22.js";
16
16
 
17
17
  // src/relay-mcp.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "replicas-engine",
3
- "version": "0.1.919",
3
+ "version": "0.1.922",
4
4
  "description": "Lightweight API server for Replicas workspaces",
5
5
  "type": "module",
6
6
  "main": "dist/src/index.js",
@@ -4,7 +4,7 @@
4
4
  # Resets backoff after the engine runs stably for STABLE_THRESHOLD seconds.
5
5
  set -u
6
6
 
7
- WARMING_FLAG="${1:-}"
7
+ ENGINE_FLAG="${1:-}"
8
8
  PIDFILE="/tmp/replicas-engine.pid"
9
9
  MAX_BACKOFF=60
10
10
  BACKOFF=1
@@ -76,10 +76,6 @@ if [ -r "$ENGINE_BIN" ]; then
76
76
  ENGINE_CMD=("$NODE_BIN" "$ENGINE_BIN")
77
77
  fi
78
78
  fi
79
- if [ -n "$WARMING_FLAG" ]; then
80
- ENGINE_CMD+=("$WARMING_FLAG")
81
- fi
82
-
83
79
  while true; do
84
80
  if [ "$RESTART_COUNT" -ge "$MAX_RESTARTS" ]; then
85
81
  log "Exceeded max restarts ($MAX_RESTARTS). Giving up."
@@ -87,13 +83,13 @@ while true; do
87
83
  fi
88
84
 
89
85
  BOOTSTRAP_LOG="/tmp/replicas-engine-bootstrap-$(date +%Y%m%d-%H%M%S).log"
90
- log "Starting replicas-engine (attempt $((RESTART_COUNT + 1)))${WARMING_FLAG:+ [warming mode]}"
86
+ log "Starting replicas-engine (attempt $((RESTART_COUNT + 1)))${ENGINE_FLAG:+ [$ENGINE_FLAG]}"
91
87
 
92
88
  START_TIME=$(date +%s)
93
89
  if [ -n "$ENGINE_LD_PRELOAD" ]; then
94
- LD_PRELOAD="$ENGINE_LD_PRELOAD" "${ENGINE_CMD[@]}" > >(cat >> "$BOOTSTRAP_LOG") 2>&1 &
90
+ LD_PRELOAD="$ENGINE_LD_PRELOAD" "${ENGINE_CMD[@]}" ${ENGINE_FLAG:+"$ENGINE_FLAG"} > >(cat >> "$BOOTSTRAP_LOG") 2>&1 &
95
91
  else
96
- "${ENGINE_CMD[@]}" > >(cat >> "$BOOTSTRAP_LOG") 2>&1 &
92
+ "${ENGINE_CMD[@]}" ${ENGINE_FLAG:+"$ENGINE_FLAG"} > >(cat >> "$BOOTSTRAP_LOG") 2>&1 &
97
93
  fi
98
94
  ENGINE_PID=$!
99
95
  echo "$ENGINE_PID" > "$PIDFILE"