@@ -102,8 +102,6 @@ export class CobuildConfiguration {
102
102
get cobuildLockProvider(): ICobuildLockProvider ;
103
103
readonly cobuildRunnerId: string ;
104
104
// (undocumented)
105
- get contextId(): string | undefined ;
106
- // (undocumented)
107
105
createLockProviderAsync(terminal : ITerminal ): Promise <void >;
108
106
// (undocumented)
109
107
destroyLockProviderAsync(): Promise <void >;
@@ -283,8 +281,14 @@ export interface ICobuildCompletedState {
283
281
// @beta (undocumented)
284
282
export interface ICobuildContext {
285
283
cacheId: string ;
284
+ clusterId: string ;
285
+ completedStateKey: string ;
286
286
contextId: string ;
287
- version: number ;
287
+ lockExpireTimeInSeconds: number ;
288
+ lockKey: string ;
289
+ packageName: string ;
290
+ phaseName: string ;
291
+ runnerId: string ;
288
292
}
289
293
290
294
// @beta (undocumented)
@@ -297,18 +301,12 @@ export interface ICobuildJson {
297
301
298
302
// @beta (undocumented)
299
303
export interface ICobuildLockProvider {
300
- // (undocumented)
301
- acquireLockAsync(context : ICobuildContext ): Promise <boolean >;
302
- // (undocumented)
304
+ acquireLockAsync(context : Readonly <ICobuildContext >): Promise <boolean >;
303
305
connectAsync(): Promise <void >;
304
- // (undocumented)
305
306
disconnectAsync(): Promise <void >;
306
- // (undocumented)
307
- getCompletedStateAsync(context : ICobuildContext ): Promise <ICobuildCompletedState | undefined >;
308
- // (undocumented)
309
- renewLockAsync(context : ICobuildContext ): Promise <void >;
310
- // (undocumented)
311
- setCompletedStateAsync(context : ICobuildContext , state : ICobuildCompletedState ): Promise <void >;
307
+ getCompletedStateAsync(context : Readonly <ICobuildContext >): Promise <ICobuildCompletedState | undefined >;
308
+ renewLockAsync(context : Readonly <ICobuildContext >): Promise <void >;
309
+ setCompletedStateAsync(context : Readonly <ICobuildContext >, state : ICobuildCompletedState ): Promise <void >;
312
310
}
313
311
314
312
// @public
@@ -1061,7 +1059,6 @@ export class RushConstants {
1061
1059
static readonly bypassPolicyFlagLongName: ' --bypass-policy' ;
1062
1060
static readonly changeFilesFolderName: string ;
1063
1061
static readonly cobuildFilename: string ;
1064
- static readonly cobuildLockVersion: number ;
1065
1062
static readonly commandLineFilename: string ;
1066
1063
static readonly commonFolderName: string ;
1067
1064
static readonly commonVersionsFilename: string ;
0 commit comments