kurtosis-sdk 0.84.1 → 0.84.2

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.
@@ -23,6 +23,7 @@ interface IApiContainerServiceService extends grpc.ServiceDefinition<grpc.Untype
23
23
  listFilesArtifactNamesAndUuids: grpc.MethodDefinition<google_protobuf_empty_pb.Empty, api_container_service_pb.ListFilesArtifactNamesAndUuidsResponse>;
24
24
  inspectFilesArtifactContents: grpc.MethodDefinition<api_container_service_pb.InspectFilesArtifactContentsRequest, api_container_service_pb.InspectFilesArtifactContentsResponse>;
25
25
  connectServices: grpc.MethodDefinition<api_container_service_pb.ConnectServicesArgs, api_container_service_pb.ConnectServicesResponse>;
26
+ getStarlarkRun: grpc.MethodDefinition<google_protobuf_empty_pb.Empty, api_container_service_pb.GetStarlarkRunResponse>;
26
27
  }
27
28
 
28
29
  export const ApiContainerServiceService: IApiContainerServiceService;
@@ -43,6 +44,7 @@ export interface IApiContainerServiceServer extends grpc.UntypedServiceImplement
43
44
  listFilesArtifactNamesAndUuids: grpc.handleUnaryCall<google_protobuf_empty_pb.Empty, api_container_service_pb.ListFilesArtifactNamesAndUuidsResponse>;
44
45
  inspectFilesArtifactContents: grpc.handleUnaryCall<api_container_service_pb.InspectFilesArtifactContentsRequest, api_container_service_pb.InspectFilesArtifactContentsResponse>;
45
46
  connectServices: grpc.handleUnaryCall<api_container_service_pb.ConnectServicesArgs, api_container_service_pb.ConnectServicesResponse>;
47
+ getStarlarkRun: grpc.handleUnaryCall<google_protobuf_empty_pb.Empty, api_container_service_pb.GetStarlarkRunResponse>;
46
48
  }
47
49
 
48
50
  export class ApiContainerServiceClient extends grpc.Client {
@@ -89,4 +91,7 @@ export class ApiContainerServiceClient extends grpc.Client {
89
91
  connectServices(argument: api_container_service_pb.ConnectServicesArgs, callback: grpc.requestCallback<api_container_service_pb.ConnectServicesResponse>): grpc.ClientUnaryCall;
90
92
  connectServices(argument: api_container_service_pb.ConnectServicesArgs, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback<api_container_service_pb.ConnectServicesResponse>): grpc.ClientUnaryCall;
91
93
  connectServices(argument: api_container_service_pb.ConnectServicesArgs, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback<api_container_service_pb.ConnectServicesResponse>): grpc.ClientUnaryCall;
94
+ getStarlarkRun(argument: google_protobuf_empty_pb.Empty, callback: grpc.requestCallback<api_container_service_pb.GetStarlarkRunResponse>): grpc.ClientUnaryCall;
95
+ getStarlarkRun(argument: google_protobuf_empty_pb.Empty, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback<api_container_service_pb.GetStarlarkRunResponse>): grpc.ClientUnaryCall;
96
+ getStarlarkRun(argument: google_protobuf_empty_pb.Empty, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback<api_container_service_pb.GetStarlarkRunResponse>): grpc.ClientUnaryCall;
92
97
  }
@@ -93,6 +93,17 @@ function deserialize_api_container_api_GetServicesResponse(buffer_arg) {
93
93
  return api_container_service_pb.GetServicesResponse.deserializeBinary(new Uint8Array(buffer_arg));
94
94
  }
95
95
 
96
+ function serialize_api_container_api_GetStarlarkRunResponse(arg) {
97
+ if (!(arg instanceof api_container_service_pb.GetStarlarkRunResponse)) {
98
+ throw new Error('Expected argument of type api_container_api.GetStarlarkRunResponse');
99
+ }
100
+ return Buffer.from(arg.serializeBinary());
101
+ }
102
+
103
+ function deserialize_api_container_api_GetStarlarkRunResponse(buffer_arg) {
104
+ return api_container_service_pb.GetStarlarkRunResponse.deserializeBinary(new Uint8Array(buffer_arg));
105
+ }
106
+
96
107
  function serialize_api_container_api_InspectFilesArtifactContentsRequest(arg) {
97
108
  if (!(arg instanceof api_container_service_pb.InspectFilesArtifactContentsRequest)) {
98
109
  throw new Error('Expected argument of type api_container_api.InspectFilesArtifactContentsRequest');
@@ -438,6 +449,18 @@ connectServices: {
438
449
  responseSerialize: serialize_api_container_api_ConnectServicesResponse,
439
450
  responseDeserialize: deserialize_api_container_api_ConnectServicesResponse,
440
451
  },
452
+ // Get last Starlark run
453
+ getStarlarkRun: {
454
+ path: '/api_container_api.ApiContainerService/GetStarlarkRun',
455
+ requestStream: false,
456
+ responseStream: false,
457
+ requestType: google_protobuf_empty_pb.Empty,
458
+ responseType: api_container_service_pb.GetStarlarkRunResponse,
459
+ requestSerialize: serialize_google_protobuf_Empty,
460
+ requestDeserialize: deserialize_google_protobuf_Empty,
461
+ responseSerialize: serialize_api_container_api_GetStarlarkRunResponse,
462
+ responseDeserialize: deserialize_api_container_api_GetStarlarkRunResponse,
463
+ },
441
464
  };
442
465
 
443
466
  exports.ApiContainerServiceClient = grpc.makeGenericClientConstructor(ApiContainerServiceService);
@@ -94,6 +94,13 @@ export class ApiContainerServiceClient {
94
94
  response: api_container_service_pb.ConnectServicesResponse) => void
95
95
  ): grpcWeb.ClientReadableStream<api_container_service_pb.ConnectServicesResponse>;
96
96
 
97
+ getStarlarkRun(
98
+ request: google_protobuf_empty_pb.Empty,
99
+ metadata: grpcWeb.Metadata | undefined,
100
+ callback: (err: grpcWeb.RpcError,
101
+ response: api_container_service_pb.GetStarlarkRunResponse) => void
102
+ ): grpcWeb.ClientReadableStream<api_container_service_pb.GetStarlarkRunResponse>;
103
+
97
104
  }
98
105
 
99
106
  export class ApiContainerServicePromiseClient {
@@ -166,5 +173,10 @@ export class ApiContainerServicePromiseClient {
166
173
  metadata?: grpcWeb.Metadata
167
174
  ): Promise<api_container_service_pb.ConnectServicesResponse>;
168
175
 
176
+ getStarlarkRun(
177
+ request: google_protobuf_empty_pb.Empty,
178
+ metadata?: grpcWeb.Metadata
179
+ ): Promise<api_container_service_pb.GetStarlarkRunResponse>;
180
+
169
181
  }
