kurtosis-sdk 1.16.5 → 1.17.4
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.
- package/build/core/lib/constructor_calls.js +8 -9
- package/build/core/lib/enclaves/enclave_context.d.ts +0 -1
- package/build/core/lib/enclaves/generic_api_container_client.d.ts +0 -1
- package/build/core/lib/enclaves/grpc_node_api_container_client.d.ts +0 -1
- package/build/core/lib/enclaves/kurtosis_yaml.js +2 -2
- package/build/core/lib/enclaves/node_tgz_archiver.js +1 -1
- package/build/core/lib/enclaves/starlark_run_blocking.d.ts +0 -1
- package/build/core/lib/enclaves/starlark_run_blocking.js +2 -2
- package/build/core/lib/services/port_spec.js +3 -3
- package/build/engine/lib/constructor_calls.js +5 -6
- package/build/engine/lib/kurtosis_context/generic_engine_client.d.ts +0 -1
- package/build/engine/lib/kurtosis_context/grpc_node_engine_client.d.ts +0 -1
- package/build/engine/lib/kurtosis_context/grpc_node_engine_client.js +1 -1
- package/build/engine/lib/kurtosis_context/kurtosis_context.d.ts +0 -1
- package/build/engine/lib/kurtosis_context/log_line_operator.js +1 -1
- package/build/kurtosis_version/kurtosis_version.js +1 -1
- package/package.json +7 -7
|
@@ -4,7 +4,14 @@
|
|
|
4
4
|
* All Rights Reserved.
|
|
5
5
|
*/
|
|
6
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
exports.
|
|
7
|
+
exports.newPort = newPort;
|
|
8
|
+
exports.newGetServicesArgs = newGetServicesArgs;
|
|
9
|
+
exports.newGetServicesResponse = newGetServicesResponse;
|
|
10
|
+
exports.newExecCommandArgs = newExecCommandArgs;
|
|
11
|
+
exports.newWaitForHttpGetEndpointAvailabilityArgs = newWaitForHttpGetEndpointAvailabilityArgs;
|
|
12
|
+
exports.newWaitForHttpPostEndpointAvailabilityArgs = newWaitForHttpPostEndpointAvailabilityArgs;
|
|
13
|
+
exports.newStoreWebFilesArtifactArgs = newStoreWebFilesArtifactArgs;
|
|
14
|
+
exports.newDownloadFilesArtifactArgs = newDownloadFilesArtifactArgs;
|
|
8
15
|
const api_container_service_pb_1 = require("../kurtosis_core_rpc_api_bindings/api_container_service_pb");
|
|
9
16
|
// ==============================================================================================
|
|
10
17
|
// Shared Objects (Used By Multiple Endpoints)
|
|
@@ -18,7 +25,6 @@ function newPort(number, transportProtocol, maybeApplicationProtocol) {
|
|
|
18
25
|
}
|
|
19
26
|
return result;
|
|
20
27
|
}
|
|
21
|
-
exports.newPort = newPort;
|
|
22
28
|
// ==============================================================================================
|
|
23
29
|
// Get Services
|
|
24
30
|
// ==============================================================================================
|
|
@@ -30,7 +36,6 @@ function newGetServicesArgs(serviceIdentifiers) {
|
|
|
30
36
|
}
|
|
31
37
|
return result;
|
|
32
38
|
}
|
|
33
|
-
exports.newGetServicesArgs = newGetServicesArgs;
|
|
34
39
|
function newGetServicesResponse(serviceInfoMap) {
|
|
35
40
|
const result = new api_container_service_pb_1.GetServicesResponse();
|
|
36
41
|
const resultServiceMap = result.getServiceInfoMap();
|
|
@@ -39,7 +44,6 @@ function newGetServicesResponse(serviceInfoMap) {
|
|
|
39
44
|
}
|
|
40
45
|
return result;
|
|
41
46
|
}
|
|
42
|
-
exports.newGetServicesResponse = newGetServicesResponse;
|
|
43
47
|
// ==============================================================================================
|
|
44
48
|
// Exec Command
|
|
45
49
|
// ==============================================================================================
|
|
@@ -49,7 +53,6 @@ function newExecCommandArgs(setServiceIdentifier, command) {
|
|
|
49
53
|
result.setCommandArgsList(command);
|
|
50
54
|
return result;
|
|
51
55
|
}
|
|
52
|
-
exports.newExecCommandArgs = newExecCommandArgs;
|
|
53
56
|
// ==============================================================================================
|
|
54
57
|
// Wait For Http Get Endpoint Availability
|
|
55
58
|
// ==============================================================================================
|
|
@@ -64,7 +67,6 @@ function newWaitForHttpGetEndpointAvailabilityArgs(serviceIdentifier, port, path
|
|
|
64
67
|
result.setBodyText(bodyText);
|
|
65
68
|
return result;
|
|
66
69
|
}
|
|
67
|
-
exports.newWaitForHttpGetEndpointAvailabilityArgs = newWaitForHttpGetEndpointAvailabilityArgs;
|
|
68
70
|
// ==============================================================================================
|
|
69
71
|
// Wait For Http Post Endpoint Availability
|
|
70
72
|
// ==============================================================================================
|
|
@@ -80,7 +82,6 @@ function newWaitForHttpPostEndpointAvailabilityArgs(serviceIdentifier, port, pat
|
|
|
80
82
|
result.setBodyText(bodyText);
|
|
81
83
|
return result;
|
|
82
84
|
}
|
|
83
|
-
exports.newWaitForHttpPostEndpointAvailabilityArgs = newWaitForHttpPostEndpointAvailabilityArgs;
|
|
84
85
|
// ==============================================================================================
|
|
85
86
|
// Store Web Files Files
|
|
86
87
|
// ==============================================================================================
|
|
@@ -90,7 +91,6 @@ function newStoreWebFilesArtifactArgs(url, name) {
|
|
|
90
91
|
result.setName(name);
|
|
91
92
|
return result;
|
|
92
93
|
}
|
|
93
|
-
exports.newStoreWebFilesArtifactArgs = newStoreWebFilesArtifactArgs;
|
|
94
94
|
// ==============================================================================================
|
|
95
95
|
// Download Files
|
|
96
96
|
// ==============================================================================================
|
|
@@ -99,4 +99,3 @@ function newDownloadFilesArtifactArgs(identifier) {
|
|
|
99
99
|
result.setIdentifier(identifier);
|
|
100
100
|
return result;
|
|
101
101
|
}
|
|
102
|
-
exports.newDownloadFilesArtifactArgs = newDownloadFilesArtifactArgs;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
1
|
import { Result } from "neverthrow";
|
|
3
2
|
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
3
|
import { EnclaveUUID } from "./enclave_context";
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
1
|
import { Result } from "neverthrow";
|
|
3
2
|
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
3
|
import type { ApiContainerServiceClient as ApiContainerServiceClientNode } from "../../kurtosis_core_rpc_api_bindings/api_container_service_grpc_pb";
|
|
@@ -9,7 +9,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
9
9
|
});
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.
|
|
12
|
+
exports.KurtosisYaml = void 0;
|
|
13
|
+
exports.parseKurtosisYaml = parseKurtosisYaml;
|
|
13
14
|
const fs = require("fs");
|
|
14
15
|
const neverthrow_1 = require("neverthrow");
|
|
15
16
|
const yaml = require("js-yaml");
|
|
@@ -50,4 +51,3 @@ function parseKurtosisYaml(kurtosisYamlFilepath) {
|
|
|
50
51
|
return (0, neverthrow_1.ok)(parsedYAML);
|
|
51
52
|
});
|
|
52
53
|
}
|
|
53
|
-
exports.parseKurtosisYaml = parseKurtosisYaml;
|
|
@@ -87,7 +87,7 @@ class NodeTgzArchiver {
|
|
|
87
87
|
return (0, neverthrow_1.err)(new Error(`Something went wrong while reading your recently compressed file '${destFilename}'.` +
|
|
88
88
|
`The file size of ${stats.size} bytes and read size of ${data.length} bytes are not equal.`));
|
|
89
89
|
}
|
|
90
|
-
return (0, neverthrow_1.ok)(data);
|
|
90
|
+
return (0, neverthrow_1.ok)(new Uint8Array(data));
|
|
91
91
|
});
|
|
92
92
|
}
|
|
93
93
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
1
|
import { Readable } from "stream";
|
|
3
2
|
import { StarlarkExecutionError, StarlarkInstruction, StarlarkInterpretationError, StarlarkValidationError } from "../../kurtosis_core_rpc_api_bindings/api_container_service_pb";
|
|
4
3
|
export declare class StarlarkRunResult {
|
|
@@ -9,7 +9,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
9
9
|
});
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.
|
|
12
|
+
exports.StarlarkRunResult = void 0;
|
|
13
|
+
exports.readStreamContentUntilClosed = readStreamContentUntilClosed;
|
|
13
14
|
const STARLARK_RUN_OUTPUT_LINE_SPLIT = "\n";
|
|
14
15
|
class StarlarkRunResult {
|
|
15
16
|
constructor(runOutput, instructions, interpretationError, validationErrors, executionError) {
|
|
@@ -70,4 +71,3 @@ function readStreamContentUntilClosed(responseLines) {
|
|
|
70
71
|
});
|
|
71
72
|
});
|
|
72
73
|
}
|
|
73
|
-
exports.readStreamContentUntilClosed = readStreamContentUntilClosed;
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PortSpec = exports.
|
|
3
|
+
exports.PortSpec = exports.MAX_PORT_NUM = exports.TransportProtocol = void 0;
|
|
4
|
+
exports.IsValidTransportProtocol = IsValidTransportProtocol;
|
|
4
5
|
const api_container_service_pb_1 = require("../../kurtosis_core_rpc_api_bindings/api_container_service_pb");
|
|
5
6
|
var TransportProtocol;
|
|
6
7
|
(function (TransportProtocol) {
|
|
7
8
|
TransportProtocol.TCP = api_container_service_pb_1.Port.TransportProtocol.TCP;
|
|
8
9
|
TransportProtocol.UDP = api_container_service_pb_1.Port.TransportProtocol.UDP;
|
|
9
|
-
})(TransportProtocol
|
|
10
|
+
})(TransportProtocol || (exports.TransportProtocol = TransportProtocol = {}));
|
|
10
11
|
// Ports are 16 bit and should be no higher than max 16-bit number
|
|
11
12
|
exports.MAX_PORT_NUM = 65535;
|
|
12
13
|
const allowedTransportProtocols = new Set([TransportProtocol.TCP, TransportProtocol.UDP]);
|
|
13
14
|
function IsValidTransportProtocol(protocol) {
|
|
14
15
|
return allowedTransportProtocols.has(protocol);
|
|
15
16
|
}
|
|
16
|
-
exports.IsValidTransportProtocol = IsValidTransportProtocol;
|
|
17
17
|
class PortSpec {
|
|
18
18
|
constructor(number, transportProtocol, maybeApplicationProtocol) {
|
|
19
19
|
this.number = number;
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.newCreateEnclaveArgs = newCreateEnclaveArgs;
|
|
4
|
+
exports.newStopEnclaveArgs = newStopEnclaveArgs;
|
|
5
|
+
exports.newDestroyEnclaveArgs = newDestroyEnclaveArgs;
|
|
6
|
+
exports.newCleanArgs = newCleanArgs;
|
|
7
|
+
exports.newGetServiceLogsArgs = newGetServiceLogsArgs;
|
|
4
8
|
const engine_service_pb_1 = require("../kurtosis_engine_rpc_api_bindings/engine_service_pb");
|
|
5
9
|
const kurtosisLogLineOperator = require("./kurtosis_context/log_line_operator");
|
|
6
10
|
// ====================================================================================================
|
|
@@ -14,25 +18,21 @@ function newCreateEnclaveArgs(enclaveName, apiContainerImageVersionTag, apiConta
|
|
|
14
18
|
result.setShouldApicRunInDebugMode(shouldApicRunInDebugMode);
|
|
15
19
|
return result;
|
|
16
20
|
}
|
|
17
|
-
exports.newCreateEnclaveArgs = newCreateEnclaveArgs;
|
|
18
21
|
function newStopEnclaveArgs(enclaveIdentifier) {
|
|
19
22
|
const result = new engine_service_pb_1.StopEnclaveArgs();
|
|
20
23
|
result.setEnclaveIdentifier(enclaveIdentifier);
|
|
21
24
|
return result;
|
|
22
25
|
}
|
|
23
|
-
exports.newStopEnclaveArgs = newStopEnclaveArgs;
|
|
24
26
|
function newDestroyEnclaveArgs(enclaveIdentifier) {
|
|
25
27
|
const result = new engine_service_pb_1.DestroyEnclaveArgs();
|
|
26
28
|
result.setEnclaveIdentifier(enclaveIdentifier);
|
|
27
29
|
return result;
|
|
28
30
|
}
|
|
29
|
-
exports.newDestroyEnclaveArgs = newDestroyEnclaveArgs;
|
|
30
31
|
function newCleanArgs(shouldCleanAll) {
|
|
31
32
|
const result = new engine_service_pb_1.CleanArgs();
|
|
32
33
|
result.setShouldCleanAll(shouldCleanAll);
|
|
33
34
|
return result;
|
|
34
35
|
}
|
|
35
|
-
exports.newCleanArgs = newCleanArgs;
|
|
36
36
|
function newGetServiceLogsArgs(enclaveIdentifier, serviceUuids, shouldFollowLogs, shouldReturnAllLogs, numLogLines, logLineFilter) {
|
|
37
37
|
const result = new engine_service_pb_1.GetServiceLogsArgs();
|
|
38
38
|
result.setEnclaveIdentifier(enclaveIdentifier);
|
|
@@ -54,7 +54,6 @@ function newGetServiceLogsArgs(enclaveIdentifier, serviceUuids, shouldFollowLogs
|
|
|
54
54
|
result.setNumLogLines(numLogLines);
|
|
55
55
|
return result;
|
|
56
56
|
}
|
|
57
|
-
exports.newGetServiceLogsArgs = newGetServiceLogsArgs;
|
|
58
57
|
// ====================================================================================================
|
|
59
58
|
// Private helper functions
|
|
60
59
|
// ====================================================================================================
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
1
|
import { Result } from "neverthrow";
|
|
3
2
|
import { CleanArgs, CleanResponse, CreateEnclaveArgs, CreateEnclaveResponse, DestroyEnclaveArgs, GetEnclavesResponse, GetEngineInfoResponse, StopEnclaveArgs, GetServiceLogsArgs, GetExistingAndHistoricalEnclaveIdentifiersResponse } from "../../kurtosis_engine_rpc_api_bindings/engine_service_pb";
|
|
4
3
|
import { Readable } from "stream";
|
|
@@ -248,7 +248,7 @@ class GrpcNodeEngineClient {
|
|
|
248
248
|
}
|
|
249
249
|
createNewServiceLogsReadable(streamServiceLogsResponse) {
|
|
250
250
|
const serviceLogsReadable = new stream_1.Readable({
|
|
251
|
-
objectMode: true,
|
|
251
|
+
objectMode: true, //setting object mode is to allow pass objects in the readable.push() method
|
|
252
252
|
read() {
|
|
253
253
|
} //this is mandatory to implement, we implement empty as it's describe in the implementation examples here: https://nodesource.com/blog/understanding-streams-in-nodejs/
|
|
254
254
|
});
|
|
@@ -7,4 +7,4 @@ var LogLineOperator;
|
|
|
7
7
|
LogLineOperator[LogLineOperator["DoesNotContainText"] = 1] = "DoesNotContainText";
|
|
8
8
|
LogLineOperator[LogLineOperator["DoesContainMatchRegex"] = 2] = "DoesContainMatchRegex";
|
|
9
9
|
LogLineOperator[LogLineOperator["DoesNotContainMatchRegex"] = 3] = "DoesNotContainMatchRegex";
|
|
10
|
-
})(LogLineOperator
|
|
10
|
+
})(LogLineOperator || (exports.LogLineOperator = LogLineOperator = {}));
|
|
@@ -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 = "1.
|
|
7
|
+
exports.KURTOSIS_VERSION = "1.17.4";
|
|
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": "1.
|
|
4
|
+
"version": "1.17.4",
|
|
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",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
},
|
|
30
30
|
"homepage": "https://github.com/kurtosis-tech/kurtosis",
|
|
31
31
|
"engines": {
|
|
32
|
-
"node": ">=
|
|
32
|
+
"node": ">=22.0.0"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@bufbuild/connect": "^0.12.0",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"neverthrow": "^4.2.2",
|
|
49
49
|
"path-browserify": "^1.0.1",
|
|
50
50
|
"semver": "^7.3.5",
|
|
51
|
-
"tar": "^
|
|
51
|
+
"tar": "^7.5.11"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
54
|
"@bufbuild/buf": "^1.26.1",
|
|
@@ -56,12 +56,12 @@
|
|
|
56
56
|
"@bufbuild/protoc-gen-es": "^1.3.0",
|
|
57
57
|
"@types/chai": "^4.2.21",
|
|
58
58
|
"@types/google-protobuf": "^3.15.5",
|
|
59
|
-
"@types/mocha": "^
|
|
59
|
+
"@types/mocha": "^10.0.0",
|
|
60
60
|
"@types/tar": "^6.1.1",
|
|
61
61
|
"@types/targz": "^1.0.1",
|
|
62
62
|
"chai": "^4.3.4",
|
|
63
|
-
"mocha": "^
|
|
64
|
-
"ts-mocha": "^
|
|
65
|
-
"typescript": "^
|
|
63
|
+
"mocha": "^11.7.5",
|
|
64
|
+
"ts-mocha": "^11.1.0",
|
|
65
|
+
"typescript": "^5.7.0"
|
|
66
66
|
}
|
|
67
67
|
}
|