@openvcs/sdk 0.2.18-edge.20260420.21 → 0.2.18-edge.20260422.24
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/lib/runtime/vcs-delegate-base.d.ts +2 -0
- package/lib/runtime/vcs-delegate-base.js +4 -0
- package/lib/runtime/vcs-delegate-metadata.d.ts +2 -0
- package/lib/runtime/vcs-delegate-metadata.js +1 -0
- package/lib/types/vcs.d.ts +7 -0
- package/package.json +1 -1
- package/src/lib/runtime/vcs-delegate-base.ts +8 -0
- package/src/lib/runtime/vcs-delegate-metadata.ts +2 -0
- package/src/lib/types/vcs.ts +8 -0
|
@@ -77,6 +77,8 @@ export declare abstract class VcsDelegateBase<TDeps, TContext = PluginRuntimeCon
|
|
|
77
77
|
writeMergeResult(_params: VcsTypes.VcsWriteMergeResultParams, _context: TContext): VcsHandlerResult<null>;
|
|
78
78
|
/** Handles `vcs.stage_patch`. */
|
|
79
79
|
stagePatch(_params: VcsTypes.VcsStagePatchParams, _context: TContext): VcsHandlerResult<null>;
|
|
80
|
+
/** Handles `vcs.stage_paths`. */
|
|
81
|
+
stagePaths(_params: VcsTypes.VcsStagePathsParams, _context: TContext): VcsHandlerResult<null>;
|
|
80
82
|
/** Handles `vcs.discard_paths`. */
|
|
81
83
|
discardPaths(_params: VcsTypes.VcsDiscardPathsParams, _context: TContext): VcsHandlerResult<null>;
|
|
82
84
|
/** Handles `vcs.apply_reverse_patch`. */
|
|
@@ -157,6 +157,10 @@ class VcsDelegateBase {
|
|
|
157
157
|
stagePatch(_params, _context) {
|
|
158
158
|
return this.unimplemented('stagePatch');
|
|
159
159
|
}
|
|
160
|
+
/** Handles `vcs.stage_paths`. */
|
|
161
|
+
stagePaths(_params, _context) {
|
|
162
|
+
return this.unimplemented('stagePaths');
|
|
163
|
+
}
|
|
160
164
|
/** Handles `vcs.discard_paths`. */
|
|
161
165
|
discardPaths(_params, _context) {
|
|
162
166
|
return this.unimplemented('discardPaths');
|
|
@@ -30,6 +30,7 @@ export type VcsDelegateBindings<TContext> = {
|
|
|
30
30
|
checkoutConflictSide: NonNullable<VcsTypes.VcsDelegates<TContext>['vcs.checkout_conflict_side']>;
|
|
31
31
|
writeMergeResult: NonNullable<VcsTypes.VcsDelegates<TContext>['vcs.write_merge_result']>;
|
|
32
32
|
stagePatch: NonNullable<VcsTypes.VcsDelegates<TContext>['vcs.stage_patch']>;
|
|
33
|
+
stagePaths: NonNullable<VcsTypes.VcsDelegates<TContext>['vcs.stage_paths']>;
|
|
33
34
|
discardPaths: NonNullable<VcsTypes.VcsDelegates<TContext>['vcs.discard_paths']>;
|
|
34
35
|
applyReversePatch: NonNullable<VcsTypes.VcsDelegates<TContext>['vcs.apply_reverse_patch']>;
|
|
35
36
|
deleteBranch: NonNullable<VcsTypes.VcsDelegates<TContext>['vcs.delete_branch']>;
|
|
@@ -85,6 +86,7 @@ export declare const VCS_DELEGATE_METHOD_MAPPINGS: {
|
|
|
85
86
|
readonly checkoutConflictSide: "vcs.checkout_conflict_side";
|
|
86
87
|
readonly writeMergeResult: "vcs.write_merge_result";
|
|
87
88
|
readonly stagePatch: "vcs.stage_patch";
|
|
89
|
+
readonly stagePaths: "vcs.stage_paths";
|
|
88
90
|
readonly discardPaths: "vcs.discard_paths";
|
|
89
91
|
readonly applyReversePatch: "vcs.apply_reverse_patch";
|
|
90
92
|
readonly deleteBranch: "vcs.delete_branch";
|
|
@@ -33,6 +33,7 @@ exports.VCS_DELEGATE_METHOD_MAPPINGS = {
|
|
|
33
33
|
checkoutConflictSide: 'vcs.checkout_conflict_side',
|
|
34
34
|
writeMergeResult: 'vcs.write_merge_result',
|
|
35
35
|
stagePatch: 'vcs.stage_patch',
|
|
36
|
+
stagePaths: 'vcs.stage_paths',
|
|
36
37
|
discardPaths: 'vcs.discard_paths',
|
|
37
38
|
applyReversePatch: 'vcs.apply_reverse_patch',
|
|
38
39
|
deleteBranch: 'vcs.delete_branch',
|
package/lib/types/vcs.d.ts
CHANGED
|
@@ -261,6 +261,11 @@ export interface VcsStagePatchParams extends VcsSessionParams {
|
|
|
261
261
|
/** Stores the textual patch content. */
|
|
262
262
|
patch: string;
|
|
263
263
|
}
|
|
264
|
+
/** Describes params for staging repository-relative paths into the index. */
|
|
265
|
+
export interface VcsStagePathsParams extends VcsSessionParams {
|
|
266
|
+
/** Stores the paths to stage. */
|
|
267
|
+
paths?: string[];
|
|
268
|
+
}
|
|
264
269
|
/** Describes params for discarding path changes. */
|
|
265
270
|
export interface VcsDiscardPathsParams extends VcsSessionParams {
|
|
266
271
|
/** Stores the paths to discard. */
|
|
@@ -424,6 +429,8 @@ export interface VcsDelegates<TContext = unknown> {
|
|
|
424
429
|
'vcs.write_merge_result'?: RpcMethodHandler<VcsWriteMergeResultParams, null, TContext>;
|
|
425
430
|
/** Handles `vcs.stage_patch`. */
|
|
426
431
|
'vcs.stage_patch'?: RpcMethodHandler<VcsStagePatchParams, null, TContext>;
|
|
432
|
+
/** Handles `vcs.stage_paths`. */
|
|
433
|
+
'vcs.stage_paths'?: RpcMethodHandler<VcsStagePathsParams, null, TContext>;
|
|
427
434
|
/** Handles `vcs.discard_paths`. */
|
|
428
435
|
'vcs.discard_paths'?: RpcMethodHandler<VcsDiscardPathsParams, null, TContext>;
|
|
429
436
|
/** Handles `vcs.apply_reverse_patch`. */
|
package/package.json
CHANGED
|
@@ -303,6 +303,14 @@ export abstract class VcsDelegateBase<
|
|
|
303
303
|
return this.unimplemented('stagePatch');
|
|
304
304
|
}
|
|
305
305
|
|
|
306
|
+
/** Handles `vcs.stage_paths`. */
|
|
307
|
+
stagePaths(
|
|
308
|
+
_params: VcsTypes.VcsStagePathsParams,
|
|
309
|
+
_context: TContext,
|
|
310
|
+
): VcsHandlerResult<null> {
|
|
311
|
+
return this.unimplemented('stagePaths');
|
|
312
|
+
}
|
|
313
|
+
|
|
306
314
|
/** Handles `vcs.discard_paths`. */
|
|
307
315
|
discardPaths(
|
|
308
316
|
_params: VcsTypes.VcsDiscardPathsParams,
|
|
@@ -53,6 +53,7 @@ export type VcsDelegateBindings<TContext> = {
|
|
|
53
53
|
VcsTypes.VcsDelegates<TContext>['vcs.write_merge_result']
|
|
54
54
|
>;
|
|
55
55
|
stagePatch: NonNullable<VcsTypes.VcsDelegates<TContext>['vcs.stage_patch']>;
|
|
56
|
+
stagePaths: NonNullable<VcsTypes.VcsDelegates<TContext>['vcs.stage_paths']>;
|
|
56
57
|
discardPaths: NonNullable<VcsTypes.VcsDelegates<TContext>['vcs.discard_paths']>;
|
|
57
58
|
applyReversePatch: NonNullable<
|
|
58
59
|
VcsTypes.VcsDelegates<TContext>['vcs.apply_reverse_patch']
|
|
@@ -122,6 +123,7 @@ export const VCS_DELEGATE_METHOD_MAPPINGS = {
|
|
|
122
123
|
checkoutConflictSide: 'vcs.checkout_conflict_side',
|
|
123
124
|
writeMergeResult: 'vcs.write_merge_result',
|
|
124
125
|
stagePatch: 'vcs.stage_patch',
|
|
126
|
+
stagePaths: 'vcs.stage_paths',
|
|
125
127
|
discardPaths: 'vcs.discard_paths',
|
|
126
128
|
applyReversePatch: 'vcs.apply_reverse_patch',
|
|
127
129
|
deleteBranch: 'vcs.delete_branch',
|
package/src/lib/types/vcs.ts
CHANGED
|
@@ -298,6 +298,12 @@ export interface VcsStagePatchParams extends VcsSessionParams {
|
|
|
298
298
|
patch: string;
|
|
299
299
|
}
|
|
300
300
|
|
|
301
|
+
/** Describes params for staging repository-relative paths into the index. */
|
|
302
|
+
export interface VcsStagePathsParams extends VcsSessionParams {
|
|
303
|
+
/** Stores the paths to stage. */
|
|
304
|
+
paths?: string[];
|
|
305
|
+
}
|
|
306
|
+
|
|
301
307
|
/** Describes params for discarding path changes. */
|
|
302
308
|
export interface VcsDiscardPathsParams extends VcsSessionParams {
|
|
303
309
|
/** Stores the paths to discard. */
|
|
@@ -518,6 +524,8 @@ export interface VcsDelegates<TContext = unknown> {
|
|
|
518
524
|
>;
|
|
519
525
|
/** Handles `vcs.stage_patch`. */
|
|
520
526
|
'vcs.stage_patch'?: RpcMethodHandler<VcsStagePatchParams, null, TContext>;
|
|
527
|
+
/** Handles `vcs.stage_paths`. */
|
|
528
|
+
'vcs.stage_paths'?: RpcMethodHandler<VcsStagePathsParams, null, TContext>;
|
|
521
529
|
/** Handles `vcs.discard_paths`. */
|
|
522
530
|
'vcs.discard_paths'?: RpcMethodHandler<VcsDiscardPathsParams, null, TContext>;
|
|
523
531
|
/** Handles `vcs.apply_reverse_patch`. */
|