170
182
 
@@ -854,5 +854,66 @@ proto.api_container_api.ApiContainerServicePromiseClient.prototype.connectServic
854
854
  };
855
855
 
856
856
 
857
+ /**
858
+ * @const
859
+ * @type {!grpc.web.MethodDescriptor<
860
+ * !proto.google.protobuf.Empty,
861
+ * !proto.api_container_api.GetStarlarkRunResponse>}
862
+ */
863
+ const methodDescriptor_ApiContainerService_GetStarlarkRun = new grpc.web.MethodDescriptor(
864
+ '/api_container_api.ApiContainerService/GetStarlarkRun',
865
+ grpc.web.MethodType.UNARY,
866
+ google_protobuf_empty_pb.Empty,
867
+ proto.api_container_api.GetStarlarkRunResponse,
868
+ /**
869
+ * @param {!proto.google.protobuf.Empty} request
870
+ * @return {!Uint8Array}
871
+ */
872
+ function(request) {
873
+ return request.serializeBinary();
874
+ },
875
+ proto.api_container_api.GetStarlarkRunResponse.deserializeBinary
876
+ );
877
+
878
+
879
+ /**
880
+ * @param {!proto.google.protobuf.Empty} request The
881
+ * request proto
882
+ * @param {?Object<string, string>} metadata User defined
883
+ * call metadata
884
+ * @param {function(?grpc.web.RpcError, ?proto.api_container_api.GetStarlarkRunResponse)}
885
+ * callback The callback function(error, response)
886
+ * @return {!grpc.web.ClientReadableStream<!proto.api_container_api.GetStarlarkRunResponse>|undefined}
887
+ * The XHR Node Readable Stream
888
+ */
889
+ proto.api_container_api.ApiContainerServiceClient.prototype.getStarlarkRun =
890
+ function(request, metadata, callback) {
891
+ return this.client_.rpcCall(this.hostname_ +
892
+ '/api_container_api.ApiContainerService/GetStarlarkRun',
893
+ request,
894
+ metadata || {},
895
+ methodDescriptor_ApiContainerService_GetStarlarkRun,
896
+ callback);
897
+ };
898
+
899
+
900
+ /**
901
+ * @param {!proto.google.protobuf.Empty} request The
902
+ * request proto
903
+ * @param {?Object<string, string>=} metadata User defined
904
+ * call metadata
905
+ * @return {!Promise<!proto.api_container_api.GetStarlarkRunResponse>}
906
+ * Promise that resolves to the response
907
+ */
908
+ proto.api_container_api.ApiContainerServicePromiseClient.prototype.getStarlarkRun =
909
+ function(request, metadata) {
910
+ return this.client_.unaryCall(this.hostname_ +
911
+ '/api_container_api.ApiContainerService/GetStarlarkRun',
912
+ request,
913
+ metadata || {},
914
+ methodDescriptor_ApiContainerService_GetStarlarkRun);
915
+ };
916
+
917
+
857
918
  module.exports = proto.api_container_api;
858
919
 
@@ -1227,6 +1227,54 @@ export namespace ConnectServicesResponse {
1227
1227
  }
1228
1228
  }
1229
1229
 
