MergeSuggestionService
Defined in: src/merge-suggest.ts:89
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new MergeSuggestionService(
deps):MergeSuggestionService
Defined in: src/merge-suggest.ts:105
Parameters
Section titled “Parameters”Returns
Section titled “Returns”MergeSuggestionService
Methods
Section titled “Methods”consider()
Section titled “consider()”consider(
repoPath):void
Defined in: src/merge-suggest.ts:153
Intra-repo: propose merge groups when a repo has enough active rules and its active set changed since the last pass. No-op otherwise. Never awaits the spawn.
Parameters
Section titled “Parameters”repoPath
Section titled “repoPath”string
Returns
Section titled “Returns”void
considerCrossRepo()
Section titled “considerCrossRepo()”considerCrossRepo():
void
Defined in: src/merge-suggest.ts:164
Cross-repo: propose promote-to-global suggestions for rules recurring across repos. Runs once per sweep globally; gated on repo span + a changed global signature.
Returns
Section titled “Returns”void
health()
Section titled “health()”health():
object
Defined in: src/merge-suggest.ts:117
Returns
Section titled “Returns”object
consecutiveFailures
Section titled “consecutiveFailures”consecutiveFailures:
number
lastFailure
Section titled “lastFailure”lastFailure: {
at:number;key:string;reason:string; } |null
ok:
boolean
mergeNow()
Section titled “mergeNow()”mergeNow(
repoPath):void
Defined in: src/merge-suggest.ts:175
Manual trigger for a repo’s intra pass — bypasses the active-count + signature gates (still needs ≥2 active rules to have anything to merge). Subject to the concurrency cap.
Parameters
Section titled “Parameters”repoPath
Section titled “repoPath”string
Returns
Section titled “Returns”void
tick()
Section titled “tick()”tick():
Promise<void>
Defined in: src/merge-suggest.ts:287
Finalize any run whose output file is ready or that timed out, then drain the queue.
Returns
Section titled “Returns”Promise<void>