@@ -50,14 +50,23 @@ import type {
5050 PrePrReviewFinding ,
5151 PrePrReviewProviderId ,
5252} from "../../src/lib/source-control-review" ;
53- import type { CommandResult , DetachedCheckoutResult , SourceControlStatusItem } from "../main/types" ;
53+ import type {
54+ CommandResult ,
55+ DetachedCheckoutResult ,
56+ SourceControlStatusItem ,
57+ } from "../main/types" ;
5458import type { WorkspaceInformationState } from "../../src/lib/workspace-information" ;
5559import type {
5660 SecondaryProviderCancelRequest ,
5761 SecondaryProviderExecutionRequest ,
5862 SecondaryProviderExecutionResult ,
5963} from "../../src/lib/runs/secondary-run" ;
6064import type { LocalMcpTaskTurnUpdate } from "../../src/lib/local-mcp/task-turn-update" ;
65+ import type {
66+ GraphCommitDetailsResult ,
67+ GraphFileChange ,
68+ GraphResult ,
69+ } from "../../src/lib/git-graph/types" ;
6170
6271export interface HostWorkspaceScriptRunEntryArgs {
6372 workspaceId : string ;
@@ -350,13 +359,8 @@ export interface HostScmHistoryResult {
350359 stderr : string ;
351360}
352361
353- export interface HostScmGraphResult {
354- ok : boolean ;
355- commits : import ( "../../src/lib/git-graph/types" ) . GraphCommit [ ] ;
356- head : string | null ;
357- hasMore : boolean ;
358- stderr : string ;
359- }
362+ export type HostScmGraphResult = GraphResult ;
363+ export type HostScmCommitDetailsResult = GraphCommitDetailsResult ;
360364
361365export interface HostScmListBranchesResult {
362366 ok : boolean ;
@@ -718,6 +722,12 @@ export interface HostServiceRequestMap {
718722 limit ?: number ;
719723 skip ?: number ;
720724 scope ?: "current" | "all" | string ;
725+ refs ?: string [ ] ;
726+ includeRepositoryState ?: boolean ;
727+ } ;
728+ "scm.commit-details" : {
729+ hash : string ;
730+ cwd ?: string ;
721731 } ;
722732 "scm.commit-files" : {
723733 hash : string ;
@@ -937,9 +947,10 @@ export interface HostServiceResponseMap {
937947 "scm.discard-file" : CommandResult ;
938948 "scm.diff" : HostScmDiffResult ;
939949 "scm.graph" : HostScmGraphResult ;
950+ "scm.commit-details" : HostScmCommitDetailsResult ;
940951 "scm.commit-files" : {
941952 ok : boolean ;
942- files : Array < { path : string ; status : string } > ;
953+ files : GraphFileChange [ ] ;
943954 stderr : string ;
944955 } ;
945956 "scm.commit-diff" : {
0 commit comments