1230
+ export class GetStarlarkRunResponse extends jspb.Message {
1231
+ getPackageId(): string;
1232
+ setPackageId(value: string): GetStarlarkRunResponse;
1233
+
1234
+ getSerializedScript(): string;
1235
+ setSerializedScript(value: string): GetStarlarkRunResponse;
1236
+
1237
+ getSerializedParams(): string;
1238
+ setSerializedParams(value: string): GetStarlarkRunResponse;
1239
+
1240
+ getParallelism(): number;
1241
+ setParallelism(value: number): GetStarlarkRunResponse;
1242
+
1243
+ getRelativePathToMainFile(): string;
1244
+ setRelativePathToMainFile(value: string): GetStarlarkRunResponse;
1245
+
1246
+ getMainFunctionName(): string;
1247
+ setMainFunctionName(value: string): GetStarlarkRunResponse;
1248
+
1249
+ getExperimentalFeaturesList(): Array<KurtosisFeatureFlag>;
1250
+ setExperimentalFeaturesList(value: Array<KurtosisFeatureFlag>): GetStarlarkRunResponse;
1251
+ clearExperimentalFeaturesList(): GetStarlarkRunResponse;
1252
+ addExperimentalFeatures(value: KurtosisFeatureFlag, index?: number): GetStarlarkRunResponse;
1253
+
1254
+ getRestartPolicy(): RestartPolicy;
1255
+ setRestartPolicy(value: RestartPolicy): GetStarlarkRunResponse;
1256
+
1257
+ serializeBinary(): Uint8Array;
1258
+ toObject(includeInstance?: boolean): GetStarlarkRunResponse.AsObject;
1259
+ static toObject(includeInstance: boolean, msg: GetStarlarkRunResponse): GetStarlarkRunResponse.AsObject;
1260
+ static serializeBinaryToWriter(message: GetStarlarkRunResponse, writer: jspb.BinaryWriter): void;
1261
+ static deserializeBinary(bytes: Uint8Array): GetStarlarkRunResponse;
1262
+ static deserializeBinaryFromReader(message: GetStarlarkRunResponse, reader: jspb.BinaryReader): GetStarlarkRunResponse;
1263
+ }
1264
+
1265
+ export namespace GetStarlarkRunResponse {
1266
+ export type AsObject = {
1267
+ packageId: string,
1268
+ serializedScript: string,
1269
+ serializedParams: string,
1270
+ parallelism: number,
1271
+ relativePathToMainFile: string,
1272
+ mainFunctionName: string,
1273
+ experimentalFeaturesList: Array<KurtosisFeatureFlag>,
1274
+ restartPolicy: RestartPolicy,
1275
+ }
1276
+ }
1277
+
1230
1278
  export enum ServiceStatus {
1231
1279
  STOPPED = 0,
1232
1280
  RUNNING = 1,
@@ -1239,3 +1287,7 @@ export enum Connect {
1239
1287
  export enum KurtosisFeatureFlag {
1240
1288
  NO_INSTRUCTIONS_CACHING = 0,
1241
1289
  }
1290
+ export enum RestartPolicy {
1291
+ NEVER = 0,
1292
+ ALWAYS = 1,
1293
+ }
@@ -37,12 +37,14 @@ goog.exportSymbol('proto.api_container_api.FilesArtifactNameAndUuid', null, glob
37
37
  goog.exportSymbol('proto.api_container_api.GetExistingAndHistoricalServiceIdentifiersResponse', null, global);
38
38
  goog.exportSymbol('proto.api_container_api.GetServicesArgs', null, global);
39
39
  goog.exportSymbol('proto.api_container_api.GetServicesResponse', null, global);
40
+ goog.exportSymbol('proto.api_container_api.GetStarlarkRunResponse', null, global);
40
41
  goog.exportSymbol('proto.api_container_api.InspectFilesArtifactContentsRequest', null, global);
41
42
  goog.exportSymbol('proto.api_container_api.InspectFilesArtifactContentsResponse', null, global);
42
43
  goog.exportSymbol('proto.api_container_api.KurtosisFeatureFlag', null, global);
43
44
  goog.exportSymbol('proto.api_container_api.ListFilesArtifactNamesAndUuidsResponse', null, global);
44
45
  goog.exportSymbol('proto.api_container_api.Port', null, global);
45
46
  goog.exportSymbol('proto.api_container_api.Port.TransportProtocol', null, global);
47
+ goog.exportSymbol('proto.api_container_api.RestartPolicy', null, global);
46
48
  goog.exportSymbol('proto.api_container_api.RunStarlarkPackageArgs', null, global);
47
49
  goog.exportSymbol('proto.api_container_api.RunStarlarkPackageArgs.StarlarkPackageContentCase', null, global);
48
50
  goog.exportSymbol('proto.api_container_api.RunStarlarkScriptArgs', null, global);
@@ -933,6 +935,27 @@ if (goog.DEBUG && !COMPILED) {
933
935
  */
934
936
  proto.api_container_api.ConnectServicesResponse.displayName = 'proto.api_container_api.ConnectServicesResponse';
935
937
  }
938
+ /**
939
+ * Generated by JsPbCodeGenerator.
940
+ * @param {Array=} opt_data Optional initial data array, typically from a
941
+ * server response, or constructed directly in Javascript. The array is used
942
+ * in place and becomes part of the constructed object. It is not cloned.
943
+ * If no data is provided, the constructed object will be empty, but still
944
+ * valid.
945
+ * @extends {jspb.Message}
946
+ * @constructor
947
+ */
948
+ proto.api_container_api.GetStarlarkRunResponse = function(opt_data) {
949
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.api_container_api.GetStarlarkRunResponse.repeatedFields_, null);
950
+ };
951
+ goog.inherits(proto.api_container_api.GetStarlarkRunResponse, jspb.Message);
952
+ if (goog.DEBUG && !COMPILED) {
953
+ /**
954
+ * @public
955
+ * @override
956
+ */
957
+ proto.api_container_api.GetStarlarkRunResponse.displayName = 'proto.api_container_api.GetStarlarkRunResponse';
958
+ }
936
959
 
937
960
 
938
961
 
@@ -9558,6 +9581,374 @@ proto.api_container_api.ConnectServicesResponse.serializeBinaryToWriter = functi
9558
9581
  };
9559
9582
 
9560
9583
 
9584
+
9585
+ /**
9586
+ * List of repeated fields within this message type.
9587
+ * @private {!Array<number>}
9588
+ * @const
9589
+ */
9590
+ proto.api_container_api.GetStarlarkRunResponse.repeatedFields_ = [7];
9591
+
9592
+
9593
+
9594
+ if (jspb.Message.GENERATE_TO_OBJECT) {
9595
+ /**
9596
+ * Creates an object representation of this proto.
9597
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
9598
+ * Optional fields that are not set will be set to undefined.
9599
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
9600
+ * For the list of reserved names please see:
9601
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
9602
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
9603
+ * JSPB instance for transitional soy proto support:
9604
+ * http://goto/soy-param-migration
9605
+ * @return {!Object}
9606
+ */
9607
+ proto.api_container_api.GetStarlarkRunResponse.prototype.toObject = function(opt_includeInstance) {
9608
+ return proto.api_container_api.GetStarlarkRunResponse.toObject(opt_includeInstance, this);
9609
+ };
9610
+
9611
+
9612
+ /**
9613
+ * Static version of the {@see toObject} method.
9614
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
9615
+ * the JSPB instance for transitional soy proto support:
9616
+ * http://goto/soy-param-migration
9617
+ * @param {!proto.api_container_api.GetStarlarkRunResponse} msg The msg instance to transform.
9618
+ * @return {!Object}
9619
+ * @suppress {unusedLocalVariables} f is only used for nested messages
9620
+ */
9621
+ proto.api_container_api.GetStarlarkRunResponse.toObject = function(includeInstance, msg) {
9622
+ var f, obj = {
9623
+ packageId: jspb.Message.getFieldWithDefault(msg, 1, ""),
9624
+ serializedScript: jspb.Message.getFieldWithDefault(msg, 2, ""),
9625
+ serializedParams: jspb.Message.getFieldWithDefault(msg, 3, ""),
9626
+ parallelism: jspb.Message.getFieldWithDefault(msg, 4, 0),
9627
+ relativePathToMainFile: jspb.Message.getFieldWithDefault(msg, 5, ""),
9628
+ mainFunctionName: jspb.Message.getFieldWithDefault(msg, 6, ""),
9629
+ experimentalFeaturesList: (f = jspb.Message.getRepeatedField(msg, 7)) == null ? undefined : f,
9630
+ restartPolicy: jspb.Message.getFieldWithDefault(msg, 8, 0)
9631
+ };
9632
+
9633
+ if (includeInstance) {
9634
+ obj.$jspbMessageInstance = msg;
9635
+ }
9636
+ return obj;
9637
+ };
9638
+ }
9639
+
9640
+
9641
+ /**
9642
+ * Deserializes binary data (in protobuf wire format).
9643
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
9644
+ * @return {!proto.api_container_api.GetStarlarkRunResponse}
9645
+ */
9646
+ proto.api_container_api.GetStarlarkRunResponse.deserializeBinary = function(bytes) {
9647
+ var reader = new jspb.BinaryReader(bytes);
9648
+ var msg = new proto.api_container_api.GetStarlarkRunResponse;
9649
+ return proto.api_container_api.GetStarlarkRunResponse.deserializeBinaryFromReader(msg, reader);
9650
+ };
9651
+
9652
+
9653
+ /**
9654
+ * Deserializes binary data (in protobuf wire format) from the
9655
+ * given reader into the given message object.
9656
+ * @param {!proto.api_container_api.GetStarlarkRunResponse} msg The message object to deserialize into.
9657
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
9658
+ * @return {!proto.api_container_api.GetStarlarkRunResponse}
9659
+ */
9660
+ proto.api_container_api.GetStarlarkRunResponse.deserializeBinaryFromReader = function(msg, reader) {
9661
+ while (reader.nextField()) {
9662
+ if (reader.isEndGroup()) {
9663
+ break;
9664
+ }
9665
+ var field = reader.getFieldNumber();
9666
+ switch (field) {
9667
+ case 1:
9668
+ var value = /** @type {string} */ (reader.readString());
9669
+ msg.setPackageId(value);
9670
+ break;
9671
+ case 2:
9672
+ var value = /** @type {string} */ (reader.readString());
9673
+ msg.setSerializedScript(value);
9674
+ break;
9675
+ case 3:
9676
+ var value = /** @type {string} */ (reader.readString());
9677
+ msg.setSerializedParams(value);
9678
+ break;
9679
+ case 4:
9680
+ var value = /** @type {number} */ (reader.readInt32());
9681
+ msg.setParallelism(value);
9682
+ break;
9683
+ case 5:
9684
+ var value = /** @type {string} */ (reader.readString());
9685
+ msg.setRelativePathToMainFile(value);
9686
+ break;
9687
+ case 6:
9688
+ var value = /** @type {string} */ (reader.readString());
9689
+ msg.setMainFunctionName(value);
9690
+ break;
9691
+ case 7:
9692
+ var values = /** @type {!Array<!proto.api_container_api.KurtosisFeatureFlag>} */ (reader.isDelimited() ? reader.readPackedEnum() : [reader.readEnum()]);
9693
+ for (var i = 0; i < values.length; i++) {
9694
+ msg.addExperimentalFeatures(values[i]);
9695
+ }
9696
+ break;
9697
+ case 8:
9698
+ var value = /** @type {!proto.api_container_api.RestartPolicy} */ (reader.readEnum());
9699
+ msg.setRestartPolicy(value);
9700
+ break;
9701
+ default:
9702
+ reader.skipField();
9703
+ break;
9704
+ }
9705
+ }
9706
+ return msg;
9707
+ };
9708
+
9709
+
9710
+ /**
9711
+ * Serializes the message to binary data (in protobuf wire format).
9712
+ * @return {!Uint8Array}
9713
+ */
9714
+ proto.api_container_api.GetStarlarkRunResponse.prototype.serializeBinary = function() {
9715
+ var writer = new jspb.BinaryWriter();
9716
+ proto.api_container_api.GetStarlarkRunResponse.serializeBinaryToWriter(this, writer);
9717
+ return writer.getResultBuffer();
9718
+ };
9719
+
9720
+
9721
+ /**
9722
+ * Serializes the given message to binary data (in protobuf wire
9723
+ * format), writing to the given BinaryWriter.
9724
+ * @param {!proto.api_container_api.GetStarlarkRunResponse} message
9725
+ * @param {!jspb.BinaryWriter} writer
9726
+ * @suppress {unusedLocalVariables} f is only used for nested messages
9727
+ */
9728
+ proto.api_container_api.GetStarlarkRunResponse.serializeBinaryToWriter = function(message, writer) {
9729
+ var f = undefined;
9730
+ f = message.getPackageId();
9731
+ if (f.length > 0) {
9732
+ writer.writeString(
9733
+ 1,
9734
+ f
9735
+ );
9736
+ }
9737
+ f = message.getSerializedScript();
9738
+ if (f.length > 0) {
9739
+ writer.writeString(
9740
+ 2,
9741
+ f
9742
+ );
9743
+ }
9744
+ f = message.getSerializedParams();
9745
+ if (f.length > 0) {
9746
+ writer.writeString(
9747
+ 3,
9748
+ f
9749
+ );
9750
+ }
9751
+ f = message.getParallelism();
9752
+ if (f !== 0) {
9753
+ writer.writeInt32(
9754
+ 4,
9755
+ f
9756
+ );
9757
+ }
9758
+ f = message.getRelativePathToMainFile();
9759
+ if (f.length > 0) {
9760
+ writer.writeString(
9761
+ 5,
9762
+ f
9763
+ );
9764
+ }
9765
+ f = message.getMainFunctionName();
9766
+ if (f.length > 0) {
9767
+ writer.writeString(
9768
+ 6,
9769
+ f
9770
+ );
9771
+ }
9772
+ f = message.getExperimentalFeaturesList();
9773
+ if (f.length > 0) {
9774
+ writer.writePackedEnum(
9775
+ 7,
9776
+ f
9777
+ );
9778
+ }
9779
+ f = message.getRestartPolicy();
9780
+ if (f !== 0.0) {
9781
+ writer.writeEnum(
9782
+ 8,
9783
+ f
9784
+ );
9785
+ }
9786
+ };
9787
+
9788
+
9789
+ /**
9790
+ * optional string package_id = 1;
9791
+ * @return {string}
9792
+ */
9793
+ proto.api_container_api.GetStarlarkRunResponse.prototype.getPackageId = function() {
9794
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
9795
+ };
9796
+
9797
+
9798
+ /**
9799
+ * @param {string} value
9800
+ * @return {!proto.api_container_api.GetStarlarkRunResponse} returns this
9801
+ */
9802
+ proto.api_container_api.GetStarlarkRunResponse.prototype.setPackageId = function(value) {
9803
+ return jspb.Message.setProto3StringField(this, 1, value);
9804
+ };
9805
+
9806
+
9807
+ /**
9808
+ * optional string serialized_script = 2;
9809
+ * @return {string}
9810
+ */
9811
+ proto.api_container_api.GetStarlarkRunResponse.prototype.getSerializedScript = function() {
9812
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
9813
+ };
9814
+
9815
+
9816
+ /**
9817
+ * @param {string} value
9818
+ * @return {!proto.api_container_api.GetStarlarkRunResponse} returns this
9819
+ */
9820
+ proto.api_container_api.GetStarlarkRunResponse.prototype.setSerializedScript = function(value) {
9821
+ return jspb.Message.setProto3StringField(this, 2, value);
9822
+ };
9823
+
9824
+
9825
+ /**
9826
+ * optional string serialized_params = 3;
9827
+ * @return {string}
9828
+ */
9829
+ proto.api_container_api.GetStarlarkRunResponse.prototype.getSerializedParams = function() {
9830
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
9831
+ };
9832
+
9833
+
9834
+ /**
9835
+ * @param {string} value
9836
+ * @return {!proto.api_container_api.GetStarlarkRunResponse} returns this
9837
+ */
9838
+ proto.api_container_api.GetStarlarkRunResponse.prototype.setSerializedParams = function(value) {
9839
+ return jspb.Message.setProto3StringField(this, 3, value);
9840
+ };
9841
+
9842
+
9843
+ /**
9844
+ * optional int32 parallelism = 4;
9845
+ * @return {number}
9846
+ */
9847
+ proto.api_container_api.GetStarlarkRunResponse.prototype.getParallelism = function() {
9848
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
9849
+ };
9850
+
9851
+
9852
+ /**
9853
+ * @param {number} value
9854
+ * @return {!proto.api_container_api.GetStarlarkRunResponse} returns this
9855
+ */
9856
+ proto.api_container_api.GetStarlarkRunResponse.prototype.setParallelism = function(value) {
9857
+ return jspb.Message.setProto3IntField(this, 4, value);
9858
+ };
9859
+
9860
+
9861
+ /**
9862
+ * optional string relative_path_to_main_file = 5;
9863
+ * @return {string}
9864
+ */
9865
+ proto.api_container_api.GetStarlarkRunResponse.prototype.getRelativePathToMainFile = function() {
9866
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
9867
+ };
9868
+
9869
+
9870
+ /**
9871
+ * @param {string} value
9872
+ * @return {!proto.api_container_api.GetStarlarkRunResponse} returns this
9873
+ */
9874
+ proto.api_container_api.GetStarlarkRunResponse.prototype.setRelativePathToMainFile = function(value) {
9875
+ return jspb.Message.setProto3StringField(this, 5, value);
9876
+ };
9877
+
9878
+
9879
+ /**
9880
+ * optional string main_function_name = 6;
9881
+ * @return {string}
9882
+ */
9883
+ proto.api_container_api.GetStarlarkRunResponse.prototype.getMainFunctionName = function() {
9884
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
9885
+ };
9886
+
9887
+
9888
+ /**
9889
+ * @param {string} value
9890
+ * @return {!proto.api_container_api.GetStarlarkRunResponse} returns this
9891
+ */
9892
+ proto.api_container_api.GetStarlarkRunResponse.prototype.setMainFunctionName = function(value) {
9893
+ return jspb.Message.setProto3StringField(this, 6, value);
9894
+ };
9895
+
9896
+
9897
+ /**
9898
+ * repeated KurtosisFeatureFlag experimental_features = 7;
9899
+ * @return {!Array<!proto.api_container_api.KurtosisFeatureFlag>}
9900
+ */
9901
+ proto.api_container_api.GetStarlarkRunResponse.prototype.getExperimentalFeaturesList = function() {
9902
+ return /** @type {!Array<!proto.api_container_api.KurtosisFeatureFlag>} */ (jspb.Message.getRepeatedField(this, 7));
9903
+ };
9904
+
9905
+
9906
+ /**
9907
+ * @param {!Array<!proto.api_container_api.KurtosisFeatureFlag>} value
9908
+ * @return {!proto.api_container_api.GetStarlarkRunResponse} returns this
9909
+ */
9910
+ proto.api_container_api.GetStarlarkRunResponse.prototype.setExperimentalFeaturesList = function(value) {
9911
+ return jspb.Message.setField(this, 7, value || []);
9912
+ };
9913
+
9914
+
9915
+ /**
9916
+ * @param {!proto.api_container_api.KurtosisFeatureFlag} value
9917
+ * @param {number=} opt_index
9918
+ * @return {!proto.api_container_api.GetStarlarkRunResponse} returns this
9919
+ */
9920
+ proto.api_container_api.GetStarlarkRunResponse.prototype.addExperimentalFeatures = function(value, opt_index) {
9921
+ return jspb.Message.addToRepeatedField(this, 7, value, opt_index);
9922
+ };
9923
+
9924
+
9925
+ /**
9926
+ * Clears the list making it empty but non-null.
9927
+ * @return {!proto.api_container_api.GetStarlarkRunResponse} returns this
9928
+ */
9929
+ proto.api_container_api.GetStarlarkRunResponse.prototype.clearExperimentalFeaturesList = function() {
9930
+ return this.setExperimentalFeaturesList([]);
9931
+ };
9932
+
9933
+
9934
+ /**
9935
+ * optional RestartPolicy restart_policy = 8;
9936
+ * @return {!proto.api_container_api.RestartPolicy}
9937
+ */
9938
+ proto.api_container_api.GetStarlarkRunResponse.prototype.getRestartPolicy = function() {
9939
+ return /** @type {!proto.api_container_api.RestartPolicy} */ (jspb.Message.getFieldWithDefault(this, 8, 0));
9940
+ };
9941
+
9942
+
9943
+ /**
9944
+ * @param {!proto.api_container_api.RestartPolicy} value
9945
+ * @return {!proto.api_container_api.GetStarlarkRunResponse} returns this
9946
+ */
9947
+ proto.api_container_api.GetStarlarkRunResponse.prototype.setRestartPolicy = function(value) {
9948
+ return jspb.Message.setProto3EnumField(this, 8, value);
9949
+ };
9950
+
9951
+
9561
9952
  /**
9562
9953
  * @enum {number}
9563
9954
  */
@@ -9582,4 +9973,12 @@ proto.api_container_api.KurtosisFeatureFlag = {
9582
9973
  NO_INSTRUCTIONS_CACHING: 0
9583
9974
  };
9584
9975
 
9976
+ /**
9977
+ * @enum {number}
9978
+ */
9979
+ proto.api_container_api.RestartPolicy = {
9980
+ NEVER: 0,
9981
+ ALWAYS: 1
9982
+ };
9983
+
9585
9984
  goog.object.extend(exports, proto.api_container_api);
@@ -3,7 +3,7 @@
3
3
  /* eslint-disable */
4
4
  // @ts-nocheck
5
5
 
6
- import { ConnectServicesArgs, ConnectServicesResponse, DownloadFilesArtifactArgs, ExecCommandArgs, ExecCommandResponse, GetExistingAndHistoricalServiceIdentifiersResponse, GetServicesArgs, GetServicesResponse, InspectFilesArtifactContentsRequest, InspectFilesArtifactContentsResponse, ListFilesArtifactNamesAndUuidsResponse, RunStarlarkPackageArgs, RunStarlarkScriptArgs, StarlarkRunResponseLine, StoreFilesArtifactFromServiceArgs, StoreFilesArtifactFromServiceResponse, StoreWebFilesArtifactArgs, StoreWebFilesArtifactResponse, StreamedDataChunk, UploadFilesArtifactResponse, WaitForHttpGetEndpointAvailabilityArgs, WaitForHttpPostEndpointAvailabilityArgs } from "./api_container_service_pb.js";
6
+ import { ConnectServicesArgs, ConnectServicesResponse, DownloadFilesArtifactArgs, ExecCommandArgs, ExecCommandResponse, GetExistingAndHistoricalServiceIdentifiersResponse, GetServicesArgs, GetServicesResponse, GetStarlarkRunResponse, InspectFilesArtifactContentsRequest, InspectFilesArtifactContentsResponse, ListFilesArtifactNamesAndUuidsResponse, RunStarlarkPackageArgs, RunStarlarkScriptArgs, StarlarkRunResponseLine, StoreFilesArtifactFromServiceArgs, StoreFilesArtifactFromServiceResponse, StoreWebFilesArtifactArgs, StoreWebFilesArtifactResponse, StreamedDataChunk, UploadFilesArtifactResponse, WaitForHttpGetEndpointAvailabilityArgs, WaitForHttpPostEndpointAvailabilityArgs } from "./api_container_service_pb.js";
7
7
  import { Empty, MethodKind } from "@bufbuild/protobuf";
8
8
 
9
9
  /**
@@ -173,6 +173,17 @@ export declare const ApiContainerService: {
173
173
  readonly O: typeof ConnectServicesResponse,
174
174
  readonly kind: MethodKind.Unary,
175
175
  },
176
+ /**
177
+ * Get last Starlark run
178
+ *
179
+ * @generated from rpc api_container_api.ApiContainerService.GetStarlarkRun
180
+ */
181
+ readonly getStarlarkRun: {
182
+ readonly name: "GetStarlarkRun",
183
+ readonly I: typeof Empty,
184
+ readonly O: typeof GetStarlarkRunResponse,
185
+ readonly kind: MethodKind.Unary,
186
+ },
176
187
  }
