e2e-agent-runner 1.15.0 → 1.16.0
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/package.json +1 -1
- package/runner.mjs +11 -0
package/package.json
CHANGED
package/runner.mjs
CHANGED
|
@@ -187,6 +187,16 @@ function handlePrRequest(res) {
|
|
|
187
187
|
if (res?.pr_request?.task_id && res.pr_request.branch) trackBg(runPrRequest(res.pr_request));
|
|
188
188
|
}
|
|
189
189
|
|
|
190
|
+
// ─── 웹 원격 업데이트 요청(1.16.0+) — 폴 응답의 update 지시 ────────────────────
|
|
191
|
+
|
|
192
|
+
/** 서버가 전달한 업데이트 지시 — 주기(최대 6시간)를 기다리지 않고 즉시 레지스트리 확인.
|
|
193
|
+
* 새 버전이 있으면 updater.pending 이 잡히고, 메인 루프가 유휴(단계·백그라운드 작업 없음)일 때 교체한다. */
|
|
194
|
+
function handleUpdateRequest(res) {
|
|
195
|
+
if (!res?.update) return;
|
|
196
|
+
log('웹에서 업데이트 요청 수신 — 지금 새 버전을 확인합니다(교체는 유휴 시).');
|
|
197
|
+
void checkForUpdate();
|
|
198
|
+
}
|
|
199
|
+
|
|
190
200
|
// ─── 이벤트 버퍼(1s 플러시) ───────────────────────────────────────────────────
|
|
191
201
|
|
|
192
202
|
class EventBuffer {
|
|
@@ -1098,6 +1108,7 @@ async function main() {
|
|
|
1098
1108
|
mergeCancels(res);
|
|
1099
1109
|
handleProbe(res);
|
|
1100
1110
|
handlePrRequest(res);
|
|
1111
|
+
handleUpdateRequest(res);
|
|
1101
1112
|
pollThrottle.ok();
|
|
1102
1113
|
pollDelayS = POLL_S;
|
|
1103
1114
|
if (res.step) {
|