@h-rig/server 0.0.6-alpha.2 → 0.0.6-alpha.20

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.
@@ -63,8 +63,7 @@ function buildRunStartPatch(startedAt) {
63
63
  status: "preparing",
64
64
  startedAt,
65
65
  completedAt: null,
66
- errorText: null,
67
- serverPid: process.pid
66
+ errorText: null
68
67
  };
69
68
  }
70
69
  export {
@@ -376,6 +376,11 @@ import {
376
376
  buildTaskRunLifecycleComment,
377
377
  updateConfiguredTaskSourceTask
378
378
  } from "@rig/runtime/control-plane/tasks/source-lifecycle";
379
+ import {
380
+ closeIssueAfterMergedPr,
381
+ commitRunChanges,
382
+ runPrAutomation
383
+ } from "@rig/runtime/control-plane/native/pr-automation";
379
384
 
380
385
  // packages/server/src/scheduler.ts
381
386
  import { normalizeTaskLifecycleStatus } from "@rig/runtime/control-plane/state-sync/types";
@@ -403,7 +408,8 @@ var TERMINAL_RUN_STATUSES2 = new Set([
403
408
  "needs-attention",
404
409
  "stopped"
405
410
  ]);
406
- var ORPHANABLE_LOCAL_RUN_STATUSES = new Set(["preparing", "running"]);
411
+ var RESUMABLE_SERVER_CLOSEOUT_STATUSES = new Set(["pending", "running"]);
412
+ var ACTIVE_LOCAL_RUN_STATUSES = new Set(["created", "preparing", "running", "validating", "reviewing"]);
407
413
 
408
414
  // packages/server/src/server-helpers/http-router.ts
409
415
  import {