177
188
  };
178
189
 
@@ -3,7 +3,7 @@
3
3
  /* eslint-disable */
4
4
  // @ts-nocheck
5
5
 
6
- import { ConnectServicesArgs, ConnectServicesResponse, DownloadFilesArtifactArgs, ExecCommandArgs, ExecCommandResponse, GetExistingAndHistoricalServiceIdentifiersResponse, GetServicesArgs, GetServicesResponse, InspectFilesArtifactContentsRequest, InspectFilesArtifactContentsResponse, ListFilesArtifactNamesAndUuidsResponse, RunStarlarkPackageArgs, RunStarlarkScriptArgs, StarlarkRunResponseLine, StoreFilesArtifactFromServiceArgs, StoreFilesArtifactFromServiceResponse, StoreWebFilesArtifactArgs, StoreWebFilesArtifactResponse, StreamedDataChunk, UploadFilesArtifactResponse, WaitForHttpGetEndpointAvailabilityArgs, WaitForHttpPostEndpointAvailabilityArgs } from "./api_container_service_pb.js";
6
+ import { ConnectServicesArgs, ConnectServicesResponse, DownloadFilesArtifactArgs, ExecCommandArgs, ExecCommandResponse, GetExistingAndHistoricalServiceIdentifiersResponse, GetServicesArgs, GetServicesResponse, GetStarlarkRunResponse, InspectFilesArtifactContentsRequest, InspectFilesArtifactContentsResponse, ListFilesArtifactNamesAndUuidsResponse, RunStarlarkPackageArgs, RunStarlarkScriptArgs, StarlarkRunResponseLine, StoreFilesArtifactFromServiceArgs, StoreFilesArtifactFromServiceResponse, StoreWebFilesArtifactArgs, StoreWebFilesArtifactResponse, StreamedDataChunk, UploadFilesArtifactResponse, WaitForHttpGetEndpointAvailabilityArgs, WaitForHttpPostEndpointAvailabilityArgs } from "./api_container_service_pb.js";
7
7
  import { Empty, MethodKind } from "@bufbuild/protobuf";
