@phpsandbox/sdk 0.0.30 → 0.0.32

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.
@@ -345,6 +345,8 @@ var PHPSandbox = (() => {
345
345
  Transport: () => Transport,
346
346
  createBeacon: () => createBeacon,
347
347
  isBeaconSupported: () => isBeaconSupported,
348
+ notebookBuiltinServices: () => notebookBuiltinServices,
349
+ notebookKnownServices: () => notebookKnownServices,
348
350
  once: () => once,
349
351
  timeout: () => timeout
350
352
  });
@@ -1070,6 +1072,8 @@ var PHPSandbox = (() => {
1070
1072
  };
1071
1073
 
1072
1074
  // src/services.ts
1075
+ var notebookBuiltinServices = ["redis"];
1076
+ var notebookKnownServices = ["start", "nginx", ...notebookBuiltinServices];
1073
1077
  var Services = class {
1074
1078
  constructor(okra) {
1075
1079
  this.okra = okra;
@@ -1077,8 +1081,11 @@ var PHPSandbox = (() => {
1077
1081
  list() {
1078
1082
  return this.okra.invoke("service.list");
1079
1083
  }
1080
- run(name) {
1081
- return this.okra.invoke("service.run", { name });
1084
+ run(name, command) {
1085
+ return this.okra.invoke("service.run", {
1086
+ name,
1087
+ command
1088
+ });
1082
1089
  }
1083
1090
  stop(name) {
1084
1091
  return this.okra.invoke("service.stop", { name });