@h-rig/bundle-default-lifecycle 0.0.6-alpha.155 → 0.0.6-alpha.156

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.
Files changed (37) hide show
  1. package/dist/src/branch-naming.d.ts +15 -0
  2. package/dist/src/branch-naming.js +33 -0
  3. package/dist/src/cli.js +4 -4
  4. package/dist/src/closeoutEquivalence.d.ts +1 -1
  5. package/dist/src/control-plane/completion-verification.d.ts +19 -0
  6. package/dist/src/control-plane/completion-verification.js +1917 -0
  7. package/dist/src/control-plane/pr-automation.d.ts +87 -0
  8. package/dist/src/control-plane/pr-automation.js +638 -0
  9. package/dist/src/control-plane/task-verify.d.ts +1 -0
  10. package/dist/src/control-plane/task-verify.js +1484 -0
  11. package/dist/src/control-plane/verifier.d.ts +138 -0
  12. package/dist/src/control-plane/verifier.js +1478 -0
  13. package/dist/src/defaultPipeline.js +4 -4
  14. package/dist/src/index.js +2716 -54
  15. package/dist/src/native/closeout-runners.d.ts +5 -0
  16. package/dist/src/native/closeout-runners.js +41 -0
  17. package/dist/src/native/in-process-closeout.d.ts +40 -0
  18. package/dist/src/native/in-process-closeout.js +802 -0
  19. package/dist/src/pipelineCloseout.d.ts +1 -1
  20. package/dist/src/pipelineCloseout.js +2712 -52
  21. package/dist/src/plugin.d.ts +4 -17
  22. package/dist/src/plugin.js +2029 -25
  23. package/dist/src/stages/auto-merge.d.ts +1 -2
  24. package/dist/src/stages/auto-merge.js +657 -3
  25. package/dist/src/stages/commit.d.ts +1 -1
  26. package/dist/src/stages/commit.js +657 -3
  27. package/dist/src/stages/isolation.js +3 -2
  28. package/dist/src/stages/merge-gate.d.ts +1 -2
  29. package/dist/src/stages/merge-gate.js +1 -1
  30. package/dist/src/stages/open-pr.d.ts +2 -2
  31. package/dist/src/stages/open-pr.js +657 -3
  32. package/dist/src/stages/push.d.ts +1 -1
  33. package/dist/src/stages/push.js +657 -3
  34. package/dist/src/stages/source-closeout.d.ts +1 -1
  35. package/dist/src/stages/source-closeout.js +657 -3
  36. package/dist/src/stages/validate.d.ts +1 -1
  37. package/package.json +32 -5
@@ -0,0 +1,87 @@
1
+ import { type StrictPrGreptileApiOptions, type StrictPrMergeGateResult, type GitHubCommandRunner, type GitCommandRunner, type PrCheckSummary, type RigAutomationConfig, type PrAutomationResult, type PrAutomationLifecycle } from "@rig/contracts";
2
+ export type PrReviewThreadSummary = {
3
+ readonly id?: string | null;
4
+ readonly body: string;
5
+ readonly resolved?: boolean | null;
6
+ readonly author?: string | null;
7
+ };
8
+ export declare const UPLOADED_SNAPSHOT_PR_MARKER = "<!-- rig:uploaded-snapshot -->";
9
+ export declare function resolvePrAutomationLimits(config?: RigAutomationConfig): {
10
+ maxPrFixIterations: number;
11
+ };
12
+ export declare function buildPrAutomationBody(input: {
13
+ readonly taskId: string;
14
+ readonly runId: string;
15
+ readonly summary?: string | null;
16
+ readonly uploadedSnapshot?: boolean;
17
+ }): string;
18
+ export declare function collectPendingPrChecks(input: {
19
+ readonly checks?: readonly PrCheckSummary[];
20
+ readonly allowedFailures?: readonly string[];
21
+ }): string[];
22
+ export declare function collectActionablePrFeedback(input: {
23
+ readonly checks?: readonly PrCheckSummary[];
24
+ readonly reviewThreads?: readonly PrReviewThreadSummary[];
25
+ readonly allowedFailures?: readonly string[];
26
+ }): string[];
27
+ export declare function hasCommittableRunChanges(statusText: string): boolean;
28
+ export declare function commitRunChanges(input: {
29
+ readonly cwd: string;
30
+ readonly message: string;
31
+ readonly command: GitCommandRunner;
32
+ }): Promise<{
33
+ readonly committed: boolean;
34
+ readonly status: string;
35
+ }>;
36
+ export declare function closeIssueAfterMergedPr(input: {
37
+ readonly projectRoot: string;
38
+ readonly taskId: string;
39
+ readonly runId: string;
40
+ readonly prUrl: string;
41
+ readonly sourceTask?: Record<string, unknown> | null;
42
+ readonly updateTaskSource: (projectRoot: string, input: {
43
+ readonly taskId: string;
44
+ readonly sourceTask?: Record<string, unknown> | null;
45
+ readonly update: {
46
+ readonly status: "closed";
47
+ readonly comment: string;
48
+ };
49
+ }) => Promise<unknown>;
50
+ }): Promise<void>;
51
+ export declare function runRepoDefaultMerge(input: {
52
+ readonly prUrl: string;
53
+ readonly config?: RigAutomationConfig;
54
+ readonly command: GitHubCommandRunner;
55
+ readonly cwd?: string;
56
+ readonly strictGate: StrictPrMergeGateResult;
57
+ }): Promise<void>;
58
+ export declare function gateNeedsGreptileRereview(result: StrictPrMergeGateResult): boolean;
59
+ export declare function requestGreptileRereview(input: {
60
+ readonly prUrl: string;
61
+ readonly headSha: string | null;
62
+ readonly command: GitHubCommandRunner;
63
+ readonly cwd?: string;
64
+ }): Promise<boolean>;
65
+ export declare function pushBranchSyncedWithOrigin(input: {
66
+ readonly projectRoot: string;
67
+ readonly branch: string;
68
+ readonly gitCommand: GitCommandRunner;
69
+ }): Promise<void>;
70
+ export declare function runPrAutomation(input: {
71
+ readonly projectRoot: string;
72
+ readonly taskId: string;
73
+ readonly runId: string;
74
+ readonly branch: string;
75
+ readonly config?: RigAutomationConfig;
76
+ readonly sourceTask?: {
77
+ readonly title?: string | null;
78
+ } | null;
79
+ readonly uploadedSnapshot?: boolean;
80
+ readonly artifactRoot?: string | null;
81
+ readonly command: GitHubCommandRunner;
82
+ readonly gitCommand?: GitCommandRunner;
83
+ readonly steerPi: (message: string) => Promise<void>;
84
+ readonly lifecycle?: PrAutomationLifecycle;
85
+ readonly greptileApi?: StrictPrGreptileApiOptions;
86
+ readonly sleep?: (ms: number) => Promise<void>;
87
+ }): Promise<PrAutomationResult>;