8
8
 
9
9
  /**
@@ -173,6 +173,17 @@ export const ApiContainerService = {
173
173
  O: ConnectServicesResponse,
174
174
  kind: MethodKind.Unary,
175
175
  },
176
+ /**
177
+ * Get last Starlark run
178
+ *
179
+ * @generated from rpc api_container_api.ApiContainerService.GetStarlarkRun
180
+ */
181
+ getStarlarkRun: {
182
+ name: "GetStarlarkRun",
183
+ I: Empty,
184
+ O: GetStarlarkRunResponse,
185
+ kind: MethodKind.Unary,
186
+ },
176
187
  }
177
188
  };
178
189
 
@@ -60,6 +60,21 @@ export declare enum KurtosisFeatureFlag {
60
60
  NO_INSTRUCTIONS_CACHING = 0,
61
61
  }
62
62
 
63
+ /**
64
+ * @generated from enum api_container_api.RestartPolicy
65
+ */
66
+ export declare enum RestartPolicy {
67
+ /**
68
+ * @generated from enum value: NEVER = 0;
69
+ */
70
+ NEVER = 0,
71
+
72
+ /**
73
+ * @generated from enum value: ALWAYS = 1;
74
+ */
75
+ ALWAYS = 1,
76
+ }
77
+
63
78
  /**
64
79
  * ==============================================================================================
65
80
  * Shared Objects (Used By Multiple Endpoints)
@@ -1685,3 +1700,62 @@ export declare class ConnectServicesResponse extends Message<ConnectServicesResp
1685
1700
  static equals(a: ConnectServicesResponse | PlainMessage<ConnectServicesResponse> | undefined, b: ConnectServicesResponse | PlainMessage<ConnectServicesResponse> | undefined): boolean;
1686
1701
  }
1687
1702
 
1703
+ /**
1704
+ * @generated from message api_container_api.GetStarlarkRunResponse
1705
+ */
1706
+ export declare class GetStarlarkRunResponse extends Message<GetStarlarkRunResponse> {
1707
+ /**
1708
+ * @generated from field: string package_id = 1;
1709
+ */
1710
+ packageId: string;
1711
+
1712
+ /**
1713
+ * @generated from field: string serialized_script = 2;
1714
+ */
1715
+ serializedScript: string;
1716
+
1717
+ /**
1718
+ * @generated from field: string serialized_params = 3;
1719
+ */
1720
+ serializedParams: string;
1721
+
1722
+ /**
1723
+ * @generated from field: int32 parallelism = 4;
1724
+ */
1725
+ parallelism: number;
1726
+
1727
+ /**
1728
+ * @generated from field: string relative_path_to_main_file = 5;
1729
+ */
1730
+ relativePathToMainFile: string;
1731
+
1732
+ /**
1733
+ * @generated from field: string main_function_name = 6;
1734
+ */
1735
+ mainFunctionName: string;
1736
+
1737
+ /**
1738
+ * @generated from field: repeated api_container_api.KurtosisFeatureFlag experimental_features = 7;
1739
+ */
1740
+ experimentalFeatures: KurtosisFeatureFlag[];
1741
+
1742
+ /**
1743
+ * @generated from field: api_container_api.RestartPolicy restart_policy = 8;
1744
+ */
1745
+ restartPolicy: RestartPolicy;
1746
+
1747
+ constructor(data?: PartialMessage<GetStarlarkRunResponse>);
1748
+
1749
+ static readonly runtime: typeof proto3;
1750
+ static readonly typeName = "api_container_api.GetStarlarkRunResponse";
1751
+ static readonly fields: FieldList;
1752
+
1753
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetStarlarkRunResponse;
1754
+
1755
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetStarlarkRunResponse;
1756
+
1757
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetStarlarkRunResponse;
1758
+
1759
+ static equals(a: GetStarlarkRunResponse | PlainMessage<GetStarlarkRunResponse> | undefined, b: GetStarlarkRunResponse | PlainMessage<GetStarlarkRunResponse> | undefined): boolean;
1760
+ }
1761
+
@@ -40,6 +40,17 @@ export const KurtosisFeatureFlag = proto3.makeEnum(
40
40
  ],
