replicas-engine 0.1.920 → 0.1.923
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.
- package/dist/src/{asp-host-7ZSVWHTS.js → asp-host-24DVCCC3.js} +4 -4
- package/dist/src/{chunk-CO3743XW.js → chunk-2J5TLHIA.js} +1 -1
- package/dist/src/{chunk-AOBS7XEL.js → chunk-HEYQCKMN.js} +2 -2
- package/dist/src/{chunk-6GY7ZCSO.js → chunk-IRVUCLOA.js} +2 -2
- package/dist/src/{chunk-UMXQF6DT.js → chunk-LYX74DW2.js} +25 -20
- package/dist/src/{chunk-FJV46MRD.js → chunk-MNNFNXNL.js} +11 -11
- package/dist/src/{chunk-MLSB5HUT.js → chunk-VT557AFP.js} +61 -57
- package/dist/src/command-protection-hook.js +3 -3
- package/dist/src/headless-agent.js +2 -2
- package/dist/src/index.js +284 -146
- package/dist/src/post-tool-pr-hook.js +2 -2
- package/dist/src/relay-mcp.js +1 -1
- package/package.json +1 -1
- package/scripts/engine-watchdog.sh +4 -8
|
@@ -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-
|
|
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-
|
|
12
|
+
} from "./chunk-VT557AFP.js";
|
|
13
13
|
import "./chunk-VEQXQN22.js";
|
|
14
14
|
|
|
15
15
|
// src/services/post-tool-pr-notifier.ts
|
package/dist/src/relay-mcp.js
CHANGED
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
# Resets backoff after the engine runs stably for STABLE_THRESHOLD seconds.
|
|
5
5
|
set -u
|
|
6
6
|
|
|
7
|
-
|
|
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)))${
|
|
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"
|