@compforge/harness-common 0.5.8 → 0.5.9

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.
@@ -1,6 +1,10 @@
1
1
  import type { Identity } from "../identity.js";
2
2
  import { type Repository, type RepositoryKey, type RepositorySnapshot } from "./repository.js";
3
3
  export type PullRequestState = "open" | "merged" | "closed";
4
+ /** Code conflict facts do not establish permission/readiness to merge, or a completed merge. */
5
+ export type PullRequestConflictState = "none" | "conflicted" | "unknown";
6
+ /** Provider-reported merge conditions at observation time, not authorization for a merge operation. */
7
+ export type PullRequestMergeReadiness = "ready" | "conflict" | "discussions_unresolved" | "ci_blocked" | "needs_approval" | "draft" | "behind" | "blocked" | "unknown";
4
8
  /**
5
9
  * A code-review proposal owned by its target Repository (GitHub PR or GitLab MR).
6
10
  * @spec Identity is target Repository + repository-local number; source, revisions and state are metadata.
@@ -14,6 +18,9 @@ export interface PullRequest extends Identity {
14
18
  readonly title?: string;
15
19
  readonly url?: string;
16
20
  readonly state?: PullRequestState;
21
+ /** Independent transient facts; neither implies state=merged. */
22
+ readonly conflictState?: PullRequestConflictState;
23
+ readonly mergeReadiness?: PullRequestMergeReadiness;
17
24
  readonly sourceRepository?: Repository;
18
25
  readonly sourceBranch?: string;
19
26
  readonly targetBranch?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@compforge/harness-common",
3
- "version": "0.5.8",
3
+ "version": "0.5.9",
4
4
  "description": "Execution-neutral client lifecycle and datasource contracts for harnesses",
5
5
  "type": "module",
6
6
  "scripts": {