41
41
  );
42
42
 
43
+ /**
44
+ * @generated from enum api_container_api.RestartPolicy
45
+ */
46
+ export const RestartPolicy = proto3.makeEnum(
47
+ "api_container_api.RestartPolicy",
48
+ [
49
+ {no: 0, name: "NEVER"},
50
+ {no: 1, name: "ALWAYS"},
51
+ ],
52
+ );
53
+
43
54
  /**
44
55
  * ==============================================================================================
45
56
  * Shared Objects (Used By Multiple Endpoints)
@@ -592,3 +603,20 @@ export const ConnectServicesResponse = proto3.makeMessageType(
592
603
  [],
593
604
  );
594
605
 
606
+ /**
607
+ * @generated from message api_container_api.GetStarlarkRunResponse
608
+ */
609
+ export const GetStarlarkRunResponse = proto3.makeMessageType(
610
+ "api_container_api.GetStarlarkRunResponse",
611
+ () => [
612
+ { no: 1, name: "package_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
613
+ { no: 2, name: "serialized_script", kind: "scalar", T: 9 /* ScalarType.STRING */ },
614
+ { no: 3, name: "serialized_params", kind: "scalar", T: 9 /* ScalarType.STRING */ },
615
+ { no: 4, name: "parallelism", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
616
+ { no: 5, name: "relative_path_to_main_file", kind: "scalar", T: 9 /* ScalarType.STRING */ },
617
+ { no: 6, name: "main_function_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
618
+ { no: 7, name: "experimental_features", kind: "enum", T: proto3.getEnumType(KurtosisFeatureFlag), repeated: true },
619
+ { no: 8, name: "restart_policy", kind: "enum", T: proto3.getEnumType(RestartPolicy) },
620
+ ],
621
+ );
622
+
@@ -3,7 +3,7 @@ import { Result } from "neverthrow";
3
3
  import type { FilesArtifactUUID } from "./files_artifact";
4
4
  import type { ServiceName, ServiceUUID } from "../services/service";
5
5
  import { ServiceContext } from "../services/service_context";
6
- import { FilesArtifactNameAndUuid, ConnectServicesResponse, Connect } from "../../kurtosis_core_rpc_api_bindings/api_container_service_pb";
6
+ import { FilesArtifactNameAndUuid, ConnectServicesResponse, Connect, GetStarlarkRunResponse } from "../../kurtosis_core_rpc_api_bindings/api_container_service_pb";
7
7
  import { Readable } from "stream";
8
8
  import { StarlarkRunResult } from "./starlark_run_blocking";
9
9
  import { ServiceIdentifiers } from "../services/service_identifiers";
@@ -32,6 +32,7 @@ export declare class EnclaveContext {
32
32
  getExistingAndHistoricalServiceIdentifiers(): Promise<Result<ServiceIdentifiers, Error>>;
33
33
  getAllFilesArtifactNamesAndUuids(): Promise<Result<FilesArtifactNameAndUuid[], Error>>;
34
34
  connectServices(connect: Connect): Promise<Result<ConnectServicesResponse, Error>>;
35
+ getStarlarkRun(): Promise<Result<GetStarlarkRunResponse, Error>>;
35
36
  private static convertApiPortsToServiceContextPorts;
36
37
  private assembleRunStarlarkPackageArg;
37
38
  }
@@ -271,6 +271,17 @@ class EnclaveContext {
271
271
  return (0, neverthrow_1.ok)(response);
272
272
  });
273
273
  }
274
+ // Docs available at https://docs.kurtosis.com/sdk#getstarlarkrun
275
+ getStarlarkRun() {
276
+ return __awaiter(this, void 0, void 0, function* () {
277
+ const responseResult = yield this.backend.getStarlarkRun();
278
+ if (responseResult.isErr()) {
279
+ return (0, neverthrow_1.err)(responseResult.error);
280
+ }
281
+ const response = responseResult.value;
282
+ return (0, neverthrow_1.ok)(response);
283
+ });
284
+ }
274
285
  // ====================================================================================================
275
286
  // Private helper functions
276
287
  // ====================================================================================================
@@ -1,6 +1,6 @@
1
1
  /// <reference types="node" />
2
2
  import { Result } from "neverthrow";
3
- import { ConnectServicesArgs, ConnectServicesResponse, DownloadFilesArtifactArgs, ExecCommandArgs, ExecCommandResponse, GetExistingAndHistoricalServiceIdentifiersResponse, GetServicesArgs, GetServicesResponse, ListFilesArtifactNamesAndUuidsResponse, RunStarlarkPackageArgs, RunStarlarkScriptArgs, StoreWebFilesArtifactArgs, StoreWebFilesArtifactResponse, UploadFilesArtifactResponse, WaitForHttpGetEndpointAvailabilityArgs, WaitForHttpPostEndpointAvailabilityArgs } from "../../kurtosis_core_rpc_api_bindings/api_container_service_pb";
3
+ import { ConnectServicesArgs, ConnectServicesResponse, DownloadFilesArtifactArgs, ExecCommandArgs, ExecCommandResponse, GetExistingAndHistoricalServiceIdentifiersResponse, GetServicesArgs, GetServicesResponse, GetStarlarkRunResponse, ListFilesArtifactNamesAndUuidsResponse, RunStarlarkPackageArgs, RunStarlarkScriptArgs, StoreWebFilesArtifactArgs, StoreWebFilesArtifactResponse, UploadFilesArtifactResponse, WaitForHttpGetEndpointAvailabilityArgs, WaitForHttpPostEndpointAvailabilityArgs } from "../../kurtosis_core_rpc_api_bindings/api_container_service_pb";
4
4
  import { EnclaveUUID } from "./enclave_context";
5
5
  import { Readable } from "stream";
6
6
  export interface GenericApiContainerClient {
@@ -18,4 +18,5 @@ export interface GenericApiContainerClient {
18
18
  getExistingAndHistoricalServiceIdentifiers(): Promise<Result<GetExistingAndHistoricalServiceIdentifiersResponse, Error>>;
19
19
  getAllFilesArtifactNamesAndUuids(): Promise<Result<ListFilesArtifactNamesAndUuidsResponse, Error>>;
20
20
  connectServices(connectServicesArgs: ConnectServicesArgs): Promise<Result<ConnectServicesResponse, Error>>;
21
+ getStarlarkRun(): Promise<Result<GetStarlarkRunResponse, Error>>;
21
22
  }
@@ -1,6 +1,6 @@
1
1
  /// <reference types="node" />
2
2
  import { Result } from "neverthrow";
3
- import { ConnectServicesArgs, ConnectServicesResponse, DownloadFilesArtifactArgs, ExecCommandArgs, ExecCommandResponse, GetExistingAndHistoricalServiceIdentifiersResponse, GetServicesArgs, GetServicesResponse, ListFilesArtifactNamesAndUuidsResponse, RunStarlarkPackageArgs, RunStarlarkScriptArgs, StoreWebFilesArtifactArgs, StoreWebFilesArtifactResponse, UploadFilesArtifactResponse, WaitForHttpGetEndpointAvailabilityArgs, WaitForHttpPostEndpointAvailabilityArgs } from "../../kurtosis_core_rpc_api_bindings/api_container_service_pb";
3
+ import { ConnectServicesArgs, ConnectServicesResponse, DownloadFilesArtifactArgs, ExecCommandArgs, ExecCommandResponse, GetExistingAndHistoricalServiceIdentifiersResponse, GetServicesArgs, GetServicesResponse, GetStarlarkRunResponse, ListFilesArtifactNamesAndUuidsResponse, RunStarlarkPackageArgs, RunStarlarkScriptArgs, StoreWebFilesArtifactArgs, StoreWebFilesArtifactResponse, UploadFilesArtifactResponse, WaitForHttpGetEndpointAvailabilityArgs, WaitForHttpPostEndpointAvailabilityArgs } from "../../kurtosis_core_rpc_api_bindings/api_container_service_pb";
4
4
  import type { ApiContainerServiceClient as ApiContainerServiceClientNode } from "../../kurtosis_core_rpc_api_bindings/api_container_service_grpc_pb";
5
5
  import { GenericApiContainerClient } from "./generic_api_container_client";
6
6
  import { EnclaveUUID } from "./enclave_context";
@@ -25,4 +25,5 @@ export declare class GrpcNodeApiContainerClient implements GenericApiContainerCl
25
25
  getAllFilesArtifactNamesAndUuids(): Promise<Result<ListFilesArtifactNamesAndUuidsResponse, Error>>;
26
26
  private computeHexHash;
27
27
  connectServices(connectServicesArgs: ConnectServicesArgs): Promise<Result<ConnectServicesResponse, Error>>;
28
+ getStarlarkRun(): Promise<Result<GetStarlarkRunResponse, Error>>;
28
29
  }
@@ -330,5 +330,31 @@ class GrpcNodeApiContainerClient {
330
330
  return (0, neverthrow_1.ok)(connectServicesResponse);
331
331
  });
