@openvcs/sdk 0.2.6 → 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.
@@ -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<VcsSessionParams, null, TContext>;
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<VcsSessionParams, null, TContext>;
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.6",
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/",
@@ -238,6 +238,8 @@ export interface CommitEntry {
238
238
  author: string;
239
239
  /** Stores the formatted metadata string. */
240
240
  meta: string;
241
+ /** Stores the first parent commit id when available. */
242
+ parent_oid?: string;
241
243
  }
242
244
 
243
245
  /** Describes params for `vcs.diff_file`. */
@@ -352,6 +354,18 @@ export interface VcsResetSoftToParams extends VcsSessionParams {
352
354
  rev: string;
353
355
  }
354
356
 
357
+ /** Describes params for continuing a merge in progress. */
358
+ export interface VcsMergeContinueParams extends VcsSessionParams {
359
+ /** Stores an optional commit message override. */
360
+ message?: string;
361
+ }
362
+
363
+ /** Describes params for hard resetting HEAD to a given ref. */
364
+ export interface VcsHardResetHeadParams extends VcsSessionParams {
365
+ /** Stores the ref to reset HEAD to; defaults to HEAD. */
366
+ ref?: string;
367
+ }
368
+
355
369
  /** Describes one configured author identity. */
356
370
  export interface VcsIdentity {
357
371
  /** Stores the configured author name. */
@@ -525,7 +539,7 @@ export interface VcsDelegates<TContext = unknown> {
525
539
  /** Handles `vcs.merge_abort`. */
526
540
  'vcs.merge_abort'?: RpcMethodHandler<VcsSessionParams, null, TContext>;
527
541
  /** Handles `vcs.merge_continue`. */
528
- 'vcs.merge_continue'?: RpcMethodHandler<VcsSessionParams, null, TContext>;
542
+ 'vcs.merge_continue'?: RpcMethodHandler<VcsMergeContinueParams, null, TContext>;
529
543
  /** Handles `vcs.is_merge_in_progress`. */
530
544
  'vcs.is_merge_in_progress'?: RpcMethodHandler<
531
545
  VcsSessionParams,
@@ -545,7 +559,7 @@ export interface VcsDelegates<TContext = unknown> {
545
559
  TContext
546
560
  >;
547
561
  /** Handles `vcs.hard_reset_head`. */
548
- 'vcs.hard_reset_head'?: RpcMethodHandler<VcsSessionParams, null, TContext>;
562
+ 'vcs.hard_reset_head'?: RpcMethodHandler<VcsHardResetHeadParams, null, TContext>;
549
563
  /** Handles `vcs.reset_soft_to`. */
550
564
  'vcs.reset_soft_to'?: RpcMethodHandler<VcsResetSoftToParams, null, TContext>;
551
565
  /** Handles `vcs.get_identity`. */