@adhdev/daemon-core 0.9.82-rc.291 → 0.9.82-rc.293

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.
@@ -16,6 +16,35 @@ import type { ProviderInstanceManager } from '../providers/provider-instance-man
16
16
  import { SessionRegistry } from '../sessions/registry.js';
17
17
  export declare function readCachedInlineMeshActiveSessionDetails(node: any): Array<Record<string, unknown>>;
18
18
  type MeshRefineStageStatus = 'passed' | 'failed' | 'skipped';
19
+ type MeshRefinePatchEquivalenceSummary = {
20
+ status: MeshRefineStageStatus;
21
+ equivalent: boolean;
22
+ baseHead: string;
23
+ branchHead: string;
24
+ mergeBase?: string;
25
+ mergedTree?: string;
26
+ expectedPatchId?: string;
27
+ actualPatchId?: string;
28
+ durationMs: number;
29
+ error?: string;
30
+ stdout?: string;
31
+ stderr?: string;
32
+ actionableHint?: MeshRefineSubmoduleConflictHint;
33
+ /**
34
+ * Set when a `merge-tree` submodule conflict was reclassified as a trivial
35
+ * gitlink fast-forward and the gate passed via a synthesized merge tree.
36
+ */
37
+ gitlinkTrivialFastForward?: {
38
+ resolved: boolean;
39
+ gitlinks: Array<{
40
+ path: string;
41
+ baseCommit?: string;
42
+ branchCommit?: string;
43
+ fastForward: boolean;
44
+ }>;
45
+ reason?: string;
46
+ };
47
+ };
19
48
  type MeshRefineEffectiveDiffSummary = {
20
49
  status: MeshRefineStageStatus;
21
50
  /** True when there is at least one root-tree change between base and branch (incl. gitlink bumps). */
@@ -34,6 +63,17 @@ type MeshRefineEffectiveDiffSummary = {
34
63
  stdout?: string;
35
64
  stderr?: string;
36
65
  };
66
+ type MeshRefineSubmoduleConflictHint = {
67
+ kind: 'submodule_conflict';
68
+ message: string;
69
+ conflicts: Array<{
70
+ path: string;
71
+ baseCommit?: string;
72
+ branchCommit?: string;
73
+ }>;
74
+ nextSteps: string[];
75
+ };
76
+ export declare function runMeshRefinePatchEquivalenceGate(repoRoot: string, baseHead: string, branchHead: string): Promise<MeshRefinePatchEquivalenceSummary>;
37
77
  /**
38
78
  * No-op guard: detect a "silent no-op" merge before the Refinery merge runs.
39
79
  *
@@ -78,6 +118,16 @@ type GitlinkTrivialFastForwardEvaluation = {
78
118
  fastForward: boolean;
79
119
  }>;
80
120
  };
121
+ /**
122
+ * Return the changed gitlink paths between base and branch whose advance is a
123
+ * strict fast-forward (the base-side commit is an ancestor of the branch-side
124
+ * commit inside that submodule's repo). These are the paths whose patch-id hunk
125
+ * may legitimately differ when base has advanced the same submodule, so they
126
+ * are safe to exclude from the patch-equivalence comparison. A non-ff (genuinely
127
+ * diverged) gitlink is deliberately excluded from this set so it still fails the
128
+ * gate.
129
+ */
130
+ export declare function collectFastForwardGitlinkPaths(repoRoot: string, baseHead: string, branchHead: string): string[];
81
131
  /**
82
132
  * Decide whether a merge-tree submodule conflict between base and branch is a
83
133
  * trivial gitlink fast-forward (and nothing else).