332
332
  }
333
+ getStarlarkRun() {
334
+ return __awaiter(this, void 0, void 0, function* () {
335
+ const emptyArg = new google_protobuf_empty_pb.Empty();
336
+ const getStarlarkRunPromise = new Promise((resolve, _unusedReject) => {
337
+ this.client.getStarlarkRun(emptyArg, {}, (error, response) => {
338
+ if (error === null) {
339
+ if (!response) {
340
+ resolve((0, neverthrow_1.err)(new Error("No error was encountered but the response was still falsy; this should never happen")));
341
+ }
342
+ else {
343
+ resolve((0, neverthrow_1.ok)(response));
344
+ }
345
+ }
346
+ else {
347
+ resolve((0, neverthrow_1.err)(error));
348
+ }
349
+ });
350
+ });
351
+ const getStarlarkRunResponseResult = yield getStarlarkRunPromise;
352
+ if (getStarlarkRunResponseResult.isErr()) {
353
+ return (0, neverthrow_1.err)(getStarlarkRunResponseResult.error);
354
+ }
355
+ const getStarlarkRunResponse = getStarlarkRunResponseResult.value;
356
+ return (0, neverthrow_1.ok)(getStarlarkRunResponse);
357
+ });
358
+ }
333
359
  }
334
360
  exports.GrpcNodeApiContainerClient = GrpcNodeApiContainerClient;
