@openvcs/sdk 0.2.5 → 0.2.7
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.
- package/README.md +53 -1
- package/lib/runtime/index.d.ts +2 -0
- package/lib/runtime/index.js +3 -1
- package/lib/runtime/vcs-delegate-base.d.ts +125 -0
- package/lib/runtime/vcs-delegate-base.js +249 -0
- package/lib/runtime/vcs-delegate-metadata.d.ts +120 -0
- package/lib/runtime/vcs-delegate-metadata.js +58 -0
- package/lib/types/vcs.d.ts +14 -2
- package/package.json +3 -2
- package/src/lib/runtime/index.ts +2 -0
- package/src/lib/runtime/vcs-delegate-base.ts +481 -0
- package/src/lib/runtime/vcs-delegate-metadata.ts +165 -0
- package/src/lib/types/vcs.ts +16 -2
- package/test/tsconfig.json +8 -0
- package/test/vcs-delegate-base.test.js +169 -0
- package/test/vcs-delegate-base.types.ts +44 -0
package/lib/types/vcs.d.ts
CHANGED
|
@@ -209,6 +209,8 @@ export interface CommitEntry {
|
|
|
209
209
|
author: string;
|
|
210
210
|
/** Stores the formatted metadata string. */
|
|
211
211
|
meta: string;
|
|
212
|
+
/** Stores the first parent commit id when available. */
|
|
213
|
+
parent_oid?: string;
|
|
212
214
|
}
|
|
213
215
|
/** Describes params for `vcs.diff_file`. */
|
|
214
216
|
export interface VcsDiffFileParams extends VcsSessionParams {
|
|
@@ -307,6 +309,16 @@ export interface VcsResetSoftToParams extends VcsSessionParams {
|
|
|
307
309
|
/** Stores the revision to reset to. */
|
|
308
310
|
rev: string;
|
|
309
311
|
}
|
|
312
|
+
/** Describes params for continuing a merge in progress. */
|
|
313
|
+
export interface VcsMergeContinueParams extends VcsSessionParams {
|
|
314
|
+
/** Stores an optional commit message override. */
|
|
315
|
+
message?: string;
|
|
316
|
+
}
|
|
317
|
+
/** Describes params for hard resetting HEAD to a given ref. */
|
|
318
|
+
export interface VcsHardResetHeadParams extends VcsSessionParams {
|
|
319
|
+
/** Stores the ref to reset HEAD to; defaults to HEAD. */
|
|
320
|
+
ref?: string;
|
|
321
|
+
}
|
|
310
322
|
/** Describes one configured author identity. */
|
|
311
323
|
export interface VcsIdentity {
|
|
312
324
|
/** Stores the configured author name. */
|
|
@@ -425,7 +437,7 @@ export interface VcsDelegates<TContext = unknown> {
|
|
|
425
437
|
/** Handles `vcs.merge_abort`. */
|
|
426
438
|
'vcs.merge_abort'?: RpcMethodHandler<VcsSessionParams, null, TContext>;
|
|
427
439
|
/** Handles `vcs.merge_continue`. */
|
|
428
|
-
'vcs.merge_continue'?: RpcMethodHandler<
|
|
440
|
+
'vcs.merge_continue'?: RpcMethodHandler<VcsMergeContinueParams, null, TContext>;
|
|
429
441
|
/** Handles `vcs.is_merge_in_progress`. */
|
|
430
442
|
'vcs.is_merge_in_progress'?: RpcMethodHandler<VcsSessionParams, boolean, TContext>;
|
|
431
443
|
/** Handles `vcs.set_branch_upstream`. */
|
|
@@ -433,7 +445,7 @@ export interface VcsDelegates<TContext = unknown> {
|
|
|
433
445
|
/** Handles `vcs.get_branch_upstream`. */
|
|
434
446
|
'vcs.get_branch_upstream'?: RpcMethodHandler<VcsGetBranchUpstreamParams, string | null, TContext>;
|
|
435
447
|
/** Handles `vcs.hard_reset_head`. */
|
|
436
|
-
'vcs.hard_reset_head'?: RpcMethodHandler<
|
|
448
|
+
'vcs.hard_reset_head'?: RpcMethodHandler<VcsHardResetHeadParams, null, TContext>;
|
|
437
449
|
/** Handles `vcs.reset_soft_to`. */
|
|
438
450
|
'vcs.reset_soft_to'?: RpcMethodHandler<VcsResetSoftToParams, null, TContext>;
|
|
439
451
|
/** Handles `vcs.get_identity`. */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openvcs/sdk",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.7",
|
|
4
4
|
"description": "OpenVCS SDK CLI for plugin scaffolding and .ovcsp tar.gz packaging",
|
|
5
5
|
"license": "GPL-3.0-or-later",
|
|
6
6
|
"homepage": "https://openvcs.app/",
|
|
@@ -32,7 +32,8 @@
|
|
|
32
32
|
},
|
|
33
33
|
"scripts": {
|
|
34
34
|
"build": "node scripts/build-sdk.js",
|
|
35
|
-
"test": "npm run build && node --test test/*.test.js",
|
|
35
|
+
"test": "npm run build && npm run test:types && node --test test/*.test.js",
|
|
36
|
+
"test:types": "node ./node_modules/typescript/bin/tsc -p test/tsconfig.json",
|
|
36
37
|
"prepack": "npm run build",
|
|
37
38
|
"preopenvcs": "npm run build",
|
|
38
39
|
"openvcs": "node bin/openvcs.js"
|
package/src/lib/runtime/index.ts
CHANGED
|
@@ -26,6 +26,8 @@ export {
|
|
|
26
26
|
bootstrapPluginModule,
|
|
27
27
|
createRegisteredPluginRuntime,
|
|
28
28
|
} from './registration';
|
|
29
|
+
export { VcsDelegateBase } from './vcs-delegate-base';
|
|
30
|
+
export type { VcsDelegateAssignments } from './vcs-delegate-metadata';
|
|
29
31
|
|
|
30
32
|
/** Starts a previously created plugin runtime on process stdio. */
|
|
31
33
|
export function startPluginRuntime(
|
|
@@ -0,0 +1,481 @@
|
|
|
1
|
+
// Copyright © 2025-2026 OpenVCS Contributors
|
|
2
|
+
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
3
|
+
|
|
4
|
+
import type * as VcsTypes from '../types';
|
|
5
|
+
|
|
6
|
+
import type { PluginRuntimeContext } from './contracts';
|
|
7
|
+
import {
|
|
8
|
+
type VcsDelegateAssignments,
|
|
9
|
+
type VcsDelegateBindings,
|
|
10
|
+
type VcsDelegateMethodName,
|
|
11
|
+
type VcsDelegatePrototype,
|
|
12
|
+
type VcsDelegateRpcMethodName,
|
|
13
|
+
VCS_DELEGATE_METHOD_MAPPINGS,
|
|
14
|
+
} from './vcs-delegate-metadata';
|
|
15
|
+
|
|
16
|
+
/** Describes one synchronous or asynchronous VCS delegate return value. */
|
|
17
|
+
type VcsHandlerResult<TResult> = TResult | Promise<TResult>;
|
|
18
|
+
|
|
19
|
+
/** Builds exact `vcs.*` delegates from ordinary class methods. */
|
|
20
|
+
export abstract class VcsDelegateBase<
|
|
21
|
+
TDeps,
|
|
22
|
+
TContext = PluginRuntimeContext,
|
|
23
|
+
> {
|
|
24
|
+
/** Stores the runtime services exposed to the delegate implementation. */
|
|
25
|
+
protected readonly deps: TDeps;
|
|
26
|
+
|
|
27
|
+
/** Creates one delegate base with the provided runtime dependencies. */
|
|
28
|
+
constructor(deps: TDeps) {
|
|
29
|
+
this.deps = deps;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/** Builds an SDK `vcs.*` delegate map from the subclass overrides. */
|
|
33
|
+
toDelegates(): VcsDelegateAssignments<TContext> {
|
|
34
|
+
const delegates: VcsDelegateAssignments<TContext> = {};
|
|
35
|
+
const delegatePrototype = Object.getPrototypeOf(this) as VcsDelegatePrototype<TContext> | null;
|
|
36
|
+
const basePrototype = VcsDelegateBase.prototype as VcsDelegatePrototype<TContext>;
|
|
37
|
+
|
|
38
|
+
for (const delegateMethod of Object.keys(
|
|
39
|
+
VCS_DELEGATE_METHOD_MAPPINGS,
|
|
40
|
+
) as VcsDelegateMethodName[]) {
|
|
41
|
+
const handler = delegatePrototype?.[delegateMethod];
|
|
42
|
+
if (typeof handler !== 'function' || handler === basePrototype[delegateMethod]) {
|
|
43
|
+
continue;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
this.assignDelegate(delegates, delegateMethod, handler);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
return delegates;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
/** Assigns one typed class method to its exact `vcs.*` delegate name. */
|
|
53
|
+
private assignDelegate<TMethodName extends VcsDelegateMethodName>(
|
|
54
|
+
delegates: VcsDelegateAssignments<TContext>,
|
|
55
|
+
delegateMethod: TMethodName,
|
|
56
|
+
handler: VcsDelegateBindings<TContext>[TMethodName],
|
|
57
|
+
): void {
|
|
58
|
+
const rpcMethod = VCS_DELEGATE_METHOD_MAPPINGS[
|
|
59
|
+
delegateMethod
|
|
60
|
+
] as VcsDelegateRpcMethodName<TMethodName>;
|
|
61
|
+
// `bind` loses the method-specific key correlation here; the cast is
|
|
62
|
+
// safe because `assignDelegate` is only called with handlers that were
|
|
63
|
+
// verified against `VcsDelegateBindings<TContext>` in the loop above.
|
|
64
|
+
const boundHandler = handler.bind(this) as VcsDelegateAssignments<TContext>[typeof rpcMethod];
|
|
65
|
+
|
|
66
|
+
delegates[rpcMethod] = boundHandler;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* Throws when a subclass does not implement one required delegate method.
|
|
71
|
+
*
|
|
72
|
+
* The `never` return type is intentional: base stubs should never contribute
|
|
73
|
+
* a usable value, and subclasses should override the method with the exact
|
|
74
|
+
* signature inherited from `VcsDelegateBase`.
|
|
75
|
+
*/
|
|
76
|
+
protected unimplemented(methodName: VcsDelegateMethodName): never {
|
|
77
|
+
throw new Error(
|
|
78
|
+
`VCS delegate method '${methodName}' must be overridden before registration`,
|
|
79
|
+
);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
/** Handles `vcs.get_caps`. */
|
|
83
|
+
getCaps(
|
|
84
|
+
_params: VcsTypes.RequestParams,
|
|
85
|
+
_context: TContext,
|
|
86
|
+
): VcsHandlerResult<VcsTypes.VcsCapabilities> {
|
|
87
|
+
return this.unimplemented('getCaps');
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
/** Handles `vcs.open`. */
|
|
91
|
+
open(
|
|
92
|
+
_params: VcsTypes.VcsOpenParams,
|
|
93
|
+
_context: TContext,
|
|
94
|
+
): VcsHandlerResult<VcsTypes.VcsSessionResult> {
|
|
95
|
+
return this.unimplemented('open');
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
/** Handles `vcs.close`. */
|
|
99
|
+
close(
|
|
100
|
+
_params: VcsTypes.VcsSessionParams,
|
|
101
|
+
_context: TContext,
|
|
102
|
+
): VcsHandlerResult<null> {
|
|
103
|
+
return this.unimplemented('close');
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
/** Handles `vcs.clone_repo`. */
|
|
107
|
+
cloneRepo(
|
|
108
|
+
_params: VcsTypes.VcsCloneRepoParams,
|
|
109
|
+
_context: TContext,
|
|
110
|
+
): VcsHandlerResult<null> {
|
|
111
|
+
return this.unimplemented('cloneRepo');
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
/** Handles `vcs.get_workdir`. */
|
|
115
|
+
getWorkdir(
|
|
116
|
+
_params: VcsTypes.VcsSessionParams,
|
|
117
|
+
_context: TContext,
|
|
118
|
+
): VcsHandlerResult<string> {
|
|
119
|
+
return this.unimplemented('getWorkdir');
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
/** Handles `vcs.get_current_branch`. */
|
|
123
|
+
getCurrentBranch(
|
|
124
|
+
_params: VcsTypes.VcsSessionParams,
|
|
125
|
+
_context: TContext,
|
|
126
|
+
): VcsHandlerResult<string | null> {
|
|
127
|
+
return this.unimplemented('getCurrentBranch');
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
/** Handles `vcs.list_branches`. */
|
|
131
|
+
listBranches(
|
|
132
|
+
_params: VcsTypes.VcsSessionParams,
|
|
133
|
+
_context: TContext,
|
|
134
|
+
): VcsHandlerResult<VcsTypes.VcsBranchEntry[]> {
|
|
135
|
+
return this.unimplemented('listBranches');
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
/** Handles `vcs.list_local_branches`. */
|
|
139
|
+
listLocalBranches(
|
|
140
|
+
_params: VcsTypes.VcsSessionParams,
|
|
141
|
+
_context: TContext,
|
|
142
|
+
): VcsHandlerResult<string[]> {
|
|
143
|
+
return this.unimplemented('listLocalBranches');
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
/** Handles `vcs.create_branch`. */
|
|
147
|
+
createBranch(
|
|
148
|
+
_params: VcsTypes.VcsCreateBranchParams,
|
|
149
|
+
_context: TContext,
|
|
150
|
+
): VcsHandlerResult<null> {
|
|
151
|
+
return this.unimplemented('createBranch');
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
/** Handles `vcs.checkout_branch`. */
|
|
155
|
+
checkoutBranch(
|
|
156
|
+
_params: VcsTypes.VcsCheckoutBranchParams,
|
|
157
|
+
_context: TContext,
|
|
158
|
+
): VcsHandlerResult<null> {
|
|
159
|
+
return this.unimplemented('checkoutBranch');
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
/** Handles `vcs.ensure_remote`. */
|
|
163
|
+
ensureRemote(
|
|
164
|
+
_params: VcsTypes.VcsEnsureRemoteParams,
|
|
165
|
+
_context: TContext,
|
|
166
|
+
): VcsHandlerResult<null> {
|
|
167
|
+
return this.unimplemented('ensureRemote');
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
/** Handles `vcs.list_remotes`. */
|
|
171
|
+
listRemotes(
|
|
172
|
+
_params: VcsTypes.VcsSessionParams,
|
|
173
|
+
_context: TContext,
|
|
174
|
+
): VcsHandlerResult<VcsTypes.VcsRemoteEntry[]> {
|
|
175
|
+
return this.unimplemented('listRemotes');
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
/** Handles `vcs.remove_remote`. */
|
|
179
|
+
removeRemote(
|
|
180
|
+
_params: VcsTypes.VcsRemoveRemoteParams,
|
|
181
|
+
_context: TContext,
|
|
182
|
+
): VcsHandlerResult<null> {
|
|
183
|
+
return this.unimplemented('removeRemote');
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
/** Handles `vcs.fetch`. */
|
|
187
|
+
fetch(
|
|
188
|
+
_params: VcsTypes.VcsFetchParams,
|
|
189
|
+
_context: TContext,
|
|
190
|
+
): VcsHandlerResult<null> {
|
|
191
|
+
return this.unimplemented('fetch');
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
/** Handles `vcs.fetch_with_options`. */
|
|
195
|
+
fetchWithOptions(
|
|
196
|
+
_params: VcsTypes.VcsFetchParams,
|
|
197
|
+
_context: TContext,
|
|
198
|
+
): VcsHandlerResult<null> {
|
|
199
|
+
return this.unimplemented('fetchWithOptions');
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
/** Handles `vcs.push`. */
|
|
203
|
+
push(
|
|
204
|
+
_params: VcsTypes.VcsPushParams,
|
|
205
|
+
_context: TContext,
|
|
206
|
+
): VcsHandlerResult<null> {
|
|
207
|
+
return this.unimplemented('push');
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
/** Handles `vcs.pull_ff_only`. */
|
|
211
|
+
pullFfOnly(
|
|
212
|
+
_params: VcsTypes.VcsPullFfOnlyParams,
|
|
213
|
+
_context: TContext,
|
|
214
|
+
): VcsHandlerResult<null> {
|
|
215
|
+
return this.unimplemented('pullFfOnly');
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
/** Handles `vcs.commit`. */
|
|
219
|
+
commit(
|
|
220
|
+
_params: VcsTypes.VcsCommitParams,
|
|
221
|
+
_context: TContext,
|
|
222
|
+
): VcsHandlerResult<string> {
|
|
223
|
+
return this.unimplemented('commit');
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
/** Handles `vcs.commit_index`. */
|
|
227
|
+
commitIndex(
|
|
228
|
+
_params: VcsTypes.VcsCommitParams,
|
|
229
|
+
_context: TContext,
|
|
230
|
+
): VcsHandlerResult<string> {
|
|
231
|
+
return this.unimplemented('commitIndex');
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
/** Handles `vcs.get_status_summary`. */
|
|
235
|
+
getStatusSummary(
|
|
236
|
+
_params: VcsTypes.VcsSessionParams,
|
|
237
|
+
_context: TContext,
|
|
238
|
+
): VcsHandlerResult<VcsTypes.StatusSummary> {
|
|
239
|
+
return this.unimplemented('getStatusSummary');
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
/** Handles `vcs.get_status_payload`. */
|
|
243
|
+
getStatusPayload(
|
|
244
|
+
_params: VcsTypes.VcsSessionParams,
|
|
245
|
+
_context: TContext,
|
|
246
|
+
): VcsHandlerResult<VcsTypes.StatusPayload> {
|
|
247
|
+
return this.unimplemented('getStatusPayload');
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
/** Handles `vcs.list_commits`. */
|
|
251
|
+
listCommits(
|
|
252
|
+
_params: VcsTypes.VcsListCommitsParams,
|
|
253
|
+
_context: TContext,
|
|
254
|
+
): VcsHandlerResult<VcsTypes.CommitEntry[]> {
|
|
255
|
+
return this.unimplemented('listCommits');
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
/** Handles `vcs.diff_file`. */
|
|
259
|
+
diffFile(
|
|
260
|
+
_params: VcsTypes.VcsDiffFileParams,
|
|
261
|
+
_context: TContext,
|
|
262
|
+
): VcsHandlerResult<string[]> {
|
|
263
|
+
return this.unimplemented('diffFile');
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
/** Handles `vcs.diff_commit`. */
|
|
267
|
+
diffCommit(
|
|
268
|
+
_params: VcsTypes.VcsDiffCommitParams,
|
|
269
|
+
_context: TContext,
|
|
270
|
+
): VcsHandlerResult<string[]> {
|
|
271
|
+
return this.unimplemented('diffCommit');
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
/** Handles `vcs.get_conflict_details`. */
|
|
275
|
+
getConflictDetails(
|
|
276
|
+
_params: VcsTypes.VcsGetConflictDetailsParams,
|
|
277
|
+
_context: TContext,
|
|
278
|
+
): VcsHandlerResult<VcsTypes.VcsConflictDetails> {
|
|
279
|
+
return this.unimplemented('getConflictDetails');
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
/** Handles `vcs.checkout_conflict_side`. */
|
|
283
|
+
checkoutConflictSide(
|
|
284
|
+
_params: VcsTypes.VcsCheckoutConflictSideParams,
|
|
285
|
+
_context: TContext,
|
|
286
|
+
): VcsHandlerResult<null> {
|
|
287
|
+
return this.unimplemented('checkoutConflictSide');
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
/** Handles `vcs.write_merge_result`. */
|
|
291
|
+
writeMergeResult(
|
|
292
|
+
_params: VcsTypes.VcsWriteMergeResultParams,
|
|
293
|
+
_context: TContext,
|
|
294
|
+
): VcsHandlerResult<null> {
|
|
295
|
+
return this.unimplemented('writeMergeResult');
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
/** Handles `vcs.stage_patch`. */
|
|
299
|
+
stagePatch(
|
|
300
|
+
_params: VcsTypes.VcsStagePatchParams,
|
|
301
|
+
_context: TContext,
|
|
302
|
+
): VcsHandlerResult<null> {
|
|
303
|
+
return this.unimplemented('stagePatch');
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
/** Handles `vcs.discard_paths`. */
|
|
307
|
+
discardPaths(
|
|
308
|
+
_params: VcsTypes.VcsDiscardPathsParams,
|
|
309
|
+
_context: TContext,
|
|
310
|
+
): VcsHandlerResult<null> {
|
|
311
|
+
return this.unimplemented('discardPaths');
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
/** Handles `vcs.apply_reverse_patch`. */
|
|
315
|
+
applyReversePatch(
|
|
316
|
+
_params: VcsTypes.VcsApplyReversePatchParams,
|
|
317
|
+
_context: TContext,
|
|
318
|
+
): VcsHandlerResult<null> {
|
|
319
|
+
return this.unimplemented('applyReversePatch');
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
/** Handles `vcs.delete_branch`. */
|
|
323
|
+
deleteBranch(
|
|
324
|
+
_params: VcsTypes.VcsDeleteBranchParams,
|
|
325
|
+
_context: TContext,
|
|
326
|
+
): VcsHandlerResult<null> {
|
|
327
|
+
return this.unimplemented('deleteBranch');
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
/** Handles `vcs.rename_branch`. */
|
|
331
|
+
renameBranch(
|
|
332
|
+
_params: VcsTypes.VcsRenameBranchParams,
|
|
333
|
+
_context: TContext,
|
|
334
|
+
): VcsHandlerResult<null> {
|
|
335
|
+
return this.unimplemented('renameBranch');
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
/** Handles `vcs.merge_into_current`. */
|
|
339
|
+
mergeIntoCurrent(
|
|
340
|
+
_params: VcsTypes.VcsMergeIntoCurrentParams,
|
|
341
|
+
_context: TContext,
|
|
342
|
+
): VcsHandlerResult<null> {
|
|
343
|
+
return this.unimplemented('mergeIntoCurrent');
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
/** Handles `vcs.merge_abort`. */
|
|
347
|
+
mergeAbort(
|
|
348
|
+
_params: VcsTypes.VcsSessionParams,
|
|
349
|
+
_context: TContext,
|
|
350
|
+
): VcsHandlerResult<null> {
|
|
351
|
+
return this.unimplemented('mergeAbort');
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
/** Handles `vcs.merge_continue`. */
|
|
355
|
+
mergeContinue(
|
|
356
|
+
_params: VcsTypes.VcsSessionParams,
|
|
357
|
+
_context: TContext,
|
|
358
|
+
): VcsHandlerResult<null> {
|
|
359
|
+
return this.unimplemented('mergeContinue');
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
/** Handles `vcs.is_merge_in_progress`. */
|
|
363
|
+
isMergeInProgress(
|
|
364
|
+
_params: VcsTypes.VcsSessionParams,
|
|
365
|
+
_context: TContext,
|
|
366
|
+
): VcsHandlerResult<boolean> {
|
|
367
|
+
return this.unimplemented('isMergeInProgress');
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
/** Handles `vcs.set_branch_upstream`. */
|
|
371
|
+
setBranchUpstream(
|
|
372
|
+
_params: VcsTypes.VcsSetBranchUpstreamParams,
|
|
373
|
+
_context: TContext,
|
|
374
|
+
): VcsHandlerResult<null> {
|
|
375
|
+
return this.unimplemented('setBranchUpstream');
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
/** Handles `vcs.get_branch_upstream`. */
|
|
379
|
+
getBranchUpstream(
|
|
380
|
+
_params: VcsTypes.VcsGetBranchUpstreamParams,
|
|
381
|
+
_context: TContext,
|
|
382
|
+
): VcsHandlerResult<string | null> {
|
|
383
|
+
return this.unimplemented('getBranchUpstream');
|
|
384
|
+
}
|
|
385
|
+
|
|
386
|
+
/** Handles `vcs.hard_reset_head`. */
|
|
387
|
+
hardResetHead(
|
|
388
|
+
_params: VcsTypes.VcsSessionParams,
|
|
389
|
+
_context: TContext,
|
|
390
|
+
): VcsHandlerResult<null> {
|
|
391
|
+
return this.unimplemented('hardResetHead');
|
|
392
|
+
}
|
|
393
|
+
|
|
394
|
+
/** Handles `vcs.reset_soft_to`. */
|
|
395
|
+
resetSoftTo(
|
|
396
|
+
_params: VcsTypes.VcsResetSoftToParams,
|
|
397
|
+
_context: TContext,
|
|
398
|
+
): VcsHandlerResult<null> {
|
|
399
|
+
return this.unimplemented('resetSoftTo');
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
/** Handles `vcs.get_identity`. */
|
|
403
|
+
getIdentity(
|
|
404
|
+
_params: VcsTypes.VcsSessionParams,
|
|
405
|
+
_context: TContext,
|
|
406
|
+
): VcsHandlerResult<VcsTypes.VcsIdentity | null> {
|
|
407
|
+
return this.unimplemented('getIdentity');
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
/** Handles `vcs.set_identity_local`. */
|
|
411
|
+
setIdentityLocal(
|
|
412
|
+
_params: VcsTypes.VcsSetIdentityLocalParams,
|
|
413
|
+
_context: TContext,
|
|
414
|
+
): VcsHandlerResult<null> {
|
|
415
|
+
return this.unimplemented('setIdentityLocal');
|
|
416
|
+
}
|
|
417
|
+
|
|
418
|
+
/** Handles `vcs.list_stashes`. */
|
|
419
|
+
listStashes(
|
|
420
|
+
_params: VcsTypes.VcsSessionParams,
|
|
421
|
+
_context: TContext,
|
|
422
|
+
): VcsHandlerResult<VcsTypes.StashEntry[]> {
|
|
423
|
+
return this.unimplemented('listStashes');
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
/** Handles `vcs.stash_push`. */
|
|
427
|
+
stashPush(
|
|
428
|
+
_params: VcsTypes.VcsStashPushParams,
|
|
429
|
+
_context: TContext,
|
|
430
|
+
): VcsHandlerResult<string> {
|
|
431
|
+
return this.unimplemented('stashPush');
|
|
432
|
+
}
|
|
433
|
+
|
|
434
|
+
/** Handles `vcs.stash_apply`. */
|
|
435
|
+
stashApply(
|
|
436
|
+
_params: VcsTypes.VcsStashSelectorParams,
|
|
437
|
+
_context: TContext,
|
|
438
|
+
): VcsHandlerResult<null> {
|
|
439
|
+
return this.unimplemented('stashApply');
|
|
440
|
+
}
|
|
441
|
+
|
|
442
|
+
/** Handles `vcs.stash_pop`. */
|
|
443
|
+
stashPop(
|
|
444
|
+
_params: VcsTypes.VcsStashSelectorParams,
|
|
445
|
+
_context: TContext,
|
|
446
|
+
): VcsHandlerResult<null> {
|
|
447
|
+
return this.unimplemented('stashPop');
|
|
448
|
+
}
|
|
449
|
+
|
|
450
|
+
/** Handles `vcs.stash_drop`. */
|
|
451
|
+
stashDrop(
|
|
452
|
+
_params: VcsTypes.VcsStashSelectorParams,
|
|
453
|
+
_context: TContext,
|
|
454
|
+
): VcsHandlerResult<null> {
|
|
455
|
+
return this.unimplemented('stashDrop');
|
|
456
|
+
}
|
|
457
|
+
|
|
458
|
+
/** Handles `vcs.stash_show`. */
|
|
459
|
+
stashShow(
|
|
460
|
+
_params: VcsTypes.VcsStashSelectorParams,
|
|
461
|
+
_context: TContext,
|
|
462
|
+
): VcsHandlerResult<string> {
|
|
463
|
+
return this.unimplemented('stashShow');
|
|
464
|
+
}
|
|
465
|
+
|
|
466
|
+
/** Handles `vcs.cherry_pick`. */
|
|
467
|
+
cherryPick(
|
|
468
|
+
_params: VcsTypes.VcsCherryPickParams,
|
|
469
|
+
_context: TContext,
|
|
470
|
+
): VcsHandlerResult<null> {
|
|
471
|
+
return this.unimplemented('cherryPick');
|
|
472
|
+
}
|
|
473
|
+
|
|
474
|
+
/** Handles `vcs.revert_commit`. */
|
|
475
|
+
revertCommit(
|
|
476
|
+
_params: VcsTypes.VcsRevertCommitParams,
|
|
477
|
+
_context: TContext,
|
|
478
|
+
): VcsHandlerResult<null> {
|
|
479
|
+
return this.unimplemented('revertCommit');
|
|
480
|
+
}
|
|
481
|
+
}
|