@phpsandbox/sdk 0.0.17 → 0.0.18

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.
@@ -3821,8 +3821,11 @@ var PHPSandbox = (() => {
3821
3821
  constructor(okra) {
3822
3822
  this.okra = okra;
3823
3823
  }
3824
- checkpoint(author, message, branch = "main") {
3825
- return this.okra.invoke("git.checkpoint", { author, message, branch });
3824
+ checkpoint(author, message, branch = "main", allowEmpty = false) {
3825
+ return this.okra.invoke("git.checkpoint", { author, message, branch, allowEmpty });
3826
+ }
3827
+ checkout(branch, create = true) {
3828
+ return this.okra.invoke("git.checkout", { branch, create });
3826
3829
  }
3827
3830
  sync(url, author, ref = "main", token, direction = "both", force = false) {
3828
3831
  return this.okra.invoke("git.sync", { url, author, ref, token, direction, force });
@@ -3833,6 +3836,9 @@ var PHPSandbox = (() => {
3833
3836
  restore(ref) {
3834
3837
  return this.okra.invoke("git.restore", { ref });
3835
3838
  }
3839
+ status() {
3840
+ return this.okra.invoke("git.status", {});
3841
+ }
3836
3842
  };
3837
3843
 
3838
3844
  // src/beacon/index.ts