@gitkraken/core-gitlens 0.4.101 → 0.5.100

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 (66) hide show
  1. package/CHANGELOG.md +11 -6
  2. package/dist/git/models/graph.d.ts +63 -33
  3. package/dist/git/models/graph.d.ts.map +1 -1
  4. package/dist/git/models/graph.js.map +1 -1
  5. package/dist/git/models/graphSession.d.ts +3 -84
  6. package/dist/git/models/graphSession.d.ts.map +1 -1
  7. package/dist/git/models/graphSession.js +1 -6
  8. package/dist/git/models/graphSession.js.map +1 -1
  9. package/dist/git/providers/graph.d.ts +1 -15
  10. package/dist/git/providers/graph.d.ts.map +1 -1
  11. package/dist/git/providers/pausedOperations.d.ts +2 -0
  12. package/dist/git/providers/pausedOperations.d.ts.map +1 -1
  13. package/dist/git/utils/reachability.utils.d.ts +1 -1
  14. package/dist/git/utils/reachability.utils.js +1 -1
  15. package/dist/git-cli/providers/graph.d.ts +1 -3
  16. package/dist/git-cli/providers/graph.d.ts.map +1 -1
  17. package/dist/git-cli/providers/graph.js +37 -214
  18. package/dist/git-cli/providers/graph.js.map +1 -1
  19. package/dist/git-cli/providers/pausedOperations.d.ts +1 -0
  20. package/dist/git-cli/providers/pausedOperations.d.ts.map +1 -1
  21. package/dist/git-cli/providers/pausedOperations.js +21 -1
  22. package/dist/git-cli/providers/pausedOperations.js.map +1 -1
  23. package/dist/git-cli/providers/staging.d.ts.map +1 -1
  24. package/dist/git-cli/providers/staging.js +10 -1
  25. package/dist/git-cli/providers/staging.js.map +1 -1
  26. package/dist/plus/git-github/providers/github/graph.d.ts +1 -3
  27. package/dist/plus/git-github/providers/github/graph.d.ts.map +1 -1
  28. package/dist/plus/git-github/providers/github/graph.js +8 -10
  29. package/dist/plus/git-github/providers/github/graph.js.map +1 -1
  30. package/dist/plus/integrations/authentication/integrationAuthenticationProvider.d.ts +38 -48
  31. package/dist/plus/integrations/authentication/integrationAuthenticationProvider.d.ts.map +1 -1
  32. package/dist/plus/integrations/authentication/integrationAuthenticationProvider.js +22 -5
  33. package/dist/plus/integrations/authentication/integrationAuthenticationProvider.js.map +1 -1
  34. package/dist/plus/integrations/authentication/rejectedTokenTracker.d.ts +39 -0
  35. package/dist/plus/integrations/authentication/rejectedTokenTracker.d.ts.map +1 -0
  36. package/dist/plus/integrations/authentication/rejectedTokenTracker.js +53 -0
  37. package/dist/plus/integrations/authentication/rejectedTokenTracker.js.map +1 -0
  38. package/dist/plus/integrations/models/gitHostIntegration.d.ts.map +1 -1
  39. package/dist/plus/integrations/models/gitHostIntegration.js +19 -6
  40. package/dist/plus/integrations/models/gitHostIntegration.js.map +1 -1
  41. package/dist/plus/integrations/models/integration.d.ts +20 -0
  42. package/dist/plus/integrations/models/integration.d.ts.map +1 -1
  43. package/dist/plus/integrations/models/integration.js +61 -4
  44. package/dist/plus/integrations/models/integration.js.map +1 -1
  45. package/dist/plus/integrations/models/issuesIntegration.js +5 -5
  46. package/dist/plus/integrations/models/issuesIntegration.js.map +1 -1
  47. package/dist/utils/date.d.ts +1 -1
  48. package/dist/utils/date.d.ts.map +1 -1
  49. package/dist/utils/date.js +5 -3
  50. package/dist/utils/date.js.map +1 -1
  51. package/package.json +1 -1
  52. package/src/git/models/graph.ts +59 -41
  53. package/src/git/models/graphSession.ts +3 -106
  54. package/src/git/providers/graph.ts +1 -15
  55. package/src/git/providers/pausedOperations.ts +8 -1
  56. package/src/git/utils/reachability.utils.ts +1 -1
  57. package/src/git-cli/providers/graph.ts +37 -250
  58. package/src/git-cli/providers/pausedOperations.ts +29 -2
  59. package/src/git-cli/providers/staging.ts +8 -1
  60. package/src/plus/git-github/providers/github/graph.ts +8 -15
  61. package/src/plus/integrations/authentication/integrationAuthenticationProvider.ts +62 -40
  62. package/src/plus/integrations/authentication/rejectedTokenTracker.ts +56 -0
  63. package/src/plus/integrations/models/gitHostIntegration.ts +19 -6
  64. package/src/plus/integrations/models/integration.ts +68 -5
  65. package/src/plus/integrations/models/iss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AAI,QAAQ,CAAC,CAAC,CAAC,IAAI,QAAQ,CAAC,CAAC,CAAC,EAAE,CAAC;AACvE,CAAC;AAED,MAAM,UAAU,aAAa,CAC5B,KAAa,EACb,KAAsE,EACtE,MAAe;IAEf,MAAM,MAAM,GAAG,gBAAgB,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;IAC/C,OAAO,MAAM,CAAC,KAAK,CAAC,CAAC;AACtB,CAAC;AAED,MAAM,UAAU,gBAAgB,CAC/B,KAAsE,EACtE,MAAe;IAEf,KAAK,KAAK,SAAS,CAAC;IAEpB,MAAM,GAAG,GAAG,GAAG,MAAM,IAAI,EAAE,IAAI,KAAK,EAAE,CAAC;IAEvC,IAAI,SAAS,GAAG,iBAAiB,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IAC3C,IAAI,SAAS,IAAI,IAAI,EAAE,CAAC;QACvB,MAAM,OAAO,GAA6B,EAAE,aAAa,EAAE,UAAU,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC;QAEtF,IAAI,OAAO,CAAC;QACZ,IAAI,MAAM,IAAI,IAAI,EAAE,CAAC;YACpB,OAAO,GAAG,cAAc,CAAC;QAC1B,CAAC;aAAM,IAAI,MAAM,KAAK,QAAQ,EAAE,CAAC;YAChC,OAAO,GAAG,SAAS,CAAC;QACrB,CAAC;aAAM,CAAC;YACP,OAAO,GAAG,CAAC,MAAM,CAAC,CAAC;QACpB,CAAC;QAED,SAAS,GAAG,IAAI,IAAI,CAAC,YAAY,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;QACpD,iBAAiB,CAAC,GAAG,CAAC,GAAG,EAAE,SAAS,CAAC,CAAC;IACvC,CAAC;IAED,OAAO,SAAS,CAAC,MAAM,CAAC;AACzB,CAAC"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@gitkraken/core-gitlens",
