@phpsandbox/sdk 0.0.46 → 0.0.48

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.
@@ -4097,6 +4097,33 @@ var PHPSandbox = (() => {
4097
4097
  log(ref = "main") {
4098
4098
  return this.okra.invoke("git.log", { ref });
4099
4099
  }
4100
+ diff(input) {
4101
+ return this.okra.invoke("git.diff", input);
4102
+ }
4103
+ merge(input) {
4104
+ return this.okra.invoke("git.merge", input);
4105
+ }
4106
+ conflicts() {
4107
+ return this.okra.invoke("git.conflicts", {});
4108
+ }
4109
+ abortMerge() {
4110
+ return this.okra.invoke("git.resolve", { action: "abort" });
4111
+ }
4112
+ continueMerge(author, message) {
4113
+ return this.okra.invoke("git.resolve", { action: "continue", author, message });
4114
+ }
4115
+ review() {
4116
+ return this.okra.invoke("git.review", {});
4117
+ }
4118
+ stage(input = { all: true }) {
4119
+ return this.okra.invoke("git.stage", input);
4120
+ }
4121
+ unstage(input = { all: true }) {
4122
+ return this.okra.invoke("git.unstage", input);
4123
+ }
4124
+ revert(input) {
4125
+ return this.okra.invoke("git.revert", input);
4126
+ }
4100
4127
  restore(ref) {
4101
4128
  return this.okra.invoke("git.restore", { ref });
4102
4129
  }
@@ -4883,8 +4910,8 @@ var PHPSandbox = (() => {
4883
4910
  async delete(id) {
4884
4911
  await this.client.delete(`/notebook/${id}`);
4885
4912
  }
4886
- async fork(id) {
4887
- const response = await this.client.post(`/notebook/${id}/fork`);
4913
+ async fork(id, input = {}) {
4914
+ const response = await this.client.post(`/notebook/${id}/fork`, input);
4888
4915
  return this.init(new NotebookInstance(response.data, this.client));
4889
4916
  }
4890
4917
  async open(id) {
@@ -5069,8 +5096,8 @@ var PHPSandbox = (() => {
5069
5096
  };
5070
5097
  return ready();
5071
5098
  }
5072
- fork() {
5073
- return this.client.notebook.fork(this.data.id);
5099
+ fork(input = {}) {
5100
+ return this.client.notebook.fork(this.data.id, input);
5074
5101
  }
5075
5102
  delete() {
5076
5103
  return this.client.notebook.delete(this.data.id).then(() => {