@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.
- package/README.md +23 -0
- package/dist/src/index.js +1513 -331
- package/dist/src/server-helpers/github-api-session-index.js +107 -0
- package/dist/src/server-helpers/github-auth-store.js +68 -24
- package/dist/src/server-helpers/github-project-status-sync.js +3 -0
- package/dist/src/server-helpers/github-user-namespace.js +102 -0
- package/dist/src/server-helpers/http-router.js +1207 -185
- package/dist/src/server-helpers/issue-analysis.js +30 -11
- package/dist/src/server-helpers/project-registry.js +5 -0
- package/dist/src/server-helpers/run-io.js +13 -0
- package/dist/src/server-helpers/run-mutations.js +599 -114
- package/dist/src/server-helpers/run-writers.js +1 -2
- package/dist/src/server-helpers/ws-router.js +7 -1
- package/dist/src/server.js +1512 -331
- package/package.json +4 -4
|
@@ -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
|
|
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 {
|