3
3
  "description": "GitLens core — shared Git / AI / GitHub primitives for internal GitKraken consumption",
4
- "version": "0.4.101",
4
+ "version": "0.5.100",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "author": {
7
7
  "name": "GitKraken",
@@ -5,52 +5,72 @@ import type { GitRemote } from './remote.js';
5
5
  import type { GkProviderId } from './repositoryIdentities.js';
6
6
  import type { GitWorktree } from './worktree.js';
7
7
 
8
- export type GitGraphRowType =
9
- | 'commit-node'
10
- | 'merge-node'
11
- | 'stash-node'
12
- | 'work-dir-changes'
13
- | 'merge-conflict-node'
14
- | 'unsupported-rebase-warning-node';
8
+ export type GitGraphRowKind = 'commit' | 'merge' | 'stash' | 'workdir';
15
9
 
16
10
  export interface GitGraphRowHead {
11
+ /**
12
+ * Stable ref id. **Its presence is the provider-tier marker** — the one signal separating a ref that
13
+ * can be acted on from a lean, name-only one, now that neither carries a serialized context.
14
+ *
15
+ * The CLI provider stamps an id on every ref it emits (`git-cli/providers/graph.ts:781`, `:805`,
16
+ * `:836`); the GitHub provider never does, because it has no branch metadata to key
17
+ * (`git-github/providers/github/graph.ts:231`, `:239`). So `id == null` means "this ref came from a
18
+ * provider that computes nothing beyond a name", and every id-keyed feature — ref metadata, exclusions,
19
+ * pinning, PR/issue lookup — must degrade rather than guess. Consumers already do this; it is written
20
+ * down here because until now it was an accident of two providers rather than a stated contract.
21
+ *
22
+ * ⚠ An id means the ref is **identifiable and actionable** — it does NOT mean its enrichment is
23
+ * complete. The CLI resolves branches, remotes and worktrees with `Promise.allSettled`
24
+ * (`git-cli/providers/graph.ts:546`) and still synthesizes ids when any of those settle rejected, so an
25
+ * id-bearing ref can carry a missing `starred`/`upstream` that means "not computed" rather than "no".
26
+ * Treat every optional field as enrichment that may be absent, and never report a capability from its
27
+ * absence. If a consumer ever needs to tell "unavailable" from "false", that wants one graph-level
28
+ * completeness flag, not a per-ref field on every row.
29
+ */
17
30
  id?: string;
18
31
  name: string;
19
32
  isCurrentHead: boolean;
20
- context?: string | object;
21
- upstream?: { name: string; id: string };
22
- /** Set when this branch is checked out in a (non-default) worktree. Grouped so producers can't
23
- * half-populate id-without-path or vice versa. GitLens consumers should read this field. */
24
- worktree?: { id: string; path: string };
25
- /** Upstream-component-compatibility mirror of `worktree?.id`. The bundled
26
- * `@gitkraken/gitkraken-components` library still reads `worktreeId` to switch between
27
- * WORKTREE and HEAD ref-badge styling keeping it populated preserves the visual cue.
28
- * Producers MUST set this whenever they set `worktree`; do not read it from GitLens code,
29
- * read `worktree.id` instead. */
30
- worktreeId?: string;
33
+ /**
34
+ * The tracked upstream. `missing`/`state` are optional here while {@link GitTrackingUpstream} makes
35
+ * them required, and the difference is meaningful: absent means the producer did NOT compute them
36
+ * (the GitHub provider has no branch metadata at all), NOT "present and false/zero". Consumers must
37
+ * treat `undefined` as unknown rather than folding it into the negative case.
38
+ */
39
+ upstream?: { name: string; id: string; missing?: boolean; state?: { ahead: number; behind: number } };
40
+ /** Starred (a GitKraken branch disposition). Structured so `+starred` stops being baked into the
41
+ * serialized context at row-build time, where starring a branch left the label stale. */
42
+ starred?: boolean;
43
+ /** Set when this branch is checked out in ANY worktree, including the default one. Grouped so
44
+ * producers can't half-populate id-without-path or vice versa. Consumers that mean "checked out
45
+ * somewhere other than here" — the ref-ordering tier and the worktree glyph — must test
46
+ * `isDefault` too; the default worktree's checkout is the ordinary case, not a worktree badge.
47
+ * Note `isDefault` here describes the WORKTREE; the sibling `isDefault` below describes the BRANCH. */
48
+ worktree?: { id: string; path: string; isDefault: boolean };
31
49
  /** True when this head is the repository's default branch. */
32
50
  isDefault?: boolean;
33
51
  }
34
52
 
35
53
  export interface GitGraphRowRemoteHead {
54
+ /** Stable ref id; see {@link GitGraphRowHead.id} — its presence is the provider-tier marker. */
36
55
  id?: string;
37
56
  name: string;
38
57
  url?: string;
39
58
  owner: string;
40
59
  avatarUrl?: string;
41
- context?: string | object;
42
60
  current?: boolean;
43
61
  /** True when this remote ref IS the repository's default branch and no local branch tracks it (no
44
62
  * local checkout) — so the default-branch tier still applies for remote-only defaults. */
45
63
  isDefault?: boolean;
46
64
  hostingServiceType?: GkProviderId;
65
+ /** See {@link GitGraphRowHead.starred}. */
66
+ starred?: boolean;
47
67
  }
48
68
 
49
69
  export interface GitGraphRowTag {
70
+ /** Stable ref id; see {@link GitGraphRowHead.id} — its presence is the provider-tier marker. */
50
71
  id?: string;
51
72
  name: string;
52
73
  annotated: boolean;
53
- context?: string | object;
54
74
  }
55
75
 
56
76
  /**
@@ -81,10 +101,7 @@ export const enum GitGraphRowContextFlags {
81
101
  Unpulled = 1 << 5,
82
102
  }
83
103
 
84
- /**
85
- * Context data attached to graph row regions for command/menu handling.
86
- * Structurally compatible with @gitkraken/gitkraken-components RowContexts.
87
- */
104
+ /** Context data attached to graph rows for command/menu handling. */
88
105
  export interface GitGraphRowContexts {
89
106
  /** Compact replacement for the serialized commit `row`/`avatar` contexts; see {@link GitGraphRowContextFlags}. */
90
107
  flags?: GitGraphRowContextFlags;
@@ -94,16 +111,11 @@ export interface GitGraphRowContexts {
94
111
  * webview rebuilds `row.reachability` from the shared table. Absent ⇒ no reachability for this row.
95
112
  */
96
113
  reachabilityIndex?: number;
114
+ /** Serialized right-click context. Built here only for stash rows; commit rows ship {@link flags}
115
+ * instead and have theirs rebuilt on demand (see `rowContext.utils`). */
97
116
  row?: string | object;
98
- ref?: string | object;
117
+ /** Serialized context per grouped-ref name, for the group's own menu. */
99
118
  refGroups?: Record<string, string | object>;
100
- graph?: string | object;
101
- avatar?: string | object;
102
- message?: string | object;
103
- author?: string | object;
104
- date?: string | object;
105
- sha?: string | object;
106
- stats?: string | object;
107
119
  }
108
120
 
109
121
  export interface GitGraphRowStats {
@@ -134,7 +146,7 @@ export interface GraphReachabilityTable {
134
146
  readonly sets: string[];
135
147
  }
136
148
 
137
- /** Library-owned graph row type. Structurally compatible with @gitkraken/gitkraken-components GraphRow. */
149
+ /** Library-owned graph row type. */
138
150
  export interface GitGraphRow {
139
151
  sha: string;
140
152
  parents: string[];
@@ -143,12 +155,14 @@ export interface GitGraphRow {
143
155
  date: number;
144
156
  commitDate?: number;
145
157
  message: string;
146
- type: GitGraphRowType;
158
+ kind: GitGraphRowKind;
147
159
  heads?: GitGraphRowHead[];
148
160
  remotes?: GitGraphRowRemoteHead[];
149
161
  tags?: GitGraphRowTag[];
150
162
  contexts?: GitGraphRowContexts;
151
163
  stats?: GitGraphRowStats;
164
+ /** Stash rows only: the `{n}` of `stash@{n}`, so consumers stop parsing it back out of the message. */
165
+ stashNumber?: string;
152
166
  /**
153
167
  * Transient, set only for the duration of {@link GraphRowProcessor.processRow} (the row processor's
154
168
  * `+unique` decision reads it). The provider strips it before pushing the row and records the
@@ -282,10 +296,9 @@ export type GitGraphRowsStats = Map<string, GitGraphRowStats>;
282
296
  * repo-change rebuild can walk ONLY the changed head region, stitch the cached tail, and re-derive
283
297
  * flags/reachability in memory — instead of re-walking every loaded row.
284
298
  *
285
- * R6a status: the Node provider ACCEPTS this option but IGNORES it, falling through to the full ordered
286
- * walk (so a seeded rebuild is byte-equivalent to an unseeded one). It is threaded now purely so the
287
- * equivalence harness can pin the shape and R6b can light up the fast path without an interface change.
288
- * The GitHub provider ignores it structurally (it never lists the option).
299
+ * The CLI provider consumes this on its incremental fast path, degrading to the full ordered walk
300
+ * whenever any gate below rejects the seed. The GitHub provider ignores it structurally (it never
301
+ * lists the option).
289
302
  */
290
303
  export interface GraphIncrementalSeed {
291
304
  /**
@@ -345,7 +358,8 @@ export interface GraphIncrementalSeed {
345
358
  * {@link GitGraph.decorationFingerprint} of the prior walk. R6b falls back to a full walk on ANY change:
346
359
  * reused rows keep their embedded decorations (upstream/worktree/default/remote/user metadata), so a
347
360
  * metadata-only change — one that moves no ref tip — would otherwise ship stale pills indefinitely.
348
- * Absent (e.g. an old persisted snapshot) never matches safe full fallback.
361
+ * Optional because providers without the incremental machinery (e.g. GitHub) never populate it; absent
362
+ * never matches ⇒ safe full fallback.
349
363
  */
350
364
  readonly decorationFingerprint?: string;
351
365
  }
@@ -388,10 +402,14 @@ export type IncrementalGraphFallbackReason =
388
402
  /**
389
403
  * Processes a single graph row — mutates the row in place.
390
404
  *
391
- * Sets `row.contexts`, `row.message` (e.g., emojified), `tag.context`,
392
- * `head.context`, `remoteHead.context`, `remoteHead.avatarUrl`.
405
+ * Sets `row.contexts` and `row.message` (e.g., emojified), and resolves `remoteHead.avatarUrl`.
393
406
  * Also populates `context.avatars` with email → URL mappings.
394
407
  *
408
+ * Per-ref contexts are NOT serialized here. The webview builds them from the structured ref fields
409
+ * (`webviews/apps/plus/graph/utils/refContext.utils.ts`), where live state the host would have baked in
410
+ * stale — whether a branch is starred, which ref is pinned — is actually visible. What remains here needs
411
+ * something the webview cannot reach: the extension's asset URIs, or the whole-row grouping.
412
+ *
395
413
  * Called inline during graph row iteration in the library's row-building
396
414
  * loop, once per row. Because it runs inside the loop, `more()` pagination
397
415
  * automatically gets processing for free — no wrapping needed.
@@ -1,10 +1,4 @@
1
- import type {
2
- GitGraph,
3
- GitGraphRow,
4
- GitGraphRowStats,
5
- GraphReachabilityTable,
6
- IncrementalGraphFallbackReason,
7
- } from './graph.js';
1
+ import type { GitGraph, GitGraphRow, IncrementalGraphFallbackReason } from './graph.js';
8
2
 
9
3
  /**
10
4
  * A provider-owned, stateful graph window for a single repo. It is the canonical accumulated window and
@@ -16,8 +10,8 @@ import type {
16
10
  * `getGraph` incremental machinery (it internally builds the seed from the accumulated window, tips, and
17
11
  * prior artifacts, with the same shape gating), {@link more} delegates to the prior result's `more()`,
18
12
  * and {@link current} mirrors today's `GitGraph` result shape so the publisher/wire semantics stay
19
- * byte-identical. R7b (refresh-result-driven channel marking) and R7c (restart persistence) extend this
20
- * without breaking — {@link refresh} returns a result object, never a bare `GitGraph`.
13
+ * byte-identical. R7b (refresh-result-driven channel marking) extends this without breaking
14
+ * {@link refresh} returns a result object, never a bare `GitGraph`.
21
15
  */
22
16
  export interface GitGraphSession {
23
17
  readonly repoPath: string;
@@ -47,106 +41,9 @@ export interface GitGraphSession {
47
41
  */
48
42
  more(limit?: number, targetId?: string, cancellation?: AbortSignal): Promise<boolean>;
49
43
 
50
- /**
51
- * Snapshot the canonical window for restart persistence, or `undefined` when there's nothing worth
52
- * persisting — an empty window, or a provider without an incremental restore path (e.g. GitHub, which
53
- * stamps no ref tips for the restore's tip-diff gate). The host writes this into the repo's own git dir
54
- * (`<commonGitDir>/gitlens/graph/` — a repo-derived cache, like git's commit-graph file) on an idle
55
- * debounce / dispose; a later {@link GitGraphSubProvider.openGraphSession} `restore` reconstructs +
56
- * refreshes it. Never trusted over git — restore always re-refreshes (see {@link GitGraphSessionSnapshot}).
57
- */
58
- serialize(): GitGraphSessionSnapshot | undefined;
59
-
60
44
  dispose(): void;
61
45
  }
62
46
 
63
- /**
64
- * Schema version for {@link GitGraphSessionSnapshot}. Bump on ANY shape change (field add/remove/rename or a
65
- * semantics change): a restore whose snapshot version doesn't match this EXACTLY is discarded (a normal
66
- * initial walk), so an old-shaped cache written by a prior extension version can never be misread.
67
- */
68
- export const graphSessionSnapshotVersion = 3;
69
-
70
- /**
71
- * Restart-persistence snapshot of a {@link GitGraphSession}'s canonical window — everything a restore needs
72
- * to reconstruct the session's prior generation as an R6 incremental SEED, so a cold open on an unchanged
73
- * repo is ≈ deserialize + one enumeration instead of a full walk.
74
- *
75
- * NEVER trusted over git: on restore the session reconstructs this as its window/tips/builders WITHOUT any
76
- * git, then IMMEDIATELY {@link GitGraphSession.refresh | refreshes} — the same enumeration + tip-diff + FF +
77
- * stash gates reconcile a stale snapshot (fast when unchanged, a full walk on any structural change), and any
78
- * parse/validation failure discards it entirely for a normal initial walk.
79
- *
80
- * Rows are persisted as-is: they're already the JSON-safe wire shapes (strings/numbers/plain objects — the
81
- * graph's Maps live at the graph level, not on rows, and the transient per-row `reachability` is stripped
82
- * before a row is emitted). Maps are persisted as entry arrays.
83
- */
84
- export interface GitGraphSessionSnapshot {
85
- /** Must equal {@link graphSessionSnapshotVersion}; any mismatch discards the snapshot. */
86
- readonly v: number;
87
- readonly repoPath: string;
88
- /** Walk shape the window was produced under (`${ordering}|${onlyFollowFirstParent}`). A restore is
89
- * discarded when this disagrees with the current config's shape — the cached rows can't be reused. */
90
- readonly buildShape: string;
91
- readonly ordering: 'date' | 'author-date' | 'topo';
92
- readonly onlyFollowFirstParent: boolean;
93
- /** The persisted window rows, in walk order — a TOP slice capped at a bounded row count (see the host
94
- * store); a longer window persists its top slice with {@link hasMore} forced true so the bottom re-pages. */
95
- readonly rows: GitGraphRow[];
96
- /** Ref tips as of the persisted walk: `[canonical refname, peeled tip sha]` entries — the map the restore
97
- * refresh diffs against current git to find the structural changes that force a full fallback. */
98
- readonly refTips: [string, string][];
99
- /** {@link GitGraph.decorationFingerprint} as of the persisted walk — the restore refresh diffs it against
100
- * current git so a metadata-only change while closed (upstream/default/worktree/remote/user) still forces
101
- * the full fallback that rebuilds row decorations. Absent ⇒ never matches ⇒ safe full fallback. */
102
- readonly decorationFingerprint?: string;
103
- /** Shared reachability table for the window (the primary reachability representation — rows carry only a
104
- * `contexts.reachabilityIndex` into its `sets`). The restore refresh CONTINUES it (stable indices). */
105
- readonly reachability?: GraphReachabilityTable;
106
- /** Per-sha immutable stats `[sha, stats]` entries for the persisted rows (present only when stats were
107
- * included in the walk). */
108
- readonly rowsStats?: [string, GitGraphRowStats][];
109
- /** Downstreams `[upstream name, tracking branch names]` entries (for the refresh's change diffing). */
110
- readonly downstreams: [string, string[]][];
111
- /** Whether the persisted window had more rows below it — genuinely paged OR truncated by the cap. */
112
- readonly hasMore: boolean;
113
- /** Whether the persisted walk included per-row stats. */
114
- readonly includesStats: boolean;
115
- /** Whether the repo was a shallow clone when the window was walked. The restore refresh diffs this
116
- * against current git — an un-shallow (or re-shallow) while closed forces a full fallback. */
117
- readonly shallow: boolean;
118
- }
119
-
120
- /** Why a restore discarded its snapshot (reported via {@link GraphSessionRestoreResult.reason}). */
121
- export type GraphSessionRestoreDiscardReason =
122
- | 'schema'
123
- | 'repo-path'
124
- | 'shape'
125
- | 'empty'
126
- | 'tips'
127
- | 'rows'
128
- | 'reachability'
129
- | 'downstreams'
130
- | 'rowsStats'
131
- // A throw past structural validation (e.g. the restore refresh's enumerate chokes on a garbage rev).
132
- | 'corrupt';
133
-
134
- /**
135
- * Outcome of a restore attempt, reported via the {@link GitGraphSubProvider.openGraphSession} `onRestore`
136
- * callback so the host can emit its single, assertable INFO line. `restored` is true only when the snapshot
137
- * validated and seeded the (always-run) refresh — `refresh` then carries that refresh's path so the host can
138
- * distinguish `→ refresh fast (+M)` from `→ refresh full (<reason>)`.
139
- */
140
- export interface GraphSessionRestoreResult {
141
- readonly restored: boolean;
142
- /** Present when `!restored`: why the snapshot was discarded; the host logs `miss (<reason>)`. */
143
- readonly reason?: GraphSessionRestoreDiscardReason;
144
- /** Present when `restored`: how many window rows the snapshot carried. */
145
- readonly rows?: number;
146
- /** Present when `restored`: the post-restore refresh outcome (a restore ALWAYS refreshes to current truth). */
147
- readonly refresh?: GitGraphSessionRefreshResult;
148
- }
149
-
150
47
  export interface GitGraphSessionRefreshOptions {
151
48
  /** Rebuild anchor / find target — the loaded window's bottom sha (pins the walk's bottom boundary),
152
49
  * or a selection/centering hint. Mirrors the `rev` the host passed to `getGraph` today. */
@@ -12,7 +12,7 @@ import type {
12
12
  GitGraphSearchProgress,
13
13
  GitGraphSearchResults,
14
14
  } from '../models/graphSearch.js';
15
- import type { GitGraphSession, GitGraphSessionSnapshot, GraphSessionRestoreResult } from '../models/graphSession.js';
15
+ import type { GitGraphSession } from '../models/graphSession.js';
16
16
  import type { SearchQuery } from '../models/search.js';
17
17
 
18
18
  export interface GitGraphSubProvider {
@@ -30,20 +30,6 @@ export interface GitGraphSubProvider {
30
30
  rev?: string;
31
31
  limit?: number;
32
32
  include?: { stats?: boolean };
33
- /**
34
- * Restart-persistence snapshot to seed the session from (see {@link GitGraphSessionSnapshot}). When
35
- * present and structurally valid, the session reconstructs it as its prior generation WITHOUT any git,
36
- * then immediately refreshes to current truth — so a cold open on an unchanged repo is ≈ deserialize +
37
- * one enumeration. Any validation/parse failure is ignored (a normal initial walk). Never trusted over
38
- * git. Providers without an incremental restore path (e.g. GitHub) ignore it.
39
- */
40
- restore?: GitGraphSessionSnapshot;
41
- /**
42
- * Reports the restore outcome (validated + refreshed, or discarded with a reason) so the host can log
43
- * a single assertable line. Called at most once, only when `restore` was provided. See
44
- * {@link GraphSessionRestoreResult}.
45
- */
46
- onRestore?: (result: GraphSessionRestoreResult) => void;
47
33
  },
48
34
  cancellation?: AbortSignal,
49
35
  ): Promise<GitGraphSession>;
@@ -7,5 +7,12 @@ export interface GitPausedOperationsSubProvider {
7
7
  cancellation?: AbortSignal,
8
8
  ): Promise<GitPausedOperationStatus | undefined>;
9
9
  abortPausedOperation(repoPath: string, options?: { quit?: boolean }): Promise<void>;
10
- continuePausedOperation(repoPath: string, options?: { skip?: boolean }): Promise<void>;
10
+ continuePausedOperation(
11
+ repoPath: string,
12
+ options?: {
13
+ skip?: boolean;
14
+ /** Editor command used if the operation needs to edit a commit message (e.g. `true` to keep the original message without opening an editor) */
15
+ messageEditor?: string;
16
+ },
17
+ ): Promise<void>;
11
18
  }
@@ -10,7 +10,7 @@ type ReachableRef = GitCommitReachability['refs'][number];
10
10
  * set and the walk's HEAD-derived sets. Single-sourced so the host row processor
11
11
  * (`GlGraphRowProcessor`), the R6b incremental fast path, and the equivalence harness all compute
12
12
  * byte-identical flags (no manual mirrors that can drift). Stash rows carry no flags — callers skip this
13
- * for `stash-node` rows. See {@link GitGraphRowContextFlags} for the per-bit semantics.
13
+ * for `stash` rows. See {@link GitGraphRowContextFlags} for the per-bit semantics.
14
14
  */
15
15
  export function computeGraphRowContextFlags(
16
16
  sha: string,