@h-rig/bundle-default-lifecycle 0.0.6-alpha.140 → 0.0.6-alpha.142

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/cli.js CHANGED
@@ -3,9 +3,6 @@
3
3
  import { resolveKernelStages } from "@rig/kernel/resolver";
4
4
  import { createDefaultKernelPlugin } from "@rig/kernel/default-kernel";
5
5
 
6
- // packages/bundle-default-lifecycle/src/stages/auto-merge.ts
7
- import { runRepoDefaultMerge } from "@rig/runtime/control-plane/native/pr-automation";
8
-
9
6
  // packages/bundle-default-lifecycle/src/stages/types.ts
10
7
  function defineDefaultLifecycleStage(input) {
11
8
  return {
@@ -23,7 +20,6 @@ var autoMergeStage = defineDefaultLifecycleStage({
23
20
  });
24
21
 
25
22
  // packages/bundle-default-lifecycle/src/stages/commit.ts
26
- import { commitRunChanges } from "@rig/runtime/control-plane/native/pr-automation";
27
23
  var commitStage = defineDefaultLifecycleStage({
28
24
  id: "commit",
29
25
  kind: "transform",
@@ -32,7 +28,6 @@ var commitStage = defineDefaultLifecycleStage({
32
28
  });
33
29
 
34
30
  // packages/bundle-default-lifecycle/src/stages/isolation.ts
35
- import { ensureAgentRuntime } from "@rig/runtime/control-plane/runtime/isolation";
36
31
  var isolationStage = defineDefaultLifecycleStage({
37
32
  id: "isolation",
38
33
  kind: "transform",
@@ -49,9 +44,6 @@ var journalAppendStage = defineDefaultLifecycleStage({
49
44
  });
50
45
 
51
46
  // packages/bundle-default-lifecycle/src/stages/merge-gate.ts
52
- import {
53
- runStrictPrMergeGate
54
- } from "@rig/runtime/control-plane/native/pr-review-gate";
55
47
  var mergeGateStage = defineDefaultLifecycleStage({
56
48
  id: "merge-gate",
57
49
  kind: "gate",
@@ -60,7 +52,6 @@ var mergeGateStage = defineDefaultLifecycleStage({
60
52
  });
61
53
 
62
54
  // packages/bundle-default-lifecycle/src/stages/open-pr.ts
63
- import { runPrAutomation } from "@rig/runtime/control-plane/native/pr-automation";
64
55
  var openPrStage = defineDefaultLifecycleStage({
65
56
  id: "open-pr",
66
57
  kind: "transform",
@@ -69,7 +60,6 @@ var openPrStage = defineDefaultLifecycleStage({
69
60
  });
70
61
 
71
62
  // packages/bundle-default-lifecycle/src/stages/push.ts
72
- import { pushBranchSyncedWithOrigin } from "@rig/runtime/control-plane/native/pr-automation";
73
63
  var pushStage = defineDefaultLifecycleStage({
74
64
  id: "push",
75
65
  kind: "transform",
@@ -78,7 +68,6 @@ var pushStage = defineDefaultLifecycleStage({
78
68
  });
79
69
 
80
70
  // packages/bundle-default-lifecycle/src/stages/source-closeout.ts
81
- import { closeIssueAfterMergedPr } from "@rig/runtime/control-plane/native/pr-automation";
82
71
  var sourceCloseoutStage = defineDefaultLifecycleStage({
83
72
  id: "source-closeout",
84
73
  kind: "transform",
@@ -3,9 +3,6 @@
3
3
  import { resolveKernelStages } from "@rig/kernel/resolver";
4
4
  import { createDefaultKernelPlugin } from "@rig/kernel/default-kernel";
5
5
 
6
- // packages/bundle-default-lifecycle/src/stages/auto-merge.ts
7
- import { runRepoDefaultMerge } from "@rig/runtime/control-plane/native/pr-automation";
8
-
9
6
  // packages/bundle-default-lifecycle/src/stages/types.ts
10
7
  function defineDefaultLifecycleStage(input) {
11
8
  return {
@@ -23,7 +20,6 @@ var autoMergeStage = defineDefaultLifecycleStage({
23
20
  });
24
21
 
25
22
  // packages/bundle-default-lifecycle/src/stages/commit.ts
26
- import { commitRunChanges } from "@rig/runtime/control-plane/native/pr-automation";
27
23
  var commitStage = defineDefaultLifecycleStage({
28
24
  id: "commit",
29
25
  kind: "transform",
@@ -32,7 +28,6 @@ var commitStage = defineDefaultLifecycleStage({
32
28
  });
33
29
 
34
30
  // packages/bundle-default-lifecycle/src/stages/isolation.ts
35
- import { ensureAgentRuntime } from "@rig/runtime/control-plane/runtime/isolation";
36
31
  var isolationStage = defineDefaultLifecycleStage({
37
32
  id: "isolation",
38
33
  kind: "transform",
@@ -49,9 +44,6 @@ var journalAppendStage = defineDefaultLifecycleStage({
49
44
  });
50
45
 
51
46
  // packages/bundle-default-lifecycle/src/stages/merge-gate.ts
52
- import {
53
- runStrictPrMergeGate
54
- } from "@rig/runtime/control-plane/native/pr-review-gate";
55
47
  var mergeGateStage = defineDefaultLifecycleStage({
56
48
  id: "merge-gate",
57
49
  kind: "gate",
@@ -60,7 +52,6 @@ var mergeGateStage = defineDefaultLifecycleStage({
60
52
  });
61
53
 
62
54
  // packages/bundle-default-lifecycle/src/stages/open-pr.ts
63
- import { runPrAutomation } from "@rig/runtime/control-plane/native/pr-automation";
64
55
  var openPrStage = defineDefaultLifecycleStage({
65
56
  id: "open-pr",
66
57
  kind: "transform",
@@ -69,7 +60,6 @@ var openPrStage = defineDefaultLifecycleStage({
69
60
  });
70
61
 
71
62
  // packages/bundle-default-lifecycle/src/stages/push.ts
72
- import { pushBranchSyncedWithOrigin } from "@rig/runtime/control-plane/native/pr-automation";
73
63
  var pushStage = defineDefaultLifecycleStage({
74
64
  id: "push",
75
65
  kind: "transform",
@@ -78,7 +68,6 @@ var pushStage = defineDefaultLifecycleStage({
78
68
  });
79
69
 
80
70
  // packages/bundle-default-lifecycle/src/stages/source-closeout.ts
81
- import { closeIssueAfterMergedPr } from "@rig/runtime/control-plane/native/pr-automation";
82
71
  var sourceCloseoutStage = defineDefaultLifecycleStage({
83
72
  id: "source-closeout",
84
73
  kind: "transform",
package/dist/src/index.js CHANGED
@@ -1,4 +1,6 @@
1
1
  // @bun
2
+ var __require = import.meta.require;
3
+
2
4
  // packages/bundle-default-lifecycle/src/closeoutEquivalence.ts
3
5
  import { existsSync, readFileSync } from "fs";
4
6
  import { resolve } from "path";
@@ -98,9 +100,6 @@ function assertCloseoutShadowEquivalent(input) {
98
100
  import { resolveKernelStages } from "@rig/kernel/resolver";
99
101
  import { createDefaultKernelPlugin } from "@rig/kernel/default-kernel";
100
102
 
101
- // packages/bundle-default-lifecycle/src/stages/auto-merge.ts
102
- import { runRepoDefaultMerge } from "@rig/runtime/control-plane/native/pr-automation";
103
-
104
103
  // packages/bundle-default-lifecycle/src/stages/types.ts
105
104
  function defineDefaultLifecycleStage(input) {
106
105
  return {
@@ -117,11 +116,11 @@ var autoMergeStage = defineDefaultLifecycleStage({
117
116
  calls: ["runRepoDefaultMerge"]
118
117
  });
119
118
  async function runAutoMergeStage(input) {
119
+ const { runRepoDefaultMerge } = await import("@rig/runtime/control-plane/native/pr-automation");
120
120
  await runRepoDefaultMerge(input);
121
121
  }
122
122
 
123
123
  // packages/bundle-default-lifecycle/src/stages/commit.ts
124
- import { commitRunChanges } from "@rig/runtime/control-plane/native/pr-automation";
125
124
  var commitStage = defineDefaultLifecycleStage({
126
125
  id: "commit",
127
126
  kind: "transform",
@@ -129,11 +128,11 @@ var commitStage = defineDefaultLifecycleStage({
129
128
  calls: ["commitRunChanges"]
130
129
  });
131
130
  async function runCommitStage(input) {
131
+ const { commitRunChanges } = await import("@rig/runtime/control-plane/native/pr-automation");
132
132
  return await commitRunChanges(input);
133
133
  }
134
134
 
135
135
  // packages/bundle-default-lifecycle/src/stages/isolation.ts
136
- import { ensureAgentRuntime } from "@rig/runtime/control-plane/runtime/isolation";
137
136
  var isolationStage = defineDefaultLifecycleStage({
138
137
  id: "isolation",
139
138
  kind: "transform",
@@ -141,6 +140,7 @@ var isolationStage = defineDefaultLifecycleStage({
141
140
  calls: ["ensureAgentRuntime"]
142
141
  });
143
142
  async function runIsolationStage(input) {
143
+ const { ensureAgentRuntime } = await import("@rig/runtime/control-plane/runtime/isolation");
144
144
  return await ensureAgentRuntime(input);
145
145
  }
146
146
 
@@ -156,9 +156,6 @@ async function runJournalAppendStage(input) {
156
156
  }
157
157
 
158
158
  // packages/bundle-default-lifecycle/src/stages/merge-gate.ts
159
- import {
160
- runStrictPrMergeGate
161
- } from "@rig/runtime/control-plane/native/pr-review-gate";
162
159
  var mergeGateStage = defineDefaultLifecycleStage({
163
160
  id: "merge-gate",
164
161
  kind: "gate",
@@ -166,6 +163,7 @@ var mergeGateStage = defineDefaultLifecycleStage({
166
163
  calls: ["runStrictPrMergeGate"]
167
164
  });
168
165
  async function runMergeGateStage(input) {
166
+ const { runStrictPrMergeGate } = await import("@rig/runtime/control-plane/native/pr-review-gate");
169
167
  return await runStrictPrMergeGate({
170
168
  projectRoot: input.projectRoot,
171
169
  prUrl: input.prUrl,
@@ -182,7 +180,6 @@ async function runMergeGateStage(input) {
182
180
  }
183
181
 
184
182
  // packages/bundle-default-lifecycle/src/stages/open-pr.ts
185
- import { runPrAutomation } from "@rig/runtime/control-plane/native/pr-automation";
186
183
  var openPrStage = defineDefaultLifecycleStage({
187
184
  id: "open-pr",
188
185
  kind: "transform",
@@ -190,6 +187,7 @@ var openPrStage = defineDefaultLifecycleStage({
190
187
  calls: ["runPrAutomation"]
191
188
  });
192
189
  async function runOpenPrStage(input) {
190
+ const { runPrAutomation } = await import("@rig/runtime/control-plane/native/pr-automation");
193
191
  return await runPrAutomation({
194
192
  projectRoot: input.workspace,
195
193
  taskId: input.taskId,
@@ -208,7 +206,6 @@ async function runOpenPrStage(input) {
208
206
  }
209
207
 
210
208
  // packages/bundle-default-lifecycle/src/stages/push.ts
211
- import { pushBranchSyncedWithOrigin } from "@rig/runtime/control-plane/native/pr-automation";
212
209
  var pushStage = defineDefaultLifecycleStage({
213
210
  id: "push",
214
211
  kind: "transform",
@@ -216,11 +213,11 @@ var pushStage = defineDefaultLifecycleStage({
216
213
  calls: ["pushBranchSyncedWithOrigin"]
217
214
  });
218
215
  async function runPushStage(input) {
216
+ const { pushBranchSyncedWithOrigin } = await import("@rig/runtime/control-plane/native/pr-automation");
219
217
  await pushBranchSyncedWithOrigin(input);
220
218
  }
221
219
 
222
220
  // packages/bundle-default-lifecycle/src/stages/source-closeout.ts
223
- import { closeIssueAfterMergedPr } from "@rig/runtime/control-plane/native/pr-automation";
224
221
  var sourceCloseoutStage = defineDefaultLifecycleStage({
225
222
  id: "source-closeout",
226
223
  kind: "transform",
@@ -230,6 +227,7 @@ var sourceCloseoutStage = defineDefaultLifecycleStage({
230
227
  async function runSourceCloseoutStage(input) {
231
228
  if (input.pr.status !== "merged" || !input.pr.prUrl)
232
229
  return;
230
+ const { closeIssueAfterMergedPr } = await import("@rig/runtime/control-plane/native/pr-automation");
233
231
  await closeIssueAfterMergedPr({
234
232
  projectRoot: input.projectRoot,
235
233
  taskId: input.taskId,
@@ -1,4 +1,6 @@
1
1
  // @bun
2
+ var __require = import.meta.require;
3
+
2
4
  // packages/bundle-default-lifecycle/src/pipelineCloseout.ts
3
5
  import { resolve } from "path";
4
6
  import { loadConfig } from "@rig/core/load-config";
@@ -14,9 +16,6 @@ import { taskValidate } from "@rig/runtime/control-plane/native/task-ops";
14
16
  import { resolveKernelStages } from "@rig/kernel/resolver";
15
17
  import { createDefaultKernelPlugin } from "@rig/kernel/default-kernel";
16
18
 
17
- // packages/bundle-default-lifecycle/src/stages/auto-merge.ts
18
- import { runRepoDefaultMerge } from "@rig/runtime/control-plane/native/pr-automation";
19
-
20
19
  // packages/bundle-default-lifecycle/src/stages/types.ts
21
20
  function defineDefaultLifecycleStage(input) {
22
21
  return {
@@ -33,11 +32,11 @@ var autoMergeStage = defineDefaultLifecycleStage({
33
32
  calls: ["runRepoDefaultMerge"]
34
33
  });
35
34
  async function runAutoMergeStage(input) {
35
+ const { runRepoDefaultMerge } = await import("@rig/runtime/control-plane/native/pr-automation");
36
36
  await runRepoDefaultMerge(input);
37
37
  }
38
38
 
39
39
  // packages/bundle-default-lifecycle/src/stages/commit.ts
40
- import { commitRunChanges } from "@rig/runtime/control-plane/native/pr-automation";
41
40
  var commitStage = defineDefaultLifecycleStage({
42
41
  id: "commit",
43
42
  kind: "transform",
@@ -45,11 +44,11 @@ var commitStage = defineDefaultLifecycleStage({
45
44
  calls: ["commitRunChanges"]
46
45
  });
47
46
  async function runCommitStage(input) {
47
+ const { commitRunChanges } = await import("@rig/runtime/control-plane/native/pr-automation");
48
48
  return await commitRunChanges(input);
49
49
  }
50
50
 
51
51
  // packages/bundle-default-lifecycle/src/stages/isolation.ts
52
- import { ensureAgentRuntime } from "@rig/runtime/control-plane/runtime/isolation";
53
52
  var isolationStage = defineDefaultLifecycleStage({
54
53
  id: "isolation",
55
54
  kind: "transform",
@@ -66,9 +65,6 @@ var journalAppendStage = defineDefaultLifecycleStage({
66
65
  });
67
66
 
68
67
  // packages/bundle-default-lifecycle/src/stages/merge-gate.ts
69
- import {
70
- runStrictPrMergeGate
71
- } from "@rig/runtime/control-plane/native/pr-review-gate";
72
68
  var mergeGateStage = defineDefaultLifecycleStage({
73
69
  id: "merge-gate",
74
70
  kind: "gate",
@@ -76,6 +72,7 @@ var mergeGateStage = defineDefaultLifecycleStage({
76
72
  calls: ["runStrictPrMergeGate"]
77
73
  });
78
74
  async function runMergeGateStage(input) {
75
+ const { runStrictPrMergeGate } = await import("@rig/runtime/control-plane/native/pr-review-gate");
79
76
  return await runStrictPrMergeGate({
80
77
  projectRoot: input.projectRoot,
81
78
  prUrl: input.prUrl,
@@ -92,7 +89,6 @@ async function runMergeGateStage(input) {
92
89
  }
93
90
 
94
91
  // packages/bundle-default-lifecycle/src/stages/open-pr.ts
95
- import { runPrAutomation } from "@rig/runtime/control-plane/native/pr-automation";
96
92
  var openPrStage = defineDefaultLifecycleStage({
97
93
  id: "open-pr",
98
94
  kind: "transform",
@@ -100,6 +96,7 @@ var openPrStage = defineDefaultLifecycleStage({
100
96
  calls: ["runPrAutomation"]
101
97
  });
102
98
  async function runOpenPrStage(input) {
99
+ const { runPrAutomation } = await import("@rig/runtime/control-plane/native/pr-automation");
103
100
  return await runPrAutomation({
104
101
  projectRoot: input.workspace,
105
102
  taskId: input.taskId,
@@ -118,7 +115,6 @@ async function runOpenPrStage(input) {
118
115
  }
119
116
 
120
117
  // packages/bundle-default-lifecycle/src/stages/push.ts
121
- import { pushBranchSyncedWithOrigin } from "@rig/runtime/control-plane/native/pr-automation";
122
118
  var pushStage = defineDefaultLifecycleStage({
123
119
  id: "push",
124
120
  kind: "transform",
@@ -126,11 +122,11 @@ var pushStage = defineDefaultLifecycleStage({
126
122
  calls: ["pushBranchSyncedWithOrigin"]
127
123
  });
128
124
  async function runPushStage(input) {
125
+ const { pushBranchSyncedWithOrigin } = await import("@rig/runtime/control-plane/native/pr-automation");
129
126
  await pushBranchSyncedWithOrigin(input);
130
127
  }
131
128
 
132
129
  // packages/bundle-default-lifecycle/src/stages/source-closeout.ts
133
- import { closeIssueAfterMergedPr } from "@rig/runtime/control-plane/native/pr-automation";
134
130
  var sourceCloseoutStage = defineDefaultLifecycleStage({
135
131
  id: "source-closeout",
136
132
  kind: "transform",
@@ -140,6 +136,7 @@ var sourceCloseoutStage = defineDefaultLifecycleStage({
140
136
  async function runSourceCloseoutStage(input) {
141
137
  if (input.pr.status !== "merged" || !input.pr.prUrl)
142
138
  return;
139
+ const { closeIssueAfterMergedPr } = await import("@rig/runtime/control-plane/native/pr-automation");
143
140
  await closeIssueAfterMergedPr({
144
141
  projectRoot: input.projectRoot,
145
142
  taskId: input.taskId,
@@ -6,9 +6,6 @@ import { definePlugin } from "@rig/core";
6
6
  import { resolveKernelStages } from "@rig/kernel/resolver";
7
7
  import { createDefaultKernelPlugin } from "@rig/kernel/default-kernel";
8
8
 
9
- // packages/bundle-default-lifecycle/src/stages/auto-merge.ts
10
- import { runRepoDefaultMerge } from "@rig/runtime/control-plane/native/pr-automation";
11
-
12
9
  // packages/bundle-default-lifecycle/src/stages/types.ts
13
10
  function defineDefaultLifecycleStage(input) {
14
11
  return {
@@ -26,7 +23,6 @@ var autoMergeStage = defineDefaultLifecycleStage({
26
23
  });
27
24
 
28
25
  // packages/bundle-default-lifecycle/src/stages/commit.ts
29
- import { commitRunChanges } from "@rig/runtime/control-plane/native/pr-automation";
30
26
  var commitStage = defineDefaultLifecycleStage({
31
27
  id: "commit",
32
28
  kind: "transform",
@@ -35,7 +31,6 @@ var commitStage = defineDefaultLifecycleStage({
35
31
  });
36
32
 
37
33
  // packages/bundle-default-lifecycle/src/stages/isolation.ts
38
- import { ensureAgentRuntime } from "@rig/runtime/control-plane/runtime/isolation";
39
34
  var isolationStage = defineDefaultLifecycleStage({
40
35
  id: "isolation",
41
36
  kind: "transform",
@@ -52,9 +47,6 @@ var journalAppendStage = defineDefaultLifecycleStage({
52
47
  });
53
48
 
54
49
  // packages/bundle-default-lifecycle/src/stages/merge-gate.ts
55
- import {
56
- runStrictPrMergeGate
57
- } from "@rig/runtime/control-plane/native/pr-review-gate";
58
50
  var mergeGateStage = defineDefaultLifecycleStage({
59
51
  id: "merge-gate",
60
52
  kind: "gate",
@@ -63,7 +55,6 @@ var mergeGateStage = defineDefaultLifecycleStage({
63
55
  });
64
56
 
65
57
  // packages/bundle-default-lifecycle/src/stages/open-pr.ts
66
- import { runPrAutomation } from "@rig/runtime/control-plane/native/pr-automation";
67
58
  var openPrStage = defineDefaultLifecycleStage({
68
59
  id: "open-pr",
69
60
  kind: "transform",
@@ -72,7 +63,6 @@ var openPrStage = defineDefaultLifecycleStage({
72
63
  });
73
64
 
74
65
  // packages/bundle-default-lifecycle/src/stages/push.ts
75
- import { pushBranchSyncedWithOrigin } from "@rig/runtime/control-plane/native/pr-automation";
76
66
  var pushStage = defineDefaultLifecycleStage({
77
67
  id: "push",
78
68
  kind: "transform",
@@ -81,7 +71,6 @@ var pushStage = defineDefaultLifecycleStage({
81
71
  });
82
72
 
83
73
  // packages/bundle-default-lifecycle/src/stages/source-closeout.ts
84
- import { closeIssueAfterMergedPr } from "@rig/runtime/control-plane/native/pr-automation";
85
74
  var sourceCloseoutStage = defineDefaultLifecycleStage({
86
75
  id: "source-closeout",
87
76
  kind: "transform",
@@ -1,4 +1,4 @@
1
- import { type GitHubCommandRunner, type RigAutomationConfig } from "@rig/runtime/control-plane/native/pr-automation";
1
+ import type { GitHubCommandRunner, RigAutomationConfig } from "@rig/runtime/control-plane/native/pr-automation";
2
2
  import type { StrictPrMergeGateResult } from "@rig/runtime/control-plane/native/pr-review-gate";
3
3
  export type AutoMergeStageInput = {
4
4
  readonly prUrl: string;
@@ -1,6 +1,5 @@
1
1
  // @bun
2
- // packages/bundle-default-lifecycle/src/stages/auto-merge.ts
3
- import { runRepoDefaultMerge } from "@rig/runtime/control-plane/native/pr-automation";
2
+ var __require = import.meta.require;
4
3
 
5
4
  // packages/bundle-default-lifecycle/src/stages/types.ts
6
5
  function defineDefaultLifecycleStage(input) {
@@ -18,6 +17,7 @@ var autoMergeStage = defineDefaultLifecycleStage({
18
17
  calls: ["runRepoDefaultMerge"]
19
18
  });
20
19
  async function runAutoMergeStage(input) {
20
+ const { runRepoDefaultMerge } = await import("@rig/runtime/control-plane/native/pr-automation");
21
21
  await runRepoDefaultMerge(input);
22
22
  }
23
23
  export {
@@ -1,4 +1,4 @@
1
- import { type GitCommandRunner } from "@rig/runtime/control-plane/native/pr-automation";
1
+ import type { GitCommandRunner } from "@rig/runtime/control-plane/native/pr-automation";
2
2
  export type CommitStageInput = {
3
3
  readonly cwd: string;
4
4
  readonly message: string;
@@ -1,6 +1,5 @@
1
1
  // @bun
2
- // packages/bundle-default-lifecycle/src/stages/commit.ts
3
- import { commitRunChanges } from "@rig/runtime/control-plane/native/pr-automation";
2
+ var __require = import.meta.require;
4
3
 
5
4
  // packages/bundle-default-lifecycle/src/stages/types.ts
6
5
  function defineDefaultLifecycleStage(input) {
@@ -18,6 +17,7 @@ var commitStage = defineDefaultLifecycleStage({
18
17
  calls: ["commitRunChanges"]
19
18
  });
20
19
  async function runCommitStage(input) {
20
+ const { commitRunChanges } = await import("@rig/runtime/control-plane/native/pr-automation");
21
21
  return await commitRunChanges(input);
22
22
  }
23
23
  export {
@@ -1,4 +1,4 @@
1
- import { type AgentRuntime, type IsolationMode } from "@rig/runtime/control-plane/runtime/isolation";
1
+ import type { AgentRuntime, IsolationMode } from "@rig/runtime/control-plane/runtime/isolation";
2
2
  export type IsolationStageInput = {
3
3
  readonly projectRoot: string;
4
4
  readonly id: string;
@@ -1,6 +1,5 @@
1
1
  // @bun
2
- // packages/bundle-default-lifecycle/src/stages/isolation.ts
3
- import { ensureAgentRuntime } from "@rig/runtime/control-plane/runtime/isolation";
2
+ var __require = import.meta.require;
4
3
 
5
4
  // packages/bundle-default-lifecycle/src/stages/types.ts
6
5
  function defineDefaultLifecycleStage(input) {
@@ -18,6 +17,7 @@ var isolationStage = defineDefaultLifecycleStage({
18
17
  calls: ["ensureAgentRuntime"]
19
18
  });
20
19
  async function runIsolationStage(input) {
20
+ const { ensureAgentRuntime } = await import("@rig/runtime/control-plane/runtime/isolation");
21
21
  return await ensureAgentRuntime(input);
22
22
  }
23
23
  export {
@@ -1,4 +1,4 @@
1
- import { type StrictPrGreptileApiOptions, type StrictPrMergeGateResult } from "@rig/runtime/control-plane/native/pr-review-gate";
1
+ import type { StrictPrGreptileApiOptions, StrictPrMergeGateResult } from "@rig/runtime/control-plane/native/pr-review-gate";
2
2
  import type { GitHubCommandRunner } from "@rig/runtime/control-plane/native/pr-automation";
3
3
  export type MergeGateStageInput = {
4
4
  readonly projectRoot: string;
@@ -1,8 +1,5 @@
1
1
  // @bun
2
- // packages/bundle-default-lifecycle/src/stages/merge-gate.ts
3
- import {
4
- runStrictPrMergeGate
5
- } from "@rig/runtime/control-plane/native/pr-review-gate";
2
+ var __require = import.meta.require;
6
3
 
7
4
  // packages/bundle-default-lifecycle/src/stages/types.ts
8
5
  function defineDefaultLifecycleStage(input) {
@@ -20,6 +17,7 @@ var mergeGateStage = defineDefaultLifecycleStage({
20
17
  calls: ["runStrictPrMergeGate"]
21
18
  });
22
19
  async function runMergeGateStage(input) {
20
+ const { runStrictPrMergeGate } = await import("@rig/runtime/control-plane/native/pr-review-gate");
23
21
  return await runStrictPrMergeGate({
24
22
  projectRoot: input.projectRoot,
25
23
  prUrl: input.prUrl,
@@ -1,4 +1,4 @@
1
- import { type PrAutomationLifecycle, type PrAutomationResult, type RigAutomationConfig } from "@rig/runtime/control-plane/native/pr-automation";
1
+ import type { PrAutomationLifecycle, PrAutomationResult, RigAutomationConfig } from "@rig/runtime/control-plane/native/pr-automation";
2
2
  import type { InProcessCloseoutInput } from "@rig/runtime/control-plane/native/in-process-closeout";
3
3
  export type OpenPrStageInput = Omit<InProcessCloseoutInput, "config"> & {
4
4
  readonly config?: RigAutomationConfig;
@@ -1,6 +1,5 @@
1
1
  // @bun
2
- // packages/bundle-default-lifecycle/src/stages/open-pr.ts
3
- import { runPrAutomation } from "@rig/runtime/control-plane/native/pr-automation";
2
+ var __require = import.meta.require;
4
3
 
5
4
  // packages/bundle-default-lifecycle/src/stages/types.ts
6
5
  function defineDefaultLifecycleStage(input) {
@@ -18,6 +17,7 @@ var openPrStage = defineDefaultLifecycleStage({
18
17
  calls: ["runPrAutomation"]
19
18
  });
20
19
  async function runOpenPrStage(input) {
20
+ const { runPrAutomation } = await import("@rig/runtime/control-plane/native/pr-automation");
21
21
  return await runPrAutomation({
22
22
  projectRoot: input.workspace,
23
23
  taskId: input.taskId,
@@ -1,4 +1,4 @@
1
- import { type GitCommandRunner } from "@rig/runtime/control-plane/native/pr-automation";
1
+ import type { GitCommandRunner } from "@rig/runtime/control-plane/native/pr-automation";
2
2
  export type PushStageInput = {
3
3
  readonly projectRoot: string;
4
4
  readonly branch: string;
@@ -1,6 +1,5 @@
1
1
  // @bun
2
- // packages/bundle-default-lifecycle/src/stages/push.ts
3
- import { pushBranchSyncedWithOrigin } from "@rig/runtime/control-plane/native/pr-automation";
2
+ var __require = import.meta.require;
4
3
 
5
4
  // packages/bundle-default-lifecycle/src/stages/types.ts
6
5
  function defineDefaultLifecycleStage(input) {
@@ -18,6 +17,7 @@ var pushStage = defineDefaultLifecycleStage({
18
17
  calls: ["pushBranchSyncedWithOrigin"]
19
18
  });
20
19
  async function runPushStage(input) {
20
+ const { pushBranchSyncedWithOrigin } = await import("@rig/runtime/control-plane/native/pr-automation");
21
21
  await pushBranchSyncedWithOrigin(input);
22
22
  }
23
23
  export {
@@ -1,4 +1,4 @@
1
- import { type PrAutomationResult } from "@rig/runtime/control-plane/native/pr-automation";
1
+ import type { PrAutomationResult } from "@rig/runtime/control-plane/native/pr-automation";
2
2
  export type SourceCloseoutStageInput = {
3
3
  readonly projectRoot: string;
4
4
  readonly taskId: string;
@@ -1,6 +1,5 @@
1
1
  // @bun
2
- // packages/bundle-default-lifecycle/src/stages/source-closeout.ts
3
- import { closeIssueAfterMergedPr } from "@rig/runtime/control-plane/native/pr-automation";
2
+ var __require = import.meta.require;
4
3
 
5
4
  // packages/bundle-default-lifecycle/src/stages/types.ts
6
5
  function defineDefaultLifecycleStage(input) {
@@ -20,6 +19,7 @@ var sourceCloseoutStage = defineDefaultLifecycleStage({
20
19
  async function runSourceCloseoutStage(input) {
21
20
  if (input.pr.status !== "merged" || !input.pr.prUrl)
22
21
  return;
22
+ const { closeIssueAfterMergedPr } = await import("@rig/runtime/control-plane/native/pr-automation");
23
23
  await closeIssueAfterMergedPr({
24
24
  projectRoot: input.projectRoot,
25
25
  taskId: input.taskId,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@h-rig/bundle-default-lifecycle",
3
- "version": "0.0.6-alpha.140",
3
+ "version": "0.0.6-alpha.142",
4
4
  "type": "module",
5
5
  "description": "Default Rig run lifecycle stage bundle wrapping the existing closeout runtime.",
6
6
  "license": "UNLICENSED",
@@ -41,9 +41,9 @@
41
41
  "module": "./dist/src/index.js",
42
42
  "types": "./dist/src/index.d.ts",
43
43
  "dependencies": {
44
- "@rig/contracts": "npm:@h-rig/contracts@0.0.6-alpha.140",
45
- "@rig/core": "npm:@h-rig/core@0.0.6-alpha.140",
46
- "@rig/kernel": "npm:@h-rig/kernel@0.0.6-alpha.140",
47
- "@rig/runtime": "npm:@h-rig/runtime@0.0.6-alpha.140"
44
+ "@rig/contracts": "npm:@h-rig/contracts@0.0.6-alpha.142",
45
+ "@rig/core": "npm:@h-rig/core@0.0.6-alpha.142",
46
+ "@rig/kernel": "npm:@h-rig/kernel@0.0.6-alpha.142",
47
+ "@rig/runtime": "npm:@h-rig/runtime@0.0.6-alpha.142"
48
48
  }
49
49
  }