@@ -4,5 +4,5 @@ exports.KURTOSIS_VERSION = void 0;
4
4
  // !!!!!!!!!!! DO NOT UPDATE! WILL BE MANUALLY UPDATED DURING THE RELEASE PROCESS !!!!!!!!!!!!!!!!!!!!!!
5
5
  // This is necessary so that Kurt Core consumers (e.g. modules) will know if they're compatible with the currently-running
6
6
  // API container
7
- exports.KURTOSIS_VERSION = "0.84.1";
7
+ exports.KURTOSIS_VERSION = "0.84.2";
8
8
  // !!!!!!!!!!! DO NOT UPDATE! WILL BE MANUALLY UPDATED DURING THE RELEASE PROCESS !!!!!!!!!!!!!!!!!!!!!!
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "kurtosis-sdk",
3
3
  "//": "NOTE: DO NOT UPDATE THIS VERSION MANUALLY - IT WILL BE UPDATED DURING THE RELEASE PROCESS!",
4
- "version": "0.84.1",
4
+ "version": "0.84.2",
5
5
  "main": "./build/index",
6
6
  "description": "This repo contains a Typescript client for communicating with the Kurtosis Engine server, which is responsible for creating, managing and destroying Kurtosis Enclaves.",
7
7
  "types": "./build/index",